diff --git a/setup.cfg b/setup.cfg index 9ca2a566..3b07299d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -10,7 +10,7 @@ include_package_data = true packages = find: install_requires = fastapi - uvicorn + uvicorn[standard] pydantic toml pytest @@ -28,6 +28,7 @@ install_requires = lock-requirements pyyaml rtoml + jedi [options.entry_points] console_scripts = diff --git a/zt_backend/dist_app/assets/index-67be79b0.js b/zt_backend/dist_app/assets/index-67be79b0.js new file mode 100644 index 00000000..eec86418 --- /dev/null +++ b/zt_backend/dist_app/assets/index-67be79b0.js @@ -0,0 +1,188 @@ +var bxe=Object.defineProperty;var Oxe=(t,e,r)=>e in t?bxe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Il=(t,e,r)=>(Oxe(t,typeof e!="symbol"?e+"":e,r),r),xxe=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var are=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)};var Iz=(t,e,r)=>(xxe(t,e,"access private method"),r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))a(i);new MutationObserver(i=>{for(const d of i)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&a(f)}).observe(document,{childList:!0,subtree:!0});function r(i){const d={};return i.integrity&&(d.integrity=i.integrity),i.referrerPolicy&&(d.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?d.credentials="include":i.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function a(i){if(i.ep)return;i.ep=!0;const d=r(i);fetch(i.href,d)}})();function Kme(t,e){return function(){return t.apply(e,arguments)}}const{toString:Sxe}=Object.prototype,{getPrototypeOf:aae}=Object,XH=(t=>e=>{const r=Sxe.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ty=t=>(t=t.toLowerCase(),e=>XH(e)===t),GH=t=>e=>typeof e===t,{isArray:yM}=Array,ZD=GH("undefined");function wxe(t){return t!==null&&!ZD(t)&&t.constructor!==null&&!ZD(t.constructor)&&wp(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Jme=ty("ArrayBuffer");function Txe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Jme(t.buffer),e}const Cxe=GH("string"),wp=GH("function"),ege=GH("number"),jH=t=>t!==null&&typeof t=="object",kxe=t=>t===!0||t===!1,wZ=t=>{if(XH(t)!=="object")return!1;const e=aae(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Axe=ty("Date"),Pxe=ty("File"),Mxe=ty("Blob"),Exe=ty("FileList"),_xe=t=>jH(t)&&wp(t.pipe),Rxe=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||wp(t.append)&&((e=XH(t))==="formdata"||e==="object"&&wp(t.toString)&&t.toString()==="[object FormData]"))},Dxe=ty("URLSearchParams"),$xe=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function P$(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let a,i;if(typeof t!="object"&&(t=[t]),yM(t))for(a=0,i=t.length;a0;)if(i=r[a],e===i.toLowerCase())return i;return null}const nge=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),rge=t=>!ZD(t)&&t!==nge;function poe(){const{caseless:t}=rge(this)&&this||{},e={},r=(a,i)=>{const d=t&&tge(e,i)||i;wZ(e[d])&&wZ(a)?e[d]=poe(e[d],a):wZ(a)?e[d]=poe({},a):yM(a)?e[d]=a.slice():e[d]=a};for(let a=0,i=arguments.length;a(P$(e,(i,d)=>{r&&wp(i)?t[d]=Kme(i,r):t[d]=i},{allOwnKeys:a}),t),Ixe=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Nxe=(t,e,r,a)=>{t.prototype=Object.create(e.prototype,a),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Bxe=(t,e,r,a)=>{let i,d,f;const m={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),d=i.length;d-- >0;)f=i[d],(!a||a(f,t,e))&&!m[f]&&(e[f]=t[f],m[f]=!0);t=r!==!1&&aae(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Qxe=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const a=t.indexOf(e,r);return a!==-1&&a===r},Fxe=t=>{if(!t)return null;if(yM(t))return t;let e=t.length;if(!ege(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Vxe=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&aae(Uint8Array)),zxe=(t,e)=>{const a=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=a.next())&&!i.done;){const d=i.value;e.call(t,d[0],d[1])}},Zxe=(t,e)=>{let r;const a=[];for(;(r=t.exec(e))!==null;)a.push(r);return a},Hxe=ty("HTMLFormElement"),Uxe=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,i){return a.toUpperCase()+i}),Kce=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Wxe=ty("RegExp"),oge=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),a={};P$(r,(i,d)=>{let f;(f=e(i,d,t))!==!1&&(a[d]=f||i)}),Object.defineProperties(t,a)},Yxe=t=>{oge(t,(e,r)=>{if(wp(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=t[r];if(wp(a)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Xxe=(t,e)=>{const r={},a=i=>{i.forEach(d=>{r[d]=!0})};return yM(t)?a(t):a(String(t).split(e)),r},Gxe=()=>{},jxe=(t,e)=>(t=+t,Number.isFinite(t)?t:e),ire="abcdefghijklmnopqrstuvwxyz",Jce="0123456789",sge={DIGIT:Jce,ALPHA:ire,ALPHA_DIGIT:ire+ire.toUpperCase()+Jce},qxe=(t=16,e=sge.ALPHA_DIGIT)=>{let r="";const{length:a}=e;for(;t--;)r+=e[Math.random()*a|0];return r};function Kxe(t){return!!(t&&wp(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Jxe=t=>{const e=new Array(10),r=(a,i)=>{if(jH(a)){if(e.indexOf(a)>=0)return;if(!("toJSON"in a)){e[i]=a;const d=yM(a)?[]:{};return P$(a,(f,m)=>{const u=r(f,i+1);!ZD(u)&&(d[m]=u)}),e[i]=void 0,d}}return a};return r(t,0)},e2e=ty("AsyncFunction"),t2e=t=>t&&(jH(t)||wp(t))&&wp(t.then)&&wp(t.catch),Nr={isArray:yM,isArrayBuffer:Jme,isBuffer:wxe,isFormData:Rxe,isArrayBufferView:Txe,isString:Cxe,isNumber:ege,isBoolean:kxe,isObject:jH,isPlainObject:wZ,isUndefined:ZD,isDate:Axe,isFile:Pxe,isBlob:Mxe,isRegExp:Wxe,isFunction:wp,isStream:_xe,isURLSearchParams:Dxe,isTypedArray:Vxe,isFileList:Exe,forEach:P$,merge:poe,extend:Lxe,trim:$xe,stripBOM:Ixe,inherits:Nxe,toFlatObject:Bxe,kindOf:XH,kindOfTest:ty,endsWith:Qxe,toArray:Fxe,forEachEntry:zxe,matchAll:Zxe,isHTMLForm:Hxe,hasOwnProperty:Kce,hasOwnProp:Kce,reduceDescriptors:oge,freezeMethods:Yxe,toObjectSet:Xxe,toCamelCase:Uxe,noop:Gxe,toFiniteNumber:jxe,findKey:tge,global:nge,isContextDefined:rge,ALPHABET:sge,generateString:qxe,isSpecCompliantForm:Kxe,toJSONObject:Jxe,isAsyncFn:e2e,isThenable:t2e};function si(t,e,r,a,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),a&&(this.request=a),i&&(this.response=i)}Nr.inherits(si,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Nr.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const age=si.prototype,ige={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{ige[t]={value:t}});Object.defineProperties(si,ige);Object.defineProperty(age,"isAxiosError",{value:!0});si.from=(t,e,r,a,i,d)=>{const f=Object.create(age);return Nr.toFlatObject(t,f,function(u){return u!==Error.prototype},m=>m!=="isAxiosError"),si.call(f,t.message,e,r,a,i),f.cause=t,f.name=t.name,d&&Object.assign(f,d),f};const n2e=null;function voe(t){return Nr.isPlainObject(t)||Nr.isArray(t)}function lge(t){return Nr.endsWith(t,"[]")?t.slice(0,-2):t}function eue(t,e,r){return t?t.concat(e).map(function(i,d){return i=lge(i),!r&&d?"["+i+"]":i}).join(r?".":""):e}function r2e(t){return Nr.isArray(t)&&!t.some(voe)}const o2e=Nr.toFlatObject(Nr,{},null,function(e){return/^is[A-Z]/.test(e)});function qH(t,e,r){if(!Nr.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=Nr.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,w){return!Nr.isUndefined(w[C])});const a=r.metaTokens,i=r.visitor||v,d=r.dots,f=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&Nr.isSpecCompliantForm(e);if(!Nr.isFunction(i))throw new TypeError("visitor must be a function");function p(k){if(k===null)return"";if(Nr.isDate(k))return k.toISOString();if(!u&&Nr.isBlob(k))throw new si("Blob is not supported. Use a Buffer instead.");return Nr.isArrayBuffer(k)||Nr.isTypedArray(k)?u&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function v(k,C,w){let T=k;if(k&&!w&&typeof k=="object"){if(Nr.endsWith(C,"{}"))C=a?C:C.slice(0,-2),k=JSON.stringify(k);else if(Nr.isArray(k)&&r2e(k)||(Nr.isFileList(k)||Nr.endsWith(C,"[]"))&&(T=Nr.toArray(k)))return C=lge(C),T.forEach(function(M,I){!(Nr.isUndefined(M)||M===null)&&e.append(f===!0?eue([C],I,d):f===null?C:C+"[]",p(M))}),!1}return voe(k)?!0:(e.append(eue(w,C,d),p(k)),!1)}const y=[],b=Object.assign(o2e,{defaultVisitor:v,convertValue:p,isVisitable:voe});function x(k,C){if(!Nr.isUndefined(k)){if(y.indexOf(k)!==-1)throw Error("Circular reference detected in "+C.join("."));y.push(k),Nr.forEach(k,function(T,R){(!(Nr.isUndefined(T)||T===null)&&i.call(e,T,Nr.isString(R)?R.trim():R,C,b))===!0&&x(T,C?C.concat(R):[R])}),y.pop()}}if(!Nr.isObject(t))throw new TypeError("data must be an object");return x(t),e}function tue(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return e[a]})}function iae(t,e){this._pairs=[],t&&qH(t,this,e)}const cge=iae.prototype;cge.append=function(e,r){this._pairs.push([e,r])};cge.toString=function(e){const r=e?function(a){return e.call(this,a,tue)}:tue;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function s2e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function uge(t,e,r){if(!e)return t;const a=r&&r.encode||s2e,i=r&&r.serialize;let d;if(i?d=i(e,r):d=Nr.isURLSearchParams(e)?e.toString():new iae(e,r).toString(a),d){const f=t.indexOf("#");f!==-1&&(t=t.slice(0,f)),t+=(t.indexOf("?")===-1?"?":"&")+d}return t}class a2e{constructor(){this.handlers=[]}use(e,r,a){return this.handlers.push({fulfilled:e,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Nr.forEach(this.handlers,function(a){a!==null&&e(a)})}}const nue=a2e,fge={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},i2e=typeof URLSearchParams<"u"?URLSearchParams:iae,l2e=typeof FormData<"u"?FormData:null,c2e=typeof Blob<"u"?Blob:null,u2e={isBrowser:!0,classes:{URLSearchParams:i2e,FormData:l2e,Blob:c2e},protocols:["http","https","file","blob","url","data"]},dge=typeof window<"u"&&typeof document<"u",f2e=(t=>dge&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),d2e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),h2e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dge,hasStandardBrowserEnv:f2e,hasStandardBrowserWebWorkerEnv:d2e},Symbol.toStringTag,{value:"Module"})),Z1={...h2e,...u2e};function m2e(t,e){return qH(t,new Z1.classes.URLSearchParams,Object.assign({visitor:function(r,a,i,d){return Z1.isNode&&Nr.isBuffer(r)?(this.append(a,r.toString("base64")),!1):d.defaultVisitor.apply(this,arguments)}},e))}function g2e(t){return Nr.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function p2e(t){const e={},r=Object.keys(t);let a;const i=r.length;let d;for(a=0;a=r.length;return f=!f&&Nr.isArray(i)?i.length:f,u?(Nr.hasOwnProp(i,f)?i[f]=[i[f],a]:i[f]=a,!m):((!i[f]||!Nr.isObject(i[f]))&&(i[f]=[]),e(r,a,i[f],d)&&Nr.isArray(i[f])&&(i[f]=p2e(i[f])),!m)}if(Nr.isFormData(t)&&Nr.isFunction(t.entries)){const r={};return Nr.forEachEntry(t,(a,i)=>{e(g2e(a),i,r,0)}),r}return null}function v2e(t,e,r){if(Nr.isString(t))try{return(e||JSON.parse)(t),Nr.trim(t)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(t)}const lae={transitional:fge,adapter:["xhr","http"],transformRequest:[function(e,r){const a=r.getContentType()||"",i=a.indexOf("application/json")>-1,d=Nr.isObject(e);if(d&&Nr.isHTMLForm(e)&&(e=new FormData(e)),Nr.isFormData(e))return i&&i?JSON.stringify(hge(e)):e;if(Nr.isArrayBuffer(e)||Nr.isBuffer(e)||Nr.isStream(e)||Nr.isFile(e)||Nr.isBlob(e))return e;if(Nr.isArrayBufferView(e))return e.buffer;if(Nr.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let m;if(d){if(a.indexOf("application/x-www-form-urlencoded")>-1)return m2e(e,this.formSerializer).toString();if((m=Nr.isFileList(e))||a.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return qH(m?{"files[]":e}:e,u&&new u,this.formSerializer)}}return d||i?(r.setContentType("application/json",!1),v2e(e)):e}],transformResponse:[function(e){const r=this.transitional||lae.transitional,a=r&&r.forcedJSONParsing,i=this.responseType==="json";if(e&&Nr.isString(e)&&(a&&!this.responseType||i)){const f=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(m){if(f)throw m.name==="SyntaxError"?si.from(m,si.ERR_BAD_RESPONSE,this,null,this.response):m}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Z1.classes.FormData,Blob:Z1.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Nr.forEach(["delete","get","head","post","put","patch"],t=>{lae.headers[t]={}});const cae=lae,y2e=Nr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),b2e=t=>{const e={};let r,a,i;return t&&t.split(` +`).forEach(function(f){i=f.indexOf(":"),r=f.substring(0,i).trim().toLowerCase(),a=f.substring(i+1).trim(),!(!r||e[r]&&y2e[r])&&(r==="set-cookie"?e[r]?e[r].push(a):e[r]=[a]:e[r]=e[r]?e[r]+", "+a:a)}),e},rue=Symbol("internals");function iD(t){return t&&String(t).trim().toLowerCase()}function TZ(t){return t===!1||t==null?t:Nr.isArray(t)?t.map(TZ):String(t)}function O2e(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(t);)e[a[1]]=a[2];return e}const x2e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function lre(t,e,r,a,i){if(Nr.isFunction(a))return a.call(this,e,r);if(i&&(e=r),!!Nr.isString(e)){if(Nr.isString(a))return e.indexOf(a)!==-1;if(Nr.isRegExp(a))return a.test(e)}}function S2e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,a)=>r.toUpperCase()+a)}function w2e(t,e){const r=Nr.toCamelCase(" "+e);["get","set","has"].forEach(a=>{Object.defineProperty(t,a+r,{value:function(i,d,f){return this[a].call(this,e,i,d,f)},configurable:!0})})}class KH{constructor(e){e&&this.set(e)}set(e,r,a){const i=this;function d(m,u,p){const v=iD(u);if(!v)throw new Error("header name must be a non-empty string");const y=Nr.findKey(i,v);(!y||i[y]===void 0||p===!0||p===void 0&&i[y]!==!1)&&(i[y||u]=TZ(m))}const f=(m,u)=>Nr.forEach(m,(p,v)=>d(p,v,u));return Nr.isPlainObject(e)||e instanceof this.constructor?f(e,r):Nr.isString(e)&&(e=e.trim())&&!x2e(e)?f(b2e(e),r):e!=null&&d(r,e,a),this}get(e,r){if(e=iD(e),e){const a=Nr.findKey(this,e);if(a){const i=this[a];if(!r)return i;if(r===!0)return O2e(i);if(Nr.isFunction(r))return r.call(this,i,a);if(Nr.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=iD(e),e){const a=Nr.findKey(this,e);return!!(a&&this[a]!==void 0&&(!r||lre(this,this[a],a,r)))}return!1}delete(e,r){const a=this;let i=!1;function d(f){if(f=iD(f),f){const m=Nr.findKey(a,f);m&&(!r||lre(a,a[m],m,r))&&(delete a[m],i=!0)}}return Nr.isArray(e)?e.forEach(d):d(e),i}clear(e){const r=Object.keys(this);let a=r.length,i=!1;for(;a--;){const d=r[a];(!e||lre(this,this[d],d,e,!0))&&(delete this[d],i=!0)}return i}normalize(e){const r=this,a={};return Nr.forEach(this,(i,d)=>{const f=Nr.findKey(a,d);if(f){r[f]=TZ(i),delete r[d];return}const m=e?S2e(d):String(d).trim();m!==d&&delete r[d],r[m]=TZ(i),a[m]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return Nr.forEach(this,(a,i)=>{a!=null&&a!==!1&&(r[i]=e&&Nr.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const a=new this(e);return r.forEach(i=>a.set(i)),a}static accessor(e){const a=(this[rue]=this[rue]={accessors:{}}).accessors,i=this.prototype;function d(f){const m=iD(f);a[m]||(w2e(i,f),a[m]=!0)}return Nr.isArray(e)?e.forEach(d):d(e),this}}KH.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Nr.reduceDescriptors(KH.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(a){this[r]=a}}});Nr.freezeMethods(KH);const hO=KH;function cre(t,e){const r=this||cae,a=e||r,i=hO.from(a.headers);let d=a.data;return Nr.forEach(t,function(m){d=m.call(r,d,i.normalize(),e?e.status:void 0)}),i.normalize(),d}function mge(t){return!!(t&&t.__CANCEL__)}function M$(t,e,r){si.call(this,t??"canceled",si.ERR_CANCELED,e,r),this.name="CanceledError"}Nr.inherits(M$,si,{__CANCEL__:!0});function T2e(t,e,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?t(r):e(new si("Request failed with status code "+r.status,[si.ERR_BAD_REQUEST,si.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const C2e=Z1.hasStandardBrowserEnv?{write(t,e,r,a,i,d){const f=[t+"="+encodeURIComponent(e)];Nr.isNumber(r)&&f.push("expires="+new Date(r).toGMTString()),Nr.isString(a)&&f.push("path="+a),Nr.isString(i)&&f.push("domain="+i),d===!0&&f.push("secure"),document.cookie=f.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function k2e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function A2e(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function gge(t,e){return t&&!k2e(e)?A2e(t,e):e}const P2e=Z1.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let a;function i(d){let f=d;return e&&(r.setAttribute("href",f),f=r.href),r.setAttribute("href",f),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return a=i(window.location.href),function(f){const m=Nr.isString(f)?i(f):f;return m.protocol===a.protocol&&m.host===a.host}}():function(){return function(){return!0}}();function M2e(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function E2e(t,e){t=t||10;const r=new Array(t),a=new Array(t);let i=0,d=0,f;return e=e!==void 0?e:1e3,function(u){const p=Date.now(),v=a[d];f||(f=p),r[i]=u,a[i]=p;let y=d,b=0;for(;y!==i;)b+=r[y++],y=y%t;if(i=(i+1)%t,i===d&&(d=(d+1)%t),p-f{const d=i.loaded,f=i.lengthComputable?i.total:void 0,m=d-r,u=a(m),p=d<=f;r=d;const v={loaded:d,total:f,progress:f?d/f:void 0,bytes:m,rate:u||void 0,estimated:u&&f&&p?(f-d)/u:void 0,event:i};v[e?"download":"upload"]=!0,t(v)}}const _2e=typeof XMLHttpRequest<"u",R2e=_2e&&function(t){return new Promise(function(r,a){let i=t.data;const d=hO.from(t.headers).normalize();let{responseType:f,withXSRFToken:m}=t,u;function p(){t.cancelToken&&t.cancelToken.unsubscribe(u),t.signal&&t.signal.removeEventListener("abort",u)}let v;if(Nr.isFormData(i)){if(Z1.hasStandardBrowserEnv||Z1.hasStandardBrowserWebWorkerEnv)d.setContentType(!1);else if((v=d.getContentType())!==!1){const[C,...w]=v?v.split(";").map(T=>T.trim()).filter(Boolean):[];d.setContentType([C||"multipart/form-data",...w].join("; "))}}let y=new XMLHttpRequest;if(t.auth){const C=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.set("Authorization","Basic "+btoa(C+":"+w))}const b=gge(t.baseURL,t.url);y.open(t.method.toUpperCase(),uge(b,t.params,t.paramsSerializer),!0),y.timeout=t.timeout;function x(){if(!y)return;const C=hO.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),T={data:!f||f==="text"||f==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:C,config:t,request:y};T2e(function(M){r(M),p()},function(M){a(M),p()},T),y=null}if("onloadend"in y?y.onloadend=x:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(x)},y.onabort=function(){y&&(a(new si("Request aborted",si.ECONNABORTED,t,y)),y=null)},y.onerror=function(){a(new si("Network Error",si.ERR_NETWORK,t,y)),y=null},y.ontimeout=function(){let w=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const T=t.transitional||fge;t.timeoutErrorMessage&&(w=t.timeoutErrorMessage),a(new si(w,T.clarifyTimeoutError?si.ETIMEDOUT:si.ECONNABORTED,t,y)),y=null},Z1.hasStandardBrowserEnv&&(m&&Nr.isFunction(m)&&(m=m(t)),m||m!==!1&&P2e(b))){const C=t.xsrfHeaderName&&t.xsrfCookieName&&C2e.read(t.xsrfCookieName);C&&d.set(t.xsrfHeaderName,C)}i===void 0&&d.setContentType(null),"setRequestHeader"in y&&Nr.forEach(d.toJSON(),function(w,T){y.setRequestHeader(T,w)}),Nr.isUndefined(t.withCredentials)||(y.withCredentials=!!t.withCredentials),f&&f!=="json"&&(y.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&y.addEventListener("progress",oue(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&y.upload&&y.upload.addEventListener("progress",oue(t.onUploadProgress)),(t.cancelToken||t.signal)&&(u=C=>{y&&(a(!C||C.type?new M$(null,t,y):C),y.abort(),y=null)},t.cancelToken&&t.cancelToken.subscribe(u),t.signal&&(t.signal.aborted?u():t.signal.addEventListener("abort",u)));const k=M2e(b);if(k&&Z1.protocols.indexOf(k)===-1){a(new si("Unsupported protocol "+k+":",si.ERR_BAD_REQUEST,t));return}y.send(i||null)})},yoe={http:n2e,xhr:R2e};Nr.forEach(yoe,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const sue=t=>`- ${t}`,D2e=t=>Nr.isFunction(t)||t===null||t===!1,pge={getAdapter:t=>{t=Nr.isArray(t)?t:[t];const{length:e}=t;let r,a;const i={};for(let d=0;d`adapter ${m} `+(u===!1?"is not supported by the environment":"is not available in the build"));let f=e?d.length>1?`since : +`+d.map(sue).join(` +`):" "+sue(d[0]):"as no adapter specified";throw new si("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return a},adapters:yoe};function ure(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new M$(null,t)}function aue(t){return ure(t),t.headers=hO.from(t.headers),t.data=cre.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),pge.getAdapter(t.adapter||cae.adapter)(t).then(function(a){return ure(t),a.data=cre.call(t,t.transformResponse,a),a.headers=hO.from(a.headers),a},function(a){return mge(a)||(ure(t),a&&a.response&&(a.response.data=cre.call(t,t.transformResponse,a.response),a.response.headers=hO.from(a.response.headers))),Promise.reject(a)})}const iue=t=>t instanceof hO?t.toJSON():t;function tM(t,e){e=e||{};const r={};function a(p,v,y){return Nr.isPlainObject(p)&&Nr.isPlainObject(v)?Nr.merge.call({caseless:y},p,v):Nr.isPlainObject(v)?Nr.merge({},v):Nr.isArray(v)?v.slice():v}function i(p,v,y){if(Nr.isUndefined(v)){if(!Nr.isUndefined(p))return a(void 0,p,y)}else return a(p,v,y)}function d(p,v){if(!Nr.isUndefined(v))return a(void 0,v)}function f(p,v){if(Nr.isUndefined(v)){if(!Nr.isUndefined(p))return a(void 0,p)}else return a(void 0,v)}function m(p,v,y){if(y in e)return a(p,v);if(y in t)return a(void 0,p)}const u={url:d,method:d,data:d,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:m,headers:(p,v)=>i(iue(p),iue(v),!0)};return Nr.forEach(Object.keys(Object.assign({},t,e)),function(v){const y=u[v]||i,b=y(t[v],e[v],v);Nr.isUndefined(b)&&y!==m||(r[v]=b)}),r}const vge="1.6.2",uae={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{uae[t]=function(a){return typeof a===t||"a"+(e<1?"n ":" ")+t}});const lue={};uae.transitional=function(e,r,a){function i(d,f){return"[Axios v"+vge+"] Transitional option '"+d+"'"+f+(a?". "+a:"")}return(d,f,m)=>{if(e===!1)throw new si(i(f," has been removed"+(r?" in "+r:"")),si.ERR_DEPRECATED);return r&&!lue[f]&&(lue[f]=!0,console.warn(i(f," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(d,f,m):!0}};function $2e(t,e,r){if(typeof t!="object")throw new si("options must be an object",si.ERR_BAD_OPTION_VALUE);const a=Object.keys(t);let i=a.length;for(;i-- >0;){const d=a[i],f=e[d];if(f){const m=t[d],u=m===void 0||f(m,d,t);if(u!==!0)throw new si("option "+d+" must be "+u,si.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new si("Unknown option "+d,si.ERR_BAD_OPTION)}}const boe={assertOptions:$2e,validators:uae},tS=boe.validators;class XZ{constructor(e){this.defaults=e,this.interceptors={request:new nue,response:new nue}}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=tM(this.defaults,r);const{transitional:a,paramsSerializer:i,headers:d}=r;a!==void 0&&boe.assertOptions(a,{silentJSONParsing:tS.transitional(tS.boolean),forcedJSONParsing:tS.transitional(tS.boolean),clarifyTimeoutError:tS.transitional(tS.boolean)},!1),i!=null&&(Nr.isFunction(i)?r.paramsSerializer={serialize:i}:boe.assertOptions(i,{encode:tS.function,serialize:tS.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let f=d&&Nr.merge(d.common,d[r.method]);d&&Nr.forEach(["delete","get","head","post","put","patch","common"],k=>{delete d[k]}),r.headers=hO.concat(f,d);const m=[];let u=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(r)===!1||(u=u&&C.synchronous,m.unshift(C.fulfilled,C.rejected))});const p=[];this.interceptors.response.forEach(function(C){p.push(C.fulfilled,C.rejected)});let v,y=0,b;if(!u){const k=[aue.bind(this),void 0];for(k.unshift.apply(k,m),k.push.apply(k,p),b=k.length,v=Promise.resolve(r);y{if(!a._listeners)return;let d=a._listeners.length;for(;d-- >0;)a._listeners[d](i);a._listeners=null}),this.promise.then=i=>{let d;const f=new Promise(m=>{a.subscribe(m),d=m}).then(i);return f.cancel=function(){a.unsubscribe(d)},f},e(function(d,f,m){a.reason||(a.reason=new M$(d,f,m),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new fae(function(i){e=i}),cancel:e}}}const L2e=fae;function I2e(t){return function(r){return t.apply(null,r)}}function N2e(t){return Nr.isObject(t)&&t.isAxiosError===!0}const Ooe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ooe).forEach(([t,e])=>{Ooe[e]=t});const B2e=Ooe;function yge(t){const e=new CZ(t),r=Kme(CZ.prototype.request,e);return Nr.extend(r,CZ.prototype,e,{allOwnKeys:!0}),Nr.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return yge(tM(t,i))},r}const vu=yge(cae);vu.Axios=CZ;vu.CanceledError=M$;vu.CancelToken=L2e;vu.isCancel=mge;vu.VERSION=vge;vu.toFormData=qH;vu.AxiosError=si;vu.Cancel=vu.CanceledError;vu.all=function(e){return Promise.all(e)};vu.spread=I2e;vu.isAxiosError=N2e;vu.mergeConfig=tM;vu.AxiosHeaders=hO;vu.formToJSON=t=>hge(Nr.isHTMLForm(t)?new FormData(t):t);vu.getAdapter=pge.getAdapter;vu.HttpStatusCode=B2e;vu.default=vu;const kZ=vu;function dae(t,e){const r=Object.create(null),a=t.split(",");for(let i=0;i!!r[i.toLowerCase()]:i=>!!r[i]}const Bl={},zP=[],Bv=()=>{},Q2e=()=>!1,F2e=/^on[^a-z]/,JH=t=>F2e.test(t),hae=t=>t.startsWith("onUpdate:"),Jc=Object.assign,mae=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},V2e=Object.prototype.hasOwnProperty,mi=(t,e)=>V2e.call(t,e),Us=Array.isArray,ZP=t=>eU(t)==="[object Map]",bge=t=>eU(t)==="[object Set]",wa=t=>typeof t=="function",Bc=t=>typeof t=="string",gae=t=>typeof t=="symbol",Tl=t=>t!==null&&typeof t=="object",Oge=t=>Tl(t)&&wa(t.then)&&wa(t.catch),xge=Object.prototype.toString,eU=t=>xge.call(t),z2e=t=>eU(t).slice(8,-1),Sge=t=>eU(t)==="[object Object]",pae=t=>Bc(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,AZ=dae(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),tU=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},Z2e=/-(\w)/g,Pp=tU(t=>t.replace(Z2e,(e,r)=>r?r.toUpperCase():"")),H2e=/\B([A-Z])/g,bM=tU(t=>t.replace(H2e,"-$1").toLowerCase()),SO=tU(t=>t.charAt(0).toUpperCase()+t.slice(1)),H1=tU(t=>t?`on${SO(t)}`:""),HD=(t,e)=>!Object.is(t,e),PZ=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},xoe=t=>{const e=parseFloat(t);return isNaN(e)?t:e},U2e=t=>{const e=Bc(t)?Number(t):NaN;return isNaN(e)?t:e};let cue;const Soe=()=>cue||(cue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nU(t){if(Us(t)){const e={};for(let r=0;r{if(r){const a=r.split(Y2e);a.length>1&&(e[a[0].trim()]=a[1].trim())}}),e}function rU(t){let e="";if(Bc(t))e=t;else if(Us(t))for(let r=0;rBc(t)?t:t==null?"":Us(t)||Tl(t)&&(t.toString===xge||!wa(t.toString))?JSON.stringify(t,Tge,2):String(t),Tge=(t,e)=>e&&e.__v_isRef?Tge(t,e.value):ZP(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[a,i])=>(r[`${a} =>`]=i,r),{})}:bge(e)?{[`Set(${e.size})`]:[...e.values()]}:Tl(e)&&!Us(e)&&!Sge(e)?String(e):e;let ng;class Cge{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ng,!e&&ng&&(this.index=(ng.scopes||(ng.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=ng;try{return ng=this,e()}finally{ng=r}}}on(){ng=this}off(){ng=this.parent}stop(e){if(this._active){let r,a;for(r=0,a=this.effects.length;r{const e=new Set(t);return e.w=0,e.n=0,e},kge=t=>(t.w&bS)>0,Age=t=>(t.n&bS)>0,eSe=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let r=0;for(let a=0;a{(v==="length"||v>=u)&&m.push(p)})}else switch(r!==void 0&&m.push(f.get(r)),e){case"add":Us(t)?pae(r)&&m.push(f.get("length")):(m.push(f.get(PC)),ZP(t)&&m.push(f.get(Toe)));break;case"delete":Us(t)||(m.push(f.get(PC)),ZP(t)&&m.push(f.get(Toe)));break;case"set":ZP(t)&&m.push(f.get(PC));break}if(m.length===1)m[0]&&Coe(m[0]);else{const u=[];for(const p of m)p&&u.push(...p);Coe(yae(u))}}function Coe(t,e){const r=Us(t)?t:[...t];for(const a of r)a.computed&&fue(a);for(const a of r)a.computed||fue(a)}function fue(t,e){(t!==Lv||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function nSe(t,e){var r;return(r=jZ.get(t))==null?void 0:r.get(e)}const rSe=dae("__proto__,__v_isRef,__isVue"),Ege=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(gae)),oSe=Oae(),sSe=Oae(!1,!0),aSe=Oae(!0),due=iSe();function iSe(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const a=va(this);for(let d=0,f=this.length;d{t[e]=function(...r){OM();const a=va(this)[e].apply(this,r);return xM(),a}}),t}function lSe(t){const e=va(this);return sm(e,"has",t),e.hasOwnProperty(t)}function Oae(t=!1,e=!1){return function(a,i,d){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&d===(t?e?TSe:Lge:e?$ge:Dge).get(a))return a;const f=Us(a);if(!t){if(f&&mi(due,i))return Reflect.get(due,i,d);if(i==="hasOwnProperty")return lSe}const m=Reflect.get(a,i,d);return(gae(i)?Ege.has(i):rSe(i))||(t||sm(a,"get",i),e)?m:mc(m)?f&&pae(i)?m:m.value:Tl(m)?t?E$(m):tm(m):m}}const cSe=_ge(),uSe=_ge(!0);function _ge(t=!1){return function(r,a,i,d){let f=r[a];if(nM(f)&&mc(f)&&!mc(i))return!1;if(!t&&(!qZ(i)&&!nM(i)&&(f=va(f),i=va(i)),!Us(r)&&mc(f)&&!mc(i)))return f.value=i,!0;const m=Us(r)&&pae(a)?Number(a)t,oU=t=>Reflect.getPrototypeOf(t);function Nz(t,e,r=!1,a=!1){t=t.__v_raw;const i=va(t),d=va(e);r||(e!==d&&sm(i,"get",e),sm(i,"get",d));const{has:f}=oU(i),m=a?xae:r?Tae:UD;if(f.call(i,e))return m(t.get(e));if(f.call(i,d))return m(t.get(d));t!==i&&t.get(e)}function Bz(t,e=!1){const r=this.__v_raw,a=va(r),i=va(t);return e||(t!==i&&sm(a,"has",t),sm(a,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)}function Qz(t,e=!1){return t=t.__v_raw,!e&&sm(va(t),"iterate",PC),Reflect.get(t,"size",t)}function hue(t){t=va(t);const e=va(this);return oU(e).has.call(e,t)||(e.add(t),gO(e,"add",t,t)),this}function mue(t,e){e=va(e);const r=va(this),{has:a,get:i}=oU(r);let d=a.call(r,t);d||(t=va(t),d=a.call(r,t));const f=i.call(r,t);return r.set(t,e),d?HD(e,f)&&gO(r,"set",t,e):gO(r,"add",t,e),this}function gue(t){const e=va(this),{has:r,get:a}=oU(e);let i=r.call(e,t);i||(t=va(t),i=r.call(e,t)),a&&a.call(e,t);const d=e.delete(t);return i&&gO(e,"delete",t,void 0),d}function pue(){const t=va(this),e=t.size!==0,r=t.clear();return e&&gO(t,"clear",void 0,void 0),r}function Fz(t,e){return function(a,i){const d=this,f=d.__v_raw,m=va(f),u=e?xae:t?Tae:UD;return!t&&sm(m,"iterate",PC),f.forEach((p,v)=>a.call(i,u(p),u(v),d))}}function Vz(t,e,r){return function(...a){const i=this.__v_raw,d=va(i),f=ZP(d),m=t==="entries"||t===Symbol.iterator&&f,u=t==="keys"&&f,p=i[t](...a),v=r?xae:e?Tae:UD;return!e&&sm(d,"iterate",u?Toe:PC),{next(){const{value:y,done:b}=p.next();return b?{value:y,done:b}:{value:m?[v(y[0]),v(y[1])]:v(y),done:b}},[Symbol.iterator](){return this}}}}function nS(t){return function(...e){return t==="delete"?!1:this}}function pSe(){const t={get(d){return Nz(this,d)},get size(){return Qz(this)},has:Bz,add:hue,set:mue,delete:gue,clear:pue,forEach:Fz(!1,!1)},e={get(d){return Nz(this,d,!1,!0)},get size(){return Qz(this)},has:Bz,add:hue,set:mue,delete:gue,clear:pue,forEach:Fz(!1,!0)},r={get(d){return Nz(this,d,!0)},get size(){return Qz(this,!0)},has(d){return Bz.call(this,d,!0)},add:nS("add"),set:nS("set"),delete:nS("delete"),clear:nS("clear"),forEach:Fz(!0,!1)},a={get(d){return Nz(this,d,!0,!0)},get size(){return Qz(this,!0)},has(d){return Bz.call(this,d,!0)},add:nS("add"),set:nS("set"),delete:nS("delete"),clear:nS("clear"),forEach:Fz(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(d=>{t[d]=Vz(d,!1,!1),r[d]=Vz(d,!0,!1),e[d]=Vz(d,!1,!0),a[d]=Vz(d,!0,!0)}),[t,r,e,a]}const[vSe,ySe,bSe,OSe]=pSe();function Sae(t,e){const r=e?t?OSe:bSe:t?ySe:vSe;return(a,i,d)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?a:Reflect.get(mi(r,i)&&i in a?r:a,i,d)}const xSe={get:Sae(!1,!1)},SSe={get:Sae(!1,!0)},wSe={get:Sae(!0,!1)},Dge=new WeakMap,$ge=new WeakMap,Lge=new WeakMap,TSe=new WeakMap;function CSe(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function kSe(t){return t.__v_skip||!Object.isExtensible(t)?0:CSe(z2e(t))}function tm(t){return nM(t)?t:wae(t,!1,Rge,xSe,Dge)}function ASe(t){return wae(t,!1,gSe,SSe,$ge)}function E$(t){return wae(t,!0,mSe,wSe,Lge)}function wae(t,e,r,a,i){if(!Tl(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const d=i.get(t);if(d)return d;const f=kSe(t);if(f===0)return t;const m=new Proxy(t,f===2?a:r);return i.set(t,m),m}function HP(t){return nM(t)?HP(t.__v_raw):!!(t&&t.__v_isReactive)}function nM(t){return!!(t&&t.__v_isReadonly)}function qZ(t){return!!(t&&t.__v_isShallow)}function Ige(t){return HP(t)||nM(t)}function va(t){const e=t&&t.__v_raw;return e?va(e):t}function Nge(t){return GZ(t,"__v_skip",!0),t}const UD=t=>Tl(t)?tm(t):t,Tae=t=>Tl(t)?E$(t):t;function Bge(t){mS&&Lv&&(t=va(t),Mge(t.dep||(t.dep=yae())))}function Qge(t,e){t=va(t);const r=t.dep;r&&Coe(r)}function mc(t){return!!(t&&t.__v_isRef===!0)}function Vo(t){return Fge(t,!1)}function fs(t){return Fge(t,!0)}function Fge(t,e){return mc(t)?t:new PSe(t,e)}class PSe{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:va(e),this._value=r?e:UD(e)}get value(){return Bge(this),this._value}set value(e){const r=this.__v_isShallow||qZ(e)||nM(e);e=r?e:va(e),HD(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:UD(e),Qge(this))}}function ug(t){return mc(t)?t.value:t}const MSe={get:(t,e,r)=>ug(Reflect.get(t,e,r)),set:(t,e,r,a)=>{const i=t[e];return mc(i)&&!mc(r)?(i.value=r,!0):Reflect.set(t,e,r,a)}};function Vge(t){return HP(t)?t:new Proxy(t,MSe)}function sU(t){const e=Us(t)?new Array(t.length):{};for(const r in t)e[r]=zge(t,r);return e}class ESe{constructor(e,r,a){this._object=e,this._key=r,this._defaultValue=a,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return nSe(va(this._object),this._key)}}class _Se{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ns(t,e,r){return mc(t)?t:wa(t)?new _Se(t):Tl(t)&&arguments.length>1?zge(t,e,r):Vo(t)}function zge(t,e,r){const a=t[e];return mc(a)?a:new ESe(t,e,r)}class RSe{constructor(e,r,a,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new bae(e,()=>{this._dirty||(this._dirty=!0,Qge(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=a}get value(){const e=va(this);return Bge(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function DSe(t,e,r=!1){let a,i;const d=wa(t);return d?(a=t,i=Bv):(a=t.get,i=t.set),new RSe(a,i,d||!i,r)}function gS(t,e,r,a){let i;try{i=a?t(...a):t()}catch(d){aU(d,e,r)}return i}function Tp(t,e,r,a){if(wa(t)){const d=gS(t,e,r,a);return d&&Oge(d)&&d.catch(f=>{aU(f,e,r)}),d}const i=[];for(let d=0;d>>1;YD(wd[a])F1&&wd.splice(e,1)}function NSe(t){Us(t)?UP.push(...t):(!fO||!fO.includes(t,t.allowRecurse?vC+1:vC))&&UP.push(t),Hge()}function vue(t,e=WD?F1+1:0){for(;eYD(r)-YD(a)),vC=0;vCt.id==null?1/0:t.id,BSe=(t,e)=>{const r=YD(t)-YD(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function Wge(t){koe=!1,WD=!0,wd.sort(BSe);const e=Bv;try{for(F1=0;F1Bc(x)?x.trim():x)),y&&(i=r.map(xoe))}let m,u=a[m=H1(e)]||a[m=H1(Pp(e))];!u&&d&&(u=a[m=H1(bM(e))]),u&&Tp(u,t,6,i);const p=a[m+"Once"];if(p){if(!t.emitted)t.emitted={};else if(t.emitted[m])return;t.emitted[m]=!0,Tp(p,t,6,i)}}function Yge(t,e,r=!1){const a=e.emitsCache,i=a.get(t);if(i!==void 0)return i;const d=t.emits;let f={},m=!1;if(!wa(t)){const u=p=>{const v=Yge(p,e,!0);v&&(m=!0,Jc(f,v))};!r&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!d&&!m?(Tl(t)&&a.set(t,null),null):(Us(d)?d.forEach(u=>f[u]=null):Jc(f,d),Tl(t)&&a.set(t,f),f)}function iU(t,e){return!t||!JH(e)?!1:(e=e.slice(2).replace(/Once$/,""),mi(t,e[0].toLowerCase()+e.slice(1))||mi(t,bM(e))||mi(t,e))}let fg=null,Xge=null;function KZ(t){const e=fg;return fg=t,Xge=t&&t.type.__scopeId||null,e}function Yr(t,e=fg,r){if(!e||t._n)return t;const a=(...i)=>{a._d&&Eue(-1);const d=KZ(e);let f;try{f=t(...i)}finally{KZ(d),a._d&&Eue(1)}return f};return a._n=!0,a._c=!0,a._d=!0,a}function fre(t){const{type:e,vnode:r,proxy:a,withProxy:i,props:d,propsOptions:[f],slots:m,attrs:u,emit:p,render:v,renderCache:y,data:b,setupState:x,ctx:k,inheritAttrs:C}=t;let w,T;const R=KZ(t);try{if(r.shapeFlag&4){const I=i||a;w=Q1(v.call(I,I,y,d,x,b,k)),T=u}else{const I=e;w=Q1(I.length>1?I(d,{attrs:u,slots:m,emit:p}):I(d,null)),T=e.props?u:FSe(u)}}catch(I){DD.length=0,aU(I,t,1),w=lt(Qv)}let M=w;if(T&&C!==!1){const I=Object.keys(T),{shapeFlag:V}=M;I.length&&V&7&&(f&&I.some(hae)&&(T=VSe(T,f)),M=pO(M,T))}return r.dirs&&(M=pO(M),M.dirs=M.dirs?M.dirs.concat(r.dirs):r.dirs),r.transition&&(M.transition=r.transition),w=M,KZ(R),w}const FSe=t=>{let e;for(const r in t)(r==="class"||r==="style"||JH(r))&&((e||(e={}))[r]=t[r]);return e},VSe=(t,e)=>{const r={};for(const a in t)(!hae(a)||!(a.slice(9)in e))&&(r[a]=t[a]);return r};function zSe(t,e,r){const{props:a,children:i,component:d}=t,{props:f,children:m,patchFlag:u}=e,p=d.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&u>=0){if(u&1024)return!0;if(u&16)return a?yue(a,f,p):!!f;if(u&8){const v=e.dynamicProps;for(let y=0;yt.__isSuspense;function USe(t,e){e&&e.pendingBranch?Us(t)?e.effects.push(...t):e.effects.push(t):NSe(t)}function am(t,e){return Aae(t,null,e)}const zz={};function Ho(t,e,r){return Aae(t,e,r)}function Aae(t,e,{immediate:r,deep:a,flush:i,onTrack:d,onTrigger:f}=Bl){var m;const u=J2e()===((m=Of)==null?void 0:m.scope)?Of:null;let p,v=!1,y=!1;if(mc(t)?(p=()=>t.value,v=qZ(t)):HP(t)?(p=()=>t,a=!0):Us(t)?(y=!0,v=t.some(I=>HP(I)||qZ(I)),p=()=>t.map(I=>{if(mc(I))return I.value;if(HP(I))return wC(I);if(wa(I))return gS(I,u,2)})):wa(t)?e?p=()=>gS(t,u,2):p=()=>{if(!(u&&u.isUnmounted))return b&&b(),Tp(t,u,3,[x])}:p=Bv,e&&a){const I=p;p=()=>wC(I())}let b,x=I=>{b=R.onStop=()=>{gS(I,u,4)}},k;if(qD)if(x=Bv,e?r&&Tp(e,u,3,[p(),y?[]:void 0,x]):p(),i==="sync"){const I=Lwe();k=I.__watcherHandles||(I.__watcherHandles=[])}else return Bv;let C=y?new Array(t.length).fill(zz):zz;const w=()=>{if(R.active)if(e){const I=R.run();(a||v||(y?I.some((V,N)=>HD(V,C[N])):HD(I,C)))&&(b&&b(),Tp(e,u,3,[I,C===zz?void 0:y&&C[0]===zz?[]:C,x]),C=I)}else R.run()};w.allowRecurse=!!e;let T;i==="sync"?T=w:i==="post"?T=()=>Jh(w,u&&u.suspense):(w.pre=!0,u&&(w.id=u.uid),T=()=>kae(w));const R=new bae(p,T);e?r?w():C=R.run():i==="post"?Jh(R.run.bind(R),u&&u.suspense):R.run();const M=()=>{R.stop(),u&&u.scope&&mae(u.scope.effects,R)};return k&&k.push(M),M}function WSe(t,e,r){const a=this.proxy,i=Bc(t)?t.includes(".")?Gge(a,t):()=>a[t]:t.bind(a,a);let d;wa(e)?d=e:(d=e.handler,r=e);const f=Of;rM(this);const m=Aae(i,d.bind(a),r);return f?rM(f):MC(),m}function Gge(t,e){const r=e.split(".");return()=>{let a=t;for(let i=0;i{wC(r,e)});else if(Sge(t))for(const r in t)wC(t[r],e);return t}function Qu(t,e){const r=fg;if(r===null)return t;const a=fU(r)||r.proxy,i=t.dirs||(t.dirs=[]);for(let d=0;d{t.isMounted=!0}),im(()=>{t.isUnmounting=!0}),t}const pp=[Function,Array],qge={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pp,onEnter:pp,onAfterEnter:pp,onEnterCancelled:pp,onBeforeLeave:pp,onLeave:pp,onAfterLeave:pp,onLeaveCancelled:pp,onBeforeAppear:pp,onAppear:pp,onAfterAppear:pp,onAppearCancelled:pp},YSe={name:"BaseTransition",props:qge,setup(t,{slots:e}){const r=Bae(),a=jge();let i;return()=>{const d=e.default&&Pae(e.default(),!0);if(!d||!d.length)return;let f=d[0];if(d.length>1){for(const C of d)if(C.type!==Qv){f=C;break}}const m=va(t),{mode:u}=m;if(a.isLeaving)return dre(f);const p=bue(f);if(!p)return dre(f);const v=XD(p,m,a,r);GD(p,v);const y=r.subTree,b=y&&bue(y);let x=!1;const{getTransitionKey:k}=p.type;if(k){const C=k();i===void 0?i=C:C!==i&&(i=C,x=!0)}if(b&&b.type!==Qv&&(!yC(p,b)||x)){const C=XD(b,m,a,r);if(GD(b,C),u==="out-in")return a.isLeaving=!0,C.afterLeave=()=>{a.isLeaving=!1,r.update.active!==!1&&r.update()},dre(f);u==="in-out"&&p.type!==Qv&&(C.delayLeave=(w,T,R)=>{const M=Kge(a,b);M[String(b.key)]=b,w._leaveCb=()=>{T(),w._leaveCb=void 0,delete v.delayedLeave},v.delayedLeave=R})}return f}}},XSe=YSe;function Kge(t,e){const{leavingVNodes:r}=t;let a=r.get(e.type);return a||(a=Object.create(null),r.set(e.type,a)),a}function XD(t,e,r,a){const{appear:i,mode:d,persisted:f=!1,onBeforeEnter:m,onEnter:u,onAfterEnter:p,onEnterCancelled:v,onBeforeLeave:y,onLeave:b,onAfterLeave:x,onLeaveCancelled:k,onBeforeAppear:C,onAppear:w,onAfterAppear:T,onAppearCancelled:R}=e,M=String(t.key),I=Kge(r,t),V=(z,U)=>{z&&Tp(z,a,9,U)},N=(z,U)=>{const Q=U[1];V(z,U),Us(z)?z.every(B=>B.length<=1)&&Q():z.length<=1&&Q()},F={mode:d,persisted:f,beforeEnter(z){let U=m;if(!r.isMounted)if(i)U=C||m;else return;z._leaveCb&&z._leaveCb(!0);const Q=I[M];Q&&yC(t,Q)&&Q.el._leaveCb&&Q.el._leaveCb(),V(U,[z])},enter(z){let U=u,Q=p,B=v;if(!r.isMounted)if(i)U=w||u,Q=T||p,B=R||v;else return;let E=!1;const W=z._enterCb=Y=>{E||(E=!0,Y?V(B,[z]):V(Q,[z]),F.delayedLeave&&F.delayedLeave(),z._enterCb=void 0)};U?N(U,[z,W]):W()},leave(z,U){const Q=String(t.key);if(z._enterCb&&z._enterCb(!0),r.isUnmounting)return U();V(y,[z]);let B=!1;const E=z._leaveCb=W=>{B||(B=!0,U(),W?V(k,[z]):V(x,[z]),z._leaveCb=void 0,I[Q]===t&&delete I[Q])};I[Q]=t,b?N(b,[z,E]):E()},clone(z){return XD(z,e,r,a)}};return F}function dre(t){if(lU(t))return t=pO(t),t.children=null,t}function bue(t){return lU(t)?t.children?t.children[0]:void 0:t}function GD(t,e){t.shapeFlag&6&&t.component?GD(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Pae(t,e=!1,r){let a=[],i=0;for(let d=0;d1)for(let d=0;dJc({name:t.name},e,{setup:t}))():t}const MZ=t=>!!t.type.__asyncLoader,lU=t=>t.type.__isKeepAlive;function Mae(t,e){Jge(t,"a",e)}function Eae(t,e){Jge(t,"da",e)}function Jge(t,e,r=Of){const a=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(cU(e,a,r),r){let i=r.parent;for(;i&&i.parent;)lU(i.parent.vnode)&&GSe(a,e,r,i),i=i.parent}}function GSe(t,e,r,a){const i=cU(e,t,a,!0);tpe(()=>{mae(a[e],i)},r)}function cU(t,e,r=Of,a=!1){if(r){const i=r[t]||(r[t]=[]),d=e.__weh||(e.__weh=(...f)=>{if(r.isUnmounted)return;OM(),rM(r);const m=Tp(e,r,t,f);return MC(),xM(),m});return a?i.unshift(d):i.push(d),d}}const wO=t=>(e,r=Of)=>(!qD||t==="sp")&&cU(t,(...a)=>e(...a),r),_ae=wO("bm"),gg=wO("m"),jSe=wO("bu"),epe=wO("u"),im=wO("bum"),tpe=wO("um"),qSe=wO("sp"),KSe=wO("rtg"),JSe=wO("rtc");function ewe(t,e=Of){cU("ec",t,e)}const Rae="components",twe="directives";function q1(t,e){return Dae(Rae,t,!0,e)||t}const npe=Symbol.for("v-ndc");function sg(t){return Bc(t)?Dae(Rae,t,!1)||t:t||npe}function Hv(t){return Dae(twe,t)}function Dae(t,e,r=!0,a=!1){const i=fg||Of;if(i){const d=i.type;if(t===Rae){const m=Rwe(d,!1);if(m&&(m===e||m===Pp(e)||m===SO(Pp(e))))return d}const f=Oue(i[t]||d[t],e)||Oue(i.appContext[t],e);return!f&&a?d:f}}function Oue(t,e){return t&&(t[e]||t[Pp(e)]||t[SO(Pp(e))])}function Hf(t,e,r,a){let i;const d=r&&r[a];if(Us(t)||Bc(t)){i=new Array(t.length);for(let f=0,m=t.length;fe(f,m,void 0,d&&d[m]));else{const f=Object.keys(t);i=new Array(f.length);for(let m=0,u=f.length;mt?hpe(t)?fU(t)||t.proxy:Aoe(t.parent):null,_D=Jc(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Aoe(t.parent),$root:t=>Aoe(t.root),$emit:t=>t.emit,$options:t=>$ae(t),$forceUpdate:t=>t.f||(t.f=()=>kae(t.update)),$nextTick:t=>t.n||(t.n=ec.bind(t.proxy)),$watch:t=>WSe.bind(t)}),hre=(t,e)=>t!==Bl&&!t.__isScriptSetup&&mi(t,e),nwe={get({_:t},e){const{ctx:r,setupState:a,data:i,props:d,accessCache:f,type:m,appContext:u}=t;let p;if(e[0]!=="$"){const x=f[e];if(x!==void 0)switch(x){case 1:return a[e];case 2:return i[e];case 4:return r[e];case 3:return d[e]}else{if(hre(a,e))return f[e]=1,a[e];if(i!==Bl&&mi(i,e))return f[e]=2,i[e];if((p=t.propsOptions[0])&&mi(p,e))return f[e]=3,d[e];if(r!==Bl&&mi(r,e))return f[e]=4,r[e];Poe&&(f[e]=0)}}const v=_D[e];let y,b;if(v)return e==="$attrs"&&sm(t,"get",e),v(t);if((y=m.__cssModules)&&(y=y[e]))return y;if(r!==Bl&&mi(r,e))return f[e]=4,r[e];if(b=u.config.globalProperties,mi(b,e))return b[e]},set({_:t},e,r){const{data:a,setupState:i,ctx:d}=t;return hre(i,e)?(i[e]=r,!0):a!==Bl&&mi(a,e)?(a[e]=r,!0):mi(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(d[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:a,appContext:i,propsOptions:d}},f){let m;return!!r[f]||t!==Bl&&mi(t,f)||hre(e,f)||(m=d[0])&&mi(m,f)||mi(a,f)||mi(_D,f)||mi(i.config.globalProperties,f)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:mi(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function xue(t){return Us(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let Poe=!0;function rwe(t){const e=$ae(t),r=t.proxy,a=t.ctx;Poe=!1,e.beforeCreate&&Sue(e.beforeCreate,t,"bc");const{data:i,computed:d,methods:f,watch:m,provide:u,inject:p,created:v,beforeMount:y,mounted:b,beforeUpdate:x,updated:k,activated:C,deactivated:w,beforeDestroy:T,beforeUnmount:R,destroyed:M,unmounted:I,render:V,renderTracked:N,renderTriggered:F,errorCaptured:z,serverPrefetch:U,expose:Q,inheritAttrs:B,components:E,directives:W,filters:Y}=e;if(p&&owe(p,a,null),f)for(const me in f){const ae=f[me];wa(ae)&&(a[me]=ae.bind(r))}if(i){const me=i.call(r,r);Tl(me)&&(t.data=tm(me))}if(Poe=!0,d)for(const me in d){const ae=d[me],q=wa(ae)?ae.bind(r,r):wa(ae.get)?ae.get.bind(r,r):Bv,fe=!wa(ae)&&wa(ae.set)?ae.set.bind(r):Bv,ee=sn({get:q,set:fe});Object.defineProperty(a,me,{enumerable:!0,configurable:!0,get:()=>ee.value,set:be=>ee.value=be})}if(m)for(const me in m)rpe(m[me],a,r,me);if(u){const me=wa(u)?u.call(r):u;Reflect.ownKeys(me).forEach(ae=>{pc(ae,me[ae])})}v&&Sue(v,t,"c");function L(me,ae){Us(ae)?ae.forEach(q=>me(q.bind(r))):ae&&me(ae.bind(r))}if(L(_ae,y),L(gg,b),L(jSe,x),L(epe,k),L(Mae,C),L(Eae,w),L(ewe,z),L(JSe,N),L(KSe,F),L(im,R),L(tpe,I),L(qSe,U),Us(Q))if(Q.length){const me=t.exposed||(t.exposed={});Q.forEach(ae=>{Object.defineProperty(me,ae,{get:()=>r[ae],set:q=>r[ae]=q})})}else t.exposed||(t.exposed={});V&&t.render===Bv&&(t.render=V),B!=null&&(t.inheritAttrs=B),E&&(t.components=E),W&&(t.directives=W)}function owe(t,e,r=Bv){Us(t)&&(t=Moe(t));for(const a in t){const i=t[a];let d;Tl(i)?"default"in i?d=ai(i.from||a,i.default,!0):d=ai(i.from||a):d=ai(i),mc(d)?Object.defineProperty(e,a,{enumerable:!0,configurable:!0,get:()=>d.value,set:f=>d.value=f}):e[a]=d}}function Sue(t,e,r){Tp(Us(t)?t.map(a=>a.bind(e.proxy)):t.bind(e.proxy),e,r)}function rpe(t,e,r,a){const i=a.includes(".")?Gge(r,a):()=>r[a];if(Bc(t)){const d=e[t];wa(d)&&Ho(i,d)}else if(wa(t))Ho(i,t.bind(r));else if(Tl(t))if(Us(t))t.forEach(d=>rpe(d,e,r,a));else{const d=wa(t.handler)?t.handler.bind(r):e[t.handler];wa(d)&&Ho(i,d,t)}}function $ae(t){const e=t.type,{mixins:r,extends:a}=e,{mixins:i,optionsCache:d,config:{optionMergeStrategies:f}}=t.appContext,m=d.get(e);let u;return m?u=m:!i.length&&!r&&!a?u=e:(u={},i.length&&i.forEach(p=>JZ(u,p,f,!0)),JZ(u,e,f)),Tl(e)&&d.set(e,u),u}function JZ(t,e,r,a=!1){const{mixins:i,extends:d}=e;d&&JZ(t,d,r,!0),i&&i.forEach(f=>JZ(t,f,r,!0));for(const f in e)if(!(a&&f==="expose")){const m=swe[f]||r&&r[f];t[f]=m?m(t[f],e[f]):e[f]}return t}const swe={data:wue,props:Tue,emits:Tue,methods:TD,computed:TD,beforeCreate:lh,created:lh,beforeMount:lh,mounted:lh,beforeUpdate:lh,updated:lh,beforeDestroy:lh,beforeUnmount:lh,destroyed:lh,unmounted:lh,activated:lh,deactivated:lh,errorCaptured:lh,serverPrefetch:lh,components:TD,directives:TD,watch:iwe,provide:wue,inject:awe};function wue(t,e){return e?t?function(){return Jc(wa(t)?t.call(this,this):t,wa(e)?e.call(this,this):e)}:e:t}function awe(t,e){return TD(Moe(t),Moe(e))}function Moe(t){if(Us(t)){const e={};for(let r=0;r1)return r&&wa(e)?e.call(a&&a.proxy):e}}function uwe(t,e,r,a=!1){const i={},d={};GZ(d,uU,1),t.propsDefaults=Object.create(null),spe(t,e,i,d);for(const f in t.propsOptions[0])f in i||(i[f]=void 0);r?t.props=a?i:ASe(i):t.type.props?t.props=i:t.props=d,t.attrs=d}function fwe(t,e,r,a){const{props:i,attrs:d,vnode:{patchFlag:f}}=t,m=va(i),[u]=t.propsOptions;let p=!1;if((a||f>0)&&!(f&16)){if(f&8){const v=t.vnode.dynamicProps;for(let y=0;y{u=!0;const[b,x]=ape(y,e,!0);Jc(f,b),x&&m.push(...x)};!r&&e.mixins.length&&e.mixins.forEach(v),t.extends&&v(t.extends),t.mixins&&t.mixins.forEach(v)}if(!d&&!u)return Tl(t)&&a.set(t,zP),zP;if(Us(d))for(let v=0;v-1,x[1]=C<0||k-1||mi(x,"default"))&&m.push(y)}}}const p=[f,m];return Tl(t)&&a.set(t,p),p}function Cue(t){return t[0]!=="$"}function kue(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Aue(t,e){return kue(t)===kue(e)}function Pue(t,e){return Us(e)?e.findIndex(r=>Aue(r,t)):wa(e)&&Aue(e,t)?0:-1}const ipe=t=>t[0]==="_"||t==="$stable",Lae=t=>Us(t)?t.map(Q1):[Q1(t)],dwe=(t,e,r)=>{if(e._n)return e;const a=Yr((...i)=>Lae(e(...i)),r);return a._c=!1,a},lpe=(t,e,r)=>{const a=t._ctx;for(const i in t){if(ipe(i))continue;const d=t[i];if(wa(d))e[i]=dwe(i,d,a);else if(d!=null){const f=Lae(d);e[i]=()=>f}}},cpe=(t,e)=>{const r=Lae(e);t.slots.default=()=>r},hwe=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=va(e),GZ(e,"_",r)):lpe(e,t.slots={})}else t.slots={},e&&cpe(t,e);GZ(t.slots,uU,1)},mwe=(t,e,r)=>{const{vnode:a,slots:i}=t;let d=!0,f=Bl;if(a.shapeFlag&32){const m=e._;m?r&&m===1?d=!1:(Jc(i,e),!r&&m===1&&delete i._):(d=!e.$stable,lpe(e,i)),f=e}else e&&(cpe(t,e),f={default:1});if(d)for(const m in i)!ipe(m)&&!(m in f)&&delete i[m]};function _oe(t,e,r,a,i=!1){if(Us(t)){t.forEach((b,x)=>_oe(b,e&&(Us(e)?e[x]:e),r,a,i));return}if(MZ(a)&&!i)return;const d=a.shapeFlag&4?fU(a.component)||a.component.proxy:a.el,f=i?null:d,{i:m,r:u}=t,p=e&&e.r,v=m.refs===Bl?m.refs={}:m.refs,y=m.setupState;if(p!=null&&p!==u&&(Bc(p)?(v[p]=null,mi(y,p)&&(y[p]=null)):mc(p)&&(p.value=null)),wa(u))gS(u,m,12,[f,v]);else{const b=Bc(u),x=mc(u);if(b||x){const k=()=>{if(t.f){const C=b?mi(y,u)?y[u]:v[u]:u.value;i?Us(C)&&mae(C,d):Us(C)?C.includes(d)||C.push(d):b?(v[u]=[d],mi(y,u)&&(y[u]=v[u])):(u.value=[d],t.k&&(v[t.k]=u.value))}else b?(v[u]=f,mi(y,u)&&(y[u]=f)):x&&(u.value=f,t.k&&(v[t.k]=f))};f?(k.id=-1,Jh(k,r)):k()}}}const Jh=USe;function gwe(t){return pwe(t)}function pwe(t,e){const r=Soe();r.__VUE__=!0;const{insert:a,remove:i,patchProp:d,createElement:f,createText:m,createComment:u,setText:p,setElementText:v,parentNode:y,nextSibling:b,setScopeId:x=Bv,insertStaticContent:k}=t,C=(ke,$e,Ze,De=null,Ie=null,re=null,ye=!1,te=null,se=!!$e.dynamicChildren)=>{if(ke===$e)return;ke&&!yC(ke,$e)&&(De=pe(ke),be(ke,Ie,re,!0),ke=null),$e.patchFlag===-2&&(se=!1,$e.dynamicChildren=null);const{type:ue,ref:oe,shapeFlag:Se}=$e;switch(ue){case R$:w(ke,$e,Ze,De);break;case Qv:T(ke,$e,Ze,De);break;case mre:ke==null&&R($e,Ze,De,ye);break;case Go:E(ke,$e,Ze,De,Ie,re,ye,te,se);break;default:Se&1?V(ke,$e,Ze,De,Ie,re,ye,te,se):Se&6?W(ke,$e,Ze,De,Ie,re,ye,te,se):(Se&64||Se&128)&&ue.process(ke,$e,Ze,De,Ie,re,ye,te,se,Oe)}oe!=null&&Ie&&_oe(oe,ke&&ke.ref,re,$e||ke,!$e)},w=(ke,$e,Ze,De)=>{if(ke==null)a($e.el=m($e.children),Ze,De);else{const Ie=$e.el=ke.el;$e.children!==ke.children&&p(Ie,$e.children)}},T=(ke,$e,Ze,De)=>{ke==null?a($e.el=u($e.children||""),Ze,De):$e.el=ke.el},R=(ke,$e,Ze,De)=>{[ke.el,ke.anchor]=k(ke.children,$e,Ze,De,ke.el,ke.anchor)},M=({el:ke,anchor:$e},Ze,De)=>{let Ie;for(;ke&&ke!==$e;)Ie=b(ke),a(ke,Ze,De),ke=Ie;a($e,Ze,De)},I=({el:ke,anchor:$e})=>{let Ze;for(;ke&&ke!==$e;)Ze=b(ke),i(ke),ke=Ze;i($e)},V=(ke,$e,Ze,De,Ie,re,ye,te,se)=>{ye=ye||$e.type==="svg",ke==null?N($e,Ze,De,Ie,re,ye,te,se):U(ke,$e,Ie,re,ye,te,se)},N=(ke,$e,Ze,De,Ie,re,ye,te)=>{let se,ue;const{type:oe,props:Se,shapeFlag:le,transition:Ce,dirs:Qe}=ke;if(se=ke.el=f(ke.type,re,Se&&Se.is,Se),le&8?v(se,ke.children):le&16&&z(ke.children,se,null,De,Ie,re&&oe!=="foreignObject",ye,te),Qe&&lC(ke,null,De,"created"),F(se,ke,ke.scopeId,ye,De),Se){for(const Xe in Se)Xe!=="value"&&!AZ(Xe)&&d(se,Xe,null,Se[Xe],re,ke.children,De,Ie,ne);"value"in Se&&d(se,"value",null,Se.value),(ue=Se.onVnodeBeforeMount)&&D1(ue,De,ke)}Qe&&lC(ke,null,De,"beforeMount");const ze=(!Ie||Ie&&!Ie.pendingBranch)&&Ce&&!Ce.persisted;ze&&Ce.beforeEnter(se),a(se,$e,Ze),((ue=Se&&Se.onVnodeMounted)||ze||Qe)&&Jh(()=>{ue&&D1(ue,De,ke),ze&&Ce.enter(se),Qe&&lC(ke,null,De,"mounted")},Ie)},F=(ke,$e,Ze,De,Ie)=>{if(Ze&&x(ke,Ze),De)for(let re=0;re{for(let ue=se;ue{const te=$e.el=ke.el;let{patchFlag:se,dynamicChildren:ue,dirs:oe}=$e;se|=ke.patchFlag&16;const Se=ke.props||Bl,le=$e.props||Bl;let Ce;Ze&&cC(Ze,!1),(Ce=le.onVnodeBeforeUpdate)&&D1(Ce,Ze,$e,ke),oe&&lC($e,ke,Ze,"beforeUpdate"),Ze&&cC(Ze,!0);const Qe=Ie&&$e.type!=="foreignObject";if(ue?Q(ke.dynamicChildren,ue,te,Ze,De,Qe,re):ye||ae(ke,$e,te,null,Ze,De,Qe,re,!1),se>0){if(se&16)B(te,$e,Se,le,Ze,De,Ie);else if(se&2&&Se.class!==le.class&&d(te,"class",null,le.class,Ie),se&4&&d(te,"style",Se.style,le.style,Ie),se&8){const ze=$e.dynamicProps;for(let Xe=0;Xe{Ce&&D1(Ce,Ze,$e,ke),oe&&lC($e,ke,Ze,"updated")},De)},Q=(ke,$e,Ze,De,Ie,re,ye)=>{for(let te=0;te<$e.length;te++){const se=ke[te],ue=$e[te],oe=se.el&&(se.type===Go||!yC(se,ue)||se.shapeFlag&70)?y(se.el):Ze;C(se,ue,oe,null,De,Ie,re,ye,!0)}},B=(ke,$e,Ze,De,Ie,re,ye)=>{if(Ze!==De){if(Ze!==Bl)for(const te in Ze)!AZ(te)&&!(te in De)&&d(ke,te,Ze[te],null,ye,$e.children,Ie,re,ne);for(const te in De){if(AZ(te))continue;const se=De[te],ue=Ze[te];se!==ue&&te!=="value"&&d(ke,te,ue,se,ye,$e.children,Ie,re,ne)}"value"in De&&d(ke,"value",Ze.value,De.value)}},E=(ke,$e,Ze,De,Ie,re,ye,te,se)=>{const ue=$e.el=ke?ke.el:m(""),oe=$e.anchor=ke?ke.anchor:m("");let{patchFlag:Se,dynamicChildren:le,slotScopeIds:Ce}=$e;Ce&&(te=te?te.concat(Ce):Ce),ke==null?(a(ue,Ze,De),a(oe,Ze,De),z($e.children,Ze,oe,Ie,re,ye,te,se)):Se>0&&Se&64&&le&&ke.dynamicChildren?(Q(ke.dynamicChildren,le,Ze,Ie,re,ye,te),($e.key!=null||Ie&&$e===Ie.subTree)&&Iae(ke,$e,!0)):ae(ke,$e,Ze,oe,Ie,re,ye,te,se)},W=(ke,$e,Ze,De,Ie,re,ye,te,se)=>{$e.slotScopeIds=te,ke==null?$e.shapeFlag&512?Ie.ctx.activate($e,Ze,De,ye,se):Y($e,Ze,De,Ie,re,ye,se):ie(ke,$e,se)},Y=(ke,$e,Ze,De,Ie,re,ye)=>{const te=ke.component=Awe(ke,De,Ie);if(lU(ke)&&(te.ctx.renderer=Oe),Pwe(te),te.asyncDep){if(Ie&&Ie.registerDep(te,L),!ke.el){const se=te.subTree=lt(Qv);T(null,se,$e,Ze)}return}L(te,ke,$e,Ze,Ie,re,ye)},ie=(ke,$e,Ze)=>{const De=$e.component=ke.component;if(zSe(ke,$e,Ze))if(De.asyncDep&&!De.asyncResolved){me(De,$e,Ze);return}else De.next=$e,ISe(De.update),De.update();else $e.el=ke.el,De.vnode=$e},L=(ke,$e,Ze,De,Ie,re,ye)=>{const te=()=>{if(ke.isMounted){let{next:oe,bu:Se,u:le,parent:Ce,vnode:Qe}=ke,ze=oe,Xe;cC(ke,!1),oe?(oe.el=Qe.el,me(ke,oe,ye)):oe=Qe,Se&&PZ(Se),(Xe=oe.props&&oe.props.onVnodeBeforeUpdate)&&D1(Xe,Ce,oe,Qe),cC(ke,!0);const ct=fre(ke),pt=ke.subTree;ke.subTree=ct,C(pt,ct,y(pt.el),pe(pt),ke,Ie,re),oe.el=ct.el,ze===null&&ZSe(ke,ct.el),le&&Jh(le,Ie),(Xe=oe.props&&oe.props.onVnodeUpdated)&&Jh(()=>D1(Xe,Ce,oe,Qe),Ie)}else{let oe;const{el:Se,props:le}=$e,{bm:Ce,m:Qe,parent:ze}=ke,Xe=MZ($e);if(cC(ke,!1),Ce&&PZ(Ce),!Xe&&(oe=le&&le.onVnodeBeforeMount)&&D1(oe,ze,$e),cC(ke,!0),Se&&Le){const ct=()=>{ke.subTree=fre(ke),Le(Se,ke.subTree,ke,Ie,null)};Xe?$e.type.__asyncLoader().then(()=>!ke.isUnmounted&&ct()):ct()}else{const ct=ke.subTree=fre(ke);C(null,ct,Ze,De,ke,Ie,re),$e.el=ct.el}if(Qe&&Jh(Qe,Ie),!Xe&&(oe=le&&le.onVnodeMounted)){const ct=$e;Jh(()=>D1(oe,ze,ct),Ie)}($e.shapeFlag&256||ze&&MZ(ze.vnode)&&ze.vnode.shapeFlag&256)&&ke.a&&Jh(ke.a,Ie),ke.isMounted=!0,$e=Ze=De=null}},se=ke.effect=new bae(te,()=>kae(ue),ke.scope),ue=ke.update=()=>se.run();ue.id=ke.uid,cC(ke,!0),ue()},me=(ke,$e,Ze)=>{$e.component=ke;const De=ke.vnode.props;ke.vnode=$e,ke.next=null,fwe(ke,$e.props,De,Ze),mwe(ke,$e.children,Ze),OM(),vue(),xM()},ae=(ke,$e,Ze,De,Ie,re,ye,te,se=!1)=>{const ue=ke&&ke.children,oe=ke?ke.shapeFlag:0,Se=$e.children,{patchFlag:le,shapeFlag:Ce}=$e;if(le>0){if(le&128){fe(ue,Se,Ze,De,Ie,re,ye,te,se);return}else if(le&256){q(ue,Se,Ze,De,Ie,re,ye,te,se);return}}Ce&8?(oe&16&&ne(ue,Ie,re),Se!==ue&&v(Ze,Se)):oe&16?Ce&16?fe(ue,Se,Ze,De,Ie,re,ye,te,se):ne(ue,Ie,re,!0):(oe&8&&v(Ze,""),Ce&16&&z(Se,Ze,De,Ie,re,ye,te,se))},q=(ke,$e,Ze,De,Ie,re,ye,te,se)=>{ke=ke||zP,$e=$e||zP;const ue=ke.length,oe=$e.length,Se=Math.min(ue,oe);let le;for(le=0;leoe?ne(ke,Ie,re,!0,!1,Se):z($e,Ze,De,Ie,re,ye,te,se,Se)},fe=(ke,$e,Ze,De,Ie,re,ye,te,se)=>{let ue=0;const oe=$e.length;let Se=ke.length-1,le=oe-1;for(;ue<=Se&&ue<=le;){const Ce=ke[ue],Qe=$e[ue]=se?aS($e[ue]):Q1($e[ue]);if(yC(Ce,Qe))C(Ce,Qe,Ze,null,Ie,re,ye,te,se);else break;ue++}for(;ue<=Se&&ue<=le;){const Ce=ke[Se],Qe=$e[le]=se?aS($e[le]):Q1($e[le]);if(yC(Ce,Qe))C(Ce,Qe,Ze,null,Ie,re,ye,te,se);else break;Se--,le--}if(ue>Se){if(ue<=le){const Ce=le+1,Qe=Cele)for(;ue<=Se;)be(ke[ue],Ie,re,!0),ue++;else{const Ce=ue,Qe=ue,ze=new Map;for(ue=Qe;ue<=le;ue++){const ft=$e[ue]=se?aS($e[ue]):Q1($e[ue]);ft.key!=null&&ze.set(ft.key,ue)}let Xe,ct=0;const pt=le-Qe+1;let Ye=!1,je=0;const et=new Array(pt);for(ue=0;ue=pt){be(ft,Ie,re,!0);continue}let tt;if(ft.key!=null)tt=ze.get(ft.key);else for(Xe=Qe;Xe<=le;Xe++)if(et[Xe-Qe]===0&&yC(ft,$e[Xe])){tt=Xe;break}tt===void 0?be(ft,Ie,re,!0):(et[tt-Qe]=ue+1,tt>=je?je=tt:Ye=!0,C(ft,$e[tt],Ze,null,Ie,re,ye,te,se),ct++)}const yt=Ye?vwe(et):zP;for(Xe=yt.length-1,ue=pt-1;ue>=0;ue--){const ft=Qe+ue,tt=$e[ft],wt=ft+1{const{el:re,type:ye,transition:te,children:se,shapeFlag:ue}=ke;if(ue&6){ee(ke.component.subTree,$e,Ze,De);return}if(ue&128){ke.suspense.move($e,Ze,De);return}if(ue&64){ye.move(ke,$e,Ze,Oe);return}if(ye===Go){a(re,$e,Ze);for(let Se=0;Sete.enter(re),Ie);else{const{leave:Se,delayLeave:le,afterLeave:Ce}=te,Qe=()=>a(re,$e,Ze),ze=()=>{Se(re,()=>{Qe(),Ce&&Ce()})};le?le(re,Qe,ze):ze()}else a(re,$e,Ze)},be=(ke,$e,Ze,De=!1,Ie=!1)=>{const{type:re,props:ye,ref:te,children:se,dynamicChildren:ue,shapeFlag:oe,patchFlag:Se,dirs:le}=ke;if(te!=null&&_oe(te,null,Ze,ke,!0),oe&256){$e.ctx.deactivate(ke);return}const Ce=oe&1&&le,Qe=!MZ(ke);let ze;if(Qe&&(ze=ye&&ye.onVnodeBeforeUnmount)&&D1(ze,$e,ke),oe&6)ge(ke.component,Ze,De);else{if(oe&128){ke.suspense.unmount(Ze,De);return}Ce&&lC(ke,null,$e,"beforeUnmount"),oe&64?ke.type.remove(ke,$e,Ze,Ie,Oe,De):ue&&(re!==Go||Se>0&&Se&64)?ne(ue,$e,Ze,!1,!0):(re===Go&&Se&384||!Ie&&oe&16)&&ne(se,$e,Ze),De&&Te(ke)}(Qe&&(ze=ye&&ye.onVnodeUnmounted)||Ce)&&Jh(()=>{ze&&D1(ze,$e,ke),Ce&&lC(ke,null,$e,"unmounted")},Ze)},Te=ke=>{const{type:$e,el:Ze,anchor:De,transition:Ie}=ke;if($e===Go){Be(Ze,De);return}if($e===mre){I(ke);return}const re=()=>{i(Ze),Ie&&!Ie.persisted&&Ie.afterLeave&&Ie.afterLeave()};if(ke.shapeFlag&1&&Ie&&!Ie.persisted){const{leave:ye,delayLeave:te}=Ie,se=()=>ye(Ze,re);te?te(ke.el,re,se):se()}else re()},Be=(ke,$e)=>{let Ze;for(;ke!==$e;)Ze=b(ke),i(ke),ke=Ze;i($e)},ge=(ke,$e,Ze)=>{const{bum:De,scope:Ie,update:re,subTree:ye,um:te}=ke;De&&PZ(De),Ie.stop(),re&&(re.active=!1,be(ye,ke,$e,Ze)),te&&Jh(te,$e),Jh(()=>{ke.isUnmounted=!0},$e),$e&&$e.pendingBranch&&!$e.isUnmounted&&ke.asyncDep&&!ke.asyncResolved&&ke.suspenseId===$e.pendingId&&($e.deps--,$e.deps===0&&$e.resolve())},ne=(ke,$e,Ze,De=!1,Ie=!1,re=0)=>{for(let ye=re;yeke.shapeFlag&6?pe(ke.component.subTree):ke.shapeFlag&128?ke.suspense.next():b(ke.anchor||ke.el),G=(ke,$e,Ze)=>{ke==null?$e._vnode&&be($e._vnode,null,null,!0):C($e._vnode||null,ke,$e,null,null,null,Ze),vue(),Uge(),$e._vnode=ke},Oe={p:C,um:be,m:ee,r:Te,mt:Y,mc:z,pc:ae,pbc:Q,n:pe,o:t};let xe,Le;return e&&([xe,Le]=e(Oe)),{render:G,hydrate:xe,createApp:cwe(G,xe)}}function cC({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function Iae(t,e,r=!1){const a=t.children,i=e.children;if(Us(a)&&Us(i))for(let d=0;d>1,t[r[m]]0&&(e[a]=r[d-1]),r[d]=a)}}for(d=r.length,f=r[d-1];d-- >0;)r[d]=f,f=e[f];return r}const ywe=t=>t.__isTeleport,RD=t=>t&&(t.disabled||t.disabled===""),Mue=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Roe=(t,e)=>{const r=t&&t.to;return Bc(r)?e?e(r):null:r},bwe={__isTeleport:!0,process(t,e,r,a,i,d,f,m,u,p){const{mc:v,pc:y,pbc:b,o:{insert:x,querySelector:k,createText:C,createComment:w}}=p,T=RD(e.props);let{shapeFlag:R,children:M,dynamicChildren:I}=e;if(t==null){const V=e.el=C(""),N=e.anchor=C("");x(V,r,a),x(N,r,a);const F=e.target=Roe(e.props,k),z=e.targetAnchor=C("");F&&(x(z,F),f=f||Mue(F));const U=(Q,B)=>{R&16&&v(M,Q,B,i,d,f,m,u)};T?U(r,N):F&&U(F,z)}else{e.el=t.el;const V=e.anchor=t.anchor,N=e.target=t.target,F=e.targetAnchor=t.targetAnchor,z=RD(t.props),U=z?r:N,Q=z?V:F;if(f=f||Mue(N),I?(b(t.dynamicChildren,I,U,i,d,f,m),Iae(t,e,!0)):u||y(t,e,U,Q,i,d,f,m,!1),T)z||Zz(e,r,V,p,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const B=e.target=Roe(e.props,k);B&&Zz(e,B,null,p,0)}else z&&Zz(e,N,F,p,1)}upe(e)},remove(t,e,r,a,{um:i,o:{remove:d}},f){const{shapeFlag:m,children:u,anchor:p,targetAnchor:v,target:y,props:b}=t;if(y&&d(v),(f||!RD(b))&&(d(p),m&16))for(let x=0;x0?Iv||zP:null,Swe(),jD>0&&Iv&&Iv.push(t),t}function La(t,e,r,a,i,d){return fpe(kd(t,e,r,a,i,d,!0))}function Ts(t,e,r,a,i){return fpe(lt(t,e,r,a,i,!0))}function Doe(t){return t?t.__v_isVNode===!0:!1}function yC(t,e){return t.type===e.type&&t.key===e.key}const uU="__vInternal",dpe=({key:t})=>t??null,EZ=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?Bc(t)||mc(t)||wa(t)?{i:fg,r:t,k:e,f:!!r}:t:null);function kd(t,e=null,r=null,a=0,i=null,d=t===Go?0:1,f=!1,m=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&dpe(e),ref:e&&EZ(e),scopeId:Xge,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:d,patchFlag:a,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:fg};return m?(Nae(u,r),d&128&&t.normalize(u)):r&&(u.shapeFlag|=Bc(r)?8:16),jD>0&&!f&&Iv&&(u.patchFlag>0||d&6)&&u.patchFlag!==32&&Iv.push(u),u}const lt=wwe;function wwe(t,e=null,r=null,a=0,i=null,d=!1){if((!t||t===npe)&&(t=Qv),Doe(t)){const m=pO(t,e,!0);return r&&Nae(m,r),jD>0&&!d&&Iv&&(m.shapeFlag&6?Iv[Iv.indexOf(t)]=m:Iv.push(m)),m.patchFlag|=-2,m}if(Dwe(t)&&(t=t.__vccOpts),e){e=Twe(e);let{class:m,style:u}=e;m&&!Bc(m)&&(e.class=rU(m)),Tl(u)&&(Ige(u)&&!Us(u)&&(u=Jc({},u)),e.style=nU(u))}const f=Bc(t)?1:HSe(t)?128:ywe(t)?64:Tl(t)?4:wa(t)?2:0;return kd(t,e,r,a,i,f,d,!0)}function Twe(t){return t?Ige(t)||uU in t?Jc({},t):t:null}function pO(t,e,r=!1){const{props:a,ref:i,patchFlag:d,children:f}=t,m=e?rs(a||{},e):a;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:m,key:m&&dpe(m),ref:e&&e.ref?r&&i?Us(i)?i.concat(EZ(e)):[i,EZ(e)]:EZ(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:f,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Go?d===-1?16:d|16:d,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&pO(t.ssContent),ssFallback:t.ssFallback&&pO(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function gi(t=" ",e=0){return lt(R$,null,t,e)}function Nu(t="",e=!1){return e?(so(),Ts(Qv,null,t)):lt(Qv,null,t)}function Q1(t){return t==null||typeof t=="boolean"?lt(Qv):Us(t)?lt(Go,null,t.slice()):typeof t=="object"?aS(t):lt(R$,null,String(t))}function aS(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:pO(t)}function Nae(t,e){let r=0;const{shapeFlag:a}=t;if(e==null)e=null;else if(Us(e))r=16;else if(typeof e=="object")if(a&65){const i=e.default;i&&(i._c&&(i._d=!1),Nae(t,i()),i._c&&(i._d=!0));return}else{r=32;const i=e._;!i&&!(uU in e)?e._ctx=fg:i===3&&fg&&(fg.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else wa(e)?(e={default:e,_ctx:fg},r=32):(e=String(e),a&64?(r=16,e=[gi(e)]):r=8);t.children=e,t.shapeFlag|=r}function rs(...t){const e={};for(let r=0;rOf||fg;let Qae,_P,_ue="__VUE_INSTANCE_SETTERS__";(_P=Soe()[_ue])||(_P=Soe()[_ue]=[]),_P.push(t=>Of=t),Qae=t=>{_P.length>1?_P.forEach(e=>e(t)):_P[0](t)};const rM=t=>{Qae(t),t.scope.on()},MC=()=>{Of&&Of.scope.off(),Qae(null)};function hpe(t){return t.vnode.shapeFlag&4}let qD=!1;function Pwe(t,e=!1){qD=e;const{props:r,children:a}=t.vnode,i=hpe(t);uwe(t,r,i,e),hwe(t,a);const d=i?Mwe(t,e):void 0;return qD=!1,d}function Mwe(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=Nge(new Proxy(t.ctx,nwe));const{setup:a}=r;if(a){const i=t.setupContext=a.length>1?_we(t):null;rM(t),OM();const d=gS(a,t,0,[t.props,i]);if(xM(),MC(),Oge(d)){if(d.then(MC,MC),e)return d.then(f=>{Rue(t,f,e)}).catch(f=>{aU(f,t,0)});t.asyncDep=d}else Rue(t,d,e)}else mpe(t,e)}function Rue(t,e,r){wa(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Tl(e)&&(t.setupState=Vge(e)),mpe(t,r)}let Due;function mpe(t,e,r){const a=t.type;if(!t.render){if(!e&&Due&&!a.render){const i=a.template||$ae(t).template;if(i){const{isCustomElement:d,compilerOptions:f}=t.appContext.config,{delimiters:m,compilerOptions:u}=a,p=Jc(Jc({isCustomElement:d,delimiters:m},f),u);a.render=Due(i,p)}}t.render=a.render||Bv}rM(t),OM(),rwe(t),xM(),MC()}function Ewe(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return sm(t,"get","$attrs"),e[r]}}))}function _we(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return Ewe(t)},slots:t.slots,emit:t.emit,expose:e}}function fU(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Vge(Nge(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in _D)return _D[r](t)},has(e,r){return r in e||r in _D}}))}function Rwe(t,e=!0){return wa(t)?t.displayName||t.name:t.name||e&&t.__name}function Dwe(t){return wa(t)&&"__vccOpts"in t}const sn=(t,e)=>DSe(t,e,qD);function hg(t,e,r){const a=arguments.length;return a===2?Tl(e)&&!Us(e)?Doe(e)?lt(t,null,[e]):lt(t,e):lt(t,null,e):(a>3?r=Array.prototype.slice.call(arguments,2):a===3&&Doe(r)&&(r=[r]),lt(t,e,r))}const $we=Symbol.for("v-scx"),Lwe=()=>ai($we),Iwe="3.3.4",Nwe="http://www.w3.org/2000/svg",bC=typeof document<"u"?document:null,$ue=bC&&bC.createElement("template"),Bwe={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,a)=>{const i=e?bC.createElementNS(Nwe,t):bC.createElement(t,r?{is:r}:void 0);return t==="select"&&a&&a.multiple!=null&&i.setAttribute("multiple",a.multiple),i},createText:t=>bC.createTextNode(t),createComment:t=>bC.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>bC.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,a,i,d){const f=r?r.previousSibling:e.lastChild;if(i&&(i===d||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),r),!(i===d||!(i=i.nextSibling)););else{$ue.innerHTML=a?`${t}`:t;const m=$ue.content;if(a){const u=m.firstChild;for(;u.firstChild;)m.appendChild(u.firstChild);m.removeChild(u)}e.insertBefore(m,r)}return[f?f.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function Qwe(t,e,r){const a=t._vtc;a&&(e=(e?[e,...a]:[...a]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function Fwe(t,e,r){const a=t.style,i=Bc(r);if(r&&!i){if(e&&!Bc(e))for(const d in e)r[d]==null&&$oe(a,d,"");for(const d in r)$oe(a,d,r[d])}else{const d=a.display;i?e!==r&&(a.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(a.display=d)}}const Lue=/\s*!important$/;function $oe(t,e,r){if(Us(r))r.forEach(a=>$oe(t,e,a));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const a=Vwe(t,e);Lue.test(r)?t.setProperty(bM(a),r.replace(Lue,""),"important"):t[a]=r}}const Iue=["Webkit","Moz","ms"],gre={};function Vwe(t,e){const r=gre[e];if(r)return r;let a=Pp(e);if(a!=="filter"&&a in t)return gre[e]=a;a=SO(a);for(let i=0;ipre||(Ywe.then(()=>pre=0),pre=Date.now());function Gwe(t,e){const r=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=r.attached)return;Tp(jwe(a,r.value),e,5,[a])};return r.value=t,r.attached=Xwe(),r}function jwe(t,e){if(Us(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(a=>i=>!i._stopped&&a&&a(i))}else return e}const Que=/^on[a-z]/,qwe=(t,e,r,a,i=!1,d,f,m,u)=>{e==="class"?Qwe(t,a,i):e==="style"?Fwe(t,r,a):JH(e)?hae(e)||Uwe(t,e,r,a,f):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Kwe(t,e,a,i))?Zwe(t,e,a,d,f,m,u):(e==="true-value"?t._trueValue=a:e==="false-value"&&(t._falseValue=a),zwe(t,e,a,i))};function Kwe(t,e,r,a){return a?!!(e==="innerHTML"||e==="textContent"||e in t&&Que.test(e)&&wa(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Que.test(e)&&Bc(r)?!1:e in t}const rS="transition",lD="animation",vO=(t,{slots:e})=>hg(XSe,ppe(t),e);vO.displayName="Transition";const gpe={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Jwe=vO.props=Jc({},qge,gpe),uC=(t,e=[])=>{Us(t)?t.forEach(r=>r(...e)):t&&t(...e)},Fue=t=>t?Us(t)?t.some(e=>e.length>1):t.length>1:!1;function ppe(t){const e={};for(const E in t)E in gpe||(e[E]=t[E]);if(t.css===!1)return e;const{name:r="v",type:a,duration:i,enterFromClass:d=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:m=`${r}-enter-to`,appearFromClass:u=d,appearActiveClass:p=f,appearToClass:v=m,leaveFromClass:y=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:x=`${r}-leave-to`}=t,k=eTe(i),C=k&&k[0],w=k&&k[1],{onBeforeEnter:T,onEnter:R,onEnterCancelled:M,onLeave:I,onLeaveCancelled:V,onBeforeAppear:N=T,onAppear:F=R,onAppearCancelled:z=M}=e,U=(E,W,Y)=>{sS(E,W?v:m),sS(E,W?p:f),Y&&Y()},Q=(E,W)=>{E._isLeaving=!1,sS(E,y),sS(E,x),sS(E,b),W&&W()},B=E=>(W,Y)=>{const ie=E?F:R,L=()=>U(W,E,Y);uC(ie,[W,L]),Vue(()=>{sS(W,E?u:d),uO(W,E?v:m),Fue(ie)||zue(W,a,C,L)})};return Jc(e,{onBeforeEnter(E){uC(T,[E]),uO(E,d),uO(E,f)},onBeforeAppear(E){uC(N,[E]),uO(E,u),uO(E,p)},onEnter:B(!1),onAppear:B(!0),onLeave(E,W){E._isLeaving=!0;const Y=()=>Q(E,W);uO(E,y),ype(),uO(E,b),Vue(()=>{E._isLeaving&&(sS(E,y),uO(E,x),Fue(I)||zue(E,a,w,Y))}),uC(I,[E,Y])},onEnterCancelled(E){U(E,!1),uC(M,[E])},onAppearCancelled(E){U(E,!0),uC(z,[E])},onLeaveCancelled(E){Q(E),uC(V,[E])}})}function eTe(t){if(t==null)return null;if(Tl(t))return[vre(t.enter),vre(t.leave)];{const e=vre(t);return[e,e]}}function vre(t){return U2e(t)}function uO(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.add(r)),(t._vtc||(t._vtc=new Set)).add(e)}function sS(t,e){e.split(/\s+/).forEach(a=>a&&t.classList.remove(a));const{_vtc:r}=t;r&&(r.delete(e),r.size||(t._vtc=void 0))}function Vue(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let tTe=0;function zue(t,e,r,a){const i=t._endId=++tTe,d=()=>{i===t._endId&&a()};if(r)return setTimeout(d,r);const{type:f,timeout:m,propCount:u}=vpe(t,e);if(!f)return a();const p=f+"end";let v=0;const y=()=>{t.removeEventListener(p,b),d()},b=x=>{x.target===t&&++v>=u&&y()};setTimeout(()=>{v(r[k]||"").split(", "),i=a(`${rS}Delay`),d=a(`${rS}Duration`),f=Zue(i,d),m=a(`${lD}Delay`),u=a(`${lD}Duration`),p=Zue(m,u);let v=null,y=0,b=0;e===rS?f>0&&(v=rS,y=f,b=d.length):e===lD?p>0&&(v=lD,y=p,b=u.length):(y=Math.max(f,p),v=y>0?f>p?rS:lD:null,b=v?v===rS?d.length:u.length:0);const x=v===rS&&/\b(transform|all)(,|$)/.test(a(`${rS}Property`).toString());return{type:v,timeout:y,propCount:b,hasTransform:x}}function Zue(t,e){for(;t.lengthHue(r)+Hue(t[a])))}function Hue(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function ype(){return document.body.offsetHeight}const bpe=new WeakMap,Ope=new WeakMap,xpe={name:"TransitionGroup",props:Jc({},Jwe,{tag:String,moveClass:String}),setup(t,{slots:e}){const r=Bae(),a=jge();let i,d;return epe(()=>{if(!i.length)return;const f=t.moveClass||`${t.name||"v"}-move`;if(!iTe(i[0].el,r.vnode.el,f))return;i.forEach(oTe),i.forEach(sTe);const m=i.filter(aTe);ype(),m.forEach(u=>{const p=u.el,v=p.style;uO(p,f),v.transform=v.webkitTransform=v.transitionDuration="";const y=p._moveCb=b=>{b&&b.target!==p||(!b||/transform$/.test(b.propertyName))&&(p.removeEventListener("transitionend",y),p._moveCb=null,sS(p,f))};p.addEventListener("transitionend",y)})}),()=>{const f=va(t),m=ppe(f);let u=f.tag||Go;i=d,d=e.default?Pae(e.default()):[];for(let p=0;pdelete t.mode;xpe.props;const rTe=xpe;function oTe(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function sTe(t){Ope.set(t,t.el.getBoundingClientRect())}function aTe(t){const e=bpe.get(t),r=Ope.get(t),a=e.left-r.left,i=e.top-r.top;if(a||i){const d=t.el.style;return d.transform=d.webkitTransform=`translate(${a}px,${i}px)`,d.transitionDuration="0s",t}}function iTe(t,e,r){const a=t.cloneNode();t._vtc&&t._vtc.forEach(f=>{f.split(/\s+/).forEach(m=>m&&a.classList.remove(m))}),r.split(/\s+/).forEach(f=>f&&a.classList.add(f)),a.style.display="none";const i=e.nodeType===1?e:e.parentNode;i.appendChild(a);const{hasTransform:d}=vpe(a);return i.removeChild(a),d}const Uue=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Us(e)?r=>PZ(e,r):e};function lTe(t){t.target.composing=!0}function Wue(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const cTe={created(t,{modifiers:{lazy:e,trim:r,number:a}},i){t._assign=Uue(i);const d=a||i.props&&i.props.type==="number";LP(t,e?"change":"input",f=>{if(f.target.composing)return;let m=t.value;r&&(m=m.trim()),d&&(m=xoe(m)),t._assign(m)}),r&&LP(t,"change",()=>{t.value=t.value.trim()}),e||(LP(t,"compositionstart",lTe),LP(t,"compositionend",Wue),LP(t,"change",Wue))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:a,number:i}},d){if(t._assign=Uue(d),t.composing||document.activeElement===t&&t.type!=="range"&&(r||a&&t.value.trim()===e||(i||t.type==="number")&&xoe(t.value)===e))return;const f=e??"";t.value!==f&&(t.value=f)}},uTe=["ctrl","shift","alt","meta"],fTe={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>uTe.some(r=>t[`${r}Key`]&&!e.includes(r))},Yue=(t,e)=>(r,...a)=>{for(let i=0;i{cD(t,!1)}):cD(t,e))},beforeUnmount(t,{value:e}){cD(t,e)}};function cD(t,e){t.style.display=e?t._vod:"none"}const dTe=Jc({patchProp:qwe},Bwe);let Xue;function hTe(){return Xue||(Xue=gwe(dTe))}const mTe=(...t)=>{const e=hTe().createApp(...t),{mount:r}=e;return e.mount=a=>{const i=gTe(a);if(!i)return;const d=e._component;!wa(d)&&!d.render&&!d.template&&(d.template=i.innerHTML),i.innerHTML="";const f=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),f},e};function gTe(t){return Bc(t)?document.querySelector(t):t}function pTe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Spe={exports:{}};(function(t,e){(function(a,i){t.exports=i()})(self,function(){return function(){var r={8847:function(f,m,u){var p=u(1828),v={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var y in v){var b=y.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");p.addStyleRule(b,v[y])}},8222:function(f,m,u){f.exports=u(2887)},7206:function(f,m,u){f.exports=u(822)},9509:function(f,m,u){f.exports=u(2201)},9548:function(f,m,u){f.exports=u(8729)},1039:function(f,m,u){f.exports=u(4382)},4296:function(f,m,u){f.exports=u(3102)},2576:function(f,m,u){var p=u(9548);p.register([u(7206),u(4201),u(8222),u(1039),u(4296),u(6398),u(9509)]),f.exports=p},4201:function(f,m,u){f.exports=u(8810)},6398:function(f,m,u){f.exports=u(2275)},2884:function(f){f.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},215:function(f,m,u){var p=u(2884),v=u(1940),y=u(5555),b=u(4467).templatedArray;u(4695),f.exports=b("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:v({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:p.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:p.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",y.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",y.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",y.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",y.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:v({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(f,m,u){var p=u(1828),v=u(9298),y=u(2605).draw;f.exports=function(C){var w=C._fullLayout,T=p.filterVisible(w.annotations);if(T.length&&C._fullData.length)return p.syncOrAsync([y,b],C)};function b(k){var C=k._fullLayout;p.filterVisible(C.annotations).forEach(function(w){var T=v.getFromId(k,w.xref),R=v.getFromId(k,w.yref),M=v.getRefType(w.xref),I=v.getRefType(w.yref);w._extremes={},M==="range"&&x(w,T),I==="range"&&x(w,R)})}function x(k,C){var w=C._id,T=w.charAt(0),R=k[T],M=k["a"+T],I=k[T+"ref"],V=k["a"+T+"ref"],N=k["_"+T+"padplus"],F=k["_"+T+"padminus"],z={x:1,y:-1}[T]*k[T+"shift"],U=3*k.arrowsize*k.arrowwidth||0,Q=U+z,B=U-z,E=3*k.startarrowsize*k.arrowwidth||0,W=E+z,Y=E-z,ie;if(V===I){var L=v.findExtremes(C,[C.r2c(R)],{ppadplus:Q,ppadminus:B}),me=v.findExtremes(C,[C.r2c(M)],{ppadplus:Math.max(N,W),ppadminus:Math.max(F,Y)});ie={min:[L.min[0],me.min[0]],max:[L.max[0],me.max[0]]}}else W=M?W+M:W,Y=M?Y-M:Y,ie=v.findExtremes(C,[C.r2c(R)],{ppadplus:Math.max(N,Q,W),ppadminus:Math.max(F,B,Y)});k._extremes[w]=ie}},4317:function(f,m,u){var p=u(1828),v=u(3972),y=u(4467).arrayEditor;f.exports={hasClickToShow:b,onClick:x};function b(w,T){var R=k(w,T);return R.on.length>0||R.explicitOff.length>0}function x(w,T){var R=k(w,T),M=R.on,I=R.off.concat(R.explicitOff),V={},N=w._fullLayout.annotations,F,z;if(M.length||I.length){for(F=0;F.6666666666666666?Wn="right":Wn="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Wn]}for(var Xt=!1,Gt=["x","y"],Nt=0;Nt1)&&(En===vn?(dt=ln.r2fraction(E["a"+Bt]),(dt<0||dt>1)&&(Xt=!0)):Xt=!0),ut=ln._offset+ln.r2p(E[Bt]),Dt=.5}else{var mt=at==="domain";Bt==="x"?(gt=E[Bt],ut=mt?ln._offset+ln._length*gt:ut=ae.l+ae.w*gt):(gt=1-E[Bt],ut=mt?ln._offset+ln._length*gt:ut=ae.t+ae.h*gt),Dt=E.showarrow?.5:gt}if(E.showarrow){it.head=ut;var Tt=E["a"+Bt];if(He=an*wt(.5,E.xanchor)-wn*wt(.5,E.yanchor),En===vn){var Pt=k.getRefType(En);Pt==="domain"?(Bt==="y"&&(Tt=1-Tt),it.tail=ln._offset+ln._length*Tt):Pt==="paper"?Bt==="y"?(Tt=1-Tt,it.tail=ae.t+ae.h*Tt):it.tail=ae.l+ae.w*Tt:it.tail=ln._offset+ln.r2p(Tt),xt=He}else it.tail=ut+Tt,xt=He+Tt;it.text=it.tail+He;var dn=me[Bt==="x"?"width":"height"];if(vn==="paper"&&(it.head=b.constrain(it.head,1,dn-1)),En==="pixel"){var nn=-Math.max(it.tail-3,it.text),Wt=Math.min(it.tail+3,it.text)-dn;nn>0?(it.tail+=nn,it.text+=nn):Wt>0&&(it.tail-=Wt,it.text-=Wt)}it.tail+=Sn,it.head+=Sn}else He=Xn*wt(Dt,Un),xt=He,it.text=ut+He;it.text+=Sn,He+=Sn,xt+=Sn,E["_"+Bt+"padplus"]=Xn/2+xt,E["_"+Bt+"padminus"]=Xn/2-xt,E["_"+Bt+"size"]=Xn,E["_"+Bt+"shift"]=He}if(Xt){Ze.remove();return}var Rt=0,fn=0;if(E.align!=="left"&&(Rt=(et-Ye)*(E.align==="center"?.5:1)),E.valign!=="top"&&(fn=(yt-je)*(E.valign==="middle"?.5:1)),ct)Xe.select("svg").attr({x:re+Rt-1,y:re+fn}).call(w.setClipUrl,te?ne:null,B);else{var Hn=re+fn-pt.top,nr=re+Rt-pt.left;Se.call(R.positionText,nr,Hn).call(w.setClipUrl,te?ne:null,B)}se.select("rect").call(w.setRect,re,re,et,yt),ye.call(w.setRect,De/2,De/2,ft-De,tt-De),Ze.call(w.setTranslate,Math.round(pe.x.text-ft/2),Math.round(pe.y.text-tt/2)),xe.attr({transform:"rotate("+G+","+pe.x.text+","+pe.y.text+")"});var Er=function(vr,Wn){Oe.selectAll(".annotation-arrow-g").remove();var Br=pe.x.head,kr=pe.y.head,or=pe.x.tail+vr,jr=pe.y.tail+Wn,_r=pe.x.text+vr,Rn=pe.y.text+Wn,xr=b.rotationXYMatrix(G,_r,Rn),sr=b.apply2DTransform(xr),Sr=b.apply2DTransform2(xr),ao=+ye.attr("width"),Oo=+ye.attr("height"),wr=_r-.5*ao,Fe=wr+ao,Ee=Rn-.5*Oo,St=Ee+Oo,Ct=[[wr,Ee,wr,St],[wr,St,Fe,St],[Fe,St,Fe,Ee],[Fe,Ee,wr,Ee]].map(Sr);if(!Ct.reduce(function(pn,Jn){return pn^!!b.segmentsIntersect(Br,kr,Br+1e6,kr+1e6,Jn[0],Jn[1],Jn[2],Jn[3])},!1)){Ct.forEach(function(pn){var Jn=b.segmentsIntersect(or,jr,Br,kr,pn[0],pn[1],pn[2],pn[3]);Jn&&(or=Jn.x,jr=Jn.y)});var Lt=E.arrowwidth,Ft=E.arrowcolor,Ht=E.arrowside,$t=Oe.append("g").style({opacity:C.opacity(Ft)}).classed("annotation-arrow-g",!0),Mt=$t.append("path").attr("d","M"+or+","+jr+"L"+Br+","+kr).style("stroke-width",Lt+"px").call(C.stroke,C.rgb(Ft));if(N(Mt,Ht,E),q.annotationPosition&&Mt.node().parentNode&&!Y){var en=Br,un=kr;if(E.standoff){var Jt=Math.sqrt(Math.pow(Br-or,2)+Math.pow(kr-jr,2));en+=E.standoff*(or-Br)/Jt,un+=E.standoff*(jr-kr)/Jt}var rn=$t.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(or-en)+","+(jr-un),transform:x(en,un)}).style("stroke-width",Lt+6+"px").call(C.stroke,"rgba(0,0,0,0)").call(C.fill,"rgba(0,0,0,0)"),Tn,On;I.init({element:rn.node(),gd:B,prepFn:function(){var pn=w.getTranslate(Ze);Tn=pn.x,On=pn.y,ie&&ie.autorange&&Te(ie._name+".autorange",!0),L&&L.autorange&&Te(L._name+".autorange",!0)},moveFn:function(pn,Jn){var Fn=sr(Tn,On),zr=Fn[0]+pn,dr=Fn[1]+Jn;Ze.call(w.setTranslate,zr,dr),Be("x",U(ie,pn,"x",ae,E)),Be("y",U(L,Jn,"y",ae,E)),E.axref===E.xref&&Be("ax",U(ie,pn,"ax",ae,E)),E.ayref===E.yref&&Be("ay",U(L,Jn,"ay",ae,E)),$t.attr("transform",x(pn,Jn)),xe.attr({transform:"rotate("+G+","+zr+","+dr+")"})},doneFn:function(){v.call("_guiRelayout",B,ge());var pn=document.querySelector(".js-notes-box-panel");pn&&pn.redraw(pn.selectedObj)}})}}};if(E.showarrow&&Er(0,0),Le){var zt;I.init({element:Ze.node(),gd:B,prepFn:function(){zt=xe.attr("transform")},moveFn:function(vr,Wn){var Br="pointer";if(E.showarrow)E.axref===E.xref?Be("ax",U(ie,vr,"ax",ae,E)):Be("ax",E.ax+vr),E.ayref===E.yref?Be("ay",U(L,Wn,"ay",ae.w,E)):Be("ay",E.ay+Wn),Er(vr,Wn);else{if(Y)return;var kr,or;if(ie)kr=U(ie,vr,"x",ae,E);else{var jr=E._xsize/ae.w,_r=E.x+(E._xshift-E.xshift)/ae.w-jr/2;kr=I.align(_r+vr/ae.w,jr,0,1,E.xanchor)}if(L)or=U(L,Wn,"y",ae,E);else{var Rn=E._ysize/ae.h,xr=E.y-(E._yshift+E.yshift)/ae.h-Rn/2;or=I.align(xr-Wn/ae.h,Rn,0,1,E.yanchor)}Be("x",kr),Be("y",or),(!ie||!L)&&(Br=I.getCursor(ie?.5:kr,L?.5:or,E.xanchor,E.yanchor))}xe.attr({transform:x(vr,Wn)+zt}),M(Ze,Br)},clickFn:function(vr,Wn){E.captureevents&&B.emit("plotly_clickannotation",$e(Wn))},doneFn:function(){M(Ze),v.call("_guiRelayout",B,ge());var vr=document.querySelector(".js-notes-box-panel");vr&&vr.redraw(vr.selectedObj)}})}}q.annotationText?Se.call(R.makeEditable,{delegate:Ze,gd:B}).call(le).on("edit",function(Qe){E.text=Qe,this.call(le),Be("text",Qe),ie&&ie.autorange&&Te(ie._name+".autorange",!0),L&&L.autorange&&Te(L._name+".autorange",!0),v.call("_guiRelayout",B,ge())}):Se.call(le)}},3011:function(f,m,u){var p=u(9898),v=u(7901),y=u(2884),b=u(1828),x=b.strScale,k=b.strRotate,C=b.strTranslate;f.exports=function(T,R,M){var I=T.node(),V=y[M.arrowhead||0],N=y[M.startarrowhead||0],F=(M.arrowwidth||1)*(M.arrowsize||1),z=(M.arrowwidth||1)*(M.startarrowsize||1),U=R.indexOf("start")>=0,Q=R.indexOf("end")>=0,B=V.backoff*F+M.standoff,E=N.backoff*z+M.startstandoff,W,Y,ie,L;if(I.nodeName==="line"){W={x:+T.attr("x1"),y:+T.attr("y1")},Y={x:+T.attr("x2"),y:+T.attr("y2")};var me=W.x-Y.x,ae=W.y-Y.y;if(ie=Math.atan2(ae,me),L=ie+Math.PI,B&&E&&B+E>Math.sqrt(me*me+ae*ae)){xe();return}if(B){if(B*B>me*me+ae*ae){xe();return}var q=B*Math.cos(ie),fe=B*Math.sin(ie);Y.x+=q,Y.y+=fe,T.attr({x2:Y.x,y2:Y.y})}if(E){if(E*E>me*me+ae*ae){xe();return}var ee=E*Math.cos(ie),be=E*Math.sin(ie);W.x-=ee,W.y-=be,T.attr({x1:W.x,y1:W.y})}}else if(I.nodeName==="path"){var Te=I.getTotalLength(),Be="";if(Te1){M=!0;break}}M?x.fullLayout._infolayer.select(".annotation-"+x.id+'[data-index="'+T+'"]').remove():(R._pdata=v(x.glplot.cameraParams,[k.xaxis.r2l(R.x)*C[0],k.yaxis.r2l(R.y)*C[1],k.zaxis.r2l(R.z)*C[2]]),p(x.graphDiv,R,T,x.id,R._xa,R._ya))}}},2468:function(f,m,u){var p=u(3972),v=u(1828);f.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:u(6997)}}},layoutAttributes:u(6997),handleDefaults:u(226),includeBasePlot:y,convert:u(5485),draw:u(2188)};function y(b,x){var k=p.subplotsRegistry.gl3d;if(k)for(var C=k.attrRegex,w=Object.keys(b),T=0;T=0)))return T;if(N===3)I[N]>1&&(I[N]=1);else if(I[N]>=1)return T}var F=Math.round(I[0]*255)+", "+Math.round(I[1]*255)+", "+Math.round(I[2]*255);return V?"rgba("+F+", "+I[3]+")":"rgb("+F+")"}},3583:function(f,m,u){var p=u(3838),v=u(1940),y=u(1426).extendFlat,b=u(962).overrideAll;f.exports=b({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:p.linecolor,outlinewidth:p.linewidth,bordercolor:p.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:p.minor.tickmode,nticks:p.nticks,tick0:p.tick0,dtick:p.dtick,tickvals:p.tickvals,ticktext:p.ticktext,ticks:y({},p.ticks,{dflt:""}),ticklabeloverflow:y({},p.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:p.ticklen,tickwidth:p.tickwidth,tickcolor:p.tickcolor,ticklabelstep:p.ticklabelstep,showticklabels:p.showticklabels,labelalias:p.labelalias,tickfont:v({}),tickangle:p.tickangle,tickformat:p.tickformat,tickformatstops:p.tickformatstops,tickprefix:p.tickprefix,showtickprefix:p.showtickprefix,ticksuffix:p.ticksuffix,showticksuffix:p.showticksuffix,separatethousands:p.separatethousands,exponentformat:p.exponentformat,minexponent:p.minexponent,showexponent:p.showexponent,title:{text:{valType:"string"},font:v({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:v({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},939:function(f){f.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},2499:function(f,m,u){var p=u(1828),v=u(4467),y=u(6218),b=u(8701),x=u(6115),k=u(9426),C=u(3583);f.exports=function(T,R,M){var I=v.newContainer(R,"colorbar"),V=T.colorbar||{};function N(pe,G){return p.coerce(V,I,C,pe,G)}var F=M.margin||{t:0,b:0,l:0,r:0},z=M.width-F.l-F.r,U=M.height-F.t-F.b,Q=N("orientation"),B=Q==="v",E=N("thicknessmode");N("thickness",E==="fraction"?30/(B?z:U):30);var W=N("lenmode");N("len",W==="fraction"?1:B?U:z);var Y=N("yref"),ie=N("xref"),L=Y==="paper",me=ie==="paper",ae,q,fe,ee="left";B?(fe="middle",ee=me?"left":"right",ae=me?1.02:1,q=.5):(fe=L?"bottom":"top",ee="center",ae=.5,q=L?1.02:1),p.coerce(V,I,{x:{valType:"number",min:me?-2:0,max:me?3:1,dflt:ae}},"x"),p.coerce(V,I,{y:{valType:"number",min:L?-2:0,max:L?3:1,dflt:q}},"y"),N("xanchor",ee),N("xpad"),N("yanchor",fe),N("ypad"),p.noneOrAll(V,I,["x","y"]),N("outlinecolor"),N("outlinewidth"),N("bordercolor"),N("borderwidth"),N("bgcolor");var be=p.coerce(V,I,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:B?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");N("ticklabeloverflow",be.indexOf("inside")!==-1?"hide past domain":"hide past div"),y(V,I,N,"linear");var Te=M.font,Be={outerTicks:!1,font:Te};be.indexOf("inside")!==-1&&(Be.bgColor="black"),k(V,I,N,"linear",Be),x(V,I,N,"linear",Be),b(V,I,N,"linear",Be),N("title.text",M._dfltTitle.colorbar);var ge=I.showticklabels?I.tickfont:Te,ne=p.extendFlat({},ge,{color:Te.color,size:p.bigFont(ge.size)});p.coerceFont(N,"title.font",ne),N("title.side",B?"top":"right")}},8981:function(f,m,u){var p=u(9898),v=u(4267),y=u(4875),b=u(3972),x=u(9298),k=u(8569),C=u(1828),w=C.strTranslate,T=u(1426).extendFlat,R=u(6964),M=u(1424),I=u(7901),V=u(2998),N=u(3893),F=u(2869).flipScale,z=u(1453),U=u(2830),Q=u(3838),B=u(8783),E=B.LINE_SPACING,W=B.FROM_TL,Y=B.FROM_BR,ie=u(939).cn;function L(be){var Te=be._fullLayout,Be=Te._infolayer.selectAll("g."+ie.colorbar).data(me(be),function(ge){return ge._id});Be.enter().append("g").attr("class",function(ge){return ge._id}).classed(ie.colorbar,!0),Be.each(function(ge){var ne=p.select(this);C.ensureSingle(ne,"rect",ie.cbbg),C.ensureSingle(ne,"g",ie.cbfills),C.ensureSingle(ne,"g",ie.cblines),C.ensureSingle(ne,"g",ie.cbaxis,function(G){G.classed(ie.crisp,!0)}),C.ensureSingle(ne,"g",ie.cbtitleunshift,function(G){G.append("g").classed(ie.cbtitle,!0)}),C.ensureSingle(ne,"rect",ie.cboutline);var pe=ae(ne,ge,be);pe&&pe.then&&(be._promises||[]).push(pe),be._context.edits.colorbarPosition&&q(ne,ge,be)}),Be.exit().each(function(ge){y.autoMargin(be,ge._id)}).remove(),Be.order()}function me(be){var Te=be._fullLayout,Be=be.calcdata,ge=[],ne,pe,G,Oe;function xe(ue){return T(ue,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function Le(){typeof Oe.calc=="function"?Oe.calc(be,G,ne):(ne._fillgradient=pe.reversescale?F(pe.colorscale):pe.colorscale,ne._zrange=[pe[Oe.min],pe[Oe.max]])}for(var ke=0;ke1){var it=Math.pow(10,Math.floor(Math.log(Sn)/Math.LN10));Xn*=it*C.roundUp(Sn/it,[2,5,10]),(Math.abs(pt.start)/pt.size+1e-6)%1<2e-6&&(an.tick0=0)}an.dtick=Xn}an.domain=ge?[ln+Ie/oe.h,ln+wt-Ie/oe.h]:[ln+De/oe.w,ln+wt-De/oe.w],an.setScale(),be.attr("transform",w(Math.round(oe.l),Math.round(oe.t)));var ut=be.select("."+ie.cbtitleunshift).attr("transform",w(-Math.round(oe.l),-Math.round(oe.t))),xt=an.ticklabelposition,gt=an.title.font.size,Dt=be.select("."+ie.cbaxis),He,at=0,dt=0;function mt(Wt,Rt){var fn={propContainer:an,propName:Te._propPrefix+"title",traceIndex:Te._traceIndex,_meta:Te._meta,placeholder:ue._dfltTitle.colorbar,containerGroup:be.select("."+ie.cbtitle)},Hn=Wt.charAt(0)==="h"?Wt.substr(1):"h"+Wt;be.selectAll("."+Hn+",."+Hn+"-math-group").remove(),V.draw(Be,Wt,T(fn,Rt||{}))}function Tt(){if(ge&&wn||!ge&&!wn){var Wt,Rt;Qe==="top"&&(Wt=De+oe.l+Xt*re,Rt=Ie+oe.t+Gt*(1-ln-wt)+3+gt*.75),Qe==="bottom"&&(Wt=De+oe.l+Xt*re,Rt=Ie+oe.t+Gt*(1-ln)-3-gt*.25),Qe==="right"&&(Rt=Ie+oe.t+Gt*ye+3+gt*.75,Wt=De+oe.l+Xt*ln),mt(an._id+"title",{attributes:{x:Wt,y:Rt,"text-anchor":ge?"start":"middle"}})}}function Pt(){if(ge&&!wn||!ge&&wn){var Wt=an.position||0,Rt=an._offset+an._length/2,fn,Hn;if(Qe==="right")Hn=Rt,fn=oe.l+Xt*Wt+10+gt*(an.showticklabels?1:.5);else if(fn=Rt,Qe==="bottom"&&(Hn=oe.t+Gt*Wt+10+(xt.indexOf("inside")===-1?an.tickfont.size:0)+(an.ticks!=="intside"&&Te.ticklen||0)),Qe==="top"){var nr=Ce.text.split("
").length;Hn=oe.t+Gt*Wt+10-yt-E*gt*nr}mt((ge?"h":"v")+an._id+"title",{avoid:{selection:p.select(Be).selectAll("g."+an._id+"tick"),side:Qe,offsetTop:ge?0:oe.t,offsetLeft:ge?oe.l:0,maxShift:ge?ue.width:ue.height},attributes:{x:fn,y:Hn,"text-anchor":"middle"},transform:{rotate:ge?-90:0,offset:0}})}}function dn(){if(!ge&&!wn||ge&&wn){var Wt=be.select("."+ie.cbtitle),Rt=Wt.select("text"),fn=[-xe/2,xe/2],Hn=Wt.select(".h"+an._id+"title-math-group").node(),nr=15.6;Rt.node()&&(nr=parseInt(Rt.node().style.fontSize,10)*E);var Er;if(Hn?(Er=M.bBox(Hn),dt=Er.width,at=Er.height,at>nr&&(fn[1]-=(at-nr)/2)):Rt.node()&&!Rt.classed(ie.jsPlaceholder)&&(Er=M.bBox(Rt.node()),dt=Er.width,at=Er.height),ge){if(at){if(at+=5,Qe==="top")an.domain[1]-=at/oe.h,fn[1]*=-1;else{an.domain[0]+=at/oe.h;var zt=N.lineCount(Rt);fn[1]+=(1-zt)*nr}Wt.attr("transform",w(fn[0],fn[1])),an.setScale()}}else dt&&(Qe==="right"&&(an.domain[0]+=(dt+gt/2)/oe.w),Wt.attr("transform",w(fn[0],fn[1])),an.setScale())}be.selectAll("."+ie.cbfills+",."+ie.cblines).attr("transform",ge?w(0,Math.round(oe.h*(1-an.domain[1]))):w(Math.round(oe.w*an.domain[0]),0)),Dt.attr("transform",ge?w(0,Math.round(-oe.t)):w(Math.round(-oe.l),0));var vr=be.select("."+ie.cbfills).selectAll("rect."+ie.cbfill).attr("style","").data(je);vr.enter().append("rect").classed(ie.cbfill,!0).attr("style",""),vr.exit().remove();var Wn=ze.map(an.c2p).map(Math.round).sort(function(_r,Rn){return _r-Rn});vr.each(function(_r,Rn){var xr=[Rn===0?ze[0]:(je[Rn]+je[Rn-1])/2,Rn===je.length-1?ze[1]:(je[Rn]+je[Rn+1])/2].map(an.c2p).map(Math.round);ge&&(xr[1]=C.constrain(xr[1]+(xr[1]>xr[0])?1:-1,Wn[0],Wn[1]));var sr=p.select(this).attr(ge?"x":"y",Nt).attr(ge?"y":"x",p.min(xr)).attr(ge?"width":"height",Math.max(yt,2)).attr(ge?"height":"width",Math.max(p.max(xr)-p.min(xr),2));if(Te._fillgradient)M.gradient(sr,Be,Te._id,ge?"vertical":"horizontalreversed",Te._fillgradient,"fill");else{var Sr=ct(_r).replace("e-","");sr.attr("fill",v(Sr).toHexString())}});var Br=be.select("."+ie.cblines).selectAll("path."+ie.cbline).data(le.color&&le.width?et:[]);Br.enter().append("path").classed(ie.cbline,!0),Br.exit().remove(),Br.each(function(_r){var Rn=Nt,xr=Math.round(an.c2p(_r))+le.width/2%1;p.select(this).attr("d","M"+(ge?Rn+","+xr:xr+","+Rn)+(ge?"h":"v")+yt).call(M.lineGroupStyle,le.width,Xe(_r),le.dash)}),Dt.selectAll("g."+an._id+"tick,path").remove();var kr=Nt+yt+(xe||0)/2-(Te.ticks==="outside"?1:0),or=x.calcTicks(an),jr=x.getTickSigns(an)[2];return x.drawTicks(Be,an,{vals:an.ticks==="inside"?x.clipEnds(an,or):or,layer:Dt,path:x.makeTickPath(an,kr,jr),transFn:x.makeTransTickFn(an)}),x.drawLabels(Be,an,{vals:or,layer:Dt,transFn:x.makeTransTickLabelFn(an),labelFns:x.makeLabelFns(an,kr)})}function nn(){var Wt,Rt=yt+xe/2;xt.indexOf("inside")===-1&&(Wt=M.bBox(Dt.node()),Rt+=ge?Wt.width:Wt.height),He=ut.select("text");var fn=0,Hn=ge&&Qe==="top",nr=!ge&&Qe==="right",Er=0;if(He.node()&&!He.classed(ie.jsPlaceholder)){var zt,vr=ut.select(".h"+an._id+"title-math-group").node();vr&&(ge&&wn||!ge&&!wn)?(Wt=M.bBox(vr),fn=Wt.width,zt=Wt.height):(Wt=M.bBox(ut.node()),fn=Wt.right-oe.l-(ge?Nt:Yn),zt=Wt.bottom-oe.t-(ge?Yn:Nt),!ge&&Qe==="top"&&(Rt+=Wt.height,Er=Wt.height)),nr&&(He.attr("transform",w(fn/2+gt/2,0)),fn*=2),Rt=Math.max(Rt,ge?fn:zt)}var Wn=(ge?De:Ie)*2+Rt+Le+xe/2,Br=0;!ge&&Ce.text&&Ze==="bottom"&&ye<=0&&(Br=Wn/2,Wn+=Br,Er+=Br),ue._hColorbarMoveTitle=Br,ue._hColorbarMoveCBTitle=Er;var kr=Le+xe,or=(ge?Nt:Yn)-kr/2-(ge?De:0),jr=(ge?Yn:Nt)-(ge?tt:Ie+Er-Br);be.select("."+ie.cbbg).attr("x",or).attr("y",jr).attr(ge?"width":"height",Math.max(Wn-Br,2)).attr(ge?"height":"width",Math.max(tt+kr,2)).call(I.fill,ke).call(I.stroke,Te.bordercolor).style("stroke-width",Le);var _r=nr?Math.max(fn-10,0):0;be.selectAll("."+ie.cboutline).attr("x",(ge?Nt:Yn+De)+_r).attr("y",(ge?Yn+Ie-tt:Nt)+(Hn?at:0)).attr(ge?"width":"height",Math.max(yt,2)).attr(ge?"height":"width",Math.max(tt-(ge?2*Ie+at:2*De+_r),2)).call(I.stroke,Te.outlinecolor).style({fill:"none","stroke-width":xe});var Rn=ge?Bt*Wn:0,xr=ge?0:(1-vn)*Wn-Er;if(Rn=se?oe.l-Rn:-Rn,xr=te?oe.t-xr:-xr,be.attr("transform",w(Rn,xr)),!ge&&(Le||v(ke).getAlpha()&&!v.equals(ue.paper_bgcolor,ke))){var sr=Dt.selectAll("text"),Sr=sr[0].length,ao=be.select("."+ie.cbbg).node(),Oo=M.bBox(ao),wr=M.getTranslate(be),Fe=2;sr.each(function(un,Jt){var rn=0,Tn=Sr-1;if(Jt===rn||Jt===Tn){var On=M.bBox(this),pn=M.getTranslate(this),Jn;if(Jt===Tn){var Fn=On.right+pn.x,zr=Oo.right+wr.x+Yn-Le-Fe+re;Jn=zr-Fn,Jn>0&&(Jn=0)}else if(Jt===rn){var dr=On.left+pn.x,Hr=Oo.left+wr.x+Yn+Le+Fe;Jn=Hr-dr,Jn<0&&(Jn=0)}Jn&&(Sr<3?this.setAttribute("transform","translate("+Jn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Ee={},St=W[$e],Ct=Y[$e],Lt=W[Ze],Ft=Y[Ze],Ht=Wn-yt;ge?(pe==="pixels"?(Ee.y=ye,Ee.t=tt*Lt,Ee.b=tt*Ft):(Ee.t=Ee.b=0,Ee.yt=ye+ne*Lt,Ee.yb=ye-ne*Ft),Oe==="pixels"?(Ee.x=re,Ee.l=Wn*St,Ee.r=Wn*Ct):(Ee.l=Ht*St,Ee.r=Ht*Ct,Ee.xl=re-G*St,Ee.xr=re+G*Ct)):(pe==="pixels"?(Ee.x=re,Ee.l=tt*St,Ee.r=tt*Ct):(Ee.l=Ee.r=0,Ee.xl=re+ne*St,Ee.xr=re-ne*Ct),Oe==="pixels"?(Ee.y=1-ye,Ee.t=Wn*Lt,Ee.b=Wn*Ft):(Ee.t=Ht*Lt,Ee.b=Ht*Ft,Ee.yt=ye-G*Lt,Ee.yb=ye+G*Ft));var $t=Te.y<.5?"b":"t",Mt=Te.x<.5?"l":"r";Be._fullLayout._reservedMargin[Te._id]={};var en={r:ue.width-or-Rn,l:or+Ee.r,b:ue.height-jr-xr,t:jr+Ee.b};se&&te?y.autoMargin(Be,Te._id,Ee):se?Be._fullLayout._reservedMargin[Te._id][$t]=en[$t]:te||ge?Be._fullLayout._reservedMargin[Te._id][Mt]=en[Mt]:Be._fullLayout._reservedMargin[Te._id][$t]=en[$t]}return C.syncOrAsync([y.previousPromises,Tt,dn,Pt,y.previousPromises,nn],Be)}function q(be,Te,Be){var ge=Te.orientation==="v",ne=Be._fullLayout,pe=ne._size,G,Oe,xe;k.init({element:be.node(),gd:Be,prepFn:function(){G=be.attr("transform"),R(be)},moveFn:function(Le,ke){be.attr("transform",G+w(Le,ke)),Oe=k.align((ge?Te._uFrac:Te._vFrac)+Le/pe.w,ge?Te._thickFrac:Te._lenFrac,0,1,Te.xanchor),xe=k.align((ge?Te._vFrac:1-Te._uFrac)-ke/pe.h,ge?Te._lenFrac:Te._thickFrac,0,1,Te.yanchor);var $e=k.getCursor(Oe,xe,Te.xanchor,Te.yanchor);R(be,$e)},doneFn:function(){if(R(be),Oe!==void 0&&xe!==void 0){var Le={};Le[Te._propPrefix+"x"]=Oe,Le[Te._propPrefix+"y"]=xe,Te._traceIndex!==void 0?b.call("_guiRestyle",Be,Le,Te._traceIndex):b.call("_guiRelayout",Be,Le)}}})}function fe(be,Te,Be){var ge=Te._levels,ne=[],pe=[],G,Oe,xe=ge.end+ge.size/100,Le=ge.size,ke=1.001*Be[0]-.001*Be[1],$e=1.001*Be[1]-.001*Be[0];for(Oe=0;Oe<1e5&&(G=ge.start+Oe*Le,!(Le>0?G>=xe:G<=xe));Oe++)G>ke&&G<$e&&ne.push(G);if(Te._fillgradient)pe=[0];else if(typeof Te._fillcolor=="function"){var Ze=Te._filllevels;if(Ze)for(xe=Ze.end+Ze.size/100,Le=Ze.size,Oe=0;Oe<1e5&&(G=Ze.start+Oe*Le,!(Le>0?G>=xe:G<=xe));Oe++)G>Be[0]&&Gz-N?N=z-(F-z):F-z=0?B=w.colorscale.sequential:B=w.colorscale.sequentialminus,I._sync("colorscale",B)}}},3046:function(f,m,u){var p=u(1828),v=u(2869).hasColorscale,y=u(2869).extractOpts;f.exports=function(x,k){function C(N,F){var z=N["_"+F];z!==void 0&&(N[F]=z)}function w(N,F){var z=F.container?p.nestedProperty(N,F.container).get():N;if(z)if(z.coloraxis)z._colorAx=k[z.coloraxis];else{var U=y(z),Q=U.auto;(Q||U.min===void 0)&&C(z,F.min),(Q||U.max===void 0)&&C(z,F.max),U.autocolorscale&&C(z,"colorscale")}}for(var T=0;T=0;B--,E++){var W=z[B];Q[E]=[1-W[0],W[1]]}return Q}function V(z,U){U=U||{};for(var Q=z.domain,B=z.range,E=B.length,W=new Array(E),Y=0;Y1.3333333333333333-C?k:C}},461:function(f,m,u){var p=u(1828),v=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];f.exports=function(b,x,k,C){return k==="left"?b=0:k==="center"?b=1:k==="right"?b=2:b=p.constrain(Math.floor(b*3),0,2),C==="bottom"?x=0:C==="middle"?x=1:C==="top"?x=2:x=p.constrain(Math.floor(x*3),0,2),v[x][b]}},4505:function(f,m){m.selectMode=function(u){return u==="lasso"||u==="select"},m.drawMode=function(u){return u==="drawclosedpath"||u==="drawopenpath"||u==="drawline"||u==="drawrect"||u==="drawcircle"},m.openMode=function(u){return u==="drawline"||u==="drawopenpath"},m.rectMode=function(u){return u==="select"||u==="drawline"||u==="drawrect"||u==="drawcircle"},m.freeMode=function(u){return u==="lasso"||u==="drawclosedpath"||u==="drawopenpath"},m.selectingOrDrawing=function(u){return m.freeMode(u)||m.rectMode(u)}},8569:function(f,m,u){var p=u(8956),v=u(7035),y=u(8520),b=u(1828).removeElement,x=u(5555),k=f.exports={};k.align=u(2807),k.getCursor=u(461);var C=u(6041);k.unhover=C.wrapped,k.unhoverRaw=C.raw,k.init=function(M){var I=M.gd,V=1,N=I._context.doubleClickDelay,F=M.element,z,U,Q,B,E,W,Y,ie;I._mouseDownTime||(I._mouseDownTime=0),F.style.pointerEvents="all",F.onmousedown=ae,y?(F._ontouchstart&&F.removeEventListener("touchstart",F._ontouchstart),F._ontouchstart=ae,F.addEventListener("touchstart",ae,{passive:!1})):F.ontouchstart=ae;function L(ee,be,Te){return Math.abs(ee)"u"&&typeof ee.clientY>"u"&&(ee.clientX=z,ee.clientY=U),Q=new Date().getTime(),Q-I._mouseDownTimeN&&(V=Math.max(V-1,1)),I._dragged)M.doneFn&&M.doneFn();else if(M.clickFn&&M.clickFn(V,W),!ie){var be;try{be=new MouseEvent("click",ee)}catch{var Te=T(ee);be=document.createEvent("MouseEvents"),be.initMouseEvent("click",ee.bubbles,ee.cancelable,ee.view,ee.detail,ee.screenX,ee.screenY,Te[0],Te[1],ee.ctrlKey,ee.altKey,ee.shiftKey,ee.metaKey,ee.button,ee.relatedTarget)}Y.dispatchEvent(be)}I._dragging=!1,I._dragged=!1}};function w(){var R=document.createElement("div");R.className="dragcover";var M=R.style;return M.position="fixed",M.left=0,M.right=0,M.top=0,M.bottom=0,M.zIndex=999999999,M.background="none",document.body.appendChild(R),R}k.coverSlip=w;function T(R){return p(R.changedTouches?R.changedTouches[0]:R,document.body)}},6041:function(f,m,u){var p=u(1086),v=u(9990),y=u(4401).getGraphDiv,b=u(6675),x=f.exports={};x.wrapped=function(k,C,w){k=y(k),k._fullLayout&&v.clear(k._fullLayout._uid+b.HOVERID),x.raw(k,C,w)},x.raw=function(C,w){var T=C._fullLayout,R=C._hoverdata;w||(w={}),!(w.target&&!C._dragged&&p.triggerHandler(C,"plotly_beforehover",w)===!1)&&(T._hoverlayer.selectAll("g").remove(),T._hoverlayer.selectAll("line").remove(),T._hoverlayer.selectAll("circle").remove(),C._hoverdata=void 0,w.target&&R&&C.emit("plotly_unhover",{event:w,points:R}))}},9952:function(f,m){m.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},m.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},1424:function(f,m,u){var p=u(9898),v=u(1828),y=v.numberFormat,b=u(2770),x=u(4267),k=u(3972),C=u(7901),w=u(1081),T=v.strTranslate,R=u(3893),M=u(7922),I=u(8783),V=I.LINE_SPACING,N=u(7822).DESELECTDIM,F=u(4098),z=u(9984),U=u(3469).appendArrayPointValue,Q=f.exports={};Q.font=function(Ye,je,et,yt){v.isPlainObject(je)&&(yt=je.color,et=je.size,je=je.family),je&&Ye.style("font-family",je),et+1&&Ye.style("font-size",et+"px"),yt&&Ye.call(C.fill,yt)},Q.setPosition=function(Ye,je,et){Ye.attr("x",je).attr("y",et)},Q.setSize=function(Ye,je,et){Ye.attr("width",je).attr("height",et)},Q.setRect=function(Ye,je,et,yt,ft){Ye.call(Q.setPosition,je,et).call(Q.setSize,yt,ft)},Q.translatePoint=function(Ye,je,et,yt){var ft=et.c2p(Ye.x),tt=yt.c2p(Ye.y);if(b(ft)&&b(tt)&&je.node())je.node().nodeName==="text"?je.attr("x",ft).attr("y",tt):je.attr("transform",T(ft,tt));else return!1;return!0},Q.translatePoints=function(Ye,je,et){Ye.each(function(yt){var ft=p.select(this);Q.translatePoint(yt,ft,je,et)})},Q.hideOutsideRangePoint=function(Ye,je,et,yt,ft,tt){je.attr("display",et.isPtWithinRange(Ye,ft)&&yt.isPtWithinRange(Ye,tt)?null:"none")},Q.hideOutsideRangePoints=function(Ye,je){if(je._hasClipOnAxisFalse){var et=je.xaxis,yt=je.yaxis;Ye.each(function(ft){var tt=ft[0].trace,wt=tt.xcalendar,Xt=tt.ycalendar,Gt=k.traceIs(tt,"bar-like")?".bartext":".point,.textpoint";Ye.selectAll(Gt).each(function(Nt){Q.hideOutsideRangePoint(Nt,p.select(this),et,yt,wt,Xt)})})}},Q.crispRound=function(Ye,je,et){return!je||!b(je)?et||0:Ye._context.staticPlot?je:je<1?1:Math.round(je)},Q.singleLineStyle=function(Ye,je,et,yt,ft){je.style("fill","none");var tt=(((Ye||[])[0]||{}).trace||{}).line||{},wt=et||tt.width||0,Xt=ft||tt.dash||"";C.stroke(je,yt||tt.color),Q.dashLine(je,Xt,wt)},Q.lineGroupStyle=function(Ye,je,et,yt){Ye.style("fill","none").each(function(ft){var tt=(((ft||[])[0]||{}).trace||{}).line||{},wt=je||tt.width||0,Xt=yt||tt.dash||"";p.select(this).call(C.stroke,et||tt.color).call(Q.dashLine,Xt,wt)})},Q.dashLine=function(Ye,je,et){et=+et||0,je=Q.dashStyle(je,et),Ye.style({"stroke-dasharray":je,"stroke-width":et+"px"})},Q.dashStyle=function(Ye,je){je=+je||1;var et=Math.max(je,3);return Ye==="solid"?Ye="":Ye==="dot"?Ye=et+"px,"+et+"px":Ye==="dash"?Ye=3*et+"px,"+3*et+"px":Ye==="longdash"?Ye=5*et+"px,"+5*et+"px":Ye==="dashdot"?Ye=3*et+"px,"+et+"px,"+et+"px,"+et+"px":Ye==="longdashdot"&&(Ye=5*et+"px,"+2*et+"px,"+et+"px,"+2*et+"px"),Ye};function B(Ye,je,et){var yt=je.fillpattern,ft=yt&&Q.getPatternAttr(yt.shape,0,"");if(ft){var tt=Q.getPatternAttr(yt.bgcolor,0,null),wt=Q.getPatternAttr(yt.fgcolor,0,null),Xt=yt.fgopacity,Gt=Q.getPatternAttr(yt.size,0,8),Nt=Q.getPatternAttr(yt.solidity,0,.3),Bt=je.uid;Q.pattern(Ye,"point",et,Bt,ft,Gt,Nt,void 0,yt.fillmode,tt,wt,Xt)}else je.fillcolor&&Ye.call(C.fill,je.fillcolor)}Q.singleFillStyle=function(Ye,je){var et=p.select(Ye.node()),yt=et.data(),ft=((yt[0]||[])[0]||{}).trace||{};B(Ye,ft,je)},Q.fillGroupStyle=function(Ye,je){Ye.style("stroke-width",0).each(function(et){var yt=p.select(this);et[0].trace&&B(yt,et[0].trace,je)})};var E=u(998);Q.symbolNames=[],Q.symbolFuncs=[],Q.symbolBackOffs=[],Q.symbolNeedLines={},Q.symbolNoDot={},Q.symbolNoFill={},Q.symbolList=[],Object.keys(E).forEach(function(Ye){var je=E[Ye],et=je.n;Q.symbolList.push(et,String(et),Ye,et+100,String(et+100),Ye+"-open"),Q.symbolNames[et]=Ye,Q.symbolFuncs[et]=je.f,Q.symbolBackOffs[et]=je.backoff||0,je.needLine&&(Q.symbolNeedLines[et]=!0),je.noDot?Q.symbolNoDot[et]=!0:Q.symbolList.push(et+200,String(et+200),Ye+"-dot",et+300,String(et+300),Ye+"-open-dot"),je.noFill&&(Q.symbolNoFill[et]=!0)});var W=Q.symbolNames.length,Y="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Q.symbolNumber=function(Ye){if(b(Ye))Ye=+Ye;else if(typeof Ye=="string"){var je=0;Ye.indexOf("-open")>0&&(je=100,Ye=Ye.replace("-open","")),Ye.indexOf("-dot")>0&&(je+=200,Ye=Ye.replace("-dot","")),Ye=Q.symbolNames.indexOf(Ye),Ye>=0&&(Ye+=je)}return Ye%100>=W||Ye>=400?0:Math.floor(Math.max(Ye,0))};function ie(Ye,je,et,yt){var ft=Ye%100;return Q.symbolFuncs[ft](je,et,yt)+(Ye>=200?Y:"")}var L={x1:1,x2:0,y1:0,y2:0},me={x1:0,x2:0,y1:1,y2:0},ae=y("~f"),q={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:L},horizontalreversed:{node:"linearGradient",attrs:L,reversed:!0},vertical:{node:"linearGradient",attrs:me},verticalreversed:{node:"linearGradient",attrs:me,reversed:!0}};Q.gradient=function(Ye,je,et,yt,ft,tt){for(var wt=ft.length,Xt=q[yt],Gt=new Array(wt),Nt=0;Nt=0&&Ye.i===void 0&&(Ye.i=tt.i),je.style("opacity",yt.selectedOpacityFn?yt.selectedOpacityFn(Ye):Ye.mo===void 0?wt.opacity:Ye.mo),yt.ms2mrc){var Gt;Ye.ms==="various"||wt.size==="various"?Gt=3:Gt=yt.ms2mrc(Ye.ms),Ye.mrc=Gt,yt.selectedSizeFn&&(Gt=Ye.mrc=yt.selectedSizeFn(Ye));var Nt=Q.symbolNumber(Ye.mx||wt.symbol)||0;Ye.om=Nt%200>=100;var Bt=pt(Ye,et),vn=te(Ye,et);je.attr("d",ie(Nt,Gt,Bt,vn))}var En=!1,ln,Yn,an;if(Ye.so)an=Xt.outlierwidth,Yn=Xt.outliercolor,ln=wt.outliercolor;else{var wn=(Xt||{}).width;an=(Ye.mlw+1||wn+1||(Ye.trace?(Ye.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in Ye?Yn=Ye.mlcc=yt.lineScale(Ye.mlc):v.isArrayOrTypedArray(Xt.color)?Yn=C.defaultLine:Yn=Xt.color,v.isArrayOrTypedArray(wt.color)&&(ln=C.defaultLine,En=!0),"mc"in Ye?ln=Ye.mcc=yt.markerScale(Ye.mc):ln=wt.color||wt.colors||"rgba(0,0,0,0)",yt.selectedColorFn&&(ln=yt.selectedColorFn(Ye))}if(Ye.om)je.call(C.stroke,ln).style({"stroke-width":(an||1)+"px",fill:"none"});else{je.style("stroke-width",(Ye.isBlank?0:an)+"px");var Xn=wt.gradient,Un=Ye.mgt;Un?En=!0:Un=Xn&&Xn.type,v.isArrayOrTypedArray(Un)&&(Un=Un[0],q[Un]||(Un=0));var Sn=wt.pattern,it=Sn&&Q.getPatternAttr(Sn.shape,Ye.i,"");if(Un&&Un!=="none"){var ut=Ye.mgc;ut?En=!0:ut=Xn.color;var xt=et.uid;En&&(xt+="-"+Ye.i),Q.gradient(je,ft,xt,Un,[[0,ut],[1,ln]],"fill")}else if(it){var gt=!1,Dt=Sn.fgcolor;!Dt&&tt&&tt.color&&(Dt=tt.color,gt=!0);var He=Q.getPatternAttr(Dt,Ye.i,tt&&tt.color||null),at=Q.getPatternAttr(Sn.bgcolor,Ye.i,null),dt=Sn.fgopacity,mt=Q.getPatternAttr(Sn.size,Ye.i,8),Tt=Q.getPatternAttr(Sn.solidity,Ye.i,.3);gt=gt||Ye.mcc||v.isArrayOrTypedArray(Sn.shape)||v.isArrayOrTypedArray(Sn.bgcolor)||v.isArrayOrTypedArray(Sn.fgcolor)||v.isArrayOrTypedArray(Sn.size)||v.isArrayOrTypedArray(Sn.solidity);var Pt=et.uid;gt&&(Pt+="-"+Ye.i),Q.pattern(je,"point",ft,Pt,it,mt,Tt,Ye.mcc,Sn.fillmode,at,He,dt)}else v.isArrayOrTypedArray(ln)?C.fill(je,ln[Ye.i]):C.fill(je,ln);an&&C.stroke(je,Yn)}},Q.makePointStyleFns=function(Ye){var je={},et=Ye.marker;return je.markerScale=Q.tryColorscale(et,""),je.lineScale=Q.tryColorscale(et,"line"),k.traceIs(Ye,"symbols")&&(je.ms2mrc=F.isBubble(Ye)?z(Ye):function(){return(et.size||6)/2}),Ye.selectedpoints&&v.extendFlat(je,Q.makeSelectedPointStyleFns(Ye)),je},Q.makeSelectedPointStyleFns=function(Ye){var je={},et=Ye.selected||{},yt=Ye.unselected||{},ft=Ye.marker||{},tt=et.marker||{},wt=yt.marker||{},Xt=ft.opacity,Gt=tt.opacity,Nt=wt.opacity,Bt=Gt!==void 0,vn=Nt!==void 0;(v.isArrayOrTypedArray(Xt)||Bt||vn)&&(je.selectedOpacityFn=function(it){var ut=it.mo===void 0?ft.opacity:it.mo;return it.selected?Bt?Gt:ut:vn?Nt:N*ut});var En=ft.color,ln=tt.color,Yn=wt.color;(ln||Yn)&&(je.selectedColorFn=function(it){var ut=it.mcc||En;return it.selected?ln||ut:Yn||ut});var an=ft.size,wn=tt.size,Xn=wt.size,Un=wn!==void 0,Sn=Xn!==void 0;return k.traceIs(Ye,"symbols")&&(Un||Sn)&&(je.selectedSizeFn=function(it){var ut=it.mrc||an/2;return it.selected?Un?wn/2:ut:Sn?Xn/2:ut}),je},Q.makeSelectedTextStyleFns=function(Ye){var je={},et=Ye.selected||{},yt=Ye.unselected||{},ft=Ye.textfont||{},tt=et.textfont||{},wt=yt.textfont||{},Xt=ft.color,Gt=tt.color,Nt=wt.color;return je.selectedTextColorFn=function(Bt){var vn=Bt.tc||Xt;return Bt.selected?Gt||vn:Nt||(Gt?vn:C.addOpacity(vn,N))},je},Q.selectedPointStyle=function(Ye,je){if(!(!Ye.size()||!je.selectedpoints)){var et=Q.makeSelectedPointStyleFns(je),yt=je.marker||{},ft=[];et.selectedOpacityFn&&ft.push(function(tt,wt){tt.style("opacity",et.selectedOpacityFn(wt))}),et.selectedColorFn&&ft.push(function(tt,wt){C.fill(tt,et.selectedColorFn(wt))}),et.selectedSizeFn&&ft.push(function(tt,wt){var Xt=wt.mx||yt.symbol||0,Gt=et.selectedSizeFn(wt);tt.attr("d",ie(Q.symbolNumber(Xt),Gt,pt(wt,je),te(wt,je))),wt.mrc2=Gt}),ft.length&&Ye.each(function(tt){for(var wt=p.select(this),Xt=0;Xt0?et:0}Q.textPointStyle=function(Ye,je,et){if(Ye.size()){var yt;if(je.selectedpoints){var ft=Q.makeSelectedTextStyleFns(je);yt=ft.selectedTextColorFn}var tt=je.texttemplate,wt=et._fullLayout;Ye.each(function(Xt){var Gt=p.select(this),Nt=tt?v.extractOption(Xt,je,"txt","texttemplate"):v.extractOption(Xt,je,"tx","text");if(!Nt&&Nt!==0){Gt.remove();return}if(tt){var Bt=je._module.formatLabels,vn=Bt?Bt(Xt,je,wt):{},En={};U(En,je,Xt.i);var ln=je._meta||{};Nt=v.texttemplateString(Nt,vn,wt._d3locale,En,Xt,ln)}var Yn=Xt.tp||je.textposition,an=be(Xt,je),wn=yt?yt(Xt):Xt.tc||je.textfont.color;Gt.call(Q.font,Xt.tf||je.textfont.family,an,wn).text(Nt).call(R.convertToTspans,et).call(ee,Yn,an,Xt.mrc)})}},Q.selectedTextStyle=function(Ye,je){if(!(!Ye.size()||!je.selectedpoints)){var et=Q.makeSelectedTextStyleFns(je);Ye.each(function(yt){var ft=p.select(this),tt=et.selectedTextColorFn(yt),wt=yt.tp||je.textposition,Xt=be(yt,je);C.fill(ft,tt);var Gt=k.traceIs(je,"bar-like");ee(ft,wt,Xt,yt.mrc2||yt.mrc,Gt)})}};var Te=.5;Q.smoothopen=function(Ye,je){if(Ye.length<3)return"M"+Ye.join("L");var et="M"+Ye[0],yt=[],ft;for(ft=1;ft=Gt||it>=Bt&&it<=Gt)&&(ut<=vn&&ut>=Nt||ut>=vn&&ut<=Nt)&&(Ye=[it,ut])}return Ye}Q.applyBackoff=ke,Q.makeTester=function(){var Ye=v.ensureSingleById(p.select("body"),"svg","js-plotly-tester",function(et){et.attr(M.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),je=v.ensureSingle(Ye,"path","js-reference-point",function(et){et.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Q.tester=Ye,Q.testref=je},Q.savedBBoxes={};var $e=0,Ze=1e4;Q.bBox=function(Ye,je,et){et||(et=De(Ye));var yt;if(et){if(yt=Q.savedBBoxes[et],yt)return v.extendFlat({},yt)}else if(Ye.childNodes.length===1){var ft=Ye.childNodes[0];if(et=De(ft),et){var tt=+ft.getAttribute("x")||0,wt=+ft.getAttribute("y")||0,Xt=ft.getAttribute("transform");if(!Xt){var Gt=Q.bBox(ft,!1,et);return tt&&(Gt.left+=tt,Gt.right+=tt),wt&&(Gt.top+=wt,Gt.bottom+=wt),Gt}if(et+="~"+tt+"~"+wt+"~"+Xt,yt=Q.savedBBoxes[et],yt)return v.extendFlat({},yt)}}var Nt,Bt;je?Nt=Ye:(Bt=Q.tester.node(),Nt=Ye.cloneNode(!0),Bt.appendChild(Nt)),p.select(Nt).attr("transform",null).call(R.positionText,0,0);var vn=Nt.getBoundingClientRect(),En=Q.testref.node().getBoundingClientRect();je||Bt.removeChild(Nt);var ln={height:vn.height,width:vn.width,left:vn.left-En.left,top:vn.top-En.top,right:vn.right-En.left,bottom:vn.bottom-En.top};return $e>=Ze&&(Q.savedBBoxes={},$e=0),et&&(Q.savedBBoxes[et]=ln),$e++,v.extendFlat({},ln)};function De(Ye){var je=Ye.getAttribute("data-unformatted");if(je!==null)return je+Ye.getAttribute("data-math")+Ye.getAttribute("text-anchor")+Ye.getAttribute("style")}Q.setClipUrl=function(Ye,je,et){Ye.attr("clip-path",Ie(je,et))};function Ie(Ye,je){if(!Ye)return null;var et=je._context,yt=et._exportedPlot?"":et._baseUrl||"";return yt?"url('"+yt+"#"+Ye+"')":"url(#"+Ye+")"}Q.getTranslate=function(Ye){var je=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,et=Ye.attr?"attr":"getAttribute",yt=Ye[et]("transform")||"",ft=yt.replace(je,function(tt,wt,Xt){return[wt,Xt].join(" ")}).split(" ");return{x:+ft[0]||0,y:+ft[1]||0}},Q.setTranslate=function(Ye,je,et){var yt=/(\btranslate\(.*?\);?)/,ft=Ye.attr?"attr":"getAttribute",tt=Ye.attr?"attr":"setAttribute",wt=Ye[ft]("transform")||"";return je=je||0,et=et||0,wt=wt.replace(yt,"").trim(),wt+=T(je,et),wt=wt.trim(),Ye[tt]("transform",wt),wt},Q.getScale=function(Ye){var je=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,et=Ye.attr?"attr":"getAttribute",yt=Ye[et]("transform")||"",ft=yt.replace(je,function(tt,wt,Xt){return[wt,Xt].join(" ")}).split(" ");return{x:+ft[0]||1,y:+ft[1]||1}},Q.setScale=function(Ye,je,et){var yt=/(\bscale\(.*?\);?)/,ft=Ye.attr?"attr":"getAttribute",tt=Ye.attr?"attr":"setAttribute",wt=Ye[ft]("transform")||"";return je=je||1,et=et||1,wt=wt.replace(yt,"").trim(),wt+="scale("+je+","+et+")",wt=wt.trim(),Ye[tt]("transform",wt),wt};var re=/\s*sc.*/;Q.setPointGroupScale=function(Ye,je,et){if(je=je||1,et=et||1,!!Ye){var yt=je===1&&et===1?"":"scale("+je+","+et+")";Ye.each(function(){var ft=(this.getAttribute("transform")||"").replace(re,"");ft+=yt,ft=ft.trim(),this.setAttribute("transform",ft)})}};var ye=/translate\([^)]*\)\s*$/;Q.setTextPointsScale=function(Ye,je,et){Ye&&Ye.each(function(){var yt,ft=p.select(this),tt=ft.select("text");if(tt.node()){var wt=parseFloat(tt.attr("x")||0),Xt=parseFloat(tt.attr("y")||0),Gt=(ft.attr("transform")||"").match(ye);je===1&&et===1?yt=[]:yt=[T(wt,Xt),"scale("+je+","+et+")",T(-wt,-Xt)],Gt&&yt.push(Gt),ft.attr("transform",yt.join(""))}})};function te(Ye,je){var et;return Ye&&(et=Ye.mf),et===void 0&&(et=je.marker&&je.marker.standoff||0),!je._geo&&!je._xA?-et:et}Q.getMarkerStandoff=te;var se=Math.atan2,ue=Math.cos,oe=Math.sin;function Se(Ye,je){var et=je[0],yt=je[1];return[et*ue(Ye)-yt*oe(Ye),et*oe(Ye)+yt*ue(Ye)]}var le,Ce,Qe,ze,Xe,ct;function pt(Ye,je){var et=Ye.ma;et===void 0&&(et=je.marker.angle||0);var yt,ft,tt=je.marker.angleref;if(tt==="previous"||tt==="north"){if(je._geo){var wt=je._geo.project(Ye.lonlat);yt=wt[0],ft=wt[1]}else{var Xt=je._xA,Gt=je._yA;if(Xt&&Gt)yt=Xt.c2p(Ye.x),ft=Gt.c2p(Ye.y);else return 90}if(je._geo){var Nt=Ye.lonlat[0],Bt=Ye.lonlat[1],vn=je._geo.project([Nt,Bt+1e-5]),En=je._geo.project([Nt+1e-5,Bt]),ln=se(En[1]-ft,En[0]-yt),Yn=se(vn[1]-ft,vn[0]-yt),an;if(tt==="north")an=et/180*Math.PI;else if(tt==="previous"){var wn=Nt/180*Math.PI,Xn=Bt/180*Math.PI,Un=le/180*Math.PI,Sn=Ce/180*Math.PI,it=Un-wn,ut=ue(Sn)*oe(it),xt=oe(Sn)*ue(Xn)-ue(Sn)*oe(Xn)*ue(it);an=-se(ut,xt)-Math.PI,le=Nt,Ce=Bt}var gt=Se(ln,[ue(an),0]),Dt=Se(Yn,[oe(an),0]);et=se(gt[1]+Dt[1],gt[0]+Dt[0])/Math.PI*180,tt==="previous"&&!(ct===je.uid&&Ye.i===Xe+1)&&(et=null)}if(tt==="previous"&&!je._geo)if(ct===je.uid&&Ye.i===Xe+1&&b(yt)&&b(ft)){var He=yt-Qe,at=ft-ze,dt=je.line&&je.line.shape||"",mt=dt.slice(dt.length-1);mt==="h"&&(at=0),mt==="v"&&(He=0),et+=se(at,He)/Math.PI*180+90}else et=null}return Qe=yt,ze=ft,Xe=Ye.i,ct=je.uid,et}Q.getMarkerAngle=pt},998:function(f,m,u){var p=u(5616),v=u(9898).round,y="M0,0Z",b=Math.sqrt(2),x=Math.sqrt(3),k=Math.PI,C=Math.cos,w=Math.sin;f.exports={circle:{n:0,f:function(F,z,U){if(T(z))return y;var Q=v(F,2),B="M"+Q+",0A"+Q+","+Q+" 0 1,1 0,-"+Q+"A"+Q+","+Q+" 0 0,1 "+Q+",0Z";return U?N(z,U,B):B}},square:{n:1,f:function(F,z,U){if(T(z))return y;var Q=v(F,2);return N(z,U,"M"+Q+","+Q+"H-"+Q+"V-"+Q+"H"+Q+"Z")}},diamond:{n:2,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.3,2);return N(z,U,"M"+Q+",0L0,"+Q+"L-"+Q+",0L0,-"+Q+"Z")}},cross:{n:3,f:function(F,z,U){if(T(z))return y;var Q=v(F*.4,2),B=v(F*1.2,2);return N(z,U,"M"+B+","+Q+"H"+Q+"V"+B+"H-"+Q+"V"+Q+"H-"+B+"V-"+Q+"H-"+Q+"V-"+B+"H"+Q+"V-"+Q+"H"+B+"Z")}},x:{n:4,f:function(F,z,U){if(T(z))return y;var Q=v(F*.8/b,2),B="l"+Q+","+Q,E="l"+Q+",-"+Q,W="l-"+Q+",-"+Q,Y="l-"+Q+","+Q;return N(z,U,"M0,"+Q+B+E+W+E+W+Y+W+Y+B+Y+B+"Z")}},"triangle-up":{n:5,f:function(F,z,U){if(T(z))return y;var Q=v(F*2/x,2),B=v(F/2,2),E=v(F,2);return N(z,U,"M-"+Q+","+B+"H"+Q+"L0,-"+E+"Z")}},"triangle-down":{n:6,f:function(F,z,U){if(T(z))return y;var Q=v(F*2/x,2),B=v(F/2,2),E=v(F,2);return N(z,U,"M-"+Q+",-"+B+"H"+Q+"L0,"+E+"Z")}},"triangle-left":{n:7,f:function(F,z,U){if(T(z))return y;var Q=v(F*2/x,2),B=v(F/2,2),E=v(F,2);return N(z,U,"M"+B+",-"+Q+"V"+Q+"L-"+E+",0Z")}},"triangle-right":{n:8,f:function(F,z,U){if(T(z))return y;var Q=v(F*2/x,2),B=v(F/2,2),E=v(F,2);return N(z,U,"M-"+B+",-"+Q+"V"+Q+"L"+E+",0Z")}},"triangle-ne":{n:9,f:function(F,z,U){if(T(z))return y;var Q=v(F*.6,2),B=v(F*1.2,2);return N(z,U,"M-"+B+",-"+Q+"H"+Q+"V"+B+"Z")}},"triangle-se":{n:10,f:function(F,z,U){if(T(z))return y;var Q=v(F*.6,2),B=v(F*1.2,2);return N(z,U,"M"+Q+",-"+B+"V"+Q+"H-"+B+"Z")}},"triangle-sw":{n:11,f:function(F,z,U){if(T(z))return y;var Q=v(F*.6,2),B=v(F*1.2,2);return N(z,U,"M"+B+","+Q+"H-"+Q+"V-"+B+"Z")}},"triangle-nw":{n:12,f:function(F,z,U){if(T(z))return y;var Q=v(F*.6,2),B=v(F*1.2,2);return N(z,U,"M-"+Q+","+B+"V-"+Q+"H"+B+"Z")}},pentagon:{n:13,f:function(F,z,U){if(T(z))return y;var Q=v(F*.951,2),B=v(F*.588,2),E=v(-F,2),W=v(F*-.309,2),Y=v(F*.809,2);return N(z,U,"M"+Q+","+W+"L"+B+","+Y+"H-"+B+"L-"+Q+","+W+"L0,"+E+"Z")}},hexagon:{n:14,f:function(F,z,U){if(T(z))return y;var Q=v(F,2),B=v(F/2,2),E=v(F*x/2,2);return N(z,U,"M"+E+",-"+B+"V"+B+"L0,"+Q+"L-"+E+","+B+"V-"+B+"L0,-"+Q+"Z")}},hexagon2:{n:15,f:function(F,z,U){if(T(z))return y;var Q=v(F,2),B=v(F/2,2),E=v(F*x/2,2);return N(z,U,"M-"+B+","+E+"H"+B+"L"+Q+",0L"+B+",-"+E+"H-"+B+"L-"+Q+",0Z")}},octagon:{n:16,f:function(F,z,U){if(T(z))return y;var Q=v(F*.924,2),B=v(F*.383,2);return N(z,U,"M-"+B+",-"+Q+"H"+B+"L"+Q+",-"+B+"V"+B+"L"+B+","+Q+"H-"+B+"L-"+Q+","+B+"V-"+B+"Z")}},star:{n:17,f:function(F,z,U){if(T(z))return y;var Q=F*1.4,B=v(Q*.225,2),E=v(Q*.951,2),W=v(Q*.363,2),Y=v(Q*.588,2),ie=v(-Q,2),L=v(Q*-.309,2),me=v(Q*.118,2),ae=v(Q*.809,2),q=v(Q*.382,2);return N(z,U,"M"+B+","+L+"H"+E+"L"+W+","+me+"L"+Y+","+ae+"L0,"+q+"L-"+Y+","+ae+"L-"+W+","+me+"L-"+E+","+L+"H-"+B+"L0,"+ie+"Z")}},hexagram:{n:18,f:function(F,z,U){if(T(z))return y;var Q=v(F*.66,2),B=v(F*.38,2),E=v(F*.76,2);return N(z,U,"M-"+E+",0l-"+B+",-"+Q+"h"+E+"l"+B+",-"+Q+"l"+B+","+Q+"h"+E+"l-"+B+","+Q+"l"+B+","+Q+"h-"+E+"l-"+B+","+Q+"l-"+B+",-"+Q+"h-"+E+"Z")}},"star-triangle-up":{n:19,f:function(F,z,U){if(T(z))return y;var Q=v(F*x*.8,2),B=v(F*.8,2),E=v(F*1.6,2),W=v(F*4,2),Y="A "+W+","+W+" 0 0 1 ";return N(z,U,"M-"+Q+","+B+Y+Q+","+B+Y+"0,-"+E+Y+"-"+Q+","+B+"Z")}},"star-triangle-down":{n:20,f:function(F,z,U){if(T(z))return y;var Q=v(F*x*.8,2),B=v(F*.8,2),E=v(F*1.6,2),W=v(F*4,2),Y="A "+W+","+W+" 0 0 1 ";return N(z,U,"M"+Q+",-"+B+Y+"-"+Q+",-"+B+Y+"0,"+E+Y+Q+",-"+B+"Z")}},"star-square":{n:21,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.1,2),B=v(F*2,2),E="A "+B+","+B+" 0 0 1 ";return N(z,U,"M-"+Q+",-"+Q+E+"-"+Q+","+Q+E+Q+","+Q+E+Q+",-"+Q+E+"-"+Q+",-"+Q+"Z")}},"star-diamond":{n:22,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.4,2),B=v(F*1.9,2),E="A "+B+","+B+" 0 0 1 ";return N(z,U,"M-"+Q+",0"+E+"0,"+Q+E+Q+",0"+E+"0,-"+Q+E+"-"+Q+",0Z")}},"diamond-tall":{n:23,f:function(F,z,U){if(T(z))return y;var Q=v(F*.7,2),B=v(F*1.4,2);return N(z,U,"M0,"+B+"L"+Q+",0L0,-"+B+"L-"+Q+",0Z")}},"diamond-wide":{n:24,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.4,2),B=v(F*.7,2);return N(z,U,"M0,"+B+"L"+Q+",0L0,-"+B+"L-"+Q+",0Z")}},hourglass:{n:25,f:function(F,z,U){if(T(z))return y;var Q=v(F,2);return N(z,U,"M"+Q+","+Q+"H-"+Q+"L"+Q+",-"+Q+"H-"+Q+"Z")},noDot:!0},bowtie:{n:26,f:function(F,z,U){if(T(z))return y;var Q=v(F,2);return N(z,U,"M"+Q+","+Q+"V-"+Q+"L-"+Q+","+Q+"V-"+Q+"Z")},noDot:!0},"circle-cross":{n:27,f:function(F,z,U){if(T(z))return y;var Q=v(F,2);return N(z,U,"M0,"+Q+"V-"+Q+"M"+Q+",0H-"+Q+"M"+Q+",0A"+Q+","+Q+" 0 1,1 0,-"+Q+"A"+Q+","+Q+" 0 0,1 "+Q+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(F,z,U){if(T(z))return y;var Q=v(F,2),B=v(F/b,2);return N(z,U,"M"+B+","+B+"L-"+B+",-"+B+"M"+B+",-"+B+"L-"+B+","+B+"M"+Q+",0A"+Q+","+Q+" 0 1,1 0,-"+Q+"A"+Q+","+Q+" 0 0,1 "+Q+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(F,z,U){if(T(z))return y;var Q=v(F,2);return N(z,U,"M0,"+Q+"V-"+Q+"M"+Q+",0H-"+Q+"M"+Q+","+Q+"H-"+Q+"V-"+Q+"H"+Q+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(F,z,U){if(T(z))return y;var Q=v(F,2);return N(z,U,"M"+Q+","+Q+"L-"+Q+",-"+Q+"M"+Q+",-"+Q+"L-"+Q+","+Q+"M"+Q+","+Q+"H-"+Q+"V-"+Q+"H"+Q+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.3,2);return N(z,U,"M"+Q+",0L0,"+Q+"L-"+Q+",0L0,-"+Q+"ZM0,-"+Q+"V"+Q+"M-"+Q+",0H"+Q)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.3,2),B=v(F*.65,2);return N(z,U,"M"+Q+",0L0,"+Q+"L-"+Q+",0L0,-"+Q+"ZM-"+B+",-"+B+"L"+B+","+B+"M-"+B+","+B+"L"+B+",-"+B)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.4,2);return N(z,U,"M0,"+Q+"V-"+Q+"M"+Q+",0H-"+Q)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(F,z,U){if(T(z))return y;var Q=v(F,2);return N(z,U,"M"+Q+","+Q+"L-"+Q+",-"+Q+"M"+Q+",-"+Q+"L-"+Q+","+Q)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.2,2),B=v(F*.85,2);return N(z,U,"M0,"+Q+"V-"+Q+"M"+Q+",0H-"+Q+"M"+B+","+B+"L-"+B+",-"+B+"M"+B+",-"+B+"L-"+B+","+B)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(F,z,U){if(T(z))return y;var Q=v(F/2,2),B=v(F,2);return N(z,U,"M"+Q+","+B+"V-"+B+"M"+(Q-B)+",-"+B+"V"+B+"M"+B+","+Q+"H-"+B+"M-"+B+","+(Q-B)+"H"+B)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.2,2),B=v(F*1.6,2),E=v(F*.8,2);return N(z,U,"M-"+Q+","+E+"L0,0M"+Q+","+E+"L0,0M0,-"+B+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.2,2),B=v(F*1.6,2),E=v(F*.8,2);return N(z,U,"M-"+Q+",-"+E+"L0,0M"+Q+",-"+E+"L0,0M0,"+B+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.2,2),B=v(F*1.6,2),E=v(F*.8,2);return N(z,U,"M"+E+","+Q+"L0,0M"+E+",-"+Q+"L0,0M-"+B+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.2,2),B=v(F*1.6,2),E=v(F*.8,2);return N(z,U,"M-"+E+","+Q+"L0,0M-"+E+",-"+Q+"L0,0M"+B+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.4,2);return N(z,U,"M"+Q+",0H-"+Q)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(F,z,U){if(T(z))return y;var Q=v(F*1.4,2);return N(z,U,"M0,"+Q+"V-"+Q)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(F,z,U){if(T(z))return y;var Q=v(F,2);return N(z,U,"M"+Q+",-"+Q+"L-"+Q+","+Q)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(F,z,U){if(T(z))return y;var Q=v(F,2);return N(z,U,"M"+Q+","+Q+"L-"+Q+",-"+Q)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(F,z,U){if(T(z))return y;var Q=v(F,2),B=v(F*2,2);return N(z,U,"M0,0L-"+Q+","+B+"H"+Q+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(F,z,U){if(T(z))return y;var Q=v(F,2),B=v(F*2,2);return N(z,U,"M0,0L-"+Q+",-"+B+"H"+Q+"Z")},noDot:!0},"arrow-left":{n:47,f:function(F,z,U){if(T(z))return y;var Q=v(F*2,2),B=v(F,2);return N(z,U,"M0,0L"+Q+",-"+B+"V"+B+"Z")},noDot:!0},"arrow-right":{n:48,f:function(F,z,U){if(T(z))return y;var Q=v(F*2,2),B=v(F,2);return N(z,U,"M0,0L-"+Q+",-"+B+"V"+B+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(F,z,U){if(T(z))return y;var Q=v(F,2),B=v(F*2,2);return N(z,U,"M-"+Q+",0H"+Q+"M0,0L-"+Q+","+B+"H"+Q+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(F,z,U){if(T(z))return y;var Q=v(F,2),B=v(F*2,2);return N(z,U,"M-"+Q+",0H"+Q+"M0,0L-"+Q+",-"+B+"H"+Q+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(F,z,U){if(T(z))return y;var Q=v(F*2,2),B=v(F,2);return N(z,U,"M0,-"+B+"V"+B+"M0,0L"+Q+",-"+B+"V"+B+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(F,z,U){if(T(z))return y;var Q=v(F*2,2),B=v(F,2);return N(z,U,"M0,-"+B+"V"+B+"M0,0L-"+Q+",-"+B+"V"+B+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(F,z,U){if(T(z))return y;var Q=k/2.5,B=2*F*C(Q),E=2*F*w(Q);return N(z,U,"M0,0L"+-B+","+E+"L"+B+","+E+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(F,z,U){if(T(z))return y;var Q=k/4,B=2*F*C(Q),E=2*F*w(Q);return N(z,U,"M0,0L"+-B+","+E+"A "+2*F+","+2*F+" 0 0 1 "+B+","+E+"Z")},backoff:.4,noDot:!0}};function T(F){return F===null}var R,M,I,V;function N(F,z,U){if((!F||F%360===0)&&!z)return U;if(I===F&&V===z&&R===U)return M;I=F,V=z,R=U;function Q(Te,Be){var ge=C(Te),ne=w(Te),pe=Be[0],G=Be[1]+(z||0);return[pe*ge-G*ne,pe*ne+G*ge]}for(var B=F/180*k,E=0,W=0,Y=p(U),ie="",L=0;L0,F=C._context.staticPlot;w.each(function(z){var U=z[0].trace,Q=U.error_x||{},B=U.error_y||{},E;U.ids&&(E=function(L){return L.id});var W=b.hasMarkers(U)&&U.marker.maxdisplayed>0;!B.visible&&!Q.visible&&(z=[]);var Y=p.select(this).selectAll("g.errorbar").data(z,E);if(Y.exit().remove(),!!z.length){Q.visible||Y.selectAll("path.xerror").remove(),B.visible||Y.selectAll("path.yerror").remove(),Y.style("opacity",1);var ie=Y.enter().append("g").classed("errorbar",!0);N&&ie.style("opacity",0).transition().duration(R.duration).style("opacity",1),y.setClipUrl(Y,T.layerClipId,C),Y.each(function(L){var me=p.select(this),ae=x(L,I,V);if(!(W&&!L.vis)){var q,fe=me.select("path.yerror");if(B.visible&&v(ae.x)&&v(ae.yh)&&v(ae.ys)){var ee=B.width;q="M"+(ae.x-ee)+","+ae.yh+"h"+2*ee+"m-"+ee+",0V"+ae.ys,ae.noYS||(q+="m-"+ee+",0h"+2*ee),M=!fe.size(),M?fe=me.append("path").style("vector-effect",F?"none":"non-scaling-stroke").classed("yerror",!0):N&&(fe=fe.transition().duration(R.duration).ease(R.easing)),fe.attr("d",q)}else fe.remove();var be=me.select("path.xerror");if(Q.visible&&v(ae.y)&&v(ae.xh)&&v(ae.xs)){var Te=(Q.copy_ystyle?B:Q).width;q="M"+ae.xh+","+(ae.y-Te)+"v"+2*Te+"m0,-"+Te+"H"+ae.xs,ae.noXS||(q+="m0,-"+Te+"v"+2*Te),M=!be.size(),M?be=me.append("path").style("vector-effect",F?"none":"non-scaling-stroke").classed("xerror",!0):N&&(be=be.transition().duration(R.duration).ease(R.easing)),be.attr("d",q)}else be.remove()}})}})};function x(k,C,w){var T={x:C.c2p(k.x),y:w.c2p(k.y)};return k.yh!==void 0&&(T.yh=w.c2p(k.yh),T.ys=w.c2p(k.ys),v(T.ys)||(T.noYS=!0,T.ys=w.c2p(k.ys,!0))),k.xh!==void 0&&(T.xh=C.c2p(k.xh),T.xs=C.c2p(k.xs),v(T.xs)||(T.noXS=!0,T.xs=C.c2p(k.xs,!0))),T}},2662:function(f,m,u){var p=u(9898),v=u(7901);f.exports=function(b){b.each(function(x){var k=x[0].trace,C=k.error_y||{},w=k.error_x||{},T=p.select(this);T.selectAll("path.yerror").style("stroke-width",C.thickness+"px").call(v.stroke,C.color),w.copy_ystyle&&(w=C),T.selectAll("path.xerror").style("stroke-width",w.thickness+"px").call(v.stroke,w.color)})}},7914:function(f,m,u){var p=u(1940),v=u(528).hoverlabel,y=u(1426).extendFlat;f.exports={hoverlabel:{bgcolor:y({},v.bgcolor,{arrayOk:!0}),bordercolor:y({},v.bordercolor,{arrayOk:!0}),font:p({arrayOk:!0,editType:"none"}),align:y({},v.align,{arrayOk:!0}),namelength:y({},v.namelength,{arrayOk:!0}),editType:"none"}}},732:function(f,m,u){var p=u(1828),v=u(3972);f.exports=function(x){var k=x.calcdata,C=x._fullLayout;function w(V){return function(N){return p.coerceHoverinfo({hoverinfo:N},{_module:V._module},C)}}for(var T=0;T=0&&T.indexYe[0]._length||mt<0||mt>je[0]._length)return I.unhoverRaw(te,se)}if(se.pointerX=dt+Ye[0]._offset,se.pointerY=mt+je[0]._offset,"xval"in se?vn=F.flat(le,se.xval):vn=F.p2c(Ye,dt),"yval"in se?En=F.flat(le,se.yval):En=F.p2c(je,mt),!v(vn[0])||!v(En[0]))return b.warn("Fx.hover failed",se,te),I.unhoverRaw(te,se)}var dn=1/0;function nn(ar,ur){for(Yn=0;Yngt&&(Nt.splice(0,gt),dn=Nt[0].distance),Xe&&Gt!==0&&Nt.length===0){xt.distance=Gt,xt.index=!1;var So=wn._module.hoverPoints(xt,it,ut,"closest",{hoverLayer:Ce._hoverlayer});if(So&&(So=So.filter(function(Wa){return Wa.spikeDistance<=Gt})),So&&So.length){var Ko,ds=So.filter(function(Wa){return Wa.xa.showspikes&&Wa.xa.spikesnap!=="hovered data"});if(ds.length){var qs=ds[0];v(qs.x0)&&v(qs.y0)&&(Ko=Rt(qs),(!Dt.vLinePoint||Dt.vLinePoint.spikeDistance>Ko.spikeDistance)&&(Dt.vLinePoint=Ko))}var es=So.filter(function(Wa){return Wa.ya.showspikes&&Wa.ya.spikesnap!=="hovered data"});if(es.length){var Xs=es[0];v(Xs.x0)&&v(Xs.y0)&&(Ko=Rt(Xs),(!Dt.hLinePoint||Dt.hLinePoint.spikeDistance>Ko.spikeDistance)&&(Dt.hLinePoint=Ko))}}}}}nn();function Wt(ar,ur,qr){for(var to=null,ko=1/0,Es,So=0;So0&&Math.abs(ar.distance)Rn-1;Fe--)wr(Nt[Fe]);Nt=Sr,Er()}var Ee=te._hoverdata,St=[],Ct=Ie(te),Lt=re(te);for(ln=0;ln1||Nt.length>1)||wt==="closest"&&He&&Nt.length>1,Fn=M.combine(Ce.plot_bgcolor||M.background,Ce.paper_bgcolor),zr=Te(Nt,{gd:te,hovermode:wt,rotateLabels:Jn,bgColor:Fn,container:Ce._hoverlayer,outerContainer:Ce._paper.node(),commonLabelOpts:Ce.hoverlabel,hoverdistance:Ce.hoverdistance}),dr=zr.hoverLabels;if(F.isUnifiedHover(wt)||(ge(dr,Jn,Ce,zr.commonLabelBoundingBox),G(dr,Jn,Ce._invScaleX,Ce._invScaleY)),Se&&Se.tagName){var Hr=N.getComponentMethod("annotations","hasClickToShow")(te,St);T(p.select(Se),Hr?"pointer":"")}!Se||oe||!Le(te,se,Ee)||(Ee&&te.emit("plotly_unhover",{event:se,points:Ee}),te.emit("plotly_hover",{event:se,points:te._hoverdata,xaxes:Ye,yaxes:je,xvals:vn,yvals:En}))}function ee(te){return[te.trace.index,te.index,te.x0,te.y0,te.name,te.attr,te.xa?te.xa._id:"",te.ya?te.ya._id:""].join(",")}var be=/([\s\S]*)<\/extra>/;function Te(te,se){var ue=se.gd,oe=ue._fullLayout,Se=se.hovermode,le=se.rotateLabels,Ce=se.bgColor,Qe=se.container,ze=se.outerContainer,Xe=se.commonLabelOpts||{};if(te.length===0)return[[]];var ct=se.fontFamily||z.HOVERFONT,pt=se.fontSize||z.HOVERFONTSIZE,Ye=te[0],je=Ye.xa,et=Ye.ya,yt=Se.charAt(0),ft=yt+"Label",tt=Ye[ft];if(tt===void 0&&je.type==="multicategory")for(var wt=0;wtoe.width-Lt?(Ee=oe.width-Lt,xr.attr("d","M"+(Lt-L)+",0L"+Lt+","+Ct+L+"v"+Ct+(me*2+Fe.height)+"H-"+Lt+"V"+Ct+L+"H"+(Lt-L*2)+"Z")):xr.attr("d","M0,0L"+L+","+Ct+L+"H"+Lt+"v"+Ct+(me*2+Fe.height)+"H-"+Lt+"V"+Ct+L+"H-"+L+"Z"),Xn.minX=Ee-Lt,Xn.maxX=Ee+Lt,je.side==="top"?(Xn.minY=St-(me*2+Fe.height),Xn.maxY=St-me):(Xn.minY=St+me,Xn.maxY=St+(me*2+Fe.height))}else{var Ft,Ht,$t;et.side==="right"?(Ft="start",Ht=1,$t="",Ee=je._offset+je._length):(Ft="end",Ht=-1,$t="-",Ee=je._offset),St=et._offset+(Ye.y0+Ye.y1)/2,sr.attr("text-anchor",Ft),xr.attr("d","M0,0L"+$t+L+","+L+"V"+(me+Fe.height/2)+"h"+$t+(me*2+Fe.width)+"V-"+(me+Fe.height/2)+"H"+$t+L+"V-"+L+"Z"),Xn.minY=St-(me+Fe.height/2),Xn.maxY=St+(me+Fe.height/2),et.side==="right"?(Xn.minX=Ee+L,Xn.maxX=Ee+L+(me*2+Fe.width)):(Xn.minX=Ee-L-(me*2+Fe.width),Xn.maxX=Ee-L);var Mt=Fe.height/2,en=Gt-Fe.top-Mt,un="clip"+oe._uid+"commonlabel"+et._id,Jt;if(Ee=0?or=vr:Wn+nn=0?or=Wn:Br+nn=0?jr=Er:zt+Wt=0?jr=zt:kr+Wt=0,(Rn.idealAlign==="top"||!Jn)&&Fn?(en-=Jt/2,Rn.anchor="end"):Jn?(en+=Jt/2,Rn.anchor="start"):Rn.anchor="middle",Rn.crossPos=en;else{if(Rn.pos=en,Jn=Mt+un/2+pn<=Nt,Fn=Mt-un/2-pn>=0,(Rn.idealAlign==="left"||!Jn)&&Fn)Mt-=un/2,Rn.anchor="end";else if(Jn)Mt+=un/2,Rn.anchor="start";else{Rn.anchor="middle";var zr=pn/2,dr=Mt+zr-Nt,Hr=Mt-zr;dr>0&&(Mt-=dr),Hr<0&&(Mt+=-Hr)}Rn.crossPos=Mt}Ct.attr("text-anchor",Rn.anchor),Ft&&Lt.attr("text-anchor",Rn.anchor),xr.attr("transform",x(Mt,en)+(le?k(B):""))}),{hoverLabels:_r,commonLabelBoundingBox:Xn}}function Be(te,se,ue,oe,Se,le){var Ce="",Qe="";te.nameOverride!==void 0&&(te.name=te.nameOverride),te.name&&(te.trace._meta&&(te.name=b.templateString(te.name,te.trace._meta)),Ce=$e(te.name,te.nameLength));var ze=ue.charAt(0),Xe=ze==="x"?"y":"x";te.zLabel!==void 0?(te.xLabel!==void 0&&(Qe+="x: "+te.xLabel+"
"),te.yLabel!==void 0&&(Qe+="y: "+te.yLabel+"
"),te.trace.type!=="choropleth"&&te.trace.type!=="choroplethmapbox"&&(Qe+=(Qe?"z: ":"")+te.zLabel)):se&&te[ze+"Label"]===Se?Qe=te[Xe+"Label"]||"":te.xLabel===void 0?te.yLabel!==void 0&&te.trace.type!=="scattercarpet"&&(Qe=te.yLabel):te.yLabel===void 0?Qe=te.xLabel:Qe="("+te.xLabel+", "+te.yLabel+")",(te.text||te.text===0)&&!Array.isArray(te.text)&&(Qe+=(Qe?"
":"")+te.text),te.extraText!==void 0&&(Qe+=(Qe?"
":"")+te.extraText),le&&Qe===""&&!te.hovertemplate&&(Ce===""&&le.remove(),Qe=Ce);var ct=te.hovertemplate||!1;if(ct){var pt=te.hovertemplateLabels||te;te[ze+"Label"]!==Se&&(pt[ze+"other"]=pt[ze+"Val"],pt[ze+"otherLabel"]=pt[ze+"Label"]),Qe=b.hovertemplateString(ct,pt,oe._d3locale,te.eventData[0]||{},te.trace._meta),Qe=Qe.replace(be,function(Ye,je){return Ce=$e(je,te.nameLength),""})}return[Qe,Ce]}function ge(te,se,ue,oe){var Se=se?"xa":"ya",le=se?"ya":"xa",Ce=0,Qe=1,ze=te.size(),Xe=new Array(ze),ct=0,pt=oe.minX,Ye=oe.maxX,je=oe.minY,et=oe.maxY,yt=function(it){return it*ue._invScaleX},ft=function(it){return it*ue._invScaleY};te.each(function(it){var ut=it[Se],xt=it[le],gt=ut._id.charAt(0)==="x",Dt=ut.range;ct===0&&Dt&&Dt[0]>Dt[1]!==gt&&(Qe=-1);var He=0,at=gt?ue.width:ue.height;if(ue.hovermode==="x"||ue.hovermode==="y"){var dt=ne(it,se),mt=it.anchor,Tt=mt==="end"?-1:1,Pt,dn;if(mt==="middle")Pt=it.crossPos+(gt?ft(dt.y-it.by/2):yt(it.bx/2+it.tx2width/2)),dn=Pt+(gt?ft(it.by):yt(it.bx));else if(gt)Pt=it.crossPos+ft(L+dt.y)-ft(it.by/2-L),dn=Pt+ft(it.by);else{var nn=yt(Tt*L+dt.x),Wt=nn+yt(Tt*it.bx);Pt=it.crossPos+Math.min(nn,Wt),dn=it.crossPos+Math.max(nn,Wt)}gt?je!==void 0&&et!==void 0&&Math.min(dn,et)-Math.max(Pt,je)>1&&(xt.side==="left"?(He=xt._mainLinePosition,at=ue.width):at=xt._mainLinePosition):pt!==void 0&&Ye!==void 0&&Math.min(dn,Ye)-Math.max(Pt,pt)>1&&(xt.side==="top"?(He=xt._mainLinePosition,at=ue.height):at=xt._mainLinePosition)}Xe[ct++]=[{datum:it,traceIndex:it.trace.index,dp:0,pos:it.pos,posref:it.posref,size:it.by*(gt?W:1)/2,pmin:He,pmax:at}]}),Xe.sort(function(it,ut){return it[0].posref-ut[0].posref||Qe*(ut[0].traceIndex-it[0].traceIndex)});var tt,wt,Xt,Gt,Nt,Bt,vn;function En(it){var ut=it[0],xt=it[it.length-1];if(wt=ut.pmin-ut.pos-ut.dp+ut.size,Xt=xt.pos+xt.dp+xt.size-ut.pmax,wt>.01){for(Nt=it.length-1;Nt>=0;Nt--)it[Nt].dp+=wt;tt=!1}if(!(Xt<.01)){if(wt<-.01){for(Nt=it.length-1;Nt>=0;Nt--)it[Nt].dp-=Xt;tt=!1}if(tt){var gt=0;for(Gt=0;Gtut.pmax&>++;for(Gt=it.length-1;Gt>=0&&!(gt<=0);Gt--)Bt=it[Gt],Bt.pos>ut.pmax-1&&(Bt.del=!0,gt--);for(Gt=0;Gt=0;Nt--)it[Nt].dp-=Xt;for(Gt=it.length-1;Gt>=0&&!(gt<=0);Gt--)Bt=it[Gt],Bt.pos+Bt.dp+Bt.size>ut.pmax&&(Bt.del=!0,gt--)}}}for(;!tt&&Ce<=ze;){for(Ce++,tt=!0,Gt=0;Gt.01&&an.pmin===wn.pmin&&an.pmax===wn.pmax){for(Nt=Yn.length-1;Nt>=0;Nt--)Yn[Nt].dp+=wt;for(ln.push.apply(ln,Yn),Xe.splice(Gt+1,1),vn=0,Nt=ln.length-1;Nt>=0;Nt--)vn+=ln[Nt].dp;for(Xt=vn/ln.length,Nt=ln.length-1;Nt>=0;Nt--)ln[Nt].dp-=Xt;tt=!1}else Gt++}Xe.forEach(En)}for(Gt=Xe.length-1;Gt>=0;Gt--){var Xn=Xe[Gt];for(Nt=Xn.length-1;Nt>=0;Nt--){var Un=Xn[Nt],Sn=Un.datum;Sn.offset=Un.dp,Sn.del=Un.del}}}function ne(te,se){var ue=0,oe=te.offset;return se&&(oe*=-ie,ue=te.offset*Y),{x:ue,y:oe}}function pe(te){var se={start:1,end:-1,middle:0}[te.anchor],ue=se*(L+me),oe=ue+se*(te.txwidth+me),Se=te.anchor==="middle";return Se&&(ue-=te.tx2width/2,oe+=te.txwidth/2+me),{alignShift:se,textShiftX:ue,text2ShiftX:oe}}function G(te,se,ue,oe){var Se=function(Ce){return Ce*ue},le=function(Ce){return Ce*oe};te.each(function(Ce){var Qe=p.select(this);if(Ce.del)return Qe.remove();var ze=Qe.select("text.nums"),Xe=Ce.anchor,ct=Xe==="end"?-1:1,pt=pe(Ce),Ye=ne(Ce,se),je=Ye.x,et=Ye.y,yt=Xe==="middle";Qe.select("path").attr("d",yt?"M-"+Se(Ce.bx/2+Ce.tx2width/2)+","+le(et-Ce.by/2)+"h"+Se(Ce.bx)+"v"+le(Ce.by)+"h-"+Se(Ce.bx)+"Z":"M0,0L"+Se(ct*L+je)+","+le(L+et)+"v"+le(Ce.by/2-L)+"h"+Se(ct*Ce.bx)+"v-"+le(Ce.by)+"H"+Se(ct*L+je)+"V"+le(et-L)+"Z");var ft=je+pt.textShiftX,tt=et+Ce.ty0-Ce.by/2+me,wt=Ce.textAlign||"auto";wt!=="auto"&&(wt==="left"&&Xe!=="start"?(ze.attr("text-anchor","start"),ft=yt?-Ce.bx/2-Ce.tx2width/2+me:-Ce.bx-me):wt==="right"&&Xe!=="end"&&(ze.attr("text-anchor","end"),ft=yt?Ce.bx/2-Ce.tx2width/2-me:Ce.bx+me)),ze.call(w.positionText,Se(ft),le(tt)),Ce.tx2width&&(Qe.select("text.name").call(w.positionText,Se(pt.text2ShiftX+pt.alignShift*me+je),le(et+Ce.ty0-Ce.by/2+me)),Qe.select("rect").call(R.setRect,Se(pt.text2ShiftX+(pt.alignShift-1)*Ce.tx2width/2+je),le(et-Ce.by/2-1),Se(Ce.tx2width),le(Ce.by+2)))})}function Oe(te,se){var ue=te.index,oe=te.trace||{},Se=te.cd[0],le=te.cd[ue]||{};function Ce(Ye){return Ye||v(Ye)&&Ye===0}var Qe=Array.isArray(ue)?function(Ye,je){var et=b.castOption(Se,ue,Ye);return Ce(et)?et:b.extractOption({},oe,"",je)}:function(Ye,je){return b.extractOption(le,oe,Ye,je)};function ze(Ye,je,et){var yt=Qe(je,et);Ce(yt)&&(te[Ye]=yt)}if(ze("hoverinfo","hi","hoverinfo"),ze("bgcolor","hbg","hoverlabel.bgcolor"),ze("borderColor","hbc","hoverlabel.bordercolor"),ze("fontFamily","htf","hoverlabel.font.family"),ze("fontSize","hts","hoverlabel.font.size"),ze("fontColor","htc","hoverlabel.font.color"),ze("nameLength","hnl","hoverlabel.namelength"),ze("textAlign","hta","hoverlabel.align"),te.posref=se==="y"||se==="closest"&&oe.orientation==="h"?te.xa._offset+(te.x0+te.x1)/2:te.ya._offset+(te.y0+te.y1)/2,te.x0=b.constrain(te.x0,0,te.xa._length),te.x1=b.constrain(te.x1,0,te.xa._length),te.y0=b.constrain(te.y0,0,te.ya._length),te.y1=b.constrain(te.y1,0,te.ya._length),te.xLabelVal!==void 0&&(te.xLabel="xLabel"in te?te.xLabel:V.hoverLabelText(te.xa,te.xLabelVal,oe.xhoverformat),te.xVal=te.xa.c2d(te.xLabelVal)),te.yLabelVal!==void 0&&(te.yLabel="yLabel"in te?te.yLabel:V.hoverLabelText(te.ya,te.yLabelVal,oe.yhoverformat),te.yVal=te.ya.c2d(te.yLabelVal)),te.zLabelVal!==void 0&&te.zLabel===void 0&&(te.zLabel=String(te.zLabelVal)),!isNaN(te.xerr)&&!(te.xa.type==="log"&&te.xerr<=0)){var Xe=V.tickText(te.xa,te.xa.c2l(te.xerr),"hover").text;te.xerrneg!==void 0?te.xLabel+=" +"+Xe+" / -"+V.tickText(te.xa,te.xa.c2l(te.xerrneg),"hover").text:te.xLabel+=" ± "+Xe,se==="x"&&(te.distance+=1)}if(!isNaN(te.yerr)&&!(te.ya.type==="log"&&te.yerr<=0)){var ct=V.tickText(te.ya,te.ya.c2l(te.yerr),"hover").text;te.yerrneg!==void 0?te.yLabel+=" +"+ct+" / -"+V.tickText(te.ya,te.ya.c2l(te.yerrneg),"hover").text:te.yLabel+=" ± "+ct,se==="y"&&(te.distance+=1)}var pt=te.hoverinfo||te.trace.hoverinfo;return pt&&pt!=="all"&&(pt=Array.isArray(pt)?pt:pt.split("+"),pt.indexOf("x")===-1&&(te.xLabel=void 0),pt.indexOf("y")===-1&&(te.yLabel=void 0),pt.indexOf("z")===-1&&(te.zLabel=void 0),pt.indexOf("text")===-1&&(te.text=void 0),pt.indexOf("name")===-1&&(te.name=void 0)),te}function xe(te,se,ue){var oe=ue.container,Se=ue.fullLayout,le=Se._size,Ce=ue.event,Qe=!!se.hLinePoint,ze=!!se.vLinePoint,Xe,ct;if(oe.selectAll(".spikeline").remove(),!!(ze||Qe)){var pt=M.combine(Se.plot_bgcolor,Se.paper_bgcolor);if(Qe){var Ye=se.hLinePoint,je,et;Xe=Ye&&Ye.xa,ct=Ye&&Ye.ya;var yt=ct.spikesnap;yt==="cursor"?(je=Ce.pointerX,et=Ce.pointerY):(je=Xe._offset+Ye.x,et=ct._offset+Ye.y);var ft=y.readability(Ye.color,pt)<1.5?M.contrast(pt):Ye.color,tt=ct.spikemode,wt=ct.spikethickness,Xt=ct.spikecolor||ft,Gt=V.getPxPosition(te,ct),Nt,Bt;if(tt.indexOf("toaxis")!==-1||tt.indexOf("across")!==-1){if(tt.indexOf("toaxis")!==-1&&(Nt=Gt,Bt=je),tt.indexOf("across")!==-1){var vn=ct._counterDomainMin,En=ct._counterDomainMax;ct.anchor==="free"&&(vn=Math.min(vn,ct.position),En=Math.max(En,ct.position)),Nt=le.l+vn*le.w,Bt=le.l+En*le.w}oe.insert("line",":first-child").attr({x1:Nt,x2:Bt,y1:et,y2:et,"stroke-width":wt,stroke:Xt,"stroke-dasharray":R.dashStyle(ct.spikedash,wt)}).classed("spikeline",!0).classed("crisp",!0),oe.insert("line",":first-child").attr({x1:Nt,x2:Bt,y1:et,y2:et,"stroke-width":wt+2,stroke:pt}).classed("spikeline",!0).classed("crisp",!0)}tt.indexOf("marker")!==-1&&oe.insert("circle",":first-child").attr({cx:Gt+(ct.side!=="right"?wt:-wt),cy:et,r:wt,fill:Xt}).classed("spikeline",!0)}if(ze){var ln=se.vLinePoint,Yn,an;Xe=ln&&ln.xa,ct=ln&&ln.ya;var wn=Xe.spikesnap;wn==="cursor"?(Yn=Ce.pointerX,an=Ce.pointerY):(Yn=Xe._offset+ln.x,an=ct._offset+ln.y);var Xn=y.readability(ln.color,pt)<1.5?M.contrast(pt):ln.color,Un=Xe.spikemode,Sn=Xe.spikethickness,it=Xe.spikecolor||Xn,ut=V.getPxPosition(te,Xe),xt,gt;if(Un.indexOf("toaxis")!==-1||Un.indexOf("across")!==-1){if(Un.indexOf("toaxis")!==-1&&(xt=ut,gt=an),Un.indexOf("across")!==-1){var Dt=Xe._counterDomainMin,He=Xe._counterDomainMax;Xe.anchor==="free"&&(Dt=Math.min(Dt,Xe.position),He=Math.max(He,Xe.position)),xt=le.t+(1-He)*le.h,gt=le.t+(1-Dt)*le.h}oe.insert("line",":first-child").attr({x1:Yn,x2:Yn,y1:xt,y2:gt,"stroke-width":Sn,stroke:it,"stroke-dasharray":R.dashStyle(Xe.spikedash,Sn)}).classed("spikeline",!0).classed("crisp",!0),oe.insert("line",":first-child").attr({x1:Yn,x2:Yn,y1:xt,y2:gt,"stroke-width":Sn+2,stroke:pt}).classed("spikeline",!0).classed("crisp",!0)}Un.indexOf("marker")!==-1&&oe.insert("circle",":first-child").attr({cx:Yn,cy:ut-(Xe.side!=="top"?Sn:-Sn),r:Sn,fill:it}).classed("spikeline",!0)}}}function Le(te,se,ue){if(!ue||ue.length!==te._hoverdata.length)return!0;for(var oe=ue.length-1;oe>=0;oe--){var Se=ue[oe],le=te._hoverdata[oe];if(Se.curveNumber!==le.curveNumber||String(Se.pointNumber)!==String(le.pointNumber)||String(Se.pointNumbers)!==String(le.pointNumbers))return!0}return!1}function ke(te,se){return!se||se.vLinePoint!==te._spikepoints.vLinePoint||se.hLinePoint!==te._spikepoints.hLinePoint}function $e(te,se){return w.plainText(te||"",{len:se,allowedTags:["br","sub","sup","b","i","em"]})}function Ze(te,se){for(var ue=se.charAt(0),oe=[],Se=[],le=[],Ce=0;Ce1)){delete V.grid;return}if(!U&&!Q&&!B){var q=L("pattern")==="independent";q&&(U=!0)}ie._hasSubplotGrid=U;var fe=L("roworder"),ee=fe==="top to bottom",be=U?.2:.1,Te=U?.3:.1,Be,ge;E&&V._splomGridDflt&&(Be=V._splomGridDflt.xside,ge=V._splomGridDflt.yside),ie._domains={x:T("x",L,be,Be,ae),y:T("y",L,Te,ge,me,ee)}}function T(I,V,N,F,z,U){var Q=V(I+"gap",N),B=V("domain."+I);V(I+"side",F);for(var E=new Array(z),W=B[0],Y=(B[1]-W)/(z-Q),ie=Y*(1-Q),L=0;L(T==="legend"?1:0));if(ee===!1&&(M[T]=void 0),!(ee===!1&&!V.uirevision)&&(F("uirevision",M.uirevision),ee!==!1)){F("borderwidth");var be=F("orientation"),Te=F("yref"),Be=F("xref"),ge=be==="h",ne=Te==="paper",pe=Be==="paper",G,Oe,xe,Le="left";ge?(G=0,p.getComponentMethod("rangeslider","isVisible")(R.xaxis)?ne?(Oe=1.1,xe="bottom"):(Oe=1,xe="top"):ne?(Oe=-.1,xe="top"):(Oe=0,xe="bottom")):(Oe=1,xe="auto",pe?G=1.02:(G=1,Le="right")),v.coerce(V,N,{x:{valType:"number",editType:"legend",min:pe?-2:0,max:pe?3:1,dflt:G}},"x"),v.coerce(V,N,{y:{valType:"number",editType:"legend",min:ne?-2:0,max:ne?3:1,dflt:Oe}},"y"),F("traceorder",L),C.isGrouped(M[T])&&F("tracegroupgap"),F("entrywidth"),F("entrywidthmode"),F("itemsizing"),F("itemwidth"),F("itemclick"),F("itemdoubleclick"),F("groupclick"),F("xanchor",Le),F("yanchor",xe),F("valign"),v.noneOrAll(V,N,["x","y"]);var ke=F("title.text");if(ke){F("title.side",ge?"left":"top");var $e=v.extendFlat({},z,{size:v.bigFont(z.size)});v.coerceFont(F,"title.font",$e)}}}}f.exports=function(R,M,I){var V,N=I.slice(),F=M.shapes;if(F)for(V=0;V1)}var oe=Le.hiddenlabels||[];if(!De&&(!Le.showlegend||!Ie.length))return Ze.selectAll("."+ke).remove(),Le._topdefs.select("#"+$e).remove(),y.autoMargin(G,ke);var Se=v.ensureSingle(Ze,"g",ke,function(je){De||je.attr("pointer-events","all")}),le=v.ensureSingleById(Le._topdefs,"clipPath",$e,function(je){je.append("rect")}),Ce=v.ensureSingle(Se,"rect","bg",function(je){je.attr("shape-rendering","crispEdges")});Ce.call(w.stroke,xe.bordercolor).call(w.fill,xe.bgcolor).style("stroke-width",xe.borderwidth+"px");var Qe=v.ensureSingle(Se,"g","scrollbox"),ze=xe.title;xe._titleWidth=0,xe._titleHeight=0;var Xe;ze.text?(Xe=v.ensureSingle(Qe,"text",ke+"titletext"),Xe.attr("text-anchor","start").call(C.font,ze.font).text(ze.text),fe(Xe,Qe,G,xe,B)):Qe.selectAll("."+ke+"titletext").remove();var ct=v.ensureSingle(Se,"rect","scrollbar",function(je){je.attr(M.scrollBarEnterAttrs).call(w.fill,M.scrollBarColor)}),pt=Qe.selectAll("g.groups").data(Ie);pt.enter().append("g").attr("class","groups"),pt.exit().remove();var Ye=pt.selectAll("g.traces").data(v.identity);Ye.enter().append("g").attr("class","traces"),Ye.exit().remove(),Ye.style("opacity",function(je){var et=je[0].trace;return b.traceIs(et,"pie-like")?oe.indexOf(je[0].label)!==-1?.5:1:et.visible==="legendonly"?.5:1}).each(function(){p.select(this).call(me,G,xe)}).call(U,G,xe).each(function(){De||p.select(this).call(q,G,ke)}),v.syncOrAsync([y.previousPromises,function(){return Te(G,pt,Ye,xe)},function(){var je=Le._size,et=xe.borderwidth,yt=xe.xref==="paper",ft=xe.yref==="paper";if(ze.text&&W(Xe,xe,et),!De){var tt,wt;yt?tt=je.l+je.w*xe.x-N[ge(xe)]*xe._width:tt=Le.width*xe.x-N[ge(xe)]*xe._width,ft?wt=je.t+je.h*(1-xe.y)-N[ne(xe)]*xe._effHeight:wt=Le.height*(1-xe.y)-N[ne(xe)]*xe._effHeight;var Xt=Be(G,ke,tt,wt);if(Xt)return;if(Le.margin.autoexpand){var Gt=tt,Nt=wt;tt=yt?v.constrain(tt,0,Le.width-xe._width):Gt,wt=ft?v.constrain(wt,0,Le.height-xe._effHeight):Nt,tt!==Gt&&v.log("Constrain "+ke+".x to make legend fit inside graph"),wt!==Nt&&v.log("Constrain "+ke+".y to make legend fit inside graph")}C.setTranslate(Se,tt,wt)}if(ct.on(".drag",null),Se.on("wheel",null),De||xe._height<=xe._maxHeight||G._context.staticPlot){var Bt=xe._effHeight;De&&(Bt=xe._height),Ce.attr({width:xe._width-et,height:Bt-et,x:et/2,y:et/2}),C.setTranslate(Qe,0,0),le.select("rect").attr({width:xe._width-2*et,height:Bt-2*et,x:et,y:et}),C.setClipUrl(Qe,$e,G),C.setRect(ct,0,0,0,0),delete xe._scrollY}else{var vn=Math.max(M.scrollBarMinHeight,xe._effHeight*xe._effHeight/xe._height),En=xe._effHeight-vn-2*M.scrollBarMargin,ln=xe._height-xe._effHeight,Yn=En/ln,an=Math.min(xe._scrollY||0,ln);Ce.attr({width:xe._width-2*et+M.scrollBarWidth+M.scrollBarMargin,height:xe._effHeight-et,x:et/2,y:et/2}),le.select("rect").attr({width:xe._width-2*et+M.scrollBarWidth+M.scrollBarMargin,height:xe._effHeight-2*et,x:et,y:et+an}),C.setClipUrl(Qe,$e,G),gt(an,vn,Yn),Se.on("wheel",function(){an=v.constrain(xe._scrollY+p.event.deltaY/En*ln,0,ln),gt(an,vn,Yn),an!==0&&an!==ln&&p.event.preventDefault()});var wn,Xn,Un,Sn=function(mt,Tt,Pt){var dn=(Pt-Tt)/Yn+mt;return v.constrain(dn,0,ln)},it=function(mt,Tt,Pt){var dn=(Tt-Pt)/Yn+mt;return v.constrain(dn,0,ln)},ut=p.behavior.drag().on("dragstart",function(){var mt=p.event.sourceEvent;mt.type==="touchstart"?wn=mt.changedTouches[0].clientY:wn=mt.clientY,Un=an}).on("drag",function(){var mt=p.event.sourceEvent;mt.buttons===2||mt.ctrlKey||(mt.type==="touchmove"?Xn=mt.changedTouches[0].clientY:Xn=mt.clientY,an=Sn(Un,wn,Xn),gt(an,vn,Yn))});ct.call(ut);var xt=p.behavior.drag().on("dragstart",function(){var mt=p.event.sourceEvent;mt.type==="touchstart"&&(wn=mt.changedTouches[0].clientY,Un=an)}).on("drag",function(){var mt=p.event.sourceEvent;mt.type==="touchmove"&&(Xn=mt.changedTouches[0].clientY,an=it(Un,wn,Xn),gt(an,vn,Yn))});Qe.call(xt)}function gt(mt,Tt,Pt){xe._scrollY=G._fullLayout[ke]._scrollY=mt,C.setTranslate(Qe,0,-mt),C.setRect(ct,xe._width,M.scrollBarMargin+mt*Pt,M.scrollBarWidth,Tt),le.select("rect").attr("y",et+mt)}if(G._context.edits.legendPosition){var Dt,He,at,dt;Se.classed("cursor-move",!0),k.init({element:Se.node(),gd:G,prepFn:function(){var mt=C.getTranslate(Se);at=mt.x,dt=mt.y},moveFn:function(mt,Tt){var Pt=at+mt,dn=dt+Tt;C.setTranslate(Se,Pt,dn),Dt=k.align(Pt,xe._width,je.l,je.l+je.w,xe.xanchor),He=k.align(dn+xe._height,-xe._height,je.t+je.h,je.t,xe.yanchor)},doneFn:function(){if(Dt!==void 0&&He!==void 0){var mt={};mt[ke+".x"]=Dt,mt[ke+".y"]=He,b.call("_guiRelayout",G,mt)}},clickFn:function(mt,Tt){var Pt=Ze.selectAll("g.traces").filter(function(){var dn=this.getBoundingClientRect();return Tt.clientX>=dn.left&&Tt.clientX<=dn.right&&Tt.clientY>=dn.top&&Tt.clientY<=dn.bottom});Pt.size()>0&&L(G,Se,Pt,mt,Tt)}})}}],G)}}function ie(G,Oe,xe){var Le=G[0],ke=Le.width,$e=Oe.entrywidthmode,Ze=Le.trace.legendwidth||Oe.entrywidth;return $e==="fraction"?Oe._maxWidth*Ze:xe+(Ze||ke)}function L(G,Oe,xe,Le,ke){var $e=xe.data()[0][0].trace,Ze={event:ke,node:xe.node(),curveNumber:$e.index,expandedIndex:$e._expandedIndex,data:G.data,layout:G.layout,frames:G._transitionData._frames,config:G._context,fullData:G._fullData,fullLayout:G._fullLayout};$e._group&&(Ze.group=$e._group),b.traceIs($e,"pie-like")&&(Ze.label=xe.datum()[0].label);var De=x.triggerHandler(G,"plotly_legendclick",Ze);if(Le===1){if(De===!1)return;Oe._clickTimeout=setTimeout(function(){G._fullLayout&&R(xe,G,Le)},G._context.doubleClickDelay)}else if(Le===2){Oe._clickTimeout&&clearTimeout(Oe._clickTimeout),G._legendMouseDownTime=0;var Ie=x.triggerHandler(G,"plotly_legenddoubleclick",Ze);Ie!==!1&&De!==!1&&R(xe,G,Le)}}function me(G,Oe,xe){var Le=pe(xe),ke=G.data()[0][0],$e=ke.trace,Ze=b.traceIs($e,"pie-like"),De=!xe._inHover&&Oe._context.edits.legendText&&!Ze,Ie=xe._maxNameLength,re,ye;ke.groupTitle?(re=ke.groupTitle.text,ye=ke.groupTitle.font):(ye=xe.font,xe.entries?re=ke.text:(re=Ze?ke.label:$e.name,$e._meta&&(re=v.templateString(re,$e._meta))));var te=v.ensureSingle(G,"text",Le+"text");te.attr("text-anchor","start").call(C.font,ye).text(De?ae(re,Ie):re);var se=xe.itemwidth+M.itemGap*2;T.positionText(te,se,0),De?te.call(T.makeEditable,{gd:Oe,text:re}).call(fe,G,Oe,xe).on("edit",function(ue){this.text(ae(ue,Ie)).call(fe,G,Oe,xe);var oe=ke.trace._fullInput||{},Se={};if(b.hasTransform(oe,"groupby")){var le=b.getTransformIndices(oe,"groupby"),Ce=le[le.length-1],Qe=v.keyedContainer(oe,"transforms["+Ce+"].styles","target","value.name");Qe.set(ke.trace._group,ue),Se=Qe.constructUpdate()}else Se.name=ue;return oe._isShape?b.call("_guiRelayout",Oe,"shapes["+$e.index+"].name",Se.name):b.call("_guiRestyle",Oe,Se,$e.index)}):fe(te,G,Oe,xe)}function ae(G,Oe){var xe=Math.max(4,Oe);if(G&&G.trim().length>=xe/2)return G;G=G||"";for(var Le=xe-G.length;Le>0;Le--)G+=" ";return G}function q(G,Oe,xe){var Le=Oe._context.doubleClickDelay,ke,$e=1,Ze=v.ensureSingle(G,"rect",xe+"toggle",function(De){Oe._context.staticPlot||De.style("cursor","pointer").attr("pointer-events","all"),De.call(w.fill,"rgba(0,0,0,0)")});Oe._context.staticPlot||(Ze.on("mousedown",function(){ke=new Date().getTime(),ke-Oe._legendMouseDownTimeLe&&($e=Math.max($e-1,1)),L(Oe,De,G,$e,p.event)}}))}function fe(G,Oe,xe,Le,ke){Le._inHover&&G.attr("data-notex",!0),T.convertToTspans(G,xe,function(){ee(Oe,xe,Le,ke)})}function ee(G,Oe,xe,Le){var ke=G.data()[0][0];if(!xe._inHover&&ke&&!ke.trace.showlegend){G.remove();return}var $e=G.select("g[class*=math-group]"),Ze=$e.node(),De=pe(xe);xe||(xe=Oe._fullLayout[De]);var Ie=xe.borderwidth,re;Le===B?re=xe.title.font:ke.groupTitle?re=ke.groupTitle.font:re=xe.font;var ye=re.size*V,te,se;if(Ze){var ue=C.bBox(Ze);te=ue.height,se=ue.width,Le===B?C.setTranslate($e,Ie,Ie+te*.75):C.setTranslate($e,0,te*.25)}else{var oe="."+De+(Le===B?"title":"")+"text",Se=G.select(oe),le=T.lineCount(Se),Ce=Se.node();if(te=ye*le,se=Ce?C.bBox(Ce).width:0,Le===B)xe.title.side==="left"&&(se+=M.itemGap*2),T.positionText(Se,Ie+M.titlePad,Ie+ye);else{var Qe=M.itemGap*2+xe.itemwidth;ke.groupTitle&&(Qe=M.itemGap,se-=xe.itemwidth),T.positionText(Se,Qe,-ye*((le-1)/2-.3))}}Le===B?(xe._titleWidth=se,xe._titleHeight=te):(ke.lineHeight=ye,ke.height=Math.max(te,16)+3,ke.width=se)}function be(G){var Oe=0,xe=0,Le=G.title.side;return Le&&(Le.indexOf("left")!==-1&&(Oe=G._titleWidth),Le.indexOf("top")!==-1&&(xe=G._titleHeight)),[Oe,xe]}function Te(G,Oe,xe,Le){var ke=G._fullLayout,$e=pe(Le);Le||(Le=ke[$e]);var Ze=ke._size,De=Q.isVertical(Le),Ie=Q.isGrouped(Le),re=Le.entrywidthmode==="fraction",ye=Le.borderwidth,te=2*ye,se=M.itemGap,ue=Le.itemwidth+se*2,oe=2*(ye+se),Se=ne(Le),le=Le.y<0||Le.y===0&&Se==="top",Ce=Le.y>1||Le.y===1&&Se==="bottom",Qe=Le.tracegroupgap,ze={};Le._maxHeight=Math.max(le||Ce?ke.height/2:Ze.h,30);var Xe=0;Le._width=0,Le._height=0;var ct=be(Le);if(De)xe.each(function(Un){var Sn=Un[0].height;C.setTranslate(this,ye+ct[0],ye+ct[1]+Le._height+Sn/2+se),Le._height+=Sn,Le._width=Math.max(Le._width,Un[0].width)}),Xe=ue+Le._width,Le._width+=se+ue+te,Le._height+=oe,Ie&&(Oe.each(function(Un,Sn){C.setTranslate(this,0,Sn*Le.tracegroupgap)}),Le._height+=(Le._lgroupsLength-1)*Le.tracegroupgap);else{var pt=ge(Le),Ye=Le.x<0||Le.x===0&&pt==="right",je=Le.x>1||Le.x===1&&pt==="left",et=Ce||le,yt=ke.width/2;Le._maxWidth=Math.max(Ye?et&&pt==="left"?Ze.l+Ze.w:yt:je?et&&pt==="right"?Ze.r+Ze.w:yt:Ze.w,2*ue);var ft=0,tt=0;xe.each(function(Un){var Sn=ie(Un,Le,ue);ft=Math.max(ft,Sn),tt+=Sn}),Xe=null;var wt=0;if(Ie){var Xt=0,Gt=0,Nt=0;Oe.each(function(){var Un=0,Sn=0;p.select(this).selectAll("g.traces").each(function(ut){var xt=ie(ut,Le,ue),gt=ut[0].height;C.setTranslate(this,ct[0],ct[1]+ye+se+gt/2+Sn),Sn+=gt,Un=Math.max(Un,xt),ze[ut[0].trace.legendgroup]=Un});var it=Un+se;Gt>0&&it+ye+Gt>Le._maxWidth?(wt=Math.max(wt,Gt),Gt=0,Nt+=Xt+Qe,Xt=Sn):Xt=Math.max(Xt,Sn),C.setTranslate(this,Gt,Nt),Gt+=it}),Le._width=Math.max(wt,Gt)+ye,Le._height=Nt+Xt+oe}else{var Bt=xe.size(),vn=tt+te+(Bt-1)*se=Le._maxWidth&&(wt=Math.max(wt,an),ln=0,Yn+=En,Le._height+=En,En=0),C.setTranslate(this,ct[0]+ye+ln,ct[1]+ye+Yn+Sn/2+se),an=ln+it+se,ln+=ut,En=Math.max(En,Sn)}),vn?(Le._width=ln+te,Le._height=En+oe):(Le._width=Math.max(wt,an)+te,Le._height+=En+oe)}}Le._width=Math.ceil(Math.max(Le._width+ct[0],Le._titleWidth+2*(ye+M.titlePad))),Le._height=Math.ceil(Math.max(Le._height+ct[1],Le._titleHeight+2*(ye+M.itemGap))),Le._effHeight=Math.min(Le._height,Le._maxHeight);var wn=G._context.edits,Xn=wn.legendText||wn.legendPosition;xe.each(function(Un){var Sn=p.select(this).select("."+$e+"toggle"),it=Un[0].height,ut=Un[0].trace.legendgroup,xt=ie(Un,Le,ue);Ie&&ut!==""&&(xt=ze[ut]);var gt=Xn?ue:Xe||xt;!De&&!re&&(gt+=se/2),C.setRect(Sn,0,-it/2,gt,it)})}function Be(G,Oe,xe,Le){var ke=G._fullLayout,$e=ke[Oe],Ze=ge($e),De=ne($e),Ie=$e.xref==="paper",re=$e.yref==="paper";G._fullLayout._reservedMargin[Oe]={};var ye=$e.y<.5?"b":"t",te=$e.x<.5?"l":"r",se={r:ke.width-xe,l:xe+$e._width,b:ke.height-Le,t:Le+$e._effHeight};if(Ie&&re)return y.autoMargin(G,Oe,{x:$e.x,y:$e.y,l:$e._width*N[Ze],r:$e._width*F[Ze],b:$e._effHeight*F[De],t:$e._effHeight*N[De]});Ie?G._fullLayout._reservedMargin[Oe][ye]=se[ye]:re||$e.orientation==="v"?G._fullLayout._reservedMargin[Oe][te]=se[te]:G._fullLayout._reservedMargin[Oe][ye]=se[ye]}function ge(G){return v.isRightAnchor(G)?"right":v.isCenterAnchor(G)?"center":"left"}function ne(G){return v.isBottomAnchor(G)?"bottom":v.isMiddleAnchor(G)?"middle":"top"}function pe(G){return G._id||"legend"}},2424:function(f,m,u){var p=u(3972),v=u(130);f.exports=function(b,x,k){var C=x._inHover,w=v.isGrouped(x),T=v.isReversed(x),R={},M=[],I=!1,V={},N=0,F=0,z,U;function Q(G,Oe,xe){if(x.visible!==!1&&!(k&&G!==x._id))if(Oe===""||!v.isGrouped(x)){var Le="~~i"+N;M.push(Le),R[Le]=[xe],N++}else M.indexOf(Oe)===-1?(M.push(Oe),I=!0,R[Oe]=[xe]):R[Oe].push(xe)}for(z=0;zee&&(fe=ee)}ae[z][0]._groupMinRank=fe,ae[z][0]._preGroupSort=z}var be=function(G,Oe){return G[0]._groupMinRank-Oe[0]._groupMinRank||G[0]._preGroupSort-Oe[0]._preGroupSort},Te=function(G,Oe){return G.trace.legendrank-Oe.trace.legendrank||G._preSort-Oe._preSort};for(ae.forEach(function(G,Oe){G[0]._preGroupSort=Oe}),ae.sort(be),z=0;z0)te=Ie.width;else return 0;return me?ye:Math.min(te,re)};W.each(function(De){var Ie=p.select(this),re=y.ensureSingle(Ie,"g","layers");re.style("opacity",De[0].trace.opacity);var ye=ie.valign,te=De[0].lineHeight,se=De[0].height;if(ye==="middle"||!te||!se)re.attr("transform",null);else{var ue={top:1,bottom:-1}[ye],oe=ue*(.5*(te-se+3));re.attr("transform",b(0,oe))}var Se=re.selectAll("g.legendfill").data([De]);Se.enter().append("g").classed("legendfill",!0);var le=re.selectAll("g.legendlines").data([De]);le.enter().append("g").classed("legendlines",!0);var Ce=re.selectAll("g.legendsymbols").data([De]);Ce.enter().append("g").classed("legendsymbols",!0),Ce.selectAll("g.legendpoints").data([De]).enter().append("g").classed("legendpoints",!0)}).each(Ze).each(Be).each(ne).each(ge).each(G).each(ke).each(Le).each(be).each(Te).each(Oe).each(xe);function be(De){var Ie=Q(De),re=Ie.showFill,ye=Ie.showLine,te=Ie.showGradientLine,se=Ie.showGradientFill,ue=Ie.anyFill,oe=Ie.anyLine,Se=De[0],le=Se.trace,Ce,Qe,ze=C(le),Xe=ze.colorscale,ct=ze.reversescale,pt=function(wt){if(wt.size())if(re)x.fillGroupStyle(wt,Y);else{var Xt="legendfill-"+le.uid;x.gradient(wt,Y,Xt,U(ct),Xe,"fill")}},Ye=function(wt){if(wt.size()){var Xt="legendline-"+le.uid;x.lineGroupStyle(wt),x.gradient(wt,Y,Xt,U(ct),Xe,"stroke")}},je=w.hasMarkers(le)||!ue?"M5,0":oe?"M5,-2":"M5,-3",et=p.select(this),yt=et.select(".legendfill").selectAll("path").data(re||se?[De]:[]);if(yt.enter().append("path").classed("js-fill",!0),yt.exit().remove(),yt.attr("d",je+"h"+ae+"v6h-"+ae+"z").call(pt),ye||te){var ft=ee(void 0,le.line,F,V);Qe=y.minExtend(le,{line:{width:ft}}),Ce=[y.minExtend(Se,{trace:Qe})]}var tt=et.select(".legendlines").selectAll("path").data(ye||te?[Ce]:[]);tt.enter().append("path").classed("js-line",!0),tt.exit().remove(),tt.attr("d",je+(te?"l"+ae+",0.0001":"h"+ae)).call(ye?x.lineGroupStyle:Ye)}function Te(De){var Ie=Q(De),re=Ie.anyFill,ye=Ie.anyLine,te=Ie.showLine,se=Ie.showMarker,ue=De[0],oe=ue.trace,Se=!se&&!ye&&!re&&w.hasText(oe),le,Ce;function Qe(yt,ft,tt,wt){var Xt=y.nestedProperty(oe,yt).get(),Gt=y.isArrayOrTypedArray(Xt)&&ft?ft(Xt):Xt;if(me&&Gt&&wt!==void 0&&(Gt=wt),tt){if(Gttt[1])return tt[1]}return Gt}function ze(yt){return ue._distinct&&ue.index&&yt[ue.index]?yt[ue.index]:yt[0]}if(se||Se||te){var Xe={},ct={};if(se){Xe.mc=Qe("marker.color",ze),Xe.mx=Qe("marker.symbol",ze),Xe.mo=Qe("marker.opacity",y.mean,[.2,1]),Xe.mlc=Qe("marker.line.color",ze),Xe.mlw=Qe("marker.line.width",y.mean,[0,5],N),ct.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var pt=Qe("marker.size",y.mean,[2,16],I);Xe.ms=pt,ct.marker.size=pt}te&&(ct.line={width:Qe("line.width",ze,[0,10],V)}),Se&&(Xe.tx="Aa",Xe.tp=Qe("textposition",ze),Xe.ts=10,Xe.tc=Qe("textfont.color",ze),Xe.tf=Qe("textfont.family",ze)),le=[y.minExtend(ue,Xe)],Ce=y.minExtend(oe,ct),Ce.selectedpoints=null,Ce.texttemplate=null}var Ye=p.select(this).select("g.legendpoints"),je=Ye.selectAll("path.scatterpts").data(se?le:[]);je.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",fe),je.exit().remove(),je.call(x.pointStyle,Ce,Y),se&&(le[0].mrc=3);var et=Ye.selectAll("g.pointtext").data(Se?le:[]);et.enter().append("g").classed("pointtext",!0).append("text").attr("transform",fe),et.exit().remove(),et.selectAll("text").call(x.textPointStyle,Ce,Y)}function Be(De){var Ie=De[0].trace,re=Ie.type==="waterfall";if(De[0]._distinct&&re){var ye=De[0].trace[De[0].dir].marker;return De[0].mc=ye.color,De[0].mlw=ye.line.width,De[0].mlc=ye.line.color,pe(De,this,"waterfall")}var te=[];Ie.visible&&re&&(te=De[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var se=p.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(te);se.enter().append("path").classed("legendwaterfall",!0).attr("transform",fe).style("stroke-miterlimit",1),se.exit().remove(),se.each(function(ue){var oe=p.select(this),Se=Ie[ue[0]].marker,le=ee(void 0,Se.line,z,N);oe.attr("d",ue[1]).style("stroke-width",le+"px").call(k.fill,Se.color),le&&oe.call(k.stroke,Se.line.color)})}function ge(De){pe(De,this)}function ne(De){pe(De,this,"funnel")}function pe(De,Ie,re){var ye=De[0].trace,te=ye.marker||{},se=te.line||{},ue=re?ye.visible&&ye.type===re:v.traceIs(ye,"bar"),oe=p.select(Ie).select("g.legendpoints").selectAll("path.legend"+re).data(ue?[De]:[]);oe.enter().append("path").classed("legend"+re,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",fe),oe.exit().remove(),oe.each(function(Se){var le=p.select(this),Ce=Se[0],Qe=ee(Ce.mlw,te.line,z,N);le.style("stroke-width",Qe+"px");var ze=Ce.mcc;if(!ie._inHover&&"mc"in Ce){var Xe=C(te),ct=Xe.mid;ct===void 0&&(ct=(Xe.max+Xe.min)/2),ze=x.tryColorscale(te,"")(ct)}var pt=ze||Ce.mc||te.color,Ye=te.pattern,je=Ye&&x.getPatternAttr(Ye.shape,0,"");if(je){var et=x.getPatternAttr(Ye.bgcolor,0,null),yt=x.getPatternAttr(Ye.fgcolor,0,null),ft=Ye.fgopacity,tt=B(Ye.size,8,10),wt=B(Ye.solidity,.5,1),Xt="legend-"+ye.uid;le.call(x.pattern,"legend",Y,Xt,je,tt,wt,ze,Ye.fillmode,et,yt,ft)}else le.call(k.fill,pt);Qe&&k.stroke(le,Ce.mlc||se.color)})}function G(De){var Ie=De[0].trace,re=p.select(this).select("g.legendpoints").selectAll("path.legendbox").data(Ie.visible&&v.traceIs(Ie,"box-violin")?[De]:[]);re.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",fe),re.exit().remove(),re.each(function(){var ye=p.select(this);if((Ie.boxpoints==="all"||Ie.points==="all")&&k.opacity(Ie.fillcolor)===0&&k.opacity((Ie.line||{}).color)===0){var te=y.minExtend(Ie,{marker:{size:me?I:y.constrain(Ie.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});re.call(x.pointStyle,te,Y)}else{var se=ee(void 0,Ie.line,z,N);ye.style("stroke-width",se+"px").call(k.fill,Ie.fillcolor),se&&k.stroke(ye,Ie.line.color)}})}function Oe(De){var Ie=De[0].trace,re=p.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(Ie.visible&&Ie.type==="candlestick"?[De,De]:[]);re.enter().append("path").classed("legendcandle",!0).attr("d",function(ye,te){return te?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",fe).style("stroke-miterlimit",1),re.exit().remove(),re.each(function(ye,te){var se=p.select(this),ue=Ie[te?"increasing":"decreasing"],oe=ee(void 0,ue.line,z,N);se.style("stroke-width",oe+"px").call(k.fill,ue.fillcolor),oe&&k.stroke(se,ue.line.color)})}function xe(De){var Ie=De[0].trace,re=p.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(Ie.visible&&Ie.type==="ohlc"?[De,De]:[]);re.enter().append("path").classed("legendohlc",!0).attr("d",function(ye,te){return te?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",fe).style("stroke-miterlimit",1),re.exit().remove(),re.each(function(ye,te){var se=p.select(this),ue=Ie[te?"increasing":"decreasing"],oe=ee(void 0,ue.line,z,N);se.style("fill","none").call(x.dashLine,ue.line.dash,oe),oe&&k.stroke(se,ue.line.color)})}function Le(De){$e(De,this,"pie")}function ke(De){$e(De,this,"funnelarea")}function $e(De,Ie,re){var ye=De[0],te=ye.trace,se=re?te.visible&&te.type===re:v.traceIs(te,re),ue=p.select(Ie).select("g.legendpoints").selectAll("path.legend"+re).data(se?[De]:[]);if(ue.enter().append("path").classed("legend"+re,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",fe),ue.exit().remove(),ue.size()){var oe=te.marker||{},Se=ee(R(oe.line.width,ye.pts),oe.line,z,N),le="pieLike",Ce=y.minExtend(te,{marker:{line:{width:Se}}},le),Qe=y.minExtend(ye,{trace:Ce},le);T(ue,Qe,Ce,Y)}}function Ze(De){var Ie=De[0].trace,re,ye=[];if(Ie.visible)switch(Ie.type){case"histogram2d":case"heatmap":ye=[["M-15,-2V4H15V-2Z"]],re=!0;break;case"choropleth":case"choroplethmapbox":ye=[["M-6,-6V6H6V-6Z"]],re=!0;break;case"densitymapbox":ye=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],re="radial";break;case"cone":ye=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],re=!1;break;case"streamtube":ye=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],re=!1;break;case"surface":ye=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],re=!0;break;case"mesh3d":ye=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],re=!1;break;case"volume":ye=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],re=!0;break;case"isosurface":ye=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],re=!1;break}var te=p.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(ye);te.enter().append("path").classed("legend3dandfriends",!0).attr("transform",fe).style("stroke-miterlimit",1),te.exit().remove(),te.each(function(se,ue){var oe=p.select(this),Se=C(Ie),le=Se.colorscale,Ce=Se.reversescale,Qe=function(pt){if(pt.size()){var Ye="legendfill-"+Ie.uid;x.gradient(pt,Y,Ye,U(Ce,re==="radial"),le,"fill")}},ze;if(le){if(!re){var ct=le.length;ze=ue===0?le[Ce?ct-1:0][1]:ue===1?le[Ce?0:ct-1][1]:le[Math.floor((ct-1)/2)][1]}}else{var Xe=Ie.vertexcolor||Ie.facecolor||Ie.color;ze=y.isArrayOrTypedArray(Xe)?Xe[ue]||Xe[0]:Xe}oe.attr("d",se[0]),ze?oe.call(k.fill,ze):oe.call(Qe)})}};function U(E,W){var Y=W?"radial":"horizontal";return Y+(E?"":"reversed")}function Q(E){var W=E[0].trace,Y=W.contours,ie=w.hasLines(W),L=w.hasMarkers(W),me=W.visible&&W.fill&&W.fill!=="none",ae=!1,q=!1;if(Y){var fe=Y.coloring;fe==="lines"?ae=!0:ie=fe==="none"||fe==="heatmap"||Y.showlines,Y.type==="constraint"?me=Y._operation!=="=":(fe==="fill"||fe==="heatmap")&&(q=!0)}return{showMarker:L,showLine:ie,showFill:me,showGradientLine:ae,showGradientFill:q,anyLine:ie||ae,anyFill:me||q}}function B(E,W,Y){return E&&y.isArrayOrTypedArray(E)?W:E>Y?Y:E}},2068:function(f,m,u){u(3348),f.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},6023:function(f,m,u){var p=u(3972),v=u(4875),y=u(1675),b=u(4255),x=u(4031).eraseActiveShape,k=u(1828),C=k._,w=f.exports={};w.toImage={name:"toImage",title:function(E){var W=E._context.toImageButtonOptions||{},Y=W.format||"png";return Y==="png"?C(E,"Download plot as a png"):C(E,"Download plot")},icon:b.camera,click:function(E){var W=E._context.toImageButtonOptions,Y={format:W.format||"png"};k.notifier(C(E,"Taking snapshot - this may take a few seconds"),"long"),Y.format!=="svg"&&k.isIE()&&(k.notifier(C(E,"IE only supports svg. Changing format to svg."),"long"),Y.format="svg"),["filename","width","height","scale"].forEach(function(ie){ie in W&&(Y[ie]=W[ie])}),p.call("downloadImage",E,Y).then(function(ie){k.notifier(C(E,"Snapshot succeeded")+" - "+ie,"long")}).catch(function(){k.notifier(C(E,"Sorry, there was a problem downloading your snapshot!"),"long")})}},w.sendDataToCloud={name:"sendDataToCloud",title:function(E){return C(E,"Edit in Chart Studio")},icon:b.disk,click:function(E){v.sendDataToCloud(E)}},w.editInChartStudio={name:"editInChartStudio",title:function(E){return C(E,"Edit in Chart Studio")},icon:b.pencil,click:function(E){v.sendDataToCloud(E)}},w.zoom2d={name:"zoom2d",_cat:"zoom",title:function(E){return C(E,"Zoom")},attr:"dragmode",val:"zoom",icon:b.zoombox,click:T},w.pan2d={name:"pan2d",_cat:"pan",title:function(E){return C(E,"Pan")},attr:"dragmode",val:"pan",icon:b.pan,click:T},w.select2d={name:"select2d",_cat:"select",title:function(E){return C(E,"Box Select")},attr:"dragmode",val:"select",icon:b.selectbox,click:T},w.lasso2d={name:"lasso2d",_cat:"lasso",title:function(E){return C(E,"Lasso Select")},attr:"dragmode",val:"lasso",icon:b.lasso,click:T},w.drawclosedpath={name:"drawclosedpath",title:function(E){return C(E,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:b.drawclosedpath,click:T},w.drawopenpath={name:"drawopenpath",title:function(E){return C(E,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:b.drawopenpath,click:T},w.drawline={name:"drawline",title:function(E){return C(E,"Draw line")},attr:"dragmode",val:"drawline",icon:b.drawline,click:T},w.drawrect={name:"drawrect",title:function(E){return C(E,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:b.drawrect,click:T},w.drawcircle={name:"drawcircle",title:function(E){return C(E,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:b.drawcircle,click:T},w.eraseshape={name:"eraseshape",title:function(E){return C(E,"Erase active shape")},icon:b.eraseshape,click:x},w.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(E){return C(E,"Zoom in")},attr:"zoom",val:"in",icon:b.zoom_plus,click:T},w.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(E){return C(E,"Zoom out")},attr:"zoom",val:"out",icon:b.zoom_minus,click:T},w.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(E){return C(E,"Autoscale")},attr:"zoom",val:"auto",icon:b.autoscale,click:T},w.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(E){return C(E,"Reset axes")},attr:"zoom",val:"reset",icon:b.home,click:T},w.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(E){return C(E,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:b.tooltip_basic,gravity:"ne",click:T},w.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(E){return C(E,"Compare data on hover")},attr:"hovermode",val:function(E){return E._fullLayout._isHoriz?"y":"x"},icon:b.tooltip_compare,gravity:"ne",click:T};function T(E,W){var Y=W.currentTarget,ie=Y.getAttribute("data-attr"),L=Y.getAttribute("data-val")||!0,me=E._fullLayout,ae={},q=y.list(E,null,!0),fe=me._cartesianSpikesEnabled,ee,be;if(ie==="zoom"){var Te=L==="in"?.5:2,Be=(1+Te)/2,ge=(1-Te)/2,ne;for(be=0;be1?($e=["toggleHover"],Ze=["resetViews"]):ae?(ke=["zoomInGeo","zoomOutGeo"],$e=["hoverClosestGeo"],Ze=["resetGeo"]):me?($e=["hoverClosest3d"],Ze=["resetCameraDefault3d","resetCameraLastSave3d"]):Te?(ke=["zoomInMapbox","zoomOutMapbox"],$e=["toggleHover"],Ze=["resetViewMapbox"]):ee?$e=["hoverClosestGl2d"]:q?$e=["hoverClosestPie"]:ne?($e=["hoverClosestCartesian","hoverCompareCartesian"],Ze=["resetViewSankey"]):$e=["toggleHover"],L&&($e=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(I(U)||G)&&($e=[]),(L||ee)&&!pe&&(ke=["zoomIn2d","zoomOut2d","autoScale2d"],Ze[0]!=="resetViews"&&(Ze=["resetScale2d"])),me?De=["zoom3d","pan3d","orbitRotation","tableRotation"]:(L||ee)&&!pe||be?De=["zoom2d","pan2d"]:Te||ae?De=["pan2d"]:Be&&(De=["zoom2d"]),M(U)&&De.push("select2d","lasso2d");var Ie=[],re=function(ue){Ie.indexOf(ue)===-1&&$e.indexOf(ue)!==-1&&Ie.push(ue)};if(Array.isArray(Y)){for(var ye=[],te=0;te0);if(B){var E=w(M,I,V);U("x",E[0]),U("y",E[1]),p.noneOrAll(R,M,["x","y"]),U("xanchor"),U("yanchor"),p.coerceFont(U,"font",I.font);var W=U("bgcolor");U("activecolor",v.contrast(W,k.lightAmount,k.darkAmount)),U("bordercolor"),U("borderwidth")}};function C(T,R,M,I){var V=I.calendar;function N(U,Q){return p.coerce(T,R,x.buttons,U,Q)}var F=N("visible");if(F){var z=N("step");z!=="all"&&(V&&V!=="gregorian"&&(z==="month"||z==="year")?R.stepmode="backward":N("stepmode"),N("count")),N("label")}}function w(T,R,M){for(var I=M.filter(function(z){return R[z].anchor===T._id}),V=0,N=0;N=pt.max)Xe=Se[ct+1];else if(ze=pt.pmax)Xe=Se[ct+1];else if(zeae._length||Oe+De<0)return;Ie=G+De,re=Oe+De;break;case ee:if(ye="col-resize",G+De>ae._length)return;Ie=G+De,re=Oe;break;case be:if(ye="col-resize",Oe+De<0)return;Ie=G,re=Oe+De;break;default:ye="ew-resize",Ie=pe,re=pe+De;break}if(re=0;Be--){var ge=Y.append("path").attr(L).style("opacity",Be?.1:me).call(b.stroke,q).call(b.fill,ae).call(x.dashLine,Be?"solid":ee,Be?4+fe:fe);if(I(ge,z,B),be){var ne=k(z.layout,"selections",B);ge.style({cursor:"move"});var pe={element:ge.node(),plotinfo:E,gd:z,editHelpers:ne,isActiveSelection:!0},G=p(ie,z);v(G,ge,pe)}else ge.style("pointer-events",Be?"all":"none");Te[Be]=ge}var Oe=Te[0],xe=Te[1];xe.node().addEventListener("click",function(){return V(z,Oe)})}}function I(z,U,Q){var B=Q.xref+Q.yref;x.setClipUrl(z,"clip"+U._fullLayout._uid+B,U)}function V(z,U){if(R(z)){var Q=U.node(),B=+Q.getAttribute("data-index");if(B>=0){if(B===z._fullLayout._activeSelectionIndex){F(z);return}z._fullLayout._activeSelectionIndex=B,z._fullLayout._deactivateSelection=F,T(z)}}}function N(z){if(R(z)){var U=z._fullLayout.selections.length-1;z._fullLayout._activeSelectionIndex=U,z._fullLayout._deactivateSelection=F,T(z)}}function F(z){if(R(z)){var U=z._fullLayout._activeSelectionIndex;U>=0&&(y(z),delete z._fullLayout._activeSelectionIndex,T(z))}}},3777:function(f,m,u){var p=u(9952).P,v=u(1426).extendFlat;f.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:v({},p,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},849:function(f){f.exports=function(u,p,v){v("newselection.mode");var y=v("newselection.line.width");y&&(v("newselection.line.color"),v("newselection.line.dash")),v("activeselection.fillcolor"),v("activeselection.opacity")}},5855:function(f,m,u){var p=u(4505),v=p.selectMode,y=u(1873),b=y.clearOutline,x=u(165),k=x.readPaths,C=x.writePaths,w=x.fixDatesForPaths;f.exports=function(R,M){if(R.length){var I=R[0][0];if(I){var V=I.getAttribute("d"),N=M.gd,F=N._fullLayout.newselection,z=M.plotinfo,U=z.xaxis,Q=z.yaxis,B=M.isActiveSelection,E=M.dragmode,W=(N.layout||{}).selections||[];if(!v(E)&&B!==void 0){var Y=N._fullLayout._activeSelectionIndex;if(Y=0){Rt._fullLayout._deactivateShape(Rt);return}if(!Tt){var dr=fn.clickmode;q.done(Tn).then(function(){if(q.clear(Tn),Fn===2){for($t.remove(),Lt=0;Lt-1&&$e(zr,Rt,gt.xaxes,gt.yaxes,gt.subplot,gt,$t),dr==="event"&&Un(Rt,void 0);k.click(Rt,zr,zt.id)}).catch(L.error)}},gt.doneFn=function(){Jt.remove(),q.done(Tn).then(function(){q.clear(Tn),!Hn&&Ct&>.selectionDefs&&(Ct.subtract=wr,gt.selectionDefs.push(Ct),gt.mergedPolygons.length=0,[].push.apply(gt.mergedPolygons,St)),(Hn||Tt)&&ue(gt,Hn),gt.doneFnCompleted&>.doneFnCompleted(On),Pt&&Un(Rt,Ht)}).catch(L.error)}}function $e(it,ut,xt,gt,Dt,He,at){var dt=ut._hoverdata,mt=ut._fullLayout,Tt=mt.clickmode,Pt=Tt.indexOf("event")>-1,dn=[],nn,Wt,Rt,fn,Hn,nr,Er,zt,vr,Wn;if(Ce(dt)){ye(it,ut,He),nn=Se(ut,xt,gt,Dt);var Br=Qe(dt,nn),kr=Br.pointNumbers.length>0;if(kr?Xe(nn,Br):ct(nn)&&(Er=ze(Br))){for(at&&at.remove(),Wn=0;Wn=0}function se(it){return it._fullLayout._activeSelectionIndex>=0}function ue(it,ut){var xt=it.dragmode,gt=it.plotinfo,Dt=it.gd;te(Dt)&&Dt._fullLayout._deactivateShape(Dt),se(Dt)&&Dt._fullLayout._deactivateSelection(Dt);var He=Dt._fullLayout,at=He._zoomlayer,dt=M(xt),mt=V(xt);if(dt||mt){var Tt=at.selectAll(".select-outline-"+gt.id);if(Tt&&Dt._fullLayout._outlining){var Pt;dt&&(Pt=W(Tt,it)),Pt&&y.call("_guiRelayout",Dt,{shapes:Pt});var dn;mt&&!Le(it)&&(dn=Y(Tt,it)),dn&&(Dt._fullLayout._noEmitSelectedAtStart=!0,y.call("_guiRelayout",Dt,{selections:dn}).then(function(){ut&&ie(Dt)})),Dt._fullLayout._outlining=!1}}gt.selection={},gt.selection.selectionDefs=it.selectionDefs=[],gt.selection.mergedPolygons=it.mergedPolygons=[]}function oe(it){return it._id}function Se(it,ut,xt,gt){if(!it.calcdata)return[];var Dt=[],He=ut.map(oe),at=xt.map(oe),dt,mt,Tt;for(Tt=0;Tt0,He=Dt?gt[0]:xt;return ut.selectedpoints?ut.selectedpoints.indexOf(He)>-1:!1}function Xe(it,ut){var xt=[],gt,Dt,He,at;for(at=0;at0&&xt.push(gt);if(xt.length===1&&(He=xt[0]===ut.searchInfo,He&&(Dt=ut.searchInfo.cd[0].trace,Dt.selectedpoints.length===ut.pointNumbers.length))){for(at=0;at1||(ut+=gt.selectedpoints.length,ut>1)))return!1;return ut===1}function pt(it,ut,xt){var gt;for(gt=0;gt-1&&ut;if(!at&&ut){var Fn=Bt(it,!0);if(Fn.length){var zr=Fn[0].xref,dr=Fn[0].yref;if(zr&&dr){var Hr=ln(Fn),ar=an([fe(it,zr,"x"),fe(it,dr,"y")]);ar(On,Hr)}}it._fullLayout._noEmitSelectedAtStart?it._fullLayout._noEmitSelectedAtStart=!1:Jn&&Un(it,On),nn._reselect=!1}if(!at&&nn._deselect){var ur=nn._deselect;dt=ur.xref,mt=ur.yref,Xt(dt,mt,Pt)||Gt(it,dt,mt,gt),Jn&&(On.points.length?Un(it,On):Sn(it)),nn._deselect=!1}return{eventData:On,selectionTesters:xt}}function wt(it){var ut=it.calcdata;if(ut)for(var xt=0;xt0?Q+F:F;return{ppad:F,ppadplus:z?E:W,ppadminus:z?W:E}}else return{ppad:F}}function w(T,R,M,I,V){var N=T.type==="category"||T.type==="multicategory"?T.r2c:T.d2c;if(R!==void 0)return[N(R),N(M)];if(I){var F=1/0,z=-1/0,U=I.match(y.segmentRE),Q,B,E,W,Y;for(T.type==="date"&&(N=b.decodeDate(N)),Q=0;Qz&&(z=Y)));if(z>=F)return[F,z]}}},1459:function(f){f.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},4726:function(f,m,u){var p=u(1828),v=u(9298),y=u(5501),b=u(9827),x=u(477);f.exports=function(T,R){y(T,R,{name:"shapes",handleItemDefaults:C})};function k(w,T){return w?"bottom":T.indexOf("top")!==-1?"top":T.indexOf("bottom")!==-1?"bottom":"middle"}function C(w,T,R){function M(De,Ie){return p.coerce(w,T,b,De,Ie)}T._isShape=!0;var I=M("visible");if(I){var V=M("showlegend");V&&(M("legend"),M("legendwidth"),M("legendgroup"),M("legendgrouptitle.text"),p.coerceFont(M,"legendgrouptitle.font"),M("legendrank"));var N=M("path"),F=N?"path":"rect",z=M("type",F),U=z!=="path";U&&delete T.path,M("editable"),M("layer"),M("opacity"),M("fillcolor"),M("fillrule");var Q=M("line.width");Q&&(M("line.color"),M("line.dash"));for(var B=M("xsizemode"),E=M("ysizemode"),W=["x","y"],Y=0;Y<2;Y++){var ie=W[Y],L=ie+"anchor",me=ie==="x"?B:E,ae={_fullLayout:R},q,fe,ee,be=v.coerceRef(w,T,ae,ie,void 0,"paper"),Te=v.getRefType(be);if(Te==="range"?(q=v.getFromId(ae,be),q._shapeIndices.push(T._index),ee=x.rangeToShapePosition(q),fe=x.shapePositionToRange(q)):fe=ee=p.identity,U){var Be=.25,ge=.75,ne=ie+"0",pe=ie+"1",G=w[ne],Oe=w[pe];w[ne]=fe(w[ne],!0),w[pe]=fe(w[pe],!0),me==="pixel"?(M(ne,0),M(pe,10)):(v.coercePosition(T,ae,M,be,ne,Be),v.coercePosition(T,ae,M,be,pe,ge)),T[ne]=ee(T[ne]),T[pe]=ee(T[pe]),w[ne]=G,w[pe]=Oe}if(me==="pixel"){var xe=w[L];w[L]=fe(w[L],!0),v.coercePosition(T,ae,M,be,L,.25),T[L]=ee(T[L]),w[L]=xe}}U&&p.noneOrAll(w,T,["x0","x1","y0","y1"]);var Le=z==="line",ke,$e;if(U&&(ke=M("label.texttemplate")),ke||($e=M("label.text")),$e||ke){M("label.textangle");var Ze=M("label.textposition",Le?"middle":"middle center");M("label.xanchor"),M("label.yanchor",k(Le,Ze)),M("label.padding"),p.coerceFont(M,"label.font",R.font)}}}},8100:function(f,m,u){var p=u(1828),v=u(9298),y=u(3893),b=u(1424),x=u(165).readPaths,k=u(477),C=k.getPathString,w=u(7281),T=u(8783).FROM_TL;f.exports=function(V,N,F,z){if(z.selectAll(".shape-label").remove(),!!(F.label.text||F.label.texttemplate)){var U;if(F.label.texttemplate){var Q={};if(F.type!=="path"){var B=v.getFromId(V,F.xref),E=v.getFromId(V,F.yref);for(var W in w){var Y=w[W](F,B,E);Y!==void 0&&(Q[W]=Y)}}U=p.texttemplateStringForShapes(F.label.texttemplate,{},V._fullLayout._d3locale,Q)}else U=F.label.text;var ie={"data-index":N},L=F.label.font,me={"data-notex":1},ae=z.append("g").attr(ie).classed("shape-label",!0),q=ae.append("text").attr(me).classed("shape-label-text",!0).text(U),fe,ee,be,Te;if(F.path){var Be=C(V,F),ge=x(Be,V);fe=1/0,be=1/0,ee=-1/0,Te=-1/0;for(var ne=0;ne=I?z=V-F:z=F-V,-180/Math.PI*Math.atan2(z,U)}function M(I,V,N,F,z,U,Q){var B=z.label.textposition,E=z.label.textangle,W=z.label.padding,Y=z.type,ie=Math.PI/180*U,L=Math.sin(ie),me=Math.cos(ie),ae=z.label.xanchor,q=z.label.yanchor,fe,ee,be,Te;if(Y==="line"){B==="start"?(fe=I,ee=V):B==="end"?(fe=N,ee=F):(fe=(I+N)/2,ee=(V+F)/2),ae==="auto"&&(B==="start"?E==="auto"?N>I?ae="left":NI?ae="right":NI?ae="right":NI?ae="left":N1&&!(je.length===2&&je[1][0]==="Z")&&(De===0&&(je[0][0]="M"),fe[Ze]=je,ge(),ne())}}function le(je,et){if(je===2){Ze=+et.srcElement.getAttribute("data-i"),De=+et.srcElement.getAttribute("data-j");var yt=fe[Ze];!U(yt)&&!Q(yt)&&Se()}}function Ce(je){ke=[];for(var et=0;etge&&xt>ne&&!Sn.shiftKey?I.getCursor(gt/ut,1-Dt/xt):"move";V(fe,He),Xt=He.split("-")[0]}}function vn(Sn){Q(q)||(pe&&(Ie=je(ee.xanchor)),G&&(re=et(ee.yanchor)),ee.type==="path"?Qe=ee.path:(ke=pe?ee.x0:je(ee.x0),$e=G?ee.y0:et(ee.y0),Ze=pe?ee.x1:je(ee.x1),De=G?ee.y1:et(ee.y1)),keDe?(ye=$e,oe="y0",te=De,Se="y1"):(ye=De,oe="y1",te=$e,Se="y0"),Bt(Sn),wn(Te,ee),Un(fe,ee,q),wt.moveFn=Xt==="move"?Yn:an,wt.altKey=Sn.altKey)}function En(){Q(q)||(V(fe),Xn(Te),W(fe,q,ee),v.call("_guiRelayout",q,Be.getUpdateObj()))}function ln(){Q(q)||Xn(Te)}function Yn(Sn,it){if(ee.type==="path"){var ut=function(Dt){return Dt},xt=ut,gt=ut;pe?Le("xanchor",ee.xanchor=yt(Ie+Sn)):(xt=function(He){return yt(je(He)+Sn)},Xe&&Xe.type==="date"&&(xt=F.encodeDate(xt))),G?Le("yanchor",ee.yanchor=ft(re+it)):(gt=function(He){return ft(et(He)+it)},pt&&pt.type==="date"&&(gt=F.encodeDate(gt))),Le("path",ee.path=ie(Qe,xt,gt))}else pe?Le("xanchor",ee.xanchor=yt(Ie+Sn)):(Le("x0",ee.x0=yt(ke+Sn)),Le("x1",ee.x1=yt(Ze+Sn))),G?Le("yanchor",ee.yanchor=ft(re+it)):(Le("y0",ee.y0=ft($e+it)),Le("y1",ee.y1=ft(De+it)));fe.attr("d",z(q,ee)),wn(Te,ee),C(q,be,ee,ze)}function an(Sn,it){if(xe){var ut=function(nr){return nr},xt=ut,gt=ut;pe?Le("xanchor",ee.xanchor=yt(Ie+Sn)):(xt=function(Er){return yt(je(Er)+Sn)},Xe&&Xe.type==="date"&&(xt=F.encodeDate(xt))),G?Le("yanchor",ee.yanchor=ft(re+it)):(gt=function(Er){return ft(et(Er)+it)},pt&&pt.type==="date"&&(gt=F.encodeDate(gt))),Le("path",ee.path=ie(Qe,xt,gt))}else if(Oe){if(Xt==="resize-over-start-point"){var Dt=ke+Sn,He=G?$e-it:$e+it;Le("x0",ee.x0=pe?Dt:yt(Dt)),Le("y0",ee.y0=G?He:ft(He))}else if(Xt==="resize-over-end-point"){var at=Ze+Sn,dt=G?De-it:De+it;Le("x1",ee.x1=pe?at:yt(at)),Le("y1",ee.y1=G?dt:ft(dt))}}else{var mt=function(nr){return Xt.indexOf(nr)!==-1},Tt=mt("n"),Pt=mt("s"),dn=mt("w"),nn=mt("e"),Wt=Tt?ye+it:ye,Rt=Pt?te+it:te,fn=dn?se+Sn:se,Hn=nn?ue+Sn:ue;G&&(Tt&&(Wt=ye-it),Pt&&(Rt=te-it)),(!G&&Rt-Wt>ne||G&&Wt-Rt>ne)&&(Le(oe,ee[oe]=G?Wt:ft(Wt)),Le(Se,ee[Se]=G?Rt:ft(Rt))),Hn-fn>ge&&(Le(le,ee[le]=pe?fn:yt(fn)),Le(Ce,ee[Ce]=pe?Hn:yt(Hn)))}fe.attr("d",z(q,ee)),wn(Te,ee),C(q,be,ee,ze)}function wn(Sn,it){(pe||G)&&ut();function ut(){var xt=it.type!=="path",gt=Sn.selectAll(".visual-cue").data([0]),Dt=1;gt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":Dt}).classed("visual-cue",!0);var He=je(pe?it.xanchor:y.midRange(xt?[it.x0,it.x1]:F.extractPathCoords(it.path,N.paramIsX))),at=et(G?it.yanchor:y.midRange(xt?[it.y0,it.y1]:F.extractPathCoords(it.path,N.paramIsY)));if(He=F.roundPositionForSharpStrokeRendering(He,Dt),at=F.roundPositionForSharpStrokeRendering(at,Dt),pe&&G){var dt="M"+(He-1-Dt)+","+(at-1-Dt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";gt.attr("d",dt)}else if(pe){var mt="M"+(He-1-Dt)+","+(at-9-Dt)+"v18 h2 v-18 Z";gt.attr("d",mt)}else{var Tt="M"+(He-9-Dt)+","+(at-1-Dt)+"h18 v2 h-18 Z";gt.attr("d",Tt)}}}function Xn(Sn){Sn.selectAll(".visual-cue").remove()}function Un(Sn,it,ut){var xt=it.xref,gt=it.yref,Dt=b.getFromId(ut,xt),He=b.getFromId(ut,gt),at="";xt!=="paper"&&!Dt.autorange&&(at+=xt),gt!=="paper"&&!He.autorange&&(at+=gt),R.setClipUrl(Sn,at?"clip"+ut._fullLayout._uid+at:null,ut)}}function ie(q,fe,ee){return q.replace(N.segmentRE,function(be){var Te=0,Be=be.charAt(0),ge=N.paramIsX[Be],ne=N.paramIsY[Be],pe=N.numParams[Be],G=be.substr(1).replace(N.paramRE,function(Oe){return Te>=pe||(ge[Te]?Oe=fe(Oe):ne[Te]&&(Oe=ee(Oe)),Te++),Oe});return Be+G})}function L(q,fe){if(B(q)){var ee=fe.node(),be=+ee.getAttribute("data-index");if(be>=0){if(be===q._fullLayout._activeShapeIndex){me(q);return}q._fullLayout._activeShapeIndex=be,q._fullLayout._deactivateShape=me,U(q)}}}function me(q){if(B(q)){var fe=q._fullLayout._activeShapeIndex;fe>=0&&(w(q),delete q._fullLayout._activeShapeIndex,U(q))}}function ae(q){if(B(q)){w(q);var fe=q._fullLayout._activeShapeIndex,ee=(q.layout||{}).shapes||[];if(fe0&&EQ&&(E="X"),E});return N>Q&&(B=B.replace(/[\s,]*X.*/,""),v.log("Ignoring extra params in segment "+V)),F+B})}},9853:function(f,m,u){var p=u(4031);f.exports={moduleType:"component",name:"shapes",layoutAttributes:u(9827),supplyLayoutDefaults:u(4726),supplyDrawNewShapeDefaults:u(5547),includeBasePlot:u(6325)("shapes"),calcAutorange:u(5627),draw:p.draw,drawOne:p.drawOne}},7281:function(f){function m(V,N){return N?N.d2l(V):V}function u(V,N){return N?N.l2d(V):V}function p(V){return V.x0}function v(V){return V.x1}function y(V){return V.y0}function b(V){return V.y1}function x(V,N){return m(V.x1,N)-m(V.x0,N)}function k(V,N,F){return m(V.y1,F)-m(V.y0,F)}function C(V,N){return Math.abs(x(V,N))}function w(V,N,F){return Math.abs(k(V,N,F))}function T(V,N,F){return V.type!=="line"?void 0:Math.sqrt(Math.pow(x(V,N),2)+Math.pow(k(V,N,F),2))}function R(V,N){return u((m(V.x1,N)+m(V.x0,N))/2,N)}function M(V,N,F){return u((m(V.y1,F)+m(V.y0,F))/2,F)}function I(V,N,F){return V.type!=="line"?void 0:k(V,N,F)/x(V,N)}f.exports={x0:p,x1:v,y0:y,y1:b,slope:I,dx:x,dy:k,width:C,height:w,length:T,xcenter:R,ycenter:M}},5067:function(f,m,u){var p=u(1940),v=u(5025),y=u(1426).extendDeepAll,b=u(962).overrideAll,x=u(5594),k=u(4467).templatedArray,C=u(8292),w=k("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});f.exports=b(k("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:w,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:y(v({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:x.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:p({})},font:p({}),activebgcolor:{valType:"color",dflt:C.gripBgActiveColor},bgcolor:{valType:"color",dflt:C.railBgColor},bordercolor:{valType:"color",dflt:C.railBorderColor},borderwidth:{valType:"number",min:0,dflt:C.railBorderWidth},ticklen:{valType:"number",min:0,dflt:C.tickLength},tickcolor:{valType:"color",dflt:C.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:C.minorTickLength}}),"arraydraw","from-root")},8292:function(f){f.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},2343:function(f,m,u){var p=u(1828),v=u(5501),y=u(5067),b=u(8292),x=b.name,k=y.steps;f.exports=function(R,M){v(R,M,{name:x,handleItemDefaults:C})};function C(T,R,M){function I(E,W){return p.coerce(T,R,y,E,W)}for(var V=v(T,R,{name:"steps",handleItemDefaults:w}),N=0,F=0;F0?[0]:[]);xe.enter().append("g").classed(T.containerClassName,!0).style("cursor",pe?null:"ew-resize");function Le(De){De._commandObserver&&(De._commandObserver.remove(),delete De._commandObserver),v.autoMargin(ne,N(De))}if(xe.exit().each(function(){p.select(this).selectAll("g."+T.groupClassName).each(Le)}).remove(),Oe.length!==0){var ke=xe.selectAll("g."+T.groupClassName).data(Oe,z);ke.enter().append("g").classed(T.groupClassName,!0),ke.exit().each(Le).remove();for(var $e=0;$e0&&(ke=ke.transition().duration(ne.transition.duration).ease(ne.transition.easing)),ke.attr("transform",k(Le-T.gripWidth*.5,ne._dims.currentValueTotalHeight))}}function ee(ge,ne){var pe=ge._dims;return pe.inputAreaStart+T.stepInset+(pe.inputAreaLength-2*T.stepInset)*Math.min(1,Math.max(0,ne))}function be(ge,ne){var pe=ge._dims;return Math.min(1,Math.max(0,(ne-T.stepInset-pe.inputAreaStart)/(pe.inputAreaLength-2*T.stepInset-2*pe.inputAreaStart)))}function Te(ge,ne,pe){var G=pe._dims,Oe=x.ensureSingle(ge,"rect",T.railTouchRectClass,function(xe){xe.call(me,ne,ge,pe).style("pointer-events","all")});Oe.attr({width:G.inputAreaLength,height:Math.max(G.inputAreaWidth,T.tickOffset+pe.ticklen+G.labelHeight)}).call(y.fill,pe.bgcolor).attr("opacity",0),b.setTranslate(Oe,0,G.currentValueTotalHeight)}function Be(ge,ne){var pe=ne._dims,G=pe.inputAreaLength-T.railInset*2,Oe=x.ensureSingle(ge,"rect",T.railRectClass);Oe.attr({width:G,height:T.railWidth,rx:T.railRadius,ry:T.railRadius,"shape-rendering":"crispEdges"}).call(y.stroke,ne.bordercolor).call(y.fill,ne.bgcolor).style("stroke-width",ne.borderwidth+"px"),b.setTranslate(Oe,T.railInset,(pe.inputAreaWidth-T.railWidth)*.5+pe.currentValueTotalHeight)}},3243:function(f,m,u){var p=u(8292);f.exports={moduleType:"component",name:p.name,layoutAttributes:u(5067),supplyLayoutDefaults:u(2343),draw:u(4504)}},2998:function(f,m,u){var p=u(9898),v=u(2770),y=u(4875),b=u(3972),x=u(1828),k=x.strTranslate,C=u(1424),w=u(7901),T=u(3893),R=u(7822),M=u(8783).OPPOSITE_SIDE,I=/ [XY][0-9]* /;function V(N,F,z){var U=z.propContainer,Q=z.propName,B=z.placeholder,E=z.traceIndex,W=z.avoid||{},Y=z.attributes,ie=z.transform,L=z.containerGroup,me=N._fullLayout,ae=1,q=!1,fe=U.title,ee=(fe&&fe.text?fe.text:"").trim(),be=fe&&fe.font?fe.font:{},Te=be.family,Be=be.size,ge=be.color,ne;Q==="title.text"?ne="titleText":Q.indexOf("axis")!==-1?ne="axisTitleText":Q.indexOf("colorbar"!==-1)&&(ne="colorbarTitleText");var pe=N._context.edits[ne];ee===""?ae=0:ee.replace(I," % ")===B.replace(I," % ")&&(ae=.2,q=!0,pe||(ee="")),z._meta?ee=x.templateString(ee,z._meta):me._meta&&(ee=x.templateString(ee,me._meta));var G=ee||pe,Oe;L||(L=x.ensureSingle(me._infolayer,"g","g-"+F),Oe=me._hColorbarMoveTitle);var xe=L.selectAll("text").data(G?[0]:[]);if(xe.enter().append("text"),xe.text(ee).attr("class",F),xe.exit().remove(),!G)return L;function Le(De){x.syncOrAsync([ke,$e],De)}function ke(De){var Ie;return!ie&&Oe&&(ie={}),ie?(Ie="",ie.rotate&&(Ie+="rotate("+[ie.rotate,Y.x,Y.y]+")"),(ie.offset||Oe)&&(Ie+=k(0,(ie.offset||0)-(Oe||0)))):Ie=null,De.attr("transform",Ie),De.style({"font-family":Te,"font-size":p.round(Be,2)+"px",fill:w.rgb(ge),opacity:ae*w.opacity(ge),"font-weight":y.fontWeight}).attr(Y).call(T.convertToTspans,N),y.previousPromises(N)}function $e(De){var Ie=p.select(De.node().parentNode);if(W&&W.selection&&W.side&&ee){Ie.attr("transform",null);var re=M[W.side],ye=W.side==="left"||W.side==="top"?-1:1,te=v(W.pad)?W.pad:2,se=C.bBox(Ie.node()),ue={t:0,b:0,l:0,r:0},oe=N._fullLayout._reservedMargin;for(var Se in oe)for(var le in oe[Se]){var Ce=oe[Se][le];ue[le]=Math.max(ue[le],Ce)}var Qe={left:ue.l,top:ue.t,right:me.width-ue.r,bottom:me.height-ue.b},ze=W.maxShift||ye*(Qe[W.side]-se[W.side]),Xe=0;if(ze<0)Xe=ze;else{var ct=W.offsetLeft||0,pt=W.offsetTop||0;se.left-=ct,se.right-=ct,se.top-=pt,se.bottom-=pt,W.selection.each(function(){var je=C.bBox(this);x.bBoxIntersect(se,je,te)&&(Xe=Math.max(Xe,ye*(je[W.side]-se[re])+te))}),Xe=Math.min(ze,Xe),U._titleScoot=Math.abs(Xe)}if(Xe>0||ze<0){var Ye={left:[-Xe,0],right:[Xe,0],top:[0,-Xe],bottom:[0,Xe]}[W.side];Ie.attr("transform",k(Ye[0],Ye[1]))}}}xe.call(Le);function Ze(){ae=0,q=!0,xe.text(B).on("mouseover.opacity",function(){p.select(this).transition().duration(R.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){p.select(this).transition().duration(R.HIDE_PLACEHOLDER).style("opacity",0)})}return pe&&(ee?xe.on(".opacity",null):Ze(),xe.call(T.makeEditable,{gd:N}).on("edit",function(De){E!==void 0?b.call("_guiRestyle",N,Q,De,E):b.call("_guiRelayout",N,Q,De)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(Le)}).on("input",function(De){this.text(De||" ").call(T.positionText,Y.x,Y.y)})),xe.classed("js-placeholder",q),L}f.exports={draw:V}},7163:function(f,m,u){var p=u(1940),v=u(2399),y=u(1426).extendFlat,b=u(962).overrideAll,x=u(5025),k=u(4467).templatedArray,C=k("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});f.exports=b(k("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:C,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:y(x({editType:"arraydraw"}),{}),font:p({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:v.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},5909:function(f){f.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},4897:function(f,m,u){var p=u(1828),v=u(5501),y=u(7163),b=u(5909),x=b.name,k=y.buttons;f.exports=function(R,M){var I={name:x,handleItemDefaults:C};v(R,M,I)};function C(T,R,M){function I(F,z){return p.coerce(T,R,y,F,z)}var V=v(T,R,{name:"buttons",handleItemDefaults:w}),N=I("visible",V.length>0);N&&(I("active"),I("direction"),I("type"),I("showactive"),I("x"),I("y"),p.noneOrAll(T,R,["x","y"]),I("xanchor"),I("yanchor"),I("pad.t"),I("pad.r"),I("pad.b"),I("pad.l"),p.coerceFont(I,"font",M.font),I("bgcolor",M.paper_bgcolor),I("bordercolor"),I("borderwidth"))}function w(T,R){function M(V,N){return p.coerce(T,R,k,V,N)}var I=M("visible",T.method==="skip"||Array.isArray(T.args));I&&(M("method"),M("args"),M("args2"),M("label"),M("execute"))}},3689:function(f,m,u){var p=u(9898),v=u(4875),y=u(7901),b=u(1424),x=u(1828),k=u(3893),C=u(4467).arrayEditor,w=u(8783).LINE_SPACING,T=u(5909),R=u(5849);f.exports=function(be){var Te=be._fullLayout,Be=x.filterVisible(Te[T.name]);function ge($e){v.autoMargin(be,ae($e))}var ne=Te._menulayer.selectAll("g."+T.containerClassName).data(Be.length>0?[0]:[]);if(ne.enter().append("g").classed(T.containerClassName,!0).style("cursor","pointer"),ne.exit().each(function(){p.select(this).selectAll("g."+T.headerGroupClassName).each(ge)}).remove(),Be.length!==0){var pe=ne.selectAll("g."+T.headerGroupClassName).data(Be,M);pe.enter().append("g").classed(T.headerGroupClassName,!0);for(var G=x.ensureSingle(ne,"g",T.dropdownButtonGroupClassName,function($e){$e.style("pointer-events","all")}),Oe=0;OeY,be=x.barLength+2*x.barPad,Te=x.barWidth+2*x.barPad,Be=V,ge=F+z;ge+Te>I&&(ge=I-Te);var ne=this.container.selectAll("rect.scrollbar-horizontal").data(ee?[0]:[]);ne.exit().on(".drag",null).remove(),ne.enter().append("rect").classed("scrollbar-horizontal",!0).call(v.fill,x.barColor),ee?(this.hbar=ne.attr({rx:x.barRadius,ry:x.barRadius,x:Be,y:ge,width:be,height:Te}),this._hbarXMin=Be+be/2,this._hbarTranslateMax=Y-be):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var pe=z>ie,G=x.barWidth+2*x.barPad,Oe=x.barLength+2*x.barPad,xe=V+N,Le=F;xe+G>M&&(xe=M-G);var ke=this.container.selectAll("rect.scrollbar-vertical").data(pe?[0]:[]);ke.exit().on(".drag",null).remove(),ke.enter().append("rect").classed("scrollbar-vertical",!0).call(v.fill,x.barColor),pe?(this.vbar=ke.attr({rx:x.barRadius,ry:x.barRadius,x:xe,y:Le,width:G,height:Oe}),this._vbarYMin=Le+Oe/2,this._vbarTranslateMax=ie-Oe):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var $e=this.id,Ze=L-.5,De=pe?me+G+.5:me+.5,Ie=ae-.5,re=ee?q+Te+.5:q+.5,ye=R._topdefs.selectAll("#"+$e).data(ee||pe?[0]:[]);if(ye.exit().remove(),ye.enter().append("clipPath").attr("id",$e).append("rect"),ee||pe?(this._clipRect=ye.select("rect").attr({x:Math.floor(Ze),y:Math.floor(Ie),width:Math.ceil(De)-Math.floor(Ze),height:Math.ceil(re)-Math.floor(Ie)}),this.container.call(y.setClipUrl,$e,this.gd),this.bg.attr({x:V,y:F,width:N,height:z})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(y.setClipUrl,null),delete this._clipRect),ee||pe){var te=p.behavior.drag().on("dragstart",function(){p.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(te);var se=p.behavior.drag().on("dragstart",function(){p.event.sourceEvent.preventDefault(),p.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));ee&&this.hbar.on(".drag",null).call(se),pe&&this.vbar.on(".drag",null).call(se)}this.setTranslate(w,T)},x.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(y.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},x.prototype._onBoxDrag=function(){var C=this.translateX,w=this.translateY;this.hbar&&(C-=p.event.dx),this.vbar&&(w-=p.event.dy),this.setTranslate(C,w)},x.prototype._onBoxWheel=function(){var C=this.translateX,w=this.translateY;this.hbar&&(C+=p.event.deltaY),this.vbar&&(w+=p.event.deltaY),this.setTranslate(C,w)},x.prototype._onBarDrag=function(){var C=this.translateX,w=this.translateY;if(this.hbar){var T=C+this._hbarXMin,R=T+this._hbarTranslateMax,M=b.constrain(p.event.x,T,R),I=(M-T)/(R-T),V=this.position.w-this._box.w;C=I*V}if(this.vbar){var N=w+this._vbarYMin,F=N+this._vbarTranslateMax,z=b.constrain(p.event.y,N,F),U=(z-N)/(F-N),Q=this.position.h-this._box.h;w=U*Q}this.setTranslate(C,w)},x.prototype.setTranslate=function(C,w){var T=this.position.w-this._box.w,R=this.position.h-this._box.h;if(C=b.constrain(C||0,0,T),w=b.constrain(w||0,0,R),this.translateX=C,this.translateY=w,this.container.call(y.setTranslate,this._box.l-this.position.l-C,this._box.t-this.position.t-w),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+C-.5),y:Math.floor(this.position.t+w-.5)}),this.hbar){var M=C/T;this.hbar.call(y.setTranslate,C+M*this._hbarTranslateMax,w)}if(this.vbar){var I=w/R;this.vbar.call(y.setTranslate,C,w+I*this._vbarTranslateMax)}}},8783:function(f){f.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},4695:function(f){f.exports={axisRefDescription:function(m,u,p){return["If set to a",m,"axis id (e.g. *"+m+"* or","*"+m+"2*), the `"+m+"` position refers to a",m,"coordinate. If set to *paper*, the `"+m+"`","position refers to the distance from the",u,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",u,"("+p+"). If set to a",m,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",u,"of the domain of that axis: e.g.,","*"+m+"2 domain* refers to the domain of the second",m," axis and a",m,"position of 0.5 refers to the","point between the",u,"and the",p,"of the domain of the","second",m,"axis."].join(" ")}}},1562:function(f){f.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},4808:function(f){f.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},7822:function(f){f.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},606:function(f){f.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},7922:function(f,m){m.xmlns="http://www.w3.org/2000/xmlns/",m.svg="http://www.w3.org/2000/svg",m.xlink="http://www.w3.org/1999/xlink",m.svgAttrs={xmlns:m.svg,"xmlns:xlink":m.xlink}},8729:function(f,m,u){m.version=u(1506).version,u(7417),u(8847);for(var p=u(3972),v=m.register=p.register,y=u(641),b=Object.keys(y),x=0;x",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},9863:function(f,m){m.isLeftAnchor=function(p){return p.xanchor==="left"||p.xanchor==="auto"&&p.x<=.3333333333333333},m.isCenterAnchor=function(p){return p.xanchor==="center"||p.xanchor==="auto"&&p.x>.3333333333333333&&p.x<.6666666666666666},m.isRightAnchor=function(p){return p.xanchor==="right"||p.xanchor==="auto"&&p.x>=.6666666666666666},m.isTopAnchor=function(p){return p.yanchor==="top"||p.yanchor==="auto"&&p.y>=.6666666666666666},m.isMiddleAnchor=function(p){return p.yanchor==="middle"||p.yanchor==="auto"&&p.y>.3333333333333333&&p.y<.6666666666666666},m.isBottomAnchor=function(p){return p.yanchor==="bottom"||p.yanchor==="auto"&&p.y<=.3333333333333333}},6348:function(f,m,u){var p=u(4872),v=p.mod,y=p.modHalf,b=Math.PI,x=2*b;function k(U){return U/180*b}function C(U){return U/b*180}function w(U){return Math.abs(U[1]-U[0])>x-1e-14}function T(U,Q){return y(Q-U,x)}function R(U,Q){return Math.abs(T(U,Q))}function M(U,Q){if(w(Q))return!0;var B,E;Q[0]E&&(E+=x);var W=v(U,x),Y=W+x;return W>=B&&W<=E||Y>=B&&Y<=E}function I(U,Q,B,E){if(!M(Q,E))return!1;var W,Y;return B[0]=W&&U<=Y}function V(U,Q,B,E,W,Y,ie){W=W||0,Y=Y||0;var L=w([B,E]),me,ae,q,fe,ee;L?(me=0,ae=b,q=x):BF.max?V.set(N):V.set(+I)}},integer:{coerceFunction:function(I,V,N,F){I%1||!p(I)||F.min!==void 0&&IF.max?V.set(N):V.set(+I)}},string:{coerceFunction:function(I,V,N,F){if(typeof I!="string"){var z=typeof I=="number";F.strict===!0||!z?V.set(N):V.set(String(I))}else F.noBlank&&!I?V.set(N):V.set(I)}},color:{coerceFunction:function(I,V,N){v(I).isValid()?V.set(I):V.set(N)}},colorlist:{coerceFunction:function(I,V,N){function F(z){return v(z).isValid()}!Array.isArray(I)||!I.length?V.set(N):I.every(F)?V.set(I):V.set(N)}},colorscale:{coerceFunction:function(I,V,N){V.set(b.get(I,N))}},angle:{coerceFunction:function(I,V,N){I==="auto"?V.set("auto"):p(I)?V.set(T(+I,360)):V.set(N)}},subplotid:{coerceFunction:function(I,V,N,F){var z=F.regex||w(N);if(typeof I=="string"&&z.test(I)){V.set(I);return}V.set(N)},validateFunction:function(I,V){var N=V.dflt;return I===N?!0:typeof I!="string"?!1:!!w(N).test(I)}},flaglist:{coerceFunction:function(I,V,N,F){if((F.extras||[]).indexOf(I)!==-1){V.set(I);return}if(typeof I!="string"){V.set(N);return}for(var z=I.split("+"),U=0;U=B&&ge<=E?ge:k}if(typeof ge!="string"&&typeof ge!="number")return k;ge=String(ge);var xe=U(ne),Le=ge.charAt(0);xe&&(Le==="G"||Le==="g")&&(ge=ge.substr(1),ne="");var ke=xe&&ne.substr(0,7)==="chinese",$e=ge.match(ke?F:N);if(!$e)return k;var Ze=$e[1],De=$e[3]||"1",Ie=Number($e[5]||1),re=Number($e[7]||0),ye=Number($e[9]||0),te=Number($e[11]||0);if(xe){if(Ze.length===2)return k;Ze=Number(Ze);var se;try{var ue=I.getComponentMethod("calendars","getCal")(ne);if(ke){var oe=De.charAt(De.length-1)==="i";De=parseInt(De,10),se=ue.newDate(Ze,ue.toMonthIndex(Ze,De,oe),Ie)}else se=ue.newDate(Ze,Number(De),Ie)}catch{return k}return se?(se.toJD()-M)*C+re*w+ye*T+te*R:k}Ze.length===2?Ze=(Number(Ze)+2e3-z)%100+z:Ze=Number(Ze),De-=1;var Se=new Date(Date.UTC(2e3,De,Ie,re,ye));return Se.setUTCFullYear(Ze),Se.getUTCMonth()!==De||Se.getUTCDate()!==Ie?k:Se.getTime()+te*R},B=m.MIN_MS=m.dateTime2ms("-9999"),E=m.MAX_MS=m.dateTime2ms("9999-12-31 23:59:59.9999"),m.isDateTime=function(ge,ne){return m.dateTime2ms(ge,ne)!==k};function W(ge,ne){return String(ge+Math.pow(10,ne)).substr(1)}var Y=90*C,ie=3*w,L=5*T;m.ms2DateTime=function(ge,ne,pe){if(typeof ge!="number"||!(ge>=B&&ge<=E))return k;ne||(ne=0);var G=Math.floor(b(ge+.05,1)*10),Oe=Math.round(ge-G/10),xe,Le,ke,$e,Ze,De;if(U(pe)){var Ie=Math.floor(Oe/C)+M,re=Math.floor(b(ge,C));try{xe=I.getComponentMethod("calendars","getCal")(pe).fromJD(Ie).formatDate("yyyy-mm-dd")}catch{xe=V("G%Y-%m-%d")(new Date(Oe))}if(xe.charAt(0)==="-")for(;xe.length<11;)xe="-0"+xe.substr(1);else for(;xe.length<10;)xe="0"+xe;Le=ne=B+C&&ge<=E-C))return k;var ne=Math.floor(b(ge+.05,1)*10),pe=new Date(Math.round(ge-ne/10)),G=p("%Y-%m-%d")(pe),Oe=pe.getHours(),xe=pe.getMinutes(),Le=pe.getSeconds(),ke=pe.getUTCMilliseconds()*10+ne;return me(G,Oe,xe,Le,ke)};function me(ge,ne,pe,G,Oe){if((ne||pe||G||Oe)&&(ge+=" "+W(ne,2)+":"+W(pe,2),(G||Oe)&&(ge+=":"+W(G,2),Oe))){for(var xe=4;Oe%10===0;)xe-=1,Oe/=10;ge+="."+W(Oe,xe)}return ge}m.cleanDate=function(ge,ne,pe){if(ge===k)return ne;if(m.isJSDate(ge)||typeof ge=="number"&&isFinite(ge)){if(U(pe))return y.error("JS Dates and milliseconds are incompatible with world calendars",ge),ne;if(ge=m.ms2DateTimeLocal(+ge),!ge&&ne!==void 0)return ne}else if(!m.isDateTime(ge,pe))return y.error("unrecognized date",ge),ne;return ge};var ae=/%\d?f/g,q=/%h/g,fe={1:"1",2:"1",3:"2",4:"2"};function ee(ge,ne,pe,G){ge=ge.replace(ae,function(xe){var Le=Math.min(+xe.charAt(1)||6,6),ke=(ne/1e3%1+2).toFixed(Le).substr(2).replace(/0+$/,"")||"0";return ke});var Oe=new Date(Math.floor(ne+.05));if(ge=ge.replace(q,function(){return fe[pe("%q")(Oe)]}),U(G))try{ge=I.getComponentMethod("calendars","worldCalFmt")(ge,ne,G)}catch{return"Invalid"}return pe(ge)(Oe)}var be=[59,59.9,59.99,59.999,59.9999];function Te(ge,ne){var pe=b(ge+.05,C),G=W(Math.floor(pe/w),2)+":"+W(b(Math.floor(pe/T),60),2);if(ne!=="M"){v(ne)||(ne=0);var Oe=Math.min(b(ge/R,60),be[ne]),xe=(100+Oe).toFixed(ne).substr(1);ne>0&&(xe=xe.replace(/0+$/,"").replace(/[\.]$/,"")),G+=":"+xe}return G}m.formatDate=function(ge,ne,pe,G,Oe,xe){if(Oe=U(Oe)&&Oe,!ne)if(pe==="y")ne=xe.year;else if(pe==="m")ne=xe.month;else if(pe==="d")ne=xe.dayMonth+` +`+xe.year;else return Te(ge,pe)+` +`+ee(xe.dayMonthYear,ge,G,Oe);return ee(ne,ge,G,Oe)};var Be=3*C;m.incrementMonth=function(ge,ne,pe){pe=U(pe)&&pe;var G=b(ge,C);if(ge=Math.round(ge-G),pe)try{var Oe=Math.round(ge/C)+M,xe=I.getComponentMethod("calendars","getCal")(pe),Le=xe.fromJD(Oe);return ne%12?xe.add(Le,ne,"m"):xe.add(Le,ne/12,"y"),(Le.toJD()-M)*C+G}catch{y.error("invalid ms "+ge+" in calendar "+pe)}var ke=new Date(ge+Be);return ke.setUTCMonth(ke.getUTCMonth()+ne)+G-Be},m.findExactDates=function(ge,ne){for(var pe=0,G=0,Oe=0,xe=0,Le,ke,$e=U(ne)&&I.getComponentMethod("calendars","getCal")(ne),Ze=0;Ze1||Y<0||Y>1?null:{x:C+F*Y,y:w+Q*Y}}m.segmentDistance=function(w,T,R,M,I,V,N,F){if(v(w,T,R,M,I,V,N,F))return 0;var z=R-w,U=M-T,Q=N-I,B=F-V,E=z*z+U*U,W=Q*Q+B*B,Y=Math.min(y(z,U,E,I-w,V-T),y(z,U,E,N-w,F-T),y(Q,B,W,w-I,T-V),y(Q,B,W,R-I,M-V));return Math.sqrt(Y)};function y(C,w,T,R,M){var I=R*C+M*w;if(I<0)return R*R+M*M;if(I>T){var V=R-C,N=M-w;return V*V+N*N}else{var F=R*w-M*C;return F*F/T}}var b,x,k;m.getTextLocation=function(w,T,R,M){if((w!==x||M!==k)&&(b={},x=w,k=M),b[R])return b[R];var I=w.getPointAtLength(p(R-M/2,T)),V=w.getPointAtLength(p(R+M/2,T)),N=Math.atan((V.y-I.y)/(V.x-I.x)),F=w.getPointAtLength(p(R,T)),z=(F.x*4+I.x+V.x)/6,U=(F.y*4+I.y+V.y)/6,Q={x:z,y:U,theta:N};return b[R]=Q,Q},m.clearLocationCache=function(){x=null},m.getVisibleSegment=function(w,T,R){var M=T.left,I=T.right,V=T.top,N=T.bottom,F=0,z=w.getTotalLength(),U=z,Q,B;function E(Y){var ie=w.getPointAtLength(Y);Y===0?Q=ie:Y===z&&(B=ie);var L=ie.xI?ie.x-I:0,me=ie.yN?ie.y-N:0;return Math.sqrt(L*L+me*me)}for(var W=E(F);W;){if(F+=W+R,F>U)return;W=E(F)}for(W=E(U);W;){if(U-=W+R,F>U)return;W=E(U)}return{min:F,max:U,len:U-F,total:z,isClosed:F===0&&U===z&&Math.abs(Q.x-B.x)<.1&&Math.abs(Q.y-B.y)<.1}},m.findPointOnPath=function(w,T,R,M){M=M||{};for(var I=M.pathLength||w.getTotalLength(),V=M.tolerance||.001,N=M.iterationLimit||30,F=w.getPointAtLength(0)[R]>w.getPointAtLength(I)[R]?-1:1,z=0,U=0,Q=I,B,E,W;z0?Q=B:U=B,z++}return E}},3389:function(f){f.exports=function(u){return u}},9240:function(f){f.exports=function(u,p){if(!p)return u;var v=1/Math.abs(p),y=v>1?(v*u+v*p)/v:u+p,b=String(y).length;if(b>16){var x=String(p).length,k=String(u).length;if(b>=k+x){var C=parseFloat(y).toPrecision(12);C.indexOf("e+")===-1&&(y=+C)}}return y}},1828:function(f,m,u){var p=u(9898),v=u(4096).g0,y=u(721).WU,b=u(2770),x=u(606),k=x.FP_SAFE,C=-k,w=x.BADNUM,T=f.exports={};T.adjustFormat=function(se){return!se||/^\d[.]\df/.test(se)||/[.]\d%/.test(se)?se:se==="0.f"?"~f":/^\d%/.test(se)?"~%":/^\ds/.test(se)?"~s":!/^[~,.0$]/.test(se)&&/[&fps]/.test(se)?"~"+se:se};var R={};T.warnBadFormat=function(te){var se=String(te);R[se]||(R[se]=1,T.warn('encountered bad format: "'+se+'"'))},T.noFormat=function(te){return String(te)},T.numberFormat=function(te){var se;try{se=y(T.adjustFormat(te))}catch{return T.warnBadFormat(te),T.noFormat}return se},T.nestedProperty=u(5487),T.keyedContainer=u(6636),T.relativeAttr=u(6962),T.isPlainObject=u(1965),T.toLogRange=u(8163),T.relinkPrivateKeys=u(1332);var M=u(3627);T.isTypedArray=M.isTypedArray,T.isArrayOrTypedArray=M.isArrayOrTypedArray,T.isArray1D=M.isArray1D,T.ensureArray=M.ensureArray,T.concat=M.concat,T.maxRowLength=M.maxRowLength,T.minRowLength=M.minRowLength;var I=u(4872);T.mod=I.mod,T.modHalf=I.modHalf;var V=u(6554);T.valObjectMeta=V.valObjectMeta,T.coerce=V.coerce,T.coerce2=V.coerce2,T.coerceFont=V.coerceFont,T.coercePattern=V.coercePattern,T.coerceHoverinfo=V.coerceHoverinfo,T.coerceSelectionMarkerOpacity=V.coerceSelectionMarkerOpacity,T.validate=V.validate;var N=u(1631);T.dateTime2ms=N.dateTime2ms,T.isDateTime=N.isDateTime,T.ms2DateTime=N.ms2DateTime,T.ms2DateTimeLocal=N.ms2DateTimeLocal,T.cleanDate=N.cleanDate,T.isJSDate=N.isJSDate,T.formatDate=N.formatDate,T.incrementMonth=N.incrementMonth,T.dateTick0=N.dateTick0,T.dfltRange=N.dfltRange,T.findExactDates=N.findExactDates,T.MIN_MS=N.MIN_MS,T.MAX_MS=N.MAX_MS;var F=u(5888);T.findBin=F.findBin,T.sorterAsc=F.sorterAsc,T.sorterDes=F.sorterDes,T.distinctVals=F.distinctVals,T.roundUp=F.roundUp,T.sort=F.sort,T.findIndexOfMin=F.findIndexOfMin,T.sortObjectKeys=u(8607);var z=u(38);T.aggNums=z.aggNums,T.len=z.len,T.mean=z.mean,T.median=z.median,T.midRange=z.midRange,T.variance=z.variance,T.stdev=z.stdev,T.interp=z.interp;var U=u(5657);T.init2dArray=U.init2dArray,T.transposeRagged=U.transposeRagged,T.dot=U.dot,T.translationMatrix=U.translationMatrix,T.rotationMatrix=U.rotationMatrix,T.rotationXYMatrix=U.rotationXYMatrix,T.apply3DTransform=U.apply3DTransform,T.apply2DTransform=U.apply2DTransform,T.apply2DTransform2=U.apply2DTransform2,T.convertCssMatrix=U.convertCssMatrix,T.inverseTransformMatrix=U.inverseTransformMatrix;var Q=u(6348);T.deg2rad=Q.deg2rad,T.rad2deg=Q.rad2deg,T.angleDelta=Q.angleDelta,T.angleDist=Q.angleDist,T.isFullCircle=Q.isFullCircle,T.isAngleInsideSector=Q.isAngleInsideSector,T.isPtInsideSector=Q.isPtInsideSector,T.pathArc=Q.pathArc,T.pathSector=Q.pathSector,T.pathAnnulus=Q.pathAnnulus;var B=u(9863);T.isLeftAnchor=B.isLeftAnchor,T.isCenterAnchor=B.isCenterAnchor,T.isRightAnchor=B.isRightAnchor,T.isTopAnchor=B.isTopAnchor,T.isMiddleAnchor=B.isMiddleAnchor,T.isBottomAnchor=B.isBottomAnchor;var E=u(7642);T.segmentsIntersect=E.segmentsIntersect,T.segmentDistance=E.segmentDistance,T.getTextLocation=E.getTextLocation,T.clearLocationCache=E.clearLocationCache,T.getVisibleSegment=E.getVisibleSegment,T.findPointOnPath=E.findPointOnPath;var W=u(1426);T.extendFlat=W.extendFlat,T.extendDeep=W.extendDeep,T.extendDeepAll=W.extendDeepAll,T.extendDeepNoArrays=W.extendDeepNoArrays;var Y=u(7769);T.log=Y.log,T.warn=Y.warn,T.error=Y.error;var ie=u(587);T.counterRegex=ie.counter;var L=u(9990);T.throttle=L.throttle,T.throttleDone=L.done,T.clearThrottle=L.clear;var me=u(4401);T.getGraphDiv=me.getGraphDiv,T.isPlotDiv=me.isPlotDiv,T.removeElement=me.removeElement,T.addStyleRule=me.addStyleRule,T.addRelatedStyleRule=me.addRelatedStyleRule,T.deleteRelatedStyleRule=me.deleteRelatedStyleRule,T.getFullTransformMatrix=me.getFullTransformMatrix,T.getElementTransformMatrix=me.getElementTransformMatrix,T.getElementAndAncestors=me.getElementAndAncestors,T.equalDomRects=me.equalDomRects,T.clearResponsive=u(6367),T.preserveDrawingBuffer=u(5142),T.makeTraceGroups=u(7310),T._=u(5867),T.notifier=u(5046),T.filterUnique=u(5744),T.filterVisible=u(6756),T.pushUnique=u(5138),T.increment=u(9240),T.cleanNumber=u(5218),T.ensureNumber=function(se){return b(se)?(se=Number(se),se>k||se=se?!1:b(te)&&te>=0&&te%1===0},T.noop=u(4213),T.identity=u(3389),T.repeat=function(te,se){for(var ue=new Array(se),oe=0;oeue?Math.max(ue,Math.min(se,te)):Math.max(se,Math.min(ue,te))},T.bBoxIntersect=function(te,se,ue){return ue=ue||0,te.left<=se.right+ue&&se.left<=te.right+ue&&te.top<=se.bottom+ue&&se.top<=te.bottom+ue},T.simpleMap=function(te,se,ue,oe,Se){for(var le=te.length,Ce=new Array(le),Qe=0;Qe=Math.pow(2,ue)?Se>10?(T.warn("randstr failed uniqueness"),Ce):te(se,ue,oe,(Se||0)+1):Ce},T.OptionControl=function(te,se){te||(te={}),se||(se="opt");var ue={};return ue.optionList=[],ue._newoption=function(oe){oe[se]=te,ue[oe.name]=oe,ue.optionList.push(oe)},ue["_"+se]=te,ue},T.smooth=function(te,se){if(se=Math.round(se)||0,se<2)return te;var ue=te.length,oe=2*ue,Se=2*se-1,le=new Array(Se),Ce=new Array(ue),Qe,ze,Xe,ct;for(Qe=0;Qe=oe&&(Xe-=oe*Math.floor(Xe/oe)),Xe<0?Xe=-1-Xe:Xe>=ue&&(Xe=oe-1-Xe),ct+=te[Xe]*le[ze];Ce[Qe]=ct}return Ce},T.syncOrAsync=function(te,se,ue){var oe,Se;function le(){return T.syncOrAsync(te,se,ue)}for(;te.length;)if(Se=te.splice(0,1)[0],oe=Se(se),oe&&oe.then)return oe.then(le);return ue&&ue(se)},T.stripTrailingSlash=function(te){return te.substr(-1)==="/"?te.substr(0,te.length-1):te},T.noneOrAll=function(te,se,ue){if(te){var oe=!1,Se=!0,le,Ce;for(le=0;le0?Se:0})},T.fillArray=function(te,se,ue,oe){if(oe=oe||T.identity,T.isArrayOrTypedArray(te))for(var Se=0;Se1?Se+Ce[1]:"";if(le&&(Ce.length>1||Qe.length>4||ue))for(;oe.test(Qe);)Qe=Qe.replace(oe,"$1"+le+"$2");return Qe+ze},T.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var ne=/^\w*$/;T.templateString=function(te,se){var ue={};return te.replace(T.TEMPLATE_STRING_REGEX,function(oe,Se){var le;return ne.test(Se)?le=se[Se]:(ue[Se]=ue[Se]||T.nestedProperty(se,Se).get,le=ue[Se]()),T.isValidTextValue(le)?le:""})};var pe={max:10,count:0,name:"hovertemplate"};T.hovertemplateString=function(){return $e.apply(pe,arguments)};var G={max:10,count:0,name:"texttemplate"};T.texttemplateString=function(){return $e.apply(G,arguments)};var Oe=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function xe(te){var se=te.match(Oe);return se?{key:se[1],op:se[2],number:Number(se[3])}:{key:te,op:null,number:null}}var Le={max:10,count:0,name:"texttemplate",parseMultDiv:!0};T.texttemplateStringForShapes=function(){return $e.apply(Le,arguments)};var ke=/^[:|\|]/;function $e(te,se,ue){var oe=this,Se=arguments;se||(se={});var le={};return te.replace(T.TEMPLATE_STRING_REGEX,function(Ce,Qe,ze){var Xe=Qe==="xother"||Qe==="yother",ct=Qe==="_xother"||Qe==="_yother",pt=Qe==="_xother_"||Qe==="_yother_",Ye=Qe==="xother_"||Qe==="yother_",je=Xe||ct||Ye||pt,et=Qe;(ct||pt)&&(et=et.substring(1)),(Ye||pt)&&(et=et.substring(0,et.length-1));var yt=null,ft=null;if(oe.parseMultDiv){var tt=xe(et);et=tt.key,yt=tt.op,ft=tt.number}var wt;if(je){if(wt=se[et],wt===void 0)return""}else{var Xt,Gt;for(Gt=3;Gt=Ze&&Ce<=De,Xe=Qe>=Ze&&Qe<=De;if(ze&&(oe=10*oe+Ce-Ze),Xe&&(Se=10*Se+Qe-Ze),!ze||!Xe){if(oe!==Se)return oe-Se;if(Ce!==Qe)return Ce-Qe}}return Se-oe};var Ie=2e9;T.seedPseudoRandom=function(){Ie=2e9},T.pseudoRandom=function(){var te=Ie;return Ie=(69069*Ie+1)%4294967296,Math.abs(Ie-te)<429496729?T.pseudoRandom():Ie/4294967296},T.fillText=function(te,se,ue){var oe=Array.isArray(ue)?function(Ce){ue.push(Ce)}:function(Ce){ue.text=Ce},Se=T.extractOption(te,se,"htx","hovertext");if(T.isValidTextValue(Se))return oe(Se);var le=T.extractOption(te,se,"tx","text");if(T.isValidTextValue(le))return oe(le)},T.isValidTextValue=function(te){return te||te===0},T.formatPercent=function(te,se){se=se||0;for(var ue=(Math.round(100*te*Math.pow(10,se))*Math.pow(.1,se)).toFixed(se)+"%",oe=0;oe1&&(Xe=1):Xe=0,T.strTranslate(Se-Xe*(ue+Ce),le-Xe*(oe+Qe))+T.strScale(Xe)+(ze?"rotate("+ze+(se?"":" "+ue+" "+oe)+")":"")},T.setTransormAndDisplay=function(te,se){te.attr("transform",T.getTextTransform(se)),te.style("display",se.scale?null:"none")},T.ensureUniformFontSize=function(te,se){var ue=T.extendFlat({},se);return ue.size=Math.max(se.size,te._fullLayout.uniformtext.minsize||0),ue},T.join2=function(te,se,ue){var oe=te.length;return oe>1?te.slice(0,-1).join(se)+ue+te[oe-1]:te.join(se)},T.bigFont=function(te){return Math.round(1.2*te)};var re=T.getFirefoxVersion(),ye=re!==null&&re<86;T.getPositionFromD3Event=function(){return ye?[p.event.layerX,p.event.layerY]:[p.event.offsetX,p.event.offsetY]}},1965:function(f){f.exports=function(u){return window&&window.process&&window.process.versions?Object.prototype.toString.call(u)==="[object Object]":Object.prototype.toString.call(u)==="[object Object]"&&Object.getPrototypeOf(u).hasOwnProperty("hasOwnProperty")}},6636:function(f,m,u){var p=u(5487),v=/^\w*$/,y=0,b=1,x=2,k=3,C=4;f.exports=function(T,R,M,I){M=M||"name",I=I||"value";var V,N,F,z={};R&&R.length?(F=p(T,R),N=F.get()):N=T,R=R||"";var U={};if(N)for(V=0;V2)return z[W]=z[W]|x,B.set(E,null);if(Q){for(V=W;V1){var x=["LOG:"];for(b=0;b1){var k=[];for(b=0;b"),"long")}},y.warn=function(){var b;if(p.logging>0){var x=["WARN:"];for(b=0;b0){var k=[];for(b=0;b"),"stick")}},y.error=function(){var b;if(p.logging>0){var x=["ERROR:"];for(b=0;b0){var k=[];for(b=0;b"),"stick")}}},7310:function(f,m,u){var p=u(9898);f.exports=function(y,b,x){var k=y.selectAll("g."+x.replace(/\s/g,".")).data(b,function(w){return w[0].trace.uid});k.exit().remove(),k.enter().append("g").attr("class",x),k.order();var C=y.classed("rangeplot")?"nodeRangePlot3":"node3";return k.each(function(w){w[0][C]=p.select(this)}),k}},5657:function(f,m,u){var p=u(9576);m.init2dArray=function(v,y){for(var b=new Array(v),x=0;xv/2?p-Math.round(p/v)*v:p}f.exports={mod:m,modHalf:u}},5487:function(f,m,u){var p=u(2770),v=u(3627).isArrayOrTypedArray;f.exports=function(I,V){if(p(V))V=String(V);else if(typeof V!="string"||V.substr(V.length-4)==="[-1]")throw"bad property string";var N=V.split("."),F,z,U,Q;for(Q=0;Q/g),N=0;Nw||W===v||WR||B&&V(Q))}function F(Q,B){var E=Q[0],W=Q[1];if(E===v||Ew||W===v||WR)return!1;var Y=k.length,ie=k[0][0],L=k[0][1],me=0,ae,q,fe,ee,be;for(ae=1;aeMath.max(q,ie)||W>Math.max(fe,L)))if(WM||Math.abs(p(F,V))>w)return!0;return!1},y.filter=function(x,k){var C=[x[0]],w=0,T=0;function R(I){x.push(I);var V=C.length,N=w;C.splice(T+1);for(var F=N+1;F1){var M=x.pop();R(M)}return{addPt:R,raw:x,filtered:C}}},5142:function(f,m,u){var p=u(2770),v=u(5791);f.exports=function(x){var k;if(x&&x.hasOwnProperty("userAgent")?k=x.userAgent:k=y(),typeof k!="string")return!0;var C=v({ua:{headers:{"user-agent":k}},tablet:!0,featureDetect:!1});if(!C)for(var w=k.split(" "),T=1;T-1;M--){var I=w[M];if(I.substr(0,8)==="Version/"){var V=I.substr(8).split(".")[0];if(p(V)&&(V=+V),V>=13)return!0}}}return C};function y(){var b;return typeof navigator<"u"&&(b=navigator.userAgent),b&&b.headers&&typeof b.headers["user-agent"]=="string"&&(b=b.headers["user-agent"]),b}},5138:function(f){f.exports=function(u,p){if(p instanceof RegExp){for(var v=p.toString(),y=0;yv.queueLength&&(x.undoQueue.queue.shift(),x.undoQueue.index--)},b.startSequence=function(x){x.undoQueue=x.undoQueue||{index:0,queue:[],sequence:!1},x.undoQueue.sequence=!0,x.undoQueue.beginSequence=!0},b.stopSequence=function(x){x.undoQueue=x.undoQueue||{index:0,queue:[],sequence:!1},x.undoQueue.sequence=!1,x.undoQueue.beginSequence=!1},b.undo=function(k){var C,w;if(!(k.undoQueue===void 0||isNaN(k.undoQueue.index)||k.undoQueue.index<=0)){for(k.undoQueue.index--,C=k.undoQueue.queue[k.undoQueue.index],k.undoQueue.inSequence=!0,w=0;w=k.undoQueue.queue.length)){for(C=k.undoQueue.queue[k.undoQueue.index],k.undoQueue.inSequence=!0,w=0;w1?(M[N-1]-M[0])/(N-1):1,U,Q;for(z>=0?Q=I?k:C:Q=I?T:w,R+=z*x*(I?-1:1)*(z>=0?1:-1);V90&&v.log("Long binary search..."),V-1};function k(R,M){return RM}function T(R,M){return R>=M}m.sorterAsc=function(R,M){return R-M},m.sorterDes=function(R,M){return M-R},m.distinctVals=function(R){var M=R.slice();M.sort(m.sorterAsc);var I;for(I=M.length-1;I>-1&&M[I]===b;I--);for(var V=M[I]-M[0]||1,N=V/(I||1)/1e4,F=[],z,U=0;U<=I;U++){var Q=M[U],B=Q-z;z===void 0?(F.push(Q),z=Q):B>N&&(V=Math.min(V,B),F.push(Q),z=Q)}return{vals:F,minDiff:V}},m.roundUp=function(R,M,I){for(var V=0,N=M.length-1,F,z=0,U=I?0:1,Q=I?1:0,B=I?Math.ceil:Math.floor;V0&&(V=1),I&&V)return R.sort(M)}return V?R:R.reverse()},m.findIndexOfMin=function(R,M){M=M||y;for(var I=1/0,V,N=0;Nx.length)&&(k=x.length),p(b)||(b=!1),v(x[0])){for(w=new Array(k),C=0;Cy.length-1)return y[y.length-1];var x=b%1;return x*y[Math.ceil(b)]+(1-x)*y[Math.floor(b)]}},3893:function(f,m,u){var p=u(9898),v=u(1828),y=v.strTranslate,b=u(7922),x=u(8783).LINE_SPACING,k=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;m.convertToTspans=function(pe,G,Oe){var xe=pe.text(),Le=!pe.attr("data-notex")&&G&&G._context.typesetMath&&typeof MathJax<"u"&&xe.match(k),ke=p.select(pe.node().parentNode);if(ke.empty())return;var $e=pe.attr("class")?pe.attr("class").split(" ")[0]:"text";$e+="-math",ke.selectAll("svg."+$e).remove(),ke.selectAll("g."+$e+"-group").remove(),pe.style("display",null).attr({"data-unformatted":xe,"data-math":"N"});function Ze(){ke.empty()||($e=pe.attr("class")+"-math",ke.select("svg."+$e).remove()),pe.text("").style("white-space","pre");var De=Te(pe.node(),xe);De&&pe.style("pointer-events","all"),m.positionText(pe),Oe&&Oe.call(pe)}return Le?(G&&G._promises||[]).push(new Promise(function(De){pe.style("display","none");var Ie=parseInt(pe.node().style.fontSize,10),re={fontSize:Ie};M(Le[2],re,function(ye,te,se){ke.selectAll("svg."+$e).remove(),ke.selectAll("g."+$e+"-group").remove();var ue=ye&&ye.select("svg");if(!ue||!ue.node()){Ze(),De();return}var oe=ke.append("g").classed($e+"-group",!0).attr({"pointer-events":"none","data-unformatted":xe,"data-math":"Y"});oe.node().appendChild(ue.node()),te&&te.node()&&ue.node().insertBefore(te.node().cloneNode(!0),ue.node().firstChild);var Se=se.width,le=se.height;ue.attr({class:$e,height:le,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var Ce=pe.node().style.fill||"black",Qe=ue.select("g");Qe.attr({fill:Ce,stroke:Ce});var ze=Qe.node().getBoundingClientRect(),Xe=ze.width,ct=ze.height;(Xe>Se||ct>le)&&(ue.style("overflow","hidden"),ze=ue.node().getBoundingClientRect(),Xe=ze.width,ct=ze.height);var pt=+pe.attr("x"),Ye=+pe.attr("y"),je=Ie||pe.node().getBoundingClientRect().height,et=-je/4;if($e[0]==="y")oe.attr({transform:"rotate("+[-90,pt,Ye]+")"+y(-Xe/2,et-ct/2)});else if($e[0]==="l")Ye=et-ct/2;else if($e[0]==="a"&&$e.indexOf("atitle")!==0)pt=0,Ye=et;else{var yt=pe.attr("text-anchor");pt=pt-Xe*(yt==="middle"?.5:yt==="end"?1:0),Ye=Ye+et-ct/2}ue.attr({x:pt,y:Ye}),Oe&&Oe.call(pe,oe),De(oe)})})):Ze(),pe};var C=/(<|<|<)/g,w=/(>|>|>)/g;function T(pe){return pe.replace(C,"\\lt ").replace(w,"\\gt ")}var R=[["$","$"],["\\(","\\)"]];function M(pe,G,Oe){var xe=parseInt((MathJax.version||"").split(".")[0]);if(xe!==2&&xe!==3){v.warn("No MathJax version:",MathJax.version);return}var Le,ke,$e,Ze,De=function(){return ke=v.extendDeepAll({},MathJax.Hub.config),$e=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:R},displayAlign:"left"})},Ie=function(){ke=v.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=R},re=function(){if(Le=MathJax.Hub.config.menuSettings.renderer,Le!=="SVG")return MathJax.Hub.setRenderer("SVG")},ye=function(){Le=MathJax.config.startup.output,Le!=="svg"&&(MathJax.config.startup.output="svg")},te=function(){var Ce="math-output-"+v.randstr({},64);Ze=p.select("body").append("div").attr({id:Ce}).style({visibility:"hidden",position:"absolute","font-size":G.fontSize+"px"}).text(T(pe));var Qe=Ze.node();return xe===2?MathJax.Hub.Typeset(Qe):MathJax.typeset([Qe])},se=function(){var Ce=Ze.select(xe===2?".MathJax_SVG":".MathJax"),Qe=!Ce.empty()&&Ze.select("svg").node();if(!Qe)v.log("There was an error in the tex syntax.",pe),Oe();else{var ze=Qe.getBoundingClientRect(),Xe;xe===2?Xe=p.select("body").select("#MathJax_SVG_glyphs"):Xe=Ce.select("defs"),Oe(Ce,Xe,ze)}Ze.remove()},ue=function(){if(Le!=="SVG")return MathJax.Hub.setRenderer(Le)},oe=function(){Le!=="svg"&&(MathJax.config.startup.output=Le)},Se=function(){return $e!==void 0&&(MathJax.Hub.processSectionDelay=$e),MathJax.Hub.Config(ke)},le=function(){MathJax.config=ke};xe===2?MathJax.Hub.Queue(De,re,te,se,ue,Se):xe===3&&(Ie(),ye(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){te(),se(),oe(),le()}))}var I={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},V={sub:"0.3em",sup:"-0.6em"},N={sub:"-0.21em",sup:"0.42em"},F="​",z=["http:","https:","mailto:","",void 0,":"],U=m.NEWLINES=/(\r\n?|\n)/g,Q=/(<[^<>]*>)/,B=/<(\/?)([^ >]*)(\s+(.*))?>/i,E=//i;m.BR_TAG_ALL=//gi;var W=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,Y=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,ie=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,L=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function me(pe,G){if(!pe)return null;var Oe=pe.match(G),xe=Oe&&(Oe[3]||Oe[4]);return xe&&ee(xe)}var ae=/(^|;)\s*color:/;m.plainText=function(pe,G){G=G||{};for(var Oe=G.len!==void 0&&G.len!==-1?G.len:1/0,xe=G.allowedTags!==void 0?G.allowedTags:["br"],Le="...",ke=Le.length,$e=pe.split(Q),Ze=[],De="",Ie=0,re=0;re<$e.length;re++){var ye=$e[re],te=ye.match(B),se=te&&te[2].toLowerCase();if(se)xe.indexOf(se)!==-1&&(Ze.push(ye),De=se);else{var ue=ye.length;if(Ie+ueke?Ze.push(ye.substr(0,oe-ke)+Le):Ze.push(ye.substr(0,oe));break}De=""}}return Ze.join("")};var q={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},fe=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function ee(pe){return pe.replace(fe,function(G,Oe){var xe;return Oe.charAt(0)==="#"?xe=be(Oe.charAt(1)==="x"?parseInt(Oe.substr(2),16):parseInt(Oe.substr(1),10)):xe=q[Oe],xe||G})}m.convertEntities=ee;function be(pe){if(!(pe>1114111)){var G=String.fromCodePoint;if(G)return G(pe);var Oe=String.fromCharCode;return pe<=65535?Oe(pe):Oe((pe>>10)+55232,pe%1024+56320)}}function Te(pe,G){G=G.replace(U," ");var Oe=!1,xe=[],Le,ke=-1;function $e(){ke++;var ct=document.createElementNS(b.svg,"tspan");p.select(ct).attr({class:"line",dy:ke*x+"em"}),pe.appendChild(ct),Le=ct;var pt=xe;if(xe=[{node:ct}],pt.length>1)for(var Ye=1;Ye.",G);return}var pt=xe.pop();ct!==pt.type&&v.log("Start tag <"+pt.type+"> doesnt match end tag <"+ct+">. Pretending it did match.",G),Le=xe[xe.length-1].node}var re=E.test(G);re?$e():(Le=pe,xe=[{node:pe}]);for(var ye=G.split(Q),te=0;tek.ts+b){T();return}k.timer=setTimeout(function(){T(),k.timer=null},b)},m.done=function(v){var y=u[v];return!y||!y.timer?Promise.resolve():new Promise(function(b){var x=y.onDone;y.onDone=function(){x&&x(),b(),y.onDone=null}})},m.clear=function(v){if(v)p(u[v]),delete u[v];else for(var y in u)m.clear(y)};function p(v){v&&v.timer!==null&&(clearTimeout(v.timer),v.timer=null)}},8163:function(f,m,u){var p=u(2770);f.exports=function(y,b){if(y>0)return Math.log(y)/Math.LN10;var x=Math.log(Math.min(b[0],b[1]))/Math.LN10;return p(x)||(x=Math.log(Math.max(b[0],b[1]))/Math.LN10-6),x}},7815:function(f){f.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},2177:function(f){f.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},4458:function(f,m,u){var p=u(3972);f.exports=function(y){for(var b=p.layoutArrayContainers,x=p.layoutArrayRegexes,k=y.split("[")[0],C,w,T=0;T0&&b.log("Clearing previous rejected promises from queue."),E._promises=[]},m.cleanLayout=function(E){var W,Y;E||(E={}),E.xaxis1&&(E.xaxis||(E.xaxis=E.xaxis1),delete E.xaxis1),E.yaxis1&&(E.yaxis||(E.yaxis=E.yaxis1),delete E.yaxis1),E.scene1&&(E.scene||(E.scene=E.scene1),delete E.scene1);var ie=(x.subplotsRegistry.cartesian||{}).attrRegex,L=(x.subplotsRegistry.polar||{}).attrRegex,me=(x.subplotsRegistry.ternary||{}).attrRegex,ae=(x.subplotsRegistry.gl3d||{}).attrRegex,q=Object.keys(E);for(W=0;W3?(re.x=1.02,re.xanchor="left"):re.x<-2&&(re.x=-.02,re.xanchor="right"),re.y>3?(re.y=1.02,re.yanchor="bottom"):re.y<-2&&(re.y=-.02,re.yanchor="top")),I(E),E.dragmode==="rotate"&&(E.dragmode="orbit"),C.clean(E),E.template&&E.template.layout&&m.cleanLayout(E.template.layout),E};function M(E,W){var Y=E[W],ie=W.charAt(0);Y&&Y!=="paper"&&(E[W]=w(Y,ie,!0))}function I(E){E&&((typeof E.title=="string"||typeof E.title=="number")&&(E.title={text:E.title}),W("titlefont","font"),W("titleposition","position"),W("titleside","side"),W("titleoffset","offset"));function W(Y,ie){var L=E[Y],me=E.title&&E.title[ie];L&&!me&&(E.title||(E.title={}),E.title[ie]=E[Y],delete E[Y])}}m.cleanData=function(E){for(var W=0;W0)return E.substr(0,W)}m.hasParent=function(E,W){for(var Y=Q(W);Y;){if(Y in E)return!0;Y=Q(Y)}return!1};var B=["x","y","z"];m.clearAxisTypes=function(E,W,Y){for(var ie=0;ie1&&y.warn("Full array edits are incompatible with other edits",N);var W=M[""][""];if(C(W))R.set(null);else if(Array.isArray(W))R.set(W);else return y.warn("Unrecognized full array edit value",N,W),!0;return Q?!1:(F(B,E),z(T),!0)}var Y=Object.keys(M).map(Number).sort(b),ie=R.get(),L=ie||[],me=V(E,N).get(),ae=[],q=-1,fe=L.length,ee,be,Te,Be,ge,ne,pe,G;for(ee=0;eeL.length-(pe?0:1)){y.warn("index out of range",N,Te);continue}if(ne!==void 0)ge.length>1&&y.warn("Insertion & removal are incompatible with edits to the same index.",N,Te),C(ne)?ae.push(Te):pe?(ne==="add"&&(ne={}),L.splice(Te,0,ne),me&&me.splice(Te,0,{})):y.warn("Unrecognized full object edit value",N,Te,ne),q===-1&&(q=Te);else for(be=0;be=0;ee--)L.splice(ae[ee],1),me&&me.splice(ae[ee],1);if(L.length?ie||R.set(L):R.set(null),Q)return!1;if(F(B,E),U!==v){var Oe;if(q===-1)Oe=Y;else{for(fe=Math.max(L.length,fe),Oe=[],ee=0;ee=q));ee++)Oe.push(Te);for(ee=q;ee=He.data.length||Tt<-He.data.length)throw new Error(dt+" must be valid indices for gd.data.");if(at.indexOf(Tt,mt+1)>-1||Tt>=0&&at.indexOf(-He.data.length+Tt)>-1||Tt<0&&at.indexOf(He.data.length+Tt)>-1)throw new Error("each index in "+dt+" must be unique.")}}function Oe(He,at,dt){if(!Array.isArray(He.data))throw new Error("gd.data must be an array.");if(typeof at>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(at)||(at=[at]),G(He,at,"currentIndices"),typeof dt<"u"&&!Array.isArray(dt)&&(dt=[dt]),typeof dt<"u"&&G(He,dt,"newIndices"),typeof dt<"u"&&at.length!==dt.length)throw new Error("current and new indices must be of equal length.")}function xe(He,at,dt){var mt,Tt;if(!Array.isArray(He.data))throw new Error("gd.data must be an array.");if(typeof at>"u")throw new Error("traces must be defined.");for(Array.isArray(at)||(at=[at]),mt=0;mt"u")throw new Error("indices must be an integer or array of integers");G(He,dt,"indices");for(var Pt in at){if(!Array.isArray(at[Pt])||at[Pt].length!==dt.length)throw new Error("attribute "+Pt+" must be an array of length equal to indices array length");if(Tt&&(!(Pt in mt)||!Array.isArray(mt[Pt])||mt[Pt].length!==at[Pt].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function ke(He,at,dt,mt){var Tt=b.isPlainObject(mt),Pt=[],dn,nn,Wt,Rt,fn;Array.isArray(dt)||(dt=[dt]),dt=pe(dt,He.data.length-1);for(var Hn in at)for(var nr=0;nr=0&&fn=0&&fn"u")return Rt=m.redraw(He),C.add(He,Tt,dn,Pt,nn),Rt;Array.isArray(dt)||(dt=[dt]);try{Oe(He,mt,dt)}catch(fn){throw He.data.splice(He.data.length-at.length,at.length),fn}return C.startSequence(He),C.add(He,Tt,dn,Pt,nn),Rt=m.moveTraces(He,mt,dt),C.stopSequence(He),Rt}function ye(He,at){He=b.getGraphDiv(He);var dt=[],mt=m.addTraces,Tt=ye,Pt=[He,dt,at],dn=[He,at],nn,Wt;if(typeof at>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(at)||(at=[at]),G(He,at,"indices"),at=pe(at,He.data.length-1),at.sort(b.sorterDes),nn=0;nn"u")for(dt=[],Rt=0;Rt-1&&Pt.indexOf("grouptitlefont")===-1?nn(Pt,Pt.replace("titlefont","title.font")):Pt.indexOf("titleposition")>-1?nn(Pt,Pt.replace("titleposition","title.position")):Pt.indexOf("titleside")>-1?nn(Pt,Pt.replace("titleside","title.side")):Pt.indexOf("titleoffset")>-1&&nn(Pt,Pt.replace("titleoffset","title.offset"));function nn(Wt,Rt){He[Rt]=He[Wt],delete He[Wt]}}function ze(He,at,dt){He=b.getGraphDiv(He),W.clearPromiseQueue(He);var mt={};if(typeof at=="string")mt[at]=dt;else if(b.isPlainObject(at))mt=b.extendFlat({},at);else return b.warn("Relayout fail.",at,dt),Promise.reject();Object.keys(mt).length&&(He.changed=!0);var Tt=et(He,mt),Pt=Tt.flags;Pt.calc&&(He.calcdata=void 0);var dn=[R.previousPromises];Pt.layoutReplot?dn.push(Y.layoutReplot):Object.keys(mt).length&&(Xe(He,Pt,Tt)||R.supplyDefaults(He),Pt.legend&&dn.push(Y.doLegend),Pt.layoutstyle&&dn.push(Y.layoutStyles),Pt.axrange&&ct(dn,Tt.rangesAltered),Pt.ticks&&dn.push(Y.doTicksRelayout),Pt.modebar&&dn.push(Y.doModeBar),Pt.camera&&dn.push(Y.doCamera),Pt.colorbars&&dn.push(Y.doColorBars),dn.push(fe)),dn.push(R.rehover,R.redrag,R.reselect),C.add(He,ze,[He,Tt.undoit],ze,[He,Tt.redoit]);var nn=b.syncOrAsync(dn,He);return(!nn||!nn.then)&&(nn=Promise.resolve(He)),nn.then(function(){return He.emit("plotly_relayout",Tt.eventData),He})}function Xe(He,at,dt){var mt=He._fullLayout;if(!at.axrange)return!1;for(var Tt in at)if(Tt!=="axrange"&&at[Tt])return!1;var Pt,dn,nn=function(Er,zt){return b.coerce(Pt,dn,V,Er,zt)},Wt={};for(var Rt in dt.rangesAltered){var fn=M.id2name(Rt);if(Pt=He.layout[fn],dn=mt[fn],I(Pt,dn,nn,Wt),dn._matchGroup){for(var Hn in dn._matchGroup)if(Hn!==Rt){var nr=mt[M.id2name(Hn)];nr.autorange=dn.autorange,nr.range=dn.range.slice(),nr._input.range=dn.range.slice()}}}return!0}function ct(He,at){var dt=at?function(mt){var Tt=[],Pt=!0;for(var dn in at){var nn=M.getFromId(mt,dn);if(Tt.push(dn),(nn.ticklabelposition||"").indexOf("inside")!==-1&&nn._anchorAxis&&Tt.push(nn._anchorAxis._id),nn._matchGroup)for(var Wt in nn._matchGroup)at[Wt]||Tt.push(Wt)}return M.draw(mt,Tt,{skipTitle:Pt})}:function(mt){return M.draw(mt,"redraw")};He.push(Q,Y.doAutoRangeAndConstraints,dt,Y.drawData,Y.finalDraw)}var pt=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Ye=/^[xyz]axis[0-9]*\.autorange$/,je=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function et(He,at){var dt=He.layout,mt=He._fullLayout,Tt=mt._guiEditing,Pt=oe(mt._preGUI,Tt),dn=Object.keys(at),nn=M.list(He),Wt=b.extendDeepAll({},at),Rt={},fn,Hn,nr;for(Qe(at),dn=Object.keys(at),Hn=0;Hn0&&typeof sr.parts[Oo]!="string";)Oo--;var wr=sr.parts[Oo],Fe=sr.parts[Oo-1]+"."+wr,Ee=sr.parts.slice(0,Oo).join("."),St=x(He.layout,Ee).get(),Ct=x(mt,Ee).get(),Lt=sr.get();if(Sr!==void 0){Br[xr]=Sr,kr[xr]=wr==="reverse"?Sr:ue(Lt);var Ft=T.getLayoutValObject(mt,sr.parts);if(Ft&&Ft.impliedEdits&&Sr!==null)for(var Ht in Ft.impliedEdits)or(b.relativeAttr(xr,Ht),Ft.impliedEdits[Ht]);if(["width","height"].indexOf(xr)!==-1)if(Sr){or("autosize",null);var $t=xr==="height"?"width":"height";or($t,mt[$t])}else mt[xr]=He._initialAutoSize[xr];else if(xr==="autosize")or("width",Sr?null:mt.width),or("height",Sr?null:mt.height);else if(Fe.match(pt))Rn(Fe),x(mt,Ee+"._inputRange").set(null);else if(Fe.match(Ye)){Rn(Fe),x(mt,Ee+"._inputRange").set(null);var Mt=x(mt,Ee).get();Mt._inputDomain&&(Mt._input.domain=Mt._inputDomain.slice())}else Fe.match(je)&&x(mt,Ee+"._inputDomain").set(null);if(wr==="type"){_r=St;var en=Ct.type==="linear"&&Sr==="log",un=Ct.type==="log"&&Sr==="linear";if(en||un){if(!_r||!_r.range)or(Ee+".autorange",!0);else if(Ct.autorange)en&&(_r.range=_r.range[1]>_r.range[0]?[1,2]:[2,1]);else{var Jt=_r.range[0],rn=_r.range[1];en?(Jt<=0&&rn<=0&&or(Ee+".autorange",!0),Jt<=0?Jt=rn/1e6:rn<=0&&(rn=Jt/1e6),or(Ee+".range[0]",Math.log(Jt)/Math.LN10),or(Ee+".range[1]",Math.log(rn)/Math.LN10)):(or(Ee+".range[0]",Math.pow(10,Jt)),or(Ee+".range[1]",Math.pow(10,rn)))}Array.isArray(mt._subplots.polar)&&mt._subplots.polar.length&&mt[sr.parts[0]]&&sr.parts[1]==="radialaxis"&&delete mt[sr.parts[0]]._subplot.viewInitial["radialaxis.range"],w.getComponentMethod("annotations","convertCoords")(He,Ct,Sr,or),w.getComponentMethod("images","convertCoords")(He,Ct,Sr,or)}else or(Ee+".autorange",!0),or(Ee+".range",null);x(mt,Ee+"._inputRange").set(null)}else if(wr.match(L)){var Tn=x(mt,xr).get(),On=(Sr||{}).type;(!On||On==="-")&&(On="linear"),w.getComponentMethod("annotations","convertCoords")(He,Tn,On,or),w.getComponentMethod("images","convertCoords")(He,Tn,On,or)}var pn=E.containerArrayMatch(xr);if(pn){fn=pn.array,Hn=pn.index;var Jn=pn.property,Fn=Ft||{editType:"calc"};Hn!==""&&Jn===""&&(E.isAddVal(Sr)?kr[xr]=null:E.isRemoveVal(Sr)?kr[xr]=(x(dt,fn).get()||[])[Hn]:b.warn("unrecognized full object value",at)),ie.update(Wn,Fn),Rt[fn]||(Rt[fn]={});var zr=Rt[fn][Hn];zr||(zr=Rt[fn][Hn]={}),zr[Jn]=Sr,delete at[xr]}else wr==="reverse"?(St.range?St.range.reverse():(or(Ee+".autorange",!0),St.range=[1,0]),Ct.autorange?Wn.calc=!0:Wn.plot=!0):(xr==="dragmode"&&(Sr===!1&&Lt!==!1||Sr!==!1&&Lt===!1)||mt._has("scatter-like")&&mt._has("regl")&&xr==="dragmode"&&(Sr==="lasso"||Sr==="select")&&!(Lt==="lasso"||Lt==="select")||mt._has("gl2d")?Wn.plot=!0:Ft?ie.update(Wn,Ft):Wn.calc=!0,sr.set(Sr))}}for(fn in Rt){var dr=E.applyContainerArrayChanges(He,Pt(dt,fn),Rt[fn],Wn,Pt);dr||(Wn.plot=!0)}for(var Hr in jr){_r=M.getFromId(He,Hr);var ar=_r&&_r._constraintGroup;if(ar){Wn.calc=!0;for(var ur in ar)jr[ur]||(M.getFromId(He,ur)._constraintShrinkable=!0)}}(yt(He)||at.height||at.width)&&(Wn.plot=!0);var qr=mt.shapes;for(Hn=0;Hn1;)if(mt.pop(),dt=x(at,mt.join(".")+".uirevision").get(),dt!==void 0)return dt;return at.uirevision}function Bt(He,at){for(var dt=0;dt=Tt.length?Tt[0]:Tt[Rt]:Tt}function nn(Rt){return Array.isArray(Pt)?Rt>=Pt.length?Pt[0]:Pt[Rt]:Pt}function Wt(Rt,fn){var Hn=0;return function(){if(Rt&&++Hn===fn)return Rt()}}return new Promise(function(Rt,fn){function Hn(){if(mt._frameQueue.length!==0){for(;mt._frameQueue.length;){var wr=mt._frameQueue.pop();wr.onInterrupt&&wr.onInterrupt()}He.emit("plotly_animationinterrupted",[])}}function nr(wr){if(wr.length!==0){for(var Fe=0;Femt._timeToNext&&zt()};wr()}var Wn=0;function Br(wr){return Array.isArray(Tt)?Wn>=Tt.length?wr.transitionOpts=Tt[Wn]:wr.transitionOpts=Tt[0]:wr.transitionOpts=Tt,Wn++,wr}var kr,or,jr=[],_r=at==null,Rn=Array.isArray(at),xr=!_r&&!Rn&&b.isPlainObject(at);if(xr)jr.push({type:"object",data:Br(b.extendFlat({},at))});else if(_r||["string","number"].indexOf(typeof at)!==-1)for(kr=0;kr0&&aoao)&&Oo.push(or);jr=Oo}}jr.length>0?nr(jr):(He.emit("plotly_animated"),Rt())})}function it(He,at,dt){if(He=b.getGraphDiv(He),at==null)return Promise.resolve();if(!b.isPlotDiv(He))throw new Error("This element is not a Plotly plot: "+He+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var mt,Tt,Pt,dn,nn=He._transitionData._frames,Wt=He._transitionData._frameHash;if(!Array.isArray(at))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+at);var Rt=nn.length+at.length*2,fn=[],Hn={};for(mt=at.length-1;mt>=0;mt--)if(b.isPlainObject(at[mt])){var nr=at[mt].name,Er=(Wt[nr]||Hn[nr]||{}).name,zt=at[mt].name,vr=Wt[Er]||Hn[Er];Er&&zt&&typeof zt=="number"&&vr&&mesr.index?-1:xr.index=0;mt--){if(Tt=fn[mt].frame,typeof Tt.name=="number"&&b.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Tt.name)for(;Wt[Tt.name="frame "+He._transitionData._counter++];);if(Wt[Tt.name]){for(Pt=0;Pt=0;dt--)mt=at[dt],Pt.push({type:"delete",index:mt}),dn.unshift({type:"insert",index:mt,value:Tt[mt]});var nn=R.modifyFrames,Wt=R.modifyFrames,Rt=[He,dn],fn=[He,Pt];return C&&C.add(He,nn,Rt,Wt,fn),R.modifyFrames(He,Pt)}function xt(He){He=b.getGraphDiv(He);var at=He._fullLayout||{},dt=He._fullData||[];return R.cleanPlot([],{},dt,at),R.purge(He),k.purge(He),at._container&&at._container.remove(),delete He._context,He}function gt(He){var at=He._fullLayout,dt=He.getBoundingClientRect();if(!b.equalDomRects(dt,at._lastBBox)){var mt=at._invTransform=b.inverseTransformMatrix(b.getFullTransformMatrix(He));at._invScaleX=Math.sqrt(mt[0][0]*mt[0][0]+mt[0][1]*mt[0][1]+mt[0][2]*mt[0][2]),at._invScaleY=Math.sqrt(mt[1][0]*mt[1][0]+mt[1][1]*mt[1][1]+mt[1][2]*mt[1][2]),at._lastBBox=dt}}function Dt(He){var at=p.select(He),dt=He._fullLayout;if(dt._calcInverseTransform=gt,dt._calcInverseTransform(He),dt._container=at.selectAll(".plot-container").data([0]),dt._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),dt._paperdiv=dt._container.selectAll(".svg-container").data([0]),dt._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),dt._glcontainer=dt._paperdiv.selectAll(".gl-container").data([{}]),dt._glcontainer.enter().append("div").classed("gl-container",!0),dt._paperdiv.selectAll(".main-svg").remove(),dt._paperdiv.select(".modebar-container").remove(),dt._paper=dt._paperdiv.insert("svg",":first-child").classed("main-svg",!0),dt._toppaper=dt._paperdiv.append("svg").classed("main-svg",!0),dt._modebardiv=dt._paperdiv.append("div"),delete dt._modeBar,dt._hoverpaper=dt._paperdiv.append("svg").classed("main-svg",!0),!dt._uid){var mt={};p.selectAll("defs").each(function(){this.id&&(mt[this.id.split("-")[1]]=1)}),dt._uid=b.randstr(mt)}dt._paperdiv.selectAll(".main-svg").attr(U.svgAttrs),dt._defs=dt._paper.append("defs").attr("id","defs-"+dt._uid),dt._clips=dt._defs.append("g").classed("clips",!0),dt._topdefs=dt._toppaper.append("defs").attr("id","topdefs-"+dt._uid),dt._topclips=dt._topdefs.append("g").classed("clips",!0),dt._bgLayer=dt._paper.append("g").classed("bglayer",!0),dt._draggers=dt._paper.append("g").classed("draglayer",!0);var Tt=dt._paper.append("g").classed("layer-below",!0);dt._imageLowerLayer=Tt.append("g").classed("imagelayer",!0),dt._shapeLowerLayer=Tt.append("g").classed("shapelayer",!0),dt._cartesianlayer=dt._paper.append("g").classed("cartesianlayer",!0),dt._polarlayer=dt._paper.append("g").classed("polarlayer",!0),dt._smithlayer=dt._paper.append("g").classed("smithlayer",!0),dt._ternarylayer=dt._paper.append("g").classed("ternarylayer",!0),dt._geolayer=dt._paper.append("g").classed("geolayer",!0),dt._funnelarealayer=dt._paper.append("g").classed("funnelarealayer",!0),dt._pielayer=dt._paper.append("g").classed("pielayer",!0),dt._iciclelayer=dt._paper.append("g").classed("iciclelayer",!0),dt._treemaplayer=dt._paper.append("g").classed("treemaplayer",!0),dt._sunburstlayer=dt._paper.append("g").classed("sunburstlayer",!0),dt._indicatorlayer=dt._toppaper.append("g").classed("indicatorlayer",!0),dt._glimages=dt._paper.append("g").classed("glimages",!0);var Pt=dt._toppaper.append("g").classed("layer-above",!0);dt._imageUpperLayer=Pt.append("g").classed("imagelayer",!0),dt._shapeUpperLayer=Pt.append("g").classed("shapelayer",!0),dt._selectionLayer=dt._toppaper.append("g").classed("selectionlayer",!0),dt._infolayer=dt._toppaper.append("g").classed("infolayer",!0),dt._menulayer=dt._toppaper.append("g").classed("menulayer",!0),dt._zoomlayer=dt._toppaper.append("g").classed("zoomlayer",!0),dt._hoverlayer=dt._hoverpaper.append("g").classed("hoverlayer",!0),dt._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),He.emit("plotly_framework")}m.animate=Sn,m.addFrames=it,m.deleteFrames=ut,m.addTraces=re,m.deleteTraces=ye,m.extendTraces=De,m.moveTraces=te,m.prependTraces=Ie,m.newPlot=ne,m._doPlot=q,m.purge=xt,m.react=Yn,m.redraw=ge,m.relayout=ze,m.restyle=se,m.setPlotConfig=ee,m.update=ft,m._guiRelayout=tt(ze),m._guiRestyle=tt(se),m._guiUpdate=tt(ft),m._storeDirectGUIEdit=le},2075:function(f){var m={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},u={};function p(v,y){for(var b in v){var x=v[b];x.valType?y[b]=x.dflt:(y[b]||(y[b]={}),p(x,y[b]))}}p(m,u),f.exports={configAttributes:m,dfltConfig:u}},6281:function(f,m,u){var p=u(3972),v=u(1828),y=u(9012),b=u(820),x=u(1391),k=u(5594),C=u(2075).configAttributes,w=u(962),T=v.extendDeepAll,R=v.isPlainObject,M=v.isArrayOrTypedArray,I=v.nestedProperty,V=v.valObjectMeta,N="_isSubplotObj",F="_isLinkedToArray",z="_arrayAttrRegexps",U="_deprecated",Q=[N,F,z,U];m.IS_SUBPLOT_OBJ=N,m.IS_LINKED_TO_ARRAY=F,m.DEPRECATED=U,m.UNDERSCORE_ATTRS=Q,m.get=function(){var Be={};p.allTypes.forEach(function(ne){Be[ne]=Y(ne)});var ge={};return Object.keys(p.transformsRegistry).forEach(function(ne){ge[ne]=L(ne)}),{defs:{valObjects:V,metaKeys:Q.concat(["description","role","editType","impliedEdits"]),editType:{traces:w.traces,layout:w.layout},impliedEdits:{}},traces:Be,layout:ie(),transforms:ge,frames:me(),animation:ae(k),config:ae(C)}},m.crawl=function(Be,ge,ne,pe){var G=ne||0;pe=pe||"",Object.keys(Be).forEach(function(Oe){var xe=Be[Oe];if(Q.indexOf(Oe)===-1){var Le=(pe?pe+".":"")+Oe;ge(xe,Oe,Be,G,Le),!m.isValObject(xe)&&R(xe)&&Oe!=="impliedEdits"&&m.crawl(xe,ge,G+1,Le)}})},m.isValObject=function(Be){return Be&&Be.valType!==void 0},m.findArrayAttributes=function(Be){var ge=[],ne=[],pe=[],G,Oe;function xe(Ie,re,ye,te){ne=ne.slice(0,te).concat([re]),pe=pe.slice(0,te).concat([Ie&&Ie._isLinkedToArray]);var se=Ie&&(Ie.valType==="data_array"||Ie.arrayOk===!0)&&!(ne[te-1]==="colorbar"&&(re==="ticktext"||re==="tickvals"));se&&Le(G,0,"")}function Le(Ie,re,ye){var te=Ie[ne[re]],se=ye+ne[re];if(re===ne.length-1)M(te)&&ge.push(Oe+se);else if(pe[re]){if(Array.isArray(te))for(var ue=0;ue=xe.length)return!1;G=(p.transformsRegistry[xe[Le].type]||{}).attributes,Oe=G&&G[ge[2]],pe=3}else{var ke=Be._module;if(ke||(ke=(p.modules[Be.type||y.type.dflt]||{})._module),!ke)return!1;if(G=ke.attributes,Oe=G&&G[ne],!Oe){var $e=ke.basePlotModule;$e&&$e.attributes&&(Oe=$e.attributes[ne])}Oe||(Oe=y[ne])}return E(Oe,ge,pe)},m.getLayoutValObject=function(Be,ge){var ne=B(Be,ge[0]);return E(ne,ge,1)};function B(Be,ge){var ne,pe,G,Oe,xe=Be._basePlotModules;if(xe){var Le;for(ne=0;ne=Oe.length)return!1;if(Be.dimensions===2){if(ne++,ge.length===ne)return Be;var xe=ge[ne];if(!W(xe))return!1;Be=Oe[G][xe]}else Be=Oe[G]}else Be=Oe}}return Be}function W(Be){return Be===Math.round(Be)&&Be>=0}function Y(Be){var ge,ne;ge=p.modules[Be]._module,ne=ge.basePlotModule;var pe={};pe.type=null;var G=T({},y),Oe=T({},ge.attributes);m.crawl(Oe,function(ke,$e,Ze,De,Ie){I(G,Ie).set(void 0),ke===void 0&&I(Oe,Ie).set(void 0)}),T(pe,G),p.traceIs(Be,"noOpacity")&&delete pe.opacity,p.traceIs(Be,"showLegend")||(delete pe.showlegend,delete pe.legendgroup),p.traceIs(Be,"noHover")&&(delete pe.hoverinfo,delete pe.hoverlabel),ge.selectPoints||delete pe.selectedpoints,T(pe,Oe),ne.attributes&&T(pe,ne.attributes),pe.type=Be;var xe={meta:ge.meta||{},categories:ge.categories||{},animatable:!!ge.animatable,type:Be,attributes:ae(pe)};if(ge.layoutAttributes){var Le={};T(Le,ge.layoutAttributes),xe.layoutAttributes=ae(Le)}return ge.animatable||m.crawl(xe,function(ke){m.isValObject(ke)&&"anim"in ke&&delete ke.anim}),xe}function ie(){var Be={},ge,ne;T(Be,b);for(ge in p.subplotsRegistry)if(ne=p.subplotsRegistry[ge],!!ne.layoutAttributes)if(Array.isArray(ne.attr))for(var pe=0;pe=R&&(T._input||{})._templateitemname;I&&(M=R);var V=w+"["+M+"]",N;function F(){N={},I&&(N[V]={},N[V][y]=I)}F();function z(E,W){N[E]=W}function U(E,W){I?p.nestedProperty(N[V],E).set(W):N[V+"."+E]=W}function Q(){var E=N;return F(),E}function B(E,W){E&&U(E,W);var Y=Q();for(var ie in Y)p.nestedProperty(C,ie).set(Y[ie])}return{modifyBase:z,modifyItem:U,getUpdateObj:Q,applyUpdate:B}}},1549:function(f,m,u){var p=u(9898),v=u(3972),y=u(4875),b=u(1828),x=u(3893),k=u(3306),C=u(7901),w=u(1424),T=u(2998),R=u(4168),M=u(9298),I=u(8783),V=u(9082),N=V.enforce,F=V.clean,z=u(1739).doAutoRange,U="start",Q="middle",B="end";m.layoutStyles=function(ne){return b.syncOrAsync([y.doAutoMargin,W],ne)};function E(ne,pe,G){for(var Oe=0;Oe=ne[1]||xe[1]<=ne[0])&&Le[0]pe[0])return!0}return!1}function W(ne){var pe=ne._fullLayout,G=pe._size,Oe=G.p,xe=M.list(ne,"",!0),Le,ke,$e,Ze,De,Ie;if(pe._paperdiv.style({width:ne._context.responsive&&pe.autosize&&!ne._context._hasZeroWidth&&!ne.layout.width?"100%":pe.width+"px",height:ne._context.responsive&&pe.autosize&&!ne._context._hasZeroHeight&&!ne.layout.height?"100%":pe.height+"px"}).selectAll(".main-svg").call(w.setSize,pe.width,pe.height),ne._context.setBackground(ne,pe.paper_bgcolor),m.drawMainTitle(ne),R.manage(ne),!pe._has("cartesian"))return y.previousPromises(ne);function re(xt,gt,Dt){var He=xt._lw/2;if(xt._id.charAt(0)==="x"){if(gt){if(Dt==="top")return gt._offset-Oe-He}else return G.t+G.h*(1-(xt.position||0))+He%1;return gt._offset+gt._length+Oe+He}if(gt){if(Dt==="right")return gt._offset+gt._length+Oe+He}else return G.l+G.w*(xt.position||0)+He%1;return gt._offset-Oe-He}for(Le=0;Le0&&(fe(ne,Le,De,Ze),$e.attr({x:ke,y:Le,"text-anchor":Oe,dy:Te(pe.yanchor)}).call(x.positionText,ke,Le))}};function me(ne,pe,G,Oe,xe){var Le=pe.yref==="paper"?ne._fullLayout._size.h:ne._fullLayout.height,ke=b.isTopAnchor(pe)?Oe:Oe-xe,$e=G==="b"?Le-ke:ke;return b.isTopAnchor(pe)&&G==="t"||b.isBottomAnchor(pe)&&G==="b"?!1:$e.5?"t":"b",ke=ne._fullLayout.margin[Le],$e=0;return pe.yref==="paper"?$e=G+pe.pad.t+pe.pad.b:pe.yref==="container"&&($e=ae(Le,Oe,xe,ne._fullLayout.height,G)+pe.pad.t+pe.pad.b),$e>ke?$e:0}function fe(ne,pe,G,Oe){var xe="title.automargin",Le=ne._fullLayout.title,ke=Le.y>.5?"t":"b",$e={x:Le.x,y:Le.y,t:0,b:0},Ze={};Le.yref==="paper"&&me(ne,Le,ke,pe,Oe)?$e[ke]=G:Le.yref==="container"&&(Ze[ke]=G,ne._fullLayout._reservedMargin[xe]=Ze),y.allowAutoMargin(ne,xe),y.autoMargin(ne,xe,$e)}function ee(ne,pe){var G=ne.title,Oe=ne._size,xe=0;switch(pe===U?xe=G.pad.l:pe===B&&(xe=-G.pad.r),G.xref){case"paper":return Oe.l+Oe.w*G.x+xe;case"container":default:return ne.width*G.x+xe}}function be(ne,pe){var G=ne.title,Oe=ne._size,xe=0;if(pe==="0em"||!pe?xe=-G.pad.b:pe===I.CAP_SHIFT+"em"&&(xe=G.pad.t),G.y==="auto")return Oe.t/2;switch(G.yref){case"paper":return Oe.t+Oe.h-Oe.h*G.y+xe;case"container":default:return ne.height-ne.height*G.y+xe}}function Te(ne){return ne==="top"?I.CAP_SHIFT+.3+"em":ne==="bottom"?"-0.3em":I.MID_SHIFT+"em"}function Be(ne){var pe=ne.title,G=Q;return b.isRightAnchor(pe)?G=B:b.isLeftAnchor(pe)&&(G=U),G}function ge(ne){var pe=ne.title,G="0em";return b.isTopAnchor(pe)?G=I.CAP_SHIFT+"em":b.isMiddleAnchor(pe)&&(G=I.MID_SHIFT+"em"),G}m.doTraceStyle=function(ne){var pe=ne.calcdata,G=[],Oe;for(Oe=0;Oege?Y.push({code:"unused",traceType:ee,templateCount:Be,dataCount:ge}):ge>Be&&Y.push({code:"reused",traceType:ee,templateCount:Be,dataCount:ge})}}function ne(pe,G){for(var Oe in pe)if(Oe.charAt(0)!=="_"){var xe=pe[Oe],Le=V(pe,Oe,G);v(xe)?(Array.isArray(pe)&&xe._template===!1&&xe.templateitemname&&Y.push({code:"missing",path:Le,templateitemname:xe.templateitemname}),ne(xe,Le)):Array.isArray(xe)&&N(xe)&&ne(xe,Le)}}if(ne({data:L,layout:ie},""),Y.length)return Y.map(F)};function N(z){for(var U=0;U1&&Y.push(I("object","layout"))),v.supplyDefaults(ie);for(var ae=ie._fullData,q=L.length,fe=0;feee.length&&W.push(I("unused",Y,q.concat(ee.length)));var pe=ee.length,G=Array.isArray(ne);G&&(pe=Math.min(pe,ne.length));var Oe,xe,Le,ke,$e;if(be.dimensions===2)for(xe=0;xeee[xe].length&&W.push(I("unused",Y,q.concat(xe,ee[xe].length)));var Ze=ee[xe].length;for(Oe=0;Oe<(G?Math.min(Ze,ne[xe].length):Ze);Oe++)Le=G?ne[xe][Oe]:ne,ke=fe[xe][Oe],$e=ee[xe][Oe],p.validate(ke,Le)?$e!==ke&&$e!==+ke&&W.push(I("dynamic",Y,q.concat(xe,Oe),ke,$e)):W.push(I("value",Y,q.concat(xe,Oe),ke))}else W.push(I("array",Y,q.concat(xe),fe[xe]));else for(xe=0;xe0&&Math.round(F)===F)N=F;else return{vals:M}}for(var z=T.calendar,U=I==="start",Q=I==="end",B=w[R+"period0"],E=y(B,z)||0,W=[],Y=[],ie=[],L=M.length,me=0;meae;)ee=b(ee,-N,z);for(;ee<=ae;)ee=b(ee,N,z);fe=b(ee,-N,z)}else{for(q=Math.round((ae-E)/V),ee=E+q*V;ee>ae;)ee-=V;for(;ee<=ae;)ee+=V;fe=ee-V}W[me]=U?fe:Q?ee:(fe+ee)/2,Y[me]=fe,ie[me]=ee}return{vals:W,starts:Y,ends:ie}}},9502:function(f){f.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},1739:function(f,m,u){var p=u(9898),v=u(2770),y=u(1828),b=u(606).FP_SAFE,x=u(3972),k=u(1424),C=u(1675),w=C.getFromId,T=C.isLinked;f.exports={applyAutorangeOptions:q,getAutoRange:R,makePadFn:I,doAutoRange:z,findExtremes:U,concatExtremes:F};function R(fe,ee){var be,Te,Be=[],ge=fe._fullLayout,ne=I(ge,ee,0),pe=I(ge,ee,1),G=F(fe,ee),Oe=G.min,xe=G.max;if(Oe.length===0||xe.length===0)return y.simpleMap(ee.range,ee.r2l);var Le=Oe[0].val,ke=xe[0].val;for(be=1;be0&&(Qe=te-ne(oe)-pe(Se),Qe>se?ze/Qe>ue&&(le=oe,Ce=Se,ue=ze/Qe):ze/te>ue&&(le={val:oe.val,nopad:1},Ce={val:Se.val,nopad:1},ue=ze/te));function Xe(et,yt){return Math.max(et,pe(yt))}if(Le===ke){var ct=Le-1,pt=Le+1;if(re)if(Le===0)Be=[0,1];else{var Ye=(Le>0?xe:Oe).reduce(Xe,0),je=Le/(1-Math.min(.5,Ye/te));Be=Le>0?[0,je]:[je,0]}else ye?Be=[Math.max(0,ct),Math.max(1,pt)]:Be=[ct,pt]}else re?(le.val>=0&&(le={val:0,nopad:1}),Ce.val<=0&&(Ce={val:0,nopad:1})):ye&&(le.val-ue*ne(le)<0&&(le={val:0,nopad:1}),Ce.val<=0&&(Ce={val:1,nopad:1})),ue=(Ce.val-le.val-M(ee,oe.val,Se.val))/(te-ne(le)-pe(Ce)),Be=[le.val-ue*ne(le),Ce.val+ue*pe(Ce)];return Be=q(Be,ee),ee.limitRange&&ee.limitRange(),Ze&&Be.reverse(),y.simpleMap(Be,ee.l2r||Number)}function M(fe,ee,be){var Te=0;if(fe.rangebreaks)for(var Be=fe.locateBreaks(ee,be),ge=0;ge0?be.ppadplus:be.ppadminus)||be.ppad||0),oe=se((fe._m>0?be.ppadminus:be.ppadplus)||be.ppad||0),Se=se(be.vpadplus||be.vpad),le=se(be.vpadminus||be.vpad);if(!Oe){if(ye=1/0,te=-1/0,G)for(Le=0;Le0&&(ye=ke),ke>te&&ke-b&&(ye=ke),ke>te&&ke=ze;Le--)Qe(Le);return{min:Te,max:Be,opts:be}}function Q(fe,ee,be,Te){E(fe,ee,be,Te,Y)}function B(fe,ee,be,Te){E(fe,ee,be,Te,ie)}function E(fe,ee,be,Te,Be){for(var ge=Te.tozero,ne=Te.extrapad,pe=!0,G=0;G=be&&(Oe.extrapad||!ne)){pe=!1;break}else Be(ee,Oe.val)&&Oe.pad<=be&&(ne||!Oe.extrapad)&&(fe.splice(G,1),G--)}if(pe){var xe=ge&&ee===0;fe.push({val:ee,pad:xe?0:be,extrapad:xe?!1:ne})}}function W(fe){return v(fe)&&Math.abs(fe)=ee}function L(fe,ee){var be=ee.autorangeoptions;return be&&be.minallowed!==void 0&&ae(ee,be.minallowed,be.maxallowed)?be.minallowed:be&&be.clipmin!==void 0&&ae(ee,be.clipmin,be.clipmax)?Math.max(fe,ee.d2l(be.clipmin)):fe}function me(fe,ee){var be=ee.autorangeoptions;return be&&be.maxallowed!==void 0&&ae(ee,be.minallowed,be.maxallowed)?be.maxallowed:be&&be.clipmax!==void 0&&ae(ee,be.clipmin,be.clipmax)?Math.min(fe,ee.d2l(be.clipmax)):fe}function ae(fe,ee,be){return ee!==void 0&&be!==void 0?(ee=fe.d2l(ee),be=fe.d2l(be),ee=G&&(ge=G,be=G),ne<=G&&(ne=G,Te=G)}}return be=L(be,ee),Te=me(Te,ee),[be,Te]}},3074:function(f){f.exports=function(u,p,v){var y,b;if(v){var x=p==="reversed"||p==="min reversed"||p==="max reversed";y=v[x?1:0],b=v[x?0:1]}var k=u("autorangeoptions.minallowed",b===null?y:void 0),C=u("autorangeoptions.maxallowed",y===null?b:void 0);k===void 0&&u("autorangeoptions.clipmin"),C===void 0&&u("autorangeoptions.clipmax"),u("autorangeoptions.include")}},9298:function(f,m,u){var p=u(9898),v=u(2770),y=u(4875),b=u(3972),x=u(1828),k=x.strTranslate,C=u(3893),w=u(2998),T=u(7901),R=u(1424),M=u(3838),I=u(6287),V=u(606),N=V.ONEMAXYEAR,F=V.ONEAVGYEAR,z=V.ONEMINYEAR,U=V.ONEMAXQUARTER,Q=V.ONEAVGQUARTER,B=V.ONEMINQUARTER,E=V.ONEMAXMONTH,W=V.ONEAVGMONTH,Y=V.ONEMINMONTH,ie=V.ONEWEEK,L=V.ONEDAY,me=L/2,ae=V.ONEHOUR,q=V.ONEMIN,fe=V.ONESEC,ee=V.MINUS_SIGN,be=V.BADNUM,Te={K:"zeroline"},Be={K:"gridline",L:"path"},ge={K:"minor-gridline",L:"path"},ne={K:"tick",L:"path"},pe={K:"tick",L:"text"},G={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},Oe=u(8783),xe=Oe.MID_SHIFT,Le=Oe.CAP_SHIFT,ke=Oe.LINE_SPACING,$e=Oe.OPPOSITE_SIDE,Ze=3,De=f.exports={};De.setConvert=u(1994);var Ie=u(4322),re=u(1675),ye=re.idSort,te=re.isLinked;De.id2name=re.id2name,De.name2id=re.name2id,De.cleanId=re.cleanId,De.list=re.list,De.listIds=re.listIds,De.getFromId=re.getFromId,De.getFromTrace=re.getFromTrace;var se=u(1739);De.getAutoRange=se.getAutoRange,De.findExtremes=se.findExtremes;var ue=1e-4;function oe(Fe){var Ee=(Fe[1]-Fe[0])*ue;return[Fe[0]-Ee,Fe[1]+Ee]}De.coerceRef=function(Fe,Ee,St,Ct,Lt,Ft){var Ht=Ct.charAt(Ct.length-1),$t=St._fullLayout._subplots[Ht+"axis"],Mt=Ct+"ref",en={};return Lt||(Lt=$t[0]||(typeof Ft=="string"?Ft:Ft[0])),Ft||(Ft=Lt),$t=$t.concat($t.map(function(un){return un+" domain"})),en[Mt]={valType:"enumerated",values:$t.concat(Ft?typeof Ft=="string"?[Ft]:Ft:[]),dflt:Lt},x.coerce(Fe,Ee,en,Mt)},De.getRefType=function(Fe){return Fe===void 0?Fe:Fe==="paper"?"paper":Fe==="pixel"?"pixel":/( domain)$/.test(Fe)?"domain":"range"},De.coercePosition=function(Fe,Ee,St,Ct,Lt,Ft){var Ht,$t,Mt=De.getRefType(Ct);if(Mt!=="range")Ht=x.ensureNumber,$t=St(Lt,Ft);else{var en=De.getFromId(Ee,Ct);Ft=en.fraction2r(Ft),$t=St(Lt,Ft),Ht=en.cleanPos}Fe[Lt]=Ht($t)},De.cleanPosition=function(Fe,Ee,St){var Ct=St==="paper"||St==="pixel"?x.ensureNumber:De.getFromId(Ee,St).cleanPos;return Ct(Fe)},De.redrawComponents=function(Fe,Ee){Ee=Ee||De.listIds(Fe);var St=Fe._fullLayout;function Ct(Lt,Ft,Ht,$t){for(var Mt=b.getComponentMethod(Lt,Ft),en={},un=0;un2e-6||((St-Fe._forceTick0)/Fe._minDtick%1+1.000001)%1>2e-6)&&(Fe._minDtick=0))},De.saveRangeInitial=function(Fe,Ee){for(var St=De.list(Fe,"",!0),Ct=!1,Lt=0;LtJt*.3||en(Ct)||en(Lt))){var rn=St.dtick/2;Fe+=Fe+rnHt){var $t=Number(St.substr(1));Ft.exactYears>Ht&&$t%12===0?Fe=De.tickIncrement(Fe,"M6","reverse")+L*1.5:Ft.exactMonths>Ht?Fe=De.tickIncrement(Fe,"M1","reverse")+L*15.5:Fe-=me;var Mt=De.tickIncrement(Fe,St);if(Mt<=Ct)return Mt}return Fe}De.prepMinorTicks=function(Fe,Ee,St){if(!Ee.minor.dtick){delete Fe.dtick;var Ct=Ee.dtick&&v(Ee._tmin),Lt;if(Ct){var Ft=De.tickIncrement(Ee._tmin,Ee.dtick,!0);Lt=[Ee._tmin,Ft*.99+Ee._tmin*.01]}else{var Ht=x.simpleMap(Ee.range,Ee.r2l);Lt=[Ht[0],.8*Ht[0]+.2*Ht[1]]}if(Fe.range=x.simpleMap(Lt,Ee.l2r),Fe._isMinor=!0,De.prepTicks(Fe,St),Ct){var $t=v(Ee.dtick),Mt=v(Fe.dtick),en=$t?Ee.dtick:+Ee.dtick.substring(1),un=Mt?Fe.dtick:+Fe.dtick.substring(1);$t&&Mt?Xe(en,un)?en===2*ie&&un===2*L&&(Fe.dtick=ie):en===2*ie&&un===3*L?Fe.dtick=ie:en===ie&&!(Ee._input.minor||{}).nticks?Fe.dtick=L:ct(en/un,2.5)?Fe.dtick=en/2:Fe.dtick=en:String(Ee.dtick).charAt(0)==="M"?Mt?Fe.dtick="M1":Xe(en,un)?en>=12&&un===2&&(Fe.dtick="M3"):Fe.dtick=Ee.dtick:String(Fe.dtick).charAt(0)==="L"?String(Ee.dtick).charAt(0)==="L"?Xe(en,un)||(Fe.dtick=ct(en/un,2.5)?Ee.dtick/2:Ee.dtick):Fe.dtick="D1":Fe.dtick==="D2"&&+Ee.dtick>1&&(Fe.dtick=1)}Fe.range=Ee.range}Ee.minor._tick0Init===void 0&&(Fe.tick0=Ee.tick0)};function Xe(Fe,Ee){return Math.abs((Fe/Ee+.5)%1-.5)<.001}function ct(Fe,Ee){return Math.abs(Fe/Ee-1)<.001}De.prepTicks=function(Fe,Ee){var St=x.simpleMap(Fe.range,Fe.r2l,void 0,void 0,Ee);if(Fe.tickmode==="auto"||!Fe.dtick){var Ct=Fe.nticks,Lt;Ct||(Fe.type==="category"||Fe.type==="multicategory"?(Lt=Fe.tickfont?x.bigFont(Fe.tickfont.size||12):15,Ct=Fe._length/Lt):(Lt=Fe._id.charAt(0)==="y"?40:80,Ct=x.constrain(Fe._length/Lt,4,9)+1),Fe._name==="radialaxis"&&(Ct*=2)),Fe.minor&&Fe.minor.tickmode!=="array"||Fe.tickmode==="array"&&(Ct*=100),Fe._roughDTick=Math.abs(St[1]-St[0])/Ct,De.autoTicks(Fe,Fe._roughDTick),Fe._minDtick>0&&Fe.dtick0?(Ft=Ct-1,Ht=Ct):(Ft=Ct,Ht=Ct);var $t=Fe[Ft].value,Mt=Fe[Ht].value,en=Math.abs(Mt-$t),un=St||en,Jt=0;un>=z?en>=z&&en<=N?Jt=en:Jt=F:St===Q&&un>=B?en>=B&&en<=U?Jt=en:Jt=Q:un>=Y?en>=Y&&en<=E?Jt=en:Jt=W:St===ie&&un>=ie?Jt=ie:un>=L?Jt=L:St===me&&un>=me?Jt=me:St===ae&&un>=ae&&(Jt=ae);var rn;Jt>=en&&(Jt=en,rn=!0);var Tn=Lt+Jt;if(Ee.rangebreaks&&Jt>0){for(var On=84,pn=0,Jn=0;Jnie&&(Jt=en)}(Jt>0||Ct===0)&&(Fe[Ct].periodX=Lt+Jt/2)}}De.calcTicks=function(Ee,St){for(var Ct=Ee.type,Lt=Ee.calendar,Ft=Ee.ticklabelstep,Ht=Ee.ticklabelmode==="period",$t=x.simpleMap(Ee.range,Ee.r2l,void 0,void 0,St),Mt=$t[1]<$t[0],en=Math.min($t[0],$t[1]),un=Math.max($t[0],$t[1]),Jt=Math.max(1e3,Ee._length||0),rn=[],Tn=[],On=[],pn=[],Jn=Ee.minor&&(Ee.minor.ticks||Ee.minor.showgrid),Fn=1;Fn>=(Jn?0:1);Fn--){var zr=!Fn;Fn?(Ee._dtickInit=Ee.dtick,Ee._tick0Init=Ee.tick0):(Ee.minor._dtickInit=Ee.minor.dtick,Ee.minor._tick0Init=Ee.minor.tick0);var dr=Fn?Ee:x.extendFlat({},Ee,Ee.minor);if(zr?De.prepMinorTicks(dr,Ee,St):De.prepTicks(dr,St),dr.tickmode==="array"){Fn?(On=[],rn=ft(Ee)):(pn=[],Tn=ft(Ee));continue}if(dr.tickmode==="sync"){On=[],rn=yt(Ee);continue}var Hr=oe($t),ar=Hr[0],ur=Hr[1],qr=v(dr.dtick),to=Ct==="log"&&!(qr||dr.dtick.charAt(0)==="L"),ko=De.tickFirst(dr,St);if(Fn){if(Ee._tmin=ko,ko=ur:So<=ur;So=De.tickIncrement(So,qs,Mt,Lt)){if(Fn&&Ko++,dr.rangebreaks&&!Mt){if(So=un)break}if(On.length>Jt||So===Es)break;Es=So;var es={value:So};Fn?(to&&So!==(So|0)&&(es.simpleLabel=!0),Ft>1&&Ko%Ft&&(es.skipLabel=!0),On.push(es)):(es.minor=!0,pn.push(es))}}if(Jn){var Xs=Ee.minor.ticks==="inside"&&Ee.ticks==="outside"||Ee.minor.ticks==="outside"&&Ee.ticks==="inside";if(!Xs){for(var Wa=On.map(function(Po){return Po.value}),vc=[],ii=0;ii-1;ra--){if(On[ra].drop){On.splice(ra,1);continue}On[ra].value=sr(On[ra].value,Ee);var oa=Ee.c2p(On[ra].value);(nu?yc>oa-Dr:ycun||buun&&(sa.periodX=un),buCt&&JtF)Ee/=F,Ct=Lt(10),Fe.dtick="M"+12*En(Ee,Ct,tt);else if(Ft>W)Ee/=W,Fe.dtick="M"+En(Ee,1,wt);else if(Ft>L){if(Fe.dtick=En(Ee,L,Fe._hasDayOfWeekBreaks?[1,2,7,14]:Gt),!St){var Ht=De.getTickFormat(Fe),$t=Fe.ticklabelmode==="period";$t&&(Fe._rawTick0=Fe.tick0),/%[uVW]/.test(Ht)?Fe.tick0=x.dateTick0(Fe.calendar,2):Fe.tick0=x.dateTick0(Fe.calendar,1),$t&&(Fe._dowTick0=Fe.tick0)}}else Ft>ae?Fe.dtick=En(Ee,ae,wt):Ft>q?Fe.dtick=En(Ee,q,Xt):Ft>fe?Fe.dtick=En(Ee,fe,Xt):(Ct=Lt(10),Fe.dtick=En(Ee,Ct,tt))}else if(Fe.type==="log"){Fe.tick0=0;var Mt=x.simpleMap(Fe.range,Fe.r2l);if(Fe._isMinor&&(Ee*=1.5),Ee>.7)Fe.dtick=Math.ceil(Ee);else if(Math.abs(Mt[1]-Mt[0])<1){var en=1.5*Math.abs((Mt[1]-Mt[0])/Ee);Ee=Math.abs(Math.pow(10,Mt[1])-Math.pow(10,Mt[0]))/en,Ct=Lt(10),Fe.dtick="L"+En(Ee,Ct,tt)}else Fe.dtick=Ee>.3?"D2":"D1"}else Fe.type==="category"||Fe.type==="multicategory"?(Fe.tick0=0,Fe.dtick=Math.ceil(Math.max(Ee,1))):xr(Fe)?(Fe.tick0=0,Ct=1,Fe.dtick=En(Ee,Ct,vn)):(Fe.tick0=0,Ct=Lt(10),Fe.dtick=En(Ee,Ct,tt));if(Fe.dtick===0&&(Fe.dtick=1),!v(Fe.dtick)&&typeof Fe.dtick!="string"){var un=Fe.dtick;throw Fe.dtick=1,"ax.dtick error: "+String(un)}};function ln(Fe){var Ee=Fe.dtick;if(Fe._tickexponent=0,!v(Ee)&&typeof Ee!="string"&&(Ee=1),(Fe.type==="category"||Fe.type==="multicategory")&&(Fe._tickround=null),Fe.type==="date"){var St=Fe.r2l(Fe.tick0),Ct=Fe.l2r(St).replace(/(^-|i)/g,""),Lt=Ct.length;if(String(Ee).charAt(0)==="M")Lt>10||Ct.substr(5)!=="01-01"?Fe._tickround="d":Fe._tickround=+Ee.substr(1)%12===0?"y":"m";else if(Ee>=L&&Lt<=10||Ee>=L*15)Fe._tickround="d";else if(Ee>=q&&Lt<=16||Ee>=ae)Fe._tickround="M";else if(Ee>=fe&&Lt<=19||Ee>=q)Fe._tickround="S";else{var Ft=Fe.l2r(St+Ee).replace(/^-/,"").length;Fe._tickround=Math.max(Lt,Ft)-20,Fe._tickround<0&&(Fe._tickround=4)}}else if(v(Ee)||Ee.charAt(0)==="L"){var Ht=Fe.range.map(Fe.r2d||Number);v(Ee)||(Ee=Number(Ee.substr(1))),Fe._tickround=2-Math.floor(Math.log(Ee)/Math.LN10+.01);var $t=Math.max(Math.abs(Ht[0]),Math.abs(Ht[1])),Mt=Math.floor(Math.log($t)/Math.LN10+.01),en=Fe.minexponent===void 0?3:Fe.minexponent;Math.abs(Mt)>en&&(gt(Fe.exponentformat)&&!Dt(Mt)?Fe._tickexponent=3*Math.round((Mt-1)/3):Fe._tickexponent=Mt)}else Fe._tickround=null}De.tickIncrement=function(Fe,Ee,St,Ct){var Lt=St?-1:1;if(v(Ee))return x.increment(Fe,Lt*Ee);var Ft=Ee.charAt(0),Ht=Lt*Number(Ee.substr(1));if(Ft==="M")return x.incrementMonth(Fe,Ht,Ct);if(Ft==="L")return Math.log(Math.pow(10,Fe)+Ht)/Math.LN10;if(Ft==="D"){var $t=Ee==="D2"?Bt:Nt,Mt=Fe+Lt*.01,en=x.roundUp(x.mod(Mt,1),$t,St);return Math.floor(Mt)+Math.log(p.round(Math.pow(10,en),1))/Math.LN10}throw"unrecognized dtick "+String(Ee)},De.tickFirst=function(Fe,Ee){var St=Fe.r2l||Number,Ct=x.simpleMap(Fe.range,St,void 0,void 0,Ee),Lt=Ct[1]=0&&Fn<=Fe._length?Jn:null};Lt.xbnd=[pn(Lt.x-.5),pn(Lt.x+Fe.dtick-.5)]}return Lt},De.hoverLabelText=function(Fe,Ee,St){St&&(Fe=x.extendFlat({},Fe,{hoverformat:St}));var Ct=Array.isArray(Ee)?Ee[0]:Ee,Lt=Array.isArray(Ee)?Ee[1]:void 0;if(Lt!==void 0&&Lt!==Ct)return De.hoverLabelText(Fe,Ct,St)+" - "+De.hoverLabelText(Fe,Lt,St);var Ft=Fe.type==="log"&&Ct<=0,Ht=De.tickText(Fe,Fe.c2l(Ft?-Ct:Ct),"hover").text;return Ft?Ct===0?"0":ee+Ht:Ht};function Yn(Fe,Ee,St){var Ct=Fe.tickfont||{};return{x:Ee,dx:0,dy:0,text:St||"",fontSize:Ct.size,font:Ct.family,fontColor:Ct.color}}function an(Fe,Ee,St,Ct){var Lt=Fe._tickround,Ft=St&&Fe.hoverformat||De.getTickFormat(Fe);Ct&&(v(Lt)?Lt=4:Lt={y:"m",m:"d",d:"M",M:"S",S:4}[Lt]);var Ht=x.formatDate(Ee.x,Ft,Lt,Fe._dateFormat,Fe.calendar,Fe._extraFormat),$t,Mt=Ht.indexOf(` +`);if(Mt!==-1&&($t=Ht.substr(Mt+1),Ht=Ht.substr(0,Mt)),Ct&&(Ht==="00:00:00"||Ht==="00:00"?(Ht=$t,$t=""):Ht.length===8&&(Ht=Ht.replace(/:00$/,""))),$t)if(St)Lt==="d"?Ht+=", "+$t:Ht=$t+(Ht?", "+Ht:"");else if(!Fe._inCalcTicks||Fe._prevDateHead!==$t)Fe._prevDateHead=$t,Ht+="
"+$t;else{var en=Sr(Fe),un=Fe._trueSide||Fe.side;(!en&&un==="top"||en&&un==="bottom")&&(Ht+="
")}Ee.text=Ht}function wn(Fe,Ee,St,Ct,Lt){var Ft=Fe.dtick,Ht=Ee.x,$t=Fe.tickformat,Mt=typeof Ft=="string"&&Ft.charAt(0);if(Lt==="never"&&(Lt=""),Ct&&Mt!=="L"&&(Ft="L3",Mt="L"),$t||Mt==="L")Ee.text=He(Math.pow(10,Ht),Fe,Lt,Ct);else if(v(Ft)||Mt==="D"&&x.mod(Ht+.01,1)<.1){var en=Math.round(Ht),un=Math.abs(en),Jt=Fe.exponentformat;Jt==="power"||gt(Jt)&&Dt(en)?(en===0?Ee.text=1:en===1?Ee.text="10":Ee.text="10"+(en>1?"":ee)+un+"",Ee.fontSize*=1.25):(Jt==="e"||Jt==="E")&&un>2?Ee.text="1"+Jt+(en>0?"+":ee)+un:(Ee.text=He(Math.pow(10,Ht),Fe,"","fakehover"),Ft==="D1"&&Fe._id.charAt(0)==="y"&&(Ee.dy-=Ee.fontSize/6))}else if(Mt==="D")Ee.text=String(Math.round(Math.pow(10,x.mod(Ht,1)))),Ee.fontSize*=.75;else throw"unrecognized dtick "+String(Ft);if(Fe.dtick==="D1"){var rn=String(Ee.text).charAt(0);(rn==="0"||rn==="1")&&(Fe._id.charAt(0)==="y"?Ee.dx-=Ee.fontSize/4:(Ee.dy+=Ee.fontSize/2,Ee.dx+=(Fe.range[1]>Fe.range[0]?1:-1)*Ee.fontSize*(Ht<0?.5:.25)))}}function Xn(Fe,Ee){var St=Fe._categories[Math.round(Ee.x)];St===void 0&&(St=""),Ee.text=String(St)}function Un(Fe,Ee,St){var Ct=Math.round(Ee.x),Lt=Fe._categories[Ct]||[],Ft=Lt[1]===void 0?"":String(Lt[1]),Ht=Lt[0]===void 0?"":String(Lt[0]);St?Ee.text=Ht+" - "+Ft:(Ee.text=Ft,Ee.text2=Ht)}function Sn(Fe,Ee,St,Ct,Lt){Lt==="never"?Lt="":Fe.showexponent==="all"&&Math.abs(Ee.x/Fe.dtick)<1e-6&&(Lt="hide"),Ee.text=He(Ee.x,Fe,Lt,Ct)}function it(Fe,Ee,St,Ct,Lt){if(Fe.thetaunit==="radians"&&!St){var Ft=Ee.x/180;if(Ft===0)Ee.text="0";else{var Ht=ut(Ft);if(Ht[1]>=100)Ee.text=He(x.deg2rad(Ee.x),Fe,Lt,Ct);else{var $t=Ee.x<0;Ht[1]===1?Ht[0]===1?Ee.text="π":Ee.text=Ht[0]+"π":Ee.text=["",Ht[0],"","⁄","",Ht[1],"","π"].join(""),$t&&(Ee.text=ee+Ee.text)}}}else Ee.text=He(Ee.x,Fe,Lt,Ct)}function ut(Fe){function Ee($t,Mt){return Math.abs($t-Mt)<=1e-6}function St($t,Mt){return Ee(Mt,0)?$t:St(Mt,$t%Mt)}function Ct($t){for(var Mt=1;!Ee(Math.round($t*Mt)/Mt,$t);)Mt*=10;return Mt}var Lt=Ct(Fe),Ft=Fe*Lt,Ht=Math.abs(St(Ft,Lt));return[Math.round(Ft/Ht),Math.round(Lt/Ht)]}var xt=["f","p","n","μ","m","","k","M","G","T"];function gt(Fe){return Fe==="SI"||Fe==="B"}function Dt(Fe){return Fe>14||Fe<-15}function He(Fe,Ee,St,Ct){var Lt=Fe<0,Ft=Ee._tickround,Ht=St||Ee.exponentformat||"B",$t=Ee._tickexponent,Mt=De.getTickFormat(Ee),en=Ee.separatethousands;if(Ct){var un={exponentformat:Ht,minexponent:Ee.minexponent,dtick:Ee.showexponent==="none"?Ee.dtick:v(Fe)&&Math.abs(Fe)||1,range:Ee.showexponent==="none"?Ee.range.map(Ee.r2d):[0,Fe||1]};ln(un),Ft=(Number(un._tickround)||0)+4,$t=un._tickexponent,Ee.hoverformat&&(Mt=Ee.hoverformat)}if(Mt)return Ee._numFormat(Mt)(Fe).replace(/-/g,ee);var Jt=Math.pow(10,-Ft)/2;if(Ht==="none"&&($t=0),Fe=Math.abs(Fe),Fe"+On+"":Ht==="B"&&$t===9?Fe+="B":gt(Ht)&&(Fe+=xt[$t/3+5])}return Lt?ee+Fe:Fe}De.getTickFormat=function(Fe){var Ee;function St(Mt){return typeof Mt!="string"?Mt:Number(Mt.replace("M",""))*W}function Ct(Mt,en){var un=["L","D"];if(typeof Mt==typeof en){if(typeof Mt=="number")return Mt-en;var Jt=un.indexOf(Mt.charAt(0)),rn=un.indexOf(en.charAt(0));return Jt===rn?Number(Mt.replace(/(L|D)/g,""))-Number(en.replace(/(L|D)/g,"")):Jt-rn}else return typeof Mt=="number"?1:-1}function Lt(Mt,en,un){var Jt=un||function(On){return On},rn=en[0],Tn=en[1];return(!rn&&typeof rn!="number"||Jt(rn)<=Jt(Mt))&&(!Tn&&typeof Tn!="number"||Jt(Tn)>=Jt(Mt))}function Ft(Mt,en){var un=en[0]===null,Jt=en[1]===null,rn=Ct(Mt,en[0])>=0,Tn=Ct(Mt,en[1])<=0;return(un||rn)&&(Jt||Tn)}var Ht,$t;if(Fe.tickformatstops&&Fe.tickformatstops.length>0)switch(Fe.type){case"date":case"linear":{for(Ee=0;Ee=0&&Lt.unshift(Lt.splice(un,1).shift())}});var $t={false:{left:0,right:0}};return x.syncOrAsync(Lt.map(function(Mt){return function(){if(Mt){var en=De.getFromId(Fe,Mt);St||(St={}),St.axShifts=$t,St.overlayingShiftedAx=Ht;var un=De.drawOne(Fe,en,St);return en._shiftPusher&&Oo(en,en._fullDepth||0,$t,!0),en._r=en.range.slice(),en._rl=x.simpleMap(en._r,en.r2l),un}}}))},De.drawOne=function(Fe,Ee,St){St=St||{};var Ct=St.axShifts||{},Lt=St.overlayingShiftedAx||[],Ft,Ht,$t;Ee.setScale();var Mt=Fe._fullLayout,en=Ee._id,un=en.charAt(0),Jt=De.counterLetter(en),rn=Mt._plots[Ee._mainSubplot];if(!rn)return;if(Ee._shiftPusher=Ee.autoshift||Lt.indexOf(Ee._id)!==-1||Lt.indexOf(Ee.overlaying)!==-1,Ee._shiftPusher&Ee.anchor==="free"){var Tn=Ee.linewidth/2||0;Ee.ticks==="inside"&&(Tn+=Ee.ticklen),Oo(Ee,Tn,Ct,!0),Oo(Ee,Ee.shift||0,Ct,!1)}(St.skipTitle!==!0||Ee._shift===void 0)&&(Ee._shift=wr(Ee,Ct));var On=rn[un+"axislayer"],pn=Ee._mainLinePosition,Jn=pn+=Ee._shift,Fn=Ee._mainMirrorPosition,zr=Ee._vals=De.calcTicks(Ee),dr=[Ee.mirror,Jn,Fn].join("_");for(Ft=0;Ft0?Zo.bottom-Fa:0,yl))));var Za=0,Vu=0;if(Ee._shiftPusher&&(Za=Math.max(yl,Zo.height>0?xi==="l"?Fa-Zo.left:Zo.right-Fa:0),Ee.title.text!==Mt._dfltTitle[un]&&(Vu=(Ee._titleStandoff||0)+(Ee._titleScoot||0),xi==="l"&&(Vu+=fn(Ee))),Ee._fullDepth=Math.max(Za,Vu)),Ee.automargin){li={x:0,y:0,r:0,l:0,t:0,b:0};var zu=[0,1],_d=typeof Ee._shift=="number"?Ee._shift:0;if(un==="x"){if(xi==="b"?li[xi]=Ee._depth:(li[xi]=Ee._depth=Math.max(Zo.width>0?Fa-Zo.top:0,yl),zu.reverse()),Zo.width>0){var Is=Zo.right-(Ee._offset+Ee._length);Is>0&&(li.xr=1,li.r=Is);var Rd=Ee._offset-Zo.left;Rd>0&&(li.xl=0,li.l=Rd)}}else if(xi==="l"?(Ee._depth=Math.max(Zo.height>0?Fa-Zo.left:0,yl),li[xi]=Ee._depth-_d):(Ee._depth=Math.max(Zo.height>0?Zo.right-Fa:0,yl),li[xi]=Ee._depth+_d,zu.reverse()),Zo.height>0){var Fc=Zo.bottom-(Ee._offset+Ee._length);Fc>0&&(li.yb=0,li.b=Fc);var Cl=Ee._offset-Zo.top;Cl>0&&(li.yt=1,li.t=Cl)}li[Jt]=Ee.anchor==="free"?Ee.position:Ee._anchorAxis.domain[zu[0]],Ee.title.text!==Mt._dfltTitle[un]&&(li[xi]+=fn(Ee)+(Ee.title.standoff||0)),Ee.mirror&&Ee.anchor!=="free"&&(Ka={x:0,y:0,r:0,l:0,t:0,b:0},Ka[za]=Ee.linewidth,Ee.mirror&&Ee.mirror!==!0&&(Ka[za]+=yl),Ee.mirror===!0||Ee.mirror==="ticks"?Ka[Jt]=Ee._anchorAxis.domain[zu[1]]:(Ee.mirror==="all"||Ee.mirror==="allticks")&&(Ka[Jt]=[Ee._counterDomainMin,Ee._counterDomainMax][zu[1]]))}Qa&&(Gf=b.getComponentMethod("rangeslider","autoMarginOpts")(Fe,Ee)),typeof Ee.automargin=="string"&&(at(li,Ee.automargin),at(Ka,Ee.automargin)),y.autoMargin(Fe,Wn(Ee),li),y.autoMargin(Fe,Br(Ee),Ka),y.autoMargin(Fe,kr(Ee),Gf)}),x.syncOrAsync(zi)}};function at(Fe,Ee){if(Fe){var St=Object.keys(G).reduce(function(Ct,Lt){return Ee.indexOf(Lt)!==-1&&G[Lt].forEach(function(Ft){Ct[Ft]=1}),Ct},{});Object.keys(Fe).forEach(function(Ct){St[Ct]||(Ct.length===1?Fe[Ct]=0:delete Fe[Ct])})}}function dt(Fe,Ee){var St=[],Ct,Lt=function(Ft,Ht){var $t=Ft.xbnd[Ht];$t!==null&&St.push(x.extendFlat({},Ft,{x:$t}))};if(Ee.length){for(Ct=0;Ct60?-.5*qs:Fe.side==="top"!==un?-qs:0};else if(qr==="y"){if(ko=!un&&ur==="left"||un&&ur==="right",Hr=ko?1:-1,un&&(Hr*=-1),Fn=rn,zr=Tn*Hr,dr=0,!un&&Math.abs(to)===90&&(to===-90&&ur==="left"||to===90&&ur==="right"?dr=Le:dr=.5),un){var Es=v(to)?+to:0;if(Es!==0){var So=x.deg2rad(Es);ar=Math.abs(Math.sin(So))*Le*Hr,dr=0}}Jn.xFn=function(Ko){return Ko.dx+Ee-(Fn+Ko.fontSize*dr)*Hr+ar*Ko.fontSize},Jn.yFn=function(Ko){return Ko.dy+zr+Ko.fontSize*xe},Jn.anchorFn=function(Ko,ds){return v(ds)&&Math.abs(ds)===90?"middle":ko?"end":"start"},Jn.heightFn=function(Ko,ds,qs){return Fe.side==="right"&&(ds*=-1),ds<-30?-qs:ds<30?-.5*qs:0}}return Jn};function Wt(Fe){return[Fe.text,Fe.x,Fe.axInfo,Fe.font,Fe.fontSize,Fe.fontColor].join("_")}De.drawTicks=function(Fe,Ee,St){St=St||{};var Ct=Ee._id+"tick",Lt=[].concat(Ee.minor&&Ee.minor.ticks?St.vals.filter(function(Ht){return Ht.minor&&!Ht.noTick}):[]).concat(Ee.ticks?St.vals.filter(function(Ht){return!Ht.minor&&!Ht.noTick}):[]),Ft=St.layer.selectAll("path."+Ct).data(Lt,Wt);Ft.exit().remove(),Ft.enter().append("path").classed(Ct,1).classed("ticks",1).classed("crisp",St.crisp!==!1).each(function(Ht){return T.stroke(p.select(this),Ht.minor?Ee.minor.tickcolor:Ee.tickcolor)}).style("stroke-width",function(Ht){return R.crispRound(Fe,Ht.minor?Ee.minor.tickwidth:Ee.tickwidth,1)+"px"}).attr("d",St.path).style("display",null),ao(Ee,[ne]),Ft.attr("transform",St.transFn)},De.drawGrid=function(Fe,Ee,St){if(St=St||{},Ee.tickmode!=="sync"){var Ct=Ee._id+"grid",Lt=Ee.minor&&Ee.minor.showgrid,Ft=Lt?St.vals.filter(function(Fn){return Fn.minor}):[],Ht=Ee.showgrid?St.vals.filter(function(Fn){return!Fn.minor}):[],$t=St.counterAxis;if($t&&De.shouldShowZeroLine(Fe,Ee,$t))for(var Mt=Ee.tickmode==="array",en=0;en=0;On--){var pn=On?rn:Tn;if(pn){var Jn=pn.selectAll("path."+Ct).data(On?Ht:Ft,Wt);Jn.exit().remove(),Jn.enter().append("path").classed(Ct,1).classed("crisp",St.crisp!==!1),Jn.attr("transform",St.transFn).attr("d",St.path).each(function(Fn){return T.stroke(p.select(this),Fn.minor?Ee.minor.gridcolor:Ee.gridcolor||"#ddd")}).style("stroke-dasharray",function(Fn){return R.dashStyle(Fn.minor?Ee.minor.griddash:Ee.griddash,Fn.minor?Ee.minor.gridwidth:Ee.gridwidth)}).style("stroke-width",function(Fn){return(Fn.minor?Jt:Ee._gw)+"px"}).style("display",null),typeof St.path=="function"&&Jn.attr("d",St.path)}}ao(Ee,[Be,ge])}},De.drawZeroLine=function(Fe,Ee,St){St=St||St;var Ct=Ee._id+"zl",Lt=De.shouldShowZeroLine(Fe,Ee,St.counterAxis),Ft=St.layer.selectAll("path."+Ct).data(Lt?[{x:0,id:Ee._id}]:[]);Ft.exit().remove(),Ft.enter().append("path").classed(Ct,1).classed("zl",1).classed("crisp",St.crisp!==!1).each(function(){St.layer.selectAll("path").sort(function(Ht,$t){return ye(Ht.id,$t.id)})}),Ft.attr("transform",St.transFn).attr("d",St.path).call(T.stroke,Ee.zerolinecolor||T.defaultLine).style("stroke-width",R.crispRound(Fe,Ee.zerolinewidth,Ee._gw||1)+"px").style("display",null),ao(Ee,[Te])},De.drawLabels=function(Fe,Ee,St){St=St||{};var Ct=Fe._fullLayout,Lt=Ee._id,Ft=Lt.charAt(0),Ht=St.cls||Lt+"tick",$t=St.vals.filter(function(Hr){return Hr.text}),Mt=St.labelFns,en=St.secondary?0:Ee.tickangle,un=(Ee._prevTickAngles||{})[Ht],Jt=St.layer.selectAll("g."+Ht).data(Ee.showticklabels?$t:[],Wt),rn=[];Jt.enter().append("g").classed(Ht,1).append("text").attr("text-anchor","middle").each(function(Hr){var ar=p.select(this),ur=Fe._promises.length;ar.call(C.positionText,Mt.xFn(Hr),Mt.yFn(Hr)).call(R.font,Hr.font,Hr.fontSize,Hr.fontColor).text(Hr.text).call(C.convertToTspans,Fe),Fe._promises[ur]?rn.push(Fe._promises.pop().then(function(){Tn(ar,en)})):Tn(ar,en)}),ao(Ee,[pe]),Jt.exit().remove(),St.repositionOnUpdate&&Jt.each(function(Hr){p.select(this).select("text").call(C.positionText,Mt.xFn(Hr),Mt.yFn(Hr))});function Tn(Hr,ar){Hr.each(function(ur){var qr=p.select(this),to=qr.select(".text-math-group"),ko=Mt.anchorFn(ur,ar),Es=St.transFn.call(qr.node(),ur)+(v(ar)&&+ar!=0?" rotate("+ar+","+Mt.xFn(ur)+","+(Mt.yFn(ur)-ur.fontSize/2)+")":""),So=C.lineCount(qr),Ko=ke*ur.fontSize,ds=Mt.heightFn(ur,v(ar)?+ar:0,(So-1)*Ko);if(ds&&(Es+=k(0,ds)),to.empty()){var qs=qr.select("text");qs.attr({transform:Es,"text-anchor":ko}),qs.style("opacity",1),Ee._adjustTickLabelsOverflow&&Ee._adjustTickLabelsOverflow()}else{var es=R.bBox(to.node()).width,Xs=es*{end:-.5,start:.5}[ko];to.attr("transform",Es+k(Xs,0))}})}Ee._adjustTickLabelsOverflow=function(){var Hr=Ee.ticklabeloverflow;if(!(!Hr||Hr==="allow")){var ar=Hr.indexOf("hide")!==-1,ur=Ee._id.charAt(0)==="x",qr=0,to=ur?Fe._fullLayout.width:Fe._fullLayout.height;if(Hr.indexOf("domain")!==-1){var ko=x.simpleMap(Ee.range,Ee.r2l);qr=Ee.l2p(ko[0])+Ee._offset,to=Ee.l2p(ko[1])+Ee._offset}var Es=Math.min(qr,to),So=Math.max(qr,to),Ko=Ee.side,ds=1/0,qs=-1/0;Jt.each(function(vc){var ii=p.select(this),tu=ii.select(".text-math-group");if(tu.empty()){var Na=R.bBox(ii.node()),Js=0;ur?(Na.right>So||Na.leftSo||Na.top+(Ee.tickangle?0:vc.fontSize/4)Ee["_visibleLabelMin_"+ko._id]?vc.style("display","none"):So.K==="tick"&&!Es&&vc.style("display",null)})})})})},Tn(Jt,un+1?un:en);function On(){return rn.length&&Promise.all(rn)}var pn=null;function Jn(){if(Tn(Jt,en),$t.length&&Ft==="x"&&!v(en)&&(Ee.type!=="log"||String(Ee.dtick).charAt(0)!=="D")){pn=0;var Hr=0,ar=[],ur;if(Jt.each(function(Na){Hr=Math.max(Hr,Na.fontSize);var Js=Ee.l2p(Na.x),ya=vr(this),ra=R.bBox(ya.node());ar.push({top:0,bottom:10,height:10,left:Js-ra.width/2,right:Js+ra.width/2+2,width:ra.width+2})}),(Ee.tickson==="boundaries"||Ee.showdividers)&&!St.secondary){var qr=2;for(Ee.ticks&&(qr+=Ee.tickwidth/2),ur=0;ur1&&St1)for(Lt=1;Lt=Lt.min&&FeB*2}function M(N){return Math.max(1,(N-1)/1e3)}function I(N,F){for(var z=N.length,U=M(z),Q=0,B=0,E={},W=0;WQ*2}function V(N){return b(N[0])&&b(N[1])}},1453:function(f,m,u){var p=u(2770),v=u(3972),y=u(1828),b=u(4467),x=u(5501),k=u(3838),C=u(6218),w=u(8701),T=u(6115),R=u(9426),M=u(5258),I=u(2128),V=u(3608),N=u(1994),F=u(5555).WEEKDAY_PATTERN,z=u(5555).HOUR_PATTERN;f.exports=function(W,Y,ie,L,me){var ae=L.letter,q=L.font||{},fe=L.splomStash||{},ee=ie("visible",!L.visibleDflt),be=Y._template||{},Te=Y.type||be.type||"-",Be;if(Te==="date"){var ge=v.getComponentMethod("calendars","handleDefaults");ge(W,Y,"calendar",L.calendar),L.noTicklabelmode||(Be=ie("ticklabelmode"))}var ne="";(!L.noTicklabelposition||Te==="multicategory")&&(ne=y.coerce(W,Y,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:Be==="period"?["outside","inside"]:ae==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),L.noTicklabeloverflow||ie("ticklabeloverflow",ne.indexOf("inside")!==-1?"hide past domain":Te==="category"||Te==="multicategory"?"allow":"hide past div"),N(Y,me),V(W,Y,ie,L),M(W,Y,ie,L),Te!=="category"&&!L.noHover&&ie("hoverformat");var pe=ie("color"),G=pe!==k.color.dflt?pe:q.color,Oe=fe.label||me._dfltTitle[ae];if(R(W,Y,ie,Te,L),!ee)return Y;ie("title.text",Oe),y.coerceFont(ie,"title.font",{family:q.family,size:y.bigFont(q.size),color:G}),C(W,Y,ie,Te);var xe=L.hasMinor;if(xe&&(b.newContainer(Y,"minor"),C(W,Y,ie,Te,{isMinor:!0})),T(W,Y,ie,Te,L),w(W,Y,ie,L),xe){var Le=L.isMinor;L.isMinor=!0,w(W,Y,ie,L),L.isMinor=Le}I(W,Y,ie,{dfltColor:pe,bgColor:L.bgColor,showGrid:L.showGrid,hasMinor:xe,attributes:k}),xe&&!Y.minor.ticks&&!Y.minor.showgrid&&delete Y.minor,(Y.showline||Y.ticks)&&ie("mirror");var ke=Te==="multicategory";if(!L.noTickson&&(Te==="category"||ke)&&(Y.ticks||Y.showgrid)){var $e;ke&&($e="boundaries");var Ze=ie("tickson",$e);Ze==="boundaries"&&delete Y.ticklabelposition}if(ke){var De=ie("showdividers");De&&(ie("dividercolor"),ie("dividerwidth"))}if(Te==="date")if(x(W,Y,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:U}),!Y.rangebreaks.length)delete Y.rangebreaks;else{for(var Ie=0;Ie=2){var ae="",q,fe;if(me.length===2){for(q=0;q<2;q++)if(fe=B(me[q]),fe){ae=F;break}}var ee=ie("pattern",ae);if(ee===F)for(q=0;q<2;q++)fe=B(me[q]),fe&&(W.bounds[q]=me[q]=fe-1);if(ee)for(q=0;q<2;q++)switch(fe=me[q],ee){case F:if(!p(fe)){W.enabled=!1;return}if(fe=+fe,fe!==Math.floor(fe)||fe<0||fe>=7){W.enabled=!1;return}W.bounds[q]=me[q]=fe;break;case z:if(!p(fe)){W.enabled=!1;return}if(fe=+fe,fe<0||fe>24){W.enabled=!1;return}W.bounds[q]=me[q]=fe;break}if(Y.autorange===!1){var be=Y.range;if(be[0]be[1]){W.enabled=!1;return}}else if(me[0]>be[0]&&me[1]C?1:-1:+(b.substr(1)||1)-+(x.substr(1)||1)},m.ref2id=function(b){return/^[xyz]/.test(b)?b.split(" ")[0]:!1};function y(b,x){if(x&&x.length){for(var k=0;k0,C;k&&(C="array");var w=y("categoryorder",C),T;w==="array"&&(T=y("categoryarray")),!k&&w==="array"&&(w=v.categoryorder="trace"),w==="trace"?v._initialCategories=[]:w==="array"?v._initialCategories=T.slice():(T=m(v,b).sort(),w==="category ascending"?v._initialCategories=T:w==="category descending"&&(v._initialCategories=T.reverse()))}}},6287:function(f,m,u){var p=u(2770),v=u(1828),y=u(606),b=y.ONEDAY,x=y.ONEWEEK;m.dtick=function(k,C){var w=C==="log",T=C==="date",R=C==="category",M=T?b:1;if(!k)return M;if(p(k))return k=Number(k),k<=0?M:R?Math.max(1,Math.round(k)):T?Math.max(.1,k):k;if(typeof k!="string"||!(T||w))return M;var I=k.charAt(0),V=k.substr(1);return V=p(V)?Number(V):0,V<=0||!(T&&I==="M"&&V===Math.round(V)||w&&I==="L"||w&&I==="D"&&(V===1||V===2))?M:k},m.tick0=function(k,C,w,T){if(C==="date")return v.cleanDate(k,v.dateTick0(w,T%x===0?1:0));if(!(T==="D1"||T==="D2"))return p(k)?Number(k):0}},5555:function(f,m,u){var p=u(587).counter;f.exports={idRegex:{x:p("x","( domain)?"),y:p("y","( domain)?")},attrRegex:p("[xy]axis"),xAxisMatch:p("xaxis"),yAxisMatch:p("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},9082:function(f,m,u){var p=u(1828),v=u(1739),y=u(1675).id2name,b=u(3838),x=u(2449),k=u(1994),C=u(606).ALMOST_EQUAL,w=u(8783).FROM_BL;m.handleDefaults=function(z,U,Q){var B=Q.axIds,E=Q.axHasImage,W=U._axisConstraintGroups=[],Y=U._axisMatchGroups=[],ie,L,me,ae,q,fe,ee,be;for(ie=0;ieW?Q.substr(W):B.substr(E))+Y}function N(z,U){for(var Q=U._size,B=Q.h/Q.w,E={},W=Object.keys(z),Y=0;YC*be&&!ne)){for(W=0;WIe&&le<$e&&($e=le);for(Ce=0;CeZe&&(Ze=le);var Qe=(Ze-$e)/(2*De);q/=Qe,$e=L.l2r($e),Ze=L.l2r(Ze),L.range=L._input.range=xe=0){en._fullLayout._deactivateShape(en);return}var un=en._fullLayout.clickmode;if(Ie(en),$t===2&&!yt&&Ee(),et)un.indexOf("select")>-1&&me(Mt,en,Gt,Nt,Ce.id,Pt),un.indexOf("event")>-1&&M.click(en,Mt,Ce.id);else if($t===1&&yt){var Jt=pt?tt:ft,rn=pt==="s"||Ye==="w"?0:1,Tn=Jt._name+".range["+rn+"]",On=pe(Jt,rn),pn="left",Jn="middle";if(Jt.fixedrange)return;pt?(Jn=pt==="n"?"top":"bottom",Jt.side==="right"&&(pn="right")):Ye==="e"&&(pn="right"),en._context.showAxisRangeEntryBoxes&&p.select(Tt).call(w.makeEditable,{gd:en,immediate:!0,background:en._fullLayout.paper_bgcolor,text:String(On),fill:Jt.tickfont?Jt.tickfont.color:"#444",horizontalAlign:pn,verticalAlign:Jn}).on("edit",function(Fn){var zr=Jt.d2r(Fn);zr!==void 0&&k.call("_guiRelayout",en,Tn,zr)})}}N.init(Pt);var Wt,Rt,fn,Hn,nr,Er,zt,vr,Wn,Br;function kr($t,Mt,en){var un=Tt.getBoundingClientRect();Wt=Mt-un.left,Rt=en-un.top,le._fullLayout._calcInverseTransform(le);var Jt=v.apply3DTransform(le._fullLayout._invTransform)(Wt,Rt);Wt=Jt[0],Rt=Jt[1],fn={l:Wt,r:Wt,w:0,t:Rt,b:Rt,h:0},Hn=le._hmpixcount?le._hmlumcount/le._hmpixcount:b(le._fullLayout.plot_bgcolor).getLuminance(),nr="M0,0H"+En+"V"+ln+"H0V0",Er=!1,zt="xy",Br=!1,vr=ke(je,Hn,Bt,vn,nr),Wn=$e(je,Bt,vn)}function or($t,Mt){if(le._transitioningWithDuration)return!1;var en=Math.max(0,Math.min(En,He*$t+Wt)),un=Math.max(0,Math.min(ln,at*Mt+Rt)),Jt=Math.abs(en-Wt),rn=Math.abs(un-Rt);fn.l=Math.min(Wt,en),fn.r=Math.max(Wt,en),fn.t=Math.min(Rt,un),fn.b=Math.max(Rt,un);function Tn(){zt="",fn.r=fn.l,fn.t=fn.b,Wn.attr("d","M0,0Z")}if(Yn.isSubplotConstrained)Jt>ee||rn>ee?(zt="xy",Jt/En>rn/ln?(rn=Jt*ln/En,Rt>un?fn.t=Rt-rn:fn.b=Rt+rn):(Jt=rn*En/ln,Wt>en?fn.l=Wt-Jt:fn.r=Wt+Jt),Wn.attr("d",se(fn))):Tn();else if(an.isSubplotConstrained)if(Jt>ee||rn>ee){zt="xy";var On=Math.min(fn.l/En,(ln-fn.b)/ln),pn=Math.max(fn.r/En,(ln-fn.t)/ln);fn.l=On*En,fn.r=pn*En,fn.b=(1-On)*ln,fn.t=(1-pn)*ln,Wn.attr("d",se(fn))}else Tn();else!Xn||rn0){var Fn;if(an.isSubplotConstrained||!wn&&Xn.length===1){for(Fn=0;Fn1&&(Tn.maxallowed!==void 0&&Sn===(Tn.range[0]1&&(On.maxallowed!==void 0&&it===(On.range[0]=0?Math.min(le,.9):1/(1/Math.max(le,-.3)+3.222))}function Le(le,Ce,Qe){return le?le==="nsew"?Qe?"":Ce==="pan"?"move":"crosshair":le.toLowerCase()+"-resize":"pointer"}function ke(le,Ce,Qe,ze,Xe){return le.append("path").attr("class","zoombox").style({fill:Ce>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",C(Qe,ze)).attr("d",Xe+"Z")}function $e(le,Ce,Qe){return le.append("path").attr("class","zoombox-corners").style({fill:T.background,stroke:T.defaultLine,"stroke-width":1,opacity:0}).attr("transform",C(Ce,Qe)).attr("d","M0,0Z")}function Ze(le,Ce,Qe,ze,Xe,ct){le.attr("d",ze+"M"+Qe.l+","+Qe.t+"v"+Qe.h+"h"+Qe.w+"v-"+Qe.h+"h-"+Qe.w+"Z"),De(le,Ce,Xe,ct)}function De(le,Ce,Qe,ze){Qe||(le.transition().style("fill",ze>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Ce.transition().style("opacity",1).duration(200))}function Ie(le){p.select(le).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function re(le){be&&le.data&&le._context.showTips&&(v.notifier(v._(le,"Double-click to zoom back out"),"long"),be=!1)}function ye(le,Ce){return"M"+(le.l-.5)+","+(Ce-ee-.5)+"h-3v"+(2*ee+1)+"h3ZM"+(le.r+.5)+","+(Ce-ee-.5)+"h3v"+(2*ee+1)+"h-3Z"}function te(le,Ce){return"M"+(Ce-ee-.5)+","+(le.t-.5)+"v-3h"+(2*ee+1)+"v3ZM"+(Ce-ee-.5)+","+(le.b+.5)+"v3h"+(2*ee+1)+"v-3Z"}function se(le){var Ce=Math.floor(Math.min(le.b-le.t,le.r-le.l,ee)/2);return"M"+(le.l-3.5)+","+(le.t-.5+Ce)+"h3v"+-Ce+"h"+Ce+"v-3h-"+(Ce+3)+"ZM"+(le.r+3.5)+","+(le.t-.5+Ce)+"h-3v"+-Ce+"h"+-Ce+"v-3h"+(Ce+3)+"ZM"+(le.r+3.5)+","+(le.b+.5-Ce)+"h-3v"+Ce+"h"+-Ce+"v3h"+(Ce+3)+"ZM"+(le.l-3.5)+","+(le.b+.5-Ce)+"h3v"+Ce+"h"+Ce+"v3h-"+(Ce+3)+"Z"}function ue(le,Ce,Qe,ze,Xe){for(var ct=!1,pt={},Ye={},je,et,yt,ft,tt=(Xe||{}).xaHash,wt=(Xe||{}).yaHash,Xt=0;Xtie[1]-.000244140625&&(x.domain=N),v.noneOrAll(b.domain,x.domain,N),x.tickmode==="sync"&&(x.tickmode="auto")}return k("layer"),x}},9426:function(f,m,u){var p=u(9652);f.exports=function(y,b,x,k,C){C||(C={});var w=C.tickSuffixDflt,T=p(y),R=x("tickprefix");R&&x("showtickprefix",T);var M=x("ticksuffix",w);M&&x("showticksuffix",T)}},3608:function(f,m,u){var p=u(3074);f.exports=function(y,b,x,k){var C=b._template||{},w=b.type||C.type||"-";x("minallowed"),x("maxallowed");var T=x("range"),R=b.getAutorangeDflt(T,k),M=x("autorange",R),I;T&&(T[0]===null&&T[1]===null||(T[0]===null||T[1]===null)&&(M==="reversed"||M===!0)||T[0]!==null&&(M==="min"||M==="max reversed")||T[1]!==null&&(M==="max"||M==="min reversed"))&&(T=void 0,delete b.range,b.autorange=!0,I=!0),I||(R=b.getAutorangeDflt(T,k),M=x("autorange",R)),M&&(p(x,M,T),(w==="linear"||w==="-")&&x("rangemode")),b.cleanRange()}},2449:function(f,m,u){var p=u(8783).FROM_BL;f.exports=function(y,b,x){x===void 0&&(x=p[y.constraintoward||"center"]);var k=[y.r2l(y.range[0]),y.r2l(y.range[1])],C=k[0]+(k[1]-k[0])*x;y.range=y._input.range=[y.l2r(C+(k[0]-C)*b),y.l2r(C+(k[1]-C)*b)],y.setScale()}},1994:function(f,m,u){var p=u(9898),v=u(4096).g0,y=u(1828),b=y.numberFormat,x=u(2770),k=y.cleanNumber,C=y.ms2DateTime,w=y.dateTime2ms,T=y.ensureNumber,R=y.isArrayOrTypedArray,M=u(606),I=M.FP_SAFE,V=M.BADNUM,N=M.LOG_CLIP,F=M.ONEWEEK,z=M.ONEDAY,U=M.ONEHOUR,Q=M.ONEMIN,B=M.ONESEC,E=u(1675),W=u(5555),Y=W.HOUR_PATTERN,ie=W.WEEKDAY_PATTERN;function L(ae){return Math.pow(10,ae)}function me(ae){return ae!=null}f.exports=function(q,fe){fe=fe||{};var ee=q._id||"x",be=ee.charAt(0);function Te(ye,te){if(ye>0)return Math.log(ye)/Math.LN10;if(ye<=0&&te&&q.range&&q.range.length===2){var se=q.range[0],ue=q.range[1];return .5*(se+ue-2*N*Math.abs(se-ue))}else return V}function Be(ye,te,se,ue){if((ue||{}).msUTC&&x(ye))return+ye;var oe=w(ye,se||q.calendar);if(oe===V)if(x(ye)){ye=+ye;var Se=Math.floor(y.mod(ye+.05,1)*10),le=Math.round(ye-Se/10);oe=w(new Date(le))+Se/10}else return V;return oe}function ge(ye,te,se){return C(ye,te,se||q.calendar)}function ne(ye){return q._categories[Math.round(ye)]}function pe(ye){if(me(ye)){if(q._categoriesMap===void 0&&(q._categoriesMap={}),q._categoriesMap[ye]!==void 0)return q._categoriesMap[ye];q._categories.push(typeof ye=="number"?String(ye):ye);var te=q._categories.length-1;return q._categoriesMap[ye]=te,te}return V}function G(ye,te){for(var se=new Array(te),ue=0;ueq.range[1]&&(se=!se);for(var ue=se?-1:1,oe=ue*ye,Se=0,le=0;leQe)Se=le+1;else{Se=oe<(Ce+Qe)/2?le:le+1;break}}var ze=q._B[Se]||0;return isFinite(ze)?ke(ye,q._m2,ze):0},De=function(ye){var te=q._rangebreaks.length;if(!te)return $e(ye,q._m,q._b);for(var se=0,ue=0;ueq._rangebreaks[ue].pmax&&(se=ue+1);return $e(ye,q._m2,q._B[se])}}q.c2l=q.type==="log"?Te:T,q.l2c=q.type==="log"?L:T,q.l2p=Ze,q.p2l=De,q.c2p=q.type==="log"?function(ye,te){return Ze(Te(ye,te))}:Ze,q.p2c=q.type==="log"?function(ye){return L(De(ye))}:De,["linear","-"].indexOf(q.type)!==-1?(q.d2r=q.r2d=q.d2c=q.r2c=q.d2l=q.r2l=k,q.c2d=q.c2r=q.l2d=q.l2r=T,q.d2p=q.r2p=function(ye){return q.l2p(k(ye))},q.p2d=q.p2r=De,q.cleanPos=T):q.type==="log"?(q.d2r=q.d2l=function(ye,te){return Te(k(ye),te)},q.r2d=q.r2c=function(ye){return L(k(ye))},q.d2c=q.r2l=k,q.c2d=q.l2r=T,q.c2r=Te,q.l2d=L,q.d2p=function(ye,te){return q.l2p(q.d2r(ye,te))},q.p2d=function(ye){return L(De(ye))},q.r2p=function(ye){return q.l2p(k(ye))},q.p2r=De,q.cleanPos=T):q.type==="date"?(q.d2r=q.r2d=y.identity,q.d2c=q.r2c=q.d2l=q.r2l=Be,q.c2d=q.c2r=q.l2d=q.l2r=ge,q.d2p=q.r2p=function(ye,te,se){return q.l2p(Be(ye,0,se))},q.p2d=q.p2r=function(ye,te,se){return ge(De(ye),te,se)},q.cleanPos=function(ye){return y.cleanDate(ye,V,q.calendar)}):q.type==="category"?(q.d2c=q.d2l=pe,q.r2d=q.c2d=q.l2d=ne,q.d2r=q.d2l_noadd=xe,q.r2c=function(ye){var te=Le(ye);return te!==void 0?te:q.fraction2r(.5)},q.l2r=q.c2r=T,q.r2l=Le,q.d2p=function(ye){return q.l2p(q.r2c(ye))},q.p2d=function(ye){return ne(De(ye))},q.r2p=q.d2p,q.p2r=De,q.cleanPos=function(ye){return typeof ye=="string"&&ye!==""?ye:T(ye)}):q.type==="multicategory"&&(q.r2d=q.c2d=q.l2d=ne,q.d2r=q.d2l_noadd=xe,q.r2c=function(ye){var te=xe(ye);return te!==void 0?te:q.fraction2r(.5)},q.r2c_just_indices=Oe,q.l2r=q.c2r=T,q.r2l=xe,q.d2p=function(ye){return q.l2p(q.r2c(ye))},q.p2d=function(ye){return ne(De(ye))},q.r2p=q.d2p,q.p2r=De,q.cleanPos=function(ye){return Array.isArray(ye)||typeof ye=="string"&&ye!==""?ye:T(ye)},q.setupMultiCategory=function(ye){var te=q._traceIndices,se,ue,oe=q._matchGroup;if(oe&&q._categories.length===0){for(var Se in oe)if(Se!==ee){var le=fe[E.id2name(Se)];te=te.concat(le._traceIndices)}}var Ce=[[0,{}],[0,{}]],Qe=[];for(se=0;sele[1]&&(ue[Se?0:1]=se)}},q.cleanRange=function(ye,te){q._cleanRange(ye,te),q.limitRange(ye)},q._cleanRange=function(ye,te){te||(te={}),ye||(ye="range");var se=y.nestedProperty(q,ye).get(),ue,oe;if(q.type==="date"?oe=y.dfltRange(q.calendar):be==="y"?oe=W.DFLTRANGEY:q._name==="realaxis"?oe=[0,1]:oe=te.dfltRange||W.DFLTRANGEX,oe=oe.slice(),(q.rangemode==="tozero"||q.rangemode==="nonnegative")&&(oe[0]=0),!se||se.length!==2){y.nestedProperty(q,ye).set(oe);return}var Se=se[0]===null,le=se[1]===null;for(q.type==="date"&&!q.autorange&&(se[0]=y.cleanDate(se[0],V,q.calendar),se[1]=y.cleanDate(se[1],V,q.calendar)),ue=0;ue<2;ue++)if(q.type==="date"){if(!y.isDateTime(se[ue],q.calendar)){q[ye]=oe;break}if(q.r2l(se[0])===q.r2l(se[1])){var Ce=y.constrain(q.r2l(se[0]),y.MIN_MS+1e3,y.MAX_MS-1e3);se[0]=q.l2r(Ce-1e3),se[1]=q.l2r(Ce+1e3);break}}else{if(!x(se[ue]))if(!(Se||le)&&x(se[1-ue]))se[ue]=se[1-ue]*(ue?10:.1);else{q[ye]=oe;break}if(se[ue]<-I?se[ue]=-I:se[ue]>I&&(se[ue]=I),se[0]===se[1]){var Qe=Math.max(1,Math.abs(se[0]*1e-6));se[0]-=Qe,se[1]+=Qe}}},q.setScale=function(ye){var te=fe._size;if(q.overlaying){var se=E.getFromId({_fullLayout:fe},q.overlaying);q.domain=se.domain}var ue=ye&&q._r?"_r":"range",oe=q.calendar;q.cleanRange(ue);var Se=q.r2l(q[ue][0],oe),le=q.r2l(q[ue][1],oe),Ce=be==="y";if(Ce?(q._offset=te.t+(1-q.domain[1])*te.h,q._length=te.h*(q.domain[1]-q.domain[0]),q._m=q._length/(Se-le),q._b=-q._m*le):(q._offset=te.l+q.domain[0]*te.w,q._length=te.w*(q.domain[1]-q.domain[0]),q._m=q._length/(le-Se),q._b=-q._m*Se),q._rangebreaks=[],q._lBreaks=0,q._m2=0,q._B=[],q.rangebreaks){var Qe,ze;if(q._rangebreaks=q.locateBreaks(Math.min(Se,le),Math.max(Se,le)),q._rangebreaks.length){for(Qe=0;Qele&&(Xe=!Xe),Xe&&q._rangebreaks.reverse();var ct=Xe?-1:1;for(q._m2=ct*q._length/(Math.abs(le-Se)-q._lBreaks),q._B.push(-q._m2*(Ce?le:Se)),Qe=0;Qeoe&&(oe+=7,Seoe&&(oe+=24,Se=ue&&Se=ue&&ye=Nt.min&&(ttNt.max&&(Nt.max=wt),Xt=!1)}Xt&&le.push({min:tt,max:wt})}};for(se=0;se rect").call(b.setTranslate,0,0).call(b.setScale,1,1),Y.plot.call(b.setTranslate,ie._offset,L._offset).call(b.setScale,1,1);var me=Y.plot.selectAll(".scatterlayer .trace");me.selectAll(".point").call(b.setPointGroupScale,1,1),me.selectAll(".textpoint").call(b.setTextPointsScale,1,1),me.call(b.hideOutsideRangePoints,Y)}function V(Y,ie){var L=Y.plotinfo,me=L.xaxis,ae=L.yaxis,q=me._length,fe=ae._length,ee=!!Y.xr1,be=!!Y.yr1,Te=[];if(ee){var Be=y.simpleMap(Y.xr0,me.r2l),ge=y.simpleMap(Y.xr1,me.r2l),ne=Be[1]-Be[0],pe=ge[1]-ge[0];Te[0]=(Be[0]*(1-ie)+ie*ge[0]-Be[0])/(Be[1]-Be[0])*q,Te[2]=q*(1-ie+ie*pe/ne),me.range[0]=me.l2r(Be[0]*(1-ie)+ie*ge[0]),me.range[1]=me.l2r(Be[1]*(1-ie)+ie*ge[1])}else Te[0]=0,Te[2]=q;if(be){var G=y.simpleMap(Y.yr0,ae.r2l),Oe=y.simpleMap(Y.yr1,ae.r2l),xe=G[1]-G[0],Le=Oe[1]-Oe[0];Te[1]=(G[1]*(1-ie)+ie*Oe[1]-G[1])/(G[0]-G[1])*fe,Te[3]=fe*(1-ie+ie*Le/xe),ae.range[0]=me.l2r(G[0]*(1-ie)+ie*Oe[0]),ae.range[1]=ae.l2r(G[1]*(1-ie)+ie*Oe[1])}else Te[1]=0,Te[3]=fe;x.drawOne(C,me,{skipTitle:!0}),x.drawOne(C,ae,{skipTitle:!0}),x.redrawComponents(C,[me._id,ae._id]);var ke=ee?q/Te[2]:1,$e=be?fe/Te[3]:1,Ze=ee?Te[0]:0,De=be?Te[1]:0,Ie=ee?Te[0]/Te[2]*q:0,re=be?Te[1]/Te[3]*fe:0,ye=me._offset-Ie,te=ae._offset-re;L.clipRect.call(b.setTranslate,Ze,De).call(b.setScale,1/ke,1/$e),L.plot.call(b.setTranslate,ye,te).call(b.setScale,ke,$e),b.setPointGroupScale(L.zoomScalePts,1/ke,1/$e),b.setTextPointsScale(L.zoomScaleTxt,1/ke,1/$e)}var N;R&&(N=R());function F(){for(var Y={},ie=0;ieT.duration?(F(),B=window.cancelAnimationFrame(W)):B=window.requestAnimationFrame(W)}return U=Date.now(),B=window.requestAnimationFrame(W),Promise.resolve()}},951:function(f,m,u){var p=u(3972).traceIs,v=u(4322);f.exports=function(w,T,R,M){R("autotypenumbers",M.autotypenumbersDflt);var I=R("type",(M.splomStash||{}).type);I==="-"&&(y(T,M.data),T.type==="-"?T.type="linear":w.type=T.type)};function y(C,w){if(C.type==="-"){var T=C._id,R=T.charAt(0),M;T.indexOf("scene")!==-1&&(T=R);var I=b(w,T,R);if(I){if(I.type==="histogram"&&R==={v:"y",h:"x"}[I.orientation||"v"]){C.type="linear";return}var V=R+"calendar",N=I[V],F={noMultiCategory:!p(I,"cartesian")||p(I,"noMultiCategory")};if(I.type==="box"&&I._hasPreCompStats&&R==={h:"x",v:"y"}[I.orientation||"v"]&&(F.noMultiCategory=!0),F.autotypenumbers=C.autotypenumbers,k(I,R)){var z=x(I),U=[];for(M=0;M0&&(M["_"+T+"axes"]||{})[w])return M;if((M[T+"axis"]||T)===w){if(k(M,T))return M;if((M[T]||[]).length||M[T+"0"])return M}}}function x(C){return{v:"x",h:"y"}[C.orientation||"v"]}function k(C,w){var T=x(C),R=p(C,"box-violin"),M=p(C._fullInput||{},"candlestick");return R&&!M&&w===T&&C[T]===void 0&&C[T+"0"]===void 0}},1137:function(f,m,u){var p=u(3972),v=u(1828);m.manageCommandObserver=function(w,T,R,M){var I={},V=!0;T&&T._commandObserver&&(I=T._commandObserver),I.cache||(I.cache={}),I.lookupTable={};var N=m.hasSimpleAPICommandBindings(w,R,I.lookupTable);if(T&&T._commandObserver){if(N)return I;if(T._commandObserver.remove)return T._commandObserver.remove(),T._commandObserver=null,I}if(N){y(w,N,I.cache),I.check=function(){if(V){var Q=y(w,N,I.cache);return Q.changed&&M&&I.lookupTable[Q.value]!==void 0&&(I.disable(),Promise.resolve(M({value:Q.value,type:N.type,prop:N.prop,traces:N.traces,index:I.lookupTable[Q.value]})).then(I.enable,I.enable)),Q.changed}};for(var F=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],z=0;z0?".":"")+I;v.isPlainObject(V)?C(V,T,N,M+1):T(N,I,V)}})}},7670:function(f,m,u){var p=u(1426).extendFlat;m.Y=function(v,y){v=v||{},y=y||{};var b={valType:"info_array",editType:v.editType,items:[{valType:"number",min:0,max:1,editType:v.editType},{valType:"number",min:0,max:1,editType:v.editType}],dflt:[0,1]};v.name&&v.name+"",v.trace,y.description&&""+y.description;var x={x:p({},b,{}),y:p({},b,{}),editType:v.editType};return v.noGridCell||(x.row={valType:"integer",min:0,dflt:0,editType:v.editType},x.column={valType:"integer",min:0,dflt:0,editType:v.editType}),x},m.c=function(v,y,b,x){var k=x&&x.x||[0,1],C=x&&x.y||[0,1],w=y.grid;if(w){var T=b("domain.column");T!==void 0&&(T=ye.width-20?(ue["text-anchor"]="start",ue.x=5):(ue["text-anchor"]="end",ue.x=ye._paper.attr("width")-7),te.attr(ue);var oe=te.select(".js-link-to-tool"),Se=te.select(".js-link-spacer"),le=te.select(".js-sourcelinks");re._context.showSources&&re._context.showSources(re),re._context.showLink&&Y(re,oe),Se.text(oe.text()&&le.text()?" - ":"")}};function Y(re,ye){ye.text("");var te=ye.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(re._context.linkText+" "+String.fromCharCode(187));if(re._context.sendData)te.on("click",function(){B.sendDataToCloud(re)});else{var se=window.location.pathname.split("/"),ue=window.location.search;te.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+se[2].split(".")[0]+"/"+se[1]+ue})}}B.sendDataToCloud=function(re){var ye=(window.PLOTLYENV||{}).BASE_URL||re._context.plotlyServerURL;if(ye){re.emit("plotly_beforeexport");var te=p.select(re).append("div").attr("id","hiddenform").style("display","none"),se=te.append("form").attr({action:ye+"/external",method:"post",target:"_blank"}),ue=se.append("input").attr({type:"text",name:"data"});return ue.node().value=B.graphJson(re,!1,"keepdata"),se.node().submit(),te.remove(),re.emit("plotly_afterexport"),!1}};var ie=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],L=["year","month","dayMonth","dayMonthYear"];B.supplyDefaults=function(re,ye){var te=ye&&ye.skipUpdateCalc,se=re._fullLayout||{};if(se._skipDefaults){delete se._skipDefaults;return}var ue=re._fullLayout={},oe=re.layout||{},Se=re._fullData||[],le=re._fullData=[],Ce=re.data||[],Qe=re.calcdata||[],ze=re._context||{},Xe;re._transitionData||B.createTransitionData(re),ue._dfltTitle={plot:Q(re,"Click to enter Plot title"),x:Q(re,"Click to enter X axis title"),y:Q(re,"Click to enter Y axis title"),colorbar:Q(re,"Click to enter Colorscale title"),annotation:Q(re,"new text")},ue._traceWord=Q(re,"trace");var ct=q(re,ie);if(ue._mapboxAccessToken=ze.mapboxAccessToken,se._initialAutoSizeIsDone){var pt=se.width,Ye=se.height;B.supplyLayoutGlobalDefaults(oe,ue,ct),oe.width||(ue.width=pt),oe.height||(ue.height=Ye),B.sanitizeMargins(ue)}else{B.supplyLayoutGlobalDefaults(oe,ue,ct);var je=!oe.width||!oe.height,et=ue.autosize,yt=ze.autosizable,ft=je&&(et||yt);ft?B.plotAutoSize(re,oe,ue):je&&B.sanitizeMargins(ue),!et&&je&&(oe.width=ue.width,oe.height=ue.height)}ue._d3locale=fe(ct,ue.separators),ue._extraFormat=q(re,L),ue._initialAutoSizeIsDone=!0,ue._dataLength=Ce.length,ue._modules=[],ue._visibleModules=[],ue._basePlotModules=[];var tt=ue._subplots=ae(),wt=ue._splomAxes={x:{},y:{}},Xt=ue._splomSubplots={};ue._splomGridDflt={},ue._scatterStackOpts={},ue._firstScatter={},ue._alignmentOpts={},ue._colorAxes={},ue._requestRangeslider={},ue._traceUids=me(Se,Ce),ue._globalTransforms=(re._context||{}).globalTransforms,B.supplyDataDefaults(Ce,le,oe,ue);var Gt=Object.keys(wt.x),Nt=Object.keys(wt.y);if(Gt.length>1&&Nt.length>1){for(x.getComponentMethod("grid","sizeDefaults")(oe,ue),Xe=0;Xe15&&Nt.length>15&&ue.shapes.length===0&&ue.images.length===0,B.linkSubplots(le,ue,Se,se),B.cleanPlot(le,ue,Se,se);var Yn=!!(se._has&&se._has("gl2d")),an=!!(ue._has&&ue._has("gl2d")),wn=!!(se._has&&se._has("cartesian")),Xn=!!(ue._has&&ue._has("cartesian")),Un=wn||Yn,Sn=Xn||an;Un&&!Sn?se._bgLayer.remove():Sn&&!Un&&(ue._shouldCreateBgLayer=!0),se._zoomlayer&&!re._dragging&&I({_fullLayout:se}),ee(le,ue),U(ue,se),x.getComponentMethod("colorscale","crossTraceDefaults")(le,ue),ue._preGUI||(ue._preGUI={}),ue._tracePreGUI||(ue._tracePreGUI={});var it=ue._tracePreGUI,ut={},xt;for(xt in it)ut[xt]="old";for(Xe=0;Xe0){var ze=1-2*oe;Se=Math.round(ze*Se),le=Math.round(ze*le)}}var Xe=B.layoutAttributes.width.min,ct=B.layoutAttributes.height.min;Se1,Ye=!te.height&&Math.abs(se.height-le)>1;(Ye||pt)&&(pt&&(se.width=Se),Ye&&(se.height=le)),ye._initialAutoSize||(ye._initialAutoSize={width:Se,height:le}),B.sanitizeMargins(se)},B.supplyLayoutModuleDefaults=function(re,ye,te,se){var ue=x.componentsRegistry,oe=ye._basePlotModules,Se,le,Ce,Qe=x.subplotsRegistry.cartesian;for(Se in ue)Ce=ue[Se],Ce.includeBasePlot&&Ce.includeBasePlot(re,ye);oe.length||oe.push(Qe),ye._has("cartesian")&&(x.getComponentMethod("grid","contentDefaults")(re,ye),Qe.finalizeSubplots(re,ye));for(var ze in ye._subplots)ye._subplots[ze].sort(w.subplotSort);for(le=0;le1&&(te.l/=et,te.r/=et)}if(ct){var yt=(te.t+te.b)/ct;yt>1&&(te.t/=yt,te.b/=yt)}var ft=te.xl!==void 0?te.xl:te.x,tt=te.xr!==void 0?te.xr:te.x,wt=te.yt!==void 0?te.yt:te.y,Xt=te.yb!==void 0?te.yb:te.y;pt[ye]={l:{val:ft,size:te.l+je},r:{val:tt,size:te.r+je},b:{val:Xt,size:te.b+je},t:{val:wt,size:te.t+je}},Ye[ye]=1}if(!se._replotting)return B.doAutoMargin(re)}};function Oe(re){if("_redrawFromAutoMarginCount"in re._fullLayout)return!1;var ye=M.list(re,"",!0);for(var te in ye)if(ye[te].autoshift||ye[te].shift)return!0;return!1}B.doAutoMargin=function(re){var ye=re._fullLayout,te=ye.width,se=ye.height;ye._size||(ye._size={}),ne(ye);var ue=ye._size,oe=ye.margin,Se={t:0,b:0,l:0,r:0},le=w.extendFlat({},ue),Ce=oe.l,Qe=oe.r,ze=oe.t,Xe=oe.b,ct=ye._pushmargin,pt=ye._pushmarginIds,Ye=ye.minreducedwidth,je=ye.minreducedheight;if(oe.autoexpand!==!1){for(var et in ct)pt[et]||delete ct[et];var yt=re._fullLayout._reservedMargin;for(var ft in yt)for(var tt in yt[ft]){var wt=yt[ft][tt];Se[tt]=Math.max(Se[tt],wt)}ct.base={l:{val:0,size:Ce},r:{val:1,size:Qe},t:{val:1,size:ze},b:{val:0,size:Xe}};for(var Xt in Se){var Gt=0;for(var Nt in ct)Nt!=="base"&&b(ct[Nt][Xt].size)&&(Gt=ct[Nt][Xt].size>Gt?ct[Nt][Xt].size:Gt);var Bt=Math.max(0,oe[Xt]-Gt);Se[Xt]=Math.max(0,Se[Xt]-Bt)}for(var vn in ct){var En=ct[vn].l||{},ln=ct[vn].b||{},Yn=En.val,an=En.size,wn=ln.val,Xn=ln.size,Un=te-Se.r-Se.l,Sn=se-Se.t-Se.b;for(var it in ct){if(b(an)&&ct[it].r){var ut=ct[it].r.val,xt=ct[it].r.size;if(ut>Yn){var gt=(an*ut+(xt-Un)*Yn)/(ut-Yn),Dt=(xt*(1-Yn)+(an-Un)*(1-ut))/(ut-Yn);gt+Dt>Ce+Qe&&(Ce=gt,Qe=Dt)}}if(b(Xn)&&ct[it].t){var He=ct[it].t.val,at=ct[it].t.size;if(He>wn){var dt=(Xn*He+(at-Sn)*wn)/(He-wn),mt=(at*(1-wn)+(Xn-Sn)*(1-He))/(He-wn);dt+mt>Xe+ze&&(Xe=dt,ze=mt)}}}}}var Tt=w.constrain(te-oe.l-oe.r,pe,Ye),Pt=w.constrain(se-oe.t-oe.b,G,je),dn=Math.max(0,te-Tt),nn=Math.max(0,se-Pt);if(dn){var Wt=(Ce+Qe)/dn;Wt>1&&(Ce/=Wt,Qe/=Wt)}if(nn){var Rt=(Xe+ze)/nn;Rt>1&&(Xe/=Rt,ze/=Rt)}if(ue.l=Math.round(Ce)+Se.l,ue.r=Math.round(Qe)+Se.r,ue.t=Math.round(ze)+Se.t,ue.b=Math.round(Xe)+Se.b,ue.p=Math.round(oe.pad),ue.w=Math.round(te)-ue.l-ue.r,ue.h=Math.round(se)-ue.t-ue.b,!ye._replotting&&(B.didMarginChange(le,ue)||Oe(re))){"_redrawFromAutoMarginCount"in ye?ye._redrawFromAutoMarginCount++:ye._redrawFromAutoMarginCount=1;var fn=3*(1+Object.keys(pt).length);if(ye._redrawFromAutoMarginCount1)return!0}return!1},B.graphJson=function(re,ye,te,se,ue,oe){(ue&&ye&&!re._fullData||ue&&!ye&&!re._fullLayout)&&B.supplyDefaults(re);var Se=ue?re._fullData:re.data,le=ue?re._fullLayout:re.layout,Ce=(re._transitionData||{})._frames;function Qe(ct,pt){if(typeof ct=="function")return pt?"_function_":null;if(w.isPlainObject(ct)){var Ye={},je;return Object.keys(ct).sort().forEach(function(et){if(["_","["].indexOf(et.charAt(0))===-1){if(typeof ct[et]=="function"){pt&&(Ye[et]="_function");return}if(te==="keepdata"){if(et.substr(et.length-3)==="src")return}else if(te==="keepstream"){if(je=ct[et+"src"],typeof je=="string"&&je.indexOf(":")>0&&!w.isPlainObject(ct.stream))return}else if(te!=="keepall"&&(je=ct[et+"src"],typeof je=="string"&&je.indexOf(":")>0))return;Ye[et]=Qe(ct[et],pt)}}),Ye}return Array.isArray(ct)?ct.map(function(et){return Qe(et,pt)}):w.isTypedArray(ct)?w.simpleMap(ct,w.identity):w.isJSDate(ct)?w.ms2DateTimeLocal(+ct):ct}var ze={data:(Se||[]).map(function(ct){var pt=Qe(ct);return ye&&delete pt.fit,pt})};if(!ye&&(ze.layout=Qe(le),ue)){var Xe=le._size;ze.layout.computed={margin:{b:Xe.b,l:Xe.l,r:Xe.r,t:Xe.t}}}return Ce&&(ze.frames=Qe(Ce)),oe&&(ze.config=Qe(re._context,!0)),se==="object"?ze:JSON.stringify(ze)},B.modifyFrames=function(re,ye){var te,se,ue,oe=re._transitionData._frames,Se=re._transitionData._frameHash;for(te=0;te0&&(re._transitioningWithDuration=!0),re._transitionData._interruptCallbacks.push(function(){se=!0}),te.redraw&&re._transitionData._interruptCallbacks.push(function(){return x.call("redraw",re)}),re._transitionData._interruptCallbacks.push(function(){re.emit("plotly_transitioninterrupted",[])});var ct=0,pt=0;function Ye(){return ct++,function(){pt++,!se&&pt===ct&&le(Xe)}}te.runFn(Ye),setTimeout(Ye())})}function le(Xe){if(re._transitionData)return oe(re._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(te.redraw)return x.call("redraw",re)}).then(function(){re._transitioning=!1,re._transitioningWithDuration=!1,re.emit("plotly_transitioned",[])}).then(Xe)}function Ce(){if(re._transitionData)return re._transitioning=!1,ue(re._transitionData._interruptCallbacks)}var Qe=[B.previousPromises,Ce,te.prepareFn,B.rehover,B.reselect,Se],ze=w.syncOrAsync(Qe,re);return(!ze||!ze.then)&&(ze=Promise.resolve()),ze.then(function(){return re})}B.doCalcdata=function(re,ye){var te=M.list(re),se=re._fullData,ue=re._fullLayout,oe,Se,le,Ce,Qe=new Array(se.length),ze=(re.calcdata||[]).slice();for(re.calcdata=Qe,ue._numBoxes=0,ue._numViolins=0,ue._violinScaleGroupStats={},re._hmpixcount=0,re._hmlumcount=0,ue._piecolormap={},ue._sunburstcolormap={},ue._treemapcolormap={},ue._iciclecolormap={},ue._funnelareacolormap={},le=0;le=0;Ce--)if(Xt[Ce].enabled){oe._indexToPoints=Xt[Ce]._indexToPoints;break}Se&&Se.calc&&(wt=Se.calc(re,oe))}(!Array.isArray(wt)||!wt[0])&&(wt=[{x:R,y:R}]),wt[0].t||(wt[0].t={}),wt[0].trace=oe,Qe[ft]=wt}}for(De(te,se,ue),le=0;le0){for(var k=[],C=0;C-1}f.exports=function(w,T){var R,M=w.data,I=w.layout,V=b([],M),N=b({},I,x(T.tileClass)),F=w._context||{};if(T.width&&(N.width=T.width),T.height&&(N.height=T.height),T.tileClass==="thumbnail"||T.tileClass==="themes__thumb"){N.annotations=[];var z=Object.keys(N);for(R=0;R")!==-1?"":I.html(N).text()});return I.remove(),V}function R(M){return M.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}f.exports=function(I,V,N){var F=I._fullLayout,z=F._paper,U=F._toppaper,Q=F.width,B=F.height,E;z.insert("rect",":first-child").call(y.setRect,0,0,Q,B).call(b.fill,F.paper_bgcolor);var W=F._basePlotModules||[];for(E=0;Ene+Be||!p(ge))}for(var G=0;Gw;if(!T)return x}return k!==void 0?k:b.dflt},m.coerceColor=function(b,x,k){return v(x).isValid()?x:k!==void 0?k:b.dflt},m.coerceEnumerated=function(b,x,k){return b.coerceNumber&&(x=+x),b.values.indexOf(x)!==-1?x:k!==void 0?k:b.dflt},m.getValue=function(b,x){var k;return Array.isArray(b)?x0?Qe+=ze:L<0&&(Qe-=ze)}return Qe}function Ze(Ce){var Qe=L,ze=Ce.b,Xe=$e(Ce);return p.inbox(ze-Qe,Xe-Qe,W+(Xe-Qe)/(Xe-ze)-1)}function De(Ce){var Qe=L,ze=Ce.b,Xe=$e(Ce);return p.inbox(ze-Qe,Xe-Qe,Y+(Xe-Qe)/(Xe-ze)-1)}var Ie=M[me+"a"],re=M[ae+"a"];ee=Math.abs(Ie.r2c(Ie.range[1])-Ie.r2c(Ie.range[0]));function ye(Ce){return(q(Ce)+fe(Ce))/2}var te=p.getDistanceFunction(N,q,fe,ye);if(p.getClosest(z,te,M),M.index!==!1&&z[M.index].p!==C){Te||(G=function(Ce){return Math.min(Be(Ce),Ce.p-Q.bargroupwidth/2)},Oe=function(Ce){return Math.max(ge(Ce),Ce.p+Q.bargroupwidth/2)});var se=M.index,ue=z[se],oe=U.base?ue.b+ue.s:ue.s;M[ae+"0"]=M[ae+"1"]=re.c2p(ue[ae],!0),M[ae+"LabelVal"]=oe;var Se=Q.extents[Q.extents.round(ue.p)];M[me+"0"]=Ie.c2p(B?G(ue):Se[0],!0),M[me+"1"]=Ie.c2p(B?Oe(ue):Se[1],!0);var le=ue.orig_p!==void 0;return M[me+"LabelVal"]=le?ue.orig_p:ue.p,M.labelLabel=k(Ie,M[me+"LabelVal"],U[me+"hoverformat"]),M.valueLabel=k(re,M[ae+"LabelVal"],U[ae+"hoverformat"]),M.baseLabel=k(re,ue.b,U[ae+"hoverformat"]),M.spikeDistance=(De(ue)+ke(ue))/2,M[me+"Spike"]=Ie.c2p(ue.p,!0),b(ue,U,M),M.hovertemplate=U.hovertemplate,M}}function R(M,I){var V=I.mcc||M.marker.color,N=I.mlcc||M.marker.line.color,F=x(M,I);if(y.opacity(V))return V;if(y.opacity(N)&&F)return N}f.exports={hoverPoints:w,hoverOnBars:T,getTraceColor:R}},822:function(f,m,u){f.exports={attributes:u(1486),layoutAttributes:u(3641),supplyDefaults:u(769).supplyDefaults,crossTraceDefaults:u(769).crossTraceDefaults,supplyLayoutDefaults:u(3957),calc:u(2290),crossTraceCalc:u(1661).crossTraceCalc,colorbar:u(4898),arraysToCalcdata:u(5341),plot:u(7295).plot,style:u(6688).style,styleOnSelect:u(6688).styleOnSelect,hoverPoints:u(5423).hoverPoints,eventData:u(8065),selectPoints:u(1974),moduleType:"trace",name:"bar",basePlotModule:u(3612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},3641:function(f){f.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},3957:function(f,m,u){var p=u(3972),v=u(9298),y=u(1828),b=u(3641);f.exports=function(x,k,C){function w(Q,B){return y.coerce(x,k,b,Q,B)}for(var T=!1,R=!1,M=!1,I={},V=w("barmode"),N=0;N0}function ae(G,Oe,xe,Le,ke,$e){var Ze=Oe.xaxis,De=Oe.yaxis,Ie=G._fullLayout,re=G._context.staticPlot;ke||(ke={mode:Ie.barmode,norm:Ie.barmode,gap:Ie.bargap,groupgap:Ie.bargroupgap},M("bar",Ie));var ye=y.makeTraceGroups(Le,xe,"trace bars").each(function(te){var se=p.select(this),ue=te[0].trace,oe=ue.type==="waterfall",Se=ue.type==="funnel",le=ue.type==="bar",Ce=le||Se,Qe=0;oe&&ue.connector.visible&&ue.connector.mode==="between"&&(Qe=ue.connector.line.width/2);var ze=ue.orientation==="h",Xe=me(ke),ct=y.ensureSingle(se,"g","points"),pt=W(ue),Ye=ct.selectAll("g.point").data(y.identity,pt);Ye.enter().append("g").classed("point",!0),Ye.exit().remove(),Ye.each(function(et,yt){var ft=p.select(this),tt=ie(et,Ze,De,ze),wt=tt[0][0],Xt=tt[0][1],Gt=tt[1][0],Nt=tt[1][1],Bt=(ze?Xt-wt:Nt-Gt)===0;Bt&&Ce&&V.getLineWidth(ue,et)&&(Bt=!1),Bt||(Bt=!v(wt)||!v(Xt)||!v(Gt)||!v(Nt)),et.isBlank=Bt,Bt&&(ze?Xt=wt:Nt=Gt),Qe&&!Bt&&(ze?(wt-=Y(wt,Xt)*Qe,Xt+=Y(wt,Xt)*Qe):(Gt-=Y(Gt,Nt)*Qe,Nt+=Y(Gt,Nt)*Qe));var vn,En;if(ue.type==="waterfall"){if(!Bt){var ln=ue[et.dir].marker;vn=ln.line.width,En=ln.color}}else vn=V.getLineWidth(ue,et),En=et.mc||ue.marker.color;function Yn(it){var ut=p.round(vn/2%1,2);return ke.gap===0&&ke.groupgap===0?p.round(Math.round(it)-ut,2):it}function an(it,ut,xt){return xt&&it===ut?it:Math.abs(it-ut)>=2?Yn(it):it>ut?Math.ceil(it):Math.floor(it)}if(!G._context.staticPlot){var wn=x.opacity(En),Xn=wn<1||vn>.01?Yn:an;wt=Xn(wt,Xt,ze),Xt=Xn(Xt,wt,ze),Gt=Xn(Gt,Nt,!ze),Nt=Xn(Nt,Gt,!ze)}var Un=L(y.ensureSingle(ft,"path"),Ie,ke,$e);if(Un.style("vector-effect",re?"none":"non-scaling-stroke").attr("d",isNaN((Xt-wt)*(Nt-Gt))||Bt&&G._context.staticPlot?"M0,0Z":"M"+wt+","+Gt+"V"+Nt+"H"+Xt+"V"+Gt+"Z").call(k.setClipUrl,Oe.layerClipId,G),!Ie.uniformtext.mode&&Xe){var Sn=k.makePointStyleFns(ue);k.singlePointStyle(et,Un,ue,Sn,G)}q(G,Oe,ft,te,yt,wt,Xt,Gt,Nt,ke,$e),Oe.layerClipId&&k.hideOutsideRangePoint(et,ft.select("text"),Ze,De,ue.xcalendar,ue.ycalendar)});var je=ue.cliponaxis===!1;k.setClipUrl(se,je?null:Oe.layerClipId,G)});C.getComponentMethod("errorbars","plot")(G,ye,Oe,ke)}function q(G,Oe,xe,Le,ke,$e,Ze,De,Ie,re,ye){var te=Oe.xaxis,se=Oe.yaxis,ue=G._fullLayout,oe;function Se(it,ut,xt){var gt=y.ensureSingle(it,"text").text(ut).attr({class:"bartext bartext-"+oe,"text-anchor":"middle","data-notex":1}).call(k.font,xt).call(b.convertToTspans,G);return gt}var le=Le[0].trace,Ce=le.orientation==="h",Qe=Be(ue,Le,ke,te,se);oe=ge(le,ke);var ze=re.mode==="stack"||re.mode==="relative",Xe=Le[ke],ct=!ze||Xe._outmost;if(!Qe||oe==="none"||(Xe.isBlank||$e===Ze||De===Ie)&&(oe==="auto"||oe==="inside")){xe.select("text").remove();return}var pt=ue.font,Ye=I.getBarColor(Le[ke],le),je=I.getInsideTextFont(le,ke,pt,Ye),et=I.getOutsideTextFont(le,ke,pt),yt=xe.datum();Ce?te.type==="log"&&yt.s0<=0&&(te.range[0]0&&Nt>0,En=Gt<=ft&&Nt<=tt,ln=Gt<=tt&&Nt<=ft,Yn=Ce?ft>=Gt*(tt/Nt):tt>=Nt*(ft/Gt);vn&&(En||ln||Yn)?oe="inside":(oe="outside",wt.remove(),wt=null)}else oe="inside";if(!wt){Bt=y.ensureUniformFontSize(G,oe==="outside"?et:je),wt=Se(xe,Qe,Bt);var an=wt.attr("transform");if(wt.attr("transform",""),Xt=k.bBox(wt.node()),Gt=Xt.width,Nt=Xt.height,wt.attr("transform",an),Gt<=0||Nt<=0){wt.remove();return}}var wn=le.textangle,Xn,Un;oe==="outside"?(Un=le.constraintext==="both"||le.constraintext==="outside",Xn=Te($e,Ze,De,Ie,Xt,{isHorizontal:Ce,constrained:Un,angle:wn})):(Un=le.constraintext==="both"||le.constraintext==="inside",Xn=be($e,Ze,De,Ie,Xt,{isHorizontal:Ce,constrained:Un,angle:wn,anchor:le.insidetextanchor})),Xn.fontSize=Bt.size,R(le.type==="histogram"?"bar":le.type,Xn,ue),Xe.transform=Xn;var Sn=L(wt,ue,re,ye);y.setTransormAndDisplay(Sn,Xn)}function fe(G){return G==="auto"?0:G}function ee(G,Oe){var xe=Math.PI/180*Oe,Le=Math.abs(Math.sin(xe)),ke=Math.abs(Math.cos(xe));return{x:G.width*ke+G.height*Le,y:G.width*Le+G.height*ke}}function be(G,Oe,xe,Le,ke,$e){var Ze=!!$e.isHorizontal,De=!!$e.constrained,Ie=$e.angle||0,re=$e.anchor||"end",ye=re==="end",te=re==="start",se=$e.leftToRight||0,ue=(se+1)/2,oe=1-ue,Se=ke.width,le=ke.height,Ce=Math.abs(Oe-G),Qe=Math.abs(Le-xe),ze=Ce>2*B&&Qe>2*B?B:0;Ce-=2*ze,Qe-=2*ze;var Xe=fe(Ie);Ie==="auto"&&!(Se<=Ce&&le<=Qe)&&(Se>Ce||le>Qe)&&(!(Se>Qe||le>Ce)||Se2*B?B:0:ue=te>2*B?B:0;var oe=1;De&&(oe=Ze?Math.min(1,se/ye):Math.min(1,te/re));var Se=fe(Ie),le=ee(ke,Se),Ce=(Ze?le.x:le.y)/2,Qe=(ke.left+ke.right)/2,ze=(ke.top+ke.bottom)/2,Xe=(G+Oe)/2,ct=(xe+Le)/2,pt=0,Ye=0,je=Ze?Y(Oe,G):Y(xe,Le);return Ze?(Xe=Oe-je*ue,pt=je*Ce):(ct=Le+je*ue,Ye=-je*Ce),{textX:Qe,textY:ze,targetX:Xe,targetY:ct,anchorX:pt,anchorY:Ye,scale:oe,rotate:Se}}function Be(G,Oe,xe,Le,ke){var $e=Oe[0].trace,Ze=$e.texttemplate,De;return Ze?De=ne(G,Oe,xe,Le,ke):$e.textinfo?De=pe(Oe,xe,Le,ke):De=V.getValue($e.text,xe),V.coerceString(z,De)}function ge(G,Oe){var xe=V.getValue(G.textposition,Oe);return V.coerceEnumerated(U,xe)}function ne(G,Oe,xe,Le,ke){var $e=Oe[0].trace,Ze=y.castOption($e,xe,"texttemplate");if(!Ze)return"";var De=$e.type==="histogram",Ie=$e.type==="waterfall",re=$e.type==="funnel",ye=$e.orientation==="h",te,se,ue,oe;ye?(te="y",se=ke,ue="x",oe=Le):(te="x",se=Le,ue="y",oe=ke);function Se(pt){return w(se,se.c2l(pt),!0).text}function le(pt){return w(oe,oe.c2l(pt),!0).text}var Ce=Oe[xe],Qe={};Qe.label=Ce.p,Qe.labelLabel=Qe[te+"Label"]=Se(Ce.p);var ze=y.castOption($e,Ce.i,"text");(ze===0||ze)&&(Qe.text=ze),Qe.value=Ce.s,Qe.valueLabel=Qe[ue+"Label"]=le(Ce.s);var Xe={};Q(Xe,$e,Ce.i),(De||Xe.x===void 0)&&(Xe.x=ye?Qe.value:Qe.label),(De||Xe.y===void 0)&&(Xe.y=ye?Qe.label:Qe.value),(De||Xe.xLabel===void 0)&&(Xe.xLabel=ye?Qe.valueLabel:Qe.labelLabel),(De||Xe.yLabel===void 0)&&(Xe.yLabel=ye?Qe.labelLabel:Qe.valueLabel),Ie&&(Qe.delta=+Ce.rawS||Ce.s,Qe.deltaLabel=le(Qe.delta),Qe.final=Ce.v,Qe.finalLabel=le(Qe.final),Qe.initial=Qe.final-Qe.delta,Qe.initialLabel=le(Qe.initial)),re&&(Qe.value=Ce.s,Qe.valueLabel=le(Qe.value),Qe.percentInitial=Ce.begR,Qe.percentInitialLabel=y.formatPercent(Ce.begR),Qe.percentPrevious=Ce.difR,Qe.percentPreviousLabel=y.formatPercent(Ce.difR),Qe.percentTotal=Ce.sumR,Qe.percenTotalLabel=y.formatPercent(Ce.sumR));var ct=y.castOption($e,Ce.i,"customdata");return ct&&(Qe.customdata=ct),y.texttemplateString(Ze,Qe,G._d3locale,Xe,Qe,$e._meta||{})}function pe(G,Oe,xe,Le){var ke=G[0].trace,$e=ke.orientation==="h",Ze=ke.type==="waterfall",De=ke.type==="funnel";function Ie(ct){var pt=$e?Le:xe;return w(pt,ct,!0).text}function re(ct){var pt=$e?xe:Le;return w(pt,+ct,!0).text}var ye=ke.textinfo,te=G[Oe],se=ye.split("+"),ue=[],oe,Se=function(ct){return se.indexOf(ct)!==-1};if(Se("label")&&ue.push(Ie(G[Oe].p)),Se("text")&&(oe=y.castOption(ke,te.i,"text"),(oe===0||oe)&&ue.push(oe)),Ze){var le=+te.rawS||te.s,Ce=te.v,Qe=Ce-le;Se("initial")&&ue.push(re(Qe)),Se("delta")&&ue.push(re(le)),Se("final")&&ue.push(re(Ce))}if(De){Se("value")&&ue.push(re(te.s));var ze=0;Se("percent initial")&&ze++,Se("percent previous")&&ze++,Se("percent total")&&ze++;var Xe=ze>1;Se("percent initial")&&(oe=y.formatPercent(te.begR),Xe&&(oe+=" of initial"),ue.push(oe)),Se("percent previous")&&(oe=y.formatPercent(te.difR),Xe&&(oe+=" of previous"),ue.push(oe)),Se("percent total")&&(oe=y.formatPercent(te.sumR),Xe&&(oe+=" of total"),ue.push(oe))}return ue.join("
")}f.exports={plot:ae,toMoveInsideBar:be}},1974:function(f){f.exports=function(p,v){var y=p.cd,b=p.xaxis,x=p.yaxis,k=y[0].trace,C=k.type==="funnel",w=k.orientation==="h",T=[],R;if(v===!1)for(R=0;R1||q.bargap===0&&q.bargroupgap===0&&!fe[0].trace.marker.line.width)&&p.select(this).attr("shape-rendering","crispEdges")}),me.selectAll("g.points").each(function(fe){var ee=p.select(this),be=fe[0].trace;V(ee,be,L)}),x.getComponentMethod("errorbars","style")(me)}function V(L,me,ae){y.pointStyle(L.selectAll("path"),me,ae),N(L,me,ae)}function N(L,me,ae){L.selectAll("text").each(function(q){var fe=p.select(this),ee=b.ensureUniformFontSize(ae,Q(fe,q,me,ae));y.font(fe,ee)})}function F(L,me,ae){var q=me[0].trace;q.selectedpoints?z(ae,q,L):(V(ae,q,L),x.getComponentMethod("errorbars","style")(ae))}function z(L,me,ae){y.selectedPointStyle(L.selectAll("path"),me),U(L.selectAll("text"),me,ae)}function U(L,me,ae){L.each(function(q){var fe=p.select(this),ee;if(q.selected){ee=b.ensureUniformFontSize(ae,Q(fe,q,me,ae));var be=me.selected.textfont&&me.selected.textfont.color;be&&(ee.color=be),y.font(fe,ee)}else y.selectedTextStyle(fe,me)})}function Q(L,me,ae,q){var fe=q._fullLayout.font,ee=ae.textfont;if(L.classed("bartext-inside")){var be=ie(me,ae);ee=E(ae,me.i,fe,be)}else L.classed("bartext-outside")&&(ee=W(ae,me.i,fe));return ee}function B(L,me,ae){return Y(w,L.textfont,me,ae)}function E(L,me,ae,q){var fe=B(L,me,ae),ee=L._input.textfont===void 0||L._input.textfont.color===void 0||Array.isArray(L.textfont.color)&&L.textfont.color[me]===void 0;return ee&&(fe={color:v.contrast(q),family:fe.family,size:fe.size}),Y(T,L.insidetextfont,me,fe)}function W(L,me,ae){var q=B(L,me,ae);return Y(R,L.outsidetextfont,me,q)}function Y(L,me,ae,q){me=me||{};var fe=M.getValue(me.family,ae),ee=M.getValue(me.size,ae),be=M.getValue(me.color,ae);return{family:M.coerceString(L.family,fe,q.family),size:M.coerceNumber(L.size,ee,q.size),color:M.coerceColor(L.color,be,q.color)}}function ie(L,me){return me.type==="waterfall"?me[L.dir].marker.color:L.mcc||L.mc||me.marker.color}f.exports={style:I,styleTextPoints:N,styleOnSelect:F,getInsideTextFont:E,getOutsideTextFont:W,getBarColor:ie,resizeText:k}},8340:function(f,m,u){var p=u(7901),v=u(2869).hasColorscale,y=u(1586),b=u(1828).coercePattern;f.exports=function(k,C,w,T,R){var M=w("marker.color",T),I=v(k,"marker");I&&y(k,C,R,w,{prefix:"marker.",cLetter:"c"}),w("marker.line.color",p.defaultLine),v(k,"marker.line")&&y(k,C,R,w,{prefix:"marker.line.",cLetter:"c"}),w("marker.line.width"),w("marker.opacity"),b(w,"marker.pattern",M,I),w("selected.marker.color"),w("unselected.marker.color")}},2597:function(f,m,u){var p=u(9898),v=u(1828);function y(C,w,T){var R=C._fullLayout,M=R["_"+T+"Text_minsize"];if(M){var I=R.uniformtext.mode==="hide",V;switch(T){case"funnelarea":case"pie":case"sunburst":V="g.slice";break;case"treemap":case"icicle":V="g.slice, g.pathbar";break;default:V="g.points > g.point"}w.selectAll(V).each(function(N){var F=N.transform;if(F){F.scale=I&&F.hide?0:M/F.fontSize;var z=p.select(this).select("text");v.setTransormAndDisplay(z,F)}})}}function b(C,w,T){if(T.uniformtext.mode){var R=k(C),M=T.uniformtext.minsize,I=w.scale*w.fontSize;w.hide=I=0});var ee=R.type==="funnelarea"?L:R.sort;return ee&&M.sort(function(be,Te){return Te.v-be.v}),M[0]&&(M[0].vTotal=ie),M}function k(T){return function(M,I){return!M||(M=v(M),!M.isValid())?!1:(M=y.addOpacity(M,M.getAlpha()),T[I]||(T[I]=M),M)}}function C(T,R){var M=(R||{}).type;M||(M="pie");var I=T._fullLayout,V=T.calcdata,N=I[M+"colorway"],F=I["_"+M+"colormap"];I["extend"+M+"colors"]&&(N=w(N,b));for(var z=0,U=0;U0){F=!0;break}}F||(N=0)}return{hasLabels:I,hasValues:V,len:N}}function w(R,M,I,V,N){var F=V("marker.line.width");F&&V("marker.line.color",N?void 0:I.paper_bgcolor);var z=V("marker.colors");k(V,"marker.pattern",z),R.marker&&!M.marker.pattern.fgcolor&&(M.marker.pattern.fgcolor=R.marker.colors),M.marker.pattern.bgcolor||(M.marker.pattern.bgcolor=I.paper_bgcolor)}function T(R,M,I,V){function N(fe,ee){return v.coerce(R,M,y,fe,ee)}var F=N("labels"),z=N("values"),U=C(F,z),Q=U.len;if(M._hasLabels=U.hasLabels,M._hasValues=U.hasValues,!M._hasLabels&&M._hasValues&&(N("label0"),N("dlabel")),!Q){M.visible=!1;return}M._length=Q,w(R,M,V,N,!0),N("scalegroup");var B=N("text"),E=N("texttemplate"),W;if(E||(W=N("textinfo",Array.isArray(B)?"text+percent":"percent")),N("hovertext"),N("hovertemplate"),E||W&&W!=="none"){var Y=N("textposition");x(R,M,V,N,Y,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var ie=Array.isArray(Y)||Y==="auto",L=ie||Y==="outside";L&&N("automargin"),(Y==="inside"||Y==="auto"||Array.isArray(Y))&&N("insidetextorientation")}b(M,V,N);var me=N("hole"),ae=N("title.text");if(ae){var q=N("title.position",me?"middle center":"top center");!me&&q==="middle center"&&(M.title.position="top center"),v.coerceFont(N,"title.font",V.font)}N("sort"),N("direction"),N("rotation"),N("pull")}f.exports={handleLabelsAndValues:C,handleMarkerDefaults:w,supplyDefaults:T}},7:function(f,m,u){var p=u(3469).appendArrayMultiPointValues;f.exports=function(y,b){var x={curveNumber:b.index,pointNumbers:y.pts,data:b._input,fullData:b,label:y.label,color:y.color,value:y.v,percent:y.percent,text:y.text,bbox:y.bbox,v:y.v};return y.pts.length===1&&(x.pointNumber=x.i=y.pts[0]),p(x,b,y.pts),b.type==="funnelarea"&&(delete x.v,delete x.i),x}},2209:function(f,m,u){var p=u(1424),v=u(7901);f.exports=function(b,x,k,C){var w=k.marker.pattern;w&&w.shape?p.pointStyle(b,k,C,x):v.fill(b,x.color)}},3581:function(f,m,u){var p=u(1828);function v(y){return y.indexOf("e")!==-1?y.replace(/[.]?0+e/,"e"):y.indexOf(".")!==-1?y.replace(/[.]?0+$/,""):y}m.formatPiePercent=function(b,x){var k=v((b*100).toPrecision(3));return p.numSeparate(k,x)+"%"},m.formatPieValue=function(b,x){var k=v(b.toPrecision(10));return p.numSeparate(k,x)},m.getFirstFilled=function(b,x){if(Array.isArray(b))for(var k=0;k0&&(Xt+=vn*tt.pxmid[0],Gt+=vn*tt.pxmid[1])}tt.cxFinal=Xt,tt.cyFinal=Gt;function En(Sn,it,ut,xt){var gt=xt*(it[0]-Sn[0]),Dt=xt*(it[1]-Sn[1]);return"a"+xt*le.r+","+xt*le.r+" 0 "+tt.largeArc+(ut?" 1 ":" 0 ")+gt+","+Dt}var ln=Ce.hole;if(tt.v===le.vTotal){var Yn="M"+(Xt+tt.px0[0])+","+(Gt+tt.px0[1])+En(tt.px0,tt.pxmid,!0,1)+En(tt.pxmid,tt.px0,!0,1)+"Z";ln?Bt.attr("d","M"+(Xt+ln*tt.px0[0])+","+(Gt+ln*tt.px0[1])+En(tt.px0,tt.pxmid,!1,ln)+En(tt.pxmid,tt.px0,!1,ln)+"Z"+Yn):Bt.attr("d",Yn)}else{var an=En(tt.px0,tt.px1,!0,1);if(ln){var wn=1-ln;Bt.attr("d","M"+(Xt+ln*tt.px1[0])+","+(Gt+ln*tt.px1[1])+En(tt.px1,tt.px0,!1,ln)+"l"+wn*tt.px0[0]+","+wn*tt.px0[1]+an+"Z")}else Bt.attr("d","M"+Xt+","+Gt+"l"+tt.px0[0]+","+tt.px0[1]+an+"Z")}Ze(Ie,tt,le);var Xn=N.castOption(Ce.textposition,tt.pts),Un=Nt.selectAll("g.slicetext").data(tt.text&&Xn!=="none"?[0]:[]);Un.enter().append("g").classed("slicetext",!0),Un.exit().remove(),Un.each(function(){var Sn=k.ensureSingle(p.select(this),"text","",function(dt){dt.attr("data-notex",1)}),it=k.ensureUniformFontSize(Ie,Xn==="outside"?E(Ce,tt,te.font):W(Ce,tt,te.font));Sn.text(tt.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(x.font,it).call(T.convertToTspans,Ie);var ut=x.bBox(Sn.node()),xt;if(Xn==="outside")xt=Te(ut,tt);else if(xt=ie(ut,tt,le),Xn==="auto"&&xt.scale<1){var gt=k.ensureUniformFontSize(Ie,Ce.outsidetextfont);Sn.call(x.font,gt),ut=x.bBox(Sn.node()),xt=Te(ut,tt)}var Dt=xt.textPosAngle,He=Dt===void 0?tt.pxmid:$e(le.r,Dt);if(xt.targetX=Xt+He[0]*xt.rCenter+(xt.x||0),xt.targetY=Gt+He[1]*xt.rCenter+(xt.y||0),De(xt,ut),xt.outside){var at=xt.targetY;tt.yLabelMin=at-ut.height/2,tt.yLabelMid=at,tt.yLabelMax=at+ut.height/2,tt.labelExtraX=0,tt.labelExtraY=0,Xe=!0}xt.fontSize=it.size,M(Ce.type,xt,te),oe[wt].transform=xt,k.setTransormAndDisplay(Sn,xt)})});var ct=p.select(this).selectAll("g.titletext").data(Ce.title.text?[0]:[]);if(ct.enter().append("g").classed("titletext",!0),ct.exit().remove(),ct.each(function(){var tt=k.ensureSingle(p.select(this),"text","",function(Gt){Gt.attr("data-notex",1)}),wt=Ce.title.text;Ce._meta&&(wt=k.templateString(wt,Ce._meta)),tt.text(wt).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(x.font,Ce.title.font).call(T.convertToTspans,Ie);var Xt;Ce.title.position==="middle center"?Xt=Be(le):Xt=ge(le,se),tt.attr("transform",w(Xt.x,Xt.y)+C(Math.min(1,Xt.scale))+w(Xt.tx,Xt.ty))}),Xe&&Oe(ze,Ce),Q(Qe,Ce),Xe&&Ce.automargin){var pt=x.bBox(Se.node()),Ye=Ce.domain,je=se.w*(Ye.x[1]-Ye.x[0]),et=se.h*(Ye.y[1]-Ye.y[0]),yt=(.5*je-le.r)/se.w,ft=(.5*et-le.r)/se.h;v.autoMargin(Ie,"pie."+Ce.uid+".automargin",{xl:Ye.x[0]-yt,xr:Ye.x[1]+yt,yb:Ye.y[0]-ft,yt:Ye.y[1]+ft,l:Math.max(le.cx-le.r-pt.left,0),r:Math.max(pt.right-(le.cx+le.r),0),b:Math.max(pt.bottom-(le.cy+le.r),0),t:Math.max(le.cy-le.r-pt.top,0),pad:5})}})});setTimeout(function(){ue.selectAll("tspan").each(function(){var oe=p.select(this);oe.attr("dy")&&oe.attr("dy",oe.attr("dy"))})},0)}function Q(Ie,re){Ie.each(function(ye){var te=p.select(this);if(!ye.labelExtraX&&!ye.labelExtraY){te.select("path.textline").remove();return}var se=te.select("g.slicetext text");ye.transform.targetX+=ye.labelExtraX,ye.transform.targetY+=ye.labelExtraY,k.setTransormAndDisplay(se,ye.transform);var ue=ye.cxFinal+ye.pxmid[0],oe=ye.cyFinal+ye.pxmid[1],Se="M"+ue+","+oe,le=(ye.yLabelMax-ye.yLabelMin)*(ye.pxmid[0]<0?-1:1)/4;if(ye.labelExtraX){var Ce=ye.labelExtraX*ye.pxmid[1]/ye.pxmid[0],Qe=ye.yLabelMid+ye.labelExtraY-(ye.cyFinal+ye.pxmid[1]);Math.abs(Ce)>Math.abs(Qe)?Se+="l"+Qe*ye.pxmid[0]/ye.pxmid[1]+","+Qe+"H"+(ue+ye.labelExtraX+le):Se+="l"+ye.labelExtraX+","+Ce+"v"+(Qe-Ce)+"h"+le}else Se+="V"+(ye.yLabelMid+ye.labelExtraY)+"h"+le;k.ensureSingle(te,"path","textline").call(b.stroke,re.outsidetextfont.color).attr({"stroke-width":Math.min(2,re.outsidetextfont.size/8),d:Se,fill:"none"})})}function B(Ie,re,ye){var te=ye[0],se=te.cx,ue=te.cy,oe=te.trace,Se=oe.type==="funnelarea";"_hasHoverLabel"in oe||(oe._hasHoverLabel=!1),"_hasHoverEvent"in oe||(oe._hasHoverEvent=!1),Ie.on("mouseover",function(le){var Ce=re._fullLayout,Qe=re._fullData[oe.index];if(!(re._dragging||Ce.hovermode===!1)){var ze=Qe.hoverinfo;if(Array.isArray(ze)&&(ze=y.castHoverinfo({hoverinfo:[N.castOption(ze,le.pts)],_module:oe._module},Ce,0)),ze==="all"&&(ze="label+text+value+percent+name"),Qe.hovertemplate||ze!=="none"&&ze!=="skip"&&ze){var Xe=le.rInscribed||0,ct=se+le.pxmid[0]*(1-Xe),pt=ue+le.pxmid[1]*(1-Xe),Ye=Ce.separators,je=[];if(ze&&ze.indexOf("label")!==-1&&je.push(le.label),le.text=N.castOption(Qe.hovertext||Qe.text,le.pts),ze&&ze.indexOf("text")!==-1){var et=le.text;k.isValidTextValue(et)&&je.push(et)}le.value=le.v,le.valueLabel=N.formatPieValue(le.v,Ye),ze&&ze.indexOf("value")!==-1&&je.push(le.valueLabel),le.percent=le.v/te.vTotal,le.percentLabel=N.formatPiePercent(le.percent,Ye),ze&&ze.indexOf("percent")!==-1&&je.push(le.percentLabel);var yt=Qe.hoverlabel,ft=yt.font,tt=[];y.loneHover({trace:oe,x0:ct-Xe*te.r,x1:ct+Xe*te.r,y:pt,_x0:Se?se+le.TL[0]:ct-Xe*te.r,_x1:Se?se+le.TR[0]:ct+Xe*te.r,_y0:Se?ue+le.TL[1]:pt-Xe*te.r,_y1:Se?ue+le.BL[1]:pt+Xe*te.r,text:je.join("
"),name:Qe.hovertemplate||ze.indexOf("name")!==-1?Qe.name:void 0,idealAlign:le.pxmid[0]<0?"left":"right",color:N.castOption(yt.bgcolor,le.pts)||le.color,borderColor:N.castOption(yt.bordercolor,le.pts),fontFamily:N.castOption(ft.family,le.pts),fontSize:N.castOption(ft.size,le.pts),fontColor:N.castOption(ft.color,le.pts),nameLength:N.castOption(yt.namelength,le.pts),textAlign:N.castOption(yt.align,le.pts),hovertemplate:N.castOption(Qe.hovertemplate,le.pts),hovertemplateLabels:le,eventData:[F(le,Qe)]},{container:Ce._hoverlayer.node(),outerContainer:Ce._paper.node(),gd:re,inOut_bbox:tt}),le.bbox=tt[0],oe._hasHoverLabel=!0}oe._hasHoverEvent=!0,re.emit("plotly_hover",{points:[F(le,Qe)],event:p.event})}}),Ie.on("mouseout",function(le){var Ce=re._fullLayout,Qe=re._fullData[oe.index],ze=p.select(this).datum();oe._hasHoverEvent&&(le.originalEvent=p.event,re.emit("plotly_unhover",{points:[F(ze,Qe)],event:p.event}),oe._hasHoverEvent=!1),oe._hasHoverLabel&&(y.loneUnhover(Ce._hoverlayer.node()),oe._hasHoverLabel=!1)}),Ie.on("click",function(le){var Ce=re._fullLayout,Qe=re._fullData[oe.index];re._dragging||Ce.hovermode===!1||(re._hoverdata=[F(le,Qe)],y.click(re,p.event))})}function E(Ie,re,ye){var te=N.castOption(Ie.outsidetextfont.color,re.pts)||N.castOption(Ie.textfont.color,re.pts)||ye.color,se=N.castOption(Ie.outsidetextfont.family,re.pts)||N.castOption(Ie.textfont.family,re.pts)||ye.family,ue=N.castOption(Ie.outsidetextfont.size,re.pts)||N.castOption(Ie.textfont.size,re.pts)||ye.size;return{color:te,family:se,size:ue}}function W(Ie,re,ye){var te=N.castOption(Ie.insidetextfont.color,re.pts);!te&&Ie._input.textfont&&(te=N.castOption(Ie._input.textfont.color,re.pts));var se=N.castOption(Ie.insidetextfont.family,re.pts)||N.castOption(Ie.textfont.family,re.pts)||ye.family,ue=N.castOption(Ie.insidetextfont.size,re.pts)||N.castOption(Ie.textfont.size,re.pts)||ye.size;return{color:te||b.contrast(re.color),family:se,size:ue}}function Y(Ie,re){for(var ye,te,se=0;se=-4;yt-=2)et(Math.PI*yt,"tan");for(yt=4;yt>=-4;yt-=2)et(Math.PI*(yt+1),"tan")}if(ze||ct){for(yt=4;yt>=-4;yt-=2)et(Math.PI*(yt+1.5),"rad");for(yt=4;yt>=-4;yt-=2)et(Math.PI*(yt+.5),"rad")}}if(Se||pt||ze){var ft=Math.sqrt(Ie.width*Ie.width+Ie.height*Ie.height);if(je={scale:se*te*2/ft,rCenter:1-se,rotate:0},je.textPosAngle=(re.startangle+re.stopangle)/2,je.scale>=1)return je;Ye.push(je)}(pt||ct)&&(je=me(Ie,te,oe,le,Ce),je.textPosAngle=(re.startangle+re.stopangle)/2,Ye.push(je)),(pt||Xe)&&(je=ae(Ie,te,oe,le,Ce),je.textPosAngle=(re.startangle+re.stopangle)/2,Ye.push(je));for(var tt=0,wt=0,Xt=0;Xt=1)break}return Ye[tt]}function L(Ie,re){var ye=Ie.startangle,te=Ie.stopangle;return ye>re&&re>te||ye0?1:-1)/2,y:ue/(1+ye*ye/(te*te)),outside:!0}}function Be(Ie){var re=Math.sqrt(Ie.titleBox.width*Ie.titleBox.width+Ie.titleBox.height*Ie.titleBox.height);return{x:Ie.cx,y:Ie.cy,scale:Ie.trace.hole*Ie.r*2/re,tx:0,ty:-Ie.titleBox.height/2+Ie.trace.title.font.size}}function ge(Ie,re){var ye=1,te=1,se,ue=Ie.trace,oe={x:Ie.cx,y:Ie.cy},Se={tx:0,ty:0};Se.ty+=ue.title.font.size,se=G(ue),ue.title.position.indexOf("top")!==-1?(oe.y-=(1+se)*Ie.r,Se.ty-=Ie.titleBox.height):ue.title.position.indexOf("bottom")!==-1&&(oe.y+=(1+se)*Ie.r);var le=ne(Ie.r,Ie.trace.aspectratio),Ce=re.w*(ue.domain.x[1]-ue.domain.x[0])/2;return ue.title.position.indexOf("left")!==-1?(Ce=Ce+le,oe.x-=(1+se)*le,Se.tx+=Ie.titleBox.width/2):ue.title.position.indexOf("center")!==-1?Ce*=2:ue.title.position.indexOf("right")!==-1&&(Ce=Ce+le,oe.x+=(1+se)*le,Se.tx-=Ie.titleBox.width/2),ye=Ce/Ie.titleBox.width,te=pe(Ie,re)/Ie.titleBox.height,{x:oe.x,y:oe.y,scale:Math.min(ye,te),tx:Se.tx,ty:Se.ty}}function ne(Ie,re){return Ie/(re===void 0?1:re)}function pe(Ie,re){var ye=Ie.trace,te=re.h*(ye.domain.y[1]-ye.domain.y[0]);return Math.min(Ie.titleBox.height,te/2)}function G(Ie){var re=Ie.pull;if(!re)return 0;var ye;if(Array.isArray(re))for(re=0,ye=0;yere&&(re=Ie.pull[ye]);return re}function Oe(Ie,re){var ye,te,se,ue,oe,Se,le,Ce,Qe,ze,Xe,ct,pt;function Ye(ft,tt){return ft.pxmid[1]-tt.pxmid[1]}function je(ft,tt){return tt.pxmid[1]-ft.pxmid[1]}function et(ft,tt){tt||(tt={});var wt=tt.labelExtraY+(te?tt.yLabelMax:tt.yLabelMin),Xt=te?ft.yLabelMin:ft.yLabelMax,Gt=te?ft.yLabelMax:ft.yLabelMin,Nt=ft.cyFinal+oe(ft.px0[1],ft.px1[1]),Bt=wt-Xt,vn,En,ln,Yn,an,wn;if(Bt*le>0&&(ft.labelExtraY=Bt),!!Array.isArray(re.pull))for(En=0;En=(N.castOption(re.pull,ln.pts)||0))&&((ft.pxmid[1]-ln.pxmid[1])*le>0?(Yn=ln.cyFinal+oe(ln.px0[1],ln.px1[1]),Bt=Yn-Xt-ft.labelExtraY,Bt*le>0&&(ft.labelExtraY+=Bt)):(Gt+ft.labelExtraY-Nt)*le>0&&(vn=3*Se*Math.abs(En-ze.indexOf(ft)),an=ln.cxFinal+ue(ln.px0[0],ln.px1[0]),wn=an+vn-(ft.cxFinal+ft.pxmid[0])-ft.labelExtraX,wn*Se>0&&(ft.labelExtraX+=wn)))}for(te=0;te<2;te++)for(se=te?Ye:je,oe=te?Math.max:Math.min,le=te?1:-1,ye=0;ye<2;ye++){for(ue=ye?Math.max:Math.min,Se=ye?1:-1,Ce=Ie[te][ye],Ce.sort(se),Qe=Ie[1-te][ye],ze=Qe.concat(Ce),ct=[],Xe=0;Xe1?(Ce=ye.r,Qe=Ce/se.aspectratio):(Qe=ye.r,Ce=Qe*se.aspectratio),Ce*=(1+se.baseratio)/2,le=Ce*Qe}oe=Math.min(oe,le/ye.vTotal)}for(te=0;tere.vTotal/2?1:0,Ce.halfangle=Math.PI*Math.min(Ce.v/re.vTotal,.5),Ce.ring=1-te.hole,Ce.rInscribed=be(Ce,re))}function $e(Ie,re){return[Ie*Math.sin(re),-Ie*Math.cos(re)]}function Ze(Ie,re,ye){var te=Ie._fullLayout,se=ye.trace,ue=se.texttemplate,oe=se.textinfo;if(!ue&&oe&&oe!=="none"){var Se=oe.split("+"),le=function(tt){return Se.indexOf(tt)!==-1},Ce=le("label"),Qe=le("text"),ze=le("value"),Xe=le("percent"),ct=te.separators,pt;if(pt=Ce?[re.label]:[],Qe){var Ye=N.getFirstFilled(se.text,re.pts);z(Ye)&&pt.push(Ye)}ze&&pt.push(N.formatPieValue(re.v,ct)),Xe&&pt.push(N.formatPiePercent(re.v/ye.vTotal,ct)),re.text=pt.join("
")}function je(tt){return{label:tt.label,value:tt.v,valueLabel:N.formatPieValue(tt.v,te.separators),percent:tt.v/ye.vTotal,percentLabel:N.formatPiePercent(tt.v/ye.vTotal,te.separators),color:tt.color,text:tt.text,customdata:k.castOption(se,tt.i,"customdata")}}if(ue){var et=k.castOption(se,re.i,"texttemplate");if(!et)re.text="";else{var yt=je(re),ft=N.getFirstFilled(se.text,re.pts);(z(ft)||ft==="")&&(yt.text=ft),re.text=k.texttemplateString(et,yt,Ie._fullLayout._d3locale,yt,se._meta||{})}}}function De(Ie,re){var ye=Ie.rotate*Math.PI/180,te=Math.cos(ye),se=Math.sin(ye),ue=(re.left+re.right)/2,oe=(re.top+re.bottom)/2;Ie.textX=ue*te-oe*se,Ie.textY=ue*se+oe*te,Ie.noCenter=!0}f.exports={plot:U,formatSliceLabel:Ze,transformInsideText:ie,determineInsideTextFont:W,positionTitleOutside:ge,prerenderTitles:Y,layoutAreas:xe,attachFxHandlers:B,computeTransform:De}},8357:function(f,m,u){var p=u(9898),v=u(3463),y=u(2597).resizeText;f.exports=function(x){var k=x._fullLayout._pielayer.selectAll(".trace");y(x,k,"pie"),k.each(function(C){var w=C[0],T=w.trace,R=p.select(this);R.style({opacity:T.opacity}),R.selectAll("path.surface").each(function(M){p.select(this).call(v,M,T,x)})})}},3463:function(f,m,u){var p=u(7901),v=u(3581).castOption,y=u(2209);f.exports=function(x,k,C,w){var T=C.marker.line,R=v(T.color,k.pts)||p.defaultLine,M=v(T.width,k.pts)||0;x.call(y,k,C,w).style("stroke-width",M).call(p.stroke,R)}},5225:function(f,m,u){var p=u(1828);f.exports=function(y,b){for(var x=0;xge&&fe[pe].gap;)pe--;for(Oe=fe[pe].s,ne=fe.length-1;ne>pe;ne--)fe[ne].s=Oe;for(;geTe[z]&&z=0;V--){var N=x[V];if(N.type==="scatter"&&N.xaxis===M.xaxis&&N.yaxis===M.yaxis){N.opacity=void 0;break}}}}}},7438:function(f,m,u){var p=u(1828),v=u(3972),y=u(2196),b=u(7581),x=u(4098),k=u(7513),C=u(3927),w=u(565),T=u(9508),R=u(1058),M=u(4039),I=u(2410),V=u(8908),N=u(1828).coercePattern;f.exports=function(z,U,Q,B){function E(fe,ee){return p.coerce(z,U,y,fe,ee)}var W=k(z,U,B,E);if(W||(U.visible=!1),!!U.visible){C(z,U,B,E),E("xhoverformat"),E("yhoverformat");var Y=w(z,U,B,E);B.scattermode==="group"&&U.orientation===void 0&&E("orientation","v");var ie=!Y&&W=Math.min(Qe,ze)&&z<=Math.max(Qe,ze)?0:1/0}var Xe=Math.max(3,Ce.mrc||0),ct=1-1/Xe,pt=Math.abs(N.c2p(Ce.x)-z);return pt=Math.min(Qe,ze)&&U<=Math.max(Qe,ze)?0:1/0}var Xe=Math.max(3,Ce.mrc||0),ct=1-1/Xe,pt=Math.abs(F.c2p(Ce.y)-U);return ptSe!=oe>=Se&&(te=re[De-1][0],se=re[De][0],oe-ue&&(ye=te+(se-te)*(Se-ue)/(oe-ue),xe=Math.min(xe,ye),Le=Math.max(Le,ye)));xe=Math.max(xe,0),Le=Math.min(Le,N._length);var le=x.defaultLine;return x.opacity(V.fillcolor)?le=V.fillcolor:x.opacity((V.line||{}).color)&&(le=V.line.color),p.extendFlat(w,{distance:w.maxHoverDistance,x0:xe,x1:Le,y0:Se,y1:Se,color:le,hovertemplate:!1}),delete w.index,V.text&&!Array.isArray(V.text)?w.text=String(V.text):w.text=V.name,[w]}}}},7368:function(f,m,u){var p=u(4098);f.exports={hasLines:p.hasLines,hasMarkers:p.hasMarkers,hasText:p.hasText,isBubble:p.isBubble,attributes:u(2196),layoutAttributes:u(1479),supplyDefaults:u(7438),crossTraceDefaults:u(462),supplyLayoutDefaults:u(9334),calc:u(7761).calc,crossTraceCalc:u(2626),arraysToCalcdata:u(5225),plot:u(7399),colorbar:u(4898),formatLabels:u(8225),style:u(6296).style,styleOnSelect:u(6296).styleOnSelect,hoverPoints:u(3720),selectPoints:u(8002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:u(3612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},1479:function(f){f.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},9334:function(f,m,u){var p=u(1828),v=u(1479);f.exports=function(y,b){function x(C,w){return p.coerce(y,b,v,C,w)}var k=b.barmode==="group";b.scattermode==="group"&&x("scattergap",k?b.bargap:.2)}},1058:function(f,m,u){var p=u(1828).isArrayOrTypedArray,v=u(2869).hasColorscale,y=u(1586);f.exports=function(x,k,C,w,T,R){R||(R={});var M=(x.marker||{}).color;if(T("line.color",C),v(x,"line"))y(x,k,w,T,{prefix:"line.",cLetter:"c"});else{var I=(p(M)?!1:M)||C;T("line.color",I)}T("line.width"),R.noDash||T("line.dash"),R.backoff&&T("line.backoff")}},4621:function(f,m,u){var p=u(1424),v=u(606),y=v.BADNUM,b=v.LOG_CLIP,x=b+.5,k=b-.5,C=u(1828),w=C.segmentsIntersect,T=C.constrain,R=u(7581);f.exports=function(I,V){var N=V.trace||{},F=V.xaxis,z=V.yaxis,U=F.type==="log",Q=z.type==="log",B=F._length,E=z._length,W=V.backoff,Y=N.marker,ie=V.connectGaps,L=V.baseTolerance,me=V.shape,ae=me==="linear",q=N.fill&&N.fill!=="none",fe=[],ee=R.minTolerance,be=I.length,Te=new Array(be),Be=0,ge,ne,pe,G,Oe,xe,Le,ke,$e,Ze,De,Ie,re,ye,te,se;function ue(Tt){var Pt=I[Tt];if(!Pt)return!1;var dn=V.linearized?F.l2p(Pt.x):F.c2p(Pt.x),nn=V.linearized?z.l2p(Pt.y):z.c2p(Pt.y);if(dn===y){if(U&&(dn=F.c2p(Pt.x,!0)),dn===y)return!1;Q&&nn===y&&(dn*=Math.abs(F._m*E*(F._m>0?x:k)/(z._m*B*(z._m>0?x:k)))),dn*=1e3}if(nn===y){if(Q&&(nn=z.c2p(Pt.y,!0)),nn===y)return!1;nn*=1e3}return[dn,nn]}function oe(Tt,Pt,dn,nn){var Wt=dn-Tt,Rt=nn-Pt,fn=.5-Tt,Hn=.5-Pt,nr=Wt*Wt+Rt*Rt,Er=Wt*fn+Rt*Hn;if(Er>0&&Er1||Math.abs(fn.y-dn[0][1])>1)&&(fn=[fn.x,fn.y],nn&&Qe(fn,Tt)ct||Tt[1]Ye)return[T(Tt[0],Xe,ct),T(Tt[1],pt,Ye)]}function Bt(Tt,Pt){if(Tt[0]===Pt[0]&&(Tt[0]===Xe||Tt[0]===ct)||Tt[1]===Pt[1]&&(Tt[1]===pt||Tt[1]===Ye))return!0}function vn(Tt,Pt){var dn=[],nn=Nt(Tt),Wt=Nt(Pt);return nn&&Wt&&Bt(nn,Wt)||(nn&&dn.push(nn),Wt&&dn.push(Wt)),dn}function En(Tt,Pt,dn){return function(nn,Wt){var Rt=Nt(nn),fn=Nt(Wt),Hn=[];if(Rt&&fn&&Bt(Rt,fn))return Hn;Rt&&Hn.push(Rt),fn&&Hn.push(fn);var nr=2*C.constrain((nn[Tt]+Wt[Tt])/2,Pt,dn)-((Rt||nn)[Tt]+(fn||Wt)[Tt]);if(nr){var Er;Rt&&fn?Er=nr>0==Rt[Tt]>fn[Tt]?Rt:fn:Er=Rt||fn,Er[Tt]+=nr}return Hn}}var ln;me==="linear"||me==="spline"?ln=Gt:me==="hv"||me==="vh"?ln=vn:me==="hvh"?ln=En(0,Xe,ct):me==="vhv"&&(ln=En(1,pt,Ye));function Yn(Tt,Pt){var dn=Pt[0]-Tt[0],nn=(Pt[1]-Tt[1])/dn,Wt=(Tt[1]*Pt[0]-Pt[1]*Tt[0])/dn;return Wt>0?[nn>0?Xe:ct,Ye]:[nn>0?ct:Xe,pt]}function an(Tt){var Pt=Tt[0],dn=Tt[1],nn=Pt===Te[Be-1][0],Wt=dn===Te[Be-1][1];if(!(nn&&Wt))if(Be>1){var Rt=Pt===Te[Be-2][0],fn=dn===Te[Be-2][1];nn&&(Pt===Xe||Pt===ct)&&Rt?fn?Be--:Te[Be-1]=Tt:Wt&&(dn===pt||dn===Ye)&&fn?Rt?Be--:Te[Be-1]=Tt:Te[Be++]=Tt}else Te[Be++]=Tt}function wn(Tt){Te[Be-1][0]!==Tt[0]&&Te[Be-1][1]!==Tt[1]&&an([ft,tt]),an(Tt),wt=null,ft=tt=0}var Xn=C.isArrayOrTypedArray(Y);function Un(Tt){if(Tt&&W&&(Tt.i=ge,Tt.d=I,Tt.trace=N,Tt.marker=Xn?Y[Tt.i]:Y,Tt.backoff=W),Se=Tt[0]/B,le=Tt[1]/E,et=Tt[0]ct?ct:0,yt=Tt[1]Ye?Ye:0,et||yt){if(!Be)Te[Be++]=[et||Tt[0],yt||Tt[1]];else if(wt){var Pt=ln(wt,Tt);Pt.length>1&&(wn(Pt[0]),Te[Be++]=Pt[1])}else Xt=ln(Te[Be-1],Tt)[0],Te[Be++]=Xt;var dn=Te[Be-1];et&&yt&&(dn[0]!==et||dn[1]!==yt)?(wt&&(ft!==et&&tt!==yt?an(ft&&tt?Yn(wt,Tt):[ft||et,tt||yt]):ft&&tt&&an([ft,tt])),an([et,yt])):ft-et&&tt-yt&&an([et||ft,yt||tt]),wt=Tt,ft=et,tt=yt}else wt&&wn(ln(wt,Tt)[0]),Te[Be++]=Tt}for(ge=0;geCe(xe,Sn))break;pe=xe,re=$e[0]*ke[0]+$e[1]*ke[1],re>De?(De=re,G=xe,Le=!1):re=I.length||!xe)break;Un(xe),ne=xe}}wt&&an([ft||wt[0],tt||wt[1]]),fe.push(Te.slice(0,Be))}var it=me.slice(me.length-1);if(W&&it!=="h"&&it!=="v"){for(var ut=!1,xt=-1,gt=[],Dt=0;Dt=0?w=V:(w=V=I,I++),w0?Math.max(R,C):0}}},4898:function(f){f.exports={container:"marker",min:"cmin",max:"cmax"}},9508:function(f,m,u){var p=u(7901),v=u(2869).hasColorscale,y=u(1586),b=u(4098);f.exports=function(k,C,w,T,R,M){var I=b.isBubble(k),V=(k.line||{}).color,N;if(M=M||{},V&&(w=V),R("marker.symbol"),R("marker.opacity",I?.7:1),R("marker.size"),M.noAngle||(R("marker.angle"),M.noAngleRef||R("marker.angleref"),M.noStandOff||R("marker.standoff")),R("marker.color",w),v(k,"marker")&&y(k,C,T,R,{prefix:"marker.",cLetter:"c"}),M.noSelect||(R("selected.marker.color"),R("unselected.marker.color"),R("selected.marker.size"),R("unselected.marker.size")),M.noLine||(V&&!Array.isArray(V)&&C.marker.color!==V?N=V:I?N=p.background:N=p.defaultLine,R("marker.line.color",N),v(k,"marker.line")&&y(k,C,T,R,{prefix:"marker.line.",cLetter:"c"}),R("marker.line.width",I?1:0)),I&&(R("marker.sizeref"),R("marker.sizemin"),R("marker.sizemode")),M.gradient){var F=R("marker.gradient.type");F!=="none"&&R("marker.gradient.color")}}},3927:function(f,m,u){var p=u(1828).dateTick0,v=u(606),y=v.ONEWEEK;function b(x,k){return x%y===0?p(k,1):p(k,0)}f.exports=function(k,C,w,T,R){if(R||(R={x:!0,y:!0}),R.x){var M=T("xperiod");M&&(T("xperiod0",b(M,C.xcalendar)),T("xperiodalignment"))}if(R.y){var I=T("yperiod");I&&(T("yperiod0",b(I,C.ycalendar)),T("yperiodalignment"))}}},7399:function(f,m,u){var p=u(9898),v=u(3972),y=u(1828),b=y.ensureSingle,x=y.identity,k=u(1424),C=u(4098),w=u(4621),T=u(8687),R=u(1082).tester;f.exports=function(F,z,U,Q,B,E){var W,Y,ie=!B,L=!!B&&B.duration>0,me=T(F,z,U);if(W=Q.selectAll("g.trace").data(me,function(q){return q[0].trace.uid}),W.enter().append("g").attr("class",function(q){return"trace scatter trace"+q[0].trace.uid}).style("stroke-miterlimit",2),W.order(),M(F,W,z),L){E&&(Y=E());var ae=p.transition().duration(B.duration).ease(B.easing).each("end",function(){Y&&Y()}).each("interrupt",function(){Y&&Y()});ae.each(function(){Q.selectAll("g.trace").each(function(q,fe){I(F,fe,z,q,me,this,B)})})}else W.each(function(q,fe){I(F,fe,z,q,me,this,B)});ie&&W.exit().remove(),Q.selectAll("path:not([d])").remove()};function M(N,F,z){F.each(function(U){var Q=b(p.select(this),"g","fills");k.setClipUrl(Q,z.layerClipId,N);var B=U[0].trace,E=[];B._ownfill&&E.push("_ownFill"),B._nexttrace&&E.push("_nextFill");var W=Q.selectAll("g").data(E,x);W.enter().append("g"),W.exit().each(function(Y){B[Y]=null}).remove(),W.order().each(function(Y){B[Y]=b(p.select(this),"path","js-fill")})})}function I(N,F,z,U,Q,B,E){var W=N._context.staticPlot,Y;V(N,F,z,U,Q);var ie=!!E&&E.duration>0;function L(tt){return ie?tt.transition():tt}var me=z.xaxis,ae=z.yaxis,q=U[0].trace,fe=q.line,ee=p.select(B),be=b(ee,"g","errorbars"),Te=b(ee,"g","lines"),Be=b(ee,"g","points"),ge=b(ee,"g","text");if(v.getComponentMethod("errorbars","plot")(N,be,z,E),q.visible!==!0)return;L(ee).style("opacity",q.opacity);var ne,pe,G=q.fill.charAt(q.fill.length-1);G!=="x"&&G!=="y"&&(G=""),U[0][z.isRangePlot?"nodeRangePlot3":"node3"]=ee;var Oe="",xe=[],Le=q._prevtrace;Le&&(Oe=Le._prevRevpath||"",pe=Le._nextFill,xe=Le._polygons);var ke,$e,Ze="",De="",Ie,re,ye,te,se,ue,oe,Se=[],le=y.noop;if(ne=q._ownFill,C.hasLines(q)||q.fill!=="none"){for(pe&&pe.datum(U),["hv","vh","hvh","vhv"].indexOf(fe.shape)!==-1?(Ie=k.steps(fe.shape),re=k.steps(fe.shape.split("").reverse().join(""))):fe.shape==="spline"?Ie=re=function(tt){var wt=tt[tt.length-1];return tt.length>1&&tt[0][0]===wt[0]&&tt[0][1]===wt[1]?k.smoothclosed(tt.slice(1),fe.smoothing):k.smoothopen(tt,fe.smoothing)}:Ie=re=function(tt){return"M"+tt.join("L")},ye=function(tt){return re(tt.reverse())},Se=w(U,{xaxis:me,yaxis:ae,trace:q,connectGaps:q.connectgaps,baseTolerance:Math.max(fe.width||1,3)/4,shape:fe.shape,backoff:fe.backoff,simplify:fe.simplify,fill:q.fill}),oe=q._polygons=new Array(Se.length),Y=0;Y=W[0]&&ee.x<=W[1]&&ee.y>=Y[0]&&ee.y<=Y[1]}),ae=Math.ceil(me.length/L),q=0;Q.forEach(function(ee,be){var Te=ee[0].trace;C.hasMarkers(Te)&&Te.marker.maxdisplayed>0&&beW&&(W=me,Y=L)}}return W?U(Y):x};case"rms":return function(Q,B){for(var E=0,W=0,Y=0;Y":return function(E){return Q(E)>B};case">=":return function(E){return Q(E)>=B};case"[]":return function(E){var W=Q(E);return W>=B[0]&&W<=B[1]};case"()":return function(E){var W=Q(E);return W>B[0]&&W=B[0]&&WB[0]&&W<=B[1]};case"][":return function(E){var W=Q(E);return W<=B[0]||W>=B[1]};case")(":return function(E){var W=Q(E);return WB[1]};case"](":return function(E){var W=Q(E);return W<=B[0]||W>B[1]};case")[":return function(E){var W=Q(E);return W=B[1]};case"{}":return function(E){return B.indexOf(Q(E))!==-1};case"}{":return function(E){return B.indexOf(Q(E))===-1}}}},3102:function(f,m,u){var p=u(1828),v=u(6281),y=u(4875),b=u(9344).p;m.moduleType="transform",m.name="groupby",m.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"data_array",dflt:[],editType:"calc"},nameformat:{valType:"string",editType:"calc"},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc"},value:{valType:"any",dflt:{},editType:"calc",_compareAsJSON:!0},editType:"calc"},editType:"calc"},m.supplyDefaults=function(k,C,w){var T,R={};function M(U,Q){return p.coerce(k,R,m.attributes,U,Q)}var I=M("enabled");if(!I)return R;M("groups"),M("nameformat",w._dataLength>1?"%{group} (%{trace})":"%{group}");var V=k.styles,N=R.styles=[];if(V)for(T=0;T1&&b.indexOf("Macintosh")!==-1&&b.indexOf("Safari")!==-1&&(x=!0),x}},9898:function(f,m,u){var p,v;(function(){var y={version:"3.8.0"},b=[].slice,x=function(D){return b.call(D)},k=self.document;function C(D){return D&&(D.ownerDocument||D.document||D).documentElement}function w(D){return D&&(D.ownerDocument&&D.ownerDocument.defaultView||D.document&&D||D.defaultView)}if(k)try{x(k.documentElement.childNodes)[0].nodeType}catch{x=function(X){for(var de=X.length,we=new Array(de);de--;)we[de]=X[de];return we}}if(Date.now||(Date.now=function(){return+new Date}),k)try{k.createElement("DIV").style.setProperty("opacity",0,"")}catch{var T=this.Element.prototype,R=T.setAttribute,M=T.setAttributeNS,I=this.CSSStyleDeclaration.prototype,V=I.setProperty;T.setAttribute=function(X,de){R.call(this,X,de+"")},T.setAttributeNS=function(X,de,we){M.call(this,X,de,we+"")},I.setProperty=function(X,de,we){V.call(this,X,de+"",we)}}y.ascending=N;function N(D,X){return DX?1:D>=X?0:NaN}y.descending=function(D,X){return XD?1:X>=D?0:NaN},y.min=function(D,X){var de=-1,we=D.length,Pe,Re;if(arguments.length===1){for(;++de=Re){Pe=Re;break}for(;++deRe&&(Pe=Re)}else{for(;++de=Re){Pe=Re;break}for(;++deRe&&(Pe=Re)}return Pe},y.max=function(D,X){var de=-1,we=D.length,Pe,Re;if(arguments.length===1){for(;++de=Re){Pe=Re;break}for(;++dePe&&(Pe=Re)}else{for(;++de=Re){Pe=Re;break}for(;++dePe&&(Pe=Re)}return Pe},y.extent=function(D,X){var de=-1,we=D.length,Pe,Re,Ke;if(arguments.length===1){for(;++de=Re){Pe=Ke=Re;break}for(;++deRe&&(Pe=Re),Ke=Re){Pe=Ke=Re;break}for(;++deRe&&(Pe=Re),Ke1)return Ke/(rt-1)},y.deviation=function(){var D=y.variance.apply(this,arguments);return D&&Math.sqrt(D)};function U(D){return{left:function(X,de,we,Pe){for(arguments.length<3&&(we=0),arguments.length<4&&(Pe=X.length);we>>1;D(X[Re],de)<0?we=Re+1:Pe=Re}return we},right:function(X,de,we,Pe){for(arguments.length<3&&(we=0),arguments.length<4&&(Pe=X.length);we>>1;D(X[Re],de)>0?Pe=Re:we=Re+1}return we}}}var Q=U(N);y.bisectLeft=Q.left,y.bisect=y.bisectRight=Q.right,y.bisector=function(D){return U(D.length===1?function(X,de){return N(D(X),de)}:D)},y.shuffle=function(D,X,de){(we=arguments.length)<3&&(de=D.length,we<2&&(X=0));for(var we=de-X,Pe,Re;we;)Re=Math.random()*we--|0,Pe=D[we+X],D[we+X]=D[Re+X],D[Re+X]=Pe;return D},y.permute=function(D,X){for(var de=X.length,we=new Array(de);de--;)we[de]=D[X[de]];return we},y.pairs=function(D){for(var X=0,de=D.length-1,we=D[0],Pe=new Array(de<0?0:de);X=0;)for(Ke=D[X],de=Ke.length;--de>=0;)Re[--Pe]=Ke[de];return Re};var E=Math.abs;y.range=function(D,X,de){if(arguments.length<3&&(de=1,arguments.length<2&&(X=D,D=0)),(X-D)/de===1/0)throw new Error("infinite range");var we=[],Pe=W(E(de)),Re=-1,Ke;if(D*=Pe,X*=Pe,de*=Pe,de<0)for(;(Ke=D+de*++Re)>X;)we.push(Ke/Pe);else for(;(Ke=D+de*++Re)=X.length)return Pe?Pe.call(D,rt):we?rt.sort(we):rt;for(var bt=-1,Zt=rt.length,Ut=X[vt++],gn,An,jt,tn=new ie,hn;++bt=X.length)return We;var vt=[],bt=de[rt++];return We.forEach(function(Zt,Ut){vt.push({key:Zt,values:Ke(Ut,rt)})}),bt?vt.sort(function(Zt,Ut){return bt(Zt.key,Ut.key)}):vt}return D.map=function(We,rt){return Re(rt,We,0)},D.entries=function(We){return Ke(Re(y.map,We,0),0)},D.key=function(We){return X.push(We),D},D.sortKeys=function(We){return de[X.length-1]=We,D},D.sortValues=function(We){return we=We,D},D.rollup=function(We){return Pe=We,D},D},y.set=function(D){var X=new ge;if(D)for(var de=0,we=D.length;de=0&&(we=D.slice(de+1),D=D.slice(0,de)),D)return arguments.length<2?this[D].on(we):this[D].on(we,X);if(arguments.length===2){if(X==null)for(D in this)this.hasOwnProperty(D)&&this[D].on(we,null);return this}};function ke(D){var X=[],de=new ie;function we(){for(var Pe=X,Re=-1,Ke=Pe.length,We;++Re=0&&(de=D.slice(0,X))!=="xmlns"&&(D=D.slice(X+1)),Qe.hasOwnProperty(de)?{space:Qe[de],local:D}:D}},oe.attr=function(D,X){if(arguments.length<2){if(typeof D=="string"){var de=this.node();return D=y.ns.qualify(D),D.local?de.getAttributeNS(D.space,D.local):de.getAttribute(D)}for(X in D)this.each(ze(X,D[X]));return this}return this.each(ze(D,X))};function ze(D,X){D=y.ns.qualify(D);function de(){this.removeAttribute(D)}function we(){this.removeAttributeNS(D.space,D.local)}function Pe(){this.setAttribute(D,X)}function Re(){this.setAttributeNS(D.space,D.local,X)}function Ke(){var rt=X.apply(this,arguments);rt==null?this.removeAttribute(D):this.setAttribute(D,rt)}function We(){var rt=X.apply(this,arguments);rt==null?this.removeAttributeNS(D.space,D.local):this.setAttributeNS(D.space,D.local,rt)}return X==null?D.local?we:de:typeof X=="function"?D.local?We:Ke:D.local?Re:Pe}function Xe(D){return D.trim().replace(/\s+/g," ")}oe.classed=function(D,X){if(arguments.length<2){if(typeof D=="string"){var de=this.node(),we=(D=pt(D)).length,Pe=-1;if(X=de.classList){for(;++Pe=0;)(Re=de[we])&&(Pe&&Pe!==Re.nextSibling&&Pe.parentNode.insertBefore(Re,Pe),Pe=Re);return this},oe.sort=function(D){D=Gt.apply(this,arguments);for(var X=-1,de=this.length;++X=X&&(X=Pe+1);!(rt=Ke[X])&&++X0&&(D=D.slice(0,Pe));var Ke=Yn.get(D);Ke&&(D=Ke,Re=wn);function We(){var bt=this[we];bt&&(this.removeEventListener(D,bt,bt.$),delete this[we])}function rt(){var bt=Re(X,x(arguments));We.call(this),this.addEventListener(D,this[we]=bt,bt.$=de),bt._=X}function vt(){var bt=new RegExp("^__on([^.]+)"+y.requote(D)+"$"),Zt;for(var Ut in this)if(Zt=Ut.match(bt)){var gn=this[Ut];this.removeEventListener(Zt[1],gn,gn.$),delete this[Ut]}}return Pe?X?rt:We:X?xe:vt}var Yn=y.map({mouseenter:"mouseover",mouseleave:"mouseout"});k&&Yn.forEach(function(D){"on"+D in k&&Yn.remove(D)});function an(D,X){return function(de){var we=y.event;y.event=de,X[0]=this.__data__;try{D.apply(this,X)}finally{y.event=we}}}function wn(D,X){var de=an(D,X);return function(we){var Pe=this,Re=we.relatedTarget;(!Re||Re!==Pe&&!(Re.compareDocumentPosition(Pe)&8))&&de.call(Pe,we)}}var Xn,Un=0;function Sn(D){var X=".dragsuppress-"+ ++Un,de="click"+X,we=y.select(w(D)).on("touchmove"+X,$e).on("dragstart"+X,$e).on("selectstart"+X,$e);if(Xn==null&&(Xn="onselectstart"in D?!1:G(D.style,"userSelect")),Xn){var Pe=C(D).style,Re=Pe[Xn];Pe[Xn]="none"}return function(Ke){if(we.on(X,null),Xn&&(Pe[Xn]=Re),Ke){var We=function(){we.on(de,null)};we.on(de,function(){$e(),We()},!0),setTimeout(We,0)}}}y.mouse=function(D){return ut(D,Ze())};var it=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ut(D,X){X.changedTouches&&(X=X.changedTouches[0]);var de=D.ownerSVGElement||D;if(de.createSVGPoint){var we=de.createSVGPoint();if(it<0){var Pe=w(D);if(Pe.scrollX||Pe.scrollY){de=y.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Re=de[0][0].getScreenCTM();it=!(Re.f||Re.e),de.remove()}}return it?(we.x=X.pageX,we.y=X.pageY):(we.x=X.clientX,we.y=X.clientY),we=we.matrixTransform(D.getScreenCTM().inverse()),[we.x,we.y]}var Ke=D.getBoundingClientRect();return[X.clientX-Ke.left-D.clientLeft,X.clientY-Ke.top-D.clientTop]}y.touch=function(D,X,de){if(arguments.length<3&&(de=X,X=Ze().changedTouches),X){for(var we=0,Pe=X.length,Re;we1?mt:D<-1?-mt:Math.asin(D)}function Wt(D){return((D=Math.exp(D))-1/D)/2}function Rt(D){return((D=Math.exp(D))+1/D)/2}function fn(D){return((D=Math.exp(2*D))-1)/(D+1)}var Hn=Math.SQRT2,nr=2,Er=4;y.interpolateZoom=function(D,X){var de=D[0],we=D[1],Pe=D[2],Re=X[0],Ke=X[1],We=X[2],rt=Re-de,vt=Ke-we,bt=rt*rt+vt*vt,Zt,Ut;if(bt0&&(Lr=Lr.transition().duration(Ke)),Lr.call(Pn.event)}function no(){tn&&tn.domain(jt.range().map(function(Lr){return(Lr-D.x)/D.k}).map(jt.invert)),_n&&_n.domain(hn.range().map(function(Lr){return(Lr-D.y)/D.k}).map(hn.invert))}function fo(Lr){We++||Lr({type:"zoomstart"})}function ts(Lr){no(),Lr({type:"zoom",scale:D.k,translate:[D.x,D.y]})}function xo(Lr){--We||(Lr({type:"zoomend"}),de=null)}function go(){var Lr=this,Do=An.of(Lr,arguments),ms=0,_s=y.select(w(Lr)).on(vt,Yi).on(bt,$i),Ba=yn(y.mouse(Lr)),di=Sn(Lr);rc.call(Lr),fo(Do);function Yi(){ms=1,Jr(y.mouse(Lr),Ba),ts(Do)}function $i(){_s.on(vt,null).on(bt,null),di(ms),xo(Do)}}function js(){var Lr=this,Do=An.of(Lr,arguments),ms={},_s=0,Ba,di=".zoom-"+y.event.changedTouches[0].identifier,Yi="touchmove"+di,$i="touchend"+di,Uc=[],Ki=y.select(Lr),kc=Sn(Lr);ea(),fo(Do),Ki.on(rt,null).on(Ut,ea);function Hl(){var Ul=y.touches(Lr);return Ba=D.k,Ul.forEach(function(Li){Li.identifier in ms&&(ms[Li.identifier]=yn(Li))}),Ul}function ea(){var Ul=y.event.target;y.select(Ul).on(Yi,Ku).on($i,Df),Uc.push(Ul);for(var Li=y.event.changedTouches,Wl=0,Ii=Li.length;Wl1){var Nd=ta[0],Ju=ta[1],Om=Nd[0]-Ju[0],Bd=Nd[1]-Ju[1];_s=Om*Om+Bd*Bd}}function Ku(){var Ul=y.touches(Lr),Li,Wl,Ii,ta;rc.call(Lr);for(var Ac=0,Nd=Ul.length;Ac1?1:X,de=de<0?0:de>1?1:de,Pe=de<=.5?de*(1+X):de+X-de*X,we=2*de-Pe;function Re(We){return We>360?We-=360:We<0&&(We+=360),We<60?we+(Pe-we)*We/60:We<180?Pe:We<240?we+(Pe-we)*(240-We)/60:we}function Ke(We){return Math.round(Re(We)*255)}return new Ht(Ke(D+120),Ke(D),Ke(D-120))}y.hcl=_r;function _r(D,X,de){return this instanceof _r?(this.h=+D,this.c=+X,void(this.l=+de)):arguments.length<2?D instanceof _r?new _r(D.h,D.c,D.l):D instanceof sr?St(D.l,D.a,D.b):St((D=Tn((D=y.rgb(D)).r,D.g,D.b)).l,D.a,D.b):new _r(D,X,de)}var Rn=_r.prototype=new Br;Rn.brighter=function(D){return new _r(this.h,this.c,Math.min(100,this.l+Sr*(arguments.length?D:1)))},Rn.darker=function(D){return new _r(this.h,this.c,Math.max(0,this.l-Sr*(arguments.length?D:1)))},Rn.rgb=function(){return xr(this.h,this.c,this.l).rgb()};function xr(D,X,de){return isNaN(D)&&(D=0),isNaN(X)&&(X=0),new sr(de,Math.cos(D*=Tt)*X,Math.sin(D)*X)}y.lab=sr;function sr(D,X,de){return this instanceof sr?(this.l=+D,this.a=+X,void(this.b=+de)):arguments.length<2?D instanceof sr?new sr(D.l,D.a,D.b):D instanceof _r?xr(D.h,D.c,D.l):Tn((D=Ht(D)).r,D.g,D.b):new sr(D,X,de)}var Sr=18,ao=.95047,Oo=1,wr=1.08883,Fe=sr.prototype=new Br;Fe.brighter=function(D){return new sr(Math.min(100,this.l+Sr*(arguments.length?D:1)),this.a,this.b)},Fe.darker=function(D){return new sr(Math.max(0,this.l-Sr*(arguments.length?D:1)),this.a,this.b)},Fe.rgb=function(){return Ee(this.l,this.a,this.b)};function Ee(D,X,de){var we=(D+16)/116,Pe=we+X/500,Re=we-de/200;return Pe=Ct(Pe)*ao,we=Ct(we)*Oo,Re=Ct(Re)*wr,new Ht(Ft(3.2404542*Pe-1.5371385*we-.4985314*Re),Ft(-.969266*Pe+1.8760108*we+.041556*Re),Ft(.0556434*Pe-.2040259*we+1.0572252*Re))}function St(D,X,de){return D>0?new _r(Math.atan2(de,X)*Pt,Math.sqrt(X*X+de*de),D):new _r(NaN,NaN,D)}function Ct(D){return D>.206893034?D*D*D:(D-.13793103448275862)/7.787037}function Lt(D){return D>.008856?Math.pow(D,.3333333333333333):7.787037*D+.13793103448275862}function Ft(D){return Math.round(255*(D<=.00304?12.92*D:1.055*Math.pow(D,.4166666666666667)-.055))}y.rgb=Ht;function Ht(D,X,de){return this instanceof Ht?(this.r=~~D,this.g=~~X,void(this.b=~~de)):arguments.length<2?D instanceof Ht?new Ht(D.r,D.g,D.b):Jt(""+D,Ht,jr):new Ht(D,X,de)}function $t(D){return new Ht(D>>16,D>>8&255,D&255)}function Mt(D){return $t(D)+""}var en=Ht.prototype=new Br;en.brighter=function(D){D=Math.pow(.7,arguments.length?D:1);var X=this.r,de=this.g,we=this.b,Pe=30;return!X&&!de&&!we?new Ht(Pe,Pe,Pe):(X&&X>4,we=we>>4|we,Pe=rt&240,Pe=Pe>>4|Pe,Re=rt&15,Re=Re<<4|Re):D.length===7&&(we=(rt&16711680)>>16,Pe=(rt&65280)>>8,Re=rt&255)),X(we,Pe,Re))}function rn(D,X,de){var we=Math.min(D/=255,X/=255,de/=255),Pe=Math.max(D,X,de),Re=Pe-we,Ke,We,rt=(Pe+we)/2;return Re?(We=rt<.5?Re/(Pe+we):Re/(2-Pe-we),D==Pe?Ke=(X-de)/Re+(X0&&rt<1?0:Ke),new kr(Ke,We,rt)}function Tn(D,X,de){D=On(D),X=On(X),de=On(de);var we=Lt((.4124564*D+.3575761*X+.1804375*de)/ao),Pe=Lt((.2126729*D+.7151522*X+.072175*de)/Oo),Re=Lt((.0193339*D+.119192*X+.9503041*de)/wr);return sr(116*Pe-16,500*(we-Pe),200*(Pe-Re))}function On(D){return(D/=255)<=.04045?D/12.92:Math.pow((D+.055)/1.055,2.4)}function pn(D){var X=parseFloat(D);return D.charAt(D.length-1)==="%"?Math.round(X*2.55):X}var Jn=y.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Jn.forEach(function(D,X){Jn.set(D,$t(X))});function Fn(D){return typeof D=="function"?D:function(){return D}}y.functor=Fn,y.xhr=zr(ne);function zr(D){return function(X,de,we){return arguments.length===2&&typeof de=="function"&&(we=de,de=null),dr(X,de,D,we)}}function dr(D,X,de,we){var Pe={},Re=y.dispatch("beforesend","progress","load","error"),Ke={},We=new XMLHttpRequest,rt=null;self.XDomainRequest&&!("withCredentials"in We)&&/^(http(s)?:)?\/\//.test(D)&&(We=new XDomainRequest),"onload"in We?We.onload=We.onerror=vt:We.onreadystatechange=function(){We.readyState>3&&vt()};function vt(){var bt=We.status,Zt;if(!bt&&ar(We)||bt>=200&&bt<300||bt===304){try{Zt=de.call(Pe,We)}catch(Ut){Re.error.call(Pe,Ut);return}Re.load.call(Pe,Zt)}else Re.error.call(Pe,We)}return We.onprogress=function(bt){var Zt=y.event;y.event=bt;try{Re.progress.call(Pe,We)}finally{y.event=Zt}},Pe.header=function(bt,Zt){return bt=(bt+"").toLowerCase(),arguments.length<2?Ke[bt]:(Zt==null?delete Ke[bt]:Ke[bt]=Zt+"",Pe)},Pe.mimeType=function(bt){return arguments.length?(X=bt==null?null:bt+"",Pe):X},Pe.responseType=function(bt){return arguments.length?(rt=bt,Pe):rt},Pe.response=function(bt){return de=bt,Pe},["get","post"].forEach(function(bt){Pe[bt]=function(){return Pe.send.apply(Pe,[bt].concat(x(arguments)))}}),Pe.send=function(bt,Zt,Ut){if(arguments.length===2&&typeof Zt=="function"&&(Ut=Zt,Zt=null),We.open(bt,D,!0),X!=null&&!("accept"in Ke)&&(Ke.accept=X+",*/*"),We.setRequestHeader)for(var gn in Ke)We.setRequestHeader(gn,Ke[gn]);return X!=null&&We.overrideMimeType&&We.overrideMimeType(X),rt!=null&&(We.responseType=rt),Ut!=null&&Pe.on("error",Ut).on("load",function(An){Ut(null,An)}),Re.beforesend.call(Pe,We),We.send(Zt??null),Pe},Pe.abort=function(){return We.abort(),Pe},y.rebind(Pe,Re,"on"),we==null?Pe:Pe.get(Hr(we))}function Hr(D){return D.length===1?function(X,de){D(X==null?de:null)}:D}function ar(D){var X=D.responseType;return X&&X!=="text"?D.response:D.responseText}y.dsv=function(D,X){var de=new RegExp('["'+D+` +]`),we=D.charCodeAt(0);function Pe(vt,bt,Zt){arguments.length<3&&(Zt=bt,bt=null);var Ut=dr(vt,X,bt==null?Re:Ke(bt),Zt);return Ut.row=function(gn){return arguments.length?Ut.response((bt=gn)==null?Re:Ke(gn)):bt},Ut}function Re(vt){return Pe.parse(vt.responseText)}function Ke(vt){return function(bt){return Pe.parse(bt.responseText,vt)}}Pe.parse=function(vt,bt){var Zt;return Pe.parseRows(vt,function(Ut,gn){if(Zt)return Zt(Ut,gn-1);var An=function(jt){for(var tn={},hn=Ut.length,_n=0;_n=An)return Ut;if(_n)return _n=!1,Zt;var cr=jt;if(vt.charCodeAt(cr)===34){for(var Zr=cr;Zr++24?(isFinite(X)&&(clearTimeout(ko),ko=setTimeout(Ko,X)),to=0):(to=1,Es(Ko))}y.timer.flush=function(){ds(),qs()};function ds(){for(var D=Date.now(),X=ur;X;)D>=X.t&&X.c(D-X.t)&&(X.c=null),X=X.n;return D}function qs(){for(var D,X=ur,de=1/0;X;)X.c?(X.t=0;--We)jt.push(Pe[vt[Zt[We]][2]]);for(We=+gn;We1&&dn(D[de[we-2]],D[de[we-1]],D[Pe])<=0;)--we;de[we++]=Pe}return de.slice(0,we)}function vc(D,X){return D[0]-X[0]||D[1]-X[1]}y.geom.polygon=function(D){return re(D,ii),D};var ii=y.geom.polygon.prototype=[];ii.area=function(){for(var D=-1,X=this.length,de,we=this[X-1],Pe=0;++Dgt)We=We.L;else if(Ke=X-zi(We,de),Ke>gt){if(!We.R){we=We;break}We=We.R}else{Re>-gt?(we=We.P,Pe=We):Ke>-gt?(we=We,Pe=We.N):we=Pe=We;break}var rt=sa(D);if(nu.insert(we,rt),!(!we&&!Pe)){if(we===Pe){yl(we),Pe=sa(we.site),nu.insert(rt,Pe),rt.edge=Pe.edge=Za(we.site,rt.site),Fa(we),Fa(Pe);return}if(!Pe){rt.edge=Za(we.site,rt.site);return}yl(we),yl(Pe);var vt=we.site,bt=vt.x,Zt=vt.y,Ut=D.x-bt,gn=D.y-Zt,An=Pe.site,jt=An.x-bt,tn=An.y-Zt,hn=2*(Ut*tn-gn*jt),_n=Ut*Ut+gn*gn,Pn=jt*jt+tn*tn,yn={x:(tn*_n-gn*Pn)/hn+bt,y:(Ut*Pn-jt*_n)/hn+Zt};zu(Pe.edge,vt,An,yn),rt.edge=Za(vt,D,null,yn),Pe.edge=Za(D,An,null,yn),Fa(we),Fa(Pe)}}function Po(D,X){var de=D.site,we=de.x,Pe=de.y,Re=Pe-X;if(!Re)return we;var Ke=D.P;if(!Ke)return-1/0;de=Ke.site;var We=de.x,rt=de.y,vt=rt-X;if(!vt)return We;var bt=We-we,Zt=1/Re-1/vt,Ut=bt/vt;return Zt?(-Ut+Math.sqrt(Ut*Ut-2*Zt*(bt*bt/(-2*vt)-rt+vt/2+Pe-Re/2)))/Zt+we:(we+We)/2}function zi(D,X){var de=D.N;if(de)return Po(de,X);var we=D.site;return we.y===X?we.x:1/0}function fr(D){this.site=D,this.edges=[]}fr.prototype.prepare=function(){for(var D=this.edges,X=D.length,de;X--;)de=D[X].edge,(!de.b||!de.a)&&D.splice(X,1);return D.sort(xi),D.length};function Qa(D){for(var X=D[0][0],de=D[1][0],we=D[0][1],Pe=D[1][1],Re,Ke,We,rt,vt=ra,bt=vt.length,Zt,Ut,gn,An,jt,tn;bt--;)if(Zt=vt[bt],!(!Zt||!Zt.prepare()))for(gn=Zt.edges,An=gn.length,Ut=0;Utgt||E(rt-Ke)>gt)&&(gn.splice(Ut,0,new _d(Vu(Zt.site,tn,E(We-X)gt?{x:X,y:E(Re-X)gt?{x:E(Ke-Pe)gt?{x:de,y:E(Re-de)gt?{x:E(Ke-we)=-Dt)){var Ut=rt*rt+vt*vt,gn=bt*bt+tn*tn,An=(tn*Ut-vt*gn)/Zt,jt=(rt*gn-bt*Ut)/Zt,tn=jt+We,hn=Ri.pop()||new za;hn.arc=D,hn.site=Pe,hn.x=An+Ke,hn.y=tn+Math.sqrt(An*An+jt*jt),hn.cy=tn,D.circle=hn;for(var _n=null,Pn=oa._;Pn;)if(hn.y0)){if(jt/=gn,gn<0){if(jt0){if(jt>Ut)return;jt>Zt&&(Zt=jt)}if(jt=de-We,!(!gn&&jt<0)){if(jt/=gn,gn<0){if(jt>Ut)return;jt>Zt&&(Zt=jt)}else if(gn>0){if(jt0)){if(jt/=An,An<0){if(jt0){if(jt>Ut)return;jt>Zt&&(Zt=jt)}if(jt=we-rt,!(!An&&jt<0)){if(jt/=An,An<0){if(jt>Ut)return;jt>Zt&&(Zt=jt)}else if(An>0){if(jt0&&(Pe.a={x:We+Zt*gn,y:rt+Zt*An}),Ut<1&&(Pe.b={x:We+Ut*gn,y:rt+Ut*An}),Pe}}}}}}function li(D){for(var X=ya,de=Zo(D[0][0],D[0][1],D[1][0],D[1][1]),we=X.length,Pe;we--;)Pe=X[we],(!Ka(Pe,D)||!de(Pe)||E(Pe.a.x-Pe.b.x)=Re)return;if(bt>Ut){if(!we)we={x:An,y:Ke};else if(we.y>=We)return;de={x:An,y:We}}else{if(!we)we={x:An,y:We};else if(we.y1)if(bt>Ut){if(!we)we={x:(Ke-hn)/tn,y:Ke};else if(we.y>=We)return;de={x:(We-hn)/tn,y:We}}else{if(!we)we={x:(We-hn)/tn,y:We};else if(we.y=Re)return;de={x:Re,y:tn*Re+hn}}else{if(!we)we={x:Re,y:tn*Re+hn};else if(we.x=bt&&hn.x<=Ut&&hn.y>=Zt&&hn.y<=gn?[[bt,gn],[Ut,gn],[Ut,Zt],[bt,Zt]]:[];_n.point=rt[jt]}),vt}function We(rt){return rt.map(function(vt,bt){return{x:Math.round(we(vt,bt)/gt)*gt,y:Math.round(Pe(vt,bt)/gt)*gt,i:bt}})}return Ke.links=function(rt){return lm(We(rt)).edges.filter(function(vt){return vt.l&&vt.r}).map(function(vt){return{source:rt[vt.l.i],target:rt[vt.r.i]}})},Ke.triangles=function(rt){var vt=[];return lm(We(rt)).cells.forEach(function(bt,Zt){for(var Ut=bt.site,gn=bt.edges.sort(xi),An=-1,jt=gn.length,tn,hn=gn[jt-1].edge,_n=hn.l===Ut?hn.r:hn.l;++AnPn&&(Pn=bt.x),bt.y>yn&&(yn=bt.y),gn.push(bt.x),An.push(bt.y);else for(jt=0;jtPn&&(Pn=cr),Zr>yn&&(yn=Zr),gn.push(cr),An.push(Zr)}var Jr=Pn-hn,Ar=yn-_n;Jr>Ar?yn=_n+Jr:Pn=hn+Ar;function no(xo,go,js,ti,ba,Lr,Do,ms){if(!(isNaN(js)||isNaN(ti)))if(xo.leaf){var _s=xo.x,Ba=xo.y;if(_s!=null)if(E(_s-js)+E(Ba-ti)<.01)fo(xo,go,js,ti,ba,Lr,Do,ms);else{var di=xo.point;xo.x=xo.y=xo.point=null,fo(xo,di,_s,Ba,ba,Lr,Do,ms),fo(xo,go,js,ti,ba,Lr,Do,ms)}else xo.x=js,xo.y=ti,xo.point=go}else fo(xo,go,js,ti,ba,Lr,Do,ms)}function fo(xo,go,js,ti,ba,Lr,Do,ms){var _s=(ba+Do)*.5,Ba=(Lr+ms)*.5,di=js>=_s,Yi=ti>=Ba,$i=Yi<<1|di;xo.leaf=!1,xo=xo.nodes[$i]||(xo.nodes[$i]=kl()),di?ba=_s:Do=_s,Yi?Lr=Ba:ms=Ba,no(xo,go,js,ti,ba,Lr,Do,ms)}var ts=kl();if(ts.add=function(xo){no(ts,xo,+Zt(xo,++jt),+Ut(xo,jt),hn,_n,Pn,yn)},ts.visit=function(xo){Zi(xo,ts,hn,_n,Pn,yn)},ts.find=function(xo){return PO(ts,xo[0],xo[1],hn,_n,Pn,yn)},jt=-1,X==null){for(;++jtRe||Ut>Ke||gn=cr,Ar=de>=Zr,no=Ar<<1|Jr,fo=no+4;node&&(Re=X.slice(de,Re),We[Ke]?We[Ke]+=Re:We[++Ke]=Re),(we=we[0])===(Pe=Pe[0])?We[Ke]?We[Ke]+=Pe:We[++Ke]=Pe:(We[++Ke]=null,rt.push({i:Ke,x:Zu(we,Pe)})),de=Al.lastIndex;return de=0&&!(we=y.interpolators[de](D,X)););return we}y.interpolators=[function(D,X){var de=typeof X;return(de==="string"?Jn.has(X.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(X)?Np:Ra:X instanceof Br?Np:Array.isArray(X)?Cf:de==="object"&&isNaN(X)?xu:Zu)(D,X)}],y.interpolateArray=Cf;function Cf(D,X){var de=[],we=[],Pe=D.length,Re=X.length,Ke=Math.min(D.length,X.length),We;for(We=0;We=0?D.slice(0,X):D,we=X>=0?D.slice(X+1):"in";return de=kf.get(de)||ci,we=Bp.get(we)||ne,Qp(we(de.apply(null,b.call(arguments,1))))};function Qp(D){return function(X){return X<=0?0:X>=1?1:D(X)}}function ly(D){return function(X){return 1-D(1-X)}}function Xv(D){return function(X){return .5*(X<.5?D(2*X):2-D(2-2*X))}}function Af(D){return D*D}function Fp(D){return D*D*D}function Oc(D){if(D<=0)return 0;if(D>=1)return 1;var X=D*D,de=X*D;return 4*(D<.5?de:3*(D-X)+de-.75)}function Gv(D){return function(X){return Math.pow(X,D)}}function cy(D){return 1-Math.cos(D*mt)}function cm(D){return Math.pow(2,10*(D-1))}function uy(D){return 1-Math.sqrt(1-D*D)}function um(D,X){var de;return arguments.length<2&&(X=.45),arguments.length?de=X/at*Math.asin(1/D):(D=1,de=X/4),function(we){return 1+D*Math.pow(2,-10*we)*Math.sin((we-de)*at/X)}}function MO(D){return D||(D=1.70158),function(X){return X*X*((D+1)*X-D)}}function gh(D){return D<.36363636363636365?7.5625*D*D:D<.7272727272727273?7.5625*(D-=.5454545454545454)*D+.75:D<.9090909090909091?7.5625*(D-=.8181818181818182)*D+.9375:7.5625*(D-=.9545454545454546)*D+.984375}y.interpolateHcl=EO;function EO(D,X){D=y.hcl(D),X=y.hcl(X);var de=D.h,we=D.c,Pe=D.l,Re=X.h-de,Ke=X.c-we,We=X.l-Pe;return isNaN(Ke)&&(Ke=0,we=isNaN(we)?X.c:we),isNaN(Re)?(Re=0,de=isNaN(de)?X.h:de):Re>180?Re-=360:Re<-180&&(Re+=360),function(rt){return xr(de+Re*rt,we+Ke*rt,Pe+We*rt)+""}}y.interpolateHsl=_O;function _O(D,X){D=y.hsl(D),X=y.hsl(X);var de=D.h,we=D.s,Pe=D.l,Re=X.h-de,Ke=X.s-we,We=X.l-Pe;return isNaN(Ke)&&(Ke=0,we=isNaN(we)?X.s:we),isNaN(Re)?(Re=0,de=isNaN(de)?X.h:de):Re>180?Re-=360:Re<-180&&(Re+=360),function(rt){return jr(de+Re*rt,we+Ke*rt,Pe+We*rt)+""}}y.interpolateLab=RO;function RO(D,X){D=y.lab(D),X=y.lab(X);var de=D.l,we=D.a,Pe=D.b,Re=X.l-de,Ke=X.a-we,We=X.b-Pe;return function(rt){return Ee(de+Re*rt,we+Ke*rt,Pe+We*rt)+""}}y.interpolateRound=fm;function fm(D,X){return X-=D,function(de){return Math.round(D+X*de)}}y.transform=function(D){var X=k.createElementNS(y.ns.prefix.svg,"g");return(y.transform=function(de){if(de!=null){X.setAttribute("transform",de);var we=X.transform.baseVal.consolidate()}return new fy(we?we.matrix:jv)})(D)};function fy(D){var X=[D.a,D.b],de=[D.c,D.d],we=dm(X),Pe=Yt(X,de),Re=dm(Hu(de,X,-Pe))||0;X[0]*de[1]180?X+=360:X-D>180&&(D+=360),we.push({i:de.push(Vp(de)+"rotate(",null,")")-2,x:Zu(D,X)})):X&&de.push(Vp(de)+"rotate("+X+")")}function tc(D,X,de,we){D!==X?we.push({i:de.push(Vp(de)+"skewX(",null,")")-2,x:Zu(D,X)}):X&&de.push(Vp(de)+"skewX("+X+")")}function jf(D,X,de,we){if(D[0]!==X[0]||D[1]!==X[1]){var Pe=de.push(Vp(de)+"scale(",null,",",null,")");we.push({i:Pe-4,x:Zu(D[0],X[0])},{i:Pe-2,x:Zu(D[1],X[1])})}else(X[0]!==1||X[1]!==1)&&de.push(Vp(de)+"scale("+X+")")}function qf(D,X){var de=[],we=[];return D=y.transform(D),X=y.transform(X),FS(D.translate,X.translate,de,we),Gs(D.rotate,X.rotate,de,we),tc(D.skew,X.skew,de,we),jf(D.scale,X.scale,de,we),D=X=null,function(Pe){for(var Re=-1,Ke=we.length,We;++Re0?Re=yn:(de.c=null,de.t=NaN,de=null,X.end({type:"end",alpha:Re=0})):yn>0&&(X.start({type:"start",alpha:Re=yn}),de=So(D.tick)),D):Re},D.start=function(){var yn,cr=gn.length,Zr=An.length,Jr=we[0],Ar=we[1],no,fo;for(yn=0;yn=0;)Re.push(bt=vt[rt]),bt.parent=We,bt.depth=We.depth+1;de&&(We.value=0),We.children=vt}else de&&(We.value=+de.call(we,We,We.depth)||0),delete We.children;return Wu(Pe,function(Zt){var Ut,gn;D&&(Ut=Zt.children)&&Ut.sort(D),de&&(gn=Zt.parent)&&(gn.value+=Zt.value)}),Ke}return we.sort=function(Pe){return arguments.length?(D=Pe,we):D},we.children=function(Pe){return arguments.length?(X=Pe,we):X},we.value=function(Pe){return arguments.length?(de=Pe,we):de},we.revalue=function(Pe){return de&&(Pl(Pe,function(Re){Re.children&&(Re.value=0)}),Wu(Pe,function(Re){var Ke;Re.children||(Re.value=+de.call(we,Re,Re.depth)||0),(Ke=Re.parent)&&(Ke.value+=Re.value)})),Pe},we};function xc(D,X){return y.rebind(D,X,"sort","children","value"),D.nodes=D,D.links=qv,D}function Pl(D,X){for(var de=[D];(D=de.pop())!=null;)if(X(D),(Pe=D.children)&&(we=Pe.length))for(var we,Pe;--we>=0;)de.push(Pe[we])}function Wu(D,X){for(var de=[D],we=[];(D=de.pop())!=null;)if(we.push(D),(Ke=D.children)&&(Re=Ke.length))for(var Pe=-1,Re,Ke;++PePe&&(Pe=We),we.push(We)}for(Ke=0;Kewe&&(de=X,we=Pe);return de}function ui(D){return D.reduce(wu,0)}function wu(D,X){return D+X[1]}y.layout.histogram=function(){var D=!0,X=Number,de=Vl,we=py;function Pe(Re,Ut){for(var We=[],rt=Re.map(X,this),vt=de.call(this,rt,Ut),bt=we.call(this,vt,rt,Ut),Zt,Ut=-1,gn=rt.length,An=bt.length-1,jt=D?1:1/gn,tn;++Ut0)for(Ut=-1;++Ut=vt[0]&&tn<=vt[1]&&(Zt=We[y.bisect(bt,tn,1,An)-1],Zt.y+=jt,Zt.push(Re[Ut]));return We}return Pe.value=function(Re){return arguments.length?(X=Re,Pe):X},Pe.range=function(Re){return arguments.length?(de=Fn(Re),Pe):de},Pe.bins=function(Re){return arguments.length?(we=typeof Re=="number"?function(Ke){return IO(Ke,Re)}:Fn(Re),Pe):we},Pe.frequency=function(Re){return arguments.length?(D=!!Re,Pe):D},Pe};function py(D,X){return IO(D,Math.ceil(Math.log(X.length)/Math.LN2+1))}function IO(D,X){for(var de=-1,we=+D[0],Pe=(D[1]-we)/X,Re=[];++de<=X;)Re[de]=Pe*de+we;return Re}function Vl(D){return[y.min(D),y.max(D)]}y.layout.pack=function(){var D=y.layout.hierarchy().sort(Og),X=0,de=[1,1],we;function Pe(Re,Ke){var We=D.call(this,Re,Ke),rt=We[0],vt=de[0],bt=de[1],Zt=we==null?Math.sqrt:typeof we=="function"?we:function(){return we};if(rt.x=rt.y=0,Wu(rt,function(gn){gn.r=+Zt(gn.value)}),Wu(rt,jo),X){var Ut=X*(we?1:Math.max(2*rt.r/vt,2*rt.r/bt))/2;Wu(rt,function(gn){gn.r+=Ut}),Wu(rt,jo),Wu(rt,function(gn){gn.r-=Ut})}return hm(rt,vt/2,bt/2,we?1:1/Math.max(2*rt.r/vt,2*rt.r/bt)),We}return Pe.size=function(Re){return arguments.length?(de=Re,Pe):de},Pe.radius=function(Re){return arguments.length?(we=Re==null||typeof Re=="function"?Re:+Re,Pe):we},Pe.padding=function(Re){return arguments.length?(X=+Re,Pe):X},xc(Pe,D)};function Og(D,X){return D.value-X.value}function Sc(D,X){var de=D._pack_next;D._pack_next=X,X._pack_prev=D,X._pack_next=de,de._pack_prev=X}function Mf(D,X){D._pack_next=X,X._pack_prev=D}function vy(D,X){var de=X.x-D.x,we=X.y-D.y,Pe=D.r+X.r;return .999*Pe*Pe>de*de+we*we}function jo(D){if(!(X=D.children)||!(Ut=X.length))return;var X,de=1/0,we=-1/0,Pe=1/0,Re=-1/0,Ke,We,rt,vt,bt,Zt,Ut;function gn(yn){de=Math.min(yn.x-yn.r,de),we=Math.max(yn.x+yn.r,we),Pe=Math.min(yn.y-yn.r,Pe),Re=Math.max(yn.y+yn.r,Re)}if(X.forEach(zc),Ke=X[0],Ke.x=-Ke.r,Ke.y=0,gn(Ke),Ut>1&&(We=X[1],We.x=We.r,We.y=0,gn(We),Ut>2))for(rt=X[2],yy(Ke,We,rt),gn(rt),Sc(Ke,rt),Ke._pack_prev=rt,Sc(rt,We),We=Ke._pack_next,vt=3;vttn.x&&(tn=cr),cr.depth>hn.depth&&(hn=cr)});var _n=X(jt,tn)/2-jt.x,Pn=de[0]/(tn.x+X(tn,jt)/2+_n),yn=de[1]/(hn.depth||1);Pl(gn,function(cr){cr.x=(cr.x+_n)*Pn,cr.y=cr.depth*yn})}return Ut}function Re(bt){for(var Zt={A:null,children:[bt]},Ut=[Zt],gn;(gn=Ut.pop())!=null;)for(var An=gn.children,jt,tn=0,hn=An.length;tn0&&(ou(Oy(jt,bt,Ut),bt,cr),hn+=cr,_n+=cr),Pn+=jt.m,hn+=gn.m,yn+=tn.m,_n+=An.m;jt&&!wi(An)&&(An.t=jt,An.m+=Pn-_n),gn&&!nc(tn)&&(tn.t=gn,tn.m+=hn-yn,Ut=bt)}return Ut}function vt(bt){bt.x*=de[0],bt.y=bt.depth*de[1]}return Pe.separation=function(bt){return arguments.length?(X=bt,Pe):X},Pe.size=function(bt){return arguments.length?(we=(de=bt)==null?vt:null,Pe):we?null:de},Pe.nodeSize=function(bt){return arguments.length?(we=(de=bt)==null?null:vt,Pe):we?de:null},xc(Pe,D)};function by(D,X){return D.parent==X.parent?1:2}function nc(D){var X=D.children;return X.length?X[0]:D.t}function wi(D){var X=D.children,de;return(de=X.length)?X[de-1]:D.t}function ou(D,X,de){var we=de/(X.i-D.i);X.c-=we,X.s+=de,D.c+=we,X.z+=de,X.m+=de}function Hi(D){for(var X=0,de=0,we=D.children,Pe=we.length,Re;--Pe>=0;)Re=we[Pe],Re.z+=X,Re.m+=X,X+=Re.s+(de+=Re.c)}function Oy(D,X,de){return D.a.parent===X.parent?D.a:de}y.layout.cluster=function(){var D=y.layout.hierarchy().sort(null).value(null),X=by,de=[1,1],we=!1;function Pe(Re,Ke){var We=D.call(this,Re,Ke),rt=We[0],vt,bt=0;Wu(rt,function(jt){var tn=jt.children;tn&&tn.length?(jt.x=Ti(tn),jt.y=Jv(tn)):(jt.x=vt?bt+=X(jt,vt):0,jt.y=0,vt=jt)});var Zt=Ui(rt),Ut=Yu(rt),gn=Zt.x-X(Zt,Ut)/2,An=Ut.x+X(Ut,Zt)/2;return Wu(rt,we?function(jt){jt.x=(jt.x-rt.x)*de[0],jt.y=(rt.y-jt.y)*de[1]}:function(jt){jt.x=(jt.x-gn)/(An-gn)*de[0],jt.y=(1-(rt.y?jt.y/rt.y:1))*de[1]}),We}return Pe.separation=function(Re){return arguments.length?(X=Re,Pe):X},Pe.size=function(Re){return arguments.length?(we=(de=Re)==null,Pe):we?null:de},Pe.nodeSize=function(Re){return arguments.length?(we=(de=Re)!=null,Pe):we?de:null},xc(Pe,D)};function Jv(D){return 1+y.max(D,function(X){return X.y})}function Ti(D){return D.reduce(function(X,de){return X+de.x},0)/D.length}function Ui(D){var X=D.children;return X&&X.length?Ui(X[0]):D}function Yu(D){var X=D.children,de;return X&&(de=X.length)?Yu(X[de-1]):D}y.layout.treemap=function(){var D=y.layout.hierarchy(),X=Math.round,de=[1,1],we=null,Pe=mm,Re=!1,Ke,We="squarify",rt=.5*(1+Math.sqrt(5));function vt(jt,tn){for(var hn=-1,_n=jt.length,Pn,yn;++hn<_n;)yn=(Pn=jt[hn]).value*(tn<0?0:tn),Pn.area=isNaN(yn)||yn<=0?0:yn}function bt(jt){var tn=jt.children;if(tn&&tn.length){var hn=Pe(jt),_n=[],Pn=tn.slice(),yn,cr=1/0,Zr,Jr=We==="slice"?hn.dx:We==="dice"?hn.dy:We==="slice-dice"?jt.depth&1?hn.dy:hn.dx:Math.min(hn.dx,hn.dy),Ar;for(vt(Pn,hn.dx*hn.dy/jt.value),_n.area=0;(Ar=Pn.length)>0;)_n.push(yn=Pn[Ar-1]),_n.area+=yn.area,We!=="squarify"||(Zr=Ut(_n,Jr))<=cr?(Pn.pop(),cr=Zr):(_n.area-=_n.pop().area,gn(_n,Jr,hn,!1),Jr=Math.min(hn.dx,hn.dy),_n.length=_n.area=0,cr=1/0);_n.length&&(gn(_n,Jr,hn,!0),_n.length=_n.area=0),tn.forEach(bt)}}function Zt(jt){var tn=jt.children;if(tn&&tn.length){var hn=Pe(jt),_n=tn.slice(),Pn,yn=[];for(vt(_n,hn.dx*hn.dy/jt.value),yn.area=0;Pn=_n.pop();)yn.push(Pn),yn.area+=Pn.area,Pn.z!=null&&(gn(yn,Pn.z?hn.dx:hn.dy,hn,!_n.length),yn.length=yn.area=0);tn.forEach(Zt)}}function Ut(jt,tn){for(var hn=jt.area,_n,Pn=0,yn=1/0,cr=-1,Zr=jt.length;++crPn&&(Pn=_n));return hn*=hn,tn*=tn,hn?Math.max(tn*Pn*rt/hn,hn/(tn*yn*rt)):1/0}function gn(jt,tn,hn,_n){var Pn=-1,yn=jt.length,cr=hn.x,Zr=hn.y,Jr=tn?X(jt.area/tn):0,Ar;if(tn==hn.dx){for((_n||Jr>hn.dy)&&(Jr=hn.dy);++Pnhn.dx)&&(Jr=hn.dx);++Pn1);return D+X*we*Math.sqrt(-2*Math.log(Re)/Re)}},logNormal:function(){var D=y.random.normal.apply(y,arguments);return function(){return Math.exp(D())}},bates:function(D){var X=y.random.irwinHall(D);return function(){return X()/D}},irwinHall:function(D){return function(){for(var X=0,de=0;de2?xy:Ta,vt=we?vg:dy;return Pe=rt(D,X,vt,de),Re=rt(X,D,vt,bc),We}function We(rt){return Pe(rt)}return We.invert=function(rt){return Re(rt)},We.domain=function(rt){return arguments.length?(D=rt.map(Number),Ke()):D},We.range=function(rt){return arguments.length?(X=rt,Ke()):X},We.rangeRound=function(rt){return We.range(rt).interpolate(fm)},We.clamp=function(rt){return arguments.length?(we=rt,Ke()):we},We.interpolate=function(rt){return arguments.length?(de=rt,Ke()):de},We.ticks=function(rt){return Yp(D,rt)},We.tickFormat=function(rt,vt){return d3_scale_linearTickFormat(D,rt,vt)},We.nice=function(rt){return gm(D,rt),Ke()},We.copy=function(){return Wp(D,X,de,we)},Ke()}function hs(D,X){return y.rebind(D,X,"range","rangeRound","interpolate","clamp")}function gm(D,X){return bh(D,Ks(e0(D,X)[2])),bh(D,Ks(e0(D,X)[2])),D}function e0(D,X){X==null&&(X=10);var de=xg(D),we=de[1]-de[0],Pe=Math.pow(10,Math.floor(Math.log(we/X)/Math.LN10)),Re=X/we*Pe;return Re<=.15?Pe*=10:Re<=.35?Pe*=5:Re<=.75&&(Pe*=2),de[0]=Math.ceil(de[0]/Pe)*Pe,de[1]=Math.floor(de[1]/Pe)*Pe+Pe*.5,de[2]=Pe,de}function Yp(D,X){return y.range.apply(y,e0(D,X))}y.scale.log=function(){return zS(y.scale.linear().domain([0,1]),10,!0,[1,10])};function zS(D,X,de,we){function Pe(We){return(de?Math.log(We<0?0:We):-Math.log(We>0?0:-We))/Math.log(X)}function Re(We){return de?Math.pow(X,We):-Math.pow(X,-We)}function Ke(We){return D(Pe(We))}return Ke.invert=function(We){return Re(D.invert(We))},Ke.domain=function(We){return arguments.length?(de=We[0]>=0,D.domain((we=We.map(Number)).map(Pe)),Ke):we},Ke.base=function(We){return arguments.length?(X=+We,D.domain(we.map(Pe)),Ke):X},Ke.nice=function(){var We=bh(we.map(Pe),de?Math:ZS);return D.domain(We),we=We.map(Re),Ke},Ke.ticks=function(){var We=xg(we),rt=[],vt=We[0],bt=We[1],Zt=Math.floor(Pe(vt)),Ut=Math.ceil(Pe(bt)),gn=X%1?2:X;if(isFinite(Ut-Zt)){if(de){for(;Zt0;An--)rt.push(Re(Zt)*An);for(Zt=0;rt[Zt]bt;Ut--);rt=rt.slice(Zt,Ut)}return rt},Ke.copy=function(){return zS(D.copy(),X,de,we)},hs(Ke,D)}var ZS={floor:function(D){return-Math.ceil(-D)},ceil:function(D){return-Math.floor(-D)}};y.scale.pow=function(){return Sy(y.scale.linear(),1,[0,1])};function Sy(D,X,de){var we=pm(X),Pe=pm(1/X);function Re(Ke){return D(we(Ke))}return Re.invert=function(Ke){return Pe(D.invert(Ke))},Re.domain=function(Ke){return arguments.length?(D.domain((de=Ke.map(Number)).map(we)),Re):de},Re.ticks=function(Ke){return Yp(de,Ke)},Re.tickFormat=function(Ke,We){return d3_scale_linearTickFormat(de,Ke,We)},Re.nice=function(Ke){return Re.domain(gm(de,Ke))},Re.exponent=function(Ke){return arguments.length?(we=pm(X=Ke),Pe=pm(1/X),D.domain(de.map(we)),Re):X},Re.copy=function(){return Sy(D.copy(),X,de)},hs(Re,D)}function pm(D){return function(X){return X<0?-Math.pow(-X,D):Math.pow(X,D)}}y.scale.sqrt=function(){return y.scale.pow().exponent(.5)},y.scale.ordinal=function(){return t0([],{t:"range",a:[[]]})};function t0(D,X){var de,we,Pe;function Re(We){return we[((de.get(We)||(X.t==="range"?de.set(We,D.push(We)):NaN))-1)%we.length]}function Ke(We,rt){return y.range(D.length).map(function(vt){return We+rt*vt})}return Re.domain=function(We){if(!arguments.length)return D;D=[],de=new ie;for(var rt=-1,vt=We.length,bt;++rt0?de[Re-1]:D[0],ReUt?0:1;if(bt=dt)return rt(bt,An)+(vt?rt(vt,1-An):"")+"Z";var jt,tn,hn,_n,Pn=0,yn=0,cr,Zr,Jr,Ar,no,fo,ts,xo,go=[];if((_n=(+Ke.apply(this,arguments)||0)/2)&&(hn=we===wg?Math.sqrt(vt*vt+bt*bt):+we.apply(this,arguments),An||(yn*=-1),bt&&(yn=nn(hn/bt*Math.sin(_n))),vt&&(Pn=nn(hn/vt*Math.sin(_n)))),bt){cr=bt*Math.cos(Zt+yn),Zr=bt*Math.sin(Zt+yn),Jr=bt*Math.cos(Ut-yn),Ar=bt*Math.sin(Ut-yn);var js=Math.abs(Ut-Zt-2*yn)<=He?0:1;if(yn&&Xp(cr,Zr,Jr,Ar)===An^js){var ti=(Zt+Ut)/2;cr=bt*Math.cos(ti),Zr=bt*Math.sin(ti),Jr=Ar=null}}else cr=Zr=0;if(vt){no=vt*Math.cos(Ut-Pn),fo=vt*Math.sin(Ut-Pn),ts=vt*Math.cos(Zt+Pn),xo=vt*Math.sin(Zt+Pn);var ba=Math.abs(Zt-Ut+2*Pn)<=He?0:1;if(Pn&&Xp(no,fo,ts,xo)===1-An^ba){var Lr=(Zt+Ut)/2;no=vt*Math.cos(Lr),fo=vt*Math.sin(Lr),ts=xo=null}}else no=fo=0;if(gn>gt&&(jt=Math.min(Math.abs(bt-vt)/2,+de.apply(this,arguments)))>.001){tn=vt0?0:1}function ca(D,X,de,we,Pe){var Re=D[0]-X[0],Ke=D[1]-X[1],We=(Pe?we:-we)/Math.sqrt(Re*Re+Ke*Ke),rt=We*Ke,vt=-We*Re,bt=D[0]+rt,Zt=D[1]+vt,Ut=X[0]+rt,gn=X[1]+vt,An=(bt+Ut)/2,jt=(Zt+gn)/2,tn=Ut-bt,hn=gn-Zt,_n=tn*tn+hn*hn,Pn=de-we,yn=bt*gn-Ut*Zt,cr=(hn<0?-1:1)*Math.sqrt(Math.max(0,Pn*Pn*_n-yn*yn)),Zr=(yn*hn-tn*cr)/_n,Jr=(-yn*tn-hn*cr)/_n,Ar=(yn*hn+tn*cr)/_n,no=(-yn*tn+hn*cr)/_n,fo=Zr-An,ts=Jr-jt,xo=Ar-An,go=no-jt;return fo*fo+ts*ts>xo*xo+go*go&&(Zr=Ar,Jr=no),[[Zr-rt,Jr-vt],[Zr*de/Pn,Jr*de/Pn]]}function uo(){return!0}function Gu(D){var X=es,de=Xs,we=uo,Pe=zl,Re=Pe.key,Ke=.7;function We(rt){var vt=[],bt=[],Zt=-1,Ut=rt.length,gn,An=Fn(X),jt=Fn(de);function tn(){vt.push("M",Pe(D(bt),Ke))}for(;++Zt1?D.join("L"):D+"Z"}function HS(D){return D.join("L")+"Z"}function Dd(D){for(var X=0,de=D.length,we=D[0],Pe=[we[0],",",we[1]];++X1&&Pe.push("H",we[0]),Pe.join("")}function vi(D){for(var X=0,de=D.length,we=D[0],Pe=[we[0],",",we[1]];++X1){We=X[1],Re=D[rt],rt++,we+="C"+(Pe[0]+Ke[0])+","+(Pe[1]+Ke[1])+","+(Re[0]-We[0])+","+(Re[1]-We[1])+","+Re[0]+","+Re[1];for(var vt=2;vt9&&(Re=de*3/Math.sqrt(Re),Ke[We]=Re*we,Ke[We+1]=Re*Pe));for(We=-1;++We<=rt;)Re=(D[Math.min(rt,We+1)][0]-D[Math.max(0,We-1)][0])/(6*(1+Ke[We]*Ke[We])),X.push([Re||0,Ke[We]*Re||0]);return X}function jp(D){return D.length<3?zl(D):D[0]+bm(D,Os(D))}y.svg.line.radial=function(){var D=Gu(il);return D.radius=D.x,delete D.x,D.angle=D.y,delete D.y,D};function il(D){for(var X,de=-1,we=D.length,Pe,Re;++deHe)+",1 "+Zt}function vt(bt,Zt,Ut,gn){return"Q 0,0 "+gn}return Re.radius=function(bt){return arguments.length?(de=Fn(bt),Re):de},Re.source=function(bt){return arguments.length?(D=Fn(bt),Re):D},Re.target=function(bt){return arguments.length?(X=Fn(bt),Re):X},Re.startAngle=function(bt){return arguments.length?(we=Fn(bt),Re):we},Re.endAngle=function(bt){return arguments.length?(Pe=Fn(bt),Re):Pe},Re};function Zc(D){return D.radius}y.svg.diagonal=function(){var D=qp,X=er,de=Cg;function we(Pe,Re){var Ke=D.call(this,Pe,Re),We=X.call(this,Pe,Re),rt=(Ke.y+We.y)/2,vt=[Ke,{x:Ke.x,y:rt},{x:We.x,y:rt},We];return vt=vt.map(de),"M"+vt[0]+"C"+vt[1]+" "+vt[2]+" "+vt[3]}return we.source=function(Pe){return arguments.length?(D=Fn(Pe),we):D},we.target=function(Pe){return arguments.length?(X=Fn(Pe),we):X},we.projection=function(Pe){return arguments.length?(de=Pe,we):de},we};function Cg(D){return[D.x,D.y]}y.svg.diagonal.radial=function(){var D=y.svg.diagonal(),X=Cg,de=D.projection;return D.projection=function(we){return arguments.length?de(zs(X=we)):X},D};function zs(D){return function(){var X=D.apply(this,arguments),de=X[0],we=X[1]-mt;return[de*Math.cos(we),de*Math.sin(we)]}}y.svg.symbol=function(){var D=US,X=Rf;function de(we,Pe){return(s0.get(D.call(this,we,Pe))||qu)(X.call(this,we,Pe))}return de.type=function(we){return arguments.length?(D=Fn(we),de):D},de.size=function(we){return arguments.length?(X=Fn(we),de):X},de};function Rf(){return 64}function US(){return"circle"}function qu(D){var X=Math.sqrt(D/He);return"M0,"+X+"A"+X+","+X+" 0 1,1 0,"+-X+"A"+X+","+X+" 0 1,1 0,"+X+"Z"}var s0=y.map({circle:qu,cross:function(D){var X=Math.sqrt(D/5)/2;return"M"+-3*X+","+-X+"H"+-X+"V"+-3*X+"H"+X+"V"+-X+"H"+3*X+"V"+X+"H"+X+"V"+3*X+"H"+-X+"V"+X+"H"+-3*X+"Z"},diamond:function(D){var X=Math.sqrt(D/(2*a0)),de=X*a0;return"M0,"+-X+"L"+de+",0 0,"+X+" "+-de+",0Z"},square:function(D){var X=Math.sqrt(D)/2;return"M"+-X+","+-X+"L"+X+","+-X+" "+X+","+X+" "+-X+","+X+"Z"},"triangle-down":function(D){var X=Math.sqrt(D/su),de=X*su/2;return"M0,"+de+"L"+X+","+-de+" "+-X+","+-de+"Z"},"triangle-up":function(D){var X=Math.sqrt(D/su),de=X*su/2;return"M0,"+-de+"L"+X+","+de+" "+-X+","+de+"Z"}});y.svg.symbolTypes=s0.keys();var su=Math.sqrt(3),a0=Math.tan(30*Tt);oe.transition=function(D){for(var X=Ld||++ll,de=ed(D),we=[],Pe,Re,Ke=Jf||{time:Date.now(),ease:Oc,delay:0,duration:250},We=-1,rt=this.length;++We0;)Zt[--_n].call(D,hn);if(tn>=1)return Ke.event&&Ke.event.end.call(D,D.__data__,X),--Re.count?delete Re[we]:delete D[de],1}Ke||(We=Pe.time,rt=So(Ut,0,We),Ke=Re[we]={tween:new ie,time:We,timer:rt,delay:Pe.delay,duration:Pe.duration,ease:Pe.ease,index:X},Pe=null,++Re.count)}y.svg.axis=function(){var D=y.scale.linear(),X=Tc,de=6,we=6,Pe=3,Re=[10],Ke=null,We;function rt(vt){vt.each(function(){var bt=y.select(this),Zt=this.__chart__||D,Ut=this.__chart__=D.copy(),gn=Ke??(Ut.ticks?Ut.ticks.apply(Ut,Re):Ut.domain()),An=We??(Ut.tickFormat?Ut.tickFormat.apply(Ut,Re):ne),jt=bt.selectAll(".tick").data(gn,Ut),tn=jt.enter().insert("g",".domain").attr("class","tick").style("opacity",gt),hn=y.transition(jt.exit()).style("opacity",gt).remove(),_n=y.transition(jt.order()).style("opacity",1),Pn=Math.max(de,0)+Pe,yn,cr=Up(Ut),Zr=bt.selectAll(".domain").data([0]),Jr=(Zr.enter().append("path").attr("class","domain"),y.transition(Zr));tn.append("line"),tn.append("text");var Ar=tn.select("line"),no=_n.select("line"),fo=jt.select("text").text(An),ts=tn.select("text"),xo=_n.select("text"),go=X==="top"||X==="left"?-1:1,js,ti,ba,Lr;if(X==="bottom"||X==="top"?(yn=nd,js="x",ba="y",ti="x2",Lr="y2",fo.attr("dy",go<0?"0em":".71em").style("text-anchor","middle"),Jr.attr("d","M"+cr[0]+","+go*we+"V0H"+cr[1]+"V"+go*we)):(yn=Hc,js="y",ba="x",ti="y2",Lr="x2",fo.attr("dy",".32em").style("text-anchor",go<0?"end":"start"),Jr.attr("d","M"+go*we+","+cr[0]+"H0V"+cr[1]+"H"+go*we)),Ar.attr(Lr,go*de),ts.attr(ba,go*Pn),no.attr(ti,0).attr(Lr,go*de),xo.attr(js,0).attr(ba,go*Pn),Ut.rangeBand){var Do=Ut,ms=Do.rangeBand()/2;Zt=Ut=function(_s){return Do(_s)+ms}}else Zt.rangeBand?Zt=Ut:hn.call(yn,Ut,Zt);tn.call(yn,Zt,Ut),_n.call(yn,Ut,Ut)})}return rt.scale=function(vt){return arguments.length?(D=vt,rt):D},rt.orient=function(vt){return arguments.length?(X=vt in td?vt+"":Tc,rt):X},rt.ticks=function(){return arguments.length?(Re=x(arguments),rt):Re},rt.tickValues=function(vt){return arguments.length?(Ke=vt,rt):Ke},rt.tickFormat=function(vt){return arguments.length?(We=vt,rt):We},rt.tickSize=function(vt){var bt=arguments.length;return bt?(de=+vt,we=+arguments[bt-1],rt):de},rt.innerTickSize=function(vt){return arguments.length?(de=+vt,rt):de},rt.outerTickSize=function(vt){return arguments.length?(we=+vt,rt):we},rt.tickPadding=function(vt){return arguments.length?(Pe=+vt,rt):Pe},rt.tickSubdivide=function(){return arguments.length&&rt},rt};var Tc="bottom",td={top:1,right:1,bottom:1,left:1};function nd(D,X,de){D.attr("transform",function(we){var Pe=X(we);return"translate("+(isFinite(Pe)?Pe:de(we))+",0)"})}function Hc(D,X,de){D.attr("transform",function(we){var Pe=X(we);return"translate(0,"+(isFinite(Pe)?Pe:de(we))+")"})}y.svg.brush=function(){var D=De(bt,"brushstart","brush","brushend"),X=null,de=null,we=[0,0],Pe=[0,0],Re,Ke,We=!0,rt=!0,vt=Di[0];function bt(jt){jt.each(function(){var tn=y.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",An).on("touchstart.brush",An),hn=tn.selectAll(".background").data([0]);hn.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),tn.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var _n=tn.selectAll(".resize").data(vt,ne);_n.exit().remove(),_n.enter().append("g").attr("class",function(Zr){return"resize "+Zr}).style("cursor",function(Zr){return Wi[Zr]}).append("rect").attr("x",function(Zr){return/[ew]$/.test(Zr)?-3:null}).attr("y",function(Zr){return/^[ns]/.test(Zr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),_n.style("display",bt.empty()?"none":null);var Pn=y.transition(tn),yn=y.transition(hn),cr;X&&(cr=Up(X),yn.attr("x",cr[0]).attr("width",cr[1]-cr[0]),Ut(Pn)),de&&(cr=Up(de),yn.attr("y",cr[0]).attr("height",cr[1]-cr[0]),gn(Pn)),Zt(Pn)})}bt.event=function(jt){jt.each(function(){var tn=D.of(this,arguments),hn={x:we,y:Pe,i:Re,j:Ke},_n=this.__chart__||hn;this.__chart__=hn,Ld?y.select(this).transition().each("start.brush",function(){Re=_n.i,Ke=_n.j,we=_n.x,Pe=_n.y,tn({type:"brushstart"})}).tween("brush:brush",function(){var Pn=Cf(we,hn.x),yn=Cf(Pe,hn.y);return Re=Ke=null,function(cr){we=hn.x=Pn(cr),Pe=hn.y=yn(cr),tn({type:"brush",mode:"resize"})}}).each("end.brush",function(){Re=hn.i,Ke=hn.j,tn({type:"brush",mode:"resize"}),tn({type:"brushend"})}):(tn({type:"brushstart"}),tn({type:"brush",mode:"resize"}),tn({type:"brushend"}))})};function Zt(jt){jt.selectAll(".resize").attr("transform",function(tn){return"translate("+we[+/e$/.test(tn)]+","+Pe[+/^s/.test(tn)]+")"})}function Ut(jt){jt.select(".extent").attr("x",we[0]),jt.selectAll(".extent,.n>rect,.s>rect").attr("width",we[1]-we[0])}function gn(jt){jt.select(".extent").attr("y",Pe[0]),jt.selectAll(".extent,.e>rect,.w>rect").attr("height",Pe[1]-Pe[0])}function An(){var jt=this,tn=y.select(y.event.target),hn=D.of(jt,arguments),_n=y.select(jt),Pn=tn.datum(),yn=!/^(n|s)$/.test(Pn)&&X,cr=!/^(e|w)$/.test(Pn)&&de,Zr=tn.classed("extent"),Jr=Sn(jt),Ar,no=y.mouse(jt),fo,ts=y.select(w(jt)).on("keydown.brush",js).on("keyup.brush",ti);if(y.event.changedTouches?ts.on("touchmove.brush",ba).on("touchend.brush",Do):ts.on("mousemove.brush",ba).on("mouseup.brush",Do),_n.interrupt().selectAll("*").interrupt(),Zr)no[0]=we[0]-no[0],no[1]=Pe[0]-no[1];else if(Pn){var xo=+/w$/.test(Pn),go=+/^n/.test(Pn);fo=[we[1-xo]-no[0],Pe[1-go]-no[1]],no[0]=we[xo],no[1]=Pe[go]}else y.event.altKey&&(Ar=no.slice());_n.style("pointer-events","none").selectAll(".resize").style("display",null),y.select("body").style("cursor",tn.style("cursor")),hn({type:"brushstart"}),ba();function js(){y.event.keyCode==32&&(Zr||(Ar=null,no[0]-=we[1],no[1]-=Pe[1],Zr=2),$e())}function ti(){y.event.keyCode==32&&Zr==2&&(no[0]+=we[1],no[1]+=Pe[1],Zr=0,$e())}function ba(){var ms=y.mouse(jt),_s=!1;fo&&(ms[0]+=fo[0],ms[1]+=fo[1]),Zr||(y.event.altKey?(Ar||(Ar=[(we[0]+we[1])/2,(Pe[0]+Pe[1])/2]),no[0]=we[+(ms[0]=1e21?W.toLocaleString("en").replace(/,/g,""):W.toString(10)}function v(W,Y){if((ie=(W=Y?W.toExponential(Y-1):W.toExponential()).indexOf("e"))<0)return null;var ie,L=W.slice(0,ie);return[L.length>1?L[0]+L.slice(2):L,+W.slice(ie+1)]}function y(W){return W=v(Math.abs(W)),W?W[1]:NaN}function b(W,Y){return function(ie,L){for(var me=ie.length,ae=[],q=0,fe=W[0],ee=0;me>0&&fe>0&&(ee+fe+1>L&&(fe=Math.max(1,L-ee)),ae.push(ie.substring(me-=fe,me+fe)),!((ee+=fe+1)>L));)fe=W[q=(q+1)%W.length];return ae.reverse().join(Y)}}function x(W){return function(Y){return Y.replace(/[0-9]/g,function(ie){return W[+ie]})}}var k=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function C(W){if(!(Y=k.exec(W)))throw new Error("invalid format: "+W);var Y;return new w({fill:Y[1],align:Y[2],sign:Y[3],symbol:Y[4],zero:Y[5],width:Y[6],comma:Y[7],precision:Y[8]&&Y[8].slice(1),trim:Y[9],type:Y[10]})}C.prototype=w.prototype;function w(W){this.fill=W.fill===void 0?" ":W.fill+"",this.align=W.align===void 0?">":W.align+"",this.sign=W.sign===void 0?"-":W.sign+"",this.symbol=W.symbol===void 0?"":W.symbol+"",this.zero=!!W.zero,this.width=W.width===void 0?void 0:+W.width,this.comma=!!W.comma,this.precision=W.precision===void 0?void 0:+W.precision,this.trim=!!W.trim,this.type=W.type===void 0?"":W.type+""}w.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function T(W){e:for(var Y=W.length,ie=1,L=-1,me;ie0&&(L=0);break}return L>0?W.slice(0,L)+W.slice(me+1):W}var R;function M(W,Y){var ie=v(W,Y);if(!ie)return W+"";var L=ie[0],me=ie[1],ae=me-(R=Math.max(-8,Math.min(8,Math.floor(me/3)))*3)+1,q=L.length;return ae===q?L:ae>q?L+new Array(ae-q+1).join("0"):ae>0?L.slice(0,ae)+"."+L.slice(ae):"0."+new Array(1-ae).join("0")+v(W,Math.max(0,Y+ae-1))[0]}function I(W,Y){var ie=v(W,Y);if(!ie)return W+"";var L=ie[0],me=ie[1];return me<0?"0."+new Array(-me).join("0")+L:L.length>me+1?L.slice(0,me+1)+"."+L.slice(me+1):L+new Array(me-L.length+2).join("0")}var V={"%":function(W,Y){return(W*100).toFixed(Y)},b:function(W){return Math.round(W).toString(2)},c:function(W){return W+""},d:p,e:function(W,Y){return W.toExponential(Y)},f:function(W,Y){return W.toFixed(Y)},g:function(W,Y){return W.toPrecision(Y)},o:function(W){return Math.round(W).toString(8)},p:function(W,Y){return I(W*100,Y)},r:I,s:M,X:function(W){return Math.round(W).toString(16).toUpperCase()},x:function(W){return Math.round(W).toString(16)}};function N(W){return W}var F=Array.prototype.map,z=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function U(W){var Y=W.grouping===void 0||W.thousands===void 0?N:b(F.call(W.grouping,Number),W.thousands+""),ie=W.currency===void 0?"":W.currency[0]+"",L=W.currency===void 0?"":W.currency[1]+"",me=W.decimal===void 0?".":W.decimal+"",ae=W.numerals===void 0?N:x(F.call(W.numerals,String)),q=W.percent===void 0?"%":W.percent+"",fe=W.minus===void 0?"-":W.minus+"",ee=W.nan===void 0?"NaN":W.nan+"";function be(Be){Be=C(Be);var ge=Be.fill,ne=Be.align,pe=Be.sign,G=Be.symbol,Oe=Be.zero,xe=Be.width,Le=Be.comma,ke=Be.precision,$e=Be.trim,Ze=Be.type;Ze==="n"?(Le=!0,Ze="g"):V[Ze]||(ke===void 0&&(ke=12),$e=!0,Ze="g"),(Oe||ge==="0"&&ne==="=")&&(Oe=!0,ge="0",ne="=");var De=G==="$"?ie:G==="#"&&/[boxX]/.test(Ze)?"0"+Ze.toLowerCase():"",Ie=G==="$"?L:/[%p]/.test(Ze)?q:"",re=V[Ze],ye=/[defgprs%]/.test(Ze);ke=ke===void 0?6:/[gprs]/.test(Ze)?Math.max(1,Math.min(21,ke)):Math.max(0,Math.min(20,ke));function te(se){var ue=De,oe=Ie,Se,le,Ce;if(Ze==="c")oe=re(se)+oe,se="";else{se=+se;var Qe=se<0||1/se<0;if(se=isNaN(se)?ee:re(Math.abs(se),ke),$e&&(se=T(se)),Qe&&+se==0&&pe!=="+"&&(Qe=!1),ue=(Qe?pe==="("?pe:fe:pe==="-"||pe==="("?"":pe)+ue,oe=(Ze==="s"?z[8+R/3]:"")+oe+(Qe&&pe==="("?")":""),ye){for(Se=-1,le=se.length;++SeCe||Ce>57){oe=(Ce===46?me+se.slice(Se+1):se.slice(Se))+oe,se=se.slice(0,Se);break}}}Le&&!Oe&&(se=Y(se,1/0));var ze=ue.length+se.length+oe.length,Xe=ze>1)+ue+se+oe+Xe.slice(ze);break;default:se=Xe+ue+se+oe;break}return ae(se)}return te.toString=function(){return Be+""},te}function Te(Be,ge){var ne=be((Be=C(Be),Be.type="f",Be)),pe=Math.max(-8,Math.min(8,Math.floor(y(ge)/3)))*3,G=Math.pow(10,-pe),Oe=z[8+pe/3];return function(xe){return ne(G*xe)+Oe}}return{format:be,formatPrefix:Te}}var Q,B;E({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function E(W){return Q=U(W),B=Q.format,Q.formatPrefix,Q}},4096:function(f,m,u){u.d(m,{i$:function(){return Un},Dq:function(){return R},g0:function(){return Sn}});var p=u(8176),v=u(8480),y=u(9879),b=u(2301),x=u(4823),k=u(9791);function C(ut){if(0<=ut.y&&ut.y<100){var xt=new Date(-1,ut.m,ut.d,ut.H,ut.M,ut.S,ut.L);return xt.setFullYear(ut.y),xt}return new Date(ut.y,ut.m,ut.d,ut.H,ut.M,ut.S,ut.L)}function w(ut){if(0<=ut.y&&ut.y<100){var xt=new Date(Date.UTC(-1,ut.m,ut.d,ut.H,ut.M,ut.S,ut.L));return xt.setUTCFullYear(ut.y),xt}return new Date(Date.UTC(ut.y,ut.m,ut.d,ut.H,ut.M,ut.S,ut.L))}function T(ut,xt,gt){return{y:ut,m:xt,d:gt,H:0,M:0,S:0,L:0}}function R(ut){var xt=ut.dateTime,gt=ut.date,Dt=ut.time,He=ut.periods,at=ut.days,dt=ut.shortDays,mt=ut.months,Tt=ut.shortMonths,Pt=U(He),dn=Q(He),nn=U(at),Wt=Q(at),Rt=U(dt),fn=Q(dt),Hn=U(mt),nr=Q(mt),Er=U(Tt),zt=Q(Tt),vr={a:Fe,A:Ee,b:St,B:Ct,c:null,d:Le,e:Le,f:Ie,H:ke,I:$e,j:Ze,L:De,m:re,M:ye,p:Lt,q:Ft,Q:an,s:wn,S:te,u:se,U:ue,V:oe,w:Se,W:le,x:null,X:null,y:Ce,Y:Qe,Z:ze,"%":Yn},Wn={a:Ht,A:$t,b:Mt,B:en,c:null,d:Xe,e:Xe,f:et,H:ct,I:pt,j:Ye,L:je,m:yt,M:ft,p:un,q:Jt,Q:an,s:wn,S:tt,u:wt,U:Xt,V:Gt,w:Nt,W:Bt,x:null,X:null,y:vn,Y:En,Z:ln,"%":Yn},Br={a:Rn,A:xr,b:sr,B:Sr,c:ao,d:ee,e:ee,f:pe,H:Te,I:Te,j:be,L:ne,m:fe,M:Be,p:_r,q,Q:Oe,s:xe,S:ge,u:E,U:W,V:Y,w:B,W:ie,x:Oo,X:wr,y:me,Y:L,Z:ae,"%":G};vr.x=kr(gt,vr),vr.X=kr(Dt,vr),vr.c=kr(xt,vr),Wn.x=kr(gt,Wn),Wn.X=kr(Dt,Wn),Wn.c=kr(xt,Wn);function kr(rn,Tn){return function(On){var pn=[],Jn=-1,Fn=0,zr=rn.length,dr,Hr,ar;for(On instanceof Date||(On=new Date(+On));++Jn53)return null;"w"in pn||(pn.w=1),"Z"in pn?(Fn=w(T(pn.y,0,1)),zr=Fn.getUTCDay(),Fn=zr>4||zr===0?p.l6.ceil(Fn):(0,p.l6)(Fn),Fn=v.Z.offset(Fn,(pn.V-1)*7),pn.y=Fn.getUTCFullYear(),pn.m=Fn.getUTCMonth(),pn.d=Fn.getUTCDate()+(pn.w+6)%7):(Fn=C(T(pn.y,0,1)),zr=Fn.getDay(),Fn=zr>4||zr===0?y.wA.ceil(Fn):(0,y.wA)(Fn),Fn=b.Z.offset(Fn,(pn.V-1)*7),pn.y=Fn.getFullYear(),pn.m=Fn.getMonth(),pn.d=Fn.getDate()+(pn.w+6)%7)}else("W"in pn||"U"in pn)&&("w"in pn||(pn.w="u"in pn?pn.u%7:"W"in pn?1:0),zr="Z"in pn?w(T(pn.y,0,1)).getUTCDay():C(T(pn.y,0,1)).getDay(),pn.m=0,pn.d="W"in pn?(pn.w+6)%7+pn.W*7-(zr+5)%7:pn.w+pn.U*7-(zr+6)%7);return"Z"in pn?(pn.H+=pn.Z/100|0,pn.M+=pn.Z%100,w(pn)):C(pn)}}function jr(rn,Tn,On,pn){for(var Jn=0,Fn=Tn.length,zr=On.length,dr,Hr;Jn=zr)return-1;if(dr=Tn.charCodeAt(Jn++),dr===37){if(dr=Tn.charAt(Jn++),Hr=Br[dr in M?Tn.charAt(Jn++):dr],!Hr||(pn=Hr(rn,On,pn))<0)return-1}else if(dr!=On.charCodeAt(pn++))return-1}return pn}function _r(rn,Tn,On){var pn=Pt.exec(Tn.slice(On));return pn?(rn.p=dn[pn[0].toLowerCase()],On+pn[0].length):-1}function Rn(rn,Tn,On){var pn=Rt.exec(Tn.slice(On));return pn?(rn.w=fn[pn[0].toLowerCase()],On+pn[0].length):-1}function xr(rn,Tn,On){var pn=nn.exec(Tn.slice(On));return pn?(rn.w=Wt[pn[0].toLowerCase()],On+pn[0].length):-1}function sr(rn,Tn,On){var pn=Er.exec(Tn.slice(On));return pn?(rn.m=zt[pn[0].toLowerCase()],On+pn[0].length):-1}function Sr(rn,Tn,On){var pn=Hn.exec(Tn.slice(On));return pn?(rn.m=nr[pn[0].toLowerCase()],On+pn[0].length):-1}function ao(rn,Tn,On){return jr(rn,xt,Tn,On)}function Oo(rn,Tn,On){return jr(rn,gt,Tn,On)}function wr(rn,Tn,On){return jr(rn,Dt,Tn,On)}function Fe(rn){return dt[rn.getDay()]}function Ee(rn){return at[rn.getDay()]}function St(rn){return Tt[rn.getMonth()]}function Ct(rn){return mt[rn.getMonth()]}function Lt(rn){return He[+(rn.getHours()>=12)]}function Ft(rn){return 1+~~(rn.getMonth()/3)}function Ht(rn){return dt[rn.getUTCDay()]}function $t(rn){return at[rn.getUTCDay()]}function Mt(rn){return Tt[rn.getUTCMonth()]}function en(rn){return mt[rn.getUTCMonth()]}function un(rn){return He[+(rn.getUTCHours()>=12)]}function Jt(rn){return 1+~~(rn.getUTCMonth()/3)}return{format:function(rn){var Tn=kr(rn+="",vr);return Tn.toString=function(){return rn},Tn},parse:function(rn){var Tn=or(rn+="",!1);return Tn.toString=function(){return rn},Tn},utcFormat:function(rn){var Tn=kr(rn+="",Wn);return Tn.toString=function(){return rn},Tn},utcParse:function(rn){var Tn=or(rn+="",!0);return Tn.toString=function(){return rn},Tn}}}var M={"-":"",_:" ",0:"0"},I=/^\s*\d+/,V=/^%/,N=/[\\^$*+?|[\]().{}]/g;function F(ut,xt,gt){var Dt=ut<0?"-":"",He=(Dt?-ut:ut)+"",at=He.length;return Dt+(at68?1900:2e3),gt+Dt[0].length):-1}function ae(ut,xt,gt){var Dt=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(xt.slice(gt,gt+6));return Dt?(ut.Z=Dt[1]?0:-(Dt[2]+(Dt[3]||"00")),gt+Dt[0].length):-1}function q(ut,xt,gt){var Dt=I.exec(xt.slice(gt,gt+1));return Dt?(ut.q=Dt[0]*3-3,gt+Dt[0].length):-1}function fe(ut,xt,gt){var Dt=I.exec(xt.slice(gt,gt+2));return Dt?(ut.m=Dt[0]-1,gt+Dt[0].length):-1}function ee(ut,xt,gt){var Dt=I.exec(xt.slice(gt,gt+2));return Dt?(ut.d=+Dt[0],gt+Dt[0].length):-1}function be(ut,xt,gt){var Dt=I.exec(xt.slice(gt,gt+3));return Dt?(ut.m=0,ut.d=+Dt[0],gt+Dt[0].length):-1}function Te(ut,xt,gt){var Dt=I.exec(xt.slice(gt,gt+2));return Dt?(ut.H=+Dt[0],gt+Dt[0].length):-1}function Be(ut,xt,gt){var Dt=I.exec(xt.slice(gt,gt+2));return Dt?(ut.M=+Dt[0],gt+Dt[0].length):-1}function ge(ut,xt,gt){var Dt=I.exec(xt.slice(gt,gt+2));return Dt?(ut.S=+Dt[0],gt+Dt[0].length):-1}function ne(ut,xt,gt){var Dt=I.exec(xt.slice(gt,gt+3));return Dt?(ut.L=+Dt[0],gt+Dt[0].length):-1}function pe(ut,xt,gt){var Dt=I.exec(xt.slice(gt,gt+6));return Dt?(ut.L=Math.floor(Dt[0]/1e3),gt+Dt[0].length):-1}function G(ut,xt,gt){var Dt=V.exec(xt.slice(gt,gt+1));return Dt?gt+Dt[0].length:-1}function Oe(ut,xt,gt){var Dt=I.exec(xt.slice(gt));return Dt?(ut.Q=+Dt[0],gt+Dt[0].length):-1}function xe(ut,xt,gt){var Dt=I.exec(xt.slice(gt));return Dt?(ut.s=+Dt[0],gt+Dt[0].length):-1}function Le(ut,xt){return F(ut.getDate(),xt,2)}function ke(ut,xt){return F(ut.getHours(),xt,2)}function $e(ut,xt){return F(ut.getHours()%12||12,xt,2)}function Ze(ut,xt){return F(1+b.Z.count((0,x.Z)(ut),ut),xt,3)}function De(ut,xt){return F(ut.getMilliseconds(),xt,3)}function Ie(ut,xt){return De(ut,xt)+"000"}function re(ut,xt){return F(ut.getMonth()+1,xt,2)}function ye(ut,xt){return F(ut.getMinutes(),xt,2)}function te(ut,xt){return F(ut.getSeconds(),xt,2)}function se(ut){var xt=ut.getDay();return xt===0?7:xt}function ue(ut,xt){return F(y.OM.count((0,x.Z)(ut)-1,ut),xt,2)}function oe(ut,xt){var gt=ut.getDay();return ut=gt>=4||gt===0?(0,y.bL)(ut):y.bL.ceil(ut),F(y.bL.count((0,x.Z)(ut),ut)+((0,x.Z)(ut).getDay()===4),xt,2)}function Se(ut){return ut.getDay()}function le(ut,xt){return F(y.wA.count((0,x.Z)(ut)-1,ut),xt,2)}function Ce(ut,xt){return F(ut.getFullYear()%100,xt,2)}function Qe(ut,xt){return F(ut.getFullYear()%1e4,xt,4)}function ze(ut){var xt=ut.getTimezoneOffset();return(xt>0?"-":(xt*=-1,"+"))+F(xt/60|0,"0",2)+F(xt%60,"0",2)}function Xe(ut,xt){return F(ut.getUTCDate(),xt,2)}function ct(ut,xt){return F(ut.getUTCHours(),xt,2)}function pt(ut,xt){return F(ut.getUTCHours()%12||12,xt,2)}function Ye(ut,xt){return F(1+v.Z.count((0,k.Z)(ut),ut),xt,3)}function je(ut,xt){return F(ut.getUTCMilliseconds(),xt,3)}function et(ut,xt){return je(ut,xt)+"000"}function yt(ut,xt){return F(ut.getUTCMonth()+1,xt,2)}function ft(ut,xt){return F(ut.getUTCMinutes(),xt,2)}function tt(ut,xt){return F(ut.getUTCSeconds(),xt,2)}function wt(ut){var xt=ut.getUTCDay();return xt===0?7:xt}function Xt(ut,xt){return F(p.Ox.count((0,k.Z)(ut)-1,ut),xt,2)}function Gt(ut,xt){var gt=ut.getUTCDay();return ut=gt>=4||gt===0?(0,p.hB)(ut):p.hB.ceil(ut),F(p.hB.count((0,k.Z)(ut),ut)+((0,k.Z)(ut).getUTCDay()===4),xt,2)}function Nt(ut){return ut.getUTCDay()}function Bt(ut,xt){return F(p.l6.count((0,k.Z)(ut)-1,ut),xt,2)}function vn(ut,xt){return F(ut.getUTCFullYear()%100,xt,2)}function En(ut,xt){return F(ut.getUTCFullYear()%1e4,xt,4)}function ln(){return"+0000"}function Yn(){return"%"}function an(ut){return+ut}function wn(ut){return Math.floor(+ut/1e3)}var Xn,Un,Sn;it({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function it(ut){return Xn=R(ut),Un=Xn.format,Xn.parse,Sn=Xn.utcFormat,Xn.utcParse,Xn}},2301:function(f,m,u){u.d(m,{a:function(){return b}});var p=u(52),v=u(4263),y=(0,p.Z)(function(x){x.setHours(0,0,0,0)},function(x,k){x.setDate(x.getDate()+k)},function(x,k){return(k-x-(k.getTimezoneOffset()-x.getTimezoneOffset())*v.yB)/v.UD},function(x){return x.getDate()-1});m.Z=y;var b=y.range},4263:function(f,m,u){u.d(m,{UD:function(){return b},Y2:function(){return y},Ym:function(){return p},iM:function(){return x},yB:function(){return v}});var p=1e3,v=6e4,y=36e5,b=864e5,x=6048e5},1041:function(f,m,u){u.r(m),u.d(m,{timeDay:function(){return F.Z},timeDays:function(){return F.a},timeFriday:function(){return z.mC},timeFridays:function(){return z.b$},timeHour:function(){return V},timeHours:function(){return N},timeInterval:function(){return p.Z},timeMillisecond:function(){return y},timeMilliseconds:function(){return b},timeMinute:function(){return R},timeMinutes:function(){return M},timeMonday:function(){return z.wA},timeMondays:function(){return z.bJ},timeMonth:function(){return Q},timeMonths:function(){return B},timeSaturday:function(){return z.EY},timeSaturdays:function(){return z.Ff},timeSecond:function(){return C},timeSeconds:function(){return w},timeSunday:function(){return z.OM},timeSundays:function(){return z.vm},timeThursday:function(){return z.bL},timeThursdays:function(){return z.$t},timeTuesday:function(){return z.sy},timeTuesdays:function(){return z.aU},timeWednesday:function(){return z.zg},timeWednesdays:function(){return z.Ld},timeWeek:function(){return z.OM},timeWeeks:function(){return z.vm},timeYear:function(){return E.Z},timeYears:function(){return E.g},utcDay:function(){return q.Z},utcDays:function(){return q.y},utcFriday:function(){return fe.QQ},utcFridays:function(){return fe.fz},utcHour:function(){return me},utcHours:function(){return ae},utcMillisecond:function(){return y},utcMilliseconds:function(){return b},utcMinute:function(){return Y},utcMinutes:function(){return ie},utcMonday:function(){return fe.l6},utcMondays:function(){return fe.$3},utcMonth:function(){return be},utcMonths:function(){return Te},utcSaturday:function(){return fe.g4},utcSaturdays:function(){return fe.Q_},utcSecond:function(){return C},utcSeconds:function(){return w},utcSunday:function(){return fe.Ox},utcSundays:function(){return fe.SU},utcThursday:function(){return fe.hB},utcThursdays:function(){return fe.xj},utcTuesday:function(){return fe.J1},utcTuesdays:function(){return fe.DK},utcWednesday:function(){return fe.b3},utcWednesdays:function(){return fe.uy},utcWeek:function(){return fe.Ox},utcWeeks:function(){return fe.SU},utcYear:function(){return Be.Z},utcYears:function(){return Be.D}});var p=u(52),v=(0,p.Z)(function(){},function(ge,ne){ge.setTime(+ge+ne)},function(ge,ne){return ne-ge});v.every=function(ge){return ge=Math.floor(ge),!isFinite(ge)||!(ge>0)?null:ge>1?(0,p.Z)(function(ne){ne.setTime(Math.floor(ne/ge)*ge)},function(ne,pe){ne.setTime(+ne+pe*ge)},function(ne,pe){return(pe-ne)/ge}):v};var y=v,b=v.range,x=u(4263),k=(0,p.Z)(function(ge){ge.setTime(ge-ge.getMilliseconds())},function(ge,ne){ge.setTime(+ge+ne*x.Ym)},function(ge,ne){return(ne-ge)/x.Ym},function(ge){return ge.getUTCSeconds()}),C=k,w=k.range,T=(0,p.Z)(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*x.Ym)},function(ge,ne){ge.setTime(+ge+ne*x.yB)},function(ge,ne){return(ne-ge)/x.yB},function(ge){return ge.getMinutes()}),R=T,M=T.range,I=(0,p.Z)(function(ge){ge.setTime(ge-ge.getMilliseconds()-ge.getSeconds()*x.Ym-ge.getMinutes()*x.yB)},function(ge,ne){ge.setTime(+ge+ne*x.Y2)},function(ge,ne){return(ne-ge)/x.Y2},function(ge){return ge.getHours()}),V=I,N=I.range,F=u(2301),z=u(9879),U=(0,p.Z)(function(ge){ge.setDate(1),ge.setHours(0,0,0,0)},function(ge,ne){ge.setMonth(ge.getMonth()+ne)},function(ge,ne){return ne.getMonth()-ge.getMonth()+(ne.getFullYear()-ge.getFullYear())*12},function(ge){return ge.getMonth()}),Q=U,B=U.range,E=u(4823),W=(0,p.Z)(function(ge){ge.setUTCSeconds(0,0)},function(ge,ne){ge.setTime(+ge+ne*x.yB)},function(ge,ne){return(ne-ge)/x.yB},function(ge){return ge.getUTCMinutes()}),Y=W,ie=W.range,L=(0,p.Z)(function(ge){ge.setUTCMinutes(0,0,0)},function(ge,ne){ge.setTime(+ge+ne*x.Y2)},function(ge,ne){return(ne-ge)/x.Y2},function(ge){return ge.getUTCHours()}),me=L,ae=L.range,q=u(8480),fe=u(8176),ee=(0,p.Z)(function(ge){ge.setUTCDate(1),ge.setUTCHours(0,0,0,0)},function(ge,ne){ge.setUTCMonth(ge.getUTCMonth()+ne)},function(ge,ne){return ne.getUTCMonth()-ge.getUTCMonth()+(ne.getUTCFullYear()-ge.getUTCFullYear())*12},function(ge){return ge.getUTCMonth()}),be=ee,Te=ee.range,Be=u(9791)},52:function(f,m,u){u.d(m,{Z:function(){return y}});var p=new Date,v=new Date;function y(b,x,k,C){function w(T){return b(T=arguments.length===0?new Date:new Date(+T)),T}return w.floor=function(T){return b(T=new Date(+T)),T},w.ceil=function(T){return b(T=new Date(T-1)),x(T,1),b(T),T},w.round=function(T){var R=w(T),M=w.ceil(T);return T-R0))return I;do I.push(V=new Date(+T)),x(T,M),b(T);while(V=R)for(;b(R),!T(R);)R.setTime(R-1)},function(R,M){if(R>=R)if(M<0)for(;++M<=0;)for(;x(R,-1),!T(R););else for(;--M>=0;)for(;x(R,1),!T(R););})},k&&(w.count=function(T,R){return p.setTime(+T),v.setTime(+R),b(p),b(v),Math.floor(k(p,v))},w.every=function(T){return T=Math.floor(T),!isFinite(T)||!(T>0)?null:T>1?w.filter(C?function(R){return C(R)%T===0}:function(R){return w.count(0,R)%T===0}):w}),w}},8480:function(f,m,u){u.d(m,{y:function(){return b}});var p=u(52),v=u(4263),y=(0,p.Z)(function(x){x.setUTCHours(0,0,0,0)},function(x,k){x.setUTCDate(x.getUTCDate()+k)},function(x,k){return(k-x)/v.UD},function(x){return x.getUTCDate()-1});m.Z=y;var b=y.range},8176:function(f,m,u){u.d(m,{$3:function(){return I},DK:function(){return V},J1:function(){return k},Ox:function(){return b},QQ:function(){return T},Q_:function(){return U},SU:function(){return M},b3:function(){return C},fz:function(){return z},g4:function(){return R},hB:function(){return w},l6:function(){return x},uy:function(){return N},xj:function(){return F}});var p=u(52),v=u(4263);function y(Q){return(0,p.Z)(function(B){B.setUTCDate(B.getUTCDate()-(B.getUTCDay()+7-Q)%7),B.setUTCHours(0,0,0,0)},function(B,E){B.setUTCDate(B.getUTCDate()+E*7)},function(B,E){return(E-B)/v.iM})}var b=y(0),x=y(1),k=y(2),C=y(3),w=y(4),T=y(5),R=y(6),M=b.range,I=x.range,V=k.range,N=C.range,F=w.range,z=T.range,U=R.range},9791:function(f,m,u){u.d(m,{D:function(){return y}});var p=u(52),v=(0,p.Z)(function(b){b.setUTCMonth(0,1),b.setUTCHours(0,0,0,0)},function(b,x){b.setUTCFullYear(b.getUTCFullYear()+x)},function(b,x){return x.getUTCFullYear()-b.getUTCFullYear()},function(b){return b.getUTCFullYear()});v.every=function(b){return!isFinite(b=Math.floor(b))||!(b>0)?null:(0,p.Z)(function(x){x.setUTCFullYear(Math.floor(x.getUTCFullYear()/b)*b),x.setUTCMonth(0,1),x.setUTCHours(0,0,0,0)},function(x,k){x.setUTCFullYear(x.getUTCFullYear()+k*b)})},m.Z=v;var y=v.range},9879:function(f,m,u){u.d(m,{$t:function(){return F},EY:function(){return R},Ff:function(){return U},Ld:function(){return N},OM:function(){return b},aU:function(){return V},b$:function(){return z},bJ:function(){return I},bL:function(){return w},mC:function(){return T},sy:function(){return k},vm:function(){return M},wA:function(){return x},zg:function(){return C}});var p=u(52),v=u(4263);function y(Q){return(0,p.Z)(function(B){B.setDate(B.getDate()-(B.getDay()+7-Q)%7),B.setHours(0,0,0,0)},function(B,E){B.setDate(B.getDate()+E*7)},function(B,E){return(E-B-(E.getTimezoneOffset()-B.getTimezoneOffset())*v.yB)/v.iM})}var b=y(0),x=y(1),k=y(2),C=y(3),w=y(4),T=y(5),R=y(6),M=b.range,I=x.range,V=k.range,N=C.range,F=w.range,z=T.range,U=R.range},4823:function(f,m,u){u.d(m,{g:function(){return y}});var p=u(52),v=(0,p.Z)(function(b){b.setMonth(0,1),b.setHours(0,0,0,0)},function(b,x){b.setFullYear(b.getFullYear()+x)},function(b,x){return x.getFullYear()-b.getFullYear()},function(b){return b.getFullYear()});v.every=function(b){return!isFinite(b=Math.floor(b))||!(b>0)?null:(0,p.Z)(function(x){x.setFullYear(Math.floor(x.getFullYear()/b)*b),x.setMonth(0,1),x.setHours(0,0,0,0)},function(x,k){x.setFullYear(x.getFullYear()+k*b)})},m.Z=v;var y=v.range},5398:function(f){var m=typeof Reflect=="object"?Reflect:null,u=m&&typeof m.apply=="function"?m.apply:function(E,W,Y){return Function.prototype.apply.call(E,W,Y)},p;m&&typeof m.ownKeys=="function"?p=m.ownKeys:Object.getOwnPropertySymbols?p=function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:p=function(E){return Object.getOwnPropertyNames(E)};function v(B){console&&console.warn&&console.warn(B)}var y=Number.isNaN||function(E){return E!==E};function b(){b.init.call(this)}f.exports=b,f.exports.once=z,b.EventEmitter=b,b.prototype._events=void 0,b.prototype._eventsCount=0,b.prototype._maxListeners=void 0;var x=10;function k(B){if(typeof B!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof B)}Object.defineProperty(b,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(B){if(typeof B!="number"||B<0||y(B))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+B+".");x=B}}),b.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},b.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||y(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this};function C(B){return B._maxListeners===void 0?b.defaultMaxListeners:B._maxListeners}b.prototype.getMaxListeners=function(){return C(this)},b.prototype.emit=function(E){for(var W=[],Y=1;Y0&&(me=W[0]),me instanceof Error)throw me;var ae=new Error("Unhandled error."+(me?" ("+me.message+")":""));throw ae.context=me,ae}var q=L[E];if(q===void 0)return!1;if(typeof q=="function")u(q,this,W);else for(var fe=q.length,ee=V(q,fe),Y=0;Y0&&me.length>ie&&!me.warned){me.warned=!0;var ae=new Error("Possible EventEmitter memory leak detected. "+me.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");ae.name="MaxListenersExceededWarning",ae.emitter=B,ae.type=E,ae.count=me.length,v(ae)}return B}b.prototype.addListener=function(E,W){return w(this,E,W,!1)},b.prototype.on=b.prototype.addListener,b.prototype.prependListener=function(E,W){return w(this,E,W,!0)};function T(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function R(B,E,W){var Y={fired:!1,wrapFn:void 0,target:B,type:E,listener:W},ie=T.bind(Y);return ie.listener=W,Y.wrapFn=ie,ie}b.prototype.once=function(E,W){return k(W),this.on(E,R(this,E,W)),this},b.prototype.prependOnceListener=function(E,W){return k(W),this.prependListener(E,R(this,E,W)),this},b.prototype.removeListener=function(E,W){var Y,ie,L,me,ae;if(k(W),ie=this._events,ie===void 0)return this;if(Y=ie[E],Y===void 0)return this;if(Y===W||Y.listener===W)--this._eventsCount===0?this._events=Object.create(null):(delete ie[E],ie.removeListener&&this.emit("removeListener",E,Y.listener||W));else if(typeof Y!="function"){for(L=-1,me=Y.length-1;me>=0;me--)if(Y[me]===W||Y[me].listener===W){ae=Y[me].listener,L=me;break}if(L<0)return this;L===0?Y.shift():N(Y,L),Y.length===1&&(ie[E]=Y[0]),ie.removeListener!==void 0&&this.emit("removeListener",E,ae||W)}return this},b.prototype.off=b.prototype.removeListener,b.prototype.removeAllListeners=function(E){var W,Y,ie;if(Y=this._events,Y===void 0)return this;if(Y.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Y[E]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Y[E]),this;if(arguments.length===0){var L=Object.keys(Y),me;for(ie=0;ie=0;ie--)this.removeListener(E,W[ie]);return this};function M(B,E,W){var Y=B._events;if(Y===void 0)return[];var ie=Y[E];return ie===void 0?[]:typeof ie=="function"?W?[ie.listener||ie]:[ie]:W?F(ie):V(ie,ie.length)}b.prototype.listeners=function(E){return M(this,E,!0)},b.prototype.rawListeners=function(E){return M(this,E,!1)},b.listenerCount=function(B,E){return typeof B.listenerCount=="function"?B.listenerCount(E):I.call(B,E)},b.prototype.listenerCount=I;function I(B){var E=this._events;if(E!==void 0){var W=E[B];if(typeof W=="function")return 1;if(W!==void 0)return W.length}return 0}b.prototype.eventNames=function(){return this._eventsCount>0?p(this._events):[]};function V(B,E){for(var W=new Array(E),Y=0;Y13)&&p!==32&&p!==133&&p!==160&&p!==5760&&p!==6158&&(p<8192||p>8205)&&p!==8232&&p!==8233&&p!==8239&&p!==8287&&p!==8288&&p!==12288&&p!==65279)return!1;return!0}},8956:function(f){var m={left:0,top:0};f.exports=u;function u(v,y,b){y=y||v.currentTarget||v.srcElement,Array.isArray(b)||(b=[0,0]);var x=v.clientX||0,k=v.clientY||0,C=p(y);return b[0]=x-C.left,b[1]=k-C.top,b}function p(v){return v===window||v===document||v===document.body?m:v.getBoundingClientRect()}},7417:function(f,m,u){var p;/*! Native Promise Only + v0.8.1 (c) Kyle Simpson + MIT License: http://getify.mit-license.org +*/(function(y,b,x){b[y]=b[y]||x(),f.exports?f.exports=b[y]:(p=(function(){return b[y]}).call(m,u,m,f),p!==void 0&&(f.exports=p))})("Promise",typeof u.g<"u"?u.g:this,function(){var y,b,x,k=Object.prototype.toString,C=typeof setImmediate<"u"?function(E){return setImmediate(E)}:setTimeout;try{Object.defineProperty({},"x",{}),y=function(E,W,Y,ie){return Object.defineProperty(E,W,{value:Y,writable:!0,configurable:ie!==!1})}}catch{y=function(W,Y,ie){return W[Y]=ie,W}}x=function(){var E,W,Y;function ie(L,me){this.fn=L,this.self=me,this.next=void 0}return{add:function(me,ae){Y=new ie(me,ae),W?W.next=Y:E=Y,W=Y,Y=void 0},drain:function(){var me=E;for(E=W=b=void 0;me;)me.fn.call(me.self),me=me.next}}}();function w(B,E){x.add(B,E),b||(b=C(x.drain))}function T(B){var E,W=typeof B;return B!=null&&(W=="object"||W=="function")&&(E=B.then),typeof E=="function"?E:!1}function R(){for(var B=0;B0&&w(R,W))}catch(Y){V.call(new F(W),Y)}}}function V(B){var E=this;E.triggered||(E.triggered=!0,E.def&&(E=E.def),E.msg=B,E.state=2,E.chain.length>0&&w(R,E))}function N(B,E,W,Y){for(var ie=0;ie2&&(x.push([C].concat(w.splice(0,2))),T="l",C=C=="m"?"l":"L");;){if(w.length==m[T])return w.unshift(C),x.push(w);if(w.lengthx!=V>x&&b<(I-R)*(x-M)/(V-M)+R;N&&(k=!k)}return k}},2142:function(f,m,u){/* + * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc + * @license MIT + * @preserve Project Home: https://github.com/voidqk/polybooljs + */var p=u(9444),v=u(9023),y=u(7263),b=u(1328),x=u(5968),k=u(670),C=!1,w=v(),T;T={buildLog:function(M){return M===!0?C=p():M===!1&&(C=!1),C===!1?!1:C.list},epsilon:function(M){return w.epsilon(M)},segments:function(M){var I=y(!0,w,C);return M.regions.forEach(I.addRegion),{segments:I.calculate(M.inverted),inverted:M.inverted}},combine:function(M,I){var V=y(!1,w,C);return{combined:V.calculate(M.segments,M.inverted,I.segments,I.inverted),inverted1:M.inverted,inverted2:I.inverted}},selectUnion:function(M){return{segments:x.union(M.combined,C),inverted:M.inverted1||M.inverted2}},selectIntersect:function(M){return{segments:x.intersect(M.combined,C),inverted:M.inverted1&&M.inverted2}},selectDifference:function(M){return{segments:x.difference(M.combined,C),inverted:M.inverted1&&!M.inverted2}},selectDifferenceRev:function(M){return{segments:x.differenceRev(M.combined,C),inverted:!M.inverted1&&M.inverted2}},selectXor:function(M){return{segments:x.xor(M.combined,C),inverted:M.inverted1!==M.inverted2}},polygon:function(M){return{regions:b(M.segments,w,C),inverted:M.inverted}},polygonFromGeoJSON:function(M){return k.toPolygon(T,M)},polygonToGeoJSON:function(M){return k.fromPolygon(T,w,M)},union:function(M,I){return R(M,I,T.selectUnion)},intersect:function(M,I){return R(M,I,T.selectIntersect)},difference:function(M,I){return R(M,I,T.selectDifference)},differenceRev:function(M,I){return R(M,I,T.selectDifferenceRev)},xor:function(M,I){return R(M,I,T.selectXor)}};function R(M,I,V){var N=T.segments(M),F=T.segments(I),z=T.combine(N,F),U=V(z);return T.polygon(U)}typeof window=="object"&&(window.PolyBool=T),f.exports=T},9444:function(f){function m(){var u,p=0,v=!1;function y(b,x){return u.list.push({type:b,data:x?JSON.parse(JSON.stringify(x)):void 0}),u}return u={list:[],segmentId:function(){return p++},checkIntersection:function(b,x){return y("check",{seg1:b,seg2:x})},segmentChop:function(b,x){return y("div_seg",{seg:b,pt:x}),y("chop",{seg:b,pt:x})},statusRemove:function(b){return y("pop_seg",{seg:b})},segmentUpdate:function(b){return y("seg_update",{seg:b})},segmentNew:function(b,x){return y("new_seg",{seg:b,primary:x})},segmentRemove:function(b){return y("rem_seg",{seg:b})},tempStatus:function(b,x,k){return y("temp_status",{seg:b,above:x,below:k})},rewind:function(b){return y("rewind",{seg:b})},status:function(b,x,k){return y("status",{seg:b,above:x,below:k})},vert:function(b){return b===v?u:(v=b,y("vert",{x:b}))},log:function(b){return typeof b!="string"&&(b=JSON.stringify(b,!1," ")),y("log",{txt:b})},reset:function(){return y("reset")},selected:function(b){return y("selected",{segs:b})},chainStart:function(b){return y("chain_start",{seg:b})},chainRemoveHead:function(b,x){return y("chain_rem_head",{index:b,pt:x})},chainRemoveTail:function(b,x){return y("chain_rem_tail",{index:b,pt:x})},chainNew:function(b,x){return y("chain_new",{pt1:b,pt2:x})},chainMatch:function(b){return y("chain_match",{index:b})},chainClose:function(b){return y("chain_close",{index:b})},chainAddHead:function(b,x){return y("chain_add_head",{index:b,pt:x})},chainAddTail:function(b,x){return y("chain_add_tail",{index:b,pt:x})},chainConnect:function(b,x){return y("chain_con",{index1:b,index2:x})},chainReverse:function(b){return y("chain_rev",{index:b})},chainJoin:function(b,x){return y("chain_join",{index1:b,index2:x})},done:function(){return y("done")}},u}f.exports=m},9023:function(f){function m(u){typeof u!="number"&&(u=1e-10);var p={epsilon:function(v){return typeof v=="number"&&(u=v),u},pointAboveOrOnLine:function(v,y,b){var x=y[0],k=y[1],C=b[0],w=b[1],T=v[0],R=v[1];return(C-x)*(R-k)-(w-k)*(T-x)>=-u},pointBetween:function(v,y,b){var x=v[1]-y[1],k=b[0]-y[0],C=v[0]-y[0],w=b[1]-y[1],T=C*k+x*w;if(T-u)},pointsSameX:function(v,y){return Math.abs(v[0]-y[0])u!=C-x>u&&(k-R)*(x-M)/(C-M)+R-b>u&&(w=!w),k=R,C=M}return w}};return p}f.exports=m},670:function(f){var m={toPolygon:function(u,p){function v(x){if(x.length<=0)return u.segments({inverted:!1,regions:[]});function k(T){var R=T.slice(0,T.length-1);return u.segments({inverted:!1,regions:[R]})}for(var C=k(x[0]),w=1;w0})}function Y(ge,ne){var pe=ge.seg,G=ne.seg,Oe=pe.start,xe=pe.end,Le=G.start,ke=G.end;x&&x.checkIntersection(pe,G);var $e=b.linesIntersect(Oe,xe,Le,ke);if($e===!1){if(!b.pointsCollinear(Oe,xe,Le)||b.pointsSame(Oe,ke)||b.pointsSame(xe,Le))return!1;var Ze=b.pointsSame(Oe,Le),De=b.pointsSame(xe,ke);if(Ze&&De)return ne;var Ie=!Ze&&b.pointBetween(Oe,Le,ke),re=!De&&b.pointBetween(xe,Le,ke);if(Ze)return re?F(ne,xe):F(ge,ke),ne;Ie&&(De||(re?F(ne,xe):F(ge,ke)),F(ne,Oe))}else $e.alongA===0&&($e.alongB===-1?F(ge,Le):$e.alongB===0?F(ge,$e.pt):$e.alongB===1&&F(ge,ke)),$e.alongB===0&&($e.alongA===-1?F(ne,Oe):$e.alongA===0?F(ne,$e.pt):$e.alongA===1&&F(ne,xe));return!1}for(var ie=[];!w.isEmpty();){var L=w.getHead();if(x&&x.vert(L.pt[0]),L.isStart){let ge=function(){if(ae){var ne=Y(L,ae);if(ne)return ne}return q?Y(L,q):!1};x&&x.segmentNew(L.seg,L.primary);var me=W(L),ae=me.before?me.before.ev:null,q=me.after?me.after.ev:null;x&&x.tempStatus(L.seg,ae?ae.seg:!1,q?q.seg:!1);var fe=ge();if(fe){if(y){var ee;L.seg.myFill.below===null?ee=!0:ee=L.seg.myFill.above!==L.seg.myFill.below,ee&&(fe.seg.myFill.above=!fe.seg.myFill.above)}else fe.seg.otherFill=L.seg.myFill;x&&x.segmentUpdate(fe.seg),L.other.remove(),L.remove()}if(w.getHead()!==L){x&&x.rewind(L.seg);continue}if(y){var ee;L.seg.myFill.below===null?ee=!0:ee=L.seg.myFill.above!==L.seg.myFill.below,q?L.seg.myFill.below=q.seg.myFill.above:L.seg.myFill.below=U,ee?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var be;q?L.primary===q.primary?be=q.seg.otherFill.above:be=q.seg.myFill.above:be=L.primary?Q:U,L.seg.otherFill={above:be,below:be}}x&&x.status(L.seg,ae?ae.seg:!1,q?q.seg:!1),L.other.status=me.insert(p.node({ev:L}))}else{var Te=L.status;if(Te===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(B.exists(Te.prev)&&B.exists(Te.next)&&Y(Te.prev.ev,Te.next.ev),x&&x.statusRemove(Te.ev.seg),Te.remove(),!L.primary){var Be=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=Be}ie.push(L.seg)}w.getHead().remove()}return x&&x.done(),ie}return y?{addRegion:function(U){for(var Q,B=U[U.length-1],E=0;E=0,Qe=!Se&&Ce&&(oe==="hex"||oe==="hex6"||oe==="hex3"||oe==="hex4"||oe==="hex8"||oe==="name");return Qe?oe==="name"&&this._a===0?this.toName():this.toRgbString():(oe==="rgb"&&(le=this.toRgbString()),oe==="prgb"&&(le=this.toPercentageRgbString()),(oe==="hex"||oe==="hex6")&&(le=this.toHexString()),oe==="hex3"&&(le=this.toHexString(!0)),oe==="hex4"&&(le=this.toHex8String(!0)),oe==="hex8"&&(le=this.toHex8String()),oe==="name"&&(le=this.toName()),oe==="hsl"&&(le=this.toHslString()),oe==="hsv"&&(le=this.toHsvString()),le||this.toHexString())},clone:function(){return R(this.toString())},_applyModification:function(oe,Se){var le=oe.apply(null,[this].concat([].slice.call(Se)));return this._r=le._r,this._g=le._g,this._b=le._b,this.setAlpha(le._a),this},lighten:function(){return this._applyModification(ie,arguments)},brighten:function(){return this._applyModification(L,arguments)},darken:function(){return this._applyModification(me,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(W,arguments)},greyscale:function(){return this._applyModification(Y,arguments)},spin:function(){return this._applyModification(ae,arguments)},_applyCombination:function(oe,Se){return oe.apply(null,[this].concat([].slice.call(Se)))},analogous:function(){return this._applyCombination(Te,arguments)},complement:function(){return this._applyCombination(q,arguments)},monochromatic:function(){return this._applyCombination(Be,arguments)},splitcomplement:function(){return this._applyCombination(be,arguments)},triad:function(){return this._applyCombination(fe,arguments)},tetrad:function(){return this._applyCombination(ee,arguments)}},R.fromRatio=function(oe,Se){if(typeof oe=="object"){var le={};for(var Ce in oe)oe.hasOwnProperty(Ce)&&(Ce==="a"?le[Ce]=oe[Ce]:le[Ce]=De(oe[Ce]));oe=le}return R(oe,Se)};function M(oe){var Se={r:0,g:0,b:0},le=1,Ce=null,Qe=null,ze=null,Xe=!1,ct=!1;return typeof oe=="string"&&(oe=se(oe)),typeof oe=="object"&&(te(oe.r)&&te(oe.g)&&te(oe.b)?(Se=I(oe.r,oe.g,oe.b),Xe=!0,ct=String(oe.r).substr(-1)==="%"?"prgb":"rgb"):te(oe.h)&&te(oe.s)&&te(oe.v)?(Ce=De(oe.s),Qe=De(oe.v),Se=z(oe.h,Ce,Qe),Xe=!0,ct="hsv"):te(oe.h)&&te(oe.s)&&te(oe.l)&&(Ce=De(oe.s),ze=De(oe.l),Se=N(oe.h,Ce,ze),Xe=!0,ct="hsl"),oe.hasOwnProperty("a")&&(le=oe.a)),le=G(le),{ok:Xe,format:oe.format||ct,r:C(255,w(Se.r,0)),g:C(255,w(Se.g,0)),b:C(255,w(Se.b,0)),a:le}}function I(oe,Se,le){return{r:Oe(oe,255)*255,g:Oe(Se,255)*255,b:Oe(le,255)*255}}function V(oe,Se,le){oe=Oe(oe,255),Se=Oe(Se,255),le=Oe(le,255);var Ce=w(oe,Se,le),Qe=C(oe,Se,le),ze,Xe,ct=(Ce+Qe)/2;if(Ce==Qe)ze=Xe=0;else{var pt=Ce-Qe;switch(Xe=ct>.5?pt/(2-Ce-Qe):pt/(Ce+Qe),Ce){case oe:ze=(Se-le)/pt+(Se1&&(et-=1),et<.16666666666666666?Ye+(je-Ye)*6*et:et<.5?je:et<.6666666666666666?Ye+(je-Ye)*(.6666666666666666-et)*6:Ye}if(Se===0)Ce=Qe=ze=le;else{var ct=le<.5?le*(1+Se):le+Se-le*Se,pt=2*le-ct;Ce=Xe(pt,ct,oe+.3333333333333333),Qe=Xe(pt,ct,oe),ze=Xe(pt,ct,oe-.3333333333333333)}return{r:Ce*255,g:Qe*255,b:ze*255}}function F(oe,Se,le){oe=Oe(oe,255),Se=Oe(Se,255),le=Oe(le,255);var Ce=w(oe,Se,le),Qe=C(oe,Se,le),ze,Xe,ct=Ce,pt=Ce-Qe;if(Xe=Ce===0?0:pt/Ce,Ce==Qe)ze=0;else{switch(Ce){case oe:ze=(Se-le)/pt+(Se>1)+720)%360;--Se;)Ce.h=(Ce.h+Qe)%360,ze.push(R(Ce));return ze}function Be(oe,Se){Se=Se||6;for(var le=R(oe).toHsv(),Ce=le.h,Qe=le.s,ze=le.v,Xe=[],ct=1/Se;Se--;)Xe.push(R({h:Ce,s:Qe,v:ze})),ze=(ze+ct)%1;return Xe}R.mix=function(oe,Se,le){le=le===0?0:le||50;var Ce=R(oe).toRgb(),Qe=R(Se).toRgb(),ze=le/100,Xe={r:(Qe.r-Ce.r)*ze+Ce.r,g:(Qe.g-Ce.g)*ze+Ce.g,b:(Qe.b-Ce.b)*ze+Ce.b,a:(Qe.a-Ce.a)*ze+Ce.a};return R(Xe)},R.readability=function(oe,Se){var le=R(oe),Ce=R(Se);return(v.max(le.getLuminance(),Ce.getLuminance())+.05)/(v.min(le.getLuminance(),Ce.getLuminance())+.05)},R.isReadable=function(oe,Se,le){var Ce=R.readability(oe,Se),Qe,ze;switch(ze=!1,Qe=ue(le),Qe.level+Qe.size){case"AAsmall":case"AAAlarge":ze=Ce>=4.5;break;case"AAlarge":ze=Ce>=3;break;case"AAAsmall":ze=Ce>=7;break}return ze},R.mostReadable=function(oe,Se,le){var Ce=null,Qe=0,ze,Xe,ct,pt;le=le||{},Xe=le.includeFallbackColors,ct=le.level,pt=le.size;for(var Ye=0;YeQe&&(Qe=ze,Ce=R(Se[Ye]));return R.isReadable(oe,Ce,{level:ct,size:pt})||!Xe?Ce:(le.includeFallbackColors=!1,R.mostReadable(oe,["#fff","#000"],le))};var ge=R.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ne=R.hexNames=pe(ge);function pe(oe){var Se={};for(var le in oe)oe.hasOwnProperty(le)&&(Se[oe[le]]=le);return Se}function G(oe){return oe=parseFloat(oe),(isNaN(oe)||oe<0||oe>1)&&(oe=1),oe}function Oe(oe,Se){ke(oe)&&(oe="100%");var le=$e(oe);return oe=C(Se,w(0,parseFloat(oe))),le&&(oe=parseInt(oe*Se,10)/100),v.abs(oe-Se)<1e-6?1:oe%Se/parseFloat(Se)}function xe(oe){return C(1,w(0,oe))}function Le(oe){return parseInt(oe,16)}function ke(oe){return typeof oe=="string"&&oe.indexOf(".")!=-1&&parseFloat(oe)===1}function $e(oe){return typeof oe=="string"&&oe.indexOf("%")!=-1}function Ze(oe){return oe.length==1?"0"+oe:""+oe}function De(oe){return oe<=1&&(oe=oe*100+"%"),oe}function Ie(oe){return v.round(parseFloat(oe)*255).toString(16)}function re(oe){return Le(oe)/255}var ye=function(){var oe="[-\\+]?\\d+%?",Se="[-\\+]?\\d*\\.\\d+%?",le="(?:"+Se+")|(?:"+oe+")",Ce="[\\s|\\(]+("+le+")[,|\\s]+("+le+")[,|\\s]+("+le+")\\s*\\)?",Qe="[\\s|\\(]+("+le+")[,|\\s]+("+le+")[,|\\s]+("+le+")[,|\\s]+("+le+")\\s*\\)?";return{CSS_UNIT:new RegExp(le),rgb:new RegExp("rgb"+Ce),rgba:new RegExp("rgba"+Qe),hsl:new RegExp("hsl"+Ce),hsla:new RegExp("hsla"+Qe),hsv:new RegExp("hsv"+Ce),hsva:new RegExp("hsva"+Qe),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function te(oe){return!!ye.CSS_UNIT.exec(oe)}function se(oe){oe=oe.replace(y,"").replace(b,"").toLowerCase();var Se=!1;if(ge[oe])oe=ge[oe],Se=!0;else if(oe=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var le;return(le=ye.rgb.exec(oe))?{r:le[1],g:le[2],b:le[3]}:(le=ye.rgba.exec(oe))?{r:le[1],g:le[2],b:le[3],a:le[4]}:(le=ye.hsl.exec(oe))?{h:le[1],s:le[2],l:le[3]}:(le=ye.hsla.exec(oe))?{h:le[1],s:le[2],l:le[3],a:le[4]}:(le=ye.hsv.exec(oe))?{h:le[1],s:le[2],v:le[3]}:(le=ye.hsva.exec(oe))?{h:le[1],s:le[2],v:le[3],a:le[4]}:(le=ye.hex8.exec(oe))?{r:Le(le[1]),g:Le(le[2]),b:Le(le[3]),a:re(le[4]),format:Se?"name":"hex8"}:(le=ye.hex6.exec(oe))?{r:Le(le[1]),g:Le(le[2]),b:Le(le[3]),format:Se?"name":"hex"}:(le=ye.hex4.exec(oe))?{r:Le(le[1]+""+le[1]),g:Le(le[2]+""+le[2]),b:Le(le[3]+""+le[3]),a:re(le[4]+""+le[4]),format:Se?"name":"hex8"}:(le=ye.hex3.exec(oe))?{r:Le(le[1]+""+le[1]),g:Le(le[2]+""+le[2]),b:Le(le[3]+""+le[3]),format:Se?"name":"hex"}:!1}function ue(oe){var Se,le;return oe=oe||{level:"AA",size:"small"},Se=(oe.level||"AA").toUpperCase(),le=(oe.size||"small").toLowerCase(),Se!=="AA"&&Se!=="AAA"&&(Se="AA"),le!=="small"&&le!=="large"&&(le="small"),{level:Se,size:le}}f.exports?f.exports=R:(p=(function(){return R}).call(m,u,m,f),p!==void 0&&(f.exports=p))})(Math)},3961:function(f,m,u){var p=u(3489),v=u(6131),y=p.instance();function b(V){this.local=this.regionalOptions[V||""]||this.regionalOptions[""]}b.prototype=new p.baseCalendar,v(b.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(V,N){if(typeof V=="string"){var F=V.match(k);return F?F[0]:""}var z=this._validateYear(V),U=V.month(),Q=""+this.toChineseMonth(z,U);return N&&Q.length<2&&(Q="0"+Q),this.isIntercalaryMonth(z,U)&&(Q+="i"),Q},monthNames:function(V){if(typeof V=="string"){var N=V.match(C);return N?N[0]:""}var F=this._validateYear(V),z=V.month(),U=this.toChineseMonth(F,z),Q=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][U-1];return this.isIntercalaryMonth(F,z)&&(Q="闰"+Q),Q},monthNamesShort:function(V){if(typeof V=="string"){var N=V.match(w);return N?N[0]:""}var F=this._validateYear(V),z=V.month(),U=this.toChineseMonth(F,z),Q=["一","二","三","四","五","六","七","八","九","十","十一","十二"][U-1];return this.isIntercalaryMonth(F,z)&&(Q="闰"+Q),Q},parseMonth:function(V,N){V=this._validateYear(V);var F=parseInt(N),z;if(isNaN(F))N[0]==="闰"&&(z=!0,N=N.substring(1)),N[N.length-1]==="月"&&(N=N.substring(0,N.length-1)),F=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(N);else{var U=N[N.length-1];z=U==="i"||U==="I"}var Q=this.toMonthIndex(V,F,z);return Q},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(V,N){if(V.year&&(V=V.year()),typeof V!="number"||V<1888||V>2111)throw N.replace(/\{0\}/,this.local.name);return V},toMonthIndex:function(V,N,F){var z=this.intercalaryMonth(V),U=F&&N!==z;if(U||N<1||N>12)throw p.local.invalidMonth.replace(/\{0\}/,this.local.name);var Q;return z?!F&&N<=z?Q=N-1:Q=N:Q=N-1,Q},toChineseMonth:function(V,N){V.year&&(V=V.year(),N=V.month());var F=this.intercalaryMonth(V),z=F?12:11;if(N<0||N>z)throw p.local.invalidMonth.replace(/\{0\}/,this.local.name);var U;return F?N>13;return F},isIntercalaryMonth:function(V,N){V.year&&(V=V.year(),N=V.month());var F=this.intercalaryMonth(V);return!!F&&F===N},leapYear:function(V){return this.intercalaryMonth(V)!==0},weekOfYear:function(V,N,F){var z=this._validateYear(V,p.local.invalidyear),U=R[z-R[0]],Q=U>>9&4095,B=U>>5&15,E=U&31,W;W=y.newDate(Q,B,E),W.add(4-(W.dayOfWeek()||7),"d");var Y=this.toJD(V,N,F)-W.toJD();return 1+Math.floor(Y/7)},monthsInYear:function(V){return this.leapYear(V)?13:12},daysInMonth:function(V,N){V.year&&(N=V.month(),V=V.year()),V=this._validateYear(V);var F=T[V-T[0]],z=F>>13,U=z?12:11;if(N>U)throw p.local.invalidMonth.replace(/\{0\}/,this.local.name);var Q=F&1<<12-N?30:29;return Q},weekDay:function(V,N,F){return(this.dayOfWeek(V,N,F)||7)<6},toJD:function(V,N,F){var z=this._validate(V,Q,F,p.local.invalidDate);V=this._validateYear(z.year()),N=z.month(),F=z.day();var U=this.isIntercalaryMonth(V,N),Q=this.toChineseMonth(V,N),B=I(V,Q,F,U);return y.toJD(B.year,B.month,B.day)},fromJD:function(V){var N=y.fromJD(V),F=M(N.year(),N.month(),N.day()),z=this.toMonthIndex(F.year,F.month,F.isIntercalary);return this.newDate(F.year,z,F.day)},fromString:function(V){var N=V.match(x),F=this._validateYear(+N[1]),z=+N[2],U=!!N[3],Q=this.toMonthIndex(F,z,U),B=+N[4];return this.newDate(F,Q,B)},add:function(V,N,F){var z=V.year(),U=V.month(),Q=this.isIntercalaryMonth(z,U),B=this.toChineseMonth(z,U),E=Object.getPrototypeOf(b.prototype).add.call(this,V,N,F);if(F==="y"){var W=E.year(),Y=E.month(),ie=this.isIntercalaryMonth(W,B),L=Q&&ie?this.toMonthIndex(W,B,!0):this.toMonthIndex(W,B,!1);L!==Y&&E.month(L)}return E}});var x=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,k=/^\d?\d[iI]?/m,C=/^闰?十?[一二三四五六七八九]?月/m,w=/^闰?十?[一二三四五六七八九]?/m;p.calendars.chinese=b;var T=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],R=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function M(V,N,F,z){var U,Q;if(typeof V=="object")U=V,Q=N||{};else{var B=typeof V=="number"&&V>=1888&&V<=2111;if(!B)throw new Error("Solar year outside range 1888-2111");var E=typeof N=="number"&&N>=1&&N<=12;if(!E)throw new Error("Solar month outside range 1 - 12");var W=typeof F=="number"&&F>=1&&F<=31;if(!W)throw new Error("Solar day outside range 1 - 31");U={year:V,month:N,day:F},Q=z||{}}var Y=R[U.year-R[0]],ie=U.year<<9|U.month<<5|U.day;Q.year=ie>=Y?U.year:U.year-1,Y=R[Q.year-R[0]];var L=Y>>9&4095,me=Y>>5&15,ae=Y&31,q,fe=new Date(L,me-1,ae),ee=new Date(U.year,U.month-1,U.day);q=Math.round((ee-fe)/864e5);var be=T[Q.year-T[0]],Te;for(Te=0;Te<13;Te++){var Be=be&1<<12-Te?30:29;if(q>13;return!ge||Te=1888&&V<=2111;if(!E)throw new Error("Lunar year outside range 1888-2111");var W=typeof N=="number"&&N>=1&&N<=12;if(!W)throw new Error("Lunar month outside range 1 - 12");var Y=typeof F=="number"&&F>=1&&F<=30;if(!Y)throw new Error("Lunar day outside range 1 - 30");var ie;typeof z=="object"?(ie=!1,Q=z):(ie=!!z,Q=U||{}),B={year:V,month:N,day:F,isIntercalary:ie}}var L;L=B.day-1;var me=T[B.year-T[0]],ae=me>>13,q;ae&&(B.month>ae||B.isIntercalary)?q=B.month:q=B.month-1;for(var fe=0;fe>9&4095,Be=be>>5&15,ge=be&31,ne=new Date(Te,Be-1,ge+L);return Q.year=ne.getFullYear(),Q.month=1+ne.getMonth(),Q.day=ne.getDate(),Q}},8751:function(f,m,u){var p=u(3489),v=u(6131);function y(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}y.prototype=new p.baseCalendar,v(y.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(k){var x=this._validate(k,this.minMonth,this.minDay,p.local.invalidYear),k=x.year()+(x.year()<0?1:0);return k%4===3||k%4===-1},monthsInYear:function(b){return this._validate(b,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),13},weekOfYear:function(b,x,k){var C=this.newDate(b,x,k);return C.add(-C.dayOfWeek(),"d"),Math.floor((C.dayOfYear()-1)/7)+1},daysInMonth:function(b,x){var k=this._validate(b,x,this.minDay,p.local.invalidMonth);return this.daysPerMonth[k.month()-1]+(k.month()===13&&this.leapYear(k.year())?1:0)},weekDay:function(b,x,k){return(this.dayOfWeek(b,x,k)||7)<6},toJD:function(b,x,k){var C=this._validate(b,x,k,p.local.invalidDate);return b=C.year(),b<0&&b++,C.day()+(C.month()-1)*30+(b-1)*365+Math.floor(b/4)+this.jdEpoch-1},fromJD:function(b){var x=Math.floor(b)+.5-this.jdEpoch,k=Math.floor((x-Math.floor((x+366)/1461))/365)+1;k<=0&&k--,x=Math.floor(b)+.5-this.newDate(k,1,1).toJD();var C=Math.floor(x/30)+1,w=x-(C-1)*30+1;return this.newDate(k,C,w)}}),p.calendars.coptic=y},6825:function(f,m,u){var p=u(3489),v=u(6131);function y(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}y.prototype=new p.baseCalendar,v(y.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(x){return this._validate(x,this.minMonth,this.minDay,p.local.invalidYear),!1},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,p.local.invalidYear),13},daysInYear:function(x){return this._validate(x,this.minMonth,this.minDay,p.local.invalidYear),400},weekOfYear:function(x,k,C){var w=this.newDate(x,k,C);return w.add(-w.dayOfWeek(),"d"),Math.floor((w.dayOfYear()-1)/8)+1},daysInMonth:function(x,k){var C=this._validate(x,k,this.minDay,p.local.invalidMonth);return this.daysPerMonth[C.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(x,k,C){var w=this._validate(x,k,C,p.local.invalidDate);return(w.day()+1)%8},weekDay:function(x,k,C){var w=this.dayOfWeek(x,k,C);return w>=2&&w<=6},extraInfo:function(x,k,C){var w=this._validate(x,k,C,p.local.invalidDate);return{century:b[Math.floor((w.year()-1)/100)+1]||""}},toJD:function(x,k,C){var w=this._validate(x,k,C,p.local.invalidDate);return x=w.year()+(w.year()<0?1:0),k=w.month(),C=w.day(),C+(k>1?16:0)+(k>2?(k-2)*32:0)+(x-1)*400+this.jdEpoch-1},fromJD:function(x){x=Math.floor(x+.5)-Math.floor(this.jdEpoch)-1;var k=Math.floor(x/400)+1;x-=(k-1)*400,x+=x>15?16:0;var C=Math.floor(x/32)+1,w=x-(C-1)*32+1;return this.newDate(k<=0?k-1:k,C,w)}});var b={20:"Fruitbat",21:"Anchovy"};p.calendars.discworld=y},7715:function(f,m,u){var p=u(3489),v=u(6131);function y(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}y.prototype=new p.baseCalendar,v(y.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(k){var x=this._validate(k,this.minMonth,this.minDay,p.local.invalidYear),k=x.year()+(x.year()<0?1:0);return k%4===3||k%4===-1},monthsInYear:function(b){return this._validate(b,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear),13},weekOfYear:function(b,x,k){var C=this.newDate(b,x,k);return C.add(-C.dayOfWeek(),"d"),Math.floor((C.dayOfYear()-1)/7)+1},daysInMonth:function(b,x){var k=this._validate(b,x,this.minDay,p.local.invalidMonth);return this.daysPerMonth[k.month()-1]+(k.month()===13&&this.leapYear(k.year())?1:0)},weekDay:function(b,x,k){return(this.dayOfWeek(b,x,k)||7)<6},toJD:function(b,x,k){var C=this._validate(b,x,k,p.local.invalidDate);return b=C.year(),b<0&&b++,C.day()+(C.month()-1)*30+(b-1)*365+Math.floor(b/4)+this.jdEpoch-1},fromJD:function(b){var x=Math.floor(b)+.5-this.jdEpoch,k=Math.floor((x-Math.floor((x+366)/1461))/365)+1;k<=0&&k--,x=Math.floor(b)+.5-this.newDate(k,1,1).toJD();var C=Math.floor(x/30)+1,w=x-(C-1)*30+1;return this.newDate(k,C,w)}}),p.calendars.ethiopian=y},9384:function(f,m,u){var p=u(3489),v=u(6131);function y(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}y.prototype=new p.baseCalendar,v(y.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var k=this._validate(x,this.minMonth,this.minDay,p.local.invalidYear);return this._leapYear(k.year())},_leapYear:function(x){return x=x<0?x+1:x,b(x*7+1,19)<7},monthsInYear:function(x){return this._validate(x,this.minMonth,this.minDay,p.local.invalidYear),this._leapYear(x.year?x.year():x)?13:12},weekOfYear:function(x,k,C){var w=this.newDate(x,k,C);return w.add(-w.dayOfWeek(),"d"),Math.floor((w.dayOfYear()-1)/7)+1},daysInYear:function(x){var k=this._validate(x,this.minMonth,this.minDay,p.local.invalidYear);return x=k.year(),this.toJD(x===-1?1:x+1,7,1)-this.toJD(x,7,1)},daysInMonth:function(x,k){return x.year&&(k=x.month(),x=x.year()),this._validate(x,k,this.minDay,p.local.invalidMonth),k===12&&this.leapYear(x)||k===8&&b(this.daysInYear(x),10)===5?30:k===9&&b(this.daysInYear(x),10)===3?29:this.daysPerMonth[k-1]},weekDay:function(x,k,C){return this.dayOfWeek(x,k,C)!==6},extraInfo:function(x,k,C){var w=this._validate(x,k,C,p.local.invalidDate);return{yearType:(this.leapYear(w)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(w)%10-3]}},toJD:function(x,k,C){var w=this._validate(x,k,C,p.local.invalidDate);x=w.year(),k=w.month(),C=w.day();var T=x<=0?x+1:x,R=this.jdEpoch+this._delay1(T)+this._delay2(T)+C+1;if(k<7){for(var M=7;M<=this.monthsInYear(x);M++)R+=this.daysInMonth(x,M);for(var M=1;M=this.toJD(k===-1?1:k+1,7,1);)k++;for(var C=xthis.toJD(k,C,this.daysInMonth(k,C));)C++;var w=x-this.toJD(k,C,1)+1;return this.newDate(k,C,w)}});function b(x,k){return x-k*Math.floor(x/k)}p.calendars.hebrew=y},3805:function(f,m,u){var p=u(3489),v=u(6131);function y(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}y.prototype=new p.baseCalendar,v(y.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(b){var x=this._validate(b,this.minMonth,this.minDay,p.local.invalidYear);return(x.year()*11+14)%30<11},weekOfYear:function(b,x,k){var C=this.newDate(b,x,k);return C.add(-C.dayOfWeek(),"d"),Math.floor((C.dayOfYear()-1)/7)+1},daysInYear:function(b){return this.leapYear(b)?355:354},daysInMonth:function(b,x){var k=this._validate(b,x,this.minDay,p.local.invalidMonth);return this.daysPerMonth[k.month()-1]+(k.month()===12&&this.leapYear(k.year())?1:0)},weekDay:function(b,x,k){return this.dayOfWeek(b,x,k)!==5},toJD:function(b,x,k){var C=this._validate(b,x,k,p.local.invalidDate);return b=C.year(),x=C.month(),k=C.day(),b=b<=0?b+1:b,k+Math.ceil(29.5*(x-1))+(b-1)*354+Math.floor((3+11*b)/30)+this.jdEpoch-1},fromJD:function(b){b=Math.floor(b)+.5;var x=Math.floor((30*(b-this.jdEpoch)+10646)/10631);x=x<=0?x-1:x;var k=Math.min(12,Math.ceil((b-29-this.toJD(x,1,1))/29.5)+1),C=b-this.toJD(x,k,1)+1;return this.newDate(x,k,C)}}),p.calendars.islamic=y},8874:function(f,m,u){var p=u(3489),v=u(6131);function y(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}y.prototype=new p.baseCalendar,v(y.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(k){var x=this._validate(k,this.minMonth,this.minDay,p.local.invalidYear),k=x.year()<0?x.year()+1:x.year();return k%4===0},weekOfYear:function(b,x,k){var C=this.newDate(b,x,k);return C.add(4-(C.dayOfWeek()||7),"d"),Math.floor((C.dayOfYear()-1)/7)+1},daysInMonth:function(b,x){var k=this._validate(b,x,this.minDay,p.local.invalidMonth);return this.daysPerMonth[k.month()-1]+(k.month()===2&&this.leapYear(k.year())?1:0)},weekDay:function(b,x,k){return(this.dayOfWeek(b,x,k)||7)<6},toJD:function(b,x,k){var C=this._validate(b,x,k,p.local.invalidDate);return b=C.year(),x=C.month(),k=C.day(),b<0&&b++,x<=2&&(b--,x+=12),Math.floor(365.25*(b+4716))+Math.floor(30.6001*(x+1))+k-1524.5},fromJD:function(b){var x=Math.floor(b+.5),k=x+1524,C=Math.floor((k-122.1)/365.25),w=Math.floor(365.25*C),T=Math.floor((k-w)/30.6001),R=T-Math.floor(T<14?1:13),M=C-Math.floor(R>2?4716:4715),I=k-w-Math.floor(30.6001*T);return M<=0&&M--,this.newDate(M,R,I)}}),p.calendars.julian=y},3290:function(f,m,u){var p=u(3489),v=u(6131);function y(k){this.local=this.regionalOptions[k||""]||this.regionalOptions[""]}y.prototype=new p.baseCalendar,v(y.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(k){return this._validate(k,this.minMonth,this.minDay,p.local.invalidYear),!1},formatYear:function(k){var C=this._validate(k,this.minMonth,this.minDay,p.local.invalidYear);k=C.year();var w=Math.floor(k/400);k=k%400,k+=k<0?400:0;var T=Math.floor(k/20);return w+"."+T+"."+k%20},forYear:function(k){if(k=k.split("."),k.length<3)throw"Invalid Mayan year";for(var C=0,w=0;w19||w>0&&T<0)throw"Invalid Mayan year";C=C*20+T}return C},monthsInYear:function(k){return this._validate(k,this.minMonth,this.minDay,p.local.invalidYear),18},weekOfYear:function(k,C,w){return this._validate(k,C,w,p.local.invalidDate),0},daysInYear:function(k){return this._validate(k,this.minMonth,this.minDay,p.local.invalidYear),360},daysInMonth:function(k,C){return this._validate(k,C,this.minDay,p.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(k,C,w){var T=this._validate(k,C,w,p.local.invalidDate);return T.day()},weekDay:function(k,C,w){return this._validate(k,C,w,p.local.invalidDate),!0},extraInfo:function(k,C,w){var T=this._validate(k,C,w,p.local.invalidDate),R=T.toJD(),M=this._toHaab(R),I=this._toTzolkin(R);return{haabMonthName:this.local.haabMonths[M[0]-1],haabMonth:M[0],haabDay:M[1],tzolkinDayName:this.local.tzolkinMonths[I[0]-1],tzolkinDay:I[0],tzolkinTrecena:I[1]}},_toHaab:function(k){k-=this.jdEpoch;var C=b(k+8+(18-1)*20,365);return[Math.floor(C/20)+1,b(C,20)]},_toTzolkin:function(k){return k-=this.jdEpoch,[x(k+20,20),x(k+4,13)]},toJD:function(k,C,w){var T=this._validate(k,C,w,p.local.invalidDate);return T.day()+T.month()*20+T.year()*360+this.jdEpoch},fromJD:function(k){k=Math.floor(k)+.5-this.jdEpoch;var C=Math.floor(k/360);k=k%360,k+=k<0?360:0;var w=Math.floor(k/20),T=k%20;return this.newDate(C,w,T)}});function b(k,C){return k-C*Math.floor(k/C)}function x(k,C){return b(k-1,C)+1}p.calendars.mayan=y},9108:function(f,m,u){var p=u(3489),v=u(6131);function y(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}y.prototype=new p.baseCalendar;var b=p.instance("gregorian");v(y.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(x){var k=this._validate(x,this.minMonth,this.minDay,p.local.invalidYear||p.regionalOptions[""].invalidYear);return b.leapYear(k.year()+(k.year()<1?1:0)+1469)},weekOfYear:function(x,k,C){var w=this.newDate(x,k,C);return w.add(1-(w.dayOfWeek()||7),"d"),Math.floor((w.dayOfYear()-1)/7)+1},daysInMonth:function(x,k){var C=this._validate(x,k,this.minDay,p.local.invalidMonth);return this.daysPerMonth[C.month()-1]+(C.month()===12&&this.leapYear(C.year())?1:0)},weekDay:function(x,k,C){return(this.dayOfWeek(x,k,C)||7)<6},toJD:function(T,k,C){var w=this._validate(T,k,C,p.local.invalidMonth),T=w.year();T<0&&T++;for(var R=w.day(),M=1;M=this.toJD(k+1,1,1);)k++;for(var C=x-Math.floor(this.toJD(k,1,1)+.5)+1,w=1;C>this.daysInMonth(k,w);)C-=this.daysInMonth(k,w),w++;return this.newDate(k,w,C)}}),p.calendars.nanakshahi=y},5422:function(f,m,u){var p=u(3489),v=u(6131);function y(b){this.local=this.regionalOptions[b||""]||this.regionalOptions[""]}y.prototype=new p.baseCalendar,v(y.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(b){return this.daysInYear(b)!==this.daysPerYear},weekOfYear:function(b,x,k){var C=this.newDate(b,x,k);return C.add(-C.dayOfWeek(),"d"),Math.floor((C.dayOfYear()-1)/7)+1},daysInYear:function(b){var x=this._validate(b,this.minMonth,this.minDay,p.local.invalidYear);if(b=x.year(),typeof this.NEPALI_CALENDAR_DATA[b]>"u")return this.daysPerYear;for(var k=0,C=this.minMonth;C<=12;C++)k+=this.NEPALI_CALENDAR_DATA[b][C];return k},daysInMonth:function(b,x){return b.year&&(x=b.month(),b=b.year()),this._validate(b,x,this.minDay,p.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[b]>"u"?this.daysPerMonth[x-1]:this.NEPALI_CALENDAR_DATA[b][x]},weekDay:function(b,x,k){return this.dayOfWeek(b,x,k)!==6},toJD:function(b,x,k){var C=this._validate(b,x,k,p.local.invalidDate);b=C.year(),x=C.month(),k=C.day();var w=p.instance(),T=0,R=x,M=b;this._createMissingCalendarData(b);var I=b-(R>9||R===9&&k>=this.NEPALI_CALENDAR_DATA[M][0]?56:57);for(x!==9&&(T=k,R--);R!==9;)R<=0&&(R=12,M--),T+=this.NEPALI_CALENDAR_DATA[M][R],R--;return x===9?(T+=k-this.NEPALI_CALENDAR_DATA[M][0],T<0&&(T+=w.daysInYear(I))):T+=this.NEPALI_CALENDAR_DATA[M][9]-this.NEPALI_CALENDAR_DATA[M][0],w.newDate(I,1,1).add(T,"d").toJD()},fromJD:function(b){var x=p.instance(),k=x.fromJD(b),C=k.year(),w=k.dayOfYear(),T=C+56;this._createMissingCalendarData(T);for(var R=9,M=this.NEPALI_CALENDAR_DATA[T][0],I=this.NEPALI_CALENDAR_DATA[T][R]-M+1;w>I;)R++,R>12&&(R=1,T++),I+=this.NEPALI_CALENDAR_DATA[T][R];var V=this.NEPALI_CALENDAR_DATA[T][R]-(I-w);return this.newDate(T,R,V)},_createMissingCalendarData:function(b){var x=this.daysPerMonth.slice(0);x.unshift(17);for(var k=b-1;k"u"&&(this.NEPALI_CALENDAR_DATA[k]=x)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),p.calendars.nepali=y},4320:function(f,m,u){var p=u(3489),v=u(6131);function y(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}y.prototype=new p.baseCalendar,v(y.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(x){var k=this._validate(x,this.minMonth,this.minDay,p.local.invalidYear);return((k.year()-(k.year()>0?474:473))%2820+474+38)*682%2816<682},weekOfYear:function(x,k,C){var w=this.newDate(x,k,C);return w.add(-((w.dayOfWeek()+1)%7),"d"),Math.floor((w.dayOfYear()-1)/7)+1},daysInMonth:function(x,k){var C=this._validate(x,k,this.minDay,p.local.invalidMonth);return this.daysPerMonth[C.month()-1]+(C.month()===12&&this.leapYear(C.year())?1:0)},weekDay:function(x,k,C){return this.dayOfWeek(x,k,C)!==5},toJD:function(x,k,C){var w=this._validate(x,k,C,p.local.invalidDate);x=w.year(),k=w.month(),C=w.day();var T=x-(x>=0?474:473),R=474+b(T,2820);return C+(k<=7?(k-1)*31:(k-1)*30+6)+Math.floor((R*682-110)/2816)+(R-1)*365+Math.floor(T/2820)*1029983+this.jdEpoch-1},fromJD:function(x){x=Math.floor(x)+.5;var k=x-this.toJD(475,1,1),C=Math.floor(k/1029983),w=b(k,1029983),T=2820;if(w!==1029982){var R=Math.floor(w/366),M=b(w,366);T=Math.floor((2134*R+2816*M+2815)/1028522)+R+1}var I=T+2820*C+474;I=I<=0?I-1:I;var V=x-this.toJD(I,1,1)+1,N=V<=186?Math.ceil(V/31):Math.ceil((V-6)/30),F=x-this.toJD(I,N,1)+1;return this.newDate(I,N,F)}});function b(x,k){return x-k*Math.floor(x/k)}p.calendars.persian=y,p.calendars.jalali=y},1320:function(f,m,u){var p=u(3489),v=u(6131),y=p.instance();function b(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}b.prototype=new p.baseCalendar,v(b.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(C){var k=this._validate(C,this.minMonth,this.minDay,p.local.invalidYear),C=this._t2gYear(k.year());return y.leapYear(C)},weekOfYear:function(T,k,C){var w=this._validate(T,this.minMonth,this.minDay,p.local.invalidYear),T=this._t2gYear(w.year());return y.weekOfYear(T,w.month(),w.day())},daysInMonth:function(x,k){var C=this._validate(x,k,this.minDay,p.local.invalidMonth);return this.daysPerMonth[C.month()-1]+(C.month()===2&&this.leapYear(C.year())?1:0)},weekDay:function(x,k,C){return(this.dayOfWeek(x,k,C)||7)<6},toJD:function(T,k,C){var w=this._validate(T,k,C,p.local.invalidDate),T=this._t2gYear(w.year());return y.toJD(T,w.month(),w.day())},fromJD:function(x){var k=y.fromJD(x),C=this._g2tYear(k.year());return this.newDate(C,k.month(),k.day())},_t2gYear:function(x){return x+this.yearsOffset+(x>=-this.yearsOffset&&x<=-1?1:0)},_g2tYear:function(x){return x-this.yearsOffset-(x>=1&&x<=this.yearsOffset?1:0)}}),p.calendars.taiwan=b},1367:function(f,m,u){var p=u(3489),v=u(6131),y=p.instance();function b(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}b.prototype=new p.baseCalendar,v(b.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(C){var k=this._validate(C,this.minMonth,this.minDay,p.local.invalidYear),C=this._t2gYear(k.year());return y.leapYear(C)},weekOfYear:function(T,k,C){var w=this._validate(T,this.minMonth,this.minDay,p.local.invalidYear),T=this._t2gYear(w.year());return y.weekOfYear(T,w.month(),w.day())},daysInMonth:function(x,k){var C=this._validate(x,k,this.minDay,p.local.invalidMonth);return this.daysPerMonth[C.month()-1]+(C.month()===2&&this.leapYear(C.year())?1:0)},weekDay:function(x,k,C){return(this.dayOfWeek(x,k,C)||7)<6},toJD:function(T,k,C){var w=this._validate(T,k,C,p.local.invalidDate),T=this._t2gYear(w.year());return y.toJD(T,w.month(),w.day())},fromJD:function(x){var k=y.fromJD(x),C=this._g2tYear(k.year());return this.newDate(C,k.month(),k.day())},_t2gYear:function(x){return x-this.yearsOffset-(x>=1&&x<=this.yearsOffset?1:0)},_g2tYear:function(x){return x+this.yearsOffset+(x>=-this.yearsOffset&&x<=-1?1:0)}}),p.calendars.thai=b},1457:function(f,m,u){var p=u(3489),v=u(6131);function y(x){this.local=this.regionalOptions[x||""]||this.regionalOptions[""]}y.prototype=new p.baseCalendar,v(y.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(x){var k=this._validate(x,this.minMonth,this.minDay,p.local.invalidYear);return this.daysInYear(k.year())===355},weekOfYear:function(x,k,C){var w=this.newDate(x,k,C);return w.add(-w.dayOfWeek(),"d"),Math.floor((w.dayOfYear()-1)/7)+1},daysInYear:function(x){for(var k=0,C=1;C<=12;C++)k+=this.daysInMonth(x,C);return k},daysInMonth:function(x,k){for(var C=this._validate(x,k,this.minDay,p.local.invalidMonth),w=C.toJD()-24e5+.5,T=0,R=0;Rw)return b[T]-b[T-1];T++}return 30},weekDay:function(x,k,C){return this.dayOfWeek(x,k,C)!==5},toJD:function(x,k,C){var w=this._validate(x,k,C,p.local.invalidDate),T=12*(w.year()-1)+w.month()-15292,R=w.day()+b[T-1]-1;return R+24e5-.5},fromJD:function(x){for(var k=x-24e5+.5,C=0,w=0;wk);w++)C++;var T=C+15292,R=Math.floor((T-1)/12),M=R+1,I=T-12*R,V=k-b[C-1]+1;return this.newDate(M,I,V)},isValid:function(x,k,C){var w=p.baseCalendar.prototype.isValid.apply(this,arguments);return w&&(x=x.year!=null?x.year:x,w=x>=1276&&x<=1500),w},_validate:function(x,k,C,w){var T=p.baseCalendar.prototype._validate.apply(this,arguments);if(T.year<1276||T.year>1500)throw w.replace(/\{0\}/,this.local.name);return T}}),p.calendars.ummalqura=y;var b=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},3489:function(f,m,u){var p=u(6131);function v(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}p(v.prototype,{instance:function(w,T){w=(w||"gregorian").toLowerCase(),T=T||"";var R=this._localCals[w+"-"+T];if(!R&&this.calendars[w]&&(R=new this.calendars[w](T),this._localCals[w+"-"+T]=R),!R)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,w);return R},newDate:function(w,T,R,M,I){return M=(w!=null&&w.year?w.calendar():typeof M=="string"?this.instance(M,I):M)||this.instance(),M.newDate(w,T,R)},substituteDigits:function(w){return function(T){return(T+"").replace(/[0-9]/g,function(R){return w[R]})}},substituteChineseDigits:function(w,T){return function(R){for(var M="",I=0;R>0;){var V=R%10;M=(V===0?"":w[V]+T[I])+M,I++,R=Math.floor(R/10)}return M.indexOf(w[1]+T[1])===0&&(M=M.substr(1)),M||w[0]}}});function y(w,T,R,M){if(this._calendar=w,this._year=T,this._month=R,this._day=M,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(C.local.invalidDate||C.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function b(w,T){return w=""+w,"000000".substring(0,T-w.length)+w}p(y.prototype,{newDate:function(w,T,R){return this._calendar.newDate(w??this,T,R)},year:function(w){return arguments.length===0?this._year:this.set(w,"y")},month:function(w){return arguments.length===0?this._month:this.set(w,"m")},day:function(w){return arguments.length===0?this._day:this.set(w,"d")},date:function(w,T,R){if(!this._calendar.isValid(w,T,R))throw(C.local.invalidDate||C.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=w,this._month=T,this._day=R,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(w,T){return this._calendar.add(this,w,T)},set:function(w,T){return this._calendar.set(this,w,T)},compareTo:function(w){if(this._calendar.name!==w._calendar.name)throw(C.local.differentCalendars||C.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,w._calendar.local.name);var T=this._year!==w._year?this._year-w._year:this._month!==w._month?this.monthOfYear()-w.monthOfYear():this._day-w._day;return T===0?0:T<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(w){return this._calendar.fromJD(w)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(w){return this._calendar.fromJSDate(w)},toString:function(){return(this.year()<0?"-":"")+b(Math.abs(this.year()),4)+"-"+b(this.month(),2)+"-"+b(this.day(),2)}});function x(){this.shortYearCutoff="+10"}p(x.prototype,{_validateLevel:0,newDate:function(w,T,R){return w==null?this.today():(w.year&&(this._validate(w,T,R,C.local.invalidDate||C.regionalOptions[""].invalidDate),R=w.day(),T=w.month(),w=w.year()),new y(this,w,T,R))},today:function(){return this.fromJSDate(new Date)},epoch:function(w){var T=this._validate(w,this.minMonth,this.minDay,C.local.invalidYear||C.regionalOptions[""].invalidYear);return T.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(w){var T=this._validate(w,this.minMonth,this.minDay,C.local.invalidYear||C.regionalOptions[""].invalidYear);return(T.year()<0?"-":"")+b(Math.abs(T.year()),4)},monthsInYear:function(w){return this._validate(w,this.minMonth,this.minDay,C.local.invalidYear||C.regionalOptions[""].invalidYear),12},monthOfYear:function(w,T){var R=this._validate(w,T,this.minDay,C.local.invalidMonth||C.regionalOptions[""].invalidMonth);return(R.month()+this.monthsInYear(R)-this.firstMonth)%this.monthsInYear(R)+this.minMonth},fromMonthOfYear:function(w,T){var R=(T+this.firstMonth-2*this.minMonth)%this.monthsInYear(w)+this.minMonth;return this._validate(w,R,this.minDay,C.local.invalidMonth||C.regionalOptions[""].invalidMonth),R},daysInYear:function(w){var T=this._validate(w,this.minMonth,this.minDay,C.local.invalidYear||C.regionalOptions[""].invalidYear);return this.leapYear(T)?366:365},dayOfYear:function(w,T,R){var M=this._validate(w,T,R,C.local.invalidDate||C.regionalOptions[""].invalidDate);return M.toJD()-this.newDate(M.year(),this.fromMonthOfYear(M.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(w,T,R){var M=this._validate(w,T,R,C.local.invalidDate||C.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(M))+2)%this.daysInWeek()},extraInfo:function(w,T,R){return this._validate(w,T,R,C.local.invalidDate||C.regionalOptions[""].invalidDate),{}},add:function(w,T,R){return this._validate(w,this.minMonth,this.minDay,C.local.invalidDate||C.regionalOptions[""].invalidDate),this._correctAdd(w,this._add(w,T,R),T,R)},_add:function(w,T,R){if(this._validateLevel++,R==="d"||R==="w"){var M=w.toJD()+T*(R==="w"?this.daysInWeek():1),I=w.calendar().fromJD(M);return this._validateLevel--,[I.year(),I.month(),I.day()]}try{var V=w.year()+(R==="y"?T:0),N=w.monthOfYear()+(R==="m"?T:0),I=w.day(),F=function(Q){for(;NB-1+Q.minMonth;)V++,N-=B,B=Q.monthsInYear(V)};R==="y"?(w.month()!==this.fromMonthOfYear(V,N)&&(N=this.newDate(V,w.month(),this.minDay).monthOfYear()),N=Math.min(N,this.monthsInYear(V)),I=Math.min(I,this.daysInMonth(V,this.fromMonthOfYear(V,N)))):R==="m"&&(F(this),I=Math.min(I,this.daysInMonth(V,this.fromMonthOfYear(V,N))));var z=[V,this.fromMonthOfYear(V,N),I];return this._validateLevel--,z}catch(U){throw this._validateLevel--,U}},_correctAdd:function(w,T,R,M){if(!this.hasYearZero&&(M==="y"||M==="m")&&(T[0]===0||w.year()>0!=T[0]>0)){var I={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[M],V=R<0?-1:1;T=this._add(w,R*I[0]+V*I[1],I[2])}return w.date(T[0],T[1],T[2])},set:function(w,T,R){this._validate(w,this.minMonth,this.minDay,C.local.invalidDate||C.regionalOptions[""].invalidDate);var M=R==="y"?T:w.year(),I=R==="m"?T:w.month(),V=R==="d"?T:w.day();return(R==="y"||R==="m")&&(V=Math.min(V,this.daysInMonth(M,I))),w.date(M,I,V)},isValid:function(w,T,R){this._validateLevel++;var M=this.hasYearZero||w!==0;if(M){var I=this.newDate(w,T,this.minDay);M=T>=this.minMonth&&T-this.minMonth=this.minDay&&R-this.minDay13.5?13:1),U=I-(z>2.5?4716:4715);return U<=0&&U--,this.newDate(U,z,F)},toJSDate:function(w,T,R){var M=this._validate(w,T,R,C.local.invalidDate||C.regionalOptions[""].invalidDate),I=new Date(M.year(),M.month()-1,M.day());return I.setHours(0),I.setMinutes(0),I.setSeconds(0),I.setMilliseconds(0),I.setHours(I.getHours()>12?I.getHours()+2:0),I},fromJSDate:function(w){return this.newDate(w.getFullYear(),w.getMonth()+1,w.getDate())}});var C=f.exports=new v;C.cdate=y,C.baseCalendar=x,C.calendars.gregorian=k},4338:function(f,m,u){var p=u(6131),v=u(3489);p(v.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),v.local=v.regionalOptions[""],p(v.cdate.prototype,{formatDate:function(y,b){return typeof y!="string"&&(b=y,y=""),this._calendar.formatDate(y||"",this,b)}}),p(v.baseCalendar.prototype,{UNIX_EPOCH:v.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:v.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(y,b,x){if(typeof y!="string"&&(x=b,b=y,y=""),!b)return"";if(b.calendar()!==this)throw v.local.invalidFormat||v.regionalOptions[""].invalidFormat;y=y||this.local.dateFormat,x=x||{};var k=x.dayNamesShort||this.local.dayNamesShort,C=x.dayNames||this.local.dayNames,w=x.monthNumbers||this.local.monthNumbers,T=x.monthNamesShort||this.local.monthNamesShort,R=x.monthNames||this.local.monthNames;x.calculateWeek||this.local.calculateWeek;for(var M=function(Y,ie){for(var L=1;W+L1},I=function(Y,ie,L,me){var ae=""+ie;if(M(Y,me))for(;ae.length1},W=function(Te,Be){var ge=E(Te,Be),ne=[2,3,ge?4:2,ge?4:2,10,11,20]["oyYJ@!".indexOf(Te)+1],pe=new RegExp("^-?\\d{1,"+ne+"}"),G=b.substring(q).match(pe);if(!G)throw(v.local.missingNumberAt||v.regionalOptions[""].missingNumberAt).replace(/\{0\}/,q);return q+=G[0].length,parseInt(G[0],10)},Y=this,ie=function(){if(typeof R=="function"){E("m");var Te=R.call(Y,b.substring(q));return q+=Te.length,Te}return W("m")},L=function(Te,Be,ge,ne){for(var pe=E(Te,ne)?ge:Be,G=0;G-1){F=1,z=U;for(var be=this.daysInMonth(N,F);z>be;be=this.daysInMonth(N,F))F++,z-=be}return V>-1?this.fromJD(V):this.newDate(N,F,z)},determineDate:function(y,b,x,k,C){x&&typeof x!="object"&&(C=k,k=x,x=null),typeof k!="string"&&(C=k,k="");var w=this,T=function(R){try{return w.parseDate(k,R,C)}catch{}R=R.toLowerCase();for(var M=(R.match(/^c/)&&x?x.newDate():null)||w.today(),I=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,V=I.exec(R);V;)M.add(parseInt(V[1],10),V[2]||"d"),V=I.exec(R);return M};return b=b?b.newDate():null,y=y==null?b:typeof y=="string"?T(y):typeof y=="number"?isNaN(y)||y===1/0||y===-1/0?b:w.today().add(y,"d"):w.newDate(y),y}})}},a={};function i(f){var m=a[f];if(m!==void 0)return m.exports;var u=a[f]={exports:{}};return r[f].call(u.exports,u,u.exports,i),u.exports}(function(){i.d=function(f,m){for(var u in m)i.o(m,u)&&!i.o(f,u)&&Object.defineProperty(f,u,{enumerable:!0,get:m[u]})}})(),function(){i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){i.o=function(f,m){return Object.prototype.hasOwnProperty.call(f,m)}}(),function(){i.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})}}();var d=i(2576);return d}()})})(Spe);var vTe=Spe.exports;const yre=pTe(vTe),yTe=_$({props:{figure:{type:Object,required:!0},layout:{type:Object,required:!0},id:{type:String,required:!0}},setup(t){gg(()=>{yre.newPlot(t.id,t.figure.data,t.layout)}),Ho(()=>t.figure,(e,r)=>{e!==r&&yre.newPlot(t.id,e.data,t.layout)},{deep:!0}),Ho(()=>t.layout,(e,r)=>{e!==r&&yre.newPlot(t.id,t.figure.data,e)},{deep:!0})}}),ny=(t,e)=>{const r=t.__vccOpts||t;for(const[a,i]of e)r[a]=i;return r},bTe=["id"];function OTe(t,e,r,a,i,d){return so(),La("div",{id:t.id,style:{height:"100%",width:"100%"}},null,8,bTe)}const wpe=ny(yTe,[["render",OTe]]);class Oi{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,r,a){let i=[];return this.decompose(0,e,i,2),a.length&&a.decompose(0,a.length,i,3),this.decompose(r,this.length,i,1),V1.from(i,this.length-(r-e)+a.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,r=this.length){let a=[];return this.decompose(e,r,a,0),V1.from(a,r-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let r=this.scanIdentical(e,1),a=this.length-this.scanIdentical(e,-1),i=new $D(this),d=new $D(e);for(let f=r,m=r;;){if(i.next(f),d.next(f),f=0,i.lineBreak!=d.lineBreak||i.done!=d.done||i.value!=d.value)return!1;if(m+=i.value.length,i.done||m>=a)return!0}}iter(e=1){return new $D(this,e)}iterRange(e,r=this.length){return new Tpe(this,e,r)}iterLines(e,r){let a;if(e==null)a=this.iter();else{r==null&&(r=this.lines+1);let i=this.line(e).from;a=this.iterRange(i,Math.max(i,r==this.lines+1?this.length:r<=1?0:this.line(r-1).to))}return new Cpe(a)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Oi.empty:e.length<=32?new qc(e):V1.from(qc.split(e,[]))}}class qc extends Oi{constructor(e,r=xTe(e)){super(),this.text=e,this.length=r}get lines(){return this.text.length}get children(){return null}lineInner(e,r,a,i){for(let d=0;;d++){let f=this.text[d],m=i+f.length;if((r?a:m)>=e)return new STe(i,m,a,f);i=m+1,a++}}decompose(e,r,a,i){let d=e<=0&&r>=this.length?this:new qc(Gue(this.text,e,r),Math.min(r,this.length)-Math.max(0,e));if(i&1){let f=a.pop(),m=_Z(d.text,f.text.slice(),0,d.length);if(m.length<=32)a.push(new qc(m,f.length+d.length));else{let u=m.length>>1;a.push(new qc(m.slice(0,u)),new qc(m.slice(u)))}}else a.push(d)}replace(e,r,a){if(!(a instanceof qc))return super.replace(e,r,a);let i=_Z(this.text,_Z(a.text,Gue(this.text,0,e)),r),d=this.length+a.length-(r-e);return i.length<=32?new qc(i,d):V1.from(qc.split(i,[]),d)}sliceString(e,r=this.length,a=` +`){let i="";for(let d=0,f=0;d<=r&&fe&&f&&(i+=a),ed&&(i+=m.slice(Math.max(0,e-d),r-d)),d=u+1}return i}flatten(e){for(let r of this.text)e.push(r)}scanIdentical(){return 0}static split(e,r){let a=[],i=-1;for(let d of e)a.push(d),i+=d.length+1,a.length==32&&(r.push(new qc(a,i)),a=[],i=-1);return i>-1&&r.push(new qc(a,i)),r}}class V1 extends Oi{constructor(e,r){super(),this.children=e,this.length=r,this.lines=0;for(let a of e)this.lines+=a.lines}lineInner(e,r,a,i){for(let d=0;;d++){let f=this.children[d],m=i+f.length,u=a+f.lines-1;if((r?u:m)>=e)return f.lineInner(e,r,a,i);i=m+1,a=u+1}}decompose(e,r,a,i){for(let d=0,f=0;f<=r&&d=f){let p=i&((f<=e?1:0)|(u>=r?2:0));f>=e&&u<=r&&!p?a.push(m):m.decompose(e-f,r-f,a,p)}f=u+1}}replace(e,r,a){if(a.lines=d&&r<=m){let u=f.replace(e-d,r-d,a),p=this.lines-f.lines+u.lines;if(u.lines

>5-1&&u.lines>p>>5+1){let v=this.children.slice();return v[i]=u,new V1(v,this.length-(r-e)+a.length)}return super.replace(d,m,u)}d=m+1}return super.replace(e,r,a)}sliceString(e,r=this.length,a=` +`){let i="";for(let d=0,f=0;de&&d&&(i+=a),ef&&(i+=m.sliceString(e-f,r-f,a)),f=u+1}return i}flatten(e){for(let r of this.children)r.flatten(e)}scanIdentical(e,r){if(!(e instanceof V1))return 0;let a=0,[i,d,f,m]=r>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=r,d+=r){if(i==f||d==m)return a;let u=this.children[i],p=e.children[d];if(u!=p)return a+u.scanIdentical(p,r);a+=u.length+1}}static from(e,r=e.reduce((a,i)=>a+i.length+1,-1)){let a=0;for(let x of e)a+=x.lines;if(a<32){let x=[];for(let k of e)k.flatten(x);return new qc(x,r)}let i=Math.max(32,a>>5),d=i<<1,f=i>>1,m=[],u=0,p=-1,v=[];function y(x){let k;if(x.lines>d&&x instanceof V1)for(let C of x.children)y(C);else x.lines>f&&(u>f||!u)?(b(),m.push(x)):x instanceof qc&&u&&(k=v[v.length-1])instanceof qc&&x.lines+k.lines<=32?(u+=x.lines,p+=x.length+1,v[v.length-1]=new qc(k.text.concat(x.text),k.length+1+x.length)):(u+x.lines>i&&b(),u+=x.lines,p+=x.length+1,v.push(x))}function b(){u!=0&&(m.push(v.length==1?v[0]:V1.from(v,p)),p=-1,u=v.length=0)}for(let x of e)y(x);return b(),m.length==1?m[0]:new V1(m,r)}}Oi.empty=new qc([""],0);function xTe(t){let e=-1;for(let r of t)e+=r.length+1;return e}function _Z(t,e,r=0,a=1e9){for(let i=0,d=0,f=!0;d=r&&(u>a&&(m=m.slice(0,a-i)),i0?1:(e instanceof qc?e.text.length:e.children.length)<<1]}nextInner(e,r){for(this.done=this.lineBreak=!1;;){let a=this.nodes.length-1,i=this.nodes[a],d=this.offsets[a],f=d>>1,m=i instanceof qc?i.text.length:i.children.length;if(f==(r>0?m:0)){if(a==0)return this.done=!0,this.value="",this;r>0&&this.offsets[a-1]++,this.nodes.pop(),this.offsets.pop()}else if((d&1)==(r>0?0:1)){if(this.offsets[a]+=r,e==0)return this.lineBreak=!0,this.value=` +`,this;e--}else if(i instanceof qc){let u=i.text[f+(r<0?-1:0)];if(this.offsets[a]+=r,u.length>Math.max(0,e))return this.value=e==0?u:r>0?u.slice(e):u.slice(0,u.length-e),this;e-=u.length}else{let u=i.children[f+(r<0?-1:0)];e>u.length?(e-=u.length,this.offsets[a]+=r):(r<0&&this.offsets[a]--,this.nodes.push(u),this.offsets.push(r>0?1:(u instanceof qc?u.text.length:u.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Tpe{constructor(e,r,a){this.value="",this.done=!1,this.cursor=new $D(e,r>a?-1:1),this.pos=r>a?e.length:0,this.from=Math.min(r,a),this.to=Math.max(r,a)}nextInner(e,r){if(r<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,r<0?this.pos-this.to:this.from-this.pos);let a=r<0?this.pos-this.from:this.to-this.pos;e>a&&(e=a),a-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*r,this.value=i.length<=a?i:r<0?i.slice(i.length-a):i.slice(0,a),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Cpe{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:r,lineBreak:a,value:i}=this.inner.next(e);return r&&this.afterBreak?(this.value="",this.afterBreak=!1):r?(this.done=!0,this.value=""):a?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Oi.prototype[Symbol.iterator]=function(){return this.iter()},$D.prototype[Symbol.iterator]=Tpe.prototype[Symbol.iterator]=Cpe.prototype[Symbol.iterator]=function(){return this});let STe=class{constructor(e,r,a,i){this.from=e,this.to=r,this.number=a,this.text=i}get length(){return this.to-this.from}},WP="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;tt)return WP[e-1]<=t;return!1}function jue(t){return t>=127462&&t<=127487}const que=8205;function Xf(t,e,r=!0,a=!0){return(r?kpe:TTe)(t,e,a)}function kpe(t,e,r){if(e==t.length)return e;e&&Ape(t.charCodeAt(e))&&Ppe(t.charCodeAt(e-1))&&e--;let a=Uf(t,e);for(e+=vp(a);e=0&&jue(Uf(t,f));)d++,f-=2;if(d%2==0)break;e+=2}else break}return e}function TTe(t,e,r){for(;e>0;){let a=kpe(t,e-2,r);if(a=56320&&t<57344}function Ppe(t){return t>=55296&&t<56320}function Uf(t,e){let r=t.charCodeAt(e);if(!Ppe(r)||e+1==t.length)return r;let a=t.charCodeAt(e+1);return Ape(a)?(r-55296<<10)+(a-56320)+65536:r}function Fae(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function vp(t){return t<65536?1:2}const Loe=/\r\n?|\n/;var Yf=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Yf||(Yf={}));class K1{constructor(e){this.sections=e}get length(){let e=0;for(let r=0;re)return d+(e-i);d+=m}else{if(a!=Yf.Simple&&p>=e&&(a==Yf.TrackDel&&ie||a==Yf.TrackBefore&&ie))return null;if(p>e||p==e&&r<0&&!m)return e==i||r<0?d:d+u;d+=u}i=p}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return d}touchesRange(e,r=e){for(let a=0,i=0;a=0&&i<=r&&m>=e)return ir?"cover":!0;i=m}return!1}toString(){let e="";for(let r=0;r=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(r=>typeof r!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new K1(e)}static create(e){return new K1(e)}}class Iu extends K1{constructor(e,r){super(e),this.inserted=r}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Ioe(this,(r,a,i,d,f)=>e=e.replace(i,i+(a-r),f),!1),e}mapDesc(e,r=!1){return Noe(this,e,r,!0)}invert(e){let r=this.sections.slice(),a=[];for(let i=0,d=0;i=0){r[i]=m,r[i+1]=f;let u=i>>1;for(;a.length0&&uS(a,r,d.text),d.forward(v),m+=v}let p=e[f++];for(;m>1].toJSON()))}return e}static of(e,r,a){let i=[],d=[],f=0,m=null;function u(v=!1){if(!v&&!i.length)return;fb||y<0||b>r)throw new RangeError(`Invalid change range ${y} to ${b} (in doc of length ${r})`);let k=x?typeof x=="string"?Oi.of(x.split(a||Loe)):x:Oi.empty,C=k.length;if(y==b&&C==0)return;yf&&Sd(i,y-f,-1),Sd(i,b-y,C),uS(d,i,k),f=b}}return p(e),u(!m),m}static empty(e){return new Iu(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let r=[],a=[];for(let i=0;im&&typeof f!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(d.length==1)r.push(d[0],0);else{for(;a.length=0&&r<=0&&r==t[i+1]?t[i]+=e:e==0&&t[i]==0?t[i+1]+=r:a?(t[i]+=e,t[i+1]+=r):t.push(e,r)}function uS(t,e,r){if(r.length==0)return;let a=e.length-2>>1;if(a>1])),!(r||f==t.sections.length||t.sections[f+1]<0);)m=t.sections[f++],u=t.sections[f++];e(i,p,d,v,y),i=p,d=v}}}function Noe(t,e,r,a=!1){let i=[],d=a?[]:null,f=new KD(t),m=new KD(e);for(let u=-1;;)if(f.ins==-1&&m.ins==-1){let p=Math.min(f.len,m.len);Sd(i,p,-1),f.forward(p),m.forward(p)}else if(m.ins>=0&&(f.ins<0||u==f.i||f.off==0&&(m.len=0&&u=0){let p=0,v=f.len;for(;v;)if(m.ins==-1){let y=Math.min(v,m.len);p+=y,v-=y,m.forward(y)}else if(m.ins==0&&m.lenu||f.ins>=0&&f.len>u)&&(m||a.length>p),d.forward2(u),f.forward(u)}}}}class KD{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return r>=e.length?Oi.empty:e[r]}textBit(e){let{inserted:r}=this.set,a=this.i-2>>1;return a>=r.length&&!e?Oi.empty:r[a].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class TC{constructor(e,r,a){this.from=e,this.to=r,this.flags=a}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,r=-1){let a,i;return this.empty?a=i=e.mapPos(this.from,r):(a=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),a==this.from&&i==this.to?this:new TC(a,i,this.flags)}extend(e,r=e){if(e<=this.anchor&&r>=this.anchor)return Tr.range(e,r);let a=Math.abs(e-this.anchor)>Math.abs(r-this.anchor)?e:r;return Tr.range(this.anchor,a)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Tr.range(e.anchor,e.head)}static create(e,r,a){return new TC(e,r,a)}}class Tr{constructor(e,r){this.ranges=e,this.mainIndex=r}map(e,r=-1){return e.empty?this:Tr.create(this.ranges.map(a=>a.map(e,r)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;re.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Tr(e.ranges.map(r=>TC.fromJSON(r)),e.main)}static single(e,r=e){return new Tr([Tr.range(e,r)],0)}static create(e,r=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let a=0,i=0;ie?8:0)|d)}static normalized(e,r=0){let a=e[r];e.sort((i,d)=>i.from-d.from),r=e.indexOf(a);for(let i=1;id.head?Tr.range(u,m):Tr.range(m,u))}}return new Tr(e,r)}}function Epe(t,e){for(let r of t.ranges)if(r.to>e)throw new RangeError("Selection points outside of document")}let Vae=0;class ss{constructor(e,r,a,i,d){this.combine=e,this.compareInput=r,this.compare=a,this.isStatic=i,this.id=Vae++,this.default=e([]),this.extensions=typeof d=="function"?d(this):d}get reader(){return this}static define(e={}){return new ss(e.combine||(r=>r),e.compareInput||((r,a)=>r===a),e.compare||(e.combine?(r,a)=>r===a:zae),!!e.static,e.enables)}of(e){return new RZ([],this,0,e)}compute(e,r){if(this.isStatic)throw new Error("Can't compute a static facet");return new RZ(e,this,1,r)}computeN(e,r){if(this.isStatic)throw new Error("Can't compute a static facet");return new RZ(e,this,2,r)}from(e,r){return r||(r=a=>a),this.compute([e],a=>r(a.field(e)))}}function zae(t,e){return t==e||t.length==e.length&&t.every((r,a)=>r===e[a])}class RZ{constructor(e,r,a,i){this.dependencies=e,this.facet=r,this.type=a,this.value=i,this.id=Vae++}dynamicSlot(e){var r;let a=this.value,i=this.facet.compareInput,d=this.id,f=e[d]>>1,m=this.type==2,u=!1,p=!1,v=[];for(let y of this.dependencies)y=="doc"?u=!0:y=="selection"?p=!0:((r=e[y.id])!==null&&r!==void 0?r:1)&1||v.push(e[y.id]);return{create(y){return y.values[f]=a(y),1},update(y,b){if(u&&b.docChanged||p&&(b.docChanged||b.selection)||Boe(y,v)){let x=a(y);if(m?!Kue(x,y.values[f],i):!i(x,y.values[f]))return y.values[f]=x,1}return 0},reconfigure:(y,b)=>{let x,k=b.config.address[d];if(k!=null){let C=nH(b,k);if(this.dependencies.every(w=>w instanceof ss?b.facet(w)===y.facet(w):w instanceof xf?b.field(w,!1)==y.field(w,!1):!0)||(m?Kue(x=a(y),C,i):i(x=a(y),C)))return y.values[f]=C,0}else x=a(y);return y.values[f]=x,1}}}}function Kue(t,e,r){if(t.length!=e.length)return!1;for(let a=0;at[u.id]),i=r.map(u=>u.type),d=a.filter(u=>!(u&1)),f=t[e.id]>>1;function m(u){let p=[];for(let v=0;va===i),e);return e.provide&&(r.provides=e.provide(r)),r}create(e){let r=e.facet(Jue).find(a=>a.field==this);return((r==null?void 0:r.create)||this.createF)(e)}slot(e){let r=e[this.id]>>1;return{create:a=>(a.values[r]=this.create(a),1),update:(a,i)=>{let d=a.values[r],f=this.updateF(d,i);return this.compareF(d,f)?0:(a.values[r]=f,1)},reconfigure:(a,i)=>i.config.address[this.id]!=null?(a.values[r]=i.field(this),0):(a.values[r]=this.create(a),1)}}init(e){return[this,Jue.of({field:this,create:e})]}get extension(){return this}}const OC={lowest:4,low:3,default:2,high:1,highest:0};function uD(t){return e=>new _pe(e,t)}const Mp={highest:uD(OC.highest),high:uD(OC.high),default:uD(OC.default),low:uD(OC.low),lowest:uD(OC.lowest)};class _pe{constructor(e,r){this.inner=e,this.prec=r}}class D${of(e){return new Qoe(this,e)}reconfigure(e){return D$.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Qoe{constructor(e,r){this.compartment=e,this.inner=r}}class tH{constructor(e,r,a,i,d,f){for(this.base=e,this.compartments=r,this.dynamicSlots=a,this.address=i,this.staticValues=d,this.facets=f,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,r,a){let i=[],d=Object.create(null),f=new Map;for(let b of kTe(e,r,f))b instanceof xf?i.push(b):(d[b.facet.id]||(d[b.facet.id]=[])).push(b);let m=Object.create(null),u=[],p=[];for(let b of i)m[b.id]=p.length<<1,p.push(x=>b.slot(x));let v=a==null?void 0:a.config.facets;for(let b in d){let x=d[b],k=x[0].facet,C=v&&v[b]||[];if(x.every(w=>w.type==0))if(m[k.id]=u.length<<1|1,zae(C,x))u.push(a.facet(k));else{let w=k.combine(x.map(T=>T.value));u.push(a&&k.compare(w,a.facet(k))?a.facet(k):w)}else{for(let w of x)w.type==0?(m[w.id]=u.length<<1|1,u.push(w.value)):(m[w.id]=p.length<<1,p.push(T=>w.dynamicSlot(T)));m[k.id]=p.length<<1,p.push(w=>CTe(w,k,x))}}let y=p.map(b=>b(m));return new tH(e,f,y,m,u,d)}}function kTe(t,e,r){let a=[[],[],[],[],[]],i=new Map;function d(f,m){let u=i.get(f);if(u!=null){if(u<=m)return;let p=a[u].indexOf(f);p>-1&&a[u].splice(p,1),f instanceof Qoe&&r.delete(f.compartment)}if(i.set(f,m),Array.isArray(f))for(let p of f)d(p,m);else if(f instanceof Qoe){if(r.has(f.compartment))throw new RangeError("Duplicate use of compartment in extensions");let p=e.get(f.compartment)||f.inner;r.set(f.compartment,p),d(p,m)}else if(f instanceof _pe)d(f.inner,f.prec);else if(f instanceof xf)a[m].push(f),f.provides&&d(f.provides,m);else if(f instanceof RZ)a[m].push(f),f.facet.extensions&&d(f.facet.extensions,OC.default);else{let p=f.extension;if(!p)throw new Error(`Unrecognized extension value in extension set (${f}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);d(p,m)}}return d(t,OC.default),a.reduce((f,m)=>f.concat(m))}function LD(t,e){if(e&1)return 2;let r=e>>1,a=t.status[r];if(a==4)throw new Error("Cyclic dependency between fields and/or facets");if(a&2)return a;t.status[r]=4;let i=t.computeSlot(t,t.config.dynamicSlots[r]);return t.status[r]=2|i}function nH(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const Rpe=ss.define(),Foe=ss.define({combine:t=>t.some(e=>e),static:!0}),Dpe=ss.define({combine:t=>t.length?t[0]:void 0,static:!0}),$pe=ss.define(),Lpe=ss.define(),Ipe=ss.define(),Npe=ss.define({combine:t=>t.length?t[0]:!1});class TO{constructor(e,r){this.type=e,this.value=r}static define(){return new ATe}}class ATe{of(e){return new TO(this,e)}}class PTe{constructor(e){this.map=e}of(e){return new pa(this,e)}}class pa{constructor(e,r){this.type=e,this.value=r}map(e){let r=this.type.map(this.value,e);return r===void 0?void 0:r==this.value?this:new pa(this.type,r)}is(e){return this.type==e}static define(e={}){return new PTe(e.map||(r=>r))}static mapEffects(e,r){if(!e.length)return e;let a=[];for(let i of e){let d=i.map(r);d&&a.push(d)}return a}}pa.reconfigure=pa.define();pa.appendConfig=pa.define();class Bu{constructor(e,r,a,i,d,f){this.startState=e,this.changes=r,this.selection=a,this.effects=i,this.annotations=d,this.scrollIntoView=f,this._doc=null,this._state=null,a&&Epe(a,r.newLength),d.some(m=>m.type==Bu.time)||(this.annotations=d.concat(Bu.time.of(Date.now())))}static create(e,r,a,i,d,f){return new Bu(e,r,a,i,d,f)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let r of this.annotations)if(r.type==e)return r.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let r=this.annotation(Bu.userEvent);return!!(r&&(r==e||r.length>e.length&&r.slice(0,e.length)==e&&r[e.length]=="."))}}Bu.time=TO.define();Bu.userEvent=TO.define();Bu.addToHistory=TO.define();Bu.remote=TO.define();function MTe(t,e){let r=[];for(let a=0,i=0;;){let d,f;if(a=t[a]))d=t[a++],f=t[a++];else if(i=0;i--){let d=a[i](t);d instanceof Bu?t=d:Array.isArray(d)&&d.length==1&&d[0]instanceof Bu?t=d[0]:t=Qpe(e,YP(d),!1)}return t}function _Te(t){let e=t.startState,r=e.facet(Ipe),a=t;for(let i=r.length-1;i>=0;i--){let d=r[i](t);d&&Object.keys(d).length&&(a=Bpe(a,Voe(e,d,t.changes.newLength),!0))}return a==t?t:Bu.create(e,t.changes,t.selection,a.effects,a.annotations,a.scrollIntoView)}const RTe=[];function YP(t){return t==null?RTe:Array.isArray(t)?t:[t]}var Jl=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Jl||(Jl={}));const DTe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let zoe;try{zoe=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function $Te(t){if(zoe)return zoe.test(t);for(let e=0;e"€"&&(r.toUpperCase()!=r.toLowerCase()||DTe.test(r)))return!0}return!1}function LTe(t){return e=>{if(!/\S/.test(e))return Jl.Space;if($Te(e))return Jl.Word;for(let r=0;r-1)return Jl.Word;return Jl.Other}}class Ia{constructor(e,r,a,i,d,f){this.config=e,this.doc=r,this.selection=a,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=d,f&&(f._state=this);for(let m=0;mi.set(p,u)),r=null),i.set(m.value.compartment,m.value.extension)):m.is(pa.reconfigure)?(r=null,a=m.value):m.is(pa.appendConfig)&&(r=null,a=YP(a).concat(m.value));let d;r?d=e.startState.values.slice():(r=tH.resolve(a,i,this),d=new Ia(r,this.doc,this.selection,r.dynamicSlots.map(()=>null),(u,p)=>p.reconfigure(u,this),null).values);let f=e.startState.facet(Foe)?e.newSelection:e.newSelection.asSingle();new Ia(r,e.newDoc,f,d,(m,u)=>u.update(m,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:e},range:Tr.cursor(r.from+e.length)}))}changeByRange(e){let r=this.selection,a=e(r.ranges[0]),i=this.changes(a.changes),d=[a.range],f=YP(a.effects);for(let m=1;mf.spec.fromJSON(m,u)))}}return Ia.create({doc:e.doc,selection:Tr.fromJSON(e.selection),extensions:r.extensions?i.concat([r.extensions]):i})}static create(e={}){let r=tH.resolve(e.extensions||[],new Map),a=e.doc instanceof Oi?e.doc:Oi.of((e.doc||"").split(r.staticFacet(Ia.lineSeparator)||Loe)),i=e.selection?e.selection instanceof Tr?e.selection:Tr.single(e.selection.anchor,e.selection.head):Tr.single(0);return Epe(i,a.length),r.staticFacet(Foe)||(i=i.asSingle()),new Ia(r,a,i,r.dynamicSlots.map(()=>null),(d,f)=>f.create(d),null)}get tabSize(){return this.facet(Ia.tabSize)}get lineBreak(){return this.facet(Ia.lineSeparator)||` +`}get readOnly(){return this.facet(Npe)}phrase(e,...r){for(let a of this.facet(Ia.phrases))if(Object.prototype.hasOwnProperty.call(a,e)){e=a[e];break}return r.length&&(e=e.replace(/\$(\$|\d*)/g,(a,i)=>{if(i=="$")return"$";let d=+(i||1);return!d||d>r.length?a:r[d-1]})),e}languageDataAt(e,r,a=-1){let i=[];for(let d of this.facet(Rpe))for(let f of d(this,r,a))Object.prototype.hasOwnProperty.call(f,e)&&i.push(f[e]);return i}charCategorizer(e){return LTe(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:r,from:a,length:i}=this.doc.lineAt(e),d=this.charCategorizer(e),f=e-a,m=e-a;for(;f>0;){let u=Xf(r,f,!1);if(d(r.slice(u,f))!=Jl.Word)break;f=u}for(;mt.length?t[0]:4});Ia.lineSeparator=Dpe;Ia.readOnly=Npe;Ia.phrases=ss.define({compare(t,e){let r=Object.keys(t),a=Object.keys(e);return r.length==a.length&&r.every(i=>t[i]==e[i])}});Ia.languageData=Rpe;Ia.changeFilter=$pe;Ia.transactionFilter=Lpe;Ia.transactionExtender=Ipe;D$.reconfigure=pa.define();function ry(t,e,r={}){let a={};for(let i of t)for(let d of Object.keys(i)){let f=i[d],m=a[d];if(m===void 0)a[d]=f;else if(!(m===f||f===void 0))if(Object.hasOwnProperty.call(r,d))a[d]=r[d](m,f);else throw new Error("Config merge conflict for field "+d)}for(let i in e)a[i]===void 0&&(a[i]=e[i]);return a}class _C{eq(e){return this==e}range(e,r=e){return Zoe.create(e,r,this)}}_C.prototype.startSide=_C.prototype.endSide=0;_C.prototype.point=!1;_C.prototype.mapMode=Yf.TrackDel;let Zoe=class Fpe{constructor(e,r,a){this.from=e,this.to=r,this.value=a}static create(e,r,a){return new Fpe(e,r,a)}};function Hoe(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class Zae{constructor(e,r,a,i){this.from=e,this.to=r,this.value=a,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,r,a,i=0){let d=a?this.to:this.from;for(let f=i,m=d.length;;){if(f==m)return f;let u=f+m>>1,p=d[u]-e||(a?this.value[u].endSide:this.value[u].startSide)-r;if(u==f)return p>=0?f:m;p>=0?m=u:f=u+1}}between(e,r,a,i){for(let d=this.findIndex(r,-1e9,!0),f=this.findIndex(a,1e9,!1,d);dx||b==x&&p.startSide>0&&p.endSide<=0)continue;(x-b||p.endSide-p.startSide)<0||(f<0&&(f=b),p.point&&(m=Math.max(m,x-b)),a.push(p),i.push(b-f),d.push(x-f))}return{mapped:a.length?new Zae(i,d,a,m):null,pos:f}}}class ji{constructor(e,r,a,i){this.chunkPos=e,this.chunk=r,this.nextLayer=a,this.maxPoint=i}static create(e,r,a,i){return new ji(e,r,a,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let r of this.chunk)e+=r.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:r=[],sort:a=!1,filterFrom:i=0,filterTo:d=this.length}=e,f=e.filter;if(r.length==0&&!f)return this;if(a&&(r=r.slice().sort(Hoe)),this.isEmpty)return r.length?ji.of(r):this;let m=new Vpe(this,null,-1).goto(0),u=0,p=[],v=new OS;for(;m.value||u=0){let y=r[u++];v.addInner(y.from,y.to,y.value)||p.push(y)}else m.rangeIndex==1&&m.chunkIndexthis.chunkEnd(m.chunkIndex)||dm.to||d=d&&e<=d+f.length&&f.between(d,e-d,r-d,a)===!1)return}this.nextLayer.between(e,r,a)}}iter(e=0){return JD.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,r=0){return JD.from(e).goto(r)}static compare(e,r,a,i,d=-1){let f=e.filter(y=>y.maxPoint>0||!y.isEmpty&&y.maxPoint>=d),m=r.filter(y=>y.maxPoint>0||!y.isEmpty&&y.maxPoint>=d),u=efe(f,m,a),p=new fD(f,u,d),v=new fD(m,u,d);a.iterGaps((y,b,x)=>tfe(p,y,v,b,x,i)),a.empty&&a.length==0&&tfe(p,0,v,0,0,i)}static eq(e,r,a=0,i){i==null&&(i=1e9-1);let d=e.filter(v=>!v.isEmpty&&r.indexOf(v)<0),f=r.filter(v=>!v.isEmpty&&e.indexOf(v)<0);if(d.length!=f.length)return!1;if(!d.length)return!0;let m=efe(d,f),u=new fD(d,m,0).goto(a),p=new fD(f,m,0).goto(a);for(;;){if(u.to!=p.to||!Uoe(u.active,p.active)||u.point&&(!p.point||!u.point.eq(p.point)))return!1;if(u.to>i)return!0;u.next(),p.next()}}static spans(e,r,a,i,d=-1){let f=new fD(e,null,d).goto(r),m=r,u=f.openStart;for(;;){let p=Math.min(f.to,a);if(f.point){let v=f.activeForPoint(f.to),y=f.pointFromm&&(i.span(m,p,f.active,u),u=f.openEnd(p));if(f.to>a)return u+(f.point&&f.to>a?1:0);m=f.to,f.next()}}static of(e,r=!1){let a=new OS;for(let i of e instanceof Zoe?[e]:r?ITe(e):e)a.add(i.from,i.to,i.value);return a.finish()}}ji.empty=new ji([],[],null,-1);function ITe(t){if(t.length>1)for(let e=t[0],r=1;r0)return t.slice().sort(Hoe);e=a}return t}ji.empty.nextLayer=ji.empty;class OS{finishChunk(e){this.chunks.push(new Zae(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,r,a){this.addInner(e,r,a)||(this.nextLayer||(this.nextLayer=new OS)).add(e,r,a)}addInner(e,r,a){let i=e-this.lastTo||a.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||a.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(r-this.chunkStart),this.last=a,this.lastFrom=e,this.lastTo=r,this.value.push(a),a.point&&(this.maxPoint=Math.max(this.maxPoint,r-e)),!0)}addChunk(e,r){if((e-this.lastTo||r.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,r.maxPoint),this.chunks.push(r),this.chunkPos.push(e);let a=r.value.length-1;return this.last=r.value[a],this.lastFrom=r.from[a]+e,this.lastTo=r.to[a]+e,!0}finish(){return this.finishInner(ji.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let r=ji.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,r}}function efe(t,e,r){let a=new Map;for(let d of t)for(let f=0;f=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=a&&i.push(new Vpe(f,r,a,d));return i.length==1?i[0]:new JD(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,r=-1e9){for(let a of this.heap)a.goto(e,r);for(let a=this.heap.length>>1;a>=0;a--)bre(this.heap,a);return this.next(),this}forward(e,r){for(let a of this.heap)a.forward(e,r);for(let a=this.heap.length>>1;a>=0;a--)bre(this.heap,a);(this.to-e||this.value.endSide-r)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),bre(this.heap,0)}}}function bre(t,e){for(let r=t[e];;){let a=(e<<1)+1;if(a>=t.length)break;let i=t[a];if(a+1=0&&(i=t[a+1],a++),r.compare(i)<0)break;t[a]=r,t[e]=i,e=a}}class fD{constructor(e,r,a){this.minPoint=a,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=JD.from(e,r,a)}goto(e,r=-1e9){return this.cursor.goto(e,r),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=r,this.openStart=-1,this.next(),this}forward(e,r){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-r)<0;)this.removeActive(this.minActive);this.cursor.forward(e,r)}removeActive(e){Hz(this.active,e),Hz(this.activeTo,e),Hz(this.activeRank,e),this.minActive=nfe(this.active,this.activeTo)}addActive(e){let r=0,{value:a,to:i,rank:d}=this.cursor;for(;r-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),a&&Hz(a,i)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let d=this.cursor.value;if(!d.point)this.addActive(a),this.cursor.next();else if(r&&this.cursor.to==this.to&&this.cursor.from=0&&a[i]=0&&!(this.activeRank[a]e||this.activeTo[a]==e&&this.active[a].endSide>=this.point.endSide)&&r.push(this.active[a]);return r.reverse()}openEnd(e){let r=0;for(let a=this.activeTo.length-1;a>=0&&this.activeTo[a]>e;a--)r++;return r}}function tfe(t,e,r,a,i,d){t.goto(e),r.goto(a);let f=a+i,m=a,u=a-e;for(;;){let p=t.to+u-r.to||t.endSide-r.endSide,v=p<0?t.to+u:r.to,y=Math.min(v,f);if(t.point||r.point?t.point&&r.point&&(t.point==r.point||t.point.eq(r.point))&&Uoe(t.activeForPoint(t.to),r.activeForPoint(r.to))||d.comparePoint(m,y,t.point,r.point):y>m&&!Uoe(t.active,r.active)&&d.compareRange(m,y,t.active,r.active),v>f)break;m=v,p<=0&&t.next(),p>=0&&r.next()}}function Uoe(t,e){if(t.length!=e.length)return!1;for(let r=0;r=e;a--)t[a+1]=t[a];t[e]=r}function nfe(t,e){let r=-1,a=1e9;for(let i=0;i=e)return i;if(i==t.length)break;d+=t.charCodeAt(i)==9?r-d%r:1,i=Xf(t,i)}return a===!0?-1:t.length}const Yoe="ͼ",rfe=typeof Symbol>"u"?"__"+Yoe:Symbol.for(Yoe),Xoe=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),ofe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class xS{constructor(e,r){this.rules=[];let{finish:a}=r||{};function i(f){return/^@/.test(f)?[f]:f.split(/,\s*/)}function d(f,m,u,p){let v=[],y=/^@(\w+)\b/.exec(f[0]),b=y&&y[1]=="keyframes";if(y&&m==null)return u.push(f[0]+";");for(let x in m){let k=m[x];if(/&/.test(x))d(x.split(/,\s*/).map(C=>f.map(w=>C.replace(/&/,w))).reduce((C,w)=>C.concat(w)),k,u);else if(k&&typeof k=="object"){if(!y)throw new RangeError("The value of a property ("+x+") should be a primitive value.");d(i(x),k,v,b)}else k!=null&&v.push(x.replace(/_.*/,"").replace(/[A-Z]/g,C=>"-"+C.toLowerCase())+": "+k+";")}(v.length||b)&&u.push((a&&!y&&!p?f.map(a):f).join(", ")+" {"+v.join(" ")+"}")}for(let f in e)d(i(f),e[f],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let e=ofe[rfe]||1;return ofe[rfe]=e+1,Yoe+e.toString(36)}static mount(e,r,a){let i=e[Xoe],d=a&&a.nonce;i?d&&i.setNonce(d):i=new NTe(e,d),i.mount(Array.isArray(r)?r:[r])}}let sfe=new Map;class NTe{constructor(e,r){let a=e.ownerDocument||e,i=a.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let d=sfe.get(a);if(d)return e.adoptedStyleSheets=[d.sheet,...e.adoptedStyleSheets],e[Xoe]=d;this.sheet=new i.CSSStyleSheet,e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets],sfe.set(a,this)}else{this.styleTag=a.createElement("style"),r&&this.styleTag.setAttribute("nonce",r);let d=e.head||e;d.insertBefore(this.styleTag,d.firstChild)}this.modules=[],e[Xoe]=this}mount(e){let r=this.sheet,a=0,i=0;for(let d=0;d-1&&(this.modules.splice(m,1),i--,m=-1),m==-1){if(this.modules.splice(i++,0,f),r)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},BTe=typeof navigator<"u"&&/Mac/.test(navigator.platform),QTe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Wf=0;Wf<10;Wf++)SS[48+Wf]=SS[96+Wf]=String(Wf);for(var Wf=1;Wf<=24;Wf++)SS[Wf+111]="F"+Wf;for(var Wf=65;Wf<=90;Wf++)SS[Wf]=String.fromCharCode(Wf+32),e$[Wf]=String.fromCharCode(Wf);for(var Ore in SS)e$.hasOwnProperty(Ore)||(e$[Ore]=SS[Ore]);function FTe(t){var e=BTe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||QTe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",r=!e&&t.key||(t.shiftKey?e$:SS)[t.keyCode]||t.key||"Unidentified";return r=="Esc"&&(r="Escape"),r=="Del"&&(r="Delete"),r=="Left"&&(r="ArrowLeft"),r=="Up"&&(r="ArrowUp"),r=="Right"&&(r="ArrowRight"),r=="Down"&&(r="ArrowDown"),r}function rH(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function Goe(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function VTe(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function DZ(t,e){if(!e.anchorNode)return!1;try{return Goe(t,e.anchorNode)}catch{return!1}}function oM(t){return t.nodeType==3?RC(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function oH(t,e,r,a){return r?afe(t,e,r,a,-1)||afe(t,e,r,a,1):!1}function t$(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function afe(t,e,r,a,i){for(;;){if(t==r&&e==a)return!0;if(e==(i<0?0:yO(t))){if(t.nodeName=="DIV")return!1;let d=t.parentNode;if(!d||d.nodeType!=1)return!1;e=t$(t)+(i<0?0:1),t=d}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=i<0?yO(t):0}else return!1}}function yO(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function dU(t,e){let r=e?t.left:t.right;return{left:r,right:r,top:t.top,bottom:t.bottom}}function zTe(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function ZTe(t,e,r,a,i,d,f,m){let u=t.ownerDocument,p=u.defaultView||window;for(let v=t,y=!1;v&&!y;)if(v.nodeType==1){let b,x=v==u.body,k=1,C=1;if(x)b=zTe(p);else{if(/^(fixed|sticky)$/.test(getComputedStyle(v).position)&&(y=!0),v.scrollHeight<=v.clientHeight&&v.scrollWidth<=v.clientWidth){v=v.assignedSlot||v.parentNode;continue}let R=v.getBoundingClientRect();k=R.width/v.offsetWidth,C=R.height/v.offsetHeight,b={left:R.left,right:R.left+v.clientWidth*k,top:R.top,bottom:R.top+v.clientHeight*C}}let w=0,T=0;if(i=="nearest")e.top0&&e.bottom>b.bottom+T&&(T=e.bottom-b.bottom+T+f)):e.bottom>b.bottom&&(T=e.bottom-b.bottom+f,r<0&&e.top-T0&&e.right>b.right+w&&(w=e.right-b.right+w+d)):e.right>b.right&&(w=e.right-b.right+d,r<0&&e.leftr.clientHeight||r.scrollWidth>r.clientWidth)return r;r=r.assignedSlot||r.parentNode}else if(r.nodeType==11)r=r.host;else break;return null}class UTe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:r,focusNode:a}=e;this.set(r,Math.min(e.anchorOffset,r?yO(r):0),a,Math.min(e.focusOffset,a?yO(a):0))}set(e,r,a,i){this.anchorNode=e,this.anchorOffset=r,this.focusNode=a,this.focusOffset=i}}let RP=null;function zpe(t){if(t.setActive)return t.setActive();if(RP)return t.focus(RP);let e=[];for(let r=t;r&&(e.push(r,r.scrollTop,r.scrollLeft),r!=r.ownerDocument);r=r.parentNode);if(t.focus(RP==null?{get preventScroll(){return RP={preventScroll:!0},!0}}:void 0),!RP){RP=!1;for(let r=0;rMath.max(1,t.scrollHeight-t.clientHeight-4)}class Td{constructor(e,r,a=!0){this.node=e,this.offset=r,this.precise=a}static before(e,r){return new Td(e.parentNode,t$(e),r)}static after(e,r){return new Td(e.parentNode,t$(e)+1,r)}}const Hae=[];class Ql{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let r=this.posAtStart;for(let a of this.children){if(a==e)return r;r+=a.length+a.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,r){if(this.flags&2){let a=this.dom,i=null,d;for(let f of this.children){if(f.flags&7){if(!f.dom&&(d=i?i.nextSibling:a.firstChild)){let m=Ql.get(d);(!m||!m.parent&&m.canReuseDOM(f))&&f.reuseDOM(d)}f.sync(e,r),f.flags&=-8}if(d=i?i.nextSibling:a.firstChild,r&&!r.written&&r.node==a&&d!=f.dom&&(r.written=!0),f.dom.parentNode==a)for(;d&&d!=f.dom;)d=lfe(d);else a.insertBefore(f.dom,d);i=f.dom}for(d=i?i.nextSibling:a.firstChild,d&&r&&r.node==a&&(r.written=!0);d;)d=lfe(d)}else if(this.flags&1)for(let a of this.children)a.flags&7&&(a.sync(e,r),a.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,r){let a;if(e==this.dom)a=this.dom.childNodes[r];else{let i=yO(e)==0?0:r==0?-1:1;for(;;){let d=e.parentNode;if(d==this.dom)break;i==0&&d.firstChild!=d.lastChild&&(e==d.firstChild?i=-1:i=1),e=d}i<0?a=e:a=e.nextSibling}if(a==this.dom.firstChild)return 0;for(;a&&!Ql.get(a);)a=a.nextSibling;if(!a)return this.length;for(let i=0,d=0;;i++){let f=this.children[i];if(f.dom==a)return d;d+=f.length+f.breakAfter}}domBoundsAround(e,r,a=0){let i=-1,d=-1,f=-1,m=-1;for(let u=0,p=a,v=a;ur)return y.domBoundsAround(e,r,p);if(b>=e&&i==-1&&(i=u,d=p),p>r&&y.dom.parentNode==this.dom){f=u,m=v;break}v=b,p=b+y.breakAfter}return{from:d,to:m<0?a+this.length:m,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:f=0?this.children[f].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let r=this.parent;r;r=r.parent){if(e&&(r.flags|=2),r.flags&1)return;r.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let r=e.parent;if(!r)return e;e=r}}replaceChildren(e,r,a=Hae){this.markDirty();for(let i=e;ithis.pos||e==this.pos&&(r>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let a=this.children[--this.i];this.pos-=a.length+a.breakAfter}}}function Wpe(t,e,r,a,i,d,f,m,u){let{children:p}=t,v=p.length?p[e]:null,y=d.length?d[d.length-1]:null,b=y?y.breakAfter:f;if(!(e==a&&v&&!f&&!b&&d.length<2&&v.merge(r,i,d.length?y:null,r==0,m,u))){if(a0&&(!f&&d.length&&v.merge(r,v.length,d[0],!1,m,0)?v.breakAfter=d.shift().breakAfter:(r2);var us={mac:ffe||/Mac/.test(ig.platform),windows:/Win/.test(ig.platform),linux:/Linux|X11/.test(ig.platform),ie:hU,ie_version:Xpe?joe.documentMode||6:Koe?+Koe[1]:qoe?+qoe[1]:0,gecko:cfe,gecko_version:cfe?+(/Firefox\/(\d+)/.exec(ig.userAgent)||[0,0])[1]:0,chrome:!!xre,chrome_version:xre?+xre[1]:0,ios:ffe,android:/Android\b/.test(ig.userAgent),webkit:ufe,safari:Gpe,webkit_version:ufe?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:joe.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const XTe=256;class bO extends Ql{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,r){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(r&&r.node==this.dom&&(r.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,r,a){return this.flags&8||a&&(!(a instanceof bO)||this.length-(r-e)+a.length>XTe||a.flags&8)?!1:(this.text=this.text.slice(0,e)+(a?a.text:"")+this.text.slice(r),this.markDirty(),!0)}split(e){let r=new bO(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),r.flags|=this.flags&8,r}localPosFromDOM(e,r){return e==this.dom?r:r?this.text.length:0}domAtPos(e){return new Td(this.dom,e)}domBoundsAround(e,r,a){return{from:a,to:a+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,r){return GTe(this.dom,e,r)}}class OO extends Ql{constructor(e,r=[],a=0){super(),this.mark=e,this.children=r,this.length=a;for(let i of r)i.setParent(this)}setAttrs(e){if(Zpe(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let r in this.mark.attrs)e.setAttribute(r,this.mark.attrs[r]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,r){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,r)}merge(e,r,a,i,d,f){return a&&(!(a instanceof OO&&a.mark.eq(this.mark))||e&&d<=0||re&&r.push(a=e&&(i=d),a=u,d++}let f=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new OO(this.mark,r,f)}domAtPos(e){return jpe(this,e)}coordsAt(e,r){return Kpe(this,e,r)}}function GTe(t,e,r){let a=t.nodeValue.length;e>a&&(e=a);let i=e,d=e,f=0;e==0&&r<0||e==a&&r>=0?us.chrome||us.gecko||(e?(i--,f=1):d=0)?0:m.length-1];return us.safari&&!f&&u.width==0&&(u=Array.prototype.find.call(m,p=>p.width)||u),f?dU(u,f<0):u||null}class fS extends Ql{static create(e,r,a){return new fS(e,r,a)}constructor(e,r,a){super(),this.widget=e,this.length=r,this.side=a,this.prevWidget=null}split(e){let r=fS.create(this.widget,this.length-e,this.side);return this.length-=e,r}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,r,a,i,d,f){return a&&(!(a instanceof fS)||!this.widget.compare(a.widget)||e>0&&d<=0||r0)?Td.before(this.dom):Td.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,r){let a=this.widget.coordsAt(this.dom,e,r);if(a)return a;let i=this.dom.getClientRects(),d=null;if(!i.length)return null;let f=this.side?this.side<0:e>0;for(let m=f?i.length-1:0;d=i[m],!(e>0?m==0:m==i.length-1||d.top0?Td.before(this.dom):Td.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Oi.empty}get isHidden(){return!0}}bO.prototype.children=fS.prototype.children=sM.prototype.children=Hae;function jpe(t,e){let r=t.dom,{children:a}=t,i=0;for(let d=0;id&&e0;d--){let f=a[d-1];if(f.dom.parentNode==r)return f.domAtPos(f.length)}for(let d=i;d0&&e instanceof OO&&i.length&&(a=i[i.length-1])instanceof OO&&a.mark.eq(e.mark)?qpe(a,e.children[0],r-1):(i.push(e),e.setParent(t)),t.length+=e.length}function Kpe(t,e,r){let a=null,i=-1,d=null,f=-1;function m(p,v){for(let y=0,b=0;y=v&&(x.children.length?m(x,v-b):(!d||d.isHidden&&r>0)&&(k>v||b==k&&x.getSide()>0)?(d=x,f=v-b):(b-1?1:0)!=i.length-(r&&i.indexOf(r)>-1?1:0))return!1;for(let d of a)if(d!=r&&(i.indexOf(d)==-1||t[d]!==e[d]))return!1;return!0}function ese(t,e,r){let a=!1;if(e)for(let i in e)r&&i in r||(a=!0,i=="style"?t.style.cssText="":t.removeAttribute(i));if(r)for(let i in r)e&&e[i]==r[i]||(a=!0,i=="style"?t.style.cssText=r[i]:t.setAttribute(i,r[i]));return a}function qTe(t){let e=Object.create(null);for(let r=0;r0&&this.children[a-1].length==0;)this.children[--a].destroy();return this.children.length=a,this.markDirty(),this.length=e,r}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Uae(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,r){qpe(this,e,r)}addLineDeco(e){let r=e.spec.attributes,a=e.spec.class;r&&(this.attrs=Joe(r,this.attrs||{})),a&&(this.attrs=Joe({class:a},this.attrs||{}))}domAtPos(e){return jpe(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,r){var a;this.dom?this.flags&4&&(Zpe(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(ese(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,r);let i=this.dom.lastChild;for(;i&&Ql.get(i)instanceof OO;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((a=Ql.get(i))===null||a===void 0?void 0:a.isEditable)==!1&&(!us.ios||!this.children.some(d=>d instanceof bO))){let d=document.createElement("BR");d.cmIgnore=!0,this.dom.appendChild(d)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,r;for(let a of this.children){if(!(a instanceof bO)||/[^ -~]/.test(a.text))return null;let i=oM(a.dom);if(i.length!=1)return null;e+=i[0].width,r=i[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:r}:null}coordsAt(e,r){let a=Kpe(this,e,r);if(!this.children.length&&a&&this.parent){let{heightOracle:i}=this.parent.view.viewState,d=a.bottom-a.top;if(Math.abs(d-i.lineHeight)<2&&i.textHeight=r){if(d instanceof Lu)return d;if(f>r)break}i=f+d.breakAfter}return null}}class pS extends Ql{constructor(e,r,a){super(),this.widget=e,this.length=r,this.deco=a,this.breakAfter=0,this.prevWidget=null}merge(e,r,a,i,d,f){return a&&(!(a instanceof pS)||!this.widget.compare(a.widget)||e>0&&d<=0||r0}}class oy{eq(e){return!1}updateDOM(e,r){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,r,a){return null}get isHidden(){return!1}destroy(e){}}var uh=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(uh||(uh={}));class Bs extends _C{constructor(e,r,a,i){super(),this.startSide=e,this.endSide=r,this.widget=a,this.spec=i}get heightRelevant(){return!1}static mark(e){return new $$(e)}static widget(e){let r=Math.max(-1e4,Math.min(1e4,e.side||0)),a=!!e.block;return r+=a&&!e.inlineOrder?r>0?3e8:-4e8:r>0?1e8:-1e8,new wS(e,r,r,a,e.widget||null,!1)}static replace(e){let r=!!e.block,a,i;if(e.isBlockGap)a=-5e8,i=4e8;else{let{start:d,end:f}=Jpe(e,r);a=(d?r?-3e8:-1:5e8)-1,i=(f?r?2e8:1:-6e8)+1}return new wS(e,a,i,r,e.widget||null,!0)}static line(e){return new L$(e)}static set(e,r=!1){return ji.of(e,r)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Bs.none=ji.empty;class $$ extends Bs{constructor(e){let{start:r,end:a}=Jpe(e);super(r?-1:5e8,a?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var r,a;return this==e||e instanceof $$&&this.tagName==e.tagName&&(this.class||((r=this.attrs)===null||r===void 0?void 0:r.class))==(e.class||((a=e.attrs)===null||a===void 0?void 0:a.class))&&Uae(this.attrs,e.attrs,"class")}range(e,r=e){if(e>=r)throw new RangeError("Mark decorations may not be empty");return super.range(e,r)}}$$.prototype.point=!1;class L$ extends Bs{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof L$&&this.spec.class==e.spec.class&&Uae(this.spec.attributes,e.spec.attributes)}range(e,r=e){if(r!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,r)}}L$.prototype.mapMode=Yf.TrackBefore;L$.prototype.point=!0;class wS extends Bs{constructor(e,r,a,i,d,f){super(r,a,d,e),this.block=i,this.isReplace=f,this.mapMode=i?r<=0?Yf.TrackBefore:Yf.TrackAfter:Yf.TrackDel}get type(){return this.startSide!=this.endSide?uh.WidgetRange:this.startSide<=0?uh.WidgetBefore:uh.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof wS&&KTe(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,r=e){if(this.isReplace&&(e>r||e==r&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&r!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,r)}}wS.prototype.point=!0;function Jpe(t,e=!1){let{inclusiveStart:r,inclusiveEnd:a}=t;return r==null&&(r=t.inclusive),a==null&&(a=t.inclusive),{start:r??e,end:a??e}}function KTe(t,e){return t==e||!!(t&&e&&t.compare(e))}function tse(t,e,r,a=0){let i=r.length-1;i>=0&&r[i]+a>=t?r[i]=Math.max(r[i],e):r.push(t,e)}class ID{constructor(e,r,a,i){this.doc=e,this.pos=r,this.end=a,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=r}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof pS&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new Lu),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Wz(new sM(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof pS)&&this.getLine()}buildText(e,r,a){for(;e>0;){if(this.textOff==this.text.length){let{value:d,lineBreak:f,done:m}=this.cursor.next(this.skip);if(this.skip=0,m)throw new Error("Ran out of text content when drawing inline views");if(f){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=d,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(r.slice(r.length-a)),this.getLine().append(Wz(new bO(this.text.slice(this.textOff,this.textOff+i)),r),a),this.atCursorPos=!0,this.textOff+=i,e-=i,a=0}}span(e,r,a,i){this.buildText(r-e,a,i),this.pos=r,this.openStart<0&&(this.openStart=i)}point(e,r,a,i,d,f){if(this.disallowBlockEffectsFor[f]&&a instanceof wS){if(a.block)throw new RangeError("Block decorations may not be specified via plugins");if(r>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let m=r-e;if(a instanceof wS)if(a.block)a.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new pS(a.widget||new hfe("div"),m,a));else{let u=fS.create(a.widget||new hfe("span"),m,m?0:a.startSide),p=this.atCursorPos&&!u.isEditable&&d<=i.length&&(e0),v=!u.isEditable&&(ei.length||a.startSide<=0),y=this.getLine();this.pendingBuffer==2&&!p&&!u.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),p&&(y.append(Wz(new sM(1),i),d),d=i.length+Math.max(0,d-i.length)),y.append(Wz(u,i),d),this.atCursorPos=v,this.pendingBuffer=v?ei.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(a);m&&(this.textOff+m<=this.text.length?this.textOff+=m:(this.skip+=m-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=r),this.openStart<0&&(this.openStart=d)}static build(e,r,a,i,d){let f=new ID(e,r,a,d);return f.openEnd=ji.spans(i,r,a,f),f.openStart<0&&(f.openStart=f.openEnd),f.finish(f.openEnd),f}}function Wz(t,e){for(let r of e)t=new OO(r,[t],t.length);return t}class hfe extends oy{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const eve=ss.define(),tve=ss.define(),nve=ss.define(),rve=ss.define(),nse=ss.define(),ove=ss.define(),sve=ss.define(),ave=ss.define({combine:t=>t.some(e=>e)}),ive=ss.define({combine:t=>t.some(e=>e)});class GP{constructor(e,r="nearest",a="nearest",i=5,d=5,f=!1){this.range=e,this.y=r,this.x=a,this.yMargin=i,this.xMargin=d,this.isSnapshot=f}map(e){return e.empty?this:new GP(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new GP(Tr.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Yz=pa.define({map:(t,e)=>t.map(e)});function Cp(t,e,r){let a=t.facet(rve);a.length?a[0](e):window.onerror?window.onerror(String(e),r,void 0,void 0,e):r?console.error(r+":",e):console.error(e)}const mU=ss.define({combine:t=>t.length?t[0]:!0});let JTe=0;const CD=ss.define();class eu{constructor(e,r,a,i,d){this.id=e,this.create=r,this.domEventHandlers=a,this.domEventObservers=i,this.extension=d(this)}static define(e,r){const{eventHandlers:a,eventObservers:i,provide:d,decorations:f}=r||{};return new eu(JTe++,e,a,i,m=>{let u=[CD.of(m)];return f&&u.push(n$.of(p=>{let v=p.plugin(m);return v?f(v):Bs.none})),d&&u.push(d(m)),u})}static fromClass(e,r){return eu.define(a=>new e(a),r)}}class Sre{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let r=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(r)}catch(a){if(Cp(r.state,a,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(r){Cp(e.state,r,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var r;if(!((r=this.value)===null||r===void 0)&&r.destroy)try{this.value.destroy()}catch(a){Cp(e.state,a,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const lve=ss.define(),Wae=ss.define(),n$=ss.define(),Yae=ss.define(),cve=ss.define();function mfe(t,e,r){let a=t.state.facet(cve);if(!a.length)return a;let i=a.map(f=>f instanceof Function?f(t):f),d=[];return ji.spans(i,e,r,{point(){},span(f,m,u,p){let v=d;for(let y=u.length-1;y>=0;y--,p--){let b=u[y].spec.bidiIsolate,x;if(b!=null)if(p>0&&v.length&&(x=v[v.length-1]).to==f&&x.direction==b)x.to=m,v=x.inner;else{let k={from:f,to:m,direction:b,inner:[]};v.push(k),v=k.inner}}}}),d}const uve=ss.define();function fve(t){let e=0,r=0,a=0,i=0;for(let d of t.state.facet(uve)){let f=d(t);f&&(f.left!=null&&(e=Math.max(e,f.left)),f.right!=null&&(r=Math.max(r,f.right)),f.top!=null&&(a=Math.max(a,f.top)),f.bottom!=null&&(i=Math.max(i,f.bottom)))}return{left:e,right:r,top:a,bottom:i}}const kD=ss.define();class kp{constructor(e,r,a,i){this.fromA=e,this.toA=r,this.fromB=a,this.toB=i}join(e){return new kp(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let r=e.length,a=this;for(;r>0;r--){let i=e[r-1];if(!(i.fromA>a.toA)){if(i.toAv)break;d+=2}if(!u)return a;new kp(u.fromA,u.toA,u.fromB,u.toB).addToSet(a),f=u.toA,m=u.toB}}}class sH{constructor(e,r,a){this.view=e,this.state=r,this.transactions=a,this.flags=0,this.startState=e.state,this.changes=Iu.empty(this.startState.doc.length);for(let d of a)this.changes=this.changes.compose(d.changes);let i=[];this.changes.iterChangedRanges((d,f,m,u)=>i.push(new kp(d,f,m,u))),this.changedRanges=i}static create(e,r,a){return new sH(e,r,a)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}var gc=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(gc||(gc={}));const r$=gc.LTR,dve=gc.RTL;function hve(t){let e=[];for(let r=0;r=r){if(m.level==a)return f;(d<0||(i!=0?i<0?m.fromr:e[d].level>m.level))&&(d=f)}}if(d<0)throw new RangeError("Index out of range");return d}}function mve(t,e){if(t.length!=e.length)return!1;for(let r=0;r=0;C-=3)if($1[C+1]==-x){let w=$1[C+2],T=w&2?i:w&4?w&1?d:i:0;T&&(pl[y]=pl[$1[C]]=T),m=C;break}}else{if($1.length==189)break;$1[m++]=y,$1[m++]=b,$1[m++]=u}else if((k=pl[y])==2||k==1){let C=k==i;u=C?0:1;for(let w=m-3;w>=0;w-=3){let T=$1[w+2];if(T&2)break;if(C)$1[w+2]|=2;else{if(T&4)break;$1[w+2]|=4}}}}}function a3e(t,e,r,a){for(let i=0,d=a;i<=r.length;i++){let f=i?r[i-1].to:t,m=iu;)k==w&&(k=r[--C].from,w=C?r[C-1].to:t),pl[--k]=x;u=v}else d=p,u++}}}function ose(t,e,r,a,i,d,f){let m=a%2?2:1;if(a%2==i%2)for(let u=e,p=0;uu&&f.push(new dS(u,C.from,x));let w=C.direction==r$!=!(x%2);sse(t,w?a+1:a,i,C.inner,C.from,C.to,f),u=C.to}k=C.to}else{if(k==r||(v?pl[k]!=m:pl[k]==m))break;k++}b?ose(t,u,k,a+1,i,b,f):ue;){let v=!0,y=!1;if(!p||u>d[p-1].to){let C=pl[u-1];C!=m&&(v=!1,y=C==16)}let b=!v&&m==1?[]:null,x=v?a:a+1,k=u;e:for(;;)if(p&&k==d[p-1].to){if(y)break e;let C=d[--p];if(!v)for(let w=C.from,T=p;;){if(w==e)break e;if(T&&d[T-1].to==w)w=d[--T].from;else{if(pl[w-1]==m)break e;break}}if(b)b.push(C);else{C.topl.length;)pl[pl.length]=256;let a=[],i=e==r$?0:1;return sse(t,i,i,r,0,t.length,a),a}function gve(t){return[new dS(0,t,0)]}let pve="";function l3e(t,e,r,a,i){var d;let f=a.head-t.from,m=-1;if(f==0){if(!i||!t.length)return null;e[0].level!=r&&(f=e[0].side(!1,r),m=0)}else if(f==t.length){if(i)return null;let b=e[e.length-1];b.level!=r&&(f=b.side(!0,r),m=e.length-1)}m<0&&(m=dS.find(e,f,(d=a.bidiLevel)!==null&&d!==void 0?d:-1,a.assoc));let u=e[m];f==u.side(i,r)&&(u=e[m+=i?1:-1],f=u.side(!i,r));let p=i==(u.dir==r),v=Xf(t.text,f,p);if(pve=t.text.slice(Math.min(f,v),Math.max(f,v)),v!=u.side(i,r))return Tr.cursor(v+t.from,p?-1:1,u.level);let y=m==(i?e.length-1:0)?null:e[m+(i?1:-1)];return!y&&u.level!=r?Tr.cursor(i?t.to:t.from,i?-1:1,r):y&&y.level0&&a.length&&(a.every(({fromA:p,toA:v})=>vthis.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&(!((r=this.domChanged)===null||r===void 0)&&r.newSel?i=this.domChanged.newSel.head:!g3e(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let d=i>-1?u3e(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:p,to:v}=this.hasComposition;a=new kp(p,v,e.changes.mapPos(p,-1),e.changes.mapPos(v,1)).addToSet(a.slice())}this.hasComposition=d?{from:d.range.fromB,to:d.range.toB}:null,(us.ie||us.chrome)&&!d&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let f=this.decorations,m=this.updateDeco(),u=h3e(f,m,e.changes);return a=kp.extendWithRanges(a,u),!(this.flags&7)&&a.length==0?!1:(this.updateInner(a,e.startState.doc.length,d),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,r,a){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,r,a);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let f=us.chrome||us.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,f),this.flags&=-8,f&&(f.written||i.selectionRange.focusNode!=f.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(f=>f.flags&=-9);let d=[];if(this.view.viewport.from||this.view.viewport.to=0?i[f]:null;if(!m)break;let{fromA:u,toA:p,fromB:v,toB:y}=m,b,x,k,C;if(a&&a.range.fromBv){let I=ID.build(this.view.state.doc,v,a.range.fromB,this.decorations,this.dynamicDecorationMap),V=ID.build(this.view.state.doc,a.range.toB,y,this.decorations,this.dynamicDecorationMap);x=I.breakAtStart,k=I.openStart,C=V.openEnd;let N=this.compositionView(a);V.breakAtStart?N.breakAfter=1:V.content.length&&N.merge(N.length,N.length,V.content[0],!1,V.openStart,0)&&(N.breakAfter=V.content[0].breakAfter,V.content.shift()),I.content.length&&N.merge(0,0,I.content[I.content.length-1],!0,0,I.openEnd)&&I.content.pop(),b=I.content.concat(N).concat(V.content)}else({content:b,breakAtStart:x,openStart:k,openEnd:C}=ID.build(this.view.state.doc,v,y,this.decorations,this.dynamicDecorationMap));let{i:w,off:T}=d.findPos(p,1),{i:R,off:M}=d.findPos(u,-1);Wpe(this,R,M,w,T,b,x,k,C)}a&&this.fixCompositionDOM(a)}compositionView(e){let r=new bO(e.text.nodeValue);r.flags|=8;for(let{deco:i}of e.marks)r=new OO(i,[r],r.length);let a=new Lu;return a.append(r,0),a}fixCompositionDOM(e){let r=(d,f)=>{f.flags|=8|(f.children.some(u=>u.flags&7)?1:0),this.markedForComposition.add(f);let m=Ql.get(d);m&&m!=f&&(m.dom=null),f.setDOM(d)},a=this.childPos(e.range.fromB,1),i=this.children[a.i];r(e.line,i);for(let d=e.marks.length-1;d>=-1;d--)a=i.childPos(a.off,1),i=i.children[a.i],r(d>=0?e.marks[d].node:e.text,i)}updateSelection(e=!1,r=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let a=this.view.root.activeElement,i=a==this.dom,d=!i&&DZ(this.dom,this.view.observer.selectionRange)&&!(a&&this.dom.contains(a));if(!(i||r||d))return;let f=this.forceSelection;this.forceSelection=!1;let m=this.view.state.selection.main,u=this.moveToLine(this.domAtPos(m.anchor)),p=m.empty?u:this.moveToLine(this.domAtPos(m.head));if(us.gecko&&m.empty&&!this.hasComposition&&c3e(u)){let y=document.createTextNode("");this.view.observer.ignore(()=>u.node.insertBefore(y,u.node.childNodes[u.offset]||null)),u=p=new Td(y,0),f=!0}let v=this.view.observer.selectionRange;(f||!v.focusNode||!oH(u.node,u.offset,v.anchorNode,v.anchorOffset)||!oH(p.node,p.offset,v.focusNode,v.focusOffset))&&(this.view.observer.ignore(()=>{us.android&&us.chrome&&this.dom.contains(v.focusNode)&&m3e(v.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let y=rH(this.view.root);if(y)if(m.empty){if(us.gecko){let b=f3e(u.node,u.offset);if(b&&b!=3){let x=yve(u.node,u.offset,b==1?1:-1);x&&(u=new Td(x.node,x.offset))}}y.collapse(u.node,u.offset),m.bidiLevel!=null&&y.caretBidiLevel!==void 0&&(y.caretBidiLevel=m.bidiLevel)}else if(y.extend){y.collapse(u.node,u.offset);try{y.extend(p.node,p.offset)}catch{}}else{let b=document.createRange();m.anchor>m.head&&([u,p]=[p,u]),b.setEnd(p.node,p.offset),b.setStart(u.node,u.offset),y.removeAllRanges(),y.addRange(b)}d&&this.view.root.activeElement==this.dom&&(this.dom.blur(),a&&a.focus())}),this.view.observer.setSelectionRange(u,p)),this.impreciseAnchor=u.precise?null:new Td(v.anchorNode,v.anchorOffset),this.impreciseHead=p.precise?null:new Td(v.focusNode,v.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,r=e.state.selection.main,a=rH(e.root),{anchorNode:i,anchorOffset:d}=e.observer.selectionRange;if(!a||!r.empty||!r.assoc||!a.modify)return;let f=Lu.find(this,r.head);if(!f)return;let m=f.posAtStart;if(r.head==m||r.head==m+f.length)return;let u=this.coordsAt(r.head,-1),p=this.coordsAt(r.head,1);if(!u||!p||u.bottom>p.top)return;let v=this.domAtPos(r.head+r.assoc);a.collapse(v.node,v.offset),a.modify("move",r.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let y=e.observer.selectionRange;e.docView.posFromDOM(y.anchorNode,y.anchorOffset)!=r.from&&a.collapse(i,d)}moveToLine(e){let r=this.dom,a;if(e.node!=r)return e;for(let i=e.offset;!a&&i=0;i--){let d=Ql.get(r.childNodes[i]);d instanceof Lu&&(a=d.domAtPos(d.length))}return a?new Td(a.node,a.offset,!0):e}nearest(e){for(let r=e;r;){let a=Ql.get(r);if(a&&a.rootView==this)return a;r=r.parentNode}return null}posFromDOM(e,r){let a=this.nearest(e);if(!a)throw new RangeError("Trying to find position for a DOM position outside of the document");return a.localPosFromDOM(e,r)+a.posAtStart}domAtPos(e){let{i:r,off:a}=this.childCursor().findPos(e,-1);for(;r=0;f--){let m=this.children[f],u=d-m.breakAfter,p=u-m.length;if(ue||m.covers(1))&&(!a||m instanceof Lu&&!(a instanceof Lu&&r>=0))&&(a=m,i=p),d=p}return a?a.coordsAt(e-i,r):null}coordsForChar(e){let{i:r,off:a}=this.childPos(e,1),i=this.children[r];if(!(i instanceof Lu))return null;for(;i.children.length;){let{i:m,off:u}=i.childPos(a,1);for(;;m++){if(m==i.children.length)return null;if((i=i.children[m]).length)break}a=u}if(!(i instanceof bO))return null;let d=Xf(i.text,a);if(d==a)return null;let f=RC(i.dom,a,d).getClientRects();for(let m=0;mMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,m=-1,u=this.view.textDirection==gc.LTR;for(let p=0,v=0;vi)break;if(p>=a){let x=y.dom.getBoundingClientRect();if(r.push(x.height),f){let k=y.dom.lastChild,C=k?oM(k):[];if(C.length){let w=C[C.length-1],T=u?w.right-x.left:x.right-w.left;T>m&&(m=T,this.minWidth=d,this.minWidthFrom=p,this.minWidthTo=b)}}}p=b+y.breakAfter}return r}textDirectionAt(e){let{i:r}=this.childPos(e,1);return getComputedStyle(this.children[r].dom).direction=="rtl"?gc.RTL:gc.LTR}measureTextSize(){for(let d of this.children)if(d instanceof Lu){let f=d.measureTextSize();if(f)return f}let e=document.createElement("div"),r,a,i;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let d=oM(e.firstChild)[0];r=e.getBoundingClientRect().height,a=d?d.width/27:7,i=d?d.height:r,e.remove()}),{lineHeight:r,charWidth:a,textHeight:i}}childCursor(e=this.length){let r=this.children.length;return r&&(e-=this.children[--r].length),new Upe(this.children,e,r)}computeBlockGapDeco(){let e=[],r=this.view.viewState;for(let a=0,i=0;;i++){let d=i==r.viewports.length?null:r.viewports[i],f=d?d.from-1:this.length;if(f>a){let m=(r.lineBlockAt(f).bottom-r.lineBlockAt(a).top)/this.view.scaleY;e.push(Bs.replace({widget:new pfe(m),block:!0,inclusive:!0,isBlockGap:!0}).range(a,f))}if(!d)break;a=d.to+1}return Bs.set(e)}updateDeco(){let e=this.view.state.facet(n$).map((r,a)=>(this.dynamicDecorationMap[a]=typeof r=="function")?r(this.view):r);for(let r=e.length;rr.anchor?-1:1),i;if(!a)return;!r.empty&&(i=this.coordsAt(r.anchor,r.anchor>r.head?-1:1))&&(a={left:Math.min(a.left,i.left),top:Math.min(a.top,i.top),right:Math.max(a.right,i.right),bottom:Math.max(a.bottom,i.bottom)});let d=fve(this.view),f={left:a.left-d.left,top:a.top-d.top,right:a.right+d.right,bottom:a.bottom+d.bottom},{offsetWidth:m,offsetHeight:u}=this.view.scrollDOM;ZTe(this.view.scrollDOM,f,r.head0)a=a.childNodes[i-1],i=yO(a);else break}if(r>=0)for(let a=t,i=e;;){if(a.nodeType==3)return{node:a,offset:i};if(a.nodeType==1&&i=0)a=a.childNodes[i],i=0;else break}return null}function f3e(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e{ae.from&&(r=!0)}),r}function p3e(t,e,r=1){let a=t.charCategorizer(e),i=t.doc.lineAt(e),d=e-i.from;if(i.length==0)return Tr.cursor(e);d==0?r=1:d==i.length&&(r=-1);let f=d,m=d;r<0?f=Xf(i.text,d,!1):m=Xf(i.text,d);let u=a(i.text.slice(f,m));for(;f>0;){let p=Xf(i.text,f,!1);if(a(i.text.slice(p,f))!=u)break;f=p}for(;mt?e.left-t:Math.max(0,t-e.right)}function y3e(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function wre(t,e){return t.tope.top+1}function vfe(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function ase(t,e,r){let a,i,d,f,m=!1,u,p,v,y;for(let k=t.firstChild;k;k=k.nextSibling){let C=oM(k);for(let w=0;wM||f==M&&d>R){a=k,i=T,d=R,f=M;let I=M?r0?w0)}R==0?r>T.bottom&&(!v||v.bottomT.top)&&(p=k,y=T):v&&wre(v,T)?v=yfe(v,T.bottom):y&&wre(y,T)&&(y=vfe(y,T.top))}}if(v&&v.bottom>=r?(a=u,i=v):y&&y.top<=r&&(a=p,i=y),!a)return{node:t,offset:0};let b=Math.max(i.left,Math.min(i.right,e));if(a.nodeType==3)return bfe(a,b,r);if(m&&a.contentEditable!="false")return ase(a,b,r);let x=Array.prototype.indexOf.call(t.childNodes,a)+(e>=(i.left+i.right)/2?1:0);return{node:t,offset:x}}function bfe(t,e,r){let a=t.nodeValue.length,i=-1,d=1e9,f=0;for(let m=0;mr?v.top-r:r-v.bottom)-1;if(v.left-1<=e&&v.right+1>=e&&y=(v.left+v.right)/2,x=b;if((us.chrome||us.gecko)&&RC(t,m).getBoundingClientRect().left==v.right&&(x=!b),y<=0)return{node:t,offset:m+(x?1:0)};i=m+(x?1:0),d=y}}}return{node:t,offset:i>-1?i:f>0?t.nodeValue.length:0}}function bve(t,e,r,a=-1){var i,d;let f=t.contentDOM.getBoundingClientRect(),m=f.top+t.viewState.paddingTop,u,{docHeight:p}=t.viewState,{x:v,y}=e,b=y-m;if(b<0)return 0;if(b>p)return t.state.doc.length;for(let I=t.viewState.heightOracle.textHeight/2,V=!1;u=t.elementAtHeight(b),u.type!=uh.Text;)for(;b=a>0?u.bottom+I:u.top-I,!(b>=0&&b<=p);){if(V)return r?null:0;V=!0,a=-a}y=m+b;let x=u.from;if(xt.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:r?null:Ofe(t,f,u,v,y);let k=t.dom.ownerDocument,C=t.root.elementFromPoint?t.root:k,w=C.elementFromPoint(v,y);w&&!t.contentDOM.contains(w)&&(w=null),w||(v=Math.max(f.left+1,Math.min(f.right-1,v)),w=C.elementFromPoint(v,y),w&&!t.contentDOM.contains(w)&&(w=null));let T,R=-1;if(w&&((i=t.docView.nearest(w))===null||i===void 0?void 0:i.isEditable)!=!1){if(k.caretPositionFromPoint){let I=k.caretPositionFromPoint(v,y);I&&({offsetNode:T,offset:R}=I)}else if(k.caretRangeFromPoint){let I=k.caretRangeFromPoint(v,y);I&&({startContainer:T,startOffset:R}=I,(!t.contentDOM.contains(T)||us.safari&&b3e(T,R,v)||us.chrome&&O3e(T,R,v))&&(T=void 0))}}if(!T||!t.docView.dom.contains(T)){let I=Lu.find(t.docView,x);if(!I)return b>u.top+u.height/2?u.to:u.from;({node:T,offset:R}=ase(I.dom,v,y))}let M=t.docView.nearest(T);if(!M)return null;if(M.isWidget&&((d=M.dom)===null||d===void 0?void 0:d.nodeType)==1){let I=M.dom.getBoundingClientRect();return e.yt.defaultLineHeight*1.5){let m=t.viewState.heightOracle.textHeight,u=Math.floor((i-r.top-(t.defaultLineHeight-m)*.5)/m);d+=u*t.viewState.heightOracle.lineLength}let f=t.state.sliceDoc(r.from,r.to);return r.from+Woe(f,d,t.state.tabSize)}function b3e(t,e,r){let a;if(t.nodeType!=3||e!=(a=t.nodeValue.length))return!1;for(let i=t.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return RC(t,a-1,a).getBoundingClientRect().left>r}function O3e(t,e,r){if(e!=0)return!1;for(let i=t;;){let d=i.parentNode;if(!d||d.nodeType!=1||d.firstChild!=i)return!1;if(d.classList.contains("cm-line"))break;i=d}let a=t.nodeType==1?t.getBoundingClientRect():RC(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return r-a.left>5}function ise(t,e){let r=t.lineBlockAt(e);if(Array.isArray(r.type)){for(let a of r.type)if(a.to>e||a.to==e&&(a.to==r.to||a.type==uh.Text))return a}return r}function x3e(t,e,r,a){let i=ise(t,e.head),d=!a||i.type!=uh.Text||!(t.lineWrapping||i.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(d){let f=t.dom.getBoundingClientRect(),m=t.textDirectionAt(i.from),u=t.posAtCoords({x:r==(m==gc.LTR)?f.right-1:f.left+1,y:(d.top+d.bottom)/2});if(u!=null)return Tr.cursor(u,r?-1:1)}return Tr.cursor(r?i.to:i.from,r?-1:1)}function xfe(t,e,r,a){let i=t.state.doc.lineAt(e.head),d=t.bidiSpans(i),f=t.textDirectionAt(i.from);for(let m=e,u=null;;){let p=l3e(i,d,f,m,r),v=pve;if(!p){if(i.number==(r?t.state.doc.lines:1))return m;v=` +`,i=t.state.doc.line(i.number+(r?1:-1)),d=t.bidiSpans(i),p=Tr.cursor(r?i.from:i.to)}if(u){if(!u(v))return m}else{if(!a)return p;u=a(v)}m=p}}function S3e(t,e,r){let a=t.state.charCategorizer(e),i=a(r);return d=>{let f=a(d);return i==Jl.Space&&(i=f),i==f}}function w3e(t,e,r,a){let i=e.head,d=r?1:-1;if(i==(r?t.state.doc.length:0))return Tr.cursor(i,e.assoc);let f=e.goalColumn,m,u=t.contentDOM.getBoundingClientRect(),p=t.coordsAtPos(i,e.assoc||-1),v=t.documentTop;if(p)f==null&&(f=p.left-u.left),m=d<0?p.top:p.bottom;else{let x=t.viewState.lineBlockAt(i);f==null&&(f=Math.min(u.right-u.left,t.defaultCharacterWidth*(i-x.from))),m=(d<0?x.top:x.bottom)+v}let y=u.left+f,b=a??t.viewState.heightOracle.textHeight>>1;for(let x=0;;x+=10){let k=m+(b+x)*d,C=bve(t,{x:y,y:k},!1,d);if(ku.bottom||(d<0?Ci)){let w=t.docView.coordsForChar(C),T=!w||k{if(e>d&&ei(t)),r.from,e.head>r.from?-1:1);return a==r.from?r:Tr.cursor(a,anull),us.gecko&&F3e(e.contentDOM.ownerDocument)}handleEvent(e){!R3e(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,r){let a=this.handlers[e];if(a){for(let i of a.observers)i(this.view,r);for(let i of a.handlers){if(r.defaultPrevented)break;if(i(this.view,r)){r.preventDefault();break}}}}ensureHandlers(e){let r=C3e(e),a=this.handlers,i=this.view.contentDOM;for(let d in r)if(d!="scroll"){let f=!r[d].handlers.length,m=a[d];m&&f!=!m.handlers.length&&(i.removeEventListener(d,this.handleEvent),m=null),m||i.addEventListener(d,this.handleEvent,{passive:f})}for(let d in a)d!="scroll"&&!r[d]&&i.removeEventListener(d,this.handleEvent);this.handlers=r}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&Date.now()a.keyCode==e.keyCode))&&!e.ctrlKey||k3e.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=r||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(){let e=this.pendingIOSKey;return e?(this.pendingIOSKey=void 0,XP(this.view.contentDOM,e.key,e.keyCode)):!1}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:us.safari&&!us.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Sfe(t,e){return(r,a)=>{try{return e.call(t,a,r)}catch(i){Cp(r.state,i)}}}function C3e(t){let e=Object.create(null);function r(a){return e[a]||(e[a]={observers:[],handlers:[]})}for(let a of t){let i=a.spec;if(i&&i.domEventHandlers)for(let d in i.domEventHandlers){let f=i.domEventHandlers[d];f&&r(d).handlers.push(Sfe(a.value,f))}if(i&&i.domEventObservers)for(let d in i.domEventObservers){let f=i.domEventObservers[d];f&&r(d).observers.push(Sfe(a.value,f))}}for(let a in Vv)r(a).handlers.push(Vv[a]);for(let a in zv)r(a).observers.push(zv[a]);return e}const Ove=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],k3e="dthko",xve=[16,17,18,20,91,92,224,225],Xz=6;function Gz(t){return Math.max(0,t)*.7+8}function A3e(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class P3e{constructor(e,r,a,i){this.view=e,this.startEvent=r,this.style=a,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=r,this.scrollParent=HTe(e.contentDOM),this.atoms=e.state.facet(Yae).map(f=>f(e));let d=e.contentDOM.ownerDocument;d.addEventListener("mousemove",this.move=this.move.bind(this)),d.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=r.shiftKey,this.multiple=e.state.facet(Ia.allowMultipleSelections)&&M3e(e,r),this.dragging=_3e(e,r)&&Cve(r)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var r;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&A3e(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let a=0,i=0,d=((r=this.scrollParent)===null||r===void 0?void 0:r.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},f=fve(this.view);e.clientX-f.left<=d.left+Xz?a=-Gz(d.left-e.clientX):e.clientX+f.right>=d.right-Xz&&(a=Gz(e.clientX-d.right)),e.clientY-f.top<=d.top+Xz?i=-Gz(d.top-e.clientY):e.clientY+f.bottom>=d.bottom-Xz&&(i=Gz(e.clientY-d.bottom)),this.setScrollSpeed(a,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,r){this.scrollSpeed={x:e,y:r},e||r?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let r=null;for(let a=0;athis.select(this.lastEvent),20)}}function M3e(t,e){let r=t.state.facet(eve);return r.length?r[0](e):us.mac?e.metaKey:e.ctrlKey}function E3e(t,e){let r=t.state.facet(tve);return r.length?r[0](e):us.mac?!e.altKey:!e.ctrlKey}function _3e(t,e){let{main:r}=t.state.selection;if(r.empty)return!1;let a=rH(t.root);if(!a||a.rangeCount==0)return!0;let i=a.getRangeAt(0).getClientRects();for(let d=0;d=e.clientX&&f.top<=e.clientY&&f.bottom>=e.clientY)return!0}return!1}function R3e(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let r=e.target,a;r!=t.contentDOM;r=r.parentNode)if(!r||r.nodeType==11||(a=Ql.get(r))&&a.ignoreEvent(e))return!1;return!0}const Vv=Object.create(null),zv=Object.create(null),Sve=us.ie&&us.ie_version<15||us.ios&&us.webkit_version<604;function D3e(t){let e=t.dom.parentNode;if(!e)return;let r=e.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout(()=>{t.focus(),r.remove(),wve(t,r.value)},50)}function wve(t,e){let{state:r}=t,a,i=1,d=r.toText(e),f=d.lines==r.selection.ranges.length;if(lse!=null&&r.selection.ranges.every(u=>u.empty)&&lse==d.toString()){let u=-1;a=r.changeByRange(p=>{let v=r.doc.lineAt(p.from);if(v.from==u)return{range:p};u=v.from;let y=r.toText((f?d.line(i++).text:e)+r.lineBreak);return{changes:{from:v.from,insert:y},range:Tr.cursor(p.from+y.length)}})}else f?a=r.changeByRange(u=>{let p=d.line(i++);return{changes:{from:u.from,to:u.to,insert:p.text},range:Tr.cursor(u.from+p.length)}}):a=r.replaceSelection(d);t.dispatch(a,{userEvent:"input.paste",scrollIntoView:!0})}zv.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};Vv.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&(t.inputState.lastEscPress=Date.now()),!1);zv.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};zv.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};Vv.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let r=null;for(let a of t.state.facet(nve))if(r=a(t,e),r)break;if(!r&&e.button==0&&(r=I3e(t,e)),r){let a=!t.hasFocus;t.inputState.startMouseSelection(new P3e(t,e,r,a)),a&&t.observer.ignore(()=>zpe(t.contentDOM));let i=t.inputState.mouseSelection;if(i)return i.start(e),i.dragging===!1}return!1};function wfe(t,e,r,a){if(a==1)return Tr.cursor(e,r);if(a==2)return p3e(t.state,e,r);{let i=Lu.find(t.docView,e),d=t.state.doc.lineAt(i?i.posAtEnd:e),f=i?i.posAtStart:d.from,m=i?i.posAtEnd:d.to;return mt>=e.top&&t<=e.bottom,Tfe=(t,e,r)=>Tve(e,r)&&t>=r.left&&t<=r.right;function $3e(t,e,r,a){let i=Lu.find(t.docView,e);if(!i)return 1;let d=e-i.posAtStart;if(d==0)return 1;if(d==i.length)return-1;let f=i.coordsAt(d,-1);if(f&&Tfe(r,a,f))return-1;let m=i.coordsAt(d,1);return m&&Tfe(r,a,m)?1:f&&Tve(a,f)?-1:1}function Cfe(t,e){let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:r,bias:$3e(t,r,e.clientX,e.clientY)}}const L3e=us.ie&&us.ie_version<=11;let kfe=null,Afe=0,Pfe=0;function Cve(t){if(!L3e)return t.detail;let e=kfe,r=Pfe;return kfe=t,Pfe=Date.now(),Afe=!e||r>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Afe+1)%3:1}function I3e(t,e){let r=Cfe(t,e),a=Cve(e),i=t.state.selection;return{update(d){d.docChanged&&(r.pos=d.changes.mapPos(r.pos),i=i.map(d.changes))},get(d,f,m){let u=Cfe(t,d),p,v=wfe(t,u.pos,u.bias,a);if(r.pos!=u.pos&&!f){let y=wfe(t,r.pos,r.bias,a),b=Math.min(y.from,v.from),x=Math.max(y.to,v.to);v=b1&&(p=N3e(i,u.pos))?p:m?i.addRange(v):Tr.create([v])}}}function N3e(t,e){for(let r=0;r=e)return Tr.create(t.ranges.slice(0,r).concat(t.ranges.slice(r+1)),t.mainIndex==r?0:t.mainIndex-(t.mainIndex>r?1:0))}return null}Vv.dragstart=(t,e)=>{let{selection:{main:r}}=t.state;if(e.target.draggable){let i=t.docView.nearest(e.target);if(i&&i.isWidget){let d=i.posAtStart,f=d+i.length;(d>=r.to||f<=r.from)&&(r=Tr.range(d,f))}}let{inputState:a}=t;return a.mouseSelection&&(a.mouseSelection.dragging=!0),a.draggedContent=r,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(r.from,r.to)),e.dataTransfer.effectAllowed="copyMove"),!1};Vv.dragend=t=>(t.inputState.draggedContent=null,!1);function Mfe(t,e,r,a){if(!r)return;let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:d}=t.inputState,f=a&&d&&E3e(t,e)?{from:d.from,to:d.to}:null,m={from:i,insert:r},u=t.state.changes(f?[f,m]:m);t.focus(),t.dispatch({changes:u,selection:{anchor:u.mapPos(i,-1),head:u.mapPos(i,1)},userEvent:f?"move.drop":"input.drop"}),t.inputState.draggedContent=null}Vv.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let r=e.dataTransfer.files;if(r&&r.length){let a=Array(r.length),i=0,d=()=>{++i==r.length&&Mfe(t,e,a.filter(f=>f!=null).join(t.state.lineBreak),!1)};for(let f=0;f{/[\x00-\x08\x0e-\x1f]{2}/.test(m.result)||(a[f]=m.result),d()},m.readAsText(r[f])}return!0}else{let a=e.dataTransfer.getData("Text");if(a)return Mfe(t,e,a,!0),!0}return!1};Vv.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let r=Sve?null:e.clipboardData;return r?(wve(t,r.getData("text/plain")||r.getData("text/uri-text")),!0):(D3e(t),!1)};function B3e(t,e){let r=t.dom.parentNode;if(!r)return;let a=r.appendChild(document.createElement("textarea"));a.style.cssText="position: fixed; left: -10000px; top: 10px",a.value=e,a.focus(),a.selectionEnd=e.length,a.selectionStart=0,setTimeout(()=>{a.remove(),t.focus()},50)}function Q3e(t){let e=[],r=[],a=!1;for(let i of t.selection.ranges)i.empty||(e.push(t.sliceDoc(i.from,i.to)),r.push(i));if(!e.length){let i=-1;for(let{from:d}of t.selection.ranges){let f=t.doc.lineAt(d);f.number>i&&(e.push(f.text),r.push({from:f.from,to:Math.min(t.doc.length,f.to+1)})),i=f.number}a=!0}return{text:e.join(t.lineBreak),ranges:r,linewise:a}}let lse=null;Vv.copy=Vv.cut=(t,e)=>{let{text:r,ranges:a,linewise:i}=Q3e(t.state);if(!r&&!i)return!1;lse=i?r:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:a,scrollIntoView:!0,userEvent:"delete.cut"});let d=Sve?null:e.clipboardData;return d?(d.clearData(),d.setData("text/plain",r),!0):(B3e(t,r),!1)};const kve=TO.define();function Ave(t,e){let r=[];for(let a of t.facet(sve)){let i=a(t,e);i&&r.push(i)}return r?t.update({effects:r,annotations:kve.of(!0)}):null}function Pve(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let r=Ave(t.state,e);r?t.dispatch(r):t.update([])}},10)}zv.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),Pve(t)};zv.blur=t=>{t.observer.clearSelectionRange(),Pve(t)};zv.compositionstart=zv.compositionupdate=t=>{t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0)};zv.compositionend=t=>{t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,us.chrome&&us.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50)};zv.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};Vv.beforeinput=(t,e)=>{var r;let a;if(us.chrome&&us.android&&(a=Ove.find(i=>i.inputType==e.inputType))&&(t.observer.delayAndroidKey(a.key,a.keyCode),a.key=="Backspace"||a.key=="Delete")){let i=((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0;setTimeout(()=>{var d;(((d=window.visualViewport)===null||d===void 0?void 0:d.height)||0)>i+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return!1};const Efe=new Set;function F3e(t){Efe.has(t)||(Efe.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const _fe=["pre-wrap","normal","pre-line","break-spaces"];class V3e{constructor(e){this.lineWrapping=e,this.doc=Oi.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,r){let a=this.doc.lineAt(r).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(a+=Math.max(0,Math.ceil((r-e-a*this.lineLength*.5)/this.lineLength))),this.lineHeight*a}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return _fe.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let r=!1;for(let a=0;a-1,u=Math.round(r)!=Math.round(this.lineHeight)||this.lineWrapping!=m;if(this.lineWrapping=m,this.lineHeight=r,this.charWidth=a,this.textHeight=i,this.lineLength=d,u){this.heightSamples={};for(let p=0;p0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,r){this.height!=r&&(Math.abs(this.height-r)>LZ&&(e.heightChanged=!0),this.height=r)}replace(e,r,a){return fh.of(a)}decomposeLeft(e,r){r.push(this)}decomposeRight(e,r){r.push(this)}applyChanges(e,r,a,i){let d=this,f=a.doc;for(let m=i.length-1;m>=0;m--){let{fromA:u,toA:p,fromB:v,toB:y}=i[m],b=d.lineAt(u,Nl.ByPosNoHeight,a.setDoc(r),0,0),x=b.to>=p?b:d.lineAt(p,Nl.ByPosNoHeight,a,0,0);for(y+=x.to-p,p=x.to;m>0&&b.from<=i[m-1].toA;)u=i[m-1].fromA,v=i[m-1].fromB,m--,ud*2){let m=e[r-1];m.break?e.splice(--r,1,m.left,null,m.right):e.splice(--r,1,m.left,m.right),a+=1+m.break,i-=m.size}else if(d>i*2){let m=e[a];m.break?e.splice(a,1,m.left,null,m.right):e.splice(a,1,m.left,m.right),a+=2+m.break,d-=m.size}else break;else if(i=d&&f(this.blockAt(0,a,i,d))}updateHeight(e,r=0,a=!1,i){return i&&i.from<=r&&i.more&&this.setHeight(e,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class rg extends Mve{constructor(e,r){super(e,r,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,r,a,i){return new z1(i,this.length,a,this.height,this.breaks)}replace(e,r,a){let i=a[0];return a.length==1&&(i instanceof rg||i instanceof Zf&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Zf?i=new rg(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):fh.of(a)}updateHeight(e,r=0,a=!1,i){return i&&i.from<=r&&i.more?this.setHeight(e,i.heights[i.index++]):(a||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Zf extends fh{constructor(e){super(e,0)}heightMetrics(e,r){let a=e.doc.lineAt(r).number,i=e.doc.lineAt(r+this.length).number,d=i-a+1,f,m=0;if(e.lineWrapping){let u=Math.min(this.height,e.lineHeight*d);f=u/d,this.length>d+1&&(m=(this.height-u)/(this.length-d-1))}else f=this.height/d;return{firstLine:a,lastLine:i,perLine:f,perChar:m}}blockAt(e,r,a,i){let{firstLine:d,lastLine:f,perLine:m,perChar:u}=this.heightMetrics(r,i);if(r.lineWrapping){let p=i+Math.round(Math.max(0,Math.min(1,(e-a)/this.height))*this.length),v=r.doc.lineAt(p),y=m+v.length*u,b=Math.max(a,e-y/2);return new z1(v.from,v.length,b,y,0)}else{let p=Math.max(0,Math.min(f-d,Math.floor((e-a)/m))),{from:v,length:y}=r.doc.line(d+p);return new z1(v,y,a+m*p,m,0)}}lineAt(e,r,a,i,d){if(r==Nl.ByHeight)return this.blockAt(e,a,i,d);if(r==Nl.ByPosNoHeight){let{from:x,to:k}=a.doc.lineAt(e);return new z1(x,k-x,0,0,0)}let{firstLine:f,perLine:m,perChar:u}=this.heightMetrics(a,d),p=a.doc.lineAt(e),v=m+p.length*u,y=p.number-f,b=i+m*y+u*(p.from-d-y);return new z1(p.from,p.length,Math.max(i,Math.min(b,i+this.height-v)),v,0)}forEachLine(e,r,a,i,d,f){e=Math.max(e,d),r=Math.min(r,d+this.length);let{firstLine:m,perLine:u,perChar:p}=this.heightMetrics(a,d);for(let v=e,y=i;v<=r;){let b=a.doc.lineAt(v);if(v==e){let k=b.number-m;y+=u*k+p*(e-d-k)}let x=u+p*b.length;f(new z1(b.from,b.length,y,x,0)),y+=x,v=b.to+1}}replace(e,r,a){let i=this.length-r;if(i>0){let d=a[a.length-1];d instanceof Zf?a[a.length-1]=new Zf(d.length+i):a.push(null,new Zf(i-1))}if(e>0){let d=a[0];d instanceof Zf?a[0]=new Zf(e+d.length):a.unshift(new Zf(e-1),null)}return fh.of(a)}decomposeLeft(e,r){r.push(new Zf(e-1),null)}decomposeRight(e,r){r.push(null,new Zf(this.length-e-1))}updateHeight(e,r=0,a=!1,i){let d=r+this.length;if(i&&i.from<=r+this.length&&i.more){let f=[],m=Math.max(r,i.from),u=-1;for(i.from>r&&f.push(new Zf(i.from-r-1).updateHeight(e,r));m<=d&&i.more;){let v=e.doc.lineAt(m).length;f.length&&f.push(null);let y=i.heights[i.index++];u==-1?u=y:Math.abs(y-u)>=LZ&&(u=-2);let b=new rg(v,y);b.outdated=!1,f.push(b),m+=v+1}m<=d&&f.push(null,new Zf(d-m).updateHeight(e,m));let p=fh.of(f);return(u<0||Math.abs(p.height-this.height)>=LZ||Math.abs(u-this.heightMetrics(e,r).perLine)>=LZ)&&(e.heightChanged=!0),p}else(a||this.outdated)&&(this.setHeight(e,e.heightForGap(r,r+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Z3e extends fh{constructor(e,r,a){super(e.length+r+a.length,e.height+a.height,r|(e.outdated||a.outdated?2:0)),this.left=e,this.right=a,this.size=e.size+a.size}get break(){return this.flags&1}blockAt(e,r,a,i){let d=a+this.left.height;return em))return p;let v=r==Nl.ByPosNoHeight?Nl.ByPosNoHeight:Nl.ByPos;return u?p.join(this.right.lineAt(m,v,a,f,m)):this.left.lineAt(m,v,a,i,d).join(p)}forEachLine(e,r,a,i,d,f){let m=i+this.left.height,u=d+this.left.length+this.break;if(this.break)e=u&&this.right.forEachLine(e,r,a,m,u,f);else{let p=this.lineAt(u,Nl.ByPos,a,i,d);e=e&&p.from<=r&&f(p),r>p.to&&this.right.forEachLine(p.to+1,r,a,m,u,f)}}replace(e,r,a){let i=this.left.length+this.break;if(rthis.left.length)return this.balanced(this.left,this.right.replace(e-i,r-i,a));let d=[];e>0&&this.decomposeLeft(e,d);let f=d.length;for(let m of a)d.push(m);if(e>0&&Rfe(d,f-1),r=a&&r.push(null)),e>a&&this.right.decomposeLeft(e-a,r)}decomposeRight(e,r){let a=this.left.length,i=a+this.break;if(e>=i)return this.right.decomposeRight(e-i,r);e2*r.size||r.size>2*e.size?fh.of(this.break?[e,null,r]:[e,r]):(this.left=e,this.right=r,this.height=e.height+r.height,this.outdated=e.outdated||r.outdated,this.size=e.size+r.size,this.length=e.length+this.break+r.length,this)}updateHeight(e,r=0,a=!1,i){let{left:d,right:f}=this,m=r+d.length+this.break,u=null;return i&&i.from<=r+d.length&&i.more?u=d=d.updateHeight(e,r,a,i):d.updateHeight(e,r,a),i&&i.from<=m+f.length&&i.more?u=f=f.updateHeight(e,m,a,i):f.updateHeight(e,m,a),u?this.balanced(d,f):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Rfe(t,e){let r,a;t[e]==null&&(r=t[e-1])instanceof Zf&&(a=t[e+1])instanceof Zf&&t.splice(e-1,3,new Zf(r.length+1+a.length))}const H3e=5;class Xae{constructor(e,r){this.pos=e,this.oracle=r,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,r){if(this.lineStart>-1){let a=Math.min(r,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof rg?i.length+=a-this.pos:(a>this.pos||!this.isCovered)&&this.nodes.push(new rg(a-this.pos,-1)),this.writtenTo=a,r>a&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=r}point(e,r,a){if(e=H3e)&&this.addLineDeco(i,d,f)}else r>e&&this.span(e,r);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:r}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=r,this.writtenToe&&this.nodes.push(new rg(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,r){let a=new Zf(r-e);return this.oracle.doc.lineAt(e).to==r&&(a.flags|=4),a}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof rg)return e;let r=new rg(0,-1);return this.nodes.push(r),r}addBlock(e){this.enterLine();let r=e.deco;r&&r.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,r&&r.endSide>0&&(this.covering=e)}addLineDeco(e,r,a){let i=this.ensureLine();i.length+=a,i.collapsed+=a,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=r,this.writtenTo=this.pos=this.pos+a}finish(e){let r=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(r instanceof rg)&&!this.isCovered?this.nodes.push(new rg(0,-1)):(this.writtenTov.clientHeight||v.scrollWidth>v.clientWidth)&&y.overflow!="visible"){let b=v.getBoundingClientRect();d=Math.max(d,b.left),f=Math.min(f,b.right),m=Math.max(m,b.top),u=p==t.parentNode?b.bottom:Math.min(u,b.bottom)}p=y.position=="absolute"||y.position=="fixed"?v.offsetParent:v.parentNode}else if(p.nodeType==11)p=p.host;else break;return{left:d-r.left,right:Math.max(d,f)-r.left,top:m-(r.top+e),bottom:Math.max(m,u)-(r.top+e)}}function X3e(t,e){let r=t.getBoundingClientRect();return{left:0,right:r.right-r.left,top:e,bottom:r.bottom-(r.top+e)}}class Cre{constructor(e,r,a){this.from=e,this.to=r,this.size=a}static same(e,r){if(e.length!=r.length)return!1;for(let a=0;atypeof a!="function"&&a.class=="cm-lineWrapping");this.heightOracle=new V3e(r),this.stateDeco=e.facet(n$).filter(a=>typeof a!="function"),this.heightMap=fh.empty().applyChanges(this.stateDeco,Oi.empty,this.heightOracle.setDoc(e.doc),[new kp(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Bs.set(this.lineGaps.map(a=>a.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:r}=this.state.selection;for(let a=0;a<=1;a++){let i=a?r.head:r.anchor;if(!e.some(({from:d,to:f})=>i>=d&&i<=f)){let{from:d,to:f}=this.lineBlockAt(i);e.push(new jz(d,f))}}this.viewports=e.sort((a,i)=>a.from-i.from),this.scaler=this.heightMap.height<=7e6?$fe:new K3e(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(this.scaler.scale==1?e:AD(e,this.scaler))})}update(e,r=null){this.state=e.state;let a=this.stateDeco;this.stateDeco=this.state.facet(n$).filter(v=>typeof v!="function");let i=e.changedRanges,d=kp.extendWithRanges(i,U3e(a,this.stateDeco,e?e.changes:Iu.empty(this.state.doc.length))),f=this.heightMap.height,m=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),d),this.heightMap.height!=f&&(e.flags|=2),m?(this.scrollAnchorPos=e.changes.mapPos(m.from,-1),this.scrollAnchorHeight=m.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let u=d.length?this.mapViewport(this.viewport,e.changes):this.viewport;(r&&(r.range.headu.to)||!this.viewportIsAppropriate(u))&&(u=this.getViewport(0,r));let p=!e.changes.empty||e.flags&2||u.from!=this.viewport.from||u.to!=this.viewport.to;this.viewport=u,this.updateForViewport(),p&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),r&&(this.scrollTarget=r),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(ive)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let r=e.contentDOM,a=window.getComputedStyle(r),i=this.heightOracle,d=a.whiteSpace;this.defaultTextDirection=a.direction=="rtl"?gc.RTL:gc.LTR;let f=this.heightOracle.mustRefreshForWrapping(d),m=r.getBoundingClientRect(),u=f||this.mustMeasureContent||this.contentDOMHeight!=m.height;this.contentDOMHeight=m.height,this.mustMeasureContent=!1;let p=0,v=0;if(m.width&&m.height){let I=m.width/r.offsetWidth,V=m.height/r.offsetHeight;(I>.995&&I<1.005||!isFinite(I)||Math.abs(m.width-r.offsetWidth)<1)&&(I=1),(V>.995&&V<1.005||!isFinite(V)||Math.abs(m.height-r.offsetHeight)<1)&&(V=1),(this.scaleX!=I||this.scaleY!=V)&&(this.scaleX=I,this.scaleY=V,p|=8,f=u=!0)}let y=(parseInt(a.paddingTop)||0)*this.scaleY,b=(parseInt(a.paddingBottom)||0)*this.scaleY;(this.paddingTop!=y||this.paddingBottom!=b)&&(this.paddingTop=y,this.paddingBottom=b,p|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(u=!0),this.editorWidth=e.scrollDOM.clientWidth,p|=8);let x=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=x&&(this.scrollAnchorHeight=-1,this.scrollTop=x),this.scrolledToBottom=Hpe(e.scrollDOM);let k=(this.printing?X3e:Y3e)(r,this.paddingTop),C=k.top-this.pixelViewport.top,w=k.bottom-this.pixelViewport.bottom;this.pixelViewport=k;let T=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(T!=this.inView&&(this.inView=T,T&&(u=!0)),!this.inView&&!this.scrollTarget)return 0;let R=m.width;if((this.contentDOMWidth!=R||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=m.width,this.editorHeight=e.scrollDOM.clientHeight,p|=8),u){let I=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(I)&&(f=!0),f||i.lineWrapping&&Math.abs(R-this.contentDOMWidth)>i.charWidth){let{lineHeight:V,charWidth:N,textHeight:F}=e.docView.measureTextSize();f=V>0&&i.refresh(d,V,N,F,R/N,I),f&&(e.docView.minWidth=0,p|=8)}C>0&&w>0?v=Math.max(C,w):C<0&&w<0&&(v=Math.min(C,w)),i.heightChanged=!1;for(let V of this.viewports){let N=V.from==this.viewport.from?I:e.docView.measureVisibleLineHeights(V);this.heightMap=(f?fh.empty().applyChanges(this.stateDeco,Oi.empty,this.heightOracle,[new kp(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,f,new z3e(V.from,N))}i.heightChanged&&(p|=2)}let M=!this.viewportIsAppropriate(this.viewport,v)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return M&&(this.viewport=this.getViewport(v,this.scrollTarget)),this.updateForViewport(),(p&2||M)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(f?[]:this.lineGaps,e)),p|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),p}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,r){let a=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,d=this.heightOracle,{visibleTop:f,visibleBottom:m}=this,u=new jz(i.lineAt(f-a*1e3,Nl.ByHeight,d,0,0).from,i.lineAt(m+(1-a)*1e3,Nl.ByHeight,d,0,0).to);if(r){let{head:p}=r.range;if(pu.to){let v=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),y=i.lineAt(p,Nl.ByPos,d,0,0),b;r.y=="center"?b=(y.top+y.bottom)/2-v/2:r.y=="start"||r.y=="nearest"&&p=m+Math.max(10,Math.min(a,250)))&&i>f-2*1e3&&d>1,f=i<<1;if(this.defaultTextDirection!=gc.LTR&&!a)return[];let m=[],u=(p,v,y,b)=>{if(v-pp&&ww.from>=y.from&&w.to<=y.to&&Math.abs(w.from-p)w.fromT));if(!C){if(vw.from<=v&&w.to>=v)){let w=r.moveToLineBoundary(Tr.cursor(v),!1,!0).head;w>p&&(v=w)}C=new Cre(p,v,this.gapSize(y,p,v,b))}m.push(C)};for(let p of this.viewportLines){if(p.lengthp.from&&u(p.from,b,p,v),xr.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let r=[];ji.spans(e,this.viewport.from,this.viewport.to,{span(i,d){r.push({from:i,to:d})},point(){}},20);let a=r.length!=this.visibleRanges.length||this.visibleRanges.some((i,d)=>i.from!=r[d].from||i.to!=r[d].to);return this.visibleRanges=r,a?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(r=>r.from<=e&&r.to>=e)||AD(this.heightMap.lineAt(e,Nl.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return AD(this.heightMap.lineAt(this.scaler.fromDOM(e),Nl.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let r=this.lineBlockAtHeight(e+8);return r.from>=this.viewport.from||this.viewportLines[0].top-e>200?r:this.viewportLines[0]}elementAtHeight(e){return AD(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class jz{constructor(e,r){this.from=e,this.to=r}}function j3e(t,e,r){let a=[],i=t,d=0;return ji.spans(r,t,e,{span(){},point(f,m){f>i&&(a.push({from:i,to:f}),d+=f-i),i=m}},20),i=1)return e[e.length-1].to;let a=Math.floor(t*r);for(let i=0;;i++){let{from:d,to:f}=e[i],m=f-d;if(a<=m)return d+a;a-=m}}function Kz(t,e){let r=0;for(let{from:a,to:i}of t.ranges){if(e<=i){r+=e-a;break}r+=i-a}return r/t.total}function q3e(t,e){for(let r of t)if(e(r))return r}const $fe={toDOM(t){return t},fromDOM(t){return t},scale:1};class K3e{constructor(e,r,a){let i=0,d=0,f=0;this.viewports=a.map(({from:m,to:u})=>{let p=r.lineAt(m,Nl.ByPos,e,0,0).top,v=r.lineAt(u,Nl.ByPos,e,0,0).bottom;return i+=v-p,{from:m,to:u,top:p,bottom:v,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(r.height-i);for(let m of this.viewports)m.domTop=f+(m.top-d)*this.scale,f=m.domBottom=m.domTop+(m.bottom-m.top),d=m.bottom}toDOM(e){for(let r=0,a=0,i=0;;r++){let d=rAD(i,e)):t._content)}const Jz=ss.define({combine:t=>t.join(" ")}),cse=ss.define({combine:t=>t.indexOf(!0)>-1}),use=xS.newName(),Eve=xS.newName(),_ve=xS.newName(),Rve={"&light":"."+Eve,"&dark":"."+_ve};function fse(t,e,r){return new xS(e,{finish(a){return/&/.test(a)?a.replace(/&\w*/,i=>{if(i=="&")return t;if(!r||!r[i])throw new RangeError(`Unsupported selector: ${i}`);return r[i]}):t+" "+a}})}const J3e=fse("."+use,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Rve),PD="￿";class eCe{constructor(e,r){this.points=e,this.text="",this.lineSeparator=r.facet(Ia.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=PD}readRange(e,r){if(!e)return this;let a=e.parentNode;for(let i=e;;){this.findPointBefore(a,i);let d=this.text.length;this.readNode(i);let f=i.nextSibling;if(f==r)break;let m=Ql.get(i),u=Ql.get(f);(m&&u?m.breakAfter:(m?m.breakAfter:Lfe(i))||Lfe(f)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>d)&&this.lineBreak(),i=f}return this.findPointBefore(a,r),this}readTextNode(e){let r=e.nodeValue;for(let a of this.points)a.node==e&&(a.pos=this.text.length+Math.min(a.offset,r.length));for(let a=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let d=-1,f=1,m;if(this.lineSeparator?(d=r.indexOf(this.lineSeparator,a),f=this.lineSeparator.length):(m=i.exec(r))&&(d=m.index,f=m[0].length),this.append(r.slice(a,d<0?r.length:d)),d<0)break;if(this.lineBreak(),f>1)for(let u of this.points)u.node==e&&u.pos>this.text.length&&(u.pos-=f-1);a=d+f}}readNode(e){if(e.cmIgnore)return;let r=Ql.get(e),a=r&&r.overrideDOMText;if(a!=null){this.findPointInside(e,a.length);for(let i=a.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,r){for(let a of this.points)a.node==e&&e.childNodes[a.offset]==r&&(a.pos=this.text.length)}findPointInside(e,r){for(let a of this.points)(e.nodeType==3?a.node==e:e.contains(a.node))&&(a.pos=this.text.length+(tCe(e,a.node,a.offset)?r:0))}}function tCe(t,e,r){for(;;){if(!e||r-1)this.newSel=null;else if(r>-1&&(this.bounds=e.docView.domBoundsAround(r,a,0))){let m=d||f?[]:sCe(e),u=new eCe(m,e.state);u.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=u.text,this.newSel=aCe(m,this.bounds.from)}else{let m=e.observer.selectionRange,u=d&&d.node==m.focusNode&&d.offset==m.focusOffset||!Goe(e.contentDOM,m.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(m.focusNode,m.focusOffset),p=f&&f.node==m.anchorNode&&f.offset==m.anchorOffset||!Goe(e.contentDOM,m.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(m.anchorNode,m.anchorOffset);this.newSel=Tr.single(p,u)}}}function Dve(t,e){let r,{newSel:a}=e,i=t.state.selection.main,d=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:f,to:m}=e.bounds,u=i.from,p=null;(d===8||us.android&&e.text.length=i.from&&r.to<=i.to&&(r.from!=i.from||r.to!=i.to)&&i.to-i.from-(r.to-r.from)<=4?r={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,r.from).append(r.insert).append(t.state.doc.slice(r.to,i.to))}:(us.mac||us.android)&&r&&r.from==r.to&&r.from==i.head-1&&/^\. ?$/.test(r.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(a&&r.insert.length==2&&(a=Tr.single(a.main.anchor-1,a.main.head-1)),r={from:i.from,to:i.to,insert:Oi.of([" "])}):us.chrome&&r&&r.from==r.to&&r.from==i.head&&r.insert.toString()==` + `&&t.lineWrapping&&(a&&(a=Tr.single(a.main.anchor-1,a.main.head-1)),r={from:i.from,to:i.to,insert:Oi.of([" "])}),r){if(us.ios&&t.inputState.flushIOSKey()||us.android&&(r.from==i.from&&r.to==i.to&&r.insert.length==1&&r.insert.lines==2&&XP(t.contentDOM,"Enter",13)||(r.from==i.from-1&&r.to==i.to&&r.insert.length==0||d==8&&r.insert.lengthi.head)&&XP(t.contentDOM,"Backspace",8)||r.from==i.from&&r.to==i.to+1&&r.insert.length==0&&XP(t.contentDOM,"Delete",46)))return!0;let f=r.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let m,u=()=>m||(m=rCe(t,r,a));return t.state.facet(ove).some(p=>p(t,r.from,r.to,f,u))||t.dispatch(u()),!0}else if(a&&!a.main.eq(i)){let f=!1,m="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(f=!0),m=t.inputState.lastSelectionOrigin),t.dispatch({selection:a,scrollIntoView:f,userEvent:m}),!0}else return!1}function rCe(t,e,r){let a,i=t.state,d=i.selection.main;if(e.from>=d.from&&e.to<=d.to&&e.to-e.from>=(d.to-d.from)/3&&(!r||r.main.empty&&r.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let m=d.frome.to?i.sliceDoc(e.to,d.to):"";a=i.replaceSelection(t.state.toText(m+e.insert.sliceString(0,void 0,t.state.lineBreak)+u))}else{let m=i.changes(e),u=r&&r.main.to<=m.newLength?r.main:void 0;if(i.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=d.to&&e.to>=d.to-10){let p=t.state.sliceDoc(e.from,e.to),v,y=r&&vve(t,r.main.head);if(y){let k=e.insert.length-(e.to-e.from);v={from:y.from,to:y.to-k}}else v=t.state.doc.lineAt(d.head);let b=d.to-e.to,x=d.to-d.from;a=i.changeByRange(k=>{if(k.from==d.from&&k.to==d.to)return{changes:m,range:u||k.map(m)};let C=k.to-b,w=C-p.length;if(k.to-k.from!=x||t.state.sliceDoc(w,C)!=p||k.to>=v.from&&k.from<=v.to)return{range:k};let T=i.changes({from:w,to:C,insert:e.insert}),R=k.to-d.to;return{changes:T,range:u?Tr.range(Math.max(0,u.anchor+R),Math.max(0,u.head+R)):k.map(T)}})}else a={changes:m,selection:u&&i.selection.replaceRange(u)}}let f="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,f+=".compose",t.inputState.compositionFirstChange&&(f+=".start",t.inputState.compositionFirstChange=!1)),i.update(a,{userEvent:f,scrollIntoView:!0})}function oCe(t,e,r,a){let i=Math.min(t.length,e.length),d=0;for(;d0&&m>0&&t.charCodeAt(f-1)==e.charCodeAt(m-1);)f--,m--;if(a=="end"){let u=Math.max(0,d-Math.min(f,m));r-=f+u-d}if(f=f?d-r:0;d-=u,m=d+(m-f),f=d}else if(m=m?d-r:0;d-=u,f=d+(f-m),m=d}return{from:d,toA:f,toB:m}}function sCe(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:r,anchorOffset:a,focusNode:i,focusOffset:d}=t.observer.selectionRange;return r&&(e.push(new Ife(r,a)),(i!=r||d!=a)&&e.push(new Ife(i,d))),e}function aCe(t,e){if(t.length==0)return null;let r=t[0].pos,a=t.length==2?t[1].pos:r;return r>-1&&a>-1?Tr.single(r+e,a+e):null}const iCe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},kre=us.ie&&us.ie_version<=11;class lCe{constructor(e){this.view=e,this.active=!1,this.selectionRange=new UTe,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(r=>{for(let a of r)this.queue.push(a);(us.ie&&us.ie_version<=11||us.ios&&e.composing)&&r.some(a=>a.type=="childList"&&a.removedNodes.length||a.type=="characterData"&&a.oldValue.length>a.target.nodeValue.length)?this.flushSoon():this.flush()}),kre&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var r;((r=this.view.docView)===null||r===void 0?void 0:r.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),r.length>0&&r[r.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(r=>{r.length>0&&r[r.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((r,a)=>r!=e[a]))){this.gapIntersection.disconnect();for(let r of e)this.gapIntersection.observe(r);this.gaps=e}}onSelectionChange(e){let r=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:a}=this,i=this.selectionRange;if(a.state.facet(mU)?a.root.activeElement!=this.dom:!DZ(a.dom,i))return;let d=i.anchorNode&&a.docView.nearest(i.anchorNode);if(d&&d.ignoreEvent(e)){r||(this.selectionChanged=!1);return}(us.ie&&us.ie_version<=11||us.android&&us.chrome)&&!a.state.selection.main.empty&&i.focusNode&&oH(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,r=us.safari&&e.root.nodeType==11&&VTe(this.dom.ownerDocument)==this.dom&&cCe(this.view)||rH(e.root);if(!r||this.selectionRange.eq(r))return!1;let a=DZ(this.dom,r);return a&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let d=this.delayedAndroidKey;d&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=d.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&d.force&&XP(this.dom,d.key,d.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:r,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let r=-1,a=-1,i=!1;for(let d of e){let f=this.readMutation(d);f&&(f.typeOver&&(i=!0),r==-1?{from:r,to:a}=f:(r=Math.min(f.from,r),a=Math.max(f.to,a)))}return{from:r,to:a,typeOver:i}}readChange(){let{from:e,to:r,typeOver:a}=this.processRecords(),i=this.selectionChanged&&DZ(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let d=new nCe(this.view,e,r,a);return this.view.docView.domChanged={newSel:d.newSel?d.newSel.main:null},d}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let r=this.readChange();if(!r)return this.view.requestMeasure(),!1;let a=this.view.state,i=Dve(this.view,r);return this.view.state==a&&this.view.update([]),i}readMutation(e){let r=this.view.docView.nearest(e.target);if(!r||r.ignoreMutation(e))return null;if(r.markDirty(e.type=="attributes"),e.type=="attributes"&&(r.flags|=4),e.type=="childList"){let a=Nfe(r,e.previousSibling||e.target.previousSibling,-1),i=Nfe(r,e.nextSibling||e.target.nextSibling,1);return{from:a?r.posAfter(a):r.posAtStart,to:i?r.posBefore(i):r.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,r,a;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(r=this.gapIntersection)===null||r===void 0||r.disconnect(),(a=this.resizeScroll)===null||a===void 0||a.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Nfe(t,e,r){for(;e;){let a=Ql.get(e);if(a&&a.parent==t)return a;let i=e.parentNode;e=i!=t.dom?i:r>0?e.nextSibling:e.previousSibling}return null}function cCe(t){let e=null;function r(u){u.preventDefault(),u.stopImmediatePropagation(),e=u.getTargetRanges()[0]}if(t.contentDOM.addEventListener("beforeinput",r,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",r,!0),!e)return null;let a=e.startContainer,i=e.startOffset,d=e.endContainer,f=e.endOffset,m=t.docView.domAtPos(t.state.selection.main.anchor);return oH(m.node,m.offset,d,f)&&([a,i,d,f]=[d,f,a,i]),{anchorNode:a,anchorOffset:i,focusNode:d,focusOffset:f}}class Xo{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:r}=e;this.dispatchTransactions=e.dispatchTransactions||r&&(a=>a.forEach(i=>r(i,this)))||(a=>this.update(a)),this.dispatch=this.dispatch.bind(this),this._root=e.root||WTe(e.parent)||document,this.viewState=new Dfe(e.state||Ia.create(e)),e.scrollTo&&e.scrollTo.is(Yz)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(CD).map(a=>new Sre(a));for(let a of this.plugins)a.update(this);this.observer=new lCe(this),this.inputState=new T3e(this),this.inputState.ensureHandlers(this.plugins),this.docView=new gfe(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(...e){let r=e.length==1&&e[0]instanceof Bu?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(r,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let r=!1,a=!1,i,d=this.state;for(let b of e){if(b.startState!=d)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");d=b.state}if(this.destroyed){this.viewState.state=d;return}let f=this.hasFocus,m=0,u=null;e.some(b=>b.annotation(kve))?(this.inputState.notifiedFocused=f,m=1):f!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=f,u=Ave(d,f),u||(m=1));let p=this.observer.delayedAndroidKey,v=null;if(p?(this.observer.clearDelayedAndroidKey(),v=this.observer.readChange(),(v&&!this.state.doc.eq(d.doc)||!this.state.selection.eq(d.selection))&&(v=null)):this.observer.clear(),d.facet(Ia.phrases)!=this.state.facet(Ia.phrases))return this.setState(d);i=sH.create(this,d,e),i.flags|=m;let y=this.viewState.scrollTarget;try{this.updateState=2;for(let b of e){if(y&&(y=y.map(b.changes)),b.scrollIntoView){let{main:x}=b.state.selection;y=new GP(x.empty?x:Tr.cursor(x.head,x.head>x.anchor?-1:1))}for(let x of b.effects)x.is(Yz)&&(y=x.value.clip(this.state))}this.viewState.update(i,y),this.bidiCache=aH.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),r=this.docView.update(i),this.state.facet(kD)!=this.styleModules&&this.mountStyles(),a=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(r,e.some(b=>b.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(Jz)!=i.state.facet(Jz)&&(this.viewState.mustMeasureContent=!0),(r||a||y||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let b of this.state.facet(nse))try{b(i)}catch(x){Cp(this.state,x,"update listener")}(u||v)&&Promise.resolve().then(()=>{u&&this.state==u.startState&&this.dispatch(u),v&&!Dve(this,v)&&p.force&&XP(this.contentDOM,p.key,p.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let r=this.hasFocus;try{for(let a of this.plugins)a.destroy(this);this.viewState=new Dfe(e),this.plugins=e.facet(CD).map(a=>new Sre(a)),this.pluginMap.clear();for(let a of this.plugins)a.update(this);this.docView.destroy(),this.docView=new gfe(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}r&&this.focus(),this.requestMeasure()}updatePlugins(e){let r=e.startState.facet(CD),a=e.state.facet(CD);if(r!=a){let i=[];for(let d of a){let f=r.indexOf(d);if(f<0)i.push(new Sre(d));else{let m=this.plugins[f];m.mustUpdate=e,i.push(m)}}for(let d of this.plugins)d.mustUpdate!=e&&d.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let r=null,a=this.scrollDOM,i=a.scrollTop*this.scaleY,{scrollAnchorPos:d,scrollAnchorHeight:f}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(f=-1),this.viewState.scrollAnchorHeight=-1;try{for(let m=0;;m++){if(f<0)if(Hpe(a))d=-1,f=this.viewState.heightMap.height;else{let x=this.viewState.scrollAnchorAt(i);d=x.from,f=x.top}this.updateState=1;let u=this.viewState.measure(this);if(!u&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(m>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let p=[];u&4||([this.measureRequests,p]=[p,this.measureRequests]);let v=p.map(x=>{try{return x.read(this)}catch(k){return Cp(this.state,k),Bfe}}),y=sH.create(this,this.state,[]),b=!1;y.flags|=u,r?r.flags|=u:r=y,this.updateState=2,y.empty||(this.updatePlugins(y),this.inputState.update(y),this.updateAttrs(),b=this.docView.update(y));for(let x=0;x1||k<-1){i=i+k,a.scrollTop=i/this.scaleY,f=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(r&&!r.empty)for(let m of this.state.facet(nse))m(r)}get themeClasses(){return use+" "+(this.state.facet(cse)?_ve:Eve)+" "+this.state.facet(Jz)}updateAttrs(){let e=Qfe(this,lve,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),r={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(mU)?"true":"false",class:"cm-content",style:`${us.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(r["aria-readonly"]="true"),Qfe(this,Wae,r);let a=this.observer.ignore(()=>{let i=ese(this.contentDOM,this.contentAttrs,r),d=ese(this.dom,this.editorAttrs,e);return i||d});return this.editorAttrs=e,this.contentAttrs=r,a}showAnnouncements(e){let r=!0;for(let a of e)for(let i of a.effects)if(i.is(Xo.announce)){r&&(this.announceDOM.textContent=""),r=!1;let d=this.announceDOM.appendChild(document.createElement("div"));d.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(kD);let e=this.state.facet(Xo.cspNonce);xS.mount(this.root,this.styleModules.concat(J3e).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let r=0;ra.spec==e)||null),r&&r.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,r,a){return Tre(this,e,xfe(this,e,r,a))}moveByGroup(e,r){return Tre(this,e,xfe(this,e,r,a=>S3e(this,e.head,a)))}moveToLineBoundary(e,r,a=!0){return x3e(this,e,r,a)}moveVertically(e,r,a){return Tre(this,e,w3e(this,e,r,a))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,r=0){return this.docView.posFromDOM(e,r)}posAtCoords(e,r=!0){return this.readMeasured(),bve(this,e,r)}coordsAtPos(e,r=1){this.readMeasured();let a=this.docView.coordsAt(e,r);if(!a||a.left==a.right)return a;let i=this.state.doc.lineAt(e),d=this.bidiSpans(i),f=d[dS.find(d,e-i.from,-1,r)];return dU(a,f.dir==gc.LTR==r>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(ave)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>uCe)return gve(e.length);let r=this.textDirectionAt(e.from),a;for(let d of this.bidiCache)if(d.from==e.from&&d.dir==r&&(d.fresh||mve(d.isolates,a=mfe(this,e.from,e.to))))return d.order;a||(a=mfe(this,e.from,e.to));let i=i3e(e.text,r,a);return this.bidiCache.push(new aH(e.from,e.to,r,a,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||us.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{zpe(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,r={}){return Yz.of(new GP(typeof e=="number"?Tr.cursor(e):e,r.y,r.x,r.yMargin,r.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:r}=this.scrollDOM,a=this.viewState.scrollAnchorAt(e);return Yz.of(new GP(Tr.cursor(a.from),"start","start",a.top-e,r,!0))}static domEventHandlers(e){return eu.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return eu.define(()=>({}),{eventObservers:e})}static theme(e,r){let a=xS.newName(),i=[Jz.of(a),kD.of(fse(`.${a}`,e))];return r&&r.dark&&i.push(cse.of(!0)),i}static baseTheme(e){return Mp.lowest(kD.of(fse("."+use,e,Rve)))}static findFromDOM(e){var r;let a=e.querySelector(".cm-content"),i=a&&Ql.get(a)||Ql.get(e);return((r=i==null?void 0:i.rootView)===null||r===void 0?void 0:r.view)||null}}Xo.styleModule=kD;Xo.inputHandler=ove;Xo.focusChangeEffect=sve;Xo.perLineTextDirection=ave;Xo.exceptionSink=rve;Xo.updateListener=nse;Xo.editable=mU;Xo.mouseSelectionStyle=nve;Xo.dragMovesSelection=tve;Xo.clickAddsSelectionRange=eve;Xo.decorations=n$;Xo.atomicRanges=Yae;Xo.bidiIsolatedRanges=cve;Xo.scrollMargins=uve;Xo.darkTheme=cse;Xo.cspNonce=ss.define({combine:t=>t.length?t[0]:""});Xo.contentAttributes=Wae;Xo.editorAttributes=lve;Xo.lineWrapping=Xo.contentAttributes.of({class:"cm-lineWrapping"});Xo.announce=pa.define();const uCe=4096,Bfe={};class aH{constructor(e,r,a,i,d,f){this.from=e,this.to=r,this.dir=a,this.isolates=i,this.fresh=d,this.order=f}static update(e,r){if(r.empty&&!e.some(d=>d.fresh))return e;let a=[],i=e.length?e[e.length-1].dir:gc.LTR;for(let d=Math.max(0,e.length-10);d=0;i--){let d=a[i],f=typeof d=="function"?d(t):d;f&&Joe(f,r)}return r}const fCe=us.mac?"mac":us.windows?"win":us.linux?"linux":"key";function dCe(t,e){const r=t.split(/-(?!$)/);let a=r[r.length-1];a=="Space"&&(a=" ");let i,d,f,m;for(let u=0;ua.concat(i),[]))),r}function mCe(t,e,r){return Lve($ve(t.state),e,t,r)}let cS=null;const gCe=4e3;function pCe(t,e=fCe){let r=Object.create(null),a=Object.create(null),i=(f,m)=>{let u=a[f];if(u==null)a[f]=m;else if(u!=m)throw new Error("Key binding "+f+" is used both as a regular binding and as a multi-stroke prefix")},d=(f,m,u,p,v)=>{var y,b;let x=r[f]||(r[f]=Object.create(null)),k=m.split(/ (?!$)/).map(T=>dCe(T,e));for(let T=1;T{let I=cS={view:M,prefix:R,scope:f};return setTimeout(()=>{cS==I&&(cS=null)},gCe),!0}]})}let C=k.join(" ");i(C,!1);let w=x[C]||(x[C]={preventDefault:!1,stopPropagation:!1,run:((b=(y=x._any)===null||y===void 0?void 0:y.run)===null||b===void 0?void 0:b.slice())||[]});u&&w.run.push(u),p&&(w.preventDefault=!0),v&&(w.stopPropagation=!0)};for(let f of t){let m=f.scope?f.scope.split(" "):["editor"];if(f.any)for(let p of m){let v=r[p]||(r[p]=Object.create(null));v._any||(v._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let y in v)v[y].run.push(f.any)}let u=f[e]||f.key;if(u)for(let p of m)d(p,u,f.run,f.preventDefault,f.stopPropagation),f.shift&&d(p,"Shift-"+u,f.shift,f.preventDefault,f.stopPropagation)}return r}function Lve(t,e,r,a){let i=FTe(e),d=Uf(i,0),f=vp(d)==i.length&&i!=" ",m="",u=!1,p=!1,v=!1;cS&&cS.view==r&&cS.scope==a&&(m=cS.prefix+" ",xve.indexOf(e.keyCode)<0&&(p=!0,cS=null));let y=new Set,b=w=>{if(w){for(let T of w.run)if(!y.has(T)&&(y.add(T),T(r,e)))return w.stopPropagation&&(v=!0),!0;w.preventDefault&&(w.stopPropagation&&(v=!0),p=!0)}return!1},x=t[a],k,C;return x&&(b(x[m+eZ(i,e,!f)])?u=!0:f&&(e.altKey||e.metaKey||e.ctrlKey)&&!(us.windows&&e.ctrlKey&&e.altKey)&&(k=SS[e.keyCode])&&k!=i?(b(x[m+eZ(k,e,!0)])||e.shiftKey&&(C=e$[e.keyCode])!=i&&C!=k&&b(x[m+eZ(C,e,!1)]))&&(u=!0):f&&e.shiftKey&&b(x[m+eZ(i,e,!0)])&&(u=!0),!u&&b(x._any)&&(u=!0)),p&&(u=!0),u&&v&&e.stopPropagation(),u}class I${constructor(e,r,a,i,d){this.className=e,this.left=r,this.top=a,this.width=i,this.height=d}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,r){return r.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,r,a){if(a.empty){let i=e.coordsAtPos(a.head,a.assoc||1);if(!i)return[];let d=Ive(e);return[new I$(r,i.left-d.left,i.top-d.top,null,i.bottom-i.top)]}else return vCe(e,r,a)}}function Ive(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==gc.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function Vfe(t,e,r){let a=Tr.cursor(e);return{from:Math.max(r.from,t.moveToLineBoundary(a,!1,!0).from),to:Math.min(r.to,t.moveToLineBoundary(a,!0,!0).from),type:uh.Text}}function vCe(t,e,r){if(r.to<=t.viewport.from||r.from>=t.viewport.to)return[];let a=Math.max(r.from,t.viewport.from),i=Math.min(r.to,t.viewport.to),d=t.textDirection==gc.LTR,f=t.contentDOM,m=f.getBoundingClientRect(),u=Ive(t),p=f.querySelector(".cm-line"),v=p&&window.getComputedStyle(p),y=m.left+(v?parseInt(v.paddingLeft)+Math.min(0,parseInt(v.textIndent)):0),b=m.right-(v?parseInt(v.paddingRight):0),x=ise(t,a),k=ise(t,i),C=x.type==uh.Text?x:null,w=k.type==uh.Text?k:null;if(C&&(t.lineWrapping||x.widgetLineBreaks)&&(C=Vfe(t,a,C)),w&&(t.lineWrapping||k.widgetLineBreaks)&&(w=Vfe(t,i,w)),C&&w&&C.from==w.from)return R(M(r.from,r.to,C));{let V=C?M(r.from,null,C):I(x,!1),N=w?M(null,r.to,w):I(k,!0),F=[];return(C||x).to<(w||k).from-(C&&w?1:0)||x.widgetLineBreaks>1&&V.bottom+t.defaultLineHeight/2E&&Y.from=L)break;fe>ie&&B(Math.max(q,ie),V==null&&q<=E,Math.min(fe,L),N==null&&fe>=W,ae.dir)}if(ie=me.to+1,ie>=L)break}return Q.length==0&&B(E,V==null,W,N==null,t.textDirection),{top:z,bottom:U,horizontal:Q}}function I(V,N){let F=m.top+(N?V.top:V.bottom);return{top:F,bottom:F,horizontal:[]}}}function yCe(t,e){return t.constructor==e.constructor&&t.eq(e)}class bCe{constructor(e,r){this.view=e,this.layer=r,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),r.above&&this.dom.classList.add("cm-layer-above"),r.class&&this.dom.classList.add(r.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),r.mount&&r.mount(this.dom,e)}update(e){e.startState.facet(IZ)!=e.state.facet(IZ)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let r=0,a=e.facet(IZ);for(;r!yCe(r,this.drawn[a]))){let r=this.dom.firstChild,a=0;for(let i of e)i.update&&r&&i.constructor&&this.drawn[a].constructor&&i.update(r,this.drawn[a])?(r=r.nextSibling,a++):this.dom.insertBefore(i.draw(),r);for(;r;){let i=r.nextSibling;r.remove(),r=i}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const IZ=ss.define();function Nve(t){return[eu.define(e=>new bCe(e,t)),IZ.of(t)]}const Bve=!us.ios,o$=ss.define({combine(t){return ry(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,r)=>Math.min(e,r),drawRangeCursor:(e,r)=>e||r})}});function OCe(t={}){return[o$.of(t),xCe,SCe,wCe,ive.of(!0)]}function Qve(t){return t.startState.facet(o$)!=t.state.facet(o$)}const xCe=Nve({above:!0,markers(t){let{state:e}=t,r=e.facet(o$),a=[];for(let i of e.selection.ranges){let d=i==e.selection.main;if(i.empty?!d||Bve:r.drawRangeCursor){let f=d?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",m=i.empty?i:Tr.cursor(i.head,i.head>i.anchor?-1:1);for(let u of I$.forRange(t,f,m))a.push(u)}}return a},update(t,e){t.transactions.some(a=>a.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let r=Qve(t);return r&&zfe(t.state,e),t.docChanged||t.selectionSet||r},mount(t,e){zfe(e.state,t)},class:"cm-cursorLayer"});function zfe(t,e){e.style.animationDuration=t.facet(o$).cursorBlinkRate+"ms"}const SCe=Nve({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:I$.forRange(t,"cm-selectionBackground",e)).reduce((e,r)=>e.concat(r))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||Qve(t)},class:"cm-selectionLayer"}),dse={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Bve&&(dse[".cm-line"].caretColor="transparent !important",dse[".cm-content"]={caretColor:"transparent !important"});const wCe=Mp.highest(Xo.theme(dse)),Fve=pa.define({map(t,e){return t==null?null:e.mapPos(t)}}),MD=xf.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((r,a)=>a.is(Fve)?a.value:r,t)}}),TCe=eu.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let r=t.state.field(MD);r==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(MD)!=r||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(MD),r=e!=null&&t.coordsAtPos(e);if(!r)return null;let a=t.scrollDOM.getBoundingClientRect();return{left:r.left-a.left+t.scrollDOM.scrollLeft*t.scaleX,top:r.top-a.top+t.scrollDOM.scrollTop*t.scaleY,height:r.bottom-r.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:r}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/r+"px",this.cursor.style.height=t.height/r+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(MD)!=t&&this.view.dispatch({effects:Fve.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function CCe(){return[MD,TCe]}function Zfe(t,e,r,a,i){e.lastIndex=0;for(let d=t.iterRange(r,a),f=r,m;!d.next().done;f+=d.value.length)if(!d.lineBreak)for(;m=e.exec(d.value);)i(f+m.index,m)}function kCe(t,e){let r=t.visibleRanges;if(r.length==1&&r[0].from==t.viewport.from&&r[0].to==t.viewport.to)return r;let a=[];for(let{from:i,to:d}of r)i=Math.max(t.state.doc.lineAt(i).from,i-e),d=Math.min(t.state.doc.lineAt(d).to,d+e),a.length&&a[a.length-1].to>=i?a[a.length-1].to=d:a.push({from:i,to:d});return a}class ACe{constructor(e){const{regexp:r,decoration:a,decorate:i,boundary:d,maxLength:f=1e3}=e;if(!r.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=r,i)this.addMatch=(m,u,p,v)=>i(v,p,p+m[0].length,m,u);else if(typeof a=="function")this.addMatch=(m,u,p,v)=>{let y=a(m,u,p);y&&v(p,p+m[0].length,y)};else if(a)this.addMatch=(m,u,p,v)=>v(p,p+m[0].length,a);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=d,this.maxLength=f}createDeco(e){let r=new OS,a=r.add.bind(r);for(let{from:i,to:d}of kCe(e,this.maxLength))Zfe(e.state.doc,this.regexp,i,d,(f,m)=>this.addMatch(m,e,f,a));return r.finish()}updateDeco(e,r){let a=1e9,i=-1;return e.docChanged&&e.changes.iterChanges((d,f,m,u)=>{u>e.view.viewport.from&&m1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,r.map(e.changes),a,i):r}updateRange(e,r,a,i){for(let d of e.visibleRanges){let f=Math.max(d.from,a),m=Math.min(d.to,i);if(m>f){let u=e.state.doc.lineAt(f),p=u.tou.from;f--)if(this.boundary.test(u.text[f-1-u.from])){v=f;break}for(;mb.push(T.range(C,w));if(u==p)for(this.regexp.lastIndex=v-u.from;(x=this.regexp.exec(u.text))&&x.indexthis.addMatch(w,e,C,k));r=r.update({filterFrom:v,filterTo:y,filter:(C,w)=>Cy,add:b})}}return r}}const hse=/x/.unicode!=null?"gu":"g",PCe=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,hse),MCe={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Are=null;function ECe(){var t;if(Are==null&&typeof document<"u"&&document.body){let e=document.body.style;Are=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Are||!1}const NZ=ss.define({combine(t){let e=ry(t,{render:null,specialChars:PCe,addSpecialChars:null});return(e.replaceTabs=!ECe())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,hse)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,hse)),e}});function _Ce(t={}){return[NZ.of(t),RCe()]}let Hfe=null;function RCe(){return Hfe||(Hfe=eu.fromClass(class{constructor(t){this.view=t,this.decorations=Bs.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(NZ)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new ACe({regexp:t.specialChars,decoration:(e,r,a)=>{let{doc:i}=r.state,d=Uf(e[0],0);if(d==9){let f=i.lineAt(a),m=r.state.tabSize,u=Fv(f.text,m,a-f.from);return Bs.replace({widget:new ICe((m-u%m)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[d]||(this.decorationCache[d]=Bs.replace({widget:new LCe(t,d)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(NZ);t.startState.facet(NZ)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const DCe="•";function $Ce(t){return t>=32?DCe:t==10?"␤":String.fromCharCode(9216+t)}class LCe extends oy{constructor(e,r){super(),this.options=e,this.code=r}eq(e){return e.code==this.code}toDOM(e){let r=$Ce(this.code),a=e.state.phrase("Control character")+" "+(MCe[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,a,r);if(i)return i;let d=document.createElement("span");return d.textContent=r,d.title=a,d.setAttribute("aria-label",a),d.className="cm-specialChar",d}ignoreEvent(){return!1}}class ICe extends oy{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function NCe(){return QCe}const BCe=Bs.line({class:"cm-activeLine"}),QCe=eu.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,r=[];for(let a of t.state.selection.ranges){let i=t.lineBlockAt(a.head);i.from>e&&(r.push(BCe.range(i.from)),e=i.from)}return Bs.set(r)}},{decorations:t=>t.decorations});class FCe extends oy{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let r=e.firstChild?oM(e.firstChild):[];if(!r.length)return null;let a=window.getComputedStyle(e.parentNode),i=dU(r[0],a.direction!="rtl"),d=parseInt(a.lineHeight);return i.bottom-i.top>d*1.5?{left:i.left,right:i.right,top:i.top,bottom:i.top+d}:i}ignoreEvent(){return!1}}function VCe(t){return eu.fromClass(class{constructor(e){this.view=e,this.placeholder=t?Bs.set([Bs.widget({widget:new FCe(t),side:1}).range(0)]):Bs.none}get decorations(){return this.view.state.doc.length?Bs.none:this.placeholder}},{decorations:e=>e.decorations})}const mse=2e3;function zCe(t,e,r){let a=Math.min(e.line,r.line),i=Math.max(e.line,r.line),d=[];if(e.off>mse||r.off>mse||e.col<0||r.col<0){let f=Math.min(e.off,r.off),m=Math.max(e.off,r.off);for(let u=a;u<=i;u++){let p=t.doc.line(u);p.length<=m&&d.push(Tr.range(p.from+f,p.to+m))}}else{let f=Math.min(e.col,r.col),m=Math.max(e.col,r.col);for(let u=a;u<=i;u++){let p=t.doc.line(u),v=Woe(p.text,f,t.tabSize,!0);if(v<0)d.push(Tr.cursor(p.to));else{let y=Woe(p.text,m,t.tabSize);d.push(Tr.range(p.from+v,p.from+y))}}}return d}function ZCe(t,e){let r=t.coordsAtPos(t.viewport.from);return r?Math.round(Math.abs((r.left-e)/t.defaultCharacterWidth)):-1}function Ufe(t,e){let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1),a=t.state.doc.lineAt(r),i=r-a.from,d=i>mse?-1:i==a.length?ZCe(t,e.clientX):Fv(a.text,t.state.tabSize,r-a.from);return{line:a.number,col:d,off:i}}function HCe(t,e){let r=Ufe(t,e),a=t.state.selection;return r?{update(i){if(i.docChanged){let d=i.changes.mapPos(i.startState.doc.line(r.line).from),f=i.state.doc.lineAt(d);r={line:f.number,col:r.col,off:Math.min(r.off,f.length)},a=a.map(i.changes)}},get(i,d,f){let m=Ufe(t,i);if(!m)return a;let u=zCe(t.state,r,m);return u.length?f?Tr.create(u.concat(a.ranges)):Tr.create(u):a}}:null}function UCe(t){let e=(t==null?void 0:t.eventFilter)||(r=>r.altKey&&r.button==0);return Xo.mouseSelectionStyle.of((r,a)=>e(a)?HCe(r,a):null)}const WCe={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},YCe={style:"cursor: crosshair"};function XCe(t={}){let[e,r]=WCe[t.key||"Alt"],a=eu.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==e||r(i))},keyup(i){(i.keyCode==e||!r(i))&&this.set(!1)},mousemove(i){this.set(r(i))}}});return[a,Xo.contentAttributes.of(i=>{var d;return!((d=i.plugin(a))===null||d===void 0)&&d.isDown?YCe:null})]}const dD="-10000px";class Vve{constructor(e,r,a){this.facet=r,this.createTooltipView=a,this.input=e.state.facet(r),this.tooltips=this.input.filter(i=>i),this.tooltipViews=this.tooltips.map(a)}update(e,r){var a;let i=e.state.facet(this.facet),d=i.filter(u=>u);if(i===this.input){for(let u of this.tooltipViews)u.update&&u.update(e);return!1}let f=[],m=r?[]:null;for(let u=0;ur[p]=u),r.length=m.length),this.input=i,this.tooltips=d,this.tooltipViews=f,!0}}function GCe(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const Pre=ss.define({combine:t=>{var e,r,a;return{position:us.ios?"absolute":((e=t.find(i=>i.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((r=t.find(i=>i.parent))===null||r===void 0?void 0:r.parent)||null,tooltipSpace:((a=t.find(i=>i.tooltipSpace))===null||a===void 0?void 0:a.tooltipSpace)||GCe}}}),Wfe=new WeakMap,Gae=eu.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(Pre);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Vve(t,jae,r=>this.createTooltip(r)),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(r=>{Date.now()>this.lastTransaction-50&&r.length>0&&r[r.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let r=e||t.geometryChanged,a=t.state.facet(Pre);if(a.position!=this.position&&!this.madeAbsolute){this.position=a.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;r=!0}if(a.parent!=this.parent){this.parent&&this.container.remove(),this.parent=a.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);r=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);r&&this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);if(e.dom.classList.add("cm-tooltip"),t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",e.dom.appendChild(r)}return e.dom.style.position=this.position,e.dom.style.top=dD,e.dom.style.left="0px",this.container.appendChild(e.dom),e.mount&&e.mount(this.view),e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(t=r.destroy)===null||t===void 0||t.call(r);this.parent&&this.container.remove(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,r=1,a=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(us.gecko)a=i.offsetParent!=this.container.ownerDocument.body;else if(this.view.scaleX!=1||this.view.scaleY!=1)a=!0;else if(i.style.top==dD&&i.style.left=="0px"){let d=i.getBoundingClientRect();a=Math.abs(d.top+1e4)>1||Math.abs(d.left)>1}}if(a||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(e=i.width/this.parent.offsetWidth,r=i.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:r}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((i,d)=>{let f=this.manager.tooltipViews[d];return f.getCoords?f.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(Pre).tooltipSpace(this.view),scaleX:e,scaleY:r,makeAbsolute:a}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let m of this.manager.tooltipViews)m.dom.style.position="absolute"}let{editor:r,space:a,scaleX:i,scaleY:d}=t,f=[];for(let m=0;m=Math.min(r.bottom,a.bottom)||y.rightMath.min(r.right,a.right)+.1){v.style.top=dD;continue}let x=u.arrow?p.dom.querySelector(".cm-tooltip-arrow"):null,k=x?7:0,C=b.right-b.left,w=(e=Wfe.get(p))!==null&&e!==void 0?e:b.bottom-b.top,T=p.offset||qCe,R=this.view.textDirection==gc.LTR,M=b.width>a.right-a.left?R?a.left:a.right-b.width:R?Math.min(y.left-(x?14:0)+T.x,a.right-C):Math.max(a.left,y.left-C+(x?14:0)-T.x),I=this.above[m];!u.strictSide&&(I?y.top-(b.bottom-b.top)-T.ya.bottom)&&I==a.bottom-y.bottom>y.top-a.top&&(I=this.above[m]=!I);let V=(I?y.top-a.top:a.bottom-y.bottom)-k;if(VM&&z.topN&&(N=I?z.top-w-2-k:z.bottom+k+2);if(this.position=="absolute"?(v.style.top=(N-t.parent.top)/d+"px",v.style.left=(M-t.parent.left)/i+"px"):(v.style.top=N/d+"px",v.style.left=M/i+"px"),x){let z=y.left+(R?T.x:-T.x)-(M+14-7);x.style.left=z/i+"px"}p.overlap!==!0&&f.push({left:M,top:N,right:F,bottom:N+w}),v.classList.toggle("cm-tooltip-above",I),v.classList.toggle("cm-tooltip-below",!I),p.positioned&&p.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=dD}},{eventObservers:{scroll(){this.maybeMeasure()}}}),jCe=Xo.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),qCe={x:0,y:0},jae=ss.define({enables:[Gae,jCe]}),iH=ss.define();class gU{static create(e){return new gU(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Vve(e,iH,r=>this.createHostedView(r))}createHostedView(e){let r=e.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(r.dom),this.mounted&&r.mount&&r.mount(this.view),r}mount(e){for(let r of this.manager.tooltipViews)r.mount&&r.mount(e);this.mounted=!0}positioned(e){for(let r of this.manager.tooltipViews)r.positioned&&r.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let r of this.manager.tooltipViews)(e=r.destroy)===null||e===void 0||e.call(r)}passProp(e){let r;for(let a of this.manager.tooltipViews){let i=a[e];if(i!==void 0){if(r===void 0)r=i;else if(r!==i)return}}return r}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const KCe=jae.compute([iH],t=>{let e=t.facet(iH).filter(r=>r);return e.length===0?null:{pos:Math.min(...e.map(r=>r.pos)),end:Math.max(...e.map(r=>{var a;return(a=r.end)!==null&&a!==void 0?a:r.pos})),create:gU.create,above:e[0].above,arrow:e.some(r=>r.arrow)}});class JCe{constructor(e,r,a,i,d){this.view=e,this.source=r,this.field=a,this.setHover=i,this.hoverTime=d,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;em.bottom||r.xm.right+e.defaultCharacterWidth)return;let u=e.bidiSpans(e.state.doc.lineAt(i)).find(v=>v.from<=i&&v.to>=i),p=u&&u.dir==gc.RTL?-1:1;d=r.x{this.pending==m&&(this.pending=null,u&&e.dispatch({effects:this.setHover.of(u)}))},u=>Cp(e.state,u,"hover tooltip"))}else f&&e.dispatch({effects:this.setHover.of(f)})}get tooltip(){let e=this.view.plugin(Gae),r=e?e.manager.tooltips.findIndex(a=>a.create==gU.create):-1;return r>-1?e.manager.tooltipViews[r]:null}mousemove(e){var r;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:a,tooltip:i}=this;if(a&&i&&!eke(i.dom,e)||this.pending){let{pos:d}=a||this.pending,f=(r=a==null?void 0:a.end)!==null&&r!==void 0?r:d;(d==f?this.view.posAtCoords(this.lastMove)!=d:!tke(this.view,d,f,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:r}=this;if(r){let{tooltip:a}=this;a&&a.dom.contains(e.relatedTarget)?this.watchTooltipLeave(a.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(e){let r=a=>{e.removeEventListener("mouseleave",r),this.active&&!this.view.dom.contains(a.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};e.addEventListener("mouseleave",r)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const tZ=4;function eke(t,e){let r=t.getBoundingClientRect();return e.clientX>=r.left-tZ&&e.clientX<=r.right+tZ&&e.clientY>=r.top-tZ&&e.clientY<=r.bottom+tZ}function tke(t,e,r,a,i,d){let f=t.scrollDOM.getBoundingClientRect(),m=t.documentTop+t.documentPadding.top+t.contentHeight;if(f.left>a||f.righti||Math.min(f.bottom,m)=e&&u<=r}function nke(t,e={}){let r=pa.define(),a=xf.define({create(){return null},update(i,d){if(i&&(e.hideOnChange&&(d.docChanged||d.selection)||e.hideOn&&e.hideOn(d,i)))return null;if(i&&d.docChanged){let f=d.changes.mapPos(i.pos,-1,Yf.TrackDel);if(f==null)return null;let m=Object.assign(Object.create(null),i);m.pos=f,i.end!=null&&(m.end=d.changes.mapPos(i.end)),i=m}for(let f of d.effects)f.is(r)&&(i=f.value),f.is(rke)&&(i=null);return i},provide:i=>iH.from(i)});return[a,eu.define(i=>new JCe(i,t,a,r,e.hoverTime||300)),KCe]}function zve(t,e){let r=t.plugin(Gae);if(!r)return null;let a=r.manager.tooltips.indexOf(e);return a<0?null:r.manager.tooltipViews[a]}const rke=pa.define(),Yfe=ss.define({combine(t){let e,r;for(let a of t)e=e||a.topContainer,r=r||a.bottomContainer;return{topContainer:e,bottomContainer:r}}});function s$(t,e){let r=t.plugin(Zve),a=r?r.specs.indexOf(e):-1;return a>-1?r.panels[a]:null}const Zve=eu.fromClass(class{constructor(t){this.input=t.state.facet(a$),this.specs=this.input.filter(r=>r),this.panels=this.specs.map(r=>r(t));let e=t.state.facet(Yfe);this.top=new nZ(t,!0,e.topContainer),this.bottom=new nZ(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(r=>r.top)),this.bottom.sync(this.panels.filter(r=>!r.top));for(let r of this.panels)r.dom.classList.add("cm-panel"),r.mount&&r.mount()}update(t){let e=t.state.facet(Yfe);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new nZ(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new nZ(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let r=t.state.facet(a$);if(r!=this.input){let a=r.filter(u=>u),i=[],d=[],f=[],m=[];for(let u of a){let p=this.specs.indexOf(u),v;p<0?(v=u(t.view),m.push(v)):(v=this.panels[p],v.update&&v.update(t)),i.push(v),(v.top?d:f).push(v)}this.specs=a,this.panels=i,this.top.sync(d),this.bottom.sync(f);for(let u of m)u.dom.classList.add("cm-panel"),u.mount&&u.mount()}else for(let a of this.panels)a.update&&a.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>Xo.scrollMargins.of(e=>{let r=e.plugin(t);return r&&{top:r.top.scrollMargin(),bottom:r.bottom.scrollMargin()}})});class nZ{constructor(e,r,a){this.view=e,this.top=r,this.container=a,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let r of this.panels)r.destroy&&e.indexOf(r)<0&&r.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let r=this.container||this.view.dom;r.insertBefore(this.dom,this.top?r.firstChild:null)}let e=this.dom.firstChild;for(let r of this.panels)if(r.dom.parentNode==this.dom){for(;e!=r.dom;)e=Xfe(e);e=e.nextSibling}else this.dom.insertBefore(r.dom,e);for(;e;)e=Xfe(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Xfe(t){let e=t.nextSibling;return t.remove(),e}const a$=ss.define({enables:Zve});class xO extends _C{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}xO.prototype.elementClass="";xO.prototype.toDOM=void 0;xO.prototype.mapMode=Yf.TrackBefore;xO.prototype.startSide=xO.prototype.endSide=-1;xO.prototype.point=!0;const BZ=ss.define(),oke={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>ji.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},ND=ss.define();function ske(t){return[Hve(),ND.of(Object.assign(Object.assign({},oke),t))]}const gse=ss.define({combine:t=>t.some(e=>e)});function Hve(t){let e=[ake];return t&&t.fixed===!1&&e.push(gse.of(!0)),e}const ake=eu.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(ND).map(e=>new jfe(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(gse),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,r=t.view.viewport,a=Math.min(e.to,r.to)-Math.max(e.from,r.from);this.syncGutters(a<(r.to-r.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(gse)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let r=ji.iter(this.view.state.facet(BZ),this.view.viewport.from),a=[],i=this.gutters.map(d=>new ike(d,this.view.viewport,-this.view.documentPadding.top));for(let d of this.view.viewportLineBlocks)if(a.length&&(a=[]),Array.isArray(d.type)){let f=!0;for(let m of d.type)if(m.type==uh.Text&&f){pse(r,a,m.from);for(let u of i)u.line(this.view,m,a);f=!1}else if(m.widget)for(let u of i)u.widget(this.view,m)}else if(d.type==uh.Text){pse(r,a,d.from);for(let f of i)f.line(this.view,d,a)}else if(d.widget)for(let f of i)f.widget(this.view,d);for(let d of i)d.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(ND),r=t.state.facet(ND),a=t.docChanged||t.heightChanged||t.viewportChanged||!ji.eq(t.startState.facet(BZ),t.state.facet(BZ),t.view.viewport.from,t.view.viewport.to);if(e==r)for(let i of this.gutters)i.update(t)&&(a=!0);else{a=!0;let i=[];for(let d of r){let f=e.indexOf(d);f<0?i.push(new jfe(this.view,d)):(this.gutters[f].update(t),i.push(this.gutters[f]))}for(let d of this.gutters)d.dom.remove(),i.indexOf(d)<0&&d.destroy();for(let d of i)this.dom.appendChild(d.dom);this.gutters=i}return a}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Xo.scrollMargins.of(e=>{let r=e.plugin(t);return!r||r.gutters.length==0||!r.fixed?null:e.textDirection==gc.LTR?{left:r.dom.offsetWidth*e.scaleX}:{right:r.dom.offsetWidth*e.scaleX}})});function Gfe(t){return Array.isArray(t)?t:[t]}function pse(t,e,r){for(;t.value&&t.from<=r;)t.from==r&&e.push(t.value),t.next()}class ike{constructor(e,r,a){this.gutter=e,this.height=a,this.i=0,this.cursor=ji.iter(e.markers,r.from)}addElement(e,r,a){let{gutter:i}=this,d=(r.top-this.height)/e.scaleY,f=r.height/e.scaleY;if(this.i==i.elements.length){let m=new Uve(e,f,d,a);i.elements.push(m),i.dom.appendChild(m.dom)}else i.elements[this.i].update(e,f,d,a);this.height=r.bottom,this.i++}line(e,r,a){let i=[];pse(this.cursor,i,r.from),a.length&&(i=i.concat(a));let d=this.gutter.config.lineMarker(e,r,i);d&&i.unshift(d);let f=this.gutter;i.length==0&&!f.config.renderEmptyElements||this.addElement(e,r,i)}widget(e,r){let a=this.gutter.config.widgetMarker(e,r.widget,r);a&&this.addElement(e,r,[a])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let r=e.elements.pop();e.dom.removeChild(r.dom),r.destroy()}}}class jfe{constructor(e,r){this.view=e,this.config=r,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let a in r.domEventHandlers)this.dom.addEventListener(a,i=>{let d=i.target,f;if(d!=this.dom&&this.dom.contains(d)){for(;d.parentNode!=this.dom;)d=d.parentNode;let u=d.getBoundingClientRect();f=(u.top+u.bottom)/2}else f=i.clientY;let m=e.lineBlockAtHeight(f-e.documentTop);r.domEventHandlers[a](e,m,i)&&i.preventDefault()});this.markers=Gfe(r.markers(e)),r.initialSpacer&&(this.spacer=new Uve(e,0,0,[r.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let r=this.markers;if(this.markers=Gfe(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let a=e.view.viewport;return!ji.eq(this.markers,r,a.from,a.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class Uve{constructor(e,r,a,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,r,a,i)}update(e,r,a,i){this.height!=r&&(this.height=r,this.dom.style.height=r+"px"),this.above!=a&&(this.dom.style.marginTop=(this.above=a)?a+"px":""),lke(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,r){let a="cm-gutterElement",i=this.dom.firstChild;for(let d=0,f=0;;){let m=f,u=dd(m,u,p)||f(m,u,p):f}return a}})}});class Mre extends xO{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function Ere(t,e){return t.state.facet(QP).formatNumber(e,t.state)}const uke=ND.compute([QP],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(cke)},lineMarker(e,r,a){return a.some(i=>i.toDOM)?null:new Mre(Ere(e,e.state.doc.lineAt(r.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(QP)!=e.state.facet(QP),initialSpacer(e){return new Mre(Ere(e,qfe(e.state.doc.lines)))},updateSpacer(e,r){let a=Ere(r.view,qfe(r.view.state.doc.lines));return a==e.number?e:new Mre(a)},domEventHandlers:t.facet(QP).domEventHandlers}));function fke(t={}){return[QP.of(t),Hve(),uke]}function qfe(t){let e=9;for(;e{let e=[],r=-1;for(let a of t.selection.ranges){let i=t.doc.lineAt(a.head).from;i>r&&(r=i,e.push(dke.range(i)))}return ji.of(e)});function mke(){return hke}const Wve=1024;let gke=0,bp=class{constructor(e,r){this.from=e,this.to=r}};class ua{constructor(e={}){this.id=gke++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Fu.match(e)),r=>{let a=e(r);return a===void 0?null:[this,a]}}}ua.closedBy=new ua({deserialize:t=>t.split(" ")});ua.openedBy=new ua({deserialize:t=>t.split(" ")});ua.group=new ua({deserialize:t=>t.split(" ")});ua.contextHash=new ua({perNode:!0});ua.lookAhead=new ua({perNode:!0});ua.mounted=new ua({perNode:!0});class i${constructor(e,r,a){this.tree=e,this.overlay=r,this.parser=a}static get(e){return e&&e.props&&e.props[ua.mounted.id]}}const pke=Object.create(null);class Fu{constructor(e,r,a,i=0){this.name=e,this.props=r,this.id=a,this.flags=i}static define(e){let r=e.props&&e.props.length?Object.create(null):pke,a=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new Fu(e.name||"",r,e.id,a);if(e.props){for(let d of e.props)if(Array.isArray(d)||(d=d(i)),d){if(d[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");r[d[0].id]=d[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let r=this.prop(ua.group);return r?r.indexOf(e)>-1:!1}return this.id==e}static match(e){let r=Object.create(null);for(let a in e)for(let i of a.split(" "))r[i]=e[a];return a=>{for(let i=a.prop(ua.group),d=-1;d<(i?i.length:0);d++){let f=r[d<0?a.name:i[d]];if(f)return f}}}}Fu.none=new Fu("",Object.create(null),0,8);class N${constructor(e){this.types=e;for(let r=0;r0;for(let u=this.cursor(f|vl.IncludeAnonymous);;){let p=!1;if(u.from<=d&&u.to>=i&&(!m&&u.type.isAnonymous||r(u)!==!1)){if(u.firstChild())continue;p=!0}for(;p&&a&&(m||!u.type.isAnonymous)&&a(u),!u.nextSibling();){if(!u.parent())return;p=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let r in this.props)e.push([+r,this.props[r]]);return e}balance(e={}){return this.children.length<=8?this:Jae(Fu.none,this.children,this.positions,0,this.children.length,0,this.length,(r,a,i)=>new Fi(this.type,r,a,i,this.propValues),e.makeTree||((r,a,i)=>new Fi(Fu.none,r,a,i)))}static build(e){return Oke(e)}}Fi.empty=new Fi(Fu.none,[],[],0);class qae{constructor(e,r){this.buffer=e,this.index=r}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new qae(this.buffer,this.index)}}class TS{constructor(e,r,a){this.buffer=e,this.length=r,this.set=a}get type(){return Fu.none}toString(){let e=[];for(let r=0;r0));u=f[u+3]);return m}slice(e,r,a){let i=this.buffer,d=new Uint16Array(r-e),f=0;for(let m=e,u=0;m=e&&re;case 1:return r<=e&&a>e;case 2:return a>e;case 4:return!0}}function l$(t,e,r,a){for(var i;t.from==t.to||(r<1?t.from>=e:t.from>e)||(r>-1?t.to<=e:t.to0?m.length:-1;e!=p;e+=r){let v=m[e],y=u[e]+f.from;if(Yve(i,a,y,y+v.length)){if(v instanceof TS){if(d&vl.ExcludeBuffers)continue;let b=v.findChild(0,v.buffer.length,r,a-y,i);if(b>-1)return new U1(new vke(f,v,e,y),null,b)}else if(d&vl.IncludeAnonymous||!v.type.isAnonymous||Kae(v)){let b;if(!(d&vl.IgnoreMounts)&&(b=i$.get(v))&&!b.overlay)return new Ad(b.tree,y,e,f);let x=new Ad(v,y,e,f);return d&vl.IncludeAnonymous||!x.type.isAnonymous?x:x.nextChild(r<0?v.children.length-1:0,r,a,i)}}}if(d&vl.IncludeAnonymous||!f.type.isAnonymous||(f.index>=0?e=f.index+r:e=r<0?-1:f._parent._tree.children.length,f=f._parent,!f))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,r,a=0){let i;if(!(a&vl.IgnoreOverlays)&&(i=i$.get(this._tree))&&i.overlay){let d=e-this.from;for(let{from:f,to:m}of i.overlay)if((r>0?f<=d:f=d:m>d))return new Ad(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,r,a)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Jfe(t,e,r,a){let i=t.cursor(),d=[];if(!i.firstChild())return d;if(r!=null){for(;!i.type.is(r);)if(!i.nextSibling())return d}for(;;){if(a!=null&&i.type.is(a))return d;if(i.type.is(e)&&d.push(i.node),!i.nextSibling())return a==null?d:[]}}function vse(t,e,r=e.length-1){for(let a=t.parent;r>=0;a=a.parent){if(!a)return!1;if(!a.type.isAnonymous){if(e[r]&&e[r]!=a.name)return!1;r--}}return!0}class vke{constructor(e,r,a,i){this.parent=e,this.buffer=r,this.index=a,this.start=i}}class U1 extends Xve{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,r,a){super(),this.context=e,this._parent=r,this.index=a,this.type=e.buffer.set.types[e.buffer.buffer[a]]}child(e,r,a){let{buffer:i}=this.context,d=i.findChild(this.index+4,i.buffer[this.index+3],e,r-this.context.start,a);return d<0?null:new U1(this.context,this,d)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,r,a=0){if(a&vl.ExcludeBuffers)return null;let{buffer:i}=this.context,d=i.findChild(this.index+4,i.buffer[this.index+3],r>0?1:-1,e-this.context.start,r);return d<0?null:new U1(this.context,this,d)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,r=e.buffer[this.index+3];return r<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new U1(this.context,this._parent,r):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,r=this._parent?this._parent.index+4:0;return this.index==r?this.externalSibling(-1):new U1(this.context,this._parent,e.findChild(r,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],r=[],{buffer:a}=this.context,i=this.index+4,d=a.buffer[this.index+3];if(d>i){let f=a.buffer[this.index+1];e.push(a.slice(i,d,f)),r.push(0)}return new Fi(this.type,e,r,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Gve(t){if(!t.length)return null;let e=0,r=t[0];for(let d=1;dr.from||f.to=e){let m=new Ad(f.tree,f.overlay[0].from+d.from,-1,d);(i||(i=[a])).push(l$(m,e,r,!1))}}return i?Gve(i):a}class lH{get name(){return this.type.name}constructor(e,r=0){if(this.mode=r,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Ad)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let a=e._parent;a;a=a._parent)this.stack.unshift(a.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,r){this.index=e;let{start:a,buffer:i}=this.buffer;return this.type=r||i.set.types[i.buffer[e]],this.from=a+i.buffer[e+1],this.to=a+i.buffer[e+2],!0}yield(e){return e?e instanceof Ad?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,r,a){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,r,a,this.mode));let{buffer:i}=this.buffer,d=i.findChild(this.index+4,i.buffer[this.index+3],e,r-this.buffer.start,a);return d<0?!1:(this.stack.push(this.index),this.yieldBuf(d))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,r,a=this.mode){return this.buffer?a&vl.ExcludeBuffers?!1:this.enterChild(1,e,r):this.yield(this._tree.enter(e,r,a))}parent(){if(!this.buffer)return this.yieldNode(this.mode&vl.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&vl.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:r}=this.buffer,a=this.stack.length-1;if(e<0){let i=a<0?0:this.stack[a]+4;if(this.index!=i)return this.yieldBuf(r.findChild(i,this.index,-1,0,4))}else{let i=r.buffer[this.index+3];if(i<(a<0?r.buffer.length:r.buffer[this.stack[a]+3]))return this.yieldBuf(i)}return a<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let r,a,{buffer:i}=this;if(i){if(e>0){if(this.index-1)for(let d=r+e,f=e<0?-1:a._tree.children.length;d!=f;d+=e){let m=a._tree.children[d];if(this.mode&vl.IncludeAnonymous||m instanceof TS||!m.type.isAnonymous||Kae(m))return!1}return!0}move(e,r){if(r&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,r=0){for(;(this.from==this.to||(r<1?this.from>=e:this.from>e)||(r>-1?this.to<=e:this.to=0;){for(let f=e;f;f=f._parent)if(f.index==i){if(i==this.index)return f;r=f,a=d+1;break e}i=this.stack[--d]}for(let i=a;i=0;d--){if(d<0)return vse(this.node,e,i);let f=a[r.buffer[this.stack[d]]];if(!f.isAnonymous){if(e[i]&&e[i]!=f.name)return!1;i--}}return!0}}function Kae(t){return t.children.some(e=>e instanceof TS||!e.type.isAnonymous||Kae(e))}function Oke(t){var e;let{buffer:r,nodeSet:a,maxBufferLength:i=Wve,reused:d=[],minRepeatType:f=a.types.length}=t,m=Array.isArray(r)?new qae(r,r.length):r,u=a.types,p=0,v=0;function y(V,N,F,z,U,Q){let{id:B,start:E,end:W,size:Y}=m,ie=v;for(;Y<0;)if(m.next(),Y==-1){let fe=d[B];F.push(fe),z.push(E-V);return}else if(Y==-3){p=B;return}else if(Y==-4){v=B;return}else throw new RangeError(`Unrecognized record size: ${Y}`);let L=u[B],me,ae,q=E-V;if(W-E<=i&&(ae=w(m.pos-N,U))){let fe=new Uint16Array(ae.size-ae.skip),ee=m.pos-ae.size,be=fe.length;for(;m.pos>ee;)be=T(ae.start,fe,be);me=new TS(fe,W-ae.start,a),q=ae.start-V}else{let fe=m.pos-Y;m.next();let ee=[],be=[],Te=B>=f?B:-1,Be=0,ge=W;for(;m.pos>fe;)Te>=0&&m.id==Te&&m.size>=0?(m.end<=ge-i&&(k(ee,be,E,Be,m.end,ge,Te,ie),Be=ee.length,ge=m.end),m.next()):Q>2500?b(E,fe,ee,be):y(E,fe,ee,be,Te,Q+1);if(Te>=0&&Be>0&&Be-1&&Be>0){let ne=x(L);me=Jae(L,ee,be,0,ee.length,0,W-E,ne,ne)}else me=C(L,ee,be,W-E,ie-W)}F.push(me),z.push(q)}function b(V,N,F,z){let U=[],Q=0,B=-1;for(;m.pos>N;){let{id:E,start:W,end:Y,size:ie}=m;if(ie>4)m.next();else{if(B>-1&&W=0;Y-=3)E[ie++]=U[Y],E[ie++]=U[Y+1]-W,E[ie++]=U[Y+2]-W,E[ie++]=ie;F.push(new TS(E,U[2]-W,a)),z.push(W-V)}}function x(V){return(N,F,z)=>{let U=0,Q=N.length-1,B,E;if(Q>=0&&(B=N[Q])instanceof Fi){if(!Q&&B.type==V&&B.length==z)return B;(E=B.prop(ua.lookAhead))&&(U=F[Q]+B.length+E)}return C(V,N,F,z,U)}}function k(V,N,F,z,U,Q,B,E){let W=[],Y=[];for(;V.length>z;)W.push(V.pop()),Y.push(N.pop()+F-U);V.push(C(a.types[B],W,Y,Q-U,E-Q)),N.push(U-F)}function C(V,N,F,z,U=0,Q){if(p){let B=[ua.contextHash,p];Q=Q?[B].concat(Q):[B]}if(U>25){let B=[ua.lookAhead,U];Q=Q?[B].concat(Q):[B]}return new Fi(V,N,F,z,Q)}function w(V,N){let F=m.fork(),z=0,U=0,Q=0,B=F.end-i,E={size:0,start:0,skip:0};e:for(let W=F.pos-V;F.pos>W;){let Y=F.size;if(F.id==N&&Y>=0){E.size=z,E.start=U,E.skip=Q,Q+=4,z+=4,F.next();continue}let ie=F.pos-Y;if(Y<0||ie=f?4:0,me=F.start;for(F.next();F.pos>ie;){if(F.size<0)if(F.size==-3)L+=4;else break e;else F.id>=f&&(L+=4);F.next()}U=me,z+=Y,Q+=L}return(N<0||z==V)&&(E.size=z,E.start=U,E.skip=Q),E.size>4?E:void 0}function T(V,N,F){let{id:z,start:U,end:Q,size:B}=m;if(m.next(),B>=0&&z4){let W=m.pos-(B-4);for(;m.pos>W;)F=T(V,N,F)}N[--F]=E,N[--F]=Q-V,N[--F]=U-V,N[--F]=z}else B==-3?p=z:B==-4&&(v=z);return F}let R=[],M=[];for(;m.pos>0;)y(t.start||0,t.bufferStart||0,R,M,-1,0);let I=(e=t.length)!==null&&e!==void 0?e:R.length?M[0]+R[0].length:0;return new Fi(u[t.topID],R.reverse(),M.reverse(),I)}const ede=new WeakMap;function QZ(t,e){if(!t.isAnonymous||e instanceof TS||e.type!=t)return 1;let r=ede.get(e);if(r==null){r=1;for(let a of e.children){if(a.type!=t||!(a instanceof Fi)){r=1;break}r+=QZ(t,a)}ede.set(e,r)}return r}function Jae(t,e,r,a,i,d,f,m,u){let p=0;for(let k=a;k=v)break;N+=F}if(M==I+1){if(N>v){let F=k[I];x(F.children,F.positions,0,F.children.length,C[I]+R);continue}y.push(k[I])}else{let F=C[M-1]+k[M-1].length-V;y.push(Jae(t,k,C,I,M,V,F,null,u))}b.push(V+R-d)}}return x(e,r,a,i,0),(m||u)(y,b,f)}class eie{constructor(){this.map=new WeakMap}setBuffer(e,r,a){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(r,a)}getBuffer(e,r){let a=this.map.get(e);return a&&a.get(r)}set(e,r){e instanceof U1?this.setBuffer(e.context.buffer,e.index,r):e instanceof Ad&&this.map.set(e.tree,r)}get(e){return e instanceof U1?this.getBuffer(e.context.buffer,e.index):e instanceof Ad?this.map.get(e.tree):void 0}cursorSet(e,r){e.buffer?this.setBuffer(e.buffer.buffer,e.index,r):this.map.set(e.tree,r)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class mO{constructor(e,r,a,i,d=!1,f=!1){this.from=e,this.to=r,this.tree=a,this.offset=i,this.open=(d?1:0)|(f?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,r=[],a=!1){let i=[new mO(0,e.length,e,0,!1,a)];for(let d of r)d.to>e.length&&i.push(d);return i}static applyChanges(e,r,a=128){if(!r.length)return e;let i=[],d=1,f=e.length?e[0]:null;for(let m=0,u=0,p=0;;m++){let v=m=a)for(;f&&f.from=b.from||y<=b.to||p){let x=Math.max(b.from,u)-p,k=Math.min(b.to,y)-p;b=x>=k?null:new mO(x,k,b.tree,b.offset+p,m>0,!!v)}if(b&&i.push(b),f.to>y)break;f=dnew bp(i.from,i.to)):[new bp(0,0)]:[new bp(0,e.length)],this.createParse(e,r||[],a)}parse(e,r,a){let i=this.startParse(e,r,a);for(;;){let d=i.advance();if(d)return d}}}class xke{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,r){return this.string.slice(e,r)}}function jve(t){return(e,r,a,i)=>new wke(e,t,r,a,i)}class tde{constructor(e,r,a,i,d){this.parser=e,this.parse=r,this.overlay=a,this.target=i,this.from=d}}function nde(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class Ske{constructor(e,r,a,i,d,f,m){this.parser=e,this.predicate=r,this.mounts=a,this.index=i,this.start=d,this.target=f,this.prev=m,this.depth=0,this.ranges=[]}}const yse=new ua({perNode:!0});class wke{constructor(e,r,a,i,d){this.nest=r,this.input=a,this.fragments=i,this.ranges=d,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let a=this.baseParse.advance();if(!a)return null;if(this.baseParse=null,this.baseTree=a,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let a=this.baseTree;return this.stoppedAt!=null&&(a=new Fi(a.type,a.children,a.positions,a.length,a.propValues.concat([[yse,this.stoppedAt]]))),a}let e=this.inner[this.innerDone],r=e.parse.advance();if(r){this.innerDone++;let a=Object.assign(Object.create(null),e.target.props);a[ua.mounted.id]=new i$(r,e.overlay,e.parser),e.target.props=a}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let r=this.innerDone;r=this.stoppedAt)m=!1;else if(e.hasNode(i)){if(r){let p=r.mounts.find(v=>v.frag.from<=i.from&&v.frag.to>=i.to&&v.mount.overlay);if(p)for(let v of p.mount.overlay){let y=v.from+p.pos,b=v.to+p.pos;y>=i.from&&b<=i.to&&!r.ranges.some(x=>x.fromy)&&r.ranges.push({from:y,to:b})}}m=!1}else if(a&&(f=Tke(a.ranges,i.from,i.to)))m=f!=2;else if(!i.type.isAnonymous&&(d=this.nest(i,this.input))&&(i.fromnew bp(y.from-i.from,y.to-i.from)):null,i.tree,v.length?v[0].from:i.from)),d.overlay?v.length&&(a={ranges:v,depth:0,prev:a}):m=!1}}else r&&(u=r.predicate(i))&&(u===!0&&(u=new bp(i.from,i.to)),u.fromnew bp(v.from-r.start,v.to-r.start)),r.target,p[0].from))),r=r.prev}a&&!--a.depth&&(a=a.prev)}}}}function Tke(t,e,r){for(let a of t){if(a.from>=r)break;if(a.to>e)return a.from<=e&&a.to>=r?2:1}return 0}function rde(t,e,r,a,i,d){if(e=e.to);a++);let f=i.children[a],m=f.buffer,u=[a];function p(v,y,b,x,k,C){let w=r[C],T=[],R=[];rde(f,v,w,T,R,x);let M=m[w+1],I=m[w+2];u.push(T.length);let V=C?p(w+4,m[w+3],f.set.types[m[w]],M,I-M,C-1):e.toTree();return T.push(V),R.push(M-x),rde(f,m[w+3],y,T,R,x),new Fi(b,T,R,k)}i.children[a]=p(0,m.length,Fu.none,0,f.length,r.length-1);for(let v of u){let y=t.tree.children[v],b=t.tree.positions[v];t.yield(new Ad(y,b+t.from,v,t._tree))}}class ode{constructor(e,r){this.offset=r,this.done=!1,this.cursor=e.cursor(vl.IncludeAnonymous|vl.IgnoreMounts)}moveTo(e){let{cursor:r}=this,a=e-this.offset;for(;!this.done&&r.from=e&&r.enter(a,1,vl.IgnoreOverlays|vl.ExcludeBuffers)||r.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let r=this.cursor.tree;;){if(r==e.tree)return!0;if(r.children.length&&r.positions[0]==0&&r.children[0]instanceof Fi)r=r.children[0];else break}return!1}}let kke=class{constructor(e){var r;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let a=this.curFrag=e[0];this.curTo=(r=a.tree.prop(yse))!==null&&r!==void 0?r:a.to,this.inner=new ode(a.tree,-a.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let r=this.curFrag=this.fragments[this.fragI];this.curTo=(e=r.tree.prop(yse))!==null&&e!==void 0?e:r.to,this.inner=new ode(r.tree,-r.offset)}}findMounts(e,r){var a;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let d=this.inner.cursor.node;d;d=d.parent){let f=(a=d.tree)===null||a===void 0?void 0:a.prop(ua.mounted);if(f&&f.parser==r)for(let m=this.fragI;m=d.to)break;u.tree==this.curFrag.tree&&i.push({frag:u,pos:d.from-u.offset,mount:f})}}}return i}};function sde(t,e){let r=null,a=e;for(let i=1,d=0;i=m)break;u.to<=f||(r||(a=r=e.slice()),u.fromm&&r.splice(d+1,0,new bp(m,u.to))):u.to>m?r[d--]=new bp(m,u.to):r.splice(d--,1))}}return a}function Ake(t,e,r,a){let i=0,d=0,f=!1,m=!1,u=-1e9,p=[];for(;;){let v=i==t.length?1e9:f?t[i].to:t[i].from,y=d==e.length?1e9:m?e[d].to:e[d].from;if(f!=m){let b=Math.max(u,r),x=Math.min(v,y,a);bnew bp(b.from+a,b.to+a)),y=Ake(e,v,u,p);for(let b=0,x=u;;b++){let k=b==y.length,C=k?p:y[b].from;if(C>x&&r.push(new mO(x,C,i.tree,-f,d.from>=x||d.openStart,d.to<=C||d.openEnd)),k)break;x=y[b].to}}else r.push(new mO(u,p,i.tree,-f,d.from>=f||d.openStart,d.to<=m||d.openEnd))}return r}let Pke=0;class Dv{constructor(e,r,a){this.set=e,this.base=r,this.modified=a,this.id=Pke++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let r=new Dv([],null,[]);if(r.set.push(r),e)for(let a of e.set)r.set.push(a);return r}static defineModifier(){let e=new cH;return r=>r.modified.indexOf(e)>-1?r:cH.get(r.base||r,r.modified.concat(e).sort((a,i)=>a.id-i.id))}}let Mke=0;class cH{constructor(){this.instances=[],this.id=Mke++}static get(e,r){if(!r.length)return e;let a=r[0].instances.find(m=>m.base==e&&Eke(r,m.modified));if(a)return a;let i=[],d=new Dv(i,e,r);for(let m of r)m.instances.push(d);let f=_ke(r);for(let m of e.set)if(!m.modified.length)for(let u of f)i.push(cH.get(m,u));return d}}function Eke(t,e){return t.length==e.length&&t.every((r,a)=>r==e[a])}function _ke(t){let e=[[]];for(let r=0;ra.length-r.length)}function RS(t){let e=Object.create(null);for(let r in t){let a=t[r];Array.isArray(a)||(a=[a]);for(let i of r.split(" "))if(i){let d=[],f=2,m=i;for(let y=0;;){if(m=="..."&&y>0&&y+3==i.length){f=1;break}let b=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(m);if(!b)throw new RangeError("Invalid path: "+i);if(d.push(b[0]=="*"?"":b[0][0]=='"'?JSON.parse(b[0]):b[0]),y+=b[0].length,y==i.length)break;let x=i[y++];if(y==i.length&&x=="!"){f=0;break}if(x!="/")throw new RangeError("Invalid path: "+i);m=i.slice(y)}let u=d.length-1,p=d[u];if(!p)throw new RangeError("Invalid path: "+i);let v=new uH(a,f,u>0?d.slice(0,u):null);e[p]=v.sort(e[p])}}return qve.add(e)}const qve=new ua;class uH{constructor(e,r,a,i){this.tags=e,this.mode=r,this.context=a,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth{let f=i;for(let m of d)for(let u of m.set){let p=r[u.id];if(p){f=f?f+" "+p:p;break}}return f},scope:a}}function Rke(t,e){let r=null;for(let a of t){let i=a.style(e);i&&(r=r?r+" "+i:i)}return r}function Dke(t,e,r,a=0,i=t.length){let d=new $ke(a,Array.isArray(e)?e:[e],r);d.highlightRange(t.cursor(),a,i,"",d.highlighters),d.flush(i)}class $ke{constructor(e,r,a){this.at=e,this.highlighters=r,this.span=a,this.class=""}startSpan(e,r){r!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=r)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,r,a,i,d){let{type:f,from:m,to:u}=e;if(m>=a||u<=r)return;f.isTop&&(d=this.highlighters.filter(x=>!x.scope||x.scope(f)));let p=i,v=Lke(e)||uH.empty,y=Rke(d,v.tags);if(y&&(p&&(p+=" "),p+=y,v.mode==1&&(i+=(i?" ":"")+y)),this.startSpan(Math.max(r,m),p),v.opaque)return;let b=e.tree&&e.tree.prop(ua.mounted);if(b&&b.overlay){let x=e.node.enter(b.overlay[0].from+m,1),k=this.highlighters.filter(w=>!w.scope||w.scope(b.tree.type)),C=e.firstChild();for(let w=0,T=m;;w++){let R=w=M||!e.nextSibling())););if(!R||M>a)break;T=R.to+m,T>r&&(this.highlightRange(x.cursor(),Math.max(r,R.from+m),Math.min(a,T),"",k),this.startSpan(Math.min(a,T),p))}C&&e.parent()}else if(e.firstChild()){b&&(i="");do if(!(e.to<=r)){if(e.from>=a)break;this.highlightRange(e,r,a,i,d),this.startSpan(Math.min(a,e.to),p)}while(e.nextSibling());e.parent()}}}function Lke(t){let e=t.type.prop(qve);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Ao=Dv.define,oZ=Ao(),iS=Ao(),ide=Ao(iS),lde=Ao(iS),lS=Ao(),sZ=Ao(lS),_re=Ao(lS),N1=Ao(),fC=Ao(N1),L1=Ao(),I1=Ao(),bse=Ao(),hD=Ao(bse),aZ=Ao(),Qt={comment:oZ,lineComment:Ao(oZ),blockComment:Ao(oZ),docComment:Ao(oZ),name:iS,variableName:Ao(iS),typeName:ide,tagName:Ao(ide),propertyName:lde,attributeName:Ao(lde),className:Ao(iS),labelName:Ao(iS),namespace:Ao(iS),macroName:Ao(iS),literal:lS,string:sZ,docString:Ao(sZ),character:Ao(sZ),attributeValue:Ao(sZ),number:_re,integer:Ao(_re),float:Ao(_re),bool:Ao(lS),regexp:Ao(lS),escape:Ao(lS),color:Ao(lS),url:Ao(lS),keyword:L1,self:Ao(L1),null:Ao(L1),atom:Ao(L1),unit:Ao(L1),modifier:Ao(L1),operatorKeyword:Ao(L1),controlKeyword:Ao(L1),definitionKeyword:Ao(L1),moduleKeyword:Ao(L1),operator:I1,derefOperator:Ao(I1),arithmeticOperator:Ao(I1),logicOperator:Ao(I1),bitwiseOperator:Ao(I1),compareOperator:Ao(I1),updateOperator:Ao(I1),definitionOperator:Ao(I1),typeOperator:Ao(I1),controlOperator:Ao(I1),punctuation:bse,separator:Ao(bse),bracket:hD,angleBracket:Ao(hD),squareBracket:Ao(hD),paren:Ao(hD),brace:Ao(hD),content:N1,heading:fC,heading1:Ao(fC),heading2:Ao(fC),heading3:Ao(fC),heading4:Ao(fC),heading5:Ao(fC),heading6:Ao(fC),contentSeparator:Ao(N1),list:Ao(N1),quote:Ao(N1),emphasis:Ao(N1),strong:Ao(N1),link:Ao(N1),monospace:Ao(N1),strikethrough:Ao(N1),inserted:Ao(),deleted:Ao(),changed:Ao(),invalid:Ao(),meta:aZ,documentMeta:Ao(aZ),annotation:Ao(aZ),processingInstruction:Ao(aZ),definition:Dv.defineModifier(),constant:Dv.defineModifier(),function:Dv.defineModifier(),standard:Dv.defineModifier(),local:Dv.defineModifier(),special:Dv.defineModifier()};Kve([{tag:Qt.link,class:"tok-link"},{tag:Qt.heading,class:"tok-heading"},{tag:Qt.emphasis,class:"tok-emphasis"},{tag:Qt.strong,class:"tok-strong"},{tag:Qt.keyword,class:"tok-keyword"},{tag:Qt.atom,class:"tok-atom"},{tag:Qt.bool,class:"tok-bool"},{tag:Qt.url,class:"tok-url"},{tag:Qt.labelName,class:"tok-labelName"},{tag:Qt.inserted,class:"tok-inserted"},{tag:Qt.deleted,class:"tok-deleted"},{tag:Qt.literal,class:"tok-literal"},{tag:Qt.string,class:"tok-string"},{tag:Qt.number,class:"tok-number"},{tag:[Qt.regexp,Qt.escape,Qt.special(Qt.string)],class:"tok-string2"},{tag:Qt.variableName,class:"tok-variableName"},{tag:Qt.local(Qt.variableName),class:"tok-variableName tok-local"},{tag:Qt.definition(Qt.variableName),class:"tok-variableName tok-definition"},{tag:Qt.special(Qt.variableName),class:"tok-variableName2"},{tag:Qt.definition(Qt.propertyName),class:"tok-propertyName tok-definition"},{tag:Qt.typeName,class:"tok-typeName"},{tag:Qt.namespace,class:"tok-namespace"},{tag:Qt.className,class:"tok-className"},{tag:Qt.macroName,class:"tok-macroName"},{tag:Qt.propertyName,class:"tok-propertyName"},{tag:Qt.operator,class:"tok-operator"},{tag:Qt.comment,class:"tok-comment"},{tag:Qt.meta,class:"tok-meta"},{tag:Qt.invalid,class:"tok-invalid"},{tag:Qt.punctuation,class:"tok-punctuation"}]);var Rre;const CC=new ua;function nie(t){return ss.define({combine:t?e=>e.concat(t):void 0})}const rie=new ua;class Op{constructor(e,r,a=[],i=""){this.data=e,this.name=i,Ia.prototype.hasOwnProperty("tree")||Object.defineProperty(Ia.prototype,"tree",{get(){return rl(this)}}),this.parser=r,this.extension=[kS.of(this),Ia.languageData.of((d,f,m)=>{let u=cde(d,f,m),p=u.type.prop(CC);if(!p)return[];let v=d.facet(p),y=u.type.prop(rie);if(y){let b=u.resolve(f-u.from,m);for(let x of y)if(x.test(b,d)){let k=d.facet(x.facet);return x.type=="replace"?k:k.concat(v)}}return v})].concat(a)}isActiveAt(e,r,a=-1){return cde(e,r,a).type.prop(CC)==this.data}findRegions(e){let r=e.facet(kS);if((r==null?void 0:r.data)==this.data)return[{from:0,to:e.doc.length}];if(!r||!r.allowsNesting)return[];let a=[],i=(d,f)=>{if(d.prop(CC)==this.data){a.push({from:f,to:f+d.length});return}let m=d.prop(ua.mounted);if(m){if(m.tree.prop(CC)==this.data){if(m.overlay)for(let u of m.overlay)a.push({from:u.from+f,to:u.to+f});else a.push({from:f,to:f+d.length});return}else if(m.overlay){let u=a.length;if(i(m.tree,m.overlay[0].from+f),a.length>u)return}}for(let u=0;ua.isTop?r:void 0)]}),e.name)}configure(e,r){return new CS(this.data,this.parser.configure(e),r||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function rl(t){let e=t.field(Op.state,!1);return e?e.tree:Fi.empty}class Ike{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,r){let a=this.cursorPos-this.string.length;return e=this.cursorPos?this.doc.sliceString(e,r):this.string.slice(e-a,r-a)}}let mD=null;class c${constructor(e,r,a=[],i,d,f,m,u){this.parser=e,this.state=r,this.fragments=a,this.tree=i,this.treeLen=d,this.viewport=f,this.skipped=m,this.scheduleOn=u,this.parse=null,this.tempSkipped=[]}static create(e,r,a){return new c$(e,r,[],Fi.empty,0,a,[],null)}startParse(){return this.parser.startParse(new Ike(this.state.doc),this.fragments)}work(e,r){return r!=null&&r>=this.state.doc.length&&(r=void 0),this.tree!=Fi.empty&&this.isDone(r??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var a;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),r!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>r)&&r=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(r=this.parse.advance()););}),this.treeLen=e,this.tree=r,this.fragments=this.withoutTempSkipped(mO.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let r=mD;mD=this;try{return e()}finally{mD=r}}withoutTempSkipped(e){for(let r;r=this.tempSkipped.pop();)e=ude(e,r.from,r.to);return e}changes(e,r){let{fragments:a,tree:i,treeLen:d,viewport:f,skipped:m}=this;if(this.takeTree(),!e.empty){let u=[];if(e.iterChangedRanges((p,v,y,b)=>u.push({fromA:p,toA:v,fromB:y,toB:b})),a=mO.applyChanges(a,u),i=Fi.empty,d=0,f={from:e.mapPos(f.from,-1),to:e.mapPos(f.to,1)},this.skipped.length){m=[];for(let p of this.skipped){let v=e.mapPos(p.from,1),y=e.mapPos(p.to,-1);ve.from&&(this.fragments=ude(this.fragments,i,d),this.skipped.splice(a--,1))}return this.skipped.length>=r?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,r){this.skipped.push({from:e,to:r})}static getSkippingParser(e){return new class extends tie{createParse(r,a,i){let d=i[0].from,f=i[i.length-1].to;return{parsedPos:d,advance(){let u=mD;if(u){for(let p of i)u.tempSkipped.push(p);e&&(u.scheduleOn=u.scheduleOn?Promise.all([u.scheduleOn,e]):e)}return this.parsedPos=f,new Fi(Fu.none,[],[],f-d)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let r=this.fragments;return this.treeLen>=e&&r.length&&r[0].from==0&&r[0].to>=e}static get(){return mD}}function ude(t,e,r){return mO.applyChanges(t,[{fromA:e,toA:r,fromB:e,toB:r}])}class aM{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let r=this.context.changes(e.changes,e.state),a=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),r.viewport.to);return r.work(20,a)||r.takeTree(),new aM(r)}static init(e){let r=Math.min(3e3,e.doc.length),a=c$.create(e.facet(kS).parser,e,{from:0,to:r});return a.work(20,r)||a.takeTree(),new aM(a)}}Op.state=xf.define({create:aM.init,update(t,e){for(let r of e.effects)if(r.is(Op.setState))return r.value;return e.startState.facet(kS)!=e.state.facet(kS)?aM.init(e.state):t.apply(e)}});let Jve=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(Jve=t=>{let e=-1,r=setTimeout(()=>{e=requestIdleCallback(t,{timeout:500-100})},100);return()=>e<0?clearTimeout(r):cancelIdleCallback(e)});const Dre=typeof navigator<"u"&&(!((Rre=navigator.scheduling)===null||Rre===void 0)&&Rre.isInputPending)?()=>navigator.scheduling.isInputPending():null,Nke=eu.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let r=this.view.state.field(Op.state).context;(r.updateViewport(e.view.viewport)||this.view.viewport.to>r.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(r)}scheduleWork(){if(this.working)return;let{state:e}=this.view,r=e.field(Op.state);(r.tree!=r.context.tree||!r.context.isDone(e.doc.length))&&(this.working=Jve(this.work))}work(e){this.working=null;let r=Date.now();if(this.chunkEndi+1e3,u=d.context.work(()=>Dre&&Dre()||Date.now()>f,i+(m?0:1e5));this.chunkBudget-=Date.now()-r,(u||this.chunkBudget<=0)&&(d.context.takeTree(),this.view.dispatch({effects:Op.setState.of(new aM(d.context))})),this.chunkBudget>0&&!(u&&!m)&&this.scheduleWork(),this.checkAsyncSchedule(d.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(r=>Cp(this.view.state,r)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),kS=ss.define({combine(t){return t.length?t[0]:null},enables:t=>[Op.state,Nke,Xo.contentAttributes.compute([t],e=>{let r=e.facet(t);return r&&r.name?{"data-language":r.name}:{}})]});class DC{constructor(e,r=[]){this.language=e,this.support=r,this.extension=[e,r]}}class fH{constructor(e,r,a,i,d,f=void 0){this.name=e,this.alias=r,this.extensions=a,this.filename=i,this.loadFunc=d,this.support=f,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:r,support:a}=e;if(!r){if(!a)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");r=()=>Promise.resolve(a)}return new fH(e.name,(e.alias||[]).concat(e.name).map(i=>i.toLowerCase()),e.extensions||[],e.filename,r,a)}static matchFilename(e,r){for(let i of e)if(i.filename&&i.filename.test(r))return i;let a=/\.([^.]+)$/.exec(r);if(a){for(let i of e)if(i.extensions.indexOf(a[1])>-1)return i}return null}static matchLanguageName(e,r,a=!0){r=r.toLowerCase();for(let i of e)if(i.alias.some(d=>d==r))return i;if(a)for(let i of e)for(let d of i.alias){let f=r.indexOf(d);if(f>-1&&(d.length>2||!/\w/.test(r[f-1])&&!/\w/.test(r[f+d.length])))return i}return null}}const Bke=ss.define(),SM=ss.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(r=>r!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function dH(t){let e=t.facet(SM);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function u$(t,e){let r="",a=t.tabSize,i=t.facet(SM)[0];if(i==" "){for(;e>=a;)r+=" ",e-=a;i=" "}for(let d=0;d=e?Qke(t,r,e):null}class pU{constructor(e,r={}){this.state=e,this.options=r,this.unit=dH(e)}lineAt(e,r=1){let a=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:d}=this.options;return i!=null&&i>=a.from&&i<=a.to?d&&i==e?{text:"",from:e}:(r<0?i-1&&(d+=f-this.countColumn(a,a.search(/\S|$/))),d}countColumn(e,r=e.length){return Fv(e,this.state.tabSize,r)}lineIndent(e,r=1){let{text:a,from:i}=this.lineAt(e,r),d=this.options.overrideIndentation;if(d){let f=d(i);if(f>-1)return f}return this.countColumn(a,a.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const BC=new ua;function Qke(t,e,r){let a=e.resolveStack(r),i=a.node.enterUnfinishedNodesBefore(r);if(i!=a.node){let d=[];for(let f=i;f!=a.node;f=f.parent)d.push(f);for(let f=d.length-1;f>=0;f--)a={node:d[f],next:a}}return e0e(a,t,r)}function e0e(t,e,r){for(let a=t;a;a=a.next){let i=Vke(a.node);if(i)return i(sie.create(e,r,a))}return 0}function Fke(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function Vke(t){let e=t.type.prop(BC);if(e)return e;let r=t.firstChild,a;if(r&&(a=r.type.prop(ua.closedBy))){let i=t.lastChild,d=i&&a.indexOf(i.name)>-1;return f=>t0e(f,!0,1,void 0,d&&!Fke(f)?i.from:void 0)}return t.parent==null?zke:null}function zke(){return 0}class sie extends pU{constructor(e,r,a){super(e.state,e.options),this.base=e,this.pos=r,this.context=a}get node(){return this.context.node}static create(e,r,a){return new sie(e,r,a)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let r=this.state.doc.lineAt(e.from);for(;;){let a=e.resolve(r.from);for(;a.parent&&a.parent.from==a.from;)a=a.parent;if(Zke(a,e))break;r=this.state.doc.lineAt(a.from)}return this.lineIndent(r.from)}continue(){return e0e(this.context.next,this.base,this.pos)}}function Zke(t,e){for(let r=e;r;r=r.parent)if(t==r)return!0;return!1}function Hke(t){let e=t.node,r=e.childAfter(e.from),a=e.lastChild;if(!r)return null;let i=t.options.simulateBreak,d=t.state.doc.lineAt(r.from),f=i==null||i<=d.from?d.to:Math.min(d.to,i);for(let m=r.to;;){let u=e.childAfter(m);if(!u||u==a)return null;if(!u.type.isSkipped)return u.fromt0e(a,e,r,t)}function t0e(t,e,r,a,i){let d=t.textAfter,f=d.match(/^\s*/)[0].length,m=a&&d.slice(f,f+a.length)==a||i==t.pos+f,u=e?Hke(t):null;return u?m?t.column(u.from):t.column(u.to):t.baseIndent+(m?0:t.unit*r)}const Uke=t=>t.baseIndent;function BD({except:t,units:e=1}={}){return r=>{let a=t&&t.test(r.textAfter);return r.baseIndent+(a?0:e*r.unit)}}const Wke=200;function Yke(){return Ia.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let r=t.newDoc,{head:a}=t.newSelection.main,i=r.lineAt(a);if(a>i.from+Wke)return t;let d=r.sliceString(i.from,a);if(!e.some(p=>p.test(d)))return t;let{state:f}=t,m=-1,u=[];for(let{head:p}of f.selection.ranges){let v=f.doc.lineAt(p);if(v.from==m)continue;m=v.from;let y=oie(f,v.from);if(y==null)continue;let b=/^\s*/.exec(v.text)[0],x=u$(f,y);b!=x&&u.push({from:v.from,to:v.from+b.length,insert:x})}return u.length?[t,{changes:u,sequential:!0}]:t})}const n0e=ss.define(),DS=new ua;function aie(t){let e=t.firstChild,r=t.lastChild;return e&&e.tor)continue;if(d&&m.from=e&&p.to>r&&(d=p)}}return d}function Gke(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function hH(t,e,r){for(let a of t.facet(n0e)){let i=a(t,e,r);if(i)return i}return Xke(t,e,r)}function r0e(t,e){let r=e.mapPos(t.from,1),a=e.mapPos(t.to,-1);return r>=a?void 0:{from:r,to:a}}const vU=pa.define({map:r0e}),B$=pa.define({map:r0e});function o0e(t){let e=[];for(let{head:r}of t.state.selection.ranges)e.some(a=>a.from<=r&&a.to>=r)||e.push(t.lineBlockAt(r));return e}const $C=xf.define({create(){return Bs.none},update(t,e){t=t.map(e.changes);for(let r of e.effects)if(r.is(vU)&&!jke(t,r.value.from,r.value.to)){let{preparePlaceholder:a}=e.state.facet(iie),i=a?Bs.replace({widget:new rAe(a(e.state,r.value))}):fde;t=t.update({add:[i.range(r.value.from,r.value.to)]})}else r.is(B$)&&(t=t.update({filter:(a,i)=>r.value.from!=a||r.value.to!=i,filterFrom:r.value.from,filterTo:r.value.to}));if(e.selection){let r=!1,{head:a}=e.selection.main;t.between(a,a,(i,d)=>{ia&&(r=!0)}),r&&(t=t.update({filterFrom:a,filterTo:a,filter:(i,d)=>d<=a||i>=a}))}return t},provide:t=>Xo.decorations.from(t),toJSON(t,e){let r=[];return t.between(0,e.doc.length,(a,i)=>{r.push(a,i)}),r},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let r=0;r{(!i||i.from>d)&&(i={from:d,to:f})}),i}function jke(t,e,r){let a=!1;return t.between(e,e,(i,d)=>{i==e&&d==r&&(a=!0)}),a}function s0e(t,e){return t.field($C,!1)?e:e.concat(pa.appendConfig.of(i0e()))}const qke=t=>{for(let e of o0e(t)){let r=hH(t.state,e.from,e.to);if(r)return t.dispatch({effects:s0e(t.state,[vU.of(r),a0e(t,r)])}),!0}return!1},Kke=t=>{if(!t.state.field($C,!1))return!1;let e=[];for(let r of o0e(t)){let a=mH(t.state,r.from,r.to);a&&e.push(B$.of(a),a0e(t,a,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function a0e(t,e,r=!0){let a=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return Xo.announce.of(`${t.state.phrase(r?"Folded lines":"Unfolded lines")} ${a} ${t.state.phrase("to")} ${i}.`)}const Jke=t=>{let{state:e}=t,r=[];for(let a=0;a{let e=t.state.field($C,!1);if(!e||!e.size)return!1;let r=[];return e.between(0,t.state.doc.length,(a,i)=>{r.push(B$.of({from:a,to:i}))}),t.dispatch({effects:r}),!0},tAe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:qke},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Kke},{key:"Ctrl-Alt-[",run:Jke},{key:"Ctrl-Alt-]",run:eAe}],nAe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},iie=ss.define({combine(t){return ry(t,nAe)}});function i0e(t){let e=[$C,aAe];return t&&e.push(iie.of(t)),e}function l0e(t,e){let{state:r}=t,a=r.facet(iie),i=f=>{let m=t.lineBlockAt(t.posAtDOM(f.target)),u=mH(t.state,m.from,m.to);u&&t.dispatch({effects:B$.of(u)}),f.preventDefault()};if(a.placeholderDOM)return a.placeholderDOM(t,i,e);let d=document.createElement("span");return d.textContent=a.placeholderText,d.setAttribute("aria-label",r.phrase("folded code")),d.title=r.phrase("unfold"),d.className="cm-foldPlaceholder",d.onclick=i,d}const fde=Bs.replace({widget:new class extends oy{toDOM(t){return l0e(t,null)}}});class rAe extends oy{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return l0e(e,this.value)}}const oAe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class $re extends xO{constructor(e,r){super(),this.config=e,this.open=r}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let r=document.createElement("span");return r.textContent=this.open?this.config.openText:this.config.closedText,r.title=e.state.phrase(this.open?"Fold line":"Unfold line"),r}}function sAe(t={}){let e=Object.assign(Object.assign({},oAe),t),r=new $re(e,!0),a=new $re(e,!1),i=eu.fromClass(class{constructor(f){this.from=f.viewport.from,this.markers=this.buildMarkers(f)}update(f){(f.docChanged||f.viewportChanged||f.startState.facet(kS)!=f.state.facet(kS)||f.startState.field($C,!1)!=f.state.field($C,!1)||rl(f.startState)!=rl(f.state)||e.foldingChanged(f))&&(this.markers=this.buildMarkers(f.view))}buildMarkers(f){let m=new OS;for(let u of f.viewportLineBlocks){let p=mH(f.state,u.from,u.to)?a:hH(f.state,u.from,u.to)?r:null;p&&m.add(u.from,u.from,p)}return m.finish()}}),{domEventHandlers:d}=e;return[i,ske({class:"cm-foldGutter",markers(f){var m;return((m=f.plugin(i))===null||m===void 0?void 0:m.markers)||ji.empty},initialSpacer(){return new $re(e,!1)},domEventHandlers:Object.assign(Object.assign({},d),{click:(f,m,u)=>{if(d.click&&d.click(f,m,u))return!0;let p=mH(f.state,m.from,m.to);if(p)return f.dispatch({effects:B$.of(p)}),!0;let v=hH(f.state,m.from,m.to);return v?(f.dispatch({effects:vU.of(v)}),!0):!1}})}),i0e()]}const aAe=Xo.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Q${constructor(e,r){this.specs=e;let a;function i(m){let u=xS.newName();return(a||(a=Object.create(null)))["."+u]=m,u}const d=typeof r.all=="string"?r.all:r.all?i(r.all):void 0,f=r.scope;this.scope=f instanceof Op?m=>m.prop(CC)==f.data:f?m=>m==f:void 0,this.style=Kve(e.map(m=>({tag:m.tag,class:m.class||i(Object.assign({},m,{tag:null}))})),{all:d}).style,this.module=a?new xS(a):null,this.themeType=r.themeType}static define(e,r){return new Q$(e,r||{})}}const Ose=ss.define(),c0e=ss.define({combine(t){return t.length?[t[0]]:null}});function Lre(t){let e=t.facet(Ose);return e.length?e:t.facet(c0e)}function u0e(t,e){let r=[lAe],a;return t instanceof Q$&&(t.module&&r.push(Xo.styleModule.of(t.module)),a=t.themeType),e!=null&&e.fallback?r.push(c0e.of(t)):a?r.push(Ose.computeN([Xo.darkTheme],i=>i.facet(Xo.darkTheme)==(a=="dark")?[t]:[])):r.push(Ose.of(t)),r}class iAe{constructor(e){this.markCache=Object.create(null),this.tree=rl(e.state),this.decorations=this.buildDeco(e,Lre(e.state))}update(e){let r=rl(e.state),a=Lre(e.state),i=a!=Lre(e.startState);r.length{a.add(f,m,this.markCache[u]||(this.markCache[u]=Bs.mark({class:u})))},i,d);return a.finish()}}const lAe=Mp.high(eu.fromClass(iAe,{decorations:t=>t.decorations})),cAe=Q$.define([{tag:Qt.meta,color:"#404740"},{tag:Qt.link,textDecoration:"underline"},{tag:Qt.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Qt.emphasis,fontStyle:"italic"},{tag:Qt.strong,fontWeight:"bold"},{tag:Qt.strikethrough,textDecoration:"line-through"},{tag:Qt.keyword,color:"#708"},{tag:[Qt.atom,Qt.bool,Qt.url,Qt.contentSeparator,Qt.labelName],color:"#219"},{tag:[Qt.literal,Qt.inserted],color:"#164"},{tag:[Qt.string,Qt.deleted],color:"#a11"},{tag:[Qt.regexp,Qt.escape,Qt.special(Qt.string)],color:"#e40"},{tag:Qt.definition(Qt.variableName),color:"#00f"},{tag:Qt.local(Qt.variableName),color:"#30a"},{tag:[Qt.typeName,Qt.namespace],color:"#085"},{tag:Qt.className,color:"#167"},{tag:[Qt.special(Qt.variableName),Qt.macroName],color:"#256"},{tag:Qt.definition(Qt.propertyName),color:"#00c"},{tag:Qt.comment,color:"#940"},{tag:Qt.invalid,color:"#f00"}]),uAe=Xo.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),f0e=1e4,d0e="()[]{}",h0e=ss.define({combine(t){return ry(t,{afterCursor:!0,brackets:d0e,maxScanDistance:f0e,renderMatch:hAe})}}),fAe=Bs.mark({class:"cm-matchingBracket"}),dAe=Bs.mark({class:"cm-nonmatchingBracket"});function hAe(t){let e=[],r=t.matched?fAe:dAe;return e.push(r.range(t.start.from,t.start.to)),t.end&&e.push(r.range(t.end.from,t.end.to)),e}const mAe=xf.define({create(){return Bs.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let r=[],a=e.state.facet(h0e);for(let i of e.state.selection.ranges){if(!i.empty)continue;let d=W1(e.state,i.head,-1,a)||i.head>0&&W1(e.state,i.head-1,1,a)||a.afterCursor&&(W1(e.state,i.head,1,a)||i.headXo.decorations.from(t)}),gAe=[mAe,uAe];function pAe(t={}){return[h0e.of(t),gAe]}const m0e=new ua;function xse(t,e,r){let a=t.prop(e<0?ua.openedBy:ua.closedBy);if(a)return a;if(t.name.length==1){let i=r.indexOf(t.name);if(i>-1&&i%2==(e<0?1:0))return[r[i+e]]}return null}function Sse(t){let e=t.type.prop(m0e);return e?e(t.node):t}function W1(t,e,r,a={}){let i=a.maxScanDistance||f0e,d=a.brackets||d0e,f=rl(t),m=f.resolveInner(e,r);for(let u=m;u;u=u.parent){let p=xse(u.type,r,d);if(p&&u.from0?e>=v.from&&ev.from&&e<=v.to))return vAe(t,e,r,u,v,p,d)}}return yAe(t,e,r,f,m.type,i,d)}function vAe(t,e,r,a,i,d,f){let m=a.parent,u={from:i.from,to:i.to},p=0,v=m==null?void 0:m.cursor();if(v&&(r<0?v.childBefore(a.from):v.childAfter(a.to)))do if(r<0?v.to<=a.from:v.from>=a.to){if(p==0&&d.indexOf(v.type.name)>-1&&v.from0)return null;let p={from:r<0?e-1:e,to:r>0?e+1:e},v=t.doc.iterRange(e,r>0?t.doc.length:0),y=0;for(let b=0;!v.next().done&&b<=d;){let x=v.value;r<0&&(b+=x.length);let k=e+b*r;for(let C=r>0?0:x.length-1,w=r>0?x.length:-1;C!=w;C+=r){let T=f.indexOf(x[C]);if(!(T<0||a.resolveInner(k+C,1).type!=i))if(T%2==0==r>0)y++;else{if(y==1)return{start:p,end:{from:k+C,to:k+C+1},matched:T>>1==u>>1};y--}}r>0&&(b+=x.length)}return v.done?{start:p,matched:!1}:null}const bAe=Object.create(null),dde=[Fu.none],hde=[],mde=Object.create(null),OAe=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])OAe[t]=xAe(bAe,e);function Ire(t,e){hde.indexOf(t)>-1||(hde.push(t),console.warn(e))}function xAe(t,e){let r=[];for(let m of e.split(" ")){let u=[];for(let p of m.split(".")){let v=t[p]||Qt[p];v?typeof v=="function"?u.length?u=u.map(v):Ire(p,`Modifier ${p} used at start of tag`):u.length?Ire(p,`Tag ${p} used as modifier`):u=Array.isArray(v)?v:[v]:Ire(p,`Unknown highlighting tag ${p}`)}for(let p of u)r.push(p)}if(!r.length)return 0;let a=e.replace(/ /g,"_"),i=a+" "+r.map(m=>m.id),d=mde[i];if(d)return d.id;let f=mde[i]=Fu.define({id:dde.length,name:a,props:[RS({[a]:r})]});return dde.push(f),f.id}const SAe=t=>{let{state:e}=t,r=e.doc.lineAt(e.selection.main.from),a=cie(t.state,r.from);return a.line?wAe(t):a.block?CAe(t):!1};function lie(t,e){return({state:r,dispatch:a})=>{if(r.readOnly)return!1;let i=t(e,r);return i?(a(r.update(i)),!0):!1}}const wAe=lie(PAe,0),TAe=lie(g0e,0),CAe=lie((t,e)=>g0e(t,e,AAe(e)),0);function cie(t,e){let r=t.languageDataAt("commentTokens",e);return r.length?r[0]:{}}const gD=50;function kAe(t,{open:e,close:r},a,i){let d=t.sliceDoc(a-gD,a),f=t.sliceDoc(i,i+gD),m=/\s*$/.exec(d)[0].length,u=/^\s*/.exec(f)[0].length,p=d.length-m;if(d.slice(p-e.length,p)==e&&f.slice(u,u+r.length)==r)return{open:{pos:a-m,margin:m&&1},close:{pos:i+u,margin:u&&1}};let v,y;i-a<=2*gD?v=y=t.sliceDoc(a,i):(v=t.sliceDoc(a,a+gD),y=t.sliceDoc(i-gD,i));let b=/^\s*/.exec(v)[0].length,x=/\s*$/.exec(y)[0].length,k=y.length-x-r.length;return v.slice(b,b+e.length)==e&&y.slice(k,k+r.length)==r?{open:{pos:a+b+e.length,margin:/\s/.test(v.charAt(b+e.length))?1:0},close:{pos:i-x-r.length,margin:/\s/.test(y.charAt(k-1))?1:0}}:null}function AAe(t){let e=[];for(let r of t.selection.ranges){let a=t.doc.lineAt(r.from),i=r.to<=a.to?a:t.doc.lineAt(r.to),d=e.length-1;d>=0&&e[d].to>a.from?e[d].to=i.to:e.push({from:a.from+/^\s*/.exec(a.text)[0].length,to:i.to})}return e}function g0e(t,e,r=e.selection.ranges){let a=r.map(d=>cie(e,d.from).block);if(!a.every(d=>d))return null;let i=r.map((d,f)=>kAe(e,a[f],d.from,d.to));if(t!=2&&!i.every(d=>d))return{changes:e.changes(r.map((d,f)=>i[f]?[]:[{from:d.from,insert:a[f].open+" "},{from:d.to,insert:" "+a[f].close}]))};if(t!=1&&i.some(d=>d)){let d=[];for(let f=0,m;fi&&(d==f||f>y.from)){i=y.from;let b=/^\s*/.exec(y.text)[0].length,x=b==y.length,k=y.text.slice(b,b+p.length)==p?b:-1;bd.comment<0&&(!d.empty||d.single))){let d=[];for(let{line:m,token:u,indent:p,empty:v,single:y}of a)(y||!v)&&d.push({from:m.from+p,insert:u+" "});let f=e.changes(d);return{changes:f,selection:e.selection.map(f,1)}}else if(t!=1&&a.some(d=>d.comment>=0)){let d=[];for(let{line:f,comment:m,token:u}of a)if(m>=0){let p=f.from+m,v=p+u.length;f.text[v-f.from]==" "&&v++,d.push({from:p,to:v})}return{changes:d}}return null}const wse=TO.define(),MAe=TO.define(),EAe=ss.define(),p0e=ss.define({combine(t){return ry(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,r)=>r},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,r)=>(a,i)=>e(a,i)||r(a,i)})}}),v0e=xf.define({create(){return Y1.empty},update(t,e){let r=e.state.facet(p0e),a=e.annotation(wse);if(a){let u=rm.fromTransaction(e,a.selection),p=a.side,v=p==0?t.undone:t.done;return u?v=gH(v,v.length,r.minDepth,u):v=O0e(v,e.startState.selection),new Y1(p==0?a.rest:v,p==0?v:a.rest)}let i=e.annotation(MAe);if((i=="full"||i=="before")&&(t=t.isolate()),e.annotation(Bu.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let d=rm.fromTransaction(e),f=e.annotation(Bu.time),m=e.annotation(Bu.userEvent);return d?t=t.addChanges(d,f,m,r,e):e.selection&&(t=t.addSelection(e.startState.selection,f,m,r.newGroupDelay)),(i=="full"||i=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new Y1(t.done.map(rm.fromJSON),t.undone.map(rm.fromJSON))}});function _Ae(t={}){return[v0e,p0e.of(t),Xo.domEventHandlers({beforeinput(e,r){let a=e.inputType=="historyUndo"?y0e:e.inputType=="historyRedo"?Tse:null;return a?(e.preventDefault(),a(r)):!1}})]}function yU(t,e){return function({state:r,dispatch:a}){if(!e&&r.readOnly)return!1;let i=r.field(v0e,!1);if(!i)return!1;let d=i.pop(t,r,e);return d?(a(d),!0):!1}}const y0e=yU(0,!1),Tse=yU(1,!1),RAe=yU(0,!0),DAe=yU(1,!0);class rm{constructor(e,r,a,i,d){this.changes=e,this.effects=r,this.mapped=a,this.startSelection=i,this.selectionsAfter=d}setSelAfter(e){return new rm(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,r,a;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(r=this.mapped)===null||r===void 0?void 0:r.toJSON(),startSelection:(a=this.startSelection)===null||a===void 0?void 0:a.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new rm(e.changes&&Iu.fromJSON(e.changes),[],e.mapped&&K1.fromJSON(e.mapped),e.startSelection&&Tr.fromJSON(e.startSelection),e.selectionsAfter.map(Tr.fromJSON))}static fromTransaction(e,r){let a=xp;for(let i of e.startState.facet(EAe)){let d=i(e);d.length&&(a=a.concat(d))}return!a.length&&e.changes.empty?null:new rm(e.changes.invert(e.startState.doc),a,void 0,r||e.startState.selection,xp)}static selection(e){return new rm(void 0,xp,void 0,void 0,e)}}function gH(t,e,r,a){let i=e+1>r+20?e-r-1:0,d=t.slice(i,e);return d.push(a),d}function $Ae(t,e){let r=[],a=!1;return t.iterChangedRanges((i,d)=>r.push(i,d)),e.iterChangedRanges((i,d,f,m)=>{for(let u=0;u=p&&f<=v&&(a=!0)}}),a}function LAe(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((r,a)=>r.empty!=e.ranges[a].empty).length===0}function b0e(t,e){return t.length?e.length?t.concat(e):t:e}const xp=[],IAe=200;function O0e(t,e){if(t.length){let r=t[t.length-1],a=r.selectionsAfter.slice(Math.max(0,r.selectionsAfter.length-IAe));return a.length&&a[a.length-1].eq(e)?t:(a.push(e),gH(t,t.length-1,1e9,r.setSelAfter(a)))}else return[rm.selection([e])]}function NAe(t){let e=t[t.length-1],r=t.slice();return r[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),r}function Nre(t,e){if(!t.length)return t;let r=t.length,a=xp;for(;r;){let i=BAe(t[r-1],e,a);if(i.changes&&!i.changes.empty||i.effects.length){let d=t.slice(0,r);return d[r-1]=i,d}else e=i.mapped,r--,a=i.selectionsAfter}return a.length?[rm.selection(a)]:xp}function BAe(t,e,r){let a=b0e(t.selectionsAfter.length?t.selectionsAfter.map(m=>m.map(e)):xp,r);if(!t.changes)return rm.selection(a);let i=t.changes.map(e),d=e.mapDesc(t.changes,!0),f=t.mapped?t.mapped.composeDesc(d):d;return new rm(i,pa.mapEffects(t.effects,e),f,t.startSelection.map(d),a)}const QAe=/^(input\.type|delete)($|\.)/;class Y1{constructor(e,r,a=0,i=void 0){this.done=e,this.undone=r,this.prevTime=a,this.prevUserEvent=i}isolate(){return this.prevTime?new Y1(this.done,this.undone):this}addChanges(e,r,a,i,d){let f=this.done,m=f[f.length-1];return m&&m.changes&&!m.changes.empty&&e.changes&&(!a||QAe.test(a))&&(!m.selectionsAfter.length&&r-this.prevTime0&&r-this.prevTimer.empty?t.moveByChar(r,e):bU(r,e))}function Pd(t){return t.textDirectionAt(t.state.selection.main.head)==gc.LTR}const S0e=t=>x0e(t,!Pd(t)),w0e=t=>x0e(t,Pd(t));function T0e(t,e){return Uv(t,r=>r.empty?t.moveByGroup(r,e):bU(r,e))}const VAe=t=>T0e(t,!Pd(t)),zAe=t=>T0e(t,Pd(t));function ZAe(t,e,r){if(e.type.prop(r))return!0;let a=e.to-e.from;return a&&(a>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function OU(t,e,r){let a=rl(t).resolveInner(e.head),i=r?ua.closedBy:ua.openedBy;for(let u=e.head;;){let p=r?a.childAfter(u):a.childBefore(u);if(!p)break;ZAe(t,p,i)?a=p:u=r?p.to:p.from}let d=a.type.prop(i),f,m;return d&&(f=r?W1(t,a.from,1):W1(t,a.to,-1))&&f.matched?m=r?f.end.to:f.end.from:m=r?a.to:a.from,Tr.cursor(m,r?-1:1)}const HAe=t=>Uv(t,e=>OU(t.state,e,!Pd(t))),UAe=t=>Uv(t,e=>OU(t.state,e,Pd(t)));function C0e(t,e){return Uv(t,r=>{if(!r.empty)return bU(r,e);let a=t.moveVertically(r,e);return a.head!=r.head?a:t.moveToLineBoundary(r,e)})}const k0e=t=>C0e(t,!1),A0e=t=>C0e(t,!0);function P0e(t){let e=t.scrollDOM.clientHeightf.empty?t.moveVertically(f,e,r.height):bU(f,e));if(i.eq(a.selection))return!1;let d;if(r.selfScroll){let f=t.coordsAtPos(a.selection.main.head),m=t.scrollDOM.getBoundingClientRect(),u=m.top+r.marginTop,p=m.bottom-r.marginBottom;f&&f.top>u&&f.bottomM0e(t,!1),Cse=t=>M0e(t,!0);function $S(t,e,r){let a=t.lineBlockAt(e.head),i=t.moveToLineBoundary(e,r);if(i.head==e.head&&i.head!=(r?a.to:a.from)&&(i=t.moveToLineBoundary(e,r,!1)),!r&&i.head==a.from&&a.length){let d=/^\s*/.exec(t.state.sliceDoc(a.from,Math.min(a.from+100,a.to)))[0].length;d&&e.head!=a.from+d&&(i=Tr.cursor(a.from+d))}return i}const WAe=t=>Uv(t,e=>$S(t,e,!0)),YAe=t=>Uv(t,e=>$S(t,e,!1)),XAe=t=>Uv(t,e=>$S(t,e,!Pd(t))),GAe=t=>Uv(t,e=>$S(t,e,Pd(t))),jAe=t=>Uv(t,e=>Tr.cursor(t.lineBlockAt(e.head).from,1)),qAe=t=>Uv(t,e=>Tr.cursor(t.lineBlockAt(e.head).to,-1));function KAe(t,e,r){let a=!1,i=wM(t.selection,d=>{let f=W1(t,d.head,-1)||W1(t,d.head,1)||d.head>0&&W1(t,d.head-1,1)||d.headKAe(t,e,!1);function Rp(t,e){let r=wM(t.state.selection,a=>{let i=e(a);return Tr.range(a.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return r.eq(t.state.selection)?!1:(t.dispatch(sy(t.state,r)),!0)}function E0e(t,e){return Rp(t,r=>t.moveByChar(r,e))}const _0e=t=>E0e(t,!Pd(t)),R0e=t=>E0e(t,Pd(t));function D0e(t,e){return Rp(t,r=>t.moveByGroup(r,e))}const e5e=t=>D0e(t,!Pd(t)),t5e=t=>D0e(t,Pd(t)),n5e=t=>Rp(t,e=>OU(t.state,e,!Pd(t))),r5e=t=>Rp(t,e=>OU(t.state,e,Pd(t)));function $0e(t,e){return Rp(t,r=>t.moveVertically(r,e))}const L0e=t=>$0e(t,!1),I0e=t=>$0e(t,!0);function N0e(t,e){return Rp(t,r=>t.moveVertically(r,e,P0e(t).height))}const pde=t=>N0e(t,!1),vde=t=>N0e(t,!0),o5e=t=>Rp(t,e=>$S(t,e,!0)),s5e=t=>Rp(t,e=>$S(t,e,!1)),a5e=t=>Rp(t,e=>$S(t,e,!Pd(t))),i5e=t=>Rp(t,e=>$S(t,e,Pd(t))),l5e=t=>Rp(t,e=>Tr.cursor(t.lineBlockAt(e.head).from)),c5e=t=>Rp(t,e=>Tr.cursor(t.lineBlockAt(e.head).to)),yde=({state:t,dispatch:e})=>(e(sy(t,{anchor:0})),!0),bde=({state:t,dispatch:e})=>(e(sy(t,{anchor:t.doc.length})),!0),Ode=({state:t,dispatch:e})=>(e(sy(t,{anchor:t.selection.main.anchor,head:0})),!0),xde=({state:t,dispatch:e})=>(e(sy(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),u5e=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),f5e=({state:t,dispatch:e})=>{let r=xU(t).map(({from:a,to:i})=>Tr.range(a,Math.min(i+1,t.doc.length)));return e(t.update({selection:Tr.create(r),userEvent:"select"})),!0},d5e=({state:t,dispatch:e})=>{let r=wM(t.selection,a=>{var i;let d=rl(t).resolveStack(a.from,1);for(let f=d;f;f=f.next){let{node:m}=f;if((m.from=a.to||m.to>a.to&&m.from<=a.from)&&(!((i=m.parent)===null||i===void 0)&&i.parent))return Tr.range(m.to,m.from)}return a});return e(sy(t,r)),!0},h5e=({state:t,dispatch:e})=>{let r=t.selection,a=null;return r.ranges.length>1?a=Tr.create([r.main]):r.main.empty||(a=Tr.create([Tr.cursor(r.main.head)])),a?(e(sy(t,a)),!0):!1};function F$(t,e){if(t.state.readOnly)return!1;let r="delete.selection",{state:a}=t,i=a.changeByRange(d=>{let{from:f,to:m}=d;if(f==m){let u=e(d);uf&&(r="delete.forward",u=iZ(t,u,!0)),f=Math.min(f,u),m=Math.max(m,u)}else f=iZ(t,f,!1),m=iZ(t,m,!0);return f==m?{range:d}:{changes:{from:f,to:m},range:Tr.cursor(f,fi(t)))a.between(e,e,(i,d)=>{ie&&(e=r?d:i)});return e}const B0e=(t,e)=>F$(t,r=>{let a=r.from,{state:i}=t,d=i.doc.lineAt(a),f,m;if(!e&&a>d.from&&aB0e(t,!1),Q0e=t=>B0e(t,!0),F0e=(t,e)=>F$(t,r=>{let a=r.head,{state:i}=t,d=i.doc.lineAt(a),f=i.charCategorizer(a);for(let m=null;;){if(a==(e?d.to:d.from)){a==r.head&&d.number!=(e?i.doc.lines:1)&&(a+=e?1:-1);break}let u=Xf(d.text,a-d.from,e)+d.from,p=d.text.slice(Math.min(a,u)-d.from,Math.max(a,u)-d.from),v=f(p);if(m!=null&&v!=m)break;(p!=" "||a!=r.head)&&(m=v),a=u}return a}),V0e=t=>F0e(t,!1),m5e=t=>F0e(t,!0),g5e=t=>F$(t,e=>{let r=t.lineBlockAt(e.head).to;return e.headF$(t,e=>{let r=t.moveToLineBoundary(e,!1).head;return e.head>r?r:Math.max(0,e.head-1)}),v5e=t=>F$(t,e=>{let r=t.moveToLineBoundary(e,!0).head;return e.head{if(t.readOnly)return!1;let r=t.changeByRange(a=>({changes:{from:a.from,to:a.to,insert:Oi.of(["",""])},range:Tr.cursor(a.from)}));return e(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0},b5e=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=t.changeByRange(a=>{if(!a.empty||a.from==0||a.from==t.doc.length)return{range:a};let i=a.from,d=t.doc.lineAt(i),f=i==d.from?i-1:Xf(d.text,i-d.from,!1)+d.from,m=i==d.to?i+1:Xf(d.text,i-d.from,!0)+d.from;return{changes:{from:f,to:m,insert:t.doc.slice(i,m).append(t.doc.slice(f,i))},range:Tr.cursor(m)}});return r.changes.empty?!1:(e(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function xU(t){let e=[],r=-1;for(let a of t.selection.ranges){let i=t.doc.lineAt(a.from),d=t.doc.lineAt(a.to);if(!a.empty&&a.to==d.from&&(d=t.doc.lineAt(a.to-1)),r>=i.number){let f=e[e.length-1];f.to=d.to,f.ranges.push(a)}else e.push({from:i.from,to:d.to,ranges:[a]});r=d.number+1}return e}function z0e(t,e,r){if(t.readOnly)return!1;let a=[],i=[];for(let d of xU(t)){if(r?d.to==t.doc.length:d.from==0)continue;let f=t.doc.lineAt(r?d.to+1:d.from-1),m=f.length+1;if(r){a.push({from:d.to,to:f.to},{from:d.from,insert:f.text+t.lineBreak});for(let u of d.ranges)i.push(Tr.range(Math.min(t.doc.length,u.anchor+m),Math.min(t.doc.length,u.head+m)))}else{a.push({from:f.from,to:d.from},{from:d.to,insert:t.lineBreak+f.text});for(let u of d.ranges)i.push(Tr.range(u.anchor-m,u.head-m))}}return a.length?(e(t.update({changes:a,scrollIntoView:!0,selection:Tr.create(i,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const O5e=({state:t,dispatch:e})=>z0e(t,e,!1),x5e=({state:t,dispatch:e})=>z0e(t,e,!0);function Z0e(t,e,r){if(t.readOnly)return!1;let a=[];for(let i of xU(t))r?a.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):a.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});return e(t.update({changes:a,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const S5e=({state:t,dispatch:e})=>Z0e(t,e,!1),w5e=({state:t,dispatch:e})=>Z0e(t,e,!0),T5e=t=>{if(t.state.readOnly)return!1;let{state:e}=t,r=e.changes(xU(e).map(({from:i,to:d})=>(i>0?i--:dt.moveVertically(i,!0)).map(r);return t.dispatch({changes:r,selection:a,scrollIntoView:!0,userEvent:"delete.line"}),!0};function C5e(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let r=rl(t).resolveInner(e),a=r.childBefore(e),i=r.childAfter(e),d;return a&&i&&a.to<=e&&i.from>=e&&(d=a.type.prop(ua.closedBy))&&d.indexOf(i.name)>-1&&t.doc.lineAt(a.to).from==t.doc.lineAt(i.from).from&&!/\S/.test(t.sliceDoc(a.to,i.from))?{from:a.to,to:i.from}:null}const k5e=H0e(!1),A5e=H0e(!0);function H0e(t){return({state:e,dispatch:r})=>{if(e.readOnly)return!1;let a=e.changeByRange(i=>{let{from:d,to:f}=i,m=e.doc.lineAt(d),u=!t&&d==f&&C5e(e,d);t&&(d=f=(f<=m.to?m:e.doc.lineAt(f)).to);let p=new pU(e,{simulateBreak:d,simulateDoubleBreak:!!u}),v=oie(p,d);for(v==null&&(v=Fv(/^\s*/.exec(e.doc.lineAt(d).text)[0],e.tabSize));fm.from&&d{let i=[];for(let f=a.from;f<=a.to;){let m=t.doc.lineAt(f);m.number>r&&(a.empty||a.to>m.from)&&(e(m,i,a),r=m.number),f=m.to+1}let d=t.changes(i);return{changes:i,range:Tr.range(d.mapPos(a.anchor,1),d.mapPos(a.head,1))}})}const P5e=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=Object.create(null),a=new pU(t,{overrideIndentation:d=>{let f=r[d];return f??-1}}),i=uie(t,(d,f,m)=>{let u=oie(a,d.from);if(u==null)return;/\S/.test(d.text)||(u=0);let p=/^\s*/.exec(d.text)[0],v=u$(t,u);(p!=v||m.fromt.readOnly?!1:(e(t.update(uie(t,(r,a)=>{a.push({from:r.from,insert:t.facet(SM)})}),{userEvent:"input.indent"})),!0),W0e=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(uie(t,(r,a)=>{let i=/^\s*/.exec(r.text)[0];if(!i)return;let d=Fv(i,t.tabSize),f=0,m=u$(t,Math.max(0,d-dH(t)));for(;f({mac:t.key,run:t.run,shift:t.shift}))),_5e=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:HAe,shift:n5e},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:UAe,shift:r5e},{key:"Alt-ArrowUp",run:O5e},{key:"Shift-Alt-ArrowUp",run:S5e},{key:"Alt-ArrowDown",run:x5e},{key:"Shift-Alt-ArrowDown",run:w5e},{key:"Escape",run:h5e},{key:"Mod-Enter",run:A5e},{key:"Alt-l",mac:"Ctrl-l",run:f5e},{key:"Mod-i",run:d5e,preventDefault:!0},{key:"Mod-[",run:W0e},{key:"Mod-]",run:U0e},{key:"Mod-Alt-\\",run:P5e},{key:"Shift-Mod-k",run:T5e},{key:"Shift-Mod-\\",run:JAe},{key:"Mod-/",run:SAe},{key:"Alt-A",run:TAe}].concat(E5e),R5e={key:"Tab",run:U0e,shift:W0e};function wl(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,r=arguments[1];if(r&&typeof r=="object"&&r.nodeType==null&&!Array.isArray(r)){for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){var i=r[a];typeof i=="string"?t.setAttribute(a,i):i!=null&&(t[a]=i)}e++}for(;et.normalize("NFKD"):t=>t;class iM{constructor(e,r,a=0,i=e.length,d,f){this.test=f,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(a,i),this.bufferStart=a,this.normalize=d?m=>d(Sde(m)):Sde,this.query=this.normalize(r)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Uf(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let r=Fae(e),a=this.bufferStart+this.bufferPos;this.bufferPos+=vp(e);let i=this.normalize(r);for(let d=0,f=a;;d++){let m=i.charCodeAt(d),u=this.match(m,f);if(d==i.length-1){if(u)return this.value=u,this;break}f==a&&dthis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let r=this.matchPos<=this.to&&this.re.exec(this.curLine);if(r){let a=this.curLineStart+r.index,i=a+r[0].length;if(this.matchPos=pH(this.text,i+(a==i?1:0)),a==this.curLineStart+this.curLine.length&&this.nextLine(),(athis.value.to)&&(!this.test||this.test(a,i,r)))return this.value={from:a,to:i,match:r},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=a||i.to<=r){let m=new jP(r,e.sliceString(r,a));return Bre.set(e,m),m}if(i.from==r&&i.to==a)return i;let{text:d,from:f}=i;return f>r&&(d=e.sliceString(r,f)+d,f=r),i.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,r=this.re.exec(this.flat.text);if(r&&!r[0]&&r.index==e&&(this.re.lastIndex=e+1,r=this.re.exec(this.flat.text)),r){let a=this.flat.from+r.index,i=a+r[0].length;if((this.flat.to>=this.to||r.index+r[0].length<=this.flat.text.length-10)&&(!this.test||this.test(a,i,r)))return this.value={from:a,to:i,match:r},this.matchPos=pH(this.text,i+(a==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=jP.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(G0e.prototype[Symbol.iterator]=j0e.prototype[Symbol.iterator]=function(){return this});function D5e(t){try{return new RegExp(t,fie),!0}catch{return!1}}function pH(t,e){if(e>=t.length)return e;let r=t.lineAt(e),a;for(;e=56320&&a<57344;)e++;return e}function Ase(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),r=wl("input",{class:"cm-textfield",name:"line",value:e}),a=wl("form",{class:"cm-gotoLine",onkeydown:d=>{d.keyCode==27?(d.preventDefault(),t.dispatch({effects:vH.of(!1)}),t.focus()):d.keyCode==13&&(d.preventDefault(),i())},onsubmit:d=>{d.preventDefault(),i()}},wl("label",t.state.phrase("Go to line"),": ",r)," ",wl("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function i(){let d=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(r.value);if(!d)return;let{state:f}=t,m=f.doc.lineAt(f.selection.main.head),[,u,p,v,y]=d,b=v?+v.slice(1):0,x=p?+p:m.number;if(p&&y){let w=x/100;u&&(w=w*(u=="-"?-1:1)+m.number/f.doc.lines),x=Math.round(f.doc.lines*w)}else p&&u&&(x=x*(u=="-"?-1:1)+m.number);let k=f.doc.line(Math.max(1,Math.min(f.doc.lines,x))),C=Tr.cursor(k.from+Math.max(0,Math.min(b,k.length)));t.dispatch({effects:[vH.of(!1),Xo.scrollIntoView(C.from,{y:"center"})],selection:C}),t.focus()}return{dom:a}}const vH=pa.define(),wde=xf.define({create(){return!0},update(t,e){for(let r of e.effects)r.is(vH)&&(t=r.value);return t},provide:t=>a$.from(t,e=>e?Ase:null)}),$5e=t=>{let e=s$(t,Ase);if(!e){let r=[vH.of(!0)];t.state.field(wde,!1)==null&&r.push(pa.appendConfig.of([wde,L5e])),t.dispatch({effects:r}),e=s$(t,Ase)}return e&&e.dom.querySelector("input").select(),!0},L5e=Xo.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),I5e={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},q0e=ss.define({combine(t){return ry(t,I5e,{highlightWordAroundCursor:(e,r)=>e||r,minSelectionLength:Math.min,maxMatches:Math.min})}});function N5e(t){let e=[z5e,V5e];return t&&e.push(q0e.of(t)),e}const B5e=Bs.mark({class:"cm-selectionMatch"}),Q5e=Bs.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Tde(t,e,r,a){return(r==0||t(e.sliceDoc(r-1,r))!=Jl.Word)&&(a==e.doc.length||t(e.sliceDoc(a,a+1))!=Jl.Word)}function F5e(t,e,r,a){return t(e.sliceDoc(r,r+1))==Jl.Word&&t(e.sliceDoc(a-1,a))==Jl.Word}const V5e=eu.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(q0e),{state:r}=t,a=r.selection;if(a.ranges.length>1)return Bs.none;let i=a.main,d,f=null;if(i.empty){if(!e.highlightWordAroundCursor)return Bs.none;let u=r.wordAt(i.head);if(!u)return Bs.none;f=r.charCategorizer(i.head),d=r.sliceDoc(u.from,u.to)}else{let u=i.to-i.from;if(u200)return Bs.none;if(e.wholeWords){if(d=r.sliceDoc(i.from,i.to),f=r.charCategorizer(i.head),!(Tde(f,r,i.from,i.to)&&F5e(f,r,i.from,i.to)))return Bs.none}else if(d=r.sliceDoc(i.from,i.to).trim(),!d)return Bs.none}let m=[];for(let u of t.visibleRanges){let p=new iM(r.doc,d,u.from,u.to);for(;!p.next().done;){let{from:v,to:y}=p.value;if((!f||Tde(f,r,v,y))&&(i.empty&&v<=i.from&&y>=i.to?m.push(Q5e.range(v,y)):(v>=i.to||y<=i.from)&&m.push(B5e.range(v,y)),m.length>e.maxMatches))return Bs.none}}return Bs.set(m)}},{decorations:t=>t.decorations}),z5e=Xo.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Z5e=({state:t,dispatch:e})=>{let{selection:r}=t,a=Tr.create(r.ranges.map(i=>t.wordAt(i.head)||Tr.cursor(i.head)),r.mainIndex);return a.eq(r)?!1:(e(t.update({selection:a})),!0)};function H5e(t,e){let{main:r,ranges:a}=t.selection,i=t.wordAt(r.head),d=i&&i.from==r.from&&i.to==r.to;for(let f=!1,m=new iM(t.doc,e,a[a.length-1].to);;)if(m.next(),m.done){if(f)return null;m=new iM(t.doc,e,0,Math.max(0,a[a.length-1].from-1)),f=!0}else{if(f&&a.some(u=>u.from==m.value.from))continue;if(d){let u=t.wordAt(m.value.from);if(!u||u.from!=m.value.from||u.to!=m.value.to)continue}return m.value}}const U5e=({state:t,dispatch:e})=>{let{ranges:r}=t.selection;if(r.some(d=>d.from===d.to))return Z5e({state:t,dispatch:e});let a=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some(d=>t.sliceDoc(d.from,d.to)!=a))return!1;let i=H5e(t,a);return i?(e(t.update({selection:t.selection.addRange(Tr.range(i.from,i.to),!1),effects:Xo.scrollIntoView(i.to)})),!0):!1},TM=ss.define({combine(t){return ry(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new r4e(e),scrollToMatch:e=>Xo.scrollIntoView(e)})}});class K0e{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||D5e(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(r,a)=>a=="n"?` +`:a=="r"?"\r":a=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new G5e(this):new Y5e(this)}getCursor(e,r=0,a){let i=e.doc?e:Ia.create({doc:e});return a==null&&(a=i.doc.length),this.regexp?NP(this,i,r,a):IP(this,i,r,a)}}class J0e{constructor(e){this.spec=e}}function IP(t,e,r,a){return new iM(e.doc,t.unquoted,r,a,t.caseSensitive?void 0:i=>i.toLowerCase(),t.wholeWord?W5e(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function W5e(t,e){return(r,a,i,d)=>((d>r||d+i.length=r)return null;i.push(a.value)}return i}highlight(e,r,a,i){let d=IP(this.spec,e,Math.max(0,r-this.spec.unquoted.length),Math.min(a+this.spec.unquoted.length,e.doc.length));for(;!d.next().done;)i(d.value.from,d.value.to)}}function NP(t,e,r,a){return new G0e(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?X5e(e.charCategorizer(e.selection.main.head)):void 0},r,a)}function yH(t,e){return t.slice(Xf(t,e,!1),e)}function bH(t,e){return t.slice(e,Xf(t,e))}function X5e(t){return(e,r,a)=>!a[0].length||(t(yH(a.input,a.index))!=Jl.Word||t(bH(a.input,a.index))!=Jl.Word)&&(t(bH(a.input,a.index+a[0].length))!=Jl.Word||t(yH(a.input,a.index+a[0].length))!=Jl.Word)}class G5e extends J0e{nextMatch(e,r,a){let i=NP(this.spec,e,a,e.doc.length).next();return i.done&&(i=NP(this.spec,e,0,r).next()),i.done?null:i.value}prevMatchInRange(e,r,a){for(let i=1;;i++){let d=Math.max(r,a-i*1e4),f=NP(this.spec,e,d,a),m=null;for(;!f.next().done;)m=f.value;if(m&&(d==r||m.from>d+10))return m;if(d==r)return null}}prevMatch(e,r,a){return this.prevMatchInRange(e,0,r)||this.prevMatchInRange(e,a,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(r,a)=>a=="$"?"$":a=="&"?e.match[0]:a!="0"&&+a=r)return null;i.push(a.value)}return i}highlight(e,r,a,i){let d=NP(this.spec,e,Math.max(0,r-250),Math.min(a+250,e.doc.length));for(;!d.next().done;)i(d.value.from,d.value.to)}}const f$=pa.define(),die=pa.define(),vS=xf.define({create(t){return new Qre(Pse(t).create(),null)},update(t,e){for(let r of e.effects)r.is(f$)?t=new Qre(r.value.create(),t.panel):r.is(die)&&(t=new Qre(t.query,r.value?hie:null));return t},provide:t=>a$.from(t,e=>e.panel)});class Qre{constructor(e,r){this.query=e,this.panel=r}}const j5e=Bs.mark({class:"cm-searchMatch"}),q5e=Bs.mark({class:"cm-searchMatch cm-searchMatch-selected"}),K5e=eu.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(vS))}update(t){let e=t.state.field(vS);(e!=t.startState.field(vS)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Bs.none;let{view:r}=this,a=new OS;for(let i=0,d=r.visibleRanges,f=d.length;id[i+1].from-2*250;)u=d[++i].to;t.highlight(r.state,m,u,(p,v)=>{let y=r.state.selection.ranges.some(b=>b.from==p&&b.to==v);a.add(p,v,y?q5e:j5e)})}return a.finish()}},{decorations:t=>t.decorations});function V$(t){return e=>{let r=e.state.field(vS,!1);return r&&r.query.spec.valid?t(e,r):n1e(e)}}const OH=V$((t,{query:e})=>{let{to:r}=t.state.selection.main,a=e.nextMatch(t.state,r,r);if(!a)return!1;let i=Tr.single(a.from,a.to),d=t.state.facet(TM);return t.dispatch({selection:i,effects:[mie(t,a),d.scrollToMatch(i.main,t)],userEvent:"select.search"}),t1e(t),!0}),xH=V$((t,{query:e})=>{let{state:r}=t,{from:a}=r.selection.main,i=e.prevMatch(r,a,a);if(!i)return!1;let d=Tr.single(i.from,i.to),f=t.state.facet(TM);return t.dispatch({selection:d,effects:[mie(t,i),f.scrollToMatch(d.main,t)],userEvent:"select.search"}),t1e(t),!0}),J5e=V$((t,{query:e})=>{let r=e.matchAll(t.state,1e3);return!r||!r.length?!1:(t.dispatch({selection:Tr.create(r.map(a=>Tr.range(a.from,a.to))),userEvent:"select.search.matches"}),!0)}),e4e=({state:t,dispatch:e})=>{let r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;let{from:a,to:i}=r.main,d=[],f=0;for(let m=new iM(t.doc,t.sliceDoc(a,i));!m.next().done;){if(d.length>1e3)return!1;m.value.from==a&&(f=d.length),d.push(Tr.range(m.value.from,m.value.to))}return e(t.update({selection:Tr.create(d,f),userEvent:"select.search.matches"})),!0},Cde=V$((t,{query:e})=>{let{state:r}=t,{from:a,to:i}=r.selection.main;if(r.readOnly)return!1;let d=e.nextMatch(r,a,a);if(!d)return!1;let f=[],m,u,p=[];if(d.from==a&&d.to==i&&(u=r.toText(e.getReplacement(d)),f.push({from:d.from,to:d.to,insert:u}),d=e.nextMatch(r,d.from,d.to),p.push(Xo.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(a).number)+"."))),d){let v=f.length==0||f[0].from>=d.to?0:d.to-d.from-u.length;m=Tr.single(d.from-v,d.to-v),p.push(mie(t,d)),p.push(r.facet(TM).scrollToMatch(m.main,t))}return t.dispatch({changes:f,selection:m,effects:p,userEvent:"input.replace"}),!0}),t4e=V$((t,{query:e})=>{if(t.state.readOnly)return!1;let r=e.matchAll(t.state,1e9).map(i=>{let{from:d,to:f}=i;return{from:d,to:f,insert:e.getReplacement(i)}});if(!r.length)return!1;let a=t.state.phrase("replaced $ matches",r.length)+".";return t.dispatch({changes:r,effects:Xo.announce.of(a),userEvent:"input.replace.all"}),!0});function hie(t){return t.state.facet(TM).createPanel(t)}function Pse(t,e){var r,a,i,d,f;let m=t.selection.main,u=m.empty||m.to>m.from+100?"":t.sliceDoc(m.from,m.to);if(e&&!u)return e;let p=t.facet(TM);return new K0e({search:((r=e==null?void 0:e.literal)!==null&&r!==void 0?r:p.literal)?u:u.replace(/\n/g,"\\n"),caseSensitive:(a=e==null?void 0:e.caseSensitive)!==null&&a!==void 0?a:p.caseSensitive,literal:(i=e==null?void 0:e.literal)!==null&&i!==void 0?i:p.literal,regexp:(d=e==null?void 0:e.regexp)!==null&&d!==void 0?d:p.regexp,wholeWord:(f=e==null?void 0:e.wholeWord)!==null&&f!==void 0?f:p.wholeWord})}function e1e(t){let e=s$(t,hie);return e&&e.dom.querySelector("[main-field]")}function t1e(t){let e=e1e(t);e&&e==t.root.activeElement&&e.select()}const n1e=t=>{let e=t.state.field(vS,!1);if(e&&e.panel){let r=e1e(t);if(r&&r!=t.root.activeElement){let a=Pse(t.state,e.query.spec);a.valid&&t.dispatch({effects:f$.of(a)}),r.focus(),r.select()}}else t.dispatch({effects:[die.of(!0),e?f$.of(Pse(t.state,e.query.spec)):pa.appendConfig.of(s4e)]});return!0},r1e=t=>{let e=t.state.field(vS,!1);if(!e||!e.panel)return!1;let r=s$(t,hie);return r&&r.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:die.of(!1)}),!0},n4e=[{key:"Mod-f",run:n1e,scope:"editor search-panel"},{key:"F3",run:OH,shift:xH,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:OH,shift:xH,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:r1e,scope:"editor search-panel"},{key:"Mod-Shift-l",run:e4e},{key:"Mod-Alt-g",run:$5e},{key:"Mod-d",run:U5e,preventDefault:!0}];class r4e{constructor(e){this.view=e;let r=this.query=e.state.field(vS).query.spec;this.commit=this.commit.bind(this),this.searchField=wl("input",{value:r.search,placeholder:Jm(e,"Find"),"aria-label":Jm(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=wl("input",{value:r.replace,placeholder:Jm(e,"Replace"),"aria-label":Jm(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=wl("input",{type:"checkbox",name:"case",form:"",checked:r.caseSensitive,onchange:this.commit}),this.reField=wl("input",{type:"checkbox",name:"re",form:"",checked:r.regexp,onchange:this.commit}),this.wordField=wl("input",{type:"checkbox",name:"word",form:"",checked:r.wholeWord,onchange:this.commit});function a(i,d,f){return wl("button",{class:"cm-button",name:i,onclick:d,type:"button"},f)}this.dom=wl("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,a("next",()=>OH(e),[Jm(e,"next")]),a("prev",()=>xH(e),[Jm(e,"previous")]),a("select",()=>J5e(e),[Jm(e,"all")]),wl("label",null,[this.caseField,Jm(e,"match case")]),wl("label",null,[this.reField,Jm(e,"regexp")]),wl("label",null,[this.wordField,Jm(e,"by word")]),...e.state.readOnly?[]:[wl("br"),this.replaceField,a("replace",()=>Cde(e),[Jm(e,"replace")]),a("replaceAll",()=>t4e(e),[Jm(e,"replace all")])],wl("button",{name:"close",onclick:()=>r1e(e),"aria-label":Jm(e,"close"),type:"button"},["×"])])}commit(){let e=new K0e({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:f$.of(e)}))}keydown(e){mCe(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?xH:OH)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Cde(this.view))}update(e){for(let r of e.transactions)for(let a of r.effects)a.is(f$)&&!a.value.eq(this.query)&&this.setQuery(a.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(TM).top}}function Jm(t,e){return t.state.phrase(e)}const lZ=30,cZ=/[\s\.,:;?!]/;function mie(t,{from:e,to:r}){let a=t.state.doc.lineAt(e),i=t.state.doc.lineAt(r).to,d=Math.max(a.from,e-lZ),f=Math.min(i,r+lZ),m=t.state.sliceDoc(d,f);if(d!=a.from){for(let u=0;um.length-lZ;u--)if(!cZ.test(m[u-1])&&cZ.test(m[u])){m=m.slice(0,u);break}}return Xo.announce.of(`${t.state.phrase("current match")}. ${m} ${t.state.phrase("on line")} ${a.number}.`)}const o4e=Xo.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),s4e=[vS,Mp.low(K5e),o4e];class gie{constructor(e,r,a){this.state=e,this.pos=r,this.explicit=a,this.abortListeners=[]}tokenBefore(e){let r=rl(this.state).resolveInner(this.pos,-1);for(;r&&e.indexOf(r.name)<0;)r=r.parent;return r?{from:r.from,to:this.pos,text:this.state.sliceDoc(r.from,this.pos),type:r.type}:null}matchBefore(e){let r=this.state.doc.lineAt(this.pos),a=Math.max(r.from,this.pos-250),i=r.text.slice(a-r.from,this.pos-r.from),d=i.search(o1e(e,!1));return d<0?null:{from:a+d,to:this.pos,text:i.slice(d)}}get aborted(){return this.abortListeners==null}addEventListener(e,r){e=="abort"&&this.abortListeners&&this.abortListeners.push(r)}}function kde(t){let e=Object.keys(t).join(""),r=/\w/.test(e);return r&&(e=e.replace(/\w/g,"")),`[${r?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function a4e(t){let e=Object.create(null),r=Object.create(null);for(let{label:i}of t){e[i[0]]=!0;for(let d=1;dtypeof i=="string"?{label:i}:i),[r,a]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:a4e(e);return i=>{let d=i.matchBefore(a);return d||i.explicit?{from:d?d.from:i.pos,options:e,validFor:r}:null}}function pie(t,e){return r=>{for(let a=rl(r.state).resolveInner(r.pos,-1);a;a=a.parent){if(t.indexOf(a.name)>-1)return null;if(a.type.isTop)break}return e(r)}}class Ade{constructor(e,r,a,i){this.completion=e,this.source=r,this.match=a,this.score=i}}function yS(t){return t.selection.main.from}function o1e(t,e){var r;let{source:a}=t,i=e&&a[0]!="^",d=a[a.length-1]!="$";return!i&&!d?t:new RegExp(`${i?"^":""}(?:${a})${d?"$":""}`,(r=t.flags)!==null&&r!==void 0?r:t.ignoreCase?"i":"")}const s1e=TO.define();function i4e(t,e,r,a){let{main:i}=t.selection,d=r-i.from,f=a-i.from;return Object.assign(Object.assign({},t.changeByRange(m=>m!=i&&r!=a&&t.sliceDoc(m.from+d,m.from+f)!=t.sliceDoc(r,a)?{range:m}:{changes:{from:m.from+d,to:a==i.from?m.to:m.from+f,insert:e},range:Tr.cursor(m.from+d+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Pde=new WeakMap;function l4e(t){if(!Array.isArray(t))return t;let e=Pde.get(t);return e||Pde.set(t,e=SU(t)),e}const vie=pa.define(),d$=pa.define();class c4e{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let r=0;r=48&&V<=57||V>=97&&V<=122?2:V>=65&&V<=90?1:0:(N=Fae(V))!=N.toLowerCase()?1:N!=N.toUpperCase()?2:0;(!R||F==1&&w||I==0&&F!=0)&&(r[y]==V||a[y]==V&&(b=!0)?f[y++]=R:f.length&&(T=!1)),I=F,R+=vp(V)}return y==u&&f[0]==0&&T?this.result(-100+(b?-200:0),f,e):x==u&&k==0?this.ret(-200-e.length+(C==e.length?0:-100),[0,C]):m>-1?this.ret(-700-e.length,[m,m+this.pattern.length]):x==u?this.ret(-200+-700-e.length,[k,C]):y==u?this.result(-100+(b?-200:0)+-700+(T?0:-1100),f,e):r.length==2?!1:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,r,a){let i=[],d=0;for(let f of r){let m=f+(this.astral?vp(Uf(a,f)):1);d&&i[d-1]==f?i[d-1]=m:(i[d++]=f,i[d++]=m)}return this.ret(e-a.length,i)}}const Cd=ss.define({combine(t){return ry(t,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:u4e,compareCompletions:(e,r)=>e.label.localeCompare(r.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,r)=>e&&r,closeOnBlur:(e,r)=>e&&r,icons:(e,r)=>e&&r,tooltipClass:(e,r)=>a=>Mde(e(a),r(a)),optionClass:(e,r)=>a=>Mde(e(a),r(a)),addToOptions:(e,r)=>e.concat(r)})}});function Mde(t,e){return t?e?t+" "+e:t:e}function u4e(t,e,r,a,i,d){let f=t.textDirection==gc.RTL,m=f,u=!1,p="top",v,y,b=e.left-i.left,x=i.right-e.right,k=a.right-a.left,C=a.bottom-a.top;if(m&&b=C||R>e.top?v=r.bottom-e.top:(p="bottom",v=e.bottom-r.top)}let w=(e.bottom-e.top)/d.offsetHeight,T=(e.right-e.left)/d.offsetWidth;return{style:`${p}: ${v/w}px; max-width: ${y/T}px`,class:"cm-completionInfo-"+(u?f?"left-narrow":"right-narrow":m?"left":"right")}}function f4e(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(r){let a=document.createElement("div");return a.classList.add("cm-completionIcon"),r.type&&a.classList.add(...r.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),a.setAttribute("aria-hidden","true"),a},position:20}),e.push({render(r,a,i,d){let f=document.createElement("span");f.className="cm-completionLabel";let m=r.displayLabel||r.label,u=0;for(let p=0;pu&&f.appendChild(document.createTextNode(m.slice(u,v)));let b=f.appendChild(document.createElement("span"));b.appendChild(document.createTextNode(m.slice(v,y))),b.className="cm-completionMatchedText",u=y}return ur.position-a.position).map(r=>r.render)}function Fre(t,e,r){if(t<=r)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let i=Math.floor(e/r);return{from:i*r,to:(i+1)*r}}let a=Math.floor((t-e)/r);return{from:t-(a+1)*r,to:t-a*r}}class d4e{constructor(e,r,a){this.view=e,this.stateField=r,this.applyCompletion=a,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:u=>this.placeInfo(u),key:this},this.space=null,this.currentClass="";let i=e.state.field(r),{options:d,selected:f}=i.open,m=e.state.facet(Cd);this.optionContent=f4e(m),this.optionClass=m.optionClass,this.tooltipClass=m.tooltipClass,this.range=Fre(d.length,f,m.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",u=>{let{options:p}=e.state.field(r).open;for(let v=u.target,y;v&&v!=this.dom;v=v.parentNode)if(v.nodeName=="LI"&&(y=/-(\d+)$/.exec(v.id))&&+y[1]{let p=e.state.field(this.stateField,!1);p&&p.tooltip&&e.state.facet(Cd).closeOnBlur&&u.relatedTarget!=e.contentDOM&&e.dispatch({effects:d$.of(null)})}),this.showOptions(d,i.id)}mount(){this.updateSel()}showOptions(e,r){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,r,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var r;let a=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),a!=i){let{options:d,selected:f,disabled:m}=a.open;(!i.open||i.open.options!=d)&&(this.range=Fre(d.length,f,e.state.facet(Cd).maxRenderedOptions),this.showOptions(d,a.id)),this.updateSel(),m!=((r=i.open)===null||r===void 0?void 0:r.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!m)}}updateTooltipClass(e){let r=this.tooltipClass(e);if(r!=this.currentClass){for(let a of this.currentClass.split(" "))a&&this.dom.classList.remove(a);for(let a of r.split(" "))a&&this.dom.classList.add(a);this.currentClass=r}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),r=e.open;if((r.selected>-1&&r.selected=this.range.to)&&(this.range=Fre(r.options.length,r.selected,this.view.state.facet(Cd).maxRenderedOptions),this.showOptions(r.options,e.id)),this.updateSelectedOption(r.selected)){this.destroyInfo();let{completion:a}=r.options[r.selected],{info:i}=a;if(!i)return;let d=typeof i=="string"?document.createTextNode(i):i(a);if(!d)return;"then"in d?d.then(f=>{f&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(f,a)}).catch(f=>Cp(this.view.state,f,"completion info")):this.addInfoPane(d,a)}}addInfoPane(e,r){this.destroyInfo();let a=this.info=document.createElement("div");if(a.className="cm-tooltip cm-completionInfo",e.nodeType!=null)a.appendChild(e),this.infoDestroy=null;else{let{dom:i,destroy:d}=e;a.appendChild(i),this.infoDestroy=d||null}this.dom.appendChild(a),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let r=null;for(let a=this.list.firstChild,i=this.range.from;a;a=a.nextSibling,i++)a.nodeName!="LI"||!a.id?i--:i==e?a.hasAttribute("aria-selected")||(a.setAttribute("aria-selected","true"),r=a):a.hasAttribute("aria-selected")&&a.removeAttribute("aria-selected");return r&&m4e(this.list,r),r}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let r=this.dom.getBoundingClientRect(),a=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),d=this.space;if(!d){let f=this.dom.ownerDocument.defaultView||window;d={left:0,top:0,right:f.innerWidth,bottom:f.innerHeight}}return i.top>Math.min(d.bottom,r.bottom)-10||i.bottoma.from||a.from==0))if(d=b,typeof p!="string"&&p.header)i.appendChild(p.header(p));else{let x=i.appendChild(document.createElement("completion-section"));x.textContent=b}}const v=i.appendChild(document.createElement("li"));v.id=r+"-"+f,v.setAttribute("role","option");let y=this.optionClass(m);y&&(v.className=y);for(let b of this.optionContent){let x=b(m,this.view.state,this.view,u);x&&v.appendChild(x)}}return a.from&&i.classList.add("cm-completionListIncompleteTop"),a.tonew d4e(r,t,e)}function m4e(t,e){let r=t.getBoundingClientRect(),a=e.getBoundingClientRect(),i=r.height/t.offsetHeight;a.topr.bottom&&(t.scrollTop+=(a.bottom-r.bottom)/i)}function Ede(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function g4e(t,e){let r=[],a=null,i=u=>{r.push(u);let{section:p}=u.completion;if(p){a||(a=[]);let v=typeof p=="string"?p:p.name;a.some(y=>y.name==v)||a.push(typeof p=="string"?{name:v}:p)}};for(let u of t)if(u.hasResult()){let p=u.result.getMatch;if(u.result.filter===!1)for(let v of u.result.options)i(new Ade(v,u.source,p?p(v):[],1e9-r.length));else{let v=new c4e(e.sliceDoc(u.from,u.to));for(let y of u.result.options)if(v.match(y.label)){let b=y.displayLabel?p?p(y,v.matched):[]:v.matched;i(new Ade(y,u.source,b,v.score+(y.boost||0)))}}}if(a){let u=Object.create(null),p=0,v=(y,b)=>{var x,k;return((x=y.rank)!==null&&x!==void 0?x:1e9)-((k=b.rank)!==null&&k!==void 0?k:1e9)||(y.namev.score-p.score||m(p.completion,v.completion))){let p=u.completion;!f||f.label!=p.label||f.detail!=p.detail||f.type!=null&&p.type!=null&&f.type!=p.type||f.apply!=p.apply||f.boost!=p.boost?d.push(u):Ede(u.completion)>Ede(f)&&(d[d.length-1]=u),f=u.completion}return d}class FP{constructor(e,r,a,i,d,f){this.options=e,this.attrs=r,this.tooltip=a,this.timestamp=i,this.selected=d,this.disabled=f}setSelected(e,r){return e==this.selected||e>=this.options.length?this:new FP(this.options,_de(r,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,r,a,i,d){let f=g4e(e,r);if(!f.length)return i&&e.some(u=>u.state==1)?new FP(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let m=r.facet(Cd).selectOnOpen?0:-1;if(i&&i.selected!=m&&i.selected!=-1){let u=i.options[i.selected].completion;for(let p=0;pp.hasResult()?Math.min(u,p.from):u,1e8),create:O4e,above:d.aboveCursor},i?i.timestamp:Date.now(),m,!1)}map(e){return new FP(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class SH{constructor(e,r,a){this.active=e,this.id=r,this.open=a}static start(){return new SH(y4e,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:r}=e,a=r.facet(Cd),d=(a.override||r.languageDataAt("autocomplete",yS(r)).map(l4e)).map(m=>(this.active.find(p=>p.source==m)||new em(m,this.active.some(p=>p.state!=0)?1:0)).update(e,a));d.length==this.active.length&&d.every((m,u)=>m==this.active[u])&&(d=this.active);let f=this.open;f&&e.docChanged&&(f=f.map(e.changes)),e.selection||d.some(m=>m.hasResult()&&e.changes.touchesRange(m.from,m.to))||!p4e(d,this.active)?f=FP.build(d,r,this.id,f,a):f&&f.disabled&&!d.some(m=>m.state==1)&&(f=null),!f&&d.every(m=>m.state!=1)&&d.some(m=>m.hasResult())&&(d=d.map(m=>m.hasResult()?new em(m.source,0):m));for(let m of e.effects)m.is(i1e)&&(f=f&&f.setSelected(m.value,this.id));return d==this.active&&f==this.open?this:new SH(d,this.id,f)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:v4e}}function p4e(t,e){if(t==e)return!0;for(let r=0,a=0;;){for(;r-1&&(r["aria-activedescendant"]=t+"-"+e),r}const y4e=[];function Mse(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class em{constructor(e,r,a=-1){this.source=e,this.state=r,this.explicitPos=a}hasResult(){return!1}update(e,r){let a=Mse(e),i=this;a?i=i.handleUserEvent(e,a,r):e.docChanged?i=i.handleChange(e):e.selection&&i.state!=0&&(i=new em(i.source,0));for(let d of e.effects)if(d.is(vie))i=new em(i.source,1,d.value?yS(e.state):-1);else if(d.is(d$))i=new em(i.source,0);else if(d.is(a1e))for(let f of d.value)f.source==i.source&&(i=f);return i}handleUserEvent(e,r,a){return r=="delete"||!a.activateOnTyping?this.map(e.changes):new em(this.source,1)}handleChange(e){return e.changes.touchesRange(yS(e.startState))?new em(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new em(this.source,this.state,e.mapPos(this.explicitPos))}}class qP extends em{constructor(e,r,a,i,d){super(e,2,r),this.result=a,this.from=i,this.to=d}hasResult(){return!0}handleUserEvent(e,r,a){var i;let d=e.changes.mapPos(this.from),f=e.changes.mapPos(this.to,1),m=yS(e.state);if((this.explicitPos<0?m<=d:mf||r=="delete"&&yS(e.startState)==this.from)return new em(this.source,r=="input"&&a.activateOnTyping?1:0);let u=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),p;return b4e(this.result.validFor,e.state,d,f)?new qP(this.source,u,this.result,d,f):this.result.update&&(p=this.result.update(this.result,d,f,new gie(e.state,m,u>=0)))?new qP(this.source,u,p,p.from,(i=p.to)!==null&&i!==void 0?i:yS(e.state)):new em(this.source,1,u)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new em(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new qP(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}function b4e(t,e,r,a){if(!t)return!1;let i=e.sliceDoc(r,a);return typeof t=="function"?t(i,r,a,e):o1e(t,!0).test(i)}const a1e=pa.define({map(t,e){return t.map(r=>r.map(e))}}),i1e=pa.define(),ag=xf.define({create(){return SH.start()},update(t,e){return t.update(e)},provide:t=>[jae.from(t,e=>e.tooltip),Xo.contentAttributes.from(t,e=>e.attrs)]});function l1e(t,e){const r=e.completion.apply||e.completion.label;let a=t.state.field(ag).active.find(i=>i.source==e.source);return a instanceof qP?(typeof r=="string"?t.dispatch(Object.assign(Object.assign({},i4e(t.state,r,a.from,a.to)),{annotations:s1e.of(e.completion)})):r(t,e.completion,a.from,a.to),!0):!1}const O4e=h4e(ag,l1e);function uZ(t,e="option"){return r=>{let a=r.state.field(ag,!1);if(!a||!a.open||a.open.disabled||Date.now()-a.open.timestamp-1?a.open.selected+i*(t?1:-1):t?0:f-1;return m<0?m=e=="page"?0:f-1:m>=f&&(m=e=="page"?f-1:0),r.dispatch({effects:i1e.of(m)}),!0}}const x4e=t=>{let e=t.state.field(ag,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestampt.state.field(ag,!1)?(t.dispatch({effects:vie.of(!0)}),!0):!1,w4e=t=>{let e=t.state.field(ag,!1);return!e||!e.active.some(r=>r.state!=0)?!1:(t.dispatch({effects:d$.of(null)}),!0)};class T4e{constructor(e,r){this.active=e,this.context=r,this.time=Date.now(),this.updates=[],this.done=void 0}}const C4e=50,k4e=1e3,A4e=eu.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let e of t.state.field(ag).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(ag);if(!t.selectionSet&&!t.docChanged&&t.startState.field(ag)==e)return;let r=t.transactions.some(a=>(a.selection||a.docChanged)&&!Mse(a));for(let a=0;aC4e&&Date.now()-i.time>k4e){for(let d of i.context.abortListeners)try{d()}catch(f){Cp(this.view.state,f)}i.context.abortListeners=null,this.running.splice(a--,1)}else i.updates.push(...t.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=e.active.some(a=>a.state==1&&!this.running.some(i=>i.active.source==a.source))?setTimeout(()=>this.startUpdate(),50):-1,this.composing!=0)for(let a of t.transactions)Mse(a)=="input"?this.composing=2:this.composing==2&&a.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view,e=t.field(ag);for(let r of e.active)r.state==1&&!this.running.some(a=>a.active.source==r.source)&&this.startQuery(r)}startQuery(t){let{state:e}=this.view,r=yS(e),a=new gie(e,r,t.explicitPos==r),i=new T4e(t,a);this.running.push(i),Promise.resolve(t.source(a)).then(d=>{i.context.aborted||(i.done=d||null,this.scheduleAccept())},d=>{this.view.dispatch({effects:d$.of(null)}),Cp(this.view.state,d)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Cd).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],r=this.view.state.facet(Cd);for(let a=0;af.source==i.active.source);if(d&&d.state==1)if(i.done==null){let f=new em(i.active.source,0);for(let m of i.updates)f=f.update(m,r);f.state!=1&&e.push(f)}else this.startQuery(d)}e.length&&this.view.dispatch({effects:a1e.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(ag,!1);if(e&&e.tooltip&&this.view.state.facet(Cd).closeOnBlur){let r=e.open&&zve(this.view,e.open.tooltip);(!r||!r.dom.contains(t.relatedTarget))&&this.view.dispatch({effects:d$.of(null)})}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:vie.of(!1)}),20),this.composing=0}}}),c1e=Xo.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class P4e{constructor(e,r,a,i){this.field=e,this.line=r,this.from=a,this.to=i}}class yie{constructor(e,r,a){this.field=e,this.from=r,this.to=a}map(e){let r=e.mapPos(this.from,-1,Yf.TrackDel),a=e.mapPos(this.to,1,Yf.TrackDel);return r==null||a==null?null:new yie(this.field,r,a)}}class bie{constructor(e,r){this.lines=e,this.fieldPositions=r}instantiate(e,r){let a=[],i=[r],d=e.doc.lineAt(r),f=/^\s*/.exec(d.text)[0];for(let u of this.lines){if(a.length){let p=f,v=/^\t*/.exec(u)[0].length;for(let y=0;ynew yie(u.field,i[u.line]+u.from,i[u.line]+u.to));return{text:a,ranges:m}}static parse(e){let r=[],a=[],i=[],d;for(let f of e.split(/\r\n?|\n/)){for(;d=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(f);){let m=d[1]?+d[1]:null,u=d[2]||d[3]||"",p=-1;for(let v=0;v=p&&y.field++}i.push(new P4e(p,a.length,d.index,d.index+u.length)),f=f.slice(0,d.index)+u+f.slice(d.index+d[0].length)}for(let m;m=/\\([{}])/.exec(f);){f=f.slice(0,m.index)+m[1]+f.slice(m.index+m[0].length);for(let u of i)u.line==a.length&&u.from>m.index&&(u.from--,u.to--)}a.push(f)}return new bie(a,i)}}let M4e=Bs.widget({widget:new class extends oy{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),E4e=Bs.mark({class:"cm-snippetField"});class CM{constructor(e,r){this.ranges=e,this.active=r,this.deco=Bs.set(e.map(a=>(a.from==a.to?M4e:E4e).range(a.from,a.to)))}map(e){let r=[];for(let a of this.ranges){let i=a.map(e);if(!i)return null;r.push(i)}return new CM(r,this.active)}selectionInsideField(e){return e.ranges.every(r=>this.ranges.some(a=>a.field==this.active&&a.from<=r.from&&a.to>=r.to))}}const z$=pa.define({map(t,e){return t&&t.map(e)}}),_4e=pa.define(),h$=xf.define({create(){return null},update(t,e){for(let r of e.effects){if(r.is(z$))return r.value;if(r.is(_4e)&&t)return new CM(t.ranges,r.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>Xo.decorations.from(t,e=>e?e.deco:Bs.none)});function Oie(t,e){return Tr.create(t.filter(r=>r.field==e).map(r=>Tr.range(r.from,r.to)))}function R4e(t){let e=bie.parse(t);return(r,a,i,d)=>{let{text:f,ranges:m}=e.instantiate(r.state,i),u={changes:{from:i,to:d,insert:Oi.of(f)},scrollIntoView:!0,annotations:a?s1e.of(a):void 0};if(m.length&&(u.selection=Oie(m,0)),m.length>1){let p=new CM(m,0),v=u.effects=[z$.of(p)];r.state.field(h$,!1)===void 0&&v.push(pa.appendConfig.of([h$,N4e,B4e,c1e]))}r.dispatch(r.state.update(u))}}function u1e(t){return({state:e,dispatch:r})=>{let a=e.field(h$,!1);if(!a||t<0&&a.active==0)return!1;let i=a.active+t,d=t>0&&!a.ranges.some(f=>f.field==i+t);return r(e.update({selection:Oie(a.ranges,i),effects:z$.of(d?null:new CM(a.ranges,i)),scrollIntoView:!0})),!0}}const D4e=({state:t,dispatch:e})=>t.field(h$,!1)?(e(t.update({effects:z$.of(null)})),!0):!1,$4e=u1e(1),L4e=u1e(-1),I4e=[{key:"Tab",run:$4e,shift:L4e},{key:"Escape",run:D4e}],Rde=ss.define({combine(t){return t.length?t[0]:I4e}}),N4e=Mp.highest(_S.compute([Rde],t=>t.facet(Rde)));function hc(t,e){return Object.assign(Object.assign({},e),{apply:R4e(t)})}const B4e=Xo.domEventHandlers({mousedown(t,e){let r=e.state.field(h$,!1),a;if(!r||(a=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let i=r.ranges.find(d=>d.from<=a&&d.to>=a);return!i||i.field==r.active?!1:(e.dispatch({selection:Oie(r.ranges,i.field),effects:z$.of(r.ranges.some(d=>d.field>i.field)?new CM(r.ranges,i.field):null),scrollIntoView:!0}),!0)}}),m$={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},kC=pa.define({map(t,e){let r=e.mapPos(t,-1,Yf.TrackAfter);return r??void 0}}),xie=new class extends _C{};xie.startSide=1;xie.endSide=-1;const f1e=xf.define({create(){return ji.empty},update(t,e){if(t=t.map(e.changes),e.selection){let r=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:a=>a>=r.from&&a<=r.to})}for(let r of e.effects)r.is(kC)&&(t=t.update({add:[xie.range(r.value,r.value+1)]}));return t}});function Q4e(){return[V4e,f1e]}const Vre="()[]{}<>";function d1e(t){for(let e=0;e{if((F4e?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let i=t.state.selection.main;if(a.length>2||a.length==2&&vp(Uf(a,0))==1||e!=i.from||r!=i.to)return!1;let d=H4e(t.state,a);return d?(t.dispatch(d),!0):!1}),z4e=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let a=h1e(t,t.selection.main.head).brackets||m$.brackets,i=null,d=t.changeByRange(f=>{if(f.empty){let m=U4e(t.doc,f.head);for(let u of a)if(u==m&&wU(t.doc,f.head)==d1e(Uf(u,0)))return{changes:{from:f.head-u.length,to:f.head+u.length},range:Tr.cursor(f.head-u.length)}}return{range:i=f}});return i||e(t.update(d,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},Z4e=[{key:"Backspace",run:z4e}];function H4e(t,e){let r=h1e(t,t.selection.main.head),a=r.brackets||m$.brackets;for(let i of a){let d=d1e(Uf(i,0));if(e==i)return d==i?X4e(t,i,a.indexOf(i+i+i)>-1,r):W4e(t,i,d,r.before||m$.before);if(e==d&&m1e(t,t.selection.main.from))return Y4e(t,i,d)}return null}function m1e(t,e){let r=!1;return t.field(f1e).between(0,t.doc.length,a=>{a==e&&(r=!0)}),r}function wU(t,e){let r=t.sliceString(e,e+2);return r.slice(0,vp(Uf(r,0)))}function U4e(t,e){let r=t.sliceString(e-2,e);return vp(Uf(r,0))==r.length?r:r.slice(1)}function W4e(t,e,r,a){let i=null,d=t.changeByRange(f=>{if(!f.empty)return{changes:[{insert:e,from:f.from},{insert:r,from:f.to}],effects:kC.of(f.to+e.length),range:Tr.range(f.anchor+e.length,f.head+e.length)};let m=wU(t.doc,f.head);return!m||/\s/.test(m)||a.indexOf(m)>-1?{changes:{insert:e+r,from:f.head},effects:kC.of(f.head+e.length),range:Tr.cursor(f.head+e.length)}:{range:i=f}});return i?null:t.update(d,{scrollIntoView:!0,userEvent:"input.type"})}function Y4e(t,e,r){let a=null,i=t.changeByRange(d=>d.empty&&wU(t.doc,d.head)==r?{changes:{from:d.head,to:d.head+r.length,insert:r},range:Tr.cursor(d.head+r.length)}:a={range:d});return a?null:t.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function X4e(t,e,r,a){let i=a.stringPrefixes||m$.stringPrefixes,d=null,f=t.changeByRange(m=>{if(!m.empty)return{changes:[{insert:e,from:m.from},{insert:e,from:m.to}],effects:kC.of(m.to+e.length),range:Tr.range(m.anchor+e.length,m.head+e.length)};let u=m.head,p=wU(t.doc,u),v;if(p==e){if(Dde(t,u))return{changes:{insert:e+e,from:u},effects:kC.of(u+e.length),range:Tr.cursor(u+e.length)};if(m1e(t,u)){let b=r&&t.sliceDoc(u,u+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:u,to:u+b.length,insert:b},range:Tr.cursor(u+b.length)}}}else{if(r&&t.sliceDoc(u-2*e.length,u)==e+e&&(v=$de(t,u-2*e.length,i))>-1&&Dde(t,v))return{changes:{insert:e+e+e+e,from:u},effects:kC.of(u+e.length),range:Tr.cursor(u+e.length)};if(t.charCategorizer(u)(p)!=Jl.Word&&$de(t,u,i)>-1&&!G4e(t,u,e,i))return{changes:{insert:e+e,from:u},effects:kC.of(u+e.length),range:Tr.cursor(u+e.length)}}return{range:d=m}});return d?null:t.update(f,{scrollIntoView:!0,userEvent:"input.type"})}function Dde(t,e){let r=rl(t).resolveInner(e+1);return r.parent&&r.from==e}function G4e(t,e,r,a){let i=rl(t).resolveInner(e,-1),d=a.reduce((f,m)=>Math.max(f,m.length),0);for(let f=0;f<5;f++){let m=t.sliceDoc(i.from,Math.min(i.to,i.from+r.length+d)),u=m.indexOf(r);if(!u||u>-1&&a.indexOf(m.slice(0,u))>-1){let v=i.firstChild;for(;v&&v.from==i.from&&v.to-v.from>r.length+u;){if(t.sliceDoc(v.to-r.length,v.to)==r)return!1;v=v.firstChild}return!0}let p=i.to==e&&i.parent;if(!p)break;i=p}return!1}function $de(t,e,r){let a=t.charCategorizer(e);if(a(t.sliceDoc(e-1,e))!=Jl.Word)return e;for(let i of r){let d=e-i.length;if(t.sliceDoc(d,e)==i&&a(t.sliceDoc(d-1,d))!=Jl.Word)return d}return-1}function LC(t={}){return[ag,Cd.of(t),A4e,j4e,c1e]}const g1e=[{key:"Ctrl-Space",run:S4e},{key:"Escape",run:w4e},{key:"ArrowDown",run:uZ(!0)},{key:"ArrowUp",run:uZ(!1)},{key:"PageDown",run:uZ(!0,"page")},{key:"PageUp",run:uZ(!1,"page")},{key:"Enter",run:x4e}],j4e=Mp.highest(_S.computeN([Cd],t=>t.facet(Cd).defaultKeymap?[g1e]:[]));class q4e{constructor(e,r,a){this.from=e,this.to=r,this.diagnostic=a}}class xC{constructor(e,r,a){this.diagnostics=e,this.panel=r,this.selected=a}static init(e,r,a){let i=e,d=a.facet(y1e).markerFilter;d&&(i=d(i));let f=Bs.set(i.map(m=>m.from==m.to||m.from==m.to-1&&a.doc.lineAt(m.from).to==m.from?Bs.widget({widget:new aPe(m),diagnostic:m}).range(m.from):Bs.mark({attributes:{class:"cm-lintRange cm-lintRange-"+m.severity+(m.markClass?" "+m.markClass:"")},diagnostic:m}).range(m.from,m.to)),!0);return new xC(f,r,lM(f))}}function lM(t,e=null,r=0){let a=null;return t.between(r,1e9,(i,d,{spec:f})=>{if(!(e&&f.diagnostic!=e))return a=new q4e(i,d,f.diagnostic),!1}),a}function K4e(t,e){let r=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(a=>a.is(p1e))||t.changes.touchesRange(r.from,r.to))}function J4e(t,e){return t.field(dg,!1)?e:e.concat(pa.appendConfig.of(cPe))}const p1e=pa.define(),Sie=pa.define(),v1e=pa.define(),dg=xf.define({create(){return new xC(Bs.none,null,null)},update(t,e){if(e.docChanged){let r=t.diagnostics.map(e.changes),a=null;if(t.selected){let i=e.changes.mapPos(t.selected.from,1);a=lM(r,t.selected.diagnostic,i)||lM(r,null,i)}t=new xC(r,t.panel,a)}for(let r of e.effects)r.is(p1e)?t=xC.init(r.value,t.panel,e.state):r.is(Sie)?t=new xC(t.diagnostics,r.value?TU.open:null,t.selected):r.is(v1e)&&(t=new xC(t.diagnostics,t.panel,r.value));return t},provide:t=>[a$.from(t,e=>e.panel),Xo.decorations.from(t,e=>e.diagnostics)]}),ePe=Bs.mark({class:"cm-lintRange cm-lintRange-active"});function tPe(t,e,r){let{diagnostics:a}=t.state.field(dg),i=[],d=2e8,f=0;a.between(e-(r<0?1:0),e+(r>0?1:0),(u,p,{spec:v})=>{e>=u&&e<=p&&(u==p||(e>u||r>0)&&(eO1e(t,r,!1)))}const rPe=t=>{let e=t.state.field(dg,!1);(!e||!e.panel)&&t.dispatch({effects:J4e(t.state,[Sie.of(!0)])});let r=s$(t,TU.open);return r&&r.dom.querySelector(".cm-panel-lint ul").focus(),!0},Lde=t=>{let e=t.state.field(dg,!1);return!e||!e.panel?!1:(t.dispatch({effects:Sie.of(!1)}),!0)},oPe=t=>{let e=t.state.field(dg,!1);if(!e)return!1;let r=t.state.selection.main,a=e.diagnostics.iter(r.to+1);return!a.value&&(a=e.diagnostics.iter(0),!a.value||a.from==r.from&&a.to==r.to)?!1:(t.dispatch({selection:{anchor:a.from,head:a.to},scrollIntoView:!0}),!0)},sPe=[{key:"Mod-Shift-m",run:rPe,preventDefault:!0},{key:"F8",run:oPe}],y1e=ss.define({combine(t){return Object.assign({sources:t.map(e=>e.source)},ry(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,r)=>e?r?a=>e(a)||r(a):e:r}))}});function b1e(t){let e=[];if(t)e:for(let{name:r}of t){for(let a=0;ad.toLowerCase()==i.toLowerCase())){e.push(i);continue e}}e.push("")}return e}function O1e(t,e,r){var a;let i=r?b1e(e.actions):[];return wl("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},wl("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage():e.message),(a=e.actions)===null||a===void 0?void 0:a.map((d,f)=>{let m=!1,u=b=>{if(b.preventDefault(),m)return;m=!0;let x=lM(t.state.field(dg).diagnostics,e);x&&d.apply(t,x.from,x.to)},{name:p}=d,v=i[f]?p.indexOf(i[f]):-1,y=v<0?p:[p.slice(0,v),wl("u",p.slice(v,v+1)),p.slice(v+1)];return wl("button",{type:"button",class:"cm-diagnosticAction",onclick:u,onmousedown:u,"aria-label":` Action: ${p}${v<0?"":` (access key "${i[f]})"`}.`},y)}),e.source&&wl("div",{class:"cm-diagnosticSource"},e.source))}class aPe extends oy{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return wl("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class Ide{constructor(e,r){this.diagnostic=r,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=O1e(e,r,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class TU{constructor(e){this.view=e,this.items=[];let r=i=>{if(i.keyCode==27)Lde(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:d}=this.items[this.selectedIndex],f=b1e(d.actions);for(let m=0;m{for(let d=0;dLde(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(dg).selected;if(!e)return-1;for(let r=0;r{let p=-1,v;for(let y=a;ya&&(this.items.splice(a,p-a),i=!0)),r&&v.diagnostic==r.diagnostic?v.dom.hasAttribute("aria-selected")||(v.dom.setAttribute("aria-selected","true"),d=v):v.dom.hasAttribute("aria-selected")&&v.dom.removeAttribute("aria-selected"),a++});a({sel:d.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:f,panel:m})=>{let u=m.height/this.list.offsetHeight;f.topm.bottom&&(this.list.scrollTop+=(f.bottom-m.bottom)/u)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function r(){let a=e;e=a.nextSibling,a.remove()}for(let a of this.items)if(a.dom.parentNode==this.list){for(;e!=a.dom;)r();e=a.dom.nextSibling}else this.list.insertBefore(a.dom,e);for(;e;)r()}moveSelection(e){if(this.selectedIndex<0)return;let r=this.view.state.field(dg),a=lM(r.diagnostics,this.items[e].diagnostic);a&&this.view.dispatch({selection:{anchor:a.from,head:a.to},scrollIntoView:!0,effects:v1e.of(a)})}static open(e){return new TU(e)}}function iPe(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(t)}')`}function fZ(t){return iPe(``,'width="6" height="3"')}const lPe=Xo.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:fZ("#d11")},".cm-lintRange-warning":{backgroundImage:fZ("orange")},".cm-lintRange-info":{backgroundImage:fZ("#999")},".cm-lintRange-hint":{backgroundImage:fZ("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),cPe=[dg,Xo.decorations.compute([dg],t=>{let{selected:e,panel:r}=t.field(dg);return!e||!r||e.from==e.to?Bs.none:Bs.set([ePe.range(e.from,e.to)])}),nke(tPe,{hideOn:K4e}),lPe],uPe=(()=>[fke(),mke(),_Ce(),_Ae(),sAe(),OCe(),CCe(),Ia.allowMultipleSelections.of(!0),Yke(),u0e(cAe,{fallback:!0}),pAe(),Q4e(),LC(),UCe(),XCe(),NCe(),N5e(),_S.of([...Z4e,..._5e,...n4e,...FAe,...tAe,...g1e,...sPe])])();/*! +* VueCodemirror v6.1.1 +* Copyright (c) Surmon. All rights reserved. +* Released under the MIT License. +* Surmon +*/var fPe=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[uPe]}),dPe=Symbol("vue-codemirror-global-config"),ch,hPe=function(t){var e=t.onUpdate,r=t.onChange,a=t.onFocus,i=t.onBlur,d=function(f,m){var u={};for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&m.indexOf(p)<0&&(u[p]=f[p]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function"){var v=0;for(p=Object.getOwnPropertySymbols(f);vr%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,r,a=0){let i=e.parser.context;return new wH(e,[],r,a,a,0,[],0,i?new Bde(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,r){this.stack.push(this.state,r,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var r;let a=e>>19,i=e&65535,{parser:d}=this.p,f=d.dynamicPrecedence(i);if(f&&(this.score+=f),a==0){this.pushState(d.getGoto(this.state,i,!0),this.reducePos),i=2e3&&!(!((r=this.p.parser.nodeSet.types[i])===null||r===void 0)&&r.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=p):this.p.lastBigReductionSizem;)this.stack.pop();this.reduceContext(i,u)}storeNode(e,r,a,i=4,d=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&f.buffer[m-4]==0&&f.buffer[m-1]>-1){if(r==a)return;if(f.buffer[m-2]>=r){f.buffer[m-2]=a;return}}}if(!d||this.pos==a)this.buffer.push(e,r,a,i);else{let f=this.buffer.length;if(f>0&&this.buffer[f-4]!=0)for(;f>0&&this.buffer[f-2]>a;)this.buffer[f]=this.buffer[f-4],this.buffer[f+1]=this.buffer[f-3],this.buffer[f+2]=this.buffer[f-2],this.buffer[f+3]=this.buffer[f-1],f-=4,i>4&&(i-=4);this.buffer[f]=e,this.buffer[f+1]=r,this.buffer[f+2]=a,this.buffer[f+3]=i}}shift(e,r,a,i){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=i,this.shiftContext(r,a),r<=this.p.parser.maxNode&&this.buffer.push(r,a,i,4);else{let d=e,{parser:f}=this.p;(i>this.pos||r<=f.maxNode)&&(this.pos=i,f.stateFlag(d,1)||(this.reducePos=i)),this.pushState(d,a),this.shiftContext(r,a),r<=f.maxNode&&this.buffer.push(r,a,i,4)}}apply(e,r,a,i){e&65536?this.reduce(e):this.shift(e,r,a,i)}useNode(e,r){let a=this.p.reused.length-1;(a<0||this.p.reused[a]!=e)&&(this.p.reused.push(e),a++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(r,i),this.buffer.push(a,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,r=e.buffer.length;for(;r>0&&e.buffer[r-2]>e.reducePos;)r-=4;let a=e.buffer.slice(r),i=e.bufferBase+r;for(;e&&i==e.bufferBase;)e=e.parent;return new wH(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,a,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,r){let a=e<=this.p.parser.maxNode;a&&this.storeNode(e,this.pos,r,4),this.storeNode(0,this.pos,r,a?8:4),this.pos=this.reducePos=r,this.score-=190}canShift(e){for(let r=new bPe(this);;){let a=this.p.parser.stateSlot(r.state,4)||this.p.parser.hasAction(r.state,e);if(a==0)return!1;if(!(a&65536))return!0;r.reduce(a)}}recoverByInsert(e){if(this.stack.length>=300)return[];let r=this.p.parser.nextStates(this.state);if(r.length>8||this.stack.length>=120){let i=[];for(let d=0,f;du&1&&m==f)||i.push(r[d],f)}r=i}let a=[];for(let i=0;i>19,i=r&65535,d=this.stack.length-a*3;if(d<0||e.getGoto(this.stack[d],i,!1)<0){let f=this.findForcedReduction();if(f==null)return!1;r=f}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(r),!0}findForcedReduction(){let{parser:e}=this.p,r=[],a=(i,d)=>{if(!r.includes(i))return r.push(i),e.allActions(i,f=>{if(!(f&393216))if(f&65536){let m=(f>>19)-d;if(m>1){let u=f&65535,p=this.stack.length-m*3;if(p>=0&&e.getGoto(this.stack[p],u,!1)>=0)return m<<19|65536|u}}else{let m=a(f,d+1);if(m!=null)return m}})};return a(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let r=0;rthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class Bde{constructor(e,r){this.tracker=e,this.context=r,this.hash=e.strict?e.hash(r):0}}class bPe{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let r=e&65535,a=e>>19;a==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(a-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],r,!0);this.state=i}}class TH{constructor(e,r,a){this.stack=e,this.pos=r,this.index=a,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,r=e.bufferBase+e.buffer.length){return new TH(e,r,r-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new TH(this.stack,this.pos,this.index)}}function ED(t,e=Uint16Array){if(typeof t!="string")return t;let r=null;for(let a=0,i=0;a=92&&f--,f>=34&&f--;let u=f-32;if(u>=46&&(u-=46,m=!0),d+=u,m)break;d*=46}r?r[i++]=d:r=new e(d)}return r}class VZ{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Qde=new VZ;class OPe{constructor(e,r){this.input=e,this.ranges=r,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Qde,this.rangeIndex=0,this.pos=this.chunkPos=r[0].from,this.range=r[0],this.end=r[r.length-1].to,this.readNext()}resolveOffset(e,r){let a=this.range,i=this.rangeIndex,d=this.pos+e;for(;da.to:d>=a.to;){if(i==this.ranges.length-1)return null;let f=this.ranges[++i];d+=f.from-a.to,a=f}return d}clipPos(e){if(e>=this.range.from&&ee)return Math.max(e,r.from);return this.end}peek(e){let r=this.chunkOff+e,a,i;if(r>=0&&r=this.chunk2Pos&&am.to&&(this.chunk2=this.chunk2.slice(0,m.to-a)),i=this.chunk2.charCodeAt(0)}}return a>=this.token.lookAhead&&(this.token.lookAhead=a+1),i}acceptToken(e,r=0){let a=r?this.resolveOffset(r,-1):this.pos;if(a==null||a=this.chunk2Pos&&this.posthis.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,r){if(r?(this.token=r,r.start=e,r.lookAhead=e+1,r.value=r.extended=-1):this.token=Qde,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e=this.chunkPos&&r<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,r-this.chunkPos);if(e>=this.chunk2Pos&&r<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,r-this.chunk2Pos);if(e>=this.range.from&&r<=this.range.to)return this.input.read(e,r);let a="";for(let i of this.ranges){if(i.from>=r)break;i.to>e&&(a+=this.input.read(Math.max(i.from,e),Math.min(i.to,r)))}return a}}class KP{constructor(e,r){this.data=e,this.id=r}token(e,r){let{parser:a}=r.p;S1e(this.data,e,r,this.id,a.data,a.tokenPrecTable)}}KP.prototype.contextual=KP.prototype.fallback=KP.prototype.extend=!1;class CH{constructor(e,r,a){this.precTable=r,this.elseToken=a,this.data=typeof e=="string"?ED(e):e}token(e,r){let a=e.pos,i=0;for(;;){let d=e.next<0,f=e.resolveOffset(1,1);if(S1e(this.data,e,r,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(d||i++,f==null)break;e.reset(f,e.token)}i&&(e.reset(a,e.token),e.acceptToken(this.elseToken,i))}}CH.prototype.contextual=KP.prototype.fallback=KP.prototype.extend=!1;class hh{constructor(e,r={}){this.token=e,this.contextual=!!r.contextual,this.fallback=!!r.fallback,this.extend=!!r.extend}}function S1e(t,e,r,a,i,d){let f=0,m=1<0){let k=t[x];if(u.allows(k)&&(e.token.value==-1||e.token.value==k||xPe(k,e.token.value,i,d))){e.acceptToken(k);break}}let v=e.next,y=0,b=t[f+2];if(e.next<0&&b>y&&t[p+b*3-3]==65535){f=t[p+b*3-1];continue e}for(;y>1,k=p+x+(x<<1),C=t[k],w=t[k+1]||65536;if(v=w)y=x+1;else{f=t[k+2],e.advance();continue e}}break}}function Fde(t,e,r){for(let a=e,i;(i=t[a])!=65535;a++)if(i==r)return a-e;return-1}function xPe(t,e,r,a){let i=Fde(r,a,e);return i<0||Fde(r,a,t)e)&&!a.type.isError)return r<0?Math.max(0,Math.min(a.to-1,e-25)):Math.min(t.length,Math.max(a.from+1,e+25));if(r<0?a.prevSibling():a.nextSibling())break;if(!a.parent())return r<0?0:t.length}}let SPe=class{constructor(e,r){this.fragments=e,this.nodeSet=r,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Vde(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Vde(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(ee)return this.nextStart=f,null;if(d instanceof Fi){if(f==e){if(f=Math.max(this.safeFrom,e)&&(this.trees.push(d),this.start.push(f),this.index.push(0))}else this.index[r]++,this.nextStart=f+d.length}}};class wPe{constructor(e,r){this.stream=r,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(a=>new VZ)}getActions(e){let r=0,a=null,{parser:i}=e.p,{tokenizers:d}=i,f=i.stateSlot(e.state,3),m=e.curContext?e.curContext.hash:0,u=0;for(let p=0;py.end+25&&(u=Math.max(y.lookAhead,u)),y.value!=0)){let b=r;if(y.extended>-1&&(r=this.addActions(e,y.extended,y.end,r)),r=this.addActions(e,y.value,y.end,r),!v.extend&&(a=y,r>b))break}}for(;this.actions.length>r;)this.actions.pop();return u&&e.setLookAhead(u),!a&&e.pos==this.stream.end&&(a=new VZ,a.value=e.p.parser.eofTerm,a.start=a.end=e.pos,r=this.addActions(e,a.value,a.end,r)),this.mainToken=a,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let r=new VZ,{pos:a,p:i}=e;return r.start=a,r.end=Math.min(a+1,i.stream.end),r.value=a==i.stream.end?i.parser.eofTerm:0,r}updateCachedToken(e,r,a){let i=this.stream.clipPos(a.pos);if(r.token(this.stream.reset(i,e),a),e.value>-1){let{parser:d}=a.p;for(let f=0;f=0&&a.p.parser.dialect.allows(m>>1)){m&1?e.extended=m>>1:e.value=m>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,r,a,i){for(let d=0;de.bufferLength*4?new SPe(a,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,r=this.minStackPos,a=this.stacks=[],i,d;if(this.bigReductionCount>300&&e.length==1){let[f]=e;for(;f.forceReduce()&&f.stack.length&&f.stack[f.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let f=0;fr)a.push(m);else{if(this.advanceStack(m,a,e))continue;{i||(i=[],d=[]),i.push(m);let u=this.tokens.getMainToken(m);d.push(u.value,u.end)}}break}}if(!a.length){let f=i&&kPe(i);if(f)return eg&&console.log("Finish with "+this.stackID(f)),this.stackToTree(f);if(this.parser.strict)throw eg&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&i){let f=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,d,a);if(f)return eg&&console.log("Force-finish "+this.stackID(f)),this.stackToTree(f.forceAll())}if(this.recovering){let f=this.recovering==1?1:this.recovering*3;if(a.length>f)for(a.sort((m,u)=>u.score-m.score);a.length>f;)a.pop();a.some(m=>m.reducePos>r)&&this.recovering--}else if(a.length>1){e:for(let f=0;f500&&p.buffer.length>500)if((m.score-p.score||m.buffer.length-p.buffer.length)>0)a.splice(u--,1);else{a.splice(f--,1);continue e}}}a.length>12&&a.splice(12,a.length-12)}this.minStackPos=a[0].pos;for(let f=1;f ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let p=e.curContext&&e.curContext.tracker.strict,v=p?e.curContext.hash:0;for(let y=this.fragments.nodeAt(i);y;){let b=this.parser.nodeSet.types[y.type.id]==y.type?d.getGoto(e.state,y.type.id):-1;if(b>-1&&y.length&&(!p||(y.prop(ua.contextHash)||0)==v))return e.useNode(y,b),eg&&console.log(f+this.stackID(e)+` (via reuse of ${d.getName(y.type.id)})`),!0;if(!(y instanceof Fi)||y.children.length==0||y.positions[0]>0)break;let x=y.children[0];if(x instanceof Fi&&y.positions[0]==0)y=x;else break}}let m=d.stateSlot(e.state,4);if(m>0)return e.reduce(m),eg&&console.log(f+this.stackID(e)+` (via always-reduce ${d.getName(m&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let u=this.tokens.getActions(e);for(let p=0;pi?r.push(k):a.push(k)}return!1}advanceFully(e,r){let a=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>a)return zde(e,r),!0}}runRecovery(e,r,a){let i=null,d=!1;for(let f=0;f ":"";if(m.deadEnd&&(d||(d=!0,m.restart(),eg&&console.log(v+this.stackID(m)+" (restarted)"),this.advanceFully(m,a))))continue;let y=m.split(),b=v;for(let x=0;y.forceReduce()&&x<10&&(eg&&console.log(b+this.stackID(y)+" (via force-reduce)"),!this.advanceFully(y,a));x++)eg&&(b=this.stackID(y)+" -> ");for(let x of m.recoverByInsert(u))eg&&console.log(v+this.stackID(x)+" (via recover-insert)"),this.advanceFully(x,a);this.stream.end>m.pos?(p==m.pos&&(p++,u=0),m.recoverByDelete(u,p),eg&&console.log(v+this.stackID(m)+` (via recover-delete ${this.parser.getName(u)})`),zde(m,a)):(!i||i.scoret;class wie{constructor(e){this.start=e.start,this.shift=e.shift||Zre,this.reduce=e.reduce||Zre,this.reuse=e.reuse||Zre,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class AS extends tie{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let r=e.nodeNames.split(" ");this.minRepeatTerm=r.length;for(let m=0;me.topRules[m][1]),i=[];for(let m=0;m=0)d(v,u,m[p++]);else{let y=m[p+-v];for(let b=-v;b>0;b--)d(m[p++],u,y);p++}}}this.nodeSet=new N$(r.map((m,u)=>Fu.define({name:u>=this.minRepeatTerm?void 0:m,id:u,props:i[u],top:a.indexOf(u)>-1,error:u==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(u)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=Wve;let f=ED(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let m=0;mtypeof m=="number"?new KP(f,m):m),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,r,a){let i=new TPe(this,e,r,a);for(let d of this.wrappers)i=d(i,e,r,a);return i}getGoto(e,r,a=!1){let i=this.goto;if(r>=i[0])return-1;for(let d=i[r+1];;){let f=i[d++],m=f&1,u=i[d++];if(m&&a)return u;for(let p=d+(f>>1);d0}validAction(e,r){return!!this.allActions(e,a=>a==r?!0:null)}allActions(e,r){let a=this.stateSlot(e,4),i=a?r(a):void 0;for(let d=this.stateSlot(e,1);i==null;d+=3){if(this.data[d]==65535)if(this.data[d+1]==1)d=dO(this.data,d+2);else break;i=r(dO(this.data,d+1))}return i}nextStates(e){let r=[];for(let a=this.stateSlot(e,1);;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=dO(this.data,a+2);else break;if(!(this.data[a+2]&1)){let i=this.data[a+1];r.some((d,f)=>f&1&&d==i)||r.push(this.data[a],i)}}return r}configure(e){let r=Object.assign(Object.create(AS.prototype),this);if(e.props&&(r.nodeSet=this.nodeSet.extend(...e.props)),e.top){let a=this.topRules[e.top];if(!a)throw new RangeError(`Invalid top rule name ${e.top}`);r.top=a}return e.tokenizers&&(r.tokenizers=this.tokenizers.map(a=>{let i=e.tokenizers.find(d=>d.from==a);return i?i.to:a})),e.specializers&&(r.specializers=this.specializers.slice(),r.specializerSpecs=this.specializerSpecs.map((a,i)=>{let d=e.specializers.find(m=>m.from==a.external);if(!d)return a;let f=Object.assign(Object.assign({},a),{external:d.to});return r.specializers[i]=Zde(f),f})),e.contextTracker&&(r.context=e.contextTracker),e.dialect&&(r.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(r.strict=e.strict),e.wrap&&(r.wrappers=r.wrappers.concat(e.wrap)),e.bufferLength!=null&&(r.bufferLength=e.bufferLength),r}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let r=this.dynamicPrecedences;return r==null?0:r[e]||0}parseDialect(e){let r=Object.keys(this.dialects),a=r.map(()=>!1);if(e)for(let d of e.split(" ")){let f=r.indexOf(d);f>=0&&(a[f]=!0)}let i=null;for(let d=0;da)&&r.p.parser.stateFlag(r.state,2)&&(!e||e.scoret.external(r,a)<<1|e}return t.get}const APe=1,w1e=201,T1e=202,PPe=203,Hde=204,MPe=205,EPe=206,_Pe=207,RPe=2,DPe=208,$Pe=209,LPe=3,IPe=210,NPe=211,BPe=4,QPe=212,FPe=213,VPe=5,zPe=214,ZPe=26,HPe=27,UPe=51,WPe=52,YPe=57,XPe=58,GPe=59,jPe=61,qPe=62,KPe=63,JPe=64,eMe=65,tMe=67,nMe=251,rMe=74,oMe=270,sMe=115,aMe=133,iMe=154,lMe=155,cMe=158,g$=10,p$=13,Tie=32,kU=9,Cie=35,uMe=40,fMe=46,Ude=123,C1e=39,k1e=34,dMe=92,hMe=new Set([HPe,UPe,WPe,oMe,tMe,aMe,XPe,GPe,nMe,JPe,eMe,rMe,qPe,KPe,iMe,lMe,cMe,sMe]);function Hre(t){return t==g$||t==p$}const mMe=new hh((t,e)=>{let r;if(t.next<0)t.acceptToken(EPe);else if(e.context.depth<0)Hre(t.next)&&t.acceptToken(MPe,1);else if(((r=t.peek(-1))<0||Hre(r))&&e.canShift(Hde)){let a=0;for(;t.next==Tie||t.next==kU;)t.advance(),a++;(t.next==g$||t.next==p$||t.next==Cie)&&t.acceptToken(Hde,-a)}else Hre(t.next)&&t.acceptToken(PPe,1)},{contextual:!0}),gMe=new hh((t,e)=>{let r=e.context.depth;if(r<0)return;let a=t.peek(-1);if(a==g$||a==p$){let i=0,d=0;for(;;){if(t.next==Tie)i++;else if(t.next==kU)i+=8-i%8;else break;t.advance(),d++}i!=r&&t.next!=g$&&t.next!=p$&&t.next!=Cie&&(i{for(let e=0;e<5;e++){if(t.next!="print".charCodeAt(e))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let e=0;;e++){let r=t.peek(e);if(!(r==Tie||r==kU)){r!=uMe&&r!=fMe&&r!=g$&&r!=p$&&r!=Cie&&t.acceptToken(APe);return}}});function AU(t,e,r,a,i){return new hh(d=>{let f=d.pos;for(;!(d.next<0);)if(d.next==Ude)if(d.peek(1)==Ude)d.advance(2);else{if(d.pos==f){d.acceptToken(a,1);return}break}else if(d.next==dMe)d.advance(),d.next>=0&&d.advance();else if(d.next==t&&(e==1||d.peek(1)==t&&d.peek(2)==t)){if(d.pos==f){d.acceptToken(i,e);return}break}else d.advance();d.pos>f&&d.acceptToken(r)})}const OMe=AU(C1e,1,_Pe,RPe,DPe),xMe=AU(k1e,1,$Pe,LPe,IPe),SMe=AU(C1e,3,NPe,BPe,QPe),wMe=AU(k1e,3,FPe,VPe,zPe),TMe=RS({'async "*" "**" FormatConversion FormatSpec':Qt.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":Qt.controlKeyword,"in not and or is del":Qt.operatorKeyword,"from def class global nonlocal lambda":Qt.definitionKeyword,import:Qt.moduleKeyword,"with as print":Qt.keyword,Boolean:Qt.bool,None:Qt.null,VariableName:Qt.variableName,"CallExpression/VariableName":Qt.function(Qt.variableName),"FunctionDefinition/VariableName":Qt.function(Qt.definition(Qt.variableName)),"ClassDefinition/VariableName":Qt.definition(Qt.className),PropertyName:Qt.propertyName,"CallExpression/MemberExpression/PropertyName":Qt.function(Qt.propertyName),Comment:Qt.lineComment,Number:Qt.number,String:Qt.string,FormatString:Qt.special(Qt.string),UpdateOp:Qt.updateOperator,"ArithOp!":Qt.arithmeticOperator,BitOp:Qt.bitwiseOperator,CompareOp:Qt.compareOperator,AssignOp:Qt.definitionOperator,Ellipsis:Qt.punctuation,At:Qt.meta,"( )":Qt.paren,"[ ]":Qt.squareBracket,"{ }":Qt.brace,".":Qt.derefOperator,", ;":Qt.separator}),CMe={__proto__:null,await:48,or:58,and:60,in:64,not:66,is:68,if:74,else:76,lambda:80,yield:98,from:100,async:106,for:108,None:168,True:170,False:170,del:184,pass:188,break:192,continue:196,return:200,raise:208,import:212,as:214,global:218,nonlocal:220,assert:224,type:229,elif:242,while:246,try:252,except:254,finally:256,with:260,def:264,class:274,match:285,case:291},kMe=AS.deserialize({version:14,states:"#&jO`Q#yOOP$bOSOOO%kQ&nO'#HcOOQS'#Cq'#CqOOQS'#Cr'#CrO'ZQ#xO'#CpO(|Q&nO'#HbOOQS'#Hc'#HcOOQS'#DW'#DWOOQS'#Hb'#HbO)jQ#xO'#DaO)}Q#xO'#DhO*_Q#xO'#DlOOQS'#Dw'#DwO*rO,UO'#DwO*zO7[O'#DwO+SOWO'#DxO+_O`O'#DxO+jOpO'#DxO+uO!bO'#DxO-wQ&nO'#HSOOQS'#HS'#HSO'ZQ#xO'#HRO/ZQ&nO'#HROOQS'#Ee'#EeO/rQ#xO'#EfOOQS'#HQ'#HQO/|Q#xO'#HPOOQV'#HP'#HPO0XQ#xO'#F]OOQS'#Ge'#GeO0^Q#xO'#F[OOQV'#IY'#IYOOQV'#HO'#HOOOQV'#Ft'#FtQ`Q#yOOO'ZQ#xO'#CsO0lQ#xO'#DPO0sQ#xO'#DTO1RQ#xO'#HgO1cQ&nO'#EYO'ZQ#xO'#EZOOQS'#E]'#E]OOQS'#E_'#E_OOQS'#Ea'#EaO1wQ#xO'#EcO2_Q#xO'#EgO0XQ#xO'#EiO2rQ&nO'#EiO0XQ#xO'#ElO/rQ#xO'#EoO0XQ#xO'#EqO/rQ#xO'#EwO/rQ#xO'#EzO2}Q#xO'#E|O3UQ#xO'#FRO3aQ#xO'#E}O/rQ#xO'#FRO0XQ#xO'#FTO0XQ#xO'#FYO3fQ#xO'#F_P3mO#xO'#G}POOO)CBq)CBqOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Ck'#CkOOQS'#Cl'#ClOOQS'#Cn'#CnO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO'ZQ#xO,59QO3xQ#xO'#DqOOQS,5:[,5:[O4]Q#xO'#HqOOQS,5:_,5:_O4jQMlO,5:_O4oQ&nO,59[O0lQ#xO,59dO0lQ#xO,59dO0lQ#xO,59dO7_Q#xO,59dO7dQ#xO,59dO7kQ#xO,59lO7rQ#xO'#HbO8xQ#xO'#HaOOQS'#Ha'#HaOOQS'#D^'#D^O9aQ#xO,59cO'ZQ#xO,59cO9oQ#xO,59cOOQS,59{,59{O9tQ#xO,5:TO'ZQ#xO,5:TOOQS,5:S,5:SO:SQ#xO,5:SO:XQ#xO,5:ZO'ZQ#xO,5:ZO'ZQ#xO,5:XOOQS,5:W,5:WO:jQ#xO,5:WO:oQ#xO,5:YOOOO'#F|'#F|O:tO,UO,5:cOOQS,5:c,5:cOOOO'#F}'#F}O:|O7[O,5:cO;UQ#xO'#DyOOOW'#GO'#GOO;fOWO,5:dOOQS,5:d,5:dO;UQ#xO'#D}OOO`'#GR'#GRO;qO`O,5:dO;UQ#xO'#EOOOOp'#GS'#GSO;|OpO,5:dO;UQ#xO'#EPOOO!b'#GT'#GTOROOQS,5>R,5>RO/rQ#xO'#EUOOQS'#EV'#EVOGZQ#xO'#GWOGkQ#xO,59OOGkQ#xO,59OO)pQ#xO,5:rOGyQ&nO'#HjOOQS,5:u,5:uOOQS,5:},5:}OH^Q#xO,5;ROHoQ#xO,5;TOOQS'#GZ'#GZOH}Q&nO,5;TOI]Q#xO,5;TOIbQ#xO'#IWOOQS,5;W,5;WOIpQ#xO'#ISOOQS,5;Z,5;ZOJRQ#xO,5;]O3aQ#xO,5;cO3aQ#xO,5;fOJZQ&nO'#IZO'ZQ#xO'#IZOJeQ#xO,5;hO2}Q#xO,5;hO/rQ#xO,5;mO0XQ#xO,5;oOJjQ#yO'#ExOKvQ#{O,5;iO! [Q#xO'#I[O3aQ#xO,5;mO! gQ#xO,5;oO! oQ#xO,5;tO! zQ&nO,5;yO'ZQ#xO,5;yPOOO,5=i,5=iP!!ROSO,5=iP!!WO#xO,5=iO!${Q&nO1G.lO!%SQ&nO1G.lO!'sQ&nO1G.lO!'}Q&nO1G.lO!*hQ&nO1G.lO!*{Q&nO1G.lO!+`Q#xO'#HpO!+nQ&nO'#HSO/rQ#xO'#HpO!+xQ#xO'#HoOOQS,5:],5:]O!,QQ#xO,5:]O!,VQ#xO'#HrO!,bQ#xO'#HrO!,uQ#xO,5>]OOQS'#Du'#DuOOQS1G/y1G/yOOQS1G/O1G/OO!-uQ&nO1G/OO!-|Q&nO1G/OO0lQ#xO1G/OO!.iQ#xO1G/WOOQS'#D]'#D]O/rQ#xO,59vOOQS1G.}1G.}O!.pQ#xO1G/gO!/QQ#xO1G/gO!/YQ#xO1G/hO'ZQ#xO'#HiO!/_Q#xO'#HiO!/dQ&nO1G.}O!/tQ#xO,59kO!0zQ#xO,5>XO!1[Q#xO,5>XO!1dQ#xO1G/oO!1iQ&nO1G/oOOQS1G/n1G/nO!1yQ#xO,5>SO!2pQ#xO,5>SO/rQ#xO1G/sO!3_Q#xO1G/uO!3dQ&nO1G/uO!3tQ&nO1G/sOOQS1G/r1G/rOOQS1G/t1G/tOOOO-E9z-E9zOOQS1G/}1G/}OOOO-E9{-E9{O!4UQ#xO'#H|O/rQ#xO'#H|O!4dQ#xO,5:eOOOW-E9|-E9|OOQS1G0O1G0OO!4oQ#xO,5:iOOO`-E:P-E:PO!4zQ#xO,5:jOOOp-E:Q-E:QO!5VQ#xO,5:kOOO!b-E:R-E:ROOQS-E:S-E:SO!5bQ!LUO1G3XO!6RQ&nO1G3XO'ZQ#xO,5oOOQS1G1c1G1cO!7RQ#xO1G1cOOQS'#DX'#DXO/rQ#xO,5>OOOQS,5>O,5>OO!7WQ#xO'#FuO!7cQ#xO,59qO!7kQ#xO1G/ZO!7uQ&nO,5>SOOQS1G3m1G3mOOQS,5:p,5:pO!8fQ#xO'#HROOQS,5UO!9gQ#xO,5>UO/rQ#xO1G0mO/rQ#xO1G0mO0XQ#xO1G0oOOQS-E:X-E:XO!9xQ#xO1G0oO!:TQ#xO1G0oO!:YQ#xO,5>rO!:hQ#xO,5>rO!:vQ#xO,5>nO!;^Q#xO,5>nO!;oQ#xO'#EsO/rQ#xO1G0wO!;zQ#xO1G0wO!uO!BzQ#xO,5>uO!CSQ&nO,5>uO/rQ#xO1G1SO!C^Q#xO1G1SO3aQ#xO1G1XO! gQ#xO1G1ZOOQV,5;d,5;dO!CcQ#zO,5;dO!ChQ#{O1G1TO!F|Q#xO'#GbO3aQ#xO1G1TO3aQ#xO1G1TO!G^Q#xO,5>vO!GkQ#xO,5>vO0XQ#xO,5>vOOQV1G1X1G1XO!GsQ#xO'#FVO!HUQMlO1G1ZO!H^Q#xO1G1ZOOQV1G1`1G1`O3aQ#xO1G1`O!HcQ#xO1G1`O!HkQ#xO'#FaOOQV1G1e1G1eO! zQ&nO1G1ePOOO1G3T1G3TP!HpOSO1G3TOOQS,5>[,5>[OOQS'#Dr'#DrO/rQ#xO,5>[O!HuQ#xO,5>ZO!IYQ#xO,5>ZOOQS1G/w1G/wO!IbQ#xO,5>^O!IrQ#xO,5>^O!IzQ#xO,5>^O!J_Q#xO,5>^O!JoQ#xO,5>^OOQS1G3w1G3wOOQS7+$j7+$jO!7kQ#xO7+$rO!LbQ#xO1G/OO!LiQ#xO1G/OOOQS1G/b1G/bOOQS,5TO'ZQ#xO,5>TOOQS7+$i7+$iO!MVQ#xO7+%RO!M_Q#xO7+%SO!MdQ#xO1G3sOOQS7+%Z7+%ZO!MtQ#xO1G3sO!M|Q#xO7+%ZOOQS,5hO##PQ#xO,5>hO##PQ#xO,5>hO##_O$ISO'#D{O##jO#tO'#H}OOOW1G0P1G0PO##oQ#xO1G0POOO`1G0T1G0TO##wQ#xO1G0TOOOp1G0U1G0UO#$PQ#xO1G0UOOO!b1G0V1G0VO#$XQ#xO1G0VO#$aQ!LUO7+(sO#%QQ&nO1G2]P#%kQ#xO'#GVOOQS,5i,5>iOOOW7+%k7+%kOOO`7+%o7+%oOOOp7+%p7+%pOOO!b7+%q7+%qO#:`Q#xO1G3XO#:yQ#xO1G3XP'ZQ#xO'#FxO/rQ#xO<qO#;mQ#xO,5>qO0XQ#xO,5>qO#pOOQS<sO#sOOQS1G0y1G0yOOQS<xO#DpQ#xO,5>xOOQS,5>x,5>xO#D{Q#xO,5>wO#E^Q#xO,5>wOOQS1G1]1G1]OOQS,5;s,5;sOOQV<XAN>XO#HmQ#xO<eAN>eO/rQ#xO1G2PO#H}Q&nO1G2PP#IXQ#xO'#FyOOQS1G2V1G2VP#IfQ#xO'#GPO#IsQ#xO7+)nO#JZQ#xO,5:hOOOO-E:O-E:OO#JfQ#xO7+(sOOQSAN?_AN?_O#KPQ#xO,5VOOQSANBaANBaOOOO7+%n7+%nOOQS7+'|7+'|O$+jQ#xO<zO$.`Q#xO,5>zO0XQ#xO,5|O$!pQ#xO,5>|OOQS1G1s1G1sO$2WQ&nO,5<_OOQU7+'S7+'SO$$mQ#xO1G/kO$!pQ#xO,5<]O$2_Q#xO,5>}O$2fQ#xO,5>}OOQS1G1v1G1vOOQS7+'V7+'VP$!pQ#xO'#GkO$2nQ#xO1G4hO$2xQ#xO1G4hO$3QQ#xO1G4hOOQS7+%V7+%VO$3`Q#xO1G1wO$3nQ&nO'#FdO$3uQ#xO,5=UOOQS,5=U,5=UO$4TQ#xO1G4iOOQS-E:h-E:hO$!pQ#xO,5=TO$4[Q#xO,5=TO$4aQ#xO7+*SOOQS-E:g-E:gO$4kQ#xO7+*SO$!pQ#xO,5<^P$!pQ#xO'#GjO$4sQ#xO1G2oO$!pQ#xO1G2oP$5RQ#xO'#GiO$5YQ#xO<fPP>i?Z?^PP'a'aPP?vPP'a'aPP'a'a'a'a'a?z@t'aP@wP@}EXHxPH|IYI^IbIf'aPPPIjIs'XP'X'XP'XP'XP'XP'XP'X'X'XP'XPP'XPP'XP'XPIyJVJ_PJfJlPJfPJfJfPPPJfPLzPMTM_MeLzPJfMnPJfPMuM{PNPNe! S! mNPNP! s!!QNPNPNPNP!!f!!l!!o!!t!!w!#R!#X!#e!#w!#}!$X!$_!${!%R!%X!%_!%i!%o!%u!%{!&R!&X!&k!&u!&{!'R!'X!'c!'i!'o!'u!'{!(V!(]!(g!(m!(v!(|!)]!)e!)o!)vPPPPPPPPPPPPPPPPP!)|!*P!*V!*`!*j!*uPPPPPPPPPPPP!/l!1Q!5T!8hPP!8p!9S!9]!:U!9{!:_!:e!:h!:k!:n!:v!;gPPPPPPPPP!;j!;yPPPP!V!>`!?[!?_]jOs#v$w*W,d(TeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z}!hQ#r$P$b$q$}%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!P!iQ#r$P$b$q$}%S%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!R!jQ#r$P$b$q$}%S%T%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!T!kQ#r$P$b$q$}%S%T%U%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!V!lQ#r$P$b$q$}%S%T%U%V%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!X!mQ#r$P$b$q$}%S%T%U%V%W%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O!]!mQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1O(TTOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1Z&iVOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1Z%sXOYZ[isw}!O!S!U!V!Z!n!p#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$VvQ/t/SR1W1Y'zeOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZW#ym!P!Q$hW$Rv&q/S1YQ$j!RQ$n!TQ${![Q$|!]W%Z!n(O*v,zS&p$S$TQ'e$vQ)Y&jQ)h'QU)i'S)j)kU)l'U)m+}W)s'Y,Q-j.dQ*d'nW*e'p,s-}.lQ,P)rS,r*f*gY-d+x-e.a.b/XQ-g+zQ-t,hQ-x,kQ.j-vl.o.R.u.v.x/d/f/k0R0W0]0b0m0r0uQ/W.`Q/l.wQ/x/^Q0T/hU0h0^0k0sX0n0c0o0v0wR&o$R!_!|YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sR%k!{Q#QYQ&W#cQ&Z#gQ&]#jQ&_#mQ&x$^Q&{$aR-`+lT/R.Y0[![!oQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OQ&m#zQ't$|R*p'uR'}%ZQ%d!rR/v/[(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZS#pd#q!P.s.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0w(SdOTYZ[fistuwy}!O!S!U!V!W!Z!^!h!i!j!k!l!m!n!p!t!u!v!x!y#P#T#X#Y#c#g#j#m#s#v$X$Y$[$^$a$r$t$u$w%O%[%a%h%k%m%p%t%y%{&V&b&d&o&s&|'O'P'W'Z'_'b'i'l'}(O(R(T(U(Y(_(a(e(i(n(o(u(x)V)X)a)d)p)w)y)}*O*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+d+h+i+l+t+v+w,O,],^,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/o/s0[0z0{0|0}1P1Q1R1S1T1V1ZT#pd#qT#d`#ee(|&W&Z&]&_)O)Q)S)U-`._T+m({+nT#ha#iT#kb#lT#nc#oQ$`xQ,P)sR,q*eX$^x$_$`&zQ'[$nQ'r${Q'u$|R*V'eQ)t'YV-i,Q-j.dZlOs$w*W,dXpOs*W,dQ$x!YQ']$oQ'^$pQ'o$zQ's$|Q*T'dQ*['iQ*_'jQ*`'kQ*m'qS*o't'uQ,W)yQ,Y)zQ,Z){Q,_*RS,a*U*nQ,e*YQ,f*ZS,g*]*^Q,w*pQ-l,VQ-m,XQ-o,`S-p,b,cQ-u,iQ-w,jQ.e-nQ.g-qQ.h-sQ.i-tQ/Y.fQ/Z.jQ/p.{R0Z/qWpOs*W,dR#|oQ'q${S*U'e'rR,c*VQ,p*eR-{,qQ*n'qQ,b*UR-q,cZnOos*W,dQ'w$}R*r'xT.P,x.Qu.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0ut.z.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uQ/l.wX0n0c0o0v0w!P.r.R.u.v.w.x/^/d/f/k0R0W0]0^0b0c0k0m0o0r0s0u0v0wQ/a.qR/}/bg/d.t/e/y0Q0V0e0g0i0t0x0yu.y.R.u.v.x/^/d/f/k0R0W0]0^0b0k0m0r0s0uX/_.o.y/x0hR/z/^V0j0^0k0sR/q.{QsOS$Os,dR,d*WQ&r$UR)_&rS%z#W$WS(p%z(sT(s%}&tQ%n#OQ%u#SW(b%n%u(g(kQ(g%rR(k%wQ&}$bR)e&}Q(v&OQ+_(qT+e(v+_Q(P%]R*w(PS(S%`%aY*{(S*|-Q.W/PU*|(T(U(VU-Q*}+O+PS.W-R-SR/P.XQ#_^R&R#_Q#b_R&T#bQ#e`R&X#eQ(y&US+j(y+kR+k(zQ+n({R-a+nQ#iaR&[#iQ#lbR&^#lQ#ocR&`#oQ#qdR&a#qQ#tgQ&c#rW&f#t&c)b+uQ)b&wR+u1OQ$_xS&y$_&zR&z$`Q'X$lR)q'XQ&k#yR)Z&kQ$h!QR'R$hQ+y)iS-f+y.cR.c-gQ'V$jR)n'VQ,R)tR-k,RQ#wkR&h#wQ)x']R,U)xQ'`$qS*P'`*QR*Q'aQ'h$xR*X'hQ'm$yS*c'm,nR,n*dQ,t*iR.O,tWoOs*W,dR#{oQ.Q,xR.m.Qd/e.t/y0Q0V0e0g0i0t0x0yR0P/eU/].o/x0hR/w/]Q0d0VS0p0d0qR0q0eS0_/y/zR0l0_Q/g.tR0S/gR!`PXrOs*W,dWqOs*W,dR'f$wYkOs$w*W,dR&g#v[xOs#v$w*W,dR&x$^&hQOYZ[isuw}!O!S!U!V!Z!n!p!t!u!v!x!y#c#g#j#m#s#v$Y$[$^$a$u$w%[%a%h%k%m%t%y%{&V&b&o&s'O'P'W'Z'b'i'l'}(O(R(T(U(Y(a(i(o(u(x)V)X)a)p)w)y*S*W*^*b*l*v*y*z*}+T+U+W+Y+]+^+a+h+i+l+t+w,O,d,l,m,p,z,{,|-O-P-S-U-W-Y-[-^-_-b-y-{.S.V.Y.}/O/s0[0z0{0|0}1P1Q1R1S1V1ZQ!sTQ#rfQ$PtU$by%p(eS$q!W$tQ$}!^Q%S!hQ%T!iQ%U!jQ%V!kQ%W!lQ%X!mQ%r#PQ%w#TQ%}#XQ&O#YQ&t$XQ'a$rQ'x%OQ)W&dU)c&|)d+vW)|'_*O,],^Q+R(_Q+[(nQ,[)}Q-Z+dQ0Y/oR1O1TQ#OYQ#SZQ$o!UQ$p!VQ%`!pQ(V%a^(^%m%t(a(i+T+W+Y^*x(R*z-O-P.V/O/sQ+O(TQ+P(UQ,X)yQ,}*yQ-R*}Q.T,{Q.U,|Q.X-SQ.|.SR/r.}[gOs#v$w*W,d!^!{YZ!U!V!p%a%m%t(R(T(U(a(i)y*y*z*}+T+W+Y,{,|-O-P-S.S.V.}/O/sQ#W[Q#uiS$Ww}Q$e!OW$l!S$a'b*SS$y!Z$uW%Y!n(O*v,zY&U#c#g#j#m+l`&e#s&b)V)X)a+t-b1SQ&u$YQ&v$[Q&w$^Q'{%[Q(]%kW(m%y(o+]+aQ(q%{Q(z&VQ)]&oS)`&s1QQ)f'OQ)g'PU)o'W)p,OQ)v'ZQ*]'iY*a'l*b,l,m-yQ*t'}S+Q(Y1RW+c(u+^-W-[W+g(x+i-^-_Q,T)wQ,i*^Q,v*lQ-]+hQ-c+wQ-z,pQ.]-YR.k-{hUOs#s#v$w&b&s(Y)V)X*W,d%Y!zYZ[iw}!O!S!U!V!Z!n!p#c#g#j#m$Y$[$^$a$u%[%a%k%m%t%y%{&V&o'O'P'W'Z'b'i'l'}(O(R(T(U(a(i(o(u(x)a)p)w)y*S*^*b*l*v*y*z*}+T+W+Y+]+^+a+h+i+l+t+w,O,l,m,p,z,{,|-O-P-S-W-Y-[-^-_-b-y-{.S.V.}/O/s1Q1R1SQ$QuW%e!t!x0{1VQ%f!uQ%g!vQ%i!yQ%s0zS(X%h1PQ(Z0|Q([0}Q-T+UQ.[-US/Q.Y0[R1X1ZU$Uv/S1YR)^&q[hOs#v$w*W,da!}Y#c#g#j#m$^$a+lQ#][Q$ZwR$d}Q%o#OQ%v#SQ%|#WQ'{%YQ(h%rQ(l%wQ(t%}Q(w&OQ+`(qQ,y*tQ.Z-TQ/U.[R/u/TQ$cyQ(d%pR+V(eQ/T.YR0f0[R#VZR#[[R%_!nQ%]!nV*u(O*v,z!]!qQ!s#r$P$b$q$}%S%T%U%V%W%X%r%w%}&O&t'a'x)W)c)|+R+[,[-Z0Y1OR%b!pQ&W#cQ&Z#gQ&]#jQ&_#mR-`+lQ(}&WQ)P&ZQ)R&]Q)T&_Q+p)OQ+q)QQ+r)SQ+s)UQ.^-`R/V._Q$m!SQ&{$aQ*R'bR,`*SQ#zmQ$f!PQ$i!QR'T$hQ)h'SR+|)kQ)h'SQ+{)jR+|)kR$k!RR)u'YXqOs*W,dQ$s!WR'c$tQ$z!ZR'd$uR*k'pQ*i'pV-|,s-}.lQ.{.RQ/i.uR/j.vU.t.R.u.vQ/n.xQ/y/^Q0O/dU0Q/f0R0bQ0V/kQ0e0WQ0g0]U0i0^0k0sQ0t0mQ0x0rR0y0uR/m.wR/{/^",nodeNames:"⚠ print { { { { Comment Script AssignStatement * BinaryExpression BitOp BitOp BitOp BitOp ArithOp ArithOp @ ArithOp ** UnaryExpression ArithOp BitOp AwaitExpression await ) ( ParenthesizedExpression BinaryExpression or and CompareOp in not is UnaryExpression ConditionalExpression if else LambdaExpression lambda ParamList VariableName AssignOp , : NamedExpression AssignOp YieldExpression yield from TupleExpression ComprehensionExpression async for LambdaExpression ] [ ArrayExpression ArrayComprehensionExpression } { DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression CallExpression ArgList AssignOp MemberExpression . PropertyName Number String FormatString FormatReplacement FormatConversion FormatSpec FormatReplacement FormatReplacement FormatReplacement FormatReplacement ContinuedString Ellipsis None Boolean TypeDef AssignOp UpdateStatement UpdateOp ExpressionStatement DeleteStatement del PassStatement pass BreakStatement break ContinueStatement continue ReturnStatement return YieldStatement PrintStatement RaiseStatement raise ImportStatement import as ScopeStatement global nonlocal AssertStatement assert TypeDefinition type TypeParamList TypeParam StatementGroup ; IfStatement Body elif WhileStatement while ForStatement TryStatement try except finally WithStatement with FunctionDefinition def ParamList AssignOp TypeDef ClassDefinition class DecoratedStatement Decorator At MatchStatement match MatchBody MatchClause case CapturePattern LiteralPattern ArithOp ArithOp AsPattern OrPattern LogicOp AttributePattern SequencePattern MappingPattern StarPattern ClassPattern PatternArgList KeywordPattern KeywordPattern Guard",maxTerm:283,context:yMe,nodeProps:[["group",-15,8,88,90,91,93,95,97,99,101,102,103,105,108,111,113,"Statement Statement",-22,10,20,23,27,42,51,52,58,59,62,63,64,65,66,69,72,73,74,82,83,84,85,"Expression",-10,117,119,122,124,125,129,131,136,138,141,"Statement",-9,146,147,150,151,153,154,155,156,157,"Pattern"],["openedBy",25,"(",56,"[",60,"{"],["closedBy",26,")",57,"]",61,"}"]],propSources:[TMe],skippedNodes:[0,6],repeatNodeCount:38,tokenData:"%-W#sR!`OX%TXY=|Y[%T[]=|]p%Tpq=|qr@_rsDOst!+|tu%Tuv!Nnvw#!|wx#$Wxy#:Uyz#;Yz{#<^{|#>x|}#@S}!O#AW!O!P#Ci!P!Q#N_!Q!R$!y!R![$&w![!]$1e!]!^$3s!^!_$4w!_!`$7c!`!a$8m!a!b%T!b!c$;U!c!d$W!e!h$W#V#Y$Q<%lO$Xc&r!b&jS&mW%p!TOX%TXY=|Y[%T[]=|]p%Tpq=|qr%Trs&Vsw%Twx/Xx#O%T#O#P?d#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#s?i[&r!bOY%TYZ=|Z]%T]^=|^#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=P;=`<%l8^<%lO%T!q@hd&r!b&jS&mWOr%Trs&Vsw%Twx/Xx!_%T!_!`Av!`#O%T#O#P7o#P#T%T#T#UBz#U#f%T#f#gBz#g#hBz#h#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qBR]oR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qCV]!nR&r!b&jS&mWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cDXa&r!b&jS&hsOYE^YZ%TZ]E^]^%T^rE^rs!)|swE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cEia&r!b&jS&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cFw]&r!b&jS&hsOr%Trs'Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cGya&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxIOx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cIXa&r!b&mW&hsOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxJ^x#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#_Jg_&r!b&mW&hsOYJ^YZ1XZ]J^]^1X^rJ^rsKfs#OJ^#O#PL`#P#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`!!o<%lOJ^#_KmZ&r!b&hsOr1Xrs2ys#O1X#O#P3q#P#o1X#o#p4`#p#q1X#q#r4`#r;'S1X;'S;=`7i<%lO1X#_LeW&r!bO#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`! r;=`<%lL}<%lOJ^{MUZ&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l<%lOL}{M|V&hsOr4`rs5ds#O4`#O#P5y#P;'S4`;'S;=`6t<%lO4`{NfRO;'SL};'S;=`No;=`OL}{Nv[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lL}<%lOL}{! oP;=`<%lL}#_! y[&mW&hsOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lJ^<%lOL}#_!!rP;=`<%lJ^#c!!zW&r!bO#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!(q;=`<%l!#d<%lOE^!P!#m]&jS&mW&hsOY!#dYZ8^Z]!#d]^8^^r!#drs!$fsw!#dwx!%Yx#O!#d#O#P!'Y#P;'S!#d;'S;=`!(k<%lO!#d!P!$mX&jS&hsOr8^rs9rsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`^s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!>e_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!?ds#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!?k_U!T&r!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!3`s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!@q[U!T&r!bOY!=UYZ1XZ]!=U]^1X^#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!Ec;=`<%l4`<%lO!=U!]!AnZU!T&mWOY!AgYZ4`Z]!Ag]^4`^r!Agrs!Bas#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!BfZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!CXs#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!C^ZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!4Ys#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!DUWU!TOY!AgYZ4`Z]!Ag]^4`^;'S!Ag;'S;=`!Dn;=`<%l4`<%lO!Ag!]!DsW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!Ag<%lO4`!]!E`P;=`<%l!Ag#o!EhW&mWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!=U<%lO4`#o!FTP;=`<%l!=U#s!F_[U!T&r!bOY!+|YZ%TZ]!+|]^%T^#o!+|#o#p!GT#p#q!+|#q#r!GT#r;'S!+|;'S;=`!Mq;=`<%l8^<%lO!+|!a!G^]U!T&jS&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!H^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!IVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!I^]U!T&jSOY!GTYZ8^Z]!GT]^8^^r!GTrs!5wsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!J^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!KVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!K^]U!T&mWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!Agx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!L[WU!TOY!GTYZ8^Z]!GT]^8^^;'S!GT;'S;=`!Lt;=`<%l8^<%lO!GT!a!L{Y&jS&mWOr8^rs9Qsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`Q<%lO$TP;=`<%l$ei&r!b&jS&mW&g`&SsOr%Trs$@Ssw%Twx$C`x!Q%T!Q![$Q<%lO$Q<%lO$Q<%lO$Q<%lO$Q<%lO$CMe[t]||-1}],tokenPrec:7372}),Wde=new eie,A1e=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function hZ(t){return(e,r,a)=>{if(a)return!1;let i=e.node.getChild("VariableName");return i&&r(i,t),!0}}const AMe={FunctionDefinition:hZ("function"),ClassDefinition:hZ("class"),ForStatement(t,e,r){if(r){for(let a=t.node.firstChild;a;a=a.nextSibling)if(a.name=="VariableName")e(a,"variable");else if(a.name=="in")break}},ImportStatement(t,e){var r,a;let{node:i}=t,d=((r=i.firstChild)===null||r===void 0?void 0:r.name)=="from";for(let f=i.getChild("import");f;f=f.nextSibling)f.name=="VariableName"&&((a=f.nextSibling)===null||a===void 0?void 0:a.name)!="as"&&e(f,d?"variable":"namespace")},AssignStatement(t,e){for(let r=t.node.firstChild;r;r=r.nextSibling)if(r.name=="VariableName")e(r,"variable");else if(r.name==":"||r.name=="AssignOp")break},ParamList(t,e){for(let r=null,a=t.node.firstChild;a;a=a.nextSibling)a.name=="VariableName"&&(!r||!/\*|AssignOp/.test(r.name))&&e(a,"variable"),r=a},CapturePattern:hZ("variable"),AsPattern:hZ("variable"),__proto__:null};function P1e(t,e){let r=Wde.get(e);if(r)return r;let a=[],i=!0;function d(f,m){let u=t.sliceString(f.from,f.to);a.push({label:u,type:m})}return e.cursor(vl.IncludeAnonymous).iterate(f=>{if(f.name){let m=AMe[f.name];if(m&&m(f,d,i)||!i&&A1e.has(f.name))return!1;i=!1}else if(f.to-f.from>8192){for(let m of P1e(t,f.node))a.push(m);return!1}}),Wde.set(e,a),a}const Yde=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,M1e=["String","FormatString","Comment","PropertyName"];function PMe(t){let e=rl(t.state).resolveInner(t.pos,-1);if(M1e.indexOf(e.name)>-1)return null;let r=e.name=="VariableName"||e.to-e.from<20&&Yde.test(t.state.sliceDoc(e.from,e.to));if(!r&&!t.explicit)return null;let a=[];for(let i=e;i;i=i.parent)A1e.has(i.name)&&(a=a.concat(P1e(t.state.doc,i)));return{options:a,from:r?e.from:t.pos,validFor:Yde}}const MMe=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),EMe=[hc("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),hc("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),hc("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),hc("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),hc(`if \${}: + +`,{label:"if",detail:"block",type:"keyword"}),hc("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),hc("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),hc("import ${module}",{label:"import",detail:"statement",type:"keyword"}),hc("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],_Me=pie(M1e,SU(MMe.concat(EMe)));function Xde(t,e){let r=t.baseIndentFor(e),a=t.lineAt(t.pos,-1),i=a.from+a.text.length;return/^\s*($|#)/.test(a.text)&&t.node.tor?null:r+t.unit}const Ure=CS.define({name:"python",parser:kMe.configure({props:[BC.add({Body:t=>{var e;return(e=Xde(t,t.node))!==null&&e!==void 0?e:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except |finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":FZ({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":FZ({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":FZ({closing:"]"}),"String FormatString":()=>null,Script:t=>{if(t.pos+/\s*/.exec(t.textAfter)[0].length>=t.node.to){let e=null;for(let r=t.node,a=r.to;r=r.lastChild,!(!r||r.to!=a);)r.type.name=="Body"&&(e=r);if(e){let r=Xde(t,e);if(r!=null)return r}}return t.continue()}}),DS.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":aie,Body:(t,e)=>({from:t.from+1,to:t.to-(t.to==e.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function Gde(){return new DC(Ure,[Ure.data.of({autocomplete:PMe}),Ure.data.of({autocomplete:_Me})])}const RMe="#e5c07b",jde="#e06c75",DMe="#56b6c2",$Me="#ffffff",zZ="#abb2bf",_se="#7d8799",LMe="#61afef",IMe="#98c379",qde="#d19a66",NMe="#c678dd",BMe="#21252b",Kde="#2c313a",Jde="#282c34",Wre="#353a42",QMe="#3E4451",ehe="#528bff",FMe=Xo.theme({"&":{color:zZ,backgroundColor:Jde},".cm-content":{caretColor:ehe},".cm-cursor, .cm-dropCursor":{borderLeftColor:ehe},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:QMe},".cm-panels":{backgroundColor:BMe,color:zZ},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Jde,color:_se,border:"none"},".cm-activeLineGutter":{backgroundColor:Kde},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Wre},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Wre,borderBottomColor:Wre},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Kde,color:zZ}}},{dark:!0}),VMe=Q$.define([{tag:Qt.keyword,color:NMe},{tag:[Qt.name,Qt.deleted,Qt.character,Qt.propertyName,Qt.macroName],color:jde},{tag:[Qt.function(Qt.variableName),Qt.labelName],color:LMe},{tag:[Qt.color,Qt.constant(Qt.name),Qt.standard(Qt.name)],color:qde},{tag:[Qt.definition(Qt.name),Qt.separator],color:zZ},{tag:[Qt.typeName,Qt.className,Qt.number,Qt.changed,Qt.annotation,Qt.modifier,Qt.self,Qt.namespace],color:RMe},{tag:[Qt.operator,Qt.operatorKeyword,Qt.url,Qt.escape,Qt.regexp,Qt.link,Qt.special(Qt.string)],color:DMe},{tag:[Qt.meta,Qt.comment],color:_se},{tag:Qt.strong,fontWeight:"bold"},{tag:Qt.emphasis,fontStyle:"italic"},{tag:Qt.strikethrough,textDecoration:"line-through"},{tag:Qt.link,color:_se,textDecoration:"underline"},{tag:Qt.heading,fontWeight:"bold",color:jde},{tag:[Qt.atom,Qt.bool,Qt.special(Qt.variableName)],color:qde},{tag:[Qt.processingInstruction,Qt.string,Qt.inserted],color:IMe},{tag:Qt.invalid,color:$Me}]),cM=[FMe,u0e(VMe)];function Vr(t,e){return r=>Object.keys(t).reduce((a,i)=>{const f=typeof t[i]=="object"&&t[i]!=null&&!Array.isArray(t[i])?t[i]:{type:t[i]};return r&&i in r?a[i]={...f,default:r[i]}:a[i]=f,e&&!a[i].source&&(a[i].source=e),a},{})}const fa=Vr({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component"),Fl=typeof window<"u",kie=Fl&&"IntersectionObserver"in window,zMe=Fl&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function E1e(t,e,r){const a=e.length-1;if(a<0)return t===void 0?r:t;for(let i=0;iQC(t[a],e[a]))}function IC(t,e,r){return t==null||!e||typeof e!="string"?r:t[e]!==void 0?t[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),E1e(t,e.split("."),r))}function nm(t,e,r){if(e===!0)return t===void 0?r:t;if(e==null||typeof e=="boolean")return r;if(t!==Object(t)){if(typeof e!="function")return r;const i=e(t,r);return typeof i>"u"?r:i}if(typeof e=="string")return IC(t,e,r);if(Array.isArray(e))return E1e(t,e,r);if(typeof e!="function")return r;const a=e(t,r);return typeof a>"u"?r:a}function uM(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(r,a)=>e+a)}function cs(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(t==null||t===""))return isNaN(+t)?String(t):isFinite(+t)?`${Number(t)}${e}`:void 0}function Rse(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function Dse(t){return t&&"$el"in t?t.$el:t}const the=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),ZMe=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function Yre(t,e){return e.every(r=>t.hasOwnProperty(r))}function fM(t,e,r){const a=Object.create(null),i=Object.create(null);for(const d in t)e.some(f=>f instanceof RegExp?f.test(d):f===d)&&!(r!=null&&r.some(f=>f===d))?a[d]=t[d]:i[d]=t[d];return[a,i]}function kM(t,e){const r={...t};return e.forEach(a=>delete r[a]),r}const _1e=/^on[^a-z]/,Aie=t=>_1e.test(t),HMe=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function Pie(t){const[e,r]=fM(t,[_1e]),a=kM(e,HMe),[i,d]=fM(r,["class","style","id",/^data-/]);return Object.assign(i,e),Object.assign(d,a),[i,d]}function dh(t){return t==null?[]:Array.isArray(t)?t:[t]}function Ap(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(e,Math.min(r,t))}function nhe(t){const e=t.toString().trim();return e.includes(".")?e.length-e.indexOf(".")-1:0}function rhe(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+r.repeat(Math.max(0,e-t.length))}function UMe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const r=[];let a=0;for(;a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const a={};for(const i in t)a[i]=t[i];for(const i in e){const d=t[i],f=e[i];if(Rse(d)&&Rse(f)){a[i]=Sp(d,f,r);continue}if(Array.isArray(d)&&Array.isArray(f)&&r){a[i]=r(d,f);continue}a[i]=f}return a}function R1e(t){return t.map(e=>e.type===Go?R1e(e.children):e).flat()}function EC(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(EC.cache.has(t))return EC.cache.get(t);const e=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return EC.cache.set(t,e),e}EC.cache=new Map;function QD(t,e){if(!e||typeof e!="object")return[];if(Array.isArray(e))return e.map(r=>QD(t,r)).flat(1);if(Array.isArray(e.children))return e.children.map(r=>QD(t,r)).flat(1);if(e.component){if(Object.getOwnPropertySymbols(e.component.provides).includes(t))return[e.component];if(e.component.subTree)return QD(t,e.component.subTree).flat(1)}return[]}function Mie(t){const e=tm({}),r=sn(t);return am(()=>{for(const a in r.value)e[a]=r.value[a]},{flush:"sync"}),sU(e)}function kH(t,e){return t.includes(e)}function D1e(t){return t[2].toLowerCase()+t.slice(3)}const J1=()=>[Function,Array];function ohe(t,e){return e="on"+SO(e),!!(t[e]||t[`${e}Once`]||t[`${e}Capture`]||t[`${e}OnceCapture`]||t[`${e}CaptureOnce`])}function $1e(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),a=1;a1&&arguments[1]!==void 0?arguments[1]:!0;const r=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(a=>`${a}${e?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...t.querySelectorAll(r)]}function L1e(t,e,r){let a,i=t.indexOf(document.activeElement);const d=e==="next"?1:-1;do i+=d,a=t[i];while((!a||a.offsetParent==null||!((r==null?void 0:r(a))??!0))&&i=0);return a}function PH(t,e){var a,i,d,f;const r=AH(t);if(!e)(t===document.activeElement||!t.contains(document.activeElement))&&((a=r[0])==null||a.focus());else if(e==="first")(i=r[0])==null||i.focus();else if(e==="last")(d=r.at(-1))==null||d.focus();else if(typeof e=="number")(f=r[e])==null||f.focus();else{const m=L1e(r,e);m?m.focus():PH(t,e==="next"?"first":"last")}}function mZ(t){return t==null||typeof t=="string"&&t.trim()===""}function I1e(){}function dM(t,e){if(!(Fl&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${e})`)))return null;try{return!!t&&t.matches(e)}catch{return null}}const N1e=["top","bottom"],WMe=["start","end","left","right"];function $se(t,e){let[r,a]=t.split(" ");return a||(a=kH(N1e,r)?"start":kH(WMe,r)?"top":"center"),{side:she(r,e),align:she(a,e)}}function she(t,e){return t==="start"?e?"right":"left":t==="end"?e?"left":"right":t}function Xre(t){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.side],align:t.align}}function Gre(t){return{side:t.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.align]}}function ahe(t){return{side:t.align,align:t.side}}function ihe(t){return kH(N1e,t.side)?"y":"x"}class JP{constructor(e){let{x:r,y:a,width:i,height:d}=e;this.x=r,this.y=a,this.width=i,this.height=d}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function lhe(t,e){return{x:{before:Math.max(0,e.left-t.left),after:Math.max(0,t.right-e.right)},y:{before:Math.max(0,e.top-t.top),after:Math.max(0,t.bottom-e.bottom)}}}function Eie(t){const e=t.getBoundingClientRect(),r=getComputedStyle(t),a=r.transform;if(a){let i,d,f,m,u;if(a.startsWith("matrix3d("))i=a.slice(9,-1).split(/, /),d=+i[0],f=+i[5],m=+i[12],u=+i[13];else if(a.startsWith("matrix("))i=a.slice(7,-1).split(/, /),d=+i[0],f=+i[3],m=+i[4],u=+i[5];else return new JP(e);const p=r.transformOrigin,v=e.x-m-(1-d)*parseFloat(p),y=e.y-u-(1-f)*parseFloat(p.slice(p.indexOf(" ")+1)),b=d?e.width/d:t.offsetWidth+1,x=f?e.height/f:t.offsetHeight+1;return new JP({x:v,y,width:b,height:x})}else return new JP(e)}function VP(t,e,r){if(typeof t.animate>"u")return{finished:Promise.resolve()};let a;try{a=t.animate(e,r)}catch{return{finished:Promise.resolve()}}return typeof a.finished>"u"&&(a.finished=new Promise(i=>{a.onfinish=()=>{i(a)}})),a}const ZZ=new WeakMap;function YMe(t,e){Object.keys(e).forEach(r=>{if(Aie(r)){const a=D1e(r),i=ZZ.get(t);if(e[r]==null)i==null||i.forEach(d=>{const[f,m]=d;f===a&&(t.removeEventListener(a,m),i.delete(d))});else if(!i||![...i].some(d=>d[0]===a&&d[1]===e[r])){t.addEventListener(a,e[r]);const d=i||new Set;d.add([a,e[r]]),ZZ.has(t)||ZZ.set(t,d)}}else e[r]==null?t.removeAttribute(r):t.setAttribute(r,e[r])})}function XMe(t,e){Object.keys(e).forEach(r=>{if(Aie(r)){const a=D1e(r),i=ZZ.get(t);i==null||i.forEach(d=>{const[f,m]=d;f===a&&(t.removeEventListener(a,m),i.delete(d))})}else t.removeAttribute(r)})}const DP=2.4,che=.2126729,uhe=.7151522,fhe=.072175,GMe=.55,jMe=.58,qMe=.57,KMe=.62,gZ=.03,dhe=1.45,JMe=5e-4,eEe=1.25,tEe=1.25,hhe=.078,mhe=12.82051282051282,pZ=.06,ghe=.001;function phe(t,e){const r=(t.r/255)**DP,a=(t.g/255)**DP,i=(t.b/255)**DP,d=(e.r/255)**DP,f=(e.g/255)**DP,m=(e.b/255)**DP;let u=r*che+a*uhe+i*fhe,p=d*che+f*uhe+m*fhe;if(u<=gZ&&(u+=(gZ-u)**dhe),p<=gZ&&(p+=(gZ-p)**dhe),Math.abs(p-u)u){const y=(p**GMe-u**jMe)*eEe;v=y-ghe?0:y>-hhe?y-y*mhe*pZ:y+pZ}return v*100}function nEe(t,e){e=Array.isArray(e)?e.slice(0,-1).map(r=>`'${r}'`).join(", ")+` or '${e.at(-1)}'`:`'${e}'`}const MH=.20689655172413793,rEe=t=>t>MH**3?Math.cbrt(t):t/(3*MH**2)+4/29,oEe=t=>t>MH?t**3:3*MH**2*(t-4/29);function B1e(t){const e=rEe,r=e(t[1]);return[116*r-16,500*(e(t[0]/.95047)-r),200*(r-e(t[2]/1.08883))]}function Q1e(t){const e=oEe,r=(t[0]+16)/116;return[e(r+t[1]/500)*.95047,e(r),e(r-t[2]/200)*1.08883]}const sEe=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],aEe=t=>t<=.0031308?t*12.92:1.055*t**(1/2.4)-.055,iEe=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],lEe=t=>t<=.04045?t/12.92:((t+.055)/1.055)**2.4;function F1e(t){const e=Array(3),r=aEe,a=sEe;for(let i=0;i<3;++i)e[i]=Math.round(Ap(r(a[i][0]*t[0]+a[i][1]*t[1]+a[i][2]*t[2]))*255);return{r:e[0],g:e[1],b:e[2]}}function _ie(t){let{r:e,g:r,b:a}=t;const i=[0,0,0],d=lEe,f=iEe;e=d(e/255),r=d(r/255),a=d(a/255);for(let m=0;m<3;++m)i[m]=f[m][0]*e+f[m][1]*r+f[m][2]*a;return i}function vhe(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}const yhe=/^(?(?:rgb|hsl)a?)\((?.+)\)/,cEe={rgb:(t,e,r,a)=>({r:t,g:e,b:r,a}),rgba:(t,e,r,a)=>({r:t,g:e,b:r,a}),hsl:(t,e,r,a)=>bhe({h:t,s:e,l:r,a}),hsla:(t,e,r,a)=>bhe({h:t,s:e,l:r,a}),hsv:(t,e,r,a)=>v$({h:t,s:e,v:r,a}),hsva:(t,e,r,a)=>v$({h:t,s:e,v:r,a})};function X1(t){if(typeof t=="number")return{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&yhe.test(t)){const{groups:e}=t.match(yhe),{fn:r,values:a}=e,i=a.split(/,\s*/).map(d=>d.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(r)?parseFloat(d)/100:parseFloat(d));return cEe[r](...i)}else if(typeof t=="string"){let e=t.startsWith("#")?t.slice(1):t;return[3,4].includes(e.length)?e=e.split("").map(r=>r+r).join(""):[6,8].includes(e.length),fEe(e)}else if(typeof t=="object"){if(Yre(t,["r","g","b"]))return t;if(Yre(t,["h","s","l"]))return v$(V1e(t));if(Yre(t,["h","s","v"]))return v$(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name} +Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function v$(t){const{h:e,s:r,v:a,a:i}=t,d=m=>{const u=(m+e/60)%6;return a-a*r*Math.max(Math.min(u,4-u,1),0)},f=[d(5),d(3),d(1)].map(m=>Math.round(m*255));return{r:f[0],g:f[1],b:f[2],a:i}}function bhe(t){return v$(V1e(t))}function V1e(t){const{h:e,s:r,l:a,a:i}=t,d=a+r*Math.min(a,1-a),f=d===0?0:2-2*a/d;return{h:e,s:f,v:d,a:i}}function vZ(t){const e=Math.round(t).toString(16);return("00".substr(0,2-e.length)+e).toUpperCase()}function uEe(t){let{r:e,g:r,b:a,a:i}=t;return`#${[vZ(e),vZ(r),vZ(a),i!==void 0?vZ(Math.round(i*255)):""].join("")}`}function fEe(t){t=dEe(t);let[e,r,a,i]=UMe(t,2).map(d=>parseInt(d,16));return i=i===void 0?i:i/255,{r:e,g:r,b:a,a:i}}function dEe(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(e=>e+e).join("")),t.length!==6&&(t=rhe(rhe(t,6),8,"F")),t}function hEe(t,e){const r=B1e(_ie(t));return r[0]=r[0]+e*10,F1e(Q1e(r))}function mEe(t,e){const r=B1e(_ie(t));return r[0]=r[0]-e*10,F1e(Q1e(r))}function gEe(t){const e=X1(t);return _ie(e)[1]}function z1e(t){const e=Math.abs(phe(X1(0),X1(t)));return Math.abs(phe(X1(16777215),X1(t)))>Math.min(e,50)?"#fff":"#000"}const hM=Symbol.for("vuetify:defaults");function pEe(t){return Vo(t)}function Rie(){const t=ai(hM);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function ay(t,e){const r=Rie(),a=Vo(t),i=sn(()=>{if(ug(e==null?void 0:e.disabled))return r.value;const f=ug(e==null?void 0:e.scoped),m=ug(e==null?void 0:e.reset),u=ug(e==null?void 0:e.root);if(a.value==null&&!(f||m||u))return r.value;let p=Sp(a.value,{prev:r.value});if(f)return p;if(m||u){const v=Number(m||1/0);for(let y=0;y<=v&&!(!p||!("prev"in p));y++)p=p.prev;return p&&typeof u=="string"&&u in p&&(p=Sp(Sp(p,{prev:p}),p[u])),p}return p.prev?Sp(p.prev,p):p});return pc(hM,i),i}function vEe(t,e){var r,a;return typeof((r=t.props)==null?void 0:r[e])<"u"||typeof((a=t.props)==null?void 0:a[EC(e)])<"u"}function yEe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rie();const a=Sf("useDefaults");if(e=e??a.type.name??a.type.__name,!e)throw new Error("[Vuetify] Could not determine component name");const i=sn(()=>{var u;return(u=r.value)==null?void 0:u[t._as??e]}),d=new Proxy(t,{get(u,p){var y,b,x,k;const v=Reflect.get(u,p);return p==="class"||p==="style"?[(y=i.value)==null?void 0:y[p],v].filter(C=>C!=null):typeof p=="string"&&!vEe(a.vnode,p)?((b=i.value)==null?void 0:b[p])??((k=(x=r.value)==null?void 0:x.global)==null?void 0:k[p])??v:v}}),f=fs();am(()=>{if(i.value){const u=Object.entries(i.value).filter(p=>{let[v]=p;return v.startsWith(v[0].toUpperCase())});f.value=u.length?Object.fromEntries(u):void 0}else f.value=void 0});function m(){const u=wEe(hM,a);pc(hM,sn(()=>f.value?Sp((u==null?void 0:u.value)??{},f.value):u==null?void 0:u.value))}return{props:d,provideSubDefaults:m}}function AM(t){if(t._setup=t._setup??t.setup,!t.name)return t;if(t._setup){t.props=Vr(t.props??{},t.name)();const e=Object.keys(t.props);t.filterProps=function(a){return fM(a,e,["class","style"])},t.props._as=String,t.setup=function(a,i){const d=Rie();if(!d.value)return t._setup(a,i);const{props:f,provideSubDefaults:m}=yEe(a,a._as??t.name,d),u=t._setup(f,i);return m(),u}}return t}function qo(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return e=>(t?AM:_$)(e)}function bEe(t,e){return e.props=t,e}function PM(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",r=arguments.length>2?arguments[2]:void 0;return qo()({name:r??SO(Pp(t.replace(/__/g,"-"))),props:{tag:{type:String,default:e},...fa()},setup(a,i){let{slots:d}=i;return()=>{var f;return hg(a.tag,{class:[t,a.class],style:a.style},(f=d.default)==null?void 0:f.call(d))}}})}function Z1e(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const e=t.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}const EH="cubic-bezier(0.4, 0, 0.2, 1)",OEe="cubic-bezier(0.0, 0, 0.2, 1)",xEe="cubic-bezier(0.4, 0, 1, 1)";function Sf(t,e){const r=Bae();if(!r)throw new Error(`[Vuetify] ${t} ${e||"must be called from inside a setup function"}`);return r}function CO(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const e=Sf(t).type;return EC((e==null?void 0:e.aliasName)||(e==null?void 0:e.name))}let H1e=0,HZ=new WeakMap;function Wv(){const t=Sf("getUid");if(HZ.has(t))return HZ.get(t);{const e=H1e++;return HZ.set(t,e),e}}Wv.reset=()=>{H1e=0,HZ=new WeakMap};function U1e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;t;){if(e?SEe(t):Die(t))return t;t=t.parentElement}return document.scrollingElement}function _H(t,e){const r=[];if(e&&t&&!e.contains(t))return r;for(;t&&(Die(t)&&r.push(t),t!==e);)t=t.parentElement;return r}function Die(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return e.overflowY==="scroll"||e.overflowY==="auto"&&t.scrollHeight>t.clientHeight}function SEe(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(t);return["scroll","auto"].includes(e.overflowY)}function wEe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sf("injectSelf");const{provides:r}=e;if(r&&t in r)return r[t]}function TEe(t){for(;t;){if(window.getComputedStyle(t).position==="fixed")return!0;t=t.offsetParent}return!1}function Cs(t){const e=Sf("useRender");e.render=t}function PU(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const r=Vo(),a=Vo();if(Fl){const i=new ResizeObserver(d=>{t==null||t(d,i),d.length&&(e==="content"?a.value=d[0].contentRect:a.value=d[0].target.getBoundingClientRect())});im(()=>{i.disconnect()}),Ho(r,(d,f)=>{f&&(i.unobserve(Dse(f)),a.value=void 0),d&&i.observe(Dse(d))},{flush:"post"})}return{resizeRef:r,contentRect:E$(a)}}const RH=Symbol.for("vuetify:layout"),W1e=Symbol.for("vuetify:layout-item"),Ohe=1e3,CEe=Vr({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),kEe=Vr({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function AEe(){const t=ai(RH);if(!t)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:t.getLayoutItem,mainRect:t.mainRect,mainStyles:t.mainStyles}}function PEe(t){const e=ai(RH);if(!e)throw new Error("[Vuetify] Could not find injected layout");const r=t.id??`layout-item-${Wv()}`,a=Sf("useLayoutItem");pc(W1e,{id:r});const i=fs(!1);Eae(()=>i.value=!0),Mae(()=>i.value=!1);const{layoutItemStyles:d,layoutItemScrimStyles:f}=e.register(a,{...t,active:sn(()=>i.value?!1:t.active.value),id:r});return im(()=>e.unregister(r)),{layoutItemStyles:d,layoutRect:e.layoutRect,layoutItemScrimStyles:f}}const MEe=(t,e,r,a)=>{let i={top:0,left:0,right:0,bottom:0};const d=[{id:"",layer:{...i}}];for(const f of t){const m=e.get(f),u=r.get(f),p=a.get(f);if(!m||!u||!p)continue;const v={...i,[m.value]:parseInt(i[m.value],10)+(p.value?parseInt(u.value,10):0)};d.push({id:f,layer:v}),i=v}return d};function EEe(t){const e=ai(RH,null),r=sn(()=>e?e.rootZIndex.value-100:Ohe),a=Vo([]),i=tm(new Map),d=tm(new Map),f=tm(new Map),m=tm(new Map),u=tm(new Map),{resizeRef:p,contentRect:v}=PU(),y=sn(()=>{const N=new Map,F=t.overlaps??[];for(const z of F.filter(U=>U.includes(":"))){const[U,Q]=z.split(":");if(!a.value.includes(U)||!a.value.includes(Q))continue;const B=i.get(U),E=i.get(Q),W=d.get(U),Y=d.get(Q);!B||!E||!W||!Y||(N.set(Q,{position:B.value,amount:parseInt(W.value,10)}),N.set(U,{position:E.value,amount:-parseInt(Y.value,10)}))}return N}),b=sn(()=>{const N=[...new Set([...f.values()].map(z=>z.value))].sort((z,U)=>z-U),F=[];for(const z of N){const U=a.value.filter(Q=>{var B;return((B=f.get(Q))==null?void 0:B.value)===z});F.push(...U)}return MEe(F,i,d,m)}),x=sn(()=>!Array.from(u.values()).some(N=>N.value)),k=sn(()=>b.value[b.value.length-1].layer),C=sn(()=>({"--v-layout-left":cs(k.value.left),"--v-layout-right":cs(k.value.right),"--v-layout-top":cs(k.value.top),"--v-layout-bottom":cs(k.value.bottom),...x.value?void 0:{transition:"none"}})),w=sn(()=>b.value.slice(1).map((N,F)=>{let{id:z}=N;const{layer:U}=b.value[F],Q=d.get(z),B=i.get(z);return{id:z,...U,size:Number(Q.value),position:B.value}})),T=N=>w.value.find(F=>F.id===N),R=Sf("createLayout"),M=fs(!1);gg(()=>{M.value=!0}),pc(RH,{register:(N,F)=>{let{id:z,order:U,position:Q,layoutSize:B,elementSize:E,active:W,disableTransitions:Y,absolute:ie}=F;f.set(z,U),i.set(z,Q),d.set(z,B),m.set(z,W),Y&&u.set(z,Y);const me=QD(W1e,R==null?void 0:R.vnode).indexOf(N);me>-1?a.value.splice(me,0,z):a.value.push(z);const ae=sn(()=>w.value.findIndex(be=>be.id===z)),q=sn(()=>r.value+b.value.length*2-ae.value*2),fe=sn(()=>{const be=Q.value==="left"||Q.value==="right",Te=Q.value==="right",Be=Q.value==="bottom",ge={[Q.value]:0,zIndex:q.value,transform:`translate${be?"X":"Y"}(${(W.value?0:-110)*(Te||Be?-1:1)}%)`,position:ie.value||r.value!==Ohe?"absolute":"fixed",...x.value?void 0:{transition:"none"}};if(!M.value)return ge;const ne=w.value[ae.value];if(!ne)throw new Error(`[Vuetify] Could not find layout item "${z}"`);const pe=y.value.get(z);return pe&&(ne[pe.position]+=pe.amount),{...ge,height:be?`calc(100% - ${ne.top}px - ${ne.bottom}px)`:E.value?`${E.value}px`:void 0,left:Te?void 0:`${ne.left}px`,right:Te?`${ne.right}px`:void 0,top:Q.value!=="bottom"?`${ne.top}px`:void 0,bottom:Q.value!=="top"?`${ne.bottom}px`:void 0,width:be?E.value?`${E.value}px`:void 0:`calc(100% - ${ne.left}px - ${ne.right}px)`}}),ee=sn(()=>({zIndex:q.value-1}));return{layoutItemStyles:fe,layoutItemScrimStyles:ee,zIndex:q}},unregister:N=>{f.delete(N),i.delete(N),d.delete(N),m.delete(N),u.delete(N),a.value=a.value.filter(F=>F!==N)},mainRect:k,mainStyles:C,getLayoutItem:T,items:w,layoutRect:v,rootZIndex:r});const I=sn(()=>["v-layout",{"v-layout--full-height":t.fullHeight}]),V=sn(()=>({zIndex:e?r.value:void 0,position:e?"relative":void 0,overflow:e?"hidden":void 0}));return{layoutClasses:I,layoutStyles:V,getLayoutItem:T,items:w,layoutRect:v,layoutRef:p}}const _Ee={badge:"Badge",open:"Open",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{ok:"OK",cancel:"Cancel",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},REe={af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1};function PS(t,e){let r;function a(){r=vae(),r.run(()=>e.length?e(()=>{r==null||r.stop(),a()}):e())}Ho(t,i=>{i&&!r?a():i||(r==null||r.stop(),r=void 0)},{immediate:!0}),om(()=>{r==null||r.stop()})}function pi(t,e,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:y=>y,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:y=>y;const d=Sf("useProxiedModel"),f=Vo(t[e]!==void 0?t[e]:r),m=EC(e),p=sn(m!==e?()=>{var y,b,x,k;return t[e],!!(((y=d.vnode.props)!=null&&y.hasOwnProperty(e)||(b=d.vnode.props)!=null&&b.hasOwnProperty(m))&&((x=d.vnode.props)!=null&&x.hasOwnProperty(`onUpdate:${e}`)||(k=d.vnode.props)!=null&&k.hasOwnProperty(`onUpdate:${m}`)))}:()=>{var y,b;return t[e],!!((y=d.vnode.props)!=null&&y.hasOwnProperty(e)&&((b=d.vnode.props)!=null&&b.hasOwnProperty(`onUpdate:${e}`)))});PS(()=>!p.value,()=>{Ho(()=>t[e],y=>{f.value=y})});const v=sn({get(){const y=t[e];return a(p.value?y:f.value)},set(y){const b=i(y),x=va(p.value?t[e]:f.value);x===b||a(x)===y||(f.value=b,d==null||d.emit(`update:${e}`,b))}});return Object.defineProperty(v,"externalValue",{get:()=>p.value?t[e]:f.value}),v}const xhe="$vuetify.",She=(t,e)=>t.replace(/\{(\d+)\}/g,(r,a)=>String(e[+a])),Y1e=(t,e,r)=>function(a){for(var i=arguments.length,d=new Array(i>1?i-1:0),f=1;fnew Intl.NumberFormat([t.value,e.value],a).format(r)}function jre(t,e,r){const a=pi(t,e,t[e]??r.value);return a.value=t[e]??r.value,Ho(r,i=>{t[e]==null&&(a.value=r.value)}),a}function G1e(t){return e=>{const r=jre(e,"locale",t.current),a=jre(e,"fallback",t.fallback),i=jre(e,"messages",t.messages);return{name:"vuetify",current:r,fallback:a,messages:i,t:Y1e(r,a,i),n:X1e(r,a),provide:G1e({current:r,fallback:a,messages:i})}}}function DEe(t){const e=fs((t==null?void 0:t.locale)??"en"),r=fs((t==null?void 0:t.fallback)??"en"),a=Vo({en:_Ee,...t==null?void 0:t.messages});return{name:"vuetify",current:e,fallback:r,messages:a,t:Y1e(e,r,a),n:X1e(e,r),provide:G1e({current:e,fallback:r,messages:a})}}const DH=Symbol.for("vuetify:locale");function $Ee(t){return t.name!=null}function LEe(t){const e=t!=null&&t.adapter&&$Ee(t==null?void 0:t.adapter)?t==null?void 0:t.adapter:DEe(t),r=IEe(e,t);return{...e,...r}}function LS(){const t=ai(DH);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function IEe(t,e){const r=Vo((e==null?void 0:e.rtl)??REe),a=sn(()=>r.value[t.current.value]??!1);return{isRtl:a,rtl:r,rtlClasses:sn(()=>`v-locale--is-${a.value?"rtl":"ltr"}`)}}function Dp(){const t=ai(DH);if(!t)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:t.isRtl,rtlClasses:t.rtlClasses}}const $H=Symbol.for("vuetify:theme"),yu=Vr({theme:String},"theme"),pD={defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#6200EE","primary-darken-1":"#3700B3",secondary:"#03DAC6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#BB86FC","primary-darken-1":"#3700B3",secondary:"#03DAC5","secondary-darken-1":"#03DAC5",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}};function NEe(){var r,a;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pD;if(!t)return{...pD,isDisabled:!0};const e={};for(const[i,d]of Object.entries(t.themes??{})){const f=d.dark||i==="dark"?(r=pD.themes)==null?void 0:r.dark:(a=pD.themes)==null?void 0:a.light;e[i]=Sp(f,d)}return Sp(pD,{...t,themes:e})}function BEe(t){const e=NEe(t),r=Vo(e.defaultTheme),a=Vo(e.themes),i=sn(()=>{const v={};for(const[y,b]of Object.entries(a.value)){const x=v[y]={...b,colors:{...b.colors}};if(e.variations)for(const k of e.variations.colors){const C=x.colors[k];if(C)for(const w of["lighten","darken"]){const T=w==="lighten"?hEe:mEe;for(const R of uM(e.variations[w],1))x.colors[`${k}-${w}-${R}`]=uEe(T(X1(C),R))}}for(const k of Object.keys(x.colors)){if(/^on-[a-z]/.test(k)||x.colors[`on-${k}`])continue;const C=`on-${k}`,w=X1(x.colors[k]);x.colors[C]=z1e(w)}}return v}),d=sn(()=>i.value[r.value]),f=sn(()=>{const v=[];d.value.dark&&dC(v,":root",["color-scheme: dark"]),dC(v,":root",whe(d.value));for(const[k,C]of Object.entries(i.value))dC(v,`.v-theme--${k}`,[`color-scheme: ${C.dark?"dark":"normal"}`,...whe(C)]);const y=[],b=[],x=new Set(Object.values(i.value).flatMap(k=>Object.keys(k.colors)));for(const k of x)/^on-[a-z]/.test(k)?dC(b,`.${k}`,[`color: rgb(var(--v-theme-${k})) !important`]):(dC(y,`.bg-${k}`,[`--v-theme-overlay-multiplier: var(--v-theme-${k}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${k})) !important`,`color: rgb(var(--v-theme-on-${k})) !important`]),dC(b,`.text-${k}`,[`color: rgb(var(--v-theme-${k})) !important`]),dC(b,`.border-${k}`,[`--v-border-color: var(--v-theme-${k})`]));return v.push(...y,...b),v.map((k,C)=>C===0?k:` ${k}`).join("")});function m(){return{style:[{children:f.value,id:"vuetify-theme-stylesheet",nonce:e.cspNonce||!1}]}}function u(v){if(e.isDisabled)return;const y=v._context.provides.usehead;if(y)if(y.push){const b=y.push(m);Fl&&Ho(f,()=>{b.patch(m)})}else Fl?(y.addHeadObjs(sn(m)),am(()=>y.updateDOM())):y.addHeadObjs(m());else{let x=function(){if(typeof document<"u"&&!b){const k=document.createElement("style");k.type="text/css",k.id="vuetify-theme-stylesheet",e.cspNonce&&k.setAttribute("nonce",e.cspNonce),b=k,document.head.appendChild(b)}b&&(b.innerHTML=f.value)},b=Fl?document.getElementById("vuetify-theme-stylesheet"):null;Fl?Ho(f,x,{immediate:!0}):x()}}const p=sn(()=>e.isDisabled?void 0:`v-theme--${r.value}`);return{install:u,isDisabled:e.isDisabled,name:r,themes:a,current:d,computedThemes:i,themeClasses:p,styles:f,global:{name:r,current:d}}}function wf(t){Sf("provideTheme");const e=ai($H,null);if(!e)throw new Error("Could not find Vuetify theme injection");const r=sn(()=>t.theme??e.name.value),a=sn(()=>e.themes.value[r.value]),i=sn(()=>e.isDisabled?void 0:`v-theme--${r.value}`),d={...e,name:r,current:a,themeClasses:i};return pc($H,d),d}function dC(t,e,r){t.push(`${e} { +`,...r.map(a=>` ${a}; +`),`} +`)}function whe(t){const e=t.dark?2:1,r=t.dark?1:2,a=[];for(const[i,d]of Object.entries(t.colors)){const f=X1(d);a.push(`--v-theme-${i}: ${f.r},${f.g},${f.b}`),i.startsWith("on-")||a.push(`--v-theme-${i}-overlay-multiplier: ${gEe(d)>.18?e:r}`)}for(const[i,d]of Object.entries(t.variables)){const f=typeof d=="string"&&d.startsWith("#")?X1(d):void 0,m=f?`${f.r}, ${f.g}, ${f.b}`:void 0;a.push(`--v-${i}: ${m??d}`)}return a}const QEe=Vr({...fa(),...CEe({fullHeight:!0}),...yu()},"VApp"),FEe=qo()({name:"VApp",props:QEe(),setup(t,e){let{slots:r}=e;const a=wf(t),{layoutClasses:i,getLayoutItem:d,items:f,layoutRef:m}=EEe(t),{rtlClasses:u}=Dp();return Cs(()=>{var p;return lt("div",{ref:m,class:["v-application",a.themeClasses.value,i.value,u.value,t.class],style:[t.style]},[lt("div",{class:"v-application__wrap"},[(p=r.default)==null?void 0:p.call(r)])])}),{getLayoutItem:d,items:f,theme:a}}});const Qc=Vr({tag:{type:String,default:"div"}},"tag"),VEe=Vr({text:String,...fa(),...Qc()},"VToolbarTitle"),zEe=qo()({name:"VToolbarTitle",props:VEe(),setup(t,e){let{slots:r}=e;return Cs(()=>{const a=!!(r.default||r.text||t.text);return lt(t.tag,{class:["v-toolbar-title",t.class],style:t.style},{default:()=>{var i;return[a&<("div",{class:"v-toolbar-title__placeholder"},[r.text?r.text():t.text,(i=r.default)==null?void 0:i.call(r)])]}})}),{}}}),ZEe=Vr({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function pg(t,e,r){return qo()({name:t,props:ZEe({mode:r,origin:e}),setup(a,i){let{slots:d}=i;const f={onBeforeEnter(m){a.origin&&(m.style.transformOrigin=a.origin)},onLeave(m){if(a.leaveAbsolute){const{offsetTop:u,offsetLeft:p,offsetWidth:v,offsetHeight:y}=m;m._transitionInitialStyles={position:m.style.position,top:m.style.top,left:m.style.left,width:m.style.width,height:m.style.height},m.style.position="absolute",m.style.top=`${u}px`,m.style.left=`${p}px`,m.style.width=`${v}px`,m.style.height=`${y}px`}a.hideOnLeave&&m.style.setProperty("display","none","important")},onAfterLeave(m){if(a.leaveAbsolute&&(m!=null&&m._transitionInitialStyles)){const{position:u,top:p,left:v,width:y,height:b}=m._transitionInitialStyles;delete m._transitionInitialStyles,m.style.position=u||"",m.style.top=p||"",m.style.left=v||"",m.style.width=y||"",m.style.height=b||""}}};return()=>{const m=a.group?rTe:vO;return hg(m,{name:a.disabled?"":t,css:!a.disabled,...a.group?void 0:{mode:a.mode},...a.disabled?{}:f},d.default)}}})}function j1e(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return qo()({name:t,props:{mode:{type:String,default:r},disabled:Boolean},setup(a,i){let{slots:d}=i;return()=>hg(vO,{name:a.disabled?"":t,css:!a.disabled,...a.disabled?{}:e},d.default)}})}function q1e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",a=Pp(`offset-${r}`);return{onBeforeEnter(f){f._parent=f.parentNode,f._initialStyle={transition:f.style.transition,overflow:f.style.overflow,[r]:f.style[r]}},onEnter(f){const m=f._initialStyle;f.style.setProperty("transition","none","important"),f.style.overflow="hidden";const u=`${f[a]}px`;f.style[r]="0",f.offsetHeight,f.style.transition=m.transition,t&&f._parent&&f._parent.classList.add(t),requestAnimationFrame(()=>{f.style[r]=u})},onAfterEnter:d,onEnterCancelled:d,onLeave(f){f._initialStyle={transition:"",overflow:f.style.overflow,[r]:f.style[r]},f.style.overflow="hidden",f.style[r]=`${f[a]}px`,f.offsetHeight,requestAnimationFrame(()=>f.style[r]="0")},onAfterLeave:i,onLeaveCancelled:i};function i(f){t&&f._parent&&f._parent.classList.remove(t),d(f)}function d(f){const m=f._initialStyle[r];f.style.overflow=f._initialStyle.overflow,m!=null&&(f.style[r]=m),delete f._initialStyle}}const HEe=Vr({target:Object},"v-dialog-transition"),$ie=qo()({name:"VDialogTransition",props:HEe(),setup(t,e){let{slots:r}=e;const a={onBeforeEnter(i){i.style.pointerEvents="none",i.style.visibility="hidden"},async onEnter(i,d){var b;await new Promise(x=>requestAnimationFrame(x)),await new Promise(x=>requestAnimationFrame(x)),i.style.visibility="";const{x:f,y:m,sx:u,sy:p,speed:v}=Che(t.target,i),y=VP(i,[{transform:`translate(${f}px, ${m}px) scale(${u}, ${p})`,opacity:0},{}],{duration:225*v,easing:OEe});(b=The(i))==null||b.forEach(x=>{VP(x,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*v,easing:EH})}),y.finished.then(()=>d())},onAfterEnter(i){i.style.removeProperty("pointer-events")},onBeforeLeave(i){i.style.pointerEvents="none"},async onLeave(i,d){var b;await new Promise(x=>requestAnimationFrame(x));const{x:f,y:m,sx:u,sy:p,speed:v}=Che(t.target,i);VP(i,[{},{transform:`translate(${f}px, ${m}px) scale(${u}, ${p})`,opacity:0}],{duration:125*v,easing:xEe}).finished.then(()=>d()),(b=The(i))==null||b.forEach(x=>{VP(x,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*v,easing:EH})})},onAfterLeave(i){i.style.removeProperty("pointer-events")}};return()=>t.target?lt(vO,rs({name:"dialog-transition"},a,{css:!1}),r):lt(vO,{name:"dialog-transition"},r)}});function The(t){var r;const e=(r=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:r.children;return e&&[...e]}function Che(t,e){const r=t.getBoundingClientRect(),a=Eie(e),[i,d]=getComputedStyle(e).transformOrigin.split(" ").map(T=>parseFloat(T)),[f,m]=getComputedStyle(e).getPropertyValue("--v-overlay-anchor-origin").split(" ");let u=r.left+r.width/2;f==="left"||m==="left"?u-=r.width/2:(f==="right"||m==="right")&&(u+=r.width/2);let p=r.top+r.height/2;f==="top"||m==="top"?p-=r.height/2:(f==="bottom"||m==="bottom")&&(p+=r.height/2);const v=r.width/a.width,y=r.height/a.height,b=Math.max(1,v,y),x=v/b||0,k=y/b||0,C=a.width*a.height/(window.innerWidth*window.innerHeight),w=C>.12?Math.min(1.5,(C-.12)*10+1):1;return{x:u-(i+a.left),y:p-(d+a.top),sx:x,sy:k,speed:w}}pg("fab-transition","center center","out-in");pg("dialog-bottom-transition");pg("dialog-top-transition");pg("fade-transition");const UEe=pg("scale-transition");pg("scroll-x-transition");pg("scroll-x-reverse-transition");pg("scroll-y-transition");pg("scroll-y-reverse-transition");pg("slide-x-transition");pg("slide-x-reverse-transition");const K1e=pg("slide-y-transition");pg("slide-y-reverse-transition");const Lie=j1e("expand-transition",q1e()),J1e=j1e("expand-x-transition",q1e("",!0)),WEe=Vr({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),Kc=qo(!1)({name:"VDefaultsProvider",props:WEe(),setup(t,e){let{slots:r}=e;const{defaults:a,disabled:i,reset:d,root:f,scoped:m}=sU(t);return ay(a,{reset:d,root:f,scoped:m,disabled:i}),()=>{var u;return(u=r.default)==null?void 0:u.call(r)}}});const FC=Vr({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function VC(t){return{dimensionStyles:sn(()=>({height:cs(t.height),maxHeight:cs(t.maxHeight),maxWidth:cs(t.maxWidth),minHeight:cs(t.minHeight),minWidth:cs(t.minWidth),width:cs(t.width)}))}}function YEe(t){return{aspectStyles:sn(()=>{const e=Number(t.aspectRatio);return e?{paddingBottom:String(1/e*100)+"%"}:void 0})}}const eye=Vr({aspectRatio:[String,Number],contentClass:String,inline:Boolean,...fa(),...FC()},"VResponsive"),khe=qo()({name:"VResponsive",props:eye(),setup(t,e){let{slots:r}=e;const{aspectStyles:a}=YEe(t),{dimensionStyles:i}=VC(t);return Cs(()=>{var d;return lt("div",{class:["v-responsive",{"v-responsive--inline":t.inline},t.class],style:[i.value,t.style]},[lt("div",{class:"v-responsive__sizer",style:a.value},null),(d=r.additional)==null?void 0:d.call(r),r.default&<("div",{class:["v-responsive__content",t.contentClass]},[r.default()])])}),{}}}),zC=Vr({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:t=>t!==!0}},"transition"),hS=(t,e)=>{let{slots:r}=e;const{transition:a,disabled:i,...d}=t,{component:f=vO,...m}=typeof a=="object"?a:{};return hg(f,rs(typeof a=="string"?{name:i?"":a}:m,d,{disabled:i}),r)};function XEe(t,e){if(!kie)return;const r=e.modifiers||{},a=e.value,{handler:i,options:d}=typeof a=="object"?a:{handler:a,options:{}},f=new IntersectionObserver(function(){var y;let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1?arguments[1]:void 0;const p=(y=t._observe)==null?void 0:y[e.instance.$.uid];if(!p)return;const v=m.some(b=>b.isIntersecting);i&&(!r.quiet||p.init)&&(!r.once||v||p.init)&&i(v,m,u),v&&r.once?tye(t,e):p.init=!0},d);t._observe=Object(t._observe),t._observe[e.instance.$.uid]={init:!1,observer:f},f.observe(t)}function tye(t,e){var a;const r=(a=t._observe)==null?void 0:a[e.instance.$.uid];r&&(r.observer.unobserve(t),delete t._observe[e.instance.$.uid])}const GEe={mounted:XEe,unmounted:tye},Iie=GEe,jEe=Vr({alt:String,cover:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},srcset:String,...eye(),...fa(),...zC()},"VImg"),Z$=qo()({name:"VImg",directives:{intersect:Iie},props:jEe(),emits:{loadstart:t=>!0,load:t=>!0,error:t=>!0},setup(t,e){let{emit:r,slots:a}=e;const i=fs(""),d=Vo(),f=fs(t.eager?"loading":"idle"),m=fs(),u=fs(),p=sn(()=>t.src&&typeof t.src=="object"?{src:t.src.src,srcset:t.srcset||t.src.srcset,lazySrc:t.lazySrc||t.src.lazySrc,aspect:Number(t.aspectRatio||t.src.aspect||0)}:{src:t.src,srcset:t.srcset,lazySrc:t.lazySrc,aspect:Number(t.aspectRatio||0)}),v=sn(()=>p.value.aspect||m.value/u.value||0);Ho(()=>t.src,()=>{y(f.value!=="idle")}),Ho(v,(z,U)=>{!z&&U&&d.value&&w(d.value)}),_ae(()=>y());function y(z){if(!(t.eager&&z)&&!(kie&&!z&&!t.eager)){if(f.value="loading",p.value.lazySrc){const U=new Image;U.src=p.value.lazySrc,w(U,null)}p.value.src&&ec(()=>{var U,Q;if(r("loadstart",((U=d.value)==null?void 0:U.currentSrc)||p.value.src),(Q=d.value)!=null&&Q.complete){if(d.value.naturalWidth||x(),f.value==="error")return;v.value||w(d.value,null),b()}else v.value||w(d.value),k()})}}function b(){var z;k(),f.value="loaded",r("load",((z=d.value)==null?void 0:z.currentSrc)||p.value.src)}function x(){var z;f.value="error",r("error",((z=d.value)==null?void 0:z.currentSrc)||p.value.src)}function k(){const z=d.value;z&&(i.value=z.currentSrc||z.src)}let C=-1;function w(z){let U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const Q=()=>{clearTimeout(C);const{naturalHeight:B,naturalWidth:E}=z;B||E?(m.value=E,u.value=B):!z.complete&&f.value==="loading"&&U!=null?C=window.setTimeout(Q,U):(z.currentSrc.endsWith(".svg")||z.currentSrc.startsWith("data:image/svg+xml"))&&(m.value=1,u.value=1)};Q()}const T=sn(()=>({"v-img__img--cover":t.cover,"v-img__img--contain":!t.cover})),R=()=>{var Q;if(!p.value.src||f.value==="idle")return null;const z=lt("img",{class:["v-img__img",T.value],src:p.value.src,srcset:p.value.srcset,alt:t.alt,sizes:t.sizes,ref:d,onLoad:b,onError:x},null),U=(Q=a.sources)==null?void 0:Q.call(a);return lt(hS,{transition:t.transition,appear:!0},{default:()=>[Qu(U?lt("picture",{class:"v-img__picture"},[U,z]):z,[[ES,f.value==="loaded"]])]})},M=()=>lt(hS,{transition:t.transition},{default:()=>[p.value.lazySrc&&f.value!=="loaded"&<("img",{class:["v-img__img","v-img__img--preload",T.value],src:p.value.lazySrc,alt:t.alt},null)]}),I=()=>a.placeholder?lt(hS,{transition:t.transition,appear:!0},{default:()=>[(f.value==="loading"||f.value==="error"&&!a.error)&<("div",{class:"v-img__placeholder"},[a.placeholder()])]}):null,V=()=>a.error?lt(hS,{transition:t.transition,appear:!0},{default:()=>[f.value==="error"&<("div",{class:"v-img__error"},[a.error()])]}):null,N=()=>t.gradient?lt("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${t.gradient})`}},null):null,F=fs(!1);{const z=Ho(v,U=>{U&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{F.value=!0})}),z())})}return Cs(()=>{const[z]=khe.filterProps(t);return Qu(lt(khe,rs({class:["v-img",{"v-img--booting":!F.value},t.class],style:[{width:cs(t.width==="auto"?m.value:t.width)},t.style]},z,{aspectRatio:v.value,"aria-label":t.alt,role:t.alt?"img":void 0}),{additional:()=>lt(Go,null,[lt(R,null,null),lt(M,null,null),lt(N,null,null),lt(I,null,null),lt(V,null,null)]),default:a.default}),[[Hv("intersect"),{handler:y,options:t.options},null,{once:!0}]])}),{currentSrc:i,image:d,state:f,naturalWidth:m,naturalHeight:u}}}),ZC=Vr({border:[Boolean,Number,String]},"border");function HC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CO();return{borderClasses:sn(()=>{const a=mc(t)?t.value:t.border,i=[];if(a===!0||a==="")i.push(`${e}--border`);else if(typeof a=="string"||a===0)for(const d of String(a).split(" "))i.push(`border-${d}`);return i})}}function Nie(t){return Mie(()=>{const e=[],r={};if(t.value.background)if(vhe(t.value.background)){if(r.backgroundColor=t.value.background,!t.value.text){const a=X1(t.value.background);if(a.a==null||a.a===1){const i=z1e(a);r.color=i,r.caretColor=i}}}else e.push(`bg-${t.value.background}`);return t.value.text&&(vhe(t.value.text)?(r.color=t.value.text,r.caretColor=t.value.text):e.push(`text-${t.value.text}`)),{colorClasses:e,colorStyles:r}})}function Ep(t,e){const r=sn(()=>({text:mc(t)?t.value:e?t[e]:null})),{colorClasses:a,colorStyles:i}=Nie(r);return{textColorClasses:a,textColorStyles:i}}function _p(t,e){const r=sn(()=>({background:mc(t)?t.value:e?t[e]:null})),{colorClasses:a,colorStyles:i}=Nie(r);return{backgroundColorClasses:a,backgroundColorStyles:i}}const kO=Vr({elevation:{type:[Number,String],validator(t){const e=parseInt(t);return!isNaN(e)&&e>=0&&e<=24}}},"elevation");function AO(t){return{elevationClasses:sn(()=>{const r=mc(t)?t.value:t.elevation,a=[];return r==null||a.push(`elevation-${r}`),a})}}const $p=Vr({rounded:{type:[Boolean,Number,String],default:void 0}},"rounded");function Lp(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CO();return{roundedClasses:sn(()=>{const a=mc(t)?t.value:t.rounded,i=[];if(a===!0||a==="")i.push(`${e}--rounded`);else if(typeof a=="string"||a===0)for(const d of String(a).split(" "))i.push(`rounded-${d}`);return i})}}const qEe=[null,"prominent","default","comfortable","compact"],nye=Vr({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:t=>qEe.includes(t)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...ZC(),...fa(),...kO(),...$p(),...Qc({tag:"header"}),...yu()},"VToolbar"),Ahe=qo()({name:"VToolbar",props:nye(),setup(t,e){var x;let{slots:r}=e;const{backgroundColorClasses:a,backgroundColorStyles:i}=_p(ns(t,"color")),{borderClasses:d}=HC(t),{elevationClasses:f}=AO(t),{roundedClasses:m}=Lp(t),{themeClasses:u}=wf(t),{rtlClasses:p}=Dp(),v=fs(!!(t.extended||(x=r.extension)!=null&&x.call(r))),y=sn(()=>parseInt(Number(t.height)+(t.density==="prominent"?Number(t.height):0)-(t.density==="comfortable"?8:0)-(t.density==="compact"?16:0),10)),b=sn(()=>v.value?parseInt(Number(t.extensionHeight)+(t.density==="prominent"?Number(t.extensionHeight):0)-(t.density==="comfortable"?4:0)-(t.density==="compact"?8:0),10):0);return ay({VBtn:{variant:"text"}}),Cs(()=>{var T;const k=!!(t.title||r.title),C=!!(r.image||t.image),w=(T=r.extension)==null?void 0:T.call(r);return v.value=!!(t.extended||w),lt(t.tag,{class:["v-toolbar",{"v-toolbar--absolute":t.absolute,"v-toolbar--collapse":t.collapse,"v-toolbar--flat":t.flat,"v-toolbar--floating":t.floating,[`v-toolbar--density-${t.density}`]:!0},a.value,d.value,f.value,m.value,u.value,p.value,t.class],style:[i.value,t.style]},{default:()=>[C&<("div",{key:"image",class:"v-toolbar__image"},[r.image?lt(Kc,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},r.image):lt(Z$,{key:"image-img",cover:!0,src:t.image},null)]),lt(Kc,{defaults:{VTabs:{height:cs(y.value)}}},{default:()=>{var R,M,I;return[lt("div",{class:"v-toolbar__content",style:{height:cs(y.value)}},[r.prepend&<("div",{class:"v-toolbar__prepend"},[(R=r.prepend)==null?void 0:R.call(r)]),k&<(zEe,{key:"title",text:t.title},{text:r.title}),(M=r.default)==null?void 0:M.call(r),r.append&<("div",{class:"v-toolbar__append"},[(I=r.append)==null?void 0:I.call(r)])])]}}),lt(Kc,{defaults:{VTabs:{height:cs(b.value)}}},{default:()=>[lt(Lie,null,{default:()=>[v.value&<("div",{class:"v-toolbar__extension",style:{height:cs(b.value)}},[w])]})]})]})}),{contentHeight:y,extensionHeight:b}}}),KEe=Vr({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function JEe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:r}=e;let a=0;const i=Vo(null),d=fs(0),f=fs(0),m=fs(0),u=fs(!1),p=fs(!1),v=sn(()=>Number(t.scrollThreshold)),y=sn(()=>Ap((v.value-d.value)/v.value||0)),b=()=>{const x=i.value;!x||r&&!r.value||(a=d.value,d.value="window"in x?x.pageYOffset:x.scrollTop,p.value=d.value{f.value=f.value||d.value}),Ho(u,()=>{f.value=0}),gg(()=>{Ho(()=>t.scrollTarget,x=>{var C;const k=x?document.querySelector(x):window;k&&k!==i.value&&((C=i.value)==null||C.removeEventListener("scroll",b),i.value=k,i.value.addEventListener("scroll",b,{passive:!0}))},{immediate:!0})}),im(()=>{var x;(x=i.value)==null||x.removeEventListener("scroll",b)}),r&&Ho(r,b,{immediate:!0}),{scrollThreshold:v,currentScroll:d,currentThreshold:m,isScrollActive:u,scrollRatio:y,isScrollingUp:p,savedScroll:f}}function Bie(){const t=fs(!1);return gg(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:sn(()=>t.value?void 0:{transition:"none !important"}),isBooted:E$(t)}}const e_e=Vr({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:t=>["top","bottom"].includes(t)},...nye(),...kEe(),...KEe(),height:{type:[Number,String],default:64}},"VAppBar"),t_e=qo()({name:"VAppBar",props:e_e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;const a=Vo(),i=pi(t,"modelValue"),d=sn(()=>{var R;const T=new Set(((R=t.scrollBehavior)==null?void 0:R.split(" "))??[]);return{hide:T.has("hide"),inverted:T.has("inverted"),collapse:T.has("collapse"),elevate:T.has("elevate"),fadeImage:T.has("fade-image")}}),f=sn(()=>{const T=d.value;return T.hide||T.inverted||T.collapse||T.elevate||T.fadeImage||!i.value}),{currentScroll:m,scrollThreshold:u,isScrollingUp:p,scrollRatio:v}=JEe(t,{canScroll:f}),y=sn(()=>t.collapse||d.value.collapse&&(d.value.inverted?v.value>0:v.value===0)),b=sn(()=>t.flat||d.value.elevate&&(d.value.inverted?m.value>0:m.value===0)),x=sn(()=>d.value.fadeImage?d.value.inverted?1-v.value:v.value:void 0),k=sn(()=>{var M,I;if(d.value.hide&&d.value.inverted)return 0;const T=((M=a.value)==null?void 0:M.contentHeight)??0,R=((I=a.value)==null?void 0:I.extensionHeight)??0;return T+R});PS(sn(()=>!!t.scrollBehavior),()=>{am(()=>{d.value.hide?d.value.inverted?i.value=m.value>u.value:i.value=p.value||m.valueparseInt(t.order,10)),position:ns(t,"location"),layoutSize:k,elementSize:fs(void 0),active:i,absolute:ns(t,"absolute")});return Cs(()=>{const[T]=Ahe.filterProps(t);return lt(Ahe,rs({ref:a,class:["v-app-bar",{"v-app-bar--bottom":t.location==="bottom"},t.class],style:[{...w.value,"--v-toolbar-image-opacity":x.value,height:void 0,...C.value},t.style]},T,{collapse:y.value,flat:b.value}),r)}),{}}});const n_e=[null,"default","comfortable","compact"],Yv=Vr({density:{type:String,default:"default",validator:t=>n_e.includes(t)}},"density");function iy(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CO();return{densityClasses:sn(()=>`${e}--density-${t.density}`)}}const r_e=["elevated","flat","tonal","outlined","text","plain"];function H$(t,e){return lt(Go,null,[t&<("span",{key:"overlay",class:`${e}__overlay`},null),lt("span",{key:"underlay",class:`${e}__underlay`},null)])}const IS=Vr({color:String,variant:{type:String,default:"elevated",validator:t=>r_e.includes(t)}},"variant");function U$(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CO();const r=sn(()=>{const{variant:d}=ug(t);return`${e}--variant-${d}`}),{colorClasses:a,colorStyles:i}=Nie(sn(()=>{const{variant:d,color:f}=ug(t);return{[["elevated","flat"].includes(d)?"background":"text"]:f}}));return{colorClasses:a,colorStyles:i,variantClasses:r}}const rye=Vr({divided:Boolean,...ZC(),...fa(),...Yv(),...kO(),...$p(),...Qc(),...yu(),...IS()},"VBtnGroup"),Phe=qo()({name:"VBtnGroup",props:rye(),setup(t,e){let{slots:r}=e;const{themeClasses:a}=wf(t),{densityClasses:i}=iy(t),{borderClasses:d}=HC(t),{elevationClasses:f}=AO(t),{roundedClasses:m}=Lp(t);ay({VBtn:{height:"auto",color:ns(t,"color"),density:ns(t,"density"),flat:!0,variant:ns(t,"variant")}}),Cs(()=>lt(t.tag,{class:["v-btn-group",{"v-btn-group--divided":t.divided},a.value,d.value,i.value,f.value,m.value,t.class],style:t.style},r))}}),Qie=Vr({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Fie=Vr({value:null,disabled:Boolean,selectedClass:String},"group-item");function Vie(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const a=Sf("useGroupItem");if(!a)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const i=Wv();pc(Symbol.for(`${e.description}:id`),i);const d=ai(e,null);if(!d){if(!r)return d;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${e.description}`)}const f=ns(t,"value"),m=sn(()=>!!(d.disabled.value||t.disabled));d.register({id:i,value:f,disabled:m},a),im(()=>{d.unregister(i)});const u=sn(()=>d.isSelected(i)),p=sn(()=>u.value&&[d.selectedClass.value,t.selectedClass]);return Ho(u,v=>{a.emit("group:selected",{value:v})}),{id:i,isSelected:u,toggle:()=>d.select(i,!u.value),select:v=>d.select(i,v),selectedClass:p,value:f,disabled:m,group:d}}function zie(t,e){let r=!1;const a=tm([]),i=pi(t,"modelValue",[],b=>b==null?[]:oye(a,dh(b)),b=>{const x=s_e(a,b);return t.multiple?x:x[0]}),d=Sf("useGroup");function f(b,x){const k=b,C=Symbol.for(`${e.description}:id`),T=QD(C,d==null?void 0:d.vnode).indexOf(x);T>-1?a.splice(T,0,k):a.push(k)}function m(b){if(r)return;u();const x=a.findIndex(k=>k.id===b);a.splice(x,1)}function u(){const b=a.find(x=>!x.disabled);b&&t.mandatory==="force"&&!i.value.length&&(i.value=[b.id])}gg(()=>{u()}),im(()=>{r=!0});function p(b,x){const k=a.find(C=>C.id===b);if(!(x&&(k!=null&&k.disabled)))if(t.multiple){const C=i.value.slice(),w=C.findIndex(R=>R===b),T=~w;if(x=x??!T,T&&t.mandatory&&C.length<=1||!T&&t.max!=null&&C.length+1>t.max)return;w<0&&x?C.push(b):w>=0&&!x&&C.splice(w,1),i.value=C}else{const C=i.value.includes(b);if(t.mandatory&&C)return;i.value=x??!C?[b]:[]}}function v(b){if(t.multiple,i.value.length){const x=i.value[0],k=a.findIndex(T=>T.id===x);let C=(k+b)%a.length,w=a[C];for(;w.disabled&&C!==k;)C=(C+b)%a.length,w=a[C];if(w.disabled)return;i.value=[a[C].id]}else{const x=a.find(k=>!k.disabled);x&&(i.value=[x.id])}}const y={register:f,unregister:m,selected:i,select:p,disabled:ns(t,"disabled"),prev:()=>v(a.length-1),next:()=>v(1),isSelected:b=>i.value.includes(b),selectedClass:sn(()=>t.selectedClass),items:sn(()=>a),getItemIndex:b=>o_e(a,b)};return pc(e,y),y}function o_e(t,e){const r=oye(t,[e]);return r.length?t.findIndex(a=>a.id===r[0]):-1}function oye(t,e){const r=[];return e.forEach(a=>{const i=t.find(f=>QC(a,f.value)),d=t[a];(i==null?void 0:i.value)!=null?r.push(i.id):d!=null&&r.push(d.id)}),r}function s_e(t,e){const r=[];return e.forEach(a=>{const i=t.findIndex(d=>d.id===a);if(~i){const d=t[i];r.push(d.value!=null?d.value:i)}}),r}const sye=Symbol.for("vuetify:v-btn-toggle"),a_e=Vr({...rye(),...Qie()},"VBtnToggle");qo()({name:"VBtnToggle",props:a_e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;const{isSelected:a,next:i,prev:d,select:f,selected:m}=zie(t,sye);return Cs(()=>{const[u]=Phe.filterProps(t);return lt(Phe,rs({class:["v-btn-toggle",t.class]},u,{style:t.style}),{default:()=>{var p;return[(p=r.default)==null?void 0:p.call(r,{isSelected:a,next:i,prev:d,select:f,selected:m})]}})}),{next:i,prev:d,select:f}}});const i_e={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar"},aye={component:t=>hg(lye,{...t,class:"mdi"})},_i=[String,Function,Object,Array],Lse=Symbol.for("vuetify:icons"),MU=Vr({icon:{type:_i},tag:{type:String,required:!0}},"icon"),Mhe=qo()({name:"VComponentIcon",props:MU(),setup(t,e){let{slots:r}=e;return()=>{const a=t.icon;return lt(t.tag,null,{default:()=>{var i;return[t.icon?lt(a,null,null):(i=r.default)==null?void 0:i.call(r)]}})}}}),iye=AM({name:"VSvgIcon",inheritAttrs:!1,props:MU(),setup(t,e){let{attrs:r}=e;return()=>lt(t.tag,rs(r,{style:null}),{default:()=>[lt("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(a=>Array.isArray(a)?lt("path",{d:a[0],"fill-opacity":a[1]},null):lt("path",{d:a},null)):lt("path",{d:t.icon},null)])]})}});AM({name:"VLigatureIcon",props:MU(),setup(t){return()=>lt(t.tag,null,{default:()=>[t.icon]})}});const lye=AM({name:"VClassIcon",props:MU(),setup(t){return()=>lt(t.tag,{class:t.icon},null)}}),l_e={svg:{component:iye},class:{component:lye}};function c_e(t){return Sp({defaultSet:"mdi",sets:{...l_e,mdi:aye},aliases:{...i_e,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z"}},t)}const u_e=t=>{const e=ai(Lse);if(!e)throw new Error("Missing Vuetify Icons provide!");return{iconData:sn(()=>{var u;const a=ug(t);if(!a)return{component:Mhe};let i=a;if(typeof i=="string"&&(i=i.trim(),i.startsWith("$")&&(i=(u=e.aliases)==null?void 0:u[i.slice(1)])),!i)throw new Error(`Could not find aliased icon "${a}"`);if(Array.isArray(i))return{component:iye,icon:i};if(typeof i!="string")return{component:Mhe,icon:i};const d=Object.keys(e.sets).find(p=>typeof i=="string"&&i.startsWith(`${p}:`)),f=d?i.slice(d.length+1):i;return{component:e.sets[d??e.defaultSet].component,icon:f}})}},f_e=["x-small","small","default","large","x-large"],W$=Vr({size:{type:[String,Number],default:"default"}},"size");function Y$(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CO();return Mie(()=>{let r,a;return kH(f_e,t.size)?r=`${e}--size-${t.size}`:t.size&&(a={width:cs(t.size),height:cs(t.size)}),{sizeClasses:r,sizeStyles:a}})}const d_e=Vr({color:String,start:Boolean,end:Boolean,icon:_i,...fa(),...W$(),...Qc({tag:"i"}),...yu()},"VIcon"),qa=qo()({name:"VIcon",props:d_e(),setup(t,e){let{attrs:r,slots:a}=e;const i=Vo(),{themeClasses:d}=wf(t),{iconData:f}=u_e(sn(()=>i.value||t.icon)),{sizeClasses:m}=Y$(t),{textColorClasses:u,textColorStyles:p}=Ep(ns(t,"color"));return Cs(()=>{var y,b;const v=(y=a.default)==null?void 0:y.call(a);return v&&(i.value=(b=R1e(v).filter(x=>x.type===R$&&x.children&&typeof x.children=="string")[0])==null?void 0:b.children),lt(f.value.component,{tag:t.tag,icon:f.value.icon,class:["v-icon","notranslate",d.value,m.value,u.value,{"v-icon--clickable":!!r.onClick,"v-icon--start":t.start,"v-icon--end":t.end},t.class],style:[m.value?void 0:{fontSize:cs(t.size),height:cs(t.size),width:cs(t.size)},p.value,t.style],role:r.onClick?"button":void 0,"aria-hidden":!r.onClick},{default:()=>[v]})}),{}}});function cye(t,e){const r=Vo(),a=fs(!1);if(kie){const i=new IntersectionObserver(d=>{t==null||t(d,i),a.value=!!d.find(f=>f.isIntersecting)},e);im(()=>{i.disconnect()}),Ho(r,(d,f)=>{f&&(i.unobserve(f),a.value=!1),d&&i.observe(d)},{flush:"post"})}return{intersectionRef:r,isIntersecting:a}}const h_e=Vr({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...fa(),...W$(),...Qc({tag:"div"}),...yu()},"VProgressCircular"),uye=qo()({name:"VProgressCircular",props:h_e(),setup(t,e){let{slots:r}=e;const a=20,i=2*Math.PI*a,d=Vo(),{themeClasses:f}=wf(t),{sizeClasses:m,sizeStyles:u}=Y$(t),{textColorClasses:p,textColorStyles:v}=Ep(ns(t,"color")),{textColorClasses:y,textColorStyles:b}=Ep(ns(t,"bgColor")),{intersectionRef:x,isIntersecting:k}=cye(),{resizeRef:C,contentRect:w}=PU(),T=sn(()=>Math.max(0,Math.min(100,parseFloat(t.modelValue)))),R=sn(()=>Number(t.width)),M=sn(()=>u.value?Number(t.size):w.value?w.value.width:Math.max(R.value,32)),I=sn(()=>a/(1-R.value/M.value)*2),V=sn(()=>R.value/M.value*I.value),N=sn(()=>cs((100-T.value)/100*i));return am(()=>{x.value=d.value,C.value=d.value}),Cs(()=>lt(t.tag,{ref:d,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":k.value,"v-progress-circular--disable-shrink":t.indeterminate==="disable-shrink"},f.value,m.value,p.value,t.class],style:[u.value,v.value,t.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:T.value},{default:()=>[lt("svg",{style:{transform:`rotate(calc(-90deg + ${Number(t.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${I.value} ${I.value}`},[lt("circle",{class:["v-progress-circular__underlay",y.value],style:b.value,fill:"transparent",cx:"50%",cy:"50%",r:a,"stroke-width":V.value,"stroke-dasharray":i,"stroke-dashoffset":0},null),lt("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:a,"stroke-width":V.value,"stroke-dasharray":i,"stroke-dashoffset":N.value},null)]),r.default&<("div",{class:"v-progress-circular__content"},[r.default({value:T.value})])]})),{}}});const Ehe={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Zie=Vr({location:String},"location");function Hie(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2?arguments[2]:void 0;const{isRtl:a}=Dp();return{locationStyles:sn(()=>{if(!t.location)return{};const{side:d,align:f}=$se(t.location.split(" ").length>1?t.location:`${t.location} center`,a.value);function m(p){return r?r(p):0}const u={};return d!=="center"&&(e?u[Ehe[d]]=`calc(100% - ${m(d)}px)`:u[d]=0),f!=="center"?e?u[Ehe[f]]=`calc(100% - ${m(f)}px)`:u[f]=0:(d==="center"?u.top=u.left="50%":u[{top:"left",bottom:"left",left:"top",right:"top"}[d]]="50%",u.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[d]),u})}}const m_e=Vr({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...fa(),...Zie({location:"top"}),...$p(),...Qc(),...yu()},"VProgressLinear"),g_e=qo()({name:"VProgressLinear",props:m_e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;const a=pi(t,"modelValue"),{isRtl:i,rtlClasses:d}=Dp(),{themeClasses:f}=wf(t),{locationStyles:m}=Hie(t),{textColorClasses:u,textColorStyles:p}=Ep(t,"color"),{backgroundColorClasses:v,backgroundColorStyles:y}=_p(sn(()=>t.bgColor||t.color)),{backgroundColorClasses:b,backgroundColorStyles:x}=_p(t,"color"),{roundedClasses:k}=Lp(t),{intersectionRef:C,isIntersecting:w}=cye(),T=sn(()=>parseInt(t.max,10)),R=sn(()=>parseInt(t.height,10)),M=sn(()=>parseFloat(t.bufferValue)/T.value*100),I=sn(()=>parseFloat(a.value)/T.value*100),V=sn(()=>i.value!==t.reverse),N=sn(()=>t.indeterminate?"fade-transition":"slide-x-transition"),F=sn(()=>t.bgOpacity==null?t.bgOpacity:parseFloat(t.bgOpacity));function z(U){if(!C.value)return;const{left:Q,right:B,width:E}=C.value.getBoundingClientRect(),W=V.value?E-U.clientX+(B-E):U.clientX-Q;a.value=Math.round(W/E*T.value)}return Cs(()=>lt(t.tag,{ref:C,class:["v-progress-linear",{"v-progress-linear--absolute":t.absolute,"v-progress-linear--active":t.active&&w.value,"v-progress-linear--reverse":V.value,"v-progress-linear--rounded":t.rounded,"v-progress-linear--rounded-bar":t.roundedBar,"v-progress-linear--striped":t.striped},k.value,f.value,d.value,t.class],style:[{bottom:t.location==="bottom"?0:void 0,top:t.location==="top"?0:void 0,height:t.active?cs(R.value):0,"--v-progress-linear-height":cs(R.value),...m.value},t.style],role:"progressbar","aria-hidden":t.active?"false":"true","aria-valuemin":"0","aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:I.value,onClick:t.clickable&&z},{default:()=>[t.stream&<("div",{key:"stream",class:["v-progress-linear__stream",u.value],style:{...p.value,[V.value?"left":"right"]:cs(-R.value),borderTop:`${cs(R.value/2)} dotted`,opacity:F.value,top:`calc(50% - ${cs(R.value/4)})`,width:cs(100-M.value,"%"),"--v-progress-linear-stream-to":cs(R.value*(V.value?1:-1))}},null),lt("div",{class:["v-progress-linear__background",v.value],style:[y.value,{opacity:F.value,width:cs(t.stream?M.value:100,"%")}]},null),lt(vO,{name:N.value},{default:()=>[t.indeterminate?lt("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(U=>lt("div",{key:U,class:["v-progress-linear__indeterminate",U,b.value],style:x.value},null))]):lt("div",{class:["v-progress-linear__determinate",b.value],style:[x.value,{width:cs(I.value,"%")}]},null)]}),r.default&<("div",{class:"v-progress-linear__content"},[r.default({value:I.value,buffer:M.value})])]})),{}}}),EU=Vr({loading:[Boolean,String]},"loader");function _U(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CO();return{loaderClasses:sn(()=>({[`${e}--loading`]:t.loading}))}}function Uie(t,e){var a;let{slots:r}=e;return lt("div",{class:`${t.name}__loader`},[((a=r.default)==null?void 0:a.call(r,{color:t.color,isActive:t.active}))||lt(g_e,{active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}const p_e=["static","relative","fixed","absolute","sticky"],fye=Vr({position:{type:String,validator:t=>p_e.includes(t)}},"position");function dye(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CO();return{positionClasses:sn(()=>t.position?`${e}--${t.position}`:void 0)}}function v_e(){var t,e;return(e=(t=Sf("useRouter"))==null?void 0:t.proxy)==null?void 0:e.$router}function RU(t,e){const r=sg("RouterLink"),a=sn(()=>!!(t.href||t.to)),i=sn(()=>(a==null?void 0:a.value)||ohe(e,"click")||ohe(t,"click"));if(typeof r=="string")return{isLink:a,isClickable:i,href:ns(t,"href")};const d=t.to?r.useLink(t):void 0;return{isLink:a,isClickable:i,route:d==null?void 0:d.route,navigate:d==null?void 0:d.navigate,isActive:d&&sn(()=>{var f,m;return t.exact?(f=d.isExactActive)==null?void 0:f.value:(m=d.isActive)==null?void 0:m.value}),href:sn(()=>t.to?d==null?void 0:d.route.value.href:t.href)}}const DU=Vr({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let qre=!1;function y_e(t,e){let r=!1,a,i;Fl&&(ec(()=>{window.addEventListener("popstate",d),a=t==null?void 0:t.beforeEach((f,m,u)=>{qre?r?e(u):u():setTimeout(()=>r?e(u):u()),qre=!0}),i=t==null?void 0:t.afterEach(()=>{qre=!1})}),om(()=>{window.removeEventListener("popstate",d),a==null||a(),i==null||i()}));function d(f){var m;(m=f.state)!=null&&m.replaced||(r=!0,setTimeout(()=>r=!1))}}function b_e(t,e){Ho(()=>{var r;return(r=t.isActive)==null?void 0:r.value},r=>{t.isLink.value&&r&&e&&ec(()=>{e(!0)})},{immediate:!0})}const Ise=Symbol("rippleStop"),O_e=80;function _he(t,e){t.style.transform=e,t.style.webkitTransform=e}function Nse(t){return t.constructor.name==="TouchEvent"}function hye(t){return t.constructor.name==="KeyboardEvent"}const x_e=function(t,e){var y;let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=0,i=0;if(!hye(t)){const b=e.getBoundingClientRect(),x=Nse(t)?t.touches[t.touches.length-1]:t;a=x.clientX-b.left,i=x.clientY-b.top}let d=0,f=.3;(y=e._ripple)!=null&&y.circle?(f=.15,d=e.clientWidth/2,d=r.center?d:d+Math.sqrt((a-d)**2+(i-d)**2)/4):d=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const m=`${(e.clientWidth-d*2)/2}px`,u=`${(e.clientHeight-d*2)/2}px`,p=r.center?m:`${a-d}px`,v=r.center?u:`${i-d}px`;return{radius:d,scale:f,x:p,y:v,centerX:m,centerY:u}},LH={show(t,e){var x;let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((x=e==null?void 0:e._ripple)!=null&&x.enabled))return;const a=document.createElement("span"),i=document.createElement("span");a.appendChild(i),a.className="v-ripple__container",r.class&&(a.className+=` ${r.class}`);const{radius:d,scale:f,x:m,y:u,centerX:p,centerY:v}=x_e(t,e,r),y=`${d*2}px`;i.className="v-ripple__animation",i.style.width=y,i.style.height=y,e.appendChild(a);const b=window.getComputedStyle(e);b&&b.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),_he(i,`translate(${m}, ${u}) scale3d(${f},${f},${f})`),i.dataset.activated=String(performance.now()),setTimeout(()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),_he(i,`translate(${p}, ${v}) scale3d(1,1,1)`)},0)},hide(t){var d;if(!((d=t==null?void 0:t._ripple)!=null&&d.enabled))return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const r=e[e.length-1];if(r.dataset.isHiding)return;r.dataset.isHiding="true";const a=performance.now()-Number(r.dataset.activated),i=Math.max(250-a,0);setTimeout(()=>{r.classList.remove("v-ripple__animation--in"),r.classList.add("v-ripple__animation--out"),setTimeout(()=>{var m;t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),((m=r.parentNode)==null?void 0:m.parentNode)===t&&t.removeChild(r.parentNode)},300)},i)}};function mye(t){return typeof t>"u"||!!t}function y$(t){const e={},r=t.currentTarget;if(!(!(r!=null&&r._ripple)||r._ripple.touched||t[Ise])){if(t[Ise]=!0,Nse(t))r._ripple.touched=!0,r._ripple.isTouch=!0;else if(r._ripple.isTouch)return;if(e.center=r._ripple.centered||hye(t),r._ripple.class&&(e.class=r._ripple.class),Nse(t)){if(r._ripple.showTimerCommit)return;r._ripple.showTimerCommit=()=>{LH.show(t,r,e)},r._ripple.showTimer=window.setTimeout(()=>{var a;(a=r==null?void 0:r._ripple)!=null&&a.showTimerCommit&&(r._ripple.showTimerCommit(),r._ripple.showTimerCommit=null)},O_e)}else LH.show(t,r,e)}}function Rhe(t){t[Ise]=!0}function lg(t){const e=t.currentTarget;if(e!=null&&e._ripple){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=window.setTimeout(()=>{lg(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),LH.hide(e)}}function gye(t){const e=t.currentTarget;e!=null&&e._ripple&&(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let b$=!1;function pye(t){!b$&&(t.keyCode===the.enter||t.keyCode===the.space)&&(b$=!0,y$(t))}function vye(t){b$=!1,lg(t)}function yye(t){b$&&(b$=!1,lg(t))}function bye(t,e,r){const{value:a,modifiers:i}=e,d=mye(a);if(d||LH.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=d,t._ripple.centered=i.center,t._ripple.circle=i.circle,Rse(a)&&a.class&&(t._ripple.class=a.class),d&&!r){if(i.stop){t.addEventListener("touchstart",Rhe,{passive:!0}),t.addEventListener("mousedown",Rhe);return}t.addEventListener("touchstart",y$,{passive:!0}),t.addEventListener("touchend",lg,{passive:!0}),t.addEventListener("touchmove",gye,{passive:!0}),t.addEventListener("touchcancel",lg),t.addEventListener("mousedown",y$),t.addEventListener("mouseup",lg),t.addEventListener("mouseleave",lg),t.addEventListener("keydown",pye),t.addEventListener("keyup",vye),t.addEventListener("blur",yye),t.addEventListener("dragstart",lg,{passive:!0})}else!d&&r&&Oye(t)}function Oye(t){t.removeEventListener("mousedown",y$),t.removeEventListener("touchstart",y$),t.removeEventListener("touchend",lg),t.removeEventListener("touchmove",gye),t.removeEventListener("touchcancel",lg),t.removeEventListener("mouseup",lg),t.removeEventListener("mouseleave",lg),t.removeEventListener("keydown",pye),t.removeEventListener("keyup",vye),t.removeEventListener("dragstart",lg),t.removeEventListener("blur",yye)}function S_e(t,e){bye(t,e,!1)}function w_e(t){delete t._ripple,Oye(t)}function T_e(t,e){if(e.value===e.oldValue)return;const r=mye(e.oldValue);bye(t,e,r)}const UC={mounted:S_e,unmounted:w_e,updated:T_e},C_e=Vr({active:{type:Boolean,default:void 0},symbol:{type:null,default:sye},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:_i,appendIcon:_i,block:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...ZC(),...fa(),...Yv(),...FC(),...kO(),...Fie(),...EU(),...Zie(),...fye(),...$p(),...DU(),...W$(),...Qc({tag:"button"}),...yu(),...IS({variant:"elevated"})},"VBtn"),Nc=qo()({name:"VBtn",directives:{Ripple:UC},props:C_e(),emits:{"group:selected":t=>!0},setup(t,e){let{attrs:r,slots:a}=e;const{themeClasses:i}=wf(t),{borderClasses:d}=HC(t),{colorClasses:f,colorStyles:m,variantClasses:u}=U$(t),{densityClasses:p}=iy(t),{dimensionStyles:v}=VC(t),{elevationClasses:y}=AO(t),{loaderClasses:b}=_U(t),{locationStyles:x}=Hie(t),{positionClasses:k}=dye(t),{roundedClasses:C}=Lp(t),{sizeClasses:w,sizeStyles:T}=Y$(t),R=Vie(t,t.symbol,!1),M=RU(t,r),I=sn(()=>{var U;return t.active!==void 0?t.active:M.isLink.value?(U=M.isActive)==null?void 0:U.value:R==null?void 0:R.isSelected.value}),V=sn(()=>(R==null?void 0:R.disabled.value)||t.disabled),N=sn(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),F=sn(()=>{if(t.value!==void 0)return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function z(U){var Q;V.value||M.isLink.value&&(U.metaKey||U.ctrlKey||U.shiftKey||U.button!==0||r.target==="_blank")||((Q=M.navigate)==null||Q.call(M,U),R==null||R.toggle())}return b_e(M,R==null?void 0:R.select),Cs(()=>{var Y,ie;const U=M.isLink.value?"a":t.tag,Q=!!(t.prependIcon||a.prepend),B=!!(t.appendIcon||a.append),E=!!(t.icon&&t.icon!==!0),W=(R==null?void 0:R.isSelected.value)&&(!M.isLink.value||((Y=M.isActive)==null?void 0:Y.value))||!R||((ie=M.isActive)==null?void 0:ie.value);return Qu(lt(U,{type:U==="a"?void 0:"button",class:["v-btn",R==null?void 0:R.selectedClass.value,{"v-btn--active":I.value,"v-btn--block":t.block,"v-btn--disabled":V.value,"v-btn--elevated":N.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--stacked":t.stacked},i.value,d.value,W?f.value:void 0,p.value,y.value,b.value,k.value,C.value,w.value,u.value,t.class],style:[W?m.value:void 0,v.value,x.value,T.value,t.style],disabled:V.value||void 0,href:M.href.value,onClick:z,value:F.value},{default:()=>{var L;return[H$(!0,"v-btn"),!t.icon&&Q&<("span",{key:"prepend",class:"v-btn__prepend"},[a.prepend?lt(Kc,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},a.prepend):lt(qa,{key:"prepend-icon",icon:t.prependIcon},null)]),lt("span",{class:"v-btn__content","data-no-activator":""},[!a.default&&E?lt(qa,{key:"content-icon",icon:t.icon},null):lt(Kc,{key:"content-defaults",disabled:!E,defaults:{VIcon:{icon:t.icon}}},{default:()=>{var me;return[((me=a.default)==null?void 0:me.call(a))??t.text]}})]),!t.icon&&B&<("span",{key:"append",class:"v-btn__append"},[a.append?lt(Kc,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},a.append):lt(qa,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&<("span",{key:"loader",class:"v-btn__loader"},[((L=a.loader)==null?void 0:L.call(a))??lt(uye,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[Hv("ripple"),!V.value&&t.ripple,null]])}),{}}});const k_e=Vr({text:String,clickable:Boolean,...fa(),...yu()},"VLabel"),$U=qo()({name:"VLabel",props:k_e(),setup(t,e){let{slots:r}=e;return Cs(()=>{var a;return lt("label",{class:["v-label",{"v-label--clickable":t.clickable},t.class],style:t.style},[t.text,(a=r.default)==null?void 0:a.call(r)])}),{}}});const xye=Symbol.for("vuetify:selection-control-group"),Sye=Vr({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:_i,trueIcon:_i,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:Boolean,modelValue:null,type:String,valueComparator:{type:Function,default:QC},...fa(),...Yv(),...yu()},"SelectionControlGroup"),A_e=Vr({...Sye({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");qo()({name:"VSelectionControlGroup",props:A_e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;const a=pi(t,"modelValue"),i=Wv(),d=sn(()=>t.id||`v-selection-control-group-${i}`),f=sn(()=>t.name||d.value),m=new Set;return pc(xye,{modelValue:a,forceUpdate:()=>{m.forEach(u=>u())},onForceUpdate:u=>{m.add(u),om(()=>{m.delete(u)})}}),ay({[t.defaultsTarget]:{color:ns(t,"color"),disabled:ns(t,"disabled"),density:ns(t,"density"),error:ns(t,"error"),inline:ns(t,"inline"),modelValue:a,multiple:sn(()=>!!t.multiple||t.multiple==null&&Array.isArray(a.value)),name:f,falseIcon:ns(t,"falseIcon"),trueIcon:ns(t,"trueIcon"),readonly:ns(t,"readonly"),ripple:ns(t,"ripple"),type:ns(t,"type"),valueComparator:ns(t,"valueComparator")}}),Cs(()=>{var u;return lt("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class],style:t.style,role:t.type==="radio"?"radiogroup":void 0},[(u=r.default)==null?void 0:u.call(r)])}),{}}});const wye=Vr({label:String,trueValue:null,falseValue:null,value:null,...fa(),...Sye()},"VSelectionControl");function P_e(t){const e=ai(xye,void 0),{densityClasses:r}=iy(t),a=pi(t,"modelValue"),i=sn(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),d=sn(()=>t.falseValue!==void 0?t.falseValue:!1),f=sn(()=>!!t.multiple||t.multiple==null&&Array.isArray(a.value)),m=sn({get(){const x=e?e.modelValue.value:a.value;return f.value?x.some(k=>t.valueComparator(k,i.value)):t.valueComparator(x,i.value)},set(x){if(t.readonly)return;const k=x?i.value:d.value;let C=k;f.value&&(C=x?[...dh(a.value),k]:dh(a.value).filter(w=>!t.valueComparator(w,i.value))),e?e.modelValue.value=C:a.value=C}}),{textColorClasses:u,textColorStyles:p}=Ep(sn(()=>m.value&&!t.error&&!t.disabled?t.color:void 0)),{backgroundColorClasses:v,backgroundColorStyles:y}=_p(sn(()=>m.value&&!t.error&&!t.disabled?t.color:void 0)),b=sn(()=>m.value?t.trueIcon:t.falseIcon);return{group:e,densityClasses:r,trueValue:i,falseValue:d,model:m,textColorClasses:u,textColorStyles:p,backgroundColorClasses:v,backgroundColorStyles:y,icon:b}}const Dhe=qo()({name:"VSelectionControl",directives:{Ripple:UC},inheritAttrs:!1,props:wye(),emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:r,slots:a}=e;const{group:i,densityClasses:d,icon:f,model:m,textColorClasses:u,textColorStyles:p,backgroundColorClasses:v,backgroundColorStyles:y,trueValue:b}=P_e(t),x=Wv(),k=sn(()=>t.id||`input-${x}`),C=fs(!1),w=fs(!1),T=Vo();i==null||i.onForceUpdate(()=>{T.value&&(T.value.checked=m.value)});function R(V){C.value=!0,dM(V.target,":focus-visible")!==!1&&(w.value=!0)}function M(){C.value=!1,w.value=!1}function I(V){t.readonly&&i&&ec(()=>i.forceUpdate()),m.value=V.target.checked}return Cs(()=>{var U,Q;const V=a.label?a.label({label:t.label,props:{for:k.value}}):t.label,[N,F]=Pie(r),z=lt("input",rs({ref:T,checked:m.value,disabled:!!(t.readonly||t.disabled),id:k.value,onBlur:M,onFocus:R,onInput:I,"aria-disabled":!!(t.readonly||t.disabled),type:t.type,value:b.value,name:t.name,"aria-checked":t.type==="checkbox"?m.value:void 0},F),null);return lt("div",rs({class:["v-selection-control",{"v-selection-control--dirty":m.value,"v-selection-control--disabled":t.disabled,"v-selection-control--error":t.error,"v-selection-control--focused":C.value,"v-selection-control--focus-visible":w.value,"v-selection-control--inline":t.inline},d.value,t.class]},N,{style:t.style}),[lt("div",{class:["v-selection-control__wrapper",u.value],style:p.value},[(U=a.default)==null?void 0:U.call(a,{backgroundColorClasses:v,backgroundColorStyles:y}),Qu(lt("div",{class:["v-selection-control__input"]},[((Q=a.input)==null?void 0:Q.call(a,{model:m,textColorClasses:u,textColorStyles:p,backgroundColorClasses:v,backgroundColorStyles:y,inputNode:z,icon:f.value,props:{onFocus:R,onBlur:M,id:k.value}}))??lt(Go,null,[f.value&<(qa,{key:"icon",icon:f.value},null),z])]),[[Hv("ripple"),t.ripple&&[!t.disabled&&!t.readonly,null,["center","circle"]]]])]),V&<($U,{for:k.value,clickable:!0,onClick:B=>B.stopPropagation()},{default:()=>[V]})])}),{isFocused:C,input:T}}}),M_e=Vr({indeterminate:Boolean,indeterminateIcon:{type:_i,default:"$checkboxIndeterminate"},...wye({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),MM=qo()({name:"VCheckboxBtn",props:M_e(),emits:{"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,e){let{slots:r}=e;const a=pi(t,"indeterminate"),i=pi(t,"modelValue");function d(u){a.value&&(a.value=!1)}const f=sn(()=>a.value?t.indeterminateIcon:t.falseIcon),m=sn(()=>a.value?t.indeterminateIcon:t.trueIcon);return Cs(()=>{const u=kM(Dhe.filterProps(t)[0],["modelValue"]);return lt(Dhe,rs(u,{modelValue:i.value,"onUpdate:modelValue":[p=>i.value=p,d],class:["v-checkbox-btn",t.class],style:t.style,type:"checkbox",falseIcon:f.value,trueIcon:m.value,"aria-checked":a.value?"mixed":void 0}),r)}),{}}});function Tye(t){const{t:e}=LS();function r(a){let{name:i}=a;const d={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[i],f=t[`onClick:${i}`],m=f&&d?e(`$vuetify.input.${d}`,t.label??""):void 0;return lt(qa,{icon:t[`${i}Icon`],"aria-label":m,onClick:f},null)}return{InputIcon:r}}const E_e=Vr({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...fa(),...zC({transition:{component:K1e,leaveAbsolute:!0,group:!0}})},"VMessages"),__e=qo()({name:"VMessages",props:E_e(),setup(t,e){let{slots:r}=e;const a=sn(()=>dh(t.messages)),{textColorClasses:i,textColorStyles:d}=Ep(sn(()=>t.color));return Cs(()=>lt(hS,{transition:t.transition,tag:"div",class:["v-messages",i.value,t.class],style:[d.value,t.style],role:"alert","aria-live":"polite"},{default:()=>[t.active&&a.value.map((f,m)=>lt("div",{class:"v-messages__message",key:`${m}-${a.value}`},[r.message?r.message({message:f}):f]))]})),{}}}),LU=Vr({focused:Boolean,"onUpdate:focused":J1()},"focus");function X$(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CO();const r=pi(t,"focused"),a=sn(()=>({[`${e}--focused`]:r.value}));function i(){r.value=!0}function d(){r.value=!1}return{focusClasses:a,isFocused:r,focus:i,blur:d}}const R_e=Symbol.for("vuetify:form");function IU(){return ai(R_e,null)}const D_e=Vr({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...LU()},"validation");function $_e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CO(),r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wv();const a=pi(t,"modelValue"),i=sn(()=>t.validationValue===void 0?a.value:t.validationValue),d=IU(),f=Vo([]),m=fs(!0),u=sn(()=>!!(dh(a.value===""?null:a.value).length||dh(i.value===""?null:i.value).length)),p=sn(()=>!!(t.disabled??(d==null?void 0:d.isDisabled.value))),v=sn(()=>!!(t.readonly??(d==null?void 0:d.isReadonly.value))),y=sn(()=>{var I;return(I=t.errorMessages)!=null&&I.length?dh(t.errorMessages).slice(0,Math.max(0,+t.maxErrors)):f.value}),b=sn(()=>{let I=(t.validateOn??(d==null?void 0:d.validateOn.value))||"input";I==="lazy"&&(I="input lazy");const V=new Set((I==null?void 0:I.split(" "))??[]);return{blur:V.has("blur")||V.has("input"),input:V.has("input"),submit:V.has("submit"),lazy:V.has("lazy")}}),x=sn(()=>{var I;return t.error||(I=t.errorMessages)!=null&&I.length?!1:t.rules.length?m.value?f.value.length||b.value.lazy?null:!0:!f.value.length:!0}),k=fs(!1),C=sn(()=>({[`${e}--error`]:x.value===!1,[`${e}--dirty`]:u.value,[`${e}--disabled`]:p.value,[`${e}--readonly`]:v.value})),w=sn(()=>t.name??ug(r));_ae(()=>{d==null||d.register({id:w.value,validate:M,reset:T,resetValidation:R})}),im(()=>{d==null||d.unregister(w.value)}),gg(async()=>{b.value.lazy||await M(!0),d==null||d.update(w.value,x.value,y.value)}),PS(()=>b.value.input,()=>{Ho(i,()=>{if(i.value!=null)M();else if(t.focused){const I=Ho(()=>t.focused,V=>{V||M(),I()})}})}),PS(()=>b.value.blur,()=>{Ho(()=>t.focused,I=>{I||M()})}),Ho(x,()=>{d==null||d.update(w.value,x.value,y.value)});function T(){a.value=null,ec(R)}function R(){m.value=!0,b.value.lazy?f.value=[]:M(!0)}async function M(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const V=[];k.value=!0;for(const N of t.rules){if(V.length>=+(t.maxErrors??1))break;const z=await(typeof N=="function"?N:()=>N)(i.value);if(z!==!0){if(z!==!1&&typeof z!="string"){console.warn(`${z} is not a valid value. Rule functions must return boolean true or a string.`);continue}V.push(z||"")}}return f.value=V,k.value=!1,m.value=I,f.value}return{errorMessages:y,isDirty:u,isDisabled:p,isReadonly:v,isPristine:m,isValid:x,isValidating:k,reset:T,resetValidation:R,validate:M,validationClasses:C}}const G$=Vr({id:String,appendIcon:_i,centerAffix:{type:Boolean,default:!0},prependIcon:_i,hideDetails:[Boolean,String],hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},"onClick:prepend":J1(),"onClick:append":J1(),...fa(),...Yv(),...D_e()},"VInput"),MS=qo()({name:"VInput",props:{...G$()},emits:{"update:modelValue":t=>!0},setup(t,e){let{attrs:r,slots:a,emit:i}=e;const{densityClasses:d}=iy(t),{rtlClasses:f}=Dp(),{InputIcon:m}=Tye(t),u=Wv(),p=sn(()=>t.id||`input-${u}`),v=sn(()=>`${p.value}-messages`),{errorMessages:y,isDirty:b,isDisabled:x,isReadonly:k,isPristine:C,isValid:w,isValidating:T,reset:R,resetValidation:M,validate:I,validationClasses:V}=$_e(t,"v-input",p),N=sn(()=>({id:p,messagesId:v,isDirty:b,isDisabled:x,isReadonly:k,isPristine:C,isValid:w,isValidating:T,reset:R,resetValidation:M,validate:I})),F=sn(()=>{var z;return(z=t.errorMessages)!=null&&z.length||!C.value&&y.value.length?y.value:t.hint&&(t.persistentHint||t.focused)?t.hint:t.messages});return Cs(()=>{var E,W,Y,ie;const z=!!(a.prepend||t.prependIcon),U=!!(a.append||t.appendIcon),Q=F.value.length>0,B=!t.hideDetails||t.hideDetails==="auto"&&(Q||!!a.details);return lt("div",{class:["v-input",`v-input--${t.direction}`,{"v-input--center-affix":t.centerAffix},d.value,f.value,V.value,t.class],style:t.style},[z&<("div",{key:"prepend",class:"v-input__prepend"},[(E=a.prepend)==null?void 0:E.call(a,N.value),t.prependIcon&<(m,{key:"prepend-icon",name:"prepend"},null)]),a.default&<("div",{class:"v-input__control"},[(W=a.default)==null?void 0:W.call(a,N.value)]),U&<("div",{key:"append",class:"v-input__append"},[t.appendIcon&<(m,{key:"append-icon",name:"append"},null),(Y=a.append)==null?void 0:Y.call(a,N.value)]),B&<("div",{class:"v-input__details"},[lt(__e,{id:v.value,active:Q,messages:F.value},{message:a.message}),(ie=a.details)==null?void 0:ie.call(a,N.value)])])}),{reset:R,resetValidation:M,validate:I}}});const L_e=Vr({start:Boolean,end:Boolean,icon:_i,image:String,...fa(),...Yv(),...$p(),...W$(),...Qc(),...yu(),...IS({variant:"flat"})},"VAvatar"),mM=qo()({name:"VAvatar",props:L_e(),setup(t,e){let{slots:r}=e;const{themeClasses:a}=wf(t),{colorClasses:i,colorStyles:d,variantClasses:f}=U$(t),{densityClasses:m}=iy(t),{roundedClasses:u}=Lp(t),{sizeClasses:p,sizeStyles:v}=Y$(t);return Cs(()=>lt(t.tag,{class:["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},a.value,i.value,m.value,u.value,p.value,f.value,t.class],style:[d.value,v.value,t.style]},{default:()=>{var y;return[t.image?lt(Z$,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?lt(qa,{key:"icon",icon:t.icon},null):(y=r.default)==null?void 0:y.call(r),H$(!1,"v-avatar")]}})),{}}});const Cye=Symbol.for("vuetify:v-chip-group"),I_e=Vr({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:QC},...fa(),...Qie({selectedClass:"v-chip--selected"}),...Qc(),...yu(),...IS({variant:"tonal"})},"VChipGroup");qo()({name:"VChipGroup",props:I_e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;const{themeClasses:a}=wf(t),{isSelected:i,select:d,next:f,prev:m,selected:u}=zie(t,Cye);return ay({VChip:{color:ns(t,"color"),disabled:ns(t,"disabled"),filter:ns(t,"filter"),variant:ns(t,"variant")}}),Cs(()=>lt(t.tag,{class:["v-chip-group",{"v-chip-group--column":t.column},a.value,t.class],style:t.style},{default:()=>{var p;return[(p=r.default)==null?void 0:p.call(r,{isSelected:i,select:d,next:f,prev:m,selected:u.value})]}})),{}}});const N_e=Vr({activeClass:String,appendAvatar:String,appendIcon:_i,closable:Boolean,closeIcon:{type:_i,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:_i,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:J1(),onClickOnce:J1(),...ZC(),...fa(),...Yv(),...kO(),...Fie(),...$p(),...DU(),...W$(),...Qc({tag:"span"}),...yu(),...IS({variant:"tonal"})},"VChip"),eM=qo()({name:"VChip",directives:{Ripple:UC},props:N_e(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,e){let{attrs:r,emit:a,slots:i}=e;const{t:d}=LS(),{borderClasses:f}=HC(t),{colorClasses:m,colorStyles:u,variantClasses:p}=U$(t),{densityClasses:v}=iy(t),{elevationClasses:y}=AO(t),{roundedClasses:b}=Lp(t),{sizeClasses:x}=Y$(t),{themeClasses:k}=wf(t),C=pi(t,"modelValue"),w=Vie(t,Cye,!1),T=RU(t,r),R=sn(()=>t.link!==!1&&T.isLink.value),M=sn(()=>!t.disabled&&t.link!==!1&&(!!w||t.link||T.isClickable.value)),I=sn(()=>({"aria-label":d(t.closeLabel),onClick(F){F.stopPropagation(),C.value=!1,a("click:close",F)}}));function V(F){var z;a("click",F),M.value&&((z=T.navigate)==null||z.call(T,F),w==null||w.toggle())}function N(F){(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),V(F))}return()=>{const F=T.isLink.value?"a":t.tag,z=!!(t.appendIcon||t.appendAvatar),U=!!(z||i.append),Q=!!(i.close||t.closable),B=!!(i.filter||t.filter)&&w,E=!!(t.prependIcon||t.prependAvatar),W=!!(E||i.prepend),Y=!w||w.isSelected.value;return C.value&&Qu(lt(F,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":M.value,"v-chip--filter":B,"v-chip--pill":t.pill},k.value,f.value,Y?m.value:void 0,v.value,y.value,b.value,x.value,p.value,w==null?void 0:w.selectedClass.value,t.class],style:[Y?u.value:void 0,t.style],disabled:t.disabled||void 0,draggable:t.draggable,href:T.href.value,tabindex:M.value?0:void 0,onClick:V,onKeydown:M.value&&!R.value&&N},{default:()=>{var ie;return[H$(M.value,"v-chip"),B&<(J1e,{key:"filter"},{default:()=>[Qu(lt("div",{class:"v-chip__filter"},[i.filter?lt(Kc,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},i.filter):lt(qa,{key:"filter-icon",icon:t.filterIcon},null)]),[[ES,w.isSelected.value]])]}),W&<("div",{key:"prepend",class:"v-chip__prepend"},[i.prepend?lt(Kc,{key:"prepend-defaults",disabled:!E,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},i.prepend):lt(Go,null,[t.prependIcon&<(qa,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&<(mM,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),lt("div",{class:"v-chip__content"},[((ie=i.default)==null?void 0:ie.call(i,{isSelected:w==null?void 0:w.isSelected.value,selectedClass:w==null?void 0:w.selectedClass.value,select:w==null?void 0:w.select,toggle:w==null?void 0:w.toggle,value:w==null?void 0:w.value.value,disabled:t.disabled}))??t.text]),U&<("div",{key:"append",class:"v-chip__append"},[i.append?lt(Kc,{key:"append-defaults",disabled:!z,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},i.append):lt(Go,null,[t.appendIcon&<(qa,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&<(mM,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),Q&<("div",rs({key:"close",class:"v-chip__close"},I.value),[i.close?lt(Kc,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},i.close):lt(qa,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}}),[[Hv("ripple"),M.value&&t.ripple,null]])}}});const Bse=Symbol.for("vuetify:list");function kye(){const t=ai(Bse,{hasPrepend:fs(!1),updateHasPrepend:()=>null}),e={hasPrepend:fs(!1),updateHasPrepend:r=>{r&&(e.hasPrepend.value=r)}};return pc(Bse,e),t}function Aye(){return ai(Bse,null)}const B_e={open:t=>{let{id:e,value:r,opened:a,parents:i}=t;if(r){const d=new Set;d.add(e);let f=i.get(e);for(;f!=null;)d.add(f),f=i.get(f);return d}else return a.delete(e),a},select:()=>null},Pye={open:t=>{let{id:e,value:r,opened:a,parents:i}=t;if(r){let d=i.get(e);for(a.add(e);d!=null&&d!==e;)a.add(d),d=i.get(d);return a}else a.delete(e);return a},select:()=>null},Q_e={open:Pye.open,select:t=>{let{id:e,value:r,opened:a,parents:i}=t;if(!r)return a;const d=[];let f=i.get(e);for(;f!=null;)d.push(f),f=i.get(f);return new Set(d)}},Wie=t=>{const e={select:r=>{let{id:a,value:i,selected:d}=r;if(a=va(a),t&&!i){const f=Array.from(d.entries()).reduce((m,u)=>{let[p,v]=u;return v==="on"?[...m,p]:m},[]);if(f.length===1&&f[0]===a)return d}return d.set(a,i?"on":"off"),d},in:(r,a,i)=>{let d=new Map;for(const f of r||[])d=e.select({id:f,value:!0,selected:new Map(d),children:a,parents:i});return d},out:r=>{const a=[];for(const[i,d]of r.entries())d==="on"&&a.push(i);return a}};return e},Mye=t=>{const e=Wie(t);return{select:a=>{let{selected:i,id:d,...f}=a;d=va(d);const m=i.has(d)?new Map([[d,i.get(d)]]):new Map;return e.select({...f,id:d,selected:m})},in:(a,i,d)=>{let f=new Map;return a!=null&&a.length&&(f=e.in(a.slice(0,1),i,d)),f},out:(a,i,d)=>e.out(a,i,d)}},F_e=t=>{const e=Wie(t);return{select:a=>{let{id:i,selected:d,children:f,...m}=a;return i=va(i),f.has(i)?d:e.select({id:i,selected:d,children:f,...m})},in:e.in,out:e.out}},V_e=t=>{const e=Mye(t);return{select:a=>{let{id:i,selected:d,children:f,...m}=a;return i=va(i),f.has(i)?d:e.select({id:i,selected:d,children:f,...m})},in:e.in,out:e.out}},z_e=t=>{const e={select:r=>{let{id:a,value:i,selected:d,children:f,parents:m}=r;a=va(a);const u=new Map(d),p=[a];for(;p.length;){const y=p.shift();d.set(y,i?"on":"off"),f.has(y)&&p.push(...f.get(y))}let v=m.get(a);for(;v;){const y=f.get(v),b=y.every(k=>d.get(k)==="on"),x=y.every(k=>!d.has(k)||d.get(k)==="off");d.set(v,b?"on":x?"off":"indeterminate"),v=m.get(v)}return t&&!i&&Array.from(d.entries()).reduce((b,x)=>{let[k,C]=x;return C==="on"?[...b,k]:b},[]).length===0?u:d},in:(r,a,i)=>{let d=new Map;for(const f of r||[])d=e.select({id:f,value:!0,selected:new Map(d),children:a,parents:i});return d},out:(r,a)=>{const i=[];for(const[d,f]of r.entries())f==="on"&&!a.has(d)&&i.push(d);return i}};return e},O$=Symbol.for("vuetify:nested"),Eye={id:fs(),root:{register:()=>null,unregister:()=>null,parents:Vo(new Map),children:Vo(new Map),open:()=>null,openOnSelect:()=>null,select:()=>null,opened:Vo(new Set),selected:Vo(new Map),selectedValues:Vo([])}},Z_e=Vr({selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,selected:Array,mandatory:Boolean},"nested"),H_e=t=>{let e=!1;const r=Vo(new Map),a=Vo(new Map),i=pi(t,"opened",t.opened,y=>new Set(y),y=>[...y.values()]),d=sn(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;switch(t.selectStrategy){case"single-leaf":return V_e(t.mandatory);case"leaf":return F_e(t.mandatory);case"independent":return Wie(t.mandatory);case"single-independent":return Mye(t.mandatory);case"classic":default:return z_e(t.mandatory)}}),f=sn(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return Q_e;case"single":return B_e;case"multiple":default:return Pye}}),m=pi(t,"selected",t.selected,y=>d.value.in(y,r.value,a.value),y=>d.value.out(y,r.value,a.value));im(()=>{e=!0});function u(y){const b=[];let x=y;for(;x!=null;)b.unshift(x),x=a.value.get(x);return b}const p=Sf("nested"),v={id:fs(),root:{opened:i,selected:m,selectedValues:sn(()=>{const y=[];for(const[b,x]of m.value.entries())x==="on"&&y.push(b);return y}),register:(y,b,x)=>{b&&y!==b&&a.value.set(y,b),x&&r.value.set(y,[]),b!=null&&r.value.set(b,[...r.value.get(b)||[],y])},unregister:y=>{if(e)return;r.value.delete(y);const b=a.value.get(y);if(b){const x=r.value.get(b)??[];r.value.set(b,x.filter(k=>k!==y))}a.value.delete(y),i.value.delete(y)},open:(y,b,x)=>{p.emit("click:open",{id:y,value:b,path:u(y),event:x});const k=f.value.open({id:y,value:b,opened:new Set(i.value),children:r.value,parents:a.value,event:x});k&&(i.value=k)},openOnSelect:(y,b,x)=>{const k=f.value.select({id:y,value:b,selected:new Map(m.value),opened:new Set(i.value),children:r.value,parents:a.value,event:x});k&&(i.value=k)},select:(y,b,x)=>{p.emit("click:select",{id:y,value:b,path:u(y),event:x});const k=d.value.select({id:y,value:b,selected:new Map(m.value),children:r.value,parents:a.value,event:x});k&&(m.value=k),v.root.openOnSelect(y,b,x)},children:r,parents:a}};return pc(O$,v),v.root},_ye=(t,e)=>{const r=ai(O$,Eye),a=Symbol(Wv()),i=sn(()=>t.value!==void 0?t.value:a),d={...r,id:i,open:(f,m)=>r.root.open(i.value,f,m),openOnSelect:(f,m)=>r.root.openOnSelect(i.value,f,m),isOpen:sn(()=>r.root.opened.value.has(i.value)),parent:sn(()=>r.root.parents.value.get(i.value)),select:(f,m)=>r.root.select(i.value,f,m),isSelected:sn(()=>r.root.selected.value.get(va(i.value))==="on"),isIndeterminate:sn(()=>r.root.selected.value.get(i.value)==="indeterminate"),isLeaf:sn(()=>!r.root.children.value.get(i.value)),isGroupActivator:r.isGroupActivator};return!r.isGroupActivator&&r.root.register(i.value,r.id.value,e),im(()=>{!r.isGroupActivator&&r.root.unregister(i.value)}),e&&pc(O$,d),d},U_e=()=>{const t=ai(O$,Eye);pc(O$,{...t,isGroupActivator:!0})},W_e=AM({name:"VListGroupActivator",setup(t,e){let{slots:r}=e;return U_e(),()=>{var a;return(a=r.default)==null?void 0:a.call(r)}}}),Y_e=Vr({activeColor:String,baseColor:String,color:String,collapseIcon:{type:_i,default:"$collapse"},expandIcon:{type:_i,default:"$expand"},prependIcon:_i,appendIcon:_i,fluid:Boolean,subgroup:Boolean,title:String,value:null,...fa(),...Qc()},"VListGroup"),$he=qo()({name:"VListGroup",props:Y_e(),setup(t,e){let{slots:r}=e;const{isOpen:a,open:i,id:d}=_ye(ns(t,"value"),!0),f=sn(()=>`v-list-group--id-${String(d.value)}`),m=Aye(),{isBooted:u}=Bie();function p(x){i(!a.value,x)}const v=sn(()=>({onClick:p,class:"v-list-group__header",id:f.value})),y=sn(()=>a.value?t.collapseIcon:t.expandIcon),b=sn(()=>({VListItem:{active:a.value,activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&y.value,appendIcon:t.appendIcon||!t.subgroup&&y.value,title:t.title,value:t.value}}));return Cs(()=>lt(t.tag,{class:["v-list-group",{"v-list-group--prepend":m==null?void 0:m.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":a.value},t.class],style:t.style},{default:()=>[r.activator&<(Kc,{defaults:b.value},{default:()=>[lt(W_e,null,{default:()=>[r.activator({props:v.value,isOpen:a.value})]})]}),lt(hS,{transition:{component:Lie},disabled:!u.value},{default:()=>{var x;return[Qu(lt("div",{class:"v-list-group__items",role:"group","aria-labelledby":f.value},[(x=r.default)==null?void 0:x.call(r)]),[[ES,a.value]])]}})]})),{}}});const X_e=PM("v-list-item-subtitle"),G_e=PM("v-list-item-title"),j_e=Vr({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:_i,baseColor:String,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:_i,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number,Boolean],title:[String,Number,Boolean],value:null,onClick:J1(),onClickOnce:J1(),...ZC(),...fa(),...Yv(),...FC(),...kO(),...$p(),...DU(),...Qc(),...yu(),...IS({variant:"text"})},"VListItem"),mg=qo()({name:"VListItem",directives:{Ripple:UC},props:j_e(),emits:{click:t=>!0},setup(t,e){let{attrs:r,slots:a,emit:i}=e;const d=RU(t,r),f=sn(()=>t.value===void 0?d.href.value:t.value),{select:m,isSelected:u,isIndeterminate:p,isGroupActivator:v,root:y,parent:b,openOnSelect:x}=_ye(f,!1),k=Aye(),C=sn(()=>{var ae;return t.active!==!1&&(t.active||((ae=d.isActive)==null?void 0:ae.value)||u.value)}),w=sn(()=>t.link!==!1&&d.isLink.value),T=sn(()=>!t.disabled&&t.link!==!1&&(t.link||d.isClickable.value||t.value!=null&&!!k)),R=sn(()=>t.rounded||t.nav),M=sn(()=>t.color??t.activeColor),I=sn(()=>({color:C.value?M.value??t.baseColor:t.baseColor,variant:t.variant}));Ho(()=>{var ae;return(ae=d.isActive)==null?void 0:ae.value},ae=>{ae&&b.value!=null&&y.open(b.value,!0),ae&&x(ae)},{immediate:!0});const{themeClasses:V}=wf(t),{borderClasses:N}=HC(t),{colorClasses:F,colorStyles:z,variantClasses:U}=U$(I),{densityClasses:Q}=iy(t),{dimensionStyles:B}=VC(t),{elevationClasses:E}=AO(t),{roundedClasses:W}=Lp(R),Y=sn(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),ie=sn(()=>({isActive:C.value,select:m,isSelected:u.value,isIndeterminate:p.value}));function L(ae){var q;i("click",ae),!(v||!T.value)&&((q=d.navigate)==null||q.call(d,ae),t.value!=null&&m(!u.value,ae))}function me(ae){(ae.key==="Enter"||ae.key===" ")&&(ae.preventDefault(),L(ae))}return Cs(()=>{const ae=w.value?"a":t.tag,q=a.title||t.title,fe=a.subtitle||t.subtitle,ee=!!(t.appendAvatar||t.appendIcon),be=!!(ee||a.append),Te=!!(t.prependAvatar||t.prependIcon),Be=!!(Te||a.prepend);return k==null||k.updateHasPrepend(Be),t.activeColor&&nEe("active-color",["color","base-color"]),Qu(lt(ae,{class:["v-list-item",{"v-list-item--active":C.value,"v-list-item--disabled":t.disabled,"v-list-item--link":T.value,"v-list-item--nav":t.nav,"v-list-item--prepend":!Be&&(k==null?void 0:k.hasPrepend.value),[`${t.activeClass}`]:t.activeClass&&C.value},V.value,N.value,F.value,Q.value,E.value,Y.value,W.value,U.value,t.class],style:[z.value,B.value,t.style],href:d.href.value,tabindex:T.value?k?-2:0:void 0,onClick:L,onKeydown:T.value&&!w.value&&me},{default:()=>{var ge;return[H$(T.value||C.value,"v-list-item"),Be&<("div",{key:"prepend",class:"v-list-item__prepend"},[a.prepend?lt(Kc,{key:"prepend-defaults",disabled:!Te,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var ne;return[(ne=a.prepend)==null?void 0:ne.call(a,ie.value)]}}):lt(Go,null,[t.prependAvatar&<(mM,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&<(qa,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),lt("div",{class:"v-list-item__spacer"},null)]),lt("div",{class:"v-list-item__content","data-no-activator":""},[q&<(G_e,{key:"title"},{default:()=>{var ne;return[((ne=a.title)==null?void 0:ne.call(a,{title:t.title}))??t.title]}}),fe&<(X_e,{key:"subtitle"},{default:()=>{var ne;return[((ne=a.subtitle)==null?void 0:ne.call(a,{subtitle:t.subtitle}))??t.subtitle]}}),(ge=a.default)==null?void 0:ge.call(a,ie.value)]),be&<("div",{key:"append",class:"v-list-item__append"},[a.append?lt(Kc,{key:"append-defaults",disabled:!ee,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var ne;return[(ne=a.append)==null?void 0:ne.call(a,ie.value)]}}):lt(Go,null,[t.appendIcon&<(qa,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&<(mM,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),lt("div",{class:"v-list-item__spacer"},null)])]}}),[[Hv("ripple"),T.value&&t.ripple]])}),{}}}),q_e=Vr({color:String,inset:Boolean,sticky:Boolean,title:String,...fa(),...Qc()},"VListSubheader"),K_e=qo()({name:"VListSubheader",props:q_e(),setup(t,e){let{slots:r}=e;const{textColorClasses:a,textColorStyles:i}=Ep(ns(t,"color"));return Cs(()=>{const d=!!(r.default||t.title);return lt(t.tag,{class:["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},a.value,t.class],style:[{textColorStyles:i},t.style]},{default:()=>{var f;return[d&<("div",{class:"v-list-subheader__text"},[((f=r.default)==null?void 0:f.call(r))??t.title])]}})}),{}}});const J_e=Vr({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...fa(),...yu()},"VDivider"),e8e=qo()({name:"VDivider",props:J_e(),setup(t,e){let{attrs:r}=e;const{themeClasses:a}=wf(t),{textColorClasses:i,textColorStyles:d}=Ep(ns(t,"color")),f=sn(()=>{const m={};return t.length&&(m[t.vertical?"maxHeight":"maxWidth"]=cs(t.length)),t.thickness&&(m[t.vertical?"borderRightWidth":"borderTopWidth"]=cs(t.thickness)),m});return Cs(()=>lt("hr",{class:[{"v-divider":!0,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},a.value,i.value,t.class],style:[f.value,d.value,t.style],"aria-orientation":!r.role||r.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${r.role||"separator"}`},null)),{}}}),t8e=Vr({items:Array,returnObject:Boolean},"VListChildren"),Rye=qo()({name:"VListChildren",props:t8e(),setup(t,e){let{slots:r}=e;return kye(),()=>{var a,i;return((a=r.default)==null?void 0:a.call(r))??((i=t.items)==null?void 0:i.map(d=>{var x,k;let{children:f,props:m,type:u,raw:p}=d;if(u==="divider")return((x=r.divider)==null?void 0:x.call(r,{props:m}))??lt(e8e,m,null);if(u==="subheader")return((k=r.subheader)==null?void 0:k.call(r,{props:m}))??lt(K_e,m,null);const v={subtitle:r.subtitle?C=>{var w;return(w=r.subtitle)==null?void 0:w.call(r,{...C,item:p})}:void 0,prepend:r.prepend?C=>{var w;return(w=r.prepend)==null?void 0:w.call(r,{...C,item:p})}:void 0,append:r.append?C=>{var w;return(w=r.append)==null?void 0:w.call(r,{...C,item:p})}:void 0,title:r.title?C=>{var w;return(w=r.title)==null?void 0:w.call(r,{...C,item:p})}:void 0},[y,b]=$he.filterProps(m);return f?lt($he,rs({value:m==null?void 0:m.value},y),{activator:C=>{let{props:w}=C;const T={...m,...w,value:t.returnObject?p:m.value};return r.header?r.header({props:T}):lt(mg,T,v)},default:()=>lt(Rye,{items:f},r)}):r.item?r.item({props:m}):lt(mg,rs(m,{value:t.returnObject?p:m.value}),v)}))}}}),Dye=Vr({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:QC}},"list-items");function AC(t,e){const r=nm(e,t.itemTitle,e),a=nm(e,t.itemValue,r),i=nm(e,t.itemChildren),d=t.itemProps===!0?typeof e=="object"&&e!=null&&!Array.isArray(e)?"children"in e?fM(e,["children"])[1]:e:void 0:nm(e,t.itemProps),f={title:r,value:a,...d};return{title:String(f.title??""),value:f.value,props:f,children:Array.isArray(i)?$ye(t,i):void 0,raw:e}}function $ye(t,e){const r=[];for(const a of e)r.push(AC(t,a));return r}function Yie(t){const e=sn(()=>$ye(t,t.items)),r=sn(()=>e.value.some(d=>d.value===null));function a(d){return r.value||(d=d.filter(f=>f!==null)),d.map(f=>t.returnObject&&typeof f=="string"?AC(t,f):e.value.find(m=>t.valueComparator(f,m.value))||AC(t,f))}function i(d){return t.returnObject?d.map(f=>{let{raw:m}=f;return m}):d.map(f=>{let{value:m}=f;return m})}return{items:e,transformIn:a,transformOut:i}}function n8e(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}function r8e(t,e){const r=nm(e,t.itemType,"item"),a=n8e(e)?e:nm(e,t.itemTitle),i=nm(e,t.itemValue,void 0),d=nm(e,t.itemChildren),f=t.itemProps===!0?fM(e,["children"])[1]:nm(e,t.itemProps),m={title:a,value:i,...f};return{type:r,title:m.title,value:m.value,props:m,children:r==="item"&&d?Lye(t,d):void 0,raw:e}}function Lye(t,e){const r=[];for(const a of e)r.push(r8e(t,a));return r}function o8e(t){return{items:sn(()=>Lye(t,t.items))}}const s8e=Vr({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,lines:{type:[Boolean,String],default:"one"},nav:Boolean,...Z_e({selectStrategy:"single-leaf",openStrategy:"list"}),...ZC(),...fa(),...Yv(),...FC(),...kO(),itemType:{type:String,default:"type"},...Dye(),...$p(),...Qc(),...yu(),...IS({variant:"text"})},"VList"),NS=qo()({name:"VList",props:s8e(),emits:{"update:selected":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:select":t=>!0},setup(t,e){let{slots:r}=e;const{items:a}=o8e(t),{themeClasses:i}=wf(t),{backgroundColorClasses:d,backgroundColorStyles:f}=_p(ns(t,"bgColor")),{borderClasses:m}=HC(t),{densityClasses:u}=iy(t),{dimensionStyles:p}=VC(t),{elevationClasses:v}=AO(t),{roundedClasses:y}=Lp(t),{open:b,select:x}=H_e(t),k=sn(()=>t.lines?`v-list--${t.lines}-line`:void 0),C=ns(t,"activeColor"),w=ns(t,"baseColor"),T=ns(t,"color");kye(),ay({VListGroup:{activeColor:C,baseColor:w,color:T},VListItem:{activeClass:ns(t,"activeClass"),activeColor:C,baseColor:w,color:T,density:ns(t,"density"),disabled:ns(t,"disabled"),lines:ns(t,"lines"),nav:ns(t,"nav"),variant:ns(t,"variant")}});const R=fs(!1),M=Vo();function I(U){R.value=!0}function V(U){R.value=!1}function N(U){var Q;!R.value&&!(U.relatedTarget&&((Q=M.value)!=null&&Q.contains(U.relatedTarget)))&&z()}function F(U){if(M.value){if(U.key==="ArrowDown")z("next");else if(U.key==="ArrowUp")z("prev");else if(U.key==="Home")z("first");else if(U.key==="End")z("last");else return;U.preventDefault()}}function z(U){if(M.value)return PH(M.value,U)}return Cs(()=>lt(t.tag,{ref:M,class:["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav},i.value,d.value,m.value,u.value,v.value,k.value,y.value,t.class],style:[f.value,p.value,t.style],tabindex:t.disabled||R.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:I,onFocusout:V,onFocus:N,onKeydown:F},{default:()=>[lt(Rye,{items:a.value,returnObject:t.returnObject},r)]})),{open:b,select:x,focus:z}}});function Kre(t,e){return{x:t.x+e.x,y:t.y+e.y}}function a8e(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Lhe(t,e){if(t.side==="top"||t.side==="bottom"){const{side:r,align:a}=t,i=a==="left"?0:a==="center"?e.width/2:a==="right"?e.width:a,d=r==="top"?0:r==="bottom"?e.height:r;return Kre({x:i,y:d},e)}else if(t.side==="left"||t.side==="right"){const{side:r,align:a}=t,i=r==="left"?0:r==="right"?e.width:r,d=a==="top"?0:a==="center"?e.height/2:a==="bottom"?e.height:a;return Kre({x:i,y:d},e)}return Kre({x:e.width/2,y:e.height/2},e)}const Iye={static:c8e,connected:f8e},i8e=Vr({locationStrategy:{type:[String,Function],default:"static",validator:t=>typeof t=="function"||t in Iye},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function l8e(t,e){const r=Vo({}),a=Vo();Fl&&(PS(()=>!!(e.isActive.value&&t.locationStrategy),d=>{var f,m;Ho(()=>t.locationStrategy,d),om(()=>{a.value=void 0}),typeof t.locationStrategy=="function"?a.value=(f=t.locationStrategy(e,t,r))==null?void 0:f.updateLocation:a.value=(m=Iye[t.locationStrategy](e,t,r))==null?void 0:m.updateLocation}),window.addEventListener("resize",i,{passive:!0}),om(()=>{window.removeEventListener("resize",i),a.value=void 0}));function i(d){var f;(f=a.value)==null||f.call(a,d)}return{contentStyles:r,updateLocation:a}}function c8e(){}function u8e(t,e){e?t.style.removeProperty("left"):t.style.removeProperty("right");const r=Eie(t);return e?r.x+=parseFloat(t.style.right||0):r.x-=parseFloat(t.style.left||0),r.y-=parseFloat(t.style.top||0),r}function f8e(t,e,r){TEe(t.activatorEl.value)&&Object.assign(r.value,{position:"fixed",top:0,[t.isRtl.value?"right":"left"]:0});const{preferredAnchor:i,preferredOrigin:d}=Mie(()=>{const k=$se(e.location,t.isRtl.value),C=e.origin==="overlap"?k:e.origin==="auto"?Xre(k):$se(e.origin,t.isRtl.value);return k.side===C.side&&k.align===Gre(C).align?{preferredAnchor:ahe(k),preferredOrigin:ahe(C)}:{preferredAnchor:k,preferredOrigin:C}}),[f,m,u,p]=["minWidth","minHeight","maxWidth","maxHeight"].map(k=>sn(()=>{const C=parseFloat(e[k]);return isNaN(C)?1/0:C})),v=sn(()=>{if(Array.isArray(e.offset))return e.offset;if(typeof e.offset=="string"){const k=e.offset.split(" ").map(parseFloat);return k.length<2&&k.push(0),k}return typeof e.offset=="number"?[e.offset,0]:[0,0]});let y=!1;const b=new ResizeObserver(()=>{y&&x()});Ho([t.activatorEl,t.contentEl],(k,C)=>{let[w,T]=k,[R,M]=C;R&&b.unobserve(R),w&&b.observe(w),M&&b.unobserve(M),T&&b.observe(T)},{immediate:!0}),om(()=>{b.disconnect()});function x(){if(y=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>y=!0)}),!t.activatorEl.value||!t.contentEl.value)return;const k=t.activatorEl.value.getBoundingClientRect(),C=u8e(t.contentEl.value,t.isRtl.value),w=_H(t.contentEl.value),T=12;w.length||(w.push(document.documentElement),t.contentEl.value.style.top&&t.contentEl.value.style.left||(C.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),C.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const R=w.reduce((B,E)=>{const W=E.getBoundingClientRect(),Y=new JP({x:E===document.documentElement?0:W.x,y:E===document.documentElement?0:W.y,width:E.clientWidth,height:E.clientHeight});return B?new JP({x:Math.max(B.left,Y.left),y:Math.max(B.top,Y.top),width:Math.min(B.right,Y.right)-Math.max(B.left,Y.left),height:Math.min(B.bottom,Y.bottom)-Math.max(B.top,Y.top)}):Y},void 0);R.x+=T,R.y+=T,R.width-=T*2,R.height-=T*2;let M={anchor:i.value,origin:d.value};function I(B){const E=new JP(C),W=Lhe(B.anchor,k),Y=Lhe(B.origin,E);let{x:ie,y:L}=a8e(W,Y);switch(B.anchor.side){case"top":L-=v.value[0];break;case"bottom":L+=v.value[0];break;case"left":ie-=v.value[0];break;case"right":ie+=v.value[0];break}switch(B.anchor.align){case"top":L-=v.value[1];break;case"bottom":L+=v.value[1];break;case"left":ie-=v.value[1];break;case"right":ie+=v.value[1];break}return E.x+=ie,E.y+=L,E.width=Math.min(E.width,u.value),E.height=Math.min(E.height,p.value),{overflows:lhe(E,R),x:ie,y:L}}let V=0,N=0;const F={x:0,y:0},z={x:!1,y:!1};let U=-1;for(;!(U++>10);){const{x:B,y:E,overflows:W}=I(M);V+=B,N+=E,C.x+=B,C.y+=E;{const Y=ihe(M.anchor),ie=W.x.before||W.x.after,L=W.y.before||W.y.after;let me=!1;if(["x","y"].forEach(ae=>{if(ae==="x"&&ie&&!z.x||ae==="y"&&L&&!z.y){const q={anchor:{...M.anchor},origin:{...M.origin}},fe=ae==="x"?Y==="y"?Gre:Xre:Y==="y"?Xre:Gre;q.anchor=fe(q.anchor),q.origin=fe(q.origin);const{overflows:ee}=I(q);(ee[ae].before<=W[ae].before&&ee[ae].after<=W[ae].after||ee[ae].before+ee[ae].after<(W[ae].before+W[ae].after)/2)&&(M=q,me=z[ae]=!0)}}),me)continue}W.x.before&&(V+=W.x.before,C.x+=W.x.before),W.x.after&&(V-=W.x.after,C.x-=W.x.after),W.y.before&&(N+=W.y.before,C.y+=W.y.before),W.y.after&&(N-=W.y.after,C.y-=W.y.after);{const Y=lhe(C,R);F.x=R.width-Y.x.before-Y.x.after,F.y=R.height-Y.y.before-Y.y.after,V+=Y.x.before,C.x+=Y.x.before,N+=Y.y.before,C.y+=Y.y.before}break}const Q=ihe(M.anchor);return Object.assign(r.value,{"--v-overlay-anchor-origin":`${M.anchor.side} ${M.anchor.align}`,transformOrigin:`${M.origin.side} ${M.origin.align}`,top:cs(Jre(N)),left:t.isRtl.value?void 0:cs(Jre(V)),right:t.isRtl.value?cs(Jre(-V)):void 0,minWidth:cs(Q==="y"?Math.min(f.value,k.width):f.value),maxWidth:cs(Ihe(Ap(F.x,f.value===1/0?0:f.value,u.value))),maxHeight:cs(Ihe(Ap(F.y,m.value===1/0?0:m.value,p.value)))}),{available:F,contentBox:C}}return Ho(()=>[i.value,d.value,e.offset,e.minWidth,e.minHeight,e.maxWidth,e.maxHeight],()=>x()),ec(()=>{const k=x();if(!k)return;const{available:C,contentBox:w}=k;w.height>C.y&&requestAnimationFrame(()=>{x(),requestAnimationFrame(()=>{x()})})}),{updateLocation:x}}function Jre(t){return Math.round(t*devicePixelRatio)/devicePixelRatio}function Ihe(t){return Math.ceil(t*devicePixelRatio)/devicePixelRatio}let Qse=!0;const IH=[];function d8e(t){!Qse||IH.length?(IH.push(t),Fse()):(Qse=!1,t(),Fse())}let Nhe=-1;function Fse(){cancelAnimationFrame(Nhe),Nhe=requestAnimationFrame(()=>{const t=IH.shift();t&&t(),IH.length?Fse():Qse=!0})}const UZ={none:null,close:g8e,block:p8e,reposition:v8e},h8e=Vr({scrollStrategy:{type:[String,Function],default:"block",validator:t=>typeof t=="function"||t in UZ}},"VOverlay-scroll-strategies");function m8e(t,e){if(!Fl)return;let r;am(async()=>{r==null||r.stop(),e.isActive.value&&t.scrollStrategy&&(r=vae(),await ec(),r.active&&r.run(()=>{var a;typeof t.scrollStrategy=="function"?t.scrollStrategy(e,t,r):(a=UZ[t.scrollStrategy])==null||a.call(UZ,e,t,r)}))}),om(()=>{r==null||r.stop()})}function g8e(t){function e(r){t.isActive.value=!1}Nye(t.activatorEl.value??t.contentEl.value,e)}function p8e(t,e){var f;const r=(f=t.root.value)==null?void 0:f.offsetParent,a=[...new Set([..._H(t.activatorEl.value,e.contained?r:void 0),..._H(t.contentEl.value,e.contained?r:void 0)])].filter(m=>!m.classList.contains("v-overlay-scroll-blocked")),i=window.innerWidth-document.documentElement.offsetWidth,d=(m=>Die(m)&&m)(r||document.documentElement);d&&t.root.value.classList.add("v-overlay--scroll-blocked"),a.forEach((m,u)=>{m.style.setProperty("--v-body-scroll-x",cs(-m.scrollLeft)),m.style.setProperty("--v-body-scroll-y",cs(-m.scrollTop)),m!==document.documentElement&&m.style.setProperty("--v-scrollbar-offset",cs(i)),m.classList.add("v-overlay-scroll-blocked")}),om(()=>{a.forEach((m,u)=>{const p=parseFloat(m.style.getPropertyValue("--v-body-scroll-x")),v=parseFloat(m.style.getPropertyValue("--v-body-scroll-y"));m.style.removeProperty("--v-body-scroll-x"),m.style.removeProperty("--v-body-scroll-y"),m.style.removeProperty("--v-scrollbar-offset"),m.classList.remove("v-overlay-scroll-blocked"),m.scrollLeft=-p,m.scrollTop=-v}),d&&t.root.value.classList.remove("v-overlay--scroll-blocked")})}function v8e(t,e,r){let a=!1,i=-1,d=-1;function f(m){d8e(()=>{var v,y;const u=performance.now();(y=(v=t.updateLocation).value)==null||y.call(v,m),a=(performance.now()-u)/(1e3/60)>2})}d=(typeof requestIdleCallback>"u"?m=>m():requestIdleCallback)(()=>{r.run(()=>{Nye(t.activatorEl.value??t.contentEl.value,m=>{a?(cancelAnimationFrame(i),i=requestAnimationFrame(()=>{i=requestAnimationFrame(()=>{f(m)})})):f(m)})})}),om(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(d),cancelAnimationFrame(i)})}function Nye(t,e){const r=[document,..._H(t)];r.forEach(a=>{a.addEventListener("scroll",e,{passive:!0})}),om(()=>{r.forEach(a=>{a.removeEventListener("scroll",e)})})}const Vse=Symbol.for("vuetify:v-menu"),y8e=Vr({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function b8e(t,e){const r={},a=i=>()=>{if(!Fl)return Promise.resolve(!0);const d=i==="openDelay";return r.closeDelay&&window.clearTimeout(r.closeDelay),delete r.closeDelay,r.openDelay&&window.clearTimeout(r.openDelay),delete r.openDelay,new Promise(f=>{const m=parseInt(t[i]??0,10);r[i]=window.setTimeout(()=>{e==null||e(d),f(d)},m)})};return{runCloseDelay:a("closeDelay"),runOpenDelay:a("openDelay")}}const O8e=Vr({activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...y8e()},"VOverlay-activator");function x8e(t,e){let{isActive:r,isTop:a}=e;const i=Vo();let d=!1,f=!1,m=!0;const u=sn(()=>t.openOnFocus||t.openOnFocus==null&&t.openOnHover),p=sn(()=>t.openOnClick||t.openOnClick==null&&!t.openOnHover&&!u.value),{runOpenDelay:v,runCloseDelay:y}=b8e(t,M=>{M===(t.openOnHover&&d||u.value&&f)&&!(t.openOnHover&&r.value&&!a.value)&&(r.value!==M&&(m=!0),r.value=M)}),b={onClick:M=>{M.stopPropagation(),i.value=M.currentTarget||M.target,r.value=!r.value},onMouseenter:M=>{var I;(I=M.sourceCapabilities)!=null&&I.firesTouchEvents||(d=!0,i.value=M.currentTarget||M.target,v())},onMouseleave:M=>{d=!1,y()},onFocus:M=>{dM(M.target,":focus-visible")!==!1&&(f=!0,M.stopPropagation(),i.value=M.currentTarget||M.target,v())},onBlur:M=>{f=!1,M.stopPropagation(),y()}},x=sn(()=>{const M={};return p.value&&(M.onClick=b.onClick),t.openOnHover&&(M.onMouseenter=b.onMouseenter,M.onMouseleave=b.onMouseleave),u.value&&(M.onFocus=b.onFocus,M.onBlur=b.onBlur),M}),k=sn(()=>{const M={};if(t.openOnHover&&(M.onMouseenter=()=>{d=!0,v()},M.onMouseleave=()=>{d=!1,y()}),u.value&&(M.onFocusin=()=>{f=!0,v()},M.onFocusout=()=>{f=!1,y()}),t.closeOnContentClick){const I=ai(Vse,null);M.onClick=()=>{r.value=!1,I==null||I.closeParents()}}return M}),C=sn(()=>{const M={};return t.openOnHover&&(M.onMouseenter=()=>{m&&(d=!0,m=!1,v())},M.onMouseleave=()=>{d=!1,y()}),M});Ho(a,M=>{M&&(t.openOnHover&&!d&&(!u.value||!f)||u.value&&!f&&(!t.openOnHover||!d))&&(r.value=!1)});const w=Vo();am(()=>{w.value&&ec(()=>{i.value=Dse(w.value)})});const T=Sf("useActivator");let R;return Ho(()=>!!t.activator,M=>{M&&Fl?(R=vae(),R.run(()=>{S8e(t,T,{activatorEl:i,activatorEvents:x})})):R&&R.stop()},{flush:"post",immediate:!0}),om(()=>{R==null||R.stop()}),{activatorEl:i,activatorRef:w,activatorEvents:x,contentEvents:k,scrimEvents:C}}function S8e(t,e,r){let{activatorEl:a,activatorEvents:i}=r;Ho(()=>t.activator,(u,p)=>{if(p&&u!==p){const v=m(p);v&&f(v)}u&&ec(()=>d())},{immediate:!0}),Ho(()=>t.activatorProps,()=>{d()}),om(()=>{f()});function d(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m(),p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;u&&YMe(u,rs(i.value,p))}function f(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m(),p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;u&&XMe(u,rs(i.value,p))}function m(){var v,y;let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activator,p;if(u)if(u==="parent"){let b=(y=(v=e==null?void 0:e.proxy)==null?void 0:v.$el)==null?void 0:y.parentNode;for(;b!=null&&b.hasAttribute("data-no-activator");)b=b.parentNode;p=b}else typeof u=="string"?p=document.querySelector(u):"$el"in u?p=u.$el:p=u;return a.value=(p==null?void 0:p.nodeType)===Node.ELEMENT_NODE?p:null,a.value}}const NU=["sm","md","lg","xl","xxl"],zse=Symbol.for("vuetify:display"),Bhe={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},w8e=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bhe;return Sp(Bhe,t)};function Qhe(t){return Fl&&!t?window.innerWidth:typeof t=="object"&&t.clientWidth||0}function Fhe(t){return Fl&&!t?window.innerHeight:typeof t=="object"&&t.clientHeight||0}function Vhe(t){const e=Fl&&!t?window.navigator.userAgent:"ssr";function r(k){return!!e.match(k)}const a=r(/android/i),i=r(/iphone|ipad|ipod/i),d=r(/cordova/i),f=r(/electron/i),m=r(/chrome/i),u=r(/edge/i),p=r(/firefox/i),v=r(/opera/i),y=r(/win/i),b=r(/mac/i),x=r(/linux/i);return{android:a,ios:i,cordova:d,electron:f,chrome:m,edge:u,firefox:p,opera:v,win:y,mac:b,linux:x,touch:zMe,ssr:e==="ssr"}}function T8e(t,e){const{thresholds:r,mobileBreakpoint:a}=w8e(t),i=fs(Fhe(e)),d=fs(Vhe(e)),f=tm({}),m=fs(Qhe(e));function u(){i.value=Fhe(),m.value=Qhe()}function p(){u(),d.value=Vhe()}return am(()=>{const v=m.value=r.xxl,w=v?"xs":y?"sm":b?"md":x?"lg":k?"xl":"xxl",T=typeof a=="number"?a:r[a],R=m.value{e.value=!0}),e}else return fs(!0)}const Xie=Vr({eager:Boolean},"lazy");function Qye(t,e){const r=fs(!1),a=sn(()=>r.value||t.eager||e.value);Ho(e,()=>r.value=!0);function i(){t.eager||(r.value=!1)}return{isBooted:r,hasContent:a,onAfterLeave:i}}function Gie(){const e=Sf("useScopeId").vnode.scopeId;return{scopeId:e?{[e]:""}:void 0}}const zhe=Symbol.for("vuetify:stack"),vD=tm([]);function k8e(t,e,r){const a=Sf("useStack"),i=!r,d=ai(zhe,void 0),f=tm({activeChildren:new Set});pc(zhe,f);const m=fs(+e.value);PS(t,()=>{var y;const v=(y=vD.at(-1))==null?void 0:y[1];m.value=v?v+10:+e.value,i&&vD.push([a.uid,m.value]),d==null||d.activeChildren.add(a.uid),om(()=>{if(i){const b=va(vD).findIndex(x=>x[0]===a.uid);vD.splice(b,1)}d==null||d.activeChildren.delete(a.uid)})});const u=fs(!0);i&&am(()=>{var y;const v=((y=vD.at(-1))==null?void 0:y[0])===a.uid;setTimeout(()=>u.value=v)});const p=sn(()=>!f.activeChildren.size);return{globalTop:E$(u),localTop:p,stackStyles:sn(()=>({zIndex:m.value}))}}function A8e(t){return{teleportTarget:sn(()=>{const r=t.value;if(r===!0||!Fl)return;const a=r===!1?document.body:typeof r=="string"?document.querySelector(r):r;if(a==null)return;let i=a.querySelector(":scope > .v-overlay-container");return i||(i=document.createElement("div"),i.className="v-overlay-container",a.appendChild(i)),i})}}function P8e(){return!0}function Fye(t,e,r){if(!t||Vye(t,r)===!1)return!1;const a=Z1e(e);if(typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&a.host===t.target)return!1;const i=(typeof r.value=="object"&&r.value.include||(()=>[]))();return i.push(e),!i.some(d=>d==null?void 0:d.contains(t.target))}function Vye(t,e){return(typeof e.value=="object"&&e.value.closeConditional||P8e)(t)}function M8e(t,e,r){const a=typeof r.value=="function"?r.value:r.value.handler;e._clickOutside.lastMousedownWasOutside&&Fye(t,e,r)&&setTimeout(()=>{Vye(t,r)&&a&&a(t)},0)}function Zhe(t,e){const r=Z1e(t);e(document),typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&e(r)}const E8e={mounted(t,e){const r=i=>M8e(i,t,e),a=i=>{t._clickOutside.lastMousedownWasOutside=Fye(i,t,e)};Zhe(t,i=>{i.addEventListener("click",r,!0),i.addEventListener("mousedown",a,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[e.instance.$.uid]={onClick:r,onMousedown:a}},unmounted(t,e){t._clickOutside&&(Zhe(t,r=>{var d;if(!r||!((d=t._clickOutside)!=null&&d[e.instance.$.uid]))return;const{onClick:a,onMousedown:i}=t._clickOutside[e.instance.$.uid];r.removeEventListener("click",a,!0),r.removeEventListener("mousedown",i,!0)}),delete t._clickOutside[e.instance.$.uid])}};function _8e(t){const{modelValue:e,color:r,...a}=t;return lt(vO,{name:"fade-transition",appear:!0},{default:()=>[t.modelValue&<("div",rs({class:["v-overlay__scrim",t.color.backgroundColorClasses.value],style:t.color.backgroundColorStyles.value},a),null)]})}const jie=Vr({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...O8e(),...fa(),...FC(),...Xie(),...i8e(),...h8e(),...yu(),...zC()},"VOverlay"),NH=qo()({name:"VOverlay",directives:{ClickOutside:E8e},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...jie()},emits:{"click:outside":t=>!0,"update:modelValue":t=>!0,afterLeave:()=>!0},setup(t,e){let{slots:r,attrs:a,emit:i}=e;const d=pi(t,"modelValue"),f=sn({get:()=>d.value,set:q=>{q&&t.disabled||(d.value=q)}}),{teleportTarget:m}=A8e(sn(()=>t.attach||t.contained)),{themeClasses:u}=wf(t),{rtlClasses:p,isRtl:v}=Dp(),{hasContent:y,onAfterLeave:b}=Qye(t,f),x=_p(sn(()=>typeof t.scrim=="string"?t.scrim:null)),{globalTop:k,localTop:C,stackStyles:w}=k8e(f,ns(t,"zIndex"),t._disableGlobalStack),{activatorEl:T,activatorRef:R,activatorEvents:M,contentEvents:I,scrimEvents:V}=x8e(t,{isActive:f,isTop:C}),{dimensionStyles:N}=VC(t),F=C8e(),{scopeId:z}=Gie();Ho(()=>t.disabled,q=>{q&&(f.value=!1)});const U=Vo(),Q=Vo(),{contentStyles:B,updateLocation:E}=l8e(t,{isRtl:v,contentEl:Q,activatorEl:T,isActive:f});m8e(t,{root:U,contentEl:Q,activatorEl:T,isActive:f,updateLocation:E});function W(q){i("click:outside",q),t.persistent?ae():f.value=!1}function Y(){return f.value&&k.value}Fl&&Ho(f,q=>{q?window.addEventListener("keydown",ie):window.removeEventListener("keydown",ie)},{immediate:!0});function ie(q){var fe,ee;q.key==="Escape"&&k.value&&(t.persistent?ae():(f.value=!1,(fe=Q.value)!=null&&fe.contains(document.activeElement)&&((ee=T.value)==null||ee.focus())))}const L=v_e();PS(()=>t.closeOnBack,()=>{y_e(L,q=>{k.value&&f.value?(q(!1),t.persistent?ae():f.value=!1):q()})});const me=Vo();Ho(()=>f.value&&(t.absolute||t.contained)&&m.value==null,q=>{if(q){const fe=U1e(U.value);fe&&fe!==document.scrollingElement&&(me.value=fe.scrollTop)}});function ae(){t.noClickAnimation||Q.value&&VP(Q.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:EH})}return Cs(()=>{var q;return lt(Go,null,[(q=r.activator)==null?void 0:q.call(r,{isActive:f.value,props:rs({ref:R},M.value,t.activatorProps)}),F.value&&y.value&<(xwe,{disabled:!m.value,to:m.value},{default:()=>[lt("div",rs({class:["v-overlay",{"v-overlay--absolute":t.absolute||t.contained,"v-overlay--active":f.value,"v-overlay--contained":t.contained},u.value,p.value,t.class],style:[w.value,{top:cs(me.value)},t.style],ref:U},z,a),[lt(_8e,rs({color:x,modelValue:f.value&&!!t.scrim},V.value),null),lt(hS,{appear:!0,persisted:!0,transition:t.transition,target:T.value,onAfterLeave:()=>{b(),i("afterLeave")}},{default:()=>{var fe;return[Qu(lt("div",rs({ref:Q,class:["v-overlay__content",t.contentClass],style:[N.value,B.value]},I.value,t.contentProps),[(fe=r.default)==null?void 0:fe.call(r,{isActive:f})]),[[ES,f.value],[Hv("click-outside"),{handler:W,closeConditional:Y,include:()=>[T.value]}]])]}})])]})])}),{activatorEl:T,animateClick:ae,contentEl:Q,globalTop:k,localTop:C,updateLocation:E}}}),eoe=Symbol("Forwarded refs");function toe(t,e){let r=t;for(;r;){const a=Reflect.getOwnPropertyDescriptor(r,e);if(a)return a;r=Object.getPrototypeOf(r)}}function WC(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),a=1;a!0},setup(t,e){let{slots:r}=e;const a=pi(t,"modelValue"),{scopeId:i}=Gie(),d=Wv(),f=sn(()=>t.id||`v-menu-${d}`),m=Vo(),u=ai(Vse,null),p=fs(0);pc(Vse,{register(){++p.value},unregister(){--p.value},closeParents(){setTimeout(()=>{p.value||(a.value=!1,u==null||u.closeParents())},40)}});async function v(C){var R,M,I;const w=C.relatedTarget,T=C.target;await ec(),a.value&&w!==T&&((R=m.value)!=null&&R.contentEl)&&((M=m.value)!=null&&M.globalTop)&&![document,m.value.contentEl].includes(T)&&!m.value.contentEl.contains(T)&&((I=AH(m.value.contentEl)[0])==null||I.focus())}Ho(a,C=>{C?(u==null||u.register(),document.addEventListener("focusin",v,{once:!0})):(u==null||u.unregister(),document.removeEventListener("focusin",v))});function y(){u==null||u.closeParents()}function b(C){var w,T,R;t.disabled||C.key==="Tab"&&(L1e(AH((w=m.value)==null?void 0:w.contentEl,!1),C.shiftKey?"prev":"next",I=>I.tabIndex>=0)||(a.value=!1,(R=(T=m.value)==null?void 0:T.activatorEl)==null||R.focus()))}function x(C){var T;if(t.disabled)return;const w=(T=m.value)==null?void 0:T.contentEl;w&&a.value?C.key==="ArrowDown"?(C.preventDefault(),PH(w,"next")):C.key==="ArrowUp"&&(C.preventDefault(),PH(w,"prev")):["ArrowDown","ArrowUp"].includes(C.key)&&(a.value=!0,C.preventDefault(),setTimeout(()=>setTimeout(()=>x(C))))}const k=sn(()=>rs({"aria-haspopup":"menu","aria-expanded":String(a.value),"aria-owns":f.value,onKeydown:x},t.activatorProps));return Cs(()=>{const[C]=NH.filterProps(t);return lt(NH,rs({ref:m,class:["v-menu",t.class],style:t.style},C,{modelValue:a.value,"onUpdate:modelValue":w=>a.value=w,absolute:!0,activatorProps:k.value,"onClick:outside":y,onKeydown:b},i),{activator:r.activator,default:function(){for(var w=arguments.length,T=new Array(w),R=0;R{var M;return[(M=r.default)==null?void 0:M.call(r,...T)]}})}})}),WC({id:f,ΨopenChildren:p},m)}});const D8e=Vr({active:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...fa(),...zC({transition:{component:K1e}})},"VCounter"),zye=qo()({name:"VCounter",functional:!0,props:D8e(),setup(t,e){let{slots:r}=e;const a=sn(()=>t.max?`${t.value} / ${t.max}`:String(t.value));return Cs(()=>lt(hS,{transition:t.transition},{default:()=>[Qu(lt("div",{class:["v-counter",t.class],style:t.style},[r.default?r.default({counter:a.value,max:t.max,value:t.value}):a.value]),[[ES,t.active]])]})),{}}});const $8e=Vr({floating:Boolean,...fa()},"VFieldLabel"),yZ=qo()({name:"VFieldLabel",props:$8e(),setup(t,e){let{slots:r}=e;return Cs(()=>lt($U,{class:["v-field-label",{"v-field-label--floating":t.floating},t.class],style:t.style,"aria-hidden":t.floating||void 0},r)),{}}}),L8e=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],qie=Vr({appendInnerIcon:_i,bgColor:String,clearable:Boolean,clearIcon:{type:_i,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:_i,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:t=>L8e.includes(t)},"onClick:clear":J1(),"onClick:appendInner":J1(),"onClick:prependInner":J1(),...fa(),...EU(),...$p(),...yu()},"VField"),Kie=qo()({name:"VField",inheritAttrs:!1,props:{id:String,...LU(),...qie()},emits:{"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:r,emit:a,slots:i}=e;const{themeClasses:d}=wf(t),{loaderClasses:f}=_U(t),{focusClasses:m,isFocused:u,focus:p,blur:v}=X$(t),{InputIcon:y}=Tye(t),{roundedClasses:b}=Lp(t),{rtlClasses:x}=Dp(),k=sn(()=>t.dirty||t.active),C=sn(()=>!t.singleLine&&!!(t.label||i.label)),w=Wv(),T=sn(()=>t.id||`input-${w}`),R=sn(()=>`${T.value}-messages`),M=Vo(),I=Vo(),V=Vo(),N=sn(()=>["plain","underlined"].includes(t.variant)),{backgroundColorClasses:F,backgroundColorStyles:z}=_p(ns(t,"bgColor")),{textColorClasses:U,textColorStyles:Q}=Ep(sn(()=>t.error||t.disabled?void 0:k.value&&u.value?t.color:t.baseColor));Ho(k,W=>{if(C.value){const Y=M.value.$el,ie=I.value.$el;requestAnimationFrame(()=>{const L=Eie(Y),me=ie.getBoundingClientRect(),ae=me.x-L.x,q=me.y-L.y-(L.height/2-me.height/2),fe=me.width/.75,ee=Math.abs(fe-L.width)>1?{maxWidth:cs(fe)}:void 0,be=getComputedStyle(Y),Te=getComputedStyle(ie),Be=parseFloat(be.transitionDuration)*1e3||150,ge=parseFloat(Te.getPropertyValue("--v-field-label-scale")),ne=Te.getPropertyValue("color");Y.style.visibility="visible",ie.style.visibility="hidden",VP(Y,{transform:`translate(${ae}px, ${q}px) scale(${ge})`,color:ne,...ee},{duration:Be,easing:EH,direction:W?"normal":"reverse"}).finished.then(()=>{Y.style.removeProperty("visibility"),ie.style.removeProperty("visibility")})})}},{flush:"post"});const B=sn(()=>({isActive:k,isFocused:u,controlRef:V,blur:v,focus:p}));function E(W){W.target!==document.activeElement&&W.preventDefault()}return Cs(()=>{var ae,q,fe;const W=t.variant==="outlined",Y=i["prepend-inner"]||t.prependInnerIcon,ie=!!(t.clearable||i.clear),L=!!(i["append-inner"]||t.appendInnerIcon||ie),me=i.label?i.label({...B.value,label:t.label,props:{for:T.value}}):t.label;return lt("div",rs({class:["v-field",{"v-field--active":k.value,"v-field--appended":L,"v-field--center-affix":t.centerAffix??!N.value,"v-field--disabled":t.disabled,"v-field--dirty":t.dirty,"v-field--error":t.error,"v-field--flat":t.flat,"v-field--has-background":!!t.bgColor,"v-field--persistent-clear":t.persistentClear,"v-field--prepended":Y,"v-field--reverse":t.reverse,"v-field--single-line":t.singleLine,"v-field--no-label":!me,[`v-field--variant-${t.variant}`]:!0},d.value,F.value,m.value,f.value,b.value,x.value,t.class],style:[z.value,t.style],onClick:E},r),[lt("div",{class:"v-field__overlay"},null),lt(Uie,{name:"v-field",active:!!t.loading,color:t.error?"error":typeof t.loading=="string"?t.loading:t.color},{default:i.loader}),Y&<("div",{key:"prepend",class:"v-field__prepend-inner"},[t.prependInnerIcon&<(y,{key:"prepend-icon",name:"prependInner"},null),(ae=i["prepend-inner"])==null?void 0:ae.call(i,B.value)]),lt("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(t.variant)&&C.value&<(yZ,{key:"floating-label",ref:I,class:[U.value],floating:!0,for:T.value,style:Q.value},{default:()=>[me]}),lt(yZ,{ref:M,for:T.value},{default:()=>[me]}),(q=i.default)==null?void 0:q.call(i,{...B.value,props:{id:T.value,class:"v-field__input","aria-describedby":R.value},focus:p,blur:v})]),ie&<(J1e,{key:"clear"},{default:()=>[Qu(lt("div",{class:"v-field__clearable",onMousedown:ee=>{ee.preventDefault(),ee.stopPropagation()}},[i.clear?i.clear():lt(y,{name:"clear"},null)]),[[ES,t.dirty]])]}),L&<("div",{key:"append",class:"v-field__append-inner"},[(fe=i["append-inner"])==null?void 0:fe.call(i,B.value),t.appendInnerIcon&<(y,{key:"append-icon",name:"appendInner"},null)]),lt("div",{class:["v-field__outline",U.value],style:Q.value},[W&<(Go,null,[lt("div",{class:"v-field__outline__start"},null),C.value&<("div",{class:"v-field__outline__notch"},[lt(yZ,{ref:I,floating:!0,for:T.value},{default:()=>[me]})]),lt("div",{class:"v-field__outline__end"},null)]),N.value&&C.value&<(yZ,{ref:I,floating:!0,for:T.value},{default:()=>[me]})])])}),{controlRef:V}}});function Zye(t){const e=Object.keys(Kie.props).filter(r=>!Aie(r)&&r!=="class"&&r!=="style");return fM(t,e)}const I8e=["color","file","time","date","datetime-local","week","month"],BU=Vr({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...G$(),...qie()},"VTextField"),Zv=qo()({name:"VTextField",directives:{Intersect:Iie},inheritAttrs:!1,props:BU(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:r,emit:a,slots:i}=e;const d=pi(t,"modelValue"),{isFocused:f,focus:m,blur:u}=X$(t),p=sn(()=>typeof t.counterValue=="function"?t.counterValue(d.value):typeof t.counterValue=="number"?t.counterValue:(d.value??"").toString().length),v=sn(()=>{if(r.maxlength)return r.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter}),y=sn(()=>["plain","underlined"].includes(t.variant));function b(N,F){var z,U;!t.autofocus||!N||(U=(z=F[0].target)==null?void 0:z.focus)==null||U.call(z)}const x=Vo(),k=Vo(),C=Vo(),w=sn(()=>I8e.includes(t.type)||t.persistentPlaceholder||f.value||t.active);function T(){var N;C.value!==document.activeElement&&((N=C.value)==null||N.focus()),f.value||m()}function R(N){a("mousedown:control",N),N.target!==C.value&&(T(),N.preventDefault())}function M(N){T(),a("click:control",N)}function I(N){N.stopPropagation(),T(),ec(()=>{d.value=null,$1e(t["onClick:clear"],N)})}function V(N){var z;const F=N.target;if(d.value=F.value,(z=t.modelModifiers)!=null&&z.trim&&["text","search","password","tel","url"].includes(t.type)){const U=[F.selectionStart,F.selectionEnd];ec(()=>{F.selectionStart=U[0],F.selectionEnd=U[1]})}}return Cs(()=>{const N=!!(i.counter||t.counter!==!1&&t.counter!=null),F=!!(N||i.details),[z,U]=Pie(r),[{modelValue:Q,...B}]=MS.filterProps(t),[E]=Zye(t);return lt(MS,rs({ref:x,modelValue:d.value,"onUpdate:modelValue":W=>d.value=W,class:["v-text-field",{"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-text-field--plain-underlined":["plain","underlined"].includes(t.variant)},t.class],style:t.style},z,B,{centerAffix:!y.value,focused:f.value}),{...i,default:W=>{let{id:Y,isDisabled:ie,isDirty:L,isReadonly:me,isValid:ae}=W;return lt(Kie,rs({ref:k,onMousedown:R,onClick:M,"onClick:clear":I,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"],role:t.role},E,{id:Y.value,active:w.value||L.value,dirty:L.value||t.dirty,disabled:ie.value,focused:f.value,error:ae.value===!1}),{...i,default:q=>{let{props:{class:fe,...ee}}=q;const be=Qu(lt("input",rs({ref:C,value:d.value,onInput:V,autofocus:t.autofocus,readonly:me.value,disabled:ie.value,name:t.name,placeholder:t.placeholder,size:1,type:t.type,onFocus:T,onBlur:u},ee,U),null),[[Hv("intersect"),{handler:b},null,{once:!0}]]);return lt(Go,null,[t.prefix&<("span",{class:"v-text-field__prefix"},[lt("span",{class:"v-text-field__prefix__text"},[t.prefix])]),i.default?lt("div",{class:fe,"data-no-activator":""},[i.default(),be]):pO(be,{class:fe}),t.suffix&<("span",{class:"v-text-field__suffix"},[lt("span",{class:"v-text-field__suffix__text"},[t.suffix])])])}})},details:F?W=>{var Y;return lt(Go,null,[(Y=i.details)==null?void 0:Y.call(i,W),N&<(Go,null,[lt("span",null,null),lt(zye,{active:t.persistentCounter||f.value,value:p.value,max:v.value},i.counter)])])}:void 0})}),WC({},x,k,C)}});const N8e=Vr({renderless:Boolean,...fa()},"VVirtualScrollItem"),B8e=qo()({name:"VVirtualScrollItem",inheritAttrs:!1,props:N8e(),emits:{"update:height":t=>!0},setup(t,e){let{attrs:r,emit:a,slots:i}=e;const{resizeRef:d,contentRect:f}=PU(void 0,"border");Ho(()=>{var m;return(m=f.value)==null?void 0:m.height},m=>{m!=null&&a("update:height",m)}),Cs(()=>{var m,u;return t.renderless?lt(Go,null,[(m=i.default)==null?void 0:m.call(i,{itemRef:d})]):lt("div",rs({ref:d,class:["v-virtual-scroll__item",t.class],style:t.style},r),[(u=i.default)==null?void 0:u.call(i)])})}}),Hhe=-1,Uhe=1,Q8e=Vr({itemHeight:{type:[Number,String],default:48}},"virtual");function F8e(t,e,r){const a=fs(0),i=fs(t.itemHeight),d=sn({get:()=>parseInt(i.value??0,10),set(F){i.value=F}}),f=Vo(),{resizeRef:m,contentRect:u}=PU();am(()=>{m.value=f.value});const p=Bye(),v=new Map;let y=Array.from({length:e.value.length});const b=sn(()=>{const F=(!u.value||f.value===document.documentElement?p.height.value:u.value.height)-((r==null?void 0:r.value)??0);return Math.ceil(F/d.value*1.7+1)});function x(F,z){d.value=Math.max(d.value,z),y[F]=z,v.set(e.value[F],z)}function k(F){return y.slice(0,F).reduce((z,U)=>z+(U||d.value),0)}function C(F){const z=e.value.length;let U=0,Q=0;for(;Q=W&&(a.value=Ap(E,0,e.value.length-b.value)),w=z}function R(F){if(!f.value)return;const z=k(F);f.value.scrollTop=z}const M=sn(()=>Math.min(e.value.length,a.value+b.value)),I=sn(()=>e.value.slice(a.value,M.value).map((F,z)=>({raw:F,index:z+a.value}))),V=sn(()=>k(a.value)),N=sn(()=>k(e.value.length)-k(M.value));return Ho(()=>e.value.length,()=>{y=uM(e.value.length).map(()=>d.value),v.forEach((F,z)=>{const U=e.value.indexOf(z);U===-1?v.delete(z):y[U]=F})}),{containerRef:f,computedItems:I,itemHeight:d,paddingTop:V,paddingBottom:N,scrollToIndex:R,handleScroll:T,handleItemResize:x}}const V8e=Vr({items:{type:Array,default:()=>[]},renderless:Boolean,...Q8e(),...fa(),...FC()},"VVirtualScroll"),Jie=qo()({name:"VVirtualScroll",props:V8e(),setup(t,e){let{slots:r}=e;const a=Sf("VVirtualScroll"),{dimensionStyles:i}=VC(t),{containerRef:d,handleScroll:f,handleItemResize:m,scrollToIndex:u,paddingTop:p,paddingBottom:v,computedItems:y}=F8e(t,ns(t,"items"));return PS(()=>t.renderless,()=>{gg(()=>{var b;d.value=U1e(a.vnode.el,!0),(b=d.value)==null||b.addEventListener("scroll",f)}),om(()=>{var b;(b=d.value)==null||b.removeEventListener("scroll",f)})}),Cs(()=>{const b=y.value.map(x=>lt(B8e,{key:x.index,renderless:t.renderless,"onUpdate:height":k=>m(x.index,k)},{default:k=>{var C;return(C=r.default)==null?void 0:C.call(r,{item:x.raw,index:x.index,...k})}}));return t.renderless?lt(Go,null,[lt("div",{class:"v-virtual-scroll__spacer",style:{paddingTop:cs(p.value)}},null),b,lt("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:cs(v.value)}},null)]):lt("div",{ref:d,class:["v-virtual-scroll",t.class],onScroll:f,style:[i.value,t.style]},[lt("div",{class:"v-virtual-scroll__container",style:{paddingTop:cs(p.value),paddingBottom:cs(v.value)}},[b])])}),{scrollToIndex:u}}});function ele(t,e){const r=fs(!1);let a;function i(m){cancelAnimationFrame(a),r.value=!0,a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{r.value=!1})})}async function d(){await new Promise(m=>requestAnimationFrame(m)),await new Promise(m=>requestAnimationFrame(m)),await new Promise(m=>requestAnimationFrame(m)),await new Promise(m=>{if(r.value){const u=Ho(r,()=>{u(),m()})}else m()})}async function f(m){var v,y;if(m.key==="Tab"&&((v=e.value)==null||v.focus()),!["PageDown","PageUp","Home","End"].includes(m.key))return;const u=(y=t.value)==null?void 0:y.$el;if(!u)return;(m.key==="Home"||m.key==="End")&&u.scrollTo({top:m.key==="Home"?0:u.scrollHeight,behavior:"smooth"}),await d();const p=u.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(m.key==="PageDown"||m.key==="Home"){const b=u.getBoundingClientRect().top;for(const x of p)if(x.getBoundingClientRect().top>=b){x.focus();break}}else{const b=u.getBoundingClientRect().bottom;for(const x of[...p].reverse())if(x.getBoundingClientRect().bottom<=b){x.focus();break}}}return{onListScroll:i,onListKeydown:f}}const tle=Vr({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,menu:Boolean,menuIcon:{type:_i,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...Dye({itemChildren:!1})},"Select"),z8e=Vr({...tle(),...kM(BU({modelValue:null,role:"button"}),["validationValue","dirty","appendInnerIcon"]),...zC({transition:{component:$ie}})},"VSelect"),nle=qo()({name:"VSelect",props:z8e(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:r}=e;const{t:a}=LS(),i=Vo(),d=Vo(),f=Vo(),m=pi(t,"menu"),u=sn({get:()=>m.value,set:L=>{var me;m.value&&!L&&((me=d.value)!=null&&me.ΨopenChildren)||(m.value=L)}}),{items:p,transformIn:v,transformOut:y}=Yie(t),b=pi(t,"modelValue",[],L=>v(L===null?[null]:dh(L)),L=>{const me=y(L);return t.multiple?me:me[0]??null}),x=IU(),k=sn(()=>b.value.map(L=>L.value)),C=fs(!1),w=sn(()=>u.value?t.closeText:t.openText);let T="",R;const M=sn(()=>t.hideSelected?p.value.filter(L=>!b.value.some(me=>me===L)):p.value),I=sn(()=>t.hideNoData&&!p.value.length||t.readonly||(x==null?void 0:x.isReadonly.value)),V=Vo(),{onListScroll:N,onListKeydown:F}=ele(V,i);function z(L){t.openOnClear&&(u.value=!0)}function U(){I.value||(u.value=!u.value)}function Q(L){var ee,be;if(!L.key||t.readonly||x!=null&&x.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(L.key)&&L.preventDefault(),["Enter","ArrowDown"," "].includes(L.key)&&(u.value=!0),["Escape","Tab"].includes(L.key)&&(u.value=!1),L.key==="Home"?(ee=V.value)==null||ee.focus("first"):L.key==="End"&&((be=V.value)==null||be.focus("last"));const me=1e3;function ae(Te){const Be=Te.key.length===1,ge=!Te.ctrlKey&&!Te.metaKey&&!Te.altKey;return Be&&ge}if(t.multiple||!ae(L))return;const q=performance.now();q-R>me&&(T=""),T+=L.key.toLowerCase(),R=q;const fe=p.value.find(Te=>Te.title.toLowerCase().startsWith(T));fe!==void 0&&(b.value=[fe])}function B(L){if(t.multiple){const me=b.value.findIndex(ae=>t.valueComparator(ae.value,L.value));if(me===-1)b.value=[...b.value,L];else{const ae=[...b.value];ae.splice(me,1),b.value=ae}}else b.value=[L],u.value=!1}function E(L){var me;(me=V.value)!=null&&me.$el.contains(L.relatedTarget)||(u.value=!1)}function W(){var L;C.value&&((L=i.value)==null||L.focus())}function Y(L){C.value=!0}function ie(L){if(L==null)b.value=[];else if(dM(i.value,":autofill")||dM(i.value,":-webkit-autofill")){const me=p.value.find(ae=>ae.title===L);me&&B(me)}else i.value&&(i.value.value="")}return Ho(u,()=>{if(!t.hideSelected&&u.value&&b.value.length){const L=M.value.findIndex(me=>b.value.some(ae=>t.valueComparator(ae.value,me.value)));Fl&&window.requestAnimationFrame(()=>{var me;L>=0&&((me=f.value)==null||me.scrollToIndex(L))})}}),Cs(()=>{const L=!!(t.chips||r.chip),me=!!(!t.hideNoData||M.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),ae=b.value.length>0,[q]=Zv.filterProps(t),fe=ae||!C.value&&t.label&&!t.persistentPlaceholder?void 0:t.placeholder;return lt(Zv,rs({ref:i},q,{modelValue:b.value.map(ee=>ee.props.value).join(", "),"onUpdate:modelValue":ie,focused:C.value,"onUpdate:focused":ee=>C.value=ee,validationValue:b.externalValue,counterValue:b.value.length,dirty:ae,class:["v-select",{"v-select--active-menu":u.value,"v-select--chips":!!t.chips,[`v-select--${t.multiple?"multiple":"single"}`]:!0,"v-select--selected":b.value.length,"v-select--selection-slot":!!r.selection},t.class],style:t.style,inputmode:"none",placeholder:fe,"onClick:clear":z,"onMousedown:control":U,onBlur:E,onKeydown:Q,"aria-label":a(w.value),title:a(w.value)}),{...r,default:()=>lt(Go,null,[lt(BS,rs({ref:d,modelValue:u.value,"onUpdate:modelValue":ee=>u.value=ee,activator:"parent",contentClass:"v-select__content",disabled:I.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:W},t.menuProps),{default:()=>[me&<(NS,{ref:V,selected:k.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:ee=>ee.preventDefault(),onKeydown:F,onFocusin:Y,onScrollPassive:N,tabindex:"-1",color:t.itemColor??t.color},{default:()=>{var ee,be,Te;return[(ee=r["prepend-item"])==null?void 0:ee.call(r),!M.value.length&&!t.hideNoData&&(((be=r["no-data"])==null?void 0:be.call(r))??lt(mg,{title:a(t.noDataText)},null)),lt(Jie,{ref:f,renderless:!0,items:M.value},{default:Be=>{var Oe;let{item:ge,index:ne,itemRef:pe}=Be;const G=rs(ge.props,{ref:pe,key:ne,onClick:()=>B(ge)});return((Oe=r.item)==null?void 0:Oe.call(r,{item:ge,index:ne,props:G}))??lt(mg,G,{prepend:xe=>{let{isSelected:Le}=xe;return lt(Go,null,[t.multiple&&!t.hideSelected?lt(MM,{key:ge.value,modelValue:Le,ripple:!1,tabindex:"-1"},null):void 0,ge.props.prependIcon&<(qa,{icon:ge.props.prependIcon},null)])}})}}),(Te=r["append-item"])==null?void 0:Te.call(r)]}})]}),b.value.map((ee,be)=>{var ge;function Te(ne){ne.stopPropagation(),ne.preventDefault(),B(ee)}const Be={"onClick:close":Te,onMousedown(ne){ne.preventDefault(),ne.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0};return lt("div",{key:ee.value,class:"v-select__selection"},[L?r.chip?lt(Kc,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:ee.title}}},{default:()=>{var ne;return[(ne=r.chip)==null?void 0:ne.call(r,{item:ee,index:be,props:Be})]}}):lt(eM,rs({key:"chip",closable:t.closableChips,size:"small",text:ee.title,disabled:ee.props.disabled},Be),null):((ge=r.selection)==null?void 0:ge.call(r,{item:ee,index:be}))??lt("span",{class:"v-select__selection-text"},[ee.title,t.multiple&&bet==null||e==null?-1:t.toString().toLocaleLowerCase().indexOf(e.toString().toLocaleLowerCase()),rle=Vr({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function H8e(t,e,r){var m;const a=[],i=(r==null?void 0:r.default)??Z8e,d=r!=null&&r.filterKeys?dh(r.filterKeys):!1,f=Object.keys((r==null?void 0:r.customKeyFilter)??{}).length;if(!(t!=null&&t.length))return a;e:for(let u=0;ua!=null&&a.transform?ug(e).map(u=>[u,a.transform(u)]):ug(e));am(()=>{const u=typeof r=="function"?r():ug(r),p=typeof u!="string"&&typeof u!="number"?"":String(u),v=H8e(f.value,p,{customKeyFilter:t.customKeyFilter,default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),y=ug(e),b=[],x=new Map;v.forEach(k=>{let{index:C,matches:w}=k;const T=y[C];b.push(T),x.set(T.value,w)}),i.value=b,d.value=x});function m(u){return d.value.get(u.value)}return{filteredItems:i,filteredMatches:d,getMatches:m}}function U8e(t,e,r){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?lt(Go,null,[lt("span",{class:"v-autocomplete__unmask"},[t.substr(0,e)]),lt("span",{class:"v-autocomplete__mask"},[t.substr(e,r)]),lt("span",{class:"v-autocomplete__unmask"},[t.substr(e+r)])]):t}const W8e=Vr({autoSelectFirst:{type:[Boolean,String]},search:String,...rle({filterKeys:["title"]}),...tle(),...kM(BU({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...zC({transition:!1})},"VAutocomplete"),Hye=qo()({name:"VAutocomplete",props:W8e(),emits:{"update:focused":t=>!0,"update:search":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,e){let{slots:r}=e;const{t:a}=LS(),i=Vo(),d=fs(!1),f=fs(!0),m=fs(!1),u=Vo(),p=Vo(),v=pi(t,"menu"),y=sn({get:()=>v.value,set:G=>{var Oe;v.value&&!G&&((Oe=u.value)!=null&&Oe.ΨopenChildren)||(v.value=G)}}),b=fs(-1),x=sn(()=>{var G;return(G=i.value)==null?void 0:G.color}),k=sn(()=>y.value?t.closeText:t.openText),{items:C,transformIn:w,transformOut:T}=Yie(t),{textColorClasses:R,textColorStyles:M}=Ep(x),I=pi(t,"search",""),V=pi(t,"modelValue",[],G=>w(G===null?[null]:dh(G)),G=>{const Oe=T(G);return t.multiple?Oe:Oe[0]??null}),N=IU(),{filteredItems:F,getMatches:z}=ole(t,C,()=>f.value?"":I.value),U=sn(()=>t.hideSelected?F.value.filter(G=>!V.value.some(Oe=>Oe.value===G.value)):F.value),Q=sn(()=>V.value.map(G=>G.props.value)),B=sn(()=>{var Oe;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&I.value===((Oe=U.value[0])==null?void 0:Oe.title))&&U.value.length>0&&!f.value&&!m.value}),E=sn(()=>t.hideNoData&&!C.value.length||t.readonly||(N==null?void 0:N.isReadonly.value)),W=Vo(),{onListScroll:Y,onListKeydown:ie}=ele(W,i);function L(G){t.openOnClear&&(y.value=!0),I.value=""}function me(){E.value||(y.value=!0)}function ae(G){E.value||(d.value&&(G.preventDefault(),G.stopPropagation()),y.value=!y.value)}function q(G){var Le,ke,$e;if(t.readonly||N!=null&&N.isReadonly.value)return;const Oe=i.value.selectionStart,xe=V.value.length;if((b.value>-1||["Enter","ArrowDown","ArrowUp"].includes(G.key))&&G.preventDefault(),["Enter","ArrowDown"].includes(G.key)&&(y.value=!0),["Escape"].includes(G.key)&&(y.value=!1),B.value&&["Enter","Tab"].includes(G.key)&&pe(U.value[0]),G.key==="ArrowDown"&&B.value&&((Le=W.value)==null||Le.focus("next")),!!t.multiple){if(["Backspace","Delete"].includes(G.key)){if(b.value<0){G.key==="Backspace"&&!I.value&&(b.value=xe-1);return}const Ze=b.value,De=V.value[b.value];De&&!De.props.disabled&&pe(De),b.value=Ze>=xe-1?xe-2:Ze}if(G.key==="ArrowLeft"){if(b.value<0&&Oe>0)return;const Ze=b.value>-1?b.value-1:xe-1;V.value[Ze]?b.value=Ze:(b.value=-1,i.value.setSelectionRange((ke=I.value)==null?void 0:ke.length,($e=I.value)==null?void 0:$e.length))}if(G.key==="ArrowRight"){if(b.value<0)return;const Ze=b.value+1;V.value[Ze]?b.value=Ze:(b.value=-1,i.value.setSelectionRange(0,0))}}}function fe(G){I.value=G.target.value}function ee(G){if(dM(i.value,":autofill")||dM(i.value,":-webkit-autofill")){const Oe=C.value.find(xe=>xe.title===G.target.value);Oe&&pe(Oe)}}function be(){var G;d.value&&(f.value=!0,(G=i.value)==null||G.focus())}function Te(G){d.value=!0,setTimeout(()=>{m.value=!0})}function Be(G){m.value=!1}function ge(G){(G==null||G===""&&!t.multiple)&&(V.value=[])}const ne=fs(!1);function pe(G){if(t.multiple){const Oe=V.value.findIndex(xe=>t.valueComparator(xe.value,G.value));if(Oe===-1)V.value=[...V.value,G];else{const xe=[...V.value];xe.splice(Oe,1),V.value=xe}}else V.value=[G],ne.value=!0,I.value=G.title,y.value=!1,f.value=!0,ec(()=>ne.value=!1)}return Ho(d,(G,Oe)=>{var xe;G!==Oe&&(G?(ne.value=!0,I.value=t.multiple?"":String(((xe=V.value.at(-1))==null?void 0:xe.props.title)??""),f.value=!0,ec(()=>ne.value=!1)):(!t.multiple&&!I.value?V.value=[]:B.value&&!m.value&&!V.value.some(Le=>{let{value:ke}=Le;return ke===U.value[0].value})&&pe(U.value[0]),y.value=!1,I.value="",b.value=-1))}),Ho(I,G=>{!d.value||ne.value||(G&&(y.value=!0),f.value=!G)}),Ho(y,()=>{if(!t.hideSelected&&y.value&&V.value.length){const G=U.value.findIndex(Oe=>V.value.some(xe=>Oe.value===xe.value));Fl&&window.requestAnimationFrame(()=>{var Oe;G>=0&&((Oe=p.value)==null||Oe.scrollToIndex(G))})}}),Cs(()=>{const G=!!(t.chips||r.chip),Oe=!!(!t.hideNoData||U.value.length||r["prepend-item"]||r["append-item"]||r["no-data"]),xe=V.value.length>0,[Le]=Zv.filterProps(t);return lt(Zv,rs({ref:i},Le,{modelValue:I.value,"onUpdate:modelValue":ge,focused:d.value,"onUpdate:focused":ke=>d.value=ke,validationValue:V.externalValue,counterValue:V.value.length,dirty:xe,onInput:fe,onChange:ee,class:["v-autocomplete",`v-autocomplete--${t.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":y.value,"v-autocomplete--chips":!!t.chips,"v-autocomplete--selection-slot":!!r.selection,"v-autocomplete--selecting-index":b.value>-1},t.class],style:t.style,readonly:t.readonly,placeholder:xe?void 0:t.placeholder,"onClick:clear":L,"onMousedown:control":me,onKeydown:q}),{...r,default:()=>lt(Go,null,[lt(BS,rs({ref:u,modelValue:y.value,"onUpdate:modelValue":ke=>y.value=ke,activator:"parent",contentClass:"v-autocomplete__content",disabled:E.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:be},t.menuProps),{default:()=>[Oe&<(NS,{ref:W,selected:Q.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:ke=>ke.preventDefault(),onKeydown:ie,onFocusin:Te,onFocusout:Be,onScrollPassive:Y,tabindex:"-1",color:t.itemColor??t.color},{default:()=>{var ke,$e,Ze;return[(ke=r["prepend-item"])==null?void 0:ke.call(r),!U.value.length&&!t.hideNoData&&((($e=r["no-data"])==null?void 0:$e.call(r))??lt(mg,{title:a(t.noDataText)},null)),lt(Jie,{ref:p,renderless:!0,items:U.value},{default:De=>{var se;let{item:Ie,index:re,itemRef:ye}=De;const te=rs(Ie.props,{ref:ye,key:re,active:B.value&&re===0?!0:void 0,onClick:()=>pe(Ie)});return((se=r.item)==null?void 0:se.call(r,{item:Ie,index:re,props:te}))??lt(mg,te,{prepend:ue=>{let{isSelected:oe}=ue;return lt(Go,null,[t.multiple&&!t.hideSelected?lt(MM,{key:Ie.value,modelValue:oe,ripple:!1,tabindex:"-1"},null):void 0,Ie.props.prependIcon&<(qa,{icon:Ie.props.prependIcon},null)])},title:()=>{var ue,oe;return f.value?Ie.title:U8e(Ie.title,(ue=z(Ie))==null?void 0:ue.title,((oe=I.value)==null?void 0:oe.length)??0)}})}}),(Ze=r["append-item"])==null?void 0:Ze.call(r)]}})]}),V.value.map((ke,$e)=>{var Ie;function Ze(re){re.stopPropagation(),re.preventDefault(),pe(ke)}const De={"onClick:close":Ze,onMousedown(re){re.preventDefault(),re.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0};return lt("div",{key:ke.value,class:["v-autocomplete__selection",$e===b.value&&["v-autocomplete__selection--selected",R.value]],style:$e===b.value?M.value:{}},[G?r.chip?lt(Kc,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:ke.title}}},{default:()=>{var re;return[(re=r.chip)==null?void 0:re.call(r,{item:ke,index:$e,props:De})]}}):lt(eM,rs({key:"chip",closable:t.closableChips,size:"small",text:ke.title,disabled:ke.props.disabled},De),null):((Ie=r.selection)==null?void 0:Ie.call(r,{item:ke,index:$e}))??lt("span",{class:"v-autocomplete__selection-text"},[ke.title,t.multiple&&$e{var a;return lt("div",{class:["v-card-actions",t.class],style:t.style},[(a=r.default)==null?void 0:a.call(r)])}),{}}}),Y8e=PM("v-card-subtitle"),Wye=PM("v-card-title"),X8e=Vr({appendAvatar:String,appendIcon:_i,prependAvatar:String,prependIcon:_i,subtitle:String,title:String,...fa(),...Yv()},"VCardItem"),G8e=qo()({name:"VCardItem",props:X8e(),setup(t,e){let{slots:r}=e;return Cs(()=>{var p;const a=!!(t.prependAvatar||t.prependIcon),i=!!(a||r.prepend),d=!!(t.appendAvatar||t.appendIcon),f=!!(d||r.append),m=!!(t.title||r.title),u=!!(t.subtitle||r.subtitle);return lt("div",{class:["v-card-item",t.class],style:t.style},[i&<("div",{key:"prepend",class:"v-card-item__prepend"},[r.prepend?lt(Kc,{key:"prepend-defaults",disabled:!a,defaults:{VAvatar:{density:t.density,icon:t.prependIcon,image:t.prependAvatar}}},r.prepend):a&<(mM,{key:"prepend-avatar",density:t.density,icon:t.prependIcon,image:t.prependAvatar},null)]),lt("div",{class:"v-card-item__content"},[m&<(Wye,{key:"title"},{default:()=>{var v;return[((v=r.title)==null?void 0:v.call(r))??t.title]}}),u&<(Y8e,{key:"subtitle"},{default:()=>{var v;return[((v=r.subtitle)==null?void 0:v.call(r))??t.subtitle]}}),(p=r.default)==null?void 0:p.call(r)]),f&<("div",{key:"append",class:"v-card-item__append"},[r.append?lt(Kc,{key:"append-defaults",disabled:!d,defaults:{VAvatar:{density:t.density,icon:t.appendIcon,image:t.appendAvatar}}},r.append):d&<(mM,{key:"append-avatar",density:t.density,icon:t.appendIcon,image:t.appendAvatar},null)])])}),{}}}),j8e=PM("v-card-text"),q8e=Vr({appendAvatar:String,appendIcon:_i,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:_i,ripple:{type:[Boolean,Object],default:!0},subtitle:String,text:String,title:String,...ZC(),...fa(),...Yv(),...FC(),...kO(),...EU(),...Zie(),...fye(),...$p(),...DU(),...Qc(),...yu(),...IS({variant:"elevated"})},"VCard"),YC=qo()({name:"VCard",directives:{Ripple:UC},props:q8e(),setup(t,e){let{attrs:r,slots:a}=e;const{themeClasses:i}=wf(t),{borderClasses:d}=HC(t),{colorClasses:f,colorStyles:m,variantClasses:u}=U$(t),{densityClasses:p}=iy(t),{dimensionStyles:v}=VC(t),{elevationClasses:y}=AO(t),{loaderClasses:b}=_U(t),{locationStyles:x}=Hie(t),{positionClasses:k}=dye(t),{roundedClasses:C}=Lp(t),w=RU(t,r),T=sn(()=>t.link!==!1&&w.isLink.value),R=sn(()=>!t.disabled&&t.link!==!1&&(t.link||w.isClickable.value));return Cs(()=>{const M=T.value?"a":t.tag,I=!!(a.title||t.title),V=!!(a.subtitle||t.subtitle),N=I||V,F=!!(a.append||t.appendAvatar||t.appendIcon),z=!!(a.prepend||t.prependAvatar||t.prependIcon),U=!!(a.image||t.image),Q=N||z||F,B=!!(a.text||t.text);return Qu(lt(M,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":R.value},i.value,d.value,f.value,p.value,y.value,b.value,k.value,C.value,u.value,t.class],style:[m.value,v.value,x.value,t.style],href:w.href.value,onClick:R.value&&w.navigate,tabindex:t.disabled?-1:void 0},{default:()=>{var E;return[U&<("div",{key:"image",class:"v-card__image"},[a.image?lt(Kc,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},a.image):lt(Z$,{key:"image-img",cover:!0,src:t.image},null)]),lt(Uie,{name:"v-card",active:!!t.loading,color:typeof t.loading=="boolean"?void 0:t.loading},{default:a.loader}),Q&<(G8e,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:a.item,prepend:a.prepend,title:a.title,subtitle:a.subtitle,append:a.append}),B&<(j8e,{key:"text"},{default:()=>{var W;return[((W=a.text)==null?void 0:W.call(a))??t.text]}}),(E=a.default)==null?void 0:E.call(a),a.actions&<(Uye,null,{default:a.actions}),H$(R.value,"v-card")]}}),[[Hv("ripple"),R.value&&t.ripple]])}),{}}});const sle=Symbol.for("vuetify:v-slider");function Zse(t,e,r){const a=r==="vertical",i=e.getBoundingClientRect(),d="touches"in t?t.touches[0]:t;return a?d.clientY-(i.top+i.height/2):d.clientX-(i.left+i.width/2)}function K8e(t,e){return"touches"in t&&t.touches.length?t.touches[0][e]:"changedTouches"in t&&t.changedTouches.length?t.changedTouches[0][e]:t[e]}const Yye=Vr({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:t=>typeof t=="boolean"||t==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:t=>typeof t=="boolean"||t==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:t=>["vertical","horizontal"].includes(t)},reverse:Boolean,...$p(),...kO({elevation:2})},"Slider"),Xye=t=>{const e=sn(()=>parseFloat(t.min)),r=sn(()=>parseFloat(t.max)),a=sn(()=>+t.step>0?parseFloat(t.step):0),i=sn(()=>Math.max(nhe(a.value),nhe(e.value)));function d(f){if(f=parseFloat(f),a.value<=0)return f;const m=Ap(f,e.value,r.value),u=e.value%a.value,p=Math.round((m-u)/a.value)*a.value+u;return parseFloat(Math.min(p,r.value).toFixed(i.value))}return{min:e,max:r,step:a,decimals:i,roundValue:d}},Gye=t=>{let{props:e,steps:r,onSliderStart:a,onSliderMove:i,onSliderEnd:d,getActiveThumb:f}=t;const{isRtl:m}=Dp(),u=ns(e,"reverse"),p=sn(()=>e.direction==="vertical"),v=sn(()=>p.value!==u.value),{min:y,max:b,step:x,decimals:k,roundValue:C}=r,w=sn(()=>parseInt(e.thumbSize,10)),T=sn(()=>parseInt(e.tickSize,10)),R=sn(()=>parseInt(e.trackSize,10)),M=sn(()=>(b.value-y.value)/x.value),I=ns(e,"disabled"),V=sn(()=>e.error||e.disabled?void 0:e.thumbColor??e.color),N=sn(()=>e.error||e.disabled?void 0:e.trackColor??e.color),F=sn(()=>e.error||e.disabled?void 0:e.trackFillColor??e.color),z=fs(!1),U=fs(0),Q=Vo(),B=Vo();function E(ne){var De;const pe=e.direction==="vertical",G=pe?"top":"left",Oe=pe?"height":"width",xe=pe?"clientY":"clientX",{[G]:Le,[Oe]:ke}=(De=Q.value)==null?void 0:De.$el.getBoundingClientRect(),$e=K8e(ne,xe);let Ze=Math.min(Math.max(($e-Le-U.value)/ke,0),1)||0;return(pe?v.value:v.value!==m.value)&&(Ze=1-Ze),C(y.value+Ze*(b.value-y.value))}const W=ne=>{d({value:E(ne)}),z.value=!1,U.value=0},Y=ne=>{B.value=f(ne),B.value&&(B.value.focus(),z.value=!0,B.value.contains(ne.target)?U.value=Zse(ne,B.value,e.direction):(U.value=0,i({value:E(ne)})),a({value:E(ne)}))},ie={passive:!0,capture:!0};function L(ne){i({value:E(ne)})}function me(ne){ne.stopPropagation(),ne.preventDefault(),W(ne),window.removeEventListener("mousemove",L,ie),window.removeEventListener("mouseup",me)}function ae(ne){var pe;W(ne),window.removeEventListener("touchmove",L,ie),(pe=ne.target)==null||pe.removeEventListener("touchend",ae)}function q(ne){var pe;Y(ne),window.addEventListener("touchmove",L,ie),(pe=ne.target)==null||pe.addEventListener("touchend",ae,{passive:!1})}function fe(ne){ne.preventDefault(),Y(ne),window.addEventListener("mousemove",L,ie),window.addEventListener("mouseup",me,{passive:!1})}const ee=ne=>{const pe=(ne-y.value)/(b.value-y.value)*100;return Ap(isNaN(pe)?0:pe,0,100)},be=ns(e,"showTicks"),Te=sn(()=>be.value?e.ticks?Array.isArray(e.ticks)?e.ticks.map(ne=>({value:ne,position:ee(ne),label:ne.toString()})):Object.keys(e.ticks).map(ne=>({value:parseFloat(ne),position:ee(parseFloat(ne)),label:e.ticks[ne]})):M.value!==1/0?uM(M.value+1).map(ne=>{const pe=y.value+ne*x.value;return{value:pe,position:ee(pe)}}):[]:[]),Be=sn(()=>Te.value.some(ne=>{let{label:pe}=ne;return!!pe})),ge={activeThumbRef:B,color:ns(e,"color"),decimals:k,disabled:I,direction:ns(e,"direction"),elevation:ns(e,"elevation"),hasLabels:Be,isReversed:u,indexFromEnd:v,min:y,max:b,mousePressed:z,numTicks:M,onSliderMousedown:fe,onSliderTouchstart:q,parsedTicks:Te,parseMouseMove:E,position:ee,readonly:ns(e,"readonly"),rounded:ns(e,"rounded"),roundValue:C,showTicks:be,startOffset:U,step:x,thumbSize:w,thumbColor:V,thumbLabel:ns(e,"thumbLabel"),ticks:ns(e,"ticks"),tickSize:T,trackColor:N,trackContainerRef:Q,trackFillColor:F,trackSize:R,vertical:p};return pc(sle,ge),ge},J8e=Vr({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},...fa()},"VSliderThumb"),Hse=qo()({name:"VSliderThumb",directives:{Ripple:UC},props:J8e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r,emit:a}=e;const i=ai(sle),{isRtl:d,rtlClasses:f}=Dp();if(!i)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:m,step:u,disabled:p,thumbSize:v,thumbLabel:y,direction:b,isReversed:x,vertical:k,readonly:C,elevation:w,mousePressed:T,decimals:R,indexFromEnd:M}=i,{textColorClasses:I,textColorStyles:V}=Ep(m),{pageup:N,pagedown:F,end:z,home:U,left:Q,right:B,down:E,up:W}=ZMe,Y=[N,F,z,U,Q,B,E,W],ie=sn(()=>u.value?[1,2,3]:[1,5,10]);function L(ae,q){if(!Y.includes(ae.key))return;ae.preventDefault();const fe=u.value||.1,ee=(t.max-t.min)/fe;if([Q,B,E,W].includes(ae.key)){const Te=(k.value?[d.value?Q:B,x.value?E:W]:M.value!==d.value?[Q,W]:[B,W]).includes(ae.key)?1:-1,Be=ae.shiftKey?2:ae.ctrlKey?1:0;q=q+Te*fe*ie.value[Be]}else if(ae.key===U)q=t.min;else if(ae.key===z)q=t.max;else{const be=ae.key===F?1:-1;q=q-be*fe*(ee>100?ee/10:10)}return Math.max(t.min,Math.min(t.max,q))}function me(ae){const q=L(ae,t.modelValue);q!=null&&a("update:modelValue",q)}return Cs(()=>{const ae=cs(M.value?100-t.position:t.position,"%"),{elevationClasses:q}=AO(sn(()=>p.value?void 0:w.value));return lt("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":t.focused,"v-slider-thumb--pressed":t.focused&&T.value},t.class,f.value],style:[{"--v-slider-thumb-position":ae,"--v-slider-thumb-size":cs(v.value)},t.style],role:"slider",tabindex:p.value?-1:0,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":t.modelValue,"aria-readonly":!!C.value,"aria-orientation":b.value,onKeydown:C.value?void 0:me},[lt("div",{class:["v-slider-thumb__surface",I.value,q.value],style:{...V.value}},null),Qu(lt("div",{class:["v-slider-thumb__ripple",I.value],style:V.value},null),[[Hv("ripple"),t.ripple,null,{circle:!0,center:!0}]]),lt(UEe,{origin:"bottom center"},{default:()=>{var fe;return[Qu(lt("div",{class:"v-slider-thumb__label-container"},[lt("div",{class:["v-slider-thumb__label"]},[lt("div",null,[((fe=r["thumb-label"])==null?void 0:fe.call(r,{modelValue:t.modelValue}))??t.modelValue.toFixed(u.value?R.value:1)])])]),[[ES,y.value&&t.focused||y.value==="always"]])]}})])}),{}}});const e6e=Vr({start:{type:Number,required:!0},stop:{type:Number,required:!0},...fa()},"VSliderTrack"),jye=qo()({name:"VSliderTrack",props:e6e(),emits:{},setup(t,e){let{slots:r}=e;const a=ai(sle);if(!a)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:i,parsedTicks:d,rounded:f,showTicks:m,tickSize:u,trackColor:p,trackFillColor:v,trackSize:y,vertical:b,min:x,max:k,indexFromEnd:C}=a,{roundedClasses:w}=Lp(f),{backgroundColorClasses:T,backgroundColorStyles:R}=_p(v),{backgroundColorClasses:M,backgroundColorStyles:I}=_p(p),V=sn(()=>`inset-${b.value?"block":"inline"}-${C.value?"end":"start"}`),N=sn(()=>b.value?"height":"width"),F=sn(()=>({[V.value]:"0%",[N.value]:"100%"})),z=sn(()=>t.stop-t.start),U=sn(()=>({[V.value]:cs(t.start,"%"),[N.value]:cs(z.value,"%")})),Q=sn(()=>m.value?(b.value?d.value.slice().reverse():d.value).map((E,W)=>{var ie;const Y=E.value!==x.value&&E.value!==k.value?cs(E.position,"%"):void 0;return lt("div",{key:E.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":E.position>=t.start&&E.position<=t.stop,"v-slider-track__tick--first":E.value===x.value,"v-slider-track__tick--last":E.value===k.value}],style:{[V.value]:Y}},[(E.label||r["tick-label"])&<("div",{class:"v-slider-track__tick-label"},[((ie=r["tick-label"])==null?void 0:ie.call(r,{tick:E,index:W}))??E.label])])}):[]);return Cs(()=>lt("div",{class:["v-slider-track",w.value,t.class],style:[{"--v-slider-track-size":cs(y.value),"--v-slider-tick-size":cs(u.value)},t.style]},[lt("div",{class:["v-slider-track__background",M.value,{"v-slider-track__background--opacity":!!i.value||!v.value}],style:{...F.value,...I.value}},null),lt("div",{class:["v-slider-track__fill",T.value],style:{...U.value,...R.value}},null),m.value&<("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":m.value==="always"}]},[Q.value])])),{}}}),t6e=Vr({...LU(),...Yye(),...G$(),modelValue:{type:[Number,String],default:0}},"VSlider"),qye=qo()({name:"VSlider",props:t6e(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,start:t=>!0,end:t=>!0},setup(t,e){let{slots:r,emit:a}=e;const i=Vo(),{rtlClasses:d}=Dp(),f=Xye(t),m=pi(t,"modelValue",void 0,N=>f.roundValue(N??f.min.value)),{min:u,max:p,mousePressed:v,roundValue:y,onSliderMousedown:b,onSliderTouchstart:x,trackContainerRef:k,position:C,hasLabels:w,readonly:T}=Gye({props:t,steps:f,onSliderStart:()=>{a("start",m.value)},onSliderEnd:N=>{let{value:F}=N;const z=y(F);m.value=z,a("end",z)},onSliderMove:N=>{let{value:F}=N;return m.value=y(F)},getActiveThumb:()=>{var N;return(N=i.value)==null?void 0:N.$el}}),{isFocused:R,focus:M,blur:I}=X$(t),V=sn(()=>C(m.value));return Cs(()=>{const[N,F]=MS.filterProps(t),z=!!(t.label||r.label||r.prepend);return lt(MS,rs({class:["v-slider",{"v-slider--has-labels":!!r["tick-label"]||w.value,"v-slider--focused":R.value,"v-slider--pressed":v.value,"v-slider--disabled":t.disabled},d.value,t.class],style:t.style},N,{focused:R.value}),{...r,prepend:z?U=>{var Q,B;return lt(Go,null,[((Q=r.label)==null?void 0:Q.call(r,U))??(t.label?lt($U,{id:U.id.value,class:"v-slider__label",text:t.label},null):void 0),(B=r.prepend)==null?void 0:B.call(r,U)])}:void 0,default:U=>{let{id:Q,messagesId:B}=U;return lt("div",{class:"v-slider__container",onMousedown:T.value?void 0:b,onTouchstartPassive:T.value?void 0:x},[lt("input",{id:Q.value,name:t.name||Q.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:m.value},null),lt(jye,{ref:k,start:0,stop:V.value},{"tick-label":r["tick-label"]}),lt(Hse,{ref:i,"aria-describedby":B.value,focused:R.value,min:u.value,max:p.value,modelValue:m.value,"onUpdate:modelValue":E=>m.value=E,position:V.value,elevation:t.elevation,onFocus:M,onBlur:I},{"thumb-label":r["thumb-label"]})])}})}),{}}});function n6e(t,e,r){if(e==null)return t;if(Array.isArray(e))throw new Error("Multiple matches is not implemented");return typeof e=="number"&&~e?lt(Go,null,[lt("span",{class:"v-combobox__unmask"},[t.substr(0,e)]),lt("span",{class:"v-combobox__mask"},[t.substr(e,r)]),lt("span",{class:"v-combobox__unmask"},[t.substr(e+r)])]):t}const r6e=Vr({autoSelectFirst:{type:[Boolean,String]},delimiters:Array,...rle({filterKeys:["title"]}),...tle({hideNoData:!0,returnObject:!0}),...kM(BU({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...zC({transition:!1})},"VCombobox"),Kye=qo()({name:"VCombobox",props:r6e(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:search":t=>!0,"update:menu":t=>!0},setup(t,e){var G;let{emit:r,slots:a}=e;const{t:i}=LS(),d=Vo(),f=fs(!1),m=fs(!0),u=fs(!1),p=Vo(),v=Vo(),y=pi(t,"menu"),b=sn({get:()=>y.value,set:Oe=>{var xe;y.value&&!Oe&&((xe=p.value)!=null&&xe.ΨopenChildren)||(y.value=Oe)}}),x=fs(-1);let k=!1;const C=sn(()=>{var Oe;return(Oe=d.value)==null?void 0:Oe.color}),w=sn(()=>b.value?t.closeText:t.openText),{items:T,transformIn:R,transformOut:M}=Yie(t),{textColorClasses:I,textColorStyles:V}=Ep(C),N=pi(t,"modelValue",[],Oe=>R(dh(Oe)),Oe=>{const xe=M(Oe);return t.multiple?xe:xe[0]??null}),F=IU(),z=fs(t.multiple?"":((G=N.value[0])==null?void 0:G.title)??""),U=sn({get:()=>z.value,set:Oe=>{var xe;if(z.value=Oe,t.multiple||(N.value=[AC(t,Oe)]),Oe&&t.multiple&&((xe=t.delimiters)!=null&&xe.length)){const Le=Oe.split(new RegExp(`(?:${t.delimiters.join("|")})+`));Le.length>1&&(Le.forEach(ke=>{ke=ke.trim(),ke&&Be(AC(t,ke))}),z.value="")}Oe||(x.value=-1),m.value=!Oe}});Ho(z,Oe=>{k?ec(()=>k=!1):f.value&&!b.value&&(b.value=!0),r("update:search",Oe)}),Ho(N,Oe=>{var xe;t.multiple||(z.value=((xe=Oe[0])==null?void 0:xe.title)??"")});const{filteredItems:Q,getMatches:B}=ole(t,T,()=>m.value?"":U.value),E=sn(()=>t.hideSelected?Q.value.filter(Oe=>!N.value.some(xe=>xe.value===Oe.value)):Q.value),W=sn(()=>N.value.map(Oe=>Oe.value)),Y=sn(()=>{var xe;return(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&U.value===((xe=E.value[0])==null?void 0:xe.title))&&E.value.length>0&&!m.value&&!u.value}),ie=sn(()=>t.hideNoData&&!T.value.length||t.readonly||(F==null?void 0:F.isReadonly.value)),L=Vo(),{onListScroll:me,onListKeydown:ae}=ele(L,d);function q(Oe){k=!0,t.openOnClear&&(b.value=!0)}function fe(){ie.value||(b.value=!0)}function ee(Oe){ie.value||(f.value&&(Oe.preventDefault(),Oe.stopPropagation()),b.value=!b.value)}function be(Oe){var ke;if(t.readonly||F!=null&&F.isReadonly.value)return;const xe=d.value.selectionStart,Le=N.value.length;if((x.value>-1||["Enter","ArrowDown","ArrowUp"].includes(Oe.key))&&Oe.preventDefault(),["Enter","ArrowDown"].includes(Oe.key)&&(b.value=!0),["Escape"].includes(Oe.key)&&(b.value=!1),["Enter","Escape","Tab"].includes(Oe.key)&&(Y.value&&["Enter","Tab"].includes(Oe.key)&&Be(Q.value[0]),m.value=!0),Oe.key==="ArrowDown"&&Y.value&&((ke=L.value)==null||ke.focus("next")),!!t.multiple){if(["Backspace","Delete"].includes(Oe.key)){if(x.value<0){Oe.key==="Backspace"&&!U.value&&(x.value=Le-1);return}const $e=x.value,Ze=N.value[x.value];Ze&&!Ze.props.disabled&&Be(Ze),x.value=$e>=Le-1?Le-2:$e}if(Oe.key==="ArrowLeft"){if(x.value<0&&xe>0)return;const $e=x.value>-1?x.value-1:Le-1;N.value[$e]?x.value=$e:(x.value=-1,d.value.setSelectionRange(U.value.length,U.value.length))}if(Oe.key==="ArrowRight"){if(x.value<0)return;const $e=x.value+1;N.value[$e]?x.value=$e:(x.value=-1,d.value.setSelectionRange(0,0))}Oe.key==="Enter"&&U.value&&(Be(AC(t,U.value)),U.value="")}}function Te(){var Oe;f.value&&(m.value=!0,(Oe=d.value)==null||Oe.focus())}function Be(Oe){if(t.multiple){const xe=N.value.findIndex(Le=>t.valueComparator(Le.value,Oe.value));if(xe===-1)N.value=[...N.value,Oe];else{const Le=[...N.value];Le.splice(xe,1),N.value=Le}U.value=""}else N.value=[Oe],z.value=Oe.title,ec(()=>{b.value=!1,m.value=!0})}function ge(Oe){f.value=!0,setTimeout(()=>{u.value=!0})}function ne(Oe){u.value=!1}function pe(Oe){(Oe==null||Oe===""&&!t.multiple)&&(N.value=[])}return Ho(Q,Oe=>{!Oe.length&&t.hideNoData&&(b.value=!1)}),Ho(f,(Oe,xe)=>{Oe||Oe===xe||(x.value=-1,b.value=!1,Y.value&&!u.value&&!N.value.some(Le=>{let{value:ke}=Le;return ke===E.value[0].value})?Be(E.value[0]):t.multiple&&U.value&&(N.value=[...N.value,AC(t,U.value)],U.value=""))}),Ho(b,()=>{if(!t.hideSelected&&b.value&&N.value.length){const Oe=E.value.findIndex(xe=>N.value.some(Le=>t.valueComparator(Le.value,xe.value)));Fl&&window.requestAnimationFrame(()=>{var xe;Oe>=0&&((xe=v.value)==null||xe.scrollToIndex(Oe))})}}),Cs(()=>{const Oe=!!(t.chips||a.chip),xe=!!(!t.hideNoData||E.value.length||a["prepend-item"]||a["append-item"]||a["no-data"]),Le=N.value.length>0,[ke]=Zv.filterProps(t);return lt(Zv,rs({ref:d},ke,{modelValue:U.value,"onUpdate:modelValue":[$e=>U.value=$e,pe],focused:f.value,"onUpdate:focused":$e=>f.value=$e,validationValue:N.externalValue,counterValue:t.multiple?N.value.length:U.value.length,dirty:Le,class:["v-combobox",{"v-combobox--active-menu":b.value,"v-combobox--chips":!!t.chips,"v-combobox--selection-slot":!!a.selection,"v-combobox--selecting-index":x.value>-1,[`v-combobox--${t.multiple?"multiple":"single"}`]:!0},t.class],style:t.style,readonly:t.readonly,placeholder:Le?void 0:t.placeholder,"onClick:clear":q,"onMousedown:control":fe,onKeydown:be}),{...a,default:()=>lt(Go,null,[lt(BS,rs({ref:p,modelValue:b.value,"onUpdate:modelValue":$e=>b.value=$e,activator:"parent",contentClass:"v-combobox__content",disabled:ie.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterLeave:Te},t.menuProps),{default:()=>[xe&<(NS,{ref:L,selected:W.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:$e=>$e.preventDefault(),onKeydown:ae,onFocusin:ge,onFocusout:ne,onScrollPassive:me,tabindex:"-1",color:t.itemColor??t.color},{default:()=>{var $e,Ze,De;return[($e=a["prepend-item"])==null?void 0:$e.call(a),!E.value.length&&!t.hideNoData&&(((Ze=a["no-data"])==null?void 0:Ze.call(a))??lt(mg,{title:i(t.noDataText)},null)),lt(Jie,{ref:v,renderless:!0,items:E.value},{default:Ie=>{var ue;let{item:re,index:ye,itemRef:te}=Ie;const se=rs(re.props,{ref:te,key:ye,active:Y.value&&ye===0?!0:void 0,onClick:()=>Be(re)});return((ue=a.item)==null?void 0:ue.call(a,{item:re,index:ye,props:se}))??lt(mg,se,{prepend:oe=>{let{isSelected:Se}=oe;return lt(Go,null,[t.multiple&&!t.hideSelected?lt(MM,{key:re.value,modelValue:Se,ripple:!1,tabindex:"-1"},null):void 0,re.props.prependIcon&<(qa,{icon:re.props.prependIcon},null)])},title:()=>{var oe,Se;return m.value?re.title:n6e(re.title,(oe=B(re))==null?void 0:oe.title,((Se=U.value)==null?void 0:Se.length)??0)}})}}),(De=a["append-item"])==null?void 0:De.call(a)]}})]}),N.value.map(($e,Ze)=>{var re;function De(ye){ye.stopPropagation(),ye.preventDefault(),Be($e)}const Ie={"onClick:close":De,onMousedown(ye){ye.preventDefault(),ye.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0};return lt("div",{key:$e.value,class:["v-combobox__selection",Ze===x.value&&["v-combobox__selection--selected",I.value]],style:Ze===x.value?V.value:{}},[Oe?a.chip?lt(Kc,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:$e.title}}},{default:()=>{var ye;return[(ye=a.chip)==null?void 0:ye.call(a,{item:$e,index:Ze,props:Ie})]}}):lt(eM,rs({key:"chip",closable:t.closableChips,size:"small",text:$e.title,disabled:$e.props.disabled},Ie),null):((re=a.selection)==null?void 0:re.call(a,{item:$e,index:Ze}))??lt("span",{class:"v-combobox__selection-text"},[$e.title,t.multiple&&Ze!0},setup(t,e){let{slots:r}=e;const a=pi(t,"modelValue"),{scopeId:i}=Gie(),d=Vo();function f(u){var y,b;const p=u.relatedTarget,v=u.target;if(p!==v&&((y=d.value)!=null&&y.contentEl)&&((b=d.value)!=null&&b.globalTop)&&![document,d.value.contentEl].includes(v)&&!d.value.contentEl.contains(v)){const x=AH(d.value.contentEl);if(!x.length)return;const k=x[0],C=x[x.length-1];p===k?C.focus():k.focus()}}Fl&&Ho(()=>a.value&&t.retainFocus,u=>{u?document.addEventListener("focusin",f):document.removeEventListener("focusin",f)},{immediate:!0}),Ho(a,async u=>{var p,v;await ec(),u?(p=d.value.contentEl)==null||p.focus({preventScroll:!0}):(v=d.value.activatorEl)==null||v.focus({preventScroll:!0})});const m=sn(()=>rs({"aria-haspopup":"dialog","aria-expanded":String(a.value)},t.activatorProps));return Cs(()=>{const[u]=NH.filterProps(t);return lt(NH,rs({ref:d,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},u,{modelValue:a.value,"onUpdate:modelValue":p=>a.value=p,"aria-modal":"true",activatorProps:m.value,role:"dialog"},i),{activator:r.activator,default:function(){for(var p=arguments.length,v=new Array(p),y=0;y{var b;return[(b=r.default)==null?void 0:b.call(r,...v)]}})}})}),WC({},d)}});const x$=Symbol.for("vuetify:v-expansion-panel"),a6e=["default","accordion","inset","popout"],i6e=Vr({color:String,variant:{type:String,default:"default",validator:t=>a6e.includes(t)},readonly:Boolean,...fa(),...Qie(),...Qc(),...yu()},"VExpansionPanels"),Jye=qo()({name:"VExpansionPanels",props:i6e(),emits:{"update:modelValue":t=>!0},setup(t,e){let{slots:r}=e;zie(t,x$);const{themeClasses:a}=wf(t),i=sn(()=>t.variant&&`v-expansion-panels--variant-${t.variant}`);return ay({VExpansionPanel:{color:ns(t,"color")},VExpansionPanelTitle:{readonly:ns(t,"readonly")}}),Cs(()=>lt(t.tag,{class:["v-expansion-panels",a.value,i.value,t.class],style:t.style},r)),{}}}),l6e=Vr({...fa(),...Xie()},"VExpansionPanelText"),ale=qo()({name:"VExpansionPanelText",props:l6e(),setup(t,e){let{slots:r}=e;const a=ai(x$);if(!a)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:i,onAfterLeave:d}=Qye(t,a.isSelected);return Cs(()=>lt(Lie,{onAfterLeave:d},{default:()=>{var f;return[Qu(lt("div",{class:["v-expansion-panel-text",t.class],style:t.style},[r.default&&i.value&<("div",{class:"v-expansion-panel-text__wrapper"},[(f=r.default)==null?void 0:f.call(r)])]),[[ES,a.isSelected.value]])]}})),{}}}),ebe=Vr({color:String,expandIcon:{type:_i,default:"$expand"},collapseIcon:{type:_i,default:"$collapse"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...fa()},"VExpansionPanelTitle"),ile=qo()({name:"VExpansionPanelTitle",directives:{Ripple:UC},props:ebe(),setup(t,e){let{slots:r}=e;const a=ai(x$);if(!a)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:i,backgroundColorStyles:d}=_p(t,"color"),f=sn(()=>({collapseIcon:t.collapseIcon,disabled:a.disabled.value,expanded:a.isSelected.value,expandIcon:t.expandIcon,readonly:t.readonly}));return Cs(()=>{var m;return Qu(lt("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":a.isSelected.value},i.value,t.class],style:[d.value,t.style],type:"button",tabindex:a.disabled.value?-1:void 0,disabled:a.disabled.value,"aria-expanded":a.isSelected.value,onClick:t.readonly?void 0:a.toggle},[lt("span",{class:"v-expansion-panel-title__overlay"},null),(m=r.default)==null?void 0:m.call(r,f.value),!t.hideActions&<("span",{class:"v-expansion-panel-title__icon"},[r.actions?r.actions(f.value):lt(qa,{icon:a.isSelected.value?t.collapseIcon:t.expandIcon},null)])]),[[Hv("ripple"),t.ripple]])}),{}}}),c6e=Vr({title:String,text:String,bgColor:String,...fa(),...kO(),...Fie(),...Xie(),...$p(),...Qc(),...ebe()},"VExpansionPanel"),tbe=qo()({name:"VExpansionPanel",props:c6e(),emits:{"group:selected":t=>!0},setup(t,e){let{slots:r}=e;const a=Vie(t,x$),{backgroundColorClasses:i,backgroundColorStyles:d}=_p(t,"bgColor"),{elevationClasses:f}=AO(t),{roundedClasses:m}=Lp(t),u=sn(()=>(a==null?void 0:a.disabled.value)||t.disabled),p=sn(()=>a.group.items.value.reduce((b,x,k)=>(a.group.selected.value.includes(x.id)&&b.push(k),b),[])),v=sn(()=>{const b=a.group.items.value.findIndex(x=>x.id===a.id);return!a.isSelected.value&&p.value.some(x=>x-b===1)}),y=sn(()=>{const b=a.group.items.value.findIndex(x=>x.id===a.id);return!a.isSelected.value&&p.value.some(x=>x-b===-1)});return pc(x$,a),ay({VExpansionPanelText:{eager:ns(t,"eager")}}),Cs(()=>{const b=!!(r.text||t.text),x=!!(r.title||t.title);return lt(t.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":a.isSelected.value,"v-expansion-panel--before-active":v.value,"v-expansion-panel--after-active":y.value,"v-expansion-panel--disabled":u.value},m.value,i.value,t.class],style:[d.value,t.style]},{default:()=>{var k;return[lt("div",{class:["v-expansion-panel__shadow",...f.value]},null),x&<(ile,{key:"title",collapseIcon:t.collapseIcon,color:t.color,expandIcon:t.expandIcon,hideActions:t.hideActions,ripple:t.ripple},{default:()=>[r.title?r.title():t.title]}),b&<(ale,{key:"text"},{default:()=>[r.text?r.text():t.text]}),(k=r.default)==null?void 0:k.call(r)]}})}),{}}});const u6e=Vr({fluid:{type:Boolean,default:!1},...fa(),...Qc()},"VContainer"),S$=qo()({name:"VContainer",props:u6e(),setup(t,e){let{slots:r}=e;const{rtlClasses:a}=Dp();return Cs(()=>lt(t.tag,{class:["v-container",{"v-container--fluid":t.fluid},a.value,t.class],style:t.style},r)),{}}}),nbe=(()=>NU.reduce((t,e)=>(t[e]={type:[Boolean,String,Number],default:!1},t),{}))(),rbe=(()=>NU.reduce((t,e)=>{const r="offset"+SO(e);return t[r]={type:[String,Number],default:null},t},{}))(),obe=(()=>NU.reduce((t,e)=>{const r="order"+SO(e);return t[r]={type:[String,Number],default:null},t},{}))(),Whe={col:Object.keys(nbe),offset:Object.keys(rbe),order:Object.keys(obe)};function f6e(t,e,r){let a=t;if(!(r==null||r===!1)){if(e){const i=e.replace(t,"");a+=`-${i}`}return t==="col"&&(a="v-"+a),t==="col"&&(r===""||r===!0)||(a+=`-${r}`),a.toLowerCase()}}const d6e=["auto","start","end","center","baseline","stretch"],h6e=Vr({cols:{type:[Boolean,String,Number],default:!1},...nbe,offset:{type:[String,Number],default:null},...rbe,order:{type:[String,Number],default:null},...obe,alignSelf:{type:String,default:null,validator:t=>d6e.includes(t)},...fa(),...Qc()},"VCol"),Nv=qo()({name:"VCol",props:h6e(),setup(t,e){let{slots:r}=e;const a=sn(()=>{const i=[];let d;for(d in Whe)Whe[d].forEach(m=>{const u=t[m],p=f6e(d,m,u);p&&i.push(p)});const f=i.some(m=>m.startsWith("v-col-"));return i.push({"v-col":!f||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),i});return()=>{var i;return hg(t.tag,{class:[a.value,t.class],style:t.style},(i=r.default)==null?void 0:i.call(r))}}}),lle=["start","end","center"],sbe=["space-between","space-around","space-evenly"];function cle(t,e){return NU.reduce((r,a)=>{const i=t+SO(a);return r[i]=e(),r},{})}const m6e=[...lle,"baseline","stretch"],abe=t=>m6e.includes(t),ibe=cle("align",()=>({type:String,default:null,validator:abe})),g6e=[...lle,...sbe],lbe=t=>g6e.includes(t),cbe=cle("justify",()=>({type:String,default:null,validator:lbe})),p6e=[...lle,...sbe,"stretch"],ube=t=>p6e.includes(t),fbe=cle("alignContent",()=>({type:String,default:null,validator:ube})),Yhe={align:Object.keys(ibe),justify:Object.keys(cbe),alignContent:Object.keys(fbe)},v6e={align:"align",justify:"justify",alignContent:"align-content"};function y6e(t,e,r){let a=v6e[t];if(r!=null){if(e){const i=e.replace(t,"");a+=`-${i}`}return a+=`-${r}`,a.toLowerCase()}}const b6e=Vr({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:abe},...ibe,justify:{type:String,default:null,validator:lbe},...cbe,alignContent:{type:String,default:null,validator:ube},...fbe,...fa(),...Qc()},"VRow"),cg=qo()({name:"VRow",props:b6e(),setup(t,e){let{slots:r}=e;const a=sn(()=>{const i=[];let d;for(d in Yhe)Yhe[d].forEach(f=>{const m=t[f],u=y6e(d,f,m);u&&i.push(u)});return i.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),i});return()=>{var i;return hg(t.tag,{class:["v-row",a.value,t.class],style:t.style},(i=r.default)==null?void 0:i.call(r))}}}),dbe=PM("v-spacer","div","VSpacer");const O6e=Vr({scrollable:Boolean,...fa(),...Qc({tag:"main"})},"VMain"),x6e=qo()({name:"VMain",props:O6e(),setup(t,e){let{slots:r}=e;const{mainStyles:a}=AEe(),{ssrBootStyles:i}=Bie();return Cs(()=>lt(t.tag,{class:["v-main",{"v-main--scrollable":t.scrollable},t.class],style:[a.value,i.value,t.style]},{default:()=>{var d,f;return[t.scrollable?lt("div",{class:"v-main__scroller"},[(d=r.default)==null?void 0:d.call(r)]):(f=r.default)==null?void 0:f.call(r)]}})),{}}}),S6e=Vr({...LU(),...G$(),...Yye(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),hbe=qo()({name:"VRangeSlider",props:S6e(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,end:t=>!0,start:t=>!0},setup(t,e){let{slots:r,emit:a}=e;const i=Vo(),d=Vo(),f=Vo(),{rtlClasses:m}=Dp();function u(U){if(!i.value||!d.value)return;const Q=Zse(U,i.value.$el,t.direction),B=Zse(U,d.value.$el,t.direction),E=Math.abs(Q),W=Math.abs(B);return EU!=null&&U.length?U.map(Q=>p.roundValue(Q)):[0,0]),{activeThumbRef:y,hasLabels:b,max:x,min:k,mousePressed:C,onSliderMousedown:w,onSliderTouchstart:T,position:R,trackContainerRef:M}=Gye({props:t,steps:p,onSliderStart:()=>{a("start",v.value)},onSliderEnd:U=>{var E;let{value:Q}=U;const B=y.value===((E=i.value)==null?void 0:E.$el)?[Q,v.value[1]]:[v.value[0],Q];!t.strict&&B[0]{var W,Y,ie,L;let{value:Q}=U;const[B,E]=v.value;!t.strict&&B===E&&B!==k.value&&(y.value=Q>B?(W=d.value)==null?void 0:W.$el:(Y=i.value)==null?void 0:Y.$el,(ie=y.value)==null||ie.focus()),y.value===((L=i.value)==null?void 0:L.$el)?v.value=[Math.min(Q,E),E]:v.value=[B,Math.max(B,Q)]},getActiveThumb:u}),{isFocused:I,focus:V,blur:N}=X$(t),F=sn(()=>R(v.value[0])),z=sn(()=>R(v.value[1]));return Cs(()=>{const[U,Q]=MS.filterProps(t),B=!!(t.label||r.label||r.prepend);return lt(MS,rs({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!r["tick-label"]||b.value,"v-slider--focused":I.value,"v-slider--pressed":C.value,"v-slider--disabled":t.disabled},m.value,t.class],style:t.style,ref:f},U,{focused:I.value}),{...r,prepend:B?E=>{var W,Y;return lt(Go,null,[((W=r.label)==null?void 0:W.call(r,E))??(t.label?lt($U,{class:"v-slider__label",text:t.label},null):void 0),(Y=r.prepend)==null?void 0:Y.call(r,E)])}:void 0,default:E=>{var ie,L;let{id:W,messagesId:Y}=E;return lt("div",{class:"v-slider__container",onMousedown:w,onTouchstartPassive:T},[lt("input",{id:`${W.value}_start`,name:t.name||W.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:v.value[0]},null),lt("input",{id:`${W.value}_stop`,name:t.name||W.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:v.value[1]},null),lt(jye,{ref:M,start:F.value,stop:z.value},{"tick-label":r["tick-label"]}),lt(Hse,{ref:i,"aria-describedby":Y.value,focused:I&&y.value===((ie=i.value)==null?void 0:ie.$el),modelValue:v.value[0],"onUpdate:modelValue":me=>v.value=[me,v.value[1]],onFocus:me=>{var ae,q,fe,ee;V(),y.value=(ae=i.value)==null?void 0:ae.$el,v.value[0]===v.value[1]&&v.value[1]===k.value&&me.relatedTarget!==((q=d.value)==null?void 0:q.$el)&&((fe=i.value)==null||fe.$el.blur(),(ee=d.value)==null||ee.$el.focus())},onBlur:()=>{N(),y.value=void 0},min:k.value,max:v.value[1],position:F.value},{"thumb-label":r["thumb-label"]}),lt(Hse,{ref:d,"aria-describedby":Y.value,focused:I&&y.value===((L=d.value)==null?void 0:L.$el),modelValue:v.value[1],"onUpdate:modelValue":me=>v.value=[v.value[0],me],onFocus:me=>{var ae,q,fe,ee;V(),y.value=(ae=d.value)==null?void 0:ae.$el,v.value[0]===v.value[1]&&v.value[0]===x.value&&me.relatedTarget!==((q=i.value)==null?void 0:q.$el)&&((fe=d.value)==null||fe.$el.blur(),(ee=i.value)==null||ee.$el.focus())},onBlur:()=>{N(),y.value=void 0},min:v.value[0],max:x.value,position:z.value},{"thumb-label":r["thumb-label"]})])}})}),{}}});const mbe=Vr({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...fa(),...Yv(),...Qc(),...yu()},"VTable"),Xhe=qo()({name:"VTable",props:mbe(),setup(t,e){let{slots:r}=e;const{themeClasses:a}=wf(t),{densityClasses:i}=iy(t);return Cs(()=>lt(t.tag,{class:["v-table",{"v-table--fixed-height":!!t.height,"v-table--fixed-header":t.fixedHeader,"v-table--fixed-footer":t.fixedFooter,"v-table--has-top":!!r.top,"v-table--has-bottom":!!r.bottom,"v-table--hover":t.hover},a.value,i.value,t.class],style:t.style},{default:()=>{var d,f,m;return[(d=r.top)==null?void 0:d.call(r),r.default?lt("div",{class:"v-table__wrapper",style:{height:cs(t.height)}},[lt("table",null,[r.default()])]):(f=r.wrapper)==null?void 0:f.call(r),(m=r.bottom)==null?void 0:m.call(r)]}})),{}}});const w6e=Vr({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:t=>!isNaN(parseFloat(t))},maxRows:{type:[Number,String],validator:t=>!isNaN(parseFloat(t))},suffix:String,modelModifiers:Object,...G$(),...qie()},"VTextarea"),gbe=qo()({name:"VTextarea",directives:{Intersect:Iie},inheritAttrs:!1,props:w6e(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,e){let{attrs:r,emit:a,slots:i}=e;const d=pi(t,"modelValue"),{isFocused:f,focus:m,blur:u}=X$(t),p=sn(()=>typeof t.counterValue=="function"?t.counterValue(d.value):(d.value||"").toString().length),v=sn(()=>{if(r.maxlength)return r.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter});function y(B,E){var W,Y;!t.autofocus||!B||(Y=(W=E[0].target)==null?void 0:W.focus)==null||Y.call(W)}const b=Vo(),x=Vo(),k=fs(""),C=Vo(),w=sn(()=>t.persistentPlaceholder||f.value||t.active);function T(){var B;C.value!==document.activeElement&&((B=C.value)==null||B.focus()),f.value||m()}function R(B){T(),a("click:control",B)}function M(B){a("mousedown:control",B)}function I(B){B.stopPropagation(),T(),ec(()=>{d.value="",$1e(t["onClick:clear"],B)})}function V(B){var W;const E=B.target;if(d.value=E.value,(W=t.modelModifiers)!=null&&W.trim){const Y=[E.selectionStart,E.selectionEnd];ec(()=>{E.selectionStart=Y[0],E.selectionEnd=Y[1]})}}const N=Vo(),F=Vo(+t.rows),z=sn(()=>["plain","underlined"].includes(t.variant));am(()=>{t.autoGrow||(F.value=+t.rows)});function U(){t.autoGrow&&ec(()=>{if(!N.value||!x.value)return;const B=getComputedStyle(N.value),E=getComputedStyle(x.value.$el),W=parseFloat(B.getPropertyValue("--v-field-padding-top"))+parseFloat(B.getPropertyValue("--v-input-padding-top"))+parseFloat(B.getPropertyValue("--v-field-padding-bottom")),Y=N.value.scrollHeight,ie=parseFloat(B.lineHeight),L=Math.max(parseFloat(t.rows)*ie+W,parseFloat(E.getPropertyValue("--v-input-control-height"))),me=parseFloat(t.maxRows)*ie+W||1/0,ae=Ap(Y??0,L,me);F.value=Math.floor((ae-W)/ie),k.value=cs(ae)})}gg(U),Ho(d,U),Ho(()=>t.rows,U),Ho(()=>t.maxRows,U),Ho(()=>t.density,U);let Q;return Ho(N,B=>{B?(Q=new ResizeObserver(U),Q.observe(N.value)):Q==null||Q.disconnect()}),im(()=>{Q==null||Q.disconnect()}),Cs(()=>{const B=!!(i.counter||t.counter||t.counterValue),E=!!(B||i.details),[W,Y]=Pie(r),[{modelValue:ie,...L}]=MS.filterProps(t),[me]=Zye(t);return lt(MS,rs({ref:b,modelValue:d.value,"onUpdate:modelValue":ae=>d.value=ae,class:["v-textarea v-text-field",{"v-textarea--prefixed":t.prefix,"v-textarea--suffixed":t.suffix,"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-textarea--auto-grow":t.autoGrow,"v-textarea--no-resize":t.noResize||t.autoGrow,"v-text-field--plain-underlined":z.value},t.class],style:t.style},W,L,{centerAffix:F.value===1&&!z.value,focused:f.value}),{...i,default:ae=>{let{isDisabled:q,isDirty:fe,isReadonly:ee,isValid:be}=ae;return lt(Kie,rs({ref:x,style:{"--v-textarea-control-height":k.value},onClick:R,onMousedown:M,"onClick:clear":I,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},me,{active:w.value||fe.value,centerAffix:F.value===1&&!z.value,dirty:fe.value||t.dirty,disabled:q.value,focused:f.value,error:be.value===!1}),{...i,default:Te=>{let{props:{class:Be,...ge}}=Te;return lt(Go,null,[t.prefix&<("span",{class:"v-text-field__prefix"},[t.prefix]),Qu(lt("textarea",rs({ref:C,class:Be,value:d.value,onInput:V,autofocus:t.autofocus,readonly:ee.value,disabled:q.value,placeholder:t.placeholder,rows:t.rows,name:t.name,onFocus:T,onBlur:u},ge,Y),null),[[Hv("intersect"),{handler:y},null,{once:!0}]]),t.autoGrow&&Qu(lt("textarea",{class:[Be,"v-textarea__sizer"],id:`${ge.id}-sizer`,"onUpdate:modelValue":ne=>d.value=ne,ref:N,readonly:!0,"aria-hidden":"true"},null),[[cTe,d.value]]),t.suffix&<("span",{class:"v-text-field__suffix"},[t.suffix])])}})},details:E?ae=>{var q;return lt(Go,null,[(q=i.details)==null?void 0:q.call(i,ae),B&<(Go,null,[lt("span",null,null),lt(zye,{active:t.persistentCounter||f.value,value:p.value,max:v.value},i.counter)])])}:void 0})}),WC({},b,x,C)}});const T6e=Vr({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),pbe=Symbol.for("vuetify:data-table-pagination");function C6e(t){const e=pi(t,"page",void 0,a=>+(a??1)),r=pi(t,"itemsPerPage",void 0,a=>+(a??10));return{page:e,itemsPerPage:r}}function k6e(t){const{page:e,itemsPerPage:r,itemsLength:a}=t,i=sn(()=>r.value===-1?0:r.value*(e.value-1)),d=sn(()=>r.value===-1?a.value:Math.min(a.value,i.value+r.value)),f=sn(()=>r.value===-1||a.value===0?1:Math.ceil(a.value/r.value));am(()=>{e.value>f.value&&(e.value=f.value)});function m(b){r.value=b,e.value=1}function u(){e.value=Ap(e.value+1,1,f.value)}function p(){e.value=Ap(e.value-1,1,f.value)}function v(b){e.value=Ap(b,1,f.value)}const y={page:e,itemsPerPage:r,startIndex:i,stopIndex:d,pageCount:f,itemsLength:a,nextPage:u,prevPage:p,setPage:v,setItemsPerPage:m};return pc(pbe,y),y}function A6e(){const t=ai(pbe);if(!t)throw new Error("Missing pagination!");return t}function P6e(t){const{items:e,startIndex:r,stopIndex:a,itemsPerPage:i}=t;return{paginatedItems:sn(()=>i.value<=0?e.value:e.value.slice(r.value,a.value))}}const vbe=Vr({prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Ghe=qo()({name:"VDataTableFooter",props:vbe(),setup(t,e){let{slots:r}=e;const{t:a}=LS(),{page:i,pageCount:d,startIndex:f,stopIndex:m,itemsLength:u,itemsPerPage:p,setItemsPerPage:v}=A6e(),y=sn(()=>t.itemsPerPageOptions.map(b=>({...b,title:a(b.title)})));return()=>{var b;return lt("div",{class:"v-data-table-footer"},[(b=r.prepend)==null?void 0:b.call(r),lt("div",{class:"v-data-table-footer__items-per-page"},[lt("span",null,[a(t.itemsPerPageText)]),lt(nle,{items:y.value,modelValue:p.value,"onUpdate:modelValue":x=>v(Number(x)),density:"compact",variant:"outlined","hide-details":!0},null)]),lt("div",{class:"v-data-table-footer__info"},[lt("div",null,[a(t.pageText,u.value?f.value+1:0,m.value,u.value)])]),lt("div",{class:"v-data-table-footer__pagination"},[lt(Nc,{icon:t.firstIcon,variant:"plain",onClick:()=>i.value=1,disabled:i.value===1,"aria-label":a(t.firstPageLabel)},null),lt(Nc,{icon:t.prevIcon,variant:"plain",onClick:()=>i.value=Math.max(1,i.value-1),disabled:i.value===1,"aria-label":a(t.prevPageLabel)},null),t.showCurrentPage&<("span",{key:"page",class:"v-data-table-footer__page"},[i.value]),lt(Nc,{icon:t.nextIcon,variant:"plain",onClick:()=>i.value=Math.min(d.value,i.value+1),disabled:i.value===d.value,"aria-label":a(t.nextPageLabel)},null),lt(Nc,{icon:t.lastIcon,variant:"plain",onClick:()=>i.value=d.value,disabled:i.value===d.value,"aria-label":a(t.lastPageLabel)},null)])])}}}),ule=bEe({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String]},(t,e)=>{let{slots:r,attrs:a}=e;const i=t.tag??"td";return lt(i,rs({class:["v-data-table__td",{"v-data-table-column--fixed":t.fixed,"v-data-table-column--last-fixed":t.lastFixed,"v-data-table-column--no-padding":t.noPadding},`v-data-table-column--align-${t.align}`],style:{height:cs(t.height),width:cs(t.width),left:cs(t.fixedOffset||null)}},a),{default:()=>{var d;return[(d=r.default)==null?void 0:d.call(r)]}})}),M6e=Vr({headers:{type:Array,default:()=>[]}},"DataTable-header"),ybe=Symbol.for("vuetify:data-table-headers");function E6e(t,e){const r=Vo([]),a=Vo([]);am(()=>{var x,k,C;const d=t.headers.length?Array.isArray(t.headers[0])?t.headers:[t.headers]:[],f=d.flatMap((w,T)=>w.map(R=>({column:R,row:T}))),m=d.length,u={title:"",sortable:!1},p={...u,width:48};if((x=e==null?void 0:e.groupBy)!=null&&x.value.length){const w=f.findIndex(T=>{let{column:R}=T;return R.key==="data-table-group"});w<0?f.unshift({column:{...u,key:"data-table-group",title:"Group",rowspan:m},row:0}):f.splice(w,1,{column:{...u,...f[w].column},row:f[w].row})}if((k=e==null?void 0:e.showSelect)!=null&&k.value){const w=f.findIndex(T=>{let{column:R}=T;return R.key==="data-table-select"});w<0?f.unshift({column:{...p,key:"data-table-select",rowspan:m},row:0}):f.splice(w,1,{column:{...p,...f[w].column},row:f[w].row})}if((C=e==null?void 0:e.showExpand)!=null&&C.value){const w=f.findIndex(T=>{let{column:R}=T;return R.key==="data-table-expand"});w<0?f.push({column:{...p,key:"data-table-expand",rowspan:m},row:0}):f.splice(w,1,{column:{...p,...f[w].column},row:f[w].row})}const v=uM(m).map(()=>[]),y=uM(m).fill(0);f.forEach(w=>{let{column:T,row:R}=w;const M=T.key??(typeof T.value=="string"?T.value:null),I=T.value??T.key??null;for(let V=R;V<=R+(T.rowspan??1)-1;V++)v[V].push({...T,key:M,value:I,fixedOffset:y[V],sortable:T.sortable??M!=null}),y[V]+=Number(T.width??0)}),v.forEach(w=>{for(let T=w.length;T--;T>=0)if(w[T].fixed){w[T].lastFixed=!0;return}});const b=new Set;r.value=v.map(w=>{const T=[];for(const R of w)b.has(R.key)||(b.add(R.key),T.push(R));return T}),a.value=v.at(-1)??[]});const i={headers:r,columns:a};return pc(ybe,i),i}function QU(){const t=ai(ybe);if(!t)throw new Error("Missing headers!");return t}const _6e={showSelectAll:!1,allSelected:()=>[],select:t=>{var a;let{items:e,value:r}=t;return new Set(r?[(a=e[0])==null?void 0:a.value]:[])},selectAll:t=>{let{selected:e}=t;return e}},bbe={showSelectAll:!0,allSelected:t=>{let{currentPage:e}=t;return e},select:t=>{let{items:e,value:r,selected:a}=t;for(const i of e)r?a.add(i.value):a.delete(i.value);return a},selectAll:t=>{let{value:e,currentPage:r,selected:a}=t;return bbe.select({items:r,value:e,selected:a})}},Obe={showSelectAll:!0,allSelected:t=>{let{allItems:e}=t;return e},select:t=>{let{items:e,value:r,selected:a}=t;for(const i of e)r?a.add(i.value):a.delete(i.value);return a},selectAll:t=>{let{value:e,allItems:r,selected:a}=t;return Obe.select({items:r,value:e,selected:a})}},R6e=Vr({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:QC}},"DataTable-select"),xbe=Symbol.for("vuetify:data-table-selection");function D6e(t,e){let{allItems:r,currentPage:a}=e;const i=pi(t,"modelValue",t.modelValue,w=>new Set(dh(w).map(T=>{var R;return((R=r.value.find(M=>t.valueComparator(T,M.value)))==null?void 0:R.value)??T})),w=>[...w.values()]),d=sn(()=>r.value.filter(w=>w.selectable)),f=sn(()=>a.value.filter(w=>w.selectable)),m=sn(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;switch(t.selectStrategy){case"single":return _6e;case"all":return Obe;case"page":default:return bbe}});function u(w){return dh(w).every(T=>i.value.has(T.value))}function p(w){return dh(w).some(T=>i.value.has(T.value))}function v(w,T){const R=m.value.select({items:w,value:T,selected:new Set(i.value)});i.value=R}function y(w){v([w],!u([w]))}function b(w){const T=m.value.selectAll({value:w,allItems:d.value,currentPage:f.value,selected:new Set(i.value)});i.value=T}const x=sn(()=>i.value.size>0),k=sn(()=>{const w=m.value.allSelected({allItems:d.value,currentPage:f.value});return!!w.length&&u(w)}),C={toggleSelect:y,select:v,selectAll:b,isSelected:u,isSomeSelected:p,someSelected:x,allSelected:k,showSelectAll:m.value.showSelectAll};return pc(xbe,C),C}function FU(){const t=ai(xbe);if(!t)throw new Error("Missing selection!");return t}const $6e=Vr({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),Sbe=Symbol.for("vuetify:data-table-sort");function L6e(t){const e=pi(t,"sortBy"),r=ns(t,"mustSort"),a=ns(t,"multiSort");return{sortBy:e,mustSort:r,multiSort:a}}function I6e(t){const{sortBy:e,mustSort:r,multiSort:a,page:i}=t,d=u=>{if(u.key==null)return;let p=e.value.map(y=>({...y}))??[];const v=p.find(y=>y.key===u.key);v?v.order==="desc"?r.value?v.order="asc":p=p.filter(y=>y.key!==u.key):v.order="desc":a.value?p=[...p,{key:u.key,order:"asc"}]:p=[{key:u.key,order:"asc"}],e.value=p,i&&(i.value=1)};function f(u){return!!e.value.find(p=>p.key===u.key)}const m={sortBy:e,toggleSort:d,isSorted:f};return pc(Sbe,m),m}function N6e(){const t=ai(Sbe);if(!t)throw new Error("Missing sort!");return t}function B6e(t,e,r){const a=LS();return{sortedItems:sn(()=>r.value.length?Q6e(e.value,r.value,a.current.value,t.customKeySort):e.value)}}function Q6e(t,e,r,a){const i=new Intl.Collator(r,{sensitivity:"accent",usage:"sort"});return[...t].sort((d,f)=>{for(let m=0;mb!=null?b.toString().toLocaleLowerCase():b),v!==y)return mZ(v)&&mZ(y)?0:mZ(v)?-1:mZ(y)?1:!isNaN(v)&&!isNaN(y)?Number(v)-Number(y):i.compare(v,y)}return 0})}const wbe=Vr({color:String,sticky:Boolean,multiSort:Boolean,sortAscIcon:{type:_i,default:"$sortAsc"},sortDescIcon:{type:_i,default:"$sortDesc"},...EU()},"VDataTableHeaders"),jhe=qo()({name:"VDataTableHeaders",props:wbe(),setup(t,e){let{slots:r,emit:a}=e;const{toggleSort:i,sortBy:d,isSorted:f}=N6e(),{someSelected:m,allSelected:u,selectAll:p,showSelectAll:v}=FU(),{columns:y,headers:b}=QU(),{loaderClasses:x}=_U(t),k=(I,V)=>{if(!(!t.sticky&&!I.fixed))return{position:"sticky",zIndex:I.fixed?4:t.sticky?3:void 0,left:I.fixed?cs(I.fixedOffset):void 0,top:t.sticky?`calc(var(--v-table-header-height) * ${V})`:void 0}};function C(I){const V=d.value.find(N=>N.key===I.key);return V?V.order==="asc"?t.sortAscIcon:t.sortDescIcon:t.sortAscIcon}const{backgroundColorClasses:w,backgroundColorStyles:T}=_p(t,"color"),R=sn(()=>({headers:b.value,columns:y.value,toggleSort:i,isSorted:f,sortBy:d.value,someSelected:m.value,allSelected:u.value,selectAll:p,getSortIcon:C,getFixedStyles:k})),M=I=>{let{column:V,x:N,y:F}=I;const z=V.key==="data-table-select"||V.key==="data-table-expand";return lt(ule,{tag:"th",align:V.align,class:["v-data-table__th",{"v-data-table__th--sortable":V.sortable,"v-data-table__th--sorted":f(V)},x.value],style:{width:cs(V.width),minWidth:cs(V.width),...k(V,F)},colspan:V.colspan,rowspan:V.rowspan,onClick:V.sortable?()=>i(V):void 0,lastFixed:V.lastFixed,noPadding:z},{default:()=>{var B;const U=`column.${V.key}`,Q={column:V,selectAll:p,isSorted:f,toggleSort:i,sortBy:d.value,someSelected:m.value,allSelected:u.value,getSortIcon:C};return r[U]?r[U](Q):V.key==="data-table-select"?((B=r["column.data-table-select"])==null?void 0:B.call(r,Q))??(v&<(MM,{modelValue:u.value,indeterminate:m.value&&!u.value,"onUpdate:modelValue":p},null)):lt("div",{class:"v-data-table-header__content"},[lt("span",null,[V.title]),V.sortable&<(qa,{key:"icon",class:"v-data-table-header__sort-icon",icon:C(V)},null),t.multiSort&&f(V)&<("div",{key:"badge",class:["v-data-table-header__sort-badge",...w.value],style:T.value},[d.value.findIndex(E=>E.key===V.key)+1])])}})};Cs(()=>lt(Go,null,[r.headers?r.headers(R.value):b.value.map((I,V)=>lt("tr",null,[I.map((N,F)=>lt(M,{column:N,x:F,y:V},null))])),t.loading&<("tr",{class:"v-data-table-progress"},[lt("th",{colspan:y.value.length},[lt(Uie,{name:"v-data-table-progress",active:!0,color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0},{default:r.loader})])])]))}}),F6e=Vr({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Tbe=Symbol.for("vuetify:data-table-group");function V6e(t){return{groupBy:pi(t,"groupBy")}}function z6e(t){const{groupBy:e,sortBy:r}=t,a=Vo(new Set),i=sn(()=>e.value.map(p=>({...p,order:p.order??!1})).concat(r.value));function d(p){return a.value.has(p.id)}function f(p){const v=new Set(a.value);d(p)?v.delete(p.id):v.add(p.id),a.value=v}function m(p){function v(y){const b=[];for(const x of y.items)"type"in x&&x.type==="group"?b.push(...v(x)):b.push(x);return b}return v({type:"group",items:p,id:"dummy",key:"dummy",value:"dummy",depth:0})}const u={sortByWithGroups:i,toggleGroup:f,opened:a,groupBy:e,extractRows:m,isGroupOpen:d};return pc(Tbe,u),u}function Cbe(){const t=ai(Tbe);if(!t)throw new Error("Missing group!");return t}function Z6e(t,e){if(!t.length)return[];const r=new Map;for(const a of t){const i=IC(a.raw,e);r.has(i)||r.set(i,[]),r.get(i).push(a)}return r}function kbe(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!e.length)return[];const i=Z6e(t,e[0]),d=[],f=e.slice(1);return i.forEach((m,u)=>{const p=e[0],v=`${a}_${p}_${u}`;d.push({depth:r,id:v,key:p,value:u,items:f.length?kbe(m,f,r+1,v):m,type:"group"})}),d}function Abe(t,e){const r=[];for(const a of t)"type"in a&&a.type==="group"?(a.value!=null&&r.push(a),(e.has(a.id)||a.value==null)&&r.push(...Abe(a.items,e))):r.push(a);return r}function H6e(t,e,r){return{flatItems:sn(()=>{if(!e.value.length)return t.value;const i=kbe(t.value,e.value.map(d=>d.key));return Abe(i,r.value)})}}const U6e=Vr({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),W6e=qo()({name:"VDataTableGroupHeaderRow",props:U6e(),setup(t,e){let{slots:r}=e;const{isGroupOpen:a,toggleGroup:i,extractRows:d}=Cbe(),{isSelected:f,isSomeSelected:m,select:u}=FU(),{columns:p}=QU(),v=sn(()=>d([t.item]));return()=>lt("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":t.item.depth}},[p.value.map(y=>{var b,x;if(y.key==="data-table-group"){const k=a(t.item)?"$expand":"$next",C=()=>i(t.item);return((b=r["data-table-group"])==null?void 0:b.call(r,{item:t.item,count:v.value.length,props:{icon:k,onClick:C}}))??lt(ule,{class:"v-data-table-group-header-row__column"},{default:()=>[lt(Nc,{size:"small",variant:"text",icon:k,onClick:C},null),lt("span",null,[t.item.value]),lt("span",null,[gi("("),v.value.length,gi(")")])]})}if(y.key==="data-table-select"){const k=f(v.value),C=m(v.value)&&!k,w=T=>u(v.value,T);return((x=r["data-table-select"])==null?void 0:x.call(r,{props:{modelValue:k,indeterminate:C,"onUpdate:modelValue":w}}))??lt("td",null,[lt(MM,{modelValue:k,indeterminate:C,"onUpdate:modelValue":w},null)])}return lt("td",null,null)})])}}),Y6e=Vr({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),Pbe=Symbol.for("vuetify:datatable:expanded");function X6e(t){const e=ns(t,"expandOnClick"),r=pi(t,"expanded",t.expanded,m=>new Set(m),m=>[...m.values()]);function a(m,u){const p=new Set(r.value);u?p.add(m.value):p.delete(m.value),r.value=p}function i(m){return r.value.has(m.value)}function d(m){a(m,!i(m))}const f={expand:a,expanded:r,expandOnClick:e,isExpanded:i,toggleExpand:d};return pc(Pbe,f),f}function Mbe(){const t=ai(Pbe);if(!t)throw new Error("foo");return t}const G6e=Vr({index:Number,item:Object,onClick:Function},"VDataTableRow"),j6e=qo()({name:"VDataTableRow",props:G6e(),setup(t,e){let{slots:r}=e;const{isSelected:a,toggleSelect:i}=FU(),{isExpanded:d,toggleExpand:f}=Mbe(),{columns:m}=QU();Cs(()=>lt("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!t.onClick}],onClick:t.onClick},[t.item&&m.value.map((u,p)=>lt(ule,{align:u.align,fixed:u.fixed,fixedOffset:u.fixedOffset,lastFixed:u.lastFixed,noPadding:u.key==="data-table-select"||u.key==="data-table-expand",width:u.width},{default:()=>{var x,k;const v=t.item,y=`item.${u.key}`,b={index:t.index,item:v.raw,internalItem:v,value:IC(v.columns,u.key),column:u,isSelected:a,toggleSelect:i,isExpanded:d,toggleExpand:f};return r[y]?r[y](b):u.key==="data-table-select"?((x=r["item.data-table-select"])==null?void 0:x.call(r,b))??lt(MM,{disabled:!v.selectable,modelValue:a([v]),onClick:Yue(()=>i(v),["stop"])},null):u.key==="data-table-expand"?((k=r["item.data-table-expand"])==null?void 0:k.call(r,b))??lt(Nc,{icon:d(v)?"$collapse":"$expand",size:"small",variant:"text",onClick:Yue(()=>f(v),["stop"])},null):yp(b.value)}}))]))}}),Ebe=Vr({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowHeight:Number,"onClick:row":Function},"VDataTableRows"),qhe=qo()({name:"VDataTableRows",props:Ebe(),setup(t,e){let{emit:r,slots:a}=e;const{columns:i}=QU(),{expandOnClick:d,toggleExpand:f,isExpanded:m}=Mbe(),{isSelected:u,toggleSelect:p}=FU(),{toggleGroup:v,isGroupOpen:y}=Cbe(),{t:b}=LS();return Cs(()=>{var x,k;return t.loading?lt("tr",{class:"v-data-table-rows-loading",key:"loading"},[lt("td",{colspan:i.value.length},[((x=a.loading)==null?void 0:x.call(a))??b(t.loadingText)])]):!t.loading&&!t.items.length&&!t.hideNoData?lt("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[lt("td",{colspan:i.value.length},[((k=a["no-data"])==null?void 0:k.call(a))??b(t.noDataText)])]):lt(Go,null,[t.items.map((C,w)=>{var M;if(C.type==="group")return a["group-header"]?a["group-header"]({index:w,item:C,columns:i.value,isExpanded:m,toggleExpand:f,isSelected:u,toggleSelect:p,toggleGroup:v,isGroupOpen:y}):lt(W6e,{key:`group-header_${C.id}`,item:C},a);const T={index:w,item:C.raw,internalItem:C,columns:i.value,isExpanded:m,toggleExpand:f,isSelected:u,toggleSelect:p},R={...T,props:{key:`item_${C.key??C.index}`,onClick:d.value||t["onClick:row"]?I=>{var V;d.value&&f(C),(V=t["onClick:row"])==null||V.call(t,I,{item:C.raw,internalItem:C})}:void 0,index:w,item:C}};return lt(Go,null,[a.item?a.item(R):lt(j6e,R.props,a),m(C)&&((M=a["expanded-row"])==null?void 0:M.call(a,T))])})])}),{}}}),q6e=Vr({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataTable-items");function K6e(t,e,r,a){const i=t.returnObject?e:nm(e,t.itemValue),d=nm(e,t.itemSelectable,!0),f=a.reduce((m,u)=>(u.key!=null&&(m[u.key]=nm(e,u.value)),m),{});return{type:"item",key:t.returnObject?nm(e,t.itemValue):i,index:r,value:i,selectable:d,columns:f,raw:e}}function J6e(t,e,r){return e.map((a,i)=>K6e(t,a,i,r))}function e7e(t,e){return{items:sn(()=>J6e(t,t.items,e.value))}}function t7e(t){let{page:e,itemsPerPage:r,sortBy:a,groupBy:i,search:d}=t;const f=Sf("VDataTable"),m=sn(()=>({page:e.value,itemsPerPage:r.value,sortBy:a.value,groupBy:i.value,search:d.value}));Ho(()=>d==null?void 0:d.value,()=>{e.value=1});let u=null;Ho(m,()=>{QC(u,m.value)||(f.emit("update:options",m.value),u=m.value)},{deep:!0,immediate:!0})}const n7e=Vr({...Ebe(),width:[String,Number],search:String,...Y6e(),...F6e(),...M6e(),...q6e(),...R6e(),...$6e(),...wbe(),...mbe()},"DataTable"),r7e=Vr({...T6e(),...n7e(),...rle(),...vbe()},"VDataTable"),fle=qo()({name:"VDataTable",props:r7e(),emits:{"update:modelValue":t=>!0,"update:page":t=>!0,"update:itemsPerPage":t=>!0,"update:sortBy":t=>!0,"update:options":t=>!0,"update:groupBy":t=>!0,"update:expanded":t=>!0},setup(t,e){let{emit:r,slots:a}=e;const{groupBy:i}=V6e(t),{sortBy:d,multiSort:f,mustSort:m}=L6e(t),{page:u,itemsPerPage:p}=C6e(t),{columns:v,headers:y}=E6e(t,{groupBy:i,showSelect:ns(t,"showSelect"),showExpand:ns(t,"showExpand")}),{items:b}=e7e(t,v),x=ns(t,"search"),{filteredItems:k}=ole(t,b,x,{transform:Te=>Te.columns}),{toggleSort:C}=I6e({sortBy:d,multiSort:f,mustSort:m,page:u}),{sortByWithGroups:w,opened:T,extractRows:R,isGroupOpen:M,toggleGroup:I}=z6e({groupBy:i,sortBy:d}),{sortedItems:V}=B6e(t,k,w),{flatItems:N}=H6e(V,i,T),F=sn(()=>N.value.length),{startIndex:z,stopIndex:U,pageCount:Q,setItemsPerPage:B}=k6e({page:u,itemsPerPage:p,itemsLength:F}),{paginatedItems:E}=P6e({items:N,startIndex:z,stopIndex:U,itemsPerPage:p}),W=sn(()=>R(E.value)),{isSelected:Y,select:ie,selectAll:L,toggleSelect:me,someSelected:ae,allSelected:q}=D6e(t,{allItems:b,currentPage:W}),{isExpanded:fe,toggleExpand:ee}=X6e(t);t7e({page:u,itemsPerPage:p,sortBy:d,groupBy:i,search:x}),ay({VDataTableRows:{hideNoData:ns(t,"hideNoData"),noDataText:ns(t,"noDataText"),loading:ns(t,"loading"),loadingText:ns(t,"loadingText")}});const be=sn(()=>({page:u.value,itemsPerPage:p.value,sortBy:d.value,pageCount:Q.value,toggleSort:C,setItemsPerPage:B,someSelected:ae.value,allSelected:q.value,isSelected:Y,select:ie,selectAll:L,toggleSelect:me,isExpanded:fe,toggleExpand:ee,isGroupOpen:M,toggleGroup:I,items:W.value,groupedItems:E.value,columns:v.value,headers:y.value}));return Cs(()=>{const[Te]=Ghe.filterProps(t),[Be]=jhe.filterProps(t),[ge]=qhe.filterProps(t),[ne]=Xhe.filterProps(t);return lt(Xhe,rs({class:["v-data-table",{"v-data-table--show-select":t.showSelect,"v-data-table--loading":t.loading},t.class],style:t.style},ne),{top:()=>{var pe;return(pe=a.top)==null?void 0:pe.call(a,be.value)},default:()=>{var pe,G,Oe,xe;return a.default?a.default(be.value):lt(Go,null,[(pe=a.colgroup)==null?void 0:pe.call(a,be.value),lt("thead",null,[lt(jhe,Be,a)]),(G=a.thead)==null?void 0:G.call(a,be.value),lt("tbody",null,[a.body?a.body(be.value):lt(qhe,rs(ge,{items:E.value}),a)]),(Oe=a.tbody)==null?void 0:Oe.call(a,be.value),(xe=a.tfoot)==null?void 0:xe.call(a,be.value)])},bottom:()=>a.bottom?a.bottom(be.value):lt(Go,null,[lt(Ghe,Te,{prepend:a["footer.prepend"]})])})}),{}}}),o7e=_$({props:{text:{type:String,required:!0},type:{type:String,required:!0},color:{type:String}}});function s7e(t,e,r,a,i,d){return so(),La("div",{class:rU(t.type),style:nU({color:t.color})},yp(t.text),7)}const _be=ny(o7e,[["render",s7e]]),a7e={emits:["runCode"],components:{"v-slider":qye,"v-text-field":Zv,"v-number-field":Zv,"v-textarea":gbe,"v-range-slider":hbe,"v-select":nle,"v-combobox":Kye,"v-btn":Nc,"v-img":Z$,"v-data-table":fle,"v-autocomplete":Hye,"v-card":YC,"v-text":_be,"plotly-plot":wpe},props:{rowData:{type:Object},columnData:{type:Object},components:{type:Object,required:!0}},methods:{findComponentById(t){const e=this.components.find(r=>r.id===t);return e?[e]:[]},cardComponents(t){const e=[];for(const r in t.cardChildren)e.push.apply(e,this.findComponentById(t.cardChildren[r]));return e},runCode(t,e,r){this.$emit("runCode",t,e,r)},componentWidth(t){return t.width?t.width:!1},componentBind(t){if(t.component&&t.component==="v-autocomplete"){const{value:e,...r}=t;return r}return t},clickedButton(t){t.component==="v-btn"&&(t.value=!0)}}},i7e={key:0},l7e={key:1},c7e={key:1},u7e={key:0},f7e={key:1};function d7e(t,e,r,a,i,d){const f=q1("plotly-plot"),m=q1("layout-component",!0);return so(),La(Go,null,[r.rowData?(so(),Ts(cg,{key:0},{default:Yr(()=>[(so(!0),La(Go,null,Hf(r.rowData.components,(u,p)=>(so(),Ts(Nv,{key:p,cols:d.componentWidth(u)},{default:Yr(()=>[typeof u=="string"?(so(),La("div",i7e,[(so(!0),La(Go,null,Hf(d.findComponentById(u),v=>(so(),La("div",null,[v.component==="plotly-plot"?(so(),Ts(f,{key:0,id:v.id,figure:v.figure,layout:v.layout},null,8,["id","figure","layout"])):v.component==="v-card"?(so(),Ts(sg(v.component),rs({key:1},d.componentBind(v),{position:"relative",onRunCode:d.runCode}),{default:Yr(()=>[(so(!0),La(Go,null,Hf(d.cardComponents(v),y=>(so(),La("div",null,[y.component==="plotly-plot"?(so(),Ts(f,{key:0,id:y.id,figure:y.figure,layout:y.layout},null,8,["id","figure","layout"])):(so(),Ts(sg(y.component),rs({key:1},d.componentBind(y),{modelValue:y.value,"onUpdate:modelValue":b=>y.value=b,onClick:b=>d.clickedButton(y)},{[H1(y.triggerEvent)]:b=>d.runCode(!0,y.id,y.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))]),_:2},1040,["onRunCode"])):(so(),Ts(sg(v.component),rs({key:2},d.componentBind(v),{modelValue:v.value,"onUpdate:modelValue":y=>v.value=y,onClick:y=>d.clickedButton(v)},{[H1(v.triggerEvent)]:y=>d.runCode(!0,v.id,v.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))])):(so(),La("div",l7e,[lt(m,{"column-data":u,components:r.components,onRunCode:d.runCode},null,8,["column-data","components","onRunCode"])]))]),_:2},1032,["cols"]))),128))]),_:1})):Nu("",!0),r.columnData?(so(),La("div",c7e,[(so(!0),La(Go,null,Hf(r.columnData.components,(u,p)=>(so(),La("div",{key:p},[typeof u=="string"?(so(),La("div",u7e,[(so(!0),La(Go,null,Hf(d.findComponentById(u),v=>(so(),La("div",null,[v.component==="plotly-plot"?(so(),Ts(f,{key:0,id:v.id,figure:v.figure,layout:v.layout},null,8,["id","figure","layout"])):v.component==="v-card"?(so(),Ts(sg(v.component),rs({key:1},d.componentBind(v),{position:"relative"}),{default:Yr(()=>[(so(!0),La(Go,null,Hf(d.cardComponents(v),y=>(so(),La("div",null,[y.component==="plotly-plot"?(so(),Ts(f,{key:0,id:y.id,figure:y.figure,layout:y.layout},null,8,["id","figure","layout"])):(so(),Ts(sg(y.component),rs({key:1},d.componentBind(y),{modelValue:y.value,"onUpdate:modelValue":b=>y.value=b,onClick:b=>d.clickedButton(y)},{[H1(y.triggerEvent)]:b=>d.runCode(!0,y.id,y.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))]),_:2},1040)):(so(),Ts(sg(v.component),rs({key:2},d.componentBind(v),{modelValue:v.value,"onUpdate:modelValue":y=>v.value=y,onClick:y=>d.clickedButton(v)},{[H1(v.triggerEvent)]:y=>d.runCode(!0,v.id,v.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))])):(so(),La("div",f7e,[lt(m,{"row-data":u,components:r.components,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"])]))]))),128))])):Nu("",!0)],64)}const h7e=ny(a7e,[["render",d7e]]),m7e={components:{codemirror:CU,"v-slider":qye,"v-text-field":Zv,"v-number-field":Zv,"v-textarea":gbe,"v-range-slider":hbe,"v-select":nle,"v-combobox":Kye,"v-btn":Nc,"v-img":Z$,"v-data-table":fle,"v-autocomplete":Hye,"v-card":YC,"v-text":_be,"plotly-plot":wpe,"layout-component":h7e},props:{cellData:{type:Object,required:!0},completions:{type:Object,required:!0}},data(){return{isFocused:!1,items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},setup(){const t=fs(null);return{view:t,handleReady:r=>{t.value=r.view}}},computed:{extensions(){const t=()=>{this.runCode(!1,"","")},e=_S.of([{key:"Ctrl-Enter",run:()=>(t(),!0)}]),r=async a=>{console.log("here");const i=a.matchBefore(/\w*/);return{from:i?i.from:a.pos,options:this.completions.map(f=>({label:f.label,type:f.type,apply:(m,u,p,v)=>{const y=u.label;m.dispatch({changes:{from:p,to:v??a.pos,insert:y}})}}))}};return this.$devMode?[Mp.highest(e),Gde(),cM,LC({override:[r]})]:[Ia.readOnly.of(!0),Mp.highest(e),Gde(),cM,LC({override:[r]})]},columns(){var t;return((t=this.cellData.layout)==null?void 0:t.columns)||[]},unplacedComponents(){var a,i;const t=d=>{let f=[];for(const m of d)for(const u of(m==null?void 0:m.components)??[])typeof u=="string"?f.push(u):u&&u.components&&(f=f.concat(t([u])));return f},e=d=>{let f=[];for(const m of d)m.component==="v-card"&&f.push.apply(f,Object.values(m.cardChildren));return f},r=t(((a=this.cellData.layout)==null?void 0:a.rows)??[]).concat(t(((i=this.cellData.layout)==null?void 0:i.columns)??[])).concat(e(this.cellData.components));return this.cellData.components.filter(d=>!r.includes(d.id))}},methods:{runCode(t,e,r){!this.$devMode&&t?this.$emit("componentChange",this.cellData.id,e,r):this.$emit("runCode",this.cellData.id,e)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},componentBind(t){if(t.component&&t.component==="v-autocomplete"){const{value:e,...r}=t;return this.convertUnderscoresToHyphens(r)}return this.convertUnderscoresToHyphens(t)},convertUnderscoresToHyphens(t){return Object.entries(t).reduce((e,[r,a])=>{const i=r.replace(/_/g,"-");return e[i]=a,e},{})},clickedButton(t){t.component==="v-btn"&&(t.value=!0)},findComponentById(t){return this.cellData.components.find(r=>r.id===t)},cardComponents(t){const e=[];for(const r in t.cardChildren)e.push(this.findComponentById(t.cardChildren[r]));return e},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){var a,i,d,f;if(!this.$devMode||!((a=this.view)!=null&&a.hasFocus))return;const t=(i=this.view)==null?void 0:i.state.selection.main.head,e=(d=this.view)==null?void 0:d.state.doc.lineAt(t).number,r=t-((f=this.view)==null?void 0:f.state.doc.line(e).from);this.$emit("saveCell",this.cellData.id,this.cellData.code,e,r)}}};const g7e=kd("span",{class:"py-0 px-2"},".py",-1),p7e={key:3},v7e=kd("p",{class:"text-caption text-disabled text-right"}," CTRL+Enter to run",-1),y7e=[v7e],b7e={class:"text-p"};function O7e(t,e,r,a,i,d){const f=q1("codemirror"),m=q1("layout-component"),u=q1("plotly-plot");return so(),La(Go,null,[lt(YC,{flat:"",color:"bluegrey"},{default:Yr(()=>[t.$devMode?(so(),Ts(cg,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:Yr(()=>[lt(Nv,{cols:11},{default:Yr(()=>[g7e]),_:1}),lt(Nv,{cols:1,class:"d-flex justify-end align-center py-0"},{default:Yr(()=>[lt(qa,{small:"",class:"mx-1",color:"primary",onClick:e[0]||(e[0]=p=>d.runCode(!1,"",""))},{default:Yr(()=>[gi(" mdi-play ")]),_:1}),lt(qa,{small:"",class:"mx-1",color:"error",onClick:d.deleteCell},{default:Yr(()=>[gi(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):Nu("",!0),t.$devMode?(so(),Ts(f,{key:1,modelValue:r.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=p=>r.cellData.code=p),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onReady:a.handleReady,onKeyup:d.saveCell},null,8,["modelValue","extensions","onReady","onKeyup"])):(so(),Ts(Jye,{key:2},{default:Yr(()=>[lt(tbe,null,{default:Yr(()=>[lt(ile,{color:"bluegrey2"},{default:Yr(()=>[gi(" View Source Code ")]),_:1}),lt(ale,null,{default:Yr(()=>[lt(f,{modelValue:r.cellData.code,"onUpdate:modelValue":e[2]||(e[2]=p=>r.cellData.code=p),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])]),_:1})]),_:1})]),_:1})),t.$devMode?(so(),La("div",p7e,y7e)):Nu("",!0),lt(S$,null,{default:Yr(()=>{var p;return[(so(!0),La(Go,null,Hf((p=r.cellData.layout)==null?void 0:p.rows,(v,y)=>(so(),Ts(m,{key:y,"row-data":v,components:r.cellData.components,onRunCode:d.runCode},null,8,["row-data","components","onRunCode"]))),128)),lt(cg,null,{default:Yr(()=>[(so(!0),La(Go,null,Hf(d.columns,(v,y)=>(so(),Ts(Nv,{cols:v.width},{default:Yr(()=>[(so(),Ts(m,{key:y,"column-data":v,components:r.cellData.components,onRunCode:d.runCode},null,8,["column-data","components","onRunCode"]))]),_:2},1032,["cols"]))),256))]),_:1}),lt(cg,null,{default:Yr(()=>[(so(!0),La(Go,null,Hf(d.unplacedComponents,v=>(so(),Ts(S$,{class:"pa-1",key:v.id},{default:Yr(()=>[v.component==="plotly-plot"?(so(),Ts(u,{key:0,id:v.id,figure:v.figure,layout:v.layout},null,8,["id","figure","layout"])):v.component==="v-card"?(so(),Ts(sg(v.component),rs({key:1},d.componentBind(v),{position:"relative",onRunCode:d.runCode}),{default:Yr(()=>[(so(!0),La(Go,null,Hf(d.cardComponents(v),y=>(so(),La("div",null,[y.component==="plotly-plot"?(so(),Ts(u,{key:0,id:v.id,figure:y.figure,layout:y.layout},null,8,["id","figure","layout"])):(so(),Ts(sg(y.component),rs({key:1},d.componentBind(y),{modelValue:y.value,"onUpdate:modelValue":b=>y.value=b,onClick:b=>d.clickedButton(y)},{[H1(y.triggerEvent)]:b=>d.runCode(!0,y.id,y.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))]),_:2},1040,["onRunCode"])):(so(),Ts(sg(v.component),rs({key:2},d.componentBind(v),{modelValue:v.value,"onUpdate:modelValue":y=>v.value=y,onClick:y=>d.clickedButton(v)},{[H1(v.triggerEvent)]:y=>d.runCode(!0,v.id,v.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]),_:2},1024))),128))]),_:1}),lt(cg,null,{default:Yr(()=>[lt(Nv,null,{default:Yr(()=>[kd("pre",b7e,yp(r.cellData.output),1)]),_:1})]),_:1})]}),_:1})]),_:1}),t.$devMode?(so(),Ts(BS,{key:0,transition:"scale-transition"},{activator:Yr(({props:p})=>[lt(Nc,rs(p,{block:""}),{default:Yr(()=>[lt(cg,null,{default:Yr(()=>[lt(qa,{color:"primary"},{default:Yr(()=>[gi("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:Yr(()=>[lt(NS,null,{default:Yr(()=>[(so(!0),La(Go,null,Hf(i.items,(p,v)=>(so(),Ts(mg,{key:v},{default:Yr(()=>[lt(Nc,{block:"",onClick:y=>d.createCell(p.title)},{default:Yr(()=>[gi(yp(p.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})):Nu("",!0)],64)}const x7e=ny(m7e,[["render",O7e]]);function dle(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let XC=dle();function Rbe(t){XC=t}const Dbe=/[&<>"']/,S7e=new RegExp(Dbe.source,"g"),$be=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,w7e=new RegExp($be.source,"g"),T7e={"&":"&","<":"<",">":">",'"':""","'":"'"},Khe=t=>T7e[t];function og(t,e){if(e){if(Dbe.test(t))return t.replace(S7e,Khe)}else if($be.test(t))return t.replace(w7e,Khe);return t}const C7e=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function k7e(t){return t.replace(C7e,(e,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}const A7e=/(^|[^\[])\^/g;function Vi(t,e){t=typeof t=="string"?t:t.source,e=e||"";const r={replace:(a,i)=>(i=typeof i=="object"&&"source"in i?i.source:i,i=i.replace(A7e,"$1"),t=t.replace(a,i),r),getRegex:()=>new RegExp(t,e)};return r}function Jhe(t){try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const BH={exec:()=>null};function eme(t,e){const r=t.replace(/\|/g,(d,f,m)=>{let u=!1,p=f;for(;--p>=0&&m[p]==="\\";)u=!u;return u?"|":" |"}),a=r.split(/ \|/);let i=0;if(a[0].trim()||a.shift(),a.length>0&&!a[a.length-1].trim()&&a.pop(),e)if(a.length>e)a.splice(e);else for(;a.length{const d=i.match(/^\s+/);if(d===null)return i;const[f]=d;return f.length>=a.length?i.slice(a.length):i}).join(` +`)}class QH{constructor(e){Il(this,"options");Il(this,"rules");Il(this,"lexer");this.options=e||XC}space(e){const r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){const r=this.rules.block.code.exec(e);if(r){const a=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?a:bZ(a,` +`)}}}fences(e){const r=this.rules.block.fences.exec(e);if(r){const a=r[0],i=M7e(a,r[3]||"");return{type:"code",raw:a,lang:r[2]?r[2].trim().replace(this.rules.inline._escapes,"$1"):r[2],text:i}}}heading(e){const r=this.rules.block.heading.exec(e);if(r){let a=r[2].trim();if(/#$/.test(a)){const i=bZ(a,"#");(this.options.pedantic||!i||/ $/.test(i))&&(a=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(e){const r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:r[0]}}blockquote(e){const r=this.rules.block.blockquote.exec(e);if(r){const a=bZ(r[0].replace(/^ *>[ \t]?/gm,""),` +`),i=this.lexer.state.top;this.lexer.state.top=!0;const d=this.lexer.blockTokens(a);return this.lexer.state.top=i,{type:"blockquote",raw:r[0],tokens:d,text:a}}}list(e){let r=this.rules.block.list.exec(e);if(r){let a=r[1].trim();const i=a.length>1,d={type:"list",raw:"",ordered:i,start:i?+a.slice(0,-1):"",loose:!1,items:[]};a=i?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=i?a:"[*+-]");const f=new RegExp(`^( {0,3}${a})((?:[ ][^\\n]*)?(?:\\n|$))`);let m="",u="",p=!1;for(;e;){let v=!1;if(!(r=f.exec(e))||this.rules.block.hr.test(e))break;m=r[0],e=e.substring(m.length);let y=r[2].split(` +`,1)[0].replace(/^\t+/,T=>" ".repeat(3*T.length)),b=e.split(` +`,1)[0],x=0;this.options.pedantic?(x=2,u=y.trimStart()):(x=r[2].search(/[^ ]/),x=x>4?1:x,u=y.slice(x),x+=r[1].length);let k=!1;if(!y&&/^ *$/.test(b)&&(m+=b+` +`,e=e.substring(b.length+1),v=!0),!v){const T=new RegExp(`^ {0,${Math.min(3,x-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),R=new RegExp(`^ {0,${Math.min(3,x-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),M=new RegExp(`^ {0,${Math.min(3,x-1)}}(?:\`\`\`|~~~)`),I=new RegExp(`^ {0,${Math.min(3,x-1)}}#`);for(;e;){const V=e.split(` +`,1)[0];if(b=V,this.options.pedantic&&(b=b.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),M.test(b)||I.test(b)||T.test(b)||R.test(e))break;if(b.search(/[^ ]/)>=x||!b.trim())u+=` +`+b.slice(x);else{if(k||y.search(/[^ ]/)>=4||M.test(y)||I.test(y)||R.test(y))break;u+=` +`+b}!k&&!b.trim()&&(k=!0),m+=V+` +`,e=e.substring(V.length+1),y=b.slice(x)}}d.loose||(p?d.loose=!0:/\n *\n *$/.test(m)&&(p=!0));let C=null,w;this.options.gfm&&(C=/^\[[ xX]\] /.exec(u),C&&(w=C[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),d.items.push({type:"list_item",raw:m,task:!!C,checked:w,loose:!1,text:u,tokens:[]}),d.raw+=m}d.items[d.items.length-1].raw=m.trimEnd(),d.items[d.items.length-1].text=u.trimEnd(),d.raw=d.raw.trimEnd();for(let v=0;vx.type==="space"),b=y.length>0&&y.some(x=>/\n.*\n/.test(x.raw));d.loose=b}if(d.loose)for(let v=0;v$/,"$1").replace(this.rules.inline._escapes,"$1"):"",d=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline._escapes,"$1"):r[3];return{type:"def",tag:a,raw:r[0],href:i,title:d}}}table(e){const r=this.rules.block.table.exec(e);if(r){if(!/[:|]/.test(r[2]))return;const a={type:"table",raw:r[0],header:eme(r[1]).map(i=>({text:i,tokens:[]})),align:r[2].replace(/^\||\| *$/g,"").split("|"),rows:r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(` +`):[]};if(a.header.length===a.align.length){let i=a.align.length,d,f,m,u;for(d=0;d({text:p,tokens:[]}));for(i=a.header.length,f=0;f/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){const r=this.rules.inline.link.exec(e);if(r){const a=r[2].trim();if(!this.options.pedantic&&/^$/.test(a))return;const f=bZ(a.slice(0,-1),"\\");if((a.length-f.length)%2===0)return}else{const f=P7e(r[2],"()");if(f>-1){const u=(r[0].indexOf("!")===0?5:4)+r[1].length+f;r[2]=r[2].substring(0,f),r[0]=r[0].substring(0,u).trim(),r[3]=""}}let i=r[2],d="";if(this.options.pedantic){const f=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);f&&(i=f[1],d=f[3])}else d=r[3]?r[3].slice(1,-1):"";return i=i.trim(),/^$/.test(a)?i=i.slice(1):i=i.slice(1,-1)),tme(r,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:d&&d.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(e,r){let a;if((a=this.rules.inline.reflink.exec(e))||(a=this.rules.inline.nolink.exec(e))){let i=(a[2]||a[1]).replace(/\s+/g," ");if(i=r[i.toLowerCase()],!i){const d=a[0].charAt(0);return{type:"text",raw:d,text:d}}return tme(a,i,a[0],this.lexer)}}emStrong(e,r,a=""){let i=this.rules.inline.emStrong.lDelim.exec(e);if(!i||i[3]&&a.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!a||this.rules.inline.punctuation.exec(a)){const f=[...i[0]].length-1;let m,u,p=f,v=0;const y=i[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(y.lastIndex=0,r=r.slice(-1*e.length+f);(i=y.exec(r))!=null;){if(m=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!m)continue;if(u=[...m].length,i[3]||i[4]){p+=u;continue}else if((i[5]||i[6])&&f%3&&!((f+u)%3)){v+=u;continue}if(p-=u,p>0)continue;u=Math.min(u,u+p+v);const b=[...i[0]][0].length,x=e.slice(0,f+i.index+b+u);if(Math.min(f,u)%2){const C=x.slice(1,-1);return{type:"em",raw:x,text:C,tokens:this.lexer.inlineTokens(C)}}const k=x.slice(2,-2);return{type:"strong",raw:x,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(e){const r=this.rules.inline.code.exec(e);if(r){let a=r[2].replace(/\n/g," ");const i=/[^ ]/.test(a),d=/^ /.test(a)&&/ $/.test(a);return i&&d&&(a=a.substring(1,a.length-1)),a=og(a,!0),{type:"codespan",raw:r[0],text:a}}}br(e){const r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){const r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){const r=this.rules.inline.autolink.exec(e);if(r){let a,i;return r[2]==="@"?(a=og(r[1]),i="mailto:"+a):(a=og(r[1]),i=a),{type:"link",raw:r[0],text:a,href:i,tokens:[{type:"text",raw:a,text:a}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let a,i;if(r[2]==="@")a=og(r[0]),i="mailto:"+a;else{let d;do d=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(d!==r[0]);a=og(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:a,href:i,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(e){const r=this.rules.inline.text.exec(e);if(r){let a;return this.lexer.state.inRawBlock?a=r[0]:a=og(r[0]),{type:"text",raw:r[0],text:a}}}}const Ms={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:BH,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Ms._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;Ms._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;Ms.def=Vi(Ms.def).replace("label",Ms._label).replace("title",Ms._title).getRegex();Ms.bullet=/(?:[*+-]|\d{1,9}[.)])/;Ms.listItemStart=Vi(/^( *)(bull) */).replace("bull",Ms.bullet).getRegex();Ms.list=Vi(Ms.list).replace(/bull/g,Ms.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ms.def.source+")").getRegex();Ms._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";Ms._comment=/|$)/;Ms.html=Vi(Ms.html,"i").replace("comment",Ms._comment).replace("tag",Ms._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();Ms.lheading=Vi(Ms.lheading).replace(/bull/g,Ms.bullet).getRegex();Ms.paragraph=Vi(Ms._paragraph).replace("hr",Ms.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ms._tag).getRegex();Ms.blockquote=Vi(Ms.blockquote).replace("paragraph",Ms.paragraph).getRegex();Ms.normal={...Ms};Ms.gfm={...Ms.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};Ms.gfm.table=Vi(Ms.gfm.table).replace("hr",Ms.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ms._tag).getRegex();Ms.gfm.paragraph=Vi(Ms._paragraph).replace("hr",Ms.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ms.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ms._tag).getRegex();Ms.pedantic={...Ms.normal,html:Vi(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ms._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:BH,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Vi(Ms.normal._paragraph).replace("hr",Ms.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Ms.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const zo={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:BH,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:BH,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";zo.punctuation=Vi(zo.punctuation,"u").replace(/punctuation/g,zo._punctuation).getRegex();zo.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;zo.anyPunctuation=/\\[punct]/g;zo._escapes=/\\([punct])/g;zo._comment=Vi(Ms._comment).replace("(?:-->|$)","-->").getRegex();zo.emStrong.lDelim=Vi(zo.emStrong.lDelim,"u").replace(/punct/g,zo._punctuation).getRegex();zo.emStrong.rDelimAst=Vi(zo.emStrong.rDelimAst,"gu").replace(/punct/g,zo._punctuation).getRegex();zo.emStrong.rDelimUnd=Vi(zo.emStrong.rDelimUnd,"gu").replace(/punct/g,zo._punctuation).getRegex();zo.anyPunctuation=Vi(zo.anyPunctuation,"gu").replace(/punct/g,zo._punctuation).getRegex();zo._escapes=Vi(zo._escapes,"gu").replace(/punct/g,zo._punctuation).getRegex();zo._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;zo._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;zo.autolink=Vi(zo.autolink).replace("scheme",zo._scheme).replace("email",zo._email).getRegex();zo._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;zo.tag=Vi(zo.tag).replace("comment",zo._comment).replace("attribute",zo._attribute).getRegex();zo._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;zo._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;zo._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;zo.link=Vi(zo.link).replace("label",zo._label).replace("href",zo._href).replace("title",zo._title).getRegex();zo.reflink=Vi(zo.reflink).replace("label",zo._label).replace("ref",Ms._label).getRegex();zo.nolink=Vi(zo.nolink).replace("ref",Ms._label).getRegex();zo.reflinkSearch=Vi(zo.reflinkSearch,"g").replace("reflink",zo.reflink).replace("nolink",zo.nolink).getRegex();zo.normal={...zo};zo.pedantic={...zo.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Vi(/^!?\[(label)\]\((.*?)\)/).replace("label",zo._label).getRegex(),reflink:Vi(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",zo._label).getRegex()};zo.gfm={...zo.normal,escape:Vi(zo.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\u+" ".repeat(p.length));let a,i,d,f;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(m=>(a=m.call({lexer:this},e,r))?(e=e.substring(a.raw.length),r.push(a),!0):!1))){if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length),a.raw.length===1&&r.length>0?r[r.length-1].raw+=` +`:r.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length),i=r[r.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` +`+a.raw,i.text+=` +`+a.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(a);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.list(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length),i=r[r.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=` +`+a.raw,i.text+=` +`+a.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title});continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),r.push(a);continue}if(d=e,this.options.extensions&&this.options.extensions.startBlock){let m=1/0;const u=e.slice(1);let p;this.options.extensions.startBlock.forEach(v=>{p=v.call({lexer:this},u),typeof p=="number"&&p>=0&&(m=Math.min(m,p))}),m<1/0&&m>=0&&(d=e.substring(0,m+1))}if(this.state.top&&(a=this.tokenizer.paragraph(d))){i=r[r.length-1],f&&i.type==="paragraph"?(i.raw+=` +`+a.raw,i.text+=` +`+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(a),f=d.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length),i=r[r.length-1],i&&i.type==="text"?(i.raw+=` +`+a.raw,i.text+=` +`+a.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):r.push(a);continue}if(e){const m="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){let a,i,d,f=e,m,u,p;if(this.tokens.links){const v=Object.keys(this.tokens.links);if(v.length>0)for(;(m=this.tokenizer.rules.inline.reflinkSearch.exec(f))!=null;)v.includes(m[0].slice(m[0].lastIndexOf("[")+1,-1))&&(f=f.slice(0,m.index)+"["+"a".repeat(m[0].length-2)+"]"+f.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(m=this.tokenizer.rules.inline.blockSkip.exec(f))!=null;)f=f.slice(0,m.index)+"["+"a".repeat(m[0].length-2)+"]"+f.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(m=this.tokenizer.rules.inline.anyPunctuation.exec(f))!=null;)f=f.slice(0,m.index)+"++"+f.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(u||(p=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(v=>(a=v.call({lexer:this},e,r))?(e=e.substring(a.raw.length),r.push(a),!0):!1))){if(a=this.tokenizer.escape(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.tag(e)){e=e.substring(a.raw.length),i=r[r.length-1],i&&a.type==="text"&&i.type==="text"?(i.raw+=a.raw,i.text+=a.text):r.push(a);continue}if(a=this.tokenizer.link(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(a.raw.length),i=r[r.length-1],i&&a.type==="text"&&i.type==="text"?(i.raw+=a.raw,i.text+=a.text):r.push(a);continue}if(a=this.tokenizer.emStrong(e,f,p)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.codespan(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.br(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.del(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.autolink(e)){e=e.substring(a.raw.length),r.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(e))){e=e.substring(a.raw.length),r.push(a);continue}if(d=e,this.options.extensions&&this.options.extensions.startInline){let v=1/0;const y=e.slice(1);let b;this.options.extensions.startInline.forEach(x=>{b=x.call({lexer:this},y),typeof b=="number"&&b>=0&&(v=Math.min(v,b))}),v<1/0&&v>=0&&(d=e.substring(0,v+1))}if(a=this.tokenizer.inlineText(d)){e=e.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(p=a.raw.slice(-1)),u=!0,i=r[r.length-1],i&&i.type==="text"?(i.raw+=a.raw,i.text+=a.text):r.push(a);continue}if(e){const v="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(v);break}else throw new Error(v)}}return r}}class FH{constructor(e){Il(this,"options");this.options=e||XC}code(e,r,a){var d;const i=(d=(r||"").match(/^\S*/))==null?void 0:d[0];return e=e.replace(/\n$/,"")+` +`,i?'

'+(a?e:og(e,!0))+`
+`:"
"+(a?e:og(e,!0))+`
+`}blockquote(e){return`
+${e}
+`}html(e,r){return e}heading(e,r,a){return`${e} +`}hr(){return`
+`}list(e,r,a){const i=r?"ol":"ul",d=r&&a!==1?' start="'+a+'"':"";return"<"+i+d+`> +`+e+" +`}listitem(e,r,a){return`
  • ${e}
  • +`}checkbox(e){return"'}paragraph(e){return`

    ${e}

    +`}table(e,r){return r&&(r=`${r}`),` + +`+e+` +`+r+`
    +`}tablerow(e){return` +${e} +`}tablecell(e,r){const a=r.header?"th":"td";return(r.align?`<${a} align="${r.align}">`:`<${a}>`)+e+` +`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
    "}del(e){return`${e}`}link(e,r,a){const i=Jhe(e);if(i===null)return a;e=i;let d='",d}image(e,r,a){const i=Jhe(e);if(i===null)return a;e=i;let d=`${a}0&&b.tokens[0].type==="paragraph"?(b.tokens[0].text=w+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&b.tokens[0].tokens[0].type==="text"&&(b.tokens[0].tokens[0].text=w+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:w+" "}):C+=w+" "}C+=this.parse(b.tokens,p),v+=this.renderer.listitem(C,k,!!x)}a+=this.renderer.list(v,m,u);continue}case"html":{const f=d;a+=this.renderer.html(f.text,f.block);continue}case"paragraph":{const f=d;a+=this.renderer.paragraph(this.parseInline(f.tokens));continue}case"text":{let f=d,m=f.tokens?this.parseInline(f.tokens):f.text;for(;i+1{a=a.concat(this.walkTokens(m[u],r))}):m.tokens&&(a=a.concat(this.walkTokens(m.tokens,r)))}}return a}use(...e){const r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(a=>{const i={...a};if(i.async=this.defaults.async||i.async||!1,a.extensions&&(a.extensions.forEach(d=>{if(!d.name)throw new Error("extension name required");if("renderer"in d){const f=r.renderers[d.name];f?r.renderers[d.name]=function(...m){let u=d.renderer.apply(this,m);return u===!1&&(u=f.apply(this,m)),u}:r.renderers[d.name]=d.renderer}if("tokenizer"in d){if(!d.level||d.level!=="block"&&d.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const f=r[d.level];f?f.unshift(d.tokenizer):r[d.level]=[d.tokenizer],d.start&&(d.level==="block"?r.startBlock?r.startBlock.push(d.start):r.startBlock=[d.start]:d.level==="inline"&&(r.startInline?r.startInline.push(d.start):r.startInline=[d.start]))}"childTokens"in d&&d.childTokens&&(r.childTokens[d.name]=d.childTokens)}),i.extensions=r),a.renderer){const d=this.defaults.renderer||new FH(this.defaults);for(const f in a.renderer){const m=a.renderer[f],u=f,p=d[u];d[u]=(...v)=>{let y=m.apply(d,v);return y===!1&&(y=p.apply(d,v)),y||""}}i.renderer=d}if(a.tokenizer){const d=this.defaults.tokenizer||new QH(this.defaults);for(const f in a.tokenizer){const m=a.tokenizer[f],u=f,p=d[u];d[u]=(...v)=>{let y=m.apply(d,v);return y===!1&&(y=p.apply(d,v)),y}}i.tokenizer=d}if(a.hooks){const d=this.defaults.hooks||new FD;for(const f in a.hooks){const m=a.hooks[f],u=f,p=d[u];FD.passThroughHooks.has(f)?d[u]=v=>{if(this.defaults.async)return Promise.resolve(m.call(d,v)).then(b=>p.call(d,b));const y=m.call(d,v);return p.call(d,y)}:d[u]=(...v)=>{let y=m.apply(d,v);return y===!1&&(y=p.apply(d,v)),y}}i.hooks=d}if(a.walkTokens){const d=this.defaults.walkTokens,f=a.walkTokens;i.walkTokens=function(m){let u=[];return u.push(f.call(this,m)),d&&(u=u.concat(d.call(this,m))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return G1.lex(e,r??this.defaults)}parser(e,r){return j1.parse(e,r??this.defaults)}}A$=new WeakSet,Use=function(e,r){return(a,i)=>{const d={...i},f={...this.defaults,...d};this.defaults.async===!0&&d.async===!1&&(f.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),f.async=!0);const m=Iz(this,YH,Lbe).call(this,!!f.silent,!!f.async);if(typeof a>"u"||a===null)return m(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return m(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));if(f.hooks&&(f.hooks.options=f),f.async)return Promise.resolve(f.hooks?f.hooks.preprocess(a):a).then(u=>e(u,f)).then(u=>f.walkTokens?Promise.all(this.walkTokens(u,f.walkTokens)).then(()=>u):u).then(u=>r(u,f)).then(u=>f.hooks?f.hooks.postprocess(u):u).catch(m);try{f.hooks&&(a=f.hooks.preprocess(a));const u=e(a,f);f.walkTokens&&this.walkTokens(u,f.walkTokens);let p=r(u,f);return f.hooks&&(p=f.hooks.postprocess(p)),p}catch(u){return m(u)}}},YH=new WeakSet,Lbe=function(e,r){return a=>{if(a.message+=` +Please report this to https://github.com/markedjs/marked.`,e){const i="

    An error occurred:

    "+og(a.message+"",!0)+"
    ";return r?Promise.resolve(i):i}if(r)return Promise.reject(a);throw a}};const NC=new E7e;function qi(t,e){return NC.parse(t,e)}qi.options=qi.setOptions=function(t){return NC.setOptions(t),qi.defaults=NC.defaults,Rbe(qi.defaults),qi};qi.getDefaults=dle;qi.defaults=XC;qi.use=function(...t){return NC.use(...t),qi.defaults=NC.defaults,Rbe(qi.defaults),qi};qi.walkTokens=function(t,e){return NC.walkTokens(t,e)};qi.parseInline=NC.parseInline;qi.Parser=j1;qi.parser=j1.parse;qi.Renderer=FH;qi.TextRenderer=hle;qi.Lexer=G1;qi.lexer=G1.lex;qi.Tokenizer=QH;qi.Hooks=FD;qi.parse=qi;qi.options;qi.setOptions;qi.use;qi.walkTokens;qi.parseInline;j1.parse;G1.lex;class VH{static create(e,r,a,i,d){let f=i+(i<<8)+e+(r<<4)|0;return new VH(e,r,a,f,d,[],[])}constructor(e,r,a,i,d,f,m){this.type=e,this.value=r,this.from=a,this.hash=i,this.end=d,this.children=f,this.positions=m,this.hashProp=[[ua.contextHash,i]]}addChild(e,r){e.prop(ua.contextHash)!=this.hash&&(e=new Fi(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(r)}toTree(e,r=this.end){let a=this.children.length-1;return a>=0&&(r=Math.max(r,this.positions[a]+this.children[a].length+this.from)),new Fi(e.types[this.type],this.children,this.positions,r-this.from).balance({makeTree:(i,d,f)=>new Fi(Fu.none,i,d,f,this.hashProp)})}}var bo;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.URL=33]="URL",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel"})(bo||(bo={}));class _7e{constructor(e,r){this.start=e,this.content=r,this.marks=[],this.parsers=[]}}class R7e{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return VD(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,r=0,a=0){for(let i=r;i=e.stack[r.depth+1].value+r.baseIndent)return!0;if(r.indent>=r.baseIndent+4)return!1;let a=(t.type==bo.OrderedList?ple:gle)(r,e,!1);return a>0&&(t.type!=bo.BulletList||mle(r,e,!1)<0)&&r.text.charCodeAt(r.pos+a-1)==t.value}const Ibe={[bo.Blockquote](t,e,r){return r.next!=62?!1:(r.markers.push(Ei(bo.QuoteMark,e.lineStart+r.pos,e.lineStart+r.pos+1)),r.moveBase(r.pos+(Ip(r.text.charCodeAt(r.pos+1))?2:1)),t.end=e.lineStart+r.text.length,!0)},[bo.ListItem](t,e,r){return r.indent-1?!1:(r.moveBaseColumn(r.baseIndent+t.value),!0)},[bo.OrderedList]:nme,[bo.BulletList]:nme,[bo.Document](){return!0}};function Ip(t){return t==32||t==9||t==10||t==13}function VD(t,e=0){for(;er&&Ip(t.charCodeAt(e-1));)e--;return e}function Nbe(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e-1&&t.depth==e.stack.length||a<3?-1:1}function Qbe(t,e){for(let r=t.stack.length-1;r>=0;r--)if(t.stack[r].type==e)return!0;return!1}function gle(t,e,r){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||Ip(t.text.charCodeAt(t.pos+1)))&&(!r||Qbe(e,bo.BulletList)||t.skipSpace(t.pos+2)=48&&i<=57;){a++;if(a==t.text.length)return-1;i=t.text.charCodeAt(a)}return a==t.pos||a>t.pos+9||i!=46&&i!=41||at.pos+1||t.next!=49)?-1:a+1-t.pos}function Fbe(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e6?-1:r}function Vbe(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e/,Zbe=/\?>/,Yse=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(a);if(d)return t.append(Ei(bo.Comment,r,r+1+d[0].length));let f=/^\?[^]*?\?>/.exec(a);if(f)return t.append(Ei(bo.ProcessingInstruction,r,r+1+f[0].length));let m=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(a);return m?t.append(Ei(bo.HTMLTag,r,r+1+m[0].length)):-1},Emphasis(t,e,r){if(e!=95&&e!=42)return-1;let a=r+1;for(;t.char(a)==e;)a++;let i=t.slice(r-1,r),d=t.slice(a,a+1),f=T$.test(i),m=T$.test(d),u=/\s|^$/.test(i),p=/\s|^$/.test(d),v=!p&&(!m||u||f),y=!u&&(!f||p||m),b=v&&(e==42||!y||f),x=y&&(e==42||!v||m);return t.append(new $v(e==95?Gbe:jbe,r,a,(b?1:0)|(x?2:0)))},HardBreak(t,e,r){if(e==92&&t.char(r+1)==10)return t.append(Ei(bo.HardBreak,r,r+2));if(e==32){let a=r+1;for(;t.char(a)==32;)a++;if(t.char(a)==10&&a>=r+2)return t.append(Ei(bo.HardBreak,r,a+1))}return-1},Link(t,e,r){return e==91?t.append(new $v(bD,r,r+1,1)):-1},Image(t,e,r){return e==33&&t.char(r+1)==91?t.append(new $v(sme,r,r+2,1)):-1},LinkEnd(t,e,r){if(e!=93)return-1;for(let a=t.parts.length-1;a>=0;a--){let i=t.parts[a];if(i instanceof $v&&(i.type==bD||i.type==sme)){if(!i.side||t.skipSpace(i.to)==r&&!/[(\[]/.test(t.slice(r+1,r+2)))return t.parts[a]=null,-1;let d=t.takeContent(a),f=t.parts[a]=Q7e(t,d,i.type==bD?bo.Link:bo.Image,i.from,r+1);if(i.type==bD)for(let m=0;me?Ei(bo.URL,e+r,d+r):d==t.length?null:!1}}function Kbe(t,e,r){let a=t.charCodeAt(e);if(a!=39&&a!=34&&a!=40)return!1;let i=a==40?41:a;for(let d=e+1,f=!1;d=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,r){return this.text.slice(e-this.offset,r-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,r,a,i,d){return this.append(new $v(e,r,a,(i?1:0)|(d?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let a=e;a=e;u--){let C=this.parts[u];if(C instanceof $v&&C.side&1&&C.type==i.type&&!(d&&(i.side&1||C.side&2)&&(C.to-C.from+f)%3==0&&((C.to-C.from)%3||f%3))){m=C;break}}if(!m)continue;let p=i.type.resolve,v=[],y=m.from,b=i.to;if(d){let C=Math.min(2,m.to-m.from,f);y=m.to-C,b=i.from+C,p=C==1?"Emphasis":"StrongEmphasis"}m.type.mark&&v.push(this.elt(m.type.mark,y,m.to));for(let C=u+1;C=0;r--){let a=this.parts[r];if(a instanceof $v&&a.type==e)return r}return null}takeContent(e){let r=this.resolveMarkers(e);return this.parts.length=e,r}skipSpace(e){return VD(this.text,e-this.offset)+this.offset}elt(e,r,a,i){return typeof e=="string"?Ei(this.parser.getNodeType(e),r,a,i):new Xbe(e,r)}}function Gse(t,e){if(!e.length)return t;if(!t.length)return e;let r=t.slice(),a=0;for(let i of e){for(;a(e?e-1:0))return!1;if(this.fragmentEnd<0){let d=this.fragment.to;for(;d>0&&this.input.read(d-1,d)!=` +`;)d--;this.fragmentEnd=d?d-1:0}let a=this.cursor;a||(a=this.cursor=this.fragment.tree.cursor(),a.firstChild());let i=e+this.fragment.offset;for(;a.to<=i;)if(!a.parent())return!1;for(;;){if(a.from>=i)return this.fragment.from<=r;if(!a.childAfter(i))return!1}}matches(e){let r=this.cursor.tree;return r&&r.prop(ua.contextHash)==e}takeNodes(e){let r=this.cursor,a=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),d=e.absoluteLineStart,f=d,m=e.block.children.length,u=f,p=m;for(;;){if(r.to-a>i){if(r.type.isAnonymous&&r.firstChild())continue;break}let v=eOe(r.from-a,e.ranges);if(r.to-a<=e.ranges[e.rangeI].to)e.addNode(r.tree,v);else{let y=new Fi(e.parser.nodeSet.types[bo.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(y,r.tree),e.addNode(y,v)}if(r.type.is("Block")&&(V7e.indexOf(r.type.id)<0?(f=r.to-a,m=e.block.children.length):(f=u,m=p,u=r.to-a,p=e.block.children.length)),!r.nextSibling())break}for(;e.block.children.length>m;)e.block.children.pop(),e.block.positions.pop();return f-d}}function eOe(t,e){let r=t;for(let a=1;aOZ[t]),Object.keys(OZ).map(t=>L7e[t]),Object.keys(OZ),I7e,Ibe,Object.keys(roe).map(t=>roe[t]),Object.keys(roe),[]);function U7e(t,e,r){let a=[];for(let i=t.firstChild,d=e;;i=i.nextSibling){let f=i?i.from:r;if(f>d&&a.push({from:d,to:f}),!i)break;d=i.to}return a}function W7e(t){let{codeParser:e,htmlParser:r}=t;return{wrap:jve((i,d)=>{let f=i.type.id;if(e&&(f==bo.CodeBlock||f==bo.FencedCode)){let m="";if(f==bo.FencedCode){let p=i.node.getChild(bo.CodeInfo);p&&(m=d.read(p.from,p.to))}let u=e(m);if(u)return{parser:u,overlay:p=>p.type.id==bo.CodeText}}else if(r&&(f==bo.HTMLBlock||f==bo.HTMLTag))return{parser:r,overlay:U7e(i.node,i.from,i.to)};return null})}}const Y7e={resolve:"Strikethrough",mark:"StrikethroughMark"},X7e={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Qt.strikethrough}},{name:"StrikethroughMark",style:Qt.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,r){if(e!=126||t.char(r+1)!=126||t.char(r+2)==126)return-1;let a=t.slice(r-1,r),i=t.slice(r+2,r+3),d=/\s|^$/.test(a),f=/\s|^$/.test(i),m=T$.test(a),u=T$.test(i);return t.addDelimiter(Y7e,r,r+2,!f&&(!u||d||m),!d&&(!m||f||u))},after:"Emphasis"}]};function zD(t,e,r=0,a,i=0){let d=0,f=!0,m=-1,u=-1,p=!1,v=()=>{a.push(t.elt("TableCell",i+m,i+u,t.parser.parseInline(e.slice(m,u),i+m)))};for(let y=r;y-1)&&d++,f=!1,a&&(m>-1&&v(),a.push(t.elt("TableDelimiter",y+i,y+i+1))),m=u=-1):(p||b!=32&&b!=9)&&(m<0&&(m=y),u=y+1),p=!p&&b==92}return m>-1&&(d++,a&&v()),d}function ime(t,e){for(let r=e;ri instanceof lme)||!ime(e.text,e.basePos))return!1;let a=t.scanLine(t.absoluteLineEnd+1).text;return tOe.test(a)&&zD(t,e.text,e.basePos)==zD(t,a,e.basePos)},before:"SetextHeading"}]};class j7e{nextLine(){return!1}finish(e,r){return e.addLeafElement(r,e.elt("Task",r.start,r.start+r.content.length,[e.elt("TaskMarker",r.start,r.start+3),...e.parser.parseInline(r.content.slice(3),r.start+3)])),!0}}const q7e={defineNodes:[{name:"Task",block:!0,style:Qt.list},{name:"TaskMarker",style:Qt.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new j7e:null},after:"SetextHeading"}]},cme=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,ume=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,K7e=/[\w-]+\.[\w-]+($|\/)/,fme=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,dme=/\/[a-zA-Z\d@.]+/gy;function hme(t,e,r,a){let i=0;for(let d=e;d-1)return-1;let a=e+r[0].length;for(;;){let i=t[a-1],d;if(/[?!.,:*_~]/.test(i)||i==")"&&hme(t,e,a,")")>hme(t,e,a,"("))a--;else if(i==";"&&(d=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,a))))a=e+d.index;else break}return a}function mme(t,e){fme.lastIndex=e;let r=fme.exec(t);if(!r)return-1;let a=r[0][r[0].length-1];return a=="_"||a=="-"?-1:e+r[0].length-(a=="."?1:0)}const eRe={parseInline:[{name:"Autolink",parse(t,e,r){let a=r-t.offset;cme.lastIndex=a;let i=cme.exec(t.text),d=-1;return!i||(i[1]||i[2]?d=J7e(t.text,a+i[0].length):i[3]?d=mme(t.text,a):(d=mme(t.text,a+i[0].length),d>-1&&i[0]=="xmpp:"&&(dme.lastIndex=d,i=dme.exec(t.text),i&&(d=i.index+i[0].length))),d<0)?-1:(t.addElement(t.elt("URL",r,d+t.offset)),d+t.offset)}}]},tRe=[G7e,q7e,X7e,eRe];function nOe(t,e,r){return(a,i,d)=>{if(i!=t||a.char(d+1)==t)return-1;let f=[a.elt(r,d,d+1)];for(let m=d+1;m=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function uOe(t){return t==9||t==10||t==13||t==32}let yme=null,bme=null,Ome=0;function qse(t,e){let r=t.pos+e;if(Ome==r&&bme==t)return yme;let a=t.peek(e);for(;uOe(a);)a=t.peek(++e);let i="";for(;ARe(a);)i+=String.fromCharCode(a),a=t.peek(++e);return bme=t,Ome=r,yme=i?i.toLowerCase():a==PRe||a==MRe?void 0:null}const fOe=60,ZH=62,vle=47,PRe=63,MRe=33,ERe=45;function xme(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let r=0;r-1?new xme(qse(a,1)||"",t):t},reduce(t,e){return e==iOe&&t?t.parent:t},reuse(t,e,r,a){let i=e.type.id;return i==zH||i==xRe?new xme(qse(a,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),DRe=new hh((t,e)=>{if(t.next!=fOe){t.next<0&&e.context&&t.acceptToken(ooe);return}t.advance();let r=t.next==vle;r&&t.advance();let a=qse(t,0);if(a===void 0)return;if(!a)return t.acceptToken(r?gRe:zH);let i=e.context?e.context.name:null;if(r){if(a==i)return t.acceptToken(dRe);if(i&&kRe[i])return t.acceptToken(ooe,-2);if(e.dialectEnabled(wRe))return t.acceptToken(hRe);for(let d=e.context;d;d=d.parent)if(d.name==a)return;t.acceptToken(mRe)}else{if(a=="script")return t.acceptToken(rOe);if(a=="style")return t.acceptToken(oOe);if(a=="textarea")return t.acceptToken(sOe);if(CRe.hasOwnProperty(a))return t.acceptToken(aOe);i&&vme[i]&&vme[i][a]?t.acceptToken(ooe,-1):t.acceptToken(zH)}},{contextual:!0}),$Re=new hh(t=>{for(let e=0,r=0;;r++){if(t.next<0){r&&t.acceptToken(pme);break}if(t.next==ERe)e++;else if(t.next==ZH&&e>=2){r>=3&&t.acceptToken(pme,-2);break}else e=0;t.advance()}});function LRe(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const IRe=new hh((t,e)=>{if(t.next==vle&&t.peek(1)==ZH){let r=e.dialectEnabled(TRe)||LRe(e.context);t.acceptToken(r?fRe:gme,2)}else t.next==ZH&&t.acceptToken(gme,1)});function yle(t,e,r){let a=2+t.length;return new hh(i=>{for(let d=0,f=0,m=0;;m++){if(i.next<0){m&&i.acceptToken(e);break}if(d==0&&i.next==fOe||d==1&&i.next==vle||d>=2&&df?i.acceptToken(e,-f):i.acceptToken(r,-(f-2));break}else if((i.next==10||i.next==13)&&m){i.acceptToken(e,1);break}else d=f=0;i.advance()}})}const NRe=yle("script",sRe,aRe),BRe=yle("style",iRe,lRe),QRe=yle("textarea",cRe,uRe),FRe=RS({"Text RawText":Qt.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Qt.angleBracket,TagName:Qt.tagName,"MismatchedCloseTag/TagName":[Qt.tagName,Qt.invalid],AttributeName:Qt.attributeName,"AttributeValue UnquotedAttributeValue":Qt.attributeValue,Is:Qt.definitionOperator,"EntityReference CharacterReference":Qt.character,Comment:Qt.blockComment,ProcessingInst:Qt.processingInstruction,DoctypeDecl:Qt.documentMeta}),VRe=AS.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:RRe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[FRe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let p=m.type.id;if(p==yRe)return soe(m,u,r);if(p==bRe)return soe(m,u,a);if(p==ORe)return soe(m,u,i);if(p==iOe&&d.length){let v=m.node,y=v.firstChild,b=y&&Sme(y,u),x;if(b){for(let k of d)if(k.tag==b&&(!k.attrs||k.attrs(x||(x=dOe(v,u))))){let C=v.lastChild,w=C.type.id==SRe?C.from:v.to;if(w>y.to)return{parser:k.parser,overlay:[{from:y.to,to:w}]}}}}if(f&&p==lOe){let v=m.node,y;if(y=v.firstChild){let b=f[u.read(y.from,y.to)];if(b)for(let x of b){if(x.tagName&&x.tagName!=Sme(v.parent,u))continue;let k=v.lastChild;if(k.type.id==jse){let C=k.from+1,w=k.lastChild,T=k.to-(w&&w.isError?0:1);if(T>C)return{parser:x.parser,overlay:[{from:C,to:T}]}}else if(k.type.id==cOe)return{parser:x.parser,overlay:[{from:k.from,to:k.to}]}}}}return null})}const zRe=96,wme=1,ZRe=97,HRe=98,Tme=2,mOe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],URe=58,WRe=40,gOe=95,YRe=91,WZ=45,XRe=46,GRe=35,jRe=37,qRe=38,KRe=92,JRe=10;function HH(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function eDe(t){return t>=48&&t<=57}const tDe=new hh((t,e)=>{for(let r=!1,a=0,i=0;;i++){let{next:d}=t;if(HH(d)||d==WZ||d==gOe||r&&eDe(d))!r&&(d!=WZ||i>0)&&(r=!0),a===i&&d==WZ&&a++,t.advance();else if(d==KRe&&t.peek(1)!=JRe)t.advance(),t.next>-1&&t.advance(),r=!0;else{r&&t.acceptToken(d==WRe?ZRe:a==2&&e.canShift(Tme)?Tme:HRe);break}}}),nDe=new hh(t=>{if(mOe.includes(t.peek(-1))){let{next:e}=t;(HH(e)||e==gOe||e==GRe||e==XRe||e==YRe||e==URe||e==WZ||e==qRe)&&t.acceptToken(zRe)}}),rDe=new hh(t=>{if(!mOe.includes(t.peek(-1))){let{next:e}=t;if(e==jRe&&(t.advance(),t.acceptToken(wme)),HH(e)){do t.advance();while(HH(t.next));t.acceptToken(wme)}}}),oDe=RS({"AtKeyword import charset namespace keyframes media supports":Qt.definitionKeyword,"from to selector":Qt.keyword,NamespaceName:Qt.namespace,KeyframeName:Qt.labelName,KeyframeRangeName:Qt.operatorKeyword,TagName:Qt.tagName,ClassName:Qt.className,PseudoClassName:Qt.constant(Qt.className),IdName:Qt.labelName,"FeatureName PropertyName":Qt.propertyName,AttributeName:Qt.attributeName,NumberLiteral:Qt.number,KeywordQuery:Qt.keyword,UnaryQueryOp:Qt.operatorKeyword,"CallTag ValueName":Qt.atom,VariableName:Qt.variableName,Callee:Qt.operatorKeyword,Unit:Qt.unit,"UniversalSelector NestingSelector":Qt.definitionOperator,MatchOp:Qt.compareOperator,"ChildOp SiblingOp, LogicOp":Qt.logicOperator,BinOp:Qt.arithmeticOperator,Important:Qt.modifier,Comment:Qt.blockComment,ColorLiteral:Qt.color,"ParenthesizedContent StringLiteral":Qt.string,":":Qt.punctuation,"PseudoOp #":Qt.derefOperator,"; ,":Qt.separator,"( )":Qt.paren,"[ ]":Qt.squareBracket,"{ }":Qt.brace}),sDe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},aDe={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},iDe={__proto__:null,not:128,only:128},lDe=AS.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[nDe,rDe,tDe,1,2,3,4,new CH("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:t=>sDe[t]||-1},{term:56,get:t=>aDe[t]||-1},{term:98,get:t=>iDe[t]||-1}],tokenPrec:1169});let aoe=null;function ioe(){if(!aoe&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],r=new Set;for(let a in t)a!="cssText"&&a!="cssFloat"&&typeof t[a]=="string"&&(/[A-Z]/.test(a)&&(a=a.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),r.has(a)||(e.push(a),r.add(a)));aoe=e.sort().map(a=>({type:"property",label:a}))}return aoe||[]}const Cme=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),kme=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),cDe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),oS=/^(\w[\w-]*|-\w[\w-]*|)$/,uDe=/^-(-[\w-]*)?$/;function fDe(t,e){var r;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let a=(r=t.parent)===null||r===void 0?void 0:r.firstChild;return(a==null?void 0:a.name)!="Callee"?!1:e.sliceString(a.from,a.to)=="var"}const Ame=new eie,dDe=["Declaration"];function hDe(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function pOe(t,e,r){if(e.to-e.from>4096){let a=Ame.get(e);if(a)return a;let i=[],d=new Set,f=e.cursor(vl.IncludeAnonymous);if(f.firstChild())do for(let m of pOe(t,f.node,r))d.has(m.label)||(d.add(m.label),i.push(m));while(f.nextSibling());return Ame.set(e,i),i}else{let a=[],i=new Set;return e.cursor().iterate(d=>{var f;if(r(d)&&d.matchContext(dDe)&&((f=d.node.nextSibling)===null||f===void 0?void 0:f.name)==":"){let m=t.sliceString(d.from,d.to);i.has(m)||(i.add(m),a.push({label:m,type:"variable"}))}}),a}}const mDe=t=>e=>{let{state:r,pos:a}=e,i=rl(r).resolveInner(a,-1),d=i.type.isError&&i.from==i.to-1&&r.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(d||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:ioe(),validFor:oS};if(i.name=="ValueName")return{from:i.from,options:kme,validFor:oS};if(i.name=="PseudoClassName")return{from:i.from,options:Cme,validFor:oS};if(t(i)||(e.explicit||d)&&fDe(i,r.doc))return{from:t(i)||d?i.from:a,options:pOe(r.doc,hDe(i),t),validFor:uDe};if(i.name=="TagName"){for(let{parent:u}=i;u;u=u.parent)if(u.name=="Block")return{from:i.from,options:ioe(),validFor:oS};return{from:i.from,options:cDe,validFor:oS}}if(!e.explicit)return null;let f=i.resolve(a),m=f.childBefore(a);return m&&m.name==":"&&f.name=="PseudoClassSelector"?{from:a,options:Cme,validFor:oS}:m&&m.name==":"&&f.name=="Declaration"||f.name=="ArgList"?{from:a,options:kme,validFor:oS}:f.name=="Block"||f.name=="Styles"?{from:a,options:ioe(),validFor:oS}:null},gDe=mDe(t=>t.name=="VariableName"),UH=CS.define({name:"css",parser:lDe.configure({props:[BC.add({Declaration:BD()}),DS.add({"Block KeyframeList":aie})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function pDe(){return new DC(UH,UH.data.of({autocomplete:gDe}))}const vDe=304,Pme=1,yDe=2,bDe=305,ODe=307,xDe=308,SDe=3,wDe=4,TDe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],vOe=125,CDe=59,Mme=47,kDe=42,ADe=43,PDe=45,MDe=new wie({start:!1,shift(t,e){return e==SDe||e==wDe||e==ODe?t:e==xDe},strict:!1}),EDe=new hh((t,e)=>{let{next:r}=t;(r==vOe||r==-1||e.context)&&t.acceptToken(bDe)},{contextual:!0,fallback:!0}),_De=new hh((t,e)=>{let{next:r}=t,a;TDe.indexOf(r)>-1||r==Mme&&((a=t.peek(1))==Mme||a==kDe)||r!=vOe&&r!=CDe&&r!=-1&&!e.context&&t.acceptToken(vDe)},{contextual:!0}),RDe=new hh((t,e)=>{let{next:r}=t;if((r==ADe||r==PDe)&&(t.advance(),r==t.next)){t.advance();let a=!e.context&&e.canShift(Pme);t.acceptToken(a?Pme:yDe)}},{contextual:!0}),DDe=RS({"get set async static":Qt.modifier,"for while do if else switch try catch finally return throw break continue default case":Qt.controlKeyword,"in of await yield void typeof delete instanceof":Qt.operatorKeyword,"let var const using function class extends":Qt.definitionKeyword,"import export from":Qt.moduleKeyword,"with debugger as new":Qt.keyword,TemplateString:Qt.special(Qt.string),super:Qt.atom,BooleanLiteral:Qt.bool,this:Qt.self,null:Qt.null,Star:Qt.modifier,VariableName:Qt.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Qt.function(Qt.variableName),VariableDefinition:Qt.definition(Qt.variableName),Label:Qt.labelName,PropertyName:Qt.propertyName,PrivatePropertyName:Qt.special(Qt.propertyName),"CallExpression/MemberExpression/PropertyName":Qt.function(Qt.propertyName),"FunctionDeclaration/VariableDefinition":Qt.function(Qt.definition(Qt.variableName)),"ClassDeclaration/VariableDefinition":Qt.definition(Qt.className),PropertyDefinition:Qt.definition(Qt.propertyName),PrivatePropertyDefinition:Qt.definition(Qt.special(Qt.propertyName)),UpdateOp:Qt.updateOperator,"LineComment Hashbang":Qt.lineComment,BlockComment:Qt.blockComment,Number:Qt.number,String:Qt.string,Escape:Qt.escape,ArithOp:Qt.arithmeticOperator,LogicOp:Qt.logicOperator,BitOp:Qt.bitwiseOperator,CompareOp:Qt.compareOperator,RegExp:Qt.regexp,Equals:Qt.definitionOperator,Arrow:Qt.function(Qt.punctuation),": Spread":Qt.punctuation,"( )":Qt.paren,"[ ]":Qt.squareBracket,"{ }":Qt.brace,"InterpolationStart InterpolationEnd":Qt.special(Qt.brace),".":Qt.derefOperator,", ;":Qt.separator,"@":Qt.meta,TypeName:Qt.typeName,TypeDefinition:Qt.definition(Qt.typeName),"type enum interface implements namespace module declare":Qt.definitionKeyword,"abstract global Privacy readonly override":Qt.modifier,"is keyof unique infer":Qt.operatorKeyword,JSXAttributeValue:Qt.attributeValue,JSXText:Qt.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Qt.angleBracket,"JSXIdentifier JSXNameSpacedName":Qt.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Qt.attributeName,"JSXBuiltin/JSXIdentifier":Qt.standard(Qt.tagName)}),$De={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},LDe={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},IDe={__proto__:null,"<":139},NDe=AS.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-ElOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-ExQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AfQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AnQSO,5=sO!AsQSO,5=sO!AxQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BWQWO,5=`O!B`Q,UO,5=aO!BkQSO,5=cO!BpQ`O,5=fO!BxQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!B}QSO'#HRO9{Q,UO'#HTO!CSQSO'#HTOOQQ,5=i,5=iO!CXQSO'#HUO!CjQSO'#CmO!CoQSO,58}O!CyQSO,58}O!FOQUO,58}OOQQ,58},58}O!F`Q(C[O,58}O%[QUO,58}O!HkQUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!IRQSO,5=uO`QUO,5={O`QUO,5=}O!IWQSO,5>PO`QUO,5>RO!I]QSO,5>UO!IbQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!MlQSO,5>fOOQQ,5>h,5>hO!MlQSO,5>hOOQQ,5>j,5>jO!MqQWO'#DYO%[QUO'#JiO!N`QWO'#JiO!N}QWO'#DhO# `QWO'#DhO##qQUO'#DhO##xQSO'#JhO#$QQSO,5:RO#$VQSO'#EnO#$eQSO'#JvO#$mQSO,5;XO#$rQWO'#DhO#%PQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#%WQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%`QSO,5@TO#%eQ!LQO,5:pOOQO-E<_-E<_O#&kQ(C`O,5:{OChQWO,5:oO#&uQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#'SQ(C[O,5:{O#'_Q(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'mQ(C[O,5:{POOO'#IU'#IUP#(RO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#(mQUO'#I[OOQO-EWQ(CjO1G0yO#>_Q(CjO1G0yO#@VQ(CjO1G0yO#CVQ$IUO'#CgO#ETQ$IUO1G1[O#E[Q$IUO'#JfO!,YQSO1G1bO#ElQ(CjO,5?SOOQ(CW-EeQSO1G3kO$.fQUO1G3mO$2jQUO'#HlOOQQ1G3p1G3pO$2wQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$3PQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$7WQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$7]Q$IUO,5:SOOQO,5;Y,5;YO$7gQWO'#I]O$7}QSO,5@SOOQ(CY1G/m1G/mO$8VQWO'#IcO$8aQSO,5@bOOQ(CW1G0s1G0sO# `QWO,5:SOOQO'#I`'#I`O$8iQWO,5:nOOQ(CY,5:n,5:nO#%ZQSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8pQ(C[O1G0gO$8{Q(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$9ZQ(C[O1G0gOOQO1G0Z1G0ZO$9oQ(CjO1G0gPOOO-EvO$:]QSO1G5mO$:eQSO1G5zO$:mQbO1G5{O9TQSO,5>|O$:wQ(CjO1G5xO%[QUO1G5xO$;XQ(C[O1G5xO$;jQSO1G5wO$;jQSO1G5wO9TQSO1G5wO$;rQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$WOOQQ,5>W,5>WO%[QUO'#HmO%(vQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%({QWO1G5oO%)aQ$IUO1G0tO%)kQSO1G0tOOQO1G/n1G/nO%)vQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EjQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9oQ(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%*QQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%*]Q(C[O7+&RO%*kQ(CjO7++dO%[QUO7++dO%*{QSO7++cO%*{QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%+TQSO1G4kOOQO7+%z7+%zO#%ZQSO<xOOQO-E<[-E<[O%2yQbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%3TQSO1G5qOOQ(CY<tQ$IUO1G0yO%>{Q$IUO1G0yO%@sQ$IUO1G0yO%AWQ(CjO<XOOQQ,5>Z,5>ZO& PQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO& UQ$IUO1G5{O>jQSO7+%YOOQ(CY<jQSO<jQSO7+)dO&6mQSO<{AN>{O%[QUOAN?XOOQO<PQSO7+*ZO&>[QSO<= ZO&>dQ`O7+*]OOQ(CW<nQ`O<uQSO<= dOOQQG27kG27kO9eQ(C[OG27kO!*SQUO1G4vO&>}QSO7++uO%MbQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&?VQSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#NWQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&?_QSOANBTOOQQ<fOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#APOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#C^O#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,sO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#C^O!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,sO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,sO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ tOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!jOz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#]O#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$zOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O`0gO'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+sO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#C^Om!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ tO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!jO#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#]O#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,sO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#C^O#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,sO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,sOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$J]Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$KOO(d$ZO~P#,sO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,sO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,sO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O`4`O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,sO!Y$|O~P#,sO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%%QOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O`5TO'v#mO'xTO'{UO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#C^O#Y5lO!W#bi!X#bi~O!W![i!X![i~P#C^O_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$J]O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$KOO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,sOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#C^OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%3jO#h9zO~P%3jOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5uOl9|O~P%5uOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%8QOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%8QOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:lO(k#|O~P%:lOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%yP?^P?^PPP?^PAOP?^P?^P?^PASPPAXPArPFjPPPFnPPPPFnIoPPPIuJpPFnPMOPPPP! ^FnPPPFnPFnP!#lFnP!'Q!(S!(]P!)P!)T!)PPPPPP!,`!(SPP!,|!-vP!0jFnFn!0o!3y!8`!8`!}P#@^#@e#@mPPPP#D{#Gr#NZ#N^#Na$ Y$ ]$ `$ g$ oPP$ u$ y$!q$#p$#t$$YPP$$^$$d$$hP$$k$$o$$r$%h$&P$&h$&l$&o$&r$&x$&{$'P$'TR!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ,T&^Q/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5T1VQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:MDe,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[DDe],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#$De[t]||-1},{term:330,get:t=>LDe[t]||-1},{term:68,get:t=>IDe[t]||-1}],tokenPrec:12868}),yOe=[hc("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),hc("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),hc("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),hc("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),hc("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),hc(`try { + \${} +} catch (\${error}) { + \${} +}`,{label:"try",detail:"/ catch block",type:"keyword"}),hc("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),hc(`if (\${}) { + \${} +} else { + \${} +}`,{label:"if",detail:"/ else block",type:"keyword"}),hc(`class \${name} { + constructor(\${params}) { + \${} + } +}`,{label:"class",detail:"definition",type:"keyword"}),hc('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),hc('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],BDe=yOe.concat([hc("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),hc("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),hc("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Eme=new eie,bOe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function OD(t){return(e,r)=>{let a=e.node.getChild("VariableDefinition");return a&&r(a,t),!0}}const QDe=["FunctionDeclaration"],FDe={FunctionDeclaration:OD("function"),ClassDeclaration:OD("class"),ClassExpression:()=>!0,EnumDeclaration:OD("constant"),TypeAliasDeclaration:OD("type"),NamespaceDeclaration:OD("namespace"),VariableDefinition(t,e){t.matchContext(QDe)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function OOe(t,e){let r=Eme.get(e);if(r)return r;let a=[],i=!0;function d(f,m){let u=t.sliceString(f.from,f.to);a.push({label:u,type:m})}return e.cursor(vl.IncludeAnonymous).iterate(f=>{if(i)i=!1;else if(f.name){let m=FDe[f.name];if(m&&m(f,d)||bOe.has(f.name))return!1}else if(f.to-f.from>8192){for(let m of OOe(t,f.node))a.push(m);return!1}}),Eme.set(e,a),a}const _me=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,xOe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function VDe(t){let e=rl(t.state).resolveInner(t.pos,-1);if(xOe.indexOf(e.name)>-1)return null;let r=e.name=="VariableName"||e.to-e.from<20&&_me.test(t.state.sliceDoc(e.from,e.to));if(!r&&!t.explicit)return null;let a=[];for(let i=e;i;i=i.parent)bOe.has(i.name)&&(a=a.concat(OOe(t.state.doc,i)));return{options:a,from:r?e.from:t.pos,validFor:_me}}const ey=CS.define({name:"javascript",parser:NDe.configure({props:[BC.add({IfStatement:BD({except:/^\s*({|else\b)/}),TryStatement:BD({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Uke,SwitchBody:t=>{let e=t.textAfter,r=/^\s*\}/.test(e),a=/^\s*(case|default)\b/.test(e);return t.baseIndent+(r?0:a?1:2)*t.unit},Block:FZ({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":BD({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),DS.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":aie,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),SOe={test:t=>/^JSX/.test(t.name),facet:nie({commentTokens:{block:{open:"{/*",close:"*/}"}}})},wOe=ey.configure({dialect:"ts"},"typescript"),TOe=ey.configure({dialect:"jsx",props:[rie.add(t=>t.isTop?[SOe]:void 0)]}),COe=ey.configure({dialect:"jsx ts",props:[rie.add(t=>t.isTop?[SOe]:void 0)]},"typescript");let kOe=t=>({label:t,type:"keyword"});const AOe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(kOe),zDe=AOe.concat(["declare","implements","private","protected","public"].map(kOe));function ZDe(t={}){let e=t.jsx?t.typescript?COe:TOe:t.typescript?wOe:ey,r=t.typescript?BDe.concat(zDe):yOe.concat(AOe);return new DC(e,[ey.data.of({autocomplete:pie(xOe,SU(r))}),ey.data.of({autocomplete:VDe}),t.jsx?WDe:[]])}function HDe(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function Rme(t,e,r=t.length){for(let a=e==null?void 0:e.firstChild;a;a=a.nextSibling)if(a.name=="JSXIdentifier"||a.name=="JSXBuiltin"||a.name=="JSXNamespacedName"||a.name=="JSXMemberExpression")return t.sliceString(a.from,Math.min(a.to,r));return""}const UDe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),WDe=Xo.inputHandler.of((t,e,r,a,i)=>{if((UDe?t.composing:t.compositionStarted)||t.state.readOnly||e!=r||a!=">"&&a!="/"||!ey.isActiveAt(t.state,e,-1))return!1;let d=i(),{state:f}=d,m=f.changeByRange(u=>{var p;let{head:v}=u,y=rl(f).resolveInner(v-1,-1),b;if(y.name=="JSXStartTag"&&(y=y.parent),!(f.doc.sliceString(v-1,v)!=a||y.name=="JSXAttributeValue"&&y.to>v)){if(a==">"&&y.name=="JSXFragmentTag")return{range:u,changes:{from:v,insert:""}};if(a=="/"&&y.name=="JSXStartCloseTag"){let x=y.parent,k=x.parent;if(k&&x.from==v-2&&((b=Rme(f.doc,k.firstChild,v))||((p=k.firstChild)===null||p===void 0?void 0:p.name)=="JSXFragmentTag")){let C=`${b}>`;return{range:Tr.cursor(v+C.length,-1),changes:{from:v,insert:C}}}}else if(a==">"){let x=HDe(y);if(x&&!/^\/?>|^<\//.test(f.doc.sliceString(v,v+2))&&(b=Rme(f.doc,x,v)))return{range:u,changes:{from:v,insert:``}}}}return{range:u}});return m.changes.empty?!1:(t.dispatch([d,f.update(m,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),xD=["_blank","_self","_top","_parent"],loe=["ascii","utf-8","utf-16","latin1","latin1"],coe=["get","post","put","delete"],uoe=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],tg=["true","false"],vs={},YDe={a:{attrs:{href:null,ping:null,type:null,media:null,target:xD,hreflang:null}},abbr:vs,address:vs,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:vs,aside:vs,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:vs,base:{attrs:{href:null,target:xD}},bdi:vs,bdo:vs,blockquote:{attrs:{cite:null}},body:vs,br:vs,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:uoe,formmethod:coe,formnovalidate:["novalidate"],formtarget:xD,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:vs,center:vs,cite:vs,code:vs,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:vs,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:vs,div:vs,dl:vs,dt:vs,em:vs,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:vs,figure:vs,footer:vs,form:{attrs:{action:null,name:null,"accept-charset":loe,autocomplete:["on","off"],enctype:uoe,method:coe,novalidate:["novalidate"],target:xD}},h1:vs,h2:vs,h3:vs,h4:vs,h5:vs,h6:vs,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:vs,hgroup:vs,hr:vs,html:{attrs:{manifest:null}},i:vs,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:uoe,formmethod:coe,formnovalidate:["novalidate"],formtarget:xD,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:vs,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:vs,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:vs,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:loe,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:vs,noscript:vs,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:vs,param:{attrs:{name:null,value:null}},pre:vs,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:vs,rt:vs,ruby:vs,samp:vs,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:loe}},section:vs,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:vs,source:{attrs:{src:null,type:null,media:null}},span:vs,strong:vs,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:vs,summary:vs,sup:vs,table:vs,tbody:vs,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:vs,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:vs,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:vs,time:{attrs:{datetime:null}},title:vs,tr:vs,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:vs,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:vs},POe={accesskey:null,class:null,contenteditable:tg,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:tg,autocorrect:tg,autocapitalize:tg,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":tg,"aria-autocomplete":["inline","list","both","none"],"aria-busy":tg,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":tg,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":tg,"aria-hidden":tg,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":tg,"aria-multiselectable":tg,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":tg,"aria-relevant":null,"aria-required":tg,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},MOe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of MOe)POe[t]=null;class C${constructor(e,r){this.tags=Object.assign(Object.assign({},YDe),e),this.globalAttrs=Object.assign(Object.assign({},POe),r),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}C$.default=new C$;function pM(t,e,r=t.length){if(!e)return"";let a=e.firstChild,i=a&&a.getChild("TagName");return i?t.sliceString(i.from,Math.min(i.to,r)):""}function vM(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function EOe(t,e,r){let a=r.tags[pM(t,vM(e))];return(a==null?void 0:a.children)||r.allTags}function ble(t,e){let r=[];for(let a=vM(e);a&&!a.type.isTop;a=vM(a.parent)){let i=pM(t,a);if(i&&a.lastChild.name=="CloseTag")break;i&&r.indexOf(i)<0&&(e.name=="EndTag"||e.from>=a.firstChild.to)&&r.push(i)}return r}const _Oe=/^[:\-\.\w\u00b7-\uffff]*$/;function Dme(t,e,r,a,i){let d=/\s*>/.test(t.sliceDoc(i,i+5))?"":">",f=vM(r,!0);return{from:a,to:i,options:EOe(t.doc,f,e).map(m=>({label:m,type:"type"})).concat(ble(t.doc,r).map((m,u)=>({label:"/"+m,apply:"/"+m+d,type:"type",boost:99-u}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function $me(t,e,r,a){let i=/\s*>/.test(t.sliceDoc(a,a+5))?"":">";return{from:r,to:a,options:ble(t.doc,e).map((d,f)=>({label:d,apply:d+i,type:"type",boost:99-f})),validFor:_Oe}}function XDe(t,e,r,a){let i=[],d=0;for(let f of EOe(t.doc,r,e))i.push({label:"<"+f,type:"type"});for(let f of ble(t.doc,r))i.push({label:"",type:"type",boost:99-d++});return{from:a,to:a,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function GDe(t,e,r,a,i){let d=vM(r),f=d?e.tags[pM(t.doc,d)]:null,m=f&&f.attrs?Object.keys(f.attrs):[],u=f&&f.globalAttrs===!1?m:m.length?m.concat(e.globalAttrNames):e.globalAttrNames;return{from:a,to:i,options:u.map(p=>({label:p,type:"property"})),validFor:_Oe}}function jDe(t,e,r,a,i){var d;let f=(d=r.parent)===null||d===void 0?void 0:d.getChild("AttributeName"),m=[],u;if(f){let p=t.sliceDoc(f.from,f.to),v=e.globalAttrs[p];if(!v){let y=vM(r),b=y?e.tags[pM(t.doc,y)]:null;v=(b==null?void 0:b.attrs)&&b.attrs[p]}if(v){let y=t.sliceDoc(a,i).toLowerCase(),b='"',x='"';/^['"]/.test(y)?(u=y[0]=='"'?/^[^"]*$/:/^[^']*$/,b="",x=t.sliceDoc(i,i+1)==y[0]?"":y[0],y=y.slice(1),a++):u=/^[^\s<>='"]*$/;for(let k of v)m.push({label:k,apply:b+k+x,type:"constant"})}}return{from:a,to:i,options:m,validFor:u}}function ROe(t,e){let{state:r,pos:a}=e,i=rl(r).resolveInner(a,-1),d=i.resolve(a);for(let f=a,m;d==i&&(m=i.childBefore(f));){let u=m.lastChild;if(!u||!u.type.isError||u.fromROe(a,i)}const JDe=ey.parser.configure({top:"SingleExpression"}),DOe=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:wOe.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:TOe.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:COe.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:JDe},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:ey.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:UH.parser}],$Oe=[{name:"style",parser:UH.parser.configure({top:"Styles"})}].concat(MOe.map(t=>({name:t,parser:ey.parser}))),LOe=CS.define({name:"html",parser:VRe.configure({props:[BC.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].lengtht.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),YZ=LOe.configure({wrap:hOe(DOe,$Oe)});function e$e(t={}){let e="",r;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(r=hOe((t.nestedLanguages||[]).concat(DOe),(t.nestedAttributes||[]).concat($Oe)));let a=r?LOe.configure({wrap:r,dialect:e}):e?YZ.configure({dialect:e}):YZ;return new DC(a,[YZ.data.of({autocomplete:KDe(t)}),t.autoCloseTags!==!1?t$e:[],ZDe().support,pDe().support])}const Lme=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),t$e=Xo.inputHandler.of((t,e,r,a,i)=>{if(t.composing||t.state.readOnly||e!=r||a!=">"&&a!="/"||!YZ.isActiveAt(t.state,e,-1))return!1;let d=i(),{state:f}=d,m=f.changeByRange(u=>{var p,v,y;let b=f.doc.sliceString(u.from-1,u.to)==a,{head:x}=u,k=rl(f).resolveInner(x-1,-1),C;if((k.name=="TagName"||k.name=="StartTag")&&(k=k.parent),b&&a==">"&&k.name=="OpenTag"){if(((v=(p=k.parent)===null||p===void 0?void 0:p.lastChild)===null||v===void 0?void 0:v.name)!="CloseTag"&&(C=pM(f.doc,k.parent,x))&&!Lme.has(C)){let w=x+(f.doc.sliceString(x,x+1)===">"?1:0),T=``;return{range:u,changes:{from:x,to:w,insert:T}}}}else if(b&&a=="/"&&k.name=="IncompleteCloseTag"){let w=k.parent;if(k.from==x-2&&((y=w.lastChild)===null||y===void 0?void 0:y.name)!="CloseTag"&&(C=pM(f.doc,w,x))&&!Lme.has(C)){let T=x+(f.doc.sliceString(x,x+1)===">"?1:0),R=`${C}>`;return{range:Tr.cursor(x+R.length,-1),changes:{from:x,to:T,insert:R}}}}return{range:u}});return m.changes.empty?!1:(t.dispatch([d,f.update(m,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),IOe=nie({commentTokens:{block:{open:""}}}),NOe=new ua,BOe=H7e.configure({props:[DS.add(t=>!t.is("Block")||t.is("Document")||Kse(t)!=null?void 0:(e,r)=>({from:r.doc.lineAt(e.from).to,to:e.to})),NOe.add(Kse),BC.add({Document:()=>null}),CC.add({Document:IOe})]});function Kse(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function n$e(t,e){let r=t;for(;;){let a=r.nextSibling,i;if(!a||(i=Kse(a.type))!=null&&i<=e)break;r=a}return r.to}const r$e=n0e.of((t,e,r)=>{for(let a=rl(t).resolveInner(r,-1);a&&!(a.fromr)return{from:r,to:d}}return null});function Ole(t){return new Op(IOe,t,[r$e],"markdown")}const o$e=Ole(BOe),s$e=BOe.configure([tRe,rRe,nRe,oRe,{props:[DS.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),QOe=Ole(s$e);function a$e(t,e){return r=>{if(r&&t){let a=null;if(r=/\S*/.exec(r)[0],typeof t=="function"?a=t(r):a=fH.matchLanguageName(t,r,!0),a instanceof fH)return a.support?a.support.language.parser:c$.getSkippingParser(a.load());if(a)return a.parser}return e?e.parser:null}}class SZ{constructor(e,r,a,i,d,f,m){this.node=e,this.from=r,this.to=a,this.spaceBefore=i,this.spaceAfter=d,this.type=f,this.item=m}blank(e,r=!0){let a=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;a.length0;i--)a+=" ";return a+(r?this.spaceAfter:"")}}marker(e,r){let a=this.node.name=="OrderedList"?String(+VOe(this.item,e)[2]+r):"";return this.spaceBefore+a+this.type+this.spaceAfter}}function FOe(t,e){let r=[];for(let i=t;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&r.push(i);let a=[];for(let i=r.length-1;i>=0;i--){let d=r[i],f,m=e.lineAt(d.from),u=d.from-m.from;if(d.name=="FencedCode")a.push(new SZ(d,u,u,"","","",null));else if(d.name=="Blockquote"&&(f=/^ *>( ?)/.exec(m.text.slice(u))))a.push(new SZ(d,u,u+f[0].length,"",f[1],">",null));else if(d.name=="ListItem"&&d.parent.name=="OrderedList"&&(f=/^( *)\d+([.)])( *)/.exec(m.text.slice(u)))){let p=f[3],v=f[0].length;p.length>=4&&(p=p.slice(0,p.length-4),v-=4),a.push(new SZ(d.parent,u,u+v,f[1],p,f[2],d))}else if(d.name=="ListItem"&&d.parent.name=="BulletList"&&(f=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(m.text.slice(u)))){let p=f[4],v=f[0].length;p.length>4&&(p=p.slice(0,p.length-4),v-=4);let y=f[2];f[3]&&(y+=f[3].replace(/[xX]/," ")),a.push(new SZ(d.parent,u,u+v,f[1],p,y,d))}}return a}function VOe(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function foe(t,e,r,a=0){for(let i=-1,d=t;;){if(d.name=="ListItem"){let m=VOe(d,e),u=+m[2];if(i>=0){if(u!=i+1)return;r.push({from:d.from+m[1].length,to:d.from+m[0].length,insert:String(i+2+a)})}i=u}let f=d.nextSibling;if(!f)break;d=f}}function Jse(t,e){let r=/^[ \t]*/.exec(t)[0].length;if(!r||e.facet(SM)!=" ")return t;let a=Fv(t,4,r),i="";for(let d=a;d>0;)d>=4?(i+=" ",d-=4):(i+=" ",d--);return i+t.slice(r)}const i$e=({state:t,dispatch:e})=>{let r=rl(t),{doc:a}=t,i=null,d=t.changeByRange(f=>{if(!f.empty||!QOe.isActiveAt(t,f.from))return i={range:f};let m=f.from,u=a.lineAt(m),p=FOe(r.resolveInner(m,-1),a);for(;p.length&&p[p.length-1].from>m-u.from;)p.pop();if(!p.length)return i={range:f};let v=p[p.length-1];if(v.to-v.spaceAfter.length>m-u.from)return i={range:f};let y=m>=v.to-v.spaceAfter.length&&!/\S/.test(u.text.slice(v.to));if(v.item&&y)if(v.node.firstChild.to>=m||u.from>0&&!/[^\s>]/.test(a.lineAt(u.from-1).text)){let w=p.length>1?p[p.length-2]:null,T,R="";w&&w.item?(T=u.from+w.from,R=w.marker(a,1)):T=u.from+(w?w.to:0);let M=[{from:T,to:m,insert:R}];return v.node.name=="OrderedList"&&foe(v.item,a,M,-2),w&&w.node.name=="OrderedList"&&foe(w.item,a,M),{range:Tr.cursor(T+R.length),changes:M}}else{let w="";for(let T=0,R=p.length-2;T<=R;T++)w+=p[T].blank(T\s*$/.exec(w.text);if(T&&T.index==v.from){let R=t.changes([{from:w.from+T.index,to:w.to},{from:u.from+v.from,to:u.to}]);return{range:f.map(R),changes:R}}}let b=[];v.node.name=="OrderedList"&&foe(v.item,a,b);let x=v.item&&v.item.from]*/.exec(u.text)[0].length>=v.to)for(let w=0,T=p.length-1;w<=T;w++)k+=w==T&&!x?p[w].marker(a,1):p[w].blank(wu.from&&/\s/.test(u.text.charAt(C-u.from-1));)C--;return k=Jse(k,t),b.push({from:C,to:m,insert:t.lineBreak+k}),{range:Tr.cursor(C+k.length+1),changes:b}});return i?!1:(e(t.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)};function Ime(t){return t.name=="QuoteMark"||t.name=="ListMark"}function l$e(t,e){let r=t.resolveInner(e,-1),a=e;Ime(r)&&(a=r.from,r=r.parent);for(let i;i=r.childBefore(a);)if(Ime(i))a=i.from;else if(i.name=="OrderedList"||i.name=="BulletList")r=i.lastChild,a=r.to;else break;return r}const c$e=({state:t,dispatch:e})=>{let r=rl(t),a=null,i=t.changeByRange(d=>{let f=d.from,{doc:m}=t;if(d.empty&&QOe.isActiveAt(t,d.from)){let u=m.lineAt(f),p=FOe(l$e(r,f),m);if(p.length){let v=p[p.length-1],y=v.to-v.spaceAfter.length+(v.spaceAfter?1:0);if(f-u.from>y&&!/\S/.test(u.text.slice(y,f-u.from)))return{range:Tr.cursor(u.from+y),changes:{from:u.from+y,to:f}};if(f-u.from==y&&(!v.item||u.from<=v.item.from||!/\S/.test(u.text.slice(0,v.to)))){let b=u.from+v.from;if(v.item&&v.node.from[t.$devMode?(so(),Ts(cg,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:Yr(()=>[lt(Nv,{cols:11},{default:Yr(()=>[m$e]),_:1}),lt(Nv,{cols:1,class:"d-flex justify-end align-center py-0"},{default:Yr(()=>[lt(qa,{small:"",class:"mx-1",color:"primary",onClick:d.saveCell},{default:Yr(()=>[gi(" mdi-content-save ")]),_:1},8,["onClick"]),lt(qa,{small:"",class:"mx-1",color:"error",onClick:d.deleteCell},{default:Yr(()=>[gi(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):Nu("",!0),t.$devMode?(so(),Ts(f,{key:1,modelValue:r.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=m=>r.cellData.code=m),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):Nu("",!0),kd("div",{class:"markdown-content",innerHTML:d.compiledMarkdown},null,8,g$e)]),_:1}),t.$devMode?(so(),Ts(BS,{key:0,transition:"scale-transition"},{activator:Yr(({props:m})=>[lt(Nc,rs(m,{block:""}),{default:Yr(()=>[lt(cg,null,{default:Yr(()=>[lt(qa,{color:"primary"},{default:Yr(()=>[gi("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:Yr(()=>[lt(NS,null,{default:Yr(()=>[(so(!0),La(Go,null,Hf(i.items,(m,u)=>(so(),Ts(mg,{key:u},{default:Yr(()=>[lt(Nc,{block:"",onClick:p=>d.createCell(m.title)},{default:Yr(()=>[gi(yp(m.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})):Nu("",!0)],64)}const v$e=ny(h$e,[["render",p$e]]);var y$e={exports:{}};(function(t){(function(){var e=function(n){if(n===null)return"null";if(n===void 0)return"undefined";var s=typeof n;return s==="object"&&(Array.prototype.isPrototypeOf(n)||n.constructor&&n.constructor.name==="Array")?"array":s==="object"&&(String.prototype.isPrototypeOf(n)||n.constructor&&n.constructor.name==="String")?"string":s},r=function(n){return["undefined","boolean","number","string","function","xml","null"].indexOf(n)!==-1},a=function(n,s){var l=Array.prototype.slice.call(n);return l.sort(s)},i=function(n,s){return d(function(l,h){return n.eq(s(l),s(h))})},d=function(n){return{eq:n}},f=d(function(n,s){return n===s}),m=f,u=function(n){return d(function(s,l){if(s.length!==l.length)return!1;for(var h=s.length,O=0;O{var h;return l(n,s.prototype)?!0:((h=n.constructor)===null||h===void 0?void 0:h.name)===s.name},k=n=>{const s=typeof n;return n===null?"null":s==="object"&&Array.isArray(n)?"array":s==="object"&&x(n,String,(l,h)=>h.isPrototypeOf(l))?"string":s},C=n=>s=>k(s)===n,w=n=>s=>typeof s===n,T=n=>s=>n===s,R=(n,s)=>I(n)&&x(n,s,(l,h)=>b(l)===h),M=C("string"),I=C("object"),V=n=>R(n,Object),N=C("array"),F=T(null),z=w("boolean"),U=T(void 0),Q=n=>n==null,B=n=>!Q(n),E=w("function"),W=w("number"),Y=(n,s)=>{if(N(n)){for(let l=0,h=n.length;l{},L=(n,s)=>(...l)=>n(s.apply(null,l)),me=(n,s)=>l=>n(s(l)),ae=n=>()=>n,q=n=>n,fe=(n,s)=>n===s;function ee(n,...s){return(...l)=>{const h=s.concat(l);return n.apply(null,h)}}const be=n=>s=>!n(s),Te=n=>()=>{throw new Error(n)},Be=n=>n(),ge=n=>{n()},ne=ae(!1),pe=ae(!0);class G{constructor(s,l){this.tag=s,this.value=l}static some(s){return new G(!0,s)}static none(){return G.singletonNone}fold(s,l){return this.tag?l(this.value):s()}isSome(){return this.tag}isNone(){return!this.tag}map(s){return this.tag?G.some(s(this.value)):G.none()}bind(s){return this.tag?s(this.value):G.none()}exists(s){return this.tag&&s(this.value)}forall(s){return!this.tag||s(this.value)}filter(s){return!this.tag||s(this.value)?this:G.none()}getOr(s){return this.tag?this.value:s}or(s){return this.tag?this:s}getOrThunk(s){return this.tag?this.value:s()}orThunk(s){return this.tag?this:s()}getOrDie(s){if(this.tag)return this.value;throw new Error(s??"Called getOrDie on None")}static from(s){return B(s)?G.some(s):G.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(s){this.tag&&s(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}G.singletonNone=new G(!1);const Oe=Array.prototype.slice,xe=Array.prototype.indexOf,Le=Array.prototype.push,ke=(n,s)=>xe.call(n,s),$e=(n,s)=>{const l=ke(n,s);return l===-1?G.none():G.some(l)},Ze=(n,s)=>ke(n,s)>-1,De=(n,s)=>{for(let l=0,h=n.length;l{const l=n.length,h=new Array(l);for(let O=0;O{for(let l=0,h=n.length;l{for(let l=n.length-1;l>=0;l--){const h=n[l];s(h,l)}},te=(n,s)=>{const l=[],h=[];for(let O=0,P=n.length;O{const l=[];for(let h=0,O=n.length;h(ye(n,(h,O)=>{l=s(l,h,O)}),l),oe=(n,s,l)=>(re(n,(h,O)=>{l=s(l,h,O)}),l),Se=(n,s,l)=>{for(let h=0,O=n.length;hSe(n,s,ne),Ce=(n,s)=>{for(let l=0,h=n.length;l{const s=[];for(let l=0,h=n.length;lQe(Ie(n,s)),Xe=(n,s)=>{for(let l=0,h=n.length;l{const s=Oe.call(n,0);return s.reverse(),s},pt=(n,s)=>se(n,l=>!Ze(s,l)),Ye=(n,s)=>{const l={};for(let h=0,O=n.length;h{const l=Oe.call(n,0);return l.sort(s),l},et=(n,s)=>s>=0&&set(n,0),ft=n=>et(n,n.length-1),tt=E(Array.from)?Array.from:n=>Oe.call(n),wt=(n,s)=>{for(let l=0;l{const l=[],h=E(s)?O=>De(l,P=>s(P,O)):O=>Ze(l,O);for(let O=0,P=n.length;O{const l=Gt(n);for(let h=0,O=l.length;hEn(n,(l,h)=>({k:h,v:s(l,h)})),En=(n,s)=>{const l={};return Bt(n,(h,O)=>{const P=s(h,O);l[P.k]=P.v}),l},ln=n=>(s,l)=>{n[l]=s},Yn=(n,s,l,h)=>{Bt(n,(O,P)=>{(s(O,P)?l:h)(O,P)})},an=(n,s)=>{const l={},h={};return Yn(n,s,ln(l),ln(h)),{t:l,f:h}},wn=(n,s)=>{const l={};return Yn(n,s,ln(l),ie),l},Xn=(n,s)=>{const l=[];return Bt(n,(h,O)=>{l.push(s(h,O))}),l},Un=n=>Xn(n,q),Sn=(n,s)=>it(n,s)?G.from(n[s]):G.none(),it=(n,s)=>Nt.call(n,s),ut=(n,s)=>it(n,s)&&n[s]!==void 0&&n[s]!==null,xt=(n,s,l=y)=>v(l).eq(n,s),gt=n=>{const s={};return re(n,l=>{s[l]={}}),Gt(s)},Dt=n=>n.length!==void 0,He=Array.isArray,at=n=>{if(He(n))return n;{const s=[];for(let l=0,h=n.length;l{if(!n)return!1;if(l=l||n,Dt(n)){for(let h=0,O=n.length;h{const l=[];return dt(n,(h,O)=>{l.push(s(h,O,n))}),l},Tt=(n,s)=>{const l=[];return dt(n,(h,O)=>{(!s||s(h,O,n))&&l.push(h)}),l},Pt=(n,s)=>{if(n){for(let l=0,h=n.length;l{let O=U(l)?n[0]:l;for(let P=0;P{for(let h=0,O=n.length;hn[n.length-1],Rt=n=>{let s=!1,l;return(...h)=>(s||(s=!0,l=n.apply(null,h)),l)},fn=(n,s,l,h)=>{const O=n.isiOS()&&/ipad/i.test(l)===!0,P=n.isiOS()&&!O,Z=n.isiOS()||n.isAndroid(),J=Z||h("(pointer:coarse)"),he=O||!P&&Z&&h("(min-device-width:768px)"),_e=P||Z&&!he,Ge=s.isSafari()&&n.isiOS()&&/safari/i.test(l)===!1,qe=!_e&&!he&&!Ge;return{isiPad:ae(O),isiPhone:ae(P),isTablet:ae(he),isPhone:ae(_e),isTouch:ae(J),isAndroid:n.isAndroid,isiOS:n.isiOS,isWebView:ae(Ge),isDesktop:ae(qe)}},Hn=(n,s)=>{for(let l=0;l{const l=Hn(n,s);if(!l)return{major:0,minor:0};const h=O=>Number(s.replace(l,"$"+O));return vr(h(1),h(2))},Er=(n,s)=>{const l=String(s).toLowerCase();return n.length===0?zt():nr(n,l)},zt=()=>vr(0,0),vr=(n,s)=>({major:n,minor:s}),Wn={nu:vr,detect:Er,unknown:zt},Br=(n,s)=>wt(s.brands,l=>{const h=l.brand.toLowerCase();return le(n,O=>{var P;return h===((P=O.brand)===null||P===void 0?void 0:P.toLowerCase())}).map(O=>({current:O.name,version:Wn.nu(parseInt(l.version,10),0)}))}),kr=(n,s)=>{const l=String(s).toLowerCase();return le(n,h=>h.search(l))},or=(n,s)=>kr(n,s).map(l=>{const h=Wn.detect(l.versionRegexes,s);return{current:l.name,version:h}}),jr=(n,s)=>kr(n,s).map(l=>{const h=Wn.detect(l.versionRegexes,s);return{current:l.name,version:h}}),_r=(n,s)=>n.substring(s),Rn=(n,s,l)=>s===""||n.length>=s.length&&n.substr(l,l+s.length)===s,xr=(n,s)=>Sr(n,s)?_r(n,s.length):n,sr=(n,s,l=0,h)=>{const O=n.indexOf(s,l);return O!==-1?U(h)?!0:O+s.length<=h:!1},Sr=(n,s)=>Rn(n,s,0),ao=(n,s)=>Rn(n,s,n.length-s.length),Oo=n=>s=>s.replace(n,""),wr=Oo(/^\s+|\s+$/g),Fe=Oo(/^\s+/g),Ee=Oo(/\s+$/g),St=n=>n.length>0,Ct=n=>!St(n),Lt=(n,s)=>s<=0?"":new Array(s+1).join(n),Ft=(n,s=10)=>{const l=parseInt(n,s);return isNaN(l)?G.none():G.some(l)},Ht=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,$t=n=>s=>sr(s,n),Mt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:n=>sr(n,"edge/")&&sr(n,"chrome")&&sr(n,"safari")&&sr(n,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ht],search:n=>sr(n,"chrome")&&!sr(n,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:n=>sr(n,"msie")||sr(n,"trident")},{name:"Opera",versionRegexes:[Ht,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:$t("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:$t("firefox")},{name:"Safari",versionRegexes:[Ht,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:n=>(sr(n,"safari")||sr(n,"mobile/"))&&sr(n,"applewebkit")}],en=[{name:"Windows",search:$t("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:n=>sr(n,"iphone")||sr(n,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:$t("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:$t("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:$t("linux"),versionRegexes:[]},{name:"Solaris",search:$t("sunos"),versionRegexes:[]},{name:"FreeBSD",search:$t("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:$t("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],un={browsers:ae(Mt),oses:ae(en)},Jt="Edge",rn="Chromium",Tn="IE",On="Opera",pn="Firefox",Jn="Safari",Fn=()=>zr({current:void 0,version:Wn.unknown()}),zr=n=>{const s=n.current,l=n.version,h=O=>()=>s===O;return{current:s,version:l,isEdge:h(Jt),isChromium:h(rn),isIE:h(Tn),isOpera:h(On),isFirefox:h(pn),isSafari:h(Jn)}},dr={unknown:Fn,nu:zr,edge:ae(Jt),chromium:ae(rn),ie:ae(Tn),opera:ae(On),firefox:ae(pn),safari:ae(Jn)},Hr="Windows",ar="iOS",ur="Android",qr="Linux",to="macOS",ko="Solaris",Es="FreeBSD",So="ChromeOS",Ko=()=>ds({current:void 0,version:Wn.unknown()}),ds=n=>{const s=n.current,l=n.version,h=O=>()=>s===O;return{current:s,version:l,isWindows:h(Hr),isiOS:h(ar),isAndroid:h(ur),isMacOS:h(to),isLinux:h(qr),isSolaris:h(ko),isFreeBSD:h(Es),isChromeOS:h(So)}},qs={unknown:Ko,nu:ds,windows:ae(Hr),ios:ae(ar),android:ae(ur),linux:ae(qr),macos:ae(to),solaris:ae(ko),freebsd:ae(Es),chromeos:ae(So)},Xs={detect:(n,s,l)=>{const h=un.browsers(),O=un.oses(),P=s.bind(he=>Br(h,he)).orThunk(()=>or(h,n)).fold(dr.unknown,dr.nu),Z=jr(O,n).fold(qs.unknown,qs.nu),J=fn(Z,P,n,l);return{browser:P,os:Z,deviceType:J}}},Wa=n=>window.matchMedia(n).matches;let vc=Rt(()=>Xs.detect(navigator.userAgent,G.from(navigator.userAgentData),Wa));const ii=()=>vc(),tu=navigator.userAgent,Na=ii(),Js=Na.browser,ya=Na.os,ra=Na.deviceType,nu=tu.indexOf("Windows Phone")!==-1,Dr={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Js.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Js.isIE(),windowsPhone:nu,browser:{current:Js.current,version:Js.version,isChromium:Js.isChromium,isEdge:Js.isEdge,isFirefox:Js.isFirefox,isIE:Js.isIE,isOpera:Js.isOpera,isSafari:Js.isSafari},os:{current:ya.current,version:ya.version,isAndroid:ya.isAndroid,isChromeOS:ya.isChromeOS,isFreeBSD:ya.isFreeBSD,isiOS:ya.isiOS,isLinux:ya.isLinux,isMacOS:ya.isMacOS,isSolaris:ya.isSolaris,isWindows:ya.isWindows},deviceType:{isDesktop:ra.isDesktop,isiPad:ra.isiPad,isiPhone:ra.isiPhone,isPhone:ra.isPhone,isTablet:ra.isTablet,isTouch:ra.isTouch,isWebView:ra.isWebView}},yc=/^\s*|\s*$/g,oa=n=>Q(n)?"":(""+n).replace(yc,""),Ri=(n,s)=>s?s==="array"&&He(n)?!0:typeof n===s:n!==void 0,Md=(n,s,l={})=>{const h=M(n)?n.split(s||","):n||[];let O=h.length;for(;O--;)l[h[O]]={};return l},sa=it,bu=(n,...s)=>{for(let l=0;ls.call(h,O,P,l)===!1?!1:(Ed(O,s,l,h),!0)))},fr={trim:oa,isArray:He,is:Ri,toArray:at,makeMap:Md,each:dt,map:mt,grep:Tt,inArray:Pt,hasOwn:sa,extend:bu,walk:Ed,resolve:(n,s=window)=>{const l=n.split(".");for(let h=0,O=l.length;hN(n)?n:n===""?[]:mt(n.split(s||","),oa),_addCacheSuffix:n=>{const s=Dr.cacheSuffix;return s&&(n+=(n.indexOf("?")===-1?"?":"&")+s),n}},Qa=(n,s,l=fe)=>n.exists(h=>l(h,s)),xi=(n,s,l=fe)=>Fa(n,s,l).getOr(n.isNone()&&s.isNone()),za=n=>{const s=[],l=h=>{s.push(h)};for(let h=0;hn.isSome()&&s.isSome()?G.some(l(n.getOrDie(),s.getOrDie())):G.none(),yl=(n,s,l,h)=>n.isSome()&&s.isSome()&&l.isSome()?G.some(h(n.getOrDie(),s.getOrDie(),l.getOrDie())):G.none(),Zo=(n,s)=>n?G.some(s):G.none(),li=typeof window<"u"?window:Function("return this;")(),Ka=(n,s)=>{let l=s??li;for(let h=0;h{const l=n.split(".");return Ka(l,s)},Za=(n,s)=>Gf(n,s),Vu=(n,s)=>{const l=Za(n,s);if(l==null)throw new Error(n+" not available on this browser");return l},zu=Object.getPrototypeOf,_d=n=>Vu("HTMLElement",n),Is=n=>{const s=Gf("ownerDocument.defaultView",n);return I(n)&&(_d(s).prototype.isPrototypeOf(n)||/^HTML\w*Element$/.test(zu(n).constructor.name))},Rd=8,Fc=9,Cl=11,mh=1,lm=3,Vs=n=>n.dom.nodeName.toLowerCase(),Si=n=>n.dom.nodeType,Tf=n=>s=>Si(s)===n,QS=n=>Si(n)===Rd||Vs(n)==="#comment",Ya=n=>kl(n)&&Is(n.dom),kl=Tf(mh),Zi=Tf(lm),PO=Tf(Fc),Np=Tf(Cl),xu=n=>s=>kl(s)&&Vs(s)===n,Zu=(n,s,l)=>{if(M(l)||z(l)||W(l))n.setAttribute(s,l+"");else throw console.error("Invalid call to Attribute.set. Key ",s,":: Value ",l,":: Element ",n),new Error("Attribute value was not simple")},Ra=(n,s,l)=>{Zu(n.dom,s,l)},Su=(n,s)=>{const l=n.dom;Bt(s,(h,O)=>{Zu(l,O,h)})},Al=(n,s)=>{const l=n.dom.getAttribute(s);return l===null?void 0:l},bc=(n,s)=>G.from(Al(n,s)),Cf=(n,s)=>{const l=n.dom;return l&&l.hasAttribute?l.hasAttribute(s):!1},ci=(n,s)=>{n.dom.removeAttribute(s)},kf=n=>{const s=n.dom.attributes;return s==null||s.length===0},Bp=n=>oe(n.dom.attributes,(s,l)=>(s[l.name]=l.value,s),{}),Qp=(n,s)=>{const l=Al(n,s);return l===void 0||l===""?[]:l.split(" ")},ly=(n,s,l)=>{const O=Qp(n,s).concat([l]);return Ra(n,s,O.join(" ")),!0},Xv=(n,s,l)=>{const h=se(Qp(n,s),O=>O!==l);return h.length>0?Ra(n,s,h.join(" ")):ci(n,s),!1},Af=n=>n.dom.classList!==void 0,Fp=n=>Qp(n,"class"),Oc=(n,s)=>ly(n,"class",s),Gv=(n,s)=>Xv(n,"class",s),cy=(n,s)=>Ze(Fp(n),s)?Gv(n,s):Oc(n,s),cm=(n,s)=>{Af(n)?n.dom.classList.add(s):Oc(n,s)},uy=n=>{(Af(n)?n.dom.classList:Fp(n)).length===0&&ci(n,"class")},um=(n,s)=>{Af(n)?n.dom.classList.remove(s):Gv(n,s),uy(n)},MO=(n,s)=>{const l=Af(n)?n.dom.classList.toggle(s):cy(n,s);return uy(n),l},gh=(n,s)=>Af(n)&&n.dom.classList.contains(s),EO=(n,s)=>{const h=(s||document).createElement("div");if(h.innerHTML=n,!h.hasChildNodes()||h.childNodes.length>1){const O="HTML does not have a single root node";throw console.error(O,n),new Error(O)}return fm(h.childNodes[0])},_O=(n,s)=>{const h=(s||document).createElement(n);return fm(h)},RO=(n,s)=>{const h=(s||document).createTextNode(n);return fm(h)},fm=n=>{if(n==null)throw new Error("Node cannot be null or undefined");return{dom:n}},Yt={fromHtml:EO,fromTag:_O,fromText:RO,fromDom:fm,fromPoint:(n,s,l)=>G.from(n.dom.elementFromPoint(s,l)).map(fm)},dm=(n,s)=>{const l=[],h=P=>(l.push(P),s(P));let O=s(n);do O=O.bind(h);while(O.isSome());return l},Hu=(n,s)=>{const l=n.dom;if(l.nodeType!==mh)return!1;{const h=l;if(h.matches!==void 0)return h.matches(s);if(h.msMatchesSelector!==void 0)return h.msMatchesSelector(s);if(h.webkitMatchesSelector!==void 0)return h.webkitMatchesSelector(s);if(h.mozMatchesSelector!==void 0)return h.mozMatchesSelector(s);throw new Error("Browser lacks native selectors")}},jv=n=>n.nodeType!==mh&&n.nodeType!==Fc&&n.nodeType!==Cl||n.childElementCount===0,Vp=(n,s)=>{const l=s===void 0?document:s.dom;return jv(l)?[]:Ie(l.querySelectorAll(n),Yt.fromDom)},FS=(n,s)=>{const l=s===void 0?document:s.dom;return jv(l)?G.none():G.from(l.querySelector(n)).map(Yt.fromDom)},Gs=(n,s)=>n.dom===s.dom,tc=(n,s)=>{const l=n.dom,h=s.dom;return l===h?!1:l.contains(h)},jf=n=>Yt.fromDom(n.dom.ownerDocument),qf=n=>PO(n)?n:jf(n),dy=n=>Yt.fromDom(qf(n).dom.documentElement),vg=n=>Yt.fromDom(qf(n).dom.defaultView),ru=n=>G.from(n.dom.parentNode).map(Yt.fromDom),yg=n=>G.from(n.dom.parentElement).map(Yt.fromDom),hy=(n,s)=>{const l=E(s)?s:ne;let h=n.dom;const O=[];for(;h.parentNode!==null&&h.parentNode!==void 0;){const P=h.parentNode,Z=Yt.fromDom(P);if(O.push(Z),l(Z)===!0)break;h=P}return O},DO=n=>{const s=l=>se(l,h=>!Gs(n,h));return ru(n).map(ol).map(s).getOr([])},Uu=n=>G.from(n.dom.previousSibling).map(Yt.fromDom),zp=n=>G.from(n.dom.nextSibling).map(Yt.fromDom),my=n=>ct(dm(n,Uu)),Vc=n=>dm(n,zp),ol=n=>Ie(n.dom.childNodes,Yt.fromDom),ph=(n,s)=>{const l=n.dom.childNodes;return G.from(l[s]).map(Yt.fromDom)},bg=n=>ph(n,0),xc=n=>ph(n,n.dom.childNodes.length-1),Pl=n=>n.dom.childNodes.length,Wu=n=>n.dom.hasChildNodes(),$O=n=>{const s=n.dom.head;if(s==null)throw new Error("Head is not available yet");return Yt.fromDom(s)},Zp=n=>Np(n)&&B(n.dom.host),gy=E(Element.prototype.attachShadow)&&E(Node.prototype.getRootNode),qv=ae(gy),Pf=gy?n=>Yt.fromDom(n.dom.getRootNode()):qf,LO=n=>Zp(n)?n:$O(qf(n)),GC=n=>Zp(n)?n:Yt.fromDom(qf(n).dom.body),jC=n=>{const s=Pf(n);return Zp(s)?G.some(s):G.none()},VS=n=>Yt.fromDom(n.dom.host),Hp=n=>{if(qv()&&B(n.target)){const s=Yt.fromDom(n.target);if(kl(s)&&Kv(s)&&n.composed&&n.composedPath){const l=n.composedPath();if(l)return yt(l)}}return G.from(n.target)},Kv=n=>B(n.dom.shadowRoot),vh=n=>{const s=Zi(n)?n.dom.parentNode:n.dom;if(s==null||s.ownerDocument===null)return!1;const l=s.ownerDocument;return jC(Yt.fromDom(s)).fold(()=>l.body.contains(s),me(vh,VS))};var Ja=(n,s,l,h,O)=>n(l,h)?G.some(l):E(O)&&O(l)?G.none():s(l,h,O);const ui=(n,s,l)=>{let h=n.dom;const O=E(l)?l:ne;for(;h.parentNode;){h=h.parentNode;const P=Yt.fromDom(h);if(s(P))return G.some(P);if(O(P))break}return G.none()},wu=(n,s,l)=>Ja((O,P)=>P(O),ui,n,s,l),py=(n,s)=>{const l=n.dom;return l.parentNode?IO(Yt.fromDom(l.parentNode),h=>!Gs(n,h)&&s(h)):G.none()},IO=(n,s)=>{const l=O=>s(Yt.fromDom(O));return le(n.dom.childNodes,l).map(Yt.fromDom)},Vl=(n,s)=>{const l=h=>{for(let O=0;Oui(n,h=>Hu(h,s),l),Sc=(n,s)=>FS(s,n),Mf=(n,s,l)=>Ja((O,P)=>Hu(O,P),Og,n,s,l),vy=n=>Mf(n,"[contenteditable]"),jo=(n,s=!1)=>vh(n)?n.dom.isContentEditable:vy(n).fold(ae(s),l=>zc(l)==="true"),zc=n=>n.dom.contentEditable,yh=n=>n.style!==void 0&&E(n.style.getPropertyValue),hm=(n,s,l)=>{if(!M(l))throw console.error("Invalid call to CSS.set. Property ",s,":: Value ",l,":: Element ",n),new Error("CSS value must be a string: "+l);yh(n)&&n.style.setProperty(s,l)},yy=(n,s)=>{yh(n)&&n.style.removeProperty(s)},by=(n,s,l)=>{const h=n.dom;hm(h,s,l)},nc=(n,s)=>{const l=n.dom;Bt(s,(h,O)=>{hm(l,O,h)})},wi=(n,s)=>{const l=n.dom,O=window.getComputedStyle(l).getPropertyValue(s);return O===""&&!vh(n)?ou(l,s):O},ou=(n,s)=>yh(n)?n.style.getPropertyValue(s):"",Hi=(n,s)=>{const l=n.dom,h=ou(l,s);return G.from(h).filter(O=>O.length>0)},Oy=n=>{const s={},l=n.dom;if(yh(l))for(let h=0;h{const l=n.dom;yy(l,s),Qa(bc(n,"style").map(wr),"")&&ci(n,"style")},Ti=n=>n.dom.offsetWidth,Ui=(n,s)=>{ru(n).each(h=>{h.dom.insertBefore(s.dom,n.dom)})},Yu=(n,s)=>{zp(n).fold(()=>{ru(n).each(O=>{Ci(O,s)})},h=>{Ui(h,s)})},mm=(n,s)=>{bg(n).fold(()=>{Ci(n,s)},h=>{n.dom.insertBefore(s.dom,h.dom)})},Ci=(n,s)=>{n.dom.appendChild(s.dom)},xg=(n,s)=>{Ui(n,s),Ci(s,n)},Up=(n,s)=>{re(s,(l,h)=>{const O=h===0?n:s[h-1];Yu(O,l)})},Ta=(n,s)=>{re(s,l=>{Ci(n,l)})},bh=n=>{n.dom.textContent="",re(ol(n),s=>{Ks(s)})},Ks=n=>{const s=n.dom;s.parentNode!==null&&s.parentNode.removeChild(s)},Ef=n=>{const s=ol(n);s.length>0&&Up(n,s),Ks(n)},xy=(n,s)=>{const h=(s||document).createElement("div");return h.innerHTML=n,ol(Yt.fromDom(h))},Wp=n=>Ie(n,Yt.fromDom),hs=n=>n.dom.innerHTML,gm=(n,s)=>{const h=jf(n).dom,O=Yt.fromDom(h.createDocumentFragment()),P=xy(s,h);Ta(O,P),bh(n),Ci(n,O)},e0=n=>{const s=Yt.fromTag("div"),l=Yt.fromDom(n.dom.cloneNode(!0));return Ci(s,l),hs(s)},Yp=(n,s,l,h,O,P,Z)=>({target:n,x:s,y:l,stop:h,prevent:O,kill:P,raw:Z}),zS=n=>{const s=Yt.fromDom(Hp(n).getOr(n.target)),l=()=>n.stopPropagation(),h=()=>n.preventDefault(),O=L(h,l);return Yp(s,n.clientX,n.clientY,l,h,O,n)},ZS=(n,s)=>l=>{n(l)&&s(zS(l))},Sy=(n,s,l,h,O)=>{const P=ZS(l,h);return n.dom.addEventListener(s,P,O),{unbind:ee(t0,n,s,P,O)}},pm=(n,s,l,h)=>Sy(n,s,l,h,!1),t0=(n,s,l,h)=>{n.dom.removeEventListener(s,l,h)},vm=(n,s)=>({left:n,top:s,translate:(h,O)=>vm(n+h,s+O)}),Sg=vm,NO=n=>{const s=n.getBoundingClientRect();return Sg(s.left,s.top)},Xu=(n,s)=>n!==void 0?n:s!==void 0?s:0,BO=n=>{const s=n.dom.ownerDocument,l=s.body,h=s.defaultView,O=s.documentElement;if(l===n.dom)return Sg(l.offsetLeft,l.offsetTop);const P=Xu(h==null?void 0:h.pageYOffset,O.scrollTop),Z=Xu(h==null?void 0:h.pageXOffset,O.scrollLeft),J=Xu(O.clientTop,l.clientTop),he=Xu(O.clientLeft,l.clientLeft);return ym(n).translate(Z-he,P-J)},ym=n=>{const s=n.dom,h=s.ownerDocument.body;return h===s?Sg(h.offsetLeft,h.offsetTop):vh(n)?NO(s):Sg(0,0)},Tu=n=>{const s=n!==void 0?n.dom:document,l=s.body.scrollLeft||s.documentElement.scrollLeft,h=s.body.scrollTop||s.documentElement.scrollTop;return Sg(l,h)},n0=(n,s,l)=>{const O=(l!==void 0?l.dom:document).defaultView;O&&O.scrollTo(n,s)},wy=(n,s)=>{ii().browser.isSafari()&&E(n.dom.scrollIntoViewIfNeeded)?n.dom.scrollIntoViewIfNeeded(!1):n.dom.scrollIntoView(s)},wg=n=>{const s=n===void 0?window:n;return ii().browser.isFirefox()?G.none():G.from(s.visualViewport)},Ty=(n,s,l,h)=>({x:n,y:s,width:l,height:h,right:n+l,bottom:s+h}),Cy=n=>{const s=n===void 0?window:n,l=s.document,h=Tu(Yt.fromDom(l));return wg(s).fold(()=>{const O=s.document.documentElement,P=O.clientWidth,Z=O.clientHeight;return Ty(h.left,h.top,P,Z)},O=>Ty(Math.max(O.pageLeft,h.left),Math.max(O.pageTop,h.top),O.width,O.height))},ky=(n,s)=>se(ol(n),s),r0=(n,s)=>{let l=[];return re(ol(n),h=>{s(h)&&(l=l.concat([h])),l=l.concat(r0(h,s))}),l},sl=(n,s)=>Vp(s,n),Xp=(n,s,l)=>Og(n,s,l).isSome();class ca{constructor(s,l){this.node=s,this.rootNode=l,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(s){return this.node=this.findSibling(this.node,"firstChild","nextSibling",s),this.node}prev(s){return this.node=this.findSibling(this.node,"lastChild","previousSibling",s),this.node}prev2(s){return this.node=this.findPreviousNode(this.node,s),this.node}findSibling(s,l,h,O){if(s){if(!O&&s[l])return s[l];if(s!==this.rootNode){let P=s[h];if(P)return P;for(let Z=s.parentNode;Z&&Z!==this.rootNode;Z=Z.parentNode)if(P=Z[h],P)return P}}}findPreviousNode(s,l){if(s){const h=s.previousSibling;if(this.rootNode&&h===this.rootNode)return;if(h){if(!l){for(let P=h.lastChild;P;P=P.lastChild)if(!P.lastChild)return P}return h}const O=s.parentNode;if(O&&O!==this.rootNode)return O}}}const uo=n=>s=>!!s&&s.nodeType===n,Gu=n=>!!n&&!Object.getPrototypeOf(n),Xr=uo(1),zl=n=>Xr(n)&&Ya(Yt.fromDom(n)),HS=n=>Xr(n)&&n.namespaceURI==="http://www.w3.org/2000/svg",Dd=n=>{const s=n.toLowerCase();return l=>B(l)&&l.nodeName.toLowerCase()===s},vi=n=>{const s=n.map(l=>l.toLowerCase());return l=>{if(l&&l.nodeName){const h=l.nodeName.toLowerCase();return Ze(s,h)}return!1}},$d=(n,s)=>{const l=s.toLowerCase().split(" ");return h=>{if(Xr(h)){const O=h.ownerDocument.defaultView;if(O)for(let P=0;Ps=>Xr(s)&&s.hasAttribute(n),al=(n,s)=>l=>Xr(l)&&l.getAttribute(n)===s,_f=n=>Xr(n)&&n.hasAttribute("data-mce-bogus"),bm=n=>Xr(n)&&n.getAttribute("data-mce-bogus")==="all",ju=n=>Xr(n)&&n.tagName==="TABLE",Ay=n=>s=>!!(zl(s)&&(s.contentEditable===n||s.getAttribute("data-mce-contenteditable")===n)),o0=vi(["textarea","input"]),lr=uo(3),QO=uo(4),Ml=uo(7),Kf=uo(8),Tg=uo(9),da=uo(11),aa=Dd("br"),El=Dd("img"),Zl=Ay("true"),Os=Ay("false"),jp=vi(["td","th"]),il=vi(["td","th","caption"]),ei=vi(["video","audio","object","embed"]),qp=Dd("li"),er=Dd("details"),Zc=Dd("summary"),Cg="\uFEFF",zs=" ",Rf=n=>n===Cg,US=n=>n.replace(/\uFEFF/g,""),s0=((n,s)=>{const l=P=>{if(!n(P))throw new Error("Can only get "+s+" value of a "+s+" node");return h(P).getOr("")},h=P=>n(P)?G.from(P.dom.nodeValue):G.none();return{get:l,getOption:h,set:(P,Z)=>{if(!n(P))throw new Error("Can only set raw "+s+" value of a "+s+" node");P.dom.nodeValue=Z}}})(Zi,"text"),su=n=>s0.get(n),a0=n=>s0.getOption(n),rc=(n,s)=>s0.set(n,s),Ws=["td","th"],au=["thead","tbody","tfoot"],fi=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],ll=["li","dd","dt"],Ld=["ul","ol","dl"],Jf=["pre","script","textarea","style"],Id=n=>{let s;return l=>(s=s||Ye(n,pe),it(s,Vs(l)))},wc=n=>Vs(n)==="table",ed=n=>kl(n)&&Vs(n)==="br",Mn=Id(fi),Tc=Id(Ld),td=Id(ll),nd=Id(au),Hc=Id(Ws),Wi=Id(Jf),Di=n=>{const s=[];let l=n.dom;for(;l;)s.push(Yt.fromDom(l)),l=l.lastChild;return s},qC=n=>{const s=sl(n,"br"),l=se(Di(n).slice(-1),ed);s.length===l.length&&re(l,Ks)},Cc=()=>{const n=Yt.fromTag("br");return Ra(n,"data-mce-bogus","1"),n},D=n=>{bh(n),Ci(n,Cc())},X=(n,s)=>{xc(n).each(l=>{Uu(l).each(h=>{s.isBlock(Vs(n))&&ed(l)&&s.isBlock(Vs(h))&&Ks(l)})})},de=Cg,we=Rf,Pe=US,Re=n=>n.insertContent(de,{preserve_zwsp:!0}),Ke=Xr,We=lr,rt=n=>(We(n)&&(n=n.parentNode),Ke(n)&&n.hasAttribute("data-mce-caret")),vt=n=>We(n)&&we(n.data),bt=n=>rt(n)||vt(n),Zt=n=>n.firstChild!==n.lastChild||!aa(n.firstChild),Ut=(n,s)=>{var l;const O=((l=n.ownerDocument)!==null&&l!==void 0?l:document).createTextNode(de),P=n.parentNode;if(s){const Z=n.previousSibling;if(We(Z)){if(bt(Z))return Z;if(hn(Z))return Z.splitText(Z.data.length-1)}P==null||P.insertBefore(O,n)}else{const Z=n.nextSibling;if(We(Z)){if(bt(Z))return Z;if(tn(Z))return Z.splitText(1),Z}n.nextSibling?P==null||P.insertBefore(O,n.nextSibling):P==null||P.appendChild(O)}return O},gn=n=>{const s=n.container();return lr(s)?s.data.charAt(n.offset())===de||n.isAtStart()&&vt(s.previousSibling):!1},An=n=>{const s=n.container();return lr(s)?s.data.charAt(n.offset()-1)===de||n.isAtEnd()&&vt(s.nextSibling):!1},jt=(n,s,l)=>{var h;const P=((h=s.ownerDocument)!==null&&h!==void 0?h:document).createElement(n);P.setAttribute("data-mce-caret",l?"before":"after"),P.setAttribute("data-mce-bogus","all"),P.appendChild(Cc().dom);const Z=s.parentNode;return l?Z==null||Z.insertBefore(P,s):s.nextSibling?Z==null||Z.insertBefore(P,s.nextSibling):Z==null||Z.appendChild(P),P},tn=n=>We(n)&&n.data[0]===de,hn=n=>We(n)&&n.data[n.data.length-1]===de,_n=n=>{var s;const l=n.getElementsByTagName("br"),h=l[l.length-1];_f(h)&&((s=h.parentNode)===null||s===void 0||s.removeChild(h))},Pn=n=>n&&n.hasAttribute("data-mce-caret")?(_n(n),n.removeAttribute("data-mce-caret"),n.removeAttribute("data-mce-bogus"),n.removeAttribute("style"),n.removeAttribute("data-mce-style"),n.removeAttribute("_moz_abspos"),n):null,yn=n=>rt(n.startContainer),cr=Zl,Zr=Os,Jr=aa,Ar=lr,no=vi(["script","style","textarea"]),fo=vi(["img","input","textarea","hr","iframe","video","audio","object","embed"]),ts=vi(["table"]),xo=bt,go=n=>xo(n)?!1:Ar(n)?!no(n.parentNode):fo(n)||Jr(n)||ts(n)||ti(n),js=n=>Xr(n)&&n.getAttribute("unselectable")==="true",ti=n=>!js(n)&&Zr(n),ba=(n,s)=>{for(let l=n.parentNode;l&&l!==s;l=l.parentNode){if(ti(l))return!1;if(cr(l))return!0}return!0},Lr=n=>ti(n)?!oe(tt(n.getElementsByTagName("*")),(s,l)=>s||cr(l),!1):!1,Do=n=>fo(n)||Lr(n),ms=(n,s)=>go(n)&&ba(n,s),_s=/^[ \t\r\n]*$/,Ba=n=>_s.test(n),di=n=>{for(const s of n)if(!Rf(s))return!1;return!0},Yi=n=>" \f \v".indexOf(n)!==-1,$i=n=>n===` +`||n==="\r",Uc=(n,s)=>s=0?$i(n[s]):!1,Ki=(n,s=4,l=!0,h=!0)=>{const O=Lt(" ",s),P=n.replace(/\t/g,O);return oe(P,(J,he)=>Yi(he)||he===zs?J.pcIsSpace||J.str===""&&l||J.str.length===P.length-1&&h||Uc(P,J.str.length+1)?{pcIsSpace:!1,str:J.str+zs}:{pcIsSpace:!0,str:J.str+" "}:{pcIsSpace:$i(he),str:J.str+he},{pcIsSpace:!1,str:""}).str},kc=(n,s)=>{const l=Yt.fromDom(s),h=Yt.fromDom(n);return Xp(h,"pre,code",ee(Gs,l))},Hl=(n,s)=>lr(n)&&Ba(n.data)&&!kc(n,s),ea=n=>Xr(n)&&n.nodeName==="A"&&!n.hasAttribute("href")&&(n.hasAttribute("name")||n.hasAttribute("id")),Ku=(n,s)=>go(n)&&!Hl(n,s)||ea(n)||Df(n),Df=Gp("data-mce-bookmark"),Ul=Gp("data-mce-bogus"),Li=al("data-mce-bogus","all"),Wl=n=>yg(Yt.fromDom(n)).exists(s=>!jo(s)),Ii=(n,s)=>{let l=0;if(Ku(n,n))return!1;{let h=n.firstChild;if(!h)return!0;const O=new ca(h,n);do{if(s){if(Li(h)){h=O.next(!0);continue}if(Ul(h)){h=O.next();continue}}if(Zl(h)&&Wl(h))return!1;if(aa(h)){l++,h=O.next();continue}if(Ku(h,n))return!1;h=O.next()}while(h);return l<=1}},ta=(n,s=!0)=>Ii(n.dom,s),Ac=n=>n.toLowerCase()==="svg",Nd=n=>Ac(n.nodeName),Ju=n=>(n==null?void 0:n.nodeName)==="svg"?"svg":"html",Om=["svg"],Bd=()=>{let n=[];const s=()=>n[n.length-1];return{track:P=>{Nd(P)&&n.push(P);let Z=s();return Z&&!Z.contains(P)&&(n.pop(),Z=s()),Ju(Z)},current:()=>Ju(s()),reset:()=>{n=[]}}},Py="data-mce-block",FO=n=>se(Gt(n),s=>!/[A-Z]/.test(s)),Oh=n=>Ie(FO(n),s=>`${s}:`+Ie(Om,l=>`not(${l} ${s})`).join(":")).join(","),Qd=(n,s)=>B(s.querySelector(n))?(s.setAttribute(Py,"true"),s.getAttribute("data-mce-selected")==="inline-boundary"&&s.removeAttribute("data-mce-selected"),!0):(s.removeAttribute(Py),!1),ef=(n,s)=>{const l=Oh(n.getTransparentElements()),h=Oh(n.getBlockElements());return se(s.querySelectorAll(l),O=>Qd(h,O))},kg=(n,s)=>{var l;const h=s?"lastChild":"firstChild";for(let O=n[h];O;O=O[h])if(ta(Yt.fromDom(O))){(l=O.parentNode)===null||l===void 0||l.removeChild(O);return}},Ag=(n,s)=>{const l=document.createRange(),h=n.parentNode;if(h){l.setStartBefore(n),l.setEndBefore(s);const O=l.extractContents();kg(O,!0),l.setStartAfter(s),l.setEndAfter(n);const P=l.extractContents();kg(P,!1),ta(Yt.fromDom(O))||h.insertBefore(O,n),ta(Yt.fromDom(s))||h.insertBefore(s,n),ta(Yt.fromDom(P))||h.insertBefore(P,n),h.removeChild(n)}},KC=(n,s,l)=>{const h=n.getBlockElements(),O=Yt.fromDom(s),P=J=>Vs(J)in h,Z=J=>Gs(J,O);re(Wp(l),J=>{ui(J,P,Z).each(he=>{const _e=ky(J,Ge=>P(Ge)&&!n.isValidChild(Vs(he),Vs(Ge)));if(_e.length>0){const Ge=yg(he);re(_e,qe=>{ui(qe,P,Z).each(ot=>{Ag(ot.dom,qe.dom)})}),Ge.each(qe=>ef(n,qe.dom))}})})},VO=(n,s,l)=>{re([...l,...ks(n,s)?[s]:[]],h=>re(sl(Yt.fromDom(h),h.nodeName.toLowerCase()),O=>{vo(n,O.dom)&&Ef(O)}))},My=(n,s)=>{const l=ef(n,s);KC(n,s,l),VO(n,s,l)},zO=(n,s)=>{if(_y(n,s)){const l=Oh(n.getBlockElements());Qd(l,s)}},JC=(n,s,l)=>{const h=P=>Gs(P,Yt.fromDom(s)),O=hy(Yt.fromDom(l),h);et(O,O.length-2).filter(kl).fold(()=>My(n,s),P=>My(n,P.dom))},ZO=n=>n.hasAttribute(Py),Ey=(n,s)=>it(n.getTransparentElements(),s),_y=(n,s)=>Xr(s)&&Ey(n,s.nodeName),ks=(n,s)=>_y(n,s)&&ZO(s),vo=(n,s)=>_y(n,s)&&!ZO(s),xm=(n,s)=>s.type===1&&Ey(n,s.name)&&M(s.attr(Py)),HO=ii().browser,Ry=n=>le(n,kl),EM=n=>HO.isFirefox()&&Vs(n)==="table"?Ry(ol(n)).filter(s=>Vs(s)==="caption").bind(s=>Ry(Vc(s)).map(l=>{const h=l.dom.offsetTop,O=s.dom.offsetTop,P=s.dom.offsetHeight;return h<=O?-P:0})).getOr(0):0,WS=(n,s)=>n.children&&Ze(n.children,s),Ea=(n,s,l)=>{let h=0,O=0;const P=n.ownerDocument;if(l=l||n,s){if(l===n&&s.getBoundingClientRect&&wi(Yt.fromDom(n),"position")==="static"){const J=s.getBoundingClientRect();return h=J.left+(P.documentElement.scrollLeft||n.scrollLeft)-P.documentElement.clientLeft,O=J.top+(P.documentElement.scrollTop||n.scrollTop)-P.documentElement.clientTop,{x:h,y:O}}let Z=s;for(;Z&&Z!==l&&Z.nodeType&&!WS(Z,l);){const J=Z;h+=J.offsetLeft||0,O+=J.offsetTop||0,Z=J.offsetParent}for(Z=s.parentNode;Z&&Z!==l&&Z.nodeType&&!WS(Z,l);)h-=Z.scrollLeft||0,O-=Z.scrollTop||0,Z=Z.parentNode;O+=EM(Yt.fromDom(s))}return{x:h,y:O}},YS=(n,s={})=>{let l=0;const h={},O=Yt.fromDom(n),P=qf(O),Z=cn=>{s.referrerPolicy=cn},J=cn=>{s.contentCssCors=cn},he=cn=>{Ci(LO(O),cn)},_e=cn=>{const xn=LO(O);Sc(xn,"#"+cn).each(Ks)},Ge=cn=>Sn(h,cn).getOrThunk(()=>({id:"mce-u"+l++,passed:[],failed:[],count:0})),qe=cn=>new Promise((xn,bn)=>{let $n;const rr=fr._addCacheSuffix(cn),gr=Ge(rr);h[rr]=gr,gr.count++;const Qr=(eo,po)=>{re(eo,ge),gr.status=po,gr.passed=[],gr.failed=[],$n&&($n.onload=null,$n.onerror=null,$n=null)},zn=()=>Qr(gr.passed,2),Bn=()=>Qr(gr.failed,3);if(xn&&gr.passed.push(xn),bn&&gr.failed.push(bn),gr.status===1)return;if(gr.status===2){zn();return}if(gr.status===3){Bn();return}gr.status=1;const tr=Yt.fromTag("link",P.dom);Su(tr,{rel:"stylesheet",type:"text/css",id:gr.id}),s.contentCssCors&&Ra(tr,"crossOrigin","anonymous"),s.referrerPolicy&&Ra(tr,"referrerpolicy",s.referrerPolicy),$n=tr.dom,$n.onload=zn,$n.onerror=Bn,he(tr),Ra(tr,"href",rr)}),ot=(cn,xn)=>{const bn=Ge(cn);h[cn]=bn,bn.count++;const $n=Yt.fromTag("style",P.dom);Su($n,{rel:"stylesheet",type:"text/css",id:bn.id}),$n.dom.innerHTML=xn,he($n)},Et=cn=>Promise.allSettled(Ie(cn,bn=>qe(bn).then(ae(bn)))).then(bn=>{const $n=te(bn,rr=>rr.status==="fulfilled");return $n.fail.length>0?Promise.reject(Ie($n.fail,rr=>rr.reason)):Ie($n.pass,rr=>rr.value)}),Vt=cn=>{const xn=fr._addCacheSuffix(cn);Sn(h,xn).each(bn=>{--bn.count===0&&(delete h[xn],_e(bn.id))})};return{load:qe,loadRawCss:ot,loadAll:Et,unload:Vt,unloadRawCss:cn=>{Sn(h,cn).each(xn=>{--xn.count===0&&(delete h[cn],_e(xn.id))})},unloadAll:cn=>{re(cn,xn=>{Vt(xn)})},_setReferrerPolicy:Z,_setContentCssCors:J}},GS=(()=>{const n=new WeakMap;return{forElement:(l,h)=>{const P=Pf(l).dom;return G.from(n.get(P)).getOrThunk(()=>{const Z=YS(P,h);return n.set(P,Z),Z})}}})(),qn=n=>n.nodeName.toLowerCase()==="span",UO=(n,s,l)=>B(n)&&(Ku(n,s)||l.isInline(n.nodeName.toLowerCase())),_M=(n,s,l)=>{const h=new ca(n,s).prev(!1),O=new ca(n,s).next(!1),P=U(h)||UO(h,s,l),Z=U(O)||UO(O,s,l);return P&&Z},Dy=n=>qn(n)&&n.getAttribute("data-mce-type")==="bookmark",RM=(n,s,l)=>lr(n)&&n.data.length>0&&_M(n,s,l),i0=n=>Xr(n)?n.childNodes.length>0:!1,jS=n=>da(n)||Tg(n),Sm=(n,s,l,h)=>{var O;const P=h||s;if(Xr(s)&&Dy(s))return s;const Z=s.childNodes;for(let J=Z.length-1;J>=0;J--)Sm(n,Z[J],l,P);if(Xr(s)){const J=s.childNodes;J.length===1&&Dy(J[0])&&((O=s.parentNode)===null||O===void 0||O.insertBefore(J[0],s))}return!jS(s)&&!Ku(s,P)&&!i0(s)&&!RM(s,P,l)&&n.remove(s),s},DM=fr.makeMap,xh=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ca=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Sh=/[<>&\"\']/g,qS=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,rd={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},wm={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},KS={"<":"<",">":">","&":"&",""":'"',"'":"'"},Kp=n=>{const s=Yt.fromTag("div").dom;return s.innerHTML=n,s.textContent||s.innerText||n},ek=(n,s)=>{const l={};if(n){const h=n.split(",");s=s||10;for(let O=0;On.replace(s?xh:Ca,l=>wm[l]||l),$M=n=>(""+n).replace(Sh,s=>wm[s]||s),ew=(n,s)=>n.replace(s?xh:Ca,l=>l.length>1?"&#"+((l.charCodeAt(0)-55296)*1024+(l.charCodeAt(1)-56320)+65536)+";":wm[l]||"&#"+l.charCodeAt(0)+";"),wh=(n,s,l)=>{const h=l||WO;return n.replace(s?xh:Ca,O=>wm[O]||h[O]||O)},Pg={encodeRaw:JS,encodeAllRaw:$M,encodeNumeric:ew,encodeNamed:wh,getEncodeFunc:(n,s)=>{const l=ek(s)||WO,h=(Z,J)=>Z.replace(J?xh:Ca,he=>wm[he]!==void 0?wm[he]:l[he]!==void 0?l[he]:he.length>1?"&#"+((he.charCodeAt(0)-55296)*1024+(he.charCodeAt(1)-56320)+65536)+";":"&#"+he.charCodeAt(0)+";"),O=(Z,J)=>wh(Z,J,l),P=DM(n.replace(/\+/g,","));return P.named&&P.numeric?h:P.named?s?O:wh:P.numeric?ew:JS},decode:n=>n.replace(qS,(s,l)=>l?(l.charAt(0).toLowerCase()==="x"?l=parseInt(l.substr(1),16):l=parseInt(l,10),l>65535?(l-=65536,String.fromCharCode(55296+(l>>10),56320+(l&1023))):rd[l]||String.fromCharCode(l)):KS[s]||WO[s]||Kp(s))},Yl=(n,s)=>(n=fr.trim(n),n?n.split(s||" "):[]),Kr=n=>new RegExp("^"+n.replace(/([?+*])/g,".$1")+"$"),LM=n=>{const s=/^(~)?(.+)$/;return ze(Yl(n,","),l=>{const h=s.exec(l);if(h){const O=h[1]==="~",P=O?"span":"div",Z=h[2];return[{inline:O,cloneName:P,name:Z}]}else return[]})},nw=n=>{let s,l,h;if(s="id accesskey class dir lang style tabindex title role",l="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",h="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",n!=="html4"){const P="a ins del canvas map";s+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",l+=" article aside details dialog figure main header footer hgroup section nav "+P,h+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen svg"}n!=="html5-strict"&&(s+=" xml:lang",h=[h,"acronym applet basefont big font strike tt"].join(" "),l=[l,"center dir isindex noframes"].join(" "));const O=[l,h].join(" ");return{globalAttributes:s,blockContent:l,phrasingContent:h,flowContent:O}},IM=n=>{const{globalAttributes:s,phrasingContent:l,flowContent:h}=nw(n),O={},P=(he,_e,Ge)=>{O[he]={attributes:Ye(_e,ae({})),attributesOrder:_e,children:Ye(Ge,ae({}))}},Z=(he,_e="",Ge="")=>{const qe=Yl(Ge),ot=Yl(he);let Et=ot.length;const Vt=Yl([s,_e].join(" "));for(;Et--;)P(ot[Et],Vt.slice(),qe)},J=(he,_e)=>{const Ge=Yl(he),qe=Yl(_e);let ot=Ge.length;for(;ot--;){const Et=O[Ge[ot]];for(let Vt=0,kt=qe.length;Vt{Z(Ge,"",l)}),re(Yl("center dir isindex noframes"),Ge=>{Z(Ge,"",h)})),Z("html","manifest","head body"),Z("head","","base command link meta noscript script style title"),Z("title hr noscript br"),Z("base","href target"),Z("link","href rel media hreflang type sizes hreflang"),Z("meta","name http-equiv content charset"),Z("style","media type scoped"),Z("script","src async defer type charset"),Z("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",h),Z("dd div","",h),Z("address dt caption","",n==="html4"?l:h),Z("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",l),Z("blockquote","cite",h),Z("ol","reversed start type","li"),Z("ul","","li"),Z("li","value",h),Z("dl","","dt dd"),Z("a","href target rel media hreflang type",n==="html4"?l:h),Z("q","cite",l),Z("ins del","cite datetime",h),Z("img","src sizes srcset alt usemap ismap width height"),Z("iframe","src name width height",h),Z("embed","src type width height"),Z("object","data type typemustmatch name usemap form width height",[h,"param"].join(" ")),Z("param","name value"),Z("map","name",[h,"area"].join(" ")),Z("area","alt coords shape href target rel media hreflang type"),Z("table","border","caption colgroup thead tfoot tbody tr"+(n==="html4"?" col":"")),Z("colgroup","span","col"),Z("col","span"),Z("tbody thead tfoot","","tr"),Z("tr","","td th"),Z("td","colspan rowspan headers",h),Z("th","colspan rowspan headers scope abbr",h),Z("form","accept-charset action autocomplete enctype method name novalidate target",h),Z("fieldset","disabled form name",[h,"legend"].join(" ")),Z("label","form for",l),Z("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),Z("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",n==="html4"?h:l),Z("select","disabled form multiple name required size","option optgroup"),Z("optgroup","disabled label","option"),Z("option","disabled label selected value"),Z("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),Z("menu","type label",[h,"li"].join(" ")),Z("noscript","",h),n!=="html4"&&(Z("wbr"),Z("ruby","",[l,"rt rp"].join(" ")),Z("figcaption","",h),Z("mark rt rp bdi","",l),Z("summary","",[l,"h1 h2 h3 h4 h5 h6"].join(" ")),Z("canvas","width height",h),Z("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[h,"track source"].join(" ")),Z("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[h,"track source"].join(" ")),Z("picture","","img source"),Z("source","src srcset type media sizes"),Z("track","kind src srclang label default"),Z("datalist","",[l,"option"].join(" ")),Z("article section nav aside main header footer","",h),Z("hgroup","","h1 h2 h3 h4 h5 h6"),Z("figure","",[h,"figcaption"].join(" ")),Z("time","datetime",l),Z("dialog","open",h),Z("command","type label icon disabled checked radiogroup command"),Z("output","for form name",l),Z("progress","value max",l),Z("meter","value min max low high optimum",l),Z("details","open",[h,"summary"].join(" ")),Z("keygen","autofocus challenge disabled form keytype name"),P("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),n!=="html5-strict"&&(J("script","language xml:space"),J("style","xml:space"),J("object","declare classid code codebase codetype archive standby align border hspace vspace"),J("embed","align name hspace vspace"),J("param","valuetype type"),J("a","charset name rev shape coords"),J("br","clear"),J("applet","codebase archive code object alt name width height align hspace vspace"),J("img","name longdesc align border hspace vspace"),J("iframe","longdesc frameborder marginwidth marginheight scrolling align"),J("font basefont","size color face"),J("input","usemap align"),J("select"),J("textarea"),J("h1 h2 h3 h4 h5 h6 div p legend caption","align"),J("ul","type compact"),J("li","type"),J("ol dl menu dir","compact"),J("pre","width xml:space"),J("hr","align noshade size width"),J("isindex","prompt"),J("table","summary width frame rules cellspacing cellpadding align bgcolor"),J("col","width align char charoff valign"),J("colgroup","width align char charoff valign"),J("thead","align char charoff valign"),J("tr","align char charoff valign bgcolor"),J("th","axis align char charoff valign nowrap bgcolor width height"),J("form","accept"),J("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),J("tfoot","align char charoff valign"),J("tbody","align char charoff valign"),J("area","nohref"),J("body","background bgcolor text link vlink alink")),n!=="html4"&&(J("input button select textarea","autofocus"),J("input textarea","placeholder"),J("a","download"),J("link script img","crossorigin"),J("img","loading"),J("iframe","sandbox seamless allow allowfullscreen loading")),n!=="html4"&&re([O.video,O.audio],he=>{delete he.children.audio,delete he.children.video}),re(Yl("a form meter progress dfn"),he=>{O[he]&&delete O[he].children[he]}),delete O.caption.children.table,delete O.script,O},tk=n=>n==="-"?"remove":"add",Jp=n=>{const s=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return ze(Yl(n,","),l=>{const h=s.exec(l);if(h){const O=h[1],P=O?tk(O):"replace",Z=h[2],J=Yl(h[3],"|");return[{operation:P,name:Z,validChildren:J}]}else return[]})},l0=(n,s)=>{const l=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,h=/[*?+]/,{attributes:O,attributesOrder:P}=s;return re(Yl(n,"|"),Z=>{const J=l.exec(Z);if(J){const he={},_e=J[1],Ge=J[2].replace(/[\\:]:/g,":"),qe=J[3],ot=J[4];if(_e==="!"&&(s.attributesRequired=s.attributesRequired||[],s.attributesRequired.push(Ge),he.required=!0),_e==="-"){delete O[Ge],P.splice(fr.inArray(P,Ge),1);return}if(qe&&(qe==="="?(s.attributesDefault=s.attributesDefault||[],s.attributesDefault.push({name:Ge,value:ot}),he.defaultValue=ot):qe==="~"?(s.attributesForced=s.attributesForced||[],s.attributesForced.push({name:Ge,value:ot}),he.forcedValue=ot):qe==="<"&&(he.validValues=fr.makeMap(ot,"?"))),h.test(Ge)){const Et=he;s.attributePatterns=s.attributePatterns||[],Et.pattern=Kr(Ge),s.attributePatterns.push(Et)}else O[Ge]||P.push(Ge),O[Ge]=he}})},$y=(n,s)=>{Bt(n.attributes,(l,h)=>{s.attributes[h]=l}),s.attributesOrder.push(...n.attributesOrder)},c0=(n,s)=>{const l=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return ze(Yl(s,","),h=>{const O=l.exec(h);if(O){const P=O[1],Z=O[2],J=O[3],he=O[4],_e=O[5],Ge={attributes:{},attributesOrder:[]};if(n.each(qe=>$y(qe,Ge)),P==="#"?Ge.paddEmpty=!0:P==="-"&&(Ge.removeEmpty=!0),he==="!"&&(Ge.removeEmptyAttrs=!0),_e&&l0(_e,Ge),J&&(Ge.outputName=Z),Z==="@")if(n.isNone())n=G.some(Ge);else return[];return[J?{name:Z,element:Ge,aliasName:J}:{name:Z,element:Ge}]}else return[]})},YO={},Tm=fr.makeMap,Fd=fr.each,Ly=fr.extend,$f=fr.explode,XO=(n,s={})=>{const l=Tm(n," ",Tm(n.toUpperCase()," "));return Ly(l,s)},nk=n=>XO("td th li dt dd figcaption caption details summary",n.getTextBlockElements()),u0=(n,s)=>{if(n){const l={};return M(n)&&(n={"*":n}),Fd(n,(h,O)=>{l[O]=l[O.toUpperCase()]=s==="map"?Tm(h,/[, ]/):$f(h,/[, ]/)}),l}else return},Cm=(n={})=>{var s;const l={},h={};let O=[];const P={},Z={},J=(Wo,Hs,Pa)=>{const oi=n[Wo];if(oi)return Tm(oi,/[, ]/,Tm(oi.toUpperCase(),/[, ]/));{let Ua=YO[Wo];return Ua||(Ua=XO(Hs,Pa),YO[Wo]=Ua),Ua}},he=(s=n.schema)!==null&&s!==void 0?s:"html5",_e=IM(he);n.verify_html===!1&&(n.valid_elements="*[*]");const Ge=u0(n.valid_styles),qe=u0(n.invalid_styles,"map"),ot=u0(n.valid_classes,"map"),Et=J("whitespace_elements","pre script noscript style textarea video audio iframe object code"),Vt=J("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),kt=J("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),It=J("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),cn="td th iframe video audio object script code",xn=J("non_empty_elements",cn+" pre svg",kt),bn=J("move_caret_before_on_enter_elements",cn+" table",kt),$n="h1 h2 h3 h4 h5 h6",rr=J("text_block_elements",$n+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),gr=J("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",rr),Qr=J("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),zn=J("transparent_elements","a ins del canvas map"),Bn=J("wrap_block_elements","pre "+$n);Fd("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),Wo=>{Z[Wo]=new RegExp("]*>","gi")});const tr=Wo=>{const Hs=G.from(l["@"]),Pa=/[*?+]/;re(c0(Hs,Wo??""),({name:oi,element:Ua,aliasName:gf})=>{if(gf&&(l[gf]=Ua),Pa.test(oi)){const Gh=Ua;Gh.pattern=Kr(oi),O.push(Gh)}else l[oi]=Ua})},eo=Wo=>{O=[],re(Gt(l),Hs=>{delete l[Hs]}),tr(Wo)},po=Wo=>{delete YO.text_block_elements,delete YO.block_elements,re(LM(Wo??""),({inline:Hs,name:Pa,cloneName:oi})=>{if(h[Pa]=h[oi],P[Pa]=oi,xn[Pa.toUpperCase()]={},xn[Pa]={},Hs||(gr[Pa.toUpperCase()]={},gr[Pa]={}),!l[Pa]){let Ua=l[oi];Ua=Ly({},Ua),delete Ua.removeEmptyAttrs,delete Ua.removeEmpty,l[Pa]=Ua}Bt(h,(Ua,gf)=>{Ua[oi]&&(h[gf]=Ua=Ly({},h[gf]),Ua[Pa]=Ua[oi])})})},ls=Wo=>{re(Jp(Wo??""),({operation:Hs,name:Pa,validChildren:oi})=>{const Ua=Hs==="replace"?{"#comment":{}}:h[Pa];re(oi,gf=>{Hs==="remove"?delete Ua[gf]:Ua[gf]={}}),h[Pa]=Ua})},ys=Wo=>{const Hs=l[Wo];if(Hs)return Hs;let Pa=O.length;for(;Pa--;){const oi=O[Pa];if(oi.pattern.test(Wo))return oi}};n.valid_elements?(eo(n.valid_elements),Fd(_e,(Wo,Hs)=>{h[Hs]=Wo.children})):(Fd(_e,(Wo,Hs)=>{l[Hs]={attributes:Wo.attributes,attributesOrder:Wo.attributesOrder},h[Hs]=Wo.children}),Fd(Yl("strong/b em/i"),Wo=>{const Hs=Yl(Wo,"/");l[Hs[1]].outputName=Hs[0]}),Fd(Qr,(Wo,Hs)=>{l[Hs]&&(n.padd_empty_block_inline_children&&(l[Hs].paddInEmptyBlock=!0),l[Hs].removeEmpty=!0)}),Fd(Yl("ol ul blockquote a table tbody"),Wo=>{l[Wo]&&(l[Wo].removeEmpty=!0)}),Fd(Yl("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),Wo=>{l[Wo]&&(l[Wo].paddEmpty=!0)}),Fd(Yl("span"),Wo=>{l[Wo].removeEmptyAttrs=!0})),delete l.svg,po(n.custom_elements),ls(n.valid_children),tr(n.extended_valid_elements),ls("+ol[ul|ol],+ul[ul|ol]"),Fd({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(Wo,Hs)=>{l[Hs]&&(l[Hs].parentsRequired=Yl(Wo))}),n.invalid_elements&&Fd($f(n.invalid_elements),Wo=>{l[Wo]&&delete l[Wo]}),ys("span")||tr("span[!data-mce-type|*]");const ma=ae(Ge),$s=ae(qe),hi=ae(ot),uc=ae(It),ga=ae(gr),Cr=ae(rr),co=ae(Qr),Zs=ae(Object.seal(kt)),Ss=ae(Vt),ro=ae(xn),Lo=ae(bn),yr=ae(Et),Bo=ae(zn),Ls=ae(Bn),Aa=ae(Object.seal(Z)),Sa=(Wo,Hs)=>{const Pa=h[Wo.toLowerCase()];return!!(Pa&&Pa[Hs.toLowerCase()])},$l=(Wo,Hs)=>{const Pa=ys(Wo);if(Pa)if(Hs){if(Pa.attributes[Hs])return!0;const oi=Pa.attributePatterns;if(oi){let Ua=oi.length;for(;Ua--;)if(oi[Ua].pattern.test(Hs))return!0}}else return!0;return!1},Xh=Wo=>it(ga(),Wo),zf=Wo=>$l(Wo)&&!Xh(Wo),$u=Wo=>it(Ls(),Wo)||zf(Wo),sh=ae(P);return{type:he,children:h,elements:l,getValidStyles:ma,getValidClasses:hi,getBlockElements:ga,getInvalidStyles:$s,getVoidElements:Zs,getTextBlockElements:Cr,getTextInlineElements:co,getBoolAttrs:uc,getElementRule:ys,getSelfClosingElements:Ss,getNonEmptyElements:ro,getMoveCaretBeforeOnEnterElements:Lo,getWhitespaceElements:yr,getTransparentElements:Bo,getSpecialElements:Aa,isValidChild:Sa,isValid:$l,isBlock:Xh,isInline:zf,isWrapper:$u,getCustomElements:sh,addValidElements:tr,setValidElements:eo,addCustomElements:po,addValidChildren:ls}},NM=n=>({value:f0(n)}),f0=n=>xr(n,"#").toUpperCase(),ev=n=>{const s=n.toString(16);return(s.length===1?"0"+s:s).toUpperCase()},od=n=>{const s=ev(n.red)+ev(n.green)+ev(n.blue);return NM(s)},Cu=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,BM=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,rk=(n,s,l,h)=>({red:n,green:s,blue:l,alpha:h}),ok=(n,s,l,h)=>{const O=parseInt(n,10),P=parseInt(s,10),Z=parseInt(l,10),J=parseFloat(h);return rk(O,P,Z,J)},rw=n=>{if(n==="transparent")return G.some(rk(0,0,0,0));const s=Cu.exec(n);if(s!==null)return G.some(ok(s[1],s[2],s[3],"1"));const l=BM.exec(n);return l!==null?G.some(ok(l[1],l[2],l[3],l[4])):G.none()},ku=n=>`rgba(${n.red},${n.green},${n.blue},${n.alpha})`,d0=n=>rw(n).map(od).map(s=>"#"+s.value).getOr(n),GO=(n={},s)=>{const l=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,h=/\s*([^:]+):\s*([^;]+);?/g,O=/\s+$/,P={};let Z,J;const he=Cg;s&&(Z=s.getValidStyles(),J=s.getInvalidStyles());const _e=(`\\" \\' \\; \\: ; : `+he).split(" ");for(let qe=0;qe<_e.length;qe++)P[_e[qe]]=he+qe,P[he+qe]=_e[qe];const Ge={parse:qe=>{const ot={};let Et=!1;const Vt=n.url_converter,kt=n.url_converter_scope||Ge,It=(zn,Bn,tr)=>{const eo=ot[zn+"-top"+Bn];if(!eo)return;const po=ot[zn+"-right"+Bn];if(!po)return;const ls=ot[zn+"-bottom"+Bn];if(!ls)return;const ys=ot[zn+"-left"+Bn];if(!ys)return;const ma=[eo,po,ls,ys];let $s=ma.length-1;for(;$s--&&ma[$s]===ma[$s+1];);$s>-1&&tr||(ot[zn+Bn]=$s===-1?ma[0]:ma.join(" "),delete ot[zn+"-top"+Bn],delete ot[zn+"-right"+Bn],delete ot[zn+"-bottom"+Bn],delete ot[zn+"-left"+Bn])},cn=zn=>{const Bn=ot[zn];if(!Bn)return;const tr=Bn.indexOf(",")>-1?[Bn]:Bn.split(" ");let eo=tr.length;for(;eo--;)if(tr[eo]!==tr[0])return!1;return ot[zn]=tr[0],!0},xn=(zn,Bn,tr,eo)=>{cn(Bn)&&cn(tr)&&cn(eo)&&(ot[zn]=ot[Bn]+" "+ot[tr]+" "+ot[eo],delete ot[Bn],delete ot[tr],delete ot[eo])},bn=zn=>(Et=!0,P[zn]),$n=(zn,Bn)=>(Et&&(zn=zn.replace(/\uFEFF[0-9]/g,tr=>P[tr])),Bn||(zn=zn.replace(/\\([\'\";:])/g,"$1")),zn),rr=zn=>String.fromCharCode(parseInt(zn.slice(1),16)),gr=zn=>zn.replace(/\\[0-9a-f]+/gi,rr),Qr=(zn,Bn,tr,eo,po,ls)=>{if(po=po||ls,po)return po=$n(po),"'"+po.replace(/\'/g,"\\'")+"'";if(Bn=$n(Bn||tr||eo||""),!n.allow_script_urls){const ys=Bn.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(ys)||!n.allow_svg_data_urls&&/^data:image\/svg/i.test(ys))return""}return Vt&&(Bn=Vt.call(kt,Bn,"style")),"url('"+Bn.replace(/\'/g,"\\'")+"')"};if(qe){qe=qe.replace(/[\u0000-\u001F]/g,""),qe=qe.replace(/\\[\"\';:\uFEFF]/g,bn).replace(/\"[^\"]+\"|\'[^\']+\'/g,Bn=>Bn.replace(/[;:]/g,bn));let zn;for(;zn=h.exec(qe);){h.lastIndex=zn.index+zn[0].length;let Bn=zn[1].replace(O,"").toLowerCase(),tr=zn[2].replace(O,"");if(Bn&&tr){if(Bn=gr(Bn),tr=gr(tr),Bn.indexOf(he)!==-1||Bn.indexOf('"')!==-1||!n.allow_script_urls&&(Bn==="behavior"||/expression\s*\(|\/\*|\*\//.test(tr)))continue;Bn==="font-weight"&&tr==="700"?tr="bold":(Bn==="color"||Bn==="background-color")&&(tr=tr.toLowerCase()),M(n.force_hex_color)&&n.force_hex_color!=="off"&&rw(tr).each(eo=>{(n.force_hex_color==="always"||eo.alpha===1)&&(tr=d0(ku(eo)))}),tr=tr.replace(l,Qr),ot[Bn]=Et?$n(tr,!0):tr}}It("border","",!0),It("border","-width"),It("border","-color"),It("border","-style"),It("padding",""),It("margin",""),xn("border","border-width","border-style","border-color"),ot.border==="medium none"&&delete ot.border,ot["border-image"]==="none"&&delete ot["border-image"]}return ot},serialize:(qe,ot)=>{let Et="";const Vt=(It,cn)=>{const xn=cn[It];if(xn)for(let bn=0,$n=xn.length;bn<$n;bn++){const rr=xn[bn],gr=qe[rr];gr&&(Et+=(Et.length>0?" ":"")+rr+": "+gr+";")}},kt=(It,cn)=>{if(!J||!cn)return!0;let xn=J["*"];return xn&&xn[It]?!1:(xn=J[cn],!(xn&&xn[It]))};return ot&&Z?(Vt("*",Z),Vt(ot,Z)):Bt(qe,(It,cn)=>{It&&kt(cn,ot)&&(Et+=(Et.length>0?" ":"")+cn+": "+It+";")}),Et}};return Ge},jO={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},QM=n=>n instanceof Event||E(n.initEvent),sk=n=>n.isDefaultPrevented===pe||n.isDefaultPrevented===ne,ow=n=>Q(n.preventDefault)||QM(n),h0=(n,s)=>{const l=s??{};for(const h in n)it(jO,h)||(l[h]=n[h]);return B(n.composedPath)&&(l.composedPath=()=>n.composedPath()),B(n.getModifierState)&&(l.getModifierState=h=>n.getModifierState(h)),B(n.getTargetRanges)&&(l.getTargetRanges=()=>n.getTargetRanges()),l},m0=(n,s,l,h)=>{var O;const P=h0(s,h);return P.type=n,Q(P.target)&&(P.target=(O=P.srcElement)!==null&&O!==void 0?O:l),ow(s)&&(P.preventDefault=()=>{P.defaultPrevented=!0,P.isDefaultPrevented=pe,E(s.preventDefault)&&s.preventDefault()},P.stopPropagation=()=>{P.cancelBubble=!0,P.isPropagationStopped=pe,E(s.stopPropagation)&&s.stopPropagation()},P.stopImmediatePropagation=()=>{P.isImmediatePropagationStopped=pe,P.stopPropagation()},sk(P)||(P.isDefaultPrevented=P.defaultPrevented===!0?pe:ne,P.isPropagationStopped=P.cancelBubble===!0?pe:ne,P.isImmediatePropagationStopped=ne)),P},qO="mce-data-",FM=/^(?:mouse|contextmenu)|click/,KO=(n,s,l,h)=>{n.addEventListener(s,l,h||!1)},g0=(n,s,l,h)=>{n.removeEventListener(s,l,h||!1)},VM=n=>B(n)&&FM.test(n.type),Iy=(n,s)=>{const l=m0(n.type,n,document,s);if(VM(n)&&U(n.pageX)&&!U(n.clientX)){const h=l.target.ownerDocument||document,O=h.documentElement,P=h.body,Z=l;Z.pageX=n.clientX+(O&&O.scrollLeft||P&&P.scrollLeft||0)-(O&&O.clientLeft||P&&P.clientLeft||0),Z.pageY=n.clientY+(O&&O.scrollTop||P&&P.scrollTop||0)-(O&&O.clientTop||P&&P.clientTop||0)}return l},sw=(n,s,l)=>{const h=n.document,O={type:"ready"};if(l.domLoaded){s(O);return}const P=()=>h.readyState==="complete"||h.readyState==="interactive"&&h.body,Z=()=>{g0(n,"DOMContentLoaded",Z),g0(n,"load",Z),l.domLoaded||(l.domLoaded=!0,s(O)),n=null};P()?Z():KO(n,"DOMContentLoaded",Z),l.domLoaded||KO(n,"load",Z)};class Au{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=qO+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(s,l,h,O){const P=this;let Z;const J=window,he=ot=>{P.executeHandlers(Iy(ot||J.event),_e)};if(!s||lr(s)||Kf(s))return h;let _e;s[P.expando]?_e=s[P.expando]:(_e=P.count++,s[P.expando]=_e,P.events[_e]={}),O=O||s;const Ge=l.split(" ");let qe=Ge.length;for(;qe--;){let ot=Ge[qe],Et=he,Vt=!1,kt=!1;if(ot==="DOMContentLoaded"&&(ot="ready"),P.domLoaded&&ot==="ready"&&s.readyState==="complete"){h.call(O,Iy({type:ot}));continue}!P.hasFocusIn&&(ot==="focusin"||ot==="focusout")&&(Vt=!0,kt=ot==="focusin"?"focus":"blur",Et=It=>{const cn=Iy(It||J.event);cn.type=cn.type==="focus"?"focusin":"focusout",P.executeHandlers(cn,_e)}),Z=P.events[_e][ot],Z?ot==="ready"&&P.domLoaded?h(Iy({type:ot})):Z.push({func:h,scope:O}):(P.events[_e][ot]=Z=[{func:h,scope:O}],Z.fakeName=kt,Z.capture=Vt,Z.nativeHandler=Et,ot==="ready"?sw(s,Et,P):KO(s,kt||ot,Et,Vt))}return s=Z=null,h}unbind(s,l,h){if(!s||lr(s)||Kf(s))return this;const O=s[this.expando];if(O){let P=this.events[O];if(l){const Z=l.split(" ");let J=Z.length;for(;J--;){const he=Z[J],_e=P[he];if(_e){if(h){let Ge=_e.length;for(;Ge--;)if(_e[Ge].func===h){const qe=_e.nativeHandler,ot=_e.fakeName,Et=_e.capture,Vt=_e.slice(0,Ge).concat(_e.slice(Ge+1));Vt.nativeHandler=qe,Vt.fakeName=ot,Vt.capture=Et,P[he]=Vt}}(!h||_e.length===0)&&(delete P[he],g0(s,_e.fakeName||he,_e.nativeHandler,_e.capture))}}}else Bt(P,(Z,J)=>{g0(s,Z.fakeName||J,Z.nativeHandler,Z.capture)}),P={};for(const Z in P)if(it(P,Z))return this;delete this.events[O];try{delete s[this.expando]}catch{s[this.expando]=null}}return this}fire(s,l,h){return this.dispatch(s,l,h)}dispatch(s,l,h){if(!s||lr(s)||Kf(s))return this;const O=Iy({type:l,target:s},h);do{const P=s[this.expando];P&&this.executeHandlers(O,P),s=s.parentNode||s.ownerDocument||s.defaultView||s.parentWindow}while(s&&!O.isPropagationStopped());return this}clean(s){if(!s||lr(s)||Kf(s))return this;if(s[this.expando]&&this.unbind(s),s.getElementsByTagName||(s=s.document),s&&s.getElementsByTagName){this.unbind(s);const l=s.getElementsByTagName("*");let h=l.length;for(;h--;)s=l[h],s[this.expando]&&this.unbind(s)}return this}destroy(){this.events={}}cancel(s){return s&&(s.preventDefault(),s.stopImmediatePropagation()),!1}executeHandlers(s,l){const h=this.events[l],O=h&&h[s.type];if(O)for(let P=0,Z=O.length;P{Q(l)||l===""?ci(n,s):Ra(n,s,l)},Mg=n=>n.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),Th=(n,s)=>{let l=0;if(n)for(let h=n.nodeType,O=n.previousSibling;O;O=O.previousSibling){const P=O.nodeType;s&&lr(O)&&(P===h||!O.data.length)||(l++,h=P)}return l},aw=(n,s)=>{const l=Al(s,"style"),h=n.serialize(n.parse(l),Vs(s));tx(s,ex,h)},p0=(n,s)=>W(n)?it(q$,s)?n+"":n+"px":n,nx=(n,s,l)=>{const h=Mg(s);Q(l)||l===""?Jv(n,h):by(n,h,p0(l,h))},ik=(n,s,l)=>{const h=s.keep_values,O={set:(Z,J,he)=>{const _e=Yt.fromDom(Z);E(s.url_converter)&&B(J)&&(J=s.url_converter.call(s.url_converter_scope||l(),String(J),he,Z));const Ge="data-mce-"+he;tx(_e,Ge,J),tx(_e,he,J)},get:(Z,J)=>{const he=Yt.fromDom(Z);return Al(he,"data-mce-"+J)||Al(he,J)}},P={style:{set:(Z,J)=>{const he=Yt.fromDom(Z);h&&tx(he,ex,J),ci(he,"style"),M(J)&&nc(he,n.parse(J))},get:Z=>{const J=Yt.fromDom(Z),he=Al(J,ex)||Al(J,"style");return n.serialize(n.parse(he),Vs(J))}}};return h&&(P.href=P.src=O),P},Da=(n,s={})=>{const l={},h=window,O={};let P=0;const Z=!0,J=!0,he=GS.forElement(Yt.fromDom(n),{contentCssCors:s.contentCssCors,referrerPolicy:s.referrerPolicy}),_e=[],Ge=s.schema?s.schema:Cm({}),qe=GO({url_converter:s.url_converter,url_converter_scope:s.url_converter_scope,force_hex_color:s.force_hex_color},s.schema),ot=s.ownEvents?new Au:Au.Event,Et=Ge.getBlockElements(),Vt=Ln=>M(Ln)?it(Et,Ln):Xr(Ln)&&(it(Et,Ln.nodeName)||ks(Ge,Ln)),kt=Ln=>Ln&&n&&M(Ln)?n.getElementById(Ln):Ln,It=Ln=>{const In=kt(Ln);return B(In)?Yt.fromDom(In):null},cn=(Ln,In,br="")=>{let hr;const mo=It(Ln);if(B(mo)&&kl(mo)){const bs=J2[In];bs&&bs.get?hr=bs.get(mo.dom,In):hr=Al(mo,In)}return B(hr)?hr:br},xn=Ln=>{const In=kt(Ln);return Q(In)?[]:In.attributes},bn=(Ln,In,br)=>{co(Ln,hr=>{if(Xr(hr)){const mo=Yt.fromDom(hr),bs=br===""?null:br,ja=Al(mo,In),pf=J2[In];pf&&pf.set?pf.set(mo.dom,bs,In):tx(mo,In,bs),ja!==bs&&s.onSetAttrib&&s.onSetAttrib({attrElm:mo.dom,attrName:In,attrValue:bs})}})},$n=(Ln,In)=>Ln.cloneNode(In),rr=()=>s.root_element||n.body,gr=Ln=>{const In=Cy(Ln);return{x:In.x,y:In.y,w:In.width,h:In.height}},Qr=(Ln,In)=>Ea(n.body,kt(Ln),In),zn=(Ln,In,br)=>{co(Ln,hr=>{const mo=Yt.fromDom(hr);nx(mo,In,br),s.update_styles&&aw(qe,mo)})},Bn=(Ln,In)=>{co(Ln,br=>{const hr=Yt.fromDom(br);Bt(In,(mo,bs)=>{nx(hr,bs,mo)}),s.update_styles&&aw(qe,hr)})},tr=(Ln,In,br)=>{const hr=kt(Ln);if(!(Q(hr)||!zl(hr)&&!HS(hr)))return br?wi(Yt.fromDom(hr),Mg(In)):(In=In.replace(/-(\D)/g,(mo,bs)=>bs.toUpperCase()),In==="float"&&(In="cssFloat"),hr.style?hr.style[In]:void 0)},eo=Ln=>{const In=kt(Ln);if(!In)return{w:0,h:0};let br=tr(In,"width"),hr=tr(In,"height");return(!br||br.indexOf("px")===-1)&&(br="0"),(!hr||hr.indexOf("px")===-1)&&(hr="0"),{w:parseInt(br,10)||In.offsetWidth||In.clientWidth,h:parseInt(hr,10)||In.offsetHeight||In.clientHeight}},po=Ln=>{const In=kt(Ln),br=Qr(In),hr=eo(In);return{x:br.x,y:br.y,w:hr.w,h:hr.h}},ls=(Ln,In)=>{if(!Ln)return!1;const br=N(Ln)?Ln:[Ln];return De(br,hr=>Hu(Yt.fromDom(hr),In))},ys=(Ln,In,br,hr)=>{const mo=[];let bs=kt(Ln);hr=hr===void 0;const ja=br||(rr().nodeName!=="BODY"?rr().parentNode:null);if(M(In))if(In==="*")In=Xr;else{const pf=In;In=fc=>ls(fc,pf)}for(;bs&&!(bs===ja||Q(bs.nodeType)||Tg(bs)||da(bs));){if(!In||In(bs))if(hr)mo.push(bs);else return[bs];bs=bs.parentNode}return hr?mo:null},ma=(Ln,In,br)=>{const hr=ys(Ln,In,br,!1);return hr&&hr.length>0?hr[0]:null},$s=(Ln,In,br)=>{let hr=In;if(Ln){M(In)&&(hr=mo=>ls(mo,In));for(let mo=Ln[br];mo;mo=mo[br])if(E(hr)&&hr(mo))return mo}return null},hi=(Ln,In)=>$s(Ln,In,"nextSibling"),uc=(Ln,In)=>$s(Ln,In,"previousSibling"),ga=Ln=>E(Ln.querySelectorAll),Cr=(Ln,In)=>{var br,hr;const mo=(hr=(br=kt(In))!==null&&br!==void 0?br:s.root_element)!==null&&hr!==void 0?hr:n;return ga(mo)?tt(mo.querySelectorAll(Ln)):[]},co=function(Ln,In,br){const hr=br??this;if(N(Ln)){const mo=[];return JO(Ln,(bs,ja)=>{const pf=kt(bs);pf&&mo.push(In.call(hr,pf,ja))}),mo}else{const mo=kt(Ln);return mo?In.call(hr,mo):!1}},Zs=(Ln,In)=>{co(Ln,br=>{Bt(In,(hr,mo)=>{bn(br,mo,hr)})})},Ss=(Ln,In)=>{co(Ln,br=>{const hr=Yt.fromDom(br);gm(hr,In)})},ro=(Ln,In,br,hr,mo)=>co(Ln,bs=>{const ja=M(In)?n.createElement(In):In;return B(br)&&Zs(ja,br),hr&&(!M(hr)&&hr.nodeType?ja.appendChild(hr):M(hr)&&Ss(ja,hr)),mo?ja:bs.appendChild(ja)}),Lo=(Ln,In,br)=>ro(n.createElement(Ln),Ln,In,br,!0),yr=Pg.decode,Bo=Pg.encodeAllRaw,Ls=(Ln,In,br="")=>{let hr="<"+Ln;for(const mo in In)ut(In,mo)&&(hr+=" "+mo+'="'+Bo(In[mo])+'"');return Ct(br)&&it(Ge.getVoidElements(),Ln)?hr+" />":hr+">"+br+""},Aa=Ln=>{const In=n.createElement("div"),br=n.createDocumentFragment();br.appendChild(In),Ln&&(In.innerHTML=Ln);let hr;for(;hr=In.firstChild;)br.appendChild(hr);return br.removeChild(In),br},Sa=(Ln,In)=>co(Ln,br=>{const hr=Yt.fromDom(br);return In&&re(ol(hr),mo=>{Zi(mo)&&mo.dom.length===0?Ks(mo):Ui(hr,mo)}),Ks(hr),hr.dom}),$l=Ln=>co(Ln,In=>{const br=In.attributes;for(let hr=br.length-1;hr>=0;hr--)In.removeAttributeNode(br.item(hr))}),Xh=Ln=>qe.parse(Ln),zf=(Ln,In)=>qe.serialize(Ln,In),$u=Ln=>{if(hp!==Da.DOM&&n===document){if(l[Ln])return;l[Ln]=!0}let In=n.getElementById("mceDefaultStyles");if(!In){In=n.createElement("style"),In.id="mceDefaultStyles",In.type="text/css";const br=n.head;br.firstChild?br.insertBefore(In,br.firstChild):br.appendChild(In)}In.styleSheet?In.styleSheet.cssText+=Ln:In.appendChild(n.createTextNode(Ln))},sh=Ln=>{Ln||(Ln=""),re(Ln.split(","),In=>{O[In]=!0,he.load(In).catch(ie)})},Wo=(Ln,In,br)=>{co(Ln,hr=>{if(Xr(hr)){const mo=Yt.fromDom(hr),bs=In.split(" ");re(bs,ja=>{B(br)?(br?cm:um)(mo,ja):MO(mo,ja)})}})},Hs=(Ln,In)=>{Wo(Ln,In,!0)},Pa=(Ln,In)=>{Wo(Ln,In,!1)},oi=(Ln,In)=>{const br=It(Ln),hr=In.split(" ");return B(br)&&Xe(hr,mo=>gh(br,mo))},Ua=Ln=>{co(Ln,In=>Jv(Yt.fromDom(In),"display"))},gf=Ln=>{co(Ln,In=>by(Yt.fromDom(In),"display","none"))},Gh=Ln=>{const In=It(Ln);return B(In)&&Qa(Hi(In,"display"),"none")},_v=Ln=>(Ln||"mce_")+P++,OP=Ln=>{const In=It(Ln);return B(In)?Xr(In.dom)?In.dom.outerHTML:e0(In):""},tC=(Ln,In)=>{co(Ln,br=>{Xr(br)&&(br.outerHTML=In)})},xP=(Ln,In)=>{const br=kt(In);return co(Ln,hr=>{const mo=br==null?void 0:br.parentNode,bs=br==null?void 0:br.nextSibling;return mo&&(bs?mo.insertBefore(hr,bs):mo.appendChild(hr)),hr})},j2=(Ln,In,br)=>co(In,hr=>{var mo;const bs=N(In)?Ln.cloneNode(!0):Ln;return br&&JO(ak(hr.childNodes),ja=>{bs.appendChild(ja)}),(mo=hr.parentNode)===null||mo===void 0||mo.replaceChild(bs,hr),hr}),SP=(Ln,In)=>{if(Ln.nodeName!==In.toUpperCase()){const br=Lo(In);return JO(xn(Ln),hr=>{bn(br,hr.nodeName,cn(Ln,hr.nodeName))}),j2(br,Ln,!0),br}else return Ln},q2=(Ln,In)=>{let br=Ln;for(;br;){let hr=In;for(;hr&&br!==hr;)hr=hr.parentNode;if(br===hr)break;br=br.parentNode}return!br&&Ln.ownerDocument?Ln.ownerDocument.documentElement:br},_1=Ln=>{if(Xr(Ln)){const In=Ln.nodeName.toLowerCase()==="a"&&!cn(Ln,"href")&&cn(Ln,"id");if(cn(Ln,"name")||cn(Ln,"data-mce-bookmark")||In)return!0}return!1},jh=(Ln,In,br)=>{let hr=0;if(_1(Ln))return!1;const mo=Ln.firstChild;if(mo){const bs=new ca(mo,Ln),ja=Ge?Ge.getWhitespaceElements():{},pf=In||(Ge?Ge.getNonEmptyElements():null);let fc=mo;do{if(Xr(fc)){const aO=fc.getAttribute("data-mce-bogus");if(aO){fc=bs.next(aO==="all");continue}const ah=fc.nodeName.toLowerCase();if(pf&&pf[ah]){if(ah==="br"){hr++,fc=bs.next();continue}return!1}if(_1(fc))return!1}if(Kf(fc)||lr(fc)&&!Ba(fc.data)&&(!(br!=null&&br.includeZwsp)||!di(fc.data))||lr(fc)&&fc.parentNode&&ja[fc.parentNode.nodeName]&&Ba(fc.data))return!1;fc=bs.next()}while(fc)}return hr<=1},jm=()=>n.createRange(),K2=(Ln,In,br)=>{let hr=jm(),mo,bs;if(Ln&&In&&Ln.parentNode&&In.parentNode){const ja=Ln.parentNode;return hr.setStart(ja,Th(Ln)),hr.setEnd(In.parentNode,Th(In)),mo=hr.extractContents(),hr=jm(),hr.setStart(In.parentNode,Th(In)+1),hr.setEnd(ja,Th(Ln)+1),bs=hr.extractContents(),ja.insertBefore(Sm(hp,mo,Ge),Ln),br?ja.insertBefore(br,Ln):ja.insertBefore(In,Ln),ja.insertBefore(Sm(hp,bs,Ge),Ln),Sa(Ln),br||In}else return},oO=(Ln,In,br,hr)=>{if(N(Ln)){let mo=Ln.length;const bs=[];for(;mo--;)bs[mo]=oO(Ln[mo],In,br,hr);return bs}else return s.collect&&(Ln===n||Ln===h)&&_e.push([Ln,In,br,hr]),ot.bind(Ln,In,br,hr||hp)},nC=(Ln,In,br)=>{if(N(Ln)){let hr=Ln.length;const mo=[];for(;hr--;)mo[hr]=nC(Ln[hr],In,br);return mo}else{if(_e.length>0&&(Ln===n||Ln===h)){let hr=_e.length;for(;hr--;){const[mo,bs,ja]=_e[hr];Ln===mo&&(!In||In===bs)&&(!br||br===ja)&&ot.unbind(mo,bs,ja)}}return ot.unbind(Ln,In,br)}},qm=(Ln,In,br)=>ot.dispatch(Ln,In,br),wP=(Ln,In,br)=>ot.dispatch(Ln,In,br),rC=Ln=>{if(Ln&&zl(Ln)){const In=Ln.getAttribute("data-mce-contenteditable");return In&&In!=="inherit"?In:Ln.contentEditable!=="inherit"?Ln.contentEditable:null}else return null},hp={doc:n,settings:s,win:h,files:O,stdMode:Z,boxModel:J,styleSheetLoader:he,boundEvents:_e,styles:qe,schema:Ge,events:ot,isBlock:Vt,root:null,clone:$n,getRoot:rr,getViewPort:gr,getRect:po,getSize:eo,getParent:ma,getParents:ys,get:kt,getNext:hi,getPrev:uc,select:Cr,is:ls,add:ro,create:Lo,createHTML:Ls,createFragment:Aa,remove:Sa,setStyle:zn,getStyle:tr,setStyles:Bn,removeAllAttribs:$l,setAttrib:bn,setAttribs:Zs,getAttrib:cn,getPos:Qr,parseStyle:Xh,serializeStyle:zf,addStyle:$u,loadCSS:sh,addClass:Hs,removeClass:Pa,hasClass:oi,toggleClass:Wo,show:Ua,hide:gf,isHidden:Gh,uniqueId:_v,setHTML:Ss,getOuterHTML:OP,setOuterHTML:tC,decode:yr,encode:Bo,insertAfter:xP,replace:j2,rename:SP,findCommonAncestor:q2,run:co,getAttribs:xn,isEmpty:jh,createRng:jm,nodeIndex:Th,split:K2,bind:oO,unbind:nC,fire:wP,dispatch:qm,getContentEditable:rC,getContentEditableParent:Ln=>{const In=rr();let br=null;for(let hr=Ln;hr&&hr!==In&&(br=rC(hr),br===null);hr=hr.parentNode);return br},isEditable:Ln=>{if(B(Ln)){const In=Xr(Ln)?Ln:Ln.parentElement;return B(In)&&zl(In)&&jo(Yt.fromDom(In))}else return!1},destroy:()=>{if(_e.length>0){let Ln=_e.length;for(;Ln--;){const[In,br,hr]=_e[Ln];ot.unbind(In,br,hr)}}Bt(O,(Ln,In)=>{he.unload(In),delete O[In]})},isChildOf:(Ln,In)=>Ln===In||In.contains(Ln),dumpRng:Ln=>"startContainer: "+Ln.startContainer.nodeName+", startOffset: "+Ln.startOffset+", endContainer: "+Ln.endContainer.nodeName+", endOffset: "+Ln.endOffset},J2=ik(qe,s,ae(hp));return hp};Da.DOM=Da(document),Da.nodeIndex=Th;const zM=Da.DOM,ki=0,lk=1,Xa=2,v0=3;class Ji{constructor(s={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=s}_setReferrerPolicy(s){this.settings.referrerPolicy=s}loadScript(s){return new Promise((l,h)=>{const O=zM;let P;const Z=()=>{O.remove(_e),P&&(P.onerror=P.onload=P=null)},J=()=>{Z(),l()},he=()=>{Z(),h("Failed to load script: "+s)},_e=O.uniqueId();P=document.createElement("script"),P.id=_e,P.type="text/javascript",P.src=fr._addCacheSuffix(s),this.settings.referrerPolicy&&O.setAttrib(P,"referrerpolicy",this.settings.referrerPolicy),P.onload=J,P.onerror=he,(document.getElementsByTagName("head")[0]||document.body).appendChild(P)})}isDone(s){return this.states[s]===Xa}markDone(s){this.states[s]=Xa}add(s){const l=this;return l.queue.push(s),l.states[s]===void 0&&(l.states[s]=ki),new Promise((O,P)=>{l.scriptLoadedCallbacks[s]||(l.scriptLoadedCallbacks[s]=[]),l.scriptLoadedCallbacks[s].push({resolve:O,reject:P})})}load(s){return this.add(s)}remove(s){delete this.states[s],delete this.scriptLoadedCallbacks[s]}loadQueue(){const s=this.queue;return this.queue=[],this.loadScripts(s)}loadScripts(s){const l=this,h=(he,_e)=>{Sn(l.scriptLoadedCallbacks,_e).each(Ge=>{re(Ge,qe=>qe[he](_e))}),delete l.scriptLoadedCallbacks[_e]},O=he=>{const _e=se(he,Ge=>Ge.status==="rejected");return _e.length>0?Promise.reject(ze(_e,({reason:Ge})=>N(Ge)?Ge:[Ge])):Promise.resolve()},P=he=>Promise.allSettled(Ie(he,_e=>l.states[_e]===Xa?(h("resolve",_e),Promise.resolve()):l.states[_e]===v0?(h("reject",_e),Promise.reject(_e)):(l.states[_e]=lk,l.loadScript(_e).then(()=>{l.states[_e]=Xa,h("resolve",_e);const Ge=l.queue;return Ge.length>0?(l.queue=[],P(Ge).then(O)):Promise.resolve()},()=>(l.states[_e]=v0,h("reject",_e),Promise.reject(_e)))))),Z=he=>(l.loading=!0,P(he).then(_e=>{l.loading=!1;const Ge=l.queueLoadedCallbacks.shift();return G.from(Ge).each(ge),O(_e)})),J=gt(s);return l.loading?new Promise((he,_e)=>{l.queueLoadedCallbacks.push(()=>{Z(J).then(he,_e)})}):Z(J)}}Ji.ScriptLoader=new Ji;const ni=n=>{let s=n;return{get:()=>s,set:O=>{s=O}}},tf=(n,s)=>{const l=n.indexOf(s);return l!==-1&&n.indexOf(s,l+1)>l},iw=n=>I(n)&&it(n,"raw"),Xl=n=>N(n)&&n.length>1,Ny={},y0=ni("en"),Ch=()=>Sn(Ny,y0.get()),sd={getData:()=>vn(Ny,n=>({...n})),setCode:n=>{n&&y0.set(n)},getCode:()=>y0.get(),add:(n,s)=>{let l=Ny[n];l||(Ny[n]=l={});const h=Ie(Gt(s),O=>O.toLowerCase());Bt(s,(O,P)=>{const Z=P.toLowerCase();Z!==P&&tf(h,Z)?(it(s,Z)||(l[Z]=O),l[P]=O):l[Z]=O})},translate:n=>{const s=Ch().getOr({}),l=Z=>E(Z)?Object.prototype.toString.call(Z):h(Z)?"":""+Z,h=Z=>Z===""||Z===null||Z===void 0,O=Z=>{const J=l(Z);return it(s,J)?l(s[J]):Sn(s,J.toLowerCase()).map(l).getOr(J)},P=Z=>Z.replace(/{context:\w+}$/,"");if(h(n))return"";if(iw(n))return l(n.raw);if(Xl(n)){const Z=n.slice(1),J=O(n[0]).replace(/\{([0-9]+)\}/g,(he,_e)=>it(Z,_e)?l(Z[_e]):he);return P(J)}return P(O(n))},isRtl:()=>Ch().bind(n=>Sn(n,"_dir")).exists(n=>n==="rtl"),hasCode:n=>it(Ny,n)},Pc=()=>{const n=[],s={},l={},h=[],O=(kt,It)=>{const cn=se(h,xn=>xn.name===kt&&xn.state===It);re(cn,xn=>xn.resolve())},P=kt=>it(s,kt),Z=kt=>it(l,kt),J=kt=>{if(l[kt])return l[kt].instance},he=(kt,It)=>{const cn=sd.getCode(),xn=","+(It||"")+",";!cn||It&&xn.indexOf(","+cn+",")===-1||Ji.ScriptLoader.add(s[kt]+"/langs/"+cn+".js")},_e=(kt,It)=>{Pc.languageLoad!==!1&&(P(kt)?he(kt,It):Vt(kt,"loaded").then(()=>he(kt,It)))},Ge=(kt,It)=>(n.push(It),l[kt]={instance:It},O(kt,"added"),It),qe=kt=>{delete s[kt],delete l[kt]},ot=(kt,It)=>M(It)?M(kt)?{prefix:"",resource:It,suffix:""}:{prefix:kt.prefix,resource:It,suffix:kt.suffix}:It,Et=(kt,It)=>{if(s[kt])return Promise.resolve();let cn=M(It)?It:It.prefix+It.resource+It.suffix;cn.indexOf("/")!==0&&cn.indexOf("://")===-1&&(cn=Pc.baseURL+"/"+cn),s[kt]=cn.substring(0,cn.lastIndexOf("/"));const xn=()=>(O(kt,"loaded"),Promise.resolve());return l[kt]?xn():Ji.ScriptLoader.add(cn).then(xn)},Vt=(kt,It="added")=>It==="added"&&Z(kt)||It==="loaded"&&P(kt)?Promise.resolve():new Promise(cn=>{h.push({name:kt,state:It,resolve:cn})});return{items:n,urls:s,lookup:l,get:J,requireLangPack:_e,add:Ge,remove:qe,createUrl:ot,load:Et,waitFor:Vt}};Pc.languageLoad=!0,Pc.baseURL="",Pc.PluginManager=Pc(),Pc.ThemeManager=Pc(),Pc.ModelManager=Pc();const HM=n=>{const s=ni(G.none()),l=()=>s.get().each(n);return{clear:()=>{l(),s.set(G.none())},isSet:()=>s.get().isSome(),get:()=>s.get(),set:J=>{l(),s.set(G.some(J))}}},UM=n=>{const s=ni(G.none()),l=()=>s.get().each(J=>clearInterval(J));return{clear:()=>{l(),s.set(G.none())},isSet:()=>s.get().isSome(),get:()=>s.get(),set:J=>{l(),s.set(G.some(setInterval(J,n)))}}},_g=()=>{const n=HM(ie);return{...n,on:l=>n.get().each(l)}},By=(n,s)=>{let l=null;return{cancel:()=>{F(l)||(clearTimeout(l),l=null)},throttle:(...P)=>{F(l)&&(l=setTimeout(()=>{l=null,n.apply(null,P)},s))}}},rx=(n,s)=>{let l=null;const h=()=>{F(l)||(clearTimeout(l),l=null)};return{cancel:h,throttle:(...P)=>{h(),l=setTimeout(()=>{l=null,n.apply(null,P)},s)}}},ox=ae("mce-annotation"),kh=ae("data-mce-annotation"),O0=ae("data-mce-annotation-uid"),x0=ae("data-mce-annotation-active"),S0=ae("data-mce-annotation-classes"),tv=ae("data-mce-annotation-attrs"),uk=n=>s=>Gs(s,n),yi=(n,s)=>{const l=n.selection.getRng(),h=Yt.fromDom(l.startContainer),O=Yt.fromDom(n.getBody()),P=s.fold(()=>"."+ox(),he=>`[${kh()}="${he}"]`),Z=ph(h,l.startOffset).getOr(h);return Mf(Z,P,uk(O)).bind(he=>bc(he,`${O0()}`).bind(_e=>bc(he,`${kh()}`).map(Ge=>{const qe=dk(n,_e);return{uid:_e,name:Ge,elements:qe}})))},fk=n=>kl(n)&&gh(n,ox()),w0=(n,s)=>Cf(n,"data-mce-bogus")||Xp(n,'[data-mce-bogus="all"]',uk(s)),dk=(n,s)=>{const l=Yt.fromDom(n.getBody()),h=sl(l,`[${O0()}="${s}"]`);return se(h,O=>!w0(O,l))},sx=(n,s)=>{const l=Yt.fromDom(n.getBody()),h=sl(l,`[${kh()}="${s}"]`),O={};return re(h,P=>{if(!w0(P,l)){const Z=Al(P,O0()),J=Sn(O,Z).getOr([]);O[Z]=J.concat([P])}}),O},oc=(n,s)=>{const l=ni({}),h=()=>({listeners:[],previous:_g()}),O=(qe,ot)=>{P(qe,Et=>(ot(Et),Et))},P=(qe,ot)=>{const Et=l.get(),Vt=Sn(Et,qe).getOrThunk(h),kt=ot(Vt);Et[qe]=kt,l.set(Et)},Z=(qe,ot,Et)=>{O(qe,Vt=>{re(Vt.listeners,kt=>kt(!0,qe,{uid:ot,nodes:Ie(Et,It=>It.dom)}))})},J=qe=>{O(qe,ot=>{re(ot.listeners,Et=>Et(!1,qe))})},he=(qe,ot)=>{re(dk(n,qe),Et=>{ot?Ra(Et,x0(),"true"):ci(Et,x0())})},_e=rx(()=>{const qe=je(s.getNames());re(qe,ot=>{P(ot,Et=>{const Vt=Et.previous.get();return yi(n,G.some(ot)).fold(()=>{Vt.each(kt=>{J(ot),Et.previous.clear(),he(kt,!1)})},({uid:kt,name:It,elements:cn})=>{Qa(Vt,kt)||(Vt.each(xn=>he(xn,!1)),Z(It,kt,cn),Et.previous.set(kt),he(kt,!0))}),{previous:Et.previous,listeners:Et.listeners}})})},30);return n.on("remove",()=>{_e.cancel()}),n.on("NodeChange",()=>{_e.throttle()}),{addListener:(qe,ot)=>{P(qe,Et=>({previous:Et.previous,listeners:Et.listeners.concat([ot])}))}}},nf=(n,s)=>{const l=kh(),h=P=>G.from(P.attr(l)).bind(s.lookup),O=P=>{var Z,J;P.attr(O0(),null),P.attr(kh(),null),P.attr(x0(),null);const he=G.from(P.attr(tv())).map(ot=>ot.split(",")).getOr([]),_e=G.from(P.attr(S0())).map(ot=>ot.split(",")).getOr([]);re(he,ot=>P.attr(ot,null));const Ge=(J=(Z=P.attr("class"))===null||Z===void 0?void 0:Z.split(" "))!==null&&J!==void 0?J:[],qe=pt(Ge,[ox()].concat(_e));P.attr("class",qe.length>0?qe.join(" "):null),P.attr(S0(),null),P.attr(tv(),null)};n.serializer.addTempAttr(x0()),n.serializer.addAttributeFilter(l,P=>{for(const Z of P)h(Z).each(J=>{J.persistent===!1&&(Z.name==="span"?Z.unwrap():O(Z))})})},hk=()=>{const n={};return{register:(O,P)=>{n[O]={name:O,settings:P}},lookup:O=>Sn(n,O).map(P=>P.settings),getNames:()=>Gt(n)}};let ax=0;const nv=n=>{const l=new Date().getTime(),h=Math.floor(Math.random()*1e9);return ax++,n+"_"+h+ax+String(l)},WM=(n,s)=>{re(s,l=>{cm(n,l)})},mk=(n,s)=>{re(s,l=>{um(n,l)})},lw=(n,s)=>Yt.fromDom(n.dom.cloneNode(s)),Pu=n=>lw(n,!1),ix=n=>lw(n,!0),Ai=(n,s)=>{const l=Yt.fromTag(s),h=Bp(n);return Su(l,h),l},Vd=(n,s)=>{const l=Ai(n,s);Yu(n,l);const h=ol(n);return Ta(l,h),Ks(n),l},T0=(n,s,l=ne)=>{const h=new ca(n,s),O=P=>{let Z;do Z=h[P]();while(Z&&!lr(Z)&&!l(Z));return G.from(Z).filter(lr)};return{current:()=>G.from(h.current()).filter(lr),next:()=>O("next"),prev:()=>O("prev"),prev2:()=>O("prev2")}},Rg=(n,s)=>{const l=s||(Z=>n.isBlock(Z)||aa(Z)||Os(Z)),h=(Z,J,he,_e)=>{if(lr(Z)){const Ge=_e(Z,J,Z.data);if(Ge!==-1)return G.some({container:Z,offset:Ge})}return he().bind(Ge=>h(Ge.container,Ge.offset,he,_e))};return{backwards:(Z,J,he,_e)=>{const Ge=T0(Z,_e??n.getRoot(),l);return h(Z,J,()=>Ge.prev().map(qe=>({container:qe,offset:qe.length})),he).getOrNull()},forwards:(Z,J,he,_e)=>{const Ge=T0(Z,_e??n.getRoot(),l);return h(Z,J,()=>Ge.next().map(qe=>({container:qe,offset:0})),he).getOrNull()}}},rv=Math.round,ov=n=>n?{left:rv(n.left),top:rv(n.top),bottom:rv(n.bottom),right:rv(n.right),width:rv(n.width),height:rv(n.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Am=(n,s)=>(n=ov(n),s||(n.left=n.left+n.width),n.right=n.left,n.width=0,n),gk=(n,s)=>n.left===s.left&&n.top===s.top&&n.bottom===s.bottom&&n.right===s.right,sv=(n,s,l)=>n>=0&&n<=Math.min(s.height,l.height)/2,Dg=(n,s)=>{const l=Math.min(s.height/2,n.height/2);return n.bottom-ls.bottom?!1:sv(s.top-n.bottom,n,s)},av=(n,s)=>n.top>s.bottom?!0:n.bottoms>=n.left&&s<=n.right&&l>=n.top&&l<=n.bottom,YM=n=>oe(n,(s,l)=>s.fold(()=>G.some(l),h=>{const O=Math.min(l.left,h.left),P=Math.min(l.top,h.top),Z=Math.max(l.right,h.right),J=Math.max(l.bottom,h.bottom);return G.some({top:P,right:Z,bottom:J,left:O,width:Z-O,height:J-P})}),G.none()),cw=(n,s,l)=>{const h=Math.max(Math.min(s,n.left+n.width),n.left),O=Math.max(Math.min(l,n.top+n.height),n.top);return Math.sqrt((s-h)*(s-h)+(l-O)*(l-O))},XM=(n,s)=>Math.max(0,Math.min(n.bottom,s.bottom)-Math.max(n.top,s.top)),lx=(n,s,l)=>Math.min(Math.max(n,s),l),uw=n=>{const s=n.startContainer,l=n.startOffset;return s===n.endContainer&&s.hasChildNodes()&&n.endOffset===l+1?s.childNodes[l]:null},Mu=(n,s)=>{if(Xr(n)&&n.hasChildNodes()){const l=n.childNodes,h=lx(s,0,l.length-1);return l[h]}else return n},vk=(n,s)=>{if(!(s<0&&Xr(n)&&n.hasChildNodes()))return Mu(n,s)},C0=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),yk=n=>M(n)&&n.charCodeAt(0)>=768&&C0.test(n),GM=(...n)=>s=>{for(let l=0;ls=>{for(let l=0;ln?n.createRange():Da.DOM.createRng(),Lg=n=>M(n)&&/[\r\n\t ]/.test(n),hw=n=>!!n.setStart&&!!n.setEnd,ux=n=>{const s=n.startContainer,l=n.startOffset;if(Lg(n.toString())&&fw(s.parentNode)&&lr(s)){const h=s.data;if(Lg(h[l-1])||Lg(h[l+1]))return!0}return!1},Vy=n=>{const s=n.ownerDocument,l=Ah(s),h=s.createTextNode(zs),O=n.parentNode;O.insertBefore(h,n),l.setStart(h,0),l.setEnd(h,1);const P=ov(l.getBoundingClientRect());return O.removeChild(h),P},mw=n=>{const s=n.startContainer,l=n.endContainer,h=n.startOffset,O=n.endOffset;if(s===l&&lr(l)&&h===0&&O===1){const P=n.cloneRange();return P.setEndAfter(l),Ph(P)}else return null},fx=n=>n.left===0&&n.right===0&&n.top===0&&n.bottom===0,Ph=n=>{var s;let l;const h=n.getClientRects();return h.length>0?l=ov(h[0]):l=ov(n.getBoundingClientRect()),!hw(n)&&Fy(n)&&fx(l)?Vy(n):fx(l)&&hw(n)&&(s=mw(n))!==null&&s!==void 0?s:l},Pm=(n,s)=>{const l=Am(n,s);return l.width=1,l.right=l.left+1,l},jM=n=>{const s=[],l=Z=>{Z.height!==0&&(s.length>0&&gk(Z,s[s.length-1])||s.push(Z))},h=(Z,J)=>{const he=Ah(Z.ownerDocument);if(J0&&(he.setStart(Z,J-1),he.setEnd(Z,J),ux(he)||l(Pm(Ph(he),!1))),J{const h=()=>(ha(n),s===0),O=()=>ha(n)?s>=n.data.length:s>=n.childNodes.length,P=()=>{const Ge=Ah(n.ownerDocument);return Ge.setStart(n,s),Ge.setEnd(n,s),Ge},Z=()=>(l||(l=jM(Nn(n,s))),l),J=()=>Z().length>0,he=Ge=>Ge&&n===Ge.container()&&s===Ge.offset(),_e=Ge=>cl(n,Ge?s-1:s);return{container:ae(n),offset:ae(s),toRange:P,getClientRects:Z,isVisible:J,isAtStart:h,isAtEnd:O,isEqual:he,getNode:_e}};Nn.fromRangeStart=n=>Nn(n.startContainer,n.startOffset),Nn.fromRangeEnd=n=>Nn(n.endContainer,n.endOffset),Nn.after=n=>Nn(n.parentNode,dw(n)+1),Nn.before=n=>Nn(n.parentNode,dw(n)),Nn.isAbove=(n,s)=>Fa(yt(s.getClientRects()),ft(n.getClientRects()),Dg).getOr(!1),Nn.isBelow=(n,s)=>Fa(ft(s.getClientRects()),yt(n.getClientRects()),av).getOr(!1),Nn.isAtStart=n=>n?n.isAtStart():!1,Nn.isAtEnd=n=>n?n.isAtEnd():!1,Nn.isTextPosition=n=>n?lr(n.container()):!1,Nn.isElementPosition=n=>!Nn.isTextPosition(n);const zy=(n,s)=>{lr(s)&&s.data.length===0&&n.remove(s)},k0=(n,s,l)=>{s.insertNode(l),zy(n,l.previousSibling),zy(n,l.nextSibling)},rf=(n,s,l)=>{const h=G.from(l.firstChild),O=G.from(l.lastChild);s.insertNode(l),h.each(P=>zy(n,P.previousSibling)),O.each(P=>zy(n,P.nextSibling))},gw=(n,s,l)=>{da(l)?rf(n,s,l):k0(n,s,l)},Ha=lr,dx=_f,Mm=Da.nodeIndex,pw=n=>{const s=n.parentNode;return dx(s)?pw(s):s},hx=n=>n?dn(n.childNodes,(s,l)=>(dx(l)&&l.nodeName!=="BR"?s=s.concat(hx(l)):s.push(l),s),[]):[],vw=(n,s)=>{let l=n;for(;(l=l.previousSibling)&&Ha(l);)s+=l.data.length;return s},Zy=n=>s=>n===s,A0=n=>{let s,l;s=hx(pw(n)),l=nn(s,Zy(n),n),s=s.slice(0,l+1);const h=dn(s,(O,P,Z)=>(Ha(P)&&Ha(s[Z-1])&&O++,O),0);return s=Tt(s,vi([n.nodeName])),l=nn(s,Zy(n),n),l-h},yw=n=>(Ha(n)?"text()":n.nodeName.toLowerCase())+"["+A0(n)+"]",qM=(n,s,l)=>{const h=[];for(let O=s.parentNode;O&&O!==n&&!(l&&l(O));O=O.parentNode)h.push(O);return h},Wc=(n,s)=>{let l=[],h=s.container(),O=s.offset(),P;if(Ha(h))P=vw(h,O);else{const J=h.childNodes;O>=J.length?(P="after",O=J.length-1):P="before",h=J[O]}l.push(yw(h));let Z=qM(n,h);return Z=Tt(Z,be(_f)),l=l.concat(mt(Z,J=>yw(J))),l.reverse().join("/")+","+P},ul=(n,s,l)=>{let h=hx(n);return h=Tt(h,(O,P)=>!Ha(O)||!Ha(h[P-1])),h=Tt(h,vi([s])),h[l]},Gl=(n,s)=>{let l=n,h=0;for(;Ha(l);){const O=l.data.length;if(s>=h&&s<=h+O){n=l,s=s-h;break}if(!Ha(l.nextSibling)){n=l,s=O;break}h+=O,l=l.nextSibling}return Ha(n)&&s>n.data.length&&(s=n.data.length),Nn(n,s)},Yc=(n,s)=>{if(!s)return null;const l=s.split(","),h=l[0].split("/"),O=l.length>1?l[1]:"before",P=dn(h,(Z,J)=>{const he=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(J);return he?(he[1]==="text()"&&(he[1]="#text"),ul(Z,he[1],parseInt(he[2],10))):null},n);if(!P)return null;if(!Ha(P)&&P.parentNode){let Z;return O==="after"?Z=Mm(P)+1:Z=Mm(P),Nn(P.parentNode,Z)}return Gl(P,parseInt(O,10))},sc=Os,Mc=(n,s,l)=>{let h=n(s.data.slice(0,l)).length;for(let O=s.previousSibling;O&&lr(O);O=O.previousSibling)h+=n(O.data).length;return h},fl=(n,s,l,h,O)=>{const P=O?h.startContainer:h.endContainer;let Z=O?h.startOffset:h.endOffset;const J=[],he=n.getRoot();if(lr(P))J.push(l?Mc(s,P,Z):Z);else{let _e=0;const Ge=P.childNodes;Z>=Ge.length&&Ge.length&&(_e=1,Z=Math.max(0,Ge.length-1)),J.push(n.nodeIndex(Ge[Z],l)+_e)}for(let _e=P;_e&&_e!==he;_e=_e.parentNode)J.push(n.nodeIndex(_e,l));return J},bw=(n,s,l,h)=>{const O=s.dom,P=fl(O,n,l,h,!0),Z=s.isForward(),J=yn(h)?{isFakeCaret:!0}:{};if(s.isCollapsed())return{start:P,forward:Z,...J};{const he=fl(O,n,l,h,!1);return{start:P,end:he,forward:Z,...J}}},Hy=(n,s,l)=>{let h=0;return fr.each(n.select(s),O=>{if(O.getAttribute("data-mce-bogus")!=="all"){if(O===l)return!1;h++;return}}),h},Ow=(n,s)=>{let l=s?n.startContainer:n.endContainer,h=s?n.startOffset:n.endOffset;if(Xr(l)&&l.nodeName==="TR"){const O=l.childNodes;l=O[Math.min(s?h:h-1,O.length-1)],l&&(h=s?0:l.childNodes.length,s?n.setStart(l,h):n.setEnd(l,h))}},Uy=n=>(Ow(n,!0),Ow(n,!1),n),xw=(n,s)=>{if(Xr(n)&&(n=Mu(n,s),sc(n)))return n;if(bt(n)){lr(n)&&rt(n)&&(n=n.parentNode);let l=n.previousSibling;if(sc(l)||(l=n.nextSibling,sc(l)))return l}},bk=n=>xw(n.startContainer,n.startOffset)||xw(n.endContainer,n.endOffset),mx=(n,s,l)=>{const h=l.getNode(),O=l.getRng();if(h.nodeName==="IMG"||sc(h)){const Z=h.nodeName;return{name:Z,index:Hy(l.dom,Z,h)}}const P=bk(O);if(P){const Z=P.tagName;return{name:Z,index:Hy(l.dom,Z,P)}}return bw(n,l,s,O)},Sw=n=>{const s=n.getRng();return{start:Wc(n.dom.getRoot(),Nn.fromRangeStart(s)),end:Wc(n.dom.getRoot(),Nn.fromRangeEnd(s)),forward:n.isForward()}},KM=n=>({rng:n.getRng(),forward:n.isForward()}),JM=(n,s,l)=>{const h={"data-mce-type":"bookmark",id:s,style:"overflow:hidden;line-height:0px"};return l?n.create("span",h,""):n.create("span",h)},Ok=(n,s)=>{const l=n.dom;let h=n.getRng();const O=l.uniqueId(),P=n.isCollapsed(),Z=n.getNode(),J=Z.nodeName,he=n.isForward();if(J==="IMG")return{name:J,index:Hy(l,J,Z)};const _e=Uy(h.cloneRange());if(!P){_e.collapse(!1);const qe=JM(l,O+"_end",s);gw(l,_e,qe)}h=Uy(h),h.collapse(!0);const Ge=JM(l,O+"_start",s);return gw(l,h,Ge),n.moveToBookmark({id:O,keep:!0,forward:he}),{id:O,forward:he}},eE=(n,s,l=!1)=>s===2?mx(Pe,l,n):s===3?Sw(n):s?KM(n):Ok(n,!1),P0=ee(mx,q,!0),gx=n=>{const s=P=>P(n),l=ae(n),h=()=>O,O={tag:!0,inner:n,fold:(P,Z)=>Z(n),isValue:pe,isError:ne,map:P=>iu.value(P(n)),mapError:h,bind:s,exists:s,forall:s,getOr:l,or:h,getOrThunk:l,orThunk:h,getOrDie:l,each:P=>{P(n)},toOptional:()=>G.some(n)};return O},xk=n=>{const s=()=>l,l={tag:!1,inner:n,fold:(h,O)=>h(n),isValue:ne,isError:pe,map:s,mapError:h=>iu.error(h(n)),bind:s,exists:ne,forall:pe,getOr:q,or:q,getOrThunk:Be,orThunk:Be,getOrDie:Te(String(n)),each:ie,toOptional:G.none};return l},iu={value:gx,error:xk,fromOption:(n,s)=>n.fold(()=>xk(s),gx)},Zd={generate:n=>{if(!N(n))throw new Error("cases must be an array");if(n.length===0)throw new Error("there must be at least one case");const s=[],l={};return re(n,(h,O)=>{const P=Gt(h);if(P.length!==1)throw new Error("one and only one name per case");const Z=P[0],J=h[Z];if(l[Z]!==void 0)throw new Error("duplicate key detected:"+Z);if(Z==="cata")throw new Error("cannot have a case named cata (sorry)");if(!N(J))throw new Error("case arguments must be an array");s.push(Z),l[Z]=(...he)=>{const _e=he.length;if(_e!==J.length)throw new Error("Wrong number of arguments to case "+Z+". Expected "+J.length+" ("+J+"), got "+_e);return{fold:(...qe)=>{if(qe.length!==n.length)throw new Error("Wrong number of arguments to fold. Expected "+n.length+", got "+qe.length);return qe[O].apply(null,he)},match:qe=>{const ot=Gt(qe);if(s.length!==ot.length)throw new Error("Wrong number of arguments to match. Expected: "+s.join(",")+` +Actual: `+ot.join(","));if(!Xe(s,Vt=>Ze(ot,Vt)))throw new Error("Not all branches were specified when using match. Specified: "+ot.join(", ")+` +Required: `+s.join(", "));return qe[Z].apply(null,he)},log:qe=>{console.log(qe,{constructors:s,constructor:Z,params:he})}}}}),l}};Zd.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const pr=n=>{const s=[],l=[];return re(n,h=>{h.fold(O=>{s.push(O)},O=>{l.push(O)})}),{errors:s,values:l}},ww=n=>n.type==="inline-command"||n.type==="inline-format",dl=n=>n.type==="block-command"||n.type==="block-format",Sk=n=>{const s=h=>iu.error({message:h,pattern:n}),l=(h,O,P)=>{if(n.format!==void 0){let Z;if(N(n.format)){if(!Xe(n.format,M))return s(h+" pattern has non-string items in the `format` array");Z=n.format}else if(M(n.format))Z=[n.format];else return s(h+" pattern has non-string `format` parameter");return iu.value(O(Z))}else return n.cmd!==void 0?M(n.cmd)?iu.value(P(n.cmd,n.value)):s(h+" pattern has non-string `cmd` parameter"):s(h+" pattern is missing both `format` and `cmd` parameters")};if(!I(n))return s("Raw pattern is not an object");if(!M(n.start))return s("Raw pattern is missing `start` parameter");if(n.end!==void 0){if(!M(n.end))return s("Inline pattern has non-string `end` parameter");if(n.start.length===0&&n.end.length===0)return s("Inline pattern has empty `start` and `end` parameters");let h=n.start,O=n.end;return O.length===0&&(O=h,h=""),l("Inline",P=>({type:"inline-format",start:h,end:O,format:P}),(P,Z)=>({type:"inline-command",start:h,end:O,cmd:P,value:Z}))}else return n.replacement!==void 0?M(n.replacement)?n.start.length===0?s("Replacement pattern has empty `start` parameter"):iu.value({type:"inline-command",start:"",end:n.start,cmd:"mceInsertContent",value:n.replacement}):s("Replacement pattern has non-string `replacement` parameter"):n.start.length===0?s("Block pattern has empty `start` parameter"):l("Block",h=>({type:"block-format",start:n.start,format:h[0]}),(h,O)=>({type:"block-command",start:n.start,cmd:h,value:O}))},px=n=>se(n,dl),Tw=n=>se(n,ww),lu=(n,s)=>({inlinePatterns:Tw(n),blockPatterns:px(n),dynamicPatternsLookup:s}),tE=n=>{const s=pr(Ie(n,Sk));return re(s.errors,l=>console.error(l.message,l.pattern)),s.values},wk=n=>s=>{const l=n(s);return tE(l)},cu=ii().deviceType,M0=cu.isTouch(),Wy=Da.DOM,Mh=n=>{const s=n.indexOf("=")>0?n.split(/[;,](?![^=;,]*(?:[;,]|$))/):n.split(",");return oe(s,(l,h)=>{const O=h.split("="),P=O[0],Z=O.length>1?O[1]:P;return l[wr(P)]=wr(Z),l},{})},ad=n=>R(n,RegExp),Ur=n=>s=>s.options.get(n),of=n=>M(n)||I(n),Tk=(n,s="")=>l=>{const h=M(l);if(h)if(l.indexOf("=")!==-1){const O=Mh(l);return{value:Sn(O,n.id).getOr(s),valid:h}}else return{value:l,valid:h};else return{valid:!1,message:"Must be a string."}},Ck=n=>{const s=n.options.register;s("id",{processor:"string",default:n.id}),s("selector",{processor:"string"}),s("target",{processor:"object"}),s("suffix",{processor:"string"}),s("cache_suffix",{processor:"string"}),s("base_url",{processor:"string"}),s("referrer_policy",{processor:"string",default:""}),s("language_load",{processor:"boolean",default:!0}),s("inline",{processor:"boolean",default:!1}),s("iframe_attrs",{processor:"object",default:{}}),s("doctype",{processor:"string",default:""}),s("document_base_url",{processor:"string",default:n.documentBaseUrl}),s("body_id",{processor:Tk(n,"tinymce"),default:"tinymce"}),s("body_class",{processor:Tk(n),default:""}),s("content_security_policy",{processor:"string",default:""}),s("br_in_pre",{processor:"boolean",default:!0}),s("forced_root_block",{processor:l=>{const h=M(l)&&St(l);return h?{value:l,valid:h}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),s("forced_root_block_attrs",{processor:"object",default:{}}),s("newline_behavior",{processor:l=>{const h=Ze(["block","linebreak","invert","default"],l);return h?{value:l,valid:h}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),s("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),s("no_newline_selector",{processor:"string",default:""}),s("keep_styles",{processor:"boolean",default:!0}),s("end_container_on_empty_block",{processor:l=>z(l)?{valid:!0,value:l}:M(l)?{valid:!0,value:l}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),s("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),s("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),s("font_size_classes",{processor:"string",default:""}),s("automatic_uploads",{processor:"boolean",default:!0}),s("images_reuse_filename",{processor:"boolean",default:!1}),s("images_replace_blob_uris",{processor:"boolean",default:!0}),s("icons",{processor:"string",default:""}),s("icons_url",{processor:"string",default:""}),s("images_upload_url",{processor:"string",default:""}),s("images_upload_base_path",{processor:"string",default:""}),s("images_upload_credentials",{processor:"boolean",default:!1}),s("images_upload_handler",{processor:"function"}),s("language",{processor:"string",default:"en"}),s("language_url",{processor:"string",default:""}),s("entity_encoding",{processor:"string",default:"named"}),s("indent",{processor:"boolean",default:!0}),s("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),s("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),s("indent_use_margin",{processor:"boolean",default:!1}),s("indentation",{processor:"string",default:"40px"}),s("content_css",{processor:l=>{const h=l===!1||M(l)||Y(l,M);return h?M(l)?{value:Ie(l.split(","),wr),valid:h}:N(l)?{value:l,valid:h}:l===!1?{value:[],valid:h}:{value:l,valid:h}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:Iw(n)?[]:["default"]}),s("content_style",{processor:"string"}),s("content_css_cors",{processor:"boolean",default:!1}),s("font_css",{processor:l=>{const h=M(l)||Y(l,M);return h?{value:N(l)?l:Ie(l.split(","),wr),valid:h}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),s("inline_boundaries",{processor:"boolean",default:!0}),s("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),s("object_resizing",{processor:l=>{const h=z(l)||M(l);return h?l===!1||cu.isiPhone()||cu.isiPad()?{value:"",valid:h}:{value:l===!0?"table,img,figure.image,div,video,iframe":l,valid:h}:{valid:!1,message:"Must be boolean or a string"}},default:!M0}),s("resize_img_proportional",{processor:"boolean",default:!0}),s("event_root",{processor:"object"}),s("service_message",{processor:"string"}),s("theme",{processor:l=>l===!1||M(l)||E(l),default:"silver"}),s("theme_url",{processor:"string"}),s("formats",{processor:"object"}),s("format_empty_lines",{processor:"boolean",default:!1}),s("format_noneditable_selector",{processor:"string",default:""}),s("preview_styles",{processor:l=>{const h=l===!1||M(l);return h?{value:l===!1?"":l,valid:h}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),s("custom_ui_selector",{processor:"string",default:""}),s("hidden_input",{processor:"boolean",default:!0}),s("submit_patch",{processor:"boolean",default:!0}),s("encoding",{processor:"string"}),s("add_form_submit_trigger",{processor:"boolean",default:!0}),s("add_unload_trigger",{processor:"boolean",default:!0}),s("custom_undo_redo_levels",{processor:"number",default:0}),s("disable_nodechange",{processor:"boolean",default:!1}),s("readonly",{processor:"boolean",default:!1}),s("editable_root",{processor:"boolean",default:!0}),s("plugins",{processor:"string[]",default:[]}),s("external_plugins",{processor:"object"}),s("forced_plugins",{processor:"string[]"}),s("model",{processor:"string",default:n.hasPlugin("rtc")?"plugin":"dom"}),s("model_url",{processor:"string"}),s("block_unsupported_drop",{processor:"boolean",default:!0}),s("visual",{processor:"boolean",default:!0}),s("visual_table_class",{processor:"string",default:"mce-item-table"}),s("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),s("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),s("setup",{processor:"function"}),s("init_instance_callback",{processor:"function"}),s("url_converter",{processor:"function",default:n.convertURL}),s("url_converter_scope",{processor:"object",default:n}),s("urlconverter_callback",{processor:"function"}),s("allow_conditional_comments",{processor:"boolean",default:!1}),s("allow_html_data_urls",{processor:"boolean",default:!1}),s("allow_svg_data_urls",{processor:"boolean"}),s("allow_html_in_named_anchor",{processor:"boolean",default:!1}),s("allow_script_urls",{processor:"boolean",default:!1}),s("allow_unsafe_link_target",{processor:"boolean",default:!1}),s("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),s("fix_list_elements",{processor:"boolean",default:!1}),s("preserve_cdata",{processor:"boolean",default:!1}),s("remove_trailing_brs",{processor:"boolean",default:!0}),s("pad_empty_with_br",{processor:"boolean",default:!1}),s("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),s("element_format",{processor:"string",default:"html"}),s("entities",{processor:"string"}),s("schema",{processor:"string",default:"html5"}),s("convert_urls",{processor:"boolean",default:!0}),s("relative_urls",{processor:"boolean",default:!0}),s("remove_script_host",{processor:"boolean",default:!0}),s("custom_elements",{processor:"string"}),s("extended_valid_elements",{processor:"string"}),s("invalid_elements",{processor:"string"}),s("invalid_styles",{processor:of}),s("valid_children",{processor:"string"}),s("valid_classes",{processor:of}),s("valid_elements",{processor:"string"}),s("valid_styles",{processor:of}),s("verify_html",{processor:"boolean",default:!0}),s("auto_focus",{processor:l=>M(l)||l===!0}),s("browser_spellcheck",{processor:"boolean",default:!1}),s("protect",{processor:"array"}),s("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),s("deprecation_warnings",{processor:"boolean",default:!0}),s("a11y_advanced_options",{processor:"boolean",default:!1}),s("api_key",{processor:"string"}),s("paste_block_drop",{processor:"boolean",default:!1}),s("paste_data_images",{processor:"boolean",default:!0}),s("paste_preprocess",{processor:"function"}),s("paste_postprocess",{processor:"function"}),s("paste_webkit_styles",{processor:"string",default:"none"}),s("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),s("paste_merge_formats",{processor:"boolean",default:!0}),s("smart_paste",{processor:"boolean",default:!0}),s("paste_as_text",{processor:"boolean",default:!1}),s("paste_tab_spaces",{processor:"number",default:4}),s("text_patterns",{processor:l=>Y(l,I)||l===!1?{value:tE(l===!1?[]:l),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"1. ",cmd:"InsertOrderedList"},{start:"* ",cmd:"InsertUnorderedList"},{start:"- ",cmd:"InsertUnorderedList"}]}),s("text_patterns_lookup",{processor:l=>E(l)?{value:wk(l),valid:!0}:{valid:!1,message:"Must be a single function"},default:l=>[]}),s("noneditable_class",{processor:"string",default:"mceNonEditable"}),s("editable_class",{processor:"string",default:"mceEditable"}),s("noneditable_regexp",{processor:l=>Y(l,ad)?{value:l,valid:!0}:ad(l)?{value:[l],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),s("table_tab_navigation",{processor:"boolean",default:!0}),s("highlight_on_focus",{processor:"boolean",default:!1}),s("xss_sanitization",{processor:"boolean",default:!0}),s("details_initial_state",{processor:l=>{const h=Ze(["inherited","collapsed","expanded"],l);return h?{value:l,valid:h}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),s("details_serialized_state",{processor:l=>{const h=Ze(["inherited","collapsed","expanded"],l);return h?{value:l,valid:h}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),s("init_content_sync",{processor:"boolean",default:!1}),s("newdocument_content",{processor:"string",default:""}),s("force_hex_color",{processor:l=>{const h=["always","rgb_only","off"],O=Ze(h,l);return O?{value:l,valid:O}:{valid:!1,message:`Must be one of: ${h.join(", ")}.`}},default:"off"}),s("sandbox_iframes",{processor:"boolean",default:!1}),s("convert_unsafe_embeds",{processor:"boolean",default:!1}),n.on("ScriptsLoaded",()=>{s("directionality",{processor:"string",default:sd.isRtl()?"rtl":void 0}),s("placeholder",{processor:"string",default:Wy.getAttrib(n.getElement(),"placeholder")})})},Cw=Ur("iframe_attrs"),kk=Ur("doctype"),kw=Ur("document_base_url"),Aw=Ur("body_id"),nE=Ur("body_class"),Pw=Ur("content_security_policy"),rE=Ur("br_in_pre"),Ec=Ur("forced_root_block"),Yy=Ur("forced_root_block_attrs"),oE=Ur("newline_behavior"),sE=Ur("br_newline_selector"),Mw=Ur("no_newline_selector"),aE=Ur("keep_styles"),Ak=Ur("end_container_on_empty_block"),Pk=Ur("automatic_uploads"),Xy=Ur("images_reuse_filename"),Mk=Ur("images_replace_blob_uris"),Ew=Ur("icons"),iv=Ur("icons_url"),iE=Ur("images_upload_url"),lE=Ur("images_upload_base_path"),_w=Ur("images_upload_credentials"),cE=Ur("images_upload_handler"),Em=Ur("content_css_cors"),gs=Ur("referrer_policy"),Rw=Ur("language"),_c=Ur("language_url"),vx=Ur("indent_use_margin"),Dw=Ur("indentation"),$w=Ur("content_css"),yx=Ur("content_style"),Ek=Ur("font_css"),uE=Ur("directionality"),fE=Ur("inline_boundaries_selector"),E0=Ur("object_resizing"),_k=Ur("resize_img_proportional"),n9=Ur("placeholder"),Ig=Ur("event_root"),dE=Ur("service_message"),_0=Ur("theme"),hE=Ur("theme_url"),Lw=Ur("model"),Rk=Ur("model_url"),lv=Ur("inline_boundaries"),mE=Ur("formats"),Dk=Ur("preview_styles"),$k=Ur("format_empty_lines"),R0=Ur("format_noneditable_selector"),Lk=Ur("custom_ui_selector"),Iw=Ur("inline"),gE=Ur("hidden_input"),Ik=Ur("submit_patch"),Eh=Ur("add_form_submit_trigger"),Gy=Ur("add_unload_trigger"),jy=Ur("custom_undo_redo_levels"),bx=Ur("disable_nodechange"),qy=Ur("readonly"),Lf=Ur("editable_root"),D0=Ur("content_css_cors"),Ky=Ur("plugins"),Ng=Ur("external_plugins"),Ox=Ur("block_unsupported_drop"),pE=Ur("visual"),vE=Ur("visual_table_class"),Nk=Ur("visual_anchor_class"),yE=Ur("iframe_aria_text"),Nw=Ur("setup"),bE=Ur("init_instance_callback"),OE=Ur("urlconverter_callback"),Bk=Ur("auto_focus"),xE=Ur("browser_spellcheck"),Qk=Ur("protect"),SE=Ur("paste_block_drop"),xx=Ur("paste_data_images"),wE=Ur("paste_preprocess"),Fk=Ur("paste_postprocess"),$0=Ur("newdocument_content"),Bw=Ur("paste_webkit_styles"),Qw=Ur("paste_remove_styles_if_webkit"),Fw=Ur("paste_merge_formats"),Vk=Ur("smart_paste"),Vw=Ur("paste_as_text"),TE=Ur("paste_tab_spaces"),Sx=Ur("allow_html_data_urls"),wx=Ur("text_patterns"),CE=Ur("text_patterns_lookup"),zw=Ur("noneditable_class"),zk=Ur("editable_class"),kE=Ur("noneditable_regexp"),Zw=Ur("preserve_cdata"),AE=Ur("highlight_on_focus"),L0=Ur("xss_sanitization"),PE=Ur("init_content_sync"),Hw=n=>n.options.isSet("text_patterns_lookup"),ME=n=>fr.explode(n.options.get("font_size_style_values")),EE=n=>fr.explode(n.options.get("font_size_classes")),_E=n=>n.options.get("encoding")==="xml",Zk=n=>fr.explode(n.options.get("images_file_types")),RE=Ur("table_tab_navigation"),_l=Ur("details_initial_state"),r9=Ur("details_serialized_state"),I0=Ur("force_hex_color"),Tx=Ur("sandbox_iframes"),Hk=Xr,Uw=lr,Uk=n=>{const s=n.parentNode;s&&s.removeChild(n)},Wk=n=>{const s=Pe(n);return{count:n.length-s.length,text:s}},cv=n=>{let s;for(;(s=n.data.lastIndexOf(de))!==-1;)n.deleteData(s,1)},Jy=(n,s)=>(hl(n),s),DE=(n,s)=>{const l=Wk(n.data.substr(0,s.offset())),h=Wk(n.data.substr(s.offset()));return(l.text+h.text).length>0?(cv(n),Nn(n,s.offset()-l.count)):s},$E=(n,s)=>{const l=s.container(),h=$e(tt(l.childNodes),n).map(O=>OUw(n)&&s.container()===n?DE(n,s):Jy(n,s),Ww=(n,s)=>s.container()===n.parentNode?$E(n,s):Jy(n,s),Yk=(n,s)=>Nn.isTextPosition(s)?eb(n,s):Ww(n,s),hl=n=>{Hk(n)&&bt(n)&&(Zt(n)?n.removeAttribute("data-mce-caret"):Uk(n)),Uw(n)&&(cv(n),n.data.length===0&&Uk(n))},Xk=Os,Yw=ei,o9=jp,N0="*[contentEditable=false],video,audio,embed,object",LE=(n,s,l)=>{const h=Am(s.getBoundingClientRect(),l);let O,P;if(n.tagName==="BODY"){const J=n.ownerDocument.documentElement;O=n.scrollLeft||J.scrollLeft,P=n.scrollTop||J.scrollTop}else{const J=n.getBoundingClientRect();O=n.scrollLeft-J.left,P=n.scrollTop-J.top}h.left+=O,h.right+=O,h.top+=P,h.bottom+=P,h.width=1;let Z=s.offsetWidth-s.clientWidth;return Z>0&&(l&&(Z*=-1),h.left+=Z,h.right+=Z),h},Gk=n=>{var s,l;const h=sl(Yt.fromDom(n),N0);for(let O=0;O{const O=_g();let P,Z;const J=Ec(n),he=n.dom,_e=(kt,It)=>{let cn;if(Ge(),o9(It))return null;if(l(It)){const xn=jt(J,It,kt),bn=LE(s,It,kt);he.setStyle(xn,"top",bn.top),Z=xn;const $n=he.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});he.setStyles($n,{...bn}),he.add(s,$n),O.set({caret:$n,element:It,before:kt}),kt&&he.addClass($n,"mce-visual-caret-before"),qe(),cn=It.ownerDocument.createRange(),cn.setStart(xn,0),cn.setEnd(xn,0)}else return Z=Ut(It,kt),cn=It.ownerDocument.createRange(),Cx(Z.nextSibling)?(cn.setStart(Z,0),cn.setEnd(Z,0)):(cn.setStart(Z,1),cn.setEnd(Z,1)),cn;return cn},Ge=()=>{Gk(s),Z&&(hl(Z),Z=null),O.on(kt=>{he.remove(kt.caret),O.clear()}),P&&(clearInterval(P),P=void 0)},qe=()=>{P=setInterval(()=>{O.on(kt=>{h()?he.toggleClass(kt.caret,"mce-visual-caret-hidden"):he.addClass(kt.caret,"mce-visual-caret-hidden")})},500)};return{show:_e,hide:Ge,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{O.on(kt=>{const It=LE(s,kt.element,kt.before);he.setStyles(kt.caret,{...It})})},destroy:()=>clearInterval(P)}},tb=()=>Dr.browser.isFirefox(),Cx=n=>Xk(n)||Yw(n),B0=n=>(Cx(n)||ju(n)&&tb())&&yg(Yt.fromDom(n)).exists(jo),IE=Zl,Bg=Os,jk=ei,Qg=$d("display","block table table-cell table-caption list-item"),Fg=bt,Gw=rt,qk=Xr,s9=lr,jw=go,Vg=n=>n>0,_h=n=>n<0,nb=(n,s)=>{let l;for(;l=n(s);)if(!Gw(l))return l;return null},Q0=(n,s,l,h,O)=>{const P=new ca(n,h),Z=Bg(n)||Gw(n);let J;if(_h(s)){if(Z&&(J=nb(P.prev.bind(P),!0),l(J)))return J;for(;J=nb(P.prev.bind(P),O);)if(l(J))return J}if(Vg(s)){if(Z&&(J=nb(P.next.bind(P),!0),l(J)))return J;for(;J=nb(P.next.bind(P),O);)if(l(J))return J}return null},qw=(n,s)=>{const l=O=>IE(O.dom),h=O=>O.dom===s;return ui(Yt.fromDom(n),l,h).map(O=>O.dom).getOr(s)},_m=(n,s)=>{for(;n&&n!==s;){if(Qg(n))return n;n=n.parentNode}return null},Hd=(n,s,l)=>_m(n.container(),l)===_m(s.container(),l),rb=(n,s)=>{if(!s)return G.none();const l=s.container(),h=s.offset();return qk(l)?G.from(l.childNodes[h+n]):G.none()},kx=(n,s)=>{var l;const O=((l=s.ownerDocument)!==null&&l!==void 0?l:document).createRange();return n?(O.setStartBefore(s),O.setEndBefore(s)):(O.setStartAfter(s),O.setEndAfter(s)),O},ob=(n,s,l)=>_m(s,n)===_m(l,n),Kw=(n,s,l)=>{const h=n?"previousSibling":"nextSibling";let O=l;for(;O&&O!==s;){let P=O[h];if(P&&Fg(P)&&(P=P[h]),Bg(P)||jk(P)){if(ob(s,P,O))return P;break}if(jw(P))break;O=O.parentNode}return null},F0=ee(kx,!0),sb=ee(kx,!1),Jw=(n,s,l)=>{let h;const O=ee(Kw,!0,s),P=ee(Kw,!1,s),Z=l.startContainer,J=l.startOffset;if(rt(Z)){const he=s9(Z)?Z.parentNode:Z,_e=he.getAttribute("data-mce-caret");if(_e==="before"&&(h=he.nextSibling,B0(h)))return F0(h);if(_e==="after"&&(h=he.previousSibling,B0(h)))return sb(h)}if(!l.collapsed)return l;if(lr(Z)){if(Fg(Z)){if(n===1){if(h=P(Z),h)return F0(h);if(h=O(Z),h)return sb(h)}if(n===-1){if(h=O(Z),h)return sb(h);if(h=P(Z),h)return F0(h)}return l}if(hn(Z)&&J>=Z.data.length-1)return n===1&&(h=P(Z),h)?F0(h):l;if(tn(Z)&&J<=1)return n===-1&&(h=O(Z),h)?sb(h):l;if(J===Z.data.length)return h=P(Z),h?F0(h):l;if(J===0)return h=O(Z),h?sb(h):l}return l},Kk=(n,s)=>rb(n?0:-1,s).filter(Bg),zg=(n,s,l)=>{const h=Jw(n,s,l);return n===-1?Nn.fromRangeStart(h):Nn.fromRangeEnd(h)},Ax=n=>G.from(n.getNode()).map(Yt.fromDom),NE=n=>G.from(n.getNode(!0)).map(Yt.fromDom),Jk=(n,s)=>{let l=s;for(;l=n(l);)if(l.isVisible())return l;return l},eT=(n,s)=>{const l=Hd(n,s);return!l&&aa(n.getNode())?!0:l};var Pi;(function(n){n[n.Backwards=-1]="Backwards",n[n.Forwards=1]="Forwards"})(Pi||(Pi={}));const a9=Os,Rm=lr,eA=Xr,Px=aa,Zg=go,ac=Do,V0=ms,ab=(n,s)=>{const l=[];let h=n;for(;h&&h!==s;)l.push(h),h=h.parentNode;return l},z0=(n,s)=>n.hasChildNodes()&&s{if(Vg(n)){if(Zg(s.previousSibling)&&!Rm(s.previousSibling))return Nn.before(s);if(Rm(s))return Nn(s,0)}if(_h(n)){if(Zg(s.nextSibling)&&!Rm(s.nextSibling))return Nn.after(s);if(Rm(s))return Nn(s,s.data.length)}return _h(n)?Px(s)?Nn.before(s):Nn.after(s):Nn.before(s)},Z0=(n,s)=>{const l=s.nextSibling;return l&&Zg(l)?Rm(l)?Nn(l,0):Nn.before(l):uv(Pi.Forwards,Nn.after(s),n)},uv=(n,s,l)=>{let h,O,P,Z;if(!eA(l)||!s)return null;if(s.isEqual(Nn.after(l))&&l.lastChild){if(Z=Nn.after(l.lastChild),_h(n)&&Zg(l.lastChild)&&eA(l.lastChild))return Px(l.lastChild)?Nn.before(l.lastChild):Z}else Z=s;const J=Z.container();let he=Z.offset();if(Rm(J)){if(_h(n)&&he>0)return Nn(J,--he);if(Vg(n)&&he0&&(O=z0(J,he-1),Zg(O)))return!ac(O)&&(P=Q0(O,n,V0,O),P)?Rm(P)?Nn(P,P.data.length):Nn.after(P):Rm(O)?Nn(O,O.data.length):Nn.before(O);if(Vg(n)&&he({next:s=>uv(Pi.Forwards,s,n),prev:s=>uv(Pi.Backwards,s,n)}),BE=(n,s,l)=>{const h=n?Nn.before(l):Nn.after(l);return Rl(n,s,h)},QE=n=>aa(n)?Nn.before(n):Nn.after(n),Hg=n=>Nn.isTextPosition(n)?n.offset()===0:go(n.getNode()),H0=n=>{if(Nn.isTextPosition(n)){const s=n.container();return n.offset()===s.data.length}else return go(n.getNode(!0))},Mx=(n,s)=>!Nn.isTextPosition(n)&&!Nn.isTextPosition(s)&&n.getNode()===s.getNode(!0),Rh=n=>!Nn.isTextPosition(n)&&aa(n.getNode()),nT=(n,s,l)=>n?!Mx(s,l)&&!Rh(s)&&H0(s)&&Hg(l):!Mx(l,s)&&Hg(s)&&H0(l),Rl=(n,s,l)=>{const h=Ud(s);return G.from(n?h.next(l):h.prev(l))},Dm=(n,s,l)=>Rl(n,s,l).bind(h=>Hd(l,h,s)&&nT(n,l,h)?Rl(n,s,h):G.some(h)),id=(n,s,l,h)=>Dm(n,s,l).bind(O=>h(O)?id(n,s,O,h):G.some(O)),U0=(n,s)=>{const l=n?s.firstChild:s.lastChild;return lr(l)?G.some(Nn(l,n?0:l.data.length)):l?go(l)?G.some(n?Nn.before(l):QE(l)):BE(n,s,l):G.none()},Rc=ee(Rl,!0),uu=ee(Rl,!1),Xc=ee(U0,!0),ld=ee(U0,!1),Ex="_mce_caret",sf=n=>Xr(n)&&n.id===Ex,fv=(n,s)=>{let l=s;for(;l&&l!==n;){if(sf(l))return l;l=l.parentNode}return null},rT=n=>M(n.start),FE=n=>it(n,"rng"),tA=n=>it(n,"id"),ib=n=>it(n,"name"),nA=n=>fr.isArray(n.start),lb=n=>!ib(n)&&z(n.forward)?n.forward:!0,_x=(n,s)=>(Xr(s)&&n.isBlock(s)&&!s.innerHTML&&(s.innerHTML='
    '),s),VE=(n,s)=>{const l=G.from(Yc(n.getRoot(),s.start)),h=G.from(Yc(n.getRoot(),s.end));return Fa(l,h,(O,P)=>{const Z=n.createRng();return Z.setStart(O.container(),O.offset()),Z.setEnd(P.container(),P.offset()),{range:Z,forward:lb(s)}})},rA=(n,s)=>{var l;const O=((l=n.ownerDocument)!==null&&l!==void 0?l:document).createTextNode(de);n.appendChild(O),s.setStart(O,0),s.setEnd(O,0)},zE=n=>!n.hasChildNodes(),i9=(n,s)=>ld(n).fold(ne,l=>(s.setStart(l.container(),l.offset()),s.setEnd(l.container(),l.offset()),!0)),oA=(n,s,l)=>zE(s)&&fv(n,s)?(rA(s,l),!0):!1,As=(n,s,l,h)=>{const O=l[s?"start":"end"],P=n.getRoot();if(O){let Z=P,J=O[0];for(let he=O.length-1;Z&&he>=1;he--){const _e=Z.childNodes;if(oA(P,Z,h))return!0;if(O[he]>_e.length-1)return oA(P,Z,h)?!0:i9(Z,h);Z=_e[O[he]]}lr(Z)&&(J=Math.min(O[0],Z.data.length)),Xr(Z)&&(J=Math.min(O[0],Z.childNodes.length)),s?h.setStart(Z,J):h.setEnd(Z,J)}return!0},Wd=n=>lr(n)&&n.data.length>0,dv=(n,s,l)=>{const h=n.get(l.id+"_"+s),O=h==null?void 0:h.parentNode,P=l.keep;if(h&&O){let Z,J;if(s==="start"?P?h.hasChildNodes()?(Z=h.firstChild,J=1):Wd(h.nextSibling)?(Z=h.nextSibling,J=0):Wd(h.previousSibling)?(Z=h.previousSibling,J=h.previousSibling.data.length):(Z=O,J=n.nodeIndex(h)+1):(Z=O,J=n.nodeIndex(h)):P?h.hasChildNodes()?(Z=h.firstChild,J=1):Wd(h.previousSibling)?(Z=h.previousSibling,J=h.previousSibling.data.length):(Z=O,J=n.nodeIndex(h)):(Z=O,J=n.nodeIndex(h)),!P){const he=h.previousSibling,_e=h.nextSibling;fr.each(fr.grep(h.childNodes),qe=>{lr(qe)&&(qe.data=qe.data.replace(/\uFEFF/g,""))});let Ge;for(;Ge=n.get(l.id+"_"+s);)n.remove(Ge,!0);if(lr(_e)&&lr(he)&&!Dr.browser.isOpera()){const qe=he.data.length;he.appendData(_e.data),n.remove(_e),Z=he,J=qe}}return G.some(Nn(Z,J))}else return G.none()},oT=(n,s)=>{const l=n.createRng();return As(n,!0,s,l)&&As(n,!1,s,l)?G.some({range:l,forward:lb(s)}):G.none()},sA=(n,s)=>{const l=dv(n,"start",s),h=dv(n,"end",s);return Fa(l,h.or(l),(O,P)=>{const Z=n.createRng();return Z.setStart(_x(n,O.container()),O.offset()),Z.setEnd(_x(n,P.container()),P.offset()),{range:Z,forward:lb(s)}})},cb=(n,s)=>G.from(n.select(s.name)[s.index]).map(l=>{const h=n.createRng();return h.selectNode(l),{range:h,forward:!0}}),ZE=(n,s)=>{const l=n.dom;if(s){if(nA(s))return oT(l,s);if(rT(s))return VE(l,s);if(tA(s))return sA(l,s);if(ib(s))return cb(l,s);if(FE(s))return G.some({range:s.rng,forward:lb(s)})}return G.none()},W0=(n,s,l)=>eE(n,s,l),Rx=(n,s)=>{ZE(n,s).each(({range:l,forward:h})=>{n.setRng(l,h)})},af=n=>Xr(n)&&n.tagName==="SPAN"&&n.getAttribute("data-mce-type")==="bookmark",Dx=(n=>s=>n===s)(zs),Y0=n=>n!==""&&` \f +\r \v`.indexOf(n)!==-1,Ug=n=>!Y0(n)&&!Dx(n)&&!Rf(n),$x=n=>{const s=[];if(n)for(let l=0;lze(n,s=>{const l=uw(s);return l?[Yt.fromDom(l)]:[]}),hv=n=>$x(n).length>1,HE=n=>se(Lx(n),Hc),aA=n=>sl(n,"td[data-mce-selected],th[data-mce-selected]"),UE=(n,s)=>{const l=aA(s);return l.length>0?l:HE(n)},X0=n=>UE($x(n.selection.getSel()),Yt.fromDom(n.getBody())),$m=(n,s)=>Og(n,"table",s),WE=n=>{const s=n.startContainer,l=n.startOffset;return lr(s)?l===0?G.some(Yt.fromDom(s)):G.none():G.from(s.childNodes[l]).map(Yt.fromDom)},YE=n=>{const s=n.endContainer,l=n.endOffset;return lr(s)?l===s.data.length?G.some(Yt.fromDom(s)):G.none():G.from(s.childNodes[l-1]).map(Yt.fromDom)},iA=n=>bg(n).fold(ae([n]),s=>[n].concat(iA(s))),sT=n=>xc(n).fold(ae([n]),s=>Vs(s)==="br"?Uu(s).map(l=>[n].concat(sT(l))).getOr([]):[n].concat(sT(s))),aT=(n,s)=>Fa(WE(s),YE(s),(l,h)=>{const O=le(iA(n),ee(Gs,l)),P=le(sT(n),ee(Gs,h));return O.isSome()&&P.isSome()}).getOr(!1),iT=(n,s,l,h)=>{const O=l,P=new ca(l,O),Z=wn(n.schema.getMoveCaretBeforeOnEnterElements(),(he,_e)=>!Ze(["td","th","table"],_e.toLowerCase()));let J=l;do{if(lr(J)&&fr.trim(J.data).length!==0){h?s.setStart(J,0):s.setEnd(J,J.data.length);return}if(Z[J.nodeName]){h?s.setStartBefore(J):J.nodeName==="BR"?s.setEndBefore(J):s.setEndAfter(J);return}}while(J=h?P.next():P.prev());O.nodeName==="BODY"&&(h?s.setStart(O,0):s.setEnd(O,O.childNodes.length))},Ix=n=>{const s=n.selection.getSel();return B(s)&&s.rangeCount>0},Wg=(n,s)=>{const l=X0(n);l.length>0?re(l,h=>{const O=h.dom,P=n.dom.createRng();P.setStartBefore(O),P.setEndAfter(O),s(P,!0)}):s(n.selection.getRng(),!1)},lA=(n,s,l)=>{const h=Ok(n,s);l(h),n.moveToBookmark(h)},ub=n=>W(n==null?void 0:n.nodeType),lT=n=>Xr(n)&&!af(n)&&!sf(n)&&!_f(n),XE=(n,s)=>{if(lT(s)&&!/^(TD|TH)$/.test(s.nodeName)){const l=n.getAttrib(s,"data-mce-selected"),h=parseInt(l,10);return!isNaN(h)&&h>0}else return!1},fb=(n,s,l)=>{const{selection:h,dom:O}=n,P=h.getNode(),Z=Os(P);lA(h,!0,()=>{s()}),Z&&Os(P)&&O.isChildOf(P,n.getBody())?n.selection.select(P):l(h.getStart())&&GE(O,h)},GE=(n,s)=>{var l,h;const O=s.getRng(),{startContainer:P,startOffset:Z}=O,J=s.getNode();if(!XE(n,J)&&Xr(P)){const he=P.childNodes,_e=n.getRoot();let Ge;if(Z{if(n){const h=s?"nextSibling":"previousSibling";for(n=l?n:n[h];n;n=n[h])if(Xr(n)||!Ni(n))return n}},el=(n,s)=>!!n.getTextBlockElements()[s.nodeName.toLowerCase()]||ks(n,s),Lm=(n,s,l)=>n.schema.isValidChild(s,l),Ni=(n,s=!1)=>{if(B(n)&&lr(n)){const l=s?n.data.replace(/ /g," "):n.data;return Ba(l)}else return!1},If=n=>B(n)&&lr(n)&&n.length===0,Nx=(n,s)=>{const l="[data-mce-cef-wrappable]",h=R0(n),O=Ct(h)?l:`${l},${h}`;return Hu(Yt.fromDom(s),O)},db=(n,s)=>{const l=n.dom;return lT(s)&&l.getContentEditable(s)==="false"&&Nx(n,s)&&l.select('[contenteditable="true"]',s).length===0},Yd=(n,s)=>E(n)?n(s):(B(s)&&(n=n.replace(/%(\w+)/g,(l,h)=>s[h]||l)),n),Bx=(n,s)=>(n=n||"",s=s||"",n=""+(n.nodeName||n),s=""+(s.nodeName||s),n.toLowerCase()===s.toLowerCase()),Qx=(n,s)=>{if(Q(n))return null;{let l=String(n);return(s==="color"||s==="backgroundColor")&&(l=d0(l)),s==="fontWeight"&&n===700&&(l="bold"),s==="fontFamily"&&(l=l.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),l}},G0=(n,s,l)=>{const h=n.getStyle(s,l);return Qx(h,l)},cA=(n,s)=>{let l;return n.getParent(s,h=>Xr(h)?(l=n.getStyle(h,"text-decoration"),!!l&&l!=="none"):!1),l},hb=(n,s,l)=>n.getParents(s,l,n.getRoot()),cT=(n,s,l)=>{const h=n.formatter.get(s);return B(h)&&De(h,l)},uT=(n,s)=>cT(n,s,h=>{const O=P=>E(P)||P.length>1&&P.charAt(0)==="%";return De(["styles","attributes"],P=>Sn(h,P).exists(Z=>{const J=N(Z)?Z:Un(Z);return De(J,O)}))}),jE=(n,s,l)=>{const h=["inline","block","selector","attributes","styles","classes"],O=P=>wn(P,(Z,J)=>De(h,he=>he===J));return cT(n,s,P=>{const Z=O(P);return cT(n,l,J=>{const he=O(J);return xt(Z,he)})})},Xd=n=>ut(n,"block"),Fx=n=>Xd(n)&&n.wrapper===!0,j0=n=>Xd(n)&&n.wrapper!==!0,jl=n=>ut(n,"selector"),Xi=n=>ut(n,"inline"),Vx=n=>jl(n)&&Xi(n)&&Qa(Sn(n,"mixed"),!0),mb=n=>jl(n)&&n.expand!==!1&&!Xi(n),zx=n=>{const s=[];let l=n;for(;l;){if(lr(l)&&l.data!==de||l.childNodes.length>1)return[];Xr(l)&&s.push(l),l=l.firstChild}return s},gb=n=>zx(n).length>0,pb=n=>sf(n.dom)&&gb(n.dom),q0=af,uA=hb,vb=Ni,fA=el,dA=n=>aa(n)&&n.getAttribute("data-mce-bogus")&&!n.nextSibling,hA=(n,s)=>{let l=s;for(;l;){if(Xr(l)&&n.getContentEditable(l))return n.getContentEditable(l)==="false"?l:s;l=l.parentNode}return s},Nf=(n,s,l,h)=>{const O=s.data;if(n){for(let P=l;P>0;P--)if(h(O.charAt(P-1)))return P}else for(let P=l;PNf(n,s,l,h=>Dx(h)||Y0(h)),cd=(n,s,l)=>Nf(n,s,l,Ug),fu=(n,s,l,h,O,P)=>{let Z;const J=n.getParent(l,n.isBlock)||s,he=(Ge,qe,ot)=>{const Et=Rg(n),Vt=O?Et.backwards:Et.forwards;return G.from(Vt(Ge,qe,(kt,It)=>q0(kt.parentNode)?-1:(Z=kt,ot(O,kt,It)),J))};return he(l,h,ic).bind(Ge=>P?he(Ge.container,Ge.offset+(O?-1:0),cd):G.some(Ge)).orThunk(()=>Z?G.some({container:Z,offset:O?0:Z.length}):G.none())},yb=(n,s,l,h,O)=>{const P=h[O];lr(h)&&Ct(h.data)&&P&&(h=P);const Z=uA(n,h);for(let J=0;J{var O;let P=l;const Z=n.getRoot(),J=s[0];if(Xd(J)&&(P=J.wrapper?null:n.getParent(l,J.block,Z)),!P){const he=(O=n.getParent(l,"LI,TD,TH,SUMMARY"))!==null&&O!==void 0?O:Z;P=n.getParent(lr(l)?l.parentNode:l,_e=>_e!==Z&&fA(n.schema,_e),he)}if(P&&Xd(J)&&J.wrapper&&(P=uA(n,P,"ul,ol").reverse()[0]||P),!P)for(P=l;P&&P[h]&&!n.isBlock(P[h])&&(P=P[h],!Bx(P,"br")););return P||l},mA=(n,s,l,h)=>{const O=l.parentNode;return B(l[h])?!1:O===s||Q(O)||n.isBlock(O)?!0:mA(n,s,O,h)},bb=(n,s,l,h,O)=>{let P=l;const Z=O?"previousSibling":"nextSibling",J=n.getRoot();if(lr(l)&&!vb(l)&&(O?h>0:hq0(n.parentNode)||q0(n),Im=(n,s,l,h=!1)=>{let{startContainer:O,startOffset:P,endContainer:Z,endOffset:J}=s;const he=l[0];return Xr(O)&&O.hasChildNodes()&&(O=Mu(O,P),lr(O)&&(P=0)),Xr(Z)&&Z.hasChildNodes()&&(Z=Mu(Z,s.collapsed?J:J-1),lr(Z)&&(J=Z.data.length)),O=hA(n,O),Z=hA(n,Z),qE(O)&&(O=q0(O)?O:O.parentNode,s.collapsed?O=O.previousSibling||O:O=O.nextSibling||O,lr(O)&&(P=s.collapsed?O.length:0)),qE(Z)&&(Z=q0(Z)?Z:Z.parentNode,s.collapsed?Z=Z.nextSibling||Z:Z=Z.previousSibling||Z,lr(Z)&&(J=s.collapsed?0:Z.length)),s.collapsed&&(fu(n,n.getRoot(),O,P,!0,h).each(({container:qe,offset:ot})=>{O=qe,P=ot}),fu(n,n.getRoot(),Z,J,!1,h).each(({container:qe,offset:ot})=>{Z=qe,J=ot})),(Xi(he)||he.block_expand)&&((!Xi(he)||!lr(O)||P===0)&&(O=bb(n,l,O,P,!0)),(!Xi(he)||!lr(Z)||J===Z.data.length)&&(Z=bb(n,l,Z,J,!1))),mb(he)&&(O=yb(n,l,s,O,"previousSibling"),Z=yb(n,l,s,Z,"nextSibling")),(Xd(he)||jl(he))&&(O=Zx(n,l,O,"previousSibling"),Z=Zx(n,l,Z,"nextSibling"),Xd(he)&&(n.isBlock(O)||(O=bb(n,l,O,P,!0)),n.isBlock(Z)||(Z=bb(n,l,Z,J,!1)))),Xr(O)&&O.parentNode&&(P=n.nodeIndex(O),O=O.parentNode),Xr(Z)&&Z.parentNode&&(J=n.nodeIndex(Z)+1,Z=Z.parentNode),{startContainer:O,startOffset:P,endContainer:Z,endOffset:J}},Ob=(n,s,l)=>{var h;const O=s.startOffset,P=Mu(s.startContainer,O),Z=s.endOffset,J=Mu(s.endContainer,Z-1),he=It=>{const cn=It[0];lr(cn)&&cn===P&&O>=cn.data.length&&It.splice(0,1);const xn=It[It.length-1];return Z===0&&It.length>0&&xn===J&&lr(xn)&&It.splice(It.length-1,1),It},_e=(It,cn,xn)=>{const bn=[];for(;It&&It!==xn;It=It[cn])bn.push(It);return bn},Ge=(It,cn)=>n.getParent(It,xn=>xn.parentNode===cn,cn),qe=(It,cn,xn)=>{const bn=xn?"nextSibling":"previousSibling";for(let $n=It,rr=$n.parentNode;$n&&$n!==cn;$n=rr){rr=$n.parentNode;const gr=_e($n===It?$n:$n[bn],bn);gr.length&&(xn||gr.reverse(),l(he(gr)))}};if(P===J)return l(he([P]));const ot=(h=n.findCommonAncestor(P,J))!==null&&h!==void 0?h:n.getRoot();if(n.isChildOf(P,J))return qe(P,ot,!0);if(n.isChildOf(J,P))return qe(J,ot);const Et=Ge(P,ot)||P,Vt=Ge(J,ot)||J;qe(P,Et,!0);const kt=_e(Et===P?Et:Et.nextSibling,"nextSibling",Vt===J?Vt.nextSibling:Vt);kt.length&&l(he(kt)),qe(J,Vt)},fT=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],gA=n=>Zi(n)&&su(n)===de,pA=(n,s,l,h)=>ru(s).fold(()=>"skipping",O=>h==="br"||gA(s)?"valid":fk(s)?"existing":sf(s.dom)?"caret":De(fT,P=>Hu(s,P))?"valid-block":!Lm(n,l,h)||!Lm(n,Vs(O),l)?"invalid-child":"valid"),dT=(n,s)=>{const l=Im(n.dom,s,[{inline:"span"}]);s.setStart(l.startContainer,l.startOffset),s.setEnd(l.endContainer,l.endOffset),n.selection.setRng(s)},Hx=(n,s,l,h,O,P)=>{const{uid:Z=s,...J}=l;cm(n,ox()),Ra(n,`${O0()}`,Z),Ra(n,`${kh()}`,h);const{attributes:he={},classes:_e=[]}=O(Z,J);if(Su(n,he),WM(n,_e),P){_e.length>0&&Ra(n,`${S0()}`,_e.join(","));const Ge=Gt(he);Ge.length>0&&Ra(n,`${tv()}`,Ge.join(","))}},ka=n=>{um(n,ox()),ci(n,`${O0()}`),ci(n,`${kh()}`),ci(n,`${x0()}`);const s=bc(n,`${tv()}`).map(h=>h.split(",")).getOr([]),l=bc(n,`${S0()}`).map(h=>h.split(",")).getOr([]);re(s,h=>ci(n,h)),mk(n,l),ci(n,`${S0()}`),ci(n,`${tv()}`)},Nm=(n,s,l,h,O)=>{const P=Yt.fromTag("span",n);return Hx(P,s,l,h,O,!1),P},vA=(n,s,l,h,O,P)=>{const Z=[],J=Nm(n.getDoc(),l,P,h,O),he=_g(),_e=()=>{he.clear()},Ge=()=>he.get().getOrThunk(()=>{const Vt=Pu(J);return Z.push(Vt),he.set(Vt),Vt}),qe=Vt=>{re(Vt,ot)},ot=Vt=>{switch(pA(n,Vt,"span",Vs(Vt))){case"invalid-child":{_e();const It=ol(Vt);qe(It),_e();break}case"valid-block":{_e(),Hx(Vt,l,P,h,O,!0);break}case"valid":{const It=Ge();xg(Vt,It);break}}},Et=Vt=>{const kt=Ie(Vt,Yt.fromDom);qe(kt)};return Ob(n.dom,s,Vt=>{_e(),Et(Vt)}),Z},hT=(n,s,l,h)=>{n.undoManager.transact(()=>{const O=n.selection,P=O.getRng(),Z=X0(n).length>0,J=nv("mce-annotation");if(P.collapsed&&!Z&&dT(n,P),O.getRng().collapsed&&!Z){const he=Nm(n.getDoc(),J,h,s,l.decorate);gm(he,zs),O.getRng().insertNode(he.dom),O.select(he.dom)}else lA(O,!1,()=>{Wg(n,he=>{vA(n,he,J,s,l.decorate,h)})})})},mT=n=>{const s=hk();nf(n,s);const l=oc(n,s),h=xu("span"),O=P=>{re(P,Z=>{h(Z)?Ef(Z):ka(Z)})};return{register:(P,Z)=>{s.register(P,Z)},annotate:(P,Z)=>{s.lookup(P).each(J=>{hT(n,P,J,Z)})},annotationChanged:(P,Z)=>{l.addListener(P,Z)},remove:P=>{yi(n,G.some(P)).each(({elements:Z})=>{const J=n.selection.getBookmark();O(Z),n.selection.moveToBookmark(J)})},removeAll:P=>{const Z=n.selection.getBookmark();Bt(sx(n,P),(J,he)=>{O(J)}),n.selection.moveToBookmark(Z)},getAll:P=>{const Z=sx(n,P);return vn(Z,J=>Ie(J,he=>he.dom))}}},mv=n=>({getBookmark:ee(W0,n),moveToBookmark:ee(Rx,n)});mv.isBookmarkNode=af;const gT=(n,s,l)=>l.collapsed?!1:De(l.getClientRects(),h=>pk(h,n,s)),pT=(n,s)=>n.dispatch("PreProcess",s),KE=(n,s)=>n.dispatch("PostProcess",s),K0=n=>{n.dispatch("remove")},J0=n=>{n.dispatch("detach")},vT=(n,s)=>{n.dispatch("SwitchMode",{mode:s})},yT=(n,s,l,h,O)=>{n.dispatch("ObjectResizeStart",{target:s,width:l,height:h,origin:O})},ud=(n,s,l,h,O)=>{n.dispatch("ObjectResized",{target:s,width:l,height:h,origin:O})},Yg=n=>{n.dispatch("PreInit")},JE=n=>{n.dispatch("PostRender")},xb=n=>{n.dispatch("Init")},e_=(n,s)=>{n.dispatch("PlaceholderToggle",{state:s})},_u=(n,s,l)=>{n.dispatch(s,l)},lc=(n,s,l,h)=>{n.dispatch("FormatApply",{format:s,node:l,vars:h})},gv=(n,s,l,h)=>{n.dispatch("FormatRemove",{format:s,node:l,vars:h})},l9=(n,s)=>n.dispatch("BeforeSetContent",s),yA=(n,s)=>n.dispatch("SetContent",s),t_=(n,s)=>n.dispatch("BeforeGetContent",s),xs=(n,s)=>n.dispatch("GetContent",s),bT=(n,s)=>{n.dispatch("AutocompleterStart",s)},bA=(n,s)=>{n.dispatch("AutocompleterUpdate",s)},OT=n=>{n.dispatch("AutocompleterEnd")},n_=(n,s,l)=>n.dispatch("PastePreProcess",{content:s,internal:l}),r_=(n,s,l)=>n.dispatch("PastePostProcess",{node:s,internal:l}),OA=(n,s)=>n.dispatch("PastePlainTextToggle",{state:s}),o_=(n,s)=>n.dispatch("EditableRootStateChange",{state:s}),Wr={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:n=>n.shiftKey||n.ctrlKey||n.altKey||Wr.metaKeyPressed(n),metaKeyPressed:n=>Dr.os.isMacOS()||Dr.os.isiOS()?n.metaKey:n.ctrlKey&&!n.altKey},Xg="data-mce-selected",xA="table,img,figure.image,hr,video,span.mce-preview-object,details",Sb=Math.abs,wb=Math.round,s_={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},c9=n=>n.type==="longpress"||n.type.indexOf("touch")===0,u9=(n,s)=>{const l=s.dom,h=s.getDoc(),O=document,P=s.getBody();let Z,J,he,_e,Ge,qe,ot,Et,Vt,kt,It,cn,xn,bn,$n,rr,gr;const Qr=yr=>B(yr)&&(El(yr)||l.is(yr,"figure.image")),zn=yr=>ei(yr)||l.hasClass(yr,"mce-preview-object"),Bn=(yr,Bo)=>{if(c9(yr)){const Ls=yr.touches[0];return Qr(yr.target)&&!gT(Ls.clientX,Ls.clientY,Bo)}else return Qr(yr.target)&&!gT(yr.clientX,yr.clientY,Bo)},tr=yr=>{const Bo=yr.target;Bn(yr,s.selection.getRng())&&!yr.isDefaultPrevented()&&s.selection.select(Bo)},eo=yr=>l.hasClass(yr,"mce-preview-object")&&B(yr.firstElementChild)?[yr,yr.firstElementChild]:l.is(yr,"figure.image")?[yr.querySelector("img")]:[yr],po=yr=>{const Bo=E0(s);return!Bo||yr.getAttribute("data-mce-resize")==="false"||yr===s.getBody()?!1:l.hasClass(yr,"mce-preview-object")&&B(yr.firstElementChild)?Hu(Yt.fromDom(yr.firstElementChild),Bo):Hu(Yt.fromDom(yr),Bo)},ls=yr=>zn(yr)?l.create("img",{src:Dr.transparentSrc}):yr.cloneNode(!0),ys=(yr,Bo,Ls)=>{if(B(Ls)){const Aa=eo(yr);re(Aa,Sa=>{Sa.style[Bo]||!s.schema.isValid(Sa.nodeName.toLowerCase(),Bo)?l.setStyle(Sa,Bo,Ls):l.setAttrib(Sa,Bo,""+Ls)})}},ma=(yr,Bo,Ls)=>{ys(yr,"width",Bo),ys(yr,"height",Ls)},$s=yr=>{let Bo,Ls,Aa,Sa,$l;Bo=yr.screenX-qe,Ls=yr.screenY-ot,bn=Bo*_e[2]+kt,$n=Ls*_e[3]+It,bn=bn<5?5:bn,$n=$n<5?5:$n,(Qr(Z)||zn(Z))&&_k(s)!==!1?Aa=!Wr.modifierPressed(yr):Aa=Wr.modifierPressed(yr),Aa&&(Sb(Bo)>Sb(Ls)?($n=wb(bn*cn),bn=wb($n/cn)):(bn=wb($n/cn),$n=wb(bn*cn))),ma(J,bn,$n),Sa=_e.startPos.x+Bo,$l=_e.startPos.y+Ls,Sa=Sa>0?Sa:0,$l=$l>0?$l:0,l.setStyles(he,{left:Sa,top:$l,display:"block"}),he.innerHTML=bn+" × "+$n,_e[2]<0&&J.clientWidth<=bn&&l.setStyle(J,"left",Et+(kt-bn)),_e[3]<0&&J.clientHeight<=$n&&l.setStyle(J,"top",Vt+(It-$n)),Bo=P.scrollWidth-rr,Ls=P.scrollHeight-gr,Bo+Ls!==0&&l.setStyles(he,{left:Sa-Bo,top:$l-Ls}),xn||(yT(s,Z,kt,It,"corner-"+_e.name),xn=!0)},hi=()=>{const yr=xn;xn=!1,yr&&(ys(Z,"width",bn),ys(Z,"height",$n)),l.unbind(h,"mousemove",$s),l.unbind(h,"mouseup",hi),O!==h&&(l.unbind(O,"mousemove",$s),l.unbind(O,"mouseup",hi)),l.remove(J),l.remove(he),l.remove(Ge),uc(Z),yr&&(ud(s,Z,bn,$n,"corner-"+_e.name),l.setAttrib(Z,"style",l.getAttrib(Z,"style"))),s.nodeChanged()},uc=yr=>{Ss();const Bo=l.getPos(yr,P),Ls=Bo.x,Aa=Bo.y,Sa=yr.getBoundingClientRect(),$l=Sa.width||Sa.right-Sa.left,Xh=Sa.height||Sa.bottom-Sa.top;Z!==yr&&(Cr(),Z=yr,bn=$n=0);const zf=s.dispatch("ObjectSelected",{target:yr});po(yr)&&!zf.isDefaultPrevented()?Bt(s_,($u,sh)=>{const Wo=Pa=>{const oi=eo(Z)[0];qe=Pa.screenX,ot=Pa.screenY,kt=oi.clientWidth,It=oi.clientHeight,cn=It/kt,_e=$u,_e.name=sh,_e.startPos={x:$l*$u[0]+Ls,y:Xh*$u[1]+Aa},rr=P.scrollWidth,gr=P.scrollHeight,Ge=l.add(P,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),l.setStyles(Ge,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),J=ls(Z),l.addClass(J,"mce-clonedresizable"),l.setAttrib(J,"data-mce-bogus","all"),J.contentEditable="false",l.setStyles(J,{left:Ls,top:Aa,margin:0}),ma(J,$l,Xh),J.removeAttribute(Xg),P.appendChild(J),l.bind(h,"mousemove",$s),l.bind(h,"mouseup",hi),O!==h&&(l.bind(O,"mousemove",$s),l.bind(O,"mouseup",hi)),he=l.add(P,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},kt+" × "+It)};let Hs=l.get("mceResizeHandle"+sh);Hs&&l.remove(Hs),Hs=l.add(P,"div",{id:"mceResizeHandle"+sh,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+sh+"-resize; margin:0; padding:0"}),l.bind(Hs,"mousedown",Pa=>{Pa.stopImmediatePropagation(),Pa.preventDefault(),Wo(Pa)}),$u.elm=Hs,l.setStyles(Hs,{left:$l*$u[0]+Ls-Hs.offsetWidth/2,top:Xh*$u[1]+Aa-Hs.offsetHeight/2})}):Cr(!1)},ga=By(uc,0),Cr=(yr=!0)=>{ga.cancel(),Ss(),Z&&yr&&Z.removeAttribute(Xg),Bt(s_,(Bo,Ls)=>{const Aa=l.get("mceResizeHandle"+Ls);Aa&&(l.unbind(Aa),l.remove(Aa))})},co=(yr,Bo)=>l.isChildOf(yr,Bo),Zs=yr=>{if(xn||s.removed||s.composing)return;const Bo=yr.type==="mousedown"?yr.target:n.getNode(),Ls=Mf(Yt.fromDom(Bo),xA).map(Sa=>Sa.dom).filter(Sa=>l.isEditable(Sa.parentElement)||Sa.nodeName==="IMG"&&l.isEditable(Sa)).getOrUndefined(),Aa=B(Ls)?l.getAttrib(Ls,Xg,"1"):"1";if(re(l.select(`img[${Xg}],hr[${Xg}]`),Sa=>{Sa.removeAttribute(Xg)}),B(Ls)&&co(Ls,P)&&s.hasFocus()){ro();const Sa=n.getStart(!0);if(co(Sa,Ls)&&co(n.getEnd(!0),Ls)){l.setAttrib(Ls,Xg,Aa),ga.throttle(Ls);return}}Cr()},Ss=()=>{Bt(s_,yr=>{yr.elm&&(l.unbind(yr.elm),delete yr.elm)})},ro=()=>{try{s.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};return s.on("init",()=>{ro(),s.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",Zs),s.on("keyup compositionend",yr=>{Z&&Z.nodeName==="TABLE"&&Zs(yr)}),s.on("hide blur",Cr),s.on("contextmenu longpress",tr,!0)}),s.on("remove",Ss),{isResizable:po,showResizeRect:uc,hideResizeRect:Cr,updateResizeRect:Zs,destroy:()=>{ga.cancel(),Z=J=Ge=null}}},ZU=(n,s)=>{s.fold(l=>{n.setStartBefore(l.dom)},(l,h)=>{n.setStart(l.dom,h)},l=>{n.setStartAfter(l.dom)})},a_=(n,s)=>{s.fold(l=>{n.setEndBefore(l.dom)},(l,h)=>{n.setEnd(l.dom,h)},l=>{n.setEndAfter(l.dom)})},SA=(n,s,l)=>{const h=n.document.createRange();return ZU(h,s),a_(h,l),h},Co=(n,s,l,h,O)=>{const P=n.document.createRange();return P.setStart(s.dom,l),P.setEnd(h.dom,O),P},Bm=Zd.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),wA=(n,s,l)=>s(Yt.fromDom(l.startContainer),l.startOffset,Yt.fromDom(l.endContainer),l.endOffset),i_=(n,s)=>s.match({domRange:l=>({ltr:ae(l),rtl:G.none}),relative:(l,h)=>({ltr:Rt(()=>SA(n,l,h)),rtl:Rt(()=>G.some(SA(n,h,l)))}),exact:(l,h,O,P)=>({ltr:Rt(()=>Co(n,l,h,O,P)),rtl:Rt(()=>G.some(Co(n,O,P,l,h)))})}),Tb=(n,s)=>{const l=s.ltr();return l.collapsed?s.rtl().filter(O=>O.collapsed===!1).map(O=>Bm.rtl(Yt.fromDom(O.endContainer),O.endOffset,Yt.fromDom(O.startContainer),O.startOffset)).getOrThunk(()=>wA(n,Bm.ltr,l)):wA(n,Bm.ltr,l)},l_=(n,s)=>{const l=i_(n,s);return Tb(n,l)};Bm.ltr,Bm.rtl;const xT={create:(n,s,l,h)=>({start:n,soffset:s,finish:l,foffset:h})},CA=(n,s,l)=>{var h,O;return G.from((O=(h=n.dom).caretPositionFromPoint)===null||O===void 0?void 0:O.call(h,s,l)).bind(P=>{if(P.offsetNode===null)return G.none();const Z=n.dom.createRange();return Z.setStart(P.offsetNode,P.offset),Z.collapse(),G.some(Z)})},Ux=(n,s,l)=>{var h,O;return G.from((O=(h=n.dom).caretRangeFromPoint)===null||O===void 0?void 0:O.call(h,s,l))},c_=(()=>document.caretPositionFromPoint?CA:document.caretRangeFromPoint?Ux:G.none)(),u_=(n,s,l)=>{const h=Yt.fromDom(n.document);return c_(h,s,l).map(O=>xT.create(Yt.fromDom(O.startContainer),O.startOffset,Yt.fromDom(O.endContainer),O.endOffset))},e1=Zd.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),ST=(n,s,l,h)=>n.fold(s,l,h),kA=n=>n.fold(q,q,q),f_=e1.before,d_=e1.on,Wx=e1.after,Dh={before:f_,on:d_,after:Wx,cata:ST,getStart:kA},Yx=Zd.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Ys=n=>Yx.exact(n.start,n.soffset,n.finish,n.foffset),h_=n=>n.match({domRange:s=>Yt.fromDom(s.startContainer),relative:(s,l)=>Dh.getStart(s),exact:(s,l,h,O)=>s}),Qm=Yx.domRange,$h=Yx.relative,Xx=Yx.exact,lf=n=>{const s=h_(n);return vg(s)},Gx=xT.create,Fm={domRange:Qm,relative:$h,exact:Xx,exactFromRange:Ys,getWin:lf,range:Gx},t1=(n,s)=>{const l=Vs(n);return l==="input"?Dh.after(n):Ze(["br","img"],l)?s===0?Dh.before(n):Dh.after(n):Dh.on(n,s)},Cb=(n,s)=>{const l=n.fold(Dh.before,t1,Dh.after),h=s.fold(Dh.before,t1,Dh.after);return Fm.relative(l,h)},wT=(n,s,l,h)=>{const O=t1(n,s),P=t1(l,h);return Fm.relative(O,P)},m_=n=>n.match({domRange:s=>{const l=Yt.fromDom(s.startContainer),h=Yt.fromDom(s.endContainer);return wT(l,s.startOffset,h,s.endOffset)},relative:Cb,exact:wT}),TT=(n,s)=>{const h=(s||document).createDocumentFragment();return re(n,O=>{h.appendChild(O.dom)}),Yt.fromDom(h)},g_=n=>{const s=Fm.getWin(n).dom,l=(O,P,Z,J)=>Co(s,O,P,Z,J),h=m_(n);return l_(s,h).match({ltr:l,rtl:l})},Ps=(n,s,l)=>u_(n,s,l),cf=(n,s,l)=>{const h=vg(Yt.fromDom(l));return Ps(h.dom,n,s).map(O=>{const P=l.createRange();return P.setStart(O.start.dom,O.soffset),P.setEnd(O.finish.dom,O.foffset),P}).getOrUndefined()},Gg=(n,s)=>B(n)&&B(s)&&n.startContainer===s.startContainer&&n.startOffset===s.startOffset&&n.endContainer===s.endContainer&&n.endOffset===s.endOffset,p_=(n,s,l)=>{let h=n;for(;h&&h!==s;){if(l(h))return h;h=h.parentNode}return null},n1=(n,s,l)=>p_(n,s,l)!==null,Qs=(n,s,l)=>n1(n,s,h=>h.nodeName===l),v_=(n,s)=>bt(n)&&!n1(n,s,sf),CT=(n,s,l)=>{const h=s.parentNode;if(h){const O=new ca(s,n.getParent(h,n.isBlock)||n.getRoot());let P;for(;P=O[l?"prev":"next"]();)if(aa(P))return!0}return!1},A=(n,s)=>{var l;return((l=n.previousSibling)===null||l===void 0?void 0:l.nodeName)===s},$=(n,s)=>{let l=s;for(;l&&l!==n;){if(Os(l))return!0;l=l.parentNode}return!1},j=(n,s,l,h,O)=>{const P=n.getRoot(),Z=n.schema.getNonEmptyElements(),J=O.parentNode;let he,_e;if(!J)return G.none();const Ge=n.getParent(J,n.isBlock)||P;if(h&&aa(O)&&s&&n.isEmpty(Ge))return G.some(Nn(J,n.nodeIndex(O)));const qe=new ca(O,Ge);for(;_e=qe[h?"prev":"next"]();){if(n.getContentEditableParent(_e)==="false"||v_(_e,P))return G.none();if(lr(_e)&&_e.data.length>0)return Qs(_e,P,"A")?G.none():G.some(Nn(_e,h?_e.data.length:0));if(n.isBlock(_e)||Z[_e.nodeName.toLowerCase()])return G.none();he=_e}return Kf(he)?G.none():l&&he?G.some(Nn(he,0)):G.none()},ce=(n,s,l,h)=>{const O=n.getRoot();let P,Z=!1,J=l?h.startContainer:h.endContainer,he=l?h.startOffset:h.endOffset;const _e=Xr(J)&&he===J.childNodes.length,Ge=n.schema.getNonEmptyElements();let qe=l;if(bt(J))return G.none();if(Xr(J)&&he>J.childNodes.length-1&&(qe=!1),Tg(J)&&(J=O,he=0),J===O){if(qe&&(P=J.childNodes[he>0?he-1:0],P&&(bt(P)||Ge[P.nodeName]||ju(P))))return G.none();if(J.hasChildNodes()){if(he=Math.min(!qe&&he>0?he-1:he,J.childNodes.length-1),J=J.childNodes[he],he=lr(J)&&_e?J.data.length:0,!s&&J===O.lastChild&&ju(J)||$(O,J)||bt(J)||er(J))return G.none();if(J.hasChildNodes()&&!ju(J)){P=J;const ot=new ca(J,O);do{if(Os(P)||bt(P)){Z=!1;break}if(lr(P)&&P.data.length>0){he=qe?0:P.data.length,J=P,Z=!0;break}if(Ge[P.nodeName.toLowerCase()]&&!il(P)){he=n.nodeIndex(P),J=P.parentNode,qe||he++,Z=!0;break}}while(P=qe?ot.next():ot.prev())}}}return s&&(lr(J)&&he===0&&j(n,_e,s,!0,J).each(ot=>{J=ot.container(),he=ot.offset(),Z=!0}),Xr(J)&&(P=J.childNodes[he],P||(P=J.childNodes[he-1]),P&&aa(P)&&!A(P,"A")&&!CT(n,P,!1)&&!CT(n,P,!0)&&j(n,_e,s,!0,P).each(ot=>{J=ot.container(),he=ot.offset(),Z=!0}))),qe&&!s&&lr(J)&&he===J.data.length&&j(n,_e,s,!1,J).each(ot=>{J=ot.container(),he=ot.offset(),Z=!0}),Z&&J?G.some(Nn(J,he)):G.none()},Me=(n,s)=>{const l=s.collapsed,h=s.cloneRange(),O=Nn.fromRangeStart(s);return ce(n,l,!0,h).each(P=>{(!l||!Nn.isAbove(O,P))&&h.setStart(P.container(),P.offset())}),l||ce(n,l,!1,h).each(P=>{h.setEnd(P.container(),P.offset())}),l&&h.collapse(!0),Gg(s,h)?G.none():G.some(h)},Ve=(n,s)=>n.splitText(s),nt=n=>{let s=n.startContainer,l=n.startOffset,h=n.endContainer,O=n.endOffset;if(s===h&&lr(s)){if(l>0&&ll){O=O-l;const P=Ve(h,O).previousSibling;s=h=P,O=P.data.length,l=0}else O=0}else if(lr(s)&&l>0&&l0&&O({walk:(P,Z)=>Ob(n,P,Z),split:nt,expand:(P,Z={type:"word"})=>{if(Z.type==="word"){const J=Im(n,P,[{inline:"span"}]),he=n.createRng();return he.setStart(J.startContainer,J.startOffset),he.setEnd(J.endContainer,J.endOffset),he}return P},normalize:P=>Me(n,P).fold(ne,Z=>(P.setStart(Z.startContainer,Z.startOffset),P.setEnd(Z.endContainer,Z.endOffset),!0))});Ot.compareRanges=Gg,Ot.getCaretRangeFromPoint=cf,Ot.getSelectedNode=uw,Ot.getNode=Mu;const Kt=((n,s)=>{const l=(J,he)=>{if(!W(he)&&!he.match(/^[0-9]+$/))throw new Error(n+".set accepts only positive integer values. Value was "+he);const _e=J.dom;yh(_e)&&(_e.style[n]=he+"px")},h=J=>{const he=s(J);if(he<=0||he===null){const _e=wi(J,n);return parseFloat(_e)||0}return he},O=h,P=(J,he)=>oe(he,(_e,Ge)=>{const qe=wi(J,Ge),ot=qe===void 0?0:parseInt(qe,10);return isNaN(ot)?_e:_e+ot},0);return{set:l,get:h,getOuter:O,aggregate:P,max:(J,he,_e)=>{const Ge=P(J,_e);return he>Ge?he-Ge:0}}})("height",n=>{const s=n.dom;return vh(n)?s.getBoundingClientRect().height:s.offsetHeight}),Cn=n=>Kt.get(n),ir=()=>Yt.fromDom(document),$r=(n,s)=>n.view(s).fold(ae([]),h=>{const O=n.owner(h),P=$r(n,O);return[h].concat(P)}),Rr=(n,s)=>{const l=s.owner(n);return $r(s,l)};var jn=Object.freeze({__proto__:null,view:n=>{var s;return(n.dom===document?G.none():G.from((s=n.dom.defaultView)===null||s===void 0?void 0:s.frameElement)).map(Yt.fromDom)},owner:n=>qf(n)});const io=n=>{const s=ir(),l=Tu(s),h=Rr(n,jn),O=ym(n),P=ue(h,(Z,J)=>{const he=ym(J);return{left:Z.left+he.left,top:Z.top+he.top}},{left:0,top:0});return Sg(P.left+O.left+l.left,P.top+O.top+l.top)},$o=n=>Vs(n)==="textarea",os=(n,s)=>n.dispatch("ScrollIntoView",s).isDefaultPrevented(),Va=(n,s)=>{n.dispatch("AfterScrollIntoView",s)},ml=(n,s)=>{const l=ol(n);if(l.length===0||$o(n))return{element:n,offset:s};if(s{const l=BO(n),h=Cn(n);return{element:n,bottom:l.top+h,height:h,pos:l,cleanup:s}},du=(n,s)=>{const l=ml(n,s),h=Yt.fromHtml(''+de+"");return Ui(l.element,h),bi(h,()=>Ks(h))},pv=n=>bi(Yt.fromDom(n),ie),vv=(n,s,l,h)=>{Dc(n,(O,P)=>jx(n,s,l,h),l)},kT=(n,s,l,h,O)=>{const P={elm:h.element.dom,alignToTop:O};if(os(n,P))return;const Z=Tu(s).top;l(n,s,Z,h,O),Va(n,P)},jx=(n,s,l,h)=>{const O=Yt.fromDom(n.getBody()),P=Yt.fromDom(n.getDoc());Ti(O);const Z=du(Yt.fromDom(l.startContainer),l.startOffset);kT(n,P,s,Z,h),Z.cleanup()},Oa=(n,s,l,h)=>{const O=Yt.fromDom(n.getDoc());kT(n,O,l,pv(s),h)},Dc=(n,s,l)=>{const h=l.startContainer,O=l.startOffset,P=l.endContainer,Z=l.endOffset;s(Yt.fromDom(h),Yt.fromDom(P));const J=n.dom.createRng();J.setStart(h,O),J.setEnd(P,Z),n.selection.setRng(l)},ql=(n,s,l,h,O)=>{const P=s.pos;if(h)n0(P.left,P.top,O);else{const Z=P.top-l+s.height;n0(-n.getBody().getBoundingClientRect().left,Z,O)}},uf=(n,s,l,h,O,P)=>{const Z=h+l,J=O.pos.top,he=O.bottom,_e=he-J>=h;JZ?ql(n,O,h,_e?P!==!1:P===!0,s):he>Z&&!_e&&ql(n,O,h,P===!0,s)},Ru=(n,s,l,h,O)=>{const P=vg(s).dom.innerHeight;uf(n,s,l,P,h,O)},jg=(n,s,l,h,O)=>{const P=vg(s).dom.innerHeight;uf(n,s,l,P,h,O);const Z=io(h.element),J=Cy(window);Z.topJ.bottom&&wy(h.element,O===!0)},Gc=(n,s,l)=>vv(n,Ru,s,l),AT=(n,s,l)=>Oa(n,s,Ru,l),kb=(n,s,l)=>vv(n,jg,s,l),Lh=(n,s,l)=>Oa(n,s,jg,l),cc=(n,s,l)=>{(n.inline?AT:Lh)(n,s,l)},Ab=(n,s,l)=>{(n.inline?Gc:kb)(n,s,l)},AA=(n,s=!1)=>n.dom.focus({preventScroll:s}),PA=n=>{const s=Pf(n).dom;return n.dom===s.activeElement},r1=(n=ir())=>G.from(n.dom.activeElement).map(Yt.fromDom),MA=n=>r1(Pf(n)).filter(s=>n.dom.contains(s.dom)),qx=(n,s)=>{const l=Zi(s)?su(s).length:ol(s).length+1;return n>l?l:n<0?0:n},EA=n=>Fm.range(n.start,qx(n.soffset,n.start),n.finish,qx(n.foffset,n.finish)),yv=(n,s)=>!Gu(s.dom)&&(tc(n,s)||Gs(n,s)),f9=n=>s=>yv(n,s.start)&&yv(n,s.finish),HU=n=>n.inline||Dr.browser.isFirefox(),UU=n=>Fm.range(Yt.fromDom(n.startContainer),n.startOffset,Yt.fromDom(n.endContainer),n.endOffset),WU=n=>{const s=n.getSelection();return(!s||s.rangeCount===0?G.none():G.from(s.getRangeAt(0))).map(UU)},YU=n=>{const s=vg(n);return WU(s.dom).filter(f9(n))},d9=(n,s)=>G.from(s).filter(f9(n)).map(EA),h9=n=>{const s=document.createRange();try{return s.setStart(n.start.dom,n.soffset),s.setEnd(n.finish.dom,n.foffset),G.some(s)}catch{return G.none()}},Kx=n=>{const s=HU(n)?YU(Yt.fromDom(n.getBody())):G.none();n.bookmark=s.isSome()?s:n.bookmark},y_=n=>(n.bookmark?n.bookmark:G.none()).bind(l=>d9(Yt.fromDom(n.getBody()),l)).bind(h9),XU=n=>{y_(n).each(s=>n.selection.setRng(s))},g9={isEditorUIElement:n=>{const s=n.className.toString();return s.indexOf("tox-")!==-1||s.indexOf("mce-")!==-1}},p9=(n,s)=>(W(s)||(s=0),setTimeout(n,s)),v9=(n,s)=>(W(s)||(s=0),setInterval(n,s)),fd={setEditorTimeout:(n,s,l)=>p9(()=>{n.removed||s()},l),setEditorInterval:(n,s,l)=>{const h=v9(()=>{n.removed?clearInterval(h):s()},l);return h}},GU=n=>n.type==="nodechange"&&n.selectionChange,jU=(n,s)=>{const l=()=>{s.throttle()};Da.DOM.bind(document,"mouseup",l),n.on("remove",()=>{Da.DOM.unbind(document,"mouseup",l)})},qU=(n,s)=>{n.on("mouseup touchend",l=>{s.throttle()})},KU=(n,s)=>{qU(n,s),n.on("keyup NodeChange AfterSetSelectionRange",l=>{GU(l)||Kx(n)})},_A=n=>{const s=By(()=>{Kx(n)},0);n.on("init",()=>{n.inline&&jU(n,s),KU(n,s)}),n.on("remove",()=>{s.cancel()})};let Pb;const RA=Da.DOM,y9=n=>Xr(n)&&g9.isEditorUIElement(n),DA=n=>{const s=n.classList;return s!==void 0?s.contains("tox-edit-area")||s.contains("tox-edit-area__iframe")||s.contains("mce-content-body"):!1},$A=(n,s)=>{const l=Lk(n);return RA.getParent(s,O=>y9(O)||(l?n.dom.is(O,l):!1))!==null},b_=n=>{try{const s=Pf(Yt.fromDom(n.getElement()));return r1(s).fold(()=>document.body,l=>l.dom)}catch{return document.body}},JU=(n,s)=>{const l=s.editor;_A(l);const h=(O,P)=>{if(AE(O)&&O.inline!==!0){const Z=Yt.fromDom(O.getContainer());P(Z,"tox-edit-focus")}};l.on("focusin",()=>{const O=n.focusedEditor;DA(b_(l))&&h(l,cm),O!==l&&(O&&O.dispatch("blur",{focusedEditor:l}),n.setActive(l),n.focusedEditor=l,l.dispatch("focus",{blurredEditor:O}),l.focus(!0))}),l.on("focusout",()=>{fd.setEditorTimeout(l,()=>{const O=n.focusedEditor;(!DA(b_(l))||O!==l)&&h(l,um),!$A(l,b_(l))&&O===l&&(l.dispatch("blur",{focusedEditor:null}),n.focusedEditor=null)})}),Pb||(Pb=O=>{const P=n.activeEditor;P&&Hp(O).each(Z=>{const J=Z;J.ownerDocument===document&&J!==document.body&&!$A(P,J)&&n.focusedEditor===P&&(P.dispatch("blur",{focusedEditor:null}),n.focusedEditor=null)})},RA.bind(document,"focusin",Pb))},eW=(n,s)=>{n.focusedEditor===s.editor&&(n.focusedEditor=null),!n.activeEditor&&Pb&&(RA.unbind(document,"focusin",Pb),Pb=null)},tW=n=>{n.on("AddEditor",ee(JU,n)),n.on("RemoveEditor",ee(eW,n))},nW=(n,s)=>n.dom.getParent(s,l=>n.dom.getContentEditable(l)==="true"),rW=n=>n.collapsed?G.from(Mu(n.startContainer,n.startOffset)).map(Yt.fromDom):G.none(),oW=(n,s)=>rW(s).bind(l=>nd(l)?G.some(l):tc(n,l)?G.none():G.some(n)),b9=(n,s)=>{oW(Yt.fromDom(n.getBody()),s).bind(l=>Xc(l.dom)).fold(()=>{n.selection.normalize()},l=>n.selection.setRng(l.toRange()))},O_=n=>{if(n.setActive)try{n.setActive()}catch{n.focus()}else n.focus()},sW=n=>PA(n)||MA(n).isSome(),aW=n=>B(n.iframeElement)&&PA(Yt.fromDom(n.iframeElement)),LA=n=>{const s=n.getBody();return s&&sW(Yt.fromDom(s))},O9=n=>{const s=Pf(Yt.fromDom(n.getElement()));return r1(s).filter(l=>!DA(l.dom)&&$A(n,l.dom)).isSome()},o1=n=>n.inline?LA(n):aW(n),x9=n=>o1(n)||O9(n),iW=n=>{const s=n.selection,l=n.getBody();let h=s.getRng();n.quirks.refreshContentEditable(),B(n.bookmark)&&!o1(n)&&y_(n).each(P=>{n.selection.setRng(P),h=P});const O=nW(n,s.getNode());if(O&&n.dom.isChildOf(O,l)){O_(O),b9(n,h),x_(n);return}n.inline||(Dr.browser.isOpera()||O_(l),n.getWin().focus()),(Dr.browser.isFirefox()||n.inline)&&(O_(l),b9(n,h)),x_(n)},x_=n=>n.editorManager.setActive(n),lW=(n,s)=>{n.removed||(s?x_(n):iW(n))},S9=(n,s)=>s.collapsed?n.isEditable(s.startContainer):n.isEditable(s.startContainer)&&n.isEditable(s.endContainer),w9=(n,s,l,h,O)=>{const P=l?s.startContainer:s.endContainer,Z=l?s.startOffset:s.endOffset;return G.from(P).map(Yt.fromDom).map(J=>!h||!s.collapsed?ph(J,O(J,Z)).getOr(J):J).bind(J=>kl(J)?G.some(J):ru(J).filter(kl)).map(J=>J.dom).getOr(n)},S_=(n,s,l=!1)=>w9(n,s,!0,l,(h,O)=>Math.min(Pl(h),O)),T9=(n,s,l=!1)=>w9(n,s,!1,l,(h,O)=>O>0?O-1:O),w_=(n,s)=>{const l=n;for(;n&&lr(n)&&n.length===0;)n=s?n.nextSibling:n.previousSibling;return n||l},C9=(n,s)=>{if(!s)return n;let l=s.startContainer,h=s.endContainer;const O=s.startOffset,P=s.endOffset;let Z=s.commonAncestorContainer;s.collapsed||(l===h&&P-O<2&&l.hasChildNodes()&&(Z=l.childNodes[O]),lr(l)&&lr(h)&&(l.length===O?l=w_(l.nextSibling,!0):l=l.parentNode,P===0?h=w_(h.previousSibling,!1):h=h.parentNode,l&&l===h&&(Z=l)));const J=lr(Z)?Z.parentNode:Z;return zl(J)?J:n},cW=(n,s,l,h)=>{const O=[],P=n.getRoot(),Z=n.getParent(l||S_(P,s,s.collapsed),n.isBlock),J=n.getParent(h||T9(P,s,s.collapsed),n.isBlock);if(Z&&Z!==P&&O.push(Z),Z&&J&&Z!==J){let he;const _e=new ca(Z,P);for(;(he=_e.next())&&he!==J;)n.isBlock(he)&&O.push(he)}return J&&Z!==J&&J!==P&&O.push(J),O},uW=(n,s,l)=>G.from(s).bind(h=>G.from(h.parentNode).map(O=>{const P=n.nodeIndex(h),Z=n.createRng();return Z.setStart(O,P),Z.setEnd(O,P+1),l&&(iT(n,Z,h,!0),iT(n,Z,h,!1)),Z})),T_=(n,s)=>Ie(s,l=>{const h=n.dispatch("GetSelectionRange",{range:l});return h.range!==l?h.range:l}),fW=n=>Vs(n)==="img"?1:a0(n).fold(()=>ol(n).length,s=>s.length),dW=n=>a0(n).filter(s=>s.trim().length!==0||s.indexOf(zs)>-1).isSome(),hW=n=>Ya(n)&&Al(n,"contenteditable")==="false",mW=["img","br"],k9=n=>dW(n)||Ze(mW,Vs(n))||hW(n),gW=n=>Vl(n,k9),pW=n=>vW(n,k9),vW=(n,s)=>{const l=h=>{const O=ol(h);for(let P=O.length-1;P>=0;P--){const Z=O[P];if(s(Z))return G.some(Z);const J=l(Z);if(J.isSome())return J}return G.none()};return l(n)},A9="[data-mce-autocompleter]",yW=(n,s)=>{if(P9(Yt.fromDom(n.getBody())).isNone()){const l=Yt.fromHtml('',n.getDoc());Ci(l,Yt.fromDom(s.extractContents())),s.insertNode(l.dom),ru(l).each(h=>h.dom.normalize()),pW(l).map(h=>{n.selection.setCursorLocation(h.dom,fW(h))})}},bW=n=>Mf(n,A9),P9=n=>Sc(n,A9),OW=(n,s)=>P9(s).each(l=>{const h=n.selection.getBookmark();Ef(l),n.selection.moveToBookmark(h)}),xW={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},IA=(n,s,l)=>{const h=l?"lastChild":"firstChild",O=l?"prev":"next";if(n[h])return n[h];if(n!==s){let P=n[O];if(P)return P;for(let Z=n.parent;Z&&Z!==s;Z=Z.parent)if(P=Z[O],P)return P}},SW=n=>{var s;const l=(s=n.value)!==null&&s!==void 0?s:"";if(!Ba(l))return!1;const h=n.parent;return!(h&&(h.name!=="span"||h.attr("style"))&&/^[ ]+$/.test(l))},yo=n=>{const s=n.name==="a"&&!n.attr("href")&&n.attr("id");return n.attr("name")||n.attr("id")&&!n.firstChild||n.attr("data-mce-bookmark")||s};class hu{static create(s,l){const h=new hu(s,xW[s]||1);return l&&Bt(l,(O,P)=>{h.attr(P,O)}),h}constructor(s,l){this.name=s,this.type=l,l===1&&(this.attributes=[],this.attributes.map={})}replace(s){const l=this;return s.parent&&s.remove(),l.insert(s,l),l.remove(),l}attr(s,l){const h=this;if(!M(s))return B(s)&&Bt(s,(P,Z)=>{h.attr(Z,P)}),h;const O=h.attributes;if(O){if(l!==void 0){if(l===null){if(s in O.map){delete O.map[s];let P=O.length;for(;P--;)if(O[P].name===s)return O.splice(P,1),h}return h}if(s in O.map){let P=O.length;for(;P--;)if(O[P].name===s){O[P].value=l;break}}else O.push({name:s,value:l});return O.map[s]=l,h}return O.map[s]}}clone(){const s=this,l=new hu(s.name,s.type),h=s.attributes;if(h){const O=[];O.map={};for(let P=0,Z=h.length;PM(n.nodeValue)&&n.nodeValue.includes(de),NA=n=>`${n.length===0?"":`${Ie(n,s=>`[${s}]`).join(",")},`}[data-mce-bogus="all"]`,wW=(n,s)=>s.querySelectorAll(NA(n)),_9=n=>document.createTreeWalker(n,NodeFilter.SHOW_COMMENT,s=>E9(s)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),R9=n=>document.createTreeWalker(n,NodeFilter.SHOW_TEXT,s=>{if(E9(s)){const l=s.parentNode;return l&&it(M9,l.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}else return NodeFilter.FILTER_SKIP}),TW=n=>_9(n).nextNode()!==null,CW=n=>R9(n).nextNode()!==null,BA=(n,s)=>s.querySelector(NA(n))!==null,D9=(n,s)=>{re(wW(n,s),l=>{const h=Yt.fromDom(l);Al(h,"data-mce-bogus")==="all"?Ks(h):re(n,O=>{Cf(h,O)&&ci(h,O)})})},kW=n=>{let s=n.nextNode();for(;s!==null;)s.nodeValue=null,s=n.nextNode()},AW=L(kW,_9),Uo=L(kW,R9),$9=(n,s)=>{const l=[{condition:ee(BA,s),action:ee(D9,s)},{condition:TW,action:AW},{condition:CW,action:Uo}];let h=n,O=!1;return re(l,({condition:P,action:Z})=>{P(h)&&(O||(h=n.cloneNode(!0),O=!0),Z(h))}),h},Jo=n=>{const s=sl(n,"[data-mce-bogus]");re(s,l=>{Al(l,"data-mce-bogus")==="all"?Ks(l):ed(l)?(Ui(l,Yt.fromText(Cg)),Ks(l)):Ef(l)})},C_=n=>{const s=sl(n,"input");re(s,l=>{ci(l,"name")})},Cle=(n,s)=>{const l=Ec(n),h=new RegExp(`^(<${l}[^>]*>( | |\\s| |
    |)<\\/${l}>[\r +]*|
    [\r +]*)$`);return s.replace(h,"")},kle=(n,s)=>{const l=n.getDoc(),h=Pf(Yt.fromDom(n.getBody())),O=Yt.fromTag("div",l);Ra(O,"data-mce-bogus","all"),nc(O,{position:"fixed",left:"-9999999px",top:"0"}),gm(O,s.innerHTML),Jo(O),C_(O);const P=GC(h);Ci(P,O);const Z=Pe(O.dom.innerText);return Ks(O),Z},PW=(n,s,l)=>{let h;return s.format==="raw"?h=fr.trim(Pe($9(l,n.serializer.getTempAttrs()).innerHTML)):s.format==="text"?h=kle(n,l):s.format==="tree"?h=n.serializer.serialize(l,s):h=Cle(n,n.serializer.serialize(l,s)),s.format!=="text"&&!Wi(Yt.fromDom(l))&&M(h)?fr.trim(h):h},Ale=(n,s)=>G.from(n.getBody()).fold(ae(s.format==="tree"?new hu("body",11):""),l=>PW(n,s,l)),MW=fr.makeMap,L9=n=>{const s=[];n=n||{};const l=n.indent,h=MW(n.indent_before||""),O=MW(n.indent_after||""),P=Pg.getEncodeFunc(n.entity_encoding||"raw",n.entities),Z=n.element_format!=="xhtml";return{start:(J,he,_e)=>{if(l&&h[J]&&s.length>0){const Ge=s[s.length-1];Ge.length>0&&Ge!==` +`&&s.push(` +`)}if(s.push("<",J),he)for(let Ge=0,qe=he.length;Ge0){const Ge=s[s.length-1];Ge.length>0&&Ge!==` +`&&s.push(` +`)}},end:J=>{let he;s.push(""),l&&O[J]&&s.length>0&&(he=s[s.length-1],he.length>0&&he!==` +`&&s.push(` +`))},text:(J,he)=>{J.length>0&&(s[s.length]=he?J:P(J))},cdata:J=>{s.push("")},comment:J=>{s.push("")},pi:(J,he)=>{he?s.push(""):s.push(""),l&&s.push(` +`)},doctype:J=>{s.push("",l?` +`:"")},reset:()=>{s.length=0},getContent:()=>s.join("").replace(/\n$/,"")}},s1=(n={},s=Cm())=>{const l=L9(n);return n.validate="validate"in n?n.validate:!0,{serialize:O=>{const P=n.validate,Z={3:he=>{var _e;l.text((_e=he.value)!==null&&_e!==void 0?_e:"",he.raw)},8:he=>{var _e;l.comment((_e=he.value)!==null&&_e!==void 0?_e:"")},7:he=>{l.pi(he.name,he.value)},10:he=>{var _e;l.doctype((_e=he.value)!==null&&_e!==void 0?_e:"")},4:he=>{var _e;l.cdata((_e=he.value)!==null&&_e!==void 0?_e:"")},11:he=>{let _e=he;if(_e=_e.firstChild)do J(_e);while(_e=_e.next)}};l.reset();const J=he=>{var _e;const Ge=Z[he.type];if(Ge)Ge(he);else{const qe=he.name,ot=qe in s.getVoidElements();let Et=he.attributes;if(P&&Et&&Et.length>1){const Vt=[];Vt.map={};const kt=s.getElementRule(he.name);if(kt){for(let It=0,cn=kt.attributesOrder.length;It{Mo.add(s)});const I9=["font","text-decoration","text-emphasis"],k_=(n,s)=>Gt(n.parseStyle(n.getAttrib(s,"style"))),EW=n=>Mo.has(n),PT=(n,s)=>Xe(k_(n,s),l=>!EW(l)),N9=n=>se(n,s=>De(I9,l=>Sr(s,l))),_W=(n,s,l)=>{const h=k_(n,s),O=k_(n,l),P=Z=>{var J,he;const _e=(J=n.getStyle(s,Z))!==null&&J!==void 0?J:"",Ge=(he=n.getStyle(l,Z))!==null&&he!==void 0?he:"";return St(_e)&&St(Ge)&&_e!==Ge};return De(h,Z=>{const J=he=>De(he,_e=>_e===Z);if(!J(O)&&J(I9)){const he=N9(O);return De(he,P)}else return P(Z)})},B9=(n,s,l)=>G.from(l.container()).filter(lr).exists(h=>{const O=n?0:-1;return s(h.data.charAt(l.offset()+O))}),A_=ee(B9,!0,Y0),QA=ee(B9,!1,Y0),RW=n=>{const s=n.container();return lr(s)&&(s.data.length===0||we(s.data)&&mv.isBookmarkNode(s.parentNode))},Mb=(n,s)=>l=>rb(n?0:-1,l).filter(s).isSome(),DW=n=>El(n)&&wi(Yt.fromDom(n),"display")==="block",Q9=n=>Os(n)&&!bm(n),$W=Mb(!0,DW),LW=Mb(!1,DW),MT=Mb(!0,ei),Jx=Mb(!1,ei),F9=Mb(!0,ju),as=Mb(!1,ju),bv=Mb(!0,Q9),Vm=Mb(!1,Q9),V9=n=>n.slice(0,-1),z9=(n,s,l)=>tc(s,n)?V9(hy(n,h=>l(h)||Gs(h,s))):[],P_=(n,s)=>z9(n,s,ne),qg=(n,s)=>[n].concat(P_(n,s)),FA=(n,s,l)=>id(n,s,l,RW),IW=n=>s=>n.isBlock(Vs(s)),M_=(n,s,l)=>le(qg(Yt.fromDom(s.container()),n),IW(l)),Z9=(n,s,l,h)=>FA(n,s.dom,l).forall(O=>M_(s,l,h).fold(()=>!Hd(O,l,s.dom),P=>!Hd(O,l,s.dom)&&tc(P,Yt.fromDom(O.container())))),H9=(n,s,l,h)=>M_(s,l,h).fold(()=>FA(n,s.dom,l).forall(O=>!Hd(O,l,s.dom)),O=>FA(n,O.dom,l).isNone()),E_=ee(H9,!1),U9=ee(H9,!0),NW=ee(Z9,!1),BW=ee(Z9,!0),QW=n=>Ax(n).exists(ed),VA=(n,s,l,h)=>{const O=se(qg(Yt.fromDom(l.container()),s),Z=>h.isBlock(Vs(Z))),P=yt(O).getOr(s);return Rl(n,P.dom,l).filter(QW)},ET=(n,s,l)=>Ax(s).exists(ed)||VA(!0,n,s,l).isSome(),_T=(n,s,l)=>NE(s).exists(ed)||VA(!1,n,s,l).isSome(),FW=ee(VA,!1),VW=ee(VA,!0),W9=n=>Nn.isTextPosition(n)&&!n.isAtStart()&&!n.isAtEnd(),Y9=(n,s,l)=>{const h=se(qg(Yt.fromDom(s.container()),n),O=>l.isBlock(Vs(O)));return yt(h).getOr(n)},X9=(n,s,l)=>W9(s)?QA(s):QA(s)||uu(Y9(n,s,l).dom,s).exists(QA),G9=(n,s,l)=>W9(s)?A_(s):A_(s)||Rc(Y9(n,s,l).dom,s).exists(A_),zW=n=>Ze(["pre","pre-wrap"],n),__=n=>Ax(n).bind(s=>wu(s,kl)).exists(s=>zW(wi(s,"white-space"))),j9=(n,s)=>uu(n.dom,s).isNone(),ZW=(n,s)=>Rc(n.dom,s).isNone(),HW=(n,s,l)=>j9(n,s)||ZW(n,s)||E_(n,s,l)||U9(n,s,l)||_T(n,s,l)||ET(n,s,l),Eb=n=>B(n)&&Os(n)&&Qg(n),q9=(n,s)=>l=>Eb(new ca(l,n)[s]()),K9=(n,s)=>{const l=Rc(n.dom,s).getOr(s),h=q9(n.dom,"next");return s.isAtEnd()&&(h(s.container())||h(l.container()))},UW=(n,s)=>{const l=uu(n.dom,s).getOr(s),h=q9(n.dom,"prev");return s.isAtStart()&&(h(s.container())||h(l.container()))},J9=(n,s,l)=>__(s)?!1:HW(n,s,l)||X9(n,s,l)||G9(n,s,l),e2=(n,s,l)=>__(s)?!1:E_(n,s,l)||NW(n,s,l)||_T(n,s,l)||X9(n,s,l)||UW(n,s),eL=n=>{const s=n.container(),l=n.offset();return lr(s)&&l__(s)?!1:U9(n,s,l)||BW(n,s,l)||ET(n,s,l)||G9(n,s,l)||K9(n,s),zA=(n,s,l)=>e2(n,s,l)||t2(n,eL(s),l),mu=(n,s)=>Dx(n.charAt(s)),tL=(n,s)=>Y0(n.charAt(s)),WW=n=>{const s=n.container();return lr(s)&&sr(s.data,zs)},YW=n=>{const s=n.split("");return Ie(s,(l,h)=>Dx(l)&&h>0&&h{const O=s.data,P=Nn(s,0);return!l&&mu(O,0)&&!zA(n,P,h)?(s.data=" "+O.slice(1),!0):l&&tL(O,0)&&e2(n,P,h)?(s.data=zs+O.slice(1),!0):!1},XW=n=>{const s=n.data,l=YW(s);return l!==s?(n.data=l,!0):!1},a1=(n,s,l,h)=>{const O=s.data,P=Nn(s,O.length-1);return!l&&mu(O,O.length-1)&&!zA(n,P,h)?(s.data=O.slice(0,-1)+" ",!0):l&&tL(O,O.length-1)&&t2(n,P,h)?(s.data=O.slice(0,-1)+zs,!0):!1},GW=(n,s,l)=>{const h=s.container();if(!lr(h))return G.none();if(WW(s)){const O=nL(n,h,!1,l)||XW(h)||a1(n,h,!1,l);return Zo(O,s)}else if(zA(n,s,l)){const O=nL(n,h,!0,l)||a1(n,h,!0,l);return Zo(O,s)}else return G.none()},jW=n=>{const s=Yt.fromDom(n.getBody());n.selection.isCollapsed()&&GW(s,Nn.fromRangeStart(n.selection.getRng()),n.schema).each(l=>{n.selection.setRng(l.toRange())})},ri=(n,s,l,h)=>{if(l===0)return;const O=Yt.fromDom(n),P=ui(O,_e=>h.isBlock(Vs(_e))).getOr(O),Z=n.data.slice(s,s+l),J=s+l>=n.data.length&&t2(P,Nn(n,n.data.length),h),he=s===0&&e2(P,Nn(n,0),h);n.replaceData(s,l,Ki(Z,4,he,J))},_b=(n,s,l)=>{const h=n.data.slice(s),O=h.length-Fe(h).length;ri(n,s,O,l)},rL=(n,s,l)=>{const h=n.data.slice(0,s),O=h.length-Ee(h).length;ri(n,s-O,O,l)},Dl=(n,s,l,h,O=!0)=>{const P=Ee(n.data).length,Z=O?n:s,J=O?s:n;return O?Z.appendData(J.data):Z.insertData(0,J.data),Ks(Yt.fromDom(J)),h&&_b(Z,P,l),Z},qW=(n,s)=>{const l=n.container(),h=n.offset();return!Nn.isTextPosition(n)&&l===s.parentNode&&h>Nn.before(s).offset()},KW=(n,s)=>qW(s,n)?Nn(s.container(),s.offset()-1):s,Ov=n=>lr(n)?Nn(n,0):Nn.before(n),ia=n=>lr(n)?Nn(n,n.data.length):Nn.after(n),R_=n=>go(n.previousSibling)?G.some(ia(n.previousSibling)):n.previousSibling?ld(n.previousSibling):G.none(),D_=n=>go(n.nextSibling)?G.some(Ov(n.nextSibling)):n.nextSibling?Xc(n.nextSibling):G.none(),JW=(n,s)=>G.from(s.previousSibling?s.previousSibling:s.parentNode).bind(l=>uu(n,Nn.before(l))).orThunk(()=>Rc(n,Nn.after(s))),eY=(n,s)=>Rc(n,Nn.after(s)).orThunk(()=>uu(n,Nn.before(s))),tY=(n,s)=>R_(s).orThunk(()=>D_(s)).orThunk(()=>JW(n,s)),Bf=(n,s)=>D_(s).orThunk(()=>R_(s)).orThunk(()=>eY(n,s)),zm=(n,s,l)=>n?Bf(s,l):tY(s,l),nY=(n,s,l)=>zm(n,s,l).map(ee(KW,l)),ZA=(n,s,l)=>{l.fold(()=>{n.focus()},h=>{n.selection.setRng(h.toRange(),s)})},$_=n=>s=>s.dom===n,rY=(n,s)=>s&&it(n.schema.getBlockElements(),Vs(s)),oY=(n,s)=>{if(ta(n)){const l=Yt.fromHtml('
    ');return s?re(ol(n),h=>{pb(h)||Ks(h)}):bh(n),Ci(n,l),G.some(Nn.before(l.dom))}else return G.none()},RT=(n,s,l,h)=>{const O=Uu(n).filter(Zi),P=zp(n).filter(Zi);return Ks(n),yl(O,P,s,(Z,J,he)=>{const _e=Z.dom,Ge=J.dom,qe=_e.data.length;return Dl(_e,Ge,l,h),he.container()===Ge?Nn(_e,qe):he}).orThunk(()=>(h&&(O.each(Z=>rL(Z.dom,Z.dom.length,l)),P.each(Z=>_b(Z.dom,0,l))),s))},HA=(n,s)=>it(n.schema.getTextInlineElements(),Vs(s)),xv=(n,s,l,h=!0,O=!1)=>{const P=nY(s,n.getBody(),l.dom),Z=ui(l,ee(rY,n),$_(n.getBody())),J=RT(l,P,n.schema,HA(n,l));n.dom.isEmpty(n.getBody())?(n.setContent(""),n.selection.setCursorLocation()):Z.bind(he=>oY(he,O)).fold(()=>{h&&ZA(n,s,J)},he=>{h&&ZA(n,s,G.some(he))})},sY=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,Zm=n=>sY.test(n),Rb=(n,s)=>Hu(Yt.fromDom(s),fE(n))&&!ks(n.schema,s)&&n.dom.isEditable(s),oL=n=>{var s;return Da.DOM.getStyle(n,"direction",!0)==="rtl"||Zm((s=n.textContent)!==null&&s!==void 0?s:"")},Gd=(n,s,l)=>se(Da.DOM.getParents(l.container(),"*",s),n),Ih=(n,s,l)=>{const h=Gd(n,s,l);return G.from(h[h.length-1])},Nh=(n,s,l)=>{const h=_m(s,n),O=_m(l,n);return B(h)&&h===O},aY=n=>gn(n)||An(n),Ds=(n,s)=>{const l=s.container(),h=s.offset();return n?vt(l)?lr(l.nextSibling)?Nn(l.nextSibling,0):Nn.after(l):gn(s)?Nn(l,h+1):s:vt(l)?lr(l.previousSibling)?Nn(l.previousSibling,l.previousSibling.data.length):Nn.before(l):An(s)?Nn(l,h-1):s},Db=ee(Ds,!0),DT=ee(Ds,!1),L_=(n,s)=>{const l=h=>h.stopImmediatePropagation();n.on("beforeinput input",l,!0),n.getDoc().execCommand(s),n.off("beforeinput input",l)},I_=n=>{n.execCommand("delete")},$T=n=>L_(n,"Delete"),iY=n=>L_(n,"ForwardDelete"),N_=n=>s=>Qa(ru(s),n,Gs),lY=n=>Mn(n)||td(n),LT=(n,s)=>tc(n,s)?wu(s,lY,N_(n)):G.none(),UA=(n,s=!0)=>{n.dom.isEmpty(n.getBody())&&n.setContent("",{no_selection:!s})},WA=(n,s,l)=>Fa(Xc(l),ld(l),(h,O)=>{const P=Ds(!0,h),Z=Ds(!1,O),J=Ds(!1,s);return n?Rc(l,J).exists(he=>he.isEqual(Z)&&s.isEqual(P)):uu(l,J).exists(he=>he.isEqual(P)&&s.isEqual(Z))}).getOr(!0),B_=n=>(QS(n)?Uu(n):xc(n)).bind(B_).orThunk(()=>G.some(n)),IT=(n,s,l,h=!0)=>{var O;s.deleteContents();const P=B_(l).getOr(l),Z=Yt.fromDom((O=n.dom.getParent(P.dom,n.dom.isBlock))!==null&&O!==void 0?O:l.dom);if(Z.dom===n.getBody()?UA(n,h):ta(Z)&&(D(Z),h&&n.selection.setCursorLocation(Z.dom,0)),!Gs(l,Z)){const J=Qa(ru(Z),l)?[]:DO(Z);re(J.concat(ol(l)),he=>{!Gs(he,Z)&&!tc(he,Z)&&ta(he)&&Ks(he)})}},cY=(n,s,l)=>ui(n,s,l).isSome(),uY=(n,s)=>py(n,s).isSome(),sL=(n,s)=>Vl(n,s).isSome(),fY=n=>s=>Gs(n,s),Q_=n=>sl(n,"td,th"),F_=(n,s)=>$m(Yt.fromDom(n),s),dY=n=>Fa(n.startTable,n.endTable,(s,l)=>{const h=sL(s,P=>Gs(P,l)),O=sL(l,P=>Gs(P,s));return!h&&!O?n:{...n,startTable:h?G.none():n.startTable,endTable:O?G.none():n.endTable,isSameTable:!1,isMultiTable:!1}}).getOr(n),hY=n=>dY(n),aL=(n,s)=>{const l=F_(n.startContainer,s),h=F_(n.endContainer,s),O=l.isSome(),P=h.isSome(),Z=Fa(l,h,Gs).getOr(!1);return hY({startTable:l,endTable:h,isStartInTable:O,isEndInTable:P,isSameTable:Z,isMultiTable:!Z&&O&&P})},YA=(n,s)=>({start:n,end:s}),mY=(n,s,l)=>({rng:n,table:s,cells:l}),NT=Zd.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),BT=(n,s)=>Mf(Yt.fromDom(n),"td,th",s),iL=n=>!Gs(n.start,n.end),V_=(n,s)=>$m(n.start,s).bind(l=>$m(n.end,s).bind(h=>Zo(Gs(l,h),l))),dd=(n,s)=>!iL(n)&&V_(n,s).exists(l=>{const h=l.dom.rows;return h.length===1&&h[0].cells.length===1}),gY=(n,s)=>{const l=BT(n.startContainer,s),h=BT(n.endContainer,s);return Fa(l,h,YA)},lL=n=>s=>$m(s,n).bind(l=>ft(Q_(l)).map(h=>YA(s,h))),z_=n=>s=>$m(s,n).bind(l=>yt(Q_(l)).map(h=>YA(h,s))),QT=n=>s=>V_(s,n).map(l=>mY(s,l,Q_(l))),Z_=(n,s,l,h)=>{if(l.collapsed||!n.forall(iL))return G.none();if(s.isSameTable){const O=n.bind(QT(h));return G.some({start:O,end:O})}else{const O=BT(l.startContainer,h),P=BT(l.endContainer,h),Z=O.bind(lL(h)).bind(QT(h)),J=P.bind(z_(h)).bind(QT(h));return G.some({start:Z,end:J})}},H_=(n,s)=>Ce(n,l=>Gs(l,s)),U_=n=>Fa(H_(n.cells,n.rng.start),H_(n.cells,n.rng.end),(s,l)=>n.cells.slice(s,l+1)),pY=(n,s,l)=>n.exists(h=>dd(h,l)&&aT(h.start,s)),XA=(n,s)=>{const{startTable:l,endTable:h}=s,O=n.cloneRange();return l.each(P=>O.setStartAfter(P.dom)),h.each(P=>O.setEndBefore(P.dom)),O},cL=(n,s,l,h)=>Z_(n,s,l,h).bind(({start:O,end:P})=>O.or(P)).bind(O=>{const{isSameTable:P}=s,Z=U_(O).getOr([]);if(P&&O.cells.length===Z.length)return G.some(NT.fullTable(O.table));if(Z.length>0){if(P)return G.some(NT.partialTable(Z,G.none()));{const J=XA(l,s);return G.some(NT.partialTable(Z,G.some({...s,rng:J})))}}else return G.none()}),Bh=(n,s,l,h)=>Z_(n,s,l,h).bind(({start:O,end:P})=>{const Z=O.bind(U_).getOr([]),J=P.bind(U_).getOr([]);if(Z.length>0&&J.length>0){const he=XA(l,s);return G.some(NT.multiTable(Z,J,he))}else return G.none()}),vY=(n,s)=>{const l=fY(n),h=gY(s,l),O=aL(s,l);return pY(h,s,l)?h.map(P=>NT.singleCellTable(s,P.start)):O.isMultiTable?Bh(h,O,s,l):cL(h,O,s,l)},uL=n=>re(n,s=>{ci(s,"contenteditable"),D(s)}),Ple=(n,s)=>G.from(n.dom.getParent(s,n.dom.isBlock)).map(Yt.fromDom),W_=(n,s,l)=>{l.each(h=>{s?Ks(h):(D(h),n.selection.setCursorLocation(h.dom,0))})},Y_=(n,s,l,h)=>{const O=l.cloneRange();h?(O.setStart(l.startContainer,l.startOffset),O.setEndAfter(s.dom.lastChild)):(O.setStartBefore(s.dom.firstChild),O.setEnd(l.endContainer,l.endOffset)),Qf(n,O,s,!1).each(P=>P())},$b=n=>{const s=X0(n),l=Yt.fromDom(n.selection.getNode());jp(l.dom)&&ta(l)?n.selection.setCursorLocation(l.dom,0):n.selection.collapse(!0),s.length>1&&De(s,h=>Gs(h,l))&&Ra(l,"data-mce-selected","1")},fL=(n,s,l)=>G.some(()=>{const h=n.selection.getRng(),O=l.bind(({rng:P,isStartInTable:Z})=>{const J=Ple(n,Z?P.endContainer:P.startContainer);P.deleteContents(),W_(n,Z,J.filter(ta));const he=Z?s[0]:s[s.length-1];return Y_(n,he,h,Z),ta(he)?G.none():G.some(Z?s.slice(1):s.slice(0,-1))}).getOr(s);uL(O),$b(n)}),n2=(n,s,l,h)=>G.some(()=>{const O=n.selection.getRng(),P=s[0],Z=l[l.length-1];Y_(n,P,O,!0),Y_(n,Z,O,!1);const J=ta(P)?s:s.slice(1),he=ta(Z)?l:l.slice(0,-1);uL(J.concat(he)),h.deleteContents(),$b(n)}),Qf=(n,s,l,h=!0)=>G.some(()=>{IT(n,s,l,h)}),FT=(n,s)=>G.some(()=>xv(n,!1,s)),_a=(n,s,l)=>vY(s,l).bind(h=>h.fold(ee(Qf,n),ee(FT,n),ee(fL,n),ee(n2,n))),VT=(n,s)=>r2(n,s),dL=(n,s,l,h)=>zT(s,h).fold(()=>_a(n,s,l),O=>VT(n,O)),hL=(n,s,l)=>{const h=Yt.fromDom(n.getBody()),O=n.selection.getRng();return l.length!==0?fL(n,l,G.none()):dL(n,h,O,s)},GA=(n,s)=>le(qg(s,n),Hc),zT=(n,s)=>le(qg(s,n),xu("caption")),X_=(n,s,l,h,O)=>Dm(l,n.getBody(),O).bind(P=>GA(s,Yt.fromDom(P.getNode())).bind(Z=>Gs(Z,h)?G.none():G.some(ie))),r2=(n,s)=>G.some(()=>{D(s),n.selection.setCursorLocation(s.dom,0)}),jA=(n,s,l,h)=>Xc(n.dom).bind(O=>ld(n.dom).map(P=>s?l.isEqual(O)&&h.isEqual(P):l.isEqual(P)&&h.isEqual(O))).getOr(!0),G_=(n,s)=>r2(n,s),mL=(n,s,l)=>zT(n,Yt.fromDom(l.getNode())).fold(()=>G.some(ie),h=>Zo(!Gs(h,s),ie)),gL=(n,s,l,h,O)=>Dm(l,n.getBody(),O).fold(()=>G.some(ie),P=>jA(h,l,O,P)?G_(n,h):mL(s,h,P)),pL=(n,s,l,h)=>{const O=Nn.fromRangeStart(n.selection.getRng());return GA(l,h).bind(P=>ta(P)?r2(n,P):X_(n,l,s,P,O))},vL=(n,s,l,h)=>{const O=Nn.fromRangeStart(n.selection.getRng());return ta(h)?r2(n,h):gL(n,l,s,h,O)},j_=(n,s)=>n?F9(s):as(s),o2=(n,s)=>{const l=Nn.fromRangeStart(n.selection.getRng());return j_(s,l)||Rl(s,n.getBody(),l).exists(h=>j_(s,h))},yL=(n,s,l)=>{const h=Yt.fromDom(n.getBody());return zT(h,l).fold(()=>pL(n,s,h,l).orThunk(()=>Zo(o2(n,s),ie)),O=>vL(n,s,h,O))},ZT=(n,s)=>{const l=Yt.fromDom(n.selection.getStart(!0)),h=X0(n);return n.selection.isCollapsed()&&h.length===0?yL(n,s,l):hL(n,l,h)},Lb=(n,s)=>{let l=s;for(;l&&l!==n;){if(Zl(l)||Os(l))return l;l=l.parentNode}return null},yY=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],bL=fr.each,qA=n=>{const s=n.dom,l=new Set(n.serializer.getTempAttrs()),h=(P,Z)=>{if(P.nodeName!==Z.nodeName||P.nodeType!==Z.nodeType)return!1;const J=_e=>{const Ge={};return bL(s.getAttribs(_e),qe=>{const ot=qe.nodeName.toLowerCase();ot!=="style"&&!O(ot)&&(Ge[ot]=s.getAttrib(_e,ot))}),Ge},he=(_e,Ge)=>{for(const qe in _e)if(it(_e,qe)){const ot=Ge[qe];if(U(ot)||_e[qe]!==ot)return!1;delete Ge[qe]}for(const qe in Ge)if(it(Ge,qe))return!1;return!0};return Xr(P)&&Xr(Z)&&(!he(J(P),J(Z))||!he(s.parseStyle(s.getAttrib(P,"style")),s.parseStyle(s.getAttrib(Z,"style"))))?!1:!af(P)&&!af(Z)},O=P=>De(yY,Z=>Sr(P,Z))||l.has(P);return{compare:h,isAttributeInternal:O}},q_=n=>["h1","h2","h3","h4","h5","h6"].includes(n.name),KA=n=>n.name==="summary",OL=(n,s)=>{let l=n;for(;l=l.walk();)s(l)},K_=(n,s,l,h)=>{const O=l.name;for(let P=0,Z=n.length;P{const h={nodes:{},attributes:{}};return l.firstChild&&OL(l,O=>{K_(n,s,O,h)}),h},J_=(n,s)=>{const l=(h,O)=>{Bt(h,P=>{const Z=tt(P.nodes);re(P.filter.callbacks,J=>{for(let he=Z.length-1;he>=0;he--){const _e=Z[he];(!(O?_e.attr(P.filter.name)!==void 0:_e.name===P.filter.name)||Q(_e.parent))&&Z.splice(he,1)}Z.length>0&&J(Z,P.filter.name,s)})})};l(n.nodes,!1),l(n.attributes,!0)},e8=(n,s,l,h={})=>{const O=xL(n,s,l);J_(O,h)},JA=(n,s,l,h)=>{if((n.pad_empty_with_br||s.insert)&&l(h)){const P=new hu("br",1);s.insert&&P.attr("data-mce-bogus","1"),h.empty().append(P)}else h.empty().append(new hu("#text",3)).value=zs},SL=n=>{var s;return t8(n,"#text")&&((s=n==null?void 0:n.firstChild)===null||s===void 0?void 0:s.value)===zs},t8=(n,s)=>{const l=n==null?void 0:n.firstChild;return B(l)&&l===n.lastChild&&l.name===s},wL=(n,s)=>{const l=n.getElementRule(s.name);return(l==null?void 0:l.paddEmpty)===!0},s2=(n,s,l,h)=>h.isEmpty(s,l,O=>wL(n,O)),n8=(n,s)=>B(n)&&(s(n)||n.name==="br"),TL=n=>{let s;for(let l=n;l;l=l.parent){const h=l.attr("contenteditable");if(h==="false")break;h==="true"&&(s=l)}return G.from(s)},e5=(n,s,l=n.parent)=>{if(s.getSpecialElements()[n.name])n.empty().remove();else{const h=n.children();for(const O of h)l&&!s.isValidChild(l.name,O.name)&&e5(O,s,l);n.unwrap()}},t5=(n,s,l,h=ie)=>{const O=s.getTextBlockElements(),P=s.getNonEmptyElements(),Z=s.getWhitespaceElements(),J=fr.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),he=new Set,_e=Ge=>Ge!==l&&!J[Ge.name];for(let Ge=0;Ge1)if(n5(s,qe,ot))e5(qe,s);else{kt.reverse(),Et=kt[0].clone(),h(Et);let It=Et;for(let cn=0;cn0?(Vt=kt[cn].clone(),h(Vt),It.append(Vt)):Vt=It;for(let xn=kt[cn].firstChild;xn&&xn!==kt[cn+1];){const bn=xn.next;Vt.append(xn),xn=bn}It=Vt}s2(s,P,Z,Et)?ot.insert(qe,kt[0],!0):(ot.insert(Et,kt[0],!0),ot.insert(qe,Et)),ot=kt[0],(s2(s,P,Z,ot)||t8(ot,"br"))&&ot.empty().remove()}else if(qe.parent){if(qe.name==="li"){let It=qe.prev;if(It&&(It.name==="ul"||It.name==="ol")){It.append(qe);continue}if(It=qe.next,It&&(It.name==="ul"||It.name==="ol")&&It.firstChild){It.insert(qe,It.firstChild,!0);continue}const cn=new hu("ul",1);h(cn),qe.wrap(cn);continue}if(s.isValidChild(qe.parent.name,"div")&&s.isValidChild("div",qe.name)){const It=new hu("div",1);h(It),qe.wrap(It)}else e5(qe,s)}}},CL=(n,s)=>{let l=n;for(;l;){if(l.name===s)return!0;l=l.parent}return!1},n5=(n,s,l=s.parent)=>l?n.children[s.name]&&!n.isValidChild(l.name,s.name)||s.name==="a"&&CL(l,"a")?!0:KA(l)&&q_(s)?!((l==null?void 0:l.firstChild)===s&&(l==null?void 0:l.lastChild)===s):!1:!1,kL=(n,s,l,h)=>{const O=document.createRange();return O.setStart(n,s),O.setEnd(l,h),O},r8=n=>{const s=Nn.fromRangeStart(n),l=Nn.fromRangeEnd(n),h=n.commonAncestorContainer;return Rl(!1,h,l).map(O=>!Hd(s,l,h)&&Hd(s,O,h)?kL(s.container(),s.offset(),O.container(),O.offset()):n).getOr(n)},a2=n=>n.collapsed?n:r8(n),r5=n=>B(n.firstChild)&&n.firstChild===n.lastChild,o8=n=>n.name==="br"||n.value===zs,AL=(n,s)=>n.getBlockElements()[s.name]&&r5(s)&&o8(s.firstChild),o5=(n,s)=>{const l=n.getNonEmptyElements();return B(s)&&(s.isEmpty(l)||AL(n,s))},s8=(n,s)=>{let l=s.firstChild,h=s.lastChild;return l&&l.name==="meta"&&(l=l.next),h&&h.attr("id")==="mce_marker"&&(h=h.prev),o5(n,h)&&(h=h==null?void 0:h.prev),!l||l!==h?!1:l.name==="ul"||l.name==="ol"},HT=n=>{var s,l;const h=n.firstChild,O=n.lastChild;return h&&h.nodeName==="META"&&((s=h.parentNode)===null||s===void 0||s.removeChild(h)),O&&O.id==="mce_marker"&&((l=O.parentNode)===null||l===void 0||l.removeChild(O)),n},a8=(n,s,l)=>{const h=s.serialize(l),O=n.createFragment(h);return HT(O)},PL=n=>{var s;return se((s=n==null?void 0:n.childNodes)!==null&&s!==void 0?s:[],l=>l.nodeName==="LI")},i2=n=>n.data===zs||aa(n),i8=n=>B(n==null?void 0:n.firstChild)&&n.firstChild===n.lastChild&&i2(n.firstChild),l8=n=>!n.firstChild||i8(n),UT=n=>n.length>0&&l8(n[n.length-1])?n.slice(0,-1):n,Kg=(n,s)=>{const l=n.getParent(s,n.isBlock);return l&&l.nodeName==="LI"?l:null},ML=(n,s)=>!!Kg(n,s),bY=(n,s)=>{const l=s.cloneRange(),h=s.cloneRange();return l.setStartBefore(n),h.setEndAfter(n),[l.cloneContents(),h.cloneContents()]},EL=(n,s)=>{const l=Nn.before(n),O=Ud(s).next(l);return O?O.toRange():null},c8=(n,s)=>{const l=Nn.after(n),O=Ud(s).prev(l);return O?O.toRange():null},OY=(n,s,l,h)=>{const O=bY(n,h),P=n.parentNode;return P&&(P.insertBefore(O[0],n),fr.each(s,Z=>{P.insertBefore(Z,n)}),P.insertBefore(O[1],n),P.removeChild(n)),c8(s[s.length-1],l)},Mle=(n,s,l)=>{const h=n.parentNode;return h&&fr.each(s,O=>{h.insertBefore(O,n)}),EL(n,l)},xY=(n,s,l,h)=>(h.insertAfter(s.reverse(),n),c8(s[0],l)),u8=(n,s,l,h)=>{const O=a8(s,n,h),P=Kg(s,l.startContainer),Z=UT(PL(O.firstChild)),J=1,he=2,_e=s.getRoot(),Ge=qe=>{const ot=Nn.fromRangeStart(l),Et=Ud(s.getRoot()),Vt=qe===J?Et.prev(ot):Et.next(ot),kt=Vt==null?void 0:Vt.getNode();return kt?Kg(s,kt)!==P:!0};return P?Ge(J)?Mle(P,Z,_e):Ge(he)?xY(P,Z,_e,s):OY(P,Z,_e,l):null},Hm=["pre"],f8=(n,s,l,h)=>{var O;const P=s.firstChild,Z=s.lastChild,J=Z.attr("data-mce-type")==="bookmark"?Z.prev:Z,he=P===J,_e=Ze(Hm,P.name);if(he&&_e){const Ge=P.attr("contenteditable")!=="false",qe=((O=n.getParent(l,n.isBlock))===null||O===void 0?void 0:O.nodeName.toLowerCase())===P.name,ot=G.from(Lb(h,l)).forall(Zl);return Ge&&qe&&ot}else return!1},l2=jp,d8=(n,s,l)=>{if(B(l)){const h=n.getParent(s.endContainer,l2);return l===h&&aT(Yt.fromDom(l),s)}else return!1},SY=(n,s,l)=>{var h;if(l.getAttribute("data-mce-bogus")==="all")(h=l.parentNode)===null||h===void 0||h.insertBefore(n.dom.createFragment(s),l);else{const O=l.firstChild,P=l.lastChild;!O||O===P&&O.nodeName==="BR"?n.dom.setHTML(l,s):n.selection.setContent(s,{no_events:!0})}},_L=(n,s,l)=>{G.from(n.getParent(s,"td,th")).map(Yt.fromDom).each(h=>X(h,l))},wY=(n,s)=>{const l=n.schema.getTextInlineElements(),h=n.dom;if(s){const O=n.getBody(),P=qA(n);fr.each(h.select("*[data-mce-fragment]"),Z=>{if(B(l[Z.nodeName.toLowerCase()])&&PT(h,Z)){for(let he=Z.parentElement;B(he)&&he!==O&&!_W(h,Z,he);he=he.parentElement)if(P.compare(he,Z)){h.remove(Z,!0);break}}})}},RL=n=>{let s=n;for(;s=s.walk();)s.type===1&&s.attr("data-mce-fragment","1")},h8=n=>{fr.each(n.getElementsByTagName("*"),s=>{s.removeAttribute("data-mce-fragment")})},TY=n=>!!n.getAttribute("data-mce-fragment"),DL=(n,s)=>B(s)&&!n.schema.getVoidElements()[s.nodeName],CY=(n,s)=>{var l,h,O;let P;const Z=n.dom,J=n.selection;if(!s)return;J.scrollIntoView(s);const he=Lb(n.getBody(),s);if(he&&Z.getContentEditable(he)==="false"){Z.remove(s),J.select(he);return}let _e=Z.createRng();const Ge=s.previousSibling;if(lr(Ge)){_e.setStart(Ge,(h=(l=Ge.nodeValue)===null||l===void 0?void 0:l.length)!==null&&h!==void 0?h:0);const Et=s.nextSibling;lr(Et)&&(Ge.appendData(Et.data),(O=Et.parentNode)===null||O===void 0||O.removeChild(Et))}else _e.setStartBefore(s),_e.setEndBefore(s);const qe=Et=>{let Vt=Nn.fromRangeStart(Et);return Vt=Ud(n.getBody()).next(Vt),Vt==null?void 0:Vt.toRange()},ot=Z.getParent(s,Z.isBlock);if(Z.remove(s),ot&&Z.isEmpty(ot)){const Et=l2(ot);bh(Yt.fromDom(ot)),_e.setStart(ot,0),_e.setEnd(ot,0),!Et&&!TY(ot)&&(P=qe(_e))?(_e=P,Z.remove(ot)):Z.add(ot,Z.create("br",Et?{}:{"data-mce-bogus":"1"}))}J.setRng(_e)},WT=n=>{const s=n.dom,l=a2(n.selection.getRng());n.selection.setRng(l);const h=s.getParent(l.startContainer,l2);d8(s,l,h)?Qf(n,l,Yt.fromDom(h)):l.startContainer===l.endContainer&&l.endOffset-l.startOffset===1&&lr(l.startContainer.childNodes[l.startOffset])?l.deleteContents():n.getDoc().execCommand("Delete",!1)},$L=n=>{for(let s=n;s;s=s.walk())if(s.attr("id")==="mce_marker")return G.some(s);return G.none()},kY=(n,s,l)=>{var h;return De(l.children(),q_)&&((h=n.getParent(s,n.isBlock))===null||h===void 0?void 0:h.nodeName)==="SUMMARY"},LL=(n,s,l)=>{var h,O;const P=n.selection,Z=n.dom,J=n.parser,he=l.merge,_e=s1({validate:!0},n.schema),Ge='';l.preserve_zwsp||(s=Pe(s)),s.indexOf("{$caret}")===-1&&(s+="{$caret}"),s=s.replace(/\{\$caret\}/,Ge);let qe=P.getRng();const ot=qe.startContainer,Et=n.getBody();ot===Et&&P.isCollapsed()&&Z.isBlock(Et.firstChild)&&DL(n,Et.firstChild)&&Z.isEmpty(Et.firstChild)&&(qe=Z.createRng(),qe.setStart(Et.firstChild,0),qe.setEnd(Et.firstChild,0),P.setRng(qe)),P.isCollapsed()||WT(n);const Vt=P.getNode(),kt={context:Vt.nodeName.toLowerCase(),data:l.data,insert:!0},It=J.parse(s,kt);if(l.paste===!0&&s8(n.schema,It)&&ML(Z,Vt))return qe=u8(_e,Z,P.getRng(),It),qe&&P.setRng(qe),s;l.paste===!0&&f8(Z,It,Vt,n.getBody())&&((h=It.firstChild)===null||h===void 0||h.unwrap()),RL(It);let cn=It.lastChild;if(cn&&cn.attr("id")==="mce_marker"){const xn=cn;for(cn=cn.prev;cn;cn=cn.walk(!0))if(cn.type===3||!Z.isBlock(cn.name)){cn.parent&&n.schema.isValidChild(cn.parent.name,"span")&&cn.parent.insert(xn,cn,cn.name==="br");break}}if(n._selectionOverrides.showBlockCaretContainer(Vt),!kt.invalid&&!kY(Z,Vt,It))s=_e.serialize(It),SY(n,s,Vt);else{n.selection.setContent(Ge);let xn=P.getNode(),bn;const $n=n.getBody();for(Tg(xn)?xn=bn=$n:bn=xn;bn&&bn!==$n;)xn=bn,bn=bn.parentNode;s=xn===$n?$n.innerHTML:Z.getOuterHTML(xn);const rr=J.parse(s),gr=$L(rr),Qr=gr.bind(TL).getOr(rr);gr.each(eo=>eo.replace(It));const zn=It.children(),Bn=(O=It.parent)!==null&&O!==void 0?O:rr;It.unwrap();const tr=se(zn,eo=>n5(n.schema,eo,Bn));t5(tr,n.schema,Qr),e8(J.getNodeFilters(),J.getAttributeFilters(),rr),s=_e.serialize(rr),xn===$n?Z.setHTML($n,s):Z.setOuterHTML(xn,s)}return wY(n,he),CY(n,Z.get("mce_marker")),h8(n.getBody()),_L(Z,P.getStart(),n.schema),JC(n.schema,n.getBody(),P.getStart()),s},s5=n=>n instanceof hu,AY=n=>{o1(n)&&Xc(n.getBody()).each(s=>{const l=s.getNode(),h=ju(l)?Xc(l).getOr(s):s;n.selection.setRng(h.toRange())})},m8=(n,s,l)=>{n.dom.setHTML(n.getBody(),s),l!==!0&&AY(n)},PY=(n,s,l,h)=>{if(l=Pe(l),l.length===0||/^\s+$/.test(l)){const O='
    ';s.nodeName==="TABLE"?l=""+O+"":/^(UL|OL)$/.test(s.nodeName)&&(l="
  • "+O+"
  • ");const P=Ec(n);return n.schema.isValidChild(s.nodeName.toLowerCase(),P.toLowerCase())?(l=O,l=n.dom.createHTML(P,Yy(n),l)):l||(l=O),m8(n,l,h.no_selection),{content:l,html:l}}else{h.format!=="raw"&&(l=s1({validate:!1},n.schema).serialize(n.parser.parse(l,{isRootContent:!0,insert:!0})));const O=Wi(Yt.fromDom(s))?l:fr.trim(l);return m8(n,O,h.no_selection),{content:O,html:O}}},MY=(n,s,l,h)=>{e8(n.parser.getNodeFilters(),n.parser.getAttributeFilters(),l);const O=s1({validate:!1},n.schema).serialize(l),P=Pe(Wi(Yt.fromDom(s))?O:fr.trim(O));return m8(n,P,h.no_selection),{content:l,html:P}},IL=(n,s,l)=>G.from(n.getBody()).map(h=>s5(s)?MY(n,h,s,l):PY(n,h,s,l)).getOr({content:s,html:s5(l.content)?"":l.content}),NL=n=>E(n)?n:ne,g8=(n,s,l)=>{let h=n.dom;const O=NL(l);for(;h.parentNode;){h=h.parentNode;const P=Yt.fromDom(h),Z=s(P);if(Z.isSome())return Z;if(O(P))break}return G.none()},Sv=(n,s,l)=>{const h=s(n),O=NL(l);return h.orThunk(()=>O(n)?G.none():g8(n,s,O))},p8=Bx,BL=(n,s,l)=>{const h=n.formatter.get(l);if(h)for(let O=0;O{const P=n.dom.getRoot();if(s===P)return!1;const Z=n.dom.getParent(s,J=>BL(n,J,l)?!0:J.parentNode===P||!!Jg(n,J,l,h,!0));return!!Jg(n,Z,l,h,O)},YT=(n,s,l)=>Xi(l)&&p8(s,l.inline)||Xd(l)&&p8(s,l.block)?!0:jl(l)?Xr(s)&&n.is(s,l.selector):!1,v8=(n,s,l,h,O,P)=>{const Z=l[h],J=h==="attributes";if(E(l.onmatch))return l.onmatch(s,l,h);if(Z){if(Dt(Z)){for(let he=0;he{const P=n.formatter.get(l),Z=n.dom;if(P&&Xr(s))for(let J=0;J{if(h)return c2(n,h,s,l,O);if(h=n.selection.getNode(),c2(n,h,s,l,O))return!0;const P=n.selection.getStart();return!!(P!==h&&c2(n,P,s,l,O))},EY=(n,s,l)=>{const h=[],O={},P=n.selection.getStart();return n.dom.getParent(P,Z=>{for(let J=0;J{const l=O=>Gs(O,Yt.fromDom(n.getBody())),h=(O,P)=>Jg(n,O.dom,P)?G.some(P):G.none();return G.from(n.selection.getStart(!0)).bind(O=>Sv(Yt.fromDom(O),P=>wt(s,Z=>h(P,Z)),l)).getOrNull()},QL=(n,s)=>{const l=n.formatter.get(s),h=n.dom;if(l&&n.selection.isEditable()){const O=n.selection.getStart(),P=hb(h,O);for(let Z=l.length-1;Z>=0;Z--){const J=l[Z];if(!jl(J))return!0;for(let he=P.length-1;he>=0;he--)if(h.is(P[he],J.selector))return!0}}return!1},FL=(n,s,l)=>oe(l,(h,O)=>{const P=uT(n,O);return n.formatter.matchNode(s,O,{},P)?h.concat([O]):h},[]),u2=de,i5=(n,s)=>n.importNode(s,!0),y8=n=>{if(n){const s=new ca(n,n);for(let l=s.current();l;l=s.next())if(lr(l))return l}return null},b8=n=>{const s=Yt.fromTag("span");return Su(s,{id:Ex,"data-mce-bogus":"1","data-mce-type":"format-caret"}),n&&Ci(s,Yt.fromText(u2)),s},VL=n=>{const s=y8(n);return s&&s.data.charAt(0)===u2&&s.deleteData(0,1),s},O8=(n,s,l)=>{const h=n.dom,O=n.selection;if(gb(s))xv(n,!1,Yt.fromDom(s),l,!0);else{const P=O.getRng(),Z=h.getParent(s,h.isBlock),J=P.startContainer,he=P.startOffset,_e=P.endContainer,Ge=P.endOffset,qe=VL(s);h.remove(s,!0),J===qe&&he>0&&P.setStart(qe,he-1),_e===qe&&Ge>0&&P.setEnd(qe,Ge-1),Z&&h.isEmpty(Z)&&D(Yt.fromDom(Z)),O.setRng(P)}},x8=(n,s,l)=>{const h=n.dom,O=n.selection;if(s)O8(n,s,l);else if(s=fv(n.getBody(),O.getStart()),!s)for(;s=h.get(Ex);)O8(n,s,l)},l5=(n,s,l)=>{var h,O;const P=n.dom,Z=P.getParent(l,ee(el,n.schema));Z&&P.isEmpty(Z)?(h=l.parentNode)===null||h===void 0||h.replaceChild(s,l):(qC(Yt.fromDom(l)),P.isEmpty(l)?(O=l.parentNode)===null||O===void 0||O.replaceChild(s,l):P.insertAfter(s,l))},S8=(n,s)=>(n.appendChild(s),s),c5=(n,s)=>{var l;const h=ue(n,(P,Z)=>S8(P,Z.cloneNode(!1)),s),O=(l=h.ownerDocument)!==null&&l!==void 0?l:document;return S8(h,O.createTextNode(u2))},_Y=(n,s,l,h,O,P)=>{const Z=n.formatter,J=n.dom,he=se(Gt(Z.get()),qe=>qe!==h&&!sr(qe,"removeformat")),_e=FL(n,l,he);if(se(_e,qe=>!jE(n,qe,h)).length>0){const qe=l.cloneNode(!1);return J.add(s,qe),Z.remove(h,O,qe,P),J.remove(qe),G.some(qe)}else return G.none()},RY=(n,s,l)=>{let h;const O=n.selection,P=n.formatter.get(s);if(!P)return;const Z=O.getRng();let J=Z.startOffset;const _e=Z.startContainer.nodeValue;h=fv(n.getBody(),O.getStart());const Ge=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(_e&&J>0&&J<_e.length&&Ge.test(_e.charAt(J))&&Ge.test(_e.charAt(J-1))){const qe=O.getBookmark();Z.collapse(!0);let ot=Im(n.dom,Z,P);ot=nt(ot),n.formatter.apply(s,l,ot),O.moveToBookmark(qe)}else{let qe=h?y8(h):null;(!h||(qe==null?void 0:qe.data)!==u2)&&(h=i5(n.getDoc(),b8(!0).dom),qe=h.firstChild,Z.insertNode(h),J=1),n.formatter.apply(s,l,h),O.setCursorLocation(qe,J)}},zL=(n,s,l,h)=>{const O=n.dom,P=n.selection;let Z=!1;const J=n.formatter.get(s);if(!J)return;const he=P.getRng(),_e=he.startContainer,Ge=he.startOffset;let qe=_e;lr(_e)&&(Ge!==_e.data.length&&(Z=!0),qe=qe.parentNode);const ot=[];let Et;for(;qe;){if(Jg(n,qe,s,l,h)){Et=qe;break}qe.nextSibling&&(Z=!0),ot.push(qe),qe=qe.parentNode}if(Et)if(Z){const Vt=P.getBookmark();he.collapse(!0);let kt=Im(O,he,J,!0);kt=nt(kt),n.formatter.remove(s,l,kt,h),P.moveToBookmark(Vt)}else{const Vt=fv(n.getBody(),Et),kt=B(Vt)?O.getParents(Et.parentNode,pe,Vt):[],It=b8(!1).dom;l5(n,It,Vt??Et);const cn=_Y(n,It,Et,s,l,h),xn=c5([...ot,...cn.toArray(),...kt],It);Vt&&O8(n,Vt,B(Vt)),P.setCursorLocation(xn,1),O.isEmpty(Et)&&O.remove(Et)}},w8=(n,s,l)=>{const h=n.selection,O=n.getBody();x8(n,null,l),(s===8||s===46)&&h.isCollapsed()&&h.getStart().innerHTML===u2&&x8(n,fv(O,h.getStart()),!0),(s===37||s===39)&&x8(n,fv(O,h.getStart()),!0)},ZL=n=>lr(n)&&ao(n.data,zs),DY=n=>{n.on("mouseup keydown",s=>{w8(n,s.keyCode,ZL(n.selection.getRng().endContainer))})},HL=n=>{const s=b8(!1),l=c5(n,s.dom);return{caretContainer:s,caretPosition:Nn(l,0)}},UL=(n,s)=>{const{caretContainer:l,caretPosition:h}=HL(s);return Ui(Yt.fromDom(n),l),Ks(Yt.fromDom(n)),h},u5=(n,s)=>{const{caretContainer:l,caretPosition:h}=HL(s);return n.insertNode(l.dom),h},ep=(n,s)=>{if(sf(s.dom))return!1;const l=n.schema.getTextInlineElements();return it(l,Vs(s))&&!sf(s.dom)&&!_f(s.dom)},XT={},f5=vi(["pre"]),Gi=(n,s)=>{XT[n]||(XT[n]=[]),XT[n].push(s)},T8=(n,s)=>{it(XT,n)&&re(XT[n],l=>{l(s)})};Gi("pre",n=>{const s=n.selection.getRng(),l=O=>P=>{const Z=P.previousSibling;return f5(Z)&&Ze(O,Z)},h=(O,P)=>{const Z=Yt.fromDom(P),J=qf(Z).dom;Ks(Z),Ta(Yt.fromDom(O),[Yt.fromTag("br",J),Yt.fromTag("br",J),...ol(Z)])};if(!s.collapsed){const O=n.selection.getSelectedBlocks(),P=se(se(O,f5),l(O));re(P,Z=>{h(Z.previousSibling,Z)})}});const d5=["fontWeight","fontStyle","color","fontSize","fontFamily"],wv=n=>I(n.styles)&&De(Gt(n.styles),s=>Ze(d5,s)),WL=n=>le(n,s=>Xi(s)&&s.inline==="span"&&wv(s)),C8=(n,s)=>{const l=n.get(s);return N(l)?WL(l):G.none()},f2=(n,s)=>uu(s,Nn.fromRangeStart(n)).isNone(),YL=(n,s)=>Rc(s,Nn.fromRangeEnd(n)).exists(l=>!aa(l.getNode())||Rc(s,l).isSome())===!1,XL=n=>s=>qp(s)&&n.isEditable(s),d2=n=>{const s=n.getSelectedBlocks(),l=n.getRng();if(n.isCollapsed())return[];if(s.length===1)return f2(l,s[0])&&YL(l,s[0])?s:[];{const h=yt(s).filter(Z=>f2(l,Z)).toArray(),O=ft(s).filter(Z=>YL(l,Z)).toArray(),P=s.slice(1,-1);return h.concat(P).concat(O)}},$Y=n=>se(d2(n),XL(n.dom)),i1=n=>se(n.getSelectedBlocks(),XL(n.dom)),k8=fr.each,tp=n=>Xr(n)&&!af(n)&&!sf(n)&&!_f(n),hd=(n,s)=>{for(let l=n;l;l=l[s]){if(lr(l)&&St(l.data))return n;if(Xr(l)&&!af(l))return l}return n},GT=(n,s,l)=>{const h=qA(n),O=zl(s)&&n.dom.isEditable(s),P=zl(l)&&n.dom.isEditable(l);if(O&&P){const Z=hd(s,"previousSibling"),J=hd(l,"nextSibling");if(h.compare(Z,J)){for(let he=Z.nextSibling;he&&he!==J;){const _e=he;he=he.nextSibling,Z.appendChild(_e)}return n.dom.remove(J),fr.each(fr.grep(J.childNodes),he=>{Z.appendChild(he)}),Z}}return l},h5=(n,s,l,h)=>{var O;if(h&&s.merge_siblings!==!1){const P=(O=GT(n,Fr(h),h))!==null&&O!==void 0?O:h;GT(n,P,Fr(P,!0))}},LY=(n,s,l)=>{if(s.clear_child_styles){const h=s.links?"*:not(a)":"*";k8(n.select(h,l),O=>{tp(O)&&n.isEditable(O)&&k8(s.styles,(P,Z)=>{n.setStyle(O,Z,"")})})}},A8=(n,s,l)=>{k8(n.childNodes,h=>{tp(h)&&(s(h)&&l(h),h.hasChildNodes()&&A8(h,s,l))})},m5=(n,s)=>{s.nodeName==="SPAN"&&n.getAttribs(s).length===0&&n.remove(s,!0)},GL=(n,s)=>l=>!!(l&&G0(n,l,s)),jd=(n,s,l)=>h=>{n.setStyle(h,s,l),h.getAttribute("style")===""&&h.removeAttribute("style"),m5(n,h)},np=Zd.generate([{keep:[]},{rename:["name"]},{removed:[]}]),jL=/^(src|href|style)$/,jT=fr.each,h2=Bx,Nb=n=>/^(TR|TH|TD)$/.test(n.nodeName),g5=(n,s,l)=>n.isChildOf(s,l)&&s!==l&&!n.isBlock(l),qL=(n,s,l)=>{let h=s[l?"startContainer":"endContainer"],O=s[l?"startOffset":"endOffset"];if(Xr(h)){const P=h.childNodes.length-1;!l&&O&&O--,h=h.childNodes[O>P?P:O]}return lr(h)&&l&&O>=h.data.length&&(h=new ca(h,n.getBody()).next()||h),lr(h)&&!l&&O===0&&(h=new ca(h,n.getBody()).prev()||h),h},P8=(n,s)=>{const l=s?"firstChild":"lastChild",h=n[l];return Nb(n)&&h?n.nodeName==="TR"&&h[l]||h:n},M8=(n,s,l,h)=>{var O;const P=n.create(l,h);return(O=s.parentNode)===null||O===void 0||O.insertBefore(P,s),P.appendChild(s),P},KL=(n,s,l,h,O)=>{const P=Yt.fromDom(s),Z=Yt.fromDom(n.create(h,O)),J=l?Vc(P):my(P);return Ta(Z,J),l?(Ui(P,Z),mm(Z,P)):(Yu(P,Z),Ci(Z,P)),Z.dom},IY=(n,s)=>s.links&&n.nodeName==="A",JL=(n,s,l)=>{const h=s.parentNode;let O;const P=n.dom,Z=Ec(n);Xd(l)&&h===P.getRoot()&&(!l.list_block||!h2(s,l.list_block))&&re(tt(s.childNodes),J=>{Lm(n,Z,J.nodeName.toLowerCase())?O?O.appendChild(J):(O=M8(P,J,Z),P.setAttribs(O,Yy(n))):O=null}),!(Vx(l)&&!h2(l.inline,s))&&P.remove(s,!0)},m2=(n,s,l)=>W(n)?{name:s,value:null}:{name:n,value:Yd(s,l)},eI=(n,s)=>{n.getAttrib(s,"style")===""&&(s.removeAttribute("style"),s.removeAttribute("data-mce-style"))},E8=(n,s,l,h,O)=>{let P=!1;jT(l.styles,(Z,J)=>{const{name:he,value:_e}=m2(J,Z,h),Ge=Qx(_e,he);(l.remove_similar||F(_e)||!Xr(O)||h2(G0(n,O,he),Ge))&&n.setStyle(s,he,""),P=!0}),P&&eI(n,s)},_8=(n,s,l)=>{s==="removeformat"?re(i1(n.selection),h=>{re(d5,O=>n.dom.setStyle(h,O,"")),eI(n.dom,h)}):C8(n.formatter,s).each(h=>{re(i1(n.selection),O=>E8(n.dom,O,h,l,null))})},tI=(n,s,l,h,O)=>{const P=n.dom,Z=qA(n),J=n.schema;if(Xi(s)&&Ey(J,s.inline)&&ks(J,h)&&h.parentElement===n.getBody())return JL(n,h,s),np.removed();if(!s.ceFalseOverride&&h&&P.getContentEditableParent(h)==="false"||h&&!YT(P,h,s)&&!IY(h,s))return np.keep();const he=h,_e=s.preserve_attributes;if(Xi(s)&&s.remove==="all"&&N(_e)){const Ge=se(P.getAttribs(he),qe=>Ze(_e,qe.name.toLowerCase()));if(P.removeAllAttribs(he),re(Ge,qe=>P.setAttrib(he,qe.name,qe.value)),Ge.length>0)return np.rename("span")}if(s.remove!=="all"){E8(P,he,s,l,O),jT(s.attributes,(qe,ot)=>{const{name:Et,value:Vt}=m2(ot,qe,l);if(s.remove_similar||F(Vt)||!Xr(O)||h2(P.getAttrib(O,Et),Vt)){if(Et==="class"){const kt=P.getAttrib(he,Et);if(kt){let It="";if(re(kt.split(/\s+/),cn=>{/mce\-\w+/.test(cn)&&(It+=(It?" ":"")+cn)}),It){P.setAttrib(he,Et,It);return}}}if(jL.test(Et)&&he.removeAttribute("data-mce-"+Et),Et==="style"&&vi(["li"])(he)&&P.getStyle(he,"list-style-type")==="none"){he.removeAttribute(Et),P.setStyle(he,"list-style-type","none");return}Et==="class"&&he.removeAttribute("className"),he.removeAttribute(Et)}}),jT(s.classes,qe=>{qe=Yd(qe,l),(!Xr(O)||P.hasClass(O,qe))&&P.removeClass(he,qe)});const Ge=P.getAttribs(he);for(let qe=0;qe{let P;return s.parentNode&&re(hb(n.dom,s.parentNode).reverse(),Z=>{if(!P&&Xr(Z)&&Z.id!=="_start"&&Z.id!=="_end"){const J=Jg(n,Z,l,h,O);J&&J.split!==!1&&(P=Z)}}),P},rI=(n,s,l,h)=>tI(n,s,l,h,h).fold(ae(h),O=>(n.dom.createFragment().appendChild(h),n.dom.rename(h,O)),ae(null)),NY=(n,s,l,h,O,P,Z,J)=>{var he,_e;let Ge,qe;const ot=n.dom;if(l){const Et=l.parentNode;for(let Vt=h.parentNode;Vt&&Vt!==Et;Vt=Vt.parentNode){let kt=ot.clone(Vt,!1);for(let It=0;It{const P=n.formatter.get(s),Z=P[0],J=n.dom,he=n.selection,_e=kt=>{const It=nI(n,kt,s,l,O);return NY(n,P,It,kt,kt,!0,Z,l)},Ge=kt=>af(kt)&&Xr(kt)&&(kt.id==="_start"||kt.id==="_end"),qe=kt=>De(P,It=>qT(n,It,l,kt,kt)),ot=kt=>{const It=tt(kt.childNodes),xn=qe(kt)||De(P,rr=>YT(J,kt,rr)),bn=kt.parentNode;if(!xn&&B(bn)&&mb(Z)&&qe(bn),Z.deep&&It.length)for(let rr=0;rr{Xr(kt)&&n.dom.getStyle(kt,"text-decoration")===rr&&kt.parentNode&&cA(J,kt.parentNode)===rr&&qT(n,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:rr}},void 0,kt)})},Et=kt=>{const It=J.get(kt?"_start":"_end");if(It){let cn=It[kt?"firstChild":"lastChild"];return Ge(cn)&&(cn=cn[kt?"firstChild":"lastChild"]),lr(cn)&&cn.data.length===0&&(cn=kt?It.previousSibling||It.nextSibling:It.nextSibling||It.previousSibling),J.remove(It,!0),cn}else return null},Vt=kt=>{let It,cn,xn=Im(J,kt,P,kt.collapsed);if(Z.split){if(xn=nt(xn),It=qL(n,xn,!0),cn=qL(n,xn),It!==cn){if(It=P8(It,!0),cn=P8(cn,!1),g5(J,It,cn)){const $n=G.from(It.firstChild).getOr(It);_e(KL(J,$n,!0,"span",{id:"_start","data-mce-type":"bookmark"})),Et(!0);return}if(g5(J,cn,It)){const $n=G.from(cn.lastChild).getOr(cn);_e(KL(J,$n,!1,"span",{id:"_end","data-mce-type":"bookmark"})),Et(!1);return}It=M8(J,It,"span",{id:"_start","data-mce-type":"bookmark"}),cn=M8(J,cn,"span",{id:"_end","data-mce-type":"bookmark"});const bn=J.createRng();bn.setStartAfter(It),bn.setEndBefore(cn),Ob(J,bn,$n=>{re($n,rr=>{!af(rr)&&!af(rr.parentNode)&&_e(rr)})}),_e(It),_e(cn),It=Et(!0),cn=Et()}else It=cn=_e(It);xn.startContainer=It.parentNode?It.parentNode:It,xn.startOffset=J.nodeIndex(It),xn.endContainer=cn.parentNode?cn.parentNode:cn,xn.endOffset=J.nodeIndex(cn)+1}Ob(J,xn,bn=>{re(bn,ot)})};if(h){if(ub(h)){const kt=J.createRng();kt.setStartBefore(h),kt.setEndAfter(h),Vt(kt)}else Vt(h);gv(n,s,h,l);return}!he.isCollapsed()||!Xi(Z)||X0(n).length?(fb(n,()=>Wg(n,Vt),kt=>Xi(Z)&&a5(n,s,l,kt)),n.nodeChanged()):zL(n,s,l,O),_8(n,s,l),gv(n,s,h,l)},oI=(n,s,l,h,O)=>{(h||n.selection.isEditable())&&BY(n,s,l,h,O)},qT=(n,s,l,h,O)=>tI(n,s,l,h,O).fold(ne,P=>(n.dom.rename(h,P),!0),pe),sI=fr.each,QY=(n,s,l,h)=>{const O=P=>{if(zl(P)&&Xr(P.parentNode)&&n.isEditable(P)){const Z=cA(n,P.parentNode);n.getStyle(P,"color")&&Z?n.setStyle(P,"text-decoration",Z):n.getStyle(P,"text-decoration")===Z&&n.setStyle(P,"text-decoration",null)}};s.styles&&(s.styles.color||s.styles.textDecoration)&&(fr.walk(h,O,"childNodes"),O(h))},FY=(n,s,l,h)=>{if(s.styles&&s.styles.backgroundColor){const O=GL(n,"fontSize");A8(h,P=>O(P)&&n.isEditable(P),jd(n,"backgroundColor",Yd(s.styles.backgroundColor,l)))}},VY=(n,s,l,h)=>{if(Xi(s)&&(s.inline==="sub"||s.inline==="sup")){const O=GL(n,"fontSize");A8(h,Z=>O(Z)&&n.isEditable(Z),jd(n,"fontSize",""));const P=se(n.select(s.inline==="sup"?"sub":"sup",h),n.isEditable);n.remove(P,!0)}},zY=(n,s,l,h)=>{sI(s,O=>{Xi(O)&&sI(n.dom.select(O.inline,h),P=>{tp(P)&&qT(n,O,l,P,O.exact?P:null)}),LY(n.dom,O,h)})},ZY=(n,s,l,h,O)=>{const P=O.parentNode;Jg(n,P,l,h)&&qT(n,s,h,O)||s.merge_with_parents&&P&&n.dom.getParent(P,Z=>Jg(n,Z,l,h)?(qT(n,s,h,O),!0):!1)},p5=fr.each,HY=(n,s,l,h)=>{if($k(n)&&Xi(s)&&l.parentNode){const O=nk(n.schema),P=uY(Yt.fromDom(l),Z=>sf(Z.dom));return ut(O,h)&&ta(Yt.fromDom(l.parentNode),!1)&&!P}else return!1},aI=(n,s,l,h)=>{if(p5(l.styles,(O,P)=>{n.setStyle(s,P,Yd(O,h))}),l.styles){const O=n.getAttrib(s,"style");O&&n.setAttrib(s,"data-mce-style",O)}},iI=(n,s,l,h)=>{const O=n.formatter.get(s),P=O[0],Z=!h&&n.selection.isCollapsed(),J=n.dom,he=n.selection,_e=(Vt,kt=P)=>{E(kt.onformat)&&kt.onformat(Vt,kt,l,h),aI(J,Vt,kt,l),p5(kt.attributes,(It,cn)=>{J.setAttrib(Vt,cn,Yd(It,l))}),p5(kt.classes,It=>{const cn=Yd(It,l);J.hasClass(Vt,cn)||J.addClass(Vt,cn)})},Ge=(Vt,kt)=>{let It=!1;return p5(Vt,cn=>jl(cn)?J.getContentEditable(kt)==="false"&&!cn.ceFalseOverride||B(cn.collapsed)&&cn.collapsed!==Z?!0:J.is(kt,cn.selector)&&!sf(kt)?(_e(kt,cn),It=!0,!1):!0:!1),It},qe=Vt=>{if(M(Vt)){const kt=J.create(Vt);return _e(kt),kt}else return null},ot=(Vt,kt,It)=>{const cn=[];let xn=!0;const bn=P.inline||P.block,$n=qe(bn),rr=zn=>Fx(P)&&Jg(n,zn,s,l),gr=(zn,Bn,tr)=>{const eo=j0(P)&&el(n.schema,zn)&&Lm(n,Bn,bn);return tr&&eo},Qr=(zn,Bn,tr,eo)=>{const po=zn.nodeName.toLowerCase(),ls=Lm(n,bn,po)&&Lm(n,Bn,bn),ys=!It&&lr(zn)&&we(zn.data),ma=sf(zn),$s=!Xi(P)||!Vt.isBlock(zn);return(tr||eo)&&ls&&!ys&&!ma&&$s};Ob(Vt,kt,zn=>{let Bn;const tr=eo=>{let po=!1,ls=xn,ys=!1;const ma=eo.parentNode,$s=ma.nodeName.toLowerCase(),hi=Vt.getContentEditable(eo);B(hi)&&(ls=xn,xn=hi==="true",po=!0,ys=db(n,eo));const uc=xn&&!po;if(aa(eo)&&!HY(n,P,eo,$s)){Bn=null,Xd(P)&&Vt.remove(eo);return}if(rr(eo)){Bn=null;return}if(gr(eo,$s,uc)){const ga=Vt.rename(eo,bn);_e(ga),cn.push(ga),Bn=null;return}if(jl(P)){let ga=Ge(O,eo);if(!ga&&B(ma)&&mb(P)&&(ga=Ge(O,ma)),!Xi(P)||ga){Bn=null;return}}B($n)&&Qr(eo,$s,uc,ys)?(Bn||(Bn=Vt.clone($n,!1),ma.insertBefore(Bn,eo),cn.push(Bn)),ys&&po&&(xn=ls),Bn.appendChild(eo)):(Bn=null,re(tt(eo.childNodes),tr),po&&(xn=ls),Bn=null)};re(zn,tr)}),P.links===!0&&re(cn,zn=>{const Bn=tr=>{tr.nodeName==="A"&&_e(tr,P),re(tt(tr.childNodes),Bn)};Bn(zn)}),re(cn,zn=>{const Bn=po=>{let ls=0;return re(po.childNodes,ys=>{!If(ys)&&!af(ys)&&ls++}),ls},tr=po=>le(po.childNodes,lT).filter(ys=>Vt.getContentEditable(ys)!=="false"&&YT(Vt,ys,P)).map(ys=>{const ma=Vt.clone(ys,!1);return _e(ma),Vt.replace(ma,po,!0),Vt.remove(ys,!0),ma}).getOr(po),eo=Bn(zn);if((cn.length>1||!Vt.isBlock(zn))&&eo===0){Vt.remove(zn,!0);return}(Xi(P)||Xd(P)&&P.wrapper)&&(!P.exact&&eo===1&&(zn=tr(zn)),zY(n,O,l,zn),ZY(n,P,s,l,zn),FY(Vt,P,l,zn),QY(Vt,P,l,zn),VY(Vt,P,l,zn),h5(n,P,l,zn))})},Et=ub(h)?h:he.getNode();if(J.getContentEditable(Et)==="false"&&!db(n,Et)){h=Et,Ge(O,h),lc(n,s,h,l);return}if(P){if(h)if(ub(h)){if(!Ge(O,h)){const Vt=J.createRng();Vt.setStartBefore(h),Vt.setEndAfter(h),ot(J,Im(J,Vt,O),!0)}}else ot(J,h,!0);else!Z||!Xi(P)||X0(n).length?(he.setRng(a2(he.getRng())),fb(n,()=>{Wg(n,(Vt,kt)=>{const It=kt?Vt:Im(J,Vt,O);ot(J,It,!1)})},pe),n.nodeChanged()):RY(n,s,l),C8(n.formatter,s).each(Vt=>{re($Y(n.selection),kt=>aI(J,kt,Vt,l))});T8(s,n)}lc(n,s,h,l)},lI=(n,s,l,h)=>{(h||n.selection.isEditable())&&iI(n,s,l,h)},Bb=n=>it(n,"vars"),UY=(n,s)=>{n.set({}),s.on("NodeChange",l=>{R8(s,l.element,n.get())}),s.on("FormatApply FormatRemove",l=>{const h=G.from(l.node).map(O=>ub(O)?O:O.startContainer).bind(O=>Xr(O)?G.some(O):G.from(O.parentElement)).getOrThunk(()=>cI(s));R8(s,h,n.get())})},cI=n=>n.selection.getStart(),uI=(n,s,l,h,O)=>Se(s,J=>{const he=n.formatter.matchNode(J,l,O??{},h);return!U(he)},J=>BL(n,J,l)?!0:h?!1:B(n.formatter.matchNode(J,l,O,!0))),fI=(n,s)=>{const l=s??cI(n);return se(hb(n.dom,l),h=>Xr(h)&&!_f(h))},R8=(n,s,l)=>{const h=fI(n,s);Bt(l,(O,P)=>{const Z=J=>{const he=uI(n,h,P,J.similar,Bb(J)?J.vars:void 0),_e=he.isSome();if(J.state.get()!==_e){J.state.set(_e);const Ge=he.getOr(s);Bb(J)?J.callback(_e,{node:Ge,format:P,parents:h}):re(J.callbacks,qe=>qe(_e,{node:Ge,format:P,parents:h}))}};re([O.withSimilar,O.withoutSimilar],Z),re(O.withVars,Z)})},WY=(n,s,l,h,O,P)=>{const Z=s.get();re(l.split(","),J=>{const he=Sn(Z,J).getOrThunk(()=>{const Ge={withSimilar:{state:ni(!1),similar:!0,callbacks:[]},withoutSimilar:{state:ni(!1),similar:!1,callbacks:[]},withVars:[]};return Z[J]=Ge,Ge}),_e=()=>{const Ge=fI(n);return uI(n,Ge,J,O,P).isSome()};if(U(P)){const Ge=O?he.withSimilar:he.withoutSimilar;Ge.callbacks.push(h),Ge.callbacks.length===1&&Ge.state.set(_e())}else he.withVars.push({state:ni(_e()),similar:O,vars:P,callback:h})}),s.set(Z)},YY=(n,s,l)=>{const h=n.get();re(s.split(","),O=>Sn(h,O).each(P=>{h[O]={withSimilar:{...P.withSimilar,callbacks:se(P.withSimilar.callbacks,Z=>Z!==l)},withoutSimilar:{...P.withoutSimilar,callbacks:se(P.withoutSimilar.callbacks,Z=>Z!==l)},withVars:se(P.withVars,Z=>Z.callback!==l)}})),n.set(h)},XY=(n,s,l,h,O,P)=>(WY(n,s,l,h,O,P),{unbind:()=>YY(s,l,h)}),GY=(n,s,l,h)=>{const O=n.formatter.get(s);O&&(a5(n,s,l,h)&&(!("toggle"in O[0])||O[0].toggle)?oI(n,s,l,h):lI(n,s,l,h))},dI=fr.explode,hI=()=>{const n={};return{addFilter:(O,P)=>{re(dI(O),Z=>{it(n,Z)||(n[Z]={name:Z,callbacks:[]}),n[Z].callbacks.push(P)})},getFilters:()=>Un(n),removeFilter:(O,P)=>{re(dI(O),Z=>{if(it(n,Z))if(B(P)){const J=n[Z],he=se(J.callbacks,_e=>_e!==P);he.length>0?J.callbacks=he:delete n[Z]}else delete n[Z]})}}},jY=(n,s)=>{re(s,l=>{n.attr(l,null)})},qY=(n,s,l)=>{n.addNodeFilter("font",h=>{re(h,O=>{const P=s.parse(O.attr("style")),Z=O.attr("color"),J=O.attr("face"),he=O.attr("size");Z&&(P.color=Z),J&&(P["font-family"]=J),he&&Ft(he).each(_e=>{P["font-size"]=l[_e-1]}),O.name="span",O.attr("style",s.serialize(P)),jY(O,["color","face","size"])})})},KY=(n,s,l)=>{n.addNodeFilter("strike",h=>{const O=s.type!=="html4";re(h,P=>{if(O)P.name="s";else{const Z=l.parse(P.attr("style"));Z["text-decoration"]="line-through",P.name="span",P.attr("style",l.serialize(Z))}})})},JY=(n,s,l)=>{var h;const O=GO();s.convert_fonts_to_spans&&qY(n,O,fr.explode((h=s.font_size_legacy_values)!==null&&h!==void 0?h:"")),KY(n,l,O)},D8=(n,s,l)=>{s.inline_styles&&JY(n,s,l)},$8=(n,s,l)=>{s.addNodeFilter("br",(h,O,P)=>{const Z=fr.extend({},l.getBlockElements()),J=l.getNonEmptyElements(),he=l.getWhitespaceElements();Z.body=1;const _e=Ge=>Ge.name in Z||xm(l,Ge);for(let Ge=0,qe=h.length;Gefetch(n).then(s=>s.ok?s.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${n} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})),KT=n=>{const s=/([a-z0-9+\/=\s]+)/i.exec(n);return s?s[1]:""},v5=n=>{const[s,...l]=n.split(","),h=l.join(","),O=/data:([^/]+\/[^;]+)(;.+)?/.exec(s);if(O){const P=O[2]===";base64",Z=P?KT(h):decodeURIComponent(h);return G.some({type:O[1],data:Z,base64Encoded:P})}else return G.none()},g2=(n,s,l=!0)=>{let h=s;if(l)try{h=atob(s)}catch{return G.none()}const O=new Uint8Array(h.length);for(let P=0;Pnew Promise((s,l)=>{v5(n).bind(({type:h,data:O,base64Encoded:P})=>g2(h,O,P)).fold(()=>l("Invalid data URI"),s)}),mI=n=>Sr(n,"blob:")?Ele(n):Sr(n,"data:")?JT(n):Promise.reject("Unknown URI format"),eX=n=>new Promise((s,l)=>{const h=new FileReader;h.onloadend=()=>{s(h.result)},h.onerror=()=>{var O;l((O=h.error)===null||O===void 0?void 0:O.message)},h.readAsDataURL(n)});let tX=0;const _le=n=>(n||"blobid")+tX++,gI=(n,s,l)=>v5(n).bind(({data:h,type:O,base64Encoded:P})=>{if(s&&!P)return G.none();{const Z=P?h:btoa(h);return l(Z,O)}}),pI=(n,s,l)=>{const h=n.create(_le(),s,l);return n.add(h),h},nX=(n,s,l=!1)=>gI(s,l,(h,O)=>G.from(n.getByData(h,O)).orThunk(()=>g2(O,h).map(P=>pI(n,P,h)))),rX=(n,s)=>{const l=()=>Promise.reject("Invalid data URI");if(Sr(s,"blob:")){const h=n.getByUri(s);return B(h)?Promise.resolve(h):mI(s).then(O=>eX(O).then(P=>gI(P,!1,Z=>G.some(pI(n,O,Z))).getOrThunk(l)))}else return Sr(s,"data:")?nX(n,s).fold(l,h=>Promise.resolve(h)):Promise.reject("Unknown image data format")},vI=n=>B(n.attr("data-mce-bogus")),oX=n=>n.attr("src")===Dr.transparentSrc||B(n.attr("data-mce-placeholder")),yI=(n,s)=>{const{blob_cache:l}=s;if(l){const h=O=>{const P=O.attr("src");oX(O)||vI(O)||Q(P)||nX(l,P,!0).each(Z=>{O.attr("src",Z.blobUri())})};n.addAttributeFilter("src",O=>re(O,h))}},L8=(n,s)=>Sr(n,`${s}/`),y5=(n,s,l,h,O)=>{let P;U(n)?P="iframe":L8(n,"image")?P="img":L8(n,"video")?P="video":L8(n,"audio")?P="audio":P="iframe";const Z=new hu(P,1);return Z.attr(P==="audio"?{src:s}:{src:s,width:l,height:h}),(P==="audio"||P==="video")&&Z.attr("controls",""),P==="iframe"&&O&&Z.attr("sandbox",""),Z},bI=(n,s)=>{const l=n.schema;s.remove_trailing_brs&&$8(s,n,l),n.addAttributeFilter("href",O=>{let P=O.length;const Z=he=>he.split(" ").filter(Ge=>Ge.length>0).concat(["noopener"]).sort().join(" "),J=he=>{const _e=he?fr.trim(he):"";return/\b(noopener)\b/g.test(_e)?_e:Z(_e)};if(!s.allow_unsafe_link_target)for(;P--;){const he=O[P];he.name==="a"&&he.attr("target")==="_blank"&&he.attr("rel",J(he.attr("rel")))}}),s.allow_html_in_named_anchor||n.addAttributeFilter("id,name",O=>{let P=O.length,Z,J,he,_e;for(;P--;)if(_e=O[P],_e.name==="a"&&_e.firstChild&&!_e.attr("href"))for(he=_e.parent,Z=_e.lastChild;Z&&he;)J=Z.prev,he.insert(Z,_e),Z=J}),s.fix_list_elements&&n.addNodeFilter("ul,ol",O=>{let P=O.length,Z,J;for(;P--;)if(Z=O[P],J=Z.parent,J&&(J.name==="ul"||J.name==="ol"))if(Z.prev&&Z.prev.name==="li")Z.prev.append(Z);else{const he=new hu("li",1);he.attr("style","list-style-type: none"),Z.wrap(he)}});const h=l.getValidClasses();s.validate&&h&&n.addAttributeFilter("class",O=>{var P;let Z=O.length;for(;Z--;){const J=O[Z],he=(P=J.attr("class"))!==null&&P!==void 0?P:"",_e=fr.explode(he," ");let Ge="";for(let qe=0;qe<_e.length;qe++){const ot=_e[qe];let Et=!1,Vt=h["*"];Vt&&Vt[ot]&&(Et=!0),Vt=h[J.name],!Et&&Vt&&Vt[ot]&&(Et=!0),Et&&(Ge&&(Ge+=" "),Ge+=ot)}Ge.length||(Ge=null),J.attr("class",Ge)}}),yI(n,s),s.convert_unsafe_embeds&&n.addNodeFilter("object,embed",O=>re(O,P=>{P.replace(y5(P.attr("type"),P.name==="object"?P.attr("data"):P.attr("src"),P.attr("width"),P.attr("height"),s.sandbox_iframes))})),s.sandbox_iframes&&n.addNodeFilter("iframe",O=>re(O,P=>P.attr("sandbox","")))},{entries:gl,setPrototypeOf:sX,isFrozen:Rle,getPrototypeOf:Dle,getOwnPropertyDescriptor:$le}=Object;let{freeze:tl,seal:md,create:l1}=Object,{apply:rp,construct:I8}=typeof Reflect<"u"&&Reflect;rp||(rp=function(s,l,h){return s.apply(l,h)}),tl||(tl=function(s){return s}),md||(md=function(s){return s}),I8||(I8=function(s,l){return new s(...l)});const aX=Fh(Array.prototype.forEach),p2=Fh(Array.prototype.pop),op=Fh(Array.prototype.push),Tv=Fh(String.prototype.toLowerCase),b5=Fh(String.prototype.toString),N8=Fh(String.prototype.match),Qh=Fh(String.prototype.replace),OI=Fh(String.prototype.indexOf),iX=Fh(String.prototype.trim),qd=Fh(RegExp.prototype.test),v2=lX(TypeError);function Fh(n){return function(s){for(var l=arguments.length,h=new Array(l>1?l-1:0),O=1;O/gm),AI=md(/\${[\w\W]*}/gm),PI=md(/^data-[\-\w.\u00B7-\uFFFF]/),MI=md(/^aria-[\-\w]+$/),EI=md(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),cX=md(/^(?:\w+script|data):/i),uX=md(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),x5=md(/^html$/i);var b2=Object.freeze({__proto__:null,MUSTACHE_EXPR:CI,ERB_EXPR:kI,TMPLIT_EXPR:AI,DATA_ATTR:PI,ARIA_ATTR:MI,IS_ALLOWED_URI:EI,IS_SCRIPT_OR_DATA:cX,ATTR_WHITESPACE:uX,DOCTYPE_NAME:x5});const _I=()=>typeof window>"u"?null:window,RI=function(s,l){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let h=null;const O="data-tt-policy-suffix";l&&l.hasAttribute(O)&&(h=l.getAttribute(O));const P="dompurify"+(h?"#"+h:"");try{return s.createPolicy(P,{createHTML(Z){return Z},createScriptURL(Z){return Z}})}catch{return console.warn("TrustedTypes policy "+P+" could not be created."),null}};function t3(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_I();const s=ps=>t3(ps);if(s.version="3.0.5",s.removed=[],!n||!n.document||n.document.nodeType!==9)return s.isSupported=!1,s;const l=n.document,h=l.currentScript;let{document:O}=n;const{DocumentFragment:P,HTMLTemplateElement:Z,Node:J,Element:he,NodeFilter:_e,NamedNodeMap:Ge=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:qe,DOMParser:ot,trustedTypes:Et}=n,Vt=he.prototype,kt=O5(Vt,"cloneNode"),It=O5(Vt,"nextSibling"),cn=O5(Vt,"childNodes"),xn=O5(Vt,"parentNode");if(typeof Z=="function"){const ps=O.createElement("template");ps.content&&ps.content.ownerDocument&&(O=ps.content.ownerDocument)}let bn,$n="";const{implementation:rr,createNodeIterator:gr,createDocumentFragment:Qr,getElementsByTagName:zn}=O,{importNode:Bn}=l;let tr={};s.isSupported=typeof gl=="function"&&typeof xn=="function"&&rr&&rr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:eo,ERB_EXPR:po,TMPLIT_EXPR:ls,DATA_ATTR:ys,ARIA_ATTR:ma,IS_SCRIPT_OR_DATA:$s,ATTR_WHITESPACE:hi}=b2;let{IS_ALLOWED_URI:uc}=b2,ga=null;const Cr=xa({},[...B8,...Q8,...Qb,...F8,...wI]);let co=null;const Zs=xa({},[...V8,...z8,...TI,...e3]);let Ss=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ro=null,Lo=null,yr=!0,Bo=!0,Ls=!1,Aa=!0,Sa=!1,$l=!1,Xh=!1,zf=!1,$u=!1,sh=!1,Wo=!1,Hs=!0,Pa=!1;const oi="user-content-";let Ua=!0,gf=!1,Gh={},_v=null;const OP=xa({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let tC=null;const xP=xa({},["audio","video","img","source","image","track"]);let j2=null;const SP=xa({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),q2="http://www.w3.org/1998/Math/MathML",_1="http://www.w3.org/2000/svg",jh="http://www.w3.org/1999/xhtml";let jm=jh,K2=!1,oO=null;const nC=xa({},[q2,_1,jh],b5);let qm;const wP=["application/xhtml+xml","text/html"],rC="text/html";let Ic,sO=null;const kz=O.createElement("form"),TP=function(Qn){return Qn instanceof RegExp||Qn instanceof Function},oC=function(Qn){if(!(sO&&sO===Qn)){if((!Qn||typeof Qn!="object")&&(Qn={}),Qn=y2(Qn),qm=wP.indexOf(Qn.PARSER_MEDIA_TYPE)===-1?qm=rC:qm=Qn.PARSER_MEDIA_TYPE,Ic=qm==="application/xhtml+xml"?b5:Tv,ga="ALLOWED_TAGS"in Qn?xa({},Qn.ALLOWED_TAGS,Ic):Cr,co="ALLOWED_ATTR"in Qn?xa({},Qn.ALLOWED_ATTR,Ic):Zs,oO="ALLOWED_NAMESPACES"in Qn?xa({},Qn.ALLOWED_NAMESPACES,b5):nC,j2="ADD_URI_SAFE_ATTR"in Qn?xa(y2(SP),Qn.ADD_URI_SAFE_ATTR,Ic):SP,tC="ADD_DATA_URI_TAGS"in Qn?xa(y2(xP),Qn.ADD_DATA_URI_TAGS,Ic):xP,_v="FORBID_CONTENTS"in Qn?xa({},Qn.FORBID_CONTENTS,Ic):OP,ro="FORBID_TAGS"in Qn?xa({},Qn.FORBID_TAGS,Ic):{},Lo="FORBID_ATTR"in Qn?xa({},Qn.FORBID_ATTR,Ic):{},Gh="USE_PROFILES"in Qn?Qn.USE_PROFILES:!1,yr=Qn.ALLOW_ARIA_ATTR!==!1,Bo=Qn.ALLOW_DATA_ATTR!==!1,Ls=Qn.ALLOW_UNKNOWN_PROTOCOLS||!1,Aa=Qn.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Sa=Qn.SAFE_FOR_TEMPLATES||!1,$l=Qn.WHOLE_DOCUMENT||!1,$u=Qn.RETURN_DOM||!1,sh=Qn.RETURN_DOM_FRAGMENT||!1,Wo=Qn.RETURN_TRUSTED_TYPE||!1,zf=Qn.FORCE_BODY||!1,Hs=Qn.SANITIZE_DOM!==!1,Pa=Qn.SANITIZE_NAMED_PROPS||!1,Ua=Qn.KEEP_CONTENT!==!1,gf=Qn.IN_PLACE||!1,uc=Qn.ALLOWED_URI_REGEXP||EI,jm=Qn.NAMESPACE||jh,Ss=Qn.CUSTOM_ELEMENT_HANDLING||{},Qn.CUSTOM_ELEMENT_HANDLING&&TP(Qn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ss.tagNameCheck=Qn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Qn.CUSTOM_ELEMENT_HANDLING&&TP(Qn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ss.attributeNameCheck=Qn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Qn.CUSTOM_ELEMENT_HANDLING&&typeof Qn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ss.allowCustomizedBuiltInElements=Qn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Sa&&(Bo=!1),sh&&($u=!0),Gh&&(ga=xa({},[...wI]),co=[],Gh.html===!0&&(xa(ga,B8),xa(co,V8)),Gh.svg===!0&&(xa(ga,Q8),xa(co,z8),xa(co,e3)),Gh.svgFilters===!0&&(xa(ga,Qb),xa(co,z8),xa(co,e3)),Gh.mathMl===!0&&(xa(ga,F8),xa(co,TI),xa(co,e3))),Qn.ADD_TAGS&&(ga===Cr&&(ga=y2(ga)),xa(ga,Qn.ADD_TAGS,Ic)),Qn.ADD_ATTR&&(co===Zs&&(co=y2(co)),xa(co,Qn.ADD_ATTR,Ic)),Qn.ADD_URI_SAFE_ATTR&&xa(j2,Qn.ADD_URI_SAFE_ATTR,Ic),Qn.FORBID_CONTENTS&&(_v===OP&&(_v=y2(_v)),xa(_v,Qn.FORBID_CONTENTS,Ic)),Ua&&(ga["#text"]=!0),$l&&xa(ga,["html","head","body"]),ga.table&&(xa(ga,["tbody"]),delete ro.tbody),Qn.TRUSTED_TYPES_POLICY){if(typeof Qn.TRUSTED_TYPES_POLICY.createHTML!="function")throw v2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Qn.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw v2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');bn=Qn.TRUSTED_TYPES_POLICY,$n=bn.createHTML("")}else bn===void 0&&(bn=RI(Et,h)),bn!==null&&typeof $n=="string"&&($n=bn.createHTML(""));tl&&tl(Qn),sO=Qn}},hp=xa({},["mi","mo","mn","ms","mtext"]),J2=xa({},["foreignobject","desc","title","annotation-xml"]),Ln=xa({},["title","style","font","a","script"]),In=xa({},Q8);xa(In,Qb),xa(In,xI);const br=xa({},F8);xa(br,SI);const hr=function(Qn){let lo=xn(Qn);(!lo||!lo.tagName)&&(lo={namespaceURI:jm,tagName:"template"});const Eo=Tv(Qn.tagName),Qi=Tv(lo.tagName);return oO[Qn.namespaceURI]?Qn.namespaceURI===_1?lo.namespaceURI===jh?Eo==="svg":lo.namespaceURI===q2?Eo==="svg"&&(Qi==="annotation-xml"||hp[Qi]):!!In[Eo]:Qn.namespaceURI===q2?lo.namespaceURI===jh?Eo==="math":lo.namespaceURI===_1?Eo==="math"&&J2[Qi]:!!br[Eo]:Qn.namespaceURI===jh?lo.namespaceURI===_1&&!J2[Qi]||lo.namespaceURI===q2&&!hp[Qi]?!1:!br[Eo]&&(Ln[Eo]||!In[Eo]):!!(qm==="application/xhtml+xml"&&oO[Qn.namespaceURI]):!1},mo=function(Qn){op(s.removed,{element:Qn});try{Qn.parentNode.removeChild(Qn)}catch{Qn.remove()}},bs=function(Qn,lo){try{op(s.removed,{attribute:lo.getAttributeNode(Qn),from:lo})}catch{op(s.removed,{attribute:null,from:lo})}if(lo.removeAttribute(Qn),Qn==="is"&&!co[Qn])if($u||sh)try{mo(lo)}catch{}else try{lo.setAttribute(Qn,"")}catch{}},ja=function(Qn){let lo,Eo;if(zf)Qn=""+Qn;else{const xd=N8(Qn,/^[\r\n\t ]+/);Eo=xd&&xd[0]}qm==="application/xhtml+xml"&&jm===jh&&(Qn=''+Qn+"");const Qi=bn?bn.createHTML(Qn):Qn;if(jm===jh)try{lo=new ot().parseFromString(Qi,qm)}catch{}if(!lo||!lo.documentElement){lo=rr.createDocument(jm,"template",null);try{lo.documentElement.innerHTML=K2?$n:Qi}catch{}}const jc=lo.body||lo.documentElement;return Qn&&Eo&&jc.insertBefore(O.createTextNode(Eo),jc.childNodes[0]||null),jm===jh?zn.call(lo,$l?"html":"body")[0]:$l?lo.documentElement:jc},pf=function(Qn){return gr.call(Qn.ownerDocument||Qn,Qn,_e.SHOW_ELEMENT|_e.SHOW_COMMENT|_e.SHOW_TEXT,null,!1)},fc=function(Qn){return Qn instanceof qe&&(typeof Qn.nodeName!="string"||typeof Qn.textContent!="string"||typeof Qn.removeChild!="function"||!(Qn.attributes instanceof Ge)||typeof Qn.removeAttribute!="function"||typeof Qn.setAttribute!="function"||typeof Qn.namespaceURI!="string"||typeof Qn.insertBefore!="function"||typeof Qn.hasChildNodes!="function")},aO=function(Qn){return typeof J=="object"?Qn instanceof J:Qn&&typeof Qn=="object"&&typeof Qn.nodeType=="number"&&typeof Qn.nodeName=="string"},ah=function(Qn,lo,Eo){tr[Qn]&&aX(tr[Qn],Qi=>{Qi.call(s,lo,Eo,sO)})},Az=function(Qn){let lo;if(ah("beforeSanitizeElements",Qn,null),fc(Qn))return mo(Qn),!0;const Eo=Ic(Qn.nodeName);if(ah("uponSanitizeElement",Qn,{tagName:Eo,allowedTags:ga}),Qn.hasChildNodes()&&!aO(Qn.firstElementChild)&&(!aO(Qn.content)||!aO(Qn.content.firstElementChild))&&qd(/<[/\w]/g,Qn.innerHTML)&&qd(/<[/\w]/g,Qn.textContent))return mo(Qn),!0;if(!ga[Eo]||ro[Eo]){if(!ro[Eo]&&Mz(Eo)&&(Ss.tagNameCheck instanceof RegExp&&qd(Ss.tagNameCheck,Eo)||Ss.tagNameCheck instanceof Function&&Ss.tagNameCheck(Eo)))return!1;if(Ua&&!_v[Eo]){const Qi=xn(Qn)||Qn.parentNode,jc=cn(Qn)||Qn.childNodes;if(jc&&Qi){const xd=jc.length;for(let Ll=xd-1;Ll>=0;--Ll)Qi.insertBefore(kt(jc[Ll],!0),It(Qn))}}return mo(Qn),!0}return Qn instanceof he&&!hr(Qn)||(Eo==="noscript"||Eo==="noembed"||Eo==="noframes")&&qd(/<\/no(script|embed|frames)/i,Qn.innerHTML)?(mo(Qn),!0):(Sa&&Qn.nodeType===3&&(lo=Qn.textContent,lo=Qh(lo,eo," "),lo=Qh(lo,po," "),lo=Qh(lo,ls," "),Qn.textContent!==lo&&(op(s.removed,{element:Qn.cloneNode()}),Qn.textContent=lo)),ah("afterSanitizeElements",Qn,null),!1)},Pz=function(Qn,lo,Eo){if(Hs&&(lo==="id"||lo==="name")&&(Eo in O||Eo in kz))return!1;if(!(Bo&&!Lo[lo]&&qd(ys,lo))){if(!(yr&&qd(ma,lo))){if(!co[lo]||Lo[lo]){if(!(Mz(Qn)&&(Ss.tagNameCheck instanceof RegExp&&qd(Ss.tagNameCheck,Qn)||Ss.tagNameCheck instanceof Function&&Ss.tagNameCheck(Qn))&&(Ss.attributeNameCheck instanceof RegExp&&qd(Ss.attributeNameCheck,lo)||Ss.attributeNameCheck instanceof Function&&Ss.attributeNameCheck(lo))||lo==="is"&&Ss.allowCustomizedBuiltInElements&&(Ss.tagNameCheck instanceof RegExp&&qd(Ss.tagNameCheck,Eo)||Ss.tagNameCheck instanceof Function&&Ss.tagNameCheck(Eo))))return!1}else if(!j2[lo]){if(!qd(uc,Qh(Eo,hi,""))){if(!((lo==="src"||lo==="xlink:href"||lo==="href")&&Qn!=="script"&&OI(Eo,"data:")===0&&tC[Qn])){if(!(Ls&&!qd($s,Qh(Eo,hi,"")))){if(Eo)return!1}}}}}}return!0},Mz=function(Qn){return Qn.indexOf("-")>0},rD=function(Qn){let lo,Eo,Qi,jc;ah("beforeSanitizeAttributes",Qn,null);const{attributes:xd}=Qn;if(!xd)return;const Ll={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:co};for(jc=xd.length;jc--;){lo=xd[jc];const{name:qh,namespaceURI:CP}=lo;Eo=qh==="value"?lo.value:iX(lo.value);const Kne=Eo;if(Qi=Ic(qh),Ll.attrName=Qi,Ll.attrValue=Eo,Ll.keepAttr=!0,Ll.forceKeepAttr=void 0,ah("uponSanitizeAttribute",Qn,Ll),Eo=Ll.attrValue,Ll.forceKeepAttr)continue;if(!Ll.keepAttr){bs(qh,Qn);continue}if(!Aa&&qd(/\/>/i,Eo)){bs(qh,Qn);continue}Sa&&(Eo=Qh(Eo,eo," "),Eo=Qh(Eo,po," "),Eo=Qh(Eo,ls," "));const Ez=Ic(Qn.nodeName);if(!Pz(Ez,Qi,Eo)){bs(qh,Qn);continue}if(Pa&&(Qi==="id"||Qi==="name")&&(bs(qh,Qn),Eo=oi+Eo),bn&&typeof Et=="object"&&typeof Et.getAttributeType=="function"&&!CP)switch(Et.getAttributeType(Ez,Qi)){case"TrustedHTML":{Eo=bn.createHTML(Eo);break}case"TrustedScriptURL":{Eo=bn.createScriptURL(Eo);break}}if(Eo!==Kne)try{CP?Qn.setAttributeNS(CP,qh,Eo):Qn.setAttribute(qh,Eo)}catch{bs(qh,Qn)}}ah("afterSanitizeAttributes",Qn,null)},qne=function ps(Qn){let lo;const Eo=pf(Qn);for(ah("beforeSanitizeShadowDOM",Qn,null);lo=Eo.nextNode();)ah("uponSanitizeShadowNode",lo,null),!Az(lo)&&(lo.content instanceof P&&ps(lo.content),rD(lo));ah("afterSanitizeShadowDOM",Qn,null)};return s.sanitize=function(ps){let Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},lo,Eo,Qi,jc;if(K2=!ps,K2&&(ps=""),typeof ps!="string"&&!aO(ps))if(typeof ps.toString=="function"){if(ps=ps.toString(),typeof ps!="string")throw v2("dirty is not a string, aborting")}else throw v2("toString is not a function");if(!s.isSupported)return ps;if(Xh||oC(Qn),s.removed=[],typeof ps=="string"&&(gf=!1),gf){if(ps.nodeName){const qh=Ic(ps.nodeName);if(!ga[qh]||ro[qh])throw v2("root node is forbidden and cannot be sanitized in-place")}}else if(ps instanceof J)lo=ja(""),Eo=lo.ownerDocument.importNode(ps,!0),Eo.nodeType===1&&Eo.nodeName==="BODY"||Eo.nodeName==="HTML"?lo=Eo:lo.appendChild(Eo);else{if(!$u&&!Sa&&!$l&&ps.indexOf("<")===-1)return bn&&Wo?bn.createHTML(ps):ps;if(lo=ja(ps),!lo)return $u?null:Wo?$n:""}lo&&zf&&mo(lo.firstChild);const xd=pf(gf?ps:lo);for(;Qi=xd.nextNode();)Az(Qi)||(Qi.content instanceof P&&qne(Qi.content),rD(Qi));if(gf)return ps;if($u){if(sh)for(jc=Qr.call(lo.ownerDocument);lo.firstChild;)jc.appendChild(lo.firstChild);else jc=lo;return(co.shadowroot||co.shadowrootmode)&&(jc=Bn.call(l,jc,!0)),jc}let Ll=$l?lo.outerHTML:lo.innerHTML;return $l&&ga["!doctype"]&&lo.ownerDocument&&lo.ownerDocument.doctype&&lo.ownerDocument.doctype.name&&qd(x5,lo.ownerDocument.doctype.name)&&(Ll=" +`+Ll),Sa&&(Ll=Qh(Ll,eo," "),Ll=Qh(Ll,po," "),Ll=Qh(Ll,ls," ")),bn&&Wo?bn.createHTML(Ll):Ll},s.setConfig=function(ps){oC(ps),Xh=!0},s.clearConfig=function(){sO=null,Xh=!1},s.isValidAttribute=function(ps,Qn,lo){sO||oC({});const Eo=Ic(ps),Qi=Ic(Qn);return Pz(Eo,Qi,lo)},s.addHook=function(ps,Qn){typeof Qn=="function"&&(tr[ps]=tr[ps]||[],op(tr[ps],Qn))},s.removeHook=function(ps){if(tr[ps])return p2(tr[ps])},s.removeHooks=function(ps){tr[ps]&&(tr[ps]=[])},s.removeAllHooks=function(){tr={}},s}var DI=t3();const $I=fr.each,c1=fr.trim,Z8=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],LI={ftp:21,http:80,https:443,mailto:25},n3=["img","video"],II=(n,s)=>B(n)?!n:B(s)?!Ze(n3,s):!0,H8=n=>{try{return decodeURIComponent(n)}catch{return unescape(n)}},U8=(n,s,l)=>{const h=H8(s).replace(/\s/g,"");return n.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(h)?!0:n.allow_html_data_urls?!1:/^data:image\//i.test(h)?II(n.allow_svg_data_urls,l)&&/^data:image\/svg\+xml/i.test(h):/^data:/i.test(h)};class Kd{static parseDataUri(s){let l;const h=decodeURIComponent(s).split(","),O=/data:([^;]+)/.exec(h[0]);return O&&(l=O[1]),{type:l,data:h[1]}}static isDomSafe(s,l,h={}){if(h.allow_script_urls)return!0;{const O=Pg.decode(s).replace(/[\s\u0000-\u001F]+/g,"");return!U8(h,O,l)}}static getDocumentBaseUrl(s){var l;let h;return s.protocol.indexOf("http")!==0&&s.protocol!=="file:"?h=(l=s.href)!==null&&l!==void 0?l:"":h=s.protocol+"//"+s.host+s.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(h)&&(h=h.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(h)||(h+="/")),h}constructor(s,l={}){this.path="",this.directory="",s=c1(s),this.settings=l;const h=l.base_uri,O=this;if(/^([\w\-]+):([^\/]{2})/i.test(s)||/^\s*#/.test(s)){O.source=s;return}const P=s.indexOf("//")===0;if(s.indexOf("/")===0&&!P&&(s=(h&&h.protocol||"http")+"://mce_host"+s),!/^[\w\-]*:?\/\//.test(s)){const J=h?h.path:new Kd(document.location.href).directory;if((h==null?void 0:h.protocol)==="")s="//mce_host"+O.toAbsPath(J,s);else{const he=/([^#?]*)([#?]?.*)/.exec(s);he&&(s=(h&&h.protocol||"http")+"://mce_host"+O.toAbsPath(J,he[1])+he[2])}}s=s.replace(/@@/g,"(mce_at)");const Z=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(s);Z&&$I(Z8,(J,he)=>{let _e=Z[he];_e&&(_e=_e.replace(/\(mce_at\)/g,"@@")),O[J]=_e}),h&&(O.protocol||(O.protocol=h.protocol),O.userInfo||(O.userInfo=h.userInfo),!O.port&&O.host==="mce_host"&&(O.port=h.port),(!O.host||O.host==="mce_host")&&(O.host=h.host),O.source=""),P&&(O.protocol="")}setPath(s){const l=/^(.*?)\/?(\w+)?$/.exec(s);l&&(this.path=l[0],this.directory=l[1],this.file=l[2]),this.source="",this.getURI()}toRelative(s){if(s==="./")return s;const l=new Kd(s,{base_uri:this});if(l.host!=="mce_host"&&this.host!==l.host&&l.host||this.port!==l.port||this.protocol!==l.protocol&&l.protocol!=="")return l.getURI();const h=this.getURI(),O=l.getURI();if(h===O||h.charAt(h.length-1)==="/"&&h.substr(0,h.length-1)===O)return h;let P=this.toRelPath(this.path,l.path);return l.query&&(P+="?"+l.query),l.anchor&&(P+="#"+l.anchor),P}toAbsolute(s,l){const h=new Kd(s,{base_uri:this});return h.getURI(l&&this.isSameOrigin(h))}isSameOrigin(s){if(this.host==s.host&&this.protocol==s.protocol){if(this.port==s.port)return!0;const l=this.protocol?LI[this.protocol]:null;if(l&&(this.port||l)==(s.port||l))return!0}return!1}toRelPath(s,l){let h=0,O="",P,Z;const J=s.substring(0,s.lastIndexOf("/")).split("/"),he=l.split("/");if(J.length>=he.length){for(P=0,Z=J.length;P=he.length||J[P]!==he[P]){h=P+1;break}}if(J.length=J.length||J[P]!==he[P]){h=P+1;break}}if(h===1)return l;for(P=0,Z=J.length-(h-1);P{qe&&J.push(qe)});const he=[];for(let qe=Z.length-1;qe>=0;qe--)if(!(Z[qe].length===0||Z[qe]===".")){if(Z[qe]===".."){h++;continue}if(h>0){h--;continue}he.push(Z[qe])}const _e=J.length-h;let Ge;return _e<=0?Ge=ct(he).join("/"):Ge=J.slice(0,_e).join("/")+"/"+ct(he).join("/"),Ge.indexOf("/")!==0&&(Ge="/"+Ge),O&&Ge.lastIndexOf("/")!==Ge.length-1&&(Ge+=O),Ge}getURI(s=!1){let l;return(!this.source||s)&&(l="",s||(this.protocol?l+=this.protocol+"://":l+="//",this.userInfo&&(l+=this.userInfo+"@"),this.host&&(l+=this.host),this.port&&(l+=":"+this.port)),this.path&&(l+=this.path),this.query&&(l+="?"+this.query),this.anchor&&(l+="#"+this.anchor),this.source=l),this.source}}const fX=fr.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),W8="data-mce-type";let NI=0;const S5=(n,s,l,h,O)=>{var P,Z,J,he;const _e=s.validate,Ge=l.getSpecialElements();n.nodeType===Rd&&!s.allow_conditional_comments&&/^\[if/i.test((P=n.nodeValue)!==null&&P!==void 0?P:"")&&(n.nodeValue=" "+n.nodeValue);const qe=(Z=O==null?void 0:O.tagName)!==null&&Z!==void 0?Z:n.nodeName.toLowerCase();if(h!=="html"&&l.isValid(h)){B(O)&&(O.allowedTags[qe]=!0);return}if(n.nodeType!==mh||qe==="body")return;const ot=Yt.fromDom(n),Et=Cf(ot,W8),Vt=Al(ot,"data-mce-bogus");if(!Et&&M(Vt)){Vt==="all"?Ks(ot):Ef(ot);return}const kt=l.getElementRule(qe);if(_e&&!kt){it(Ge,qe)?Ks(ot):Ef(ot);return}else B(O)&&(O.allowedTags[qe]=!0);if(_e&&kt&&!Et){if(re((J=kt.attributesForced)!==null&&J!==void 0?J:[],It=>{Ra(ot,It.name,It.value==="{$uid}"?`mce_${NI++}`:It.value)}),re((he=kt.attributesDefault)!==null&&he!==void 0?he:[],It=>{Cf(ot,It.name)||Ra(ot,It.name,It.value==="{$uid}"?`mce_${NI++}`:It.value)}),kt.attributesRequired&&!De(kt.attributesRequired,It=>Cf(ot,It))){Ef(ot);return}if(kt.removeEmptyAttrs&&kf(ot)){Ef(ot);return}kt.outputName&&kt.outputName!==qe&&Vd(ot,kt.outputName)}},dX=(n,s,l,h,O)=>{const P=n.tagName.toLowerCase(),{attrName:Z,attrValue:J}=O;O.keepAttr=Y8(s,l,h,P,Z,J),O.keepAttr?(O.allowedAttributes[Z]=!0,QI(Z,l)&&(O.attrValue=Z),s.allow_svg_data_urls&&Sr(J,"data:image/svg+xml")&&(O.forceKeepAttr=!0)):BI(n,Z)&&(O.forceKeepAttr=!0)},Y8=(n,s,l,h,O,P)=>l!=="html"&&!Ac(h)?!0:!(O in fX&&U8(n,P,h))&&(!n.validate||s.isValid(h,O)||Sr(O,"data-")||Sr(O,"aria-")),BI=(n,s)=>n.hasAttribute(W8)&&(s==="id"||s==="class"||s==="style"),QI=(n,s)=>n in s.getBoolAttrs(),hX=(n,s,l,h)=>{const{attributes:O}=n;for(let P=O.length-1;P>=0;P--){const Z=O[P],J=Z.name,he=Z.value;!Y8(s,l,h,n.tagName.toLowerCase(),J,he)&&!BI(n,J)?n.removeAttribute(J):QI(J,l)&&n.setAttribute(J,J)}},mX=(n,s,l)=>{const h=DI();return h.addHook("uponSanitizeElement",(O,P)=>{S5(O,n,s,l.track(O),P)}),h.addHook("uponSanitizeAttribute",(O,P)=>{dX(O,n,s,l.current(),P)}),h},gX=(n,s)=>{const h={...{IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]}};return h.PARSER_MEDIA_TYPE=s,n.allow_script_urls?h.ALLOWED_URI_REGEXP=/.*/:n.allow_html_data_urls&&(h.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),h},pX=n=>{const s=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(h=>`xlink:${h}`),l={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:s};return DI().sanitize(n,l),n.innerHTML},vX=(n,s)=>{const l=Bd();if(n.sanitize){const h=mX(n,s,l);return{sanitizeHtmlElement:(P,Z)=>{h.sanitize(P,gX(n,Z)),h.removed=[],l.reset()},sanitizeNamespaceElement:pX}}else return{sanitizeHtmlElement:(P,Z)=>{const J=document.createNodeIterator(P,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let he;for(;he=J.nextNode();){const _e=l.track(he);S5(he,n,s,_e),Xr(he)&&hX(he,n,s,_e)}l.reset()},sanitizeNamespaceElement:ie}},FI=fr.makeMap,VI=fr.extend,r3=(n,s,l,h)=>{const O=n.name,P=O in l&&O!=="title"&&O!=="textarea",Z=s.childNodes;for(let J=0,he=Z.length;J{const h=[];for(let O=n,P=O;O;P=O,O=O.walk()){const Z=O;re(s,J=>J(Z)),Q(Z.parent)&&Z!==n?O=P:h.push(Z)}for(let O=h.length-1;O>=0;O--){const P=h[O];re(l,Z=>Z(P))}},yX=(n,s,l,h)=>{const O=l.validate,P=s.getNonEmptyElements(),Z=s.getWhitespaceElements(),J=VI(FI("script,style,head,html,body,title,meta,param"),s.getBlockElements()),he=nk(s),_e=/[ \t\r\n]+/g,Ge=/^[ \t\r\n]+/,qe=/[ \t\r\n]+$/,ot=xn=>{let bn=xn.parent;for(;B(bn);){if(bn.name in Z)return!0;bn=bn.parent}return!1},Et=xn=>{let bn=xn;for(;B(bn);){if(bn.name in he)return s2(s,P,Z,bn);bn=bn.parent}return!1},Vt=xn=>xn.name in J||xm(s,xn)||Ac(xn.name)&&xn.parent===n,kt=(xn,bn)=>{const $n=bn?xn.prev:xn.next;return B($n)||Q(xn.parent)?!1:Vt(xn.parent)&&(xn.parent!==n||h.isRootContent===!0)};return[xn=>{var bn;if(xn.type===3&&!ot(xn)){let $n=(bn=xn.value)!==null&&bn!==void 0?bn:"";$n=$n.replace(_e," "),(n8(xn.prev,Vt)||kt(xn,!0))&&($n=$n.replace(Ge,"")),$n.length===0?xn.remove():xn.value=$n}},xn=>{var bn;if(xn.type===1){const $n=s.getElementRule(xn.name);if(O&&$n){const rr=s2(s,P,Z,xn);$n.paddInEmptyBlock&&rr&&Et(xn)?JA(l,h,Vt,xn):$n.removeEmpty&&rr?Vt(xn)?xn.remove():xn.unwrap():$n.paddEmpty&&(rr||SL(xn))&&JA(l,h,Vt,xn)}}else if(xn.type===3&&!ot(xn)){let $n=(bn=xn.value)!==null&&bn!==void 0?bn:"";(xn.next&&Vt(xn.next)||kt(xn,!1))&&($n=$n.replace(qe,"")),$n.length===0?xn.remove():xn.value=$n}}]},w5=(n,s)=>{var l;const h=(l=s.forced_root_block)!==null&&l!==void 0?l:n.forced_root_block;return h===!1?"":h===!0?"p":h},Vh=(n={},s=Cm())=>{const l=hI(),h=hI(),O={validate:!0,root_name:"body",sanitize:!0,...n},P=new DOMParser,Z=vX(O,s),J=(bn,$n,rr="html")=>{const gr=rr==="xhtml"?"application/xhtml+xml":"text/html",Qr=it(s.getSpecialElements(),$n.toLowerCase()),zn=Qr?`<${$n}>${bn}`:bn,Bn=rr==="xhtml"?`${zn}`:`${zn}`,tr=P.parseFromString(Bn,gr).body;return Z.sanitizeHtmlElement(tr,gr),Qr?tr.firstChild:tr},he=l.addFilter,_e=l.getFilters,Ge=l.removeFilter,qe=h.addFilter,ot=h.getFilters,Et=h.removeFilter,Vt=(bn,$n)=>{n5(s,bn)&&$n.push(bn)},kt=(bn,$n)=>{const rr=M($n.attr(W8)),gr=$n.type===1&&!it(bn,$n.name)&&!xm(s,$n)&&!Ac($n.name);return $n.type===3||gr&&!rr},It=(bn,$n)=>{const rr=VI(FI("script,style,head,html,body,title,meta,param"),s.getBlockElements()),gr=/^[ \t\r\n]+/,Qr=/[ \t\r\n]+$/;let zn=bn.firstChild,Bn=null;const tr=eo=>{var po,ls;eo&&(zn=eo.firstChild,zn&&zn.type===3&&(zn.value=(po=zn.value)===null||po===void 0?void 0:po.replace(gr,"")),zn=eo.lastChild,zn&&zn.type===3&&(zn.value=(ls=zn.value)===null||ls===void 0?void 0:ls.replace(Qr,"")))};if(s.isValidChild(bn.name,$n.toLowerCase())){for(;zn;){const eo=zn.next;kt(rr,zn)?(Bn||(Bn=new hu($n,1),Bn.attr(O.forced_root_block_attrs),bn.insert(Bn,zn)),Bn.append(zn)):(tr(Bn),Bn=null),zn=eo}tr(Bn)}},xn={schema:s,addAttributeFilter:qe,getAttributeFilters:ot,removeAttributeFilter:Et,addNodeFilter:he,getNodeFilters:_e,removeNodeFilter:Ge,parse:(bn,$n={})=>{var rr;const gr=O.validate,Qr=(rr=$n.context)!==null&&rr!==void 0?rr:O.root_name,zn=J(bn,Qr,$n.format);My(s,zn);const Bn=new hu(Qr,11);r3(Bn,zn,s.getSpecialElements(),Z.sanitizeNamespaceElement),zn.innerHTML="";const[tr,eo]=yX(Bn,s,O,$n),po=[],ls=gr?hi=>Vt(hi,po):ie,ys={nodes:{},attributes:{}},ma=hi=>K_(_e(),ot(),hi,ys);if(gu(Bn,[tr,ma],[eo,ls]),po.reverse(),gr&&po.length>0)if($n.context){const{pass:hi,fail:uc}=te(po,ga=>ga.parent===Bn);t5(uc,s,Bn,ma),$n.invalid=hi.length>0}else t5(po,s,Bn,ma);const $s=w5(O,$n);return $s&&(Bn.name==="body"||$n.isRootContent)&&It(Bn,$s),$n.invalid||J_(ys,$n),Bn}};return bI(xn,O),D8(xn,O,s),xn},zI=n=>s5(n)?s1({validate:!1}).serialize(n):n,ff=(n,s,l)=>{const h=zI(n),O=s(h);if(O.isDefaultPrevented())return O;if(s5(n))if(O.content!==h){const P=Vh({validate:!1,forced_root_block:!1,...l}).parse(O.content,{context:n.name});return{...O,content:P}}else return{...O,content:n};else return O},u1=(n,s)=>{if(s.no_events)return iu.value(s);{const l=t_(n,s);return l.isDefaultPrevented()?iu.error(xs(n,{content:"",...l}).content):iu.value(l)}},X8=(n,s,l)=>l.no_events?s:ff(s,O=>xs(n,{...l,content:O}),{sanitize:L0(n),sandbox_iframes:Tx(n)}).content,G8=(n,s)=>{if(s.no_events)return iu.value(s);{const l=ff(s.content,h=>l9(n,{...s,content:h}),{sanitize:L0(n),sandbox_iframes:Tx(n)});return l.isDefaultPrevented()?(yA(n,l),iu.error(void 0)):iu.value(l)}},T5=(n,s,l)=>{l.no_events||yA(n,{...l,content:s})},j8=(n,s,l)=>({element:n,width:s,rows:l}),q8=(n,s)=>({element:n,cells:s}),o3=(n,s)=>({x:n,y:s}),C5=(n,s)=>bc(n,s).bind(Ft).getOr(1),bX=(n,s,l,h,O)=>{const P=C5(O,"rowspan"),Z=C5(O,"colspan"),J=n.rows;for(let he=l;he{const h=n.rows;return!!(h[l]?h[l].cells:[])[s]},OX=(n,s,l)=>{for(;ZI(n,s,l);)s++;return s},k5=n=>oe(n,(s,l)=>l.cells.length>s?l.cells.length:s,0),A5=(n,s)=>{const l=n.rows;for(let h=0;h{const P=[],Z=n.rows;for(let J=l;J<=O;J++){const he=Z[J].cells,_e=s{const h=s.x,O=s.y,P=l.x,Z=l.y,J=O{const l=Pu(n.element),h=Yt.fromTag("tbody");return Ta(h,s),Ci(l,h),l},K8=n=>Ie(n.rows,s=>{const l=Ie(s.cells,O=>{const P=ix(O);return ci(P,"colspan"),ci(P,"rowspan"),P}),h=Pu(s.element);return Ta(h,l),h}),SX=n=>{const s=j8(Pu(n),0,[]);return re(sl(n,"tr"),(l,h)=>{re(sl(l,"td,th"),(O,P)=>{bX(s,OX(s,P,h),h,l,O)})}),j8(s.element,k5(s.rows),s.rows)},P5=n=>sp(n,K8(n)),J8=(n,s,l)=>A5(n,s).bind(h=>A5(n,l).map(O=>xX(n,h,O))),UI=n=>le(n,s=>Vs(s)==="ul"||Vs(s)==="ol"),WI=(n,s)=>le(n,l=>Vs(l)==="li"&&aT(l,s)).fold(ae([]),l=>UI(n).map(h=>{const O=Yt.fromTag(Vs(h)),P=wn(Oy(h),(Z,J)=>Sr(J,"list-style"));return nc(O,P),[Yt.fromTag("li"),O]}).getOr([])),YI=(n,s)=>{const l=oe(s,(h,O)=>(Ci(O,h),O),n);return s.length>0?TT([l]):l},wX=n=>td(n)?ru(n).filter(Tc).fold(ae([]),s=>[n,s]):Tc(n)?[n]:[],TX=(n,s,l)=>{const h=Yt.fromDom(s.commonAncestorContainer),O=qg(h,n),P=se(O,he=>l.isWrapper(Vs(he))),Z=WI(O,s),J=P.concat(Z.length?Z:wX(h));return Ie(J,Pu)},XI=()=>TT([]),CX=(n,s,l)=>YI(Yt.fromDom(s.cloneContents()),TX(n,s,l)),kX=(n,s)=>Og(s,"table",ee(Gs,n)),GI=(n,s)=>kX(n,s[0]).bind(l=>{const h=s[0],O=s[s.length-1],P=SX(l);return J8(P,h,O).map(Z=>TT([P5(Z)]))}).getOrThunk(XI),AX=(n,s,l)=>s.length>0&&s[0].collapsed?XI():CX(n,s[0],l),PX=(n,s,l)=>{const h=UE(s,n);return h.length>0?GI(n,h):AX(n,s,l)},M5=(n,s)=>s>=0&&sPe(n.innerText),t6=n=>n.map(s=>s.nodeName).getOr("div").toLowerCase(),n6=n=>G.from(n.selection.getRng()).map(s=>{var l;const h=G.from(n.dom.getParent(s.commonAncestorContainer,n.dom.isBlock)),O=n.getBody(),P=t6(h),Z=Yt.fromDom(s.cloneContents());Jo(Z),C_(Z);const J=n.dom.add(O,P,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},Z.dom),he=e6(J),_e=Pe((l=J.textContent)!==null&&l!==void 0?l:"");if(n.dom.remove(J),M5(_e,0)||M5(_e,_e.length-1)){const Ge=h.getOr(O),qe=e6(Ge),ot=qe.indexOf(he);if(ot===-1)return he;{const Et=M5(qe,ot-1),Vt=M5(qe,ot+he.length);return(Et?" ":"")+he+(Vt?" ":"")}}else return he}).getOr(""),jI=(n,s)=>{const l=n.selection.getRng(),h=n.dom.create("body"),O=n.selection.getSel(),P=T_(n,$x(O)),Z=s.contextual?PX(Yt.fromDom(n.getBody()),P,n.schema).dom:l.cloneContents();return Z&&h.appendChild(Z),n.selection.serializer.serialize(h,s)},r6=(n,s)=>{if(s.format==="text")return n6(n);{const l=jI(n,s);return s.format==="tree"?l:n.selection.isCollapsed()?"":l}},qI=(n,s)=>({...n,format:s,get:!0,selection:!0,getInner:!0}),KI=(n,s,l={})=>{const h=qI(l,s);return u1(n,h).fold(q,O=>{const P=r6(n,O);return X8(n,P,O)})},s3=0,o6=1,s6=2,JI=(n,s)=>{const l=n.length+s.length+2,h=new Array(l),O=new Array(l),P=(Ge,qe,ot)=>({start:Ge,end:qe,diag:ot}),Z=(Ge,qe,ot,Et,Vt)=>{const kt=he(Ge,qe,ot,Et);if(kt===null||kt.start===qe&&kt.diag===qe-Et||kt.end===Ge&&kt.diag===Ge-ot){let It=Ge,cn=ot;for(;ItEt-ot?(Vt.push([s6,n[It]]),++It):(Vt.push([o6,s[cn]]),++cn)}else{Z(Ge,kt.start,ot,kt.start-kt.diag,Vt);for(let It=kt.start;It{let Vt=Ge;for(;Vt-qe{const Vt=qe-Ge,kt=Et-ot;if(Vt===0||kt===0)return null;const It=Vt-kt,cn=kt+Vt,xn=(cn%2===0?cn:cn+1)/2;h[1+xn]=Ge,O[1+xn]=qe+1;let bn,$n,rr,gr,Qr;for(bn=0;bn<=xn;++bn){for($n=-bn;$n<=bn;$n+=2){for(rr=$n+xn,$n===-bn||$n!==bn&&h[rr-1]=Ge&&Qr>=ot&&n[gr]===s[Qr];)O[rr]=gr--,Qr--;if(It%2===0&&-bn<=$n&&$n<=bn&&O[rr]<=h[rr+It])return J(O[rr],$n+Ge-ot,qe,Et)}}return null},_e=[];return Z(0,n.length,0,s.length,_e),_e},a6=n=>Xr(n)?n.outerHTML:lr(n)?Pg.encodeRaw(n.data,!1):Kf(n)?"":"",i6=n=>{let s;const l=document.createElement("div"),h=document.createDocumentFragment();for(n&&(l.innerHTML=n);s=l.firstChild;)h.appendChild(s);return h},MX=(n,s,l)=>{const h=i6(s);if(n.hasChildNodes()&&l{if(n.hasChildNodes()&&s{let l=0;re(n,h=>{h[0]===s3?l++:h[0]===o6?(MX(s,h[1],l),l++):h[0]===s6&&E5(s,l)})},_X=(n,s)=>se(Ie(tt(n.childNodes),s?L(Pe,a6):a6),l=>l.length>0),RX=(n,s)=>{const l=Ie(tt(s.childNodes),a6);return EX(JI(l,n),s),s},eN=Rt(()=>document.implementation.createHTMLDocument("undo")),tN=n=>n.querySelector("iframe")!==null,DX=n=>({type:"fragmented",fragments:n,content:"",bookmark:null,beforeBookmark:null}),$X=n=>({type:"complete",fragments:null,content:n,bookmark:null,beforeBookmark:null}),_5=n=>{const s=n.serializer.getTempAttrs(),l=$9(n.getBody(),s);return tN(l)?DX(_X(l,!0)):$X(Pe(l.innerHTML))},l6=(n,s,l)=>{const h=l?s.beforeBookmark:s.bookmark;s.type==="fragmented"?RX(s.fragments,n.getBody()):n.setContent(s.content,{format:"raw",no_selection:B(h)&&nA(h)?!h.isFakeCaret:!0}),h&&(n.selection.moveToBookmark(h),n.selection.scrollIntoView())},c6=n=>n.type==="fragmented"?n.fragments.join(""):n.content,u6=n=>{const s=Yt.fromTag("body",eN());return gm(s,c6(n)),re(sl(s,"*[data-mce-bogus]"),Ef),hs(s)},Lle=(n,s)=>c6(n)===c6(s),LX=(n,s)=>u6(n)===u6(s),f6=(n,s)=>!n||!s?!1:Lle(n,s)?!0:LX(n,s),d6=n=>n.get()===0,R5=(n,s,l)=>{d6(l)&&(n.typing=s)},nN=(n,s)=>{n.typing&&(R5(n,!1,s),n.add())},IX=n=>{n.typing&&(n.typing=!1,n.add())},NX=(n,s,l)=>{d6(s)&&l.set(P0(n.selection))},rN=(n,s,l,h,O,P,Z)=>{const J=_5(n),he=fr.extend(P||{},J);if(!d6(h)||n.removed)return null;const _e=s.data[l.get()];if(n.dispatch("BeforeAddUndo",{level:he,lastLevel:_e,originalEvent:Z}).isDefaultPrevented()||_e&&f6(_e,he))return null;s.data[l.get()]&&O.get().each(ot=>{s.data[l.get()].beforeBookmark=ot});const Ge=jy(n);if(Ge&&s.data.length>Ge){for(let ot=0;ot0?(n.setDirty(!0),n.dispatch("AddUndo",qe),n.dispatch("change",qe)):n.dispatch("AddUndo",qe),he},BX=(n,s,l)=>{s.data=[],l.set(0),s.typing=!1,n.dispatch("ClearUndos")},QX=(n,s,l,h,O)=>{if(s.transact(h)){const P=s.data[l.get()].bookmark,Z=s.data[l.get()-1];l6(n,Z,!0),s.transact(O)&&(s.data[l.get()-1].beforeBookmark=P)}},FX=(n,s,l)=>{let h;return s.get(){let O;return s.typing&&(s.add(),s.typing=!1,R5(s,!1,l)),h.get()>0&&(h.set(h.get()-1),O=s.data[h.get()],l6(n,O,!0),n.setDirty(!0),n.dispatch("Undo",{level:O})),O},zX=n=>{n.clear(),n.add()},Ile=(n,s,l)=>l.get()>0||s.typing&&s.data[0]&&!f6(_5(n),s.data[0]),Nle=(n,s)=>s.get()(nN(n,s),n.beforeChange(),n.ignore(l),n.add()),HX=(n,s)=>{try{n.set(n.get()+1),s()}finally{n.set(n.get()-1)}},Ble=(n,s)=>{const l=n.dom,h=B(s)?s:n.getBody();re(l.select("table,a",h),O=>{switch(O.nodeName){case"TABLE":const P=vE(n),Z=l.getAttrib(O,"border");(!Z||Z==="0")&&n.hasVisual?l.addClass(O,P):l.removeClass(O,P);break;case"A":if(!l.getAttrib(O,"href")){const J=l.getAttrib(O,"name")||O.id,he=Nk(n);J&&n.hasVisual?l.addClass(O,he):l.removeClass(O,he)}break}}),n.dispatch("VisualAid",{element:s,hasVisual:n.hasVisual})},oN=n=>({init:{bindEvents:ie},undoManager:{beforeChange:(s,l)=>NX(n,s,l),add:(s,l,h,O,P,Z)=>rN(n,s,l,h,O,P,Z),undo:(s,l,h)=>VX(n,s,l,h),redo:(s,l)=>FX(n,s,l),clear:(s,l)=>BX(n,s,l),reset:s=>zX(s),hasUndo:(s,l)=>Ile(n,s,l),hasRedo:(s,l)=>Nle(s,l),transact:(s,l,h)=>ZX(s,l,h),ignore:(s,l)=>HX(s,l),extra:(s,l,h,O)=>QX(n,s,l,h,O)},formatter:{match:(s,l,h,O)=>a5(n,s,l,h,O),matchAll:(s,l)=>EY(n,s,l),matchNode:(s,l,h,O)=>Jg(n,s,l,h,O),canApply:s=>QL(n,s),closest:s=>Ib(n,s),apply:(s,l,h)=>lI(n,s,l,h),remove:(s,l,h,O)=>oI(n,s,l,h,O),toggle:(s,l,h)=>GY(n,s,l,h),formatChanged:(s,l,h,O,P)=>XY(n,s,l,h,O,P)},editor:{getContent:s=>Ale(n,s),setContent:(s,l)=>IL(n,s,l),insertContent:(s,l)=>LL(n,s,l),addVisual:s=>Ble(n,s)},selection:{getContent:(s,l)=>KI(n,s,l)},autocompleter:{addDecoration:s=>yW(n,s),removeDecoration:()=>OW(n,Yt.fromDom(n.getBody()))},raw:{getModel:()=>G.none()}}),Mi=n=>{const s=_e=>I(_e)?_e:{},{init:l,undoManager:h,formatter:O,editor:P,selection:Z,autocompleter:J,raw:he}=n;return{init:{bindEvents:l.bindEvents},undoManager:{beforeChange:h.beforeChange,add:h.add,undo:h.undo,redo:h.redo,clear:h.clear,reset:h.reset,hasUndo:h.hasUndo,hasRedo:h.hasRedo,transact:(_e,Ge,qe)=>h.transact(qe),ignore:(_e,Ge)=>h.ignore(Ge),extra:(_e,Ge,qe,ot)=>h.extra(qe,ot)},formatter:{match:(_e,Ge,qe,ot)=>O.match(_e,s(Ge),ot),matchAll:O.matchAll,matchNode:O.matchNode,canApply:_e=>O.canApply(_e),closest:_e=>O.closest(_e),apply:(_e,Ge,qe)=>O.apply(_e,s(Ge)),remove:(_e,Ge,qe,ot)=>O.remove(_e,s(Ge)),toggle:(_e,Ge,qe)=>O.toggle(_e,s(Ge)),formatChanged:(_e,Ge,qe,ot,Et)=>O.formatChanged(Ge,qe,ot,Et)},editor:{getContent:_e=>P.getContent(_e),setContent:(_e,Ge)=>({content:P.setContent(_e,Ge),html:""}),insertContent:(_e,Ge)=>(P.insertContent(_e),""),addVisual:P.addVisual},selection:{getContent:(_e,Ge)=>Z.getContent(Ge)},autocompleter:{addDecoration:J.addDecoration,removeDecoration:J.removeDecoration},raw:{getModel:()=>G.some(he.getRawModel())}}},h6=()=>{const n=ae(null),s=ae("");return{init:{bindEvents:ie},undoManager:{beforeChange:ie,add:n,undo:n,redo:n,clear:ie,reset:ie,hasUndo:ne,hasRedo:ne,transact:n,ignore:ie,extra:ie},formatter:{match:ne,matchAll:ae([]),matchNode:ae(void 0),canApply:ne,closest:s,apply:ie,remove:ie,toggle:ie,formatChanged:ae({unbind:ie})},editor:{getContent:s,setContent:ae({content:"",html:""}),insertContent:ae(""),addVisual:ie},selection:{getContent:s},autocompleter:{addDecoration:ie,removeDecoration:ie},raw:{getModel:ae(G.none())}}},Cv=n=>it(n.plugins,"rtc"),UX=n=>Sn(n.plugins,"rtc").bind(s=>G.from(s.setup)),WX=n=>{const s=n;return UX(n).fold(()=>(s.rtcInstance=oN(n),G.none()),l=>(s.rtcInstance=h6(),G.some(()=>l().then(h=>(s.rtcInstance=Mi(h),h.rtc.isRemote)))))},f1=n=>n.rtcInstance?n.rtcInstance:oN(n),bl=n=>{const s=n.rtcInstance;if(s)return s;throw new Error("Failed to get RTC instance not yet initialized.")},Qle=(n,s,l)=>{bl(n).undoManager.beforeChange(s,l)},$c=(n,s,l,h,O,P,Z)=>bl(n).undoManager.add(s,l,h,O,P,Z),sN=(n,s,l,h)=>bl(n).undoManager.undo(s,l,h),aN=(n,s,l)=>bl(n).undoManager.redo(s,l),iN=(n,s,l)=>{bl(n).undoManager.clear(s,l)},YX=(n,s)=>{bl(n).undoManager.reset(s)},XX=(n,s,l)=>bl(n).undoManager.hasUndo(s,l),D5=(n,s,l)=>bl(n).undoManager.hasRedo(s,l),GX=(n,s,l,h)=>bl(n).undoManager.transact(s,l,h),m6=(n,s,l)=>{bl(n).undoManager.ignore(s,l)},jX=(n,s,l,h,O)=>{bl(n).undoManager.extra(s,l,h,O)},lN=(n,s,l,h,O)=>bl(n).formatter.match(s,l,h,O),cN=(n,s,l)=>bl(n).formatter.matchAll(s,l),g6=(n,s,l,h,O)=>bl(n).formatter.matchNode(s,l,h,O),uN=(n,s)=>bl(n).formatter.canApply(s),p6=(n,s)=>bl(n).formatter.closest(s),qX=(n,s,l,h)=>{bl(n).formatter.apply(s,l,h)},KX=(n,s,l,h,O)=>{bl(n).formatter.remove(s,l,h,O)},JX=(n,s,l,h)=>{bl(n).formatter.toggle(s,l,h)},Jd=(n,s,l,h,O,P)=>bl(n).formatter.formatChanged(s,l,h,O,P),eG=(n,s)=>f1(n).editor.getContent(s),tG=(n,s,l)=>f1(n).editor.setContent(s,l),nG=(n,s,l)=>f1(n).editor.insertContent(s,l),rG=(n,s,l)=>bl(n).selection.getContent(s,l),oG=(n,s)=>bl(n).editor.addVisual(s),v6=n=>bl(n).init.bindEvents(),sG=(n,s)=>bl(n).autocompleter.addDecoration(s),aG=n=>bl(n).autocompleter.removeDecoration(),iG=(n,s={})=>{const l=s.format?s.format:"html";return rG(n,l,s)},a3=n=>n.dom.length===0?(Ks(n),G.none()):G.some(n),lG=(n,s)=>n.filter(l=>mv.isBookmarkNode(l.dom)).bind(s?zp:Uu),cG=(n,s,l,h,O)=>{const P=n.dom,Z=s.dom,J=h?P.length:Z.length;h?(Dl(P,Z,O,!1,!h),l.setStart(Z,J)):(Dl(Z,P,O,!1,!h),l.setEnd(Z,J))},fN=(n,s,l)=>{ru(n).each(h=>{const O=n.dom;s&&e2(h,Nn(O,0),l)?_b(O,0,l):!s&&t2(h,Nn(O,O.length),l)&&rL(O,O.length,l)})},$5=(n,s,l,h,O)=>{n.bind(P=>((h?rL:_b)(P.dom,h?P.dom.length:0,O),s.filter(Zi).map(J=>cG(P,J,l,h,O)))).orThunk(()=>lG(s,h).or(s).filter(Zi).map(Z=>fN(Z,h,O)))},uG=(n,s,l)=>{const h=G.from(s.firstChild).map(Yt.fromDom),O=G.from(s.lastChild).map(Yt.fromDom);n.deleteContents(),n.insertNode(s);const P=h.bind(Uu).filter(Zi).bind(a3),Z=O.bind(zp).filter(Zi).bind(a3);$5(P,h,n,!0,l),$5(Z,O,n,!1,l),n.collapse(!1)},fG=(n,s)=>({format:"html",...n,set:!0,selection:!0,content:s}),Fle=(n,s)=>{if(s.format!=="raw"){const l=n.selection.getRng(),h=n.dom.getParent(l.commonAncestorContainer,n.dom.isBlock),O=h?{context:h.nodeName.toLowerCase()}:{},P=n.parser.parse(s.content,{forced_root_block:!1,...O,...s});return s1({validate:!1},n.schema).serialize(P)}else return s.content},dG=(n,s,l={})=>{const h=fG(l,s);G8(n,h).each(O=>{const P=Fle(n,O),Z=n.selection.getRng();uG(Z,Z.createContextualFragment(P),n.schema),n.selection.setRng(Z),Ab(n,Z),T5(n,P,O)})},dN=(n,s,l)=>{if(it(n,s)){const h=se(n[s],O=>O!==l);h.length===0?delete n[s]:n[s]=h}};var hN=(n,s)=>{let l,h;const O=(J,he)=>le(he,_e=>n.is(_e,J)),P=J=>n.getParents(J,void 0,n.getRoot()),Z=()=>{l={},h={},s.on("NodeChange",J=>{const he=J.element,_e=P(he),Ge={};Bt(l,(qe,ot)=>{O(ot,_e).each(Et=>{h[ot]||(re(qe,Vt=>{Vt(!0,{node:Et,selector:ot,parents:_e})}),h[ot]=qe),Ge[ot]=qe})}),Bt(h,(qe,ot)=>{Ge[ot]||(delete h[ot],re(qe,Et=>{Et(!1,{node:he,selector:ot,parents:_e})}))})})};return{selectorChangedWithUnbind:(J,he)=>(l||Z(),l[J]||(l[J]=[]),l[J].push(he),O(J,P(s.selection.getStart())).each(()=>{h[J]=l[J]}),{unbind:()=>{dN(l,J,he),dN(h,J,he)}})}};const y6=n=>!!(n&&n.ownerDocument)&&tc(Yt.fromDom(n.ownerDocument),Yt.fromDom(n)),hG=n=>n?y6(n.startContainer)&&y6(n.endContainer):!1,d1=(n,s,l,h)=>{let O,P;const{selectorChangedWithUnbind:Z}=hN(n,h),J=(Cr,co)=>{const Zs=n.createRng();B(Cr)&&B(co)?(Zs.setStart(Cr,co),Zs.setEnd(Cr,co),$n(Zs),cn(!1)):(iT(n,Zs,h.getBody(),!0),$n(Zs))},he=Cr=>iG(h,Cr),_e=(Cr,co)=>dG(h,Cr,co),Ge=Cr=>S_(h.getBody(),bn(),Cr),qe=Cr=>T9(h.getBody(),bn(),Cr),ot=(Cr,co)=>uc.getBookmark(Cr,co),Et=Cr=>uc.moveToBookmark(Cr),Vt=(Cr,co)=>(uW(n,Cr,co).each($n),Cr),kt=()=>{const Cr=bn(),co=xn();return!Cr||Cr.item?!1:Cr.compareEndPoints?Cr.compareEndPoints("StartToEnd",Cr)===0:!co||Cr.collapsed},It=()=>{const Cr=bn(),co=h.getBody().querySelectorAll('[data-mce-selected="1"]');return co.length>0?Xe(co,Zs=>n.isEditable(Zs.parentElement)):S9(n,Cr)},cn=Cr=>{const co=bn();co.collapse(!!Cr),$n(co)},xn=()=>s.getSelection?s.getSelection():s.document.selection,bn=()=>{let Cr;const co=(Ss,ro,Lo)=>{try{return ro.compareBoundaryPoints(Ss,Lo)}catch{return-1}},Zs=s.document;if(B(h.bookmark)&&!o1(h)){const Ss=y_(h);if(Ss.isSome())return Ss.map(ro=>T_(h,[ro])[0]).getOr(Zs.createRange())}try{const Ss=xn();Ss&&!Gu(Ss.anchorNode)&&(Ss.rangeCount>0?Cr=Ss.getRangeAt(0):Cr=Zs.createRange(),Cr=T_(h,[Cr])[0])}catch{}if(Cr||(Cr=Zs.createRange()),Tg(Cr.startContainer)&&Cr.collapsed){const Ss=n.getRoot();Cr.setStart(Ss,0),Cr.setEnd(Ss,0)}return O&&P&&(co(Cr.START_TO_START,Cr,O)===0&&co(Cr.END_TO_END,Cr,O)===0?Cr=P:(O=null,P=null)),Cr},$n=(Cr,co)=>{if(!hG(Cr))return;const Zs=xn();if(Cr=h.dispatch("SetSelectionRange",{range:Cr,forward:co}).range,Zs){P=Cr;try{Zs.removeAllRanges(),Zs.addRange(Cr)}catch{}co===!1&&Zs.extend&&(Zs.collapse(Cr.endContainer,Cr.endOffset),Zs.extend(Cr.startContainer,Cr.startOffset)),O=Zs.rangeCount>0?Zs.getRangeAt(0):null}if(!Cr.collapsed&&Cr.startContainer===Cr.endContainer&&(Zs!=null&&Zs.setBaseAndExtent)&&Cr.endOffset-Cr.startOffset<2&&Cr.startContainer.hasChildNodes()){const ro=Cr.startContainer.childNodes[Cr.startOffset];ro&&ro.nodeName==="IMG"&&(Zs.setBaseAndExtent(Cr.startContainer,Cr.startOffset,Cr.endContainer,Cr.endOffset),(Zs.anchorNode!==Cr.startContainer||Zs.focusNode!==Cr.endContainer)&&Zs.setBaseAndExtent(ro,0,ro,1))}h.dispatch("AfterSetSelectionRange",{range:Cr,forward:co})},rr=Cr=>(_e(n.getOuterHTML(Cr)),Cr),gr=()=>C9(h.getBody(),bn()),Qr=(Cr,co)=>cW(n,bn(),Cr,co),zn=()=>{const Cr=xn(),co=Cr==null?void 0:Cr.anchorNode,Zs=Cr==null?void 0:Cr.focusNode;if(!Cr||!co||!Zs||Gu(co)||Gu(Zs))return!0;const Ss=n.createRng(),ro=n.createRng();try{Ss.setStart(co,Cr.anchorOffset),Ss.collapse(!0),ro.setStart(Zs,Cr.focusOffset),ro.collapse(!0)}catch{return!0}return Ss.compareBoundaryPoints(Ss.START_TO_START,ro)<=0},hi={dom:n,win:s,serializer:l,editor:h,expand:(Cr={type:"word"})=>$n(Ot(n).expand(bn(),Cr)),collapse:cn,setCursorLocation:J,getContent:he,setContent:_e,getBookmark:ot,moveToBookmark:Et,select:Vt,isCollapsed:kt,isEditable:It,isForward:zn,setNode:rr,getNode:gr,getSel:xn,setRng:$n,getRng:bn,getStart:Ge,getEnd:qe,getSelectedBlocks:Qr,normalize:()=>{const Cr=bn(),co=xn();if(!hv(co)&&Ix(h)){const Zs=Me(n,Cr);return Zs.each(Ss=>{$n(Ss,zn())}),Zs.getOr(Cr)}return Cr},selectorChanged:(Cr,co)=>(Z(Cr,co),hi),selectorChangedWithUnbind:Z,getScrollContainer:()=>{let Cr,co=n.getRoot();for(;co&&co.nodeName!=="BODY";){if(co.scrollHeight>co.clientHeight){Cr=co;break}co=co.parentNode}return Cr},scrollIntoView:(Cr,co)=>{B(Cr)?cc(h,Cr,co):Ab(h,bn(),co)},placeCaretAt:(Cr,co)=>$n(cf(Cr,co,h.getDoc())),getBoundingClientRect:()=>{const Cr=bn();return Cr.collapsed?Nn.fromRangeStart(Cr).getClientRects()[0]:Cr.getBoundingClientRect()},destroy:()=>{s=O=P=null,ga.destroy()}},uc=mv(hi),ga=u9(hi,h);return hi.bookmarkManager=uc,hi.controlSelection=ga,hi},O2=(n,s,l)=>{n.addAttributeFilter("data-mce-tabindex",(h,O)=>{let P=h.length;for(;P--;){const Z=h[P];Z.attr("tabindex",Z.attr("data-mce-tabindex")),Z.attr(O,null)}}),n.addAttributeFilter("src,href,style",(h,O)=>{const P="data-mce-"+O,Z=s.url_converter,J=s.url_converter_scope;let he=h.length;for(;he--;){const _e=h[he];let Ge=_e.attr(P);Ge!==void 0?(_e.attr(O,Ge.length>0?Ge:null),_e.attr(P,null)):(Ge=_e.attr(O),O==="style"?Ge=l.serializeStyle(l.parseStyle(Ge),_e.name):Z&&(Ge=Z.call(J,Ge,O,_e.name)),_e.attr(O,Ge.length>0?Ge:null))}}),n.addAttributeFilter("class",h=>{let O=h.length;for(;O--;){const P=h[O];let Z=P.attr("class");Z&&(Z=Z.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),P.attr("class",Z.length>0?Z:null))}}),n.addAttributeFilter("data-mce-type",(h,O,P)=>{let Z=h.length;for(;Z--;){const J=h[Z];J.attr("data-mce-type")==="bookmark"&&!P.cleanup&&(G.from(J.firstChild).exists(_e=>{var Ge;return!we((Ge=_e.value)!==null&&Ge!==void 0?Ge:"")})?J.unwrap():J.remove())}}),n.addNodeFilter("noscript",h=>{var O;let P=h.length;for(;P--;){const Z=h[P].firstChild;Z&&(Z.value=Pg.decode((O=Z.value)!==null&&O!==void 0?O:""))}}),n.addNodeFilter("script,style",(h,O)=>{var P;const Z=he=>he.replace(/()/g,` +`).replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"");let J=h.length;for(;J--;){const he=h[J],_e=he.firstChild,Ge=(P=_e==null?void 0:_e.value)!==null&&P!==void 0?P:"";if(O==="script"){const qe=he.attr("type");qe&&he.attr("type",qe==="mce-no/type"?null:qe.replace(/^mce\-/,"")),s.element_format==="xhtml"&&_e&&Ge.length>0&&(_e.value=`// `)}else s.element_format==="xhtml"&&_e&&Ge.length>0&&(_e.value=``)}}),n.addNodeFilter("#comment",h=>{let O=h.length;for(;O--;){const P=h[O],Z=P.value;s.preserve_cdata&&(Z==null?void 0:Z.indexOf("[CDATA["))===0?(P.name="#cdata",P.type=4,P.value=l.decode(Z.replace(/^\[CDATA\[|\]\]$/g,""))):(Z==null?void 0:Z.indexOf("mce:protected "))===0&&(P.name="#text",P.type=3,P.raw=!0,P.value=unescape(Z).substr(14))}}),n.addNodeFilter("xml:namespace,input",(h,O)=>{let P=h.length;for(;P--;){const Z=h[P];Z.type===7?Z.remove():Z.type===1&&O==="input"&&!Z.attr("type")&&Z.attr("type","text")}}),n.addAttributeFilter("data-mce-type",h=>{re(h,O=>{O.attr("data-mce-type")==="format-caret"&&(O.isEmpty(n.schema.getNonEmptyElements())?O.remove():O.unwrap())})}),n.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(h,O)=>{let P=h.length;for(;P--;)h[P].attr(O,null)}),s.remove_trailing_brs&&$8(s,n,n.schema)},i3=n=>{const s=h=>(h==null?void 0:h.name)==="br",l=n.lastChild;if(s(l)){const h=l.prev;s(h)&&(l.remove(),h.remove())}},mN=(n,s,l)=>{let h;const O=n.dom;let P=s.cloneNode(!0);const Z=document.implementation;if(Z.createHTMLDocument){const J=Z.createHTMLDocument("");fr.each(P.nodeName==="BODY"?P.childNodes:[P],he=>{J.body.appendChild(J.importNode(he,!0))}),P.nodeName!=="BODY"?P=J.body.firstChild:P=J.body,h=O.doc,O.doc=J}return pT(n,{...l,node:P}),h&&(O.doc=h),P},gN=(n,s)=>B(n)&&n.hasEventListeners("PreProcess")&&!s.no_events,mG=(n,s,l)=>gN(n,l)?mN(n,s,l):s,pN=(n,s,l)=>{fr.inArray(s,l)===-1&&(n.addAttributeFilter(l,(h,O)=>{let P=h.length;for(;P--;)h[P].attr(O,null)}),s.push(l))},gG=(n,s,l)=>!s.no_events&&n?KE(n,{...s,content:l}).content:l,pG=(n,s,l)=>{const h=Pe(l.getInner?s.innerHTML:n.getOuterHTML(s));return l.selection||Wi(Yt.fromDom(s))?h:fr.trim(h)},vG=(n,s,l)=>{const h=l.selection?{forced_root_block:!1,...l}:l,O=n.parse(s,h);return i3(O),O},yG=(n,s,l)=>s1(n,s).serialize(l),vN=(n,s,l,h,O)=>{const P=yG(s,l,h);return gG(n,O,P)},bG=(n,s)=>{const l=["data-mce-selected"],h={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...n},O=s&&s.dom?s.dom:Da.DOM,P=s&&s.schema?s.schema:Cm(h),Z=Vh(h,P);O2(Z,h,O);const J=(he,_e={})=>{const Ge={format:"html",..._e},qe=mG(s,he,Ge),ot=pG(O,qe,Ge),Et=vG(Z,ot,Ge);return Ge.format==="tree"?Et:vN(s,h,P,Et,Ge)};return{schema:P,addNodeFilter:Z.addNodeFilter,addAttributeFilter:Z.addAttributeFilter,serialize:J,addRules:P.addValidElements,setRules:P.setValidElements,addTempAttr:ee(pN,Z,l),getTempAttrs:ae(l),getNodeFilters:Z.getNodeFilters,getAttributeFilters:Z.getAttributeFilters,removeNodeFilter:Z.removeNodeFilter,removeAttributeFilter:Z.removeAttributeFilter}},yN=(n,s)=>{const l=bG(n,s);return{schema:l.schema,addNodeFilter:l.addNodeFilter,addAttributeFilter:l.addAttributeFilter,serialize:l.serialize,addRules:l.addRules,setRules:l.setRules,addTempAttr:l.addTempAttr,getTempAttrs:l.getTempAttrs,getNodeFilters:l.getNodeFilters,getAttributeFilters:l.getAttributeFilters,removeNodeFilter:l.removeNodeFilter,removeAttributeFilter:l.removeAttributeFilter}},l3="html",bN=(n,s)=>({...n,format:s,get:!0,getInner:!0}),ON=(n,s={})=>{const l=s.format?s.format:l3,h=bN(s,l);return u1(n,h).fold(q,O=>{const P=eG(n,O);return X8(n,P,O)})},OG="html",xG=(n,s)=>({format:OG,...n,set:!0,content:s}),b6=(n,s,l={})=>{const h=xG(l,s);return G8(n,h).map(O=>{const P=tG(n,O.content,O);return T5(n,P.html,O),P.content}).getOr(s)},xN="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),SG="template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),wG="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),SN=[{name:"template",replacedWith:"Advanced Template"},{name:"rtc"}],wN=(n,s)=>{const l=se(s,h=>it(n,h));return je(l)},Vle=n=>{const s=wN(n,xN),l=n.forced_root_block;return(l===!1||l==="")&&s.push("forced_root_block (false only)"),je(s)},Um=n=>wN(n,SG),L5=(n,s)=>{const l=fr.makeMap(n.plugins," "),O=se(s,P=>it(l,P));return je(O)},TG=n=>L5(n,wG),CG=n=>L5(n,SN.map(s=>s.name)),kG=(n,s)=>{const l=Vle(n),h=TG(s),O=h.length>0,P=l.length>0,Z=s.theme==="mobile";if(O||P||Z){const J=` +- `,he=Z?` + +Themes:${J}mobile`:"",_e=O?` + +Plugins:${J}${h.join(J)}`:"",Ge=P?` + +Options:${J}${l.join(J)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 6.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/6/migration-from-5x/ for more information."+he+_e+Ge)}},AG=n=>le(SN,s=>s.name===n).fold(()=>n,s=>s.replacedWith?`${n}, replaced by ${s.replacedWith}`:n),la=(n,s)=>{const l=Um(n),h=CG(s),O=h.length>0,P=l.length>0;if(O||P){const Z=` +- `,J=O?` + +Plugins:${Z}${h.map(AG).join(Z)}`:"",he=P?` + +Options:${Z}${l.join(Z)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+J+he)}},zle=(n,s)=>{kG(n,s),la(n,s)},I5=Da.DOM,PG=n=>{I5.setStyle(n.id,"display",n.orgDisplay)},Ga=n=>G.from(n).each(s=>s.destroy()),MG=n=>{const s=n;s.contentAreaContainer=s.formElement=s.container=s.editorContainer=null,s.bodyElement=s.contentDocument=s.contentWindow=null,s.iframeElement=s.targetElm=null;const l=n.selection;if(l){const h=l.dom;s.selection=l.win=l.dom=h.doc=null}},c3=n=>{const s=n.formElement;s&&(s._mceOldSubmit&&(s.submit=s._mceOldSubmit,delete s._mceOldSubmit),I5.unbind(s,"submit reset",n.formEventDelegate))},EG=n=>{if(!n.removed){const{_selectionOverrides:s,editorUpload:l}=n,h=n.getBody(),O=n.getElement();h&&n.save({is_removing:!0}),n.removed=!0,n.unbindAllNativeEvents(),n.hasHiddenInput&&B(O==null?void 0:O.nextSibling)&&I5.remove(O.nextSibling),K0(n),n.editorManager.remove(n),!n.inline&&h&&PG(n),J0(n),I5.remove(n.getContainer()),Ga(s),Ga(l),n.destroy()}},_G=(n,s)=>{const{selection:l,dom:h}=n;if(!n.destroyed){if(!s&&!n.removed){n.remove();return}s||(n.editorManager.off("beforeunload",n._beforeUnload),n.theme&&n.theme.destroy&&n.theme.destroy(),Ga(l),Ga(h)),c3(n),MG(n),n.destroyed=!0}},u3=(()=>{const n={};return{add:(O,P)=>{n[O]=P},get:O=>n[O]?n[O]:{icons:{}},has:O=>it(n,O)}})(),eh=Pc.ModelManager,df=(n,s)=>s.dom[n],x2=(n,s)=>parseInt(wi(s,n),10),h1=ee(df,"clientWidth"),ap=ee(df,"clientHeight"),f3=ee(x2,"margin-top"),O6=ee(x2,"margin-left"),x6=n=>n.dom.getBoundingClientRect(),TN=(n,s,l)=>{const h=h1(n),O=ap(n);return s>=0&&l>=0&&s<=h&&l<=O},CN=(n,s,l,h)=>{const O=x6(s),P=n?O.left+s.dom.clientLeft+O6(s):0,Z=n?O.top+s.dom.clientTop+f3(s):0,J=l-P,he=h-Z;return{x:J,y:he}},RG=(n,s,l)=>{const h=Yt.fromDom(n.getBody()),O=n.inline?h:dy(h),P=CN(n.inline,O,s,l);return TN(O,P.x,P.y)},DG=n=>G.from(n).map(Yt.fromDom),kN=n=>{const s=n.inline?n.getBody():n.getContentAreaContainer();return DG(s).map(vh).getOr(!1)};var AN=()=>{const n=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:n,close:n,getArgs:n}};const S6=n=>{const s=[],l=()=>{const ot=n.theme;return ot&&ot.getNotificationManagerImpl?ot.getNotificationManagerImpl():AN()},h=()=>G.from(s[0]),O=(ot,Et)=>ot.type===Et.type&&ot.text===Et.text&&!ot.progressBar&&!ot.timeout&&!Et.progressBar&&!Et.timeout,P=()=>{re(s,ot=>{ot.reposition()})},Z=ot=>{s.push(ot)},J=ot=>{Ce(s,Et=>Et===ot).each(Et=>{s.splice(Et,1)})},he=(ot,Et=!0)=>n.removed||!kN(n)?{}:(Et&&n.dispatch("BeforeOpenNotification",{notification:ot}),le(s,Vt=>O(l().getArgs(Vt),ot)).getOrThunk(()=>{n.editorManager.setActive(n);const Vt=l().open(ot,()=>{J(Vt),P(),x9(n)&&h().fold(()=>n.focus(),kt=>AA(Yt.fromDom(kt.getEl())))});return Z(Vt),P(),n.dispatch("OpenNotification",{notification:{...Vt}}),Vt})),_e=()=>{h().each(ot=>{l().close(ot),J(ot),P()})},Ge=ae(s);return(ot=>{ot.on("SkinLoaded",()=>{const Et=dE(ot);Et&&he({text:Et,type:"warning",timeout:0},!1),P()}),ot.on("show ResizeEditor ResizeWindow NodeChange",()=>{requestAnimationFrame(P)}),ot.on("remove",()=>{re(s.slice(),Et=>{l().close(Et)})})})(n),{open:he,close:_e,getNotifications:Ge}},Fb=Pc.PluginManager,kv=Pc.ThemeManager;var Hle=()=>{const n=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:n,openUrl:n,alert:n,confirm:n,close:n}};const PN=n=>{let s=[];const l=()=>{const kt=n.theme;return kt&&kt.getWindowManagerImpl?kt.getWindowManagerImpl():Hle()},h=(kt,It)=>(...cn)=>It?It.apply(kt,cn):void 0,O=kt=>{n.dispatch("OpenWindow",{dialog:kt})},P=kt=>{n.dispatch("CloseWindow",{dialog:kt})},Z=kt=>{s.push(kt),O(kt)},J=kt=>{P(kt),s=se(s,It=>It!==kt),s.length===0&&n.focus()},he=()=>G.from(s[s.length-1]),_e=kt=>{n.editorManager.setActive(n),Kx(n),n.ui.show();const It=kt();return Z(It),It},Ge=(kt,It)=>_e(()=>l().open(kt,It,J)),qe=kt=>_e(()=>l().openUrl(kt,J)),ot=(kt,It,cn)=>{const xn=l();xn.alert(kt,h(cn||xn,It))},Et=(kt,It,cn)=>{const xn=l();xn.confirm(kt,h(cn||xn,It))},Vt=()=>{he().each(kt=>{l().close(kt),J(kt)})};return n.on("remove",()=>{re(s,kt=>{l().close(kt)})}),{open:Ge,openUrl:qe,alert:ot,confirm:Et,close:Vt}},$G=(n,s)=>{n.notificationManager.open({type:"error",text:s})},N5=(n,s)=>{n._skinLoaded?$G(n,s):n.on("SkinLoaded",()=>{$G(n,s)})},LG=(n,s)=>{N5(n,sd.translate(["Failed to upload image: {0}",s]))},gd=(n,s,l)=>{_u(n,s,{message:l}),console.error(l)},B5=(n,s,l)=>l?`Failed to load ${n}: ${l} from url ${s}`:`Failed to load ${n} url: ${s}`,Ule=(n,s,l)=>{gd(n,"PluginLoadError",B5("plugin",s,l))},IG=(n,s,l)=>{gd(n,"IconsLoadError",B5("icons",s,l))},d3=(n,s,l)=>{gd(n,"LanguageLoadError",B5("language",s,l))},NG=(n,s,l)=>{gd(n,"ThemeLoadError",B5("theme",s,l))},MN=(n,s,l)=>{gd(n,"ModelLoadError",B5("model",s,l))},EN=(n,s,l)=>{const h=sd.translate(["Failed to initialize plugin: {0}",s]);_u(n,"PluginLoadError",{message:h}),h3(h,l),N5(n,h)},h3=(n,...s)=>{const l=window.console;l&&(l.error?l.error(n,...s):l.log(n,...s))},BG=n=>/^[a-z0-9\-]+$/i.test(n),w6=n=>"content/"+n+"/content.css",m1=n=>tinymce.Resource.has(w6(n)),QG=n=>_N(n,$w(n)),FG=n=>_N(n,Ek(n)),_N=(n,s)=>{const l=n.editorManager.baseURL+"/skins/content",O=`content${n.editorManager.suffix}.css`;return Ie(s,P=>m1(P)?P:BG(P)&&!n.inline?`${l}/${P}/${O}`:n.documentBaseURI.toAbsolute(P))},VG=n=>{n.contentCSS=n.contentCSS.concat(QG(n),FG(n))},zG=n=>n?tt(n.getElementsByTagName("img")):[],ZG=(n,s)=>{const l={};return{findAll:(O,P=pe)=>{const Z=se(zG(O),he=>{const _e=he.src;return he.hasAttribute("data-mce-bogus")||he.hasAttribute("data-mce-placeholder")||!_e||_e===Dr.transparentSrc?!1:Sr(_e,"blob:")?!n.isUploaded(_e)&&P(he):Sr(_e,"data:")?P(he):!1}),J=Ie(Z,he=>{const _e=he.src;if(it(l,_e))return l[_e].then(Ge=>M(Ge)?Ge:{image:he,blobInfo:Ge.blobInfo});{const Ge=rX(s,_e).then(qe=>(delete l[_e],{image:he,blobInfo:qe})).catch(qe=>(delete l[_e],qe));return l[_e]=Ge,Ge}});return Promise.all(J)}}},RN=()=>{let l={};const h=(ot,Et)=>({status:ot,resultUri:Et}),O=ot=>ot in l;return{hasBlobUri:O,getResultUri:ot=>{const Et=l[ot];return Et?Et.resultUri:null},isPending:ot=>O(ot)?l[ot].status===1:!1,isUploaded:ot=>O(ot)?l[ot].status===2:!1,markPending:ot=>{l[ot]=h(1,null)},markUploaded:(ot,Et)=>{l[ot]=h(2,Et)},removeFailed:ot=>{delete l[ot]},destroy:()=>{l={}}}};let HG=0;const UG=()=>{const n=()=>Math.round(Math.random()*4294967295).toString(36);return"s"+new Date().getTime().toString(36)+n()+n()+n()},WG=n=>n+HG+++UG(),YG=()=>{let n=[];const s=qe=>({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"})[qe.toLowerCase()]||"dat",l=(qe,ot,Et,Vt,kt)=>{if(M(qe))return h({id:qe,name:Vt,filename:kt,blob:ot,base64:Et});if(I(qe))return h(qe);throw new Error("Unknown input type")},h=qe=>{if(!qe.blob||!qe.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const ot=qe.id||WG("blobid"),Et=qe.name||ot,Vt=qe.blob;return{id:ae(ot),name:ae(Et),filename:ae(qe.filename||Et+"."+s(Vt.type)),blob:ae(Vt),base64:ae(qe.base64),blobUri:ae(qe.blobUri||URL.createObjectURL(Vt)),uri:ae(qe.uri)}},O=qe=>{Z(qe.id())||n.push(qe)},P=qe=>le(n,qe).getOrUndefined(),Z=qe=>P(ot=>ot.id()===qe);return{create:l,add:O,get:Z,getByUri:qe=>P(ot=>ot.blobUri()===qe),getByData:(qe,ot)=>P(Et=>Et.base64()===qe&&Et.blob().type===ot),findFirst:P,removeByUri:qe=>{n=se(n,ot=>ot.blobUri()===qe?(URL.revokeObjectURL(ot.blobUri()),!1):!0)},destroy:()=>{re(n,qe=>{URL.revokeObjectURL(qe.blobUri())}),n=[]}}},Wle=(n,s)=>{const l={},h=(kt,It)=>kt?kt.replace(/\/$/,"")+"/"+It.replace(/^\//,""):It,O=(kt,It)=>new Promise((cn,xn)=>{const bn=new XMLHttpRequest;bn.open("POST",s.url),bn.withCredentials=s.credentials,bn.upload.onprogress=rr=>{It(rr.loaded/rr.total*100)},bn.onerror=()=>{xn("Image upload failed due to a XHR Transport error. Code: "+bn.status)},bn.onload=()=>{if(bn.status<200||bn.status>=300){xn("HTTP Error: "+bn.status);return}const rr=JSON.parse(bn.responseText);if(!rr||!M(rr.location)){xn("Invalid JSON: "+bn.responseText);return}cn(h(s.basePath,rr.location))};const $n=new FormData;$n.append("file",kt.blob(),kt.filename()),bn.send($n)}),P=E(s.handler)?s.handler:O,Z=()=>new Promise(kt=>{kt([])}),J=(kt,It)=>({url:It,blobInfo:kt,status:!0}),he=(kt,It)=>({url:"",blobInfo:kt,status:!1,error:It}),_e=(kt,It)=>{fr.each(l[kt],cn=>{cn(It)}),delete l[kt]},Ge=(kt,It,cn)=>(n.markPending(kt.blobUri()),new Promise(xn=>{let bn,$n;try{const rr=()=>{bn&&(bn.close(),$n=ie)},gr=zn=>{rr(),n.markUploaded(kt.blobUri(),zn),_e(kt.blobUri(),J(kt,zn)),xn(J(kt,zn))},Qr=zn=>{rr(),n.removeFailed(kt.blobUri()),_e(kt.blobUri(),he(kt,zn)),xn(he(kt,zn))};$n=zn=>{zn<0||zn>100||G.from(bn).orThunk(()=>G.from(cn).map(Be)).each(Bn=>{bn=Bn,Bn.progressBar.value(zn)})},It(kt,$n).then(gr,zn=>{Qr(M(zn)?{message:zn}:zn)})}catch(rr){xn(he(kt,rr))}})),qe=kt=>kt===O,ot=kt=>{const It=kt.blobUri();return new Promise(cn=>{l[It]=l[It]||[],l[It].push(cn)})},Et=(kt,It)=>(kt=fr.grep(kt,cn=>!n.isUploaded(cn.blobUri())),Promise.all(fr.map(kt,cn=>n.isPending(cn.blobUri())?ot(cn):Ge(cn,P,It))));return{upload:(kt,It)=>!s.url&&qe(P)?Z():Et(kt,It)}},S2=n=>()=>n.notificationManager.open({text:n.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),DN=(n,s)=>Wle(s,{url:iE(n),basePath:lE(n),credentials:_w(n),handler:cE(n)}),T6=n=>{const s=RN(),l=DN(n,s);return{upload:(h,O=!0)=>l.upload(h,O?S2(n):void 0)}},XG=(n,s)=>n.dom.isEmpty(s.dom)&&B(n.schema.getTextBlockElements()[Vs(s)]),GG=n=>s=>{XG(n,s)&&Ci(s,Yt.fromHtml('
    '))},jG=n=>{const s=YG();let l,h;const O=RN(),P=[],Z=bn=>$n=>n.selection?bn($n):[],J=bn=>bn+(bn.indexOf("?")===-1?"?":"&")+new Date().getTime(),he=(bn,$n,rr)=>{let gr=0;do gr=bn.indexOf($n,gr),gr!==-1&&(bn=bn.substring(0,gr)+rr+bn.substr(gr+$n.length),gr+=rr.length-$n.length+1);while(gr!==-1);return bn},_e=(bn,$n,rr)=>{const gr=`src="${rr}"${rr===Dr.transparentSrc?' data-mce-placeholder="1"':""}`;return bn=he(bn,`src="${$n}"`,gr),bn=he(bn,'data-mce-src="'+$n+'"','data-mce-src="'+rr+'"'),bn},Ge=(bn,$n)=>{re(n.undoManager.data,rr=>{rr.type==="fragmented"?rr.fragments=Ie(rr.fragments,gr=>_e(gr,bn,$n)):rr.content=_e(rr.content,bn,$n)})},qe=(bn,$n)=>{const rr=n.convertURL($n,"src");Ge(bn.src,$n),Su(Yt.fromDom(bn),{src:Xy(n)?J($n):$n,"data-mce-src":rr})},ot=()=>(l||(l=DN(n,O)),It().then(Z(bn=>{const $n=Ie(bn,rr=>rr.blobInfo);return l.upload($n,S2(n)).then(Z(rr=>{const gr=[];let Qr=!1;const zn=Ie(rr,(Bn,tr)=>{const{blobInfo:eo,image:po}=bn[tr];let ls=!1;return Bn.status&&Mk(n)?(Bn.url&&!sr(po.src,Bn.url)&&(Qr=!0),s.removeByUri(po.src),Cv(n)||qe(po,Bn.url)):Bn.error&&(Bn.error.remove&&(Ge(po.src,Dr.transparentSrc),gr.push(po),ls=!0),LG(n,Bn.error.message)),{element:po,status:Bn.status,uploadUri:Bn.url,blobInfo:eo,removed:ls}});return gr.length>0&&!Cv(n)?n.undoManager.transact(()=>{re(Wp(gr),Bn=>{const tr=ru(Bn);Ks(Bn),tr.each(GG(n)),s.removeByUri(Bn.dom.src)})}):Qr&&n.undoManager.dispatchChange(),zn}))}))),Et=()=>Pk(n)?ot():Promise.resolve([]),Vt=bn=>Xe(P,$n=>$n(bn)),kt=bn=>{P.push(bn)},It=()=>(h||(h=ZG(O,s)),h.findAll(n.getBody(),Vt).then(Z(bn=>{const $n=se(bn,rr=>M(rr)?(N5(n,rr),!1):rr.uriType!=="blob");return Cv(n)||re($n,rr=>{Ge(rr.image.src,rr.blobInfo.blobUri()),rr.image.src=rr.blobInfo.blobUri(),rr.image.removeAttribute("data-mce-src")}),$n}))),cn=()=>{s.destroy(),O.destroy(),h=l=null},xn=bn=>bn.replace(/src="(blob:[^"]+)"/g,($n,rr)=>{const gr=O.getResultUri(rr);if(gr)return'src="'+gr+'"';let Qr=s.getByUri(rr);return Qr||(Qr=oe(n.editorManager.get(),(zn,Bn)=>zn||Bn.editorUpload&&Bn.editorUpload.blobCache.getByUri(rr),void 0)),Qr?'src="data:'+Qr.blob().type+";base64,"+Qr.base64()+'"':$n});return n.on("SetContent",()=>{Pk(n)?Et():It()}),n.on("RawSaveContent",bn=>{bn.content=xn(bn.content)}),n.on("GetContent",bn=>{bn.source_view||bn.format==="raw"||bn.format==="tree"||(bn.content=xn(bn.content))}),n.on("PostRender",()=>{n.parser.addNodeFilter("img",bn=>{re(bn,$n=>{const rr=$n.attr("src");if(!rr||s.getByUri(rr))return;const gr=O.getResultUri(rr);gr&&$n.attr("src",gr)})})}),{blobCache:s,addFilter:kt,uploadImages:ot,uploadImagesAuto:Et,scanForImages:It,destroy:cn}},qG=n=>{const s=n.dom,l=n.schema.type,h={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:O=>{s.setStyle(O,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:O=>{s.setStyle(O,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const O={inline:"span",styles:{textDecoration:"line-through"},exact:!0},P={inline:"strike",remove:"all",preserve_attributes:["class","style"]},Z={inline:"s",remove:"all",preserve_attributes:["class","style"]};return l!=="html4"?[Z,O,P]:[O,Z,P]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(O,P,Z)=>Xr(O)&&O.hasAttribute("href"),onformat:(O,P,Z)=>{fr.each(Z,(J,he)=>{s.setAttrib(O,he,J)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":O=>{var P;return(P=O==null?void 0:O.customValue)!==null&&P!==void 0?P:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return fr.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),O=>{h[O]={block:O,remove:"all"}}),h},g1={remove_similar:!0,inherit:!1},zh={selector:"td,th",...g1},Q5={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...zh},tablecellverticalalign:{styles:{"vertical-align":"%value"},...zh},tablecellbordercolor:{styles:{borderColor:"%value"},...zh},tablecellclass:{classes:["%value"],...zh},tableclass:{selector:"table",classes:["%value"],...g1},tablecellborderstyle:{styles:{borderStyle:"%value"},...zh},tablecellborderwidth:{styles:{borderWidth:"%value"},...zh}},F5=ae(Q5),Vb=n=>{const s={},l=Z=>B(Z)?s[Z]:s,h=Z=>it(s,Z),O=(Z,J)=>{Z&&(M(Z)?(N(J)||(J=[J]),re(J,he=>{U(he.deep)&&(he.deep=!jl(he)),U(he.split)&&(he.split=!jl(he)||Xi(he)),U(he.remove)&&jl(he)&&!Xi(he)&&(he.remove="none"),jl(he)&&Xi(he)&&(he.mixed=!0,he.block_expand=!0),M(he.classes)&&(he.classes=he.classes.split(/\s+/))}),s[Z]=J):Bt(Z,(he,_e)=>{O(_e,he)}))},P=Z=>(Z&&s[Z]&&delete s[Z],s);return O(qG(n)),O(F5()),O(mE(n)),{get:l,has:h,register:O,unregister:P}},ip=fr.each,hf=Da.DOM,w2=n=>B(n)&&I(n),C6=(n,s)=>{const l=s&&s.schema||Cm({}),h=(he,_e)=>{_e.classes.length>0&&hf.addClass(he,_e.classes.join(" ")),hf.setAttribs(he,_e.attrs)},O=he=>{const _e=M(he)?{name:he,classes:[],attrs:{}}:he,Ge=hf.create(_e.name);return h(Ge,_e),Ge},P=(he,_e)=>{const Ge=l.getElementRule(he.nodeName.toLowerCase()),qe=Ge==null?void 0:Ge.parentsRequired;return qe&&qe.length?_e&&Ze(qe,_e)?_e:qe[0]:!1},Z=(he,_e,Ge)=>{let qe;const ot=_e[0],Et=w2(ot)?ot.name:void 0,Vt=P(he,Et);if(Vt)Et===Vt?(qe=ot,_e=_e.slice(1)):qe=Vt;else if(ot)qe=ot,_e=_e.slice(1);else if(!Ge)return he;const kt=qe?O(qe):hf.create("div");kt.appendChild(he),Ge&&fr.each(Ge,cn=>{const xn=O(cn);kt.insertBefore(xn,he)});const It=w2(qe)?qe.siblings:void 0;return Z(kt,_e,It)},J=hf.create("div");if(n.length>0){const he=n[0],_e=O(he),Ge=w2(he)?he.siblings:void 0;J.appendChild(Z(_e,n.slice(1),Ge))}return J},k6=n=>{n=fr.trim(n);let s="div";const l={name:s,classes:[],attrs:{},selector:n};return n!=="*"&&(s=n.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(h,O,P,Z,J)=>{switch(O){case"#":l.attrs.id=P;break;case".":l.classes.push(P);break;case":":fr.inArray("checked disabled enabled read-only required".split(" "),P)!==-1&&(l.attrs[P]=P);break}if(Z==="["){const he=J.match(/([\w\-]+)(?:\=\"([^\"]+))?/);he&&(l.attrs[he[1]]=he[2])}return""})),l.name=s||"div",l},A6=n=>M(n)?(n=n.split(/\s*,\s*/)[0],n=n.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),fr.map(n.split(/(?:>|\s+(?![^\[\]]+\]))/),s=>{const l=fr.map(s.split(/(?:~\+|~|\+)/),k6),h=l.pop();return l.length&&(h.siblings=l),h}).reverse()):[],$N=(n,s)=>{let l="",h=Dk(n);if(h==="")return"";const O=ot=>M(ot)?ot.replace(/%(\w+)/g,""):"",P=(ot,Et)=>hf.getStyle(Et??n.getBody(),ot,!0);if(M(s)){const ot=n.formatter.get(s);if(!ot)return"";s=ot[0]}if("preview"in s){const ot=s.preview;if(ot===!1)return"";h=ot||h}let Z=s.block||s.inline||"span",J;const he=A6(s.selector);he.length>0?(he[0].name||(he[0].name=Z),Z=s.selector,J=C6(he,n)):J=C6([Z],n);const _e=hf.select(Z,J)[0]||J.firstChild;ip(s.styles,(ot,Et)=>{const Vt=O(ot);Vt&&hf.setStyle(_e,Et,Vt)}),ip(s.attributes,(ot,Et)=>{const Vt=O(ot);Vt&&hf.setAttrib(_e,Et,Vt)}),ip(s.classes,ot=>{const Et=O(ot);hf.hasClass(_e,Et)||hf.addClass(_e,Et)}),n.dispatch("PreviewFormats"),hf.setStyles(J,{position:"absolute",left:-65535}),n.getBody().appendChild(J);const Ge=P("fontSize"),qe=/px$/.test(Ge)?parseInt(Ge,10):0;return ip(h.split(" "),ot=>{let Et=P(ot,_e);if(!(ot==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(Et)&&(Et=P(ot),d0(Et).toLowerCase()==="#ffffff"))&&!(ot==="color"&&d0(Et).toLowerCase()==="#000000")){if(ot==="font-size"&&/em|%$/.test(Et)){if(qe===0)return;Et=parseFloat(Et)/(/%$/.test(Et)?100:1)*qe+"px"}ot==="border"&&Et&&(l+="padding:0 2px;"),l+=ot+":"+Et+";"}}),n.dispatch("AfterPreviewFormats"),hf.remove(J),l},LN=n=>{n.addShortcut("meta+b","","Bold"),n.addShortcut("meta+i","","Italic"),n.addShortcut("meta+u","","Underline");for(let s=1;s<=6;s++)n.addShortcut("access+"+s,"",["FormatBlock",!1,"h"+s]);n.addShortcut("access+7","",["FormatBlock",!1,"p"]),n.addShortcut("access+8","",["FormatBlock",!1,"div"]),n.addShortcut("access+9","",["FormatBlock",!1,"address"])},zb=n=>{const s=Vb(n),l=ni({});return LN(n),DY(n),Cv(n)||UY(l,n),{get:s.get,has:s.has,register:s.register,unregister:s.unregister,apply:(h,O,P)=>{qX(n,h,O,P)},remove:(h,O,P,Z)=>{KX(n,h,O,P,Z)},toggle:(h,O,P)=>{JX(n,h,O,P)},match:(h,O,P,Z)=>lN(n,h,O,P,Z),closest:h=>p6(n,h),matchAll:(h,O)=>cN(n,h,O),matchNode:(h,O,P,Z)=>g6(n,h,O,P,Z),canApply:h=>uN(n,h),formatChanged:(h,O,P,Z)=>Jd(n,l,h,O,P,Z),getCssText:ee($N,n)}},P6=n=>{switch(n.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},IN=(n,s,l)=>{const h=ni(!1),O=he=>{R5(s,!1,l),s.add({},he)};n.on("init",()=>{s.add()}),n.on("BeforeExecCommand",he=>{const _e=he.command;P6(_e)||(nN(s,l),s.beforeChange())}),n.on("ExecCommand",he=>{const _e=he.command;P6(_e)||O(he)}),n.on("ObjectResizeStart cut",()=>{s.beforeChange()}),n.on("SaveContent ObjectResized blur",O),n.on("dragend",O),n.on("keyup",he=>{const _e=he.keyCode;if(he.isDefaultPrevented())return;const Ge=Dr.os.isMacOS()&&he.key==="Meta";(_e>=33&&_e<=36||_e>=37&&_e<=40||_e===45||he.ctrlKey||Ge)&&(O(),n.nodeChanged()),(_e===46||_e===8)&&n.nodeChanged(),h.get()&&s.typing&&!f6(_5(n),s.data[0])&&(n.isDirty()||n.setDirty(!0),n.dispatch("TypingUndo"),h.set(!1),n.nodeChanged())}),n.on("keydown",he=>{const _e=he.keyCode;if(he.isDefaultPrevented())return;if(_e>=33&&_e<=36||_e>=37&&_e<=40||_e===45){s.typing&&O(he);return}const Ge=he.ctrlKey&&!he.altKey||he.metaKey;if((_e<16||_e>20)&&_e!==224&&_e!==91&&!s.typing&&!Ge){s.beforeChange(),R5(s,!0,l),s.add({},he),h.set(!0);return}(Dr.os.isMacOS()?he.metaKey:he.ctrlKey&&!he.altKey)&&s.beforeChange()}),n.on("mousedown",he=>{s.typing&&O(he)});const P=he=>he.inputType==="insertReplacementText",Z=he=>he.inputType==="insertText"&&he.data===null,J=he=>he.inputType==="insertFromPaste"||he.inputType==="insertFromDrop";n.on("input",he=>{he.inputType&&(P(he)||Z(he)||J(he))&&O(he)}),n.on("AddUndo Undo Redo ClearUndos",he=>{he.isDefaultPrevented()||n.nodeChanged()})},NN=n=>{n.addShortcut("meta+z","","Undo"),n.addShortcut("meta+y,meta+shift+z","","Redo")},m3=n=>{const s=_g(),l=ni(0),h=ni(0),O={data:[],typing:!1,beforeChange:()=>{Qle(n,l,s)},add:(P,Z)=>$c(n,O,h,l,s,P,Z),dispatchChange:()=>{n.setDirty(!0);const P=_5(n);P.bookmark=P0(n.selection),n.dispatch("change",{level:P,lastLevel:et(O.data,h.get()).getOrUndefined()})},undo:()=>sN(n,O,l,h),redo:()=>aN(n,h,O.data),clear:()=>{iN(n,O,h)},reset:()=>{YX(n,O)},hasUndo:()=>XX(n,O,h),hasRedo:()=>D5(n,O,h),transact:P=>GX(n,O,l,P),ignore:P=>{m6(n,l,P)},extra:(P,Z)=>{jX(n,O,h,P,Z)}};return Cv(n)||IN(n,O,l),NN(n),O},BN=[9,27,Wr.HOME,Wr.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Wr.DOWN,Wr.UP,Wr.LEFT,Wr.RIGHT].concat(Dr.browser.isFirefox()?[224]:[]),M6="data-mce-placeholder",E6=n=>n.type==="keydown"||n.type==="keyup",_6=n=>{const s=n.keyCode;return s===Wr.BACKSPACE||s===Wr.DELETE},Av=n=>{if(E6(n)){const s=n.keyCode;return!_6(n)&&(Wr.metaKeyPressed(n)||n.altKey||s>=112&&s<=123||Ze(BN,s))}else return!1},p1=n=>E6(n)&&!(_6(n)||n.type==="keyup"&&n.keyCode===229),Zh=(n,s,l)=>{if(ta(Yt.fromDom(s),!1)){const h=s.firstElementChild;return h?n.getStyle(s.firstElementChild,"padding-left")||n.getStyle(s.firstElementChild,"padding-right")?!1:l===h.nodeName.toLowerCase():!0}else return!1},KG=n=>{var s;const l=n.dom,h=Ec(n),O=(s=n9(n))!==null&&s!==void 0?s:"",P=(Z,J)=>{if(Av(Z))return;const he=n.getBody(),_e=p1(Z)?!1:Zh(l,he,h);(l.getAttrib(he,M6)!==""!==_e||J)&&(l.setAttrib(he,M6,_e?O:null),l.setAttrib(he,"aria-placeholder",_e?O:null),e_(n,_e),n.on(_e?"keydown":"keyup",P),n.off(_e?"keyup":"keydown",P))};St(O)&&n.on("init",Z=>{P(Z,!0),n.on("change SetContent ExecCommand",P),n.on("paste",J=>fd.setEditorTimeout(n,()=>P(J)))})},JG=(n,s)=>({block:n,position:s}),ej=(n,s)=>({from:n,to:s}),R6=(n,s)=>{const l=Yt.fromDom(n),h=Yt.fromDom(s.container());return LT(l,h).map(O=>JG(O,s))},tj=n=>!Gs(n.from.block,n.to.block),QN=(n,s)=>wu(s,O=>Hc(O)||Zl(O.dom),O=>Gs(O,n)).filter(kl).getOr(n),nj=(n,s)=>{const l=Yt.fromDom(n);return Gs(QN(l,s.from.block),QN(l,s.to.block))},rj=n=>Os(n.from.block.dom)===!1&&Os(n.to.block.dom)===!1,oj=n=>{const s=l=>Mn(l)||ZO(l.dom);return s(n.from.block)&&s(n.to.block)},sj=(n,s,l)=>aa(l.position.getNode())&&!ta(l.block)?U0(!1,l.block.dom).bind(h=>h.isEqual(l.position)?Rl(s,n,h).bind(O=>R6(n,O)):G.some(l)).getOr(l):l,aj=(n,s,l)=>{const h=R6(n,Nn.fromRangeStart(l)),O=h.bind(P=>Rl(s,n,P.position).bind(Z=>R6(n,Z).map(J=>sj(n,s,J))));return Fa(h,O,ej).filter(P=>tj(P)&&nj(n,P)&&rj(P)&&oj(P))},ij=(n,s,l)=>l.collapsed?aj(n,s,l):G.none(),D6=(n,s)=>{const l=ol(n);return Ce(l,h=>s.isBlock(Vs(h))).fold(ae(l),h=>l.slice(0,h))},V5=(n,s)=>{const l=D6(n,s);return re(l,Ks),l},$6=(n,s)=>{const l=qg(s,n);return le(l.reverse(),h=>ta(h)).each(Ks)},lj=n=>se(my(n),s=>!ta(s)).length===0,cj=(n,s,l,h,O)=>{if(ta(l))return D(l),Xc(l.dom);lj(O)&&ta(s)&&Ui(O,Yt.fromTag("br"));const P=uu(l.dom,Nn.before(O.dom));return re(V5(s,h),Z=>{Ui(O,Z)}),$6(n,s),P},FN=(n,s)=>n.isInline(Vs(s)),VN=(n,s,l,h)=>{if(ta(l)){if(ta(s)){const Z=ue((J=>{const he=(_e,Ge)=>bg(_e).fold(()=>Ge,qe=>FN(h,qe)?he(qe,Ge.concat(Pu(qe))):Ge);return he(J,[])})(l),(J,he)=>(xg(J,he),he),Cc());bh(s),Ci(s,Z)}return Ks(l),Xc(s.dom)}const O=ld(l.dom);return re(V5(s,h),P=>{Ci(l,P)}),$6(n,s),O},L6=(n,s)=>{const l=qg(s,n);return G.from(l[l.length-1])},zN=(n,s)=>tc(s,n)?L6(s,n):G.none(),I6=(n,s)=>{U0(n,s.dom).bind(l=>G.from(l.getNode())).map(Yt.fromDom).filter(ed).each(Ks)},z5=(n,s,l,h)=>(I6(!0,s),I6(!1,l),zN(s,l).fold(ee(VN,n,s,l,h),ee(cj,n,s,l,h))),ZN=(n,s,l,h,O)=>s?z5(n,h,l,O):z5(n,l,h,O),N6=(n,s)=>{const l=Yt.fromDom(n.getBody());return ij(l.dom,s,n.selection.getRng()).map(O=>()=>{ZN(l,s,O.from.block,O.to.block,n.schema).each(P=>{n.selection.setRng(P.toRange())})})},lp=(n,s,l)=>{const h=s.getRng();return Fa(LT(n,Yt.fromDom(h.startContainer)),LT(n,Yt.fromDom(h.endContainer)),(O,P)=>Gs(O,P)?G.none():G.some(()=>{h.deleteContents(),ZN(n,!0,O,P,l).each(Z=>{s.setRng(Z.toRange())})})).getOr(G.none())},th=(n,s)=>{const l=Yt.fromDom(s),h=ee(Gs,n);return ui(l,Hc,h).isSome()},Z5=(n,s)=>th(n,s.startContainer)||th(n,s.endContainer),HN=(n,s)=>{const l=uu(n.dom,Nn.fromRangeStart(s)).isNone(),h=Rc(n.dom,Nn.fromRangeEnd(s)).isNone();return!Z5(n,s)&&l&&h},H5=n=>G.some(()=>{n.setContent(""),n.selection.setCursorLocation()}),UN=n=>{const s=Yt.fromDom(n.getBody()),l=n.selection.getRng();return HN(s,l)?H5(n):lp(s,n.selection,n.schema)},U5=(n,s)=>n.selection.isCollapsed()?G.none():UN(n),cp=(n,s,l,h,O)=>G.from(s._selectionOverrides.showCaret(n,l,h,O)),WN=n=>{const s=n.ownerDocument.createRange();return s.selectNode(n),s},T2=(n,s)=>n.dispatch("BeforeObjectSelected",{target:s}).isDefaultPrevented()?G.none():G.some(WN(s)),YN=(n,s,l)=>{const h=Jw(1,n.getBody(),s),O=Nn.fromRangeStart(h),P=O.getNode();if(Cx(P))return cp(1,n,P,!O.isAtEnd(),!1);const Z=O.getNode(!0);if(Cx(Z))return cp(1,n,Z,!1,!1);const J=Lb(n.dom.getRoot(),O.getNode());return Cx(J)?cp(1,n,J,!1,l):G.none()},C2=(n,s,l)=>s.collapsed?YN(n,s,l).getOr(s):s,B6=n=>bv(n)||MT(n),uj=n=>Vm(n)||Jx(n),fj=(n,s)=>{lr(s)&&s.data.length===0&&n.remove(s)},XN=(n,s,l,h,O,P)=>{cp(h,n,P.getNode(!O),O,!0).each(Z=>{if(s.collapsed){const J=s.cloneRange();O?J.setEnd(Z.startContainer,Z.startOffset):J.setStart(Z.endContainer,Z.endOffset),J.deleteContents()}else s.deleteContents();n.selection.setRng(Z)}),fj(n.dom,l)},dj=(n,s)=>{const l=n.selection.getRng();if(!lr(l.commonAncestorContainer))return G.none();const h=s?Pi.Forwards:Pi.Backwards,O=Ud(n.getBody()),P=ee(Jk,s?O.next:O.prev),Z=s?B6:uj,J=zg(h,n.getBody(),l),he=P(J),_e=he&&Ds(s,he);if(!_e||!eT(J,_e))return G.none();if(Z(_e))return G.some(()=>XN(n,l,J.getNode(),h,s,_e));const Ge=P(_e);return Ge&&Z(Ge)&&eT(_e,Ge)?G.some(()=>XN(n,l,J.getNode(),h,s,Ge)):G.none()},W5=(n,s)=>dj(n,s),Q6=(n,s)=>{const l=n.getBody();return s?Xc(l).filter(bv):ld(l).filter(Vm)},F6=n=>{const s=n.selection.getRng();return!s.collapsed&&(Q6(n,!0).exists(l=>l.isEqual(Nn.fromRangeStart(s)))||Q6(n,!1).exists(l=>l.isEqual(Nn.fromRangeEnd(s))))},V6=n=>B(n)&&(Hc(Yt.fromDom(n))||td(Yt.fromDom(n))),pd=Zd.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),hj=(n,s)=>{const l=s.getNode(!n),h=n?"after":"before";return Xr(l)&&l.getAttribute("data-mce-caret")===h},mj=(n,s,l,h,O)=>{const P=Z=>O.isInline(Z.nodeName.toLowerCase())&&!Hd(l,h,n);return Kk(!s,l).fold(()=>Kk(s,h).fold(ne,P),P)},GN=(n,s,l,h)=>{const O=h.getNode(!s);return LT(Yt.fromDom(n),Yt.fromDom(l.getNode())).map(P=>ta(P)?pd.remove(P.dom):pd.moveToElement(O)).orThunk(()=>G.some(pd.moveToElement(O)))},jN=(n,s,l,h)=>Rl(s,n,l).bind(O=>V6(O.getNode())||mj(n,s,l,O,h)?G.none():s&&Os(O.getNode())||!s&&Os(O.getNode(!0))?GN(n,s,l,O):s&&Vm(l)||!s&&bv(l)?G.some(pd.moveToPosition(O)):G.none()),gj=(n,s)=>Q(s)?G.none():n&&Os(s.nextSibling)?G.some(pd.moveToElement(s.nextSibling)):!n&&Os(s.previousSibling)?G.some(pd.moveToElement(s.previousSibling)):G.none(),pj=(n,s,l)=>l.fold(h=>G.some(pd.remove(h)),h=>G.some(pd.moveToElement(h)),h=>Hd(s,h,n)?G.none():G.some(pd.moveToPosition(h))),Y5=(n,s,l,h)=>hj(s,l)?gj(s,l.getNode(!s)).orThunk(()=>jN(n,s,l,h)):jN(n,s,l,h).bind(O=>pj(n,l,O)),z6=(n,s,l,h)=>{const O=Jw(s?1:-1,n,l),P=Nn.fromRangeStart(O),Z=Yt.fromDom(n);return!s&&Vm(P)?G.some(pd.remove(P.getNode(!0))):s&&bv(P)?G.some(pd.remove(P.getNode())):!s&&bv(P)&&_T(Z,P,h)?FW(Z,P,h).map(J=>pd.remove(J.getNode())):s&&Vm(P)&&ET(Z,P,h)?VW(Z,P,h).map(J=>pd.remove(J.getNode())):Y5(n,s,P,h)},vj=(n,s)=>l=>(n._selectionOverrides.hideFakeCaret(),xv(n,s,Yt.fromDom(l)),!0),yj=(n,s)=>l=>{const h=s?Nn.before(l):Nn.after(l);return n.selection.setRng(h.toRange()),!0},bj=n=>s=>(n.selection.setRng(s.toRange()),!0),qN=(n,s)=>G.from(Lb(n.getBody(),s)),KN=(n,s)=>{const l=n.selection.getNode();return qN(n,l).filter(Os).fold(()=>z6(n.getBody(),s,n.selection.getRng(),n.schema).map(h=>()=>h.fold(vj(n,s),yj(n,s),bj(n))),()=>G.some(ie))},Oj=n=>{re(sl(n,".mce-offscreen-selection"),Ks)},xj=(n,s)=>{const l=n.selection.getNode();return Os(l)&&!jp(l)?qN(n,l.parentNode).filter(Os).fold(()=>G.some(()=>{Oj(Yt.fromDom(n.getBody())),xv(n,s,Yt.fromDom(n.selection.getNode())),UA(n)}),()=>G.some(ie)):F6(n)?G.some(()=>{IT(n,n.selection.getRng(),Yt.fromDom(n.getBody()))}):G.none()},X5=n=>{const s=n.dom,l=n.selection,h=Lb(n.getBody(),l.getNode());if(Zl(h)&&s.isBlock(h)&&s.isEmpty(h)){const O=s.create("br",{"data-mce-bogus":"1"});s.setHTML(h,""),h.appendChild(O),l.setRng(Nn.before(O).toRange())}return!0},Z6=(n,s)=>n.selection.isCollapsed()?KN(n,s):xj(n,s),Sj=(n,s)=>{const l=Nn.fromRangeStart(n.selection.getRng());return Rl(s,n.getBody(),l).filter(h=>s?$W(h):LW(h)).bind(h=>rb(s?0:-1,h)).map(h=>()=>n.selection.select(h))},H6=(n,s)=>n.selection.isCollapsed()?Sj(n,s):G.none(),k2=lr,JN=n=>k2(n)&&n.data[0]===de,eB=n=>k2(n)&&n.data[n.data.length-1]===de,tB=n=>{var s;return((s=n.ownerDocument)!==null&&s!==void 0?s:document).createTextNode(de)},G5=n=>{var s;if(k2(n.previousSibling))return eB(n.previousSibling)||n.previousSibling.appendData(de),n.previousSibling;if(k2(n))return JN(n)||n.insertData(0,de),n;{const l=tB(n);return(s=n.parentNode)===null||s===void 0||s.insertBefore(l,n),l}},j5=n=>{var s,l;if(k2(n.nextSibling))return JN(n.nextSibling)||n.nextSibling.insertData(0,de),n.nextSibling;if(k2(n))return eB(n)||n.appendData(de),n;{const h=tB(n);return n.nextSibling?(s=n.parentNode)===null||s===void 0||s.insertBefore(h,n.nextSibling):(l=n.parentNode)===null||l===void 0||l.appendChild(h),h}},q5=(n,s)=>n?G5(s):j5(s),wj=ee(q5,!0),K5=ee(q5,!1),nB=(n,s)=>lr(n.container())?q5(s,n.container()):q5(s,n.getNode()),rB=(n,s)=>{const l=s.get();return l&&n.container()===l&&vt(l)},U6=(n,s)=>s.fold(l=>{hl(n.get());const h=wj(l);return n.set(h),G.some(Nn(h,h.length-1))},l=>Xc(l).map(h=>{if(rB(h,n)){const O=n.get();return Nn(O,1)}else{hl(n.get());const O=nB(h,!0);return n.set(O),Nn(O,1)}}),l=>ld(l).map(h=>{if(rB(h,n)){const O=n.get();return Nn(O,O.length-1)}else{hl(n.get());const O=nB(h,!1);return n.set(O),Nn(O,O.length-1)}}),l=>{hl(n.get());const h=K5(l);return n.set(h),G.some(Nn(h,1))}),oB=(n,s)=>{for(let l=0;l{const l=_m(s,n);return l||n},Tj=(n,s,l)=>{const h=Db(l),O=sB(s,h.container());return Ih(n,O,h).fold(()=>Rc(O,h).bind(ee(Ih,n,O)).map(P=>Du.before(P)),G.none)},Cj=(n,s)=>fv(n,s)===null,aB=(n,s,l)=>Ih(n,s,l).filter(ee(Cj,s)),kj=(n,s,l)=>{const h=DT(l);return aB(n,s,h).bind(O=>uu(O,h).isNone()?G.some(Du.start(O)):G.none())},Aj=(n,s,l)=>{const h=Db(l);return aB(n,s,h).bind(O=>Rc(O,h).isNone()?G.some(Du.end(O)):G.none())},Yle=(n,s,l)=>{const h=DT(l),O=sB(s,h.container());return Ih(n,O,h).fold(()=>uu(O,h).bind(ee(Ih,n,O)).map(P=>Du.after(P)),G.none)},nh=n=>!oL(J5(n)),Hh=(n,s,l)=>oB([Tj,kj,Aj,Yle],[n,s,l]).filter(nh),J5=n=>n.fold(q,q,q,q),W6=n=>n.fold(ae("before"),ae("start"),ae("end"),ae("after")),e4=n=>n.fold(Du.before,Du.before,Du.after,Du.after),t4=n=>n.fold(Du.start,Du.start,Du.end,Du.end),Pj=(n,s)=>W6(n)===W6(s)&&J5(n)===J5(s),iB=(n,s,l,h,O,P)=>Fa(Ih(s,l,h),Ih(s,l,O),(Z,J)=>Z!==J&&Nh(l,Z,J)?Du.after(n?Z:J):P).getOr(P),Mj=(n,s)=>n.fold(pe,l=>!Pj(l,s)),Ej=(n,s,l,h,O)=>{const P=Ds(n,O);return Rl(n,l,P).map(ee(Ds,n)).fold(()=>h.map(e4),he=>Hh(s,l,he).map(ee(iB,n,s,l,P,he)).filter(ee(Mj,h))).filter(nh)},_j=(n,s)=>n?s.fold(L(G.some,Du.start),G.none,L(G.some,Du.after),G.none):s.fold(G.none,L(G.some,Du.before),G.none,L(G.some,Du.end)),A2=(n,s,l,h)=>{const O=Ds(n,h),P=Hh(s,l,O);return Hh(s,l,O).bind(ee(_j,n)).orThunk(()=>Ej(n,s,l,P,h))},lB=n=>E(n.selection.getSel().modify),Y6=(n,s,l)=>{const h=n?1:-1;return s.setRng(Nn(l.container(),l.offset()+h).toRange()),s.getSel().modify("move",n?"forward":"backward","word"),!0},cB=(n,s)=>{const l=s.selection.getRng(),h=n?Nn.fromRangeEnd(l):Nn.fromRangeStart(l);return lB(s)?n&&gn(h)?Y6(!0,s.selection,h):!n&&An(h)?Y6(!1,s.selection,h):!1:!1};var Uh;(function(n){n[n.Br=0]="Br",n[n.Block=1]="Block",n[n.Wrap=2]="Wrap",n[n.Eol=3]="Eol"})(Uh||(Uh={}));const n4=(n,s)=>n===Pi.Backwards?ct(s):s,Rj=(n,s,l)=>n===Pi.Forwards?s.next(l):s.prev(l),Dj=(n,s,l,h)=>aa(h.getNode(s===Pi.Forwards))?Uh.Br:Hd(l,h)===!1?Uh.Block:Uh.Wrap,$j=(n,s,l,h)=>{const O=Ud(l);let P=h;const Z=[];for(;P;){const J=Rj(s,O,P);if(!J)break;if(aa(J.getNode(!1)))return s===Pi.Forwards?{positions:n4(s,Z).concat([J]),breakType:Uh.Br,breakAt:G.some(J)}:{positions:n4(s,Z),breakType:Uh.Br,breakAt:G.some(J)};if(!J.isVisible()){P=J;continue}if(n(P,J)){const he=Dj(l,s,P,J);return{positions:n4(s,Z),breakType:he,breakAt:G.some(J)}}Z.push(J),P=J}return{positions:n4(s,Z),breakType:Uh.Eol,breakAt:G.none()}},Lj=(n,s,l,h)=>s(l,h).breakAt.map(O=>{const P=s(l,O).positions;return n===Pi.Backwards?P.concat(O):[O].concat(P)}).getOr([]),uB=(n,s)=>oe(n,(l,h)=>l.fold(()=>G.some(h),O=>Fa(yt(O.getClientRects()),yt(h.getClientRects()),(P,Z)=>{const J=Math.abs(s-P.left);return Math.abs(s-Z.left)<=J?h:O}).or(l)),G.none()),Ff=(n,s)=>yt(s.getClientRects()).bind(l=>uB(n,l.left)),g3=ee($j,Nn.isAbove,-1),p3=ee($j,Nn.isBelow,1),v1=ee(Lj,-1,g3),X6=ee(Lj,1,p3),fB=(n,s)=>g3(n,s).breakAt.isNone(),v3=(n,s)=>p3(n,s).breakAt.isNone(),Ij=n=>Xc(n).map(s=>[s].concat(p3(n,s).positions)).getOr([]),Nj=n=>ld(n).map(s=>g3(n,s).positions.concat(s)).getOr([]),Bj=(n,s)=>Ff(v1(n,s),s),Qj=(n,s)=>Ff(X6(n,s),s),Fj=Os,dB=(n,s)=>Math.abs(n.left-s),up=(n,s)=>Math.abs(n.right-s),Vj=n=>ut(n,"node"),hB=(n,s)=>dn(n,(l,h)=>{const O=Math.min(dB(l,s),up(l,s)),P=Math.min(dB(h,s),up(h,s));return P===O&&Vj(h)&&Fj(h.node)||P{const s=l=>Ie(l,h=>{const O=ov(h);return O.node=n,O});if(Xr(n))return s(n.getClientRects());if(lr(n)){const l=n.ownerDocument.createRange();return l.setStart(n,0),l.setEnd(n,n.data.length),s(l.getClientRects())}else return[]},mB=n=>ze(n,zj);var y3;(function(n){n[n.Up=-1]="Up",n[n.Down=1]="Down"})(y3||(y3={}));const G6=(n,s,l,h)=>{let O=h;for(;O=Q0(O,n,ms,s);)if(l(O))return},r4=(n,s,l,h,O,P)=>{let Z=0;const J=[],he=qe=>{let ot=mB([qe]);n===-1&&(ot=ot.reverse());for(let Et=0;Et0&&s(Vt,Wt(J))&&Z++,Vt.line=Z,O(Vt))return!0;J.push(Vt)}}return!1},_e=Wt(P.getClientRects());if(!_e)return J;const Ge=P.getNode();return Ge&&(he(Ge),G6(n,h,he,Ge)),J},j6=(n,s)=>s.line>n,gB=(n,s)=>s.line===n,pB=ee(r4,y3.Up,Dg,av),vB=ee(r4,y3.Down,av,Dg),yB=n=>Wt(n.getClientRects()),b3=(n,s,l,h)=>{const O=Ud(s);let P,Z,J,he;const _e=[];let Ge=0;n===1?(P=O.next,Z=av,J=Dg,he=Nn.after(h)):(P=O.prev,Z=Dg,J=av,he=Nn.before(h));const qe=yB(he);do{if(!he.isVisible())continue;const ot=yB(he);if(J(ot,qe))continue;_e.length>0&&Z(ot,Wt(_e))&&Ge++;const Et=ov(ot);if(Et.position=he,Et.line=Ge,l(Et))return _e;_e.push(Et)}while(he=P(he));return _e},O3=n=>s=>j6(n,s),o4=n=>s=>gB(n,s),fp=(n,s)=>{n.selection.setRng(s),Ab(n,n.selection.getRng())},s4=(n,s,l)=>G.some(C2(n,s,l)),q6=(n,s,l,h,O,P)=>{const Z=s===Pi.Forwards,J=Ud(n.getBody()),he=ee(Jk,Z?J.next:J.prev),_e=Z?h:O;if(!l.collapsed){const Vt=uw(l);if(P(Vt))return cp(s,n,Vt,s===Pi.Backwards,!1);if(F6(n)){const kt=l.cloneRange();return kt.collapse(s===Pi.Backwards),G.from(kt)}}const Ge=zg(s,n.getBody(),l);if(_e(Ge))return T2(n,Ge.getNode(!Z));let qe=he(Ge);const ot=yn(l);if(qe)qe=Ds(Z,qe);else return ot?G.some(l):G.none();if(_e(qe))return cp(s,n,qe.getNode(!Z),Z,!1);const Et=he(qe);return Et&&_e(Et)&&eT(qe,Et)?cp(s,n,Et.getNode(!Z),Z,!1):ot?s4(n,qe.toRange(),!1):G.none()},x3=(n,s,l,h,O,P)=>{const Z=zg(s,n.getBody(),l),J=Wt(Z.getClientRects()),he=s===y3.Down,_e=n.getBody();if(!J)return G.none();if(F6(n)){const It=he?Nn.fromRangeEnd(l):Nn.fromRangeStart(l);return(he?Qj:Bj)(_e,It).orThunk(()=>G.from(It)).map(xn=>xn.toRange())}const qe=(he?vB:pB)(_e,O3(1),Z),ot=se(qe,o4(1)),Et=J.left,Vt=hB(ot,Et);if(Vt&&P(Vt.node)){const It=Math.abs(Et-Vt.left),cn=Math.abs(Et-Vt.right);return cp(s,n,Vt.node,ItC2(n,It.toRange(),!1)):G.none()},S3=(n,s)=>{const l=n.selection.getRng(),h=s?Nn.fromRangeEnd(l):Nn.fromRangeStart(l),O=qw(h.container(),n.getBody());if(s){const P=p3(O,h);return ft(P.positions)}else{const P=g3(O,h);return yt(P.positions)}},P2=(n,s,l)=>S3(n,s).filter(l).exists(h=>(n.selection.setRng(h.toRange()),!0)),a4=(n,s)=>{const l=n.dom.createRng();l.setStart(s.container(),s.offset()),l.setEnd(s.container(),s.offset()),n.selection.setRng(l)},K6=(n,s)=>{n?s.setAttribute("data-mce-selected","inline-boundary"):s.removeAttribute("data-mce-selected")},bB=(n,s,l)=>U6(s,l).map(h=>(a4(n,h),l)),Zj=(n,s,l)=>{const h=Nn.fromRangeStart(n);if(n.collapsed)return h;{const O=Nn.fromRangeEnd(n);return l?uu(s,O).getOr(O):Rc(s,h).getOr(h)}},OB=(n,s,l)=>{const h=n.getBody(),O=Zj(n.selection.getRng(),h,l),P=ee(Rb,n);return A2(l,P,h,O).bind(J=>bB(n,s,J))},Hj=(n,s,l)=>{const h=Ie(sl(Yt.fromDom(s.getRoot()),'*[data-mce-selected="inline-boundary"]'),Z=>Z.dom),O=se(h,n),P=se(l,n);re(pt(O,P),ee(K6,!1)),re(pt(P,O),ee(K6,!0))},xB=(n,s)=>{const l=s.get();if(n.selection.isCollapsed()&&!n.composing&&l){const h=Nn.fromRangeStart(n.selection.getRng());Nn.isTextPosition(h)&&!aY(h)&&(a4(n,Yk(l,h)),s.set(null))}},Xle=(n,s,l,h)=>{if(s.selection.isCollapsed()){const O=se(h,n);re(O,P=>{const Z=Nn.fromRangeStart(s.selection.getRng());Hh(n,s.getBody(),Z).bind(J=>bB(s,l,J))})}},SB=(n,s,l)=>lv(n)?OB(n,s,l).isSome():!1,wB=(n,s,l)=>lv(s)?cB(n,s):!1,Uj=n=>{const s=ni(null),l=ee(Rb,n);return n.on("NodeChange",h=>{lv(n)&&(Hj(l,n.dom,h.parents),xB(n,s),Xle(l,n,s,h.parents))}),s},Wj=ee(wB,!0),Yj=ee(wB,!1),i4=(n,s,l)=>{if(lv(n)){const h=S3(n,s).getOrThunk(()=>{const O=n.selection.getRng();return s?Nn.fromRangeEnd(O):Nn.fromRangeStart(O)});return Hh(ee(Rb,n),n.getBody(),h).exists(O=>{const P=e4(O);return U6(l,P).exists(Z=>(a4(n,Z),!0))})}else return!1},Xj=(n,s)=>{const l=document.createRange();return l.setStart(n.container(),n.offset()),l.setEnd(s.container(),s.offset()),l},Gj=n=>Fa(Xc(n),ld(n),(s,l)=>{const h=Ds(!0,s),O=Ds(!1,l);return Rc(n,h).forall(P=>P.isEqual(O))}).getOr(!0),J6=(n,s)=>l=>U6(s,l).map(h=>()=>a4(n,h)),TB=(n,s,l,h)=>{const O=n.getBody(),P=ee(Rb,n);n.undoManager.ignore(()=>{n.selection.setRng(Xj(l,h)),$T(n),Hh(P,O,Nn.fromRangeStart(n.selection.getRng())).map(t4).bind(J6(n,s)).each(ge)}),n.nodeChanged()},Zb=(n,s)=>{const l=_m(s,n);return l||n},CB=(n,s,l,h)=>{const O=Zb(n.getBody(),h.container()),P=ee(Rb,n),Z=Hh(P,O,h);return Z.bind(he=>l?he.fold(ae(G.some(t4(he))),G.none,ae(G.some(e4(he))),G.none):he.fold(G.none,ae(G.some(e4(he))),G.none,ae(G.some(t4(he))))).map(J6(n,s)).getOrThunk(()=>{const he=Dm(l,O,h),_e=he.bind(Ge=>Hh(P,O,Ge));return Fa(Z,_e,()=>Ih(P,O,h).bind(Ge=>Gj(Ge)?G.some(()=>{xv(n,l,Yt.fromDom(Ge))}):G.none())).getOrThunk(()=>_e.bind(()=>he.map(Ge=>()=>{l?TB(n,s,h,Ge):TB(n,s,Ge,h)})))})},w3=(n,s,l)=>{if(n.selection.isCollapsed()&&lv(n)){const h=Nn.fromRangeStart(n.selection.getRng());return CB(n,s,l,h)}return G.none()},kB=n=>Pl(n)>1,l4=(n,s)=>{const l=Yt.fromDom(n.getBody()),h=Yt.fromDom(n.selection.getStart()),O=qg(h,l);return Ce(O,s).fold(ae(O),P=>O.slice(0,P))},y1=n=>Pl(n)===1,AB=n=>l4(n,s=>n.schema.isBlock(Vs(s))||kB(s)),rh=n=>l4(n,s=>n.schema.isBlock(Vs(s))),b1=(n,s)=>{const l=ee(ep,n);return ze(s,h=>l(h)?[h.dom]:[])},c4=n=>{const s=rh(n);return b1(n,s)},jj=(n,s,l,h)=>{const O=b1(s,h);if(O.length===0)xv(s,n,l);else{const P=UL(l.dom,O);s.selection.setRng(P.toRange())}},PB=(n,s)=>{const l=se(AB(n),y1);return ft(l).bind(h=>{const O=Nn.fromRangeStart(n.selection.getRng());return WA(s,O,h.dom)&&!pb(h)?G.some(()=>jj(s,n,h,l)):G.none()})},qj=(n,s)=>{const l=s.parentElement;return aa(s)&&!F(l)&&n.dom.isEmpty(l)},Kj=n=>pb(Yt.fromDom(n)),MB=(n,s)=>{const l=n.selection.getStart(),h=qj(n,l)||Kj(l)?UL(l,s):u5(n.selection.getRng(),s);n.selection.setRng(h.toRange())},Jj=(n,s)=>{const l=pt(s,c4(n));l.length>0&&MB(n,l)},EB=n=>lr(n.startContainer),_B=n=>n.startOffset===0&&EB(n),eq=(n,s)=>{const l=s.startContainer.parentElement;return!F(l)&&ep(n,Yt.fromDom(l))},tq=n=>{const s=n.startContainer.parentNode,l=n.endContainer.parentNode;return!F(s)&&!F(l)&&s.isEqualNode(l)},M2=n=>{const s=n.endContainer;return n.endOffset===(lr(s)?s.length:s.childNodes.length)},e7=n=>tq(n)&&M2(n),RB=n=>!n.endContainer.isEqualNode(n.commonAncestorContainer),DB=n=>e7(n)||RB(n),t7=n=>{const s=n.selection.getRng();return _B(s)&&eq(n,s)&&DB(s)},nq=n=>{if(t7(n)){const s=c4(n);return G.some(()=>{$T(n),Jj(n,s)})}else return G.none()},n7=(n,s)=>n.selection.isCollapsed()?PB(n,s):nq(n),rq=(n,s)=>cY(n,l=>sf(l.dom),l=>s.isBlock(Vs(l))),oq=n=>rq(Yt.fromDom(n.selection.getStart()),n.schema),sq=n=>{const s=n.selection.getRng();return s.collapsed&&(EB(s)||n.dom.isEmpty(s.startContainer))&&!oq(n)},T3=n=>(sq(n)&&MB(n,[]),!0),r7=(n,s,l)=>B(l)?G.some(()=>{n._selectionOverrides.hideFakeCaret(),xv(n,s,Yt.fromDom(l))}):G.none(),$B=(n,s)=>{const l=s?MT:Jx,h=s?Pi.Forwards:Pi.Backwards,O=zg(h,n.getBody(),n.selection.getRng());return l(O)?r7(n,s,O.getNode(!s)):G.from(Ds(s,O)).filter(P=>l(P)&&eT(O,P)).bind(P=>r7(n,s,P.getNode(!s)))},aq=(n,s)=>{const l=n.selection.getNode();return ei(l)?r7(n,s,l):G.none()},o7=(n,s)=>n.selection.isCollapsed()?$B(n,s):aq(n,s),vd=n=>wu(n,s=>Zl(s.dom)||Os(s.dom)).exists(s=>Zl(s.dom)),s7=n=>Ft(n??"").getOr(0),u4=(n,s)=>{const l=n||wc(s)?"margin":"padding",h=wi(s,"direction")==="rtl"?"-right":"-left";return l+h},LB=(n,s,l,h,O,P)=>{const Z=u4(l,Yt.fromDom(P)),J=s7(n.getStyle(P,Z));if(s==="outdent"){const he=Math.max(0,J-h);n.setStyle(P,Z,he?he+O:"")}else{const he=J+h+O;n.setStyle(P,Z,he)}},a7=(n,s)=>Xe(s,l=>{const h=u4(vx(n),l),O=Hi(l,h).map(s7).getOr(0);return n.dom.getContentEditable(l.dom)!=="false"&&O>0}),IB=n=>{const s=BB(n);return!n.mode.isReadOnly()&&(s.length>1||a7(n,s))},NB=n=>Tc(n)||td(n),iq=n=>ru(n).exists(NB),BB=n=>se(Wp(n.selection.getSelectedBlocks()),s=>!NB(s)&&!iq(s)&&vd(s)),QB=(n,s)=>{var l,h;const{dom:O}=n,P=Dw(n),Z=(h=(l=/[a-z%]+$/i.exec(P))===null||l===void 0?void 0:l[0])!==null&&h!==void 0?h:"px",J=s7(P),he=vx(n);re(BB(n),_e=>{LB(O,s,he,J,Z,_e.dom)})},FB=n=>QB(n,"indent"),VB=n=>QB(n,"outdent"),zB=n=>{if(n.selection.isCollapsed()&&IB(n)){const s=n.dom,l=n.selection.getRng(),h=Nn.fromRangeStart(l),O=s.getParent(l.startContainer,s.isBlock);if(O!==null&&E_(Yt.fromDom(O),h,n.schema))return G.some(()=>VB(n))}return G.none()},E2=(n,s,l)=>wt([zB,Z6,W5,(h,O)=>w3(h,s,O),N6,ZT,H6,o7,U5,n7],h=>h(n,l)).filter(h=>n.selection.isEditable()),Pv=(n,s)=>{E2(n,s,!1).fold(()=>{n.selection.isEditable()&&($T(n),UA(n))},ge)},Hb=(n,s)=>{E2(n,s,!0).fold(()=>{n.selection.isEditable()&&iY(n)},ge)},f4=(n,s)=>{n.addCommand("delete",()=>{Pv(n,s)}),n.addCommand("forwardDelete",()=>{Hb(n,s)})},d4=5,i7=400,l7=n=>n.touches===void 0||n.touches.length!==1?G.none():G.some(n.touches[0]),lq=(n,s)=>{const l=Math.abs(n.clientX-s.x),h=Math.abs(n.clientY-s.y);return l>d4||h>d4},ZB=n=>{const s=_g(),l=ni(!1),h=rx(O=>{n.dispatch("longpress",{...O,type:"longpress"}),l.set(!0)},i7);n.on("touchstart",O=>{l7(O).each(P=>{h.cancel();const Z={x:P.clientX,y:P.clientY,target:O.target};h.throttle(O),l.set(!1),s.set(Z)})},!0),n.on("touchmove",O=>{h.cancel(),l7(O).each(P=>{s.on(Z=>{lq(P,Z)&&(s.clear(),l.set(!1),n.dispatch("longpresscancel"))})})},!0),n.on("touchend touchcancel",O=>{h.cancel(),O.type!=="touchcancel"&&s.get().filter(P=>P.target.isEqualNode(O.target)).each(()=>{l.get()?O.preventDefault():n.dispatch("tap",{...O,type:"tap"})})},!0)},h4=(n,s)=>it(n,s.nodeName),cq=(n,s)=>lr(s)?!0:Xr(s)?!h4(n.getBlockElements(),s)&&!af(s)&&!ks(n,s)&&!Nd(s):!1,uq=(n,s,l)=>De(P_(Yt.fromDom(l),Yt.fromDom(s)),h=>h4(n,h.dom)),fq=(n,s)=>{if(lr(s)){if(s.data.length===0)return!0;if(/^\s+$/.test(s.data))return!s.nextSibling||h4(n,s.nextSibling)||Nd(s.nextSibling)}return!1},HB=n=>n.dom.create(Ec(n),Yy(n)),dq=n=>{const s=n.dom,l=n.selection,h=n.schema,O=h.getBlockElements(),P=l.getStart(),Z=n.getBody();let J,he,_e=!1;const Ge=Ec(n);if(!P||!Xr(P))return;const qe=Z.nodeName.toLowerCase();if(!h.isValidChild(qe,Ge.toLowerCase())||uq(O,Z,P))return;const ot=l.getRng(),{startContainer:Et,startOffset:Vt,endContainer:kt,endOffset:It}=ot,cn=o1(n);let xn=Z.firstChild;for(;xn;)if(Xr(xn)&&zO(h,xn),cq(h,xn)){if(fq(O,xn)){he=xn,xn=xn.nextSibling,s.remove(he);continue}J||(J=HB(n),Z.insertBefore(J,xn),_e=!0),he=xn,xn=xn.nextSibling,J.appendChild(he)}else J=null,xn=xn.nextSibling;_e&&cn&&(ot.setStart(Et,Vt),ot.setEnd(kt,It),l.setRng(ot),n.nodeChanged())},UB=(n,s,l)=>{const h=Yt.fromDom(HB(n)),O=Cc();Ci(h,O),l(s,h);const P=document.createRange();return P.setStartBefore(O.dom),P.setEndBefore(O.dom),P},WB=n=>{n.on("NodeChange",ee(dq,n))},c7=n=>s=>(" "+s.attr("class")+" ").indexOf(n)!==-1,Gle=(n,s,l)=>function(h){const O=arguments,P=O[O.length-2],Z=P>0?s.charAt(P-1):"";if(Z==='"')return h;if(Z===">"){const J=s.lastIndexOf("<",P);if(J!==-1&&s.substring(J,P).indexOf('contenteditable="false"')!==-1)return h}return''+n.dom.encode(typeof O[1]=="string"?O[1]:O[0])+""},jle=(n,s,l)=>{let h=s.length,O=l.content;if(l.format!=="raw"){for(;h--;)O=O.replace(s[h],Gle(n,O,zw(n)));l.content=O}},qle=n=>{const s="contenteditable",l=" "+fr.trim(zk(n))+" ",h=" "+fr.trim(zw(n))+" ",O=c7(l),P=c7(h),Z=kE(n);Z.length>0&&n.on("BeforeSetContent",J=>{jle(n,Z,J)}),n.parser.addAttributeFilter("class",J=>{let he=J.length;for(;he--;){const _e=J[he];O(_e)?_e.attr(s,"true"):P(_e)&&_e.attr(s,"false")}}),n.serializer.addAttributeFilter(s,J=>{let he=J.length;for(;he--;){const _e=J[he];!O(_e)&&!P(_e)||(Z.length>0&&_e.attr("data-mce-content")?(_e.name="#text",_e.type=3,_e.raw=!0,_e.value=_e.attr("data-mce-content")):_e.attr(s,null))}})},hq=n=>Sc(Yt.fromDom(n.getBody()),"*[data-mce-caret]").map(s=>s.dom).getOrNull(),mq=(n,s)=>{s.hasAttribute("data-mce-caret")&&(Pn(s),n.selection.setRng(n.selection.getRng()),n.selection.scrollIntoView(s))},Kle=(n,s)=>{const l=hq(n);if(l){if(s.type==="compositionstart"){s.preventDefault(),s.stopPropagation(),mq(n,l);return}Zt(l)&&(mq(n,l),n.undoManager.add())}},gq=n=>{n.on("keyup compositionstart",ee(Kle,n))},YB=Os,Jle=(n,s,l)=>q6(s,n,l,bv,Vm,YB),pq=(n,s,l)=>x3(s,n,l,P=>bv(P)||F9(P),P=>Vm(P)||as(P),YB),Vf=n=>{const s=n.dom.create(Ec(n));return s.innerHTML='
    ',s},u7=(n,s,l)=>{const h=Ud(n.getBody()),O=ee(Jk,s===1?h.next:h.prev);if(l.collapsed){const P=n.dom.getParent(l.startContainer,"PRE");if(!P)return;if(!O(Nn.fromRangeStart(l))){const J=Yt.fromDom(Vf(n));s===1?Yu(Yt.fromDom(P),J):Ui(Yt.fromDom(P),J),n.selection.select(J.dom,!0),n.selection.collapse()}}},C3=(n,s)=>{const l=s?Pi.Forwards:Pi.Backwards,h=n.selection.getRng();return Jle(l,n,h).orThunk(()=>(u7(n,l,h),G.none()))},vq=(n,s)=>{const l=s?1:-1,h=n.selection.getRng();return pq(l,n,h).orThunk(()=>(u7(n,l,h),G.none()))},XB=(n,s)=>{const l=s?n.getEnd(!0):n.getStart(!0);return oL(l)?!s:s},f7=(n,s)=>C3(n,XB(n.selection,s)).exists(l=>(fp(n,l),!0)),m4=(n,s)=>vq(n,s).exists(l=>(fp(n,l),!0)),GB=(n,s)=>P2(n,s,s?Vm:bv),g4=(n,s)=>Q6(n,!s).map(l=>{const h=l.toRange(),O=n.selection.getRng();return s?h.setStart(O.startContainer,O.startOffset):h.setEnd(O.endContainer,O.endOffset),h}).exists(l=>(fp(n,l),!0)),jB=n=>Ze(["figcaption"],Vs(n)),yq=(n,s,l)=>{const h=ee(Gs,s);return wu(Yt.fromDom(n.container()),O=>l.isBlock(Vs(O)),h).filter(jB)},bq=(n,s,l)=>s?v3(n.dom,l):fB(n.dom,l),Oq=(n,s)=>{const l=Yt.fromDom(n.getBody()),h=Nn.fromRangeStart(n.selection.getRng());return yq(h,l,n.schema).exists(()=>{if(bq(l,s,h)){const P=UB(n,l,s?Ci:mm);return n.selection.setRng(P),!0}else return!1})},p4=(n,s)=>n.selection.isCollapsed()?Oq(n,s):!1,xq=(n,s,l)=>{const h=n.selection.getRng(),O=Nn.fromRangeStart(h);return n.getBody().firstChild===s&&fB(l,O)?(n.execCommand("InsertNewBlockBefore"),!0):!1},Sq=(n,s)=>{const l=n.selection.getRng(),h=Nn.fromRangeStart(l);return n.getBody().lastChild===s&&v3(s,h)?(n.execCommand("InsertNewBlockAfter"),!0):!1},ece=(n,s)=>s?G.from(n.dom.getParent(n.selection.getNode(),"details")).map(l=>Sq(n,l)).getOr(!1):G.from(n.dom.getParent(n.selection.getNode(),"summary")).bind(l=>G.from(n.dom.getParent(l,"details")).map(h=>xq(n,h,l))).getOr(!1),qB=(n,s)=>ece(n,s),d7={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},tce=n=>Ie(n,s=>({...d7,...s})),wq=n=>Ie(n,s=>({...d7,...s})),KB=(n,s)=>s.keyCode===n.keyCode&&s.shiftKey===n.shiftKey&&s.altKey===n.altKey&&s.ctrlKey===n.ctrlKey&&s.metaKey===n.metaKey,Tq=(n,s)=>ze(tce(n),l=>KB(l,s)?[l]:[]),h7=(n,s)=>ze(wq(n),l=>KB(l,s)?[l]:[]),Ro=(n,...s)=>()=>n.apply(null,s),_2=(n,s)=>le(Tq(n,s),l=>l.action()),m7=(n,s)=>wt(h7(n,s),l=>l.action()),JB=(n,s)=>{const l=s?Pi.Forwards:Pi.Backwards,h=n.selection.getRng();return q6(n,l,h,MT,Jx,ei).exists(O=>(fp(n,O),!0))},eQ=(n,s)=>{const l=s?1:-1,h=n.selection.getRng();return x3(n,l,h,MT,Jx,ei).exists(O=>(fp(n,O),!0))},v4=(n,s)=>P2(n,s,s?Jx:MT),tQ=Zd.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),k3={...tQ,none:n=>tQ.none(n)},Cq=(n,s)=>oh(n,s,pe),oh=(n,s,l)=>ze(ol(n),h=>Hu(h,s)?l(h)?[h]:[]:oh(h,s,l)),nQ=(n,s,l=ne)=>{if(l(s))return G.none();if(Ze(n,Vs(s)))return G.some(s);const h=O=>Hu(O,"table")||l(O);return Og(s,n.join(","),h)},rQ=(n,s)=>nQ(["td","th"],n,s),rce=n=>Cq(n,"th,td"),kq=(n,s)=>Mf(n,"table",s),oQ=(n,s,l,h,O=pe)=>{const P=h===1;if(!P&&l<=0)return k3.first(n[0]);if(P&&l>=n.length-1)return k3.last(n[n.length-1]);{const Z=l+h,J=n[Z];return O(J)?k3.middle(s,J):oQ(n,s,Z,h,O)}},Aq=(n,s)=>kq(n,s).bind(l=>{const h=rce(l);return Ce(h,P=>Gs(n,P)).map(P=>({index:P,all:h}))}),Pq=(n,s,l)=>Aq(n,l).fold(()=>k3.none(n),O=>oQ(O.all,n,O.index,1,s)),y4=(n,s,l)=>Aq(n,l).fold(()=>k3.none(),O=>oQ(O.all,n,O.index,-1,s)),Mq=(n,s)=>({left:n.left-s,top:n.top-s,right:n.right+s*2,bottom:n.bottom+s*2,width:n.width+s,height:n.height+s}),g7=(n,s)=>ze(s,l=>{const h=Mq(ov(l.getBoundingClientRect()),-1);return[{x:h.left,y:n(h),cell:l},{x:h.right,y:n(h),cell:l}]}),sQ=(n,s,l)=>oe(n,(h,O)=>h.fold(()=>G.some(O),P=>{const Z=Math.sqrt(Math.abs(P.x-s)+Math.abs(P.y-l)),J=Math.sqrt(Math.abs(O.x-s)+Math.abs(O.y-l));return G.some(J{const P=sl(Yt.fromDom(l),"td,th,caption").map(J=>J.dom),Z=se(g7(n,P),J=>s(J,O));return sQ(Z,h,O).map(J=>J.cell)},aQ=n=>n.bottom,Eq=n=>n.top,_q=(n,s)=>n.yn.y>s,Dq=ee(p7,aQ,_q),b4=ee(p7,Eq,Rq),$q=(n,s)=>yt(s.getClientRects()).bind(l=>Dq(n,l.left,l.top)).bind(l=>Ff(Nj(l),s)),Lq=(n,s)=>ft(s.getClientRects()).bind(l=>b4(n,l.left,l.top)).bind(l=>Ff(Ij(l),s)),Iq=(n,s,l)=>l.breakAt.exists(h=>n(s,h).breakAt.isSome()),v7=n=>n.breakType===Uh.Wrap&&n.positions.length===0,Nq=n=>n.breakType===Uh.Br&&n.positions.length===1,iQ=(n,s,l)=>{const h=n(s,l);return v7(h)||!aa(l.getNode())&&Nq(h)?!Iq(n,s,h):h.breakAt.isNone()},lQ=ee(iQ,g3),Bq=ee(iQ,p3),Qq=(n,s,l)=>{const h=Nn.fromRangeStart(s);return U0(!n,l).exists(O=>O.isEqual(h))},Fq=(n,s,l,h)=>{const O=n.selection.getRng(),P=s?1:-1;return tb()&&Qq(s,O,l)?(cp(P,n,l,!s,!1).each(Z=>{fp(n,Z)}),!0):!1},Vq=(n,s,l)=>$q(s,l).orThunk(()=>yt(l.getClientRects()).bind(h=>uB(v1(n,Nn.before(s)),h.left))).getOr(Nn.before(s)),zq=(n,s,l)=>Lq(s,l).orThunk(()=>yt(l.getClientRects()).bind(h=>uB(X6(n,Nn.after(s)),h.left))).getOr(Nn.after(s)),cQ=(n,s)=>{const l=s.getNode(n);return ju(l)?G.some(l):G.none()},y7=(n,s,l)=>{s.undoManager.transact(()=>{const h=n?Yu:Ui,O=UB(s,Yt.fromDom(l),h);fp(s,O)})},uQ=(n,s,l)=>{const h=cQ(!!s,l),O=s===!1;h.fold(()=>fp(n,l.toRange()),P=>U0(O,n.getBody()).filter(Z=>Z.isEqual(l)).fold(()=>fp(n,l.toRange()),Z=>y7(s,n,P)))},fQ=(n,s,l,h)=>{const O=n.selection.getRng(),P=Nn.fromRangeStart(O),Z=n.getBody();if(!s&&lQ(h,P)){const J=Vq(Z,l,P);return uQ(n,s,J),!0}else if(s&&Bq(h,P)){const J=zq(Z,l,P);return uQ(n,s,J),!0}else return!1},dQ=(n,s,l)=>G.from(n.dom.getParent(n.selection.getNode(),"td,th")).bind(h=>G.from(n.dom.getParent(h,"table")).map(O=>l(n,s,O,h))).getOr(!1),hQ=(n,s)=>dQ(n,s,Fq),b7=(n,s)=>dQ(n,s,fQ),Zq=n=>{const s=Fm.exact(n,0,n,0);return g_(s)},mQ=(n,s,l)=>l.fold(G.none,G.none,(h,O)=>gW(O).map(P=>Zq(P)),h=>(n.execCommand("mceTableInsertRowAfter"),gQ(n,s,h))),gQ=(n,s,l)=>mQ(n,s,Pq(l,jo)),Ol=(n,s,l)=>mQ(n,s,y4(l,jo)),pQ=(n,s)=>{const l=["table","li","dl"],h=Yt.fromDom(n.getBody()),O=J=>{const he=Vs(J);return Gs(J,h)||Ze(l,he)},P=n.selection.getRng(),Z=Yt.fromDom(s?P.endContainer:P.startContainer);return rQ(Z,O).map(J=>(kq(J,O).each(Ge=>{n.model.table.clearSelectedCells(Ge.dom)}),n.selection.collapse(!s),(s?gQ:Ol)(n,O,J).each(Ge=>{n.selection.setRng(Ge)}),!0)).getOr(!1)},Hq=(n,s,l)=>{const h=Dr.os.isMacOS()||Dr.os.isiOS();_2([{keyCode:Wr.RIGHT,action:Ro(f7,n,!0)},{keyCode:Wr.LEFT,action:Ro(f7,n,!1)},{keyCode:Wr.UP,action:Ro(m4,n,!1)},{keyCode:Wr.DOWN,action:Ro(m4,n,!0)},...h?[{keyCode:Wr.UP,action:Ro(g4,n,!1),metaKey:!0,shiftKey:!0},{keyCode:Wr.DOWN,action:Ro(g4,n,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:Wr.RIGHT,action:Ro(hQ,n,!0)},{keyCode:Wr.LEFT,action:Ro(hQ,n,!1)},{keyCode:Wr.UP,action:Ro(b7,n,!1)},{keyCode:Wr.DOWN,action:Ro(b7,n,!0)},{keyCode:Wr.UP,action:Ro(b7,n,!1)},{keyCode:Wr.UP,action:Ro(qB,n,!1)},{keyCode:Wr.DOWN,action:Ro(qB,n,!0)},{keyCode:Wr.RIGHT,action:Ro(JB,n,!0)},{keyCode:Wr.LEFT,action:Ro(JB,n,!1)},{keyCode:Wr.UP,action:Ro(eQ,n,!1)},{keyCode:Wr.DOWN,action:Ro(eQ,n,!0)},{keyCode:Wr.RIGHT,action:Ro(SB,n,s,!0)},{keyCode:Wr.LEFT,action:Ro(SB,n,s,!1)},{keyCode:Wr.RIGHT,ctrlKey:!h,altKey:h,action:Ro(Wj,n,s)},{keyCode:Wr.LEFT,ctrlKey:!h,altKey:h,action:Ro(Yj,n,s)},{keyCode:Wr.UP,action:Ro(p4,n,!1)},{keyCode:Wr.DOWN,action:Ro(p4,n,!0)}],l).each(O=>{l.preventDefault()})},Uq=(n,s)=>{n.on("keydown",l=>{l.isDefaultPrevented()||Hq(n,s,l)})},Wh=(n,s)=>({container:n,offset:s}),R2=Da.DOM,A3=n=>s=>n===s?-1:0,O1=n=>s=>n.isBlock(s)||Ze(["BR","IMG","HR","INPUT"],s.nodeName)||n.getContentEditable(s)==="false",P3=(n,s,l)=>{if(lr(n)&&s>=0)return G.some(Wh(n,s));{const h=Rg(R2);return G.from(h.backwards(n,s,A3(n),l)).map(O=>Wh(O.container,O.container.data.length))}},vQ=(n,s,l)=>{if(lr(n)&&s>=n.length)return G.some(Wh(n,s));{const h=Rg(R2);return G.from(h.forwards(n,s,A3(n),l)).map(O=>Wh(O.container,0))}},M3=(n,s,l)=>{if(!lr(n))return G.none();const h=n.data;if(s>=0&&s<=h.length)return G.some(Wh(n,s));{const O=Rg(R2);return G.from(O.backwards(n,s,A3(n),l)).bind(P=>{const Z=P.container.data;return M3(P.container,s+Z.length,l)})}},O4=(n,s,l)=>{if(!lr(n))return G.none();const h=n.data;if(s<=h.length)return G.some(Wh(n,s));{const O=Rg(R2);return G.from(O.forwards(n,s,A3(n),l)).bind(P=>O4(P.container,s-h.length,l))}},E3=(n,s,l,h,O)=>{const P=Rg(n,O1(n));return G.from(P.backwards(s,l,h,O))},yQ=n=>n.collapsed&&lr(n.startContainer),_3=n=>Pe(n.toString().replace(/\u00A0/g," ")),R3=n=>n!==""&&`  \f +\r \v`.indexOf(n)!==-1,Ub=(n,s)=>n.substring(s.length),D3=(n,s,l)=>{let h;const O=l.charAt(0);for(h=s-1;h>=0;h--){const P=n.charAt(h);if(R3(P))return G.none();if(O===P&&sr(n,l,h,s))break}return G.some(h)},Yh=(n,s,l,h=0)=>{if(!yQ(s))return G.none();const O={text:"",offset:0},P=(J,he,_e)=>(O.text=_e+O.text,O.offset+=he,D3(O.text,O.offset,l).getOr(he)),Z=n.getParent(s.startContainer,n.isBlock)||n.getRoot();return E3(n,s.startContainer,s.startOffset,P,Z).bind(J=>{const he=s.cloneRange();if(he.setStart(J.container,J.offset),he.setEnd(s.endContainer,s.endOffset),he.collapsed)return G.none();const _e=_3(he);return _e.lastIndexOf(l)!==0||Ub(_e,l).lengthbW(Yt.fromDom(s.startContainer)).fold(()=>Yh(n,s,l,h),O=>{const P=n.createRng();P.selectNode(O.dom);const Z=_3(P);return G.some({range:P,text:Ub(Z,l),trigger:l})}),bQ=n=>n.nodeType===lm,OQ=n=>n.nodeType===mh,xQ=n=>{if(bQ(n))return Wh(n,n.data.length);{const s=n.childNodes;return s.length>0?xQ(s[s.length-1]):Wh(n,s.length)}},O7=(n,s)=>{const l=n.childNodes;return l.length>0&&s0&&OQ(n)&&l.length===s?xQ(l[l.length-1]):Wh(n,s)},Wq=(n,s)=>{var l;const h=(l=n.getParent(s.container,n.isBlock))!==null&&l!==void 0?l:n.getRoot();return E3(n,s.container,s.offset,(O,P)=>P===0?-1:P,h).filter(O=>{const P=O.container.data.charAt(O.offset-1);return!R3(P)}).isSome()},Yq=n=>s=>{const l=O7(s.startContainer,s.startOffset);return!Wq(n,l)},$3=(n,s,l)=>wt(l.triggers,h=>D2(n,s,h)),Xq=(n,s)=>{const l=s(),h=n.selection.getRng();return $3(n.dom,h,l).bind(O=>SQ(n,s,O))},SQ=(n,s,l,h={})=>{var O;const P=s(),J=(O=n.selection.getRng().startContainer.nodeValue)!==null&&O!==void 0?O:"",he=se(P.lookupByTrigger(l.trigger),Ge=>l.text.length>=Ge.minChars&&Ge.matches.getOrThunk(()=>Yq(n.dom))(l.range,J,l.text));if(he.length===0)return G.none();const _e=Promise.all(Ie(he,Ge=>Ge.fetch(l.text,Ge.maxResults,h).then(ot=>({matchText:l.text,items:ot,columns:Ge.columns,onAction:Ge.onAction,highlightOn:Ge.highlightOn}))));return G.some({lookupData:_e,context:l})};var Wm;(function(n){n[n.Error=0]="Error",n[n.Value=1]="Value"})(Wm||(Wm={}));const x7=(n,s,l)=>n.stype===Wm.Error?s(n.serror):l(n.svalue),Gq=n=>{const s=[],l=[];return re(n,h=>{x7(h,O=>l.push(O),O=>s.push(O))}),{values:s,errors:l}},jq=(n,s)=>n.stype===Wm.Error?{stype:Wm.Error,serror:s(n.serror)}:n,qq=(n,s)=>n.stype===Wm.Value?{stype:Wm.Value,svalue:s(n.svalue)}:n,Kq=(n,s)=>n.stype===Wm.Value?s(n.svalue):n,Jq=(n,s)=>n.stype===Wm.Error?s(n.serror):n,wQ=n=>({stype:Wm.Value,svalue:n}),TQ=n=>({stype:Wm.Error,serror:n}),Lc={fromResult:n=>n.fold(TQ,wQ),toResult:n=>x7(n,iu.error,iu.value),svalue:wQ,partition:Gq,serror:TQ,bind:Kq,bindError:Jq,map:qq,mapError:jq,fold:x7},x4=n=>I(n)&&Gt(n).length>100?" removed due to size":JSON.stringify(n,null,2),CQ=n=>{const s=n.length>10?n.slice(0,10).concat([{path:[],getErrorInfo:ae("... (only showing first ten failures)")}]):n;return Ie(s,l=>"Failed path: ("+l.path.join(" > ")+`) +`+l.getErrorInfo())},L3=(n,s)=>Lc.serror([{path:n,getErrorInfo:s}]),eK=(n,s,l)=>L3(n,()=>'Could not find valid *required* value for "'+s+'" in '+x4(l)),tK=(n,s)=>L3(n,()=>'Choice schema did not contain choice key: "'+s+'"'),nK=(n,s,l)=>L3(n,()=>'The chosen schema: "'+l+'" did not exist in branches: '+x4(s)),rK=(n,s)=>L3(n,ae(s)),kQ=(n,s,l,h)=>Sn(l,h).fold(()=>nK(n,l,h),P=>P.extract(n.concat(["branch: "+h]),s)),oK=(n,s)=>({extract:(O,P)=>Sn(P,n).fold(()=>tK(O,n),J=>kQ(O,P,s,J)),toString:()=>"chooseOn("+n+"). Possible values: "+Gt(s)}),AQ=(n,s)=>s,sK=(n,s)=>V(n)&&V(s)?I3(n,s):s,S7=n=>(...s)=>{if(s.length===0)throw new Error("Can't merge zero objects");const l={};for(let h=0;h({tag:"required",process:{}}),iK=n=>({tag:"defaultedThunk",process:n}),w7=n=>iK(ae(n)),lK=()=>({tag:"option",process:{}}),cK=(n,s)=>n.length>0?Lc.svalue(I3(s,aK.apply(void 0,n))):Lc.svalue(s),T7=n=>L(Lc.serror,Qe)(n),MQ={consolidateObj:(n,s)=>{const l=Lc.partition(n);return l.errors.length>0?T7(l.errors):cK(l.values,s)},consolidateArr:n=>{const s=Lc.partition(n);return s.errors.length>0?T7(s.errors):Lc.svalue(s.values)}},uK=(n,s,l,h)=>({tag:"field",key:n,newKey:s,presence:l,prop:h}),fK=(n,s)=>({tag:"custom",newKey:n,instantiator:s}),EQ=(n,s,l)=>{switch(n.tag){case"field":return s(n.key,n.newKey,n.presence,n.prop);case"custom":return l(n.newKey,n.instantiator)}},S4=n=>{const s=(h,O)=>Lc.bindError(n(O),P=>rK(h,P)),l=ae("val");return{extract:s,toString:l}},_Q=S4(Lc.svalue),dK=(n,s,l,h)=>Sn(s,l).fold(()=>eK(n,l,s),h),RQ=(n,s,l,h)=>{const O=Sn(n,s).getOrThunk(()=>l(n));return h(O)},hK=(n,s,l)=>l(Sn(n,s)),mK=(n,s,l,h)=>{const O=Sn(n,s).map(P=>P===!0?l(n):P);return h(O)},gK=(n,s,l,h,O)=>{const P=J=>O.extract(s.concat([h]),J),Z=J=>J.fold(()=>Lc.svalue(G.none()),he=>{const _e=O.extract(s.concat([h]),he);return Lc.map(_e,G.some)});switch(n.tag){case"required":return dK(s,l,h,P);case"defaultedThunk":return RQ(l,h,n.process,P);case"option":return hK(l,h,Z);case"defaultedOptionThunk":return mK(l,h,n.process,Z);case"mergeWithThunk":return RQ(l,h,ae({}),J=>{const he=I3(n.process(l),J);return P(he)})}},pK=(n,s,l)=>{const h={},O=[];for(const P of l)EQ(P,(Z,J,he,_e)=>{const Ge=gK(he,n,s,Z,_e);Lc.fold(Ge,qe=>{O.push(...qe)},qe=>{h[J]=qe})},(Z,J)=>{h[Z]=J(s)});return O.length>0?Lc.serror(O):Lc.svalue(h)},C7=n=>({extract:(h,O)=>pK(h,O,n),toString:()=>`obj{ +`+Ie(n,O=>EQ(O,(P,Z,J,he)=>P+" -> "+he.toString(),(P,Z)=>"state("+P+")")).join(` +`)+"}"}),DQ=n=>({extract:(h,O)=>{const P=Ie(O,(Z,J)=>n.extract(h.concat(["["+J+"]"]),Z));return MQ.consolidateArr(P)},toString:()=>"array("+n.toString()+")"}),lce=n=>S4(s=>n(s).fold(Lc.serror,Lc.svalue)),vK=(n,s,l)=>{const h=s.extract([n],l);return Lc.mapError(h,O=>({input:l,errors:O}))},w4=(n,s,l)=>Lc.toResult(vK(n,s,l)),$Q=n=>`Errors: +`+CQ(n.errors).join(` +`)+` + +Input object: `+x4(n.input),k7=(n,s)=>oK(n,vn(s,C7)),yK=ae(_Q),N3=(n,s)=>S4(l=>{const h=typeof l;return n(l)?Lc.svalue(l):Lc.serror(`Expected type: ${s} but got: ${h}`)}),LQ=N3(W,"number"),T4=N3(M,"string"),bK=N3(z,"boolean"),A7=N3(E,"function"),$2=uK,IQ=fK,P7=n=>lce(s=>Ze(n,s)?iu.value(s):iu.error(`Unsupported value: "${s}", choose one of "${n.join(", ")}".`)),NQ=(n,s)=>$2(n,n,PQ(),s),BQ=n=>NQ(n,T4),QQ=n=>NQ(n,A7),FQ=(n,s)=>$2(n,n,PQ(),DQ(s)),M7=(n,s)=>$2(n,n,lK(),s),C4=n=>M7(n,T4),OK=n=>M7(n,A7),xK=(n,s)=>$2(n,n,w7(s),yK()),L2=(n,s,l)=>$2(n,n,w7(s),l),xl=(n,s)=>L2(n,s,LQ),dp=(n,s)=>L2(n,s,T4),VQ=(n,s,l)=>L2(n,s,P7(l)),zQ=(n,s)=>L2(n,s,bK),E7=(n,s)=>L2(n,s,A7),SK=(n,s,l)=>L2(n,s,DQ(l)),wK=BQ("type"),TK=QQ("fetch"),k4=QQ("onAction"),I2=E7("onSetup",()=>ie),cce=C4("text"),CK=C4("icon"),kK=C4("tooltip"),Ym=C4("label"),AK=zQ("active",!1),PK=zQ("enabled",!0),_7=zQ("primary",!1),MK=n=>xK("columns",n),Wb=n=>dp("type",n),ZQ=C7([wK,BQ("trigger"),xl("minChars",1),MK(1),xl("maxResults",10),OK("matches"),TK,k4,SK("highlightOn",[],T4)]),EK=n=>w4("Autocompleter",ZQ,{trigger:n.ch,...n}),R7=[PK,kK,CK,cce,I2],HQ=[AK].concat(R7),UQ=[E7("predicate",ne),VQ("scope","node",["node","editor"]),VQ("position","selection",["node","selection","line"])],WQ=R7.concat([Wb("contextformbutton"),_7,k4,IQ("original",q)]),D7=HQ.concat([Wb("contextformbutton"),_7,k4,IQ("original",q)]),$7=R7.concat([Wb("contextformbutton")]),L7=HQ.concat([Wb("contextformtogglebutton")]),_K=k7("type",{contextformbutton:WQ,contextformtogglebutton:D7});C7([Wb("contextform"),E7("initValue",ae("")),Ym,FQ("commands",_K),M7("launch",k7("type",{contextformbutton:$7,contextformtogglebutton:L7}))].concat(UQ));const RK=n=>{const s=n.ui.registry.getAll().popups,l=vn(s,Z=>EK(Z).fold(J=>{throw new Error($Q(J))},q)),h=gt(Xn(l,Z=>Z.trigger)),O=Un(l);return{dataset:l,triggers:h,lookupByTrigger:Z=>se(O,J=>J.trigger===Z)}},DK=(n,s)=>{const l=rx(s.load,50);n.on("keypress compositionend",h=>{h.which!==27&&l.throttle()}),n.on("keydown",h=>{const O=h.which;O===8?l.throttle():O===27&&s.cancelIfNecessary()}),n.on("remove",l.cancel)},$K=n=>{const s=_g(),l=ni(!1),h=s.isSet,O=()=>{h()&&(aG(n),OT(n),l.set(!1),s.clear())},P=_e=>{h()||(sG(n,_e.range),s.set({trigger:_e.trigger,matchLength:_e.text.length}))},Z=Rt(()=>RK(n)),J=_e=>s.get().map(Ge=>D2(n.dom,n.selection.getRng(),Ge.trigger).bind(qe=>SQ(n,Z,qe,_e))).getOrThunk(()=>Xq(n,Z)),he=_e=>{J(_e).fold(O,Ge=>{P(Ge.context),Ge.lookupData.then(qe=>{s.get().map(ot=>{const Et=Ge.context;ot.trigger===Et.trigger&&(Et.text.length-ot.matchLength>=10?O():(s.set({...ot,matchLength:Et.text.length}),l.get()?bA(n,{lookupData:qe}):(l.set(!0),bT(n,{lookupData:qe}))))})})})};n.addCommand("mceAutocompleterReload",(_e,Ge)=>{const qe=I(Ge)?Ge.fetchOptions:{};he(qe)}),n.addCommand("mceAutocompleterClose",O),DK(n,{cancelIfNecessary:O,load:he})},XQ=ii().browser.isSafari(),GQ=n=>D(Yt.fromDom(n)),I7=(n,s)=>{var l;return n.startOffset===0&&n.endOffset===((l=s.textContent)===null||l===void 0?void 0:l.length)},A4=(n,s)=>G.from(n.getParent(s.container(),"details")),P4=(n,s)=>A4(n,s).isSome(),LK=(n,s)=>{const l=G.from(n.getParent(s.startContainer,"details")),h=G.from(n.getParent(s.endContainer,"details"));if(l.isSome()||h.isSome()){const O=l.bind(P=>G.from(n.select("summary",P)[0]));return G.some({startSummary:O,startDetails:l,endDetails:h})}else return G.none()},IK=(n,s)=>Xc(s).exists(l=>l.isEqual(n)),NK=(n,s)=>ld(s).exists(l=>aa(l.getNode())&&uu(s,l).exists(h=>h.isEqual(n))||l.isEqual(n)),BK=(n,s)=>s.startSummary.exists(l=>IK(n,l)),QK=(n,s)=>s.startSummary.exists(l=>NK(n,l)),jQ=(n,s)=>s.startDetails.exists(l=>uu(l,n).forall(h=>s.startSummary.exists(O=>!O.contains(n.container())&&O.contains(h.container())))),N7=(n,s,l)=>l.startDetails.exists(h=>Rc(n,s).forall(O=>!h.contains(O.container()))),B7=(n,s)=>{const l=s.getNode();U(l)||n.selection.setCursorLocation(l,s.offset())},Q7=(n,s,l)=>{const h=n.dom.getParent(s.container(),"details");if(h&&!h.open){const O=n.dom.select("summary",h)[0];O&&(l?Xc(O):ld(O)).each(Z=>B7(n,Z))}else B7(n,s)},FK=(n,s)=>{const l=he=>he.contains(n.startContainer),h=he=>he.contains(n.endContainer),O=s.startSummary.exists(l),P=s.startSummary.exists(h),Z=s.startDetails.forall(he=>s.endDetails.forall(_e=>he!==_e));return(O||P)&&!(O&&P)||Z},qQ=(n,s,l)=>{const{dom:h,selection:O}=n,P=n.getBody();if(l==="character"){const Z=Nn.fromRangeStart(O.getRng()),J=h.getParent(Z.container(),h.isBlock),he=A4(h,Z),_e=J&&h.isEmpty(J),Ge=F(J==null?void 0:J.previousSibling),qe=F(J==null?void 0:J.nextSibling);return _e&&(s?qe:Ge)&&Dm(!s,P,Z).exists(Vt=>P4(h,Vt)&&!xi(he,A4(h,Vt)))?!0:Dm(s,P,Z).fold(ne,ot=>{const Et=A4(h,ot);if(P4(h,ot)&&!xi(he,Et)){if(s||Q7(n,ot,!1),J&&_e){if(s&&Ge)return!0;if(!s&&qe)return!0;Q7(n,ot,s),n.dom.remove(J)}return!0}else return!1})}else return!1},VK=(n,s,l,h)=>{const P=n.selection.getRng(),Z=Nn.fromRangeStart(P),J=n.getBody();return h==="selection"?FK(P,s):l?QK(Z,s)||N7(J,Z,s):BK(Z,s)||jQ(Z,s)},M4=(n,s,l)=>LK(n.dom,n.selection.getRng()).fold(()=>qQ(n,s,l),h=>VK(n,h,s,l)||qQ(n,s,l)),KQ=(n,s,l)=>{const h=n.selection,O=h.getNode(),P=h.getRng(),Z=Nn.fromRangeStart(P);return Zc(O)?(l==="selection"&&I7(P,O)||WA(s,Z,O)?GQ(O):n.undoManager.transact(()=>{const J=h.getSel();let{anchorNode:he,anchorOffset:_e,focusNode:Ge,focusOffset:qe}=J??{};const ot=()=>{B(he)&&B(_e)&&B(Ge)&&B(qe)&&(J==null||J.setBaseAndExtent(he,_e,Ge,qe))},Et=()=>{he=J==null?void 0:J.anchorNode,_e=J==null?void 0:J.anchorOffset,Ge=J==null?void 0:J.focusNode,qe=J==null?void 0:J.focusOffset},Vt=(It,cn)=>{re(It.childNodes,xn=>{ub(xn)&&cn.appendChild(xn)})},kt=n.dom.create("span",{"data-mce-bogus":"1"});Vt(O,kt),O.appendChild(kt),ot(),(l==="word"||l==="line")&&(J==null||J.modify("extend",s?"right":"left",l)),!h.isCollapsed()&&I7(h.getRng(),kt)?GQ(O):(n.execCommand(s?"ForwardDelete":"Delete"),Et(),Vt(kt,O),ot()),n.dom.remove(kt)}),!0):!1},x1=(n,s,l)=>M4(n,s,l)||XQ&&KQ(n,s,l)?G.some(ie):G.none(),JQ=n=>(s,l,h={})=>{const O=s.getBody(),P={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:O,currentTarget:O,eventPhase:Event.AT_TARGET,originalTarget:O,explicitOriginalTarget:O,isTrusted:!1,srcElement:O,cancelable:!1,preventDefault:ie,inputType:l},Z=h0(new InputEvent(n));return s.dispatch(n,{...Z,...P,...h})},B3=JQ("input"),F7=JQ("beforeinput"),zK=ii(),ZK=zK.os,eF=ZK.isMacOS()||ZK.isiOS(),HK=zK.browser.isFirefox(),UK=(n,s,l)=>{const h=l.keyCode===Wr.BACKSPACE?"deleteContentBackward":"deleteContentForward",O=n.selection.isCollapsed(),P=O?"character":"selection",Z=J=>O?J?"word":"line":"selection";m7([{keyCode:Wr.BACKSPACE,action:Ro(zB,n)},{keyCode:Wr.BACKSPACE,action:Ro(Z6,n,!1)},{keyCode:Wr.DELETE,action:Ro(Z6,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(W5,n,!1)},{keyCode:Wr.DELETE,action:Ro(W5,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(w3,n,s,!1)},{keyCode:Wr.DELETE,action:Ro(w3,n,s,!0)},{keyCode:Wr.BACKSPACE,action:Ro(ZT,n,!1)},{keyCode:Wr.DELETE,action:Ro(ZT,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(x1,n,!1,P)},{keyCode:Wr.DELETE,action:Ro(x1,n,!0,P)},...eF?[{keyCode:Wr.BACKSPACE,altKey:!0,action:Ro(x1,n,!1,Z(!0))},{keyCode:Wr.DELETE,altKey:!0,action:Ro(x1,n,!0,Z(!0))},{keyCode:Wr.BACKSPACE,metaKey:!0,action:Ro(x1,n,!1,Z(!1))}]:[{keyCode:Wr.BACKSPACE,ctrlKey:!0,action:Ro(x1,n,!1,Z(!0))},{keyCode:Wr.DELETE,ctrlKey:!0,action:Ro(x1,n,!0,Z(!0))}],{keyCode:Wr.BACKSPACE,action:Ro(H6,n,!1)},{keyCode:Wr.DELETE,action:Ro(H6,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(o7,n,!1)},{keyCode:Wr.DELETE,action:Ro(o7,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(U5,n,!1)},{keyCode:Wr.DELETE,action:Ro(U5,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(N6,n,!1)},{keyCode:Wr.DELETE,action:Ro(N6,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(n7,n,!1)},{keyCode:Wr.DELETE,action:Ro(n7,n,!0)}],l).filter(J=>n.selection.isEditable()).each(J=>{l.preventDefault(),F7(n,h).isDefaultPrevented()||(J(),B3(n,h))})},uce=(n,s,l)=>_2([{keyCode:Wr.BACKSPACE,action:Ro(X5,n)},{keyCode:Wr.DELETE,action:Ro(X5,n)},...eF?[{keyCode:Wr.BACKSPACE,altKey:!0,action:Ro(T3,n)},{keyCode:Wr.DELETE,altKey:!0,action:Ro(T3,n)},...l?[{keyCode:HK?224:91,action:Ro(T3,n)}]:[]]:[{keyCode:Wr.BACKSPACE,ctrlKey:!0,action:Ro(T3,n)},{keyCode:Wr.DELETE,ctrlKey:!0,action:Ro(T3,n)}]],s),WK=(n,s)=>{let l=!1;n.on("keydown",h=>{l=h.keyCode===Wr.BACKSPACE,h.isDefaultPrevented()||UK(n,s,h)}),n.on("keyup",h=>{h.isDefaultPrevented()||uce(n,h,l),l=!1})},Bi=n=>{for(;n;){if(Xr(n)||lr(n)&&n.data&&/[\r\n\s]/.test(n.data))return n;n=n.nextSibling}return null},S1=(n,s)=>{const l=n.dom,h=n.schema.getMoveCaretBeforeOnEnterElements();if(!s)return;if(/^(LI|DT|DD)$/.test(s.nodeName)){const P=Bi(s.firstChild);P&&/^(UL|OL|DL)$/.test(P.nodeName)&&s.insertBefore(l.doc.createTextNode(zs),s.firstChild)}const O=l.createRng();if(s.normalize(),s.hasChildNodes()){const P=new ca(s,s);let Z=s,J;for(;J=P.current();){if(lr(J)){O.setStart(J,0),O.setEnd(J,0);break}if(h[J.nodeName.toLowerCase()]){O.setStartBefore(J),O.setEndBefore(J);break}Z=J,J=P.next()}J||(O.setStart(Z,0),O.setEnd(Z,0))}else aa(s)?s.nextSibling&&l.isBlock(s.nextSibling)?(O.setStartBefore(s),O.setEndBefore(s)):(O.setStartAfter(s),O.setEndAfter(s)):(O.setStart(s,0),O.setEnd(s,0));n.selection.setRng(O),Ab(n,O)},yd=(n,s)=>{const l=n.getRoot();let h,O=s;for(;O!==l&&O&&n.getContentEditable(O)!=="false";){if(n.getContentEditable(O)==="true"){h=O;break}O=O.parentNode}return O!==l?h:l},E4=n=>G.from(n.dom.getParent(n.selection.getStart(!0),n.dom.isBlock)),tF=n=>E4(n).fold(ae(""),s=>s.nodeName.toUpperCase()),YK=n=>E4(n).filter(s=>td(Yt.fromDom(s))).isSome(),N2=n=>{n.innerHTML='
    '},V7=(n,s,l)=>{const h=n.dom;G.from(l.style).map(h.parseStyle).each(he=>{const Ge={...Oy(Yt.fromDom(s)),...he};h.setStyles(s,Ge)});const O=G.from(l.class).map(he=>he.split(/\s+/)),P=G.from(s.className).map(he=>se(he.split(/\s+/),_e=>_e!==""));Fa(O,P,(he,_e)=>{const Ge=se(_e,ot=>!Ze(he,ot)),qe=[...he,...Ge];h.setAttrib(s,"class",qe.join(" "))});const Z=["style","class"],J=wn(l,(he,_e)=>!Ze(Z,_e));h.setAttribs(s,J)},B2=(n,s)=>{if(Ec(n).toLowerCase()===s.tagName.toLowerCase()){const h=Yy(n);V7(n,s,h)}},z7=(n,s,l,h,O=!0,P,Z)=>{const J=n.dom,he=n.schema,_e=Ec(n),Ge=l?l.nodeName.toUpperCase():"";let qe=s;const ot=he.getTextInlineElements();let Et;P||Ge==="TABLE"||Ge==="HR"?Et=J.create(P||_e,Z||{}):Et=l.cloneNode(!1);let Vt=Et;if(!O)J.setAttrib(Et,"style",null),J.setAttrib(Et,"class",null);else do if(ot[qe.nodeName]){if(sf(qe)||af(qe))continue;const kt=qe.cloneNode(!1);J.setAttrib(kt,"id",""),Et.hasChildNodes()?(kt.appendChild(Et.firstChild),Et.appendChild(kt)):(Vt=kt,Et.appendChild(kt))}while((qe=qe.parentNode)&&qe!==h);return B2(n,Et),N2(Vt),Et},XK=(n,s)=>n.dom.getParent(s,er),GK=(n,s,l)=>{let h=s;for(;h&&h!==n&&F(h.nextSibling);){const O=h.parentElement;if(!O||!l(O))return er(O);h=O}return!1},jK=(n,s,l)=>!s&&l.nodeName.toLowerCase()===Ec(n)&&n.dom.isEmpty(l)&&GK(n.getBody(),l,h=>it(n.schema.getTextBlockElements(),h.nodeName.toLowerCase())),qK=(n,s,l)=>{var h,O,P;const Z=s(Ec(n)),J=XK(n,l);J&&(n.dom.insertAfter(Z,J),S1(n,Z),((P=(O=(h=l.parentElement)===null||h===void 0?void 0:h.childNodes)===null||O===void 0?void 0:O.length)!==null&&P!==void 0?P:0)>1&&n.dom.remove(l))},KK=(n,s)=>n.firstChild&&n.firstChild.nodeName===s,nF=n=>{var s;return((s=n.parentNode)===null||s===void 0?void 0:s.firstChild)===n},rF=(n,s)=>{const l=n==null?void 0:n.parentNode;return B(l)&&l.nodeName===s},oF=n=>B(n)&&/^(OL|UL|LI)$/.test(n.nodeName),Z7=n=>B(n)&&/^(LI|DT|DD)$/.test(n.nodeName),JK=n=>oF(n)&&oF(n.parentNode),_4=n=>{const s=n.parentNode;return Z7(s)?s:n},Q3=(n,s,l)=>{let h=n[l?"firstChild":"lastChild"];for(;h&&!Xr(h);)h=h[l?"nextSibling":"previousSibling"];return h===s},H7=n=>oe(Xn(Oy(Yt.fromDom(n)),(s,l)=>`${l}: ${s};`),(s,l)=>s+l,""),eJ=(n,s,l,h,O)=>{const P=n.dom,Z=n.selection.getRng(),J=l.parentNode;if(l===n.getBody()||!J)return;JK(l)&&(O="LI");const he=Z7(h)?H7(h):void 0;let _e=Z7(h)&&he?s(O,{style:H7(h)}):s(O);if(Q3(l,h,!0)&&Q3(l,h,!1))if(rF(l,"LI")){const Ge=_4(l);P.insertAfter(_e,Ge),nF(l)?P.remove(Ge):P.remove(l)}else P.replace(_e,l);else if(Q3(l,h,!0))rF(l,"LI")?(P.insertAfter(_e,_4(l)),_e.appendChild(P.doc.createTextNode(" ")),_e.appendChild(l)):J.insertBefore(_e,l),P.remove(h);else if(Q3(l,h,!1))P.insertAfter(_e,_4(l)),P.remove(h);else{l=_4(l);const Ge=Z.cloneRange();Ge.setStartAfter(h),Ge.setEndAfter(l);const qe=Ge.extractContents();if(O==="LI"&&KK(qe,"LI")){const ot=se(Ie(_e.children,Yt.fromDom),be(xu("br")));_e=qe.firstChild,P.insertAfter(qe,l),re(ot,Et=>mm(Yt.fromDom(_e),Et)),he&&_e.setAttribute("style",he)}else P.insertAfter(qe,l),P.insertAfter(_e,l);P.remove(h)}S1(n,_e)},tJ=n=>{re(r0(Yt.fromDom(n),Zi),s=>{const l=s.dom;l.nodeValue=Pe(l.data)})},fce=(n,s)=>{const l=n.dom.getParent(s,"ol,ul,dl");return l!==null&&n.dom.getContentEditableParent(l)==="false"},U7=(n,s)=>s&&s.nodeName==="A"&&n.isEmpty(s),W7=(n,s)=>n.nodeName===s||n.previousSibling&&n.previousSibling.nodeName===s,Y7=(n,s)=>B(s)&&n.isBlock(s)&&!/^(TD|TH|CAPTION|FORM)$/.test(s.nodeName)&&!/^(fixed|absolute)/i.test(s.style.position)&&n.isEditable(s.parentNode)&&n.getContentEditable(s)!=="false",nJ=(n,s,l)=>{var h;const O=[];if(!l)return;let P=l;for(;P=P.firstChild;){if(n.isBlock(P))return;Xr(P)&&!s[P.nodeName.toLowerCase()]&&O.push(P)}let Z=O.length;for(;Z--;)P=O[Z],(!P.hasChildNodes()||P.firstChild===P.lastChild&&((h=P.firstChild)===null||h===void 0?void 0:h.nodeValue)===""||U7(n,P))&&n.remove(P)},R4=(n,s,l)=>lr(s)?n?l===1&&s.data.charAt(l-1)===de?0:l:l===s.data.length-1&&s.data.charAt(l)===de?s.data.length:l:l,rJ=n=>{const s=n.cloneRange();return s.setStart(n.startContainer,R4(!0,n.startContainer,n.startOffset)),s.setEnd(n.endContainer,R4(!1,n.endContainer,n.endOffset)),s},sF=n=>{let s=n;do lr(s)&&(s.data=s.data.replace(/^[\r\n]+/,"")),s=s.firstChild;while(s)},oJ=(n,s,l,h,O)=>{var P,Z;const J=n.dom,he=(P=yd(J,h))!==null&&P!==void 0?P:J.getRoot();let _e=J.getParent(h,J.isBlock);if(!_e||!Y7(J,_e)){if(_e=_e||he,!_e.hasChildNodes()){const Et=J.create(s);return B2(n,Et),_e.appendChild(Et),l.setStart(Et,0),l.setEnd(Et,0),Et}let Ge=h;for(;Ge&&Ge.parentNode!==_e;)Ge=Ge.parentNode;let qe;for(;Ge&&!J.isBlock(Ge);)qe=Ge,Ge=Ge.previousSibling;const ot=(Z=qe==null?void 0:qe.parentElement)===null||Z===void 0?void 0:Z.nodeName;if(qe&&ot&&n.schema.isValidChild(ot,s.toLowerCase())){const Et=qe.parentNode,Vt=J.create(s);for(B2(n,Vt),Et.insertBefore(Vt,qe),Ge=qe;Ge&&!J.isBlock(Ge);){const kt=Ge.nextSibling;Vt.appendChild(Ge),Ge=kt}l.setStart(h,O),l.setEnd(h,O)}}return h},sJ=(n,s)=>{s.normalize();const l=s.lastChild;(!l||Xr(l)&&/^(left|right)$/gi.test(n.getStyle(l,"float",!0)))&&n.add(s,"br")},dce=(n,s)=>{const l=Ak(n);return Q(s)?!1:M(l)?Ze(fr.explode(l),s.nodeName.toLowerCase()):l},aF={insert:(n,s)=>{let l,h,O,P,Z=!1;const J=n.dom,he=n.schema,_e=he.getNonEmptyElements(),Ge=n.selection.getRng(),qe=Ec(n),ot=Yt.fromDom(Ge.startContainer),Et=ph(ot,Ge.startOffset),Vt=Et.exists(tr=>Ya(tr)&&!jo(tr)),kt=Ge.collapsed&&Vt,It=(tr,eo)=>z7(n,l,gr,rr,aE(n),tr,eo),cn=tr=>{const eo=R4(tr,l,h);if(lr(l)&&(tr?eo>0:eo{let tr;return/^(H[1-6]|PRE|FIGURE)$/.test(O)&&Qr!=="HGROUP"?tr=It(qe):tr=It(),dce(n,P)&&Y7(J,P)&&J.isEmpty(gr,void 0,{includeZwsp:!0})?tr=J.split(P,gr):J.insertAfter(tr,gr),S1(n,tr),tr};Me(J,Ge).each(tr=>{Ge.setStart(tr.startContainer,tr.startOffset),Ge.setEnd(tr.endContainer,tr.endOffset)}),l=Ge.startContainer,h=Ge.startOffset;const bn=!!(s&&s.shiftKey),$n=!!(s&&s.ctrlKey);Xr(l)&&l.hasChildNodes()&&!kt&&(Z=h>l.childNodes.length-1,l=l.childNodes[Math.min(h,l.childNodes.length-1)]||l,Z&&lr(l)?h=l.data.length:h=0);const rr=yd(J,l);if(!rr||fce(n,l))return;bn||(l=oJ(n,qe,Ge,l,h));let gr=J.getParent(l,J.isBlock)||J.getRoot();P=B(gr==null?void 0:gr.parentNode)?J.getParent(gr.parentNode,J.isBlock):null,O=gr?gr.nodeName.toUpperCase():"";const Qr=P?P.nodeName.toUpperCase():"";if(Qr==="LI"&&!$n){const tr=P;gr=tr,P=tr.parentNode,O=Qr}if(Xr(P)&&jK(n,bn,gr))return qK(n,It,gr);if(/^(LI|DT|DD)$/.test(O)&&Xr(P)&&J.isEmpty(gr)){eJ(n,It,P,gr,qe);return}if(!kt&&(gr===n.getBody()||!Y7(J,gr)))return;const zn=gr.parentNode;let Bn;if(kt)Bn=It(qe),Et.fold(()=>{Ci(ot,Yt.fromDom(Bn))},tr=>{Ui(tr,Yt.fromDom(Bn))}),n.selection.setCursorLocation(Bn,0);else if(rt(gr))Bn=Pn(gr),J.isEmpty(gr)&&N2(gr),B2(n,Bn),S1(n,Bn);else if(cn(!1))Bn=xn();else if(cn(!0)&&zn){Bn=zn.insertBefore(It(),gr);const tr=Wu(Yt.fromDom(Ge.startContainer))&&Ge.collapsed;S1(n,W7(gr,"HR")||tr?Bn:gr)}else{const tr=rJ(Ge).cloneRange();tr.setEndAfter(gr);const eo=tr.extractContents();tJ(eo),sF(eo),Bn=eo.firstChild,J.insertAfter(eo,gr),nJ(J,_e,Bn),sJ(J,gr),J.isEmpty(gr)&&N2(gr),Bn.normalize(),J.isEmpty(Bn)?(J.remove(Bn),xn()):(B2(n,Bn),S1(n,Bn))}J.setAttrib(Bn,"id",""),n.dispatch("NewBlock",{newBlock:Bn})},fakeEventName:"insertParagraph"},aJ=(n,s,l)=>{const h=new ca(s,l);let O;const P=n.getNonEmptyElements();for(;O=h.next();)if(P[O.nodeName.toLowerCase()]||lr(O)&&O.length>0)return!0;return!1},iF=(n,s,l)=>{const h=n.dom.createRng();l?(h.setStartBefore(s),h.setEndBefore(s)):(h.setStartAfter(s),h.setEndAfter(s)),n.selection.setRng(h),Ab(n,h)},iJ=(n,s)=>{const l=n.selection,h=n.dom,O=l.getRng();let P,Z=!1;Me(h,O).each(Et=>{O.setStart(Et.startContainer,Et.startOffset),O.setEnd(Et.endContainer,Et.endOffset)});let J=O.startOffset,he=O.startContainer;if(Xr(he)&&he.hasChildNodes()){const Et=J>he.childNodes.length-1;he=he.childNodes[Math.min(J,he.childNodes.length-1)]||he,Et&&lr(he)?J=he.data.length:J=0}let _e=h.getParent(he,h.isBlock);const Ge=_e&&_e.parentNode?h.getParent(_e.parentNode,h.isBlock):null,qe=Ge?Ge.nodeName.toUpperCase():"",ot=!!(s&&s.ctrlKey);qe==="LI"&&!ot&&(_e=Ge),lr(he)&&J>=he.data.length&&(aJ(n.schema,he,_e||h.getRoot())||(P=h.create("br"),O.insertNode(P),O.setStartAfter(P),O.setEndAfter(P),Z=!0)),P=h.create("br"),gw(h,O,P),iF(n,P,Z),n.undoManager.add()},lJ=(n,s)=>{const l=Yt.fromTag("br");Ui(Yt.fromDom(s),l),n.undoManager.add()},cJ=(n,s)=>{uJ(n.getBody(),s)||Yu(Yt.fromDom(s),Yt.fromTag("br"));const l=Yt.fromTag("br");Yu(Yt.fromDom(s),l),iF(n,l.dom,!1),n.undoManager.add()},D4=n=>aa(n.getNode()),uJ=(n,s)=>D4(Nn.after(s))?!0:Rc(n,Nn.after(s)).map(l=>aa(l.getNode())).getOr(!1),lF=n=>n&&n.nodeName==="A"&&"href"in n,X7=n=>n.fold(ne,lF,lF,ne),G7=n=>{const s=ee(Rb,n),l=Nn.fromRangeStart(n.selection.getRng());return Hh(s,n.getBody(),l).filter(X7)},fJ=(n,s)=>{s.fold(ie,ee(lJ,n),ee(cJ,n),ie)},dJ={insert:(n,s)=>{const l=G7(n);l.isSome()?l.each(ee(fJ,n)):iJ(n,s)},fakeEventName:"insertLineBreak"},cF=(n,s)=>E4(n).filter(l=>s.length>0&&Hu(Yt.fromDom(l),s)).isSome(),hJ=n=>cF(n,sE(n)),mce=n=>cF(n,Mw(n)),bd=Zd.generate([{br:[]},{block:[]},{none:[]}]),Xm=(n,s)=>mce(n),uF=n=>(s,l)=>YK(s)===n,j7=(n,s)=>(l,h)=>tF(l)===n.toUpperCase()===s,mJ=n=>{const s=yd(n.dom,n.selection.getStart());return Q(s)},F3=n=>j7("pre",n),gJ=()=>j7("summary",!0),$4=n=>(s,l)=>rE(s)===n,pJ=(n,s)=>hJ(n),L4=(n,s)=>s,vJ=n=>{const s=Ec(n),l=yd(n.dom,n.selection.getStart());return B(l)&&n.schema.isValidChild(l.nodeName,s)},q7=n=>{const s=n.selection.getRng(),l=Yt.fromDom(s.startContainer),O=ph(l,s.startOffset).map(P=>Ya(P)&&!jo(P));return s.collapsed&&O.getOr(!0)},Od=(n,s)=>(l,h)=>oe(n,(P,Z)=>P&&Z(l,h),!0)?G.some(s):G.none(),I4=(n,s)=>oB([Od([Xm],bd.none()),Od([F3(!0),mJ],bd.none()),Od([gJ()],bd.br()),Od([F3(!0),$4(!1),L4],bd.br()),Od([F3(!0),$4(!1)],bd.block()),Od([F3(!0),$4(!0),L4],bd.block()),Od([F3(!0),$4(!0)],bd.br()),Od([uF(!0),L4],bd.br()),Od([uF(!0)],bd.block()),Od([pJ],bd.br()),Od([L4],bd.br()),Od([vJ],bd.block()),Od([q7],bd.block())],[n,!!(s&&s.shiftKey)]).getOr(bd.none()),N4=(n,s,l)=>{s.selection.isCollapsed()||I_(s),!(B(l)&&F7(s,n.fakeEventName).isDefaultPrevented())&&(n.insert(s,l),B(l)&&B3(s,n.fakeEventName))},fF=(n,s)=>{const l=()=>N4(dJ,n,s),h=()=>N4(aF,n,s),O=I4(n,s);switch(oE(n)){case"linebreak":O.fold(l,l,ie);break;case"block":O.fold(h,h,ie);break;case"invert":O.fold(h,l,ie);break;default:O.fold(l,h,ie);break}},dF=ii(),yJ=dF.os.isiOS()&&dF.browser.isSafari(),hF=(n,s)=>{s.isDefaultPrevented()||(s.preventDefault(),IX(n.undoManager),n.undoManager.transact(()=>{fF(n,s)}))},mF=n=>{if(!n.collapsed)return!1;const s=n.startContainer;if(lr(s)){const l=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,h=s.data.charAt(n.startOffset-1);return l.test(h)}else return!1},bJ=n=>{let s=G.none();const l=O=>{s=G.some(O.selection.getBookmark()),O.undoManager.add()},h=(O,P)=>{O.undoManager.undo(),s.fold(ie,Z=>O.selection.moveToBookmark(Z)),hF(O,P),s=G.none()};n.on("keydown",O=>{O.keyCode===Wr.ENTER&&(yJ&&mF(n.selection.getRng())?l(n):hF(n,O))}),n.on("keyup",O=>{O.keyCode===Wr.ENTER&&s.each(()=>h(n,O))})},gF=(n,s,l)=>{const h=Dr.os.isMacOS()||Dr.os.isiOS();_2([{keyCode:Wr.END,action:Ro(GB,n,!0)},{keyCode:Wr.HOME,action:Ro(GB,n,!1)},...h?[]:[{keyCode:Wr.HOME,action:Ro(g4,n,!1),ctrlKey:!0,shiftKey:!0},{keyCode:Wr.END,action:Ro(g4,n,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:Wr.END,action:Ro(v4,n,!0)},{keyCode:Wr.HOME,action:Ro(v4,n,!1)},{keyCode:Wr.END,action:Ro(i4,n,!0,s)},{keyCode:Wr.HOME,action:Ro(i4,n,!1,s)}],l).each(O=>{l.preventDefault()})},pF=(n,s)=>{n.on("keydown",l=>{l.isDefaultPrevented()||gF(n,s,l)})},OJ=n=>{n.on("input",s=>{s.isComposing||jW(n)})},xJ=ii(),K7=(n,s,l)=>{_2([{keyCode:Wr.PAGE_UP,action:Ro(i4,n,!1,s)},{keyCode:Wr.PAGE_DOWN,action:Ro(i4,n,!0,s)}],l)},vF=n=>n.stopImmediatePropagation(),yF=n=>n.keyCode===Wr.PAGE_UP||n.keyCode===Wr.PAGE_DOWN,V3=(n,s,l)=>{l&&!n.get()?s.on("NodeChange",vF,!0):!l&&n.get()&&s.off("NodeChange",vF),n.set(l)},SJ=(n,s)=>{if(xJ.os.isMacOS())return;const l=ni(!1);n.on("keydown",h=>{yF(h)&&V3(l,n,!0)}),n.on("keyup",h=>{h.isDefaultPrevented()||K7(n,s,h),yF(h)&&l.get()&&(V3(l,n,!1),n.nodeChanged())})},J7=n=>{n.on("beforeinput",s=>{(!n.selection.isEditable()||De(s.getTargetRanges(),l=>!S9(n.dom,l)))&&s.preventDefault()})},B4=(n,s)=>{const l=s.container(),h=s.offset();return lr(l)?(l.insertData(h,n),G.some(Nn(l,h+n.length))):Ax(s).map(O=>{const P=Yt.fromText(n);return s.isAtEnd()?Yu(O,P):Ui(O,P),Nn(P.dom,n.length)})},eR=ee(B4,zs),bF=ee(B4," "),gce=(n,s,l)=>J9(n,s,l)?eR(s):bF(s),w1=n=>s=>s.fold(l=>uu(n.dom,Nn.before(l)),l=>Xc(l),l=>ld(l),l=>Rc(n.dom,Nn.after(l))),wJ=(n,s,l)=>h=>J9(n,h,l)?eR(s):bF(s),OF=n=>s=>{n.selection.setRng(s.toRange()),n.nodeChanged()},TJ=(n,s)=>n.isEditable(n.getParent(s,"summary")),Q4=n=>{const s=Nn.fromRangeStart(n.selection.getRng()),l=Yt.fromDom(n.getBody());if(n.selection.isCollapsed()){const h=ee(Rb,n),O=Nn.fromRangeStart(n.selection.getRng());return Hh(h,n.getBody(),O).bind(w1(l)).map(P=>()=>wJ(l,s,n.schema)(P).each(OF(n)))}else return G.none()},xF=n=>{const s=()=>{const l=Yt.fromDom(n.getBody());n.selection.isCollapsed()||n.getDoc().execCommand("Delete");const h=Nn.fromRangeStart(n.selection.getRng());gce(l,h,n.schema).each(OF(n))};return Zo(Dr.browser.isFirefox()&&n.selection.isEditable()&&TJ(n.dom,n.selection.getRng().startContainer),s)},SF=(n,s)=>{m7([{keyCode:Wr.SPACEBAR,action:Ro(Q4,n)},{keyCode:Wr.SPACEBAR,action:Ro(xF,n)}],s).each(l=>{s.preventDefault(),F7(n,"insertText",{data:" "}).isDefaultPrevented()||(l(),B3(n,"insertText",{data:" "}))})},CJ=n=>{n.on("keydown",s=>{s.isDefaultPrevented()||SF(n,s)})},wF=n=>RE(n)?[{keyCode:Wr.TAB,action:Ro(pQ,n,!0)},{keyCode:Wr.TAB,shiftKey:!0,action:Ro(pQ,n,!1)}]:[],kJ=(n,s)=>{_2([...wF(n)],s).each(l=>{s.preventDefault()})},AJ=n=>{n.on("keydown",s=>{s.isDefaultPrevented()||kJ(n,s)})},PJ=n=>{if(n.addShortcut("Meta+P","","mcePrint"),$K(n),Cv(n))return ni(null);{const s=Uj(n);return J7(n),gq(n),Uq(n,s),WK(n,s),bJ(n),CJ(n),OJ(n),AJ(n),pF(n,s),SJ(n,s),s}};class TF{constructor(s){this.lastPath=[],this.editor=s;let l;const h=this;"onselectionchange"in s.getDoc()||s.on("NodeChange click mouseup keyup focus",O=>{const P=s.selection.getRng(),Z={startContainer:P.startContainer,startOffset:P.startOffset,endContainer:P.endContainer,endOffset:P.endOffset};(O.type==="nodechange"||!Gg(Z,l))&&s.dispatch("SelectionChange"),l=Z}),s.on("contextmenu",()=>{s.dispatch("SelectionChange")}),s.on("SelectionChange",()=>{const O=s.selection.getStart(!0);O&&Ix(s)&&!h.isSameElementPath(O)&&s.dom.isChildOf(O,s.getBody())&&s.nodeChanged({selectionChange:!0})}),s.on("mouseup",O=>{!O.isDefaultPrevented()&&Ix(s)&&(s.selection.getNode().nodeName==="IMG"?fd.setEditorTimeout(s,()=>{s.nodeChanged()}):s.nodeChanged())})}nodeChanged(s={}){const l=this.editor.selection;let h;if(this.editor.initialized&&l&&!bx(this.editor)&&!this.editor.mode.isReadOnly()){const O=this.editor.getBody();h=l.getStart(!0)||O,(h.ownerDocument!==this.editor.getDoc()||!this.editor.dom.isChildOf(h,O))&&(h=O);const P=[];this.editor.dom.getParent(h,Z=>Z===O?!0:(P.push(Z),!1)),this.editor.dispatch("NodeChange",{...s,element:h,parents:P})}}isSameElementPath(s){let l;const h=this.editor,O=ct(h.dom.getParents(s,pe,h.getBody()));if(O.length===this.lastPath.length){for(l=O.length;l>=0&&O[l]===this.lastPath[l];l--);if(l===-1)return this.lastPath=O,!0}return this.lastPath=O,!1}}const F4=nv("image"),MJ=n=>{const s=n;return G.from(s[F4])},tR=(n,s)=>{const l=n;l[F4]=s},V4=nv("event"),z4=n=>{const s=n;return G.from(s[V4])},z3=n=>s=>{const l=s;l[V4]=n},CF=(n,s)=>z3(s)(n),kF=z3(0),EJ=z3(2),Z4=z3(1),RJ=(n=>s=>{const l=s;return G.from(l[V4]).exists(h=>h===n)})(0),DJ=()=>Object.freeze({length:0,item:n=>null}),H4=nv("mode"),$J=n=>{const s=n;return G.from(s[H4])},U4=n=>s=>{const l=s;l[H4]=n},AF=(n,s)=>U4(s)(n),PF=U4(0),nR=U4(2),MF=U4(1),EF=n=>s=>{const l=s;return G.from(l[H4]).exists(h=>h===n)},Yb=EF(0),_F=EF(1),LJ=(n,s)=>({...s,get length(){return s.length},add:(l,h)=>{if(Yb(n))if(M(l)){if(!U(h))return s.add(l,h)}else return s.add(l);return null},remove:l=>{Yb(n)&&s.remove(l)},clear:()=>{Yb(n)&&s.clear()}}),IJ=["none","copy","link","move"],NJ=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],rR=()=>{const n=new window.DataTransfer;let s="move",l="all";const h={get dropEffect(){return s},set dropEffect(O){Ze(IJ,O)&&(s=O)},get effectAllowed(){return l},set effectAllowed(O){RJ(h)&&Ze(NJ,O)&&(l=O)},get items(){return LJ(h,n.items)},get files(){return _F(h)?DJ():n.files},get types(){return n.types},setDragImage:(O,P,Z)=>{Yb(h)&&(tR(h,{image:O,x:P,y:Z}),n.setDragImage(O,P,Z))},getData:O=>_F(h)?"":n.getData(O),setData:(O,P)=>{Yb(h)&&n.setData(O,P)},clearData:O=>{Yb(h)&&n.clearData(O)}};return PF(h),h},Q2=n=>{const s=rR(),l=$J(n);return nR(n),kF(s),s.dropEffect=n.dropEffect,s.effectAllowed=n.effectAllowed,MJ(n).each(h=>s.setDragImage(h.image,h.x,h.y)),re(n.types,h=>{h!=="Files"&&s.setData(h,n.getData(h))}),re(n.files,h=>s.items.add(h)),z4(n).each(h=>{CF(s,h)}),l.each(h=>{AF(n,h),AF(s,h)}),s},BJ=n=>{const s=n.getData("text/html");return s===""?G.none():G.some(s)},RF=(n,s)=>n.setData("text/html",s),oR="x-tinymce/html",W4=ae(oR),sR="",QJ=n=>sR+n,DF=n=>n.replace(sR,""),$F=n=>n.indexOf(sR)!==-1,FJ=n=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(n),pce=(n,s)=>{let l="<"+n;const h=Xn(s,(O,P)=>P+'="'+Pg.encodeAllRaw(O)+'"');return h.length&&(l+=" "+h.join(" ")),l+">"},Y4=(n,s,l)=>{const h=n.split(/\n\n/),O=pce(s,l),P="",Z=Ie(h,he=>he.split(/\n/).join("
    ")),J=he=>O+he+P;return Z.length===1?Z[0]:Ie(Z,J).join("")},LF="%MCEPASTEBIN%",VJ=(n,s)=>{const{dom:l,selection:h}=n,O=n.getBody();s.set(h.getRng());const P=l.add(n.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},LF);Dr.browser.isFirefox()&&l.setStyle(P,"left",l.getStyle(O,"direction",!0)==="rtl"?65535:-65535),l.bind(P,"beforedeactivate focusin focusout",Z=>{Z.stopPropagation()}),P.focus(),h.select(P,!0)},zJ=(n,s)=>{const l=n.dom;if(aR(n)){let h;const O=s.get();for(;h=aR(n);)l.remove(h),l.unbind(h);O&&n.selection.setRng(O)}s.set(null)},aR=n=>n.dom.get("mcepastebin"),ZJ=n=>B(n)&&n.id==="mcepastebin",HJ=n=>{const s=n.dom,l=(Z,J)=>{Z.appendChild(J),s.remove(J,!0)},[h,...O]=se(n.getBody().childNodes,ZJ);re(O,Z=>{l(h,Z)});const P=s.select("div[id=mcepastebin]",h);for(let Z=P.length-1;Z>=0;Z--){const J=s.create("div");h.insertBefore(J,P[Z]),l(J,P[Z])}return h?h.innerHTML:""},IF=n=>n===LF,UJ=n=>{const s=ni(null);return{create:()=>VJ(n,s),remove:()=>zJ(n,s),getEl:()=>aR(n),getHtml:()=>HJ(n),getLastRng:s.get}},NF=(n,s)=>(fr.each(s,l=>{R(l,RegExp)?n=n.replace(l,""):n=n.replace(l[0],l[1])}),n),WJ=n=>{const s=Cm(),l=Vh({},s);let h="";const O=s.getVoidElements(),P=fr.makeMap("script noscript style textarea video audio iframe object"," "),Z=s.getBlockElements(),J=he=>{const _e=he.name,Ge=he;if(_e==="br"){h+=` +`;return}if(_e!=="wbr"){if(O[_e]&&(h+=" "),P[_e]){h+=" ";return}if(he.type===3&&(h+=he.value),!(he.name in s.getVoidElements())){let qe=he.firstChild;if(qe)do J(qe);while(qe=qe.next)}Z[_e]&&Ge.next&&(h+=` +`,_e==="p"&&(h+=` +`))}};return n=NF(n,[//g]),J(l.parse(n)),h},BF=n=>(n=NF(n,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/|/g,[/( ?)\u00a0<\/span>( ?)/g,(l,h,O)=>!h&&!O?" ":zs],/
    /g,/
    $/i]),n),YJ=n=>{let s=0;return()=>n+s++},XJ=n=>{const s=n.toLowerCase(),l={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return fr.hasOwn(l,s)?"image/"+l[s]:"image/"+s},$a=(n,s)=>{const l=Vh({sanitize:L0(n),sandbox_iframes:Tx(n)},n.schema);l.addNodeFilter("meta",O=>{fr.each(O,P=>{P.remove()})});const h=l.parse(s,{forced_root_block:!1,isRootContent:!0});return s1({validate:!0},n.schema).serialize(h)},QF=(n,s)=>({content:n,cancelled:s}),FF=(n,s,l)=>{const h=n.dom.create("div",{style:"display:none"},s),O=r_(n,h,l);return QF(O.node.innerHTML,O.isDefaultPrevented())},GJ=(n,s,l)=>{const h=n_(n,s,l),O=$a(n,h.content);return n.hasEventListeners("PastePostProcess")&&!h.isDefaultPrevented()?FF(n,O,l):QF(O,h.isDefaultPrevented())},iR=(n,s,l)=>GJ(n,s,l),X4=(n,s)=>(n.insertContent(s,{merge:Fw(n),paste:!0}),!0),lR=n=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(n),jJ=(n,s)=>lR(s)&&De(Zk(n),l=>ao(s.toLowerCase(),`.${l.toLowerCase()}`)),VF=(n,s,l)=>(n.undoManager.extra(()=>{l(n,s)},()=>{n.insertContent('')}),!0),cR=(n,s,l)=>(n.undoManager.extra(()=>{l(n,s)},()=>{n.execCommand("mceInsertLink",!1,s)}),!0),qJ=(n,s,l)=>!n.selection.isCollapsed()&&lR(s)?cR(n,s,l):!1,KJ=(n,s,l)=>jJ(n,s)?VF(n,s,l):!1,JJ=(n,s)=>{fr.each([qJ,KJ,X4],l=>!l(n,s,X4))},zF=(n,s,l)=>{l||!Vk(n)?X4(n,s):JJ(n,s)},eee=YJ("mceclip"),tee=n=>{const s=rR();return RF(s,n),nR(s),s},Xb=(n,s,l,h,O)=>{const P=iR(n,s,l);if(!P.cancelled){const Z=P.content,J=()=>zF(n,Z,h);O?F7(n,"insertFromPaste",{dataTransfer:tee(Z)}).isDefaultPrevented()||(J(),B3(n,"insertFromPaste")):J()}},G4=(n,s,l,h)=>{const O=l||$F(s);Xb(n,DF(s),O,!1,h)},T1=(n,s,l)=>{const h=n.dom.encode(s).replace(/\r\n/g,` +`),O=Ki(h,TE(n)),P=Y4(O,Ec(n),Yy(n));Xb(n,P,!1,!0,l)},F2=n=>{const s={};if(n&&n.types)for(let l=0;ls in n&&n[s].length>0,ZF=n=>C1(n,"text/html")||C1(n,"text/plain"),V2=(n,s)=>{const l=s.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return B(l)?n.dom.encode(l[1]):void 0},nee=(n,s,l,h)=>{const O=eee(),P=Xy(n)&&B(l.name),Z=P?V2(n,l.name):O,J=P?l.name:void 0,he=s.create(O,l,h,Z,J);return s.add(he),he},uR=(n,s)=>{v5(s.uri).each(({data:l,type:h,base64Encoded:O})=>{const P=O?l:btoa(l),Z=s.file,J=n.editorUpload.blobCache,he=J.getByData(P,h),_e=he??nee(n,J,Z,P);G4(n,``,!1,!0)})},fR=n=>n.type==="paste",HF=n=>Promise.all(Ie(n,s=>eX(s).then(l=>({file:s,uri:l})))),dR=n=>{const s=Zk(n);return l=>Sr(l.type,"image/")&&De(s,h=>XJ(h)===l.type)},UF=(n,s)=>{const l=s.items?ze(tt(s.items),O=>O.kind==="file"?[O.getAsFile()]:[]):[],h=s.files?tt(s.files):[];return se(l.length>0?l:h,dR(n))},WF=(n,s,l)=>{const h=fR(s)?s.clipboardData:s.dataTransfer;if(xx(n)&&h){const O=UF(n,h);if(O.length>0)return s.preventDefault(),HF(O).then(P=>{l&&n.selection.setRng(l),re(P,Z=>{uR(n,Z)})}),!0}return!1},ree=n=>{var s,l;return Dr.os.isAndroid()&&((l=(s=n.clipboardData)===null||s===void 0?void 0:s.items)===null||l===void 0?void 0:l.length)===0},YF=n=>Wr.metaKeyPressed(n)&&n.keyCode===86||n.shiftKey&&n.keyCode===45,Z3=(n,s,l,h,O)=>{let P=BF(l);const Z=C1(s,W4())||$F(l),J=!Z&&FJ(P),he=lR(P);(IF(P)||!P.length||J&&!he)&&(h=!0),(h||he)&&(C1(s,"text/plain")&&J?P=s["text/plain"]:P=WJ(P)),!IF(P)&&(h?T1(n,P,O):G4(n,P,Z,O))},hR=(n,s,l)=>{let h;const O=()=>s.getLastRng()||n.selection.getRng();n.on("keydown",P=>{YF(P)&&!P.isDefaultPrevented()&&(h=P.shiftKey&&P.keyCode===86)}),n.on("paste",P=>{if(P.isDefaultPrevented()||ree(P))return;const Z=l.get()==="text"||h;h=!1;const J=F2(P.clipboardData);!ZF(J)&&WF(n,P,O())||(C1(J,"text/html")?(P.preventDefault(),Z3(n,J,J["text/html"],Z,!0)):C1(J,"text/plain")&&C1(J,"text/uri-list")?(P.preventDefault(),Z3(n,J,J["text/plain"],Z,!0)):(s.create(),fd.setEditorTimeout(n,()=>{const he=s.getHtml();s.remove(),Z3(n,J,he,Z,!1)},0)))})},XF=n=>{const s=O=>Sr(O,"webkit-fake-url"),l=O=>Sr(O,"data:"),h=O=>{var P;return((P=O.data)===null||P===void 0?void 0:P.paste)===!0};n.parser.addNodeFilter("img",(O,P,Z)=>{if(!xx(n)&&h(Z))for(const J of O){const he=J.attr("src");M(he)&&!J.attr("data-mce-object")&&he!==Dr.transparentSrc&&(s(he)||!Sx(n)&&l(he))&&J.remove()}})},oee=(n,s,l)=>{hR(n,s,l),XF(n)},see=(n,s)=>{s.get()==="text"?(s.set("html"),OA(n,!1)):(s.set("text"),OA(n,!0)),n.focus()},mR=(n,s)=>{n.addCommand("mceTogglePlainTextPaste",()=>{see(n,s)}),n.addCommand("mceInsertClipboardContent",(l,h)=>{h.html&&G4(n,h.html,h.internal,!1),h.text&&T1(n,h.text,!1)})},gR=(n,s,l)=>{if(n)try{return n.clearData(),n.setData("text/html",s),n.setData("text/plain",l),n.setData(W4(),s),!0}catch{return!1}else return!1},GF=(n,s,l,h)=>{gR(n.clipboardData,s.html,s.text)?(n.preventDefault(),h()):l(s.html,h)},pR=n=>(s,l)=>{const{dom:h,selection:O}=n,P=h.create("div",{contenteditable:"false","data-mce-bogus":"all"}),Z=h.create("div",{contenteditable:"true"},s);h.setStyles(P,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),P.appendChild(Z),h.add(n.getBody(),P);const J=O.getRng();Z.focus();const he=h.createRng();he.selectNodeContents(Z),O.setRng(he),fd.setEditorTimeout(n,()=>{O.setRng(J),h.remove(P),l()},0)},vR=n=>({html:QJ(n.selection.getContent({contextual:!0})),text:n.selection.getContent({format:"text"})}),aee=n=>!!n.dom.getParent(n.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",n.getBody()),yR=n=>!n.selection.isCollapsed()||aee(n),iee=n=>s=>{!s.isDefaultPrevented()&&yR(n)&&n.selection.isEditable()&&GF(s,vR(n),pR(n),()=>{if(Dr.browser.isChromium()||Dr.browser.isFirefox()){const l=n.selection.getRng();fd.setEditorTimeout(n,()=>{n.selection.setRng(l),n.execCommand("Delete")},0)}else n.execCommand("Delete")})},lee=n=>s=>{!s.isDefaultPrevented()&&yR(n)&&GF(s,vR(n),pR(n),ie)},cee=n=>{n.on("cut",iee(n)),n.on("copy",lee(n))},jF=(n,s)=>{var l,h;return Ot.getCaretRangeFromPoint((l=s.clientX)!==null&&l!==void 0?l:0,(h=s.clientY)!==null&&h!==void 0?h:0,n.getDoc())},uee=n=>{const s=n["text/plain"];return s?s.indexOf("file://")===0:!1},H3=(n,s)=>{n.focus(),s&&n.selection.setRng(s)},fee=n=>De(n.files,s=>/^image\//.test(s.type)),qF=(n,s,l,h)=>{const O=n.getParent(l,Z=>ks(s,Z));if(!F(n.getParent(l,"summary")))return!0;if(O&&it(h,"text/html")){const Z=new DOMParser().parseFromString(h["text/html"],"text/html").body;return!F(Z.querySelector(O.nodeName.toLowerCase()))}else return!1},dee=n=>{n.on("input",s=>{const l=h=>F(h.querySelector("summary"));if(s.inputType==="deleteByDrag"){const h=se(n.dom.select("details"),l);re(h,O=>{aa(O.firstChild)&&O.firstChild.remove();const P=n.dom.create("summary");P.appendChild(Cc().dom),O.prepend(P)})}})},bR=(n,s)=>{SE(n)&&n.on("dragend dragover draggesture dragdrop drop drag",l=>{l.preventDefault(),l.stopPropagation()}),xx(n)||n.on("drop",l=>{const h=l.dataTransfer;h&&fee(h)&&l.preventDefault()}),n.on("drop",l=>{if(l.isDefaultPrevented())return;const h=jF(n,l);if(Q(h))return;const O=F2(l.dataTransfer),P=C1(O,W4());if((!ZF(O)||uee(O))&&WF(n,l,h))return;const Z=O[W4()],J=Z||O["text/html"]||O["text/plain"],he=qF(n.dom,n.schema,h.startContainer,O),_e=s.get();_e&&!he||J&&(l.preventDefault(),fd.setEditorTimeout(n,()=>{n.undoManager.transact(()=>{(Z||_e&&he)&&n.execCommand("Delete"),H3(n,h);const Ge=BF(J);O["text/html"]?G4(n,Ge,P,!0):T1(n,Ge,!0)})}))}),n.on("dragstart",l=>{s.set(!0)}),n.on("dragover dragend",l=>{xx(n)&&!s.get()&&(l.preventDefault(),H3(n,jF(n,l))),l.type==="dragend"&&s.set(!1)}),dee(n)},KF=n=>{const s=O=>P=>{O(n,P)},l=wE(n);E(l)&&n.on("PastePreProcess",s(l));const h=Fk(n);E(h)&&n.on("PastePostProcess",s(h))},hee=(n,s)=>{n.on("PastePreProcess",l=>{l.content=s(n,l.content,l.internal)})},mee=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,JF=n=>fr.trim(n).replace(mee,d0).toLowerCase(),gee=(n,s,l)=>{const h=Bw(n);if(l||h==="all"||!Qw(n))return s;const O=h?h.split(/[, ]/):[];if(O&&h!=="none"){const P=n.dom,Z=n.selection.getNode();s=s.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(J,he,_e,Ge)=>{const qe=P.parseStyle(P.decode(_e)),ot={};for(let Vt=0;Vt]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return s=s.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(P,Z,J,he)=>Z+' style="'+J+'"'+he),s},pee=n=>{(Dr.browser.isChromium()||Dr.browser.isSafari())&&hee(n,gee)},eV=n=>{const s=ni(!1),l=ni(Vw(n)?"text":"html"),h=UJ(n);pee(n),mR(n,l),KF(n),n.on("PreInit",()=>{cee(n),bR(n,s),oee(n,h,l)})},vee=n=>{n.on("click",s=>{n.dom.getParent(s.target,"details")&&s.preventDefault()})},yee=n=>{n.parser.addNodeFilter("details",s=>{const l=_l(n);re(s,h=>{l==="expanded"?h.attr("open","open"):l==="collapsed"&&h.attr("open",null)})}),n.serializer.addNodeFilter("details",s=>{const l=r9(n);re(s,h=>{l==="expanded"?h.attr("open","open"):l==="collapsed"&&h.attr("open",null)})})},bee=n=>{vee(n),yee(n)},Oee=aa,tV=lr,xee=n=>Os(n.dom),See=n=>Zl(n.dom),j4=n=>s=>Gs(Yt.fromDom(n),s),nV=(n,s,l)=>wu(Yt.fromDom(n),h=>See(h)||l.isBlock(Vs(h)),j4(s)).getOr(Yt.fromDom(s)).dom,rV=(n,s)=>wu(Yt.fromDom(n),xee,j4(s)),oV=(n,s,l)=>{const h=new ca(n,s),O=l?h.next.bind(h):h.prev.bind(h);let P=n;for(let Z=l?n:O();Z&&!Oee(Z);Z=O())go(Z)&&(P=Z);return P},wee=(n,s,l)=>{const O=Nn.fromRangeStart(n).getNode(),P=nV(O,s,l),Z=oV(O,P,!1),J=oV(O,P,!0),he=document.createRange();return rV(Z,P).fold(()=>{tV(Z)?he.setStart(Z,0):he.setStartBefore(Z)},_e=>he.setStartBefore(_e.dom)),rV(J,P).fold(()=>{tV(J)?he.setEnd(J,J.data.length):he.setEndAfter(J)},_e=>he.setEndAfter(_e.dom)),he},Tee=n=>{const s=wee(n.selection.getRng(),n.getBody(),n.schema);n.selection.setRng(a2(s))},Cee=n=>{n.on("mousedown",s=>{s.detail>=3&&(s.preventDefault(),Tee(n))})};var z2;(function(n){n.Before="before",n.After="after"})(z2||(z2={}));const kee=(n,s)=>Math.abs(n.left-s),q4=(n,s)=>Math.abs(n.right-s),sV=(n,s)=>n>=s.top&&n<=s.bottom,Aee=(n,s)=>n.tops.top,aV=(n,s)=>{const l=XM(n,s)/Math.min(n.height,s.height);return Aee(n,s)&&l>.5},iV=(n,s)=>{const l=se(n,h=>sV(s,h));return YM(l).fold(()=>[[],n],h=>{const{pass:O,fail:P}=te(n,Z=>aV(Z,h));return[O,P]})},OR=(n,s)=>({node:n.node,position:kee(n,s)s>n.left&&s{const h=Ge=>go(Ge.node)?G.some(Ge):Xr(Ge.node)?K4(tt(Ge.node.childNodes),s,l):G.none(),O=(Ge,qe)=>{if(Ge.length>=2){const ot=h(Ge[0]).getOr(Ge[0]),Et=h(Ge[1]).getOr(Ge[1]);if(Math.abs(qe(ot,s,l)-qe(Et,s,l))<2){if(lr(ot.node))return G.some(ot);if(lr(Et.node))return G.some(Et)}}return G.none()},P=(Ge,qe)=>{const ot=je(Ge,(Et,Vt)=>qe(Et,s,l)-qe(Vt,s,l));return O(ot,qe).orThunk(()=>wt(ot,h))},[Z,J]=iV(mB(n),l),{pass:he,fail:_e}=te(J,Ge=>Ge.topP(_e,cw)).orThunk(()=>P(he,cw))},Mee=(n,s,l,h)=>{const O=(P,Z)=>{const J=_e=>Xr(_e)&&_e.classList.contains("mce-drag-container"),he=se(P.dom.childNodes,be(J));return Z.fold(()=>K4(he,l,h),_e=>{const Ge=se(he,qe=>qe!==_e.dom);return K4(Ge,l,h)}).orThunk(()=>(Gs(P,n)?G.none():yg(P)).bind(Ge=>O(Ge,G.some(P))))};return O(s,G.none())},lV=(n,s,l)=>{const h=Yt.fromDom(n),O=qf(h),Z=Yt.fromPoint(O,s,l).filter(J=>tc(h,J)).getOr(h);return Mee(h,Z,s,l)},cV=(n,s,l)=>lV(n,s,l).filter(h=>B0(h.node)).map(h=>OR(h,s)),xR=n=>{var s,l;const h=n.getBoundingClientRect(),O=n.ownerDocument,P=O.documentElement,Z=O.defaultView;return{top:h.top+((s=Z==null?void 0:Z.scrollY)!==null&&s!==void 0?s:0)-P.clientTop,left:h.left+((l=Z==null?void 0:Z.scrollX)!==null&&l!==void 0?l:0)-P.clientLeft}},Eee=n=>n.inline?xR(n.getBody()):{left:0,top:0},_ee=n=>{const s=n.getBody();return n.inline?{left:s.scrollLeft,top:s.scrollTop}:{left:0,top:0}},Ree=n=>{const s=n.getBody(),l=n.getDoc().documentElement,h={left:s.scrollLeft,top:s.scrollTop},O={left:s.scrollLeft||l.scrollLeft,top:s.scrollTop||l.scrollTop};return n.inline?h:O},U3=(n,s)=>{if(s.target.ownerDocument!==n.getDoc()){const l=xR(n.getContentAreaContainer()),h=Ree(n);return{left:s.pageX-l.left+h.left,top:s.pageY-l.top+h.top}}return{left:s.pageX,top:s.pageY}},Dee=(n,s,l)=>({pageX:l.left-n.left+s.left,pageY:l.top-n.top+s.top}),$ee=(n,s)=>Dee(Eee(n),_ee(n),U3(n,s)),SR=n=>({target:n,srcElement:n}),Lee=(n,s,l,h)=>({...s,dataTransfer:h,type:n,...SR(l)}),Iee=(n,s,l)=>{const h=Te("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:n,composedPath:h,initEvent:h,preventDefault:ie,stopImmediatePropagation:ie,stopPropagation:ie,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:h,initMouseEvent:h,getModifierState:h,dataTransfer:l,...SR(s)}},Nee=(n,s)=>{const l=Q2(n);return s==="dragstart"?(kF(l),PF(l)):s==="drop"?(EJ(l),nR(l)):(Z4(l),MF(l)),l},Bee=(n,s,l,h)=>{const O=Nee(l,n);return U(h)?Iee(n,s,O):Lee(n,h,s,O)},J4=32,eP=100,W3=8,Y3=16,uV=Os,Qee=GM(uV,Zl),Fee=(n,s,l)=>uV(l)&&l!==s&&n.isEditable(l.parentElement),vce=(n,s,l)=>Q(s)||s===l||n.dom.isChildOf(s,l)?!1:n.dom.isEditable(s),Vee=(n,s,l,h)=>{const O=n.dom,P=s.cloneNode(!0);O.setStyles(P,{width:l,height:h}),O.setAttrib(P,"data-mce-selected",null);const Z=O.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return O.setStyles(Z,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:l,height:h}),O.setStyles(P,{margin:0,boxSizing:"border-box"}),Z.appendChild(P),Z},wR=(n,s)=>{n.parentNode!==s&&s.appendChild(n)},Z2=(n,s)=>l=>()=>{const h=n==="left"?l.scrollX:l.scrollY;l.scroll({[n]:h+s,behavior:"smooth"})},X3=Z2("left",-J4),fV=Z2("left",J4),dV=Z2("top",-J4),TR=Z2("top",J4),zee=(n,s,l,h,O,P,Z,J,he,_e,Ge,qe)=>{let ot=0,Et=0;n.style.left=s.pageX+"px",n.style.top=s.pageY+"px",s.pageX+l>O&&(ot=s.pageX+l-O),s.pageY+h>P&&(Et=s.pageY+h-P),n.style.width=l-ot+"px",n.style.height=h-Et+"px";const Vt=he.clientHeight,kt=he.clientWidth,It=Z+he.getBoundingClientRect().top,cn=J+he.getBoundingClientRect().left;Ge.on(xn=>{xn.intervalId.clear(),xn.dragging&&qe&&(Z+W3>=Vt?xn.intervalId.set(TR(_e)):Z-W3<=0?xn.intervalId.set(dV(_e)):J+W3>=kt?xn.intervalId.set(fV(_e)):J-W3<=0?xn.intervalId.set(X3(_e)):It+Y3>=window.innerHeight?xn.intervalId.set(TR(window)):It-Y3<=0?xn.intervalId.set(dV(window)):cn+Y3>=window.innerWidth?xn.intervalId.set(fV(window)):cn-Y3<=0&&xn.intervalId.set(X3(window)))})},tP=n=>{n&&n.parentNode&&n.parentNode.removeChild(n)},hV=(n,s)=>{const l=n.getParent(s.parentNode,n.isBlock);tP(s),l&&l!==n.getRoot()&&n.isEmpty(l)&&D(Yt.fromDom(l))},Zee=n=>n.button===0,Hee=(n,s)=>({pageX:s.pageX-n.relX,pageY:s.pageY+5}),mV=(n,s)=>l=>{if(Zee(l)){const h=le(s.dom.getParents(l.target),Qee).getOr(null);if(B(h)&&Fee(s.dom,s.getBody(),h)){const O=s.dom.getPos(h),P=s.getBody(),Z=s.getDoc().documentElement;n.set({element:h,dataTransfer:rR(),dragging:!1,screenX:l.screenX,screenY:l.screenY,maxX:(s.inline?P.scrollWidth:Z.offsetWidth)-2,maxY:(s.inline?P.scrollHeight:Z.offsetHeight)-2,relX:l.pageX-O.x,relY:l.pageY-O.y,width:h.offsetWidth,height:h.offsetHeight,ghost:Vee(s,h,h.offsetWidth,h.offsetHeight),intervalId:UM(eP)})}}},Uee=(n,s,l)=>{n._selectionOverrides.hideFakeCaret(),cV(n.getBody(),s,l).fold(()=>n.selection.placeCaretAt(s,l),h=>{const O=n._selectionOverrides.showCaret(1,h.node,h.position===z2.Before,!1);O?n.selection.setRng(O):n.selection.placeCaretAt(s,l)})},nP=(n,s,l,h,O)=>{s==="dragstart"&&RF(h,n.dom.getOuterHTML(l));const P=Bee(s,l,h,O);return n.dispatch(s,P)},Wee=(n,s)=>{const l=By((O,P)=>Uee(s,O,P),0);s.on("remove",l.cancel);const h=n;return O=>n.on(P=>{const Z=Math.max(Math.abs(O.screenX-P.screenX),Math.abs(O.screenY-P.screenY));if(!P.dragging&&Z>10){const J=nP(s,"dragstart",P.element,P.dataTransfer,O);if(B(J.dataTransfer)&&(P.dataTransfer=J.dataTransfer),J.isDefaultPrevented())return;P.dragging=!0,s.focus()}if(P.dragging){const J=O.currentTarget===s.getDoc().documentElement,he=Hee(P,$ee(s,O));wR(P.ghost,s.getBody()),zee(P.ghost,he,P.width,P.height,P.maxX,P.maxY,O.clientY,O.clientX,s.getContentAreaContainer(),s.getWin(),h,J),l.throttle(O.clientX,O.clientY)}})},Yee=n=>{const s=n.getSel();if(B(s)){const h=s.getRangeAt(0).startContainer;return lr(h)?h.parentNode:h}else return null},Xee=(n,s)=>l=>{n.on(h=>{var O;if(h.intervalId.clear(),h.dragging){if(vce(s,Yee(s.selection),h.element)){const P=(O=s.getDoc().elementFromPoint(l.clientX,l.clientY))!==null&&O!==void 0?O:s.getBody();nP(s,"drop",P,h.dataTransfer,l).isDefaultPrevented()||s.undoManager.transact(()=>{hV(s.dom,h.element),BJ(h.dataTransfer).each(J=>s.insertContent(J)),s._selectionOverrides.hideFakeCaret()})}nP(s,"dragend",s.getBody(),h.dataTransfer,l)}}),kR(n)},CR=(n,s,l)=>{n.on(h=>{h.intervalId.clear(),h.dragging&&l.fold(()=>nP(s,"dragend",h.element,h.dataTransfer),O=>nP(s,"dragend",h.element,h.dataTransfer,O))}),kR(n)},Gee=(n,s)=>l=>CR(n,s,G.some(l)),kR=n=>{n.on(s=>{s.intervalId.clear(),tP(s.ghost)}),n.clear()},jee=n=>{const s=_g(),l=Da.DOM,h=document,O=mV(s,n),P=Wee(s,n),Z=Xee(s,n),J=Gee(s,n);n.on("mousedown",O),n.on("mousemove",P),n.on("mouseup",Z),l.bind(h,"mousemove",P),l.bind(h,"mouseup",J),n.on("remove",()=>{l.unbind(h,"mousemove",P),l.unbind(h,"mouseup",J)}),n.on("keydown",he=>{he.keyCode===Wr.ESC&&CR(s,n,G.none())})},qee=n=>{const s=O=>{if(!O.isDefaultPrevented()){const P=O.dataTransfer;P&&(Ze(P.types,"Files")||P.files.length>0)&&(O.preventDefault(),O.type==="drop"&&N5(n,"Dropped file type is not supported"))}},l=O=>{$A(n,O.target)&&s(O)},h=()=>{const O=Da.DOM,P=n.dom,Z=document,J=n.inline?n.getBody():n.getDoc(),he=["drop","dragover"];re(he,_e=>{O.bind(Z,_e,l),P.bind(J,_e,s)}),n.on("remove",()=>{re(he,_e=>{O.unbind(Z,_e,l),P.unbind(J,_e,s)})})};n.on("init",()=>{fd.setEditorTimeout(n,h,0)})},Kee=n=>{jee(n),Ox(n)&&qee(n)},Jee=n=>{const s=By(()=>{if(!n.removed&&n.getBody().contains(document.activeElement)){const l=n.selection.getRng();if(l.collapsed){const h=C2(n,l,!1);n.selection.setRng(h)}}},0);n.on("focus",()=>{s.throttle()}),n.on("blur",()=>{s.cancel()})},ete=n=>{n.on("init",()=>{n.on("focusin",s=>{const l=s.target;if(ei(l)){const h=Lb(n.getBody(),l),O=Os(h)?h:l;n.selection.getNode()!==O&&T2(n,O).each(P=>n.selection.setRng(P))}})})},H2=Os,tte=(n,s)=>Lb(n.getBody(),s),nte=n=>{const s=n.selection,l=n.dom,h=n.getBody(),O=Xw(n,h,l.isBlock,()=>o1(n)),P="sel-"+l.uniqueId(),Z="data-mce-selected";let J;const he=Qr=>B(Qr)&&l.hasClass(Qr,"mce-offscreen-selection"),_e=Qr=>Qr!==h&&(H2(Qr)||ei(Qr))&&l.isChildOf(Qr,h)&&l.isEditable(Qr.parentNode),Ge=Qr=>{Qr&&s.setRng(Qr)},qe=(Qr,zn,Bn,tr=!0)=>n.dispatch("ShowCaret",{target:zn,direction:Qr,before:Bn}).isDefaultPrevented()?null:(tr&&s.scrollIntoView(zn,Qr===-1),O.show(Bn,zn)),ot=Qr=>{Qr.hasAttribute("data-mce-caret")&&(Pn(Qr),s.scrollIntoView(Qr))},Et=()=>{n.on("click",zn=>{l.isEditable(zn.target)||(zn.preventDefault(),n.focus())}),n.on("blur NewBlock",$n),n.on("ResizeWindow FullscreenStateChanged",O.reposition),n.on("tap",zn=>{const Bn=zn.target,tr=tte(n,Bn);H2(tr)?(zn.preventDefault(),T2(n,tr).each(bn)):_e(Bn)&&T2(n,Bn).each(bn)},!0),n.on("mousedown",zn=>{const Bn=zn.target;if(Bn!==h&&Bn.nodeName!=="HTML"&&!l.isChildOf(Bn,h)||!RG(n,zn.clientX,zn.clientY))return;$n(),gr();const tr=tte(n,Bn);H2(tr)?(zn.preventDefault(),T2(n,tr).each(bn)):cV(h,zn.clientX,zn.clientY).each(eo=>{zn.preventDefault();const po=qe(1,eo.node,eo.position===z2.Before,!1);Ge(po),zl(tr)?tr.focus():n.getBody().focus()})}),n.on("keypress",zn=>{Wr.modifierPressed(zn)||H2(s.getNode())&&zn.preventDefault()}),n.on("GetSelectionRange",zn=>{let Bn=zn.range;if(J){if(!J.parentNode){J=null;return}Bn=Bn.cloneRange(),Bn.selectNode(J),zn.range=Bn}}),n.on("SetSelectionRange",zn=>{zn.range=It(zn.range);const Bn=bn(zn.range,zn.forward);Bn&&(zn.range=Bn)});const Qr=zn=>Xr(zn)&&zn.id==="mcepastebin";n.on("AfterSetSelectionRange",zn=>{const Bn=zn.range,tr=Bn.startContainer.parentElement;!kt(Bn)&&!Qr(tr)&&gr(),he(tr)||$n()}),Kee(n),Jee(n),ete(n)},Vt=Qr=>bt(Qr)||tn(Qr)||hn(Qr),kt=Qr=>Vt(Qr.startContainer)||Vt(Qr.endContainer),It=Qr=>{const zn=n.schema.getVoidElements(),Bn=l.createRng(),tr=Qr.startContainer,eo=Qr.startOffset,po=Qr.endContainer,ls=Qr.endOffset;return it(zn,tr.nodeName.toLowerCase())?eo===0?Bn.setStartBefore(tr):Bn.setStartAfter(tr):Bn.setStart(tr,eo),it(zn,po.nodeName.toLowerCase())?ls===0?Bn.setEndBefore(po):Bn.setEndAfter(po):Bn.setEnd(po,ls),Bn},cn=(Qr,zn)=>{const Bn=Yt.fromDom(n.getBody()),tr=n.getDoc(),eo=Sc(Bn,"#"+P).getOrThunk(()=>{const ys=Yt.fromHtml('
    ',tr);return Ra(ys,"id",P),Ci(Bn,ys),ys}),po=l.createRng();bh(eo),Ta(eo,[Yt.fromText(zs,tr),Yt.fromDom(zn),Yt.fromText(zs,tr)]),po.setStart(eo.dom.firstChild,1),po.setEnd(eo.dom.lastChild,0),nc(eo,{top:l.getPos(Qr,n.getBody()).y+"px"}),AA(eo);const ls=s.getSel();return ls&&(ls.removeAllRanges(),ls.addRange(po)),po},xn=Qr=>{const zn=Qr.cloneNode(!0),Bn=n.dispatch("ObjectSelected",{target:Qr,targetClone:zn});if(Bn.isDefaultPrevented())return null;const tr=cn(Qr,Bn.targetClone),eo=Yt.fromDom(Qr);return re(sl(Yt.fromDom(n.getBody()),`*[${Z}]`),po=>{Gs(eo,po)||ci(po,Z)}),l.getAttrib(Qr,Z)||Qr.setAttribute(Z,"1"),J=Qr,gr(),tr},bn=(Qr,zn)=>{if(!Qr)return null;if(Qr.collapsed){if(!kt(Qr)){const po=zn?1:-1,ls=zg(po,h,Qr),ys=ls.getNode(!zn);if(B(ys)){if(B0(ys))return qe(po,ys,zn?!ls.isAtEnd():!1,!1);if(vt(ys)&&Os(ys.nextSibling)){const $s=l.createRng();return $s.setStart(ys,0),$s.setEnd(ys,0),$s}}const ma=ls.getNode(zn);if(B(ma)){if(B0(ma))return qe(po,ma,zn?!1:!ls.isAtEnd(),!1);if(vt(ma)&&Os(ma.previousSibling)){const $s=l.createRng();return $s.setStart(ma,1),$s.setEnd(ma,1),$s}}}return null}let Bn=Qr.startContainer,tr=Qr.startOffset;const eo=Qr.endOffset;if(lr(Bn)&&tr===0&&H2(Bn.parentNode)&&(Bn=Bn.parentNode,tr=l.nodeIndex(Bn),Bn=Bn.parentNode),!Xr(Bn))return null;if(eo===tr+1&&Bn===Qr.endContainer){const po=Bn.childNodes[tr];if(_e(po))return xn(po)}return null},$n=()=>{J&&J.removeAttribute(Z),Sc(Yt.fromDom(n.getBody()),"#"+P).each(Ks),J=null},rr=()=>{O.destroy(),J=null},gr=()=>{O.hide()};return Cv(n)||Et(),{showCaret:qe,showBlockCaretContainer:ot,hideFakeCaret:gr,destroy:rr}},gV=(n,s)=>{let l=s;for(let h=n.previousSibling;lr(h);h=h.previousSibling)l+=h.data.length;return l},pV=(n,s,l,h,O)=>{if(lr(l)&&(h<0||h>l.data.length))return[];const P=O&&lr(l)?[gV(l,h)]:[h];let Z=l;for(;Z!==s&&Z.parentNode;)P.push(n.nodeIndex(Z,O)),Z=Z.parentNode;return Z===s?P.reverse():[]},G3=(n,s,l,h,O,P,Z=!1)=>{const J=pV(n,s,l,h,Z),he=pV(n,s,O,P,Z);return{start:J,end:he}},vV=(n,s)=>{const l=s.slice(),h=l.pop();return W(h)?oe(l,(P,Z)=>P.bind(J=>G.from(J.childNodes[Z])),G.some(n)).bind(P=>lr(P)&&(h<0||h>P.data.length)?G.none():G.some({node:P,offset:h})):G.none()},yV=(n,s)=>vV(n,s.start).bind(({node:l,offset:h})=>vV(n,s.end).map(({node:O,offset:P})=>{const Z=document.createRange();return Z.setStart(l,h),Z.setEnd(O,P),Z})),rte=(n,s,l,h=!1)=>G3(n,s,l.startContainer,l.startOffset,l.endContainer,l.endOffset,h),Gb=(n,s,l)=>{if(s&&n.isEmpty(s)&&!l(s)){const h=s.parentNode;n.remove(s,lr(s.firstChild)&&Ba(s.firstChild.data)),Gb(n,h,l)}},jb=(n,s,l,h=!0)=>{const O=s.startContainer.parentNode,P=s.endContainer.parentNode;s.deleteContents(),h&&!l(s.startContainer)&&(lr(s.startContainer)&&s.startContainer.data.length===0&&n.remove(s.startContainer),lr(s.endContainer)&&s.endContainer.data.length===0&&n.remove(s.endContainer),Gb(n,O,l),O!==P&&Gb(n,P,l))},rP=(n,s)=>G.from(n.dom.getParent(s.startContainer,n.dom.isBlock)),AR=(n,s,l)=>{const h=n.dynamicPatternsLookup({text:l,block:s});return{...n,blockPatterns:px(h).concat(n.blockPatterns),inlinePatterns:Tw(h).concat(n.inlinePatterns)}},bV=(n,s,l,h)=>{const O=n.createRng();return O.setStart(s,0),O.setEnd(l,h),O.toString()},ote=n=>/^\s[^\s]/.test(n),PR=(n,s,l)=>{vQ(s,0,s).each(O=>{const P=O.container;O4(P,l.start.length,s).each(he=>{const _e=n.createRng();_e.setStart(P,0),_e.setEnd(he.container,he.offset),jb(n,_e,Ge=>Ge===s)});const Z=Yt.fromDom(P),J=su(Z);ote(J)&&rc(Z,J.slice(1))})},ste=(n,s)=>{const l=n.dom,h=s.pattern,O=yV(l.getRoot(),s.range).getOrDie("Unable to resolve path range"),P=(Z,J)=>{const he=J.get(Z);return N(he)&&yt(he).exists(_e=>it(_e,"block"))};return rP(n,O).each(Z=>{h.type==="block-format"?P(h.format,n.formatter)&&n.undoManager.transact(()=>{PR(n.dom,Z,h),n.formatter.apply(h.format)}):h.type==="block-command"&&n.undoManager.transact(()=>{PR(n.dom,Z,h),n.execCommand(h.cmd,!1,h.value)})}),!0},ate=n=>je(n,(s,l)=>l.start.length-s.start.length),ite=(n,s)=>{const l=ate(n),h=s.replace(zs," ");return le(l,O=>s.indexOf(O.start)===0||h.indexOf(O.start)===0)},MR=(n,s,l,h)=>{var O;const P=n.dom,Z=Ec(n);if(!P.is(s,Z))return[];const J=(O=s.textContent)!==null&&O!==void 0?O:"";return ite(l.blockPatterns,J).map(he=>fr.trim(J).length===he.start.length?[]:[{pattern:he,range:G3(P,P.getRoot(),s,0,s,0,h)}]).getOr([])},lte=(n,s)=>{if(s.length===0)return;const l=n.selection.getBookmark();re(s,h=>ste(n,h)),n.selection.moveToBookmark(l)},OV=(n,s)=>n.create("span",{"data-mce-type":"bookmark",id:s}),oP=(n,s)=>{const l=n.createRng();return l.setStartAfter(s.start),l.setEndBefore(s.end),l},xV=(n,s,l)=>{const h=yV(n.getRoot(),l).getOrDie("Unable to resolve path range"),O=h.startContainer,P=h.endContainer,Z=h.endOffset===0?P:P.splitText(h.endOffset),J=h.startOffset===0?O:O.splitText(h.startOffset),he=J.parentNode,_e=Z.parentNode;return{prefix:s,end:_e.insertBefore(OV(n,s+"-end"),Z),start:he.insertBefore(OV(n,s+"-start"),J)}},SV=(n,s,l)=>{Gb(n,n.get(s.prefix+"-end"),l),Gb(n,n.get(s.prefix+"-start"),l)},ER=n=>n.start.length===0,wV=n=>(s,l)=>{const O=s.data.substring(0,l),P=O.lastIndexOf(n.charAt(n.length-1)),Z=O.lastIndexOf(n);return Z!==-1?Z+n.length:P!==-1?P+1:-1},_R=(n,s,l,h)=>{const O=s.start;return E3(n,h.container,h.offset,wV(O),l).bind(Z=>{var J,he;const _e=(he=(J=l.textContent)===null||J===void 0?void 0:J.indexOf(O))!==null&&he!==void 0?he:-1;if(_e!==-1&&Z.offset>=_e+O.length){const qe=n.createRng();return qe.setStart(Z.container,Z.offset-O.length),qe.setEnd(Z.container,Z.offset),G.some(qe)}else{const qe=Z.offset-O.length;return M3(Z.container,qe,l).map(ot=>{const Et=n.createRng();return Et.setStart(ot.container,ot.offset),Et.setEnd(Z.container,Z.offset),Et}).filter(ot=>ot.toString()===O).orThunk(()=>_R(n,s,l,Wh(Z.container,0)))}})},RR=(n,s,l,h,O,P=!1)=>{if(s.start.length===0&&!P){const Z=n.createRng();return Z.setStart(l,h),Z.setEnd(l,h),G.some(Z)}return P3(l,h,O).bind(Z=>_R(n,s,O,Z).bind(he=>{var _e;if(P){if(he.endContainer===Z.container&&he.endOffset===Z.offset)return G.none();if(Z.offset===0&&((_e=he.endContainer.textContent)===null||_e===void 0?void 0:_e.length)===he.endOffset)return G.none()}return G.some(he)}))},DR=(n,s,l,h)=>{const O=n.dom,P=O.getRoot(),Z=l.pattern,J=l.position.container,he=l.position.offset;return M3(J,he-l.pattern.end.length,s).bind(_e=>{const Ge=G3(O,P,_e.container,_e.offset,J,he,h);if(ER(Z))return G.some({matches:[{pattern:Z,startRng:Ge,endRng:Ge}],position:_e});{const qe=sP(n,l.remainingPatterns,_e.container,_e.offset,s,h),ot=qe.getOr({matches:[],position:_e}),Et=ot.position;return RR(O,Z,Et.container,Et.offset,s,qe.isNone()).map(kt=>{const It=rte(O,P,kt,h);return{matches:ot.matches.concat([{pattern:Z,startRng:It,endRng:Ge}]),position:Wh(kt.startContainer,kt.startOffset)}})}})},sP=(n,s,l,h,O,P)=>{const Z=n.dom;return P3(l,h,Z.getRoot()).bind(J=>{const he=bV(Z,O,l,h);for(let _e=0;_e0)return sP(n,s,l,h-1,O,P);if(ot.isSome())return ot}return G.none()})},aP=(n,s,l)=>{n.selection.setRng(l),s.type==="inline-format"?re(s.format,h=>{n.formatter.apply(h)}):n.execCommand(s.cmd,!1,s.value)},cte=(n,s,l,h)=>{const O=oP(n.dom,l);jb(n.dom,O,h),aP(n,s,O)},ute=(n,s,l,h,O)=>{const P=n.dom,Z=oP(P,h),J=oP(P,l);jb(P,J,O),jb(P,Z,O);const he={prefix:l.prefix,start:l.end,end:h.start},_e=oP(P,he);aP(n,s,_e)},TV=(n,s)=>{const l=nv("mce_textpattern"),h=ue(s,(O,P)=>{const Z=xV(n,l+`_end${O.length}`,P.endRng);return O.concat([{...P,endMarker:Z}])},[]);return ue(h,(O,P)=>{const Z=h.length-O.length-1,J=ER(P.pattern)?P.endMarker:xV(n,l+`_start${Z}`,P.startRng);return O.concat([{...P,startMarker:J}])},[])},fte=n=>je(n,(s,l)=>l.end.length-s.end.length),dte=(n,s)=>{const l=Xe(n,h=>De(s,O=>h.pattern.start===O.pattern.start&&h.pattern.end===O.pattern.end));return n.length===s.length?l?n:s:n.length>s.length?n:s},CV=(n,s,l,h,O,P)=>{const Z=sP(n,O.inlinePatterns,l,h,s,P).fold(()=>[],he=>he.matches),J=sP(n,fte(O.inlinePatterns),l,h,s,P).fold(()=>[],he=>he.matches);return dte(Z,J)},kV=(n,s)=>{if(s.length===0)return;const l=n.dom,h=n.selection.getBookmark(),O=TV(l,s);re(O,P=>{const Z=l.getParent(P.startMarker.start,l.isBlock),J=he=>he===Z;ER(P.pattern)?cte(n,P.pattern,P.endMarker,J):ute(n,P.pattern,P.startMarker,P.endMarker,J),SV(l,P.endMarker,J),SV(l,P.startMarker,J)}),n.selection.moveToBookmark(h)},hte=(n,s)=>{const l=n.selection.getRng();return rP(n,l).map(h=>{var O;const P=Math.max(0,l.startOffset),Z=AR(s,h,(O=h.textContent)!==null&&O!==void 0?O:""),J=CV(n,h,l.startContainer,P,Z,!0),he=MR(n,h,Z,!0);return he.length>0||J.length>0?(n.undoManager.add(),n.undoManager.extra(()=>{n.execCommand("mceInsertNewLine")},()=>{Re(n),kV(n,J),lte(n,he);const _e=n.selection.getRng(),Ge=P3(_e.startContainer,_e.startOffset,n.dom.getRoot());n.execCommand("mceInsertNewLine"),Ge.each(qe=>{const ot=qe.container;ot.data.charAt(qe.offset-1)===Cg&&(ot.deleteData(qe.offset-1,1),Gb(n.dom,ot.parentNode,Et=>Et===n.dom.getRoot()))})}),!0):!1}).getOr(!1)},mte=(n,s)=>{const l=n.selection.getRng();rP(n,l).map(h=>{const O=Math.max(0,l.startOffset-1),P=bV(n.dom,h,l.startContainer,O),Z=AR(s,h,P),J=CV(n,h,l.startContainer,O,Z,!1);J.length>0&&n.undoManager.transact(()=>{kV(n,J)})})},AV=(n,s,l)=>{for(let h=0;hAV(n,s,(l,h)=>l===h.keyCode&&!Wr.modifierPressed(h)),gte=(n,s)=>AV(n,s,(l,h)=>l.charCodeAt(0)===h.charCode),$R=n=>{const s=[",",".",";",":","!","?"],l=[32],h=()=>lu(wx(n),CE(n)),O=()=>Hw(n);n.on("keydown",Z=>{if(Z.keyCode===13&&!Wr.modifierPressed(Z)&&n.selection.isCollapsed()){const J=h();(J.inlinePatterns.length>0||J.blockPatterns.length>0||O())&&hte(n,J)&&Z.preventDefault()}},!0);const P=()=>{if(n.selection.isCollapsed()){const Z=h();(Z.inlinePatterns.length>0||O())&&mte(n,Z)}};n.on("keyup",Z=>{PV(l,Z)&&P()}),n.on("keypress",Z=>{gte(s,Z)&&fd.setEditorTimeout(n,P)})},pte=n=>{$R(n)},vte=n=>{const s=fr.each,l=Wr.BACKSPACE,h=Wr.DELETE,O=n.dom,P=n.selection,Z=n.parser,J=Dr.browser,he=J.isFirefox(),_e=J.isChromium()||J.isSafari(),Ge=Dr.deviceType.isiPhone()||Dr.deviceType.isiPad(),qe=Dr.os.isMacOS()||Dr.os.isiOS(),ot=(ro,Lo)=>{try{n.getDoc().execCommand(ro,!1,String(Lo))}catch{}},Et=ro=>ro.isDefaultPrevented(),Vt=()=>{const ro=yr=>{const Bo=O.create("body"),Ls=yr.cloneContents();return Bo.appendChild(Ls),P.serializer.serialize(Bo,{format:"html"})},Lo=yr=>{const Bo=ro(yr),Ls=O.createRng();Ls.selectNode(n.getBody());const Aa=ro(Ls);return Bo===Aa};n.on("keydown",yr=>{const Bo=yr.keyCode;if(!Et(yr)&&(Bo===h||Bo===l)&&n.selection.isEditable()){const Ls=n.selection.isCollapsed(),Aa=n.getBody();if(Ls&&!ta(Yt.fromDom(Aa))||!Ls&&!Lo(n.selection.getRng()))return;yr.preventDefault(),n.setContent(""),Aa.firstChild&&O.isBlock(Aa.firstChild)?n.selection.setCursorLocation(Aa.firstChild,0):n.selection.setCursorLocation(Aa,0),n.nodeChanged()}})},kt=()=>{n.shortcuts.add("meta+a",null,"SelectAll")},It=()=>{n.inline||O.bind(n.getDoc(),"mousedown mouseup",ro=>{let Lo;if(ro.target===n.getDoc().documentElement)if(Lo=P.getRng(),n.getBody().focus(),ro.type==="mousedown"){if(bt(Lo.startContainer))return;P.placeCaretAt(ro.clientX,ro.clientY)}else P.setRng(Lo)})},cn=()=>{n.on("keydown",ro=>{if(!Et(ro)&&ro.keyCode===l){if(!n.getBody().getElementsByTagName("hr").length)return;if(P.isCollapsed()&&P.getRng().startOffset===0){const Lo=P.getNode(),yr=Lo.previousSibling;if(Lo.nodeName==="HR"){O.remove(Lo),ro.preventDefault();return}yr&&yr.nodeName&&yr.nodeName.toLowerCase()==="hr"&&(O.remove(yr),ro.preventDefault())}}})},xn=()=>{Range.prototype.getClientRects||n.on("mousedown",ro=>{if(!Et(ro)&&ro.target.nodeName==="HTML"){const Lo=n.getBody();Lo.blur(),fd.setEditorTimeout(n,()=>{Lo.focus()})}})},bn=()=>{const ro=Nk(n);n.on("click",Lo=>{const yr=Lo.target;/^(IMG|HR)$/.test(yr.nodeName)&&O.isEditable(yr)&&(Lo.preventDefault(),n.selection.select(yr),n.nodeChanged()),yr.nodeName==="A"&&O.hasClass(yr,ro)&&yr.childNodes.length===0&&O.isEditable(yr.parentNode)&&(Lo.preventDefault(),P.select(yr))})},$n=()=>{const ro=()=>{const yr=O.getAttribs(P.getStart().cloneNode(!1));return()=>{const Bo=P.getStart();Bo!==n.getBody()&&(O.setAttrib(Bo,"style",null),s(yr,Ls=>{Bo.setAttributeNode(Ls.cloneNode(!0))}))}},Lo=()=>!P.isCollapsed()&&O.getParent(P.getStart(),O.isBlock)!==O.getParent(P.getEnd(),O.isBlock);n.on("keypress",yr=>{let Bo;return!Et(yr)&&(yr.keyCode===8||yr.keyCode===46)&&Lo()?(Bo=ro(),n.getDoc().execCommand("delete",!1),Bo(),yr.preventDefault(),!1):!0}),O.bind(n.getDoc(),"cut",yr=>{if(!Et(yr)&&Lo()){const Bo=ro();fd.setEditorTimeout(n,()=>{Bo()})}})},rr=()=>{n.on("keydown",ro=>{if(!Et(ro)&&ro.keyCode===l&&P.isCollapsed()&&P.getRng().startOffset===0){const Lo=P.getNode().previousSibling;if(Lo&&Lo.nodeName&&Lo.nodeName.toLowerCase()==="table")return ro.preventDefault(),!1}return!0})},gr=()=>{n.on("keydown",ro=>{if(Et(ro)||ro.keyCode!==Wr.BACKSPACE)return;let Lo=P.getRng();const yr=Lo.startContainer,Bo=Lo.startOffset,Ls=O.getRoot();let Aa=yr;if(!(!Lo.collapsed||Bo!==0)){for(;Aa.parentNode&&Aa.parentNode.firstChild===Aa&&Aa.parentNode!==Ls;)Aa=Aa.parentNode;Aa.nodeName==="BLOCKQUOTE"&&(n.formatter.toggle("blockquote",void 0,Aa),Lo=O.createRng(),Lo.setStart(yr,0),Lo.setEnd(yr,0),P.setRng(Lo))}})},Qr=()=>{const ro=()=>{ot("StyleWithCSS",!1),ot("enableInlineTableEditing",!1),E0(n)||ot("enableObjectResizing",!1)};qy(n)||n.on("BeforeExecCommand mousedown",ro)},zn=()=>{const ro=()=>{s(O.select("a:not([data-mce-block])"),Lo=>{var yr;let Bo=Lo.parentNode;const Ls=O.getRoot();if((Bo==null?void 0:Bo.lastChild)===Lo){for(;Bo&&!O.isBlock(Bo);){if(((yr=Bo.parentNode)===null||yr===void 0?void 0:yr.lastChild)!==Bo||Bo===Ls)return;Bo=Bo.parentNode}O.add(Bo,"br",{"data-mce-bogus":1})}})};n.on("SetContent ExecCommand",Lo=>{(Lo.type==="setcontent"||Lo.command==="mceInsertLink")&&ro()})},Bn=()=>{n.on("init",()=>{ot("DefaultParagraphSeparator",Ec(n))})},tr=ro=>{const Lo=ro.getBody(),yr=ro.selection.getRng();return yr.startContainer===yr.endContainer&&yr.startContainer===Lo&&yr.startOffset===0&&yr.endOffset===Lo.childNodes.length},eo=()=>{n.on("keyup focusin mouseup",ro=>{!Wr.modifierPressed(ro)&&!tr(n)&&P.normalize()},!0)},po=()=>{n.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},ls=()=>{n.inline||n.on("keydown",()=>{document.activeElement===document.body&&n.getWin().focus()})},ys=()=>{n.inline||(n.contentStyles.push("body {min-height: 150px}"),n.on("click",ro=>{let Lo;ro.target.nodeName==="HTML"&&(Lo=n.selection.getRng(),n.getBody().focus(),n.selection.setRng(Lo),n.selection.normalize(),n.nodeChanged())}))},ma=()=>{qe&&n.on("keydown",ro=>{Wr.metaKeyPressed(ro)&&!ro.shiftKey&&(ro.keyCode===37||ro.keyCode===39)&&(ro.preventDefault(),n.selection.getSel().modify("move",ro.keyCode===37?"backward":"forward","lineboundary"))})},$s=()=>{n.on("click",ro=>{let Lo=ro.target;do if(Lo.tagName==="A"){ro.preventDefault();return}while(Lo=Lo.parentNode)}),n.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},hi=()=>{n.on("init",()=>{n.dom.bind(n.getBody(),"submit",ro=>{ro.preventDefault()})})},uc=()=>{Z.addNodeFilter("br",ro=>{let Lo=ro.length;for(;Lo--;)ro[Lo].attr("class")==="Apple-interchange-newline"&&ro[Lo].remove()})},ga=ie,Cr=()=>{if(!he||n.removed)return!1;const ro=n.selection.getSel();return!ro||!ro.rangeCount||ro.rangeCount===0},co=()=>{_e&&(It(),bn(),hi(),kt(),Ge&&(ls(),ys(),$s())),he&&(xn(),Qr(),po(),ma())},Zs=()=>{n.on("drop",ro=>{var Lo;const yr=(Lo=ro.dataTransfer)===null||Lo===void 0?void 0:Lo.getData("text/html");M(yr)&&/^]*>$/.test(yr)&&n.dispatch("dragend",new window.DragEvent("dragend",ro))})},Ss=()=>{gr(),Vt(),Dr.windowsPhone||eo(),_e&&(It(),bn(),Bn(),hi(),rr(),uc(),Ge?(ls(),ys(),$s()):kt()),he&&(cn(),xn(),$n(),Qr(),zn(),po(),ma(),rr(),Zs())};return Cv(n)?co():Ss(),{refreshContentEditable:ga,isHidden:Cr}},LR=Da.DOM,yte=(n,s)=>{const l=Yt.fromDom(n.getBody()),h=LO(Pf(l)),O=Yt.fromTag("style");Ra(O,"type","text/css"),Ci(O,Yt.fromText(s)),Ci(h,O),n.on("remove",()=>{Ks(O)})},bte=n=>n.inline?n.getElement().nodeName.toLowerCase():void 0,IR=n=>wn(n,s=>U(s)===!1),j3=n=>{const s=n.options.get,l=n.editorUpload.blobCache;return IR({allow_conditional_comments:s("allow_conditional_comments"),allow_html_data_urls:s("allow_html_data_urls"),allow_svg_data_urls:s("allow_svg_data_urls"),allow_html_in_named_anchor:s("allow_html_in_named_anchor"),allow_script_urls:s("allow_script_urls"),allow_unsafe_link_target:s("allow_unsafe_link_target"),convert_unsafe_embeds:s("convert_unsafe_embeds"),convert_fonts_to_spans:s("convert_fonts_to_spans"),fix_list_elements:s("fix_list_elements"),font_size_legacy_values:s("font_size_legacy_values"),forced_root_block:s("forced_root_block"),forced_root_block_attrs:s("forced_root_block_attrs"),preserve_cdata:s("preserve_cdata"),inline_styles:s("inline_styles"),root_name:bte(n),sandbox_iframes:s("sandbox_iframes"),sanitize:s("xss_sanitization"),validate:!0,blob_cache:l,document:n.getDoc()})},MV=n=>{const s=n.options.get;return IR({custom_elements:s("custom_elements"),extended_valid_elements:s("extended_valid_elements"),invalid_elements:s("invalid_elements"),invalid_styles:s("invalid_styles"),schema:s("schema"),valid_children:s("valid_children"),valid_classes:s("valid_classes"),valid_elements:s("valid_elements"),valid_styles:s("valid_styles"),verify_html:s("verify_html"),padd_empty_block_inline_children:s("format_empty_lines")})},Ote=n=>{const s=n.options.get;return{...j3(n),...MV(n),...IR({remove_trailing_brs:s("remove_trailing_brs"),pad_empty_with_br:s("pad_empty_with_br"),url_converter:s("url_converter"),url_converter_scope:s("url_converter_scope"),element_format:s("element_format"),entities:s("entities"),entity_encoding:s("entity_encoding"),indent:s("indent"),indent_after:s("indent_after"),indent_before:s("indent_before")})}},xte=n=>{const s=Vh(j3(n),n.schema);return s.addAttributeFilter("src,href,style,tabindex",(l,h)=>{const O=n.dom,P="data-mce-"+h;let Z=l.length;for(;Z--;){const J=l[Z];let he=J.attr(h);if(he&&!J.attr(P)){if(he.indexOf("data:")===0||he.indexOf("blob:")===0)continue;h==="style"?(he=O.serializeStyle(O.parseStyle(he),J.name),he.length||(he=null),J.attr(P,he),J.attr(h,he)):h==="tabindex"?(J.attr(P,he),J.attr(h,null)):J.attr(P,n.convertURL(he,h,J.name))}}}),s.addNodeFilter("script",l=>{let h=l.length;for(;h--;){const O=l[h],P=O.attr("type")||"no/type";P.indexOf("mce-")!==0&&O.attr("type","mce-"+P)}}),Zw(n)&&s.addNodeFilter("#cdata",l=>{var h;let O=l.length;for(;O--;){const P=l[O];P.type=8,P.name="#comment",P.value="[CDATA["+n.dom.encode((h=P.value)!==null&&h!==void 0?h:"")+"]]"}}),s.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",l=>{let h=l.length;const O=n.schema.getNonEmptyElements();for(;h--;){const P=l[h];P.isEmpty(O)&&P.getAll("br").length===0&&P.append(new hu("br",1))}}),s},Ste=n=>{const s=Bk(n);s&&fd.setEditorTimeout(n,()=>{let l;s===!0?l=n:l=n.editorManager.get(s),l&&!l.destroyed&&(l.focus(),l.selection.scrollIntoView())},100)},wte=n=>{const s=n.dom.getRoot();!n.inline&&(!Ix(n)||n.selection.getStart(!0)===s)&&Xc(s).each(l=>{const h=l.getNode(),O=ju(h)?Xc(h).getOr(l):l;n.selection.setRng(O.toRange())})},Tte=n=>{n.bindPendingEventDelegates(),n.initialized=!0,xb(n),n.focus(!0),wte(n),n.nodeChanged({initial:!0});const s=bE(n);E(s)&&s.call(n,n),Ste(n)},NR=n=>n.inline?n.ui.styleSheetLoader:n.dom.styleSheetLoader,Cte=(n,s,l)=>{const{pass:h,fail:O}=te(s,J=>tinymce.Resource.has(w6(J))),Z=[...h.map(J=>{const he=tinymce.Resource.get(w6(J));return M(he)?Promise.resolve(NR(n).loadRawCss(J,he)):Promise.resolve()}),NR(n).loadAll(O)];return n.inline?Z:Z.concat([n.ui.styleSheetLoader.loadAll(l)])},EV=n=>{const s=NR(n),l=Ek(n),h=n.contentCSS,O=()=>{s.unloadAll(h),n.inline||n.ui.styleSheetLoader.unloadAll(l)},P=()=>{n.removed?O():n.on("remove",O)};if(n.contentStyles.length>0){let he="";fr.each(n.contentStyles,_e=>{he+=_e+`\r +`}),n.dom.addStyle(he)}const Z=Promise.all(Cte(n,h,l)).then(P).catch(P),J=yx(n);return J&&yte(n,J),Z},_V=n=>{const s=n.getDoc(),l=n.getBody();Yg(n),xE(n)||(s.body.spellcheck=!1,LR.setAttrib(l,"spellcheck","false")),n.quirks=vte(n),JE(n);const h=uE(n);h!==void 0&&(l.dir=h);const O=Qk(n);O&&n.on("BeforeSetContent",P=>{fr.each(O,Z=>{P.content=P.content.replace(Z,J=>"")})}),n.on("SetContent",()=>{n.addVisual(n.getBody())}),n.on("compositionstart compositionend",P=>{n.composing=P.type==="compositionstart"})},kte=n=>{Cv(n)||n.load({initial:!0,format:"html"}),n.startContent=n.getContent({format:"raw"})},iP=n=>{n.removed!==!0&&(kte(n),Tte(n))},Ate=n=>{let s=!1;const l=setTimeout(()=>{s||n.setProgressState(!0)},500);return()=>{clearTimeout(l),s=!0,n.setProgressState(!1)}},RV=n=>{const s=n.getElement();let l=n.getDoc();n.inline&&(LR.addClass(s,"mce-content-body"),n.contentDocument=l=document,n.contentWindow=window,n.bodyElement=s,n.contentAreaContainer=s);const h=n.getBody();h.disabled=!0,n.readonly=qy(n),n._editableRoot=Lf(n),!n.readonly&&n.hasEditableRoot()&&(n.inline&&LR.getStyle(h,"position",!0)==="static"&&(h.style.position="relative"),h.contentEditable="true"),h.disabled=!1,n.editorUpload=jG(n),n.schema=Cm(MV(n)),n.dom=Da(l,{keep_values:!0,url_converter:n.convertURL,url_converter_scope:n,update_styles:!0,root_element:n.inline?n.getBody():null,collect:n.inline,schema:n.schema,contentCssCors:Em(n),referrerPolicy:gs(n),onSetAttrib:Z=>{n.dispatch("SetAttrib",Z)},force_hex_color:I0(n)}),n.parser=xte(n),n.serializer=yN(Ote(n),n),n.selection=d1(n.dom,n.getWin(),n.serializer,n),n.annotator=mT(n),n.formatter=zb(n),n.undoManager=m3(n),n._nodeChangeDispatcher=new TF(n),n._selectionOverrides=nte(n),ZB(n),bee(n),qle(n),Cv(n)||(Cee(n),pte(n));const O=PJ(n);f4(n,O),WB(n),KG(n),eV(n);const P=WX(n);_V(n),P.fold(()=>{const Z=Ate(n);EV(n).then(()=>{iP(n),Z()})},Z=>{n.setProgressState(!0),EV(n).then(()=>{Z().then(J=>{n.setProgressState(!1),iP(n),v6(n)},J=>{n.notificationManager.open({type:"error",text:String(J)}),iP(n),v6(n)})})})},DV=pe,q3=(n,s,l)=>pm(n,s,DV,l),BR=Da.DOM,$V=(n,s,l,h)=>{const O=Yt.fromTag("iframe");return h.each(P=>Ra(O,"tabindex",P)),Su(O,l),Su(O,{id:n+"_ifr",frameBorder:"0",allowTransparency:"true",title:s}),cm(O,"tox-edit-area__iframe"),O},Pte=n=>{let s=kk(n)+"";kw(n)!==n.documentBaseUrl&&(s+=''),s+='';const l=Aw(n),h=nE(n),O=n.translate(yE(n));return Pw(n)&&(s+=''),s+=`
    `,s},Mte=(n,s)=>{const l=n.translate("Rich Text Area"),h=bc(Yt.fromDom(n.getElement()),"tabindex").bind(Ft),O=$V(n.id,l,Cw(n),h).dom;O.onload=()=>{O.onload=null,n.dispatch("load")},n.contentAreaContainer=s.iframeContainer,n.iframeElement=O,n.iframeHTML=Pte(n),BR.add(s.iframeContainer,O)},Ete=n=>{const s=n.iframeElement,l=()=>{n.contentDocument=s.contentDocument,RV(n)};if(PE(n)||Dr.browser.isFirefox()){const h=n.getDoc();h.open(),h.write(n.iframeHTML),h.close(),l()}else{const h=q3(Yt.fromDom(s),"load",()=>{h.unbind(),l()});s.srcdoc=n.iframeHTML}},_te=(n,s)=>{Mte(n,s),s.editorContainer&&(s.editorContainer.style.display=n.orgDisplay,n.hidden=BR.isHidden(s.editorContainer)),n.getElement().style.display="none",BR.setAttrib(n.id,"aria-hidden","true"),n.getElement().style.visibility=n.orgVisibility,Ete(n)},QR=Da.DOM,Rte=(n,s,l)=>{const h=Fb.get(l),O=Fb.urls[l]||n.documentBaseUrl.replace(/\/$/,"");if(l=fr.trim(l),h&&fr.inArray(s,l)===-1){if(n.plugins[l])return;try{const P=h(n,O)||{};n.plugins[l]=P,E(P.init)&&(P.init(n,O),s.push(l))}catch(P){EN(n,l,P)}}},LV=n=>n.replace(/^\-/,""),Dte=n=>{const s=[];re(Ky(n),l=>{Rte(n,s,LV(l))})},$te=n=>{const s=fr.trim(Ew(n)),l=n.ui.registry.getAll().icons,h={...u3.get("default").icons,...u3.get(s).icons};Bt(h,(O,P)=>{it(l,P)||n.ui.registry.addIcon(P,O)})},Lte=n=>{const s=_0(n);if(M(s)){const l=kv.get(s);n.theme=l(n,kv.urls[s])||{},E(n.theme.init)&&n.theme.init(n,kv.urls[s]||n.documentBaseUrl.replace(/\/$/,""))}else n.theme={}},Ite=n=>{const s=Lw(n),l=eh.get(s);n.model=l(n,eh.urls[s])},Nte=n=>{const s=n.theme.renderUI;return s?s():NV(n)},Bte=n=>{const s=n.getElement(),h=_0(n)(n,s);return h.editorContainer.nodeType&&(h.editorContainer.id=h.editorContainer.id||n.id+"_parent"),h.iframeContainer&&h.iframeContainer.nodeType&&(h.iframeContainer.id=h.iframeContainer.id||n.id+"_iframecontainer"),h.height=h.iframeHeight?h.iframeHeight:s.offsetHeight,h},IV=(n,s)=>({editorContainer:n,iframeContainer:s,api:{}}),Qte=n=>{const s=QR.create("div");return QR.insertAfter(s,n),IV(s,s)},NV=n=>{const s=n.getElement();return n.inline?IV(null):Qte(s)},BV=n=>{const s=n.getElement();return n.orgDisplay=s.style.display,M(_0(n))?Nte(n):E(_0(n))?Bte(n):NV(n)},FR=(n,s)=>{const l={show:G.from(s.show).getOr(ie),hide:G.from(s.hide).getOr(ie),isEnabled:G.from(s.isEnabled).getOr(pe),setEnabled:h=>{n.mode.isReadOnly()||G.from(s.setEnabled).each(O=>O(h))}};n.ui={...n.ui,...l}},QV=async n=>{n.dispatch("ScriptsLoaded"),$te(n),Lte(n),Ite(n),Dte(n);const s=await BV(n);FR(n,G.from(s.api).getOr({})),n.editorContainer=s.editorContainer,VG(n),n.inline?RV(n):_te(n,{editorContainer:s.editorContainer,iframeContainer:s.iframeContainer})},k1=Da.DOM,FV=n=>n.charAt(0)==="-",Fte=(n,s)=>{const l=Rw(s),h=_c(s);if(!sd.hasCode(l)&&l!=="en"){const O=St(h)?h:`${s.editorManager.baseURL}/langs/${l}.js`;n.add(O).catch(()=>{d3(s,O,l)})}},Vte=(n,s)=>{const l=_0(n);if(M(l)&&!FV(l)&&!it(kv.urls,l)){const h=hE(n),O=h?n.documentBaseURI.toAbsolute(h):`themes/${l}/theme${s}.js`;kv.load(l,O).catch(()=>{NG(n,O,l)})}},VV=(n,s)=>{const l=Lw(n);if(l!=="plugin"&&!it(eh.urls,l)){const h=Rk(n),O=M(h)?n.documentBaseURI.toAbsolute(h):`models/${l}/model${s}.js`;eh.load(l,O).catch(()=>{MN(n,O,l)})}},zV=n=>G.from(iv(n)).filter(St).map(s=>({url:s,name:G.none()})),ZV=(n,s,l)=>G.from(s).filter(h=>St(h)&&!u3.has(h)).map(h=>({url:`${n.editorManager.baseURL}/icons/${h}/icons${l}.js`,name:G.some(h)})),zte=(n,s,l)=>{const h=ZV(s,"default",l),O=zV(s).orThunk(()=>ZV(s,Ew(s),""));re(za([h,O]),P=>{n.add(P.url).catch(()=>{IG(s,P.url,P.name.getOrUndefined())})})},VR=(n,s)=>{const l=(h,O)=>{Fb.load(h,O).catch(()=>{Ule(n,O,h)})};Bt(Ng(n),(h,O)=>{l(O,h),n.options.set("plugins",Ky(n).concat(O))}),re(Ky(n),h=>{h=fr.trim(h),h&&!Fb.urls[h]&&!FV(h)&&l(h,`plugins/${h}/plugin${s}.js`)})},lP=n=>{const s=_0(n);return!M(s)||B(kv.get(s))},cP=n=>{const s=Lw(n);return B(eh.get(s))},Mv=(n,s)=>{const l=Ji.ScriptLoader,h=()=>{!n.removed&&lP(n)&&cP(n)&&QV(n)};Vte(n,s),VV(n,s),Fte(l,n),zte(l,n,s),VR(n,s),l.loadQueue().then(h,h)},uP=(n,s)=>GS.forElement(n,{contentCssCors:D0(s),referrerPolicy:gs(s)}),U2=n=>{const s=n.id;sd.setCode(Rw(n));const l=()=>{k1.unbind(window,"ready",l),n.render()};if(!Au.Event.domLoaded){k1.bind(window,"ready",l);return}if(!n.getElement())return;const h=Yt.fromDom(n.getElement()),O=Bp(h);n.on("remove",()=>{ye(h.dom.attributes,Z=>ci(h,Z.name)),Su(h,O)}),n.ui.styleSheetLoader=uP(h,n),Iw(n)?n.inline=!0:(n.orgVisibility=n.getElement().style.visibility,n.getElement().style.visibility="hidden");const P=n.getElement().form||k1.getParent(s,"form");P&&(n.formElement=P,gE(n)&&!o0(n.getElement())&&(k1.insertAfter(k1.create("input",{type:"hidden",name:s}),s),n.hasHiddenInput=!0),n.formEventDelegate=Z=>{n.dispatch(Z.type,Z)},k1.bind(P,"submit reset",n.formEventDelegate),n.on("reset",()=>{n.resetContent()}),Ik(n)&&!P.submit.nodeType&&!P.submit.length&&!P._mceOldSubmit&&(P._mceOldSubmit=P.submit,P.submit=()=>(n.editorManager.triggerSave(),n.setDirty(!1),P._mceOldSubmit(P)))),n.windowManager=PN(n),n.notificationManager=S6(n),_E(n)&&n.on("GetContent",Z=>{Z.save&&(Z.content=k1.encode(Z.content))}),Eh(n)&&n.on("submit",()=>{n.initialized&&n.save()}),Gy(n)&&(n._beforeUnload=()=>{n.initialized&&!n.destroyed&&!n.isHidden()&&n.save({format:"raw",no_events:!0,set_dirty:!1})},n.editorManager.on("BeforeUnload",n._beforeUnload)),n.editorManager.add(n),Mv(n,n.suffix)},HV=(n,s)=>{n._editableRoot!==s&&(n._editableRoot=s,n.readonly||(n.getBody().contentEditable=String(n.hasEditableRoot()),n.nodeChanged()),o_(n,s))},Zte=n=>n._editableRoot,Hte=(n,s)=>({sections:ae(n),options:ae(s)}),zR=ii().deviceType,UV=zR.isPhone(),ZR=zR.isTablet(),A1=n=>{if(Q(n))return[];{const s=N(n)?n:n.split(/[ ,]/),l=Ie(s,wr);return se(l,St)}},P1=(n,s)=>{const l=an(s,(h,O)=>Ze(n,O));return Hte(l.t,l.f)},qb=(n,s,l={})=>{const h=n.sections(),O=Sn(h,s).getOr({});return fr.extend({},l,O)},fP=(n,s)=>it(n.sections(),s),Ute=(n,s)=>fP(n,s)?n.sections()[s]:{},Wte=(n,s)=>({...{table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:Sn(n,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1},...s?{menubar:!1}:{}}),Yte=(n,s)=>{var l;const h=(l=s.external_plugins)!==null&&l!==void 0?l:{};return n&&n.external_plugins?fr.extend({},n.external_plugins,h):h},Xte=(n,s)=>[...A1(n),...A1(s)],Gte=(n,s,l,h)=>n&&fP(s,"mobile")?h:l,jte=(n,s,l,h)=>{const O=A1(l.forced_plugins),P=A1(h.plugins),Z=Ute(s,"mobile"),J=Z.plugins?A1(Z.plugins):P,he=Gte(n,s,P,J),_e=Xte(O,he);return fr.extend(h,{forced_plugins:O,plugins:_e})},WV=(n,s)=>n&&fP(s,"mobile"),qte=(n,s,l,h,O)=>{var P;const Z=n?{mobile:Wte((P=O.mobile)!==null&&P!==void 0?P:{},s)}:{},J=P1(["mobile"],I3(Z,O)),he=fr.extend(l,h,J.options(),WV(n,J)?qb(J,"mobile"):{},{external_plugins:Yte(h,J.options())});return jte(n,J,h,he)},Kte=(n,s)=>qte(UV||ZR,UV,s,n,s),Jte=(n,s)=>oG(n,s),yce=n=>{const s=(h,O)=>{n.formatter.toggle(h,O),n.nodeChanged()},l=h=>()=>{re("left,center,right,justify".split(","),O=>{h!==O&&n.formatter.remove("align"+O)}),h!=="none"&&s("align"+h)};n.editorCommands.addCommands({JustifyLeft:l("left"),JustifyCenter:l("center"),JustifyRight:l("right"),JustifyFull:l("justify"),JustifyNone:l("none")})},ene=n=>{const s=l=>()=>{const h=n.selection,O=h.isCollapsed()?[n.dom.getParent(h.getNode(),n.dom.isBlock)]:h.getSelectedBlocks();return De(O,P=>B(n.formatter.matchNode(P,l)))};n.editorCommands.addCommands({JustifyLeft:s("alignleft"),JustifyCenter:s("aligncenter"),JustifyRight:s("alignright"),JustifyFull:s("alignjustify")},"state")},HR=n=>{yce(n),ene(n)},tne=n=>{n.editorCommands.addCommands({"Cut,Copy,Paste":s=>{const l=n.getDoc();let h;try{l.execCommand(s)}catch{h=!0}if(s==="paste"&&!l.queryCommandEnabled(s)&&(h=!0),h||!l.queryCommandSupported(s)){let O=n.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(Dr.os.isMacOS()||Dr.os.isiOS())&&(O=O.replace(/Ctrl\+/g,"⌘+")),n.notificationManager.open({text:O,type:"error"})}}})},nne=(n,s,l,h)=>{const O=Yt.fromDom(n.getRoot());return e2(O,Nn.fromRangeStart(s),h)?l=l.replace(/^ /," "):l=l.replace(/^ /," "),t2(O,Nn.fromRangeEnd(s),h)?l=l.replace(/( | )()?$/," "):l=l.replace(/ ()?$/," "),l},YV=n=>{if(typeof n!="string"){const s=fr.extend({paste:n.paste,data:{paste:n.paste}},n);return{content:n.content,details:s}}return{content:n,details:{}}},rne=(n,s)=>{const l=n.selection,h=n.dom;return/^ | $/.test(s)?nne(h,l.getRng(),s,n.schema):s},K3=(n,s)=>{if(n.selection.isEditable()){const{content:l,details:h}=YV(s);G8(n,{...h,content:rne(n,l),format:"html",set:!1,selection:!0}).each(O=>{const P=nG(n,O.content,h);T5(n,P,O),n.addVisual()})}},one=n=>{n.editorCommands.addCommands({mceCleanup:()=>{const s=n.selection.getBookmark();n.setContent(n.getContent()),n.selection.moveToBookmark(s)},insertImage:(s,l,h)=>{K3(n,n.dom.createHTML("img",{src:h}))},insertHorizontalRule:()=>{n.execCommand("mceInsertContent",!1,"
    ")},insertText:(s,l,h)=>{K3(n,n.dom.encode(h))},insertHTML:(s,l,h)=>{K3(n,h)},mceInsertContent:(s,l,h)=>{K3(n,h)},mceSetContent:(s,l,h)=>{n.setContent(h)},mceReplaceContent:(s,l,h)=>{n.execCommand("mceInsertContent",!1,h.replace(/\{\$selection\}/g,n.selection.getContent({format:"text"})))},mceNewDocument:()=>{n.setContent($0(n))}})},UR={"font-size":"size","font-family":"face"},sne=xu("font"),ane=(n,s,l)=>{const h=P=>Hi(P,n).orThunk(()=>sne(P)?Sn(UR,n).bind(Z=>bc(P,Z)):G.none()),O=P=>Gs(Yt.fromDom(s),P);return Sv(Yt.fromDom(l),P=>h(P),O)},ine=n=>n.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),lne=(n,s)=>G.from(Da.DOM.getStyle(s,n,!0)),WR=n=>(s,l)=>G.from(l).map(Yt.fromDom).filter(kl).bind(h=>ane(n,s,h.dom).or(lne(n,h.dom))).getOr(""),YR=WR("font-size"),XV=L(ine,WR("font-family")),XR=n=>Xc(n.getBody()).bind(s=>{const l=s.container();return G.from(lr(l)?l.parentNode:l)}),cne=n=>G.from(n.selection.getRng()).bind(s=>{const l=n.getBody();return s.startContainer===l&&s.startOffset===0?G.none():G.from(n.selection.getStart(!0))}),bce=(n,s)=>cne(n).orThunk(ee(XR,n)).map(Yt.fromDom).filter(kl).bind(s),GV=(n,s)=>bce(n,me(G.some,s)),jV=(n,s)=>{if(/^[0-9.]+$/.test(s)){const l=parseInt(s,10);if(l>=1&&l<=7){const h=ME(n),O=EE(n);return O.length>0?O[l-1]||s:h[l-1]||s}else return s}else return s},qV=n=>{const s=n.split(/\s*,\s*/);return Ie(s,l=>l.indexOf(" ")!==-1&&!(Sr(l,'"')||Sr(l,"'"))?`'${l}'`:l).join(",")},une=(n,s)=>{const l=jV(n,s);n.formatter.toggle("fontname",{value:qV(l)}),n.nodeChanged()},fne=n=>GV(n,s=>XV(n.getBody(),s.dom)).getOr(""),dne=(n,s)=>{n.formatter.toggle("fontsize",{value:jV(n,s)}),n.nodeChanged()},Oce=n=>GV(n,s=>YR(n.getBody(),s.dom)).getOr(""),xce=n=>GV(n,s=>{const l=Yt.fromDom(n.getBody()),h=Sv(s,P=>Hi(P,"line-height"),ee(Gs,l)),O=()=>{const P=parseFloat(wi(s,"line-height")),Z=parseFloat(wi(s,"font-size"));return String(P/Z)};return h.getOrThunk(O)}).getOr(""),KV=(n,s)=>{n.formatter.toggle("lineheight",{value:String(s)}),n.nodeChanged()},JV=n=>{const s=(l,h)=>{n.formatter.toggle(l,h),n.nodeChanged()};n.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":l=>{s(l)},"ForeColor,HiliteColor":(l,h,O)=>{s(l,{value:O})},BackColor:(l,h,O)=>{s("hilitecolor",{value:O})},FontName:(l,h,O)=>{une(n,O)},FontSize:(l,h,O)=>{dne(n,O)},LineHeight:(l,h,O)=>{KV(n,O)},Lang:(l,h,O)=>{var P;s(l,{value:O.code,customValue:(P=O.customCode)!==null&&P!==void 0?P:null})},RemoveFormat:l=>{n.formatter.remove(l)},mceBlockQuote:()=>{s("blockquote")},FormatBlock:(l,h,O)=>{s(M(O)?O:"p")},mceToggleFormat:(l,h,O)=>{s(O)}})},hne=n=>{const s=l=>n.formatter.match(l);n.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":l=>s(l),mceBlockQuote:()=>s("blockquote")},"state"),n.editorCommands.addQueryValueHandler("FontName",()=>fne(n)),n.editorCommands.addQueryValueHandler("FontSize",()=>Oce(n)),n.editorCommands.addQueryValueHandler("LineHeight",()=>xce(n))},mne=n=>{JV(n),hne(n)},gne=n=>{n.editorCommands.addCommands({mceAddUndoLevel:()=>{n.undoManager.add()},mceEndUndoLevel:()=>{n.undoManager.add()},Undo:()=>{n.undoManager.undo()},Redo:()=>{n.undoManager.redo()}})},Sce=n=>{n.editorCommands.addCommands({Indent:()=>{FB(n)},Outdent:()=>{VB(n)}}),n.editorCommands.addCommands({Outdent:()=>IB(n)},"state")},wce=n=>{const s=(l,h,O)=>{const P=M(O)?{href:O}:O,Z=n.dom.getParent(n.selection.getNode(),"a");I(P)&&M(P.href)&&(P.href=P.href.replace(/ /g,"%20"),(!Z||!P.href)&&n.formatter.remove("link"),P.href&&n.formatter.apply("link",P,Z))};n.editorCommands.addCommands({unlink:()=>{if(n.selection.isEditable()){if(n.selection.isCollapsed()){const l=n.dom.getParent(n.selection.getStart(),"a");l&&n.dom.remove(l,!0);return}n.formatter.remove("link")}},mceInsertLink:s,createLink:s})},Tce=n=>{n.editorCommands.addCommands({"InsertUnorderedList,InsertOrderedList":s=>{n.getDoc().execCommand(s);const l=n.dom.getParent(n.selection.getNode(),"ol,ul");if(l){const h=l.parentNode;if(h&&/^(H[1-6]|P|ADDRESS|PRE)$/.test(h.nodeName)){const O=n.selection.getBookmark();n.dom.split(h,l),n.selection.moveToBookmark(O)}}}})},pne=n=>{n.editorCommands.addCommands({"InsertUnorderedList,InsertOrderedList":s=>{const l=n.dom.getParent(n.selection.getNode(),"ul,ol");return l&&(s==="insertunorderedlist"&&l.tagName==="UL"||s==="insertorderedlist"&&l.tagName==="OL")}},"state")},Cce=n=>{Tce(n),pne(n)},vne=(n,s,l,h)=>{const O=n.dom,P=J=>O.isBlock(J)&&J.parentElement===l,Z=P(s)?s:O.getParent(h,P,l);return G.from(Z).map(Yt.fromDom)},M1=(n,s)=>{const l=n.dom,h=n.selection.getRng(),O=s?n.selection.getStart():n.selection.getEnd(),P=s?h.startContainer:h.endContainer,Z=yd(l,P);if(!Z||!Z.isContentEditable)return;const J=s?Ui:Yu,he=Ec(n);vne(n,O,Z,P).each(_e=>{const Ge=z7(n,P,_e.dom,Z,!1,he);J(_e,Yt.fromDom(Ge)),n.selection.setCursorLocation(Ge,0),n.dispatch("NewBlock",{newBlock:Ge}),B3(n,"insertParagraph")})},GR=n=>M1(n,!0),dP=n=>M1(n,!1),ez=n=>{n.editorCommands.addCommands({InsertNewBlockBefore:()=>{GR(n)},InsertNewBlockAfter:()=>{dP(n)}})},tz=n=>{n.editorCommands.addCommands({insertParagraph:()=>{N4(aF,n)},mceInsertNewLine:(s,l,h)=>{fF(n,h)},InsertLineBreak:(s,l,h)=>{N4(dJ,n)}})},nz=n=>{n.editorCommands.addCommands({mceSelectNodeDepth:(s,l,h)=>{let O=0;n.dom.getParent(n.selection.getNode(),P=>Xr(P)&&O++===h?(n.selection.select(P),!1):!0,n.getBody())},mceSelectNode:(s,l,h)=>{n.selection.select(h)},selectAll:()=>{const s=n.dom.getParent(n.selection.getStart(),Zl);if(s){const l=n.dom.createRng();l.selectNodeContents(s),n.selection.setRng(l)}}})},yne=n=>{n.editorCommands.addCommands({mceRemoveNode:(s,l,h)=>{const O=h??n.selection.getNode();if(O!==n.getBody()){const P=n.selection.getBookmark();n.dom.remove(O,!0),n.selection.moveToBookmark(P)}},mcePrint:()=>{n.getWin().print()},mceFocus:(s,l,h)=>{lW(n,h===!0)},mceToggleVisualAid:()=>{n.hasVisual=!n.hasVisual,n.addVisual()}})},bne=n=>{HR(n),tne(n),gne(n),nz(n),one(n),wce(n),Sce(n),ez(n),tz(n),Cce(n),mne(n),yne(n)},One=["toggleview"],rz=n=>Ze(One,n.toLowerCase());class Ev{constructor(s){this.commands={state:{},exec:{},value:{}},this.editor=s}execCommand(s,l=!1,h,O){const P=this.editor,Z=s.toLowerCase(),J=O==null?void 0:O.skip_focus;if(P.removed||(Z!=="mcefocus"&&(!/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(Z)&&!J?P.focus():XU(P)),P.dispatch("BeforeExecCommand",{command:s,ui:l,value:h}).isDefaultPrevented()))return!1;const _e=this.commands.exec[Z];return E(_e)?(_e(Z,l,h),P.dispatch("ExecCommand",{command:s,ui:l,value:h}),!0):!1}queryCommandState(s){if(!rz(s)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const l=s.toLowerCase(),h=this.commands.state[l];return E(h)?h(l):!1}queryCommandValue(s){if(!rz(s)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const l=s.toLowerCase(),h=this.commands.value[l];return E(h)?h(l):""}addCommands(s,l="exec"){const h=this.commands;Bt(s,(O,P)=>{re(P.toLowerCase().split(","),Z=>{h[l][Z]=O})})}addCommand(s,l,h){const O=s.toLowerCase();this.commands.exec[O]=(P,Z,J)=>l.call(h??this.editor,Z,J)}queryCommandSupported(s){const l=s.toLowerCase();return!!this.commands.exec[l]}addQueryStateHandler(s,l,h){this.commands.state[s.toLowerCase()]=()=>l.call(h??this.editor)}addQueryValueHandler(s,l,h){this.commands.value[s.toLowerCase()]=()=>l.call(h??this.editor)}}const Kb="data-mce-contenteditable",oz=(n,s,l)=>{gh(n,s)&&!l?um(n,s):l&&cm(n,s)},jR=(n,s,l)=>{try{n.getDoc().execCommand(s,!1,String(l))}catch{}},Jb=(n,s)=>{n.dom.contentEditable=s?"true":"false"},xne=n=>{re(sl(n,'*[contenteditable="true"]'),s=>{Ra(s,Kb,"true"),Jb(s,!1)})},Sne=n=>{re(sl(n,`*[${Kb}="true"]`),s=>{ci(s,Kb),Jb(s,!0)})},wne=n=>{G.from(n.selection.getNode()).each(s=>{s.removeAttribute("data-mce-selected")})},sz=n=>{n.selection.setRng(n.selection.getRng())},Tne=(n,s)=>{const l=Yt.fromDom(n.getBody());oz(l,"mce-content-readonly",s),s?(n.selection.controlSelection.hideResizeRect(),n._selectionOverrides.hideFakeCaret(),wne(n),n.readonly=!0,Jb(l,!1),xne(l)):(n.readonly=!1,n.hasEditableRoot()&&Jb(l,!0),Sne(l),jR(n,"StyleWithCSS",!1),jR(n,"enableInlineTableEditing",!1),jR(n,"enableObjectResizing",!1),x9(n)&&n.focus(),sz(n),n.nodeChanged())},eO=n=>n.readonly,az=n=>{n.parser.addAttributeFilter("contenteditable",s=>{eO(n)&&re(s,l=>{l.attr(Kb,l.attr("contenteditable")),l.attr("contenteditable","false")})}),n.serializer.addAttributeFilter(Kb,s=>{eO(n)&&re(s,l=>{l.attr("contenteditable",l.attr(Kb))})}),n.serializer.addTempAttr(Kb)},qR=n=>{n.serializer?az(n):n.on("PreInit",()=>{az(n)})},Cne=n=>n.type==="click",kne=["copy"],Sl=n=>Ze(kne,n.type),Ane=(n,s)=>Mf(s,"a",h=>Gs(h,Yt.fromDom(n.getBody()))).bind(h=>bc(h,"href")),Pne=(n,s)=>{if(Cne(s)&&!Wr.metaKeyPressed(s)){const l=Yt.fromDom(s.target);Ane(n,l).each(h=>{if(s.preventDefault(),/^#/.test(h)){const O=n.dom.select(`${h},[name="${xr(h,"#")}"]`);O.length&&n.selection.scrollIntoView(O[0],!0)}else window.open(h,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else Sl(s)&&n.dispatch(s.type,s)},KR=n=>{n.on("ShowCaret",s=>{eO(n)&&s.preventDefault()}),n.on("ObjectSelected",s=>{eO(n)&&s.preventDefault()})},iz=fr.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class J3{static isNative(s){return!!iz[s.toLowerCase()]}constructor(s){this.bindings={},this.settings=s||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||ne}fire(s,l){return this.dispatch(s,l)}dispatch(s,l){const h=s.toLowerCase(),O=m0(h,l??{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(O);const P=this.bindings[h];if(P)for(let Z=0,J=P.length;Z{this.toggleEvent(he,!1),delete this.bindings[he]}),this;if(Z){if(!l)Z.length=0;else{const J=te(Z,he=>he.func===l);Z=J.fail,this.bindings[P]=Z,re(J.pass,he=>{he.removed=!0})}Z.length||(this.toggleEvent(s,!1),delete this.bindings[P])}}}else Bt(this.bindings,(h,O)=>{this.toggleEvent(O,!1)}),this.bindings={};return this}once(s,l,h){return this.on(s,l,h,{once:!0})}has(s){s=s.toLowerCase();const l=this.bindings[s];return!(!l||l.length===0)}}const eC=n=>(n._eventDispatcher||(n._eventDispatcher=new J3({scope:n,toggleEvent:(s,l)=>{J3.isNative(s)&&n.toggleNativeEvent&&n.toggleNativeEvent(s,l)}})),n._eventDispatcher),JR={fire(n,s,l){return this.dispatch(n,s,l)},dispatch(n,s,l){const h=this;if(h.removed&&n!=="remove"&&n!=="detach")return m0(n.toLowerCase(),s??{},h);const O=eC(h).dispatch(n,s);if(l!==!1&&h.parent){let P=h.parent();for(;P&&!O.isPropagationStopped();)P.dispatch(n,O,!1),P=P.parent?P.parent():void 0}return O},on(n,s,l){return eC(this).on(n,s,l)},off(n,s){return eC(this).off(n,s)},once(n,s){return eC(this).once(n,s)},hasEventListeners(n){return eC(this).has(n)}},hP=Da.DOM;let tO;const mP=(n,s)=>{if(s==="selectionchange")return n.getDoc();if(!n.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(s))return n.getDoc().documentElement;const l=Ig(n);return l?(n.eventRoot||(n.eventRoot=hP.select(l)[0]),n.eventRoot):n.getBody()},Mne=n=>!n.hidden&&!eO(n),lz=(n,s,l)=>{Mne(n)?n.dispatch(s,l):eO(n)&&Pne(n,l)},cz=(n,s)=>{if(n.delegates||(n.delegates={}),n.delegates[s]||n.removed)return;const l=mP(n,s);if(Ig(n)){if(tO||(tO={},n.editorManager.on("removeEditor",()=>{n.editorManager.activeEditor||tO&&(Bt(tO,(O,P)=>{n.dom.unbind(mP(n,P))}),tO=null)})),tO[s])return;const h=O=>{const P=O.target,Z=n.editorManager.get();let J=Z.length;for(;J--;){const he=Z[J].getBody();(he===P||hP.isChildOf(P,he))&&lz(Z[J],s,O)}};tO[s]=h,hP.bind(l,s,h)}else{const h=O=>{lz(n,s,O)};hP.bind(l,s,h),n.delegates[s]=h}},nO={...JR,bindPendingEventDelegates(){const n=this;fr.each(n._pendingNativeEvents,s=>{cz(n,s)})},toggleNativeEvent(n,s){const l=this;n==="focus"||n==="blur"||l.removed||(s?l.initialized?cz(l,n):l._pendingNativeEvents?l._pendingNativeEvents.push(n):l._pendingNativeEvents=[n]:l.initialized&&l.delegates&&(l.dom.unbind(mP(l,n),n,l.delegates[n]),delete l.delegates[n]))},unbindAllNativeEvents(){const n=this,s=n.getBody(),l=n.dom;n.delegates&&(Bt(n.delegates,(h,O)=>{n.dom.unbind(mP(n,O),O,h)}),delete n.delegates),!n.inline&&s&&l&&(s.onload=null,l.unbind(n.getWin()),l.unbind(n.getDoc())),l&&(l.unbind(s),l.unbind(n.getContainer()))}},Gm=n=>M(n)?{value:n.split(/[ ,]/),valid:!0}:Y(n,M)?{value:n,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},Ene=n=>{const s=(()=>{switch(n){case"array":return N;case"boolean":return z;case"function":return E;case"number":return W;case"object":return I;case"string":return M;case"string[]":return Gm;case"object[]":return l=>Y(l,I);case"regexp":return l=>R(l,RegExp);default:return pe}})();return l=>eD(l,s,`The value must be a ${n}.`)},_ne=n=>M(n.processor),uz=(n,s)=>{const l=Ct(s.message)?"":`. ${s.message}`;return n+l},fz=n=>n.valid,eD=(n,s,l="")=>{const h=s(n);return z(h)?h?{value:n,valid:!0}:{valid:!1,message:l}:h},Rne=(n,s,l)=>{if(!U(s)){const h=eD(s,l);if(fz(h))return h.value;console.error(uz(`Invalid default value passed for the "${n}" option`,h))}},Dne=(n,s)=>{const l={},h={},O=(qe,ot,Et)=>{const Vt=eD(ot,Et);return fz(Vt)?(h[qe]=Vt.value,!0):(console.warn(uz(`Invalid value passed for the ${qe} option`,Vt)),!1)},P=(qe,ot)=>{const Et=_ne(ot)?Ene(ot.processor):ot.processor,Vt=Rne(qe,ot.default,Et);l[qe]={...ot,default:Vt,processor:Et},Sn(h,qe).orThunk(()=>Sn(s,qe)).each(It=>O(qe,It,Et))},Z=qe=>it(l,qe);return{register:P,isRegistered:Z,get:qe=>Sn(h,qe).orThunk(()=>Sn(l,qe).map(ot=>ot.default)).getOrUndefined(),set:(qe,ot)=>{if(Z(qe)){const Et=l[qe];return Et.immutable?(console.error(`"${qe}" is an immutable option and cannot be updated`),!1):O(qe,ot,Et.processor)}else return console.warn(`"${qe}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:qe=>{const ot=Z(qe);return ot&&delete h[qe],ot},isSet:qe=>it(h,qe)}},$ne=["design","readonly"],dz=(n,s,l,h)=>{const O=l[s.get()],P=l[h];try{P.activate()}catch(Z){console.error(`problem while activating editor mode ${h}:`,Z);return}O.deactivate(),O.editorReadOnly!==P.editorReadOnly&&Tne(n,P.editorReadOnly),s.set(h),vT(n,h)},kce=(n,s,l,h)=>{if(h!==l.get()){if(!it(s,h))throw new Error(`Editor mode '${h}' is invalid`);n.initialized?dz(n,l,s,h):n.on("init",()=>dz(n,l,s,h))}},Lne=(n,s,l)=>{if(Ze($ne,s))throw new Error(`Cannot override default mode ${s}`);return{...n,[s]:{...l,deactivate:()=>{try{l.deactivate()}catch(h){console.error(`problem while deactivating editor mode ${s}:`,h)}}}}},Ine=n=>{const s=ni("design"),l=ni({design:{activate:ie,deactivate:ie,editorReadOnly:!1},readonly:{activate:ie,deactivate:ie,editorReadOnly:!0}});return qR(n),KR(n),{isReadOnly:()=>eO(n),set:h=>kce(n,l.get(),s,h),get:()=>s.get(),register:(h,O)=>{l.set(Lne(l.get(),h,O))}}},tD=fr.each,nD=fr.explode,Nne={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},hz=fr.makeMap("alt,ctrl,shift,meta,access"),Ace=n=>n in hz,Bne=n=>{const s={},l=Dr.os.isMacOS()||Dr.os.isiOS();tD(nD(n.toLowerCase(),"+"),P=>{Ace(P)?s[P]=!0:/^[0-9]{2,}$/.test(P)?s.keyCode=parseInt(P,10):(s.charCode=P.charCodeAt(0),s.keyCode=Nne[P]||P.toUpperCase().charCodeAt(0))});const h=[s.keyCode];let O;for(O in hz)s[O]?h.push(O):s[O]=!1;return s.id=h.join(","),s.access&&(s.alt=!0,l?s.ctrl=!0:s.shift=!0),s.meta&&(l?s.meta=!0:(s.ctrl=!0,s.meta=!1)),s};class mz{constructor(s){this.shortcuts={},this.pendingPatterns=[],this.editor=s;const l=this;s.on("keyup keypress keydown",h=>{(l.hasModifier(h)||l.isFunctionKey(h))&&!h.isDefaultPrevented()&&(tD(l.shortcuts,O=>{l.matchShortcut(h,O)&&(l.pendingPatterns=O.subpatterns.slice(0),h.type==="keydown"&&l.executeShortcutAction(O))}),l.matchShortcut(h,l.pendingPatterns[0])&&(l.pendingPatterns.length===1&&h.type==="keydown"&&l.executeShortcutAction(l.pendingPatterns[0]),l.pendingPatterns.shift()))})}add(s,l,h,O){const P=this,Z=P.normalizeCommandFunc(h);return tD(nD(fr.trim(s)),J=>{const he=P.createShortcut(J,l,Z,O);P.shortcuts[he.id]=he}),!0}remove(s){const l=this.createShortcut(s);return this.shortcuts[l.id]?(delete this.shortcuts[l.id],!0):!1}normalizeCommandFunc(s){const l=this,h=s;return typeof h=="string"?()=>{l.editor.execCommand(h,!1,null)}:fr.isArray(h)?()=>{l.editor.execCommand(h[0],h[1],h[2])}:h}createShortcut(s,l,h,O){const P=fr.map(nD(s,">"),Bne);return P[P.length-1]=fr.extend(P[P.length-1],{func:h,scope:O||this.editor}),fr.extend(P[0],{desc:this.editor.translate(l),subpatterns:P.slice(1)})}hasModifier(s){return s.altKey||s.ctrlKey||s.metaKey}isFunctionKey(s){return s.type==="keydown"&&s.keyCode>=112&&s.keyCode<=123}matchShortcut(s,l){return!l||l.ctrl!==s.ctrlKey||l.meta!==s.metaKey||l.alt!==s.altKey||l.shift!==s.shiftKey?!1:s.keyCode===l.keyCode||s.charCode&&s.charCode===l.charCode?(s.preventDefault(),!0):!1}executeShortcutAction(s){return s.func?s.func.call(s.scope):null}}const Qne=()=>{const n={},s={},l={},h={},O={},P={},Z={},J={},he=(Ge,qe)=>(ot,Et)=>{Ge[ot.toLowerCase()]={...Et,type:qe}},_e=(Ge,qe)=>h[Ge.toLowerCase()]=qe;return{addButton:he(n,"button"),addGroupToolbarButton:he(n,"grouptoolbarbutton"),addToggleButton:he(n,"togglebutton"),addMenuButton:he(n,"menubutton"),addSplitButton:he(n,"splitbutton"),addMenuItem:he(s,"menuitem"),addNestedMenuItem:he(s,"nestedmenuitem"),addToggleMenuItem:he(s,"togglemenuitem"),addAutocompleter:he(l,"autocompleter"),addContextMenu:he(O,"contextmenu"),addContextToolbar:he(P,"contexttoolbar"),addContextForm:he(P,"contextform"),addSidebar:he(Z,"sidebar"),addView:he(J,"views"),addIcon:_e,getAll:()=>({buttons:n,menuItems:s,icons:h,popups:l,contextMenus:O,contextToolbars:P,sidebars:Z,views:J})}},Fne=()=>{const n=Qne();return{addAutocompleter:n.addAutocompleter,addButton:n.addButton,addContextForm:n.addContextForm,addContextMenu:n.addContextMenu,addContextToolbar:n.addContextToolbar,addIcon:n.addIcon,addMenuButton:n.addMenuButton,addMenuItem:n.addMenuItem,addNestedMenuItem:n.addNestedMenuItem,addSidebar:n.addSidebar,addSplitButton:n.addSplitButton,addToggleButton:n.addToggleButton,addGroupToolbarButton:n.addGroupToolbarButton,addToggleMenuItem:n.addToggleMenuItem,addView:n.addView,getAll:n.getAll}},rO=Da.DOM,gz=fr.extend,Vne=fr.each;class gP{constructor(s,l,h){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=h,this.documentBaseUrl=h.documentBaseURL,gz(this,nO);const O=this;this.id=s,this.hidden=!1;const P=Kte(h.defaultOptions,l);this.options=Dne(O,P),Ck(O);const Z=this.options.get;Z("deprecation_warnings")&&zle(l,P);const J=Z("suffix");J&&(h.suffix=J),this.suffix=h.suffix;const he=Z("base_url");he&&h._setBaseUrl(he),this.baseUri=h.baseURI;const _e=gs(O);_e&&(Ji.ScriptLoader._setReferrerPolicy(_e),Da.DOM.styleSheetLoader._setReferrerPolicy(_e));const Ge=D0(O);B(Ge)&&Da.DOM.styleSheetLoader._setContentCssCors(Ge),Pc.languageLoad=Z("language_load"),Pc.baseURL=h.baseURL,this.setDirty(!1),this.documentBaseURI=new Kd(kw(O),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=Iw(O),this.hasVisual=pE(O),this.shortcuts=new mz(this),this.editorCommands=new Ev(this),bne(this);const qe=Z("cache_suffix");qe&&(Dr.cacheSuffix=qe.replace(/^[\?\&]+/,"")),this.ui={registry:Fne(),styleSheetLoader:void 0,show:ie,hide:ie,setEnabled:ie,isEnabled:pe},this.mode=Ine(O),h.dispatch("SetupEditor",{editor:this});const ot=Nw(O);E(ot)&&ot.call(O,O)}render(){U2(this)}focus(s){this.execCommand("mceFocus",!1,s)}hasFocus(){return o1(this)}translate(s){return sd.translate(s)}getParam(s,l,h){const O=this.options;return O.isRegistered(s)||(B(h)?O.register(s,{processor:h,default:l}):O.register(s,{processor:pe,default:l})),!O.isSet(s)&&!U(l)?l:O.get(s)}hasPlugin(s,l){return Ze(Ky(this),s)?l?Fb.get(s)!==void 0:!0:!1}nodeChanged(s){this._nodeChangeDispatcher.nodeChanged(s)}addCommand(s,l,h){this.editorCommands.addCommand(s,l,h)}addQueryStateHandler(s,l,h){this.editorCommands.addQueryStateHandler(s,l,h)}addQueryValueHandler(s,l,h){this.editorCommands.addQueryValueHandler(s,l,h)}addShortcut(s,l,h,O){this.shortcuts.add(s,l,h,O)}execCommand(s,l,h,O){return this.editorCommands.execCommand(s,l,h,O)}queryCommandState(s){return this.editorCommands.queryCommandState(s)}queryCommandValue(s){return this.editorCommands.queryCommandValue(s)}queryCommandSupported(s){return this.editorCommands.queryCommandSupported(s)}show(){const s=this;s.hidden&&(s.hidden=!1,s.inline?s.getBody().contentEditable="true":(rO.show(s.getContainer()),rO.hide(s.id)),s.load(),s.dispatch("show"))}hide(){const s=this;s.hidden||(s.save(),s.inline?(s.getBody().contentEditable="false",s===s.editorManager.focusedEditor&&(s.editorManager.focusedEditor=null)):(rO.hide(s.getContainer()),rO.setStyle(s.id,"display",s.orgDisplay)),s.hidden=!0,s.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(s,l){this.dispatch("ProgressState",{state:s,time:l})}load(s={}){const l=this,h=l.getElement();if(l.removed)return"";if(h){const O={...s,load:!0},P=o0(h)?h.value:h.innerHTML,Z=l.setContent(P,O);return O.no_events||l.dispatch("LoadContent",{...O,element:h}),Z}else return""}save(s={}){const l=this;let h=l.getElement();if(!h||!l.initialized||l.removed)return"";const O={...s,save:!0,element:h};let P=l.getContent(O);const Z={...O,content:P};if(Z.no_events||l.dispatch("SaveContent",Z),Z.format==="raw"&&l.dispatch("RawSaveContent",Z),P=Z.content,o0(h))h.value=P;else{(s.is_removing||!l.inline)&&(h.innerHTML=P);const J=rO.getParent(l.id,"form");J&&Vne(J.elements,he=>he.name===l.id?(he.value=P,!1):!0)}return Z.element=O.element=h=null,Z.set_dirty!==!1&&l.setDirty(!1),P}setContent(s,l){return b6(this,s,l)}getContent(s){return ON(this,s)}insertContent(s,l){l&&(s=gz({content:s},l)),this.execCommand("mceInsertContent",!1,s)}resetContent(s){s===void 0?b6(this,this.startContent,{format:"raw"}):b6(this,s),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(s){const l=!this.isNotDirty;this.isNotDirty=!s,s&&s!==l&&this.dispatch("dirty")}getContainer(){const s=this;return s.container||(s.container=s.editorContainer||rO.get(s.id+"_parent")),s.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=rO.get(this.id)),this.targetElm}getWin(){const s=this;if(!s.contentWindow){const l=s.iframeElement;l&&(s.contentWindow=l.contentWindow)}return s.contentWindow}getDoc(){const s=this;if(!s.contentDocument){const l=s.getWin();l&&(s.contentDocument=l.document)}return s.contentDocument}getBody(){var s,l;const h=this.getDoc();return(l=(s=this.bodyElement)!==null&&s!==void 0?s:h==null?void 0:h.body)!==null&&l!==void 0?l:null}convertURL(s,l,h){const O=this,P=O.options.get,Z=OE(O);if(E(Z))return Z.call(O,s,h,!0,l);if(!P("convert_urls")||h==="link"||I(h)&&h.nodeName==="LINK"||s.indexOf("file:")===0||s.length===0)return s;const J=new Kd(s);return J.protocol!=="http"&&J.protocol!=="https"&&J.protocol!==""?s:P("relative_urls")?O.documentBaseURI.toRelative(s):(s=O.documentBaseURI.toAbsolute(s,P("remove_script_host")),s)}addVisual(s){Jte(this,s)}setEditableRoot(s){HV(this,s)}hasEditableRoot(){return Zte(this)}remove(){EG(this)}destroy(s){_G(this,s)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const W2=Da.DOM,pP=fr.each;let pz=!1,vP,mf=[];const yP=n=>{const s=n.type;pP(E1.get(),l=>{switch(s){case"scroll":l.dispatch("ScrollWindow",n);break;case"resize":l.dispatch("ResizeWindow",n);break}})},vz=n=>{if(n!==pz){const s=Da.DOM;n?(s.bind(window,"resize",yP),s.bind(window,"scroll",yP)):(s.unbind(window,"resize",yP),s.unbind(window,"scroll",yP)),pz=n}},yz=n=>{const s=mf;return mf=se(mf,l=>n!==l),E1.activeEditor===n&&(E1.activeEditor=mf.length>0?mf[0]:null),E1.focusedEditor===n&&(E1.focusedEditor=null),s.length!==mf.length},bz=n=>{n&&n.initialized&&!(n.getContainer()||n.getBody()).parentNode&&(yz(n),n.unbindAllNativeEvents(),n.destroy(!0),n.removed=!0)},zne=document.compatMode!=="CSS1Compat",E1={...JR,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"6",minorVersion:"8.0",releaseDate:"2023-11-22",i18n:sd,activeEditor:null,focusedEditor:null,setup(){const n=this;let s="",l="",h=Kd.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(h)&&(h=h.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(h)||(h+="/"));const O=window.tinymce||window.tinyMCEPreInit;if(O)s=O.base||O.baseURL,l=O.suffix;else{const P=document.getElementsByTagName("script");for(let Z=0;Z{Pc.PluginManager.urls[P]=O})},init(n){const s=this;let l;const h=fr.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),O=(Ge,qe)=>Ge.inline&&qe.tagName.toLowerCase()in h,P=Ge=>{let qe=Ge.id;return qe||(qe=Sn(Ge,"name").filter(ot=>!W2.get(ot)).getOrThunk(W2.uniqueId),Ge.setAttribute("id",qe)),qe},Z=Ge=>{const qe=n[Ge];if(qe)return qe.apply(s,[])},J=Ge=>Dr.browser.isIE()||Dr.browser.isEdge()?(h3("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/6/support/#supportedwebbrowsers"),[]):zne?(h3("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):M(Ge.selector)?W2.select(Ge.selector):B(Ge.target)?[Ge.target]:[];let he=Ge=>{l=Ge};const _e=()=>{let Ge=0;const qe=[];let ot;const Et=(Vt,kt,It)=>{const cn=new gP(Vt,kt,s);qe.push(cn),cn.on("init",()=>{++Ge===ot.length&&he(qe)}),cn.targetElm=cn.targetElm||It,cn.render()};W2.unbind(window,"ready",_e),Z("onpageload"),ot=Xt(J(n)),fr.each(ot,Vt=>{bz(s.get(Vt.id))}),ot=fr.grep(ot,Vt=>!s.get(Vt.id)),ot.length===0?he([]):pP(ot,Vt=>{O(n,Vt)?h3("Could not initialize inline editor on invalid inline target element",Vt):Et(P(Vt),n,Vt)})};return W2.bind(window,"ready",_e),new Promise(Ge=>{l?Ge(l):he=qe=>{Ge(qe)}})},get(n){return arguments.length===0?mf.slice(0):M(n)?le(mf,s=>s.id===n).getOr(null):W(n)&&mf[n]?mf[n]:null},add(n){const s=this,l=s.get(n.id);return l===n||(l===null&&mf.push(n),vz(!0),s.activeEditor=n,s.dispatch("AddEditor",{editor:n}),vP||(vP=h=>{const O=s.dispatch("BeforeUnload");if(O.returnValue)return h.preventDefault(),h.returnValue=O.returnValue,O.returnValue},window.addEventListener("beforeunload",vP))),n},createEditor(n,s){return this.add(new gP(n,s,this))},remove(n){const s=this;let l;if(!n){for(let h=mf.length-1;h>=0;h--)s.remove(mf[h]);return}if(M(n)){pP(W2.select(n),h=>{l=s.get(h.id),l&&s.remove(l)});return}return l=n,F(s.get(l.id))?null:(yz(l)&&s.dispatch("RemoveEditor",{editor:l}),mf.length===0&&window.removeEventListener("beforeunload",vP),l.remove(),vz(mf.length>0),l)},execCommand(n,s,l){var h;const O=this,P=I(l)?(h=l.id)!==null&&h!==void 0?h:l.index:l;switch(n){case"mceAddEditor":{if(!O.get(P)){const Z=l.options;new gP(P,Z,O).render()}return!0}case"mceRemoveEditor":{const Z=O.get(P);return Z&&Z.remove(),!0}case"mceToggleEditor":{const Z=O.get(P);return Z?(Z.isHidden()?Z.show():Z.hide(),!0):(O.execCommand("mceAddEditor",!1,l),!0)}}return O.activeEditor?O.activeEditor.execCommand(n,s,l):!1},triggerSave:()=>{pP(mf,n=>{n.save()})},addI18n:(n,s)=>{sd.add(n,s)},translate:n=>sd.translate(n),setActive(n){const s=this.activeEditor;this.activeEditor!==n&&(s&&s.dispatch("deactivate",{relatedTarget:n}),n.dispatch("activate",{relatedTarget:s})),this.activeEditor=n},_setBaseUrl(n){this.baseURL=new Kd(this.documentBaseURL).toAbsolute(n.replace(/\/+$/,"")),this.baseURI=new Kd(this.baseURL)}};E1.setup();const Zne=(()=>{const n=_g(),s=P=>({items:P,types:Gt(P),getType:Z=>Sn(P,Z).getOrUndefined()}),l=P=>{n.set(P)},h=()=>n.get().getOrUndefined(),O=n.clear;return{FakeClipboardItem:s,write:l,read:h,clear:O}})(),Oz=Math.min,Y2=Math.max,bP=Math.round,xz=(n,s,l)=>{let h=s.x,O=s.y;const P=n.w,Z=n.h,J=s.w,he=s.h,_e=(l||"").split("");return _e[0]==="b"&&(O+=he),_e[1]==="r"&&(h+=J),_e[0]==="c"&&(O+=bP(he/2)),_e[1]==="c"&&(h+=bP(J/2)),_e[3]==="b"&&(O-=Z),_e[4]==="r"&&(h-=P),_e[3]==="c"&&(O-=bP(Z/2)),_e[4]==="c"&&(h-=bP(P/2)),X2(h,O,P,Z)},Sz=(n,s,l,h)=>{for(let O=0;O=l.x&&P.x+P.w<=l.w+l.x&&P.y>=l.y&&P.y+P.h<=l.h+l.y)return h[O]}return null},Hne=(n,s,l)=>X2(n.x-s,n.y-l,n.w+s*2,n.h+l*2),Une=(n,s)=>{const l=Y2(n.x,s.x),h=Y2(n.y,s.y),O=Oz(n.x+n.w,s.x+s.w),P=Oz(n.y+n.h,s.y+s.h);return O-l<0||P-h<0?null:X2(l,h,O-l,P-h)},Wne=(n,s,l)=>{let h=n.x,O=n.y,P=n.x+n.w,Z=n.y+n.h;const J=s.x+s.w,he=s.y+s.h,_e=Y2(0,s.x-h),Ge=Y2(0,s.y-O),qe=Y2(0,P-J),ot=Y2(0,Z-he);return h+=_e,O+=Ge,l&&(P+=_e,Z+=Ge,h-=qe,O-=ot),P-=qe,Z-=ot,X2(h,O,P-h,Z-O)},X2=(n,s,l,h)=>({x:n,y:s,w:l,h}),Yne={inflate:Hne,relativePosition:xz,findBestRelativePosition:Sz,intersect:Une,clamp:Wne,create:X2,fromClientRect:n=>X2(n.left,n.top,n.width,n.height)},Xne=(n,s,l=1e3)=>{let h=!1,O=null;const P=_e=>(...Ge)=>{h||(h=!0,O!==null&&(clearTimeout(O),O=null),_e.apply(null,Ge))},Z=P(n),J=P(s);return{start:(..._e)=>{!h&&O===null&&(O=setTimeout(()=>J.apply(null,_e),l))},resolve:Z,reject:J}},wz=(()=>{const n={},s={},l={};return{load:(he,_e)=>{const Ge=`Script at URL "${_e}" failed to load`,qe=`Script at URL "${_e}" did not call \`tinymce.Resource.add('${he}', data)\` within 1 second`;if(n[he]!==void 0)return n[he];{const ot=new Promise((Et,Vt)=>{const kt=Xne(Et,Vt);s[he]=kt.resolve,Ji.ScriptLoader.loadScript(_e).then(()=>kt.start(qe),()=>kt.reject(Ge))});return n[he]=ot,ot}},add:(he,_e)=>{s[he]!==void 0&&(s[he](_e),delete s[he]),n[he]=Promise.resolve(_e),l[he]=_e},has:he=>he in l,get:he=>l[he],unload:he=>{delete n[he]}}})(),_ce=()=>(()=>{let n={},s=[];const l={getItem:h=>{const O=n[h];return O||null},setItem:(h,O)=>{s.push(h),n[h]=String(O)},key:h=>s[h],removeItem:h=>{s=s.filter(O=>O===h),delete n[h]},clear:()=>{s=[],n={}},length:0};return Object.defineProperty(l,"length",{get:()=>s.length,configurable:!1,enumerable:!1}),l})();let G2;try{const n="__storage_test__";G2=window.localStorage,G2.setItem(n,n),G2.removeItem(n)}catch{G2=_ce()}var Gne=G2;const Tz={geom:{Rect:Yne},util:{Delay:fd,Tools:fr,VK:Wr,URI:Kd,EventDispatcher:J3,Observable:JR,I18n:sd,LocalStorage:Gne,ImageUploader:T6},dom:{EventUtils:Au,TreeWalker:ca,TextSeeker:Rg,DOMUtils:Da,ScriptLoader:Ji,RangeUtils:Ot,Serializer:yN,StyleSheetLoader:YS,ControlSelection:u9,BookmarkManager:mv,Selection:d1,Event:Au.Event},html:{Styles:GO,Entities:Pg,Node:hu,Schema:Cm,DomParser:Vh,Writer:L9,Serializer:s1},Env:Dr,AddOnManager:Pc,Annotator:mT,Formatter:zb,UndoManager:m3,EditorCommands:Ev,WindowManager:PN,NotificationManager:S6,EditorObservable:nO,Shortcuts:mz,Editor:gP,FocusManager:g9,EditorManager:E1,DOM:Da.DOM,ScriptLoader:Ji.ScriptLoader,PluginManager:Fb,ThemeManager:kv,ModelManager:eh,IconManager:u3,Resource:wz,FakeClipboard:Zne,trim:fr.trim,isArray:fr.isArray,is:fr.is,toArray:fr.toArray,makeMap:fr.makeMap,each:fr.each,map:fr.map,grep:fr.grep,inArray:fr.inArray,extend:fr.extend,walk:fr.walk,resolve:fr.resolve,explode:fr.explode,_addCacheSuffix:fr._addCacheSuffix},Cz=fr.extend(E1,Tz),jne=n=>{try{t.exports=n}catch{}};(n=>{window.tinymce=n,window.tinyMCE=n})(Cz),jne(Cz)})()})(y$e);(function(){var t=tinymce.util.Tools.resolve("tinymce.ModelManager");const e=(A,$,j)=>{var ce;return j(A,$.prototype)?!0:((ce=A.constructor)===null||ce===void 0?void 0:ce.name)===$.name},r=A=>{const $=typeof A;return A===null?"null":$==="object"&&Array.isArray(A)?"array":$==="object"&&e(A,String,(j,ce)=>ce.isPrototypeOf(j))?"string":$},a=A=>$=>r($)===A,i=A=>$=>typeof $===A,d=A=>$=>A===$,f=a("string"),m=a("object"),u=a("array"),p=d(null),v=i("boolean"),y=d(void 0),b=A=>A==null,x=A=>!b(A),k=i("function"),C=i("number"),w=()=>{},T=(A,$)=>(...j)=>A($.apply(null,j)),R=(A,$)=>j=>A($(j)),M=A=>()=>A,I=A=>A,V=(A,$)=>A===$;function N(A,...$){return(...j)=>{const ce=$.concat(j);return A.apply(null,ce)}}const F=A=>$=>!A($),z=A=>()=>{throw new Error(A)},U=A=>A(),Q=M(!1),B=M(!0);class E{constructor($,j){this.tag=$,this.value=j}static some($){return new E(!0,$)}static none(){return E.singletonNone}fold($,j){return this.tag?j(this.value):$()}isSome(){return this.tag}isNone(){return!this.tag}map($){return this.tag?E.some($(this.value)):E.none()}bind($){return this.tag?$(this.value):E.none()}exists($){return this.tag&&$(this.value)}forall($){return!this.tag||$(this.value)}filter($){return!this.tag||$(this.value)?this:E.none()}getOr($){return this.tag?this.value:$}or($){return this.tag?this:$}getOrThunk($){return this.tag?this.value:$()}orThunk($){return this.tag?this:$()}getOrDie($){if(this.tag)return this.value;throw new Error($??"Called getOrDie on None")}static from($){return x($)?E.some($):E.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each($){this.tag&&$(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}E.singletonNone=new E(!1);const W=Array.prototype.slice,Y=Array.prototype.indexOf,ie=Array.prototype.push,L=(A,$)=>Y.call(A,$),me=(A,$)=>L(A,$)>-1,ae=(A,$)=>{for(let j=0,ce=A.length;j{const j=[];for(let ce=0;ce{const j=A.length,ce=new Array(j);for(let Me=0;Me{for(let j=0,ce=A.length;j{for(let j=A.length-1;j>=0;j--){const ce=A[j];$(ce,j)}},Te=(A,$)=>{const j=[],ce=[];for(let Me=0,Ve=A.length;Me{const j=[];for(let ce=0,Me=A.length;ce(be(A,(ce,Me)=>{j=$(j,ce,Me)}),j),ne=(A,$,j)=>(ee(A,(ce,Me)=>{j=$(j,ce,Me)}),j),pe=(A,$,j)=>{for(let ce=0,Me=A.length;cepe(A,$,Q),Oe=(A,$)=>{for(let j=0,ce=A.length;j{const $=[];for(let j=0,ce=A.length;jxe(fe(A,$)),ke=(A,$)=>{for(let j=0,ce=A.length;j{const $=W.call(A,0);return $.reverse(),$},Ze=(A,$)=>{const j={};for(let ce=0,Me=A.length;ce{const j=W.call(A,0);return j.sort($),j},Ie=(A,$)=>$>=0&&$Ie(A,0),ye=A=>Ie(A,A.length-1),te=(A,$)=>{for(let j=0;j{const j=se(A);for(let ce=0,Me=j.length;cele(A,(j,ce)=>({k:ce,v:$(j,ce)})),le=(A,$)=>{const j={};return oe(A,(ce,Me)=>{const Ve=$(ce,Me);j[Ve.k]=Ve.v}),j},Ce=A=>($,j)=>{A[j]=$},Qe=(A,$,j,ce)=>{oe(A,(Me,Ve)=>{($(Me,Ve)?j:ce)(Me,Ve)})},ze=(A,$)=>{const j={};return Qe(A,$,Ce(j),w),j},Xe=(A,$)=>{const j=[];return oe(A,(ce,Me)=>{j.push($(ce,Me))}),j},ct=A=>Xe(A,I),pt=(A,$)=>Ye(A,$)?E.from(A[$]):E.none(),Ye=(A,$)=>ue.call(A,$),je=(A,$)=>Ye(A,$)&&A[$]!==void 0&&A[$]!==null,et=A=>{for(const $ in A)if(ue.call(A,$))return!1;return!0},yt=typeof window<"u"?window:Function("return this;")(),ft=(A,$)=>{let j=$??yt;for(let ce=0;ce{const j=A.split(".");return ft(j,$)},wt=(A,$)=>tt(A,$),Xt=(A,$)=>{const j=wt(A,$);if(j==null)throw new Error(A+" not available on this browser");return j},Gt=Object.getPrototypeOf,Nt=A=>Xt("HTMLElement",A),Bt=A=>{const $=tt("ownerDocument.defaultView",A);return m(A)&&(Nt($).prototype.isPrototypeOf(A)||/^HTML\w*Element$/.test(Gt(A).constructor.name))},vn=8,En=9,ln=11,Yn=1,an=3,wn=A=>A.dom.nodeName.toLowerCase(),Xn=A=>A.dom.nodeType,Un=A=>$=>Xn($)===A,Sn=A=>Xn(A)===vn||wn(A)==="#comment",it=A=>ut(A)&&Bt(A.dom),ut=Un(Yn),xt=Un(an),gt=Un(En),Dt=Un(ln),He=A=>$=>ut($)&&wn($)===A,at=(A,$,j)=>{if(f(j)||v(j)||C(j))A.setAttribute($,j+"");else throw console.error("Invalid call to Attribute.set. Key ",$,":: Value ",j,":: Element ",A),new Error("Attribute value was not simple")},dt=(A,$,j)=>{at(A.dom,$,j)},mt=(A,$)=>{const j=A.dom;oe($,(ce,Me)=>{at(j,Me,ce)})},Tt=(A,$)=>{oe($,(j,ce)=>{j.fold(()=>{nn(A,ce)},Me=>{at(A.dom,ce,Me)})})},Pt=(A,$)=>{const j=A.dom.getAttribute($);return j===null?void 0:j},dn=(A,$)=>E.from(Pt(A,$)),nn=(A,$)=>{A.dom.removeAttribute($)},Wt=A=>ne(A.dom.attributes,($,j)=>($[j.name]=j.value,$),{}),Rt=(A,$)=>{const ce=($||document).createElement("div");if(ce.innerHTML=A,!ce.hasChildNodes()||ce.childNodes.length>1){const Me="HTML does not have a single root node";throw console.error(Me,A),new Error(Me)}return nr(ce.childNodes[0])},fn=(A,$)=>{const ce=($||document).createElement(A);return nr(ce)},Hn=(A,$)=>{const ce=($||document).createTextNode(A);return nr(ce)},nr=A=>{if(A==null)throw new Error("Node cannot be null or undefined");return{dom:A}},zt={fromHtml:Rt,fromTag:fn,fromText:Hn,fromDom:nr,fromPoint:(A,$,j)=>E.from(A.dom.elementFromPoint($,j)).map(nr)},vr=(A,$)=>{const j=A.dom;if(j.nodeType!==Yn)return!1;{const ce=j;if(ce.matches!==void 0)return ce.matches($);if(ce.msMatchesSelector!==void 0)return ce.msMatchesSelector($);if(ce.webkitMatchesSelector!==void 0)return ce.webkitMatchesSelector($);if(ce.mozMatchesSelector!==void 0)return ce.mozMatchesSelector($);throw new Error("Browser lacks native selectors")}},Wn=A=>A.nodeType!==Yn&&A.nodeType!==En&&A.nodeType!==ln||A.childElementCount===0,Br=(A,$)=>{const j=$===void 0?document:$.dom;return Wn(j)?[]:fe(j.querySelectorAll(A),zt.fromDom)},kr=(A,$)=>{const j=$===void 0?document:$.dom;return Wn(j)?E.none():E.from(j.querySelector(A)).map(zt.fromDom)},or=(A,$)=>A.dom===$.dom,jr=(A,$)=>{const j=A.dom,ce=$.dom;return j===ce?!1:j.contains(ce)},_r=vr,Rn=A=>zt.fromDom(A.dom.ownerDocument),xr=A=>gt(A)?A:Rn(A),sr=A=>zt.fromDom(xr(A).dom.documentElement),Sr=A=>zt.fromDom(xr(A).dom.defaultView),ao=A=>E.from(A.dom.parentNode).map(zt.fromDom),Oo=A=>E.from(A.dom.parentElement).map(zt.fromDom),wr=(A,$)=>{const j=k($)?$:Q;let ce=A.dom;const Me=[];for(;ce.parentNode!==null&&ce.parentNode!==void 0;){const Ve=ce.parentNode,nt=zt.fromDom(Ve);if(Me.push(nt),j(nt)===!0)break;ce=Ve}return Me},Fe=A=>E.from(A.dom.previousSibling).map(zt.fromDom),Ee=A=>E.from(A.dom.nextSibling).map(zt.fromDom),St=A=>fe(A.dom.childNodes,zt.fromDom),Ct=(A,$)=>{const j=A.dom.childNodes;return E.from(j[$]).map(zt.fromDom)},Lt=A=>Ct(A,0),Ft=(A,$)=>{ao(A).each(ce=>{ce.dom.insertBefore($.dom,A.dom)})},Ht=(A,$)=>{Ee(A).fold(()=>{ao(A).each(Me=>{Mt(Me,$)})},ce=>{Ft(ce,$)})},$t=(A,$)=>{Lt(A).fold(()=>{Mt(A,$)},ce=>{A.dom.insertBefore($.dom,ce.dom)})},Mt=(A,$)=>{A.dom.appendChild($.dom)},en=(A,$,j)=>{Ct(A,j).fold(()=>{Mt(A,$)},ce=>{Ft(ce,$)})},un=(A,$)=>{Ft(A,$),Mt($,A)},Jt=(A,$)=>{ee($,(j,ce)=>{const Me=ce===0?A:$[ce-1];Ht(Me,j)})},rn=(A,$)=>{ee($,j=>{Mt(A,j)})},Tn=A=>{A.dom.textContent="",ee(St(A),$=>{On($)})},On=A=>{const $=A.dom;$.parentNode!==null&&$.parentNode.removeChild($)},pn=A=>{const $=St(A);$.length>0&&Jt(A,$),On(A)},Jn=(A,$)=>zt.fromDom(A.dom.cloneNode($)),Fn=A=>Jn(A,!1),zr=A=>Jn(A,!0),dr=(A,$)=>{const j=zt.fromTag($),ce=Wt(A);return mt(j,ce),j},Hr=(A,$)=>{const j=dr(A,$),ce=St(zr(A));return rn(j,ce),j},ar=(A,$)=>{const j=dr(A,$);Ht(A,j);const ce=St(A);return rn(j,ce),On(A),j},ur=["tfoot","thead","tbody","colgroup"],qr=A=>me(ur,A),to=(A,$)=>({rows:A,columns:$}),ko=(A,$)=>({row:A,column:$}),Es=(A,$,j)=>({element:A,rowspan:$,colspan:j}),So=(A,$,j,ce)=>({element:A,rowspan:$,colspan:j,isNew:ce}),Ko=(A,$,j,ce,Me,Ve)=>({element:A,rowspan:$,colspan:j,row:ce,column:Me,isLocked:Ve}),ds=(A,$,j)=>({element:A,cells:$,section:j}),qs=(A,$,j,ce)=>({element:A,cells:$,section:j,isNew:ce}),es=(A,$,j)=>({element:A,isNew:$,isLocked:j}),Xs=(A,$,j,ce)=>({element:A,cells:$,section:j,isNew:ce}),Wa=(A,$,j,ce)=>({startRow:A,startCol:$,finishRow:j,finishCol:ce}),vc=(A,$,j)=>({element:A,colspan:$,column:j}),ii=(A,$)=>({element:A,columns:$}),tu=A=>Dt(A)&&x(A.dom.host),Na=k(Element.prototype.attachShadow)&&k(Node.prototype.getRootNode),Js=M(Na),ya=Na?A=>zt.fromDom(A.dom.getRootNode()):xr,ra=A=>{const $=ya(A);return tu($)?E.some($):E.none()},nu=A=>zt.fromDom(A.dom.host),Dr=A=>{if(Js()&&x(A.target)){const $=zt.fromDom(A.target);if(ut($)&&yc($)&&A.composed&&A.composedPath){const j=A.composedPath();if(j)return re(j)}}return E.from(A.target)},yc=A=>x(A.dom.shadowRoot),oa=A=>{const $=xt(A)?A.dom.parentNode:A.dom;if($==null||$.ownerDocument===null)return!1;const j=$.ownerDocument;return ra(zt.fromDom($)).fold(()=>j.body.contains($),R(oa,nu))},Ri=()=>Md(zt.fromDom(document)),Md=A=>{const $=A.dom.body;if($==null)throw new Error("Body is not available yet");return zt.fromDom($)},sa=(A,$,j)=>Be(wr(A,j),$),bu=(A,$)=>Be(St(A),$),Ed=(A,$)=>{let j=[];return ee(St(A),ce=>{$(ce)&&(j=j.concat([ce])),j=j.concat(Ed(ce,$))}),j},Ou=(A,$,j)=>sa(A,ce=>vr(ce,$),j),Po=(A,$)=>bu(A,j=>vr(j,$)),zi=(A,$)=>Br($,A);var fr=(A,$,j,ce,Me)=>A(j,ce)?E.some(j):k(Me)&&Me(j)?E.none():$(j,ce,Me);const Qa=(A,$,j)=>{let ce=A.dom;const Me=k(j)?j:Q;for(;ce.parentNode;){ce=ce.parentNode;const Ve=zt.fromDom(ce);if($(Ve))return E.some(Ve);if(Me(Ve))break}return E.none()},xi=(A,$,j)=>fr((Me,Ve)=>Ve(Me),Qa,A,$,j),za=(A,$)=>{const j=Me=>$(zt.fromDom(Me));return G(A.dom.childNodes,j).map(zt.fromDom)},Fa=(A,$)=>{const j=ce=>{for(let Me=0;MeQa(A,ce=>vr(ce,$),j),Zo=(A,$)=>za(A,j=>vr(j,$)),li=(A,$)=>kr($,A),Ka=(A,$,j)=>fr((Me,Ve)=>vr(Me,Ve),yl,A,$,j),Gf=(A,$,j=V)=>A.exists(ce=>j(ce,$)),Za=A=>{const $=[],j=ce=>{$.push(ce)};for(let ce=0;ceA!=null?$(A):E.none(),zu=(A,$)=>A?E.some($):E.none(),_d=(A,$,j)=>$===""||A.length>=$.length&&A.substr(j,j+$.length)===$,Is=(A,$,j=0,ce)=>{const Me=A.indexOf($,j);return Me!==-1?y(ce)?!0:Me+$.length<=ce:!1},Rd=(A,$)=>_d(A,$,0),Fc=(A,$)=>_d(A,$,A.length-$.length),mh=(A=>$=>$.replace(A,""))(/^\s+|\s+$/g),lm=A=>A.length>0,Vs=A=>{const $=parseFloat(A);return isNaN($)?E.none():E.some($)},Si=A=>A.style!==void 0&&k(A.style.getPropertyValue),Tf=(A,$,j)=>{if(!f(j))throw console.error("Invalid call to CSS.set. Property ",$,":: Value ",j,":: Element ",A),new Error("CSS value must be a string: "+j);Si(A)&&A.style.setProperty($,j)},QS=(A,$)=>{Si(A)&&A.style.removeProperty($)},Ya=(A,$,j)=>{const ce=A.dom;Tf(ce,$,j)},kl=(A,$)=>{const j=A.dom;oe($,(ce,Me)=>{Tf(j,Me,ce)})},Zi=(A,$)=>{const j=A.dom,Me=window.getComputedStyle(j).getPropertyValue($);return Me===""&&!oa(A)?PO(j,$):Me},PO=(A,$)=>Si(A)?A.style.getPropertyValue($):"",Np=(A,$)=>{const j=A.dom,ce=PO(j,$);return E.from(ce).filter(Me=>Me.length>0)},xu=(A,$)=>{const j=A.dom;QS(j,$),Gf(dn(A,"style").map(mh),"")&&nn(A,"style")},Zu=(A,$)=>{const j=A.dom,ce=$.dom;Si(j)&&Si(ce)&&(ce.style.cssText=j.style.cssText)},Ra=(A,$,j=0)=>dn(A,$).map(ce=>parseInt(ce,10)).getOr(j),Su=(A,$)=>Ra(A,$,1),Al=A=>He("col")(A)?Ra(A,"span",1)>1:Su(A,"colspan")>1,bc=A=>Su(A,"rowspan")>1,Cf=(A,$)=>parseInt(Zi(A,$),10),ci=M(10),kf=M(10),Bp=(A,$)=>Qp(A,$,B),Qp=(A,$,j)=>Le(St(A),ce=>vr(ce,$)?j(ce)?[ce]:[]:Qp(ce,$,j)),ly=(A,$,j=Q)=>{if(j($))return E.none();if(me(A,wn($)))return E.some($);const ce=Me=>vr(Me,"table")||j(Me);return yl($,A.join(","),ce)},Xv=(A,$)=>ly(["td","th"],A,$),Af=A=>Bp(A,"th,td"),Fp=A=>vr(A,"colgroup")?Po(A,"col"):Le(cy(A),$=>Po($,"col")),Oc=(A,$)=>Ka(A,"table",$),Gv=A=>Bp(A,"tr"),cy=A=>Oc(A).fold(M([]),$=>Po($,"colgroup")),cm=(A,$)=>fe(A,j=>{if(wn(j)==="colgroup"){const ce=fe(Fp(j),Me=>{const Ve=Ra(Me,"span",1);return Es(Me,1,Ve)});return ds(j,ce,"colgroup")}else{const ce=fe(Af(j),Me=>{const Ve=Ra(Me,"rowspan",1),nt=Ra(Me,"colspan",1);return Es(Me,Ve,nt)});return ds(j,ce,$(j))}}),uy=A=>ao(A).map($=>{const j=wn($);return qr(j)?j:"tbody"}).getOr("tbody"),um=A=>{const $=Gv(A),ce=[...cy(A),...$];return cm(ce,uy)},MO=(A,$)=>cm(A,()=>$),gh=A=>{let $=!1,j;return(...ce)=>($||($=!0,j=A.apply(null,ce)),j)},EO=(A,$,j,ce)=>{const Me=A.isiOS()&&/ipad/i.test(j)===!0,Ve=A.isiOS()&&!Me,nt=A.isiOS()||A.isAndroid(),Ot=nt||ce("(pointer:coarse)"),_t=Me||!Ve&&nt&&ce("(min-device-width:768px)"),Kt=Ve||nt&&!_t,Cn=$.isSafari()&&A.isiOS()&&/safari/i.test(j)===!1,ir=!Kt&&!_t&&!Cn;return{isiPad:M(Me),isiPhone:M(Ve),isTablet:M(_t),isPhone:M(Kt),isTouch:M(Ot),isAndroid:A.isAndroid,isiOS:A.isiOS,isWebView:M(Cn),isDesktop:M(ir)}},_O=(A,$)=>{for(let j=0;j{const j=_O(A,$);if(!j)return{major:0,minor:0};const ce=Me=>Number($.replace(j,"$"+Me));return Yt(ce(1),ce(2))},fm=(A,$)=>{const j=String($).toLowerCase();return A.length===0?fy():RO(A,j)},fy=()=>Yt(0,0),Yt=(A,$)=>({major:A,minor:$}),dm={nu:Yt,detect:fm,unknown:fy},Hu=(A,$)=>te($.brands,j=>{const ce=j.brand.toLowerCase();return G(A,Me=>{var Ve;return ce===((Ve=Me.brand)===null||Ve===void 0?void 0:Ve.toLowerCase())}).map(Me=>({current:Me.name,version:dm.nu(parseInt(j.version,10),0)}))}),jv=(A,$)=>{const j=String($).toLowerCase();return G(A,ce=>ce.search(j))},Vp=(A,$)=>jv(A,$).map(j=>{const ce=dm.detect(j.versionRegexes,$);return{current:j.name,version:ce}}),FS=(A,$)=>jv(A,$).map(j=>{const ce=dm.detect(j.versionRegexes,$);return{current:j.name,version:ce}}),Gs=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,tc=A=>$=>Is($,A),jf=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:A=>Is(A,"edge/")&&Is(A,"chrome")&&Is(A,"safari")&&Is(A,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Gs],search:A=>Is(A,"chrome")&&!Is(A,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:A=>Is(A,"msie")||Is(A,"trident")},{name:"Opera",versionRegexes:[Gs,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:tc("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:tc("firefox")},{name:"Safari",versionRegexes:[Gs,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:A=>(Is(A,"safari")||Is(A,"mobile/"))&&Is(A,"applewebkit")}],qf=[{name:"Windows",search:tc("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:A=>Is(A,"iphone")||Is(A,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:tc("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:tc("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:tc("linux"),versionRegexes:[]},{name:"Solaris",search:tc("sunos"),versionRegexes:[]},{name:"FreeBSD",search:tc("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:tc("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],dy={browsers:M(jf),oses:M(qf)},vg="Edge",ru="Chromium",yg="IE",hy="Opera",DO="Firefox",Uu="Safari",zp=()=>my({current:void 0,version:dm.unknown()}),my=A=>{const $=A.current,j=A.version,ce=Me=>()=>$===Me;return{current:$,version:j,isEdge:ce(vg),isChromium:ce(ru),isIE:ce(yg),isOpera:ce(hy),isFirefox:ce(DO),isSafari:ce(Uu)}},Vc={unknown:zp,nu:my,edge:M(vg),chromium:M(ru),ie:M(yg),opera:M(hy),firefox:M(DO),safari:M(Uu)},ol="Windows",ph="iOS",bg="Android",xc="Linux",Pl="macOS",Wu="Solaris",$O="FreeBSD",Zp="ChromeOS",gy=()=>qv({current:void 0,version:dm.unknown()}),qv=A=>{const $=A.current,j=A.version,ce=Me=>()=>$===Me;return{current:$,version:j,isWindows:ce(ol),isiOS:ce(ph),isAndroid:ce(bg),isMacOS:ce(Pl),isLinux:ce(xc),isSolaris:ce(Wu),isFreeBSD:ce($O),isChromeOS:ce(Zp)}},Pf={unknown:gy,nu:qv,windows:M(ol),ios:M(ph),android:M(bg),linux:M(xc),macos:M(Pl),solaris:M(Wu),freebsd:M($O),chromeos:M(Zp)},GC={detect:(A,$,j)=>{const ce=dy.browsers(),Me=dy.oses(),Ve=$.bind(_t=>Hu(ce,_t)).orThunk(()=>Vp(ce,A)).fold(Vc.unknown,Vc.nu),nt=FS(Me,A).fold(Pf.unknown,Pf.nu),Ot=EO(nt,Ve,A,j);return{browser:Ve,os:nt,deviceType:Ot}}},jC=A=>window.matchMedia(A).matches;let VS=gh(()=>GC.detect(navigator.userAgent,E.from(navigator.userAgentData),jC));const Hp=()=>VS(),Kv=(A,$)=>{const j=(Ot,_t)=>{if(!C(_t)&&!_t.match(/^[0-9]+$/))throw new Error(A+".set accepts only positive integer values. Value was "+_t);const Kt=Ot.dom;Si(Kt)&&(Kt.style[A]=_t+"px")},ce=Ot=>{const _t=$(Ot);if(_t<=0||_t===null){const Kt=Zi(Ot,A);return parseFloat(Kt)||0}return _t},Me=ce,Ve=(Ot,_t)=>ne(_t,(Kt,Cn)=>{const ir=Zi(Ot,Cn),$r=ir===void 0?0:parseInt(ir,10);return isNaN($r)?Kt:Kt+$r},0);return{set:j,get:ce,getOuter:Me,aggregate:Ve,max:(Ot,_t,Kt)=>{const Cn=Ve(Ot,Kt);return _t>Cn?_t-Cn:0}}},vh=(A,$)=>Vs(A).getOr($),Ja=(A,$,j)=>vh(Zi(A,$),j),ui=(A,$,j,ce)=>{const Me=Ja(A,`padding-${j}`,0),Ve=Ja(A,`padding-${ce}`,0),nt=Ja(A,`border-${j}-width`,0),Ot=Ja(A,`border-${ce}-width`,0);return $-Me-Ve-nt-Ot},wu=(A,$)=>{const j=A.dom,ce=j.getBoundingClientRect().width||j.offsetWidth;return $==="border-box"?ce:ui(A,ce,"left","right")},py=A=>Ja(A,"height",A.dom.offsetHeight),IO=A=>Ja(A,"width",A.dom.offsetWidth),Vl=A=>wu(A,"content-box"),Og=Kv("width",A=>A.dom.offsetWidth),Sc=A=>Og.get(A),Mf=A=>Og.getOuter(A),vy=Vl,jo=IO,zc=(A,$,j)=>{const ce=A.cells,Me=ce.slice(0,$),Ve=ce.slice($),nt=Me.concat(j).concat(Ve);return yy(A,nt)},yh=(A,$,j)=>zc(A,$,[j]),hm=(A,$,j)=>{const ce=A.cells;ce[$]=j},yy=(A,$)=>Xs(A.element,$,A.section,A.isNew),by=(A,$)=>{const j=A.cells,ce=fe(j,$);return Xs(A.element,ce,A.section,A.isNew)},nc=(A,$)=>A.cells[$],wi=(A,$)=>nc(A,$).element,ou=A=>A.cells.length,Hi=A=>{const $=Te(A,j=>j.section==="colgroup");return{rows:$.fail,cols:$.pass}},Oy=(A,$,j)=>{const ce=fe(A.cells,j);return Xs($(A.element),ce,A.section,!0)},Jv="data-snooker-locked-cols",Ti=A=>dn(A,Jv).bind($=>E.from($.match(/\d+/g))).map($=>Ze($,B)),Ui=A=>{const $=ne(Hi(A).rows,(ce,Me)=>(ee(Me.cells,(Ve,nt)=>{Ve.isLocked&&(ce[nt]=!0)}),ce),{}),j=Xe($,(ce,Me)=>parseInt(Me,10));return De(j)},Yu=(A,$)=>A+","+$,mm=(A,$,j)=>E.from(A.access[Yu($,j)]),Ci=(A,$,j)=>{const ce=xg(A,Me=>j($,Me.element));return ce.length>0?E.some(ce[0]):E.none()},xg=(A,$)=>{const j=Le(A.all,ce=>ce.cells);return Be(j,$)},Up=A=>{const $={};let j=0;return ee(A.cells,ce=>{const Me=ce.colspan;q(Me,Ve=>{const nt=j+Ve;$[nt]=vc(ce.element,Me,nt)}),j+=Me}),$},Ta=A=>{const $={},j=[],Me=re(A).map(Rr=>Rr.element).bind(Oc).bind(Ti).getOr({});let Ve=0,nt=0,Ot=0;const{pass:_t,fail:Kt}=Te(A,Rr=>Rr.section==="colgroup");ee(Kt,Rr=>{const Kn=[];ee(Rr.cells,Ir=>{let jn=0;for(;$[Yu(Ot,jn)]!==void 0;)jn++;const io=je(Me,jn.toString()),$o=Ko(Ir.element,Ir.rowspan,Ir.colspan,Ot,jn,io);for(let os=0;os{const Kn=Up(Rr);return{colgroups:[ii(Rr.element,ct(Kn))],columns:Kn}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:to(Ve,nt),access:$,all:j,columns:Cn,colgroups:ir}},hs={fromTable:A=>{const $=um(A);return Ta($)},generate:Ta,getAt:mm,findItem:Ci,filterItems:xg,justCells:A=>Le(A.all,$=>$.cells),justColumns:A=>ct(A.columns),hasColumns:A=>se(A.columns).length>0,getColumnAt:(A,$)=>E.from(A.columns[$])},gm=(A,$=B)=>{const j=A.grid,ce=q(j.columns,I),Me=q(j.rows,I);return fe(ce,Ve=>e0(()=>Le(Me,Kt=>hs.getAt(A,Kt,Ve).filter(Cn=>Cn.column===Ve).toArray()),Kt=>Kt.colspan===1&&$(Kt.element),()=>hs.getAt(A,0,Ve)))},e0=(A,$,j)=>{const ce=A();return G(ce,$).orThunk(()=>E.from(ce[0]).orThunk(j)).map(nt=>nt.element)},Yp=A=>{const $=A.grid,j=q($.rows,I),ce=q($.columns,I);return fe(j,Me=>e0(()=>Le(ce,_t=>hs.getAt(A,Me,_t).filter(Kt=>Kt.row===Me).fold(M([]),Kt=>[Kt])),_t=>_t.rowspan===1,()=>hs.getAt(A,Me,0)))},zS=(A,$)=>{if($<0||$>=A.length-1)return E.none();const j=A[$].fold(()=>{const Me=$e(A.slice(0,$));return te(Me,(Ve,nt)=>Ve.map(Ot=>({value:Ot,delta:nt+1})))},Me=>E.some({value:Me,delta:0})),ce=A[$+1].fold(()=>{const Me=A.slice($+1);return te(Me,(Ve,nt)=>Ve.map(Ot=>({value:Ot,delta:nt+1})))},Me=>E.some({value:Me,delta:1}));return j.bind(Me=>ce.map(Ve=>{const nt=Ve.delta+Me.delta;return Math.abs(Ve.value-Me.value)/nt}))},ZS=(A,$)=>j=>Sy(j)==="rtl"?$:A,Sy=A=>Zi(A,"direction")==="rtl"?"rtl":"ltr",pm=Kv("height",A=>{const $=A.dom;return oa(A)?$.getBoundingClientRect().height:$.offsetHeight}),t0=A=>pm.get(A),vm=A=>pm.getOuter(A),Sg=py,NO=(A,$)=>({left:A,top:$,translate:(ce,Me)=>NO(A+ce,$+Me)}),Xu=NO,BO=A=>{const $=A.getBoundingClientRect();return Xu($.left,$.top)},ym=(A,$)=>A!==void 0?A:$!==void 0?$:0,Tu=A=>{const $=A.dom.ownerDocument,j=$.body,ce=$.defaultView,Me=$.documentElement;if(j===A.dom)return Xu(j.offsetLeft,j.offsetTop);const Ve=ym(ce==null?void 0:ce.pageYOffset,Me.scrollTop),nt=ym(ce==null?void 0:ce.pageXOffset,Me.scrollLeft),Ot=ym(Me.clientTop,j.clientTop),_t=ym(Me.clientLeft,j.clientLeft);return n0(A).translate(nt-_t,Ve-Ot)},n0=A=>{const $=A.dom,ce=$.ownerDocument.body;return ce===$?Xu(ce.offsetLeft,ce.offsetTop):oa(A)?BO($):Xu(0,0)},wy=(A,$)=>({row:A,y:$}),wg=(A,$)=>({col:A,x:$}),Ty=A=>Tu(A).left+Mf(A),Cy=A=>Tu(A).left,ky=(A,$)=>wg(A,Cy($)),r0=(A,$)=>wg(A,Ty($)),sl=A=>Tu(A).top,Xp=(A,$)=>wy(A,sl($)),ca=(A,$)=>wy(A,sl($)+vm($)),uo=(A,$,j)=>{if(j.length===0)return[];const ce=fe(j.slice(1),(Ve,nt)=>Ve.map(Ot=>A(nt,Ot))),Me=j[j.length-1].map(Ve=>$(j.length-1,Ve));return ce.concat([Me])},Gu=A=>-A,Xr={delta:I,positions:A=>uo(Xp,ca,A),edge:sl},Dd=ZS({delta:I,edge:Cy,positions:A=>uo(ky,r0,A)},{delta:Gu,edge:Ty,positions:A=>uo(r0,ky,A)}),vi={delta:(A,$)=>Dd($).delta(A,$),positions:(A,$)=>Dd($).positions(A,$),edge:A=>Dd(A).edge(A)},$d={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Gp=(()=>{const A="[0-9]+",j="[eE]"+("[+-]?"+A),ce="\\.",Me=Ot=>`(?:${Ot})?`,nt=`[+-]?(?:${["Infinity",A+ce+Me(A)+Me(j),ce+A+Me(j),A+Me(j)].join("|")})`;return new RegExp(`^(${nt})(.*)$`)})(),al=(A,$)=>ae($,j=>ae($d[j],ce=>A===ce)),_f=(A,$)=>E.from(Gp.exec(A)).bind(ce=>{const Me=Number(ce[1]),Ve=ce[2];return al(Ve,$)?E.some({value:Me,unit:Ve}):E.none()}),bm=/(\d+(\.\d+)?)%/,ju=/(\d+(\.\d+)?)px|em/,Ay=He("col"),o0=(A,$,j)=>{const ce=Oo(A).getOrThunk(()=>Md(Rn(A)));return $(A)/j(ce)*100},lr=(A,$)=>{Ya(A,"width",$+"px")},QO=(A,$)=>{Ya(A,"width",$+"%")},Ml=(A,$)=>{Ya(A,"height",$+"px")},Kf=A=>Sg(A)+"px",Tg=(A,$,j,ce)=>{const Me=Oc(A).map(Ve=>{const nt=j(Ve);return Math.floor($/100*nt)}).getOr($);return ce(A,Me),Me},da=(A,$,j,ce)=>{const Me=parseFloat(A);return Fc(A,"%")&&wn($)!=="table"?Tg($,Me,j,ce):Me},aa=A=>{const $=Kf(A);return $?da($,A,t0,Ml):t0(A)},El=(A,$,j)=>{const ce=j(A),Me=Su(A,$);return ce/Me},Zl=(A,$)=>Np(A,$).orThunk(()=>dn(A,$).map(j=>j+"px")),Os=A=>Zl(A,"width"),jp=A=>Zl(A,"height"),il=A=>o0(A,Sc,vy),ei=A=>Ay(A)?Sc(A):jo(A),qp=A=>El(A,"rowspan",aa),er=A=>Os(A).bind(j=>_f(j,["fixed","relative","empty"])),Zc=(A,$,j)=>{Ya(A,"width",$+j)},Cg=A=>Sc(A)+"px",zs=A=>o0(A,Sc,vy)+"%",Rf=A=>Os(A).exists($=>bm.test($)),US=A=>Os(A).exists($=>ju.test($)),qu=A=>Os(A).isNone(),s0=M(bm),su=He("col"),a0=A=>Os(A).getOrThunk(()=>ei(A)+"px"),rc=A=>jp(A).getOrThunk(()=>qp(A)+"px"),Ws=A=>fe(hs.justColumns(A),$=>E.from($.element)),au=A=>{const $=Hp().browser,j=$.isChromium()||$.isFirefox();return su(A)?j:!0},fi=(A,$,j,ce,Me,Ve)=>A.filter(ce).fold(()=>Ve(zS(j,$)),nt=>Me(nt)),ll=(A,$,j,ce)=>{const Me=gm(A),Ve=hs.hasColumns(A)?Ws(A):Me,nt=[E.some(vi.edge($))].concat(fe(vi.positions(Me,$),_t=>_t.map(Kt=>Kt.x))),Ot=F(Al);return fe(Ve,(_t,Kt)=>fi(_t,Kt,nt,Ot,Cn=>{if(au(Cn))return j(Cn);{const ir=Vu(Me[Kt],I);return fi(ir,Kt,nt,Ot,$r=>ce(E.some(Sc($r))),ce)}},ce))},Ld=A=>A.map($=>$+"px").getOr(""),Jf=(A,$)=>ll(A,$,a0,Ld),Id=(A,$,j)=>ll(A,$,il,ce=>ce.fold(()=>j.minCellWidth(),Me=>Me/j.pixelWidth()*100)),wc=(A,$,j)=>ll(A,$,ei,ce=>ce.getOrThunk(j.minCellWidth)),ed=(A,$,j,ce,Me)=>{const Ve=Yp(A),nt=[E.some(j.edge($))].concat(fe(j.positions(Ve,$),Ot=>Ot.map(_t=>_t.y)));return fe(Ve,(Ot,_t)=>fi(Ot,_t,nt,F(bc),ce,Me))},Mn=(A,$,j)=>ed(A,$,j,qp,ce=>ce.getOrThunk(kf)),Tc=(A,$,j)=>ed(A,$,j,rc,Ld),td=(A,$)=>()=>oa(A)?$(A):parseFloat(Np(A,"width").getOr("0")),nd=A=>{const $=td(A,Sc),j=M(0);return{width:$,pixelWidth:$,getWidths:(Me,Ve)=>wc(Me,A,Ve),getCellDelta:j,singleColumnWidth:M([0]),minCellWidth:j,setElementWidth:w,adjustTableWidth:w,isRelative:!0,label:"none"}},Hc=A=>{const $=td(A,_t=>parseFloat(zs(_t))),j=td(A,Sc);return{width:$,pixelWidth:j,getWidths:(_t,Kt)=>Id(_t,A,Kt),getCellDelta:_t=>_t/j()*100,singleColumnWidth:(_t,Kt)=>[100-_t],minCellWidth:()=>ci()/j()*100,setElementWidth:QO,adjustTableWidth:_t=>{const Kt=$(),Cn=_t/100*Kt,ir=Kt+Cn;QO(A,ir)},isRelative:!0,label:"percent"}},Wi=A=>{const $=td(A,Sc);return{width:$,pixelWidth:$,getWidths:(nt,Ot)=>wc(nt,A,Ot),getCellDelta:I,singleColumnWidth:(nt,Ot)=>[Math.max(ci(),nt+Ot)-nt],minCellWidth:ci,setElementWidth:lr,adjustTableWidth:nt=>{const Ot=$()+nt;lr(A,Ot)},isRelative:!1,label:"pixel"}},Di=(A,$)=>s0().exec($)!==null?Hc(A):Wi(A),Cc={getTableSize:A=>Os(A).fold(()=>nd(A),j=>Di(A,j)),pixelSize:Wi,percentageSize:Hc,noneSize:nd},D=(A,$,j,ce,Me,Ve)=>({minRow:A,minCol:$,maxRow:j,maxCol:ce,allCells:Me,selectedCells:Ve}),X=(A,$)=>{const j=A.grid.columns;let Me=A.grid.rows,Ve=j,nt=0,Ot=0;const _t=[],Kt=[];return oe(A.access,Cn=>{if(_t.push(Cn),$(Cn)){Kt.push(Cn);const ir=Cn.row,$r=ir+Cn.rowspan-1,Rr=Cn.column,Kn=Rr+Cn.colspan-1;irnt&&(nt=$r),RrOt&&(Ot=Kn)}}),D(Me,Ve,nt,Ot,_t,Kt)},de=(A,$,j)=>{const ce=A[j].element,Me=zt.fromTag("td");Mt(Me,zt.fromTag("br")),($?Mt:$t)(ce,Me)},we=(A,$,j,ce)=>{const Me=Be(A,Ot=>Ot.section!=="colgroup"),Ve=$.grid.columns,nt=$.grid.rows;for(let Ot=0;Otj.maxRow||Ktj.maxCol||(hs.getAt($,Ot,Kt).filter(ce).isNone()?de(Me,_t,Ot):_t=!0)}},Pe=(A,$,j,ce)=>{oe(j.columns,nt=>{(nt.column<$.minCol||nt.column>$.maxCol)&&On(nt.element)});const Me=Be(Bp(A,"tr"),nt=>nt.dom.childElementCount===0);ee(Me,On),($.minCol===$.maxCol||$.minRow===$.maxRow)&&ee(Bp(A,"th,td"),nt=>{nn(nt,"rowspan"),nn(nt,"colspan")}),nn(A,Jv),nn(A,"data-snooker-col-series"),Cc.getTableSize(A).adjustTableWidth(ce)},Re=(A,$,j,ce)=>{if(ce.minCol===0&&$.grid.columns===ce.maxCol+1)return 0;const Me=wc($,A,j),Ve=ne(Me,(Kt,Cn)=>Kt+Cn,0),_t=ne(Me.slice(ce.minCol,ce.maxCol+1),(Kt,Cn)=>Kt+Cn,0)/Ve*j.pixelWidth()-j.pixelWidth();return j.getCellDelta(_t)},Ke=(A,$)=>{const j=$r=>vr($r.element,$),ce=zr(A),Me=um(ce),Ve=Cc.getTableSize(A),nt=hs.generate(Me),Ot=X(nt,j),_t="th:not("+$+"),td:not("+$+")",Kt=Qp(ce,"th,td",$r=>vr($r,_t));ee(Kt,On),we(Me,nt,Ot,j);const Cn=hs.fromTable(A),ir=Re(A,Cn,Ve,Ot);return Pe(ce,Ot,nt,ir),ce},We=" ",vt=((A,$)=>{const j=Ve=>{if(!A(Ve))throw new Error("Can only get "+$+" value of a "+$+" node");return ce(Ve).getOr("")},ce=Ve=>A(Ve)?E.from(Ve.dom.nodeValue):E.none();return{get:j,getOption:ce,set:(Ve,nt)=>{if(!A(Ve))throw new Error("Can only set raw "+$+" value of a "+$+" node");Ve.dom.nodeValue=nt}}})(xt,"text"),bt=A=>vt.get(A),Zt=A=>vt.getOption(A),Ut=(A,$)=>vt.set(A,$),gn=A=>wn(A)==="img"?1:Zt(A).fold(()=>St(A).length,$=>$.length),An=A=>Zt(A).filter($=>$.trim().length!==0||$.indexOf(We)>-1).isSome(),jt=A=>it(A)&&Pt(A,"contenteditable")==="false",tn=["img","br"],hn=A=>An(A)||me(tn,wn(A))||jt(A),_n=A=>Fa(A,hn),Pn=A=>yn(A,hn),yn=(A,$)=>{const j=ce=>{const Me=St(ce);for(let Ve=Me.length-1;Ve>=0;Ve--){const nt=Me[Ve];if($(nt))return E.some(nt);const Ot=j(nt);if(Ot.isSome())return Ot}return E.none()};return j(A)},cr={scope:["row","col"]},Zr=A=>()=>{const $=zt.fromTag("td",A.dom);return Mt($,zt.fromTag("br",A.dom)),$},Jr=A=>()=>zt.fromTag("col",A.dom),Ar=A=>()=>zt.fromTag("colgroup",A.dom),no=A=>()=>zt.fromTag("tr",A.dom),fo=(A,$,j)=>{const ce=Hr(A,$);return oe(j,(Me,Ve)=>{Me===null?nn(ce,Ve):dt(ce,Ve,Me)}),ce},ts=A=>A,xo=(A,$,j)=>_n(A).map(Me=>{const Ve=j.join(","),nt=Ou(Me,Ve,Ot=>or(Ot,A));return ge(nt,(Ot,_t)=>{const Kt=Fn(_t);return Mt(Ot,Kt),Kt},$)}).getOr($),go=(A,$)=>{oe(cr,(j,ce)=>dn(A,ce).filter(Me=>me(j,Me)).each(Me=>dt($,ce,Me)))},js=(A,$,j)=>{const ce=(nt,Ot)=>{Zu(nt.element,Ot),xu(Ot,"height"),nt.colspan!==1&&xu(Ot,"width")},Me=nt=>{const Ot=zt.fromTag(wn(nt.element),$.dom),_t=j.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),Kt=_t.length>0?xo(nt.element,Ot,_t):Ot;return Mt(Kt,zt.fromTag("br")),ce(nt,Ot),go(nt.element,Ot),A(nt.element,Ot),Ot};return{col:nt=>{const Ot=zt.fromTag(wn(nt.element),$.dom);return ce(nt,Ot),A(nt.element,Ot),Ot},colgroup:Ar($),row:no($),cell:Me,replace:fo,colGap:Jr($),gap:Zr($)}},ti=A=>({col:Jr(A),colgroup:Ar(A),row:no(A),cell:Zr(A),replace:ts,colGap:Jr(A),gap:Zr(A)}),ba=(A,$)=>{const ce=($||document).createElement("div");return ce.innerHTML=A,St(zt.fromDom(ce))},Lr=A=>fe(A,zt.fromDom),Do=A=>$=>$.options.get(A),ms="100%",_s=A=>{var $;const j=A.dom,ce=($=j.getParent(A.selection.getStart(),j.isBlock))!==null&&$!==void 0?$:A.getBody();return vy(zt.fromDom(ce))+"px"},Ba=(A,$)=>Li(A)||!Ii(A)?$:Ul(A)?{...$,width:_s(A)}:{...$,width:ms},di=(A,$)=>Li(A)||Ii(A)?$:Ul(A)?{...$,width:_s(A)}:{...$,width:ms},Yi=A=>{const $=A.options.register;$("table_clone_elements",{processor:"string[]"}),$("table_use_colgroups",{processor:"boolean",default:!0}),$("table_header_type",{processor:j=>{const ce=me(["section","cells","sectionCells","auto"],j);return ce?{value:j,valid:ce}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),$("table_sizing_mode",{processor:"string",default:"auto"}),$("table_default_attributes",{processor:"object",default:{border:"1"}}),$("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),$("table_column_resizing",{processor:j=>{const ce=me(["preservetable","resizetable"],j);return ce?{value:j,valid:ce}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),$("table_resize_bars",{processor:"boolean",default:!0}),$("table_style_by_css",{processor:"boolean",default:!0}),$("table_merge_content_on_paste",{processor:"boolean",default:!0})},$i=A=>E.from(A.options.get("table_clone_elements")),Uc=A=>{const $=A.options.get("object_resizing");return me($.split(","),"table")},Ki=Do("table_header_type"),kc=Do("table_column_resizing"),Hl=A=>kc(A)==="preservetable",ea=A=>kc(A)==="resizetable",Ku=Do("table_sizing_mode"),Df=A=>Ku(A)==="relative",Ul=A=>Ku(A)==="fixed",Li=A=>Ku(A)==="responsive",Wl=Do("table_resize_bars"),Ii=Do("table_style_by_css"),ta=Do("table_merge_content_on_paste"),Ac=A=>{const $=A.options,j=$.get("table_default_attributes");return $.isSet("table_default_attributes")?j:di(A,j)},Nd=A=>{const $=A.options,j=$.get("table_default_styles");return $.isSet("table_default_styles")?j:Ba(A,j)},Ju=Do("table_use_colgroups"),Om=A=>Ka(A,"[contenteditable]"),Bd=(A,$=!1)=>oa(A)?A.dom.isContentEditable:Om(A).fold(M($),j=>Py(j)==="true"),Py=A=>A.dom.contentEditable,FO=A=>zt.fromDom(A.getBody()),Oh=A=>$=>or($,FO(A)),Qd=A=>{nn(A,"data-mce-style");const $=j=>nn(j,"data-mce-style");ee(Af(A),$),ee(Fp(A),$),ee(Gv(A),$)},ef=A=>zt.fromDom(A.selection.getStart()),kg=A=>A.getBoundingClientRect().width,Ag=A=>A.getBoundingClientRect().height,KC=(A,$)=>{const j=A.dom.getStyle($,"width")||A.dom.getAttrib($,"width");return E.from(j).filter(lm)},VO=A=>/^(\d+(\.\d+)?)%$/.test(A),My=A=>/^(\d+(\.\d+)?)px$/.test(A),zO=A=>xi(A,He("table")).exists(Bd),JC=(A,$)=>{const j=$.column,ce=$.column+$.colspan-1,Me=$.row,Ve=$.row+$.rowspan-1;return j<=A.finishCol&&ce>=A.startCol&&Me<=A.finishRow&&Ve>=A.startRow},ZO=(A,$)=>$.column>=A.startCol&&$.column+$.colspan-1<=A.finishCol&&$.row>=A.startRow&&$.row+$.rowspan-1<=A.finishRow,Ey=(A,$)=>{let j=!0;const ce=N(ZO,$);for(let Me=$.startRow;Me<=$.finishRow;Me++)for(let Ve=$.startCol;Ve<=$.finishCol;Ve++)j=j&&hs.getAt(A,Me,Ve).exists(ce);return j?E.some($):E.none()},_y=(A,$)=>Wa(Math.min(A.row,$.row),Math.min(A.column,$.column),Math.max(A.row+A.rowspan-1,$.row+$.rowspan-1),Math.max(A.column+A.colspan-1,$.column+$.colspan-1)),ks=(A,$,j)=>{const ce=hs.findItem(A,$,or),Me=hs.findItem(A,j,or);return ce.bind(Ve=>Me.map(nt=>_y(Ve,nt)))},vo=(A,$,j)=>ks(A,$,j).bind(ce=>Ey(A,ce)),xm=(A,$,j,ce)=>hs.findItem(A,$,or).bind(Me=>{const Ve=j>0?Me.row+Me.rowspan-1:Me.row,nt=ce>0?Me.column+Me.colspan-1:Me.column;return hs.getAt(A,Ve+j,nt+ce).map(_t=>_t.element)}),HO=(A,$,j)=>ks(A,$,j).map(ce=>{const Me=hs.filterItems(A,N(JC,ce));return fe(Me,Ve=>Ve.element)}),Ry=(A,$)=>{const j=(ce,Me)=>jr(Me,ce);return hs.findItem(A,$,j).map(ce=>ce.element)},EM=(A,$,j)=>Oc(A).bind(ce=>{const Me=XS(ce);return xm(Me,A,$,j)}),WS=(A,$,j)=>{const ce=XS(A);return HO(ce,$,j)},Ea=(A,$,j,ce,Me)=>{const Ve=XS(A),nt=or(A,j)?E.some($):Ry(Ve,$),Ot=or(A,Me)?E.some(ce):Ry(Ve,ce);return nt.bind(_t=>Ot.bind(Kt=>HO(Ve,_t,Kt)))},YS=(A,$,j)=>{const ce=XS(A);return vo(ce,$,j)},XS=hs.fromTable;var GS=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],qn=()=>{const A=Kt=>zt.fromDom(Kt.dom.cloneNode(!1)),$=Kt=>xr(Kt).dom,j=Kt=>ut(Kt)?wn(Kt)==="body"?!0:me(GS,wn(Kt)):!1,ce=Kt=>ut(Kt)?me(["br","img","hr","input"],wn(Kt)):!1,Me=Kt=>ut(Kt)&&Pt(Kt,"contenteditable")==="false",Ve=(Kt,Cn)=>Kt.dom.compareDocumentPosition(Cn.dom),nt=(Kt,Cn)=>{const ir=Wt(Kt);mt(Cn,ir)},Ot=Kt=>{const Cn=wn(Kt);return me(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],Cn)},_t=Kt=>ut(Kt)?dn(Kt,"lang"):E.none();return{up:M({selector:yl,closest:Ka,predicate:Qa,all:wr}),down:M({selector:zi,predicate:Ed}),styles:M({get:Zi,getRaw:Np,set:Ya,remove:xu}),attrs:M({get:Pt,set:dt,remove:nn,copyTo:nt}),insert:M({before:Ft,after:Ht,afterAll:Jt,append:Mt,appendAll:rn,prepend:$t,wrap:un}),remove:M({unwrap:pn,remove:On}),create:M({nu:zt.fromTag,clone:A,text:zt.fromText}),query:M({comparePosition:Ve,prevSibling:Fe,nextSibling:Ee}),property:M({children:St,name:wn,parent:ao,document:$,isText:xt,isComment:Sn,isElement:ut,isSpecial:Ot,getLanguage:_t,getText:bt,setText:Ut,isBoundary:j,isEmptyTag:ce,isNonEditable:Me}),eq:or,is:_r}};const UO=(A,$,j,ce)=>{const Me=j[0],Ve=j.slice(1);return ce(A,$,Me,Ve)},_M=(A,$,j)=>j.length>0?UO(A,$,j,Dy):E.none(),Dy=(A,$,j,ce)=>{const Me=$(A,j);return ge(ce,(Ve,nt)=>{const Ot=$(A,nt);return RM(A,Ve,Ot)},Me)},RM=(A,$,j)=>$.bind(ce=>j.filter(N(A.eq,ce))),i0=(A,$)=>N(A.eq,$),jS=(A,$,j,ce=Q)=>{const Me=[$].concat(A.up().all($)),Ve=[j].concat(A.up().all(j)),nt=Cn=>Oe(Cn,ce).fold(()=>Cn,$r=>Cn.slice(0,$r+1)),Ot=nt(Me),_t=nt(Ve),Kt=G(Ot,Cn=>ae(_t,i0(A,Cn)));return{firstpath:Ot,secondpath:_t,shared:Kt}},Sm=_M,DM=jS,xh=qn(),Ca=(A,$)=>Sm(xh,(j,ce)=>A(ce),$),Sh=(A,$,j)=>DM(xh,A,$,j),qS=A=>yl(A,"table"),rd=(A,$,j)=>{const ce=Me=>Ve=>j!==void 0&&j(Ve)||or(Ve,Me);return or(A,$)?E.some({boxes:E.some([A]),start:A,finish:$}):qS(A).bind(Me=>qS($).bind(Ve=>{if(or(Me,Ve))return E.some({boxes:WS(Me,A,$),start:A,finish:$});if(jr(Me,Ve)){const nt=Ou($,"td,th",ce(Me)),Ot=nt.length>0?nt[nt.length-1]:$;return E.some({boxes:Ea(Me,A,Me,$,Ve),start:A,finish:Ot})}else if(jr(Ve,Me)){const nt=Ou(A,"td,th",ce(Ve)),Ot=nt.length>0?nt[nt.length-1]:A;return E.some({boxes:Ea(Ve,A,Me,$,Ve),start:A,finish:Ot})}else return Sh(A,$).shared.bind(nt=>Ka(nt,"table",j).bind(Ot=>{const _t=Ou($,"td,th",ce(Ot)),Kt=_t.length>0?_t[_t.length-1]:$,Cn=Ou(A,"td,th",ce(Ot)),ir=Cn.length>0?Cn[Cn.length-1]:A;return E.some({boxes:Ea(Ot,A,Me,$,Ve),start:ir,finish:Kt})}))}))},wm=(A,$)=>{const j=zi(A,$);return j.length>0?E.some(j):E.none()},KS=(A,$)=>G(A,j=>vr(j,$)),Kp=(A,$,j)=>li(A,$).bind(ce=>li(A,j).bind(Me=>Ca(qS,[ce,Me]).map(Ve=>({first:ce,last:Me,table:Ve})))),ek=(A,$)=>yl(A,"table").bind(j=>li(j,$).bind(ce=>rd(ce,A).bind(Me=>Me.boxes.map(Ve=>({boxes:Ve,start:Me.start,finish:Me.finish}))))),WO=(A,$,j,ce,Me)=>KS(A,Me).bind(Ve=>EM(Ve,$,j).bind(nt=>ek(nt,ce))),JS=(A,$)=>wm(A,$),$M=(A,$,j)=>Kp(A,$,j).bind(ce=>{const Me=_t=>or(A,_t),Ve="thead,tfoot,tbody,table",nt=yl(ce.first,Ve,Me),Ot=yl(ce.last,Ve,Me);return nt.bind(_t=>Ot.bind(Kt=>or(_t,Kt)?YS(ce.table,ce.first,ce.last):E.none()))}),ew=I,wh=A=>{const $=(ce,Me)=>dn(ce,Me).exists(Ve=>parseInt(Ve,10)>1),j=ce=>$(ce,"rowspan")||$(ce,"colspan");return A.length>0&&ke(A,j)?E.some(A):E.none()},j$=(A,$,j)=>$.length<=1?E.none():$M(A,j.firstSelectedSelector,j.lastSelectedSelector).map(ce=>({bounds:ce,cells:$})),tw="data-mce-selected",Pg="td["+tw+"],th["+tw+"]",Yl="["+tw+"]",Kr="data-mce-first-selected",LM="td["+Kr+"],th["+Kr+"]",nw="data-mce-last-selected",IM="td["+nw+"],th["+nw+"]",tk=Yl,Jp={selected:tw,selectedSelector:Pg,firstSelected:Kr,firstSelectedSelector:LM,lastSelected:nw,lastSelectedSelector:IM},l0=(A,$,j)=>({element:j,mergable:j$($,A,Jp),unmergable:wh(A),selection:ew(A)}),$y=(A,$,j)=>({element:A,clipboard:$,generators:j}),c0=(A,$,j,ce)=>({selection:ew(A),clipboard:j,generators:ce}),YO=A=>Oc(A).bind($=>JS($,Jp.firstSelectedSelector)).fold(M(A),$=>$[0]),Tm=A=>($,j)=>{const ce=wn($),Me=ce==="col"||ce==="colgroup"?YO($):$;return Ka(Me,A,j)},Fd=Tm("th,td,caption"),Ly=Tm("th,td"),$f=A=>Lr(A.model.table.getSelectedCells()),XO=A=>Be($f(A),$=>vr($,Jp.selectedSelector)),nk=A=>Oc(A[0]).map($=>{const j=Ke($,tk);return Qd(j),[j]}),u0=(A,$)=>fe($,j=>A.selection.serializer.serialize(j.dom,{})).join(""),Cm=A=>fe(A,$=>$.dom.innerText).join(""),NM=(A,$)=>{A.on("BeforeGetContent",j=>{const ce=Me=>{j.preventDefault(),nk(Me).each(Ve=>{j.content=j.format==="text"?Cm(Ve):u0(A,Ve)})};if(j.selection===!0){const Me=XO(A);Me.length>=1&&ce(Me)}}),A.on("BeforeSetContent",j=>{if(j.selection===!0&&j.paste===!0){const ce=$f(A);re(ce).each(Me=>{Oc(Me).each(Ve=>{const nt=Be(ba(j.content),_t=>wn(_t)!=="meta"),Ot=He("table");if(ta(A)&&nt.length===1&&Ot(nt[0])){j.preventDefault();const _t=zt.fromDom(A.getDoc()),Kt=ti(_t),Cn=$y(Me,nt[0],Kt);$.pasteCells(Ve,Cn).each(()=>{A.focus()})}})})}})},f0=(A,$)=>({element:A,offset:$}),ev=(A,$,j)=>A.property().isText($)&&A.property().getText($).trim().length===0||A.property().isComment($)?j($).bind(ce=>ev(A,ce,j).orThunk(()=>E.some(ce))):E.none(),od=(A,$)=>A.property().isText($)?A.property().getText($).length:A.property().children($).length,Cu=(A,$)=>{const j=ev(A,$,A.query().prevSibling).getOr($);if(A.property().isText(j))return f0(j,od(A,j));const ce=A.property().children(j);return ce.length>0?Cu(A,ce[ce.length-1]):f0(j,od(A,j))},BM=Cu,rk=qn(),ok=A=>BM(rk,A),rw=(A,$)=>{Al(A)||er(A).each(ce=>{const Me=ce.value/2;Zc(A,Me,ce.unit),Zc($,Me,ce.unit)})},ku=A=>fe(A,M(0)),d0=(A,$,j,ce,Me)=>Me(A.slice(0,$)).concat(ce).concat(Me(A.slice(j))),GO=A=>($,j,ce,Me)=>{if(A(ce)){const Ve=Math.max(Me,$[j]-Math.abs(ce)),nt=Math.abs(Ve-$[j]);return ce>=0?nt:-nt}else return ce},jO=GO(A=>A<0),QM=GO(B),sk=()=>{const A=(Ot,_t,Kt,Cn,ir)=>{const $r=jO(Ot,_t,Cn,ir);return d0(Ot,_t,Kt+1,[$r,0],ku)},$=(Ot,_t,Kt,Cn)=>{const ir=(100+Kt)/100,$r=Math.max(Cn,(Ot[_t]+Kt)/ir);return fe(Ot,(Rr,Kn)=>(Kn===_t?$r:Rr/ir)-Rr)},j=(Ot,_t,Kt,Cn,ir,$r)=>$r?$(Ot,_t,Cn,ir):A(Ot,_t,Kt,Cn,ir);return{resizeTable:(Ot,_t)=>Ot(_t),clampTableDelta:jO,calcLeftEdgeDeltas:j,calcMiddleDeltas:(Ot,_t,Kt,Cn,ir,$r,Rr)=>j(Ot,Kt,Cn,ir,$r,Rr),calcRightEdgeDeltas:(Ot,_t,Kt,Cn,ir,$r)=>{if($r)return $(Ot,Kt,Cn,ir);{const Rr=jO(Ot,Kt,Cn,ir);return ku(Ot.slice(0,Kt)).concat([Rr])}},calcRedestributedWidths:(Ot,_t,Kt,Cn)=>{if(Cn){const $r=(_t+Kt)/_t,Rr=fe(Ot,Kn=>Kn/$r);return{delta:$r*100-100,newSizes:Rr}}else return{delta:Kt,newSizes:Ot}}}},ow=()=>{const A=(nt,Ot,_t,Kt,Cn)=>{const ir=Kt>=0?_t:Ot,$r=QM(nt,ir,Kt,Cn);return d0(nt,Ot,_t+1,[$r,-$r],ku)};return{resizeTable:(nt,Ot,_t)=>{_t&&nt(Ot)},clampTableDelta:(nt,Ot,_t,Kt,Cn)=>{if(Cn){if(_t>=0)return _t;{const ir=ne(nt,($r,Rr)=>$r+Rr-Kt,0);return Math.max(-ir,_t)}}else return jO(nt,Ot,_t,Kt)},calcLeftEdgeDeltas:A,calcMiddleDeltas:(nt,Ot,_t,Kt,Cn,ir)=>A(nt,_t,Kt,Cn,ir),calcRightEdgeDeltas:(nt,Ot,_t,Kt,Cn,ir)=>{if(ir)return ku(nt);{const $r=Kt/nt.length;return fe(nt,M($r))}},calcRedestributedWidths:(nt,Ot,_t,Kt)=>({delta:0,newSizes:nt})}},h0=A=>hs.fromTable(A).grid,m0=He("th"),qO=A=>ke(A,$=>m0($.element)),FM=(A,$)=>A&&$?"sectionCells":A?"section":"cells",KO=A=>{const $=A.section==="thead",j=Gf(g0(A.cells),"th");return A.section==="tfoot"?{type:"footer"}:$||j?{type:"header",subType:FM($,j)}:{type:"body"}},g0=A=>{const $=Be(A,j=>m0(j.element));return $.length===0?E.some("td"):$.length===A.length?E.some("th"):E.none()},VM=A=>{const $=fe(A,Me=>KO(Me).type),j=me($,"header"),ce=me($,"footer");if(!j&&!ce)return E.some("body");{const Me=me($,"body");return j&&!Me&&!ce?E.some("header"):!j&&!Me&&ce?E.some("footer"):E.none()}},Iy=A=>te(A.all,$=>{const j=KO($);return j.type==="header"?E.from(j.subType):E.none()}),sw=(A,$,j)=>es(j(A.element,$),!0,A.isLocked),Au=(A,$)=>A.section!==$?Xs(A.element,A.cells,$,A.isNew):A,JO=()=>({transformRow:Au,transformCell:(A,$,j)=>{const ce=j(A.element,$),Me=wn(ce)!=="td"?ar(ce,"td"):ce;return es(Me,A.isNew,A.isLocked)}}),ak=()=>({transformRow:Au,transformCell:sw}),ex=()=>({transformRow:(A,$)=>Au(A,$==="thead"?"tbody":$),transformCell:sw}),Mg={getTableSectionType:(A,$)=>{const j=hs.fromTable(A);switch(Iy(j).getOr($)){case"section":return JO();case"sectionCells":return ak();case"cells":return ex()}},section:JO,sectionCells:ak,cells:ex,fallback:()=>({transformRow:I,transformCell:sw})},Th=(A,$,j,ce)=>{j===ce?nn(A,$):dt(A,$,j)},aw=(A,$,j)=>{ye(Po(A,$)).fold(()=>$t(A,j),ce=>Ht(ce,j))},p0=(A,$)=>{const j=Zo(A,$).getOrThunk(()=>{const ce=zt.fromTag($,Rn(A).dom);return $==="thead"?aw(A,"caption,colgroup",ce):$==="colgroup"?aw(A,"caption",ce):Mt(A,ce),ce});return Tn(j),j},nx=(A,$)=>{const j=[],ce=[],Me=Rr=>fe(Rr,Kn=>{Kn.isNew&&j.push(Kn.element);const Ir=Kn.element;return Tn(Ir),ee(Kn.cells,jn=>{jn.isNew&&ce.push(jn.element),Th(jn.element,"colspan",jn.colspan,1),Th(jn.element,"rowspan",jn.rowspan,1),Mt(Ir,jn.element)}),Ir}),Ve=Rr=>Le(Rr,Kn=>fe(Kn.cells,Ir=>(Th(Ir.element,"span",Ir.colspan,1),Ir.element))),nt=(Rr,Kn)=>{const Ir=p0(A,Kn),io=(Kn==="colgroup"?Ve:Me)(Rr);rn(Ir,io)},Ot=Rr=>{Zo(A,Rr).each(On)},_t=(Rr,Kn)=>{Rr.length>0?nt(Rr,Kn):Ot(Kn)},Kt=[],Cn=[],ir=[],$r=[];return ee($,Rr=>{switch(Rr.section){case"thead":Kt.push(Rr);break;case"tbody":Cn.push(Rr);break;case"tfoot":ir.push(Rr);break;case"colgroup":$r.push(Rr);break}}),_t($r,"colgroup"),_t(Kt,"thead"),_t(Cn,"tbody"),_t(ir,"tfoot"),{newRows:j,newCells:ce}},ik=A=>fe(A,$=>{const j=Fn($.element);return ee($.cells,ce=>{const Me=zr(ce.element);Th(Me,"colspan",ce.colspan,1),Th(Me,"rowspan",ce.rowspan,1),Mt(j,Me)}),j}),Da=(A,$)=>fe(A,j=>nc(j,$)),zM=(A,$)=>A[$],ki=(A,$)=>{if(A.length===0)return 0;const j=A[0];return Oe(A,Me=>!$(j.element,Me.element)).getOr(A.length)},lk=(A,$,j,ce)=>{const Me=zM(A,$),Ve=Me.section==="colgroup",nt=ki(Me.cells.slice(j),ce),Ot=Ve?1:ki(Da(A.slice($),j),ce);return{colspan:nt,rowspan:Ot}},Xa=(A,$)=>{const j=fe(A,Me=>fe(Me.cells,Q)),ce=(Me,Ve,nt,Ot)=>{for(let _t=Me;_t{const nt=Le(Me.cells,(Ot,_t)=>{if(j[Ve][_t]===!1){const Kt=lk(A,Ve,_t,$);return ce(Ve,_t,Kt.rowspan,Kt.colspan),[So(Ot.element,Kt.rowspan,Kt.colspan,Ot.isNew)]}else return[]});return qs(Me.element,nt,Me.section,Me.isNew)})},v0=(A,$,j)=>{const ce=[];ee(A.colgroups,Me=>{const Ve=[];for(let nt=0;ntes(_t.element,j,!1)).getOrThunk(()=>es($.colGap(),!0,!1));Ve.push(Ot)}ce.push(Xs(Me.element,Ve,"colgroup",j))});for(let Me=0;Mees(Cn.element,j,Cn.isLocked)).getOrThunk(()=>es($.gap(),!0,!1));Ve.push(Kt)}const nt=A.all[Me],Ot=Xs(nt.element,Ve,nt.section,j);ce.push(Ot)}return ce},Ji=(A,$)=>v0(A,$,!1),ni=A=>Xa(A,or),tf=(A,$)=>te(A.all,j=>G(j.cells,ce=>or($,ce.element))),iw=(A,$,j)=>{const ce=fe($.selection,Ve=>Xv(Ve).bind(nt=>tf(A,nt)).filter(j)),Me=Za(ce);return zu(Me.length>0,Me)},Xl=(A,$,j,ce,Me)=>(Ve,nt,Ot,_t)=>{const Kt=hs.fromTable(Ve),Cn=E.from(_t==null?void 0:_t.section).getOrThunk(Mg.fallback);return $(Kt,nt).map($r=>{const Rr=Ji(Kt,Ot),Kn=A(Rr,$r,or,Me(Ot),Cn),Ir=Ui(Kn.grid),jn=ni(Kn.grid);return{info:$r,grid:jn,cursor:Kn.cursor,lockedColumns:Ir}}).bind($r=>{const Rr=nx(Ve,$r.grid),Kn=E.from(_t==null?void 0:_t.sizing).getOrThunk(()=>Cc.getTableSize(Ve)),Ir=E.from(_t==null?void 0:_t.resize).getOrThunk(ow);return j(Ve,$r.grid,$r.info,{sizing:Kn,resize:Ir,section:Cn}),ce(Ve),nn(Ve,Jv),$r.lockedColumns.length>0&&dt(Ve,Jv,$r.lockedColumns.join(",")),E.some({cursor:$r.cursor,newRows:Rr.newRows,newCells:Rr.newCells})})},Ny=(A,$)=>Xv($.element).bind(j=>tf(A,j).map(ce=>({...ce,generators:$.generators,clipboard:$.clipboard}))),y0=(A,$)=>iw(A,$,B).map(j=>({cells:j,generators:$.generators,clipboard:$.clipboard})),Ch=(A,$)=>$.mergable,b0=(A,$)=>$.unmergable,Eg=(A,$)=>iw(A,$,B),km=(A,$)=>iw(A,$,j=>!j.isLocked),ZM=(A,$)=>tf(A,$).exists(j=>!j.isLocked),ck=(A,$)=>ke($,j=>ZM(A,j)),K$=(A,$)=>Ch(A,$).filter(j=>ck(A,j.cells)),J$=(A,$)=>b0(A,$).filter(j=>ck(A,j)),sd=(A,$,j,ce)=>{const Me=Hi(A).rows;if(Me.length===0)return A;for(let Ve=$.startRow;Ve<=$.finishRow;Ve++)for(let nt=$.startCol;nt<=$.finishCol;nt++){const Ot=Me[Ve],_t=nc(Ot,nt).isLocked;hm(Ot,nt,es(ce(),!1,_t))}return A},Pc=(A,$,j,ce)=>{const Me=Hi(A).rows;let Ve=!0;for(let nt=0;ntne(A,(j,ce)=>ae(j,Me=>$(Me.element,ce.element))?j:j.concat([ce]),[]),UM=(A,$,j,ce)=>($>0&&${const Ve=Me.cells[$-1];let nt=0;const Ot=ce();for(;Me.cells.length>$+nt&&j(Ve.element,Me.cells[$+nt].element);)hm(Me,$+nt,es(Ot,!0,Me.cells[$+nt].isLocked)),nt++}),A),_g=(A,$,j,ce)=>{const Me=Hi(A).rows;if($>0&&${let _t=E.none();for(let Kt=$;Kt{hm(ir,Cn,es(Kn,!0,$r.isLocked))}))}})}return A},By=A=>{const $=Ve=>Ve(A),j=M(A),ce=()=>Me,Me={tag:!0,inner:A,fold:(Ve,nt)=>nt(A),isValue:B,isError:Q,map:Ve=>kh.value(Ve(A)),mapError:ce,bind:$,exists:$,forall:$,getOr:j,or:ce,getOrThunk:j,orThunk:ce,getOrDie:j,each:Ve=>{Ve(A)},toOptional:()=>E.some(A)};return Me},rx=A=>{const $=()=>j,j={tag:!1,inner:A,fold:(ce,Me)=>ce(A),isValue:Q,isError:B,map:$,mapError:ce=>kh.error(ce(A)),bind:$,exists:Q,forall:B,getOr:I,or:I,getOrThunk:U,orThunk:U,getOrDie:z(String(A)),each:w,toOptional:E.none};return j},kh={value:By,error:rx,fromOption:(A,$)=>A.fold(()=>rx($),By)},O0=(A,$,j)=>{if(A.row>=$.length||A.column>ou($[0]))return kh.error("invalid start address out of table bounds, row: "+A.row+", column: "+A.column);const ce=$.slice(A.row),Me=ce[0].cells.slice(A.column),Ve=ou(j[0]),nt=j.length;return kh.value({rowDelta:ce.length-nt,colDelta:Me.length-Ve})},x0=(A,$)=>{const j=ou(A[0]),ce=ou($[0]);return{rowDelta:0,colDelta:j-ce}},S0=(A,$)=>{const j=A.length,ce=$.length;return{rowDelta:j-ce,colDelta:0}},tv=(A,$,j,ce)=>{const Me=$.section==="colgroup"?j.col:j.cell;return q(A,Ve=>es(Me(),!0,ce(Ve)))},uk=(A,$,j,ce)=>{const Me=A[A.length-1];return A.concat(q($,()=>{const Ve=Me.section==="colgroup"?j.colgroup:j.row,nt=Oy(Me,Ve,I),Ot=tv(nt.cells.length,nt,j,_t=>Ye(ce,_t.toString()));return yy(nt,Ot)}))},yi=(A,$,j,ce)=>fe(A,Me=>{const Ve=tv($,Me,j,Q);return zc(Me,ce,Ve)}),fk=(A,$,j)=>fe(A,ce=>ne(j,(Me,Ve)=>{const nt=tv(1,ce,$,B)[0];return yh(Me,Ve,nt)},ce)),w0=(A,$,j)=>{const ce=$.colDelta<0?yi:I,Me=$.rowDelta<0?uk:I,Ve=Ui(A),nt=ou(A[0]),Ot=ae(Ve,Cn=>Cn===nt-1),_t=ce(A,Math.abs($.colDelta),j,Ot?nt-1:nt),Kt=Ui(_t);return Me(_t,Math.abs($.rowDelta),j,Ze(Kt,B))},dk=(A,$,j,ce)=>{const Me=nc(A[$],j),Ve=N(ce,Me.element),nt=A[$];return A.length>1&&ou(nt)>1&&(j>0&&Ve(wi(nt,j-1))||j0&&Ve(wi(A[$-1],j))||${const nt=A.row,Ot=A.column,_t=j.length,Kt=ou(j[0]),Cn=nt+_t,ir=Ot+Kt+Ve.length,$r=Ze(Ve,B);for(let Rr=nt;Rr{const ce=ou($[0]),Me=Hi($).cols.length+A.row,Ve=q(ce-A.column,Ot=>Ot+A.column),nt=G(Ve,Ot=>ke(j,_t=>_t!==Ot)).getOr(ce-1);return{row:Me,column:nt}},nf=(A,$,j)=>Be(j,ce=>ce>=A.column&&ce<=ou($[0])+A.column),hk=(A,$,j,ce,Me)=>{const Ve=Ui($),nt=oc(A,$,Ve),Ot=Hi(j).rows,_t=nf(nt,Ot,Ve);return O0(nt,$,Ot).map(Cn=>{const ir={...Cn,colDelta:Cn.colDelta-_t.length},$r=w0($,ir,ce),Rr=Ui($r),Kn=nf(nt,Ot,Rr);return sx(nt,$r,Ot,ce,Me,Kn)})},ax=(A,$,j,ce,Me)=>{UM($,A,Me,ce.cell);const Ve=S0(j,$),nt=w0(j,Ve,ce),Ot=S0($,nt),_t=w0($,Ot,ce);return fe(_t,(Kt,Cn)=>zc(Kt,A,nt[Cn].cells))},nv=(A,$,j,ce,Me)=>{_g($,A,Me,ce.cell);const Ve=Ui($),nt=x0($,j),Ot={...nt,colDelta:nt.colDelta-Ve.length},_t=w0($,Ot,ce),{cols:Kt,rows:Cn}=Hi(_t),ir=Ui(_t),$r=x0(j,$),Rr={...$r,colDelta:$r.colDelta+ir.length},Kn=fk(j,ce,ir),Ir=w0(Kn,Rr,ce);return[...Kt,...Cn.slice(0,A),...Ir,...Cn.slice(A,Cn.length)]},WM=(A,$,j,ce)=>Oy(A,Me=>ce(Me,j),$),mk=(A,$,j,ce,Me)=>{const{rows:Ve,cols:nt}=Hi(A),Ot=Ve.slice(0,$),_t=Ve.slice($),Kt=WM(Ve[j],(Cn,ir)=>$>0&&${if(j==="colgroup"||!ce){const Ot=nc(A,Me);return es(nt(Ot.element,Ve),!0,!1)}else return nc(A,$)},Pu=(A,$,j,ce,Me)=>fe(A,Ve=>{const nt=$>0&&$Le(A,j=>{const ce=j.cells,Me=ge($,(Ve,nt)=>nt>=0&&nt0?[Xs(j.element,Me,j.section,j.isNew)]:[]}),Ai=(A,$,j)=>{const{rows:ce,cols:Me}=Hi(A);return[...Me,...ce.slice(0,$),...ce.slice(j+1)]},Vd=(A,$,j,ce)=>wi(A[$],j)!==void 0&&$>0&&ce(wi(A[$-1],j),wi(A[$],j)),T0=(A,$,j)=>$>0&&j(wi(A,$-1),wi(A,$)),Rg=(A,$,j,ce)=>Vd(A,$,j,ce)||T0(A[$],j,ce),rv=(A,$)=>ke($,I)&&qO(A.cells)?B:(ce,Me,Ve)=>!(wn(ce.element)==="th"&&$[Ve]),ov=(A,$)=>ke($,I)&&qO(A)?B:(ce,Me,Ve)=>!(wn(ce.element)==="th"&&$[Me]),Am=(A,$,j,ce)=>{const Me=nt=>nt==="row"?bc($):Al($),Ve=nt=>Me(nt)?`${nt}group`:nt;return A?m0($)?Ve(j):null:ce&&m0($)?Ve(j==="row"?"col":"row"):null},gk=(A,$)=>(j,ce,Me)=>E.some(Am(A,j.element,"col",$[Me])),sv=(A,$)=>(j,ce)=>E.some(Am(A,j.element,"row",$[ce])),Dg=(A,$,j)=>es(j(A.element,$),!0,A.isLocked),av=(A,$,j,ce,Me,Ve,nt)=>{const Ot=_t=>ae($,Kt=>j(_t.element,Kt.element));return fe(A,(_t,Kt)=>by(_t,(Cn,ir)=>{if(Ot(Cn)){const $r=nt(Cn,Kt,ir)?Me(Cn,j,ce):Cn;return Ve($r,Kt,ir).each(Rr=>{Tt($r.element,{scope:E.from(Rr)})}),$r}else return Cn}))},pk=(A,$,j)=>Le(A,(ce,Me)=>Rg(A,Me,$,j)?[]:[nc(ce,$)]),YM=(A,$,j)=>{const ce=A[$];return Le(ce.cells,(Me,Ve)=>Rg(A,$,Ve,j)?[]:[Me])},cw=(A,$,j,ce,Me)=>{const Ve=Hi(A).rows,nt=Le($,Cn=>pk(Ve,Cn,ce)),Ot=fe(Ve,Cn=>qO(Cn.cells)),_t=ov(nt,Ot),Kt=sv(j,Ot);return av(A,nt,ce,Me,Dg,Kt,_t)},XM=(A,$,j,ce,Me,Ve,nt)=>{const{cols:Ot,rows:_t}=Hi(A),Kt=_t[$[0]],Cn=Le($,jn=>YM(_t,jn,Me)),ir=fe(Kt.cells,(jn,io)=>qO(pk(_t,io,Me))),$r=[..._t];ee($,jn=>{$r[jn]=nt.transformRow(_t[jn],j)});const Rr=[...Ot,...$r],Kn=rv(Kt,ir),Ir=gk(ce,ir);return av(Rr,Cn,Me,Ve,nt.transformCell,Ir,Kn)},lx=(A,$,j,ce)=>{const Me=Hi(A).rows,Ve=fe($,nt=>nc(Me[nt.row],nt.column));return av(A,Ve,j,ce,Dg,E.none,B)},Mu={generate:A=>{if(!u(A))throw new Error("cases must be an array");if(A.length===0)throw new Error("there must be at least one case");const $=[],j={};return ee(A,(ce,Me)=>{const Ve=se(ce);if(Ve.length!==1)throw new Error("one and only one name per case");const nt=Ve[0],Ot=ce[nt];if(j[nt]!==void 0)throw new Error("duplicate key detected:"+nt);if(nt==="cata")throw new Error("cannot have a case named cata (sorry)");if(!u(Ot))throw new Error("case arguments must be an array");$.push(nt),j[nt]=(..._t)=>{const Kt=_t.length;if(Kt!==Ot.length)throw new Error("Wrong number of arguments to case "+nt+". Expected "+Ot.length+" ("+Ot+"), got "+Kt);return{fold:(...ir)=>{if(ir.length!==A.length)throw new Error("Wrong number of arguments to fold. Expected "+A.length+", got "+ir.length);return ir[Me].apply(null,_t)},match:ir=>{const $r=se(ir);if($.length!==$r.length)throw new Error("Wrong number of arguments to match. Expected: "+$.join(",")+` +Actual: `+$r.join(","));if(!ke($,Kn=>me($r,Kn)))throw new Error("Not all branches were specified when using match. Specified: "+$r.join(", ")+` +Required: `+$.join(", "));return ir[nt].apply(null,_t)},log:ir=>{console.log(ir,{constructors:$,constructor:nt,params:_t})}}}}),j}},C0={...Mu.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},yk=(A,$)=>A.length===0?C0.none():A.length===1?C0.only(0):$===0?C0.left(0,1):$===A.length-1?C0.right($-1,$):$>0&&${const Ve=A.slice(0),nt=yk(A,$),Ot=M(fe(Ve,M(0))),_t=$r=>ce.singleColumnWidth(Ve[$r],j),Kt=($r,Rr)=>Me.calcLeftEdgeDeltas(Ve,$r,Rr,j,ce.minCellWidth(),ce.isRelative),Cn=($r,Rr,Kn)=>Me.calcMiddleDeltas(Ve,$r,Rr,Kn,j,ce.minCellWidth(),ce.isRelative),ir=($r,Rr)=>Me.calcRightEdgeDeltas(Ve,$r,Rr,j,ce.minCellWidth(),ce.isRelative);return nt.fold(Ot,_t,Kt,Cn,ir)},Qy=(A,$,j)=>{let ce=0;for(let Me=A;Me<$;Me++)ce+=j[Me]!==void 0?j[Me]:0;return ce},$g=(A,$)=>{const j=hs.justCells(A);return fe(j,ce=>{const Me=Qy(ce.column,ce.column+ce.colspan,$);return{element:ce.element,width:Me,colspan:ce.colspan}})},cx=(A,$)=>{const j=hs.justColumns(A);return fe(j,(ce,Me)=>({element:ce.element,width:$[Me],colspan:ce.colspan}))},Rs=(A,$)=>{const j=hs.justCells(A);return fe(j,ce=>{const Me=Qy(ce.row,ce.row+ce.rowspan,$);return{element:ce.element,height:Me,rowspan:ce.rowspan}})},Eu=(A,$)=>fe(A.all,(j,ce)=>({element:j.element,height:$[ce]})),zd=A=>ge(A,($,j)=>$+j,0),fw=(A,$)=>hs.hasColumns(A)?cx(A,$):$g(A,$),ha=(A,$,j)=>{const ce=fw(A,$);ee(ce,Me=>{j.setElementWidth(Me.element,Me.width)})},Fy=(A,$,j,ce,Me)=>{const Ve=hs.fromTable(A),nt=Me.getCellDelta($),Ot=Me.getWidths(Ve,Me),_t=j===Ve.grid.columns-1,Kt=ce.clampTableDelta(Ot,j,nt,Me.minCellWidth(),_t),Cn=GM(Ot,j,Kt,Me,ce),ir=fe(Cn,($r,Rr)=>$r+Ot[Rr]);ha(Ve,ir,Me),ce.resizeTable(Me.adjustTableWidth,Kt,_t)},dw=(A,$,j,ce)=>{const Me=hs.fromTable(A),Ve=Mn(Me,A,ce),nt=fe(Ve,(Cn,ir)=>j===ir?Math.max($+Cn,kf()):Cn),Ot=Rs(Me,nt),_t=Eu(Me,nt);ee(_t,Cn=>{Ml(Cn.element,Cn.height)}),ee(Ot,Cn=>{Ml(Cn.element,Cn.height)});const Kt=zd(nt);Ml(A,Kt)},cl=(A,$,j,ce,Me)=>{const Ve=hs.generate($),nt=ce.getWidths(Ve,ce),Ot=ce.pixelWidth(),{newSizes:_t,delta:Kt}=Me.calcRedestributedWidths(nt,Ot,j.pixelDelta,ce.isRelative);ha(Ve,_t,ce),ce.adjustTableWidth(Kt)},Ah=(A,$,j,ce)=>{const Me=hs.generate($),Ve=ce.getWidths(Me,ce);ha(Me,Ve,ce)},Lg=A=>ne(A,(j,ce)=>ae(j,Ve=>Ve.column===ce.column)?j:j.concat([ce]),[]).sort((j,ce)=>j.column-ce.column),hw=He("col"),ux=He("colgroup"),Vy=A=>wn(A)==="tr"||ux(A),mw=A=>{const $=Ra(A,"colspan",1),j=Ra(A,"rowspan",1);return{element:A,colspan:$,rowspan:j}},fx=(A,$=mw)=>{const j=Ot=>hw(Ot.element)?A.col(Ot):A.cell(Ot),ce=Ot=>ux(Ot.element)?A.colgroup(Ot):A.row(Ot),Me=Ot=>{if(Vy(Ot))return ce({element:Ot});{const _t=Ot,Kt=j($(_t));return Ve=E.some({item:_t,replacement:Kt}),Kt}};let Ve=E.none();return{getOrInit:(Ot,_t)=>Ve.fold(()=>Me(Ot),Kt=>_t(Ot,Kt.item)?Kt.replacement:Me(Ot))}},Ph=A=>$=>{const j=[],ce=(nt,Ot)=>G(j,_t=>Ot(_t.item,nt)),Me=nt=>{const Ot=A==="td"?{scope:null}:{},_t=$.replace(nt,A,Ot);return j.push({item:nt,sub:_t}),_t};return{replaceOrInit:(nt,Ot)=>{if(Vy(nt)||hw(nt))return nt;{const _t=nt;return ce(_t,Ot).fold(()=>Me(_t),Kt=>Ot(nt,Kt.item)?Kt.sub:Me(_t))}}}},Pm=A=>dn(A,"scope").map($=>$.substr(0,3)),Nn={modification:fx,transform:Ph,merging:A=>({unmerge:ce=>{const Me=Pm(ce);return Me.each(Ve=>dt(ce,"scope",Ve)),()=>{const Ve=A.cell({element:ce,colspan:1,rowspan:1});return xu(Ve,"width"),xu(ce,"width"),Me.each(nt=>dt(Ve,"scope",nt)),Ve}},merge:ce=>{const Me=()=>{const Ve=Za(fe(ce,Pm));if(Ve.length===0)return E.none();{const nt=Ve[0],Ot=["row","col"];return ae(Ve,Kt=>Kt!==nt&&me(Ot,Kt))?E.none():E.from(nt)}};return xu(ce[0],"width"),Me().fold(()=>nn(ce[0],"scope"),Ve=>dt(ce[0],"scope",Ve+"group")),M(ce[0])}})},zy=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],k0=(A,$)=>{const j=A.property().name($);return me(["ol","ul"],j)},rf=(A,$)=>{const j=A.property().name($);return me(zy,j)},gw=(A,$)=>me(["br","img","hr","input"],A.property().name($)),Ha=qn(),dx=A=>rf(Ha,A),Mm=A=>k0(Ha,A),pw=A=>gw(Ha,A),hx=A=>{const $=He("br"),j=_t=>ke(_t,Kt=>$(Kt)||xt(Kt)&&bt(Kt).trim().length===0),ce=_t=>wn(_t)==="li"||Qa(_t,Mm).isSome(),Me=_t=>Ee(_t).map(Kt=>dx(Kt)?!0:pw(Kt)?wn(Kt)!=="img":!1).getOr(!1),Ve=_t=>Pn(_t).bind(Kt=>{const Cn=Me(Kt);return ao(Kt).map(ir=>Cn===!0||ce(ir)||$(Kt)||dx(ir)&&!or(_t,ir)?[]:[zt.fromTag("br")])}).getOr([]),Ot=(()=>{const _t=Le(A,Kt=>{const Cn=St(Kt);return j(Cn)?[]:Cn.concat(Ve(Kt))});return _t.length===0?[zt.fromTag("br")]:_t})();Tn(A[0]),rn(A[0],Ot)},vw=A=>Bd(A,!0),Zy=A=>{Af(A).length===0&&On(A)},A0=(A,$)=>({grid:A,cursor:$}),yw=A=>te(A,$=>te($.cells,j=>{const ce=j.element;return zu(vw(ce),ce)})),qM=(A,$,j)=>{var ce,Me;const Ve=Hi(A).rows;return E.from((Me=(ce=Ve[$])===null||ce===void 0?void 0:ce.cells[j])===null||Me===void 0?void 0:Me.element).filter(vw).orThunk(()=>yw(Ve))},Wc=(A,$,j)=>{const ce=qM(A,$,j);return A0(A,ce)},ul=A=>ne(A,(j,ce)=>ae(j,Ve=>Ve.row===ce.row)?j:j.concat([ce]),[]).sort((j,ce)=>j.row-ce.row),Gl=(A,$,j,ce)=>{const Me=$[0].row,Ve=ul($),nt=ge(Ve,(Ot,_t)=>({grid:mk(Ot.grid,Me,_t.row+Ot.delta,j,ce.getOrInit),delta:Ot.delta+1}),{grid:A,delta:0}).grid;return Wc(nt,Me,$[0].column)},Yc=(A,$,j,ce)=>{const Me=ul($),Ve=Me[Me.length-1],nt=Ve.row+Ve.rowspan,Ot=ge(Me,(_t,Kt)=>mk(_t,nt,Kt.row,j,ce.getOrInit),A);return Wc(Ot,nt,$[0].column)},sc=(A,$,j,ce)=>{const Me=$.details,Ve=Lg(Me),nt=Ve[0].column,Ot=ge(Ve,(_t,Kt)=>({grid:Pu(_t.grid,nt,Kt.column+_t.delta,j,ce.getOrInit),delta:_t.delta+1}),{grid:A,delta:0}).grid;return Wc(Ot,Me[0].row,nt)},Mc=(A,$,j,ce)=>{const Me=$.details,Ve=Me[Me.length-1],nt=Ve.column+Ve.colspan,Ot=Lg(Me),_t=ge(Ot,(Kt,Cn)=>Pu(Kt,nt,Cn.column,j,ce.getOrInit),A);return Wc(_t,Me[0].row,nt)},fl=(A,$,j,ce)=>{const Me=Lg($),Ve=fe(Me,Ot=>Ot.column),nt=cw(A,Ve,!0,j,ce.replaceOrInit);return Wc(nt,$[0].row,$[0].column)},bw=(A,$,j,ce)=>{const Me=lx(A,$,j,ce.replaceOrInit);return Wc(Me,$[0].row,$[0].column)},Hy=(A,$,j,ce)=>{const Me=Lg($),Ve=fe(Me,Ot=>Ot.column),nt=cw(A,Ve,!1,j,ce.replaceOrInit);return Wc(nt,$[0].row,$[0].column)},Ow=(A,$,j,ce)=>{const Me=lx(A,$,j,ce.replaceOrInit);return Wc(Me,$[0].row,$[0].column)},Uy=(A,$)=>(j,ce,Me,Ve,nt)=>{const Ot=ul(ce),_t=fe(Ot,Cn=>Cn.row),Kt=XM(j,_t,A,$,Me,Ve.replaceOrInit,nt);return Wc(Kt,ce[0].row,ce[0].column)},xw=Uy("thead",!0),bk=Uy("tbody",!1),mx=Uy("tfoot",!1),Sw=(A,$,j,ce)=>{const Me=Lg($.details),Ve=ix(A,fe(Me,Ot=>Ot.column)),nt=Ve.length>0?Ve[0].cells.length-1:0;return Wc(Ve,Me[0].row,Math.min(Me[0].column,nt))},KM=(A,$,j,ce)=>{const Me=ul($),Ve=Ai(A,Me[0].row,Me[Me.length-1].row),nt=Ve.length>0?Ve.length-1:0;return Wc(Ve,Math.min($[0].row,nt),$[0].column)},JM=(A,$,j,ce)=>{const Me=$.cells;hx(Me);const Ve=sd(A,$.bounds,j,ce.merge(Me));return A0(Ve,E.from(Me[0]))},Ok=(A,$,j,ce)=>{const Ve=ge($,(nt,Ot)=>Pc(nt,Ot,j,ce.unmerge(Ot)),A);return A0(Ve,E.from($[0]))},eE=(A,$,j,ce)=>{const Ve=((_t,Kt)=>{const Cn=hs.fromTable(_t);return v0(Cn,Kt,!0)})($.clipboard,$.generators),nt=ko($.row,$.column);return hk(nt,A,Ve,$.generators,j).fold(()=>A0(A,E.some($.element)),_t=>Wc(_t,$.row,$.column))},P0=(A,$,j)=>{const ce=MO(A,j.section),Me=hs.generate(ce);return v0(Me,$,!0)},gx=(A,$,j,ce)=>{const Me=Hi(A).rows,Ve=$.cells[0].column,nt=Me[$.cells[0].row],Ot=P0($.clipboard,$.generators,nt),_t=ax(Ve,A,Ot,$.generators,j);return Wc(_t,$.cells[0].row,$.cells[0].column)},xk=(A,$,j,ce)=>{const Me=Hi(A).rows,Ve=$.cells[$.cells.length-1].column+$.cells[$.cells.length-1].colspan,nt=Me[$.cells[0].row],Ot=P0($.clipboard,$.generators,nt),_t=ax(Ve,A,Ot,$.generators,j);return Wc(_t,$.cells[0].row,$.cells[0].column)},e9=(A,$,j,ce)=>{const Me=Hi(A).rows,Ve=$.cells[0].row,nt=Me[Ve],Ot=P0($.clipboard,$.generators,nt),_t=nv(Ve,A,Ot,$.generators,j);return Wc(_t,$.cells[0].row,$.cells[0].column)},iu=(A,$,j,ce)=>{const Me=Hi(A).rows,Ve=$.cells[$.cells.length-1].row+$.cells[$.cells.length-1].rowspan,nt=Me[$.cells[0].row],Ot=P0($.clipboard,$.generators,nt),_t=nv(Ve,A,Ot,$.generators,j);return Wc(_t,$.cells[0].row,$.cells[0].column)},t9=(A,$)=>{const j=hs.fromTable(A);return Eg(j,$).bind(Me=>{const Ve=Me[Me.length-1],nt=Me[0].column,Ot=Ve.column+Ve.colspan,_t=xe(fe(j.all,Kt=>Be(Kt.cells,Cn=>Cn.column>=nt&&Cn.column{const j=hs.fromTable(A);return Eg(j,$).bind(g0).getOr("")},pr=(A,$)=>{const j=hs.fromTable(A);return Eg(j,$).bind(Me=>{const Ve=Me[Me.length-1],nt=Me[0].row,Ot=Ve.row+Ve.rowspan,_t=j.all.slice(nt,Ot);return VM(_t)}).getOr("")},ww=(A,$,j,ce)=>Ah(A,$,j,ce.sizing),dl=(A,$,j,ce)=>cl(A,$,j,ce.sizing,ce.resize),Sk=(A,$)=>ae($,j=>j.column===0&&j.isLocked),px=(A,$)=>ae($,j=>j.column+j.colspan>=A.grid.columns&&j.isLocked),Tw=(A,$)=>{const j=gm(A),ce=Lg($);return ne(ce,(Me,Ve)=>{const Ot=j[Ve.column].map(Mf).getOr(0);return Me+Ot},0)},lu=A=>($,j)=>Eg($,j).filter(ce=>!(A?Sk:px)($,ce)).map(ce=>({details:ce,pixelDelta:Tw($,ce)})),tE=(A,$)=>km(A,$).map(j=>({details:j,pixelDelta:-Tw(A,j)})),wk=A=>($,j)=>y0($,j).filter(ce=>!(A?Sk:px)($,ce.cells)),cu=Nn.transform("th"),M0=Nn.transform("td"),Wy=Xl(Gl,Eg,w,w,Nn.modification),Mh=Xl(Yc,Eg,w,w,Nn.modification),ad=Xl(sc,lu(!0),dl,w,Nn.modification),Ur=Xl(Mc,lu(!1),dl,w,Nn.modification),of=Xl(Sw,tE,dl,Zy,Nn.modification),Tk=Xl(KM,Eg,w,Zy,Nn.modification),Ck=Xl(fl,km,w,w,cu),Cw=Xl(Hy,km,w,w,M0),kk=Xl(xw,km,w,w,cu),kw=Xl(bk,km,w,w,M0),Aw=Xl(mx,km,w,w,M0),nE=Xl(bw,km,w,w,cu),Pw=Xl(Ow,km,w,w,M0),rE=Xl(JM,K$,ww,w,Nn.merging),Ec=Xl(Ok,J$,ww,w,Nn.merging),Yy=Xl(eE,Ny,ww,w,Nn.modification),oE=Xl(gx,wk(!0),w,w,Nn.modification),sE=Xl(xk,wk(!1),w,w,Nn.modification),Mw=Xl(e9,y0,w,w,Nn.modification),aE=Xl(iu,y0,w,w,Nn.modification),Ak=t9,Pk=Zd,Xy=pr,Mk=(A,$)=>A.dispatch("NewRow",{node:$}),Ew=(A,$)=>A.dispatch("NewCell",{node:$}),iv=(A,$,j)=>{A.dispatch("TableModified",{...j,table:$})},iE=(A,$,j,ce,Me)=>{A.dispatch("TableSelectionChange",{cells:$,start:j,finish:ce,otherCells:Me})},lE=A=>{A.dispatch("TableSelectionClear")},_w=(A,$,j,ce,Me)=>{A.dispatch("ObjectResizeStart",{target:$,width:j,height:ce,origin:Me})},cE=(A,$,j,ce,Me)=>{A.dispatch("ObjectResized",{target:$,width:j,height:ce,origin:Me})},Em={structure:!1,style:!0},gs={structure:!0,style:!1},Rw={structure:!0,style:!0},_c=(A,$)=>Df(A)?Cc.percentageSize($):Ul(A)?Cc.pixelSize($):Cc.getTableSize($),vx=(A,$,j)=>{const ce=Gc=>wn(FO(Gc))==="table",Me=Gc=>!ce(A)||h0(Gc).rows>1,Ve=Gc=>!ce(A)||h0(Gc).columns>1,nt=$i(A),Ot=ea(A)?w:rw,_t=Gc=>{switch(Ki(A)){case"section":return Mg.section();case"sectionCells":return Mg.sectionCells();case"cells":return Mg.cells();default:return Mg.getTableSectionType(Gc,"section")}},Kt=(Gc,AT)=>AT.cursor.fold(()=>{const kb=Af(Gc);return re(kb).filter(oa).map(Lh=>{j.clearSelectedCells(Gc.dom);const cc=A.dom.createRng();return cc.selectNode(Lh.dom),A.selection.setRng(cc),dt(Lh,"data-mce-selected","1"),cc})},kb=>{const Lh=ok(kb),cc=A.dom.createRng();return cc.setStart(Lh.element.dom,Lh.offset),cc.setEnd(Lh.element.dom,Lh.offset),A.selection.setRng(cc),j.clearSelectedCells(Gc.dom),E.some(cc)}),Cn=(Gc,AT,kb,Lh)=>(cc,Ab,AA=!1)=>{Qd(cc);const PA=zt.fromDom(A.getDoc()),r1=js(kb,PA,nt),MA={sizing:_c(A,cc),resize:ea(A)?sk():ow(),section:_t(cc)};return AT(cc)?Gc(cc,Ab,r1,MA).bind(qx=>{$.refresh(cc.dom),ee(qx.newRows,yv=>{Mk(A,yv.dom)}),ee(qx.newCells,yv=>{Ew(A,yv.dom)});const EA=Kt(cc,qx);return oa(cc)&&(Qd(cc),AA||iv(A,cc.dom,Lh)),EA.map(yv=>({rng:yv,effect:Lh}))}):E.none()},ir=Cn(Tk,Me,w,gs),$r=Cn(of,Ve,w,gs),Rr=Cn(Wy,B,w,gs),Kn=Cn(Mh,B,w,gs),Ir=Cn(ad,B,Ot,gs),jn=Cn(Ur,B,Ot,gs),io=Cn(rE,B,w,gs),$o=Cn(Ec,B,w,gs),os=Cn(oE,B,w,gs),Va=Cn(sE,B,w,gs),ml=Cn(Mw,B,w,gs),bi=Cn(aE,B,w,gs),du=Cn(Yy,B,w,Rw),pv=Cn(nE,B,w,gs),vv=Cn(Pw,B,w,gs),kT=Cn(Ck,B,w,gs),jx=Cn(Cw,B,w,gs),Oa=Cn(kk,B,w,gs),Dc=Cn(kw,B,w,gs),ql=Cn(Aw,B,w,gs);return{deleteRow:ir,deleteColumn:$r,insertRowsBefore:Rr,insertRowsAfter:Kn,insertColumnsBefore:Ir,insertColumnsAfter:jn,mergeCells:io,unmergeCells:$o,pasteColsBefore:os,pasteColsAfter:Va,pasteRowsBefore:ml,pasteRowsAfter:bi,pasteCells:du,makeCellsHeader:pv,unmakeCellsHeader:vv,makeColumnsHeader:kT,unmakeColumnsHeader:jx,makeRowsHeader:Oa,makeRowsBody:Dc,makeRowsFooter:ql,getTableRowType:Xy,getTableCellType:Pk,getTableColType:Ak}},Dw=(A,$,j)=>{const ce=Ra(A,$,1);j===1||ce<=1?nn(A,$):dt(A,$,Math.min(j,ce))},$w=(A,$)=>j=>{const ce=j.column+j.colspan-1,Me=j.column;return ce>=A&&Me<$},yx=(A,$,j)=>{if(hs.hasColumns(A)){const ce=Be(hs.justColumns(A),$w($,j)),Me=fe(ce,nt=>{const Ot=zr(nt.element);return Dw(Ot,"span",j-$),Ot}),Ve=zt.fromTag("colgroup");return rn(Ve,Me),[Ve]}else return[]},Ek=(A,$,j)=>fe(A.all,ce=>{const Me=Be(ce.cells,$w($,j)),Ve=fe(Me,Ot=>{const _t=zr(Ot.element);return Dw(_t,"colspan",j-$),_t}),nt=zt.fromTag("tr");return rn(nt,Ve),nt}),uE=(A,$)=>{const j=hs.fromTable(A);return km(j,$).map(Me=>{const Ve=Me[Me.length-1],nt=Me[0].column,Ot=Ve.column+Ve.colspan,_t=yx(j,nt,Ot),Kt=Ek(j,nt,Ot);return[..._t,...Kt]})},fE=(A,$,j)=>{const ce=hs.fromTable(A);return Eg(ce,$).bind(Ve=>{const nt=v0(ce,j,!1),_t=Hi(nt).rows.slice(Ve[0].row,Ve[Ve.length-1].row+Ve[Ve.length-1].rowspan),Kt=Le(_t,ir=>{const $r=Be(ir.cells,Rr=>!Rr.isLocked);return $r.length>0?[{...ir,cells:$r}]:[]}),Cn=ni(Kt);return zu(Cn.length>0,Cn)}).map(Ve=>ik(Ve))},E0=Mu.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),_k=(A,$,j)=>{const ce=j.substring(0,j.length-A.length),Me=parseFloat(ce);return ce===Me.toString()?$(Me):E0.invalid(j)},Ig={...E0,from:A=>Fc(A,"%")?_k("%",E0.percent,A):Fc(A,"px")?_k("px",E0.pixels,A):E0.invalid(A)},dE=(A,$)=>fe(A,j=>Ig.from(j).fold(()=>j,Me=>Me/$*100+"%",Me=>Me+"%")),_0=(A,$,j)=>{const ce=j/$;return fe(A,Me=>Ig.from(Me).fold(()=>Me,nt=>nt*ce+"px",nt=>nt/100*j+"px"))},hE=(A,$)=>{const j=A.fold(()=>M(""),ce=>{const Me=ce/$;return M(Me+"px")},()=>{const ce=100/$;return M(ce+"%")});return q($,j)},Lw=(A,$,j)=>A.fold(()=>$,ce=>_0($,j,ce),ce=>dE($,j)),Rk=(A,$,j)=>{const ce=Ig.from(j),Me=ke(A,Ve=>Ve==="0px")?hE(ce,A.length):Lw(ce,A,$);return $k(Me)},lv=(A,$)=>A.length===0?$:ge(A,(j,ce)=>Ig.from(ce).fold(M(0),I,I)+j,0),mE=(A,$)=>{const j=Math.floor(A);return{value:j+$,remainder:A-j}},Dk=(A,$)=>Ig.from(A).fold(M(A),j=>j+$+"px",j=>j+$+"%"),$k=A=>{if(A.length===0)return A;const $=ge(A,(ce,Me)=>{const Ve=Ig.from(Me).fold(()=>({value:Me,remainder:0}),nt=>mE(nt,"px"),nt=>({value:nt+"%",remainder:0}));return{output:[Ve.value].concat(ce.output),remainder:ce.remainder+Ve.remainder}},{output:[],remainder:0}),j=$.output;return j.slice(0,j.length-1).concat([Dk(j[j.length-1],Math.round($.remainder))])},R0=Ig.from,Lk=(A,$,j)=>{ee($,ce=>{const Me=A.slice(ce.column,ce.colspan+ce.column),Ve=lv(Me,ci());Ya(ce.element,"width",Ve+j)})},Iw=(A,$,j)=>{ee($,(ce,Me)=>{const Ve=lv([A[Me]],ci());Ya(ce.element,"width",Ve+j)})},gE=(A,$,j,ce)=>{ee(j,Me=>{const Ve=A.slice(Me.row,Me.rowspan+Me.row),nt=lv(Ve,kf());Ya(Me.element,"height",nt+ce)}),ee($,(Me,Ve)=>{Ya(Me.element,"height",A[Ve])})},Ik=A=>R0(A).fold(M("px"),M("px"),M("%")),Eh=(A,$,j)=>{const ce=hs.fromTable(A),Me=ce.all,Ve=hs.justCells(ce),nt=hs.justColumns(ce);$.each(Ot=>{const _t=Ik(Ot),Kt=Sc(A),Cn=Jf(ce,A),ir=Rk(Cn,Kt,Ot);hs.hasColumns(ce)?Iw(ir,nt,_t):Lk(ir,Ve,_t),Ya(A,"width",Ot)}),j.each(Ot=>{const _t=Ik(Ot),Kt=t0(A),Cn=Tc(ce,A,Xr),ir=Rk(Cn,Kt,Ot);gE(ir,Me,Ve,_t),Ya(A,"height",Ot)})},Gy=Rf,jy=US,bx=qu,qy=A=>{nn(A,"width")},Lf=A=>{const $=zs(A);Eh(A,E.some($),E.none()),qy(A)},D0=A=>{const $=Cg(A);Eh(A,E.some($),E.none()),qy(A)},Ky=A=>{xu(A,"width");const $=Fp(A),j=$.length>0?$:Af(A);ee(j,ce=>{xu(ce,"width"),qy(ce)}),qy(A)},Ng={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},Ox=()=>zt.fromTag("th"),pE=()=>zt.fromTag("td"),vE=()=>zt.fromTag("col"),Nk=(A,$,j,ce)=>{const Me=zt.fromTag("tr");for(let Ve=0;Ve{const $=zt.fromTag("colgroup");return q(A,()=>Mt($,vE())),$},Nw=(A,$,j,ce)=>q(A,Me=>Nk($,j,ce,Me)),bE=(A,$,j,ce,Me,Ve=Ng)=>{const nt=zt.fromTag("table"),Ot=Me!=="cells";kl(nt,Ve.styles),mt(nt,Ve.attributes),Ve.colGroups&&Mt(nt,yE($));const _t=Math.min(A,j);if(Ot&&j>0){const Rr=zt.fromTag("thead");Mt(nt,Rr);const Ir=Nw(j,$,Me==="sectionCells"?_t:0,ce);rn(Rr,Ir)}const Kt=zt.fromTag("tbody");Mt(nt,Kt);const Cn=Ot?A-_t:A,$r=Nw(Cn,$,Ot?0:j,ce);return rn(Kt,$r),nt},OE=A=>A.dom.innerHTML,Bk=A=>{const $=zt.fromTag("div"),j=zt.fromDom(A.dom.cloneNode(!0));return Mt($,j),OE($)},xE=(A,$)=>{A.selection.select($.dom,!0),A.selection.collapse(!0)},Qk=(A,$)=>{li($,"td,th").each(N(xE,A))},SE=(A,$)=>{ee(zi($,"tr"),j=>{Mk(A,j.dom),ee(zi(j,"th,td"),ce=>{Ew(A,ce.dom)})})},xx=A=>f(A)&&A.indexOf("%")!==-1,wE=(A,$,j,ce,Me)=>{const Ve=Nd(A),nt={styles:Ve,attributes:Ac(A),colGroups:Ju(A)};return A.undoManager.ignore(()=>{const Ot=bE(j,$,Me,ce,Ki(A),nt);dt(Ot,"data-mce-id","__mce");const _t=Bk(Ot);A.insertContent(_t),A.addVisual()}),li(FO(A),'table[data-mce-id="__mce"]').map(Ot=>(Ul(A)?D0(Ot):Li(A)?Ky(Ot):(Df(A)||xx(Ve.width))&&Lf(Ot),Qd(Ot),nn(Ot,"data-mce-id"),SE(A,Ot),Qk(A,Ot),Ot.dom)).getOrNull()},Fk=(A,$,j,ce={})=>{const Me=Ve=>C(Ve)&&Ve>0;if(Me($)&&Me(j)){const Ve=ce.headerRows||0,nt=ce.headerColumns||0;return wE(A,j,$,nt,Ve)}else return console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table."),null};var $0=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const Bw="x-tinymce/dom-table-",Qw=Bw+"rows",Fw=Bw+"columns",Vk=A=>{const $=$0.FakeClipboardItem(A);$0.write([$])},Vw=A=>{var $;const j=($=$0.read())!==null&&$!==void 0?$:[];return te(j,ce=>E.from(ce.getType(A)))},TE=A=>{Vw(A).isSome()&&$0.clear()},Sx=A=>{A.fold(CE,$=>Vk({[Qw]:$}))},wx=()=>Vw(Qw),CE=()=>TE(Qw),zw=A=>{A.fold(kE,$=>Vk({[Fw]:$}))},zk=()=>Vw(Fw),kE=()=>TE(Fw),Zw=A=>Fd(ef(A),Oh(A)).filter(zO),AE=A=>Ly(ef(A),Oh(A)).filter(zO),L0=(A,$)=>{const j=Oh(A),ce=()=>Zw(A).each(jn=>{Oc(jn,j).filter(F(j)).each(io=>{const $o=zt.fromText("");if(Ht(io,$o),On(io),A.dom.isEmpty(A.getBody()))A.setContent(""),A.selection.setCursorLocation();else{const os=A.dom.createRng();os.setStart($o.dom,0),os.setEnd($o.dom,0),A.selection.setRng(os),A.nodeChanged()}})}),Me=jn=>Zw(A).each(io=>{Li(A)||Ul(A)||Df(A)||Oc(io,j).each(os=>{jn==="relative"&&!Gy(os)?Lf(os):jn==="fixed"&&!jy(os)?D0(os):jn==="responsive"&&!bx(os)&&Ky(os),Qd(os),iv(A,os.dom,gs)})}),Ve=jn=>Oc(jn,j),nt=jn=>AE(A).bind(io=>Ve(io).map($o=>jn($o,io))),Ot=(jn,io)=>{nt($o=>{A.formatter.toggle("tableclass",{value:io},$o.dom),iv(A,$o.dom,Em)})},_t=(jn,io)=>{nt($o=>{const os=$f(A),ml=ke(os,bi=>A.formatter.match("tablecellclass",{value:io},bi.dom))?A.formatter.remove:A.formatter.apply;ee(os,bi=>ml("tablecellclass",{value:io},bi.dom)),iv(A,$o.dom,Em)})},Kt=()=>{Zw(A).each(jn=>{Oc(jn,j).each(io=>{Zo(io,"caption").fold(()=>{const $o=zt.fromTag("caption");Mt($o,zt.fromText("Caption")),en(io,$o,0),A.selection.setCursorLocation($o.dom,0)},$o=>{He("caption")(jn)&&kr("td",io).each(os=>A.selection.setCursorLocation(os.dom,0)),On($o)}),iv(A,io.dom,gs)})})},Cn=jn=>{A.focus()},ir=(jn,io=!1)=>nt(($o,os)=>{const Va=l0($f(A),$o,os);jn($o,Va,io).each(Cn)}),$r=()=>nt((jn,io)=>{const $o=l0($f(A),jn,io),os=js(w,zt.fromDom(A.getDoc()),E.none());return fE(jn,$o,os)}),Rr=()=>nt((jn,io)=>{const $o=l0($f(A),jn,io);return uE(jn,$o)}),Kn=(jn,io)=>io().each($o=>{const os=fe($o,Va=>zr(Va));nt((Va,ml)=>{const bi=ti(zt.fromDom(A.getDoc())),du=c0($f(A),ml,os,bi);jn(Va,du).each(Cn)})}),Ir=jn=>(io,$o)=>pt($o,"type").each(os=>{ir(jn(os),$o.no_events)});oe({mceTableSplitCells:()=>ir($.unmergeCells),mceTableMergeCells:()=>ir($.mergeCells),mceTableInsertRowBefore:()=>ir($.insertRowsBefore),mceTableInsertRowAfter:()=>ir($.insertRowsAfter),mceTableInsertColBefore:()=>ir($.insertColumnsBefore),mceTableInsertColAfter:()=>ir($.insertColumnsAfter),mceTableDeleteCol:()=>ir($.deleteColumn),mceTableDeleteRow:()=>ir($.deleteRow),mceTableCutCol:()=>Rr().each(jn=>{zw(jn),ir($.deleteColumn)}),mceTableCutRow:()=>$r().each(jn=>{Sx(jn),ir($.deleteRow)}),mceTableCopyCol:()=>Rr().each(jn=>zw(jn)),mceTableCopyRow:()=>$r().each(jn=>Sx(jn)),mceTablePasteColBefore:()=>Kn($.pasteColsBefore,zk),mceTablePasteColAfter:()=>Kn($.pasteColsAfter,zk),mceTablePasteRowBefore:()=>Kn($.pasteRowsBefore,wx),mceTablePasteRowAfter:()=>Kn($.pasteRowsAfter,wx),mceTableDelete:ce,mceTableCellToggleClass:_t,mceTableToggleClass:Ot,mceTableToggleCaption:Kt,mceTableSizingMode:(jn,io)=>Me(io),mceTableCellType:Ir(jn=>jn==="th"?$.makeCellsHeader:$.unmakeCellsHeader),mceTableColType:Ir(jn=>jn==="th"?$.makeColumnsHeader:$.unmakeColumnsHeader),mceTableRowType:Ir(jn=>{switch(jn){case"header":return $.makeRowsHeader;case"footer":return $.makeRowsFooter;default:return $.makeRowsBody}})},(jn,io)=>A.addCommand(io,jn)),A.addCommand("mceInsertTable",(jn,io)=>{Fk(A,io.rows,io.columns,io.options)}),A.addCommand("mceTableApplyCellStyle",(jn,io)=>{const $o=ml=>"tablecell"+ml.toLowerCase().replace("-","");if(!m(io))return;const os=Be($f(A),zO);if(os.length===0)return;const Va=ze(io,(ml,bi)=>A.formatter.has($o(bi))&&f(ml));et(Va)||(oe(Va,(ml,bi)=>{const du=$o(bi);ee(os,pv=>{ml===""?A.formatter.remove(du,{value:null},pv.dom,!0):A.formatter.apply(du,{value:ml},pv.dom)})}),Ve(os[0]).each(ml=>iv(A,ml.dom,Em)))})},PE=(A,$)=>{const j=Oh(A),ce=Me=>Ly(ef(A)).bind(Ve=>Oc(Ve,j).map(nt=>{const Ot=l0($f(A),nt,Ve);return Me(nt,Ot)})).getOr("");oe({mceTableRowType:()=>ce($.getTableRowType),mceTableCellType:()=>ce($.getTableCellType),mceTableColType:()=>ce($.getTableColType)},(Me,Ve)=>A.addQueryValueHandler(Ve,Me))},Hw=Mu.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),ME=(A,$,j,ce)=>A.fold($,j,ce),EE=A=>A.fold(I,I,I),_E=Hw.before,Zk=Hw.on,RE=Hw.after,_l={before:_E,on:Zk,after:RE,cata:ME,getStart:EE},I0={create:(A,$)=>({selection:A,kill:$})},Tx=(A,$)=>{const j=A.document.createRange();return j.selectNode($.dom),j},Hk=(A,$)=>{const j=A.document.createRange();return Uw(j,$),j},Uw=(A,$)=>A.selectNodeContents($.dom),Uk=(A,$)=>{$.fold(j=>{A.setStartBefore(j.dom)},(j,ce)=>{A.setStart(j.dom,ce)},j=>{A.setStartAfter(j.dom)})},Wk=(A,$)=>{$.fold(j=>{A.setEndBefore(j.dom)},(j,ce)=>{A.setEnd(j.dom,ce)},j=>{A.setEndAfter(j.dom)})},cv=(A,$,j)=>{const ce=A.document.createRange();return Uk(ce,$),Wk(ce,j),ce},Jy=(A,$,j,ce,Me)=>{const Ve=A.document.createRange();return Ve.setStart($.dom,j),Ve.setEnd(ce.dom,Me),Ve},DE=A=>({left:A.left,top:A.top,right:A.right,bottom:A.bottom,width:A.width,height:A.height}),$E=A=>{const $=A.getClientRects(),j=$.length>0?$[0]:A.getBoundingClientRect();return j.width>0||j.height>0?E.some(j).map(DE):E.none()},eb=Mu.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Ww=(A,$,j)=>$(zt.fromDom(j.startContainer),j.startOffset,zt.fromDom(j.endContainer),j.endOffset),Yk=(A,$)=>$.match({domRange:j=>({ltr:M(j),rtl:E.none}),relative:(j,ce)=>({ltr:gh(()=>cv(A,j,ce)),rtl:gh(()=>E.some(cv(A,ce,j)))}),exact:(j,ce,Me,Ve)=>({ltr:gh(()=>Jy(A,j,ce,Me,Ve)),rtl:gh(()=>E.some(Jy(A,Me,Ve,j,ce)))})}),hl=(A,$)=>{const j=$.ltr();return j.collapsed?$.rtl().filter(Me=>Me.collapsed===!1).map(Me=>eb.rtl(zt.fromDom(Me.endContainer),Me.endOffset,zt.fromDom(Me.startContainer),Me.startOffset)).getOrThunk(()=>Ww(A,eb.ltr,j)):Ww(A,eb.ltr,j)},Xk=(A,$)=>{const j=Yk(A,$);return hl(A,j)},Yw=(A,$)=>Xk(A,$).match({ltr:(ce,Me,Ve,nt)=>{const Ot=A.document.createRange();return Ot.setStart(ce.dom,Me),Ot.setEnd(Ve.dom,nt),Ot},rtl:(ce,Me,Ve,nt)=>{const Ot=A.document.createRange();return Ot.setStart(Ve.dom,nt),Ot.setEnd(ce.dom,Me),Ot}});eb.ltr,eb.rtl;const N0={create:(A,$,j,ce)=>({start:A,soffset:$,finish:j,foffset:ce})},Gk={create:(A,$,j,ce)=>({start:_l.on(A,$),finish:_l.on(j,ce)})},Xw=(A,$)=>{const j=Yw(A,$);return N0.create(zt.fromDom(j.startContainer),j.startOffset,zt.fromDom(j.endContainer),j.endOffset)},tb=Gk.create,Cx=(A,$,j,ce,Me,Ve,nt)=>or(j,Me)&&ce===Ve?E.none():Ka(j,"td,th",$).bind(Ot=>Ka(Me,"td,th",$).bind(_t=>B0(A,$,Ot,_t,nt))),B0=(A,$,j,ce,Me)=>or(j,ce)?E.none():rd(j,ce,$).bind(Ve=>{const nt=Ve.boxes.getOr([]);return nt.length>1?(Me(A,nt,Ve.start,Ve.finish),E.some(I0.create(E.some(tb(j,0,j,gn(j))),!0))):E.none()}),IE=(A,$,j,ce,Me)=>{const Ve=nt=>(Me.clearBeforeUpdate(j),Me.selectRange(j,nt.boxes,nt.start,nt.finish),nt.boxes);return WO(ce,A,$,Me.firstSelectedSelector,Me.lastSelectedSelector).map(Ve)},Bg=(A,$)=>({item:A,mode:$}),jk=(A,$,j,ce=Qg)=>A.property().parent($).map(Me=>Bg(Me,ce)),Qg=(A,$,j,ce=Fg)=>j.sibling(A,$).map(Me=>Bg(Me,ce)),Fg=(A,$,j,ce=Fg)=>{const Me=A.property().children($);return j.first(Me).map(nt=>Bg(nt,ce))},Gw=[{current:jk,next:Qg,fallback:E.none()},{current:Qg,next:Fg,fallback:E.some(jk)},{current:Fg,next:Fg,fallback:E.some(Qg)}],qk=(A,$,j,ce,Me=Gw)=>G(Me,nt=>nt.current===j).bind(nt=>nt.current(A,$,ce,nt.next).orThunk(()=>nt.fallback.bind(Ot=>qk(A,$,Ot,ce)))),Vg={left:()=>({sibling:(j,ce)=>j.query().prevSibling(ce),first:j=>j.length>0?E.some(j[j.length-1]):E.none()}),right:()=>({sibling:(j,ce)=>j.query().nextSibling(ce),first:j=>j.length>0?E.some(j[0]):E.none()})},_h=(A,$,j,ce,Me,Ve)=>qk(A,$,ce,Me).bind(Ot=>Ve(Ot.item)?E.none():j(Ot.item)?E.some(Ot.item):_h(A,Ot.item,j,Ot.mode,Me,Ve)),nb=(A,$,j,ce)=>_h(A,$,j,Qg,Vg.left(),ce),Q0=(A,$,j,ce)=>_h(A,$,j,Qg,Vg.right(),ce),qw=A=>$=>A.property().children($).length===0,_m=(A,$,j)=>rb(A,$,qw(A),j),Hd=(A,$,j)=>kx(A,$,qw(A),j),rb=nb,kx=Q0,ob=qn(),Kw=(A,$)=>_m(ob,A,$),F0=(A,$)=>Hd(ob,A,$),sb=(A,$,j)=>rb(ob,A,$,j),Jw=(A,$,j)=>kx(ob,A,$,j),Kk=(A,$,j)=>Qa(A,$,j).isSome(),zg=Mu.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Ax=(A,$,j)=>{const ce=A.getRect($),Me=A.getRect(j);return Me.right>ce.left&&Me.leftKa(A,"tr"),Pi={...zg,verify:(A,$,j,ce,Me,Ve,nt)=>Ka(ce,"td,th",nt).bind(Ot=>Ka($,"td,th",nt).map(_t=>or(Ot,_t)?or(ce,Ot)&&gn(Ot)===Me?Ve(_t):zg.none("in same cell"):Ca(NE,[Ot,_t]).fold(()=>Ax(A,_t,Ot)?zg.success():Ve(_t),Kt=>Ve(_t)))).getOr(zg.none("default")),cata:(A,$,j,ce,Me)=>A.fold($,j,ce,Me)},a9=(A,$,j,ce)=>({parent:A,children:$,element:j,index:ce}),Rm=A=>ao(A).bind($=>{const j=St($);return eA(j,A).map(ce=>a9($,j,A,ce))}),eA=(A,$)=>Oe(A,N(or,$)),Px=He("br"),Zg=(A,$,j)=>$(A,j).bind(ce=>xt(ce)&&bt(ce).trim().length===0?Zg(ce,$,j):E.some(ce)),ac=(A,$,j)=>j.traverse($).orThunk(()=>Zg($,j.gather,A)).map(j.relative),V0=(A,$)=>Ct(A,$).filter(Px).orThunk(()=>Ct(A,$-1).filter(Px)),ab=(A,$,j,ce)=>V0($,j).bind(Me=>ce.traverse(Me).fold(()=>Zg(Me,ce.gather,A).map(ce.relative),Ve=>Rm(Ve).map(nt=>_l.on(nt.parent,nt.index)))),z0=(A,$,j,ce)=>(Px($)?ac(A,$,ce):ab(A,$,j,ce)).map(Ve=>({start:Ve,finish:Ve})),tT=A=>Pi.cata(A,$=>E.none(),()=>E.none(),$=>E.some(f0($,0)),$=>E.some(f0($,gn($)))),Z0=(A,$)=>({left:A.left,top:A.top+$,right:A.right,bottom:A.bottom+$}),uv=(A,$)=>({left:A.left,top:A.top-$,right:A.right,bottom:A.bottom-$}),Ud=(A,$,j)=>({left:A.left+$,top:A.top+j,right:A.right+$,bottom:A.bottom+j}),BE=A=>A.top,QE=A=>A.bottom,Hg=(A,$,j)=>j>=0&&j0?A.getRangedRect($,j-1,$,j):E.none(),H0=A=>({left:A.left,top:A.top,right:A.right,bottom:A.bottom}),Mx=(A,$)=>E.some(A.getRect($)),Rh=(A,$,j)=>ut($)?Mx(A,$).map(H0):xt($)?Hg(A,$,j).map(H0):E.none(),nT=(A,$)=>ut($)?Mx(A,$).map(H0):xt($)?A.getRangedRect($,0,$,gn($)).map(H0):E.none(),Rl=5,Dm=100,id=Mu.generate([{none:[]},{retry:["caret"]}]),U0=(A,$)=>A.left<$.left||Math.abs($.right-A.left)<1||A.left>$.right,Rc=(A,$,j)=>xi($,dx).fold(Q,ce=>nT(A,ce).exists(Me=>U0(j,Me))),uu=(A,$,j,ce,Me)=>{const Ve=Z0(Me,Rl);return Math.abs(j.bottom-ce.bottom)<1||j.top>Me.bottom?id.retry(Ve):j.top===Me.bottom?id.retry(Z0(Me,1)):Rc(A,$,Me)?id.retry(Ud(Ve,Rl,0)):id.none()},ld={point:BE,adjuster:(A,$,j,ce,Me)=>{const Ve=uv(Me,Rl);return Math.abs(j.top-ce.top)<1||j.bottomA.elementFromPoint($,j).filter(ce=>wn(ce)==="table").isSome(),fv=(A,$,j,ce,Me)=>rT(A,$,j,$.move(ce,Rl),Me),rT=(A,$,j,ce,Me)=>Me===0?E.some(ce):sf(A,ce.left,$.point(ce))?fv(A,$,j,ce,Me-1):A.situsFromPoint(ce.left,$.point(ce)).bind(Ve=>Ve.start.fold(E.none,nt=>nT(A,nt).bind(Ot=>$.adjuster(A,nt,Ot,j,ce).fold(E.none,_t=>rT(A,$,j,_t,Me-1))).orThunk(()=>E.some(ce)),E.none)),FE=(A,$,j)=>A.point($)>j.getInnerHeight()?E.some(A.point($)-j.getInnerHeight()):A.point($)<0?E.some(-A.point($)):E.none(),tA=(A,$,j)=>{const ce=A.move(j,Rl),Me=rT($,A,j,ce,Dm).getOr(ce);return FE(A,Me,$).fold(()=>$.situsFromPoint(Me.left,A.point(Me)),Ve=>($.scrollBy(0,Ve),$.situsFromPoint(Me.left,A.point(Me)-Ve)))},ib={tryUp:N(tA,ld),tryDown:N(tA,Ex),getJumpSize:M(Rl)},nA=20,lb=(A,$,j)=>A.getSelection().bind(ce=>z0($,ce.finish,ce.foffset,j).fold(()=>E.some(f0(ce.finish,ce.foffset)),Me=>{const Ve=A.fromSitus(Me),nt=Pi.verify(A,ce.finish,ce.foffset,Ve.finish,Ve.foffset,j.failure,$);return tT(nt)})),_x=(A,$,j,ce,Me,Ve)=>Ve===0?E.none():zE(A,$,j,ce,Me).bind(nt=>{const Ot=A.fromSitus(nt),_t=Pi.verify(A,j,ce,Ot.finish,Ot.foffset,Me.failure,$);return Pi.cata(_t,()=>E.none(),()=>E.some(nt),Kt=>or(j,Kt)&&ce===0?VE(A,j,ce,uv,Me):_x(A,$,Kt,0,Me,Ve-1),Kt=>or(j,Kt)&&ce===gn(Kt)?VE(A,j,ce,Z0,Me):_x(A,$,Kt,gn(Kt),Me,Ve-1))}),VE=(A,$,j,ce,Me)=>Rh(A,$,j).bind(Ve=>rA(A,Me,ce(Ve,ib.getJumpSize()))),rA=(A,$,j)=>{const ce=Hp().browser;return ce.isChromium()||ce.isSafari()||ce.isFirefox()?$.retry(A,j):E.none()},zE=(A,$,j,ce,Me)=>Rh(A,j,ce).bind(Ve=>rA(A,Me,Ve)),i9=(A,$,j)=>lb(A,$,j).bind(ce=>_x(A,$,ce.element,ce.offset,j,nA).map(A.fromSitus)),oA=(A,$)=>Kk(A,j=>ao(j).exists(ce=>or(ce,$))),As=(A,$,j,ce,Me)=>Ka(ce,"td,th",$).bind(Ve=>Ka(Ve,"table",$).bind(nt=>oA(Me,nt)?i9(A,$,j).bind(Ot=>Ka(Ot.finish,"td,th",$).map(_t=>({start:Ve,finish:_t,range:Ot}))):E.none())),Wd=(A,$,j,ce,Me,Ve)=>Ve(ce,$).orThunk(()=>As(A,$,j,ce,Me).map(nt=>{const Ot=nt.range;return I0.create(E.some(tb(Ot.start,Ot.soffset,Ot.finish,Ot.foffset)),!0)})),dv=(A,$)=>Ka(A,"tr",$).bind(j=>Ka(j,"table",$).bind(ce=>{const Me=zi(ce,"tr");return or(j,Me[0])?sb(ce,Ve=>Pn(Ve).isSome(),$).map(Ve=>{const nt=gn(Ve);return I0.create(E.some(tb(Ve,nt,Ve,nt)),!0)}):E.none()})),oT=(A,$)=>Ka(A,"tr",$).bind(j=>Ka(j,"table",$).bind(ce=>{const Me=zi(ce,"tr");return or(j,Me[Me.length-1])?Jw(ce,Ve=>_n(Ve).isSome(),$).map(Ve=>I0.create(E.some(tb(Ve,0,Ve,0)),!0)):E.none()})),sA=(A,$,j,ce,Me,Ve,nt)=>As(A,j,ce,Me,Ve).bind(Ot=>B0($,j,Ot.start,Ot.finish,nt)),cb=A=>{let $=A;return{get:()=>$,set:Me=>{$=Me}}},ZE=A=>{const $=cb(E.none()),j=()=>$.get().each(A);return{clear:()=>{j(),$.set(E.none())},isSet:()=>$.get().isSome(),get:()=>$.get(),set:Ot=>{j(),$.set(E.some(Ot))}}},W0=()=>{const A=ZE(w);return{...A,on:j=>A.get().each(j)}},Rx=(A,$)=>Ka(A,"td,th",$),af=A=>Oo(A).exists(Bd),zU=(A,$,j,ce)=>{const Me=W0(),Ve=Me.clear,nt=Cn=>{Me.on(ir=>{ce.clearBeforeUpdate($),Rx(Cn.target,j).each($r=>{rd(ir,$r,j).each(Rr=>{const Kn=Rr.boxes.getOr([]);if(Kn.length===1){const Ir=Kn[0],jn=Py(Ir)==="false",io=Gf(Om(Cn.target),Ir,or);jn&&io&&(ce.selectRange($,Kn,Ir,Ir),A.selectContents(Ir))}else Kn.length>1&&(ce.selectRange($,Kn,Rr.start,Rr.finish),A.selectContents($r))})})})};return{clearstate:Ve,mousedown:Cn=>{ce.clear($),Rx(Cn.target,j).filter(af).each(Me.set)},mouseover:Cn=>{nt(Cn)},mouseup:Cn=>{nt(Cn),Ve()}}},Dx={traverse:Ee,gather:F0,relative:_l.before,retry:ib.tryDown,failure:Pi.failedDown},Y0={traverse:Fe,gather:Kw,relative:_l.before,retry:ib.tryUp,failure:Pi.failedUp},Ug=A=>$=>$===A,$x=Ug(38),Lx=Ug(40),hv=A=>A>=37&&A<=40,HE={isBackward:Ug(37),isForward:Ug(39)},aA={isBackward:Ug(39),isForward:Ug(37)},UE=A=>{const $=A!==void 0?A.dom:document,j=$.body.scrollLeft||$.documentElement.scrollLeft,ce=$.body.scrollTop||$.documentElement.scrollTop;return Xu(j,ce)},X0=(A,$,j)=>{const Me=(j!==void 0?j.dom:document).defaultView;Me&&Me.scrollBy(A,$)},$m=Mu.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),WE=A=>$m.exact(A.start,A.soffset,A.finish,A.foffset),YE=A=>A.match({domRange:$=>zt.fromDom($.startContainer),relative:($,j)=>_l.getStart($),exact:($,j,ce,Me)=>$}),iA=$m.domRange,sT=$m.relative,aT=$m.exact,iT=A=>{const $=YE(A);return Sr($)},Ix=N0.create,Wg={domRange:iA,relative:sT,exact:aT,exactFromRange:WE,getWin:iT,range:Ix},lA=(A,$,j)=>{var ce,Me;return E.from((Me=(ce=A.dom).caretPositionFromPoint)===null||Me===void 0?void 0:Me.call(ce,$,j)).bind(Ve=>{if(Ve.offsetNode===null)return E.none();const nt=A.dom.createRange();return nt.setStart(Ve.offsetNode,Ve.offset),nt.collapse(),E.some(nt)})},ub=(A,$,j)=>{var ce,Me;return E.from((Me=(ce=A.dom).caretRangeFromPoint)===null||Me===void 0?void 0:Me.call(ce,$,j))},lT=(()=>document.caretPositionFromPoint?lA:document.caretRangeFromPoint?ub:E.none)(),XE=(A,$,j)=>{const ce=zt.fromDom(A.document);return lT(ce,$,j).map(Me=>N0.create(zt.fromDom(Me.startContainer),Me.startOffset,zt.fromDom(Me.endContainer),Me.endOffset))},fb=(A,$)=>{const j=wn(A);return j==="input"?_l.after(A):me(["br","img"],j)?$===0?_l.before(A):_l.after(A):_l.on(A,$)},GE=(A,$)=>{const j=A.fold(_l.before,fb,_l.after),ce=$.fold(_l.before,fb,_l.after);return Wg.relative(j,ce)},Fr=(A,$,j,ce)=>{const Me=fb(A,$),Ve=fb(j,ce);return Wg.relative(Me,Ve)},el=(A,$,j,ce)=>{const Ve=Rn(A).dom.createRange();return Ve.setStart(A.dom,$),Ve.setEnd(j.dom,ce),Ve},Lm=(A,$,j,ce)=>{const Me=el(A,$,j,ce),Ve=or(A,j)&&$===ce;return Me.collapsed&&!Ve},Ni=A=>E.from(A.getSelection()),If=(A,$)=>{Ni(A).each(j=>{j.removeAllRanges(),j.addRange($)})},Nx=(A,$,j,ce,Me)=>{const Ve=Jy(A,$,j,ce,Me);If(A,Ve)},db=(A,$,j,ce,Me,Ve)=>{$.collapse(j.dom,ce),$.extend(Me.dom,Ve)},Yd=(A,$)=>Xk(A,$).match({ltr:(j,ce,Me,Ve)=>{Nx(A,j,ce,Me,Ve)},rtl:(j,ce,Me,Ve)=>{Ni(A).each(nt=>{if(nt.setBaseAndExtent)nt.setBaseAndExtent(j.dom,ce,Me.dom,Ve);else if(nt.extend)try{db(A,nt,j,ce,Me,Ve)}catch{Nx(A,Me,Ve,j,ce)}else Nx(A,Me,Ve,j,ce)})}}),Bx=(A,$,j,ce,Me)=>{const Ve=Fr($,j,ce,Me);Yd(A,Ve)},Qx=(A,$,j)=>{const ce=GE($,j);Yd(A,ce)},G0=A=>{if(A.rangeCount>0){const $=A.getRangeAt(0),j=A.getRangeAt(A.rangeCount-1);return E.some(N0.create(zt.fromDom($.startContainer),$.startOffset,zt.fromDom(j.endContainer),j.endOffset))}else return E.none()},cA=A=>{if(A.anchorNode===null||A.focusNode===null)return G0(A);{const $=zt.fromDom(A.anchorNode),j=zt.fromDom(A.focusNode);return Lm($,A.anchorOffset,j,A.focusOffset)?E.some(N0.create($,A.anchorOffset,j,A.focusOffset)):G0(A)}},hb=(A,$,j=!0)=>{const Me=(j?Hk:Tx)(A,$);If(A,Me)},cT=A=>Ni(A).filter($=>$.rangeCount>0).bind(cA),uT=A=>cT(A).map($=>Wg.exact($.start,$.soffset,$.finish,$.foffset)),jE=(A,$)=>{const j=Yw(A,$);return $E(j)},Xd=(A,$,j)=>XE(A,$,j),Fx=A=>{Ni(A).each($=>$.removeAllRanges())},j0=A=>({elementFromPoint:(jn,io)=>zt.fromPoint(zt.fromDom(A.document),jn,io),getRect:jn=>jn.dom.getBoundingClientRect(),getRangedRect:(jn,io,$o,os)=>{const Va=Wg.exact(jn,io,$o,os);return jE(A,Va)},getSelection:()=>uT(A).map(jn=>Xw(A,jn)),fromSitus:jn=>{const io=Wg.relative(jn.start,jn.finish);return Xw(A,io)},situsFromPoint:(jn,io)=>Xd(A,jn,io).map($o=>Gk.create($o.start,$o.soffset,$o.finish,$o.foffset)),clearSelection:()=>{Fx(A)},collapseSelection:(jn=!1)=>{uT(A).each(io=>io.fold($o=>$o.collapse(jn),($o,os)=>{const Va=jn?$o:os;Qx(A,Va,Va)},($o,os,Va,ml)=>{const bi=jn?$o:Va,du=jn?os:ml;Bx(A,bi,du,bi,du)}))},setSelection:jn=>{Bx(A,jn.start,jn.soffset,jn.finish,jn.foffset)},setRelativeSelection:(jn,io)=>{Qx(A,jn,io)},selectNode:jn=>{hb(A,jn,!1)},selectContents:jn=>{hb(A,jn)},getInnerHeight:()=>A.innerHeight,getScrollY:()=>UE(zt.fromDom(A.document)).top,scrollBy:(jn,io)=>{X0(jn,io,zt.fromDom(A.document))}}),jl=(A,$)=>({rows:A,cols:$}),Xi=(A,$,j,ce)=>{const Me=j0(A),Ve=zU(Me,$,j,ce);return{clearstate:Ve.clearstate,mousedown:Ve.mousedown,mouseover:Ve.mouseover,mouseup:Ve.mouseup}},Vx=A=>xi(A,it).exists(Bd),mb=(A,$)=>Vx(A)||Vx($),zx=(A,$,j,ce)=>{const Me=j0(A),Ve=()=>(ce.clear($),E.none());return{keydown:(_t,Kt,Cn,ir,$r,Rr)=>{const Kn=_t.raw,Ir=Kn.which,jn=Kn.shiftKey===!0;return wm($,ce.selectedSelector).fold(()=>(hv(Ir)&&!jn&&ce.clearBeforeUpdate($),hv(Ir)&&jn&&!mb(Kt,ir)?E.none:Lx(Ir)&&jn?N(sA,Me,$,j,Dx,ir,Kt,ce.selectRange):$x(Ir)&&jn?N(sA,Me,$,j,Y0,ir,Kt,ce.selectRange):Lx(Ir)?N(Wd,Me,j,Dx,ir,Kt,oT):$x(Ir)?N(Wd,Me,j,Y0,ir,Kt,dv):E.none),$o=>{const os=Va=>()=>te(Va,bi=>IE(bi.rows,bi.cols,$,$o,ce)).fold(()=>Kp($,ce.firstSelectedSelector,ce.lastSelectedSelector).map(bi=>{const du=Lx(Ir)||Rr.isForward(Ir)?_l.after:_l.before;return Me.setRelativeSelection(_l.on(bi.first,0),du(bi.table)),ce.clear($),I0.create(E.none(),!0)}),bi=>E.some(I0.create(E.none(),!0)));return hv(Ir)&&jn&&!mb(Kt,ir)?E.none:Lx(Ir)&&jn?os([jl(1,0)]):$x(Ir)&&jn?os([jl(-1,0)]):Rr.isBackward(Ir)&&jn?os([jl(0,-1),jl(-1,0)]):Rr.isForward(Ir)&&jn?os([jl(0,1),jl(1,0)]):hv(Ir)&&!jn?Ve:E.none})()},keyup:(_t,Kt,Cn,ir,$r)=>wm($,ce.selectedSelector).fold(()=>{const Rr=_t.raw,Kn=Rr.which;return Rr.shiftKey===!0&&hv(Kn)&&mb(Kt,ir)?Cx($,j,Kt,Cn,ir,$r,ce.selectRange):E.none()},E.none)}},gb=(A,$,j,ce)=>{const Me=j0(A);return(Ve,nt)=>{ce.clearBeforeUpdate($),rd(Ve,nt,j).each(Ot=>{const _t=Ot.boxes.getOr([]);ce.selectRange($,_t,Ot.start,Ot.finish),Me.selectContents(nt),Me.collapseSelection()})}},pb=(A,$)=>{const j=Pt(A,$);return j===void 0||j===""?[]:j.split(" ")},q0=(A,$,j)=>{const Me=pb(A,$).concat([j]);return dt(A,$,Me.join(" ")),!0},uA=(A,$,j)=>{const ce=Be(pb(A,$),Me=>Me!==j);return ce.length>0?dt(A,$,ce.join(" ")):nn(A,$),!1},vb=A=>A.dom.classList!==void 0,fA=A=>pb(A,"class"),dA=(A,$)=>q0(A,"class",$),hA=(A,$)=>uA(A,"class",$),Nf=(A,$)=>{vb(A)?A.dom.classList.add($):dA(A,$)},ic=A=>{(vb(A)?A.dom.classList:fA(A)).length===0&&nn(A,"class")},cd=(A,$)=>{vb(A)?A.dom.classList.remove($):hA(A,$),ic(A)},fu=(A,$)=>vb(A)&&A.dom.classList.contains($),yb=(A,$)=>{ee($,j=>{cd(A,j)})},Zx=A=>$=>{Nf($,A)},mA=A=>$=>{yb($,A)},Im={byClass:A=>{const $=Zx(A.selected),j=mA([A.selected,A.lastSelected,A.firstSelected]),ce=Ve=>{const nt=zi(Ve,A.selectedSelector);ee(nt,j)};return{clearBeforeUpdate:ce,clear:ce,selectRange:(Ve,nt,Ot,_t)=>{ce(Ve),ee(nt,$),Nf(Ot,A.firstSelected),Nf(_t,A.lastSelected)},selectedSelector:A.selectedSelector,firstSelectedSelector:A.firstSelectedSelector,lastSelectedSelector:A.lastSelectedSelector}},byAttr:(A,$,j)=>{const ce=_t=>{nn(_t,A.selected),nn(_t,A.firstSelected),nn(_t,A.lastSelected)},Me=_t=>{dt(_t,A.selected,"1")},Ve=_t=>{nt(_t),j()},nt=_t=>{const Kt=zi(_t,`${A.selectedSelector},${A.firstSelectedSelector},${A.lastSelectedSelector}`);ee(Kt,ce)};return{clearBeforeUpdate:nt,clear:Ve,selectRange:(_t,Kt,Cn,ir)=>{Ve(_t),ee(Kt,Me),dt(Cn,A.firstSelected,"1"),dt(ir,A.lastSelected,"1"),$(Kt,Cn,ir)},selectedSelector:A.selectedSelector,firstSelectedSelector:A.firstSelectedSelector,lastSelectedSelector:A.lastSelectedSelector}}},Ob=(A,$,j,ce)=>{switch(A.tag){case"none":return $();case"single":return ce(A.element);case"multiple":return j(A.elements)}},fT=()=>({tag:"none"}),gA=A=>({tag:"multiple",elements:A}),pA=A=>({tag:"single",element:A}),dT=(A,$,j)=>({get:()=>JS(A(),j).fold(()=>$().fold(fT,pA),gA)}),Hx=(A,$)=>{const j=A.slice(0,$[$.length-1].row+1),ce=ni(j);return Le(ce,Me=>{const Ve=Me.cells.slice(0,$[$.length-1].column+1);return fe(Ve,nt=>nt.element)})},ka=(A,$)=>{const j=A.slice($[0].row+$[0].rowspan-1,A.length),ce=ni(j);return Le(ce,Me=>{const Ve=Me.cells.slice($[0].column+$[0].colspan-1,Me.cells.length);return fe(Ve,nt=>nt.element)})},Nm=(A,$,j)=>{const ce=hs.fromTable(A);return Eg(ce,$).map(Ve=>{const nt=v0(ce,j,!1),{rows:Ot}=Hi(nt),_t=Hx(Ot,Ve),Kt=ka(Ot,Ve);return{upOrLeftCells:_t,downOrRightCells:Kt}})},vA=(A,$,j,ce,Me,Ve,nt)=>({target:A,x:$,y:j,stop:ce,prevent:Me,kill:Ve,raw:nt}),hT=A=>{const $=zt.fromDom(Dr(A).getOr(A.target)),j=()=>A.stopPropagation(),ce=()=>A.preventDefault(),Me=T(ce,j);return vA($,A.clientX,A.clientY,j,ce,Me,A)},mT=(A,$)=>j=>{A(j)&&$(hT(j))},mv=(A,$,j,ce,Me)=>{const Ve=mT(j,ce);return A.dom.addEventListener($,Ve,Me),{unbind:N(pT,A,$,Ve,Me)}},gT=(A,$,j,ce)=>mv(A,$,j,ce,!1),pT=(A,$,j,ce)=>{A.dom.removeEventListener($,j,ce)},KE=B,K0=(A,$,j)=>gT(A,$,KE,j),J0=hT,vT=A=>!fu(zt.fromDom(A.target),"ephox-snooker-resizer-bar"),yT=(A,$)=>{const j=dT(()=>zt.fromDom(A.getBody()),()=>Ly(ef(A),Oh(A)),Jp.selectedSelector),ce=(_t,Kt,Cn)=>{Oc(Kt).each($r=>{const Rr=$i(A),Kn=js(w,zt.fromDom(A.getDoc()),Rr),Ir=$f(A),jn=Nm($r,{selection:Ir},Kn);iE(A,_t,Kt,Cn,jn)})},Me=()=>lE(A),Ve=Im.byAttr(Jp,ce,Me);return A.on("init",_t=>{const Kt=A.getWin(),Cn=FO(A),ir=Oh(A),$r=()=>{const Oa=A.selection,Dc=zt.fromDom(Oa.getStart()),ql=zt.fromDom(Oa.getEnd());Ca(Oc,[Dc,ql]).fold(()=>Ve.clear(Cn),w)},Rr=Xi(Kt,Cn,ir,Ve),Kn=zx(Kt,Cn,ir,Ve),Ir=gb(Kt,Cn,ir,Ve),jn=Oa=>Oa.raw.shiftKey===!0;A.on("TableSelectorChange",Oa=>Ir(Oa.start,Oa.finish));const io=(Oa,Dc)=>{jn(Oa)&&(Dc.kill&&Oa.kill(),Dc.selection.each(ql=>{const uf=Wg.relative(ql.start,ql.finish),Ru=Yw(Kt,uf);A.selection.setRng(Ru)}))},$o=Oa=>{const Dc=J0(Oa);if(Dc.raw.shiftKey&&hv(Dc.raw.which)){const ql=A.selection.getRng(),uf=zt.fromDom(ql.startContainer),Ru=zt.fromDom(ql.endContainer);Kn.keyup(Dc,uf,ql.startOffset,Ru,ql.endOffset).each(jg=>{io(Dc,jg)})}},os=Oa=>{const Dc=J0(Oa);$.hide();const ql=A.selection.getRng(),uf=zt.fromDom(ql.startContainer),Ru=zt.fromDom(ql.endContainer),jg=ZS(HE,aA)(zt.fromDom(A.selection.getStart()));Kn.keydown(Dc,uf,ql.startOffset,Ru,ql.endOffset,jg).each(Gc=>{io(Dc,Gc)}),$.show()},Va=Oa=>Oa.button===0,ml=Oa=>Oa.buttons===void 0?!0:(Oa.buttons&1)!==0,bi=Oa=>{Rr.clearstate()},du=Oa=>{Va(Oa)&&vT(Oa)&&Rr.mousedown(J0(Oa))},pv=Oa=>{ml(Oa)&&vT(Oa)&&Rr.mouseover(J0(Oa))},vv=Oa=>{Va(Oa)&&vT(Oa)&&Rr.mouseup(J0(Oa))},jx=(()=>{const Oa=cb(zt.fromDom(Cn)),Dc=cb(0);return{touchEnd:uf=>{const Ru=zt.fromDom(uf.target);if(He("td")(Ru)||He("th")(Ru)){const jg=Oa.get(),Gc=Dc.get();or(jg,Ru)&&uf.timeStamp-Gc<300&&(uf.preventDefault(),Ir(Ru,Ru))}Oa.set(Ru),Dc.set(uf.timeStamp)}}})();A.on("dragstart",bi),A.on("mousedown",du),A.on("mouseover",pv),A.on("mouseup",vv),A.on("touchend",jx.touchEnd),A.on("keyup",$o),A.on("keydown",os),A.on("NodeChange",$r)}),A.on("PreInit",()=>{A.serializer.addTempAttr(Jp.firstSelected),A.serializer.addTempAttr(Jp.lastSelected)}),{getSelectedCells:()=>Ob(j.get(),M([]),_t=>fe(_t,Kt=>Kt.dom),_t=>[_t.dom]),clearSelectedCells:_t=>Ve.clear(zt.fromDom(_t))}},ud=A=>{let $=[];return{bind:Ve=>{if(Ve===void 0)throw new Error("Event bind error: undefined handler");$.push(Ve)},unbind:Ve=>{$=Be($,nt=>nt!==Ve)},trigger:(...Ve)=>{const nt={};ee(A,(Ot,_t)=>{nt[Ot]=Ve[_t]}),ee($,Ot=>{Ot(nt)})}}},Yg=A=>{const $=Se(A,ce=>({bind:ce.bind,unbind:ce.unbind})),j=Se(A,ce=>ce.trigger);return{registry:$,trigger:j}},JE=(A,$)=>{let j=null;const ce=()=>{p(j)||(clearTimeout(j),j=null)};return{cancel:ce,throttle:(...Ve)=>{ce(),j=setTimeout(()=>{j=null,A.apply(null,Ve)},$)}}},xb=A=>A.slice(0).sort(),e_=(A,$)=>{throw new Error("All required keys ("+xb(A).join(", ")+") were not specified. Specified keys were: "+xb($).join(", ")+".")},_u=A=>{throw new Error("Unsupported keys for object: "+xb(A).join(", "))},lc=(A,$)=>{if(!u($))throw new Error("The "+A+" fields must be an array. Was: "+$+".");ee($,j=>{if(!f(j))throw new Error("The value "+j+" in the "+A+" fields was not a string.")})},gv=(A,$)=>{throw new Error("All values need to be of type: "+$+". Keys ("+xb(A).join(", ")+") were not.")},l9=A=>{const $=xb(A);G($,(ce,Me)=>Me<$.length-1&&ce===$[Me+1]).each(ce=>{throw new Error("The field: "+ce+" occurs more than once in the combined fields: ["+$.join(", ")+"].")})},yA=(A,$)=>t_(A,$,{validate:k,label:"function"}),t_=(A,$,j)=>{if($.length===0)throw new Error("You must specify at least one required field.");return lc("required",$),l9($),ce=>{const Me=se(ce);ke($,Ot=>me(Me,Ot))||e_($,Me),A($,Me);const nt=Be($,Ot=>!j.validate(ce[Ot],Ot));return nt.length>0&&gv(nt,j.label),ce}},xs=(A,$)=>{const j=Be($,ce=>!me(A,ce));j.length>0&&_u(j)},bT=A=>yA(xs,A),bA=bT(["compare","extract","mutate","sink"]),OT=bT(["element","start","stop","destroy"]),n_=bT(["forceDrop","drop","move","delayDrop"]),r_=()=>{let A=E.none();const $=()=>{A=E.none()},j=(Ve,nt)=>{const Ot=A.map(_t=>Ve.compare(_t,nt));return A=E.some(nt),Ot},ce=(Ve,nt)=>{nt.extract(Ve).each(_t=>{j(nt,_t).each(Cn=>{Me.trigger.move(Cn)})})},Me=Yg({move:ud(["info"])});return{onEvent:ce,reset:$,events:Me.registry}},OA=()=>{const A=Yg({move:ud(["info"])});return{onEvent:w,reset:w,events:A.registry}},o_=()=>{const A=OA(),$=r_();let j=A;return{on:()=>{j.reset(),j=$},off:()=>{j.reset(),j=A},isOn:()=>j===$,onEvent:(Ot,_t)=>{j.onEvent(Ot,_t)},events:$.events}},Wr=(A,$,j)=>{let ce=!1;const Me=Yg({start:ud([]),stop:ud([])}),Ve=o_(),nt=()=>{Kn.stop(),Ve.isOn()&&(Ve.off(),Me.trigger.stop())},Ot=JE(nt,200),_t=jn=>{Kn.start(jn),Ve.on(),Me.trigger.start()},Kt=jn=>{Ot.cancel(),Ve.onEvent(jn,$)};Ve.events.move.bind(jn=>{$.mutate(A,jn.info)});const Cn=()=>{ce=!0},ir=()=>{ce=!1},$r=()=>ce,Rr=jn=>(...io)=>{ce&&jn.apply(null,io)},Kn=$.sink(n_({forceDrop:nt,drop:Rr(nt),move:Rr(Kt),delayDrop:Rr(Ot.throttle)}),j),Ir=()=>{Kn.destroy()};return{element:Kn.element,go:_t,on:Cn,off:ir,isActive:$r,destroy:Ir,events:Me.registry}},Xg=A=>{const $=A.replace(/\./g,"-");return{resolve:ce=>$+"-"+ce}},Sb=Xg("ephox-dragster").resolve,wb=A=>{const $={layerClass:Sb("blocker"),...A},j=zt.fromTag("div");return dt(j,"role","presentation"),kl(j,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),Nf(j,Sb("blocker")),Nf(j,$.layerClass),{element:M(j),destroy:()=>{On(j)}}};var a_=bA({compare:(A,$)=>Xu($.left-A.left,$.top-A.top),extract:A=>E.some(Xu(A.x,A.y)),sink:(A,$)=>{const j=wb($),ce=K0(j.element(),"mousedown",A.forceDrop),Me=K0(j.element(),"mouseup",A.drop),Ve=K0(j.element(),"mousemove",A.move),nt=K0(j.element(),"mouseout",A.delayDrop),Ot=()=>{j.destroy(),Me.unbind(),Ve.unbind(),nt.unbind(),ce.unbind()},_t=Cn=>{Mt(Cn,j.element())},Kt=()=>{On(j.element())};return OT({element:j.element,start:_t,stop:Kt,destroy:Ot})},mutate:(A,$)=>{A.mutate($.left,$.top)}});const SA=(A,$={})=>{var j;const ce=(j=$.mode)!==null&&j!==void 0?j:a_;return Wr(A,ce,$)},Bm=Xg("ephox-snooker").resolve,wA=()=>{const A=Yg({drag:ud(["xDelta","yDelta"])});return{mutate:(j,ce)=>{A.trigger.drag(j,ce)},events:A.registry}},i_=()=>{const A=Yg({drag:ud(["xDelta","yDelta","target"])});let $=E.none();const j=wA();return j.events.drag.bind(Ve=>{$.each(nt=>{A.trigger.drag(Ve.xDelta,Ve.yDelta,nt)})}),{assign:Ve=>{$=E.some(Ve)},get:()=>$,mutate:j.mutate,events:A.registry}},Tb=(A,$,j,ce,Me)=>{const Ve=zt.fromTag("div");return kl(Ve,{position:"absolute",left:$-ce/2+"px",top:j+"px",height:Me+"px",width:ce+"px"}),mt(Ve,{"data-column":A,role:"presentation"}),Ve},l_=(A,$,j,ce,Me)=>{const Ve=zt.fromTag("div");return kl(Ve,{position:"absolute",left:$+"px",top:j-Me/2+"px",height:Me+"px",width:ce+"px"}),mt(Ve,{"data-row":A,role:"presentation"}),Ve},TA=Bm("resizer-bar"),xT=Bm("resizer-rows"),CA=Bm("resizer-cols"),Ux=7,c_=(A,$)=>Le(A.all,(j,ce)=>$(j.element)?[ce]:[]),u_=(A,$)=>{const j=[];return q(A.grid.columns,ce=>{hs.getColumnAt(A,ce).map(Ve=>Ve.element).forall($)&&j.push(ce)}),Be(j,ce=>{const Me=hs.filterItems(A,Ve=>Ve.column===ce);return ke(Me,Ve=>$(Ve.element))})},e1=A=>{const $=zi(A.parent(),"."+TA);ee($,On)},ST=(A,$,j)=>{const ce=A.origin();ee($,Me=>{Me.each(Ve=>{const nt=j(ce,Ve);Nf(nt,TA),Mt(A.parent(),nt)})})},kA=(A,$,j,ce)=>{ST(A,$,(Me,Ve)=>{const nt=Tb(Ve.col,Ve.x-Me.left,j.top-Me.top,Ux,ce);return Nf(nt,CA),nt})},f_=(A,$,j,ce)=>{ST(A,$,(Me,Ve)=>{const nt=l_(Ve.row,j.left-Me.left,Ve.y-Me.top,ce,Ux);return Nf(nt,xT),nt})},d_=(A,$,j,ce,Me)=>{const Ve=Tu(j),nt=$.isResizable,Ot=ce.length>0?Xr.positions(ce,j):[],_t=Ot.length>0?c_(A,nt):[],Kt=Be(Ot,(Rr,Kn)=>ae(_t,Ir=>Kn===Ir));f_($,Kt,Ve,Mf(j));const Cn=Me.length>0?vi.positions(Me,j):[],ir=Cn.length>0?u_(A,nt):[],$r=Be(Cn,(Rr,Kn)=>ae(ir,Ir=>Kn===Ir));kA($,$r,Ve,vm(j))},Wx=(A,$)=>{if(e1(A),A.isResizable($)){const j=hs.fromTable($),ce=Yp(j),Me=gm(j);d_(j,A,$,ce,Me)}},Dh=(A,$)=>{const j=zi(A.parent(),"."+TA);ee(j,$)},Yx=A=>{Dh(A,$=>{Ya($,"display","none")})},Ys=A=>{Dh(A,$=>{Ya($,"display","block")})},h_=A=>fu(A,xT),Qm=A=>fu(A,CA),$h=Bm("resizer-bar-dragging"),Xx=A=>{const $=i_(),j=SA($,{});let ce=E.none();const Me=(Kn,Ir)=>E.from(Pt(Kn,Ir));$.events.drag.bind(Kn=>{Me(Kn.target,"data-row").each(Ir=>{const jn=Cf(Kn.target,"top");Ya(Kn.target,"top",jn+Kn.yDelta+"px")}),Me(Kn.target,"data-column").each(Ir=>{const jn=Cf(Kn.target,"left");Ya(Kn.target,"left",jn+Kn.xDelta+"px")})});const Ve=(Kn,Ir)=>{const jn=Cf(Kn,Ir),io=Ra(Kn,"data-initial-"+Ir,0);return jn-io};j.events.stop.bind(()=>{$.get().each(Kn=>{ce.each(Ir=>{Me(Kn,"data-row").each(jn=>{const io=Ve(Kn,"top");nn(Kn,"data-initial-top"),Rr.trigger.adjustHeight(Ir,io,parseInt(jn,10))}),Me(Kn,"data-column").each(jn=>{const io=Ve(Kn,"left");nn(Kn,"data-initial-left"),Rr.trigger.adjustWidth(Ir,io,parseInt(jn,10))}),Wx(A,Ir)})})});const nt=(Kn,Ir)=>{Rr.trigger.startAdjust(),$.assign(Kn),dt(Kn,"data-initial-"+Ir,Cf(Kn,Ir)),Nf(Kn,$h),Ya(Kn,"opacity","0.2"),j.go(A.parent())},Ot=K0(A.parent(),"mousedown",Kn=>{h_(Kn.target)&&nt(Kn.target,"top"),Qm(Kn.target)&&nt(Kn.target,"left")}),_t=Kn=>or(Kn,A.view()),Kt=Kn=>Ka(Kn,"table",_t).filter(Bd),Cn=K0(A.view(),"mouseover",Kn=>{Kt(Kn.target).fold(()=>{oa(Kn.target)&&e1(A)},Ir=>{j.isActive()&&(ce=E.some(Ir),Wx(A,Ir))})}),ir=()=>{Ot.unbind(),Cn.unbind(),j.destroy(),e1(A)},$r=Kn=>{Wx(A,Kn)},Rr=Yg({adjustHeight:ud(["table","delta","row"]),adjustWidth:ud(["table","delta","column"]),startAdjust:ud([])});return{destroy:ir,refresh:$r,on:j.on,off:j.off,hideBars:N(Yx,A),showBars:N(Ys,A),events:Rr.registry}},Gx={create:(A,$,j)=>{const ce=Xr,Me=vi,Ve=Xx(A),nt=Yg({beforeResize:ud(["table","type"]),afterResize:ud(["table","type"]),startDrag:ud([])});return Ve.events.adjustHeight.bind(Ot=>{const _t=Ot.table;nt.trigger.beforeResize(_t,"row");const Kt=ce.delta(Ot.delta,_t);dw(_t,Kt,Ot.row,ce),nt.trigger.afterResize(_t,"row")}),Ve.events.startAdjust.bind(Ot=>{nt.trigger.startDrag()}),Ve.events.adjustWidth.bind(Ot=>{const _t=Ot.table;nt.trigger.beforeResize(_t,"col");const Kt=Me.delta(Ot.delta,_t),Cn=j(_t);Fy(_t,Kt,Ot.column,$,Cn),nt.trigger.afterResize(_t,"col")}),{on:Ve.on,off:Ve.off,refreshBars:Ve.refresh,hideBars:Ve.hideBars,showBars:Ve.showBars,destroy:Ve.destroy,events:nt.registry}}},wT={only:(A,$)=>{const j=gt(A)?sr(A):A;return{parent:M(j),view:M(A),origin:M(Xu(0,0)),isResizable:$}},detached:(A,$,j)=>{const ce=()=>Tu($);return{parent:M($),view:M(A),origin:ce,isResizable:j}},body:(A,$,j)=>({parent:M($),view:M(A),origin:M(Xu(0,0)),isResizable:j})},m_=()=>{const A=zt.fromTag("div");return kl(A,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Mt(Ri(),A),A},TT=(A,$)=>A.inline?wT.body(zt.fromDom(A.getBody()),m_(),$):wT.only(zt.fromDom(A.getDoc()),$),g_=(A,$)=>{A.inline&&On($.parent())},Ps=A=>x(A)&&A.nodeName==="TABLE",cf="bar-",Gg=A=>Pt(A,"data-mce-resize")!=="false",p_=A=>{const $=hs.fromTable(A);hs.hasColumns($)||ee(Af(A),j=>{const ce=Zi(j,"width");Ya(j,"width",ce),nn(j,"width")})},n1=A=>{const $=W0(),j=W0(),ce=W0();let Me,Ve;const nt=Kn=>_c(A,Kn),Ot=()=>Hl(A)?ow():sk(),_t=Kn=>h0(Kn).columns,Kt=(Kn,Ir,jn)=>{const io=Fc(Ir,"e");if(Ve===""&&Lf(Kn),jn!==Me&&Ve!==""){Ya(Kn,"width",Ve);const $o=Ot(),os=nt(Kn),Va=Hl(A)||io?_t(Kn)-1:0;Fy(Kn,jn-Me,Va,$o,os)}else if(VO(Ve)){const $o=parseFloat(Ve.replace("%","")),os=jn*$o/Me;Ya(Kn,"width",os+"%")}My(Ve)&&p_(Kn)},Cn=()=>{j.on(Kn=>{Kn.destroy()}),ce.on(Kn=>{g_(A,Kn)})};return A.on("init",()=>{const Kn=TT(A,Gg);if(ce.set(Kn),Uc(A)&&Wl(A)){const Ir=Ot(),jn=Gx.create(Kn,Ir,nt);jn.on(),jn.events.startDrag.bind(io=>{$.set(A.selection.getRng())}),jn.events.beforeResize.bind(io=>{const $o=io.table.dom;_w(A,$o,kg($o),Ag($o),cf+io.type)}),jn.events.afterResize.bind(io=>{const $o=io.table,os=$o.dom;Qd($o),$.on(Va=>{A.selection.setRng(Va),A.focus()}),cE(A,os,kg(os),Ag(os),cf+io.type),A.undoManager.add()}),j.set(jn)}}),A.on("ObjectResizeStart",Kn=>{const Ir=Kn.target;if(Ps(Ir)){const jn=zt.fromDom(Ir);ee(A.dom.select(".mce-clonedresizable"),io=>{A.dom.addClass(io,"mce-"+kc(A)+"-columns")}),!jy(jn)&&Ul(A)?D0(jn):!Gy(jn)&&Df(A)&&Lf(jn),bx(jn)&&Rd(Kn.origin,cf)&&Lf(jn),Me=Kn.width,Ve=Li(A)?"":KC(A,Ir).getOr("")}}),A.on("ObjectResized",Kn=>{const Ir=Kn.target;if(Ps(Ir)){const jn=zt.fromDom(Ir),io=Kn.origin;Rd(io,"corner-")&&Kt(jn,io,Kn.width),Qd(jn),iv(A,jn.dom,Em)}}),A.on("SwitchMode",()=>{j.on(Kn=>{A.mode.isReadOnly()?Kn.hideBars():Kn.showBars()})}),A.on("dragstart dragend",Kn=>{j.on(Ir=>{Kn.type==="dragstart"?(Ir.hideBars(),Ir.off()):(Ir.on(),Ir.showBars())})}),A.on("remove",()=>{Cn()}),{refresh:Kn=>{j.on(Ir=>Ir.refreshBars(zt.fromDom(Kn)))},hide:()=>{j.on(Kn=>Kn.hideBars())},show:()=>{j.on(Kn=>Kn.showBars())}}},Qs=A=>{Yi(A);const $=n1(A),j=yT(A,$),ce=vx(A,$,j);return L0(A,ce),PE(A,ce),NM(A,ce),{getSelectedCells:j.getSelectedCells,clearSelectedCells:j.clearSelectedCells}},v_=A=>({table:Qs(A)});var CT=()=>{t.add("dom",v_)};CT()})();(function(){const t=Object.getPrototypeOf,e=(o,c,g)=>{var S;return g(o,c.prototype)?!0:((S=o.constructor)===null||S===void 0?void 0:S.name)===c.name},r=o=>{const c=typeof o;return o===null?"null":c==="object"&&Array.isArray(o)?"array":c==="object"&&e(o,String,(g,S)=>S.isPrototypeOf(g))?"string":c},a=o=>c=>r(c)===o,i=o=>c=>typeof c===o,d=o=>c=>o===c,f=(o,c)=>u(o)&&e(o,c,(g,S)=>t(g)===S),m=a("string"),u=a("object"),p=o=>f(o,Object),v=a("array"),y=d(null),b=i("boolean"),x=d(void 0),k=o=>o==null,C=o=>!k(o),w=i("function"),T=i("number"),R=(o,c)=>{if(v(o)){for(let g=0,S=o.length;g{},I=o=>()=>o(),V=(o,c)=>(...g)=>o(c.apply(null,g)),N=(o,c)=>g=>o(c(g)),F=o=>()=>o,z=o=>o,U=(o,c)=>o===c;function Q(o,...c){return(...g)=>{const S=c.concat(g);return o.apply(null,S)}}const B=o=>c=>!o(c),E=o=>()=>{throw new Error(o)},W=o=>o(),Y=F(!1),ie=F(!0);class L{constructor(c,g){this.tag=c,this.value=g}static some(c){return new L(!0,c)}static none(){return L.singletonNone}fold(c,g){return this.tag?g(this.value):c()}isSome(){return this.tag}isNone(){return!this.tag}map(c){return this.tag?L.some(c(this.value)):L.none()}bind(c){return this.tag?c(this.value):L.none()}exists(c){return this.tag&&c(this.value)}forall(c){return!this.tag||c(this.value)}filter(c){return!this.tag||c(this.value)?this:L.none()}getOr(c){return this.tag?this.value:c}or(c){return this.tag?this:c}getOrThunk(c){return this.tag?this.value:c()}orThunk(c){return this.tag?this:c()}getOrDie(c){if(this.tag)return this.value;throw new Error(c??"Called getOrDie on None")}static from(c){return C(c)?L.some(c):L.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(c){this.tag&&c(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}L.singletonNone=new L(!1);const me=Array.prototype.slice,ae=Array.prototype.indexOf,q=Array.prototype.push,fe=(o,c)=>ae.call(o,c),ee=(o,c)=>{const g=fe(o,c);return g===-1?L.none():L.some(g)},be=(o,c)=>fe(o,c)>-1,Te=(o,c)=>{for(let g=0,S=o.length;g{const g=[];for(let S=0;S{const g=[];for(let S=0;S{const g=o.length,S=new Array(g);for(let _=0;_{for(let g=0,S=o.length;g{for(let g=o.length-1;g>=0;g--){const S=o[g];c(S,g)}},Oe=(o,c)=>{const g=[],S=[];for(let _=0,H=o.length;_{const g=[];for(let S=0,_=o.length;S<_;S++){const H=o[S];c(H,S)&&g.push(H)}return g},Le=(o,c,g)=>(G(o,(S,_)=>{g=c(g,S,_)}),g),ke=(o,c,g)=>(pe(o,(S,_)=>{g=c(g,S,_)}),g),$e=(o,c,g)=>{for(let S=0,_=o.length;S<_;S++){const H=o[S];if(c(H,S))return L.some(H);if(g(H,S))break}return L.none()},Ze=(o,c)=>$e(o,c,Y),De=(o,c)=>{for(let g=0,S=o.length;g{const c=[];for(let g=0,S=o.length;gIe(ne(o,c)),ye=(o,c)=>{for(let g=0,S=o.length;g{const c=me.call(o,0);return c.reverse(),c},se=(o,c)=>xe(o,g=>!be(c,g)),ue=(o,c)=>{const g={};for(let S=0,_=o.length;S<_;S++){const H=o[S];g[String(H)]=c(H,S)}return g},oe=o=>[o],Se=(o,c)=>{const g=me.call(o,0);return g.sort(c),g},le=(o,c)=>c>=0&&cle(o,0),Qe=o=>le(o,o.length-1),ze=w(Array.from)?Array.from:o=>me.call(o),Xe=(o,c)=>{for(let g=0;g{const g=ct(o);for(let S=0,_=g.length;S<_;S++){const H=g[S],K=o[H];c(K,H)}},je=(o,c)=>et(o,(g,S)=>({k:S,v:c(g,S)})),et=(o,c)=>{const g={};return Ye(o,(S,_)=>{const H=c(S,_);g[H.k]=H.v}),g},yt=o=>(c,g)=>{o[g]=c},ft=(o,c,g,S)=>{Ye(o,(_,H)=>{(c(_,H)?g:S)(_,H)})},tt=(o,c)=>{const g={},S={};return ft(o,c,yt(g),yt(S)),{t:g,f:S}},wt=(o,c)=>{const g={};return ft(o,c,yt(g),M),g},Xt=(o,c)=>{const g=[];return Ye(o,(S,_)=>{g.push(c(S,_))}),g},Gt=(o,c)=>{const g=ct(o);for(let S=0,_=g.length;S<_;S++){const H=g[S],K=o[H];if(c(K,H,o))return L.some(K)}return L.none()},Nt=o=>Xt(o,z),Bt=(o,c)=>vn(o,c)?L.from(o[c]):L.none(),vn=(o,c)=>pt.call(o,c),En=(o,c)=>vn(o,c)&&o[c]!==void 0&&o[c]!==null,ln=(o,c,g=U)=>o.exists(S=>g(S,c)),Yn=(o,c,g=U)=>Xn(o,c,g).getOr(o.isNone()&&c.isNone()),an=o=>{const c=[],g=S=>{c.push(S)};for(let S=0;S{const c=[];for(let g=0;go.isSome()&&c.isSome()?L.some(g(o.getOrDie(),c.getOrDie())):L.none(),Un=(o,c,g,S)=>o.isSome()&&c.isSome()&&g.isSome()?L.some(S(o.getOrDie(),c.getOrDie(),g.getOrDie())):L.none(),Sn=(o,c)=>o!=null?L.some(c(o)):L.none(),it=(o,c)=>o?L.some(c):L.none(),ut=(o,c)=>o+c,xt=(o,c)=>o.substring(c),gt=(o,c,g)=>c===""||o.length>=c.length&&o.substr(g,g+c.length)===c,Dt=(o,c)=>dt(o,c)?xt(o,c.length):o,He=(o,c)=>mt(o,c)?o:ut(o,c),at=(o,c,g=0,S)=>{const _=o.indexOf(c,g);return _!==-1?x(S)?!0:_+c.length<=S:!1},dt=(o,c)=>gt(o,c,0),mt=(o,c)=>gt(o,c,o.length-c.length),Pt=(o=>c=>c.replace(o,""))(/^\s+|\s+$/g),dn=o=>o.length>0,nn=o=>!dn(o),Wt=o=>o.style!==void 0&&w(o.style.getPropertyValue),Rt=(o,c)=>{const S=(c||document).createElement("div");if(S.innerHTML=o,!S.hasChildNodes()||S.childNodes.length>1){const _="HTML does not have a single root node";throw console.error(_,o),new Error(_)}return nr(S.childNodes[0])},fn=(o,c)=>{const S=(c||document).createElement(o);return nr(S)},Hn=(o,c)=>{const S=(c||document).createTextNode(o);return nr(S)},nr=o=>{if(o==null)throw new Error("Node cannot be null or undefined");return{dom:o}},zt={fromHtml:Rt,fromTag:fn,fromText:Hn,fromDom:nr,fromPoint:(o,c,g)=>L.from(o.dom.elementFromPoint(c,g)).map(nr)},vr=typeof window<"u"?window:Function("return this;")(),Wn=(o,c)=>{let g=c??vr;for(let S=0;S{const g=o.split(".");return Wn(g,c)},kr=(o,c)=>Br(o,c),or=(o,c)=>{const g=kr(o,c);if(g==null)throw new Error(o+" not available on this browser");return g},jr=Object.getPrototypeOf,_r=o=>or("HTMLElement",o),Rn=o=>{const c=Br("ownerDocument.defaultView",o);return u(o)&&(_r(c).prototype.isPrototypeOf(o)||/^HTML\w*Element$/.test(jr(o).constructor.name))},xr=9,sr=11,Sr=1,ao=3,Oo=o=>o.dom.nodeName.toLowerCase(),wr=o=>o.dom.nodeType,Fe=o=>c=>wr(c)===o,Ee=o=>St(o)&&Rn(o.dom),St=Fe(Sr),Ct=Fe(ao),Lt=Fe(xr),Ft=Fe(sr),Ht=o=>c=>St(c)&&Oo(c)===o,$t=(o,c)=>{const g=o.dom;if(g.nodeType!==Sr)return!1;{const S=g;if(S.matches!==void 0)return S.matches(c);if(S.msMatchesSelector!==void 0)return S.msMatchesSelector(c);if(S.webkitMatchesSelector!==void 0)return S.webkitMatchesSelector(c);if(S.mozMatchesSelector!==void 0)return S.mozMatchesSelector(c);throw new Error("Browser lacks native selectors")}},Mt=o=>o.nodeType!==Sr&&o.nodeType!==xr&&o.nodeType!==sr||o.childElementCount===0,en=(o,c)=>{const g=c===void 0?document:c.dom;return Mt(g)?[]:ne(g.querySelectorAll(o),zt.fromDom)},un=(o,c)=>{const g=c===void 0?document:c.dom;return Mt(g)?L.none():L.from(g.querySelector(o)).map(zt.fromDom)},Jt=(o,c)=>o.dom===c.dom,rn=(o,c)=>{const g=o.dom,S=c.dom;return g===S?!1:g.contains(S)},Tn=o=>zt.fromDom(o.dom.ownerDocument),On=o=>Lt(o)?o:Tn(o),pn=o=>zt.fromDom(On(o).dom.documentElement),Jn=o=>zt.fromDom(On(o).dom.defaultView),Fn=o=>L.from(o.dom.parentNode).map(zt.fromDom),zr=o=>Fn(o),dr=o=>L.from(o.dom.parentElement).map(zt.fromDom),Hr=(o,c)=>{const g=w(c)?c:Y;let S=o.dom;const _=[];for(;S.parentNode!==null&&S.parentNode!==void 0;){const H=S.parentNode,K=zt.fromDom(H);if(_.push(K),g(K)===!0)break;S=H}return _},ar=o=>L.from(o.dom.offsetParent).map(zt.fromDom),ur=o=>L.from(o.dom.nextSibling).map(zt.fromDom),qr=o=>ne(o.dom.childNodes,zt.fromDom),to=(o,c)=>{const g=o.dom.childNodes;return L.from(g[c]).map(zt.fromDom)},ko=o=>to(o,0),Es=(o,c)=>({element:o,offset:c}),So=(o,c)=>{const g=qr(o);return g.length>0&&cFt(o)&&C(o.dom.host),ds=w(Element.prototype.attachShadow)&&w(Node.prototype.getRootNode),qs=F(ds),es=ds?o=>zt.fromDom(o.dom.getRootNode()):On,Xs=o=>Ko(o)?o:zt.fromDom(On(o).dom.body),Wa=o=>vc(o).isSome(),vc=o=>{const c=es(o);return Ko(c)?L.some(c):L.none()},ii=o=>zt.fromDom(o.dom.host),tu=o=>{if(qs()&&C(o.target)){const c=zt.fromDom(o.target);if(St(c)&&Na(c)&&o.composed&&o.composedPath){const g=o.composedPath();if(g)return Ce(g)}}return L.from(o.target)},Na=o=>C(o.dom.shadowRoot),Js=o=>{const c=Ct(o)?o.dom.parentNode:o.dom;if(c==null||c.ownerDocument===null)return!1;const g=c.ownerDocument;return vc(zt.fromDom(c)).fold(()=>g.body.contains(c),N(Js,ii))},ya=()=>ra(zt.fromDom(document)),ra=o=>{const c=o.dom.body;if(c==null)throw new Error("Body is not available yet");return zt.fromDom(c)},nu=(o,c,g)=>{if(m(g)||b(g)||T(g))o.setAttribute(c,g+"");else throw console.error("Invalid call to Attribute.set. Key ",c,":: Value ",g,":: Element ",o),new Error("Attribute value was not simple")},Dr=(o,c,g)=>{nu(o.dom,c,g)},yc=(o,c)=>{const g=o.dom;Ye(c,(S,_)=>{nu(g,_,S)})},oa=(o,c)=>{const g=o.dom.getAttribute(c);return g===null?void 0:g},Ri=(o,c)=>L.from(oa(o,c)),Md=(o,c)=>{const g=o.dom;return g&&g.hasAttribute?g.hasAttribute(c):!1},sa=(o,c)=>{o.dom.removeAttribute(c)},bu=o=>ke(o.dom.attributes,(c,g)=>(c[g.name]=g.value,c),{}),Ed=(o,c,g)=>{if(!m(g))throw console.error("Invalid call to CSS.set. Property ",c,":: Value ",g,":: Element ",o),new Error("CSS value must be a string: "+g);Wt(o)&&o.style.setProperty(c,g)},Ou=(o,c)=>{Wt(o)&&o.style.removeProperty(c)},Po=(o,c,g)=>{const S=o.dom;Ed(S,c,g)},zi=(o,c)=>{const g=o.dom;Ye(c,(S,_)=>{Ed(g,_,S)})},fr=(o,c)=>{const g=o.dom;Ye(c,(S,_)=>{S.fold(()=>{Ou(g,_)},H=>{Ed(g,_,H)})})},Qa=(o,c)=>{const g=o.dom,_=window.getComputedStyle(g).getPropertyValue(c);return _===""&&!Js(o)?xi(g,c):_},xi=(o,c)=>Wt(o)?o.style.getPropertyValue(c):"",za=(o,c)=>{const g=o.dom,S=xi(g,c);return L.from(S).filter(_=>_.length>0)},Fa=o=>{const c={},g=o.dom;if(Wt(g))for(let S=0;S{const S=zt.fromTag(o);return Po(S,c,g),za(S,c).isSome()},Zo=(o,c)=>{const g=o.dom;Ou(g,c),ln(Ri(o,"style").map(Pt),"")&&sa(o,"style")},li=o=>o.dom.offsetWidth,Ka=(o,c)=>{const g=(ve,Ae)=>{if(!T(Ae)&&!Ae.match(/^[0-9]+$/))throw new Error(o+".set accepts only positive integer values. Value was "+Ae);const Ne=ve.dom;Wt(Ne)&&(Ne.style[o]=Ae+"px")},S=ve=>{const Ae=c(ve);if(Ae<=0||Ae===null){const Ne=Qa(ve,o);return parseFloat(Ne)||0}return Ae},_=S,H=(ve,Ae)=>ke(Ae,(Ne,Ue)=>{const Je=Qa(ve,Ue),st=Je===void 0?0:parseInt(Je,10);return isNaN(st)?Ne:Ne+st},0);return{set:g,get:S,getOuter:_,aggregate:H,max:(ve,Ae,Ne)=>{const Ue=H(ve,Ne);return Ae>Ue?Ae-Ue:0}}},Gf=Ka("height",o=>{const c=o.dom;return Js(o)?c.getBoundingClientRect().height:c.offsetHeight}),Za=o=>Gf.get(o),Vu=o=>Gf.getOuter(o),zu=(o,c)=>{const g=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],S=Gf.max(o,c,g);Po(o,"max-height",S+"px")},_d=(o,c)=>({left:o,top:c,translate:(S,_)=>_d(o+S,c+_)}),Is=_d,Rd=o=>{const c=o.getBoundingClientRect();return Is(c.left,c.top)},Fc=(o,c)=>o!==void 0?o:c!==void 0?c:0,Cl=o=>{const c=o.dom.ownerDocument,g=c.body,S=c.defaultView,_=c.documentElement;if(g===o.dom)return Is(g.offsetLeft,g.offsetTop);const H=Fc(S==null?void 0:S.pageYOffset,_.scrollTop),K=Fc(S==null?void 0:S.pageXOffset,_.scrollLeft),ve=Fc(_.clientTop,g.clientTop),Ae=Fc(_.clientLeft,g.clientLeft);return mh(o).translate(K-Ae,H-ve)},mh=o=>{const c=o.dom,S=c.ownerDocument.body;return S===c?Is(S.offsetLeft,S.offsetTop):Js(o)?Rd(c):Is(0,0)},lm=Ka("width",o=>o.dom.offsetWidth),Vs=(o,c)=>lm.set(o,c),Si=o=>lm.get(o),Tf=o=>lm.getOuter(o),QS=(o,c)=>{const g=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],S=lm.max(o,c,g);Po(o,"max-width",S+"px")},Ya=o=>{let c=!1,g;return(...S)=>(c||(c=!0,g=o.apply(null,S)),g)},kl=(o,c,g,S)=>{const _=o.isiOS()&&/ipad/i.test(g)===!0,H=o.isiOS()&&!_,K=o.isiOS()||o.isAndroid(),ve=K||S("(pointer:coarse)"),Ae=_||!H&&K&&S("(min-device-width:768px)"),Ne=H||K&&!Ae,Ue=c.isSafari()&&o.isiOS()&&/safari/i.test(g)===!1,Je=!Ne&&!Ae&&!Ue;return{isiPad:F(_),isiPhone:F(H),isTablet:F(Ae),isPhone:F(Ne),isTouch:F(ve),isAndroid:o.isAndroid,isiOS:o.isiOS,isWebView:F(Ue),isDesktop:F(Je)}},Zi=(o,c)=>{for(let g=0;g{const g=Zi(o,c);if(!g)return{major:0,minor:0};const S=_=>Number(c.replace(g,"$"+_));return Zu(S(1),S(2))},Np=(o,c)=>{const g=String(c).toLowerCase();return o.length===0?xu():PO(o,g)},xu=()=>Zu(0,0),Zu=(o,c)=>({major:o,minor:c}),Ra={nu:Zu,detect:Np,unknown:xu},Su=(o,c)=>Xe(c.brands,g=>{const S=g.brand.toLowerCase();return Ze(o,_=>{var H;return S===((H=_.brand)===null||H===void 0?void 0:H.toLowerCase())}).map(_=>({current:_.name,version:Ra.nu(parseInt(g.version,10),0)}))}),Al=(o,c)=>{const g=String(c).toLowerCase();return Ze(o,S=>S.search(g))},bc=(o,c)=>Al(o,c).map(g=>{const S=Ra.detect(g.versionRegexes,c);return{current:g.name,version:S}}),Cf=(o,c)=>Al(o,c).map(g=>{const S=Ra.detect(g.versionRegexes,c);return{current:g.name,version:S}}),ci=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,kf=o=>c=>at(c,o),Bp=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:o=>at(o,"edge/")&&at(o,"chrome")&&at(o,"safari")&&at(o,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ci],search:o=>at(o,"chrome")&&!at(o,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:o=>at(o,"msie")||at(o,"trident")},{name:"Opera",versionRegexes:[ci,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:kf("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:kf("firefox")},{name:"Safari",versionRegexes:[ci,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:o=>(at(o,"safari")||at(o,"mobile/"))&&at(o,"applewebkit")}],Qp=[{name:"Windows",search:kf("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:o=>at(o,"iphone")||at(o,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:kf("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:kf("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:kf("linux"),versionRegexes:[]},{name:"Solaris",search:kf("sunos"),versionRegexes:[]},{name:"FreeBSD",search:kf("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:kf("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ly={browsers:F(Bp),oses:F(Qp)},Xv="Edge",Af="Chromium",Fp="IE",Oc="Opera",Gv="Firefox",cy="Safari",cm=()=>uy({current:void 0,version:Ra.unknown()}),uy=o=>{const c=o.current,g=o.version,S=_=>()=>c===_;return{current:c,version:g,isEdge:S(Xv),isChromium:S(Af),isIE:S(Fp),isOpera:S(Oc),isFirefox:S(Gv),isSafari:S(cy)}},um={unknown:cm,nu:uy,edge:F(Xv),chromium:F(Af),ie:F(Fp),opera:F(Oc),firefox:F(Gv),safari:F(cy)},MO="Windows",gh="iOS",EO="Android",_O="Linux",RO="macOS",fm="Solaris",fy="FreeBSD",Yt="ChromeOS",dm=()=>Hu({current:void 0,version:Ra.unknown()}),Hu=o=>{const c=o.current,g=o.version,S=_=>()=>c===_;return{current:c,version:g,isWindows:S(MO),isiOS:S(gh),isAndroid:S(EO),isMacOS:S(RO),isLinux:S(_O),isSolaris:S(fm),isFreeBSD:S(fy),isChromeOS:S(Yt)}},jv={unknown:dm,nu:Hu,windows:F(MO),ios:F(gh),android:F(EO),linux:F(_O),macos:F(RO),solaris:F(fm),freebsd:F(fy),chromeos:F(Yt)},FS={detect:(o,c,g)=>{const S=ly.browsers(),_=ly.oses(),H=c.bind(Ae=>Su(S,Ae)).orThunk(()=>bc(S,o)).fold(um.unknown,um.nu),K=Cf(_,o).fold(jv.unknown,jv.nu),ve=kl(K,H,o,g);return{browser:H,os:K,deviceType:ve}}},Gs=o=>window.matchMedia(o).matches;let tc=Ya(()=>FS.detect(navigator.userAgent,L.from(navigator.userAgentData),Gs));const jf=()=>tc(),qf=(o,c,g,S,_,H,K)=>({target:o,x:c,y:g,stop:S,prevent:_,kill:H,raw:K}),dy=o=>{const c=zt.fromDom(tu(o).getOr(o.target)),g=()=>o.stopPropagation(),S=()=>o.preventDefault(),_=V(S,g);return qf(c,o.clientX,o.clientY,g,S,_,o)},vg=(o,c)=>g=>{o(g)&&c(dy(g))},ru=(o,c,g,S,_)=>{const H=vg(g,S);return o.dom.addEventListener(c,H,_),{unbind:Q(DO,o,c,H,_)}},yg=(o,c,g,S)=>ru(o,c,g,S,!1),hy=(o,c,g,S)=>ru(o,c,g,S,!0),DO=(o,c,g,S)=>{o.dom.removeEventListener(c,g,S)},Uu=(o,c)=>{Fn(o).each(S=>{S.dom.insertBefore(c.dom,o.dom)})},zp=(o,c)=>{ur(o).fold(()=>{Fn(o).each(_=>{Vc(_,c)})},S=>{Uu(S,c)})},my=(o,c)=>{ko(o).fold(()=>{Vc(o,c)},S=>{o.dom.insertBefore(c.dom,S.dom)})},Vc=(o,c)=>{o.dom.appendChild(c.dom)},ol=(o,c,g)=>{to(o,g).fold(()=>{Vc(o,c)},S=>{Uu(S,c)})},ph=(o,c)=>{pe(c,g=>{Vc(o,g)})},bg=o=>{o.dom.textContent="",pe(qr(o),c=>{xc(c)})},xc=o=>{const c=o.dom;c.parentNode!==null&&c.parentNode.removeChild(c)},Pl=o=>{const c=o!==void 0?o.dom:document,g=c.body.scrollLeft||c.documentElement.scrollLeft,S=c.body.scrollTop||c.documentElement.scrollTop;return Is(g,S)},Wu=(o,c,g)=>{const _=(g!==void 0?g.dom:document).defaultView;_&&_.scrollTo(o,c)},$O=o=>{const c=o===void 0?window:o;return jf().browser.isFirefox()?L.none():L.from(c.visualViewport)},Zp=(o,c,g,S)=>({x:o,y:c,width:g,height:S,right:o+g,bottom:c+S}),gy=o=>{const c=o===void 0?window:o,g=c.document,S=Pl(zt.fromDom(g));return $O(c).fold(()=>{const _=c.document.documentElement,H=_.clientWidth,K=_.clientHeight;return Zp(S.left,S.top,H,K)},_=>Zp(Math.max(_.pageLeft,S.left),Math.max(_.pageTop,S.top),_.width,_.height))},qv=()=>zt.fromDom(document),Pf=(o,c)=>o.view(c).fold(F([]),S=>{const _=o.owner(S),H=Pf(o,_);return[S].concat(H)}),LO=(o,c)=>{const g=c.owner(o),S=Pf(c,g);return L.some(S)};var VS=Object.freeze({__proto__:null,view:o=>{var c;return(o.dom===document?L.none():L.from((c=o.dom.defaultView)===null||c===void 0?void 0:c.frameElement)).map(zt.fromDom)},owner:o=>Tn(o)});const Hp=o=>{const c=qv(),g=Pl(c);return LO(o,VS).fold(Q(Cl,o),_=>{const H=mh(o),K=Le(_,(ve,Ae)=>{const Ne=mh(Ae);return{left:ve.left+Ne.left,top:ve.top+Ne.top}},{left:0,top:0});return Is(K.left+H.left+g.left,K.top+H.top+g.top)})},Kv=(o,c,g)=>({point:o,width:c,height:g}),vh=(o,c,g,S)=>({x:o,y:c,width:g,height:S}),Ja=(o,c,g,S)=>({x:o,y:c,width:g,height:S,right:o+g,bottom:c+S}),ui=o=>{const c=Cl(o),g=Tf(o),S=Vu(o);return Ja(c.left,c.top,g,S)},wu=o=>{const c=Hp(o),g=Tf(o),S=Vu(o);return Ja(c.left,c.top,g,S)},py=(o,c)=>{const g=Math.max(o.x,c.x),S=Math.max(o.y,c.y),_=Math.min(o.right,c.right),H=Math.min(o.bottom,c.bottom),K=_-g,ve=H-S;return Ja(g,S,K,ve)},IO=(o,c)=>ke(c,(g,S)=>py(g,S),o),Vl=()=>gy(window);var Og=tinymce.util.Tools.resolve("tinymce.ThemeManager");const Sc=o=>{const c=H=>H(o),g=F(o),S=()=>_,_={tag:!0,inner:o,fold:(H,K)=>K(o),isValue:ie,isError:Y,map:H=>jo.value(H(o)),mapError:S,bind:c,exists:c,forall:c,getOr:g,or:S,getOrThunk:g,orThunk:S,getOrDie:g,each:H=>{H(o)},toOptional:()=>L.some(o)};return _},Mf=o=>{const c=()=>g,g={tag:!1,inner:o,fold:(S,_)=>S(o),isValue:Y,isError:ie,map:c,mapError:S=>jo.error(S(o)),bind:c,exists:Y,forall:ie,getOr:z,or:z,getOrThunk:W,orThunk:W,getOrDie:E(String(o)),each:M,toOptional:L.none};return g},jo={value:Sc,error:Mf,fromOption:(o,c)=>o.fold(()=>Mf(c),Sc)};var zc;(function(o){o[o.Error=0]="Error",o[o.Value=1]="Value"})(zc||(zc={}));const yh=(o,c,g)=>o.stype===zc.Error?c(o.serror):g(o.svalue),hm=o=>{const c=[],g=[];return pe(o,S=>{yh(S,_=>g.push(_),_=>c.push(_))}),{values:c,errors:g}},yy=(o,c)=>o.stype===zc.Error?{stype:zc.Error,serror:c(o.serror)}:o,by=(o,c)=>o.stype===zc.Value?{stype:zc.Value,svalue:c(o.svalue)}:o,nc=(o,c)=>o.stype===zc.Value?c(o.svalue):o,wi=(o,c)=>o.stype===zc.Error?c(o.serror):o,ou=o=>({stype:zc.Value,svalue:o}),Hi=o=>({stype:zc.Error,serror:o}),Ti={fromResult:o=>o.fold(Hi,ou),toResult:o=>yh(o,jo.error,jo.value),svalue:ou,partition:hm,serror:Hi,bind:nc,bindError:wi,map:by,mapError:yy,fold:yh},Ui=(o,c,g,S)=>({tag:"field",key:o,newKey:c,presence:g,prop:S}),Yu=(o,c)=>({tag:"custom",newKey:o,instantiator:c}),mm=(o,c,g)=>{switch(o.tag){case"field":return c(o.key,o.newKey,o.presence,o.prop);case"custom":return g(o.newKey,o.instantiator)}},Ci=(o,c)=>c,xg=(o,c)=>p(o)&&p(c)?Ta(o,c):c,Up=o=>(...c)=>{if(c.length===0)throw new Error("Can't merge zero objects");const g={};for(let S=0;S({tag:"required",process:{}}),Ef=o=>({tag:"defaultedThunk",process:o}),xy=o=>Ef(F(o)),Wp=()=>({tag:"option",process:{}}),hs=o=>({tag:"mergeWithThunk",process:o}),gm=o=>hs(F(o)),e0=(o,c)=>o.length>0?Ti.svalue(Ta(c,bh.apply(void 0,o))):Ti.svalue(c),Yp=o=>V(Ti.serror,Ie)(o),Sy={consolidateObj:(o,c)=>{const g=Ti.partition(o);return g.errors.length>0?Yp(g.errors):e0(g.values,c)},consolidateArr:o=>{const c=Ti.partition(o);return c.errors.length>0?Yp(c.errors):Ti.svalue(c.values)}},pm=o=>u(o)&&ct(o).length>100?" removed due to size":JSON.stringify(o,null,2),t0=o=>{const c=o.length>10?o.slice(0,10).concat([{path:[],getErrorInfo:F("... (only showing first ten failures)")}]):o;return ne(c,g=>"Failed path: ("+g.path.join(" > ")+`) +`+g.getErrorInfo())},vm=(o,c)=>Ti.serror([{path:o,getErrorInfo:c}]),Sg=(o,c,g)=>vm(o,()=>'Could not find valid *required* value for "'+c+'" in '+pm(g)),NO=(o,c)=>vm(o,()=>'Choice schema did not contain choice key: "'+c+'"'),Xu=(o,c,g)=>vm(o,()=>'The chosen schema: "'+g+'" did not exist in branches: '+pm(c)),BO=(o,c)=>vm(o,()=>"There are unsupported fields: ["+c.join(", ")+"] specified"),ym=(o,c)=>vm(o,F(c)),Tu=o=>{const c=(S,_)=>Ti.bindError(o(_),H=>ym(S,H)),g=F("val");return{extract:c,toString:g}},n0=Tu(Ti.svalue),wy=(o,c,g,S)=>Bt(c,g).fold(()=>Sg(o,g,c),S),wg=(o,c,g,S)=>{const _=Bt(o,c).getOrThunk(()=>g(o));return S(_)},Ty=(o,c,g)=>g(Bt(o,c)),Cy=(o,c,g,S)=>{const _=Bt(o,c).map(H=>H===!0?g(o):H);return S(_)},ky=(o,c,g,S,_)=>{const H=ve=>_.extract(c.concat([S]),ve),K=ve=>ve.fold(()=>Ti.svalue(L.none()),Ae=>{const Ne=_.extract(c.concat([S]),Ae);return Ti.map(Ne,L.some)});switch(o.tag){case"required":return wy(c,g,S,H);case"defaultedThunk":return wg(g,S,o.process,H);case"option":return Ty(g,S,K);case"defaultedOptionThunk":return Cy(g,S,o.process,K);case"mergeWithThunk":return wg(g,S,F({}),ve=>{const Ae=Ta(o.process(g),ve);return H(Ae)})}},r0=(o,c,g)=>{const S={},_=[];for(const H of g)mm(H,(K,ve,Ae,Ne)=>{const Ue=ky(Ae,o,c,K,Ne);Ti.fold(Ue,Je=>{_.push(...Je)},Je=>{S[ve]=Je})},(K,ve)=>{S[K]=ve(c)});return _.length>0?Ti.serror(_):Ti.svalue(S)},sl=o=>({extract:(S,_)=>o().extract(S,_),toString:()=>o().toString()}),Xp=o=>ct(wt(o,C)),ca=o=>{const c=uo(o),g=Le(o,(_,H)=>mm(H,K=>Ta(_,{[K]:!0}),F(_)),{});return{extract:(_,H)=>{const K=b(H)?[]:Xp(H),ve=xe(K,Ae=>!En(g,Ae));return ve.length===0?c.extract(_,H):BO(_,ve)},toString:c.toString}},uo=o=>({extract:(S,_)=>r0(S,_,o),toString:()=>`obj{ +`+ne(o,_=>mm(_,(H,K,ve,Ae)=>H+" -> "+Ae.toString(),(H,K)=>"state("+H+")")).join(` +`)+"}"}),Gu=o=>({extract:(S,_)=>{const H=ne(_,(K,ve)=>o.extract(S.concat(["["+ve+"]"]),K));return Sy.consolidateArr(H)},toString:()=>"array("+o.toString()+")"}),Xr=(o,c)=>{const g=c!==void 0?c:z;return{extract:(H,K)=>{const ve=[];for(const Ae of o){const Ne=Ae.extract(H,K);if(Ne.stype===zc.Value)return{stype:zc.Value,svalue:g(Ne.svalue)};ve.push(Ne)}return Sy.consolidateArr(ve)},toString:()=>"oneOf("+ne(o,H=>H.toString()).join(", ")+")"}},zl=(o,c)=>{const g=(H,K)=>Gu(Tu(o)).extract(H,K);return{extract:(H,K)=>{const ve=ct(K),Ae=g(H,ve);return Ti.bind(Ae,Ne=>{const Ue=ne(Ne,Je=>Ui(Je,Je,Ks(),c));return uo(Ue).extract(H,K)})},toString:()=>"setOf("+c.toString()+")"}},HS=(o,c)=>{const g=Ya(c);return{extract:(H,K)=>g().extract(H,K),toString:()=>g().toString()}},Dd=V(Gu,uo),vi=F(n0),$d=(o,c)=>Tu(g=>{const S=typeof g;return o(g)?Ti.svalue(g):Ti.serror(`Expected type: ${c} but got: ${S}`)}),Gp=$d(T,"number"),al=$d(m,"string"),_f=$d(b,"boolean"),bm=$d(w,"function"),ju=o=>{if(Object(o)!==o)return!0;switch({}.toString.call(o).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(o).every(c=>ju(o[c]));default:return!1}},Ay=Tu(o=>ju(o)?Ti.svalue(o):Ti.serror("Expected value to be acceptable for sending via postMessage")),o0=(o,c,g,S)=>Bt(g,S).fold(()=>Xu(o,g,S),H=>H.extract(o.concat(["branch: "+S]),c)),lr=(o,c)=>({extract:(_,H)=>Bt(H,o).fold(()=>NO(_,o),ve=>o0(_,H,c,ve)),toString:()=>"chooseOn("+o+"). Possible values: "+ct(c)}),QO=()=>Gu(n0),Ml=o=>Tu(c=>o(c).fold(Ti.serror,Ti.svalue)),Kf=(o,c)=>zl(g=>Ti.fromResult(o(g)),c),Tg=(o,c,g)=>{const S=c.extract([o],g);return Ti.mapError(S,_=>({input:g,errors:_}))},da=(o,c,g)=>Ti.toResult(Tg(o,c,g)),aa=o=>o.fold(c=>{throw new Error(Zl(c))},z),El=(o,c,g)=>aa(da(o,c,g)),Zl=o=>`Errors: +`+t0(o.errors).join(` +`)+` + +Input object: `+pm(o.input),Os=(o,c)=>lr(o,je(c,uo)),jp=(o,c)=>HS(o,c),il=Ui,ei=Yu,qp=o=>Ml(c=>be(o,c)?jo.value(c):jo.error(`Unsupported value: "${c}", choose one of "${o.join(", ")}".`)),er=o=>il(o,o,Ks(),vi()),Zc=(o,c)=>il(o,o,Ks(),c),Cg=o=>Zc(o,Gp),zs=o=>Zc(o,al),Rf=(o,c)=>il(o,o,Ks(),qp(c)),US=o=>Zc(o,_f),qu=o=>Zc(o,bm),s0=(o,c)=>il(o,o,Wp(),Tu(g=>Ti.serror("The field: "+o+" is forbidden. "+c))),su=(o,c)=>il(o,o,Ks(),uo(c)),a0=(o,c)=>il(o,o,Ks(),Dd(c)),rc=(o,c)=>il(o,o,Ks(),Gu(c)),Ws=o=>il(o,o,Wp(),vi()),au=(o,c)=>il(o,o,Wp(),c),fi=o=>au(o,Gp),ll=o=>au(o,al),Ld=(o,c)=>au(o,qp(c)),Jf=o=>au(o,bm),Id=(o,c)=>au(o,Gu(c)),wc=(o,c)=>au(o,uo(c)),ed=(o,c)=>au(o,ca(c)),Mn=(o,c)=>il(o,o,xy(c),vi()),Tc=(o,c,g)=>il(o,o,xy(c),g),td=(o,c)=>Tc(o,c,Gp),nd=(o,c)=>Tc(o,c,al),Hc=(o,c,g)=>Tc(o,c,qp(g)),Wi=(o,c)=>Tc(o,c,_f),Di=(o,c)=>Tc(o,c,bm),qC=(o,c)=>Tc(o,c,Ay),Cc=(o,c,g)=>Tc(o,c,Gu(g)),D=(o,c,g)=>Tc(o,c,uo(g)),X=o=>{let c=o;return{get:()=>c,set:_=>{c=_}}},we={generate:o=>{if(!v(o))throw new Error("cases must be an array");if(o.length===0)throw new Error("there must be at least one case");const c=[],g={};return pe(o,(S,_)=>{const H=ct(S);if(H.length!==1)throw new Error("one and only one name per case");const K=H[0],ve=S[K];if(g[K]!==void 0)throw new Error("duplicate key detected:"+K);if(K==="cata")throw new Error("cannot have a case named cata (sorry)");if(!v(ve))throw new Error("case arguments must be an array");c.push(K),g[K]=(...Ae)=>{const Ne=Ae.length;if(Ne!==ve.length)throw new Error("Wrong number of arguments to case "+K+". Expected "+ve.length+" ("+ve+"), got "+Ne);return{fold:(...Je)=>{if(Je.length!==o.length)throw new Error("Wrong number of arguments to fold. Expected "+o.length+", got "+Je.length);return Je[_].apply(null,Ae)},match:Je=>{const st=ct(Je);if(c.length!==st.length)throw new Error("Wrong number of arguments to match. Expected: "+c.join(",")+` +Actual: `+st.join(","));if(!ye(c,At=>be(st,At)))throw new Error("Not all branches were specified when using match. Specified: "+st.join(", ")+` +Required: `+c.join(", "));return Je[K].apply(null,Ae)},log:Je=>{console.log(Je,{constructors:c,constructor:K,params:Ae})}}}}),g}};we.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Pe=o=>{const c=[],g=[];return pe(o,S=>{S.fold(_=>{c.push(_)},_=>{g.push(_)})}),{errors:c,values:g}},Re=(o,c)=>{const g={};return Ye(o,(S,_)=>{be(c,_)||(g[_]=S)}),g},Ke=(o,c)=>({[o]:c}),We=o=>{const c={};return pe(o,g=>{c[g.key]=g.value}),c},rt=(o,c)=>Re(o,c),vt=(o,c)=>Ke(o,c),bt=o=>We(o),Zt=(o,c)=>o.length===0?jo.value(c):jo.value(Ta(c,bh.apply(void 0,o))),Ut=o=>jo.error(Ie(o)),gn=(o,c)=>{const g=Pe(o);return g.errors.length>0?Ut(g.errors):Zt(g.values,c)},An=o=>w(o)?o:Y,jt=(o,c,g)=>{let S=o.dom;const _=An(g);for(;S.parentNode;){S=S.parentNode;const H=zt.fromDom(S),K=c(H);if(K.isSome())return K;if(_(H))break}return L.none()},tn=(o,c,g)=>{const S=c(o),_=An(g);return S.orThunk(()=>_(o)?L.none():jt(o,c,_))},hn=(o,c)=>Jt(o.element,c.event.target),_n={can:ie,abort:Y,run:M},Pn=o=>{if(!En(o,"can")&&!En(o,"abort")&&!En(o,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(o,null,2)+" does not have can, abort, or run!");return{..._n,...o}},yn=(o,c)=>(...g)=>ke(o,(S,_)=>S&&c(_).apply(void 0,g),!0),cr=(o,c)=>(...g)=>ke(o,(S,_)=>S||c(_).apply(void 0,g),!1),Zr=o=>w(o)?{can:ie,abort:Y,run:o}:o,Jr=o=>{const c=yn(o,_=>_.can),g=cr(o,_=>_.abort);return{can:c,abort:g,run:(..._)=>{pe(o,H=>{H.run.apply(void 0,_)})}}},Ar=F,no=Ar("touchstart"),fo=Ar("touchmove"),ts=Ar("touchend"),xo=Ar("touchcancel"),go=Ar("mousedown"),js=Ar("mousemove"),ti=Ar("mouseout"),ba=Ar("mouseup"),Lr=Ar("mouseover"),Do=Ar("focusin"),ms=Ar("focusout"),_s=Ar("keydown"),Ba=Ar("keyup"),di=Ar("input"),Yi=Ar("change"),$i=Ar("click"),Uc=Ar("transitioncancel"),Ki=Ar("transitionend"),kc=Ar("transitionstart"),Hl=Ar("selectstart"),ea=o=>F("alloy."+o),Ku={tap:ea("tap")},Df=ea("focus"),Ul=ea("blur.post"),Li=ea("paste.post"),Wl=ea("receive"),Ii=ea("execute"),ta=ea("focus.item"),Ac=Ku.tap,Nd=ea("longpress"),Ju=ea("sandbox.close"),Om=ea("typeahead.cancel"),Bd=ea("system.init"),Py=ea("system.touchmove"),FO=ea("system.touchend"),Oh=ea("system.scroll"),Qd=ea("system.resize"),ef=ea("system.attached"),kg=ea("system.detached"),Ag=ea("system.dismissRequested"),KC=ea("system.repositionRequested"),VO=ea("focusmanager.shifted"),My=ea("slotcontainer.visibility"),zO=ea("system.external.element.scroll"),JC=ea("change.tab"),ZO=ea("dismiss.tab"),Ey=ea("highlight"),_y=ea("dehighlight"),ks=(o,c)=>{Ry(o,o.element,c,{})},vo=(o,c,g)=>{Ry(o,o.element,c,g)},xm=o=>{ks(o,Ii())},HO=(o,c,g)=>{Ry(o,c,g,{})},Ry=(o,c,g,S)=>{const _={target:c,...S};o.getSystem().triggerEvent(g,c,_)},EM=(o,c,g,S)=>{const _={...S,target:c};o.getSystem().triggerEvent(g,c,_)},WS=(o,c,g,S)=>{o.getSystem().triggerEvent(g,c,S.event)},Ea=o=>bt(o),YS=(o,c)=>({key:o,value:Pn({abort:c})}),XS=(o,c)=>({key:o,value:Pn({can:c})}),GS=o=>({key:o,value:Pn({run:(c,g)=>{g.event.prevent()}})}),qn=(o,c)=>({key:o,value:Pn({run:c})}),UO=(o,c,g)=>({key:o,value:Pn({run:(S,_)=>{c.apply(void 0,[S,_].concat(g))}})}),_M=o=>c=>qn(o,c),Dy=o=>c=>({key:o,value:Pn({run:(g,S)=>{hn(g,S)&&c(g,S)}})}),RM=(o,c)=>qn(o,(g,S)=>{g.getSystem().getByUid(c).each(_=>{WS(_,_.element,o,S)})}),i0=(o,c,g)=>{const S=c.partUids[g];return RM(o,S)},jS=(o,c)=>qn(o,(g,S)=>{const _=S.event,H=g.getSystem().getByDom(_.target).getOrThunk(()=>tn(_.target,ve=>g.getSystem().getByDom(ve).toOptional(),Y).getOr(g));c(g,H,S)}),Sm=o=>qn(o,(c,g)=>{g.cut()}),DM=o=>qn(o,(c,g)=>{g.stop()}),xh=(o,c)=>Dy(o)(c),Ca=Dy(ef()),Sh=Dy(kg()),qS=Dy(Bd()),rd=_M(Ii()),wm=(o,c)=>{const S=(c||document).createElement("div");return S.innerHTML=o,qr(zt.fromDom(S))},KS=o=>o.dom.innerHTML,Kp=(o,c)=>{const S=Tn(o).dom,_=zt.fromDom(S.createDocumentFragment()),H=wm(c,S);ph(_,H),bg(o),Vc(o,_)},ek=o=>{const c=zt.fromTag("div"),g=zt.fromDom(o.dom.cloneNode(!0));return Vc(c,g),KS(c)},WO=(o,c)=>zt.fromDom(o.dom.cloneNode(c)),JS=o=>WO(o,!1),$M=o=>WO(o,!0),ew=o=>{if(Ko(o))return"#shadow-root";{const c=JS(o);return ek(c)}},wh=o=>ew(o),j$=(o,c,g)=>Jt(c,o.element)&&!Jt(c,g),tw=Ea([XS(Df(),(o,c)=>{const g=c.event,S=g.originator,_=g.target;return j$(o,S,_)?(console.warn(Df()+` did not get interpreted by the desired target. +Originator: `+wh(S)+` +Target: `+wh(_)+` +Check the `+Df()+" event handlers"),!1):!0})]);var Pg=Object.freeze({__proto__:null,events:tw});let Yl=0;const Kr=o=>{const g=new Date().getTime(),S=Math.floor(Math.random()*1e9);return Yl++,o+"_"+S+Yl+String(g)},LM=F("alloy-id-"),nw=F("data-alloy-id"),IM=LM(),tk=nw(),Jp=(o,c)=>{const g=Kr(IM+o);return l0(c,g),g},l0=(o,c)=>{Object.defineProperty(o.dom,tk,{value:c,writable:!0})},$y=o=>{const c=St(o)?o.dom[tk]:null;return L.from(c)},c0=o=>Kr(o),YO=z,Tm=o=>{const c=_=>`The component must be in a context to execute: ${_}`+(o?` +`+wh(o().element)+" is not in context.":""),g=_=>()=>{throw new Error(c(_))},S=_=>()=>{console.warn(c(_))};return{debugInfo:F("fake"),triggerEvent:S("triggerEvent"),triggerFocus:S("triggerFocus"),triggerEscape:S("triggerEscape"),broadcast:S("broadcast"),broadcastOn:S("broadcastOn"),broadcastEvent:S("broadcastEvent"),build:g("build"),buildOrPatch:g("buildOrPatch"),addToWorld:g("addToWorld"),removeFromWorld:g("removeFromWorld"),addToGui:g("addToGui"),removeFromGui:g("removeFromGui"),getByUid:g("getByUid"),getByDom:g("getByDom"),isConnected:Y}},Fd=Tm(),Ly=(o,c,g)=>{const S=g.toString(),_=S.indexOf(")")+1,H=S.indexOf("("),K=S.substring(H+1,_-1).split(/,\s*/);return o.toFunctionAnnotation=()=>({name:c,parameters:$f(K.slice(0,1).concat(K.slice(3)))}),o},$f=o=>ne(o,c=>mt(c,"/*")?c.substring(0,c.length-2):c),XO=(o,c)=>{const g=o.toString(),S=g.indexOf(")")+1,_=g.indexOf("("),H=g.substring(_+1,S-1).split(/,\s*/);return o.toFunctionAnnotation=()=>({name:c,parameters:$f(H)}),o},nk=(o,c)=>{const g=c.toString(),S=g.indexOf(")")+1,_=g.indexOf("("),H=g.substring(_+1,S-1).split(/,\s*/);return o.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:$f(H.slice(1))}),o},u0=Kr("alloy-premade"),Cm=o=>(Object.defineProperty(o.element.dom,u0,{value:o.uid,writable:!0}),vt(u0,o)),NM=o=>vn(o.dom,u0),f0=o=>Bt(o,u0),ev=o=>nk((c,...g)=>o(c.getApis(),c,...g),o),od={init:()=>Cu({readState:F("No State required")})},Cu=o=>o,BM=(o,c)=>{const g=ne(c,_=>wc(_.name(),[er("config"),Mn("state",od)])),S=da("component.behaviours",uo(g),o.behaviours).fold(_=>{throw new Error(Zl(_)+` +Complete spec: +`+JSON.stringify(o,null,2))},z);return{list:c,data:je(S,_=>{const H=_.map(K=>({config:K.config,state:K.state.init(K.config)}));return F(H)})}},rk=o=>o.list,ok=o=>o.data,rw=(o,c)=>{const g={};return Ye(o,(S,_)=>{Ye(S,(H,K)=>{const ve=Bt(g,K).getOr([]);g[K]=ve.concat([c(_,H)])})}),g},ku=o=>({classes:x(o.classes)?[]:o.classes,attributes:x(o.attributes)?{}:o.attributes,styles:x(o.styles)?{}:o.styles}),d0=(o,c)=>({...o,attributes:{...o.attributes,...c.attributes},styles:{...o.styles,...c.styles},classes:o.classes.concat(c.classes)}),GO=(o,c,g,S)=>{const _={...c};pe(g,Ue=>{_[Ue.name()]=Ue.exhibit(o,S)});const H=rw(_,(Ue,Je)=>({name:Ue,modification:Je})),K=Ue=>Le(Ue,(Je,st)=>({...st.modification,...Je}),{}),ve=Le(H.classes,(Ue,Je)=>Je.modification.concat(Ue),[]),Ae=K(H.attributes),Ne=K(H.styles);return ku({classes:ve,attributes:Ae,styles:Ne})},jO=(o,c,g,S)=>{try{const _=Se(g,(H,K)=>{const ve=H[c],Ae=K[c],Ne=S.indexOf(ve),Ue=S.indexOf(Ae);if(Ne===-1)throw new Error("The ordering for "+o+" does not have an entry for "+ve+`. +Order specified: `+JSON.stringify(S,null,2));if(Ue===-1)throw new Error("The ordering for "+o+" does not have an entry for "+Ae+`. +Order specified: `+JSON.stringify(S,null,2));return Ne({handler:o,purpose:c}),sk=(o,c)=>({cHandler:o,purpose:c}),ow=(o,c)=>sk(Q.apply(void 0,[o.handler].concat(c)),o.purpose),h0=o=>o.cHandler,m0=(o,c)=>({name:o,handler:c}),qO=(o,c)=>{const g={};return pe(o,S=>{g[S.name()]=S.handlers(c)}),g},FM=(o,c,g)=>{const S={...g,...qO(c,o)};return rw(S,m0)},KO=(o,c,g,S)=>{const _=FM(o,g,S);return sw(_,c)},g0=o=>{const c=Zr(o);return(g,S,..._)=>{const H=[g,S].concat(_);c.abort.apply(void 0,H)?S.stop():c.can.apply(void 0,H)&&c.run.apply(void 0,H)}},VM=(o,c)=>jo.error(["The event ("+o+`) has more than one behaviour that listens to it. +When this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]). +The behaviours that can trigger it are: `+JSON.stringify(ne(c,g=>g.name),null,2)]),Iy=(o,c,g)=>{const S=c[g];return S?jO("Event: "+g,"name",o,S).map(_=>{const H=ne(_,K=>K.handler);return Jr(H)}):VM(g,o)},sw=(o,c)=>{const g=Xt(o,(S,_)=>(S.length===1?jo.value(S[0].handler):Iy(S,c,_)).map(K=>{const ve=g0(K),Ae=S.length>1?xe(c[_],Ne=>Te(S,Ue=>Ue.name===Ne)).join(" > "):S[0].name;return vt(_,QM(ve,Ae))}));return gn(g,{})},Au="alloy.base.behaviour",JO=uo([il("dom","dom",Ks(),uo([er("tag"),Mn("styles",{}),Mn("classes",[]),Mn("attributes",{}),Ws("value"),Ws("innerHtml")])),er("components"),er("uid"),Mn("events",{}),Mn("apis",{}),il("eventOrder","eventOrder",gm({[Ii()]:["disabling",Au,"toggling","typeaheadevents"],[Df()]:[Au,"focusing","keying"],[Bd()]:[Au,"disabling","toggling","representing"],[di()]:[Au,"representing","streaming","invalidating"],[kg()]:[Au,"representing","item-events","tooltipping"],[go()]:["focusing",Au,"item-type-events"],[no()]:["focusing",Au,"item-type-events"],[Lr()]:["item-type-events","tooltipping"],[Wl()]:["receiving","reflecting","tooltipping"]}),vi()),Ws("domModification")]),ak=o=>da("custom.definition",JO,o),ex=o=>({...o.dom,uid:o.uid,domChildren:ne(o.components,c=>c.element)}),q$=o=>o.domModification.fold(()=>ku({}),ku),tx=o=>o.events,Mg=(o,c)=>{const g=oa(o,c);return g===void 0||g===""?[]:g.split(" ")},Th=(o,c,g)=>{const _=Mg(o,c).concat([g]);return Dr(o,c,_.join(" ")),!0},aw=(o,c,g)=>{const S=xe(Mg(o,c),_=>_!==g);return S.length>0?Dr(o,c,S.join(" ")):sa(o,c),!1},p0=o=>o.dom.classList!==void 0,nx=o=>Mg(o,"class"),ik=(o,c)=>Th(o,"class",c),Da=(o,c)=>aw(o,"class",c),zM=(o,c)=>be(nx(o),c)?Da(o,c):ik(o,c),ki=(o,c)=>{p0(o)?o.dom.classList.add(c):ik(o,c)},lk=o=>{(p0(o)?o.dom.classList:nx(o)).length===0&&sa(o,"class")},Xa=(o,c)=>{p0(o)?o.dom.classList.remove(c):Da(o,c),lk(o)},v0=(o,c)=>{const g=p0(o)?o.dom.classList.toggle(c):zM(o,c);return lk(o),g},Ji=(o,c)=>p0(o)&&o.dom.classList.contains(c),ni=(o,c)=>{pe(c,g=>{ki(o,g)})},tf=(o,c)=>{pe(c,g=>{Xa(o,g)})},iw=(o,c)=>{pe(c,g=>{v0(o,g)})},Xl=(o,c)=>ye(c,g=>Ji(o,g)),Ny=o=>{const c=o.dom.classList,g=new Array(c.length);for(let S=0;Sp0(o)?Ny(o):nx(o),Ch=o=>o.dom.value,b0=(o,c)=>{if(c===void 0)throw new Error("Value.set was undefined");o.dom.value=c},Eg=(o,c,g)=>to(o,c).map(_=>{if(g.exists(K=>!Jt(K,_))){const K=g.map(Oo).getOr("span"),ve=zt.fromTag(K);return Uu(_,ve),ve}else return _}),km=(o,c,g)=>{g.fold(()=>Vc(o,c),S=>{Jt(S,c)||(Uu(S,c),xc(S))})},ZM=(o,c,g)=>{const S=ne(c,g),_=qr(o);return pe(_.slice(S.length),xc),S},ck=(o,c,g,S)=>{const _=to(o,c),H=S(g,_),K=Eg(o,c,_);return km(o,H.element,K),H},K$=(o,c,g)=>ZM(o,c,(S,_)=>ck(o,_,S,g)),J$=(o,c)=>ZM(o,c,(g,S)=>{const _=to(o,S);return km(o,g,_),g}),sd=(o,c)=>{const g=ct(o),S=ct(c),_=se(S,g),H=tt(o,(K,ve)=>!vn(c,ve)||K!==c[ve]).t;return{toRemove:_,toSet:H}},Pc=(o,c)=>{const{class:g,style:S,..._}=bu(c),{toSet:H,toRemove:K}=sd(o.attributes,_),ve=()=>{pe(K,kn=>sa(c,kn)),yc(c,H)},Ae=Fa(c),{toSet:Ne,toRemove:Ue}=sd(o.styles,Ae),Je=()=>{pe(Ue,kn=>Zo(c,kn)),zi(c,Ne)},st=y0(c),ht=se(st,o.classes),At=se(o.classes,st),qt=()=>{ni(c,At),tf(c,ht)},Dn=kn=>{Kp(c,kn)},mn=()=>{const kn=o.domChildren;J$(c,kn)},on=()=>{const kn=c,Zn=o.value.getOrUndefined();Zn!==Ch(kn)&&b0(kn,Zn??"")};return ve(),qt(),Je(),o.innerHtml.fold(mn,Dn),on(),c},HM=o=>{const c=zt.fromTag(o.tag);yc(c,o.attributes),ni(c,o.classes),zi(c,o.styles),o.innerHtml.each(S=>Kp(c,S));const g=o.domChildren;return ph(c,g),o.value.each(S=>{b0(c,S)}),c},UM=(o,c)=>{try{const g=Pc(o,c);return L.some(g)}catch{return L.none()}},_g=o=>o.innerHtml.isSome()&&o.domChildren.length>0,By=(o,c)=>{const g=_=>Oo(_)===o.tag&&!_g(o)&&!NM(_),S=c.filter(g).bind(_=>UM(o,_)).getOrThunk(()=>HM(o));return l0(S,o.uid),S},rx=o=>{const c=Bt(o,"behaviours").getOr({});return re(ct(c),g=>{const S=c[g];return C(S)?[S.me]:[]})},ox=(o,c)=>BM(o,c),kh=o=>{const c=rx(o);return ox(o,c)},O0=(o,c,g)=>{const S=ex(o),_=q$(o),H={"alloy.base.modification":_},K=c.length>0?GO(g,H,c,S):_;return d0(S,K)},x0=(o,c,g)=>{const S={"alloy.base.behaviour":tx(o)};return KO(g,o.eventOrder,c,S).getOrDie()},S0=(o,c)=>{const g=()=>kn,S=X(Fd),_=aa(ak(o)),H=kh(o),K=rk(H),ve=ok(H),Ae=O0(_,K,ve),Ne=By(Ae,c),Ue=x0(_,K,ve),Je=X(_.components),st=Zn=>{S.set(Zn)},ht=()=>{S.set(Tm(g))},At=()=>{const Zn=qr(Ne),mr=re(Zn,Gn=>S.get().getByDom(Gn).fold(()=>[],oe));Je.set(mr)},qt=Zn=>{const mr=ve;return(w(mr[Zn.name()])?mr[Zn.name()]:()=>{throw new Error("Could not find "+Zn.name()+" in "+JSON.stringify(o,null,2))})()},Dn=Zn=>w(ve[Zn.name()]),mn=()=>_.apis,on=Zn=>ve[Zn]().map(mr=>mr.state.readState()).getOr("not enabled"),kn={uid:o.uid,getSystem:S.get,config:qt,hasConfigured:Dn,spec:o,readState:on,getApis:mn,connect:st,disconnect:ht,element:Ne,syncComponents:At,components:Je.get,events:Ue};return kn},tv=(o,c)=>{const g=Bt(o,"components").getOr([]);return c.fold(()=>ne(g,oc),S=>ne(g,(_,H)=>sx(_,to(S,H))))},uk=(o,c)=>{const{events:g,...S}=YO(o),_=tv(S,c),H={...S,events:{...Pg,...g},components:_};return jo.value(S0(H,c))},yi=o=>{const c=zt.fromText(o);return fk({element:c})},fk=o=>{const c=El("external.component",ca([er("element"),Ws("uid")]),o),g=X(Tm()),S=ve=>{g.set(ve)},_=()=>{g.set(Tm(()=>K))},H=c.uid.getOrThunk(()=>c0("external"));l0(c.element,H);const K={uid:H,getSystem:g.get,config:L.none,hasConfigured:Y,connect:S,disconnect:_,getApis:()=>({}),element:c.element,spec:o,readState:F("No state"),syncComponents:M,components:F([]),events:{}};return Cm(K)},w0=c0,dk=o=>vn(o,"uid"),sx=(o,c)=>f0(o).getOrThunk(()=>{const g=dk(o)?o:{uid:w0(""),...o};return uk(g,c).getOrDie()}),oc=o=>sx(o,L.none()),nf=Cm;var hk=(o,c,g,S,_)=>o(g,S)?L.some(g):w(_)&&_(g)?L.none():c(g,S,_);const ax=(o,c,g)=>{let S=o.dom;const _=w(g)?g:Y;for(;S.parentNode;){S=S.parentNode;const H=zt.fromDom(S);if(c(H))return L.some(H);if(_(H))break}return L.none()},nv=(o,c,g)=>hk((_,H)=>H(_),ax,o,c,g),WM=(o,c)=>{const g=_=>c(zt.fromDom(_));return Ze(o.dom.childNodes,g).map(zt.fromDom)},mk=(o,c)=>{const g=S=>{for(let _=0;_nv(o,c,g).isSome(),Pu=(o,c,g)=>ax(o,S=>$t(S,c),g),ix=(o,c)=>WM(o,g=>$t(g,c)),Ai=(o,c)=>un(c,o),Vd=(o,c,g)=>hk((_,H)=>$t(_,H),Pu,o,c,g),T0="aria-controls",Rg=o=>nv(o,g=>{if(!St(g))return!1;const S=oa(g,"id");return S!==void 0&&S.indexOf(T0)>-1}).bind(g=>{const S=oa(g,"id"),_=es(g);return Ai(_,`[${T0}="${S}"]`)}),rv=()=>{const o=Kr(T0);return{id:o,link:S=>{Dr(S,T0,o)},unlink:S=>{sa(S,T0)}}},ov=(o,c)=>Rg(c).exists(g=>Am(o,g)),Am=(o,c)=>lw(c,g=>Jt(g,o.element),Y)||ov(o,c),gk="unknown";var sv;(function(o){o[o.STOP=0]="STOP",o[o.NORMAL=1]="NORMAL",o[o.LOGGING=2]="LOGGING"})(sv||(sv={}));const Dg=X({}),av=(o,c)=>{const g=[],S=new Date().getTime();return{logEventCut:(_,H,K)=>{g.push({outcome:"cut",target:H,purpose:K})},logEventStopped:(_,H,K)=>{g.push({outcome:"stopped",target:H,purpose:K})},logNoParent:(_,H,K)=>{g.push({outcome:"no-parent",target:H,purpose:K})},logEventNoHandlers:(_,H)=>{g.push({outcome:"no-handlers-left",target:H})},logEventResponse:(_,H,K)=>{g.push({outcome:"response",purpose:K,target:H})},write:()=>{const _=new Date().getTime();be(["mousemove","mouseover","mouseout",Bd()],o)||console.log(o,{event:o,time:_-S,target:c.dom,sequence:ne(g,H=>be(["cut","stopped","response"],H.outcome)?"{"+H.purpose+"} "+H.outcome+" at ("+wh(H.target)+")":H.outcome)})}}},pk=(o,c,g)=>{switch(Bt(Dg.get(),o).orThunk(()=>{const _=ct(Dg.get());return Xe(_,H=>o.indexOf(H)>-1?L.some(Dg.get()[H]):L.none())}).getOr(sv.NORMAL)){case sv.NORMAL:return g(uw());case sv.LOGGING:{const _=av(o,c),H=g(_);return _.write(),H}case sv.STOP:return!0}},YM=["alloy/data/Fields","alloy/debugging/Debugging"],cw=()=>{const o=new Error;if(o.stack!==void 0){const c=o.stack.split(` +`);return Ze(c,g=>g.indexOf("alloy")>0&&!Te(YM,S=>g.indexOf(S)>-1)).getOr(gk)}else return gk},XM={logEventCut:M,logEventStopped:M,logNoParent:M,logEventNoHandlers:M,logEventResponse:M,write:M},lx=(o,c,g)=>pk(o,c,g),uw=F(XM),Mu=F([er("menu"),er("selectedMenu")]),vk=F([er("item"),er("selectedItem")]);F(uo(vk().concat(Mu())));const C0=F(uo(vk())),yk=su("initSize",[er("numColumns"),er("numRows")]),GM=()=>Zc("markers",C0()),Qy=()=>su("markers",[er("backgroundMenu")].concat(Mu()).concat(vk())),$g=o=>su("markers",ne(o,er)),cx=(o,c,g)=>(cw(),il(c,c,g,Ml(S=>jo.value((..._)=>S.apply(void 0,_))))),Rs=o=>cx("onHandler",o,xy(M)),Eu=o=>cx("onKeyboardHandler",o,xy(L.none)),zd=o=>cx("onHandler",o,Ks()),fw=o=>cx("onKeyboardHandler",o,Ks()),ha=(o,c)=>ei(o,F(c)),Fy=o=>ei(o,z),dw=F(yk),cl=(o,c,g,S,_,H,K,ve=!1)=>({x:o,y:c,bubble:g,direction:S,placement:_,restriction:H,label:`${K}-${_}`,alwaysFit:ve}),Ah=we.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Lg=(o,c,g,S,_,H,K,ve,Ae)=>o.fold(c,g,S,_,H,K,ve,Ae),hw=(o,c,g,S)=>o.fold(c,c,S,S,c,S,g,g),ux=(o,c,g,S)=>o.fold(c,S,c,S,g,g,c,S),Vy=Ah.southeast,mw=Ah.southwest,fx=Ah.northeast,Ph=Ah.northwest,Pm=Ah.south,jM=Ah.north,Nn=Ah.east,zy=Ah.west,k0=(o,c,g,S)=>{const _=o+c;return _>S?g:_Math.min(Math.max(o,c),g),gw=(o,c)=>{switch(c){case 1:return o.x;case 0:return o.x+o.width;case 2:return o.y;case 3:return o.y+o.height}},Ha=(o,c)=>ue(["left","right","top","bottom"],g=>Bt(c,g).map(S=>gw(o,S))),dx=(o,c,g)=>{const S=(Ae,Ne)=>c[Ae].map(Ue=>{const Je=Ae==="top"||Ae==="bottom",st=Je?g.top:g.left,At=(Ae==="left"||Ae==="top"?Math.max:Math.min)(Ue,Ne)+st;return Je?rf(At,o.y,o.bottom):rf(At,o.x,o.right)}).getOr(Ne),_=S("left",o.x),H=S("top",o.y),K=S("right",o.right),ve=S("bottom",o.bottom);return Ja(_,H,K-_,ve-H)},Mm="layout",pw=o=>o.x,hx=(o,c)=>o.x+o.width/2-c.width/2,vw=(o,c)=>o.x+o.width-c.width,Zy=(o,c)=>o.y-c.height,A0=o=>o.y+o.height,yw=(o,c)=>o.y+o.height/2-c.height/2,qM=o=>o.x+o.width,Wc=(o,c)=>o.x-c.width,ul=(o,c,g)=>cl(pw(o),A0(o),g.southeast(),Vy(),"southeast",Ha(o,{left:1,top:3}),Mm),Gl=(o,c,g)=>cl(vw(o,c),A0(o),g.southwest(),mw(),"southwest",Ha(o,{right:0,top:3}),Mm),Yc=(o,c,g)=>cl(pw(o),Zy(o,c),g.northeast(),fx(),"northeast",Ha(o,{left:1,bottom:2}),Mm),sc=(o,c,g)=>cl(vw(o,c),Zy(o,c),g.northwest(),Ph(),"northwest",Ha(o,{right:0,bottom:2}),Mm),Mc=(o,c,g)=>cl(hx(o,c),Zy(o,c),g.north(),jM(),"north",Ha(o,{bottom:2}),Mm),fl=(o,c,g)=>cl(hx(o,c),A0(o),g.south(),Pm(),"south",Ha(o,{top:3}),Mm),bw=(o,c,g)=>cl(qM(o),yw(o,c),g.east(),Nn(),"east",Ha(o,{left:0}),Mm),Hy=(o,c,g)=>cl(Wc(o,c),yw(o,c),g.west(),zy(),"west",Ha(o,{right:1}),Mm),Ow=()=>[ul,Gl,Yc,sc,fl,Mc,bw,Hy],Uy=()=>[Gl,ul,sc,Yc,fl,Mc,bw,Hy],xw=()=>[Yc,sc,ul,Gl,Mc,fl],bk=()=>[sc,Yc,Gl,ul,Mc,fl],mx=()=>[ul,Gl,Yc,sc,fl,Mc],Sw=()=>[Gl,ul,sc,Yc,fl,Mc],KM=(o,c)=>c.universal?o:xe(o,g=>be(c.channels,g));var Ok=Object.freeze({__proto__:null,events:o=>Ea([qn(Wl(),(c,g)=>{const S=o.channels,_=ct(S),H=g,K=KM(_,H);pe(K,ve=>{const Ae=S[ve],Ne=Ae.schema,Ue=El("channel["+ve+`] data +Receiver: `+wh(c.element),Ne,H.data);Ae.onReceive(c,Ue)})})])}),eE=[Zc("channels",Kf(jo.value,ca([zd("onReceive"),Mn("schema",vi())])))];const P0=(o,c,g)=>rd(S=>{g(S,o,c)}),gx=(o,c,g)=>qS((S,_)=>{g(S,o,c)}),xk=(o,c,g,S,_,H)=>{const K=ca(o),ve=wc(c,[ed("config",o)]);return Zd(K,ve,c,g,S,_,H)},e9=(o,c,g,S,_,H)=>{const K=o,ve=wc(c,[au("config",o)]);return Zd(K,ve,c,g,S,_,H)},iu=(o,c,g)=>Ly((_,...H)=>{const K=[_].concat(H);return _.config({name:F(o)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+o+". Using API: "+g)},ve=>{const Ae=Array.prototype.slice.call(K,1);return c.apply(void 0,[_,ve.config,ve.state].concat(Ae))})},g,c),t9=o=>({key:o,value:void 0}),Zd=(o,c,g,S,_,H,K)=>{const ve=Je=>En(Je,g)?Je[g]():L.none(),Ae=je(_,(Je,st)=>iu(g,Je,st)),Ue={...je(H,(Je,st)=>XO(Je,st)),...Ae,revoke:Q(t9,g),config:Je=>{const st=El(g+"-config",o,Je);return{key:g,value:{config:st,me:Ue,configAsRaw:Ya(()=>El(g+"-config",o,Je)),initialConfig:Je,state:K}}},schema:F(c),exhibit:(Je,st)=>Xn(ve(Je),Bt(S,"exhibit"),(ht,At)=>At(st,ht.config,ht.state)).getOrThunk(()=>ku({})),name:F(g),handlers:Je=>ve(Je).map(st=>Bt(S,"events").getOr(()=>({}))(st.config,st.state)).getOr({})};return Ue},pr=o=>bt(o),ww=ca([er("fields"),er("name"),Mn("active",{}),Mn("apis",{}),Mn("state",od),Mn("extra",{})]),dl=o=>{const c=El("Creating behaviour: "+o.name,ww,o);return xk(c.fields,c.name,c.active,c.apis,c.extra,c.state)},Sk=ca([er("branchKey"),er("branches"),er("name"),Mn("active",{}),Mn("apis",{}),Mn("state",od),Mn("extra",{})]),px=o=>{const c=El("Creating behaviour: "+o.name,Sk,o);return e9(Os(c.branchKey,c.branches),c.name,c.active,c.apis,c.extra,c.state)},Tw=F(void 0),lu=dl({fields:eE,name:"receiving",active:Ok});var wk=Object.freeze({__proto__:null,exhibit:(o,c)=>ku({classes:[],styles:c.useFixed()?{}:{position:"relative"}})});const cu=(o,c=!1)=>o.dom.focus({preventScroll:c}),M0=o=>o.dom.blur(),Wy=o=>{const c=es(o).dom;return o.dom===c.activeElement},Mh=(o=qv())=>L.from(o.dom.activeElement).map(zt.fromDom),ad=o=>Mh(es(o)).filter(c=>o.dom.contains(c.dom)),Ur=(o,c)=>{const g=es(c),S=Mh(g).bind(H=>{const K=ve=>Jt(H,ve);return K(c)?L.some(c):mk(c,K)}),_=o(c);return S.each(H=>{Mh(g).filter(K=>Jt(K,H)).fold(()=>{cu(H)},M)}),_},of=(o,c,g,S,_)=>{const H=K=>K+"px";return{position:o,left:c.map(H),top:g.map(H),right:S.map(H),bottom:_.map(H)}},Tk=o=>({...o,position:L.some(o.position)}),Ck=(o,c)=>{fr(o,Tk(c))},Cw=we.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),kk=(o,c,g,S,_,H)=>{const K=c.rect,ve=K.x-g,Ae=K.y-S,Ne=K.width,Ue=K.height,Je=_-(ve+Ne),st=H-(Ae+Ue),ht=L.some(ve),At=L.some(Ae),qt=L.some(Je),Dn=L.some(st),mn=L.none();return Lg(c.direction,()=>of(o,ht,At,mn,mn),()=>of(o,mn,At,qt,mn),()=>of(o,ht,mn,mn,Dn),()=>of(o,mn,mn,qt,Dn),()=>of(o,ht,At,mn,mn),()=>of(o,ht,mn,mn,Dn),()=>of(o,ht,At,mn,mn),()=>of(o,mn,At,qt,mn))},kw=(o,c)=>o.fold(()=>{const g=c.rect;return of("absolute",L.some(g.x),L.some(g.y),L.none(),L.none())},(g,S,_,H)=>kk("absolute",c,g,S,_,H),(g,S,_,H)=>kk("fixed",c,g,S,_,H)),Aw=(o,c)=>{const g=Q(Hp,c),S=o.fold(g,g,()=>{const K=Pl();return Hp(c).translate(-K.left,-K.top)}),_=Tf(c),H=Vu(c);return Ja(S.left,S.top,_,H)},nE=(o,c)=>c.fold(()=>o.fold(Vl,Vl,Ja),g=>o.fold(F(g),F(g),()=>{const S=Pw(o,g.x,g.y);return Ja(S.left,S.top,g.width,g.height)})),Pw=(o,c,g)=>{const S=Is(c,g),_=()=>{const H=Pl();return S.translate(-H.left,-H.top)};return o.fold(F(S),F(S),_)},rE=(o,c,g,S)=>o.fold(c,g,S);Cw.none;const Ec=Cw.relative,Yy=Cw.fixed,oE=(o,c)=>({anchorBox:o,origin:c}),sE=(o,c)=>oE(o,c),Mw="data-alloy-placement",aE=(o,c)=>{Dr(o,Mw,c)},Ak=o=>Ri(o,Mw),Pk=o=>sa(o,Mw),Xy=we.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Mk=(o,c)=>{const{x:g,y:S,right:_,bottom:H}=c,{x:K,y:ve,right:Ae,bottom:Ne,width:Ue,height:Je}=o,st=K>=g&&K<=_,ht=ve>=S&&ve<=H,At=st&&ht,qt=Ae<=_&&Ae>=g,Dn=Ne<=H&&Ne>=S,mn=qt&&Dn,on=Math.min(Ue,K>=g?_-K:Ae-g),kn=Math.min(Je,ve>=S?H-ve:Ne-S);return{originInBounds:At,sizeInBounds:mn,visibleW:on,visibleH:kn}},Ew=(o,c)=>{const{x:g,y:S,right:_,bottom:H}=c,{x:K,y:ve,width:Ae,height:Ne}=o,Ue=Math.max(g,_-Ae),Je=Math.max(S,H-Ne),st=rf(K,g,Ue),ht=rf(ve,S,Je),At=Math.min(st+Ae,_)-st,qt=Math.min(ht+Ne,H)-ht;return Ja(st,ht,At,qt)},iv=(o,c,g)=>{const S=F(c.bottom-g.y),_=F(g.bottom-c.y),H=hw(o,_,_,S),K=F(c.right-g.x),ve=F(g.right-c.x);return{maxWidth:ux(o,ve,ve,K),maxHeight:H}},iE=(o,c,g,S)=>{const _=o.bubble,H=_.offset,K=dx(S,o.restriction,H),ve=o.x+H.left,Ae=o.y+H.top,Ne=Ja(ve,Ae,c,g),{originInBounds:Ue,sizeInBounds:Je,visibleW:st,visibleH:ht}=Mk(Ne,K),At=Ue&&Je,qt=At?Ne:Ew(Ne,K),Dn=qt.width>0&&qt.height>0,{maxWidth:mn,maxHeight:on}=iv(o.direction,qt,S),kn={rect:qt,maxHeight:on,maxWidth:mn,direction:o.direction,placement:o.placement,classes:{on:_.classesOn,off:_.classesOff},layout:o.label,testY:Ae};return At||o.alwaysFit?Xy.fit(kn):Xy.nofit(kn,st,ht,Dn)},lE=(o,c,g,S,_,H)=>{const K=S.width,ve=S.height,Ae=(Ue,Je,st,ht,At)=>{const qt=Ue(g,S,_,o,H),Dn=iE(qt,K,ve,H);return Dn.fold(F(Dn),(mn,on,kn,Zn)=>(At===Zn?kn>ht||on>st:!At&&Zn)?Dn:Xy.nofit(Je,st,ht,At))};return ke(c,(Ue,Je)=>{const st=Q(Ae,Je);return Ue.fold(F(Ue),st)},Xy.nofit({rect:g,maxHeight:S.height,maxWidth:S.width,direction:Vy(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:g.y},-1,-1,!1)).fold(z,z)},_w=o=>{const c=X(L.none()),g=()=>c.get().each(o);return{clear:()=>{g(),c.set(L.none())},isSet:()=>c.get().isSome(),get:()=>c.get(),set:ve=>{g(),c.set(L.some(ve))}}},cE=()=>_w(o=>o.destroy()),Em=()=>_w(o=>o.unbind()),gs=()=>{const o=_w(M);return{...o,on:g=>o.get().each(g)}},Rw=ie,_c=(o,c,g)=>yg(o,c,Rw,g),vx=(o,c,g)=>hy(o,c,Rw,g),Dw=dy,$w=["top","bottom","right","left"],yx="data-alloy-transition-timer",Ek=(o,c)=>Xl(o,c.classes),uE=(o,c,g)=>g.exists(S=>{const _=o.mode;return _==="all"?!0:S[_]!==c[_]}),fE=(o,c)=>{const g=S=>parseFloat(S).toFixed(3);return Gt(c,(S,_)=>{const H=o[_].map(g),K=S.map(g);return!Yn(H,K)}).isSome()},E0=o=>{const c=H=>{const ve=Qa(o,H).split(/\s*,\s*/);return xe(ve,dn)},g=H=>{if(m(H)&&/^[\d.]+/.test(H)){const K=parseFloat(H);return mt(H,"ms")?K:K*1e3}else return 0},S=c("transition-delay"),_=c("transition-duration");return ke(_,(H,K,ve)=>{const Ae=g(S[ve])+g(K);return Math.max(H,Ae)},0)},_k=(o,c)=>{const g=Em(),S=Em();let _;const H=Ne=>{var Ue;const Je=(Ue=Ne.raw.pseudoElement)!==null&&Ue!==void 0?Ue:"";return Jt(Ne.target,o)&&nn(Je)&&be($w,Ne.raw.propertyName)},K=Ne=>{if(k(Ne)||H(Ne)){g.clear(),S.clear();const Ue=Ne==null?void 0:Ne.raw.type;(k(Ue)||Ue===Ki())&&(clearTimeout(_),sa(o,yx),tf(o,c.classes))}},ve=_c(o,kc(),Ne=>{H(Ne)&&(ve.unbind(),g.set(_c(o,Ki(),K)),S.set(_c(o,Uc(),K)))}),Ae=E0(o);requestAnimationFrame(()=>{_=setTimeout(K,Ae+17),Dr(o,yx,_)})},n9=(o,c)=>{ni(o,c.classes),Ri(o,yx).each(g=>{clearTimeout(parseInt(g,10)),sa(o,yx)}),_k(o,c)},Ig=(o,c,g,S,_,H)=>{const K=uE(S,_,H);if(K||Ek(o,S)){Po(o,"position",g.position);const ve=Aw(c,o),Ae=kw(c,{..._,rect:ve}),Ne=ue($w,Ue=>Ae[Ue]);fE(g,Ne)&&(fr(o,Ne),K&&n9(o,S),li(o))}else tf(o,S.classes)},dE=o=>({width:Tf(o),height:Vu(o)}),_0=(o,c,g,S)=>{Zo(c,"max-height"),Zo(c,"max-width");const _=dE(c);return lE(c,S.preference,o,_,g,S.bounds)},hE=(o,c)=>{const g=c.classes;tf(o,g.off),ni(o,g.on)},Lw=(o,c,g)=>{const S=g.maxHeightFunction;S(o,c.maxHeight)},Rk=(o,c,g)=>{const S=g.maxWidthFunction;S(o,c.maxWidth)},lv=(o,c,g)=>{const S=kw(g.origin,c);g.transition.each(_=>{Ig(o,g.origin,S,_,c,g.lastPlacement)}),Ck(o,S)},mE=(o,c)=>{aE(o,c.placement)},Dk=(o,c)=>{zu(o,Math.floor(c))},$k=F((o,c)=>{Dk(o,c),zi(o,{"overflow-x":"hidden","overflow-y":"auto"})}),R0=F((o,c)=>{Dk(o,c)}),Lk=(o,c,g)=>o[c]===void 0?g:o[c],Iw=(o,c,g,S,_,H,K,ve)=>{const Ae=Lk(K,"maxHeightFunction",$k()),Ne=Lk(K,"maxWidthFunction",M),Ue=o.anchorBox,Je=o.origin,st={bounds:nE(Je,H),origin:Je,preference:S,maxHeightFunction:Ae,maxWidthFunction:Ne,lastPlacement:_,transition:ve};return gE(Ue,c,g,st)},gE=(o,c,g,S)=>{const _=_0(o,c,g,S);return lv(c,_,S),mE(c,_),hE(c,_),Lw(c,_,S),Rk(c,_,S),{layout:_.layout,placement:_.placement}},Ik=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Eh=(o,c,g,S=1)=>{const _=o*S,H=c*S,K=Ae=>Bt(g,Ae).getOr([]),ve=(Ae,Ne,Ue)=>{const Je=se(Ik,Ue);return{offset:Is(Ae,Ne),classesOn:re(Ue,K),classesOff:re(Je,K)}};return{southeast:()=>ve(-o,c,["top","alignLeft"]),southwest:()=>ve(o,c,["top","alignRight"]),south:()=>ve(-o/2,c,["top","alignCentre"]),northeast:()=>ve(-o,-c,["bottom","alignLeft"]),northwest:()=>ve(o,-c,["bottom","alignRight"]),north:()=>ve(-o/2,-c,["bottom","alignCentre"]),east:()=>ve(o,-c/2,["valignCentre","left"]),west:()=>ve(-o,-c/2,["valignCentre","right"]),insetNortheast:()=>ve(_,H,["top","alignLeft","inset"]),insetNorthwest:()=>ve(-_,H,["top","alignRight","inset"]),insetNorth:()=>ve(-_/2,H,["top","alignCentre","inset"]),insetSoutheast:()=>ve(_,-H,["bottom","alignLeft","inset"]),insetSouthwest:()=>ve(-_,-H,["bottom","alignRight","inset"]),insetSouth:()=>ve(-_/2,-H,["bottom","alignCentre","inset"]),insetEast:()=>ve(-_,-H/2,["valignCentre","right","inset"]),insetWest:()=>ve(_,-H/2,["valignCentre","left","inset"])}},Gy=()=>Eh(0,0,{}),jy=z,bx=(o,c)=>g=>qy(g)==="rtl"?c:o,qy=o=>Qa(o,"direction")==="rtl"?"rtl":"ltr";var Lf;(function(o){o.TopToBottom="toptobottom",o.BottomToTop="bottomtotop"})(Lf||(Lf={}));const D0="data-alloy-vertical-dir",Ky=o=>lw(o,c=>St(c)&&oa(c,"data-alloy-vertical-dir")===Lf.BottomToTop),Ng=()=>wc("layouts",[er("onLtr"),er("onRtl"),Ws("onBottomLtr"),Ws("onBottomRtl")]),Ox=(o,c,g,S,_,H,K)=>{const ve=K.map(Ky).getOr(!1),Ae=c.layouts.map(ht=>ht.onLtr(o)),Ne=c.layouts.map(ht=>ht.onRtl(o)),Ue=ve?c.layouts.bind(ht=>ht.onBottomLtr.map(At=>At(o))).or(Ae).getOr(_):Ae.getOr(g),Je=ve?c.layouts.bind(ht=>ht.onBottomRtl.map(At=>At(o))).or(Ne).getOr(H):Ne.getOr(S);return bx(Ue,Je)(o)},pE=(o,c,g)=>{const S=c.hotspot,_=Aw(g,S.element),H=Ox(o.element,c,mx(),Sw(),xw(),bk(),L.some(c.hotspot.element));return L.some(jy({anchorBox:_,bubble:c.bubble.getOr(Gy()),overrides:c.overrides,layouts:H}))};var vE=[er("hotspot"),Ws("bubble"),Mn("overrides",{}),Ng(),ha("placement",pE)];const Nk=(o,c,g)=>{const S=Pw(g,c.x,c.y),_=Ja(S.left,S.top,c.width,c.height),H=Ox(o.element,c,Ow(),Uy(),Ow(),Uy(),L.none());return L.some(jy({anchorBox:_,bubble:c.bubble,overrides:c.overrides,layouts:H}))};var yE=[er("x"),er("y"),Mn("height",0),Mn("width",0),Mn("bubble",Gy()),Mn("overrides",{}),Ng(),ha("placement",Nk)];const Nw=we.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),bE=o=>o.fold(z,(c,g,S)=>c.translate(-g,-S)),OE=o=>o.fold(z,z),Bk=o=>ke(o,(c,g)=>c.translate(g.left,g.top),Is(0,0)),xE=o=>{const c=ne(o,bE);return Bk(c)},Qk=o=>{const c=ne(o,OE);return Bk(c)},SE=Nw.screen,xx=Nw.absolute,wE=(o,c,g)=>{const S=Jn(g.root).dom,_=H=>{const K=Tn(H),ve=Tn(o.element);return Jt(K,ve)};return L.from(S.frameElement).map(zt.fromDom).filter(_).map(Cl)},Fk=(o,c,g)=>{const S=Tn(o.element),_=Pl(S),H=wE(o,c,g).getOr(_);return xx(H,_.left,_.top)},$0=(o,c,g,S)=>{const _=SE(Is(o,c));return L.some(Kv(_,g,S))},Bw=(o,c,g,S,_)=>o.map(H=>{const K=[c,H.point],ve=rE(S,()=>Qk(K),()=>Qk(K),()=>xE(K)),Ae=vh(ve.left,ve.top,H.width,H.height),Ne=g.showAbove?xw():mx(),Ue=g.showAbove?bk():Sw(),Je=Ox(_,g,Ne,Ue,Ne,Ue,L.none());return jy({anchorBox:Ae,bubble:g.bubble.getOr(Gy()),overrides:g.overrides,layouts:Je})}),Qw=(o,c,g)=>{const S=Fk(o,g,c);return c.node.filter(Js).bind(_=>{const H=_.dom.getBoundingClientRect(),K=$0(H.left,H.top,H.width,H.height),ve=c.node.getOr(o.element);return Bw(K,S,c,g,ve)})};var Fw=[er("node"),er("root"),Ws("bubble"),Ng(),Mn("overrides",{}),Mn("showAbove",!1),ha("placement",Qw)];const Vk="\uFEFF",Vw=" ",Sx={create:(o,c,g,S)=>({start:o,soffset:c,finish:g,foffset:S})},wx=we.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),CE=(o,c,g,S)=>o.fold(c,g,S),zw=o=>o.fold(z,z,z),zk=wx.before,kE=wx.on,Zw=wx.after,AE={before:zk,on:kE,after:Zw,cata:CE,getStart:zw},L0=we.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),PE=o=>L0.exact(o.start,o.soffset,o.finish,o.foffset),Hw=o=>o.match({domRange:c=>zt.fromDom(c.startContainer),relative:(c,g)=>AE.getStart(c),exact:(c,g,S,_)=>c}),ME=L0.domRange,EE=L0.relative,_E=L0.exact,Zk=o=>{const c=Hw(o);return Jn(c)},RE=Sx.create,_l={domRange:ME,relative:EE,exact:_E,exactFromRange:PE,getWin:Zk,range:RE},r9=(o,c)=>{c.fold(g=>{o.setStartBefore(g.dom)},(g,S)=>{o.setStart(g.dom,S)},g=>{o.setStartAfter(g.dom)})},I0=(o,c)=>{c.fold(g=>{o.setEndBefore(g.dom)},(g,S)=>{o.setEnd(g.dom,S)},g=>{o.setEndAfter(g.dom)})},Tx=(o,c,g)=>{const S=o.document.createRange();return r9(S,c),I0(S,g),S},Hk=(o,c,g,S,_)=>{const H=o.document.createRange();return H.setStart(c.dom,g),H.setEnd(S.dom,_),H},Uw=o=>({left:o.left,top:o.top,right:o.right,bottom:o.bottom,width:o.width,height:o.height}),Uk=o=>{const c=o.getClientRects(),g=c.length>0?c[0]:o.getBoundingClientRect();return g.width>0||g.height>0?L.some(g).map(Uw):L.none()},Wk=o=>{const c=o.getBoundingClientRect();return c.width>0||c.height>0?L.some(c).map(Uw):L.none()},cv=we.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Jy=(o,c,g)=>c(zt.fromDom(g.startContainer),g.startOffset,zt.fromDom(g.endContainer),g.endOffset),DE=(o,c)=>c.match({domRange:g=>({ltr:F(g),rtl:L.none}),relative:(g,S)=>({ltr:Ya(()=>Tx(o,g,S)),rtl:Ya(()=>L.some(Tx(o,S,g)))}),exact:(g,S,_,H)=>({ltr:Ya(()=>Hk(o,g,S,_,H)),rtl:Ya(()=>L.some(Hk(o,_,H,g,S)))})}),$E=(o,c)=>{const g=c.ltr();return g.collapsed?c.rtl().filter(_=>_.collapsed===!1).map(_=>cv.rtl(zt.fromDom(_.endContainer),_.endOffset,zt.fromDom(_.startContainer),_.startOffset)).getOrThunk(()=>Jy(o,cv.ltr,g)):Jy(o,cv.ltr,g)},eb=(o,c)=>{const g=DE(o,c);return $E(o,g)},Ww=(o,c)=>eb(o,c).match({ltr:(S,_,H,K)=>{const ve=o.document.createRange();return ve.setStart(S.dom,_),ve.setEnd(H.dom,K),ve},rtl:(S,_,H,K)=>{const ve=o.document.createRange();return ve.setStart(H.dom,K),ve.setEnd(S.dom,_),ve}});cv.ltr,cv.rtl;const Yk=(o,c,g)=>xe(Hr(o,g),c),hl=(o,c)=>en(c,o),Xk=(o,c,g,S)=>{const H=Tn(o).dom.createRange();return H.setStart(o.dom,c),H.setEnd(g.dom,S),H},Yw=(o,c,g,S)=>{const _=Xk(o,c,g,S),H=Jt(o,g)&&c===S;return _.collapsed&&!H},o9=o=>L.from(o.getSelection()),N0=o=>{if(o.rangeCount>0){const c=o.getRangeAt(0),g=o.getRangeAt(o.rangeCount-1);return L.some(Sx.create(zt.fromDom(c.startContainer),c.startOffset,zt.fromDom(g.endContainer),g.endOffset))}else return L.none()},LE=o=>{if(o.anchorNode===null||o.focusNode===null)return N0(o);{const c=zt.fromDom(o.anchorNode),g=zt.fromDom(o.focusNode);return Yw(c,o.anchorOffset,g,o.focusOffset)?L.some(Sx.create(c,o.anchorOffset,g,o.focusOffset)):N0(o)}},Gk=o=>o9(o).filter(c=>c.rangeCount>0).bind(LE),Xw=(o,c)=>{const g=Ww(o,c);return Uk(g)},tb=(o,c)=>{const g=Ww(o,c);return Wk(g)},B0=((o,c)=>{const g=H=>{if(!o(H))throw new Error("Can only get "+c+" value of a "+c+" node");return S(H).getOr("")},S=H=>o(H)?L.from(H.dom.nodeValue):L.none();return{get:g,getOption:S,set:(H,K)=>{if(!o(H))throw new Error("Can only set raw "+c+" value of a "+c+" node");H.dom.nodeValue=K}}})(Ct,"text"),IE=o=>B0.get(o),Bg=(o,c)=>({element:o,offset:c}),jk=(o,c)=>{const g=qr(o);if(g.length===0)return Bg(o,c);if(cCt(o)?Bg(o,c):jk(o,c),Fg=o=>o.foffset!==void 0,Gw=(o,c)=>c.getSelection.getOrThunk(()=>()=>Gk(o))().map(S=>{if(Fg(S)){const _=Qg(S.start,S.soffset),H=Qg(S.finish,S.foffset);return _l.range(_.element,_.offset,H.element,H.offset)}else return S}),qk=(o,c,g)=>{const S=Jn(c.root).dom,_=Fk(o,g,c),H=Gw(S,c).bind(Ae=>{if(Fg(Ae))return tb(S,_l.exactFromRange(Ae)).orThunk(()=>{const Ue=zt.fromText(Vk);Uu(Ae.start,Ue);const Je=Xw(S,_l.exact(Ue,0,Ue,1));return xc(Ue),Je}).bind(Ue=>$0(Ue.left,Ue.top,Ue.width,Ue.height));{const Ne=je(Ae,Je=>Je.dom.getBoundingClientRect()),Ue={left:Math.min(Ne.firstCell.left,Ne.lastCell.left),right:Math.max(Ne.firstCell.right,Ne.lastCell.right),top:Math.min(Ne.firstCell.top,Ne.lastCell.top),bottom:Math.max(Ne.firstCell.bottom,Ne.lastCell.bottom)};return $0(Ue.left,Ue.top,Ue.right-Ue.left,Ue.bottom-Ue.top)}}),ve=Gw(S,c).bind(Ae=>Fg(Ae)?St(Ae.start)?L.some(Ae.start):dr(Ae.start):L.some(Ae.firstCell)).getOr(o.element);return Bw(H,_,c,g,ve)};var s9=[Ws("getSelection"),er("root"),Ws("bubble"),Ng(),Mn("overrides",{}),Mn("showAbove",!1),ha("placement",qk)];const jw="link-layout",Vg=o=>o.x+o.width,_h=(o,c)=>o.x-c.width,nb=(o,c)=>o.y-c.height+o.height,Q0=o=>o.y,qw=(o,c,g)=>cl(Vg(o),Q0(o),g.southeast(),Vy(),"southeast",Ha(o,{left:0,top:2}),jw),_m=(o,c,g)=>cl(_h(o,c),Q0(o),g.southwest(),mw(),"southwest",Ha(o,{right:1,top:2}),jw),Hd=(o,c,g)=>cl(Vg(o),nb(o,c),g.northeast(),fx(),"northeast",Ha(o,{left:0,bottom:3}),jw),rb=(o,c,g)=>cl(_h(o,c),nb(o,c),g.northwest(),Ph(),"northwest",Ha(o,{right:1,bottom:3}),jw),kx=()=>[qw,_m,Hd,rb],ob=()=>[_m,qw,rb,Hd],Kw=(o,c,g)=>{const S=Aw(g,c.item.element),_=Ox(o.element,c,kx(),ob(),kx(),ob(),L.none());return L.some(jy({anchorBox:S,bubble:Gy(),overrides:c.overrides,layouts:_}))};var F0=[er("item"),Ng(),Mn("overrides",{}),ha("placement",Kw)],sb=Os("type",{selection:s9,node:Fw,hotspot:vE,submenu:F0,makeshift:yE});const Jw=[rc("classes",al),Hc("mode","all",["all","layout","placement"])],Kk=[Mn("useFixed",Y),Ws("getBounds")],zg=[Zc("anchor",sb),wc("transition",Jw)],Ax=()=>{const o=document.documentElement;return Yy(0,0,o.clientWidth,o.clientHeight)},NE=o=>{const c=Cl(o.element),g=o.element.dom.getBoundingClientRect();return Ec(c.left,c.top,g.width,g.height)},Jk=(o,c,g,S,_,H)=>{const K=sE(c.anchorBox,o);return Iw(K,S.element,c.bubble,c.layouts,_,g,c.overrides,H)},eT=(o,c,g,S,_)=>{const H=L.none();Pi(o,c,g,S,_,H)},Pi=(o,c,g,S,_,H)=>{const K=El("placement.info",uo(zg),_),ve=K.anchor,Ae=S.element,Ne=g.get(S.uid);Ur(()=>{Po(Ae,"position","fixed");const Ue=za(Ae,"visibility");Po(Ae,"visibility","hidden");const Je=c.useFixed()?Ax():NE(o);ve.placement(o,ve,Je).each(st=>{const ht=H.orThunk(()=>c.getBounds.map(W)),At=Jk(Je,st,ht,S,Ne,K.transition);g.set(S.uid,At)}),Ue.fold(()=>{Zo(Ae,"visibility")},st=>{Po(Ae,"visibility",st)}),za(Ae,"left").isNone()&&za(Ae,"top").isNone()&&za(Ae,"right").isNone()&&za(Ae,"bottom").isNone()&&ln(za(Ae,"position"),"fixed")&&Zo(Ae,"position")},Ae)};var eA=Object.freeze({__proto__:null,position:eT,positionWithinBounds:Pi,getMode:(o,c,g)=>c.useFixed()?"fixed":"absolute",reset:(o,c,g,S)=>{const _=S.element;pe(["position","left","right","top","bottom"],H=>Zo(_,H)),Pk(_),g.clear(S.uid)}}),Zg=Object.freeze({__proto__:null,init:()=>{let o={};return Cu({readState:()=>o,clear:_=>{C(_)?delete o[_]:o={}},set:(_,H)=>{o[_]=H},get:_=>Bt(o,_)})}});const ac=dl({fields:Kk,name:"positioning",active:wk,apis:eA,state:Zg}),V0=o=>o.getSystem().isConnected(),ab=o=>{ks(o,kg());const c=o.components();pe(c,ab)},z0=o=>{const c=o.components();pe(c,z0),ks(o,ef())},tT=(o,c)=>{o.getSystem().addToWorld(c),Js(o.element)&&z0(c)},Z0=o=>{ab(o),o.getSystem().removeFromWorld(o)},uv=(o,c)=>{Vc(o.element,c.element)},Ud=o=>{pe(o.components(),c=>xc(c.element)),bg(o.element),o.syncComponents()},BE=(o,c,g)=>{const S=o.components();Ud(o);const _=g(c),H=se(S,_);pe(H,K=>{ab(K),o.getSystem().removeFromWorld(K)}),pe(_,K=>{V0(K)?uv(o,K):(o.getSystem().addToWorld(K),uv(o,K),Js(o.element)&&z0(K))}),o.syncComponents()},QE=(o,c,g)=>{const S=o.components(),_=re(c,ve=>f0(ve).toArray());pe(S,ve=>{be(_,ve)||Z0(ve)});const H=g(c),K=se(S,H);pe(K,ve=>{V0(ve)&&Z0(ve)}),pe(H,ve=>{V0(ve)||tT(o,ve)}),o.syncComponents()},Hg=(o,c)=>{H0(o,c,Vc)},H0=(o,c,g)=>{o.getSystem().addToWorld(c),g(o.element,c.element),Js(o.element)&&z0(c),o.syncComponents()},Mx=o=>{ab(o),xc(o.element),o.getSystem().removeFromWorld(o)},Rh=o=>{const c=Fn(o.element).bind(g=>o.getSystem().getByDom(g).toOptional());Mx(o),c.each(g=>{g.syncComponents()})},nT=o=>{const c=o.components();pe(c,Mx),bg(o.element),o.syncComponents()},Rl=(o,c)=>{id(o,c,Vc)},Dm=(o,c)=>{id(o,c,zp)},id=(o,c,g)=>{g(o,c.element);const S=qr(c.element);pe(S,_=>{c.getByDom(_).each(z0)})},U0=o=>{const c=qr(o.element);pe(c,g=>{o.getByDom(g).each(ab)}),xc(o.element)},Rc=(o,c,g,S)=>{g.get().each(K=>{nT(o)});const _=c.getAttachPoint(o);Hg(_,o);const H=o.getSystem().build(S);return Hg(o,H),g.set(H),H},uu=(o,c,g,S)=>{const _=Rc(o,c,g,S);return c.onOpen(o,_),_},Xc=(o,c,g,S)=>g.get().map(()=>Rc(o,c,g,S)),ld=(o,c,g,S,_)=>{ib(o,c),uu(o,c,g,S),_(),lb(o,c)},Ex=(o,c,g)=>{g.get().each(S=>{nT(o),Rh(o),c.onClose(o,S),g.clear()})},sf=(o,c,g)=>g.isOpen(),fv=(o,c,g,S)=>sf(o,c,g)&&g.get().exists(_=>c.isPartOf(o,_,S)),rT=(o,c,g)=>g.get(),FE=(o,c,g,S)=>{za(o.element,c).fold(()=>{sa(o.element,g)},_=>{Dr(o.element,g,_)}),Po(o.element,c,S)},tA=(o,c,g)=>{Ri(o.element,g).fold(()=>Zo(o.element,c),S=>Po(o.element,c,S))},ib=(o,c,g)=>{const S=c.getAttachPoint(o);Po(o.element,"position",ac.getMode(S)),FE(o,"visibility",c.cloakVisibilityAttr,"hidden")},nA=o=>Te(["top","left","right","bottom"],c=>za(o,c).isSome()),lb=(o,c,g)=>{nA(o.element)||Zo(o.element,"position"),tA(o,"visibility",c.cloakVisibilityAttr)};var _x=Object.freeze({__proto__:null,cloak:ib,decloak:lb,open:uu,openWhileCloaked:ld,close:Ex,isOpen:sf,isPartOf:fv,getState:rT,setContent:Xc}),rA=Object.freeze({__proto__:null,events:(o,c)=>Ea([qn(Ju(),(g,S)=>{Ex(g,o,c)})])}),zE=[Rs("onOpen"),Rs("onClose"),er("isPartOf"),er("getAttachPoint"),Mn("cloakVisibilityAttr","data-precloak-visibility")],oA=Object.freeze({__proto__:null,init:()=>{const o=gs(),c=F("not-implemented");return Cu({readState:c,isOpen:o.isSet,clear:o.clear,set:o.set,get:o.get})}});const As=dl({fields:zE,name:"sandboxing",active:rA,apis:_x,state:oA}),Wd=F("dismiss.popups"),dv=F("reposition.popups"),oT=F("mouse.released"),sA=ca([Mn("isExtraPart",Y),wc("fireEventInstead",[Mn("event",Ag())])]),cb=o=>{const c=El("Dismissal",sA,o);return{[Wd()]:{schema:ca([er("target")]),onReceive:(g,S)=>{As.isOpen(g)&&(As.isPartOf(g,S.target)||c.isExtraPart(g,S.target)||c.fireEventInstead.fold(()=>As.close(g),H=>ks(g,H.event)))}}}},ZE=ca([wc("fireEventInstead",[Mn("event",KC())]),qu("doReposition")]),W0=o=>{const c=El("Reposition",ZE,o);return{[dv()]:{onReceive:g=>{As.isOpen(g)&&c.fireEventInstead.fold(()=>c.doReposition(g),S=>ks(g,S.event))}}}},Rx=(o,c,g)=>{c.store.manager.onLoad(o,c,g)},af=(o,c,g)=>{c.store.manager.onUnload(o,c,g)};var Ug=Object.freeze({__proto__:null,onLoad:Rx,onUnload:af,setValue:(o,c,g,S)=>{c.store.manager.setValue(o,c,g,S)},getValue:(o,c,g)=>c.store.manager.getValue(o,c,g),getState:(o,c,g)=>g}),Lx=Object.freeze({__proto__:null,events:(o,c)=>{const g=o.resetOnDom?[Ca((S,_)=>{Rx(S,o,c)}),Sh((S,_)=>{af(S,o,c)})]:[gx(o,c,Rx)];return Ea(g)}});const hv=()=>{const o=X(null),c=()=>({mode:"memory",value:o.get()}),g=()=>o.get()===null,S=()=>{o.set(null)};return Cu({set:o.set,get:o.get,isNotSet:g,clear:S,readState:c})},HE=()=>Cu({readState:M}),aA=()=>{const o=X({}),c=X({});return Cu({readState:()=>({mode:"dataset",dataByValue:o.get(),dataByText:c.get()}),lookup:K=>Bt(o.get(),K).orThunk(()=>Bt(c.get(),K)),update:K=>{const ve=o.get(),Ae=c.get(),Ne={},Ue={};pe(K,Je=>{Ne[Je.value]=Je,Bt(Je,"meta").each(st=>{Bt(st,"text").each(ht=>{Ue[ht]=Je})})}),o.set({...ve,...Ne}),c.set({...Ae,...Ue})},clear:()=>{o.set({}),c.set({})}})};var X0=Object.freeze({__proto__:null,memory:hv,dataset:aA,manual:HE,init:o=>o.store.manager.state(o)});const $m=(o,c,g,S)=>{const _=c.store;g.update([S]),_.setValue(o,S),c.onSetValue(o,S)},WE=(o,c,g)=>{const S=c.store,_=S.getDataKey(o);return g.lookup(_).getOrThunk(()=>S.getFallbackEntry(_))},YE=(o,c,g)=>{c.store.initialValue.each(_=>{$m(o,c,g,_)})},iA=(o,c,g)=>{g.clear()};var sT=[Ws("initialValue"),er("getFallbackEntry"),er("getDataKey"),er("setValue"),ha("manager",{setValue:$m,getValue:WE,onLoad:YE,onUnload:iA,state:aA})];const aT=(o,c,g)=>c.store.getValue(o),iT=(o,c,g,S)=>{c.store.setValue(o,S),c.onSetValue(o,S)},Ix=(o,c,g)=>{c.store.initialValue.each(S=>{c.store.setValue(o,S)})};var Wg=[er("getValue"),Mn("setValue",M),Ws("initialValue"),ha("manager",{setValue:iT,getValue:aT,onLoad:Ix,onUnload:M,state:od.init})];const lA=(o,c,g,S)=>{g.set(S),c.onSetValue(o,S)},ub=(o,c,g)=>g.get(),lT=(o,c,g)=>{c.store.initialValue.each(S=>{g.isNotSet()&&g.set(S)})},XE=(o,c,g)=>{g.clear()};var fb=[Ws("initialValue"),ha("manager",{setValue:lA,getValue:ub,onLoad:lT,onUnload:XE,state:hv})],GE=[Tc("store",{mode:"memory"},Os("mode",{memory:fb,manual:Wg,dataset:sT})),Rs("onSetValue"),Mn("resetOnDom",!1)];const Fr=dl({fields:GE,name:"representing",active:Lx,apis:Ug,extra:{setValueFrom:(o,c)=>{const g=Fr.getValue(c);Fr.setValue(o,g)}},state:X0}),el=(o,c)=>D(o,{},ne(c,g=>s0(g.name(),"Cannot configure "+g.name()+" for "+o)).concat([ei("dump",z)])),Lm=o=>o.dump,Ni=(o,c)=>({...pr(c),...o.dump}),If={field:el,augment:Ni,get:Lm},Nx="placeholder",db=we.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),Yd=o=>vn(o,"uiType"),Bx=(o,c,g,S)=>o.exists(_=>_!==g.owner)?db.single(!0,F(g)):Bt(S,g.name).fold(()=>{throw new Error("Unknown placeholder component: "+g.name+` +Known: [`+ct(S)+`] +Namespace: `+o.getOr("none")+` +Spec: `+JSON.stringify(g,null,2))},_=>_.replace()),Qx=(o,c,g,S)=>Yd(g)&&g.uiType===Nx?Bx(o,c,g,S):db.single(!1,F(g)),G0=(o,c,g,S)=>Qx(o,c,g,S).fold((H,K)=>{const ve=Yd(g)?K(c,g.config,g.validated):K(c),Ae=Bt(ve,"components").getOr([]),Ne=re(Ae,Ue=>G0(o,c,Ue,S));return[{...ve,components:Ne}]},(H,K)=>{if(Yd(g)){const ve=K(c,g.config,g.validated);return g.validated.preprocess.getOr(z)(ve)}else return K(c)}),cA=(o,c,g,S)=>re(g,_=>G0(o,c,_,S)),hb=(o,c)=>{let g=!1;const S=()=>g,_=()=>{if(g)throw new Error("Trying to use the same placeholder more than once: "+o);return g=!0,c},H=()=>c.fold((K,ve)=>K,(K,ve)=>K);return{name:F(o),required:H,used:S,replace:_}},cT=(o,c,g,S)=>{const _=je(S,(K,ve)=>hb(ve,K)),H=cA(o,c,g,_);return Ye(_,K=>{if(K.used()===!1&&K.required())throw new Error("Placeholder: "+K.name()+` was not found in components list +Namespace: `+o.getOr("none")+` +Components: `+JSON.stringify(c.components,null,2))}),H},uT=db.single,jE=db.multiple,Xd=F(Nx),Fx=we.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),j0=Mn("factory",{sketch:z}),jl=Mn("schema",[]),Xi=er("name"),Vx=il("pname","pname",Ef(o=>""),vi()),mb=ei("schema",()=>[Ws("preprocess")]),zx=Mn("defaults",F({})),gb=Mn("overrides",F({})),pb=uo([j0,jl,Xi,Vx,zx,gb]),q0=uo([j0,jl,Xi,zx,gb]),uA=uo([j0,jl,Xi,Vx,zx,gb]),vb=uo([j0,mb,Xi,er("unit"),Vx,zx,gb]),fA=o=>o.fold(L.some,L.none,L.some,L.some),dA=o=>{const c=g=>g.name;return o.fold(c,c,c,c)},hA=o=>o.fold(z,z,z,z),Nf=(o,c)=>g=>{const S=El("Converting part type",c,g);return o(S)},ic=Nf(Fx.required,pb),cd=Nf(Fx.external,q0),fu=Nf(Fx.optional,uA),yb=Nf(Fx.group,vb),Zx=F("entirety");var mA=Object.freeze({__proto__:null,required:ic,external:cd,optional:fu,group:yb,asNamedPart:fA,name:dA,asCommon:hA,original:Zx});const bb=(o,c,g,S)=>Ta(c.defaults(o,g,S),g,{uid:o.partUids[c.name]},c.overrides(o,g,S)),qE=(o,c,g)=>{const S={},_={};return pe(g,H=>{H.fold(K=>{S[K.pname]=uT(!0,(ve,Ae,Ne)=>K.factory.sketch(bb(ve,K,Ae,Ne)))},K=>{const ve=c.parts[K.name];_[K.name]=F(K.factory.sketch(bb(c,K,ve[Zx()]),ve))},K=>{S[K.pname]=uT(!1,(ve,Ae,Ne)=>K.factory.sketch(bb(ve,K,Ae,Ne)))},K=>{S[K.pname]=jE(!0,(ve,Ae,Ne)=>{const Ue=ve[K.name];return ne(Ue,Je=>K.factory.sketch(Ta(K.defaults(ve,Je,Ne),Je,K.overrides(ve,Je))))})})}),{internals:F(S),externals:F(_)}},Im=(o,c)=>{const g={};return pe(c,S=>{fA(S).each(_=>{const H=Ob(o,_.pname);g[_.name]=K=>{const ve=El("Part: "+_.name+" in "+o,uo(_.schema),K);return{...H,config:K,validated:ve}}})}),g},Ob=(o,c)=>({uiType:Xd(),owner:o,name:c}),fT=(o,c,g)=>({uiType:Xd(),owner:o,name:c,config:g,validated:{}}),gA=o=>re(o,c=>c.fold(L.none,L.some,L.none,L.none).map(g=>su(g.name,g.schema.concat([Fy(Zx())]))).toArray()),pA=o=>ne(o,dA),dT=(o,c,g)=>qE(o,c,g),Hx=(o,c,g)=>cT(L.some(o),c,c.components,g),ka=(o,c,g)=>{const S=c.partUids[g];return o.getSystem().getByUid(S).toOptional()},Nm=(o,c,g)=>ka(o,c,g).getOrDie("Could not find part: "+g),vA=(o,c,g)=>{const S={},_=c.partUids,H=o.getSystem();return pe(g,K=>{S[K]=F(H.getByUid(_[K]))}),S},hT=(o,c)=>{const g=o.getSystem();return je(c.partUids,(S,_)=>F(g.getByUid(S)))},mT=o=>ct(o.partUids),mv=(o,c,g)=>{const S={},_=c.partUids,H=o.getSystem();return pe(g,K=>{S[K]=F(H.getByUid(_[K]).getOrDie())}),S},gT=(o,c)=>{const g=pA(c);return bt(ne(g,S=>({key:S,value:o+"-"+S})))},pT=o=>il("partUids","partUids",hs(c=>gT(c.uid,o)),vi());var KE=Object.freeze({__proto__:null,generate:Im,generateOne:fT,schemas:gA,names:pA,substitutes:dT,components:Hx,defaultUids:gT,defaultUidsSchema:pT,getAllParts:hT,getAllPartNames:mT,getPart:ka,getPartOrDie:Nm,getParts:vA,getPartsOrDie:mv});const K0=(o,c)=>(o.length>0?[su("parts",o)]:[]).concat([er("uid"),Mn("dom",{}),Mn("components",[]),Fy("originalSpec"),Mn("debug.sketcher",{})]).concat(c),J0=(o,c,g,S,_)=>{const H=K0(S,_);return El(o+" [SpecSchema]",ca(H.concat(c)),g)},vT=(o,c,g,S)=>{const _=Yg(S),H=J0(o,c,_,[],[]);return g(H,_)},yT=(o,c,g,S,_)=>{const H=Yg(_),K=gA(g),ve=pT(g),Ae=J0(o,c,H,K,[ve]),Ne=dT(o,Ae,g),Ue=Hx(o,Ae,Ne.internals());return S(Ae,Ue,H,Ne.externals())},ud=o=>vn(o,"uid"),Yg=o=>ud(o)?o:{...o,uid:c0("uid")},JE=o=>o.uid!==void 0,xb=ca([er("name"),er("factory"),er("configFields"),Mn("apis",{}),Mn("extraApis",{})]),e_=ca([er("name"),er("factory"),er("configFields"),er("partFields"),Mn("apis",{}),Mn("extraApis",{})]),_u=o=>{const c=El("Sketcher for "+o.name,xb,o),g=H=>vT(c.name,c.configFields,c.factory,H),S=je(c.apis,ev),_=je(c.extraApis,(H,K)=>XO(H,K));return{name:c.name,configFields:c.configFields,sketch:g,...S,..._}},lc=o=>{const c=El("Sketcher for "+o.name,e_,o),g=K=>yT(c.name,c.configFields,c.partFields,c.factory,K),S=Im(c.name,c.partFields),_=je(c.apis,ev),H=je(c.extraApis,(K,ve)=>XO(K,ve));return{name:c.name,partFields:c.partFields,configFields:c.configFields,sketch:g,parts:S,..._,...H}},gv=o=>Ht("input")(o)&&oa(o,"type")!=="radio"||Ht("textarea")(o);var yA=Object.freeze({__proto__:null,getCurrent:(o,c,g)=>c.find(o)});const t_=[er("find")],xs=dl({fields:t_,name:"composing",apis:yA}),bT=["input","button","textarea","select"],bA=(o,c,g)=>{(c.disabled()?xA:Sb)(o,c)},OT=(o,c)=>c.useNative===!0&&be(bT,Oo(o.element)),n_=o=>Md(o.element,"disabled"),r_=o=>{Dr(o.element,"disabled","disabled")},OA=o=>{sa(o.element,"disabled")},o_=o=>oa(o.element,"aria-disabled")==="true",Wr=o=>{Dr(o.element,"aria-disabled","true")},Xg=o=>{Dr(o.element,"aria-disabled","false")},xA=(o,c,g)=>{c.disableClass.each(_=>{ki(o.element,_)}),(OT(o,c)?r_:Wr)(o),c.onDisabled(o)},Sb=(o,c,g)=>{c.disableClass.each(_=>{Xa(o.element,_)}),(OT(o,c)?OA:Xg)(o),c.onEnabled(o)},wb=(o,c)=>OT(o,c)?n_(o):o_(o);var c9=Object.freeze({__proto__:null,enable:Sb,disable:xA,isDisabled:wb,onLoad:bA,set:(o,c,g,S)=>{(S?xA:Sb)(o,c)}}),a_=Object.freeze({__proto__:null,exhibit:(o,c)=>ku({classes:c.disabled()?c.disableClass.toArray():[]}),events:(o,c)=>Ea([YS(Ii(),(g,S)=>wb(g,o)),gx(o,c,bA)])}),SA=[Di("disabled",Y),Mn("useNative",!0),Ws("disableClass"),Rs("onDisabled"),Rs("onEnabled")];const Co=dl({fields:SA,name:"disabling",active:a_,apis:c9}),Bm=(o,c,g,S)=>{const _=hl(o.element,"."+c.highlightClass);pe(_,H=>{Te(S,ve=>Jt(ve.element,H))||(Xa(H,c.highlightClass),o.getSystem().getByDom(H).each(ve=>{c.onDehighlight(o,ve),ks(ve,_y())}))})},wA=(o,c,g)=>Bm(o,c,g,[]),i_=(o,c,g,S)=>{Ux(o,c,g,S)&&(Xa(S.element,c.highlightClass),c.onDehighlight(o,S),ks(S,_y()))},Tb=(o,c,g,S)=>{Bm(o,c,g,[S]),Ux(o,c,g,S)||(ki(S.element,c.highlightClass),c.onHighlight(o,S),ks(S,Ey()))},l_=(o,c,g)=>{e1(o,c).each(S=>{Tb(o,c,g,S)})},TA=(o,c,g)=>{ST(o,c).each(S=>{Tb(o,c,g,S)})},xT=(o,c,g,S)=>{u_(o,c,g,S).fold(_=>{throw _},_=>{Tb(o,c,g,_)})},CA=(o,c,g,S)=>{const _=Wx(o,c);Ze(_,S).each(K=>{Tb(o,c,g,K)})},Ux=(o,c,g,S)=>Ji(S.element,c.highlightClass),c_=(o,c,g)=>Ai(o.element,"."+c.highlightClass).bind(S=>o.getSystem().getByDom(S).toOptional()),u_=(o,c,g,S)=>{const _=hl(o.element,"."+c.itemClass);return L.from(_[S]).fold(()=>jo.error(new Error("No element found with index "+S)),o.getSystem().getByDom)},e1=(o,c,g)=>Ai(o.element,"."+c.itemClass).bind(S=>o.getSystem().getByDom(S).toOptional()),ST=(o,c,g)=>{const S=hl(o.element,"."+c.itemClass);return(S.length>0?L.some(S[S.length-1]):L.none()).bind(H=>o.getSystem().getByDom(H).toOptional())},kA=(o,c,g,S)=>{const _=hl(o.element,"."+c.itemClass);return De(_,K=>Ji(K,c.highlightClass)).bind(K=>{const ve=k0(K,S,0,_.length-1);return o.getSystem().getByDom(_[ve]).toOptional()})},f_=(o,c,g)=>kA(o,c,g,-1),d_=(o,c,g)=>kA(o,c,g,1),Wx=(o,c,g)=>{const S=hl(o.element,"."+c.itemClass);return an(ne(S,_=>o.getSystem().getByDom(_).toOptional()))};var Dh=Object.freeze({__proto__:null,dehighlightAll:wA,dehighlight:i_,highlight:Tb,highlightFirst:l_,highlightLast:TA,highlightAt:xT,highlightBy:CA,isHighlighted:Ux,getHighlighted:c_,getFirst:e1,getLast:ST,getPrevious:f_,getNext:d_,getCandidates:Wx}),Yx=[er("highlightClass"),er("itemClass"),Rs("onHighlight"),Rs("onDehighlight")];const Ys=dl({fields:Yx,name:"highlighting",apis:Dh}),h_=[8],Qm=[9],$h=[13],Xx=[27],lf=[32],Gx=[37],Fm=[38],t1=[39],Cb=[40],wT=(o,c,g)=>{const S=te(o.slice(0,c)),_=te(o.slice(c+1));return Ze(S.concat(_),g)},m_=(o,c,g)=>{const S=te(o.slice(0,c));return Ze(S,g)},TT=(o,c,g)=>{const S=o.slice(0,c),_=o.slice(c+1);return Ze(_.concat(S),g)},g_=(o,c,g)=>{const S=o.slice(c+1);return Ze(S,g)},Ps=o=>c=>{const g=c.raw;return be(o,g.which)},cf=o=>c=>ye(o,g=>g(c)),Gg=o=>o.raw.shiftKey===!0,p_=o=>o.raw.ctrlKey===!0,n1=B(Gg),Qs=(o,c)=>({matches:o,classification:c}),v_=(o,c)=>Ze(o,S=>S.matches(c)).map(S=>S.classification),CT=(o,c,g)=>{c.exists(_=>g.exists(H=>Jt(H,_)))||vo(o,VO(),{prevFocus:c,newFocus:g})},A=()=>{const o=g=>ad(g.element);return{get:o,set:(g,S)=>{const _=o(g);g.getSystem().triggerFocus(S,g.element);const H=o(g);CT(g,_,H)}}},$=()=>{const o=g=>Ys.getHighlighted(g).map(S=>S.element);return{get:o,set:(g,S)=>{const _=o(g);g.getSystem().getByDom(S).fold(M,K=>{Ys.highlight(g,K)});const H=o(g);CT(g,_,H)}}};var j;(function(o){o.OnFocusMode="onFocus",o.OnEnterOrSpaceMode="onEnterOrSpace",o.OnApiMode="onApi"})(j||(j={}));const ce=(o,c,g,S,_)=>{const H=()=>o.concat([Mn("focusManager",A()),Tc("focusInside","onFocus",Ml(Ne=>be(["onFocus","onEnterOrSpace","onApi"],Ne)?jo.value(Ne):jo.error("Invalid value for focusInside"))),ha("handler",Ae),ha("state",c),ha("sendFocusIn",_)]),K=(Ne,Ue,Je,st,ht)=>{const At=Je(Ne,Ue,st,ht);return v_(At,Ue.event).bind(qt=>qt(Ne,Ue,st,ht))},Ae={schema:H,processKey:K,toEvents:(Ne,Ue)=>{const Je=Ne.focusInside!==j.OnFocusMode?L.none():_(Ne).map(At=>qn(Df(),(qt,Dn)=>{At(qt,Ne,Ue),Dn.stop()})),st=(At,qt)=>{const Dn=Ps(lf.concat($h))(qt.event);Ne.focusInside===j.OnEnterOrSpaceMode&&Dn&&hn(At,qt)&&_(Ne).each(mn=>{mn(At,Ne,Ue),qt.stop()})},ht=[qn(_s(),(At,qt)=>{K(At,qt,g,Ne,Ue).fold(()=>{st(At,qt)},Dn=>{qt.stop()})}),qn(Ba(),(At,qt)=>{K(At,qt,S,Ne,Ue).each(Dn=>{qt.stop()})})];return Ea(Je.toArray().concat(ht))}};return Ae},Me=o=>{const c=[Ws("onEscape"),Ws("onEnter"),Mn("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Mn("firstTabstop",0),Mn("useTabstopAt",ie),Ws("visibilitySelector")].concat([o]),g=(mn,on)=>{const kn=mn.visibilitySelector.bind(Zn=>Vd(on,Zn)).getOr(on);return Za(kn)>0},S=(mn,on)=>{const kn=hl(mn.element,on.selector),Zn=xe(kn,mr=>g(on,mr));return L.from(Zn[on.firstTabstop])},_=(mn,on)=>on.focusManager.get(mn).bind(kn=>Vd(kn,on.selector)),H=(mn,on)=>g(mn,on)&&mn.useTabstopAt(on),K=(mn,on,kn)=>{S(mn,on).each(Zn=>{on.focusManager.set(mn,Zn)})},ve=(mn,on,kn,Zn,mr)=>mr(on,kn,Gn=>H(Zn,Gn)).fold(()=>Zn.cyclic?L.some(!0):L.none(),Gn=>(Zn.focusManager.set(mn,Gn),L.some(!0))),Ae=(mn,on,kn,Zn)=>{const mr=hl(mn.element,kn.selector);return _(mn,kn).bind(Gn=>De(mr,Q(Jt,Gn)).bind(Mr=>ve(mn,mr,Mr,kn,Zn)))},Ne=(mn,on,kn)=>{const Zn=kn.cyclic?wT:m_;return Ae(mn,on,kn,Zn)},Ue=(mn,on,kn)=>{const Zn=kn.cyclic?TT:g_;return Ae(mn,on,kn,Zn)},Je=mn=>zr(mn).bind(ko).exists(on=>Jt(on,mn)),st=(mn,on,kn)=>_(mn,kn).filter(Zn=>!kn.useTabstopAt(Zn)).bind(Zn=>(Je(Zn)?Ne:Ue)(mn,on,kn)),ht=(mn,on,kn)=>kn.onEnter.bind(Zn=>Zn(mn,on)),At=(mn,on,kn)=>kn.onEscape.bind(Zn=>Zn(mn,on)),qt=F([Qs(cf([Gg,Ps(Qm)]),Ne),Qs(Ps(Qm),Ue),Qs(cf([n1,Ps($h)]),ht)]),Dn=F([Qs(Ps(Xx),At),Qs(Ps(Qm),st)]);return ce(c,od.init,qt,Dn,()=>L.some(K))};var Ve=Me(ei("cyclic",Y)),nt=Me(ei("cyclic",ie));const Ot=(o,c,g)=>(HO(o,g,Ii()),L.some(!0)),_t=(o,c,g)=>gv(g)&&Ps(lf)(c.event)?L.none():Ot(o,c,g),Kt=(o,c)=>L.some(!0),Cn=[Mn("execute",_t),Mn("useSpace",!1),Mn("useEnter",!0),Mn("useControlEnter",!1),Mn("useDown",!1)],ir=(o,c,g)=>g.execute(o,c,o.element),$r=(o,c,g,S)=>{const _=g.useSpace&&!gv(o.element)?lf:[],H=g.useEnter?$h:[],K=g.useDown?Cb:[],ve=_.concat(H).concat(K);return[Qs(Ps(ve),ir)].concat(g.useControlEnter?[Qs(cf([p_,Ps($h)]),ir)]:[])},Rr=(o,c,g,S)=>g.useSpace&&!gv(o.element)?[Qs(Ps(lf),Kt)]:[];var Kn=ce(Cn,od.init,$r,Rr,()=>L.none());const Ir=()=>{const o=gs();return Cu({readState:()=>o.get().map(_=>({numRows:String(_.numRows),numColumns:String(_.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(_,H)=>{o.set({numRows:_,numColumns:H})},getNumRows:()=>o.get().map(_=>_.numRows),getNumColumns:()=>o.get().map(_=>_.numColumns)})};var io=Object.freeze({__proto__:null,flatgrid:Ir,init:o=>o.state(o)});const $o=o=>(c,g,S,_)=>{const H=o(c.element);return bi(H,c,g,S,_)},os=(o,c)=>{const g=bx(o,c);return $o(g)},Va=(o,c)=>{const g=bx(c,o);return $o(g)},ml=o=>(c,g,S,_)=>bi(o,c,g,S,_),bi=(o,c,g,S,_)=>S.focusManager.get(c).bind(K=>o(c.element,K,S,_)).map(K=>(S.focusManager.set(c,K),!0)),du=ml,pv=ml,vv=ml,kT=o=>o.offsetWidth<=0&&o.offsetHeight<=0,jx=o=>!kT(o.dom),Oa=(o,c)=>De(o,c).map(g=>({index:g,candidates:o})),Dc=(o,c,g)=>{const S=K=>Jt(K,c),_=hl(o,g),H=xe(_,jx);return Oa(H,S)},ql=(o,c)=>De(o,g=>Jt(c,g)),uf=(o,c,g,S)=>{const _=Math.floor(c/g),H=c%g;return S(_,H).bind(K=>{const ve=K.row*g+K.column;return ve>=0&&veuf(o,c,S,(H,K)=>{const Ae=H===g-1?o.length-H*S:S,Ne=k0(K,_,0,Ae-1);return L.some({row:H,column:Ne})}),jg=(o,c,g,S,_)=>uf(o,c,S,(H,K)=>{const ve=k0(H,_,0,g-1),Ne=ve===g-1?o.length-ve*S:S,Ue=rf(K,0,Ne-1);return L.some({row:ve,column:Ue})}),Gc=(o,c,g,S)=>Ru(o,c,g,S,1),AT=(o,c,g,S)=>Ru(o,c,g,S,-1),kb=(o,c,g,S)=>jg(o,c,g,S,-1),Lh=(o,c,g,S)=>jg(o,c,g,S,1),cc=[er("selector"),Mn("execute",_t),Eu("onEscape"),Mn("captureTab",!1),dw()],Ab=(o,c,g)=>{Ai(o.element,c.selector).each(S=>{c.focusManager.set(o,S)})},AA=(o,c)=>c.focusManager.get(o).bind(g=>Vd(g,c.selector)),PA=(o,c,g,S)=>AA(o,g).bind(_=>g.execute(o,c,_)),r1=o=>(c,g,S,_)=>Dc(c,g,S.selector).bind(H=>o(H.candidates,H.index,_.getNumRows().getOr(S.initSize.numRows),_.getNumColumns().getOr(S.initSize.numColumns))),MA=(o,c,g)=>g.captureTab?L.some(!0):L.none(),qx=(o,c,g)=>g.onEscape(o,c),EA=r1(AT),yv=r1(Gc),f9=r1(kb),HU=r1(Lh),UU=F([Qs(Ps(Gx),os(EA,yv)),Qs(Ps(t1),Va(EA,yv)),Qs(Ps(Fm),du(f9)),Qs(Ps(Cb),pv(HU)),Qs(cf([Gg,Ps(Qm)]),MA),Qs(cf([n1,Ps(Qm)]),MA),Qs(Ps(lf.concat($h)),PA)]),WU=F([Qs(Ps(Xx),qx),Qs(Ps(lf),Kt)]);var YU=ce(cc,Ir,UU,WU,()=>L.some(Ab));const d9=(o,c,g,S,_)=>{const H=ve=>Oo(ve)==="button"&&oa(ve,"disabled")==="disabled",K=(ve,Ae,Ne)=>_(ve,Ae,S,0,Ne.length-1,Ne[Ae],Ue=>H(Ne[Ue])?K(ve,Ue,Ne):L.from(Ne[Ue]));return Dc(o,g,c).bind(ve=>{const Ae=ve.index,Ne=ve.candidates;return K(Ae,Ae,Ne)})},h9=(o,c,g,S)=>d9(o,c,g,S,(_,H,K,ve,Ae,Ne,Ue)=>{const Je=rf(H+K,ve,Ae);return Je===_?L.from(Ne):Ue(Je)}),Kx=(o,c,g,S)=>d9(o,c,g,S,(_,H,K,ve,Ae,Ne,Ue)=>{const Je=k0(H,K,ve,Ae);return Je===_?L.none():Ue(Je)}),y_=[er("selector"),Mn("getInitial",L.none),Mn("execute",_t),Eu("onEscape"),Mn("executeOnMove",!1),Mn("allowVertical",!0),Mn("allowHorizontal",!0),Mn("cycles",!0)],XU=(o,c)=>c.focusManager.get(o).bind(g=>Vd(g,c.selector)),m9=(o,c,g)=>XU(o,g).bind(S=>g.execute(o,c,S)),g9=(o,c,g)=>{c.getInitial(o).orThunk(()=>Ai(o.element,c.selector)).each(S=>{c.focusManager.set(o,S)})},p9=(o,c,g)=>(g.cycles?Kx:h9)(o,g.selector,c,-1),v9=(o,c,g)=>(g.cycles?Kx:h9)(o,g.selector,c,1),fd=o=>(c,g,S,_)=>o(c,g,S,_).bind(()=>S.executeOnMove?m9(c,g,S):L.some(!0)),GU=(o,c,g)=>g.onEscape(o,c),jU=(o,c,g,S)=>{const _=[...g.allowHorizontal?Gx:[]].concat(g.allowVertical?Fm:[]),H=[...g.allowHorizontal?t1:[]].concat(g.allowVertical?Cb:[]);return[Qs(Ps(_),fd(os(p9,v9))),Qs(Ps(H),fd(Va(p9,v9))),Qs(Ps($h),m9),Qs(Ps(lf),m9)]},qU=F([Qs(Ps(lf),Kt),Qs(Ps(Xx),GU)]);var KU=ce(y_,od.init,jU,qU,()=>L.some(g9));const _A=(o,c,g)=>L.from(o[c]).bind(S=>L.from(S[g]).map(_=>({rowIndex:c,columnIndex:g,cell:_}))),Pb=(o,c,g,S)=>{const H=o[c].length,K=k0(g,S,0,H-1);return _A(o,c,K)},RA=(o,c,g,S)=>{const _=k0(g,S,0,o.length-1),H=o[_].length,K=rf(c,0,H-1);return _A(o,_,K)},y9=(o,c,g,S)=>{const H=o[c].length,K=rf(g+S,0,H-1);return _A(o,c,K)},DA=(o,c,g,S)=>{const _=rf(g+S,0,o.length-1),H=o[_].length,K=rf(c,0,H-1);return _A(o,_,K)},$A=(o,c,g)=>Pb(o,c,g,1),b_=(o,c,g)=>Pb(o,c,g,-1),JU=(o,c,g)=>RA(o,g,c,-1),eW=(o,c,g)=>RA(o,g,c,1),tW=(o,c,g)=>y9(o,c,g,-1),nW=(o,c,g)=>y9(o,c,g,1),rW=(o,c,g)=>DA(o,g,c,-1),oW=(o,c,g)=>DA(o,g,c,1),b9=[su("selectors",[er("row"),er("cell")]),Mn("cycles",!0),Mn("previousSelector",L.none),Mn("execute",_t)],O_=(o,c,g)=>{c.previousSelector(o).orThunk(()=>{const _=c.selectors;return Ai(o.element,_.cell)}).each(_=>{c.focusManager.set(o,_)})},sW=(o,c,g)=>ad(o.element).bind(S=>g.execute(o,c,S)),aW=(o,c)=>ne(o,g=>hl(g,c.selectors.cell)),LA=(o,c)=>(g,S,_)=>{const H=_.cycles?o:c;return Vd(S,_.selectors.row).bind(K=>{const ve=hl(K,_.selectors.cell);return ql(ve,S).bind(Ae=>{const Ne=hl(g,_.selectors.row);return ql(Ne,K).bind(Ue=>{const Je=aW(Ne,_);return H(Je,Ue,Ae).map(st=>st.cell)})})})},O9=LA(b_,tW),o1=LA($A,nW),x9=LA(JU,rW),iW=LA(eW,oW),x_=F([Qs(Ps(Gx),os(O9,o1)),Qs(Ps(t1),Va(O9,o1)),Qs(Ps(Fm),du(x9)),Qs(Ps(Cb),pv(iW)),Qs(Ps(lf.concat($h)),sW)]),lW=F([Qs(Ps(lf),Kt)]);var S9=ce(b9,od.init,x_,lW,()=>L.some(O_));const w9=[er("selector"),Mn("execute",_t),Mn("moveOnTab",!1)],S_=(o,c,g)=>g.focusManager.get(o).bind(S=>g.execute(o,c,S)),T9=(o,c,g)=>{Ai(o.element,c.selector).each(S=>{c.focusManager.set(o,S)})},w_=(o,c,g)=>Kx(o,g.selector,c,-1),C9=(o,c,g)=>Kx(o,g.selector,c,1),cW=(o,c,g,S)=>g.moveOnTab?vv(w_)(o,c,g,S):L.none(),uW=(o,c,g,S)=>g.moveOnTab?vv(C9)(o,c,g,S):L.none(),T_=F([Qs(Ps(Fm),vv(w_)),Qs(Ps(Cb),vv(C9)),Qs(cf([Gg,Ps(Qm)]),cW),Qs(cf([n1,Ps(Qm)]),uW),Qs(Ps($h),S_),Qs(Ps(lf),S_)]),fW=F([Qs(Ps(lf),Kt)]);var dW=ce(w9,od.init,T_,fW,()=>L.some(T9));const hW=[Eu("onSpace"),Eu("onEnter"),Eu("onShiftEnter"),Eu("onLeft"),Eu("onRight"),Eu("onTab"),Eu("onShiftTab"),Eu("onUp"),Eu("onDown"),Eu("onEscape"),Mn("stopSpaceKeyup",!1),Ws("focusIn")],mW=(o,c,g)=>[Qs(Ps(lf),g.onSpace),Qs(cf([n1,Ps($h)]),g.onEnter),Qs(cf([Gg,Ps($h)]),g.onShiftEnter),Qs(cf([Gg,Ps(Qm)]),g.onShiftTab),Qs(cf([n1,Ps(Qm)]),g.onTab),Qs(Ps(Fm),g.onUp),Qs(Ps(Cb),g.onDown),Qs(Ps(Gx),g.onLeft),Qs(Ps(t1),g.onRight),Qs(Ps(lf),g.onSpace)],k9=(o,c,g)=>[...g.stopSpaceKeyup?[Qs(Ps(lf),Kt)]:[],Qs(Ps(Xx),g.onEscape)];var gW=ce(hW,od.init,mW,k9,o=>o.focusIn);const pW=Ve.schema(),vW=nt.schema(),A9=KU.schema(),yW=YU.schema(),bW=S9.schema(),P9=Kn.schema(),OW=dW.schema(),xW=gW.schema();var IA=Object.freeze({__proto__:null,acyclic:pW,cyclic:vW,flow:A9,flatgrid:yW,matrix:bW,execution:P9,menu:OW,special:xW});const SW=o=>En(o,"setGridSize"),yo=px({branchKey:"mode",branches:IA,name:"keying",active:{events:(o,c)=>o.handler.toEvents(o,c)},apis:{focusIn:(o,c,g)=>{c.sendFocusIn(c).fold(()=>{o.getSystem().triggerFocus(o.element,o.element)},S=>{S(o,c,g)})},setGridSize:(o,c,g,S,_)=>{SW(g)?g.setGridSize(S,_):console.error("Layout does not support setGridSize")}},state:io}),hu=(o,c)=>{Ur(()=>{BE(o,c,()=>ne(c,o.getSystem().build))},o.element)},M9=(o,c)=>{Ur(()=>{QE(o,c,()=>K$(o.element,c,o.getSystem().buildOrPatch))},o.element)},E9=(o,c,g,S)=>{Z0(c);const _=ck(o.element,g,S,o.getSystem().buildOrPatch);tT(o,_),o.syncComponents()},NA=(o,c,g)=>{const S=o.getSystem().build(g);H0(o,S,c)},wW=(o,c,g,S)=>{Rh(c),NA(o,(_,H)=>ol(_,H,g),S)},_9=(o,c,g,S)=>(c.reuseDom?M9:hu)(o,S),R9=(o,c,g,S)=>{NA(o,Vc,S)},TW=(o,c,g,S)=>{NA(o,my,S)},CW=(o,c,g,S)=>{const _=BA(o);Ze(_,K=>Jt(S.element,K.element)).each(Rh)},BA=(o,c)=>o.components(),D9=(o,c,g,S,_)=>{const H=BA(o);return L.from(H[S]).map(K=>(_.fold(()=>Rh(K),ve=>{(c.reuseDom?E9:wW)(o,K,S,ve)}),K))};var AW=Object.freeze({__proto__:null,append:R9,prepend:TW,remove:CW,replaceAt:D9,replaceBy:(o,c,g,S,_)=>{const H=BA(o);return De(H,S).bind(K=>D9(o,c,g,K,_))},set:_9,contents:BA});const Uo=dl({fields:[Wi("reuseDom",!0)],name:"replacing",apis:AW}),$9=(o,c)=>{const g=Ea(c);return dl({fields:[er("enabled")],name:o,active:{events:F(g)}})},Jo=(o,c)=>{const g=$9(o,c);return{key:o,value:{config:{},me:g,configAsRaw:F({}),initialConfig:{},state:od}}},C_=(o,c)=>{c.ignore||(cu(o.element),c.onFocus(o))};var PW=Object.freeze({__proto__:null,focus:C_,blur:(o,c)=>{c.ignore||M0(o.element)},isFocused:o=>Wy(o.element)}),L9=Object.freeze({__proto__:null,exhibit:(o,c)=>{const g=c.ignore?{}:{attributes:{tabindex:"-1"}};return ku(g)},events:o=>Ea([qn(Df(),(c,g)=>{C_(c,o),g.stop()})].concat(o.stopMousedown?[qn(go(),(c,g)=>{g.event.prevent()})]:[]))}),s1=[Rs("onFocus"),Mn("stopMousedown",!1),Mn("ignore",!1)];const Mo=dl({fields:s1,name:"focusing",active:L9,apis:PW}),I9=o=>({init:()=>{const g=X(o);return{get:()=>g.get(),set:ve=>g.set(ve),clear:()=>g.set(o),readState:()=>g.get()}}}),k_=(o,c,g)=>{const S=c.aria;S.update(o,S,g.get())},EW=(o,c,g)=>{c.toggleClass.each(S=>{g.get()?ki(o.element,S):Xa(o.element,S)})},PT=(o,c,g,S)=>{const _=g.get();g.set(S),EW(o,c,g),k_(o,c,g),_!==S&&c.onToggled(o,S)},N9=(o,c,g)=>{PT(o,c,g,!g.get())},_W=(o,c,g)=>{PT(o,c,g,!0)},B9=(o,c,g)=>{PT(o,c,g,!1)},A_=(o,c,g)=>g.get(),QA=(o,c,g)=>{PT(o,c,g,c.selected)};var RW=Object.freeze({__proto__:null,onLoad:QA,toggle:N9,isOn:A_,on:_W,off:B9,set:PT}),Q9=Object.freeze({__proto__:null,exhibit:()=>ku({}),events:(o,c)=>{const g=P0(o,c,N9),S=gx(o,c,QA);return Ea(Ie([o.toggleOnExecute?[g]:[],[S]]))}});const $W=(o,c,g)=>{Dr(o.element,"aria-pressed",g),c.syncWithExpanded&&Jx(o,c,g)},LW=(o,c,g)=>{Dr(o.element,"aria-selected",g)},MT=(o,c,g)=>{Dr(o.element,"aria-checked",g)},Jx=(o,c,g)=>{Dr(o.element,"aria-expanded",g)};var F9=[Mn("selected",!1),Ws("toggleClass"),Mn("toggleOnExecute",!0),Rs("onToggled"),Tc("aria",{mode:"none"},Os("mode",{pressed:[Mn("syncWithExpanded",!1),ha("update",$W)],checked:[ha("update",MT)],expanded:[ha("update",Jx)],selected:[ha("update",LW)],none:[ha("update",M)]}))];const as=dl({fields:F9,name:"toggling",active:Q9,apis:RW,state:I9(!1)}),bv=()=>{const o=(c,g)=>{g.stop(),xm(c)};return[qn($i(),o),qn(Ac(),o),Sm(no()),Sm(go())]},Vm=o=>{const c=g=>rd((S,_)=>{g(S),_.stop()});return Ea(Ie([o.map(c).toArray(),bv()]))},V9="alloy.item-hover",z9="alloy.item-focus",P_="alloy.item-toggled",qg=o=>{(ad(o.element).isNone()||Mo.isFocused(o))&&(Mo.isFocused(o)||Mo.focus(o),vo(o,V9,{item:o}))},FA=o=>{vo(o,z9,{item:o})},IW=(o,c)=>{vo(o,P_,{item:o,state:c})},M_=F(V9),Z9=F(z9),H9=F(P_),E_=o=>o.toggling.map(c=>c.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),U9=o=>({aria:{mode:"checked"},...wt(o,(c,g)=>g!=="exclusive"),onToggled:(c,g)=>{w(o.onToggled)&&o.onToggled(c,g),IW(c,g)}}),NW=o=>({dom:o.dom,domModification:{...o.domModification,attributes:{role:E_(o),...o.domModification.attributes,"aria-haspopup":o.hasSubmenu,...o.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:If.augment(o.itemBehaviours,[o.toggling.fold(as.revoke,c=>as.config(U9(c))),Mo.config({ignore:o.ignoreFocus,stopMousedown:o.ignoreFocus,onFocus:c=>{FA(c)}}),yo.config({mode:"execution"}),Fr.config({store:{mode:"memory",initialValue:o.data}}),Jo("item-type-events",[...bv(),qn(Lr(),qg),qn(ta(),Mo.focus)])]),components:o.components,eventOrder:o.eventOrder}),BW=[er("data"),er("components"),er("dom"),Mn("hasSubmenu",!1),Ws("toggling"),If.field("itemBehaviours",[as,Mo,yo,Fr]),Mn("ignoreFocus",!1),Mn("domModification",{}),ha("builder",NW),Mn("eventOrder",{})],QW=o=>({dom:o.dom,components:o.components,events:Ea([DM(ta())])}),VA=[er("dom"),er("components"),ha("builder",QW)],ET=F("item-widget"),_T=F([ic({name:"widget",overrides:o=>({behaviours:pr([Fr.config({store:{mode:"manual",getValue:c=>o.data,setValue:M}})])})})]),FW=o=>{const c=dT(ET(),o,_T()),g=Hx(ET(),o,c.internals()),S=H=>ka(H,o,"widget").map(K=>(yo.focusIn(K),K)),_=(H,K)=>gv(K.event.target)?L.none():(()=>(o.autofocus&&K.setSource(H.element),L.none()))();return{dom:o.dom,components:g,domModification:o.domModification,events:Ea([rd((H,K)=>{S(H).each(ve=>{K.stop()})}),qn(Lr(),qg),qn(ta(),(H,K)=>{o.autofocus?S(H):Mo.focus(H)})]),behaviours:If.augment(o.widgetBehaviours,[Fr.config({store:{mode:"memory",initialValue:o.data}}),Mo.config({ignore:o.ignoreFocus,onFocus:H=>{FA(H)}}),yo.config({mode:"special",focusIn:o.autofocus?H=>{S(H)}:Tw(),onLeft:_,onRight:_,onEscape:(H,K)=>!Mo.isFocused(H)&&!o.autofocus?(Mo.focus(H),L.some(!0)):(o.autofocus&&K.setSource(H.element),L.none())})])}},VW=[er("uid"),er("data"),er("components"),er("dom"),Mn("autofocus",!1),Mn("ignoreFocus",!1),If.field("widgetBehaviours",[Fr,Mo,yo]),Mn("domModification",{}),pT(_T()),ha("builder",FW)],W9=Os("type",{widget:VW,item:BW,separator:VA}),Y9=(o,c)=>({mode:"flatgrid",selector:"."+o.markers.item,initSize:{numColumns:c.initSize.numColumns,numRows:c.initSize.numRows},focusManager:o.focusManager}),X9=(o,c)=>({mode:"matrix",selectors:{row:c.rowSelector,cell:"."+o.markers.item},previousSelector:c.previousSelector,focusManager:o.focusManager}),G9=(o,c)=>({mode:"menu",selector:"."+o.markers.item,moveOnTab:c.moveOnTab,focusManager:o.focusManager}),zW=F([yb({factory:{sketch:o=>{const c=El("menu.spec item",W9,o);return c.builder(c)}},name:"items",unit:"item",defaults:(o,c)=>vn(c,"uid")?c:{...c,uid:c0("item")},overrides:(o,c)=>({type:c.type,ignoreFocus:o.fakeFocus,domModification:{classes:[o.markers.item]}})})]),__=F([er("value"),er("items"),er("dom"),er("components"),Mn("eventOrder",{}),el("menuBehaviours",[Ys,Fr,xs,yo]),Tc("movement",{mode:"menu",moveOnTab:!0},Os("mode",{grid:[dw(),ha("config",Y9)],matrix:[ha("config",X9),er("rowSelector"),Mn("previousSelector",L.none)],menu:[Mn("moveOnTab",!0),ha("config",G9)]})),GM(),Mn("fakeFocus",!1),Mn("focusManager",A()),Rs("onHighlight"),Rs("onDehighlight")]),j9=F("alloy.menu-focus"),ZW=(o,c)=>{const g=hl(o.element,'[role="menuitemradio"][aria-checked="true"]');pe(g,S=>{Jt(S,c.element)||o.getSystem().getByDom(S).each(_=>{as.off(_)})})},HW=(o,c,g,S)=>({uid:o.uid,dom:o.dom,markers:o.markers,behaviours:Ni(o.menuBehaviours,[Ys.config({highlightClass:o.markers.selectedItem,itemClass:o.markers.item,onHighlight:o.onHighlight,onDehighlight:o.onDehighlight}),Fr.config({store:{mode:"memory",initialValue:o.value}}),xs.config({find:L.some}),yo.config(o.movement.config(o,o.movement))]),events:Ea([qn(Z9(),(_,H)=>{const K=H.event;_.getSystem().getByDom(K.target).each(ve=>{Ys.highlight(_,ve),H.stop(),vo(_,j9(),{menu:_,item:ve})})}),qn(M_(),(_,H)=>{const K=H.event.item;Ys.highlight(_,K)}),qn(H9(),(_,H)=>{const{item:K,state:ve}=H.event;ve&&oa(K.element,"role")==="menuitemradio"&&ZW(_,K)})]),components:c,eventOrder:o.eventOrder,domModification:{attributes:{role:"menu"}}}),Eb=lc({name:"Menu",configFields:__(),partFields:zW(),factory:HW}),q9=o=>et(o,(c,g)=>({k:c,v:g})),K9=(o,c,g,S)=>Bt(g,S).bind(_=>Bt(o,_).bind(H=>{const K=K9(o,c,g,H);return L.some([H].concat(K))})).getOr([]),UW=(o,c)=>{const g={};Ye(o,(K,ve)=>{pe(K,Ae=>{g[Ae]=ve})});const S=c,_=q9(c),H=je(_,(K,ve)=>[ve].concat(K9(g,S,_,ve)));return je(g,K=>Bt(H,K).getOr([K]))},J9=()=>{const o=X({}),c=X({}),g=X({}),S=gs(),_=X({}),H=()=>{o.set({}),c.set({}),g.set({}),S.clear()},K=()=>S.get().isNone(),ve=(mr,Gn)=>{c.set({...c.get(),[mr]:{type:"prepared",menu:Gn}})},Ae=(mr,Gn,Or,Mr)=>{S.set(mr),o.set(Or),c.set(Gn),_.set(Mr);const is=UW(Mr,Or);g.set(is)},Ne=mr=>Gt(o.get(),(Gn,Or)=>Gn===mr),Ue=(mr,Gn,Or)=>qt(mr).bind(Mr=>Ne(mr).bind(is=>Gn(is).map(Gr=>({triggeredMenu:Mr,triggeringItem:Gr,triggeringPath:Or})))),Je=(mr,Gn)=>{const Or=xe(mn(mr).toArray(),Mr=>qt(Mr).isSome());return Bt(g.get(),mr).bind(Mr=>{const is=te(Or.concat(Mr)),Gr=re(is,(Io,_o)=>Ue(Io,Gn,is.slice(0,_o+1)).fold(()=>ln(S.get(),Io)?[]:[L.none()],na=>[L.some(na)]));return wn(Gr)})},st=mr=>Bt(o.get(),mr).map(Gn=>{const Or=Bt(g.get(),mr).getOr([]);return[Gn].concat(Or)}),ht=mr=>Bt(g.get(),mr).bind(Gn=>Gn.length>1?L.some(Gn.slice(1)):L.none()),At=mr=>Bt(g.get(),mr),qt=mr=>Dn(mr).bind(e2),Dn=mr=>Bt(c.get(),mr),mn=mr=>Bt(o.get(),mr);return{setMenuBuilt:ve,setContents:Ae,expand:st,refresh:At,collapse:ht,lookupMenu:Dn,lookupItem:mn,otherMenus:mr=>{const Gn=_.get();return se(ct(Gn),mr)},getPrimary:()=>S.get().bind(qt),getMenus:()=>c.get(),clear:H,isClear:K,getTriggeringPath:Je}},e2=o=>o.type==="prepared"?L.some(o.menu):L.none(),eL={init:J9,extractPreparedMenu:e2},t2=Kr("tiered-menu-item-highlight"),zA=Kr("tiered-menu-item-dehighlight");var mu;(function(o){o[o.HighlightMenuAndItem=0]="HighlightMenuAndItem",o[o.HighlightJustMenu=1]="HighlightJustMenu",o[o.HighlightNone=2]="HighlightNone"})(mu||(mu={}));const tL=(o,c)=>{const g=gs(),S=(Pr,oo,No)=>je(No,(Qo,To)=>{const Yo=()=>Eb.sketch({...Qo,value:To,markers:o.markers,fakeFocus:o.fakeFocus,onHighlight:(Ma,Fs)=>{vo(Ma,t2,{menuComp:Ma,itemComp:Fs})},onDehighlight:(Ma,Fs)=>{vo(Ma,zA,{menuComp:Ma,itemComp:Fs})},focusManager:o.fakeFocus?$():A()});return To===oo?{type:"prepared",menu:Pr.getSystem().build(Yo())}:{type:"notbuilt",nbMenu:Yo}}),_=eL.init(),H=Pr=>{const oo=S(Pr,o.data.primary,o.data.menus),No=Ae();return _.setContents(o.data.primary,oo,o.data.expansions,No),_.getPrimary()},K=Pr=>Fr.getValue(Pr).value,ve=(Pr,oo,No)=>Xe(oo,Qo=>{if(!Qo.getSystem().isConnected())return L.none();const To=Ys.getCandidates(Qo);return Ze(To,Yo=>K(Yo)===No)}),Ae=Pr=>je(o.data.menus,(oo,No)=>re(oo.items,Qo=>Qo.type==="separator"?[]:[Qo.data.value])),Ne=Ys.highlight,Ue=(Pr,oo)=>{Ne(Pr,oo),Ys.getHighlighted(oo).orThunk(()=>Ys.getFirst(oo)).each(No=>{o.fakeFocus?Ys.highlight(oo,No):HO(Pr,No.element,ta())})},Je=(Pr,oo)=>an(ne(oo,No=>Pr.lookupMenu(No).bind(Qo=>Qo.type==="prepared"?L.some(Qo.menu):L.none()))),st=(Pr,oo,No)=>{const Qo=Je(oo,oo.otherMenus(No));pe(Qo,To=>{tf(To.element,[o.markers.backgroundMenu]),o.stayInDom||Uo.remove(Pr,To)})},ht=Pr=>g.get().getOrThunk(()=>{const oo={},No=hl(Pr.element,`.${o.markers.item}`),Qo=xe(No,To=>oa(To,"aria-haspopup")==="true");return pe(Qo,To=>{Pr.getSystem().getByDom(To).each(Yo=>{const Ma=K(Yo);oo[Ma]=Yo})}),g.set(oo),oo}),At=(Pr,oo)=>{const No=ht(Pr);Ye(No,(Qo,To)=>{const Yo=be(oo,To);Dr(Qo.element,"aria-expanded",Yo)})},qt=(Pr,oo,No)=>L.from(No[0]).bind(Qo=>oo.lookupMenu(Qo).bind(To=>{if(To.type==="notbuilt")return L.none();{const Yo=To.menu,Ma=Je(oo,No.slice(1));return pe(Ma,Fs=>{ki(Fs.element,o.markers.backgroundMenu)}),Js(Yo.element)||Uo.append(Pr,nf(Yo)),tf(Yo.element,[o.markers.backgroundMenu]),Ue(Pr,Yo),st(Pr,oo,No),L.some(Yo)}}));let Dn;(function(Pr){Pr[Pr.HighlightSubmenu=0]="HighlightSubmenu",Pr[Pr.HighlightParent=1]="HighlightParent"})(Dn||(Dn={}));const mn=(Pr,oo,No)=>{if(No.type==="notbuilt"){const Qo=Pr.getSystem().build(No.nbMenu());return _.setMenuBuilt(oo,Qo),Qo}else return No.menu},on=(Pr,oo,No=Dn.HighlightSubmenu)=>{if(oo.hasConfigured(Co)&&Co.isDisabled(oo))return L.some(oo);{const Qo=K(oo);return _.expand(Qo).bind(To=>(At(Pr,To),L.from(To[0]).bind(Yo=>_.lookupMenu(Yo).bind(Ma=>{const Fs=mn(Pr,Yo,Ma);return Js(Fs.element)||Uo.append(Pr,nf(Fs)),o.onOpenSubmenu(Pr,oo,Fs,te(To)),No===Dn.HighlightSubmenu?(Ys.highlightFirst(Fs),qt(Pr,_,To)):(Ys.dehighlightAll(Fs),L.some(oo))}))))}},kn=(Pr,oo)=>{const No=K(oo);return _.collapse(No).bind(Qo=>(At(Pr,Qo),qt(Pr,_,Qo).map(To=>(o.onCollapseMenu(Pr,oo,To),To))))},Zn=(Pr,oo)=>{const No=K(oo);return _.refresh(No).bind(Qo=>(At(Pr,Qo),qt(Pr,_,Qo)))},mr=(Pr,oo)=>gv(oo.element)?L.none():on(Pr,oo,Dn.HighlightSubmenu),Gn=(Pr,oo)=>gv(oo.element)?L.none():kn(Pr,oo),Or=(Pr,oo)=>kn(Pr,oo).orThunk(()=>o.onEscape(Pr,oo).map(()=>Pr)),Mr=Pr=>(oo,No)=>Vd(No.getSource(),`.${o.markers.item}`).bind(Qo=>oo.getSystem().getByDom(Qo).toOptional().bind(To=>Pr(oo,To).map(ie))),is=Ea([qn(j9(),(Pr,oo)=>{const No=oo.event.item;_.lookupItem(K(No)).each(()=>{const Qo=oo.event.menu;Ys.highlight(Pr,Qo);const To=K(oo.event.item);_.refresh(To).each(Yo=>st(Pr,_,Yo))})}),rd((Pr,oo)=>{const No=oo.event.target;Pr.getSystem().getByDom(No).each(Qo=>{K(Qo).indexOf("collapse-item")===0&&kn(Pr,Qo),on(Pr,Qo,Dn.HighlightSubmenu).fold(()=>{o.onExecute(Pr,Qo)},M)})}),Ca((Pr,oo)=>{H(Pr).each(No=>{Uo.append(Pr,nf(No)),o.onOpenMenu(Pr,No),o.highlightOnOpen===mu.HighlightMenuAndItem?Ue(Pr,No):o.highlightOnOpen===mu.HighlightJustMenu&&Ne(Pr,No)})}),qn(t2,(Pr,oo)=>{o.onHighlightItem(Pr,oo.event.menuComp,oo.event.itemComp)}),qn(zA,(Pr,oo)=>{o.onDehighlightItem(Pr,oo.event.menuComp,oo.event.itemComp)}),...o.navigateOnHover?[qn(M_(),(Pr,oo)=>{const No=oo.event.item;Zn(Pr,No),on(Pr,No,Dn.HighlightParent),o.onHover(Pr,No)})]:[]]),Gr=Pr=>Ys.getHighlighted(Pr).bind(Ys.getHighlighted),Io=Pr=>{Gr(Pr).each(oo=>{kn(Pr,oo)})},_o=Pr=>{_.getPrimary().each(oo=>{Ue(Pr,oo)})},na=Pr=>L.from(Pr.components()[0]).filter(oo=>oa(oo.element,"role")==="menu"),Ns={collapseMenu:Io,highlightPrimary:_o,repositionMenus:Pr=>{_.getPrimary().bind(No=>Gr(Pr).bind(Qo=>{const To=K(Qo),Yo=Nt(_.getMenus()),Ma=an(ne(Yo,eL.extractPreparedMenu));return _.getTriggeringPath(To,Fs=>ve(Pr,Ma,Fs))}).map(Qo=>({primary:No,triggeringPath:Qo}))).fold(()=>{na(Pr).each(No=>{o.onRepositionMenu(Pr,No,[])})},({primary:No,triggeringPath:Qo})=>{o.onRepositionMenu(Pr,No,Qo)})}};return{uid:o.uid,dom:o.dom,markers:o.markers,behaviours:Ni(o.tmenuBehaviours,[yo.config({mode:"special",onRight:Mr(mr),onLeft:Mr(Gn),onEscape:Mr(Or),focusIn:(Pr,oo)=>{_.getPrimary().each(No=>{HO(Pr,No.element,ta())})}}),Ys.config({highlightClass:o.markers.selectedMenu,itemClass:o.markers.menu}),xs.config({find:Pr=>Ys.getHighlighted(Pr)}),Uo.config({})]),eventOrder:o.eventOrder,apis:Ns,events:is}},WW=F("collapse-item"),YW=(o,c,g)=>({primary:o,menus:c,expansions:g}),nL=(o,c)=>({primary:o,menus:vt(o,c),expansions:{}}),XW=o=>({value:Kr(WW()),meta:{text:o}}),a1=_u({name:"TieredMenu",configFields:[fw("onExecute"),fw("onEscape"),zd("onOpenMenu"),zd("onOpenSubmenu"),Rs("onRepositionMenu"),Rs("onCollapseMenu"),Mn("highlightOnOpen",mu.HighlightMenuAndItem),su("data",[er("primary"),er("menus"),er("expansions")]),Mn("fakeFocus",!1),Rs("onHighlightItem"),Rs("onDehighlightItem"),Rs("onHover"),Qy(),er("dom"),Mn("navigateOnHover",!0),Mn("stayInDom",!1),el("tmenuBehaviours",[yo,Ys,xs,Uo]),Mn("eventOrder",{})],apis:{collapseMenu:(o,c)=>{o.collapseMenu(c)},highlightPrimary:(o,c)=>{o.highlightPrimary(c)},repositionMenus:(o,c)=>{o.repositionMenus(c)}},factory:tL,extraApis:{tieredData:YW,singleData:nL,collapseItem:XW}}),GW=(o,c,g,S,_)=>{const H=()=>o.lazySink(c),K=S.type==="horizontal"?{layouts:{onLtr:()=>mx(),onRtl:()=>Sw()}}:{},ve=Ne=>Ne.length===2,Ae=Ne=>ve(Ne)?K:{};return a1.sketch({dom:{tag:"div"},data:S.data,markers:S.menu.markers,highlightOnOpen:S.menu.highlightOnOpen,fakeFocus:S.menu.fakeFocus,onEscape:()=>(As.close(c),o.onEscape.map(Ne=>Ne(c)),L.some(!0)),onExecute:()=>L.some(!0),onOpenMenu:(Ne,Ue)=>{ac.positionWithinBounds(H().getOrDie(),Ue,g,_())},onOpenSubmenu:(Ne,Ue,Je,st)=>{const ht=H().getOrDie();ac.position(ht,Je,{anchor:{type:"submenu",item:Ue,...Ae(st)}})},onRepositionMenu:(Ne,Ue,Je)=>{const st=H().getOrDie();ac.positionWithinBounds(st,Ue,g,_()),pe(Je,ht=>{const At=Ae(ht.triggeringPath);ac.position(st,ht.triggeredMenu,{anchor:{type:"submenu",item:ht.triggeringItem,...At}})})}})},jW=(o,c)=>{const g=(st,ht)=>o.getRelated(st).exists(qt=>Am(qt,ht)),S=(st,ht)=>{As.setContent(st,ht)},_=(st,ht,At)=>{const qt=L.none;H(st,ht,At,qt)},H=(st,ht,At,qt)=>{const Dn=o.lazySink(st).getOrDie();As.openWhileCloaked(st,ht,()=>ac.positionWithinBounds(Dn,st,At,qt())),Fr.setValue(st,L.some({mode:"position",config:At,getBounds:qt}))},K=(st,ht,At)=>{ve(st,ht,At,L.none)},ve=(st,ht,At,qt)=>{const Dn=GW(o,st,ht,At,qt);As.open(st,Dn),Fr.setValue(st,L.some({mode:"menu",menu:Dn}))},Ae=st=>{As.isOpen(st)&&(Fr.setValue(st,L.none()),As.close(st))},Ne=st=>As.getState(st),Ue=st=>{As.isOpen(st)&&Fr.getValue(st).each(ht=>{switch(ht.mode){case"menu":As.getState(st).each(a1.repositionMenus);break;case"position":const At=o.lazySink(st).getOrDie();ac.positionWithinBounds(At,st,ht.config,ht.getBounds());break}})},Je={setContent:S,showAt:_,showWithinBounds:H,showMenuAt:K,showMenuWithinBounds:ve,hide:Ae,getContent:Ne,reposition:Ue,isOpen:As.isOpen};return{uid:o.uid,dom:o.dom,behaviours:Ni(o.inlineBehaviours,[As.config({isPartOf:(st,ht,At)=>Am(ht,At)||g(st,At),getAttachPoint:st=>o.lazySink(st).getOrDie(),onOpen:st=>{o.onShow(st)},onClose:st=>{o.onHide(st)}}),Fr.config({store:{mode:"memory",initialValue:L.none()}}),lu.config({channels:{...cb({isExtraPart:c.isExtraPart,...o.fireDismissalEventInstead.map(st=>({fireEventInstead:{event:st.event}})).getOr({})}),...W0({...o.fireRepositionEventInstead.map(st=>({fireEventInstead:{event:st.event}})).getOr({}),doReposition:Ue})}})]),eventOrder:o.eventOrder,apis:Je}},ri=_u({name:"InlineView",configFields:[er("lazySink"),Rs("onShow"),Rs("onHide"),Jf("onEscape"),el("inlineBehaviours",[As,Fr,lu]),wc("fireDismissalEventInstead",[Mn("event",Ag())]),wc("fireRepositionEventInstead",[Mn("event",KC())]),Mn("getRelated",L.none),Mn("isExtraPart",Y),Mn("eventOrder",L.none)],factory:jW,apis:{showAt:(o,c,g,S)=>{o.showAt(c,g,S)},showWithinBounds:(o,c,g,S,_)=>{o.showWithinBounds(c,g,S,_)},showMenuAt:(o,c,g,S)=>{o.showMenuAt(c,g,S)},showMenuWithinBounds:(o,c,g,S,_)=>{o.showMenuWithinBounds(c,g,S,_)},hide:(o,c)=>{o.hide(c)},isOpen:(o,c)=>o.isOpen(c),getContent:(o,c)=>o.getContent(c),setContent:(o,c,g)=>{o.setContent(c,g)},reposition:(o,c)=>{o.reposition(c)}}});var _b=tinymce.util.Tools.resolve("tinymce.util.Delay");const Dl=_u({name:"Button",factory:o=>{const c=Vm(o.action),g=o.dom.tag,S=H=>Bt(o.dom,"attributes").bind(K=>Bt(K,H)),_=()=>{if(g==="button"){const H=S("type").getOr("button"),K=S("role").map(ve=>({role:ve})).getOr({});return{type:H,...K}}else return{role:o.role.getOr(S("role").getOr("button"))}};return{uid:o.uid,dom:o.dom,components:o.components,events:c,behaviours:If.augment(o.buttonBehaviours,[Mo.config({}),yo.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:_()},eventOrder:o.eventOrder}},configFields:[Mn("uid",void 0),er("dom"),Mn("components",[]),If.field("buttonBehaviours",[Mo,yo]),Ws("action"),Ws("role"),Mn("eventOrder",{})]}),qW=o=>{const c=o.dom.attributes!==void 0?o.dom.attributes:[];return ke(c,(g,S)=>S.name==="class"?g:{...g,[S.name]:S.value},{})},KW=o=>Array.prototype.slice.call(o.dom.classList,0),Ov=o=>{const c=zt.fromHtml(o),g=qr(c),S=qW(c),_=KW(c),H=g.length===0?{}:{innerHtml:KS(c)};return{tag:Oo(c),classes:_,attributes:S,...H}},ia=o=>{const c=JE(o)&&En(o,"uid")?o.uid:c0("memento");return{get:H=>H.getSystem().getByUid(c).getOrDie(),getOpt:H=>H.getSystem().getByUid(c).toOptional(),asSpec:()=>({...o,uid:c})}},{entries:R_,setPrototypeOf:D_,isFrozen:JW,getPrototypeOf:eY,getOwnPropertyDescriptor:tY}=Object;let{freeze:Bf,seal:zm,create:nY}=Object,{apply:ZA,construct:$_}=typeof Reflect<"u"&&Reflect;ZA||(ZA=function(c,g,S){return c.apply(g,S)}),Bf||(Bf=function(c){return c}),zm||(zm=function(c){return c}),$_||($_=function(c,g){return new c(...g)});const rY=Nh(Array.prototype.forEach),oY=Nh(Array.prototype.pop),RT=Nh(Array.prototype.push),HA=Nh(String.prototype.toLowerCase),xv=Nh(String.prototype.toString),sY=Nh(String.prototype.match),Zm=Nh(String.prototype.replace),Rb=Nh(String.prototype.indexOf),oL=Nh(String.prototype.trim),Gd=Nh(RegExp.prototype.test),Ih=aY(TypeError);function Nh(o){return function(c){for(var g=arguments.length,S=new Array(g>1?g-1:0),_=1;_/gm),sL=zm(/\${[\w\W]*}/gm),fY=zm(/^data-[\-\w.\u00B7-\uFFFF]/),Q_=zm(/^aria-[\-\w]+$/),F_=zm(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dY=zm(/^(?:\w+script|data):/i),hY=zm(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),aL=zm(/^html$/i);var YA=Object.freeze({__proto__:null,MUSTACHE_EXPR:cY,ERB_EXPR:uY,TMPLIT_EXPR:sL,DATA_ATTR:fY,ARIA_ATTR:Q_,IS_ALLOWED_URI:F_,IS_SCRIPT_OR_DATA:dY,ATTR_WHITESPACE:hY,DOCTYPE_NAME:aL});const mY=()=>typeof window>"u"?null:window,NT=function(c,g){if(typeof c!="object"||typeof c.createPolicy!="function")return null;let S=null;const _="data-tt-policy-suffix";g&&g.hasAttribute(_)&&(S=g.getAttribute(_));const H="dompurify"+(S?"#"+S:"");try{return c.createPolicy(H,{createHTML(K){return K},createScriptURL(K){return K}})}catch{return console.warn("TrustedTypes policy "+H+" could not be created."),null}};function BT(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mY();const c=ws=>BT(ws);if(c.version="3.0.5",c.removed=[],!o||!o.document||o.document.nodeType!==9)return c.isSupported=!1,c;const g=o.document,S=g.currentScript;let{document:_}=o;const{DocumentFragment:H,HTMLTemplateElement:K,Node:ve,Element:Ae,NodeFilter:Ne,NamedNodeMap:Ue=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:Je,DOMParser:st,trustedTypes:ht}=o,At=Ae.prototype,qt=DT(At,"cloneNode"),Dn=DT(At,"nextSibling"),mn=DT(At,"childNodes"),on=DT(At,"parentNode");if(typeof K=="function"){const ws=_.createElement("template");ws.content&&ws.content.ownerDocument&&(_=ws.content.ownerDocument)}let kn,Zn="";const{implementation:mr,createNodeIterator:Gn,createDocumentFragment:Or,getElementsByTagName:Mr}=_,{importNode:is}=g;let Gr={};c.isSupported=typeof R_=="function"&&typeof on=="function"&&mr&&mr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Io,ERB_EXPR:_o,TMPLIT_EXPR:na,DATA_ATTR:wo,ARIA_ATTR:Ns,IS_SCRIPT_OR_DATA:Pr,ATTR_WHITESPACE:oo}=YA;let{IS_ALLOWED_URI:No}=YA,Qo=null;const To=Ds({},[...L_,...I_,...$T,...N_,...LT]);let Yo=null;const Ma=Ds({},[...UA,...WA,...B_,...IT]);let Fs=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Kl=null,vf=null,ih=!0,Kh=!0,R1=!1,iO=!0,Km=!1,Rv=!1,sC=!1,oD=!1,eS=!1,kP=!1,_z=!1,Ice=!0,Nce=!1;const cxe="user-content-";let Jne=!0,sD=!1,AP={},PP=null;const Bce=Ds({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qce=null;const Fce=Ds({},["audio","video","img","source","image","track"]);let ere=null;const Vce=Ds({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rz="http://www.w3.org/1998/Math/MathML",Dz="http://www.w3.org/2000/svg",lO="http://www.w3.org/1999/xhtml";let MP=lO,tre=!1,nre=null;const uxe=Ds({},[Rz,Dz,lO],xv);let aC;const fxe=["application/xhtml+xml","text/html"],dxe="text/html";let yf,EP=null;const hxe=_.createElement("form"),zce=function(Vn){return Vn instanceof RegExp||Vn instanceof Function},rre=function(Vn){if(!(EP&&EP===Vn)){if((!Vn||typeof Vn!="object")&&(Vn={}),Vn=Db(Vn),aC=fxe.indexOf(Vn.PARSER_MEDIA_TYPE)===-1?aC=dxe:aC=Vn.PARSER_MEDIA_TYPE,yf=aC==="application/xhtml+xml"?xv:HA,Qo="ALLOWED_TAGS"in Vn?Ds({},Vn.ALLOWED_TAGS,yf):To,Yo="ALLOWED_ATTR"in Vn?Ds({},Vn.ALLOWED_ATTR,yf):Ma,nre="ALLOWED_NAMESPACES"in Vn?Ds({},Vn.ALLOWED_NAMESPACES,xv):uxe,ere="ADD_URI_SAFE_ATTR"in Vn?Ds(Db(Vce),Vn.ADD_URI_SAFE_ATTR,yf):Vce,Qce="ADD_DATA_URI_TAGS"in Vn?Ds(Db(Fce),Vn.ADD_DATA_URI_TAGS,yf):Fce,PP="FORBID_CONTENTS"in Vn?Ds({},Vn.FORBID_CONTENTS,yf):Bce,Kl="FORBID_TAGS"in Vn?Ds({},Vn.FORBID_TAGS,yf):{},vf="FORBID_ATTR"in Vn?Ds({},Vn.FORBID_ATTR,yf):{},AP="USE_PROFILES"in Vn?Vn.USE_PROFILES:!1,ih=Vn.ALLOW_ARIA_ATTR!==!1,Kh=Vn.ALLOW_DATA_ATTR!==!1,R1=Vn.ALLOW_UNKNOWN_PROTOCOLS||!1,iO=Vn.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Km=Vn.SAFE_FOR_TEMPLATES||!1,Rv=Vn.WHOLE_DOCUMENT||!1,eS=Vn.RETURN_DOM||!1,kP=Vn.RETURN_DOM_FRAGMENT||!1,_z=Vn.RETURN_TRUSTED_TYPE||!1,oD=Vn.FORCE_BODY||!1,Ice=Vn.SANITIZE_DOM!==!1,Nce=Vn.SANITIZE_NAMED_PROPS||!1,Jne=Vn.KEEP_CONTENT!==!1,sD=Vn.IN_PLACE||!1,No=Vn.ALLOWED_URI_REGEXP||F_,MP=Vn.NAMESPACE||lO,Fs=Vn.CUSTOM_ELEMENT_HANDLING||{},Vn.CUSTOM_ELEMENT_HANDLING&&zce(Vn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Fs.tagNameCheck=Vn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Vn.CUSTOM_ELEMENT_HANDLING&&zce(Vn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Fs.attributeNameCheck=Vn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Vn.CUSTOM_ELEMENT_HANDLING&&typeof Vn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Fs.allowCustomizedBuiltInElements=Vn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Km&&(Kh=!1),kP&&(eS=!0),AP&&(Qo=Ds({},[...LT]),Yo=[],AP.html===!0&&(Ds(Qo,L_),Ds(Yo,UA)),AP.svg===!0&&(Ds(Qo,I_),Ds(Yo,WA),Ds(Yo,IT)),AP.svgFilters===!0&&(Ds(Qo,$T),Ds(Yo,WA),Ds(Yo,IT)),AP.mathMl===!0&&(Ds(Qo,N_),Ds(Yo,B_),Ds(Yo,IT))),Vn.ADD_TAGS&&(Qo===To&&(Qo=Db(Qo)),Ds(Qo,Vn.ADD_TAGS,yf)),Vn.ADD_ATTR&&(Yo===Ma&&(Yo=Db(Yo)),Ds(Yo,Vn.ADD_ATTR,yf)),Vn.ADD_URI_SAFE_ATTR&&Ds(ere,Vn.ADD_URI_SAFE_ATTR,yf),Vn.FORBID_CONTENTS&&(PP===Bce&&(PP=Db(PP)),Ds(PP,Vn.FORBID_CONTENTS,yf)),Jne&&(Qo["#text"]=!0),Rv&&Ds(Qo,["html","head","body"]),Qo.table&&(Ds(Qo,["tbody"]),delete Kl.tbody),Vn.TRUSTED_TYPES_POLICY){if(typeof Vn.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ih('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Vn.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ih('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');kn=Vn.TRUSTED_TYPES_POLICY,Zn=kn.createHTML("")}else kn===void 0&&(kn=NT(ht,S)),kn!==null&&typeof Zn=="string"&&(Zn=kn.createHTML(""));Bf&&Bf(Vn),EP=Vn}},Zce=Ds({},["mi","mo","mn","ms","mtext"]),Hce=Ds({},["foreignobject","desc","title","annotation-xml"]),mxe=Ds({},["title","style","font","a","script"]),$z=Ds({},I_);Ds($z,$T),Ds($z,iY);const ore=Ds({},N_);Ds(ore,lY);const gxe=function(Vn){let ho=on(Vn);(!ho||!ho.tagName)&&(ho={namespaceURI:MP,tagName:"template"});const Fo=HA(Vn.tagName),nl=HA(ho.tagName);return nre[Vn.namespaceURI]?Vn.namespaceURI===Dz?ho.namespaceURI===lO?Fo==="svg":ho.namespaceURI===Rz?Fo==="svg"&&(nl==="annotation-xml"||Zce[nl]):!!$z[Fo]:Vn.namespaceURI===Rz?ho.namespaceURI===lO?Fo==="math":ho.namespaceURI===Dz?Fo==="math"&&Hce[nl]:!!ore[Fo]:Vn.namespaceURI===lO?ho.namespaceURI===Dz&&!Hce[nl]||ho.namespaceURI===Rz&&!Zce[nl]?!1:!ore[Fo]&&(mxe[Fo]||!$z[Fo]):!!(aC==="application/xhtml+xml"&&nre[Vn.namespaceURI]):!1},iC=function(Vn){RT(c.removed,{element:Vn});try{Vn.parentNode.removeChild(Vn)}catch{Vn.remove()}},aD=function(Vn,ho){try{RT(c.removed,{attribute:ho.getAttributeNode(Vn),from:ho})}catch{RT(c.removed,{attribute:null,from:ho})}if(ho.removeAttribute(Vn),Vn==="is"&&!Yo[Vn])if(eS||kP)try{iC(ho)}catch{}else try{ho.setAttribute(Vn,"")}catch{}},Uce=function(Vn){let ho,Fo;if(oD)Vn=""+Vn;else{const mp=sY(Vn,/^[\r\n\t ]+/);Fo=mp&&mp[0]}aC==="application/xhtml+xml"&&MP===lO&&(Vn=''+Vn+"");const nl=kn?kn.createHTML(Vn):Vn;if(MP===lO)try{ho=new st().parseFromString(nl,aC)}catch{}if(!ho||!ho.documentElement){ho=mr.createDocument(MP,"template",null);try{ho.documentElement.innerHTML=tre?Zn:nl}catch{}}const bf=ho.body||ho.documentElement;return Vn&&Fo&&bf.insertBefore(_.createTextNode(Fo),bf.childNodes[0]||null),MP===lO?Mr.call(ho,Rv?"html":"body")[0]:Rv?ho.documentElement:bf},Wce=function(Vn){return Gn.call(Vn.ownerDocument||Vn,Vn,Ne.SHOW_ELEMENT|Ne.SHOW_COMMENT|Ne.SHOW_TEXT,null,!1)},pxe=function(Vn){return Vn instanceof Je&&(typeof Vn.nodeName!="string"||typeof Vn.textContent!="string"||typeof Vn.removeChild!="function"||!(Vn.attributes instanceof Ue)||typeof Vn.removeAttribute!="function"||typeof Vn.setAttribute!="function"||typeof Vn.namespaceURI!="string"||typeof Vn.insertBefore!="function"||typeof Vn.hasChildNodes!="function")},Lz=function(Vn){return typeof ve=="object"?Vn instanceof ve:Vn&&typeof Vn=="object"&&typeof Vn.nodeType=="number"&&typeof Vn.nodeName=="string"},cO=function(Vn,ho,Fo){Gr[Vn]&&rY(Gr[Vn],nl=>{nl.call(c,ho,Fo,EP)})},Yce=function(Vn){let ho;if(cO("beforeSanitizeElements",Vn,null),pxe(Vn))return iC(Vn),!0;const Fo=yf(Vn.nodeName);if(cO("uponSanitizeElement",Vn,{tagName:Fo,allowedTags:Qo}),Vn.hasChildNodes()&&!Lz(Vn.firstElementChild)&&(!Lz(Vn.content)||!Lz(Vn.content.firstElementChild))&&Gd(/<[/\w]/g,Vn.innerHTML)&&Gd(/<[/\w]/g,Vn.textContent))return iC(Vn),!0;if(!Qo[Fo]||Kl[Fo]){if(!Kl[Fo]&&Gce(Fo)&&(Fs.tagNameCheck instanceof RegExp&&Gd(Fs.tagNameCheck,Fo)||Fs.tagNameCheck instanceof Function&&Fs.tagNameCheck(Fo)))return!1;if(Jne&&!PP[Fo]){const nl=on(Vn)||Vn.parentNode,bf=mn(Vn)||Vn.childNodes;if(bf&&nl){const mp=bf.length;for(let dc=mp-1;dc>=0;--dc)nl.insertBefore(qt(bf[dc],!0),Dn(Vn))}}return iC(Vn),!0}return Vn instanceof Ae&&!gxe(Vn)||(Fo==="noscript"||Fo==="noembed"||Fo==="noframes")&&Gd(/<\/no(script|embed|frames)/i,Vn.innerHTML)?(iC(Vn),!0):(Km&&Vn.nodeType===3&&(ho=Vn.textContent,ho=Zm(ho,Io," "),ho=Zm(ho,_o," "),ho=Zm(ho,na," "),Vn.textContent!==ho&&(RT(c.removed,{element:Vn.cloneNode()}),Vn.textContent=ho)),cO("afterSanitizeElements",Vn,null),!1)},Xce=function(Vn,ho,Fo){if(Ice&&(ho==="id"||ho==="name")&&(Fo in _||Fo in hxe))return!1;if(!(Kh&&!vf[ho]&&Gd(wo,ho))){if(!(ih&&Gd(Ns,ho))){if(!Yo[ho]||vf[ho]){if(!(Gce(Vn)&&(Fs.tagNameCheck instanceof RegExp&&Gd(Fs.tagNameCheck,Vn)||Fs.tagNameCheck instanceof Function&&Fs.tagNameCheck(Vn))&&(Fs.attributeNameCheck instanceof RegExp&&Gd(Fs.attributeNameCheck,ho)||Fs.attributeNameCheck instanceof Function&&Fs.attributeNameCheck(ho))||ho==="is"&&Fs.allowCustomizedBuiltInElements&&(Fs.tagNameCheck instanceof RegExp&&Gd(Fs.tagNameCheck,Fo)||Fs.tagNameCheck instanceof Function&&Fs.tagNameCheck(Fo))))return!1}else if(!ere[ho]){if(!Gd(No,Zm(Fo,oo,""))){if(!((ho==="src"||ho==="xlink:href"||ho==="href")&&Vn!=="script"&&Rb(Fo,"data:")===0&&Qce[Vn])){if(!(R1&&!Gd(Pr,Zm(Fo,oo,"")))){if(Fo)return!1}}}}}}return!0},Gce=function(Vn){return Vn.indexOf("-")>0},jce=function(Vn){let ho,Fo,nl,bf;cO("beforeSanitizeAttributes",Vn,null);const{attributes:mp}=Vn;if(!mp)return;const dc={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Yo};for(bf=mp.length;bf--;){ho=mp[bf];const{name:gp,namespaceURI:sre}=ho;Fo=gp==="value"?ho.value:oL(ho.value);const yxe=Fo;if(nl=yf(gp),dc.attrName=nl,dc.attrValue=Fo,dc.keepAttr=!0,dc.forceKeepAttr=void 0,cO("uponSanitizeAttribute",Vn,dc),Fo=dc.attrValue,dc.forceKeepAttr)continue;if(!dc.keepAttr){aD(gp,Vn);continue}if(!iO&&Gd(/\/>/i,Fo)){aD(gp,Vn);continue}Km&&(Fo=Zm(Fo,Io," "),Fo=Zm(Fo,_o," "),Fo=Zm(Fo,na," "));const qce=yf(Vn.nodeName);if(!Xce(qce,nl,Fo)){aD(gp,Vn);continue}if(Nce&&(nl==="id"||nl==="name")&&(aD(gp,Vn),Fo=cxe+Fo),kn&&typeof ht=="object"&&typeof ht.getAttributeType=="function"&&!sre)switch(ht.getAttributeType(qce,nl)){case"TrustedHTML":{Fo=kn.createHTML(Fo);break}case"TrustedScriptURL":{Fo=kn.createScriptURL(Fo);break}}if(Fo!==yxe)try{sre?Vn.setAttributeNS(sre,gp,Fo):Vn.setAttribute(gp,Fo)}catch{aD(gp,Vn)}}cO("afterSanitizeAttributes",Vn,null)},vxe=function ws(Vn){let ho;const Fo=Wce(Vn);for(cO("beforeSanitizeShadowDOM",Vn,null);ho=Fo.nextNode();)cO("uponSanitizeShadowNode",ho,null),!Yce(ho)&&(ho.content instanceof H&&ws(ho.content),jce(ho));cO("afterSanitizeShadowDOM",Vn,null)};return c.sanitize=function(ws){let Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ho,Fo,nl,bf;if(tre=!ws,tre&&(ws=""),typeof ws!="string"&&!Lz(ws))if(typeof ws.toString=="function"){if(ws=ws.toString(),typeof ws!="string")throw Ih("dirty is not a string, aborting")}else throw Ih("toString is not a function");if(!c.isSupported)return ws;if(sC||rre(Vn),c.removed=[],typeof ws=="string"&&(sD=!1),sD){if(ws.nodeName){const gp=yf(ws.nodeName);if(!Qo[gp]||Kl[gp])throw Ih("root node is forbidden and cannot be sanitized in-place")}}else if(ws instanceof ve)ho=Uce(""),Fo=ho.ownerDocument.importNode(ws,!0),Fo.nodeType===1&&Fo.nodeName==="BODY"||Fo.nodeName==="HTML"?ho=Fo:ho.appendChild(Fo);else{if(!eS&&!Km&&!Rv&&ws.indexOf("<")===-1)return kn&&_z?kn.createHTML(ws):ws;if(ho=Uce(ws),!ho)return eS?null:_z?Zn:""}ho&&oD&&iC(ho.firstChild);const mp=Wce(sD?ws:ho);for(;nl=mp.nextNode();)Yce(nl)||(nl.content instanceof H&&vxe(nl.content),jce(nl));if(sD)return ws;if(eS){if(kP)for(bf=Or.call(ho.ownerDocument);ho.firstChild;)bf.appendChild(ho.firstChild);else bf=ho;return(Yo.shadowroot||Yo.shadowrootmode)&&(bf=is.call(g,bf,!0)),bf}let dc=Rv?ho.outerHTML:ho.innerHTML;return Rv&&Qo["!doctype"]&&ho.ownerDocument&&ho.ownerDocument.doctype&&ho.ownerDocument.doctype.name&&Gd(aL,ho.ownerDocument.doctype.name)&&(dc=" +`+dc),Km&&(dc=Zm(dc,Io," "),dc=Zm(dc,_o," "),dc=Zm(dc,na," ")),kn&&_z?kn.createHTML(dc):dc},c.setConfig=function(ws){rre(ws),sC=!0},c.clearConfig=function(){EP=null,sC=!1},c.isValidAttribute=function(ws,Vn,ho){EP||rre({});const Fo=yf(ws),nl=yf(Vn);return Xce(Fo,nl,ho)},c.addHook=function(ws,Vn){typeof Vn=="function"&&(Gr[ws]=Gr[ws]||[],RT(Gr[ws],Vn))},c.removeHook=function(ws){if(Gr[ws])return oY(Gr[ws])},c.removeHooks=function(ws){Gr[ws]&&(Gr[ws]=[])},c.removeAllHooks=function(){Gr={}},c}var iL=BT();const V_=o=>iL().sanitize(o);var dd=tinymce.util.Tools.resolve("tinymce.util.I18n");const gY={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},lL="temporary-placeholder",z_=o=>()=>Bt(o,lL).getOr("!not found!"),QT=(o,c)=>{const g=o.toLowerCase();if(dd.isRtl()){const S=He(g,"-rtl");return vn(c,S)?S:g}else return g},Z_=(o,c)=>Bt(c,QT(o,c)),H_=(o,c)=>{const g=c();return Z_(o,g).getOrThunk(z_(g))},U_=(o,c,g)=>{const S=c();return Z_(o,S).or(g).getOrThunk(z_(S))},pY=o=>dd.isRtl()?vn(gY,o):!1,XA=()=>Jo("add-focusable",[Ca(o=>{ix(o.element,"svg").each(c=>Dr(c,"focusable","false"))})]),cL=(o,c,g,S)=>{var _,H;const K=pY(c)?["tox-icon--flip"]:[],ve=Bt(g,QT(c,g)).or(S).getOrThunk(z_(g));return{dom:{tag:o.tag,attributes:(_=o.attributes)!==null&&_!==void 0?_:{},classes:o.classes.concat(K),innerHtml:ve},behaviours:pr([...(H=o.behaviours)!==null&&H!==void 0?H:[],XA()])}},Bh=(o,c,g,S=L.none())=>cL(c,o,g(),S),vY=(o,c,g)=>{const S=g(),_=Ze(o,H=>vn(S,QT(H,S)));return cL(c,_.getOr(lL),S,L.none())},uL={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},W_=_u({name:"Notification",factory:o=>{const c=ia({dom:Ov(`

    ${V_(o.translationProvider(o.text))}

    `),behaviours:pr([Uo.config({})])}),g=ht=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${ht}%`}}}),S=ht=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${ht}%`}}),_=ia({dom:{tag:"div",classes:o.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[g(0)]},S(0)],behaviours:pr([Uo.config({})])}),ve={updateProgress:(ht,At)=>{ht.getSystem().isConnected()&&_.getOpt(ht).each(qt=>{Uo.set(qt,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[g(At)]},S(At)])})},updateText:(ht,At)=>{if(ht.getSystem().isConnected()){const qt=c.get(ht);Uo.set(qt,[yi(At)])}}},Ae=Ie([o.icon.toArray(),o.level.toArray(),o.level.bind(ht=>L.from(uL[ht])).toArray()]),Ne=ia(Dl.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[Bh("close",{tag:"span",classes:["tox-icon"],attributes:{"aria-label":o.translationProvider("Close")}},o.iconProvider)],action:ht=>{o.onAction(ht)}})),Ue=vY(Ae,{tag:"div",classes:["tox-notification__icon"]},o.iconProvider),Je={dom:{tag:"div",classes:["tox-notification__body"]},components:[c.asSpec()],behaviours:pr([Uo.config({})])},st=[Ue,Je];return{uid:o.uid,dom:{tag:"div",attributes:{role:"alert"},classes:o.level.map(ht=>["tox-notification","tox-notification--in",`tox-notification--${ht}`]).getOr(["tox-notification","tox-notification--in"])},behaviours:pr([Mo.config({}),Jo("notification-events",[qn(Do(),ht=>{Ne.getOpt(ht).each(Mo.focus)})])]),components:st.concat(o.progress?[_.asSpec()]:[]).concat(o.closeButton?[Ne.asSpec()]:[]),apis:ve}},configFields:[Ws("level"),er("progress"),Ws("icon"),er("onAction"),er("text"),er("iconProvider"),er("translationProvider"),Wi("closeButton",!0)],apis:{updateProgress:(o,c,g)=>{o.updateProgress(c,g)},updateText:(o,c,g)=>{o.updateText(c,g)}}});var Y_=(o,c,g)=>{const S=c.backstage.shared,_=()=>{const Ae=ui(zt.fromDom(o.getContentAreaContainer())),Ne=Vl(),Ue=rf(Ne.x,Ae.x,Ae.right),Je=rf(Ne.y,Ae.y,Ae.bottom),st=Math.max(Ae.right,Ne.right),ht=Math.max(Ae.bottom,Ne.bottom);return L.some(Ja(Ue,Je,st-Ue,ht-Je))};return{open:(Ae,Ne)=>{const Ue=()=>{Ne(),ri.hide(st)},Je=oc(W_.sketch({text:Ae.text,level:be(["success","error","warning","warn","info"],Ae.type)?Ae.type:void 0,progress:Ae.progressBar===!0,icon:Ae.icon,closeButton:Ae.closeButton,onAction:Ue,iconProvider:S.providers.icons,translationProvider:S.providers.translate})),st=oc(ri.sketch({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:S.getSink,fireDismissalEventInstead:{},...S.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}}}));g.add(st),T(Ae.timeout)&&Ae.timeout>0&&_b.setEditorTimeout(o,()=>{Ue()},Ae.timeout);const At={close:Ue,reposition:()=>{const qt=nf(Je),Dn={maxHeightFunction:R0()},mn=o.notificationManager.getNotifications();if(mn[0]===At){const on={...S.anchors.banner(),overrides:Dn};ri.showWithinBounds(st,qt,{anchor:on},_)}else ee(mn,At).each(on=>{const kn=mn[on-1].getEl(),Zn={type:"node",root:ya(),node:L.some(zt.fromDom(kn)),overrides:Dn,layouts:{onRtl:()=>[fl],onLtr:()=>[fl]}};ri.showWithinBounds(st,qt,{anchor:Zn},_)})},text:qt=>{W_.updateText(Je,qt)},settings:Ae,getEl:()=>Je.element.dom,progressBar:{value:qt=>{W_.updateProgress(Je,qt)}}};return At},close:Ae=>{Ae.close()},getArgs:Ae=>Ae.settings}},$b=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),fL=tinymce.util.Tools.resolve("tinymce.EditorManager"),n2=tinymce.util.Tools.resolve("tinymce.Env"),Qf;(function(o){o.default="wrap",o.floating="floating",o.sliding="sliding",o.scrolling="scrolling"})(Qf||(Qf={}));var FT;(function(o){o.auto="auto",o.top="top",o.bottom="bottom"})(FT||(FT={}));const _a=o=>c=>c.options.get(o),VT=o=>c=>L.from(o(c)),dL=o=>{const c=n2.deviceType.isPhone(),g=n2.deviceType.isTablet()||c,S=o.options.register,_=K=>m(K)||K===!1,H=K=>m(K)||T(K);S("skin",{processor:K=>m(K)||K===!1,default:"oxide"}),S("skin_url",{processor:"string"}),S("height",{processor:H,default:Math.max(o.getElement().offsetHeight,400)}),S("width",{processor:H,default:$b.DOM.getStyle(o.getElement(),"width")}),S("min_height",{processor:"number",default:100}),S("min_width",{processor:"number"}),S("max_height",{processor:"number"}),S("max_width",{processor:"number"}),S("style_formats",{processor:"object[]"}),S("style_formats_merge",{processor:"boolean",default:!1}),S("style_formats_autohide",{processor:"boolean",default:!1}),S("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),S("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),S("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),S("font_size_input_default_unit",{processor:"string",default:"pt"}),S("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),S("content_langs",{processor:"object[]"}),S("removed_menuitems",{processor:"string",default:""}),S("menubar",{processor:K=>m(K)||b(K),default:!c}),S("menu",{processor:"object",default:{}}),S("toolbar",{processor:K=>b(K)||m(K)||v(K)?{value:K,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),Be(9,K=>{S("toolbar"+(K+1),{processor:"string"})}),S("toolbar_mode",{processor:"string",default:g?"scrolling":"floating"}),S("toolbar_groups",{processor:"object",default:{}}),S("toolbar_location",{processor:"string",default:FT.auto}),S("toolbar_persist",{processor:"boolean",default:!1}),S("toolbar_sticky",{processor:"boolean",default:o.inline}),S("toolbar_sticky_offset",{processor:"number",default:0}),S("fixed_toolbar_container",{processor:"string",default:""}),S("fixed_toolbar_container_target",{processor:"object"}),S("ui_mode",{processor:"string",default:"combined"}),S("file_picker_callback",{processor:"function"}),S("file_picker_validator_handler",{processor:"function"}),S("file_picker_types",{processor:"string"}),S("typeahead_urls",{processor:"boolean",default:!0}),S("anchor_top",{processor:_,default:"#top"}),S("anchor_bottom",{processor:_,default:"#bottom"}),S("draggable_modal",{processor:"boolean",default:!1}),S("statusbar",{processor:"boolean",default:!0}),S("elementpath",{processor:"boolean",default:!0}),S("branding",{processor:"boolean",default:!0}),S("promotion",{processor:"boolean",default:!0}),S("resize",{processor:K=>K==="both"||b(K),default:!n2.deviceType.isTouch()}),S("sidebar_show",{processor:"string"}),S("help_accessibility",{processor:"boolean",default:o.hasPlugin("help")}),S("default_font_stack",{processor:"string[]",default:[]})},hL=_a("readonly"),GA=_a("height"),zT=_a("width"),X_=VT(_a("min_width")),r2=VT(_a("min_height")),jA=VT(_a("max_width")),G_=VT(_a("max_height")),mL=VT(_a("style_formats")),gL=_a("style_formats_merge"),pL=_a("style_formats_autohide"),vL=_a("content_langs"),j_=_a("removed_menuitems"),o2=_a("toolbar_mode"),yL=_a("toolbar_groups"),ZT=_a("toolbar_location"),Lb=_a("fixed_toolbar_container"),yY=_a("fixed_toolbar_container_target"),bL=_a("toolbar_persist"),qA=_a("toolbar_sticky_offset"),q_=_a("menubar"),KA=_a("toolbar"),OL=_a("file_picker_callback"),K_=_a("file_picker_validator_handler"),xL=_a("font_size_input_default_unit"),J_=_a("file_picker_types"),e8=_a("typeahead_urls"),JA=_a("anchor_top"),SL=_a("anchor_bottom"),t8=_a("draggable_modal"),wL=_a("statusbar"),s2=_a("elementpath"),n8=_a("branding"),TL=_a("resize"),e5=_a("paste_as_text"),t5=_a("sidebar_show"),CL=_a("promotion"),n5=_a("help_accessibility"),kL=_a("default_font_stack"),r8=o=>o.options.get("skin")===!1,a2=o=>o.options.get("menubar")!==!1,r5=o=>{const c=o.options.get("skin_url");if(r8(o))return c;if(c)return o.documentBaseURI.toAbsolute(c);{const g=o.options.get("skin");return fL.baseURL+"/skins/ui/"+g}},o8=o=>L.from(o.options.get("skin_url")),AL=o=>o.options.get("line_height_formats").split(" "),o5=o=>{const c=KA(o),g=m(c),S=v(c)&&c.length>0;return!HT(o)&&(S||g||c===!0)},s8=o=>{const c=Be(9,S=>o.options.get("toolbar"+(S+1))),g=xe(c,m);return it(g.length>0,g)},HT=o=>s8(o).fold(()=>{const c=KA(o);return R(c,m)&&c.length>0},ie),a8=o=>ZT(o)===FT.bottom,PL=o=>{var c;if(!o.inline)return L.none();const g=(c=Lb(o))!==null&&c!==void 0?c:"";if(g.length>0)return Ai(ya(),g);const S=yY(o);return C(S)?L.some(zt.fromDom(S)):L.none()},i2=o=>o.inline&&PL(o).isSome(),i8=o=>PL(o).getOrThunk(()=>Xs(es(zt.fromDom(o.getElement())))),l8=o=>o.inline&&!a2(o)&&!o5(o)&&!HT(o),UT=o=>(o.options.get("toolbar_sticky")||o.inline)&&!i2(o)&&!l8(o),Kg=o=>!i2(o)&&o.options.get("ui_mode")==="split",ML=o=>{const c=o.options.get("menu");return je(c,g=>({...g,items:g.items}))};var bY=Object.freeze({__proto__:null,get ToolbarMode(){return Qf},get ToolbarLocation(){return FT},register:dL,getSkinUrl:r5,getSkinUrlOption:o8,isReadOnly:hL,isSkinDisabled:r8,getHeightOption:GA,getWidthOption:zT,getMinWidthOption:X_,getMinHeightOption:r2,getMaxWidthOption:jA,getMaxHeightOption:G_,getUserStyleFormats:mL,shouldMergeStyleFormats:gL,shouldAutoHideStyleFormats:pL,getLineHeightFormats:AL,getContentLanguages:vL,getRemovedMenuItems:j_,isMenubarEnabled:a2,isMultipleToolbars:HT,isToolbarEnabled:o5,isToolbarPersist:bL,getMultipleToolbarsOption:s8,getUiContainer:i8,useFixedContainer:i2,isSplitUiMode:Kg,getToolbarMode:o2,isDraggableModal:t8,isDistractionFree:l8,isStickyToolbar:UT,getStickyToolbarOffset:qA,getToolbarLocation:ZT,isToolbarLocationBottom:a8,getToolbarGroups:yL,getMenus:ML,getMenubar:q_,getToolbar:KA,getFilePickerCallback:OL,getFilePickerTypes:J_,useTypeaheadUrls:e8,getAnchorTop:JA,getAnchorBottom:SL,getFilePickerValidatorHandler:K_,getFontSizeInputDefaultUnit:xL,useStatusBar:wL,useElementPath:s2,promotionEnabled:CL,useBranding:n8,getResize:TL,getPasteAsText:e5,getSidebarShow:t5,useHelpAccessibility:n5,getDefaultFontStack:kL});const EL="[data-mce-autocompleter]",c8=o=>Vd(o,EL),OY=o=>Ai(o,EL),xY={setup:(o,c)=>{const g=(_,H)=>{vo(_,_s(),{raw:H})},S=()=>o.getMenu().bind(Ys.getHighlighted);c.on("keydown",_=>{const H=_.which;o.isActive()&&(o.isMenuOpen()?H===13?(S().each(xm),_.preventDefault()):H===40?(S().fold(()=>{o.getMenu().each(Ys.highlightFirst)},K=>{g(K,_)}),_.preventDefault(),_.stopImmediatePropagation()):(H===37||H===38||H===39)&&S().each(K=>{g(K,_),_.preventDefault(),_.stopImmediatePropagation()}):(H===13||H===38||H===40)&&o.cancelIfNecessary())}),c.on("NodeChange",_=>{o.isActive()&&!o.isProcessingAction()&&c8(zt.fromDom(_.element)).isNone()&&o.cancelIfNecessary()})}};var u8;(function(o){o[o.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",o[o.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(u8||(u8={}));var Hm=u8;const f8="tox-menu-nav__js",l2="tox-collection__item",d8="tox-swatch",SY={normal:f8,color:d8},_L="tox-collection__item--enabled",wY="tox-collection__group-heading",RL="tox-collection__item-icon",h8="tox-collection__item-label",TY="tox-collection__item-accessory",DL="tox-collection__item-caret",CY="tox-collection__item-checkmark",WT="tox-collection__item--active",$L="tox-collection__item-container",kY="tox-collection__item-container--column",LL="tox-collection__item-container--row",s5="tox-collection__item-container--align-right",AY="tox-collection__item-container--align-left",m8="tox-collection__item-container--valign-top",PY="tox-collection__item-container--valign-middle",MY="tox-collection__item-container--valign-bottom",IL=o=>Bt(SY,o).getOr(f8),NL=o=>o==="color"?"tox-swatches":"tox-menu",g8=o=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:NL(o),tieredMenu:"tox-tiered-menu"}),Sv=o=>{const c=g8(o);return{backgroundMenu:c.backgroundMenu,selectedMenu:c.selectedMenu,menu:c.menu,selectedItem:c.selectedItem,item:IL(o)}},p8=(o,c,g)=>{const S=g8(g);return{tag:"div",classes:Ie([[S.menu,`tox-menu-${c}-column`],o?[S.hasIcons]:[]])}},BL=[Eb.parts.items({})],c2=(o,c,g)=>{const S=g8(g);return{dom:{tag:"div",classes:Ie([[S.tieredMenu]])},markers:Sv(g)}},YT=F([Ws("data"),Mn("inputAttributes",{}),Mn("inputStyles",{}),Mn("tag","input"),Mn("inputClasses",[]),Rs("onSetValue"),Mn("styles",{}),Mn("eventOrder",{}),el("inputBehaviours",[Fr,Mo]),Mn("selectOnFocus",!0)]),v8=o=>pr([Mo.config({onFocus:o.selectOnFocus?c=>{const g=c.element,S=Ch(g);g.dom.setSelectionRange(0,S.length)}:M})]),Jg=o=>({...v8(o),...Ni(o.inputBehaviours,[Fr.config({store:{mode:"manual",...o.data.map(c=>({initialValue:c})).getOr({}),getValue:c=>Ch(c.element),setValue:(c,g)=>{Ch(c.element)!==g&&b0(c.element,g)}},onSetValue:o.onSetValue})])}),a5=o=>({tag:o.tag,attributes:{type:"text",...o.inputAttributes},styles:o.inputStyles,classes:o.inputClasses}),EY=(o,c)=>({uid:o.uid,dom:a5(o),components:[],behaviours:Jg(o),eventOrder:o.eventOrder}),Ib=_u({name:"Input",configFields:YT(),factory:EY}),QL=Kr("refetch-trigger-event"),FL=Kr("redirect-menu-item-interaction"),u2="tox-menu__searcher",i5=o=>Ai(o.element,`.${u2}`).bind(c=>o.getSystem().getByDom(c).toOptional()),y8=i5,b8=(o,c)=>{Fr.setValue(o,c.fetchPattern),o.element.dom.selectionStart=c.selectionStart,o.element.dom.selectionEnd=c.selectionEnd},VL=o=>{const c=Fr.getValue(o),g=o.element.dom.selectionStart,S=o.element.dom.selectionEnd;return{fetchPattern:c,selectionStart:g,selectionEnd:S}},O8=(o,c)=>{Ri(c.element,"id").each(g=>Dr(o.element,"aria-activedescendant",g))},x8=o=>{const c=(_,H)=>(H.cut(),L.none()),g=(_,H)=>{const K={interactionEvent:H.event,eventType:H.event.raw.type};return vo(_,FL,K),L.some(!0)},S="searcher-events";return{dom:{tag:"div",classes:[l2]},components:[Ib.sketch({inputClasses:[u2,"tox-textfield"],inputAttributes:{...o.placeholder.map(_=>({placeholder:o.i18n(_)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:pr([Jo(S,[qn(di(),_=>{ks(_,QL)}),qn(_s(),(_,H)=>{H.event.raw.key==="Escape"&&H.stop()})]),yo.config({mode:"special",onLeft:c,onRight:c,onSpace:c,onEnter:g,onEscape:g,onUp:g,onDown:g})]),eventOrder:{keydown:[S,yo.name()]}})]}},l5="tox-collection--results__js",S8=o=>{var c;return o.dom?{...o,dom:{...o.dom,attributes:{...(c=o.dom.attributes)!==null&&c!==void 0?c:{},id:Kr("aria-item-search-result-id"),"aria-selected":"false"}}}:o},c5=(o,c)=>g=>{const S=ge(g,c);return ne(S,_=>({dom:o,components:_}))},_Y=o=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[Eb.parts.items({preprocess:o!=="auto"?c5({tag:"div",classes:["tox-swatches__row"]},o):z})]}]}),RY=o=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[Eb.parts.items({preprocess:c5({tag:"div",classes:["tox-collection__group"]},o)})]}),zL=(o,c)=>{const g=[];let S=[];return pe(o,(_,H)=>{c(_,H)?(S.length>0&&g.push(S),S=[],(vn(_.dom,"innerHtml")||_.components&&_.components.length>0)&&S.push(_)):S.push(_)}),S.length>0&&g.push(S),ne(g,_=>({dom:{tag:"div",classes:["tox-collection__group"]},components:_}))},w8=(o,c,g)=>Eb.parts.items({preprocess:S=>{const _=ne(S,g);return o!=="auto"&&o>1?c5({tag:"div",classes:["tox-collection__group"]},o)(_):zL(_,(H,K)=>c[K].type==="separator")}}),ZL=(o,c,g=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(o===1?["tox-collection--list"]:["tox-collection--grid"])},components:[w8(o,c,z)]}),DY=(o,c,g=!0)=>{const S=Kr("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",l5].concat(o===1?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:S}},components:[w8(o,c,S8)]}},HL=(o,c,g)=>{const S=Kr("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(o===1?["tox-collection--list"]:["tox-collection--grid"])},components:[x8({i18n:dd.translate,placeholder:g.placeholder}),{dom:{tag:"div",classes:[...o===1?["tox-collection--list"]:["tox-collection--grid"],l5],attributes:{id:S}},components:[w8(o,c,S8)]}]}},UL=(o,c=!0)=>({dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[Eb.parts.items({preprocess:g=>zL(g,(S,_)=>o[_].type==="separator")})]}),u5=o=>Te(o,c=>"icon"in c&&c.icon!==void 0),ep=o=>(console.error(Zl(o)),console.log(o),L.none()),XT=(o,c,g,S,_)=>{const H=UL(g);return{value:o,dom:H.dom,components:H.components,items:g}},f5=(o,c,g,S,_)=>{const H=()=>_.menuType!=="searchable"?ZL(S,g):_.searchMode.searchMode==="search-with-field"?HL(S,g,_.searchMode):DY(S,g);if(_.menuType==="color"){const K=_Y(S);return{value:o,dom:K.dom,components:K.components,items:g}}else if(_.menuType==="normal"&&S==="auto"){const K=ZL(S,g);return{value:o,dom:K.dom,components:K.components,items:g}}else if(_.menuType==="normal"||_.menuType==="searchable"){const K=H();return{value:o,dom:K.dom,components:K.components,items:g}}else if(_.menuType==="listpreview"&&S!=="auto"){const K=RY(S);return{value:o,dom:K.dom,components:K.components,items:g}}else return{value:o,dom:p8(c,S,_.menuType),components:BL,items:g}},Gi=zs("type"),T8=zs("name"),d5=zs("label"),wv=zs("text"),WL=zs("title"),C8=zs("icon"),f2=zs("value"),YL=qu("fetch"),XL=qu("getSubmenuItems"),d2=qu("onAction"),$Y=qu("onItemAction"),i1=Di("onSetup",()=>M),k8=ll("name"),tp=ll("text"),hd=ll("icon"),GT=ll("tooltip"),h5=ll("label"),LY=ll("shortcut"),A8=Jf("select"),m5=Wi("active",!1),GL=Wi("borderless",!1),jd=Wi("enabled",!0),np=Wi("primary",!1),jL=o=>Mn("columns",o),jT=Mn("meta",{}),h2=Di("onAction",M),Nb=o=>nd("type",o),g5=o=>il("name","name",Ef(()=>Kr(`${o}-name`)),al),qL=o=>il("value","value",Ef(()=>Kr(`${o}-value`)),vi()),P8=uo([Gi,tp]),M8=o=>da("separatormenuitem",P8,o),KL=uo([Nb("autocompleteitem"),m5,jd,jT,f2,tp,hd]),IY=o=>da("Autocompleter.Separator",P8,o),JL=o=>da("Autocompleter.Item",KL,o),m2=[jd,GT,hd,tp,i1],eI=uo([Gi,d2].concat(m2)),E8=o=>da("toolbarbutton",eI,o),_8=[m5].concat(m2),tI=uo(_8.concat([Gi,d2])),nI=o=>da("ToggleButton",tI,o),rI=[Di("predicate",Y),Hc("scope","node",["node","editor"]),Hc("position","selection",["node","selection","line"])],NY=m2.concat([Nb("contextformbutton"),np,d2,ei("original",z)]),BY=_8.concat([Nb("contextformbutton"),np,d2,ei("original",z)]),oI=m2.concat([Nb("contextformbutton")]),qT=_8.concat([Nb("contextformtogglebutton")]),sI=Os("type",{contextformbutton:NY,contextformtogglebutton:BY}),QY=uo([Nb("contextform"),Di("initValue",F("")),h5,rc("commands",sI),au("launch",Os("type",{contextformbutton:oI,contextformtogglebutton:qT}))].concat(rI)),FY=o=>da("ContextForm",QY,o),VY=uo([Nb("contexttoolbar"),zs("items")].concat(rI)),zY=o=>da("ContextToolbar",VY,o),ZY=[Gi,zs("src"),ll("alt"),Cc("classes",[],al)],p5=uo(ZY),HY=[Gi,wv,k8,Cc("classes",["tox-collection__item-label"],al)],aI=uo(HY),iI=sl(()=>lr("type",{cardimage:p5,cardtext:aI,cardcontainer:lI})),lI=uo([Gi,nd("direction","horizontal"),nd("align","left"),nd("valign","middle"),rc("items",iI)]),Bb=[jd,tp,LY,qL("menuitem"),jT],UY=uo([Gi,h5,rc("items",iI),i1,h2].concat(Bb)),cI=o=>da("cardmenuitem",UY,o),uI=uo([Gi,m5,hd].concat(Bb)),fI=o=>da("choicemenuitem",uI,o),R8=[Gi,zs("fancytype"),h2],WY=[Mn("initData",{})].concat(R8),YY=[Jf("select"),D("initData",{},[Wi("allowCustomColors",!0),nd("storageKey","default"),Id("colors",vi())])].concat(R8),XY=Os("fancytype",{inserttable:WY,colorswatch:YY}),GY=o=>da("fancymenuitem",XY,o),dI=uo([Gi,i1,h2,hd].concat(Bb)),hI=o=>da("menuitem",dI,o),jY=uo([Gi,XL,i1,hd].concat(Bb)),qY=o=>da("nestedmenuitem",jY,o),KY=uo([Gi,hd,m5,i1,d2].concat(Bb)),JY=o=>da("togglemenuitem",KY,o),D8=(o,c,g)=>{const S=hl(o.element,"."+g);if(S.length>0){const _=De(S,H=>{const K=H.dom.getBoundingClientRect().top,ve=S[0].dom.getBoundingClientRect().top;return Math.abs(K-ve)>c}).getOr(S.length);return L.some({numColumns:_,numRows:Math.ceil(S.length/_)})}else return L.none()},$8=(o,c)=>pr([Jo(o,c)]),KT={namedEvents:$8,unnamedEvents:o=>$8(Kr("unnamed-events"),o)},v5=Kr("tooltip.exclusive"),g2=Kr("tooltip.show"),JT=Kr("tooltip.hide"),mI=(o,c,g)=>{o.getSystem().broadcastOn([v5],{})};var tX=Object.freeze({__proto__:null,hideAllExclusive:mI,setComponents:(o,c,g,S)=>{g.getTooltip().each(_=>{_.getSystem().isConnected()&&Uo.set(_,S)})}}),gI=Object.freeze({__proto__:null,events:(o,c)=>{const g=_=>{c.getTooltip().each(H=>{Rh(H),o.onHide(_,H),c.clearTooltip()}),c.clearTimer()},S=_=>{if(!c.isShowing()){mI(_);const H=o.lazySink(_).getOrDie(),K=_.getSystem().build({dom:o.tooltipDom,components:o.tooltipComponents,events:Ea(o.mode==="normal"?[qn(Lr(),ve=>{ks(_,g2)}),qn(ti(),ve=>{ks(_,JT)})]:[]),behaviours:pr([Uo.config({})])});c.setTooltip(K),Hg(H,K),o.onShow(_,K),ac.position(H,K,{anchor:o.anchor(_)})}};return Ea(Ie([[qn(g2,_=>{c.resetTimer(()=>{S(_)},o.delay)}),qn(JT,_=>{c.resetTimer(()=>{g(_)},o.delay)}),qn(Wl(),(_,H)=>{const K=H;K.universal||be(K.channels,v5)&&g(_)}),Sh(_=>{g(_)})],o.mode==="normal"?[qn(Do(),_=>{ks(_,g2)}),qn(Ul(),_=>{ks(_,JT)}),qn(Lr(),_=>{ks(_,g2)}),qn(ti(),_=>{ks(_,JT)})]:[qn(Ey(),(_,H)=>{ks(_,g2)}),qn(_y(),_=>{ks(_,JT)})]]))}}),pI=[er("lazySink"),er("tooltipDom"),Mn("exclusive",!0),Mn("tooltipComponents",[]),Mn("delay",300),Hc("mode","normal",["normal","follow-highlight"]),Mn("anchor",o=>({type:"hotspot",hotspot:o,layouts:{onLtr:F([fl,Mc,ul,Yc,Gl,sc]),onRtl:F([fl,Mc,ul,Yc,Gl,sc])}})),Rs("onHide"),Rs("onShow")],rX=Object.freeze({__proto__:null,init:()=>{const o=gs(),c=gs(),g=()=>{o.on(clearTimeout)},S=(H,K)=>{g(),o.set(setTimeout(H,K))},_=F("not-implemented");return Cu({getTooltip:c.get,isShowing:c.isSet,setTooltip:c.set,clearTooltip:c.clear,clearTimer:g,resetTimer:S,readState:_})}});const vI=dl({fields:pI,name:"tooltipping",active:gI,state:rX,apis:tX}),oX=o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),yI="silver.readonly",L8=uo([US("readonly")]),y5=(o,c)=>{const S=o.mainUi.outerContainer.element,_=[o.mainUi.mothership,...o.uiMotherships];c&&pe(_,H=>{H.broadcastOn([Wd()],{target:S})}),pe(_,H=>{H.broadcastOn([yI],{readonly:c})})},bI=(o,c)=>{o.on("init",()=>{o.mode.isReadOnly()&&y5(c,!0)}),o.on("SwitchMode",()=>y5(c,o.mode.isReadOnly())),hL(o)&&o.mode.set("readonly")},gl=()=>lu.config({channels:{[yI]:{schema:L8,onReceive:(o,c)=>{Co.set(o,c.readonly)}}}}),tl={item:o=>Co.config({disabled:o,disableClass:"tox-collection__item--state-disabled"}),button:o=>Co.config({disabled:o}),splitButton:o=>Co.config({disabled:o,disableClass:"tox-tbtn--disabled"}),toolbarButton:o=>Co.config({disabled:o,disableClass:"tox-tbtn--disabled",useNative:!1})},md=(o,c)=>{const g=o.getApi(c);return S=>{S(g)}},l1=(o,c)=>Ca(g=>{md(o,g)(_=>{const H=o.onSetup(_);w(H)&&c.set(H)})}),rp=(o,c)=>Sh(g=>md(o,g)(c.get())),I8=(o,c)=>rd((g,S)=>{md(o,g)(o.onAction),!o.triggersSubmenu&&c===Hm.CLOSE_ON_EXECUTE&&(g.getSystem().isConnected()&&ks(g,Ju()),S.stop())}),aX={[Ii()]:["disabling","alloy.base.behaviour","toggling","item-events"]},p2=an,op=(o,c,g,S)=>{const _=X(M);return{type:"item",dom:c.dom,components:p2(c.optComponents),data:o.data,eventOrder:aX,hasSubmenu:o.triggersSubmenu,itemBehaviours:pr([Jo("item-events",[I8(o,g),l1(o,_),rp(o,_)]),tl.item(()=>!o.enabled||S.isDisabled()),gl(),Uo.config({})].concat(o.itemBehaviours))}},Tv=o=>({value:o.value,meta:{text:o.text.getOr(""),...o.meta}}),b5=o=>{const c=n2.os.isMacOS()||n2.os.isiOS(),_=c?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},H=o.split("+"),K=ne(H,ve=>{const Ae=ve.toLowerCase().trim();return vn(_,Ae)?_[Ae]:ve});return c?K.join(""):K.join("+")},N8=(o,c,g=[RL])=>Bh(o,{tag:"div",classes:g},c),Qh=o=>({dom:{tag:"div",classes:[h8]},components:[yi(dd.translate(o))]}),OI=(o,c)=>({dom:{tag:"div",classes:c,innerHtml:o}}),iX=(o,c)=>({dom:{tag:"div",classes:[h8]},components:[{dom:{tag:o.tag,styles:o.styles},components:[yi(dd.translate(c))]}]}),qd=o=>({dom:{tag:"div",classes:[TY]},components:[yi(b5(o))]}),v2=o=>N8("checkmark",o,[CY]),Fh=o=>N8("chevron-right",o,[DL]),lX=o=>N8("chevron-down",o,[DL]),xa=(o,c)=>{const g=o.direction==="vertical"?kY:LL,S=o.align==="left"?AY:s5;return{dom:{tag:"div",classes:[$L,g,S,(()=>{switch(o.valign){case"top":return m8;case"middle":return PY;case"bottom":return MY}})()]},components:c}},y2=(o,c,g)=>({dom:{tag:"img",classes:c,attributes:{src:o,alt:g.getOr("")}}}),O5=(o,c,g)=>{const S="custom",_="remove",H=o.ariaLabel,K=o.value,ve=o.iconContent.map(Ne=>U_(Ne,c.icons,g));return{dom:(()=>{const Ne=d8,Ue=ve.getOr(""),st={tag:"div",attributes:H.map(ht=>({title:c.translate(ht)})).getOr({}),classes:[Ne]};return K===S?{...st,tag:"button",classes:[...st.classes,"tox-swatches__picker-btn"],innerHtml:Ue}:K===_?{...st,classes:[...st.classes,"tox-swatch--remove"],innerHtml:Ue}:C(K)?{...st,attributes:{...st.attributes,"data-mce-color":K},styles:{"background-color":K},innerHtml:Ue}:st})(),optComponents:[]}},B8=o=>{const c=o.map(g=>({attributes:{title:dd.translate(g),id:Kr("menu-item")}})).getOr({});return{tag:"div",classes:[f8,l2],...c}},Q8=(o,c,g,S)=>{const _={tag:"div",classes:[RL]},H=st=>Bh(st,_,c.icons,S),K=()=>L.some({dom:_}),ve=g?o.iconContent.map(H).orThunk(K):L.none(),Ae=o.checkMark,Ne=L.from(o.meta).fold(()=>Qh,st=>vn(st,"style")?Q(iX,st.style):Qh),Ue=o.htmlContent.fold(()=>o.textContent.map(Ne),st=>L.some(OI(st,[h8])));return{dom:B8(o.ariaLabel),optComponents:[ve,Ue,o.shortcutContent.map(qd),Ae,o.caret]}},Qb=(o,c,g,S=L.none())=>o.presets==="color"?O5(o,c,S):Q8(o,c,g,S),xI=(o,c)=>Bt(o,"tooltipWorker").map(g=>[vI.config({lazySink:c.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:S=>({type:"submenu",item:S,overrides:{maxHeightFunction:R0}}),mode:"follow-highlight",onShow:(S,_)=>{g(H=>{vI.setComponents(S,[fk({element:zt.fromDom(H)})])})}})]).getOr([]),F8=o=>$b.DOM.encode(o),SI=(o,c)=>{const g=dd.translate(o),S=F8(g);if(c.length>0){const _=new RegExp(oX(c),"gi");return S.replace(_,H=>`${H}`)}else return S},wI=(o,c,g,S,_,H,K,ve=!0)=>{const Ae=Qb({presets:S,textContent:L.none(),htmlContent:g?o.text.map(Ne=>SI(Ne,c)):L.none(),ariaLabel:o.text,iconContent:o.icon,shortcutContent:L.none(),checkMark:L.none(),caret:L.none(),value:o.value},K.providers,ve,o.icon);return op({data:Tv(o),enabled:o.enabled,getApi:F({}),onAction:Ne=>_(o.value,o.meta),onSetup:F(M),triggersSubmenu:!1,itemBehaviours:xI(o.meta,K)},Ae,H,K.providers)},V8=(o,c)=>ne(o,g=>{switch(g.type){case"cardcontainer":return xa(g,V8(g.items,c));case"cardimage":return y2(g.src,g.classes,g.alt);case"cardtext":const _=g.name.exists(H=>be(c.cardText.highlightOn,H))?L.from(c.cardText.matchText).getOr(""):"";return OI(SI(g.text,_),g.classes)}}),z8=(o,c,g,S)=>{const _=K=>({isEnabled:()=>!Co.isDisabled(K),setEnabled:ve=>{Co.set(K,!ve),pe(hl(K.element,"*"),Ae=>{K.getSystem().getByDom(Ae).each(Ne=>{Ne.hasConfigured(Co)&&Co.set(Ne,!ve)})})}}),H={dom:B8(o.label),optComponents:[L.some({dom:{tag:"div",classes:[$L,LL]},components:V8(o.items,S)})]};return op({data:Tv({text:L.none(),...o}),enabled:o.enabled,getApi:_,onAction:o.onAction,onSetup:o.onSetup,triggersSubmenu:!1,itemBehaviours:L.from(S.itemBehaviours).getOr([])},H,c,g.providers)},TI=(o,c,g,S,_,H,K,ve=!0)=>{const Ae=Ue=>({setActive:Je=>{as.set(Ue,Je)},isActive:()=>as.isOn(Ue),isEnabled:()=>!Co.isDisabled(Ue),setEnabled:Je=>Co.set(Ue,!Je)}),Ne=Qb({presets:g,textContent:c?o.text:L.none(),htmlContent:L.none(),ariaLabel:o.text,iconContent:o.icon,shortcutContent:c?o.shortcut:L.none(),checkMark:c?L.some(v2(K.icons)):L.none(),caret:L.none(),value:o.value},K,ve);return Ta(op({data:Tv(o),enabled:o.enabled,getApi:Ae,onAction:Ue=>S(o.value),onSetup:Ue=>(Ue.setActive(_),M),triggersSubmenu:!1,itemBehaviours:[]},Ne,H,K),{toggling:{toggleClass:_L,toggleOnExecute:!1,selected:o.active,exclusive:!0}})},e3=Im(ET(),_T()),CI=o=>({value:MI(o)}),kI=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,AI=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,PI=o=>kI.test(o)||AI.test(o),MI=o=>Dt(o,"#").toUpperCase(),EI=o=>PI(o)?L.some({value:MI(o)}):L.none(),cX=o=>({value:o.value.replace(kI,(g,S,_,H)=>S+S+_+_+H+H)}),uX=o=>{const c=cX(o),g=AI.exec(c.value);return g===null?["FFFFFF","FF","FF","FF"]:g},x5=o=>{const c=o.toString(16);return(c.length===1?"0"+c:c).toUpperCase()},b2=o=>{const c=x5(o.red)+x5(o.green)+x5(o.blue);return CI(c)},_I=Math.min,RI=Math.max,t3=Math.round,DI=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,$I=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,c1=(o,c,g,S)=>({red:o,green:c,blue:g,alpha:S}),Z8=o=>{const c=parseInt(o,10);return c.toString()===o&&c>=0&&c<=255},LI=o=>{let c,g,S;const _=(o.hue||0)%360;let H=o.saturation/100,K=o.value/100;if(H=RI(0,_I(H,1)),K=RI(0,_I(K,1)),H===0)return c=g=S=t3(255*K),c1(c,g,S,1);const ve=_/60,Ae=K*H,Ne=Ae*(1-Math.abs(ve%2-1)),Ue=K-Ae;switch(Math.floor(ve)){case 0:c=Ae,g=Ne,S=0;break;case 1:c=Ne,g=Ae,S=0;break;case 2:c=0,g=Ae,S=Ne;break;case 3:c=0,g=Ne,S=Ae;break;case 4:c=Ne,g=0,S=Ae;break;case 5:c=Ae,g=0,S=Ne;break;default:c=g=S=0}return c=t3(255*(c+Ue)),g=t3(255*(g+Ue)),S=t3(255*(S+Ue)),c1(c,g,S,1)},n3=o=>{const c=uX(o),g=parseInt(c[1],16),S=parseInt(c[2],16),_=parseInt(c[3],16);return c1(g,S,_,1)},II=(o,c,g,S)=>{const _=parseInt(o,10),H=parseInt(c,10),K=parseInt(g,10),ve=parseFloat(S);return c1(_,H,K,ve)},H8=o=>{if(o==="transparent")return L.some(c1(0,0,0,0));const c=DI.exec(o);if(c!==null)return L.some(II(c[1],c[2],c[3],"1"));const g=$I.exec(o);return g!==null?L.some(II(g[1],g[2],g[3],g[4])):L.none()},U8=o=>`rgba(${o.red},${o.green},${o.blue},${o.alpha})`,Kd=c1(255,0,0,1),fX=o=>{o.dispatch("SkinLoaded")},W8=(o,c)=>{o.dispatch("SkinLoadError",c)},NI=o=>{o.dispatch("ResizeEditor")},S5=(o,c)=>{o.dispatch("ResizeContent",c)},dX=(o,c)=>{o.dispatch("ScrollContent",c)},Y8=(o,c)=>{o.dispatch("TextColorChange",c)},BI=(o,c)=>{o.dispatch("AfterProgressState",{state:c})},QI=(o,c)=>o.dispatch("ResolveName",{name:c.nodeName.toLowerCase(),target:c}),hX=(o,c)=>{o.dispatch("ToggleToolbarDrawer",{state:c})},mX=(o,c)=>{o.dispatch("StylesTextUpdate",c)},gX=(o,c)=>{o.dispatch("AlignTextUpdate",c)},pX=(o,c)=>{o.dispatch("FontSizeTextUpdate",c)},vX=(o,c)=>{o.dispatch("FontSizeInputTextUpdate",c)},FI=(o,c)=>{o.dispatch("BlocksTextUpdate",c)},VI=(o,c)=>{o.dispatch("FontFamilyTextUpdate",c)},r3=(o,c)=>()=>{o(),c()},gu=o=>Vh(o,"NodeChange",c=>{c.setEnabled(o.selection.isEditable())}),yX=(o,c)=>g=>{const S=Em(),_=()=>{g.setActive(o.formatter.match(c));const H=o.formatter.formatChanged(c,g.setActive);S.set(H)};return o.initialized?_():o.once("init",_),()=>{o.off("init",_),S.clear()}},w5=(o,c)=>g=>{const S=gu(o)(g),_=yX(o,c)(g);return()=>{S(),_()}},Vh=(o,c,g)=>S=>{const _=()=>g(S),H=()=>{g(S),o.on(c,_)};return o.initialized?H():o.once("init",H),()=>{o.off("init",H),o.off(c,_)}},zI=o=>c=>()=>{o.undoManager.transact(()=>{o.focus(),o.execCommand("mceToggleFormat",!1,c.format)})},ff=(o,c)=>()=>o.execCommand(c);var u1=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const X8={},G8=(o,c=10)=>{const g=u1.getItem(o),S=m(g)?JSON.parse(g):[],H=(Ne=>c-Ne.length<0?Ne.slice(0,c):Ne)(S),K=Ne=>{ee(H,Ne).each(ve),H.unshift(Ne),H.length>c&&H.pop(),u1.setItem(o,JSON.stringify(H))},ve=Ne=>{H.splice(Ne,1)};return{add:K,state:()=>H.slice(0)}},T5=o=>Bt(X8,o).getOrThunk(()=>{const c=`tinymce-custom-colors-${o}`,g=u1.getItem(c);if(k(g)){const _=u1.getItem("tinymce-custom-colors");u1.setItem(c,C(_)?_:"[]")}const S=G8(c,10);return X8[o]=S,S}),j8=o=>ne(T5(o).state(),c=>({type:"choiceitem",text:c,icon:"checkmark",value:c})),q8=(o,c)=>{T5(o).add(c)},o3=(o,c,g)=>({hue:o,saturation:c,value:g}),C5=o=>{let c=0,g=0,S=0;const _=o.red/255,H=o.green/255,K=o.blue/255,ve=Math.min(_,Math.min(H,K)),Ae=Math.max(_,Math.max(H,K));if(ve===Ae)return S=ve,o3(0,0,S*100);const Ne=_===ve?H-K:K===ve?_-H:K-_;return c=_===ve?3:K===ve?1:5,c=60*(c-Ne/(Ae-ve)),g=(Ae-ve)/Ae,S=Ae,o3(Math.round(c),Math.round(g*100),Math.round(S*100))},bX=o=>C5(n3(o)),ZI=o=>b2(LI(o)),OX=o=>EI(o).orThunk(()=>H8(o).map(b2)).getOrThunk(()=>{const c=document.createElement("canvas");c.height=1,c.width=1;const g=c.getContext("2d");g.clearRect(0,0,c.width,c.height),g.fillStyle="#FFFFFF",g.fillStyle=o,g.fillRect(0,0,1,1);const S=g.getImageData(0,0,1,1).data,_=S[0],H=S[1],K=S[2],ve=S[3];return b2(c1(_,H,K,ve))}),k5="forecolor",A5="hilitecolor",HI=5,xX=o=>{const c=[];for(let g=0;gc=>c.options.get(o),K8="#000000",SX=o=>{const c=o.options.register,g=_=>R(_,m)?{value:xX(_),valid:!0}:{valid:!1,message:"Must be an array of strings."},S=_=>T(_)&&_>0?{value:_,valid:!0}:{valid:!1,message:"Must be a positive number."};c("color_map",{processor:g,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),c("color_map_background",{processor:g}),c("color_map_foreground",{processor:g}),c("color_cols",{processor:S,default:J8(o)}),c("color_cols_foreground",{processor:S,default:UI(o,k5)}),c("color_cols_background",{processor:S,default:UI(o,A5)}),c("custom_colors",{processor:"boolean",default:!0}),c("color_default_foreground",{processor:"string",default:K8}),c("color_default_background",{processor:"string",default:K8})},P5=(o,c)=>c===k5&&o.options.isSet("color_map_foreground")?sp("color_map_foreground")(o):c===A5&&o.options.isSet("color_map_background")?sp("color_map_background")(o):sp("color_map")(o),J8=(o,c="default")=>Math.max(HI,Math.ceil(Math.sqrt(P5(o,c).length))),UI=(o,c)=>{const g=sp("color_cols")(o),S=J8(o,c);return g===J8(o)?S:g},WI=(o,c="default")=>Math.round((()=>c===k5?sp("color_cols_foreground")(o):c===A5?sp("color_cols_background")(o):sp("color_cols")(o))()),YI=sp("custom_colors"),wX=sp("color_default_foreground"),TX=sp("color_default_background"),XI="rgba(0, 0, 0, 0)",CX=o=>H8(o).exists(c=>c.alpha!==0),kX=o=>tn(o,c=>{if(St(c)){const g=Qa(c,"background-color");return it(CX(g),g)}else return L.none()}).getOr(XI),GI=(o,c)=>{const g=zt.fromDom(o.selection.getStart()),S=c==="hilitecolor"?kX(g):Qa(g,"color");return H8(S).map(_=>"#"+b2(_).value)},AX=(o,c,g)=>{o.undoManager.transact(()=>{o.focus(),o.formatter.apply(c,{value:g}),o.nodeChanged()})},PX=(o,c)=>{o.undoManager.transact(()=>{o.focus(),o.formatter.remove(c,{value:null},void 0,!0),o.nodeChanged()})},M5=o=>{o.addCommand("mceApplyTextcolor",(c,g)=>{AX(o,c,g)}),o.addCommand("mceRemoveTextcolor",c=>{PX(o,c)})},e6=o=>{const c="choiceitem",g={type:c,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return o?[g,{type:c,text:"Custom color",icon:"color-picker",value:"custom"}]:[g]},t6=(o,c,g,S)=>{g==="custom"?JI(o)(H=>{H.each(K=>{q8(c,K),o.execCommand("mceApplyTextcolor",c,K),S(K)})},GI(o,c).getOr(K8)):g==="remove"?(S(""),o.execCommand("mceRemoveTextcolor",c)):(S(g),o.execCommand("mceApplyTextcolor",c,g))},n6=(o,c,g)=>o.concat(j8(c).concat(e6(g))),jI=(o,c,g)=>S=>{S(n6(o,c,g))},r6=(o,c,g)=>{const S=c==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";o.setIconFill(S,g)},qI=(o,c)=>{o.setTooltip(c)},KI=(o,c)=>g=>{const S=GI(o,c);return ln(S,g.toUpperCase())},s3=(o,c,g)=>{if(nn(g))return c==="forecolor"?"Text color":"Background color";const S=c==="forecolor"?"Text color {0}":"Background color {0}",_=n6(P5(o,c),c,!1),H=Ze(_,K=>K.value===g).getOr({text:""}).text;return o.translate([S,o.translate(H)])},o6=(o,c,g,S)=>{o.ui.registry.addSplitButton(c,{tooltip:s3(o,g,S.get()),presets:"color",icon:c==="forecolor"?"text-color":"highlight-bg-color",select:KI(o,g),columns:WI(o,g),fetch:jI(P5(o,g),g,YI(o)),onAction:_=>{t6(o,g,S.get(),M)},onItemAction:(_,H)=>{t6(o,g,H,K=>{S.set(K),Y8(o,{name:c,color:K})})},onSetup:_=>{r6(_,c,S.get());const H=K=>{K.name===c&&(r6(_,K.name,K.color),qI(_,s3(o,g,K.color)))};return o.on("TextColorChange",H),r3(gu(o)(_),()=>{o.off("TextColorChange",H)})}})},s6=(o,c,g,S,_)=>{o.ui.registry.addNestedMenuItem(c,{text:S,icon:c==="forecolor"?"text-color":"highlight-bg-color",onSetup:H=>(qI(H,s3(o,g,_.get())),r6(H,c,_.get()),gu(o)(H)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:KI(o,g),initData:{storageKey:g},onAction:H=>{t6(o,g,H.value,K=>{_.set(K),Y8(o,{name:c,color:K})})}}]})},JI=o=>(c,g)=>{let S=!1;const _=ve=>{const Ne=ve.getData().colorpicker;S?(c(L.from(Ne)),ve.close()):o.windowManager.alert(o.translate(["Invalid hex color code: {0}",Ne]))},H=(ve,Ae)=>{Ae.name==="hex-valid"&&(S=Ae.value)},K={colorpicker:g};o.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:K,onAction:H,onSubmit:_,onClose:M,onCancel:()=>{c(L.none())}})},a6=o=>{M5(o);const c=wX(o),g=TX(o),S=X(c),_=X(g);o6(o,"forecolor","forecolor",S),o6(o,"backcolor","hilitecolor",_),s6(o,"forecolor","forecolor","Text color",S),s6(o,"backcolor","hilitecolor","Background color",_)},i6=(o,c,g,S,_,H,K,ve)=>{const Ae=u5(c),Ue=MX(c,g,S,_!=="color"?"normal":"color",H,K,ve);return f5(o,Ae,Ue,S,{menuType:_})},MX=(o,c,g,S,_,H,K)=>an(ne(o,ve=>ve.type==="choiceitem"?fI(ve).fold(ep,Ae=>L.some(TI(Ae,g===1,S,c,H(Ae.value),_,K,u5(o)))):L.none())),E5=(o,c)=>{const g=Sv(c);return o===1?{mode:"menu",moveOnTab:!0}:o==="auto"?{mode:"grid",selector:"."+g.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+(c==="color"?"tox-swatches__row":"tox-collection__group"),previousSelector:_=>c==="color"?Ai(_.element,"[aria-checked=true]"):L.none()}},EX=(o,c)=>o===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:o==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:c==="color"?".tox-swatches__row":".tox-collection__group",cell:c==="color"?`.${d8}`:`.${l2}`}},_X=(o,c)=>{const g=RX(o,c),S=c.colorinput.getColorCols(o.initData.storageKey),_="color",K={...i6(Kr("menu-value"),g,ve=>{o.onAction({value:ve})},S,_,Hm.CLOSE_ON_EXECUTE,o.select.getOr(Y),c.shared.providers),markers:Sv(_),movement:E5(S,_)};return{type:"widget",data:{value:Kr("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[e3.widget(Eb.sketch(K))]}},RX=(o,c)=>{const g=o.initData.allowCustomColors&&c.colorinput.hasCustomColors();return o.initData.colors.fold(()=>n6(c.colorinput.getColors(o.initData.storageKey),o.initData.storageKey,g),S=>S.concat(e6(g)))},eN=Kr("cell-over"),tN=Kr("cell-execute"),DX=o=>(c,g)=>o.shared.providers.translate(`${g} columns, ${c} rows`),$X=(o,c,g)=>{const S=K=>vo(K,eN,{row:o,col:c}),_=K=>vo(K,tN,{row:o,col:c}),H=(K,ve)=>{ve.stop(),_(K)};return oc({dom:{tag:"div",attributes:{role:"button","aria-label":g}},behaviours:pr([Jo("insert-table-picker-cell",[qn(Lr(),Mo.focus),qn(Ii(),_),qn($i(),H),qn(Ac(),H)]),as.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Mo.config({onFocus:S})])})},_5=(o,c,g)=>{const S=[];for(let _=0;_{for(let H=0;Hre(o,c=>ne(c,nf)),u6=(o,c)=>yi(`${c}x${o}`),LX={inserttable:(o,c)=>{const _=DX(c),H=_5(_,10,10),K=u6(0,0),ve=ia({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[K],behaviours:pr([Uo.config({})])});return{type:"widget",data:{value:Kr("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[e3.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:c6(H).concat(ve.asSpec()),behaviours:pr([Jo("insert-table-picker",[Ca(Ae=>{Uo.set(ve.get(Ae),[K])}),jS(eN,(Ae,Ne,Ue)=>{const{row:Je,col:st}=Ue.event;l6(H,Je,st,10,10),Uo.set(ve.get(Ae),[u6(Je+1,st+1)])}),jS(tN,(Ae,Ne,Ue)=>{const{row:Je,col:st}=Ue.event;o.onAction({numRows:Je+1,numColumns:st+1}),ks(Ae,Ju())})]),yo.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:_X},f6=(o,c)=>Bt(LX,o.fancytype).map(g=>g(o,c)),d6=(o,c,g,S=!0,_=!1)=>{const H=_?lX(g.icons):Fh(g.icons),K=Ae=>({isEnabled:()=>!Co.isDisabled(Ae),setEnabled:Ne=>Co.set(Ae,!Ne),setIconFill:(Ne,Ue)=>{Ai(Ae.element,`svg path[class="${Ne}"], rect[class="${Ne}"]`).each(Je=>{Dr(Je,"fill",Ue)})},setTooltip:Ne=>{const Ue=g.translate(Ne);yc(Ae.element,{"aria-label":Ue,title:Ue})}}),ve=Qb({presets:"normal",iconContent:o.icon,textContent:o.text,htmlContent:L.none(),ariaLabel:o.text,caret:L.some(H),checkMark:L.none(),shortcutContent:o.shortcut},g,S);return op({data:Tv(o),getApi:K,enabled:o.enabled,onAction:M,onSetup:o.onSetup,triggersSubmenu:!0,itemBehaviours:[]},ve,c,g)},R5=(o,c,g,S=!0)=>{const _=K=>({isEnabled:()=>!Co.isDisabled(K),setEnabled:ve=>Co.set(K,!ve)}),H=Qb({presets:"normal",iconContent:o.icon,textContent:o.text,htmlContent:L.none(),ariaLabel:o.text,caret:L.none(),checkMark:L.none(),shortcutContent:o.shortcut},g,S);return op({data:Tv(o),getApi:_,enabled:o.enabled,onAction:o.onAction,onSetup:o.onSetup,triggersSubmenu:!1,itemBehaviours:[]},H,c,g)},nN=o=>({type:"separator",dom:{tag:"div",classes:[l2,wY]},components:o.text.map(yi).toArray()}),IX=(o,c,g,S=!0)=>{const _=K=>({setActive:ve=>{as.set(K,ve)},isActive:()=>as.isOn(K),isEnabled:()=>!Co.isDisabled(K),setEnabled:ve=>Co.set(K,!ve)}),H=Qb({iconContent:o.icon,textContent:o.text,htmlContent:L.none(),ariaLabel:o.text,checkMark:L.some(v2(g.icons)),caret:L.none(),shortcutContent:o.shortcut,presets:"normal",meta:o.meta},g,S);return Ta(op({data:Tv(o),enabled:o.enabled,getApi:_,onAction:o.onAction,onSetup:o.onSetup,triggersSubmenu:!1,itemBehaviours:[]},H,c,g),{toggling:{toggleClass:_L,toggleOnExecute:!1,selected:o.active}})},NX=wI,rN=nN,BX=R5,QX=d6,FX=IX,VX=f6,zX=z8;var ZX=Object.freeze({__proto__:null,getCoupled:(o,c,g,S)=>g.getOrCreate(o,c,S),getExistingCoupled:(o,c,g,S)=>g.getExisting(o,c,S)}),HX=[Zc("others",Kf(jo.value,vi()))],oN=Object.freeze({__proto__:null,init:()=>{const o={},c=(H,K)=>{if(ct(H.others).length===0)throw new Error("Cannot find any known coupled components");return Bt(o,K)},g=(H,K,ve)=>c(K,ve).getOrThunk(()=>{const Ne=Bt(K.others,ve).getOrDie("No information found for coupled component: "+ve)(H),Ue=H.getSystem().build(Ne);return o[ve]=Ue,Ue}),S=(H,K,ve)=>c(K,ve).orThunk(()=>(Bt(K.others,ve).getOrDie("No information found for coupled component: "+ve),L.none())),_=F({});return Cu({readState:_,getExisting:S,getOrCreate:g})}});const Mi=dl({fields:HX,name:"coupling",apis:ZX,state:oN}),h6=o=>{let c=L.none(),g=[];const S=Ne=>h6(Ue=>{_(Je=>{Ue(Ne(Je))})}),_=Ne=>{K()?Ae(Ne):g.push(Ne)},H=Ne=>{K()||(c=L.some(Ne),ve(g),g=[])},K=()=>c.isSome(),ve=Ne=>{pe(Ne,Ae)},Ae=Ne=>{c.each(Ue=>{setTimeout(()=>{Ne(Ue)},0)})};return o(H),{get:_,map:S,isReady:K}},UX={nu:h6,pure:o=>h6(c=>{c(o)})},WX=o=>{setTimeout(()=>{throw o},0)},f1=o=>{const c=Ae=>{o().then(Ae,WX)};return{map:Ae=>f1(()=>o().then(Ae)),bind:Ae=>f1(()=>o().then(Ne=>Ae(Ne).toPromise())),anonBind:Ae=>f1(()=>o().then(()=>Ae.toPromise())),toLazy:()=>UX.nu(c),toCached:()=>{let Ae=null;return f1(()=>(Ae===null&&(Ae=o()),Ae))},toPromise:o,get:c}},$c={nu:o=>f1(()=>new Promise(o)),pure:o=>f1(()=>Promise.resolve(o))},sN=F("sink"),aN=F(fu({name:sN(),overrides:F({dom:{tag:"div"},behaviours:pr([ac.config({useFixed:ie})]),events:Ea([Sm(_s()),Sm(go()),Sm($i())])})})),iN=(o,c)=>{const g=o.getHotspot(c).getOr(c),S="hotspot",_=o.getAnchorOverrides();return o.layouts.fold(()=>({type:S,hotspot:g,overrides:_}),H=>({type:S,hotspot:g,overrides:_,layouts:H}))},YX=(o,c,g)=>{const S=o.fetch;return S(g).map(c)},XX=(o,c,g,S,_,H,K)=>{const ve=YX(o,c,S),Ae=lN(S,o);return ve.map(Ne=>Ne.bind(Ue=>L.from(a1.sketch({...H.menu(),uid:c0(""),data:Ue,highlightOnOpen:K,onOpenMenu:(Je,st)=>{const ht=Ae().getOrDie();ac.position(ht,st,{anchor:g}),As.decloak(_)},onOpenSubmenu:(Je,st,ht)=>{const At=Ae().getOrDie();ac.position(At,ht,{anchor:{type:"submenu",item:st}}),As.decloak(_)},onRepositionMenu:(Je,st,ht)=>{const At=Ae().getOrDie();ac.position(At,st,{anchor:g}),pe(ht,qt=>{ac.position(At,qt.triggeredMenu,{anchor:{type:"submenu",item:qt.triggeringItem}})})},onEscape:()=>(Mo.focus(S),As.close(_),L.some(!0))}))))},D5=(o,c,g,S,_,H,K)=>{const ve=iN(o,g);return XX(o,c,ve,g,S,_,K).map(Ne=>(Ne.fold(()=>{As.isOpen(S)&&As.close(S)},Ue=>{As.cloak(S),As.open(S,Ue),H(S)}),S))},GX=(o,c,g,S,_,H,K)=>(As.close(S),$c.pure(S)),m6=(o,c,g,S,_,H)=>{const K=Mi.getCoupled(g,"sandbox");return(As.isOpen(K)?GX:D5)(o,c,g,K,S,_,H)},jX=(o,c,g)=>{const S=xs.getCurrent(c).getOr(c),_=Si(o.element);g?Po(S.element,"min-width",_+"px"):Vs(S.element,_)},lN=(o,c)=>o.getSystem().getByUid(c.uid+"-"+sN()).map(g=>()=>jo.value(g)).getOrThunk(()=>c.lazySink.fold(()=>()=>jo.error(new Error("No internal sink is specified, nor could an external sink be found")),g=>()=>g(o))),cN=o=>{As.getState(o).each(c=>{a1.repositionMenus(c)})},g6=(o,c,g)=>{const S=rv(),_=(ve,Ae)=>{const Ne=iN(o,c);S.link(c.element),o.matchWidth&&jX(Ne.hotspot,Ae,o.useMinWidth),o.onOpen(Ne,ve,Ae),g!==void 0&&g.onOpen!==void 0&&g.onOpen(ve,Ae)},H=(ve,Ae)=>{S.unlink(c.element),g!==void 0&&g.onClose!==void 0&&g.onClose(ve,Ae)},K=lN(c,o);return{dom:{tag:"div",classes:o.sandboxClasses,attributes:{id:S.id,role:"listbox"}},behaviours:If.augment(o.sandboxBehaviours,[Fr.config({store:{mode:"memory",initialValue:c}}),As.config({onOpen:_,onClose:H,isPartOf:(ve,Ae,Ne)=>Am(Ae,Ne)||Am(c,Ne),getAttachPoint:()=>K().getOrDie()}),xs.config({find:ve=>As.getState(ve).bind(Ae=>xs.getCurrent(Ae))}),lu.config({channels:{...cb({isExtraPart:Y}),...W0({doReposition:cN})}})])}},uN=o=>{const c=Mi.getCoupled(o,"sandbox");cN(c)},p6=()=>[Mn("sandboxClasses",[]),If.field("sandboxBehaviours",[xs,lu,As,Fr])],qX=F([er("dom"),er("fetch"),Rs("onOpen"),Eu("onExecute"),Mn("getHotspot",L.some),Mn("getAnchorOverrides",F({})),Ng(),el("dropdownBehaviours",[as,Mi,yo,Mo]),er("toggleClass"),Mn("eventOrder",{}),Ws("lazySink"),Mn("matchWidth",!1),Mn("useMinWidth",!1),Ws("role")].concat(p6())),KX=F([cd({schema:[Qy(),Mn("fakeFocus",!1)],name:"menu",defaults:o=>({onExecute:o.onExecute})}),aN()]),JX=(o,c,g,S)=>{const _=Ue=>Bt(o.dom,"attributes").bind(Je=>Bt(Je,Ue)),H=Ue=>{As.getState(Ue).each(Je=>{a1.highlightPrimary(Je)})},K=(Ue,Je,st)=>m6(o,z,Ue,S,Je,st),ve=Ue=>{K(Ue,H,mu.HighlightMenuAndItem).get(M)},Ae={expand:Ue=>{as.isOn(Ue)||K(Ue,M,mu.HighlightNone).get(M)},open:Ue=>{as.isOn(Ue)||K(Ue,M,mu.HighlightMenuAndItem).get(M)},refetch:Ue=>Mi.getExistingCoupled(Ue,"sandbox").fold(()=>K(Ue,M,mu.HighlightMenuAndItem).map(M),st=>D5(o,z,Ue,st,S,M,mu.HighlightMenuAndItem).map(M)),isOpen:as.isOn,close:Ue=>{as.isOn(Ue)&&K(Ue,M,mu.HighlightMenuAndItem).get(M)},repositionMenus:Ue=>{as.isOn(Ue)&&uN(Ue)}},Ne=(Ue,Je)=>(xm(Ue),L.some(!0));return{uid:o.uid,dom:o.dom,components:c,behaviours:Ni(o.dropdownBehaviours,[as.config({toggleClass:o.toggleClass,aria:{mode:"expanded"}}),Mi.config({others:{sandbox:Ue=>g6(o,Ue,{onOpen:()=>as.on(Ue),onClose:()=>as.off(Ue)})}}),yo.config({mode:"special",onSpace:Ne,onEnter:Ne,onDown:(Ue,Je)=>{if(Jd.isOpen(Ue)){const st=Mi.getCoupled(Ue,"sandbox");H(st)}else Jd.open(Ue);return L.some(!0)},onEscape:(Ue,Je)=>Jd.isOpen(Ue)?(Jd.close(Ue),L.some(!0)):L.none()}),Mo.config({})]),events:Vm(L.some(ve)),eventOrder:{...o.eventOrder,[Ii()]:["disabling","toggling","alloy.base.behaviour"]},apis:Ae,domModification:{attributes:{"aria-haspopup":"true",...o.role.fold(()=>({}),Ue=>({role:Ue})),...o.dom.tag==="button"?{type:_("type").getOr("button")}:{}}}}},Jd=lc({name:"Dropdown",configFields:qX(),partFields:KX(),factory:JX,apis:{open:(o,c)=>o.open(c),refetch:(o,c)=>o.refetch(c),expand:(o,c)=>o.expand(c),close:(o,c)=>o.close(c),isOpen:(o,c)=>o.isOpen(c),repositionMenus:(o,c)=>o.repositionMenus(c)}}),eG=o=>{switch(o.searchMode){case"no-search":return{menuType:"normal"};default:return{menuType:"searchable",searchMode:o}}},tG=o=>{const c=Fr.getValue(o),g=i5(o).map(VL);Jd.refetch(c).get(()=>{const S=Mi.getCoupled(c,"sandbox");g.each(_=>i5(S).each(H=>b8(H,_)))})},nG=(o,c)=>{rG(o).each(g=>{EM(o,g.element,c.event.eventType,c.event.interactionEvent)})},rG=o=>As.getState(o).bind(Ys.getHighlighted).bind(Ys.getHighlighted),oG=o=>Ji(o.element,l5)?L.some(o.element):Ai(o.element,"."+l5),v6=(o,c,g)=>{y8(o).each(S=>{O8(S,g),oG(c).each(H=>{Ri(H,"id").each(K=>Dr(S.element,"aria-controls",K))})}),Dr(g.element,"aria-selected","true")},sG=(o,c,g)=>{Dr(g.element,"aria-selected","false")},aG=o=>{y8(o).each(c=>Mo.focus(c))},iG=o=>Mi.getExistingCoupled(o,"sandbox").bind(i5).map(VL).map(g=>g.fetchPattern).getOr("");var a3;(function(o){o[o.ContentFocus=0]="ContentFocus",o[o.UiFocus=1]="UiFocus"})(a3||(a3={}));const lG=(o,c,g,S,_)=>{const H=g.shared.providers,K=ve=>_?{...ve,shortcut:L.none(),icon:ve.text.isSome()?L.none():ve.icon}:ve;switch(o.type){case"menuitem":return hI(o).fold(ep,ve=>L.some(BX(K(ve),c,H,S)));case"nestedmenuitem":return qY(o).fold(ep,ve=>L.some(QX(K(ve),c,H,S,_)));case"togglemenuitem":return JY(o).fold(ep,ve=>L.some(FX(K(ve),c,H,S)));case"separator":return M8(o).fold(ep,ve=>L.some(rN(ve)));case"fancymenuitem":return GY(o).fold(ep,ve=>VX(ve,g));default:return console.error("Unknown item in general menu",o),L.none()}},cG=(o,c,g,S,_,H,K)=>{const ve=S===1,Ae=!ve||u5(o);return an(ne(o,Ne=>{switch(Ne.type){case"separator":return IY(Ne).fold(ep,Ue=>L.some(rN(Ue)));case"cardmenuitem":return cI(Ne).fold(ep,Ue=>L.some(zX({...Ue,onAction:Je=>{Ue.onAction(Je),g(Ue.value,Ue.meta)}},_,H,{itemBehaviours:xI(Ue.meta,H),cardText:{matchText:c,highlightOn:K}})));case"autocompleteitem":default:return JL(Ne).fold(ep,Ue=>L.some(NX(Ue,c,ve,"normal",g,_,H,Ae)))}}))},fN=(o,c,g,S,_,H)=>{const K=u5(c),ve=an(ne(c,Ue=>{const Je=ht=>_?!vn(ht,"text"):K,st=ht=>lG(ht,g,S,Je(ht),_);return Ue.type==="nestedmenuitem"&&Ue.getSubmenuItems().length<=0?st({...Ue,enabled:!1}):st(Ue)})),Ae=eG(H);return(_?XT:f5)(o,K,ve,1,Ae)},$5=o=>a1.singleData(o.value,o),uG=(o,c,g,S)=>{const _=E5(c,S),H=Sv(S);return{data:$5({...o,movement:_,menuBehaviours:KT.unnamedEvents(c!=="auto"?[]:[Ca((K,ve)=>{D8(K,4,H.item).each(({numColumns:Ae,numRows:Ne})=>{yo.setGridSize(K,Ne,Ae)})})])}),menu:{markers:Sv(S),fakeFocus:g===a3.ContentFocus}}},fG=(o,c)=>c8(zt.fromDom(c.startContainer)).map(g=>{const S=o.createRng();return S.selectNode(g.dom),S}),dG={register:(o,c)=>{const g=Kr("autocompleter"),S=X(!1),_=X(!1),H=oc(ri.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:g}},components:[],fireDismissalEventInstead:{},inlineBehaviours:pr([Jo("dismissAutocompleter",[qn(Ag(),()=>Ue()),qn(Ey(),(Dn,mn)=>{Ri(mn.event.target,"id").each(on=>Dr(zt.fromDom(o.getBody()),"aria-activedescendant",on))})])]),lazySink:c.getSink})),K=()=>ri.isOpen(H),ve=_.get,Ae=()=>{if(K()){ri.hide(H),o.dom.remove(g,!1);const Dn=zt.fromDom(o.getBody());Ri(Dn,"aria-owns").filter(mn=>mn===g).each(()=>{sa(Dn,"aria-owns"),sa(Dn,"aria-activedescendant")})}},Ne=()=>ri.getContent(H).bind(Dn=>le(Dn.components(),0)),Ue=()=>o.execCommand("mceAutocompleterClose"),Je=Dn=>{const mn=Xe(Dn,on=>L.from(on.columns)).getOr(1);return re(Dn,on=>{const kn=on.items;return cG(kn,on.matchText,(Zn,mr)=>{const Gn=o.selection.getRng();fG(o.dom,Gn).each(Or=>{const Mr={hide:()=>Ue(),reload:is=>{Ae(),o.execCommand("mceAutocompleterReload",!1,{fetchOptions:is})}};S.set(!0),on.onAction(Mr,Or,Zn,mr),S.set(!1)})},mn,Hm.BUBBLE_TO_SANDBOX,c,on.highlightOn)})},st=(Dn,mn)=>{OY(zt.fromDom(o.getBody())).each(on=>{const kn=Xe(Dn,Zn=>L.from(Zn.columns)).getOr(1);ri.showMenuAt(H,{anchor:{type:"node",root:zt.fromDom(o.getBody()),node:L.from(on)}},uG(f5("autocompleter-value",!0,mn,kn,{menuType:"normal"}),kn,a3.ContentFocus,"normal"))}),Ne().each(Ys.highlightFirst)},ht=Dn=>{const mn=Je(Dn);mn.length>0?(st(Dn,mn),Dr(zt.fromDom(o.getBody()),"aria-owns",g),o.inline||At()):Ae()},At=()=>{o.dom.get(g)&&o.dom.remove(g,!1);const Dn=o.getDoc().documentElement,mn=o.selection.getNode(),on=$M(H.element);zi(on,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${mn.offsetTop}px`,left:`${mn.offsetLeft}px`}),o.dom.add(Dn,on.dom),Ai(on,'[role="menu"]').each(kn=>{Zo(kn,"position"),Zo(kn,"max-height")})};o.on("AutocompleterStart",({lookupData:Dn})=>{_.set(!0),S.set(!1),ht(Dn)}),o.on("AutocompleterUpdate",({lookupData:Dn})=>ht(Dn)),o.on("AutocompleterEnd",()=>{Ae(),_.set(!1),S.set(!1)});const qt={cancelIfNecessary:Ue,isMenuOpen:K,isActive:ve,isProcessingAction:S.get,getMenu:Ne};xY.setup(qt,o)}},dN=["visible","hidden","clip"],hN=o=>Pt(o).length>0&&!be(dN,o),y6=o=>{if(Ee(o)){const c=Qa(o,"overflow-x"),g=Qa(o,"overflow-y");return hN(c)||hN(g)}else return!1},hG=o=>{const c=Yk(o,y6),g=c.length===0?vc(o).map(ii).map(S=>Yk(S,y6)).getOr([]):c;return Ce(g).map(S=>({element:S,others:g.slice(1)}))},d1=(o,c)=>Kg(o)?hG(c):L.none(),O2=o=>{const c=[...ne(o.others,ui),Vl()];return IO(ui(o.element),c)},i3=(o,c,g)=>Vd(o,c,g).isSome(),mN=(o,c)=>{let g=null;return{cancel:()=>{g!==null&&(clearTimeout(g),g=null)},schedule:(...H)=>{g=setTimeout(()=>{o.apply(null,H),g=null},c)}}},gN=5,mG=400,pN=o=>{const c=o.raw;return c.touches===void 0||c.touches.length!==1?L.none():L.some(c.touches[0])},gG=(o,c)=>{const g=Math.abs(o.clientX-c.x),S=Math.abs(o.clientY-c.y);return g>gN||S>gN},pG=o=>{const c=gs(),g=X(!1),S=mN(Ne=>{o.triggerEvent(Nd(),Ne),g.set(!0)},mG),_=Ne=>(pN(Ne).each(Ue=>{S.cancel();const Je={x:Ue.clientX,y:Ue.clientY,target:Ne.target};S.schedule(Ne),g.set(!1),c.set(Je)}),L.none()),H=Ne=>(S.cancel(),pN(Ne).each(Ue=>{c.on(Je=>{gG(Ue,Je)&&c.clear()})}),L.none()),K=Ne=>{S.cancel();const Ue=Je=>Jt(Je.target,Ne.target);return c.get().filter(Ue).map(Je=>g.get()?(Ne.prevent(),!1):o.triggerEvent(Ac(),Ne))},ve=bt([{key:no(),value:_},{key:fo(),value:H},{key:ts(),value:K}]);return{fireIfReady:(Ne,Ue)=>Bt(ve,Ue).bind(Je=>Je(Ne))}},vG=o=>o.raw.which===h_[0]&&!be(["input","textarea"],Oo(o.target))&&!i3(o.target,'[contenteditable="true"]'),yG=(o,c)=>{const g={stopBackspace:!0,...c},S=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],_=pG(g),H=ne(S.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),ht=>_c(o,ht,At=>{_.fireIfReady(At,ht).each(Dn=>{Dn&&At.kill()}),g.triggerEvent(ht,At)&&At.kill()})),K=gs(),ve=_c(o,"paste",ht=>{_.fireIfReady(ht,"paste").each(qt=>{qt&&ht.kill()}),g.triggerEvent("paste",ht)&&ht.kill(),K.set(setTimeout(()=>{g.triggerEvent(Li(),ht)},0))}),Ae=_c(o,"keydown",ht=>{g.triggerEvent("keydown",ht)?ht.kill():g.stopBackspace&&vG(ht)&&ht.prevent()}),Ne=_c(o,"focusin",ht=>{g.triggerEvent("focusin",ht)&&ht.kill()}),Ue=gs(),Je=_c(o,"focusout",ht=>{g.triggerEvent("focusout",ht)&&ht.kill(),Ue.set(setTimeout(()=>{g.triggerEvent(Ul(),ht)},0))});return{unbind:()=>{pe(H,ht=>{ht.unbind()}),Ae.unbind(),Ne.unbind(),Je.unbind(),ve.unbind(),K.on(clearTimeout),Ue.on(clearTimeout)}}},vN=(o,c)=>{const g=Bt(o,"target").getOr(c);return X(g)},bG=(o,c)=>{const g=X(!1),S=X(!1);return{stop:()=>{g.set(!0)},cut:()=>{S.set(!0)},isStopped:g.get,isCut:S.get,event:o,setSource:c.set,getSource:c.get}},yN=o=>{const c=X(!1);return{stop:()=>{c.set(!0)},cut:M,isStopped:c.get,isCut:Y,event:o,setSource:E("Cannot set source of a broadcasted event"),getSource:E("Cannot get source of a broadcasted event")}},l3=we.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),bN=(o,c,g,S,_,H)=>{const K=o(c,S),ve=bG(g,_);return K.fold(()=>(H.logEventNoHandlers(c,S),l3.complete()),Ae=>{const Ne=Ae.descHandler;return h0(Ne)(ve),ve.isStopped()?(H.logEventStopped(c,Ae.element,Ne.purpose),l3.stopped()):ve.isCut()?(H.logEventCut(c,Ae.element,Ne.purpose),l3.complete()):Fn(Ae.element).fold(()=>(H.logNoParent(c,Ae.element,Ne.purpose),l3.complete()),Je=>(H.logEventResponse(c,Ae.element,Ne.purpose),l3.resume(Je)))})},ON=(o,c,g,S,_,H)=>bN(o,c,g,S,_,H).fold(ie,K=>ON(o,c,g,K,_,H),Y),OG=(o,c,g,S,_)=>{const H=vN(g,S);return bN(o,c,g,S,H,_)},xG=(o,c,g)=>{const S=yN(c);return pe(o,_=>{const H=_.descHandler;h0(H)(S)}),S.isStopped()},b6=(o,c,g,S)=>xN(o,c,g,g.target,S),xN=(o,c,g,S,_)=>{const H=vN(g,S);return ON(o,c,g,S,H,_)},SG=(o,c)=>({element:o,descHandler:c}),wG=(o,c)=>({id:o,descHandler:c}),SN=()=>{const o={},c=(K,ve,Ae)=>{Ye(Ae,(Ne,Ue)=>{const Je=o[Ue]!==void 0?o[Ue]:{};Je[ve]=ow(Ne,K),o[Ue]=Je})},g=(K,ve)=>$y(ve).bind(Ae=>Bt(K,Ae)).map(Ae=>SG(ve,Ae));return{registerId:c,unregisterId:K=>{Ye(o,(ve,Ae)=>{vn(ve,K)&&delete ve[K]})},filterByType:K=>Bt(o,K).map(ve=>Xt(ve,(Ae,Ne)=>wG(Ne,Ae))).getOr([]),find:(K,ve,Ae)=>Bt(o,ve).bind(Ne=>tn(Ae,Ue=>g(Ne,Ue),K))}},wN=()=>{const o=SN(),c={},g=Ne=>{const Ue=Ne.element;return $y(Ue).getOrThunk(()=>Jp("uid-",Ne.element))},S=(Ne,Ue)=>{const Je=c[Ue];if(Je===Ne)H(Ne);else throw new Error('The tagId "'+Ue+'" is already used by: '+wh(Je.element)+` +Cannot use it for: `+wh(Ne.element)+` +The conflicting element is`+(Js(Je.element)?" ":" not ")+"already in the DOM")},_=Ne=>{const Ue=g(Ne);En(c,Ue)&&S(Ne,Ue);const Je=[Ne];o.registerId(Je,Ue,Ne.events),c[Ue]=Ne},H=Ne=>{$y(Ne.element).each(Ue=>{delete c[Ue],o.unregisterId(Ue)})};return{find:(Ne,Ue,Je)=>o.find(Ne,Ue,Je),filter:Ne=>o.filterByType(Ne),register:_,unregister:H,getById:Ne=>Bt(c,Ne)}},Um=_u({name:"Container",factory:o=>{const{attributes:c,...g}=o.dom;return{uid:o.uid,dom:{tag:"div",attributes:{role:"presentation",...c},...g},components:o.components,behaviours:Lm(o.containerBehaviours),events:o.events,domModification:o.domModification,eventOrder:o.eventOrder}},configFields:[Mn("components",[]),el("containerBehaviours",[]),Mn("events",{}),Mn("domModification",{}),Mn("eventOrder",{})]}),L5=o=>{const c=mn=>Fn(o.element).fold(ie,on=>Jt(mn,on)),g=wN(),S=(mn,on)=>g.find(c,mn,on),_=yG(o.element,{triggerEvent:(mn,on)=>lx(mn,on.target,kn=>b6(S,mn,on,kn))}),H={debugInfo:F("real"),triggerEvent:(mn,on,kn)=>{lx(mn,on,Zn=>xN(S,mn,kn,on,Zn))},triggerFocus:(mn,on)=>{$y(mn).fold(()=>{cu(mn)},kn=>{lx(Df(),mn,Zn=>(OG(S,Df(),{originator:on,kill:M,prevent:M,target:mn},mn,Zn),!1))})},triggerEscape:(mn,on)=>{H.triggerEvent("keydown",mn.element,on.event)},getByUid:mn=>qt(mn),getByDom:mn=>Dn(mn),build:oc,buildOrPatch:sx,addToGui:mn=>{Ae(mn)},removeFromGui:mn=>{Ne(mn)},addToWorld:mn=>{K(mn)},removeFromWorld:mn=>{ve(mn)},broadcast:mn=>{st(mn)},broadcastOn:(mn,on)=>{ht(mn,on)},broadcastEvent:(mn,on)=>{At(mn,on)},isConnected:ie},K=mn=>{mn.connect(H),Ct(mn.element)||(g.register(mn),pe(mn.components(),K),H.triggerEvent(Bd(),mn.element,{target:mn.element}))},ve=mn=>{Ct(mn.element)||(pe(mn.components(),ve),g.unregister(mn)),mn.disconnect()},Ae=mn=>{Hg(o,mn)},Ne=mn=>{Rh(mn)},Ue=()=>{_.unbind(),xc(o.element)},Je=mn=>{const on=g.filter(Wl());pe(on,kn=>{const Zn=kn.descHandler;h0(Zn)(mn)})},st=mn=>{Je({universal:!0,data:mn})},ht=(mn,on)=>{Je({universal:!1,channels:mn,data:on})},At=(mn,on)=>{const kn=g.filter(mn);return xG(kn,on)},qt=mn=>g.getById(mn).fold(()=>jo.error(new Error('Could not find component with uid: "'+mn+'" in system.')),jo.value),Dn=mn=>{const on=$y(mn).getOr("not found");return qt(on)};return K(o),{root:o,element:o.element,destroy:Ue,add:Ae,remove:Ne,getByUid:qt,getByDom:Dn,addToWorld:K,removeFromWorld:ve,broadcast:st,broadcastOn:ht,broadcastEvent:At}},TG=(o,c)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:ne(o.items,c.interpreter)}),CG=F([Mn("prefix","form-field"),el("fieldBehaviours",[xs,Fr])]),kG=F([fu({schema:[er("dom")],name:"label"}),fu({factory:{sketch:o=>({uid:o.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:o.text}})},schema:[er("text")],name:"aria-descriptor"}),ic({factory:{sketch:o=>{const c=rt(o,["factory"]);return o.factory.sketch(c)}},schema:[er("factory")],name:"field"})]),AG=(o,c,g,S)=>{const _=Ni(o.fieldBehaviours,[xs.config({find:ve=>ka(ve,o,"field")}),Fr.config({store:{mode:"manual",getValue:ve=>xs.getCurrent(ve).bind(Fr.getValue),setValue:(ve,Ae)=>{xs.getCurrent(ve).each(Ne=>{Fr.setValue(Ne,Ae)})}}})]),H=Ea([Ca((ve,Ae)=>{const Ne=vA(ve,o,["label","field","aria-descriptor"]);Ne.field().each(Ue=>{const Je=Kr(o.prefix);Ne.label().each(st=>{Dr(st.element,"for",Je),Dr(Ue.element,"id",Je)}),Ne["aria-descriptor"]().each(st=>{const ht=Kr(o.prefix);Dr(st.element,"id",ht),Dr(Ue.element,"aria-describedby",ht)})})})]),K={getField:ve=>ka(ve,o,"field"),getLabel:ve=>ka(ve,o,"label")};return{uid:o.uid,dom:o.dom,components:c,behaviours:_,events:H,apis:K}},la=lc({name:"FormField",configFields:CG(),partFields:kG(),factory:AG,apis:{getField:(o,c)=>o.getField(c),getLabel:(o,c)=>o.getLabel(c)}});var I5=Object.freeze({__proto__:null,exhibit:(o,c)=>ku({attributes:bt([{key:c.tabAttr,value:"true"}])})}),PG=[Mn("tabAttr","data-alloy-tabstop")];const Ga=dl({fields:PG,name:"tabstopping",active:I5});var MG=tinymce.util.Tools.resolve("tinymce.html.Entities");const c3=(o,c,g,S)=>{const _=_G(o,c,g,S);return la.sketch(_)},EG=(o,c)=>c3(o,c,[],[]),_G=(o,c,g,S)=>({dom:u3(g),components:o.toArray().concat([c]),fieldBehaviours:pr(S)}),Zle=()=>u3([]),u3=o=>({tag:"div",classes:["tox-form__group"].concat(o)}),eh=(o,c)=>la.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[yi(c.translate(o))]}),df=Kr("form-component-change"),x2=Kr("form-close"),h1=Kr("form-cancel"),ap=Kr("form-action"),f3=Kr("form-submit"),O6=Kr("form-block"),x6=Kr("form-unblock"),TN=Kr("form-tabchange"),CN=Kr("form-resize"),RG=(o,c,g)=>{const S=o.label.map(ht=>eh(ht,c)),_=c.icons(),H=ht=>{var At;return(At=_[ht])!==null&&At!==void 0?At:ht},K=ht=>(At,qt)=>{Vd(qt.event.target,"[data-collection-item-value]").each(Dn=>{ht(At,qt,Dn,oa(Dn,"data-collection-item-value"))})},ve=(ht,At)=>{const qt=ne(At,on=>{const kn=dd.translate(on.text),Zn=o.columns===1?`
    ${kn}
    `:"",mr=`
    ${H(on.icon)}
    `,Gn={_:" "," - ":" ","-":" "},Or=kn.replace(/\_| \- |\-/g,is=>Gn[is]);return`
    ${mr}${Zn}
    `}),Dn=o.columns!=="auto"&&o.columns>1?ge(qt,o.columns):[qt],mn=ne(Dn,on=>`
    ${on.join("")}
    `);Kp(ht.element,mn.join(""))},Ae=K((ht,At,qt,Dn)=>{At.stop(),c.isDisabled()||vo(ht,ap,{name:o.name,value:Dn})}),Ne=[qn(Lr(),K((ht,At,qt)=>{cu(qt)})),qn($i(),Ae),qn(Ac(),Ae),qn(Do(),K((ht,At,qt)=>{Ai(ht.element,"."+WT).each(Dn=>{Xa(Dn,WT)}),ki(qt,WT)})),qn(ms(),K(ht=>{Ai(ht.element,"."+WT).each(At=>{Xa(At,WT)})})),rd(K((ht,At,qt,Dn)=>{vo(ht,ap,{name:o.name,value:Dn})}))],Ue=(ht,At)=>ne(hl(ht.element,".tox-collection__item"),At),Je=la.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(o.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:z},behaviours:pr([Co.config({disabled:c.isDisabled,onDisabled:ht=>{Ue(ht,At=>{ki(At,"tox-collection__item--state-disabled"),Dr(At,"aria-disabled",!0)})},onEnabled:ht=>{Ue(ht,At=>{Xa(At,"tox-collection__item--state-disabled"),sa(At,"aria-disabled")})}}),gl(),Uo.config({}),Fr.config({store:{mode:"memory",initialValue:g.getOr([])},onSetValue:(ht,At)=>{ve(ht,At),o.columns==="auto"&&D8(ht,5,"tox-collection__item").each(({numRows:qt,numColumns:Dn})=>{yo.setGridSize(ht,qt,Dn)}),ks(ht,CN)}}),Ga.config({}),yo.config(EX(o.columns,"normal")),Jo("collection-events",Ne)]),eventOrder:{[Ii()]:["disabling","alloy.base.behaviour","collection-events"]}});return c3(S,Je,["tox-form__group--collection"],[])},DG=["input","textarea"],kN=o=>{const c=Oo(o);return be(DG,c)},AN=(o,c)=>{const g=c.getRoot(o).getOr(o.element);Xa(g,c.invalidClass),c.notify.each(S=>{kN(o.element)&&Dr(o.element,"aria-invalid",!1),S.getContainer(o).each(_=>{Kp(_,S.validHtml)}),S.onValid(o)})},S6=(o,c,g,S)=>{const _=c.getRoot(o).getOr(o.element);ki(_,c.invalidClass),c.notify.each(H=>{kN(o.element)&&Dr(o.element,"aria-invalid",!0),H.getContainer(o).each(K=>{Kp(K,S)}),H.onInvalid(o,S)})},Fb=(o,c,g)=>c.validator.fold(()=>$c.pure(jo.value(!0)),S=>S.validate(o)),kv=(o,c,g)=>(c.notify.each(S=>{S.onValidate(o)}),Fb(o,c).map(S=>o.getSystem().isConnected()?S.fold(_=>(S6(o,c,g,_),jo.error(_)),_=>(AN(o,c),jo.value(_))):jo.error("No longer in system")));var PN=Object.freeze({__proto__:null,markValid:AN,markInvalid:S6,query:Fb,run:kv,isInvalid:(o,c)=>{const g=c.getRoot(o).getOr(o.element);return Ji(g,c.invalidClass)}}),N5=Object.freeze({__proto__:null,events:(o,c)=>o.validator.map(g=>Ea([qn(g.onEvent,S=>{kv(S,o,c).get(z)})].concat(g.validateOnLoad?[Ca(S=>{kv(S,o,c).get(M)})]:[]))).getOr({})}),LG=[er("invalidClass"),Mn("getRoot",L.none),wc("notify",[Mn("aria","alert"),Mn("getContainer",L.none),Mn("validHtml",""),Rs("onValid"),Rs("onInvalid"),Rs("onValidate")]),wc("validator",[er("validate"),Mn("onEvent","input"),Mn("validateOnLoad",!0)])];const gd=dl({fields:LG,name:"invalidating",active:N5,apis:PN,extra:{validation:o=>c=>{const g=Fr.getValue(c);return $c.pure(o(g))}}});var IG=Object.freeze({__proto__:null,events:()=>Ea([YS(Hl(),ie)]),exhibit:()=>ku({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})});const d3=dl({fields:[],name:"unselecting",active:IG}),NG=(o,c)=>Jd.sketch({dom:o.dom,components:o.components,toggleClass:"mce-active",dropdownBehaviours:pr([tl.button(c.providers.isDisabled),gl(),d3.config({}),Ga.config({})]),layouts:o.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:c.getSink,fetch:g=>$c.nu(S=>o.fetch(S)).map(S=>L.from($5(Ta(i6(Kr("menu-value"),S,_=>{o.onItemAction(g,_)},o.columns,o.presets,Hm.CLOSE_ON_EXECUTE,Y,c.providers),{movement:E5(o.columns,o.presets)})))),parts:{menu:c2(!1,1,o.presets)}}),MN=Kr("color-input-change"),EN=Kr("color-swatch-change"),h3=Kr("color-picker-cancel"),BG=(o,c,g,S)=>{const _=la.parts.field({factory:Ib,inputClasses:["tox-textfield"],data:S,onSetValue:Ne=>gd.run(Ne).get(M),inputBehaviours:pr([Co.config({disabled:c.providers.isDisabled}),gl(),Ga.config({}),gd.config({invalidClass:"tox-textbox-field-invalid",getRoot:Ne=>dr(Ne.element),notify:{onValid:Ne=>{const Ue=Fr.getValue(Ne);vo(Ne,MN,{color:Ue})}},validator:{validateOnLoad:!1,validate:Ne=>{const Ue=Fr.getValue(Ne);if(Ue.length===0)return $c.pure(jo.value(!0));{const Je=zt.fromTag("span");Po(Je,"background-color",Ue);const st=za(Je,"background-color").fold(()=>jo.error("blah"),ht=>jo.value(Ue));return $c.pure(st)}}}})]),selectOnFocus:!1}),H=o.label.map(Ne=>eh(Ne,c.providers)),K=(Ne,Ue)=>{vo(Ne,EN,{value:Ue})},ve=(Ne,Ue)=>{Ae.getOpt(Ne).each(Je=>{Ue==="custom"?g.colorPicker(st=>{st.fold(()=>ks(Je,h3),ht=>{K(Je,ht),q8(o.storageKey,ht)})},"#ffffff"):Ue==="remove"?K(Je,""):K(Je,Ue)})},Ae=ia(NG({dom:{tag:"span",attributes:{"aria-label":c.providers.translate("Color swatch")}},layouts:{onRtl:()=>[Gl,ul,fl],onLtr:()=>[ul,Gl,fl]},components:[],fetch:jI(g.getColors(o.storageKey),o.storageKey,g.hasCustomColors()),columns:g.getColorCols(o.storageKey),presets:"color",onItemAction:ve},c));return la.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:H.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[_,Ae.asSpec()]}]),fieldBehaviours:pr([Jo("form-field-events",[qn(MN,(Ne,Ue)=>{Ae.getOpt(Ne).each(Je=>{Po(Je.element,"background-color",Ue.event.color)}),vo(Ne,df,{name:o.name})}),qn(EN,(Ne,Ue)=>{la.getField(Ne).each(Je=>{Fr.setValue(Je,Ue.event.value),xs.getCurrent(Ne).each(Mo.focus)})}),qn(h3,(Ne,Ue)=>{la.getField(Ne).each(Je=>{xs.getCurrent(Ne).each(Mo.focus)})})])])})},w6=fu({schema:[er("dom")],name:"label"}),m1=o=>fu({name:""+o+"-edge",overrides:c=>c.model.manager.edgeActions[o].fold(()=>({}),S=>({events:Ea([UO(no(),(_,H,K)=>S(_,K),[c]),UO(go(),(_,H,K)=>S(_,K),[c]),UO(js(),(_,H,K)=>{K.mouseIsDown.get()&&S(_,K)},[c])])}))}),QG=m1("top-left"),FG=m1("top"),_N=m1("top-right"),VG=m1("right"),zG=m1("bottom-right"),ZG=m1("bottom"),RN=m1("bottom-left"),HG=m1("left"),UG=ic({name:"thumb",defaults:F({dom:{styles:{position:"absolute"}}}),overrides:o=>({events:Ea([i0(no(),o,"spectrum"),i0(fo(),o,"spectrum"),i0(ts(),o,"spectrum"),i0(go(),o,"spectrum"),i0(js(),o,"spectrum"),i0(ba(),o,"spectrum")])})}),WG=ic({schema:[ei("mouseIsDown",()=>X(!1))],name:"spectrum",overrides:o=>{const g=o.model.manager,S=(_,H)=>g.getValueFromEvent(H).map(K=>g.setValueFrom(_,o,K));return{behaviours:pr([yo.config({mode:"special",onLeft:_=>g.onLeft(_,o),onRight:_=>g.onRight(_,o),onUp:_=>g.onUp(_,o),onDown:_=>g.onDown(_,o)}),Mo.config({})]),events:Ea([qn(no(),S),qn(fo(),S),qn(go(),S),qn(js(),(_,H)=>{o.mouseIsDown.get()&&S(_,H)})])}}});var YG=[w6,HG,VG,FG,ZG,QG,_N,RN,zG,UG,WG];const S2=F("slider.change.value"),DN=o=>o.type.indexOf("touch")!==-1,T6=o=>{const c=o.event.raw;if(DN(c)){const g=c;return g.touches!==void 0&&g.touches.length===1?L.some(g.touches[0]).map(S=>Is(S.clientX,S.clientY)):L.none()}else{const g=c;return g.clientX!==void 0?L.some(g).map(S=>Is(S.clientX,S.clientY)):L.none()}},XG="top",GG="right",jG="bottom",qG="left",g1=o=>o.model.minX,zh=o=>o.model.minY,Q5=o=>o.model.minX-1,F5=o=>o.model.minY-1,Vb=o=>o.model.maxX,ip=o=>o.model.maxY,hf=o=>o.model.maxX+1,w2=o=>o.model.maxY+1,C6=(o,c,g)=>c(o)-g(o),k6=o=>C6(o,Vb,g1),A6=o=>C6(o,ip,zh),$N=o=>k6(o)/2,LN=o=>A6(o)/2,zb=o=>o.stepSize,P6=o=>o.snapToGrid,IN=o=>o.snapStart,NN=o=>o.rounded,m3=(o,c)=>o[c+"-edge"]!==void 0,BN=o=>m3(o,qG),M6=o=>m3(o,GG),E6=o=>m3(o,XG),_6=o=>m3(o,jG),Av=o=>o.model.value.get(),p1=(o,c)=>({x:o,y:c}),Zh=(o,c)=>{vo(o,S2(),{value:c})},KG=(o,c)=>{Zh(o,p1(Q5(c),F5(c)))},JG=(o,c)=>{Zh(o,F5(c))},ej=(o,c)=>{Zh(o,p1($N(c),F5(c)))},R6=(o,c)=>{Zh(o,p1(hf(c),F5(c)))},tj=(o,c)=>{Zh(o,hf(c))},QN=(o,c)=>{Zh(o,p1(hf(c),LN(c)))},nj=(o,c)=>{Zh(o,p1(hf(c),w2(c)))},rj=(o,c)=>{Zh(o,w2(c))},oj=(o,c)=>{Zh(o,p1($N(c),w2(c)))},sj=(o,c)=>{Zh(o,p1(Q5(c),w2(c)))},aj=(o,c)=>{Zh(o,Q5(c))},ij=(o,c)=>{Zh(o,p1(Q5(c),LN(c)))},D6=(o,c,g,S)=>og?g:o===c?c-1:Math.max(c,o-S),V5=(o,c,g,S)=>o>g?o:oMath.max(c,Math.min(g,o)),lj=(o,c,g,S,_)=>_.fold(()=>{const H=o-c,K=Math.round(H/S)*S;return $6(c+K,c-1,g+1)},H=>{const K=(o-H)%S,ve=Math.round(K/S),Ae=Math.floor((o-H)/S),Ne=Math.floor((g-H)/S),Ue=Math.min(Ne,Ae+ve),Je=H+Ue*S;return Math.max(H,Je)}),cj=(o,c,g)=>Math.min(g,Math.max(o,c))-c,FN=o=>{const{min:c,max:g,range:S,value:_,step:H,snap:K,snapStart:ve,rounded:Ae,hasMinEdge:Ne,hasMaxEdge:Ue,minBound:Je,maxBound:st,screenRange:ht}=o,At=Ne?c-1:c,qt=Ue?g+1:g;if(_st)return qt;{const Dn=cj(_,Je,st),mn=$6(Dn/ht*S+c,At,qt);return K&&mn>=c&&mn<=g?lj(mn,c,g,H,ve):Ae?Math.round(mn):mn}},VN=o=>{const{min:c,max:g,range:S,value:_,hasMinEdge:H,hasMaxEdge:K,maxBound:ve,maxOffset:Ae,centerMinEdge:Ne,centerMaxEdge:Ue}=o;return _g?K?ve:Ue:(_-c)/S*Ae},L6="top",zN="right",I6="bottom",z5="left",ZN="width",N6="height",lp=o=>o.element.dom.getBoundingClientRect(),th=(o,c)=>o[c],Z5=o=>{const c=lp(o);return th(c,z5)},HN=o=>{const c=lp(o);return th(c,zN)},H5=o=>{const c=lp(o);return th(c,L6)},UN=o=>{const c=lp(o);return th(c,I6)},U5=o=>{const c=lp(o);return th(c,ZN)},cp=o=>{const c=lp(o);return th(c,N6)},WN=(o,c,g)=>(o+c)/2-g,T2=(o,c)=>{const g=lp(o),S=lp(c),_=th(g,z5),H=th(g,zN),K=th(S,z5);return WN(_,H,K)},YN=(o,c)=>{const g=lp(o),S=lp(c),_=th(g,L6),H=th(g,I6),K=th(S,L6);return WN(_,H,K)},C2=(o,c)=>{vo(o,S2(),{value:c})},B6=(o,c,g)=>{const S={min:g1(c),max:Vb(c),range:k6(c),value:g,step:zb(c),snap:P6(c),snapStart:IN(c),rounded:NN(c),hasMinEdge:BN(c),hasMaxEdge:M6(c),minBound:Z5(o),maxBound:HN(o),screenRange:U5(o)};return FN(S)},uj=(o,c,g)=>{const S=B6(o,c,g);return C2(o,S),S},fj=(o,c)=>{const g=g1(c);C2(o,g)},XN=(o,c)=>{const g=Vb(c);C2(o,g)},dj=(o,c,g)=>{const _=(o>0?V5:D6)(Av(g),g1(g),Vb(g),zb(g));return C2(c,_),L.some(_)},W5=o=>(c,g)=>dj(o,c,g).map(ie),Q6=o=>T6(o).map(g=>g.left),F6=(o,c,g,S,_)=>{const K=U5(o),ve=S.bind(Ue=>L.some(T2(Ue,o))).getOr(0),Ae=_.bind(Ue=>L.some(T2(Ue,o))).getOr(K),Ne={min:g1(c),max:Vb(c),range:k6(c),value:g,hasMinEdge:BN(c),hasMaxEdge:M6(c),minBound:Z5(o),minOffset:0,maxBound:HN(o),maxOffset:K,centerMinEdge:ve,centerMaxEdge:Ae};return VN(Ne)},V6=(o,c,g,S,_,H)=>{const K=F6(c,H,g,S,_);return Z5(c)-Z5(o)+K},pd=(o,c,g,S)=>{const _=Av(g),H=V6(o,S.getSpectrum(o),_,S.getLeftEdge(o),S.getRightEdge(o),g),K=Si(c.element)/2;Po(c.element,"left",H-K+"px")},hj=W5(-1),mj=W5(1),GN=L.none,jN=L.none,gj={"top-left":L.none(),top:L.none(),"top-right":L.none(),right:L.some(tj),"bottom-right":L.none(),bottom:L.none(),"bottom-left":L.none(),left:L.some(aj)};var pj=Object.freeze({__proto__:null,setValueFrom:uj,setToMin:fj,setToMax:XN,findValueOfOffset:B6,getValueFromEvent:Q6,findPositionOfValue:V6,setPositionFromValue:pd,onLeft:hj,onRight:mj,onUp:GN,onDown:jN,edgeActions:gj});const Y5=(o,c)=>{vo(o,S2(),{value:c})},z6=(o,c,g)=>{const S={min:zh(c),max:ip(c),range:A6(c),value:g,step:zb(c),snap:P6(c),snapStart:IN(c),rounded:NN(c),hasMinEdge:E6(c),hasMaxEdge:_6(c),minBound:H5(o),maxBound:UN(o),screenRange:cp(o)};return FN(S)},vj=(o,c,g)=>{const S=z6(o,c,g);return Y5(o,S),S},yj=(o,c)=>{const g=zh(c);Y5(o,g)},bj=(o,c)=>{const g=ip(c);Y5(o,g)},qN=(o,c,g)=>{const _=(o>0?V5:D6)(Av(g),zh(g),ip(g),zb(g));return Y5(c,_),L.some(_)},KN=o=>(c,g)=>qN(o,c,g).map(ie),Oj=o=>T6(o).map(g=>g.top),xj=(o,c,g,S,_)=>{const K=cp(o),ve=S.bind(Ue=>L.some(YN(Ue,o))).getOr(0),Ae=_.bind(Ue=>L.some(YN(Ue,o))).getOr(K),Ne={min:zh(c),max:ip(c),range:A6(c),value:g,hasMinEdge:E6(c),hasMaxEdge:_6(c),minBound:H5(o),minOffset:0,maxBound:UN(o),maxOffset:K,centerMinEdge:ve,centerMaxEdge:Ae};return VN(Ne)},X5=(o,c,g,S,_,H)=>{const K=xj(c,H,g,S,_);return H5(c)-H5(o)+K},Z6=(o,c,g,S)=>{const _=Av(g),H=X5(o,S.getSpectrum(o),_,S.getTopEdge(o),S.getBottomEdge(o),g),K=Za(c.element)/2;Po(c.element,"top",H-K+"px")},Sj=L.none,H6=L.none,k2=KN(-1),JN=KN(1),eB={"top-left":L.none(),top:L.some(JG),"top-right":L.none(),right:L.none(),"bottom-right":L.none(),bottom:L.some(rj),"bottom-left":L.none(),left:L.none()};var tB=Object.freeze({__proto__:null,setValueFrom:vj,setToMin:yj,setToMax:bj,findValueOfOffset:z6,getValueFromEvent:Oj,findPositionOfValue:X5,setPositionFromValue:Z6,onLeft:Sj,onRight:H6,onUp:k2,onDown:JN,edgeActions:eB});const G5=(o,c)=>{vo(o,S2(),{value:c})},j5=(o,c)=>({x:o,y:c}),q5=(o,c,g)=>{const S=B6(o,c,g.left),_=z6(o,c,g.top),H=j5(S,_);return G5(o,H),H},wj=(o,c,g,S)=>{const _=o>0?V5:D6,H=c?Av(S).x:_(Av(S).x,g1(S),Vb(S),zb(S)),K=c?_(Av(S).y,zh(S),ip(S),zb(S)):Av(S).y;return G5(g,j5(H,K)),L.some(H)},K5=(o,c)=>(g,S)=>wj(o,c,g,S).map(ie),nB=(o,c)=>{const g=g1(c),S=zh(c);G5(o,j5(g,S))},rB=(o,c)=>{const g=Vb(c),S=ip(c);G5(o,j5(g,S))},U6=o=>T6(o),oB=(o,c,g,S)=>{const _=Av(g),H=V6(o,S.getSpectrum(o),_.x,S.getLeftEdge(o),S.getRightEdge(o),g),K=X5(o,S.getSpectrum(o),_.y,S.getTopEdge(o),S.getBottomEdge(o),g),ve=Si(c.element)/2,Ae=Za(c.element)/2;Po(c.element,"left",H-ve+"px"),Po(c.element,"top",K-Ae+"px")},Du=K5(-1,!1),sB=K5(1,!1),Tj=K5(-1,!0),Cj=K5(1,!0),aB={"top-left":L.some(KG),top:L.some(ej),"top-right":L.some(R6),right:L.some(QN),"bottom-right":L.some(nj),bottom:L.some(oj),"bottom-left":L.some(sj),left:L.some(ij)};var kj=Object.freeze({__proto__:null,setValueFrom:q5,setToMin:nB,setToMax:rB,getValueFromEvent:U6,setPositionFromValue:oB,onLeft:Du,onRight:sB,onUp:Tj,onDown:Cj,edgeActions:aB});const Aj=[Mn("stepSize",1),Mn("onChange",M),Mn("onChoose",M),Mn("onInit",M),Mn("onDragStart",M),Mn("onDragEnd",M),Mn("snapToGrid",!1),Mn("rounded",!0),Ws("snapStart"),Zc("model",Os("mode",{x:[Mn("minX",0),Mn("maxX",100),ei("value",o=>X(o.mode.minX)),er("getInitialValue"),ha("manager",pj)],y:[Mn("minY",0),Mn("maxY",100),ei("value",o=>X(o.mode.minY)),er("getInitialValue"),ha("manager",tB)],xy:[Mn("minX",0),Mn("maxX",100),Mn("minY",0),Mn("maxY",100),ei("value",o=>X({x:o.mode.minX,y:o.mode.minY})),er("getInitialValue"),ha("manager",kj)]})),el("sliderBehaviours",[yo,Fr]),ei("mouseIsDown",()=>X(!1))],nh=lc({name:"Slider",configFields:Aj,partFields:YG,factory:(o,c,g,S)=>{const _=Zn=>Nm(Zn,o,"thumb"),H=Zn=>Nm(Zn,o,"spectrum"),K=Zn=>ka(Zn,o,"left-edge"),ve=Zn=>ka(Zn,o,"right-edge"),Ae=Zn=>ka(Zn,o,"top-edge"),Ne=Zn=>ka(Zn,o,"bottom-edge"),Ue=o.model,Je=Ue.manager,st=(Zn,mr)=>{Je.setPositionFromValue(Zn,mr,o,{getLeftEdge:K,getRightEdge:ve,getTopEdge:Ae,getBottomEdge:Ne,getSpectrum:H})},ht=(Zn,mr)=>{Ue.value.set(mr);const Gn=_(Zn);st(Zn,Gn)},At=(Zn,mr)=>{ht(Zn,mr);const Gn=_(Zn);return o.onChange(Zn,Gn,mr),L.some(!0)},qt=Zn=>{Je.setToMin(Zn,o)},Dn=Zn=>{Je.setToMax(Zn,o)},mn=Zn=>{const mr=()=>{ka(Zn,o,"thumb").each(Or=>{const Mr=Ue.value.get();o.onChoose(Zn,Or,Mr)})},Gn=o.mouseIsDown.get();o.mouseIsDown.set(!1),Gn&&mr()},on=(Zn,mr)=>{mr.stop(),o.mouseIsDown.set(!0),o.onDragStart(Zn,_(Zn))},kn=(Zn,mr)=>{mr.stop(),o.onDragEnd(Zn,_(Zn)),mn(Zn)};return{uid:o.uid,dom:o.dom,components:c,behaviours:Ni(o.sliderBehaviours,[yo.config({mode:"special",focusIn:Zn=>ka(Zn,o,"spectrum").map(yo.focusIn).map(ie)}),Fr.config({store:{mode:"manual",getValue:Zn=>Ue.value.get(),setValue:ht}}),lu.config({channels:{[oT()]:{onReceive:mn}}})]),events:Ea([qn(S2(),(Zn,mr)=>{At(Zn,mr.event.value)}),Ca((Zn,mr)=>{const Gn=Ue.getInitialValue();Ue.value.set(Gn);const Or=_(Zn);st(Zn,Or);const Mr=H(Zn);o.onInit(Zn,Or,Mr,Ue.value.get())}),qn(no(),on),qn(ts(),kn),qn(go(),on),qn(ba(),kn)]),apis:{resetToMin:qt,resetToMax:Dn,setValue:ht,refresh:st},domModification:{styles:{position:"relative"}}}},apis:{setValue:(o,c,g)=>{o.setValue(c,g)},resetToMin:(o,c)=>{o.resetToMin(c)},resetToMax:(o,c)=>{o.resetToMax(c)},refresh:(o,c)=>{o.refresh(c)}}}),Hh=Kr("rgb-hex-update"),J5=Kr("slider-update"),W6=Kr("palette-update"),e4=(o,c)=>{const g=nh.parts.spectrum({dom:{tag:"div",classes:[c("hue-slider-spectrum")],attributes:{role:"presentation"}}}),S=nh.parts.thumb({dom:{tag:"div",classes:[c("hue-slider-thumb")],attributes:{role:"presentation"}}});return nh.sketch({dom:{tag:"div",classes:[c("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:F(0)},components:[g,S],sliderBehaviours:pr([Mo.config({})]),onChange:(_,H,K)=>{vo(_,J5,{value:K})}})},t4="form",Pj=[el("formBehaviours",[Fr])],iB=o=>"",Mj=o=>{const c=(()=>{const H=[];return{field:(ve,Ae)=>(H.push(ve),fT(t4,iB(ve),Ae)),record:F(H)}})(),g=o(c),S=c.record(),_=ne(S,H=>ic({name:H,pname:iB(H)}));return yT(t4,Pj,_,_j,g)},Ej=(o,c)=>o.fold(()=>jo.error(c),jo.value),_j=(o,c)=>({uid:o.uid,dom:o.dom,components:c,behaviours:Ni(o.formBehaviours,[Fr.config({store:{mode:"manual",getValue:g=>{const S=hT(g,o);return je(S,(_,H)=>_().bind(K=>{const ve=xs.getCurrent(K);return Ej(ve,new Error(`Cannot find a current component to extract the value from for form part '${H}': `+wh(K.element)))}).map(Fr.getValue))},setValue:(g,S)=>{Ye(S,(_,H)=>{ka(g,o,H).each(K=>{xs.getCurrent(K).each(ve=>{Fr.setValue(ve,_)})})})}}})]),apis:{getField:(g,S)=>ka(g,o,S).bind(xs.getCurrent)}}),A2={getField:ev((o,c,g)=>o.getField(c,g)),sketch:Mj},lB=Kr("valid-input"),Y6=Kr("invalid-input"),cB=Kr("validating-input"),Uh="colorcustom.rgb.",n4=(o,c,g,S)=>{const _=(st,ht)=>gd.config({invalidClass:c("invalid"),notify:{onValidate:At=>{vo(At,cB,{type:st})},onValid:At=>{vo(At,lB,{type:st,value:Fr.getValue(At)})},onInvalid:At=>{vo(At,Y6,{type:st,value:Fr.getValue(At)})}},validator:{validate:At=>{const qt=Fr.getValue(At),Dn=ht(qt)?jo.value(!0):jo.error(o("aria.input.invalid"));return $c.pure(Dn)},validateOnLoad:!1}}),H=(st,ht,At,qt,Dn)=>{const mn=o(Uh+"range"),on=la.parts.label({dom:{tag:"label",attributes:{"aria-label":qt}},components:[yi(At)]}),kn=la.parts.field({data:Dn,factory:Ib,inputAttributes:{type:"text",...ht==="hex"?{"aria-live":"polite"}:{}},inputClasses:[c("textfield")],inputBehaviours:pr([_(ht,st),Ga.config({})]),onSetValue:Or=>{gd.isInvalid(Or)&&gd.run(Or).get(M)}}),Zn=[on,kn],mr=ht!=="hex"?[la.parts["aria-descriptor"]({text:mn})]:[],Gn=Zn.concat(mr);return{dom:{tag:"div",attributes:{role:"presentation"}},components:Gn}},K=(st,ht)=>{const At=b2(ht);return A2.getField(st,"hex").each(qt=>{Mo.isFocused(qt)||Fr.setValue(st,{hex:At.value})}),At},ve=(st,ht)=>{const At=ht.red,qt=ht.green,Dn=ht.blue;Fr.setValue(st,{red:At,green:qt,blue:Dn})},Ae=ia({dom:{tag:"div",classes:[c("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),Ne=(st,ht)=>{Ae.getOpt(st).each(At=>{Po(At.element,"background-color","#"+ht.value)})};return _u({factory:()=>{const st={red:X(L.some(255)),green:X(L.some(255)),blue:X(L.some(255)),hex:X(L.some("ffffff"))},ht=(_o,na)=>{const wo=n3(na);ve(_o,wo),mn(wo)},At=_o=>st[_o].get(),qt=(_o,na)=>{st[_o].set(na)},Dn=()=>At("red").bind(_o=>At("green").bind(na=>At("blue").map(wo=>c1(_o,na,wo,1)))),mn=_o=>{const na=_o.red,wo=_o.green,Ns=_o.blue;qt("red",L.some(na)),qt("green",L.some(wo)),qt("blue",L.some(Ns))},on=(_o,na)=>{const wo=na.event;wo.type!=="hex"?qt(wo.type,L.none()):S(_o)},kn=(_o,na)=>{g(_o);const wo=CI(na);qt("hex",L.some(wo.value));const Ns=n3(wo);ve(_o,Ns),mn(Ns),vo(_o,Hh,{hex:wo}),Ne(_o,wo)},Zn=(_o,na,wo)=>{const Ns=parseInt(wo,10);qt(na,L.some(Ns)),Dn().each(Pr=>{const oo=K(_o,Pr);vo(_o,Hh,{hex:oo}),Ne(_o,oo)})},mr=_o=>_o.type==="hex",Gn=(_o,na)=>{const wo=na.event;mr(wo)?kn(_o,wo.value):Zn(_o,wo.type,wo.value)},Or=_o=>({label:o(Uh+_o+".label"),description:o(Uh+_o+".description")}),Mr=Or("red"),is=Or("green"),Gr=Or("blue"),Io=Or("hex");return Ta(A2.sketch(_o=>({dom:{tag:"form",classes:[c("rgb-form")],attributes:{"aria-label":o("aria.color.picker")}},components:[_o.field("red",la.sketch(H(Z8,"red",Mr.label,Mr.description,255))),_o.field("green",la.sketch(H(Z8,"green",is.label,is.description,255))),_o.field("blue",la.sketch(H(Z8,"blue",Gr.label,Gr.description,255))),_o.field("hex",la.sketch(H(PI,"hex",Io.label,Io.description,"ffffff"))),Ae.asSpec()],formBehaviours:pr([gd.config({invalidClass:c("form-invalid")}),Jo("rgb-form-events",[qn(lB,Gn),qn(Y6,on),qn(cB,on)])])})),{apis:{updateHex:(_o,na)=>{Fr.setValue(_o,{hex:na.value}),ht(_o,na),Ne(_o,na)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(st,ht,At)=>{st.updateHex(ht,At)}},extraApis:{}})},Rj=(o,c)=>{const g=nh.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[c("sv-palette-spectrum")]}}),S=nh.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[c("sv-palette-thumb")],innerHtml:``}}),_=(Ne,Ue)=>{const{width:Je,height:st}=Ne,ht=Ne.getContext("2d");if(ht===null)return;ht.fillStyle=Ue,ht.fillRect(0,0,Je,st);const At=ht.createLinearGradient(0,0,Je,0);At.addColorStop(0,"rgba(255,255,255,1)"),At.addColorStop(1,"rgba(255,255,255,0)"),ht.fillStyle=At,ht.fillRect(0,0,Je,st);const qt=ht.createLinearGradient(0,0,0,st);qt.addColorStop(0,"rgba(0,0,0,0)"),qt.addColorStop(1,"rgba(0,0,0,1)"),ht.fillStyle=qt,ht.fillRect(0,0,Je,st)},H=(Ne,Ue)=>{const Je=Ne.components()[0].element.dom,st=o3(Ue,100,100),ht=LI(st);_(Je,U8(ht))},K=(Ne,Ue)=>{const Je=C5(n3(Ue));nh.setValue(Ne,{x:Je.saturation,y:100-Je.value})};return _u({factory:Ne=>{const Ue=F({x:0,y:0}),Je=(At,qt,Dn)=>{vo(At,W6,{value:Dn})},st=(At,qt,Dn,mn)=>{_(Dn.element.dom,U8(Kd))},ht=pr([xs.config({find:L.some}),Mo.config({})]);return nh.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[c("sv-palette")]},model:{mode:"xy",getInitialValue:Ue},rounded:!1,components:[g,S],onChange:Je,onInit:st,sliderBehaviours:ht})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(Ne,Ue,Je)=>{H(Ue,Je)},setThumb:(Ne,Ue,Je)=>{K(Ue,Je)}},extraApis:{}})},Dj=(o,c)=>{const g=_=>{const H=n4(o,c,_.onValidHex,_.onInvalidHex),K=Rj(o,c),ve=Gn=>(100-Gn)/100*360,Ae=Gn=>100-Gn/360*100,Ne={paletteRgba:X(Kd),paletteHue:X(0)},Ue=ia(e4(o,c)),Je=ia(K.sketch({})),st=ia(H.sketch({})),ht=(Gn,Or,Mr)=>{Je.getOpt(Gn).each(is=>{K.setHue(is,Mr)})},At=(Gn,Or)=>{st.getOpt(Gn).each(Mr=>{H.updateHex(Mr,Or)})},qt=(Gn,Or,Mr)=>{Ue.getOpt(Gn).each(is=>{nh.setValue(is,Ae(Mr))})},Dn=(Gn,Or)=>{Je.getOpt(Gn).each(Mr=>{K.setThumb(Mr,Or)})},mn=(Gn,Or)=>{const Mr=n3(Gn);Ne.paletteRgba.set(Mr),Ne.paletteHue.set(Or)},on=(Gn,Or,Mr,is)=>{mn(Or,Mr),pe(is,Gr=>{Gr(Gn,Or,Mr)})},kn=()=>{const Gn=[At];return(Or,Mr)=>{const is=Mr.event.value,Gr=Ne.paletteHue.get(),Io=o3(Gr,is.x,100-is.y),_o=ZI(Io);on(Or,_o,Gr,Gn)}},Zn=()=>{const Gn=[ht,At];return(Or,Mr)=>{const is=ve(Mr.event.value),Gr=Ne.paletteRgba.get(),Io=C5(Gr),_o=o3(is,Io.saturation,Io.value),na=ZI(_o);on(Or,na,is,Gn)}},mr=()=>{const Gn=[ht,qt,Dn];return(Or,Mr)=>{const is=Mr.event.hex,Gr=bX(is);on(Or,is,Gr.hue,Gn)}};return{uid:_.uid,dom:_.dom,components:[Je.asSpec(),Ue.asSpec(),st.asSpec()],behaviours:pr([Jo("colour-picker-events",[qn(Hh,mr()),qn(W6,kn()),qn(J5,Zn())]),xs.config({find:Gn=>st.getOpt(Gn)}),yo.config({mode:"acyclic"})])}};return _u({name:"ColourPicker",configFields:[er("dom"),Mn("onValidHex",M),Mn("onInvalidHex",M)],factory:g})},Ff={self:()=>xs.config({find:L.some}),memento:o=>xs.config({find:o.getOpt}),childAt:o=>xs.config({find:c=>to(c.element,o).bind(g=>c.getSystem().getByDom(g).toOptional())})},g3=uo([Mn("preprocess",z),Mn("postprocess",z)]),p3=(o,c)=>{const g=El("RepresentingConfigs.memento processors",g3,c);return Fr.config({store:{mode:"manual",getValue:S=>{const _=o.get(S),H=Fr.getValue(_);return g.postprocess(H)},setValue:(S,_)=>{const H=g.preprocess(_),K=o.get(S);Fr.setValue(K,H)}}})},v1=(o,c,g)=>Fr.config({store:{mode:"manual",...o.map(S=>({initialValue:S})).getOr({}),getValue:c,setValue:g}}),X6=(o,c,g)=>v1(o,S=>c(S.element),(S,_)=>g(S.element,_)),fB=o=>X6(o,KS,Kp),v3=o=>Fr.config({store:{mode:"memory",initialValue:o}}),Ij={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},Nj=o=>c=>o.translate(Ij[c]),Bj=(o,c,g)=>{const S=Ae=>"tox-"+Ae,_=Dj(Nj(c),S),H=Ae=>{vo(Ae,ap,{name:"hex-valid",value:!0})},K=Ae=>{vo(Ae,ap,{name:"hex-valid",value:!1})},ve=ia(_.sketch({dom:{tag:"div",classes:[S("color-picker-container")],attributes:{role:"presentation"}},onValidHex:H,onInvalidHex:K}));return{dom:{tag:"div"},components:[ve.asSpec()],behaviours:pr([v1(g,Ae=>{const Ne=ve.get(Ae);return xs.getCurrent(Ne).bind(st=>Fr.getValue(st).hex).map(st=>"#"+Dt(st,"#")).getOr("")},(Ae,Ne)=>{const Ue=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,Je=L.from(Ue.exec(Ne)).bind(At=>le(At,1)),st=ve.get(Ae);xs.getCurrent(st).fold(()=>{console.log("Can not find form")},At=>{Fr.setValue(At,{hex:Je.getOr("")}),A2.getField(At,"hex").each(qt=>{ks(qt,di())})})}),Ff.self()])}};var Qj=tinymce.util.Tools.resolve("tinymce.Resource");const Fj=o=>vn(o,"init"),dB=o=>{const c=gs(),g=ia({dom:{tag:o.tag}}),S=gs();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:pr([Jo("custom-editor-events",[Ca(_=>{g.getOpt(_).each(H=>{(Fj(o)?o.init(H.element.dom):Qj.load(o.scriptId,o.scriptUrl).then(K=>K(H.element.dom,o.settings))).then(K=>{S.on(ve=>{K.setValue(ve)}),S.clear(),c.set(K)})})})]),v1(L.none(),()=>c.get().fold(()=>S.get().getOr(""),_=>_.getValue()),(_,H)=>{c.get().fold(()=>S.set(H),K=>K.setValue(H))}),Ff.self()]),components:[g.asSpec()]}};var up=tinymce.util.Tools.resolve("tinymce.util.Tools");const Vj=(o,c)=>{const g=up.explode(c.getOption("images_file_types")),S=_=>Te(g,H=>mt(_.name.toLowerCase(),`.${H.toLowerCase()}`));return xe(ze(o),S)},hB=(o,c,g)=>{const S=(st,ht)=>{ht.stop()},_=st=>(ht,At)=>{pe(st,qt=>{qt(ht,At)})},H=(st,ht)=>{var At;if(!Co.isDisabled(st)){const qt=ht.event.raw;ve(st,(At=qt.dataTransfer)===null||At===void 0?void 0:At.files)}},K=(st,ht)=>{const At=ht.event.raw.target;ve(st,At.files)},ve=(st,ht)=>{ht&&(Fr.setValue(st,Vj(ht,c)),vo(st,df,{name:o.name}))},Ae=ia({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:pr([Jo("input-file-events",[Sm($i()),Sm(Ac())])])}),Ne=st=>({uid:st.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:pr([v3(g.getOr([])),Ff.self(),Co.config({}),as.config({toggleClass:"dragenter",toggleOnExecute:!1}),Jo("dropzone-events",[qn("dragenter",_([S,as.toggle])),qn("dragleave",_([S,as.toggle])),qn("dragover",S),qn("drop",_([S,H])),qn(Yi(),K)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[yi(c.translate("Drop an image here"))]},Dl.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[yi(c.translate("Browse for an image")),Ae.asSpec()],action:ht=>{Ae.get(ht).element.dom.click()},buttonBehaviours:pr([Ga.config({}),tl.button(c.isDisabled),gl()])})]}]}),Ue=o.label.map(st=>eh(st,c)),Je=la.parts.field({factory:{sketch:Ne}});return c3(Ue,Je,["tox-form__group--stretched"],[])},zj=(o,c)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${o.columns}col`]},components:ne(o.items,c.interpreter)}),mB=(o,c)=>{let g=null,S=null;return{cancel:()=>{y(g)||(clearTimeout(g),g=null,S=null)},throttle:(...K)=>{S=K,y(g)&&(g=setTimeout(()=>{const ve=S;g=null,S=null,o.apply(null,ve)},c))}}},y3=(o,c)=>{let g=null;return{cancel:()=>{y(g)||(clearTimeout(g),g=null)},throttle:(...H)=>{y(g)&&(g=setTimeout(()=>{g=null,o.apply(null,H)},c))}}},G6=(o,c)=>{let g=null;const S=()=>{y(g)||(clearTimeout(g),g=null)};return{cancel:S,throttle:(...H)=>{S(),g=setTimeout(()=>{g=null,o.apply(null,H)},c)}}},r4=Kr("alloy-fake-before-tabstop"),j6=Kr("alloy-fake-after-tabstop"),gB=o=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:o},behaviours:pr([Mo.config({ignore:!0}),Ga.config({})])}),pB=(o,c)=>({dom:{tag:"div",classes:["tox-navobj",...o.getOr([])]},components:[gB([r4]),c,gB([j6])],behaviours:pr([Ff.childAt(1)])}),vB=(o,c)=>{vo(o,_s(),{raw:{which:9,shiftKey:c}})},yB=(o,c)=>{const g=c.element;Ji(g,r4)?vB(o,!0):Ji(g,j6)&&vB(o,!1)},b3=o=>i3(o,["."+r4,"."+j6].join(","),Y),O3=Kr("update-dialog"),o4=Kr("update-title"),fp=Kr("update-body"),s4=Kr("update-footer"),q6=Kr("body-send-message"),x3=Kr("dialog-focus-shifted"),S3=jf().browser,P2=S3.isSafari(),a4=S3.isFirefox(),K6=P2||a4,bB=S3.isChromium(),Zj=({scrollTop:o,scrollHeight:c,clientHeight:g})=>Math.ceil(o)+g>=c,OB=(o,c)=>o.scrollTo(0,c==="bottom"?99999999:c),Hj=(o,c)=>{const g=o.body;return L.from(!/^1))?g:o.documentElement)},xB=(o,c,g)=>{const S=o.dom;L.from(S.contentDocument).fold(g,_=>{let H=0;const K=Hj(_,c).map(Ae=>(H=Ae.scrollTop,Ae)).forall(Zj),ve=()=>{const Ae=S.contentWindow;C(Ae)&&(K?OB(Ae,"bottom"):!K&&K6&&H!==0&&OB(Ae,H))};P2&&S.addEventListener("load",ve,{once:!0}),_.open(),_.write(c),_.close(),P2||ve()})},SB=it(K6,P2?500:200).map(o=>mB(xB,o)),wB=(o,c)=>{const g=X(o.getOr(""));return{getValue:S=>g.get(),setValue:(S,_)=>{if(g.get()!==_){const H=S.element,K=()=>Dr(H,"srcdoc",_);c?SB.fold(F(xB),ve=>ve.throttle)(H,_,K):K()}g.set(_)}}},Uj=(o,c,g)=>{const S="tox-dialog__iframe",_=o.transparent?[]:[`${S}--opaque`],H=o.border?["tox-navobj-bordered"]:[],K={...o.label.map(Je=>({title:Je})).getOr({}),...g.map(Je=>({srcdoc:Je})).getOr({}),...o.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},ve=wB(g,o.streamContent),Ae=o.label.map(Je=>eh(Je,c)),Ne=Je=>pB(L.from(H),{uid:Je.uid,dom:{tag:"iframe",attributes:K,classes:[S,..._]},behaviours:pr([Ga.config({}),Mo.config({}),v1(g,ve.getValue,ve.setValue),lu.config({channels:{[x3]:{onReceive:(st,ht)=>{ht.newFocus.each(At=>{dr(st.element).each(qt=>{(Jt(st.element,At)?ki:Xa)(qt,"tox-navobj-bordered-focus")})})}}}})])}),Ue=la.parts.field({factory:{sketch:Ne}});return c3(Ae,Ue,["tox-form__group--stretched"],[])},Wj=o=>new Promise((c,g)=>{const S=()=>{H(),c(o)},_=[_c(o,"load",S),_c(o,"error",()=>{H(),g("Unable to load data from image: "+o.dom.src)})],H=()=>pe(_,K=>K.unbind());o.dom.complete&&S()}),Yj=(o,c,g,S,_)=>{const H=g*_,K=S*_,ve=Math.max(0,o/2-H/2),Ae=Math.max(0,c/2-K/2);return{left:ve.toString()+"px",top:Ae.toString()+"px",width:H.toString()+"px",height:K.toString()+"px"}},i4=(o,c,g)=>{const S=Si(o),_=Za(o);return Math.min(S/c,_/g,1)},Xj=(o,c)=>{const g=X(c.getOr({url:""})),S=ia({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:c.map(Ae=>({src:Ae.url})).getOr({})}}),_=ia({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[S.asSpec()]}),H=(Ae,Ne)=>{const Ue={url:Ne.url};Ne.zoom.each(st=>Ue.zoom=st),Ne.cachedWidth.each(st=>Ue.cachedWidth=st),Ne.cachedHeight.each(st=>Ue.cachedHeight=st),g.set(Ue);const Je=()=>{const{cachedWidth:st,cachedHeight:ht,zoom:At}=Ue;if(!x(st)&&!x(ht)){if(x(At)){const Dn=i4(Ae.element,st,ht);Ue.zoom=Dn}const qt=Yj(Si(Ae.element),Za(Ae.element),st,ht,Ue.zoom);_.getOpt(Ae).each(Dn=>{zi(Dn.element,qt)})}};S.getOpt(Ae).each(st=>{const ht=st.element;Ne.url!==oa(ht,"src")&&(Dr(ht,"src",Ne.url),Xa(Ae.element,"tox-imagepreview__loaded")),Je(),Wj(ht).then(At=>{Ae.getSystem().isConnected()&&(ki(Ae.element,"tox-imagepreview__loaded"),Ue.cachedWidth=At.dom.naturalWidth,Ue.cachedHeight=At.dom.naturalHeight,Je())})})},K={};o.height.each(Ae=>K.height=Ae);const ve=c.map(Ae=>({url:Ae.url,zoom:L.from(Ae.zoom),cachedWidth:L.from(Ae.cachedWidth),cachedHeight:L.from(Ae.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:K,attributes:{role:"presentation"}},components:[_.asSpec()],behaviours:pr([Ff.self(),v1(ve,()=>g.get(),H)])}},Gj=(o,c)=>{const g="tox-label",S=o.align==="center"?[`${g}--center`]:[],_=o.align==="end"?[`${g}--end`]:[],H={dom:{tag:"label",classes:[g,...S,..._]},components:[yi(c.providers.translate(o.label))]},K=ne(o.items,c.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[H,...K],behaviours:pr([Ff.self(),Uo.config({}),fB(L.none()),yo.config({mode:"acyclic"})])}},J6=Kr("toolbar.button.execute"),TB=o=>rd((c,g)=>{md(o,c)(S=>{vo(c,J6,{buttonApi:S}),o.onAction(S)})}),Zb=Kr("common-button-display-events"),CB={[Ii()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],[ef()]:["toolbar-button-events",Zb],[go()]:["focusing","alloy.base.behaviour",Zb]},w3=o=>Po(o.element,"width",Qa(o.element,"width")),kB=(o,c,g)=>Bh(o,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:g},c),l4=(o,c)=>kB(o,c,[]),y1=(o,c)=>kB(o,c,[Uo.config({})]),AB=(o,c,g)=>({dom:{tag:"span",classes:[`${c}__select-label`]},components:[yi(g.translate(o))],behaviours:pr([Uo.config({})])}),rh=Kr("update-menu-text"),b1=Kr("update-menu-icon"),c4=(o,c,g)=>{const S=X(M),_=o.text.map(st=>ia(AB(st,c,g.providers))),H=o.icon.map(st=>ia(y1(st,g.providers.icons))),K=(st,ht)=>{const At=Fr.getValue(st);return Mo.focus(At),vo(At,"keydown",{raw:ht.event.raw}),Jd.close(At),L.some(!0)},ve=o.role.fold(()=>({}),st=>({role:st})),Ae=o.tooltip.fold(()=>({}),st=>{const ht=g.providers.translate(st);return{title:ht,"aria-label":ht}}),Ne=Bh("chevron-down",{tag:"div",classes:[`${c}__select-chevron`]},g.providers.icons),Ue=Kr("common-button-display-events");return ia(Jd.sketch({...o.uid?{uid:o.uid}:{},...ve,dom:{tag:"button",classes:[c,`${c}--select`].concat(ne(o.classes,st=>`${c}--${st}`)),attributes:{...Ae}},components:p2([H.map(st=>st.asSpec()),_.map(st=>st.asSpec()),L.some(Ne)]),matchWidth:!0,useMinWidth:!0,onOpen:(st,ht,At)=>{o.searchable&&aG(At)},dropdownBehaviours:pr([...o.dropdownBehaviours,tl.button(()=>o.disabled||g.providers.isDisabled()),gl(),d3.config({}),Uo.config({}),Jo("dropdown-events",[l1(o,S),rp(o,S)]),Jo(Ue,[Ca((st,ht)=>w3(st))]),Jo("menubutton-update-display-text",[qn(rh,(st,ht)=>{_.bind(At=>At.getOpt(st)).each(At=>{Uo.set(At,[yi(g.providers.translate(ht.event.text))])})}),qn(b1,(st,ht)=>{H.bind(At=>At.getOpt(st)).each(At=>{Uo.set(At,[y1(ht.event.icon,g.providers.icons)])})})])]),eventOrder:Ta(CB,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[ef()]:["toolbar-button-events","dropdown-events",Ue]}),sandboxBehaviours:pr([yo.config({mode:"special",onLeft:K,onRight:K}),Jo("dropdown-sandbox-events",[qn(QL,(st,ht)=>{tG(st),ht.stop()}),qn(FL,(st,ht)=>{nG(st,ht),ht.stop()})])]),lazySink:g.getSink,toggleClass:`${c}--active`,parts:{menu:{...c2(!1,o.columns,o.presets),fakeFocus:o.searchable,onHighlightItem:v6,onCollapseMenu:(st,ht,At)=>{Ys.getHighlighted(At).each(qt=>{v6(st,At,qt)})},onDehighlightItem:sG}},getAnchorOverrides:()=>({maxHeightFunction:(st,ht)=>{$k()(st,ht-10)}}),fetch:st=>$c.nu(Q(o.fetch,st))})).asSpec()},jj=o=>m(o),PB=o=>o.type==="separator",qj=o=>vn(o,"getSubmenuItems"),Kj={type:"separator"},MB=(o,c)=>{const g=ke(o,(S,_)=>jj(_)?_===""?S:_==="|"?S.length>0&&!PB(S[S.length-1])?S.concat([Kj]):S:vn(c,_.toLowerCase())?S.concat([c[_.toLowerCase()]]):S:S.concat([_]),[]);return g.length>0&&PB(g[g.length-1])&&g.pop(),g},Jj=(o,c)=>{const g=o.getSubmenuItems(),S=_B(g,c),_=Ta(S.menus,{[o.value]:S.items}),H=Ta(S.expansions,{[o.value]:o.value});return{item:o,menus:_,expansions:H}},EB=o=>{const c=Bt(o,"value").getOrThunk(()=>Kr("generated-menu-item"));return Ta({value:c},o)},_B=(o,c)=>{const g=MB(m(o)?o.split(" "):o,c);return Le(g,(S,_)=>{if(qj(_)){const H=EB(_),K=Jj(H,c);return{menus:Ta(S.menus,K.menus),items:[K.item,...S.items],expansions:Ta(S.expansions,K.expansions)}}else return{...S,items:[_,...S.items]}},{menus:{},expansions:{},items:[]})},eq=o=>o.search.fold(()=>({searchMode:"no-search"}),c=>({searchMode:"search-with-field",placeholder:c.placeholder})),tq=o=>o.search.fold(()=>({searchMode:"no-search"}),c=>({searchMode:"search-with-results"})),M2=(o,c,g,S)=>{const _=Kr("primary-menu"),H=_B(o,g.shared.providers.menuItems());if(H.items.length===0)return L.none();const K=eq(S),ve=fN(_,H.items,c,g,S.isHorizontalMenu,K),Ae=tq(S),Ne=je(H.menus,(Je,st)=>fN(st,Je,c,g,!1,Ae)),Ue=Ta(Ne,vt(_,ve));return L.from(a1.tieredData(_,Ue,H.expansions))},e7=o=>!vn(o,"items"),RB="data-value",DB=(o,c,g,S)=>ne(g,_=>e7(_)?{type:"togglemenuitem",text:_.text,value:_.value,active:_.value===S,onAction:()=>{Fr.setValue(o,_.value),vo(o,df,{name:c}),Mo.focus(o)}}:{type:"nestedmenuitem",text:_.text,getSubmenuItems:()=>DB(o,c,_.items,S)}),t7=(o,c)=>Xe(o,g=>e7(g)?it(g.value===c,g):t7(g.items,c)),nq=(o,c,g)=>{const S=c.shared.providers,_=g.bind(Ae=>t7(o.items,Ae)).orThunk(()=>Ce(o.items).filter(e7)),H=o.label.map(Ae=>eh(Ae,S)),K=la.parts.field({dom:{},factory:{sketch:Ae=>c4({uid:Ae.uid,text:_.map(Ne=>Ne.text),icon:L.none(),tooltip:o.label,role:L.none(),fetch:(Ne,Ue)=>{const Je=DB(Ne,o.name,o.items,Fr.getValue(Ne));Ue(M2(Je,Hm.CLOSE_ON_EXECUTE,c,{isHorizontalMenu:!1,search:L.none()}))},onSetup:F(M),getApi:F({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Ga.config({}),v1(_.map(Ne=>Ne.value),Ne=>oa(Ne.element,RB),(Ne,Ue)=>{t7(o.items,Ue).each(Je=>{Dr(Ne.element,RB,Je.value),vo(Ne,rh,{text:Je.text})})})]},"tox-listbox",c.shared)}}),ve={dom:{tag:"div",classes:["tox-listboxfield"]},components:[K]};return la.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Ie([H.toArray(),[ve]]),fieldBehaviours:pr([Co.config({disabled:F(!o.enabled),onDisabled:Ae=>{la.getField(Ae).each(Co.disable)},onEnabled:Ae=>{la.getField(Ae).each(Co.enable)}})])})},n7=(o,c)=>({dom:{tag:"div",classes:o.classes},components:ne(o.items,c.shared.interpreter)}),rq=(o,c)=>{const g=ne(o.options,_=>({dom:{tag:"option",value:_.value,innerHtml:_.text}})),S=o.data.map(_=>vt("initialValue",_)).getOr({});return{uid:o.uid,dom:{tag:"select",classes:o.selectClasses,attributes:o.selectAttributes},components:g,behaviours:Ni(o.selectBehaviours,[Mo.config({}),Fr.config({store:{mode:"manual",getValue:_=>Ch(_.element),setValue:(_,H)=>{const K=Ce(o.options);Ze(o.options,Ae=>Ae.value===H).isSome()?b0(_.element,H):_.element.dom.selectedIndex===-1&&H===""&&K.each(Ae=>b0(_.element,Ae.value))},...S}})])}},oq=_u({name:"HtmlSelect",configFields:[er("options"),el("selectBehaviours",[Mo,Fr]),Mn("selectClasses",[]),Mn("selectAttributes",{}),Ws("data")],factory:rq}),sq=(o,c,g)=>{const S=ne(o.items,Ae=>({text:c.translate(Ae.text),value:Ae.value})),_=o.label.map(Ae=>eh(Ae,c)),H=la.parts.field({dom:{},...g.map(Ae=>({data:Ae})).getOr({}),selectAttributes:{size:o.size},options:S,factory:oq,selectBehaviours:pr([Co.config({disabled:()=>!o.enabled||c.isDisabled()}),Ga.config({}),Jo("selectbox-change",[qn(Yi(),(Ae,Ne)=>{vo(Ae,df,{name:o.name})})])])}),K=o.size>1?L.none():L.some(Bh("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},c.icons)),ve={dom:{tag:"div",classes:["tox-selectfield"]},components:Ie([[H],K.toArray()])};return la.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Ie([_.toArray(),[ve]]),fieldBehaviours:pr([Co.config({disabled:()=>!o.enabled||c.isDisabled(),onDisabled:Ae=>{la.getField(Ae).each(Co.disable)},onEnabled:Ae=>{la.getField(Ae).each(Co.enable)}}),gl()])})},T3=F([Mn("field1Name","field1"),Mn("field2Name","field2"),zd("onLockedChange"),$g(["lockClass"]),Mn("locked",!1),If.field("coupledFieldBehaviours",[xs,Fr])]),r7=(o,c,g)=>ka(o,c,g).bind(xs.getCurrent),$B=(o,c)=>ic({factory:la,name:o,overrides:g=>({fieldBehaviours:pr([Jo("coupled-input-behaviour",[qn(di(),S=>{r7(S,g,c).each(_=>{ka(S,g,"lock").each(H=>{as.isOn(H)&&g.onLockedChange(S,_,H)})})})])])})}),aq=F([$B("field1","field2"),$B("field2","field1"),ic({factory:Dl,schema:[er("dom")],name:"lock",overrides:o=>({buttonBehaviours:pr([as.config({selected:o.locked,toggleClass:o.markers.lockClass,aria:{mode:"pressed"}})])})})]),o7=(o,c,g,S)=>({uid:o.uid,dom:o.dom,components:c,behaviours:If.augment(o.coupledFieldBehaviours,[xs.config({find:L.some}),Fr.config({store:{mode:"manual",getValue:_=>{const H=mv(_,o,["field1","field2"]);return{[o.field1Name]:Fr.getValue(H.field1()),[o.field2Name]:Fr.getValue(H.field2())}},setValue:(_,H)=>{const K=mv(_,o,["field1","field2"]);En(H,o.field1Name)&&Fr.setValue(K.field1(),H[o.field1Name]),En(H,o.field2Name)&&Fr.setValue(K.field2(),H[o.field2Name])}}})]),apis:{getField1:_=>ka(_,o,"field1"),getField2:_=>ka(_,o,"field2"),getLock:_=>ka(_,o,"lock")}}),vd=lc({name:"FormCoupledInputs",configFields:T3(),partFields:aq(),factory:o7,apis:{getField1:(o,c)=>o.getField1(c),getField2:(o,c)=>o.getField2(c),getLock:(o,c)=>o.getLock(c)}}),s7=o=>{const c={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},g=_=>_ in c?c[_]:1;let S=o.value.toFixed(g(o.unit));return S.indexOf(".")!==-1&&(S=S.replace(/\.?0*$/,"")),S+o.unit},u4=o=>{const g=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(o);if(g!==null){const S=parseFloat(g[1]),_=g[2];return jo.value({value:S,unit:_})}else return jo.error(o)},LB=(o,c)=>{const g={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},S=_=>vn(g,_);return o.unit===c?L.some(o.value):S(o.unit)&&S(c)?g[o.unit]===g[c]?L.some(o.value):L.some(o.value/g[o.unit]*g[c]):L.none()},a7=o=>L.none(),IB=(o,c)=>g=>LB(g,c).map(S=>({value:S*o,unit:c})),NB=(o,c)=>{const g=u4(o).toOptional(),S=u4(c).toOptional();return Xn(g,S,(_,H)=>LB(_,H.unit).map(K=>H.value/K).map(K=>IB(K,H.unit)).getOr(a7)).getOr(a7)},iq=(o,c)=>{let g=a7;const S=Kr("ratio-event"),_=Je=>Bh(Je,{tag:"span",classes:["tox-icon","tox-lock-icon__"+Je]},c.icons),H=vd.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:c.translate(o.label.getOr("Constrain proportions"))}},components:[_("lock"),_("unlock")],buttonBehaviours:pr([Co.config({disabled:()=>!o.enabled||c.isDisabled()}),gl(),Ga.config({})])}),K=Je=>({dom:{tag:"div",classes:["tox-form__group"]},components:Je}),ve=Je=>la.parts.field({factory:Ib,inputClasses:["tox-textfield"],inputBehaviours:pr([Co.config({disabled:()=>!o.enabled||c.isDisabled()}),gl(),Ga.config({}),Jo("size-input-events",[qn(Do(),(st,ht)=>{vo(st,S,{isField1:Je})}),qn(Yi(),(st,ht)=>{vo(st,df,{name:o.name})})])]),selectOnFocus:!1}),Ae=Je=>({dom:{tag:"label",classes:["tox-label"]},components:[yi(c.translate(Je))]}),Ne=vd.parts.field1(K([la.parts.label(Ae("Width")),ve(!0)])),Ue=vd.parts.field2(K([la.parts.label(Ae("Height")),ve(!1)]));return vd.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[Ne,Ue,K([Ae(Vw),H])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(Je,st,ht)=>{u4(Fr.getValue(Je)).each(At=>{g(At).each(qt=>{Fr.setValue(st,s7(qt))})})},coupledFieldBehaviours:pr([Co.config({disabled:()=>!o.enabled||c.isDisabled(),onDisabled:Je=>{vd.getField1(Je).bind(la.getField).each(Co.disable),vd.getField2(Je).bind(la.getField).each(Co.disable),vd.getLock(Je).each(Co.disable)},onEnabled:Je=>{vd.getField1(Je).bind(la.getField).each(Co.enable),vd.getField2(Je).bind(la.getField).each(Co.enable),vd.getLock(Je).each(Co.enable)}}),gl(),Jo("size-input-events2",[qn(S,(Je,st)=>{const ht=st.event.isField1,At=ht?vd.getField1(Je):vd.getField2(Je),qt=ht?vd.getField2(Je):vd.getField1(Je),Dn=At.map(Fr.getValue).getOr(""),mn=qt.map(Fr.getValue).getOr("");g=NB(Dn,mn)})])])})},BB=(o,c,g)=>{const S=nh.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[yi(c.translate(o.label))]}),_=nh.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),H=nh.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return nh.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:o.min,maxX:o.max,getInitialValue:F(g.getOrThunk(()=>(Math.abs(o.max)-Math.abs(o.min))/2))},components:[S,_,H],sliderBehaviours:pr([Ff.self(),Mo.config({})]),onChoose:(K,ve,Ae)=>{vo(K,df,{name:o.name,value:Ae})}})},QB=(o,c)=>{const g=ve=>({dom:{tag:"th",innerHtml:c.translate(ve)}}),S=ve=>({dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:ne(ve,g)}]}),_=ve=>({dom:{tag:"td",innerHtml:c.translate(ve)}}),H=ve=>({dom:{tag:"tr"},components:ne(ve,_)}),K=ve=>({dom:{tag:"tbody"},components:ne(ve,H)});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[S(o.header),K(o.cells)],behaviours:pr([Ga.config({}),Mo.config({})])}},FB=(o,c)=>{const g=o.label.map(ht=>eh(ht,c)),S=[Co.config({disabled:()=>o.disabled||c.isDisabled()}),gl(),yo.config({mode:"execution",useEnter:o.multiline!==!0,useControlEnter:o.multiline===!0,execute:ht=>(ks(ht,f3),L.some(!0))}),Jo("textfield-change",[qn(di(),(ht,At)=>{vo(ht,df,{name:o.name})}),qn(Li(),(ht,At)=>{vo(ht,df,{name:o.name})})]),Ga.config({})],_=o.validation.map(ht=>gd.config({getRoot:At=>dr(At.element),invalidClass:"tox-invalid",validator:{validate:At=>{const qt=Fr.getValue(At),Dn=ht.validator(qt);return $c.pure(Dn===!0?jo.value(qt):jo.error(Dn))},validateOnLoad:ht.validateOnLoad}})).toArray(),H=o.placeholder.fold(F({}),ht=>({placeholder:c.translate(ht)})),K=o.inputMode.fold(F({}),ht=>({inputmode:ht})),ve={...H,...K},Ae=la.parts.field({tag:o.multiline===!0?"textarea":"input",...o.data.map(ht=>({data:ht})).getOr({}),inputAttributes:ve,inputClasses:[o.classname],inputBehaviours:pr(Ie([S,_])),selectOnFocus:!1,factory:Ib}),Ne=o.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[Ae]}:Ae,Je=(o.flex?["tox-form__group--stretched"]:[]).concat(o.maximized?["tox-form-group--maximize"]:[]),st=[Co.config({disabled:()=>o.disabled||c.isDisabled(),onDisabled:ht=>{la.getField(ht).each(Co.disable)},onEnabled:ht=>{la.getField(ht).each(Co.enable)}}),gl()];return c3(g,Ne,Je,st)},VB=(o,c,g)=>FB({name:o.name,multiline:!1,label:o.label,inputMode:o.inputMode,placeholder:o.placeholder,flex:!1,disabled:!o.enabled,classname:"tox-textfield",validation:L.none(),maximized:o.maximized,data:g},c),zB=(o,c,g)=>FB({name:o.name,multiline:!0,label:o.label,inputMode:L.none(),placeholder:o.placeholder,flex:!0,disabled:!o.enabled,classname:"tox-textarea",validation:L.none(),maximized:o.maximized,data:g},c),E2=(o,c)=>c.getAnimationRoot.fold(()=>o.element,g=>g(o)),Pv=o=>o.dimension.property,Hb=(o,c)=>o.dimension.getDimension(c),f4=(o,c)=>{const g=E2(o,c);tf(g,[c.shrinkingClass,c.growingClass])},d4=(o,c)=>{Xa(o.element,c.openClass),ki(o.element,c.closedClass),Po(o.element,Pv(c),"0px"),li(o.element)},i7=(o,c)=>{Xa(o.element,c.closedClass),ki(o.element,c.openClass),Zo(o.element,Pv(c))},l7=(o,c,g,S)=>{g.setCollapsed(),Po(o.element,Pv(c),Hb(c,o.element)),f4(o,c),d4(o,c),c.onStartShrink(o),c.onShrunk(o)},lq=(o,c,g,S)=>{const _=S.getOrThunk(()=>Hb(c,o.element));g.setCollapsed(),Po(o.element,Pv(c),_),li(o.element);const H=E2(o,c);Xa(H,c.growingClass),ki(H,c.shrinkingClass),d4(o,c),c.onStartShrink(o)},ZB=(o,c,g)=>{const S=Hb(c,o.element);(S==="0px"?l7:lq)(o,c,g,L.some(S))},h4=(o,c,g)=>{const S=E2(o,c),_=Ji(S,c.shrinkingClass),H=Hb(c,o.element);i7(o,c);const K=Hb(c,o.element);(_?()=>{Po(o.element,Pv(c),H),li(o.element)}:()=>{d4(o,c)})(),Xa(S,c.shrinkingClass),ki(S,c.growingClass),i7(o,c),Po(o.element,Pv(c),K),g.setExpanded(),c.onStartGrow(o)},cq=(o,c,g)=>{if(g.isExpanded()){Zo(o.element,Pv(c));const S=Hb(c,o.element);Po(o.element,Pv(c),S)}},uq=(o,c,g)=>{g.isExpanded()||h4(o,c,g)},fq=(o,c,g)=>{g.isExpanded()&&ZB(o,c,g)},HB=(o,c,g)=>{g.isExpanded()&&l7(o,c,g)},dq=(o,c,g)=>g.isExpanded(),UB=(o,c,g)=>g.isCollapsed(),WB=(o,c,g)=>{const S=E2(o,c);return Ji(S,c.growingClass)===!0},c7=(o,c,g)=>{const S=E2(o,c);return Ji(S,c.shrinkingClass)===!0};var hq=Object.freeze({__proto__:null,refresh:cq,grow:uq,shrink:fq,immediateShrink:HB,hasGrown:dq,hasShrunk:UB,isGrowing:WB,isShrinking:c7,isTransitioning:(o,c,g)=>WB(o,c)||c7(o,c),toggleGrow:(o,c,g)=>{(g.isExpanded()?ZB:h4)(o,c,g)},disableTransitions:f4,immediateGrow:(o,c,g)=>{g.isExpanded()||(i7(o,c),Po(o.element,Pv(c),Hb(c,o.element)),f4(o,c),g.setExpanded(),c.onStartGrow(o),c.onGrown(o))}}),gq=Object.freeze({__proto__:null,exhibit:(o,c,g)=>{const S=c.expanded;return ku(S?{classes:[c.openClass],styles:{}}:{classes:[c.closedClass],styles:vt(c.dimension.property,"0px")})},events:(o,c)=>Ea([xh(Ki(),(g,S)=>{S.event.raw.propertyName===o.dimension.property&&(f4(g,o),c.isExpanded()&&Zo(g.element,o.dimension.property),(c.isExpanded()?o.onGrown:o.onShrunk)(g))})])}),YB=[er("closedClass"),er("openClass"),er("shrinkingClass"),er("growingClass"),Ws("getAnimationRoot"),Rs("onShrunk"),Rs("onStartShrink"),Rs("onGrown"),Rs("onStartGrow"),Mn("expanded",!1),Zc("dimension",Os("property",{width:[ha("property","width"),ha("getDimension",o=>Si(o)+"px")],height:[ha("property","height"),ha("getDimension",o=>Za(o)+"px")]}))],pq=Object.freeze({__proto__:null,init:o=>{const c=X(o.expanded),g=()=>"expanded: "+c.get();return Cu({isExpanded:()=>c.get()===!0,isCollapsed:()=>c.get()===!1,setCollapsed:Q(c.set,!1),setExpanded:Q(c.set,!0),readState:g})}});const Vf=dl({fields:YB,name:"sliding",active:gq,apis:hq,state:pq}),u7=o=>({isEnabled:()=>!Co.isDisabled(o),setEnabled:c=>Co.set(o,!c),setActive:c=>{const g=o.element;c?(ki(g,"tox-tbtn--enabled"),Dr(g,"aria-pressed",!0)):(Xa(g,"tox-tbtn--enabled"),sa(g,"aria-pressed"))},isActive:()=>Ji(o.element,"tox-tbtn--enabled"),setText:c=>{vo(o,rh,{text:c})},setIcon:c=>vo(o,b1,{icon:c})}),C3=(o,c,g,S,_=!0)=>c4({text:o.text,icon:o.icon,tooltip:o.tooltip,searchable:o.search.isSome(),role:S,fetch:(H,K)=>{const ve={pattern:o.search.isSome()?iG(H):""};o.fetch(Ae=>{K(M2(Ae,Hm.CLOSE_ON_EXECUTE,g,{isHorizontalMenu:!1,search:o.search}))},ve,u7(H))},onSetup:o.onSetup,getApi:u7,columns:1,presets:"normal",classes:[],dropdownBehaviours:[..._?[Ga.config({})]:[]]},c,g.shared),vq=(o,c,g)=>{const S=H=>K=>{const ve=!K.isActive();K.setActive(ve),H.storage.set(ve),g.shared.getSink().each(Ae=>{c().getOpt(Ae).each(Ne=>{cu(Ne.element),vo(Ne,ap,{name:H.name,value:H.storage.get()})})})},_=H=>K=>{K.setActive(H.storage.get())};return H=>{H(ne(o,K=>{const ve=K.text.fold(()=>({}),Ae=>({text:Ae}));return{type:K.type,active:!1,...ve,onAction:S(K),onSetup:_(K)}}))}},XB=o=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{title:o,"aria-label":o}},components:[yi(o)]}),f7=Kr("leaf-label-event-id"),m4=({leaf:o,onLeafAction:c,visible:g,treeId:S,selectedId:_,backstage:H})=>{const K=o.menu.map(Ae=>C3(Ae,"tox-mbtn",H,L.none(),g)),ve=[XB(o.title)];return K.each(Ae=>ve.push(Ae)),Dl.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(g?["tox-tree--leaf__label--visible"]:[])},components:ve,role:"treeitem",action:Ae=>{c(o.id),Ae.getSystem().broadcastOn([`update-active-item-${S}`],{value:o.id})},eventOrder:{[_s()]:[f7,"keying"]},buttonBehaviours:pr([...g?[Ga.config({})]:[],as.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),lu.config({channels:{[`update-active-item-${S}`]:{onReceive:(Ae,Ne)=>{(Ne.value===o.id?as.on:as.off)(Ae)}}}}),Jo(f7,[Ca((Ae,Ne)=>{_.each(Ue=>{(Ue===o.id?as.on:as.off)(Ae)})}),qn(_s(),(Ae,Ne)=>{const Ue=Ne.event.raw.code==="ArrowLeft",Je=Ne.event.raw.code==="ArrowRight";Ue?(Pu(Ae.element,".tox-tree--directory").each(st=>{Ae.getSystem().getByDom(st).each(ht=>{ix(st,".tox-tree--directory__label").each(At=>{ht.getSystem().getByDom(At).each(Mo.focus)})})}),Ne.stop()):Je&&Ne.stop()})])])})},GB=(o,c,g)=>Bh(o,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:g},c),g4=(o,c)=>GB(o,c,[]),jB=Kr("directory-label-event-id"),yq=({directory:o,visible:c,noChildren:g,backstage:S})=>{const _=o.menu.map(ve=>C3(ve,"tox-mbtn",S,L.none())),H=[{dom:{tag:"div",classes:["tox-chevron"]},components:[g4("chevron-right",S.shared.providers.icons)]},XB(o.title)];_.each(ve=>{H.push(ve)});const K=ve=>{Pu(ve.element,".tox-tree--directory").each(Ae=>{ve.getSystem().getByDom(Ae).each(Ne=>{const Ue=!as.isOn(Ne);as.toggle(Ne),vo(ve,"expand-tree-node",{expanded:Ue,node:o.id})})})};return Dl.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(c?["tox-tree--directory__label--visible"]:[])},components:H,action:K,eventOrder:{[_s()]:[jB,"keying"]},buttonBehaviours:pr([...c?[Ga.config({})]:[],Jo(jB,[qn(_s(),(ve,Ae)=>{const Ne=Ae.event.raw.code==="ArrowRight",Ue=Ae.event.raw.code==="ArrowLeft";Ne&&g&&Ae.stop(),(Ne||Ue)&&Pu(ve.element,".tox-tree--directory").each(Je=>{ve.getSystem().getByDom(Je).each(st=>{!as.isOn(st)&&Ne||as.isOn(st)&&Ue?(K(ve),Ae.stop()):Ue&&!as.isOn(st)&&(Pu(st.element,".tox-tree--directory").each(ht=>{ix(ht,".tox-tree--directory__label").each(At=>{st.getSystem().getByDom(At).each(Mo.focus)})}),Ae.stop())})})})])])})},bq=({children:o,onLeafAction:c,visible:g,treeId:S,expandedIds:_,selectedId:H,backstage:K})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:o.map(ve=>ve.type==="leaf"?m4({leaf:ve,selectedId:H,onLeafAction:c,visible:g,treeId:S,backstage:K}):p4({directory:ve,expandedIds:_,selectedId:H,onLeafAction:c,labelTabstopping:g,treeId:S,backstage:K})),behaviours:pr([Vf.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:g}),Uo.config({})])}),Oq=Kr("directory-event-id"),p4=({directory:o,onLeafAction:c,labelTabstopping:g,treeId:S,backstage:_,expandedIds:H,selectedId:K})=>{const{children:ve}=o,Ae=X(H),Ne=Je=>ve.map(st=>st.type==="leaf"?m4({leaf:st,selectedId:K,onLeafAction:c,visible:Je,treeId:S,backstage:_}):p4({directory:st,expandedIds:Ae.get(),selectedId:K,onLeafAction:c,labelTabstopping:Je,treeId:S,backstage:_})),Ue=H.includes(o.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[yq({directory:o,visible:g,noChildren:o.children.length===0,backstage:_}),bq({children:ve,expandedIds:H,selectedId:K,onLeafAction:c,visible:Ue,treeId:S,backstage:_})],behaviours:pr([Jo(Oq,[Ca((Je,st)=>{as.set(Je,Ue)}),qn("expand-tree-node",(Je,st)=>{const{expanded:ht,node:At}=st.event;Ae.set(ht?[...Ae.get(),At]:Ae.get().filter(qt=>qt!==At))})]),as.config({...o.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(Je,st)=>{const ht=Je.components()[1],At=Ne(st);st?Vf.grow(ht):Vf.shrink(ht),Uo.set(ht,At)}})])}},xq=Kr("tree-event-id"),Sq=(o,c)=>{const g=o.onLeafAction.getOr(M),S=o.onToggleExpand.getOr(M),_=o.defaultExpandedIds,H=X(_),K=X(o.defaultSelectedId),ve=Kr("tree-id"),Ae=(Ne,Ue)=>o.items.map(Je=>Je.type==="leaf"?m4({leaf:Je,selectedId:Ne,onLeafAction:g,visible:!0,treeId:ve,backstage:c}):p4({directory:Je,selectedId:Ne,onLeafAction:g,expandedIds:Ue,labelTabstopping:!0,treeId:ve,backstage:c}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:Ae(K.get(),H.get()),behaviours:pr([yo.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),Jo(xq,[qn("expand-tree-node",(Ne,Ue)=>{const{expanded:Je,node:st}=Ue.event;H.set(Je?[...H.get(),st]:H.get().filter(ht=>ht!==st)),S(H.get(),{expanded:Je,node:st})})]),lu.config({channels:{[`update-active-item-${ve}`]:{onReceive:(Ne,Ue)=>{K.set(L.some(Ue.value)),Uo.set(Ne,Ae(L.some(Ue.value),H.get()))}}}}),Uo.config({})])}};var qB=Object.freeze({__proto__:null,events:(o,c)=>{const S=o.stream.streams.setup(o,c);return Ea([qn(o.event,S),Sh(()=>c.cancel())].concat(o.cancelEvent.map(_=>[qn(_,()=>c.cancel())]).getOr([])))}});const d7=o=>{const c=X(null);return Cu({readState:()=>({timer:c.get()!==null?"set":"unset"}),setTimer:H=>{c.set(H)},cancel:()=>{const H=c.get();H!==null&&H.cancel()}})};var wq=Object.freeze({__proto__:null,throttle:d7,init:o=>o.stream.streams.state(o)});const KB=(o,c)=>{const g=o.stream,S=G6(o.onStream,g.delay);return c.setTimer(S),(_,H)=>{S.throttle(_,H),g.stopEvent&&H.stop()}};var Tq=[Zc("stream",Os("mode",{throttle:[er("delay"),Mn("stopEvent",!0),ha("streams",{setup:KB,state:d7})]})),Mn("event","input"),Ws("cancelEvent"),zd("onStream")];const h7=dl({fields:Tq,name:"streaming",active:qB,state:wq}),Ro=(o,c,g)=>{const S=Fr.getValue(g);Fr.setValue(c,S),m7(c)},_2=(o,c)=>{const g=o.element,S=Ch(g),_=g.dom;oa(g,"type")!=="number"&&c(_,S)},m7=o=>{_2(o,(c,g)=>c.setSelectionRange(g.length,g.length))},JB=(o,c)=>{_2(o,(g,S)=>g.setSelectionRange(c,S.length))},eQ=(o,c,g)=>{if(o.selectsOver){const S=Fr.getValue(c),_=o.getDisplayText(S),H=Fr.getValue(g);return o.getDisplayText(H).indexOf(_)===0?L.some(()=>{Ro(o,c,g),JB(c,_.length)}):L.none()}else return L.none()},v4=F("alloy.typeahead.itemexecute"),tQ=(o,c,g,S)=>{const _=(Je,st,ht)=>{o.previewing.set(!1);const At=Mi.getCoupled(Je,"sandbox");if(As.isOpen(At))xs.getCurrent(At).each(qt=>{Ys.getHighlighted(qt).fold(()=>{ht(qt)},()=>{WS(At,qt.element,"keydown",st)})});else{const qt=Dn=>{xs.getCurrent(Dn).each(ht)};D5(o,K(Je),Je,At,S,qt,mu.HighlightMenuAndItem).get(M)}},H=v8(o),K=Je=>st=>st.map(ht=>{const At=Nt(ht.menus),qt=re(At,mn=>xe(mn.items,on=>on.type==="item"));return Fr.getState(Je).update(ne(qt,mn=>mn.data)),ht}),ve=Je=>xs.getCurrent(Je),Ae="typeaheadevents",Ne=[Mo.config({}),Fr.config({onSetValue:o.onSetValue,store:{mode:"dataset",getDataKey:Je=>Ch(Je.element),getFallbackEntry:Je=>({value:Je,meta:{}}),setValue:(Je,st)=>{b0(Je.element,o.model.getDisplayText(st))},...o.initialData.map(Je=>vt("initialValue",Je)).getOr({})}}),h7.config({stream:{mode:"throttle",delay:o.responseTime,stopEvent:!1},onStream:(Je,st)=>{const ht=Mi.getCoupled(Je,"sandbox");if(Mo.isFocused(Je)&&Ch(Je.element).length>=o.minChars){const qt=ve(ht).bind(mn=>Ys.getHighlighted(mn).map(Fr.getValue));o.previewing.set(!0);const Dn=mn=>{ve(ht).each(on=>{qt.fold(()=>{o.model.selectsOver&&Ys.highlightFirst(on)},kn=>{Ys.highlightBy(on,Zn=>Fr.getValue(Zn).value===kn.value),Ys.getHighlighted(on).orThunk(()=>(Ys.highlightFirst(on),L.none()))})})};D5(o,K(Je),Je,ht,S,Dn,mu.HighlightJustMenu).get(M)}},cancelEvent:Om()}),yo.config({mode:"special",onDown:(Je,st)=>(_(Je,st,Ys.highlightFirst),L.some(!0)),onEscape:Je=>{const st=Mi.getCoupled(Je,"sandbox");return As.isOpen(st)?(As.close(st),L.some(!0)):L.none()},onUp:(Je,st)=>(_(Je,st,Ys.highlightLast),L.some(!0)),onEnter:Je=>{const st=Mi.getCoupled(Je,"sandbox"),ht=As.isOpen(st);if(ht&&!o.previewing.get())return ve(st).bind(At=>Ys.getHighlighted(At)).map(At=>(vo(Je,v4(),{item:At}),!0));{const At=Fr.getValue(Je);return ks(Je,Om()),o.onExecute(st,Je,At),ht&&As.close(st),L.some(!0)}}}),as.config({toggleClass:o.markers.openClass,aria:{mode:"expanded"}}),Mi.config({others:{sandbox:Je=>g6(o,Je,{onOpen:()=>as.on(Je),onClose:()=>{o.lazyTypeaheadComp.get().each(st=>sa(st.element,"aria-activedescendant")),as.off(Je)}})}}),Jo(Ae,[Ca(Je=>{o.lazyTypeaheadComp.set(L.some(Je))}),Sh(Je=>{o.lazyTypeaheadComp.set(L.none())}),rd(Je=>{const st=M;m6(o,K(Je),Je,S,st,mu.HighlightMenuAndItem).get(M)}),qn(v4(),(Je,st)=>{const ht=Mi.getCoupled(Je,"sandbox");Ro(o.model,Je,st.event.item),ks(Je,Om()),o.onItemExecute(Je,ht,st.event.item,Fr.getValue(Je)),As.close(ht),m7(Je)})].concat(o.dismissOnBlur?[qn(Ul(),Je=>{const st=Mi.getCoupled(Je,"sandbox");ad(st.element).isNone()&&As.close(st)})]:[]))],Ue={[kg()]:[Fr.name(),h7.name(),Ae],...o.eventOrder};return{uid:o.uid,dom:a5(Ta(o,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...H,...Ni(o.typeaheadBehaviours,Ne)},eventOrder:Ue}},nce=F([Ws("lazySink"),er("fetch"),Mn("minChars",5),Mn("responseTime",1e3),Rs("onOpen"),Mn("getHotspot",L.some),Mn("getAnchorOverrides",F({})),Mn("layouts",L.none()),Mn("eventOrder",{}),D("model",{},[Mn("getDisplayText",o=>o.meta!==void 0&&o.meta.text!==void 0?o.meta.text:o.value),Mn("selectsOver",!0),Mn("populateFromBrowse",!0)]),Rs("onSetValue"),Eu("onExecute"),Rs("onItemExecute"),Mn("inputClasses",[]),Mn("inputAttributes",{}),Mn("inputStyles",{}),Mn("matchWidth",!0),Mn("useMinWidth",!1),Mn("dismissOnBlur",!0),$g(["openClass"]),Ws("initialData"),el("typeaheadBehaviours",[Mo,Fr,h7,yo,as,Mi]),ei("lazyTypeaheadComp",()=>X(L.none)),ei("previewing",()=>X(!0))].concat(YT()).concat(p6())),k3=F([cd({schema:[Qy()],name:"menu",overrides:o=>({fakeFocus:!0,onHighlightItem:(c,g,S)=>{o.previewing.get()?o.lazyTypeaheadComp.get().each(_=>{eQ(o.model,_,S).fold(()=>{o.model.selectsOver?(Ys.dehighlight(g,S),o.previewing.set(!0)):o.previewing.set(!1)},H=>{H(),o.previewing.set(!1)})}):o.lazyTypeaheadComp.get().each(_=>{o.model.populateFromBrowse&&Ro(o.model,_,S),Ri(S.element,"id").each(H=>Dr(_.element,"aria-activedescendant",H))})},onExecute:(c,g)=>o.lazyTypeaheadComp.get().map(S=>(vo(S,v4(),{item:g}),!0)),onHover:(c,g)=>{o.previewing.set(!1),o.lazyTypeaheadComp.get().each(S=>{o.model.populateFromBrowse&&Ro(o.model,S,g)})}})})]),Cq=lc({name:"Typeahead",configFields:nce(),partFields:k3(),factory:tQ}),oh=o=>({...o,toCached:()=>oh(o.toCached()),bindFuture:Ae=>oh(o.bind(Ne=>Ne.fold(Ue=>$c.pure(jo.error(Ue)),Ue=>Ae(Ue)))),bindResult:Ae=>oh(o.map(Ne=>Ne.bind(Ae))),mapResult:Ae=>oh(o.map(Ne=>Ne.map(Ae))),mapError:Ae=>oh(o.map(Ne=>Ne.mapError(Ae))),foldResult:(Ae,Ne)=>o.map(Ue=>Ue.fold(Ae,Ne)),withTimeout:(Ae,Ne)=>oh($c.nu(Ue=>{let Je=!1;const st=setTimeout(()=>{Je=!0,Ue(jo.error(Ne()))},Ae);o.get(ht=>{Je||(clearTimeout(st),Ue(ht))})}))}),nQ=o=>oh($c.nu(o)),rQ=o=>oh($c.pure(jo.value(o))),Pq={nu:nQ,wrap:oh,pure:rQ,value:rQ,error:o=>oh($c.pure(jo.error(o))),fromResult:o=>oh($c.pure(o)),fromFuture:o=>oh(o.map(jo.value)),fromPromise:o=>nQ(c=>{o.then(g=>{c(jo.value(g))},g=>{c(jo.error(g))})})},y4=(o,c,g=[],S,_,H)=>{const K=c.fold(()=>({}),Ne=>({action:Ne})),ve={buttonBehaviours:pr([tl.button(()=>!o.enabled||H.isDisabled()),gl(),Ga.config({}),Jo("button press",[GS("click"),GS("mousedown")])].concat(g)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...K},Ae=Ta(ve,{dom:S});return Ta(Ae,{components:_})},Mq=(o,c,g,S=[])=>{const _=o.tooltip.map(Ae=>({"aria-label":g.translate(Ae),title:g.translate(Ae)})).getOr({}),H={tag:"button",classes:["tox-tbtn"],attributes:_},K=o.icon.map(Ae=>l4(Ae,g.icons)),ve=p2([K]);return y4(o,c,S,H,ve,g)},g7=o=>{switch(o){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];case"secondary":default:return["tox-button","tox-button--secondary"]}},sQ=(o,c,g,S=[],_=[])=>{const H=g.translate(o.text),K=o.icon.map(st=>l4(st,g.icons)),ve=[K.getOrThunk(()=>yi(H))],Ae=o.buttonType.getOr(!o.primary&&!o.borderless?"secondary":"primary"),Je={tag:"button",classes:[...g7(Ae),...K.isSome()?["tox-button--icon"]:[],...o.borderless?["tox-button--naked"]:[],..._],attributes:{title:H}};return y4(o,c,S,Je,ve,g)},p7=(o,c,g,S=[],_=[])=>{const H=sQ(o,L.some(c),g,S,_);return Dl.sketch(H)},aQ=(o,c)=>g=>{c==="custom"?vo(g,ap,{name:o,value:{}}):c==="submit"?ks(g,f3):c==="cancel"?ks(g,h1):console.error("Unknown button type: ",c)},Eq=(o,c)=>c==="menu",_q=(o,c)=>c==="custom"||c==="cancel"||c==="submit",Rq=(o,c)=>c==="togglebutton",Dq=(o,c)=>{var g,S;const _=o.icon.map(on=>y1(on,c.icons)).map(ia),H=on=>{vo(on,ap,{name:o.name,value:{setIcon:kn=>{_.map(Zn=>Zn.getOpt(on).each(mr=>{Uo.set(mr,[y1(kn,c.icons)])}))}}})},K=o.buttonType.getOr(o.primary?"primary":"secondary"),ve={...o,name:(g=o.name)!==null&&g!==void 0?g:"",primary:K==="primary",tooltip:L.from(o.tooltip),enabled:(S=o.enabled)!==null&&S!==void 0?S:!1,borderless:!1},Ae=ve.tooltip.map(on=>({"aria-label":c.translate(on),title:c.translate(on)})).getOr({}),Ne=g7(K??"secondary"),Ue=o.icon.isSome()&&o.text.isSome(),Je={tag:"button",classes:[...Ne.concat(o.icon.isSome()?["tox-button--icon"]:[]),...o.active?["tox-button--enabled"]:[],...Ue?["tox-button--icon-and-text"]:[]],attributes:Ae},st=[],ht=c.translate(o.text.getOr("")),At=yi(ht),Dn=[...p2([_.map(on=>on.asSpec())]),...o.text.isSome()?[At]:[]],mn=y4(ve,L.some(H),st,Je,Dn,c);return Dl.sketch(mn)},b4=(o,c,g)=>{if(Eq(o,c)){const S=()=>K,_=o,H={...o,type:"menubutton",search:L.none(),onSetup:ve=>(ve.setEnabled(o.enabled),M),fetch:vq(_.items,S,g)},K=ia(C3(H,"tox-tbtn",g,L.none()));return K.asSpec()}else if(_q(o,c)){const S=aQ(o.name,c),_={...o,borderless:!1};return p7(_,S,g.shared.providers,[])}else{if(Rq(o,c))return Dq(o,g.shared.providers);throw console.error("Unknown footer button type: ",c),new Error("Unknown footer button type")}},$q=(o,c)=>{const g=aQ(o.name,"custom");return EG(L.none(),la.parts.field({factory:Dl,...sQ(o,L.some(g),c,[v3(""),Ff.self()])}))},Lq={type:"separator"},Iq=o=>({type:"menuitem",value:o.url,text:o.title,meta:{attach:o.attach},onAction:M}),v7=(o,c)=>({type:"menuitem",value:c,text:o,meta:{attach:void 0},onAction:M}),Nq=o=>ne(o,Iq),iQ=(o,c)=>xe(c,g=>g.type===o),lQ=(o,c)=>Nq(iQ(o,c)),Bq=o=>lQ("header",o.targets),Qq=o=>lQ("anchor",o.targets),Fq=o=>L.from(o.anchorTop).map(c=>v7("",c)).toArray(),Vq=o=>L.from(o.anchorBottom).map(c=>v7("",c)).toArray(),zq=o=>ne(o,c=>v7(c,c)),cQ=o=>ke(o,(c,g)=>c.length===0||g.length===0?c.concat(g):c.concat(Lq,g),[]),y7=(o,c)=>{const g=o.toLowerCase();return xe(c,S=>{var _;const H=S.meta!==void 0&&S.meta.text!==void 0?S.meta.text:S.text,K=(_=S.value)!==null&&_!==void 0?_:"";return at(H.toLowerCase(),g)||at(K.toLowerCase(),g)})},uQ=(o,c,g)=>{var S,_;const H=Fr.getValue(c),K=(_=(S=H==null?void 0:H.meta)===null||S===void 0?void 0:S.text)!==null&&_!==void 0?_:H.value;return g.getLinkInformation().fold(()=>[],Ae=>{const Ne=y7(K,zq(g.getHistory(o)));return o==="file"?cQ([Ne,y7(K,Bq(Ae)),y7(K,Ie([Fq(Ae),Qq(Ae),Vq(Ae)]))]):Ne})},fQ=Kr("aria-invalid"),dQ=(o,c,g,S)=>{const _=c.shared.providers,H=on=>{const kn=Fr.getValue(on);g.addToHistory(kn.value,o.filetype)},K={...S.map(on=>({initialData:on})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":fQ,type:"url"},minChars:0,responseTime:0,fetch:on=>{const kn=uQ(o.filetype,on,g),Zn=M2(kn,Hm.BUBBLE_TO_SANDBOX,c,{isHorizontalMenu:!1,search:L.none()});return $c.pure(Zn)},getHotspot:on=>At.getOpt(on),onSetValue:(on,kn)=>{on.hasConfigured(gd)&&gd.run(on).get(M)},typeaheadBehaviours:pr([...g.getValidationHandler().map(on=>gd.config({getRoot:kn=>dr(kn.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(kn,Zn)=>{Ue.getOpt(kn).each(mr=>{Dr(mr.element,"title",_.translate(Zn))})}},validator:{validate:kn=>{const Zn=Fr.getValue(kn);return Pq.nu(mr=>{on({type:o.filetype,url:Zn.value},Gn=>{if(Gn.status==="invalid"){const Or=jo.error(Gn.message);mr(Or)}else{const Or=jo.value(Gn.message);mr(Or)}})})},validateOnLoad:!1}})).toArray(),Co.config({disabled:()=>!o.enabled||_.isDisabled()}),Ga.config({}),Jo("urlinput-events",[qn(di(),on=>{const kn=Ch(on.element),Zn=kn.trim();Zn!==kn&&b0(on.element,Zn),o.filetype==="file"&&vo(on,df,{name:o.name})}),qn(Yi(),on=>{vo(on,df,{name:o.name}),H(on)}),qn(Li(),on=>{vo(on,df,{name:o.name}),H(on)})])]),eventOrder:{[di()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:on=>on.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:c.shared.getSink,parts:{menu:c2(!1,1,"normal")},onExecute:(on,kn,Zn)=>{vo(kn,f3,{})},onItemExecute:(on,kn,Zn,mr)=>{H(on),vo(on,df,{name:o.name})}},ve=la.parts.field({...K,factory:Cq}),Ae=o.label.map(on=>eh(on,_)),Ue=ia(((on,kn,Zn=on,mr=on)=>Bh(Zn,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+on],attributes:{title:_.translate(mr),"aria-live":"polite",...kn.fold(()=>({}),Gn=>({id:Gn}))}},_.icons))("invalid",L.some(fQ),"warning")),Je=ia({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[Ue.asSpec()]}),st=g.getUrlPicker(o.filetype),ht=Kr("browser.url.event"),At=ia({dom:{tag:"div",classes:["tox-control-wrap"]},components:[ve,Je.asSpec()],behaviours:pr([Co.config({disabled:()=>!o.enabled||_.isDisabled()})])}),qt=ia(p7({name:o.name,icon:L.some("browse"),text:o.picker_text.or(o.label).getOr(""),enabled:o.enabled,primary:!1,buttonType:L.none(),borderless:!0},on=>ks(on,ht),_,[],["tox-browse-url"])),Dn=()=>({dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:Ie([[At.asSpec()],st.map(()=>qt.asSpec()).toArray()])}),mn=on=>{xs.getCurrent(on).each(kn=>{const Zn=Fr.getValue(kn),mr={fieldname:o.name,...Zn};st.each(Gn=>{Gn(mr).get(Or=>{Fr.setValue(kn,Or),vo(on,df,{name:o.name})})})})};return la.sketch({dom:Zle(),components:Ae.toArray().concat([Dn()]),fieldBehaviours:pr([Co.config({disabled:()=>!o.enabled||_.isDisabled(),onDisabled:on=>{la.getField(on).each(Co.disable),qt.getOpt(on).each(Co.disable)},onEnabled:on=>{la.getField(on).each(Co.enable),qt.getOpt(on).each(Co.enable)}}),gl(),Jo("url-input-events",[qn(ht,mn)])])})},hQ=(o,c)=>{const g=H_(o.icon,c.icons);return Um.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${o.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:o.url?void 0:g},components:o.url?[Dl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:g,attributes:{title:c.translate(o.iconTooltip)}},action:S=>vo(S,ap,{name:"alert-banner",value:o.url}),buttonBehaviours:pr([XA()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:c.translate(o.text)}}]})},b7=(o,c)=>{o.dom.checked=c},Zq=o=>o.dom.checked,mQ=(o,c,g)=>{const S=Ae=>(Ae.element.dom.click(),L.some(!0)),_=la.parts.field({factory:{sketch:z},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:pr([Ff.self(),Co.config({disabled:()=>!o.enabled||c.isDisabled(),onDisabled:Ae=>{dr(Ae.element).each(Ne=>ki(Ne,"tox-checkbox--disabled"))},onEnabled:Ae=>{dr(Ae.element).each(Ne=>Xa(Ne,"tox-checkbox--disabled"))}}),Ga.config({}),Mo.config({}),X6(g,Zq,b7),yo.config({mode:"special",onEnter:S,onSpace:S,stopSpaceKeyup:!0}),Jo("checkbox-events",[qn(Yi(),(Ae,Ne)=>{vo(Ae,df,{name:o.name})})])])}),H=la.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[yi(c.translate(o.label))],behaviours:pr([d3.config({})])}),K=Ae=>Bh(Ae==="checked"?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+Ae]},c.icons),ve=ia({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[K("checked"),K("unchecked")]});return la.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[_,ve.asSpec(),H],fieldBehaviours:pr([Co.config({disabled:()=>!o.enabled||c.isDisabled()}),gl()])})},gQ=o=>o.presets==="presentation"?Um.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:o.html}}):Um.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:o.html,attributes:{role:"document"}},containerBehaviours:pr([Ga.config({}),Mo.config({})])}),Ol=o=>(c,g,S,_)=>Bt(g,"name").fold(()=>o(g,_,L.none()),H=>c.field(H,o(g,_,Bt(S,H)))),pQ=o=>(c,g,S,_)=>{const H=Ta(g,{source:"dynamic"});return Ol(o)(c,H,S,_)},Hq={bar:Ol((o,c)=>TG(o,c.shared)),collection:Ol((o,c,g)=>RG(o,c.shared.providers,g)),alertbanner:Ol((o,c)=>hQ(o,c.shared.providers)),input:Ol((o,c,g)=>VB(o,c.shared.providers,g)),textarea:Ol((o,c,g)=>zB(o,c.shared.providers,g)),label:Ol((o,c)=>Gj(o,c.shared)),iframe:pQ((o,c,g)=>Uj(o,c.shared.providers,g)),button:Ol((o,c)=>$q(o,c.shared.providers)),checkbox:Ol((o,c,g)=>mQ(o,c.shared.providers,g)),colorinput:Ol((o,c,g)=>BG(o,c.shared,c.colorinput,g)),colorpicker:Ol((o,c,g)=>Bj(o,c.shared.providers,g)),dropzone:Ol((o,c,g)=>hB(o,c.shared.providers,g)),grid:Ol((o,c)=>zj(o,c.shared)),listbox:Ol((o,c,g)=>nq(o,c,g)),selectbox:Ol((o,c,g)=>sq(o,c.shared.providers,g)),sizeinput:Ol((o,c)=>iq(o,c.shared.providers)),slider:Ol((o,c,g)=>BB(o,c.shared.providers,g)),urlinput:Ol((o,c,g)=>dQ(o,c,c.urlinput,g)),customeditor:Ol(dB),htmlpanel:Ol(gQ),imagepreview:Ol((o,c,g)=>Xj(o,g)),table:Ol((o,c)=>QB(o,c.shared.providers)),tree:Ol((o,c)=>Sq(o,c)),panel:Ol((o,c)=>n7(o,c))},Uq={field:(o,c)=>c,record:F([])},Wh=(o,c,g,S)=>{const _=Ta(S,{shared:{interpreter:H=>R2(o,H,g,_)}});return R2(o,c,g,_)},R2=(o,c,g,S)=>Bt(Hq,c.type).fold(()=>(console.error(`Unknown factory type "${c.type}", defaulting to container: `,c),c),_=>_(o,c,g,S)),A3=(o,c,g)=>R2(Uq,o,c,g),O1="layout-inset",P3=o=>o.x,vQ=(o,c)=>o.x+o.width/2-c.width/2,M3=(o,c)=>o.x+o.width-c.width,O4=o=>o.y,E3=(o,c)=>o.y+o.height-c.height,yQ=(o,c)=>o.y+o.height/2-c.height/2,_3=(o,c,g)=>cl(M3(o,c),E3(o,c),g.insetSouthwest(),Ph(),"southwest",Ha(o,{right:0,bottom:3}),O1),R3=(o,c,g)=>cl(P3(o),E3(o,c),g.insetSoutheast(),fx(),"southeast",Ha(o,{left:1,bottom:3}),O1),Ub=(o,c,g)=>cl(M3(o,c),O4(o),g.insetNorthwest(),mw(),"northwest",Ha(o,{right:0,top:2}),O1),D3=(o,c,g)=>cl(P3(o),O4(o),g.insetNortheast(),Vy(),"northeast",Ha(o,{left:1,top:2}),O1),Yh=(o,c,g)=>cl(vQ(o,c),O4(o),g.insetNorth(),Pm(),"north",Ha(o,{top:2}),O1),D2=(o,c,g)=>cl(vQ(o,c),E3(o,c),g.insetSouth(),jM(),"south",Ha(o,{bottom:3}),O1),bQ=(o,c,g)=>cl(M3(o,c),yQ(o,c),g.insetEast(),zy(),"east",Ha(o,{right:0}),O1),OQ=(o,c,g)=>cl(P3(o),yQ(o,c),g.insetWest(),Nn(),"west",Ha(o,{left:1}),O1),xQ=o=>{switch(o){case"north":return Yh;case"northeast":return D3;case"northwest":return Ub;case"south":return D2;case"southeast":return R3;case"southwest":return _3;case"east":return bQ;case"west":return OQ}},O7=(o,c,g,S,_)=>Ak(S).map(xQ).getOr(Yh)(o,c,g,S,_),Wq=o=>{switch(o){case"north":return D2;case"northeast":return R3;case"northwest":return _3;case"south":return Yh;case"southeast":return D3;case"southwest":return Ub;case"east":return OQ;case"west":return bQ}},Yq=(o,c,g,S,_)=>Ak(S).map(Wq).getOr(Yh)(o,c,g,S,_),$3={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},Xq=(o,c,g)=>{const _={maxHeightFunction:R0()},H=()=>({type:"node",root:Xs(es(o())),node:L.from(o()),bubble:Eh(12,12,$3),layouts:{onRtl:()=>[D3],onLtr:()=>[Ub]},overrides:_}),K=()=>({type:"hotspot",hotspot:c(),bubble:Eh(-12,12,$3),layouts:{onRtl:()=>[ul,Gl,fl],onLtr:()=>[Gl,ul,fl]},overrides:_});return()=>g()?H():K()},SQ=(o,c,g,S)=>{const H={maxHeightFunction:R0()},K=()=>({type:"node",root:Xs(es(c())),node:L.from(c()),bubble:Eh(12,12,$3),layouts:{onRtl:()=>[Yh],onLtr:()=>[Yh]},overrides:H}),ve=()=>o?{type:"node",root:Xs(es(c())),node:L.from(c()),bubble:Eh(0,-Vu(c()),$3),layouts:{onRtl:()=>[Mc],onLtr:()=>[Mc]},overrides:H}:{type:"hotspot",hotspot:g(),bubble:Eh(0,0,$3),layouts:{onRtl:()=>[Mc],onLtr:()=>[Mc]},overrides:H};return()=>S()?K():ve()},Wm=(o,c,g)=>{const S=()=>({type:"node",root:Xs(es(o())),node:L.from(o()),layouts:{onRtl:()=>[Yh],onLtr:()=>[Yh]}}),_=()=>({type:"hotspot",hotspot:c(),layouts:{onRtl:()=>[fl],onLtr:()=>[fl]}});return()=>g()?S():_()},x7=(o,c)=>()=>({type:"selection",root:c(),getSelection:()=>{const g=o.selection.getRng(),S=o.model.table.getSelectedCells();if(S.length>1){const _=S[0],H=S[S.length-1],K={firstCell:zt.fromDom(_),lastCell:zt.fromDom(H)};return L.some(K)}return L.some(_l.range(zt.fromDom(g.startContainer),g.startOffset,zt.fromDom(g.endContainer),g.endOffset))}}),Gq=o=>c=>({type:"node",root:o(),node:c}),jq=(o,c,g,S)=>{const _=i2(o),H=()=>zt.fromDom(o.getBody()),K=()=>zt.fromDom(o.getContentAreaContainer()),ve=()=>_||!S();return{inlineDialog:Xq(K,c,ve),inlineBottomDialog:SQ(o.inline,K,g,ve),banner:Wm(K,c,ve),cursor:x7(o,H),node:Gq(H)}},qq=o=>(c,g)=>{JI(o)(c,g)},Kq=o=>()=>YI(o),Jq=o=>c=>P5(o,c),wQ=o=>c=>WI(o,c),TQ=o=>({colorPicker:qq(o),hasCustomColors:Kq(o),getColors:Jq(o),getColorCols:wQ(o)}),oce=o=>()=>t8(o),sce=o=>({isDraggableModal:oce(o)}),Lc=o=>{const c=X(a8(o)?"bottom":"top");return{isPositionedAtTop:()=>c.get()==="top",getDockingMode:c.get,setDockingMode:c.set}},x4=o=>En(o,"items"),CQ=o=>En(o,"format"),L3=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],eK=o=>vn(o,"items"),tK=o=>vn(o,"block"),nK=o=>vn(o,"inline"),rK=o=>vn(o,"selector"),kQ=o=>ke(o,(c,g)=>{if(eK(g)){const S=kQ(g.items);return{customFormats:c.customFormats.concat(S.customFormats),formats:c.formats.concat([{title:g.title,items:S.formats}])}}else if(nK(g)||tK(g)||rK(g)){const _=`custom-${m(g.name)?g.name:g.title.toLowerCase()}`;return{customFormats:c.customFormats.concat([{name:_,format:g}]),formats:c.formats.concat([{title:g.title,format:_,icon:g.icon}])}}else return{...c,formats:c.formats.concat(g)}},{customFormats:[],formats:[]}),oK=(o,c)=>{const g=kQ(c),S=_=>{pe(_,H=>{o.formatter.has(H.name)||o.formatter.register(H.name,H.format)})};return o.formatter?S(g.customFormats):o.on("init",()=>{S(g.customFormats)}),g.formats},AQ=o=>mL(o).map(c=>{const g=oK(o,c);return gL(o)?L3.concat(g):g}).getOr(L3),sK=o=>{const c=ct(o);return c.length===1&&be(c,"title")},S7=(o,c,g)=>({...o,type:"formatter",isSelected:c(o.format),getStylePreview:g(o.format)}),I3=(o,c,g,S)=>{const _=Ae=>S7(Ae,g,S),H=Ae=>{const Ne=ve(Ae.items);return{...Ae,type:"submenu",getStyleItems:F(Ne)}},K=Ae=>{const Ne=m(Ae.name)?Ae.name:Kr(Ae.title),Ue=`custom-${Ne}`,Je={...Ae,type:"formatter",format:Ue,isSelected:g(Ue),getStylePreview:S(Ue)};return o.formatter.register(Ne,Je),Je},ve=Ae=>ne(Ae,Ne=>x4(Ne)?H(Ne):CQ(Ne)?_(Ne):sK(Ne)?{...Ne,type:"separator"}:K(Ne));return ve(c)},aK=o=>{const c=ve=>()=>o.formatter.match(ve),g=ve=>()=>{const Ae=o.formatter.get(ve);return Ae!==void 0?L.some({tag:Ae.length>0&&(Ae[0].inline||Ae[0].block)||"div",styles:o.dom.parseStyle(o.formatter.getCssText(ve))}):L.none()},S=X([]),_=X([]),H=X(!1);return o.on("PreInit",ve=>{const Ae=AQ(o),Ne=I3(o,Ae,c,g);S.set(Ne)}),o.on("addStyleModifications",ve=>{const Ae=I3(o,ve.items,c,g);_.set(Ae),H.set(ve.replace)}),{getData:()=>{const ve=H.get()?[]:S.get(),Ae=_.get();return ve.concat(Ae)}}},PQ=o=>C(o)&&o.nodeType===1,iK=up.trim,w7=o=>c=>!!(PQ(c)&&(c.contentEditable===o||c.getAttribute("data-mce-contenteditable")===o)),lK=w7("true"),cK=w7("false"),T7=(o,c,g,S,_)=>({type:o,title:c,url:g,level:S,attach:_}),ace=o=>{let c=o;for(;c=c.parentNode;){const g=c.contentEditable;if(g&&g!=="inherit")return lK(c)}return!1},ice=(o,c)=>ne(hl(zt.fromDom(c),o),g=>g.dom),MQ=o=>o.innerText||o.textContent,uK=o=>o.id?o.id:Kr("h"),fK=o=>o&&o.nodeName==="A"&&(o.id||o.name)!==void 0,EQ=o=>fK(o)&&_Q(o),S4=o=>o&&/^(H[1-6])$/.test(o.nodeName),_Q=o=>ace(o)&&!cK(o),dK=o=>S4(o)&&_Q(o),RQ=o=>S4(o)?parseInt(o.nodeName.substr(1),10):0,hK=o=>{var c;const g=uK(o),S=()=>{o.id=g};return T7("header",(c=MQ(o))!==null&&c!==void 0?c:"","#"+g,RQ(o),S)},mK=o=>{const c=o.id||o.name,g=MQ(o);return T7("anchor",g||"#"+c,"#"+c,0,M)},gK=o=>ne(xe(o,dK),hK),pK=o=>ne(xe(o,EQ),mK),C7=o=>ice("h1,h2,h3,h4,h5,h6,a:not([href])",o),DQ=o=>iK(o.title).length>0,vK={find:o=>{const c=C7(o);return xe(gK(c).concat(pK(c)),DQ)}},w4="tinymce-url-history",$Q=5,k7=o=>m(o)&&/^https?/.test(o),yK=o=>v(o)&&o.length<=$Q&&ye(o,k7),N3=o=>u(o)&&Gt(o,c=>!yK(c)).isNone(),LQ=()=>{const o=u1.getItem(w4);if(o===null)return{};let c;try{c=JSON.parse(o)}catch(g){if(g instanceof SyntaxError)return console.log("Local storage "+w4+" was not valid JSON",g),{};throw g}return N3(c)?c:(console.log("Local storage "+w4+" was not valid format",c),{})},T4=o=>{if(!N3(o))throw new Error(`Bad format for history: +`+JSON.stringify(o));u1.setItem(w4,JSON.stringify(o))},bK=o=>{const c=LQ();return Bt(c,o).getOr([])},A7=(o,c)=>{if(!k7(o))return;const g=LQ(),S=Bt(g,c).getOr([]),_=xe(S,H=>H!==o);g[c]=[o].concat(_).slice(0,$Q),T4(g)},$2=o=>!!o,IQ=o=>je(up.makeMap(o,/[, ]/),$2),P7=o=>L.from(OL(o)),NQ=o=>{const c=L.from(J_(o)).filter($2).map(IQ);return P7(o).fold(Y,g=>c.fold(ie,S=>ct(S).length>0?S:!1))},BQ=(o,c)=>{const g=NQ(o);return b(g)?g?P7(o):L.none():g[c]?P7(o):L.none()},QQ=(o,c)=>BQ(o,c).map(g=>S=>$c.nu(_=>{const H=(ve,Ae)=>{if(!m(ve))throw new Error("Expected value to be string");if(Ae!==void 0&&!u(Ae))throw new Error("Expected meta to be a object");_({value:ve,meta:Ae})},K={filetype:c,fieldname:S.fieldname,...L.from(S.meta).getOr({})};g.call(o,H,S.value,K)})),FQ=o=>L.from(o).filter(m).getOrUndefined(),M7=o=>e8(o)?L.some({targets:vK.find(o.getBody()),anchorTop:FQ(JA(o)),anchorBottom:FQ(SL(o))}):L.none(),C4=o=>L.from(K_(o)),OK=o=>({getHistory:bK,addToHistory:A7,getLinkInformation:()=>M7(o),getValidationHandler:()=>C4(o),getUrlPicker:c=>QQ(o,c)}),xK=(o,c,g,S)=>{const _=X(!1),H=Lc(c),K={icons:()=>c.ui.registry.getAll().icons,menuItems:()=>c.ui.registry.getAll().menuItems,translate:dd.translate,isDisabled:()=>c.mode.isReadOnly()||!c.ui.isEnabled(),getOption:c.options.get},ve=OK(c),Ae=aK(c),Ne=TQ(c),Ue=sce(c),Je=()=>_.get(),st=Dn=>_.set(Dn),ht={shared:{providers:K,anchors:jq(c,g,S,H.isPositionedAtTop),header:H},urlinput:ve,styles:Ae,colorinput:Ne,dialog:Ue,isContextMenuOpen:Je,setContextMenuState:st},At={...ht,shared:{...ht.shared,interpreter:Dn=>A3(Dn,{},At),getSink:o.popup}},qt={...ht,shared:{...ht.shared,interpreter:Dn=>A3(Dn,{},qt),getSink:o.dialog}};return{popup:At,dialog:qt}},L2=(o,c,g)=>{const S=(Gn,Or)=>{pe([c,...g],Mr=>{Mr.broadcastEvent(Gn,Or)})},_=(Gn,Or)=>{pe([c,...g],Mr=>{Mr.broadcastOn([Gn],Or)})},H=Gn=>_(Wd(),{target:Gn.target}),K=qv(),ve=_c(K,"touchstart",H),Ae=_c(K,"touchmove",Gn=>S(Py(),Gn)),Ne=_c(K,"touchend",Gn=>S(FO(),Gn)),Ue=_c(K,"mousedown",H),Je=_c(K,"mouseup",Gn=>{Gn.raw.button===0&&_(oT(),{target:Gn.target})}),st=Gn=>_(Wd(),{target:zt.fromDom(Gn.target)}),ht=Gn=>{Gn.button===0&&_(oT(),{target:zt.fromDom(Gn.target)})},At=()=>{pe(o.editorManager.get(),Gn=>{o!==Gn&&Gn.dispatch("DismissPopups",{relatedTarget:o})})},qt=Gn=>S(Oh(),Dw(Gn)),Dn=Gn=>{_(dv(),{}),S(Qd(),Dw(Gn))},mn=es(zt.fromDom(o.getElement())),on=vx(mn,"scroll",Gn=>{requestAnimationFrame(()=>{const Or=o.getContainer();if(Or!=null){const is=d1(o,c.element).map(Gr=>[Gr.element,...Gr.others]).getOr([]);Te(is,Gr=>Jt(Gr,Gn.target))&&(o.dispatch("ElementScroll",{target:Gn.target.dom}),S(zO(),Gn))}})}),kn=()=>_(dv(),{}),Zn=Gn=>{Gn.state&&_(Wd(),{target:zt.fromDom(o.getContainer())})},mr=Gn=>{_(Wd(),{target:zt.fromDom(Gn.relatedTarget.getContainer())})};o.on("PostRender",()=>{o.on("click",st),o.on("tap",st),o.on("mouseup",ht),o.on("mousedown",At),o.on("ScrollWindow",qt),o.on("ResizeWindow",Dn),o.on("ResizeEditor",kn),o.on("AfterProgressState",Zn),o.on("DismissPopups",mr)}),o.on("remove",()=>{o.off("click",st),o.off("tap",st),o.off("mouseup",ht),o.off("mousedown",At),o.off("ScrollWindow",qt),o.off("ResizeWindow",Dn),o.off("ResizeEditor",kn),o.off("AfterProgressState",Zn),o.off("DismissPopups",mr),Ue.unbind(),ve.unbind(),Ae.unbind(),Ne.unbind(),Je.unbind(),on.unbind()}),o.on("detach",()=>{pe([c,...g],U0),pe([c,...g],Gn=>Gn.destroy())})},xl=KE,dp=mA,VQ=F([Mn("shell",!1),er("makeItem"),Mn("setupItem",M),If.field("listBehaviours",[Uo])]),E7=fu({name:"items",overrides:()=>({behaviours:pr([Uo.config({})])})}),SK=F([E7]),wK=F("CustomList"),TK=(o,c,g,S)=>{const _=(ve,Ae)=>{K(ve).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},Ne=>{const Ue=Uo.contents(Ne),Je=Ae.length,st=Je-Ue.length,ht=st>0?Be(st,()=>o.makeItem()):[],At=Ue.slice(Je);pe(At,Dn=>Uo.remove(Ne,Dn)),pe(ht,Dn=>Uo.append(Ne,Dn));const qt=Uo.contents(Ne);pe(qt,(Dn,mn)=>{o.setupItem(ve,Dn,Ae[mn],mn)})})},H=o.shell?{behaviours:[Uo.config({})],components:[]}:{behaviours:[],components:c},K=ve=>o.shell?L.some(ve):ka(ve,o,"items");return{uid:o.uid,dom:o.dom,components:H.components,behaviours:Ni(o.listBehaviours,H.behaviours),apis:{setItems:_}}},k4=lc({name:wK(),configFields:VQ(),partFields:SK(),factory:TK,apis:{setItems:(o,c,g)=>{o.setItems(c,g)}}}),I2=F([er("dom"),Mn("shell",!0),el("toolbarBehaviours",[Uo])]),CK=F([fu({name:"groups",overrides:()=>({behaviours:pr([Uo.config({})])})})]),kK=(o,c,g,S)=>{const _=(ve,Ae)=>{H(ve).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},Ne=>{Uo.set(Ne,Ae)})},H=ve=>o.shell?L.some(ve):ka(ve,o,"groups"),K=o.shell?{behaviours:[Uo.config({})],components:[]}:{behaviours:[],components:c};return{uid:o.uid,dom:o.dom,components:K.components,behaviours:Ni(o.toolbarBehaviours,K.behaviours),apis:{setGroups:_,refresh:M},domModification:{attributes:{role:"group"}}}},Ym=lc({name:"Toolbar",configFields:I2(),partFields:CK(),factory:kK,apis:{setGroups:(o,c,g)=>{o.setGroups(c,g)}}}),AK=M,PK=Y,_7=F([]);var MK=Object.freeze({__proto__:null,setup:AK,isDocked:PK,getBehaviours:_7});const Wb=o=>(ln(za(o,"position"),"fixed")?L.none():ar(o)).orThunk(()=>{const S=zt.fromTag("span");return Fn(o).bind(_=>{Vc(_,S);const H=ar(S);return xc(S),H})}),ZQ=o=>Wb(o).map(Cl).getOrThunk(()=>Is(0,0)),EK=(o,c)=>{const g=o.element;ki(g,c.transitionClass),Xa(g,c.fadeOutClass),ki(g,c.fadeInClass),c.onShow(o)},R7=(o,c)=>{const g=o.element;ki(g,c.transitionClass),Xa(g,c.fadeInClass),ki(g,c.fadeOutClass),c.onHide(o)},HQ=(o,c)=>o.yc.y,UQ=(o,c)=>o.y>=c.y,WQ=(o,c)=>o.bottom<=c.bottom,D7=(o,c,g)=>({location:"top",leftX:c,topY:g.bounds.y-o.y}),$7=(o,c,g)=>({location:"bottom",leftX:c,bottomY:o.bottom-g.bounds.bottom}),L7=o=>o.box.x-o.win.x,_K=(o,c,g)=>{const S=c.win,_=c.box,H=L7(c);return Xe(o,K=>{switch(K){case"bottom":return WQ(_,g.bounds)?L.none():L.some($7(S,H,g));case"top":return UQ(_,g.bounds)?L.none():L.some(D7(S,H,g));default:return L.none()}}).getOr({location:"no-dock"})},RK=(o,c,g)=>ye(o,S=>{switch(S){case"bottom":return WQ(c,g.bounds);case"top":return UQ(c,g.bounds)}}),DK=(o,c)=>{const g=c.optScrollEnv.fold(F(o.bounds.y),S=>S.scrollElmTop+(o.bounds.y-S.currentScrollTop));return Is(o.bounds.x,g)},$K=(o,c)=>{const g=c.optScrollEnv.fold(F(o.y),S=>o.y+S.currentScrollTop-S.scrollElmTop);return Is(o.x,g)},YQ=(o,c,g)=>g.getInitialPos().map(S=>{const _=DK(S,c);return{box:Ja(_.left,_.top,Si(o),Za(o)),location:S.location}}),XQ=(o,c,g,S,_)=>{const H=$K(c,g),K=Ja(H.left,H.top,c.width,c.height);S.setInitialPos({style:Fa(o),position:Qa(o,"position")||"static",bounds:K,location:_.location})},GQ=(o,c,g,S,_)=>{S.getInitialPos().fold(()=>XQ(o,c,g,S,_),()=>M)},I7=(o,c,g)=>g.getInitialPos().bind(S=>{var _;switch(g.clearInitialPos(),S.position){case"static":return L.some({morph:"static"});case"absolute":const H=Wb(o).getOr(ya()),K=ui(H),ve=(_=H.dom.scrollTop)!==null&&_!==void 0?_:0;return L.some({morph:"absolute",positionCss:of("absolute",Bt(S.style,"left").map(Ae=>c.x-K.x),Bt(S.style,"top").map(Ae=>c.y-K.y+ve),Bt(S.style,"right").map(Ae=>K.right-c.right),Bt(S.style,"bottom").map(Ae=>K.bottom-c.bottom))});default:return L.none()}}),A4=(o,c,g)=>YQ(o,c,g).filter(({box:S})=>RK(g.getModes(),S,c)).bind(({box:S})=>I7(o,S,g)),P4=o=>{switch(o.location){case"top":return L.some({morph:"fixed",positionCss:of("fixed",L.some(o.leftX),L.some(o.topY),L.none(),L.none())});case"bottom":return L.some({morph:"fixed",positionCss:of("fixed",L.some(o.leftX),L.none(),L.none(),L.some(o.bottomY))});default:return L.none()}},LK=(o,c,g)=>{const S=ui(o),_=Vl(),H=_K(g.getModes(),{win:_,box:S},c);return H.location==="top"||H.location==="bottom"?(XQ(o,S,c,g,H),P4(H)):L.none()},IK=(o,c,g)=>A4(o,c,g).orThunk(()=>c.optScrollEnv.bind(S=>YQ(o,c,g)).bind(({box:S,location:_})=>{const H=Vl(),K=L7({win:H,box:S}),ve=_==="top"?D7(H,K,c):$7(H,K,c);return P4(ve)})),NK=(o,c,g)=>{const S=o.element;return ln(za(S,"position"),"fixed")?IK(S,c,g):LK(S,c,g)},BK=(o,c,g)=>{const S=o.element;return YQ(S,c,g).bind(({box:_})=>I7(S,_,g))},QK=(o,c,g,S)=>{const _=ui(o),H=Vl(),K=L7({win:H,box:_}),ve=S(H,K,c);return ve.location==="bottom"||ve.location==="top"?(GQ(o,_,c,g,ve),P4(ve)):L.none()},jQ=(o,c,g)=>{g.setDocked(!1),pe(["left","right","top","bottom","position"],S=>Zo(o.element,S)),c.onUndocked(o)},N7=(o,c,g,S)=>{const _=S.position==="fixed";g.setDocked(_),Ck(o.element,S),(_?c.onDocked:c.onUndocked)(o)},B7=(o,c,g,S,_=!1)=>{c.contextual.each(H=>{H.lazyContext(o).each(K=>{const ve=HQ(K,S.bounds);ve!==g.isVisible()&&(g.setVisible(ve),_&&!ve?(ni(o.element,[H.fadeOutClass]),H.onHide(o)):(ve?EK:R7)(o,H))})})},Q7=(o,c,g,S,_)=>{B7(o,c,g,S,!0),N7(o,c,g,_.positionCss)},FK=(o,c,g,S,_)=>{switch(_.morph){case"static":return jQ(o,c,g);case"absolute":return N7(o,c,g,_.positionCss);case"fixed":return Q7(o,c,g,S,_)}},qQ=(o,c,g)=>{const S=c.lazyViewport(o);B7(o,c,g,S),NK(o,S,g).each(_=>{FK(o,c,g,S,_)})},VK=(o,c,g)=>{const S=o.element;g.setDocked(!1);const _=c.lazyViewport(o);BK(o,_,g).each(H=>{switch(H.morph){case"static":{jQ(o,c,g);break}case"absolute":{N7(o,c,g,H.positionCss);break}}}),g.setVisible(!0),c.contextual.each(H=>{tf(S,[H.fadeInClass,H.fadeOutClass,H.transitionClass]),H.onShow(o)}),M4(o,c,g)},M4=(o,c,g)=>{o.getSystem().isConnected()&&qQ(o,c,g)},KQ=(o,c,g)=>{g.isDocked()&&VK(o,c,g)},x1=o=>(c,g,S)=>{const _=g.lazyViewport(c);QK(c.element,_,S,o).each(K=>{Q7(c,g,S,_,K)})},JQ=x1(D7),B3=x1($7);var eF=Object.freeze({__proto__:null,refresh:M4,reset:KQ,isDocked:(o,c,g)=>g.isDocked(),getModes:(o,c,g)=>g.getModes(),setModes:(o,c,g,S)=>g.setModes(S),forceDockToTop:JQ,forceDockToBottom:B3}),HK=Object.freeze({__proto__:null,events:(o,c)=>Ea([xh(Ki(),(g,S)=>{o.contextual.each(_=>{Ji(g.element,_.transitionClass)&&(tf(g.element,[_.transitionClass,_.fadeInClass]),(c.isVisible()?_.onShown:_.onHidden)(g)),S.stop()})}),qn(Oh(),(g,S)=>{M4(g,o,c)}),qn(zO(),(g,S)=>{M4(g,o,c)}),qn(Qd(),(g,S)=>{KQ(g,o,c)})])}),UK=[wc("contextual",[zs("fadeInClass"),zs("fadeOutClass"),zs("transitionClass"),qu("lazyContext"),Rs("onShow"),Rs("onShown"),Rs("onHide"),Rs("onHidden")]),Di("lazyViewport",()=>({bounds:Vl(),optScrollEnv:L.none()})),Cc("modes",["top","bottom"],al),Rs("onDocked"),Rs("onUndocked")],WK=Object.freeze({__proto__:null,init:o=>{const c=X(!1),g=X(!0),S=gs(),_=X(o.modes),H=()=>`docked: ${c.get()}, visible: ${g.get()}, modes: ${_.get().join(",")}`;return Cu({isDocked:c.get,setDocked:c.set,getInitialPos:S.get,setInitialPos:S.set,clearInitialPos:S.clear,isVisible:g.get,setVisible:g.set,getModes:_.get,setModes:_.set,readState:H})}});const Bi=dl({fields:UK,name:"docking",active:HK,apis:eF,state:WK}),S1=F(Kr("toolbar-height-change")),yd={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},E4="tox-tinymce--toolbar-sticky-on",tF="tox-tinymce--toolbar-sticky-off",YK=(o,c)=>{const g=Tn(c),_=Jn(c).dom.innerHeight,H=Pl(g),K=zt.fromDom(o.elm),ve=wu(K),Ae=Za(K),Ne=ve.y,Ue=Ne+Ae,Je=Cl(c),st=Za(c),ht=Je.top,At=ht+st,qt=Math.abs(ht-H.top)<2,Dn=Math.abs(At-(H.top+_))<2;if(qt&&Neht){const mn=Ne-_+Ae+st;Wu(H.left,mn,g)}},N2=(o,c)=>be(Bi.getModes(o),c),V7=o=>{const c=S=>Vu(S)+(parseInt(Qa(S,"margin-top"),10)||0)+(parseInt(Qa(S,"margin-bottom"),10)||0),g=o.element;dr(g).each(S=>{const _="padding-"+Bi.getModes(o)[0];if(Bi.isDocked(o)){const H=Si(S);Po(g,"width",H+"px"),Po(S,_,c(g)+"px")}else Zo(g,"width"),Zo(S,_)})},B2=(o,c)=>{c?(Xa(o,yd.fadeOutClass),ni(o,[yd.transitionClass,yd.fadeInClass])):(Xa(o,yd.fadeInClass),ni(o,[yd.fadeOutClass,yd.transitionClass]))},z7=(o,c)=>{const g=zt.fromDom(o.getContainer());c?(ki(g,E4),Xa(g,tF)):(ki(g,tF),Xa(g,E4))},XK=(o,c)=>{const g=Tn(c);Mh(g).filter(S=>!Jt(c,S)).filter(S=>Jt(S,zt.fromDom(g.dom.body))||rn(o,S)).each(()=>cu(c))},GK=(o,c)=>ad(o).orThunk(()=>c().toOptional().bind(g=>ad(g.element))),jK=(o,c,g)=>{o.inline||(c.header.isPositionedAtTop()||o.on("ResizeEditor",()=>{g().each(Bi.reset)}),o.on("ResizeWindow ResizeEditor",()=>{g().each(V7)}),o.on("SkinLoaded",()=>{g().each(S=>{Bi.isDocked(S)?Bi.reset(S):Bi.refresh(S)})}),o.on("FullscreenStateChanged",()=>{g().each(Bi.reset)})),o.on("AfterScrollIntoView",S=>{g().each(_=>{Bi.refresh(_);const H=_.element;jx(H)&&YK(S,H)})}),o.on("PostRender",()=>{z7(o,!1)})},qK=o=>o().map(Bi.isDocked).getOr(!1),KK=()=>[lu.config({channels:{[S1()]:{onReceive:V7}}})],nF=(o,c)=>{const g=gs(),S=c.getSink,_=ve=>{S().each(Ae=>ve(Ae.element))},H=ve=>{o.inline||V7(ve),z7(o,Bi.isDocked(ve)),ve.getSystem().broadcastOn([dv()],{}),S().each(Ae=>Ae.getSystem().broadcastOn([dv()],{}))},K=o.inline?[]:KK();return[Mo.config({}),Bi.config({contextual:{lazyContext:ve=>{const Ae=Vu(ve.element),Ne=o.inline?o.getContentAreaContainer():o.getContainer();return L.from(Ne).map(Ue=>{const Je=ui(zt.fromDom(Ue));return d1(o,ve.element).fold(()=>{const ht=Je.height-Ae,At=Je.y+(N2(ve,"top")?0:Ae);return Ja(Je.x,At,Je.width,ht)},ht=>{const At=py(Je,O2(ht)),qt=N2(ve,"top")?At.y:At.y+Ae;return Ja(At.x,qt,At.width,At.height-Ae)})})},onShow:()=>{_(ve=>B2(ve,!0))},onShown:ve=>{_(Ae=>tf(Ae,[yd.transitionClass,yd.fadeInClass])),g.get().each(Ae=>{XK(ve.element,Ae),g.clear()})},onHide:ve=>{GK(ve.element,S).fold(g.clear,g.set),_(Ae=>B2(Ae,!1))},onHidden:()=>{_(ve=>tf(ve,[yd.transitionClass]))},...yd},lazyViewport:ve=>d1(o,ve.element).fold(()=>{const Ne=Vl(),Ue=qA(o),Je=Ne.y+(N2(ve,"top")?Ue:0),st=Ne.height-(N2(ve,"bottom")?Ue:0);return{bounds:Ja(Ne.x,Je,Ne.width,st),optScrollEnv:L.none()}},Ne=>({bounds:O2(Ne),optScrollEnv:L.some({currentScrollTop:Ne.element.dom.scrollTop,scrollElmTop:Cl(Ne.element).top})})),modes:[c.header.getDockingMode()],onDocked:H,onUndocked:H}),...K]};var rF=Object.freeze({__proto__:null,setup:jK,isDocked:qK,getBehaviours:nF});const oF=o=>{const c=o.editor,g=o.sticky?nF:_7;return{uid:o.uid,dom:o.dom,components:o.components,behaviours:pr(g(c,o.sharedBackstage))}},Z7=uo([Gi,Zc("items",Xr([Dd([T8,rc("items",al)]),al]))].concat(m2)),JK=o=>da("GroupToolbarButton",Z7,o),_4=[ll("text"),ll("tooltip"),ll("icon"),Tc("search",!1,Xr([_f,uo([ll("placeholder")])],o=>b(o)?o?L.some({placeholder:L.none()}):L.none():L.some(o))),qu("fetch"),Di("onSetup",()=>M)],Q3=uo([Gi,..._4]),H7=o=>da("menubutton",Q3,o),eJ=uo([Gi,GT,hd,tp,A8,YL,i1,Hc("presets","normal",["normal","color","listpreview"]),jL(1),d2,$Y]),tJ=o=>da("SplitButton",eJ,o);var U7=_u({factory:(o,c)=>{const g=(_,H)=>{const K=ne(H,ve=>{const Ae={type:"menubutton",text:ve.text,fetch:Ue=>{Ue(ve.getItems())}},Ne=H7(Ae).mapError(Ue=>Zl(Ue)).getOrDie();return C3(Ne,"tox-mbtn",c.backstage,L.some("menuitem"))});Uo.set(_,K)},S={focus:yo.focusIn,setMenus:g};return{uid:o.uid,dom:o.dom,components:[],behaviours:pr([Uo.config({}),Jo("menubar-events",[Ca(_=>{o.onSetup(_)}),qn(Lr(),(_,H)=>{Ai(_.element,".tox-mbtn--active").each(K=>{Vd(H.event.target,".tox-mbtn").each(ve=>{Jt(K,ve)||_.getSystem().getByDom(K).each(Ae=>{_.getSystem().getByDom(ve).each(Ne=>{Jd.expand(Ne),Jd.close(Ae),Mo.focus(Ne)})})})})}),qn(VO(),(_,H)=>{H.event.prevFocus.bind(K=>_.getSystem().getByDom(K).toOptional()).each(K=>{H.event.newFocus.bind(ve=>_.getSystem().getByDom(ve).toOptional()).each(ve=>{Jd.isOpen(K)&&(Jd.expand(ve),Jd.close(K))})})})]),yo.config({mode:"flow",selector:".tox-mbtn",onEscape:_=>(o.onEscape(_),L.some(!0))}),Ga.config({})]),apis:S,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[er("dom"),er("uid"),er("onEscape"),er("backstage"),Mn("onSetup",M)],apis:{focus:(o,c)=>{o.focus(c)},setMenus:(o,c,g)=>{o.setMenus(c,g)}}});const W7="⚡️Upgrade",Y7="https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_source=TinyMCE&utm_medium=SPAP&utm_campaign=SPAP&utm_id=editorreferral",nJ=o=>({uid:o.uid,dom:o.dom,components:[{dom:{tag:"a",attributes:{href:Y7,rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:W7}}]}),R4="container",rJ=[el("slotBehaviours",[])],sF=o=>"",oJ=o=>{const c=(()=>{const H=[];return{slot:(ve,Ae)=>(H.push(ve),fT(R4,sF(ve),Ae)),record:F(H)}})(),g=o(c),S=c.record(),_=ne(S,H=>ic({name:H,pname:sF(H)}));return yT(R4,rJ,_,sJ,g)},sJ=(o,c)=>{const g=qt=>mT(o),S=(qt,Dn)=>ka(qt,o,Dn),_=(qt,Dn)=>(mn,on)=>ka(mn,o,on).map(kn=>qt(kn,on)).getOr(Dn),H=qt=>(Dn,mn)=>{pe(mn,on=>qt(Dn,on))},K=(qt,Dn)=>oa(qt.element,"aria-hidden")!=="true",ve=(qt,Dn)=>{if(!K(qt)){const mn=qt.element;Zo(mn,"display"),sa(mn,"aria-hidden"),vo(qt,My(),{name:Dn,visible:!0})}},Ae=(qt,Dn)=>{if(K(qt)){const mn=qt.element;Po(mn,"display","none"),Dr(mn,"aria-hidden","true"),vo(qt,My(),{name:Dn,visible:!1})}},Ne=_(K,!1),Ue=_(Ae),Je=H(Ue),st=qt=>Je(qt,g()),ht=_(ve),At={getSlotNames:g,getSlot:S,isShowing:Ne,hideSlot:Ue,hideAllSlots:st,showSlot:ht};return{uid:o.uid,dom:o.dom,components:c,behaviours:Lm(o.slotBehaviours),apis:At}},pu={...je({getSlotNames:(o,c)=>o.getSlotNames(c),getSlot:(o,c,g)=>o.getSlot(c,g),isShowing:(o,c,g)=>o.isShowing(c,g),hideSlot:(o,c,g)=>o.hideSlot(c,g),hideAllSlots:(o,c)=>o.hideAllSlots(c),showSlot:(o,c,g)=>o.showSlot(c,g)},o=>ev(o)),sketch:oJ},hce=uo([hd,GT,Di("onShow",M),Di("onHide",M),i1]),aF=o=>da("sidebar",hce,o),aJ=o=>{const{sidebars:c}=o.ui.registry.getAll();pe(ct(c),g=>{const S=c[g],_=()=>ln(L.from(o.queryCommandValue("ToggleSidebar")),g);o.ui.registry.addToggleButton(g,{icon:S.icon,tooltip:S.tooltip,onAction:H=>{o.execCommand("ToggleSidebar",!1,g),H.setActive(_())},onSetup:H=>{H.setActive(_());const K=()=>H.setActive(_());return o.on("ToggleSidebar",K),()=>{o.off("ToggleSidebar",K)}}})})},iF=o=>({element:()=>o.element.dom}),iJ=(o,c)=>{const g=ne(ct(c),S=>{const _=c[S],H=aa(aF(_));return{name:S,getApi:iF,onSetup:H.onSetup,onShow:H.onShow,onHide:H.onHide}});return ne(g,S=>{const _=X(M);return o.slot(S.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:KT.unnamedEvents([l1(S,_),rp(S,_),qn(My(),(H,K)=>{const ve=K.event;Ze(g,Ne=>Ne.name===ve.name).each(Ne=>{(ve.visible?Ne.onShow:Ne.onHide)(Ne.getApi(H))})})])})})},lJ=o=>pu.sketch(c=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:iJ(c,o),slotBehaviours:KT.unnamedEvents([Ca(g=>pu.hideAllSlots(g))])})),cJ=(o,c,g)=>{xs.getCurrent(o).each(_=>{Uo.set(_,[lJ(c)]);const H=g==null?void 0:g.toLowerCase();m(H)&&vn(c,H)&&xs.getCurrent(_).each(K=>{pu.showSlot(K,H),Vf.immediateGrow(_),Zo(_.element,"width"),D4(o.element,"region")})})},D4=(o,c)=>{Dr(o,"role",c)},uJ=(o,c)=>{xs.getCurrent(o).each(S=>{xs.getCurrent(S).each(H=>{Vf.hasGrown(S)?pu.isShowing(H,c)?(Vf.shrink(S),D4(o.element,"presentation")):(pu.hideAllSlots(H),pu.showSlot(H,c),D4(o.element,"region")):(pu.hideAllSlots(H),pu.showSlot(H,c),Vf.grow(S),D4(o.element,"region"))})})},lF=o=>xs.getCurrent(o).bind(g=>Vf.isGrowing(g)||Vf.hasGrown(g)?xs.getCurrent(g).bind(H=>Ze(pu.getSlotNames(H),K=>pu.isShowing(H,K))):L.none()),X7=Kr("FixSizeEvent"),G7=Kr("AutoSizeEvent"),fJ=o=>({uid:o.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:pr([Ga.config({}),Mo.config({}),Vf.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:c=>{xs.getCurrent(c).each(pu.hideAllSlots),ks(c,G7)},onGrown:c=>{ks(c,G7)},onStartGrow:c=>{vo(c,X7,{width:za(c.element,"width").getOr("")})},onStartShrink:c=>{vo(c,X7,{width:Si(c.element)+"px"})}}),Uo.config({}),xs.config({find:c=>{const g=Uo.contents(c);return Ce(g)}})])}],behaviours:pr([Ff.childAt(0),Jo("sidebar-sliding-events",[qn(X7,(c,g)=>{Po(c.element,"width",g.event.width)}),qn(G7,(c,g)=>{Zo(c.element,"width")})])])});var cF=Object.freeze({__proto__:null,block:(o,c,g,S)=>{Dr(o.element,"aria-busy",!0);const _=c.getRoot(o).getOr(o),H=pr([yo.config({mode:"special",onTab:()=>L.some(!0),onShiftTab:()=>L.some(!0)}),Mo.config({})]),K=S(_,H),ve=_.getSystem().build(K);Uo.append(_,nf(ve)),ve.hasConfigured(yo)&&c.focus&&yo.focusIn(ve),g.isBlocked()||c.onBlock(o),g.blockWith(()=>Uo.remove(_,ve))},unblock:(o,c,g)=>{sa(o.element,"aria-busy"),g.isBlocked()&&c.onUnblock(o),g.clear()},isBlocked:(o,c,g)=>g.isBlocked()}),hJ=[Di("getRoot",L.none),Wi("focus",!0),Rs("onBlock"),Rs("onUnblock")],bd=Object.freeze({__proto__:null,init:()=>{const o=cE(),c=g=>{o.set({destroy:g})};return Cu({readState:o.isSet,blockWith:c,clear:o.clear,isBlocked:o.isSet})}});const Xm=dl({fields:hJ,name:"blocking",apis:cF,state:bd}),uF=o=>(c,g)=>({dom:{tag:"div",attributes:{"aria-label":o.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Ov('
    ')}]}),j7=o=>xs.getCurrent(o).each(c=>cu(c.element,!0)),mJ=(o,c)=>{const g="tabindex",S=`data-mce-${g}`;L.from(o.iframeElement).map(zt.fromDom).each(_=>{c?(Ri(_,g).each(H=>Dr(_,S,H)),Dr(_,g,-1)):(sa(_,g),Ri(_,S).each(H=>{Dr(_,g,H),sa(_,S)}))})},F3=(o,c,g,S)=>{const _=c.element;if(mJ(o,g),g)Xm.block(c,uF(S)),Zo(_,"display"),sa(_,"aria-hidden"),o.hasFocus()&&j7(c);else{const H=xs.getCurrent(c).exists(K=>Wy(K.element));Xm.unblock(c),Po(_,"display","none"),Dr(_,"aria-hidden","true"),H&&o.focus()}},gJ=o=>({uid:o.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:pr([Uo.config({}),Xm.config({focus:!1}),xs.config({find:c=>Ce(c.components())})]),components:[]}),$4=o=>o.type==="focusin",pJ=o=>$4(o)?(o.composed?Ce(o.composedPath()):L.from(o.target)).map(zt.fromDom).filter(St).exists(g=>Ji(g,"mce-pastebin")):!1,L4=(o,c,g)=>{const S=X(!1),_=gs(),H=ve=>{S.get()&&!pJ(ve)&&(ve.preventDefault(),j7(c()),o.editorManager.setActive(o))};o.inline||o.on("PreInit",()=>{o.dom.bind(o.getWin(),"focusin",H),o.on("BeforeExecCommand",ve=>{ve.command.toLowerCase()==="mcefocus"&&ve.value!==!0&&H(ve)})});const K=ve=>{ve!==S.get()&&(S.set(ve),F3(o,c(),ve,g.providers),BI(o,ve))};o.on("ProgressState",ve=>{if(_.on(clearTimeout),T(ve.time)){const Ae=_b.setEditorTimeout(o,()=>K(ve.state),ve.time);_.set(Ae)}else K(ve.state),_.clear()})},vJ=(o,c)=>ke(o,(_,H)=>c(H,_.len).fold(F(_),ve=>({len:ve.finish,list:_.list.concat([ve])})),{len:0,list:[]}).list,q7=(o,c,g)=>({within:o,extra:c,withinWidth:g}),Od=(o,c,g)=>{const S=vJ(o,(ve,Ae)=>{const Ne=g(ve);return L.some({element:ve,start:Ae,finish:Ae+Ne,width:Ne})}),_=xe(S,ve=>ve.finish<=c),H=Le(_,(ve,Ae)=>ve+Ae.width,0),K=S.slice(_.length);return{within:_,extra:K,withinWidth:H}},I4=o=>ne(o,c=>c.element),N4=(o,c,g)=>{const S=I4(o.concat(c));return q7(S,[],g)},fF=(o,c,g,S)=>{const _=I4(o).concat([g]);return q7(_,I4(c),S)},dF=(o,c,g)=>q7(I4(o),[],g),yJ=(o,c,g)=>{const S=Od(c,o,g);return S.extra.length===0?L.some(S):L.none()},hF=(o,c,g,S)=>{const _=yJ(o,c,g).getOrThunk(()=>Od(c,o-g(S),g)),H=_.within,K=_.extra,ve=_.withinWidth;return K.length===1&&K[0].width<=g(S)?N4(H,K,ve):K.length>=1?fF(H,K,S,ve):dF(H,K,ve)},mF=(o,c)=>{const g=ne(c,S=>nf(S));Ym.setGroups(o,g)},bJ=o=>Xe(o,c=>ad(c.element).bind(g=>c.getSystem().getByDom(g).toOptional())),gF=(o,c,g)=>{const S=c.builtGroups.get();if(S.length===0)return;const _=Nm(o,c,"primary"),H=Mi.getCoupled(o,"overflowGroup");Po(_.element,"visibility","hidden");const K=S.concat([H]),ve=bJ(K);g([]),mF(_,K);const Ae=Si(_.element),Ne=hF(Ae,c.builtGroups.get(),Ue=>Si(Ue.element),H);Ne.extra.length===0?(Uo.remove(_,H),g([])):(mF(_,Ne.within),g(Ne.extra)),Zo(_.element,"visibility"),li(_.element),ve.each(Mo.focus)},pF=F([el("splitToolbarBehaviours",[Mi]),ei("builtGroups",()=>X([]))]),OJ=F([$g(["overflowToggledClass"]),Jf("getOverflowBounds"),er("lazySink"),ei("overflowGroups",()=>X([])),Rs("onOpened"),Rs("onClosed")].concat(pF())),xJ=F([ic({factory:Ym,schema:I2(),name:"primary"}),cd({schema:I2(),name:"overflow"}),cd({name:"overflow-button"}),cd({name:"overflow-group"})]),K7=F((o,c)=>{QS(o,Math.floor(c))}),vF=F([$g(["toggledClass"]),er("lazySink"),qu("fetch"),Jf("getBounds"),wc("fireDismissalEventInstead",[Mn("event",Ag())]),Ng(),Rs("onToggled")]),yF=F([cd({name:"button",overrides:o=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:pr([as.config({toggleClass:o.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:o.onToggled})])})}),cd({factory:Ym,schema:I2(),name:"toolbar",overrides:o=>({toolbarBehaviours:pr([yo.config({mode:"cyclic",onEscape:c=>(ka(c,o,"button").each(Mo.focus),L.none())})])})})]),V3=gs(),SJ=(o,c)=>{V3.set(!0),J7(o,c),V3.clear()},J7=(o,c)=>{const g=Mi.getCoupled(o,"toolbarSandbox");As.isOpen(g)?As.close(g):As.open(g,c.toolbar())},B4=(o,c,g,S)=>{const _=g.getBounds.map(K=>K()),H=g.lazySink(o).getOrDie();ac.positionWithinBounds(H,c,{anchor:{type:"hotspot",hotspot:o,layouts:S,overrides:{maxWidthFunction:K7()}}},_)},eR=(o,c,g,S,_)=>{Ym.setGroups(c,_),B4(o,c,g,S),as.on(o)},bF=(o,c,g)=>{const S=rv(),_=(K,ve)=>{const Ae=V3.get().getOr(!1);g.fetch().get(Ne=>{eR(o,ve,g,c.layouts,Ne),S.link(o.element),Ae||yo.focusIn(ve)})},H=()=>{as.off(o),V3.get().getOr(!1)||Mo.focus(o),S.unlink(o.element)};return{dom:{tag:"div",attributes:{id:S.id}},behaviours:pr([yo.config({mode:"special",onEscape:K=>(As.close(K),L.some(!0))}),As.config({onOpen:_,onClose:H,isPartOf:(K,ve,Ae)=>Am(ve,Ae)||Am(o,Ae),getAttachPoint:()=>g.lazySink(o).getOrDie()}),lu.config({channels:{...cb({isExtraPart:Y,...g.fireDismissalEventInstead.map(K=>({fireEventInstead:{event:K.event}})).getOr({})}),...W0({doReposition:()=>{As.getState(Mi.getCoupled(o,"toolbarSandbox")).each(K=>{B4(o,K,g,c.layouts)})}})}})])}},w1=lc({name:"FloatingToolbarButton",factory:(o,c,g,S)=>({...Dl.sketch({...S.button(),action:_=>{J7(_,S)},buttonBehaviours:If.augment({dump:S.button().buttonBehaviours},[Mi.config({others:{toolbarSandbox:_=>bF(_,g,o)}})])}),apis:{setGroups:(_,H)=>{As.getState(Mi.getCoupled(_,"toolbarSandbox")).each(K=>{eR(_,K,o,g.layouts,H)})},reposition:_=>{As.getState(Mi.getCoupled(_,"toolbarSandbox")).each(H=>{B4(_,H,o,g.layouts)})},toggle:_=>{J7(_,S)},toggleWithoutFocusing:_=>{SJ(_,S)},getToolbar:_=>As.getState(Mi.getCoupled(_,"toolbarSandbox")),isOpen:_=>As.isOpen(Mi.getCoupled(_,"toolbarSandbox"))}}),configFields:vF(),partFields:yF(),apis:{setGroups:(o,c,g)=>{o.setGroups(c,g)},reposition:(o,c)=>{o.reposition(c)},toggle:(o,c)=>{o.toggle(c)},toggleWithoutFocusing:(o,c)=>{o.toggleWithoutFocusing(c)},getToolbar:(o,c)=>o.getToolbar(c),isOpen:(o,c)=>o.isOpen(c)}}),wJ=F([er("items"),$g(["itemSelector"]),el("tgroupBehaviours",[yo])]),OF=F([yb({name:"items",unit:"item"})]),TJ=(o,c,g,S)=>({uid:o.uid,dom:o.dom,components:c,behaviours:Ni(o.tgroupBehaviours,[yo.config({mode:"flow",selector:o.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}),Q4=lc({name:"ToolbarGroup",configFields:wJ(),partFields:OF(),factory:TJ}),xF=o=>ne(o,c=>nf(c)),SF=(o,c,g)=>{gF(o,g,S=>{g.overflowGroups.set(S),c.getOpt(o).each(_=>{w1.setGroups(_,xF(S))})})},CJ=(o,c,g,S)=>{const _=ia(w1.sketch({fetch:()=>$c.nu(H=>{H(xF(o.overflowGroups.get()))}),layouts:{onLtr:()=>[Gl,ul],onRtl:()=>[ul,Gl],onBottomLtr:()=>[sc,Yc],onBottomRtl:()=>[Yc,sc]},getBounds:g.getOverflowBounds,lazySink:o.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:o.markers.overflowToggledClass},parts:{button:S["overflow-button"](),toolbar:S.overflow()},onToggled:(H,K)=>o[K?"onOpened":"onClosed"](H)}));return{uid:o.uid,dom:o.dom,components:c,behaviours:Ni(o.splitToolbarBehaviours,[Mi.config({others:{overflowGroup:()=>Q4.sketch({...S["overflow-group"](),items:[_.asSpec()]})}})]),apis:{setGroups:(H,K)=>{o.builtGroups.set(ne(K,H.getSystem().build)),SF(H,_,o)},refresh:H=>SF(H,_,o),toggle:H=>{_.getOpt(H).each(K=>{w1.toggle(K)})},toggleWithoutFocusing:H=>{_.getOpt(H).each(w1.toggleWithoutFocusing)},isOpen:H=>_.getOpt(H).map(w1.isOpen).getOr(!1),reposition:H=>{_.getOpt(H).each(K=>{w1.reposition(K)})},getOverflow:H=>_.getOpt(H).bind(w1.getToolbar)},domModification:{attributes:{role:"group"}}}},wF=lc({name:"SplitFloatingToolbar",configFields:OJ(),partFields:xJ(),factory:CJ,apis:{setGroups:(o,c,g)=>{o.setGroups(c,g)},refresh:(o,c)=>{o.refresh(c)},reposition:(o,c)=>{o.reposition(c)},toggle:(o,c)=>{o.toggle(c)},toggleWithoutFocusing:(o,c)=>{o.toggle(c)},isOpen:(o,c)=>o.isOpen(c),getOverflow:(o,c)=>o.getOverflow(c)}}),kJ=F([$g(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Rs("onOpened"),Rs("onClosed")].concat(pF())),AJ=F([ic({factory:Ym,schema:I2(),name:"primary"}),ic({factory:Ym,schema:I2(),name:"overflow",overrides:o=>({toolbarBehaviours:pr([Vf.config({dimension:{property:"height"},closedClass:o.markers.closedClass,openClass:o.markers.openClass,shrinkingClass:o.markers.shrinkingClass,growingClass:o.markers.growingClass,onShrunk:c=>{ka(c,o,"overflow-button").each(g=>{as.off(g),Mo.focus(g)}),o.onClosed(c)},onGrown:c=>{yo.focusIn(c),o.onOpened(c)},onStartGrow:c=>{ka(c,o,"overflow-button").each(as.on)}}),yo.config({mode:"acyclic",onEscape:c=>(ka(c,o,"overflow-button").each(Mo.focus),L.some(!0))})])})}),cd({name:"overflow-button",overrides:o=>({buttonBehaviours:pr([as.config({toggleClass:o.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])})}),cd({name:"overflow-group"})]),PJ=(o,c)=>ka(o,c,"overflow").map(Vf.hasGrown).getOr(!1),TF=(o,c)=>{ka(o,c,"overflow-button").bind(()=>ka(o,c,"overflow")).each(g=>{F4(o,c),Vf.toggleGrow(g)})},F4=(o,c)=>{ka(o,c,"overflow").each(g=>{gF(o,c,S=>{const _=ne(S,H=>nf(H));Ym.setGroups(g,_)}),ka(o,c,"overflow-button").each(S=>{Vf.hasGrown(g)&&as.on(S)}),Vf.refresh(g)})},MJ=(o,c,g,S)=>{const _="alloy.toolbar.toggle",H=(K,ve)=>{const Ae=ne(ve,K.getSystem().build);o.builtGroups.set(Ae)};return{uid:o.uid,dom:o.dom,components:c,behaviours:Ni(o.splitToolbarBehaviours,[Mi.config({others:{overflowGroup:K=>Q4.sketch({...S["overflow-group"](),items:[Dl.sketch({...S["overflow-button"](),action:ve=>{ks(K,_)}})]})}}),Jo("toolbar-toggle-events",[qn(_,K=>{TF(K,o)})])]),apis:{setGroups:(K,ve)=>{H(K,ve),F4(K,o)},refresh:K=>F4(K,o),toggle:K=>TF(K,o),isOpen:K=>PJ(K,o)},domModification:{attributes:{role:"group"}}}},tR=lc({name:"SplitSlidingToolbar",configFields:kJ(),partFields:AJ(),factory:MJ,apis:{setGroups:(o,c,g)=>{o.setGroups(c,g)},refresh:(o,c)=>{o.refresh(c)},toggle:(o,c)=>{o.toggle(c)},isOpen:(o,c)=>o.isOpen(c)}}),V4=o=>{const c=o.title.fold(()=>({}),g=>({attributes:{title:g}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...c},components:[Q4.parts.items({})],items:o.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:pr([Ga.config({}),Mo.config({})])}},z4=o=>Q4.sketch(V4(o)),z3=(o,c)=>{const g=Ca(S=>{const _=ne(o.initGroups,z4);Ym.setGroups(S,_)});return pr([tl.toolbarButton(o.providers.isDisabled),gl(),yo.config({mode:c,onEscape:o.onEscape,selector:".tox-toolbar__group"}),Jo("toolbar-events",[g])])},CF=o=>{const c=o.cyclicKeying?"cyclic":"acyclic";return{uid:o.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":V4({title:L.none(),items:[]}),"overflow-button":Mq({name:"more",icon:L.some("more-drawer"),enabled:!0,tooltip:L.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:L.none(),borderless:!1},L.none(),o.providers)},splitToolbarBehaviours:z3(o,c)}},kF=o=>{const c=CF(o),g=4,S=wF.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return wF.sketch({...c,lazySink:o.getSink,getOverflowBounds:()=>{const _=o.moreDrawerData.lazyHeader().element,H=wu(_),K=pn(_),ve=wu(K),Ae=Math.max(K.dom.scrollHeight,ve.height);return Ja(H.x+g,ve.y,H.width-g*2,Ae)},parts:{...c.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:o.attributes}}},components:[S],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:_=>o.onToggled(_,!0),onClosed:_=>o.onToggled(_,!1)})},EJ=o=>{const c=tR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),g=tR.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),S=CF(o);return tR.sketch({...S,components:[c,g],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:_=>{_.getSystem().broadcastOn([S1()],{type:"opened"}),o.onToggled(_,!0)},onClosed:_=>{_.getSystem().broadcastOn([S1()],{type:"closed"}),o.onToggled(_,!1)}})},Z4=o=>{const c=o.cyclicKeying?"cyclic":"acyclic";return Ym.sketch({uid:o.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(o.type===Qf.scrolling?["tox-toolbar--scrolling"]:[])},components:[Ym.parts.groups({})],toolbarBehaviours:z3(o,c)})},_J=[tp,hd,ll("tooltip"),Hc("buttonType","secondary",["primary","secondary"]),Wi("borderless",!1),qu("onAction")],RJ=[..._J,wv,Rf("type",["button"])],DJ=[..._J,Wi("active",!1),Rf("type",["togglebutton"])],H4={button:RJ,togglebutton:DJ},$J=[Rf("type",["group"]),Cc("buttons",[],Os("type",H4))],U4=Os("type",{...H4,group:$J}),AF=uo([Cc("buttons",[],U4),qu("onShow"),qu("onHide")]),PF=o=>da("view",AF,o),nR=(o,c)=>{var g,S;const _=o.type==="togglebutton",H=o.icon.map(kn=>y1(kn,c.icons)).map(ia),ve=(()=>kn=>{const Zn=Or=>{H.map(Mr=>Mr.getOpt(kn).each(is=>{Uo.set(is,[y1(Or,c.icons)])}))},mr=Or=>{const Mr=kn.element;Or?(ki(Mr,"tox-button--enabled"),Dr(Mr,"aria-pressed",!0)):(Xa(Mr,"tox-button--enabled"),sa(Mr,"aria-pressed"))},Gn=()=>Ji(kn.element,"tox-button--enabled");if(_)return o.onAction({setIcon:Zn,setActive:mr,isActive:Gn});if(o.type==="button")return o.onAction({setIcon:Zn})})(),Ae={...o,name:_?o.text.getOr(o.icon.getOr("")):(g=o.text)!==null&&g!==void 0?g:o.icon.getOr(""),primary:o.buttonType==="primary",buttonType:L.from(o.buttonType),tooltip:o.tooltip,icon:o.icon,enabled:!0,borderless:o.borderless},Ne=g7((S=o.buttonType)!==null&&S!==void 0?S:"secondary"),Ue=_?o.text.map(c.translate):L.some(c.translate(o.text)),Je=Ue.map(yi),st=Ae.tooltip.or(Ue).map(kn=>({"aria-label":c.translate(kn),title:c.translate(kn)})).getOr({}),ht=H.map(kn=>kn.asSpec()),At=p2([ht,Je]),qt=o.icon.isSome()&&Je.isSome(),Dn={tag:"button",classes:Ne.concat(...o.icon.isSome()&&!qt?["tox-button--icon"]:[]).concat(...qt?["tox-button--icon-and-text"]:[]).concat(...o.borderless?["tox-button--naked"]:[]).concat(...o.type==="togglebutton"&&o.active?["tox-button--enabled"]:[]),attributes:st},mn=[],on=y4(Ae,L.some(ve),mn,Dn,At,c);return Dl.sketch(on)},MF=(o,c)=>nR(o,c),EF=(o,c)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:ne(o.buttons,g=>MF(g,c))}),Yb=jf().deviceType,_F=Yb.isPhone(),LJ=Yb.isTablet(),IJ=o=>{let c=!1;const g=ne(o.buttons,S=>S.type==="group"?(c=!0,EF(S,o.providers)):MF(S,o.providers));return{uid:o.uid,dom:{tag:"div",classes:[c?"tox-view__toolbar":"tox-view__header",..._F||LJ?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:pr([Mo.config({}),yo.config({mode:"flow",selector:"button, .tox-button",focusInside:j.OnEnterOrSpaceMode})]),components:c?g:[Um.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),Um.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:g})]}},NJ=o=>({uid:o.uid,dom:{tag:"div",classes:["tox-view__pane"]}}),rR=(o,c,g,S)=>{const _={getPane:H=>xl.getPart(H,o,"pane"),getOnShow:H=>o.viewConfig.onShow,getOnHide:H=>o.viewConfig.onHide};return{uid:o.uid,dom:o.dom,components:c,apis:_}};var Q2=lc({name:"silver.View",configFields:[er("viewConfig")],partFields:[fu({factory:{sketch:IJ},schema:[er("buttons"),er("providers")],name:"header"}),fu({factory:{sketch:NJ},schema:[],name:"pane"})],factory:rR,apis:{getPane:(o,c)=>o.getPane(c),getOnShow:(o,c)=>o.getOnShow(c),getOnHide:(o,c)=>o.getOnHide(c)}});const BJ=(o,c,g)=>Xt(c,(S,_)=>{const H=aa(PF(S));return o.slot(_,Q2.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:H,components:[...H.buttons.length>0?[Q2.parts.header({buttons:H.buttons,providers:g})]:[],Q2.parts.pane({})]}))}),RF=(o,c)=>pu.sketch(g=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:BJ(g,o,c),slotBehaviours:KT.unnamedEvents([Ca(S=>pu.hideAllSlots(S))])})),oR=o=>Ze(pu.getSlotNames(o),c=>pu.isShowing(o,c)),W4=o=>{const c=o.element;Po(c,"display","none"),Dr(c,"aria-hidden","true")},sR=o=>{const c=o.element;Zo(c,"display"),sa(c,"aria-hidden")},QJ=o=>({getContainer:F(o)}),DF=(o,c,g)=>{pu.getSlot(o,c).each(S=>{Q2.getPane(S).each(_=>{g(S)(QJ(_.element.dom))})})},$F=(o,c)=>DF(o,c,Q2.getOnShow),FJ=(o,c)=>DF(o,c,Q2.getOnHide);var Y4=_u({factory:(o,c)=>{const H={setViews:(K,ve)=>{Uo.set(K,[RF(ve,c.backstage.shared.providers)])},whichView:K=>xs.getCurrent(K).bind(oR),toggleView:(K,ve,Ae,Ne)=>xs.getCurrent(K).exists(Ue=>{const Je=oR(Ue),st=Je.exists(At=>Ne===At),ht=pu.getSlot(Ue,Ne).isSome();return ht&&(pu.hideAllSlots(Ue),st?(W4(K),ve()):(Ae(),sR(K),pu.showSlot(Ue,Ne),$F(Ue,Ne)),Je.each(At=>FJ(Ue,At))),ht})};return{uid:o.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:pr([Uo.config({}),xs.config({find:K=>{const ve=Uo.contents(K);return Ce(ve)}})]),apis:H}},name:"silver.ViewWrapper",configFields:[er("backstage")],apis:{setViews:(o,c,g)=>o.setViews(c,g),toggleView:(o,c,g,S,_)=>o.toggleView(c,g,S,_),whichView:(o,c)=>o.whichView(c)}});const LF=(o,c,g)=>{let S=!1;const _={getSocket:H=>xl.getPart(H,o,"socket"),setSidebar:(H,K,ve)=>{xl.getPart(H,o,"sidebar").each(Ae=>cJ(Ae,K,ve))},toggleSidebar:(H,K)=>{xl.getPart(H,o,"sidebar").each(ve=>uJ(ve,K))},whichSidebar:H=>xl.getPart(H,o,"sidebar").bind(lF).getOrNull(),getHeader:H=>xl.getPart(H,o,"header"),getToolbar:H=>xl.getPart(H,o,"toolbar"),setToolbar:(H,K)=>{xl.getPart(H,o,"toolbar").each(ve=>{const Ae=ne(K,z4);ve.getApis().setGroups(ve,Ae)})},setToolbars:(H,K)=>{xl.getPart(H,o,"multiple-toolbar").each(ve=>{const Ae=ne(K,Ne=>ne(Ne,z4));k4.setItems(ve,Ae)})},refreshToolbar:H=>{xl.getPart(H,o,"toolbar").each(ve=>ve.getApis().refresh(ve))},toggleToolbarDrawer:H=>{xl.getPart(H,o,"toolbar").each(K=>{Sn(K.getApis().toggle,ve=>ve(K))})},toggleToolbarDrawerWithoutFocusing:H=>{xl.getPart(H,o,"toolbar").each(K=>{Sn(K.getApis().toggleWithoutFocusing,ve=>ve(K))})},isToolbarDrawerToggled:H=>xl.getPart(H,o,"toolbar").bind(K=>L.from(K.getApis().isOpen).map(ve=>ve(K))).getOr(!1),getThrobber:H=>xl.getPart(H,o,"throbber"),focusToolbar:H=>{xl.getPart(H,o,"toolbar").orThunk(()=>xl.getPart(H,o,"multiple-toolbar")).each(ve=>{yo.focusIn(ve)})},setMenubar:(H,K)=>{xl.getPart(H,o,"menubar").each(ve=>{U7.setMenus(ve,K)})},focusMenubar:H=>{xl.getPart(H,o,"menubar").each(K=>{U7.focus(K)})},setViews:(H,K)=>{xl.getPart(H,o,"viewWrapper").each(ve=>{Y4.setViews(ve,K)})},toggleView:(H,K)=>xl.getPart(H,o,"viewWrapper").exists(ve=>Y4.toggleView(ve,()=>_.showMainView(H),()=>_.hideMainView(H),K)),whichView:H=>xl.getPart(H,o,"viewWrapper").bind(Y4.whichView).getOrNull(),hideMainView:H=>{S=_.isToolbarDrawerToggled(H),S&&_.toggleToolbarDrawer(H),xl.getPart(H,o,"editorContainer").each(K=>{const ve=K.element;Po(ve,"display","none"),Dr(ve,"aria-hidden","true")})},showMainView:H=>{S&&_.toggleToolbarDrawer(H),xl.getPart(H,o,"editorContainer").each(K=>{const ve=K.element;Zo(ve,"display"),sa(ve,"aria-hidden")})}};return{uid:o.uid,dom:o.dom,components:c,apis:_,behaviours:o.behaviours}},VJ=dp.optional({factory:U7,name:"menubar",schema:[er("backstage")]}),zJ=o=>o.type===Qf.sliding?EJ:o.type===Qf.floating?kF:Z4,aR=dp.optional({factory:{sketch:o=>k4.sketch({uid:o.uid,dom:o.dom,listBehaviours:pr([yo.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>Z4({type:o.type,uid:Kr("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:o.providers,onEscape:()=>(o.onEscape(),L.some(!0))}),setupItem:(c,g,S,_)=>{Ym.setGroups(g,S)},shell:!0})},name:"multiple-toolbar",schema:[er("dom"),er("onEscape")]}),ZJ=dp.optional({factory:{sketch:o=>{const c=zJ(o),g={type:o.type,uid:o.uid,onEscape:()=>(o.onEscape(),L.some(!0)),onToggled:(S,_)=>o.onToolbarToggled(_),cyclicKeying:!1,initGroups:[],getSink:o.getSink,providers:o.providers,moreDrawerData:{lazyToolbar:o.lazyToolbar,lazyMoreButton:o.lazyMoreButton,lazyHeader:o.lazyHeader},attributes:o.attributes};return c(g)}},name:"toolbar",schema:[er("dom"),er("onEscape"),er("getSink")]}),HJ=dp.optional({factory:{sketch:oF},name:"header",schema:[er("dom")]}),IF=dp.optional({factory:{sketch:nJ},name:"promotion",schema:[er("dom")]}),UJ=dp.optional({name:"socket",schema:[er("dom")]}),NF=dp.optional({factory:{sketch:fJ},name:"sidebar",schema:[er("dom")]}),WJ=dp.optional({factory:{sketch:gJ},name:"throbber",schema:[er("dom")]}),BF=dp.optional({factory:Y4,name:"viewWrapper",schema:[er("backstage")]}),YJ=o=>({uid:o.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:o.components}),XJ=dp.optional({factory:{sketch:YJ},name:"editorContainer",schema:[]});var $a=lc({name:"OuterContainer",factory:LF,configFields:[er("dom"),er("behaviours")],partFields:[HJ,VJ,ZJ,aR,UJ,NF,IF,WJ,BF,XJ],apis:{getSocket:(o,c)=>o.getSocket(c),setSidebar:(o,c,g,S)=>{o.setSidebar(c,g,S)},toggleSidebar:(o,c,g)=>{o.toggleSidebar(c,g)},whichSidebar:(o,c)=>o.whichSidebar(c),getHeader:(o,c)=>o.getHeader(c),getToolbar:(o,c)=>o.getToolbar(c),setToolbar:(o,c,g)=>{o.setToolbar(c,g)},setToolbars:(o,c,g)=>{o.setToolbars(c,g)},refreshToolbar:(o,c)=>o.refreshToolbar(c),toggleToolbarDrawer:(o,c)=>{o.toggleToolbarDrawer(c)},toggleToolbarDrawerWithoutFocusing:(o,c)=>{o.toggleToolbarDrawerWithoutFocusing(c)},isToolbarDrawerToggled:(o,c)=>o.isToolbarDrawerToggled(c),getThrobber:(o,c)=>o.getThrobber(c),setMenubar:(o,c,g)=>{o.setMenubar(c,g)},focusMenubar:(o,c)=>{o.focusMenubar(c)},focusToolbar:(o,c)=>{o.focusToolbar(c)},setViews:(o,c,g)=>{o.setViews(c,g)},toggleView:(o,c,g)=>o.toggleView(c,g),whichView:(o,c)=>o.whichView(c)}});const QF="file edit view insert format tools table help",FF={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template inserttemplate codesample inserttable accordion | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},GJ=(o,c,g)=>{const S=j_(g).split(/[ ,]/);return{text:o.title,getItems:()=>re(o.items,_=>{const H=_.toLowerCase();return H.trim().length===0?[]:Te(S,K=>K===H)?[]:H==="separator"||H==="|"?[{type:"separator"}]:c.menuItems[H]?[c.menuItems[H]]:[]})}},iR=o=>o.split(" "),X4=(o,c)=>{const g={...FF,...c.menus},S=ct(c.menus).length>0,_=c.menubar===void 0||c.menubar===!0?iR(QF):iR(c.menubar===!1?"":c.menubar),H=xe(_,ve=>{const Ae=vn(FF,ve);return S?Ae||Bt(c.menus,ve).exists(Ne=>vn(Ne,"items")):Ae}),K=ne(H,ve=>{const Ae=g[ve];return GJ({title:Ae.title,items:iR(Ae.items)},c,o)});return xe(K,ve=>{const Ae=Ne=>m(Ne)||Ne.type!=="separator";return ve.getItems().length>0&&Te(ve.getItems(),Ae)})},lR=o=>{const c=()=>{o._skinLoaded=!0,fX(o)};return()=>{o.initialized?c():o.on("init",c)}},jJ=(o,c)=>()=>W8(o,{message:c}),VF=(o,c,g)=>(o.on("remove",()=>g.unload(c)),g.load(c)),cR=(o,c,g,S)=>(o.on("remove",()=>S.unloadRawCss(c)),S.loadRawCss(c,g)),qJ=async(o,c)=>{const S="ui/"+o8(o).getOr("default")+"/skin.css",_=tinymce.Resource.get(S);if(m(_))return Promise.resolve(cR(o,S,_,o.ui.styleSheetLoader));{const H=c+"/skin.min.css";return VF(o,H,o.ui.styleSheetLoader)}},KJ=async(o,c)=>{if(Wa(zt.fromDom(o.getElement()))){const S=c+"/skin.shadowdom.css",_=tinymce.Resource.get(S);if(m(_))return cR(o,S,_,$b.DOM.styleSheetLoader),Promise.resolve();{const H=c+"/skin.shadowdom.min.css";return VF(o,H,$b.DOM.styleSheetLoader)}}},JJ=async(o,c)=>{o8(c).fold(()=>{const S=r5(c);S&&c.contentCSS.push(S+(o?"/content.inline":"/content")+".min.css")},S=>{const _="ui/"+S+(o?"/content.inline":"/content")+".css",H=tinymce.Resource.get(_);if(m(H))cR(c,_,H,c.ui.styleSheetLoader);else{const K=r5(c);K&&c.contentCSS.push(K+(o?"/content.inline":"/content")+".min.css")}});const g=r5(c);if(!r8(c)&&m(g))return Promise.all([qJ(c,g),KJ(c,g)]).then()},zF=(o,c)=>JJ(o,c).then(lR(c),jJ(c,"Skin could not be loaded")),eee=Q(zF,!1),tee=Q(zF,!0),Xb=(o,c,g)=>o.translate([`${c} {0}`,o.translate(g)]),G4=(o,c,g)=>{const S=(ve,Ae,Ne,Ue)=>{const Je=c.shared.providers.translate(ve.title);if(ve.type==="separator")return L.some({type:"separator",text:Je});if(ve.type==="submenu"){const st=re(ve.getStyleItems(),ht=>_(ht,Ae,Ue));return Ae===0&&st.length<=0?L.none():L.some({type:"nestedmenuitem",text:Je,enabled:st.length>0,getSubmenuItems:()=>re(ve.getStyleItems(),ht=>_(ht,Ae,Ue))})}else return L.some({type:"togglemenuitem",text:Je,icon:ve.icon,active:ve.isSelected(Ue),enabled:!Ne,onAction:g.onAction(ve),...ve.getStylePreview().fold(()=>({}),st=>({meta:{style:st}}))})},_=(ve,Ae,Ne)=>{const Ue=ve.type==="formatter"&&g.isInvalid(ve);return Ae===0?Ue?[]:S(ve,Ae,!1,Ne).toArray():S(ve,Ae,Ue,Ne).toArray()},H=ve=>{const Ae=g.getCurrentValue(),Ne=g.shouldHide?0:1;return re(ve,Ue=>_(Ue,Ne,Ae))};return{validateItems:H,getFetch:(ve,Ae)=>(Ne,Ue)=>{const Je=Ae(),st=H(Je),ht=M2(st,Hm.CLOSE_ON_EXECUTE,ve,{isHorizontalMenu:!1,search:L.none()});Ue(ht)}}},T1=(o,c,g)=>{const S=g.dataset,_=S.type==="basic"?()=>ne(S.data,H=>S7(H,g.isSelectedFor,g.getPreviewFor)):S.getData;return{items:G4(o,c,g),getStyleItems:_}},F2=(o,c,g,S,_)=>{const{items:H,getStyleItems:K}=T1(o,c,g),ve=Ne=>({getComponent:F(Ne),setTooltip:Ue=>{const Je=c.shared.providers.translate(Ue);yc(Ne.element,{"aria-label":Je,title:Je})}}),Ae=Ne=>{const Ue=Je=>Ne.setTooltip(Xb(o,S,Je.value));return o.on(_,Ue),r3(Vh(o,"NodeChange",Je=>{const st=Je.getComponent();g.updateText(st),Co.set(Je.getComponent(),!o.selection.isEditable())})(Ne),()=>o.off(_,Ue))};return c4({text:g.icon.isSome()?L.none():g.text,icon:g.icon,tooltip:L.from(g.tooltip),role:L.none(),fetch:H.getFetch(c,K),onSetup:Ae,getApi:ve,columns:1,presets:"normal",classes:g.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",c.shared)},C1=o=>ne(o,c=>{let g=c,S=c;const _=c.split("=");return _.length>1&&(g=_[0],S=_[1]),{title:g,format:S}}),ZF=o=>({type:"basic",data:o});var V2;(function(o){o[o.SemiColon=0]="SemiColon",o[o.Space=1]="Space"})(V2||(V2={}));const nee=(o,c)=>c===V2.SemiColon?o.replace(/;$/,"").split(";"):o.split(" "),uR=(o,c,g)=>{const S=o.options.get(c);return{type:"basic",data:C1(nee(S,g))}},fR="Align",HF="left",dR=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],UF=o=>{const c=()=>Ze(dR,ve=>o.formatter.match(ve.format)),g=ve=>()=>o.formatter.match(ve),S=ve=>L.none,_=ve=>{const Ne=c().fold(F(HF),Ue=>Ue.title.toLowerCase());vo(ve,b1,{icon:`align-${Ne}`}),gX(o,{value:Ne})},H=ZF(dR),K=ve=>()=>Ze(dR,Ae=>Ae.format===ve.format).each(Ae=>o.execCommand(Ae.command));return{tooltip:Xb(o,fR,HF),text:L.none(),icon:L.some("align-left"),isSelectedFor:g,getCurrentValue:L.none,getPreviewFor:S,onAction:K,updateText:_,dataset:H,shouldHide:!1,isInvalid:ve=>!o.formatter.canApply(ve.format)}},WF=(o,c)=>F2(o,c,UF(o),fR,"AlignTextUpdate"),ree=(o,c)=>{const g=T1(o,c,UF(o));o.ui.registry.addNestedMenuItem("align",{text:c.shared.providers.translate(fR),onSetup:gu(o),getSubmenuItems:()=>g.items.validateItems(g.getStyleItems())})},YF=(o,c)=>{const g=c(),S=ne(g,_=>_.format);return L.from(o.formatter.closest(S)).bind(_=>Ze(g,H=>H.format===_)).orThunk(()=>it(o.formatter.match("p"),{title:"Paragraph",format:"p"}))},Z3="Blocks",hR="Paragraph",XF=o=>{const c=H=>()=>o.formatter.match(H),g=H=>()=>{const K=o.formatter.get(H);return K?L.some({tag:K.length>0&&(K[0].inline||K[0].block)||"div",styles:o.dom.parseStyle(o.formatter.getCssText(H))}):L.none()},S=H=>{const ve=YF(o,()=>_.data).fold(F(hR),Ae=>Ae.title);vo(H,rh,{text:ve}),FI(o,{value:ve})},_=uR(o,"block_formats",V2.SemiColon);return{tooltip:Xb(o,Z3,hR),text:L.some(hR),icon:L.none(),isSelectedFor:c,getCurrentValue:L.none,getPreviewFor:g,onAction:zI(o),updateText:S,dataset:_,shouldHide:!1,isInvalid:H=>!o.formatter.canApply(H.format)}},oee=(o,c)=>F2(o,c,XF(o),Z3,"BlocksTextUpdate"),see=(o,c)=>{const g=T1(o,c,XF(o));o.ui.registry.addNestedMenuItem("blocks",{text:Z3,onSetup:gu(o),getSubmenuItems:()=>g.items.validateItems(g.getStyleItems())})},mR="Fonts",gR="System Font",GF=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],pR=o=>{const c=o.split(/\s*,\s*/);return ne(c,g=>g.replace(/^['"]+|['"]+$/g,""))},vR=(o,c)=>c.length>0&&ye(c,g=>o.indexOf(g.toLowerCase())>-1),aee=(o,c)=>{if(o.indexOf("-apple-system")===0||c.length>0){const g=pR(o.toLowerCase());return vR(g,GF)||vR(g,c)}else return!1},yR=o=>{const c=()=>{const Ae=At=>At?pR(At)[0]:"",Ne=o.queryCommandValue("FontName"),Ue=ve.data,Je=Ne?Ne.toLowerCase():"",st=kL(o);return{matchOpt:Ze(Ue,At=>{const qt=At.format;return qt.toLowerCase()===Je||Ae(qt).toLowerCase()===Ae(Je).toLowerCase()}).orThunk(()=>it(aee(Je,st),{title:gR,format:Je})),font:Ne}},g=Ae=>Ne=>Ne.exists(Ue=>Ue.format===Ae),S=()=>{const{matchOpt:Ae}=c();return Ae},_=Ae=>()=>L.some({tag:"div",styles:Ae.indexOf("dings")===-1?{"font-family":Ae}:{}}),H=Ae=>()=>{o.undoManager.transact(()=>{o.focus(),o.execCommand("FontName",!1,Ae.format)})},K=Ae=>{const{matchOpt:Ne,font:Ue}=c(),Je=Ne.fold(F(Ue),st=>st.title);vo(Ae,rh,{text:Je}),VI(o,{value:Je})},ve=uR(o,"font_family_formats",V2.SemiColon);return{tooltip:Xb(o,mR,gR),text:L.some(gR),icon:L.none(),isSelectedFor:g,getCurrentValue:S,getPreviewFor:_,onAction:H,updateText:K,dataset:ve,shouldHide:!1,isInvalid:Y}},iee=(o,c)=>F2(o,c,yR(o),mR,"FontFamilyTextUpdate"),lee=(o,c)=>{const g=T1(o,c,yR(o));o.ui.registry.addNestedMenuItem("fontfamily",{text:c.shared.providers.translate(mR),onSetup:gu(o),getSubmenuItems:()=>g.items.validateItems(g.getStyleItems())})},cee={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},jF=(()=>{const o="[0-9]+",g="[eE]"+("[+-]?"+o),S="\\.",_=ve=>`(?:${ve})?`,K=`[+-]?(?:${["Infinity",o+S+_(o)+_(g),S+o+_(g),o+_(g)].join("|")})`;return new RegExp(`^(${K})(.*)$`)})(),uee=(o,c)=>Te(c,g=>Te(cee[g],S=>o===S)),H3=(o,c)=>L.from(jF.exec(o)).bind(S=>{const _=Number(S[1]),H=S[2];return uee(H,c)?L.some({value:_,unit:H}):L.none()}),fee=(o,c)=>H3(o,c).map(({value:g,unit:S})=>g+S),qF={tab:F(9),escape:F(27),enter:F(13),backspace:F(8),delete:F(46),left:F(37),up:F(38),right:F(39),down:F(40),space:F(32),home:F(36),end:F(35),pageUp:F(33),pageDown:F(34)},dee=(o,c,g)=>{let S=L.none();const _=on=>on.map(kn=>Fr.getValue(kn)).getOr(""),H=Vh(o,"NodeChange SwitchMode",on=>{const kn=on.getComponent();S=L.some(kn),g.updateInputValue(kn),Co.set(kn,!o.selection.isEditable())}),K=on=>({getComponent:F(on)}),ve=X(M),Ae=Kr("custom-number-input-events"),Ne=(on,kn,Zn)=>{const mr=_(S),Gn=g.getNewValue(mr,on),Or=mr.length-`${Gn}`.length,Mr=S.map(Gr=>Gr.element.dom.selectionStart-Or),is=S.map(Gr=>Gr.element.dom.selectionEnd-Or);g.onAction(Gn,Zn),S.each(Gr=>{Fr.setValue(Gr,Gn),kn&&(Mr.each(Io=>Gr.element.dom.selectionStart=Io),is.each(Io=>Gr.element.dom.selectionEnd=Io))})},Ue=(on,kn)=>Ne((Zn,mr)=>Zn-mr,on,kn),Je=(on,kn)=>Ne((Zn,mr)=>Zn+mr,on,kn),st=on=>dr(on.element).fold(L.none,kn=>(cu(kn),L.some(!0))),ht=on=>Wy(on.element)?(ko(on.element).each(kn=>cu(kn)),L.some(!0)):L.none(),At=(on,kn,Zn,mr)=>{const Gn=X(M),Or=c.shared.providers.translate(Zn),Mr=Kr("altExecuting"),is=Vh(o,"NodeChange SwitchMode",Io=>{Co.set(Io.getComponent(),!o.selection.isEditable())}),Gr=Io=>{Co.isDisabled(Io)||on(!0)};return Dl.sketch({dom:{tag:"button",attributes:{title:Or,"aria-label":Or},classes:mr.concat(kn)},components:[l4(kn,c.shared.providers.icons)],buttonBehaviours:pr([Co.config({}),Jo(Mr,[l1({onSetup:is,getApi:K},Gn),rp({getApi:K},Gn),qn(_s(),(Io,_o)=>{(_o.event.raw.keyCode===qF.space()||_o.event.raw.keyCode===qF.enter())&&(Co.isDisabled(Io)||on(!1))}),qn($i(),Gr),qn(ts(),Gr)])]),eventOrder:{[_s()]:[Mr,"keying"],[$i()]:[Mr,"alloy.base.behaviour"],[ts()]:[Mr,"alloy.base.behaviour"]}})},qt=ia(At(on=>Ue(!1,on),"minus","Decrease font size",[])),Dn=ia(At(on=>Je(!1,on),"plus","Increase font size",[])),mn=ia({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[Ib.sketch({inputBehaviours:pr([Co.config({}),Jo(Ae,[l1({onSetup:H,getApi:K},ve),rp({getApi:K},ve)]),Jo("input-update-display-text",[qn(rh,(on,kn)=>{Fr.setValue(on,kn.event.text)}),qn(ms(),on=>{g.onAction(Fr.getValue(on))}),qn(Yi(),on=>{g.onAction(Fr.getValue(on))})]),yo.config({mode:"special",onEnter:on=>(Ne(z,!0,!0),L.some(!0)),onEscape:st,onUp:on=>(Je(!0,!1),L.some(!0)),onDown:on=>(Ue(!0,!1),L.some(!0)),onLeft:(on,kn)=>(kn.cut(),L.none()),onRight:(on,kn)=>(kn.cut(),L.none())})])})],behaviours:pr([Mo.config({}),yo.config({mode:"special",onEnter:ht,onSpace:ht,onEscape:st}),Jo("input-wrapper-events",[qn(Lr(),on=>{pe([qt,Dn],kn=>{const Zn=zt.fromDom(kn.get(on).element.dom);Wy(Zn)&&M0(Zn)})})])])});return{dom:{tag:"div",classes:["tox-number-input"]},components:[qt.asSpec(),mn.asSpec(),Dn.asSpec()],behaviours:pr([Mo.config({}),yo.config({mode:"flow",focusInside:j.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:on=>Wy(on.element)?L.none():(cu(on.element),L.some(!0))})])}},bR="Font sizes",KF="12pt",hee={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},mee={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},JF=(o,c)=>{const g=Math.pow(10,c);return Math.round(o*g)/g},gee=(o,c)=>/[0-9.]+px$/.test(o)?JF(parseInt(o,10)*72/96,c||0)+"pt":Bt(mee,o).getOr(o),pee=o=>Bt(hee,o).getOr(""),eV=o=>{const c=()=>{let Ae=L.none();const Ne=ve.data,Ue=o.queryCommandValue("FontSize");if(Ue)for(let Je=3;Ae.isNone()&&Je>=0;Je--){const st=gee(Ue,Je),ht=pee(st);Ae=Ze(Ne,At=>At.format===Ue||At.format===st||At.format===ht)}return{matchOpt:Ae,size:Ue}},g=Ae=>Ne=>Ne.exists(Ue=>Ue.format===Ae),S=()=>{const{matchOpt:Ae}=c();return Ae},_=F(L.none),H=Ae=>()=>{o.undoManager.transact(()=>{o.focus(),o.execCommand("FontSize",!1,Ae.format)})},K=Ae=>{const{matchOpt:Ne,size:Ue}=c(),Je=Ne.fold(F(Ue),st=>st.title);vo(Ae,rh,{text:Je}),pX(o,{value:Je})},ve=uR(o,"font_size_formats",V2.Space);return{tooltip:Xb(o,bR,KF),text:L.some(KF),icon:L.none(),isSelectedFor:g,getPreviewFor:_,getCurrentValue:S,onAction:H,updateText:K,dataset:ve,shouldHide:!1,isInvalid:Y}},vee=(o,c)=>F2(o,c,eV(o),bR,"FontSizeTextUpdate"),yee=o=>{var c;const g={step:1};return(c={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[o])!==null&&c!==void 0?c:g},bee=16,Oee=o=>o>=0,tV=o=>{const c=()=>o.queryCommandValue("FontSize");return{updateInputValue:S=>vo(S,rh,{text:c()}),onAction:(S,_)=>o.execCommand("FontSize",!1,S,{skip_focus:!_}),getNewValue:(S,_)=>{H3(S,["unsupportedLength","empty"]);const H=c(),K=H3(S,["unsupportedLength","empty"]).or(H3(H,["unsupportedLength","empty"])),ve=K.map(st=>st.value).getOr(bee),Ae=xL(o),Ne=K.map(st=>st.unit).filter(st=>st!=="").getOr(Ae),Ue=_(ve,yee(Ne).step),Je=`${Oee(Ue)?Ue:ve}${Ne}`;return Je!==H&&vX(o,{value:Je}),Je}}},xee=(o,c)=>dee(o,c,tV(o)),See=(o,c)=>{const g=T1(o,c,eV(o));o.ui.registry.addNestedMenuItem("fontsize",{text:bR,onSetup:gu(o),getSubmenuItems:()=>g.items.validateItems(g.getStyleItems())})},j4="Formats",nV=(o,c)=>{const g="Paragraph",S=K=>()=>o.formatter.match(K),_=K=>()=>{const ve=o.formatter.get(K);return ve!==void 0?L.some({tag:ve.length>0&&(ve[0].inline||ve[0].block)||"div",styles:o.dom.parseStyle(o.formatter.getCssText(K))}):L.none()},H=K=>{const ve=Je=>x4(Je)?re(Je.items,ve):CQ(Je)?[{title:Je.title,format:Je.format}]:[],Ae=re(AQ(o),ve),Ue=YF(o,F(Ae)).fold(F(g),Je=>Je.title);vo(K,rh,{text:Ue}),mX(o,{value:Ue})};return{tooltip:Xb(o,j4,g),text:L.some(g),icon:L.none(),isSelectedFor:S,getCurrentValue:L.none,getPreviewFor:_,onAction:zI(o),updateText:H,shouldHide:pL(o),isInvalid:K=>!o.formatter.canApply(K.format),dataset:c}},rV=(o,c)=>{const g={type:"advanced",...c.styles};return F2(o,c,nV(o,g),j4,"StylesTextUpdate")},oV=(o,c)=>{const g={type:"advanced",...c.styles},S=T1(o,c,nV(o,g));o.ui.registry.addNestedMenuItem("styles",{text:j4,onSetup:gu(o),getSubmenuItems:()=>S.items.validateItems(S.getStyleItems())})},wee=F([er("toggleClass"),er("fetch"),zd("onExecute"),Mn("getHotspot",L.some),Mn("getAnchorOverrides",F({})),Ng(),zd("onItemExecute"),Ws("lazySink"),er("dom"),Rs("onOpen"),el("splitDropdownBehaviours",[Mi,yo,Mo]),Mn("matchWidth",!1),Mn("useMinWidth",!1),Mn("eventOrder",{}),Ws("role")].concat(p6())),Tee=ic({factory:Dl,schema:[er("dom")],name:"arrow",defaults:()=>({buttonBehaviours:pr([Mo.revoke()])}),overrides:o=>({dom:{tag:"span",attributes:{role:"presentation"}},action:c=>{c.getSystem().getByUid(o.uid).each(xm)},buttonBehaviours:pr([as.config({toggleOnExecute:!1,toggleClass:o.toggleClass})])})}),Cee=ic({factory:Dl,schema:[er("dom")],name:"button",defaults:()=>({buttonBehaviours:pr([Mo.revoke()])}),overrides:o=>({dom:{tag:"span",attributes:{role:"presentation"}},action:c=>{c.getSystem().getByUid(o.uid).each(g=>{o.onExecute(g,c)})}})}),z2=F([Tee,Cee,fu({factory:{sketch:o=>({uid:o.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:o.text}})},schema:[er("text")],name:"aria-descriptor"}),cd({schema:[Qy()],name:"menu",defaults:o=>({onExecute:(c,g)=>{c.getSystem().getByUid(o.uid).each(S=>{o.onItemExecute(S,c,g)})}})}),aN()]),kee=(o,c,g,S)=>{const _=Ue=>{xs.getCurrent(Ue).each(Je=>{Ys.highlightFirst(Je),yo.focusIn(Je)})},H=Ue=>{m6(o,z,Ue,S,_,mu.HighlightMenuAndItem).get(M)},K=Ue=>(H(Ue),L.some(!0)),ve=Ue=>{const Je=Nm(Ue,o,"button");return xm(Je),L.some(!0)},Ae={...Ea([Ca((Ue,Je)=>{ka(Ue,o,"aria-descriptor").each(ht=>{const At=Kr("aria");Dr(ht.element,"id",At),Dr(Ue.element,"aria-describedby",At)})})]),...Vm(L.some(H))},Ne={repositionMenus:Ue=>{as.isOn(Ue)&&uN(Ue)}};return{uid:o.uid,dom:o.dom,components:c,apis:Ne,eventOrder:{...o.eventOrder,[Ii()]:["disabling","toggling","alloy.base.behaviour"]},events:Ae,behaviours:Ni(o.splitDropdownBehaviours,[Mi.config({others:{sandbox:Ue=>{const Je=Nm(Ue,o,"arrow");return g6(o,Ue,{onOpen:()=>{as.on(Je),as.on(Ue)},onClose:()=>{as.off(Je),as.off(Ue)}})}}}),yo.config({mode:"special",onSpace:ve,onEnter:ve,onDown:K}),Mo.config({}),as.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:o.role.getOr("button"),"aria-haspopup":!0}}}},q4=lc({name:"SplitDropdown",configFields:wee(),partFields:z2(),factory:kee,apis:{repositionMenus:(o,c)=>o.repositionMenus(c)}}),sV=o=>({isEnabled:()=>!Co.isDisabled(o),setEnabled:c=>Co.set(o,!c),setText:c=>vo(o,rh,{text:c}),setIcon:c=>vo(o,b1,{icon:c})}),Aee=o=>({setActive:c=>{as.set(o,c)},isActive:()=>as.isOn(o),isEnabled:()=>!Co.isDisabled(o),setEnabled:c=>Co.set(o,!c),setText:c=>vo(o,rh,{text:c}),setIcon:c=>vo(o,b1,{icon:c})}),aV=(o,c)=>o.map(g=>({"aria-label":c.translate(g),title:c.translate(g)})).getOr({}),iV=Kr("focus-button"),OR=(o,c,g,S,_)=>{const H=c.map(ve=>ia(AB(ve,"tox-tbtn",_))),K=o.map(ve=>ia(y1(ve,_.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(c.isSome()?["tox-tbtn--select"]:[]),attributes:aV(g,_)},components:p2([K.map(ve=>ve.asSpec()),H.map(ve=>ve.asSpec())]),eventOrder:{[go()]:["focusing","alloy.base.behaviour",Zb],[ef()]:[Zb,"toolbar-group-button-events"]},buttonBehaviours:pr([tl.toolbarButton(_.isDisabled),gl(),Jo(Zb,[Ca((ve,Ae)=>w3(ve)),qn(rh,(ve,Ae)=>{H.bind(Ne=>Ne.getOpt(ve)).each(Ne=>{Uo.set(Ne,[yi(_.translate(Ae.event.text))])})}),qn(b1,(ve,Ae)=>{K.bind(Ne=>Ne.getOpt(ve)).each(Ne=>{Uo.set(Ne,[y1(Ae.event.icon,_.icons)])})}),qn(go(),(ve,Ae)=>{Ae.event.prevent(),ks(ve,iV)})])].concat(S.getOr([])))}},Pee=(o,c,g,S)=>{const _=c.shared,H=X(M),K={toolbarButtonBehaviours:[],getApi:sV,onSetup:o.onSetup},ve=[Jo("toolbar-group-button-events",[l1(K,H),rp(K,H)])];return w1.sketch({lazySink:_.getSink,fetch:()=>$c.nu(Ae=>{Ae(ne(g(o.items),z4))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:OR(o.icon,o.text,o.tooltip,L.some(ve),_.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:S}}}})},K4=(o,c,g)=>{var S;const _=X(M),H=OR(o.icon,o.text,o.tooltip,L.none(),g);return Dl.sketch({dom:H.dom,components:H.components,eventOrder:CB,buttonBehaviours:{...pr([Jo("toolbar-button-events",[TB({onAction:o.onAction,getApi:c.getApi}),l1(c,_),rp(c,_)]),tl.toolbarButton(()=>!o.enabled||g.isDisabled()),gl()].concat(c.toolbarButtonBehaviours)),[Zb]:(S=H.buttonBehaviours)===null||S===void 0?void 0:S[Zb]}})},Mee=(o,c)=>lV(o,c,[]),lV=(o,c,g)=>K4(o,{toolbarButtonBehaviours:g.length>0?[Jo("toolbarButtonWith",g)]:[],getApi:sV,onSetup:o.onSetup},c),cV=(o,c)=>xR(o,c,[]),xR=(o,c,g)=>K4(o,{toolbarButtonBehaviours:[Uo.config({}),as.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(g.length>0?[Jo("toolbarToggleButtonWith",g)]:[]),getApi:Aee,onSetup:o.onSetup},c),Eee=(o,c,g)=>S=>$c.nu(_=>c.fetch(_)).map(_=>L.from($5(Ta(i6(Kr("menu-value"),_,H=>{c.onItemAction(o(S),H)},c.columns,c.presets,Hm.CLOSE_ON_EXECUTE,c.select.getOr(Y),g),{movement:E5(c.columns,c.presets),menuBehaviours:KT.unnamedEvents(c.columns!=="auto"?[]:[Ca((H,K)=>{D8(H,4,IL(c.presets)).each(({numRows:ve,numColumns:Ae})=>{yo.setGridSize(H,ve,Ae)})})])})))),_ee=(o,c)=>{const g=H=>({isEnabled:()=>!Co.isDisabled(H),setEnabled:K=>Co.set(H,!K),setIconFill:(K,ve)=>{Ai(H.element,`svg path[class="${K}"], rect[class="${K}"]`).each(Ae=>{Dr(Ae,"fill",ve)})},setActive:K=>{Dr(H.element,"aria-pressed",K),Ai(H.element,"span").each(ve=>{H.getSystem().getByDom(ve).each(Ae=>as.set(Ae,K))})},isActive:()=>Ai(H.element,"span").exists(K=>H.getSystem().getByDom(K).exists(as.isOn)),setText:K=>Ai(H.element,"span").each(ve=>H.getSystem().getByDom(ve).each(Ae=>vo(Ae,rh,{text:K}))),setIcon:K=>Ai(H.element,"span").each(ve=>H.getSystem().getByDom(ve).each(Ae=>vo(Ae,b1,{icon:K}))),setTooltip:K=>{const ve=c.providers.translate(K);yc(H.element,{"aria-label":ve,title:ve})}}),S=X(M),_={getApi:g,onSetup:o.onSetup};return q4.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...aV(o.tooltip,c.providers)}},onExecute:H=>{const K=g(H);K.isEnabled()&&o.onAction(K)},onItemExecute:(H,K,ve)=>{},splitDropdownBehaviours:pr([tl.splitButton(c.providers.isDisabled),gl(),Jo("split-dropdown-events",[Ca((H,K)=>w3(H)),qn(iV,Mo.focus),l1(_,S),rp(_,S)]),d3.config({})]),eventOrder:{[ef()]:["alloy.base.behaviour","split-dropdown-events"]},toggleClass:"tox-tbtn--enabled",lazySink:c.getSink,fetch:Eee(g,o,c.providers),parts:{menu:c2(!1,o.columns,o.presets)},components:[q4.parts.button(OR(o.icon,o.text,L.none(),L.some([as.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),c.providers)),q4.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:H_("chevron-down",c.providers.icons)},buttonBehaviours:pr([tl.splitButton(c.providers.isDisabled),gl(),XA()])}),q4.parts["aria-descriptor"]({text:c.providers.translate("To open the popup, press Shift+Enter")})]})},Ree=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],U3=(o,c)=>(g,S,_)=>{const H=o(g).mapError(K=>Zl(K)).getOrDie();return c(H,S,_)},Dee={button:U3(E8,(o,c)=>Mee(o,c.shared.providers)),togglebutton:U3(nI,(o,c)=>cV(o,c.shared.providers)),menubutton:U3(H7,(o,c)=>C3(o,"tox-tbtn",c,L.none(),!1)),splitbutton:U3(tJ,(o,c)=>_ee(o,c.shared)),grouptoolbarbutton:U3(JK,(o,c,g)=>{const S=g.ui.registry.getAll().buttons,_=K=>eP(g,{buttons:S,toolbar:K,allowToolbarGroups:!1},c,L.none()),H={[D0]:c.shared.header.isPositionedAtTop()?Lf.TopToBottom:Lf.BottomToTop};switch(o2(g)){case Qf.floating:return Pee(o,c,_,H);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})},$ee=(o,c,g)=>Bt(Dee,o.type).fold(()=>(console.error("skipping button defined by",o),L.none()),S=>L.some(S(o,c,g))),SR={styles:rV,fontsize:vee,fontsizeinput:xee,fontfamily:iee,blocks:oee,align:WF},Lee=o=>{const c=ne(Ree,g=>{const S=xe(g.items,_=>vn(o,_)||vn(SR,_));return{name:g.name,items:S}});return xe(c,g=>g.items.length>0)},Iee=o=>{const c=o.split("|");return ne(c,g=>({items:g.trim().split(" ")}))},Nee=o=>R(o,c=>vn(c,"name")&&vn(c,"items")),Bee=o=>{const c=o.toolbar,g=o.buttons;return c===!1?[]:c===void 0||c===!0?Lee(g):m(c)?Iee(c):Nee(c)?c:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},J4=(o,c,g,S,_,H)=>Bt(c,g.toLowerCase()).orThunk(()=>H.bind(K=>Xe(K,ve=>Bt(c,ve+g.toLowerCase())))).fold(()=>Bt(SR,g.toLowerCase()).map(K=>K(o,_)),K=>K.type==="grouptoolbarbutton"&&!S?(console.warn(`Ignoring the '${g}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),L.none()):$ee(K,_,o)),eP=(o,c,g,S)=>{const _=Bee(c),H=ne(_,K=>{const ve=re(K.items,Ae=>Ae.trim().length===0?[]:J4(o,c.buttons,Ae,c.allowToolbarGroups,g,S).toArray());return{title:L.from(o.translate(K.name)),items:ve}});return xe(H,K=>K.items.length>0)},W3=(o,c,g,S)=>{const _=c.mainUi.outerContainer,H=g.toolbar,K=g.buttons;if(R(H,m)){const ve=H.map(Ae=>{const Ne={toolbar:Ae,buttons:K,allowToolbarGroups:g.allowToolbarGroups};return eP(o,Ne,S,L.none())});$a.setToolbars(_,ve)}else $a.setToolbar(_,eP(o,g,S,L.none()))},Y3=jf(),uV=Y3.os.isiOS()&&Y3.os.version.major<=12,Qee=(o,c)=>{const{uiMotherships:g}=c,S=o.dom;let _=o.getWin();const H=o.getDoc().documentElement,K=X(Is(_.innerWidth,_.innerHeight)),ve=X(Is(H.offsetWidth,H.offsetHeight)),Ae=()=>{const st=K.get();(st.left!==_.innerWidth||st.top!==_.innerHeight)&&(K.set(Is(_.innerWidth,_.innerHeight)),S5(o))},Ne=()=>{const st=o.getDoc().documentElement,ht=ve.get();(ht.left!==st.offsetWidth||ht.top!==st.offsetHeight)&&(ve.set(Is(st.offsetWidth,st.offsetHeight)),S5(o))},Ue=st=>{dX(o,st)};S.bind(_,"resize",Ae),S.bind(_,"scroll",Ue);const Je=vx(zt.fromDom(o.getBody()),"load",Ne);o.on("hide",()=>{pe(g,st=>{Po(st.element,"display","none")})}),o.on("show",()=>{pe(g,st=>{Zo(st.element,"display")})}),o.on("NodeChange",Ne),o.on("remove",()=>{Je.unbind(),S.unbind(_,"resize",Ae),S.unbind(_,"scroll",Ue),_=null})},Fee=(o,c,g)=>{Kg(o)&&Dm(g.mainUi.mothership.element,g.popupUi.mothership),Rl(c,g.dialogUi.mothership)};var Vee=Object.freeze({__proto__:null,render:(o,c,g,S,_)=>{const{mainUi:H,uiMotherships:K}=c,ve=X(0),Ae=H.outerContainer;eee(o);const Ne=zt.fromDom(_.targetNode),Ue=Xs(es(Ne));Dm(Ne,H.mothership),Fee(o,Ue,c),o.on("SkinLoaded",()=>{$a.setSidebar(Ae,g.sidebar,t5(o)),W3(o,c,g,S),ve.set(o.getWin().innerWidth),$a.setMenubar(Ae,X4(o,g)),$a.setViews(Ae,g.views),Qee(o,c)});const Je=$a.getSocket(Ae).getOrDie("Could not find expected socket element");if(uV){zi(Je.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const qt=y3(()=>{o.dispatch("ScrollContent")},20),Dn=_c(Je.element,"scroll",qt.throttle);o.on("remove",Dn.unbind)}bI(o,c),o.addCommand("ToggleSidebar",(qt,Dn)=>{$a.toggleSidebar(Ae,Dn),o.dispatch("ToggleSidebar")}),o.addQueryValueHandler("ToggleSidebar",()=>{var qt;return(qt=$a.whichSidebar(Ae))!==null&&qt!==void 0?qt:""}),o.addCommand("ToggleView",(qt,Dn)=>{if($a.toggleView(Ae,Dn)){const mn=Ae.element;H.mothership.broadcastOn([Wd()],{target:mn}),pe(K,on=>{on.broadcastOn([Wd()],{target:mn})}),y($a.whichView(Ae))&&(o.focus(),o.nodeChanged(),$a.refreshToolbar(Ae))}}),o.addQueryValueHandler("ToggleView",()=>{var qt;return(qt=$a.whichView(Ae))!==null&&qt!==void 0?qt:""});const st=o2(o),ht=()=>{$a.refreshToolbar(c.mainUi.outerContainer)};(st===Qf.sliding||st===Qf.floating)&&o.on("ResizeWindow ResizeEditor ResizeContent",()=>{const qt=o.getWin().innerWidth;qt!==ve.get()&&(ht(),ve.set(qt))});const At={setEnabled:qt=>{y5(c,!qt)},isEnabled:()=>!Co.isDisabled(Ae)};return{iframeContainer:Je.element.dom,editorContainer:Ae.element.dom,api:At}}});const wR=o=>/^[0-9\.]+(|px)$/i.test(""+o)?L.some(parseInt(""+o,10)):L.none(),Z2=o=>T(o)?o+"px":o,X3=(o,c,g)=>{const S=c.filter(H=>oo>H);return S.or(_).getOr(o)},fV=o=>{const c=GA(o),g=r2(o),S=G_(o);return wR(c).map(_=>X3(_,g,S))},dV=o=>fV(o).getOr(GA(o)),TR=o=>{const c=zT(o),g=X_(o),S=jA(o);return wR(c).map(_=>X3(_,g,S))},zee=o=>TR(o).getOr(zT(o)),{ToolbarLocation:tP,ToolbarMode:hV}=bY,Zee=40,Hee=(o,c,g,S,_)=>{const{mainUi:H,uiMotherships:K}=g,ve=$b.DOM,Ae=i2(o),Ne=UT(o),Ue=jA(o).or(TR(o)),Je=S.shared.header,st=Je.isPositionedAtTop,ht=o2(o),At=ht===hV.sliding||ht===hV.floating,qt=X(!1),Dn=()=>qt.get()&&!o.removed,mn=wo=>At?wo.fold(F(0),Ns=>Ns.components().length>1?Za(Ns.components()[1].element):0):0,on=wo=>{switch(ZT(o)){case tP.auto:const Ns=$a.getToolbar(H.outerContainer),Pr=mn(Ns),oo=Za(wo.element)-Pr,No=ui(c);if(No.y>oo)return"top";{const To=pn(c),Yo=Math.max(To.dom.scrollHeight,Za(To));return No.bottom{_.on(Ns=>{Bi.setModes(Ns,[wo]),Je.setDockingMode(wo);const Pr=st()?Lf.TopToBottom:Lf.BottomToTop;Dr(Ns.element,D0,Pr)})},Zn=()=>{_.on(wo=>{const Ns=Ue.getOrThunk(()=>{const Pr=wR(Qa(ya(),"margin-left")).getOr(0);return Si(ya())-Cl(c).left+Pr});Po(wo.element,"max-width",Ns+"px")})},mr=wo=>{_.on(Ns=>{const Pr=$a.getToolbar(H.outerContainer),oo=mn(Pr),No=ui(c),{top:Qo,left:To}=Gn(o,H.outerContainer.element).fold(()=>({top:st()?Math.max(No.y-Za(Ns.element)+oo,0):No.bottom,left:No.x}),Fs=>{var Kl;const vf=ui(Fs),ih=(Kl=Fs.dom.scrollTop)!==null&&Kl!==void 0?Kl:0,Kh=Jt(Fs,ya()),R1=Kh?Math.max(No.y-Za(Ns.element)+oo,0):No.y-vf.y+ih-Za(Ns.element)+oo;return{top:st()?R1:No.bottom,left:Kh?No.x:No.x-vf.x}}),Yo={position:"absolute",left:Math.round(To)+"px",top:Math.round(Qo)+"px"},Ma=wo.map(Fs=>{const Kl=Pl(),vf=150,ih=window.innerWidth-(To-Kl.left);return{width:Math.max(Math.min(Fs,ih),vf)+"px"}}).getOr({});zi(H.outerContainer.element,{...Yo,...Ma})})},Gn=(wo,Ns)=>Kg(wo)?Wb(Ns):L.none(),Or=()=>{pe(K,wo=>{wo.broadcastOn([dv()],{})})},Mr=()=>{if(Ae)return L.none();if(Cl(H.outerContainer.element).left+Tf(H.outerContainer.element)>=window.innerWidth-Zee||za(H.outerContainer.element,"width").isSome()){Po(H.outerContainer.element,"position","absolute"),Po(H.outerContainer.element,"left","0px"),Zo(H.outerContainer.element,"width");const Ns=Tf(H.outerContainer.element);return L.some(Ns)}else return L.none()},is=wo=>{if(!Dn())return;Ae||Zn();const Ns=Ae?L.none():Mr();At&&$a.refreshToolbar(H.outerContainer),Ae||mr(Ns),Ne&&_.on(wo),Or()},Gr=()=>Ae||!Ne||!Dn()?!1:_.get().exists(wo=>{const Ns=Je.getDockingMode(),Pr=on(wo);return Pr!==Ns?(kn(Pr),!0):!1});return{isVisible:Dn,isPositionedAtTop:st,show:()=>{qt.set(!0),Po(H.outerContainer.element,"display","flex"),ve.addClass(o.getBody(),"mce-edit-focus"),pe(K,wo=>{Zo(wo.element,"display")}),Gr(),Kg(o)?is(wo=>Bi.isDocked(wo)?Bi.reset(wo):Bi.refresh(wo)):is(Bi.refresh)},hide:()=>{qt.set(!1),Po(H.outerContainer.element,"display","none"),ve.removeClass(o.getBody(),"mce-edit-focus"),pe(K,wo=>{Po(wo.element,"display","none")})},update:is,updateMode:()=>{Gr()&&is(Bi.reset)},repositionPopups:Or}},mV=(o,c)=>{const g=ui(o);return{pos:c?g.y:g.bottom,bounds:g}},Uee=(o,c,g,S)=>{const _=X(mV(c,g.isPositionedAtTop())),H=Ne=>{const{pos:Ue,bounds:Je}=mV(c,g.isPositionedAtTop()),{pos:st,bounds:ht}=_.get(),At=Je.height!==ht.height||Je.width!==ht.width;_.set({pos:Ue,bounds:Je}),At&&S5(o,Ne),g.isVisible()&&(st!==Ue?g.update(Bi.reset):At&&(g.updateMode(),g.repositionPopups()))};S||(o.on("activate",g.show),o.on("deactivate",g.hide)),o.on("SkinLoaded ResizeWindow",()=>g.update(Bi.reset)),o.on("NodeChange keydown",Ne=>{requestAnimationFrame(()=>H(Ne))});let K=0;const ve=G6(()=>g.update(Bi.refresh),33);o.on("ScrollWindow",()=>{const Ne=Pl().left;Ne!==K&&(K=Ne,ve.throttle()),g.updateMode()}),Kg(o)&&o.on("ElementScroll",Ne=>{g.update(Bi.refresh)});const Ae=Em();Ae.set(vx(zt.fromDom(o.getBody()),"load",Ne=>H(Ne.raw))),o.on("remove",()=>{Ae.clear()})};var Wee=Object.freeze({__proto__:null,render:(o,c,g,S,_)=>{const{mainUi:H}=c,K=gs(),ve=zt.fromDom(_.targetNode),Ae=Hee(o,ve,c,S,K),Ne=bL(o);tee(o);const Ue=()=>{if(K.isSet()){Ae.show();return}K.set($a.getHeader(H.outerContainer).getOrDie());const st=i8(o);Kg(o)?(Dm(ve,H.mothership),Dm(ve,c.popupUi.mothership)):Rl(st,H.mothership),Rl(st,c.dialogUi.mothership),W3(o,c,g,S),$a.setMenubar(H.outerContainer,X4(o,g)),Ae.show(),Uee(o,ve,Ae,Ne),o.nodeChanged()};o.on("show",Ue),o.on("hide",Ae.hide),Ne||(o.on("focus",Ue),o.on("blur",Ae.hide)),o.on("init",()=>{(o.hasFocus()||Ne)&&Ue()}),bI(o,c);const Je={show:Ue,hide:Ae.hide,setEnabled:st=>{y5(c,!st)},isEnabled:()=>!Co.isDisabled(H.outerContainer)};return{editorContainer:H.outerContainer.element.dom,api:Je}}});const Yee=()=>{const o=gs(),c=gs(),g=gs();return{dialogUi:o,popupUi:c,mainUi:g,getUiMotherships:()=>{const H=o.get().map(ve=>ve.mothership),K=c.get().map(ve=>ve.mothership);return H.fold(()=>K.toArray(),ve=>K.fold(()=>[ve],Ae=>Jt(ve.element,Ae.element)?[ve]:[ve,Ae]))},lazyGetInOuterOrDie:(H,K)=>()=>g.get().bind(ve=>K(ve.outerContainer)).getOrDie(`Could not find ${H} element in OuterContainer`)}},Xee="contexttoolbar-show",CR="contexttoolbar-hide",Gee=o=>({hide:()=>ks(o,Ju()),getValue:()=>Fr.getValue(o)}),kR=(o,c)=>qn(J6,(g,S)=>{const _=o.get(g),H=Gee(_);c.onAction(H,S.event.buttonApi)}),jee=(o,c,g)=>{const{primary:S,..._}=c.original,H=aa(E8({..._,type:"button",onAction:M}));return lV(H,g,[kR(o,c)])},qee=(o,c,g)=>{const{primary:S,..._}=c.original,H=aa(nI({..._,type:"togglebutton",onAction:M}));return xR(H,g,[kR(o,c)])},Kee=o=>o.type==="contextformtogglebutton",Jee=(o,c,g)=>Kee(c)?qee(o,c,g):jee(o,c,g),ete=(o,c,g)=>{const S=ne(c,K=>ia(Jee(o,K,g)));return{asSpecs:()=>ne(S,K=>K.asSpec()),findPrimary:K=>Xe(c,(ve,Ae)=>ve.primary?L.from(S[Ae]).bind(Ne=>Ne.getOpt(K)).filter(B(Co.isDisabled)):L.none())}},H2=(o,c)=>{const g=o.label.fold(()=>({}),H=>({"aria-label":H})),S=ia(Ib.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:o.initValue(),inputAttributes:g,selectOnFocus:!0,inputBehaviours:pr([yo.config({mode:"special",onEnter:H=>_.findPrimary(H).map(K=>(xm(K),!0)),onLeft:(H,K)=>(K.cut(),L.none()),onRight:(H,K)=>(K.cut(),L.none())})])})),_=ete(S,o.commands,c);return[{title:L.none(),items:[S.asSpec()]},{title:L.none(),items:_.asSpecs()}]},nte={renderContextForm:(o,c,g)=>Z4({type:o,uid:Kr("context-toolbar"),initGroups:H2(c,g),onEscape:L.none,cyclicKeying:!0,providers:g}),buildInitGroups:H2},gV=(o,c,g)=>c.bottom-o.y>=g&&o.bottom-c.y>=g,pV=o=>{const c=o.getBoundingClientRect();if(c.height<=0&&c.width<=0){const g=So(zt.fromDom(o.startContainer),o.startOffset).element;return(Ct(g)?Fn(g):L.some(g)).filter(St).map(_=>_.dom.getBoundingClientRect()).getOr(c)}else return c},G3=o=>{const c=o.selection.getRng(),g=pV(c);if(o.inline){const S=Pl();return Ja(S.left+g.left,S.top+g.top,g.width,g.height)}else{const S=wu(zt.fromDom(o.getBody()));return Ja(S.x+g.left,S.y+g.top,g.width,g.height)}},vV=(o,c)=>c.filter(g=>Js(g)&&Ee(g)).map(wu).getOrThunk(()=>G3(o)),yV=(o,c,g)=>{const S=Math.max(o.x+g,c.x),_=Math.min(o.right-g,c.right);return{x:S,width:_-S}},rte=(o,c,g,S,_,H)=>{const K=zt.fromDom(o.getContainer()),ve=Ai(K,".tox-editor-header").getOr(K),Ae=ui(ve),Ne=Ae.y>=c.bottom,Ue=S&&!Ne;if(o.inline&&Ue)return{y:Math.max(Ae.bottom+H,g.y),bottom:g.bottom};if(o.inline&&!Ue)return{y:g.y,bottom:Math.min(Ae.y-H,g.bottom)};const Je=_==="line"?ui(K):c;return Ue?{y:Math.max(Ae.bottom+H,g.y),bottom:Math.min(Je.bottom-H,g.bottom)}:{y:Math.max(Je.y+H,g.y),bottom:Math.min(Ae.y-H,g.bottom)}},Gb=(o,c,g,S=0)=>{const _=gy(window),H=ui(zt.fromDom(o.getContentAreaContainer())),K=a2(o)||o5(o)||HT(o),{x:ve,width:Ae}=yV(H,_,S);if(o.inline&&!K)return Ja(ve,_.y,Ae,_.height);{const Ne=c.header.isPositionedAtTop(),{y:Ue,bottom:Je}=rte(o,H,_,Ne,g,S);return Ja(ve,Ue,Ae,Je-Ue)}},jb=12,rP={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},AR={maxHeightFunction:R0(),maxWidthFunction:K7()},bV=(o,c)=>{const g=o.selection.getRng(),S=So(zt.fromDom(g.startContainer),g.startOffset);return g.startContainer===g.endContainer&&g.startOffset===g.endOffset-1&&Jt(S.element,c)},ote=(o,c,g)=>{const S=za(o,"position");Po(o,"position",c);const _=g(o);return S.each(H=>Po(o,"position",H)),_},PR=o=>o==="node",ste=(o,c,g,S,_)=>{const H=G3(o),K=S.lastElement().exists(ve=>Jt(g,ve));if(bV(o,g))return K?O7:Yh;if(K)return ote(c,S.getMode(),()=>gV(H,ui(c),-20)&&!S.isReposition()?Yq:O7);{const ve=S.getMode()==="fixed"?_.y+Pl().top:_.y,Ae=Za(c)+jb;return ve+Ae<=H.y?Yh:D2}},ate=(o,c,g,S)=>{const _=Ae=>(Ne,Ue,Je,st,ht)=>{const At=ste(o,st,Ae,g,ht),qt={...Ne,y:ht.y,height:ht.height};return{...At(qt,Ue,Je,st,ht),alwaysFit:!0}},H=Ae=>PR(S)?[_(Ae)]:[];return c?{onLtr:Ae=>[fl,ul,Gl,Yc,sc,Mc].concat(H(Ae)),onRtl:Ae=>[fl,Gl,ul,sc,Yc,Mc].concat(H(Ae))}:{onLtr:Ae=>[Mc,fl,Yc,ul,sc,Gl].concat(H(Ae)),onRtl:Ae=>[Mc,fl,sc,Gl,Yc,ul].concat(H(Ae))}},ite=(o,c,g,S)=>c==="line"?{bubble:Eh(jb,0,rP),layouts:{onLtr:()=>[bw],onRtl:()=>[Hy]},overrides:AR}:{bubble:Eh(0,jb,rP,1/jb),layouts:ate(o,g,S,c),overrides:AR},MR=(o,c)=>{const g=xe(c,H=>H.predicate(o.dom)),{pass:S,fail:_}=Oe(g,H=>H.type==="contexttoolbar");return{contextToolbars:S,contextForms:_}},lte=o=>{if(o.length<=1)return o;{const c=H=>Te(o,K=>K.position===H),g=H=>xe(o,K=>K.position===H),S=c("selection"),_=c("node");if(S||_)if(_&&S){const H=g("node"),K=ne(g("selection"),ve=>({...ve,position:"node"}));return H.concat(K)}else return g(S?"selection":"node");else return g("line")}},OV=o=>{if(o.length<=1)return o;{const c=S=>Ze(o,_=>_.position===S);return c("selection").orThunk(()=>c("node")).orThunk(()=>c("line")).map(S=>S.position).fold(()=>[],S=>xe(o,_=>_.position===S))}},oP=(o,c,g)=>{const S=MR(o,c);if(S.contextForms.length>0)return L.some({elem:o,toolbars:[S.contextForms[0]]});{const _=MR(o,g);if(_.contextForms.length>0)return L.some({elem:o,toolbars:[_.contextForms[0]]});if(S.contextToolbars.length>0||_.contextToolbars.length>0){const H=lte(S.contextToolbars.concat(_.contextToolbars));return L.some({elem:o,toolbars:H})}else return L.none()}},xV=(o,c,g)=>o(c)?L.none():jt(c,S=>{if(St(S)){const{contextToolbars:_,contextForms:H}=MR(S,g.inNodeScope),K=H.length>0?H:OV(_);return K.length>0?L.some({elem:S,toolbars:K}):L.none()}else return L.none()},o),SV=(o,c)=>{const g=zt.fromDom(c.getBody()),S=K=>Jt(K,g),_=K=>!S(K)&&!rn(g,K),H=zt.fromDom(c.selection.getNode());return _(H)?L.none():oP(H,o.inNodeScope,o.inEditorScope).orThunk(()=>xV(S,H,o))},ER=(o,c)=>{const g={},S=[],_=[],H={},K={},ve=(Ue,Je)=>{const st=aa(FY(Je));g[Ue]=st,st.launch.map(ht=>{H["form:"+Ue]={...Je.launch,type:ht.type==="contextformtogglebutton"?"togglebutton":"button",onAction:()=>{c(st)}}}),st.scope==="editor"?_.push(st):S.push(st),K[Ue]=st},Ae=(Ue,Je)=>{zY(Je).each(st=>{Je.scope==="editor"?_.push(st):S.push(st),K[Ue]=st})},Ne=ct(o);return pe(Ne,Ue=>{const Je=o[Ue];Je.type==="contextform"?ve(Ue,Je):Je.type==="contexttoolbar"&&Ae(Ue,Je)}),{forms:g,inNodeScope:S,inEditorScope:_,lookupTable:K,formNavigators:H}},wV=Kr("forward-slide"),_R=Kr("backward-slide"),RR=Kr("change-slide-event"),DR="tox-pop--resizing",sP=o=>{const c=X([]);return ri.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:g=>{c.set([]),ri.getContent(g).each(S=>{Zo(S.element,"visibility")}),Xa(g.element,DR),Zo(g.element,"width")},inlineBehaviours:pr([Jo("context-toolbar-events",[xh(Ki(),(g,S)=>{S.event.raw.propertyName==="width"&&(Xa(g.element,DR),Zo(g.element,"width"))}),qn(RR,(g,S)=>{const _=g.element;Zo(_,"width");const H=Si(_);ri.setContent(g,S.event.contents),ki(_,DR);const K=Si(_);Po(_,"width",H+"px"),ri.getContent(g).each(ve=>{S.event.focus.bind(Ae=>(cu(Ae),ad(_))).orThunk(()=>(yo.focusIn(ve),Mh(es(_))))}),setTimeout(()=>{Po(g.element,"width",K+"px")},0)}),qn(wV,(g,S)=>{ri.getContent(g).each(_=>{c.set(c.get().concat([{bar:_,focus:Mh(es(g.element))}]))}),vo(g,RR,{contents:S.event.forwardContents,focus:L.none()})}),qn(_R,(g,S)=>{Qe(c.get()).each(_=>{c.set(c.get().slice(0,c.get().length-1)),vo(g,RR,{contents:nf(_.bar),focus:_.focus})})})]),yo.config({mode:"special",onEscape:g=>Qe(c.get()).fold(()=>o.onEscape(),S=>(ks(g,_R),L.some(!0)))})]),lazySink:()=>jo.value(o.sink)})},aP="tox-pop--transition",cte=(o,c,g,S)=>{const _=S.backstage,H=_.shared,K=jf().deviceType.isTouch,ve=gs(),Ae=gs(),Ne=gs(),Ue=oc(sP({sink:g,onEscape:()=>(o.focus(),L.some(!0))})),Je=()=>{const Gr=Ne.get().getOr("node"),Io=PR(Gr)?1:0;return Gb(o,H,Gr,Io)},st=()=>!o.removed&&!(K()&&_.isContextMenuOpen()),ht=Gr=>ln(Xn(Gr,ve.get(),Jt),!0),At=()=>{if(st()){const Gr=Je(),Io=ln(Ne.get(),"node")?vV(o,ve.get()):G3(o);return Gr.height<=0||!gV(Io,Gr,.01)}else return!0},qt=()=>{ve.clear(),Ae.clear(),Ne.clear(),ri.hide(Ue)},Dn=()=>{if(ri.isOpen(Ue)){const Gr=Ue.element;Zo(Gr,"display"),At()?Po(Gr,"display","none"):(Ae.set(0),ri.reposition(Ue))}},mn=Gr=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[Gr],behaviours:pr([yo.config({mode:"acyclic"}),Jo("pop-dialog-wrap-events",[Ca(Io=>{o.shortcuts.add("ctrl+F9","focus statusbar",()=>yo.focusIn(Io))}),Sh(Io=>{o.shortcuts.remove("ctrl+F9")})])])}),on=Ya(()=>ER(c,Gr=>{const Io=mr([Gr]);vo(Ue,wV,{forwardContents:mn(Io)})})),kn=(Gr,Io)=>eP(o,{buttons:Gr,toolbar:Io.items,allowToolbarGroups:!1},S.backstage,L.some(["form:"])),Zn=(Gr,Io)=>nte.buildInitGroups(Gr,Io),mr=Gr=>{const{buttons:Io}=o.ui.registry.getAll(),_o=on(),na={...Io,..._o.formNavigators},wo=o2(o)===Qf.scrolling?Qf.scrolling:Qf.default,Ns=Ie(ne(Gr,Pr=>Pr.type==="contexttoolbar"?kn(na,Pr):Zn(Pr,H.providers)));return Z4({type:wo,uid:Kr("context-toolbar"),initGroups:Ns,onEscape:L.none,cyclicKeying:!0,providers:H.providers})},Gn=(Gr,Io)=>{const _o=Gr==="node"?H.anchors.node(Io):H.anchors.cursor(),na=ite(o,Gr,K(),{lastElement:ve.get,isReposition:()=>ln(Ae.get(),0),getMode:()=>ac.getMode(g)});return Ta(_o,na)},Or=(Gr,Io)=>{if(is.cancel(),!st())return;const _o=mr(Gr),na=Gr[0].position,wo=Gn(na,Io);Ne.set(na),Ae.set(1);const Ns=Ue.element;Zo(Ns,"display"),ht(Io)||(Xa(Ns,aP),ac.reset(g,Ue)),ri.showWithinBounds(Ue,mn(_o),{anchor:wo,transition:{classes:[aP],mode:"placement"}},()=>L.some(Je())),Io.fold(ve.clear,ve.set),At()&&Po(Ns,"display","none")};let Mr=!1;const is=G6(()=>{if(!(!o.hasFocus()||o.removed||Mr))if(Ji(Ue.element,aP))is.throttle();else{const Gr=on();SV(Gr,o).fold(qt,Io=>{Or(Io.toolbars,L.some(Io.elem))})}},17);o.on("init",()=>{o.on("remove",qt),o.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",Dn),o.on("click keyup focus SetContent",is.throttle),o.on(CR,qt),o.on(Xee,Gr=>{const Io=on();Bt(Io.lookupTable,Gr.toolbarKey).each(_o=>{Or([_o],it(Gr.target!==o,Gr.target)),ri.getContent(Ue).each(yo.focusIn)})}),o.on("focusout",Gr=>{_b.setEditorTimeout(o,()=>{ad(g.element).isNone()&&ad(Ue.element).isNone()&&qt()},0)}),o.on("SwitchMode",()=>{o.mode.isReadOnly()&&qt()}),o.on("AfterProgressState",Gr=>{Gr.state?qt():o.hasFocus()&&is.throttle()}),o.on("dragstart",()=>{Mr=!0}),o.on("dragend drop",()=>{Mr=!1}),o.on("NodeChange",Gr=>{ad(Ue.element).fold(is.throttle,M)})})},ute=o=>{pe([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],g=>{o.ui.registry.addToggleButton(g.name,{tooltip:g.text,icon:g.icon,onAction:ff(o,g.cmd),onSetup:w5(o,g.name)})}),o.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:gu(o),onAction:ff(o,"JustifyNone")})},TV=(o,c)=>{const g=()=>{const S=c.getOptions(o),_=c.getCurrent(o).map(c.hash),H=gs();return ne(S,K=>({type:"togglemenuitem",text:c.display(K),onSetup:ve=>{const Ae=Ue=>{Ue&&(H.on(Je=>Je.setActive(!1)),H.set(ve)),ve.setActive(Ue)};Ae(ln(_,c.hash(K)));const Ne=c.watcher(o,K,Ae);return()=>{H.clear(),Ne()}},onAction:()=>c.setCurrent(o,K)}))};o.ui.registry.addMenuButton(c.name,{tooltip:c.text,icon:c.icon,fetch:S=>S(g()),onSetup:c.onToolbarSetup}),o.ui.registry.addNestedMenuItem(c.name,{type:"nestedmenuitem",text:c.text,getSubmenuItems:g,onSetup:c.onMenuSetup})},fte=o=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:AL,hash:c=>fee(c,["fixed","relative","empty"]).getOr(c),display:z,watcher:(c,g,S)=>c.formatter.formatChanged("lineheight",S,!1,{value:g}).unbind,getCurrent:c=>L.from(c.queryCommandValue("LineHeight")),setCurrent:(c,g)=>c.execCommand("LineHeight",!1,g),onToolbarSetup:gu(o),onMenuSetup:gu(o)}),dte=o=>L.from(vL(o)).map(g=>({name:"language",text:"Language",icon:"language",getOptions:F(g),hash:S=>x(S.customCode)?S.code:`${S.code}/${S.customCode}`,display:S=>S.title,watcher:(S,_,H)=>{var K;return S.formatter.formatChanged("lang",H,!1,{value:_.code,customValue:(K=_.customCode)!==null&&K!==void 0?K:null}).unbind},getCurrent:S=>{const _=zt.fromDom(S.selection.getNode());return tn(_,H=>L.some(H).filter(St).bind(K=>Ri(K,"lang").map(Ae=>{const Ne=Ri(K,"data-mce-lang").getOrUndefined();return{code:Ae,customCode:Ne,title:""}})))},setCurrent:(S,_)=>S.execCommand("Lang",!1,_),onToolbarSetup:S=>{const _=Em();return S.setActive(o.formatter.match("lang",{},void 0,!0)),_.set(o.formatter.formatChanged("lang",S.setActive,!0)),r3(_.clear,gu(o)(S))},onMenuSetup:gu(o)})),CV=o=>{TV(o,fte(o)),dte(o).each(c=>TV(o,c))},kV=(o,c)=>{ree(o,c),lee(o,c),oV(o,c),see(o,c),See(o,c)},hte=o=>Vh(o,"NodeChange",c=>{c.setEnabled(o.queryCommandState("outdent")&&o.selection.isEditable())}),mte=o=>{o.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:hte(o),onAction:ff(o,"outdent")}),o.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:gu(o),onAction:ff(o,"indent")})},AV=o=>{mte(o)},PV=(o,c)=>g=>{g.setActive(c.get());const S=_=>{c.set(_.state),g.setActive(_.state)};return o.on("PastePlainTextToggle",S),r3(()=>o.off("PastePlainTextToggle",S),gu(o)(g))},gte=o=>{const c=X(e5(o)),g=()=>o.execCommand("mceTogglePlainTextPaste");o.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:g,onSetup:PV(o,c)}),o.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:g,onSetup:PV(o,c)})},$R=(o,c)=>()=>{o.execCommand("mceToggleFormat",!1,c)},pte=o=>{up.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(c,g)=>{o.ui.registry.addToggleButton(c.name,{tooltip:c.text,icon:c.icon,onSetup:w5(o,c.name),onAction:$R(o,c.name)})});for(let c=1;c<=6;c++){const g="h"+c;o.ui.registry.addToggleButton(g,{text:g.toUpperCase(),tooltip:"Heading "+c,onSetup:w5(o,g),onAction:$R(o,g)})}},vte=o=>{up.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print"}],c=>{o.ui.registry.addButton(c.name,{tooltip:c.text,icon:c.icon,onAction:ff(o,c.action)})}),up.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],c=>{o.ui.registry.addButton(c.name,{tooltip:c.text,icon:c.icon,onSetup:gu(o),onAction:ff(o,c.action)})})},LR=o=>{up.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],c=>{o.ui.registry.addToggleButton(c.name,{tooltip:c.text,icon:c.icon,onAction:ff(o,c.action),onSetup:w5(o,c.name)})})},yte=o=>{pte(o),vte(o),LR(o)},bte=o=>{up.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],c=>{o.ui.registry.addMenuItem(c.name,{text:c.text,icon:c.icon,shortcut:c.shortcut,onAction:ff(o,c.action)})}),up.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],c=>{o.ui.registry.addMenuItem(c.name,{text:c.text,icon:c.icon,shortcut:c.shortcut,onSetup:gu(o),onAction:ff(o,c.action)})}),o.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:gu(o),onAction:$R(o,"code")})},IR=o=>{yte(o),bte(o)},j3=(o,c)=>Vh(o,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",g=>{g.setEnabled(!o.mode.isReadOnly()&&o.undoManager[c]())}),MV=o=>{o.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:j3(o,"hasUndo"),onAction:ff(o,"undo")}),o.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:j3(o,"hasRedo"),onAction:ff(o,"redo")})},Ote=o=>{o.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:j3(o,"hasUndo"),onAction:ff(o,"undo")}),o.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:j3(o,"hasRedo"),onAction:ff(o,"redo")})},xte=o=>{MV(o),Ote(o)},Ste=o=>Vh(o,"VisualAid",c=>{c.setActive(o.hasVisual)}),wte=o=>{o.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:Ste(o),onAction:ff(o,"mceToggleVisualAid")})},Tte=o=>{o.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:ff(o,"mceToggleVisualAid")})},NR=o=>{Tte(o),wte(o)},Cte=(o,c)=>{ute(o),IR(o),kV(o,c),xte(o),a6(o),NR(o),AV(o),CV(o),gte(o)},EV=o=>m(o)?o.split(/[ ,]/):o,_V=o=>c=>c.options.get(o),kte=o=>{const c=o.options.register;c("contextmenu_avoid_overlap",{processor:"string",default:""}),c("contextmenu_never_use_native",{processor:"boolean",default:!1}),c("contextmenu",{processor:g=>g===!1?{value:[],valid:!0}:m(g)||R(g,m)?{value:EV(g),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})},iP=_V("contextmenu_never_use_native"),Ate=_V("contextmenu_avoid_overlap"),RV=o=>DV(o).length===0,DV=o=>{const c=o.ui.registry.getAll().contextMenus,g=o.options.get("contextmenu");return o.options.isSet("contextmenu")?g:xe(g,S=>vn(c,S))},q3=(o,c)=>({type:"makeshift",x:o,y:c}),BR=(o,c,g)=>q3(o.x+c,o.y+g),$V=o=>o.type==="longpress"||o.type.indexOf("touch")===0,Pte=o=>{if($V(o)){const c=o.touches[0];return q3(c.pageX,c.pageY)}else return q3(o.pageX,o.pageY)},Mte=o=>{if($V(o)){const c=o.touches[0];return q3(c.clientX,c.clientY)}else return q3(o.clientX,o.clientY)},Ete=(o,c)=>{const g=$b.DOM.getPos(o);return BR(c,g.x,g.y)},_te=(o,c)=>c.type==="contextmenu"||c.type==="longpress"?o.inline?Pte(c):Ete(o.getContentAreaContainer(),Mte(c)):QR(o),QR=o=>({type:"selection",root:zt.fromDom(o.selection.getNode())}),Rte=o=>({type:"node",node:L.some(zt.fromDom(o.selection.getNode())),root:zt.fromDom(o.getBody())}),LV=(o,c,g)=>{switch(g){case"node":return Rte(o);case"point":return _te(o,c);case"selection":return QR(o)}},Dte=(o,c,g,S,_,H)=>{const K=g(),ve=LV(o,c,H);M2(K,Hm.CLOSE_ON_EXECUTE,S,{isHorizontalMenu:!1,search:L.none()}).map(Ae=>{c.preventDefault(),ri.showMenuAt(_,{anchor:ve},{menu:{markers:Sv("normal")},data:Ae})})},$te={onLtr:()=>[fl,ul,Gl,Yc,sc,Mc,Yh,D2,D3,R3,Ub,_3],onRtl:()=>[fl,Gl,ul,sc,Yc,Mc,Yh,D2,Ub,_3,D3,R3]},Lte=12,Ite={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},Nte=(o,c)=>{const g=o.selection;if(g.isCollapsed()||c.touches.length<1)return!1;{const S=c.touches[0],_=g.getRng();return Xw(o.getWin(),_l.domRange(_)).exists(K=>K.left<=S.clientX&&K.right>=S.clientX&&K.top<=S.clientY&&K.bottom>=S.clientY)}},Bte=o=>{const c=o.selection.getRng(),g=()=>{_b.setEditorTimeout(o,()=>{o.selection.setRng(c)},10),H()};o.once("touchend",g);const S=K=>{K.preventDefault(),K.stopImmediatePropagation()};o.on("mousedown",S,!0);const _=()=>H();o.once("longpresscancel",_);const H=()=>{o.off("touchend",g),o.off("longpresscancel",_),o.off("mousedown",S)}},IV=(o,c,g)=>{const S=LV(o,c,g);return{bubble:Eh(0,g==="point"?Lte:0,Ite),layouts:$te,overrides:{maxWidthFunction:K7(),maxHeightFunction:R0()},...S}},Qte=(o,c,g,S,_,H,K)=>{const ve=IV(o,c,H);M2(g,Hm.CLOSE_ON_EXECUTE,S,{isHorizontalMenu:!0,search:L.none()}).map(Ae=>{c.preventDefault();const Ne=K?mu.HighlightMenuAndItem:mu.HighlightNone;ri.showMenuWithinBounds(_,{anchor:ve},{menu:{markers:Sv("normal"),highlightOnOpen:Ne},data:Ae,type:"horizontal"},()=>L.some(Gb(o,S.shared,H==="node"?"node":"selection"))),o.dispatch(CR)})},NV=(o,c,g,S,_,H)=>{const K=jf(),ve=K.os.isiOS(),Ae=K.os.isMacOS(),Ne=K.os.isAndroid(),Ue=K.deviceType.isTouch(),Je=()=>!(Ne||ve||Ae&&Ue),st=()=>{const ht=g();Qte(o,c,ht,S,_,H,Je())};if((Ae||ve)&&H!=="node"){const ht=()=>{Bte(o),st()};Nte(o,c)?ht():(o.once("selectionchange",ht),o.once("touchend",()=>o.off("selectionchange",ht)))}else st()},BV=o=>m(o)?o==="|":o.type==="separator",FR={type:"separator"},QV=o=>{const c=g=>({text:g.text,icon:g.icon,enabled:g.enabled,shortcut:g.shortcut});if(m(o))return o;switch(o.type){case"separator":return FR;case"submenu":return{type:"nestedmenuitem",...c(o),getSubmenuItems:()=>{const S=o.getSubmenuItems();return m(S)?S:ne(S,QV)}};default:const g=o;return{type:"menuitem",...c(g),onAction:I(g.onAction)}}},k1=(o,c)=>{if(c.length===0)return o;const S=Qe(o).filter(_=>!BV(_)).fold(()=>[],_=>[FR]);return o.concat(S).concat(c).concat([FR])},FV=(o,c,g)=>{const S=ke(c,(_,H)=>Bt(o,H.toLowerCase()).map(K=>{const ve=K.update(g);if(m(ve)&&dn(Pt(ve)))return k1(_,ve.split(" "));if(v(ve)&&ve.length>0){const Ae=ne(ve,QV);return k1(_,Ae)}else return _}).getOrThunk(()=>_.concat([H])),[]);return S.length>0&&BV(S[S.length-1])&&S.pop(),S},Fte=(o,c)=>c.ctrlKey&&!iP(o),Vte=o=>o.type==="longpress"||vn(o,"touches"),VV=(o,c)=>!Vte(c)&&(c.button!==2||c.target===o.getBody()&&c.pointerType===""),zV=(o,c)=>VV(o,c)?o.selection.getStart(!0):c.target,ZV=(o,c)=>{const g=Ate(o),S=VV(o,c)?"selection":"point";if(dn(g)){const _=zV(o,c);return i3(zt.fromDom(_),g)?"node":S}else return S},zte=(o,c,g)=>{const _=jf().deviceType.isTouch,H=oc(ri.sketch({dom:{tag:"div"},lazySink:c,onEscape:()=>o.focus(),onShow:()=>g.setContextMenuState(!0),onHide:()=>g.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:pr([Jo("dismissContextMenu",[qn(Ag(),(Ae,Ne)=>{As.close(Ae),o.focus()})])])})),K=()=>ri.hide(H),ve=Ae=>{if(iP(o)&&Ae.preventDefault(),Fte(o,Ae)||RV(o))return;const Ne=ZV(o,Ae),Ue=()=>{const st=zV(o,Ae),ht=o.ui.registry.getAll(),At=DV(o);return FV(ht.contextMenus,At,st)};(_()?NV:Dte)(o,Ae,Ue,g,H,Ne)};o.on("init",()=>{const Ae="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(_()?"":" ResizeWindow");o.on(Ae,K),o.on("longpress contextmenu",ve)})},VR=we.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),lP=o=>c=>c.translate(-o.left,-o.top),cP=o=>c=>c.translate(o.left,o.top),Mv=o=>(c,g)=>ke(o,(S,_)=>_(S),Is(c,g)),uP=(o,c,g)=>o.fold(Mv([cP(g),lP(c)]),Mv([lP(c)]),Mv([])),U2=(o,c,g)=>o.fold(Mv([cP(g)]),Mv([]),Mv([cP(c)])),HV=(o,c,g)=>o.fold(Mv([]),Mv([lP(g)]),Mv([cP(c),lP(g)])),Zte=(o,c,g,S,_,H)=>{const K=U2(o,_,H),ve=U2(c,_,H);return Math.abs(K.left-ve.left)<=g&&Math.abs(K.top-ve.top)<=S},Hte=(o,c,g,S,_,H)=>{const K=U2(o,_,H),ve=U2(c,_,H),Ae=Math.abs(K.left-ve.left),Ne=Math.abs(K.top-ve.top);return Is(Ae,Ne)},zR=(o,c,g)=>{const S=o.fold((_,H)=>({position:L.some("absolute"),left:L.some(_+"px"),top:L.some(H+"px")}),(_,H)=>({position:L.some("absolute"),left:L.some(_-g.left+"px"),top:L.some(H-g.top+"px")}),(_,H)=>({position:L.some("fixed"),left:L.some(_+"px"),top:L.some(H+"px")}));return{right:L.none(),bottom:L.none(),...S}},UV=(o,c,g)=>o.fold((S,_)=>A1(S+c,_+g),(S,_)=>P1(S+c,_+g),(S,_)=>qb(S+c,_+g)),ZR=(o,c,g,S)=>{const _=(H,K)=>(ve,Ae)=>{const Ne=H(c,g,S);return K(ve.getOr(Ne.left),Ae.getOr(Ne.top))};return o.fold(_(HV,A1),_(U2,P1),_(uP,qb))},A1=VR.offset,P1=VR.absolute,qb=VR.fixed,fP=(o,c)=>{const g=oa(o,c);return x(g)?NaN:parseInt(g,10)},Ute=(o,c)=>{const g=o.element,S=fP(g,c.leftAttr),_=fP(g,c.topAttr);return isNaN(S)||isNaN(_)?L.none():L.some(Is(S,_))},Wte=(o,c,g)=>{const S=o.element;Dr(S,c.leftAttr,g.left+"px"),Dr(S,c.topAttr,g.top+"px")},Yte=(o,c)=>{const g=o.element;sa(g,c.leftAttr),sa(g,c.topAttr)},Xte=(o,c,g,S)=>Ute(o,c).fold(()=>g,_=>qb(_.left+S.left,_.top+S.top)),Gte=(o,c,g,S,_,H)=>{const K=Xte(o,c,g,S),ve=c.mustSnap?qte(o,c,K,_,H):Kte(o,c,K,_,H),Ae=uP(K,_,H);return Wte(o,c,Ae),ve.fold(()=>({coord:qb(Ae.left,Ae.top),extra:L.none()}),Ne=>({coord:Ne.output,extra:Ne.extra}))},jte=(o,c)=>{Yte(o,c)},WV=(o,c,g,S)=>Xe(o,_=>{const H=_.sensor;return Zte(c,H,_.range.left,_.range.top,g,S)?L.some({output:ZR(_.output,c,g,S),extra:_.extra}):L.none()}),qte=(o,c,g,S,_)=>{const H=c.getSnapPoints(o);return WV(H,g,S,_).orThunk(()=>ke(H,(Ae,Ne)=>{const Ue=Ne.sensor,Je=Hte(g,Ue,Ne.range.left,Ne.range.top,S,_);return Ae.deltas.fold(()=>({deltas:L.some(Je),snap:L.some(Ne)}),st=>{const ht=(Je.left+Je.top)/2,At=(st.left+st.top)/2;return ht<=At?{deltas:L.some(Je),snap:L.some(Ne)}:Ae})},{deltas:L.none(),snap:L.none()}).snap.map(Ae=>({output:ZR(Ae.output,g,S,_),extra:Ae.extra})))},Kte=(o,c,g,S,_)=>{const H=c.getSnapPoints(o);return WV(H,g,S,_)},Jte=(o,c,g)=>({coord:ZR(o.output,o.output,c,g),extra:o.extra});var ene=Object.freeze({__proto__:null,snapTo:(o,c,g,S)=>{const _=c.getTarget(o.element);if(c.repositionTarget){const H=Tn(o.element),K=Pl(H),ve=ZQ(_),Ae=Jte(S,K,ve),Ne=zR(Ae.coord,K,ve);fr(_,Ne)}}});const HR="data-initial-z-index",tne=o=>{Fn(o.element).filter(St).each(c=>{Ri(c,HR).fold(()=>Zo(c,"z-index"),g=>Po(c,"z-index",g)),sa(c,HR)})},nne=o=>{Fn(o.element).filter(St).each(c=>{za(c,"z-index").each(g=>{Dr(c,HR,g)}),Po(c,"z-index",Qa(o.element,"z-index"))})},YV=(o,c)=>{o.getSystem().addToGui(c),nne(c)},rne=o=>{tne(o),o.getSystem().removeFromGui(o)},K3=(o,c,g)=>o.getSystem().build(Um.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[c]},events:g}));var one=wc("snaps",[er("getSnapPoints"),Rs("onSensor"),er("leftAttr"),er("topAttr"),Mn("lazyViewport",Vl),Mn("mustSnap",!1)]);const UR=[Mn("useFixed",Y),er("blockerClass"),Mn("getTarget",z),Mn("onDrag",M),Mn("repositionTarget",!0),Mn("onDrop",M),Di("getBounds",Vl),one],sne=o=>Un(za(o,"left"),za(o,"top"),za(o,"position"),(c,g,S)=>(S==="fixed"?qb:A1)(parseInt(c,10),parseInt(g,10))).getOrThunk(()=>{const c=Cl(o);return P1(c.left,c.top)}),ane=(o,c,g,S,_)=>{const H=_.bounds,K=U2(c,g,S),ve=rf(K.left,H.x,H.x+H.width-_.width),Ae=rf(K.top,H.y,H.y+H.height-_.height),Ne=P1(ve,Ae);return c.fold(()=>{const Ue=HV(Ne,g,S);return A1(Ue.left,Ue.top)},F(Ne),()=>{const Ue=uP(Ne,g,S);return qb(Ue.left,Ue.top)})},ine=(o,c,g,S,_,H,K)=>{const ve=c.fold(()=>{const Ae=UV(g,H.left,H.top),Ne=uP(Ae,S,_);return qb(Ne.left,Ne.top)},Ae=>{const Ne=Gte(o,Ae,g,H,S,_);return Ne.extra.each(Ue=>{Ae.onSensor(o,Ue)}),Ne.coord});return ane(o,ve,S,_,K)},lne=(o,c,g,S)=>{const _=c.getTarget(o.element);if(c.repositionTarget){const H=Tn(o.element),K=Pl(H),ve=ZQ(_),Ae=sne(_),Ne=ine(o,c.snaps,Ae,K,ve,S,g),Ue=zR(Ne,K,ve);fr(_,Ue)}c.onDrag(o,_,S)},WR=(o,c)=>({bounds:o.getBounds(),height:Vu(c.element),width:Tf(c.element)}),YR=(o,c,g,S,_)=>{const H=g.update(S,_),K=g.getStartData().getOrThunk(()=>WR(c,o));H.each(ve=>{lne(o,c,K,ve)})},XV=(o,c,g,S)=>{c.each(rne),g.snaps.each(H=>{jte(o,H)});const _=g.getTarget(o.element);S.reset(),g.onDrop(o,_)},XR=o=>(c,g)=>{const S=_=>{g.setStartData(WR(c,_))};return Ea([qn(Oh(),_=>{g.getStartData().each(()=>S(_))}),...o(c,g,S)])},cne=o=>Ea([qn(go(),o.forceDrop),qn(ba(),o.drop),qn(js(),(c,g)=>{o.move(g.event)}),qn(ti(),o.delayDrop)]);var jV=Object.freeze({__proto__:null,getData:o=>L.from(Is(o.x,o.y)),getDelta:(o,c)=>Is(c.left-o.left,c.top-o.top)});const qV=(o,c,g)=>[qn(go(),(S,_)=>{if(_.event.raw.button!==0)return;_.stop();const K=()=>XV(S,L.some(Ne),o,c),ve=mN(K,200),Ae={drop:K,delayDrop:ve.schedule,forceDrop:K,move:Je=>{ve.cancel(),YR(S,o,c,jV,Je)}},Ne=K3(S,o.blockerClass,cne(Ae));(()=>{g(S),YV(S,Ne)})()})],une=[...UR,ha("dragger",{handlers:XR(qV)})],fne=o=>Ea([qn(no(),o.forceDrop),qn(ts(),o.drop),qn(xo(),o.drop),qn(fo(),(c,g)=>{o.move(g.event)})]),dne=o=>{const c=o[0];return L.some(Is(c.clientX,c.clientY))};var KV=Object.freeze({__proto__:null,getData:o=>{const g=o.raw.touches;return g.length===1?dne(g):L.none()},getDelta:(o,c)=>Is(c.left-o.left,c.top-o.top)});const JV=(o,c,g)=>{const S=gs(),_=H=>{XV(H,S.get(),o,c),S.clear()};return[qn(no(),(H,K)=>{K.stop();const ve=()=>_(H),Ae={drop:ve,delayDrop:M,forceDrop:ve,move:Je=>{YR(H,o,c,KV,Je)}},Ne=K3(H,o.blockerClass,fne(Ae));S.set(Ne),(()=>{g(H),YV(H,Ne)})()}),qn(fo(),(H,K)=>{K.stop(),YR(H,o,c,KV,K.event)}),qn(ts(),(H,K)=>{K.stop(),_(H)}),qn(xo(),_)]},hne=[...UR,ha("dragger",{handlers:XR(JV)})],mne=(o,c,g)=>[...qV(o,c,g),...JV(o,c,g)],gne=[...UR,ha("dragger",{handlers:XR(mne)})];var pne=Object.freeze({__proto__:null,mouse:une,touch:hne,mouseOrTouch:gne}),vne=Object.freeze({__proto__:null,init:()=>{let o=L.none(),c=L.none();const g=()=>{o=L.none(),c=L.none()},S=(Ae,Ne)=>{const Ue=o.map(Je=>Ae.getDelta(Je,Ne));return o=L.some(Ne),Ue},_=(Ae,Ne)=>Ae.getData(Ne).bind(Ue=>S(Ae,Ue)),H=Ae=>{c=L.some(Ae)},K=()=>c,ve=F({});return Cu({readState:ve,reset:g,update:_,getStartData:K,setStartData:H})}});const M1=px({branchKey:"mode",branches:pne,name:"dragging",active:{events:(o,c)=>o.dragger.handlers(o,c)},extra:{snap:o=>({sensor:o.sensor,range:o.range,output:o.output,extra:L.from(o.extra)})},state:vne,apis:ene}),GR=40,dP=GR/2,ez=(o,c,g,S,_,H)=>o.fold(()=>M1.snap({sensor:P1(g-dP,S-dP),range:Is(_,H),output:P1(L.some(g),L.some(S)),extra:{td:c}}),K=>{const ve=g-dP,Ae=S-dP,Ne=GR,Ue=GR,Je=K.element.dom.getBoundingClientRect();return M1.snap({sensor:P1(ve,Ae),range:Is(Ne,Ue),output:P1(L.some(g-Je.width/2),L.some(S-Je.height/2)),extra:{td:c}})}),tz=(o,c,g)=>{const S=(_,H)=>_.exists(K=>Jt(K,H));return{getSnapPoints:o,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(_,H)=>{const K=H.td;S(c.get(),K)||(c.set(K),g(K))},mustSnap:!0}},nz=o=>ia(Dl.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:pr([M1.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:o}),d3.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),yne=(o,c)=>{const g=X([]),S=X([]),_=X(!1),H=gs(),K=gs(),ve=Or=>{const Mr=wu(Or);return ez(ht.getOpt(c),Or,Mr.x,Mr.y,Mr.width,Mr.height)},Ae=()=>ne(g.get(),Or=>ve(Or)),Ne=Or=>{const Mr=wu(Or);return ez(At.getOpt(c),Or,Mr.right,Mr.bottom,Mr.width,Mr.height)},Ue=()=>ne(S.get(),Or=>Ne(Or)),Je=tz(Ae,H,Or=>{K.get().each(Mr=>{o.dispatch("TableSelectorChange",{start:Or,finish:Mr})})}),st=tz(Ue,K,Or=>{H.get().each(Mr=>{o.dispatch("TableSelectorChange",{start:Mr,finish:Or})})}),ht=nz(Je),At=nz(st),qt=oc(ht.asSpec()),Dn=oc(At.asSpec()),mn=(Or,Mr,is,Gr)=>{const Io=Mr.dom.getBoundingClientRect();Zo(Or.element,"display");const _o=Jn(zt.fromDom(o.getBody())).dom.innerHeight,na=is(Io),wo=Gr(Io,_o);(na||wo)&&Po(Or.element,"display","none")},on=(Or,Mr,is,Gr)=>{const Io=is(Mr);M1.snapTo(Or,Io),mn(Or,Mr,wo=>wo[Gr]<0,(wo,Ns)=>wo[Gr]>Ns)},kn=Or=>on(qt,Or,ve,"top"),Zn=()=>H.get().each(kn),mr=Or=>on(Dn,Or,Ne,"bottom"),Gn=()=>K.get().each(mr);jf().deviceType.isTouch()&&(o.on("TableSelectionChange",Or=>{_.get()||(Hg(c,qt),Hg(c,Dn),_.set(!0)),H.set(Or.start),K.set(Or.finish),Or.otherCells.each(Mr=>{g.set(Mr.upOrLeftCells),S.set(Mr.downOrRightCells),kn(Or.start),mr(Or.finish)})}),o.on("ResizeEditor ResizeWindow ScrollContent",()=>{Zn(),Gn()}),o.on("TableSelectionClear",()=>{_.get()&&(Rh(qt),Rh(Dn),_.set(!1)),H.clear(),K.clear()}))};var bne=` + + +`;const One=o=>o.nodeName==="BR"||!!o.getAttribute("data-mce-bogus")||o.getAttribute("data-mce-type")==="bookmark",rz=(o,c,g)=>{var S;const _=(S=c.delimiter)!==null&&S!==void 0?S:"›",H=(Ne,Ue,Je)=>Dl.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":Je,"aria-level":Je+1}},components:[yi(Ne)],action:st=>{o.focus(),o.selection.select(Ue),o.nodeChanged()},buttonBehaviours:pr([tl.button(g.isDisabled),gl()])}),K=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[yi(` ${_} `)]}),ve=Ne=>ke(Ne,(Ue,Je,st)=>{const ht=H(Je.name,Je.element,st);return st===0?Ue.concat([ht]):Ue.concat([K(),ht])},[]),Ae=Ne=>{const Ue=[];let Je=Ne.length;for(;Je-- >0;){const st=Ne[Je];if(st.nodeType===1&&!One(st)){const ht=QI(o,st);if(ht.isDefaultPrevented()||Ue.push({name:ht.name,element:st}),ht.isPropagationStopped())break}}return Ue};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:pr([yo.config({mode:"flow",selector:"div[role=button]"}),Co.config({disabled:g.isDisabled}),gl(),Ga.config({}),Uo.config({}),Jo("elementPathEvents",[Ca((Ne,Ue)=>{o.shortcuts.add("alt+F11","focus statusbar elementpath",()=>yo.focusIn(Ne)),o.on("NodeChange",Je=>{const st=Ae(Je.parents),ht=st.length>0?ve(st):[];Uo.set(Ne,ht)})})])]),components:[]}};var Ev;(function(o){o[o.None=0]="None",o[o.Both=1]="Both",o[o.Vertical=2]="Vertical"})(Ev||(Ev={}));const Kb=(o,c,g,S,_)=>{const H={height:X3(S+c.top,r2(o),G_(o))};return g===Ev.Both&&(H.width=X3(_+c.left,X_(o),jA(o))),H},oz=(o,c,g)=>{const S=zt.fromDom(o.getContainer()),_=Kb(o,c,g,Za(S),Si(S));Ye(_,(H,K)=>{T(H)&&Po(S,K,Z2(H))}),NI(o)},jR=o=>{const c=TL(o);return c===!1?Ev.None:c==="both"?Ev.Both:Ev.Vertical},Jb=(o,c,g,S)=>{const H=Is(g*20,S*20);return oz(o,H,c),L.some(!0)},xne=(o,c)=>{const g=jR(o);if(g===Ev.None)return L.none();const S=g===Ev.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return L.some(Bh("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:c.translate("Resize"),"aria-label":c.translate(S)},behaviours:[M1.config({mode:"mouse",repositionTarget:!1,onDrag:(_,H,K)=>oz(o,K,g),blockerClass:"tox-blocker"}),yo.config({mode:"special",onLeft:()=>Jb(o,g,-1,0),onRight:()=>Jb(o,g,1,0),onUp:()=>Jb(o,g,0,-1),onDown:()=>Jb(o,g,0,1)}),Ga.config({}),Mo.config({})]},c.icons))},Sne=(o,c)=>{const g=(S,_,H)=>Uo.set(S,[yi(c.translate(["{0} "+H,_[H]]))]);return Dl.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:pr([tl.button(c.isDisabled),gl(),Ga.config({}),Uo.config({}),Fr.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Jo("wordcount-events",[rd(S=>{const _=Fr.getValue(S),H=_.mode==="words"?"characters":"words";Fr.setValue(S,{mode:H,count:_.count}),g(S,_.count,H)}),Ca(S=>{o.on("wordCountUpdate",_=>{const{mode:H}=Fr.getValue(S);Fr.setValue(S,{mode:H,count:_.wordCount}),g(S,_.wordCount,H)})})])]),eventOrder:{[Ii()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},wne=(o,c)=>{const g=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=editor_referral&utm_medium=poweredby&utm_source=tinymce&utm_content=v6",rel:"noopener",target:"_blank","aria-label":dd.translate(["Powered by {0}","Tiny"])},innerHtml:bne.trim()},behaviours:pr([Mo.config({})])}]}),S=()=>{const ve=b5("Alt+0"),Ae="Press {0} for help";return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[yi(dd.translate([Ae,ve]))]}},_=()=>{const ve=[];return o.hasPlugin("wordcount")&&ve.push(Sne(o,c)),n8(o)&&ve.push(g()),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:ve}},H=()=>{const ve=[],Ae=n5(o),Ne=s2(o),Ue=n8(o)||o.hasPlugin("wordcount"),Je=()=>{const st="tox-statusbar__text-container--flex-start",ht="tox-statusbar__text-container--flex-end",At="tox-statusbar__text-container--space-around";if(Ae){const qt="tox-statusbar__text-container-3-cols";return!Ue&&!Ne?[qt,At]:Ue&&!Ne?[qt,ht]:[qt,st]}return[Ue&&!Ne?ht:st]};return Ne&&ve.push(rz(o,{},c)),Ae&&ve.push(S()),Ue&&ve.push(_()),ve.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...Je()]},components:ve}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const ve=H(),Ae=xne(o,c);return ve.concat(Ae.toArray())})()}},sz=(o,c)=>c.get().getOrDie(`UI for ${o} has not been rendered`),Tne=(o,c)=>{const g=o.inline,S=g?Wee:Vee,_=UT(o)?rF:MK,H=Yee(),K=gs(),ve=gs(),Ae=gs(),st=jf().deviceType.isTouch()?["tox-platform-touch"]:[],ht=a8(o),At=o2(o),qt=ia({dom:{tag:"div",classes:["tox-anchorbar"]}}),Dn=ia({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),mn=()=>H.mainUi.get().map(To=>To.outerContainer).bind($a.getHeader),on=()=>jo.fromOption(H.dialogUi.get().map(To=>To.sink),"UI has not been rendered"),kn=()=>jo.fromOption(H.popupUi.get().map(To=>To.sink),"(popup) UI has not been rendered"),Zn=H.lazyGetInOuterOrDie("anchor bar",qt.getOpt),mr=H.lazyGetInOuterOrDie("bottom anchor bar",Dn.getOpt),Gn=H.lazyGetInOuterOrDie("toolbar",$a.getToolbar),Or=H.lazyGetInOuterOrDie("throbber",$a.getThrobber),Mr=xK({popup:kn,dialog:on},o,Zn,mr),is=()=>{const To={attributes:{[D0]:ht?Lf.BottomToTop:Lf.TopToBottom}},Yo=$a.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:Mr.popup,onEscape:()=>{o.focus()}}),Ma=$a.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:Mr.popup.shared.getSink,providers:Mr.popup.shared.providers,onEscape:()=>{o.focus()},onToolbarToggled:sC=>{hX(o,sC)},type:At,lazyToolbar:Gn,lazyHeader:()=>mn().getOrDie("Could not find header element"),...To}),Fs=$a.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:Mr.popup.shared.providers,onEscape:()=>{o.focus()},type:At}),Kl=HT(o),vf=o5(o),ih=a2(o),Kh=CL(o),R1=Gr(),iO=Kl||vf||ih,Km=()=>Kl?[Fs]:vf?[Ma]:[],Rv=Kh?[R1,Yo]:[Yo];return $a.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(iO?[]:["tox-editor-header--empty"]),...To},components:Ie([ih?Rv:[],Km(),i2(o)?[]:[qt.asSpec()]]),sticky:UT(o),editor:o,sharedBackstage:Mr.popup.shared})},Gr=()=>$a.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),Io=()=>{const To=$a.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),Yo=$a.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}});return{dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[To,Yo]}},_o=()=>{const To=i8(o),Yo=Jt(ya(),To)&&Qa(To,"display")==="grid",Ma={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(st),attributes:{...dd.isRtl()?{dir:"rtl"}:{}}},behaviours:pr([ac.config({useFixed:()=>_.isDocked(mn)})])},Fs={dom:{styles:{width:document.body.clientWidth+"px"}},events:Ea([qn(Qd(),ih=>{Po(ih.element,"width",document.body.clientWidth+"px")})])},Kl=oc(Ta(Ma,Yo?Fs:{})),vf=L5(Kl);return ve.set(vf),{sink:Kl,mothership:vf}},na=()=>{const To={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(st),attributes:{...dd.isRtl()?{dir:"rtl"}:{}}},behaviours:pr([ac.config({useFixed:()=>_.isDocked(mn),getBounds:()=>c.getPopupSinkBounds()})])},Yo=oc(To),Ma=L5(Yo);return Ae.set(Ma),{sink:Yo,mothership:Ma}},wo=()=>{const To=is(),Yo=Io(),Ma=$a.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:Mr.popup}),Fs=$a.parts.viewWrapper({backstage:Mr.popup}),Kl=wL(o)&&!g?L.some(wne(o,Mr.popup.shared.providers)):L.none(),vf=Ie([ht?[]:[To],g?[]:[Yo],ht?[To]:[]]),ih=$a.parts.editorContainer({components:Ie([vf,g?[]:[Dn.asSpec(),...Kl.toArray()]])}),Kh=l8(o),R1={role:"application",...dd.isRtl()?{dir:"rtl"}:{},...Kh?{"aria-hidden":"true"}:{}},iO=oc($a.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(g?["tox-tinymce-inline"]:[]).concat(ht?["tox-tinymce--toolbar-bottom"]:[]).concat(st),styles:{visibility:"hidden",...Kh?{opacity:"0",border:"0"}:{}},attributes:R1},components:[ih,...g?[]:[Fs],Ma],behaviours:pr([gl(),Co.config({disableClass:"tox-tinymce--disabled"}),yo.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),Km=L5(iO);return K.set(Km),{mothership:Km,outerContainer:iO}},Ns=To=>{const Yo=Z2(dV(o)),Ma=Z2(zee(o));return o.inline||(yl("div","width",Ma)&&Po(To.element,"width",Ma),yl("div","height",Yo)?Po(To.element,"height",Yo):Po(To.element,"height","400px")),Yo},Pr=To=>{o.addShortcut("alt+F9","focus menubar",()=>{$a.focusMenubar(To)}),o.addShortcut("alt+F10","focus toolbar",()=>{$a.focusToolbar(To)}),o.addCommand("ToggleToolbarDrawer",(Yo,Ma)=>{Ma!=null&&Ma.skipFocus?$a.toggleToolbarDrawerWithoutFocusing(To):$a.toggleToolbarDrawer(To)}),o.addQueryStateHandler("ToggleToolbarDrawer",()=>$a.isToolbarDrawerToggled(To))},oo=To=>{const{mainUi:Yo,popupUi:Ma,uiMotherships:Fs}=To;je(yL(o),(eS,kP)=>{o.ui.registry.addGroupToolbarButton(kP,eS)});const{buttons:Kl,menuItems:vf,contextToolbars:ih,sidebars:Kh,views:R1}=o.ui.registry.getAll(),iO=s8(o),Km={menuItems:vf,menus:ML(o),menubar:q_(o),toolbar:iO.getOrThunk(()=>KA(o)),allowToolbarGroups:At===Qf.floating,buttons:Kl,sidebar:Kh,views:R1};Pr(Yo.outerContainer),L2(o,Yo.mothership,Fs),_.setup(o,Mr.popup.shared,mn),Cte(o,Mr.popup),zte(o,Mr.popup.shared.getSink,Mr.popup),aJ(o),L4(o,Or,Mr.popup.shared),cte(o,ih,Ma.sink,{backstage:Mr.popup}),yne(o,Ma.sink);const Rv=o.getElement(),sC=Ns(Yo.outerContainer),oD={targetNode:Rv,height:sC};return S.render(o,To,Km,Mr.popup,oD)},No=To=>(Ae.set(To.mothership),To),Qo=()=>{const To=wo(),Yo=_o(),Ma=Kg(o)?na():No(Yo);H.dialogUi.set(Yo),H.popupUi.set(Ma),H.mainUi.set(To);const Fs={popupUi:Ma,dialogUi:Yo,mainUi:To,uiMotherships:H.getUiMotherships()};return oo(Fs)};return{popups:{backstage:Mr.popup,getMothership:()=>sz("popups",Ae)},dialogs:{backstage:Mr.dialog,getMothership:()=>sz("dialogs",ve)},renderUI:Qo}},eO=(o,c)=>{const g=Ri(o,"id").fold(()=>{const S=Kr("dialog-label");return Dr(c,"id",S),S},z);Dr(o,"aria-labelledby",g)},az=F([er("lazySink"),Ws("dragBlockClass"),Di("getBounds",Vl),Mn("useTabstopAt",ie),Mn("firstTabstop",0),Mn("eventOrder",{}),el("modalBehaviours",[yo]),Eu("onExecute"),fw("onEscape")]),qR={sketch:z},Cne=F([fu({name:"draghandle",overrides:(o,c)=>({behaviours:pr([M1.config({mode:"mouse",getTarget:g=>Pu(g,'[role="dialog"]').getOr(g),blockerClass:o.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: +`+JSON.stringify(c,null,2)).message),getBounds:o.getDragBounds})])})}),ic({schema:[er("dom")],name:"title"}),ic({factory:qR,schema:[er("dom")],name:"close"}),ic({factory:qR,schema:[er("dom")],name:"body"}),fu({factory:qR,schema:[er("dom")],name:"footer"}),cd({factory:{sketch:(o,c)=>({...o,dom:c.dom,components:c.components})},schema:[Mn("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Mn("components",[])],name:"blocker"})]),kne=(o,c,g,S)=>{const _=gs(),H=ht=>{_.set(ht);const At=o.lazySink(ht).getOrDie(),qt=S.blocker(),Dn=At.getSystem().build({...qt,components:qt.components.concat([nf(ht)]),behaviours:pr([Mo.config({}),Jo("dialog-blocker-events",[xh(Do(),()=>{Xm.isBlocked(ht)?M():yo.focusIn(ht)})])])});Hg(At,Dn),yo.focusIn(ht)},K=ht=>{_.clear(),Fn(ht.element).each(At=>{ht.getSystem().getByDom(At).each(qt=>{Rh(qt)})})},ve=ht=>Nm(ht,o,"body"),Ae=ht=>ka(ht,o,"footer"),Ne=(ht,At)=>{Xm.block(ht,At)},Ue=ht=>{Xm.unblock(ht)},Je=Kr("modal-events"),st={...o.eventOrder,[ef()]:[Je].concat(o.eventOrder["alloy.system.attached"]||[])};return{uid:o.uid,dom:o.dom,components:c,apis:{show:H,hide:K,getBody:ve,getFooter:Ae,setIdle:Ue,setBusy:Ne},eventOrder:st,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Ni(o.modalBehaviours,[Uo.config({}),yo.config({mode:"cyclic",onEnter:o.onExecute,onEscape:o.onEscape,useTabstopAt:o.useTabstopAt,firstTabstop:o.firstTabstop}),Xm.config({getRoot:_.get}),Jo(Je,[Ca(ht=>{eO(ht.element,Nm(ht,o,"title").element)})])])}},Sl=lc({name:"ModalDialog",configFields:az(),partFields:Cne(),factory:kne,apis:{show:(o,c)=>{o.show(c)},hide:(o,c)=>{o.hide(c)},getBody:(o,c)=>o.getBody(c),getFooter:(o,c)=>o.getFooter(c),setBusy:(o,c,g)=>{o.setBusy(c,g)},setIdle:(o,c)=>{o.setIdle(c)}}}),Ane=uo([Gi,T8].concat(Bb)),Pne=_f,KR=[g5("button"),hd,Hc("align","end",["start","end"]),np,jd,Ld("buttonType",["primary","secondary"])],iz=[...KR,wv],J3=[Rf("type",["submit","cancel","custom"]),...iz],eC=[Rf("type",["menu"]),tp,GT,hd,rc("items",Ane),...KR],JR=[...KR,Rf("type",["togglebutton"]),zs("tooltip"),hd,tp,Wi("active",!1)],hP=Os("type",{submit:J3,cancel:J3,custom:J3,menu:eC,togglebutton:JR}),tO=[Gi,wv,Rf("level",["info","warn","error","success"]),C8,Mn("url","")],mP=uo(tO),Mne=o=>[Gi,o],lz=[Gi,wv,jd,g5("button"),hd,GL,Ld("buttonType",["primary","secondary","toolbar"]),np],cz=uo(lz),nO=[Gi,T8],Gm=nO.concat([h5]),Ene=nO.concat([d5,jd]),_ne=uo(Ene),uz=_f,fz=Gm.concat([jL("auto")]),eD=uo(fz),Rne=Dd([f2,wv,C8]),Dne=Gm.concat([nd("storageKey","default")]),$ne=uo(Dne),dz=al,Lne=uo(Gm),Ine=al,tD=nO.concat([nd("tag","textarea"),zs("scriptId"),zs("scriptUrl"),qC("settings",void 0)]),nD=nO.concat([nd("tag","textarea"),qu("init")]),Nne=Ml(o=>da("customeditor.old",ca(nD),o).orThunk(()=>da("customeditor.new",ca(tD),o))),hz=al,Bne=uo(Gm),mz=QO(),Qne=o=>[Gi,Cg("columns"),o],Fne=[Gi,zs("html"),Hc("presets","presentation",["presentation","document"])],rO=uo(Fne),gz=Gm.concat([Wi("border",!1),Wi("sandboxed",!0),Wi("streamContent",!1),Wi("transparent",!0)]),Vne=uo(gz),gP=al,W2=uo(nO.concat([ll("height")])),pP=uo([zs("url"),fi("zoom"),fi("cachedWidth"),fi("cachedHeight")]),pz=Gm.concat([ll("inputMode"),ll("placeholder"),Wi("maximized",!1),jd]),vP=uo(pz),mf=al,yP=o=>[Gi,d5,o,Hc("align","start",["start","center","end"])],vz=[wv,f2],yz=[wv,rc("items",jp("items",()=>bz))],bz=Xr([uo(vz),uo(yz)]),zne=Gm.concat([rc("items",bz),jd]),E1=uo(zne),Pce=al,Zne=Gm.concat([a0("items",[wv,f2]),td("size",1),jd]),Oz=uo(Zne),Y2=al,bP=Gm.concat([Wi("constrain",!0),jd]),xz=uo(bP),Sz=uo([zs("width"),zs("height")]),Hne=nO.concat([d5,td("min",0),td("max",0)]),Une=uo(Hne),Wne=Gp,X2=[Gi,rc("header",al),rc("cells",Gu(al))],Mce=uo(X2),Yne=Gm.concat([ll("placeholder"),Wi("maximized",!1),jd]),Xne=uo(Yne),Ece=al,wz=[Rf("type",["directory","leaf"]),WL,zs("id"),au("menu",Q3)],G2=uo(wz),Gne=wz.concat([rc("children",jp("children",()=>lr("type",{directory:Tz,leaf:G2})))]),Tz=uo(Gne),Cz=lr("type",{directory:Tz,leaf:G2}),jne=[Gi,rc("items",Cz),Jf("onLeafAction"),Jf("onToggleExpand"),Cc("defaultExpandedIds",[],al),ll("defaultSelectedId")],Rce=uo(jne),n=Gm.concat([Hc("filetype","file",["image","media","file"]),jd,ll("picker_text")]),s=uo(n),l=uo([f2,jT]),h=o=>il("items","items",Ks(),Gu(Ml(c=>da(`Checking item of ${o}`,O,c).fold(g=>jo.error(Zl(g)),g=>jo.value(g))))),O=sl(()=>lr("type",{alertbanner:mP,bar:uo(Mne(h("bar"))),button:cz,checkbox:_ne,colorinput:$ne,colorpicker:Lne,dropzone:Bne,grid:uo(Qne(h("grid"))),iframe:Vne,input:vP,listbox:E1,selectbox:Oz,sizeinput:xz,slider:Une,textarea:Xne,urlinput:s,customeditor:Nne,htmlpanel:rO,imagepreview:W2,collection:eD,label:uo(yP(h("label"))),table:Mce,tree:Rce,panel:Z})),P=[Gi,Mn("classes",[]),rc("items",O)],Z=uo(P),J=[g5("tab"),WL,rc("items",O)],he=[Gi,a0("tabs",J)],_e=uo(he),Ge=iz,qe=hP,ot=uo([zs("title"),Zc("body",lr("type",{panel:Z,tabpanel:_e})),nd("size","normal"),Cc("buttons",[],qe),Mn("initialData",{}),Di("onAction",M),Di("onChange",M),Di("onSubmit",M),Di("onClose",M),Di("onCancel",M),Di("onTabChange",M)]),Et=o=>da("dialog",ot,o),Vt=uo([Rf("type",["cancel","custom"]),...Ge]),kt=uo([zs("title"),zs("url"),fi("height"),fi("width"),Id("buttons",Vt),Di("onAction",M),Di("onCancel",M),Di("onClose",M),Di("onMessage",M)]),It=o=>da("dialog",kt,o),cn=o=>u(o)?[o].concat(re(Nt(o),cn)):v(o)?re(o,cn):[],xn=o=>m(o.type)&&m(o.name),bn={checkbox:uz,colorinput:dz,colorpicker:Ine,dropzone:mz,input:mf,iframe:gP,imagepreview:pP,selectbox:Y2,sizeinput:Sz,slider:Wne,listbox:Pce,size:Sz,textarea:Ece,urlinput:l,customeditor:hz,collection:Rne,togglemenuitem:Pne},$n=o=>L.from(bn[o.type]),rr=o=>xe(cn(o),xn),gr=o=>{const c=rr(o),g=re(c,S=>$n(S).fold(()=>[],_=>[Zc(S.name,_)]));return uo(g)},Qr=o=>{var c;const g=aa(Et(o)),S=gr(o),_=(c=o.initialData)!==null&&c!==void 0?c:{};return{internalDialog:g,dataValidator:S,initialData:_}},zn={open:(o,c)=>{const g=Qr(c);return o(g.internalDialog,g.initialData,g.dataValidator)},openUrl:(o,c)=>{const g=aa(It(c));return o(g)},redial:o=>Qr(o)};var tr=Object.freeze({__proto__:null,events:(o,c)=>{const g=(S,_)=>{o.updateState.each(H=>{const K=H(S,_);c.set(K)}),o.renderComponents.each(H=>{const K=H(_,c.get());(o.reuseDom?M9:hu)(S,K)})};return Ea([qn(Wl(),(S,_)=>{const H=_;if(!H.universal){const K=o.channel;be(H.channels,K)&&g(S,H.data)}}),Ca((S,_)=>{o.initialData.each(H=>{g(S,H)})})])}}),po=Object.freeze({__proto__:null,getState:(o,c,g)=>g}),ls=[er("channel"),Ws("renderComponents"),Ws("updateState"),Ws("initialData"),Wi("reuseDom",!0)],ma=Object.freeze({__proto__:null,init:()=>{const o=X(L.none()),c=()=>o.set(L.none());return{readState:()=>o.get().getOr("none"),get:o.get,set:o.set,clear:c}}});const $s=dl({fields:ls,name:"reflecting",active:tr,apis:po,state:ma}),hi=o=>{const c=[],g={};return Ye(o,(S,_)=>{S.fold(()=>{c.push(_)},H=>{g[_]=H})}),c.length>0?jo.error(c):jo.value(g)},uc=(o,c,g)=>{const S=ia(A2.sketch(_=>({dom:{tag:"div",classes:["tox-form"].concat(o.classes)},components:ne(o.items,H=>Wh(_,H,c,g))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[S.asSpec()]}],behaviours:pr([yo.config({mode:"acyclic",useTabstopAt:B(b3)}),Ff.memento(S),p3(S,{postprocess:_=>hi(_).fold(H=>(console.error(H),{}),z)}),Jo("dialog-body-panel",[qn(Do(),(_,H)=>{_.getSystem().broadcastOn([x3],{newFocus:L.some(H.event.target)})})])])}},ga=(o,c)=>({uid:o.uid,dom:o.dom,components:o.components,events:Vm(o.action),behaviours:Ni(o.tabButtonBehaviours,[Mo.config({}),yo.config({mode:"execution",useSpace:!0,useEnter:!0}),Fr.config({store:{mode:"memory",initialValue:o.value}})]),domModification:o.domModification}),Cr=_u({name:"TabButton",configFields:[Mn("uid",void 0),er("value"),il("dom","dom",hs(()=>({attributes:{role:"tab",id:Kr("aria"),"aria-selected":"false"}})),vi()),Ws("action"),Mn("domModification",{}),el("tabButtonBehaviours",[Mo,yo,Fr]),er("view")],factory:ga}),co=F([er("tabs"),er("dom"),Mn("clickToDismiss",!1),el("tabbarBehaviours",[Ys,yo]),$g(["tabClass","selectedClass"])]),Zs=yb({factory:Cr,name:"tabs",unit:"tab",overrides:o=>{const c=(S,_)=>{Ys.dehighlight(S,_),vo(S,ZO(),{tabbar:S,button:_})},g=(S,_)=>{Ys.highlight(S,_),vo(S,JC(),{tabbar:S,button:_})};return{action:S=>{const _=S.getSystem().getByUid(o.uid).getOrDie(),H=Ys.isHighlighted(_,S);(()=>H&&o.clickToDismiss?c:H?M:g)()(_,S)},domModification:{classes:[o.markers.tabClass]}}}}),Ss=F([Zs]),ro=(o,c,g,S)=>({uid:o.uid,dom:o.dom,components:c,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Ni(o.tabbarBehaviours,[Ys.config({highlightClass:o.markers.selectedClass,itemClass:o.markers.tabClass,onHighlight:(_,H)=>{Dr(H.element,"aria-selected","true")},onDehighlight:(_,H)=>{Dr(H.element,"aria-selected","false")}}),yo.config({mode:"flow",getInitial:_=>Ys.getHighlighted(_).map(H=>H.element),selector:"."+o.markers.tabClass,executeOnMove:!0})])}),Lo=lc({name:"Tabbar",configFields:co(),partFields:Ss(),factory:ro}),yr=(o,c)=>({uid:o.uid,dom:o.dom,behaviours:Ni(o.tabviewBehaviours,[Uo.config({})]),domModification:{attributes:{role:"tabpanel"}}}),Bo=_u({name:"Tabview",configFields:[el("tabviewBehaviours",[Uo])],factory:yr}),Ls=F([Mn("selectFirst",!0),Rs("onChangeTab"),Rs("onDismissTab"),Mn("tabs",[]),el("tabSectionBehaviours",[])]),Aa=ic({factory:Lo,schema:[er("dom"),su("markers",[er("tabClass"),er("selectedClass")])],name:"tabbar",defaults:o=>({tabs:o.tabs})}),Sa=ic({factory:Bo,name:"tabview"}),$l=F([Aa,Sa]),Xh=(o,c,g,S)=>{const _=K=>{const ve=Fr.getValue(K);ka(K,o,"tabview").each(Ae=>{Ze(o.tabs,Ue=>Ue.value===ve).each(Ue=>{const Je=Ue.view();Ri(K.element,"id").each(st=>{Dr(Ae.element,"aria-labelledby",st)}),Uo.set(Ae,Je),o.onChangeTab(Ae,K,Je)})})},H=(K,ve)=>{ka(K,o,"tabbar").each(Ae=>{ve(Ae).each(xm)})};return{uid:o.uid,dom:o.dom,components:c,behaviours:Lm(o.tabSectionBehaviours),events:Ea(Ie([o.selectFirst?[Ca((K,ve)=>{H(K,Ys.getFirst)})]:[],[qn(JC(),(K,ve)=>{const Ae=ve.event.button;_(Ae)}),qn(ZO(),(K,ve)=>{const Ae=ve.event.button;o.onDismissTab(K,Ae)})]])),apis:{getViewItems:K=>ka(K,o,"tabview").map(ve=>Uo.contents(ve)).getOr([]),showTab:(K,ve)=>{H(K,Ne=>{const Ue=Ys.getCandidates(Ne);return Ze(Ue,st=>Fr.getValue(st)===ve).filter(st=>!Ys.isHighlighted(Ne,st))})}}}},zf=lc({name:"TabSection",configFields:Ls(),partFields:$l(),factory:Xh,apis:{getViewItems:(o,c)=>o.getViewItems(c),showTab:(o,c,g)=>{o.showTab(c,g)}}}),$u=(o,c,g)=>ne(o,(S,_)=>{Uo.set(g,o[_].view());const H=c.dom.getBoundingClientRect();return Uo.set(g,[]),H.height}),sh=o=>Ce(Se(o,(c,g)=>c>g?-1:c{const S=pn(o).dom,_=Pu(o,".tox-dialog-wrap").getOr(o),H=Qa(_,"position")==="fixed";let K;H?K=Math.max(S.clientHeight,window.innerHeight):K=Math.max(S.offsetHeight,S.scrollHeight);const ve=Za(c),Ne=c.dom.offsetLeft>=g.dom.offsetLeft+Si(g)?Math.max(Za(g),ve):ve,Ue=parseInt(Qa(o,"margin-top"),10)||0,Je=parseInt(Qa(o,"margin-bottom"),10)||0,ht=Za(o)+Ue+Je-Ne;return K-ht},Hs=(o,c)=>{Ce(o).each(g=>zf.showTab(c,g.value))},Pa=(o,c)=>{Po(o,"height",c+"px"),Po(o,"flex-basis",c+"px")},oi=(o,c,g)=>{Pu(o,'[role="dialog"]').each(S=>{Ai(S,'[role="tablist"]').each(_=>{g.get().map(H=>(Po(c,"height","0"),Po(c,"flex-basis","0"),Math.min(H,Wo(S,c,_)))).each(H=>{Pa(c,H)})})})},Ua=o=>Ai(o,'[role="tabpanel"]'),gf=o=>{const c=gs();return{extraEvents:[Ca(_=>{const H=_.element;Ua(H).each(K=>{Po(K,"visibility","hidden"),_.getSystem().getByDom(K).toOptional().each(ve=>{const Ae=$u(o,K,ve);sh(Ae).fold(c.clear,c.set)}),oi(H,K,c),Zo(K,"visibility"),Hs(o,_),requestAnimationFrame(()=>{oi(H,K,c)})})}),qn(Qd(),_=>{const H=_.element;Ua(H).each(K=>{oi(H,K,c)})}),qn(CN,(_,H)=>{const K=_.element;Ua(K).each(ve=>{const Ae=Mh(es(ve));Po(ve,"visibility","hidden");const Ne=za(ve,"height").map(st=>parseInt(st,10));Zo(ve,"height"),Zo(ve,"flex-basis");const Ue=ve.dom.getBoundingClientRect().height;Ne.forall(st=>Ue>st)?(c.set(Ue),oi(K,ve,c)):Ne.each(st=>{Pa(ve,st)}),Zo(ve,"visibility"),Ae.each(cu)})})],selectFirst:!1}},Gh="send-data-to-section",_v="send-data-to-view",OP=(o,c,g)=>{const S=X({}),_=Ne=>{const Ue=Fr.getValue(Ne),Je=hi(Ue).getOr({}),st=S.get(),ht=Ta(st,Je);S.set(ht)},H=Ne=>{const Ue=S.get();Fr.setValue(Ne,Ue)},K=X(null),ve=ne(o.tabs,Ne=>({value:Ne.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[yi(g.shared.providers.translate(Ne.title))],view:()=>[A2.sketch(Ue=>({dom:{tag:"div",classes:["tox-form"]},components:ne(Ne.items,Je=>Wh(Ue,Je,c,g)),formBehaviours:pr([yo.config({mode:"acyclic",useTabstopAt:B(b3)}),Jo("TabView.form.events",[Ca(H),Sh(_)]),lu.config({channels:bt([{key:Gh,value:{onReceive:_}},{key:_v,value:{onReceive:H}}])})])}))]})),Ae=gf(ve);return zf.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:(Ne,Ue,Je)=>{const st=Fr.getValue(Ue);vo(Ne,TN,{name:st,oldName:K.get()}),K.set(st)},tabs:ve,components:[zf.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[Lo.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:pr([Ga.config({})])}),zf.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:Ae.selectFirst,tabSectionBehaviours:pr([Jo("tabpanel",Ae.extraEvents),yo.config({mode:"acyclic"}),xs.config({find:Ne=>Ce(zf.getViewItems(Ne))}),v1(L.none(),Ne=>(Ne.getSystem().broadcastOn([Gh],{}),S.get()),(Ne,Ue)=>{S.set(Ue),Ne.getSystem().broadcastOn([_v],{})})])})},tC=(o,c,g,S,_)=>{const H=Ae=>{const Ne=Ae.body;switch(Ne.type){case"tabpanel":return[OP(Ne,Ae.initialData,S)];default:return[uc(Ne,Ae.initialData,S)]}},K=(Ae,Ne)=>L.some({isTabPanel:()=>Ne.body.type==="tabpanel"}),ve={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...g.map(Ae=>({id:Ae})).getOr({}),..._?ve:{}}},components:[],behaviours:pr([Ff.childAt(0),$s.config({channel:`${fp}-${c}`,updateState:K,renderComponents:H,initialData:o})])}},xP=(o,c,g,S,_)=>tC(o,c,L.some(g),S,_),j2=(o,c,g)=>{const S=tC(o,c,L.none(),g,!1);return Sl.parts.body(S)},SP=o=>{const c={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[pB(L.none(),{dom:{tag:"iframe",attributes:{src:o.url}},behaviours:pr([Ga.config({}),Mo.config({})])})]}],behaviours:pr([yo.config({mode:"acyclic",useTabstopAt:B(b3)})])};return Sl.parts.body(c)},q2=n2.deviceType.isTouch(),_1=(o,c)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[o,c]}),jh=(o,c)=>Sl.parts.close(Dl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":c.translate("Close")}},action:o,buttonBehaviours:pr([Ga.config({})])})),jm=()=>Sl.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),K2=(o,c)=>Sl.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Ov(`

    ${V_(c.translate(o))}

    `)}]}]}),oO=o=>Sl.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:o}),nC=(o,c)=>[Um.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:o}),Um.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:c})],qm=o=>{const c="tox-dialog",g=c+"-wrap",S=g+"__backdrop",_=c+"__disable-scroll";return Sl.sketch({lazySink:o.lazySink,onEscape:H=>(o.onEscape(H),L.some(!0)),useTabstopAt:H=>!b3(H),firstTabstop:o.firstTabstop,dom:{tag:"div",classes:[c].concat(o.extraClasses),styles:{position:"relative",...o.extraStyles}},components:[o.header,o.body,...o.footer.toArray()],parts:{blocker:{dom:Ov(`
    `),components:[{dom:{tag:"div",classes:q2?[S,S+"--opaque"]:[S]}}]}},dragBlockClass:g,modalBehaviours:pr([Mo.config({}),Jo("dialog-events",o.dialogEvents.concat([xh(Do(),(H,K)=>{Xm.isBlocked(H)?M():yo.focusIn(H)}),qn(VO(),(H,K)=>{H.getSystem().broadcastOn([x3],{newFocus:K.event.newFocus})})])),Jo("scroll-lock",[Ca(()=>{ki(ya(),_)}),Sh(()=>{Xa(ya(),_)})]),...o.extraBehaviours]),eventOrder:{[Ii()]:["dialog-events"],[ef()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[kg()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...o.eventOrder}})},wP=o=>Dl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":o.translate("Close"),title:o.translate("Close")}},buttonBehaviours:pr([Ga.config({})]),components:[Bh("close",{tag:"span",classes:["tox-icon"]},o.icons)],action:c=>{ks(c,h1)}}),rC=(o,c,g,S)=>{const _=H=>[yi(S.translate(H.title))];return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:{...g.map(H=>({id:H})).getOr({})}},components:[],behaviours:pr([$s.config({channel:`${o4}-${c}`,initialData:o,renderComponents:_})])}},Ic=()=>({dom:Ov('
    ')}),sO=(o,c,g,S)=>Um.sketch({dom:Ov('
    '),components:[rC(o,c,L.some(g),S),Ic(),wP(S)],containerBehaviours:pr([M1.config({mode:"mouse",blockerClass:"blocker",getTarget:_=>Vd(_,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),kz=(o,c,g)=>{const S=Sl.parts.title(rC(o,c,L.none(),g)),_=Sl.parts.draghandle(Ic()),H=Sl.parts.close(wP(g)),K=[S].concat(o.draggable?[_]:[]).concat([H]);return Um.sketch({dom:Ov('
    '),components:K})},TP=(o,c,g)=>kz({title:g.shared.providers.translate(o),draggable:g.dialog.isDraggableModal()},c,g.shared.providers),oC=(o,c,g,S)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":g.translate(o)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${S.getOr(0)}px`,position:"absolute"}},behaviours:c,components:[{dom:Ov('
    ')}]}),hp=(o,c,g)=>({onClose:()=>g.closeWindow(),onBlock:S=>{const _=Ai(o().element,".tox-dialog__header").map(H=>Za(H));Sl.setBusy(o(),(H,K)=>oC(S.message,K,c,_))},onUnblock:()=>{Sl.setIdle(o())}}),J2="tox-dialog--fullscreen",Ln="tox-dialog--width-lg",In="tox-dialog--width-md",br=o=>{switch(o){case"large":return L.some(Ln);case"medium":return L.some(In);default:return L.none()}},hr=(o,c)=>{const g=zt.fromDom(c.element.dom);Ji(g,J2)||(tf(g,[Ln,In]),br(o).each(S=>ki(g,S)))},mo=(o,c)=>{const g=zt.fromDom(o.element.dom),S=y0(g),_=Ze(S,H=>H===Ln||H===In).or(br(c));iw(g,[J2,..._.toArray()])},bs=(o,c,g)=>oc(qm({...o,firstTabstop:1,lazySink:g.shared.getSink,extraBehaviours:[v3({}),...o.extraBehaviours],onEscape:S=>{ks(S,h1)},dialogEvents:c,eventOrder:{[Wl()]:[$s.name(),lu.name()],[ef()]:["scroll-lock",$s.name(),"messages","dialog-events","alloy.base.behaviour"],[kg()]:["alloy.base.behaviour","dialog-events","messages",$s.name(),"scroll-lock"]}})),ja=(o,c={})=>{const g=S=>{const _=ne(S.items,H=>{const K=Bt(c,H.name).getOr(X(!1));return{...H,storage:K}});return{...S,items:_}};return ne(o,S=>S.type==="menu"?g(S):S)},pf=o=>ke(o,(c,g)=>g.type==="menu"?ke(g.items,(_,H)=>(_[H.name]=H.storage,_),c):c,{}),fc=(o,c)=>[jS(Do(),yB),o(x2,(g,S,_,H)=>{Mh(es(H.element)).fold(M,M0),c.onClose(),S.onClose()}),o(h1,(g,S,_,H)=>{S.onCancel(g),ks(H,x2)}),qn(x6,(g,S)=>c.onUnblock()),qn(O6,(g,S)=>c.onBlock(S.event))],aO=(o,c)=>{const g=(_,H)=>qn(_,(K,ve)=>{S(K,(Ae,Ne)=>{H(o(),Ae,ve.event,K)})}),S=(_,H)=>{$s.getState(_).get().each(K=>{H(K,_)})};return[...fc(g,c),g(ap,(_,H,K)=>{H.onAction(_,{name:K.name})})]},ah=(o,c,g)=>{const S=(H,K)=>qn(H,(ve,Ae)=>{_(ve,(Ne,Ue)=>{K(o(),Ne,Ae.event,ve)})}),_=(H,K)=>{$s.getState(H).get().each(ve=>{K(ve.internalDialog,H)})};return[...fc(S,c),S(f3,(H,K)=>K.onSubmit(H)),S(df,(H,K,ve)=>{K.onChange(H,{name:ve.name})}),S(ap,(H,K,ve,Ae)=>{const Ne=()=>Ae.getSystem().isConnected()?yo.focusIn(Ae):void 0,Ue=ht=>Md(ht,"disabled")||Ri(ht,"aria-disabled").exists(At=>At==="true"),Je=es(Ae.element),st=Mh(Je);K.onAction(H,{name:ve.name,value:ve.value}),Mh(Je).fold(Ne,ht=>{Ue(ht)||st.exists(At=>rn(ht,At)&&Ue(At))?Ne():g().toOptional().filter(At=>!rn(At.element,ht)).each(Ne)})}),S(TN,(H,K,ve)=>{K.onTabChange(H,{newTabName:ve.name,oldTabName:ve.oldName})}),Sh(H=>{const K=o();Fr.setValue(H,K.getData())})]},Az=(o,c)=>b4(o,o.type,c),Pz=(o,c,g)=>Ze(c,S=>S.name===g).bind(S=>S.memento.getOpt(o)),Mz=(o,c)=>{const g=c.map(ve=>ve.footerButtons).getOr([]),S=Oe(g,ve=>ve.align==="start"),_=(ve,Ae)=>Um.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${ve}`]},components:ne(Ae,Ne=>Ne.memento.asSpec())}),H=_("start",S.pass),K=_("end",S.fail);return[H,K]},rD=(o,c,g)=>{const S=(_,H)=>{const K=ne(H.buttons,Ae=>{const Ne=ia(Az(Ae,g));return{name:Ae.name,align:Ae.align,memento:Ne}}),ve=Ae=>Pz(_,K,Ae);return L.some({lookupByName:ve,footerButtons:K})};return{dom:Ov(''),components:[],behaviours:pr([$s.config({channel:`${s4}-${c}`,initialData:o,updateState:S,renderComponents:Mz})])}},qne=(o,c,g)=>rD(o,c,g),ps=(o,c,g)=>Sl.parts.footer(rD(o,c,g)),Qn=(o,c)=>{if(o.getRoot().getSystem().isConnected()){const S=xs.getCurrent(o.getFormWrapper()).getOr(o.getFormWrapper());return A2.getField(S,c).orThunk(()=>o.getFooter().bind(K=>$s.getState(K).get()).bind(K=>K.lookupByName(c)))}else return L.none()},lo=(o,c)=>{const g=o.getRoot();return $s.getState(g).get().map(S=>aa(da("data",S.dataValidator,c))).getOr(c)},Eo=(o,c,g)=>{const S=At=>{const qt=o.getRoot();qt.getSystem().isConnected()&&At(qt)},ht={getData:()=>{const At=o.getRoot(),qt=At.getSystem().isConnected()?o.getFormWrapper():At,Dn=Fr.getValue(qt),mn=je(g,on=>on.get());return{...Dn,...mn}},setData:At=>{S(qt=>{const Dn=ht.getData(),mn=Ta(Dn,At),on=lo(o,mn),kn=o.getFormWrapper();Fr.setValue(kn,on),Ye(g,(Zn,mr)=>{vn(mn,mr)&&Zn.set(mn[mr])})})},setEnabled:(At,qt)=>{Qn(o,At).each(qt?Co.enable:Co.disable)},focus:At=>{Qn(o,At).each(Mo.focus)},block:At=>{if(!m(At))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");S(qt=>{vo(qt,O6,{message:At})})},unblock:()=>{S(At=>{ks(At,x6)})},showTab:At=>{S(qt=>{const Dn=o.getBody();$s.getState(Dn).get().exists(on=>on.isTabPanel())&&xs.getCurrent(Dn).each(on=>{zf.showTab(on,At)})})},redial:At=>{S(qt=>{const Dn=o.getId(),mn=c(At),on=ja(mn.internalDialog.buttons,g);qt.getSystem().broadcastOn([`${O3}-${Dn}`],mn),qt.getSystem().broadcastOn([`${o4}-${Dn}`],mn.internalDialog),qt.getSystem().broadcastOn([`${fp}-${Dn}`],mn.internalDialog),qt.getSystem().broadcastOn([`${s4}-${Dn}`],{...mn.internalDialog,buttons:on}),ht.setData(mn.initialData)})},close:()=>{S(At=>{ks(At,x2)})},toggleFullscreen:o.toggleFullscreen};return ht},Qi=(o,c,g)=>{const S=Kr("dialog"),_=o.internalDialog,H=TP(_.title,S,g),K=X(_.size),ve=br(K.get()).toArray(),Ae=(on,kn)=>(K.set(kn.internalDialog.size),hr(kn.internalDialog.size,on),L.some(kn)),Ne=j2({body:_.body,initialData:_.initialData},S,g),Ue=ja(_.buttons),Je=pf(Ue),st=it(Ue.length!==0,ps({buttons:Ue},S,g)),ht=ah(()=>mn,hp(()=>qt,g.shared.providers,c),g.shared.getSink),At={id:S,header:H,body:Ne,footer:st,extraClasses:ve,extraBehaviours:[$s.config({channel:`${O3}-${S}`,updateState:Ae,initialData:o})],extraStyles:{}},qt=bs(At,ht,g),Dn=(()=>{const on=()=>{const Zn=Sl.getBody(qt);return xs.getCurrent(Zn).getOr(Zn)},kn=()=>{mo(qt,K.get())};return{getId:F(S),getRoot:F(qt),getBody:()=>Sl.getBody(qt),getFooter:()=>Sl.getFooter(qt),getFormWrapper:on,toggleFullscreen:kn}})(),mn=Eo(Dn,c.redial,Je);return{dialog:qt,instanceApi:mn}},jc=(o,c,g,S=!1,_)=>{const H=Kr("dialog"),K=Kr("dialog-label"),ve=Kr("dialog-content"),Ae=o.internalDialog,Ne=X(Ae.size),Ue=br(Ne.get()).toArray(),Je=(Gn,Or)=>(Ne.set(Or.internalDialog.size),hr(Or.internalDialog.size,Gn),_(),L.some(Or)),st=ia(sO({title:Ae.title,draggable:!0},H,K,g.shared.providers)),ht=ia(xP({body:Ae.body,initialData:Ae.initialData},H,ve,g,S)),At=ja(Ae.buttons),qt=pf(At),Dn=it(At.length!==0,ia(qne({buttons:At},H,g))),mn=ah(()=>mr,{onBlock:Gn=>{Xm.block(kn,(Or,Mr)=>{const is=st.getOpt(kn).map(Gr=>Za(Gr.element));return oC(Gn.message,Mr,g.shared.providers,is)})},onUnblock:()=>{Xm.unblock(kn)},onClose:()=>c.closeWindow()},g.shared.getSink),kn=oc({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline",...Ue],attributes:{role:"dialog","aria-labelledby":K}},eventOrder:{[Wl()]:[$s.name(),lu.name()],[Ii()]:["execute-on-form"],[ef()]:["reflecting","execute-on-form"]},behaviours:pr([yo.config({mode:"cyclic",onEscape:Gn=>(ks(Gn,x2),L.some(!0)),useTabstopAt:Gn=>!b3(Gn)&&(Oo(Gn)!=="button"||oa(Gn,"disabled")!=="disabled"),firstTabstop:1}),$s.config({channel:`${O3}-${H}`,updateState:Je,initialData:o}),Mo.config({}),Jo("execute-on-form",mn.concat([xh(Do(),(Gn,Or)=>{yo.focusIn(Gn)}),qn(VO(),(Gn,Or)=>{Gn.getSystem().broadcastOn([x3],{newFocus:Or.event.newFocus})})])),Xm.config({getRoot:()=>L.some(kn)}),Uo.config({}),v3({})]),components:[st.asSpec(),ht.asSpec(),...Dn.map(Gn=>Gn.asSpec()).toArray()]}),Zn=()=>{mo(kn,Ne.get())},mr=Eo({getId:F(H),getRoot:F(kn),getFooter:()=>Dn.map(Gn=>Gn.get(kn)),getBody:()=>ht.get(kn),getFormWrapper:()=>{const Gn=ht.get(kn);return xs.getCurrent(Gn).getOr(Gn)},toggleFullscreen:Zn},c.redial,qt);return{dialog:kn,instanceApi:mr}};var xd=tinymce.util.Tools.resolve("tinymce.util.URI");const Ll=o=>{const c=K=>{o.getSystem().isConnected()&&K(o)};return{block:K=>{if(!m(K))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");c(ve=>{vo(ve,O6,{message:K})})},unblock:()=>{c(K=>{ks(K,x6)})},close:()=>{c(K=>{ks(K,x2)})},sendMessage:K=>{c(ve=>{ve.getSystem().broadcastOn([q6],K)})}}},qh=["insertContent","setContent","execCommand","close","block","unblock"],CP=o=>u(o)&&qh.indexOf(o.mceAction)!==-1,Kne=o=>!CP(o)&&u(o)&&vn(o,"mceAction"),Ez=(o,c,g)=>{switch(g.mceAction){case"insertContent":o.insertContent(g.content);break;case"setContent":o.setContent(g.content);break;case"execCommand":const S=b(g.ui)?g.ui:!1;o.execCommand(g.cmd,S,g.value);break;case"close":c.close();break;case"block":c.block(g.message);break;case"unblock":c.unblock();break}},Dce=(o,c,g,S)=>{const _=Kr("dialog"),H=TP(o.title,_,S),K=SP(o),ve=o.buttons.bind(kn=>kn.length===0?L.none():L.some(ps({buttons:kn},_,S))),Ae=aO(()=>on,hp(()=>mn,S.shared.providers,c)),Ne={...o.height.fold(()=>({}),kn=>({height:kn+"px","max-height":kn+"px"})),...o.width.fold(()=>({}),kn=>({width:kn+"px","max-width":kn+"px"}))},Ue=o.width.isNone()&&o.height.isNone()?["tox-dialog--width-lg"]:[],Je=new xd(o.url,{base_uri:new xd(window.location.href)}),st=`${Je.protocol}://${Je.host}${Je.port?":"+Je.port:""}`,ht=Em(),At=(kn,Zn)=>L.some(Zn),qt=[$s.config({channel:`${O3}-${_}`,updateState:At,initialData:o}),Jo("messages",[Ca(()=>{const kn=_c(zt.fromDom(window),"message",Zn=>{if(Je.isSameOrigin(new xd(Zn.raw.origin))){const mr=Zn.raw.data;CP(mr)?Ez(g,on,mr):Kne(mr)&&o.onMessage(on,mr)}});ht.set(kn)}),Sh(ht.clear)]),lu.config({channels:{[q6]:{onReceive:(kn,Zn)=>{Ai(kn.element,"iframe").each(mr=>{const Gn=mr.dom.contentWindow;C(Gn)&&Gn.postMessage(Zn,st)})}}}})],mn=bs({id:_,header:H,body:K,footer:ve,extraClasses:Ue,extraBehaviours:qt,extraStyles:Ne},Ae,S),on=Ll(mn);return{dialog:mn,instanceApi:on}},rxe=o=>{const c=o.shared;return{open:(S,_)=>{const H=()=>{Sl.hide(Ne),_()},K=ia(b4({name:"close-alert",text:"OK",primary:!0,buttonType:L.some("primary"),align:"end",enabled:!0,icon:L.none()},"cancel",o)),ve=jm(),Ae=jh(H,c.providers),Ne=oc(qm({lazySink:()=>c.getSink(),header:_1(ve,Ae),body:K2(S,c.providers),footer:L.some(oO(nC([],[K.asSpec()]))),onEscape:H,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[qn(h1,H)],eventOrder:{}}));Sl.show(Ne);const Ue=K.get(Ne);Mo.focus(Ue)}}},oxe=o=>{const c=o.shared;return{open:(S,_)=>{const H=st=>{Sl.hide(Ue),_(st)},K=ia(b4({name:"yes",text:"Yes",primary:!0,buttonType:L.some("primary"),align:"end",enabled:!0,icon:L.none()},"submit",o)),ve=b4({name:"no",text:"No",primary:!1,buttonType:L.some("secondary"),align:"end",enabled:!0,icon:L.none()},"cancel",o),Ae=jm(),Ne=jh(()=>H(!1),c.providers),Ue=oc(qm({lazySink:()=>c.getSink(),header:_1(Ae,Ne),body:K2(S,c.providers),footer:L.some(oO(nC([],[ve,K.asSpec()]))),onEscape:()=>H(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[qn(h1,()=>H(!1)),qn(f3,()=>H(!0))],eventOrder:{}}));Sl.show(Ue);const Je=K.get(Ue);Mo.focus(Je)}}},$ce=(o,c)=>aa(da("data",c,o)),Lce=o=>i3(o,".tox-alert-dialog")||i3(o,".tox-confirm-dialog"),sxe=(o,c,g)=>c&&g?[]:[Bi.config({contextual:{lazyContext:()=>L.some(ui(zt.fromDom(o.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:S=>d1(o,S.element).map(H=>({bounds:O2(H),optScrollEnv:L.some({currentScrollTop:H.element.dom.scrollTop,scrollElmTop:Cl(H.element).top})})).getOrThunk(()=>({bounds:Vl(),optScrollEnv:L.none()}))})],axe=o=>{const c=o.editor,g=UT(c),S=rxe(o.backstages.dialog),_=oxe(o.backstages.dialog),H=(At,qt,Dn)=>{if(!x(qt)){if(qt.inline==="toolbar")return Ne(At,o.backstages.popup.shared.anchors.inlineDialog(),Dn,qt);if(qt.inline==="bottom")return Ue(At,o.backstages.popup.shared.anchors.inlineBottomDialog(),Dn,qt);if(qt.inline==="cursor")return Ne(At,o.backstages.popup.shared.anchors.cursor(),Dn,qt)}return Ae(At,Dn)},K=(At,qt)=>ve(At,qt),ve=(At,qt)=>{const Dn=mn=>{const on=Dce(mn,{closeWindow:()=>{Sl.hide(on.dialog),qt(on.instanceApi)}},c,o.backstages.dialog);return Sl.show(on.dialog),on.instanceApi};return zn.openUrl(Dn,At)},Ae=(At,qt)=>{const Dn=(mn,on,kn)=>{const Zn=on,Gn=Qi({dataValidator:kn,initialData:Zn,internalDialog:mn},{redial:zn.redial,closeWindow:()=>{Sl.hide(Gn.dialog),qt(Gn.instanceApi)}},o.backstages.dialog);return Sl.show(Gn.dialog),Gn.instanceApi.setData(Zn),Gn.instanceApi};return zn.open(Dn,At)},Ne=(At,qt,Dn,mn)=>{const on=(kn,Zn,mr)=>{const Gn=$ce(Zn,mr),Or=gs(),Mr=o.backstages.popup.shared.header.isPositionedAtTop(),is={dataValidator:mr,initialData:Gn,internalDialog:kn},Gr=()=>Or.on(wo=>{ri.reposition(wo),(!g||!Mr)&&Bi.refresh(wo)}),Io=jc(is,{redial:zn.redial,closeWindow:()=>{Or.on(ri.hide),c.off("ResizeEditor",Gr),Or.clear(),Dn(Io.instanceApi)}},o.backstages.popup,mn.ariaAttrs,Gr),_o=oc(ri.sketch({lazySink:o.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:mn.persistent?{event:"doNotDismissYet"}:{},...Mr?{}:{fireRepositionEventInstead:{}},inlineBehaviours:pr([Jo("window-manager-inline-events",[qn(Ag(),(wo,Ns)=>{ks(Io.dialog,h1)})]),...sxe(c,g,Mr)]),isExtraPart:(wo,Ns)=>Lce(Ns)}));Or.set(_o);const na=()=>{const wo=c.inline?ya():zt.fromDom(c.getContainer()),Ns=ui(wo);return L.some(Ns)};return ri.showWithinBounds(_o,nf(Io.dialog),{anchor:qt},na),(!g||!Mr)&&(Bi.refresh(_o),c.on("ResizeEditor",Gr)),Io.instanceApi.setData(Gn),yo.focusIn(Io.dialog),Io.instanceApi};return zn.open(on,At)},Ue=(At,qt,Dn,mn)=>{const on=(kn,Zn,mr)=>{const Gn=$ce(Zn,mr),Or=gs(),Mr=o.backstages.popup.shared.header.isPositionedAtTop(),is={dataValidator:mr,initialData:Gn,internalDialog:kn},Gr=()=>Or.on(wo=>{ri.reposition(wo),Bi.refresh(wo)}),Io=jc(is,{redial:zn.redial,closeWindow:()=>{Or.on(ri.hide),c.off("ResizeEditor ScrollWindow ElementScroll",Gr),Or.clear(),Dn(Io.instanceApi)}},o.backstages.popup,mn.ariaAttrs,Gr),_o=oc(ri.sketch({lazySink:o.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:mn.persistent?{event:"doNotDismissYet"}:{},...Mr?{}:{fireRepositionEventInstead:{}},inlineBehaviours:pr([Jo("window-manager-inline-events",[qn(Ag(),(wo,Ns)=>{ks(Io.dialog,h1)})]),Bi.config({contextual:{lazyContext:()=>L.some(ui(zt.fromDom(c.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:wo=>d1(c,wo.element).map(Pr=>({bounds:O2(Pr),optScrollEnv:L.some({currentScrollTop:Pr.element.dom.scrollTop,scrollElmTop:Cl(Pr.element).top})})).getOrThunk(()=>({bounds:Vl(),optScrollEnv:L.none()}))})]),isExtraPart:(wo,Ns)=>Lce(Ns)}));Or.set(_o);const na=()=>o.backstages.popup.shared.getSink().toOptional().bind(wo=>{const Ns=d1(c,wo.element),Pr=15,oo=Ns.map(To=>O2(To)).getOr(Vl()),No=ui(zt.fromDom(c.getContentAreaContainer())),Qo=py(No,oo);return L.some(Ja(Qo.x,Qo.y,Qo.width,Qo.height-Pr))});return ri.showWithinBounds(_o,nf(Io.dialog),{anchor:qt},na),Bi.refresh(_o),c.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",Gr),Io.instanceApi.setData(Gn),yo.focusIn(Io.dialog),Io.instanceApi};return zn.open(on,At)};return{open:H,openUrl:K,alert:(At,qt)=>{S.open(At,qt)},close:At=>{At.close()},confirm:(At,qt)=>{_.open(At,qt)}}},ixe=o=>{dL(o),SX(o),kte(o)};var lxe=()=>{Og.add("silver",o=>{ixe(o);let c=()=>Vl();const{dialogs:g,popups:S,renderUI:_}=Tne(o,{getPopupSinkBounds:()=>c()}),H=()=>{const Ae=_();return d1(o,S.getMothership().element).each(Ue=>{c=()=>O2(Ue)}),Ae};dG.register(o,S.backstage.shared);const K=axe({editor:o,backstages:{popup:S.backstage,dialog:g.backstage}}),ve=()=>Y_(o,{backstage:S.backstage},S.getMothership());return{renderUI:H,getWindowManagerImpl:F(K),getNotificationManagerImpl:ve}})};lxe()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"accordion-toggle":'',accordion:'',"action-next":'',"action-prev":'',addtag:'',"ai-prompt":'',ai:'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',footnote:'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',minus:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',send:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',"template-add":'',template:'',"temporary-placeholder":'',"text-color":'',"text-size-decrease":'',"text-size-increase":'',toc:'',translate:'',typography:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}});(function(){const t=M=>{let I=M;return{get:()=>I,set:F=>{I=F}}};var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const r=M=>()=>M;var a=tinymce.util.Tools.resolve("tinymce.Env");const i=M=>M.dispatch("ResizeEditor"),d=M=>I=>I.options.get(M),f=M=>{const I=M.options.register;I("autoresize_overflow_padding",{processor:"number",default:1}),I("autoresize_bottom_margin",{processor:"number",default:50})},m=d("min_height"),u=d("max_height"),p=d("autoresize_overflow_padding"),v=d("autoresize_bottom_margin"),y=M=>M.plugins.fullscreen&&M.plugins.fullscreen.isFullscreen(),b=(M,I)=>{const V=M.getBody();V&&(V.style.overflowY=I?"":"hidden",I||(V.scrollTop=0))},x=(M,I,V,N)=>{var F;const z=parseInt((F=M.getStyle(I,V,N))!==null&&F!==void 0?F:"",10);return isNaN(z)?0:z},k=M=>{if((M==null?void 0:M.type.toLowerCase())==="setcontent"){const I=M;return I.selection===!0||I.paste===!0}else return!1},C=(M,I,V,N)=>{var F;const z=M.dom,U=M.getDoc();if(!U)return;if(y(M)){b(M,!0);return}const Q=U.documentElement,B=N?N():p(M),E=(F=m(M))!==null&&F!==void 0?F:M.getElement().offsetHeight;let W=E;const Y=x(z,Q,"margin-top",!0),ie=x(z,Q,"margin-bottom",!0);let L=Q.offsetHeight+Y+ie+B;L<0&&(L=0);const me=M.getContainer().offsetHeight,ae=M.getContentAreaContainer().offsetHeight,q=me-ae;L+q>E&&(W=L+q);const fe=u(M);if(fe&&W>fe?(W=fe,b(M,!0)):b(M,!1),W!==I.get()){const ee=W-I.get();if(z.setStyle(M.getContainer(),"height",W+"px"),I.set(W),i(M),a.browser.isSafari()&&(a.os.isMacOS()||a.os.isiOS())){const be=M.getWin();be.scrollTo(be.pageXOffset,be.pageYOffset)}M.hasFocus()&&k(V)&&M.selection.scrollIntoView(),(a.browser.isSafari()||a.browser.isChromium())&&ee<0&&C(M,I,V,N)}},w=(M,I)=>{let V=()=>v(M),N,F;M.on("init",z=>{N=0;const U=p(M),Q=M.dom;Q.setStyles(M.getDoc().documentElement,{height:"auto"}),a.browser.isEdge()||a.browser.isIE()?Q.setStyles(M.getBody(),{paddingLeft:U,paddingRight:U,"min-height":0}):Q.setStyles(M.getBody(),{paddingLeft:U,paddingRight:U}),C(M,I,z,V),N+=1}),M.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",z=>{if(N===1)F=M.getContainer().offsetHeight,C(M,I,z,V),N+=1;else if(N===2){const U=F{M.addCommand("mceAutoResize",()=>{C(M,I)})};var R=()=>{e.add("autoresize",M=>{if(f(M),M.options.isSet("resize")||M.options.set("resize",!1),!M.inline){const I=t(0);T(M,I),w(M,I)}})};R()})();var b$e=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],O$e=function(t){return b$e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},x$e=function(t,e,r){Object.keys(e).filter(O$e).forEach(function(a){var i=e[a];typeof i=="function"&&(a==="onInit"?i(t,r):r.on(a.substring(2),function(d){return i(d,r)}))})},S$e=function(t,e,r,a){var i=t.modelEvents?t.modelEvents:null,d=Array.isArray(i)?i.join(" "):i;Ho(a,function(f,m){r&&typeof f=="string"&&f!==m&&f!==r.getContent({format:t.outputFormat})&&r.setContent(f)}),r.on(d||"change input undo redo",function(){e.emit("update:modelValue",r.getContent({format:t.outputFormat}))})},w$e=function(t,e,r,a,i,d){a.setContent(d()),r.attrs["onUpdate:modelValue"]&&S$e(e,r,a,i),x$e(t,r.attrs,a)},Nme=0,ZOe=function(t){var e=Date.now(),r=Math.floor(Math.random()*1e9);return Nme++,t+"_"+r+Nme+String(e)},T$e=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},Bme=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},C$e=function(t,e){return Bme(t).concat(Bme(e))},k$e=function(t){return t==null},Qme=function(){return{listeners:[],scriptId:ZOe("tiny-script"),scriptLoaded:!1}},A$e=function(){var t=Qme(),e=function(i,d,f,m){var u=d.createElement("script");u.referrerPolicy="origin",u.type="application/javascript",u.id=i,u.src=f;var p=function(){u.removeEventListener("load",p),m()};u.addEventListener("load",p),d.head&&d.head.appendChild(u)},r=function(i,d,f){t.scriptLoaded?f():(t.listeners.push(f),i.getElementById(t.scriptId)||e(t.scriptId,i,d,function(){t.listeners.forEach(function(m){return m()}),t.scriptLoaded=!0}))},a=function(){t=Qme()};return{load:r,reinitialize:a}},P$e=A$e(),M$e=function(){return typeof window<"u"?window:global},mC=function(){var t=M$e();return t&&t.tinymce?t.tinymce:null},E$e={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},B1=globalThis&&globalThis.__assign||function(){return B1=Object.assign||function(t){for(var e,r=1,a=arguments.length;r[t.$devMode?(so(),Ts(cg,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:Yr(()=>[lt(Nv,{cols:11},{default:Yr(()=>[L$e]),_:1}),lt(Nv,{cols:1,class:"d-flex justify-end align-center py-0"},{default:Yr(()=>[lt(qa,{small:"",class:"mx-1",color:"primary",onClick:d.saveCell},{default:Yr(()=>[gi(" mdi-content-save ")]),_:1},8,["onClick"]),lt(qa,{small:"",class:"mx-1",color:"error",onClick:d.deleteCell},{default:Yr(()=>[gi(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):Nu("",!0),t.$devMode?(so(),Ts(f,{key:1,modelValue:r.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=m=>r.cellData.code=m),init:t.init,onKeyUp:d.saveCell},null,8,["modelValue","init","onKeyUp"])):(so(),Ts(f,{key:2,modelValue:r.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=m=>r.cellData.code=m),init:t.init,disabled:!0},null,8,["modelValue","init"]))]),_:1}),t.$devMode?(so(),Ts(BS,{key:0,transition:"scale-transition"},{activator:Yr(({props:m})=>[lt(Nc,rs(m,{block:""}),{default:Yr(()=>[lt(cg,null,{default:Yr(()=>[lt(qa,{color:"primary"},{default:Yr(()=>[gi("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:Yr(()=>[lt(NS,null,{default:Yr(()=>[(so(!0),La(Go,null,Hf(t.items,(m,u)=>(so(),Ts(mg,{key:u},{default:Yr(()=>[lt(Nc,{block:"",onClick:p=>d.createCell(m.title)},{default:Yr(()=>[gi(yp(m.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})):Nu("",!0)],64)}const N$e=ny($$e,[["render",I$e]]),B$e=36,Fme=1,Q$e=2,SD=3,moe=4,F$e=5,V$e=6,z$e=7,Z$e=8,H$e=9,U$e=10,W$e=11,Y$e=12,X$e=13,G$e=14,j$e=15,q$e=16,K$e=17,Vme=18,J$e=19,HOe=20,UOe=21,zme=22,e9e=23,t9e=24;function tae(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57}function n9e(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function pC(t,e,r){for(let a=!1;;){if(t.next<0)return;if(t.next==e&&!a){t.advance();return}a=r&&!a&&t.next==92,t.advance()}}function r9e(t){for(;;){if(t.next<0||t.peek(1)<0)return;if(t.next==36&&t.peek(1)==36){t.advance(2);return}t.advance()}}function o9e(t,e){let r="[{<(".indexOf(String.fromCharCode(e)),a=r<0?e:"]}>)".charCodeAt(r);for(;;){if(t.next<0)return;if(t.next==a&&t.peek(1)==39){t.advance(2);return}t.advance()}}function WOe(t,e){for(;!(t.next!=95&&!tae(t.next));)e!=null&&(e+=String.fromCharCode(t.next)),t.advance();return e}function s9e(t){if(t.next==39||t.next==34||t.next==96){let e=t.next;t.advance(),pC(t,e,!1)}else WOe(t)}function Zme(t,e){for(;t.next==48||t.next==49;)t.advance();e&&t.next==e&&t.advance()}function Hme(t,e){for(;;){if(t.next==46){if(e)break;e=!0}else if(t.next<48||t.next>57)break;t.advance()}if(t.next==69||t.next==101)for(t.advance(),(t.next==43||t.next==45)&&t.advance();t.next>=48&&t.next<=57;)t.advance()}function Ume(t){for(;!(t.next<0||t.next==10);)t.advance()}function gC(t,e){for(let r=0;r!=&|~^/",specialVar:"?",identifierQuotes:'"',words:YOe(i9e,a9e)};function l9e(t,e,r,a){let i={};for(let d in nae)i[d]=(t.hasOwnProperty(d)?t:nae)[d];return e&&(i.words=YOe(e,r||"",a)),i}function XOe(t){return new hh(e=>{var r;let{next:a}=e;if(e.advance(),gC(a,goe)){for(;gC(e.next,goe);)e.advance();e.acceptToken(B$e)}else if(a==36&&e.next==36&&t.doubleDollarQuotedStrings)r9e(e),e.acceptToken(SD);else if(a==39||a==34&&t.doubleQuotedStrings)pC(e,a,t.backslashEscapes),e.acceptToken(SD);else if(a==35&&t.hashComments||a==47&&e.next==47&&t.slashComments)Ume(e),e.acceptToken(Fme);else if(a==45&&e.next==45&&(!t.spaceAfterDashes||e.peek(1)==32))Ume(e),e.acceptToken(Fme);else if(a==47&&e.next==42){e.advance();for(let i=1;;){let d=e.next;if(e.next<0)break;if(e.advance(),d==42&&e.next==47){if(i--,e.advance(),!i)break}else d==47&&e.next==42&&(i++,e.advance())}e.acceptToken(Q$e)}else if((a==101||a==69)&&e.next==39)e.advance(),pC(e,39,!0);else if((a==110||a==78)&&e.next==39&&t.charSetCasts)e.advance(),pC(e,39,t.backslashEscapes),e.acceptToken(SD);else if(a==95&&t.charSetCasts)for(let i=0;;i++){if(e.next==39&&i>1){e.advance(),pC(e,39,t.backslashEscapes),e.acceptToken(SD);break}if(!tae(e.next))break;e.advance()}else if(t.plsqlQuotingMechanism&&(a==113||a==81)&&e.next==39&&e.peek(1)>0&&!gC(e.peek(1),goe)){let i=e.peek(1);e.advance(2),o9e(e,i),e.acceptToken(SD)}else if(a==40)e.acceptToken(z$e);else if(a==41)e.acceptToken(Z$e);else if(a==123)e.acceptToken(H$e);else if(a==125)e.acceptToken(U$e);else if(a==91)e.acceptToken(W$e);else if(a==93)e.acceptToken(Y$e);else if(a==59)e.acceptToken(X$e);else if(t.unquotedBitLiterals&&a==48&&e.next==98)e.advance(),Zme(e),e.acceptToken(zme);else if((a==98||a==66)&&(e.next==39||e.next==34)){const i=e.next;e.advance(),t.treatBitsAsBytes?(pC(e,i,t.backslashEscapes),e.acceptToken(e9e)):(Zme(e,i),e.acceptToken(zme))}else if(a==48&&(e.next==120||e.next==88)||(a==120||a==88)&&e.next==39){let i=e.next==39;for(e.advance();n9e(e.next);)e.advance();i&&e.next==39&&e.advance(),e.acceptToken(moe)}else if(a==46&&e.next>=48&&e.next<=57)Hme(e,!0),e.acceptToken(moe);else if(a==46)e.acceptToken(G$e);else if(a>=48&&a<=57)Hme(e,!1),e.acceptToken(moe);else if(gC(a,t.operatorChars)){for(;gC(e.next,t.operatorChars);)e.advance();e.acceptToken(j$e)}else if(gC(a,t.specialVar))e.next==a&&e.advance(),s9e(e),e.acceptToken(K$e);else if(gC(a,t.identifierQuotes))pC(e,a,!1),e.acceptToken(J$e);else if(a==58||a==44)e.acceptToken(q$e);else if(tae(a)){let i=WOe(e,String.fromCharCode(a));e.acceptToken(e.next==46?Vme:(r=t.words[i.toLowerCase()])!==null&&r!==void 0?r:Vme)}})}const GOe=XOe(nae),c9e=AS.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,GOe],topRules:{Script:[0,25]},tokenPrec:0});function rae(t){let e=t.cursor().moveTo(t.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function k$(t,e){let r=t.sliceString(e.from,e.to),a=/^([`'"])(.*)\1$/.exec(r);return a?a[2]:r}function WH(t){return t&&(t.name=="Identifier"||t.name=="QuotedIdentifier")}function u9e(t,e){if(e.name=="CompositeIdentifier"){let r=[];for(let a=e.firstChild;a;a=a.nextSibling)WH(a)&&r.push(k$(t,a));return r}return[k$(t,e)]}function Wme(t,e){for(let r=[];;){if(!e||e.name!=".")return r;let a=rae(e);if(!WH(a))return r;r.unshift(k$(t,a)),e=rae(a)}}function f9e(t,e){let r=rl(t).resolveInner(e,-1),a=h9e(t.doc,r);return r.name=="Identifier"||r.name=="QuotedIdentifier"||r.name=="Keyword"?{from:r.from,quoted:r.name=="QuotedIdentifier"?t.doc.sliceString(r.from,r.from+1):null,parents:Wme(t.doc,rae(r)),aliases:a}:r.name=="."?{from:e,quoted:null,parents:Wme(t.doc,r),aliases:a}:{from:e,quoted:null,parents:[],empty:!0,aliases:a}}const d9e=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function h9e(t,e){let r;for(let i=e;!r;i=i.parent){if(!i)return null;i.name=="Statement"&&(r=i)}let a=null;for(let i=r.firstChild,d=!1,f=null;i;i=i.nextSibling){let m=i.name=="Keyword"?t.sliceString(i.from,i.to).toLowerCase():null,u=null;if(!d)d=m=="from";else if(m=="as"&&f&&WH(i.nextSibling))u=k$(t,i.nextSibling);else{if(m&&d9e.has(m))break;f&&WH(i)&&(u=k$(t,i))}u&&(a||(a=Object.create(null)),a[u]=u9e(t,f)),f=/Identifier$/.test(i.name)?i:null}return a}function m9e(t,e){return t?e.map(r=>Object.assign(Object.assign({},r),{label:t+r.label+t,apply:void 0})):e}const g9e=/^\w*$/,p9e=/^[`'"]?\w*[`'"]?$/;class xle{constructor(){this.list=[],this.children=void 0}child(e,r){let a=this.children||(this.children=Object.create(null)),i=a[e];return i||(e&&this.list.push(jOe(e,"type",r)),a[e]=new xle)}addCompletions(e){for(let r of e){let a=this.list.findIndex(i=>i.label==r.label);a>-1?this.list[a]=r:this.list.push(r)}}}function jOe(t,e,r){return/[^\w\xb5-\uffff]/.test(t)?{label:t,type:e,apply:r+t+r}:{label:t,type:e}}function v9e(t,e,r,a,i,d){var f;let m=new xle,u=((f=d==null?void 0:d.spec.identifierQuotes)===null||f===void 0?void 0:f[0])||'"',p=m.child(i||"",u);for(let v in t){let y=v.replace(/\\?\./g,x=>x=="."?"\0":x).split("\0"),b=y.length==1?p:m;for(let x of y)b=b.child(x.replace(/\\\./g,"."),u);for(let x of t[v])x&&b.list.push(typeof x=="string"?jOe(x,"property",u):x)}return e&&p.addCompletions(e),r&&m.addCompletions(r),m.addCompletions(p.list),a&&m.addCompletions(p.child(a,u).list),v=>{let{parents:y,from:b,quoted:x,empty:k,aliases:C}=f9e(v.state,v.pos);if(k&&!v.explicit)return null;C&&y.length==1&&(y=C[y[0]]||y);let w=m;for(let M of y){for(;!w.children||!w.children[M];)if(w==m)w=p;else if(w==p&&a)w=w.child(a,u);else return null;w=w.child(M,u)}let T=x&&v.state.sliceDoc(v.pos,v.pos+1)==x,R=w.list;return w==m&&C&&(R=R.concat(Object.keys(C).map(M=>({label:M,type:"constant"})))),{from:b,to:T?v.pos+1:void 0,options:m9e(x,R),validFor:x?p9e:g9e}}}function y9e(t,e){let r=Object.keys(t).map(a=>({label:e?a.toUpperCase():a,type:t[a]==UOe?"type":t[a]==HOe?"keyword":"variable",boost:-1}));return pie(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],SU(r))}let b9e=c9e.configure({props:[BC.add({Statement:BD()}),DS.add({Statement(t){return{from:t.firstChild.to,to:t.to}},BlockComment(t){return{from:t.from+2,to:t.to-2}}}),RS({Keyword:Qt.keyword,Type:Qt.typeName,Builtin:Qt.standard(Qt.name),Bits:Qt.number,Bytes:Qt.string,Bool:Qt.bool,Null:Qt.null,Number:Qt.number,String:Qt.string,Identifier:Qt.name,QuotedIdentifier:Qt.special(Qt.string),SpecialVar:Qt.special(Qt.name),LineComment:Qt.lineComment,BlockComment:Qt.blockComment,Operator:Qt.operator,"Semi Punctuation":Qt.punctuation,"( )":Qt.paren,"{ }":Qt.brace,"[ ]":Qt.squareBracket})]});class Sle{constructor(e,r,a){this.dialect=e,this.language=r,this.spec=a}get extension(){return this.language.extension}static define(e){let r=l9e(e,e.keywords,e.types,e.builtin),a=CS.define({name:"sql",parser:b9e.configure({tokenizers:[{from:GOe,to:XOe(r)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new Sle(r,a,e)}}function O9e(t,e=!1){return y9e(t.dialect.words,e)}function x9e(t,e=!1){return t.language.data.of({autocomplete:O9e(t,e)})}function S9e(t){return t.schema?v9e(t.schema,t.tables,t.schemas,t.defaultTable,t.defaultSchema,t.dialect||wle):()=>null}function w9e(t){return t.schema?(t.dialect||wle).language.data.of({autocomplete:S9e(t)}):[]}function Yme(t={}){let e=t.dialect||wle;return new DC(e.language,[w9e(t),x9e(e,!!t.upperCaseKeywords)])}const wle=Sle.define({}),T9e={components:{codemirror:CU,"v-data-table":fle},computed:{extensions(){const t=()=>{this.runCode()},e=_S.of([{key:"Ctrl-Enter",run:()=>(t(),!0)}]);return this.$devMode?[Mp.highest(e),Yme(),cM,LC({override:[]})]:[Ia.readOnly.of(!0),Mp.highest(e),Yme(),cM,LC({override:[]})]}},data(){return{isFocused:!1,items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0}},setup(){const t=fs(null);return{view:t,handleReady:r=>{t.value=r.view}}},methods:{runCode(){this.$emit("runCode",this.cellData.id)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){this.$devMode&&this.$emit("saveCell",this.cellData.id,this.cellData.code,"","")}}},C9e=kd("span",{class:"py-0 px-2"},".sql",-1),k9e={key:4},A9e=kd("p",{class:"text-caption text-disabled text-right"}," CTRL+Enter to run",-1),P9e=[A9e],M9e={class:"text-p"};function E9e(t,e,r,a,i,d){const f=q1("codemirror");return so(),La(Go,null,[lt(YC,{flat:"",color:"bluegrey"},{default:Yr(()=>[t.$devMode?(so(),Ts(cg,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:Yr(()=>[lt(Nv,{cols:11},{default:Yr(()=>[C9e]),_:1}),lt(Nv,{cols:1,class:"d-flex justify-end align-center py-0"},{default:Yr(()=>[lt(qa,{small:"",class:"mx-1",color:"primary",onClick:d.runCode},{default:Yr(()=>[gi(" mdi-play ")]),_:1},8,["onClick"]),lt(qa,{small:"",class:"mx-1",color:"error",onClick:d.deleteCell},{default:Yr(()=>[gi(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):Nu("",!0),t.$devMode?(so(),Ts(Zv,{key:1,modelValue:r.cellData.variable_name,"onUpdate:modelValue":e[0]||(e[0]=m=>r.cellData.variable_name=m),label:"Enter SQL variable name",density:"compact"},null,8,["modelValue"])):Nu("",!0),t.$devMode?(so(),Ts(f,{key:2,modelValue:r.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=m=>r.cellData.code=m),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):(so(),Ts(Jye,{key:3},{default:Yr(()=>[lt(tbe,null,{default:Yr(()=>[lt(ile,{color:"bluegrey2"},{default:Yr(()=>[gi(" View Source Code ")]),_:1}),lt(ale,null,{default:Yr(()=>[t.$devMode?(so(),Ts(f,{key:0,modelValue:r.cellData.code,"onUpdate:modelValue":e[2]||(e[2]=m=>r.cellData.code=m),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])):Nu("",!0)]),_:1})]),_:1})]),_:1})),t.$devMode?(so(),La("div",k9e,P9e)):Nu("",!0),(so(!0),La(Go,null,Hf(r.cellData.components,m=>(so(),Ts(S$,{key:m.id},{default:Yr(()=>[(so(),Ts(sg(m.component),rs(m,{modelValue:m.value,"onUpdate:modelValue":u=>m.value=u},{[H1(m.triggerEvent)]:d.runCode}),null,16,["modelValue","onUpdate:modelValue"]))]),_:2},1024))),128)),kd("div",M9e,yp(r.cellData.output),1)]),_:1}),t.$devMode?(so(),Ts(BS,{key:0,transition:"scale-transition"},{activator:Yr(({props:m})=>[lt(Nc,rs(m,{block:""}),{default:Yr(()=>[lt(cg,null,{default:Yr(()=>[lt(qa,{color:"primary"},{default:Yr(()=>[gi("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:Yr(()=>[lt(NS,null,{default:Yr(()=>[(so(!0),La(Go,null,Hf(i.items,(m,u)=>(so(),Ts(mg,{key:u},{default:Yr(()=>[lt(Nc,{block:"",onClick:p=>d.createCell(m.title)},{default:Yr(()=>[gi(yp(m.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})):Nu("",!0)],64)}const _9e=ny(T9e,[["render",E9e]]),R9e={components:{codemirror:CU},data:()=>({updatingDependencies:!1}),props:{dependencies:{type:Object,required:!0}},computed:{extensions(){return[zOe(),cM,LC({override:[]})]}},methods:{async updateDependencies(){const t={dependencies:this.dependencies.value};await kZ.post("api/dependency_update",t),this.updatingDependencies=!1}}},D9e=kd("span",{class:"text-h5"},"Add Dependencies",-1);function $9e(t,e,r,a,i,d){const f=q1("codemirror");return so(),Ts(s6e,{modelValue:t.updatingDependencies,"onUpdate:modelValue":e[2]||(e[2]=m=>t.updatingDependencies=m),persistent:"",width:"1024"},{activator:Yr(({props:m})=>[lt(Nc,rs({color:"primary"},m,{icon:"mdi-graph"}),null,16)]),default:Yr(()=>[lt(YC,null,{default:Yr(()=>[lt(Wye,null,{default:Yr(()=>[D9e]),_:1}),t.$devMode?(so(),Ts(f,{key:0,modelValue:r.dependencies.value,"onUpdate:modelValue":e[0]||(e[0]=m=>r.dependencies.value=m),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])):Nu("",!0),lt(Uye,null,{default:Yr(()=>[lt(dbe),lt(Nc,{color:"blue-darken-1",variant:"text",onClick:e[1]||(e[1]=m=>t.updatingDependencies=!1)},{default:Yr(()=>[gi(" Close ")]),_:1}),lt(Nc,{color:"blue-darken-1",variant:"text",onClick:d.updateDependencies},{default:Yr(()=>[gi(" Update ")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const L9e=ny(R9e,[["render",$9e]]),I9e={components:{CodeComponent:x7e,MarkdownComponent:v$e,EditorComponent:N$e,SQLComponent:_9e,PackageComponent:L9e},data(){return{notebook:{},dependencies:{},completions:{},notebook_socket:null,save_socket:null,run_socket:null,stop_socket:null,timer:0,timerInterval:null,isCodeRunning:!1,requestQueue:[],componentChangeQueue:[],menu_items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},beforeMount(){window.addEventListener("beforeunload",this.clearState),window.addEventListener("unload",this.clearState)},beforeUnmount(){window.removeEventListener("beforeunload",this.clearState),window.removeEventListener("unload",this.clearState)},async mounted(){await this.initializeNotebookSocket(),await this.initializeRunSocket(),await this.initializeStopSocket(),this.$devMode&&await this.initializeSaveSocket(),this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send("")},methods:{startTimer(){this.timer=0,this.timerInterval=setInterval(()=>{this.timer++},1)},stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null)},async runCode(t){if(!t)return;const e=[],r={};for(let i in this.notebook.cells){const d={id:i,code:this.notebook.cells[i].code,variable_name:this.notebook.cells[i].variable_name||"",cellType:this.notebook.cells[i].cellType};for(const f of this.notebook.cells[i].components)r[f.id]=f.value;e.push(d)}const a={originId:t,cells:e,components:r};if(this.isCodeRunning){const i=this.requestQueue.findIndex(d=>d.originId===t);i!==-1?this.requestQueue[i]=a:this.requestQueue.push(a);return}this.sendRunCodeRequest(a)},sendRunCodeRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},initializeNotebookSocket(){return this.notebook_socket=new WebSocket("ws://localhost:2613/ws/notebook"),this.notebook_socket.onmessage=t=>{const e=JSON.parse(t.data);if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.complete)this.isCodeRunning=!1,this.stopTimer();else{const r=JSON.parse(e);if(r.notebook){this.notebook=r.notebook;for(let a in this.notebook.cells)if(this.notebook.cells[a].cellType==="code"){const i={completions:[]};this.completions[a]=i}this.dependencies=r.dependencies}else this.notebook.cells[r.id].components=r.components,this.notebook.cells[r.id].layout=r.layout}},new Promise((t,e)=>{this.notebook_socket.onopen=()=>{console.log("Notebook socket connected"),t()},this.notebook_socket.onerror=r=>{console.error("Notebook socket connection error:",r),e(r)}})},initializeRunSocket(){return this.run_socket=this.$devMode?new WebSocket("ws://localhost:2613/ws/run_code"):new WebSocket("ws://localhost:2613/ws/component_run"),this.run_socket.onmessage=t=>{const e=JSON.parse(t.data);if(!this.$devMode&&e.refresh)this.notebookRefresh();else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.complete){if(this.isCodeRunning=!1,this.stopTimer(),this.$devMode&&this.requestQueue.length>0){const r=this.requestQueue.shift()||{};this.sendRunCodeRequest(r)}else if(!this.$devMode&&this.componentChangeQueue.length>0){const r=this.componentChangeQueue.shift()||{},a={originId:r.originId,components:r.components,userId:r.userId};this.sendComponentRequest(a)}}else{const r=JSON.parse(e);this.notebook.cells[r.id].components=r.components,this.notebook.cells[r.id].layout=r.layout}},new Promise((t,e)=>{this.run_socket.onopen=()=>{console.log("Run socket connected"),t()},this.run_socket.onerror=r=>{console.error("Run socket connection error:",r),e(r)}})},initializeSaveSocket(){return this.save_socket=new WebSocket("ws://localhost:2613/ws/save_text"),this.save_socket.onmessage=t=>{try{const e=JSON.parse(t.data);this.completions[e.cell_id]=Array.isArray(e.completions)?e.completions:[]}catch(e){console.error("Error parsing server message:",e)}},new Promise((t,e)=>{this.save_socket.onopen=()=>{console.log("Save socket connected"),t()},this.save_socket.onerror=r=>{console.error("Save socket connection error:",r),e(r)}})},initializeStopSocket(){return this.stop_socket=new WebSocket("ws://localhost:2613/ws/stop_execution"),new Promise((t,e)=>{this.stop_socket.onopen=()=>{console.log("Stop socket connected"),t()},this.stop_socket.onerror=r=>{console.error("Stop socket connection error:",r),e(r)}})},async componentValueChange(t,e,r){const a={};for(let f in this.notebook.cells)for(const m of this.notebook.cells[f].components)a[m.id]=m.value;const i={originId:t,componentId:e,components:a,userId:this.notebook.userId};if(this.isCodeRunning){const f=this.componentChangeQueue.findIndex(m=>m.componentId===e);f!==-1?this.componentChangeQueue[f]=i:this.componentChangeQueue.push(i);return}const d={originId:i.originId,components:i.components,userId:i.userId};this.sendComponentRequest(d)},sendComponentRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},async notebookRefresh(){this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send("start")},navigateToApp(){window.open("https://zero-true.com/")},clearState:function(){const e={userId:this.notebook.userId};kZ.post("api/clear_state",e)},async createCodeCell(t,e){const r={cellType:e.toLowerCase(),position_key:t},i=(await kZ.post("api/create_cell",r)).data;let d={};t||(d[i.id]=i);for(let f in this.notebook.cells)d[f]=this.notebook.cells[f],t===f&&(d[i.id]=i);i.cellType==="code"&&(this.completions[i.id]=[]),this.notebook.cells=d},async deleteCell(t){const e={cellId:t};await kZ.post("api/delete_cell",e),this.notebook.cells[t].cellType==="code"&&delete this.completions[t],delete this.notebook.cells[t]},async saveCell(t,e,r,a){const i={id:t,text:e,cellType:this.notebook.cells[t].cellType,line:r,column:a};this.save_socket.send(JSON.stringify(i))},async stopCodeExecution(){this.$devMode?(this.requestQueue=[],this.stop_socket.send("")):(this.componentChangeQueue=[],this.stop_socket.send(this.notebook.userId)),this.isCodeRunning=!1,this.stopTimer()},getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};const N9e={key:0,class:"d-flex align-center"};function B9e(t,e,r,a,i,d){const f=q1("PackageComponent");return so(),Ts(FEe,{style:{"background-color":"#040607"}},{default:Yr(()=>[lt(t_e,{app:"",color:"bluegrey"},{default:Yr(()=>[lt(Nc,{size:"x-large",variant:"text",onClick:d.navigateToApp},{default:Yr(()=>[lt(qa,{start:"",size:"x-large",icon:"custom:ZTIcon"}),gi(" Zero-True ")]),_:1},8,["onClick"]),lt(dbe),i.isCodeRunning?(so(),La("div",N9e,[lt(uye,{indeterminate:"",color:"white",size:"24"}),lt(eM,{class:"ml-2",color:"white","text-color":"black"},{default:Yr(()=>[gi(yp(i.timer)+"ms ",1)]),_:1}),t.$devMode?(so(),Ts(eM,{key:0,class:"ml-2",color:"white","text-color":"black"},{default:Yr(()=>[gi(" Queue Length: "+yp(i.requestQueue.length),1)]),_:1})):(so(),Ts(eM,{key:1,class:"ml-2",color:"white","text-color":"black"},{default:Yr(()=>[gi(" Queue Length: "+yp(i.componentChangeQueue.length),1)]),_:1})),lt(qa,{large:"",color:"error",onClick:e[0]||(e[0]=m=>d.stopCodeExecution())},{default:Yr(()=>[gi(" mdi-stop ")]),_:1})])):Nu("",!0),t.$devMode?(so(),Ts(f,{key:1,dependencies:i.dependencies},null,8,["dependencies"])):Nu("",!0)]),_:1}),lt(x6e,null,{default:Yr(()=>[lt(S$,null,{default:Yr(()=>[t.$devMode?(so(),Ts(BS,{key:0,transition:"scale-transition"},{activator:Yr(({props:m})=>[lt(Nc,rs(m,{block:""}),{default:Yr(()=>[lt(cg,null,{default:Yr(()=>[lt(qa,{color:"primary"},{default:Yr(()=>[gi("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:Yr(()=>[lt(NS,null,{default:Yr(()=>[(so(!0),La(Go,null,Hf(i.menu_items,(m,u)=>(so(),Ts(mg,{key:u},{default:Yr(()=>[lt(Nc,{block:"",onClick:p=>d.createCodeCell("",m.title)},{default:Yr(()=>[gi(yp(m.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})):Nu("",!0)]),_:1}),(so(!0),La(Go,null,Hf(i.notebook.cells,m=>(so(),Ts(S$,null,{default:Yr(()=>[m.cellType==="code"?(so(),Ts(sg(d.getComponent(m.cellType)),{key:0,cellData:m,completions:i.completions[m.id],onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell},null,40,["cellData","completions","onRunCode","onSaveCell","onComponentChange","onDeleteCell","onCreateCell"])):(so(),Ts(sg(d.getComponent(m.cellType)),{key:1,cellData:m,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell},null,40,["cellData","onRunCode","onSaveCell","onComponentChange","onDeleteCell","onCreateCell"]))]),_:2},1024))),256))]),_:1})]),_:1})}const Q9e=ny(I9e,[["render",B9e]]);const F9e="modulepreload",V9e=function(t,e){return new URL(t,e).href},Xme={},z9e=function(e,r,a){if(!r||r.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(r.map(d=>{if(d=V9e(d,a),d in Xme)return;Xme[d]=!0;const f=d.endsWith(".css"),m=f?'[rel="stylesheet"]':"";if(!!a)for(let v=i.length-1;v>=0;v--){const y=i[v];if(y.href===d&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${m}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":F9e,f||(p.as="script",p.crossOrigin=""),p.href=d,document.head.appendChild(p),f)return new Promise((v,y)=>{p.addEventListener("load",v),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>e()).catch(d=>{const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=d,window.dispatchEvent(f),!f.defaultPrevented)throw d})};async function Z9e(){(await z9e(()=>import("./webfontloader-11d01d46.js").then(e=>e.w),[],import.meta.url)).load({google:{families:["Pathway+Extreme:100,300,400,500,700,900&display=swap"]}})}const H9e={},U9e={id:"Capa_2","data-name":"Capa 2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 92.58 61.58"},W9e=kd("g",{id:"Capa_1-2","data-name":"Capa 1"},[kd("g",null,[kd("path",{class:"cls-1",d:"m77.14,15.44L61.7,0h-30.82l30.82,30.82v30.76l15.44-15.32,15.44-15.44-15.44-15.38Z"}),kd("path",{class:"cls-1",d:"m15.44,46.14l15.44,15.44h30.82l-30.82-30.82V0l-15.44,15.32L0,30.76l15.44,15.38Z"})])],-1),Y9e=[W9e];function X9e(t,e){return so(),La("svg",U9e,Y9e)}const G9e=ny(H9e,[["render",X9e]]),oae={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function j9e(t,e){const r=[];let a=[];const i=qOe(t),d=KOe(t),f=(i.getDay()-oae[e.slice(-2).toUpperCase()]+7)%7,m=(d.getDay()-oae[e.slice(-2).toUpperCase()]+7)%7;for(let u=0;u{const a=new Date(Gme);return a.setDate(Gme.getDate()+e+r),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(a)})}function tLe(t,e,r){const a=new Date(t);let i={};switch(e){case"fullDateWithWeekday":i={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"normalDateWithWeekday":i={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":i={};break;case"monthAndDate":i={month:"long",day:"numeric"};break;case"monthAndYear":i={month:"long",year:"numeric"};break;case"dayOfMonth":i={day:"numeric"};break;case"shortDate":i={year:"numeric"};break;default:i={timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(r,i).format(a)}function nLe(t,e){const r=new Date(t);return r.setDate(r.getDate()+e),r}function rLe(t,e){const r=new Date(t);return r.setMonth(r.getMonth()+e),r}function oLe(t){return t.getFullYear()}function sLe(t){return t.getMonth()}function aLe(t){return new Date(t.getFullYear(),0,1)}function iLe(t){return new Date(t.getFullYear(),11,31)}function lLe(t,e){return sae(t,e[0])&&uLe(t,e[1])}function cLe(t){if(!t||t==null)return!1;const e=new Date(t);return e instanceof Date&&!isNaN(e.getTime())}function sae(t,e){return t.getTime()>e.getTime()}function uLe(t,e){return t.getTime()0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...r}=t,a=Sp(e,r),{aliases:i={},components:d={},directives:f={}}=a,m=pEe(a.defaults),u=T8e(a.display,a.ssr),p=BEe(a.theme),v=c_e(a.icons),y=LEe(a.locale),b=yLe(a.date);return{install:k=>{for(const C in f)k.directive(C,f[C]);for(const C in d)k.component(C,d[C]);for(const C in i)k.component(C,AM({...i[C],name:C,aliasName:i[C].name}));if(p.install(k),k.provide(hM,m),k.provide(zse,u),k.provide($H,p),k.provide(Lse,v),k.provide(DH,y),k.provide(qme,b),Fl&&a.ssr)if(k.$nuxt)k.$nuxt.hook("app:suspense:resolve",()=>{u.update()});else{const{mount:C}=k;k.mount=function(){const w=C(...arguments);return ec(()=>u.update()),k.mount=C,w}}Wv.reset(),k.mixin({computed:{$vuetify(){return tm({defaults:$P.call(this,hM),display:$P.call(this,zse),theme:$P.call(this,$H),icons:$P.call(this,Lse),locale:$P.call(this,DH),date:$P.call(this,qme)})}}})},defaults:m,display:u,theme:p,icons:v,locale:y,date:b}}const bLe="3.3.20";JOe.version=bLe;function $P(t){var a,i;const e=this.$,r=((a=e.parent)==null?void 0:a.provides)??((i=e.vnode.appContext)==null?void 0:i.provides);if(r&&t in r)return r[t]}const OLe={ZTIcon:G9e},xLe={component:t=>hg(t.tag,[hg(OLe[t.icon],{class:"v-icon__svg"})])},SLe=JOe({theme:{defaultTheme:"light",themes:{light:{dark:!0,colors:{primary:"#AE9FE8",secondary:"#424242",bluegrey:"#0E1B23",bluegrey2:"#1B2F3C",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E"}}}},icons:{defaultSet:"mdi",sets:{mdi:aye,custom:xLe}}});function wLe(t){Z9e(),t.use(SLe)}const Tle=mTe(Q9e);wLe(Tle);Tle.config.globalProperties.$devMode=!1;Tle.mount("#app");export{pTe as g}; diff --git a/zt_backend/dist_app/assets/index-9d4f0e04.css b/zt_backend/dist_app/assets/index-b4b3b1e9.css similarity index 56% rename from zt_backend/dist_app/assets/index-9d4f0e04.css rename to zt_backend/dist_app/assets/index-b4b3b1e9.css index f5299ac2..f9b6a270 100644 --- a/zt_backend/dist_app/assets/index-9d4f0e04.css +++ b/zt_backend/dist_app/assets/index-b4b3b1e9.css @@ -1,4 +1,4 @@ -.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-toolbar{align-items:flex-start;display:flex;flex:none;flex-direction:column;justify-content:space-between;max-width:100%;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom,box-shadow;width:100%;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:0;background:rgb(var(--v-theme-on-surface-variant));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-toolbar--border{border-width:thin;box-shadow:none}.v-toolbar--absolute{position:absolute}.v-toolbar--collapse{max-width:112px;overflow:hidden}.v-toolbar--collapse .v-toolbar-title{display:none}.v-locale--is-ltr.v-toolbar--collapse,.v-locale--is-ltr .v-toolbar--collapse{border-bottom-right-radius:24px}.v-locale--is-rtl.v-toolbar--collapse,.v-locale--is-rtl .v-toolbar--collapse{border-bottom-left-radius:24px}.v-toolbar--flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-toolbar--floating{display:inline-flex}.v-toolbar--rounded{border-radius:4px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;flex:0 0 auto;position:relative;transition:inherit;width:100%}.v-toolbar__content>.v-btn:first-child{margin-inline-start:10px}.v-toolbar__content>.v-btn:last-child{margin-inline-end:10px}.v-toolbar__content>.v-toolbar-title{margin-inline-start:16px}.v-toolbar--density-prominent .v-toolbar__content{align-items:flex-start}.v-toolbar__image{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;opacity:var(--v-toolbar-image-opacity, 1);transition-property:opacity}.v-toolbar__prepend,.v-toolbar__append{align-items:center;align-self:stretch;display:flex}.v-toolbar__prepend{margin-inline-start:10px;margin-inline-end:auto}.v-toolbar__append{margin-inline-start:auto;margin-inline-end:10px}.v-toolbar-title{flex:1 1;min-width:0;font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.75rem;text-transform:none}.v-toolbar--density-prominent .v-toolbar-title{align-self:flex-end;padding-bottom:6px;font-size:1.5rem;font-weight:400;letter-spacing:0;line-height:2.25rem;text-transform:none}.v-toolbar-title__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar-items{display:flex;height:inherit;align-self:stretch}.v-toolbar-items>.v-btn{border-radius:0}.v-img{--v-theme-overlay-multiplier: 3;z-index:0}.v-img--booting .v-responsive__sizer{transition:none}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%}.v-img__img--preload{filter:blur(4px)}.v-img__img--contain{object-fit:contain}.v-img__img--cover{object-fit:cover}.v-img__gradient{background-repeat:no-repeat}.v-responsive{display:flex;flex:1 0 auto;max-height:100%;max-width:100%;overflow:hidden;position:relative}.v-responsive--inline{display:inline-flex;flex:0 0 auto}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-responsive__sizer~.v-responsive__content{margin-inline-start:-100%}.v-responsive__sizer{flex:1 0 0px;transition:padding-bottom .2s cubic-bezier(.4,0,.2,1);pointer-events:none}.v-btn{align-items:center;border-radius:4px;display:inline-grid;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;font-weight:500;justify-content:center;letter-spacing:.0892857143em;line-height:normal;max-width:100%;outline:none;position:relative;text-decoration:none;text-indent:.0892857143em;text-transform:uppercase;transition-property:box-shadow,transform,opacity,background;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;vertical-align:middle;flex-shrink:0;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 20px;font-size:var(--v-btn-size);min-width:36px;padding:0 8px}.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 28px;font-size:var(--v-btn-size);min-width:50px;padding:0 12px}.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 36px;font-size:var(--v-btn-size);min-width:64px;padding:0 16px}.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 44px;font-size:var(--v-btn-size);min-width:78px;padding:0 20px}.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 52px;font-size:var(--v-btn-size);min-width:92px;padding:0 24px}.v-btn.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -8px)}.v-btn.v-btn--density-compact{height:calc(var(--v-btn-height) + -12px)}.v-btn--border{border-width:thin;box-shadow:none}.v-btn--absolute{position:absolute}.v-btn--fixed{position:fixed}.v-btn:hover>.v-btn__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-btn:focus-visible>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn:focus>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-btn--active>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn--active:hover>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn--active:focus-visible>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn--active:focus>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn--variant-plain,.v-btn--variant-outlined,.v-btn--variant-text,.v-btn--variant-tonal{background:transparent;color:inherit}.v-btn--variant-plain{opacity:.62}.v-btn--variant-plain:focus,.v-btn--variant-plain:hover{opacity:1}.v-btn--variant-plain .v-btn__overlay{display:none}.v-btn--variant-elevated,.v-btn--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn--variant-elevated{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-outlined{border:thin solid currentColor}.v-btn--variant-text .v-btn__overlay{background:currentColor}.v-btn--variant-tonal .v-btn__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}@supports selector(:focus-visible){.v-btn:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn:focus-visible:after{opacity:calc(.25 * var(--v-theme-overlay-multiplier))}}.v-btn--icon{border-radius:50%;min-width:0;padding:0}.v-btn--icon.v-btn--size-default{--v-btn-size: 1rem}.v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 12px)}.v-btn--icon.v-btn--density-comfortable{width:calc(var(--v-btn-height) + 0px);height:calc(var(--v-btn-height) + 0px)}.v-btn--icon.v-btn--density-compact{width:calc(var(--v-btn-height) + -8px);height:calc(var(--v-btn-height) + -8px)}.v-btn--elevated:hover,.v-btn--elevated:focus{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--elevated:active{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--flat{box-shadow:none}.v-btn--block{display:flex;flex:1 0 auto;min-width:100%}.v-btn--disabled{pointer-events:none;opacity:.26}.v-btn--disabled:hover{opacity:.26}.v-btn--disabled.v-btn--variant-elevated,.v-btn--disabled.v-btn--variant-flat{box-shadow:none;opacity:1;color:rgba(var(--v-theme-on-surface),.26);background:rgb(var(--v-theme-surface))}.v-btn--disabled.v-btn--variant-elevated .v-btn__overlay,.v-btn--disabled.v-btn--variant-flat .v-btn__overlay{opacity:.4615384615}.v-btn--loading{pointer-events:none}.v-btn--loading .v-btn__content,.v-btn--loading .v-btn__prepend,.v-btn--loading .v-btn__append{opacity:0}.v-btn--stacked{grid-template-areas:"prepend" "content" "append";grid-template-columns:auto;grid-template-rows:max-content max-content max-content;justify-items:center;align-content:center}.v-btn--stacked .v-btn__content{flex-direction:column;line-height:1.25}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--start,.v-btn--stacked .v-btn__content>.v-icon--end{margin-inline-start:0;margin-inline-end:0}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__content>.v-icon--start{margin-bottom:4px}.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--end{margin-top:4px}.v-btn--stacked.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 56px;font-size:var(--v-btn-size);min-width:56px;padding:0 12px}.v-btn--stacked.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 64px;font-size:var(--v-btn-size);min-width:64px;padding:0 14px}.v-btn--stacked.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 72px;font-size:var(--v-btn-size);min-width:72px;padding:0 16px}.v-btn--stacked.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 80px;font-size:var(--v-btn-size);min-width:80px;padding:0 18px}.v-btn--stacked.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 88px;font-size:var(--v-btn-size);min-width:88px;padding:0 20px}.v-btn--stacked.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn--stacked.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -16px)}.v-btn--stacked.v-btn--density-compact{height:calc(var(--v-btn-height) + -24px)}.v-btn--rounded{border-radius:24px}.v-btn--rounded.v-btn--icon{border-radius:4px}.v-btn .v-icon{--v-icon-size-multiplier: .8571428571}.v-btn--icon .v-icon{--v-icon-size-multiplier: 1}.v-btn--stacked .v-icon{--v-icon-size-multiplier: 1.1428571429}.v-btn__loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-btn__content,.v-btn__prepend,.v-btn__append{align-items:center;display:flex;transition:transform,opacity .2s cubic-bezier(.4,0,.2,1)}.v-btn__prepend{grid-area:prepend;margin-inline-start:calc(var(--v-btn-height) / -9);margin-inline-end:calc(var(--v-btn-height) / 4.5)}.v-btn__append{grid-area:append;margin-inline-start:calc(var(--v-btn-height) / 4.5);margin-inline-end:calc(var(--v-btn-height) / -9)}.v-btn__content{grid-area:content;justify-content:center;white-space:nowrap}.v-btn__content>.v-icon--start{margin-inline-start:calc(var(--v-btn-height) / -9);margin-inline-end:calc(var(--v-btn-height) / 4.5)}.v-btn__content>.v-icon--end{margin-inline-start:calc(var(--v-btn-height) / 4.5);margin-inline-end:calc(var(--v-btn-height) / -9)}.v-btn--stacked .v-btn__content{white-space:normal}.v-btn__overlay{background-color:currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn__overlay,.v-btn__underlay{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.v-card-actions .v-btn{padding:0 8px}.v-card-actions .v-btn~.v-btn:not(.v-btn-toggle .v-btn){margin-inline-start:.5rem}.v-banner-actions .v-btn{padding:0 8px}.v-pagination .v-btn{border-radius:4px}.v-btn__overlay{transition:none}.v-pagination__item--is-active .v-btn__overlay{opacity:var(--v-border-opacity)}.v-snackbar-actions .v-btn{padding:0 8px}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled)>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn-group{display:inline-flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow:hidden;vertical-align:middle;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px;background:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn-group--border{border-width:thin;box-shadow:none}.v-btn-group--density-default.v-btn-group{height:48px}.v-btn-group--density-comfortable.v-btn-group{height:40px}.v-btn-group--density-compact.v-btn-group{height:36px}.v-btn-group .v-btn{border-radius:0;border-color:inherit}.v-btn-group .v-btn:not(:last-child){border-inline-end:none}.v-btn-group .v-btn:not(:first-child){border-inline-start:none}.v-btn-group .v-btn:first-child{border-start-start-radius:inherit;border-end-start-radius:inherit}.v-btn-group .v-btn:last-child{border-start-end-radius:inherit;border-end-end-radius:inherit}.v-btn-group--divided .v-btn:not(:last-child){border-inline-end-width:thin;border-inline-end-style:solid;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-btn-group--tile{border-radius:0}.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}.v-progress-circular{align-items:center;display:inline-flex;justify-content:center;position:relative;vertical-align:middle}.v-progress-circular>svg{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:0}.v-progress-circular__content{align-items:center;display:flex;justify-content:center}.v-progress-circular__underlay{color:rgba(var(--v-border-color),var(--v-border-opacity));stroke:currentColor;z-index:1}.v-progress-circular__overlay{stroke:currentColor;transition:all .2s ease-in-out,stroke-width 0s;z-index:2}.v-progress-circular--size-x-small{height:16px;width:16px}.v-progress-circular--size-small{height:24px;width:24px}.v-progress-circular--size-default{height:32px;width:32px}.v-progress-circular--size-large{height:48px;width:48px}.v-progress-circular--size-x-large{height:64px;width:64px}.v-progress-circular--indeterminate>svg{animation:progress-circular-rotate 1.4s linear infinite;transform-origin:center center;transition:all .2s ease-in-out}.v-progress-circular--indeterminate .v-progress-circular__overlay{animation:progress-circular-dash 1.4s ease-in-out infinite,progress-circular-rotate 1.4s linear infinite;stroke-dasharray:25,200;stroke-dashoffset:0;stroke-linecap:round;transform-origin:center center;transform:rotate(-90deg)}.v-progress-circular--disable-shrink>svg{animation-duration:.7s}.v-progress-circular--disable-shrink .v-progress-circular__overlay{animation:none}.v-progress-circular--indeterminate:not(.v-progress-circular--visible)>svg,.v-progress-circular--indeterminate:not(.v-progress-circular--visible) .v-progress-circular__overlay{animation-play-state:paused!important}@keyframes progress-circular-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-rotate{to{transform:rotate(270deg)}}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);width:100%}.v-progress-linear__background{background:currentColor;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;top:0;transition-property:width,left,right;transition:inherit}.v-progress-linear__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%}.v-progress-linear__determinate,.v-progress-linear__indeterminate{background:currentColor}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear__indeterminate .long,.v-progress-linear__indeterminate .short{animation-play-state:paused;animation-duration:2.2s;animation-iteration-count:infinite;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto;will-change:left,right}.v-progress-linear__indeterminate .long{animation-name:indeterminate-ltr}.v-progress-linear__indeterminate .short{animation-name:indeterminate-short-ltr}.v-progress-linear__stream{animation:stream .25s infinite linear;animation-play-state:paused;bottom:0;left:auto;opacity:.3;pointer-events:none;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear--reverse .v-progress-linear__background,.v-progress-linear--reverse .v-progress-linear__determinate,.v-progress-linear--reverse .v-progress-linear__content,.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate .long{animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate .short{animation-name:indeterminate-short-rtl}.v-progress-linear--reverse .v-progress-linear__stream{right:auto}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--rounded{border-radius:9999px}.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__indeterminate{border-radius:inherit}.v-progress-linear--striped .v-progress-linear__determinate{animation:progress-linear-stripes 1s infinite linear;background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-repeat:repeat;background-size:var(--v-progress-linear-height)}.v-progress-linear--active .v-progress-linear__indeterminate .long,.v-progress-linear--active .v-progress-linear__indeterminate .short,.v-progress-linear--active .v-progress-linear__stream{animation-play-state:running}.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded-bar .v-progress-linear__indeterminate,.v-progress-linear--rounded-bar .v-progress-linear__stream+.v-progress-linear__background{border-radius:9999px}.v-locale--is-ltr.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-locale--is-ltr .v-progress-linear--rounded-bar .v-progress-linear__determinate{border-top-left-radius:0;border-bottom-left-radius:0}.v-locale--is-rtl.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-locale--is-rtl .v-progress-linear--rounded-bar .v-progress-linear__determinate{border-top-right-radius:0;border-bottom-right-radius:0}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes stream{to{transform:translate(var(--v-progress-linear-stream-to))}}@keyframes progress-linear-stripes{0%{background-position-x:var(--v-progress-linear-height)}}.v-ripple__container{color:inherit;border-radius:inherit;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;z-index:0;pointer-events:none;contain:strict}.v-ripple__animation{color:inherit;position:absolute;top:0;left:0;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;overflow:hidden;will-change:transform,opacity}.v-ripple__animation--enter{transition:none;opacity:0}.v-ripple__animation--in{transition:transform .25s cubic-bezier(0,0,.2,1),opacity .1s cubic-bezier(0,0,.2,1);opacity:calc(.25 * var(--v-theme-overlay-multiplier))}.v-ripple__animation--out{transition:opacity .3s cubic-bezier(0,0,.2,1);opacity:0}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{align-self:flex-start;flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-on-surface-variant))}.v-autocomplete__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:90%}.v-autocomplete__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single.v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline-start:inherit;padding-inline-end:inherit}.v-autocomplete--single .v-field--variant-outlined input{top:50%;transform:translateY(calc(-50% - (var(--v-input-chips-margin-top) + var(--v-input-chips-margin-bottom)) / 2))}.v-autocomplete--single .v-field--active input{transition:none}.v-autocomplete--single .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error .v-label,.v-selection-control--disabled .v-label{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-label{align-items:center;color:inherit;display:inline-flex;font-size:1rem;letter-spacing:.009375em;min-width:0;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-label--clickable{cursor:pointer}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap}.v-input{display:grid;flex:1 1 auto;font-size:1rem;font-weight:400;line-height:1.5;--v-input-chips-margin-top: 2px}.v-input--disabled{pointer-events:none}.v-input--density-default{--v-input-control-height: 56px;--v-input-padding-top: 15px}.v-input--density-comfortable{--v-input-control-height: 48px;--v-input-padding-top: 11px}.v-input--density-compact{--v-input-control-height: 40px;--v-input-padding-top: 7px}.v-input--density-default{--v-input-chips-margin-bottom: 0px}.v-input--density-comfortable{--v-input-chips-margin-bottom: 2px}.v-input--density-compact{--v-input-chips-margin-bottom: 4px}.v-input--vertical{grid-template-areas:"append" "control" "prepend";grid-template-rows:max-content auto max-content;grid-template-columns:min-content}.v-input--vertical .v-input__prepend{margin-block-start:16px}.v-input--vertical .v-input__append{margin-block-end:16px}.v-input--horizontal{grid-template-areas:"prepend control append" "a messages b";grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-rows:auto auto}.v-input--horizontal .v-input__prepend{margin-inline-end:16px}.v-input--horizontal .v-input__append{margin-inline-start:16px}.v-input__details{align-items:flex-end;display:flex;font-size:.75rem;font-weight:400;grid-area:messages;letter-spacing:.0333333333em;line-height:normal;min-height:22px;padding-top:6px;overflow:hidden;justify-content:space-between}.v-input__details>.v-icon,.v-input__prepend>.v-icon,.v-input__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-input--disabled .v-input__details>.v-icon,.v-input--disabled .v-input__details .v-messages,.v-input--error .v-input__details>.v-icon,.v-input--error .v-input__details .v-messages,.v-input--disabled .v-input__prepend>.v-icon,.v-input--disabled .v-input__prepend .v-messages,.v-input--error .v-input__prepend>.v-icon,.v-input--error .v-input__prepend .v-messages,.v-input--disabled .v-input__append>.v-icon,.v-input--disabled .v-input__append .v-messages,.v-input--error .v-input__append>.v-icon,.v-input--error .v-input__append .v-messages{opacity:1}.v-input--disabled .v-input__details,.v-input--disabled .v-input__prepend,.v-input--disabled .v-input__append{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-input__details>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__details .v-messages,.v-input--error:not(.v-input--disabled) .v-input__prepend>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__prepend .v-messages,.v-input--error:not(.v-input--disabled) .v-input__append>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__append .v-messages{color:rgb(var(--v-theme-error))}.v-input__prepend,.v-input__append{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top)}.v-input--center-affix .v-input__prepend,.v-input--center-affix .v-input__append{align-items:center;padding-top:0}.v-input__prepend{grid-area:prepend}.v-input__append{grid-area:append}.v-input__control{display:flex;grid-area:control}.v-messages{flex:1 1 auto;font-size:12px;min-height:14px;min-width:1px;opacity:var(--v-medium-emphasis-opacity);position:relative}.v-messages__message{line-height:12px;word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;transition-duration:.15s}.v-chip{align-items:center;cursor:default;display:inline-flex;font-weight:400;max-width:100%;min-width:0;overflow:hidden;position:relative;text-decoration:none;white-space:nowrap;vertical-align:middle;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;border-radius:9999px}.v-chip.v-chip--size-x-small{--v-chip-size: .625rem;--v-chip-height: 18px;font-size:.625rem;padding:0 7px}.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 12px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 18px}.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-4.9px;margin-inline-end:3.5px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-7px}.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-start:3.5px;margin-inline-end:-4.9px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-end:-7px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close{margin-inline-start:10.5px}.v-chip.v-chip--size-x-small .v-icon--start,.v-chip.v-chip--size-x-small .v-chip__filter{margin-inline-start:-3.5px;margin-inline-end:3.5px}.v-chip.v-chip--size-x-small .v-icon--end,.v-chip.v-chip--size-x-small .v-chip__close{margin-inline-start:3.5px;margin-inline-end:-3.5px}.v-chip.v-chip--size-x-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-chip__append+.v-chip__close{margin-inline-start:7px}.v-chip.v-chip--size-small{--v-chip-size: .75rem;--v-chip-height: 24px;font-size:.75rem;padding:0 9px}.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 18px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 24px}.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-6.3px;margin-inline-end:4.5px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-9px}.v-chip.v-chip--size-small .v-avatar--end{margin-inline-start:4.5px;margin-inline-end:-6.3px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end{margin-inline-end:-9px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close{margin-inline-start:13.5px}.v-chip.v-chip--size-small .v-icon--start,.v-chip.v-chip--size-small .v-chip__filter{margin-inline-start:-4.5px;margin-inline-end:4.5px}.v-chip.v-chip--size-small .v-icon--end,.v-chip.v-chip--size-small .v-chip__close{margin-inline-start:4.5px;margin-inline-end:-4.5px}.v-chip.v-chip--size-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-small .v-chip__append+.v-chip__close{margin-inline-start:9px}.v-chip.v-chip--size-default{--v-chip-size: .875rem;--v-chip-height: 30px;font-size:.875rem;padding:0 11px}.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 24px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 30px}.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-7.7px;margin-inline-end:5.5px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-11px}.v-chip.v-chip--size-default .v-avatar--end{margin-inline-start:5.5px;margin-inline-end:-7.7px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end{margin-inline-end:-11px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close{margin-inline-start:16.5px}.v-chip.v-chip--size-default .v-icon--start,.v-chip.v-chip--size-default .v-chip__filter{margin-inline-start:-5.5px;margin-inline-end:5.5px}.v-chip.v-chip--size-default .v-icon--end,.v-chip.v-chip--size-default .v-chip__close{margin-inline-start:5.5px;margin-inline-end:-5.5px}.v-chip.v-chip--size-default .v-icon--end+.v-chip__close,.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-default .v-chip__append+.v-chip__close{margin-inline-start:11px}.v-chip.v-chip--size-large{--v-chip-size: 1rem;--v-chip-height: 36px;font-size:1rem;padding:0 14px}.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 30px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 36px}.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-9.8px;margin-inline-end:7px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-14px}.v-chip.v-chip--size-large .v-avatar--end{margin-inline-start:7px;margin-inline-end:-9.8px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end{margin-inline-end:-14px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close{margin-inline-start:21px}.v-chip.v-chip--size-large .v-icon--start,.v-chip.v-chip--size-large .v-chip__filter{margin-inline-start:-7px;margin-inline-end:7px}.v-chip.v-chip--size-large .v-icon--end,.v-chip.v-chip--size-large .v-chip__close{margin-inline-start:7px;margin-inline-end:-7px}.v-chip.v-chip--size-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-large .v-chip__append+.v-chip__close{margin-inline-start:14px}.v-chip.v-chip--size-x-large{--v-chip-size: 1.125rem;--v-chip-height: 42px;font-size:1.125rem;padding:0 16px}.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 36px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 42px}.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-11.2px;margin-inline-end:8px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-16px}.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-start:8px;margin-inline-end:-11.2px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-end:-16px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close{margin-inline-start:24px}.v-chip.v-chip--size-x-large .v-icon--start,.v-chip.v-chip--size-x-large .v-chip__filter{margin-inline-start:-8px;margin-inline-end:8px}.v-chip.v-chip--size-x-large .v-icon--end,.v-chip.v-chip--size-x-large .v-chip__close{margin-inline-start:8px;margin-inline-end:-8px}.v-chip.v-chip--size-x-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-chip__append+.v-chip__close{margin-inline-start:16px}.v-chip.v-chip--density-default{height:calc(var(--v-chip-height) + 0px)}.v-chip.v-chip--density-comfortable{height:calc(var(--v-chip-height) + -8px)}.v-chip.v-chip--density-compact{height:calc(var(--v-chip-height) + -12px)}.v-chip:hover>.v-chip__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-chip:focus-visible>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip:focus>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-chip--active>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]>.v-chip__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-chip--active:hover>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:hover>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-chip--active:focus-visible>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip--active:focus>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-chip--variant-plain,.v-chip--variant-outlined,.v-chip--variant-text,.v-chip--variant-tonal{background:transparent;color:inherit}.v-chip--variant-plain{opacity:.26}.v-chip--variant-plain:focus,.v-chip--variant-plain:hover{opacity:1}.v-chip--variant-plain .v-chip__overlay{display:none}.v-chip--variant-elevated,.v-chip--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-chip--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-outlined{border:thin solid currentColor}.v-chip--variant-text .v-chip__overlay{background:currentColor}.v-chip--variant-tonal .v-chip__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-chip--border{border-width:thin}.v-chip--link{cursor:pointer}.v-chip--filter{-webkit-user-select:none;user-select:none}.v-chip__content{align-items:center;display:inline-flex}.v-autocomplete__selection .v-chip__content,.v-combobox__selection .v-chip__content,.v-select__selection .v-chip__content{overflow:hidden}.v-chip__filter,.v-chip__prepend,.v-chip__append,.v-chip__close{align-items:center;display:inline-flex}.v-chip__close{cursor:pointer;flex:0 1 auto;font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;user-select:none}.v-chip__close .v-icon{font-size:inherit}.v-chip__filter{transition:.15s cubic-bezier(.4,0,.2,1)}.v-chip__overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:currentColor;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-chip--disabled{opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none}.v-chip--label{border-radius:4px}.v-avatar{flex:none;align-items:center;display:inline-flex;justify-content:center;line-height:normal;overflow:hidden;position:relative;text-align:center;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:width,height;vertical-align:middle;border-radius:50%}.v-avatar.v-avatar--size-x-small{--v-avatar-height: 24px}.v-avatar.v-avatar--size-small{--v-avatar-height: 32px}.v-avatar.v-avatar--size-default{--v-avatar-height: 40px}.v-avatar.v-avatar--size-large{--v-avatar-height: 48px}.v-avatar.v-avatar--size-x-large{--v-avatar-height: 56px}.v-avatar.v-avatar--density-default{height:calc(var(--v-avatar-height) + 0px);width:calc(var(--v-avatar-height) + 0px)}.v-avatar.v-avatar--density-comfortable{height:calc(var(--v-avatar-height) + -4px);width:calc(var(--v-avatar-height) + -4px)}.v-avatar.v-avatar--density-compact{height:calc(var(--v-avatar-height) + -8px);width:calc(var(--v-avatar-height) + -8px)}.v-avatar--variant-plain,.v-avatar--variant-outlined,.v-avatar--variant-text,.v-avatar--variant-tonal{background:transparent;color:inherit}.v-avatar--variant-plain{opacity:.62}.v-avatar--variant-plain:focus,.v-avatar--variant-plain:hover{opacity:1}.v-avatar--variant-plain .v-avatar__overlay{display:none}.v-avatar--variant-elevated,.v-avatar--variant-flat{background:var(--v-theme-surface);color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-avatar--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-outlined{border:thin solid currentColor}.v-avatar--variant-text .v-avatar__overlay{background:currentColor}.v-avatar--variant-tonal .v-avatar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-avatar--rounded{border-radius:4px}.v-avatar .v-img{height:100%;width:100%}.v-chip-group{display:flex;max-width:100%;min-width:0;overflow-x:auto;padding:4px 0;flex-wrap:wrap}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip.v-chip--selected:not(.v-chip--disabled) .v-chip__overlay{opacity:var(--v-activated-opacity)}.v-chip-group--column{flex-wrap:wrap;white-space:normal}.v-list{overflow:auto;padding:8px 0;position:relative;outline:none;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:0;background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list--border{border-width:thin;box-shadow:none}.v-list--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-list--nav{padding-inline-start:8px;padding-inline-end:8px}.v-list--rounded{border-radius:4px}.v-list--subheader{padding-top:0}.v-list-img{border-radius:inherit;display:flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-list-subheader{align-items:center;background:inherit;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));display:flex;font-size:.875rem;font-weight:400;line-height:1.375rem;padding-inline-end:16px;min-height:40px;transition:.2s min-height cubic-bezier(.4,0,.2,1)}.v-list-subheader__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-list--density-default .v-list-subheader{min-height:40px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-comfortable .v-list-subheader{min-height:36px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-compact .v-list-subheader{min-height:32px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-subheader--inset{--indent-padding: 56px}.v-list--nav .v-list-subheader{font-size:.75rem}.v-list-subheader--sticky{background:inherit;left:0;position:sticky;top:0;z-index:1}.v-list__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content 1fr auto;outline:none;max-width:100%;padding:4px 16px;position:relative;text-decoration:none;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;border-radius:0}.v-list-item--border{border-width:thin;box-shadow:none}.v-list-item:hover>.v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item:focus-visible>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item:focus>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-list-item--active>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]>.v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--active:hover>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:hover>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-list-item--active:focus-visible>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item--active:focus>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-list-item--variant-plain,.v-list-item--variant-outlined,.v-list-item--variant-text,.v-list-item--variant-tonal{background:transparent;color:inherit}.v-list-item--variant-plain{opacity:.62}.v-list-item--variant-plain:focus,.v-list-item--variant-plain:hover{opacity:1}.v-list-item--variant-plain .v-list-item__overlay{display:none}.v-list-item--variant-elevated,.v-list-item--variant-flat{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list-item--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-outlined{border:thin solid currentColor}.v-list-item--variant-text .v-list-item__overlay{background:currentColor}.v-list-item--variant-tonal .v-list-item__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}@supports selector(:focus-visible){.v-list-item:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid currentColor;border-radius:4px;opacity:0;transition:opacity .2s ease-in-out}.v-list-item:focus-visible:after{opacity:calc(.15 * var(--v-theme-overlay-multiplier))}}.v-list-item__prepend>.v-badge .v-icon,.v-list-item__prepend>.v-icon,.v-list-item__append>.v-badge .v-icon,.v-list-item__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-list-item--active .v-list-item__prepend>.v-badge .v-icon,.v-list-item--active .v-list-item__prepend>.v-icon,.v-list-item--active .v-list-item__append>.v-badge .v-icon,.v-list-item--active .v-list-item__append>.v-icon{opacity:1}.v-list-item--rounded{border-radius:4px}.v-list-item--disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.6}.v-list-item--link{cursor:pointer}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item .v-avatar,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item .v-avatar{--v-avatar-height: 24px}.v-list-item__prepend{align-items:center;align-self:center;display:flex;grid-area:prepend}.v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item--three-line .v-list-item__prepend{align-self:start}.v-list-item__append{align-self:center;display:flex;align-items:center;grid-area:append;overflow:hidden}.v-list-item__append .v-list-item__spacer{order:-1;transition:.15s width cubic-bezier(.4,0,.2,1)}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item__append .v-list-item__spacer,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item__append .v-list-item__spacer{width:0}.v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item__append>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__append>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item--three-line .v-list-item__append{align-self:start}.v-list-item__content{align-self:center;grid-area:content;overflow:hidden}.v-list-item-action{align-self:center;display:flex;align-items:center;grid-area:prepend;flex:none;transition:inherit;transition-property:height,width}.v-list-item-action--start{margin-inline-end:12px}.v-list-item-action--end{margin-inline-start:12px}.v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-media--start{margin-inline-end:16px}.v-list-item-media--end{margin-inline-start:16px}.v-list-item--two-line .v-list-item-media{margin-top:-4px;margin-bottom:-4px}.v-list-item--three-line .v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-subtitle{-webkit-box-orient:vertical;display:-webkit-box;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;padding:0;text-overflow:ellipsis;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem;text-transform:none}.v-list-item--one-line .v-list-item-subtitle{-webkit-line-clamp:1}.v-list-item--two-line .v-list-item-subtitle{-webkit-line-clamp:2}.v-list-item--three-line .v-list-item-subtitle{-webkit-line-clamp:3}.v-list-item--nav .v-list-item-subtitle{font-size:.75rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem}.v-list-item-title{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:normal;overflow:hidden;padding:0;white-space:nowrap;text-overflow:ellipsis;word-break:normal;word-wrap:break-word;font-size:1rem;font-weight:400;letter-spacing:.009375em;line-height:1.5rem;text-transform:none}.v-list-item--nav .v-list-item-title{font-size:.8125rem;font-weight:500;letter-spacing:normal;line-height:1rem}.v-list-item--density-default{min-height:40px}.v-list-item--density-default.v-list-item--one-line{min-height:48px;padding-top:4px;padding-bottom:4px}.v-list-item--density-default.v-list-item--two-line{min-height:64px;padding-top:12px;padding-bottom:12px}.v-list-item--density-default.v-list-item--three-line{min-height:88px;padding-top:16px;padding-bottom:16px}.v-list-item--density-default.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-default.v-list-item--three-line .v-list-item__append{padding-top:8px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--one-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--two-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--three-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-comfortable{min-height:36px}.v-list-item--density-comfortable.v-list-item--one-line{min-height:44px}.v-list-item--density-comfortable.v-list-item--two-line{min-height:60px;padding-top:8px;padding-bottom:8px}.v-list-item--density-comfortable.v-list-item--three-line{min-height:84px;padding-top:12px;padding-bottom:12px}.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__append{padding-top:6px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--one-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--two-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--three-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-compact{min-height:32px}.v-list-item--density-compact.v-list-item--one-line{min-height:40px}.v-list-item--density-compact.v-list-item--two-line{min-height:56px;padding-top:4px;padding-bottom:4px}.v-list-item--density-compact.v-list-item--three-line{min-height:80px;padding-top:8px;padding-bottom:8px}.v-list-item--density-compact.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-compact.v-list-item--three-line .v-list-item__append{padding-top:4px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--one-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--two-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--three-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--nav{padding-inline-start:8px;padding-inline-end:8px}.v-list .v-list-item--nav:not(:only-child){margin-bottom:4px}.v-list-item__underlay{position:absolute}.v-list-item__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item--active.v-list-item--variant-elevated .v-list-item__overlay{--v-theme-overlay-multiplier: 0}.v-list{--indent-padding: 0px}.v-list--nav{--indent-padding: -8px}.v-list-group{--list-indent-size: 16px;--parent-padding: var(--indent-padding);--prepend-width: 40px}.v-list-group--fluid{--list-indent-size: 0px}.v-list-group--prepend{--parent-padding: calc(var(--indent-padding) + var(--prepend-width))}.v-list-group--fluid.v-list-group--prepend{--parent-padding: var(--indent-padding)}.v-list-group__items{--indent-padding: calc(var(--parent-padding) + var(--list-indent-size))}.v-list-group__items .v-list-item{padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-group__header.v-list-item--active:not(:focus-visible) .v-list-item__overlay{opacity:0}.v-list-group__header.v-list-item--active:hover .v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-divider{display:block;flex:1 1 100%;height:0px;max-height:0px;opacity:var(--v-border-opacity);transition:inherit;border-style:solid;border-width:thin 0 0 0}.v-divider--vertical{align-self:stretch;border-width:0 thin 0 0;display:inline-flex;height:inherit;margin-left:-1px;max-height:100%;max-width:0px;vertical-align:text-bottom;width:0px}.v-divider--inset:not(.v-divider--vertical){max-width:calc(100% - 72px);margin-inline-start:72px}.v-divider--inset.v-divider--vertical{margin-bottom:8px;margin-top:8px;max-height:calc(100% - 16px)}.v-menu>.v-overlay__content{display:flex;flex-direction:column;border-radius:4px}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{background:rgb(var(--v-theme-surface));border-radius:inherit;overflow:auto;height:100%;box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-overlay-container{contain:layout;left:0;pointer-events:none;position:absolute;top:0;display:contents}.v-overlay-scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-overlay-scroll-blocked:not(html){overflow-y:hidden!important}html.v-overlay-scroll-blocked{position:fixed;top:var(--v-body-scroll-y);left:var(--v-body-scroll-x);width:100%;height:100%}.v-overlay{border-radius:inherit;display:flex;left:0;pointer-events:none;position:fixed;top:0;bottom:0;right:0}.v-overlay__content{outline:none;position:absolute;pointer-events:auto;contain:layout}.v-overlay__scrim{pointer-events:auto;background:rgb(var(--v-theme-on-surface));border-radius:inherit;bottom:0;left:0;opacity:.32;position:fixed;right:0;top:0}.v-overlay--absolute,.v-overlay--contained .v-overlay__scrim{position:absolute}.v-overlay--scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-text-field input{color:inherit;opacity:0;flex:1;transition:.15s opacity cubic-bezier(.4,0,.2,1);min-width:0}.v-text-field input:focus,.v-text-field input:active{outline:none}.v-text-field input:invalid{box-shadow:none}.v-text-field .v-field{cursor:text}.v-text-field--prefixed.v-text-field .v-field__input{--v-field-padding-start: 6px}.v-text-field--suffixed.v-text-field .v-field__input{--v-field-padding-end: 0}.v-text-field .v-field__input input{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-text-field input.v-field__input{min-height:calc(max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom) + var(--v-input-chips-margin-bottom) + 2px) - var(--v-input-chips-margin-top) - var(--v-input-chips-margin-bottom));padding-top:calc(var(--v-input-chips-margin-top) + var(--v-field-input-padding-top));padding-bottom:calc(var(--v-input-chips-margin-bottom) + var(--v-field-input-padding-bottom))}.v-text-field .v-input__details{padding-inline-start:16px;padding-inline-end:16px}.v-text-field .v-field--no-label input,.v-text-field .v-field--active input{opacity:1}.v-text-field .v-field--single-line input{transition:none}.v-text-field__prefix,.v-text-field__suffix{align-items:center;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));cursor:default;display:flex;opacity:0;transition:inherit;white-space:nowrap;min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom) + var(--v-input-chips-margin-bottom) + 2px);padding-top:calc(var(--v-field-padding-top, 4px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 6px)}.v-text-field__prefix__text,.v-text-field__suffix__text{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-field--active .v-text-field__prefix,.v-field--active .v-text-field__suffix{opacity:1}.v-field--disabled .v-text-field__prefix,.v-field--disabled .v-text-field__suffix{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-text-field__prefix{padding-inline-start:var(--v-field-padding-start)}.v-text-field__suffix{padding-inline-end:var(--v-field-padding-end)}.v-text-field--plain-underlined{--v-field-padding-top--plain-underlined: 6px}.v-text-field--plain-underlined .v-input__details{padding:0}.v-text-field--plain-underlined .v-input__prepend,.v-text-field--plain-underlined .v-input__append{align-items:flex-start;padding-top:calc(var(--v-field-padding-top--plain-underlined) + var(--v-input-padding-top))}.v-counter{color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));flex:0 1 auto;font-size:12px;transition-duration:.15s}.v-field{display:grid;grid-template-areas:"prepend-inner field clear append-inner";grid-template-columns:min-content minmax(0,1fr) min-content min-content;font-size:16px;letter-spacing:.009375em;max-width:100%;border-radius:4px;contain:layout;flex:1 0;grid-area:control;position:relative;--v-field-padding-start: 16px;--v-field-padding-end: 16px;--v-field-padding-top: 10px;--v-field-padding-bottom: 5px;--v-field-input-padding-top: calc(var(--v-field-padding-top, 10px) + var(--v-input-padding-top, 0));--v-field-input-padding-bottom: var(--v-field-padding-bottom, 5px)}.v-field--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-field--prepended{padding-inline-start:12px}.v-field--appended{padding-inline-end:12px}.v-field--variant-solo,.v-field--variant-solo-filled,.v-field--variant-solo-inverted{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity));box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted.v-field--focused{color:rgb(var(--v-theme-on-surface-variant))}.v-field--variant-filled{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-input--density-default .v-field--variant-solo,.v-input--density-default .v-field--variant-solo-inverted,.v-input--density-default .v-field--variant-solo-filled,.v-input--density-default .v-field--variant-filled{--v-input-control-height: 56px;--v-field-padding-bottom: 5px}.v-input--density-comfortable .v-field--variant-solo,.v-input--density-comfortable .v-field--variant-solo-inverted,.v-input--density-comfortable .v-field--variant-solo-filled,.v-input--density-comfortable .v-field--variant-filled{--v-input-control-height: 48px;--v-field-padding-bottom: 1px}.v-input--density-compact .v-field--variant-solo,.v-input--density-compact .v-field--variant-solo-inverted,.v-input--density-compact .v-field--variant-solo-filled,.v-input--density-compact .v-field--variant-filled{--v-input-control-height: 40px;--v-field-padding-bottom: 0px}.v-field--variant-outlined,.v-field--single-line,.v-field--no-label{--v-field-padding-top: 0px}.v-input--density-default .v-field--variant-outlined,.v-input--density-default .v-field--single-line,.v-input--density-default .v-field--no-label{--v-field-padding-bottom: 15px}.v-input--density-comfortable .v-field--variant-outlined,.v-input--density-comfortable .v-field--single-line,.v-input--density-comfortable .v-field--no-label{--v-field-padding-bottom: 11px}.v-input--density-compact .v-field--variant-outlined,.v-input--density-compact .v-field--single-line,.v-input--density-compact .v-field--no-label{--v-field-padding-bottom: 7px}.v-field--variant-plain,.v-field--variant-underlined{border-radius:0;padding:0}.v-field--variant-plain.v-field,.v-field--variant-underlined.v-field{--v-field-padding-start: 0px;--v-field-padding-end: 0px;--v-field-padding-top: var(--v-field-padding-top--plain-underlined, 6px)}.v-input--density-default .v-field--variant-plain,.v-input--density-default .v-field--variant-underlined{--v-input-control-height: 48px;--v-field-padding-bottom: 5px}.v-input--density-comfortable .v-field--variant-plain,.v-input--density-comfortable .v-field--variant-underlined{--v-input-control-height: 40px;--v-field-padding-bottom: 1px}.v-input--density-compact .v-field--variant-plain,.v-input--density-compact .v-field--variant-underlined{--v-input-control-height: 32px;--v-field-padding-bottom: 0px}.v-field--flat{box-shadow:none}.v-field--rounded{border-radius:9999px}.v-field.v-field--prepended{--v-field-padding-start: 6px}.v-field.v-field--appended{--v-field-padding-end: 6px}.v-field__input{color:inherit;display:flex;flex-wrap:wrap;letter-spacing:.009375em;opacity:var(--v-high-emphasis-opacity);min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom) + var(--v-input-chips-margin-bottom) + 2px);min-width:0;padding-inline-start:var(--v-field-padding-start);padding-inline-end:var(--v-field-padding-end);padding-top:var(--v-field-input-padding-top);padding-bottom:var(--v-field-input-padding-bottom);position:relative;width:100%}.v-field__input input{letter-spacing:inherit}.v-field__input input::placeholder,input.v-field__input::placeholder,textarea.v-field__input::placeholder{color:currentColor;opacity:var(--v-disabled-opacity)}.v-field__input:focus,.v-field__input:active{outline:none}.v-field__input:invalid{box-shadow:none}.v-field__field{flex:1 0;grid-area:field;position:relative;align-items:flex-start;display:flex}.v-field__prepend-inner{grid-area:prepend-inner;padding-inline-end:var(--v-field-padding-after)}.v-field__clearable{grid-area:clear}.v-field__append-inner{grid-area:append-inner;padding-inline-start:var(--v-field-padding-after)}.v-field__append-inner,.v-field__clearable,.v-field__prepend-inner{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top, 10px)}.v-field--center-affix .v-field__append-inner,.v-field--center-affix .v-field__clearable,.v-field--center-affix .v-field__prepend-inner{align-items:center;padding-top:0}.v-field.v-field--variant-underlined .v-field__append-inner,.v-field.v-field--variant-underlined .v-field__clearable,.v-field.v-field--variant-underlined .v-field__prepend-inner,.v-field.v-field--variant-plain .v-field__append-inner,.v-field.v-field--variant-plain .v-field__clearable,.v-field.v-field--variant-plain .v-field__prepend-inner{align-items:flex-start;padding-top:calc(var(--v-field-padding-top, 10px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 5px)}.v-field--focused .v-field__prepend-inner,.v-field--focused .v-field__append-inner{opacity:1}.v-field__prepend-inner>.v-icon,.v-field__append-inner>.v-icon,.v-field__clearable>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-field--disabled .v-field__prepend-inner>.v-icon,.v-field--error .v-field__prepend-inner>.v-icon,.v-field--disabled .v-field__append-inner>.v-icon,.v-field--error .v-field__append-inner>.v-icon,.v-field--disabled .v-field__clearable>.v-icon,.v-field--error .v-field__clearable>.v-icon{opacity:1}.v-field--error:not(.v-field--disabled) .v-field__prepend-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__append-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__clearable>.v-icon{color:rgb(var(--v-theme-error))}.v-field__clearable{cursor:pointer;opacity:0;overflow:hidden;margin-inline-start:4px;margin-inline-end:4px;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,width}.v-field--focused .v-field__clearable,.v-field--persistent-clear .v-field__clearable{opacity:1}@media (hover: hover){.v-field:hover .v-field__clearable{opacity:1}}.v-label.v-field-label{contain:layout paint;margin-inline-start:var(--v-field-padding-start);margin-inline-end:var(--v-field-padding-end);max-width:calc(100% - var(--v-field-padding-start) - var(--v-field-padding-end));pointer-events:none;position:absolute;top:var(--v-input-padding-top);transform-origin:left center;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform;z-index:1}.v-field--variant-underlined .v-label.v-field-label,.v-field--variant-plain .v-label.v-field-label{top:calc(var(--v-input-padding-top) + var(--v-field-padding-top))}.v-field--center-affix .v-label.v-field-label{top:50%;transform:translateY(-50%)}.v-field--active .v-label.v-field-label{visibility:hidden}.v-field--focused .v-label.v-field-label,.v-field--error .v-label.v-field-label{opacity:1}.v-field--error:not(.v-field--disabled) .v-label.v-field-label{color:rgb(var(--v-theme-error))}.v-label.v-field-label--floating{--v-field-label-scale: .75em;font-size:var(--v-field-label-scale);visibility:hidden;max-width:100%}.v-field--center-affix .v-label.v-field-label--floating{transform:none}.v-field.v-field--active .v-label.v-field-label--floating{visibility:unset}.v-input--density-default .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-filled .v-label.v-field-label--floating{top:7px}.v-input--density-comfortable .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-filled .v-label.v-field-label--floating{top:5px}.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:3px}.v-field--variant-plain .v-label.v-field-label--floating,.v-field--variant-underlined .v-label.v-field-label--floating{transform:translateY(-16px);margin:0;top:var(--v-input-padding-top)}.v-field--variant-outlined .v-label.v-field-label--floating{transform:translateY(-50%);transform-origin:center;position:static;margin:0 4px}.v-field__outline{--v-field-border-width: 1px;--v-field-border-opacity: .38;align-items:stretch;contain:layout;display:flex;height:100%;left:0;pointer-events:none;position:absolute;right:0;width:100%}@media (hover: hover){.v-field:hover .v-field__outline{--v-field-border-opacity: var(--v-high-emphasis-opacity)}}.v-field--error:not(.v-field--disabled) .v-field__outline{color:rgb(var(--v-theme-error))}.v-field.v-field--focused .v-field__outline,.v-input.v-input--error .v-field__outline{--v-field-border-opacity: 1}.v-field--variant-outlined.v-field--focused .v-field__outline{--v-field-border-width: 2px}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{border-color:currentColor;border-style:solid;border-width:0 0 var(--v-field-border-width);opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1);content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{border-color:currentColor;border-style:solid;border-width:0 0 2px;transform:scaleX(0);transition:transform .15s cubic-bezier(.4,0,.2,1);content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--focused.v-field--variant-filled .v-field__outline:after,.v-field--focused.v-field--variant-underlined .v-field__outline:after{transform:scaleX(1)}.v-field--variant-outlined .v-field__outline{border-radius:inherit}.v-field--variant-outlined .v-field__outline__start,.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after,.v-field--variant-outlined .v-field__outline__end{border:0 solid currentColor;opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__start{flex:0 0 12px;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-start-width:var(--v-field-border-width)}.v-field--rounded.v-field--variant-outlined .v-field__outline__start,[class^=rounded-].v-field--variant-outlined .v-field__outline__start,[class*=" rounded-"].v-field--variant-outlined .v-field__outline__start{flex-basis:calc(var(--v-input-control-height) / 2 + 2px)}.v-locale--is-ltr.v-field--variant-outlined .v-field__outline__start,.v-locale--is-ltr .v-field--variant-outlined .v-field__outline__start{border-top-left-radius:inherit;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:inherit}.v-locale--is-rtl.v-field--variant-outlined .v-field__outline__start,.v-locale--is-rtl .v-field--variant-outlined .v-field__outline__start{border-top-left-radius:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:0}.v-field--variant-outlined .v-field__outline__notch{flex:none;position:relative}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1);content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-outlined .v-field__outline__notch:before{border-width:var(--v-field-border-width) 0 0}.v-field--variant-outlined .v-field__outline__notch:after{bottom:0;border-width:0 0 var(--v-field-border-width)}.v-field--active.v-field--variant-outlined .v-field__outline__notch:before{opacity:0}.v-field--variant-outlined .v-field__outline__end{flex:1;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-end-width:var(--v-field-border-width)}.v-locale--is-ltr.v-field--variant-outlined .v-field__outline__end,.v-locale--is-ltr .v-field--variant-outlined .v-field__outline__end{border-top-left-radius:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:0}.v-locale--is-rtl.v-field--variant-outlined .v-field__outline__end,.v-locale--is-rtl .v-field--variant-outlined .v-field__outline__end{border-top-left-radius:inherit;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:inherit}.v-field__loader{top:calc(100% - 2px);left:0;position:absolute;right:0;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden}.v-field--variant-outlined .v-field__loader{top:calc(100% - 3px)}.v-field__overlay{border-radius:inherit;pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}@media (hover: hover){.v-field--variant-solo-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-inverted .v-field__overlay{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-solo-inverted.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-solo-inverted:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-inverted.v-field--focused .v-field__overlay{background-color:rgb(var(--v-theme-surface-variant));opacity:1}.v-field--reverse .v-field__field,.v-field--reverse .v-field__input{flex-direction:row-reverse}.v-locale--is-ltr.v-field--reverse .v-field__input,.v-locale--is-ltr.v-field--reverse input,.v-locale--is-ltr .v-field--reverse .v-field__input,.v-locale--is-ltr .v-field--reverse input{text-align:right}.v-locale--is-rtl.v-field--reverse .v-field__input,.v-locale--is-rtl.v-field--reverse input,.v-locale--is-rtl .v-field--reverse .v-field__input,.v-locale--is-rtl .v-field--reverse input{text-align:left}.v-input--disabled .v-field--variant-filled .v-field__outline:before,.v-input--disabled .v-field--variant-underlined .v-field__outline:before{border-image:repeating-linear-gradient(to right,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 0px,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 2px,transparent 2px,transparent 4px) 1 repeat}.v-field--loading .v-field__outline:after,.v-field--loading .v-field__outline:before{opacity:0}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block}.v-card{display:block;overflow:hidden;overflow-wrap:break-word;position:relative;padding:0;text-decoration:none;transition-duration:.28s;transition-property:box-shadow,opacity,background;transition-timing-function:cubic-bezier(.4,0,.2,1);z-index:0;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;border-radius:4px}.v-card--border{border-width:thin;box-shadow:none}.v-card--absolute{position:absolute}.v-card--fixed{position:fixed}.v-card:hover>.v-card__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-card:focus-visible>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card:focus>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-card--active>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]>.v-card__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-card--active:hover>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:hover>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-card--active:focus-visible>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card--active:focus>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-card--variant-plain,.v-card--variant-outlined,.v-card--variant-text,.v-card--variant-tonal{background:transparent;color:inherit}.v-card--variant-plain{opacity:.62}.v-card--variant-plain:focus,.v-card--variant-plain:hover{opacity:1}.v-card--variant-plain .v-card__overlay{display:none}.v-card--variant-elevated,.v-card--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-card--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--variant-outlined{border:thin solid currentColor}.v-card--variant-text .v-card__overlay{background:currentColor}.v-card--variant-tonal .v-card__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-card--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__loader){opacity:.6}.v-card--flat{box-shadow:none}.v-card--hover{cursor:pointer;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--hover:before,.v-card--hover:after{border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transition:inherit}.v-card--hover:before{opacity:1;z-index:-1;box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--hover:after{z-index:1;opacity:0;box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--hover:hover:after{opacity:1}.v-card--hover:hover:before{opacity:0}.v-card--link{cursor:pointer}.v-card-actions{align-items:center;display:flex;flex:none;min-height:52px;padding:.5rem}.v-card-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;padding:.625rem 1rem}.v-card-item+.v-card-text{padding-top:0}.v-card-item__prepend{grid-area:prepend;padding-inline-end:1rem}.v-card-item__append{grid-area:append;padding-inline-start:1rem}.v-card-item__content{align-self:center;grid-area:content;overflow:hidden}.v-card-title{display:block;flex:none;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;min-width:0;overflow-wrap:normal;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;word-wrap:break-word}.v-card .v-card-title{line-height:2rem}.v-card--density-comfortable .v-card-title{line-height:1.75rem}.v-card--density-compact .v-card-title{line-height:1.55rem}.v-card-item .v-card-title{padding:0}.v-card-title+.v-card-text,.v-card-title+.v-card-actions{padding-top:0}.v-card-subtitle{display:block;flex:none;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;padding:0 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.v-card .v-card-subtitle{line-height:1.25rem}.v-card--density-comfortable .v-card-subtitle{line-height:1.125rem}.v-card--density-compact .v-card-subtitle{line-height:1rem}.v-card-item .v-card-subtitle{padding:0 0 .25rem}.v-card-text{flex:1 1 auto;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;padding:1rem;text-transform:none}.v-card .v-card-text{line-height:1.25rem}.v-card--density-comfortable .v-card-text{line-height:1.2rem}.v-card--density-compact .v-card-text{line-height:1.15rem}.v-card__image{display:flex;height:100%;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-card__content{border-radius:inherit;overflow:hidden;position:relative}.v-card__loader{bottom:auto;top:0;left:0;position:absolute;right:0;width:100%;z-index:1}.v-card__overlay{background-color:currentColor;border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-slider .v-slider__container input{cursor:default;padding:0;width:100%;display:none}.v-slider>.v-input__append,.v-slider>.v-input__prepend{padding:0}.v-slider__container{position:relative;min-height:inherit;width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}.v-input--disabled .v-slider__container{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-slider__container{color:rgb(var(--v-theme-error))}.v-slider.v-input--horizontal{align-items:center;margin-inline-start:8px;margin-inline-end:8px}.v-slider.v-input--horizontal>.v-input__control{min-height:32px;display:flex;align-items:center}.v-slider.v-input--vertical{justify-content:center;margin-top:12px;margin-bottom:12px}.v-slider.v-input--vertical>.v-input__control{min-height:300px}.v-slider.v-input--disabled{pointer-events:none}.v-slider--has-labels>.v-input__control{margin-bottom:4px}.v-slider__label{margin-inline-end:12px}.v-slider-thumb{touch-action:none;color:rgb(var(--v-theme-surface-variant))}.v-input--error:not(.v-input--disabled) .v-slider-thumb{color:inherit}.v-slider-thumb__label{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant))}.v-slider-thumb__label:before{color:rgba(var(--v-theme-surface-variant),.7)}.v-slider-thumb{outline:none;position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider-thumb__surface{cursor:pointer;width:var(--v-slider-thumb-size);height:var(--v-slider-thumb-size);border-radius:50%;-webkit-user-select:none;user-select:none;background-color:currentColor}.v-slider-thumb__surface:before{transition:.3s cubic-bezier(.4,0,.2,1);content:"";color:inherit;top:0;left:0;width:100%;height:100%;border-radius:50%;background:currentColor;position:absolute;pointer-events:none;opacity:0}.v-slider-thumb__surface:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.v-slider-thumb__label-container{position:absolute;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label{display:flex;align-items:center;justify-content:center;font-size:.75rem;min-width:35px;height:25px;border-radius:4px;padding:6px;position:absolute;-webkit-user-select:none;user-select:none;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label:before{content:"";width:0;height:0;position:absolute}.v-slider-thumb__ripple{position:absolute;left:calc(var(--v-slider-thumb-size) / -2);top:calc(var(--v-slider-thumb-size) / -2);width:calc(var(--v-slider-thumb-size) * 2);height:calc(var(--v-slider-thumb-size) * 2);background:inherit}.v-slider.v-input--horizontal .v-slider-thumb{top:50%;transform:translateY(-50%)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb{left:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2);right:unset}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb{left:unset;right:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--horizontal .v-slider-thumb__label-container{left:calc(var(--v-slider-thumb-size) / 2);top:0}.v-slider.v-input--horizontal .v-slider-thumb__label{bottom:calc(var(--v-slider-thumb-size) / 2)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-thumb__label:before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid currentColor;bottom:-6px}.v-slider.v-input--vertical .v-slider-thumb{top:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label-container{top:calc(var(--v-slider-thumb-size) / 2);right:0}.v-slider.v-input--vertical .v-slider-thumb__label{top:-12.5px;left:calc(var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label:before{border-right:6px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-6px}.v-slider-thumb--focused .v-slider-thumb__surface:before{transform:scale(2);opacity:var(--v-focus-opacity)}.v-slider-thumb--pressed{transition:none}.v-slider-thumb--pressed .v-slider-thumb__surface:before{opacity:var(--v-pressed-opacity)}@media (hover: hover){.v-slider-thumb:hover .v-slider-thumb__surface:before{transform:scale(2)}.v-slider-thumb:hover:not(.v-slider-thumb--focused) .v-slider-thumb__surface:before{opacity:var(--v-hover-opacity)}}.v-slider-track__background,.v-slider-track__fill,.v-slider-track__tick{background-color:rgb(var(--v-theme-surface-variant))}.v-slider-track__tick--filled{background-color:rgb(var(--v-theme-on-surface-variant))}.v-slider-track{border-radius:6px}.v-slider-track__background,.v-slider-track__fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:inherit}.v-slider--pressed .v-slider-track__background,.v-slider--pressed .v-slider-track__fill{transition:none}.v-input--error:not(.v-input--disabled) .v-slider-track__background,.v-input--error:not(.v-input--disabled) .v-slider-track__fill{background-color:currentColor}.v-slider-track__ticks{height:100%;width:100%;position:relative}.v-slider-track__tick{position:absolute;opacity:0;transition:.2s opacity cubic-bezier(.4,0,.2,1);border-radius:2px;width:var(--v-slider-tick-size);height:var(--v-slider-tick-size);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / -2))}.v-locale--is-ltr.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--first .v-slider-track__tick-label{transform:none}.v-locale--is-rtl.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(100%)}.v-locale--is-ltr.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--last .v-slider-track__tick-label{transform:none}.v-slider-track__tick-label{position:absolute;-webkit-user-select:none;user-select:none;white-space:nowrap}.v-slider.v-input--horizontal .v-slider-track{display:flex;align-items:center;width:100%;height:calc(var(--v-slider-track-size) + 2px);touch-action:pan-y}.v-slider.v-input--horizontal .v-slider-track__background{height:var(--v-slider-track-size)}.v-slider.v-input--horizontal .v-slider-track__fill{height:inherit}.v-slider.v-input--horizontal .v-slider-track__tick{margin-top:calc(calc(var(--v-slider-track-size) + 2px) / 2)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / -2))}.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{margin-top:calc(var(--v-slider-track-size) / 2 + 8px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-track__tick--first{margin-inline-start:calc(var(--v-slider-tick-size) + 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(0)}.v-slider.v-input--horizontal .v-slider-track__tick--last{margin-inline-start:calc(100% - var(--v-slider-tick-size) - 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(100%)}.v-slider.v-input--vertical .v-slider-track{height:100%;display:flex;justify-content:center;width:calc(var(--v-slider-track-size) + 2px);touch-action:pan-x}.v-slider.v-input--vertical .v-slider-track__background{width:var(--v-slider-track-size)}.v-slider.v-input--vertical .v-slider-track__fill{width:inherit}.v-slider.v-input--vertical .v-slider-track__ticks{height:100%}.v-slider.v-input--vertical .v-slider-track__tick{margin-inline-start:calc(calc(var(--v-slider-track-size) + 2px) / 2);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / 2))}.v-locale--is-rtl.v-slider.v-input--vertical .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--vertical .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / 2))}.v-slider.v-input--vertical .v-slider-track__tick--first{bottom:calc(0% + var(--v-slider-tick-size) + 1px)}.v-slider.v-input--vertical .v-slider-track__tick--last{bottom:calc(100% - var(--v-slider-tick-size) - 1px)}.v-slider.v-input--vertical .v-slider-track__tick .v-slider-track__tick-label{margin-inline-start:calc(var(--v-slider-track-size) / 2 + 12px);transform:translateY(-50%)}.v-slider-track__ticks--always-show .v-slider-track__tick,.v-slider--focused .v-slider-track__tick{opacity:1}.v-slider-track__background--opacity{opacity:.38}.v-combobox .v-field .v-text-field__prefix,.v-combobox .v-field .v-text-field__suffix,.v-combobox .v-field .v-field__input,.v-combobox .v-field.v-field{cursor:text}.v-combobox .v-field .v-field__input>input{align-self:flex-start;flex:1 1}.v-combobox .v-field input{min-width:64px}.v-combobox .v-field:not(.v-field--focused) input{min-width:0}.v-combobox .v-field--dirty .v-combobox__selection{margin-inline-end:2px}.v-combobox .v-combobox__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-combobox__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-combobox__mask{background:rgb(var(--v-theme-on-surface-variant))}.v-combobox__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:90%}.v-combobox__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-combobox__selection:first-child{margin-inline-start:0}.v-combobox--selecting-index .v-combobox__selection{opacity:var(--v-medium-emphasis-opacity)}.v-combobox--selecting-index .v-combobox__selection--selected{opacity:1}.v-combobox--selecting-index .v-field__input>input{caret-color:transparent}.v-combobox--single.v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline-start:inherit;padding-inline-end:inherit}.v-combobox--single .v-field--variant-outlined input{top:50%;transform:translateY(calc(-50% - (var(--v-input-chips-margin-top) + var(--v-input-chips-margin-bottom)) / 2))}.v-combobox--single .v-field--active input{transition:none}.v-combobox--single .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-combobox--single .v-field--focused .v-combobox__selection{opacity:0}.v-combobox__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-combobox--active-menu .v-combobox__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-dialog{align-items:center;justify-content:center;margin:auto}.v-dialog>.v-overlay__content{max-height:calc(100% - 48px);width:calc(100% - 48px);max-width:calc(100% - 48px);margin:24px;display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{--v-scrollbar-offset: 0px;border-radius:4px;overflow-y:auto;box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>form>.v-card{display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card>.v-card-item,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item{padding:14px 24px 0}.v-dialog>.v-overlay__content>.v-card>.v-card-item+.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item+.v-card-text{padding-top:10px}.v-dialog>.v-overlay__content>.v-card>.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-text{font-size:inherit;letter-spacing:.03125em;line-height:inherit;padding:16px 24px 10px}.v-dialog--fullscreen{--v-scrollbar-offset: 0px}.v-dialog--fullscreen>.v-overlay__content{border-radius:0;margin:0;padding:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-overlay__content>.v-card,.v-dialog--fullscreen>.v-overlay__content>.v-sheet,.v-dialog--fullscreen>.v-overlay__content>form>.v-card,.v-dialog--fullscreen>.v-overlay__content>form>.v-sheet{min-height:100%;min-width:100%;border-radius:0}.v-dialog--scrollable>.v-overlay__content,.v-dialog--scrollable>.v-overlay__content>form{display:flex;overflow:hidden}.v-dialog--scrollable>.v-overlay__content>.v-card,.v-dialog--scrollable>.v-overlay__content>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-overlay__content>.v-card>.v-card-text,.v-dialog--scrollable>.v-overlay__content>form>.v-card>.v-card-text{backface-visibility:hidden;overflow-y:auto}.v-expansion-panel{background-color:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-expansion-panel:not(:first-child):after{border-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-expansion-panel--disabled .v-expansion-panel-title{color:rgba(var(--v-theme-on-surface),.26)}.v-expansion-panel--disabled .v-expansion-panel-title .v-expansion-panel-title__overlay{opacity:.4615384615}.v-expansion-panels{display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;position:relative;z-index:1}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:first-child:not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:last-child:not(:first-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:first-child{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child{border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child .v-expansion-panel-title--active{border-bottom-left-radius:initial;border-bottom-right-radius:initial}.v-expansion-panels--variant-accordion>:not(:first-child):not(:last-child){border-radius:0!important}.v-expansion-panels--variant-accordion .v-expansion-panel-title__overlay{transition:.3s border-radius cubic-bezier(.4,0,.2,1)}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s all cubic-bezier(.4,0,.2,1);transition-property:margin-top,border-radius,border,max-width;border-radius:4px}.v-expansion-panel:not(:first-child):after{border-top-style:solid;border-top-width:thin;content:"";left:0;position:absolute;right:0;top:0;transition:.3s opacity cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-title{pointer-events:none}.v-expansion-panel--active:not(:first-child),.v-expansion-panel--active+.v-expansion-panel{margin-top:16px}.v-expansion-panel--active:not(:first-child):after,.v-expansion-panel--active+.v-expansion-panel:after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-title{border-bottom-left-radius:0;border-bottom-right-radius:0;min-height:64px}.v-expansion-panel__shadow{position:absolute;top:0;left:0;width:100%;height:100%;box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:inherit;z-index:-1}.v-expansion-panel-title{align-items:center;text-align:start;border-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:48px;outline:none;padding:16px 24px;position:relative;transition:.3s min-height cubic-bezier(.4,0,.2,1);width:100%;justify-content:space-between}.v-expansion-panel-title:hover>.v-expansion-panel-title__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title:focus-visible>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title:focus>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--active>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]>.v-expansion-panel-title__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--active:hover>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]:hover>.v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--active:focus-visible>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title--active:focus>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]:focus>.v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--active:before{opacity:.12}.v-expansion-panel-title__overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:currentColor;border-radius:inherit;opacity:0}.v-expansion-panel-title__icon{display:inline-flex;margin-bottom:-4px;margin-top:-4px;-webkit-user-select:none;user-select:none;margin-inline-start:auto}.v-expansion-panel-text{display:flex}.v-expansion-panel-text__wrapper{padding:8px 24px 16px;flex:1 1 auto;max-width:100%}.v-expansion-panels--variant-accordion>.v-expansion-panel{margin-top:0}.v-expansion-panels--variant-accordion>.v-expansion-panel:after{opacity:1}.v-expansion-panels--variant-popout>.v-expansion-panel{max-width:calc(100% - 32px)}.v-expansion-panels--variant-popout>.v-expansion-panel--active{max-width:calc(100% + 16px)}.v-expansion-panels--variant-inset>.v-expansion-panel{max-width:100%}.v-expansion-panels--variant-inset>.v-expansion-panel--active{max-width:calc(100% - 32px)}.v-container{width:100%;padding:16px;margin-right:auto;margin-left:auto}@media (min-width: 960px){.v-container{max-width:900px}}@media (min-width: 1280px){.v-container{max-width:1200px}}@media (min-width: 1920px){.v-container{max-width:1800px}}@media (min-width: 2560px){.v-container{max-width:2400px}}.v-container--fluid{max-width:100%}.v-container.fill-height{align-items:center;display:flex;flex-wrap:wrap}.v-row{display:flex;flex-wrap:wrap;flex:1 1 auto;margin:-12px}.v-row+.v-row{margin-top:12px}.v-row+.v-row--dense{margin-top:4px}.v-row--dense{margin:-4px}.v-row--dense>.v-col,.v-row--dense>[class*=v-col-]{padding:4px}.v-row.v-row--no-gutters{margin:0}.v-row.v-row--no-gutters>.v-col,.v-row.v-row--no-gutters>[class*=v-col-]{padding:0}.v-spacer{flex-grow:1}.v-col-xxl,.v-col-xxl-auto,.v-col-xxl-12,.v-col-xxl-11,.v-col-xxl-10,.v-col-xxl-9,.v-col-xxl-8,.v-col-xxl-7,.v-col-xxl-6,.v-col-xxl-5,.v-col-xxl-4,.v-col-xxl-3,.v-col-xxl-2,.v-col-xxl-1,.v-col-xl,.v-col-xl-auto,.v-col-xl-12,.v-col-xl-11,.v-col-xl-10,.v-col-xl-9,.v-col-xl-8,.v-col-xl-7,.v-col-xl-6,.v-col-xl-5,.v-col-xl-4,.v-col-xl-3,.v-col-xl-2,.v-col-xl-1,.v-col-lg,.v-col-lg-auto,.v-col-lg-12,.v-col-lg-11,.v-col-lg-10,.v-col-lg-9,.v-col-lg-8,.v-col-lg-7,.v-col-lg-6,.v-col-lg-5,.v-col-lg-4,.v-col-lg-3,.v-col-lg-2,.v-col-lg-1,.v-col-md,.v-col-md-auto,.v-col-md-12,.v-col-md-11,.v-col-md-10,.v-col-md-9,.v-col-md-8,.v-col-md-7,.v-col-md-6,.v-col-md-5,.v-col-md-4,.v-col-md-3,.v-col-md-2,.v-col-md-1,.v-col-sm,.v-col-sm-auto,.v-col-sm-12,.v-col-sm-11,.v-col-sm-10,.v-col-sm-9,.v-col-sm-8,.v-col-sm-7,.v-col-sm-6,.v-col-sm-5,.v-col-sm-4,.v-col-sm-3,.v-col-sm-2,.v-col-sm-1,.v-col,.v-col-auto,.v-col-12,.v-col-11,.v-col-10,.v-col-9,.v-col-8,.v-col-7,.v-col-6,.v-col-5,.v-col-4,.v-col-3,.v-col-2,.v-col-1{width:100%;padding:12px}.v-col{flex-basis:0;flex-grow:1;max-width:100%}.v-col-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-3{flex:0 0 25%;max-width:25%}.v-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-6{flex:0 0 50%;max-width:50%}.v-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-9{flex:0 0 75%;max-width:75%}.v-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-1,.v-locale--is-ltr .offset-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-1,.v-locale--is-rtl .offset-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-2,.v-locale--is-ltr .offset-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-2,.v-locale--is-rtl .offset-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-3,.v-locale--is-ltr .offset-3{margin-left:25%}.v-locale--is-rtl.offset-3,.v-locale--is-rtl .offset-3{margin-right:25%}.v-locale--is-ltr.offset-4,.v-locale--is-ltr .offset-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-4,.v-locale--is-rtl .offset-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-5,.v-locale--is-ltr .offset-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-5,.v-locale--is-rtl .offset-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-6,.v-locale--is-ltr .offset-6{margin-left:50%}.v-locale--is-rtl.offset-6,.v-locale--is-rtl .offset-6{margin-right:50%}.v-locale--is-ltr.offset-7,.v-locale--is-ltr .offset-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-7,.v-locale--is-rtl .offset-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-8,.v-locale--is-ltr .offset-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-8,.v-locale--is-rtl .offset-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-9,.v-locale--is-ltr .offset-9{margin-left:75%}.v-locale--is-rtl.offset-9,.v-locale--is-rtl .offset-9{margin-right:75%}.v-locale--is-ltr.offset-10,.v-locale--is-ltr .offset-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-10,.v-locale--is-rtl .offset-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-11,.v-locale--is-ltr .offset-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-11,.v-locale--is-rtl .offset-11{margin-right:91.6666666667%}@media (min-width: 600px){.v-col-sm{flex-basis:0;flex-grow:1;max-width:100%}.v-col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-sm-3{flex:0 0 25%;max-width:25%}.v-col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-sm-6{flex:0 0 50%;max-width:50%}.v-col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-sm-9{flex:0 0 75%;max-width:75%}.v-col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-sm-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-sm-0,.v-locale--is-ltr .offset-sm-0{margin-left:0}.v-locale--is-rtl.offset-sm-0,.v-locale--is-rtl .offset-sm-0{margin-right:0}.v-locale--is-ltr.offset-sm-1,.v-locale--is-ltr .offset-sm-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-sm-1,.v-locale--is-rtl .offset-sm-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-sm-2,.v-locale--is-ltr .offset-sm-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-sm-2,.v-locale--is-rtl .offset-sm-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-sm-3,.v-locale--is-ltr .offset-sm-3{margin-left:25%}.v-locale--is-rtl.offset-sm-3,.v-locale--is-rtl .offset-sm-3{margin-right:25%}.v-locale--is-ltr.offset-sm-4,.v-locale--is-ltr .offset-sm-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-sm-4,.v-locale--is-rtl .offset-sm-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-sm-5,.v-locale--is-ltr .offset-sm-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-sm-5,.v-locale--is-rtl .offset-sm-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-sm-6,.v-locale--is-ltr .offset-sm-6{margin-left:50%}.v-locale--is-rtl.offset-sm-6,.v-locale--is-rtl .offset-sm-6{margin-right:50%}.v-locale--is-ltr.offset-sm-7,.v-locale--is-ltr .offset-sm-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-sm-7,.v-locale--is-rtl .offset-sm-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-sm-8,.v-locale--is-ltr .offset-sm-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-sm-8,.v-locale--is-rtl .offset-sm-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-sm-9,.v-locale--is-ltr .offset-sm-9{margin-left:75%}.v-locale--is-rtl.offset-sm-9,.v-locale--is-rtl .offset-sm-9{margin-right:75%}.v-locale--is-ltr.offset-sm-10,.v-locale--is-ltr .offset-sm-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-sm-10,.v-locale--is-rtl .offset-sm-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-sm-11,.v-locale--is-ltr .offset-sm-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-sm-11,.v-locale--is-rtl .offset-sm-11{margin-right:91.6666666667%}}@media (min-width: 960px){.v-col-md{flex-basis:0;flex-grow:1;max-width:100%}.v-col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-md-3{flex:0 0 25%;max-width:25%}.v-col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-md-6{flex:0 0 50%;max-width:50%}.v-col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-md-9{flex:0 0 75%;max-width:75%}.v-col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-md-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-md-0,.v-locale--is-ltr .offset-md-0{margin-left:0}.v-locale--is-rtl.offset-md-0,.v-locale--is-rtl .offset-md-0{margin-right:0}.v-locale--is-ltr.offset-md-1,.v-locale--is-ltr .offset-md-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-md-1,.v-locale--is-rtl .offset-md-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-md-2,.v-locale--is-ltr .offset-md-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-md-2,.v-locale--is-rtl .offset-md-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-md-3,.v-locale--is-ltr .offset-md-3{margin-left:25%}.v-locale--is-rtl.offset-md-3,.v-locale--is-rtl .offset-md-3{margin-right:25%}.v-locale--is-ltr.offset-md-4,.v-locale--is-ltr .offset-md-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-md-4,.v-locale--is-rtl .offset-md-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-md-5,.v-locale--is-ltr .offset-md-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-md-5,.v-locale--is-rtl .offset-md-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-md-6,.v-locale--is-ltr .offset-md-6{margin-left:50%}.v-locale--is-rtl.offset-md-6,.v-locale--is-rtl .offset-md-6{margin-right:50%}.v-locale--is-ltr.offset-md-7,.v-locale--is-ltr .offset-md-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-md-7,.v-locale--is-rtl .offset-md-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-md-8,.v-locale--is-ltr .offset-md-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-md-8,.v-locale--is-rtl .offset-md-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-md-9,.v-locale--is-ltr .offset-md-9{margin-left:75%}.v-locale--is-rtl.offset-md-9,.v-locale--is-rtl .offset-md-9{margin-right:75%}.v-locale--is-ltr.offset-md-10,.v-locale--is-ltr .offset-md-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-md-10,.v-locale--is-rtl .offset-md-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-md-11,.v-locale--is-ltr .offset-md-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-md-11,.v-locale--is-rtl .offset-md-11{margin-right:91.6666666667%}}@media (min-width: 1280px){.v-col-lg{flex-basis:0;flex-grow:1;max-width:100%}.v-col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-lg-3{flex:0 0 25%;max-width:25%}.v-col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-lg-6{flex:0 0 50%;max-width:50%}.v-col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-lg-9{flex:0 0 75%;max-width:75%}.v-col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-lg-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-lg-0,.v-locale--is-ltr .offset-lg-0{margin-left:0}.v-locale--is-rtl.offset-lg-0,.v-locale--is-rtl .offset-lg-0{margin-right:0}.v-locale--is-ltr.offset-lg-1,.v-locale--is-ltr .offset-lg-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-lg-1,.v-locale--is-rtl .offset-lg-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-lg-2,.v-locale--is-ltr .offset-lg-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-lg-2,.v-locale--is-rtl .offset-lg-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-lg-3,.v-locale--is-ltr .offset-lg-3{margin-left:25%}.v-locale--is-rtl.offset-lg-3,.v-locale--is-rtl .offset-lg-3{margin-right:25%}.v-locale--is-ltr.offset-lg-4,.v-locale--is-ltr .offset-lg-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-lg-4,.v-locale--is-rtl .offset-lg-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-lg-5,.v-locale--is-ltr .offset-lg-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-lg-5,.v-locale--is-rtl .offset-lg-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-lg-6,.v-locale--is-ltr .offset-lg-6{margin-left:50%}.v-locale--is-rtl.offset-lg-6,.v-locale--is-rtl .offset-lg-6{margin-right:50%}.v-locale--is-ltr.offset-lg-7,.v-locale--is-ltr .offset-lg-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-lg-7,.v-locale--is-rtl .offset-lg-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-lg-8,.v-locale--is-ltr .offset-lg-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-lg-8,.v-locale--is-rtl .offset-lg-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-lg-9,.v-locale--is-ltr .offset-lg-9{margin-left:75%}.v-locale--is-rtl.offset-lg-9,.v-locale--is-rtl .offset-lg-9{margin-right:75%}.v-locale--is-ltr.offset-lg-10,.v-locale--is-ltr .offset-lg-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-lg-10,.v-locale--is-rtl .offset-lg-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-lg-11,.v-locale--is-ltr .offset-lg-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-lg-11,.v-locale--is-rtl .offset-lg-11{margin-right:91.6666666667%}}@media (min-width: 1920px){.v-col-xl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xl-3{flex:0 0 25%;max-width:25%}.v-col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xl-6{flex:0 0 50%;max-width:50%}.v-col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xl-9{flex:0 0 75%;max-width:75%}.v-col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xl-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-xl-0,.v-locale--is-ltr .offset-xl-0{margin-left:0}.v-locale--is-rtl.offset-xl-0,.v-locale--is-rtl .offset-xl-0{margin-right:0}.v-locale--is-ltr.offset-xl-1,.v-locale--is-ltr .offset-xl-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-xl-1,.v-locale--is-rtl .offset-xl-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-xl-2,.v-locale--is-ltr .offset-xl-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-xl-2,.v-locale--is-rtl .offset-xl-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-xl-3,.v-locale--is-ltr .offset-xl-3{margin-left:25%}.v-locale--is-rtl.offset-xl-3,.v-locale--is-rtl .offset-xl-3{margin-right:25%}.v-locale--is-ltr.offset-xl-4,.v-locale--is-ltr .offset-xl-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-xl-4,.v-locale--is-rtl .offset-xl-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-xl-5,.v-locale--is-ltr .offset-xl-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-xl-5,.v-locale--is-rtl .offset-xl-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-xl-6,.v-locale--is-ltr .offset-xl-6{margin-left:50%}.v-locale--is-rtl.offset-xl-6,.v-locale--is-rtl .offset-xl-6{margin-right:50%}.v-locale--is-ltr.offset-xl-7,.v-locale--is-ltr .offset-xl-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-xl-7,.v-locale--is-rtl .offset-xl-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-xl-8,.v-locale--is-ltr .offset-xl-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-xl-8,.v-locale--is-rtl .offset-xl-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-xl-9,.v-locale--is-ltr .offset-xl-9{margin-left:75%}.v-locale--is-rtl.offset-xl-9,.v-locale--is-rtl .offset-xl-9{margin-right:75%}.v-locale--is-ltr.offset-xl-10,.v-locale--is-ltr .offset-xl-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-xl-10,.v-locale--is-rtl .offset-xl-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-xl-11,.v-locale--is-ltr .offset-xl-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-xl-11,.v-locale--is-rtl .offset-xl-11{margin-right:91.6666666667%}}@media (min-width: 2560px){.v-col-xxl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xxl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xxl-3{flex:0 0 25%;max-width:25%}.v-col-xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xxl-6{flex:0 0 50%;max-width:50%}.v-col-xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xxl-9{flex:0 0 75%;max-width:75%}.v-col-xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xxl-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-xxl-0,.v-locale--is-ltr .offset-xxl-0{margin-left:0}.v-locale--is-rtl.offset-xxl-0,.v-locale--is-rtl .offset-xxl-0{margin-right:0}.v-locale--is-ltr.offset-xxl-1,.v-locale--is-ltr .offset-xxl-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-xxl-1,.v-locale--is-rtl .offset-xxl-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-xxl-2,.v-locale--is-ltr .offset-xxl-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-xxl-2,.v-locale--is-rtl .offset-xxl-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-xxl-3,.v-locale--is-ltr .offset-xxl-3{margin-left:25%}.v-locale--is-rtl.offset-xxl-3,.v-locale--is-rtl .offset-xxl-3{margin-right:25%}.v-locale--is-ltr.offset-xxl-4,.v-locale--is-ltr .offset-xxl-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-xxl-4,.v-locale--is-rtl .offset-xxl-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-xxl-5,.v-locale--is-ltr .offset-xxl-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-xxl-5,.v-locale--is-rtl .offset-xxl-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-xxl-6,.v-locale--is-ltr .offset-xxl-6{margin-left:50%}.v-locale--is-rtl.offset-xxl-6,.v-locale--is-rtl .offset-xxl-6{margin-right:50%}.v-locale--is-ltr.offset-xxl-7,.v-locale--is-ltr .offset-xxl-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-xxl-7,.v-locale--is-rtl .offset-xxl-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-xxl-8,.v-locale--is-ltr .offset-xxl-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-xxl-8,.v-locale--is-rtl .offset-xxl-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-xxl-9,.v-locale--is-ltr .offset-xxl-9{margin-left:75%}.v-locale--is-rtl.offset-xxl-9,.v-locale--is-rtl .offset-xxl-9{margin-right:75%}.v-locale--is-ltr.offset-xxl-10,.v-locale--is-ltr .offset-xxl-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-xxl-10,.v-locale--is-rtl .offset-xxl-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-xxl-11,.v-locale--is-ltr .offset-xxl-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-xxl-11,.v-locale--is-rtl .offset-xxl-11{margin-right:91.6666666667%}}.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex;position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity));transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity));color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover td{background:rgba(var(--v-border-color),var(--v-hover-opacity))}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px 0 rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px 0 rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{--v-table-header-height: 56px;border-radius:inherit;line-height:1.5;max-width:100%}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default>.v-table__wrapper>table>tbody>tr>th,.v-table--density-default>.v-table__wrapper>table>thead>tr>th,.v-table--density-default>.v-table__wrapper>table>tfoot>tr>th{height:calc(var(--v-table-header-height) + 0px)}.v-table--density-default>.v-table__wrapper>table>tbody>tr>td,.v-table--density-default>.v-table__wrapper>table>thead>tr>td,.v-table--density-default>.v-table__wrapper>table>tfoot>tr>td{height:calc(var(--v-table-row-height, 52px) + 0px)}.v-table--density-comfortable>.v-table__wrapper>table>tbody>tr>th,.v-table--density-comfortable>.v-table__wrapper>table>thead>tr>th,.v-table--density-comfortable>.v-table__wrapper>table>tfoot>tr>th{height:calc(var(--v-table-header-height) - 8px)}.v-table--density-comfortable>.v-table__wrapper>table>tbody>tr>td,.v-table--density-comfortable>.v-table__wrapper>table>thead>tr>td,.v-table--density-comfortable>.v-table__wrapper>table>tfoot>tr>td{height:calc(var(--v-table-row-height, 52px) - 8px)}.v-table--density-compact>.v-table__wrapper>table>tbody>tr>th,.v-table--density-compact>.v-table__wrapper>table>thead>tr>th,.v-table--density-compact>.v-table__wrapper>table>tfoot>tr>th{height:calc(var(--v-table-header-height) - 16px)}.v-table--density-compact>.v-table__wrapper>table>tbody>tr>td,.v-table--density-compact>.v-table__wrapper>table>thead>tr>td,.v-table--density-compact>.v-table__wrapper>table>tfoot>tr>td{height:calc(var(--v-table-row-height, 52px) - 16px)}.v-table__wrapper{border-radius:inherit;overflow:auto}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:1}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important}.v-textarea .v-field{--v-textarea-control-height: var(--v-input-control-height)}.v-textarea .v-field__field{--v-input-control-height: var(--v-textarea-control-height)}.v-textarea .v-field__input{flex:1 1 auto;outline:none;-webkit-mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px));mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px))}.v-textarea .v-field__input.v-textarea__sizer{visibility:hidden;position:absolute;top:0;left:0;height:0!important;min-height:0!important;pointer-events:none}.v-textarea--no-resize .v-field__input{resize:none}.v-textarea .v-field--no-label textarea,.v-textarea .v-field--active textarea{opacity:1}.v-textarea textarea{opacity:0;flex:1;min-width:0;transition:.15s opacity cubic-bezier(.4,0,.2,1)}.v-textarea textarea:focus,.v-textarea textarea:active{outline:none}.v-textarea textarea:invalid{box-shadow:none}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td,.v-data-table .v-table__wrapper>table>thead>tr th,.v-data-table .v-table__wrapper>table tbody>tr>td,.v-data-table .v-table__wrapper>table tbody>tr th{background:rgb(var(--v-theme-surface))}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table-column--fixed{position:sticky;z-index:2;left:0}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table-group-header-row td{background:lightgrey}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:.3}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table-footer{display:flex;align-items:center;flex-wrap:wrap;padding:0 8px;justify-content:flex-end}.v-data-table-footer__items-per-page{padding-inline-end:24px;display:flex;align-items:center;justify-content:space-between}.v-data-table-footer__items-per-page>span{padding-inline-end:24px}.v-data-table-footer__info{display:flex;padding-inline-end:24px}.v-data-table-footer__pagination{display:flex;align-items:center}.v-data-table-footer__page{padding:0 8px}.toolbar-bg{background-color:#4f4d4d}.markdown-content{font-family:Arial,sans-serif;line-height:1.6;color:#fff}.markdown-content h1,h2,h3,h4,h5,h6{margin-top:1.5em;margin-bottom:.5em;font-weight:700;line-height:1.3}.markdown-content p{margin-top:0;margin-bottom:1em}.markdown-content ul,ol{padding-left:20px;margin-top:.5em;margin-bottom:.5em}.markdown-content ul{list-style-type:disc}.markdown-content ol{list-style-type:decimal}.markdown-content li{margin-bottom:.25em}.markdown-content a{color:#007bff;text-decoration:none}.markdown-content a:hover{text-decoration:underline}.markdown-content img{max-width:100%;height:auto}.markdown-content blockquote{margin:0;padding-left:1em;color:#6a737d;border-left:.25em solid #dfe2e5}.tox{box-shadow:none;box-sizing:content-box;color:#2a3746;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){background:transparent;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #000000;border-radius:0;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:1px solid #000000;border-radius:0;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:1300}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:3px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#1e71aa66;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#207ab7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus{background-color:#1c6ca1}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#185d8c}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa50080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus{background-color:#f2d574;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc000080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus{background-color:#e9a4a4;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab4680;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#000;border-radius:0;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar,.tox .tox-bottom-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#207ab7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#207ab7;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;position:relative;text-align:center;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button:before{border-radius:3px;bottom:-1px;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #207ab7,0 0 0 3px #207ab740;content:"";left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#207ab7;background-image:none;border-color:#207ab7;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:focus-visible:not(:disabled):before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#114060;background-image:none;border-color:#114060;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:none;padding:4px 16px;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#264560;background-image:none;border-color:#264560;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:#3d546f;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--naked:hover:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:#2b3b4e;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:3px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#fff3}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#207ab7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#207ab7}.tox .tox-checkbox--disabled{color:#ffffff80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#ffffff80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:inset 0 0 0 1px #207ab7;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#1a1a1a;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#333;color:#fff;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--toolbar .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#4a5562;color:#fff}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:#ffffff80;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:#fff}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#ffffff80;cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:#ffffff80}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid #1a1a1a;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:3px 0 2px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #000000}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #000000}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#4a5562}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:3px;width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#ffffff80;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#2b3b4e;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#ffffff80}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar svg,.tox:not([dir=rtl]) .tox-user__avatar img{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg,.tox[dir=rtl] .tox-user__avatar img{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:#222f3ebf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #2a374626,0 0 40px 1px #2a374626;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 16px);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px}@media only screen and (min-width: 768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#ffffff80;display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:#207ab71a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #207ab7;color:#207ab7}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#207ab7;cursor:pointer;text-decoration:underline}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#114060;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #207ab7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#092335;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dd{padding-inline-start:2.5rem}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl{margin-bottom:16px}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dt{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:1px solid #000000;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#222f3ebf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered:before{border:1px solid #000000;border-radius:3px;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered-focus.tox-navobj-bordered:before{border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #000000;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#ffffff80;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area:before{border:2px solid #2D6ADF;border-radius:4px;content:"";top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area:before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #000000}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:none;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #000000;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:0 4px 4px -3px #00000040;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:none;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#2a374633;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#207ab7;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:3px;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#ffffff80;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#222f3e;color:#ffffffd9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#207ab7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#000;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:0 -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#207ab780;border-color:#207ab780}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}@media only screen and (min-width: 768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1 / -1;grid-row:1;padding:0 4px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:transparent;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;overflow:hidden;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn--active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification a{cursor:pointer;text-decoration:underline}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:#000;color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition:before,.tox .tox-pop--transition:after{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #000000;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;opacity:1;position:absolute;width:0}.tox .tox-pop.tox-pop--inset:before,.tox .tox-pop.tox-pop--inset:after{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#000000 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #000000 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #000000 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #000000;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #000000;border-radius:3px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#207ab7;border:2px solid #185d8c;border-radius:3px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#ffffff80;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid #000000;color:#fff;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}@media only screen and (min-width: 768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width: 767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#fff;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar__branding svg{fill:#fffc;height:1.14em;vertical-align:-.28em;width:3.6em}.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin-left:auto;margin-right:-8px;padding-bottom:3px;padding-left:1ch;padding-right:3px}.tox .tox-statusbar__resize-handle svg{display:block;fill:#ffffff80}.tox .tox-statusbar__resize-handle:focus svg{background-color:#4a5562;border-radius:1px 1px -4px;box-shadow:0 0 0 2px #4a5562}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#222f3e99;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:transparent;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:3px 0 2px;outline:none;overflow:hidden;padding:0;text-transform:none;width:34px}.tox .tox-tbtn svg{display:block;fill:#fff}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:#ffffff80}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*{transform:none}.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg{fill:#fff}.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg{fill:#ffffff80}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{border-radius:3px;display:flex;margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-number-input .tox-input-wrapper{background:transparent;display:flex;pointer-events:none;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background:#4a5562}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;width:60px}.tox .tox-number-input input:hover{background:#4a5562;color:#fff}.tox .tox-number-input input:focus{background:#fff;color:#2a3746}.tox .tox-number-input input:disabled{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button{background:transparent;color:#fff;height:34px;text-align:center;width:24px}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}.tox .tox-number-input button:focus{background:#4a5562}.tox .tox-number-input button:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:#ffffff80}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>button,.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper{background:#4a5562}.tox .tox-tbtn--select{margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#ffffff80}.tox .tox-tbtn--bespoke{background:transparent}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:0}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:3px 0 2px;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #4a5562 inset}.tox .tox-split-button:focus{background:#4a5562;box-shadow:none;color:#fff}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#ffffff80}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:transparent;box-shadow:none;color:#ffffff80}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(#000000 0px 1px,transparent 1px 39px);background-position:center top 39px;background-repeat:no-repeat;background-size:calc(100% - 8px) calc(100% - 39px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__primary,.tox .tox-toolbar-overlord>.tox-toolbar__overflow{background-position:center top 0px;background-size:calc(100% - 8px) calc(100% + -0px)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-toolbar-overlord,.tox .tox-anchorbar{grid-column:1 / -1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid #000000;margin-top:-1px;padding-bottom:0;padding-top:0}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 16px) calc(100% - 51px);border:none;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;overscroll-behavior:none;padding:4px 0}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 8px) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #000000}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #000000}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#3d546f;border-radius:3px;box-shadow:0 2px 4px #2a37464d;color:#ffffffbf;font-size:14px;font-style:normal;font-weight:400;padding:4px 8px;text-transform:none}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #3d546f;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #3d546f;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #3d546f;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #3d546f;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:transparent;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:none;overflow:hidden;padding:0 0 0 8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled>*,.tox .tox-tree .tox-trbtn--enabled:hover>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0;position:relative}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;padding:8px 8px 0}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-start,.tox .tox-view__header-end{display:flex}.tox .tox-view__pane{height:100%;padding:8px;width:100%}.tox .tox-view__pane_panel{border:1px solid #000000;border-radius:3px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-start>*,.tox[dir=rtl] .tox-view__header .tox-view__header-end>*{margin-right:8px}.tox .tox-well{border:1px solid #000000;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #000000;border-radius:3px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:none;padding:0}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce-inline .tox-editor-container{overflow:hidden}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:none;box-shadow:none}.tox.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:transparent;box-shadow:0 4px 4px -3px #00000040;padding:0}.tox.tox.tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-pop{box-shadow:none}.tox .tox-tbtn,.tox .tox-number-input,.tox .tox-tbtn--select,.tox .tox-split-button{margin:2px 0 3px}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0px #222f3e!important}.tox .tox-menubar+.tox-toolbar-overlord{border-top:none}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #000000;margin-top:-1px}.tox.tox-tinymce-aux .tox-toolbar__overflow{border:1px solid #000000;padding:0}.tox .tox-pop .tox-pop__dialog .tox-toolbar{padding:0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #000000}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary,.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child{border-top:1px solid #000000}.tox .tox-toolbar__group{padding:0 4px}.tox .tox-collection__item{border-radius:0;cursor:pointer}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;text-decoration:underline}.tox .tox-statusbar__branding svg{vertical-align:-.25em}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox .tox-statusbar__resize-handle{padding-bottom:0;padding-right:0}.tox .tox-button:before{display:none}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-color:#0e1b23!important}.editor{background-color:#1b2f3c;filter:none;height:300px;width:100%;margin-bottom:5px}.editor .ace_gutter{background:#1b2f3c}.editor .ace_active-line,.editor .ace_gutter-active-line{background:#0e1b23!important}@font-face{font-family:Material Design Icons;src:url(./materialdesignicons-webfont-5159a347.eot?v=7.3.67);src:url(./materialdesignicons-webfont-5159a347.eot?#iefix&v=7.3.67) format("embedded-opentype"),url(./materialdesignicons-webfont-31010194.woff2?v=7.3.67) format("woff2"),url(./materialdesignicons-webfont-28c8f97f.woff?v=7.3.67) format("woff"),url(./materialdesignicons-webfont-be825c12.ttf?v=7.3.67) format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"󰇉"}.mdi-abacus:before{content:"󱛠"}.mdi-abjad-arabic:before{content:"󱌨"}.mdi-abjad-hebrew:before{content:"󱌩"}.mdi-abugida-devanagari:before{content:"󱌪"}.mdi-abugida-thai:before{content:"󱌫"}.mdi-access-point:before{content:"󰀃"}.mdi-access-point-check:before{content:"󱔸"}.mdi-access-point-minus:before{content:"󱔹"}.mdi-access-point-network:before{content:"󰀂"}.mdi-access-point-network-off:before{content:"󰯡"}.mdi-access-point-off:before{content:"󱔑"}.mdi-access-point-plus:before{content:"󱔺"}.mdi-access-point-remove:before{content:"󱔻"}.mdi-account:before{content:"󰀄"}.mdi-account-alert:before{content:"󰀅"}.mdi-account-alert-outline:before{content:"󰭐"}.mdi-account-arrow-down:before{content:"󱡨"}.mdi-account-arrow-down-outline:before{content:"󱡩"}.mdi-account-arrow-left:before{content:"󰭑"}.mdi-account-arrow-left-outline:before{content:"󰭒"}.mdi-account-arrow-right:before{content:"󰭓"}.mdi-account-arrow-right-outline:before{content:"󰭔"}.mdi-account-arrow-up:before{content:"󱡧"}.mdi-account-arrow-up-outline:before{content:"󱡪"}.mdi-account-badge:before{content:"󱬊"}.mdi-account-badge-outline:before{content:"󱬋"}.mdi-account-box:before{content:"󰀆"}.mdi-account-box-multiple:before{content:"󰤴"}.mdi-account-box-multiple-outline:before{content:"󱀊"}.mdi-account-box-outline:before{content:"󰀇"}.mdi-account-cancel:before{content:"󱋟"}.mdi-account-cancel-outline:before{content:"󱋠"}.mdi-account-card:before{content:"󱮤"}.mdi-account-card-outline:before{content:"󱮥"}.mdi-account-cash:before{content:"󱂗"}.mdi-account-cash-outline:before{content:"󱂘"}.mdi-account-check:before{content:"󰀈"}.mdi-account-check-outline:before{content:"󰯢"}.mdi-account-child:before{content:"󰪉"}.mdi-account-child-circle:before{content:"󰪊"}.mdi-account-child-outline:before{content:"󱃈"}.mdi-account-circle:before{content:"󰀉"}.mdi-account-circle-outline:before{content:"󰭕"}.mdi-account-clock:before{content:"󰭖"}.mdi-account-clock-outline:before{content:"󰭗"}.mdi-account-cog:before{content:"󱍰"}.mdi-account-cog-outline:before{content:"󱍱"}.mdi-account-convert:before{content:"󰀊"}.mdi-account-convert-outline:before{content:"󱌁"}.mdi-account-cowboy-hat:before{content:"󰺛"}.mdi-account-cowboy-hat-outline:before{content:"󱟳"}.mdi-account-credit-card:before{content:"󱮦"}.mdi-account-credit-card-outline:before{content:"󱮧"}.mdi-account-details:before{content:"󰘱"}.mdi-account-details-outline:before{content:"󱍲"}.mdi-account-edit:before{content:"󰚼"}.mdi-account-edit-outline:before{content:"󰿻"}.mdi-account-eye:before{content:"󰐠"}.mdi-account-eye-outline:before{content:"󱉻"}.mdi-account-file:before{content:"󱲧"}.mdi-account-file-outline:before{content:"󱲨"}.mdi-account-file-text:before{content:"󱲩"}.mdi-account-file-text-outline:before{content:"󱲪"}.mdi-account-filter:before{content:"󰤶"}.mdi-account-filter-outline:before{content:"󰾝"}.mdi-account-group:before{content:"󰡉"}.mdi-account-group-outline:before{content:"󰭘"}.mdi-account-hard-hat:before{content:"󰖵"}.mdi-account-hard-hat-outline:before{content:"󱨟"}.mdi-account-heart:before{content:"󰢙"}.mdi-account-heart-outline:before{content:"󰯣"}.mdi-account-injury:before{content:"󱠕"}.mdi-account-injury-outline:before{content:"󱠖"}.mdi-account-key:before{content:"󰀋"}.mdi-account-key-outline:before{content:"󰯤"}.mdi-account-lock:before{content:"󱅞"}.mdi-account-lock-open:before{content:"󱥠"}.mdi-account-lock-open-outline:before{content:"󱥡"}.mdi-account-lock-outline:before{content:"󱅟"}.mdi-account-minus:before{content:"󰀍"}.mdi-account-minus-outline:before{content:"󰫬"}.mdi-account-multiple:before{content:"󰀎"}.mdi-account-multiple-check:before{content:"󰣅"}.mdi-account-multiple-check-outline:before{content:"󱇾"}.mdi-account-multiple-minus:before{content:"󰗓"}.mdi-account-multiple-minus-outline:before{content:"󰯥"}.mdi-account-multiple-outline:before{content:"󰀏"}.mdi-account-multiple-plus:before{content:"󰀐"}.mdi-account-multiple-plus-outline:before{content:"󰠀"}.mdi-account-multiple-remove:before{content:"󱈊"}.mdi-account-multiple-remove-outline:before{content:"󱈋"}.mdi-account-music:before{content:"󰠃"}.mdi-account-music-outline:before{content:"󰳩"}.mdi-account-network:before{content:"󰀑"}.mdi-account-network-off:before{content:"󱫱"}.mdi-account-network-off-outline:before{content:"󱫲"}.mdi-account-network-outline:before{content:"󰯦"}.mdi-account-off:before{content:"󰀒"}.mdi-account-off-outline:before{content:"󰯧"}.mdi-account-outline:before{content:"󰀓"}.mdi-account-plus:before{content:"󰀔"}.mdi-account-plus-outline:before{content:"󰠁"}.mdi-account-question:before{content:"󰭙"}.mdi-account-question-outline:before{content:"󰭚"}.mdi-account-reactivate:before{content:"󱔫"}.mdi-account-reactivate-outline:before{content:"󱔬"}.mdi-account-remove:before{content:"󰀕"}.mdi-account-remove-outline:before{content:"󰫭"}.mdi-account-school:before{content:"󱨠"}.mdi-account-school-outline:before{content:"󱨡"}.mdi-account-search:before{content:"󰀖"}.mdi-account-search-outline:before{content:"󰤵"}.mdi-account-settings:before{content:"󰘰"}.mdi-account-settings-outline:before{content:"󱃉"}.mdi-account-star:before{content:"󰀗"}.mdi-account-star-outline:before{content:"󰯨"}.mdi-account-supervisor:before{content:"󰪋"}.mdi-account-supervisor-circle:before{content:"󰪌"}.mdi-account-supervisor-circle-outline:before{content:"󱓬"}.mdi-account-supervisor-outline:before{content:"󱄭"}.mdi-account-switch:before{content:"󰀙"}.mdi-account-switch-outline:before{content:"󰓋"}.mdi-account-sync:before{content:"󱤛"}.mdi-account-sync-outline:before{content:"󱤜"}.mdi-account-tag:before{content:"󱰛"}.mdi-account-tag-outline:before{content:"󱰜"}.mdi-account-tie:before{content:"󰳣"}.mdi-account-tie-hat:before{content:"󱢘"}.mdi-account-tie-hat-outline:before{content:"󱢙"}.mdi-account-tie-outline:before{content:"󱃊"}.mdi-account-tie-voice:before{content:"󱌈"}.mdi-account-tie-voice-off:before{content:"󱌊"}.mdi-account-tie-voice-off-outline:before{content:"󱌋"}.mdi-account-tie-voice-outline:before{content:"󱌉"}.mdi-account-tie-woman:before{content:"󱪌"}.mdi-account-voice:before{content:"󰗋"}.mdi-account-voice-off:before{content:"󰻔"}.mdi-account-wrench:before{content:"󱢚"}.mdi-account-wrench-outline:before{content:"󱢛"}.mdi-adjust:before{content:"󰀚"}.mdi-advertisements:before{content:"󱤪"}.mdi-advertisements-off:before{content:"󱤫"}.mdi-air-conditioner:before{content:"󰀛"}.mdi-air-filter:before{content:"󰵃"}.mdi-air-horn:before{content:"󰶬"}.mdi-air-humidifier:before{content:"󱂙"}.mdi-air-humidifier-off:before{content:"󱑦"}.mdi-air-purifier:before{content:"󰵄"}.mdi-air-purifier-off:before{content:"󱭗"}.mdi-airbag:before{content:"󰯩"}.mdi-airballoon:before{content:"󰀜"}.mdi-airballoon-outline:before{content:"󱀋"}.mdi-airplane:before{content:"󰀝"}.mdi-airplane-alert:before{content:"󱡺"}.mdi-airplane-check:before{content:"󱡻"}.mdi-airplane-clock:before{content:"󱡼"}.mdi-airplane-cog:before{content:"󱡽"}.mdi-airplane-edit:before{content:"󱡾"}.mdi-airplane-landing:before{content:"󰗔"}.mdi-airplane-marker:before{content:"󱡿"}.mdi-airplane-minus:before{content:"󱢀"}.mdi-airplane-off:before{content:"󰀞"}.mdi-airplane-plus:before{content:"󱢁"}.mdi-airplane-remove:before{content:"󱢂"}.mdi-airplane-search:before{content:"󱢃"}.mdi-airplane-settings:before{content:"󱢄"}.mdi-airplane-takeoff:before{content:"󰗕"}.mdi-airport:before{content:"󰡋"}.mdi-alarm:before{content:"󰀠"}.mdi-alarm-bell:before{content:"󰞎"}.mdi-alarm-check:before{content:"󰀡"}.mdi-alarm-light:before{content:"󰞏"}.mdi-alarm-light-off:before{content:"󱜞"}.mdi-alarm-light-off-outline:before{content:"󱜟"}.mdi-alarm-light-outline:before{content:"󰯪"}.mdi-alarm-multiple:before{content:"󰀢"}.mdi-alarm-note:before{content:"󰹱"}.mdi-alarm-note-off:before{content:"󰹲"}.mdi-alarm-off:before{content:"󰀣"}.mdi-alarm-panel:before{content:"󱗄"}.mdi-alarm-panel-outline:before{content:"󱗅"}.mdi-alarm-plus:before{content:"󰀤"}.mdi-alarm-snooze:before{content:"󰚎"}.mdi-album:before{content:"󰀥"}.mdi-alert:before{content:"󰀦"}.mdi-alert-box:before{content:"󰀧"}.mdi-alert-box-outline:before{content:"󰳤"}.mdi-alert-circle:before{content:"󰀨"}.mdi-alert-circle-check:before{content:"󱇭"}.mdi-alert-circle-check-outline:before{content:"󱇮"}.mdi-alert-circle-outline:before{content:"󰗖"}.mdi-alert-decagram:before{content:"󰚽"}.mdi-alert-decagram-outline:before{content:"󰳥"}.mdi-alert-minus:before{content:"󱒻"}.mdi-alert-minus-outline:before{content:"󱒾"}.mdi-alert-octagon:before{content:"󰀩"}.mdi-alert-octagon-outline:before{content:"󰳦"}.mdi-alert-octagram:before{content:"󰝧"}.mdi-alert-octagram-outline:before{content:"󰳧"}.mdi-alert-outline:before{content:"󰀪"}.mdi-alert-plus:before{content:"󱒺"}.mdi-alert-plus-outline:before{content:"󱒽"}.mdi-alert-remove:before{content:"󱒼"}.mdi-alert-remove-outline:before{content:"󱒿"}.mdi-alert-rhombus:before{content:"󱇎"}.mdi-alert-rhombus-outline:before{content:"󱇏"}.mdi-alien:before{content:"󰢚"}.mdi-alien-outline:before{content:"󱃋"}.mdi-align-horizontal-center:before{content:"󱇃"}.mdi-align-horizontal-distribute:before{content:"󱥢"}.mdi-align-horizontal-left:before{content:"󱇂"}.mdi-align-horizontal-right:before{content:"󱇄"}.mdi-align-vertical-bottom:before{content:"󱇅"}.mdi-align-vertical-center:before{content:"󱇆"}.mdi-align-vertical-distribute:before{content:"󱥣"}.mdi-align-vertical-top:before{content:"󱇇"}.mdi-all-inclusive:before{content:"󰚾"}.mdi-all-inclusive-box:before{content:"󱢍"}.mdi-all-inclusive-box-outline:before{content:"󱢎"}.mdi-allergy:before{content:"󱉘"}.mdi-alpha:before{content:"󰀫"}.mdi-alpha-a:before{content:"󰫮"}.mdi-alpha-a-box:before{content:"󰬈"}.mdi-alpha-a-box-outline:before{content:"󰯫"}.mdi-alpha-a-circle:before{content:"󰯬"}.mdi-alpha-a-circle-outline:before{content:"󰯭"}.mdi-alpha-b:before{content:"󰫯"}.mdi-alpha-b-box:before{content:"󰬉"}.mdi-alpha-b-box-outline:before{content:"󰯮"}.mdi-alpha-b-circle:before{content:"󰯯"}.mdi-alpha-b-circle-outline:before{content:"󰯰"}.mdi-alpha-c:before{content:"󰫰"}.mdi-alpha-c-box:before{content:"󰬊"}.mdi-alpha-c-box-outline:before{content:"󰯱"}.mdi-alpha-c-circle:before{content:"󰯲"}.mdi-alpha-c-circle-outline:before{content:"󰯳"}.mdi-alpha-d:before{content:"󰫱"}.mdi-alpha-d-box:before{content:"󰬋"}.mdi-alpha-d-box-outline:before{content:"󰯴"}.mdi-alpha-d-circle:before{content:"󰯵"}.mdi-alpha-d-circle-outline:before{content:"󰯶"}.mdi-alpha-e:before{content:"󰫲"}.mdi-alpha-e-box:before{content:"󰬌"}.mdi-alpha-e-box-outline:before{content:"󰯷"}.mdi-alpha-e-circle:before{content:"󰯸"}.mdi-alpha-e-circle-outline:before{content:"󰯹"}.mdi-alpha-f:before{content:"󰫳"}.mdi-alpha-f-box:before{content:"󰬍"}.mdi-alpha-f-box-outline:before{content:"󰯺"}.mdi-alpha-f-circle:before{content:"󰯻"}.mdi-alpha-f-circle-outline:before{content:"󰯼"}.mdi-alpha-g:before{content:"󰫴"}.mdi-alpha-g-box:before{content:"󰬎"}.mdi-alpha-g-box-outline:before{content:"󰯽"}.mdi-alpha-g-circle:before{content:"󰯾"}.mdi-alpha-g-circle-outline:before{content:"󰯿"}.mdi-alpha-h:before{content:"󰫵"}.mdi-alpha-h-box:before{content:"󰬏"}.mdi-alpha-h-box-outline:before{content:"󰰀"}.mdi-alpha-h-circle:before{content:"󰰁"}.mdi-alpha-h-circle-outline:before{content:"󰰂"}.mdi-alpha-i:before{content:"󰫶"}.mdi-alpha-i-box:before{content:"󰬐"}.mdi-alpha-i-box-outline:before{content:"󰰃"}.mdi-alpha-i-circle:before{content:"󰰄"}.mdi-alpha-i-circle-outline:before{content:"󰰅"}.mdi-alpha-j:before{content:"󰫷"}.mdi-alpha-j-box:before{content:"󰬑"}.mdi-alpha-j-box-outline:before{content:"󰰆"}.mdi-alpha-j-circle:before{content:"󰰇"}.mdi-alpha-j-circle-outline:before{content:"󰰈"}.mdi-alpha-k:before{content:"󰫸"}.mdi-alpha-k-box:before{content:"󰬒"}.mdi-alpha-k-box-outline:before{content:"󰰉"}.mdi-alpha-k-circle:before{content:"󰰊"}.mdi-alpha-k-circle-outline:before{content:"󰰋"}.mdi-alpha-l:before{content:"󰫹"}.mdi-alpha-l-box:before{content:"󰬓"}.mdi-alpha-l-box-outline:before{content:"󰰌"}.mdi-alpha-l-circle:before{content:"󰰍"}.mdi-alpha-l-circle-outline:before{content:"󰰎"}.mdi-alpha-m:before{content:"󰫺"}.mdi-alpha-m-box:before{content:"󰬔"}.mdi-alpha-m-box-outline:before{content:"󰰏"}.mdi-alpha-m-circle:before{content:"󰰐"}.mdi-alpha-m-circle-outline:before{content:"󰰑"}.mdi-alpha-n:before{content:"󰫻"}.mdi-alpha-n-box:before{content:"󰬕"}.mdi-alpha-n-box-outline:before{content:"󰰒"}.mdi-alpha-n-circle:before{content:"󰰓"}.mdi-alpha-n-circle-outline:before{content:"󰰔"}.mdi-alpha-o:before{content:"󰫼"}.mdi-alpha-o-box:before{content:"󰬖"}.mdi-alpha-o-box-outline:before{content:"󰰕"}.mdi-alpha-o-circle:before{content:"󰰖"}.mdi-alpha-o-circle-outline:before{content:"󰰗"}.mdi-alpha-p:before{content:"󰫽"}.mdi-alpha-p-box:before{content:"󰬗"}.mdi-alpha-p-box-outline:before{content:"󰰘"}.mdi-alpha-p-circle:before{content:"󰰙"}.mdi-alpha-p-circle-outline:before{content:"󰰚"}.mdi-alpha-q:before{content:"󰫾"}.mdi-alpha-q-box:before{content:"󰬘"}.mdi-alpha-q-box-outline:before{content:"󰰛"}.mdi-alpha-q-circle:before{content:"󰰜"}.mdi-alpha-q-circle-outline:before{content:"󰰝"}.mdi-alpha-r:before{content:"󰫿"}.mdi-alpha-r-box:before{content:"󰬙"}.mdi-alpha-r-box-outline:before{content:"󰰞"}.mdi-alpha-r-circle:before{content:"󰰟"}.mdi-alpha-r-circle-outline:before{content:"󰰠"}.mdi-alpha-s:before{content:"󰬀"}.mdi-alpha-s-box:before{content:"󰬚"}.mdi-alpha-s-box-outline:before{content:"󰰡"}.mdi-alpha-s-circle:before{content:"󰰢"}.mdi-alpha-s-circle-outline:before{content:"󰰣"}.mdi-alpha-t:before{content:"󰬁"}.mdi-alpha-t-box:before{content:"󰬛"}.mdi-alpha-t-box-outline:before{content:"󰰤"}.mdi-alpha-t-circle:before{content:"󰰥"}.mdi-alpha-t-circle-outline:before{content:"󰰦"}.mdi-alpha-u:before{content:"󰬂"}.mdi-alpha-u-box:before{content:"󰬜"}.mdi-alpha-u-box-outline:before{content:"󰰧"}.mdi-alpha-u-circle:before{content:"󰰨"}.mdi-alpha-u-circle-outline:before{content:"󰰩"}.mdi-alpha-v:before{content:"󰬃"}.mdi-alpha-v-box:before{content:"󰬝"}.mdi-alpha-v-box-outline:before{content:"󰰪"}.mdi-alpha-v-circle:before{content:"󰰫"}.mdi-alpha-v-circle-outline:before{content:"󰰬"}.mdi-alpha-w:before{content:"󰬄"}.mdi-alpha-w-box:before{content:"󰬞"}.mdi-alpha-w-box-outline:before{content:"󰰭"}.mdi-alpha-w-circle:before{content:"󰰮"}.mdi-alpha-w-circle-outline:before{content:"󰰯"}.mdi-alpha-x:before{content:"󰬅"}.mdi-alpha-x-box:before{content:"󰬟"}.mdi-alpha-x-box-outline:before{content:"󰰰"}.mdi-alpha-x-circle:before{content:"󰰱"}.mdi-alpha-x-circle-outline:before{content:"󰰲"}.mdi-alpha-y:before{content:"󰬆"}.mdi-alpha-y-box:before{content:"󰬠"}.mdi-alpha-y-box-outline:before{content:"󰰳"}.mdi-alpha-y-circle:before{content:"󰰴"}.mdi-alpha-y-circle-outline:before{content:"󰰵"}.mdi-alpha-z:before{content:"󰬇"}.mdi-alpha-z-box:before{content:"󰬡"}.mdi-alpha-z-box-outline:before{content:"󰰶"}.mdi-alpha-z-circle:before{content:"󰰷"}.mdi-alpha-z-circle-outline:before{content:"󰰸"}.mdi-alphabet-aurebesh:before{content:"󱌬"}.mdi-alphabet-cyrillic:before{content:"󱌭"}.mdi-alphabet-greek:before{content:"󱌮"}.mdi-alphabet-latin:before{content:"󱌯"}.mdi-alphabet-piqad:before{content:"󱌰"}.mdi-alphabet-tengwar:before{content:"󱌷"}.mdi-alphabetical:before{content:"󰀬"}.mdi-alphabetical-off:before{content:"󱀌"}.mdi-alphabetical-variant:before{content:"󱀍"}.mdi-alphabetical-variant-off:before{content:"󱀎"}.mdi-altimeter:before{content:"󰗗"}.mdi-ambulance:before{content:"󰀯"}.mdi-ammunition:before{content:"󰳨"}.mdi-ampersand:before{content:"󰪍"}.mdi-amplifier:before{content:"󰀰"}.mdi-amplifier-off:before{content:"󱆵"}.mdi-anchor:before{content:"󰀱"}.mdi-android:before{content:"󰀲"}.mdi-android-studio:before{content:"󰀴"}.mdi-angle-acute:before{content:"󰤷"}.mdi-angle-obtuse:before{content:"󰤸"}.mdi-angle-right:before{content:"󰤹"}.mdi-angular:before{content:"󰚲"}.mdi-angularjs:before{content:"󰚿"}.mdi-animation:before{content:"󰗘"}.mdi-animation-outline:before{content:"󰪏"}.mdi-animation-play:before{content:"󰤺"}.mdi-animation-play-outline:before{content:"󰪐"}.mdi-ansible:before{content:"󱂚"}.mdi-antenna:before{content:"󱄙"}.mdi-anvil:before{content:"󰢛"}.mdi-apache-kafka:before{content:"󱀏"}.mdi-api:before{content:"󱂛"}.mdi-api-off:before{content:"󱉗"}.mdi-apple:before{content:"󰀵"}.mdi-apple-finder:before{content:"󰀶"}.mdi-apple-icloud:before{content:"󰀸"}.mdi-apple-ios:before{content:"󰀷"}.mdi-apple-keyboard-caps:before{content:"󰘲"}.mdi-apple-keyboard-command:before{content:"󰘳"}.mdi-apple-keyboard-control:before{content:"󰘴"}.mdi-apple-keyboard-option:before{content:"󰘵"}.mdi-apple-keyboard-shift:before{content:"󰘶"}.mdi-apple-safari:before{content:"󰀹"}.mdi-application:before{content:"󰣆"}.mdi-application-array:before{content:"󱃵"}.mdi-application-array-outline:before{content:"󱃶"}.mdi-application-braces:before{content:"󱃷"}.mdi-application-braces-outline:before{content:"󱃸"}.mdi-application-brackets:before{content:"󰲋"}.mdi-application-brackets-outline:before{content:"󰲌"}.mdi-application-cog:before{content:"󰙵"}.mdi-application-cog-outline:before{content:"󱕷"}.mdi-application-edit:before{content:"󰂮"}.mdi-application-edit-outline:before{content:"󰘙"}.mdi-application-export:before{content:"󰶭"}.mdi-application-import:before{content:"󰶮"}.mdi-application-outline:before{content:"󰘔"}.mdi-application-parentheses:before{content:"󱃹"}.mdi-application-parentheses-outline:before{content:"󱃺"}.mdi-application-settings:before{content:"󰭠"}.mdi-application-settings-outline:before{content:"󱕕"}.mdi-application-variable:before{content:"󱃻"}.mdi-application-variable-outline:before{content:"󱃼"}.mdi-approximately-equal:before{content:"󰾞"}.mdi-approximately-equal-box:before{content:"󰾟"}.mdi-apps:before{content:"󰀻"}.mdi-apps-box:before{content:"󰵆"}.mdi-arch:before{content:"󰣇"}.mdi-archive:before{content:"󰀼"}.mdi-archive-alert:before{content:"󱓽"}.mdi-archive-alert-outline:before{content:"󱓾"}.mdi-archive-arrow-down:before{content:"󱉙"}.mdi-archive-arrow-down-outline:before{content:"󱉚"}.mdi-archive-arrow-up:before{content:"󱉛"}.mdi-archive-arrow-up-outline:before{content:"󱉜"}.mdi-archive-cancel:before{content:"󱝋"}.mdi-archive-cancel-outline:before{content:"󱝌"}.mdi-archive-check:before{content:"󱝍"}.mdi-archive-check-outline:before{content:"󱝎"}.mdi-archive-clock:before{content:"󱝏"}.mdi-archive-clock-outline:before{content:"󱝐"}.mdi-archive-cog:before{content:"󱝑"}.mdi-archive-cog-outline:before{content:"󱝒"}.mdi-archive-edit:before{content:"󱝓"}.mdi-archive-edit-outline:before{content:"󱝔"}.mdi-archive-eye:before{content:"󱝕"}.mdi-archive-eye-outline:before{content:"󱝖"}.mdi-archive-lock:before{content:"󱝗"}.mdi-archive-lock-open:before{content:"󱝘"}.mdi-archive-lock-open-outline:before{content:"󱝙"}.mdi-archive-lock-outline:before{content:"󱝚"}.mdi-archive-marker:before{content:"󱝛"}.mdi-archive-marker-outline:before{content:"󱝜"}.mdi-archive-minus:before{content:"󱝝"}.mdi-archive-minus-outline:before{content:"󱝞"}.mdi-archive-music:before{content:"󱝟"}.mdi-archive-music-outline:before{content:"󱝠"}.mdi-archive-off:before{content:"󱝡"}.mdi-archive-off-outline:before{content:"󱝢"}.mdi-archive-outline:before{content:"󱈎"}.mdi-archive-plus:before{content:"󱝣"}.mdi-archive-plus-outline:before{content:"󱝤"}.mdi-archive-refresh:before{content:"󱝥"}.mdi-archive-refresh-outline:before{content:"󱝦"}.mdi-archive-remove:before{content:"󱝧"}.mdi-archive-remove-outline:before{content:"󱝨"}.mdi-archive-search:before{content:"󱝩"}.mdi-archive-search-outline:before{content:"󱝪"}.mdi-archive-settings:before{content:"󱝫"}.mdi-archive-settings-outline:before{content:"󱝬"}.mdi-archive-star:before{content:"󱝭"}.mdi-archive-star-outline:before{content:"󱝮"}.mdi-archive-sync:before{content:"󱝯"}.mdi-archive-sync-outline:before{content:"󱝰"}.mdi-arm-flex:before{content:"󰿗"}.mdi-arm-flex-outline:before{content:"󰿖"}.mdi-arrange-bring-forward:before{content:"󰀽"}.mdi-arrange-bring-to-front:before{content:"󰀾"}.mdi-arrange-send-backward:before{content:"󰀿"}.mdi-arrange-send-to-back:before{content:"󰁀"}.mdi-arrow-all:before{content:"󰁁"}.mdi-arrow-bottom-left:before{content:"󰁂"}.mdi-arrow-bottom-left-bold-box:before{content:"󱥤"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"󱥥"}.mdi-arrow-bottom-left-bold-outline:before{content:"󰦷"}.mdi-arrow-bottom-left-thick:before{content:"󰦸"}.mdi-arrow-bottom-left-thin:before{content:"󱦶"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"󱖖"}.mdi-arrow-bottom-right:before{content:"󰁃"}.mdi-arrow-bottom-right-bold-box:before{content:"󱥦"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"󱥧"}.mdi-arrow-bottom-right-bold-outline:before{content:"󰦹"}.mdi-arrow-bottom-right-thick:before{content:"󰦺"}.mdi-arrow-bottom-right-thin:before{content:"󱦷"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"󱖕"}.mdi-arrow-collapse:before{content:"󰘕"}.mdi-arrow-collapse-all:before{content:"󰁄"}.mdi-arrow-collapse-down:before{content:"󰞒"}.mdi-arrow-collapse-horizontal:before{content:"󰡌"}.mdi-arrow-collapse-left:before{content:"󰞓"}.mdi-arrow-collapse-right:before{content:"󰞔"}.mdi-arrow-collapse-up:before{content:"󰞕"}.mdi-arrow-collapse-vertical:before{content:"󰡍"}.mdi-arrow-decision:before{content:"󰦻"}.mdi-arrow-decision-auto:before{content:"󰦼"}.mdi-arrow-decision-auto-outline:before{content:"󰦽"}.mdi-arrow-decision-outline:before{content:"󰦾"}.mdi-arrow-down:before{content:"󰁅"}.mdi-arrow-down-bold:before{content:"󰜮"}.mdi-arrow-down-bold-box:before{content:"󰜯"}.mdi-arrow-down-bold-box-outline:before{content:"󰜰"}.mdi-arrow-down-bold-circle:before{content:"󰁇"}.mdi-arrow-down-bold-circle-outline:before{content:"󰁈"}.mdi-arrow-down-bold-hexagon-outline:before{content:"󰁉"}.mdi-arrow-down-bold-outline:before{content:"󰦿"}.mdi-arrow-down-box:before{content:"󰛀"}.mdi-arrow-down-circle:before{content:"󰳛"}.mdi-arrow-down-circle-outline:before{content:"󰳜"}.mdi-arrow-down-drop-circle:before{content:"󰁊"}.mdi-arrow-down-drop-circle-outline:before{content:"󰁋"}.mdi-arrow-down-left:before{content:"󱞡"}.mdi-arrow-down-left-bold:before{content:"󱞢"}.mdi-arrow-down-right:before{content:"󱞣"}.mdi-arrow-down-right-bold:before{content:"󱞤"}.mdi-arrow-down-thick:before{content:"󰁆"}.mdi-arrow-down-thin:before{content:"󱦳"}.mdi-arrow-down-thin-circle-outline:before{content:"󱖙"}.mdi-arrow-expand:before{content:"󰘖"}.mdi-arrow-expand-all:before{content:"󰁌"}.mdi-arrow-expand-down:before{content:"󰞖"}.mdi-arrow-expand-horizontal:before{content:"󰡎"}.mdi-arrow-expand-left:before{content:"󰞗"}.mdi-arrow-expand-right:before{content:"󰞘"}.mdi-arrow-expand-up:before{content:"󰞙"}.mdi-arrow-expand-vertical:before{content:"󰡏"}.mdi-arrow-horizontal-lock:before{content:"󱅛"}.mdi-arrow-left:before{content:"󰁍"}.mdi-arrow-left-bold:before{content:"󰜱"}.mdi-arrow-left-bold-box:before{content:"󰜲"}.mdi-arrow-left-bold-box-outline:before{content:"󰜳"}.mdi-arrow-left-bold-circle:before{content:"󰁏"}.mdi-arrow-left-bold-circle-outline:before{content:"󰁐"}.mdi-arrow-left-bold-hexagon-outline:before{content:"󰁑"}.mdi-arrow-left-bold-outline:before{content:"󰧀"}.mdi-arrow-left-bottom:before{content:"󱞥"}.mdi-arrow-left-bottom-bold:before{content:"󱞦"}.mdi-arrow-left-box:before{content:"󰛁"}.mdi-arrow-left-circle:before{content:"󰳝"}.mdi-arrow-left-circle-outline:before{content:"󰳞"}.mdi-arrow-left-drop-circle:before{content:"󰁒"}.mdi-arrow-left-drop-circle-outline:before{content:"󰁓"}.mdi-arrow-left-right:before{content:"󰹳"}.mdi-arrow-left-right-bold:before{content:"󰹴"}.mdi-arrow-left-right-bold-outline:before{content:"󰧁"}.mdi-arrow-left-thick:before{content:"󰁎"}.mdi-arrow-left-thin:before{content:"󱦱"}.mdi-arrow-left-thin-circle-outline:before{content:"󱖚"}.mdi-arrow-left-top:before{content:"󱞧"}.mdi-arrow-left-top-bold:before{content:"󱞨"}.mdi-arrow-oscillating:before{content:"󱲑"}.mdi-arrow-oscillating-off:before{content:"󱲒"}.mdi-arrow-projectile:before{content:"󱡀"}.mdi-arrow-projectile-multiple:before{content:"󱠿"}.mdi-arrow-right:before{content:"󰁔"}.mdi-arrow-right-bold:before{content:"󰜴"}.mdi-arrow-right-bold-box:before{content:"󰜵"}.mdi-arrow-right-bold-box-outline:before{content:"󰜶"}.mdi-arrow-right-bold-circle:before{content:"󰁖"}.mdi-arrow-right-bold-circle-outline:before{content:"󰁗"}.mdi-arrow-right-bold-hexagon-outline:before{content:"󰁘"}.mdi-arrow-right-bold-outline:before{content:"󰧂"}.mdi-arrow-right-bottom:before{content:"󱞩"}.mdi-arrow-right-bottom-bold:before{content:"󱞪"}.mdi-arrow-right-box:before{content:"󰛂"}.mdi-arrow-right-circle:before{content:"󰳟"}.mdi-arrow-right-circle-outline:before{content:"󰳠"}.mdi-arrow-right-drop-circle:before{content:"󰁙"}.mdi-arrow-right-drop-circle-outline:before{content:"󰁚"}.mdi-arrow-right-thick:before{content:"󰁕"}.mdi-arrow-right-thin:before{content:"󱦰"}.mdi-arrow-right-thin-circle-outline:before{content:"󱖘"}.mdi-arrow-right-top:before{content:"󱞫"}.mdi-arrow-right-top-bold:before{content:"󱞬"}.mdi-arrow-split-horizontal:before{content:"󰤻"}.mdi-arrow-split-vertical:before{content:"󰤼"}.mdi-arrow-top-left:before{content:"󰁛"}.mdi-arrow-top-left-bold-box:before{content:"󱥨"}.mdi-arrow-top-left-bold-box-outline:before{content:"󱥩"}.mdi-arrow-top-left-bold-outline:before{content:"󰧃"}.mdi-arrow-top-left-bottom-right:before{content:"󰹵"}.mdi-arrow-top-left-bottom-right-bold:before{content:"󰹶"}.mdi-arrow-top-left-thick:before{content:"󰧄"}.mdi-arrow-top-left-thin:before{content:"󱦵"}.mdi-arrow-top-left-thin-circle-outline:before{content:"󱖓"}.mdi-arrow-top-right:before{content:"󰁜"}.mdi-arrow-top-right-bold-box:before{content:"󱥪"}.mdi-arrow-top-right-bold-box-outline:before{content:"󱥫"}.mdi-arrow-top-right-bold-outline:before{content:"󰧅"}.mdi-arrow-top-right-bottom-left:before{content:"󰹷"}.mdi-arrow-top-right-bottom-left-bold:before{content:"󰹸"}.mdi-arrow-top-right-thick:before{content:"󰧆"}.mdi-arrow-top-right-thin:before{content:"󱦴"}.mdi-arrow-top-right-thin-circle-outline:before{content:"󱖔"}.mdi-arrow-u-down-left:before{content:"󱞭"}.mdi-arrow-u-down-left-bold:before{content:"󱞮"}.mdi-arrow-u-down-right:before{content:"󱞯"}.mdi-arrow-u-down-right-bold:before{content:"󱞰"}.mdi-arrow-u-left-bottom:before{content:"󱞱"}.mdi-arrow-u-left-bottom-bold:before{content:"󱞲"}.mdi-arrow-u-left-top:before{content:"󱞳"}.mdi-arrow-u-left-top-bold:before{content:"󱞴"}.mdi-arrow-u-right-bottom:before{content:"󱞵"}.mdi-arrow-u-right-bottom-bold:before{content:"󱞶"}.mdi-arrow-u-right-top:before{content:"󱞷"}.mdi-arrow-u-right-top-bold:before{content:"󱞸"}.mdi-arrow-u-up-left:before{content:"󱞹"}.mdi-arrow-u-up-left-bold:before{content:"󱞺"}.mdi-arrow-u-up-right:before{content:"󱞻"}.mdi-arrow-u-up-right-bold:before{content:"󱞼"}.mdi-arrow-up:before{content:"󰁝"}.mdi-arrow-up-bold:before{content:"󰜷"}.mdi-arrow-up-bold-box:before{content:"󰜸"}.mdi-arrow-up-bold-box-outline:before{content:"󰜹"}.mdi-arrow-up-bold-circle:before{content:"󰁟"}.mdi-arrow-up-bold-circle-outline:before{content:"󰁠"}.mdi-arrow-up-bold-hexagon-outline:before{content:"󰁡"}.mdi-arrow-up-bold-outline:before{content:"󰧇"}.mdi-arrow-up-box:before{content:"󰛃"}.mdi-arrow-up-circle:before{content:"󰳡"}.mdi-arrow-up-circle-outline:before{content:"󰳢"}.mdi-arrow-up-down:before{content:"󰹹"}.mdi-arrow-up-down-bold:before{content:"󰹺"}.mdi-arrow-up-down-bold-outline:before{content:"󰧈"}.mdi-arrow-up-drop-circle:before{content:"󰁢"}.mdi-arrow-up-drop-circle-outline:before{content:"󰁣"}.mdi-arrow-up-left:before{content:"󱞽"}.mdi-arrow-up-left-bold:before{content:"󱞾"}.mdi-arrow-up-right:before{content:"󱞿"}.mdi-arrow-up-right-bold:before{content:"󱟀"}.mdi-arrow-up-thick:before{content:"󰁞"}.mdi-arrow-up-thin:before{content:"󱦲"}.mdi-arrow-up-thin-circle-outline:before{content:"󱖗"}.mdi-arrow-vertical-lock:before{content:"󱅜"}.mdi-artboard:before{content:"󱮚"}.mdi-artstation:before{content:"󰭛"}.mdi-aspect-ratio:before{content:"󰨤"}.mdi-assistant:before{content:"󰁤"}.mdi-asterisk:before{content:"󰛄"}.mdi-asterisk-circle-outline:before{content:"󱨧"}.mdi-at:before{content:"󰁥"}.mdi-atlassian:before{content:"󰠄"}.mdi-atm:before{content:"󰵇"}.mdi-atom:before{content:"󰝨"}.mdi-atom-variant:before{content:"󰹻"}.mdi-attachment:before{content:"󰁦"}.mdi-attachment-check:before{content:"󱫁"}.mdi-attachment-lock:before{content:"󱧄"}.mdi-attachment-minus:before{content:"󱫂"}.mdi-attachment-off:before{content:"󱫃"}.mdi-attachment-plus:before{content:"󱫄"}.mdi-attachment-remove:before{content:"󱫅"}.mdi-atv:before{content:"󱭰"}.mdi-audio-input-rca:before{content:"󱡫"}.mdi-audio-input-stereo-minijack:before{content:"󱡬"}.mdi-audio-input-xlr:before{content:"󱡭"}.mdi-audio-video:before{content:"󰤽"}.mdi-audio-video-off:before{content:"󱆶"}.mdi-augmented-reality:before{content:"󰡐"}.mdi-aurora:before{content:"󱮹"}.mdi-auto-download:before{content:"󱍾"}.mdi-auto-fix:before{content:"󰁨"}.mdi-auto-mode:before{content:"󱰠"}.mdi-auto-upload:before{content:"󰁩"}.mdi-autorenew:before{content:"󰁪"}.mdi-autorenew-off:before{content:"󱧧"}.mdi-av-timer:before{content:"󰁫"}.mdi-awning:before{content:"󱮇"}.mdi-awning-outline:before{content:"󱮈"}.mdi-aws:before{content:"󰸏"}.mdi-axe:before{content:"󰣈"}.mdi-axe-battle:before{content:"󱡂"}.mdi-axis:before{content:"󰵈"}.mdi-axis-arrow:before{content:"󰵉"}.mdi-axis-arrow-info:before{content:"󱐎"}.mdi-axis-arrow-lock:before{content:"󰵊"}.mdi-axis-lock:before{content:"󰵋"}.mdi-axis-x-arrow:before{content:"󰵌"}.mdi-axis-x-arrow-lock:before{content:"󰵍"}.mdi-axis-x-rotate-clockwise:before{content:"󰵎"}.mdi-axis-x-rotate-counterclockwise:before{content:"󰵏"}.mdi-axis-x-y-arrow-lock:before{content:"󰵐"}.mdi-axis-y-arrow:before{content:"󰵑"}.mdi-axis-y-arrow-lock:before{content:"󰵒"}.mdi-axis-y-rotate-clockwise:before{content:"󰵓"}.mdi-axis-y-rotate-counterclockwise:before{content:"󰵔"}.mdi-axis-z-arrow:before{content:"󰵕"}.mdi-axis-z-arrow-lock:before{content:"󰵖"}.mdi-axis-z-rotate-clockwise:before{content:"󰵗"}.mdi-axis-z-rotate-counterclockwise:before{content:"󰵘"}.mdi-babel:before{content:"󰨥"}.mdi-baby:before{content:"󰁬"}.mdi-baby-bottle:before{content:"󰼹"}.mdi-baby-bottle-outline:before{content:"󰼺"}.mdi-baby-buggy:before{content:"󱏠"}.mdi-baby-buggy-off:before{content:"󱫳"}.mdi-baby-carriage:before{content:"󰚏"}.mdi-baby-carriage-off:before{content:"󰾠"}.mdi-baby-face:before{content:"󰹼"}.mdi-baby-face-outline:before{content:"󰹽"}.mdi-backburger:before{content:"󰁭"}.mdi-backspace:before{content:"󰁮"}.mdi-backspace-outline:before{content:"󰭜"}.mdi-backspace-reverse:before{content:"󰹾"}.mdi-backspace-reverse-outline:before{content:"󰹿"}.mdi-backup-restore:before{content:"󰁯"}.mdi-bacteria:before{content:"󰻕"}.mdi-bacteria-outline:before{content:"󰻖"}.mdi-badge-account:before{content:"󰶧"}.mdi-badge-account-alert:before{content:"󰶨"}.mdi-badge-account-alert-outline:before{content:"󰶩"}.mdi-badge-account-horizontal:before{content:"󰸍"}.mdi-badge-account-horizontal-outline:before{content:"󰸎"}.mdi-badge-account-outline:before{content:"󰶪"}.mdi-badminton:before{content:"󰡑"}.mdi-bag-carry-on:before{content:"󰼻"}.mdi-bag-carry-on-check:before{content:"󰵥"}.mdi-bag-carry-on-off:before{content:"󰼼"}.mdi-bag-checked:before{content:"󰼽"}.mdi-bag-personal:before{content:"󰸐"}.mdi-bag-personal-off:before{content:"󰸑"}.mdi-bag-personal-off-outline:before{content:"󰸒"}.mdi-bag-personal-outline:before{content:"󰸓"}.mdi-bag-personal-plus:before{content:"󱲤"}.mdi-bag-personal-plus-outline:before{content:"󱲥"}.mdi-bag-personal-tag:before{content:"󱬌"}.mdi-bag-personal-tag-outline:before{content:"󱬍"}.mdi-bag-suitcase:before{content:"󱖋"}.mdi-bag-suitcase-off:before{content:"󱖍"}.mdi-bag-suitcase-off-outline:before{content:"󱖎"}.mdi-bag-suitcase-outline:before{content:"󱖌"}.mdi-baguette:before{content:"󰼾"}.mdi-balcony:before{content:"󱠗"}.mdi-balloon:before{content:"󰨦"}.mdi-ballot:before{content:"󰧉"}.mdi-ballot-outline:before{content:"󰧊"}.mdi-ballot-recount:before{content:"󰰹"}.mdi-ballot-recount-outline:before{content:"󰰺"}.mdi-bandage:before{content:"󰶯"}.mdi-bank:before{content:"󰁰"}.mdi-bank-check:before{content:"󱙕"}.mdi-bank-circle:before{content:"󱰃"}.mdi-bank-circle-outline:before{content:"󱰄"}.mdi-bank-minus:before{content:"󰶰"}.mdi-bank-off:before{content:"󱙖"}.mdi-bank-off-outline:before{content:"󱙗"}.mdi-bank-outline:before{content:"󰺀"}.mdi-bank-plus:before{content:"󰶱"}.mdi-bank-remove:before{content:"󰶲"}.mdi-bank-transfer:before{content:"󰨧"}.mdi-bank-transfer-in:before{content:"󰨨"}.mdi-bank-transfer-out:before{content:"󰨩"}.mdi-barcode:before{content:"󰁱"}.mdi-barcode-off:before{content:"󱈶"}.mdi-barcode-scan:before{content:"󰁲"}.mdi-barley:before{content:"󰁳"}.mdi-barley-off:before{content:"󰭝"}.mdi-barn:before{content:"󰭞"}.mdi-barrel:before{content:"󰁴"}.mdi-barrel-outline:before{content:"󱨨"}.mdi-baseball:before{content:"󰡒"}.mdi-baseball-bat:before{content:"󰡓"}.mdi-baseball-diamond:before{content:"󱗬"}.mdi-baseball-diamond-outline:before{content:"󱗭"}.mdi-baseball-outline:before{content:"󱱚"}.mdi-bash:before{content:"󱆃"}.mdi-basket:before{content:"󰁶"}.mdi-basket-check:before{content:"󱣥"}.mdi-basket-check-outline:before{content:"󱣦"}.mdi-basket-fill:before{content:"󰁷"}.mdi-basket-minus:before{content:"󱔣"}.mdi-basket-minus-outline:before{content:"󱔤"}.mdi-basket-off:before{content:"󱔥"}.mdi-basket-off-outline:before{content:"󱔦"}.mdi-basket-outline:before{content:"󱆁"}.mdi-basket-plus:before{content:"󱔧"}.mdi-basket-plus-outline:before{content:"󱔨"}.mdi-basket-remove:before{content:"󱔩"}.mdi-basket-remove-outline:before{content:"󱔪"}.mdi-basket-unfill:before{content:"󰁸"}.mdi-basketball:before{content:"󰠆"}.mdi-basketball-hoop:before{content:"󰰻"}.mdi-basketball-hoop-outline:before{content:"󰰼"}.mdi-bat:before{content:"󰭟"}.mdi-bathtub:before{content:"󱠘"}.mdi-bathtub-outline:before{content:"󱠙"}.mdi-battery:before{content:"󰁹"}.mdi-battery-10:before{content:"󰁺"}.mdi-battery-10-bluetooth:before{content:"󰤾"}.mdi-battery-20:before{content:"󰁻"}.mdi-battery-20-bluetooth:before{content:"󰤿"}.mdi-battery-30:before{content:"󰁼"}.mdi-battery-30-bluetooth:before{content:"󰥀"}.mdi-battery-40:before{content:"󰁽"}.mdi-battery-40-bluetooth:before{content:"󰥁"}.mdi-battery-50:before{content:"󰁾"}.mdi-battery-50-bluetooth:before{content:"󰥂"}.mdi-battery-60:before{content:"󰁿"}.mdi-battery-60-bluetooth:before{content:"󰥃"}.mdi-battery-70:before{content:"󰂀"}.mdi-battery-70-bluetooth:before{content:"󰥄"}.mdi-battery-80:before{content:"󰂁"}.mdi-battery-80-bluetooth:before{content:"󰥅"}.mdi-battery-90:before{content:"󰂂"}.mdi-battery-90-bluetooth:before{content:"󰥆"}.mdi-battery-alert:before{content:"󰂃"}.mdi-battery-alert-bluetooth:before{content:"󰥇"}.mdi-battery-alert-variant:before{content:"󱃌"}.mdi-battery-alert-variant-outline:before{content:"󱃍"}.mdi-battery-arrow-down:before{content:"󱟞"}.mdi-battery-arrow-down-outline:before{content:"󱟟"}.mdi-battery-arrow-up:before{content:"󱟠"}.mdi-battery-arrow-up-outline:before{content:"󱟡"}.mdi-battery-bluetooth:before{content:"󰥈"}.mdi-battery-bluetooth-variant:before{content:"󰥉"}.mdi-battery-charging:before{content:"󰂄"}.mdi-battery-charging-10:before{content:"󰢜"}.mdi-battery-charging-100:before{content:"󰂅"}.mdi-battery-charging-20:before{content:"󰂆"}.mdi-battery-charging-30:before{content:"󰂇"}.mdi-battery-charging-40:before{content:"󰂈"}.mdi-battery-charging-50:before{content:"󰢝"}.mdi-battery-charging-60:before{content:"󰂉"}.mdi-battery-charging-70:before{content:"󰢞"}.mdi-battery-charging-80:before{content:"󰂊"}.mdi-battery-charging-90:before{content:"󰂋"}.mdi-battery-charging-high:before{content:"󱊦"}.mdi-battery-charging-low:before{content:"󱊤"}.mdi-battery-charging-medium:before{content:"󱊥"}.mdi-battery-charging-outline:before{content:"󰢟"}.mdi-battery-charging-wireless:before{content:"󰠇"}.mdi-battery-charging-wireless-10:before{content:"󰠈"}.mdi-battery-charging-wireless-20:before{content:"󰠉"}.mdi-battery-charging-wireless-30:before{content:"󰠊"}.mdi-battery-charging-wireless-40:before{content:"󰠋"}.mdi-battery-charging-wireless-50:before{content:"󰠌"}.mdi-battery-charging-wireless-60:before{content:"󰠍"}.mdi-battery-charging-wireless-70:before{content:"󰠎"}.mdi-battery-charging-wireless-80:before{content:"󰠏"}.mdi-battery-charging-wireless-90:before{content:"󰠐"}.mdi-battery-charging-wireless-alert:before{content:"󰠑"}.mdi-battery-charging-wireless-outline:before{content:"󰠒"}.mdi-battery-check:before{content:"󱟢"}.mdi-battery-check-outline:before{content:"󱟣"}.mdi-battery-clock:before{content:"󱧥"}.mdi-battery-clock-outline:before{content:"󱧦"}.mdi-battery-heart:before{content:"󱈏"}.mdi-battery-heart-outline:before{content:"󱈐"}.mdi-battery-heart-variant:before{content:"󱈑"}.mdi-battery-high:before{content:"󱊣"}.mdi-battery-lock:before{content:"󱞜"}.mdi-battery-lock-open:before{content:"󱞝"}.mdi-battery-low:before{content:"󱊡"}.mdi-battery-medium:before{content:"󱊢"}.mdi-battery-minus:before{content:"󱟤"}.mdi-battery-minus-outline:before{content:"󱟥"}.mdi-battery-minus-variant:before{content:"󰂌"}.mdi-battery-negative:before{content:"󰂍"}.mdi-battery-off:before{content:"󱉝"}.mdi-battery-off-outline:before{content:"󱉞"}.mdi-battery-outline:before{content:"󰂎"}.mdi-battery-plus:before{content:"󱟦"}.mdi-battery-plus-outline:before{content:"󱟧"}.mdi-battery-plus-variant:before{content:"󰂏"}.mdi-battery-positive:before{content:"󰂐"}.mdi-battery-remove:before{content:"󱟨"}.mdi-battery-remove-outline:before{content:"󱟩"}.mdi-battery-sync:before{content:"󱠴"}.mdi-battery-sync-outline:before{content:"󱠵"}.mdi-battery-unknown:before{content:"󰂑"}.mdi-battery-unknown-bluetooth:before{content:"󰥊"}.mdi-beach:before{content:"󰂒"}.mdi-beaker:before{content:"󰳪"}.mdi-beaker-alert:before{content:"󱈩"}.mdi-beaker-alert-outline:before{content:"󱈪"}.mdi-beaker-check:before{content:"󱈫"}.mdi-beaker-check-outline:before{content:"󱈬"}.mdi-beaker-minus:before{content:"󱈭"}.mdi-beaker-minus-outline:before{content:"󱈮"}.mdi-beaker-outline:before{content:"󰚐"}.mdi-beaker-plus:before{content:"󱈯"}.mdi-beaker-plus-outline:before{content:"󱈰"}.mdi-beaker-question:before{content:"󱈱"}.mdi-beaker-question-outline:before{content:"󱈲"}.mdi-beaker-remove:before{content:"󱈳"}.mdi-beaker-remove-outline:before{content:"󱈴"}.mdi-bed:before{content:"󰋣"}.mdi-bed-clock:before{content:"󱮔"}.mdi-bed-double:before{content:"󰿔"}.mdi-bed-double-outline:before{content:"󰿓"}.mdi-bed-empty:before{content:"󰢠"}.mdi-bed-king:before{content:"󰿒"}.mdi-bed-king-outline:before{content:"󰿑"}.mdi-bed-outline:before{content:"󰂙"}.mdi-bed-queen:before{content:"󰿐"}.mdi-bed-queen-outline:before{content:"󰿛"}.mdi-bed-single:before{content:"󱁭"}.mdi-bed-single-outline:before{content:"󱁮"}.mdi-bee:before{content:"󰾡"}.mdi-bee-flower:before{content:"󰾢"}.mdi-beehive-off-outline:before{content:"󱏭"}.mdi-beehive-outline:before{content:"󱃎"}.mdi-beekeeper:before{content:"󱓢"}.mdi-beer:before{content:"󰂘"}.mdi-beer-outline:before{content:"󱌌"}.mdi-bell:before{content:"󰂚"}.mdi-bell-alert:before{content:"󰵙"}.mdi-bell-alert-outline:before{content:"󰺁"}.mdi-bell-badge:before{content:"󱅫"}.mdi-bell-badge-outline:before{content:"󰅸"}.mdi-bell-cancel:before{content:"󱏧"}.mdi-bell-cancel-outline:before{content:"󱏨"}.mdi-bell-check:before{content:"󱇥"}.mdi-bell-check-outline:before{content:"󱇦"}.mdi-bell-circle:before{content:"󰵚"}.mdi-bell-circle-outline:before{content:"󰵛"}.mdi-bell-cog:before{content:"󱨩"}.mdi-bell-cog-outline:before{content:"󱨪"}.mdi-bell-minus:before{content:"󱏩"}.mdi-bell-minus-outline:before{content:"󱏪"}.mdi-bell-off:before{content:"󰂛"}.mdi-bell-off-outline:before{content:"󰪑"}.mdi-bell-outline:before{content:"󰂜"}.mdi-bell-plus:before{content:"󰂝"}.mdi-bell-plus-outline:before{content:"󰪒"}.mdi-bell-remove:before{content:"󱏫"}.mdi-bell-remove-outline:before{content:"󱏬"}.mdi-bell-ring:before{content:"󰂞"}.mdi-bell-ring-outline:before{content:"󰂟"}.mdi-bell-sleep:before{content:"󰂠"}.mdi-bell-sleep-outline:before{content:"󰪓"}.mdi-bench:before{content:"󱰡"}.mdi-bench-back:before{content:"󱰢"}.mdi-beta:before{content:"󰂡"}.mdi-betamax:before{content:"󰧋"}.mdi-biathlon:before{content:"󰸔"}.mdi-bicycle:before{content:"󱂜"}.mdi-bicycle-basket:before{content:"󱈵"}.mdi-bicycle-cargo:before{content:"󱢜"}.mdi-bicycle-electric:before{content:"󱖴"}.mdi-bicycle-penny-farthing:before{content:"󱗩"}.mdi-bike:before{content:"󰂣"}.mdi-bike-fast:before{content:"󱄟"}.mdi-bike-pedal:before{content:"󱰣"}.mdi-bike-pedal-clipless:before{content:"󱰤"}.mdi-bike-pedal-mountain:before{content:"󱰥"}.mdi-billboard:before{content:"󱀐"}.mdi-billiards:before{content:"󰭡"}.mdi-billiards-rack:before{content:"󰭢"}.mdi-binoculars:before{content:"󰂥"}.mdi-bio:before{content:"󰂦"}.mdi-biohazard:before{content:"󰂧"}.mdi-bird:before{content:"󱗆"}.mdi-bitbucket:before{content:"󰂨"}.mdi-bitcoin:before{content:"󰠓"}.mdi-black-mesa:before{content:"󰂩"}.mdi-blender:before{content:"󰳫"}.mdi-blender-outline:before{content:"󱠚"}.mdi-blender-software:before{content:"󰂫"}.mdi-blinds:before{content:"󰂬"}.mdi-blinds-horizontal:before{content:"󱨫"}.mdi-blinds-horizontal-closed:before{content:"󱨬"}.mdi-blinds-open:before{content:"󱀑"}.mdi-blinds-vertical:before{content:"󱨭"}.mdi-blinds-vertical-closed:before{content:"󱨮"}.mdi-block-helper:before{content:"󰂭"}.mdi-blood-bag:before{content:"󰳬"}.mdi-bluetooth:before{content:"󰂯"}.mdi-bluetooth-audio:before{content:"󰂰"}.mdi-bluetooth-connect:before{content:"󰂱"}.mdi-bluetooth-off:before{content:"󰂲"}.mdi-bluetooth-settings:before{content:"󰂳"}.mdi-bluetooth-transfer:before{content:"󰂴"}.mdi-blur:before{content:"󰂵"}.mdi-blur-linear:before{content:"󰂶"}.mdi-blur-off:before{content:"󰂷"}.mdi-blur-radial:before{content:"󰂸"}.mdi-bolt:before{content:"󰶳"}.mdi-bomb:before{content:"󰚑"}.mdi-bomb-off:before{content:"󰛅"}.mdi-bone:before{content:"󰂹"}.mdi-bone-off:before{content:"󱧠"}.mdi-book:before{content:"󰂺"}.mdi-book-account:before{content:"󱎭"}.mdi-book-account-outline:before{content:"󱎮"}.mdi-book-alert:before{content:"󱙼"}.mdi-book-alert-outline:before{content:"󱙽"}.mdi-book-alphabet:before{content:"󰘝"}.mdi-book-arrow-down:before{content:"󱙾"}.mdi-book-arrow-down-outline:before{content:"󱙿"}.mdi-book-arrow-left:before{content:"󱚀"}.mdi-book-arrow-left-outline:before{content:"󱚁"}.mdi-book-arrow-right:before{content:"󱚂"}.mdi-book-arrow-right-outline:before{content:"󱚃"}.mdi-book-arrow-up:before{content:"󱚄"}.mdi-book-arrow-up-outline:before{content:"󱚅"}.mdi-book-cancel:before{content:"󱚆"}.mdi-book-cancel-outline:before{content:"󱚇"}.mdi-book-check:before{content:"󱓳"}.mdi-book-check-outline:before{content:"󱓴"}.mdi-book-clock:before{content:"󱚈"}.mdi-book-clock-outline:before{content:"󱚉"}.mdi-book-cog:before{content:"󱚊"}.mdi-book-cog-outline:before{content:"󱚋"}.mdi-book-cross:before{content:"󰂢"}.mdi-book-edit:before{content:"󱚌"}.mdi-book-edit-outline:before{content:"󱚍"}.mdi-book-education:before{content:"󱛉"}.mdi-book-education-outline:before{content:"󱛊"}.mdi-book-heart:before{content:"󱨝"}.mdi-book-heart-outline:before{content:"󱨞"}.mdi-book-information-variant:before{content:"󱁯"}.mdi-book-lock:before{content:"󰞚"}.mdi-book-lock-open:before{content:"󰞛"}.mdi-book-lock-open-outline:before{content:"󱚎"}.mdi-book-lock-outline:before{content:"󱚏"}.mdi-book-marker:before{content:"󱚐"}.mdi-book-marker-outline:before{content:"󱚑"}.mdi-book-minus:before{content:"󰗙"}.mdi-book-minus-multiple:before{content:"󰪔"}.mdi-book-minus-multiple-outline:before{content:"󰤋"}.mdi-book-minus-outline:before{content:"󱚒"}.mdi-book-multiple:before{content:"󰂻"}.mdi-book-multiple-outline:before{content:"󰐶"}.mdi-book-music:before{content:"󰁧"}.mdi-book-music-outline:before{content:"󱚓"}.mdi-book-off:before{content:"󱚔"}.mdi-book-off-outline:before{content:"󱚕"}.mdi-book-open:before{content:"󰂽"}.mdi-book-open-blank-variant:before{content:"󰂾"}.mdi-book-open-outline:before{content:"󰭣"}.mdi-book-open-page-variant:before{content:"󰗚"}.mdi-book-open-page-variant-outline:before{content:"󱗖"}.mdi-book-open-variant:before{content:"󱓷"}.mdi-book-outline:before{content:"󰭤"}.mdi-book-play:before{content:"󰺂"}.mdi-book-play-outline:before{content:"󰺃"}.mdi-book-plus:before{content:"󰗛"}.mdi-book-plus-multiple:before{content:"󰪕"}.mdi-book-plus-multiple-outline:before{content:"󰫞"}.mdi-book-plus-outline:before{content:"󱚖"}.mdi-book-refresh:before{content:"󱚗"}.mdi-book-refresh-outline:before{content:"󱚘"}.mdi-book-remove:before{content:"󰪗"}.mdi-book-remove-multiple:before{content:"󰪖"}.mdi-book-remove-multiple-outline:before{content:"󰓊"}.mdi-book-remove-outline:before{content:"󱚙"}.mdi-book-search:before{content:"󰺄"}.mdi-book-search-outline:before{content:"󰺅"}.mdi-book-settings:before{content:"󱚚"}.mdi-book-settings-outline:before{content:"󱚛"}.mdi-book-sync:before{content:"󱚜"}.mdi-book-sync-outline:before{content:"󱛈"}.mdi-book-variant:before{content:"󰂿"}.mdi-bookmark:before{content:"󰃀"}.mdi-bookmark-box:before{content:"󱭵"}.mdi-bookmark-box-multiple:before{content:"󱥬"}.mdi-bookmark-box-multiple-outline:before{content:"󱥭"}.mdi-bookmark-box-outline:before{content:"󱭶"}.mdi-bookmark-check:before{content:"󰃁"}.mdi-bookmark-check-outline:before{content:"󱍻"}.mdi-bookmark-minus:before{content:"󰧌"}.mdi-bookmark-minus-outline:before{content:"󰧍"}.mdi-bookmark-multiple:before{content:"󰸕"}.mdi-bookmark-multiple-outline:before{content:"󰸖"}.mdi-bookmark-music:before{content:"󰃂"}.mdi-bookmark-music-outline:before{content:"󱍹"}.mdi-bookmark-off:before{content:"󰧎"}.mdi-bookmark-off-outline:before{content:"󰧏"}.mdi-bookmark-outline:before{content:"󰃃"}.mdi-bookmark-plus:before{content:"󰃅"}.mdi-bookmark-plus-outline:before{content:"󰃄"}.mdi-bookmark-remove:before{content:"󰃆"}.mdi-bookmark-remove-outline:before{content:"󱍺"}.mdi-bookshelf:before{content:"󱉟"}.mdi-boom-gate:before{content:"󰺆"}.mdi-boom-gate-alert:before{content:"󰺇"}.mdi-boom-gate-alert-outline:before{content:"󰺈"}.mdi-boom-gate-arrow-down:before{content:"󰺉"}.mdi-boom-gate-arrow-down-outline:before{content:"󰺊"}.mdi-boom-gate-arrow-up:before{content:"󰺌"}.mdi-boom-gate-arrow-up-outline:before{content:"󰺍"}.mdi-boom-gate-outline:before{content:"󰺋"}.mdi-boom-gate-up:before{content:"󱟹"}.mdi-boom-gate-up-outline:before{content:"󱟺"}.mdi-boombox:before{content:"󰗜"}.mdi-boomerang:before{content:"󱃏"}.mdi-bootstrap:before{content:"󰛆"}.mdi-border-all:before{content:"󰃇"}.mdi-border-all-variant:before{content:"󰢡"}.mdi-border-bottom:before{content:"󰃈"}.mdi-border-bottom-variant:before{content:"󰢢"}.mdi-border-color:before{content:"󰃉"}.mdi-border-horizontal:before{content:"󰃊"}.mdi-border-inside:before{content:"󰃋"}.mdi-border-left:before{content:"󰃌"}.mdi-border-left-variant:before{content:"󰢣"}.mdi-border-none:before{content:"󰃍"}.mdi-border-none-variant:before{content:"󰢤"}.mdi-border-outside:before{content:"󰃎"}.mdi-border-radius:before{content:"󱫴"}.mdi-border-right:before{content:"󰃏"}.mdi-border-right-variant:before{content:"󰢥"}.mdi-border-style:before{content:"󰃐"}.mdi-border-top:before{content:"󰃑"}.mdi-border-top-variant:before{content:"󰢦"}.mdi-border-vertical:before{content:"󰃒"}.mdi-bottle-soda:before{content:"󱁰"}.mdi-bottle-soda-classic:before{content:"󱁱"}.mdi-bottle-soda-classic-outline:before{content:"󱍣"}.mdi-bottle-soda-outline:before{content:"󱁲"}.mdi-bottle-tonic:before{content:"󱄮"}.mdi-bottle-tonic-outline:before{content:"󱄯"}.mdi-bottle-tonic-plus:before{content:"󱄰"}.mdi-bottle-tonic-plus-outline:before{content:"󱄱"}.mdi-bottle-tonic-skull:before{content:"󱄲"}.mdi-bottle-tonic-skull-outline:before{content:"󱄳"}.mdi-bottle-wine:before{content:"󰡔"}.mdi-bottle-wine-outline:before{content:"󱌐"}.mdi-bow-arrow:before{content:"󱡁"}.mdi-bow-tie:before{content:"󰙸"}.mdi-bowl:before{content:"󰊎"}.mdi-bowl-mix:before{content:"󰘗"}.mdi-bowl-mix-outline:before{content:"󰋤"}.mdi-bowl-outline:before{content:"󰊩"}.mdi-bowling:before{content:"󰃓"}.mdi-box:before{content:"󰃔"}.mdi-box-cutter:before{content:"󰃕"}.mdi-box-cutter-off:before{content:"󰭊"}.mdi-box-shadow:before{content:"󰘷"}.mdi-boxing-glove:before{content:"󰭥"}.mdi-braille:before{content:"󰧐"}.mdi-brain:before{content:"󰧑"}.mdi-bread-slice:before{content:"󰳮"}.mdi-bread-slice-outline:before{content:"󰳯"}.mdi-bridge:before{content:"󰘘"}.mdi-briefcase:before{content:"󰃖"}.mdi-briefcase-account:before{content:"󰳰"}.mdi-briefcase-account-outline:before{content:"󰳱"}.mdi-briefcase-arrow-left-right:before{content:"󱪍"}.mdi-briefcase-arrow-left-right-outline:before{content:"󱪎"}.mdi-briefcase-arrow-up-down:before{content:"󱪏"}.mdi-briefcase-arrow-up-down-outline:before{content:"󱪐"}.mdi-briefcase-check:before{content:"󰃗"}.mdi-briefcase-check-outline:before{content:"󱌞"}.mdi-briefcase-clock:before{content:"󱃐"}.mdi-briefcase-clock-outline:before{content:"󱃑"}.mdi-briefcase-download:before{content:"󰃘"}.mdi-briefcase-download-outline:before{content:"󰰽"}.mdi-briefcase-edit:before{content:"󰪘"}.mdi-briefcase-edit-outline:before{content:"󰰾"}.mdi-briefcase-eye:before{content:"󱟙"}.mdi-briefcase-eye-outline:before{content:"󱟚"}.mdi-briefcase-minus:before{content:"󰨪"}.mdi-briefcase-minus-outline:before{content:"󰰿"}.mdi-briefcase-off:before{content:"󱙘"}.mdi-briefcase-off-outline:before{content:"󱙙"}.mdi-briefcase-outline:before{content:"󰠔"}.mdi-briefcase-plus:before{content:"󰨫"}.mdi-briefcase-plus-outline:before{content:"󰱀"}.mdi-briefcase-remove:before{content:"󰨬"}.mdi-briefcase-remove-outline:before{content:"󰱁"}.mdi-briefcase-search:before{content:"󰨭"}.mdi-briefcase-search-outline:before{content:"󰱂"}.mdi-briefcase-upload:before{content:"󰃙"}.mdi-briefcase-upload-outline:before{content:"󰱃"}.mdi-briefcase-variant:before{content:"󱒔"}.mdi-briefcase-variant-off:before{content:"󱙚"}.mdi-briefcase-variant-off-outline:before{content:"󱙛"}.mdi-briefcase-variant-outline:before{content:"󱒕"}.mdi-brightness-1:before{content:"󰃚"}.mdi-brightness-2:before{content:"󰃛"}.mdi-brightness-3:before{content:"󰃜"}.mdi-brightness-4:before{content:"󰃝"}.mdi-brightness-5:before{content:"󰃞"}.mdi-brightness-6:before{content:"󰃟"}.mdi-brightness-7:before{content:"󰃠"}.mdi-brightness-auto:before{content:"󰃡"}.mdi-brightness-percent:before{content:"󰳲"}.mdi-broadcast:before{content:"󱜠"}.mdi-broadcast-off:before{content:"󱜡"}.mdi-broom:before{content:"󰃢"}.mdi-brush:before{content:"󰃣"}.mdi-brush-off:before{content:"󱝱"}.mdi-brush-outline:before{content:"󱨍"}.mdi-brush-variant:before{content:"󱠓"}.mdi-bucket:before{content:"󱐕"}.mdi-bucket-outline:before{content:"󱐖"}.mdi-buffet:before{content:"󰕸"}.mdi-bug:before{content:"󰃤"}.mdi-bug-check:before{content:"󰨮"}.mdi-bug-check-outline:before{content:"󰨯"}.mdi-bug-outline:before{content:"󰨰"}.mdi-bug-pause:before{content:"󱫵"}.mdi-bug-pause-outline:before{content:"󱫶"}.mdi-bug-play:before{content:"󱫷"}.mdi-bug-play-outline:before{content:"󱫸"}.mdi-bug-stop:before{content:"󱫹"}.mdi-bug-stop-outline:before{content:"󱫺"}.mdi-bugle:before{content:"󰶴"}.mdi-bulkhead-light:before{content:"󱨯"}.mdi-bulldozer:before{content:"󰬢"}.mdi-bullet:before{content:"󰳳"}.mdi-bulletin-board:before{content:"󰃥"}.mdi-bullhorn:before{content:"󰃦"}.mdi-bullhorn-outline:before{content:"󰬣"}.mdi-bullhorn-variant:before{content:"󱥮"}.mdi-bullhorn-variant-outline:before{content:"󱥯"}.mdi-bullseye:before{content:"󰗝"}.mdi-bullseye-arrow:before{content:"󰣉"}.mdi-bulma:before{content:"󱋧"}.mdi-bunk-bed:before{content:"󱌂"}.mdi-bunk-bed-outline:before{content:"󰂗"}.mdi-bus:before{content:"󰃧"}.mdi-bus-alert:before{content:"󰪙"}.mdi-bus-articulated-end:before{content:"󰞜"}.mdi-bus-articulated-front:before{content:"󰞝"}.mdi-bus-clock:before{content:"󰣊"}.mdi-bus-double-decker:before{content:"󰞞"}.mdi-bus-electric:before{content:"󱤝"}.mdi-bus-marker:before{content:"󱈒"}.mdi-bus-multiple:before{content:"󰼿"}.mdi-bus-school:before{content:"󰞟"}.mdi-bus-side:before{content:"󰞠"}.mdi-bus-sign:before{content:"󱳁"}.mdi-bus-stop:before{content:"󱀒"}.mdi-bus-stop-covered:before{content:"󱀓"}.mdi-bus-stop-uncovered:before{content:"󱀔"}.mdi-bus-wrench:before{content:"󱳂"}.mdi-butterfly:before{content:"󱖉"}.mdi-butterfly-outline:before{content:"󱖊"}.mdi-button-cursor:before{content:"󱭏"}.mdi-button-pointer:before{content:"󱭐"}.mdi-cabin-a-frame:before{content:"󱢌"}.mdi-cable-data:before{content:"󱎔"}.mdi-cached:before{content:"󰃨"}.mdi-cactus:before{content:"󰶵"}.mdi-cake:before{content:"󰃩"}.mdi-cake-layered:before{content:"󰃪"}.mdi-cake-variant:before{content:"󰃫"}.mdi-cake-variant-outline:before{content:"󱟰"}.mdi-calculator:before{content:"󰃬"}.mdi-calculator-variant:before{content:"󰪚"}.mdi-calculator-variant-outline:before{content:"󱖦"}.mdi-calendar:before{content:"󰃭"}.mdi-calendar-account:before{content:"󰻗"}.mdi-calendar-account-outline:before{content:"󰻘"}.mdi-calendar-alert:before{content:"󰨱"}.mdi-calendar-alert-outline:before{content:"󱭢"}.mdi-calendar-arrow-left:before{content:"󱄴"}.mdi-calendar-arrow-right:before{content:"󱄵"}.mdi-calendar-badge:before{content:"󱮝"}.mdi-calendar-badge-outline:before{content:"󱮞"}.mdi-calendar-blank:before{content:"󰃮"}.mdi-calendar-blank-multiple:before{content:"󱁳"}.mdi-calendar-blank-outline:before{content:"󰭦"}.mdi-calendar-check:before{content:"󰃯"}.mdi-calendar-check-outline:before{content:"󰱄"}.mdi-calendar-clock:before{content:"󰃰"}.mdi-calendar-clock-outline:before{content:"󱛡"}.mdi-calendar-collapse-horizontal:before{content:"󱢝"}.mdi-calendar-collapse-horizontal-outline:before{content:"󱭣"}.mdi-calendar-cursor:before{content:"󱕻"}.mdi-calendar-cursor-outline:before{content:"󱭤"}.mdi-calendar-edit:before{content:"󰢧"}.mdi-calendar-edit-outline:before{content:"󱭥"}.mdi-calendar-end:before{content:"󱙬"}.mdi-calendar-end-outline:before{content:"󱭦"}.mdi-calendar-expand-horizontal:before{content:"󱢞"}.mdi-calendar-expand-horizontal-outline:before{content:"󱭧"}.mdi-calendar-export:before{content:"󰬤"}.mdi-calendar-export-outline:before{content:"󱭨"}.mdi-calendar-filter:before{content:"󱨲"}.mdi-calendar-filter-outline:before{content:"󱨳"}.mdi-calendar-heart:before{content:"󰧒"}.mdi-calendar-heart-outline:before{content:"󱭩"}.mdi-calendar-import:before{content:"󰬥"}.mdi-calendar-import-outline:before{content:"󱭪"}.mdi-calendar-lock:before{content:"󱙁"}.mdi-calendar-lock-open:before{content:"󱭛"}.mdi-calendar-lock-open-outline:before{content:"󱭜"}.mdi-calendar-lock-outline:before{content:"󱙂"}.mdi-calendar-minus:before{content:"󰵜"}.mdi-calendar-minus-outline:before{content:"󱭫"}.mdi-calendar-month:before{content:"󰸗"}.mdi-calendar-month-outline:before{content:"󰸘"}.mdi-calendar-multiple:before{content:"󰃱"}.mdi-calendar-multiple-check:before{content:"󰃲"}.mdi-calendar-multiselect:before{content:"󰨲"}.mdi-calendar-multiselect-outline:before{content:"󱭕"}.mdi-calendar-outline:before{content:"󰭧"}.mdi-calendar-plus:before{content:"󰃳"}.mdi-calendar-plus-outline:before{content:"󱭬"}.mdi-calendar-question:before{content:"󰚒"}.mdi-calendar-question-outline:before{content:"󱭭"}.mdi-calendar-range:before{content:"󰙹"}.mdi-calendar-range-outline:before{content:"󰭨"}.mdi-calendar-refresh:before{content:"󰇡"}.mdi-calendar-refresh-outline:before{content:"󰈃"}.mdi-calendar-remove:before{content:"󰃴"}.mdi-calendar-remove-outline:before{content:"󰱅"}.mdi-calendar-search:before{content:"󰥌"}.mdi-calendar-search-outline:before{content:"󱭮"}.mdi-calendar-star:before{content:"󰧓"}.mdi-calendar-star-four-points:before{content:"󱰟"}.mdi-calendar-star-outline:before{content:"󱭓"}.mdi-calendar-start:before{content:"󱙭"}.mdi-calendar-start-outline:before{content:"󱭯"}.mdi-calendar-sync:before{content:"󰺎"}.mdi-calendar-sync-outline:before{content:"󰺏"}.mdi-calendar-text:before{content:"󰃵"}.mdi-calendar-text-outline:before{content:"󰱆"}.mdi-calendar-today:before{content:"󰃶"}.mdi-calendar-today-outline:before{content:"󱨰"}.mdi-calendar-week:before{content:"󰨳"}.mdi-calendar-week-begin:before{content:"󰨴"}.mdi-calendar-week-begin-outline:before{content:"󱨱"}.mdi-calendar-week-outline:before{content:"󱨴"}.mdi-calendar-weekend:before{content:"󰻙"}.mdi-calendar-weekend-outline:before{content:"󰻚"}.mdi-call-made:before{content:"󰃷"}.mdi-call-merge:before{content:"󰃸"}.mdi-call-missed:before{content:"󰃹"}.mdi-call-received:before{content:"󰃺"}.mdi-call-split:before{content:"󰃻"}.mdi-camcorder:before{content:"󰃼"}.mdi-camcorder-off:before{content:"󰃿"}.mdi-camera:before{content:"󰄀"}.mdi-camera-account:before{content:"󰣋"}.mdi-camera-burst:before{content:"󰚓"}.mdi-camera-control:before{content:"󰭩"}.mdi-camera-document:before{content:"󱡱"}.mdi-camera-document-off:before{content:"󱡲"}.mdi-camera-enhance:before{content:"󰄁"}.mdi-camera-enhance-outline:before{content:"󰭪"}.mdi-camera-flip:before{content:"󱗙"}.mdi-camera-flip-outline:before{content:"󱗚"}.mdi-camera-front:before{content:"󰄂"}.mdi-camera-front-variant:before{content:"󰄃"}.mdi-camera-gopro:before{content:"󰞡"}.mdi-camera-image:before{content:"󰣌"}.mdi-camera-iris:before{content:"󰄄"}.mdi-camera-lock:before{content:"󱨔"}.mdi-camera-lock-open:before{content:"󱰍"}.mdi-camera-lock-open-outline:before{content:"󱰎"}.mdi-camera-lock-outline:before{content:"󱨕"}.mdi-camera-marker:before{content:"󱦧"}.mdi-camera-marker-outline:before{content:"󱦨"}.mdi-camera-metering-center:before{content:"󰞢"}.mdi-camera-metering-matrix:before{content:"󰞣"}.mdi-camera-metering-partial:before{content:"󰞤"}.mdi-camera-metering-spot:before{content:"󰞥"}.mdi-camera-off:before{content:"󰗟"}.mdi-camera-off-outline:before{content:"󱦿"}.mdi-camera-outline:before{content:"󰵝"}.mdi-camera-party-mode:before{content:"󰄅"}.mdi-camera-plus:before{content:"󰻛"}.mdi-camera-plus-outline:before{content:"󰻜"}.mdi-camera-rear:before{content:"󰄆"}.mdi-camera-rear-variant:before{content:"󰄇"}.mdi-camera-retake:before{content:"󰸙"}.mdi-camera-retake-outline:before{content:"󰸚"}.mdi-camera-switch:before{content:"󰄈"}.mdi-camera-switch-outline:before{content:"󰡊"}.mdi-camera-timer:before{content:"󰄉"}.mdi-camera-wireless:before{content:"󰶶"}.mdi-camera-wireless-outline:before{content:"󰶷"}.mdi-campfire:before{content:"󰻝"}.mdi-cancel:before{content:"󰜺"}.mdi-candelabra:before{content:"󱟒"}.mdi-candelabra-fire:before{content:"󱟓"}.mdi-candle:before{content:"󰗢"}.mdi-candy:before{content:"󱥰"}.mdi-candy-off:before{content:"󱥱"}.mdi-candy-off-outline:before{content:"󱥲"}.mdi-candy-outline:before{content:"󱥳"}.mdi-candycane:before{content:"󰄊"}.mdi-cannabis:before{content:"󰞦"}.mdi-cannabis-off:before{content:"󱙮"}.mdi-caps-lock:before{content:"󰪛"}.mdi-car:before{content:"󰄋"}.mdi-car-2-plus:before{content:"󱀕"}.mdi-car-3-plus:before{content:"󱀖"}.mdi-car-arrow-left:before{content:"󱎲"}.mdi-car-arrow-right:before{content:"󱎳"}.mdi-car-back:before{content:"󰸛"}.mdi-car-battery:before{content:"󰄌"}.mdi-car-brake-abs:before{content:"󰱇"}.mdi-car-brake-alert:before{content:"󰱈"}.mdi-car-brake-fluid-level:before{content:"󱤉"}.mdi-car-brake-hold:before{content:"󰵞"}.mdi-car-brake-low-pressure:before{content:"󱤊"}.mdi-car-brake-parking:before{content:"󰵟"}.mdi-car-brake-retarder:before{content:"󱀗"}.mdi-car-brake-temperature:before{content:"󱤋"}.mdi-car-brake-worn-linings:before{content:"󱤌"}.mdi-car-child-seat:before{content:"󰾣"}.mdi-car-clock:before{content:"󱥴"}.mdi-car-clutch:before{content:"󱀘"}.mdi-car-cog:before{content:"󱏌"}.mdi-car-connected:before{content:"󰄍"}.mdi-car-convertible:before{content:"󰞧"}.mdi-car-coolant-level:before{content:"󱀙"}.mdi-car-cruise-control:before{content:"󰵠"}.mdi-car-defrost-front:before{content:"󰵡"}.mdi-car-defrost-rear:before{content:"󰵢"}.mdi-car-door:before{content:"󰭫"}.mdi-car-door-lock:before{content:"󱂝"}.mdi-car-door-lock-open:before{content:"󱲁"}.mdi-car-electric:before{content:"󰭬"}.mdi-car-electric-outline:before{content:"󱖵"}.mdi-car-emergency:before{content:"󱘏"}.mdi-car-esp:before{content:"󰱉"}.mdi-car-estate:before{content:"󰞨"}.mdi-car-hatchback:before{content:"󰞩"}.mdi-car-info:before{content:"󱆾"}.mdi-car-key:before{content:"󰭭"}.mdi-car-lifted-pickup:before{content:"󱔭"}.mdi-car-light-alert:before{content:"󱤍"}.mdi-car-light-dimmed:before{content:"󰱊"}.mdi-car-light-fog:before{content:"󰱋"}.mdi-car-light-high:before{content:"󰱌"}.mdi-car-limousine:before{content:"󰣍"}.mdi-car-multiple:before{content:"󰭮"}.mdi-car-off:before{content:"󰸜"}.mdi-car-outline:before{content:"󱓭"}.mdi-car-parking-lights:before{content:"󰵣"}.mdi-car-pickup:before{content:"󰞪"}.mdi-car-search:before{content:"󱮍"}.mdi-car-search-outline:before{content:"󱮎"}.mdi-car-seat:before{content:"󰾤"}.mdi-car-seat-cooler:before{content:"󰾥"}.mdi-car-seat-heater:before{content:"󰾦"}.mdi-car-select:before{content:"󱡹"}.mdi-car-settings:before{content:"󱏍"}.mdi-car-shift-pattern:before{content:"󰽀"}.mdi-car-side:before{content:"󰞫"}.mdi-car-speed-limiter:before{content:"󱤎"}.mdi-car-sports:before{content:"󰞬"}.mdi-car-tire-alert:before{content:"󰱍"}.mdi-car-traction-control:before{content:"󰵤"}.mdi-car-turbocharger:before{content:"󱀚"}.mdi-car-wash:before{content:"󰄎"}.mdi-car-windshield:before{content:"󱀛"}.mdi-car-windshield-outline:before{content:"󱀜"}.mdi-car-wireless:before{content:"󱡸"}.mdi-car-wrench:before{content:"󱠔"}.mdi-carabiner:before{content:"󱓀"}.mdi-caravan:before{content:"󰞭"}.mdi-card:before{content:"󰭯"}.mdi-card-account-details:before{content:"󰗒"}.mdi-card-account-details-outline:before{content:"󰶫"}.mdi-card-account-details-star:before{content:"󰊣"}.mdi-card-account-details-star-outline:before{content:"󰛛"}.mdi-card-account-mail:before{content:"󰆎"}.mdi-card-account-mail-outline:before{content:"󰺘"}.mdi-card-account-phone:before{content:"󰺙"}.mdi-card-account-phone-outline:before{content:"󰺚"}.mdi-card-bulleted:before{content:"󰭰"}.mdi-card-bulleted-off:before{content:"󰭱"}.mdi-card-bulleted-off-outline:before{content:"󰭲"}.mdi-card-bulleted-outline:before{content:"󰭳"}.mdi-card-bulleted-settings:before{content:"󰭴"}.mdi-card-bulleted-settings-outline:before{content:"󰭵"}.mdi-card-minus:before{content:"󱘀"}.mdi-card-minus-outline:before{content:"󱘁"}.mdi-card-multiple:before{content:"󱟱"}.mdi-card-multiple-outline:before{content:"󱟲"}.mdi-card-off:before{content:"󱘂"}.mdi-card-off-outline:before{content:"󱘃"}.mdi-card-outline:before{content:"󰭶"}.mdi-card-plus:before{content:"󱇿"}.mdi-card-plus-outline:before{content:"󱈀"}.mdi-card-remove:before{content:"󱘄"}.mdi-card-remove-outline:before{content:"󱘅"}.mdi-card-search:before{content:"󱁴"}.mdi-card-search-outline:before{content:"󱁵"}.mdi-card-text:before{content:"󰭷"}.mdi-card-text-outline:before{content:"󰭸"}.mdi-cards:before{content:"󰘸"}.mdi-cards-club:before{content:"󰣎"}.mdi-cards-club-outline:before{content:"󱢟"}.mdi-cards-diamond:before{content:"󰣏"}.mdi-cards-diamond-outline:before{content:"󱀝"}.mdi-cards-heart:before{content:"󰣐"}.mdi-cards-heart-outline:before{content:"󱢠"}.mdi-cards-outline:before{content:"󰘹"}.mdi-cards-playing:before{content:"󱢡"}.mdi-cards-playing-club:before{content:"󱢢"}.mdi-cards-playing-club-multiple:before{content:"󱢣"}.mdi-cards-playing-club-multiple-outline:before{content:"󱢤"}.mdi-cards-playing-club-outline:before{content:"󱢥"}.mdi-cards-playing-diamond:before{content:"󱢦"}.mdi-cards-playing-diamond-multiple:before{content:"󱢧"}.mdi-cards-playing-diamond-multiple-outline:before{content:"󱢨"}.mdi-cards-playing-diamond-outline:before{content:"󱢩"}.mdi-cards-playing-heart:before{content:"󱢪"}.mdi-cards-playing-heart-multiple:before{content:"󱢫"}.mdi-cards-playing-heart-multiple-outline:before{content:"󱢬"}.mdi-cards-playing-heart-outline:before{content:"󱢭"}.mdi-cards-playing-outline:before{content:"󰘺"}.mdi-cards-playing-spade:before{content:"󱢮"}.mdi-cards-playing-spade-multiple:before{content:"󱢯"}.mdi-cards-playing-spade-multiple-outline:before{content:"󱢰"}.mdi-cards-playing-spade-outline:before{content:"󱢱"}.mdi-cards-spade:before{content:"󰣑"}.mdi-cards-spade-outline:before{content:"󱢲"}.mdi-cards-variant:before{content:"󰛇"}.mdi-carrot:before{content:"󰄏"}.mdi-cart:before{content:"󰄐"}.mdi-cart-arrow-down:before{content:"󰵦"}.mdi-cart-arrow-right:before{content:"󰱎"}.mdi-cart-arrow-up:before{content:"󰵧"}.mdi-cart-check:before{content:"󱗪"}.mdi-cart-heart:before{content:"󱣠"}.mdi-cart-minus:before{content:"󰵨"}.mdi-cart-off:before{content:"󰙫"}.mdi-cart-outline:before{content:"󰄑"}.mdi-cart-percent:before{content:"󱮮"}.mdi-cart-plus:before{content:"󰄒"}.mdi-cart-remove:before{content:"󰵩"}.mdi-cart-variant:before{content:"󱗫"}.mdi-case-sensitive-alt:before{content:"󰄓"}.mdi-cash:before{content:"󰄔"}.mdi-cash-100:before{content:"󰄕"}.mdi-cash-check:before{content:"󱓮"}.mdi-cash-clock:before{content:"󱪑"}.mdi-cash-edit:before{content:"󱲫"}.mdi-cash-fast:before{content:"󱡜"}.mdi-cash-lock:before{content:"󱓪"}.mdi-cash-lock-open:before{content:"󱓫"}.mdi-cash-marker:before{content:"󰶸"}.mdi-cash-minus:before{content:"󱉠"}.mdi-cash-multiple:before{content:"󰄖"}.mdi-cash-off:before{content:"󱱹"}.mdi-cash-plus:before{content:"󱉡"}.mdi-cash-refund:before{content:"󰪜"}.mdi-cash-register:before{content:"󰳴"}.mdi-cash-remove:before{content:"󱉢"}.mdi-cash-sync:before{content:"󱪒"}.mdi-cassette:before{content:"󰧔"}.mdi-cast:before{content:"󰄘"}.mdi-cast-audio:before{content:"󱀞"}.mdi-cast-audio-variant:before{content:"󱝉"}.mdi-cast-connected:before{content:"󰄙"}.mdi-cast-education:before{content:"󰸝"}.mdi-cast-off:before{content:"󰞊"}.mdi-cast-variant:before{content:"󰀟"}.mdi-castle:before{content:"󰄚"}.mdi-cat:before{content:"󰄛"}.mdi-cctv:before{content:"󰞮"}.mdi-cctv-off:before{content:"󱡟"}.mdi-ceiling-fan:before{content:"󱞗"}.mdi-ceiling-fan-light:before{content:"󱞘"}.mdi-ceiling-light:before{content:"󰝩"}.mdi-ceiling-light-multiple:before{content:"󱣝"}.mdi-ceiling-light-multiple-outline:before{content:"󱣞"}.mdi-ceiling-light-outline:before{content:"󱟇"}.mdi-cellphone:before{content:"󰄜"}.mdi-cellphone-arrow-down:before{content:"󰧕"}.mdi-cellphone-arrow-down-variant:before{content:"󱧅"}.mdi-cellphone-basic:before{content:"󰄞"}.mdi-cellphone-charging:before{content:"󱎗"}.mdi-cellphone-check:before{content:"󱟽"}.mdi-cellphone-cog:before{content:"󰥑"}.mdi-cellphone-dock:before{content:"󰄟"}.mdi-cellphone-information:before{content:"󰽁"}.mdi-cellphone-key:before{content:"󰥎"}.mdi-cellphone-link:before{content:"󰄡"}.mdi-cellphone-link-off:before{content:"󰄢"}.mdi-cellphone-lock:before{content:"󰥏"}.mdi-cellphone-marker:before{content:"󱠺"}.mdi-cellphone-message:before{content:"󰣓"}.mdi-cellphone-message-off:before{content:"󱃒"}.mdi-cellphone-nfc:before{content:"󰺐"}.mdi-cellphone-nfc-off:before{content:"󱋘"}.mdi-cellphone-off:before{content:"󰥐"}.mdi-cellphone-play:before{content:"󱀟"}.mdi-cellphone-remove:before{content:"󰥍"}.mdi-cellphone-screenshot:before{content:"󰨵"}.mdi-cellphone-settings:before{content:"󰄣"}.mdi-cellphone-sound:before{content:"󰥒"}.mdi-cellphone-text:before{content:"󰣒"}.mdi-cellphone-wireless:before{content:"󰠕"}.mdi-centos:before{content:"󱄚"}.mdi-certificate:before{content:"󰄤"}.mdi-certificate-outline:before{content:"󱆈"}.mdi-chair-rolling:before{content:"󰽈"}.mdi-chair-school:before{content:"󰄥"}.mdi-chandelier:before{content:"󱞓"}.mdi-charity:before{content:"󰱏"}.mdi-charity-search:before{content:"󱲂"}.mdi-chart-arc:before{content:"󰄦"}.mdi-chart-areaspline:before{content:"󰄧"}.mdi-chart-areaspline-variant:before{content:"󰺑"}.mdi-chart-bar:before{content:"󰄨"}.mdi-chart-bar-stacked:before{content:"󰝪"}.mdi-chart-bell-curve:before{content:"󰱐"}.mdi-chart-bell-curve-cumulative:before{content:"󰾧"}.mdi-chart-box:before{content:"󱕍"}.mdi-chart-box-outline:before{content:"󱕎"}.mdi-chart-box-plus-outline:before{content:"󱕏"}.mdi-chart-bubble:before{content:"󰗣"}.mdi-chart-donut:before{content:"󰞯"}.mdi-chart-donut-variant:before{content:"󰞰"}.mdi-chart-gantt:before{content:"󰙬"}.mdi-chart-histogram:before{content:"󰄩"}.mdi-chart-line:before{content:"󰄪"}.mdi-chart-line-stacked:before{content:"󰝫"}.mdi-chart-line-variant:before{content:"󰞱"}.mdi-chart-multiline:before{content:"󰣔"}.mdi-chart-multiple:before{content:"󱈓"}.mdi-chart-pie:before{content:"󰄫"}.mdi-chart-pie-outline:before{content:"󱯟"}.mdi-chart-ppf:before{content:"󱎀"}.mdi-chart-sankey:before{content:"󱇟"}.mdi-chart-sankey-variant:before{content:"󱇠"}.mdi-chart-scatter-plot:before{content:"󰺒"}.mdi-chart-scatter-plot-hexbin:before{content:"󰙭"}.mdi-chart-timeline:before{content:"󰙮"}.mdi-chart-timeline-variant:before{content:"󰺓"}.mdi-chart-timeline-variant-shimmer:before{content:"󱖶"}.mdi-chart-tree:before{content:"󰺔"}.mdi-chart-waterfall:before{content:"󱤘"}.mdi-chat:before{content:"󰭹"}.mdi-chat-alert:before{content:"󰭺"}.mdi-chat-alert-outline:before{content:"󱋉"}.mdi-chat-minus:before{content:"󱐐"}.mdi-chat-minus-outline:before{content:"󱐓"}.mdi-chat-outline:before{content:"󰻞"}.mdi-chat-plus:before{content:"󱐏"}.mdi-chat-plus-outline:before{content:"󱐒"}.mdi-chat-processing:before{content:"󰭻"}.mdi-chat-processing-outline:before{content:"󱋊"}.mdi-chat-question:before{content:"󱜸"}.mdi-chat-question-outline:before{content:"󱜹"}.mdi-chat-remove:before{content:"󱐑"}.mdi-chat-remove-outline:before{content:"󱐔"}.mdi-chat-sleep:before{content:"󱋑"}.mdi-chat-sleep-outline:before{content:"󱋒"}.mdi-check:before{content:"󰄬"}.mdi-check-all:before{content:"󰄭"}.mdi-check-bold:before{content:"󰸞"}.mdi-check-circle:before{content:"󰗠"}.mdi-check-circle-outline:before{content:"󰗡"}.mdi-check-decagram:before{content:"󰞑"}.mdi-check-decagram-outline:before{content:"󱝀"}.mdi-check-network:before{content:"󰱓"}.mdi-check-network-outline:before{content:"󰱔"}.mdi-check-outline:before{content:"󰡕"}.mdi-check-underline:before{content:"󰸟"}.mdi-check-underline-circle:before{content:"󰸠"}.mdi-check-underline-circle-outline:before{content:"󰸡"}.mdi-checkbook:before{content:"󰪝"}.mdi-checkbook-arrow-left:before{content:"󱰝"}.mdi-checkbook-arrow-right:before{content:"󱰞"}.mdi-checkbox-blank:before{content:"󰄮"}.mdi-checkbox-blank-badge:before{content:"󱅶"}.mdi-checkbox-blank-badge-outline:before{content:"󰄗"}.mdi-checkbox-blank-circle:before{content:"󰄯"}.mdi-checkbox-blank-circle-outline:before{content:"󰄰"}.mdi-checkbox-blank-off:before{content:"󱋬"}.mdi-checkbox-blank-off-outline:before{content:"󱋭"}.mdi-checkbox-blank-outline:before{content:"󰄱"}.mdi-checkbox-intermediate:before{content:"󰡖"}.mdi-checkbox-intermediate-variant:before{content:"󱭔"}.mdi-checkbox-marked:before{content:"󰄲"}.mdi-checkbox-marked-circle:before{content:"󰄳"}.mdi-checkbox-marked-circle-auto-outline:before{content:"󱰦"}.mdi-checkbox-marked-circle-minus-outline:before{content:"󱰧"}.mdi-checkbox-marked-circle-outline:before{content:"󰄴"}.mdi-checkbox-marked-circle-plus-outline:before{content:"󱤧"}.mdi-checkbox-marked-outline:before{content:"󰄵"}.mdi-checkbox-multiple-blank:before{content:"󰄶"}.mdi-checkbox-multiple-blank-circle:before{content:"󰘻"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"󰘼"}.mdi-checkbox-multiple-blank-outline:before{content:"󰄷"}.mdi-checkbox-multiple-marked:before{content:"󰄸"}.mdi-checkbox-multiple-marked-circle:before{content:"󰘽"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"󰘾"}.mdi-checkbox-multiple-marked-outline:before{content:"󰄹"}.mdi-checkbox-multiple-outline:before{content:"󰱑"}.mdi-checkbox-outline:before{content:"󰱒"}.mdi-checkerboard:before{content:"󰄺"}.mdi-checkerboard-minus:before{content:"󱈂"}.mdi-checkerboard-plus:before{content:"󱈁"}.mdi-checkerboard-remove:before{content:"󱈃"}.mdi-cheese:before{content:"󱊹"}.mdi-cheese-off:before{content:"󱏮"}.mdi-chef-hat:before{content:"󰭼"}.mdi-chemical-weapon:before{content:"󰄻"}.mdi-chess-bishop:before{content:"󰡜"}.mdi-chess-king:before{content:"󰡗"}.mdi-chess-knight:before{content:"󰡘"}.mdi-chess-pawn:before{content:"󰡙"}.mdi-chess-queen:before{content:"󰡚"}.mdi-chess-rook:before{content:"󰡛"}.mdi-chevron-double-down:before{content:"󰄼"}.mdi-chevron-double-left:before{content:"󰄽"}.mdi-chevron-double-right:before{content:"󰄾"}.mdi-chevron-double-up:before{content:"󰄿"}.mdi-chevron-down:before{content:"󰅀"}.mdi-chevron-down-box:before{content:"󰧖"}.mdi-chevron-down-box-outline:before{content:"󰧗"}.mdi-chevron-down-circle:before{content:"󰬦"}.mdi-chevron-down-circle-outline:before{content:"󰬧"}.mdi-chevron-left:before{content:"󰅁"}.mdi-chevron-left-box:before{content:"󰧘"}.mdi-chevron-left-box-outline:before{content:"󰧙"}.mdi-chevron-left-circle:before{content:"󰬨"}.mdi-chevron-left-circle-outline:before{content:"󰬩"}.mdi-chevron-right:before{content:"󰅂"}.mdi-chevron-right-box:before{content:"󰧚"}.mdi-chevron-right-box-outline:before{content:"󰧛"}.mdi-chevron-right-circle:before{content:"󰬪"}.mdi-chevron-right-circle-outline:before{content:"󰬫"}.mdi-chevron-triple-down:before{content:"󰶹"}.mdi-chevron-triple-left:before{content:"󰶺"}.mdi-chevron-triple-right:before{content:"󰶻"}.mdi-chevron-triple-up:before{content:"󰶼"}.mdi-chevron-up:before{content:"󰅃"}.mdi-chevron-up-box:before{content:"󰧜"}.mdi-chevron-up-box-outline:before{content:"󰧝"}.mdi-chevron-up-circle:before{content:"󰬬"}.mdi-chevron-up-circle-outline:before{content:"󰬭"}.mdi-chili-alert:before{content:"󱟪"}.mdi-chili-alert-outline:before{content:"󱟫"}.mdi-chili-hot:before{content:"󰞲"}.mdi-chili-hot-outline:before{content:"󱟬"}.mdi-chili-medium:before{content:"󰞳"}.mdi-chili-medium-outline:before{content:"󱟭"}.mdi-chili-mild:before{content:"󰞴"}.mdi-chili-mild-outline:before{content:"󱟮"}.mdi-chili-off:before{content:"󱑧"}.mdi-chili-off-outline:before{content:"󱟯"}.mdi-chip:before{content:"󰘚"}.mdi-church:before{content:"󰅄"}.mdi-church-outline:before{content:"󱬂"}.mdi-cigar:before{content:"󱆉"}.mdi-cigar-off:before{content:"󱐛"}.mdi-circle:before{content:"󰝥"}.mdi-circle-box:before{content:"󱗜"}.mdi-circle-box-outline:before{content:"󱗝"}.mdi-circle-double:before{content:"󰺕"}.mdi-circle-edit-outline:before{content:"󰣕"}.mdi-circle-expand:before{content:"󰺖"}.mdi-circle-half:before{content:"󱎕"}.mdi-circle-half-full:before{content:"󱎖"}.mdi-circle-medium:before{content:"󰧞"}.mdi-circle-multiple:before{content:"󰬸"}.mdi-circle-multiple-outline:before{content:"󰚕"}.mdi-circle-off-outline:before{content:"󱃓"}.mdi-circle-opacity:before{content:"󱡓"}.mdi-circle-outline:before{content:"󰝦"}.mdi-circle-slice-1:before{content:"󰪞"}.mdi-circle-slice-2:before{content:"󰪟"}.mdi-circle-slice-3:before{content:"󰪠"}.mdi-circle-slice-4:before{content:"󰪡"}.mdi-circle-slice-5:before{content:"󰪢"}.mdi-circle-slice-6:before{content:"󰪣"}.mdi-circle-slice-7:before{content:"󰪤"}.mdi-circle-slice-8:before{content:"󰪥"}.mdi-circle-small:before{content:"󰧟"}.mdi-circular-saw:before{content:"󰸢"}.mdi-city:before{content:"󰅆"}.mdi-city-switch:before{content:"󱰨"}.mdi-city-variant:before{content:"󰨶"}.mdi-city-variant-outline:before{content:"󰨷"}.mdi-clipboard:before{content:"󰅇"}.mdi-clipboard-account:before{content:"󰅈"}.mdi-clipboard-account-outline:before{content:"󰱕"}.mdi-clipboard-alert:before{content:"󰅉"}.mdi-clipboard-alert-outline:before{content:"󰳷"}.mdi-clipboard-arrow-down:before{content:"󰅊"}.mdi-clipboard-arrow-down-outline:before{content:"󰱖"}.mdi-clipboard-arrow-left:before{content:"󰅋"}.mdi-clipboard-arrow-left-outline:before{content:"󰳸"}.mdi-clipboard-arrow-right:before{content:"󰳹"}.mdi-clipboard-arrow-right-outline:before{content:"󰳺"}.mdi-clipboard-arrow-up:before{content:"󰱗"}.mdi-clipboard-arrow-up-outline:before{content:"󰱘"}.mdi-clipboard-check:before{content:"󰅎"}.mdi-clipboard-check-multiple:before{content:"󱉣"}.mdi-clipboard-check-multiple-outline:before{content:"󱉤"}.mdi-clipboard-check-outline:before{content:"󰢨"}.mdi-clipboard-clock:before{content:"󱛢"}.mdi-clipboard-clock-outline:before{content:"󱛣"}.mdi-clipboard-edit:before{content:"󱓥"}.mdi-clipboard-edit-outline:before{content:"󱓦"}.mdi-clipboard-file:before{content:"󱉥"}.mdi-clipboard-file-outline:before{content:"󱉦"}.mdi-clipboard-flow:before{content:"󰛈"}.mdi-clipboard-flow-outline:before{content:"󱄗"}.mdi-clipboard-list:before{content:"󱃔"}.mdi-clipboard-list-outline:before{content:"󱃕"}.mdi-clipboard-minus:before{content:"󱘘"}.mdi-clipboard-minus-outline:before{content:"󱘙"}.mdi-clipboard-multiple:before{content:"󱉧"}.mdi-clipboard-multiple-outline:before{content:"󱉨"}.mdi-clipboard-off:before{content:"󱘚"}.mdi-clipboard-off-outline:before{content:"󱘛"}.mdi-clipboard-outline:before{content:"󰅌"}.mdi-clipboard-play:before{content:"󰱙"}.mdi-clipboard-play-multiple:before{content:"󱉩"}.mdi-clipboard-play-multiple-outline:before{content:"󱉪"}.mdi-clipboard-play-outline:before{content:"󰱚"}.mdi-clipboard-plus:before{content:"󰝑"}.mdi-clipboard-plus-outline:before{content:"󱌟"}.mdi-clipboard-pulse:before{content:"󰡝"}.mdi-clipboard-pulse-outline:before{content:"󰡞"}.mdi-clipboard-remove:before{content:"󱘜"}.mdi-clipboard-remove-outline:before{content:"󱘝"}.mdi-clipboard-search:before{content:"󱘞"}.mdi-clipboard-search-outline:before{content:"󱘟"}.mdi-clipboard-text:before{content:"󰅍"}.mdi-clipboard-text-clock:before{content:"󱣹"}.mdi-clipboard-text-clock-outline:before{content:"󱣺"}.mdi-clipboard-text-multiple:before{content:"󱉫"}.mdi-clipboard-text-multiple-outline:before{content:"󱉬"}.mdi-clipboard-text-off:before{content:"󱘠"}.mdi-clipboard-text-off-outline:before{content:"󱘡"}.mdi-clipboard-text-outline:before{content:"󰨸"}.mdi-clipboard-text-play:before{content:"󰱛"}.mdi-clipboard-text-play-outline:before{content:"󰱜"}.mdi-clipboard-text-search:before{content:"󱘢"}.mdi-clipboard-text-search-outline:before{content:"󱘣"}.mdi-clippy:before{content:"󰅏"}.mdi-clock:before{content:"󰥔"}.mdi-clock-alert:before{content:"󰥕"}.mdi-clock-alert-outline:before{content:"󰗎"}.mdi-clock-check:before{content:"󰾨"}.mdi-clock-check-outline:before{content:"󰾩"}.mdi-clock-digital:before{content:"󰺗"}.mdi-clock-edit:before{content:"󱦺"}.mdi-clock-edit-outline:before{content:"󱦻"}.mdi-clock-end:before{content:"󰅑"}.mdi-clock-fast:before{content:"󰅒"}.mdi-clock-in:before{content:"󰅓"}.mdi-clock-minus:before{content:"󱡣"}.mdi-clock-minus-outline:before{content:"󱡤"}.mdi-clock-out:before{content:"󰅔"}.mdi-clock-outline:before{content:"󰅐"}.mdi-clock-plus:before{content:"󱡡"}.mdi-clock-plus-outline:before{content:"󱡢"}.mdi-clock-remove:before{content:"󱡥"}.mdi-clock-remove-outline:before{content:"󱡦"}.mdi-clock-star-four-points:before{content:"󱰩"}.mdi-clock-star-four-points-outline:before{content:"󱰪"}.mdi-clock-start:before{content:"󰅕"}.mdi-clock-time-eight:before{content:"󱑆"}.mdi-clock-time-eight-outline:before{content:"󱑒"}.mdi-clock-time-eleven:before{content:"󱑉"}.mdi-clock-time-eleven-outline:before{content:"󱑕"}.mdi-clock-time-five:before{content:"󱑃"}.mdi-clock-time-five-outline:before{content:"󱑏"}.mdi-clock-time-four:before{content:"󱑂"}.mdi-clock-time-four-outline:before{content:"󱑎"}.mdi-clock-time-nine:before{content:"󱑇"}.mdi-clock-time-nine-outline:before{content:"󱑓"}.mdi-clock-time-one:before{content:"󱐿"}.mdi-clock-time-one-outline:before{content:"󱑋"}.mdi-clock-time-seven:before{content:"󱑅"}.mdi-clock-time-seven-outline:before{content:"󱑑"}.mdi-clock-time-six:before{content:"󱑄"}.mdi-clock-time-six-outline:before{content:"󱑐"}.mdi-clock-time-ten:before{content:"󱑈"}.mdi-clock-time-ten-outline:before{content:"󱑔"}.mdi-clock-time-three:before{content:"󱑁"}.mdi-clock-time-three-outline:before{content:"󱑍"}.mdi-clock-time-twelve:before{content:"󱑊"}.mdi-clock-time-twelve-outline:before{content:"󱑖"}.mdi-clock-time-two:before{content:"󱑀"}.mdi-clock-time-two-outline:before{content:"󱑌"}.mdi-close:before{content:"󰅖"}.mdi-close-box:before{content:"󰅗"}.mdi-close-box-multiple:before{content:"󰱝"}.mdi-close-box-multiple-outline:before{content:"󰱞"}.mdi-close-box-outline:before{content:"󰅘"}.mdi-close-circle:before{content:"󰅙"}.mdi-close-circle-multiple:before{content:"󰘪"}.mdi-close-circle-multiple-outline:before{content:"󰢃"}.mdi-close-circle-outline:before{content:"󰅚"}.mdi-close-network:before{content:"󰅛"}.mdi-close-network-outline:before{content:"󰱟"}.mdi-close-octagon:before{content:"󰅜"}.mdi-close-octagon-outline:before{content:"󰅝"}.mdi-close-outline:before{content:"󰛉"}.mdi-close-thick:before{content:"󱎘"}.mdi-closed-caption:before{content:"󰅞"}.mdi-closed-caption-outline:before{content:"󰶽"}.mdi-cloud:before{content:"󰅟"}.mdi-cloud-alert:before{content:"󰧠"}.mdi-cloud-alert-outline:before{content:"󱯠"}.mdi-cloud-arrow-down:before{content:"󱯡"}.mdi-cloud-arrow-down-outline:before{content:"󱯢"}.mdi-cloud-arrow-left:before{content:"󱯣"}.mdi-cloud-arrow-left-outline:before{content:"󱯤"}.mdi-cloud-arrow-right:before{content:"󱯥"}.mdi-cloud-arrow-right-outline:before{content:"󱯦"}.mdi-cloud-arrow-up:before{content:"󱯧"}.mdi-cloud-arrow-up-outline:before{content:"󱯨"}.mdi-cloud-braces:before{content:"󰞵"}.mdi-cloud-cancel:before{content:"󱯩"}.mdi-cloud-cancel-outline:before{content:"󱯪"}.mdi-cloud-check:before{content:"󱯫"}.mdi-cloud-check-outline:before{content:"󱯬"}.mdi-cloud-check-variant:before{content:"󰅠"}.mdi-cloud-check-variant-outline:before{content:"󱋌"}.mdi-cloud-circle:before{content:"󰅡"}.mdi-cloud-circle-outline:before{content:"󱯭"}.mdi-cloud-clock:before{content:"󱯮"}.mdi-cloud-clock-outline:before{content:"󱯯"}.mdi-cloud-cog:before{content:"󱯰"}.mdi-cloud-cog-outline:before{content:"󱯱"}.mdi-cloud-download:before{content:"󰅢"}.mdi-cloud-download-outline:before{content:"󰭽"}.mdi-cloud-key:before{content:"󱲡"}.mdi-cloud-key-outline:before{content:"󱲢"}.mdi-cloud-lock:before{content:"󱇱"}.mdi-cloud-lock-open:before{content:"󱯲"}.mdi-cloud-lock-open-outline:before{content:"󱯳"}.mdi-cloud-lock-outline:before{content:"󱇲"}.mdi-cloud-minus:before{content:"󱯴"}.mdi-cloud-minus-outline:before{content:"󱯵"}.mdi-cloud-off:before{content:"󱯶"}.mdi-cloud-off-outline:before{content:"󰅤"}.mdi-cloud-outline:before{content:"󰅣"}.mdi-cloud-percent:before{content:"󱨵"}.mdi-cloud-percent-outline:before{content:"󱨶"}.mdi-cloud-plus:before{content:"󱯷"}.mdi-cloud-plus-outline:before{content:"󱯸"}.mdi-cloud-print:before{content:"󰅥"}.mdi-cloud-print-outline:before{content:"󰅦"}.mdi-cloud-question:before{content:"󰨹"}.mdi-cloud-question-outline:before{content:"󱯹"}.mdi-cloud-refresh:before{content:"󱯺"}.mdi-cloud-refresh-outline:before{content:"󱯻"}.mdi-cloud-refresh-variant:before{content:"󰔪"}.mdi-cloud-refresh-variant-outline:before{content:"󱯼"}.mdi-cloud-remove:before{content:"󱯽"}.mdi-cloud-remove-outline:before{content:"󱯾"}.mdi-cloud-search:before{content:"󰥖"}.mdi-cloud-search-outline:before{content:"󰥗"}.mdi-cloud-sync:before{content:"󰘿"}.mdi-cloud-sync-outline:before{content:"󱋖"}.mdi-cloud-tags:before{content:"󰞶"}.mdi-cloud-upload:before{content:"󰅧"}.mdi-cloud-upload-outline:before{content:"󰭾"}.mdi-clouds:before{content:"󱮕"}.mdi-clover:before{content:"󰠖"}.mdi-clover-outline:before{content:"󱱢"}.mdi-coach-lamp:before{content:"󱀠"}.mdi-coach-lamp-variant:before{content:"󱨷"}.mdi-coat-rack:before{content:"󱂞"}.mdi-code-array:before{content:"󰅨"}.mdi-code-block-braces:before{content:"󱲃"}.mdi-code-block-brackets:before{content:"󱲄"}.mdi-code-block-parentheses:before{content:"󱲅"}.mdi-code-block-tags:before{content:"󱲆"}.mdi-code-braces:before{content:"󰅩"}.mdi-code-braces-box:before{content:"󱃖"}.mdi-code-brackets:before{content:"󰅪"}.mdi-code-equal:before{content:"󰅫"}.mdi-code-greater-than:before{content:"󰅬"}.mdi-code-greater-than-or-equal:before{content:"󰅭"}.mdi-code-json:before{content:"󰘦"}.mdi-code-less-than:before{content:"󰅮"}.mdi-code-less-than-or-equal:before{content:"󰅯"}.mdi-code-not-equal:before{content:"󰅰"}.mdi-code-not-equal-variant:before{content:"󰅱"}.mdi-code-parentheses:before{content:"󰅲"}.mdi-code-parentheses-box:before{content:"󱃗"}.mdi-code-string:before{content:"󰅳"}.mdi-code-tags:before{content:"󰅴"}.mdi-code-tags-check:before{content:"󰚔"}.mdi-codepen:before{content:"󰅵"}.mdi-coffee:before{content:"󰅶"}.mdi-coffee-maker:before{content:"󱂟"}.mdi-coffee-maker-check:before{content:"󱤱"}.mdi-coffee-maker-check-outline:before{content:"󱤲"}.mdi-coffee-maker-outline:before{content:"󱠛"}.mdi-coffee-off:before{content:"󰾪"}.mdi-coffee-off-outline:before{content:"󰾫"}.mdi-coffee-outline:before{content:"󰛊"}.mdi-coffee-to-go:before{content:"󰅷"}.mdi-coffee-to-go-outline:before{content:"󱌎"}.mdi-coffin:before{content:"󰭿"}.mdi-cog:before{content:"󰒓"}.mdi-cog-box:before{content:"󰒔"}.mdi-cog-clockwise:before{content:"󱇝"}.mdi-cog-counterclockwise:before{content:"󱇞"}.mdi-cog-off:before{content:"󱏎"}.mdi-cog-off-outline:before{content:"󱏏"}.mdi-cog-outline:before{content:"󰢻"}.mdi-cog-pause:before{content:"󱤳"}.mdi-cog-pause-outline:before{content:"󱤴"}.mdi-cog-play:before{content:"󱤵"}.mdi-cog-play-outline:before{content:"󱤶"}.mdi-cog-refresh:before{content:"󱑞"}.mdi-cog-refresh-outline:before{content:"󱑟"}.mdi-cog-stop:before{content:"󱤷"}.mdi-cog-stop-outline:before{content:"󱤸"}.mdi-cog-sync:before{content:"󱑠"}.mdi-cog-sync-outline:before{content:"󱑡"}.mdi-cog-transfer:before{content:"󱁛"}.mdi-cog-transfer-outline:before{content:"󱁜"}.mdi-cogs:before{content:"󰣖"}.mdi-collage:before{content:"󰙀"}.mdi-collapse-all:before{content:"󰪦"}.mdi-collapse-all-outline:before{content:"󰪧"}.mdi-color-helper:before{content:"󰅹"}.mdi-comma:before{content:"󰸣"}.mdi-comma-box:before{content:"󰸫"}.mdi-comma-box-outline:before{content:"󰸤"}.mdi-comma-circle:before{content:"󰸥"}.mdi-comma-circle-outline:before{content:"󰸦"}.mdi-comment:before{content:"󰅺"}.mdi-comment-account:before{content:"󰅻"}.mdi-comment-account-outline:before{content:"󰅼"}.mdi-comment-alert:before{content:"󰅽"}.mdi-comment-alert-outline:before{content:"󰅾"}.mdi-comment-arrow-left:before{content:"󰧡"}.mdi-comment-arrow-left-outline:before{content:"󰧢"}.mdi-comment-arrow-right:before{content:"󰧣"}.mdi-comment-arrow-right-outline:before{content:"󰧤"}.mdi-comment-bookmark:before{content:"󱖮"}.mdi-comment-bookmark-outline:before{content:"󱖯"}.mdi-comment-check:before{content:"󰅿"}.mdi-comment-check-outline:before{content:"󰆀"}.mdi-comment-edit:before{content:"󱆿"}.mdi-comment-edit-outline:before{content:"󱋄"}.mdi-comment-eye:before{content:"󰨺"}.mdi-comment-eye-outline:before{content:"󰨻"}.mdi-comment-flash:before{content:"󱖰"}.mdi-comment-flash-outline:before{content:"󱖱"}.mdi-comment-minus:before{content:"󱗟"}.mdi-comment-minus-outline:before{content:"󱗠"}.mdi-comment-multiple:before{content:"󰡟"}.mdi-comment-multiple-outline:before{content:"󰆁"}.mdi-comment-off:before{content:"󱗡"}.mdi-comment-off-outline:before{content:"󱗢"}.mdi-comment-outline:before{content:"󰆂"}.mdi-comment-plus:before{content:"󰧥"}.mdi-comment-plus-outline:before{content:"󰆃"}.mdi-comment-processing:before{content:"󰆄"}.mdi-comment-processing-outline:before{content:"󰆅"}.mdi-comment-question:before{content:"󰠗"}.mdi-comment-question-outline:before{content:"󰆆"}.mdi-comment-quote:before{content:"󱀡"}.mdi-comment-quote-outline:before{content:"󱀢"}.mdi-comment-remove:before{content:"󰗞"}.mdi-comment-remove-outline:before{content:"󰆇"}.mdi-comment-search:before{content:"󰨼"}.mdi-comment-search-outline:before{content:"󰨽"}.mdi-comment-text:before{content:"󰆈"}.mdi-comment-text-multiple:before{content:"󰡠"}.mdi-comment-text-multiple-outline:before{content:"󰡡"}.mdi-comment-text-outline:before{content:"󰆉"}.mdi-compare:before{content:"󰆊"}.mdi-compare-horizontal:before{content:"󱒒"}.mdi-compare-remove:before{content:"󱢳"}.mdi-compare-vertical:before{content:"󱒓"}.mdi-compass:before{content:"󰆋"}.mdi-compass-off:before{content:"󰮀"}.mdi-compass-off-outline:before{content:"󰮁"}.mdi-compass-outline:before{content:"󰆌"}.mdi-compass-rose:before{content:"󱎂"}.mdi-compost:before{content:"󱨸"}.mdi-cone:before{content:"󱥌"}.mdi-cone-off:before{content:"󱥍"}.mdi-connection:before{content:"󱘖"}.mdi-console:before{content:"󰆍"}.mdi-console-line:before{content:"󰞷"}.mdi-console-network:before{content:"󰢩"}.mdi-console-network-outline:before{content:"󰱠"}.mdi-consolidate:before{content:"󱃘"}.mdi-contactless-payment:before{content:"󰵪"}.mdi-contactless-payment-circle:before{content:"󰌡"}.mdi-contactless-payment-circle-outline:before{content:"󰐈"}.mdi-contacts:before{content:"󰛋"}.mdi-contacts-outline:before{content:"󰖸"}.mdi-contain:before{content:"󰨾"}.mdi-contain-end:before{content:"󰨿"}.mdi-contain-start:before{content:"󰩀"}.mdi-content-copy:before{content:"󰆏"}.mdi-content-cut:before{content:"󰆐"}.mdi-content-duplicate:before{content:"󰆑"}.mdi-content-paste:before{content:"󰆒"}.mdi-content-save:before{content:"󰆓"}.mdi-content-save-alert:before{content:"󰽂"}.mdi-content-save-alert-outline:before{content:"󰽃"}.mdi-content-save-all:before{content:"󰆔"}.mdi-content-save-all-outline:before{content:"󰽄"}.mdi-content-save-check:before{content:"󱣪"}.mdi-content-save-check-outline:before{content:"󱣫"}.mdi-content-save-cog:before{content:"󱑛"}.mdi-content-save-cog-outline:before{content:"󱑜"}.mdi-content-save-edit:before{content:"󰳻"}.mdi-content-save-edit-outline:before{content:"󰳼"}.mdi-content-save-minus:before{content:"󱭃"}.mdi-content-save-minus-outline:before{content:"󱭄"}.mdi-content-save-move:before{content:"󰸧"}.mdi-content-save-move-outline:before{content:"󰸨"}.mdi-content-save-off:before{content:"󱙃"}.mdi-content-save-off-outline:before{content:"󱙄"}.mdi-content-save-outline:before{content:"󰠘"}.mdi-content-save-plus:before{content:"󱭁"}.mdi-content-save-plus-outline:before{content:"󱭂"}.mdi-content-save-settings:before{content:"󰘛"}.mdi-content-save-settings-outline:before{content:"󰬮"}.mdi-contrast:before{content:"󰆕"}.mdi-contrast-box:before{content:"󰆖"}.mdi-contrast-circle:before{content:"󰆗"}.mdi-controller:before{content:"󰊴"}.mdi-controller-classic:before{content:"󰮂"}.mdi-controller-classic-outline:before{content:"󰮃"}.mdi-controller-off:before{content:"󰊵"}.mdi-cookie:before{content:"󰆘"}.mdi-cookie-alert:before{content:"󱛐"}.mdi-cookie-alert-outline:before{content:"󱛑"}.mdi-cookie-check:before{content:"󱛒"}.mdi-cookie-check-outline:before{content:"󱛓"}.mdi-cookie-clock:before{content:"󱛤"}.mdi-cookie-clock-outline:before{content:"󱛥"}.mdi-cookie-cog:before{content:"󱛔"}.mdi-cookie-cog-outline:before{content:"󱛕"}.mdi-cookie-edit:before{content:"󱛦"}.mdi-cookie-edit-outline:before{content:"󱛧"}.mdi-cookie-lock:before{content:"󱛨"}.mdi-cookie-lock-outline:before{content:"󱛩"}.mdi-cookie-minus:before{content:"󱛚"}.mdi-cookie-minus-outline:before{content:"󱛛"}.mdi-cookie-off:before{content:"󱛪"}.mdi-cookie-off-outline:before{content:"󱛫"}.mdi-cookie-outline:before{content:"󱛞"}.mdi-cookie-plus:before{content:"󱛖"}.mdi-cookie-plus-outline:before{content:"󱛗"}.mdi-cookie-refresh:before{content:"󱛬"}.mdi-cookie-refresh-outline:before{content:"󱛭"}.mdi-cookie-remove:before{content:"󱛘"}.mdi-cookie-remove-outline:before{content:"󱛙"}.mdi-cookie-settings:before{content:"󱛜"}.mdi-cookie-settings-outline:before{content:"󱛝"}.mdi-coolant-temperature:before{content:"󰏈"}.mdi-copyleft:before{content:"󱤹"}.mdi-copyright:before{content:"󰗦"}.mdi-cordova:before{content:"󰥘"}.mdi-corn:before{content:"󰞸"}.mdi-corn-off:before{content:"󱏯"}.mdi-cosine-wave:before{content:"󱑹"}.mdi-counter:before{content:"󰆙"}.mdi-countertop:before{content:"󱠜"}.mdi-countertop-outline:before{content:"󱠝"}.mdi-cow:before{content:"󰆚"}.mdi-cow-off:before{content:"󱣼"}.mdi-cpu-32-bit:before{content:"󰻟"}.mdi-cpu-64-bit:before{content:"󰻠"}.mdi-cradle:before{content:"󱦋"}.mdi-cradle-outline:before{content:"󱦑"}.mdi-crane:before{content:"󰡢"}.mdi-creation:before{content:"󰙴"}.mdi-creation-outline:before{content:"󱰫"}.mdi-creative-commons:before{content:"󰵫"}.mdi-credit-card:before{content:"󰿯"}.mdi-credit-card-check:before{content:"󱏐"}.mdi-credit-card-check-outline:before{content:"󱏑"}.mdi-credit-card-chip:before{content:"󱤏"}.mdi-credit-card-chip-outline:before{content:"󱤐"}.mdi-credit-card-clock:before{content:"󰻡"}.mdi-credit-card-clock-outline:before{content:"󰻢"}.mdi-credit-card-edit:before{content:"󱟗"}.mdi-credit-card-edit-outline:before{content:"󱟘"}.mdi-credit-card-fast:before{content:"󱤑"}.mdi-credit-card-fast-outline:before{content:"󱤒"}.mdi-credit-card-lock:before{content:"󱣧"}.mdi-credit-card-lock-outline:before{content:"󱣨"}.mdi-credit-card-marker:before{content:"󰚨"}.mdi-credit-card-marker-outline:before{content:"󰶾"}.mdi-credit-card-minus:before{content:"󰾬"}.mdi-credit-card-minus-outline:before{content:"󰾭"}.mdi-credit-card-multiple:before{content:"󰿰"}.mdi-credit-card-multiple-outline:before{content:"󰆜"}.mdi-credit-card-off:before{content:"󰿱"}.mdi-credit-card-off-outline:before{content:"󰗤"}.mdi-credit-card-outline:before{content:"󰆛"}.mdi-credit-card-plus:before{content:"󰿲"}.mdi-credit-card-plus-outline:before{content:"󰙶"}.mdi-credit-card-refresh:before{content:"󱙅"}.mdi-credit-card-refresh-outline:before{content:"󱙆"}.mdi-credit-card-refund:before{content:"󰿳"}.mdi-credit-card-refund-outline:before{content:"󰪨"}.mdi-credit-card-remove:before{content:"󰾮"}.mdi-credit-card-remove-outline:before{content:"󰾯"}.mdi-credit-card-scan:before{content:"󰿴"}.mdi-credit-card-scan-outline:before{content:"󰆝"}.mdi-credit-card-search:before{content:"󱙇"}.mdi-credit-card-search-outline:before{content:"󱙈"}.mdi-credit-card-settings:before{content:"󰿵"}.mdi-credit-card-settings-outline:before{content:"󰣗"}.mdi-credit-card-sync:before{content:"󱙉"}.mdi-credit-card-sync-outline:before{content:"󱙊"}.mdi-credit-card-wireless:before{content:"󰠂"}.mdi-credit-card-wireless-off:before{content:"󰕺"}.mdi-credit-card-wireless-off-outline:before{content:"󰕻"}.mdi-credit-card-wireless-outline:before{content:"󰵬"}.mdi-cricket:before{content:"󰵭"}.mdi-crop:before{content:"󰆞"}.mdi-crop-free:before{content:"󰆟"}.mdi-crop-landscape:before{content:"󰆠"}.mdi-crop-portrait:before{content:"󰆡"}.mdi-crop-rotate:before{content:"󰚖"}.mdi-crop-square:before{content:"󰆢"}.mdi-cross:before{content:"󰥓"}.mdi-cross-bolnisi:before{content:"󰳭"}.mdi-cross-celtic:before{content:"󰳵"}.mdi-cross-outline:before{content:"󰳶"}.mdi-crosshairs:before{content:"󰆣"}.mdi-crosshairs-gps:before{content:"󰆤"}.mdi-crosshairs-off:before{content:"󰽅"}.mdi-crosshairs-question:before{content:"󱄶"}.mdi-crowd:before{content:"󱥵"}.mdi-crown:before{content:"󰆥"}.mdi-crown-circle:before{content:"󱟜"}.mdi-crown-circle-outline:before{content:"󱟝"}.mdi-crown-outline:before{content:"󱇐"}.mdi-cryengine:before{content:"󰥙"}.mdi-crystal-ball:before{content:"󰬯"}.mdi-cube:before{content:"󰆦"}.mdi-cube-off:before{content:"󱐜"}.mdi-cube-off-outline:before{content:"󱐝"}.mdi-cube-outline:before{content:"󰆧"}.mdi-cube-scan:before{content:"󰮄"}.mdi-cube-send:before{content:"󰆨"}.mdi-cube-unfolded:before{content:"󰆩"}.mdi-cup:before{content:"󰆪"}.mdi-cup-off:before{content:"󰗥"}.mdi-cup-off-outline:before{content:"󱍽"}.mdi-cup-outline:before{content:"󱌏"}.mdi-cup-water:before{content:"󰆫"}.mdi-cupboard:before{content:"󰽆"}.mdi-cupboard-outline:before{content:"󰽇"}.mdi-cupcake:before{content:"󰥚"}.mdi-curling:before{content:"󰡣"}.mdi-currency-bdt:before{content:"󰡤"}.mdi-currency-brl:before{content:"󰮅"}.mdi-currency-btc:before{content:"󰆬"}.mdi-currency-cny:before{content:"󰞺"}.mdi-currency-eth:before{content:"󰞻"}.mdi-currency-eur:before{content:"󰆭"}.mdi-currency-eur-off:before{content:"󱌕"}.mdi-currency-fra:before{content:"󱨹"}.mdi-currency-gbp:before{content:"󰆮"}.mdi-currency-ils:before{content:"󰱡"}.mdi-currency-inr:before{content:"󰆯"}.mdi-currency-jpy:before{content:"󰞼"}.mdi-currency-krw:before{content:"󰞽"}.mdi-currency-kzt:before{content:"󰡥"}.mdi-currency-mnt:before{content:"󱔒"}.mdi-currency-ngn:before{content:"󰆰"}.mdi-currency-php:before{content:"󰧦"}.mdi-currency-rial:before{content:"󰺜"}.mdi-currency-rub:before{content:"󰆱"}.mdi-currency-rupee:before{content:"󱥶"}.mdi-currency-sign:before{content:"󰞾"}.mdi-currency-thb:before{content:"󱰅"}.mdi-currency-try:before{content:"󰆲"}.mdi-currency-twd:before{content:"󰞿"}.mdi-currency-uah:before{content:"󱮛"}.mdi-currency-usd:before{content:"󰇁"}.mdi-currency-usd-off:before{content:"󰙺"}.mdi-current-ac:before{content:"󱒀"}.mdi-current-dc:before{content:"󰥜"}.mdi-cursor-default:before{content:"󰇀"}.mdi-cursor-default-click:before{content:"󰳽"}.mdi-cursor-default-click-outline:before{content:"󰳾"}.mdi-cursor-default-gesture:before{content:"󱄧"}.mdi-cursor-default-gesture-outline:before{content:"󱄨"}.mdi-cursor-default-outline:before{content:"󰆿"}.mdi-cursor-move:before{content:"󰆾"}.mdi-cursor-pointer:before{content:"󰆽"}.mdi-cursor-text:before{content:"󰗧"}.mdi-curtains:before{content:"󱡆"}.mdi-curtains-closed:before{content:"󱡇"}.mdi-cylinder:before{content:"󱥎"}.mdi-cylinder-off:before{content:"󱥏"}.mdi-dance-ballroom:before{content:"󱗻"}.mdi-dance-pole:before{content:"󱕸"}.mdi-data-matrix:before{content:"󱔼"}.mdi-data-matrix-edit:before{content:"󱔽"}.mdi-data-matrix-minus:before{content:"󱔾"}.mdi-data-matrix-plus:before{content:"󱔿"}.mdi-data-matrix-remove:before{content:"󱕀"}.mdi-data-matrix-scan:before{content:"󱕁"}.mdi-database:before{content:"󰆼"}.mdi-database-alert:before{content:"󱘺"}.mdi-database-alert-outline:before{content:"󱘤"}.mdi-database-arrow-down:before{content:"󱘻"}.mdi-database-arrow-down-outline:before{content:"󱘥"}.mdi-database-arrow-left:before{content:"󱘼"}.mdi-database-arrow-left-outline:before{content:"󱘦"}.mdi-database-arrow-right:before{content:"󱘽"}.mdi-database-arrow-right-outline:before{content:"󱘧"}.mdi-database-arrow-up:before{content:"󱘾"}.mdi-database-arrow-up-outline:before{content:"󱘨"}.mdi-database-check:before{content:"󰪩"}.mdi-database-check-outline:before{content:"󱘩"}.mdi-database-clock:before{content:"󱘿"}.mdi-database-clock-outline:before{content:"󱘪"}.mdi-database-cog:before{content:"󱙋"}.mdi-database-cog-outline:before{content:"󱙌"}.mdi-database-edit:before{content:"󰮆"}.mdi-database-edit-outline:before{content:"󱘫"}.mdi-database-export:before{content:"󰥞"}.mdi-database-export-outline:before{content:"󱘬"}.mdi-database-eye:before{content:"󱤟"}.mdi-database-eye-off:before{content:"󱤠"}.mdi-database-eye-off-outline:before{content:"󱤡"}.mdi-database-eye-outline:before{content:"󱤢"}.mdi-database-import:before{content:"󰥝"}.mdi-database-import-outline:before{content:"󱘭"}.mdi-database-lock:before{content:"󰪪"}.mdi-database-lock-outline:before{content:"󱘮"}.mdi-database-marker:before{content:"󱋶"}.mdi-database-marker-outline:before{content:"󱘯"}.mdi-database-minus:before{content:"󰆻"}.mdi-database-minus-outline:before{content:"󱘰"}.mdi-database-off:before{content:"󱙀"}.mdi-database-off-outline:before{content:"󱘱"}.mdi-database-outline:before{content:"󱘲"}.mdi-database-plus:before{content:"󰆺"}.mdi-database-plus-outline:before{content:"󱘳"}.mdi-database-refresh:before{content:"󰗂"}.mdi-database-refresh-outline:before{content:"󱘴"}.mdi-database-remove:before{content:"󰴀"}.mdi-database-remove-outline:before{content:"󱘵"}.mdi-database-search:before{content:"󰡦"}.mdi-database-search-outline:before{content:"󱘶"}.mdi-database-settings:before{content:"󰴁"}.mdi-database-settings-outline:before{content:"󱘷"}.mdi-database-sync:before{content:"󰳿"}.mdi-database-sync-outline:before{content:"󱘸"}.mdi-death-star:before{content:"󰣘"}.mdi-death-star-variant:before{content:"󰣙"}.mdi-deathly-hallows:before{content:"󰮇"}.mdi-debian:before{content:"󰣚"}.mdi-debug-step-into:before{content:"󰆹"}.mdi-debug-step-out:before{content:"󰆸"}.mdi-debug-step-over:before{content:"󰆷"}.mdi-decagram:before{content:"󰝬"}.mdi-decagram-outline:before{content:"󰝭"}.mdi-decimal:before{content:"󱂡"}.mdi-decimal-comma:before{content:"󱂢"}.mdi-decimal-comma-decrease:before{content:"󱂣"}.mdi-decimal-comma-increase:before{content:"󱂤"}.mdi-decimal-decrease:before{content:"󰆶"}.mdi-decimal-increase:before{content:"󰆵"}.mdi-delete:before{content:"󰆴"}.mdi-delete-alert:before{content:"󱂥"}.mdi-delete-alert-outline:before{content:"󱂦"}.mdi-delete-circle:before{content:"󰚃"}.mdi-delete-circle-outline:before{content:"󰮈"}.mdi-delete-clock:before{content:"󱕖"}.mdi-delete-clock-outline:before{content:"󱕗"}.mdi-delete-empty:before{content:"󰛌"}.mdi-delete-empty-outline:before{content:"󰺝"}.mdi-delete-forever:before{content:"󰗨"}.mdi-delete-forever-outline:before{content:"󰮉"}.mdi-delete-off:before{content:"󱂧"}.mdi-delete-off-outline:before{content:"󱂨"}.mdi-delete-outline:before{content:"󰧧"}.mdi-delete-restore:before{content:"󰠙"}.mdi-delete-sweep:before{content:"󰗩"}.mdi-delete-sweep-outline:before{content:"󰱢"}.mdi-delete-variant:before{content:"󰆳"}.mdi-delta:before{content:"󰇂"}.mdi-desk:before{content:"󱈹"}.mdi-desk-lamp:before{content:"󰥟"}.mdi-desk-lamp-off:before{content:"󱬟"}.mdi-desk-lamp-on:before{content:"󱬠"}.mdi-deskphone:before{content:"󰇃"}.mdi-desktop-classic:before{content:"󰟀"}.mdi-desktop-tower:before{content:"󰇅"}.mdi-desktop-tower-monitor:before{content:"󰪫"}.mdi-details:before{content:"󰇆"}.mdi-dev-to:before{content:"󰵮"}.mdi-developer-board:before{content:"󰚗"}.mdi-deviantart:before{content:"󰇇"}.mdi-devices:before{content:"󰾰"}.mdi-dharmachakra:before{content:"󰥋"}.mdi-diabetes:before{content:"󱄦"}.mdi-dialpad:before{content:"󰘜"}.mdi-diameter:before{content:"󰱣"}.mdi-diameter-outline:before{content:"󰱤"}.mdi-diameter-variant:before{content:"󰱥"}.mdi-diamond:before{content:"󰮊"}.mdi-diamond-outline:before{content:"󰮋"}.mdi-diamond-stone:before{content:"󰇈"}.mdi-dice-1:before{content:"󰇊"}.mdi-dice-1-outline:before{content:"󱅊"}.mdi-dice-2:before{content:"󰇋"}.mdi-dice-2-outline:before{content:"󱅋"}.mdi-dice-3:before{content:"󰇌"}.mdi-dice-3-outline:before{content:"󱅌"}.mdi-dice-4:before{content:"󰇍"}.mdi-dice-4-outline:before{content:"󱅍"}.mdi-dice-5:before{content:"󰇎"}.mdi-dice-5-outline:before{content:"󱅎"}.mdi-dice-6:before{content:"󰇏"}.mdi-dice-6-outline:before{content:"󱅏"}.mdi-dice-d10:before{content:"󱅓"}.mdi-dice-d10-outline:before{content:"󰝯"}.mdi-dice-d12:before{content:"󱅔"}.mdi-dice-d12-outline:before{content:"󰡧"}.mdi-dice-d20:before{content:"󱅕"}.mdi-dice-d20-outline:before{content:"󰗪"}.mdi-dice-d4:before{content:"󱅐"}.mdi-dice-d4-outline:before{content:"󰗫"}.mdi-dice-d6:before{content:"󱅑"}.mdi-dice-d6-outline:before{content:"󰗭"}.mdi-dice-d8:before{content:"󱅒"}.mdi-dice-d8-outline:before{content:"󰗬"}.mdi-dice-multiple:before{content:"󰝮"}.mdi-dice-multiple-outline:before{content:"󱅖"}.mdi-digital-ocean:before{content:"󱈷"}.mdi-dip-switch:before{content:"󰟁"}.mdi-directions:before{content:"󰇐"}.mdi-directions-fork:before{content:"󰙁"}.mdi-disc:before{content:"󰗮"}.mdi-disc-alert:before{content:"󰇑"}.mdi-disc-player:before{content:"󰥠"}.mdi-dishwasher:before{content:"󰪬"}.mdi-dishwasher-alert:before{content:"󱆸"}.mdi-dishwasher-off:before{content:"󱆹"}.mdi-disqus:before{content:"󰇒"}.mdi-distribute-horizontal-center:before{content:"󱇉"}.mdi-distribute-horizontal-left:before{content:"󱇈"}.mdi-distribute-horizontal-right:before{content:"󱇊"}.mdi-distribute-vertical-bottom:before{content:"󱇋"}.mdi-distribute-vertical-center:before{content:"󱇌"}.mdi-distribute-vertical-top:before{content:"󱇍"}.mdi-diversify:before{content:"󱡷"}.mdi-diving:before{content:"󱥷"}.mdi-diving-flippers:before{content:"󰶿"}.mdi-diving-helmet:before{content:"󰷀"}.mdi-diving-scuba:before{content:"󱭷"}.mdi-diving-scuba-flag:before{content:"󰷂"}.mdi-diving-scuba-mask:before{content:"󰷁"}.mdi-diving-scuba-tank:before{content:"󰷃"}.mdi-diving-scuba-tank-multiple:before{content:"󰷄"}.mdi-diving-snorkel:before{content:"󰷅"}.mdi-division:before{content:"󰇔"}.mdi-division-box:before{content:"󰇕"}.mdi-dlna:before{content:"󰩁"}.mdi-dna:before{content:"󰚄"}.mdi-dns:before{content:"󰇖"}.mdi-dns-outline:before{content:"󰮌"}.mdi-dock-bottom:before{content:"󱂩"}.mdi-dock-left:before{content:"󱂪"}.mdi-dock-right:before{content:"󱂫"}.mdi-dock-top:before{content:"󱔓"}.mdi-dock-window:before{content:"󱂬"}.mdi-docker:before{content:"󰡨"}.mdi-doctor:before{content:"󰩂"}.mdi-dog:before{content:"󰩃"}.mdi-dog-service:before{content:"󰪭"}.mdi-dog-side:before{content:"󰩄"}.mdi-dog-side-off:before{content:"󱛮"}.mdi-dolby:before{content:"󰚳"}.mdi-dolly:before{content:"󰺞"}.mdi-dolphin:before{content:"󱢴"}.mdi-domain:before{content:"󰇗"}.mdi-domain-off:before{content:"󰵯"}.mdi-domain-plus:before{content:"󱂭"}.mdi-domain-remove:before{content:"󱂮"}.mdi-domain-switch:before{content:"󱰬"}.mdi-dome-light:before{content:"󱐞"}.mdi-domino-mask:before{content:"󱀣"}.mdi-donkey:before{content:"󰟂"}.mdi-door:before{content:"󰠚"}.mdi-door-closed:before{content:"󰠛"}.mdi-door-closed-cancel:before{content:"󱲓"}.mdi-door-closed-lock:before{content:"󱂯"}.mdi-door-open:before{content:"󰠜"}.mdi-door-sliding:before{content:"󱠞"}.mdi-door-sliding-lock:before{content:"󱠟"}.mdi-door-sliding-open:before{content:"󱠠"}.mdi-doorbell:before{content:"󱋦"}.mdi-doorbell-video:before{content:"󰡩"}.mdi-dot-net:before{content:"󰪮"}.mdi-dots-circle:before{content:"󱥸"}.mdi-dots-grid:before{content:"󱗼"}.mdi-dots-hexagon:before{content:"󱗿"}.mdi-dots-horizontal:before{content:"󰇘"}.mdi-dots-horizontal-circle:before{content:"󰟃"}.mdi-dots-horizontal-circle-outline:before{content:"󰮍"}.mdi-dots-square:before{content:"󱗽"}.mdi-dots-triangle:before{content:"󱗾"}.mdi-dots-vertical:before{content:"󰇙"}.mdi-dots-vertical-circle:before{content:"󰟄"}.mdi-dots-vertical-circle-outline:before{content:"󰮎"}.mdi-download:before{content:"󰇚"}.mdi-download-box:before{content:"󱑢"}.mdi-download-box-outline:before{content:"󱑣"}.mdi-download-circle:before{content:"󱑤"}.mdi-download-circle-outline:before{content:"󱑥"}.mdi-download-lock:before{content:"󱌠"}.mdi-download-lock-outline:before{content:"󱌡"}.mdi-download-multiple:before{content:"󰧩"}.mdi-download-network:before{content:"󰛴"}.mdi-download-network-outline:before{content:"󰱦"}.mdi-download-off:before{content:"󱂰"}.mdi-download-off-outline:before{content:"󱂱"}.mdi-download-outline:before{content:"󰮏"}.mdi-drag:before{content:"󰇛"}.mdi-drag-horizontal:before{content:"󰇜"}.mdi-drag-horizontal-variant:before{content:"󱋰"}.mdi-drag-variant:before{content:"󰮐"}.mdi-drag-vertical:before{content:"󰇝"}.mdi-drag-vertical-variant:before{content:"󱋱"}.mdi-drama-masks:before{content:"󰴂"}.mdi-draw:before{content:"󰽉"}.mdi-draw-pen:before{content:"󱦹"}.mdi-drawing:before{content:"󰇞"}.mdi-drawing-box:before{content:"󰇟"}.mdi-dresser:before{content:"󰽊"}.mdi-dresser-outline:before{content:"󰽋"}.mdi-drone:before{content:"󰇢"}.mdi-dropbox:before{content:"󰇣"}.mdi-drupal:before{content:"󰇤"}.mdi-duck:before{content:"󰇥"}.mdi-dumbbell:before{content:"󰇦"}.mdi-dump-truck:before{content:"󰱧"}.mdi-ear-hearing:before{content:"󰟅"}.mdi-ear-hearing-loop:before{content:"󱫮"}.mdi-ear-hearing-off:before{content:"󰩅"}.mdi-earbuds:before{content:"󱡏"}.mdi-earbuds-off:before{content:"󱡐"}.mdi-earbuds-off-outline:before{content:"󱡑"}.mdi-earbuds-outline:before{content:"󱡒"}.mdi-earth:before{content:"󰇧"}.mdi-earth-arrow-down:before{content:"󱲇"}.mdi-earth-arrow-left:before{content:"󱲈"}.mdi-earth-arrow-right:before{content:"󱌑"}.mdi-earth-arrow-up:before{content:"󱲉"}.mdi-earth-box:before{content:"󰛍"}.mdi-earth-box-minus:before{content:"󱐇"}.mdi-earth-box-off:before{content:"󰛎"}.mdi-earth-box-plus:before{content:"󱐆"}.mdi-earth-box-remove:before{content:"󱐈"}.mdi-earth-minus:before{content:"󱐄"}.mdi-earth-off:before{content:"󰇨"}.mdi-earth-plus:before{content:"󱐃"}.mdi-earth-remove:before{content:"󱐅"}.mdi-egg:before{content:"󰪯"}.mdi-egg-easter:before{content:"󰪰"}.mdi-egg-fried:before{content:"󱡊"}.mdi-egg-off:before{content:"󱏰"}.mdi-egg-off-outline:before{content:"󱏱"}.mdi-egg-outline:before{content:"󱏲"}.mdi-eiffel-tower:before{content:"󱕫"}.mdi-eight-track:before{content:"󰧪"}.mdi-eject:before{content:"󰇪"}.mdi-eject-circle:before{content:"󱬣"}.mdi-eject-circle-outline:before{content:"󱬤"}.mdi-eject-outline:before{content:"󰮑"}.mdi-electric-switch:before{content:"󰺟"}.mdi-electric-switch-closed:before{content:"󱃙"}.mdi-electron-framework:before{content:"󱀤"}.mdi-elephant:before{content:"󰟆"}.mdi-elevation-decline:before{content:"󰇫"}.mdi-elevation-rise:before{content:"󰇬"}.mdi-elevator:before{content:"󰇭"}.mdi-elevator-down:before{content:"󱋂"}.mdi-elevator-passenger:before{content:"󱎁"}.mdi-elevator-passenger-off:before{content:"󱥹"}.mdi-elevator-passenger-off-outline:before{content:"󱥺"}.mdi-elevator-passenger-outline:before{content:"󱥻"}.mdi-elevator-up:before{content:"󱋁"}.mdi-ellipse:before{content:"󰺠"}.mdi-ellipse-outline:before{content:"󰺡"}.mdi-email:before{content:"󰇮"}.mdi-email-alert:before{content:"󰛏"}.mdi-email-alert-outline:before{content:"󰵂"}.mdi-email-arrow-left:before{content:"󱃚"}.mdi-email-arrow-left-outline:before{content:"󱃛"}.mdi-email-arrow-right:before{content:"󱃜"}.mdi-email-arrow-right-outline:before{content:"󱃝"}.mdi-email-box:before{content:"󰴃"}.mdi-email-check:before{content:"󰪱"}.mdi-email-check-outline:before{content:"󰪲"}.mdi-email-edit:before{content:"󰻣"}.mdi-email-edit-outline:before{content:"󰻤"}.mdi-email-fast:before{content:"󱡯"}.mdi-email-fast-outline:before{content:"󱡰"}.mdi-email-heart-outline:before{content:"󱱛"}.mdi-email-lock:before{content:"󰇱"}.mdi-email-lock-outline:before{content:"󱭡"}.mdi-email-mark-as-unread:before{content:"󰮒"}.mdi-email-minus:before{content:"󰻥"}.mdi-email-minus-outline:before{content:"󰻦"}.mdi-email-multiple:before{content:"󰻧"}.mdi-email-multiple-outline:before{content:"󰻨"}.mdi-email-newsletter:before{content:"󰾱"}.mdi-email-off:before{content:"󱏣"}.mdi-email-off-outline:before{content:"󱏤"}.mdi-email-open:before{content:"󰇯"}.mdi-email-open-heart-outline:before{content:"󱱜"}.mdi-email-open-multiple:before{content:"󰻩"}.mdi-email-open-multiple-outline:before{content:"󰻪"}.mdi-email-open-outline:before{content:"󰗯"}.mdi-email-outline:before{content:"󰇰"}.mdi-email-plus:before{content:"󰧫"}.mdi-email-plus-outline:before{content:"󰧬"}.mdi-email-remove:before{content:"󱙡"}.mdi-email-remove-outline:before{content:"󱙢"}.mdi-email-seal:before{content:"󱥛"}.mdi-email-seal-outline:before{content:"󱥜"}.mdi-email-search:before{content:"󰥡"}.mdi-email-search-outline:before{content:"󰥢"}.mdi-email-sync:before{content:"󱋇"}.mdi-email-sync-outline:before{content:"󱋈"}.mdi-email-variant:before{content:"󰗰"}.mdi-ember:before{content:"󰬰"}.mdi-emby:before{content:"󰚴"}.mdi-emoticon:before{content:"󰱨"}.mdi-emoticon-angry:before{content:"󰱩"}.mdi-emoticon-angry-outline:before{content:"󰱪"}.mdi-emoticon-confused:before{content:"󱃞"}.mdi-emoticon-confused-outline:before{content:"󱃟"}.mdi-emoticon-cool:before{content:"󰱫"}.mdi-emoticon-cool-outline:before{content:"󰇳"}.mdi-emoticon-cry:before{content:"󰱬"}.mdi-emoticon-cry-outline:before{content:"󰱭"}.mdi-emoticon-dead:before{content:"󰱮"}.mdi-emoticon-dead-outline:before{content:"󰚛"}.mdi-emoticon-devil:before{content:"󰱯"}.mdi-emoticon-devil-outline:before{content:"󰇴"}.mdi-emoticon-excited:before{content:"󰱰"}.mdi-emoticon-excited-outline:before{content:"󰚜"}.mdi-emoticon-frown:before{content:"󰽌"}.mdi-emoticon-frown-outline:before{content:"󰽍"}.mdi-emoticon-happy:before{content:"󰱱"}.mdi-emoticon-happy-outline:before{content:"󰇵"}.mdi-emoticon-kiss:before{content:"󰱲"}.mdi-emoticon-kiss-outline:before{content:"󰱳"}.mdi-emoticon-lol:before{content:"󱈔"}.mdi-emoticon-lol-outline:before{content:"󱈕"}.mdi-emoticon-minus:before{content:"󱲲"}.mdi-emoticon-minus-outline:before{content:"󱲳"}.mdi-emoticon-neutral:before{content:"󰱴"}.mdi-emoticon-neutral-outline:before{content:"󰇶"}.mdi-emoticon-outline:before{content:"󰇲"}.mdi-emoticon-plus:before{content:"󱲴"}.mdi-emoticon-plus-outline:before{content:"󱲵"}.mdi-emoticon-poop:before{content:"󰇷"}.mdi-emoticon-poop-outline:before{content:"󰱵"}.mdi-emoticon-remove:before{content:"󱲶"}.mdi-emoticon-remove-outline:before{content:"󱲷"}.mdi-emoticon-sad:before{content:"󰱶"}.mdi-emoticon-sad-outline:before{content:"󰇸"}.mdi-emoticon-sick:before{content:"󱕼"}.mdi-emoticon-sick-outline:before{content:"󱕽"}.mdi-emoticon-tongue:before{content:"󰇹"}.mdi-emoticon-tongue-outline:before{content:"󰱷"}.mdi-emoticon-wink:before{content:"󰱸"}.mdi-emoticon-wink-outline:before{content:"󰱹"}.mdi-engine:before{content:"󰇺"}.mdi-engine-off:before{content:"󰩆"}.mdi-engine-off-outline:before{content:"󰩇"}.mdi-engine-outline:before{content:"󰇻"}.mdi-epsilon:before{content:"󱃠"}.mdi-equal:before{content:"󰇼"}.mdi-equal-box:before{content:"󰇽"}.mdi-equalizer:before{content:"󰺢"}.mdi-equalizer-outline:before{content:"󰺣"}.mdi-eraser:before{content:"󰇾"}.mdi-eraser-variant:before{content:"󰙂"}.mdi-escalator:before{content:"󰇿"}.mdi-escalator-box:before{content:"󱎙"}.mdi-escalator-down:before{content:"󱋀"}.mdi-escalator-up:before{content:"󱊿"}.mdi-eslint:before{content:"󰱺"}.mdi-et:before{content:"󰪳"}.mdi-ethereum:before{content:"󰡪"}.mdi-ethernet:before{content:"󰈀"}.mdi-ethernet-cable:before{content:"󰈁"}.mdi-ethernet-cable-off:before{content:"󰈂"}.mdi-ev-plug-ccs1:before{content:"󱔙"}.mdi-ev-plug-ccs2:before{content:"󱔚"}.mdi-ev-plug-chademo:before{content:"󱔛"}.mdi-ev-plug-tesla:before{content:"󱔜"}.mdi-ev-plug-type1:before{content:"󱔝"}.mdi-ev-plug-type2:before{content:"󱔞"}.mdi-ev-station:before{content:"󰗱"}.mdi-evernote:before{content:"󰈄"}.mdi-excavator:before{content:"󱀥"}.mdi-exclamation:before{content:"󰈅"}.mdi-exclamation-thick:before{content:"󱈸"}.mdi-exit-run:before{content:"󰩈"}.mdi-exit-to-app:before{content:"󰈆"}.mdi-expand-all:before{content:"󰪴"}.mdi-expand-all-outline:before{content:"󰪵"}.mdi-expansion-card:before{content:"󰢮"}.mdi-expansion-card-variant:before{content:"󰾲"}.mdi-exponent:before{content:"󰥣"}.mdi-exponent-box:before{content:"󰥤"}.mdi-export:before{content:"󰈇"}.mdi-export-variant:before{content:"󰮓"}.mdi-eye:before{content:"󰈈"}.mdi-eye-arrow-left:before{content:"󱣽"}.mdi-eye-arrow-left-outline:before{content:"󱣾"}.mdi-eye-arrow-right:before{content:"󱣿"}.mdi-eye-arrow-right-outline:before{content:"󱤀"}.mdi-eye-check:before{content:"󰴄"}.mdi-eye-check-outline:before{content:"󰴅"}.mdi-eye-circle:before{content:"󰮔"}.mdi-eye-circle-outline:before{content:"󰮕"}.mdi-eye-closed:before{content:"󱲣"}.mdi-eye-lock:before{content:"󱰆"}.mdi-eye-lock-open:before{content:"󱰇"}.mdi-eye-lock-open-outline:before{content:"󱰈"}.mdi-eye-lock-outline:before{content:"󱰉"}.mdi-eye-minus:before{content:"󱀦"}.mdi-eye-minus-outline:before{content:"󱀧"}.mdi-eye-off:before{content:"󰈉"}.mdi-eye-off-outline:before{content:"󰛑"}.mdi-eye-outline:before{content:"󰛐"}.mdi-eye-plus:before{content:"󰡫"}.mdi-eye-plus-outline:before{content:"󰡬"}.mdi-eye-refresh:before{content:"󱥼"}.mdi-eye-refresh-outline:before{content:"󱥽"}.mdi-eye-remove:before{content:"󱗣"}.mdi-eye-remove-outline:before{content:"󱗤"}.mdi-eye-settings:before{content:"󰡭"}.mdi-eye-settings-outline:before{content:"󰡮"}.mdi-eyedropper:before{content:"󰈊"}.mdi-eyedropper-minus:before{content:"󱏝"}.mdi-eyedropper-off:before{content:"󱏟"}.mdi-eyedropper-plus:before{content:"󱏜"}.mdi-eyedropper-remove:before{content:"󱏞"}.mdi-eyedropper-variant:before{content:"󰈋"}.mdi-face-agent:before{content:"󰵰"}.mdi-face-man:before{content:"󰙃"}.mdi-face-man-outline:before{content:"󰮖"}.mdi-face-man-profile:before{content:"󰙄"}.mdi-face-man-shimmer:before{content:"󱗌"}.mdi-face-man-shimmer-outline:before{content:"󱗍"}.mdi-face-mask:before{content:"󱖆"}.mdi-face-mask-outline:before{content:"󱖇"}.mdi-face-recognition:before{content:"󰱻"}.mdi-face-woman:before{content:"󱁷"}.mdi-face-woman-outline:before{content:"󱁸"}.mdi-face-woman-profile:before{content:"󱁶"}.mdi-face-woman-shimmer:before{content:"󱗎"}.mdi-face-woman-shimmer-outline:before{content:"󱗏"}.mdi-facebook:before{content:"󰈌"}.mdi-facebook-gaming:before{content:"󰟝"}.mdi-facebook-messenger:before{content:"󰈎"}.mdi-facebook-workplace:before{content:"󰬱"}.mdi-factory:before{content:"󰈏"}.mdi-family-tree:before{content:"󱘎"}.mdi-fan:before{content:"󰈐"}.mdi-fan-alert:before{content:"󱑬"}.mdi-fan-auto:before{content:"󱜝"}.mdi-fan-chevron-down:before{content:"󱑭"}.mdi-fan-chevron-up:before{content:"󱑮"}.mdi-fan-clock:before{content:"󱨺"}.mdi-fan-minus:before{content:"󱑰"}.mdi-fan-off:before{content:"󰠝"}.mdi-fan-plus:before{content:"󱑯"}.mdi-fan-remove:before{content:"󱑱"}.mdi-fan-speed-1:before{content:"󱑲"}.mdi-fan-speed-2:before{content:"󱑳"}.mdi-fan-speed-3:before{content:"󱑴"}.mdi-fast-forward:before{content:"󰈑"}.mdi-fast-forward-10:before{content:"󰵱"}.mdi-fast-forward-15:before{content:"󱤺"}.mdi-fast-forward-30:before{content:"󰴆"}.mdi-fast-forward-45:before{content:"󱬒"}.mdi-fast-forward-5:before{content:"󱇸"}.mdi-fast-forward-60:before{content:"󱘋"}.mdi-fast-forward-outline:before{content:"󰛒"}.mdi-faucet:before{content:"󱬩"}.mdi-faucet-variant:before{content:"󱬪"}.mdi-fax:before{content:"󰈒"}.mdi-feather:before{content:"󰛓"}.mdi-feature-search:before{content:"󰩉"}.mdi-feature-search-outline:before{content:"󰩊"}.mdi-fedora:before{content:"󰣛"}.mdi-fence:before{content:"󱞚"}.mdi-fence-electric:before{content:"󱟶"}.mdi-fencing:before{content:"󱓁"}.mdi-ferris-wheel:before{content:"󰺤"}.mdi-ferry:before{content:"󰈓"}.mdi-file:before{content:"󰈔"}.mdi-file-account:before{content:"󰜻"}.mdi-file-account-outline:before{content:"󱀨"}.mdi-file-alert:before{content:"󰩋"}.mdi-file-alert-outline:before{content:"󰩌"}.mdi-file-arrow-left-right:before{content:"󱪓"}.mdi-file-arrow-left-right-outline:before{content:"󱪔"}.mdi-file-arrow-up-down:before{content:"󱪕"}.mdi-file-arrow-up-down-outline:before{content:"󱪖"}.mdi-file-cabinet:before{content:"󰪶"}.mdi-file-cad:before{content:"󰻫"}.mdi-file-cad-box:before{content:"󰻬"}.mdi-file-cancel:before{content:"󰷆"}.mdi-file-cancel-outline:before{content:"󰷇"}.mdi-file-certificate:before{content:"󱆆"}.mdi-file-certificate-outline:before{content:"󱆇"}.mdi-file-chart:before{content:"󰈕"}.mdi-file-chart-check:before{content:"󱧆"}.mdi-file-chart-check-outline:before{content:"󱧇"}.mdi-file-chart-outline:before{content:"󱀩"}.mdi-file-check:before{content:"󰈖"}.mdi-file-check-outline:before{content:"󰸩"}.mdi-file-clock:before{content:"󱋡"}.mdi-file-clock-outline:before{content:"󱋢"}.mdi-file-cloud:before{content:"󰈗"}.mdi-file-cloud-outline:before{content:"󱀪"}.mdi-file-code:before{content:"󰈮"}.mdi-file-code-outline:before{content:"󱀫"}.mdi-file-cog:before{content:"󱁻"}.mdi-file-cog-outline:before{content:"󱁼"}.mdi-file-compare:before{content:"󰢪"}.mdi-file-delimited:before{content:"󰈘"}.mdi-file-delimited-outline:before{content:"󰺥"}.mdi-file-document:before{content:"󰈙"}.mdi-file-document-alert:before{content:"󱪗"}.mdi-file-document-alert-outline:before{content:"󱪘"}.mdi-file-document-arrow-right:before{content:"󱰏"}.mdi-file-document-arrow-right-outline:before{content:"󱰐"}.mdi-file-document-check:before{content:"󱪙"}.mdi-file-document-check-outline:before{content:"󱪚"}.mdi-file-document-edit:before{content:"󰷈"}.mdi-file-document-edit-outline:before{content:"󰷉"}.mdi-file-document-minus:before{content:"󱪛"}.mdi-file-document-minus-outline:before{content:"󱪜"}.mdi-file-document-multiple:before{content:"󱔗"}.mdi-file-document-multiple-outline:before{content:"󱔘"}.mdi-file-document-outline:before{content:"󰧮"}.mdi-file-document-plus:before{content:"󱪝"}.mdi-file-document-plus-outline:before{content:"󱪞"}.mdi-file-document-refresh:before{content:"󱱺"}.mdi-file-document-refresh-outline:before{content:"󱱻"}.mdi-file-document-remove:before{content:"󱪟"}.mdi-file-document-remove-outline:before{content:"󱪠"}.mdi-file-download:before{content:"󰥥"}.mdi-file-download-outline:before{content:"󰥦"}.mdi-file-edit:before{content:"󱇧"}.mdi-file-edit-outline:before{content:"󱇨"}.mdi-file-excel:before{content:"󰈛"}.mdi-file-excel-box:before{content:"󰈜"}.mdi-file-excel-box-outline:before{content:"󱀬"}.mdi-file-excel-outline:before{content:"󱀭"}.mdi-file-export:before{content:"󰈝"}.mdi-file-export-outline:before{content:"󱀮"}.mdi-file-eye:before{content:"󰷊"}.mdi-file-eye-outline:before{content:"󰷋"}.mdi-file-find:before{content:"󰈞"}.mdi-file-find-outline:before{content:"󰮗"}.mdi-file-gif-box:before{content:"󰵸"}.mdi-file-hidden:before{content:"󰘓"}.mdi-file-image:before{content:"󰈟"}.mdi-file-image-marker:before{content:"󱝲"}.mdi-file-image-marker-outline:before{content:"󱝳"}.mdi-file-image-minus:before{content:"󱤻"}.mdi-file-image-minus-outline:before{content:"󱤼"}.mdi-file-image-outline:before{content:"󰺰"}.mdi-file-image-plus:before{content:"󱤽"}.mdi-file-image-plus-outline:before{content:"󱤾"}.mdi-file-image-remove:before{content:"󱤿"}.mdi-file-image-remove-outline:before{content:"󱥀"}.mdi-file-import:before{content:"󰈠"}.mdi-file-import-outline:before{content:"󱀯"}.mdi-file-jpg-box:before{content:"󰈥"}.mdi-file-key:before{content:"󱆄"}.mdi-file-key-outline:before{content:"󱆅"}.mdi-file-link:before{content:"󱅷"}.mdi-file-link-outline:before{content:"󱅸"}.mdi-file-lock:before{content:"󰈡"}.mdi-file-lock-open:before{content:"󱧈"}.mdi-file-lock-open-outline:before{content:"󱧉"}.mdi-file-lock-outline:before{content:"󱀰"}.mdi-file-marker:before{content:"󱝴"}.mdi-file-marker-outline:before{content:"󱝵"}.mdi-file-minus:before{content:"󱪡"}.mdi-file-minus-outline:before{content:"󱪢"}.mdi-file-move:before{content:"󰪹"}.mdi-file-move-outline:before{content:"󱀱"}.mdi-file-multiple:before{content:"󰈢"}.mdi-file-multiple-outline:before{content:"󱀲"}.mdi-file-music:before{content:"󰈣"}.mdi-file-music-outline:before{content:"󰸪"}.mdi-file-outline:before{content:"󰈤"}.mdi-file-pdf-box:before{content:"󰈦"}.mdi-file-percent:before{content:"󰠞"}.mdi-file-percent-outline:before{content:"󱀳"}.mdi-file-phone:before{content:"󱅹"}.mdi-file-phone-outline:before{content:"󱅺"}.mdi-file-plus:before{content:"󰝒"}.mdi-file-plus-outline:before{content:"󰻭"}.mdi-file-png-box:before{content:"󰸭"}.mdi-file-powerpoint:before{content:"󰈧"}.mdi-file-powerpoint-box:before{content:"󰈨"}.mdi-file-powerpoint-box-outline:before{content:"󱀴"}.mdi-file-powerpoint-outline:before{content:"󱀵"}.mdi-file-presentation-box:before{content:"󰈩"}.mdi-file-question:before{content:"󰡯"}.mdi-file-question-outline:before{content:"󱀶"}.mdi-file-refresh:before{content:"󰤘"}.mdi-file-refresh-outline:before{content:"󰕁"}.mdi-file-remove:before{content:"󰮘"}.mdi-file-remove-outline:before{content:"󱀷"}.mdi-file-replace:before{content:"󰬲"}.mdi-file-replace-outline:before{content:"󰬳"}.mdi-file-restore:before{content:"󰙰"}.mdi-file-restore-outline:before{content:"󱀸"}.mdi-file-rotate-left:before{content:"󱨻"}.mdi-file-rotate-left-outline:before{content:"󱨼"}.mdi-file-rotate-right:before{content:"󱨽"}.mdi-file-rotate-right-outline:before{content:"󱨾"}.mdi-file-search:before{content:"󰱼"}.mdi-file-search-outline:before{content:"󰱽"}.mdi-file-send:before{content:"󰈪"}.mdi-file-send-outline:before{content:"󱀹"}.mdi-file-settings:before{content:"󱁹"}.mdi-file-settings-outline:before{content:"󱁺"}.mdi-file-sign:before{content:"󱧃"}.mdi-file-star:before{content:"󱀺"}.mdi-file-star-four-points:before{content:"󱰭"}.mdi-file-star-four-points-outline:before{content:"󱰮"}.mdi-file-star-outline:before{content:"󱀻"}.mdi-file-swap:before{content:"󰾴"}.mdi-file-swap-outline:before{content:"󰾵"}.mdi-file-sync:before{content:"󱈖"}.mdi-file-sync-outline:before{content:"󱈗"}.mdi-file-table:before{content:"󰱾"}.mdi-file-table-box:before{content:"󱃡"}.mdi-file-table-box-multiple:before{content:"󱃢"}.mdi-file-table-box-multiple-outline:before{content:"󱃣"}.mdi-file-table-box-outline:before{content:"󱃤"}.mdi-file-table-outline:before{content:"󰱿"}.mdi-file-tree:before{content:"󰙅"}.mdi-file-tree-outline:before{content:"󱏒"}.mdi-file-undo:before{content:"󰣜"}.mdi-file-undo-outline:before{content:"󱀼"}.mdi-file-upload:before{content:"󰩍"}.mdi-file-upload-outline:before{content:"󰩎"}.mdi-file-video:before{content:"󰈫"}.mdi-file-video-outline:before{content:"󰸬"}.mdi-file-word:before{content:"󰈬"}.mdi-file-word-box:before{content:"󰈭"}.mdi-file-word-box-outline:before{content:"󱀽"}.mdi-file-word-outline:before{content:"󱀾"}.mdi-file-xml-box:before{content:"󱭋"}.mdi-film:before{content:"󰈯"}.mdi-filmstrip:before{content:"󰈰"}.mdi-filmstrip-box:before{content:"󰌲"}.mdi-filmstrip-box-multiple:before{content:"󰴘"}.mdi-filmstrip-off:before{content:"󰈱"}.mdi-filter:before{content:"󰈲"}.mdi-filter-check:before{content:"󱣬"}.mdi-filter-check-outline:before{content:"󱣭"}.mdi-filter-cog:before{content:"󱪣"}.mdi-filter-cog-outline:before{content:"󱪤"}.mdi-filter-menu:before{content:"󱃥"}.mdi-filter-menu-outline:before{content:"󱃦"}.mdi-filter-minus:before{content:"󰻮"}.mdi-filter-minus-outline:before{content:"󰻯"}.mdi-filter-multiple:before{content:"󱨿"}.mdi-filter-multiple-outline:before{content:"󱩀"}.mdi-filter-off:before{content:"󱓯"}.mdi-filter-off-outline:before{content:"󱓰"}.mdi-filter-outline:before{content:"󰈳"}.mdi-filter-plus:before{content:"󰻰"}.mdi-filter-plus-outline:before{content:"󰻱"}.mdi-filter-remove:before{content:"󰈴"}.mdi-filter-remove-outline:before{content:"󰈵"}.mdi-filter-settings:before{content:"󱪥"}.mdi-filter-settings-outline:before{content:"󱪦"}.mdi-filter-variant:before{content:"󰈶"}.mdi-filter-variant-minus:before{content:"󱄒"}.mdi-filter-variant-plus:before{content:"󱄓"}.mdi-filter-variant-remove:before{content:"󱀿"}.mdi-finance:before{content:"󰠟"}.mdi-find-replace:before{content:"󰛔"}.mdi-fingerprint:before{content:"󰈷"}.mdi-fingerprint-off:before{content:"󰺱"}.mdi-fire:before{content:"󰈸"}.mdi-fire-alert:before{content:"󱗗"}.mdi-fire-circle:before{content:"󱠇"}.mdi-fire-extinguisher:before{content:"󰻲"}.mdi-fire-hydrant:before{content:"󱄷"}.mdi-fire-hydrant-alert:before{content:"󱄸"}.mdi-fire-hydrant-off:before{content:"󱄹"}.mdi-fire-off:before{content:"󱜢"}.mdi-fire-station:before{content:"󱳃"}.mdi-fire-truck:before{content:"󰢫"}.mdi-firebase:before{content:"󰥧"}.mdi-firefox:before{content:"󰈹"}.mdi-fireplace:before{content:"󰸮"}.mdi-fireplace-off:before{content:"󰸯"}.mdi-firewire:before{content:"󰖾"}.mdi-firework:before{content:"󰸰"}.mdi-firework-off:before{content:"󱜣"}.mdi-fish:before{content:"󰈺"}.mdi-fish-off:before{content:"󱏳"}.mdi-fishbowl:before{content:"󰻳"}.mdi-fishbowl-outline:before{content:"󰻴"}.mdi-fit-to-page:before{content:"󰻵"}.mdi-fit-to-page-outline:before{content:"󰻶"}.mdi-fit-to-screen:before{content:"󱣴"}.mdi-fit-to-screen-outline:before{content:"󱣵"}.mdi-flag:before{content:"󰈻"}.mdi-flag-checkered:before{content:"󰈼"}.mdi-flag-minus:before{content:"󰮙"}.mdi-flag-minus-outline:before{content:"󱂲"}.mdi-flag-off:before{content:"󱣮"}.mdi-flag-off-outline:before{content:"󱣯"}.mdi-flag-outline:before{content:"󰈽"}.mdi-flag-plus:before{content:"󰮚"}.mdi-flag-plus-outline:before{content:"󱂳"}.mdi-flag-remove:before{content:"󰮛"}.mdi-flag-remove-outline:before{content:"󱂴"}.mdi-flag-triangle:before{content:"󰈿"}.mdi-flag-variant:before{content:"󰉀"}.mdi-flag-variant-minus:before{content:"󱮴"}.mdi-flag-variant-minus-outline:before{content:"󱮵"}.mdi-flag-variant-off:before{content:"󱮰"}.mdi-flag-variant-off-outline:before{content:"󱮱"}.mdi-flag-variant-outline:before{content:"󰈾"}.mdi-flag-variant-plus:before{content:"󱮲"}.mdi-flag-variant-plus-outline:before{content:"󱮳"}.mdi-flag-variant-remove:before{content:"󱮶"}.mdi-flag-variant-remove-outline:before{content:"󱮷"}.mdi-flare:before{content:"󰵲"}.mdi-flash:before{content:"󰉁"}.mdi-flash-alert:before{content:"󰻷"}.mdi-flash-alert-outline:before{content:"󰻸"}.mdi-flash-auto:before{content:"󰉂"}.mdi-flash-off:before{content:"󰉃"}.mdi-flash-off-outline:before{content:"󱭅"}.mdi-flash-outline:before{content:"󰛕"}.mdi-flash-red-eye:before{content:"󰙻"}.mdi-flash-triangle:before{content:"󱬝"}.mdi-flash-triangle-outline:before{content:"󱬞"}.mdi-flashlight:before{content:"󰉄"}.mdi-flashlight-off:before{content:"󰉅"}.mdi-flask:before{content:"󰂓"}.mdi-flask-empty:before{content:"󰂔"}.mdi-flask-empty-minus:before{content:"󱈺"}.mdi-flask-empty-minus-outline:before{content:"󱈻"}.mdi-flask-empty-off:before{content:"󱏴"}.mdi-flask-empty-off-outline:before{content:"󱏵"}.mdi-flask-empty-outline:before{content:"󰂕"}.mdi-flask-empty-plus:before{content:"󱈼"}.mdi-flask-empty-plus-outline:before{content:"󱈽"}.mdi-flask-empty-remove:before{content:"󱈾"}.mdi-flask-empty-remove-outline:before{content:"󱈿"}.mdi-flask-minus:before{content:"󱉀"}.mdi-flask-minus-outline:before{content:"󱉁"}.mdi-flask-off:before{content:"󱏶"}.mdi-flask-off-outline:before{content:"󱏷"}.mdi-flask-outline:before{content:"󰂖"}.mdi-flask-plus:before{content:"󱉂"}.mdi-flask-plus-outline:before{content:"󱉃"}.mdi-flask-remove:before{content:"󱉄"}.mdi-flask-remove-outline:before{content:"󱉅"}.mdi-flask-round-bottom:before{content:"󱉋"}.mdi-flask-round-bottom-empty:before{content:"󱉌"}.mdi-flask-round-bottom-empty-outline:before{content:"󱉍"}.mdi-flask-round-bottom-outline:before{content:"󱉎"}.mdi-fleur-de-lis:before{content:"󱌃"}.mdi-flip-horizontal:before{content:"󱃧"}.mdi-flip-to-back:before{content:"󰉇"}.mdi-flip-to-front:before{content:"󰉈"}.mdi-flip-vertical:before{content:"󱃨"}.mdi-floor-lamp:before{content:"󰣝"}.mdi-floor-lamp-dual:before{content:"󱁀"}.mdi-floor-lamp-dual-outline:before{content:"󱟎"}.mdi-floor-lamp-outline:before{content:"󱟈"}.mdi-floor-lamp-torchiere:before{content:"󱝇"}.mdi-floor-lamp-torchiere-outline:before{content:"󱟖"}.mdi-floor-lamp-torchiere-variant:before{content:"󱁁"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"󱟏"}.mdi-floor-plan:before{content:"󰠡"}.mdi-floppy:before{content:"󰉉"}.mdi-floppy-variant:before{content:"󰧯"}.mdi-flower:before{content:"󰉊"}.mdi-flower-outline:before{content:"󰧰"}.mdi-flower-pollen:before{content:"󱢅"}.mdi-flower-pollen-outline:before{content:"󱢆"}.mdi-flower-poppy:before{content:"󰴈"}.mdi-flower-tulip:before{content:"󰧱"}.mdi-flower-tulip-outline:before{content:"󰧲"}.mdi-focus-auto:before{content:"󰽎"}.mdi-focus-field:before{content:"󰽏"}.mdi-focus-field-horizontal:before{content:"󰽐"}.mdi-focus-field-vertical:before{content:"󰽑"}.mdi-folder:before{content:"󰉋"}.mdi-folder-account:before{content:"󰉌"}.mdi-folder-account-outline:before{content:"󰮜"}.mdi-folder-alert:before{content:"󰷌"}.mdi-folder-alert-outline:before{content:"󰷍"}.mdi-folder-arrow-down:before{content:"󱧨"}.mdi-folder-arrow-down-outline:before{content:"󱧩"}.mdi-folder-arrow-left:before{content:"󱧪"}.mdi-folder-arrow-left-outline:before{content:"󱧫"}.mdi-folder-arrow-left-right:before{content:"󱧬"}.mdi-folder-arrow-left-right-outline:before{content:"󱧭"}.mdi-folder-arrow-right:before{content:"󱧮"}.mdi-folder-arrow-right-outline:before{content:"󱧯"}.mdi-folder-arrow-up:before{content:"󱧰"}.mdi-folder-arrow-up-down:before{content:"󱧱"}.mdi-folder-arrow-up-down-outline:before{content:"󱧲"}.mdi-folder-arrow-up-outline:before{content:"󱧳"}.mdi-folder-cancel:before{content:"󱧴"}.mdi-folder-cancel-outline:before{content:"󱧵"}.mdi-folder-check:before{content:"󱥾"}.mdi-folder-check-outline:before{content:"󱥿"}.mdi-folder-clock:before{content:"󰪺"}.mdi-folder-clock-outline:before{content:"󰪻"}.mdi-folder-cog:before{content:"󱁿"}.mdi-folder-cog-outline:before{content:"󱂀"}.mdi-folder-download:before{content:"󰉍"}.mdi-folder-download-outline:before{content:"󱃩"}.mdi-folder-edit:before{content:"󰣞"}.mdi-folder-edit-outline:before{content:"󰷎"}.mdi-folder-eye:before{content:"󱞊"}.mdi-folder-eye-outline:before{content:"󱞋"}.mdi-folder-file:before{content:"󱧶"}.mdi-folder-file-outline:before{content:"󱧷"}.mdi-folder-google-drive:before{content:"󰉎"}.mdi-folder-heart:before{content:"󱃪"}.mdi-folder-heart-outline:before{content:"󱃫"}.mdi-folder-hidden:before{content:"󱞞"}.mdi-folder-home:before{content:"󱂵"}.mdi-folder-home-outline:before{content:"󱂶"}.mdi-folder-image:before{content:"󰉏"}.mdi-folder-information:before{content:"󱂷"}.mdi-folder-information-outline:before{content:"󱂸"}.mdi-folder-key:before{content:"󰢬"}.mdi-folder-key-network:before{content:"󰢭"}.mdi-folder-key-network-outline:before{content:"󰲀"}.mdi-folder-key-outline:before{content:"󱃬"}.mdi-folder-lock:before{content:"󰉐"}.mdi-folder-lock-open:before{content:"󰉑"}.mdi-folder-lock-open-outline:before{content:"󱪧"}.mdi-folder-lock-outline:before{content:"󱪨"}.mdi-folder-marker:before{content:"󱉭"}.mdi-folder-marker-outline:before{content:"󱉮"}.mdi-folder-minus:before{content:"󱭉"}.mdi-folder-minus-outline:before{content:"󱭊"}.mdi-folder-move:before{content:"󰉒"}.mdi-folder-move-outline:before{content:"󱉆"}.mdi-folder-multiple:before{content:"󰉓"}.mdi-folder-multiple-image:before{content:"󰉔"}.mdi-folder-multiple-outline:before{content:"󰉕"}.mdi-folder-multiple-plus:before{content:"󱑾"}.mdi-folder-multiple-plus-outline:before{content:"󱑿"}.mdi-folder-music:before{content:"󱍙"}.mdi-folder-music-outline:before{content:"󱍚"}.mdi-folder-network:before{content:"󰡰"}.mdi-folder-network-outline:before{content:"󰲁"}.mdi-folder-off:before{content:"󱧸"}.mdi-folder-off-outline:before{content:"󱧹"}.mdi-folder-open:before{content:"󰝰"}.mdi-folder-open-outline:before{content:"󰷏"}.mdi-folder-outline:before{content:"󰉖"}.mdi-folder-play:before{content:"󱧺"}.mdi-folder-play-outline:before{content:"󱧻"}.mdi-folder-plus:before{content:"󰉗"}.mdi-folder-plus-outline:before{content:"󰮝"}.mdi-folder-pound:before{content:"󰴉"}.mdi-folder-pound-outline:before{content:"󰴊"}.mdi-folder-question:before{content:"󱧊"}.mdi-folder-question-outline:before{content:"󱧋"}.mdi-folder-refresh:before{content:"󰝉"}.mdi-folder-refresh-outline:before{content:"󰕂"}.mdi-folder-remove:before{content:"󰉘"}.mdi-folder-remove-outline:before{content:"󰮞"}.mdi-folder-search:before{content:"󰥨"}.mdi-folder-search-outline:before{content:"󰥩"}.mdi-folder-settings:before{content:"󱁽"}.mdi-folder-settings-outline:before{content:"󱁾"}.mdi-folder-star:before{content:"󰚝"}.mdi-folder-star-multiple:before{content:"󱏓"}.mdi-folder-star-multiple-outline:before{content:"󱏔"}.mdi-folder-star-outline:before{content:"󰮟"}.mdi-folder-swap:before{content:"󰾶"}.mdi-folder-swap-outline:before{content:"󰾷"}.mdi-folder-sync:before{content:"󰴋"}.mdi-folder-sync-outline:before{content:"󰴌"}.mdi-folder-table:before{content:"󱋣"}.mdi-folder-table-outline:before{content:"󱋤"}.mdi-folder-text:before{content:"󰲂"}.mdi-folder-text-outline:before{content:"󰲃"}.mdi-folder-upload:before{content:"󰉙"}.mdi-folder-upload-outline:before{content:"󱃭"}.mdi-folder-wrench:before{content:"󱧼"}.mdi-folder-wrench-outline:before{content:"󱧽"}.mdi-folder-zip:before{content:"󰛫"}.mdi-folder-zip-outline:before{content:"󰞹"}.mdi-font-awesome:before{content:"󰀺"}.mdi-food:before{content:"󰉚"}.mdi-food-apple:before{content:"󰉛"}.mdi-food-apple-outline:before{content:"󰲄"}.mdi-food-croissant:before{content:"󰟈"}.mdi-food-drumstick:before{content:"󱐟"}.mdi-food-drumstick-off:before{content:"󱑨"}.mdi-food-drumstick-off-outline:before{content:"󱑩"}.mdi-food-drumstick-outline:before{content:"󱐠"}.mdi-food-fork-drink:before{content:"󰗲"}.mdi-food-halal:before{content:"󱕲"}.mdi-food-hot-dog:before{content:"󱡋"}.mdi-food-kosher:before{content:"󱕳"}.mdi-food-off:before{content:"󰗳"}.mdi-food-off-outline:before{content:"󱤕"}.mdi-food-outline:before{content:"󱤖"}.mdi-food-steak:before{content:"󱑪"}.mdi-food-steak-off:before{content:"󱑫"}.mdi-food-takeout-box:before{content:"󱠶"}.mdi-food-takeout-box-outline:before{content:"󱠷"}.mdi-food-turkey:before{content:"󱜜"}.mdi-food-variant:before{content:"󰉜"}.mdi-food-variant-off:before{content:"󱏥"}.mdi-foot-print:before{content:"󰽒"}.mdi-football:before{content:"󰉝"}.mdi-football-australian:before{content:"󰉞"}.mdi-football-helmet:before{content:"󰉟"}.mdi-forest:before{content:"󱢗"}.mdi-forest-outline:before{content:"󱱣"}.mdi-forklift:before{content:"󰟉"}.mdi-form-dropdown:before{content:"󱐀"}.mdi-form-select:before{content:"󱐁"}.mdi-form-textarea:before{content:"󱂕"}.mdi-form-textbox:before{content:"󰘎"}.mdi-form-textbox-lock:before{content:"󱍝"}.mdi-form-textbox-password:before{content:"󰟵"}.mdi-format-align-bottom:before{content:"󰝓"}.mdi-format-align-center:before{content:"󰉠"}.mdi-format-align-justify:before{content:"󰉡"}.mdi-format-align-left:before{content:"󰉢"}.mdi-format-align-middle:before{content:"󰝔"}.mdi-format-align-right:before{content:"󰉣"}.mdi-format-align-top:before{content:"󰝕"}.mdi-format-annotation-minus:before{content:"󰪼"}.mdi-format-annotation-plus:before{content:"󰙆"}.mdi-format-bold:before{content:"󰉤"}.mdi-format-clear:before{content:"󰉥"}.mdi-format-color-fill:before{content:"󰉦"}.mdi-format-color-highlight:before{content:"󰸱"}.mdi-format-color-marker-cancel:before{content:"󱌓"}.mdi-format-color-text:before{content:"󰚞"}.mdi-format-columns:before{content:"󰣟"}.mdi-format-float-center:before{content:"󰉧"}.mdi-format-float-left:before{content:"󰉨"}.mdi-format-float-none:before{content:"󰉩"}.mdi-format-float-right:before{content:"󰉪"}.mdi-format-font:before{content:"󰛖"}.mdi-format-font-size-decrease:before{content:"󰧳"}.mdi-format-font-size-increase:before{content:"󰧴"}.mdi-format-header-1:before{content:"󰉫"}.mdi-format-header-2:before{content:"󰉬"}.mdi-format-header-3:before{content:"󰉭"}.mdi-format-header-4:before{content:"󰉮"}.mdi-format-header-5:before{content:"󰉯"}.mdi-format-header-6:before{content:"󰉰"}.mdi-format-header-decrease:before{content:"󰉱"}.mdi-format-header-equal:before{content:"󰉲"}.mdi-format-header-increase:before{content:"󰉳"}.mdi-format-header-pound:before{content:"󰉴"}.mdi-format-horizontal-align-center:before{content:"󰘞"}.mdi-format-horizontal-align-left:before{content:"󰘟"}.mdi-format-horizontal-align-right:before{content:"󰘠"}.mdi-format-indent-decrease:before{content:"󰉵"}.mdi-format-indent-increase:before{content:"󰉶"}.mdi-format-italic:before{content:"󰉷"}.mdi-format-letter-case:before{content:"󰬴"}.mdi-format-letter-case-lower:before{content:"󰬵"}.mdi-format-letter-case-upper:before{content:"󰬶"}.mdi-format-letter-ends-with:before{content:"󰾸"}.mdi-format-letter-matches:before{content:"󰾹"}.mdi-format-letter-spacing:before{content:"󱥖"}.mdi-format-letter-spacing-variant:before{content:"󱫻"}.mdi-format-letter-starts-with:before{content:"󰾺"}.mdi-format-line-height:before{content:"󱫼"}.mdi-format-line-spacing:before{content:"󰉸"}.mdi-format-line-style:before{content:"󰗈"}.mdi-format-line-weight:before{content:"󰗉"}.mdi-format-list-bulleted:before{content:"󰉹"}.mdi-format-list-bulleted-square:before{content:"󰷐"}.mdi-format-list-bulleted-triangle:before{content:"󰺲"}.mdi-format-list-bulleted-type:before{content:"󰉺"}.mdi-format-list-checkbox:before{content:"󰥪"}.mdi-format-list-checks:before{content:"󰝖"}.mdi-format-list-group:before{content:"󱡠"}.mdi-format-list-group-plus:before{content:"󱭖"}.mdi-format-list-numbered:before{content:"󰉻"}.mdi-format-list-numbered-rtl:before{content:"󰴍"}.mdi-format-list-text:before{content:"󱉯"}.mdi-format-overline:before{content:"󰺳"}.mdi-format-page-break:before{content:"󰛗"}.mdi-format-page-split:before{content:"󱤗"}.mdi-format-paint:before{content:"󰉼"}.mdi-format-paragraph:before{content:"󰉽"}.mdi-format-paragraph-spacing:before{content:"󱫽"}.mdi-format-pilcrow:before{content:"󰛘"}.mdi-format-pilcrow-arrow-left:before{content:"󰊆"}.mdi-format-pilcrow-arrow-right:before{content:"󰊅"}.mdi-format-quote-close:before{content:"󰉾"}.mdi-format-quote-close-outline:before{content:"󱆨"}.mdi-format-quote-open:before{content:"󰝗"}.mdi-format-quote-open-outline:before{content:"󱆧"}.mdi-format-rotate-90:before{content:"󰚪"}.mdi-format-section:before{content:"󰚟"}.mdi-format-size:before{content:"󰉿"}.mdi-format-strikethrough:before{content:"󰊀"}.mdi-format-strikethrough-variant:before{content:"󰊁"}.mdi-format-subscript:before{content:"󰊂"}.mdi-format-superscript:before{content:"󰊃"}.mdi-format-text:before{content:"󰊄"}.mdi-format-text-rotation-angle-down:before{content:"󰾻"}.mdi-format-text-rotation-angle-up:before{content:"󰾼"}.mdi-format-text-rotation-down:before{content:"󰵳"}.mdi-format-text-rotation-down-vertical:before{content:"󰾽"}.mdi-format-text-rotation-none:before{content:"󰵴"}.mdi-format-text-rotation-up:before{content:"󰾾"}.mdi-format-text-rotation-vertical:before{content:"󰾿"}.mdi-format-text-variant:before{content:"󰸲"}.mdi-format-text-variant-outline:before{content:"󱔏"}.mdi-format-text-wrapping-clip:before{content:"󰴎"}.mdi-format-text-wrapping-overflow:before{content:"󰴏"}.mdi-format-text-wrapping-wrap:before{content:"󰴐"}.mdi-format-textbox:before{content:"󰴑"}.mdi-format-title:before{content:"󰗴"}.mdi-format-underline:before{content:"󰊇"}.mdi-format-underline-wavy:before{content:"󱣩"}.mdi-format-vertical-align-bottom:before{content:"󰘡"}.mdi-format-vertical-align-center:before{content:"󰘢"}.mdi-format-vertical-align-top:before{content:"󰘣"}.mdi-format-wrap-inline:before{content:"󰊈"}.mdi-format-wrap-square:before{content:"󰊉"}.mdi-format-wrap-tight:before{content:"󰊊"}.mdi-format-wrap-top-bottom:before{content:"󰊋"}.mdi-forum:before{content:"󰊌"}.mdi-forum-minus:before{content:"󱪩"}.mdi-forum-minus-outline:before{content:"󱪪"}.mdi-forum-outline:before{content:"󰠢"}.mdi-forum-plus:before{content:"󱪫"}.mdi-forum-plus-outline:before{content:"󱪬"}.mdi-forum-remove:before{content:"󱪭"}.mdi-forum-remove-outline:before{content:"󱪮"}.mdi-forward:before{content:"󰊍"}.mdi-forwardburger:before{content:"󰵵"}.mdi-fountain:before{content:"󰥫"}.mdi-fountain-pen:before{content:"󰴒"}.mdi-fountain-pen-tip:before{content:"󰴓"}.mdi-fraction-one-half:before{content:"󱦒"}.mdi-freebsd:before{content:"󰣠"}.mdi-french-fries:before{content:"󱥗"}.mdi-frequently-asked-questions:before{content:"󰺴"}.mdi-fridge:before{content:"󰊐"}.mdi-fridge-alert:before{content:"󱆱"}.mdi-fridge-alert-outline:before{content:"󱆲"}.mdi-fridge-bottom:before{content:"󰊒"}.mdi-fridge-industrial:before{content:"󱗮"}.mdi-fridge-industrial-alert:before{content:"󱗯"}.mdi-fridge-industrial-alert-outline:before{content:"󱗰"}.mdi-fridge-industrial-off:before{content:"󱗱"}.mdi-fridge-industrial-off-outline:before{content:"󱗲"}.mdi-fridge-industrial-outline:before{content:"󱗳"}.mdi-fridge-off:before{content:"󱆯"}.mdi-fridge-off-outline:before{content:"󱆰"}.mdi-fridge-outline:before{content:"󰊏"}.mdi-fridge-top:before{content:"󰊑"}.mdi-fridge-variant:before{content:"󱗴"}.mdi-fridge-variant-alert:before{content:"󱗵"}.mdi-fridge-variant-alert-outline:before{content:"󱗶"}.mdi-fridge-variant-off:before{content:"󱗷"}.mdi-fridge-variant-off-outline:before{content:"󱗸"}.mdi-fridge-variant-outline:before{content:"󱗹"}.mdi-fruit-cherries:before{content:"󱁂"}.mdi-fruit-cherries-off:before{content:"󱏸"}.mdi-fruit-citrus:before{content:"󱁃"}.mdi-fruit-citrus-off:before{content:"󱏹"}.mdi-fruit-grapes:before{content:"󱁄"}.mdi-fruit-grapes-outline:before{content:"󱁅"}.mdi-fruit-pear:before{content:"󱨎"}.mdi-fruit-pineapple:before{content:"󱁆"}.mdi-fruit-watermelon:before{content:"󱁇"}.mdi-fuel:before{content:"󰟊"}.mdi-fuel-cell:before{content:"󱢵"}.mdi-fullscreen:before{content:"󰊓"}.mdi-fullscreen-exit:before{content:"󰊔"}.mdi-function:before{content:"󰊕"}.mdi-function-variant:before{content:"󰡱"}.mdi-furigana-horizontal:before{content:"󱂁"}.mdi-furigana-vertical:before{content:"󱂂"}.mdi-fuse:before{content:"󰲅"}.mdi-fuse-alert:before{content:"󱐭"}.mdi-fuse-blade:before{content:"󰲆"}.mdi-fuse-off:before{content:"󱐬"}.mdi-gamepad:before{content:"󰊖"}.mdi-gamepad-circle:before{content:"󰸳"}.mdi-gamepad-circle-down:before{content:"󰸴"}.mdi-gamepad-circle-left:before{content:"󰸵"}.mdi-gamepad-circle-outline:before{content:"󰸶"}.mdi-gamepad-circle-right:before{content:"󰸷"}.mdi-gamepad-circle-up:before{content:"󰸸"}.mdi-gamepad-down:before{content:"󰸹"}.mdi-gamepad-left:before{content:"󰸺"}.mdi-gamepad-outline:before{content:"󱤙"}.mdi-gamepad-right:before{content:"󰸻"}.mdi-gamepad-round:before{content:"󰸼"}.mdi-gamepad-round-down:before{content:"󰸽"}.mdi-gamepad-round-left:before{content:"󰸾"}.mdi-gamepad-round-outline:before{content:"󰸿"}.mdi-gamepad-round-right:before{content:"󰹀"}.mdi-gamepad-round-up:before{content:"󰹁"}.mdi-gamepad-square:before{content:"󰺵"}.mdi-gamepad-square-outline:before{content:"󰺶"}.mdi-gamepad-up:before{content:"󰹂"}.mdi-gamepad-variant:before{content:"󰊗"}.mdi-gamepad-variant-outline:before{content:"󰺷"}.mdi-gamma:before{content:"󱃮"}.mdi-gantry-crane:before{content:"󰷑"}.mdi-garage:before{content:"󰛙"}.mdi-garage-alert:before{content:"󰡲"}.mdi-garage-alert-variant:before{content:"󱋕"}.mdi-garage-lock:before{content:"󱟻"}.mdi-garage-open:before{content:"󰛚"}.mdi-garage-open-variant:before{content:"󱋔"}.mdi-garage-variant:before{content:"󱋓"}.mdi-garage-variant-lock:before{content:"󱟼"}.mdi-gas-burner:before{content:"󱨛"}.mdi-gas-cylinder:before{content:"󰙇"}.mdi-gas-station:before{content:"󰊘"}.mdi-gas-station-in-use:before{content:"󱳄"}.mdi-gas-station-in-use-outline:before{content:"󱳅"}.mdi-gas-station-off:before{content:"󱐉"}.mdi-gas-station-off-outline:before{content:"󱐊"}.mdi-gas-station-outline:before{content:"󰺸"}.mdi-gate:before{content:"󰊙"}.mdi-gate-alert:before{content:"󱟸"}.mdi-gate-and:before{content:"󰣡"}.mdi-gate-arrow-left:before{content:"󱟷"}.mdi-gate-arrow-right:before{content:"󱅩"}.mdi-gate-buffer:before{content:"󱫾"}.mdi-gate-nand:before{content:"󰣢"}.mdi-gate-nor:before{content:"󰣣"}.mdi-gate-not:before{content:"󰣤"}.mdi-gate-open:before{content:"󱅪"}.mdi-gate-or:before{content:"󰣥"}.mdi-gate-xnor:before{content:"󰣦"}.mdi-gate-xor:before{content:"󰣧"}.mdi-gatsby:before{content:"󰹃"}.mdi-gauge:before{content:"󰊚"}.mdi-gauge-empty:before{content:"󰡳"}.mdi-gauge-full:before{content:"󰡴"}.mdi-gauge-low:before{content:"󰡵"}.mdi-gavel:before{content:"󰊛"}.mdi-gender-female:before{content:"󰊜"}.mdi-gender-male:before{content:"󰊝"}.mdi-gender-male-female:before{content:"󰊞"}.mdi-gender-male-female-variant:before{content:"󱄿"}.mdi-gender-non-binary:before{content:"󱅀"}.mdi-gender-transgender:before{content:"󰊟"}.mdi-generator-mobile:before{content:"󱲊"}.mdi-generator-portable:before{content:"󱲋"}.mdi-generator-stationary:before{content:"󱲌"}.mdi-gentoo:before{content:"󰣨"}.mdi-gesture:before{content:"󰟋"}.mdi-gesture-double-tap:before{content:"󰜼"}.mdi-gesture-pinch:before{content:"󰪽"}.mdi-gesture-spread:before{content:"󰪾"}.mdi-gesture-swipe:before{content:"󰵶"}.mdi-gesture-swipe-down:before{content:"󰜽"}.mdi-gesture-swipe-horizontal:before{content:"󰪿"}.mdi-gesture-swipe-left:before{content:"󰜾"}.mdi-gesture-swipe-right:before{content:"󰜿"}.mdi-gesture-swipe-up:before{content:"󰝀"}.mdi-gesture-swipe-vertical:before{content:"󰫀"}.mdi-gesture-tap:before{content:"󰝁"}.mdi-gesture-tap-box:before{content:"󱊩"}.mdi-gesture-tap-button:before{content:"󱊨"}.mdi-gesture-tap-hold:before{content:"󰵷"}.mdi-gesture-two-double-tap:before{content:"󰝂"}.mdi-gesture-two-tap:before{content:"󰝃"}.mdi-ghost:before{content:"󰊠"}.mdi-ghost-off:before{content:"󰧵"}.mdi-ghost-off-outline:before{content:"󱙜"}.mdi-ghost-outline:before{content:"󱙝"}.mdi-gift:before{content:"󰹄"}.mdi-gift-off:before{content:"󱛯"}.mdi-gift-off-outline:before{content:"󱛰"}.mdi-gift-open:before{content:"󱛱"}.mdi-gift-open-outline:before{content:"󱛲"}.mdi-gift-outline:before{content:"󰊡"}.mdi-git:before{content:"󰊢"}.mdi-github:before{content:"󰊤"}.mdi-gitlab:before{content:"󰮠"}.mdi-glass-cocktail:before{content:"󰍖"}.mdi-glass-cocktail-off:before{content:"󱗦"}.mdi-glass-flute:before{content:"󰊥"}.mdi-glass-fragile:before{content:"󱡳"}.mdi-glass-mug:before{content:"󰊦"}.mdi-glass-mug-off:before{content:"󱗧"}.mdi-glass-mug-variant:before{content:"󱄖"}.mdi-glass-mug-variant-off:before{content:"󱗨"}.mdi-glass-pint-outline:before{content:"󱌍"}.mdi-glass-stange:before{content:"󰊧"}.mdi-glass-tulip:before{content:"󰊨"}.mdi-glass-wine:before{content:"󰡶"}.mdi-glasses:before{content:"󰊪"}.mdi-globe-light:before{content:"󰙯"}.mdi-globe-light-outline:before{content:"󱋗"}.mdi-globe-model:before{content:"󰣩"}.mdi-gmail:before{content:"󰊫"}.mdi-gnome:before{content:"󰊬"}.mdi-go-kart:before{content:"󰵹"}.mdi-go-kart-track:before{content:"󰵺"}.mdi-gog:before{content:"󰮡"}.mdi-gold:before{content:"󱉏"}.mdi-golf:before{content:"󰠣"}.mdi-golf-cart:before{content:"󱆤"}.mdi-golf-tee:before{content:"󱂃"}.mdi-gondola:before{content:"󰚆"}.mdi-goodreads:before{content:"󰵻"}.mdi-google:before{content:"󰊭"}.mdi-google-ads:before{content:"󰲇"}.mdi-google-analytics:before{content:"󰟌"}.mdi-google-assistant:before{content:"󰟍"}.mdi-google-cardboard:before{content:"󰊮"}.mdi-google-chrome:before{content:"󰊯"}.mdi-google-circles:before{content:"󰊰"}.mdi-google-circles-communities:before{content:"󰊱"}.mdi-google-circles-extended:before{content:"󰊲"}.mdi-google-circles-group:before{content:"󰊳"}.mdi-google-classroom:before{content:"󰋀"}.mdi-google-cloud:before{content:"󱇶"}.mdi-google-downasaur:before{content:"󱍢"}.mdi-google-drive:before{content:"󰊶"}.mdi-google-earth:before{content:"󰊷"}.mdi-google-fit:before{content:"󰥬"}.mdi-google-glass:before{content:"󰊸"}.mdi-google-hangouts:before{content:"󰋉"}.mdi-google-keep:before{content:"󰛜"}.mdi-google-lens:before{content:"󰧶"}.mdi-google-maps:before{content:"󰗵"}.mdi-google-my-business:before{content:"󱁈"}.mdi-google-nearby:before{content:"󰊹"}.mdi-google-play:before{content:"󰊼"}.mdi-google-plus:before{content:"󰊽"}.mdi-google-podcast:before{content:"󰺹"}.mdi-google-spreadsheet:before{content:"󰧷"}.mdi-google-street-view:before{content:"󰲈"}.mdi-google-translate:before{content:"󰊿"}.mdi-gradient-horizontal:before{content:"󱝊"}.mdi-gradient-vertical:before{content:"󰚠"}.mdi-grain:before{content:"󰵼"}.mdi-graph:before{content:"󱁉"}.mdi-graph-outline:before{content:"󱁊"}.mdi-graphql:before{content:"󰡷"}.mdi-grass:before{content:"󱔐"}.mdi-grave-stone:before{content:"󰮢"}.mdi-grease-pencil:before{content:"󰙈"}.mdi-greater-than:before{content:"󰥭"}.mdi-greater-than-or-equal:before{content:"󰥮"}.mdi-greenhouse:before{content:"󰀭"}.mdi-grid:before{content:"󰋁"}.mdi-grid-large:before{content:"󰝘"}.mdi-grid-off:before{content:"󰋂"}.mdi-grill:before{content:"󰹅"}.mdi-grill-outline:before{content:"󱆊"}.mdi-group:before{content:"󰋃"}.mdi-guitar-acoustic:before{content:"󰝱"}.mdi-guitar-electric:before{content:"󰋄"}.mdi-guitar-pick:before{content:"󰋅"}.mdi-guitar-pick-outline:before{content:"󰋆"}.mdi-guy-fawkes-mask:before{content:"󰠥"}.mdi-gymnastics:before{content:"󱩁"}.mdi-hail:before{content:"󰫁"}.mdi-hair-dryer:before{content:"󱃯"}.mdi-hair-dryer-outline:before{content:"󱃰"}.mdi-halloween:before{content:"󰮣"}.mdi-hamburger:before{content:"󰚅"}.mdi-hamburger-check:before{content:"󱝶"}.mdi-hamburger-minus:before{content:"󱝷"}.mdi-hamburger-off:before{content:"󱝸"}.mdi-hamburger-plus:before{content:"󱝹"}.mdi-hamburger-remove:before{content:"󱝺"}.mdi-hammer:before{content:"󰣪"}.mdi-hammer-screwdriver:before{content:"󱌢"}.mdi-hammer-sickle:before{content:"󱢇"}.mdi-hammer-wrench:before{content:"󱌣"}.mdi-hand-back-left:before{content:"󰹆"}.mdi-hand-back-left-off:before{content:"󱠰"}.mdi-hand-back-left-off-outline:before{content:"󱠲"}.mdi-hand-back-left-outline:before{content:"󱠬"}.mdi-hand-back-right:before{content:"󰹇"}.mdi-hand-back-right-off:before{content:"󱠱"}.mdi-hand-back-right-off-outline:before{content:"󱠳"}.mdi-hand-back-right-outline:before{content:"󱠭"}.mdi-hand-clap:before{content:"󱥋"}.mdi-hand-clap-off:before{content:"󱩂"}.mdi-hand-coin:before{content:"󱢏"}.mdi-hand-coin-outline:before{content:"󱢐"}.mdi-hand-cycle:before{content:"󱮜"}.mdi-hand-extended:before{content:"󱢶"}.mdi-hand-extended-outline:before{content:"󱢷"}.mdi-hand-front-left:before{content:"󱠫"}.mdi-hand-front-left-outline:before{content:"󱠮"}.mdi-hand-front-right:before{content:"󰩏"}.mdi-hand-front-right-outline:before{content:"󱠯"}.mdi-hand-heart:before{content:"󱃱"}.mdi-hand-heart-outline:before{content:"󱕾"}.mdi-hand-okay:before{content:"󰩐"}.mdi-hand-peace:before{content:"󰩑"}.mdi-hand-peace-variant:before{content:"󰩒"}.mdi-hand-pointing-down:before{content:"󰩓"}.mdi-hand-pointing-left:before{content:"󰩔"}.mdi-hand-pointing-right:before{content:"󰋇"}.mdi-hand-pointing-up:before{content:"󰩕"}.mdi-hand-saw:before{content:"󰹈"}.mdi-hand-wash:before{content:"󱕿"}.mdi-hand-wash-outline:before{content:"󱖀"}.mdi-hand-water:before{content:"󱎟"}.mdi-hand-wave:before{content:"󱠡"}.mdi-hand-wave-outline:before{content:"󱠢"}.mdi-handball:before{content:"󰽓"}.mdi-handcuffs:before{content:"󱄾"}.mdi-hands-pray:before{content:"󰕹"}.mdi-handshake:before{content:"󱈘"}.mdi-handshake-outline:before{content:"󱖡"}.mdi-hanger:before{content:"󰋈"}.mdi-hard-hat:before{content:"󰥯"}.mdi-harddisk:before{content:"󰋊"}.mdi-harddisk-plus:before{content:"󱁋"}.mdi-harddisk-remove:before{content:"󱁌"}.mdi-hat-fedora:before{content:"󰮤"}.mdi-hazard-lights:before{content:"󰲉"}.mdi-hdmi-port:before{content:"󱮸"}.mdi-hdr:before{content:"󰵽"}.mdi-hdr-off:before{content:"󰵾"}.mdi-head:before{content:"󱍞"}.mdi-head-alert:before{content:"󱌸"}.mdi-head-alert-outline:before{content:"󱌹"}.mdi-head-check:before{content:"󱌺"}.mdi-head-check-outline:before{content:"󱌻"}.mdi-head-cog:before{content:"󱌼"}.mdi-head-cog-outline:before{content:"󱌽"}.mdi-head-dots-horizontal:before{content:"󱌾"}.mdi-head-dots-horizontal-outline:before{content:"󱌿"}.mdi-head-flash:before{content:"󱍀"}.mdi-head-flash-outline:before{content:"󱍁"}.mdi-head-heart:before{content:"󱍂"}.mdi-head-heart-outline:before{content:"󱍃"}.mdi-head-lightbulb:before{content:"󱍄"}.mdi-head-lightbulb-outline:before{content:"󱍅"}.mdi-head-minus:before{content:"󱍆"}.mdi-head-minus-outline:before{content:"󱍇"}.mdi-head-outline:before{content:"󱍟"}.mdi-head-plus:before{content:"󱍈"}.mdi-head-plus-outline:before{content:"󱍉"}.mdi-head-question:before{content:"󱍊"}.mdi-head-question-outline:before{content:"󱍋"}.mdi-head-remove:before{content:"󱍌"}.mdi-head-remove-outline:before{content:"󱍍"}.mdi-head-snowflake:before{content:"󱍎"}.mdi-head-snowflake-outline:before{content:"󱍏"}.mdi-head-sync:before{content:"󱍐"}.mdi-head-sync-outline:before{content:"󱍑"}.mdi-headphones:before{content:"󰋋"}.mdi-headphones-bluetooth:before{content:"󰥰"}.mdi-headphones-box:before{content:"󰋌"}.mdi-headphones-off:before{content:"󰟎"}.mdi-headphones-settings:before{content:"󰋍"}.mdi-headset:before{content:"󰋎"}.mdi-headset-dock:before{content:"󰋏"}.mdi-headset-off:before{content:"󰋐"}.mdi-heart:before{content:"󰋑"}.mdi-heart-box:before{content:"󰋒"}.mdi-heart-box-outline:before{content:"󰋓"}.mdi-heart-broken:before{content:"󰋔"}.mdi-heart-broken-outline:before{content:"󰴔"}.mdi-heart-circle:before{content:"󰥱"}.mdi-heart-circle-outline:before{content:"󰥲"}.mdi-heart-cog:before{content:"󱙣"}.mdi-heart-cog-outline:before{content:"󱙤"}.mdi-heart-flash:before{content:"󰻹"}.mdi-heart-half:before{content:"󰛟"}.mdi-heart-half-full:before{content:"󰛞"}.mdi-heart-half-outline:before{content:"󰛠"}.mdi-heart-minus:before{content:"󱐯"}.mdi-heart-minus-outline:before{content:"󱐲"}.mdi-heart-multiple:before{content:"󰩖"}.mdi-heart-multiple-outline:before{content:"󰩗"}.mdi-heart-off:before{content:"󰝙"}.mdi-heart-off-outline:before{content:"󱐴"}.mdi-heart-outline:before{content:"󰋕"}.mdi-heart-plus:before{content:"󱐮"}.mdi-heart-plus-outline:before{content:"󱐱"}.mdi-heart-pulse:before{content:"󰗶"}.mdi-heart-remove:before{content:"󱐰"}.mdi-heart-remove-outline:before{content:"󱐳"}.mdi-heart-search:before{content:"󱲍"}.mdi-heart-settings:before{content:"󱙥"}.mdi-heart-settings-outline:before{content:"󱙦"}.mdi-heat-pump:before{content:"󱩃"}.mdi-heat-pump-outline:before{content:"󱩄"}.mdi-heat-wave:before{content:"󱩅"}.mdi-heating-coil:before{content:"󱪯"}.mdi-helicopter:before{content:"󰫂"}.mdi-help:before{content:"󰋖"}.mdi-help-box:before{content:"󰞋"}.mdi-help-box-multiple:before{content:"󱰊"}.mdi-help-box-multiple-outline:before{content:"󱰋"}.mdi-help-box-outline:before{content:"󱰌"}.mdi-help-circle:before{content:"󰋗"}.mdi-help-circle-outline:before{content:"󰘥"}.mdi-help-network:before{content:"󰛵"}.mdi-help-network-outline:before{content:"󰲊"}.mdi-help-rhombus:before{content:"󰮥"}.mdi-help-rhombus-outline:before{content:"󰮦"}.mdi-hexadecimal:before{content:"󱊧"}.mdi-hexagon:before{content:"󰋘"}.mdi-hexagon-multiple:before{content:"󰛡"}.mdi-hexagon-multiple-outline:before{content:"󱃲"}.mdi-hexagon-outline:before{content:"󰋙"}.mdi-hexagon-slice-1:before{content:"󰫃"}.mdi-hexagon-slice-2:before{content:"󰫄"}.mdi-hexagon-slice-3:before{content:"󰫅"}.mdi-hexagon-slice-4:before{content:"󰫆"}.mdi-hexagon-slice-5:before{content:"󰫇"}.mdi-hexagon-slice-6:before{content:"󰫈"}.mdi-hexagram:before{content:"󰫉"}.mdi-hexagram-outline:before{content:"󰫊"}.mdi-high-definition:before{content:"󰟏"}.mdi-high-definition-box:before{content:"󰡸"}.mdi-highway:before{content:"󰗷"}.mdi-hiking:before{content:"󰵿"}.mdi-history:before{content:"󰋚"}.mdi-hockey-puck:before{content:"󰡹"}.mdi-hockey-sticks:before{content:"󰡺"}.mdi-hololens:before{content:"󰋛"}.mdi-home:before{content:"󰋜"}.mdi-home-account:before{content:"󰠦"}.mdi-home-alert:before{content:"󰡻"}.mdi-home-alert-outline:before{content:"󱗐"}.mdi-home-analytics:before{content:"󰺺"}.mdi-home-assistant:before{content:"󰟐"}.mdi-home-automation:before{content:"󰟑"}.mdi-home-battery:before{content:"󱤁"}.mdi-home-battery-outline:before{content:"󱤂"}.mdi-home-circle:before{content:"󰟒"}.mdi-home-circle-outline:before{content:"󱁍"}.mdi-home-city:before{content:"󰴕"}.mdi-home-city-outline:before{content:"󰴖"}.mdi-home-clock:before{content:"󱨒"}.mdi-home-clock-outline:before{content:"󱨓"}.mdi-home-edit:before{content:"󱅙"}.mdi-home-edit-outline:before{content:"󱅚"}.mdi-home-export-outline:before{content:"󰾛"}.mdi-home-flood:before{content:"󰻺"}.mdi-home-floor-0:before{content:"󰷒"}.mdi-home-floor-1:before{content:"󰶀"}.mdi-home-floor-2:before{content:"󰶁"}.mdi-home-floor-3:before{content:"󰶂"}.mdi-home-floor-a:before{content:"󰶃"}.mdi-home-floor-b:before{content:"󰶄"}.mdi-home-floor-g:before{content:"󰶅"}.mdi-home-floor-l:before{content:"󰶆"}.mdi-home-floor-negative-1:before{content:"󰷓"}.mdi-home-group:before{content:"󰷔"}.mdi-home-group-minus:before{content:"󱧁"}.mdi-home-group-plus:before{content:"󱧀"}.mdi-home-group-remove:before{content:"󱧂"}.mdi-home-heart:before{content:"󰠧"}.mdi-home-import-outline:before{content:"󰾜"}.mdi-home-lightbulb:before{content:"󱉑"}.mdi-home-lightbulb-outline:before{content:"󱉒"}.mdi-home-lightning-bolt:before{content:"󱤃"}.mdi-home-lightning-bolt-outline:before{content:"󱤄"}.mdi-home-lock:before{content:"󰣫"}.mdi-home-lock-open:before{content:"󰣬"}.mdi-home-map-marker:before{content:"󰗸"}.mdi-home-minus:before{content:"󰥴"}.mdi-home-minus-outline:before{content:"󱏕"}.mdi-home-modern:before{content:"󰋝"}.mdi-home-off:before{content:"󱩆"}.mdi-home-off-outline:before{content:"󱩇"}.mdi-home-outline:before{content:"󰚡"}.mdi-home-percent:before{content:"󱱼"}.mdi-home-percent-outline:before{content:"󱱽"}.mdi-home-plus:before{content:"󰥵"}.mdi-home-plus-outline:before{content:"󱏖"}.mdi-home-remove:before{content:"󱉇"}.mdi-home-remove-outline:before{content:"󱏗"}.mdi-home-roof:before{content:"󱄫"}.mdi-home-search:before{content:"󱎰"}.mdi-home-search-outline:before{content:"󱎱"}.mdi-home-silo:before{content:"󱮠"}.mdi-home-silo-outline:before{content:"󱮡"}.mdi-home-sound-in:before{content:"󱰯"}.mdi-home-sound-in-outline:before{content:"󱰰"}.mdi-home-sound-out:before{content:"󱰱"}.mdi-home-sound-out-outline:before{content:"󱰲"}.mdi-home-switch:before{content:"󱞔"}.mdi-home-switch-outline:before{content:"󱞕"}.mdi-home-thermometer:before{content:"󰽔"}.mdi-home-thermometer-outline:before{content:"󰽕"}.mdi-home-variant:before{content:"󰋞"}.mdi-home-variant-outline:before{content:"󰮧"}.mdi-hook:before{content:"󰛢"}.mdi-hook-off:before{content:"󰛣"}.mdi-hoop-house:before{content:"󰹖"}.mdi-hops:before{content:"󰋟"}.mdi-horizontal-rotate-clockwise:before{content:"󱃳"}.mdi-horizontal-rotate-counterclockwise:before{content:"󱃴"}.mdi-horse:before{content:"󱖿"}.mdi-horse-human:before{content:"󱗀"}.mdi-horse-variant:before{content:"󱗁"}.mdi-horse-variant-fast:before{content:"󱡮"}.mdi-horseshoe:before{content:"󰩘"}.mdi-hospital:before{content:"󰿶"}.mdi-hospital-box:before{content:"󰋠"}.mdi-hospital-box-outline:before{content:"󰿷"}.mdi-hospital-building:before{content:"󰋡"}.mdi-hospital-marker:before{content:"󰋢"}.mdi-hot-tub:before{content:"󰠨"}.mdi-hours-12:before{content:"󱲔"}.mdi-hours-24:before{content:"󱑸"}.mdi-hub:before{content:"󱲕"}.mdi-hub-outline:before{content:"󱲖"}.mdi-hubspot:before{content:"󰴗"}.mdi-hulu:before{content:"󰠩"}.mdi-human:before{content:"󰋦"}.mdi-human-baby-changing-table:before{content:"󱎋"}.mdi-human-cane:before{content:"󱖁"}.mdi-human-capacity-decrease:before{content:"󱖛"}.mdi-human-capacity-increase:before{content:"󱖜"}.mdi-human-child:before{content:"󰋧"}.mdi-human-dolly:before{content:"󱦀"}.mdi-human-edit:before{content:"󱓨"}.mdi-human-female:before{content:"󰙉"}.mdi-human-female-boy:before{content:"󰩙"}.mdi-human-female-dance:before{content:"󱗉"}.mdi-human-female-female:before{content:"󰩚"}.mdi-human-female-female-child:before{content:"󱲎"}.mdi-human-female-girl:before{content:"󰩛"}.mdi-human-greeting:before{content:"󱟄"}.mdi-human-greeting-proximity:before{content:"󱖝"}.mdi-human-greeting-variant:before{content:"󰙊"}.mdi-human-handsdown:before{content:"󰙋"}.mdi-human-handsup:before{content:"󰙌"}.mdi-human-male:before{content:"󰙍"}.mdi-human-male-board:before{content:"󰢐"}.mdi-human-male-board-poll:before{content:"󰡆"}.mdi-human-male-boy:before{content:"󰩜"}.mdi-human-male-child:before{content:"󱎌"}.mdi-human-male-female:before{content:"󰋨"}.mdi-human-male-female-child:before{content:"󱠣"}.mdi-human-male-girl:before{content:"󰩝"}.mdi-human-male-height:before{content:"󰻻"}.mdi-human-male-height-variant:before{content:"󰻼"}.mdi-human-male-male:before{content:"󰩞"}.mdi-human-male-male-child:before{content:"󱲏"}.mdi-human-non-binary:before{content:"󱡈"}.mdi-human-pregnant:before{content:"󰗏"}.mdi-human-queue:before{content:"󱕱"}.mdi-human-scooter:before{content:"󱇩"}.mdi-human-walker:before{content:"󱭱"}.mdi-human-wheelchair:before{content:"󱎍"}.mdi-human-white-cane:before{content:"󱦁"}.mdi-humble-bundle:before{content:"󰝄"}.mdi-hvac:before{content:"󱍒"}.mdi-hvac-off:before{content:"󱖞"}.mdi-hydraulic-oil-level:before{content:"󱌤"}.mdi-hydraulic-oil-temperature:before{content:"󱌥"}.mdi-hydro-power:before{content:"󱋥"}.mdi-hydrogen-station:before{content:"󱢔"}.mdi-ice-cream:before{content:"󰠪"}.mdi-ice-cream-off:before{content:"󰹒"}.mdi-ice-pop:before{content:"󰻽"}.mdi-id-card:before{content:"󰿀"}.mdi-identifier:before{content:"󰻾"}.mdi-ideogram-cjk:before{content:"󱌱"}.mdi-ideogram-cjk-variant:before{content:"󱌲"}.mdi-image:before{content:"󰋩"}.mdi-image-album:before{content:"󰋪"}.mdi-image-area:before{content:"󰋫"}.mdi-image-area-close:before{content:"󰋬"}.mdi-image-auto-adjust:before{content:"󰿁"}.mdi-image-broken:before{content:"󰋭"}.mdi-image-broken-variant:before{content:"󰋮"}.mdi-image-check:before{content:"󱬥"}.mdi-image-check-outline:before{content:"󱬦"}.mdi-image-edit:before{content:"󱇣"}.mdi-image-edit-outline:before{content:"󱇤"}.mdi-image-filter-black-white:before{content:"󰋰"}.mdi-image-filter-center-focus:before{content:"󰋱"}.mdi-image-filter-center-focus-strong:before{content:"󰻿"}.mdi-image-filter-center-focus-strong-outline:before{content:"󰼀"}.mdi-image-filter-center-focus-weak:before{content:"󰋲"}.mdi-image-filter-drama:before{content:"󰋳"}.mdi-image-filter-drama-outline:before{content:"󱯿"}.mdi-image-filter-frames:before{content:"󰋴"}.mdi-image-filter-hdr:before{content:"󰋵"}.mdi-image-filter-hdr-outline:before{content:"󱱤"}.mdi-image-filter-none:before{content:"󰋶"}.mdi-image-filter-tilt-shift:before{content:"󰋷"}.mdi-image-filter-vintage:before{content:"󰋸"}.mdi-image-frame:before{content:"󰹉"}.mdi-image-lock:before{content:"󱪰"}.mdi-image-lock-outline:before{content:"󱪱"}.mdi-image-marker:before{content:"󱝻"}.mdi-image-marker-outline:before{content:"󱝼"}.mdi-image-minus:before{content:"󱐙"}.mdi-image-minus-outline:before{content:"󱭇"}.mdi-image-move:before{content:"󰧸"}.mdi-image-multiple:before{content:"󰋹"}.mdi-image-multiple-outline:before{content:"󰋯"}.mdi-image-off:before{content:"󰠫"}.mdi-image-off-outline:before{content:"󱇑"}.mdi-image-outline:before{content:"󰥶"}.mdi-image-plus:before{content:"󰡼"}.mdi-image-plus-outline:before{content:"󱭆"}.mdi-image-refresh:before{content:"󱧾"}.mdi-image-refresh-outline:before{content:"󱧿"}.mdi-image-remove:before{content:"󱐘"}.mdi-image-remove-outline:before{content:"󱭈"}.mdi-image-search:before{content:"󰥷"}.mdi-image-search-outline:before{content:"󰥸"}.mdi-image-size-select-actual:before{content:"󰲍"}.mdi-image-size-select-large:before{content:"󰲎"}.mdi-image-size-select-small:before{content:"󰲏"}.mdi-image-sync:before{content:"󱨀"}.mdi-image-sync-outline:before{content:"󱨁"}.mdi-image-text:before{content:"󱘍"}.mdi-import:before{content:"󰋺"}.mdi-inbox:before{content:"󰚇"}.mdi-inbox-arrow-down:before{content:"󰋻"}.mdi-inbox-arrow-down-outline:before{content:"󱉰"}.mdi-inbox-arrow-up:before{content:"󰏑"}.mdi-inbox-arrow-up-outline:before{content:"󱉱"}.mdi-inbox-full:before{content:"󱉲"}.mdi-inbox-full-outline:before{content:"󱉳"}.mdi-inbox-multiple:before{content:"󰢰"}.mdi-inbox-multiple-outline:before{content:"󰮨"}.mdi-inbox-outline:before{content:"󱉴"}.mdi-inbox-remove:before{content:"󱖟"}.mdi-inbox-remove-outline:before{content:"󱖠"}.mdi-incognito:before{content:"󰗹"}.mdi-incognito-circle:before{content:"󱐡"}.mdi-incognito-circle-off:before{content:"󱐢"}.mdi-incognito-off:before{content:"󰁵"}.mdi-induction:before{content:"󱡌"}.mdi-infinity:before{content:"󰛤"}.mdi-information:before{content:"󰋼"}.mdi-information-box:before{content:"󱱥"}.mdi-information-box-outline:before{content:"󱱦"}.mdi-information-off:before{content:"󱞌"}.mdi-information-off-outline:before{content:"󱞍"}.mdi-information-outline:before{content:"󰋽"}.mdi-information-slab-box:before{content:"󱱧"}.mdi-information-slab-box-outline:before{content:"󱱨"}.mdi-information-slab-circle:before{content:"󱱩"}.mdi-information-slab-circle-outline:before{content:"󱱪"}.mdi-information-slab-symbol:before{content:"󱱫"}.mdi-information-symbol:before{content:"󱱬"}.mdi-information-variant:before{content:"󰙎"}.mdi-information-variant-box:before{content:"󱱭"}.mdi-information-variant-box-outline:before{content:"󱱮"}.mdi-information-variant-circle:before{content:"󱱯"}.mdi-information-variant-circle-outline:before{content:"󱱰"}.mdi-instagram:before{content:"󰋾"}.mdi-instrument-triangle:before{content:"󱁎"}.mdi-integrated-circuit-chip:before{content:"󱤓"}.mdi-invert-colors:before{content:"󰌁"}.mdi-invert-colors-off:before{content:"󰹊"}.mdi-iobroker:before{content:"󱋨"}.mdi-ip:before{content:"󰩟"}.mdi-ip-network:before{content:"󰩠"}.mdi-ip-network-outline:before{content:"󰲐"}.mdi-ip-outline:before{content:"󱦂"}.mdi-ipod:before{content:"󰲑"}.mdi-iron:before{content:"󱠤"}.mdi-iron-board:before{content:"󱠸"}.mdi-iron-outline:before{content:"󱠥"}.mdi-island:before{content:"󱁏"}.mdi-island-variant:before{content:"󱳆"}.mdi-iv-bag:before{content:"󱂹"}.mdi-jabber:before{content:"󰷕"}.mdi-jeepney:before{content:"󰌂"}.mdi-jellyfish:before{content:"󰼁"}.mdi-jellyfish-outline:before{content:"󰼂"}.mdi-jira:before{content:"󰌃"}.mdi-jquery:before{content:"󰡽"}.mdi-jsfiddle:before{content:"󰌄"}.mdi-jump-rope:before{content:"󱋿"}.mdi-kabaddi:before{content:"󰶇"}.mdi-kangaroo:before{content:"󱕘"}.mdi-karate:before{content:"󰠬"}.mdi-kayaking:before{content:"󰢯"}.mdi-keg:before{content:"󰌅"}.mdi-kettle:before{content:"󰗺"}.mdi-kettle-alert:before{content:"󱌗"}.mdi-kettle-alert-outline:before{content:"󱌘"}.mdi-kettle-off:before{content:"󱌛"}.mdi-kettle-off-outline:before{content:"󱌜"}.mdi-kettle-outline:before{content:"󰽖"}.mdi-kettle-pour-over:before{content:"󱜼"}.mdi-kettle-steam:before{content:"󱌙"}.mdi-kettle-steam-outline:before{content:"󱌚"}.mdi-kettlebell:before{content:"󱌀"}.mdi-key:before{content:"󰌆"}.mdi-key-alert:before{content:"󱦃"}.mdi-key-alert-outline:before{content:"󱦄"}.mdi-key-arrow-right:before{content:"󱌒"}.mdi-key-chain:before{content:"󱕴"}.mdi-key-chain-variant:before{content:"󱕵"}.mdi-key-change:before{content:"󰌇"}.mdi-key-link:before{content:"󱆟"}.mdi-key-minus:before{content:"󰌈"}.mdi-key-outline:before{content:"󰷖"}.mdi-key-plus:before{content:"󰌉"}.mdi-key-remove:before{content:"󰌊"}.mdi-key-star:before{content:"󱆞"}.mdi-key-variant:before{content:"󰌋"}.mdi-key-wireless:before{content:"󰿂"}.mdi-keyboard:before{content:"󰌌"}.mdi-keyboard-backspace:before{content:"󰌍"}.mdi-keyboard-caps:before{content:"󰌎"}.mdi-keyboard-close:before{content:"󰌏"}.mdi-keyboard-close-outline:before{content:"󱰀"}.mdi-keyboard-esc:before{content:"󱊷"}.mdi-keyboard-f1:before{content:"󱊫"}.mdi-keyboard-f10:before{content:"󱊴"}.mdi-keyboard-f11:before{content:"󱊵"}.mdi-keyboard-f12:before{content:"󱊶"}.mdi-keyboard-f2:before{content:"󱊬"}.mdi-keyboard-f3:before{content:"󱊭"}.mdi-keyboard-f4:before{content:"󱊮"}.mdi-keyboard-f5:before{content:"󱊯"}.mdi-keyboard-f6:before{content:"󱊰"}.mdi-keyboard-f7:before{content:"󱊱"}.mdi-keyboard-f8:before{content:"󱊲"}.mdi-keyboard-f9:before{content:"󱊳"}.mdi-keyboard-off:before{content:"󰌐"}.mdi-keyboard-off-outline:before{content:"󰹋"}.mdi-keyboard-outline:before{content:"󰥻"}.mdi-keyboard-return:before{content:"󰌑"}.mdi-keyboard-settings:before{content:"󰧹"}.mdi-keyboard-settings-outline:before{content:"󰧺"}.mdi-keyboard-space:before{content:"󱁐"}.mdi-keyboard-tab:before{content:"󰌒"}.mdi-keyboard-tab-reverse:before{content:"󰌥"}.mdi-keyboard-variant:before{content:"󰌓"}.mdi-khanda:before{content:"󱃽"}.mdi-kickstarter:before{content:"󰝅"}.mdi-kite:before{content:"󱦅"}.mdi-kite-outline:before{content:"󱦆"}.mdi-kitesurfing:before{content:"󱝄"}.mdi-klingon:before{content:"󱍛"}.mdi-knife:before{content:"󰧻"}.mdi-knife-military:before{content:"󰧼"}.mdi-knob:before{content:"󱮖"}.mdi-koala:before{content:"󱜿"}.mdi-kodi:before{content:"󰌔"}.mdi-kubernetes:before{content:"󱃾"}.mdi-label:before{content:"󰌕"}.mdi-label-multiple:before{content:"󱍵"}.mdi-label-multiple-outline:before{content:"󱍶"}.mdi-label-off:before{content:"󰫋"}.mdi-label-off-outline:before{content:"󰫌"}.mdi-label-outline:before{content:"󰌖"}.mdi-label-percent:before{content:"󱋪"}.mdi-label-percent-outline:before{content:"󱋫"}.mdi-label-variant:before{content:"󰫍"}.mdi-label-variant-outline:before{content:"󰫎"}.mdi-ladder:before{content:"󱖢"}.mdi-ladybug:before{content:"󰠭"}.mdi-lambda:before{content:"󰘧"}.mdi-lamp:before{content:"󰚵"}.mdi-lamp-outline:before{content:"󱟐"}.mdi-lamps:before{content:"󱕶"}.mdi-lamps-outline:before{content:"󱟑"}.mdi-lan:before{content:"󰌗"}.mdi-lan-check:before{content:"󱊪"}.mdi-lan-connect:before{content:"󰌘"}.mdi-lan-disconnect:before{content:"󰌙"}.mdi-lan-pending:before{content:"󰌚"}.mdi-land-fields:before{content:"󱪲"}.mdi-land-plots:before{content:"󱪳"}.mdi-land-plots-circle:before{content:"󱪴"}.mdi-land-plots-circle-variant:before{content:"󱪵"}.mdi-land-plots-marker:before{content:"󱱝"}.mdi-land-rows-horizontal:before{content:"󱪶"}.mdi-land-rows-vertical:before{content:"󱪷"}.mdi-landslide:before{content:"󱩈"}.mdi-landslide-outline:before{content:"󱩉"}.mdi-language-c:before{content:"󰙱"}.mdi-language-cpp:before{content:"󰙲"}.mdi-language-csharp:before{content:"󰌛"}.mdi-language-css3:before{content:"󰌜"}.mdi-language-fortran:before{content:"󱈚"}.mdi-language-go:before{content:"󰟓"}.mdi-language-haskell:before{content:"󰲒"}.mdi-language-html5:before{content:"󰌝"}.mdi-language-java:before{content:"󰬷"}.mdi-language-javascript:before{content:"󰌞"}.mdi-language-kotlin:before{content:"󱈙"}.mdi-language-lua:before{content:"󰢱"}.mdi-language-markdown:before{content:"󰍔"}.mdi-language-markdown-outline:before{content:"󰽛"}.mdi-language-php:before{content:"󰌟"}.mdi-language-python:before{content:"󰌠"}.mdi-language-r:before{content:"󰟔"}.mdi-language-ruby:before{content:"󰴭"}.mdi-language-ruby-on-rails:before{content:"󰫏"}.mdi-language-rust:before{content:"󱘗"}.mdi-language-swift:before{content:"󰛥"}.mdi-language-typescript:before{content:"󰛦"}.mdi-language-xaml:before{content:"󰙳"}.mdi-laptop:before{content:"󰌢"}.mdi-laptop-account:before{content:"󱩊"}.mdi-laptop-off:before{content:"󰛧"}.mdi-laravel:before{content:"󰫐"}.mdi-laser-pointer:before{content:"󱒄"}.mdi-lasso:before{content:"󰼃"}.mdi-lastpass:before{content:"󰑆"}.mdi-latitude:before{content:"󰽗"}.mdi-launch:before{content:"󰌧"}.mdi-lava-lamp:before{content:"󰟕"}.mdi-layers:before{content:"󰌨"}.mdi-layers-edit:before{content:"󱢒"}.mdi-layers-minus:before{content:"󰹌"}.mdi-layers-off:before{content:"󰌩"}.mdi-layers-off-outline:before{content:"󰧽"}.mdi-layers-outline:before{content:"󰧾"}.mdi-layers-plus:before{content:"󰹍"}.mdi-layers-remove:before{content:"󰹎"}.mdi-layers-search:before{content:"󱈆"}.mdi-layers-search-outline:before{content:"󱈇"}.mdi-layers-triple:before{content:"󰽘"}.mdi-layers-triple-outline:before{content:"󰽙"}.mdi-lead-pencil:before{content:"󰙏"}.mdi-leaf:before{content:"󰌪"}.mdi-leaf-circle:before{content:"󱤅"}.mdi-leaf-circle-outline:before{content:"󱤆"}.mdi-leaf-maple:before{content:"󰲓"}.mdi-leaf-maple-off:before{content:"󱋚"}.mdi-leaf-off:before{content:"󱋙"}.mdi-leak:before{content:"󰷗"}.mdi-leak-off:before{content:"󰷘"}.mdi-lectern:before{content:"󱫰"}.mdi-led-off:before{content:"󰌫"}.mdi-led-on:before{content:"󰌬"}.mdi-led-outline:before{content:"󰌭"}.mdi-led-strip:before{content:"󰟖"}.mdi-led-strip-variant:before{content:"󱁑"}.mdi-led-strip-variant-off:before{content:"󱩋"}.mdi-led-variant-off:before{content:"󰌮"}.mdi-led-variant-on:before{content:"󰌯"}.mdi-led-variant-outline:before{content:"󰌰"}.mdi-leek:before{content:"󱅽"}.mdi-less-than:before{content:"󰥼"}.mdi-less-than-or-equal:before{content:"󰥽"}.mdi-library:before{content:"󰌱"}.mdi-library-outline:before{content:"󱨢"}.mdi-library-shelves:before{content:"󰮩"}.mdi-license:before{content:"󰿃"}.mdi-lifebuoy:before{content:"󰡾"}.mdi-light-flood-down:before{content:"󱦇"}.mdi-light-flood-up:before{content:"󱦈"}.mdi-light-recessed:before{content:"󱞛"}.mdi-light-switch:before{content:"󰥾"}.mdi-light-switch-off:before{content:"󱨤"}.mdi-lightbulb:before{content:"󰌵"}.mdi-lightbulb-alert:before{content:"󱧡"}.mdi-lightbulb-alert-outline:before{content:"󱧢"}.mdi-lightbulb-auto:before{content:"󱠀"}.mdi-lightbulb-auto-outline:before{content:"󱠁"}.mdi-lightbulb-cfl:before{content:"󱈈"}.mdi-lightbulb-cfl-off:before{content:"󱈉"}.mdi-lightbulb-cfl-spiral:before{content:"󱉵"}.mdi-lightbulb-cfl-spiral-off:before{content:"󱋃"}.mdi-lightbulb-fluorescent-tube:before{content:"󱠄"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"󱠅"}.mdi-lightbulb-group:before{content:"󱉓"}.mdi-lightbulb-group-off:before{content:"󱋍"}.mdi-lightbulb-group-off-outline:before{content:"󱋎"}.mdi-lightbulb-group-outline:before{content:"󱉔"}.mdi-lightbulb-multiple:before{content:"󱉕"}.mdi-lightbulb-multiple-off:before{content:"󱋏"}.mdi-lightbulb-multiple-off-outline:before{content:"󱋐"}.mdi-lightbulb-multiple-outline:before{content:"󱉖"}.mdi-lightbulb-night:before{content:"󱩌"}.mdi-lightbulb-night-outline:before{content:"󱩍"}.mdi-lightbulb-off:before{content:"󰹏"}.mdi-lightbulb-off-outline:before{content:"󰹐"}.mdi-lightbulb-on:before{content:"󰛨"}.mdi-lightbulb-on-10:before{content:"󱩎"}.mdi-lightbulb-on-20:before{content:"󱩏"}.mdi-lightbulb-on-30:before{content:"󱩐"}.mdi-lightbulb-on-40:before{content:"󱩑"}.mdi-lightbulb-on-50:before{content:"󱩒"}.mdi-lightbulb-on-60:before{content:"󱩓"}.mdi-lightbulb-on-70:before{content:"󱩔"}.mdi-lightbulb-on-80:before{content:"󱩕"}.mdi-lightbulb-on-90:before{content:"󱩖"}.mdi-lightbulb-on-outline:before{content:"󰛩"}.mdi-lightbulb-outline:before{content:"󰌶"}.mdi-lightbulb-question:before{content:"󱧣"}.mdi-lightbulb-question-outline:before{content:"󱧤"}.mdi-lightbulb-spot:before{content:"󱟴"}.mdi-lightbulb-spot-off:before{content:"󱟵"}.mdi-lightbulb-variant:before{content:"󱠂"}.mdi-lightbulb-variant-outline:before{content:"󱠃"}.mdi-lighthouse:before{content:"󰧿"}.mdi-lighthouse-on:before{content:"󰨀"}.mdi-lightning-bolt:before{content:"󱐋"}.mdi-lightning-bolt-circle:before{content:"󰠠"}.mdi-lightning-bolt-outline:before{content:"󱐌"}.mdi-line-scan:before{content:"󰘤"}.mdi-lingerie:before{content:"󱑶"}.mdi-link:before{content:"󰌷"}.mdi-link-box:before{content:"󰴚"}.mdi-link-box-outline:before{content:"󰴛"}.mdi-link-box-variant:before{content:"󰴜"}.mdi-link-box-variant-outline:before{content:"󰴝"}.mdi-link-circle:before{content:"󱲬"}.mdi-link-circle-outline:before{content:"󱲭"}.mdi-link-edit:before{content:"󱲮"}.mdi-link-lock:before{content:"󱂺"}.mdi-link-off:before{content:"󰌸"}.mdi-link-plus:before{content:"󰲔"}.mdi-link-variant:before{content:"󰌹"}.mdi-link-variant-minus:before{content:"󱃿"}.mdi-link-variant-off:before{content:"󰌺"}.mdi-link-variant-plus:before{content:"󱄀"}.mdi-link-variant-remove:before{content:"󱄁"}.mdi-linkedin:before{content:"󰌻"}.mdi-linux:before{content:"󰌽"}.mdi-linux-mint:before{content:"󰣭"}.mdi-lipstick:before{content:"󱎵"}.mdi-liquid-spot:before{content:"󱠦"}.mdi-liquor:before{content:"󱤞"}.mdi-list-box:before{content:"󱭻"}.mdi-list-box-outline:before{content:"󱭼"}.mdi-list-status:before{content:"󱖫"}.mdi-litecoin:before{content:"󰩡"}.mdi-loading:before{content:"󰝲"}.mdi-location-enter:before{content:"󰿄"}.mdi-location-exit:before{content:"󰿅"}.mdi-lock:before{content:"󰌾"}.mdi-lock-alert:before{content:"󰣮"}.mdi-lock-alert-outline:before{content:"󱗑"}.mdi-lock-check:before{content:"󱎚"}.mdi-lock-check-outline:before{content:"󱚨"}.mdi-lock-clock:before{content:"󰥿"}.mdi-lock-minus:before{content:"󱚩"}.mdi-lock-minus-outline:before{content:"󱚪"}.mdi-lock-off:before{content:"󱙱"}.mdi-lock-off-outline:before{content:"󱙲"}.mdi-lock-open:before{content:"󰌿"}.mdi-lock-open-alert:before{content:"󱎛"}.mdi-lock-open-alert-outline:before{content:"󱗒"}.mdi-lock-open-check:before{content:"󱎜"}.mdi-lock-open-check-outline:before{content:"󱚫"}.mdi-lock-open-minus:before{content:"󱚬"}.mdi-lock-open-minus-outline:before{content:"󱚭"}.mdi-lock-open-outline:before{content:"󰍀"}.mdi-lock-open-plus:before{content:"󱚮"}.mdi-lock-open-plus-outline:before{content:"󱚯"}.mdi-lock-open-remove:before{content:"󱚰"}.mdi-lock-open-remove-outline:before{content:"󱚱"}.mdi-lock-open-variant:before{content:"󰿆"}.mdi-lock-open-variant-outline:before{content:"󰿇"}.mdi-lock-outline:before{content:"󰍁"}.mdi-lock-pattern:before{content:"󰛪"}.mdi-lock-percent:before{content:"󱰒"}.mdi-lock-percent-open:before{content:"󱰓"}.mdi-lock-percent-open-outline:before{content:"󱰔"}.mdi-lock-percent-open-variant:before{content:"󱰕"}.mdi-lock-percent-open-variant-outline:before{content:"󱰖"}.mdi-lock-percent-outline:before{content:"󱰗"}.mdi-lock-plus:before{content:"󰗻"}.mdi-lock-plus-outline:before{content:"󱚲"}.mdi-lock-question:before{content:"󰣯"}.mdi-lock-remove:before{content:"󱚳"}.mdi-lock-remove-outline:before{content:"󱚴"}.mdi-lock-reset:before{content:"󰝳"}.mdi-lock-smart:before{content:"󰢲"}.mdi-locker:before{content:"󰟗"}.mdi-locker-multiple:before{content:"󰟘"}.mdi-login:before{content:"󰍂"}.mdi-login-variant:before{content:"󰗼"}.mdi-logout:before{content:"󰍃"}.mdi-logout-variant:before{content:"󰗽"}.mdi-longitude:before{content:"󰽚"}.mdi-looks:before{content:"󰍄"}.mdi-lotion:before{content:"󱖂"}.mdi-lotion-outline:before{content:"󱖃"}.mdi-lotion-plus:before{content:"󱖄"}.mdi-lotion-plus-outline:before{content:"󱖅"}.mdi-loupe:before{content:"󰍅"}.mdi-lumx:before{content:"󰍆"}.mdi-lungs:before{content:"󱂄"}.mdi-mace:before{content:"󱡃"}.mdi-magazine-pistol:before{content:"󰌤"}.mdi-magazine-rifle:before{content:"󰌣"}.mdi-magic-staff:before{content:"󱡄"}.mdi-magnet:before{content:"󰍇"}.mdi-magnet-on:before{content:"󰍈"}.mdi-magnify:before{content:"󰍉"}.mdi-magnify-close:before{content:"󰦀"}.mdi-magnify-expand:before{content:"󱡴"}.mdi-magnify-minus:before{content:"󰍊"}.mdi-magnify-minus-cursor:before{content:"󰩢"}.mdi-magnify-minus-outline:before{content:"󰛬"}.mdi-magnify-plus:before{content:"󰍋"}.mdi-magnify-plus-cursor:before{content:"󰩣"}.mdi-magnify-plus-outline:before{content:"󰛭"}.mdi-magnify-remove-cursor:before{content:"󱈌"}.mdi-magnify-remove-outline:before{content:"󱈍"}.mdi-magnify-scan:before{content:"󱉶"}.mdi-mail:before{content:"󰺻"}.mdi-mailbox:before{content:"󰛮"}.mdi-mailbox-open:before{content:"󰶈"}.mdi-mailbox-open-outline:before{content:"󰶉"}.mdi-mailbox-open-up:before{content:"󰶊"}.mdi-mailbox-open-up-outline:before{content:"󰶋"}.mdi-mailbox-outline:before{content:"󰶌"}.mdi-mailbox-up:before{content:"󰶍"}.mdi-mailbox-up-outline:before{content:"󰶎"}.mdi-manjaro:before{content:"󱘊"}.mdi-map:before{content:"󰍍"}.mdi-map-check:before{content:"󰺼"}.mdi-map-check-outline:before{content:"󰺽"}.mdi-map-clock:before{content:"󰴞"}.mdi-map-clock-outline:before{content:"󰴟"}.mdi-map-legend:before{content:"󰨁"}.mdi-map-marker:before{content:"󰍎"}.mdi-map-marker-account:before{content:"󱣣"}.mdi-map-marker-account-outline:before{content:"󱣤"}.mdi-map-marker-alert:before{content:"󰼅"}.mdi-map-marker-alert-outline:before{content:"󰼆"}.mdi-map-marker-check:before{content:"󰲕"}.mdi-map-marker-check-outline:before{content:"󱋻"}.mdi-map-marker-circle:before{content:"󰍏"}.mdi-map-marker-distance:before{content:"󰣰"}.mdi-map-marker-down:before{content:"󱄂"}.mdi-map-marker-left:before{content:"󱋛"}.mdi-map-marker-left-outline:before{content:"󱋝"}.mdi-map-marker-minus:before{content:"󰙐"}.mdi-map-marker-minus-outline:before{content:"󱋹"}.mdi-map-marker-multiple:before{content:"󰍐"}.mdi-map-marker-multiple-outline:before{content:"󱉷"}.mdi-map-marker-off:before{content:"󰍑"}.mdi-map-marker-off-outline:before{content:"󱋽"}.mdi-map-marker-outline:before{content:"󰟙"}.mdi-map-marker-path:before{content:"󰴠"}.mdi-map-marker-plus:before{content:"󰙑"}.mdi-map-marker-plus-outline:before{content:"󱋸"}.mdi-map-marker-question:before{content:"󰼇"}.mdi-map-marker-question-outline:before{content:"󰼈"}.mdi-map-marker-radius:before{content:"󰍒"}.mdi-map-marker-radius-outline:before{content:"󱋼"}.mdi-map-marker-remove:before{content:"󰼉"}.mdi-map-marker-remove-outline:before{content:"󱋺"}.mdi-map-marker-remove-variant:before{content:"󰼊"}.mdi-map-marker-right:before{content:"󱋜"}.mdi-map-marker-right-outline:before{content:"󱋞"}.mdi-map-marker-star:before{content:"󱘈"}.mdi-map-marker-star-outline:before{content:"󱘉"}.mdi-map-marker-up:before{content:"󱄃"}.mdi-map-minus:before{content:"󰦁"}.mdi-map-outline:before{content:"󰦂"}.mdi-map-plus:before{content:"󰦃"}.mdi-map-search:before{content:"󰦄"}.mdi-map-search-outline:before{content:"󰦅"}.mdi-mapbox:before{content:"󰮪"}.mdi-margin:before{content:"󰍓"}.mdi-marker:before{content:"󰙒"}.mdi-marker-cancel:before{content:"󰷙"}.mdi-marker-check:before{content:"󰍕"}.mdi-mastodon:before{content:"󰫑"}.mdi-material-design:before{content:"󰦆"}.mdi-material-ui:before{content:"󰍗"}.mdi-math-compass:before{content:"󰍘"}.mdi-math-cos:before{content:"󰲖"}.mdi-math-integral:before{content:"󰿈"}.mdi-math-integral-box:before{content:"󰿉"}.mdi-math-log:before{content:"󱂅"}.mdi-math-norm:before{content:"󰿊"}.mdi-math-norm-box:before{content:"󰿋"}.mdi-math-sin:before{content:"󰲗"}.mdi-math-tan:before{content:"󰲘"}.mdi-matrix:before{content:"󰘨"}.mdi-medal:before{content:"󰦇"}.mdi-medal-outline:before{content:"󱌦"}.mdi-medical-bag:before{content:"󰛯"}.mdi-medical-cotton-swab:before{content:"󱪸"}.mdi-medication:before{content:"󱬔"}.mdi-medication-outline:before{content:"󱬕"}.mdi-meditation:before{content:"󱅻"}.mdi-memory:before{content:"󰍛"}.mdi-memory-arrow-down:before{content:"󱲦"}.mdi-menorah:before{content:"󱟔"}.mdi-menorah-fire:before{content:"󱟕"}.mdi-menu:before{content:"󰍜"}.mdi-menu-close:before{content:"󱲐"}.mdi-menu-down:before{content:"󰍝"}.mdi-menu-down-outline:before{content:"󰚶"}.mdi-menu-left:before{content:"󰍞"}.mdi-menu-left-outline:before{content:"󰨂"}.mdi-menu-open:before{content:"󰮫"}.mdi-menu-right:before{content:"󰍟"}.mdi-menu-right-outline:before{content:"󰨃"}.mdi-menu-swap:before{content:"󰩤"}.mdi-menu-swap-outline:before{content:"󰩥"}.mdi-menu-up:before{content:"󰍠"}.mdi-menu-up-outline:before{content:"󰚷"}.mdi-merge:before{content:"󰽜"}.mdi-message:before{content:"󰍡"}.mdi-message-alert:before{content:"󰍢"}.mdi-message-alert-outline:before{content:"󰨄"}.mdi-message-arrow-left:before{content:"󱋲"}.mdi-message-arrow-left-outline:before{content:"󱋳"}.mdi-message-arrow-right:before{content:"󱋴"}.mdi-message-arrow-right-outline:before{content:"󱋵"}.mdi-message-badge:before{content:"󱥁"}.mdi-message-badge-outline:before{content:"󱥂"}.mdi-message-bookmark:before{content:"󱖬"}.mdi-message-bookmark-outline:before{content:"󱖭"}.mdi-message-bulleted:before{content:"󰚢"}.mdi-message-bulleted-off:before{content:"󰚣"}.mdi-message-check:before{content:"󱮊"}.mdi-message-check-outline:before{content:"󱮋"}.mdi-message-cog:before{content:"󰛱"}.mdi-message-cog-outline:before{content:"󱅲"}.mdi-message-draw:before{content:"󰍣"}.mdi-message-fast:before{content:"󱧌"}.mdi-message-fast-outline:before{content:"󱧍"}.mdi-message-flash:before{content:"󱖩"}.mdi-message-flash-outline:before{content:"󱖪"}.mdi-message-image:before{content:"󰍤"}.mdi-message-image-outline:before{content:"󱅬"}.mdi-message-lock:before{content:"󰿌"}.mdi-message-lock-outline:before{content:"󱅭"}.mdi-message-minus:before{content:"󱅮"}.mdi-message-minus-outline:before{content:"󱅯"}.mdi-message-off:before{content:"󱙍"}.mdi-message-off-outline:before{content:"󱙎"}.mdi-message-outline:before{content:"󰍥"}.mdi-message-plus:before{content:"󰙓"}.mdi-message-plus-outline:before{content:"󱂻"}.mdi-message-processing:before{content:"󰍦"}.mdi-message-processing-outline:before{content:"󱅰"}.mdi-message-question:before{content:"󱜺"}.mdi-message-question-outline:before{content:"󱜻"}.mdi-message-reply:before{content:"󰍧"}.mdi-message-reply-outline:before{content:"󱜽"}.mdi-message-reply-text:before{content:"󰍨"}.mdi-message-reply-text-outline:before{content:"󱜾"}.mdi-message-settings:before{content:"󰛰"}.mdi-message-settings-outline:before{content:"󱅱"}.mdi-message-star:before{content:"󰚚"}.mdi-message-star-outline:before{content:"󱉐"}.mdi-message-text:before{content:"󰍩"}.mdi-message-text-clock:before{content:"󱅳"}.mdi-message-text-clock-outline:before{content:"󱅴"}.mdi-message-text-fast:before{content:"󱧎"}.mdi-message-text-fast-outline:before{content:"󱧏"}.mdi-message-text-lock:before{content:"󰿍"}.mdi-message-text-lock-outline:before{content:"󱅵"}.mdi-message-text-outline:before{content:"󰍪"}.mdi-message-video:before{content:"󰍫"}.mdi-meteor:before{content:"󰘩"}.mdi-meter-electric:before{content:"󱩗"}.mdi-meter-electric-outline:before{content:"󱩘"}.mdi-meter-gas:before{content:"󱩙"}.mdi-meter-gas-outline:before{content:"󱩚"}.mdi-metronome:before{content:"󰟚"}.mdi-metronome-tick:before{content:"󰟛"}.mdi-micro-sd:before{content:"󰟜"}.mdi-microphone:before{content:"󰍬"}.mdi-microphone-message:before{content:"󰔊"}.mdi-microphone-message-off:before{content:"󰔋"}.mdi-microphone-minus:before{content:"󰢳"}.mdi-microphone-off:before{content:"󰍭"}.mdi-microphone-outline:before{content:"󰍮"}.mdi-microphone-plus:before{content:"󰢴"}.mdi-microphone-question:before{content:"󱦉"}.mdi-microphone-question-outline:before{content:"󱦊"}.mdi-microphone-settings:before{content:"󰍯"}.mdi-microphone-variant:before{content:"󰍰"}.mdi-microphone-variant-off:before{content:"󰍱"}.mdi-microscope:before{content:"󰙔"}.mdi-microsoft:before{content:"󰍲"}.mdi-microsoft-access:before{content:"󱎎"}.mdi-microsoft-azure:before{content:"󰠅"}.mdi-microsoft-azure-devops:before{content:"󰿕"}.mdi-microsoft-bing:before{content:"󰂤"}.mdi-microsoft-dynamics-365:before{content:"󰦈"}.mdi-microsoft-edge:before{content:"󰇩"}.mdi-microsoft-excel:before{content:"󱎏"}.mdi-microsoft-internet-explorer:before{content:"󰌀"}.mdi-microsoft-office:before{content:"󰏆"}.mdi-microsoft-onedrive:before{content:"󰏊"}.mdi-microsoft-onenote:before{content:"󰝇"}.mdi-microsoft-outlook:before{content:"󰴢"}.mdi-microsoft-powerpoint:before{content:"󱎐"}.mdi-microsoft-sharepoint:before{content:"󱎑"}.mdi-microsoft-teams:before{content:"󰊻"}.mdi-microsoft-visual-studio:before{content:"󰘐"}.mdi-microsoft-visual-studio-code:before{content:"󰨞"}.mdi-microsoft-windows:before{content:"󰖳"}.mdi-microsoft-windows-classic:before{content:"󰨡"}.mdi-microsoft-word:before{content:"󱎒"}.mdi-microsoft-xbox:before{content:"󰖹"}.mdi-microsoft-xbox-controller:before{content:"󰖺"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"󰝋"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"󰨢"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"󰝌"}.mdi-microsoft-xbox-controller-battery-full:before{content:"󰝍"}.mdi-microsoft-xbox-controller-battery-low:before{content:"󰝎"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"󰝏"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"󰝐"}.mdi-microsoft-xbox-controller-menu:before{content:"󰹯"}.mdi-microsoft-xbox-controller-off:before{content:"󰖻"}.mdi-microsoft-xbox-controller-view:before{content:"󰹰"}.mdi-microwave:before{content:"󰲙"}.mdi-microwave-off:before{content:"󱐣"}.mdi-middleware:before{content:"󰽝"}.mdi-middleware-outline:before{content:"󰽞"}.mdi-midi:before{content:"󰣱"}.mdi-midi-port:before{content:"󰣲"}.mdi-mine:before{content:"󰷚"}.mdi-minecraft:before{content:"󰍳"}.mdi-mini-sd:before{content:"󰨅"}.mdi-minidisc:before{content:"󰨆"}.mdi-minus:before{content:"󰍴"}.mdi-minus-box:before{content:"󰍵"}.mdi-minus-box-multiple:before{content:"󱅁"}.mdi-minus-box-multiple-outline:before{content:"󱅂"}.mdi-minus-box-outline:before{content:"󰛲"}.mdi-minus-circle:before{content:"󰍶"}.mdi-minus-circle-multiple:before{content:"󰍚"}.mdi-minus-circle-multiple-outline:before{content:"󰫓"}.mdi-minus-circle-off:before{content:"󱑙"}.mdi-minus-circle-off-outline:before{content:"󱑚"}.mdi-minus-circle-outline:before{content:"󰍷"}.mdi-minus-network:before{content:"󰍸"}.mdi-minus-network-outline:before{content:"󰲚"}.mdi-minus-thick:before{content:"󱘹"}.mdi-mirror:before{content:"󱇽"}.mdi-mirror-rectangle:before{content:"󱞟"}.mdi-mirror-variant:before{content:"󱞠"}.mdi-mixed-martial-arts:before{content:"󰶏"}.mdi-mixed-reality:before{content:"󰡿"}.mdi-molecule:before{content:"󰮬"}.mdi-molecule-co:before{content:"󱋾"}.mdi-molecule-co2:before{content:"󰟤"}.mdi-monitor:before{content:"󰍹"}.mdi-monitor-account:before{content:"󱩛"}.mdi-monitor-arrow-down:before{content:"󱧐"}.mdi-monitor-arrow-down-variant:before{content:"󱧑"}.mdi-monitor-cellphone:before{content:"󰦉"}.mdi-monitor-cellphone-star:before{content:"󰦊"}.mdi-monitor-dashboard:before{content:"󰨇"}.mdi-monitor-edit:before{content:"󱋆"}.mdi-monitor-eye:before{content:"󱎴"}.mdi-monitor-lock:before{content:"󰷛"}.mdi-monitor-multiple:before{content:"󰍺"}.mdi-monitor-off:before{content:"󰶐"}.mdi-monitor-screenshot:before{content:"󰹑"}.mdi-monitor-share:before{content:"󱒃"}.mdi-monitor-shimmer:before{content:"󱄄"}.mdi-monitor-small:before{content:"󱡶"}.mdi-monitor-speaker:before{content:"󰽟"}.mdi-monitor-speaker-off:before{content:"󰽠"}.mdi-monitor-star:before{content:"󰷜"}.mdi-monitor-vertical:before{content:"󱰳"}.mdi-moon-first-quarter:before{content:"󰽡"}.mdi-moon-full:before{content:"󰽢"}.mdi-moon-last-quarter:before{content:"󰽣"}.mdi-moon-new:before{content:"󰽤"}.mdi-moon-waning-crescent:before{content:"󰽥"}.mdi-moon-waning-gibbous:before{content:"󰽦"}.mdi-moon-waxing-crescent:before{content:"󰽧"}.mdi-moon-waxing-gibbous:before{content:"󰽨"}.mdi-moped:before{content:"󱂆"}.mdi-moped-electric:before{content:"󱖷"}.mdi-moped-electric-outline:before{content:"󱖸"}.mdi-moped-outline:before{content:"󱖹"}.mdi-more:before{content:"󰍻"}.mdi-mortar-pestle:before{content:"󱝈"}.mdi-mortar-pestle-plus:before{content:"󰏱"}.mdi-mosque:before{content:"󰵅"}.mdi-mosque-outline:before{content:"󱠧"}.mdi-mother-heart:before{content:"󱌔"}.mdi-mother-nurse:before{content:"󰴡"}.mdi-motion:before{content:"󱖲"}.mdi-motion-outline:before{content:"󱖳"}.mdi-motion-pause:before{content:"󱖐"}.mdi-motion-pause-outline:before{content:"󱖒"}.mdi-motion-play:before{content:"󱖏"}.mdi-motion-play-outline:before{content:"󱖑"}.mdi-motion-sensor:before{content:"󰶑"}.mdi-motion-sensor-off:before{content:"󱐵"}.mdi-motorbike:before{content:"󰍼"}.mdi-motorbike-electric:before{content:"󱖺"}.mdi-motorbike-off:before{content:"󱬖"}.mdi-mouse:before{content:"󰍽"}.mdi-mouse-bluetooth:before{content:"󰦋"}.mdi-mouse-move-down:before{content:"󱕐"}.mdi-mouse-move-up:before{content:"󱕑"}.mdi-mouse-move-vertical:before{content:"󱕒"}.mdi-mouse-off:before{content:"󰍾"}.mdi-mouse-variant:before{content:"󰍿"}.mdi-mouse-variant-off:before{content:"󰎀"}.mdi-move-resize:before{content:"󰙕"}.mdi-move-resize-variant:before{content:"󰙖"}.mdi-movie:before{content:"󰎁"}.mdi-movie-check:before{content:"󱛳"}.mdi-movie-check-outline:before{content:"󱛴"}.mdi-movie-cog:before{content:"󱛵"}.mdi-movie-cog-outline:before{content:"󱛶"}.mdi-movie-edit:before{content:"󱄢"}.mdi-movie-edit-outline:before{content:"󱄣"}.mdi-movie-filter:before{content:"󱄤"}.mdi-movie-filter-outline:before{content:"󱄥"}.mdi-movie-minus:before{content:"󱛷"}.mdi-movie-minus-outline:before{content:"󱛸"}.mdi-movie-off:before{content:"󱛹"}.mdi-movie-off-outline:before{content:"󱛺"}.mdi-movie-open:before{content:"󰿎"}.mdi-movie-open-check:before{content:"󱛻"}.mdi-movie-open-check-outline:before{content:"󱛼"}.mdi-movie-open-cog:before{content:"󱛽"}.mdi-movie-open-cog-outline:before{content:"󱛾"}.mdi-movie-open-edit:before{content:"󱛿"}.mdi-movie-open-edit-outline:before{content:"󱜀"}.mdi-movie-open-minus:before{content:"󱜁"}.mdi-movie-open-minus-outline:before{content:"󱜂"}.mdi-movie-open-off:before{content:"󱜃"}.mdi-movie-open-off-outline:before{content:"󱜄"}.mdi-movie-open-outline:before{content:"󰿏"}.mdi-movie-open-play:before{content:"󱜅"}.mdi-movie-open-play-outline:before{content:"󱜆"}.mdi-movie-open-plus:before{content:"󱜇"}.mdi-movie-open-plus-outline:before{content:"󱜈"}.mdi-movie-open-remove:before{content:"󱜉"}.mdi-movie-open-remove-outline:before{content:"󱜊"}.mdi-movie-open-settings:before{content:"󱜋"}.mdi-movie-open-settings-outline:before{content:"󱜌"}.mdi-movie-open-star:before{content:"󱜍"}.mdi-movie-open-star-outline:before{content:"󱜎"}.mdi-movie-outline:before{content:"󰷝"}.mdi-movie-play:before{content:"󱜏"}.mdi-movie-play-outline:before{content:"󱜐"}.mdi-movie-plus:before{content:"󱜑"}.mdi-movie-plus-outline:before{content:"󱜒"}.mdi-movie-remove:before{content:"󱜓"}.mdi-movie-remove-outline:before{content:"󱜔"}.mdi-movie-roll:before{content:"󰟞"}.mdi-movie-search:before{content:"󱇒"}.mdi-movie-search-outline:before{content:"󱇓"}.mdi-movie-settings:before{content:"󱜕"}.mdi-movie-settings-outline:before{content:"󱜖"}.mdi-movie-star:before{content:"󱜗"}.mdi-movie-star-outline:before{content:"󱜘"}.mdi-mower:before{content:"󱙯"}.mdi-mower-bag:before{content:"󱙰"}.mdi-mower-bag-on:before{content:"󱭠"}.mdi-mower-on:before{content:"󱭟"}.mdi-muffin:before{content:"󰦌"}.mdi-multicast:before{content:"󱢓"}.mdi-multimedia:before{content:"󱮗"}.mdi-multiplication:before{content:"󰎂"}.mdi-multiplication-box:before{content:"󰎃"}.mdi-mushroom:before{content:"󰟟"}.mdi-mushroom-off:before{content:"󱏺"}.mdi-mushroom-off-outline:before{content:"󱏻"}.mdi-mushroom-outline:before{content:"󰟠"}.mdi-music:before{content:"󰝚"}.mdi-music-accidental-double-flat:before{content:"󰽩"}.mdi-music-accidental-double-sharp:before{content:"󰽪"}.mdi-music-accidental-flat:before{content:"󰽫"}.mdi-music-accidental-natural:before{content:"󰽬"}.mdi-music-accidental-sharp:before{content:"󰽭"}.mdi-music-box:before{content:"󰎄"}.mdi-music-box-multiple:before{content:"󰌳"}.mdi-music-box-multiple-outline:before{content:"󰼄"}.mdi-music-box-outline:before{content:"󰎅"}.mdi-music-circle:before{content:"󰎆"}.mdi-music-circle-outline:before{content:"󰫔"}.mdi-music-clef-alto:before{content:"󰽮"}.mdi-music-clef-bass:before{content:"󰽯"}.mdi-music-clef-treble:before{content:"󰽰"}.mdi-music-note:before{content:"󰎇"}.mdi-music-note-bluetooth:before{content:"󰗾"}.mdi-music-note-bluetooth-off:before{content:"󰗿"}.mdi-music-note-eighth:before{content:"󰎈"}.mdi-music-note-eighth-dotted:before{content:"󰽱"}.mdi-music-note-half:before{content:"󰎉"}.mdi-music-note-half-dotted:before{content:"󰽲"}.mdi-music-note-minus:before{content:"󱮉"}.mdi-music-note-off:before{content:"󰎊"}.mdi-music-note-off-outline:before{content:"󰽳"}.mdi-music-note-outline:before{content:"󰽴"}.mdi-music-note-plus:before{content:"󰷞"}.mdi-music-note-quarter:before{content:"󰎋"}.mdi-music-note-quarter-dotted:before{content:"󰽵"}.mdi-music-note-sixteenth:before{content:"󰎌"}.mdi-music-note-sixteenth-dotted:before{content:"󰽶"}.mdi-music-note-whole:before{content:"󰎍"}.mdi-music-note-whole-dotted:before{content:"󰽷"}.mdi-music-off:before{content:"󰝛"}.mdi-music-rest-eighth:before{content:"󰽸"}.mdi-music-rest-half:before{content:"󰽹"}.mdi-music-rest-quarter:before{content:"󰽺"}.mdi-music-rest-sixteenth:before{content:"󰽻"}.mdi-music-rest-whole:before{content:"󰽼"}.mdi-mustache:before{content:"󱗞"}.mdi-nail:before{content:"󰷟"}.mdi-nas:before{content:"󰣳"}.mdi-nativescript:before{content:"󰢀"}.mdi-nature:before{content:"󰎎"}.mdi-nature-outline:before{content:"󱱱"}.mdi-nature-people:before{content:"󰎏"}.mdi-nature-people-outline:before{content:"󱱲"}.mdi-navigation:before{content:"󰎐"}.mdi-navigation-outline:before{content:"󱘇"}.mdi-navigation-variant:before{content:"󱣰"}.mdi-navigation-variant-outline:before{content:"󱣱"}.mdi-near-me:before{content:"󰗍"}.mdi-necklace:before{content:"󰼋"}.mdi-needle:before{content:"󰎑"}.mdi-needle-off:before{content:"󱧒"}.mdi-netflix:before{content:"󰝆"}.mdi-network:before{content:"󰛳"}.mdi-network-off:before{content:"󰲛"}.mdi-network-off-outline:before{content:"󰲜"}.mdi-network-outline:before{content:"󰲝"}.mdi-network-pos:before{content:"󱫋"}.mdi-network-strength-1:before{content:"󰣴"}.mdi-network-strength-1-alert:before{content:"󰣵"}.mdi-network-strength-2:before{content:"󰣶"}.mdi-network-strength-2-alert:before{content:"󰣷"}.mdi-network-strength-3:before{content:"󰣸"}.mdi-network-strength-3-alert:before{content:"󰣹"}.mdi-network-strength-4:before{content:"󰣺"}.mdi-network-strength-4-alert:before{content:"󰣻"}.mdi-network-strength-4-cog:before{content:"󱤚"}.mdi-network-strength-off:before{content:"󰣼"}.mdi-network-strength-off-outline:before{content:"󰣽"}.mdi-network-strength-outline:before{content:"󰣾"}.mdi-new-box:before{content:"󰎔"}.mdi-newspaper:before{content:"󰎕"}.mdi-newspaper-check:before{content:"󱥃"}.mdi-newspaper-minus:before{content:"󰼌"}.mdi-newspaper-plus:before{content:"󰼍"}.mdi-newspaper-remove:before{content:"󱥄"}.mdi-newspaper-variant:before{content:"󱀁"}.mdi-newspaper-variant-multiple:before{content:"󱀂"}.mdi-newspaper-variant-multiple-outline:before{content:"󱀃"}.mdi-newspaper-variant-outline:before{content:"󱀄"}.mdi-nfc:before{content:"󰎖"}.mdi-nfc-search-variant:before{content:"󰹓"}.mdi-nfc-tap:before{content:"󰎗"}.mdi-nfc-variant:before{content:"󰎘"}.mdi-nfc-variant-off:before{content:"󰹔"}.mdi-ninja:before{content:"󰝴"}.mdi-nintendo-game-boy:before{content:"󱎓"}.mdi-nintendo-switch:before{content:"󰟡"}.mdi-nintendo-wii:before{content:"󰖫"}.mdi-nintendo-wiiu:before{content:"󰜭"}.mdi-nix:before{content:"󱄅"}.mdi-nodejs:before{content:"󰎙"}.mdi-noodles:before{content:"󱅾"}.mdi-not-equal:before{content:"󰦍"}.mdi-not-equal-variant:before{content:"󰦎"}.mdi-note:before{content:"󰎚"}.mdi-note-alert:before{content:"󱝽"}.mdi-note-alert-outline:before{content:"󱝾"}.mdi-note-check:before{content:"󱝿"}.mdi-note-check-outline:before{content:"󱞀"}.mdi-note-edit:before{content:"󱞁"}.mdi-note-edit-outline:before{content:"󱞂"}.mdi-note-minus:before{content:"󱙏"}.mdi-note-minus-outline:before{content:"󱙐"}.mdi-note-multiple:before{content:"󰚸"}.mdi-note-multiple-outline:before{content:"󰚹"}.mdi-note-off:before{content:"󱞃"}.mdi-note-off-outline:before{content:"󱞄"}.mdi-note-outline:before{content:"󰎛"}.mdi-note-plus:before{content:"󰎜"}.mdi-note-plus-outline:before{content:"󰎝"}.mdi-note-remove:before{content:"󱙑"}.mdi-note-remove-outline:before{content:"󱙒"}.mdi-note-search:before{content:"󱙓"}.mdi-note-search-outline:before{content:"󱙔"}.mdi-note-text:before{content:"󰎞"}.mdi-note-text-outline:before{content:"󱇗"}.mdi-notebook:before{content:"󰠮"}.mdi-notebook-check:before{content:"󱓵"}.mdi-notebook-check-outline:before{content:"󱓶"}.mdi-notebook-edit:before{content:"󱓧"}.mdi-notebook-edit-outline:before{content:"󱓩"}.mdi-notebook-heart:before{content:"󱨋"}.mdi-notebook-heart-outline:before{content:"󱨌"}.mdi-notebook-minus:before{content:"󱘐"}.mdi-notebook-minus-outline:before{content:"󱘑"}.mdi-notebook-multiple:before{content:"󰹕"}.mdi-notebook-outline:before{content:"󰺿"}.mdi-notebook-plus:before{content:"󱘒"}.mdi-notebook-plus-outline:before{content:"󱘓"}.mdi-notebook-remove:before{content:"󱘔"}.mdi-notebook-remove-outline:before{content:"󱘕"}.mdi-notification-clear-all:before{content:"󰎟"}.mdi-npm:before{content:"󰛷"}.mdi-nuke:before{content:"󰚤"}.mdi-null:before{content:"󰟢"}.mdi-numeric:before{content:"󰎠"}.mdi-numeric-0:before{content:"󰬹"}.mdi-numeric-0-box:before{content:"󰎡"}.mdi-numeric-0-box-multiple:before{content:"󰼎"}.mdi-numeric-0-box-multiple-outline:before{content:"󰎢"}.mdi-numeric-0-box-outline:before{content:"󰎣"}.mdi-numeric-0-circle:before{content:"󰲞"}.mdi-numeric-0-circle-outline:before{content:"󰲟"}.mdi-numeric-1:before{content:"󰬺"}.mdi-numeric-1-box:before{content:"󰎤"}.mdi-numeric-1-box-multiple:before{content:"󰼏"}.mdi-numeric-1-box-multiple-outline:before{content:"󰎥"}.mdi-numeric-1-box-outline:before{content:"󰎦"}.mdi-numeric-1-circle:before{content:"󰲠"}.mdi-numeric-1-circle-outline:before{content:"󰲡"}.mdi-numeric-10:before{content:"󰿩"}.mdi-numeric-10-box:before{content:"󰽽"}.mdi-numeric-10-box-multiple:before{content:"󰿪"}.mdi-numeric-10-box-multiple-outline:before{content:"󰿫"}.mdi-numeric-10-box-outline:before{content:"󰽾"}.mdi-numeric-10-circle:before{content:"󰿬"}.mdi-numeric-10-circle-outline:before{content:"󰿭"}.mdi-numeric-2:before{content:"󰬻"}.mdi-numeric-2-box:before{content:"󰎧"}.mdi-numeric-2-box-multiple:before{content:"󰼐"}.mdi-numeric-2-box-multiple-outline:before{content:"󰎨"}.mdi-numeric-2-box-outline:before{content:"󰎩"}.mdi-numeric-2-circle:before{content:"󰲢"}.mdi-numeric-2-circle-outline:before{content:"󰲣"}.mdi-numeric-3:before{content:"󰬼"}.mdi-numeric-3-box:before{content:"󰎪"}.mdi-numeric-3-box-multiple:before{content:"󰼑"}.mdi-numeric-3-box-multiple-outline:before{content:"󰎫"}.mdi-numeric-3-box-outline:before{content:"󰎬"}.mdi-numeric-3-circle:before{content:"󰲤"}.mdi-numeric-3-circle-outline:before{content:"󰲥"}.mdi-numeric-4:before{content:"󰬽"}.mdi-numeric-4-box:before{content:"󰎭"}.mdi-numeric-4-box-multiple:before{content:"󰼒"}.mdi-numeric-4-box-multiple-outline:before{content:"󰎲"}.mdi-numeric-4-box-outline:before{content:"󰎮"}.mdi-numeric-4-circle:before{content:"󰲦"}.mdi-numeric-4-circle-outline:before{content:"󰲧"}.mdi-numeric-5:before{content:"󰬾"}.mdi-numeric-5-box:before{content:"󰎱"}.mdi-numeric-5-box-multiple:before{content:"󰼓"}.mdi-numeric-5-box-multiple-outline:before{content:"󰎯"}.mdi-numeric-5-box-outline:before{content:"󰎰"}.mdi-numeric-5-circle:before{content:"󰲨"}.mdi-numeric-5-circle-outline:before{content:"󰲩"}.mdi-numeric-6:before{content:"󰬿"}.mdi-numeric-6-box:before{content:"󰎳"}.mdi-numeric-6-box-multiple:before{content:"󰼔"}.mdi-numeric-6-box-multiple-outline:before{content:"󰎴"}.mdi-numeric-6-box-outline:before{content:"󰎵"}.mdi-numeric-6-circle:before{content:"󰲪"}.mdi-numeric-6-circle-outline:before{content:"󰲫"}.mdi-numeric-7:before{content:"󰭀"}.mdi-numeric-7-box:before{content:"󰎶"}.mdi-numeric-7-box-multiple:before{content:"󰼕"}.mdi-numeric-7-box-multiple-outline:before{content:"󰎷"}.mdi-numeric-7-box-outline:before{content:"󰎸"}.mdi-numeric-7-circle:before{content:"󰲬"}.mdi-numeric-7-circle-outline:before{content:"󰲭"}.mdi-numeric-8:before{content:"󰭁"}.mdi-numeric-8-box:before{content:"󰎹"}.mdi-numeric-8-box-multiple:before{content:"󰼖"}.mdi-numeric-8-box-multiple-outline:before{content:"󰎺"}.mdi-numeric-8-box-outline:before{content:"󰎻"}.mdi-numeric-8-circle:before{content:"󰲮"}.mdi-numeric-8-circle-outline:before{content:"󰲯"}.mdi-numeric-9:before{content:"󰭂"}.mdi-numeric-9-box:before{content:"󰎼"}.mdi-numeric-9-box-multiple:before{content:"󰼗"}.mdi-numeric-9-box-multiple-outline:before{content:"󰎽"}.mdi-numeric-9-box-outline:before{content:"󰎾"}.mdi-numeric-9-circle:before{content:"󰲰"}.mdi-numeric-9-circle-outline:before{content:"󰲱"}.mdi-numeric-9-plus:before{content:"󰿮"}.mdi-numeric-9-plus-box:before{content:"󰎿"}.mdi-numeric-9-plus-box-multiple:before{content:"󰼘"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"󰏀"}.mdi-numeric-9-plus-box-outline:before{content:"󰏁"}.mdi-numeric-9-plus-circle:before{content:"󰲲"}.mdi-numeric-9-plus-circle-outline:before{content:"󰲳"}.mdi-numeric-negative-1:before{content:"󱁒"}.mdi-numeric-off:before{content:"󱧓"}.mdi-numeric-positive-1:before{content:"󱗋"}.mdi-nut:before{content:"󰛸"}.mdi-nutrition:before{content:"󰏂"}.mdi-nuxt:before{content:"󱄆"}.mdi-oar:before{content:"󰙼"}.mdi-ocarina:before{content:"󰷠"}.mdi-oci:before{content:"󱋩"}.mdi-ocr:before{content:"󱄺"}.mdi-octagon:before{content:"󰏃"}.mdi-octagon-outline:before{content:"󰏄"}.mdi-octagram:before{content:"󰛹"}.mdi-octagram-edit:before{content:"󱰴"}.mdi-octagram-edit-outline:before{content:"󱰵"}.mdi-octagram-minus:before{content:"󱰶"}.mdi-octagram-minus-outline:before{content:"󱰷"}.mdi-octagram-outline:before{content:"󰝵"}.mdi-octagram-plus:before{content:"󱰸"}.mdi-octagram-plus-outline:before{content:"󱰹"}.mdi-octahedron:before{content:"󱥐"}.mdi-octahedron-off:before{content:"󱥑"}.mdi-odnoklassniki:before{content:"󰏅"}.mdi-offer:before{content:"󱈛"}.mdi-office-building:before{content:"󰦑"}.mdi-office-building-cog:before{content:"󱥉"}.mdi-office-building-cog-outline:before{content:"󱥊"}.mdi-office-building-marker:before{content:"󱔠"}.mdi-office-building-marker-outline:before{content:"󱔡"}.mdi-office-building-minus:before{content:"󱮪"}.mdi-office-building-minus-outline:before{content:"󱮫"}.mdi-office-building-outline:before{content:"󱔟"}.mdi-office-building-plus:before{content:"󱮨"}.mdi-office-building-plus-outline:before{content:"󱮩"}.mdi-office-building-remove:before{content:"󱮬"}.mdi-office-building-remove-outline:before{content:"󱮭"}.mdi-oil:before{content:"󰏇"}.mdi-oil-lamp:before{content:"󰼙"}.mdi-oil-level:before{content:"󱁓"}.mdi-oil-temperature:before{content:"󰿸"}.mdi-om:before{content:"󰥳"}.mdi-omega:before{content:"󰏉"}.mdi-one-up:before{content:"󰮭"}.mdi-onepassword:before{content:"󰢁"}.mdi-opacity:before{content:"󰗌"}.mdi-open-in-app:before{content:"󰏋"}.mdi-open-in-new:before{content:"󰏌"}.mdi-open-source-initiative:before{content:"󰮮"}.mdi-openid:before{content:"󰏍"}.mdi-opera:before{content:"󰏎"}.mdi-orbit:before{content:"󰀘"}.mdi-orbit-variant:before{content:"󱗛"}.mdi-order-alphabetical-ascending:before{content:"󰈍"}.mdi-order-alphabetical-descending:before{content:"󰴇"}.mdi-order-bool-ascending:before{content:"󰊾"}.mdi-order-bool-ascending-variant:before{content:"󰦏"}.mdi-order-bool-descending:before{content:"󱎄"}.mdi-order-bool-descending-variant:before{content:"󰦐"}.mdi-order-numeric-ascending:before{content:"󰕅"}.mdi-order-numeric-descending:before{content:"󰕆"}.mdi-origin:before{content:"󰭃"}.mdi-ornament:before{content:"󰏏"}.mdi-ornament-variant:before{content:"󰏐"}.mdi-outdoor-lamp:before{content:"󱁔"}.mdi-overscan:before{content:"󱀅"}.mdi-owl:before{content:"󰏒"}.mdi-pac-man:before{content:"󰮯"}.mdi-package:before{content:"󰏓"}.mdi-package-check:before{content:"󱭑"}.mdi-package-down:before{content:"󰏔"}.mdi-package-up:before{content:"󰏕"}.mdi-package-variant:before{content:"󰏖"}.mdi-package-variant-closed:before{content:"󰏗"}.mdi-package-variant-closed-check:before{content:"󱭒"}.mdi-package-variant-closed-minus:before{content:"󱧔"}.mdi-package-variant-closed-plus:before{content:"󱧕"}.mdi-package-variant-closed-remove:before{content:"󱧖"}.mdi-package-variant-minus:before{content:"󱧗"}.mdi-package-variant-plus:before{content:"󱧘"}.mdi-package-variant-remove:before{content:"󱧙"}.mdi-page-first:before{content:"󰘀"}.mdi-page-last:before{content:"󰘁"}.mdi-page-layout-body:before{content:"󰛺"}.mdi-page-layout-footer:before{content:"󰛻"}.mdi-page-layout-header:before{content:"󰛼"}.mdi-page-layout-header-footer:before{content:"󰽿"}.mdi-page-layout-sidebar-left:before{content:"󰛽"}.mdi-page-layout-sidebar-right:before{content:"󰛾"}.mdi-page-next:before{content:"󰮰"}.mdi-page-next-outline:before{content:"󰮱"}.mdi-page-previous:before{content:"󰮲"}.mdi-page-previous-outline:before{content:"󰮳"}.mdi-pail:before{content:"󱐗"}.mdi-pail-minus:before{content:"󱐷"}.mdi-pail-minus-outline:before{content:"󱐼"}.mdi-pail-off:before{content:"󱐹"}.mdi-pail-off-outline:before{content:"󱐾"}.mdi-pail-outline:before{content:"󱐺"}.mdi-pail-plus:before{content:"󱐶"}.mdi-pail-plus-outline:before{content:"󱐻"}.mdi-pail-remove:before{content:"󱐸"}.mdi-pail-remove-outline:before{content:"󱐽"}.mdi-palette:before{content:"󰏘"}.mdi-palette-advanced:before{content:"󰏙"}.mdi-palette-outline:before{content:"󰸌"}.mdi-palette-swatch:before{content:"󰢵"}.mdi-palette-swatch-outline:before{content:"󱍜"}.mdi-palette-swatch-variant:before{content:"󱥚"}.mdi-palm-tree:before{content:"󱁕"}.mdi-pan:before{content:"󰮴"}.mdi-pan-bottom-left:before{content:"󰮵"}.mdi-pan-bottom-right:before{content:"󰮶"}.mdi-pan-down:before{content:"󰮷"}.mdi-pan-horizontal:before{content:"󰮸"}.mdi-pan-left:before{content:"󰮹"}.mdi-pan-right:before{content:"󰮺"}.mdi-pan-top-left:before{content:"󰮻"}.mdi-pan-top-right:before{content:"󰮼"}.mdi-pan-up:before{content:"󰮽"}.mdi-pan-vertical:before{content:"󰮾"}.mdi-panda:before{content:"󰏚"}.mdi-pandora:before{content:"󰏛"}.mdi-panorama:before{content:"󰏜"}.mdi-panorama-fisheye:before{content:"󰏝"}.mdi-panorama-horizontal:before{content:"󱤨"}.mdi-panorama-horizontal-outline:before{content:"󰏞"}.mdi-panorama-outline:before{content:"󱦌"}.mdi-panorama-sphere:before{content:"󱦍"}.mdi-panorama-sphere-outline:before{content:"󱦎"}.mdi-panorama-variant:before{content:"󱦏"}.mdi-panorama-variant-outline:before{content:"󱦐"}.mdi-panorama-vertical:before{content:"󱤩"}.mdi-panorama-vertical-outline:before{content:"󰏟"}.mdi-panorama-wide-angle:before{content:"󱥟"}.mdi-panorama-wide-angle-outline:before{content:"󰏠"}.mdi-paper-cut-vertical:before{content:"󰏡"}.mdi-paper-roll:before{content:"󱅗"}.mdi-paper-roll-outline:before{content:"󱅘"}.mdi-paperclip:before{content:"󰏢"}.mdi-paperclip-check:before{content:"󱫆"}.mdi-paperclip-lock:before{content:"󱧚"}.mdi-paperclip-minus:before{content:"󱫇"}.mdi-paperclip-off:before{content:"󱫈"}.mdi-paperclip-plus:before{content:"󱫉"}.mdi-paperclip-remove:before{content:"󱫊"}.mdi-parachute:before{content:"󰲴"}.mdi-parachute-outline:before{content:"󰲵"}.mdi-paragliding:before{content:"󱝅"}.mdi-parking:before{content:"󰏣"}.mdi-party-popper:before{content:"󱁖"}.mdi-passport:before{content:"󰟣"}.mdi-passport-alert:before{content:"󱲸"}.mdi-passport-biometric:before{content:"󰷡"}.mdi-passport-cancel:before{content:"󱲹"}.mdi-passport-check:before{content:"󱲺"}.mdi-passport-minus:before{content:"󱲻"}.mdi-passport-plus:before{content:"󱲼"}.mdi-passport-remove:before{content:"󱲽"}.mdi-pasta:before{content:"󱅠"}.mdi-patio-heater:before{content:"󰾀"}.mdi-patreon:before{content:"󰢂"}.mdi-pause:before{content:"󰏤"}.mdi-pause-box:before{content:"󰂼"}.mdi-pause-box-outline:before{content:"󱭺"}.mdi-pause-circle:before{content:"󰏥"}.mdi-pause-circle-outline:before{content:"󰏦"}.mdi-pause-octagon:before{content:"󰏧"}.mdi-pause-octagon-outline:before{content:"󰏨"}.mdi-paw:before{content:"󰏩"}.mdi-paw-off:before{content:"󰙗"}.mdi-paw-off-outline:before{content:"󱙶"}.mdi-paw-outline:before{content:"󱙵"}.mdi-peace:before{content:"󰢄"}.mdi-peanut:before{content:"󰿼"}.mdi-peanut-off:before{content:"󰿽"}.mdi-peanut-off-outline:before{content:"󰿿"}.mdi-peanut-outline:before{content:"󰿾"}.mdi-pen:before{content:"󰏪"}.mdi-pen-lock:before{content:"󰷢"}.mdi-pen-minus:before{content:"󰷣"}.mdi-pen-off:before{content:"󰷤"}.mdi-pen-plus:before{content:"󰷥"}.mdi-pen-remove:before{content:"󰷦"}.mdi-pencil:before{content:"󰏫"}.mdi-pencil-box:before{content:"󰏬"}.mdi-pencil-box-multiple:before{content:"󱅄"}.mdi-pencil-box-multiple-outline:before{content:"󱅅"}.mdi-pencil-box-outline:before{content:"󰏭"}.mdi-pencil-circle:before{content:"󰛿"}.mdi-pencil-circle-outline:before{content:"󰝶"}.mdi-pencil-lock:before{content:"󰏮"}.mdi-pencil-lock-outline:before{content:"󰷧"}.mdi-pencil-minus:before{content:"󰷨"}.mdi-pencil-minus-outline:before{content:"󰷩"}.mdi-pencil-off:before{content:"󰏯"}.mdi-pencil-off-outline:before{content:"󰷪"}.mdi-pencil-outline:before{content:"󰲶"}.mdi-pencil-plus:before{content:"󰷫"}.mdi-pencil-plus-outline:before{content:"󰷬"}.mdi-pencil-remove:before{content:"󰷭"}.mdi-pencil-remove-outline:before{content:"󰷮"}.mdi-pencil-ruler:before{content:"󱍓"}.mdi-pencil-ruler-outline:before{content:"󱰑"}.mdi-penguin:before{content:"󰻀"}.mdi-pentagon:before{content:"󰜁"}.mdi-pentagon-outline:before{content:"󰜀"}.mdi-pentagram:before{content:"󱙧"}.mdi-percent:before{content:"󰏰"}.mdi-percent-box:before{content:"󱨂"}.mdi-percent-box-outline:before{content:"󱨃"}.mdi-percent-circle:before{content:"󱨄"}.mdi-percent-circle-outline:before{content:"󱨅"}.mdi-percent-outline:before{content:"󱉸"}.mdi-periodic-table:before{content:"󰢶"}.mdi-perspective-less:before{content:"󰴣"}.mdi-perspective-more:before{content:"󰴤"}.mdi-ph:before{content:"󱟅"}.mdi-phone:before{content:"󰏲"}.mdi-phone-alert:before{content:"󰼚"}.mdi-phone-alert-outline:before{content:"󱆎"}.mdi-phone-bluetooth:before{content:"󰏳"}.mdi-phone-bluetooth-outline:before{content:"󱆏"}.mdi-phone-cancel:before{content:"󱂼"}.mdi-phone-cancel-outline:before{content:"󱆐"}.mdi-phone-check:before{content:"󱆩"}.mdi-phone-check-outline:before{content:"󱆪"}.mdi-phone-classic:before{content:"󰘂"}.mdi-phone-classic-off:before{content:"󱉹"}.mdi-phone-clock:before{content:"󱧛"}.mdi-phone-dial:before{content:"󱕙"}.mdi-phone-dial-outline:before{content:"󱕚"}.mdi-phone-forward:before{content:"󰏴"}.mdi-phone-forward-outline:before{content:"󱆑"}.mdi-phone-hangup:before{content:"󰏵"}.mdi-phone-hangup-outline:before{content:"󱆒"}.mdi-phone-in-talk:before{content:"󰏶"}.mdi-phone-in-talk-outline:before{content:"󱆂"}.mdi-phone-incoming:before{content:"󰏷"}.mdi-phone-incoming-outgoing:before{content:"󱬿"}.mdi-phone-incoming-outgoing-outline:before{content:"󱭀"}.mdi-phone-incoming-outline:before{content:"󱆓"}.mdi-phone-lock:before{content:"󰏸"}.mdi-phone-lock-outline:before{content:"󱆔"}.mdi-phone-log:before{content:"󰏹"}.mdi-phone-log-outline:before{content:"󱆕"}.mdi-phone-message:before{content:"󱆖"}.mdi-phone-message-outline:before{content:"󱆗"}.mdi-phone-minus:before{content:"󰙘"}.mdi-phone-minus-outline:before{content:"󱆘"}.mdi-phone-missed:before{content:"󰏺"}.mdi-phone-missed-outline:before{content:"󱆥"}.mdi-phone-off:before{content:"󰷯"}.mdi-phone-off-outline:before{content:"󱆦"}.mdi-phone-outgoing:before{content:"󰏻"}.mdi-phone-outgoing-outline:before{content:"󱆙"}.mdi-phone-outline:before{content:"󰷰"}.mdi-phone-paused:before{content:"󰏼"}.mdi-phone-paused-outline:before{content:"󱆚"}.mdi-phone-plus:before{content:"󰙙"}.mdi-phone-plus-outline:before{content:"󱆛"}.mdi-phone-refresh:before{content:"󱦓"}.mdi-phone-refresh-outline:before{content:"󱦔"}.mdi-phone-remove:before{content:"󱔯"}.mdi-phone-remove-outline:before{content:"󱔰"}.mdi-phone-return:before{content:"󰠯"}.mdi-phone-return-outline:before{content:"󱆜"}.mdi-phone-ring:before{content:"󱆫"}.mdi-phone-ring-outline:before{content:"󱆬"}.mdi-phone-rotate-landscape:before{content:"󰢅"}.mdi-phone-rotate-portrait:before{content:"󰢆"}.mdi-phone-settings:before{content:"󰏽"}.mdi-phone-settings-outline:before{content:"󱆝"}.mdi-phone-sync:before{content:"󱦕"}.mdi-phone-sync-outline:before{content:"󱦖"}.mdi-phone-voip:before{content:"󰏾"}.mdi-pi:before{content:"󰏿"}.mdi-pi-box:before{content:"󰐀"}.mdi-pi-hole:before{content:"󰷱"}.mdi-piano:before{content:"󰙽"}.mdi-piano-off:before{content:"󰚘"}.mdi-pickaxe:before{content:"󰢷"}.mdi-picture-in-picture-bottom-right:before{content:"󰹗"}.mdi-picture-in-picture-bottom-right-outline:before{content:"󰹘"}.mdi-picture-in-picture-top-right:before{content:"󰹙"}.mdi-picture-in-picture-top-right-outline:before{content:"󰹚"}.mdi-pier:before{content:"󰢇"}.mdi-pier-crane:before{content:"󰢈"}.mdi-pig:before{content:"󰐁"}.mdi-pig-variant:before{content:"󱀆"}.mdi-pig-variant-outline:before{content:"󱙸"}.mdi-piggy-bank:before{content:"󱀇"}.mdi-piggy-bank-outline:before{content:"󱙹"}.mdi-pill:before{content:"󰐂"}.mdi-pill-multiple:before{content:"󱭌"}.mdi-pill-off:before{content:"󱩜"}.mdi-pillar:before{content:"󰜂"}.mdi-pin:before{content:"󰐃"}.mdi-pin-off:before{content:"󰐄"}.mdi-pin-off-outline:before{content:"󰤰"}.mdi-pin-outline:before{content:"󰤱"}.mdi-pine-tree:before{content:"󰐅"}.mdi-pine-tree-box:before{content:"󰐆"}.mdi-pine-tree-fire:before{content:"󱐚"}.mdi-pine-tree-variant:before{content:"󱱳"}.mdi-pine-tree-variant-outline:before{content:"󱱴"}.mdi-pinterest:before{content:"󰐇"}.mdi-pinwheel:before{content:"󰫕"}.mdi-pinwheel-outline:before{content:"󰫖"}.mdi-pipe:before{content:"󰟥"}.mdi-pipe-disconnected:before{content:"󰟦"}.mdi-pipe-leak:before{content:"󰢉"}.mdi-pipe-valve:before{content:"󱡍"}.mdi-pipe-wrench:before{content:"󱍔"}.mdi-pirate:before{content:"󰨈"}.mdi-pistol:before{content:"󰜃"}.mdi-piston:before{content:"󰢊"}.mdi-pitchfork:before{content:"󱕓"}.mdi-pizza:before{content:"󰐉"}.mdi-plane-car:before{content:"󱫿"}.mdi-plane-train:before{content:"󱬀"}.mdi-play:before{content:"󰐊"}.mdi-play-box:before{content:"󱉺"}.mdi-play-box-edit-outline:before{content:"󱰺"}.mdi-play-box-lock:before{content:"󱨖"}.mdi-play-box-lock-open:before{content:"󱨗"}.mdi-play-box-lock-open-outline:before{content:"󱨘"}.mdi-play-box-lock-outline:before{content:"󱨙"}.mdi-play-box-multiple:before{content:"󰴙"}.mdi-play-box-multiple-outline:before{content:"󱏦"}.mdi-play-box-outline:before{content:"󰐋"}.mdi-play-circle:before{content:"󰐌"}.mdi-play-circle-outline:before{content:"󰐍"}.mdi-play-network:before{content:"󰢋"}.mdi-play-network-outline:before{content:"󰲷"}.mdi-play-outline:before{content:"󰼛"}.mdi-play-pause:before{content:"󰐎"}.mdi-play-protected-content:before{content:"󰐏"}.mdi-play-speed:before{content:"󰣿"}.mdi-playlist-check:before{content:"󰗇"}.mdi-playlist-edit:before{content:"󰤀"}.mdi-playlist-minus:before{content:"󰐐"}.mdi-playlist-music:before{content:"󰲸"}.mdi-playlist-music-outline:before{content:"󰲹"}.mdi-playlist-play:before{content:"󰐑"}.mdi-playlist-plus:before{content:"󰐒"}.mdi-playlist-remove:before{content:"󰐓"}.mdi-playlist-star:before{content:"󰷲"}.mdi-plex:before{content:"󰚺"}.mdi-pliers:before{content:"󱦤"}.mdi-plus:before{content:"󰐕"}.mdi-plus-box:before{content:"󰐖"}.mdi-plus-box-multiple:before{content:"󰌴"}.mdi-plus-box-multiple-outline:before{content:"󱅃"}.mdi-plus-box-outline:before{content:"󰜄"}.mdi-plus-circle:before{content:"󰐗"}.mdi-plus-circle-multiple:before{content:"󰍌"}.mdi-plus-circle-multiple-outline:before{content:"󰐘"}.mdi-plus-circle-outline:before{content:"󰐙"}.mdi-plus-lock:before{content:"󱩝"}.mdi-plus-lock-open:before{content:"󱩞"}.mdi-plus-minus:before{content:"󰦒"}.mdi-plus-minus-box:before{content:"󰦓"}.mdi-plus-minus-variant:before{content:"󱓉"}.mdi-plus-network:before{content:"󰐚"}.mdi-plus-network-outline:before{content:"󰲺"}.mdi-plus-outline:before{content:"󰜅"}.mdi-plus-thick:before{content:"󱇬"}.mdi-pocket:before{content:"󱲾"}.mdi-podcast:before{content:"󰦔"}.mdi-podium:before{content:"󰴥"}.mdi-podium-bronze:before{content:"󰴦"}.mdi-podium-gold:before{content:"󰴧"}.mdi-podium-silver:before{content:"󰴨"}.mdi-point-of-sale:before{content:"󰶒"}.mdi-pokeball:before{content:"󰐝"}.mdi-pokemon-go:before{content:"󰨉"}.mdi-poker-chip:before{content:"󰠰"}.mdi-polaroid:before{content:"󰐞"}.mdi-police-badge:before{content:"󱅧"}.mdi-police-badge-outline:before{content:"󱅨"}.mdi-police-station:before{content:"󱠹"}.mdi-poll:before{content:"󰐟"}.mdi-polo:before{content:"󱓃"}.mdi-polymer:before{content:"󰐡"}.mdi-pool:before{content:"󰘆"}.mdi-pool-thermometer:before{content:"󱩟"}.mdi-popcorn:before{content:"󰐢"}.mdi-post:before{content:"󱀈"}.mdi-post-lamp:before{content:"󱩠"}.mdi-post-outline:before{content:"󱀉"}.mdi-postage-stamp:before{content:"󰲻"}.mdi-pot:before{content:"󰋥"}.mdi-pot-mix:before{content:"󰙛"}.mdi-pot-mix-outline:before{content:"󰙷"}.mdi-pot-outline:before{content:"󰋿"}.mdi-pot-steam:before{content:"󰙚"}.mdi-pot-steam-outline:before{content:"󰌦"}.mdi-pound:before{content:"󰐣"}.mdi-pound-box:before{content:"󰐤"}.mdi-pound-box-outline:before{content:"󱅿"}.mdi-power:before{content:"󰐥"}.mdi-power-cycle:before{content:"󰤁"}.mdi-power-off:before{content:"󰤂"}.mdi-power-on:before{content:"󰤃"}.mdi-power-plug:before{content:"󰚥"}.mdi-power-plug-battery:before{content:"󱰻"}.mdi-power-plug-battery-outline:before{content:"󱰼"}.mdi-power-plug-off:before{content:"󰚦"}.mdi-power-plug-off-outline:before{content:"󱐤"}.mdi-power-plug-outline:before{content:"󱐥"}.mdi-power-settings:before{content:"󰐦"}.mdi-power-sleep:before{content:"󰤄"}.mdi-power-socket:before{content:"󰐧"}.mdi-power-socket-au:before{content:"󰤅"}.mdi-power-socket-ch:before{content:"󰾳"}.mdi-power-socket-de:before{content:"󱄇"}.mdi-power-socket-eu:before{content:"󰟧"}.mdi-power-socket-fr:before{content:"󱄈"}.mdi-power-socket-it:before{content:"󱓿"}.mdi-power-socket-jp:before{content:"󱄉"}.mdi-power-socket-uk:before{content:"󰟨"}.mdi-power-socket-us:before{content:"󰟩"}.mdi-power-standby:before{content:"󰤆"}.mdi-powershell:before{content:"󰨊"}.mdi-prescription:before{content:"󰜆"}.mdi-presentation:before{content:"󰐨"}.mdi-presentation-play:before{content:"󰐩"}.mdi-pretzel:before{content:"󱕢"}.mdi-printer:before{content:"󰐪"}.mdi-printer-3d:before{content:"󰐫"}.mdi-printer-3d-nozzle:before{content:"󰹛"}.mdi-printer-3d-nozzle-alert:before{content:"󱇀"}.mdi-printer-3d-nozzle-alert-outline:before{content:"󱇁"}.mdi-printer-3d-nozzle-heat:before{content:"󱢸"}.mdi-printer-3d-nozzle-heat-outline:before{content:"󱢹"}.mdi-printer-3d-nozzle-off:before{content:"󱬙"}.mdi-printer-3d-nozzle-off-outline:before{content:"󱬚"}.mdi-printer-3d-nozzle-outline:before{content:"󰹜"}.mdi-printer-3d-off:before{content:"󱬎"}.mdi-printer-alert:before{content:"󰐬"}.mdi-printer-check:before{content:"󱅆"}.mdi-printer-eye:before{content:"󱑘"}.mdi-printer-off:before{content:"󰹝"}.mdi-printer-off-outline:before{content:"󱞅"}.mdi-printer-outline:before{content:"󱞆"}.mdi-printer-pos:before{content:"󱁗"}.mdi-printer-pos-alert:before{content:"󱮼"}.mdi-printer-pos-alert-outline:before{content:"󱮽"}.mdi-printer-pos-cancel:before{content:"󱮾"}.mdi-printer-pos-cancel-outline:before{content:"󱮿"}.mdi-printer-pos-check:before{content:"󱯀"}.mdi-printer-pos-check-outline:before{content:"󱯁"}.mdi-printer-pos-cog:before{content:"󱯂"}.mdi-printer-pos-cog-outline:before{content:"󱯃"}.mdi-printer-pos-edit:before{content:"󱯄"}.mdi-printer-pos-edit-outline:before{content:"󱯅"}.mdi-printer-pos-minus:before{content:"󱯆"}.mdi-printer-pos-minus-outline:before{content:"󱯇"}.mdi-printer-pos-network:before{content:"󱯈"}.mdi-printer-pos-network-outline:before{content:"󱯉"}.mdi-printer-pos-off:before{content:"󱯊"}.mdi-printer-pos-off-outline:before{content:"󱯋"}.mdi-printer-pos-outline:before{content:"󱯌"}.mdi-printer-pos-pause:before{content:"󱯍"}.mdi-printer-pos-pause-outline:before{content:"󱯎"}.mdi-printer-pos-play:before{content:"󱯏"}.mdi-printer-pos-play-outline:before{content:"󱯐"}.mdi-printer-pos-plus:before{content:"󱯑"}.mdi-printer-pos-plus-outline:before{content:"󱯒"}.mdi-printer-pos-refresh:before{content:"󱯓"}.mdi-printer-pos-refresh-outline:before{content:"󱯔"}.mdi-printer-pos-remove:before{content:"󱯕"}.mdi-printer-pos-remove-outline:before{content:"󱯖"}.mdi-printer-pos-star:before{content:"󱯗"}.mdi-printer-pos-star-outline:before{content:"󱯘"}.mdi-printer-pos-stop:before{content:"󱯙"}.mdi-printer-pos-stop-outline:before{content:"󱯚"}.mdi-printer-pos-sync:before{content:"󱯛"}.mdi-printer-pos-sync-outline:before{content:"󱯜"}.mdi-printer-pos-wrench:before{content:"󱯝"}.mdi-printer-pos-wrench-outline:before{content:"󱯞"}.mdi-printer-search:before{content:"󱑗"}.mdi-printer-settings:before{content:"󰜇"}.mdi-printer-wireless:before{content:"󰨋"}.mdi-priority-high:before{content:"󰘃"}.mdi-priority-low:before{content:"󰘄"}.mdi-professional-hexagon:before{content:"󰐭"}.mdi-progress-alert:before{content:"󰲼"}.mdi-progress-check:before{content:"󰦕"}.mdi-progress-clock:before{content:"󰦖"}.mdi-progress-close:before{content:"󱄊"}.mdi-progress-download:before{content:"󰦗"}.mdi-progress-helper:before{content:"󱮢"}.mdi-progress-pencil:before{content:"󱞇"}.mdi-progress-question:before{content:"󱔢"}.mdi-progress-star:before{content:"󱞈"}.mdi-progress-star-four-points:before{content:"󱰽"}.mdi-progress-upload:before{content:"󰦘"}.mdi-progress-wrench:before{content:"󰲽"}.mdi-projector:before{content:"󰐮"}.mdi-projector-off:before{content:"󱨣"}.mdi-projector-screen:before{content:"󰐯"}.mdi-projector-screen-off:before{content:"󱠍"}.mdi-projector-screen-off-outline:before{content:"󱠎"}.mdi-projector-screen-outline:before{content:"󱜤"}.mdi-projector-screen-variant:before{content:"󱠏"}.mdi-projector-screen-variant-off:before{content:"󱠐"}.mdi-projector-screen-variant-off-outline:before{content:"󱠑"}.mdi-projector-screen-variant-outline:before{content:"󱠒"}.mdi-propane-tank:before{content:"󱍗"}.mdi-propane-tank-outline:before{content:"󱍘"}.mdi-protocol:before{content:"󰿘"}.mdi-publish:before{content:"󰚧"}.mdi-publish-off:before{content:"󱥅"}.mdi-pulse:before{content:"󰐰"}.mdi-pump:before{content:"󱐂"}.mdi-pump-off:before{content:"󱬢"}.mdi-pumpkin:before{content:"󰮿"}.mdi-purse:before{content:"󰼜"}.mdi-purse-outline:before{content:"󰼝"}.mdi-puzzle:before{content:"󰐱"}.mdi-puzzle-check:before{content:"󱐦"}.mdi-puzzle-check-outline:before{content:"󱐧"}.mdi-puzzle-edit:before{content:"󱓓"}.mdi-puzzle-edit-outline:before{content:"󱓙"}.mdi-puzzle-heart:before{content:"󱓔"}.mdi-puzzle-heart-outline:before{content:"󱓚"}.mdi-puzzle-minus:before{content:"󱓑"}.mdi-puzzle-minus-outline:before{content:"󱓗"}.mdi-puzzle-outline:before{content:"󰩦"}.mdi-puzzle-plus:before{content:"󱓐"}.mdi-puzzle-plus-outline:before{content:"󱓖"}.mdi-puzzle-remove:before{content:"󱓒"}.mdi-puzzle-remove-outline:before{content:"󱓘"}.mdi-puzzle-star:before{content:"󱓕"}.mdi-puzzle-star-outline:before{content:"󱓛"}.mdi-pyramid:before{content:"󱥒"}.mdi-pyramid-off:before{content:"󱥓"}.mdi-qi:before{content:"󰦙"}.mdi-qqchat:before{content:"󰘅"}.mdi-qrcode:before{content:"󰐲"}.mdi-qrcode-edit:before{content:"󰢸"}.mdi-qrcode-minus:before{content:"󱆌"}.mdi-qrcode-plus:before{content:"󱆋"}.mdi-qrcode-remove:before{content:"󱆍"}.mdi-qrcode-scan:before{content:"󰐳"}.mdi-quadcopter:before{content:"󰐴"}.mdi-quality-high:before{content:"󰐵"}.mdi-quality-low:before{content:"󰨌"}.mdi-quality-medium:before{content:"󰨍"}.mdi-queue-first-in-last-out:before{content:"󱲯"}.mdi-quora:before{content:"󰴩"}.mdi-rabbit:before{content:"󰤇"}.mdi-rabbit-variant:before{content:"󱩡"}.mdi-rabbit-variant-outline:before{content:"󱩢"}.mdi-racing-helmet:before{content:"󰶓"}.mdi-racquetball:before{content:"󰶔"}.mdi-radar:before{content:"󰐷"}.mdi-radiator:before{content:"󰐸"}.mdi-radiator-disabled:before{content:"󰫗"}.mdi-radiator-off:before{content:"󰫘"}.mdi-radio:before{content:"󰐹"}.mdi-radio-am:before{content:"󰲾"}.mdi-radio-fm:before{content:"󰲿"}.mdi-radio-handheld:before{content:"󰐺"}.mdi-radio-off:before{content:"󱈜"}.mdi-radio-tower:before{content:"󰐻"}.mdi-radioactive:before{content:"󰐼"}.mdi-radioactive-circle:before{content:"󱡝"}.mdi-radioactive-circle-outline:before{content:"󱡞"}.mdi-radioactive-off:before{content:"󰻁"}.mdi-radiobox-blank:before{content:"󰐽"}.mdi-radiobox-indeterminate-variant:before{content:"󱱞"}.mdi-radiobox-marked:before{content:"󰐾"}.mdi-radiology-box:before{content:"󱓅"}.mdi-radiology-box-outline:before{content:"󱓆"}.mdi-radius:before{content:"󰳀"}.mdi-radius-outline:before{content:"󰳁"}.mdi-railroad-light:before{content:"󰼞"}.mdi-rake:before{content:"󱕄"}.mdi-raspberry-pi:before{content:"󰐿"}.mdi-raw:before{content:"󱨏"}.mdi-raw-off:before{content:"󱨐"}.mdi-ray-end:before{content:"󰑀"}.mdi-ray-end-arrow:before{content:"󰑁"}.mdi-ray-start:before{content:"󰑂"}.mdi-ray-start-arrow:before{content:"󰑃"}.mdi-ray-start-end:before{content:"󰑄"}.mdi-ray-start-vertex-end:before{content:"󱗘"}.mdi-ray-vertex:before{content:"󰑅"}.mdi-razor-double-edge:before{content:"󱦗"}.mdi-razor-single-edge:before{content:"󱦘"}.mdi-react:before{content:"󰜈"}.mdi-read:before{content:"󰑇"}.mdi-receipt:before{content:"󰠤"}.mdi-receipt-clock:before{content:"󱰾"}.mdi-receipt-clock-outline:before{content:"󱰿"}.mdi-receipt-outline:before{content:"󰓷"}.mdi-receipt-send:before{content:"󱱀"}.mdi-receipt-send-outline:before{content:"󱱁"}.mdi-receipt-text:before{content:"󰑉"}.mdi-receipt-text-arrow-left:before{content:"󱱂"}.mdi-receipt-text-arrow-left-outline:before{content:"󱱃"}.mdi-receipt-text-arrow-right:before{content:"󱱄"}.mdi-receipt-text-arrow-right-outline:before{content:"󱱅"}.mdi-receipt-text-check:before{content:"󱩣"}.mdi-receipt-text-check-outline:before{content:"󱩤"}.mdi-receipt-text-clock:before{content:"󱱆"}.mdi-receipt-text-clock-outline:before{content:"󱱇"}.mdi-receipt-text-edit:before{content:"󱱈"}.mdi-receipt-text-edit-outline:before{content:"󱱉"}.mdi-receipt-text-minus:before{content:"󱩥"}.mdi-receipt-text-minus-outline:before{content:"󱩦"}.mdi-receipt-text-outline:before{content:"󱧜"}.mdi-receipt-text-plus:before{content:"󱩧"}.mdi-receipt-text-plus-outline:before{content:"󱩨"}.mdi-receipt-text-remove:before{content:"󱩩"}.mdi-receipt-text-remove-outline:before{content:"󱩪"}.mdi-receipt-text-send:before{content:"󱱊"}.mdi-receipt-text-send-outline:before{content:"󱱋"}.mdi-record:before{content:"󰑊"}.mdi-record-circle:before{content:"󰻂"}.mdi-record-circle-outline:before{content:"󰻃"}.mdi-record-player:before{content:"󰦚"}.mdi-record-rec:before{content:"󰑋"}.mdi-rectangle:before{content:"󰹞"}.mdi-rectangle-outline:before{content:"󰹟"}.mdi-recycle:before{content:"󰑌"}.mdi-recycle-variant:before{content:"󱎝"}.mdi-reddit:before{content:"󰑍"}.mdi-redhat:before{content:"󱄛"}.mdi-redo:before{content:"󰑎"}.mdi-redo-variant:before{content:"󰑏"}.mdi-reflect-horizontal:before{content:"󰨎"}.mdi-reflect-vertical:before{content:"󰨏"}.mdi-refresh:before{content:"󰑐"}.mdi-refresh-auto:before{content:"󱣲"}.mdi-refresh-circle:before{content:"󱍷"}.mdi-regex:before{content:"󰑑"}.mdi-registered-trademark:before{content:"󰩧"}.mdi-reiterate:before{content:"󱖈"}.mdi-relation-many-to-many:before{content:"󱒖"}.mdi-relation-many-to-one:before{content:"󱒗"}.mdi-relation-many-to-one-or-many:before{content:"󱒘"}.mdi-relation-many-to-only-one:before{content:"󱒙"}.mdi-relation-many-to-zero-or-many:before{content:"󱒚"}.mdi-relation-many-to-zero-or-one:before{content:"󱒛"}.mdi-relation-one-or-many-to-many:before{content:"󱒜"}.mdi-relation-one-or-many-to-one:before{content:"󱒝"}.mdi-relation-one-or-many-to-one-or-many:before{content:"󱒞"}.mdi-relation-one-or-many-to-only-one:before{content:"󱒟"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"󱒠"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"󱒡"}.mdi-relation-one-to-many:before{content:"󱒢"}.mdi-relation-one-to-one:before{content:"󱒣"}.mdi-relation-one-to-one-or-many:before{content:"󱒤"}.mdi-relation-one-to-only-one:before{content:"󱒥"}.mdi-relation-one-to-zero-or-many:before{content:"󱒦"}.mdi-relation-one-to-zero-or-one:before{content:"󱒧"}.mdi-relation-only-one-to-many:before{content:"󱒨"}.mdi-relation-only-one-to-one:before{content:"󱒩"}.mdi-relation-only-one-to-one-or-many:before{content:"󱒪"}.mdi-relation-only-one-to-only-one:before{content:"󱒫"}.mdi-relation-only-one-to-zero-or-many:before{content:"󱒬"}.mdi-relation-only-one-to-zero-or-one:before{content:"󱒭"}.mdi-relation-zero-or-many-to-many:before{content:"󱒮"}.mdi-relation-zero-or-many-to-one:before{content:"󱒯"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"󱒰"}.mdi-relation-zero-or-many-to-only-one:before{content:"󱒱"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"󱒲"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"󱒳"}.mdi-relation-zero-or-one-to-many:before{content:"󱒴"}.mdi-relation-zero-or-one-to-one:before{content:"󱒵"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"󱒶"}.mdi-relation-zero-or-one-to-only-one:before{content:"󱒷"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"󱒸"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"󱒹"}.mdi-relative-scale:before{content:"󰑒"}.mdi-reload:before{content:"󰑓"}.mdi-reload-alert:before{content:"󱄋"}.mdi-reminder:before{content:"󰢌"}.mdi-remote:before{content:"󰑔"}.mdi-remote-desktop:before{content:"󰢹"}.mdi-remote-off:before{content:"󰻄"}.mdi-remote-tv:before{content:"󰻅"}.mdi-remote-tv-off:before{content:"󰻆"}.mdi-rename:before{content:"󱰘"}.mdi-rename-box:before{content:"󰑕"}.mdi-rename-box-outline:before{content:"󱰙"}.mdi-rename-outline:before{content:"󱰚"}.mdi-reorder-horizontal:before{content:"󰚈"}.mdi-reorder-vertical:before{content:"󰚉"}.mdi-repeat:before{content:"󰑖"}.mdi-repeat-off:before{content:"󰑗"}.mdi-repeat-once:before{content:"󰑘"}.mdi-repeat-variant:before{content:"󰕇"}.mdi-replay:before{content:"󰑙"}.mdi-reply:before{content:"󰑚"}.mdi-reply-all:before{content:"󰑛"}.mdi-reply-all-outline:before{content:"󰼟"}.mdi-reply-circle:before{content:"󱆮"}.mdi-reply-outline:before{content:"󰼠"}.mdi-reproduction:before{content:"󰑜"}.mdi-resistor:before{content:"󰭄"}.mdi-resistor-nodes:before{content:"󰭅"}.mdi-resize:before{content:"󰩨"}.mdi-resize-bottom-right:before{content:"󰑝"}.mdi-responsive:before{content:"󰑞"}.mdi-restart:before{content:"󰜉"}.mdi-restart-alert:before{content:"󱄌"}.mdi-restart-off:before{content:"󰶕"}.mdi-restore:before{content:"󰦛"}.mdi-restore-alert:before{content:"󱄍"}.mdi-rewind:before{content:"󰑟"}.mdi-rewind-10:before{content:"󰴪"}.mdi-rewind-15:before{content:"󱥆"}.mdi-rewind-30:before{content:"󰶖"}.mdi-rewind-45:before{content:"󱬓"}.mdi-rewind-5:before{content:"󱇹"}.mdi-rewind-60:before{content:"󱘌"}.mdi-rewind-outline:before{content:"󰜊"}.mdi-rhombus:before{content:"󰜋"}.mdi-rhombus-medium:before{content:"󰨐"}.mdi-rhombus-medium-outline:before{content:"󱓜"}.mdi-rhombus-outline:before{content:"󰜌"}.mdi-rhombus-split:before{content:"󰨑"}.mdi-rhombus-split-outline:before{content:"󱓝"}.mdi-ribbon:before{content:"󰑠"}.mdi-rice:before{content:"󰟪"}.mdi-rickshaw:before{content:"󱖻"}.mdi-rickshaw-electric:before{content:"󱖼"}.mdi-ring:before{content:"󰟫"}.mdi-rivet:before{content:"󰹠"}.mdi-road:before{content:"󰑡"}.mdi-road-variant:before{content:"󰑢"}.mdi-robber:before{content:"󱁘"}.mdi-robot:before{content:"󰚩"}.mdi-robot-angry:before{content:"󱚝"}.mdi-robot-angry-outline:before{content:"󱚞"}.mdi-robot-confused:before{content:"󱚟"}.mdi-robot-confused-outline:before{content:"󱚠"}.mdi-robot-dead:before{content:"󱚡"}.mdi-robot-dead-outline:before{content:"󱚢"}.mdi-robot-excited:before{content:"󱚣"}.mdi-robot-excited-outline:before{content:"󱚤"}.mdi-robot-happy:before{content:"󱜙"}.mdi-robot-happy-outline:before{content:"󱜚"}.mdi-robot-industrial:before{content:"󰭆"}.mdi-robot-industrial-outline:before{content:"󱨚"}.mdi-robot-love:before{content:"󱚥"}.mdi-robot-love-outline:before{content:"󱚦"}.mdi-robot-mower:before{content:"󱇷"}.mdi-robot-mower-outline:before{content:"󱇳"}.mdi-robot-off:before{content:"󱚧"}.mdi-robot-off-outline:before{content:"󱙻"}.mdi-robot-outline:before{content:"󱙺"}.mdi-robot-vacuum:before{content:"󰜍"}.mdi-robot-vacuum-alert:before{content:"󱭝"}.mdi-robot-vacuum-off:before{content:"󱰁"}.mdi-robot-vacuum-variant:before{content:"󰤈"}.mdi-robot-vacuum-variant-alert:before{content:"󱭞"}.mdi-robot-vacuum-variant-off:before{content:"󱰂"}.mdi-rocket:before{content:"󰑣"}.mdi-rocket-launch:before{content:"󱓞"}.mdi-rocket-launch-outline:before{content:"󱓟"}.mdi-rocket-outline:before{content:"󱎯"}.mdi-rodent:before{content:"󱌧"}.mdi-roller-shade:before{content:"󱩫"}.mdi-roller-shade-closed:before{content:"󱩬"}.mdi-roller-skate:before{content:"󰴫"}.mdi-roller-skate-off:before{content:"󰅅"}.mdi-rollerblade:before{content:"󰴬"}.mdi-rollerblade-off:before{content:"󰀮"}.mdi-rollupjs:before{content:"󰯀"}.mdi-rolodex:before{content:"󱪹"}.mdi-rolodex-outline:before{content:"󱪺"}.mdi-roman-numeral-1:before{content:"󱂈"}.mdi-roman-numeral-10:before{content:"󱂑"}.mdi-roman-numeral-2:before{content:"󱂉"}.mdi-roman-numeral-3:before{content:"󱂊"}.mdi-roman-numeral-4:before{content:"󱂋"}.mdi-roman-numeral-5:before{content:"󱂌"}.mdi-roman-numeral-6:before{content:"󱂍"}.mdi-roman-numeral-7:before{content:"󱂎"}.mdi-roman-numeral-8:before{content:"󱂏"}.mdi-roman-numeral-9:before{content:"󱂐"}.mdi-room-service:before{content:"󰢍"}.mdi-room-service-outline:before{content:"󰶗"}.mdi-rotate-360:before{content:"󱦙"}.mdi-rotate-3d:before{content:"󰻇"}.mdi-rotate-3d-variant:before{content:"󰑤"}.mdi-rotate-left:before{content:"󰑥"}.mdi-rotate-left-variant:before{content:"󰑦"}.mdi-rotate-orbit:before{content:"󰶘"}.mdi-rotate-right:before{content:"󰑧"}.mdi-rotate-right-variant:before{content:"󰑨"}.mdi-rounded-corner:before{content:"󰘇"}.mdi-router:before{content:"󱇢"}.mdi-router-network:before{content:"󱂇"}.mdi-router-network-wireless:before{content:"󱲗"}.mdi-router-wireless:before{content:"󰑩"}.mdi-router-wireless-off:before{content:"󱖣"}.mdi-router-wireless-settings:before{content:"󰩩"}.mdi-routes:before{content:"󰑪"}.mdi-routes-clock:before{content:"󱁙"}.mdi-rowing:before{content:"󰘈"}.mdi-rss:before{content:"󰑫"}.mdi-rss-box:before{content:"󰑬"}.mdi-rss-off:before{content:"󰼡"}.mdi-rug:before{content:"󱑵"}.mdi-rugby:before{content:"󰶙"}.mdi-ruler:before{content:"󰑭"}.mdi-ruler-square:before{content:"󰳂"}.mdi-ruler-square-compass:before{content:"󰺾"}.mdi-run:before{content:"󰜎"}.mdi-run-fast:before{content:"󰑮"}.mdi-rv-truck:before{content:"󱇔"}.mdi-sack:before{content:"󰴮"}.mdi-sack-outline:before{content:"󱱌"}.mdi-sack-percent:before{content:"󰴯"}.mdi-safe:before{content:"󰩪"}.mdi-safe-square:before{content:"󱉼"}.mdi-safe-square-outline:before{content:"󱉽"}.mdi-safety-goggles:before{content:"󰴰"}.mdi-sail-boat:before{content:"󰻈"}.mdi-sail-boat-sink:before{content:"󱫯"}.mdi-sale:before{content:"󰑯"}.mdi-sale-outline:before{content:"󱨆"}.mdi-salesforce:before{content:"󰢎"}.mdi-sass:before{content:"󰟬"}.mdi-satellite:before{content:"󰑰"}.mdi-satellite-uplink:before{content:"󰤉"}.mdi-satellite-variant:before{content:"󰑱"}.mdi-sausage:before{content:"󰢺"}.mdi-sausage-off:before{content:"󱞉"}.mdi-saw-blade:before{content:"󰹡"}.mdi-sawtooth-wave:before{content:"󱑺"}.mdi-saxophone:before{content:"󰘉"}.mdi-scale:before{content:"󰑲"}.mdi-scale-balance:before{content:"󰗑"}.mdi-scale-bathroom:before{content:"󰑳"}.mdi-scale-off:before{content:"󱁚"}.mdi-scale-unbalanced:before{content:"󱦸"}.mdi-scan-helper:before{content:"󱏘"}.mdi-scanner:before{content:"󰚫"}.mdi-scanner-off:before{content:"󰤊"}.mdi-scatter-plot:before{content:"󰻉"}.mdi-scatter-plot-outline:before{content:"󰻊"}.mdi-scent:before{content:"󱥘"}.mdi-scent-off:before{content:"󱥙"}.mdi-school:before{content:"󰑴"}.mdi-school-outline:before{content:"󱆀"}.mdi-scissors-cutting:before{content:"󰩫"}.mdi-scooter:before{content:"󱖽"}.mdi-scooter-electric:before{content:"󱖾"}.mdi-scoreboard:before{content:"󱉾"}.mdi-scoreboard-outline:before{content:"󱉿"}.mdi-screen-rotation:before{content:"󰑵"}.mdi-screen-rotation-lock:before{content:"󰑸"}.mdi-screw-flat-top:before{content:"󰷳"}.mdi-screw-lag:before{content:"󰷴"}.mdi-screw-machine-flat-top:before{content:"󰷵"}.mdi-screw-machine-round-top:before{content:"󰷶"}.mdi-screw-round-top:before{content:"󰷷"}.mdi-screwdriver:before{content:"󰑶"}.mdi-script:before{content:"󰯁"}.mdi-script-outline:before{content:"󰑷"}.mdi-script-text:before{content:"󰯂"}.mdi-script-text-key:before{content:"󱜥"}.mdi-script-text-key-outline:before{content:"󱜦"}.mdi-script-text-outline:before{content:"󰯃"}.mdi-script-text-play:before{content:"󱜧"}.mdi-script-text-play-outline:before{content:"󱜨"}.mdi-sd:before{content:"󰑹"}.mdi-seal:before{content:"󰑺"}.mdi-seal-variant:before{content:"󰿙"}.mdi-search-web:before{content:"󰜏"}.mdi-seat:before{content:"󰳃"}.mdi-seat-flat:before{content:"󰑻"}.mdi-seat-flat-angled:before{content:"󰑼"}.mdi-seat-individual-suite:before{content:"󰑽"}.mdi-seat-legroom-extra:before{content:"󰑾"}.mdi-seat-legroom-normal:before{content:"󰑿"}.mdi-seat-legroom-reduced:before{content:"󰒀"}.mdi-seat-outline:before{content:"󰳄"}.mdi-seat-passenger:before{content:"󱉉"}.mdi-seat-recline-extra:before{content:"󰒁"}.mdi-seat-recline-normal:before{content:"󰒂"}.mdi-seatbelt:before{content:"󰳅"}.mdi-security:before{content:"󰒃"}.mdi-security-network:before{content:"󰒄"}.mdi-seed:before{content:"󰹢"}.mdi-seed-off:before{content:"󱏽"}.mdi-seed-off-outline:before{content:"󱏾"}.mdi-seed-outline:before{content:"󰹣"}.mdi-seed-plus:before{content:"󱩭"}.mdi-seed-plus-outline:before{content:"󱩮"}.mdi-seesaw:before{content:"󱖤"}.mdi-segment:before{content:"󰻋"}.mdi-select:before{content:"󰒅"}.mdi-select-all:before{content:"󰒆"}.mdi-select-arrow-down:before{content:"󱭙"}.mdi-select-arrow-up:before{content:"󱭘"}.mdi-select-color:before{content:"󰴱"}.mdi-select-compare:before{content:"󰫙"}.mdi-select-drag:before{content:"󰩬"}.mdi-select-group:before{content:"󰾂"}.mdi-select-inverse:before{content:"󰒇"}.mdi-select-marker:before{content:"󱊀"}.mdi-select-multiple:before{content:"󱊁"}.mdi-select-multiple-marker:before{content:"󱊂"}.mdi-select-off:before{content:"󰒈"}.mdi-select-place:before{content:"󰿚"}.mdi-select-remove:before{content:"󱟁"}.mdi-select-search:before{content:"󱈄"}.mdi-selection:before{content:"󰒉"}.mdi-selection-drag:before{content:"󰩭"}.mdi-selection-ellipse:before{content:"󰴲"}.mdi-selection-ellipse-arrow-inside:before{content:"󰼢"}.mdi-selection-ellipse-remove:before{content:"󱟂"}.mdi-selection-marker:before{content:"󱊃"}.mdi-selection-multiple:before{content:"󱊅"}.mdi-selection-multiple-marker:before{content:"󱊄"}.mdi-selection-off:before{content:"󰝷"}.mdi-selection-remove:before{content:"󱟃"}.mdi-selection-search:before{content:"󱈅"}.mdi-semantic-web:before{content:"󱌖"}.mdi-send:before{content:"󰒊"}.mdi-send-check:before{content:"󱅡"}.mdi-send-check-outline:before{content:"󱅢"}.mdi-send-circle:before{content:"󰷸"}.mdi-send-circle-outline:before{content:"󰷹"}.mdi-send-clock:before{content:"󱅣"}.mdi-send-clock-outline:before{content:"󱅤"}.mdi-send-lock:before{content:"󰟭"}.mdi-send-lock-outline:before{content:"󱅦"}.mdi-send-outline:before{content:"󱅥"}.mdi-send-variant:before{content:"󱱍"}.mdi-send-variant-clock:before{content:"󱱾"}.mdi-send-variant-clock-outline:before{content:"󱱿"}.mdi-send-variant-outline:before{content:"󱱎"}.mdi-serial-port:before{content:"󰙜"}.mdi-server:before{content:"󰒋"}.mdi-server-minus:before{content:"󰒌"}.mdi-server-minus-outline:before{content:"󱲘"}.mdi-server-network:before{content:"󰒍"}.mdi-server-network-off:before{content:"󰒎"}.mdi-server-network-outline:before{content:"󱲙"}.mdi-server-off:before{content:"󰒏"}.mdi-server-outline:before{content:"󱲚"}.mdi-server-plus:before{content:"󰒐"}.mdi-server-plus-outline:before{content:"󱲛"}.mdi-server-remove:before{content:"󰒑"}.mdi-server-security:before{content:"󰒒"}.mdi-set-all:before{content:"󰝸"}.mdi-set-center:before{content:"󰝹"}.mdi-set-center-right:before{content:"󰝺"}.mdi-set-left:before{content:"󰝻"}.mdi-set-left-center:before{content:"󰝼"}.mdi-set-left-right:before{content:"󰝽"}.mdi-set-merge:before{content:"󱓠"}.mdi-set-none:before{content:"󰝾"}.mdi-set-right:before{content:"󰝿"}.mdi-set-split:before{content:"󱓡"}.mdi-set-square:before{content:"󱑝"}.mdi-set-top-box:before{content:"󰦟"}.mdi-settings-helper:before{content:"󰩮"}.mdi-shaker:before{content:"󱄎"}.mdi-shaker-outline:before{content:"󱄏"}.mdi-shape:before{content:"󰠱"}.mdi-shape-circle-plus:before{content:"󰙝"}.mdi-shape-outline:before{content:"󰠲"}.mdi-shape-oval-plus:before{content:"󱇺"}.mdi-shape-plus:before{content:"󰒕"}.mdi-shape-plus-outline:before{content:"󱱏"}.mdi-shape-polygon-plus:before{content:"󰙞"}.mdi-shape-rectangle-plus:before{content:"󰙟"}.mdi-shape-square-plus:before{content:"󰙠"}.mdi-shape-square-rounded-plus:before{content:"󱓺"}.mdi-share:before{content:"󰒖"}.mdi-share-all:before{content:"󱇴"}.mdi-share-all-outline:before{content:"󱇵"}.mdi-share-circle:before{content:"󱆭"}.mdi-share-off:before{content:"󰼣"}.mdi-share-off-outline:before{content:"󰼤"}.mdi-share-outline:before{content:"󰤲"}.mdi-share-variant:before{content:"󰒗"}.mdi-share-variant-outline:before{content:"󱔔"}.mdi-shark:before{content:"󱢺"}.mdi-shark-fin:before{content:"󱙳"}.mdi-shark-fin-outline:before{content:"󱙴"}.mdi-shark-off:before{content:"󱢻"}.mdi-sheep:before{content:"󰳆"}.mdi-shield:before{content:"󰒘"}.mdi-shield-account:before{content:"󰢏"}.mdi-shield-account-outline:before{content:"󰨒"}.mdi-shield-account-variant:before{content:"󱖧"}.mdi-shield-account-variant-outline:before{content:"󱖨"}.mdi-shield-airplane:before{content:"󰚻"}.mdi-shield-airplane-outline:before{content:"󰳇"}.mdi-shield-alert:before{content:"󰻌"}.mdi-shield-alert-outline:before{content:"󰻍"}.mdi-shield-bug:before{content:"󱏚"}.mdi-shield-bug-outline:before{content:"󱏛"}.mdi-shield-car:before{content:"󰾃"}.mdi-shield-check:before{content:"󰕥"}.mdi-shield-check-outline:before{content:"󰳈"}.mdi-shield-cross:before{content:"󰳉"}.mdi-shield-cross-outline:before{content:"󰳊"}.mdi-shield-crown:before{content:"󱢼"}.mdi-shield-crown-outline:before{content:"󱢽"}.mdi-shield-edit:before{content:"󱆠"}.mdi-shield-edit-outline:before{content:"󱆡"}.mdi-shield-half:before{content:"󱍠"}.mdi-shield-half-full:before{content:"󰞀"}.mdi-shield-home:before{content:"󰚊"}.mdi-shield-home-outline:before{content:"󰳋"}.mdi-shield-key:before{content:"󰯄"}.mdi-shield-key-outline:before{content:"󰯅"}.mdi-shield-link-variant:before{content:"󰴳"}.mdi-shield-link-variant-outline:before{content:"󰴴"}.mdi-shield-lock:before{content:"󰦝"}.mdi-shield-lock-open:before{content:"󱦚"}.mdi-shield-lock-open-outline:before{content:"󱦛"}.mdi-shield-lock-outline:before{content:"󰳌"}.mdi-shield-moon:before{content:"󱠨"}.mdi-shield-moon-outline:before{content:"󱠩"}.mdi-shield-off:before{content:"󰦞"}.mdi-shield-off-outline:before{content:"󰦜"}.mdi-shield-outline:before{content:"󰒙"}.mdi-shield-plus:before{content:"󰫚"}.mdi-shield-plus-outline:before{content:"󰫛"}.mdi-shield-refresh:before{content:"󰂪"}.mdi-shield-refresh-outline:before{content:"󰇠"}.mdi-shield-remove:before{content:"󰫜"}.mdi-shield-remove-outline:before{content:"󰫝"}.mdi-shield-search:before{content:"󰶚"}.mdi-shield-star:before{content:"󱄻"}.mdi-shield-star-outline:before{content:"󱄼"}.mdi-shield-sun:before{content:"󱁝"}.mdi-shield-sun-outline:before{content:"󱁞"}.mdi-shield-sword:before{content:"󱢾"}.mdi-shield-sword-outline:before{content:"󱢿"}.mdi-shield-sync:before{content:"󱆢"}.mdi-shield-sync-outline:before{content:"󱆣"}.mdi-shimmer:before{content:"󱕅"}.mdi-ship-wheel:before{content:"󰠳"}.mdi-shipping-pallet:before{content:"󱡎"}.mdi-shoe-ballet:before{content:"󱗊"}.mdi-shoe-cleat:before{content:"󱗇"}.mdi-shoe-formal:before{content:"󰭇"}.mdi-shoe-heel:before{content:"󰭈"}.mdi-shoe-print:before{content:"󰷺"}.mdi-shoe-sneaker:before{content:"󱗈"}.mdi-shopping:before{content:"󰒚"}.mdi-shopping-music:before{content:"󰒛"}.mdi-shopping-outline:before{content:"󱇕"}.mdi-shopping-search:before{content:"󰾄"}.mdi-shopping-search-outline:before{content:"󱩯"}.mdi-shore:before{content:"󱓹"}.mdi-shovel:before{content:"󰜐"}.mdi-shovel-off:before{content:"󰜑"}.mdi-shower:before{content:"󰦠"}.mdi-shower-head:before{content:"󰦡"}.mdi-shredder:before{content:"󰒜"}.mdi-shuffle:before{content:"󰒝"}.mdi-shuffle-disabled:before{content:"󰒞"}.mdi-shuffle-variant:before{content:"󰒟"}.mdi-shuriken:before{content:"󱍿"}.mdi-sickle:before{content:"󱣀"}.mdi-sigma:before{content:"󰒠"}.mdi-sigma-lower:before{content:"󰘫"}.mdi-sign-caution:before{content:"󰒡"}.mdi-sign-direction:before{content:"󰞁"}.mdi-sign-direction-minus:before{content:"󱀀"}.mdi-sign-direction-plus:before{content:"󰿜"}.mdi-sign-direction-remove:before{content:"󰿝"}.mdi-sign-language:before{content:"󱭍"}.mdi-sign-language-outline:before{content:"󱭎"}.mdi-sign-pole:before{content:"󱓸"}.mdi-sign-real-estate:before{content:"󱄘"}.mdi-sign-text:before{content:"󰞂"}.mdi-sign-yield:before{content:"󱮯"}.mdi-signal:before{content:"󰒢"}.mdi-signal-2g:before{content:"󰜒"}.mdi-signal-3g:before{content:"󰜓"}.mdi-signal-4g:before{content:"󰜔"}.mdi-signal-5g:before{content:"󰩯"}.mdi-signal-cellular-1:before{content:"󰢼"}.mdi-signal-cellular-2:before{content:"󰢽"}.mdi-signal-cellular-3:before{content:"󰢾"}.mdi-signal-cellular-outline:before{content:"󰢿"}.mdi-signal-distance-variant:before{content:"󰹤"}.mdi-signal-hspa:before{content:"󰜕"}.mdi-signal-hspa-plus:before{content:"󰜖"}.mdi-signal-off:before{content:"󰞃"}.mdi-signal-variant:before{content:"󰘊"}.mdi-signature:before{content:"󰷻"}.mdi-signature-freehand:before{content:"󰷼"}.mdi-signature-image:before{content:"󰷽"}.mdi-signature-text:before{content:"󰷾"}.mdi-silo:before{content:"󱮟"}.mdi-silo-outline:before{content:"󰭉"}.mdi-silverware:before{content:"󰒣"}.mdi-silverware-clean:before{content:"󰿞"}.mdi-silverware-fork:before{content:"󰒤"}.mdi-silverware-fork-knife:before{content:"󰩰"}.mdi-silverware-spoon:before{content:"󰒥"}.mdi-silverware-variant:before{content:"󰒦"}.mdi-sim:before{content:"󰒧"}.mdi-sim-alert:before{content:"󰒨"}.mdi-sim-alert-outline:before{content:"󱗓"}.mdi-sim-off:before{content:"󰒩"}.mdi-sim-off-outline:before{content:"󱗔"}.mdi-sim-outline:before{content:"󱗕"}.mdi-simple-icons:before{content:"󱌝"}.mdi-sina-weibo:before{content:"󰫟"}.mdi-sine-wave:before{content:"󰥛"}.mdi-sitemap:before{content:"󰒪"}.mdi-sitemap-outline:before{content:"󱦜"}.mdi-size-l:before{content:"󱎦"}.mdi-size-m:before{content:"󱎥"}.mdi-size-s:before{content:"󱎤"}.mdi-size-xl:before{content:"󱎧"}.mdi-size-xs:before{content:"󱎣"}.mdi-size-xxl:before{content:"󱎨"}.mdi-size-xxs:before{content:"󱎢"}.mdi-size-xxxl:before{content:"󱎩"}.mdi-skate:before{content:"󰴵"}.mdi-skate-off:before{content:"󰚙"}.mdi-skateboard:before{content:"󱓂"}.mdi-skateboarding:before{content:"󰔁"}.mdi-skew-less:before{content:"󰴶"}.mdi-skew-more:before{content:"󰴷"}.mdi-ski:before{content:"󱌄"}.mdi-ski-cross-country:before{content:"󱌅"}.mdi-ski-water:before{content:"󱌆"}.mdi-skip-backward:before{content:"󰒫"}.mdi-skip-backward-outline:before{content:"󰼥"}.mdi-skip-forward:before{content:"󰒬"}.mdi-skip-forward-outline:before{content:"󰼦"}.mdi-skip-next:before{content:"󰒭"}.mdi-skip-next-circle:before{content:"󰙡"}.mdi-skip-next-circle-outline:before{content:"󰙢"}.mdi-skip-next-outline:before{content:"󰼧"}.mdi-skip-previous:before{content:"󰒮"}.mdi-skip-previous-circle:before{content:"󰙣"}.mdi-skip-previous-circle-outline:before{content:"󰙤"}.mdi-skip-previous-outline:before{content:"󰼨"}.mdi-skull:before{content:"󰚌"}.mdi-skull-crossbones:before{content:"󰯆"}.mdi-skull-crossbones-outline:before{content:"󰯇"}.mdi-skull-outline:before{content:"󰯈"}.mdi-skull-scan:before{content:"󱓇"}.mdi-skull-scan-outline:before{content:"󱓈"}.mdi-skype:before{content:"󰒯"}.mdi-skype-business:before{content:"󰒰"}.mdi-slack:before{content:"󰒱"}.mdi-slash-forward:before{content:"󰿟"}.mdi-slash-forward-box:before{content:"󰿠"}.mdi-sledding:before{content:"󰐛"}.mdi-sleep:before{content:"󰒲"}.mdi-sleep-off:before{content:"󰒳"}.mdi-slide:before{content:"󱖥"}.mdi-slope-downhill:before{content:"󰷿"}.mdi-slope-uphill:before{content:"󰸀"}.mdi-slot-machine:before{content:"󱄔"}.mdi-slot-machine-outline:before{content:"󱄕"}.mdi-smart-card:before{content:"󱂽"}.mdi-smart-card-off:before{content:"󱣷"}.mdi-smart-card-off-outline:before{content:"󱣸"}.mdi-smart-card-outline:before{content:"󱂾"}.mdi-smart-card-reader:before{content:"󱂿"}.mdi-smart-card-reader-outline:before{content:"󱃀"}.mdi-smog:before{content:"󰩱"}.mdi-smoke:before{content:"󱞙"}.mdi-smoke-detector:before{content:"󰎒"}.mdi-smoke-detector-alert:before{content:"󱤮"}.mdi-smoke-detector-alert-outline:before{content:"󱤯"}.mdi-smoke-detector-off:before{content:"󱠉"}.mdi-smoke-detector-off-outline:before{content:"󱠊"}.mdi-smoke-detector-outline:before{content:"󱠈"}.mdi-smoke-detector-variant:before{content:"󱠋"}.mdi-smoke-detector-variant-alert:before{content:"󱤰"}.mdi-smoke-detector-variant-off:before{content:"󱠌"}.mdi-smoking:before{content:"󰒴"}.mdi-smoking-off:before{content:"󰒵"}.mdi-smoking-pipe:before{content:"󱐍"}.mdi-smoking-pipe-off:before{content:"󱐨"}.mdi-snail:before{content:"󱙷"}.mdi-snake:before{content:"󱔎"}.mdi-snapchat:before{content:"󰒶"}.mdi-snowboard:before{content:"󱌇"}.mdi-snowflake:before{content:"󰜗"}.mdi-snowflake-alert:before{content:"󰼩"}.mdi-snowflake-check:before{content:"󱩰"}.mdi-snowflake-melt:before{content:"󱋋"}.mdi-snowflake-off:before{content:"󱓣"}.mdi-snowflake-thermometer:before{content:"󱩱"}.mdi-snowflake-variant:before{content:"󰼪"}.mdi-snowman:before{content:"󰒷"}.mdi-snowmobile:before{content:"󰛝"}.mdi-snowshoeing:before{content:"󱩲"}.mdi-soccer:before{content:"󰒸"}.mdi-soccer-field:before{content:"󰠴"}.mdi-social-distance-2-meters:before{content:"󱕹"}.mdi-social-distance-6-feet:before{content:"󱕺"}.mdi-sofa:before{content:"󰒹"}.mdi-sofa-outline:before{content:"󱕭"}.mdi-sofa-single:before{content:"󱕮"}.mdi-sofa-single-outline:before{content:"󱕯"}.mdi-solar-panel:before{content:"󰶛"}.mdi-solar-panel-large:before{content:"󰶜"}.mdi-solar-power:before{content:"󰩲"}.mdi-solar-power-variant:before{content:"󱩳"}.mdi-solar-power-variant-outline:before{content:"󱩴"}.mdi-soldering-iron:before{content:"󱂒"}.mdi-solid:before{content:"󰚍"}.mdi-sony-playstation:before{content:"󰐔"}.mdi-sort:before{content:"󰒺"}.mdi-sort-alphabetical-ascending:before{content:"󰖽"}.mdi-sort-alphabetical-ascending-variant:before{content:"󱅈"}.mdi-sort-alphabetical-descending:before{content:"󰖿"}.mdi-sort-alphabetical-descending-variant:before{content:"󱅉"}.mdi-sort-alphabetical-variant:before{content:"󰒻"}.mdi-sort-ascending:before{content:"󰒼"}.mdi-sort-bool-ascending:before{content:"󱎅"}.mdi-sort-bool-ascending-variant:before{content:"󱎆"}.mdi-sort-bool-descending:before{content:"󱎇"}.mdi-sort-bool-descending-variant:before{content:"󱎈"}.mdi-sort-calendar-ascending:before{content:"󱕇"}.mdi-sort-calendar-descending:before{content:"󱕈"}.mdi-sort-clock-ascending:before{content:"󱕉"}.mdi-sort-clock-ascending-outline:before{content:"󱕊"}.mdi-sort-clock-descending:before{content:"󱕋"}.mdi-sort-clock-descending-outline:before{content:"󱕌"}.mdi-sort-descending:before{content:"󰒽"}.mdi-sort-numeric-ascending:before{content:"󱎉"}.mdi-sort-numeric-ascending-variant:before{content:"󰤍"}.mdi-sort-numeric-descending:before{content:"󱎊"}.mdi-sort-numeric-descending-variant:before{content:"󰫒"}.mdi-sort-numeric-variant:before{content:"󰒾"}.mdi-sort-reverse-variant:before{content:"󰌼"}.mdi-sort-variant:before{content:"󰒿"}.mdi-sort-variant-lock:before{content:"󰳍"}.mdi-sort-variant-lock-open:before{content:"󰳎"}.mdi-sort-variant-off:before{content:"󱪻"}.mdi-sort-variant-remove:before{content:"󱅇"}.mdi-soundbar:before{content:"󱟛"}.mdi-soundcloud:before{content:"󰓀"}.mdi-source-branch:before{content:"󰘬"}.mdi-source-branch-check:before{content:"󱓏"}.mdi-source-branch-minus:before{content:"󱓋"}.mdi-source-branch-plus:before{content:"󱓊"}.mdi-source-branch-refresh:before{content:"󱓍"}.mdi-source-branch-remove:before{content:"󱓌"}.mdi-source-branch-sync:before{content:"󱓎"}.mdi-source-commit:before{content:"󰜘"}.mdi-source-commit-end:before{content:"󰜙"}.mdi-source-commit-end-local:before{content:"󰜚"}.mdi-source-commit-local:before{content:"󰜛"}.mdi-source-commit-next-local:before{content:"󰜜"}.mdi-source-commit-start:before{content:"󰜝"}.mdi-source-commit-start-next-local:before{content:"󰜞"}.mdi-source-fork:before{content:"󰓁"}.mdi-source-merge:before{content:"󰘭"}.mdi-source-pull:before{content:"󰓂"}.mdi-source-repository:before{content:"󰳏"}.mdi-source-repository-multiple:before{content:"󰳐"}.mdi-soy-sauce:before{content:"󰟮"}.mdi-soy-sauce-off:before{content:"󱏼"}.mdi-spa:before{content:"󰳑"}.mdi-spa-outline:before{content:"󰳒"}.mdi-space-invaders:before{content:"󰯉"}.mdi-space-station:before{content:"󱎃"}.mdi-spade:before{content:"󰹥"}.mdi-speaker:before{content:"󰓃"}.mdi-speaker-bluetooth:before{content:"󰦢"}.mdi-speaker-message:before{content:"󱬑"}.mdi-speaker-multiple:before{content:"󰴸"}.mdi-speaker-off:before{content:"󰓄"}.mdi-speaker-pause:before{content:"󱭳"}.mdi-speaker-play:before{content:"󱭲"}.mdi-speaker-stop:before{content:"󱭴"}.mdi-speaker-wireless:before{content:"󰜟"}.mdi-spear:before{content:"󱡅"}.mdi-speedometer:before{content:"󰓅"}.mdi-speedometer-medium:before{content:"󰾅"}.mdi-speedometer-slow:before{content:"󰾆"}.mdi-spellcheck:before{content:"󰓆"}.mdi-sphere:before{content:"󱥔"}.mdi-sphere-off:before{content:"󱥕"}.mdi-spider:before{content:"󱇪"}.mdi-spider-outline:before{content:"󱱵"}.mdi-spider-thread:before{content:"󱇫"}.mdi-spider-web:before{content:"󰯊"}.mdi-spirit-level:before{content:"󱓱"}.mdi-spoon-sugar:before{content:"󱐩"}.mdi-spotify:before{content:"󰓇"}.mdi-spotlight:before{content:"󰓈"}.mdi-spotlight-beam:before{content:"󰓉"}.mdi-spray:before{content:"󰙥"}.mdi-spray-bottle:before{content:"󰫠"}.mdi-sprinkler:before{content:"󱁟"}.mdi-sprinkler-fire:before{content:"󱦝"}.mdi-sprinkler-variant:before{content:"󱁠"}.mdi-sprout:before{content:"󰹦"}.mdi-sprout-outline:before{content:"󰹧"}.mdi-square:before{content:"󰝤"}.mdi-square-circle:before{content:"󱔀"}.mdi-square-circle-outline:before{content:"󱱐"}.mdi-square-edit-outline:before{content:"󰤌"}.mdi-square-medium:before{content:"󰨓"}.mdi-square-medium-outline:before{content:"󰨔"}.mdi-square-off:before{content:"󱋮"}.mdi-square-off-outline:before{content:"󱋯"}.mdi-square-opacity:before{content:"󱡔"}.mdi-square-outline:before{content:"󰝣"}.mdi-square-root:before{content:"󰞄"}.mdi-square-root-box:before{content:"󰦣"}.mdi-square-rounded:before{content:"󱓻"}.mdi-square-rounded-badge:before{content:"󱨇"}.mdi-square-rounded-badge-outline:before{content:"󱨈"}.mdi-square-rounded-outline:before{content:"󱓼"}.mdi-square-small:before{content:"󰨕"}.mdi-square-wave:before{content:"󱑻"}.mdi-squeegee:before{content:"󰫡"}.mdi-ssh:before{content:"󰣀"}.mdi-stack-exchange:before{content:"󰘋"}.mdi-stack-overflow:before{content:"󰓌"}.mdi-stackpath:before{content:"󰍙"}.mdi-stadium:before{content:"󰿹"}.mdi-stadium-outline:before{content:"󱬃"}.mdi-stadium-variant:before{content:"󰜠"}.mdi-stairs:before{content:"󰓍"}.mdi-stairs-box:before{content:"󱎞"}.mdi-stairs-down:before{content:"󱊾"}.mdi-stairs-up:before{content:"󱊽"}.mdi-stamper:before{content:"󰴹"}.mdi-standard-definition:before{content:"󰟯"}.mdi-star:before{content:"󰓎"}.mdi-star-box:before{content:"󰩳"}.mdi-star-box-multiple:before{content:"󱊆"}.mdi-star-box-multiple-outline:before{content:"󱊇"}.mdi-star-box-outline:before{content:"󰩴"}.mdi-star-check:before{content:"󱕦"}.mdi-star-check-outline:before{content:"󱕪"}.mdi-star-circle:before{content:"󰓏"}.mdi-star-circle-outline:before{content:"󰦤"}.mdi-star-cog:before{content:"󱙨"}.mdi-star-cog-outline:before{content:"󱙩"}.mdi-star-crescent:before{content:"󰥹"}.mdi-star-david:before{content:"󰥺"}.mdi-star-face:before{content:"󰦥"}.mdi-star-four-points:before{content:"󰫢"}.mdi-star-four-points-box:before{content:"󱱑"}.mdi-star-four-points-box-outline:before{content:"󱱒"}.mdi-star-four-points-circle:before{content:"󱱓"}.mdi-star-four-points-circle-outline:before{content:"󱱔"}.mdi-star-four-points-outline:before{content:"󰫣"}.mdi-star-four-points-small:before{content:"󱱕"}.mdi-star-half:before{content:"󰉆"}.mdi-star-half-full:before{content:"󰓐"}.mdi-star-minus:before{content:"󱕤"}.mdi-star-minus-outline:before{content:"󱕨"}.mdi-star-off:before{content:"󰓑"}.mdi-star-off-outline:before{content:"󱕛"}.mdi-star-outline:before{content:"󰓒"}.mdi-star-plus:before{content:"󱕣"}.mdi-star-plus-outline:before{content:"󱕧"}.mdi-star-remove:before{content:"󱕥"}.mdi-star-remove-outline:before{content:"󱕩"}.mdi-star-settings:before{content:"󱙪"}.mdi-star-settings-outline:before{content:"󱙫"}.mdi-star-shooting:before{content:"󱝁"}.mdi-star-shooting-outline:before{content:"󱝂"}.mdi-star-three-points:before{content:"󰫤"}.mdi-star-three-points-outline:before{content:"󰫥"}.mdi-state-machine:before{content:"󱇯"}.mdi-steam:before{content:"󰓓"}.mdi-steering:before{content:"󰓔"}.mdi-steering-off:before{content:"󰤎"}.mdi-step-backward:before{content:"󰓕"}.mdi-step-backward-2:before{content:"󰓖"}.mdi-step-forward:before{content:"󰓗"}.mdi-step-forward-2:before{content:"󰓘"}.mdi-stethoscope:before{content:"󰓙"}.mdi-sticker:before{content:"󱍤"}.mdi-sticker-alert:before{content:"󱍥"}.mdi-sticker-alert-outline:before{content:"󱍦"}.mdi-sticker-check:before{content:"󱍧"}.mdi-sticker-check-outline:before{content:"󱍨"}.mdi-sticker-circle-outline:before{content:"󰗐"}.mdi-sticker-emoji:before{content:"󰞅"}.mdi-sticker-minus:before{content:"󱍩"}.mdi-sticker-minus-outline:before{content:"󱍪"}.mdi-sticker-outline:before{content:"󱍫"}.mdi-sticker-plus:before{content:"󱍬"}.mdi-sticker-plus-outline:before{content:"󱍭"}.mdi-sticker-remove:before{content:"󱍮"}.mdi-sticker-remove-outline:before{content:"󱍯"}.mdi-sticker-text:before{content:"󱞎"}.mdi-sticker-text-outline:before{content:"󱞏"}.mdi-stocking:before{content:"󰓚"}.mdi-stomach:before{content:"󱂓"}.mdi-stool:before{content:"󱥝"}.mdi-stool-outline:before{content:"󱥞"}.mdi-stop:before{content:"󰓛"}.mdi-stop-circle:before{content:"󰙦"}.mdi-stop-circle-outline:before{content:"󰙧"}.mdi-storage-tank:before{content:"󱩵"}.mdi-storage-tank-outline:before{content:"󱩶"}.mdi-store:before{content:"󰓜"}.mdi-store-24-hour:before{content:"󰓝"}.mdi-store-alert:before{content:"󱣁"}.mdi-store-alert-outline:before{content:"󱣂"}.mdi-store-check:before{content:"󱣃"}.mdi-store-check-outline:before{content:"󱣄"}.mdi-store-clock:before{content:"󱣅"}.mdi-store-clock-outline:before{content:"󱣆"}.mdi-store-cog:before{content:"󱣇"}.mdi-store-cog-outline:before{content:"󱣈"}.mdi-store-edit:before{content:"󱣉"}.mdi-store-edit-outline:before{content:"󱣊"}.mdi-store-marker:before{content:"󱣋"}.mdi-store-marker-outline:before{content:"󱣌"}.mdi-store-minus:before{content:"󱙞"}.mdi-store-minus-outline:before{content:"󱣍"}.mdi-store-off:before{content:"󱣎"}.mdi-store-off-outline:before{content:"󱣏"}.mdi-store-outline:before{content:"󱍡"}.mdi-store-plus:before{content:"󱙟"}.mdi-store-plus-outline:before{content:"󱣐"}.mdi-store-remove:before{content:"󱙠"}.mdi-store-remove-outline:before{content:"󱣑"}.mdi-store-search:before{content:"󱣒"}.mdi-store-search-outline:before{content:"󱣓"}.mdi-store-settings:before{content:"󱣔"}.mdi-store-settings-outline:before{content:"󱣕"}.mdi-storefront:before{content:"󰟇"}.mdi-storefront-check:before{content:"󱭽"}.mdi-storefront-check-outline:before{content:"󱭾"}.mdi-storefront-edit:before{content:"󱭿"}.mdi-storefront-edit-outline:before{content:"󱮀"}.mdi-storefront-minus:before{content:"󱮃"}.mdi-storefront-minus-outline:before{content:"󱮄"}.mdi-storefront-outline:before{content:"󱃁"}.mdi-storefront-plus:before{content:"󱮁"}.mdi-storefront-plus-outline:before{content:"󱮂"}.mdi-storefront-remove:before{content:"󱮅"}.mdi-storefront-remove-outline:before{content:"󱮆"}.mdi-stove:before{content:"󰓞"}.mdi-strategy:before{content:"󱇖"}.mdi-stretch-to-page:before{content:"󰼫"}.mdi-stretch-to-page-outline:before{content:"󰼬"}.mdi-string-lights:before{content:"󱊺"}.mdi-string-lights-off:before{content:"󱊻"}.mdi-subdirectory-arrow-left:before{content:"󰘌"}.mdi-subdirectory-arrow-right:before{content:"󰘍"}.mdi-submarine:before{content:"󱕬"}.mdi-subtitles:before{content:"󰨖"}.mdi-subtitles-outline:before{content:"󰨗"}.mdi-subway:before{content:"󰚬"}.mdi-subway-alert-variant:before{content:"󰶝"}.mdi-subway-variant:before{content:"󰓟"}.mdi-summit:before{content:"󰞆"}.mdi-sun-angle:before{content:"󱬧"}.mdi-sun-angle-outline:before{content:"󱬨"}.mdi-sun-clock:before{content:"󱩷"}.mdi-sun-clock-outline:before{content:"󱩸"}.mdi-sun-compass:before{content:"󱦥"}.mdi-sun-snowflake:before{content:"󱞖"}.mdi-sun-snowflake-variant:before{content:"󱩹"}.mdi-sun-thermometer:before{content:"󱣖"}.mdi-sun-thermometer-outline:before{content:"󱣗"}.mdi-sun-wireless:before{content:"󱟾"}.mdi-sun-wireless-outline:before{content:"󱟿"}.mdi-sunglasses:before{content:"󰓠"}.mdi-surfing:before{content:"󱝆"}.mdi-surround-sound:before{content:"󰗅"}.mdi-surround-sound-2-0:before{content:"󰟰"}.mdi-surround-sound-2-1:before{content:"󱜩"}.mdi-surround-sound-3-1:before{content:"󰟱"}.mdi-surround-sound-5-1:before{content:"󰟲"}.mdi-surround-sound-5-1-2:before{content:"󱜪"}.mdi-surround-sound-7-1:before{content:"󰟳"}.mdi-svg:before{content:"󰜡"}.mdi-swap-horizontal:before{content:"󰓡"}.mdi-swap-horizontal-bold:before{content:"󰯍"}.mdi-swap-horizontal-circle:before{content:"󰿡"}.mdi-swap-horizontal-circle-outline:before{content:"󰿢"}.mdi-swap-horizontal-variant:before{content:"󰣁"}.mdi-swap-vertical:before{content:"󰓢"}.mdi-swap-vertical-bold:before{content:"󰯎"}.mdi-swap-vertical-circle:before{content:"󰿣"}.mdi-swap-vertical-circle-outline:before{content:"󰿤"}.mdi-swap-vertical-variant:before{content:"󰣂"}.mdi-swim:before{content:"󰓣"}.mdi-switch:before{content:"󰓤"}.mdi-sword:before{content:"󰓥"}.mdi-sword-cross:before{content:"󰞇"}.mdi-syllabary-hangul:before{content:"󱌳"}.mdi-syllabary-hiragana:before{content:"󱌴"}.mdi-syllabary-katakana:before{content:"󱌵"}.mdi-syllabary-katakana-halfwidth:before{content:"󱌶"}.mdi-symbol:before{content:"󱔁"}.mdi-symfony:before{content:"󰫦"}.mdi-synagogue:before{content:"󱬄"}.mdi-synagogue-outline:before{content:"󱬅"}.mdi-sync:before{content:"󰓦"}.mdi-sync-alert:before{content:"󰓧"}.mdi-sync-circle:before{content:"󱍸"}.mdi-sync-off:before{content:"󰓨"}.mdi-tab:before{content:"󰓩"}.mdi-tab-minus:before{content:"󰭋"}.mdi-tab-plus:before{content:"󰝜"}.mdi-tab-remove:before{content:"󰭌"}.mdi-tab-search:before{content:"󱦞"}.mdi-tab-unselected:before{content:"󰓪"}.mdi-table:before{content:"󰓫"}.mdi-table-account:before{content:"󱎹"}.mdi-table-alert:before{content:"󱎺"}.mdi-table-arrow-down:before{content:"󱎻"}.mdi-table-arrow-left:before{content:"󱎼"}.mdi-table-arrow-right:before{content:"󱎽"}.mdi-table-arrow-up:before{content:"󱎾"}.mdi-table-border:before{content:"󰨘"}.mdi-table-cancel:before{content:"󱎿"}.mdi-table-chair:before{content:"󱁡"}.mdi-table-check:before{content:"󱏀"}.mdi-table-clock:before{content:"󱏁"}.mdi-table-cog:before{content:"󱏂"}.mdi-table-column:before{content:"󰠵"}.mdi-table-column-plus-after:before{content:"󰓬"}.mdi-table-column-plus-before:before{content:"󰓭"}.mdi-table-column-remove:before{content:"󰓮"}.mdi-table-column-width:before{content:"󰓯"}.mdi-table-edit:before{content:"󰓰"}.mdi-table-eye:before{content:"󱂔"}.mdi-table-eye-off:before{content:"󱏃"}.mdi-table-filter:before{content:"󱮌"}.mdi-table-furniture:before{content:"󰖼"}.mdi-table-headers-eye:before{content:"󱈝"}.mdi-table-headers-eye-off:before{content:"󱈞"}.mdi-table-heart:before{content:"󱏄"}.mdi-table-key:before{content:"󱏅"}.mdi-table-large:before{content:"󰓱"}.mdi-table-large-plus:before{content:"󰾇"}.mdi-table-large-remove:before{content:"󰾈"}.mdi-table-lock:before{content:"󱏆"}.mdi-table-merge-cells:before{content:"󰦦"}.mdi-table-minus:before{content:"󱏇"}.mdi-table-multiple:before{content:"󱏈"}.mdi-table-network:before{content:"󱏉"}.mdi-table-of-contents:before{content:"󰠶"}.mdi-table-off:before{content:"󱏊"}.mdi-table-picnic:before{content:"󱝃"}.mdi-table-pivot:before{content:"󱠼"}.mdi-table-plus:before{content:"󰩵"}.mdi-table-question:before{content:"󱬡"}.mdi-table-refresh:before{content:"󱎠"}.mdi-table-remove:before{content:"󰩶"}.mdi-table-row:before{content:"󰠷"}.mdi-table-row-height:before{content:"󰓲"}.mdi-table-row-plus-after:before{content:"󰓳"}.mdi-table-row-plus-before:before{content:"󰓴"}.mdi-table-row-remove:before{content:"󰓵"}.mdi-table-search:before{content:"󰤏"}.mdi-table-settings:before{content:"󰠸"}.mdi-table-split-cell:before{content:"󱐪"}.mdi-table-star:before{content:"󱏋"}.mdi-table-sync:before{content:"󱎡"}.mdi-table-tennis:before{content:"󰹨"}.mdi-tablet:before{content:"󰓶"}.mdi-tablet-cellphone:before{content:"󰦧"}.mdi-tablet-dashboard:before{content:"󰻎"}.mdi-taco:before{content:"󰝢"}.mdi-tag:before{content:"󰓹"}.mdi-tag-arrow-down:before{content:"󱜫"}.mdi-tag-arrow-down-outline:before{content:"󱜬"}.mdi-tag-arrow-left:before{content:"󱜭"}.mdi-tag-arrow-left-outline:before{content:"󱜮"}.mdi-tag-arrow-right:before{content:"󱜯"}.mdi-tag-arrow-right-outline:before{content:"󱜰"}.mdi-tag-arrow-up:before{content:"󱜱"}.mdi-tag-arrow-up-outline:before{content:"󱜲"}.mdi-tag-check:before{content:"󱩺"}.mdi-tag-check-outline:before{content:"󱩻"}.mdi-tag-edit:before{content:"󱲜"}.mdi-tag-edit-outline:before{content:"󱲝"}.mdi-tag-faces:before{content:"󰓺"}.mdi-tag-heart:before{content:"󰚋"}.mdi-tag-heart-outline:before{content:"󰯏"}.mdi-tag-hidden:before{content:"󱱶"}.mdi-tag-minus:before{content:"󰤐"}.mdi-tag-minus-outline:before{content:"󱈟"}.mdi-tag-multiple:before{content:"󰓻"}.mdi-tag-multiple-outline:before{content:"󱋷"}.mdi-tag-off:before{content:"󱈠"}.mdi-tag-off-outline:before{content:"󱈡"}.mdi-tag-outline:before{content:"󰓼"}.mdi-tag-plus:before{content:"󰜢"}.mdi-tag-plus-outline:before{content:"󱈢"}.mdi-tag-remove:before{content:"󰜣"}.mdi-tag-remove-outline:before{content:"󱈣"}.mdi-tag-search:before{content:"󱤇"}.mdi-tag-search-outline:before{content:"󱤈"}.mdi-tag-text:before{content:"󱈤"}.mdi-tag-text-outline:before{content:"󰓽"}.mdi-tailwind:before{content:"󱏿"}.mdi-tally-mark-1:before{content:"󱪼"}.mdi-tally-mark-2:before{content:"󱪽"}.mdi-tally-mark-3:before{content:"󱪾"}.mdi-tally-mark-4:before{content:"󱪿"}.mdi-tally-mark-5:before{content:"󱫀"}.mdi-tangram:before{content:"󰓸"}.mdi-tank:before{content:"󰴺"}.mdi-tanker-truck:before{content:"󰿥"}.mdi-tape-drive:before{content:"󱛟"}.mdi-tape-measure:before{content:"󰭍"}.mdi-target:before{content:"󰓾"}.mdi-target-account:before{content:"󰯐"}.mdi-target-variant:before{content:"󰩷"}.mdi-taxi:before{content:"󰓿"}.mdi-tea:before{content:"󰶞"}.mdi-tea-outline:before{content:"󰶟"}.mdi-teamviewer:before{content:"󰔀"}.mdi-teddy-bear:before{content:"󱣻"}.mdi-telescope:before{content:"󰭎"}.mdi-television:before{content:"󰔂"}.mdi-television-ambient-light:before{content:"󱍖"}.mdi-television-box:before{content:"󰠹"}.mdi-television-classic:before{content:"󰟴"}.mdi-television-classic-off:before{content:"󰠺"}.mdi-television-guide:before{content:"󰔃"}.mdi-television-off:before{content:"󰠻"}.mdi-television-pause:before{content:"󰾉"}.mdi-television-play:before{content:"󰻏"}.mdi-television-shimmer:before{content:"󱄐"}.mdi-television-speaker:before{content:"󱬛"}.mdi-television-speaker-off:before{content:"󱬜"}.mdi-television-stop:before{content:"󰾊"}.mdi-temperature-celsius:before{content:"󰔄"}.mdi-temperature-fahrenheit:before{content:"󰔅"}.mdi-temperature-kelvin:before{content:"󰔆"}.mdi-temple-buddhist:before{content:"󱬆"}.mdi-temple-buddhist-outline:before{content:"󱬇"}.mdi-temple-hindu:before{content:"󱬈"}.mdi-temple-hindu-outline:before{content:"󱬉"}.mdi-tennis:before{content:"󰶠"}.mdi-tennis-ball:before{content:"󰔇"}.mdi-tennis-ball-outline:before{content:"󱱟"}.mdi-tent:before{content:"󰔈"}.mdi-terraform:before{content:"󱁢"}.mdi-terrain:before{content:"󰔉"}.mdi-test-tube:before{content:"󰙨"}.mdi-test-tube-empty:before{content:"󰤑"}.mdi-test-tube-off:before{content:"󰤒"}.mdi-text:before{content:"󰦨"}.mdi-text-account:before{content:"󱕰"}.mdi-text-box:before{content:"󰈚"}.mdi-text-box-check:before{content:"󰺦"}.mdi-text-box-check-outline:before{content:"󰺧"}.mdi-text-box-edit:before{content:"󱩼"}.mdi-text-box-edit-outline:before{content:"󱩽"}.mdi-text-box-minus:before{content:"󰺨"}.mdi-text-box-minus-outline:before{content:"󰺩"}.mdi-text-box-multiple:before{content:"󰪷"}.mdi-text-box-multiple-outline:before{content:"󰪸"}.mdi-text-box-outline:before{content:"󰧭"}.mdi-text-box-plus:before{content:"󰺪"}.mdi-text-box-plus-outline:before{content:"󰺫"}.mdi-text-box-remove:before{content:"󰺬"}.mdi-text-box-remove-outline:before{content:"󰺭"}.mdi-text-box-search:before{content:"󰺮"}.mdi-text-box-search-outline:before{content:"󰺯"}.mdi-text-long:before{content:"󰦪"}.mdi-text-recognition:before{content:"󱄽"}.mdi-text-search:before{content:"󱎸"}.mdi-text-search-variant:before{content:"󱩾"}.mdi-text-shadow:before{content:"󰙩"}.mdi-text-short:before{content:"󰦩"}.mdi-texture:before{content:"󰔌"}.mdi-texture-box:before{content:"󰿦"}.mdi-theater:before{content:"󰔍"}.mdi-theme-light-dark:before{content:"󰔎"}.mdi-thermometer:before{content:"󰔏"}.mdi-thermometer-alert:before{content:"󰸁"}.mdi-thermometer-auto:before{content:"󱬏"}.mdi-thermometer-bluetooth:before{content:"󱢕"}.mdi-thermometer-check:before{content:"󱩿"}.mdi-thermometer-chevron-down:before{content:"󰸂"}.mdi-thermometer-chevron-up:before{content:"󰸃"}.mdi-thermometer-high:before{content:"󱃂"}.mdi-thermometer-lines:before{content:"󰔐"}.mdi-thermometer-low:before{content:"󱃃"}.mdi-thermometer-minus:before{content:"󰸄"}.mdi-thermometer-off:before{content:"󱔱"}.mdi-thermometer-plus:before{content:"󰸅"}.mdi-thermometer-probe:before{content:"󱬫"}.mdi-thermometer-probe-off:before{content:"󱬬"}.mdi-thermometer-water:before{content:"󱪀"}.mdi-thermostat:before{content:"󰎓"}.mdi-thermostat-auto:before{content:"󱬗"}.mdi-thermostat-box:before{content:"󰢑"}.mdi-thermostat-box-auto:before{content:"󱬘"}.mdi-thermostat-cog:before{content:"󱲀"}.mdi-thought-bubble:before{content:"󰟶"}.mdi-thought-bubble-outline:before{content:"󰟷"}.mdi-thumb-down:before{content:"󰔑"}.mdi-thumb-down-outline:before{content:"󰔒"}.mdi-thumb-up:before{content:"󰔓"}.mdi-thumb-up-outline:before{content:"󰔔"}.mdi-thumbs-up-down:before{content:"󰔕"}.mdi-thumbs-up-down-outline:before{content:"󱤔"}.mdi-ticket:before{content:"󰔖"}.mdi-ticket-account:before{content:"󰔗"}.mdi-ticket-confirmation:before{content:"󰔘"}.mdi-ticket-confirmation-outline:before{content:"󱎪"}.mdi-ticket-outline:before{content:"󰤓"}.mdi-ticket-percent:before{content:"󰜤"}.mdi-ticket-percent-outline:before{content:"󱐫"}.mdi-tie:before{content:"󰔙"}.mdi-tilde:before{content:"󰜥"}.mdi-tilde-off:before{content:"󱣳"}.mdi-timelapse:before{content:"󰔚"}.mdi-timeline:before{content:"󰯑"}.mdi-timeline-alert:before{content:"󰾕"}.mdi-timeline-alert-outline:before{content:"󰾘"}.mdi-timeline-check:before{content:"󱔲"}.mdi-timeline-check-outline:before{content:"󱔳"}.mdi-timeline-clock:before{content:"󱇻"}.mdi-timeline-clock-outline:before{content:"󱇼"}.mdi-timeline-minus:before{content:"󱔴"}.mdi-timeline-minus-outline:before{content:"󱔵"}.mdi-timeline-outline:before{content:"󰯒"}.mdi-timeline-plus:before{content:"󰾖"}.mdi-timeline-plus-outline:before{content:"󰾗"}.mdi-timeline-question:before{content:"󰾙"}.mdi-timeline-question-outline:before{content:"󰾚"}.mdi-timeline-remove:before{content:"󱔶"}.mdi-timeline-remove-outline:before{content:"󱔷"}.mdi-timeline-text:before{content:"󰯓"}.mdi-timeline-text-outline:before{content:"󰯔"}.mdi-timer:before{content:"󱎫"}.mdi-timer-10:before{content:"󰔜"}.mdi-timer-3:before{content:"󰔝"}.mdi-timer-alert:before{content:"󱫌"}.mdi-timer-alert-outline:before{content:"󱫍"}.mdi-timer-cancel:before{content:"󱫎"}.mdi-timer-cancel-outline:before{content:"󱫏"}.mdi-timer-check:before{content:"󱫐"}.mdi-timer-check-outline:before{content:"󱫑"}.mdi-timer-cog:before{content:"󱤥"}.mdi-timer-cog-outline:before{content:"󱤦"}.mdi-timer-edit:before{content:"󱫒"}.mdi-timer-edit-outline:before{content:"󱫓"}.mdi-timer-lock:before{content:"󱫔"}.mdi-timer-lock-open:before{content:"󱫕"}.mdi-timer-lock-open-outline:before{content:"󱫖"}.mdi-timer-lock-outline:before{content:"󱫗"}.mdi-timer-marker:before{content:"󱫘"}.mdi-timer-marker-outline:before{content:"󱫙"}.mdi-timer-minus:before{content:"󱫚"}.mdi-timer-minus-outline:before{content:"󱫛"}.mdi-timer-music:before{content:"󱫜"}.mdi-timer-music-outline:before{content:"󱫝"}.mdi-timer-off:before{content:"󱎬"}.mdi-timer-off-outline:before{content:"󰔞"}.mdi-timer-outline:before{content:"󰔛"}.mdi-timer-pause:before{content:"󱫞"}.mdi-timer-pause-outline:before{content:"󱫟"}.mdi-timer-play:before{content:"󱫠"}.mdi-timer-play-outline:before{content:"󱫡"}.mdi-timer-plus:before{content:"󱫢"}.mdi-timer-plus-outline:before{content:"󱫣"}.mdi-timer-refresh:before{content:"󱫤"}.mdi-timer-refresh-outline:before{content:"󱫥"}.mdi-timer-remove:before{content:"󱫦"}.mdi-timer-remove-outline:before{content:"󱫧"}.mdi-timer-sand:before{content:"󰔟"}.mdi-timer-sand-complete:before{content:"󱦟"}.mdi-timer-sand-empty:before{content:"󰚭"}.mdi-timer-sand-full:before{content:"󰞌"}.mdi-timer-sand-paused:before{content:"󱦠"}.mdi-timer-settings:before{content:"󱤣"}.mdi-timer-settings-outline:before{content:"󱤤"}.mdi-timer-star:before{content:"󱫨"}.mdi-timer-star-outline:before{content:"󱫩"}.mdi-timer-stop:before{content:"󱫪"}.mdi-timer-stop-outline:before{content:"󱫫"}.mdi-timer-sync:before{content:"󱫬"}.mdi-timer-sync-outline:before{content:"󱫭"}.mdi-timetable:before{content:"󰔠"}.mdi-tire:before{content:"󱢖"}.mdi-toaster:before{content:"󱁣"}.mdi-toaster-off:before{content:"󱆷"}.mdi-toaster-oven:before{content:"󰳓"}.mdi-toggle-switch:before{content:"󰔡"}.mdi-toggle-switch-off:before{content:"󰔢"}.mdi-toggle-switch-off-outline:before{content:"󰨙"}.mdi-toggle-switch-outline:before{content:"󰨚"}.mdi-toggle-switch-variant:before{content:"󱨥"}.mdi-toggle-switch-variant-off:before{content:"󱨦"}.mdi-toilet:before{content:"󰦫"}.mdi-toolbox:before{content:"󰦬"}.mdi-toolbox-outline:before{content:"󰦭"}.mdi-tools:before{content:"󱁤"}.mdi-tooltip:before{content:"󰔣"}.mdi-tooltip-account:before{content:"󰀌"}.mdi-tooltip-cellphone:before{content:"󱠻"}.mdi-tooltip-check:before{content:"󱕜"}.mdi-tooltip-check-outline:before{content:"󱕝"}.mdi-tooltip-edit:before{content:"󰔤"}.mdi-tooltip-edit-outline:before{content:"󱋅"}.mdi-tooltip-image:before{content:"󰔥"}.mdi-tooltip-image-outline:before{content:"󰯕"}.mdi-tooltip-minus:before{content:"󱕞"}.mdi-tooltip-minus-outline:before{content:"󱕟"}.mdi-tooltip-outline:before{content:"󰔦"}.mdi-tooltip-plus:before{content:"󰯖"}.mdi-tooltip-plus-outline:before{content:"󰔧"}.mdi-tooltip-question:before{content:"󱮺"}.mdi-tooltip-question-outline:before{content:"󱮻"}.mdi-tooltip-remove:before{content:"󱕠"}.mdi-tooltip-remove-outline:before{content:"󱕡"}.mdi-tooltip-text:before{content:"󰔨"}.mdi-tooltip-text-outline:before{content:"󰯗"}.mdi-tooth:before{content:"󰣃"}.mdi-tooth-outline:before{content:"󰔩"}.mdi-toothbrush:before{content:"󱄩"}.mdi-toothbrush-electric:before{content:"󱄬"}.mdi-toothbrush-paste:before{content:"󱄪"}.mdi-torch:before{content:"󱘆"}.mdi-tortoise:before{content:"󰴻"}.mdi-toslink:before{content:"󱊸"}.mdi-touch-text-outline:before{content:"󱱠"}.mdi-tournament:before{content:"󰦮"}.mdi-tow-truck:before{content:"󰠼"}.mdi-tower-beach:before{content:"󰚁"}.mdi-tower-fire:before{content:"󰚂"}.mdi-town-hall:before{content:"󱡵"}.mdi-toy-brick:before{content:"󱊈"}.mdi-toy-brick-marker:before{content:"󱊉"}.mdi-toy-brick-marker-outline:before{content:"󱊊"}.mdi-toy-brick-minus:before{content:"󱊋"}.mdi-toy-brick-minus-outline:before{content:"󱊌"}.mdi-toy-brick-outline:before{content:"󱊍"}.mdi-toy-brick-plus:before{content:"󱊎"}.mdi-toy-brick-plus-outline:before{content:"󱊏"}.mdi-toy-brick-remove:before{content:"󱊐"}.mdi-toy-brick-remove-outline:before{content:"󱊑"}.mdi-toy-brick-search:before{content:"󱊒"}.mdi-toy-brick-search-outline:before{content:"󱊓"}.mdi-track-light:before{content:"󰤔"}.mdi-track-light-off:before{content:"󱬁"}.mdi-trackpad:before{content:"󰟸"}.mdi-trackpad-lock:before{content:"󰤳"}.mdi-tractor:before{content:"󰢒"}.mdi-tractor-variant:before{content:"󱓄"}.mdi-trademark:before{content:"󰩸"}.mdi-traffic-cone:before{content:"󱍼"}.mdi-traffic-light:before{content:"󰔫"}.mdi-traffic-light-outline:before{content:"󱠪"}.mdi-train:before{content:"󰔬"}.mdi-train-bus:before{content:"󱳇"}.mdi-train-car:before{content:"󰯘"}.mdi-train-car-autorack:before{content:"󱬭"}.mdi-train-car-box:before{content:"󱬮"}.mdi-train-car-box-full:before{content:"󱬯"}.mdi-train-car-box-open:before{content:"󱬰"}.mdi-train-car-caboose:before{content:"󱬱"}.mdi-train-car-centerbeam:before{content:"󱬲"}.mdi-train-car-centerbeam-full:before{content:"󱬳"}.mdi-train-car-container:before{content:"󱬴"}.mdi-train-car-flatbed:before{content:"󱬵"}.mdi-train-car-flatbed-car:before{content:"󱬶"}.mdi-train-car-flatbed-tank:before{content:"󱬷"}.mdi-train-car-gondola:before{content:"󱬸"}.mdi-train-car-gondola-full:before{content:"󱬹"}.mdi-train-car-hopper:before{content:"󱬺"}.mdi-train-car-hopper-covered:before{content:"󱬻"}.mdi-train-car-hopper-full:before{content:"󱬼"}.mdi-train-car-intermodal:before{content:"󱬽"}.mdi-train-car-passenger:before{content:"󱜳"}.mdi-train-car-passenger-door:before{content:"󱜴"}.mdi-train-car-passenger-door-open:before{content:"󱜵"}.mdi-train-car-passenger-variant:before{content:"󱜶"}.mdi-train-car-tank:before{content:"󱬾"}.mdi-train-variant:before{content:"󰣄"}.mdi-tram:before{content:"󰔭"}.mdi-tram-side:before{content:"󰿧"}.mdi-transcribe:before{content:"󰔮"}.mdi-transcribe-close:before{content:"󰔯"}.mdi-transfer:before{content:"󱁥"}.mdi-transfer-down:before{content:"󰶡"}.mdi-transfer-left:before{content:"󰶢"}.mdi-transfer-right:before{content:"󰔰"}.mdi-transfer-up:before{content:"󰶣"}.mdi-transit-connection:before{content:"󰴼"}.mdi-transit-connection-horizontal:before{content:"󱕆"}.mdi-transit-connection-variant:before{content:"󰴽"}.mdi-transit-detour:before{content:"󰾋"}.mdi-transit-skip:before{content:"󱔕"}.mdi-transit-transfer:before{content:"󰚮"}.mdi-transition:before{content:"󰤕"}.mdi-transition-masked:before{content:"󰤖"}.mdi-translate:before{content:"󰗊"}.mdi-translate-off:before{content:"󰸆"}.mdi-translate-variant:before{content:"󱮙"}.mdi-transmission-tower:before{content:"󰴾"}.mdi-transmission-tower-export:before{content:"󱤬"}.mdi-transmission-tower-import:before{content:"󱤭"}.mdi-transmission-tower-off:before{content:"󱧝"}.mdi-trash-can:before{content:"󰩹"}.mdi-trash-can-outline:before{content:"󰩺"}.mdi-tray:before{content:"󱊔"}.mdi-tray-alert:before{content:"󱊕"}.mdi-tray-arrow-down:before{content:"󰄠"}.mdi-tray-arrow-up:before{content:"󰄝"}.mdi-tray-full:before{content:"󱊖"}.mdi-tray-minus:before{content:"󱊗"}.mdi-tray-plus:before{content:"󱊘"}.mdi-tray-remove:before{content:"󱊙"}.mdi-treasure-chest:before{content:"󰜦"}.mdi-treasure-chest-outline:before{content:"󱱷"}.mdi-tree:before{content:"󰔱"}.mdi-tree-outline:before{content:"󰹩"}.mdi-trello:before{content:"󰔲"}.mdi-trending-down:before{content:"󰔳"}.mdi-trending-neutral:before{content:"󰔴"}.mdi-trending-up:before{content:"󰔵"}.mdi-triangle:before{content:"󰔶"}.mdi-triangle-down:before{content:"󱱖"}.mdi-triangle-down-outline:before{content:"󱱗"}.mdi-triangle-outline:before{content:"󰔷"}.mdi-triangle-small-down:before{content:"󱨉"}.mdi-triangle-small-up:before{content:"󱨊"}.mdi-triangle-wave:before{content:"󱑼"}.mdi-triforce:before{content:"󰯙"}.mdi-trophy:before{content:"󰔸"}.mdi-trophy-award:before{content:"󰔹"}.mdi-trophy-broken:before{content:"󰶤"}.mdi-trophy-outline:before{content:"󰔺"}.mdi-trophy-variant:before{content:"󰔻"}.mdi-trophy-variant-outline:before{content:"󰔼"}.mdi-truck:before{content:"󰔽"}.mdi-truck-alert:before{content:"󱧞"}.mdi-truck-alert-outline:before{content:"󱧟"}.mdi-truck-cargo-container:before{content:"󱣘"}.mdi-truck-check:before{content:"󰳔"}.mdi-truck-check-outline:before{content:"󱊚"}.mdi-truck-delivery:before{content:"󰔾"}.mdi-truck-delivery-outline:before{content:"󱊛"}.mdi-truck-fast:before{content:"󰞈"}.mdi-truck-fast-outline:before{content:"󱊜"}.mdi-truck-flatbed:before{content:"󱢑"}.mdi-truck-minus:before{content:"󱦮"}.mdi-truck-minus-outline:before{content:"󱦽"}.mdi-truck-off-road:before{content:"󱲞"}.mdi-truck-off-road-off:before{content:"󱲟"}.mdi-truck-outline:before{content:"󱊝"}.mdi-truck-plus:before{content:"󱦭"}.mdi-truck-plus-outline:before{content:"󱦼"}.mdi-truck-remove:before{content:"󱦯"}.mdi-truck-remove-outline:before{content:"󱦾"}.mdi-truck-snowflake:before{content:"󱦦"}.mdi-truck-trailer:before{content:"󰜧"}.mdi-trumpet:before{content:"󱂖"}.mdi-tshirt-crew:before{content:"󰩻"}.mdi-tshirt-crew-outline:before{content:"󰔿"}.mdi-tshirt-v:before{content:"󰩼"}.mdi-tshirt-v-outline:before{content:"󰕀"}.mdi-tsunami:before{content:"󱪁"}.mdi-tumble-dryer:before{content:"󰤗"}.mdi-tumble-dryer-alert:before{content:"󱆺"}.mdi-tumble-dryer-off:before{content:"󱆻"}.mdi-tune:before{content:"󰘮"}.mdi-tune-variant:before{content:"󱕂"}.mdi-tune-vertical:before{content:"󰙪"}.mdi-tune-vertical-variant:before{content:"󱕃"}.mdi-tunnel:before{content:"󱠽"}.mdi-tunnel-outline:before{content:"󱠾"}.mdi-turbine:before{content:"󱪂"}.mdi-turkey:before{content:"󱜛"}.mdi-turnstile:before{content:"󰳕"}.mdi-turnstile-outline:before{content:"󰳖"}.mdi-turtle:before{content:"󰳗"}.mdi-twitch:before{content:"󰕃"}.mdi-twitter:before{content:"󰕄"}.mdi-two-factor-authentication:before{content:"󰦯"}.mdi-typewriter:before{content:"󰼭"}.mdi-ubisoft:before{content:"󰯚"}.mdi-ubuntu:before{content:"󰕈"}.mdi-ufo:before{content:"󱃄"}.mdi-ufo-outline:before{content:"󱃅"}.mdi-ultra-high-definition:before{content:"󰟹"}.mdi-umbraco:before{content:"󰕉"}.mdi-umbrella:before{content:"󰕊"}.mdi-umbrella-beach:before{content:"󱢊"}.mdi-umbrella-beach-outline:before{content:"󱢋"}.mdi-umbrella-closed:before{content:"󰦰"}.mdi-umbrella-closed-outline:before{content:"󱏢"}.mdi-umbrella-closed-variant:before{content:"󱏡"}.mdi-umbrella-outline:before{content:"󰕋"}.mdi-undo:before{content:"󰕌"}.mdi-undo-variant:before{content:"󰕍"}.mdi-unfold-less-horizontal:before{content:"󰕎"}.mdi-unfold-less-vertical:before{content:"󰝠"}.mdi-unfold-more-horizontal:before{content:"󰕏"}.mdi-unfold-more-vertical:before{content:"󰝡"}.mdi-ungroup:before{content:"󰕐"}.mdi-unicode:before{content:"󰻐"}.mdi-unicorn:before{content:"󱗂"}.mdi-unicorn-variant:before{content:"󱗃"}.mdi-unicycle:before{content:"󱗥"}.mdi-unity:before{content:"󰚯"}.mdi-unreal:before{content:"󰦱"}.mdi-update:before{content:"󰚰"}.mdi-upload:before{content:"󰕒"}.mdi-upload-lock:before{content:"󱍳"}.mdi-upload-lock-outline:before{content:"󱍴"}.mdi-upload-multiple:before{content:"󰠽"}.mdi-upload-network:before{content:"󰛶"}.mdi-upload-network-outline:before{content:"󰳘"}.mdi-upload-off:before{content:"󱃆"}.mdi-upload-off-outline:before{content:"󱃇"}.mdi-upload-outline:before{content:"󰸇"}.mdi-usb:before{content:"󰕓"}.mdi-usb-c-port:before{content:"󱲿"}.mdi-usb-flash-drive:before{content:"󱊞"}.mdi-usb-flash-drive-outline:before{content:"󱊟"}.mdi-usb-port:before{content:"󱇰"}.mdi-vacuum:before{content:"󱦡"}.mdi-vacuum-outline:before{content:"󱦢"}.mdi-valve:before{content:"󱁦"}.mdi-valve-closed:before{content:"󱁧"}.mdi-valve-open:before{content:"󱁨"}.mdi-van-passenger:before{content:"󰟺"}.mdi-van-utility:before{content:"󰟻"}.mdi-vanish:before{content:"󰟼"}.mdi-vanish-quarter:before{content:"󱕔"}.mdi-vanity-light:before{content:"󱇡"}.mdi-variable:before{content:"󰫧"}.mdi-variable-box:before{content:"󱄑"}.mdi-vector-arrange-above:before{content:"󰕔"}.mdi-vector-arrange-below:before{content:"󰕕"}.mdi-vector-bezier:before{content:"󰫨"}.mdi-vector-circle:before{content:"󰕖"}.mdi-vector-circle-variant:before{content:"󰕗"}.mdi-vector-combine:before{content:"󰕘"}.mdi-vector-curve:before{content:"󰕙"}.mdi-vector-difference:before{content:"󰕚"}.mdi-vector-difference-ab:before{content:"󰕛"}.mdi-vector-difference-ba:before{content:"󰕜"}.mdi-vector-ellipse:before{content:"󰢓"}.mdi-vector-intersection:before{content:"󰕝"}.mdi-vector-line:before{content:"󰕞"}.mdi-vector-link:before{content:"󰿨"}.mdi-vector-point:before{content:"󰇄"}.mdi-vector-point-edit:before{content:"󰧨"}.mdi-vector-point-minus:before{content:"󱭸"}.mdi-vector-point-plus:before{content:"󱭹"}.mdi-vector-point-select:before{content:"󰕟"}.mdi-vector-polygon:before{content:"󰕠"}.mdi-vector-polygon-variant:before{content:"󱡖"}.mdi-vector-polyline:before{content:"󰕡"}.mdi-vector-polyline-edit:before{content:"󱈥"}.mdi-vector-polyline-minus:before{content:"󱈦"}.mdi-vector-polyline-plus:before{content:"󱈧"}.mdi-vector-polyline-remove:before{content:"󱈨"}.mdi-vector-radius:before{content:"󰝊"}.mdi-vector-rectangle:before{content:"󰗆"}.mdi-vector-selection:before{content:"󰕢"}.mdi-vector-square:before{content:"󰀁"}.mdi-vector-square-close:before{content:"󱡗"}.mdi-vector-square-edit:before{content:"󱣙"}.mdi-vector-square-minus:before{content:"󱣚"}.mdi-vector-square-open:before{content:"󱡘"}.mdi-vector-square-plus:before{content:"󱣛"}.mdi-vector-square-remove:before{content:"󱣜"}.mdi-vector-triangle:before{content:"󰕣"}.mdi-vector-union:before{content:"󰕤"}.mdi-vhs:before{content:"󰨛"}.mdi-vibrate:before{content:"󰕦"}.mdi-vibrate-off:before{content:"󰳙"}.mdi-video:before{content:"󰕧"}.mdi-video-2d:before{content:"󱨜"}.mdi-video-3d:before{content:"󰟽"}.mdi-video-3d-off:before{content:"󱏙"}.mdi-video-3d-variant:before{content:"󰻑"}.mdi-video-4k-box:before{content:"󰠾"}.mdi-video-account:before{content:"󰤙"}.mdi-video-box:before{content:"󰃽"}.mdi-video-box-off:before{content:"󰃾"}.mdi-video-check:before{content:"󱁩"}.mdi-video-check-outline:before{content:"󱁪"}.mdi-video-high-definition:before{content:"󱔮"}.mdi-video-image:before{content:"󰤚"}.mdi-video-input-antenna:before{content:"󰠿"}.mdi-video-input-component:before{content:"󰡀"}.mdi-video-input-hdmi:before{content:"󰡁"}.mdi-video-input-scart:before{content:"󰾌"}.mdi-video-input-svideo:before{content:"󰡂"}.mdi-video-marker:before{content:"󱦩"}.mdi-video-marker-outline:before{content:"󱦪"}.mdi-video-minus:before{content:"󰦲"}.mdi-video-minus-outline:before{content:"󰊺"}.mdi-video-off:before{content:"󰕨"}.mdi-video-off-outline:before{content:"󰯛"}.mdi-video-outline:before{content:"󰯜"}.mdi-video-plus:before{content:"󰦳"}.mdi-video-plus-outline:before{content:"󰇓"}.mdi-video-stabilization:before{content:"󰤛"}.mdi-video-standard-definition:before{content:"󱲠"}.mdi-video-switch:before{content:"󰕩"}.mdi-video-switch-outline:before{content:"󰞐"}.mdi-video-vintage:before{content:"󰨜"}.mdi-video-wireless:before{content:"󰻒"}.mdi-video-wireless-outline:before{content:"󰻓"}.mdi-view-agenda:before{content:"󰕪"}.mdi-view-agenda-outline:before{content:"󱇘"}.mdi-view-array:before{content:"󰕫"}.mdi-view-array-outline:before{content:"󱒅"}.mdi-view-carousel:before{content:"󰕬"}.mdi-view-carousel-outline:before{content:"󱒆"}.mdi-view-column:before{content:"󰕭"}.mdi-view-column-outline:before{content:"󱒇"}.mdi-view-comfy:before{content:"󰹪"}.mdi-view-comfy-outline:before{content:"󱒈"}.mdi-view-compact:before{content:"󰹫"}.mdi-view-compact-outline:before{content:"󰹬"}.mdi-view-dashboard:before{content:"󰕮"}.mdi-view-dashboard-edit:before{content:"󱥇"}.mdi-view-dashboard-edit-outline:before{content:"󱥈"}.mdi-view-dashboard-outline:before{content:"󰨝"}.mdi-view-dashboard-variant:before{content:"󰡃"}.mdi-view-dashboard-variant-outline:before{content:"󱒉"}.mdi-view-day:before{content:"󰕯"}.mdi-view-day-outline:before{content:"󱒊"}.mdi-view-gallery:before{content:"󱢈"}.mdi-view-gallery-outline:before{content:"󱢉"}.mdi-view-grid:before{content:"󰕰"}.mdi-view-grid-compact:before{content:"󱱡"}.mdi-view-grid-outline:before{content:"󱇙"}.mdi-view-grid-plus:before{content:"󰾍"}.mdi-view-grid-plus-outline:before{content:"󱇚"}.mdi-view-headline:before{content:"󰕱"}.mdi-view-list:before{content:"󰕲"}.mdi-view-list-outline:before{content:"󱒋"}.mdi-view-module:before{content:"󰕳"}.mdi-view-module-outline:before{content:"󱒌"}.mdi-view-parallel:before{content:"󰜨"}.mdi-view-parallel-outline:before{content:"󱒍"}.mdi-view-quilt:before{content:"󰕴"}.mdi-view-quilt-outline:before{content:"󱒎"}.mdi-view-sequential:before{content:"󰜩"}.mdi-view-sequential-outline:before{content:"󱒏"}.mdi-view-split-horizontal:before{content:"󰯋"}.mdi-view-split-vertical:before{content:"󰯌"}.mdi-view-stream:before{content:"󰕵"}.mdi-view-stream-outline:before{content:"󱒐"}.mdi-view-week:before{content:"󰕶"}.mdi-view-week-outline:before{content:"󱒑"}.mdi-vimeo:before{content:"󰕷"}.mdi-violin:before{content:"󰘏"}.mdi-virtual-reality:before{content:"󰢔"}.mdi-virus:before{content:"󱎶"}.mdi-virus-off:before{content:"󱣡"}.mdi-virus-off-outline:before{content:"󱣢"}.mdi-virus-outline:before{content:"󱎷"}.mdi-vlc:before{content:"󰕼"}.mdi-voicemail:before{content:"󰕽"}.mdi-volcano:before{content:"󱪃"}.mdi-volcano-outline:before{content:"󱪄"}.mdi-volleyball:before{content:"󰦴"}.mdi-volume-equal:before{content:"󱬐"}.mdi-volume-high:before{content:"󰕾"}.mdi-volume-low:before{content:"󰕿"}.mdi-volume-medium:before{content:"󰖀"}.mdi-volume-minus:before{content:"󰝞"}.mdi-volume-mute:before{content:"󰝟"}.mdi-volume-off:before{content:"󰖁"}.mdi-volume-plus:before{content:"󰝝"}.mdi-volume-source:before{content:"󱄠"}.mdi-volume-variant-off:before{content:"󰸈"}.mdi-volume-vibrate:before{content:"󱄡"}.mdi-vote:before{content:"󰨟"}.mdi-vote-outline:before{content:"󰨠"}.mdi-vpn:before{content:"󰖂"}.mdi-vuejs:before{content:"󰡄"}.mdi-vuetify:before{content:"󰹭"}.mdi-walk:before{content:"󰖃"}.mdi-wall:before{content:"󰟾"}.mdi-wall-fire:before{content:"󱨑"}.mdi-wall-sconce:before{content:"󰤜"}.mdi-wall-sconce-flat:before{content:"󰤝"}.mdi-wall-sconce-flat-outline:before{content:"󱟉"}.mdi-wall-sconce-flat-variant:before{content:"󰐜"}.mdi-wall-sconce-flat-variant-outline:before{content:"󱟊"}.mdi-wall-sconce-outline:before{content:"󱟋"}.mdi-wall-sconce-round:before{content:"󰝈"}.mdi-wall-sconce-round-outline:before{content:"󱟌"}.mdi-wall-sconce-round-variant:before{content:"󰤞"}.mdi-wall-sconce-round-variant-outline:before{content:"󱟍"}.mdi-wallet:before{content:"󰖄"}.mdi-wallet-bifold:before{content:"󱱘"}.mdi-wallet-bifold-outline:before{content:"󱱙"}.mdi-wallet-giftcard:before{content:"󰖅"}.mdi-wallet-membership:before{content:"󰖆"}.mdi-wallet-outline:before{content:"󰯝"}.mdi-wallet-plus:before{content:"󰾎"}.mdi-wallet-plus-outline:before{content:"󰾏"}.mdi-wallet-travel:before{content:"󰖇"}.mdi-wallpaper:before{content:"󰸉"}.mdi-wan:before{content:"󰖈"}.mdi-wardrobe:before{content:"󰾐"}.mdi-wardrobe-outline:before{content:"󰾑"}.mdi-warehouse:before{content:"󰾁"}.mdi-washing-machine:before{content:"󰜪"}.mdi-washing-machine-alert:before{content:"󱆼"}.mdi-washing-machine-off:before{content:"󱆽"}.mdi-watch:before{content:"󰖉"}.mdi-watch-export:before{content:"󰖊"}.mdi-watch-export-variant:before{content:"󰢕"}.mdi-watch-import:before{content:"󰖋"}.mdi-watch-import-variant:before{content:"󰢖"}.mdi-watch-variant:before{content:"󰢗"}.mdi-watch-vibrate:before{content:"󰚱"}.mdi-watch-vibrate-off:before{content:"󰳚"}.mdi-water:before{content:"󰖌"}.mdi-water-alert:before{content:"󱔂"}.mdi-water-alert-outline:before{content:"󱔃"}.mdi-water-boiler:before{content:"󰾒"}.mdi-water-boiler-alert:before{content:"󱆳"}.mdi-water-boiler-auto:before{content:"󱮘"}.mdi-water-boiler-off:before{content:"󱆴"}.mdi-water-check:before{content:"󱔄"}.mdi-water-check-outline:before{content:"󱔅"}.mdi-water-circle:before{content:"󱠆"}.mdi-water-minus:before{content:"󱔆"}.mdi-water-minus-outline:before{content:"󱔇"}.mdi-water-off:before{content:"󰖍"}.mdi-water-off-outline:before{content:"󱔈"}.mdi-water-opacity:before{content:"󱡕"}.mdi-water-outline:before{content:"󰸊"}.mdi-water-percent:before{content:"󰖎"}.mdi-water-percent-alert:before{content:"󱔉"}.mdi-water-plus:before{content:"󱔊"}.mdi-water-plus-outline:before{content:"󱔋"}.mdi-water-polo:before{content:"󱊠"}.mdi-water-pump:before{content:"󰖏"}.mdi-water-pump-off:before{content:"󰾓"}.mdi-water-remove:before{content:"󱔌"}.mdi-water-remove-outline:before{content:"󱔍"}.mdi-water-sync:before{content:"󱟆"}.mdi-water-thermometer:before{content:"󱪅"}.mdi-water-thermometer-outline:before{content:"󱪆"}.mdi-water-well:before{content:"󱁫"}.mdi-water-well-outline:before{content:"󱁬"}.mdi-waterfall:before{content:"󱡉"}.mdi-watering-can:before{content:"󱒁"}.mdi-watering-can-outline:before{content:"󱒂"}.mdi-watermark:before{content:"󰘒"}.mdi-wave:before{content:"󰼮"}.mdi-wave-arrow-down:before{content:"󱲰"}.mdi-wave-arrow-up:before{content:"󱲱"}.mdi-wave-undercurrent:before{content:"󱳀"}.mdi-waveform:before{content:"󱑽"}.mdi-waves:before{content:"󰞍"}.mdi-waves-arrow-left:before{content:"󱡙"}.mdi-waves-arrow-right:before{content:"󱡚"}.mdi-waves-arrow-up:before{content:"󱡛"}.mdi-waze:before{content:"󰯞"}.mdi-weather-cloudy:before{content:"󰖐"}.mdi-weather-cloudy-alert:before{content:"󰼯"}.mdi-weather-cloudy-arrow-right:before{content:"󰹮"}.mdi-weather-cloudy-clock:before{content:"󱣶"}.mdi-weather-dust:before{content:"󱭚"}.mdi-weather-fog:before{content:"󰖑"}.mdi-weather-hail:before{content:"󰖒"}.mdi-weather-hazy:before{content:"󰼰"}.mdi-weather-hurricane:before{content:"󰢘"}.mdi-weather-hurricane-outline:before{content:"󱱸"}.mdi-weather-lightning:before{content:"󰖓"}.mdi-weather-lightning-rainy:before{content:"󰙾"}.mdi-weather-night:before{content:"󰖔"}.mdi-weather-night-partly-cloudy:before{content:"󰼱"}.mdi-weather-partly-cloudy:before{content:"󰖕"}.mdi-weather-partly-lightning:before{content:"󰼲"}.mdi-weather-partly-rainy:before{content:"󰼳"}.mdi-weather-partly-snowy:before{content:"󰼴"}.mdi-weather-partly-snowy-rainy:before{content:"󰼵"}.mdi-weather-pouring:before{content:"󰖖"}.mdi-weather-rainy:before{content:"󰖗"}.mdi-weather-snowy:before{content:"󰖘"}.mdi-weather-snowy-heavy:before{content:"󰼶"}.mdi-weather-snowy-rainy:before{content:"󰙿"}.mdi-weather-sunny:before{content:"󰖙"}.mdi-weather-sunny-alert:before{content:"󰼷"}.mdi-weather-sunny-off:before{content:"󱓤"}.mdi-weather-sunset:before{content:"󰖚"}.mdi-weather-sunset-down:before{content:"󰖛"}.mdi-weather-sunset-up:before{content:"󰖜"}.mdi-weather-tornado:before{content:"󰼸"}.mdi-weather-windy:before{content:"󰖝"}.mdi-weather-windy-variant:before{content:"󰖞"}.mdi-web:before{content:"󰖟"}.mdi-web-box:before{content:"󰾔"}.mdi-web-cancel:before{content:"󱞐"}.mdi-web-check:before{content:"󰞉"}.mdi-web-clock:before{content:"󱉊"}.mdi-web-minus:before{content:"󱂠"}.mdi-web-off:before{content:"󰪎"}.mdi-web-plus:before{content:"󰀳"}.mdi-web-refresh:before{content:"󱞑"}.mdi-web-remove:before{content:"󰕑"}.mdi-web-sync:before{content:"󱞒"}.mdi-webcam:before{content:"󰖠"}.mdi-webcam-off:before{content:"󱜷"}.mdi-webhook:before{content:"󰘯"}.mdi-webpack:before{content:"󰜫"}.mdi-webrtc:before{content:"󱉈"}.mdi-wechat:before{content:"󰘑"}.mdi-weight:before{content:"󰖡"}.mdi-weight-gram:before{content:"󰴿"}.mdi-weight-kilogram:before{content:"󰖢"}.mdi-weight-lifter:before{content:"󱅝"}.mdi-weight-pound:before{content:"󰦵"}.mdi-whatsapp:before{content:"󰖣"}.mdi-wheel-barrow:before{content:"󱓲"}.mdi-wheelchair:before{content:"󱪇"}.mdi-wheelchair-accessibility:before{content:"󰖤"}.mdi-whistle:before{content:"󰦶"}.mdi-whistle-outline:before{content:"󱊼"}.mdi-white-balance-auto:before{content:"󰖥"}.mdi-white-balance-incandescent:before{content:"󰖦"}.mdi-white-balance-iridescent:before{content:"󰖧"}.mdi-white-balance-sunny:before{content:"󰖨"}.mdi-widgets:before{content:"󰜬"}.mdi-widgets-outline:before{content:"󱍕"}.mdi-wifi:before{content:"󰖩"}.mdi-wifi-alert:before{content:"󱚵"}.mdi-wifi-arrow-down:before{content:"󱚶"}.mdi-wifi-arrow-left:before{content:"󱚷"}.mdi-wifi-arrow-left-right:before{content:"󱚸"}.mdi-wifi-arrow-right:before{content:"󱚹"}.mdi-wifi-arrow-up:before{content:"󱚺"}.mdi-wifi-arrow-up-down:before{content:"󱚻"}.mdi-wifi-cancel:before{content:"󱚼"}.mdi-wifi-check:before{content:"󱚽"}.mdi-wifi-cog:before{content:"󱚾"}.mdi-wifi-lock:before{content:"󱚿"}.mdi-wifi-lock-open:before{content:"󱛀"}.mdi-wifi-marker:before{content:"󱛁"}.mdi-wifi-minus:before{content:"󱛂"}.mdi-wifi-off:before{content:"󰖪"}.mdi-wifi-plus:before{content:"󱛃"}.mdi-wifi-refresh:before{content:"󱛄"}.mdi-wifi-remove:before{content:"󱛅"}.mdi-wifi-settings:before{content:"󱛆"}.mdi-wifi-star:before{content:"󰸋"}.mdi-wifi-strength-1:before{content:"󰤟"}.mdi-wifi-strength-1-alert:before{content:"󰤠"}.mdi-wifi-strength-1-lock:before{content:"󰤡"}.mdi-wifi-strength-1-lock-open:before{content:"󱛋"}.mdi-wifi-strength-2:before{content:"󰤢"}.mdi-wifi-strength-2-alert:before{content:"󰤣"}.mdi-wifi-strength-2-lock:before{content:"󰤤"}.mdi-wifi-strength-2-lock-open:before{content:"󱛌"}.mdi-wifi-strength-3:before{content:"󰤥"}.mdi-wifi-strength-3-alert:before{content:"󰤦"}.mdi-wifi-strength-3-lock:before{content:"󰤧"}.mdi-wifi-strength-3-lock-open:before{content:"󱛍"}.mdi-wifi-strength-4:before{content:"󰤨"}.mdi-wifi-strength-4-alert:before{content:"󰤩"}.mdi-wifi-strength-4-lock:before{content:"󰤪"}.mdi-wifi-strength-4-lock-open:before{content:"󱛎"}.mdi-wifi-strength-alert-outline:before{content:"󰤫"}.mdi-wifi-strength-lock-open-outline:before{content:"󱛏"}.mdi-wifi-strength-lock-outline:before{content:"󰤬"}.mdi-wifi-strength-off:before{content:"󰤭"}.mdi-wifi-strength-off-outline:before{content:"󰤮"}.mdi-wifi-strength-outline:before{content:"󰤯"}.mdi-wifi-sync:before{content:"󱛇"}.mdi-wikipedia:before{content:"󰖬"}.mdi-wind-power:before{content:"󱪈"}.mdi-wind-power-outline:before{content:"󱪉"}.mdi-wind-turbine:before{content:"󰶥"}.mdi-wind-turbine-alert:before{content:"󱦫"}.mdi-wind-turbine-check:before{content:"󱦬"}.mdi-window-close:before{content:"󰖭"}.mdi-window-closed:before{content:"󰖮"}.mdi-window-closed-variant:before{content:"󱇛"}.mdi-window-maximize:before{content:"󰖯"}.mdi-window-minimize:before{content:"󰖰"}.mdi-window-open:before{content:"󰖱"}.mdi-window-open-variant:before{content:"󱇜"}.mdi-window-restore:before{content:"󰖲"}.mdi-window-shutter:before{content:"󱄜"}.mdi-window-shutter-alert:before{content:"󱄝"}.mdi-window-shutter-auto:before{content:"󱮣"}.mdi-window-shutter-cog:before{content:"󱪊"}.mdi-window-shutter-open:before{content:"󱄞"}.mdi-window-shutter-settings:before{content:"󱪋"}.mdi-windsock:before{content:"󱗺"}.mdi-wiper:before{content:"󰫩"}.mdi-wiper-wash:before{content:"󰶦"}.mdi-wiper-wash-alert:before{content:"󱣟"}.mdi-wizard-hat:before{content:"󱑷"}.mdi-wordpress:before{content:"󰖴"}.mdi-wrap:before{content:"󰖶"}.mdi-wrap-disabled:before{content:"󰯟"}.mdi-wrench:before{content:"󰖷"}.mdi-wrench-check:before{content:"󱮏"}.mdi-wrench-check-outline:before{content:"󱮐"}.mdi-wrench-clock:before{content:"󱦣"}.mdi-wrench-clock-outline:before{content:"󱮓"}.mdi-wrench-cog:before{content:"󱮑"}.mdi-wrench-cog-outline:before{content:"󱮒"}.mdi-wrench-outline:before{content:"󰯠"}.mdi-xamarin:before{content:"󰡅"}.mdi-xml:before{content:"󰗀"}.mdi-xmpp:before{content:"󰟿"}.mdi-yahoo:before{content:"󰭏"}.mdi-yeast:before{content:"󰗁"}.mdi-yin-yang:before{content:"󰚀"}.mdi-yoga:before{content:"󱅼"}.mdi-youtube:before{content:"󰗃"}.mdi-youtube-gaming:before{content:"󰡈"}.mdi-youtube-studio:before{content:"󰡇"}.mdi-youtube-subscription:before{content:"󰵀"}.mdi-youtube-tv:before{content:"󰑈"}.mdi-yurt:before{content:"󱔖"}.mdi-z-wave:before{content:"󰫪"}.mdi-zend:before{content:"󰫫"}.mdi-zigbee:before{content:"󰵁"}.mdi-zip-box:before{content:"󰗄"}.mdi-zip-box-outline:before{content:"󰿺"}.mdi-zip-disk:before{content:"󰨣"}.mdi-zodiac-aquarius:before{content:"󰩽"}.mdi-zodiac-aries:before{content:"󰩾"}.mdi-zodiac-cancer:before{content:"󰩿"}.mdi-zodiac-capricorn:before{content:"󰪀"}.mdi-zodiac-gemini:before{content:"󰪁"}.mdi-zodiac-leo:before{content:"󰪂"}.mdi-zodiac-libra:before{content:"󰪃"}.mdi-zodiac-pisces:before{content:"󰪄"}.mdi-zodiac-sagittarius:before{content:"󰪅"}.mdi-zodiac-scorpio:before{content:"󰪆"}.mdi-zodiac-taurus:before{content:"󰪇"}.mdi-zodiac-virgo:before{content:"󰪈"}.mdi-blank:before{content:"";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes v-shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.bg-black{background-color:#000!important;color:#fff!important}.bg-white{background-color:#fff!important;color:#000!important}.bg-transparent{background-color:transparent!important;color:currentColor!important}.bg-red{background-color:#f44336!important;color:#fff!important}.bg-red-lighten-5{background-color:#ffebee!important;color:#000!important}.bg-red-lighten-4{background-color:#ffcdd2!important;color:#000!important}.bg-red-lighten-3{background-color:#ef9a9a!important;color:#000!important}.bg-red-lighten-2{background-color:#e57373!important;color:#fff!important}.bg-red-lighten-1{background-color:#ef5350!important;color:#fff!important}.bg-red-darken-1{background-color:#e53935!important;color:#fff!important}.bg-red-darken-2{background-color:#d32f2f!important;color:#fff!important}.bg-red-darken-3{background-color:#c62828!important;color:#fff!important}.bg-red-darken-4{background-color:#b71c1c!important;color:#fff!important}.bg-red-accent-1{background-color:#ff8a80!important;color:#000!important}.bg-red-accent-2{background-color:#ff5252!important;color:#fff!important}.bg-red-accent-3{background-color:#ff1744!important;color:#fff!important}.bg-red-accent-4{background-color:#d50000!important;color:#fff!important}.bg-pink{background-color:#e91e63!important;color:#fff!important}.bg-pink-lighten-5{background-color:#fce4ec!important;color:#000!important}.bg-pink-lighten-4{background-color:#f8bbd0!important;color:#000!important}.bg-pink-lighten-3{background-color:#f48fb1!important;color:#000!important}.bg-pink-lighten-2{background-color:#f06292!important;color:#fff!important}.bg-pink-lighten-1{background-color:#ec407a!important;color:#fff!important}.bg-pink-darken-1{background-color:#d81b60!important;color:#fff!important}.bg-pink-darken-2{background-color:#c2185b!important;color:#fff!important}.bg-pink-darken-3{background-color:#ad1457!important;color:#fff!important}.bg-pink-darken-4{background-color:#880e4f!important;color:#fff!important}.bg-pink-accent-1{background-color:#ff80ab!important;color:#fff!important}.bg-pink-accent-2{background-color:#ff4081!important;color:#fff!important}.bg-pink-accent-3{background-color:#f50057!important;color:#fff!important}.bg-pink-accent-4{background-color:#c51162!important;color:#fff!important}.bg-purple{background-color:#9c27b0!important;color:#fff!important}.bg-purple-lighten-5{background-color:#f3e5f5!important;color:#000!important}.bg-purple-lighten-4{background-color:#e1bee7!important;color:#000!important}.bg-purple-lighten-3{background-color:#ce93d8!important;color:#fff!important}.bg-purple-lighten-2{background-color:#ba68c8!important;color:#fff!important}.bg-purple-lighten-1{background-color:#ab47bc!important;color:#fff!important}.bg-purple-darken-1{background-color:#8e24aa!important;color:#fff!important}.bg-purple-darken-2{background-color:#7b1fa2!important;color:#fff!important}.bg-purple-darken-3{background-color:#6a1b9a!important;color:#fff!important}.bg-purple-darken-4{background-color:#4a148c!important;color:#fff!important}.bg-purple-accent-1{background-color:#ea80fc!important;color:#fff!important}.bg-purple-accent-2{background-color:#e040fb!important;color:#fff!important}.bg-purple-accent-3{background-color:#d500f9!important;color:#fff!important}.bg-purple-accent-4{background-color:#a0f!important;color:#fff!important}.bg-deep-purple{background-color:#673ab7!important;color:#fff!important}.bg-deep-purple-lighten-5{background-color:#ede7f6!important;color:#000!important}.bg-deep-purple-lighten-4{background-color:#d1c4e9!important;color:#000!important}.bg-deep-purple-lighten-3{background-color:#b39ddb!important;color:#fff!important}.bg-deep-purple-lighten-2{background-color:#9575cd!important;color:#fff!important}.bg-deep-purple-lighten-1{background-color:#7e57c2!important;color:#fff!important}.bg-deep-purple-darken-1{background-color:#5e35b1!important;color:#fff!important}.bg-deep-purple-darken-2{background-color:#512da8!important;color:#fff!important}.bg-deep-purple-darken-3{background-color:#4527a0!important;color:#fff!important}.bg-deep-purple-darken-4{background-color:#311b92!important;color:#fff!important}.bg-deep-purple-accent-1{background-color:#b388ff!important;color:#fff!important}.bg-deep-purple-accent-2{background-color:#7c4dff!important;color:#fff!important}.bg-deep-purple-accent-3{background-color:#651fff!important;color:#fff!important}.bg-deep-purple-accent-4{background-color:#6200ea!important;color:#fff!important}.bg-indigo{background-color:#3f51b5!important;color:#fff!important}.bg-indigo-lighten-5{background-color:#e8eaf6!important;color:#000!important}.bg-indigo-lighten-4{background-color:#c5cae9!important;color:#000!important}.bg-indigo-lighten-3{background-color:#9fa8da!important;color:#fff!important}.bg-indigo-lighten-2{background-color:#7986cb!important;color:#fff!important}.bg-indigo-lighten-1{background-color:#5c6bc0!important;color:#fff!important}.bg-indigo-darken-1{background-color:#3949ab!important;color:#fff!important}.bg-indigo-darken-2{background-color:#303f9f!important;color:#fff!important}.bg-indigo-darken-3{background-color:#283593!important;color:#fff!important}.bg-indigo-darken-4{background-color:#1a237e!important;color:#fff!important}.bg-indigo-accent-1{background-color:#8c9eff!important;color:#fff!important}.bg-indigo-accent-2{background-color:#536dfe!important;color:#fff!important}.bg-indigo-accent-3{background-color:#3d5afe!important;color:#fff!important}.bg-indigo-accent-4{background-color:#304ffe!important;color:#fff!important}.bg-blue{background-color:#2196f3!important;color:#fff!important}.bg-blue-lighten-5{background-color:#e3f2fd!important;color:#000!important}.bg-blue-lighten-4{background-color:#bbdefb!important;color:#000!important}.bg-blue-lighten-3{background-color:#90caf9!important;color:#000!important}.bg-blue-lighten-2{background-color:#64b5f6!important;color:#000!important}.bg-blue-lighten-1{background-color:#42a5f5!important;color:#fff!important}.bg-blue-darken-1{background-color:#1e88e5!important;color:#fff!important}.bg-blue-darken-2{background-color:#1976d2!important;color:#fff!important}.bg-blue-darken-3{background-color:#1565c0!important;color:#fff!important}.bg-blue-darken-4{background-color:#0d47a1!important;color:#fff!important}.bg-blue-accent-1{background-color:#82b1ff!important;color:#000!important}.bg-blue-accent-2{background-color:#448aff!important;color:#fff!important}.bg-blue-accent-3{background-color:#2979ff!important;color:#fff!important}.bg-blue-accent-4{background-color:#2962ff!important;color:#fff!important}.bg-light-blue{background-color:#03a9f4!important;color:#fff!important}.bg-light-blue-lighten-5{background-color:#e1f5fe!important;color:#000!important}.bg-light-blue-lighten-4{background-color:#b3e5fc!important;color:#000!important}.bg-light-blue-lighten-3{background-color:#81d4fa!important;color:#000!important}.bg-light-blue-lighten-2{background-color:#4fc3f7!important;color:#000!important}.bg-light-blue-lighten-1{background-color:#29b6f6!important;color:#000!important}.bg-light-blue-darken-1{background-color:#039be5!important;color:#fff!important}.bg-light-blue-darken-2{background-color:#0288d1!important;color:#fff!important}.bg-light-blue-darken-3{background-color:#0277bd!important;color:#fff!important}.bg-light-blue-darken-4{background-color:#01579b!important;color:#fff!important}.bg-light-blue-accent-1{background-color:#80d8ff!important;color:#000!important}.bg-light-blue-accent-2{background-color:#40c4ff!important;color:#000!important}.bg-light-blue-accent-3{background-color:#00b0ff!important;color:#fff!important}.bg-light-blue-accent-4{background-color:#0091ea!important;color:#fff!important}.bg-cyan{background-color:#00bcd4!important;color:#000!important}.bg-cyan-lighten-5{background-color:#e0f7fa!important;color:#000!important}.bg-cyan-lighten-4{background-color:#b2ebf2!important;color:#000!important}.bg-cyan-lighten-3{background-color:#80deea!important;color:#000!important}.bg-cyan-lighten-2{background-color:#4dd0e1!important;color:#000!important}.bg-cyan-lighten-1{background-color:#26c6da!important;color:#000!important}.bg-cyan-darken-1{background-color:#00acc1!important;color:#fff!important}.bg-cyan-darken-2{background-color:#0097a7!important;color:#fff!important}.bg-cyan-darken-3{background-color:#00838f!important;color:#fff!important}.bg-cyan-darken-4{background-color:#006064!important;color:#fff!important}.bg-cyan-accent-1{background-color:#84ffff!important;color:#000!important}.bg-cyan-accent-2{background-color:#18ffff!important;color:#000!important}.bg-cyan-accent-3{background-color:#00e5ff!important;color:#000!important}.bg-cyan-accent-4{background-color:#00b8d4!important;color:#fff!important}.bg-teal{background-color:#009688!important;color:#fff!important}.bg-teal-lighten-5{background-color:#e0f2f1!important;color:#000!important}.bg-teal-lighten-4{background-color:#b2dfdb!important;color:#000!important}.bg-teal-lighten-3{background-color:#80cbc4!important;color:#000!important}.bg-teal-lighten-2{background-color:#4db6ac!important;color:#fff!important}.bg-teal-lighten-1{background-color:#26a69a!important;color:#fff!important}.bg-teal-darken-1{background-color:#00897b!important;color:#fff!important}.bg-teal-darken-2{background-color:#00796b!important;color:#fff!important}.bg-teal-darken-3{background-color:#00695c!important;color:#fff!important}.bg-teal-darken-4{background-color:#004d40!important;color:#fff!important}.bg-teal-accent-1{background-color:#a7ffeb!important;color:#000!important}.bg-teal-accent-2{background-color:#64ffda!important;color:#000!important}.bg-teal-accent-3{background-color:#1de9b6!important;color:#000!important}.bg-teal-accent-4{background-color:#00bfa5!important;color:#fff!important}.bg-green{background-color:#4caf50!important;color:#fff!important}.bg-green-lighten-5{background-color:#e8f5e9!important;color:#000!important}.bg-green-lighten-4{background-color:#c8e6c9!important;color:#000!important}.bg-green-lighten-3{background-color:#a5d6a7!important;color:#000!important}.bg-green-lighten-2{background-color:#81c784!important;color:#000!important}.bg-green-lighten-1{background-color:#66bb6a!important;color:#fff!important}.bg-green-darken-1{background-color:#43a047!important;color:#fff!important}.bg-green-darken-2{background-color:#388e3c!important;color:#fff!important}.bg-green-darken-3{background-color:#2e7d32!important;color:#fff!important}.bg-green-darken-4{background-color:#1b5e20!important;color:#fff!important}.bg-green-accent-1{background-color:#b9f6ca!important;color:#000!important}.bg-green-accent-2{background-color:#69f0ae!important;color:#000!important}.bg-green-accent-3{background-color:#00e676!important;color:#000!important}.bg-green-accent-4{background-color:#00c853!important;color:#000!important}.bg-light-green{background-color:#8bc34a!important;color:#000!important}.bg-light-green-lighten-5{background-color:#f1f8e9!important;color:#000!important}.bg-light-green-lighten-4{background-color:#dcedc8!important;color:#000!important}.bg-light-green-lighten-3{background-color:#c5e1a5!important;color:#000!important}.bg-light-green-lighten-2{background-color:#aed581!important;color:#000!important}.bg-light-green-lighten-1{background-color:#9ccc65!important;color:#000!important}.bg-light-green-darken-1{background-color:#7cb342!important;color:#fff!important}.bg-light-green-darken-2{background-color:#689f38!important;color:#fff!important}.bg-light-green-darken-3{background-color:#558b2f!important;color:#fff!important}.bg-light-green-darken-4{background-color:#33691e!important;color:#fff!important}.bg-light-green-accent-1{background-color:#ccff90!important;color:#000!important}.bg-light-green-accent-2{background-color:#b2ff59!important;color:#000!important}.bg-light-green-accent-3{background-color:#76ff03!important;color:#000!important}.bg-light-green-accent-4{background-color:#64dd17!important;color:#000!important}.bg-lime{background-color:#cddc39!important;color:#000!important}.bg-lime-lighten-5{background-color:#f9fbe7!important;color:#000!important}.bg-lime-lighten-4{background-color:#f0f4c3!important;color:#000!important}.bg-lime-lighten-3{background-color:#e6ee9c!important;color:#000!important}.bg-lime-lighten-2{background-color:#dce775!important;color:#000!important}.bg-lime-lighten-1{background-color:#d4e157!important;color:#000!important}.bg-lime-darken-1{background-color:#c0ca33!important;color:#000!important}.bg-lime-darken-2{background-color:#afb42b!important;color:#000!important}.bg-lime-darken-3{background-color:#9e9d24!important;color:#fff!important}.bg-lime-darken-4{background-color:#827717!important;color:#fff!important}.bg-lime-accent-1{background-color:#f4ff81!important;color:#000!important}.bg-lime-accent-2{background-color:#eeff41!important;color:#000!important}.bg-lime-accent-3{background-color:#c6ff00!important;color:#000!important}.bg-lime-accent-4{background-color:#aeea00!important;color:#000!important}.bg-yellow{background-color:#ffeb3b!important;color:#000!important}.bg-yellow-lighten-5{background-color:#fffde7!important;color:#000!important}.bg-yellow-lighten-4{background-color:#fff9c4!important;color:#000!important}.bg-yellow-lighten-3{background-color:#fff59d!important;color:#000!important}.bg-yellow-lighten-2{background-color:#fff176!important;color:#000!important}.bg-yellow-lighten-1{background-color:#ffee58!important;color:#000!important}.bg-yellow-darken-1{background-color:#fdd835!important;color:#000!important}.bg-yellow-darken-2{background-color:#fbc02d!important;color:#000!important}.bg-yellow-darken-3{background-color:#f9a825!important;color:#000!important}.bg-yellow-darken-4{background-color:#f57f17!important;color:#fff!important}.bg-yellow-accent-1{background-color:#ffff8d!important;color:#000!important}.bg-yellow-accent-2{background-color:#ff0!important;color:#000!important}.bg-yellow-accent-3{background-color:#ffea00!important;color:#000!important}.bg-yellow-accent-4{background-color:#ffd600!important;color:#000!important}.bg-amber{background-color:#ffc107!important;color:#000!important}.bg-amber-lighten-5{background-color:#fff8e1!important;color:#000!important}.bg-amber-lighten-4{background-color:#ffecb3!important;color:#000!important}.bg-amber-lighten-3{background-color:#ffe082!important;color:#000!important}.bg-amber-lighten-2{background-color:#ffd54f!important;color:#000!important}.bg-amber-lighten-1{background-color:#ffca28!important;color:#000!important}.bg-amber-darken-1{background-color:#ffb300!important;color:#000!important}.bg-amber-darken-2{background-color:#ffa000!important;color:#000!important}.bg-amber-darken-3{background-color:#ff8f00!important;color:#000!important}.bg-amber-darken-4{background-color:#ff6f00!important;color:#fff!important}.bg-amber-accent-1{background-color:#ffe57f!important;color:#000!important}.bg-amber-accent-2{background-color:#ffd740!important;color:#000!important}.bg-amber-accent-3{background-color:#ffc400!important;color:#000!important}.bg-amber-accent-4{background-color:#ffab00!important;color:#000!important}.bg-orange{background-color:#ff9800!important;color:#000!important}.bg-orange-lighten-5{background-color:#fff3e0!important;color:#000!important}.bg-orange-lighten-4{background-color:#ffe0b2!important;color:#000!important}.bg-orange-lighten-3{background-color:#ffcc80!important;color:#000!important}.bg-orange-lighten-2{background-color:#ffb74d!important;color:#000!important}.bg-orange-lighten-1{background-color:#ffa726!important;color:#000!important}.bg-orange-darken-1{background-color:#fb8c00!important;color:#fff!important}.bg-orange-darken-2{background-color:#f57c00!important;color:#fff!important}.bg-orange-darken-3{background-color:#ef6c00!important;color:#fff!important}.bg-orange-darken-4{background-color:#e65100!important;color:#fff!important}.bg-orange-accent-1{background-color:#ffd180!important;color:#000!important}.bg-orange-accent-2{background-color:#ffab40!important;color:#000!important}.bg-orange-accent-3{background-color:#ff9100!important;color:#000!important}.bg-orange-accent-4{background-color:#ff6d00!important;color:#fff!important}.bg-deep-orange{background-color:#ff5722!important;color:#fff!important}.bg-deep-orange-lighten-5{background-color:#fbe9e7!important;color:#000!important}.bg-deep-orange-lighten-4{background-color:#ffccbc!important;color:#000!important}.bg-deep-orange-lighten-3{background-color:#ffab91!important;color:#000!important}.bg-deep-orange-lighten-2{background-color:#ff8a65!important;color:#000!important}.bg-deep-orange-lighten-1{background-color:#ff7043!important;color:#fff!important}.bg-deep-orange-darken-1{background-color:#f4511e!important;color:#fff!important}.bg-deep-orange-darken-2{background-color:#e64a19!important;color:#fff!important}.bg-deep-orange-darken-3{background-color:#d84315!important;color:#fff!important}.bg-deep-orange-darken-4{background-color:#bf360c!important;color:#fff!important}.bg-deep-orange-accent-1{background-color:#ff9e80!important;color:#000!important}.bg-deep-orange-accent-2{background-color:#ff6e40!important;color:#fff!important}.bg-deep-orange-accent-3{background-color:#ff3d00!important;color:#fff!important}.bg-deep-orange-accent-4{background-color:#dd2c00!important;color:#fff!important}.bg-brown{background-color:#795548!important;color:#fff!important}.bg-brown-lighten-5{background-color:#efebe9!important;color:#000!important}.bg-brown-lighten-4{background-color:#d7ccc8!important;color:#000!important}.bg-brown-lighten-3{background-color:#bcaaa4!important;color:#000!important}.bg-brown-lighten-2{background-color:#a1887f!important;color:#fff!important}.bg-brown-lighten-1{background-color:#8d6e63!important;color:#fff!important}.bg-brown-darken-1{background-color:#6d4c41!important;color:#fff!important}.bg-brown-darken-2{background-color:#5d4037!important;color:#fff!important}.bg-brown-darken-3{background-color:#4e342e!important;color:#fff!important}.bg-brown-darken-4{background-color:#3e2723!important;color:#fff!important}.bg-blue-grey{background-color:#607d8b!important;color:#fff!important}.bg-blue-grey-lighten-5{background-color:#eceff1!important;color:#000!important}.bg-blue-grey-lighten-4{background-color:#cfd8dc!important;color:#000!important}.bg-blue-grey-lighten-3{background-color:#b0bec5!important;color:#000!important}.bg-blue-grey-lighten-2{background-color:#90a4ae!important;color:#fff!important}.bg-blue-grey-lighten-1{background-color:#78909c!important;color:#fff!important}.bg-blue-grey-darken-1{background-color:#546e7a!important;color:#fff!important}.bg-blue-grey-darken-2{background-color:#455a64!important;color:#fff!important}.bg-blue-grey-darken-3{background-color:#37474f!important;color:#fff!important}.bg-blue-grey-darken-4{background-color:#263238!important;color:#fff!important}.bg-grey{background-color:#9e9e9e!important;color:#fff!important}.bg-grey-lighten-5{background-color:#fafafa!important;color:#000!important}.bg-grey-lighten-4{background-color:#f5f5f5!important;color:#000!important}.bg-grey-lighten-3{background-color:#eee!important;color:#000!important}.bg-grey-lighten-2{background-color:#e0e0e0!important;color:#000!important}.bg-grey-lighten-1{background-color:#bdbdbd!important;color:#000!important}.bg-grey-darken-1{background-color:#757575!important;color:#fff!important}.bg-grey-darken-2{background-color:#616161!important;color:#fff!important}.bg-grey-darken-3{background-color:#424242!important;color:#fff!important}.bg-grey-darken-4{background-color:#212121!important;color:#fff!important}.bg-shades-black{background-color:#000!important;color:#fff!important}.bg-shades-white{background-color:#fff!important;color:#000!important}.bg-shades-transparent{background-color:transparent!important;color:currentColor!important}.text-black{color:#000!important}.text-white{color:#fff!important}.text-transparent{color:transparent!important}.text-red{color:#f44336!important}.text-red-lighten-5{color:#ffebee!important}.text-red-lighten-4{color:#ffcdd2!important}.text-red-lighten-3{color:#ef9a9a!important}.text-red-lighten-2{color:#e57373!important}.text-red-lighten-1{color:#ef5350!important}.text-red-darken-1{color:#e53935!important}.text-red-darken-2{color:#d32f2f!important}.text-red-darken-3{color:#c62828!important}.text-red-darken-4{color:#b71c1c!important}.text-red-accent-1{color:#ff8a80!important}.text-red-accent-2{color:#ff5252!important}.text-red-accent-3{color:#ff1744!important}.text-red-accent-4{color:#d50000!important}.text-pink{color:#e91e63!important}.text-pink-lighten-5{color:#fce4ec!important}.text-pink-lighten-4{color:#f8bbd0!important}.text-pink-lighten-3{color:#f48fb1!important}.text-pink-lighten-2{color:#f06292!important}.text-pink-lighten-1{color:#ec407a!important}.text-pink-darken-1{color:#d81b60!important}.text-pink-darken-2{color:#c2185b!important}.text-pink-darken-3{color:#ad1457!important}.text-pink-darken-4{color:#880e4f!important}.text-pink-accent-1{color:#ff80ab!important}.text-pink-accent-2{color:#ff4081!important}.text-pink-accent-3{color:#f50057!important}.text-pink-accent-4{color:#c51162!important}.text-purple{color:#9c27b0!important}.text-purple-lighten-5{color:#f3e5f5!important}.text-purple-lighten-4{color:#e1bee7!important}.text-purple-lighten-3{color:#ce93d8!important}.text-purple-lighten-2{color:#ba68c8!important}.text-purple-lighten-1{color:#ab47bc!important}.text-purple-darken-1{color:#8e24aa!important}.text-purple-darken-2{color:#7b1fa2!important}.text-purple-darken-3{color:#6a1b9a!important}.text-purple-darken-4{color:#4a148c!important}.text-purple-accent-1{color:#ea80fc!important}.text-purple-accent-2{color:#e040fb!important}.text-purple-accent-3{color:#d500f9!important}.text-purple-accent-4{color:#a0f!important}.text-deep-purple{color:#673ab7!important}.text-deep-purple-lighten-5{color:#ede7f6!important}.text-deep-purple-lighten-4{color:#d1c4e9!important}.text-deep-purple-lighten-3{color:#b39ddb!important}.text-deep-purple-lighten-2{color:#9575cd!important}.text-deep-purple-lighten-1{color:#7e57c2!important}.text-deep-purple-darken-1{color:#5e35b1!important}.text-deep-purple-darken-2{color:#512da8!important}.text-deep-purple-darken-3{color:#4527a0!important}.text-deep-purple-darken-4{color:#311b92!important}.text-deep-purple-accent-1{color:#b388ff!important}.text-deep-purple-accent-2{color:#7c4dff!important}.text-deep-purple-accent-3{color:#651fff!important}.text-deep-purple-accent-4{color:#6200ea!important}.text-indigo{color:#3f51b5!important}.text-indigo-lighten-5{color:#e8eaf6!important}.text-indigo-lighten-4{color:#c5cae9!important}.text-indigo-lighten-3{color:#9fa8da!important}.text-indigo-lighten-2{color:#7986cb!important}.text-indigo-lighten-1{color:#5c6bc0!important}.text-indigo-darken-1{color:#3949ab!important}.text-indigo-darken-2{color:#303f9f!important}.text-indigo-darken-3{color:#283593!important}.text-indigo-darken-4{color:#1a237e!important}.text-indigo-accent-1{color:#8c9eff!important}.text-indigo-accent-2{color:#536dfe!important}.text-indigo-accent-3{color:#3d5afe!important}.text-indigo-accent-4{color:#304ffe!important}.text-blue{color:#2196f3!important}.text-blue-lighten-5{color:#e3f2fd!important}.text-blue-lighten-4{color:#bbdefb!important}.text-blue-lighten-3{color:#90caf9!important}.text-blue-lighten-2{color:#64b5f6!important}.text-blue-lighten-1{color:#42a5f5!important}.text-blue-darken-1{color:#1e88e5!important}.text-blue-darken-2{color:#1976d2!important}.text-blue-darken-3{color:#1565c0!important}.text-blue-darken-4{color:#0d47a1!important}.text-blue-accent-1{color:#82b1ff!important}.text-blue-accent-2{color:#448aff!important}.text-blue-accent-3{color:#2979ff!important}.text-blue-accent-4{color:#2962ff!important}.text-light-blue{color:#03a9f4!important}.text-light-blue-lighten-5{color:#e1f5fe!important}.text-light-blue-lighten-4{color:#b3e5fc!important}.text-light-blue-lighten-3{color:#81d4fa!important}.text-light-blue-lighten-2{color:#4fc3f7!important}.text-light-blue-lighten-1{color:#29b6f6!important}.text-light-blue-darken-1{color:#039be5!important}.text-light-blue-darken-2{color:#0288d1!important}.text-light-blue-darken-3{color:#0277bd!important}.text-light-blue-darken-4{color:#01579b!important}.text-light-blue-accent-1{color:#80d8ff!important}.text-light-blue-accent-2{color:#40c4ff!important}.text-light-blue-accent-3{color:#00b0ff!important}.text-light-blue-accent-4{color:#0091ea!important}.text-cyan{color:#00bcd4!important}.text-cyan-lighten-5{color:#e0f7fa!important}.text-cyan-lighten-4{color:#b2ebf2!important}.text-cyan-lighten-3{color:#80deea!important}.text-cyan-lighten-2{color:#4dd0e1!important}.text-cyan-lighten-1{color:#26c6da!important}.text-cyan-darken-1{color:#00acc1!important}.text-cyan-darken-2{color:#0097a7!important}.text-cyan-darken-3{color:#00838f!important}.text-cyan-darken-4{color:#006064!important}.text-cyan-accent-1{color:#84ffff!important}.text-cyan-accent-2{color:#18ffff!important}.text-cyan-accent-3{color:#00e5ff!important}.text-cyan-accent-4{color:#00b8d4!important}.text-teal{color:#009688!important}.text-teal-lighten-5{color:#e0f2f1!important}.text-teal-lighten-4{color:#b2dfdb!important}.text-teal-lighten-3{color:#80cbc4!important}.text-teal-lighten-2{color:#4db6ac!important}.text-teal-lighten-1{color:#26a69a!important}.text-teal-darken-1{color:#00897b!important}.text-teal-darken-2{color:#00796b!important}.text-teal-darken-3{color:#00695c!important}.text-teal-darken-4{color:#004d40!important}.text-teal-accent-1{color:#a7ffeb!important}.text-teal-accent-2{color:#64ffda!important}.text-teal-accent-3{color:#1de9b6!important}.text-teal-accent-4{color:#00bfa5!important}.text-green{color:#4caf50!important}.text-green-lighten-5{color:#e8f5e9!important}.text-green-lighten-4{color:#c8e6c9!important}.text-green-lighten-3{color:#a5d6a7!important}.text-green-lighten-2{color:#81c784!important}.text-green-lighten-1{color:#66bb6a!important}.text-green-darken-1{color:#43a047!important}.text-green-darken-2{color:#388e3c!important}.text-green-darken-3{color:#2e7d32!important}.text-green-darken-4{color:#1b5e20!important}.text-green-accent-1{color:#b9f6ca!important}.text-green-accent-2{color:#69f0ae!important}.text-green-accent-3{color:#00e676!important}.text-green-accent-4{color:#00c853!important}.text-light-green{color:#8bc34a!important}.text-light-green-lighten-5{color:#f1f8e9!important}.text-light-green-lighten-4{color:#dcedc8!important}.text-light-green-lighten-3{color:#c5e1a5!important}.text-light-green-lighten-2{color:#aed581!important}.text-light-green-lighten-1{color:#9ccc65!important}.text-light-green-darken-1{color:#7cb342!important}.text-light-green-darken-2{color:#689f38!important}.text-light-green-darken-3{color:#558b2f!important}.text-light-green-darken-4{color:#33691e!important}.text-light-green-accent-1{color:#ccff90!important}.text-light-green-accent-2{color:#b2ff59!important}.text-light-green-accent-3{color:#76ff03!important}.text-light-green-accent-4{color:#64dd17!important}.text-lime{color:#cddc39!important}.text-lime-lighten-5{color:#f9fbe7!important}.text-lime-lighten-4{color:#f0f4c3!important}.text-lime-lighten-3{color:#e6ee9c!important}.text-lime-lighten-2{color:#dce775!important}.text-lime-lighten-1{color:#d4e157!important}.text-lime-darken-1{color:#c0ca33!important}.text-lime-darken-2{color:#afb42b!important}.text-lime-darken-3{color:#9e9d24!important}.text-lime-darken-4{color:#827717!important}.text-lime-accent-1{color:#f4ff81!important}.text-lime-accent-2{color:#eeff41!important}.text-lime-accent-3{color:#c6ff00!important}.text-lime-accent-4{color:#aeea00!important}.text-yellow{color:#ffeb3b!important}.text-yellow-lighten-5{color:#fffde7!important}.text-yellow-lighten-4{color:#fff9c4!important}.text-yellow-lighten-3{color:#fff59d!important}.text-yellow-lighten-2{color:#fff176!important}.text-yellow-lighten-1{color:#ffee58!important}.text-yellow-darken-1{color:#fdd835!important}.text-yellow-darken-2{color:#fbc02d!important}.text-yellow-darken-3{color:#f9a825!important}.text-yellow-darken-4{color:#f57f17!important}.text-yellow-accent-1{color:#ffff8d!important}.text-yellow-accent-2{color:#ff0!important}.text-yellow-accent-3{color:#ffea00!important}.text-yellow-accent-4{color:#ffd600!important}.text-amber{color:#ffc107!important}.text-amber-lighten-5{color:#fff8e1!important}.text-amber-lighten-4{color:#ffecb3!important}.text-amber-lighten-3{color:#ffe082!important}.text-amber-lighten-2{color:#ffd54f!important}.text-amber-lighten-1{color:#ffca28!important}.text-amber-darken-1{color:#ffb300!important}.text-amber-darken-2{color:#ffa000!important}.text-amber-darken-3{color:#ff8f00!important}.text-amber-darken-4{color:#ff6f00!important}.text-amber-accent-1{color:#ffe57f!important}.text-amber-accent-2{color:#ffd740!important}.text-amber-accent-3{color:#ffc400!important}.text-amber-accent-4{color:#ffab00!important}.text-orange{color:#ff9800!important}.text-orange-lighten-5{color:#fff3e0!important}.text-orange-lighten-4{color:#ffe0b2!important}.text-orange-lighten-3{color:#ffcc80!important}.text-orange-lighten-2{color:#ffb74d!important}.text-orange-lighten-1{color:#ffa726!important}.text-orange-darken-1{color:#fb8c00!important}.text-orange-darken-2{color:#f57c00!important}.text-orange-darken-3{color:#ef6c00!important}.text-orange-darken-4{color:#e65100!important}.text-orange-accent-1{color:#ffd180!important}.text-orange-accent-2{color:#ffab40!important}.text-orange-accent-3{color:#ff9100!important}.text-orange-accent-4{color:#ff6d00!important}.text-deep-orange{color:#ff5722!important}.text-deep-orange-lighten-5{color:#fbe9e7!important}.text-deep-orange-lighten-4{color:#ffccbc!important}.text-deep-orange-lighten-3{color:#ffab91!important}.text-deep-orange-lighten-2{color:#ff8a65!important}.text-deep-orange-lighten-1{color:#ff7043!important}.text-deep-orange-darken-1{color:#f4511e!important}.text-deep-orange-darken-2{color:#e64a19!important}.text-deep-orange-darken-3{color:#d84315!important}.text-deep-orange-darken-4{color:#bf360c!important}.text-deep-orange-accent-1{color:#ff9e80!important}.text-deep-orange-accent-2{color:#ff6e40!important}.text-deep-orange-accent-3{color:#ff3d00!important}.text-deep-orange-accent-4{color:#dd2c00!important}.text-brown{color:#795548!important}.text-brown-lighten-5{color:#efebe9!important}.text-brown-lighten-4{color:#d7ccc8!important}.text-brown-lighten-3{color:#bcaaa4!important}.text-brown-lighten-2{color:#a1887f!important}.text-brown-lighten-1{color:#8d6e63!important}.text-brown-darken-1{color:#6d4c41!important}.text-brown-darken-2{color:#5d4037!important}.text-brown-darken-3{color:#4e342e!important}.text-brown-darken-4{color:#3e2723!important}.text-blue-grey{color:#607d8b!important}.text-blue-grey-lighten-5{color:#eceff1!important}.text-blue-grey-lighten-4{color:#cfd8dc!important}.text-blue-grey-lighten-3{color:#b0bec5!important}.text-blue-grey-lighten-2{color:#90a4ae!important}.text-blue-grey-lighten-1{color:#78909c!important}.text-blue-grey-darken-1{color:#546e7a!important}.text-blue-grey-darken-2{color:#455a64!important}.text-blue-grey-darken-3{color:#37474f!important}.text-blue-grey-darken-4{color:#263238!important}.text-grey{color:#9e9e9e!important}.text-grey-lighten-5{color:#fafafa!important}.text-grey-lighten-4{color:#f5f5f5!important}.text-grey-lighten-3{color:#eee!important}.text-grey-lighten-2{color:#e0e0e0!important}.text-grey-lighten-1{color:#bdbdbd!important}.text-grey-darken-1{color:#757575!important}.text-grey-darken-2{color:#616161!important}.text-grey-darken-3{color:#424242!important}.text-grey-darken-4{color:#212121!important}.text-shades-black{color:#000!important}.text-shades-white{color:#fff!important}.text-shades-transparent{color:transparent!important}/*! +.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-toolbar{align-items:flex-start;display:flex;flex:none;flex-direction:column;justify-content:space-between;max-width:100%;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom,box-shadow;width:100%;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:0;background:rgb(var(--v-theme-on-surface-variant));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-toolbar--border{border-width:thin;box-shadow:none}.v-toolbar--absolute{position:absolute}.v-toolbar--collapse{max-width:112px;overflow:hidden}.v-toolbar--collapse .v-toolbar-title{display:none}.v-locale--is-ltr.v-toolbar--collapse,.v-locale--is-ltr .v-toolbar--collapse{border-bottom-right-radius:24px}.v-locale--is-rtl.v-toolbar--collapse,.v-locale--is-rtl .v-toolbar--collapse{border-bottom-left-radius:24px}.v-toolbar--flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-toolbar--floating{display:inline-flex}.v-toolbar--rounded{border-radius:4px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;flex:0 0 auto;position:relative;transition:inherit;width:100%}.v-toolbar__content>.v-btn:first-child{margin-inline-start:10px}.v-toolbar__content>.v-btn:last-child{margin-inline-end:10px}.v-toolbar__content>.v-toolbar-title{margin-inline-start:16px}.v-toolbar--density-prominent .v-toolbar__content{align-items:flex-start}.v-toolbar__image{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;opacity:var(--v-toolbar-image-opacity, 1);transition-property:opacity}.v-toolbar__prepend,.v-toolbar__append{align-items:center;align-self:stretch;display:flex}.v-toolbar__prepend{margin-inline-start:10px;margin-inline-end:auto}.v-toolbar__append{margin-inline-start:auto;margin-inline-end:10px}.v-toolbar-title{flex:1 1;min-width:0;font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.75rem;text-transform:none}.v-toolbar--density-prominent .v-toolbar-title{align-self:flex-end;padding-bottom:6px;font-size:1.5rem;font-weight:400;letter-spacing:0;line-height:2.25rem;text-transform:none}.v-toolbar-title__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar-items{display:flex;height:inherit;align-self:stretch}.v-toolbar-items>.v-btn{border-radius:0}.v-img{--v-theme-overlay-multiplier: 3;z-index:0}.v-img--booting .v-responsive__sizer{transition:none}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%}.v-img__img--preload{filter:blur(4px)}.v-img__img--contain{object-fit:contain}.v-img__img--cover{object-fit:cover}.v-img__gradient{background-repeat:no-repeat}.v-responsive{display:flex;flex:1 0 auto;max-height:100%;max-width:100%;overflow:hidden;position:relative}.v-responsive--inline{display:inline-flex;flex:0 0 auto}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-responsive__sizer~.v-responsive__content{margin-inline-start:-100%}.v-responsive__sizer{flex:1 0 0px;transition:padding-bottom .2s cubic-bezier(.4,0,.2,1);pointer-events:none}.v-btn{align-items:center;border-radius:4px;display:inline-grid;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;font-weight:500;justify-content:center;letter-spacing:.0892857143em;line-height:normal;max-width:100%;outline:none;position:relative;text-decoration:none;text-indent:.0892857143em;text-transform:uppercase;transition-property:box-shadow,transform,opacity,background;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;vertical-align:middle;flex-shrink:0;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 20px;font-size:var(--v-btn-size);min-width:36px;padding:0 8px}.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 28px;font-size:var(--v-btn-size);min-width:50px;padding:0 12px}.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 36px;font-size:var(--v-btn-size);min-width:64px;padding:0 16px}.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 44px;font-size:var(--v-btn-size);min-width:78px;padding:0 20px}.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 52px;font-size:var(--v-btn-size);min-width:92px;padding:0 24px}.v-btn.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -8px)}.v-btn.v-btn--density-compact{height:calc(var(--v-btn-height) + -12px)}.v-btn--border{border-width:thin;box-shadow:none}.v-btn--absolute{position:absolute}.v-btn--fixed{position:fixed}.v-btn:hover>.v-btn__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-btn:focus-visible>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn:focus>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-btn--active>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn--active:hover>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn--active:focus-visible>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn--active:focus>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn--variant-plain,.v-btn--variant-outlined,.v-btn--variant-text,.v-btn--variant-tonal{background:transparent;color:inherit}.v-btn--variant-plain{opacity:.62}.v-btn--variant-plain:focus,.v-btn--variant-plain:hover{opacity:1}.v-btn--variant-plain .v-btn__overlay{display:none}.v-btn--variant-elevated,.v-btn--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn--variant-elevated{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-outlined{border:thin solid currentColor}.v-btn--variant-text .v-btn__overlay{background:currentColor}.v-btn--variant-tonal .v-btn__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}@supports selector(:focus-visible){.v-btn:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn:focus-visible:after{opacity:calc(.25 * var(--v-theme-overlay-multiplier))}}.v-btn--icon{border-radius:50%;min-width:0;padding:0}.v-btn--icon.v-btn--size-default{--v-btn-size: 1rem}.v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 12px)}.v-btn--icon.v-btn--density-comfortable{width:calc(var(--v-btn-height) + 0px);height:calc(var(--v-btn-height) + 0px)}.v-btn--icon.v-btn--density-compact{width:calc(var(--v-btn-height) + -8px);height:calc(var(--v-btn-height) + -8px)}.v-btn--elevated:hover,.v-btn--elevated:focus{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--elevated:active{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--flat{box-shadow:none}.v-btn--block{display:flex;flex:1 0 auto;min-width:100%}.v-btn--disabled{pointer-events:none;opacity:.26}.v-btn--disabled:hover{opacity:.26}.v-btn--disabled.v-btn--variant-elevated,.v-btn--disabled.v-btn--variant-flat{box-shadow:none;opacity:1;color:rgba(var(--v-theme-on-surface),.26);background:rgb(var(--v-theme-surface))}.v-btn--disabled.v-btn--variant-elevated .v-btn__overlay,.v-btn--disabled.v-btn--variant-flat .v-btn__overlay{opacity:.4615384615}.v-btn--loading{pointer-events:none}.v-btn--loading .v-btn__content,.v-btn--loading .v-btn__prepend,.v-btn--loading .v-btn__append{opacity:0}.v-btn--stacked{grid-template-areas:"prepend" "content" "append";grid-template-columns:auto;grid-template-rows:max-content max-content max-content;justify-items:center;align-content:center}.v-btn--stacked .v-btn__content{flex-direction:column;line-height:1.25}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--start,.v-btn--stacked .v-btn__content>.v-icon--end{margin-inline-start:0;margin-inline-end:0}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__content>.v-icon--start{margin-bottom:4px}.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--end{margin-top:4px}.v-btn--stacked.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 56px;font-size:var(--v-btn-size);min-width:56px;padding:0 12px}.v-btn--stacked.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 64px;font-size:var(--v-btn-size);min-width:64px;padding:0 14px}.v-btn--stacked.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 72px;font-size:var(--v-btn-size);min-width:72px;padding:0 16px}.v-btn--stacked.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 80px;font-size:var(--v-btn-size);min-width:80px;padding:0 18px}.v-btn--stacked.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 88px;font-size:var(--v-btn-size);min-width:88px;padding:0 20px}.v-btn--stacked.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn--stacked.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -16px)}.v-btn--stacked.v-btn--density-compact{height:calc(var(--v-btn-height) + -24px)}.v-btn--rounded{border-radius:24px}.v-btn--rounded.v-btn--icon{border-radius:4px}.v-btn .v-icon{--v-icon-size-multiplier: .8571428571}.v-btn--icon .v-icon{--v-icon-size-multiplier: 1}.v-btn--stacked .v-icon{--v-icon-size-multiplier: 1.1428571429}.v-btn__loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-btn__content,.v-btn__prepend,.v-btn__append{align-items:center;display:flex;transition:transform,opacity .2s cubic-bezier(.4,0,.2,1)}.v-btn__prepend{grid-area:prepend;margin-inline-start:calc(var(--v-btn-height) / -9);margin-inline-end:calc(var(--v-btn-height) / 4.5)}.v-btn__append{grid-area:append;margin-inline-start:calc(var(--v-btn-height) / 4.5);margin-inline-end:calc(var(--v-btn-height) / -9)}.v-btn__content{grid-area:content;justify-content:center;white-space:nowrap}.v-btn__content>.v-icon--start{margin-inline-start:calc(var(--v-btn-height) / -9);margin-inline-end:calc(var(--v-btn-height) / 4.5)}.v-btn__content>.v-icon--end{margin-inline-start:calc(var(--v-btn-height) / 4.5);margin-inline-end:calc(var(--v-btn-height) / -9)}.v-btn--stacked .v-btn__content{white-space:normal}.v-btn__overlay{background-color:currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn__overlay,.v-btn__underlay{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.v-card-actions .v-btn{padding:0 8px}.v-card-actions .v-btn~.v-btn:not(.v-btn-toggle .v-btn){margin-inline-start:.5rem}.v-banner-actions .v-btn{padding:0 8px}.v-pagination .v-btn{border-radius:4px}.v-btn__overlay{transition:none}.v-pagination__item--is-active .v-btn__overlay{opacity:var(--v-border-opacity)}.v-snackbar-actions .v-btn{padding:0 8px}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled)>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn-group{display:inline-flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow:hidden;vertical-align:middle;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px;background:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn-group--border{border-width:thin;box-shadow:none}.v-btn-group--density-default.v-btn-group{height:48px}.v-btn-group--density-comfortable.v-btn-group{height:40px}.v-btn-group--density-compact.v-btn-group{height:36px}.v-btn-group .v-btn{border-radius:0;border-color:inherit}.v-btn-group .v-btn:not(:last-child){border-inline-end:none}.v-btn-group .v-btn:not(:first-child){border-inline-start:none}.v-btn-group .v-btn:first-child{border-start-start-radius:inherit;border-end-start-radius:inherit}.v-btn-group .v-btn:last-child{border-start-end-radius:inherit;border-end-end-radius:inherit}.v-btn-group--divided .v-btn:not(:last-child){border-inline-end-width:thin;border-inline-end-style:solid;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-btn-group--tile{border-radius:0}.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}.v-progress-circular{align-items:center;display:inline-flex;justify-content:center;position:relative;vertical-align:middle}.v-progress-circular>svg{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:0}.v-progress-circular__content{align-items:center;display:flex;justify-content:center}.v-progress-circular__underlay{color:rgba(var(--v-border-color),var(--v-border-opacity));stroke:currentColor;z-index:1}.v-progress-circular__overlay{stroke:currentColor;transition:all .2s ease-in-out,stroke-width 0s;z-index:2}.v-progress-circular--size-x-small{height:16px;width:16px}.v-progress-circular--size-small{height:24px;width:24px}.v-progress-circular--size-default{height:32px;width:32px}.v-progress-circular--size-large{height:48px;width:48px}.v-progress-circular--size-x-large{height:64px;width:64px}.v-progress-circular--indeterminate>svg{animation:progress-circular-rotate 1.4s linear infinite;transform-origin:center center;transition:all .2s ease-in-out}.v-progress-circular--indeterminate .v-progress-circular__overlay{animation:progress-circular-dash 1.4s ease-in-out infinite,progress-circular-rotate 1.4s linear infinite;stroke-dasharray:25,200;stroke-dashoffset:0;stroke-linecap:round;transform-origin:center center;transform:rotate(-90deg)}.v-progress-circular--disable-shrink>svg{animation-duration:.7s}.v-progress-circular--disable-shrink .v-progress-circular__overlay{animation:none}.v-progress-circular--indeterminate:not(.v-progress-circular--visible)>svg,.v-progress-circular--indeterminate:not(.v-progress-circular--visible) .v-progress-circular__overlay{animation-play-state:paused!important}@keyframes progress-circular-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-rotate{to{transform:rotate(270deg)}}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);width:100%}.v-progress-linear__background{background:currentColor;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;top:0;transition-property:width,left,right;transition:inherit}.v-progress-linear__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%}.v-progress-linear__determinate,.v-progress-linear__indeterminate{background:currentColor}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear__indeterminate .long,.v-progress-linear__indeterminate .short{animation-play-state:paused;animation-duration:2.2s;animation-iteration-count:infinite;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto;will-change:left,right}.v-progress-linear__indeterminate .long{animation-name:indeterminate-ltr}.v-progress-linear__indeterminate .short{animation-name:indeterminate-short-ltr}.v-progress-linear__stream{animation:stream .25s infinite linear;animation-play-state:paused;bottom:0;left:auto;opacity:.3;pointer-events:none;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear--reverse .v-progress-linear__background,.v-progress-linear--reverse .v-progress-linear__determinate,.v-progress-linear--reverse .v-progress-linear__content,.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate .long{animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate .short{animation-name:indeterminate-short-rtl}.v-progress-linear--reverse .v-progress-linear__stream{right:auto}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--rounded{border-radius:9999px}.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__indeterminate{border-radius:inherit}.v-progress-linear--striped .v-progress-linear__determinate{animation:progress-linear-stripes 1s infinite linear;background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-repeat:repeat;background-size:var(--v-progress-linear-height)}.v-progress-linear--active .v-progress-linear__indeterminate .long,.v-progress-linear--active .v-progress-linear__indeterminate .short,.v-progress-linear--active .v-progress-linear__stream{animation-play-state:running}.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded-bar .v-progress-linear__indeterminate,.v-progress-linear--rounded-bar .v-progress-linear__stream+.v-progress-linear__background{border-radius:9999px}.v-locale--is-ltr.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-locale--is-ltr .v-progress-linear--rounded-bar .v-progress-linear__determinate{border-top-left-radius:0;border-bottom-left-radius:0}.v-locale--is-rtl.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-locale--is-rtl .v-progress-linear--rounded-bar .v-progress-linear__determinate{border-top-right-radius:0;border-bottom-right-radius:0}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes stream{to{transform:translate(var(--v-progress-linear-stream-to))}}@keyframes progress-linear-stripes{0%{background-position-x:var(--v-progress-linear-height)}}.v-ripple__container{color:inherit;border-radius:inherit;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;z-index:0;pointer-events:none;contain:strict}.v-ripple__animation{color:inherit;position:absolute;top:0;left:0;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;overflow:hidden;will-change:transform,opacity}.v-ripple__animation--enter{transition:none;opacity:0}.v-ripple__animation--in{transition:transform .25s cubic-bezier(0,0,.2,1),opacity .1s cubic-bezier(0,0,.2,1);opacity:calc(.25 * var(--v-theme-overlay-multiplier))}.v-ripple__animation--out{transition:opacity .3s cubic-bezier(0,0,.2,1);opacity:0}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{align-self:flex-start;flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-on-surface-variant))}.v-autocomplete__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:90%}.v-autocomplete__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single.v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline-start:inherit;padding-inline-end:inherit}.v-autocomplete--single .v-field--variant-outlined input{top:50%;transform:translateY(calc(-50% - (var(--v-input-chips-margin-top) + var(--v-input-chips-margin-bottom)) / 2))}.v-autocomplete--single .v-field--active input{transition:none}.v-autocomplete--single .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error .v-label,.v-selection-control--disabled .v-label{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-label{align-items:center;color:inherit;display:inline-flex;font-size:1rem;letter-spacing:.009375em;min-width:0;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-label--clickable{cursor:pointer}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap}.v-input{display:grid;flex:1 1 auto;font-size:1rem;font-weight:400;line-height:1.5;--v-input-chips-margin-top: 2px}.v-input--disabled{pointer-events:none}.v-input--density-default{--v-input-control-height: 56px;--v-input-padding-top: 15px}.v-input--density-comfortable{--v-input-control-height: 48px;--v-input-padding-top: 11px}.v-input--density-compact{--v-input-control-height: 40px;--v-input-padding-top: 7px}.v-input--density-default{--v-input-chips-margin-bottom: 0px}.v-input--density-comfortable{--v-input-chips-margin-bottom: 2px}.v-input--density-compact{--v-input-chips-margin-bottom: 4px}.v-input--vertical{grid-template-areas:"append" "control" "prepend";grid-template-rows:max-content auto max-content;grid-template-columns:min-content}.v-input--vertical .v-input__prepend{margin-block-start:16px}.v-input--vertical .v-input__append{margin-block-end:16px}.v-input--horizontal{grid-template-areas:"prepend control append" "a messages b";grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-rows:auto auto}.v-input--horizontal .v-input__prepend{margin-inline-end:16px}.v-input--horizontal .v-input__append{margin-inline-start:16px}.v-input__details{align-items:flex-end;display:flex;font-size:.75rem;font-weight:400;grid-area:messages;letter-spacing:.0333333333em;line-height:normal;min-height:22px;padding-top:6px;overflow:hidden;justify-content:space-between}.v-input__details>.v-icon,.v-input__prepend>.v-icon,.v-input__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-input--disabled .v-input__details>.v-icon,.v-input--disabled .v-input__details .v-messages,.v-input--error .v-input__details>.v-icon,.v-input--error .v-input__details .v-messages,.v-input--disabled .v-input__prepend>.v-icon,.v-input--disabled .v-input__prepend .v-messages,.v-input--error .v-input__prepend>.v-icon,.v-input--error .v-input__prepend .v-messages,.v-input--disabled .v-input__append>.v-icon,.v-input--disabled .v-input__append .v-messages,.v-input--error .v-input__append>.v-icon,.v-input--error .v-input__append .v-messages{opacity:1}.v-input--disabled .v-input__details,.v-input--disabled .v-input__prepend,.v-input--disabled .v-input__append{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-input__details>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__details .v-messages,.v-input--error:not(.v-input--disabled) .v-input__prepend>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__prepend .v-messages,.v-input--error:not(.v-input--disabled) .v-input__append>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__append .v-messages{color:rgb(var(--v-theme-error))}.v-input__prepend,.v-input__append{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top)}.v-input--center-affix .v-input__prepend,.v-input--center-affix .v-input__append{align-items:center;padding-top:0}.v-input__prepend{grid-area:prepend}.v-input__append{grid-area:append}.v-input__control{display:flex;grid-area:control}.v-messages{flex:1 1 auto;font-size:12px;min-height:14px;min-width:1px;opacity:var(--v-medium-emphasis-opacity);position:relative}.v-messages__message{line-height:12px;word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;transition-duration:.15s}.v-chip{align-items:center;cursor:default;display:inline-flex;font-weight:400;max-width:100%;min-width:0;overflow:hidden;position:relative;text-decoration:none;white-space:nowrap;vertical-align:middle;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;border-radius:9999px}.v-chip.v-chip--size-x-small{--v-chip-size: .625rem;--v-chip-height: 18px;font-size:.625rem;padding:0 7px}.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 12px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 18px}.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-4.9px;margin-inline-end:3.5px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-7px}.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-start:3.5px;margin-inline-end:-4.9px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-end:-7px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close{margin-inline-start:10.5px}.v-chip.v-chip--size-x-small .v-icon--start,.v-chip.v-chip--size-x-small .v-chip__filter{margin-inline-start:-3.5px;margin-inline-end:3.5px}.v-chip.v-chip--size-x-small .v-icon--end,.v-chip.v-chip--size-x-small .v-chip__close{margin-inline-start:3.5px;margin-inline-end:-3.5px}.v-chip.v-chip--size-x-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-chip__append+.v-chip__close{margin-inline-start:7px}.v-chip.v-chip--size-small{--v-chip-size: .75rem;--v-chip-height: 24px;font-size:.75rem;padding:0 9px}.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 18px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 24px}.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-6.3px;margin-inline-end:4.5px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-9px}.v-chip.v-chip--size-small .v-avatar--end{margin-inline-start:4.5px;margin-inline-end:-6.3px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end{margin-inline-end:-9px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close{margin-inline-start:13.5px}.v-chip.v-chip--size-small .v-icon--start,.v-chip.v-chip--size-small .v-chip__filter{margin-inline-start:-4.5px;margin-inline-end:4.5px}.v-chip.v-chip--size-small .v-icon--end,.v-chip.v-chip--size-small .v-chip__close{margin-inline-start:4.5px;margin-inline-end:-4.5px}.v-chip.v-chip--size-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-small .v-chip__append+.v-chip__close{margin-inline-start:9px}.v-chip.v-chip--size-default{--v-chip-size: .875rem;--v-chip-height: 30px;font-size:.875rem;padding:0 11px}.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 24px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 30px}.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-7.7px;margin-inline-end:5.5px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-11px}.v-chip.v-chip--size-default .v-avatar--end{margin-inline-start:5.5px;margin-inline-end:-7.7px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end{margin-inline-end:-11px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close{margin-inline-start:16.5px}.v-chip.v-chip--size-default .v-icon--start,.v-chip.v-chip--size-default .v-chip__filter{margin-inline-start:-5.5px;margin-inline-end:5.5px}.v-chip.v-chip--size-default .v-icon--end,.v-chip.v-chip--size-default .v-chip__close{margin-inline-start:5.5px;margin-inline-end:-5.5px}.v-chip.v-chip--size-default .v-icon--end+.v-chip__close,.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-default .v-chip__append+.v-chip__close{margin-inline-start:11px}.v-chip.v-chip--size-large{--v-chip-size: 1rem;--v-chip-height: 36px;font-size:1rem;padding:0 14px}.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 30px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 36px}.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-9.8px;margin-inline-end:7px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-14px}.v-chip.v-chip--size-large .v-avatar--end{margin-inline-start:7px;margin-inline-end:-9.8px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end{margin-inline-end:-14px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close{margin-inline-start:21px}.v-chip.v-chip--size-large .v-icon--start,.v-chip.v-chip--size-large .v-chip__filter{margin-inline-start:-7px;margin-inline-end:7px}.v-chip.v-chip--size-large .v-icon--end,.v-chip.v-chip--size-large .v-chip__close{margin-inline-start:7px;margin-inline-end:-7px}.v-chip.v-chip--size-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-large .v-chip__append+.v-chip__close{margin-inline-start:14px}.v-chip.v-chip--size-x-large{--v-chip-size: 1.125rem;--v-chip-height: 42px;font-size:1.125rem;padding:0 16px}.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 36px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 42px}.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-11.2px;margin-inline-end:8px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-16px}.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-start:8px;margin-inline-end:-11.2px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-end:-16px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close{margin-inline-start:24px}.v-chip.v-chip--size-x-large .v-icon--start,.v-chip.v-chip--size-x-large .v-chip__filter{margin-inline-start:-8px;margin-inline-end:8px}.v-chip.v-chip--size-x-large .v-icon--end,.v-chip.v-chip--size-x-large .v-chip__close{margin-inline-start:8px;margin-inline-end:-8px}.v-chip.v-chip--size-x-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-chip__append+.v-chip__close{margin-inline-start:16px}.v-chip.v-chip--density-default{height:calc(var(--v-chip-height) + 0px)}.v-chip.v-chip--density-comfortable{height:calc(var(--v-chip-height) + -8px)}.v-chip.v-chip--density-compact{height:calc(var(--v-chip-height) + -12px)}.v-chip:hover>.v-chip__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-chip:focus-visible>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip:focus>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-chip--active>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]>.v-chip__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-chip--active:hover>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:hover>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-chip--active:focus-visible>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip--active:focus>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-chip--variant-plain,.v-chip--variant-outlined,.v-chip--variant-text,.v-chip--variant-tonal{background:transparent;color:inherit}.v-chip--variant-plain{opacity:.26}.v-chip--variant-plain:focus,.v-chip--variant-plain:hover{opacity:1}.v-chip--variant-plain .v-chip__overlay{display:none}.v-chip--variant-elevated,.v-chip--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-chip--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-outlined{border:thin solid currentColor}.v-chip--variant-text .v-chip__overlay{background:currentColor}.v-chip--variant-tonal .v-chip__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-chip--border{border-width:thin}.v-chip--link{cursor:pointer}.v-chip--filter{-webkit-user-select:none;user-select:none}.v-chip__content{align-items:center;display:inline-flex}.v-autocomplete__selection .v-chip__content,.v-combobox__selection .v-chip__content,.v-select__selection .v-chip__content{overflow:hidden}.v-chip__filter,.v-chip__prepend,.v-chip__append,.v-chip__close{align-items:center;display:inline-flex}.v-chip__close{cursor:pointer;flex:0 1 auto;font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;user-select:none}.v-chip__close .v-icon{font-size:inherit}.v-chip__filter{transition:.15s cubic-bezier(.4,0,.2,1)}.v-chip__overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:currentColor;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-chip--disabled{opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none}.v-chip--label{border-radius:4px}.v-avatar{flex:none;align-items:center;display:inline-flex;justify-content:center;line-height:normal;overflow:hidden;position:relative;text-align:center;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:width,height;vertical-align:middle;border-radius:50%}.v-avatar.v-avatar--size-x-small{--v-avatar-height: 24px}.v-avatar.v-avatar--size-small{--v-avatar-height: 32px}.v-avatar.v-avatar--size-default{--v-avatar-height: 40px}.v-avatar.v-avatar--size-large{--v-avatar-height: 48px}.v-avatar.v-avatar--size-x-large{--v-avatar-height: 56px}.v-avatar.v-avatar--density-default{height:calc(var(--v-avatar-height) + 0px);width:calc(var(--v-avatar-height) + 0px)}.v-avatar.v-avatar--density-comfortable{height:calc(var(--v-avatar-height) + -4px);width:calc(var(--v-avatar-height) + -4px)}.v-avatar.v-avatar--density-compact{height:calc(var(--v-avatar-height) + -8px);width:calc(var(--v-avatar-height) + -8px)}.v-avatar--variant-plain,.v-avatar--variant-outlined,.v-avatar--variant-text,.v-avatar--variant-tonal{background:transparent;color:inherit}.v-avatar--variant-plain{opacity:.62}.v-avatar--variant-plain:focus,.v-avatar--variant-plain:hover{opacity:1}.v-avatar--variant-plain .v-avatar__overlay{display:none}.v-avatar--variant-elevated,.v-avatar--variant-flat{background:var(--v-theme-surface);color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-avatar--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-outlined{border:thin solid currentColor}.v-avatar--variant-text .v-avatar__overlay{background:currentColor}.v-avatar--variant-tonal .v-avatar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-avatar--rounded{border-radius:4px}.v-avatar .v-img{height:100%;width:100%}.v-chip-group{display:flex;max-width:100%;min-width:0;overflow-x:auto;padding:4px 0;flex-wrap:wrap}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip.v-chip--selected:not(.v-chip--disabled) .v-chip__overlay{opacity:var(--v-activated-opacity)}.v-chip-group--column{flex-wrap:wrap;white-space:normal}.v-list{overflow:auto;padding:8px 0;position:relative;outline:none;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:0;background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list--border{border-width:thin;box-shadow:none}.v-list--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-list--nav{padding-inline-start:8px;padding-inline-end:8px}.v-list--rounded{border-radius:4px}.v-list--subheader{padding-top:0}.v-list-img{border-radius:inherit;display:flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-list-subheader{align-items:center;background:inherit;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));display:flex;font-size:.875rem;font-weight:400;line-height:1.375rem;padding-inline-end:16px;min-height:40px;transition:.2s min-height cubic-bezier(.4,0,.2,1)}.v-list-subheader__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-list--density-default .v-list-subheader{min-height:40px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-comfortable .v-list-subheader{min-height:36px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-compact .v-list-subheader{min-height:32px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-subheader--inset{--indent-padding: 56px}.v-list--nav .v-list-subheader{font-size:.75rem}.v-list-subheader--sticky{background:inherit;left:0;position:sticky;top:0;z-index:1}.v-list__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content 1fr auto;outline:none;max-width:100%;padding:4px 16px;position:relative;text-decoration:none;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;border-radius:0}.v-list-item--border{border-width:thin;box-shadow:none}.v-list-item:hover>.v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item:focus-visible>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item:focus>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-list-item--active>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]>.v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--active:hover>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:hover>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-list-item--active:focus-visible>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item--active:focus>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-list-item--variant-plain,.v-list-item--variant-outlined,.v-list-item--variant-text,.v-list-item--variant-tonal{background:transparent;color:inherit}.v-list-item--variant-plain{opacity:.62}.v-list-item--variant-plain:focus,.v-list-item--variant-plain:hover{opacity:1}.v-list-item--variant-plain .v-list-item__overlay{display:none}.v-list-item--variant-elevated,.v-list-item--variant-flat{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list-item--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-outlined{border:thin solid currentColor}.v-list-item--variant-text .v-list-item__overlay{background:currentColor}.v-list-item--variant-tonal .v-list-item__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}@supports selector(:focus-visible){.v-list-item:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid currentColor;border-radius:4px;opacity:0;transition:opacity .2s ease-in-out}.v-list-item:focus-visible:after{opacity:calc(.15 * var(--v-theme-overlay-multiplier))}}.v-list-item__prepend>.v-badge .v-icon,.v-list-item__prepend>.v-icon,.v-list-item__append>.v-badge .v-icon,.v-list-item__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-list-item--active .v-list-item__prepend>.v-badge .v-icon,.v-list-item--active .v-list-item__prepend>.v-icon,.v-list-item--active .v-list-item__append>.v-badge .v-icon,.v-list-item--active .v-list-item__append>.v-icon{opacity:1}.v-list-item--rounded{border-radius:4px}.v-list-item--disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.6}.v-list-item--link{cursor:pointer}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item .v-avatar,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item .v-avatar{--v-avatar-height: 24px}.v-list-item__prepend{align-items:center;align-self:center;display:flex;grid-area:prepend}.v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item--three-line .v-list-item__prepend{align-self:start}.v-list-item__append{align-self:center;display:flex;align-items:center;grid-area:append;overflow:hidden}.v-list-item__append .v-list-item__spacer{order:-1;transition:.15s width cubic-bezier(.4,0,.2,1)}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item__append .v-list-item__spacer,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item__append .v-list-item__spacer{width:0}.v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item__append>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__append>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item--three-line .v-list-item__append{align-self:start}.v-list-item__content{align-self:center;grid-area:content;overflow:hidden}.v-list-item-action{align-self:center;display:flex;align-items:center;grid-area:prepend;flex:none;transition:inherit;transition-property:height,width}.v-list-item-action--start{margin-inline-end:12px}.v-list-item-action--end{margin-inline-start:12px}.v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-media--start{margin-inline-end:16px}.v-list-item-media--end{margin-inline-start:16px}.v-list-item--two-line .v-list-item-media{margin-top:-4px;margin-bottom:-4px}.v-list-item--three-line .v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-subtitle{-webkit-box-orient:vertical;display:-webkit-box;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;padding:0;text-overflow:ellipsis;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem;text-transform:none}.v-list-item--one-line .v-list-item-subtitle{-webkit-line-clamp:1}.v-list-item--two-line .v-list-item-subtitle{-webkit-line-clamp:2}.v-list-item--three-line .v-list-item-subtitle{-webkit-line-clamp:3}.v-list-item--nav .v-list-item-subtitle{font-size:.75rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem}.v-list-item-title{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:normal;overflow:hidden;padding:0;white-space:nowrap;text-overflow:ellipsis;word-break:normal;word-wrap:break-word;font-size:1rem;font-weight:400;letter-spacing:.009375em;line-height:1.5rem;text-transform:none}.v-list-item--nav .v-list-item-title{font-size:.8125rem;font-weight:500;letter-spacing:normal;line-height:1rem}.v-list-item--density-default{min-height:40px}.v-list-item--density-default.v-list-item--one-line{min-height:48px;padding-top:4px;padding-bottom:4px}.v-list-item--density-default.v-list-item--two-line{min-height:64px;padding-top:12px;padding-bottom:12px}.v-list-item--density-default.v-list-item--three-line{min-height:88px;padding-top:16px;padding-bottom:16px}.v-list-item--density-default.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-default.v-list-item--three-line .v-list-item__append{padding-top:8px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--one-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--two-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--three-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-comfortable{min-height:36px}.v-list-item--density-comfortable.v-list-item--one-line{min-height:44px}.v-list-item--density-comfortable.v-list-item--two-line{min-height:60px;padding-top:8px;padding-bottom:8px}.v-list-item--density-comfortable.v-list-item--three-line{min-height:84px;padding-top:12px;padding-bottom:12px}.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__append{padding-top:6px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--one-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--two-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--three-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-compact{min-height:32px}.v-list-item--density-compact.v-list-item--one-line{min-height:40px}.v-list-item--density-compact.v-list-item--two-line{min-height:56px;padding-top:4px;padding-bottom:4px}.v-list-item--density-compact.v-list-item--three-line{min-height:80px;padding-top:8px;padding-bottom:8px}.v-list-item--density-compact.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-compact.v-list-item--three-line .v-list-item__append{padding-top:4px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--one-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--two-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--three-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--nav{padding-inline-start:8px;padding-inline-end:8px}.v-list .v-list-item--nav:not(:only-child){margin-bottom:4px}.v-list-item__underlay{position:absolute}.v-list-item__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item--active.v-list-item--variant-elevated .v-list-item__overlay{--v-theme-overlay-multiplier: 0}.v-list{--indent-padding: 0px}.v-list--nav{--indent-padding: -8px}.v-list-group{--list-indent-size: 16px;--parent-padding: var(--indent-padding);--prepend-width: 40px}.v-list-group--fluid{--list-indent-size: 0px}.v-list-group--prepend{--parent-padding: calc(var(--indent-padding) + var(--prepend-width))}.v-list-group--fluid.v-list-group--prepend{--parent-padding: var(--indent-padding)}.v-list-group__items{--indent-padding: calc(var(--parent-padding) + var(--list-indent-size))}.v-list-group__items .v-list-item{padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-group__header.v-list-item--active:not(:focus-visible) .v-list-item__overlay{opacity:0}.v-list-group__header.v-list-item--active:hover .v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-divider{display:block;flex:1 1 100%;height:0px;max-height:0px;opacity:var(--v-border-opacity);transition:inherit;border-style:solid;border-width:thin 0 0 0}.v-divider--vertical{align-self:stretch;border-width:0 thin 0 0;display:inline-flex;height:inherit;margin-left:-1px;max-height:100%;max-width:0px;vertical-align:text-bottom;width:0px}.v-divider--inset:not(.v-divider--vertical){max-width:calc(100% - 72px);margin-inline-start:72px}.v-divider--inset.v-divider--vertical{margin-bottom:8px;margin-top:8px;max-height:calc(100% - 16px)}.v-menu>.v-overlay__content{display:flex;flex-direction:column;border-radius:4px}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{background:rgb(var(--v-theme-surface));border-radius:inherit;overflow:auto;height:100%;box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-overlay-container{contain:layout;left:0;pointer-events:none;position:absolute;top:0;display:contents}.v-overlay-scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-overlay-scroll-blocked:not(html){overflow-y:hidden!important}html.v-overlay-scroll-blocked{position:fixed;top:var(--v-body-scroll-y);left:var(--v-body-scroll-x);width:100%;height:100%}.v-overlay{border-radius:inherit;display:flex;left:0;pointer-events:none;position:fixed;top:0;bottom:0;right:0}.v-overlay__content{outline:none;position:absolute;pointer-events:auto;contain:layout}.v-overlay__scrim{pointer-events:auto;background:rgb(var(--v-theme-on-surface));border-radius:inherit;bottom:0;left:0;opacity:.32;position:fixed;right:0;top:0}.v-overlay--absolute,.v-overlay--contained .v-overlay__scrim{position:absolute}.v-overlay--scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-text-field input{color:inherit;opacity:0;flex:1;transition:.15s opacity cubic-bezier(.4,0,.2,1);min-width:0}.v-text-field input:focus,.v-text-field input:active{outline:none}.v-text-field input:invalid{box-shadow:none}.v-text-field .v-field{cursor:text}.v-text-field--prefixed.v-text-field .v-field__input{--v-field-padding-start: 6px}.v-text-field--suffixed.v-text-field .v-field__input{--v-field-padding-end: 0}.v-text-field .v-field__input input{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-text-field input.v-field__input{min-height:calc(max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom) + var(--v-input-chips-margin-bottom) + 2px) - var(--v-input-chips-margin-top) - var(--v-input-chips-margin-bottom));padding-top:calc(var(--v-input-chips-margin-top) + var(--v-field-input-padding-top));padding-bottom:calc(var(--v-input-chips-margin-bottom) + var(--v-field-input-padding-bottom))}.v-text-field .v-input__details{padding-inline-start:16px;padding-inline-end:16px}.v-text-field .v-field--no-label input,.v-text-field .v-field--active input{opacity:1}.v-text-field .v-field--single-line input{transition:none}.v-text-field__prefix,.v-text-field__suffix{align-items:center;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));cursor:default;display:flex;opacity:0;transition:inherit;white-space:nowrap;min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom) + var(--v-input-chips-margin-bottom) + 2px);padding-top:calc(var(--v-field-padding-top, 4px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 6px)}.v-text-field__prefix__text,.v-text-field__suffix__text{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-field--active .v-text-field__prefix,.v-field--active .v-text-field__suffix{opacity:1}.v-field--disabled .v-text-field__prefix,.v-field--disabled .v-text-field__suffix{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-text-field__prefix{padding-inline-start:var(--v-field-padding-start)}.v-text-field__suffix{padding-inline-end:var(--v-field-padding-end)}.v-text-field--plain-underlined{--v-field-padding-top--plain-underlined: 6px}.v-text-field--plain-underlined .v-input__details{padding:0}.v-text-field--plain-underlined .v-input__prepend,.v-text-field--plain-underlined .v-input__append{align-items:flex-start;padding-top:calc(var(--v-field-padding-top--plain-underlined) + var(--v-input-padding-top))}.v-counter{color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));flex:0 1 auto;font-size:12px;transition-duration:.15s}.v-field{display:grid;grid-template-areas:"prepend-inner field clear append-inner";grid-template-columns:min-content minmax(0,1fr) min-content min-content;font-size:16px;letter-spacing:.009375em;max-width:100%;border-radius:4px;contain:layout;flex:1 0;grid-area:control;position:relative;--v-field-padding-start: 16px;--v-field-padding-end: 16px;--v-field-padding-top: 10px;--v-field-padding-bottom: 5px;--v-field-input-padding-top: calc(var(--v-field-padding-top, 10px) + var(--v-input-padding-top, 0));--v-field-input-padding-bottom: var(--v-field-padding-bottom, 5px)}.v-field--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-field--prepended{padding-inline-start:12px}.v-field--appended{padding-inline-end:12px}.v-field--variant-solo,.v-field--variant-solo-filled,.v-field--variant-solo-inverted{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity));box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted.v-field--focused{color:rgb(var(--v-theme-on-surface-variant))}.v-field--variant-filled{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-input--density-default .v-field--variant-solo,.v-input--density-default .v-field--variant-solo-inverted,.v-input--density-default .v-field--variant-solo-filled,.v-input--density-default .v-field--variant-filled{--v-input-control-height: 56px;--v-field-padding-bottom: 5px}.v-input--density-comfortable .v-field--variant-solo,.v-input--density-comfortable .v-field--variant-solo-inverted,.v-input--density-comfortable .v-field--variant-solo-filled,.v-input--density-comfortable .v-field--variant-filled{--v-input-control-height: 48px;--v-field-padding-bottom: 1px}.v-input--density-compact .v-field--variant-solo,.v-input--density-compact .v-field--variant-solo-inverted,.v-input--density-compact .v-field--variant-solo-filled,.v-input--density-compact .v-field--variant-filled{--v-input-control-height: 40px;--v-field-padding-bottom: 0px}.v-field--variant-outlined,.v-field--single-line,.v-field--no-label{--v-field-padding-top: 0px}.v-input--density-default .v-field--variant-outlined,.v-input--density-default .v-field--single-line,.v-input--density-default .v-field--no-label{--v-field-padding-bottom: 15px}.v-input--density-comfortable .v-field--variant-outlined,.v-input--density-comfortable .v-field--single-line,.v-input--density-comfortable .v-field--no-label{--v-field-padding-bottom: 11px}.v-input--density-compact .v-field--variant-outlined,.v-input--density-compact .v-field--single-line,.v-input--density-compact .v-field--no-label{--v-field-padding-bottom: 7px}.v-field--variant-plain,.v-field--variant-underlined{border-radius:0;padding:0}.v-field--variant-plain.v-field,.v-field--variant-underlined.v-field{--v-field-padding-start: 0px;--v-field-padding-end: 0px;--v-field-padding-top: var(--v-field-padding-top--plain-underlined, 6px)}.v-input--density-default .v-field--variant-plain,.v-input--density-default .v-field--variant-underlined{--v-input-control-height: 48px;--v-field-padding-bottom: 5px}.v-input--density-comfortable .v-field--variant-plain,.v-input--density-comfortable .v-field--variant-underlined{--v-input-control-height: 40px;--v-field-padding-bottom: 1px}.v-input--density-compact .v-field--variant-plain,.v-input--density-compact .v-field--variant-underlined{--v-input-control-height: 32px;--v-field-padding-bottom: 0px}.v-field--flat{box-shadow:none}.v-field--rounded{border-radius:9999px}.v-field.v-field--prepended{--v-field-padding-start: 6px}.v-field.v-field--appended{--v-field-padding-end: 6px}.v-field__input{color:inherit;display:flex;flex-wrap:wrap;letter-spacing:.009375em;opacity:var(--v-high-emphasis-opacity);min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom) + var(--v-input-chips-margin-bottom) + 2px);min-width:0;padding-inline-start:var(--v-field-padding-start);padding-inline-end:var(--v-field-padding-end);padding-top:var(--v-field-input-padding-top);padding-bottom:var(--v-field-input-padding-bottom);position:relative;width:100%}.v-field__input input{letter-spacing:inherit}.v-field__input input::placeholder,input.v-field__input::placeholder,textarea.v-field__input::placeholder{color:currentColor;opacity:var(--v-disabled-opacity)}.v-field__input:focus,.v-field__input:active{outline:none}.v-field__input:invalid{box-shadow:none}.v-field__field{flex:1 0;grid-area:field;position:relative;align-items:flex-start;display:flex}.v-field__prepend-inner{grid-area:prepend-inner;padding-inline-end:var(--v-field-padding-after)}.v-field__clearable{grid-area:clear}.v-field__append-inner{grid-area:append-inner;padding-inline-start:var(--v-field-padding-after)}.v-field__append-inner,.v-field__clearable,.v-field__prepend-inner{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top, 10px)}.v-field--center-affix .v-field__append-inner,.v-field--center-affix .v-field__clearable,.v-field--center-affix .v-field__prepend-inner{align-items:center;padding-top:0}.v-field.v-field--variant-underlined .v-field__append-inner,.v-field.v-field--variant-underlined .v-field__clearable,.v-field.v-field--variant-underlined .v-field__prepend-inner,.v-field.v-field--variant-plain .v-field__append-inner,.v-field.v-field--variant-plain .v-field__clearable,.v-field.v-field--variant-plain .v-field__prepend-inner{align-items:flex-start;padding-top:calc(var(--v-field-padding-top, 10px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 5px)}.v-field--focused .v-field__prepend-inner,.v-field--focused .v-field__append-inner{opacity:1}.v-field__prepend-inner>.v-icon,.v-field__append-inner>.v-icon,.v-field__clearable>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-field--disabled .v-field__prepend-inner>.v-icon,.v-field--error .v-field__prepend-inner>.v-icon,.v-field--disabled .v-field__append-inner>.v-icon,.v-field--error .v-field__append-inner>.v-icon,.v-field--disabled .v-field__clearable>.v-icon,.v-field--error .v-field__clearable>.v-icon{opacity:1}.v-field--error:not(.v-field--disabled) .v-field__prepend-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__append-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__clearable>.v-icon{color:rgb(var(--v-theme-error))}.v-field__clearable{cursor:pointer;opacity:0;overflow:hidden;margin-inline-start:4px;margin-inline-end:4px;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,width}.v-field--focused .v-field__clearable,.v-field--persistent-clear .v-field__clearable{opacity:1}@media (hover: hover){.v-field:hover .v-field__clearable{opacity:1}}.v-label.v-field-label{contain:layout paint;margin-inline-start:var(--v-field-padding-start);margin-inline-end:var(--v-field-padding-end);max-width:calc(100% - var(--v-field-padding-start) - var(--v-field-padding-end));pointer-events:none;position:absolute;top:var(--v-input-padding-top);transform-origin:left center;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform;z-index:1}.v-field--variant-underlined .v-label.v-field-label,.v-field--variant-plain .v-label.v-field-label{top:calc(var(--v-input-padding-top) + var(--v-field-padding-top))}.v-field--center-affix .v-label.v-field-label{top:50%;transform:translateY(-50%)}.v-field--active .v-label.v-field-label{visibility:hidden}.v-field--focused .v-label.v-field-label,.v-field--error .v-label.v-field-label{opacity:1}.v-field--error:not(.v-field--disabled) .v-label.v-field-label{color:rgb(var(--v-theme-error))}.v-label.v-field-label--floating{--v-field-label-scale: .75em;font-size:var(--v-field-label-scale);visibility:hidden;max-width:100%}.v-field--center-affix .v-label.v-field-label--floating{transform:none}.v-field.v-field--active .v-label.v-field-label--floating{visibility:unset}.v-input--density-default .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-filled .v-label.v-field-label--floating{top:7px}.v-input--density-comfortable .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-filled .v-label.v-field-label--floating{top:5px}.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:3px}.v-field--variant-plain .v-label.v-field-label--floating,.v-field--variant-underlined .v-label.v-field-label--floating{transform:translateY(-16px);margin:0;top:var(--v-input-padding-top)}.v-field--variant-outlined .v-label.v-field-label--floating{transform:translateY(-50%);transform-origin:center;position:static;margin:0 4px}.v-field__outline{--v-field-border-width: 1px;--v-field-border-opacity: .38;align-items:stretch;contain:layout;display:flex;height:100%;left:0;pointer-events:none;position:absolute;right:0;width:100%}@media (hover: hover){.v-field:hover .v-field__outline{--v-field-border-opacity: var(--v-high-emphasis-opacity)}}.v-field--error:not(.v-field--disabled) .v-field__outline{color:rgb(var(--v-theme-error))}.v-field.v-field--focused .v-field__outline,.v-input.v-input--error .v-field__outline{--v-field-border-opacity: 1}.v-field--variant-outlined.v-field--focused .v-field__outline{--v-field-border-width: 2px}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{border-color:currentColor;border-style:solid;border-width:0 0 var(--v-field-border-width);opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1);content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{border-color:currentColor;border-style:solid;border-width:0 0 2px;transform:scaleX(0);transition:transform .15s cubic-bezier(.4,0,.2,1);content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--focused.v-field--variant-filled .v-field__outline:after,.v-field--focused.v-field--variant-underlined .v-field__outline:after{transform:scaleX(1)}.v-field--variant-outlined .v-field__outline{border-radius:inherit}.v-field--variant-outlined .v-field__outline__start,.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after,.v-field--variant-outlined .v-field__outline__end{border:0 solid currentColor;opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__start{flex:0 0 12px;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-start-width:var(--v-field-border-width)}.v-field--rounded.v-field--variant-outlined .v-field__outline__start,[class^=rounded-].v-field--variant-outlined .v-field__outline__start,[class*=" rounded-"].v-field--variant-outlined .v-field__outline__start{flex-basis:calc(var(--v-input-control-height) / 2 + 2px)}.v-locale--is-ltr.v-field--variant-outlined .v-field__outline__start,.v-locale--is-ltr .v-field--variant-outlined .v-field__outline__start{border-top-left-radius:inherit;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:inherit}.v-locale--is-rtl.v-field--variant-outlined .v-field__outline__start,.v-locale--is-rtl .v-field--variant-outlined .v-field__outline__start{border-top-left-radius:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:0}.v-field--variant-outlined .v-field__outline__notch{flex:none;position:relative}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1);content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-outlined .v-field__outline__notch:before{border-width:var(--v-field-border-width) 0 0}.v-field--variant-outlined .v-field__outline__notch:after{bottom:0;border-width:0 0 var(--v-field-border-width)}.v-field--active.v-field--variant-outlined .v-field__outline__notch:before{opacity:0}.v-field--variant-outlined .v-field__outline__end{flex:1;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-end-width:var(--v-field-border-width)}.v-locale--is-ltr.v-field--variant-outlined .v-field__outline__end,.v-locale--is-ltr .v-field--variant-outlined .v-field__outline__end{border-top-left-radius:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:0}.v-locale--is-rtl.v-field--variant-outlined .v-field__outline__end,.v-locale--is-rtl .v-field--variant-outlined .v-field__outline__end{border-top-left-radius:inherit;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:inherit}.v-field__loader{top:calc(100% - 2px);left:0;position:absolute;right:0;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden}.v-field--variant-outlined .v-field__loader{top:calc(100% - 3px)}.v-field__overlay{border-radius:inherit;pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}@media (hover: hover){.v-field--variant-solo-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-inverted .v-field__overlay{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-solo-inverted.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-solo-inverted:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-inverted.v-field--focused .v-field__overlay{background-color:rgb(var(--v-theme-surface-variant));opacity:1}.v-field--reverse .v-field__field,.v-field--reverse .v-field__input{flex-direction:row-reverse}.v-locale--is-ltr.v-field--reverse .v-field__input,.v-locale--is-ltr.v-field--reverse input,.v-locale--is-ltr .v-field--reverse .v-field__input,.v-locale--is-ltr .v-field--reverse input{text-align:right}.v-locale--is-rtl.v-field--reverse .v-field__input,.v-locale--is-rtl.v-field--reverse input,.v-locale--is-rtl .v-field--reverse .v-field__input,.v-locale--is-rtl .v-field--reverse input{text-align:left}.v-input--disabled .v-field--variant-filled .v-field__outline:before,.v-input--disabled .v-field--variant-underlined .v-field__outline:before{border-image:repeating-linear-gradient(to right,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 0px,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 2px,transparent 2px,transparent 4px) 1 repeat}.v-field--loading .v-field__outline:after,.v-field--loading .v-field__outline:before{opacity:0}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block}.v-card{display:block;overflow:hidden;overflow-wrap:break-word;position:relative;padding:0;text-decoration:none;transition-duration:.28s;transition-property:box-shadow,opacity,background;transition-timing-function:cubic-bezier(.4,0,.2,1);z-index:0;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;border-radius:4px}.v-card--border{border-width:thin;box-shadow:none}.v-card--absolute{position:absolute}.v-card--fixed{position:fixed}.v-card:hover>.v-card__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-card:focus-visible>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card:focus>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-card--active>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]>.v-card__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-card--active:hover>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:hover>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-card--active:focus-visible>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card--active:focus>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-card--variant-plain,.v-card--variant-outlined,.v-card--variant-text,.v-card--variant-tonal{background:transparent;color:inherit}.v-card--variant-plain{opacity:.62}.v-card--variant-plain:focus,.v-card--variant-plain:hover{opacity:1}.v-card--variant-plain .v-card__overlay{display:none}.v-card--variant-elevated,.v-card--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-card--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--variant-outlined{border:thin solid currentColor}.v-card--variant-text .v-card__overlay{background:currentColor}.v-card--variant-tonal .v-card__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-card--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__loader){opacity:.6}.v-card--flat{box-shadow:none}.v-card--hover{cursor:pointer;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--hover:before,.v-card--hover:after{border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transition:inherit}.v-card--hover:before{opacity:1;z-index:-1;box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--hover:after{z-index:1;opacity:0;box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--hover:hover:after{opacity:1}.v-card--hover:hover:before{opacity:0}.v-card--link{cursor:pointer}.v-card-actions{align-items:center;display:flex;flex:none;min-height:52px;padding:.5rem}.v-card-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;padding:.625rem 1rem}.v-card-item+.v-card-text{padding-top:0}.v-card-item__prepend{grid-area:prepend;padding-inline-end:1rem}.v-card-item__append{grid-area:append;padding-inline-start:1rem}.v-card-item__content{align-self:center;grid-area:content;overflow:hidden}.v-card-title{display:block;flex:none;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;min-width:0;overflow-wrap:normal;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;word-wrap:break-word}.v-card .v-card-title{line-height:2rem}.v-card--density-comfortable .v-card-title{line-height:1.75rem}.v-card--density-compact .v-card-title{line-height:1.55rem}.v-card-item .v-card-title{padding:0}.v-card-title+.v-card-text,.v-card-title+.v-card-actions{padding-top:0}.v-card-subtitle{display:block;flex:none;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;padding:0 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.v-card .v-card-subtitle{line-height:1.25rem}.v-card--density-comfortable .v-card-subtitle{line-height:1.125rem}.v-card--density-compact .v-card-subtitle{line-height:1rem}.v-card-item .v-card-subtitle{padding:0 0 .25rem}.v-card-text{flex:1 1 auto;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;padding:1rem;text-transform:none}.v-card .v-card-text{line-height:1.25rem}.v-card--density-comfortable .v-card-text{line-height:1.2rem}.v-card--density-compact .v-card-text{line-height:1.15rem}.v-card__image{display:flex;height:100%;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-card__content{border-radius:inherit;overflow:hidden;position:relative}.v-card__loader{bottom:auto;top:0;left:0;position:absolute;right:0;width:100%;z-index:1}.v-card__overlay{background-color:currentColor;border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-slider .v-slider__container input{cursor:default;padding:0;width:100%;display:none}.v-slider>.v-input__append,.v-slider>.v-input__prepend{padding:0}.v-slider__container{position:relative;min-height:inherit;width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}.v-input--disabled .v-slider__container{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-slider__container{color:rgb(var(--v-theme-error))}.v-slider.v-input--horizontal{align-items:center;margin-inline-start:8px;margin-inline-end:8px}.v-slider.v-input--horizontal>.v-input__control{min-height:32px;display:flex;align-items:center}.v-slider.v-input--vertical{justify-content:center;margin-top:12px;margin-bottom:12px}.v-slider.v-input--vertical>.v-input__control{min-height:300px}.v-slider.v-input--disabled{pointer-events:none}.v-slider--has-labels>.v-input__control{margin-bottom:4px}.v-slider__label{margin-inline-end:12px}.v-slider-thumb{touch-action:none;color:rgb(var(--v-theme-surface-variant))}.v-input--error:not(.v-input--disabled) .v-slider-thumb{color:inherit}.v-slider-thumb__label{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant))}.v-slider-thumb__label:before{color:rgba(var(--v-theme-surface-variant),.7)}.v-slider-thumb{outline:none;position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider-thumb__surface{cursor:pointer;width:var(--v-slider-thumb-size);height:var(--v-slider-thumb-size);border-radius:50%;-webkit-user-select:none;user-select:none;background-color:currentColor}.v-slider-thumb__surface:before{transition:.3s cubic-bezier(.4,0,.2,1);content:"";color:inherit;top:0;left:0;width:100%;height:100%;border-radius:50%;background:currentColor;position:absolute;pointer-events:none;opacity:0}.v-slider-thumb__surface:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.v-slider-thumb__label-container{position:absolute;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label{display:flex;align-items:center;justify-content:center;font-size:.75rem;min-width:35px;height:25px;border-radius:4px;padding:6px;position:absolute;-webkit-user-select:none;user-select:none;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label:before{content:"";width:0;height:0;position:absolute}.v-slider-thumb__ripple{position:absolute;left:calc(var(--v-slider-thumb-size) / -2);top:calc(var(--v-slider-thumb-size) / -2);width:calc(var(--v-slider-thumb-size) * 2);height:calc(var(--v-slider-thumb-size) * 2);background:inherit}.v-slider.v-input--horizontal .v-slider-thumb{top:50%;transform:translateY(-50%)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb{left:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2);right:unset}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb{left:unset;right:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--horizontal .v-slider-thumb__label-container{left:calc(var(--v-slider-thumb-size) / 2);top:0}.v-slider.v-input--horizontal .v-slider-thumb__label{bottom:calc(var(--v-slider-thumb-size) / 2)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-thumb__label:before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid currentColor;bottom:-6px}.v-slider.v-input--vertical .v-slider-thumb{top:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label-container{top:calc(var(--v-slider-thumb-size) / 2);right:0}.v-slider.v-input--vertical .v-slider-thumb__label{top:-12.5px;left:calc(var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label:before{border-right:6px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-6px}.v-slider-thumb--focused .v-slider-thumb__surface:before{transform:scale(2);opacity:var(--v-focus-opacity)}.v-slider-thumb--pressed{transition:none}.v-slider-thumb--pressed .v-slider-thumb__surface:before{opacity:var(--v-pressed-opacity)}@media (hover: hover){.v-slider-thumb:hover .v-slider-thumb__surface:before{transform:scale(2)}.v-slider-thumb:hover:not(.v-slider-thumb--focused) .v-slider-thumb__surface:before{opacity:var(--v-hover-opacity)}}.v-slider-track__background,.v-slider-track__fill,.v-slider-track__tick{background-color:rgb(var(--v-theme-surface-variant))}.v-slider-track__tick--filled{background-color:rgb(var(--v-theme-on-surface-variant))}.v-slider-track{border-radius:6px}.v-slider-track__background,.v-slider-track__fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:inherit}.v-slider--pressed .v-slider-track__background,.v-slider--pressed .v-slider-track__fill{transition:none}.v-input--error:not(.v-input--disabled) .v-slider-track__background,.v-input--error:not(.v-input--disabled) .v-slider-track__fill{background-color:currentColor}.v-slider-track__ticks{height:100%;width:100%;position:relative}.v-slider-track__tick{position:absolute;opacity:0;transition:.2s opacity cubic-bezier(.4,0,.2,1);border-radius:2px;width:var(--v-slider-tick-size);height:var(--v-slider-tick-size);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / -2))}.v-locale--is-ltr.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--first .v-slider-track__tick-label{transform:none}.v-locale--is-rtl.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(100%)}.v-locale--is-ltr.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--last .v-slider-track__tick-label{transform:none}.v-slider-track__tick-label{position:absolute;-webkit-user-select:none;user-select:none;white-space:nowrap}.v-slider.v-input--horizontal .v-slider-track{display:flex;align-items:center;width:100%;height:calc(var(--v-slider-track-size) + 2px);touch-action:pan-y}.v-slider.v-input--horizontal .v-slider-track__background{height:var(--v-slider-track-size)}.v-slider.v-input--horizontal .v-slider-track__fill{height:inherit}.v-slider.v-input--horizontal .v-slider-track__tick{margin-top:calc(calc(var(--v-slider-track-size) + 2px) / 2)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / -2))}.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{margin-top:calc(var(--v-slider-track-size) / 2 + 8px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-track__tick--first{margin-inline-start:calc(var(--v-slider-tick-size) + 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(0)}.v-slider.v-input--horizontal .v-slider-track__tick--last{margin-inline-start:calc(100% - var(--v-slider-tick-size) - 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(100%)}.v-slider.v-input--vertical .v-slider-track{height:100%;display:flex;justify-content:center;width:calc(var(--v-slider-track-size) + 2px);touch-action:pan-x}.v-slider.v-input--vertical .v-slider-track__background{width:var(--v-slider-track-size)}.v-slider.v-input--vertical .v-slider-track__fill{width:inherit}.v-slider.v-input--vertical .v-slider-track__ticks{height:100%}.v-slider.v-input--vertical .v-slider-track__tick{margin-inline-start:calc(calc(var(--v-slider-track-size) + 2px) / 2);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / 2))}.v-locale--is-rtl.v-slider.v-input--vertical .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--vertical .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / 2))}.v-slider.v-input--vertical .v-slider-track__tick--first{bottom:calc(0% + var(--v-slider-tick-size) + 1px)}.v-slider.v-input--vertical .v-slider-track__tick--last{bottom:calc(100% - var(--v-slider-tick-size) - 1px)}.v-slider.v-input--vertical .v-slider-track__tick .v-slider-track__tick-label{margin-inline-start:calc(var(--v-slider-track-size) / 2 + 12px);transform:translateY(-50%)}.v-slider-track__ticks--always-show .v-slider-track__tick,.v-slider--focused .v-slider-track__tick{opacity:1}.v-slider-track__background--opacity{opacity:.38}.v-combobox .v-field .v-text-field__prefix,.v-combobox .v-field .v-text-field__suffix,.v-combobox .v-field .v-field__input,.v-combobox .v-field.v-field{cursor:text}.v-combobox .v-field .v-field__input>input{align-self:flex-start;flex:1 1}.v-combobox .v-field input{min-width:64px}.v-combobox .v-field:not(.v-field--focused) input{min-width:0}.v-combobox .v-field--dirty .v-combobox__selection{margin-inline-end:2px}.v-combobox .v-combobox__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-combobox__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-combobox__mask{background:rgb(var(--v-theme-on-surface-variant))}.v-combobox__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:90%}.v-combobox__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-combobox__selection:first-child{margin-inline-start:0}.v-combobox--selecting-index .v-combobox__selection{opacity:var(--v-medium-emphasis-opacity)}.v-combobox--selecting-index .v-combobox__selection--selected{opacity:1}.v-combobox--selecting-index .v-field__input>input{caret-color:transparent}.v-combobox--single.v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline-start:inherit;padding-inline-end:inherit}.v-combobox--single .v-field--variant-outlined input{top:50%;transform:translateY(calc(-50% - (var(--v-input-chips-margin-top) + var(--v-input-chips-margin-bottom)) / 2))}.v-combobox--single .v-field--active input{transition:none}.v-combobox--single .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-combobox--single .v-field--focused .v-combobox__selection{opacity:0}.v-combobox__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-combobox--active-menu .v-combobox__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-dialog{align-items:center;justify-content:center;margin:auto}.v-dialog>.v-overlay__content{max-height:calc(100% - 48px);width:calc(100% - 48px);max-width:calc(100% - 48px);margin:24px;display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{--v-scrollbar-offset: 0px;border-radius:4px;overflow-y:auto;box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>form>.v-card{display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card>.v-card-item,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item{padding:14px 24px 0}.v-dialog>.v-overlay__content>.v-card>.v-card-item+.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item+.v-card-text{padding-top:10px}.v-dialog>.v-overlay__content>.v-card>.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-text{font-size:inherit;letter-spacing:.03125em;line-height:inherit;padding:16px 24px 10px}.v-dialog--fullscreen{--v-scrollbar-offset: 0px}.v-dialog--fullscreen>.v-overlay__content{border-radius:0;margin:0;padding:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-overlay__content>.v-card,.v-dialog--fullscreen>.v-overlay__content>.v-sheet,.v-dialog--fullscreen>.v-overlay__content>form>.v-card,.v-dialog--fullscreen>.v-overlay__content>form>.v-sheet{min-height:100%;min-width:100%;border-radius:0}.v-dialog--scrollable>.v-overlay__content,.v-dialog--scrollable>.v-overlay__content>form{display:flex;overflow:hidden}.v-dialog--scrollable>.v-overlay__content>.v-card,.v-dialog--scrollable>.v-overlay__content>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-overlay__content>.v-card>.v-card-text,.v-dialog--scrollable>.v-overlay__content>form>.v-card>.v-card-text{backface-visibility:hidden;overflow-y:auto}.v-expansion-panel{background-color:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-expansion-panel:not(:first-child):after{border-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-expansion-panel--disabled .v-expansion-panel-title{color:rgba(var(--v-theme-on-surface),.26)}.v-expansion-panel--disabled .v-expansion-panel-title .v-expansion-panel-title__overlay{opacity:.4615384615}.v-expansion-panels{display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;position:relative;z-index:1}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:first-child:not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:last-child:not(:first-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:first-child{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child{border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child .v-expansion-panel-title--active{border-bottom-left-radius:initial;border-bottom-right-radius:initial}.v-expansion-panels--variant-accordion>:not(:first-child):not(:last-child){border-radius:0!important}.v-expansion-panels--variant-accordion .v-expansion-panel-title__overlay{transition:.3s border-radius cubic-bezier(.4,0,.2,1)}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s all cubic-bezier(.4,0,.2,1);transition-property:margin-top,border-radius,border,max-width;border-radius:4px}.v-expansion-panel:not(:first-child):after{border-top-style:solid;border-top-width:thin;content:"";left:0;position:absolute;right:0;top:0;transition:.3s opacity cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-title{pointer-events:none}.v-expansion-panel--active:not(:first-child),.v-expansion-panel--active+.v-expansion-panel{margin-top:16px}.v-expansion-panel--active:not(:first-child):after,.v-expansion-panel--active+.v-expansion-panel:after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-title{border-bottom-left-radius:0;border-bottom-right-radius:0;min-height:64px}.v-expansion-panel__shadow{position:absolute;top:0;left:0;width:100%;height:100%;box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:inherit;z-index:-1}.v-expansion-panel-title{align-items:center;text-align:start;border-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:48px;outline:none;padding:16px 24px;position:relative;transition:.3s min-height cubic-bezier(.4,0,.2,1);width:100%;justify-content:space-between}.v-expansion-panel-title:hover>.v-expansion-panel-title__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title:focus-visible>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title:focus>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--active>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]>.v-expansion-panel-title__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--active:hover>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]:hover>.v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--active:focus-visible>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title--active:focus>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]:focus>.v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--active:before{opacity:.12}.v-expansion-panel-title__overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:currentColor;border-radius:inherit;opacity:0}.v-expansion-panel-title__icon{display:inline-flex;margin-bottom:-4px;margin-top:-4px;-webkit-user-select:none;user-select:none;margin-inline-start:auto}.v-expansion-panel-text{display:flex}.v-expansion-panel-text__wrapper{padding:8px 24px 16px;flex:1 1 auto;max-width:100%}.v-expansion-panels--variant-accordion>.v-expansion-panel{margin-top:0}.v-expansion-panels--variant-accordion>.v-expansion-panel:after{opacity:1}.v-expansion-panels--variant-popout>.v-expansion-panel{max-width:calc(100% - 32px)}.v-expansion-panels--variant-popout>.v-expansion-panel--active{max-width:calc(100% + 16px)}.v-expansion-panels--variant-inset>.v-expansion-panel{max-width:100%}.v-expansion-panels--variant-inset>.v-expansion-panel--active{max-width:calc(100% - 32px)}.v-container{width:100%;padding:16px;margin-right:auto;margin-left:auto}@media (min-width: 960px){.v-container{max-width:900px}}@media (min-width: 1280px){.v-container{max-width:1200px}}@media (min-width: 1920px){.v-container{max-width:1800px}}@media (min-width: 2560px){.v-container{max-width:2400px}}.v-container--fluid{max-width:100%}.v-container.fill-height{align-items:center;display:flex;flex-wrap:wrap}.v-row{display:flex;flex-wrap:wrap;flex:1 1 auto;margin:-12px}.v-row+.v-row{margin-top:12px}.v-row+.v-row--dense{margin-top:4px}.v-row--dense{margin:-4px}.v-row--dense>.v-col,.v-row--dense>[class*=v-col-]{padding:4px}.v-row.v-row--no-gutters{margin:0}.v-row.v-row--no-gutters>.v-col,.v-row.v-row--no-gutters>[class*=v-col-]{padding:0}.v-spacer{flex-grow:1}.v-col-xxl,.v-col-xxl-auto,.v-col-xxl-12,.v-col-xxl-11,.v-col-xxl-10,.v-col-xxl-9,.v-col-xxl-8,.v-col-xxl-7,.v-col-xxl-6,.v-col-xxl-5,.v-col-xxl-4,.v-col-xxl-3,.v-col-xxl-2,.v-col-xxl-1,.v-col-xl,.v-col-xl-auto,.v-col-xl-12,.v-col-xl-11,.v-col-xl-10,.v-col-xl-9,.v-col-xl-8,.v-col-xl-7,.v-col-xl-6,.v-col-xl-5,.v-col-xl-4,.v-col-xl-3,.v-col-xl-2,.v-col-xl-1,.v-col-lg,.v-col-lg-auto,.v-col-lg-12,.v-col-lg-11,.v-col-lg-10,.v-col-lg-9,.v-col-lg-8,.v-col-lg-7,.v-col-lg-6,.v-col-lg-5,.v-col-lg-4,.v-col-lg-3,.v-col-lg-2,.v-col-lg-1,.v-col-md,.v-col-md-auto,.v-col-md-12,.v-col-md-11,.v-col-md-10,.v-col-md-9,.v-col-md-8,.v-col-md-7,.v-col-md-6,.v-col-md-5,.v-col-md-4,.v-col-md-3,.v-col-md-2,.v-col-md-1,.v-col-sm,.v-col-sm-auto,.v-col-sm-12,.v-col-sm-11,.v-col-sm-10,.v-col-sm-9,.v-col-sm-8,.v-col-sm-7,.v-col-sm-6,.v-col-sm-5,.v-col-sm-4,.v-col-sm-3,.v-col-sm-2,.v-col-sm-1,.v-col,.v-col-auto,.v-col-12,.v-col-11,.v-col-10,.v-col-9,.v-col-8,.v-col-7,.v-col-6,.v-col-5,.v-col-4,.v-col-3,.v-col-2,.v-col-1{width:100%;padding:12px}.v-col{flex-basis:0;flex-grow:1;max-width:100%}.v-col-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-3{flex:0 0 25%;max-width:25%}.v-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-6{flex:0 0 50%;max-width:50%}.v-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-9{flex:0 0 75%;max-width:75%}.v-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-1,.v-locale--is-ltr .offset-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-1,.v-locale--is-rtl .offset-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-2,.v-locale--is-ltr .offset-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-2,.v-locale--is-rtl .offset-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-3,.v-locale--is-ltr .offset-3{margin-left:25%}.v-locale--is-rtl.offset-3,.v-locale--is-rtl .offset-3{margin-right:25%}.v-locale--is-ltr.offset-4,.v-locale--is-ltr .offset-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-4,.v-locale--is-rtl .offset-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-5,.v-locale--is-ltr .offset-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-5,.v-locale--is-rtl .offset-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-6,.v-locale--is-ltr .offset-6{margin-left:50%}.v-locale--is-rtl.offset-6,.v-locale--is-rtl .offset-6{margin-right:50%}.v-locale--is-ltr.offset-7,.v-locale--is-ltr .offset-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-7,.v-locale--is-rtl .offset-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-8,.v-locale--is-ltr .offset-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-8,.v-locale--is-rtl .offset-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-9,.v-locale--is-ltr .offset-9{margin-left:75%}.v-locale--is-rtl.offset-9,.v-locale--is-rtl .offset-9{margin-right:75%}.v-locale--is-ltr.offset-10,.v-locale--is-ltr .offset-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-10,.v-locale--is-rtl .offset-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-11,.v-locale--is-ltr .offset-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-11,.v-locale--is-rtl .offset-11{margin-right:91.6666666667%}@media (min-width: 600px){.v-col-sm{flex-basis:0;flex-grow:1;max-width:100%}.v-col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-sm-3{flex:0 0 25%;max-width:25%}.v-col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-sm-6{flex:0 0 50%;max-width:50%}.v-col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-sm-9{flex:0 0 75%;max-width:75%}.v-col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-sm-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-sm-0,.v-locale--is-ltr .offset-sm-0{margin-left:0}.v-locale--is-rtl.offset-sm-0,.v-locale--is-rtl .offset-sm-0{margin-right:0}.v-locale--is-ltr.offset-sm-1,.v-locale--is-ltr .offset-sm-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-sm-1,.v-locale--is-rtl .offset-sm-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-sm-2,.v-locale--is-ltr .offset-sm-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-sm-2,.v-locale--is-rtl .offset-sm-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-sm-3,.v-locale--is-ltr .offset-sm-3{margin-left:25%}.v-locale--is-rtl.offset-sm-3,.v-locale--is-rtl .offset-sm-3{margin-right:25%}.v-locale--is-ltr.offset-sm-4,.v-locale--is-ltr .offset-sm-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-sm-4,.v-locale--is-rtl .offset-sm-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-sm-5,.v-locale--is-ltr .offset-sm-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-sm-5,.v-locale--is-rtl .offset-sm-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-sm-6,.v-locale--is-ltr .offset-sm-6{margin-left:50%}.v-locale--is-rtl.offset-sm-6,.v-locale--is-rtl .offset-sm-6{margin-right:50%}.v-locale--is-ltr.offset-sm-7,.v-locale--is-ltr .offset-sm-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-sm-7,.v-locale--is-rtl .offset-sm-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-sm-8,.v-locale--is-ltr .offset-sm-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-sm-8,.v-locale--is-rtl .offset-sm-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-sm-9,.v-locale--is-ltr .offset-sm-9{margin-left:75%}.v-locale--is-rtl.offset-sm-9,.v-locale--is-rtl .offset-sm-9{margin-right:75%}.v-locale--is-ltr.offset-sm-10,.v-locale--is-ltr .offset-sm-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-sm-10,.v-locale--is-rtl .offset-sm-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-sm-11,.v-locale--is-ltr .offset-sm-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-sm-11,.v-locale--is-rtl .offset-sm-11{margin-right:91.6666666667%}}@media (min-width: 960px){.v-col-md{flex-basis:0;flex-grow:1;max-width:100%}.v-col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-md-3{flex:0 0 25%;max-width:25%}.v-col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-md-6{flex:0 0 50%;max-width:50%}.v-col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-md-9{flex:0 0 75%;max-width:75%}.v-col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-md-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-md-0,.v-locale--is-ltr .offset-md-0{margin-left:0}.v-locale--is-rtl.offset-md-0,.v-locale--is-rtl .offset-md-0{margin-right:0}.v-locale--is-ltr.offset-md-1,.v-locale--is-ltr .offset-md-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-md-1,.v-locale--is-rtl .offset-md-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-md-2,.v-locale--is-ltr .offset-md-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-md-2,.v-locale--is-rtl .offset-md-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-md-3,.v-locale--is-ltr .offset-md-3{margin-left:25%}.v-locale--is-rtl.offset-md-3,.v-locale--is-rtl .offset-md-3{margin-right:25%}.v-locale--is-ltr.offset-md-4,.v-locale--is-ltr .offset-md-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-md-4,.v-locale--is-rtl .offset-md-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-md-5,.v-locale--is-ltr .offset-md-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-md-5,.v-locale--is-rtl .offset-md-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-md-6,.v-locale--is-ltr .offset-md-6{margin-left:50%}.v-locale--is-rtl.offset-md-6,.v-locale--is-rtl .offset-md-6{margin-right:50%}.v-locale--is-ltr.offset-md-7,.v-locale--is-ltr .offset-md-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-md-7,.v-locale--is-rtl .offset-md-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-md-8,.v-locale--is-ltr .offset-md-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-md-8,.v-locale--is-rtl .offset-md-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-md-9,.v-locale--is-ltr .offset-md-9{margin-left:75%}.v-locale--is-rtl.offset-md-9,.v-locale--is-rtl .offset-md-9{margin-right:75%}.v-locale--is-ltr.offset-md-10,.v-locale--is-ltr .offset-md-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-md-10,.v-locale--is-rtl .offset-md-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-md-11,.v-locale--is-ltr .offset-md-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-md-11,.v-locale--is-rtl .offset-md-11{margin-right:91.6666666667%}}@media (min-width: 1280px){.v-col-lg{flex-basis:0;flex-grow:1;max-width:100%}.v-col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-lg-3{flex:0 0 25%;max-width:25%}.v-col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-lg-6{flex:0 0 50%;max-width:50%}.v-col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-lg-9{flex:0 0 75%;max-width:75%}.v-col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-lg-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-lg-0,.v-locale--is-ltr .offset-lg-0{margin-left:0}.v-locale--is-rtl.offset-lg-0,.v-locale--is-rtl .offset-lg-0{margin-right:0}.v-locale--is-ltr.offset-lg-1,.v-locale--is-ltr .offset-lg-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-lg-1,.v-locale--is-rtl .offset-lg-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-lg-2,.v-locale--is-ltr .offset-lg-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-lg-2,.v-locale--is-rtl .offset-lg-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-lg-3,.v-locale--is-ltr .offset-lg-3{margin-left:25%}.v-locale--is-rtl.offset-lg-3,.v-locale--is-rtl .offset-lg-3{margin-right:25%}.v-locale--is-ltr.offset-lg-4,.v-locale--is-ltr .offset-lg-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-lg-4,.v-locale--is-rtl .offset-lg-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-lg-5,.v-locale--is-ltr .offset-lg-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-lg-5,.v-locale--is-rtl .offset-lg-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-lg-6,.v-locale--is-ltr .offset-lg-6{margin-left:50%}.v-locale--is-rtl.offset-lg-6,.v-locale--is-rtl .offset-lg-6{margin-right:50%}.v-locale--is-ltr.offset-lg-7,.v-locale--is-ltr .offset-lg-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-lg-7,.v-locale--is-rtl .offset-lg-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-lg-8,.v-locale--is-ltr .offset-lg-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-lg-8,.v-locale--is-rtl .offset-lg-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-lg-9,.v-locale--is-ltr .offset-lg-9{margin-left:75%}.v-locale--is-rtl.offset-lg-9,.v-locale--is-rtl .offset-lg-9{margin-right:75%}.v-locale--is-ltr.offset-lg-10,.v-locale--is-ltr .offset-lg-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-lg-10,.v-locale--is-rtl .offset-lg-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-lg-11,.v-locale--is-ltr .offset-lg-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-lg-11,.v-locale--is-rtl .offset-lg-11{margin-right:91.6666666667%}}@media (min-width: 1920px){.v-col-xl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xl-3{flex:0 0 25%;max-width:25%}.v-col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xl-6{flex:0 0 50%;max-width:50%}.v-col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xl-9{flex:0 0 75%;max-width:75%}.v-col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xl-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-xl-0,.v-locale--is-ltr .offset-xl-0{margin-left:0}.v-locale--is-rtl.offset-xl-0,.v-locale--is-rtl .offset-xl-0{margin-right:0}.v-locale--is-ltr.offset-xl-1,.v-locale--is-ltr .offset-xl-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-xl-1,.v-locale--is-rtl .offset-xl-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-xl-2,.v-locale--is-ltr .offset-xl-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-xl-2,.v-locale--is-rtl .offset-xl-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-xl-3,.v-locale--is-ltr .offset-xl-3{margin-left:25%}.v-locale--is-rtl.offset-xl-3,.v-locale--is-rtl .offset-xl-3{margin-right:25%}.v-locale--is-ltr.offset-xl-4,.v-locale--is-ltr .offset-xl-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-xl-4,.v-locale--is-rtl .offset-xl-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-xl-5,.v-locale--is-ltr .offset-xl-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-xl-5,.v-locale--is-rtl .offset-xl-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-xl-6,.v-locale--is-ltr .offset-xl-6{margin-left:50%}.v-locale--is-rtl.offset-xl-6,.v-locale--is-rtl .offset-xl-6{margin-right:50%}.v-locale--is-ltr.offset-xl-7,.v-locale--is-ltr .offset-xl-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-xl-7,.v-locale--is-rtl .offset-xl-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-xl-8,.v-locale--is-ltr .offset-xl-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-xl-8,.v-locale--is-rtl .offset-xl-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-xl-9,.v-locale--is-ltr .offset-xl-9{margin-left:75%}.v-locale--is-rtl.offset-xl-9,.v-locale--is-rtl .offset-xl-9{margin-right:75%}.v-locale--is-ltr.offset-xl-10,.v-locale--is-ltr .offset-xl-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-xl-10,.v-locale--is-rtl .offset-xl-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-xl-11,.v-locale--is-ltr .offset-xl-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-xl-11,.v-locale--is-rtl .offset-xl-11{margin-right:91.6666666667%}}@media (min-width: 2560px){.v-col-xxl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xxl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xxl-3{flex:0 0 25%;max-width:25%}.v-col-xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xxl-6{flex:0 0 50%;max-width:50%}.v-col-xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xxl-9{flex:0 0 75%;max-width:75%}.v-col-xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xxl-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-xxl-0,.v-locale--is-ltr .offset-xxl-0{margin-left:0}.v-locale--is-rtl.offset-xxl-0,.v-locale--is-rtl .offset-xxl-0{margin-right:0}.v-locale--is-ltr.offset-xxl-1,.v-locale--is-ltr .offset-xxl-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-xxl-1,.v-locale--is-rtl .offset-xxl-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-xxl-2,.v-locale--is-ltr .offset-xxl-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-xxl-2,.v-locale--is-rtl .offset-xxl-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-xxl-3,.v-locale--is-ltr .offset-xxl-3{margin-left:25%}.v-locale--is-rtl.offset-xxl-3,.v-locale--is-rtl .offset-xxl-3{margin-right:25%}.v-locale--is-ltr.offset-xxl-4,.v-locale--is-ltr .offset-xxl-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-xxl-4,.v-locale--is-rtl .offset-xxl-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-xxl-5,.v-locale--is-ltr .offset-xxl-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-xxl-5,.v-locale--is-rtl .offset-xxl-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-xxl-6,.v-locale--is-ltr .offset-xxl-6{margin-left:50%}.v-locale--is-rtl.offset-xxl-6,.v-locale--is-rtl .offset-xxl-6{margin-right:50%}.v-locale--is-ltr.offset-xxl-7,.v-locale--is-ltr .offset-xxl-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-xxl-7,.v-locale--is-rtl .offset-xxl-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-xxl-8,.v-locale--is-ltr .offset-xxl-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-xxl-8,.v-locale--is-rtl .offset-xxl-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-xxl-9,.v-locale--is-ltr .offset-xxl-9{margin-left:75%}.v-locale--is-rtl.offset-xxl-9,.v-locale--is-rtl .offset-xxl-9{margin-right:75%}.v-locale--is-ltr.offset-xxl-10,.v-locale--is-ltr .offset-xxl-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-xxl-10,.v-locale--is-rtl .offset-xxl-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-xxl-11,.v-locale--is-ltr .offset-xxl-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-xxl-11,.v-locale--is-rtl .offset-xxl-11{margin-right:91.6666666667%}}.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex;position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity));transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity));color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover td{background:rgba(var(--v-border-color),var(--v-hover-opacity))}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px 0 rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px 0 rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{--v-table-header-height: 56px;border-radius:inherit;line-height:1.5;max-width:100%}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default>.v-table__wrapper>table>tbody>tr>th,.v-table--density-default>.v-table__wrapper>table>thead>tr>th,.v-table--density-default>.v-table__wrapper>table>tfoot>tr>th{height:calc(var(--v-table-header-height) + 0px)}.v-table--density-default>.v-table__wrapper>table>tbody>tr>td,.v-table--density-default>.v-table__wrapper>table>thead>tr>td,.v-table--density-default>.v-table__wrapper>table>tfoot>tr>td{height:calc(var(--v-table-row-height, 52px) + 0px)}.v-table--density-comfortable>.v-table__wrapper>table>tbody>tr>th,.v-table--density-comfortable>.v-table__wrapper>table>thead>tr>th,.v-table--density-comfortable>.v-table__wrapper>table>tfoot>tr>th{height:calc(var(--v-table-header-height) - 8px)}.v-table--density-comfortable>.v-table__wrapper>table>tbody>tr>td,.v-table--density-comfortable>.v-table__wrapper>table>thead>tr>td,.v-table--density-comfortable>.v-table__wrapper>table>tfoot>tr>td{height:calc(var(--v-table-row-height, 52px) - 8px)}.v-table--density-compact>.v-table__wrapper>table>tbody>tr>th,.v-table--density-compact>.v-table__wrapper>table>thead>tr>th,.v-table--density-compact>.v-table__wrapper>table>tfoot>tr>th{height:calc(var(--v-table-header-height) - 16px)}.v-table--density-compact>.v-table__wrapper>table>tbody>tr>td,.v-table--density-compact>.v-table__wrapper>table>thead>tr>td,.v-table--density-compact>.v-table__wrapper>table>tfoot>tr>td{height:calc(var(--v-table-row-height, 52px) - 16px)}.v-table__wrapper{border-radius:inherit;overflow:auto}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:1}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important}.v-textarea .v-field{--v-textarea-control-height: var(--v-input-control-height)}.v-textarea .v-field__field{--v-input-control-height: var(--v-textarea-control-height)}.v-textarea .v-field__input{flex:1 1 auto;outline:none;-webkit-mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px));mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px))}.v-textarea .v-field__input.v-textarea__sizer{visibility:hidden;position:absolute;top:0;left:0;height:0!important;min-height:0!important;pointer-events:none}.v-textarea--no-resize .v-field__input{resize:none}.v-textarea .v-field--no-label textarea,.v-textarea .v-field--active textarea{opacity:1}.v-textarea textarea{opacity:0;flex:1;min-width:0;transition:.15s opacity cubic-bezier(.4,0,.2,1)}.v-textarea textarea:focus,.v-textarea textarea:active{outline:none}.v-textarea textarea:invalid{box-shadow:none}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td,.v-data-table .v-table__wrapper>table>thead>tr th,.v-data-table .v-table__wrapper>table tbody>tr>td,.v-data-table .v-table__wrapper>table tbody>tr th{background:rgb(var(--v-theme-surface))}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table-column--fixed{position:sticky;z-index:2;left:0}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table-group-header-row td{background:lightgrey}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:.3}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table-footer{display:flex;align-items:center;flex-wrap:wrap;padding:0 8px;justify-content:flex-end}.v-data-table-footer__items-per-page{padding-inline-end:24px;display:flex;align-items:center;justify-content:space-between}.v-data-table-footer__items-per-page>span{padding-inline-end:24px}.v-data-table-footer__info{display:flex;padding-inline-end:24px}.v-data-table-footer__pagination{display:flex;align-items:center}.v-data-table-footer__page{padding:0 8px}.toolbar-bg{background-color:#4f4d4d}.markdown-content{font-family:Arial,sans-serif;line-height:1.6;color:#fff}.markdown-content h1,h2,h3,h4,h5,h6{margin-top:1.5em;margin-bottom:.5em;font-weight:700;line-height:1.3}.markdown-content p{margin-top:0;margin-bottom:1em}.markdown-content ul,ol{padding-left:20px;margin-top:.5em;margin-bottom:.5em}.markdown-content ul{list-style-type:disc}.markdown-content ol{list-style-type:decimal}.markdown-content li{margin-bottom:.25em}.markdown-content a{color:#007bff;text-decoration:none}.markdown-content a:hover{text-decoration:underline}.markdown-content img{max-width:100%;height:auto}.markdown-content blockquote{margin:0;padding-left:1em;color:#6a737d;border-left:.25em solid #dfe2e5}.tox{box-shadow:none;box-sizing:content-box;color:#2a3746;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){background:transparent;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #000000;border-radius:0;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:1px solid #000000;border-radius:0;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:1300}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:3px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#1e71aa66;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#207ab7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus{background-color:#1c6ca1}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#185d8c}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa50080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus{background-color:#f2d574;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc000080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus{background-color:#e9a4a4;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab4680;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#000;border-radius:0;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar,.tox .tox-bottom-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#207ab7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#207ab7;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;position:relative;text-align:center;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button:before{border-radius:3px;bottom:-1px;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #207ab7,0 0 0 3px #207ab740;content:"";left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#207ab7;background-image:none;border-color:#207ab7;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:focus-visible:not(:disabled):before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#114060;background-image:none;border-color:#114060;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:none;padding:4px 16px;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#264560;background-image:none;border-color:#264560;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:#3d546f;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--naked:hover:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:#2b3b4e;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:3px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#fff3}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#207ab7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#207ab7}.tox .tox-checkbox--disabled{color:#ffffff80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#ffffff80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:inset 0 0 0 1px #207ab7;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#1a1a1a;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#333;color:#fff;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--toolbar .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#4a5562;color:#fff}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:#ffffff80;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:#fff}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#ffffff80;cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:#ffffff80}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid #1a1a1a;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:3px 0 2px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #000000}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #000000}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#4a5562}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:3px;width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#ffffff80;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#2b3b4e;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#ffffff80}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar svg,.tox:not([dir=rtl]) .tox-user__avatar img{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg,.tox[dir=rtl] .tox-user__avatar img{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:#222f3ebf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #2a374626,0 0 40px 1px #2a374626;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 16px);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px}@media only screen and (min-width: 768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#ffffff80;display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:#207ab71a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #207ab7;color:#207ab7}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#207ab7;cursor:pointer;text-decoration:underline}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#114060;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #207ab7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#092335;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dd{padding-inline-start:2.5rem}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl{margin-bottom:16px}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dt{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:1px solid #000000;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#222f3ebf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered:before{border:1px solid #000000;border-radius:3px;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered-focus.tox-navobj-bordered:before{border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #000000;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#ffffff80;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area:before{border:2px solid #2D6ADF;border-radius:4px;content:"";top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area:before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #000000}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:none;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #000000;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:0 4px 4px -3px #00000040;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:none;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#2a374633;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#207ab7;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:3px;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#ffffff80;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#222f3e;color:#ffffffd9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#207ab7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#000;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:0 -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#207ab780;border-color:#207ab780}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}@media only screen and (min-width: 768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1 / -1;grid-row:1;padding:0 4px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:transparent;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;overflow:hidden;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn--active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification a{cursor:pointer;text-decoration:underline}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:#000;color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition:before,.tox .tox-pop--transition:after{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #000000;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;opacity:1;position:absolute;width:0}.tox .tox-pop.tox-pop--inset:before,.tox .tox-pop.tox-pop--inset:after{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#000000 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #000000 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #000000 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #000000;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #000000;border-radius:3px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#207ab7;border:2px solid #185d8c;border-radius:3px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#ffffff80;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid #000000;color:#fff;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}@media only screen and (min-width: 768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width: 767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#fff;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar__branding svg{fill:#fffc;height:1.14em;vertical-align:-.28em;width:3.6em}.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin-left:auto;margin-right:-8px;padding-bottom:3px;padding-left:1ch;padding-right:3px}.tox .tox-statusbar__resize-handle svg{display:block;fill:#ffffff80}.tox .tox-statusbar__resize-handle:focus svg{background-color:#4a5562;border-radius:1px 1px -4px;box-shadow:0 0 0 2px #4a5562}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#222f3e99;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:transparent;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:3px 0 2px;outline:none;overflow:hidden;padding:0;text-transform:none;width:34px}.tox .tox-tbtn svg{display:block;fill:#fff}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:#ffffff80}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*{transform:none}.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg{fill:#fff}.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg{fill:#ffffff80}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{border-radius:3px;display:flex;margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-number-input .tox-input-wrapper{background:transparent;display:flex;pointer-events:none;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background:#4a5562}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;width:60px}.tox .tox-number-input input:hover{background:#4a5562;color:#fff}.tox .tox-number-input input:focus{background:#fff;color:#2a3746}.tox .tox-number-input input:disabled{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button{background:transparent;color:#fff;height:34px;text-align:center;width:24px}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}.tox .tox-number-input button:focus{background:#4a5562}.tox .tox-number-input button:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:#ffffff80}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>button,.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper{background:#4a5562}.tox .tox-tbtn--select{margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#ffffff80}.tox .tox-tbtn--bespoke{background:transparent}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:0}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:3px 0 2px;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #4a5562 inset}.tox .tox-split-button:focus{background:#4a5562;box-shadow:none;color:#fff}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#ffffff80}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:transparent;box-shadow:none;color:#ffffff80}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(#000000 0px 1px,transparent 1px 39px);background-position:center top 39px;background-repeat:no-repeat;background-size:calc(100% - 8px) calc(100% - 39px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__primary,.tox .tox-toolbar-overlord>.tox-toolbar__overflow{background-position:center top 0px;background-size:calc(100% - 8px) calc(100% + -0px)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-toolbar-overlord,.tox .tox-anchorbar{grid-column:1 / -1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid #000000;margin-top:-1px;padding-bottom:0;padding-top:0}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 16px) calc(100% - 51px);border:none;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;overscroll-behavior:none;padding:4px 0}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 8px) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #000000}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #000000}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#3d546f;border-radius:3px;box-shadow:0 2px 4px #2a37464d;color:#ffffffbf;font-size:14px;font-style:normal;font-weight:400;padding:4px 8px;text-transform:none}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #3d546f;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #3d546f;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #3d546f;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #3d546f;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:transparent;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:none;overflow:hidden;padding:0 0 0 8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled>*,.tox .tox-tree .tox-trbtn--enabled:hover>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0;position:relative}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;padding:8px 8px 0}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-start,.tox .tox-view__header-end{display:flex}.tox .tox-view__pane{height:100%;padding:8px;width:100%}.tox .tox-view__pane_panel{border:1px solid #000000;border-radius:3px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-start>*,.tox[dir=rtl] .tox-view__header .tox-view__header-end>*{margin-right:8px}.tox .tox-well{border:1px solid #000000;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #000000;border-radius:3px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:none;padding:0}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce-inline .tox-editor-container{overflow:hidden}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:none;box-shadow:none}.tox.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:transparent;box-shadow:0 4px 4px -3px #00000040;padding:0}.tox.tox.tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-pop{box-shadow:none}.tox .tox-tbtn,.tox .tox-number-input,.tox .tox-tbtn--select,.tox .tox-split-button{margin:2px 0 3px}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0px #222f3e!important}.tox .tox-menubar+.tox-toolbar-overlord{border-top:none}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #000000;margin-top:-1px}.tox.tox-tinymce-aux .tox-toolbar__overflow{border:1px solid #000000;padding:0}.tox .tox-pop .tox-pop__dialog .tox-toolbar{padding:0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #000000}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary,.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child{border-top:1px solid #000000}.tox .tox-toolbar__group{padding:0 4px}.tox .tox-collection__item{border-radius:0;cursor:pointer}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;text-decoration:underline}.tox .tox-statusbar__branding svg{vertical-align:-.25em}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox .tox-statusbar__resize-handle{padding-bottom:0;padding-right:0}.tox .tox-button:before{display:none}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-color:#0e1b23!important}.cm-editor{height:auto!important}@font-face{font-family:Material Design Icons;src:url(./materialdesignicons-webfont-5159a347.eot?v=7.3.67);src:url(./materialdesignicons-webfont-5159a347.eot?#iefix&v=7.3.67) format("embedded-opentype"),url(./materialdesignicons-webfont-31010194.woff2?v=7.3.67) format("woff2"),url(./materialdesignicons-webfont-28c8f97f.woff?v=7.3.67) format("woff"),url(./materialdesignicons-webfont-be825c12.ttf?v=7.3.67) format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"󰇉"}.mdi-abacus:before{content:"󱛠"}.mdi-abjad-arabic:before{content:"󱌨"}.mdi-abjad-hebrew:before{content:"󱌩"}.mdi-abugida-devanagari:before{content:"󱌪"}.mdi-abugida-thai:before{content:"󱌫"}.mdi-access-point:before{content:"󰀃"}.mdi-access-point-check:before{content:"󱔸"}.mdi-access-point-minus:before{content:"󱔹"}.mdi-access-point-network:before{content:"󰀂"}.mdi-access-point-network-off:before{content:"󰯡"}.mdi-access-point-off:before{content:"󱔑"}.mdi-access-point-plus:before{content:"󱔺"}.mdi-access-point-remove:before{content:"󱔻"}.mdi-account:before{content:"󰀄"}.mdi-account-alert:before{content:"󰀅"}.mdi-account-alert-outline:before{content:"󰭐"}.mdi-account-arrow-down:before{content:"󱡨"}.mdi-account-arrow-down-outline:before{content:"󱡩"}.mdi-account-arrow-left:before{content:"󰭑"}.mdi-account-arrow-left-outline:before{content:"󰭒"}.mdi-account-arrow-right:before{content:"󰭓"}.mdi-account-arrow-right-outline:before{content:"󰭔"}.mdi-account-arrow-up:before{content:"󱡧"}.mdi-account-arrow-up-outline:before{content:"󱡪"}.mdi-account-badge:before{content:"󱬊"}.mdi-account-badge-outline:before{content:"󱬋"}.mdi-account-box:before{content:"󰀆"}.mdi-account-box-multiple:before{content:"󰤴"}.mdi-account-box-multiple-outline:before{content:"󱀊"}.mdi-account-box-outline:before{content:"󰀇"}.mdi-account-cancel:before{content:"󱋟"}.mdi-account-cancel-outline:before{content:"󱋠"}.mdi-account-card:before{content:"󱮤"}.mdi-account-card-outline:before{content:"󱮥"}.mdi-account-cash:before{content:"󱂗"}.mdi-account-cash-outline:before{content:"󱂘"}.mdi-account-check:before{content:"󰀈"}.mdi-account-check-outline:before{content:"󰯢"}.mdi-account-child:before{content:"󰪉"}.mdi-account-child-circle:before{content:"󰪊"}.mdi-account-child-outline:before{content:"󱃈"}.mdi-account-circle:before{content:"󰀉"}.mdi-account-circle-outline:before{content:"󰭕"}.mdi-account-clock:before{content:"󰭖"}.mdi-account-clock-outline:before{content:"󰭗"}.mdi-account-cog:before{content:"󱍰"}.mdi-account-cog-outline:before{content:"󱍱"}.mdi-account-convert:before{content:"󰀊"}.mdi-account-convert-outline:before{content:"󱌁"}.mdi-account-cowboy-hat:before{content:"󰺛"}.mdi-account-cowboy-hat-outline:before{content:"󱟳"}.mdi-account-credit-card:before{content:"󱮦"}.mdi-account-credit-card-outline:before{content:"󱮧"}.mdi-account-details:before{content:"󰘱"}.mdi-account-details-outline:before{content:"󱍲"}.mdi-account-edit:before{content:"󰚼"}.mdi-account-edit-outline:before{content:"󰿻"}.mdi-account-eye:before{content:"󰐠"}.mdi-account-eye-outline:before{content:"󱉻"}.mdi-account-file:before{content:"󱲧"}.mdi-account-file-outline:before{content:"󱲨"}.mdi-account-file-text:before{content:"󱲩"}.mdi-account-file-text-outline:before{content:"󱲪"}.mdi-account-filter:before{content:"󰤶"}.mdi-account-filter-outline:before{content:"󰾝"}.mdi-account-group:before{content:"󰡉"}.mdi-account-group-outline:before{content:"󰭘"}.mdi-account-hard-hat:before{content:"󰖵"}.mdi-account-hard-hat-outline:before{content:"󱨟"}.mdi-account-heart:before{content:"󰢙"}.mdi-account-heart-outline:before{content:"󰯣"}.mdi-account-injury:before{content:"󱠕"}.mdi-account-injury-outline:before{content:"󱠖"}.mdi-account-key:before{content:"󰀋"}.mdi-account-key-outline:before{content:"󰯤"}.mdi-account-lock:before{content:"󱅞"}.mdi-account-lock-open:before{content:"󱥠"}.mdi-account-lock-open-outline:before{content:"󱥡"}.mdi-account-lock-outline:before{content:"󱅟"}.mdi-account-minus:before{content:"󰀍"}.mdi-account-minus-outline:before{content:"󰫬"}.mdi-account-multiple:before{content:"󰀎"}.mdi-account-multiple-check:before{content:"󰣅"}.mdi-account-multiple-check-outline:before{content:"󱇾"}.mdi-account-multiple-minus:before{content:"󰗓"}.mdi-account-multiple-minus-outline:before{content:"󰯥"}.mdi-account-multiple-outline:before{content:"󰀏"}.mdi-account-multiple-plus:before{content:"󰀐"}.mdi-account-multiple-plus-outline:before{content:"󰠀"}.mdi-account-multiple-remove:before{content:"󱈊"}.mdi-account-multiple-remove-outline:before{content:"󱈋"}.mdi-account-music:before{content:"󰠃"}.mdi-account-music-outline:before{content:"󰳩"}.mdi-account-network:before{content:"󰀑"}.mdi-account-network-off:before{content:"󱫱"}.mdi-account-network-off-outline:before{content:"󱫲"}.mdi-account-network-outline:before{content:"󰯦"}.mdi-account-off:before{content:"󰀒"}.mdi-account-off-outline:before{content:"󰯧"}.mdi-account-outline:before{content:"󰀓"}.mdi-account-plus:before{content:"󰀔"}.mdi-account-plus-outline:before{content:"󰠁"}.mdi-account-question:before{content:"󰭙"}.mdi-account-question-outline:before{content:"󰭚"}.mdi-account-reactivate:before{content:"󱔫"}.mdi-account-reactivate-outline:before{content:"󱔬"}.mdi-account-remove:before{content:"󰀕"}.mdi-account-remove-outline:before{content:"󰫭"}.mdi-account-school:before{content:"󱨠"}.mdi-account-school-outline:before{content:"󱨡"}.mdi-account-search:before{content:"󰀖"}.mdi-account-search-outline:before{content:"󰤵"}.mdi-account-settings:before{content:"󰘰"}.mdi-account-settings-outline:before{content:"󱃉"}.mdi-account-star:before{content:"󰀗"}.mdi-account-star-outline:before{content:"󰯨"}.mdi-account-supervisor:before{content:"󰪋"}.mdi-account-supervisor-circle:before{content:"󰪌"}.mdi-account-supervisor-circle-outline:before{content:"󱓬"}.mdi-account-supervisor-outline:before{content:"󱄭"}.mdi-account-switch:before{content:"󰀙"}.mdi-account-switch-outline:before{content:"󰓋"}.mdi-account-sync:before{content:"󱤛"}.mdi-account-sync-outline:before{content:"󱤜"}.mdi-account-tag:before{content:"󱰛"}.mdi-account-tag-outline:before{content:"󱰜"}.mdi-account-tie:before{content:"󰳣"}.mdi-account-tie-hat:before{content:"󱢘"}.mdi-account-tie-hat-outline:before{content:"󱢙"}.mdi-account-tie-outline:before{content:"󱃊"}.mdi-account-tie-voice:before{content:"󱌈"}.mdi-account-tie-voice-off:before{content:"󱌊"}.mdi-account-tie-voice-off-outline:before{content:"󱌋"}.mdi-account-tie-voice-outline:before{content:"󱌉"}.mdi-account-tie-woman:before{content:"󱪌"}.mdi-account-voice:before{content:"󰗋"}.mdi-account-voice-off:before{content:"󰻔"}.mdi-account-wrench:before{content:"󱢚"}.mdi-account-wrench-outline:before{content:"󱢛"}.mdi-adjust:before{content:"󰀚"}.mdi-advertisements:before{content:"󱤪"}.mdi-advertisements-off:before{content:"󱤫"}.mdi-air-conditioner:before{content:"󰀛"}.mdi-air-filter:before{content:"󰵃"}.mdi-air-horn:before{content:"󰶬"}.mdi-air-humidifier:before{content:"󱂙"}.mdi-air-humidifier-off:before{content:"󱑦"}.mdi-air-purifier:before{content:"󰵄"}.mdi-air-purifier-off:before{content:"󱭗"}.mdi-airbag:before{content:"󰯩"}.mdi-airballoon:before{content:"󰀜"}.mdi-airballoon-outline:before{content:"󱀋"}.mdi-airplane:before{content:"󰀝"}.mdi-airplane-alert:before{content:"󱡺"}.mdi-airplane-check:before{content:"󱡻"}.mdi-airplane-clock:before{content:"󱡼"}.mdi-airplane-cog:before{content:"󱡽"}.mdi-airplane-edit:before{content:"󱡾"}.mdi-airplane-landing:before{content:"󰗔"}.mdi-airplane-marker:before{content:"󱡿"}.mdi-airplane-minus:before{content:"󱢀"}.mdi-airplane-off:before{content:"󰀞"}.mdi-airplane-plus:before{content:"󱢁"}.mdi-airplane-remove:before{content:"󱢂"}.mdi-airplane-search:before{content:"󱢃"}.mdi-airplane-settings:before{content:"󱢄"}.mdi-airplane-takeoff:before{content:"󰗕"}.mdi-airport:before{content:"󰡋"}.mdi-alarm:before{content:"󰀠"}.mdi-alarm-bell:before{content:"󰞎"}.mdi-alarm-check:before{content:"󰀡"}.mdi-alarm-light:before{content:"󰞏"}.mdi-alarm-light-off:before{content:"󱜞"}.mdi-alarm-light-off-outline:before{content:"󱜟"}.mdi-alarm-light-outline:before{content:"󰯪"}.mdi-alarm-multiple:before{content:"󰀢"}.mdi-alarm-note:before{content:"󰹱"}.mdi-alarm-note-off:before{content:"󰹲"}.mdi-alarm-off:before{content:"󰀣"}.mdi-alarm-panel:before{content:"󱗄"}.mdi-alarm-panel-outline:before{content:"󱗅"}.mdi-alarm-plus:before{content:"󰀤"}.mdi-alarm-snooze:before{content:"󰚎"}.mdi-album:before{content:"󰀥"}.mdi-alert:before{content:"󰀦"}.mdi-alert-box:before{content:"󰀧"}.mdi-alert-box-outline:before{content:"󰳤"}.mdi-alert-circle:before{content:"󰀨"}.mdi-alert-circle-check:before{content:"󱇭"}.mdi-alert-circle-check-outline:before{content:"󱇮"}.mdi-alert-circle-outline:before{content:"󰗖"}.mdi-alert-decagram:before{content:"󰚽"}.mdi-alert-decagram-outline:before{content:"󰳥"}.mdi-alert-minus:before{content:"󱒻"}.mdi-alert-minus-outline:before{content:"󱒾"}.mdi-alert-octagon:before{content:"󰀩"}.mdi-alert-octagon-outline:before{content:"󰳦"}.mdi-alert-octagram:before{content:"󰝧"}.mdi-alert-octagram-outline:before{content:"󰳧"}.mdi-alert-outline:before{content:"󰀪"}.mdi-alert-plus:before{content:"󱒺"}.mdi-alert-plus-outline:before{content:"󱒽"}.mdi-alert-remove:before{content:"󱒼"}.mdi-alert-remove-outline:before{content:"󱒿"}.mdi-alert-rhombus:before{content:"󱇎"}.mdi-alert-rhombus-outline:before{content:"󱇏"}.mdi-alien:before{content:"󰢚"}.mdi-alien-outline:before{content:"󱃋"}.mdi-align-horizontal-center:before{content:"󱇃"}.mdi-align-horizontal-distribute:before{content:"󱥢"}.mdi-align-horizontal-left:before{content:"󱇂"}.mdi-align-horizontal-right:before{content:"󱇄"}.mdi-align-vertical-bottom:before{content:"󱇅"}.mdi-align-vertical-center:before{content:"󱇆"}.mdi-align-vertical-distribute:before{content:"󱥣"}.mdi-align-vertical-top:before{content:"󱇇"}.mdi-all-inclusive:before{content:"󰚾"}.mdi-all-inclusive-box:before{content:"󱢍"}.mdi-all-inclusive-box-outline:before{content:"󱢎"}.mdi-allergy:before{content:"󱉘"}.mdi-alpha:before{content:"󰀫"}.mdi-alpha-a:before{content:"󰫮"}.mdi-alpha-a-box:before{content:"󰬈"}.mdi-alpha-a-box-outline:before{content:"󰯫"}.mdi-alpha-a-circle:before{content:"󰯬"}.mdi-alpha-a-circle-outline:before{content:"󰯭"}.mdi-alpha-b:before{content:"󰫯"}.mdi-alpha-b-box:before{content:"󰬉"}.mdi-alpha-b-box-outline:before{content:"󰯮"}.mdi-alpha-b-circle:before{content:"󰯯"}.mdi-alpha-b-circle-outline:before{content:"󰯰"}.mdi-alpha-c:before{content:"󰫰"}.mdi-alpha-c-box:before{content:"󰬊"}.mdi-alpha-c-box-outline:before{content:"󰯱"}.mdi-alpha-c-circle:before{content:"󰯲"}.mdi-alpha-c-circle-outline:before{content:"󰯳"}.mdi-alpha-d:before{content:"󰫱"}.mdi-alpha-d-box:before{content:"󰬋"}.mdi-alpha-d-box-outline:before{content:"󰯴"}.mdi-alpha-d-circle:before{content:"󰯵"}.mdi-alpha-d-circle-outline:before{content:"󰯶"}.mdi-alpha-e:before{content:"󰫲"}.mdi-alpha-e-box:before{content:"󰬌"}.mdi-alpha-e-box-outline:before{content:"󰯷"}.mdi-alpha-e-circle:before{content:"󰯸"}.mdi-alpha-e-circle-outline:before{content:"󰯹"}.mdi-alpha-f:before{content:"󰫳"}.mdi-alpha-f-box:before{content:"󰬍"}.mdi-alpha-f-box-outline:before{content:"󰯺"}.mdi-alpha-f-circle:before{content:"󰯻"}.mdi-alpha-f-circle-outline:before{content:"󰯼"}.mdi-alpha-g:before{content:"󰫴"}.mdi-alpha-g-box:before{content:"󰬎"}.mdi-alpha-g-box-outline:before{content:"󰯽"}.mdi-alpha-g-circle:before{content:"󰯾"}.mdi-alpha-g-circle-outline:before{content:"󰯿"}.mdi-alpha-h:before{content:"󰫵"}.mdi-alpha-h-box:before{content:"󰬏"}.mdi-alpha-h-box-outline:before{content:"󰰀"}.mdi-alpha-h-circle:before{content:"󰰁"}.mdi-alpha-h-circle-outline:before{content:"󰰂"}.mdi-alpha-i:before{content:"󰫶"}.mdi-alpha-i-box:before{content:"󰬐"}.mdi-alpha-i-box-outline:before{content:"󰰃"}.mdi-alpha-i-circle:before{content:"󰰄"}.mdi-alpha-i-circle-outline:before{content:"󰰅"}.mdi-alpha-j:before{content:"󰫷"}.mdi-alpha-j-box:before{content:"󰬑"}.mdi-alpha-j-box-outline:before{content:"󰰆"}.mdi-alpha-j-circle:before{content:"󰰇"}.mdi-alpha-j-circle-outline:before{content:"󰰈"}.mdi-alpha-k:before{content:"󰫸"}.mdi-alpha-k-box:before{content:"󰬒"}.mdi-alpha-k-box-outline:before{content:"󰰉"}.mdi-alpha-k-circle:before{content:"󰰊"}.mdi-alpha-k-circle-outline:before{content:"󰰋"}.mdi-alpha-l:before{content:"󰫹"}.mdi-alpha-l-box:before{content:"󰬓"}.mdi-alpha-l-box-outline:before{content:"󰰌"}.mdi-alpha-l-circle:before{content:"󰰍"}.mdi-alpha-l-circle-outline:before{content:"󰰎"}.mdi-alpha-m:before{content:"󰫺"}.mdi-alpha-m-box:before{content:"󰬔"}.mdi-alpha-m-box-outline:before{content:"󰰏"}.mdi-alpha-m-circle:before{content:"󰰐"}.mdi-alpha-m-circle-outline:before{content:"󰰑"}.mdi-alpha-n:before{content:"󰫻"}.mdi-alpha-n-box:before{content:"󰬕"}.mdi-alpha-n-box-outline:before{content:"󰰒"}.mdi-alpha-n-circle:before{content:"󰰓"}.mdi-alpha-n-circle-outline:before{content:"󰰔"}.mdi-alpha-o:before{content:"󰫼"}.mdi-alpha-o-box:before{content:"󰬖"}.mdi-alpha-o-box-outline:before{content:"󰰕"}.mdi-alpha-o-circle:before{content:"󰰖"}.mdi-alpha-o-circle-outline:before{content:"󰰗"}.mdi-alpha-p:before{content:"󰫽"}.mdi-alpha-p-box:before{content:"󰬗"}.mdi-alpha-p-box-outline:before{content:"󰰘"}.mdi-alpha-p-circle:before{content:"󰰙"}.mdi-alpha-p-circle-outline:before{content:"󰰚"}.mdi-alpha-q:before{content:"󰫾"}.mdi-alpha-q-box:before{content:"󰬘"}.mdi-alpha-q-box-outline:before{content:"󰰛"}.mdi-alpha-q-circle:before{content:"󰰜"}.mdi-alpha-q-circle-outline:before{content:"󰰝"}.mdi-alpha-r:before{content:"󰫿"}.mdi-alpha-r-box:before{content:"󰬙"}.mdi-alpha-r-box-outline:before{content:"󰰞"}.mdi-alpha-r-circle:before{content:"󰰟"}.mdi-alpha-r-circle-outline:before{content:"󰰠"}.mdi-alpha-s:before{content:"󰬀"}.mdi-alpha-s-box:before{content:"󰬚"}.mdi-alpha-s-box-outline:before{content:"󰰡"}.mdi-alpha-s-circle:before{content:"󰰢"}.mdi-alpha-s-circle-outline:before{content:"󰰣"}.mdi-alpha-t:before{content:"󰬁"}.mdi-alpha-t-box:before{content:"󰬛"}.mdi-alpha-t-box-outline:before{content:"󰰤"}.mdi-alpha-t-circle:before{content:"󰰥"}.mdi-alpha-t-circle-outline:before{content:"󰰦"}.mdi-alpha-u:before{content:"󰬂"}.mdi-alpha-u-box:before{content:"󰬜"}.mdi-alpha-u-box-outline:before{content:"󰰧"}.mdi-alpha-u-circle:before{content:"󰰨"}.mdi-alpha-u-circle-outline:before{content:"󰰩"}.mdi-alpha-v:before{content:"󰬃"}.mdi-alpha-v-box:before{content:"󰬝"}.mdi-alpha-v-box-outline:before{content:"󰰪"}.mdi-alpha-v-circle:before{content:"󰰫"}.mdi-alpha-v-circle-outline:before{content:"󰰬"}.mdi-alpha-w:before{content:"󰬄"}.mdi-alpha-w-box:before{content:"󰬞"}.mdi-alpha-w-box-outline:before{content:"󰰭"}.mdi-alpha-w-circle:before{content:"󰰮"}.mdi-alpha-w-circle-outline:before{content:"󰰯"}.mdi-alpha-x:before{content:"󰬅"}.mdi-alpha-x-box:before{content:"󰬟"}.mdi-alpha-x-box-outline:before{content:"󰰰"}.mdi-alpha-x-circle:before{content:"󰰱"}.mdi-alpha-x-circle-outline:before{content:"󰰲"}.mdi-alpha-y:before{content:"󰬆"}.mdi-alpha-y-box:before{content:"󰬠"}.mdi-alpha-y-box-outline:before{content:"󰰳"}.mdi-alpha-y-circle:before{content:"󰰴"}.mdi-alpha-y-circle-outline:before{content:"󰰵"}.mdi-alpha-z:before{content:"󰬇"}.mdi-alpha-z-box:before{content:"󰬡"}.mdi-alpha-z-box-outline:before{content:"󰰶"}.mdi-alpha-z-circle:before{content:"󰰷"}.mdi-alpha-z-circle-outline:before{content:"󰰸"}.mdi-alphabet-aurebesh:before{content:"󱌬"}.mdi-alphabet-cyrillic:before{content:"󱌭"}.mdi-alphabet-greek:before{content:"󱌮"}.mdi-alphabet-latin:before{content:"󱌯"}.mdi-alphabet-piqad:before{content:"󱌰"}.mdi-alphabet-tengwar:before{content:"󱌷"}.mdi-alphabetical:before{content:"󰀬"}.mdi-alphabetical-off:before{content:"󱀌"}.mdi-alphabetical-variant:before{content:"󱀍"}.mdi-alphabetical-variant-off:before{content:"󱀎"}.mdi-altimeter:before{content:"󰗗"}.mdi-ambulance:before{content:"󰀯"}.mdi-ammunition:before{content:"󰳨"}.mdi-ampersand:before{content:"󰪍"}.mdi-amplifier:before{content:"󰀰"}.mdi-amplifier-off:before{content:"󱆵"}.mdi-anchor:before{content:"󰀱"}.mdi-android:before{content:"󰀲"}.mdi-android-studio:before{content:"󰀴"}.mdi-angle-acute:before{content:"󰤷"}.mdi-angle-obtuse:before{content:"󰤸"}.mdi-angle-right:before{content:"󰤹"}.mdi-angular:before{content:"󰚲"}.mdi-angularjs:before{content:"󰚿"}.mdi-animation:before{content:"󰗘"}.mdi-animation-outline:before{content:"󰪏"}.mdi-animation-play:before{content:"󰤺"}.mdi-animation-play-outline:before{content:"󰪐"}.mdi-ansible:before{content:"󱂚"}.mdi-antenna:before{content:"󱄙"}.mdi-anvil:before{content:"󰢛"}.mdi-apache-kafka:before{content:"󱀏"}.mdi-api:before{content:"󱂛"}.mdi-api-off:before{content:"󱉗"}.mdi-apple:before{content:"󰀵"}.mdi-apple-finder:before{content:"󰀶"}.mdi-apple-icloud:before{content:"󰀸"}.mdi-apple-ios:before{content:"󰀷"}.mdi-apple-keyboard-caps:before{content:"󰘲"}.mdi-apple-keyboard-command:before{content:"󰘳"}.mdi-apple-keyboard-control:before{content:"󰘴"}.mdi-apple-keyboard-option:before{content:"󰘵"}.mdi-apple-keyboard-shift:before{content:"󰘶"}.mdi-apple-safari:before{content:"󰀹"}.mdi-application:before{content:"󰣆"}.mdi-application-array:before{content:"󱃵"}.mdi-application-array-outline:before{content:"󱃶"}.mdi-application-braces:before{content:"󱃷"}.mdi-application-braces-outline:before{content:"󱃸"}.mdi-application-brackets:before{content:"󰲋"}.mdi-application-brackets-outline:before{content:"󰲌"}.mdi-application-cog:before{content:"󰙵"}.mdi-application-cog-outline:before{content:"󱕷"}.mdi-application-edit:before{content:"󰂮"}.mdi-application-edit-outline:before{content:"󰘙"}.mdi-application-export:before{content:"󰶭"}.mdi-application-import:before{content:"󰶮"}.mdi-application-outline:before{content:"󰘔"}.mdi-application-parentheses:before{content:"󱃹"}.mdi-application-parentheses-outline:before{content:"󱃺"}.mdi-application-settings:before{content:"󰭠"}.mdi-application-settings-outline:before{content:"󱕕"}.mdi-application-variable:before{content:"󱃻"}.mdi-application-variable-outline:before{content:"󱃼"}.mdi-approximately-equal:before{content:"󰾞"}.mdi-approximately-equal-box:before{content:"󰾟"}.mdi-apps:before{content:"󰀻"}.mdi-apps-box:before{content:"󰵆"}.mdi-arch:before{content:"󰣇"}.mdi-archive:before{content:"󰀼"}.mdi-archive-alert:before{content:"󱓽"}.mdi-archive-alert-outline:before{content:"󱓾"}.mdi-archive-arrow-down:before{content:"󱉙"}.mdi-archive-arrow-down-outline:before{content:"󱉚"}.mdi-archive-arrow-up:before{content:"󱉛"}.mdi-archive-arrow-up-outline:before{content:"󱉜"}.mdi-archive-cancel:before{content:"󱝋"}.mdi-archive-cancel-outline:before{content:"󱝌"}.mdi-archive-check:before{content:"󱝍"}.mdi-archive-check-outline:before{content:"󱝎"}.mdi-archive-clock:before{content:"󱝏"}.mdi-archive-clock-outline:before{content:"󱝐"}.mdi-archive-cog:before{content:"󱝑"}.mdi-archive-cog-outline:before{content:"󱝒"}.mdi-archive-edit:before{content:"󱝓"}.mdi-archive-edit-outline:before{content:"󱝔"}.mdi-archive-eye:before{content:"󱝕"}.mdi-archive-eye-outline:before{content:"󱝖"}.mdi-archive-lock:before{content:"󱝗"}.mdi-archive-lock-open:before{content:"󱝘"}.mdi-archive-lock-open-outline:before{content:"󱝙"}.mdi-archive-lock-outline:before{content:"󱝚"}.mdi-archive-marker:before{content:"󱝛"}.mdi-archive-marker-outline:before{content:"󱝜"}.mdi-archive-minus:before{content:"󱝝"}.mdi-archive-minus-outline:before{content:"󱝞"}.mdi-archive-music:before{content:"󱝟"}.mdi-archive-music-outline:before{content:"󱝠"}.mdi-archive-off:before{content:"󱝡"}.mdi-archive-off-outline:before{content:"󱝢"}.mdi-archive-outline:before{content:"󱈎"}.mdi-archive-plus:before{content:"󱝣"}.mdi-archive-plus-outline:before{content:"󱝤"}.mdi-archive-refresh:before{content:"󱝥"}.mdi-archive-refresh-outline:before{content:"󱝦"}.mdi-archive-remove:before{content:"󱝧"}.mdi-archive-remove-outline:before{content:"󱝨"}.mdi-archive-search:before{content:"󱝩"}.mdi-archive-search-outline:before{content:"󱝪"}.mdi-archive-settings:before{content:"󱝫"}.mdi-archive-settings-outline:before{content:"󱝬"}.mdi-archive-star:before{content:"󱝭"}.mdi-archive-star-outline:before{content:"󱝮"}.mdi-archive-sync:before{content:"󱝯"}.mdi-archive-sync-outline:before{content:"󱝰"}.mdi-arm-flex:before{content:"󰿗"}.mdi-arm-flex-outline:before{content:"󰿖"}.mdi-arrange-bring-forward:before{content:"󰀽"}.mdi-arrange-bring-to-front:before{content:"󰀾"}.mdi-arrange-send-backward:before{content:"󰀿"}.mdi-arrange-send-to-back:before{content:"󰁀"}.mdi-arrow-all:before{content:"󰁁"}.mdi-arrow-bottom-left:before{content:"󰁂"}.mdi-arrow-bottom-left-bold-box:before{content:"󱥤"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"󱥥"}.mdi-arrow-bottom-left-bold-outline:before{content:"󰦷"}.mdi-arrow-bottom-left-thick:before{content:"󰦸"}.mdi-arrow-bottom-left-thin:before{content:"󱦶"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"󱖖"}.mdi-arrow-bottom-right:before{content:"󰁃"}.mdi-arrow-bottom-right-bold-box:before{content:"󱥦"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"󱥧"}.mdi-arrow-bottom-right-bold-outline:before{content:"󰦹"}.mdi-arrow-bottom-right-thick:before{content:"󰦺"}.mdi-arrow-bottom-right-thin:before{content:"󱦷"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"󱖕"}.mdi-arrow-collapse:before{content:"󰘕"}.mdi-arrow-collapse-all:before{content:"󰁄"}.mdi-arrow-collapse-down:before{content:"󰞒"}.mdi-arrow-collapse-horizontal:before{content:"󰡌"}.mdi-arrow-collapse-left:before{content:"󰞓"}.mdi-arrow-collapse-right:before{content:"󰞔"}.mdi-arrow-collapse-up:before{content:"󰞕"}.mdi-arrow-collapse-vertical:before{content:"󰡍"}.mdi-arrow-decision:before{content:"󰦻"}.mdi-arrow-decision-auto:before{content:"󰦼"}.mdi-arrow-decision-auto-outline:before{content:"󰦽"}.mdi-arrow-decision-outline:before{content:"󰦾"}.mdi-arrow-down:before{content:"󰁅"}.mdi-arrow-down-bold:before{content:"󰜮"}.mdi-arrow-down-bold-box:before{content:"󰜯"}.mdi-arrow-down-bold-box-outline:before{content:"󰜰"}.mdi-arrow-down-bold-circle:before{content:"󰁇"}.mdi-arrow-down-bold-circle-outline:before{content:"󰁈"}.mdi-arrow-down-bold-hexagon-outline:before{content:"󰁉"}.mdi-arrow-down-bold-outline:before{content:"󰦿"}.mdi-arrow-down-box:before{content:"󰛀"}.mdi-arrow-down-circle:before{content:"󰳛"}.mdi-arrow-down-circle-outline:before{content:"󰳜"}.mdi-arrow-down-drop-circle:before{content:"󰁊"}.mdi-arrow-down-drop-circle-outline:before{content:"󰁋"}.mdi-arrow-down-left:before{content:"󱞡"}.mdi-arrow-down-left-bold:before{content:"󱞢"}.mdi-arrow-down-right:before{content:"󱞣"}.mdi-arrow-down-right-bold:before{content:"󱞤"}.mdi-arrow-down-thick:before{content:"󰁆"}.mdi-arrow-down-thin:before{content:"󱦳"}.mdi-arrow-down-thin-circle-outline:before{content:"󱖙"}.mdi-arrow-expand:before{content:"󰘖"}.mdi-arrow-expand-all:before{content:"󰁌"}.mdi-arrow-expand-down:before{content:"󰞖"}.mdi-arrow-expand-horizontal:before{content:"󰡎"}.mdi-arrow-expand-left:before{content:"󰞗"}.mdi-arrow-expand-right:before{content:"󰞘"}.mdi-arrow-expand-up:before{content:"󰞙"}.mdi-arrow-expand-vertical:before{content:"󰡏"}.mdi-arrow-horizontal-lock:before{content:"󱅛"}.mdi-arrow-left:before{content:"󰁍"}.mdi-arrow-left-bold:before{content:"󰜱"}.mdi-arrow-left-bold-box:before{content:"󰜲"}.mdi-arrow-left-bold-box-outline:before{content:"󰜳"}.mdi-arrow-left-bold-circle:before{content:"󰁏"}.mdi-arrow-left-bold-circle-outline:before{content:"󰁐"}.mdi-arrow-left-bold-hexagon-outline:before{content:"󰁑"}.mdi-arrow-left-bold-outline:before{content:"󰧀"}.mdi-arrow-left-bottom:before{content:"󱞥"}.mdi-arrow-left-bottom-bold:before{content:"󱞦"}.mdi-arrow-left-box:before{content:"󰛁"}.mdi-arrow-left-circle:before{content:"󰳝"}.mdi-arrow-left-circle-outline:before{content:"󰳞"}.mdi-arrow-left-drop-circle:before{content:"󰁒"}.mdi-arrow-left-drop-circle-outline:before{content:"󰁓"}.mdi-arrow-left-right:before{content:"󰹳"}.mdi-arrow-left-right-bold:before{content:"󰹴"}.mdi-arrow-left-right-bold-outline:before{content:"󰧁"}.mdi-arrow-left-thick:before{content:"󰁎"}.mdi-arrow-left-thin:before{content:"󱦱"}.mdi-arrow-left-thin-circle-outline:before{content:"󱖚"}.mdi-arrow-left-top:before{content:"󱞧"}.mdi-arrow-left-top-bold:before{content:"󱞨"}.mdi-arrow-oscillating:before{content:"󱲑"}.mdi-arrow-oscillating-off:before{content:"󱲒"}.mdi-arrow-projectile:before{content:"󱡀"}.mdi-arrow-projectile-multiple:before{content:"󱠿"}.mdi-arrow-right:before{content:"󰁔"}.mdi-arrow-right-bold:before{content:"󰜴"}.mdi-arrow-right-bold-box:before{content:"󰜵"}.mdi-arrow-right-bold-box-outline:before{content:"󰜶"}.mdi-arrow-right-bold-circle:before{content:"󰁖"}.mdi-arrow-right-bold-circle-outline:before{content:"󰁗"}.mdi-arrow-right-bold-hexagon-outline:before{content:"󰁘"}.mdi-arrow-right-bold-outline:before{content:"󰧂"}.mdi-arrow-right-bottom:before{content:"󱞩"}.mdi-arrow-right-bottom-bold:before{content:"󱞪"}.mdi-arrow-right-box:before{content:"󰛂"}.mdi-arrow-right-circle:before{content:"󰳟"}.mdi-arrow-right-circle-outline:before{content:"󰳠"}.mdi-arrow-right-drop-circle:before{content:"󰁙"}.mdi-arrow-right-drop-circle-outline:before{content:"󰁚"}.mdi-arrow-right-thick:before{content:"󰁕"}.mdi-arrow-right-thin:before{content:"󱦰"}.mdi-arrow-right-thin-circle-outline:before{content:"󱖘"}.mdi-arrow-right-top:before{content:"󱞫"}.mdi-arrow-right-top-bold:before{content:"󱞬"}.mdi-arrow-split-horizontal:before{content:"󰤻"}.mdi-arrow-split-vertical:before{content:"󰤼"}.mdi-arrow-top-left:before{content:"󰁛"}.mdi-arrow-top-left-bold-box:before{content:"󱥨"}.mdi-arrow-top-left-bold-box-outline:before{content:"󱥩"}.mdi-arrow-top-left-bold-outline:before{content:"󰧃"}.mdi-arrow-top-left-bottom-right:before{content:"󰹵"}.mdi-arrow-top-left-bottom-right-bold:before{content:"󰹶"}.mdi-arrow-top-left-thick:before{content:"󰧄"}.mdi-arrow-top-left-thin:before{content:"󱦵"}.mdi-arrow-top-left-thin-circle-outline:before{content:"󱖓"}.mdi-arrow-top-right:before{content:"󰁜"}.mdi-arrow-top-right-bold-box:before{content:"󱥪"}.mdi-arrow-top-right-bold-box-outline:before{content:"󱥫"}.mdi-arrow-top-right-bold-outline:before{content:"󰧅"}.mdi-arrow-top-right-bottom-left:before{content:"󰹷"}.mdi-arrow-top-right-bottom-left-bold:before{content:"󰹸"}.mdi-arrow-top-right-thick:before{content:"󰧆"}.mdi-arrow-top-right-thin:before{content:"󱦴"}.mdi-arrow-top-right-thin-circle-outline:before{content:"󱖔"}.mdi-arrow-u-down-left:before{content:"󱞭"}.mdi-arrow-u-down-left-bold:before{content:"󱞮"}.mdi-arrow-u-down-right:before{content:"󱞯"}.mdi-arrow-u-down-right-bold:before{content:"󱞰"}.mdi-arrow-u-left-bottom:before{content:"󱞱"}.mdi-arrow-u-left-bottom-bold:before{content:"󱞲"}.mdi-arrow-u-left-top:before{content:"󱞳"}.mdi-arrow-u-left-top-bold:before{content:"󱞴"}.mdi-arrow-u-right-bottom:before{content:"󱞵"}.mdi-arrow-u-right-bottom-bold:before{content:"󱞶"}.mdi-arrow-u-right-top:before{content:"󱞷"}.mdi-arrow-u-right-top-bold:before{content:"󱞸"}.mdi-arrow-u-up-left:before{content:"󱞹"}.mdi-arrow-u-up-left-bold:before{content:"󱞺"}.mdi-arrow-u-up-right:before{content:"󱞻"}.mdi-arrow-u-up-right-bold:before{content:"󱞼"}.mdi-arrow-up:before{content:"󰁝"}.mdi-arrow-up-bold:before{content:"󰜷"}.mdi-arrow-up-bold-box:before{content:"󰜸"}.mdi-arrow-up-bold-box-outline:before{content:"󰜹"}.mdi-arrow-up-bold-circle:before{content:"󰁟"}.mdi-arrow-up-bold-circle-outline:before{content:"󰁠"}.mdi-arrow-up-bold-hexagon-outline:before{content:"󰁡"}.mdi-arrow-up-bold-outline:before{content:"󰧇"}.mdi-arrow-up-box:before{content:"󰛃"}.mdi-arrow-up-circle:before{content:"󰳡"}.mdi-arrow-up-circle-outline:before{content:"󰳢"}.mdi-arrow-up-down:before{content:"󰹹"}.mdi-arrow-up-down-bold:before{content:"󰹺"}.mdi-arrow-up-down-bold-outline:before{content:"󰧈"}.mdi-arrow-up-drop-circle:before{content:"󰁢"}.mdi-arrow-up-drop-circle-outline:before{content:"󰁣"}.mdi-arrow-up-left:before{content:"󱞽"}.mdi-arrow-up-left-bold:before{content:"󱞾"}.mdi-arrow-up-right:before{content:"󱞿"}.mdi-arrow-up-right-bold:before{content:"󱟀"}.mdi-arrow-up-thick:before{content:"󰁞"}.mdi-arrow-up-thin:before{content:"󱦲"}.mdi-arrow-up-thin-circle-outline:before{content:"󱖗"}.mdi-arrow-vertical-lock:before{content:"󱅜"}.mdi-artboard:before{content:"󱮚"}.mdi-artstation:before{content:"󰭛"}.mdi-aspect-ratio:before{content:"󰨤"}.mdi-assistant:before{content:"󰁤"}.mdi-asterisk:before{content:"󰛄"}.mdi-asterisk-circle-outline:before{content:"󱨧"}.mdi-at:before{content:"󰁥"}.mdi-atlassian:before{content:"󰠄"}.mdi-atm:before{content:"󰵇"}.mdi-atom:before{content:"󰝨"}.mdi-atom-variant:before{content:"󰹻"}.mdi-attachment:before{content:"󰁦"}.mdi-attachment-check:before{content:"󱫁"}.mdi-attachment-lock:before{content:"󱧄"}.mdi-attachment-minus:before{content:"󱫂"}.mdi-attachment-off:before{content:"󱫃"}.mdi-attachment-plus:before{content:"󱫄"}.mdi-attachment-remove:before{content:"󱫅"}.mdi-atv:before{content:"󱭰"}.mdi-audio-input-rca:before{content:"󱡫"}.mdi-audio-input-stereo-minijack:before{content:"󱡬"}.mdi-audio-input-xlr:before{content:"󱡭"}.mdi-audio-video:before{content:"󰤽"}.mdi-audio-video-off:before{content:"󱆶"}.mdi-augmented-reality:before{content:"󰡐"}.mdi-aurora:before{content:"󱮹"}.mdi-auto-download:before{content:"󱍾"}.mdi-auto-fix:before{content:"󰁨"}.mdi-auto-mode:before{content:"󱰠"}.mdi-auto-upload:before{content:"󰁩"}.mdi-autorenew:before{content:"󰁪"}.mdi-autorenew-off:before{content:"󱧧"}.mdi-av-timer:before{content:"󰁫"}.mdi-awning:before{content:"󱮇"}.mdi-awning-outline:before{content:"󱮈"}.mdi-aws:before{content:"󰸏"}.mdi-axe:before{content:"󰣈"}.mdi-axe-battle:before{content:"󱡂"}.mdi-axis:before{content:"󰵈"}.mdi-axis-arrow:before{content:"󰵉"}.mdi-axis-arrow-info:before{content:"󱐎"}.mdi-axis-arrow-lock:before{content:"󰵊"}.mdi-axis-lock:before{content:"󰵋"}.mdi-axis-x-arrow:before{content:"󰵌"}.mdi-axis-x-arrow-lock:before{content:"󰵍"}.mdi-axis-x-rotate-clockwise:before{content:"󰵎"}.mdi-axis-x-rotate-counterclockwise:before{content:"󰵏"}.mdi-axis-x-y-arrow-lock:before{content:"󰵐"}.mdi-axis-y-arrow:before{content:"󰵑"}.mdi-axis-y-arrow-lock:before{content:"󰵒"}.mdi-axis-y-rotate-clockwise:before{content:"󰵓"}.mdi-axis-y-rotate-counterclockwise:before{content:"󰵔"}.mdi-axis-z-arrow:before{content:"󰵕"}.mdi-axis-z-arrow-lock:before{content:"󰵖"}.mdi-axis-z-rotate-clockwise:before{content:"󰵗"}.mdi-axis-z-rotate-counterclockwise:before{content:"󰵘"}.mdi-babel:before{content:"󰨥"}.mdi-baby:before{content:"󰁬"}.mdi-baby-bottle:before{content:"󰼹"}.mdi-baby-bottle-outline:before{content:"󰼺"}.mdi-baby-buggy:before{content:"󱏠"}.mdi-baby-buggy-off:before{content:"󱫳"}.mdi-baby-carriage:before{content:"󰚏"}.mdi-baby-carriage-off:before{content:"󰾠"}.mdi-baby-face:before{content:"󰹼"}.mdi-baby-face-outline:before{content:"󰹽"}.mdi-backburger:before{content:"󰁭"}.mdi-backspace:before{content:"󰁮"}.mdi-backspace-outline:before{content:"󰭜"}.mdi-backspace-reverse:before{content:"󰹾"}.mdi-backspace-reverse-outline:before{content:"󰹿"}.mdi-backup-restore:before{content:"󰁯"}.mdi-bacteria:before{content:"󰻕"}.mdi-bacteria-outline:before{content:"󰻖"}.mdi-badge-account:before{content:"󰶧"}.mdi-badge-account-alert:before{content:"󰶨"}.mdi-badge-account-alert-outline:before{content:"󰶩"}.mdi-badge-account-horizontal:before{content:"󰸍"}.mdi-badge-account-horizontal-outline:before{content:"󰸎"}.mdi-badge-account-outline:before{content:"󰶪"}.mdi-badminton:before{content:"󰡑"}.mdi-bag-carry-on:before{content:"󰼻"}.mdi-bag-carry-on-check:before{content:"󰵥"}.mdi-bag-carry-on-off:before{content:"󰼼"}.mdi-bag-checked:before{content:"󰼽"}.mdi-bag-personal:before{content:"󰸐"}.mdi-bag-personal-off:before{content:"󰸑"}.mdi-bag-personal-off-outline:before{content:"󰸒"}.mdi-bag-personal-outline:before{content:"󰸓"}.mdi-bag-personal-plus:before{content:"󱲤"}.mdi-bag-personal-plus-outline:before{content:"󱲥"}.mdi-bag-personal-tag:before{content:"󱬌"}.mdi-bag-personal-tag-outline:before{content:"󱬍"}.mdi-bag-suitcase:before{content:"󱖋"}.mdi-bag-suitcase-off:before{content:"󱖍"}.mdi-bag-suitcase-off-outline:before{content:"󱖎"}.mdi-bag-suitcase-outline:before{content:"󱖌"}.mdi-baguette:before{content:"󰼾"}.mdi-balcony:before{content:"󱠗"}.mdi-balloon:before{content:"󰨦"}.mdi-ballot:before{content:"󰧉"}.mdi-ballot-outline:before{content:"󰧊"}.mdi-ballot-recount:before{content:"󰰹"}.mdi-ballot-recount-outline:before{content:"󰰺"}.mdi-bandage:before{content:"󰶯"}.mdi-bank:before{content:"󰁰"}.mdi-bank-check:before{content:"󱙕"}.mdi-bank-circle:before{content:"󱰃"}.mdi-bank-circle-outline:before{content:"󱰄"}.mdi-bank-minus:before{content:"󰶰"}.mdi-bank-off:before{content:"󱙖"}.mdi-bank-off-outline:before{content:"󱙗"}.mdi-bank-outline:before{content:"󰺀"}.mdi-bank-plus:before{content:"󰶱"}.mdi-bank-remove:before{content:"󰶲"}.mdi-bank-transfer:before{content:"󰨧"}.mdi-bank-transfer-in:before{content:"󰨨"}.mdi-bank-transfer-out:before{content:"󰨩"}.mdi-barcode:before{content:"󰁱"}.mdi-barcode-off:before{content:"󱈶"}.mdi-barcode-scan:before{content:"󰁲"}.mdi-barley:before{content:"󰁳"}.mdi-barley-off:before{content:"󰭝"}.mdi-barn:before{content:"󰭞"}.mdi-barrel:before{content:"󰁴"}.mdi-barrel-outline:before{content:"󱨨"}.mdi-baseball:before{content:"󰡒"}.mdi-baseball-bat:before{content:"󰡓"}.mdi-baseball-diamond:before{content:"󱗬"}.mdi-baseball-diamond-outline:before{content:"󱗭"}.mdi-baseball-outline:before{content:"󱱚"}.mdi-bash:before{content:"󱆃"}.mdi-basket:before{content:"󰁶"}.mdi-basket-check:before{content:"󱣥"}.mdi-basket-check-outline:before{content:"󱣦"}.mdi-basket-fill:before{content:"󰁷"}.mdi-basket-minus:before{content:"󱔣"}.mdi-basket-minus-outline:before{content:"󱔤"}.mdi-basket-off:before{content:"󱔥"}.mdi-basket-off-outline:before{content:"󱔦"}.mdi-basket-outline:before{content:"󱆁"}.mdi-basket-plus:before{content:"󱔧"}.mdi-basket-plus-outline:before{content:"󱔨"}.mdi-basket-remove:before{content:"󱔩"}.mdi-basket-remove-outline:before{content:"󱔪"}.mdi-basket-unfill:before{content:"󰁸"}.mdi-basketball:before{content:"󰠆"}.mdi-basketball-hoop:before{content:"󰰻"}.mdi-basketball-hoop-outline:before{content:"󰰼"}.mdi-bat:before{content:"󰭟"}.mdi-bathtub:before{content:"󱠘"}.mdi-bathtub-outline:before{content:"󱠙"}.mdi-battery:before{content:"󰁹"}.mdi-battery-10:before{content:"󰁺"}.mdi-battery-10-bluetooth:before{content:"󰤾"}.mdi-battery-20:before{content:"󰁻"}.mdi-battery-20-bluetooth:before{content:"󰤿"}.mdi-battery-30:before{content:"󰁼"}.mdi-battery-30-bluetooth:before{content:"󰥀"}.mdi-battery-40:before{content:"󰁽"}.mdi-battery-40-bluetooth:before{content:"󰥁"}.mdi-battery-50:before{content:"󰁾"}.mdi-battery-50-bluetooth:before{content:"󰥂"}.mdi-battery-60:before{content:"󰁿"}.mdi-battery-60-bluetooth:before{content:"󰥃"}.mdi-battery-70:before{content:"󰂀"}.mdi-battery-70-bluetooth:before{content:"󰥄"}.mdi-battery-80:before{content:"󰂁"}.mdi-battery-80-bluetooth:before{content:"󰥅"}.mdi-battery-90:before{content:"󰂂"}.mdi-battery-90-bluetooth:before{content:"󰥆"}.mdi-battery-alert:before{content:"󰂃"}.mdi-battery-alert-bluetooth:before{content:"󰥇"}.mdi-battery-alert-variant:before{content:"󱃌"}.mdi-battery-alert-variant-outline:before{content:"󱃍"}.mdi-battery-arrow-down:before{content:"󱟞"}.mdi-battery-arrow-down-outline:before{content:"󱟟"}.mdi-battery-arrow-up:before{content:"󱟠"}.mdi-battery-arrow-up-outline:before{content:"󱟡"}.mdi-battery-bluetooth:before{content:"󰥈"}.mdi-battery-bluetooth-variant:before{content:"󰥉"}.mdi-battery-charging:before{content:"󰂄"}.mdi-battery-charging-10:before{content:"󰢜"}.mdi-battery-charging-100:before{content:"󰂅"}.mdi-battery-charging-20:before{content:"󰂆"}.mdi-battery-charging-30:before{content:"󰂇"}.mdi-battery-charging-40:before{content:"󰂈"}.mdi-battery-charging-50:before{content:"󰢝"}.mdi-battery-charging-60:before{content:"󰂉"}.mdi-battery-charging-70:before{content:"󰢞"}.mdi-battery-charging-80:before{content:"󰂊"}.mdi-battery-charging-90:before{content:"󰂋"}.mdi-battery-charging-high:before{content:"󱊦"}.mdi-battery-charging-low:before{content:"󱊤"}.mdi-battery-charging-medium:before{content:"󱊥"}.mdi-battery-charging-outline:before{content:"󰢟"}.mdi-battery-charging-wireless:before{content:"󰠇"}.mdi-battery-charging-wireless-10:before{content:"󰠈"}.mdi-battery-charging-wireless-20:before{content:"󰠉"}.mdi-battery-charging-wireless-30:before{content:"󰠊"}.mdi-battery-charging-wireless-40:before{content:"󰠋"}.mdi-battery-charging-wireless-50:before{content:"󰠌"}.mdi-battery-charging-wireless-60:before{content:"󰠍"}.mdi-battery-charging-wireless-70:before{content:"󰠎"}.mdi-battery-charging-wireless-80:before{content:"󰠏"}.mdi-battery-charging-wireless-90:before{content:"󰠐"}.mdi-battery-charging-wireless-alert:before{content:"󰠑"}.mdi-battery-charging-wireless-outline:before{content:"󰠒"}.mdi-battery-check:before{content:"󱟢"}.mdi-battery-check-outline:before{content:"󱟣"}.mdi-battery-clock:before{content:"󱧥"}.mdi-battery-clock-outline:before{content:"󱧦"}.mdi-battery-heart:before{content:"󱈏"}.mdi-battery-heart-outline:before{content:"󱈐"}.mdi-battery-heart-variant:before{content:"󱈑"}.mdi-battery-high:before{content:"󱊣"}.mdi-battery-lock:before{content:"󱞜"}.mdi-battery-lock-open:before{content:"󱞝"}.mdi-battery-low:before{content:"󱊡"}.mdi-battery-medium:before{content:"󱊢"}.mdi-battery-minus:before{content:"󱟤"}.mdi-battery-minus-outline:before{content:"󱟥"}.mdi-battery-minus-variant:before{content:"󰂌"}.mdi-battery-negative:before{content:"󰂍"}.mdi-battery-off:before{content:"󱉝"}.mdi-battery-off-outline:before{content:"󱉞"}.mdi-battery-outline:before{content:"󰂎"}.mdi-battery-plus:before{content:"󱟦"}.mdi-battery-plus-outline:before{content:"󱟧"}.mdi-battery-plus-variant:before{content:"󰂏"}.mdi-battery-positive:before{content:"󰂐"}.mdi-battery-remove:before{content:"󱟨"}.mdi-battery-remove-outline:before{content:"󱟩"}.mdi-battery-sync:before{content:"󱠴"}.mdi-battery-sync-outline:before{content:"󱠵"}.mdi-battery-unknown:before{content:"󰂑"}.mdi-battery-unknown-bluetooth:before{content:"󰥊"}.mdi-beach:before{content:"󰂒"}.mdi-beaker:before{content:"󰳪"}.mdi-beaker-alert:before{content:"󱈩"}.mdi-beaker-alert-outline:before{content:"󱈪"}.mdi-beaker-check:before{content:"󱈫"}.mdi-beaker-check-outline:before{content:"󱈬"}.mdi-beaker-minus:before{content:"󱈭"}.mdi-beaker-minus-outline:before{content:"󱈮"}.mdi-beaker-outline:before{content:"󰚐"}.mdi-beaker-plus:before{content:"󱈯"}.mdi-beaker-plus-outline:before{content:"󱈰"}.mdi-beaker-question:before{content:"󱈱"}.mdi-beaker-question-outline:before{content:"󱈲"}.mdi-beaker-remove:before{content:"󱈳"}.mdi-beaker-remove-outline:before{content:"󱈴"}.mdi-bed:before{content:"󰋣"}.mdi-bed-clock:before{content:"󱮔"}.mdi-bed-double:before{content:"󰿔"}.mdi-bed-double-outline:before{content:"󰿓"}.mdi-bed-empty:before{content:"󰢠"}.mdi-bed-king:before{content:"󰿒"}.mdi-bed-king-outline:before{content:"󰿑"}.mdi-bed-outline:before{content:"󰂙"}.mdi-bed-queen:before{content:"󰿐"}.mdi-bed-queen-outline:before{content:"󰿛"}.mdi-bed-single:before{content:"󱁭"}.mdi-bed-single-outline:before{content:"󱁮"}.mdi-bee:before{content:"󰾡"}.mdi-bee-flower:before{content:"󰾢"}.mdi-beehive-off-outline:before{content:"󱏭"}.mdi-beehive-outline:before{content:"󱃎"}.mdi-beekeeper:before{content:"󱓢"}.mdi-beer:before{content:"󰂘"}.mdi-beer-outline:before{content:"󱌌"}.mdi-bell:before{content:"󰂚"}.mdi-bell-alert:before{content:"󰵙"}.mdi-bell-alert-outline:before{content:"󰺁"}.mdi-bell-badge:before{content:"󱅫"}.mdi-bell-badge-outline:before{content:"󰅸"}.mdi-bell-cancel:before{content:"󱏧"}.mdi-bell-cancel-outline:before{content:"󱏨"}.mdi-bell-check:before{content:"󱇥"}.mdi-bell-check-outline:before{content:"󱇦"}.mdi-bell-circle:before{content:"󰵚"}.mdi-bell-circle-outline:before{content:"󰵛"}.mdi-bell-cog:before{content:"󱨩"}.mdi-bell-cog-outline:before{content:"󱨪"}.mdi-bell-minus:before{content:"󱏩"}.mdi-bell-minus-outline:before{content:"󱏪"}.mdi-bell-off:before{content:"󰂛"}.mdi-bell-off-outline:before{content:"󰪑"}.mdi-bell-outline:before{content:"󰂜"}.mdi-bell-plus:before{content:"󰂝"}.mdi-bell-plus-outline:before{content:"󰪒"}.mdi-bell-remove:before{content:"󱏫"}.mdi-bell-remove-outline:before{content:"󱏬"}.mdi-bell-ring:before{content:"󰂞"}.mdi-bell-ring-outline:before{content:"󰂟"}.mdi-bell-sleep:before{content:"󰂠"}.mdi-bell-sleep-outline:before{content:"󰪓"}.mdi-bench:before{content:"󱰡"}.mdi-bench-back:before{content:"󱰢"}.mdi-beta:before{content:"󰂡"}.mdi-betamax:before{content:"󰧋"}.mdi-biathlon:before{content:"󰸔"}.mdi-bicycle:before{content:"󱂜"}.mdi-bicycle-basket:before{content:"󱈵"}.mdi-bicycle-cargo:before{content:"󱢜"}.mdi-bicycle-electric:before{content:"󱖴"}.mdi-bicycle-penny-farthing:before{content:"󱗩"}.mdi-bike:before{content:"󰂣"}.mdi-bike-fast:before{content:"󱄟"}.mdi-bike-pedal:before{content:"󱰣"}.mdi-bike-pedal-clipless:before{content:"󱰤"}.mdi-bike-pedal-mountain:before{content:"󱰥"}.mdi-billboard:before{content:"󱀐"}.mdi-billiards:before{content:"󰭡"}.mdi-billiards-rack:before{content:"󰭢"}.mdi-binoculars:before{content:"󰂥"}.mdi-bio:before{content:"󰂦"}.mdi-biohazard:before{content:"󰂧"}.mdi-bird:before{content:"󱗆"}.mdi-bitbucket:before{content:"󰂨"}.mdi-bitcoin:before{content:"󰠓"}.mdi-black-mesa:before{content:"󰂩"}.mdi-blender:before{content:"󰳫"}.mdi-blender-outline:before{content:"󱠚"}.mdi-blender-software:before{content:"󰂫"}.mdi-blinds:before{content:"󰂬"}.mdi-blinds-horizontal:before{content:"󱨫"}.mdi-blinds-horizontal-closed:before{content:"󱨬"}.mdi-blinds-open:before{content:"󱀑"}.mdi-blinds-vertical:before{content:"󱨭"}.mdi-blinds-vertical-closed:before{content:"󱨮"}.mdi-block-helper:before{content:"󰂭"}.mdi-blood-bag:before{content:"󰳬"}.mdi-bluetooth:before{content:"󰂯"}.mdi-bluetooth-audio:before{content:"󰂰"}.mdi-bluetooth-connect:before{content:"󰂱"}.mdi-bluetooth-off:before{content:"󰂲"}.mdi-bluetooth-settings:before{content:"󰂳"}.mdi-bluetooth-transfer:before{content:"󰂴"}.mdi-blur:before{content:"󰂵"}.mdi-blur-linear:before{content:"󰂶"}.mdi-blur-off:before{content:"󰂷"}.mdi-blur-radial:before{content:"󰂸"}.mdi-bolt:before{content:"󰶳"}.mdi-bomb:before{content:"󰚑"}.mdi-bomb-off:before{content:"󰛅"}.mdi-bone:before{content:"󰂹"}.mdi-bone-off:before{content:"󱧠"}.mdi-book:before{content:"󰂺"}.mdi-book-account:before{content:"󱎭"}.mdi-book-account-outline:before{content:"󱎮"}.mdi-book-alert:before{content:"󱙼"}.mdi-book-alert-outline:before{content:"󱙽"}.mdi-book-alphabet:before{content:"󰘝"}.mdi-book-arrow-down:before{content:"󱙾"}.mdi-book-arrow-down-outline:before{content:"󱙿"}.mdi-book-arrow-left:before{content:"󱚀"}.mdi-book-arrow-left-outline:before{content:"󱚁"}.mdi-book-arrow-right:before{content:"󱚂"}.mdi-book-arrow-right-outline:before{content:"󱚃"}.mdi-book-arrow-up:before{content:"󱚄"}.mdi-book-arrow-up-outline:before{content:"󱚅"}.mdi-book-cancel:before{content:"󱚆"}.mdi-book-cancel-outline:before{content:"󱚇"}.mdi-book-check:before{content:"󱓳"}.mdi-book-check-outline:before{content:"󱓴"}.mdi-book-clock:before{content:"󱚈"}.mdi-book-clock-outline:before{content:"󱚉"}.mdi-book-cog:before{content:"󱚊"}.mdi-book-cog-outline:before{content:"󱚋"}.mdi-book-cross:before{content:"󰂢"}.mdi-book-edit:before{content:"󱚌"}.mdi-book-edit-outline:before{content:"󱚍"}.mdi-book-education:before{content:"󱛉"}.mdi-book-education-outline:before{content:"󱛊"}.mdi-book-heart:before{content:"󱨝"}.mdi-book-heart-outline:before{content:"󱨞"}.mdi-book-information-variant:before{content:"󱁯"}.mdi-book-lock:before{content:"󰞚"}.mdi-book-lock-open:before{content:"󰞛"}.mdi-book-lock-open-outline:before{content:"󱚎"}.mdi-book-lock-outline:before{content:"󱚏"}.mdi-book-marker:before{content:"󱚐"}.mdi-book-marker-outline:before{content:"󱚑"}.mdi-book-minus:before{content:"󰗙"}.mdi-book-minus-multiple:before{content:"󰪔"}.mdi-book-minus-multiple-outline:before{content:"󰤋"}.mdi-book-minus-outline:before{content:"󱚒"}.mdi-book-multiple:before{content:"󰂻"}.mdi-book-multiple-outline:before{content:"󰐶"}.mdi-book-music:before{content:"󰁧"}.mdi-book-music-outline:before{content:"󱚓"}.mdi-book-off:before{content:"󱚔"}.mdi-book-off-outline:before{content:"󱚕"}.mdi-book-open:before{content:"󰂽"}.mdi-book-open-blank-variant:before{content:"󰂾"}.mdi-book-open-outline:before{content:"󰭣"}.mdi-book-open-page-variant:before{content:"󰗚"}.mdi-book-open-page-variant-outline:before{content:"󱗖"}.mdi-book-open-variant:before{content:"󱓷"}.mdi-book-outline:before{content:"󰭤"}.mdi-book-play:before{content:"󰺂"}.mdi-book-play-outline:before{content:"󰺃"}.mdi-book-plus:before{content:"󰗛"}.mdi-book-plus-multiple:before{content:"󰪕"}.mdi-book-plus-multiple-outline:before{content:"󰫞"}.mdi-book-plus-outline:before{content:"󱚖"}.mdi-book-refresh:before{content:"󱚗"}.mdi-book-refresh-outline:before{content:"󱚘"}.mdi-book-remove:before{content:"󰪗"}.mdi-book-remove-multiple:before{content:"󰪖"}.mdi-book-remove-multiple-outline:before{content:"󰓊"}.mdi-book-remove-outline:before{content:"󱚙"}.mdi-book-search:before{content:"󰺄"}.mdi-book-search-outline:before{content:"󰺅"}.mdi-book-settings:before{content:"󱚚"}.mdi-book-settings-outline:before{content:"󱚛"}.mdi-book-sync:before{content:"󱚜"}.mdi-book-sync-outline:before{content:"󱛈"}.mdi-book-variant:before{content:"󰂿"}.mdi-bookmark:before{content:"󰃀"}.mdi-bookmark-box:before{content:"󱭵"}.mdi-bookmark-box-multiple:before{content:"󱥬"}.mdi-bookmark-box-multiple-outline:before{content:"󱥭"}.mdi-bookmark-box-outline:before{content:"󱭶"}.mdi-bookmark-check:before{content:"󰃁"}.mdi-bookmark-check-outline:before{content:"󱍻"}.mdi-bookmark-minus:before{content:"󰧌"}.mdi-bookmark-minus-outline:before{content:"󰧍"}.mdi-bookmark-multiple:before{content:"󰸕"}.mdi-bookmark-multiple-outline:before{content:"󰸖"}.mdi-bookmark-music:before{content:"󰃂"}.mdi-bookmark-music-outline:before{content:"󱍹"}.mdi-bookmark-off:before{content:"󰧎"}.mdi-bookmark-off-outline:before{content:"󰧏"}.mdi-bookmark-outline:before{content:"󰃃"}.mdi-bookmark-plus:before{content:"󰃅"}.mdi-bookmark-plus-outline:before{content:"󰃄"}.mdi-bookmark-remove:before{content:"󰃆"}.mdi-bookmark-remove-outline:before{content:"󱍺"}.mdi-bookshelf:before{content:"󱉟"}.mdi-boom-gate:before{content:"󰺆"}.mdi-boom-gate-alert:before{content:"󰺇"}.mdi-boom-gate-alert-outline:before{content:"󰺈"}.mdi-boom-gate-arrow-down:before{content:"󰺉"}.mdi-boom-gate-arrow-down-outline:before{content:"󰺊"}.mdi-boom-gate-arrow-up:before{content:"󰺌"}.mdi-boom-gate-arrow-up-outline:before{content:"󰺍"}.mdi-boom-gate-outline:before{content:"󰺋"}.mdi-boom-gate-up:before{content:"󱟹"}.mdi-boom-gate-up-outline:before{content:"󱟺"}.mdi-boombox:before{content:"󰗜"}.mdi-boomerang:before{content:"󱃏"}.mdi-bootstrap:before{content:"󰛆"}.mdi-border-all:before{content:"󰃇"}.mdi-border-all-variant:before{content:"󰢡"}.mdi-border-bottom:before{content:"󰃈"}.mdi-border-bottom-variant:before{content:"󰢢"}.mdi-border-color:before{content:"󰃉"}.mdi-border-horizontal:before{content:"󰃊"}.mdi-border-inside:before{content:"󰃋"}.mdi-border-left:before{content:"󰃌"}.mdi-border-left-variant:before{content:"󰢣"}.mdi-border-none:before{content:"󰃍"}.mdi-border-none-variant:before{content:"󰢤"}.mdi-border-outside:before{content:"󰃎"}.mdi-border-radius:before{content:"󱫴"}.mdi-border-right:before{content:"󰃏"}.mdi-border-right-variant:before{content:"󰢥"}.mdi-border-style:before{content:"󰃐"}.mdi-border-top:before{content:"󰃑"}.mdi-border-top-variant:before{content:"󰢦"}.mdi-border-vertical:before{content:"󰃒"}.mdi-bottle-soda:before{content:"󱁰"}.mdi-bottle-soda-classic:before{content:"󱁱"}.mdi-bottle-soda-classic-outline:before{content:"󱍣"}.mdi-bottle-soda-outline:before{content:"󱁲"}.mdi-bottle-tonic:before{content:"󱄮"}.mdi-bottle-tonic-outline:before{content:"󱄯"}.mdi-bottle-tonic-plus:before{content:"󱄰"}.mdi-bottle-tonic-plus-outline:before{content:"󱄱"}.mdi-bottle-tonic-skull:before{content:"󱄲"}.mdi-bottle-tonic-skull-outline:before{content:"󱄳"}.mdi-bottle-wine:before{content:"󰡔"}.mdi-bottle-wine-outline:before{content:"󱌐"}.mdi-bow-arrow:before{content:"󱡁"}.mdi-bow-tie:before{content:"󰙸"}.mdi-bowl:before{content:"󰊎"}.mdi-bowl-mix:before{content:"󰘗"}.mdi-bowl-mix-outline:before{content:"󰋤"}.mdi-bowl-outline:before{content:"󰊩"}.mdi-bowling:before{content:"󰃓"}.mdi-box:before{content:"󰃔"}.mdi-box-cutter:before{content:"󰃕"}.mdi-box-cutter-off:before{content:"󰭊"}.mdi-box-shadow:before{content:"󰘷"}.mdi-boxing-glove:before{content:"󰭥"}.mdi-braille:before{content:"󰧐"}.mdi-brain:before{content:"󰧑"}.mdi-bread-slice:before{content:"󰳮"}.mdi-bread-slice-outline:before{content:"󰳯"}.mdi-bridge:before{content:"󰘘"}.mdi-briefcase:before{content:"󰃖"}.mdi-briefcase-account:before{content:"󰳰"}.mdi-briefcase-account-outline:before{content:"󰳱"}.mdi-briefcase-arrow-left-right:before{content:"󱪍"}.mdi-briefcase-arrow-left-right-outline:before{content:"󱪎"}.mdi-briefcase-arrow-up-down:before{content:"󱪏"}.mdi-briefcase-arrow-up-down-outline:before{content:"󱪐"}.mdi-briefcase-check:before{content:"󰃗"}.mdi-briefcase-check-outline:before{content:"󱌞"}.mdi-briefcase-clock:before{content:"󱃐"}.mdi-briefcase-clock-outline:before{content:"󱃑"}.mdi-briefcase-download:before{content:"󰃘"}.mdi-briefcase-download-outline:before{content:"󰰽"}.mdi-briefcase-edit:before{content:"󰪘"}.mdi-briefcase-edit-outline:before{content:"󰰾"}.mdi-briefcase-eye:before{content:"󱟙"}.mdi-briefcase-eye-outline:before{content:"󱟚"}.mdi-briefcase-minus:before{content:"󰨪"}.mdi-briefcase-minus-outline:before{content:"󰰿"}.mdi-briefcase-off:before{content:"󱙘"}.mdi-briefcase-off-outline:before{content:"󱙙"}.mdi-briefcase-outline:before{content:"󰠔"}.mdi-briefcase-plus:before{content:"󰨫"}.mdi-briefcase-plus-outline:before{content:"󰱀"}.mdi-briefcase-remove:before{content:"󰨬"}.mdi-briefcase-remove-outline:before{content:"󰱁"}.mdi-briefcase-search:before{content:"󰨭"}.mdi-briefcase-search-outline:before{content:"󰱂"}.mdi-briefcase-upload:before{content:"󰃙"}.mdi-briefcase-upload-outline:before{content:"󰱃"}.mdi-briefcase-variant:before{content:"󱒔"}.mdi-briefcase-variant-off:before{content:"󱙚"}.mdi-briefcase-variant-off-outline:before{content:"󱙛"}.mdi-briefcase-variant-outline:before{content:"󱒕"}.mdi-brightness-1:before{content:"󰃚"}.mdi-brightness-2:before{content:"󰃛"}.mdi-brightness-3:before{content:"󰃜"}.mdi-brightness-4:before{content:"󰃝"}.mdi-brightness-5:before{content:"󰃞"}.mdi-brightness-6:before{content:"󰃟"}.mdi-brightness-7:before{content:"󰃠"}.mdi-brightness-auto:before{content:"󰃡"}.mdi-brightness-percent:before{content:"󰳲"}.mdi-broadcast:before{content:"󱜠"}.mdi-broadcast-off:before{content:"󱜡"}.mdi-broom:before{content:"󰃢"}.mdi-brush:before{content:"󰃣"}.mdi-brush-off:before{content:"󱝱"}.mdi-brush-outline:before{content:"󱨍"}.mdi-brush-variant:before{content:"󱠓"}.mdi-bucket:before{content:"󱐕"}.mdi-bucket-outline:before{content:"󱐖"}.mdi-buffet:before{content:"󰕸"}.mdi-bug:before{content:"󰃤"}.mdi-bug-check:before{content:"󰨮"}.mdi-bug-check-outline:before{content:"󰨯"}.mdi-bug-outline:before{content:"󰨰"}.mdi-bug-pause:before{content:"󱫵"}.mdi-bug-pause-outline:before{content:"󱫶"}.mdi-bug-play:before{content:"󱫷"}.mdi-bug-play-outline:before{content:"󱫸"}.mdi-bug-stop:before{content:"󱫹"}.mdi-bug-stop-outline:before{content:"󱫺"}.mdi-bugle:before{content:"󰶴"}.mdi-bulkhead-light:before{content:"󱨯"}.mdi-bulldozer:before{content:"󰬢"}.mdi-bullet:before{content:"󰳳"}.mdi-bulletin-board:before{content:"󰃥"}.mdi-bullhorn:before{content:"󰃦"}.mdi-bullhorn-outline:before{content:"󰬣"}.mdi-bullhorn-variant:before{content:"󱥮"}.mdi-bullhorn-variant-outline:before{content:"󱥯"}.mdi-bullseye:before{content:"󰗝"}.mdi-bullseye-arrow:before{content:"󰣉"}.mdi-bulma:before{content:"󱋧"}.mdi-bunk-bed:before{content:"󱌂"}.mdi-bunk-bed-outline:before{content:"󰂗"}.mdi-bus:before{content:"󰃧"}.mdi-bus-alert:before{content:"󰪙"}.mdi-bus-articulated-end:before{content:"󰞜"}.mdi-bus-articulated-front:before{content:"󰞝"}.mdi-bus-clock:before{content:"󰣊"}.mdi-bus-double-decker:before{content:"󰞞"}.mdi-bus-electric:before{content:"󱤝"}.mdi-bus-marker:before{content:"󱈒"}.mdi-bus-multiple:before{content:"󰼿"}.mdi-bus-school:before{content:"󰞟"}.mdi-bus-side:before{content:"󰞠"}.mdi-bus-sign:before{content:"󱳁"}.mdi-bus-stop:before{content:"󱀒"}.mdi-bus-stop-covered:before{content:"󱀓"}.mdi-bus-stop-uncovered:before{content:"󱀔"}.mdi-bus-wrench:before{content:"󱳂"}.mdi-butterfly:before{content:"󱖉"}.mdi-butterfly-outline:before{content:"󱖊"}.mdi-button-cursor:before{content:"󱭏"}.mdi-button-pointer:before{content:"󱭐"}.mdi-cabin-a-frame:before{content:"󱢌"}.mdi-cable-data:before{content:"󱎔"}.mdi-cached:before{content:"󰃨"}.mdi-cactus:before{content:"󰶵"}.mdi-cake:before{content:"󰃩"}.mdi-cake-layered:before{content:"󰃪"}.mdi-cake-variant:before{content:"󰃫"}.mdi-cake-variant-outline:before{content:"󱟰"}.mdi-calculator:before{content:"󰃬"}.mdi-calculator-variant:before{content:"󰪚"}.mdi-calculator-variant-outline:before{content:"󱖦"}.mdi-calendar:before{content:"󰃭"}.mdi-calendar-account:before{content:"󰻗"}.mdi-calendar-account-outline:before{content:"󰻘"}.mdi-calendar-alert:before{content:"󰨱"}.mdi-calendar-alert-outline:before{content:"󱭢"}.mdi-calendar-arrow-left:before{content:"󱄴"}.mdi-calendar-arrow-right:before{content:"󱄵"}.mdi-calendar-badge:before{content:"󱮝"}.mdi-calendar-badge-outline:before{content:"󱮞"}.mdi-calendar-blank:before{content:"󰃮"}.mdi-calendar-blank-multiple:before{content:"󱁳"}.mdi-calendar-blank-outline:before{content:"󰭦"}.mdi-calendar-check:before{content:"󰃯"}.mdi-calendar-check-outline:before{content:"󰱄"}.mdi-calendar-clock:before{content:"󰃰"}.mdi-calendar-clock-outline:before{content:"󱛡"}.mdi-calendar-collapse-horizontal:before{content:"󱢝"}.mdi-calendar-collapse-horizontal-outline:before{content:"󱭣"}.mdi-calendar-cursor:before{content:"󱕻"}.mdi-calendar-cursor-outline:before{content:"󱭤"}.mdi-calendar-edit:before{content:"󰢧"}.mdi-calendar-edit-outline:before{content:"󱭥"}.mdi-calendar-end:before{content:"󱙬"}.mdi-calendar-end-outline:before{content:"󱭦"}.mdi-calendar-expand-horizontal:before{content:"󱢞"}.mdi-calendar-expand-horizontal-outline:before{content:"󱭧"}.mdi-calendar-export:before{content:"󰬤"}.mdi-calendar-export-outline:before{content:"󱭨"}.mdi-calendar-filter:before{content:"󱨲"}.mdi-calendar-filter-outline:before{content:"󱨳"}.mdi-calendar-heart:before{content:"󰧒"}.mdi-calendar-heart-outline:before{content:"󱭩"}.mdi-calendar-import:before{content:"󰬥"}.mdi-calendar-import-outline:before{content:"󱭪"}.mdi-calendar-lock:before{content:"󱙁"}.mdi-calendar-lock-open:before{content:"󱭛"}.mdi-calendar-lock-open-outline:before{content:"󱭜"}.mdi-calendar-lock-outline:before{content:"󱙂"}.mdi-calendar-minus:before{content:"󰵜"}.mdi-calendar-minus-outline:before{content:"󱭫"}.mdi-calendar-month:before{content:"󰸗"}.mdi-calendar-month-outline:before{content:"󰸘"}.mdi-calendar-multiple:before{content:"󰃱"}.mdi-calendar-multiple-check:before{content:"󰃲"}.mdi-calendar-multiselect:before{content:"󰨲"}.mdi-calendar-multiselect-outline:before{content:"󱭕"}.mdi-calendar-outline:before{content:"󰭧"}.mdi-calendar-plus:before{content:"󰃳"}.mdi-calendar-plus-outline:before{content:"󱭬"}.mdi-calendar-question:before{content:"󰚒"}.mdi-calendar-question-outline:before{content:"󱭭"}.mdi-calendar-range:before{content:"󰙹"}.mdi-calendar-range-outline:before{content:"󰭨"}.mdi-calendar-refresh:before{content:"󰇡"}.mdi-calendar-refresh-outline:before{content:"󰈃"}.mdi-calendar-remove:before{content:"󰃴"}.mdi-calendar-remove-outline:before{content:"󰱅"}.mdi-calendar-search:before{content:"󰥌"}.mdi-calendar-search-outline:before{content:"󱭮"}.mdi-calendar-star:before{content:"󰧓"}.mdi-calendar-star-four-points:before{content:"󱰟"}.mdi-calendar-star-outline:before{content:"󱭓"}.mdi-calendar-start:before{content:"󱙭"}.mdi-calendar-start-outline:before{content:"󱭯"}.mdi-calendar-sync:before{content:"󰺎"}.mdi-calendar-sync-outline:before{content:"󰺏"}.mdi-calendar-text:before{content:"󰃵"}.mdi-calendar-text-outline:before{content:"󰱆"}.mdi-calendar-today:before{content:"󰃶"}.mdi-calendar-today-outline:before{content:"󱨰"}.mdi-calendar-week:before{content:"󰨳"}.mdi-calendar-week-begin:before{content:"󰨴"}.mdi-calendar-week-begin-outline:before{content:"󱨱"}.mdi-calendar-week-outline:before{content:"󱨴"}.mdi-calendar-weekend:before{content:"󰻙"}.mdi-calendar-weekend-outline:before{content:"󰻚"}.mdi-call-made:before{content:"󰃷"}.mdi-call-merge:before{content:"󰃸"}.mdi-call-missed:before{content:"󰃹"}.mdi-call-received:before{content:"󰃺"}.mdi-call-split:before{content:"󰃻"}.mdi-camcorder:before{content:"󰃼"}.mdi-camcorder-off:before{content:"󰃿"}.mdi-camera:before{content:"󰄀"}.mdi-camera-account:before{content:"󰣋"}.mdi-camera-burst:before{content:"󰚓"}.mdi-camera-control:before{content:"󰭩"}.mdi-camera-document:before{content:"󱡱"}.mdi-camera-document-off:before{content:"󱡲"}.mdi-camera-enhance:before{content:"󰄁"}.mdi-camera-enhance-outline:before{content:"󰭪"}.mdi-camera-flip:before{content:"󱗙"}.mdi-camera-flip-outline:before{content:"󱗚"}.mdi-camera-front:before{content:"󰄂"}.mdi-camera-front-variant:before{content:"󰄃"}.mdi-camera-gopro:before{content:"󰞡"}.mdi-camera-image:before{content:"󰣌"}.mdi-camera-iris:before{content:"󰄄"}.mdi-camera-lock:before{content:"󱨔"}.mdi-camera-lock-open:before{content:"󱰍"}.mdi-camera-lock-open-outline:before{content:"󱰎"}.mdi-camera-lock-outline:before{content:"󱨕"}.mdi-camera-marker:before{content:"󱦧"}.mdi-camera-marker-outline:before{content:"󱦨"}.mdi-camera-metering-center:before{content:"󰞢"}.mdi-camera-metering-matrix:before{content:"󰞣"}.mdi-camera-metering-partial:before{content:"󰞤"}.mdi-camera-metering-spot:before{content:"󰞥"}.mdi-camera-off:before{content:"󰗟"}.mdi-camera-off-outline:before{content:"󱦿"}.mdi-camera-outline:before{content:"󰵝"}.mdi-camera-party-mode:before{content:"󰄅"}.mdi-camera-plus:before{content:"󰻛"}.mdi-camera-plus-outline:before{content:"󰻜"}.mdi-camera-rear:before{content:"󰄆"}.mdi-camera-rear-variant:before{content:"󰄇"}.mdi-camera-retake:before{content:"󰸙"}.mdi-camera-retake-outline:before{content:"󰸚"}.mdi-camera-switch:before{content:"󰄈"}.mdi-camera-switch-outline:before{content:"󰡊"}.mdi-camera-timer:before{content:"󰄉"}.mdi-camera-wireless:before{content:"󰶶"}.mdi-camera-wireless-outline:before{content:"󰶷"}.mdi-campfire:before{content:"󰻝"}.mdi-cancel:before{content:"󰜺"}.mdi-candelabra:before{content:"󱟒"}.mdi-candelabra-fire:before{content:"󱟓"}.mdi-candle:before{content:"󰗢"}.mdi-candy:before{content:"󱥰"}.mdi-candy-off:before{content:"󱥱"}.mdi-candy-off-outline:before{content:"󱥲"}.mdi-candy-outline:before{content:"󱥳"}.mdi-candycane:before{content:"󰄊"}.mdi-cannabis:before{content:"󰞦"}.mdi-cannabis-off:before{content:"󱙮"}.mdi-caps-lock:before{content:"󰪛"}.mdi-car:before{content:"󰄋"}.mdi-car-2-plus:before{content:"󱀕"}.mdi-car-3-plus:before{content:"󱀖"}.mdi-car-arrow-left:before{content:"󱎲"}.mdi-car-arrow-right:before{content:"󱎳"}.mdi-car-back:before{content:"󰸛"}.mdi-car-battery:before{content:"󰄌"}.mdi-car-brake-abs:before{content:"󰱇"}.mdi-car-brake-alert:before{content:"󰱈"}.mdi-car-brake-fluid-level:before{content:"󱤉"}.mdi-car-brake-hold:before{content:"󰵞"}.mdi-car-brake-low-pressure:before{content:"󱤊"}.mdi-car-brake-parking:before{content:"󰵟"}.mdi-car-brake-retarder:before{content:"󱀗"}.mdi-car-brake-temperature:before{content:"󱤋"}.mdi-car-brake-worn-linings:before{content:"󱤌"}.mdi-car-child-seat:before{content:"󰾣"}.mdi-car-clock:before{content:"󱥴"}.mdi-car-clutch:before{content:"󱀘"}.mdi-car-cog:before{content:"󱏌"}.mdi-car-connected:before{content:"󰄍"}.mdi-car-convertible:before{content:"󰞧"}.mdi-car-coolant-level:before{content:"󱀙"}.mdi-car-cruise-control:before{content:"󰵠"}.mdi-car-defrost-front:before{content:"󰵡"}.mdi-car-defrost-rear:before{content:"󰵢"}.mdi-car-door:before{content:"󰭫"}.mdi-car-door-lock:before{content:"󱂝"}.mdi-car-door-lock-open:before{content:"󱲁"}.mdi-car-electric:before{content:"󰭬"}.mdi-car-electric-outline:before{content:"󱖵"}.mdi-car-emergency:before{content:"󱘏"}.mdi-car-esp:before{content:"󰱉"}.mdi-car-estate:before{content:"󰞨"}.mdi-car-hatchback:before{content:"󰞩"}.mdi-car-info:before{content:"󱆾"}.mdi-car-key:before{content:"󰭭"}.mdi-car-lifted-pickup:before{content:"󱔭"}.mdi-car-light-alert:before{content:"󱤍"}.mdi-car-light-dimmed:before{content:"󰱊"}.mdi-car-light-fog:before{content:"󰱋"}.mdi-car-light-high:before{content:"󰱌"}.mdi-car-limousine:before{content:"󰣍"}.mdi-car-multiple:before{content:"󰭮"}.mdi-car-off:before{content:"󰸜"}.mdi-car-outline:before{content:"󱓭"}.mdi-car-parking-lights:before{content:"󰵣"}.mdi-car-pickup:before{content:"󰞪"}.mdi-car-search:before{content:"󱮍"}.mdi-car-search-outline:before{content:"󱮎"}.mdi-car-seat:before{content:"󰾤"}.mdi-car-seat-cooler:before{content:"󰾥"}.mdi-car-seat-heater:before{content:"󰾦"}.mdi-car-select:before{content:"󱡹"}.mdi-car-settings:before{content:"󱏍"}.mdi-car-shift-pattern:before{content:"󰽀"}.mdi-car-side:before{content:"󰞫"}.mdi-car-speed-limiter:before{content:"󱤎"}.mdi-car-sports:before{content:"󰞬"}.mdi-car-tire-alert:before{content:"󰱍"}.mdi-car-traction-control:before{content:"󰵤"}.mdi-car-turbocharger:before{content:"󱀚"}.mdi-car-wash:before{content:"󰄎"}.mdi-car-windshield:before{content:"󱀛"}.mdi-car-windshield-outline:before{content:"󱀜"}.mdi-car-wireless:before{content:"󱡸"}.mdi-car-wrench:before{content:"󱠔"}.mdi-carabiner:before{content:"󱓀"}.mdi-caravan:before{content:"󰞭"}.mdi-card:before{content:"󰭯"}.mdi-card-account-details:before{content:"󰗒"}.mdi-card-account-details-outline:before{content:"󰶫"}.mdi-card-account-details-star:before{content:"󰊣"}.mdi-card-account-details-star-outline:before{content:"󰛛"}.mdi-card-account-mail:before{content:"󰆎"}.mdi-card-account-mail-outline:before{content:"󰺘"}.mdi-card-account-phone:before{content:"󰺙"}.mdi-card-account-phone-outline:before{content:"󰺚"}.mdi-card-bulleted:before{content:"󰭰"}.mdi-card-bulleted-off:before{content:"󰭱"}.mdi-card-bulleted-off-outline:before{content:"󰭲"}.mdi-card-bulleted-outline:before{content:"󰭳"}.mdi-card-bulleted-settings:before{content:"󰭴"}.mdi-card-bulleted-settings-outline:before{content:"󰭵"}.mdi-card-minus:before{content:"󱘀"}.mdi-card-minus-outline:before{content:"󱘁"}.mdi-card-multiple:before{content:"󱟱"}.mdi-card-multiple-outline:before{content:"󱟲"}.mdi-card-off:before{content:"󱘂"}.mdi-card-off-outline:before{content:"󱘃"}.mdi-card-outline:before{content:"󰭶"}.mdi-card-plus:before{content:"󱇿"}.mdi-card-plus-outline:before{content:"󱈀"}.mdi-card-remove:before{content:"󱘄"}.mdi-card-remove-outline:before{content:"󱘅"}.mdi-card-search:before{content:"󱁴"}.mdi-card-search-outline:before{content:"󱁵"}.mdi-card-text:before{content:"󰭷"}.mdi-card-text-outline:before{content:"󰭸"}.mdi-cards:before{content:"󰘸"}.mdi-cards-club:before{content:"󰣎"}.mdi-cards-club-outline:before{content:"󱢟"}.mdi-cards-diamond:before{content:"󰣏"}.mdi-cards-diamond-outline:before{content:"󱀝"}.mdi-cards-heart:before{content:"󰣐"}.mdi-cards-heart-outline:before{content:"󱢠"}.mdi-cards-outline:before{content:"󰘹"}.mdi-cards-playing:before{content:"󱢡"}.mdi-cards-playing-club:before{content:"󱢢"}.mdi-cards-playing-club-multiple:before{content:"󱢣"}.mdi-cards-playing-club-multiple-outline:before{content:"󱢤"}.mdi-cards-playing-club-outline:before{content:"󱢥"}.mdi-cards-playing-diamond:before{content:"󱢦"}.mdi-cards-playing-diamond-multiple:before{content:"󱢧"}.mdi-cards-playing-diamond-multiple-outline:before{content:"󱢨"}.mdi-cards-playing-diamond-outline:before{content:"󱢩"}.mdi-cards-playing-heart:before{content:"󱢪"}.mdi-cards-playing-heart-multiple:before{content:"󱢫"}.mdi-cards-playing-heart-multiple-outline:before{content:"󱢬"}.mdi-cards-playing-heart-outline:before{content:"󱢭"}.mdi-cards-playing-outline:before{content:"󰘺"}.mdi-cards-playing-spade:before{content:"󱢮"}.mdi-cards-playing-spade-multiple:before{content:"󱢯"}.mdi-cards-playing-spade-multiple-outline:before{content:"󱢰"}.mdi-cards-playing-spade-outline:before{content:"󱢱"}.mdi-cards-spade:before{content:"󰣑"}.mdi-cards-spade-outline:before{content:"󱢲"}.mdi-cards-variant:before{content:"󰛇"}.mdi-carrot:before{content:"󰄏"}.mdi-cart:before{content:"󰄐"}.mdi-cart-arrow-down:before{content:"󰵦"}.mdi-cart-arrow-right:before{content:"󰱎"}.mdi-cart-arrow-up:before{content:"󰵧"}.mdi-cart-check:before{content:"󱗪"}.mdi-cart-heart:before{content:"󱣠"}.mdi-cart-minus:before{content:"󰵨"}.mdi-cart-off:before{content:"󰙫"}.mdi-cart-outline:before{content:"󰄑"}.mdi-cart-percent:before{content:"󱮮"}.mdi-cart-plus:before{content:"󰄒"}.mdi-cart-remove:before{content:"󰵩"}.mdi-cart-variant:before{content:"󱗫"}.mdi-case-sensitive-alt:before{content:"󰄓"}.mdi-cash:before{content:"󰄔"}.mdi-cash-100:before{content:"󰄕"}.mdi-cash-check:before{content:"󱓮"}.mdi-cash-clock:before{content:"󱪑"}.mdi-cash-edit:before{content:"󱲫"}.mdi-cash-fast:before{content:"󱡜"}.mdi-cash-lock:before{content:"󱓪"}.mdi-cash-lock-open:before{content:"󱓫"}.mdi-cash-marker:before{content:"󰶸"}.mdi-cash-minus:before{content:"󱉠"}.mdi-cash-multiple:before{content:"󰄖"}.mdi-cash-off:before{content:"󱱹"}.mdi-cash-plus:before{content:"󱉡"}.mdi-cash-refund:before{content:"󰪜"}.mdi-cash-register:before{content:"󰳴"}.mdi-cash-remove:before{content:"󱉢"}.mdi-cash-sync:before{content:"󱪒"}.mdi-cassette:before{content:"󰧔"}.mdi-cast:before{content:"󰄘"}.mdi-cast-audio:before{content:"󱀞"}.mdi-cast-audio-variant:before{content:"󱝉"}.mdi-cast-connected:before{content:"󰄙"}.mdi-cast-education:before{content:"󰸝"}.mdi-cast-off:before{content:"󰞊"}.mdi-cast-variant:before{content:"󰀟"}.mdi-castle:before{content:"󰄚"}.mdi-cat:before{content:"󰄛"}.mdi-cctv:before{content:"󰞮"}.mdi-cctv-off:before{content:"󱡟"}.mdi-ceiling-fan:before{content:"󱞗"}.mdi-ceiling-fan-light:before{content:"󱞘"}.mdi-ceiling-light:before{content:"󰝩"}.mdi-ceiling-light-multiple:before{content:"󱣝"}.mdi-ceiling-light-multiple-outline:before{content:"󱣞"}.mdi-ceiling-light-outline:before{content:"󱟇"}.mdi-cellphone:before{content:"󰄜"}.mdi-cellphone-arrow-down:before{content:"󰧕"}.mdi-cellphone-arrow-down-variant:before{content:"󱧅"}.mdi-cellphone-basic:before{content:"󰄞"}.mdi-cellphone-charging:before{content:"󱎗"}.mdi-cellphone-check:before{content:"󱟽"}.mdi-cellphone-cog:before{content:"󰥑"}.mdi-cellphone-dock:before{content:"󰄟"}.mdi-cellphone-information:before{content:"󰽁"}.mdi-cellphone-key:before{content:"󰥎"}.mdi-cellphone-link:before{content:"󰄡"}.mdi-cellphone-link-off:before{content:"󰄢"}.mdi-cellphone-lock:before{content:"󰥏"}.mdi-cellphone-marker:before{content:"󱠺"}.mdi-cellphone-message:before{content:"󰣓"}.mdi-cellphone-message-off:before{content:"󱃒"}.mdi-cellphone-nfc:before{content:"󰺐"}.mdi-cellphone-nfc-off:before{content:"󱋘"}.mdi-cellphone-off:before{content:"󰥐"}.mdi-cellphone-play:before{content:"󱀟"}.mdi-cellphone-remove:before{content:"󰥍"}.mdi-cellphone-screenshot:before{content:"󰨵"}.mdi-cellphone-settings:before{content:"󰄣"}.mdi-cellphone-sound:before{content:"󰥒"}.mdi-cellphone-text:before{content:"󰣒"}.mdi-cellphone-wireless:before{content:"󰠕"}.mdi-centos:before{content:"󱄚"}.mdi-certificate:before{content:"󰄤"}.mdi-certificate-outline:before{content:"󱆈"}.mdi-chair-rolling:before{content:"󰽈"}.mdi-chair-school:before{content:"󰄥"}.mdi-chandelier:before{content:"󱞓"}.mdi-charity:before{content:"󰱏"}.mdi-charity-search:before{content:"󱲂"}.mdi-chart-arc:before{content:"󰄦"}.mdi-chart-areaspline:before{content:"󰄧"}.mdi-chart-areaspline-variant:before{content:"󰺑"}.mdi-chart-bar:before{content:"󰄨"}.mdi-chart-bar-stacked:before{content:"󰝪"}.mdi-chart-bell-curve:before{content:"󰱐"}.mdi-chart-bell-curve-cumulative:before{content:"󰾧"}.mdi-chart-box:before{content:"󱕍"}.mdi-chart-box-outline:before{content:"󱕎"}.mdi-chart-box-plus-outline:before{content:"󱕏"}.mdi-chart-bubble:before{content:"󰗣"}.mdi-chart-donut:before{content:"󰞯"}.mdi-chart-donut-variant:before{content:"󰞰"}.mdi-chart-gantt:before{content:"󰙬"}.mdi-chart-histogram:before{content:"󰄩"}.mdi-chart-line:before{content:"󰄪"}.mdi-chart-line-stacked:before{content:"󰝫"}.mdi-chart-line-variant:before{content:"󰞱"}.mdi-chart-multiline:before{content:"󰣔"}.mdi-chart-multiple:before{content:"󱈓"}.mdi-chart-pie:before{content:"󰄫"}.mdi-chart-pie-outline:before{content:"󱯟"}.mdi-chart-ppf:before{content:"󱎀"}.mdi-chart-sankey:before{content:"󱇟"}.mdi-chart-sankey-variant:before{content:"󱇠"}.mdi-chart-scatter-plot:before{content:"󰺒"}.mdi-chart-scatter-plot-hexbin:before{content:"󰙭"}.mdi-chart-timeline:before{content:"󰙮"}.mdi-chart-timeline-variant:before{content:"󰺓"}.mdi-chart-timeline-variant-shimmer:before{content:"󱖶"}.mdi-chart-tree:before{content:"󰺔"}.mdi-chart-waterfall:before{content:"󱤘"}.mdi-chat:before{content:"󰭹"}.mdi-chat-alert:before{content:"󰭺"}.mdi-chat-alert-outline:before{content:"󱋉"}.mdi-chat-minus:before{content:"󱐐"}.mdi-chat-minus-outline:before{content:"󱐓"}.mdi-chat-outline:before{content:"󰻞"}.mdi-chat-plus:before{content:"󱐏"}.mdi-chat-plus-outline:before{content:"󱐒"}.mdi-chat-processing:before{content:"󰭻"}.mdi-chat-processing-outline:before{content:"󱋊"}.mdi-chat-question:before{content:"󱜸"}.mdi-chat-question-outline:before{content:"󱜹"}.mdi-chat-remove:before{content:"󱐑"}.mdi-chat-remove-outline:before{content:"󱐔"}.mdi-chat-sleep:before{content:"󱋑"}.mdi-chat-sleep-outline:before{content:"󱋒"}.mdi-check:before{content:"󰄬"}.mdi-check-all:before{content:"󰄭"}.mdi-check-bold:before{content:"󰸞"}.mdi-check-circle:before{content:"󰗠"}.mdi-check-circle-outline:before{content:"󰗡"}.mdi-check-decagram:before{content:"󰞑"}.mdi-check-decagram-outline:before{content:"󱝀"}.mdi-check-network:before{content:"󰱓"}.mdi-check-network-outline:before{content:"󰱔"}.mdi-check-outline:before{content:"󰡕"}.mdi-check-underline:before{content:"󰸟"}.mdi-check-underline-circle:before{content:"󰸠"}.mdi-check-underline-circle-outline:before{content:"󰸡"}.mdi-checkbook:before{content:"󰪝"}.mdi-checkbook-arrow-left:before{content:"󱰝"}.mdi-checkbook-arrow-right:before{content:"󱰞"}.mdi-checkbox-blank:before{content:"󰄮"}.mdi-checkbox-blank-badge:before{content:"󱅶"}.mdi-checkbox-blank-badge-outline:before{content:"󰄗"}.mdi-checkbox-blank-circle:before{content:"󰄯"}.mdi-checkbox-blank-circle-outline:before{content:"󰄰"}.mdi-checkbox-blank-off:before{content:"󱋬"}.mdi-checkbox-blank-off-outline:before{content:"󱋭"}.mdi-checkbox-blank-outline:before{content:"󰄱"}.mdi-checkbox-intermediate:before{content:"󰡖"}.mdi-checkbox-intermediate-variant:before{content:"󱭔"}.mdi-checkbox-marked:before{content:"󰄲"}.mdi-checkbox-marked-circle:before{content:"󰄳"}.mdi-checkbox-marked-circle-auto-outline:before{content:"󱰦"}.mdi-checkbox-marked-circle-minus-outline:before{content:"󱰧"}.mdi-checkbox-marked-circle-outline:before{content:"󰄴"}.mdi-checkbox-marked-circle-plus-outline:before{content:"󱤧"}.mdi-checkbox-marked-outline:before{content:"󰄵"}.mdi-checkbox-multiple-blank:before{content:"󰄶"}.mdi-checkbox-multiple-blank-circle:before{content:"󰘻"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"󰘼"}.mdi-checkbox-multiple-blank-outline:before{content:"󰄷"}.mdi-checkbox-multiple-marked:before{content:"󰄸"}.mdi-checkbox-multiple-marked-circle:before{content:"󰘽"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"󰘾"}.mdi-checkbox-multiple-marked-outline:before{content:"󰄹"}.mdi-checkbox-multiple-outline:before{content:"󰱑"}.mdi-checkbox-outline:before{content:"󰱒"}.mdi-checkerboard:before{content:"󰄺"}.mdi-checkerboard-minus:before{content:"󱈂"}.mdi-checkerboard-plus:before{content:"󱈁"}.mdi-checkerboard-remove:before{content:"󱈃"}.mdi-cheese:before{content:"󱊹"}.mdi-cheese-off:before{content:"󱏮"}.mdi-chef-hat:before{content:"󰭼"}.mdi-chemical-weapon:before{content:"󰄻"}.mdi-chess-bishop:before{content:"󰡜"}.mdi-chess-king:before{content:"󰡗"}.mdi-chess-knight:before{content:"󰡘"}.mdi-chess-pawn:before{content:"󰡙"}.mdi-chess-queen:before{content:"󰡚"}.mdi-chess-rook:before{content:"󰡛"}.mdi-chevron-double-down:before{content:"󰄼"}.mdi-chevron-double-left:before{content:"󰄽"}.mdi-chevron-double-right:before{content:"󰄾"}.mdi-chevron-double-up:before{content:"󰄿"}.mdi-chevron-down:before{content:"󰅀"}.mdi-chevron-down-box:before{content:"󰧖"}.mdi-chevron-down-box-outline:before{content:"󰧗"}.mdi-chevron-down-circle:before{content:"󰬦"}.mdi-chevron-down-circle-outline:before{content:"󰬧"}.mdi-chevron-left:before{content:"󰅁"}.mdi-chevron-left-box:before{content:"󰧘"}.mdi-chevron-left-box-outline:before{content:"󰧙"}.mdi-chevron-left-circle:before{content:"󰬨"}.mdi-chevron-left-circle-outline:before{content:"󰬩"}.mdi-chevron-right:before{content:"󰅂"}.mdi-chevron-right-box:before{content:"󰧚"}.mdi-chevron-right-box-outline:before{content:"󰧛"}.mdi-chevron-right-circle:before{content:"󰬪"}.mdi-chevron-right-circle-outline:before{content:"󰬫"}.mdi-chevron-triple-down:before{content:"󰶹"}.mdi-chevron-triple-left:before{content:"󰶺"}.mdi-chevron-triple-right:before{content:"󰶻"}.mdi-chevron-triple-up:before{content:"󰶼"}.mdi-chevron-up:before{content:"󰅃"}.mdi-chevron-up-box:before{content:"󰧜"}.mdi-chevron-up-box-outline:before{content:"󰧝"}.mdi-chevron-up-circle:before{content:"󰬬"}.mdi-chevron-up-circle-outline:before{content:"󰬭"}.mdi-chili-alert:before{content:"󱟪"}.mdi-chili-alert-outline:before{content:"󱟫"}.mdi-chili-hot:before{content:"󰞲"}.mdi-chili-hot-outline:before{content:"󱟬"}.mdi-chili-medium:before{content:"󰞳"}.mdi-chili-medium-outline:before{content:"󱟭"}.mdi-chili-mild:before{content:"󰞴"}.mdi-chili-mild-outline:before{content:"󱟮"}.mdi-chili-off:before{content:"󱑧"}.mdi-chili-off-outline:before{content:"󱟯"}.mdi-chip:before{content:"󰘚"}.mdi-church:before{content:"󰅄"}.mdi-church-outline:before{content:"󱬂"}.mdi-cigar:before{content:"󱆉"}.mdi-cigar-off:before{content:"󱐛"}.mdi-circle:before{content:"󰝥"}.mdi-circle-box:before{content:"󱗜"}.mdi-circle-box-outline:before{content:"󱗝"}.mdi-circle-double:before{content:"󰺕"}.mdi-circle-edit-outline:before{content:"󰣕"}.mdi-circle-expand:before{content:"󰺖"}.mdi-circle-half:before{content:"󱎕"}.mdi-circle-half-full:before{content:"󱎖"}.mdi-circle-medium:before{content:"󰧞"}.mdi-circle-multiple:before{content:"󰬸"}.mdi-circle-multiple-outline:before{content:"󰚕"}.mdi-circle-off-outline:before{content:"󱃓"}.mdi-circle-opacity:before{content:"󱡓"}.mdi-circle-outline:before{content:"󰝦"}.mdi-circle-slice-1:before{content:"󰪞"}.mdi-circle-slice-2:before{content:"󰪟"}.mdi-circle-slice-3:before{content:"󰪠"}.mdi-circle-slice-4:before{content:"󰪡"}.mdi-circle-slice-5:before{content:"󰪢"}.mdi-circle-slice-6:before{content:"󰪣"}.mdi-circle-slice-7:before{content:"󰪤"}.mdi-circle-slice-8:before{content:"󰪥"}.mdi-circle-small:before{content:"󰧟"}.mdi-circular-saw:before{content:"󰸢"}.mdi-city:before{content:"󰅆"}.mdi-city-switch:before{content:"󱰨"}.mdi-city-variant:before{content:"󰨶"}.mdi-city-variant-outline:before{content:"󰨷"}.mdi-clipboard:before{content:"󰅇"}.mdi-clipboard-account:before{content:"󰅈"}.mdi-clipboard-account-outline:before{content:"󰱕"}.mdi-clipboard-alert:before{content:"󰅉"}.mdi-clipboard-alert-outline:before{content:"󰳷"}.mdi-clipboard-arrow-down:before{content:"󰅊"}.mdi-clipboard-arrow-down-outline:before{content:"󰱖"}.mdi-clipboard-arrow-left:before{content:"󰅋"}.mdi-clipboard-arrow-left-outline:before{content:"󰳸"}.mdi-clipboard-arrow-right:before{content:"󰳹"}.mdi-clipboard-arrow-right-outline:before{content:"󰳺"}.mdi-clipboard-arrow-up:before{content:"󰱗"}.mdi-clipboard-arrow-up-outline:before{content:"󰱘"}.mdi-clipboard-check:before{content:"󰅎"}.mdi-clipboard-check-multiple:before{content:"󱉣"}.mdi-clipboard-check-multiple-outline:before{content:"󱉤"}.mdi-clipboard-check-outline:before{content:"󰢨"}.mdi-clipboard-clock:before{content:"󱛢"}.mdi-clipboard-clock-outline:before{content:"󱛣"}.mdi-clipboard-edit:before{content:"󱓥"}.mdi-clipboard-edit-outline:before{content:"󱓦"}.mdi-clipboard-file:before{content:"󱉥"}.mdi-clipboard-file-outline:before{content:"󱉦"}.mdi-clipboard-flow:before{content:"󰛈"}.mdi-clipboard-flow-outline:before{content:"󱄗"}.mdi-clipboard-list:before{content:"󱃔"}.mdi-clipboard-list-outline:before{content:"󱃕"}.mdi-clipboard-minus:before{content:"󱘘"}.mdi-clipboard-minus-outline:before{content:"󱘙"}.mdi-clipboard-multiple:before{content:"󱉧"}.mdi-clipboard-multiple-outline:before{content:"󱉨"}.mdi-clipboard-off:before{content:"󱘚"}.mdi-clipboard-off-outline:before{content:"󱘛"}.mdi-clipboard-outline:before{content:"󰅌"}.mdi-clipboard-play:before{content:"󰱙"}.mdi-clipboard-play-multiple:before{content:"󱉩"}.mdi-clipboard-play-multiple-outline:before{content:"󱉪"}.mdi-clipboard-play-outline:before{content:"󰱚"}.mdi-clipboard-plus:before{content:"󰝑"}.mdi-clipboard-plus-outline:before{content:"󱌟"}.mdi-clipboard-pulse:before{content:"󰡝"}.mdi-clipboard-pulse-outline:before{content:"󰡞"}.mdi-clipboard-remove:before{content:"󱘜"}.mdi-clipboard-remove-outline:before{content:"󱘝"}.mdi-clipboard-search:before{content:"󱘞"}.mdi-clipboard-search-outline:before{content:"󱘟"}.mdi-clipboard-text:before{content:"󰅍"}.mdi-clipboard-text-clock:before{content:"󱣹"}.mdi-clipboard-text-clock-outline:before{content:"󱣺"}.mdi-clipboard-text-multiple:before{content:"󱉫"}.mdi-clipboard-text-multiple-outline:before{content:"󱉬"}.mdi-clipboard-text-off:before{content:"󱘠"}.mdi-clipboard-text-off-outline:before{content:"󱘡"}.mdi-clipboard-text-outline:before{content:"󰨸"}.mdi-clipboard-text-play:before{content:"󰱛"}.mdi-clipboard-text-play-outline:before{content:"󰱜"}.mdi-clipboard-text-search:before{content:"󱘢"}.mdi-clipboard-text-search-outline:before{content:"󱘣"}.mdi-clippy:before{content:"󰅏"}.mdi-clock:before{content:"󰥔"}.mdi-clock-alert:before{content:"󰥕"}.mdi-clock-alert-outline:before{content:"󰗎"}.mdi-clock-check:before{content:"󰾨"}.mdi-clock-check-outline:before{content:"󰾩"}.mdi-clock-digital:before{content:"󰺗"}.mdi-clock-edit:before{content:"󱦺"}.mdi-clock-edit-outline:before{content:"󱦻"}.mdi-clock-end:before{content:"󰅑"}.mdi-clock-fast:before{content:"󰅒"}.mdi-clock-in:before{content:"󰅓"}.mdi-clock-minus:before{content:"󱡣"}.mdi-clock-minus-outline:before{content:"󱡤"}.mdi-clock-out:before{content:"󰅔"}.mdi-clock-outline:before{content:"󰅐"}.mdi-clock-plus:before{content:"󱡡"}.mdi-clock-plus-outline:before{content:"󱡢"}.mdi-clock-remove:before{content:"󱡥"}.mdi-clock-remove-outline:before{content:"󱡦"}.mdi-clock-star-four-points:before{content:"󱰩"}.mdi-clock-star-four-points-outline:before{content:"󱰪"}.mdi-clock-start:before{content:"󰅕"}.mdi-clock-time-eight:before{content:"󱑆"}.mdi-clock-time-eight-outline:before{content:"󱑒"}.mdi-clock-time-eleven:before{content:"󱑉"}.mdi-clock-time-eleven-outline:before{content:"󱑕"}.mdi-clock-time-five:before{content:"󱑃"}.mdi-clock-time-five-outline:before{content:"󱑏"}.mdi-clock-time-four:before{content:"󱑂"}.mdi-clock-time-four-outline:before{content:"󱑎"}.mdi-clock-time-nine:before{content:"󱑇"}.mdi-clock-time-nine-outline:before{content:"󱑓"}.mdi-clock-time-one:before{content:"󱐿"}.mdi-clock-time-one-outline:before{content:"󱑋"}.mdi-clock-time-seven:before{content:"󱑅"}.mdi-clock-time-seven-outline:before{content:"󱑑"}.mdi-clock-time-six:before{content:"󱑄"}.mdi-clock-time-six-outline:before{content:"󱑐"}.mdi-clock-time-ten:before{content:"󱑈"}.mdi-clock-time-ten-outline:before{content:"󱑔"}.mdi-clock-time-three:before{content:"󱑁"}.mdi-clock-time-three-outline:before{content:"󱑍"}.mdi-clock-time-twelve:before{content:"󱑊"}.mdi-clock-time-twelve-outline:before{content:"󱑖"}.mdi-clock-time-two:before{content:"󱑀"}.mdi-clock-time-two-outline:before{content:"󱑌"}.mdi-close:before{content:"󰅖"}.mdi-close-box:before{content:"󰅗"}.mdi-close-box-multiple:before{content:"󰱝"}.mdi-close-box-multiple-outline:before{content:"󰱞"}.mdi-close-box-outline:before{content:"󰅘"}.mdi-close-circle:before{content:"󰅙"}.mdi-close-circle-multiple:before{content:"󰘪"}.mdi-close-circle-multiple-outline:before{content:"󰢃"}.mdi-close-circle-outline:before{content:"󰅚"}.mdi-close-network:before{content:"󰅛"}.mdi-close-network-outline:before{content:"󰱟"}.mdi-close-octagon:before{content:"󰅜"}.mdi-close-octagon-outline:before{content:"󰅝"}.mdi-close-outline:before{content:"󰛉"}.mdi-close-thick:before{content:"󱎘"}.mdi-closed-caption:before{content:"󰅞"}.mdi-closed-caption-outline:before{content:"󰶽"}.mdi-cloud:before{content:"󰅟"}.mdi-cloud-alert:before{content:"󰧠"}.mdi-cloud-alert-outline:before{content:"󱯠"}.mdi-cloud-arrow-down:before{content:"󱯡"}.mdi-cloud-arrow-down-outline:before{content:"󱯢"}.mdi-cloud-arrow-left:before{content:"󱯣"}.mdi-cloud-arrow-left-outline:before{content:"󱯤"}.mdi-cloud-arrow-right:before{content:"󱯥"}.mdi-cloud-arrow-right-outline:before{content:"󱯦"}.mdi-cloud-arrow-up:before{content:"󱯧"}.mdi-cloud-arrow-up-outline:before{content:"󱯨"}.mdi-cloud-braces:before{content:"󰞵"}.mdi-cloud-cancel:before{content:"󱯩"}.mdi-cloud-cancel-outline:before{content:"󱯪"}.mdi-cloud-check:before{content:"󱯫"}.mdi-cloud-check-outline:before{content:"󱯬"}.mdi-cloud-check-variant:before{content:"󰅠"}.mdi-cloud-check-variant-outline:before{content:"󱋌"}.mdi-cloud-circle:before{content:"󰅡"}.mdi-cloud-circle-outline:before{content:"󱯭"}.mdi-cloud-clock:before{content:"󱯮"}.mdi-cloud-clock-outline:before{content:"󱯯"}.mdi-cloud-cog:before{content:"󱯰"}.mdi-cloud-cog-outline:before{content:"󱯱"}.mdi-cloud-download:before{content:"󰅢"}.mdi-cloud-download-outline:before{content:"󰭽"}.mdi-cloud-key:before{content:"󱲡"}.mdi-cloud-key-outline:before{content:"󱲢"}.mdi-cloud-lock:before{content:"󱇱"}.mdi-cloud-lock-open:before{content:"󱯲"}.mdi-cloud-lock-open-outline:before{content:"󱯳"}.mdi-cloud-lock-outline:before{content:"󱇲"}.mdi-cloud-minus:before{content:"󱯴"}.mdi-cloud-minus-outline:before{content:"󱯵"}.mdi-cloud-off:before{content:"󱯶"}.mdi-cloud-off-outline:before{content:"󰅤"}.mdi-cloud-outline:before{content:"󰅣"}.mdi-cloud-percent:before{content:"󱨵"}.mdi-cloud-percent-outline:before{content:"󱨶"}.mdi-cloud-plus:before{content:"󱯷"}.mdi-cloud-plus-outline:before{content:"󱯸"}.mdi-cloud-print:before{content:"󰅥"}.mdi-cloud-print-outline:before{content:"󰅦"}.mdi-cloud-question:before{content:"󰨹"}.mdi-cloud-question-outline:before{content:"󱯹"}.mdi-cloud-refresh:before{content:"󱯺"}.mdi-cloud-refresh-outline:before{content:"󱯻"}.mdi-cloud-refresh-variant:before{content:"󰔪"}.mdi-cloud-refresh-variant-outline:before{content:"󱯼"}.mdi-cloud-remove:before{content:"󱯽"}.mdi-cloud-remove-outline:before{content:"󱯾"}.mdi-cloud-search:before{content:"󰥖"}.mdi-cloud-search-outline:before{content:"󰥗"}.mdi-cloud-sync:before{content:"󰘿"}.mdi-cloud-sync-outline:before{content:"󱋖"}.mdi-cloud-tags:before{content:"󰞶"}.mdi-cloud-upload:before{content:"󰅧"}.mdi-cloud-upload-outline:before{content:"󰭾"}.mdi-clouds:before{content:"󱮕"}.mdi-clover:before{content:"󰠖"}.mdi-clover-outline:before{content:"󱱢"}.mdi-coach-lamp:before{content:"󱀠"}.mdi-coach-lamp-variant:before{content:"󱨷"}.mdi-coat-rack:before{content:"󱂞"}.mdi-code-array:before{content:"󰅨"}.mdi-code-block-braces:before{content:"󱲃"}.mdi-code-block-brackets:before{content:"󱲄"}.mdi-code-block-parentheses:before{content:"󱲅"}.mdi-code-block-tags:before{content:"󱲆"}.mdi-code-braces:before{content:"󰅩"}.mdi-code-braces-box:before{content:"󱃖"}.mdi-code-brackets:before{content:"󰅪"}.mdi-code-equal:before{content:"󰅫"}.mdi-code-greater-than:before{content:"󰅬"}.mdi-code-greater-than-or-equal:before{content:"󰅭"}.mdi-code-json:before{content:"󰘦"}.mdi-code-less-than:before{content:"󰅮"}.mdi-code-less-than-or-equal:before{content:"󰅯"}.mdi-code-not-equal:before{content:"󰅰"}.mdi-code-not-equal-variant:before{content:"󰅱"}.mdi-code-parentheses:before{content:"󰅲"}.mdi-code-parentheses-box:before{content:"󱃗"}.mdi-code-string:before{content:"󰅳"}.mdi-code-tags:before{content:"󰅴"}.mdi-code-tags-check:before{content:"󰚔"}.mdi-codepen:before{content:"󰅵"}.mdi-coffee:before{content:"󰅶"}.mdi-coffee-maker:before{content:"󱂟"}.mdi-coffee-maker-check:before{content:"󱤱"}.mdi-coffee-maker-check-outline:before{content:"󱤲"}.mdi-coffee-maker-outline:before{content:"󱠛"}.mdi-coffee-off:before{content:"󰾪"}.mdi-coffee-off-outline:before{content:"󰾫"}.mdi-coffee-outline:before{content:"󰛊"}.mdi-coffee-to-go:before{content:"󰅷"}.mdi-coffee-to-go-outline:before{content:"󱌎"}.mdi-coffin:before{content:"󰭿"}.mdi-cog:before{content:"󰒓"}.mdi-cog-box:before{content:"󰒔"}.mdi-cog-clockwise:before{content:"󱇝"}.mdi-cog-counterclockwise:before{content:"󱇞"}.mdi-cog-off:before{content:"󱏎"}.mdi-cog-off-outline:before{content:"󱏏"}.mdi-cog-outline:before{content:"󰢻"}.mdi-cog-pause:before{content:"󱤳"}.mdi-cog-pause-outline:before{content:"󱤴"}.mdi-cog-play:before{content:"󱤵"}.mdi-cog-play-outline:before{content:"󱤶"}.mdi-cog-refresh:before{content:"󱑞"}.mdi-cog-refresh-outline:before{content:"󱑟"}.mdi-cog-stop:before{content:"󱤷"}.mdi-cog-stop-outline:before{content:"󱤸"}.mdi-cog-sync:before{content:"󱑠"}.mdi-cog-sync-outline:before{content:"󱑡"}.mdi-cog-transfer:before{content:"󱁛"}.mdi-cog-transfer-outline:before{content:"󱁜"}.mdi-cogs:before{content:"󰣖"}.mdi-collage:before{content:"󰙀"}.mdi-collapse-all:before{content:"󰪦"}.mdi-collapse-all-outline:before{content:"󰪧"}.mdi-color-helper:before{content:"󰅹"}.mdi-comma:before{content:"󰸣"}.mdi-comma-box:before{content:"󰸫"}.mdi-comma-box-outline:before{content:"󰸤"}.mdi-comma-circle:before{content:"󰸥"}.mdi-comma-circle-outline:before{content:"󰸦"}.mdi-comment:before{content:"󰅺"}.mdi-comment-account:before{content:"󰅻"}.mdi-comment-account-outline:before{content:"󰅼"}.mdi-comment-alert:before{content:"󰅽"}.mdi-comment-alert-outline:before{content:"󰅾"}.mdi-comment-arrow-left:before{content:"󰧡"}.mdi-comment-arrow-left-outline:before{content:"󰧢"}.mdi-comment-arrow-right:before{content:"󰧣"}.mdi-comment-arrow-right-outline:before{content:"󰧤"}.mdi-comment-bookmark:before{content:"󱖮"}.mdi-comment-bookmark-outline:before{content:"󱖯"}.mdi-comment-check:before{content:"󰅿"}.mdi-comment-check-outline:before{content:"󰆀"}.mdi-comment-edit:before{content:"󱆿"}.mdi-comment-edit-outline:before{content:"󱋄"}.mdi-comment-eye:before{content:"󰨺"}.mdi-comment-eye-outline:before{content:"󰨻"}.mdi-comment-flash:before{content:"󱖰"}.mdi-comment-flash-outline:before{content:"󱖱"}.mdi-comment-minus:before{content:"󱗟"}.mdi-comment-minus-outline:before{content:"󱗠"}.mdi-comment-multiple:before{content:"󰡟"}.mdi-comment-multiple-outline:before{content:"󰆁"}.mdi-comment-off:before{content:"󱗡"}.mdi-comment-off-outline:before{content:"󱗢"}.mdi-comment-outline:before{content:"󰆂"}.mdi-comment-plus:before{content:"󰧥"}.mdi-comment-plus-outline:before{content:"󰆃"}.mdi-comment-processing:before{content:"󰆄"}.mdi-comment-processing-outline:before{content:"󰆅"}.mdi-comment-question:before{content:"󰠗"}.mdi-comment-question-outline:before{content:"󰆆"}.mdi-comment-quote:before{content:"󱀡"}.mdi-comment-quote-outline:before{content:"󱀢"}.mdi-comment-remove:before{content:"󰗞"}.mdi-comment-remove-outline:before{content:"󰆇"}.mdi-comment-search:before{content:"󰨼"}.mdi-comment-search-outline:before{content:"󰨽"}.mdi-comment-text:before{content:"󰆈"}.mdi-comment-text-multiple:before{content:"󰡠"}.mdi-comment-text-multiple-outline:before{content:"󰡡"}.mdi-comment-text-outline:before{content:"󰆉"}.mdi-compare:before{content:"󰆊"}.mdi-compare-horizontal:before{content:"󱒒"}.mdi-compare-remove:before{content:"󱢳"}.mdi-compare-vertical:before{content:"󱒓"}.mdi-compass:before{content:"󰆋"}.mdi-compass-off:before{content:"󰮀"}.mdi-compass-off-outline:before{content:"󰮁"}.mdi-compass-outline:before{content:"󰆌"}.mdi-compass-rose:before{content:"󱎂"}.mdi-compost:before{content:"󱨸"}.mdi-cone:before{content:"󱥌"}.mdi-cone-off:before{content:"󱥍"}.mdi-connection:before{content:"󱘖"}.mdi-console:before{content:"󰆍"}.mdi-console-line:before{content:"󰞷"}.mdi-console-network:before{content:"󰢩"}.mdi-console-network-outline:before{content:"󰱠"}.mdi-consolidate:before{content:"󱃘"}.mdi-contactless-payment:before{content:"󰵪"}.mdi-contactless-payment-circle:before{content:"󰌡"}.mdi-contactless-payment-circle-outline:before{content:"󰐈"}.mdi-contacts:before{content:"󰛋"}.mdi-contacts-outline:before{content:"󰖸"}.mdi-contain:before{content:"󰨾"}.mdi-contain-end:before{content:"󰨿"}.mdi-contain-start:before{content:"󰩀"}.mdi-content-copy:before{content:"󰆏"}.mdi-content-cut:before{content:"󰆐"}.mdi-content-duplicate:before{content:"󰆑"}.mdi-content-paste:before{content:"󰆒"}.mdi-content-save:before{content:"󰆓"}.mdi-content-save-alert:before{content:"󰽂"}.mdi-content-save-alert-outline:before{content:"󰽃"}.mdi-content-save-all:before{content:"󰆔"}.mdi-content-save-all-outline:before{content:"󰽄"}.mdi-content-save-check:before{content:"󱣪"}.mdi-content-save-check-outline:before{content:"󱣫"}.mdi-content-save-cog:before{content:"󱑛"}.mdi-content-save-cog-outline:before{content:"󱑜"}.mdi-content-save-edit:before{content:"󰳻"}.mdi-content-save-edit-outline:before{content:"󰳼"}.mdi-content-save-minus:before{content:"󱭃"}.mdi-content-save-minus-outline:before{content:"󱭄"}.mdi-content-save-move:before{content:"󰸧"}.mdi-content-save-move-outline:before{content:"󰸨"}.mdi-content-save-off:before{content:"󱙃"}.mdi-content-save-off-outline:before{content:"󱙄"}.mdi-content-save-outline:before{content:"󰠘"}.mdi-content-save-plus:before{content:"󱭁"}.mdi-content-save-plus-outline:before{content:"󱭂"}.mdi-content-save-settings:before{content:"󰘛"}.mdi-content-save-settings-outline:before{content:"󰬮"}.mdi-contrast:before{content:"󰆕"}.mdi-contrast-box:before{content:"󰆖"}.mdi-contrast-circle:before{content:"󰆗"}.mdi-controller:before{content:"󰊴"}.mdi-controller-classic:before{content:"󰮂"}.mdi-controller-classic-outline:before{content:"󰮃"}.mdi-controller-off:before{content:"󰊵"}.mdi-cookie:before{content:"󰆘"}.mdi-cookie-alert:before{content:"󱛐"}.mdi-cookie-alert-outline:before{content:"󱛑"}.mdi-cookie-check:before{content:"󱛒"}.mdi-cookie-check-outline:before{content:"󱛓"}.mdi-cookie-clock:before{content:"󱛤"}.mdi-cookie-clock-outline:before{content:"󱛥"}.mdi-cookie-cog:before{content:"󱛔"}.mdi-cookie-cog-outline:before{content:"󱛕"}.mdi-cookie-edit:before{content:"󱛦"}.mdi-cookie-edit-outline:before{content:"󱛧"}.mdi-cookie-lock:before{content:"󱛨"}.mdi-cookie-lock-outline:before{content:"󱛩"}.mdi-cookie-minus:before{content:"󱛚"}.mdi-cookie-minus-outline:before{content:"󱛛"}.mdi-cookie-off:before{content:"󱛪"}.mdi-cookie-off-outline:before{content:"󱛫"}.mdi-cookie-outline:before{content:"󱛞"}.mdi-cookie-plus:before{content:"󱛖"}.mdi-cookie-plus-outline:before{content:"󱛗"}.mdi-cookie-refresh:before{content:"󱛬"}.mdi-cookie-refresh-outline:before{content:"󱛭"}.mdi-cookie-remove:before{content:"󱛘"}.mdi-cookie-remove-outline:before{content:"󱛙"}.mdi-cookie-settings:before{content:"󱛜"}.mdi-cookie-settings-outline:before{content:"󱛝"}.mdi-coolant-temperature:before{content:"󰏈"}.mdi-copyleft:before{content:"󱤹"}.mdi-copyright:before{content:"󰗦"}.mdi-cordova:before{content:"󰥘"}.mdi-corn:before{content:"󰞸"}.mdi-corn-off:before{content:"󱏯"}.mdi-cosine-wave:before{content:"󱑹"}.mdi-counter:before{content:"󰆙"}.mdi-countertop:before{content:"󱠜"}.mdi-countertop-outline:before{content:"󱠝"}.mdi-cow:before{content:"󰆚"}.mdi-cow-off:before{content:"󱣼"}.mdi-cpu-32-bit:before{content:"󰻟"}.mdi-cpu-64-bit:before{content:"󰻠"}.mdi-cradle:before{content:"󱦋"}.mdi-cradle-outline:before{content:"󱦑"}.mdi-crane:before{content:"󰡢"}.mdi-creation:before{content:"󰙴"}.mdi-creation-outline:before{content:"󱰫"}.mdi-creative-commons:before{content:"󰵫"}.mdi-credit-card:before{content:"󰿯"}.mdi-credit-card-check:before{content:"󱏐"}.mdi-credit-card-check-outline:before{content:"󱏑"}.mdi-credit-card-chip:before{content:"󱤏"}.mdi-credit-card-chip-outline:before{content:"󱤐"}.mdi-credit-card-clock:before{content:"󰻡"}.mdi-credit-card-clock-outline:before{content:"󰻢"}.mdi-credit-card-edit:before{content:"󱟗"}.mdi-credit-card-edit-outline:before{content:"󱟘"}.mdi-credit-card-fast:before{content:"󱤑"}.mdi-credit-card-fast-outline:before{content:"󱤒"}.mdi-credit-card-lock:before{content:"󱣧"}.mdi-credit-card-lock-outline:before{content:"󱣨"}.mdi-credit-card-marker:before{content:"󰚨"}.mdi-credit-card-marker-outline:before{content:"󰶾"}.mdi-credit-card-minus:before{content:"󰾬"}.mdi-credit-card-minus-outline:before{content:"󰾭"}.mdi-credit-card-multiple:before{content:"󰿰"}.mdi-credit-card-multiple-outline:before{content:"󰆜"}.mdi-credit-card-off:before{content:"󰿱"}.mdi-credit-card-off-outline:before{content:"󰗤"}.mdi-credit-card-outline:before{content:"󰆛"}.mdi-credit-card-plus:before{content:"󰿲"}.mdi-credit-card-plus-outline:before{content:"󰙶"}.mdi-credit-card-refresh:before{content:"󱙅"}.mdi-credit-card-refresh-outline:before{content:"󱙆"}.mdi-credit-card-refund:before{content:"󰿳"}.mdi-credit-card-refund-outline:before{content:"󰪨"}.mdi-credit-card-remove:before{content:"󰾮"}.mdi-credit-card-remove-outline:before{content:"󰾯"}.mdi-credit-card-scan:before{content:"󰿴"}.mdi-credit-card-scan-outline:before{content:"󰆝"}.mdi-credit-card-search:before{content:"󱙇"}.mdi-credit-card-search-outline:before{content:"󱙈"}.mdi-credit-card-settings:before{content:"󰿵"}.mdi-credit-card-settings-outline:before{content:"󰣗"}.mdi-credit-card-sync:before{content:"󱙉"}.mdi-credit-card-sync-outline:before{content:"󱙊"}.mdi-credit-card-wireless:before{content:"󰠂"}.mdi-credit-card-wireless-off:before{content:"󰕺"}.mdi-credit-card-wireless-off-outline:before{content:"󰕻"}.mdi-credit-card-wireless-outline:before{content:"󰵬"}.mdi-cricket:before{content:"󰵭"}.mdi-crop:before{content:"󰆞"}.mdi-crop-free:before{content:"󰆟"}.mdi-crop-landscape:before{content:"󰆠"}.mdi-crop-portrait:before{content:"󰆡"}.mdi-crop-rotate:before{content:"󰚖"}.mdi-crop-square:before{content:"󰆢"}.mdi-cross:before{content:"󰥓"}.mdi-cross-bolnisi:before{content:"󰳭"}.mdi-cross-celtic:before{content:"󰳵"}.mdi-cross-outline:before{content:"󰳶"}.mdi-crosshairs:before{content:"󰆣"}.mdi-crosshairs-gps:before{content:"󰆤"}.mdi-crosshairs-off:before{content:"󰽅"}.mdi-crosshairs-question:before{content:"󱄶"}.mdi-crowd:before{content:"󱥵"}.mdi-crown:before{content:"󰆥"}.mdi-crown-circle:before{content:"󱟜"}.mdi-crown-circle-outline:before{content:"󱟝"}.mdi-crown-outline:before{content:"󱇐"}.mdi-cryengine:before{content:"󰥙"}.mdi-crystal-ball:before{content:"󰬯"}.mdi-cube:before{content:"󰆦"}.mdi-cube-off:before{content:"󱐜"}.mdi-cube-off-outline:before{content:"󱐝"}.mdi-cube-outline:before{content:"󰆧"}.mdi-cube-scan:before{content:"󰮄"}.mdi-cube-send:before{content:"󰆨"}.mdi-cube-unfolded:before{content:"󰆩"}.mdi-cup:before{content:"󰆪"}.mdi-cup-off:before{content:"󰗥"}.mdi-cup-off-outline:before{content:"󱍽"}.mdi-cup-outline:before{content:"󱌏"}.mdi-cup-water:before{content:"󰆫"}.mdi-cupboard:before{content:"󰽆"}.mdi-cupboard-outline:before{content:"󰽇"}.mdi-cupcake:before{content:"󰥚"}.mdi-curling:before{content:"󰡣"}.mdi-currency-bdt:before{content:"󰡤"}.mdi-currency-brl:before{content:"󰮅"}.mdi-currency-btc:before{content:"󰆬"}.mdi-currency-cny:before{content:"󰞺"}.mdi-currency-eth:before{content:"󰞻"}.mdi-currency-eur:before{content:"󰆭"}.mdi-currency-eur-off:before{content:"󱌕"}.mdi-currency-fra:before{content:"󱨹"}.mdi-currency-gbp:before{content:"󰆮"}.mdi-currency-ils:before{content:"󰱡"}.mdi-currency-inr:before{content:"󰆯"}.mdi-currency-jpy:before{content:"󰞼"}.mdi-currency-krw:before{content:"󰞽"}.mdi-currency-kzt:before{content:"󰡥"}.mdi-currency-mnt:before{content:"󱔒"}.mdi-currency-ngn:before{content:"󰆰"}.mdi-currency-php:before{content:"󰧦"}.mdi-currency-rial:before{content:"󰺜"}.mdi-currency-rub:before{content:"󰆱"}.mdi-currency-rupee:before{content:"󱥶"}.mdi-currency-sign:before{content:"󰞾"}.mdi-currency-thb:before{content:"󱰅"}.mdi-currency-try:before{content:"󰆲"}.mdi-currency-twd:before{content:"󰞿"}.mdi-currency-uah:before{content:"󱮛"}.mdi-currency-usd:before{content:"󰇁"}.mdi-currency-usd-off:before{content:"󰙺"}.mdi-current-ac:before{content:"󱒀"}.mdi-current-dc:before{content:"󰥜"}.mdi-cursor-default:before{content:"󰇀"}.mdi-cursor-default-click:before{content:"󰳽"}.mdi-cursor-default-click-outline:before{content:"󰳾"}.mdi-cursor-default-gesture:before{content:"󱄧"}.mdi-cursor-default-gesture-outline:before{content:"󱄨"}.mdi-cursor-default-outline:before{content:"󰆿"}.mdi-cursor-move:before{content:"󰆾"}.mdi-cursor-pointer:before{content:"󰆽"}.mdi-cursor-text:before{content:"󰗧"}.mdi-curtains:before{content:"󱡆"}.mdi-curtains-closed:before{content:"󱡇"}.mdi-cylinder:before{content:"󱥎"}.mdi-cylinder-off:before{content:"󱥏"}.mdi-dance-ballroom:before{content:"󱗻"}.mdi-dance-pole:before{content:"󱕸"}.mdi-data-matrix:before{content:"󱔼"}.mdi-data-matrix-edit:before{content:"󱔽"}.mdi-data-matrix-minus:before{content:"󱔾"}.mdi-data-matrix-plus:before{content:"󱔿"}.mdi-data-matrix-remove:before{content:"󱕀"}.mdi-data-matrix-scan:before{content:"󱕁"}.mdi-database:before{content:"󰆼"}.mdi-database-alert:before{content:"󱘺"}.mdi-database-alert-outline:before{content:"󱘤"}.mdi-database-arrow-down:before{content:"󱘻"}.mdi-database-arrow-down-outline:before{content:"󱘥"}.mdi-database-arrow-left:before{content:"󱘼"}.mdi-database-arrow-left-outline:before{content:"󱘦"}.mdi-database-arrow-right:before{content:"󱘽"}.mdi-database-arrow-right-outline:before{content:"󱘧"}.mdi-database-arrow-up:before{content:"󱘾"}.mdi-database-arrow-up-outline:before{content:"󱘨"}.mdi-database-check:before{content:"󰪩"}.mdi-database-check-outline:before{content:"󱘩"}.mdi-database-clock:before{content:"󱘿"}.mdi-database-clock-outline:before{content:"󱘪"}.mdi-database-cog:before{content:"󱙋"}.mdi-database-cog-outline:before{content:"󱙌"}.mdi-database-edit:before{content:"󰮆"}.mdi-database-edit-outline:before{content:"󱘫"}.mdi-database-export:before{content:"󰥞"}.mdi-database-export-outline:before{content:"󱘬"}.mdi-database-eye:before{content:"󱤟"}.mdi-database-eye-off:before{content:"󱤠"}.mdi-database-eye-off-outline:before{content:"󱤡"}.mdi-database-eye-outline:before{content:"󱤢"}.mdi-database-import:before{content:"󰥝"}.mdi-database-import-outline:before{content:"󱘭"}.mdi-database-lock:before{content:"󰪪"}.mdi-database-lock-outline:before{content:"󱘮"}.mdi-database-marker:before{content:"󱋶"}.mdi-database-marker-outline:before{content:"󱘯"}.mdi-database-minus:before{content:"󰆻"}.mdi-database-minus-outline:before{content:"󱘰"}.mdi-database-off:before{content:"󱙀"}.mdi-database-off-outline:before{content:"󱘱"}.mdi-database-outline:before{content:"󱘲"}.mdi-database-plus:before{content:"󰆺"}.mdi-database-plus-outline:before{content:"󱘳"}.mdi-database-refresh:before{content:"󰗂"}.mdi-database-refresh-outline:before{content:"󱘴"}.mdi-database-remove:before{content:"󰴀"}.mdi-database-remove-outline:before{content:"󱘵"}.mdi-database-search:before{content:"󰡦"}.mdi-database-search-outline:before{content:"󱘶"}.mdi-database-settings:before{content:"󰴁"}.mdi-database-settings-outline:before{content:"󱘷"}.mdi-database-sync:before{content:"󰳿"}.mdi-database-sync-outline:before{content:"󱘸"}.mdi-death-star:before{content:"󰣘"}.mdi-death-star-variant:before{content:"󰣙"}.mdi-deathly-hallows:before{content:"󰮇"}.mdi-debian:before{content:"󰣚"}.mdi-debug-step-into:before{content:"󰆹"}.mdi-debug-step-out:before{content:"󰆸"}.mdi-debug-step-over:before{content:"󰆷"}.mdi-decagram:before{content:"󰝬"}.mdi-decagram-outline:before{content:"󰝭"}.mdi-decimal:before{content:"󱂡"}.mdi-decimal-comma:before{content:"󱂢"}.mdi-decimal-comma-decrease:before{content:"󱂣"}.mdi-decimal-comma-increase:before{content:"󱂤"}.mdi-decimal-decrease:before{content:"󰆶"}.mdi-decimal-increase:before{content:"󰆵"}.mdi-delete:before{content:"󰆴"}.mdi-delete-alert:before{content:"󱂥"}.mdi-delete-alert-outline:before{content:"󱂦"}.mdi-delete-circle:before{content:"󰚃"}.mdi-delete-circle-outline:before{content:"󰮈"}.mdi-delete-clock:before{content:"󱕖"}.mdi-delete-clock-outline:before{content:"󱕗"}.mdi-delete-empty:before{content:"󰛌"}.mdi-delete-empty-outline:before{content:"󰺝"}.mdi-delete-forever:before{content:"󰗨"}.mdi-delete-forever-outline:before{content:"󰮉"}.mdi-delete-off:before{content:"󱂧"}.mdi-delete-off-outline:before{content:"󱂨"}.mdi-delete-outline:before{content:"󰧧"}.mdi-delete-restore:before{content:"󰠙"}.mdi-delete-sweep:before{content:"󰗩"}.mdi-delete-sweep-outline:before{content:"󰱢"}.mdi-delete-variant:before{content:"󰆳"}.mdi-delta:before{content:"󰇂"}.mdi-desk:before{content:"󱈹"}.mdi-desk-lamp:before{content:"󰥟"}.mdi-desk-lamp-off:before{content:"󱬟"}.mdi-desk-lamp-on:before{content:"󱬠"}.mdi-deskphone:before{content:"󰇃"}.mdi-desktop-classic:before{content:"󰟀"}.mdi-desktop-tower:before{content:"󰇅"}.mdi-desktop-tower-monitor:before{content:"󰪫"}.mdi-details:before{content:"󰇆"}.mdi-dev-to:before{content:"󰵮"}.mdi-developer-board:before{content:"󰚗"}.mdi-deviantart:before{content:"󰇇"}.mdi-devices:before{content:"󰾰"}.mdi-dharmachakra:before{content:"󰥋"}.mdi-diabetes:before{content:"󱄦"}.mdi-dialpad:before{content:"󰘜"}.mdi-diameter:before{content:"󰱣"}.mdi-diameter-outline:before{content:"󰱤"}.mdi-diameter-variant:before{content:"󰱥"}.mdi-diamond:before{content:"󰮊"}.mdi-diamond-outline:before{content:"󰮋"}.mdi-diamond-stone:before{content:"󰇈"}.mdi-dice-1:before{content:"󰇊"}.mdi-dice-1-outline:before{content:"󱅊"}.mdi-dice-2:before{content:"󰇋"}.mdi-dice-2-outline:before{content:"󱅋"}.mdi-dice-3:before{content:"󰇌"}.mdi-dice-3-outline:before{content:"󱅌"}.mdi-dice-4:before{content:"󰇍"}.mdi-dice-4-outline:before{content:"󱅍"}.mdi-dice-5:before{content:"󰇎"}.mdi-dice-5-outline:before{content:"󱅎"}.mdi-dice-6:before{content:"󰇏"}.mdi-dice-6-outline:before{content:"󱅏"}.mdi-dice-d10:before{content:"󱅓"}.mdi-dice-d10-outline:before{content:"󰝯"}.mdi-dice-d12:before{content:"󱅔"}.mdi-dice-d12-outline:before{content:"󰡧"}.mdi-dice-d20:before{content:"󱅕"}.mdi-dice-d20-outline:before{content:"󰗪"}.mdi-dice-d4:before{content:"󱅐"}.mdi-dice-d4-outline:before{content:"󰗫"}.mdi-dice-d6:before{content:"󱅑"}.mdi-dice-d6-outline:before{content:"󰗭"}.mdi-dice-d8:before{content:"󱅒"}.mdi-dice-d8-outline:before{content:"󰗬"}.mdi-dice-multiple:before{content:"󰝮"}.mdi-dice-multiple-outline:before{content:"󱅖"}.mdi-digital-ocean:before{content:"󱈷"}.mdi-dip-switch:before{content:"󰟁"}.mdi-directions:before{content:"󰇐"}.mdi-directions-fork:before{content:"󰙁"}.mdi-disc:before{content:"󰗮"}.mdi-disc-alert:before{content:"󰇑"}.mdi-disc-player:before{content:"󰥠"}.mdi-dishwasher:before{content:"󰪬"}.mdi-dishwasher-alert:before{content:"󱆸"}.mdi-dishwasher-off:before{content:"󱆹"}.mdi-disqus:before{content:"󰇒"}.mdi-distribute-horizontal-center:before{content:"󱇉"}.mdi-distribute-horizontal-left:before{content:"󱇈"}.mdi-distribute-horizontal-right:before{content:"󱇊"}.mdi-distribute-vertical-bottom:before{content:"󱇋"}.mdi-distribute-vertical-center:before{content:"󱇌"}.mdi-distribute-vertical-top:before{content:"󱇍"}.mdi-diversify:before{content:"󱡷"}.mdi-diving:before{content:"󱥷"}.mdi-diving-flippers:before{content:"󰶿"}.mdi-diving-helmet:before{content:"󰷀"}.mdi-diving-scuba:before{content:"󱭷"}.mdi-diving-scuba-flag:before{content:"󰷂"}.mdi-diving-scuba-mask:before{content:"󰷁"}.mdi-diving-scuba-tank:before{content:"󰷃"}.mdi-diving-scuba-tank-multiple:before{content:"󰷄"}.mdi-diving-snorkel:before{content:"󰷅"}.mdi-division:before{content:"󰇔"}.mdi-division-box:before{content:"󰇕"}.mdi-dlna:before{content:"󰩁"}.mdi-dna:before{content:"󰚄"}.mdi-dns:before{content:"󰇖"}.mdi-dns-outline:before{content:"󰮌"}.mdi-dock-bottom:before{content:"󱂩"}.mdi-dock-left:before{content:"󱂪"}.mdi-dock-right:before{content:"󱂫"}.mdi-dock-top:before{content:"󱔓"}.mdi-dock-window:before{content:"󱂬"}.mdi-docker:before{content:"󰡨"}.mdi-doctor:before{content:"󰩂"}.mdi-dog:before{content:"󰩃"}.mdi-dog-service:before{content:"󰪭"}.mdi-dog-side:before{content:"󰩄"}.mdi-dog-side-off:before{content:"󱛮"}.mdi-dolby:before{content:"󰚳"}.mdi-dolly:before{content:"󰺞"}.mdi-dolphin:before{content:"󱢴"}.mdi-domain:before{content:"󰇗"}.mdi-domain-off:before{content:"󰵯"}.mdi-domain-plus:before{content:"󱂭"}.mdi-domain-remove:before{content:"󱂮"}.mdi-domain-switch:before{content:"󱰬"}.mdi-dome-light:before{content:"󱐞"}.mdi-domino-mask:before{content:"󱀣"}.mdi-donkey:before{content:"󰟂"}.mdi-door:before{content:"󰠚"}.mdi-door-closed:before{content:"󰠛"}.mdi-door-closed-cancel:before{content:"󱲓"}.mdi-door-closed-lock:before{content:"󱂯"}.mdi-door-open:before{content:"󰠜"}.mdi-door-sliding:before{content:"󱠞"}.mdi-door-sliding-lock:before{content:"󱠟"}.mdi-door-sliding-open:before{content:"󱠠"}.mdi-doorbell:before{content:"󱋦"}.mdi-doorbell-video:before{content:"󰡩"}.mdi-dot-net:before{content:"󰪮"}.mdi-dots-circle:before{content:"󱥸"}.mdi-dots-grid:before{content:"󱗼"}.mdi-dots-hexagon:before{content:"󱗿"}.mdi-dots-horizontal:before{content:"󰇘"}.mdi-dots-horizontal-circle:before{content:"󰟃"}.mdi-dots-horizontal-circle-outline:before{content:"󰮍"}.mdi-dots-square:before{content:"󱗽"}.mdi-dots-triangle:before{content:"󱗾"}.mdi-dots-vertical:before{content:"󰇙"}.mdi-dots-vertical-circle:before{content:"󰟄"}.mdi-dots-vertical-circle-outline:before{content:"󰮎"}.mdi-download:before{content:"󰇚"}.mdi-download-box:before{content:"󱑢"}.mdi-download-box-outline:before{content:"󱑣"}.mdi-download-circle:before{content:"󱑤"}.mdi-download-circle-outline:before{content:"󱑥"}.mdi-download-lock:before{content:"󱌠"}.mdi-download-lock-outline:before{content:"󱌡"}.mdi-download-multiple:before{content:"󰧩"}.mdi-download-network:before{content:"󰛴"}.mdi-download-network-outline:before{content:"󰱦"}.mdi-download-off:before{content:"󱂰"}.mdi-download-off-outline:before{content:"󱂱"}.mdi-download-outline:before{content:"󰮏"}.mdi-drag:before{content:"󰇛"}.mdi-drag-horizontal:before{content:"󰇜"}.mdi-drag-horizontal-variant:before{content:"󱋰"}.mdi-drag-variant:before{content:"󰮐"}.mdi-drag-vertical:before{content:"󰇝"}.mdi-drag-vertical-variant:before{content:"󱋱"}.mdi-drama-masks:before{content:"󰴂"}.mdi-draw:before{content:"󰽉"}.mdi-draw-pen:before{content:"󱦹"}.mdi-drawing:before{content:"󰇞"}.mdi-drawing-box:before{content:"󰇟"}.mdi-dresser:before{content:"󰽊"}.mdi-dresser-outline:before{content:"󰽋"}.mdi-drone:before{content:"󰇢"}.mdi-dropbox:before{content:"󰇣"}.mdi-drupal:before{content:"󰇤"}.mdi-duck:before{content:"󰇥"}.mdi-dumbbell:before{content:"󰇦"}.mdi-dump-truck:before{content:"󰱧"}.mdi-ear-hearing:before{content:"󰟅"}.mdi-ear-hearing-loop:before{content:"󱫮"}.mdi-ear-hearing-off:before{content:"󰩅"}.mdi-earbuds:before{content:"󱡏"}.mdi-earbuds-off:before{content:"󱡐"}.mdi-earbuds-off-outline:before{content:"󱡑"}.mdi-earbuds-outline:before{content:"󱡒"}.mdi-earth:before{content:"󰇧"}.mdi-earth-arrow-down:before{content:"󱲇"}.mdi-earth-arrow-left:before{content:"󱲈"}.mdi-earth-arrow-right:before{content:"󱌑"}.mdi-earth-arrow-up:before{content:"󱲉"}.mdi-earth-box:before{content:"󰛍"}.mdi-earth-box-minus:before{content:"󱐇"}.mdi-earth-box-off:before{content:"󰛎"}.mdi-earth-box-plus:before{content:"󱐆"}.mdi-earth-box-remove:before{content:"󱐈"}.mdi-earth-minus:before{content:"󱐄"}.mdi-earth-off:before{content:"󰇨"}.mdi-earth-plus:before{content:"󱐃"}.mdi-earth-remove:before{content:"󱐅"}.mdi-egg:before{content:"󰪯"}.mdi-egg-easter:before{content:"󰪰"}.mdi-egg-fried:before{content:"󱡊"}.mdi-egg-off:before{content:"󱏰"}.mdi-egg-off-outline:before{content:"󱏱"}.mdi-egg-outline:before{content:"󱏲"}.mdi-eiffel-tower:before{content:"󱕫"}.mdi-eight-track:before{content:"󰧪"}.mdi-eject:before{content:"󰇪"}.mdi-eject-circle:before{content:"󱬣"}.mdi-eject-circle-outline:before{content:"󱬤"}.mdi-eject-outline:before{content:"󰮑"}.mdi-electric-switch:before{content:"󰺟"}.mdi-electric-switch-closed:before{content:"󱃙"}.mdi-electron-framework:before{content:"󱀤"}.mdi-elephant:before{content:"󰟆"}.mdi-elevation-decline:before{content:"󰇫"}.mdi-elevation-rise:before{content:"󰇬"}.mdi-elevator:before{content:"󰇭"}.mdi-elevator-down:before{content:"󱋂"}.mdi-elevator-passenger:before{content:"󱎁"}.mdi-elevator-passenger-off:before{content:"󱥹"}.mdi-elevator-passenger-off-outline:before{content:"󱥺"}.mdi-elevator-passenger-outline:before{content:"󱥻"}.mdi-elevator-up:before{content:"󱋁"}.mdi-ellipse:before{content:"󰺠"}.mdi-ellipse-outline:before{content:"󰺡"}.mdi-email:before{content:"󰇮"}.mdi-email-alert:before{content:"󰛏"}.mdi-email-alert-outline:before{content:"󰵂"}.mdi-email-arrow-left:before{content:"󱃚"}.mdi-email-arrow-left-outline:before{content:"󱃛"}.mdi-email-arrow-right:before{content:"󱃜"}.mdi-email-arrow-right-outline:before{content:"󱃝"}.mdi-email-box:before{content:"󰴃"}.mdi-email-check:before{content:"󰪱"}.mdi-email-check-outline:before{content:"󰪲"}.mdi-email-edit:before{content:"󰻣"}.mdi-email-edit-outline:before{content:"󰻤"}.mdi-email-fast:before{content:"󱡯"}.mdi-email-fast-outline:before{content:"󱡰"}.mdi-email-heart-outline:before{content:"󱱛"}.mdi-email-lock:before{content:"󰇱"}.mdi-email-lock-outline:before{content:"󱭡"}.mdi-email-mark-as-unread:before{content:"󰮒"}.mdi-email-minus:before{content:"󰻥"}.mdi-email-minus-outline:before{content:"󰻦"}.mdi-email-multiple:before{content:"󰻧"}.mdi-email-multiple-outline:before{content:"󰻨"}.mdi-email-newsletter:before{content:"󰾱"}.mdi-email-off:before{content:"󱏣"}.mdi-email-off-outline:before{content:"󱏤"}.mdi-email-open:before{content:"󰇯"}.mdi-email-open-heart-outline:before{content:"󱱜"}.mdi-email-open-multiple:before{content:"󰻩"}.mdi-email-open-multiple-outline:before{content:"󰻪"}.mdi-email-open-outline:before{content:"󰗯"}.mdi-email-outline:before{content:"󰇰"}.mdi-email-plus:before{content:"󰧫"}.mdi-email-plus-outline:before{content:"󰧬"}.mdi-email-remove:before{content:"󱙡"}.mdi-email-remove-outline:before{content:"󱙢"}.mdi-email-seal:before{content:"󱥛"}.mdi-email-seal-outline:before{content:"󱥜"}.mdi-email-search:before{content:"󰥡"}.mdi-email-search-outline:before{content:"󰥢"}.mdi-email-sync:before{content:"󱋇"}.mdi-email-sync-outline:before{content:"󱋈"}.mdi-email-variant:before{content:"󰗰"}.mdi-ember:before{content:"󰬰"}.mdi-emby:before{content:"󰚴"}.mdi-emoticon:before{content:"󰱨"}.mdi-emoticon-angry:before{content:"󰱩"}.mdi-emoticon-angry-outline:before{content:"󰱪"}.mdi-emoticon-confused:before{content:"󱃞"}.mdi-emoticon-confused-outline:before{content:"󱃟"}.mdi-emoticon-cool:before{content:"󰱫"}.mdi-emoticon-cool-outline:before{content:"󰇳"}.mdi-emoticon-cry:before{content:"󰱬"}.mdi-emoticon-cry-outline:before{content:"󰱭"}.mdi-emoticon-dead:before{content:"󰱮"}.mdi-emoticon-dead-outline:before{content:"󰚛"}.mdi-emoticon-devil:before{content:"󰱯"}.mdi-emoticon-devil-outline:before{content:"󰇴"}.mdi-emoticon-excited:before{content:"󰱰"}.mdi-emoticon-excited-outline:before{content:"󰚜"}.mdi-emoticon-frown:before{content:"󰽌"}.mdi-emoticon-frown-outline:before{content:"󰽍"}.mdi-emoticon-happy:before{content:"󰱱"}.mdi-emoticon-happy-outline:before{content:"󰇵"}.mdi-emoticon-kiss:before{content:"󰱲"}.mdi-emoticon-kiss-outline:before{content:"󰱳"}.mdi-emoticon-lol:before{content:"󱈔"}.mdi-emoticon-lol-outline:before{content:"󱈕"}.mdi-emoticon-minus:before{content:"󱲲"}.mdi-emoticon-minus-outline:before{content:"󱲳"}.mdi-emoticon-neutral:before{content:"󰱴"}.mdi-emoticon-neutral-outline:before{content:"󰇶"}.mdi-emoticon-outline:before{content:"󰇲"}.mdi-emoticon-plus:before{content:"󱲴"}.mdi-emoticon-plus-outline:before{content:"󱲵"}.mdi-emoticon-poop:before{content:"󰇷"}.mdi-emoticon-poop-outline:before{content:"󰱵"}.mdi-emoticon-remove:before{content:"󱲶"}.mdi-emoticon-remove-outline:before{content:"󱲷"}.mdi-emoticon-sad:before{content:"󰱶"}.mdi-emoticon-sad-outline:before{content:"󰇸"}.mdi-emoticon-sick:before{content:"󱕼"}.mdi-emoticon-sick-outline:before{content:"󱕽"}.mdi-emoticon-tongue:before{content:"󰇹"}.mdi-emoticon-tongue-outline:before{content:"󰱷"}.mdi-emoticon-wink:before{content:"󰱸"}.mdi-emoticon-wink-outline:before{content:"󰱹"}.mdi-engine:before{content:"󰇺"}.mdi-engine-off:before{content:"󰩆"}.mdi-engine-off-outline:before{content:"󰩇"}.mdi-engine-outline:before{content:"󰇻"}.mdi-epsilon:before{content:"󱃠"}.mdi-equal:before{content:"󰇼"}.mdi-equal-box:before{content:"󰇽"}.mdi-equalizer:before{content:"󰺢"}.mdi-equalizer-outline:before{content:"󰺣"}.mdi-eraser:before{content:"󰇾"}.mdi-eraser-variant:before{content:"󰙂"}.mdi-escalator:before{content:"󰇿"}.mdi-escalator-box:before{content:"󱎙"}.mdi-escalator-down:before{content:"󱋀"}.mdi-escalator-up:before{content:"󱊿"}.mdi-eslint:before{content:"󰱺"}.mdi-et:before{content:"󰪳"}.mdi-ethereum:before{content:"󰡪"}.mdi-ethernet:before{content:"󰈀"}.mdi-ethernet-cable:before{content:"󰈁"}.mdi-ethernet-cable-off:before{content:"󰈂"}.mdi-ev-plug-ccs1:before{content:"󱔙"}.mdi-ev-plug-ccs2:before{content:"󱔚"}.mdi-ev-plug-chademo:before{content:"󱔛"}.mdi-ev-plug-tesla:before{content:"󱔜"}.mdi-ev-plug-type1:before{content:"󱔝"}.mdi-ev-plug-type2:before{content:"󱔞"}.mdi-ev-station:before{content:"󰗱"}.mdi-evernote:before{content:"󰈄"}.mdi-excavator:before{content:"󱀥"}.mdi-exclamation:before{content:"󰈅"}.mdi-exclamation-thick:before{content:"󱈸"}.mdi-exit-run:before{content:"󰩈"}.mdi-exit-to-app:before{content:"󰈆"}.mdi-expand-all:before{content:"󰪴"}.mdi-expand-all-outline:before{content:"󰪵"}.mdi-expansion-card:before{content:"󰢮"}.mdi-expansion-card-variant:before{content:"󰾲"}.mdi-exponent:before{content:"󰥣"}.mdi-exponent-box:before{content:"󰥤"}.mdi-export:before{content:"󰈇"}.mdi-export-variant:before{content:"󰮓"}.mdi-eye:before{content:"󰈈"}.mdi-eye-arrow-left:before{content:"󱣽"}.mdi-eye-arrow-left-outline:before{content:"󱣾"}.mdi-eye-arrow-right:before{content:"󱣿"}.mdi-eye-arrow-right-outline:before{content:"󱤀"}.mdi-eye-check:before{content:"󰴄"}.mdi-eye-check-outline:before{content:"󰴅"}.mdi-eye-circle:before{content:"󰮔"}.mdi-eye-circle-outline:before{content:"󰮕"}.mdi-eye-closed:before{content:"󱲣"}.mdi-eye-lock:before{content:"󱰆"}.mdi-eye-lock-open:before{content:"󱰇"}.mdi-eye-lock-open-outline:before{content:"󱰈"}.mdi-eye-lock-outline:before{content:"󱰉"}.mdi-eye-minus:before{content:"󱀦"}.mdi-eye-minus-outline:before{content:"󱀧"}.mdi-eye-off:before{content:"󰈉"}.mdi-eye-off-outline:before{content:"󰛑"}.mdi-eye-outline:before{content:"󰛐"}.mdi-eye-plus:before{content:"󰡫"}.mdi-eye-plus-outline:before{content:"󰡬"}.mdi-eye-refresh:before{content:"󱥼"}.mdi-eye-refresh-outline:before{content:"󱥽"}.mdi-eye-remove:before{content:"󱗣"}.mdi-eye-remove-outline:before{content:"󱗤"}.mdi-eye-settings:before{content:"󰡭"}.mdi-eye-settings-outline:before{content:"󰡮"}.mdi-eyedropper:before{content:"󰈊"}.mdi-eyedropper-minus:before{content:"󱏝"}.mdi-eyedropper-off:before{content:"󱏟"}.mdi-eyedropper-plus:before{content:"󱏜"}.mdi-eyedropper-remove:before{content:"󱏞"}.mdi-eyedropper-variant:before{content:"󰈋"}.mdi-face-agent:before{content:"󰵰"}.mdi-face-man:before{content:"󰙃"}.mdi-face-man-outline:before{content:"󰮖"}.mdi-face-man-profile:before{content:"󰙄"}.mdi-face-man-shimmer:before{content:"󱗌"}.mdi-face-man-shimmer-outline:before{content:"󱗍"}.mdi-face-mask:before{content:"󱖆"}.mdi-face-mask-outline:before{content:"󱖇"}.mdi-face-recognition:before{content:"󰱻"}.mdi-face-woman:before{content:"󱁷"}.mdi-face-woman-outline:before{content:"󱁸"}.mdi-face-woman-profile:before{content:"󱁶"}.mdi-face-woman-shimmer:before{content:"󱗎"}.mdi-face-woman-shimmer-outline:before{content:"󱗏"}.mdi-facebook:before{content:"󰈌"}.mdi-facebook-gaming:before{content:"󰟝"}.mdi-facebook-messenger:before{content:"󰈎"}.mdi-facebook-workplace:before{content:"󰬱"}.mdi-factory:before{content:"󰈏"}.mdi-family-tree:before{content:"󱘎"}.mdi-fan:before{content:"󰈐"}.mdi-fan-alert:before{content:"󱑬"}.mdi-fan-auto:before{content:"󱜝"}.mdi-fan-chevron-down:before{content:"󱑭"}.mdi-fan-chevron-up:before{content:"󱑮"}.mdi-fan-clock:before{content:"󱨺"}.mdi-fan-minus:before{content:"󱑰"}.mdi-fan-off:before{content:"󰠝"}.mdi-fan-plus:before{content:"󱑯"}.mdi-fan-remove:before{content:"󱑱"}.mdi-fan-speed-1:before{content:"󱑲"}.mdi-fan-speed-2:before{content:"󱑳"}.mdi-fan-speed-3:before{content:"󱑴"}.mdi-fast-forward:before{content:"󰈑"}.mdi-fast-forward-10:before{content:"󰵱"}.mdi-fast-forward-15:before{content:"󱤺"}.mdi-fast-forward-30:before{content:"󰴆"}.mdi-fast-forward-45:before{content:"󱬒"}.mdi-fast-forward-5:before{content:"󱇸"}.mdi-fast-forward-60:before{content:"󱘋"}.mdi-fast-forward-outline:before{content:"󰛒"}.mdi-faucet:before{content:"󱬩"}.mdi-faucet-variant:before{content:"󱬪"}.mdi-fax:before{content:"󰈒"}.mdi-feather:before{content:"󰛓"}.mdi-feature-search:before{content:"󰩉"}.mdi-feature-search-outline:before{content:"󰩊"}.mdi-fedora:before{content:"󰣛"}.mdi-fence:before{content:"󱞚"}.mdi-fence-electric:before{content:"󱟶"}.mdi-fencing:before{content:"󱓁"}.mdi-ferris-wheel:before{content:"󰺤"}.mdi-ferry:before{content:"󰈓"}.mdi-file:before{content:"󰈔"}.mdi-file-account:before{content:"󰜻"}.mdi-file-account-outline:before{content:"󱀨"}.mdi-file-alert:before{content:"󰩋"}.mdi-file-alert-outline:before{content:"󰩌"}.mdi-file-arrow-left-right:before{content:"󱪓"}.mdi-file-arrow-left-right-outline:before{content:"󱪔"}.mdi-file-arrow-up-down:before{content:"󱪕"}.mdi-file-arrow-up-down-outline:before{content:"󱪖"}.mdi-file-cabinet:before{content:"󰪶"}.mdi-file-cad:before{content:"󰻫"}.mdi-file-cad-box:before{content:"󰻬"}.mdi-file-cancel:before{content:"󰷆"}.mdi-file-cancel-outline:before{content:"󰷇"}.mdi-file-certificate:before{content:"󱆆"}.mdi-file-certificate-outline:before{content:"󱆇"}.mdi-file-chart:before{content:"󰈕"}.mdi-file-chart-check:before{content:"󱧆"}.mdi-file-chart-check-outline:before{content:"󱧇"}.mdi-file-chart-outline:before{content:"󱀩"}.mdi-file-check:before{content:"󰈖"}.mdi-file-check-outline:before{content:"󰸩"}.mdi-file-clock:before{content:"󱋡"}.mdi-file-clock-outline:before{content:"󱋢"}.mdi-file-cloud:before{content:"󰈗"}.mdi-file-cloud-outline:before{content:"󱀪"}.mdi-file-code:before{content:"󰈮"}.mdi-file-code-outline:before{content:"󱀫"}.mdi-file-cog:before{content:"󱁻"}.mdi-file-cog-outline:before{content:"󱁼"}.mdi-file-compare:before{content:"󰢪"}.mdi-file-delimited:before{content:"󰈘"}.mdi-file-delimited-outline:before{content:"󰺥"}.mdi-file-document:before{content:"󰈙"}.mdi-file-document-alert:before{content:"󱪗"}.mdi-file-document-alert-outline:before{content:"󱪘"}.mdi-file-document-arrow-right:before{content:"󱰏"}.mdi-file-document-arrow-right-outline:before{content:"󱰐"}.mdi-file-document-check:before{content:"󱪙"}.mdi-file-document-check-outline:before{content:"󱪚"}.mdi-file-document-edit:before{content:"󰷈"}.mdi-file-document-edit-outline:before{content:"󰷉"}.mdi-file-document-minus:before{content:"󱪛"}.mdi-file-document-minus-outline:before{content:"󱪜"}.mdi-file-document-multiple:before{content:"󱔗"}.mdi-file-document-multiple-outline:before{content:"󱔘"}.mdi-file-document-outline:before{content:"󰧮"}.mdi-file-document-plus:before{content:"󱪝"}.mdi-file-document-plus-outline:before{content:"󱪞"}.mdi-file-document-refresh:before{content:"󱱺"}.mdi-file-document-refresh-outline:before{content:"󱱻"}.mdi-file-document-remove:before{content:"󱪟"}.mdi-file-document-remove-outline:before{content:"󱪠"}.mdi-file-download:before{content:"󰥥"}.mdi-file-download-outline:before{content:"󰥦"}.mdi-file-edit:before{content:"󱇧"}.mdi-file-edit-outline:before{content:"󱇨"}.mdi-file-excel:before{content:"󰈛"}.mdi-file-excel-box:before{content:"󰈜"}.mdi-file-excel-box-outline:before{content:"󱀬"}.mdi-file-excel-outline:before{content:"󱀭"}.mdi-file-export:before{content:"󰈝"}.mdi-file-export-outline:before{content:"󱀮"}.mdi-file-eye:before{content:"󰷊"}.mdi-file-eye-outline:before{content:"󰷋"}.mdi-file-find:before{content:"󰈞"}.mdi-file-find-outline:before{content:"󰮗"}.mdi-file-gif-box:before{content:"󰵸"}.mdi-file-hidden:before{content:"󰘓"}.mdi-file-image:before{content:"󰈟"}.mdi-file-image-marker:before{content:"󱝲"}.mdi-file-image-marker-outline:before{content:"󱝳"}.mdi-file-image-minus:before{content:"󱤻"}.mdi-file-image-minus-outline:before{content:"󱤼"}.mdi-file-image-outline:before{content:"󰺰"}.mdi-file-image-plus:before{content:"󱤽"}.mdi-file-image-plus-outline:before{content:"󱤾"}.mdi-file-image-remove:before{content:"󱤿"}.mdi-file-image-remove-outline:before{content:"󱥀"}.mdi-file-import:before{content:"󰈠"}.mdi-file-import-outline:before{content:"󱀯"}.mdi-file-jpg-box:before{content:"󰈥"}.mdi-file-key:before{content:"󱆄"}.mdi-file-key-outline:before{content:"󱆅"}.mdi-file-link:before{content:"󱅷"}.mdi-file-link-outline:before{content:"󱅸"}.mdi-file-lock:before{content:"󰈡"}.mdi-file-lock-open:before{content:"󱧈"}.mdi-file-lock-open-outline:before{content:"󱧉"}.mdi-file-lock-outline:before{content:"󱀰"}.mdi-file-marker:before{content:"󱝴"}.mdi-file-marker-outline:before{content:"󱝵"}.mdi-file-minus:before{content:"󱪡"}.mdi-file-minus-outline:before{content:"󱪢"}.mdi-file-move:before{content:"󰪹"}.mdi-file-move-outline:before{content:"󱀱"}.mdi-file-multiple:before{content:"󰈢"}.mdi-file-multiple-outline:before{content:"󱀲"}.mdi-file-music:before{content:"󰈣"}.mdi-file-music-outline:before{content:"󰸪"}.mdi-file-outline:before{content:"󰈤"}.mdi-file-pdf-box:before{content:"󰈦"}.mdi-file-percent:before{content:"󰠞"}.mdi-file-percent-outline:before{content:"󱀳"}.mdi-file-phone:before{content:"󱅹"}.mdi-file-phone-outline:before{content:"󱅺"}.mdi-file-plus:before{content:"󰝒"}.mdi-file-plus-outline:before{content:"󰻭"}.mdi-file-png-box:before{content:"󰸭"}.mdi-file-powerpoint:before{content:"󰈧"}.mdi-file-powerpoint-box:before{content:"󰈨"}.mdi-file-powerpoint-box-outline:before{content:"󱀴"}.mdi-file-powerpoint-outline:before{content:"󱀵"}.mdi-file-presentation-box:before{content:"󰈩"}.mdi-file-question:before{content:"󰡯"}.mdi-file-question-outline:before{content:"󱀶"}.mdi-file-refresh:before{content:"󰤘"}.mdi-file-refresh-outline:before{content:"󰕁"}.mdi-file-remove:before{content:"󰮘"}.mdi-file-remove-outline:before{content:"󱀷"}.mdi-file-replace:before{content:"󰬲"}.mdi-file-replace-outline:before{content:"󰬳"}.mdi-file-restore:before{content:"󰙰"}.mdi-file-restore-outline:before{content:"󱀸"}.mdi-file-rotate-left:before{content:"󱨻"}.mdi-file-rotate-left-outline:before{content:"󱨼"}.mdi-file-rotate-right:before{content:"󱨽"}.mdi-file-rotate-right-outline:before{content:"󱨾"}.mdi-file-search:before{content:"󰱼"}.mdi-file-search-outline:before{content:"󰱽"}.mdi-file-send:before{content:"󰈪"}.mdi-file-send-outline:before{content:"󱀹"}.mdi-file-settings:before{content:"󱁹"}.mdi-file-settings-outline:before{content:"󱁺"}.mdi-file-sign:before{content:"󱧃"}.mdi-file-star:before{content:"󱀺"}.mdi-file-star-four-points:before{content:"󱰭"}.mdi-file-star-four-points-outline:before{content:"󱰮"}.mdi-file-star-outline:before{content:"󱀻"}.mdi-file-swap:before{content:"󰾴"}.mdi-file-swap-outline:before{content:"󰾵"}.mdi-file-sync:before{content:"󱈖"}.mdi-file-sync-outline:before{content:"󱈗"}.mdi-file-table:before{content:"󰱾"}.mdi-file-table-box:before{content:"󱃡"}.mdi-file-table-box-multiple:before{content:"󱃢"}.mdi-file-table-box-multiple-outline:before{content:"󱃣"}.mdi-file-table-box-outline:before{content:"󱃤"}.mdi-file-table-outline:before{content:"󰱿"}.mdi-file-tree:before{content:"󰙅"}.mdi-file-tree-outline:before{content:"󱏒"}.mdi-file-undo:before{content:"󰣜"}.mdi-file-undo-outline:before{content:"󱀼"}.mdi-file-upload:before{content:"󰩍"}.mdi-file-upload-outline:before{content:"󰩎"}.mdi-file-video:before{content:"󰈫"}.mdi-file-video-outline:before{content:"󰸬"}.mdi-file-word:before{content:"󰈬"}.mdi-file-word-box:before{content:"󰈭"}.mdi-file-word-box-outline:before{content:"󱀽"}.mdi-file-word-outline:before{content:"󱀾"}.mdi-file-xml-box:before{content:"󱭋"}.mdi-film:before{content:"󰈯"}.mdi-filmstrip:before{content:"󰈰"}.mdi-filmstrip-box:before{content:"󰌲"}.mdi-filmstrip-box-multiple:before{content:"󰴘"}.mdi-filmstrip-off:before{content:"󰈱"}.mdi-filter:before{content:"󰈲"}.mdi-filter-check:before{content:"󱣬"}.mdi-filter-check-outline:before{content:"󱣭"}.mdi-filter-cog:before{content:"󱪣"}.mdi-filter-cog-outline:before{content:"󱪤"}.mdi-filter-menu:before{content:"󱃥"}.mdi-filter-menu-outline:before{content:"󱃦"}.mdi-filter-minus:before{content:"󰻮"}.mdi-filter-minus-outline:before{content:"󰻯"}.mdi-filter-multiple:before{content:"󱨿"}.mdi-filter-multiple-outline:before{content:"󱩀"}.mdi-filter-off:before{content:"󱓯"}.mdi-filter-off-outline:before{content:"󱓰"}.mdi-filter-outline:before{content:"󰈳"}.mdi-filter-plus:before{content:"󰻰"}.mdi-filter-plus-outline:before{content:"󰻱"}.mdi-filter-remove:before{content:"󰈴"}.mdi-filter-remove-outline:before{content:"󰈵"}.mdi-filter-settings:before{content:"󱪥"}.mdi-filter-settings-outline:before{content:"󱪦"}.mdi-filter-variant:before{content:"󰈶"}.mdi-filter-variant-minus:before{content:"󱄒"}.mdi-filter-variant-plus:before{content:"󱄓"}.mdi-filter-variant-remove:before{content:"󱀿"}.mdi-finance:before{content:"󰠟"}.mdi-find-replace:before{content:"󰛔"}.mdi-fingerprint:before{content:"󰈷"}.mdi-fingerprint-off:before{content:"󰺱"}.mdi-fire:before{content:"󰈸"}.mdi-fire-alert:before{content:"󱗗"}.mdi-fire-circle:before{content:"󱠇"}.mdi-fire-extinguisher:before{content:"󰻲"}.mdi-fire-hydrant:before{content:"󱄷"}.mdi-fire-hydrant-alert:before{content:"󱄸"}.mdi-fire-hydrant-off:before{content:"󱄹"}.mdi-fire-off:before{content:"󱜢"}.mdi-fire-station:before{content:"󱳃"}.mdi-fire-truck:before{content:"󰢫"}.mdi-firebase:before{content:"󰥧"}.mdi-firefox:before{content:"󰈹"}.mdi-fireplace:before{content:"󰸮"}.mdi-fireplace-off:before{content:"󰸯"}.mdi-firewire:before{content:"󰖾"}.mdi-firework:before{content:"󰸰"}.mdi-firework-off:before{content:"󱜣"}.mdi-fish:before{content:"󰈺"}.mdi-fish-off:before{content:"󱏳"}.mdi-fishbowl:before{content:"󰻳"}.mdi-fishbowl-outline:before{content:"󰻴"}.mdi-fit-to-page:before{content:"󰻵"}.mdi-fit-to-page-outline:before{content:"󰻶"}.mdi-fit-to-screen:before{content:"󱣴"}.mdi-fit-to-screen-outline:before{content:"󱣵"}.mdi-flag:before{content:"󰈻"}.mdi-flag-checkered:before{content:"󰈼"}.mdi-flag-minus:before{content:"󰮙"}.mdi-flag-minus-outline:before{content:"󱂲"}.mdi-flag-off:before{content:"󱣮"}.mdi-flag-off-outline:before{content:"󱣯"}.mdi-flag-outline:before{content:"󰈽"}.mdi-flag-plus:before{content:"󰮚"}.mdi-flag-plus-outline:before{content:"󱂳"}.mdi-flag-remove:before{content:"󰮛"}.mdi-flag-remove-outline:before{content:"󱂴"}.mdi-flag-triangle:before{content:"󰈿"}.mdi-flag-variant:before{content:"󰉀"}.mdi-flag-variant-minus:before{content:"󱮴"}.mdi-flag-variant-minus-outline:before{content:"󱮵"}.mdi-flag-variant-off:before{content:"󱮰"}.mdi-flag-variant-off-outline:before{content:"󱮱"}.mdi-flag-variant-outline:before{content:"󰈾"}.mdi-flag-variant-plus:before{content:"󱮲"}.mdi-flag-variant-plus-outline:before{content:"󱮳"}.mdi-flag-variant-remove:before{content:"󱮶"}.mdi-flag-variant-remove-outline:before{content:"󱮷"}.mdi-flare:before{content:"󰵲"}.mdi-flash:before{content:"󰉁"}.mdi-flash-alert:before{content:"󰻷"}.mdi-flash-alert-outline:before{content:"󰻸"}.mdi-flash-auto:before{content:"󰉂"}.mdi-flash-off:before{content:"󰉃"}.mdi-flash-off-outline:before{content:"󱭅"}.mdi-flash-outline:before{content:"󰛕"}.mdi-flash-red-eye:before{content:"󰙻"}.mdi-flash-triangle:before{content:"󱬝"}.mdi-flash-triangle-outline:before{content:"󱬞"}.mdi-flashlight:before{content:"󰉄"}.mdi-flashlight-off:before{content:"󰉅"}.mdi-flask:before{content:"󰂓"}.mdi-flask-empty:before{content:"󰂔"}.mdi-flask-empty-minus:before{content:"󱈺"}.mdi-flask-empty-minus-outline:before{content:"󱈻"}.mdi-flask-empty-off:before{content:"󱏴"}.mdi-flask-empty-off-outline:before{content:"󱏵"}.mdi-flask-empty-outline:before{content:"󰂕"}.mdi-flask-empty-plus:before{content:"󱈼"}.mdi-flask-empty-plus-outline:before{content:"󱈽"}.mdi-flask-empty-remove:before{content:"󱈾"}.mdi-flask-empty-remove-outline:before{content:"󱈿"}.mdi-flask-minus:before{content:"󱉀"}.mdi-flask-minus-outline:before{content:"󱉁"}.mdi-flask-off:before{content:"󱏶"}.mdi-flask-off-outline:before{content:"󱏷"}.mdi-flask-outline:before{content:"󰂖"}.mdi-flask-plus:before{content:"󱉂"}.mdi-flask-plus-outline:before{content:"󱉃"}.mdi-flask-remove:before{content:"󱉄"}.mdi-flask-remove-outline:before{content:"󱉅"}.mdi-flask-round-bottom:before{content:"󱉋"}.mdi-flask-round-bottom-empty:before{content:"󱉌"}.mdi-flask-round-bottom-empty-outline:before{content:"󱉍"}.mdi-flask-round-bottom-outline:before{content:"󱉎"}.mdi-fleur-de-lis:before{content:"󱌃"}.mdi-flip-horizontal:before{content:"󱃧"}.mdi-flip-to-back:before{content:"󰉇"}.mdi-flip-to-front:before{content:"󰉈"}.mdi-flip-vertical:before{content:"󱃨"}.mdi-floor-lamp:before{content:"󰣝"}.mdi-floor-lamp-dual:before{content:"󱁀"}.mdi-floor-lamp-dual-outline:before{content:"󱟎"}.mdi-floor-lamp-outline:before{content:"󱟈"}.mdi-floor-lamp-torchiere:before{content:"󱝇"}.mdi-floor-lamp-torchiere-outline:before{content:"󱟖"}.mdi-floor-lamp-torchiere-variant:before{content:"󱁁"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"󱟏"}.mdi-floor-plan:before{content:"󰠡"}.mdi-floppy:before{content:"󰉉"}.mdi-floppy-variant:before{content:"󰧯"}.mdi-flower:before{content:"󰉊"}.mdi-flower-outline:before{content:"󰧰"}.mdi-flower-pollen:before{content:"󱢅"}.mdi-flower-pollen-outline:before{content:"󱢆"}.mdi-flower-poppy:before{content:"󰴈"}.mdi-flower-tulip:before{content:"󰧱"}.mdi-flower-tulip-outline:before{content:"󰧲"}.mdi-focus-auto:before{content:"󰽎"}.mdi-focus-field:before{content:"󰽏"}.mdi-focus-field-horizontal:before{content:"󰽐"}.mdi-focus-field-vertical:before{content:"󰽑"}.mdi-folder:before{content:"󰉋"}.mdi-folder-account:before{content:"󰉌"}.mdi-folder-account-outline:before{content:"󰮜"}.mdi-folder-alert:before{content:"󰷌"}.mdi-folder-alert-outline:before{content:"󰷍"}.mdi-folder-arrow-down:before{content:"󱧨"}.mdi-folder-arrow-down-outline:before{content:"󱧩"}.mdi-folder-arrow-left:before{content:"󱧪"}.mdi-folder-arrow-left-outline:before{content:"󱧫"}.mdi-folder-arrow-left-right:before{content:"󱧬"}.mdi-folder-arrow-left-right-outline:before{content:"󱧭"}.mdi-folder-arrow-right:before{content:"󱧮"}.mdi-folder-arrow-right-outline:before{content:"󱧯"}.mdi-folder-arrow-up:before{content:"󱧰"}.mdi-folder-arrow-up-down:before{content:"󱧱"}.mdi-folder-arrow-up-down-outline:before{content:"󱧲"}.mdi-folder-arrow-up-outline:before{content:"󱧳"}.mdi-folder-cancel:before{content:"󱧴"}.mdi-folder-cancel-outline:before{content:"󱧵"}.mdi-folder-check:before{content:"󱥾"}.mdi-folder-check-outline:before{content:"󱥿"}.mdi-folder-clock:before{content:"󰪺"}.mdi-folder-clock-outline:before{content:"󰪻"}.mdi-folder-cog:before{content:"󱁿"}.mdi-folder-cog-outline:before{content:"󱂀"}.mdi-folder-download:before{content:"󰉍"}.mdi-folder-download-outline:before{content:"󱃩"}.mdi-folder-edit:before{content:"󰣞"}.mdi-folder-edit-outline:before{content:"󰷎"}.mdi-folder-eye:before{content:"󱞊"}.mdi-folder-eye-outline:before{content:"󱞋"}.mdi-folder-file:before{content:"󱧶"}.mdi-folder-file-outline:before{content:"󱧷"}.mdi-folder-google-drive:before{content:"󰉎"}.mdi-folder-heart:before{content:"󱃪"}.mdi-folder-heart-outline:before{content:"󱃫"}.mdi-folder-hidden:before{content:"󱞞"}.mdi-folder-home:before{content:"󱂵"}.mdi-folder-home-outline:before{content:"󱂶"}.mdi-folder-image:before{content:"󰉏"}.mdi-folder-information:before{content:"󱂷"}.mdi-folder-information-outline:before{content:"󱂸"}.mdi-folder-key:before{content:"󰢬"}.mdi-folder-key-network:before{content:"󰢭"}.mdi-folder-key-network-outline:before{content:"󰲀"}.mdi-folder-key-outline:before{content:"󱃬"}.mdi-folder-lock:before{content:"󰉐"}.mdi-folder-lock-open:before{content:"󰉑"}.mdi-folder-lock-open-outline:before{content:"󱪧"}.mdi-folder-lock-outline:before{content:"󱪨"}.mdi-folder-marker:before{content:"󱉭"}.mdi-folder-marker-outline:before{content:"󱉮"}.mdi-folder-minus:before{content:"󱭉"}.mdi-folder-minus-outline:before{content:"󱭊"}.mdi-folder-move:before{content:"󰉒"}.mdi-folder-move-outline:before{content:"󱉆"}.mdi-folder-multiple:before{content:"󰉓"}.mdi-folder-multiple-image:before{content:"󰉔"}.mdi-folder-multiple-outline:before{content:"󰉕"}.mdi-folder-multiple-plus:before{content:"󱑾"}.mdi-folder-multiple-plus-outline:before{content:"󱑿"}.mdi-folder-music:before{content:"󱍙"}.mdi-folder-music-outline:before{content:"󱍚"}.mdi-folder-network:before{content:"󰡰"}.mdi-folder-network-outline:before{content:"󰲁"}.mdi-folder-off:before{content:"󱧸"}.mdi-folder-off-outline:before{content:"󱧹"}.mdi-folder-open:before{content:"󰝰"}.mdi-folder-open-outline:before{content:"󰷏"}.mdi-folder-outline:before{content:"󰉖"}.mdi-folder-play:before{content:"󱧺"}.mdi-folder-play-outline:before{content:"󱧻"}.mdi-folder-plus:before{content:"󰉗"}.mdi-folder-plus-outline:before{content:"󰮝"}.mdi-folder-pound:before{content:"󰴉"}.mdi-folder-pound-outline:before{content:"󰴊"}.mdi-folder-question:before{content:"󱧊"}.mdi-folder-question-outline:before{content:"󱧋"}.mdi-folder-refresh:before{content:"󰝉"}.mdi-folder-refresh-outline:before{content:"󰕂"}.mdi-folder-remove:before{content:"󰉘"}.mdi-folder-remove-outline:before{content:"󰮞"}.mdi-folder-search:before{content:"󰥨"}.mdi-folder-search-outline:before{content:"󰥩"}.mdi-folder-settings:before{content:"󱁽"}.mdi-folder-settings-outline:before{content:"󱁾"}.mdi-folder-star:before{content:"󰚝"}.mdi-folder-star-multiple:before{content:"󱏓"}.mdi-folder-star-multiple-outline:before{content:"󱏔"}.mdi-folder-star-outline:before{content:"󰮟"}.mdi-folder-swap:before{content:"󰾶"}.mdi-folder-swap-outline:before{content:"󰾷"}.mdi-folder-sync:before{content:"󰴋"}.mdi-folder-sync-outline:before{content:"󰴌"}.mdi-folder-table:before{content:"󱋣"}.mdi-folder-table-outline:before{content:"󱋤"}.mdi-folder-text:before{content:"󰲂"}.mdi-folder-text-outline:before{content:"󰲃"}.mdi-folder-upload:before{content:"󰉙"}.mdi-folder-upload-outline:before{content:"󱃭"}.mdi-folder-wrench:before{content:"󱧼"}.mdi-folder-wrench-outline:before{content:"󱧽"}.mdi-folder-zip:before{content:"󰛫"}.mdi-folder-zip-outline:before{content:"󰞹"}.mdi-font-awesome:before{content:"󰀺"}.mdi-food:before{content:"󰉚"}.mdi-food-apple:before{content:"󰉛"}.mdi-food-apple-outline:before{content:"󰲄"}.mdi-food-croissant:before{content:"󰟈"}.mdi-food-drumstick:before{content:"󱐟"}.mdi-food-drumstick-off:before{content:"󱑨"}.mdi-food-drumstick-off-outline:before{content:"󱑩"}.mdi-food-drumstick-outline:before{content:"󱐠"}.mdi-food-fork-drink:before{content:"󰗲"}.mdi-food-halal:before{content:"󱕲"}.mdi-food-hot-dog:before{content:"󱡋"}.mdi-food-kosher:before{content:"󱕳"}.mdi-food-off:before{content:"󰗳"}.mdi-food-off-outline:before{content:"󱤕"}.mdi-food-outline:before{content:"󱤖"}.mdi-food-steak:before{content:"󱑪"}.mdi-food-steak-off:before{content:"󱑫"}.mdi-food-takeout-box:before{content:"󱠶"}.mdi-food-takeout-box-outline:before{content:"󱠷"}.mdi-food-turkey:before{content:"󱜜"}.mdi-food-variant:before{content:"󰉜"}.mdi-food-variant-off:before{content:"󱏥"}.mdi-foot-print:before{content:"󰽒"}.mdi-football:before{content:"󰉝"}.mdi-football-australian:before{content:"󰉞"}.mdi-football-helmet:before{content:"󰉟"}.mdi-forest:before{content:"󱢗"}.mdi-forest-outline:before{content:"󱱣"}.mdi-forklift:before{content:"󰟉"}.mdi-form-dropdown:before{content:"󱐀"}.mdi-form-select:before{content:"󱐁"}.mdi-form-textarea:before{content:"󱂕"}.mdi-form-textbox:before{content:"󰘎"}.mdi-form-textbox-lock:before{content:"󱍝"}.mdi-form-textbox-password:before{content:"󰟵"}.mdi-format-align-bottom:before{content:"󰝓"}.mdi-format-align-center:before{content:"󰉠"}.mdi-format-align-justify:before{content:"󰉡"}.mdi-format-align-left:before{content:"󰉢"}.mdi-format-align-middle:before{content:"󰝔"}.mdi-format-align-right:before{content:"󰉣"}.mdi-format-align-top:before{content:"󰝕"}.mdi-format-annotation-minus:before{content:"󰪼"}.mdi-format-annotation-plus:before{content:"󰙆"}.mdi-format-bold:before{content:"󰉤"}.mdi-format-clear:before{content:"󰉥"}.mdi-format-color-fill:before{content:"󰉦"}.mdi-format-color-highlight:before{content:"󰸱"}.mdi-format-color-marker-cancel:before{content:"󱌓"}.mdi-format-color-text:before{content:"󰚞"}.mdi-format-columns:before{content:"󰣟"}.mdi-format-float-center:before{content:"󰉧"}.mdi-format-float-left:before{content:"󰉨"}.mdi-format-float-none:before{content:"󰉩"}.mdi-format-float-right:before{content:"󰉪"}.mdi-format-font:before{content:"󰛖"}.mdi-format-font-size-decrease:before{content:"󰧳"}.mdi-format-font-size-increase:before{content:"󰧴"}.mdi-format-header-1:before{content:"󰉫"}.mdi-format-header-2:before{content:"󰉬"}.mdi-format-header-3:before{content:"󰉭"}.mdi-format-header-4:before{content:"󰉮"}.mdi-format-header-5:before{content:"󰉯"}.mdi-format-header-6:before{content:"󰉰"}.mdi-format-header-decrease:before{content:"󰉱"}.mdi-format-header-equal:before{content:"󰉲"}.mdi-format-header-increase:before{content:"󰉳"}.mdi-format-header-pound:before{content:"󰉴"}.mdi-format-horizontal-align-center:before{content:"󰘞"}.mdi-format-horizontal-align-left:before{content:"󰘟"}.mdi-format-horizontal-align-right:before{content:"󰘠"}.mdi-format-indent-decrease:before{content:"󰉵"}.mdi-format-indent-increase:before{content:"󰉶"}.mdi-format-italic:before{content:"󰉷"}.mdi-format-letter-case:before{content:"󰬴"}.mdi-format-letter-case-lower:before{content:"󰬵"}.mdi-format-letter-case-upper:before{content:"󰬶"}.mdi-format-letter-ends-with:before{content:"󰾸"}.mdi-format-letter-matches:before{content:"󰾹"}.mdi-format-letter-spacing:before{content:"󱥖"}.mdi-format-letter-spacing-variant:before{content:"󱫻"}.mdi-format-letter-starts-with:before{content:"󰾺"}.mdi-format-line-height:before{content:"󱫼"}.mdi-format-line-spacing:before{content:"󰉸"}.mdi-format-line-style:before{content:"󰗈"}.mdi-format-line-weight:before{content:"󰗉"}.mdi-format-list-bulleted:before{content:"󰉹"}.mdi-format-list-bulleted-square:before{content:"󰷐"}.mdi-format-list-bulleted-triangle:before{content:"󰺲"}.mdi-format-list-bulleted-type:before{content:"󰉺"}.mdi-format-list-checkbox:before{content:"󰥪"}.mdi-format-list-checks:before{content:"󰝖"}.mdi-format-list-group:before{content:"󱡠"}.mdi-format-list-group-plus:before{content:"󱭖"}.mdi-format-list-numbered:before{content:"󰉻"}.mdi-format-list-numbered-rtl:before{content:"󰴍"}.mdi-format-list-text:before{content:"󱉯"}.mdi-format-overline:before{content:"󰺳"}.mdi-format-page-break:before{content:"󰛗"}.mdi-format-page-split:before{content:"󱤗"}.mdi-format-paint:before{content:"󰉼"}.mdi-format-paragraph:before{content:"󰉽"}.mdi-format-paragraph-spacing:before{content:"󱫽"}.mdi-format-pilcrow:before{content:"󰛘"}.mdi-format-pilcrow-arrow-left:before{content:"󰊆"}.mdi-format-pilcrow-arrow-right:before{content:"󰊅"}.mdi-format-quote-close:before{content:"󰉾"}.mdi-format-quote-close-outline:before{content:"󱆨"}.mdi-format-quote-open:before{content:"󰝗"}.mdi-format-quote-open-outline:before{content:"󱆧"}.mdi-format-rotate-90:before{content:"󰚪"}.mdi-format-section:before{content:"󰚟"}.mdi-format-size:before{content:"󰉿"}.mdi-format-strikethrough:before{content:"󰊀"}.mdi-format-strikethrough-variant:before{content:"󰊁"}.mdi-format-subscript:before{content:"󰊂"}.mdi-format-superscript:before{content:"󰊃"}.mdi-format-text:before{content:"󰊄"}.mdi-format-text-rotation-angle-down:before{content:"󰾻"}.mdi-format-text-rotation-angle-up:before{content:"󰾼"}.mdi-format-text-rotation-down:before{content:"󰵳"}.mdi-format-text-rotation-down-vertical:before{content:"󰾽"}.mdi-format-text-rotation-none:before{content:"󰵴"}.mdi-format-text-rotation-up:before{content:"󰾾"}.mdi-format-text-rotation-vertical:before{content:"󰾿"}.mdi-format-text-variant:before{content:"󰸲"}.mdi-format-text-variant-outline:before{content:"󱔏"}.mdi-format-text-wrapping-clip:before{content:"󰴎"}.mdi-format-text-wrapping-overflow:before{content:"󰴏"}.mdi-format-text-wrapping-wrap:before{content:"󰴐"}.mdi-format-textbox:before{content:"󰴑"}.mdi-format-title:before{content:"󰗴"}.mdi-format-underline:before{content:"󰊇"}.mdi-format-underline-wavy:before{content:"󱣩"}.mdi-format-vertical-align-bottom:before{content:"󰘡"}.mdi-format-vertical-align-center:before{content:"󰘢"}.mdi-format-vertical-align-top:before{content:"󰘣"}.mdi-format-wrap-inline:before{content:"󰊈"}.mdi-format-wrap-square:before{content:"󰊉"}.mdi-format-wrap-tight:before{content:"󰊊"}.mdi-format-wrap-top-bottom:before{content:"󰊋"}.mdi-forum:before{content:"󰊌"}.mdi-forum-minus:before{content:"󱪩"}.mdi-forum-minus-outline:before{content:"󱪪"}.mdi-forum-outline:before{content:"󰠢"}.mdi-forum-plus:before{content:"󱪫"}.mdi-forum-plus-outline:before{content:"󱪬"}.mdi-forum-remove:before{content:"󱪭"}.mdi-forum-remove-outline:before{content:"󱪮"}.mdi-forward:before{content:"󰊍"}.mdi-forwardburger:before{content:"󰵵"}.mdi-fountain:before{content:"󰥫"}.mdi-fountain-pen:before{content:"󰴒"}.mdi-fountain-pen-tip:before{content:"󰴓"}.mdi-fraction-one-half:before{content:"󱦒"}.mdi-freebsd:before{content:"󰣠"}.mdi-french-fries:before{content:"󱥗"}.mdi-frequently-asked-questions:before{content:"󰺴"}.mdi-fridge:before{content:"󰊐"}.mdi-fridge-alert:before{content:"󱆱"}.mdi-fridge-alert-outline:before{content:"󱆲"}.mdi-fridge-bottom:before{content:"󰊒"}.mdi-fridge-industrial:before{content:"󱗮"}.mdi-fridge-industrial-alert:before{content:"󱗯"}.mdi-fridge-industrial-alert-outline:before{content:"󱗰"}.mdi-fridge-industrial-off:before{content:"󱗱"}.mdi-fridge-industrial-off-outline:before{content:"󱗲"}.mdi-fridge-industrial-outline:before{content:"󱗳"}.mdi-fridge-off:before{content:"󱆯"}.mdi-fridge-off-outline:before{content:"󱆰"}.mdi-fridge-outline:before{content:"󰊏"}.mdi-fridge-top:before{content:"󰊑"}.mdi-fridge-variant:before{content:"󱗴"}.mdi-fridge-variant-alert:before{content:"󱗵"}.mdi-fridge-variant-alert-outline:before{content:"󱗶"}.mdi-fridge-variant-off:before{content:"󱗷"}.mdi-fridge-variant-off-outline:before{content:"󱗸"}.mdi-fridge-variant-outline:before{content:"󱗹"}.mdi-fruit-cherries:before{content:"󱁂"}.mdi-fruit-cherries-off:before{content:"󱏸"}.mdi-fruit-citrus:before{content:"󱁃"}.mdi-fruit-citrus-off:before{content:"󱏹"}.mdi-fruit-grapes:before{content:"󱁄"}.mdi-fruit-grapes-outline:before{content:"󱁅"}.mdi-fruit-pear:before{content:"󱨎"}.mdi-fruit-pineapple:before{content:"󱁆"}.mdi-fruit-watermelon:before{content:"󱁇"}.mdi-fuel:before{content:"󰟊"}.mdi-fuel-cell:before{content:"󱢵"}.mdi-fullscreen:before{content:"󰊓"}.mdi-fullscreen-exit:before{content:"󰊔"}.mdi-function:before{content:"󰊕"}.mdi-function-variant:before{content:"󰡱"}.mdi-furigana-horizontal:before{content:"󱂁"}.mdi-furigana-vertical:before{content:"󱂂"}.mdi-fuse:before{content:"󰲅"}.mdi-fuse-alert:before{content:"󱐭"}.mdi-fuse-blade:before{content:"󰲆"}.mdi-fuse-off:before{content:"󱐬"}.mdi-gamepad:before{content:"󰊖"}.mdi-gamepad-circle:before{content:"󰸳"}.mdi-gamepad-circle-down:before{content:"󰸴"}.mdi-gamepad-circle-left:before{content:"󰸵"}.mdi-gamepad-circle-outline:before{content:"󰸶"}.mdi-gamepad-circle-right:before{content:"󰸷"}.mdi-gamepad-circle-up:before{content:"󰸸"}.mdi-gamepad-down:before{content:"󰸹"}.mdi-gamepad-left:before{content:"󰸺"}.mdi-gamepad-outline:before{content:"󱤙"}.mdi-gamepad-right:before{content:"󰸻"}.mdi-gamepad-round:before{content:"󰸼"}.mdi-gamepad-round-down:before{content:"󰸽"}.mdi-gamepad-round-left:before{content:"󰸾"}.mdi-gamepad-round-outline:before{content:"󰸿"}.mdi-gamepad-round-right:before{content:"󰹀"}.mdi-gamepad-round-up:before{content:"󰹁"}.mdi-gamepad-square:before{content:"󰺵"}.mdi-gamepad-square-outline:before{content:"󰺶"}.mdi-gamepad-up:before{content:"󰹂"}.mdi-gamepad-variant:before{content:"󰊗"}.mdi-gamepad-variant-outline:before{content:"󰺷"}.mdi-gamma:before{content:"󱃮"}.mdi-gantry-crane:before{content:"󰷑"}.mdi-garage:before{content:"󰛙"}.mdi-garage-alert:before{content:"󰡲"}.mdi-garage-alert-variant:before{content:"󱋕"}.mdi-garage-lock:before{content:"󱟻"}.mdi-garage-open:before{content:"󰛚"}.mdi-garage-open-variant:before{content:"󱋔"}.mdi-garage-variant:before{content:"󱋓"}.mdi-garage-variant-lock:before{content:"󱟼"}.mdi-gas-burner:before{content:"󱨛"}.mdi-gas-cylinder:before{content:"󰙇"}.mdi-gas-station:before{content:"󰊘"}.mdi-gas-station-in-use:before{content:"󱳄"}.mdi-gas-station-in-use-outline:before{content:"󱳅"}.mdi-gas-station-off:before{content:"󱐉"}.mdi-gas-station-off-outline:before{content:"󱐊"}.mdi-gas-station-outline:before{content:"󰺸"}.mdi-gate:before{content:"󰊙"}.mdi-gate-alert:before{content:"󱟸"}.mdi-gate-and:before{content:"󰣡"}.mdi-gate-arrow-left:before{content:"󱟷"}.mdi-gate-arrow-right:before{content:"󱅩"}.mdi-gate-buffer:before{content:"󱫾"}.mdi-gate-nand:before{content:"󰣢"}.mdi-gate-nor:before{content:"󰣣"}.mdi-gate-not:before{content:"󰣤"}.mdi-gate-open:before{content:"󱅪"}.mdi-gate-or:before{content:"󰣥"}.mdi-gate-xnor:before{content:"󰣦"}.mdi-gate-xor:before{content:"󰣧"}.mdi-gatsby:before{content:"󰹃"}.mdi-gauge:before{content:"󰊚"}.mdi-gauge-empty:before{content:"󰡳"}.mdi-gauge-full:before{content:"󰡴"}.mdi-gauge-low:before{content:"󰡵"}.mdi-gavel:before{content:"󰊛"}.mdi-gender-female:before{content:"󰊜"}.mdi-gender-male:before{content:"󰊝"}.mdi-gender-male-female:before{content:"󰊞"}.mdi-gender-male-female-variant:before{content:"󱄿"}.mdi-gender-non-binary:before{content:"󱅀"}.mdi-gender-transgender:before{content:"󰊟"}.mdi-generator-mobile:before{content:"󱲊"}.mdi-generator-portable:before{content:"󱲋"}.mdi-generator-stationary:before{content:"󱲌"}.mdi-gentoo:before{content:"󰣨"}.mdi-gesture:before{content:"󰟋"}.mdi-gesture-double-tap:before{content:"󰜼"}.mdi-gesture-pinch:before{content:"󰪽"}.mdi-gesture-spread:before{content:"󰪾"}.mdi-gesture-swipe:before{content:"󰵶"}.mdi-gesture-swipe-down:before{content:"󰜽"}.mdi-gesture-swipe-horizontal:before{content:"󰪿"}.mdi-gesture-swipe-left:before{content:"󰜾"}.mdi-gesture-swipe-right:before{content:"󰜿"}.mdi-gesture-swipe-up:before{content:"󰝀"}.mdi-gesture-swipe-vertical:before{content:"󰫀"}.mdi-gesture-tap:before{content:"󰝁"}.mdi-gesture-tap-box:before{content:"󱊩"}.mdi-gesture-tap-button:before{content:"󱊨"}.mdi-gesture-tap-hold:before{content:"󰵷"}.mdi-gesture-two-double-tap:before{content:"󰝂"}.mdi-gesture-two-tap:before{content:"󰝃"}.mdi-ghost:before{content:"󰊠"}.mdi-ghost-off:before{content:"󰧵"}.mdi-ghost-off-outline:before{content:"󱙜"}.mdi-ghost-outline:before{content:"󱙝"}.mdi-gift:before{content:"󰹄"}.mdi-gift-off:before{content:"󱛯"}.mdi-gift-off-outline:before{content:"󱛰"}.mdi-gift-open:before{content:"󱛱"}.mdi-gift-open-outline:before{content:"󱛲"}.mdi-gift-outline:before{content:"󰊡"}.mdi-git:before{content:"󰊢"}.mdi-github:before{content:"󰊤"}.mdi-gitlab:before{content:"󰮠"}.mdi-glass-cocktail:before{content:"󰍖"}.mdi-glass-cocktail-off:before{content:"󱗦"}.mdi-glass-flute:before{content:"󰊥"}.mdi-glass-fragile:before{content:"󱡳"}.mdi-glass-mug:before{content:"󰊦"}.mdi-glass-mug-off:before{content:"󱗧"}.mdi-glass-mug-variant:before{content:"󱄖"}.mdi-glass-mug-variant-off:before{content:"󱗨"}.mdi-glass-pint-outline:before{content:"󱌍"}.mdi-glass-stange:before{content:"󰊧"}.mdi-glass-tulip:before{content:"󰊨"}.mdi-glass-wine:before{content:"󰡶"}.mdi-glasses:before{content:"󰊪"}.mdi-globe-light:before{content:"󰙯"}.mdi-globe-light-outline:before{content:"󱋗"}.mdi-globe-model:before{content:"󰣩"}.mdi-gmail:before{content:"󰊫"}.mdi-gnome:before{content:"󰊬"}.mdi-go-kart:before{content:"󰵹"}.mdi-go-kart-track:before{content:"󰵺"}.mdi-gog:before{content:"󰮡"}.mdi-gold:before{content:"󱉏"}.mdi-golf:before{content:"󰠣"}.mdi-golf-cart:before{content:"󱆤"}.mdi-golf-tee:before{content:"󱂃"}.mdi-gondola:before{content:"󰚆"}.mdi-goodreads:before{content:"󰵻"}.mdi-google:before{content:"󰊭"}.mdi-google-ads:before{content:"󰲇"}.mdi-google-analytics:before{content:"󰟌"}.mdi-google-assistant:before{content:"󰟍"}.mdi-google-cardboard:before{content:"󰊮"}.mdi-google-chrome:before{content:"󰊯"}.mdi-google-circles:before{content:"󰊰"}.mdi-google-circles-communities:before{content:"󰊱"}.mdi-google-circles-extended:before{content:"󰊲"}.mdi-google-circles-group:before{content:"󰊳"}.mdi-google-classroom:before{content:"󰋀"}.mdi-google-cloud:before{content:"󱇶"}.mdi-google-downasaur:before{content:"󱍢"}.mdi-google-drive:before{content:"󰊶"}.mdi-google-earth:before{content:"󰊷"}.mdi-google-fit:before{content:"󰥬"}.mdi-google-glass:before{content:"󰊸"}.mdi-google-hangouts:before{content:"󰋉"}.mdi-google-keep:before{content:"󰛜"}.mdi-google-lens:before{content:"󰧶"}.mdi-google-maps:before{content:"󰗵"}.mdi-google-my-business:before{content:"󱁈"}.mdi-google-nearby:before{content:"󰊹"}.mdi-google-play:before{content:"󰊼"}.mdi-google-plus:before{content:"󰊽"}.mdi-google-podcast:before{content:"󰺹"}.mdi-google-spreadsheet:before{content:"󰧷"}.mdi-google-street-view:before{content:"󰲈"}.mdi-google-translate:before{content:"󰊿"}.mdi-gradient-horizontal:before{content:"󱝊"}.mdi-gradient-vertical:before{content:"󰚠"}.mdi-grain:before{content:"󰵼"}.mdi-graph:before{content:"󱁉"}.mdi-graph-outline:before{content:"󱁊"}.mdi-graphql:before{content:"󰡷"}.mdi-grass:before{content:"󱔐"}.mdi-grave-stone:before{content:"󰮢"}.mdi-grease-pencil:before{content:"󰙈"}.mdi-greater-than:before{content:"󰥭"}.mdi-greater-than-or-equal:before{content:"󰥮"}.mdi-greenhouse:before{content:"󰀭"}.mdi-grid:before{content:"󰋁"}.mdi-grid-large:before{content:"󰝘"}.mdi-grid-off:before{content:"󰋂"}.mdi-grill:before{content:"󰹅"}.mdi-grill-outline:before{content:"󱆊"}.mdi-group:before{content:"󰋃"}.mdi-guitar-acoustic:before{content:"󰝱"}.mdi-guitar-electric:before{content:"󰋄"}.mdi-guitar-pick:before{content:"󰋅"}.mdi-guitar-pick-outline:before{content:"󰋆"}.mdi-guy-fawkes-mask:before{content:"󰠥"}.mdi-gymnastics:before{content:"󱩁"}.mdi-hail:before{content:"󰫁"}.mdi-hair-dryer:before{content:"󱃯"}.mdi-hair-dryer-outline:before{content:"󱃰"}.mdi-halloween:before{content:"󰮣"}.mdi-hamburger:before{content:"󰚅"}.mdi-hamburger-check:before{content:"󱝶"}.mdi-hamburger-minus:before{content:"󱝷"}.mdi-hamburger-off:before{content:"󱝸"}.mdi-hamburger-plus:before{content:"󱝹"}.mdi-hamburger-remove:before{content:"󱝺"}.mdi-hammer:before{content:"󰣪"}.mdi-hammer-screwdriver:before{content:"󱌢"}.mdi-hammer-sickle:before{content:"󱢇"}.mdi-hammer-wrench:before{content:"󱌣"}.mdi-hand-back-left:before{content:"󰹆"}.mdi-hand-back-left-off:before{content:"󱠰"}.mdi-hand-back-left-off-outline:before{content:"󱠲"}.mdi-hand-back-left-outline:before{content:"󱠬"}.mdi-hand-back-right:before{content:"󰹇"}.mdi-hand-back-right-off:before{content:"󱠱"}.mdi-hand-back-right-off-outline:before{content:"󱠳"}.mdi-hand-back-right-outline:before{content:"󱠭"}.mdi-hand-clap:before{content:"󱥋"}.mdi-hand-clap-off:before{content:"󱩂"}.mdi-hand-coin:before{content:"󱢏"}.mdi-hand-coin-outline:before{content:"󱢐"}.mdi-hand-cycle:before{content:"󱮜"}.mdi-hand-extended:before{content:"󱢶"}.mdi-hand-extended-outline:before{content:"󱢷"}.mdi-hand-front-left:before{content:"󱠫"}.mdi-hand-front-left-outline:before{content:"󱠮"}.mdi-hand-front-right:before{content:"󰩏"}.mdi-hand-front-right-outline:before{content:"󱠯"}.mdi-hand-heart:before{content:"󱃱"}.mdi-hand-heart-outline:before{content:"󱕾"}.mdi-hand-okay:before{content:"󰩐"}.mdi-hand-peace:before{content:"󰩑"}.mdi-hand-peace-variant:before{content:"󰩒"}.mdi-hand-pointing-down:before{content:"󰩓"}.mdi-hand-pointing-left:before{content:"󰩔"}.mdi-hand-pointing-right:before{content:"󰋇"}.mdi-hand-pointing-up:before{content:"󰩕"}.mdi-hand-saw:before{content:"󰹈"}.mdi-hand-wash:before{content:"󱕿"}.mdi-hand-wash-outline:before{content:"󱖀"}.mdi-hand-water:before{content:"󱎟"}.mdi-hand-wave:before{content:"󱠡"}.mdi-hand-wave-outline:before{content:"󱠢"}.mdi-handball:before{content:"󰽓"}.mdi-handcuffs:before{content:"󱄾"}.mdi-hands-pray:before{content:"󰕹"}.mdi-handshake:before{content:"󱈘"}.mdi-handshake-outline:before{content:"󱖡"}.mdi-hanger:before{content:"󰋈"}.mdi-hard-hat:before{content:"󰥯"}.mdi-harddisk:before{content:"󰋊"}.mdi-harddisk-plus:before{content:"󱁋"}.mdi-harddisk-remove:before{content:"󱁌"}.mdi-hat-fedora:before{content:"󰮤"}.mdi-hazard-lights:before{content:"󰲉"}.mdi-hdmi-port:before{content:"󱮸"}.mdi-hdr:before{content:"󰵽"}.mdi-hdr-off:before{content:"󰵾"}.mdi-head:before{content:"󱍞"}.mdi-head-alert:before{content:"󱌸"}.mdi-head-alert-outline:before{content:"󱌹"}.mdi-head-check:before{content:"󱌺"}.mdi-head-check-outline:before{content:"󱌻"}.mdi-head-cog:before{content:"󱌼"}.mdi-head-cog-outline:before{content:"󱌽"}.mdi-head-dots-horizontal:before{content:"󱌾"}.mdi-head-dots-horizontal-outline:before{content:"󱌿"}.mdi-head-flash:before{content:"󱍀"}.mdi-head-flash-outline:before{content:"󱍁"}.mdi-head-heart:before{content:"󱍂"}.mdi-head-heart-outline:before{content:"󱍃"}.mdi-head-lightbulb:before{content:"󱍄"}.mdi-head-lightbulb-outline:before{content:"󱍅"}.mdi-head-minus:before{content:"󱍆"}.mdi-head-minus-outline:before{content:"󱍇"}.mdi-head-outline:before{content:"󱍟"}.mdi-head-plus:before{content:"󱍈"}.mdi-head-plus-outline:before{content:"󱍉"}.mdi-head-question:before{content:"󱍊"}.mdi-head-question-outline:before{content:"󱍋"}.mdi-head-remove:before{content:"󱍌"}.mdi-head-remove-outline:before{content:"󱍍"}.mdi-head-snowflake:before{content:"󱍎"}.mdi-head-snowflake-outline:before{content:"󱍏"}.mdi-head-sync:before{content:"󱍐"}.mdi-head-sync-outline:before{content:"󱍑"}.mdi-headphones:before{content:"󰋋"}.mdi-headphones-bluetooth:before{content:"󰥰"}.mdi-headphones-box:before{content:"󰋌"}.mdi-headphones-off:before{content:"󰟎"}.mdi-headphones-settings:before{content:"󰋍"}.mdi-headset:before{content:"󰋎"}.mdi-headset-dock:before{content:"󰋏"}.mdi-headset-off:before{content:"󰋐"}.mdi-heart:before{content:"󰋑"}.mdi-heart-box:before{content:"󰋒"}.mdi-heart-box-outline:before{content:"󰋓"}.mdi-heart-broken:before{content:"󰋔"}.mdi-heart-broken-outline:before{content:"󰴔"}.mdi-heart-circle:before{content:"󰥱"}.mdi-heart-circle-outline:before{content:"󰥲"}.mdi-heart-cog:before{content:"󱙣"}.mdi-heart-cog-outline:before{content:"󱙤"}.mdi-heart-flash:before{content:"󰻹"}.mdi-heart-half:before{content:"󰛟"}.mdi-heart-half-full:before{content:"󰛞"}.mdi-heart-half-outline:before{content:"󰛠"}.mdi-heart-minus:before{content:"󱐯"}.mdi-heart-minus-outline:before{content:"󱐲"}.mdi-heart-multiple:before{content:"󰩖"}.mdi-heart-multiple-outline:before{content:"󰩗"}.mdi-heart-off:before{content:"󰝙"}.mdi-heart-off-outline:before{content:"󱐴"}.mdi-heart-outline:before{content:"󰋕"}.mdi-heart-plus:before{content:"󱐮"}.mdi-heart-plus-outline:before{content:"󱐱"}.mdi-heart-pulse:before{content:"󰗶"}.mdi-heart-remove:before{content:"󱐰"}.mdi-heart-remove-outline:before{content:"󱐳"}.mdi-heart-search:before{content:"󱲍"}.mdi-heart-settings:before{content:"󱙥"}.mdi-heart-settings-outline:before{content:"󱙦"}.mdi-heat-pump:before{content:"󱩃"}.mdi-heat-pump-outline:before{content:"󱩄"}.mdi-heat-wave:before{content:"󱩅"}.mdi-heating-coil:before{content:"󱪯"}.mdi-helicopter:before{content:"󰫂"}.mdi-help:before{content:"󰋖"}.mdi-help-box:before{content:"󰞋"}.mdi-help-box-multiple:before{content:"󱰊"}.mdi-help-box-multiple-outline:before{content:"󱰋"}.mdi-help-box-outline:before{content:"󱰌"}.mdi-help-circle:before{content:"󰋗"}.mdi-help-circle-outline:before{content:"󰘥"}.mdi-help-network:before{content:"󰛵"}.mdi-help-network-outline:before{content:"󰲊"}.mdi-help-rhombus:before{content:"󰮥"}.mdi-help-rhombus-outline:before{content:"󰮦"}.mdi-hexadecimal:before{content:"󱊧"}.mdi-hexagon:before{content:"󰋘"}.mdi-hexagon-multiple:before{content:"󰛡"}.mdi-hexagon-multiple-outline:before{content:"󱃲"}.mdi-hexagon-outline:before{content:"󰋙"}.mdi-hexagon-slice-1:before{content:"󰫃"}.mdi-hexagon-slice-2:before{content:"󰫄"}.mdi-hexagon-slice-3:before{content:"󰫅"}.mdi-hexagon-slice-4:before{content:"󰫆"}.mdi-hexagon-slice-5:before{content:"󰫇"}.mdi-hexagon-slice-6:before{content:"󰫈"}.mdi-hexagram:before{content:"󰫉"}.mdi-hexagram-outline:before{content:"󰫊"}.mdi-high-definition:before{content:"󰟏"}.mdi-high-definition-box:before{content:"󰡸"}.mdi-highway:before{content:"󰗷"}.mdi-hiking:before{content:"󰵿"}.mdi-history:before{content:"󰋚"}.mdi-hockey-puck:before{content:"󰡹"}.mdi-hockey-sticks:before{content:"󰡺"}.mdi-hololens:before{content:"󰋛"}.mdi-home:before{content:"󰋜"}.mdi-home-account:before{content:"󰠦"}.mdi-home-alert:before{content:"󰡻"}.mdi-home-alert-outline:before{content:"󱗐"}.mdi-home-analytics:before{content:"󰺺"}.mdi-home-assistant:before{content:"󰟐"}.mdi-home-automation:before{content:"󰟑"}.mdi-home-battery:before{content:"󱤁"}.mdi-home-battery-outline:before{content:"󱤂"}.mdi-home-circle:before{content:"󰟒"}.mdi-home-circle-outline:before{content:"󱁍"}.mdi-home-city:before{content:"󰴕"}.mdi-home-city-outline:before{content:"󰴖"}.mdi-home-clock:before{content:"󱨒"}.mdi-home-clock-outline:before{content:"󱨓"}.mdi-home-edit:before{content:"󱅙"}.mdi-home-edit-outline:before{content:"󱅚"}.mdi-home-export-outline:before{content:"󰾛"}.mdi-home-flood:before{content:"󰻺"}.mdi-home-floor-0:before{content:"󰷒"}.mdi-home-floor-1:before{content:"󰶀"}.mdi-home-floor-2:before{content:"󰶁"}.mdi-home-floor-3:before{content:"󰶂"}.mdi-home-floor-a:before{content:"󰶃"}.mdi-home-floor-b:before{content:"󰶄"}.mdi-home-floor-g:before{content:"󰶅"}.mdi-home-floor-l:before{content:"󰶆"}.mdi-home-floor-negative-1:before{content:"󰷓"}.mdi-home-group:before{content:"󰷔"}.mdi-home-group-minus:before{content:"󱧁"}.mdi-home-group-plus:before{content:"󱧀"}.mdi-home-group-remove:before{content:"󱧂"}.mdi-home-heart:before{content:"󰠧"}.mdi-home-import-outline:before{content:"󰾜"}.mdi-home-lightbulb:before{content:"󱉑"}.mdi-home-lightbulb-outline:before{content:"󱉒"}.mdi-home-lightning-bolt:before{content:"󱤃"}.mdi-home-lightning-bolt-outline:before{content:"󱤄"}.mdi-home-lock:before{content:"󰣫"}.mdi-home-lock-open:before{content:"󰣬"}.mdi-home-map-marker:before{content:"󰗸"}.mdi-home-minus:before{content:"󰥴"}.mdi-home-minus-outline:before{content:"󱏕"}.mdi-home-modern:before{content:"󰋝"}.mdi-home-off:before{content:"󱩆"}.mdi-home-off-outline:before{content:"󱩇"}.mdi-home-outline:before{content:"󰚡"}.mdi-home-percent:before{content:"󱱼"}.mdi-home-percent-outline:before{content:"󱱽"}.mdi-home-plus:before{content:"󰥵"}.mdi-home-plus-outline:before{content:"󱏖"}.mdi-home-remove:before{content:"󱉇"}.mdi-home-remove-outline:before{content:"󱏗"}.mdi-home-roof:before{content:"󱄫"}.mdi-home-search:before{content:"󱎰"}.mdi-home-search-outline:before{content:"󱎱"}.mdi-home-silo:before{content:"󱮠"}.mdi-home-silo-outline:before{content:"󱮡"}.mdi-home-sound-in:before{content:"󱰯"}.mdi-home-sound-in-outline:before{content:"󱰰"}.mdi-home-sound-out:before{content:"󱰱"}.mdi-home-sound-out-outline:before{content:"󱰲"}.mdi-home-switch:before{content:"󱞔"}.mdi-home-switch-outline:before{content:"󱞕"}.mdi-home-thermometer:before{content:"󰽔"}.mdi-home-thermometer-outline:before{content:"󰽕"}.mdi-home-variant:before{content:"󰋞"}.mdi-home-variant-outline:before{content:"󰮧"}.mdi-hook:before{content:"󰛢"}.mdi-hook-off:before{content:"󰛣"}.mdi-hoop-house:before{content:"󰹖"}.mdi-hops:before{content:"󰋟"}.mdi-horizontal-rotate-clockwise:before{content:"󱃳"}.mdi-horizontal-rotate-counterclockwise:before{content:"󱃴"}.mdi-horse:before{content:"󱖿"}.mdi-horse-human:before{content:"󱗀"}.mdi-horse-variant:before{content:"󱗁"}.mdi-horse-variant-fast:before{content:"󱡮"}.mdi-horseshoe:before{content:"󰩘"}.mdi-hospital:before{content:"󰿶"}.mdi-hospital-box:before{content:"󰋠"}.mdi-hospital-box-outline:before{content:"󰿷"}.mdi-hospital-building:before{content:"󰋡"}.mdi-hospital-marker:before{content:"󰋢"}.mdi-hot-tub:before{content:"󰠨"}.mdi-hours-12:before{content:"󱲔"}.mdi-hours-24:before{content:"󱑸"}.mdi-hub:before{content:"󱲕"}.mdi-hub-outline:before{content:"󱲖"}.mdi-hubspot:before{content:"󰴗"}.mdi-hulu:before{content:"󰠩"}.mdi-human:before{content:"󰋦"}.mdi-human-baby-changing-table:before{content:"󱎋"}.mdi-human-cane:before{content:"󱖁"}.mdi-human-capacity-decrease:before{content:"󱖛"}.mdi-human-capacity-increase:before{content:"󱖜"}.mdi-human-child:before{content:"󰋧"}.mdi-human-dolly:before{content:"󱦀"}.mdi-human-edit:before{content:"󱓨"}.mdi-human-female:before{content:"󰙉"}.mdi-human-female-boy:before{content:"󰩙"}.mdi-human-female-dance:before{content:"󱗉"}.mdi-human-female-female:before{content:"󰩚"}.mdi-human-female-female-child:before{content:"󱲎"}.mdi-human-female-girl:before{content:"󰩛"}.mdi-human-greeting:before{content:"󱟄"}.mdi-human-greeting-proximity:before{content:"󱖝"}.mdi-human-greeting-variant:before{content:"󰙊"}.mdi-human-handsdown:before{content:"󰙋"}.mdi-human-handsup:before{content:"󰙌"}.mdi-human-male:before{content:"󰙍"}.mdi-human-male-board:before{content:"󰢐"}.mdi-human-male-board-poll:before{content:"󰡆"}.mdi-human-male-boy:before{content:"󰩜"}.mdi-human-male-child:before{content:"󱎌"}.mdi-human-male-female:before{content:"󰋨"}.mdi-human-male-female-child:before{content:"󱠣"}.mdi-human-male-girl:before{content:"󰩝"}.mdi-human-male-height:before{content:"󰻻"}.mdi-human-male-height-variant:before{content:"󰻼"}.mdi-human-male-male:before{content:"󰩞"}.mdi-human-male-male-child:before{content:"󱲏"}.mdi-human-non-binary:before{content:"󱡈"}.mdi-human-pregnant:before{content:"󰗏"}.mdi-human-queue:before{content:"󱕱"}.mdi-human-scooter:before{content:"󱇩"}.mdi-human-walker:before{content:"󱭱"}.mdi-human-wheelchair:before{content:"󱎍"}.mdi-human-white-cane:before{content:"󱦁"}.mdi-humble-bundle:before{content:"󰝄"}.mdi-hvac:before{content:"󱍒"}.mdi-hvac-off:before{content:"󱖞"}.mdi-hydraulic-oil-level:before{content:"󱌤"}.mdi-hydraulic-oil-temperature:before{content:"󱌥"}.mdi-hydro-power:before{content:"󱋥"}.mdi-hydrogen-station:before{content:"󱢔"}.mdi-ice-cream:before{content:"󰠪"}.mdi-ice-cream-off:before{content:"󰹒"}.mdi-ice-pop:before{content:"󰻽"}.mdi-id-card:before{content:"󰿀"}.mdi-identifier:before{content:"󰻾"}.mdi-ideogram-cjk:before{content:"󱌱"}.mdi-ideogram-cjk-variant:before{content:"󱌲"}.mdi-image:before{content:"󰋩"}.mdi-image-album:before{content:"󰋪"}.mdi-image-area:before{content:"󰋫"}.mdi-image-area-close:before{content:"󰋬"}.mdi-image-auto-adjust:before{content:"󰿁"}.mdi-image-broken:before{content:"󰋭"}.mdi-image-broken-variant:before{content:"󰋮"}.mdi-image-check:before{content:"󱬥"}.mdi-image-check-outline:before{content:"󱬦"}.mdi-image-edit:before{content:"󱇣"}.mdi-image-edit-outline:before{content:"󱇤"}.mdi-image-filter-black-white:before{content:"󰋰"}.mdi-image-filter-center-focus:before{content:"󰋱"}.mdi-image-filter-center-focus-strong:before{content:"󰻿"}.mdi-image-filter-center-focus-strong-outline:before{content:"󰼀"}.mdi-image-filter-center-focus-weak:before{content:"󰋲"}.mdi-image-filter-drama:before{content:"󰋳"}.mdi-image-filter-drama-outline:before{content:"󱯿"}.mdi-image-filter-frames:before{content:"󰋴"}.mdi-image-filter-hdr:before{content:"󰋵"}.mdi-image-filter-hdr-outline:before{content:"󱱤"}.mdi-image-filter-none:before{content:"󰋶"}.mdi-image-filter-tilt-shift:before{content:"󰋷"}.mdi-image-filter-vintage:before{content:"󰋸"}.mdi-image-frame:before{content:"󰹉"}.mdi-image-lock:before{content:"󱪰"}.mdi-image-lock-outline:before{content:"󱪱"}.mdi-image-marker:before{content:"󱝻"}.mdi-image-marker-outline:before{content:"󱝼"}.mdi-image-minus:before{content:"󱐙"}.mdi-image-minus-outline:before{content:"󱭇"}.mdi-image-move:before{content:"󰧸"}.mdi-image-multiple:before{content:"󰋹"}.mdi-image-multiple-outline:before{content:"󰋯"}.mdi-image-off:before{content:"󰠫"}.mdi-image-off-outline:before{content:"󱇑"}.mdi-image-outline:before{content:"󰥶"}.mdi-image-plus:before{content:"󰡼"}.mdi-image-plus-outline:before{content:"󱭆"}.mdi-image-refresh:before{content:"󱧾"}.mdi-image-refresh-outline:before{content:"󱧿"}.mdi-image-remove:before{content:"󱐘"}.mdi-image-remove-outline:before{content:"󱭈"}.mdi-image-search:before{content:"󰥷"}.mdi-image-search-outline:before{content:"󰥸"}.mdi-image-size-select-actual:before{content:"󰲍"}.mdi-image-size-select-large:before{content:"󰲎"}.mdi-image-size-select-small:before{content:"󰲏"}.mdi-image-sync:before{content:"󱨀"}.mdi-image-sync-outline:before{content:"󱨁"}.mdi-image-text:before{content:"󱘍"}.mdi-import:before{content:"󰋺"}.mdi-inbox:before{content:"󰚇"}.mdi-inbox-arrow-down:before{content:"󰋻"}.mdi-inbox-arrow-down-outline:before{content:"󱉰"}.mdi-inbox-arrow-up:before{content:"󰏑"}.mdi-inbox-arrow-up-outline:before{content:"󱉱"}.mdi-inbox-full:before{content:"󱉲"}.mdi-inbox-full-outline:before{content:"󱉳"}.mdi-inbox-multiple:before{content:"󰢰"}.mdi-inbox-multiple-outline:before{content:"󰮨"}.mdi-inbox-outline:before{content:"󱉴"}.mdi-inbox-remove:before{content:"󱖟"}.mdi-inbox-remove-outline:before{content:"󱖠"}.mdi-incognito:before{content:"󰗹"}.mdi-incognito-circle:before{content:"󱐡"}.mdi-incognito-circle-off:before{content:"󱐢"}.mdi-incognito-off:before{content:"󰁵"}.mdi-induction:before{content:"󱡌"}.mdi-infinity:before{content:"󰛤"}.mdi-information:before{content:"󰋼"}.mdi-information-box:before{content:"󱱥"}.mdi-information-box-outline:before{content:"󱱦"}.mdi-information-off:before{content:"󱞌"}.mdi-information-off-outline:before{content:"󱞍"}.mdi-information-outline:before{content:"󰋽"}.mdi-information-slab-box:before{content:"󱱧"}.mdi-information-slab-box-outline:before{content:"󱱨"}.mdi-information-slab-circle:before{content:"󱱩"}.mdi-information-slab-circle-outline:before{content:"󱱪"}.mdi-information-slab-symbol:before{content:"󱱫"}.mdi-information-symbol:before{content:"󱱬"}.mdi-information-variant:before{content:"󰙎"}.mdi-information-variant-box:before{content:"󱱭"}.mdi-information-variant-box-outline:before{content:"󱱮"}.mdi-information-variant-circle:before{content:"󱱯"}.mdi-information-variant-circle-outline:before{content:"󱱰"}.mdi-instagram:before{content:"󰋾"}.mdi-instrument-triangle:before{content:"󱁎"}.mdi-integrated-circuit-chip:before{content:"󱤓"}.mdi-invert-colors:before{content:"󰌁"}.mdi-invert-colors-off:before{content:"󰹊"}.mdi-iobroker:before{content:"󱋨"}.mdi-ip:before{content:"󰩟"}.mdi-ip-network:before{content:"󰩠"}.mdi-ip-network-outline:before{content:"󰲐"}.mdi-ip-outline:before{content:"󱦂"}.mdi-ipod:before{content:"󰲑"}.mdi-iron:before{content:"󱠤"}.mdi-iron-board:before{content:"󱠸"}.mdi-iron-outline:before{content:"󱠥"}.mdi-island:before{content:"󱁏"}.mdi-island-variant:before{content:"󱳆"}.mdi-iv-bag:before{content:"󱂹"}.mdi-jabber:before{content:"󰷕"}.mdi-jeepney:before{content:"󰌂"}.mdi-jellyfish:before{content:"󰼁"}.mdi-jellyfish-outline:before{content:"󰼂"}.mdi-jira:before{content:"󰌃"}.mdi-jquery:before{content:"󰡽"}.mdi-jsfiddle:before{content:"󰌄"}.mdi-jump-rope:before{content:"󱋿"}.mdi-kabaddi:before{content:"󰶇"}.mdi-kangaroo:before{content:"󱕘"}.mdi-karate:before{content:"󰠬"}.mdi-kayaking:before{content:"󰢯"}.mdi-keg:before{content:"󰌅"}.mdi-kettle:before{content:"󰗺"}.mdi-kettle-alert:before{content:"󱌗"}.mdi-kettle-alert-outline:before{content:"󱌘"}.mdi-kettle-off:before{content:"󱌛"}.mdi-kettle-off-outline:before{content:"󱌜"}.mdi-kettle-outline:before{content:"󰽖"}.mdi-kettle-pour-over:before{content:"󱜼"}.mdi-kettle-steam:before{content:"󱌙"}.mdi-kettle-steam-outline:before{content:"󱌚"}.mdi-kettlebell:before{content:"󱌀"}.mdi-key:before{content:"󰌆"}.mdi-key-alert:before{content:"󱦃"}.mdi-key-alert-outline:before{content:"󱦄"}.mdi-key-arrow-right:before{content:"󱌒"}.mdi-key-chain:before{content:"󱕴"}.mdi-key-chain-variant:before{content:"󱕵"}.mdi-key-change:before{content:"󰌇"}.mdi-key-link:before{content:"󱆟"}.mdi-key-minus:before{content:"󰌈"}.mdi-key-outline:before{content:"󰷖"}.mdi-key-plus:before{content:"󰌉"}.mdi-key-remove:before{content:"󰌊"}.mdi-key-star:before{content:"󱆞"}.mdi-key-variant:before{content:"󰌋"}.mdi-key-wireless:before{content:"󰿂"}.mdi-keyboard:before{content:"󰌌"}.mdi-keyboard-backspace:before{content:"󰌍"}.mdi-keyboard-caps:before{content:"󰌎"}.mdi-keyboard-close:before{content:"󰌏"}.mdi-keyboard-close-outline:before{content:"󱰀"}.mdi-keyboard-esc:before{content:"󱊷"}.mdi-keyboard-f1:before{content:"󱊫"}.mdi-keyboard-f10:before{content:"󱊴"}.mdi-keyboard-f11:before{content:"󱊵"}.mdi-keyboard-f12:before{content:"󱊶"}.mdi-keyboard-f2:before{content:"󱊬"}.mdi-keyboard-f3:before{content:"󱊭"}.mdi-keyboard-f4:before{content:"󱊮"}.mdi-keyboard-f5:before{content:"󱊯"}.mdi-keyboard-f6:before{content:"󱊰"}.mdi-keyboard-f7:before{content:"󱊱"}.mdi-keyboard-f8:before{content:"󱊲"}.mdi-keyboard-f9:before{content:"󱊳"}.mdi-keyboard-off:before{content:"󰌐"}.mdi-keyboard-off-outline:before{content:"󰹋"}.mdi-keyboard-outline:before{content:"󰥻"}.mdi-keyboard-return:before{content:"󰌑"}.mdi-keyboard-settings:before{content:"󰧹"}.mdi-keyboard-settings-outline:before{content:"󰧺"}.mdi-keyboard-space:before{content:"󱁐"}.mdi-keyboard-tab:before{content:"󰌒"}.mdi-keyboard-tab-reverse:before{content:"󰌥"}.mdi-keyboard-variant:before{content:"󰌓"}.mdi-khanda:before{content:"󱃽"}.mdi-kickstarter:before{content:"󰝅"}.mdi-kite:before{content:"󱦅"}.mdi-kite-outline:before{content:"󱦆"}.mdi-kitesurfing:before{content:"󱝄"}.mdi-klingon:before{content:"󱍛"}.mdi-knife:before{content:"󰧻"}.mdi-knife-military:before{content:"󰧼"}.mdi-knob:before{content:"󱮖"}.mdi-koala:before{content:"󱜿"}.mdi-kodi:before{content:"󰌔"}.mdi-kubernetes:before{content:"󱃾"}.mdi-label:before{content:"󰌕"}.mdi-label-multiple:before{content:"󱍵"}.mdi-label-multiple-outline:before{content:"󱍶"}.mdi-label-off:before{content:"󰫋"}.mdi-label-off-outline:before{content:"󰫌"}.mdi-label-outline:before{content:"󰌖"}.mdi-label-percent:before{content:"󱋪"}.mdi-label-percent-outline:before{content:"󱋫"}.mdi-label-variant:before{content:"󰫍"}.mdi-label-variant-outline:before{content:"󰫎"}.mdi-ladder:before{content:"󱖢"}.mdi-ladybug:before{content:"󰠭"}.mdi-lambda:before{content:"󰘧"}.mdi-lamp:before{content:"󰚵"}.mdi-lamp-outline:before{content:"󱟐"}.mdi-lamps:before{content:"󱕶"}.mdi-lamps-outline:before{content:"󱟑"}.mdi-lan:before{content:"󰌗"}.mdi-lan-check:before{content:"󱊪"}.mdi-lan-connect:before{content:"󰌘"}.mdi-lan-disconnect:before{content:"󰌙"}.mdi-lan-pending:before{content:"󰌚"}.mdi-land-fields:before{content:"󱪲"}.mdi-land-plots:before{content:"󱪳"}.mdi-land-plots-circle:before{content:"󱪴"}.mdi-land-plots-circle-variant:before{content:"󱪵"}.mdi-land-plots-marker:before{content:"󱱝"}.mdi-land-rows-horizontal:before{content:"󱪶"}.mdi-land-rows-vertical:before{content:"󱪷"}.mdi-landslide:before{content:"󱩈"}.mdi-landslide-outline:before{content:"󱩉"}.mdi-language-c:before{content:"󰙱"}.mdi-language-cpp:before{content:"󰙲"}.mdi-language-csharp:before{content:"󰌛"}.mdi-language-css3:before{content:"󰌜"}.mdi-language-fortran:before{content:"󱈚"}.mdi-language-go:before{content:"󰟓"}.mdi-language-haskell:before{content:"󰲒"}.mdi-language-html5:before{content:"󰌝"}.mdi-language-java:before{content:"󰬷"}.mdi-language-javascript:before{content:"󰌞"}.mdi-language-kotlin:before{content:"󱈙"}.mdi-language-lua:before{content:"󰢱"}.mdi-language-markdown:before{content:"󰍔"}.mdi-language-markdown-outline:before{content:"󰽛"}.mdi-language-php:before{content:"󰌟"}.mdi-language-python:before{content:"󰌠"}.mdi-language-r:before{content:"󰟔"}.mdi-language-ruby:before{content:"󰴭"}.mdi-language-ruby-on-rails:before{content:"󰫏"}.mdi-language-rust:before{content:"󱘗"}.mdi-language-swift:before{content:"󰛥"}.mdi-language-typescript:before{content:"󰛦"}.mdi-language-xaml:before{content:"󰙳"}.mdi-laptop:before{content:"󰌢"}.mdi-laptop-account:before{content:"󱩊"}.mdi-laptop-off:before{content:"󰛧"}.mdi-laravel:before{content:"󰫐"}.mdi-laser-pointer:before{content:"󱒄"}.mdi-lasso:before{content:"󰼃"}.mdi-lastpass:before{content:"󰑆"}.mdi-latitude:before{content:"󰽗"}.mdi-launch:before{content:"󰌧"}.mdi-lava-lamp:before{content:"󰟕"}.mdi-layers:before{content:"󰌨"}.mdi-layers-edit:before{content:"󱢒"}.mdi-layers-minus:before{content:"󰹌"}.mdi-layers-off:before{content:"󰌩"}.mdi-layers-off-outline:before{content:"󰧽"}.mdi-layers-outline:before{content:"󰧾"}.mdi-layers-plus:before{content:"󰹍"}.mdi-layers-remove:before{content:"󰹎"}.mdi-layers-search:before{content:"󱈆"}.mdi-layers-search-outline:before{content:"󱈇"}.mdi-layers-triple:before{content:"󰽘"}.mdi-layers-triple-outline:before{content:"󰽙"}.mdi-lead-pencil:before{content:"󰙏"}.mdi-leaf:before{content:"󰌪"}.mdi-leaf-circle:before{content:"󱤅"}.mdi-leaf-circle-outline:before{content:"󱤆"}.mdi-leaf-maple:before{content:"󰲓"}.mdi-leaf-maple-off:before{content:"󱋚"}.mdi-leaf-off:before{content:"󱋙"}.mdi-leak:before{content:"󰷗"}.mdi-leak-off:before{content:"󰷘"}.mdi-lectern:before{content:"󱫰"}.mdi-led-off:before{content:"󰌫"}.mdi-led-on:before{content:"󰌬"}.mdi-led-outline:before{content:"󰌭"}.mdi-led-strip:before{content:"󰟖"}.mdi-led-strip-variant:before{content:"󱁑"}.mdi-led-strip-variant-off:before{content:"󱩋"}.mdi-led-variant-off:before{content:"󰌮"}.mdi-led-variant-on:before{content:"󰌯"}.mdi-led-variant-outline:before{content:"󰌰"}.mdi-leek:before{content:"󱅽"}.mdi-less-than:before{content:"󰥼"}.mdi-less-than-or-equal:before{content:"󰥽"}.mdi-library:before{content:"󰌱"}.mdi-library-outline:before{content:"󱨢"}.mdi-library-shelves:before{content:"󰮩"}.mdi-license:before{content:"󰿃"}.mdi-lifebuoy:before{content:"󰡾"}.mdi-light-flood-down:before{content:"󱦇"}.mdi-light-flood-up:before{content:"󱦈"}.mdi-light-recessed:before{content:"󱞛"}.mdi-light-switch:before{content:"󰥾"}.mdi-light-switch-off:before{content:"󱨤"}.mdi-lightbulb:before{content:"󰌵"}.mdi-lightbulb-alert:before{content:"󱧡"}.mdi-lightbulb-alert-outline:before{content:"󱧢"}.mdi-lightbulb-auto:before{content:"󱠀"}.mdi-lightbulb-auto-outline:before{content:"󱠁"}.mdi-lightbulb-cfl:before{content:"󱈈"}.mdi-lightbulb-cfl-off:before{content:"󱈉"}.mdi-lightbulb-cfl-spiral:before{content:"󱉵"}.mdi-lightbulb-cfl-spiral-off:before{content:"󱋃"}.mdi-lightbulb-fluorescent-tube:before{content:"󱠄"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"󱠅"}.mdi-lightbulb-group:before{content:"󱉓"}.mdi-lightbulb-group-off:before{content:"󱋍"}.mdi-lightbulb-group-off-outline:before{content:"󱋎"}.mdi-lightbulb-group-outline:before{content:"󱉔"}.mdi-lightbulb-multiple:before{content:"󱉕"}.mdi-lightbulb-multiple-off:before{content:"󱋏"}.mdi-lightbulb-multiple-off-outline:before{content:"󱋐"}.mdi-lightbulb-multiple-outline:before{content:"󱉖"}.mdi-lightbulb-night:before{content:"󱩌"}.mdi-lightbulb-night-outline:before{content:"󱩍"}.mdi-lightbulb-off:before{content:"󰹏"}.mdi-lightbulb-off-outline:before{content:"󰹐"}.mdi-lightbulb-on:before{content:"󰛨"}.mdi-lightbulb-on-10:before{content:"󱩎"}.mdi-lightbulb-on-20:before{content:"󱩏"}.mdi-lightbulb-on-30:before{content:"󱩐"}.mdi-lightbulb-on-40:before{content:"󱩑"}.mdi-lightbulb-on-50:before{content:"󱩒"}.mdi-lightbulb-on-60:before{content:"󱩓"}.mdi-lightbulb-on-70:before{content:"󱩔"}.mdi-lightbulb-on-80:before{content:"󱩕"}.mdi-lightbulb-on-90:before{content:"󱩖"}.mdi-lightbulb-on-outline:before{content:"󰛩"}.mdi-lightbulb-outline:before{content:"󰌶"}.mdi-lightbulb-question:before{content:"󱧣"}.mdi-lightbulb-question-outline:before{content:"󱧤"}.mdi-lightbulb-spot:before{content:"󱟴"}.mdi-lightbulb-spot-off:before{content:"󱟵"}.mdi-lightbulb-variant:before{content:"󱠂"}.mdi-lightbulb-variant-outline:before{content:"󱠃"}.mdi-lighthouse:before{content:"󰧿"}.mdi-lighthouse-on:before{content:"󰨀"}.mdi-lightning-bolt:before{content:"󱐋"}.mdi-lightning-bolt-circle:before{content:"󰠠"}.mdi-lightning-bolt-outline:before{content:"󱐌"}.mdi-line-scan:before{content:"󰘤"}.mdi-lingerie:before{content:"󱑶"}.mdi-link:before{content:"󰌷"}.mdi-link-box:before{content:"󰴚"}.mdi-link-box-outline:before{content:"󰴛"}.mdi-link-box-variant:before{content:"󰴜"}.mdi-link-box-variant-outline:before{content:"󰴝"}.mdi-link-circle:before{content:"󱲬"}.mdi-link-circle-outline:before{content:"󱲭"}.mdi-link-edit:before{content:"󱲮"}.mdi-link-lock:before{content:"󱂺"}.mdi-link-off:before{content:"󰌸"}.mdi-link-plus:before{content:"󰲔"}.mdi-link-variant:before{content:"󰌹"}.mdi-link-variant-minus:before{content:"󱃿"}.mdi-link-variant-off:before{content:"󰌺"}.mdi-link-variant-plus:before{content:"󱄀"}.mdi-link-variant-remove:before{content:"󱄁"}.mdi-linkedin:before{content:"󰌻"}.mdi-linux:before{content:"󰌽"}.mdi-linux-mint:before{content:"󰣭"}.mdi-lipstick:before{content:"󱎵"}.mdi-liquid-spot:before{content:"󱠦"}.mdi-liquor:before{content:"󱤞"}.mdi-list-box:before{content:"󱭻"}.mdi-list-box-outline:before{content:"󱭼"}.mdi-list-status:before{content:"󱖫"}.mdi-litecoin:before{content:"󰩡"}.mdi-loading:before{content:"󰝲"}.mdi-location-enter:before{content:"󰿄"}.mdi-location-exit:before{content:"󰿅"}.mdi-lock:before{content:"󰌾"}.mdi-lock-alert:before{content:"󰣮"}.mdi-lock-alert-outline:before{content:"󱗑"}.mdi-lock-check:before{content:"󱎚"}.mdi-lock-check-outline:before{content:"󱚨"}.mdi-lock-clock:before{content:"󰥿"}.mdi-lock-minus:before{content:"󱚩"}.mdi-lock-minus-outline:before{content:"󱚪"}.mdi-lock-off:before{content:"󱙱"}.mdi-lock-off-outline:before{content:"󱙲"}.mdi-lock-open:before{content:"󰌿"}.mdi-lock-open-alert:before{content:"󱎛"}.mdi-lock-open-alert-outline:before{content:"󱗒"}.mdi-lock-open-check:before{content:"󱎜"}.mdi-lock-open-check-outline:before{content:"󱚫"}.mdi-lock-open-minus:before{content:"󱚬"}.mdi-lock-open-minus-outline:before{content:"󱚭"}.mdi-lock-open-outline:before{content:"󰍀"}.mdi-lock-open-plus:before{content:"󱚮"}.mdi-lock-open-plus-outline:before{content:"󱚯"}.mdi-lock-open-remove:before{content:"󱚰"}.mdi-lock-open-remove-outline:before{content:"󱚱"}.mdi-lock-open-variant:before{content:"󰿆"}.mdi-lock-open-variant-outline:before{content:"󰿇"}.mdi-lock-outline:before{content:"󰍁"}.mdi-lock-pattern:before{content:"󰛪"}.mdi-lock-percent:before{content:"󱰒"}.mdi-lock-percent-open:before{content:"󱰓"}.mdi-lock-percent-open-outline:before{content:"󱰔"}.mdi-lock-percent-open-variant:before{content:"󱰕"}.mdi-lock-percent-open-variant-outline:before{content:"󱰖"}.mdi-lock-percent-outline:before{content:"󱰗"}.mdi-lock-plus:before{content:"󰗻"}.mdi-lock-plus-outline:before{content:"󱚲"}.mdi-lock-question:before{content:"󰣯"}.mdi-lock-remove:before{content:"󱚳"}.mdi-lock-remove-outline:before{content:"󱚴"}.mdi-lock-reset:before{content:"󰝳"}.mdi-lock-smart:before{content:"󰢲"}.mdi-locker:before{content:"󰟗"}.mdi-locker-multiple:before{content:"󰟘"}.mdi-login:before{content:"󰍂"}.mdi-login-variant:before{content:"󰗼"}.mdi-logout:before{content:"󰍃"}.mdi-logout-variant:before{content:"󰗽"}.mdi-longitude:before{content:"󰽚"}.mdi-looks:before{content:"󰍄"}.mdi-lotion:before{content:"󱖂"}.mdi-lotion-outline:before{content:"󱖃"}.mdi-lotion-plus:before{content:"󱖄"}.mdi-lotion-plus-outline:before{content:"󱖅"}.mdi-loupe:before{content:"󰍅"}.mdi-lumx:before{content:"󰍆"}.mdi-lungs:before{content:"󱂄"}.mdi-mace:before{content:"󱡃"}.mdi-magazine-pistol:before{content:"󰌤"}.mdi-magazine-rifle:before{content:"󰌣"}.mdi-magic-staff:before{content:"󱡄"}.mdi-magnet:before{content:"󰍇"}.mdi-magnet-on:before{content:"󰍈"}.mdi-magnify:before{content:"󰍉"}.mdi-magnify-close:before{content:"󰦀"}.mdi-magnify-expand:before{content:"󱡴"}.mdi-magnify-minus:before{content:"󰍊"}.mdi-magnify-minus-cursor:before{content:"󰩢"}.mdi-magnify-minus-outline:before{content:"󰛬"}.mdi-magnify-plus:before{content:"󰍋"}.mdi-magnify-plus-cursor:before{content:"󰩣"}.mdi-magnify-plus-outline:before{content:"󰛭"}.mdi-magnify-remove-cursor:before{content:"󱈌"}.mdi-magnify-remove-outline:before{content:"󱈍"}.mdi-magnify-scan:before{content:"󱉶"}.mdi-mail:before{content:"󰺻"}.mdi-mailbox:before{content:"󰛮"}.mdi-mailbox-open:before{content:"󰶈"}.mdi-mailbox-open-outline:before{content:"󰶉"}.mdi-mailbox-open-up:before{content:"󰶊"}.mdi-mailbox-open-up-outline:before{content:"󰶋"}.mdi-mailbox-outline:before{content:"󰶌"}.mdi-mailbox-up:before{content:"󰶍"}.mdi-mailbox-up-outline:before{content:"󰶎"}.mdi-manjaro:before{content:"󱘊"}.mdi-map:before{content:"󰍍"}.mdi-map-check:before{content:"󰺼"}.mdi-map-check-outline:before{content:"󰺽"}.mdi-map-clock:before{content:"󰴞"}.mdi-map-clock-outline:before{content:"󰴟"}.mdi-map-legend:before{content:"󰨁"}.mdi-map-marker:before{content:"󰍎"}.mdi-map-marker-account:before{content:"󱣣"}.mdi-map-marker-account-outline:before{content:"󱣤"}.mdi-map-marker-alert:before{content:"󰼅"}.mdi-map-marker-alert-outline:before{content:"󰼆"}.mdi-map-marker-check:before{content:"󰲕"}.mdi-map-marker-check-outline:before{content:"󱋻"}.mdi-map-marker-circle:before{content:"󰍏"}.mdi-map-marker-distance:before{content:"󰣰"}.mdi-map-marker-down:before{content:"󱄂"}.mdi-map-marker-left:before{content:"󱋛"}.mdi-map-marker-left-outline:before{content:"󱋝"}.mdi-map-marker-minus:before{content:"󰙐"}.mdi-map-marker-minus-outline:before{content:"󱋹"}.mdi-map-marker-multiple:before{content:"󰍐"}.mdi-map-marker-multiple-outline:before{content:"󱉷"}.mdi-map-marker-off:before{content:"󰍑"}.mdi-map-marker-off-outline:before{content:"󱋽"}.mdi-map-marker-outline:before{content:"󰟙"}.mdi-map-marker-path:before{content:"󰴠"}.mdi-map-marker-plus:before{content:"󰙑"}.mdi-map-marker-plus-outline:before{content:"󱋸"}.mdi-map-marker-question:before{content:"󰼇"}.mdi-map-marker-question-outline:before{content:"󰼈"}.mdi-map-marker-radius:before{content:"󰍒"}.mdi-map-marker-radius-outline:before{content:"󱋼"}.mdi-map-marker-remove:before{content:"󰼉"}.mdi-map-marker-remove-outline:before{content:"󱋺"}.mdi-map-marker-remove-variant:before{content:"󰼊"}.mdi-map-marker-right:before{content:"󱋜"}.mdi-map-marker-right-outline:before{content:"󱋞"}.mdi-map-marker-star:before{content:"󱘈"}.mdi-map-marker-star-outline:before{content:"󱘉"}.mdi-map-marker-up:before{content:"󱄃"}.mdi-map-minus:before{content:"󰦁"}.mdi-map-outline:before{content:"󰦂"}.mdi-map-plus:before{content:"󰦃"}.mdi-map-search:before{content:"󰦄"}.mdi-map-search-outline:before{content:"󰦅"}.mdi-mapbox:before{content:"󰮪"}.mdi-margin:before{content:"󰍓"}.mdi-marker:before{content:"󰙒"}.mdi-marker-cancel:before{content:"󰷙"}.mdi-marker-check:before{content:"󰍕"}.mdi-mastodon:before{content:"󰫑"}.mdi-material-design:before{content:"󰦆"}.mdi-material-ui:before{content:"󰍗"}.mdi-math-compass:before{content:"󰍘"}.mdi-math-cos:before{content:"󰲖"}.mdi-math-integral:before{content:"󰿈"}.mdi-math-integral-box:before{content:"󰿉"}.mdi-math-log:before{content:"󱂅"}.mdi-math-norm:before{content:"󰿊"}.mdi-math-norm-box:before{content:"󰿋"}.mdi-math-sin:before{content:"󰲗"}.mdi-math-tan:before{content:"󰲘"}.mdi-matrix:before{content:"󰘨"}.mdi-medal:before{content:"󰦇"}.mdi-medal-outline:before{content:"󱌦"}.mdi-medical-bag:before{content:"󰛯"}.mdi-medical-cotton-swab:before{content:"󱪸"}.mdi-medication:before{content:"󱬔"}.mdi-medication-outline:before{content:"󱬕"}.mdi-meditation:before{content:"󱅻"}.mdi-memory:before{content:"󰍛"}.mdi-memory-arrow-down:before{content:"󱲦"}.mdi-menorah:before{content:"󱟔"}.mdi-menorah-fire:before{content:"󱟕"}.mdi-menu:before{content:"󰍜"}.mdi-menu-close:before{content:"󱲐"}.mdi-menu-down:before{content:"󰍝"}.mdi-menu-down-outline:before{content:"󰚶"}.mdi-menu-left:before{content:"󰍞"}.mdi-menu-left-outline:before{content:"󰨂"}.mdi-menu-open:before{content:"󰮫"}.mdi-menu-right:before{content:"󰍟"}.mdi-menu-right-outline:before{content:"󰨃"}.mdi-menu-swap:before{content:"󰩤"}.mdi-menu-swap-outline:before{content:"󰩥"}.mdi-menu-up:before{content:"󰍠"}.mdi-menu-up-outline:before{content:"󰚷"}.mdi-merge:before{content:"󰽜"}.mdi-message:before{content:"󰍡"}.mdi-message-alert:before{content:"󰍢"}.mdi-message-alert-outline:before{content:"󰨄"}.mdi-message-arrow-left:before{content:"󱋲"}.mdi-message-arrow-left-outline:before{content:"󱋳"}.mdi-message-arrow-right:before{content:"󱋴"}.mdi-message-arrow-right-outline:before{content:"󱋵"}.mdi-message-badge:before{content:"󱥁"}.mdi-message-badge-outline:before{content:"󱥂"}.mdi-message-bookmark:before{content:"󱖬"}.mdi-message-bookmark-outline:before{content:"󱖭"}.mdi-message-bulleted:before{content:"󰚢"}.mdi-message-bulleted-off:before{content:"󰚣"}.mdi-message-check:before{content:"󱮊"}.mdi-message-check-outline:before{content:"󱮋"}.mdi-message-cog:before{content:"󰛱"}.mdi-message-cog-outline:before{content:"󱅲"}.mdi-message-draw:before{content:"󰍣"}.mdi-message-fast:before{content:"󱧌"}.mdi-message-fast-outline:before{content:"󱧍"}.mdi-message-flash:before{content:"󱖩"}.mdi-message-flash-outline:before{content:"󱖪"}.mdi-message-image:before{content:"󰍤"}.mdi-message-image-outline:before{content:"󱅬"}.mdi-message-lock:before{content:"󰿌"}.mdi-message-lock-outline:before{content:"󱅭"}.mdi-message-minus:before{content:"󱅮"}.mdi-message-minus-outline:before{content:"󱅯"}.mdi-message-off:before{content:"󱙍"}.mdi-message-off-outline:before{content:"󱙎"}.mdi-message-outline:before{content:"󰍥"}.mdi-message-plus:before{content:"󰙓"}.mdi-message-plus-outline:before{content:"󱂻"}.mdi-message-processing:before{content:"󰍦"}.mdi-message-processing-outline:before{content:"󱅰"}.mdi-message-question:before{content:"󱜺"}.mdi-message-question-outline:before{content:"󱜻"}.mdi-message-reply:before{content:"󰍧"}.mdi-message-reply-outline:before{content:"󱜽"}.mdi-message-reply-text:before{content:"󰍨"}.mdi-message-reply-text-outline:before{content:"󱜾"}.mdi-message-settings:before{content:"󰛰"}.mdi-message-settings-outline:before{content:"󱅱"}.mdi-message-star:before{content:"󰚚"}.mdi-message-star-outline:before{content:"󱉐"}.mdi-message-text:before{content:"󰍩"}.mdi-message-text-clock:before{content:"󱅳"}.mdi-message-text-clock-outline:before{content:"󱅴"}.mdi-message-text-fast:before{content:"󱧎"}.mdi-message-text-fast-outline:before{content:"󱧏"}.mdi-message-text-lock:before{content:"󰿍"}.mdi-message-text-lock-outline:before{content:"󱅵"}.mdi-message-text-outline:before{content:"󰍪"}.mdi-message-video:before{content:"󰍫"}.mdi-meteor:before{content:"󰘩"}.mdi-meter-electric:before{content:"󱩗"}.mdi-meter-electric-outline:before{content:"󱩘"}.mdi-meter-gas:before{content:"󱩙"}.mdi-meter-gas-outline:before{content:"󱩚"}.mdi-metronome:before{content:"󰟚"}.mdi-metronome-tick:before{content:"󰟛"}.mdi-micro-sd:before{content:"󰟜"}.mdi-microphone:before{content:"󰍬"}.mdi-microphone-message:before{content:"󰔊"}.mdi-microphone-message-off:before{content:"󰔋"}.mdi-microphone-minus:before{content:"󰢳"}.mdi-microphone-off:before{content:"󰍭"}.mdi-microphone-outline:before{content:"󰍮"}.mdi-microphone-plus:before{content:"󰢴"}.mdi-microphone-question:before{content:"󱦉"}.mdi-microphone-question-outline:before{content:"󱦊"}.mdi-microphone-settings:before{content:"󰍯"}.mdi-microphone-variant:before{content:"󰍰"}.mdi-microphone-variant-off:before{content:"󰍱"}.mdi-microscope:before{content:"󰙔"}.mdi-microsoft:before{content:"󰍲"}.mdi-microsoft-access:before{content:"󱎎"}.mdi-microsoft-azure:before{content:"󰠅"}.mdi-microsoft-azure-devops:before{content:"󰿕"}.mdi-microsoft-bing:before{content:"󰂤"}.mdi-microsoft-dynamics-365:before{content:"󰦈"}.mdi-microsoft-edge:before{content:"󰇩"}.mdi-microsoft-excel:before{content:"󱎏"}.mdi-microsoft-internet-explorer:before{content:"󰌀"}.mdi-microsoft-office:before{content:"󰏆"}.mdi-microsoft-onedrive:before{content:"󰏊"}.mdi-microsoft-onenote:before{content:"󰝇"}.mdi-microsoft-outlook:before{content:"󰴢"}.mdi-microsoft-powerpoint:before{content:"󱎐"}.mdi-microsoft-sharepoint:before{content:"󱎑"}.mdi-microsoft-teams:before{content:"󰊻"}.mdi-microsoft-visual-studio:before{content:"󰘐"}.mdi-microsoft-visual-studio-code:before{content:"󰨞"}.mdi-microsoft-windows:before{content:"󰖳"}.mdi-microsoft-windows-classic:before{content:"󰨡"}.mdi-microsoft-word:before{content:"󱎒"}.mdi-microsoft-xbox:before{content:"󰖹"}.mdi-microsoft-xbox-controller:before{content:"󰖺"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"󰝋"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"󰨢"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"󰝌"}.mdi-microsoft-xbox-controller-battery-full:before{content:"󰝍"}.mdi-microsoft-xbox-controller-battery-low:before{content:"󰝎"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"󰝏"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"󰝐"}.mdi-microsoft-xbox-controller-menu:before{content:"󰹯"}.mdi-microsoft-xbox-controller-off:before{content:"󰖻"}.mdi-microsoft-xbox-controller-view:before{content:"󰹰"}.mdi-microwave:before{content:"󰲙"}.mdi-microwave-off:before{content:"󱐣"}.mdi-middleware:before{content:"󰽝"}.mdi-middleware-outline:before{content:"󰽞"}.mdi-midi:before{content:"󰣱"}.mdi-midi-port:before{content:"󰣲"}.mdi-mine:before{content:"󰷚"}.mdi-minecraft:before{content:"󰍳"}.mdi-mini-sd:before{content:"󰨅"}.mdi-minidisc:before{content:"󰨆"}.mdi-minus:before{content:"󰍴"}.mdi-minus-box:before{content:"󰍵"}.mdi-minus-box-multiple:before{content:"󱅁"}.mdi-minus-box-multiple-outline:before{content:"󱅂"}.mdi-minus-box-outline:before{content:"󰛲"}.mdi-minus-circle:before{content:"󰍶"}.mdi-minus-circle-multiple:before{content:"󰍚"}.mdi-minus-circle-multiple-outline:before{content:"󰫓"}.mdi-minus-circle-off:before{content:"󱑙"}.mdi-minus-circle-off-outline:before{content:"󱑚"}.mdi-minus-circle-outline:before{content:"󰍷"}.mdi-minus-network:before{content:"󰍸"}.mdi-minus-network-outline:before{content:"󰲚"}.mdi-minus-thick:before{content:"󱘹"}.mdi-mirror:before{content:"󱇽"}.mdi-mirror-rectangle:before{content:"󱞟"}.mdi-mirror-variant:before{content:"󱞠"}.mdi-mixed-martial-arts:before{content:"󰶏"}.mdi-mixed-reality:before{content:"󰡿"}.mdi-molecule:before{content:"󰮬"}.mdi-molecule-co:before{content:"󱋾"}.mdi-molecule-co2:before{content:"󰟤"}.mdi-monitor:before{content:"󰍹"}.mdi-monitor-account:before{content:"󱩛"}.mdi-monitor-arrow-down:before{content:"󱧐"}.mdi-monitor-arrow-down-variant:before{content:"󱧑"}.mdi-monitor-cellphone:before{content:"󰦉"}.mdi-monitor-cellphone-star:before{content:"󰦊"}.mdi-monitor-dashboard:before{content:"󰨇"}.mdi-monitor-edit:before{content:"󱋆"}.mdi-monitor-eye:before{content:"󱎴"}.mdi-monitor-lock:before{content:"󰷛"}.mdi-monitor-multiple:before{content:"󰍺"}.mdi-monitor-off:before{content:"󰶐"}.mdi-monitor-screenshot:before{content:"󰹑"}.mdi-monitor-share:before{content:"󱒃"}.mdi-monitor-shimmer:before{content:"󱄄"}.mdi-monitor-small:before{content:"󱡶"}.mdi-monitor-speaker:before{content:"󰽟"}.mdi-monitor-speaker-off:before{content:"󰽠"}.mdi-monitor-star:before{content:"󰷜"}.mdi-monitor-vertical:before{content:"󱰳"}.mdi-moon-first-quarter:before{content:"󰽡"}.mdi-moon-full:before{content:"󰽢"}.mdi-moon-last-quarter:before{content:"󰽣"}.mdi-moon-new:before{content:"󰽤"}.mdi-moon-waning-crescent:before{content:"󰽥"}.mdi-moon-waning-gibbous:before{content:"󰽦"}.mdi-moon-waxing-crescent:before{content:"󰽧"}.mdi-moon-waxing-gibbous:before{content:"󰽨"}.mdi-moped:before{content:"󱂆"}.mdi-moped-electric:before{content:"󱖷"}.mdi-moped-electric-outline:before{content:"󱖸"}.mdi-moped-outline:before{content:"󱖹"}.mdi-more:before{content:"󰍻"}.mdi-mortar-pestle:before{content:"󱝈"}.mdi-mortar-pestle-plus:before{content:"󰏱"}.mdi-mosque:before{content:"󰵅"}.mdi-mosque-outline:before{content:"󱠧"}.mdi-mother-heart:before{content:"󱌔"}.mdi-mother-nurse:before{content:"󰴡"}.mdi-motion:before{content:"󱖲"}.mdi-motion-outline:before{content:"󱖳"}.mdi-motion-pause:before{content:"󱖐"}.mdi-motion-pause-outline:before{content:"󱖒"}.mdi-motion-play:before{content:"󱖏"}.mdi-motion-play-outline:before{content:"󱖑"}.mdi-motion-sensor:before{content:"󰶑"}.mdi-motion-sensor-off:before{content:"󱐵"}.mdi-motorbike:before{content:"󰍼"}.mdi-motorbike-electric:before{content:"󱖺"}.mdi-motorbike-off:before{content:"󱬖"}.mdi-mouse:before{content:"󰍽"}.mdi-mouse-bluetooth:before{content:"󰦋"}.mdi-mouse-move-down:before{content:"󱕐"}.mdi-mouse-move-up:before{content:"󱕑"}.mdi-mouse-move-vertical:before{content:"󱕒"}.mdi-mouse-off:before{content:"󰍾"}.mdi-mouse-variant:before{content:"󰍿"}.mdi-mouse-variant-off:before{content:"󰎀"}.mdi-move-resize:before{content:"󰙕"}.mdi-move-resize-variant:before{content:"󰙖"}.mdi-movie:before{content:"󰎁"}.mdi-movie-check:before{content:"󱛳"}.mdi-movie-check-outline:before{content:"󱛴"}.mdi-movie-cog:before{content:"󱛵"}.mdi-movie-cog-outline:before{content:"󱛶"}.mdi-movie-edit:before{content:"󱄢"}.mdi-movie-edit-outline:before{content:"󱄣"}.mdi-movie-filter:before{content:"󱄤"}.mdi-movie-filter-outline:before{content:"󱄥"}.mdi-movie-minus:before{content:"󱛷"}.mdi-movie-minus-outline:before{content:"󱛸"}.mdi-movie-off:before{content:"󱛹"}.mdi-movie-off-outline:before{content:"󱛺"}.mdi-movie-open:before{content:"󰿎"}.mdi-movie-open-check:before{content:"󱛻"}.mdi-movie-open-check-outline:before{content:"󱛼"}.mdi-movie-open-cog:before{content:"󱛽"}.mdi-movie-open-cog-outline:before{content:"󱛾"}.mdi-movie-open-edit:before{content:"󱛿"}.mdi-movie-open-edit-outline:before{content:"󱜀"}.mdi-movie-open-minus:before{content:"󱜁"}.mdi-movie-open-minus-outline:before{content:"󱜂"}.mdi-movie-open-off:before{content:"󱜃"}.mdi-movie-open-off-outline:before{content:"󱜄"}.mdi-movie-open-outline:before{content:"󰿏"}.mdi-movie-open-play:before{content:"󱜅"}.mdi-movie-open-play-outline:before{content:"󱜆"}.mdi-movie-open-plus:before{content:"󱜇"}.mdi-movie-open-plus-outline:before{content:"󱜈"}.mdi-movie-open-remove:before{content:"󱜉"}.mdi-movie-open-remove-outline:before{content:"󱜊"}.mdi-movie-open-settings:before{content:"󱜋"}.mdi-movie-open-settings-outline:before{content:"󱜌"}.mdi-movie-open-star:before{content:"󱜍"}.mdi-movie-open-star-outline:before{content:"󱜎"}.mdi-movie-outline:before{content:"󰷝"}.mdi-movie-play:before{content:"󱜏"}.mdi-movie-play-outline:before{content:"󱜐"}.mdi-movie-plus:before{content:"󱜑"}.mdi-movie-plus-outline:before{content:"󱜒"}.mdi-movie-remove:before{content:"󱜓"}.mdi-movie-remove-outline:before{content:"󱜔"}.mdi-movie-roll:before{content:"󰟞"}.mdi-movie-search:before{content:"󱇒"}.mdi-movie-search-outline:before{content:"󱇓"}.mdi-movie-settings:before{content:"󱜕"}.mdi-movie-settings-outline:before{content:"󱜖"}.mdi-movie-star:before{content:"󱜗"}.mdi-movie-star-outline:before{content:"󱜘"}.mdi-mower:before{content:"󱙯"}.mdi-mower-bag:before{content:"󱙰"}.mdi-mower-bag-on:before{content:"󱭠"}.mdi-mower-on:before{content:"󱭟"}.mdi-muffin:before{content:"󰦌"}.mdi-multicast:before{content:"󱢓"}.mdi-multimedia:before{content:"󱮗"}.mdi-multiplication:before{content:"󰎂"}.mdi-multiplication-box:before{content:"󰎃"}.mdi-mushroom:before{content:"󰟟"}.mdi-mushroom-off:before{content:"󱏺"}.mdi-mushroom-off-outline:before{content:"󱏻"}.mdi-mushroom-outline:before{content:"󰟠"}.mdi-music:before{content:"󰝚"}.mdi-music-accidental-double-flat:before{content:"󰽩"}.mdi-music-accidental-double-sharp:before{content:"󰽪"}.mdi-music-accidental-flat:before{content:"󰽫"}.mdi-music-accidental-natural:before{content:"󰽬"}.mdi-music-accidental-sharp:before{content:"󰽭"}.mdi-music-box:before{content:"󰎄"}.mdi-music-box-multiple:before{content:"󰌳"}.mdi-music-box-multiple-outline:before{content:"󰼄"}.mdi-music-box-outline:before{content:"󰎅"}.mdi-music-circle:before{content:"󰎆"}.mdi-music-circle-outline:before{content:"󰫔"}.mdi-music-clef-alto:before{content:"󰽮"}.mdi-music-clef-bass:before{content:"󰽯"}.mdi-music-clef-treble:before{content:"󰽰"}.mdi-music-note:before{content:"󰎇"}.mdi-music-note-bluetooth:before{content:"󰗾"}.mdi-music-note-bluetooth-off:before{content:"󰗿"}.mdi-music-note-eighth:before{content:"󰎈"}.mdi-music-note-eighth-dotted:before{content:"󰽱"}.mdi-music-note-half:before{content:"󰎉"}.mdi-music-note-half-dotted:before{content:"󰽲"}.mdi-music-note-minus:before{content:"󱮉"}.mdi-music-note-off:before{content:"󰎊"}.mdi-music-note-off-outline:before{content:"󰽳"}.mdi-music-note-outline:before{content:"󰽴"}.mdi-music-note-plus:before{content:"󰷞"}.mdi-music-note-quarter:before{content:"󰎋"}.mdi-music-note-quarter-dotted:before{content:"󰽵"}.mdi-music-note-sixteenth:before{content:"󰎌"}.mdi-music-note-sixteenth-dotted:before{content:"󰽶"}.mdi-music-note-whole:before{content:"󰎍"}.mdi-music-note-whole-dotted:before{content:"󰽷"}.mdi-music-off:before{content:"󰝛"}.mdi-music-rest-eighth:before{content:"󰽸"}.mdi-music-rest-half:before{content:"󰽹"}.mdi-music-rest-quarter:before{content:"󰽺"}.mdi-music-rest-sixteenth:before{content:"󰽻"}.mdi-music-rest-whole:before{content:"󰽼"}.mdi-mustache:before{content:"󱗞"}.mdi-nail:before{content:"󰷟"}.mdi-nas:before{content:"󰣳"}.mdi-nativescript:before{content:"󰢀"}.mdi-nature:before{content:"󰎎"}.mdi-nature-outline:before{content:"󱱱"}.mdi-nature-people:before{content:"󰎏"}.mdi-nature-people-outline:before{content:"󱱲"}.mdi-navigation:before{content:"󰎐"}.mdi-navigation-outline:before{content:"󱘇"}.mdi-navigation-variant:before{content:"󱣰"}.mdi-navigation-variant-outline:before{content:"󱣱"}.mdi-near-me:before{content:"󰗍"}.mdi-necklace:before{content:"󰼋"}.mdi-needle:before{content:"󰎑"}.mdi-needle-off:before{content:"󱧒"}.mdi-netflix:before{content:"󰝆"}.mdi-network:before{content:"󰛳"}.mdi-network-off:before{content:"󰲛"}.mdi-network-off-outline:before{content:"󰲜"}.mdi-network-outline:before{content:"󰲝"}.mdi-network-pos:before{content:"󱫋"}.mdi-network-strength-1:before{content:"󰣴"}.mdi-network-strength-1-alert:before{content:"󰣵"}.mdi-network-strength-2:before{content:"󰣶"}.mdi-network-strength-2-alert:before{content:"󰣷"}.mdi-network-strength-3:before{content:"󰣸"}.mdi-network-strength-3-alert:before{content:"󰣹"}.mdi-network-strength-4:before{content:"󰣺"}.mdi-network-strength-4-alert:before{content:"󰣻"}.mdi-network-strength-4-cog:before{content:"󱤚"}.mdi-network-strength-off:before{content:"󰣼"}.mdi-network-strength-off-outline:before{content:"󰣽"}.mdi-network-strength-outline:before{content:"󰣾"}.mdi-new-box:before{content:"󰎔"}.mdi-newspaper:before{content:"󰎕"}.mdi-newspaper-check:before{content:"󱥃"}.mdi-newspaper-minus:before{content:"󰼌"}.mdi-newspaper-plus:before{content:"󰼍"}.mdi-newspaper-remove:before{content:"󱥄"}.mdi-newspaper-variant:before{content:"󱀁"}.mdi-newspaper-variant-multiple:before{content:"󱀂"}.mdi-newspaper-variant-multiple-outline:before{content:"󱀃"}.mdi-newspaper-variant-outline:before{content:"󱀄"}.mdi-nfc:before{content:"󰎖"}.mdi-nfc-search-variant:before{content:"󰹓"}.mdi-nfc-tap:before{content:"󰎗"}.mdi-nfc-variant:before{content:"󰎘"}.mdi-nfc-variant-off:before{content:"󰹔"}.mdi-ninja:before{content:"󰝴"}.mdi-nintendo-game-boy:before{content:"󱎓"}.mdi-nintendo-switch:before{content:"󰟡"}.mdi-nintendo-wii:before{content:"󰖫"}.mdi-nintendo-wiiu:before{content:"󰜭"}.mdi-nix:before{content:"󱄅"}.mdi-nodejs:before{content:"󰎙"}.mdi-noodles:before{content:"󱅾"}.mdi-not-equal:before{content:"󰦍"}.mdi-not-equal-variant:before{content:"󰦎"}.mdi-note:before{content:"󰎚"}.mdi-note-alert:before{content:"󱝽"}.mdi-note-alert-outline:before{content:"󱝾"}.mdi-note-check:before{content:"󱝿"}.mdi-note-check-outline:before{content:"󱞀"}.mdi-note-edit:before{content:"󱞁"}.mdi-note-edit-outline:before{content:"󱞂"}.mdi-note-minus:before{content:"󱙏"}.mdi-note-minus-outline:before{content:"󱙐"}.mdi-note-multiple:before{content:"󰚸"}.mdi-note-multiple-outline:before{content:"󰚹"}.mdi-note-off:before{content:"󱞃"}.mdi-note-off-outline:before{content:"󱞄"}.mdi-note-outline:before{content:"󰎛"}.mdi-note-plus:before{content:"󰎜"}.mdi-note-plus-outline:before{content:"󰎝"}.mdi-note-remove:before{content:"󱙑"}.mdi-note-remove-outline:before{content:"󱙒"}.mdi-note-search:before{content:"󱙓"}.mdi-note-search-outline:before{content:"󱙔"}.mdi-note-text:before{content:"󰎞"}.mdi-note-text-outline:before{content:"󱇗"}.mdi-notebook:before{content:"󰠮"}.mdi-notebook-check:before{content:"󱓵"}.mdi-notebook-check-outline:before{content:"󱓶"}.mdi-notebook-edit:before{content:"󱓧"}.mdi-notebook-edit-outline:before{content:"󱓩"}.mdi-notebook-heart:before{content:"󱨋"}.mdi-notebook-heart-outline:before{content:"󱨌"}.mdi-notebook-minus:before{content:"󱘐"}.mdi-notebook-minus-outline:before{content:"󱘑"}.mdi-notebook-multiple:before{content:"󰹕"}.mdi-notebook-outline:before{content:"󰺿"}.mdi-notebook-plus:before{content:"󱘒"}.mdi-notebook-plus-outline:before{content:"󱘓"}.mdi-notebook-remove:before{content:"󱘔"}.mdi-notebook-remove-outline:before{content:"󱘕"}.mdi-notification-clear-all:before{content:"󰎟"}.mdi-npm:before{content:"󰛷"}.mdi-nuke:before{content:"󰚤"}.mdi-null:before{content:"󰟢"}.mdi-numeric:before{content:"󰎠"}.mdi-numeric-0:before{content:"󰬹"}.mdi-numeric-0-box:before{content:"󰎡"}.mdi-numeric-0-box-multiple:before{content:"󰼎"}.mdi-numeric-0-box-multiple-outline:before{content:"󰎢"}.mdi-numeric-0-box-outline:before{content:"󰎣"}.mdi-numeric-0-circle:before{content:"󰲞"}.mdi-numeric-0-circle-outline:before{content:"󰲟"}.mdi-numeric-1:before{content:"󰬺"}.mdi-numeric-1-box:before{content:"󰎤"}.mdi-numeric-1-box-multiple:before{content:"󰼏"}.mdi-numeric-1-box-multiple-outline:before{content:"󰎥"}.mdi-numeric-1-box-outline:before{content:"󰎦"}.mdi-numeric-1-circle:before{content:"󰲠"}.mdi-numeric-1-circle-outline:before{content:"󰲡"}.mdi-numeric-10:before{content:"󰿩"}.mdi-numeric-10-box:before{content:"󰽽"}.mdi-numeric-10-box-multiple:before{content:"󰿪"}.mdi-numeric-10-box-multiple-outline:before{content:"󰿫"}.mdi-numeric-10-box-outline:before{content:"󰽾"}.mdi-numeric-10-circle:before{content:"󰿬"}.mdi-numeric-10-circle-outline:before{content:"󰿭"}.mdi-numeric-2:before{content:"󰬻"}.mdi-numeric-2-box:before{content:"󰎧"}.mdi-numeric-2-box-multiple:before{content:"󰼐"}.mdi-numeric-2-box-multiple-outline:before{content:"󰎨"}.mdi-numeric-2-box-outline:before{content:"󰎩"}.mdi-numeric-2-circle:before{content:"󰲢"}.mdi-numeric-2-circle-outline:before{content:"󰲣"}.mdi-numeric-3:before{content:"󰬼"}.mdi-numeric-3-box:before{content:"󰎪"}.mdi-numeric-3-box-multiple:before{content:"󰼑"}.mdi-numeric-3-box-multiple-outline:before{content:"󰎫"}.mdi-numeric-3-box-outline:before{content:"󰎬"}.mdi-numeric-3-circle:before{content:"󰲤"}.mdi-numeric-3-circle-outline:before{content:"󰲥"}.mdi-numeric-4:before{content:"󰬽"}.mdi-numeric-4-box:before{content:"󰎭"}.mdi-numeric-4-box-multiple:before{content:"󰼒"}.mdi-numeric-4-box-multiple-outline:before{content:"󰎲"}.mdi-numeric-4-box-outline:before{content:"󰎮"}.mdi-numeric-4-circle:before{content:"󰲦"}.mdi-numeric-4-circle-outline:before{content:"󰲧"}.mdi-numeric-5:before{content:"󰬾"}.mdi-numeric-5-box:before{content:"󰎱"}.mdi-numeric-5-box-multiple:before{content:"󰼓"}.mdi-numeric-5-box-multiple-outline:before{content:"󰎯"}.mdi-numeric-5-box-outline:before{content:"󰎰"}.mdi-numeric-5-circle:before{content:"󰲨"}.mdi-numeric-5-circle-outline:before{content:"󰲩"}.mdi-numeric-6:before{content:"󰬿"}.mdi-numeric-6-box:before{content:"󰎳"}.mdi-numeric-6-box-multiple:before{content:"󰼔"}.mdi-numeric-6-box-multiple-outline:before{content:"󰎴"}.mdi-numeric-6-box-outline:before{content:"󰎵"}.mdi-numeric-6-circle:before{content:"󰲪"}.mdi-numeric-6-circle-outline:before{content:"󰲫"}.mdi-numeric-7:before{content:"󰭀"}.mdi-numeric-7-box:before{content:"󰎶"}.mdi-numeric-7-box-multiple:before{content:"󰼕"}.mdi-numeric-7-box-multiple-outline:before{content:"󰎷"}.mdi-numeric-7-box-outline:before{content:"󰎸"}.mdi-numeric-7-circle:before{content:"󰲬"}.mdi-numeric-7-circle-outline:before{content:"󰲭"}.mdi-numeric-8:before{content:"󰭁"}.mdi-numeric-8-box:before{content:"󰎹"}.mdi-numeric-8-box-multiple:before{content:"󰼖"}.mdi-numeric-8-box-multiple-outline:before{content:"󰎺"}.mdi-numeric-8-box-outline:before{content:"󰎻"}.mdi-numeric-8-circle:before{content:"󰲮"}.mdi-numeric-8-circle-outline:before{content:"󰲯"}.mdi-numeric-9:before{content:"󰭂"}.mdi-numeric-9-box:before{content:"󰎼"}.mdi-numeric-9-box-multiple:before{content:"󰼗"}.mdi-numeric-9-box-multiple-outline:before{content:"󰎽"}.mdi-numeric-9-box-outline:before{content:"󰎾"}.mdi-numeric-9-circle:before{content:"󰲰"}.mdi-numeric-9-circle-outline:before{content:"󰲱"}.mdi-numeric-9-plus:before{content:"󰿮"}.mdi-numeric-9-plus-box:before{content:"󰎿"}.mdi-numeric-9-plus-box-multiple:before{content:"󰼘"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"󰏀"}.mdi-numeric-9-plus-box-outline:before{content:"󰏁"}.mdi-numeric-9-plus-circle:before{content:"󰲲"}.mdi-numeric-9-plus-circle-outline:before{content:"󰲳"}.mdi-numeric-negative-1:before{content:"󱁒"}.mdi-numeric-off:before{content:"󱧓"}.mdi-numeric-positive-1:before{content:"󱗋"}.mdi-nut:before{content:"󰛸"}.mdi-nutrition:before{content:"󰏂"}.mdi-nuxt:before{content:"󱄆"}.mdi-oar:before{content:"󰙼"}.mdi-ocarina:before{content:"󰷠"}.mdi-oci:before{content:"󱋩"}.mdi-ocr:before{content:"󱄺"}.mdi-octagon:before{content:"󰏃"}.mdi-octagon-outline:before{content:"󰏄"}.mdi-octagram:before{content:"󰛹"}.mdi-octagram-edit:before{content:"󱰴"}.mdi-octagram-edit-outline:before{content:"󱰵"}.mdi-octagram-minus:before{content:"󱰶"}.mdi-octagram-minus-outline:before{content:"󱰷"}.mdi-octagram-outline:before{content:"󰝵"}.mdi-octagram-plus:before{content:"󱰸"}.mdi-octagram-plus-outline:before{content:"󱰹"}.mdi-octahedron:before{content:"󱥐"}.mdi-octahedron-off:before{content:"󱥑"}.mdi-odnoklassniki:before{content:"󰏅"}.mdi-offer:before{content:"󱈛"}.mdi-office-building:before{content:"󰦑"}.mdi-office-building-cog:before{content:"󱥉"}.mdi-office-building-cog-outline:before{content:"󱥊"}.mdi-office-building-marker:before{content:"󱔠"}.mdi-office-building-marker-outline:before{content:"󱔡"}.mdi-office-building-minus:before{content:"󱮪"}.mdi-office-building-minus-outline:before{content:"󱮫"}.mdi-office-building-outline:before{content:"󱔟"}.mdi-office-building-plus:before{content:"󱮨"}.mdi-office-building-plus-outline:before{content:"󱮩"}.mdi-office-building-remove:before{content:"󱮬"}.mdi-office-building-remove-outline:before{content:"󱮭"}.mdi-oil:before{content:"󰏇"}.mdi-oil-lamp:before{content:"󰼙"}.mdi-oil-level:before{content:"󱁓"}.mdi-oil-temperature:before{content:"󰿸"}.mdi-om:before{content:"󰥳"}.mdi-omega:before{content:"󰏉"}.mdi-one-up:before{content:"󰮭"}.mdi-onepassword:before{content:"󰢁"}.mdi-opacity:before{content:"󰗌"}.mdi-open-in-app:before{content:"󰏋"}.mdi-open-in-new:before{content:"󰏌"}.mdi-open-source-initiative:before{content:"󰮮"}.mdi-openid:before{content:"󰏍"}.mdi-opera:before{content:"󰏎"}.mdi-orbit:before{content:"󰀘"}.mdi-orbit-variant:before{content:"󱗛"}.mdi-order-alphabetical-ascending:before{content:"󰈍"}.mdi-order-alphabetical-descending:before{content:"󰴇"}.mdi-order-bool-ascending:before{content:"󰊾"}.mdi-order-bool-ascending-variant:before{content:"󰦏"}.mdi-order-bool-descending:before{content:"󱎄"}.mdi-order-bool-descending-variant:before{content:"󰦐"}.mdi-order-numeric-ascending:before{content:"󰕅"}.mdi-order-numeric-descending:before{content:"󰕆"}.mdi-origin:before{content:"󰭃"}.mdi-ornament:before{content:"󰏏"}.mdi-ornament-variant:before{content:"󰏐"}.mdi-outdoor-lamp:before{content:"󱁔"}.mdi-overscan:before{content:"󱀅"}.mdi-owl:before{content:"󰏒"}.mdi-pac-man:before{content:"󰮯"}.mdi-package:before{content:"󰏓"}.mdi-package-check:before{content:"󱭑"}.mdi-package-down:before{content:"󰏔"}.mdi-package-up:before{content:"󰏕"}.mdi-package-variant:before{content:"󰏖"}.mdi-package-variant-closed:before{content:"󰏗"}.mdi-package-variant-closed-check:before{content:"󱭒"}.mdi-package-variant-closed-minus:before{content:"󱧔"}.mdi-package-variant-closed-plus:before{content:"󱧕"}.mdi-package-variant-closed-remove:before{content:"󱧖"}.mdi-package-variant-minus:before{content:"󱧗"}.mdi-package-variant-plus:before{content:"󱧘"}.mdi-package-variant-remove:before{content:"󱧙"}.mdi-page-first:before{content:"󰘀"}.mdi-page-last:before{content:"󰘁"}.mdi-page-layout-body:before{content:"󰛺"}.mdi-page-layout-footer:before{content:"󰛻"}.mdi-page-layout-header:before{content:"󰛼"}.mdi-page-layout-header-footer:before{content:"󰽿"}.mdi-page-layout-sidebar-left:before{content:"󰛽"}.mdi-page-layout-sidebar-right:before{content:"󰛾"}.mdi-page-next:before{content:"󰮰"}.mdi-page-next-outline:before{content:"󰮱"}.mdi-page-previous:before{content:"󰮲"}.mdi-page-previous-outline:before{content:"󰮳"}.mdi-pail:before{content:"󱐗"}.mdi-pail-minus:before{content:"󱐷"}.mdi-pail-minus-outline:before{content:"󱐼"}.mdi-pail-off:before{content:"󱐹"}.mdi-pail-off-outline:before{content:"󱐾"}.mdi-pail-outline:before{content:"󱐺"}.mdi-pail-plus:before{content:"󱐶"}.mdi-pail-plus-outline:before{content:"󱐻"}.mdi-pail-remove:before{content:"󱐸"}.mdi-pail-remove-outline:before{content:"󱐽"}.mdi-palette:before{content:"󰏘"}.mdi-palette-advanced:before{content:"󰏙"}.mdi-palette-outline:before{content:"󰸌"}.mdi-palette-swatch:before{content:"󰢵"}.mdi-palette-swatch-outline:before{content:"󱍜"}.mdi-palette-swatch-variant:before{content:"󱥚"}.mdi-palm-tree:before{content:"󱁕"}.mdi-pan:before{content:"󰮴"}.mdi-pan-bottom-left:before{content:"󰮵"}.mdi-pan-bottom-right:before{content:"󰮶"}.mdi-pan-down:before{content:"󰮷"}.mdi-pan-horizontal:before{content:"󰮸"}.mdi-pan-left:before{content:"󰮹"}.mdi-pan-right:before{content:"󰮺"}.mdi-pan-top-left:before{content:"󰮻"}.mdi-pan-top-right:before{content:"󰮼"}.mdi-pan-up:before{content:"󰮽"}.mdi-pan-vertical:before{content:"󰮾"}.mdi-panda:before{content:"󰏚"}.mdi-pandora:before{content:"󰏛"}.mdi-panorama:before{content:"󰏜"}.mdi-panorama-fisheye:before{content:"󰏝"}.mdi-panorama-horizontal:before{content:"󱤨"}.mdi-panorama-horizontal-outline:before{content:"󰏞"}.mdi-panorama-outline:before{content:"󱦌"}.mdi-panorama-sphere:before{content:"󱦍"}.mdi-panorama-sphere-outline:before{content:"󱦎"}.mdi-panorama-variant:before{content:"󱦏"}.mdi-panorama-variant-outline:before{content:"󱦐"}.mdi-panorama-vertical:before{content:"󱤩"}.mdi-panorama-vertical-outline:before{content:"󰏟"}.mdi-panorama-wide-angle:before{content:"󱥟"}.mdi-panorama-wide-angle-outline:before{content:"󰏠"}.mdi-paper-cut-vertical:before{content:"󰏡"}.mdi-paper-roll:before{content:"󱅗"}.mdi-paper-roll-outline:before{content:"󱅘"}.mdi-paperclip:before{content:"󰏢"}.mdi-paperclip-check:before{content:"󱫆"}.mdi-paperclip-lock:before{content:"󱧚"}.mdi-paperclip-minus:before{content:"󱫇"}.mdi-paperclip-off:before{content:"󱫈"}.mdi-paperclip-plus:before{content:"󱫉"}.mdi-paperclip-remove:before{content:"󱫊"}.mdi-parachute:before{content:"󰲴"}.mdi-parachute-outline:before{content:"󰲵"}.mdi-paragliding:before{content:"󱝅"}.mdi-parking:before{content:"󰏣"}.mdi-party-popper:before{content:"󱁖"}.mdi-passport:before{content:"󰟣"}.mdi-passport-alert:before{content:"󱲸"}.mdi-passport-biometric:before{content:"󰷡"}.mdi-passport-cancel:before{content:"󱲹"}.mdi-passport-check:before{content:"󱲺"}.mdi-passport-minus:before{content:"󱲻"}.mdi-passport-plus:before{content:"󱲼"}.mdi-passport-remove:before{content:"󱲽"}.mdi-pasta:before{content:"󱅠"}.mdi-patio-heater:before{content:"󰾀"}.mdi-patreon:before{content:"󰢂"}.mdi-pause:before{content:"󰏤"}.mdi-pause-box:before{content:"󰂼"}.mdi-pause-box-outline:before{content:"󱭺"}.mdi-pause-circle:before{content:"󰏥"}.mdi-pause-circle-outline:before{content:"󰏦"}.mdi-pause-octagon:before{content:"󰏧"}.mdi-pause-octagon-outline:before{content:"󰏨"}.mdi-paw:before{content:"󰏩"}.mdi-paw-off:before{content:"󰙗"}.mdi-paw-off-outline:before{content:"󱙶"}.mdi-paw-outline:before{content:"󱙵"}.mdi-peace:before{content:"󰢄"}.mdi-peanut:before{content:"󰿼"}.mdi-peanut-off:before{content:"󰿽"}.mdi-peanut-off-outline:before{content:"󰿿"}.mdi-peanut-outline:before{content:"󰿾"}.mdi-pen:before{content:"󰏪"}.mdi-pen-lock:before{content:"󰷢"}.mdi-pen-minus:before{content:"󰷣"}.mdi-pen-off:before{content:"󰷤"}.mdi-pen-plus:before{content:"󰷥"}.mdi-pen-remove:before{content:"󰷦"}.mdi-pencil:before{content:"󰏫"}.mdi-pencil-box:before{content:"󰏬"}.mdi-pencil-box-multiple:before{content:"󱅄"}.mdi-pencil-box-multiple-outline:before{content:"󱅅"}.mdi-pencil-box-outline:before{content:"󰏭"}.mdi-pencil-circle:before{content:"󰛿"}.mdi-pencil-circle-outline:before{content:"󰝶"}.mdi-pencil-lock:before{content:"󰏮"}.mdi-pencil-lock-outline:before{content:"󰷧"}.mdi-pencil-minus:before{content:"󰷨"}.mdi-pencil-minus-outline:before{content:"󰷩"}.mdi-pencil-off:before{content:"󰏯"}.mdi-pencil-off-outline:before{content:"󰷪"}.mdi-pencil-outline:before{content:"󰲶"}.mdi-pencil-plus:before{content:"󰷫"}.mdi-pencil-plus-outline:before{content:"󰷬"}.mdi-pencil-remove:before{content:"󰷭"}.mdi-pencil-remove-outline:before{content:"󰷮"}.mdi-pencil-ruler:before{content:"󱍓"}.mdi-pencil-ruler-outline:before{content:"󱰑"}.mdi-penguin:before{content:"󰻀"}.mdi-pentagon:before{content:"󰜁"}.mdi-pentagon-outline:before{content:"󰜀"}.mdi-pentagram:before{content:"󱙧"}.mdi-percent:before{content:"󰏰"}.mdi-percent-box:before{content:"󱨂"}.mdi-percent-box-outline:before{content:"󱨃"}.mdi-percent-circle:before{content:"󱨄"}.mdi-percent-circle-outline:before{content:"󱨅"}.mdi-percent-outline:before{content:"󱉸"}.mdi-periodic-table:before{content:"󰢶"}.mdi-perspective-less:before{content:"󰴣"}.mdi-perspective-more:before{content:"󰴤"}.mdi-ph:before{content:"󱟅"}.mdi-phone:before{content:"󰏲"}.mdi-phone-alert:before{content:"󰼚"}.mdi-phone-alert-outline:before{content:"󱆎"}.mdi-phone-bluetooth:before{content:"󰏳"}.mdi-phone-bluetooth-outline:before{content:"󱆏"}.mdi-phone-cancel:before{content:"󱂼"}.mdi-phone-cancel-outline:before{content:"󱆐"}.mdi-phone-check:before{content:"󱆩"}.mdi-phone-check-outline:before{content:"󱆪"}.mdi-phone-classic:before{content:"󰘂"}.mdi-phone-classic-off:before{content:"󱉹"}.mdi-phone-clock:before{content:"󱧛"}.mdi-phone-dial:before{content:"󱕙"}.mdi-phone-dial-outline:before{content:"󱕚"}.mdi-phone-forward:before{content:"󰏴"}.mdi-phone-forward-outline:before{content:"󱆑"}.mdi-phone-hangup:before{content:"󰏵"}.mdi-phone-hangup-outline:before{content:"󱆒"}.mdi-phone-in-talk:before{content:"󰏶"}.mdi-phone-in-talk-outline:before{content:"󱆂"}.mdi-phone-incoming:before{content:"󰏷"}.mdi-phone-incoming-outgoing:before{content:"󱬿"}.mdi-phone-incoming-outgoing-outline:before{content:"󱭀"}.mdi-phone-incoming-outline:before{content:"󱆓"}.mdi-phone-lock:before{content:"󰏸"}.mdi-phone-lock-outline:before{content:"󱆔"}.mdi-phone-log:before{content:"󰏹"}.mdi-phone-log-outline:before{content:"󱆕"}.mdi-phone-message:before{content:"󱆖"}.mdi-phone-message-outline:before{content:"󱆗"}.mdi-phone-minus:before{content:"󰙘"}.mdi-phone-minus-outline:before{content:"󱆘"}.mdi-phone-missed:before{content:"󰏺"}.mdi-phone-missed-outline:before{content:"󱆥"}.mdi-phone-off:before{content:"󰷯"}.mdi-phone-off-outline:before{content:"󱆦"}.mdi-phone-outgoing:before{content:"󰏻"}.mdi-phone-outgoing-outline:before{content:"󱆙"}.mdi-phone-outline:before{content:"󰷰"}.mdi-phone-paused:before{content:"󰏼"}.mdi-phone-paused-outline:before{content:"󱆚"}.mdi-phone-plus:before{content:"󰙙"}.mdi-phone-plus-outline:before{content:"󱆛"}.mdi-phone-refresh:before{content:"󱦓"}.mdi-phone-refresh-outline:before{content:"󱦔"}.mdi-phone-remove:before{content:"󱔯"}.mdi-phone-remove-outline:before{content:"󱔰"}.mdi-phone-return:before{content:"󰠯"}.mdi-phone-return-outline:before{content:"󱆜"}.mdi-phone-ring:before{content:"󱆫"}.mdi-phone-ring-outline:before{content:"󱆬"}.mdi-phone-rotate-landscape:before{content:"󰢅"}.mdi-phone-rotate-portrait:before{content:"󰢆"}.mdi-phone-settings:before{content:"󰏽"}.mdi-phone-settings-outline:before{content:"󱆝"}.mdi-phone-sync:before{content:"󱦕"}.mdi-phone-sync-outline:before{content:"󱦖"}.mdi-phone-voip:before{content:"󰏾"}.mdi-pi:before{content:"󰏿"}.mdi-pi-box:before{content:"󰐀"}.mdi-pi-hole:before{content:"󰷱"}.mdi-piano:before{content:"󰙽"}.mdi-piano-off:before{content:"󰚘"}.mdi-pickaxe:before{content:"󰢷"}.mdi-picture-in-picture-bottom-right:before{content:"󰹗"}.mdi-picture-in-picture-bottom-right-outline:before{content:"󰹘"}.mdi-picture-in-picture-top-right:before{content:"󰹙"}.mdi-picture-in-picture-top-right-outline:before{content:"󰹚"}.mdi-pier:before{content:"󰢇"}.mdi-pier-crane:before{content:"󰢈"}.mdi-pig:before{content:"󰐁"}.mdi-pig-variant:before{content:"󱀆"}.mdi-pig-variant-outline:before{content:"󱙸"}.mdi-piggy-bank:before{content:"󱀇"}.mdi-piggy-bank-outline:before{content:"󱙹"}.mdi-pill:before{content:"󰐂"}.mdi-pill-multiple:before{content:"󱭌"}.mdi-pill-off:before{content:"󱩜"}.mdi-pillar:before{content:"󰜂"}.mdi-pin:before{content:"󰐃"}.mdi-pin-off:before{content:"󰐄"}.mdi-pin-off-outline:before{content:"󰤰"}.mdi-pin-outline:before{content:"󰤱"}.mdi-pine-tree:before{content:"󰐅"}.mdi-pine-tree-box:before{content:"󰐆"}.mdi-pine-tree-fire:before{content:"󱐚"}.mdi-pine-tree-variant:before{content:"󱱳"}.mdi-pine-tree-variant-outline:before{content:"󱱴"}.mdi-pinterest:before{content:"󰐇"}.mdi-pinwheel:before{content:"󰫕"}.mdi-pinwheel-outline:before{content:"󰫖"}.mdi-pipe:before{content:"󰟥"}.mdi-pipe-disconnected:before{content:"󰟦"}.mdi-pipe-leak:before{content:"󰢉"}.mdi-pipe-valve:before{content:"󱡍"}.mdi-pipe-wrench:before{content:"󱍔"}.mdi-pirate:before{content:"󰨈"}.mdi-pistol:before{content:"󰜃"}.mdi-piston:before{content:"󰢊"}.mdi-pitchfork:before{content:"󱕓"}.mdi-pizza:before{content:"󰐉"}.mdi-plane-car:before{content:"󱫿"}.mdi-plane-train:before{content:"󱬀"}.mdi-play:before{content:"󰐊"}.mdi-play-box:before{content:"󱉺"}.mdi-play-box-edit-outline:before{content:"󱰺"}.mdi-play-box-lock:before{content:"󱨖"}.mdi-play-box-lock-open:before{content:"󱨗"}.mdi-play-box-lock-open-outline:before{content:"󱨘"}.mdi-play-box-lock-outline:before{content:"󱨙"}.mdi-play-box-multiple:before{content:"󰴙"}.mdi-play-box-multiple-outline:before{content:"󱏦"}.mdi-play-box-outline:before{content:"󰐋"}.mdi-play-circle:before{content:"󰐌"}.mdi-play-circle-outline:before{content:"󰐍"}.mdi-play-network:before{content:"󰢋"}.mdi-play-network-outline:before{content:"󰲷"}.mdi-play-outline:before{content:"󰼛"}.mdi-play-pause:before{content:"󰐎"}.mdi-play-protected-content:before{content:"󰐏"}.mdi-play-speed:before{content:"󰣿"}.mdi-playlist-check:before{content:"󰗇"}.mdi-playlist-edit:before{content:"󰤀"}.mdi-playlist-minus:before{content:"󰐐"}.mdi-playlist-music:before{content:"󰲸"}.mdi-playlist-music-outline:before{content:"󰲹"}.mdi-playlist-play:before{content:"󰐑"}.mdi-playlist-plus:before{content:"󰐒"}.mdi-playlist-remove:before{content:"󰐓"}.mdi-playlist-star:before{content:"󰷲"}.mdi-plex:before{content:"󰚺"}.mdi-pliers:before{content:"󱦤"}.mdi-plus:before{content:"󰐕"}.mdi-plus-box:before{content:"󰐖"}.mdi-plus-box-multiple:before{content:"󰌴"}.mdi-plus-box-multiple-outline:before{content:"󱅃"}.mdi-plus-box-outline:before{content:"󰜄"}.mdi-plus-circle:before{content:"󰐗"}.mdi-plus-circle-multiple:before{content:"󰍌"}.mdi-plus-circle-multiple-outline:before{content:"󰐘"}.mdi-plus-circle-outline:before{content:"󰐙"}.mdi-plus-lock:before{content:"󱩝"}.mdi-plus-lock-open:before{content:"󱩞"}.mdi-plus-minus:before{content:"󰦒"}.mdi-plus-minus-box:before{content:"󰦓"}.mdi-plus-minus-variant:before{content:"󱓉"}.mdi-plus-network:before{content:"󰐚"}.mdi-plus-network-outline:before{content:"󰲺"}.mdi-plus-outline:before{content:"󰜅"}.mdi-plus-thick:before{content:"󱇬"}.mdi-pocket:before{content:"󱲾"}.mdi-podcast:before{content:"󰦔"}.mdi-podium:before{content:"󰴥"}.mdi-podium-bronze:before{content:"󰴦"}.mdi-podium-gold:before{content:"󰴧"}.mdi-podium-silver:before{content:"󰴨"}.mdi-point-of-sale:before{content:"󰶒"}.mdi-pokeball:before{content:"󰐝"}.mdi-pokemon-go:before{content:"󰨉"}.mdi-poker-chip:before{content:"󰠰"}.mdi-polaroid:before{content:"󰐞"}.mdi-police-badge:before{content:"󱅧"}.mdi-police-badge-outline:before{content:"󱅨"}.mdi-police-station:before{content:"󱠹"}.mdi-poll:before{content:"󰐟"}.mdi-polo:before{content:"󱓃"}.mdi-polymer:before{content:"󰐡"}.mdi-pool:before{content:"󰘆"}.mdi-pool-thermometer:before{content:"󱩟"}.mdi-popcorn:before{content:"󰐢"}.mdi-post:before{content:"󱀈"}.mdi-post-lamp:before{content:"󱩠"}.mdi-post-outline:before{content:"󱀉"}.mdi-postage-stamp:before{content:"󰲻"}.mdi-pot:before{content:"󰋥"}.mdi-pot-mix:before{content:"󰙛"}.mdi-pot-mix-outline:before{content:"󰙷"}.mdi-pot-outline:before{content:"󰋿"}.mdi-pot-steam:before{content:"󰙚"}.mdi-pot-steam-outline:before{content:"󰌦"}.mdi-pound:before{content:"󰐣"}.mdi-pound-box:before{content:"󰐤"}.mdi-pound-box-outline:before{content:"󱅿"}.mdi-power:before{content:"󰐥"}.mdi-power-cycle:before{content:"󰤁"}.mdi-power-off:before{content:"󰤂"}.mdi-power-on:before{content:"󰤃"}.mdi-power-plug:before{content:"󰚥"}.mdi-power-plug-battery:before{content:"󱰻"}.mdi-power-plug-battery-outline:before{content:"󱰼"}.mdi-power-plug-off:before{content:"󰚦"}.mdi-power-plug-off-outline:before{content:"󱐤"}.mdi-power-plug-outline:before{content:"󱐥"}.mdi-power-settings:before{content:"󰐦"}.mdi-power-sleep:before{content:"󰤄"}.mdi-power-socket:before{content:"󰐧"}.mdi-power-socket-au:before{content:"󰤅"}.mdi-power-socket-ch:before{content:"󰾳"}.mdi-power-socket-de:before{content:"󱄇"}.mdi-power-socket-eu:before{content:"󰟧"}.mdi-power-socket-fr:before{content:"󱄈"}.mdi-power-socket-it:before{content:"󱓿"}.mdi-power-socket-jp:before{content:"󱄉"}.mdi-power-socket-uk:before{content:"󰟨"}.mdi-power-socket-us:before{content:"󰟩"}.mdi-power-standby:before{content:"󰤆"}.mdi-powershell:before{content:"󰨊"}.mdi-prescription:before{content:"󰜆"}.mdi-presentation:before{content:"󰐨"}.mdi-presentation-play:before{content:"󰐩"}.mdi-pretzel:before{content:"󱕢"}.mdi-printer:before{content:"󰐪"}.mdi-printer-3d:before{content:"󰐫"}.mdi-printer-3d-nozzle:before{content:"󰹛"}.mdi-printer-3d-nozzle-alert:before{content:"󱇀"}.mdi-printer-3d-nozzle-alert-outline:before{content:"󱇁"}.mdi-printer-3d-nozzle-heat:before{content:"󱢸"}.mdi-printer-3d-nozzle-heat-outline:before{content:"󱢹"}.mdi-printer-3d-nozzle-off:before{content:"󱬙"}.mdi-printer-3d-nozzle-off-outline:before{content:"󱬚"}.mdi-printer-3d-nozzle-outline:before{content:"󰹜"}.mdi-printer-3d-off:before{content:"󱬎"}.mdi-printer-alert:before{content:"󰐬"}.mdi-printer-check:before{content:"󱅆"}.mdi-printer-eye:before{content:"󱑘"}.mdi-printer-off:before{content:"󰹝"}.mdi-printer-off-outline:before{content:"󱞅"}.mdi-printer-outline:before{content:"󱞆"}.mdi-printer-pos:before{content:"󱁗"}.mdi-printer-pos-alert:before{content:"󱮼"}.mdi-printer-pos-alert-outline:before{content:"󱮽"}.mdi-printer-pos-cancel:before{content:"󱮾"}.mdi-printer-pos-cancel-outline:before{content:"󱮿"}.mdi-printer-pos-check:before{content:"󱯀"}.mdi-printer-pos-check-outline:before{content:"󱯁"}.mdi-printer-pos-cog:before{content:"󱯂"}.mdi-printer-pos-cog-outline:before{content:"󱯃"}.mdi-printer-pos-edit:before{content:"󱯄"}.mdi-printer-pos-edit-outline:before{content:"󱯅"}.mdi-printer-pos-minus:before{content:"󱯆"}.mdi-printer-pos-minus-outline:before{content:"󱯇"}.mdi-printer-pos-network:before{content:"󱯈"}.mdi-printer-pos-network-outline:before{content:"󱯉"}.mdi-printer-pos-off:before{content:"󱯊"}.mdi-printer-pos-off-outline:before{content:"󱯋"}.mdi-printer-pos-outline:before{content:"󱯌"}.mdi-printer-pos-pause:before{content:"󱯍"}.mdi-printer-pos-pause-outline:before{content:"󱯎"}.mdi-printer-pos-play:before{content:"󱯏"}.mdi-printer-pos-play-outline:before{content:"󱯐"}.mdi-printer-pos-plus:before{content:"󱯑"}.mdi-printer-pos-plus-outline:before{content:"󱯒"}.mdi-printer-pos-refresh:before{content:"󱯓"}.mdi-printer-pos-refresh-outline:before{content:"󱯔"}.mdi-printer-pos-remove:before{content:"󱯕"}.mdi-printer-pos-remove-outline:before{content:"󱯖"}.mdi-printer-pos-star:before{content:"󱯗"}.mdi-printer-pos-star-outline:before{content:"󱯘"}.mdi-printer-pos-stop:before{content:"󱯙"}.mdi-printer-pos-stop-outline:before{content:"󱯚"}.mdi-printer-pos-sync:before{content:"󱯛"}.mdi-printer-pos-sync-outline:before{content:"󱯜"}.mdi-printer-pos-wrench:before{content:"󱯝"}.mdi-printer-pos-wrench-outline:before{content:"󱯞"}.mdi-printer-search:before{content:"󱑗"}.mdi-printer-settings:before{content:"󰜇"}.mdi-printer-wireless:before{content:"󰨋"}.mdi-priority-high:before{content:"󰘃"}.mdi-priority-low:before{content:"󰘄"}.mdi-professional-hexagon:before{content:"󰐭"}.mdi-progress-alert:before{content:"󰲼"}.mdi-progress-check:before{content:"󰦕"}.mdi-progress-clock:before{content:"󰦖"}.mdi-progress-close:before{content:"󱄊"}.mdi-progress-download:before{content:"󰦗"}.mdi-progress-helper:before{content:"󱮢"}.mdi-progress-pencil:before{content:"󱞇"}.mdi-progress-question:before{content:"󱔢"}.mdi-progress-star:before{content:"󱞈"}.mdi-progress-star-four-points:before{content:"󱰽"}.mdi-progress-upload:before{content:"󰦘"}.mdi-progress-wrench:before{content:"󰲽"}.mdi-projector:before{content:"󰐮"}.mdi-projector-off:before{content:"󱨣"}.mdi-projector-screen:before{content:"󰐯"}.mdi-projector-screen-off:before{content:"󱠍"}.mdi-projector-screen-off-outline:before{content:"󱠎"}.mdi-projector-screen-outline:before{content:"󱜤"}.mdi-projector-screen-variant:before{content:"󱠏"}.mdi-projector-screen-variant-off:before{content:"󱠐"}.mdi-projector-screen-variant-off-outline:before{content:"󱠑"}.mdi-projector-screen-variant-outline:before{content:"󱠒"}.mdi-propane-tank:before{content:"󱍗"}.mdi-propane-tank-outline:before{content:"󱍘"}.mdi-protocol:before{content:"󰿘"}.mdi-publish:before{content:"󰚧"}.mdi-publish-off:before{content:"󱥅"}.mdi-pulse:before{content:"󰐰"}.mdi-pump:before{content:"󱐂"}.mdi-pump-off:before{content:"󱬢"}.mdi-pumpkin:before{content:"󰮿"}.mdi-purse:before{content:"󰼜"}.mdi-purse-outline:before{content:"󰼝"}.mdi-puzzle:before{content:"󰐱"}.mdi-puzzle-check:before{content:"󱐦"}.mdi-puzzle-check-outline:before{content:"󱐧"}.mdi-puzzle-edit:before{content:"󱓓"}.mdi-puzzle-edit-outline:before{content:"󱓙"}.mdi-puzzle-heart:before{content:"󱓔"}.mdi-puzzle-heart-outline:before{content:"󱓚"}.mdi-puzzle-minus:before{content:"󱓑"}.mdi-puzzle-minus-outline:before{content:"󱓗"}.mdi-puzzle-outline:before{content:"󰩦"}.mdi-puzzle-plus:before{content:"󱓐"}.mdi-puzzle-plus-outline:before{content:"󱓖"}.mdi-puzzle-remove:before{content:"󱓒"}.mdi-puzzle-remove-outline:before{content:"󱓘"}.mdi-puzzle-star:before{content:"󱓕"}.mdi-puzzle-star-outline:before{content:"󱓛"}.mdi-pyramid:before{content:"󱥒"}.mdi-pyramid-off:before{content:"󱥓"}.mdi-qi:before{content:"󰦙"}.mdi-qqchat:before{content:"󰘅"}.mdi-qrcode:before{content:"󰐲"}.mdi-qrcode-edit:before{content:"󰢸"}.mdi-qrcode-minus:before{content:"󱆌"}.mdi-qrcode-plus:before{content:"󱆋"}.mdi-qrcode-remove:before{content:"󱆍"}.mdi-qrcode-scan:before{content:"󰐳"}.mdi-quadcopter:before{content:"󰐴"}.mdi-quality-high:before{content:"󰐵"}.mdi-quality-low:before{content:"󰨌"}.mdi-quality-medium:before{content:"󰨍"}.mdi-queue-first-in-last-out:before{content:"󱲯"}.mdi-quora:before{content:"󰴩"}.mdi-rabbit:before{content:"󰤇"}.mdi-rabbit-variant:before{content:"󱩡"}.mdi-rabbit-variant-outline:before{content:"󱩢"}.mdi-racing-helmet:before{content:"󰶓"}.mdi-racquetball:before{content:"󰶔"}.mdi-radar:before{content:"󰐷"}.mdi-radiator:before{content:"󰐸"}.mdi-radiator-disabled:before{content:"󰫗"}.mdi-radiator-off:before{content:"󰫘"}.mdi-radio:before{content:"󰐹"}.mdi-radio-am:before{content:"󰲾"}.mdi-radio-fm:before{content:"󰲿"}.mdi-radio-handheld:before{content:"󰐺"}.mdi-radio-off:before{content:"󱈜"}.mdi-radio-tower:before{content:"󰐻"}.mdi-radioactive:before{content:"󰐼"}.mdi-radioactive-circle:before{content:"󱡝"}.mdi-radioactive-circle-outline:before{content:"󱡞"}.mdi-radioactive-off:before{content:"󰻁"}.mdi-radiobox-blank:before{content:"󰐽"}.mdi-radiobox-indeterminate-variant:before{content:"󱱞"}.mdi-radiobox-marked:before{content:"󰐾"}.mdi-radiology-box:before{content:"󱓅"}.mdi-radiology-box-outline:before{content:"󱓆"}.mdi-radius:before{content:"󰳀"}.mdi-radius-outline:before{content:"󰳁"}.mdi-railroad-light:before{content:"󰼞"}.mdi-rake:before{content:"󱕄"}.mdi-raspberry-pi:before{content:"󰐿"}.mdi-raw:before{content:"󱨏"}.mdi-raw-off:before{content:"󱨐"}.mdi-ray-end:before{content:"󰑀"}.mdi-ray-end-arrow:before{content:"󰑁"}.mdi-ray-start:before{content:"󰑂"}.mdi-ray-start-arrow:before{content:"󰑃"}.mdi-ray-start-end:before{content:"󰑄"}.mdi-ray-start-vertex-end:before{content:"󱗘"}.mdi-ray-vertex:before{content:"󰑅"}.mdi-razor-double-edge:before{content:"󱦗"}.mdi-razor-single-edge:before{content:"󱦘"}.mdi-react:before{content:"󰜈"}.mdi-read:before{content:"󰑇"}.mdi-receipt:before{content:"󰠤"}.mdi-receipt-clock:before{content:"󱰾"}.mdi-receipt-clock-outline:before{content:"󱰿"}.mdi-receipt-outline:before{content:"󰓷"}.mdi-receipt-send:before{content:"󱱀"}.mdi-receipt-send-outline:before{content:"󱱁"}.mdi-receipt-text:before{content:"󰑉"}.mdi-receipt-text-arrow-left:before{content:"󱱂"}.mdi-receipt-text-arrow-left-outline:before{content:"󱱃"}.mdi-receipt-text-arrow-right:before{content:"󱱄"}.mdi-receipt-text-arrow-right-outline:before{content:"󱱅"}.mdi-receipt-text-check:before{content:"󱩣"}.mdi-receipt-text-check-outline:before{content:"󱩤"}.mdi-receipt-text-clock:before{content:"󱱆"}.mdi-receipt-text-clock-outline:before{content:"󱱇"}.mdi-receipt-text-edit:before{content:"󱱈"}.mdi-receipt-text-edit-outline:before{content:"󱱉"}.mdi-receipt-text-minus:before{content:"󱩥"}.mdi-receipt-text-minus-outline:before{content:"󱩦"}.mdi-receipt-text-outline:before{content:"󱧜"}.mdi-receipt-text-plus:before{content:"󱩧"}.mdi-receipt-text-plus-outline:before{content:"󱩨"}.mdi-receipt-text-remove:before{content:"󱩩"}.mdi-receipt-text-remove-outline:before{content:"󱩪"}.mdi-receipt-text-send:before{content:"󱱊"}.mdi-receipt-text-send-outline:before{content:"󱱋"}.mdi-record:before{content:"󰑊"}.mdi-record-circle:before{content:"󰻂"}.mdi-record-circle-outline:before{content:"󰻃"}.mdi-record-player:before{content:"󰦚"}.mdi-record-rec:before{content:"󰑋"}.mdi-rectangle:before{content:"󰹞"}.mdi-rectangle-outline:before{content:"󰹟"}.mdi-recycle:before{content:"󰑌"}.mdi-recycle-variant:before{content:"󱎝"}.mdi-reddit:before{content:"󰑍"}.mdi-redhat:before{content:"󱄛"}.mdi-redo:before{content:"󰑎"}.mdi-redo-variant:before{content:"󰑏"}.mdi-reflect-horizontal:before{content:"󰨎"}.mdi-reflect-vertical:before{content:"󰨏"}.mdi-refresh:before{content:"󰑐"}.mdi-refresh-auto:before{content:"󱣲"}.mdi-refresh-circle:before{content:"󱍷"}.mdi-regex:before{content:"󰑑"}.mdi-registered-trademark:before{content:"󰩧"}.mdi-reiterate:before{content:"󱖈"}.mdi-relation-many-to-many:before{content:"󱒖"}.mdi-relation-many-to-one:before{content:"󱒗"}.mdi-relation-many-to-one-or-many:before{content:"󱒘"}.mdi-relation-many-to-only-one:before{content:"󱒙"}.mdi-relation-many-to-zero-or-many:before{content:"󱒚"}.mdi-relation-many-to-zero-or-one:before{content:"󱒛"}.mdi-relation-one-or-many-to-many:before{content:"󱒜"}.mdi-relation-one-or-many-to-one:before{content:"󱒝"}.mdi-relation-one-or-many-to-one-or-many:before{content:"󱒞"}.mdi-relation-one-or-many-to-only-one:before{content:"󱒟"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"󱒠"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"󱒡"}.mdi-relation-one-to-many:before{content:"󱒢"}.mdi-relation-one-to-one:before{content:"󱒣"}.mdi-relation-one-to-one-or-many:before{content:"󱒤"}.mdi-relation-one-to-only-one:before{content:"󱒥"}.mdi-relation-one-to-zero-or-many:before{content:"󱒦"}.mdi-relation-one-to-zero-or-one:before{content:"󱒧"}.mdi-relation-only-one-to-many:before{content:"󱒨"}.mdi-relation-only-one-to-one:before{content:"󱒩"}.mdi-relation-only-one-to-one-or-many:before{content:"󱒪"}.mdi-relation-only-one-to-only-one:before{content:"󱒫"}.mdi-relation-only-one-to-zero-or-many:before{content:"󱒬"}.mdi-relation-only-one-to-zero-or-one:before{content:"󱒭"}.mdi-relation-zero-or-many-to-many:before{content:"󱒮"}.mdi-relation-zero-or-many-to-one:before{content:"󱒯"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"󱒰"}.mdi-relation-zero-or-many-to-only-one:before{content:"󱒱"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"󱒲"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"󱒳"}.mdi-relation-zero-or-one-to-many:before{content:"󱒴"}.mdi-relation-zero-or-one-to-one:before{content:"󱒵"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"󱒶"}.mdi-relation-zero-or-one-to-only-one:before{content:"󱒷"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"󱒸"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"󱒹"}.mdi-relative-scale:before{content:"󰑒"}.mdi-reload:before{content:"󰑓"}.mdi-reload-alert:before{content:"󱄋"}.mdi-reminder:before{content:"󰢌"}.mdi-remote:before{content:"󰑔"}.mdi-remote-desktop:before{content:"󰢹"}.mdi-remote-off:before{content:"󰻄"}.mdi-remote-tv:before{content:"󰻅"}.mdi-remote-tv-off:before{content:"󰻆"}.mdi-rename:before{content:"󱰘"}.mdi-rename-box:before{content:"󰑕"}.mdi-rename-box-outline:before{content:"󱰙"}.mdi-rename-outline:before{content:"󱰚"}.mdi-reorder-horizontal:before{content:"󰚈"}.mdi-reorder-vertical:before{content:"󰚉"}.mdi-repeat:before{content:"󰑖"}.mdi-repeat-off:before{content:"󰑗"}.mdi-repeat-once:before{content:"󰑘"}.mdi-repeat-variant:before{content:"󰕇"}.mdi-replay:before{content:"󰑙"}.mdi-reply:before{content:"󰑚"}.mdi-reply-all:before{content:"󰑛"}.mdi-reply-all-outline:before{content:"󰼟"}.mdi-reply-circle:before{content:"󱆮"}.mdi-reply-outline:before{content:"󰼠"}.mdi-reproduction:before{content:"󰑜"}.mdi-resistor:before{content:"󰭄"}.mdi-resistor-nodes:before{content:"󰭅"}.mdi-resize:before{content:"󰩨"}.mdi-resize-bottom-right:before{content:"󰑝"}.mdi-responsive:before{content:"󰑞"}.mdi-restart:before{content:"󰜉"}.mdi-restart-alert:before{content:"󱄌"}.mdi-restart-off:before{content:"󰶕"}.mdi-restore:before{content:"󰦛"}.mdi-restore-alert:before{content:"󱄍"}.mdi-rewind:before{content:"󰑟"}.mdi-rewind-10:before{content:"󰴪"}.mdi-rewind-15:before{content:"󱥆"}.mdi-rewind-30:before{content:"󰶖"}.mdi-rewind-45:before{content:"󱬓"}.mdi-rewind-5:before{content:"󱇹"}.mdi-rewind-60:before{content:"󱘌"}.mdi-rewind-outline:before{content:"󰜊"}.mdi-rhombus:before{content:"󰜋"}.mdi-rhombus-medium:before{content:"󰨐"}.mdi-rhombus-medium-outline:before{content:"󱓜"}.mdi-rhombus-outline:before{content:"󰜌"}.mdi-rhombus-split:before{content:"󰨑"}.mdi-rhombus-split-outline:before{content:"󱓝"}.mdi-ribbon:before{content:"󰑠"}.mdi-rice:before{content:"󰟪"}.mdi-rickshaw:before{content:"󱖻"}.mdi-rickshaw-electric:before{content:"󱖼"}.mdi-ring:before{content:"󰟫"}.mdi-rivet:before{content:"󰹠"}.mdi-road:before{content:"󰑡"}.mdi-road-variant:before{content:"󰑢"}.mdi-robber:before{content:"󱁘"}.mdi-robot:before{content:"󰚩"}.mdi-robot-angry:before{content:"󱚝"}.mdi-robot-angry-outline:before{content:"󱚞"}.mdi-robot-confused:before{content:"󱚟"}.mdi-robot-confused-outline:before{content:"󱚠"}.mdi-robot-dead:before{content:"󱚡"}.mdi-robot-dead-outline:before{content:"󱚢"}.mdi-robot-excited:before{content:"󱚣"}.mdi-robot-excited-outline:before{content:"󱚤"}.mdi-robot-happy:before{content:"󱜙"}.mdi-robot-happy-outline:before{content:"󱜚"}.mdi-robot-industrial:before{content:"󰭆"}.mdi-robot-industrial-outline:before{content:"󱨚"}.mdi-robot-love:before{content:"󱚥"}.mdi-robot-love-outline:before{content:"󱚦"}.mdi-robot-mower:before{content:"󱇷"}.mdi-robot-mower-outline:before{content:"󱇳"}.mdi-robot-off:before{content:"󱚧"}.mdi-robot-off-outline:before{content:"󱙻"}.mdi-robot-outline:before{content:"󱙺"}.mdi-robot-vacuum:before{content:"󰜍"}.mdi-robot-vacuum-alert:before{content:"󱭝"}.mdi-robot-vacuum-off:before{content:"󱰁"}.mdi-robot-vacuum-variant:before{content:"󰤈"}.mdi-robot-vacuum-variant-alert:before{content:"󱭞"}.mdi-robot-vacuum-variant-off:before{content:"󱰂"}.mdi-rocket:before{content:"󰑣"}.mdi-rocket-launch:before{content:"󱓞"}.mdi-rocket-launch-outline:before{content:"󱓟"}.mdi-rocket-outline:before{content:"󱎯"}.mdi-rodent:before{content:"󱌧"}.mdi-roller-shade:before{content:"󱩫"}.mdi-roller-shade-closed:before{content:"󱩬"}.mdi-roller-skate:before{content:"󰴫"}.mdi-roller-skate-off:before{content:"󰅅"}.mdi-rollerblade:before{content:"󰴬"}.mdi-rollerblade-off:before{content:"󰀮"}.mdi-rollupjs:before{content:"󰯀"}.mdi-rolodex:before{content:"󱪹"}.mdi-rolodex-outline:before{content:"󱪺"}.mdi-roman-numeral-1:before{content:"󱂈"}.mdi-roman-numeral-10:before{content:"󱂑"}.mdi-roman-numeral-2:before{content:"󱂉"}.mdi-roman-numeral-3:before{content:"󱂊"}.mdi-roman-numeral-4:before{content:"󱂋"}.mdi-roman-numeral-5:before{content:"󱂌"}.mdi-roman-numeral-6:before{content:"󱂍"}.mdi-roman-numeral-7:before{content:"󱂎"}.mdi-roman-numeral-8:before{content:"󱂏"}.mdi-roman-numeral-9:before{content:"󱂐"}.mdi-room-service:before{content:"󰢍"}.mdi-room-service-outline:before{content:"󰶗"}.mdi-rotate-360:before{content:"󱦙"}.mdi-rotate-3d:before{content:"󰻇"}.mdi-rotate-3d-variant:before{content:"󰑤"}.mdi-rotate-left:before{content:"󰑥"}.mdi-rotate-left-variant:before{content:"󰑦"}.mdi-rotate-orbit:before{content:"󰶘"}.mdi-rotate-right:before{content:"󰑧"}.mdi-rotate-right-variant:before{content:"󰑨"}.mdi-rounded-corner:before{content:"󰘇"}.mdi-router:before{content:"󱇢"}.mdi-router-network:before{content:"󱂇"}.mdi-router-network-wireless:before{content:"󱲗"}.mdi-router-wireless:before{content:"󰑩"}.mdi-router-wireless-off:before{content:"󱖣"}.mdi-router-wireless-settings:before{content:"󰩩"}.mdi-routes:before{content:"󰑪"}.mdi-routes-clock:before{content:"󱁙"}.mdi-rowing:before{content:"󰘈"}.mdi-rss:before{content:"󰑫"}.mdi-rss-box:before{content:"󰑬"}.mdi-rss-off:before{content:"󰼡"}.mdi-rug:before{content:"󱑵"}.mdi-rugby:before{content:"󰶙"}.mdi-ruler:before{content:"󰑭"}.mdi-ruler-square:before{content:"󰳂"}.mdi-ruler-square-compass:before{content:"󰺾"}.mdi-run:before{content:"󰜎"}.mdi-run-fast:before{content:"󰑮"}.mdi-rv-truck:before{content:"󱇔"}.mdi-sack:before{content:"󰴮"}.mdi-sack-outline:before{content:"󱱌"}.mdi-sack-percent:before{content:"󰴯"}.mdi-safe:before{content:"󰩪"}.mdi-safe-square:before{content:"󱉼"}.mdi-safe-square-outline:before{content:"󱉽"}.mdi-safety-goggles:before{content:"󰴰"}.mdi-sail-boat:before{content:"󰻈"}.mdi-sail-boat-sink:before{content:"󱫯"}.mdi-sale:before{content:"󰑯"}.mdi-sale-outline:before{content:"󱨆"}.mdi-salesforce:before{content:"󰢎"}.mdi-sass:before{content:"󰟬"}.mdi-satellite:before{content:"󰑰"}.mdi-satellite-uplink:before{content:"󰤉"}.mdi-satellite-variant:before{content:"󰑱"}.mdi-sausage:before{content:"󰢺"}.mdi-sausage-off:before{content:"󱞉"}.mdi-saw-blade:before{content:"󰹡"}.mdi-sawtooth-wave:before{content:"󱑺"}.mdi-saxophone:before{content:"󰘉"}.mdi-scale:before{content:"󰑲"}.mdi-scale-balance:before{content:"󰗑"}.mdi-scale-bathroom:before{content:"󰑳"}.mdi-scale-off:before{content:"󱁚"}.mdi-scale-unbalanced:before{content:"󱦸"}.mdi-scan-helper:before{content:"󱏘"}.mdi-scanner:before{content:"󰚫"}.mdi-scanner-off:before{content:"󰤊"}.mdi-scatter-plot:before{content:"󰻉"}.mdi-scatter-plot-outline:before{content:"󰻊"}.mdi-scent:before{content:"󱥘"}.mdi-scent-off:before{content:"󱥙"}.mdi-school:before{content:"󰑴"}.mdi-school-outline:before{content:"󱆀"}.mdi-scissors-cutting:before{content:"󰩫"}.mdi-scooter:before{content:"󱖽"}.mdi-scooter-electric:before{content:"󱖾"}.mdi-scoreboard:before{content:"󱉾"}.mdi-scoreboard-outline:before{content:"󱉿"}.mdi-screen-rotation:before{content:"󰑵"}.mdi-screen-rotation-lock:before{content:"󰑸"}.mdi-screw-flat-top:before{content:"󰷳"}.mdi-screw-lag:before{content:"󰷴"}.mdi-screw-machine-flat-top:before{content:"󰷵"}.mdi-screw-machine-round-top:before{content:"󰷶"}.mdi-screw-round-top:before{content:"󰷷"}.mdi-screwdriver:before{content:"󰑶"}.mdi-script:before{content:"󰯁"}.mdi-script-outline:before{content:"󰑷"}.mdi-script-text:before{content:"󰯂"}.mdi-script-text-key:before{content:"󱜥"}.mdi-script-text-key-outline:before{content:"󱜦"}.mdi-script-text-outline:before{content:"󰯃"}.mdi-script-text-play:before{content:"󱜧"}.mdi-script-text-play-outline:before{content:"󱜨"}.mdi-sd:before{content:"󰑹"}.mdi-seal:before{content:"󰑺"}.mdi-seal-variant:before{content:"󰿙"}.mdi-search-web:before{content:"󰜏"}.mdi-seat:before{content:"󰳃"}.mdi-seat-flat:before{content:"󰑻"}.mdi-seat-flat-angled:before{content:"󰑼"}.mdi-seat-individual-suite:before{content:"󰑽"}.mdi-seat-legroom-extra:before{content:"󰑾"}.mdi-seat-legroom-normal:before{content:"󰑿"}.mdi-seat-legroom-reduced:before{content:"󰒀"}.mdi-seat-outline:before{content:"󰳄"}.mdi-seat-passenger:before{content:"󱉉"}.mdi-seat-recline-extra:before{content:"󰒁"}.mdi-seat-recline-normal:before{content:"󰒂"}.mdi-seatbelt:before{content:"󰳅"}.mdi-security:before{content:"󰒃"}.mdi-security-network:before{content:"󰒄"}.mdi-seed:before{content:"󰹢"}.mdi-seed-off:before{content:"󱏽"}.mdi-seed-off-outline:before{content:"󱏾"}.mdi-seed-outline:before{content:"󰹣"}.mdi-seed-plus:before{content:"󱩭"}.mdi-seed-plus-outline:before{content:"󱩮"}.mdi-seesaw:before{content:"󱖤"}.mdi-segment:before{content:"󰻋"}.mdi-select:before{content:"󰒅"}.mdi-select-all:before{content:"󰒆"}.mdi-select-arrow-down:before{content:"󱭙"}.mdi-select-arrow-up:before{content:"󱭘"}.mdi-select-color:before{content:"󰴱"}.mdi-select-compare:before{content:"󰫙"}.mdi-select-drag:before{content:"󰩬"}.mdi-select-group:before{content:"󰾂"}.mdi-select-inverse:before{content:"󰒇"}.mdi-select-marker:before{content:"󱊀"}.mdi-select-multiple:before{content:"󱊁"}.mdi-select-multiple-marker:before{content:"󱊂"}.mdi-select-off:before{content:"󰒈"}.mdi-select-place:before{content:"󰿚"}.mdi-select-remove:before{content:"󱟁"}.mdi-select-search:before{content:"󱈄"}.mdi-selection:before{content:"󰒉"}.mdi-selection-drag:before{content:"󰩭"}.mdi-selection-ellipse:before{content:"󰴲"}.mdi-selection-ellipse-arrow-inside:before{content:"󰼢"}.mdi-selection-ellipse-remove:before{content:"󱟂"}.mdi-selection-marker:before{content:"󱊃"}.mdi-selection-multiple:before{content:"󱊅"}.mdi-selection-multiple-marker:before{content:"󱊄"}.mdi-selection-off:before{content:"󰝷"}.mdi-selection-remove:before{content:"󱟃"}.mdi-selection-search:before{content:"󱈅"}.mdi-semantic-web:before{content:"󱌖"}.mdi-send:before{content:"󰒊"}.mdi-send-check:before{content:"󱅡"}.mdi-send-check-outline:before{content:"󱅢"}.mdi-send-circle:before{content:"󰷸"}.mdi-send-circle-outline:before{content:"󰷹"}.mdi-send-clock:before{content:"󱅣"}.mdi-send-clock-outline:before{content:"󱅤"}.mdi-send-lock:before{content:"󰟭"}.mdi-send-lock-outline:before{content:"󱅦"}.mdi-send-outline:before{content:"󱅥"}.mdi-send-variant:before{content:"󱱍"}.mdi-send-variant-clock:before{content:"󱱾"}.mdi-send-variant-clock-outline:before{content:"󱱿"}.mdi-send-variant-outline:before{content:"󱱎"}.mdi-serial-port:before{content:"󰙜"}.mdi-server:before{content:"󰒋"}.mdi-server-minus:before{content:"󰒌"}.mdi-server-minus-outline:before{content:"󱲘"}.mdi-server-network:before{content:"󰒍"}.mdi-server-network-off:before{content:"󰒎"}.mdi-server-network-outline:before{content:"󱲙"}.mdi-server-off:before{content:"󰒏"}.mdi-server-outline:before{content:"󱲚"}.mdi-server-plus:before{content:"󰒐"}.mdi-server-plus-outline:before{content:"󱲛"}.mdi-server-remove:before{content:"󰒑"}.mdi-server-security:before{content:"󰒒"}.mdi-set-all:before{content:"󰝸"}.mdi-set-center:before{content:"󰝹"}.mdi-set-center-right:before{content:"󰝺"}.mdi-set-left:before{content:"󰝻"}.mdi-set-left-center:before{content:"󰝼"}.mdi-set-left-right:before{content:"󰝽"}.mdi-set-merge:before{content:"󱓠"}.mdi-set-none:before{content:"󰝾"}.mdi-set-right:before{content:"󰝿"}.mdi-set-split:before{content:"󱓡"}.mdi-set-square:before{content:"󱑝"}.mdi-set-top-box:before{content:"󰦟"}.mdi-settings-helper:before{content:"󰩮"}.mdi-shaker:before{content:"󱄎"}.mdi-shaker-outline:before{content:"󱄏"}.mdi-shape:before{content:"󰠱"}.mdi-shape-circle-plus:before{content:"󰙝"}.mdi-shape-outline:before{content:"󰠲"}.mdi-shape-oval-plus:before{content:"󱇺"}.mdi-shape-plus:before{content:"󰒕"}.mdi-shape-plus-outline:before{content:"󱱏"}.mdi-shape-polygon-plus:before{content:"󰙞"}.mdi-shape-rectangle-plus:before{content:"󰙟"}.mdi-shape-square-plus:before{content:"󰙠"}.mdi-shape-square-rounded-plus:before{content:"󱓺"}.mdi-share:before{content:"󰒖"}.mdi-share-all:before{content:"󱇴"}.mdi-share-all-outline:before{content:"󱇵"}.mdi-share-circle:before{content:"󱆭"}.mdi-share-off:before{content:"󰼣"}.mdi-share-off-outline:before{content:"󰼤"}.mdi-share-outline:before{content:"󰤲"}.mdi-share-variant:before{content:"󰒗"}.mdi-share-variant-outline:before{content:"󱔔"}.mdi-shark:before{content:"󱢺"}.mdi-shark-fin:before{content:"󱙳"}.mdi-shark-fin-outline:before{content:"󱙴"}.mdi-shark-off:before{content:"󱢻"}.mdi-sheep:before{content:"󰳆"}.mdi-shield:before{content:"󰒘"}.mdi-shield-account:before{content:"󰢏"}.mdi-shield-account-outline:before{content:"󰨒"}.mdi-shield-account-variant:before{content:"󱖧"}.mdi-shield-account-variant-outline:before{content:"󱖨"}.mdi-shield-airplane:before{content:"󰚻"}.mdi-shield-airplane-outline:before{content:"󰳇"}.mdi-shield-alert:before{content:"󰻌"}.mdi-shield-alert-outline:before{content:"󰻍"}.mdi-shield-bug:before{content:"󱏚"}.mdi-shield-bug-outline:before{content:"󱏛"}.mdi-shield-car:before{content:"󰾃"}.mdi-shield-check:before{content:"󰕥"}.mdi-shield-check-outline:before{content:"󰳈"}.mdi-shield-cross:before{content:"󰳉"}.mdi-shield-cross-outline:before{content:"󰳊"}.mdi-shield-crown:before{content:"󱢼"}.mdi-shield-crown-outline:before{content:"󱢽"}.mdi-shield-edit:before{content:"󱆠"}.mdi-shield-edit-outline:before{content:"󱆡"}.mdi-shield-half:before{content:"󱍠"}.mdi-shield-half-full:before{content:"󰞀"}.mdi-shield-home:before{content:"󰚊"}.mdi-shield-home-outline:before{content:"󰳋"}.mdi-shield-key:before{content:"󰯄"}.mdi-shield-key-outline:before{content:"󰯅"}.mdi-shield-link-variant:before{content:"󰴳"}.mdi-shield-link-variant-outline:before{content:"󰴴"}.mdi-shield-lock:before{content:"󰦝"}.mdi-shield-lock-open:before{content:"󱦚"}.mdi-shield-lock-open-outline:before{content:"󱦛"}.mdi-shield-lock-outline:before{content:"󰳌"}.mdi-shield-moon:before{content:"󱠨"}.mdi-shield-moon-outline:before{content:"󱠩"}.mdi-shield-off:before{content:"󰦞"}.mdi-shield-off-outline:before{content:"󰦜"}.mdi-shield-outline:before{content:"󰒙"}.mdi-shield-plus:before{content:"󰫚"}.mdi-shield-plus-outline:before{content:"󰫛"}.mdi-shield-refresh:before{content:"󰂪"}.mdi-shield-refresh-outline:before{content:"󰇠"}.mdi-shield-remove:before{content:"󰫜"}.mdi-shield-remove-outline:before{content:"󰫝"}.mdi-shield-search:before{content:"󰶚"}.mdi-shield-star:before{content:"󱄻"}.mdi-shield-star-outline:before{content:"󱄼"}.mdi-shield-sun:before{content:"󱁝"}.mdi-shield-sun-outline:before{content:"󱁞"}.mdi-shield-sword:before{content:"󱢾"}.mdi-shield-sword-outline:before{content:"󱢿"}.mdi-shield-sync:before{content:"󱆢"}.mdi-shield-sync-outline:before{content:"󱆣"}.mdi-shimmer:before{content:"󱕅"}.mdi-ship-wheel:before{content:"󰠳"}.mdi-shipping-pallet:before{content:"󱡎"}.mdi-shoe-ballet:before{content:"󱗊"}.mdi-shoe-cleat:before{content:"󱗇"}.mdi-shoe-formal:before{content:"󰭇"}.mdi-shoe-heel:before{content:"󰭈"}.mdi-shoe-print:before{content:"󰷺"}.mdi-shoe-sneaker:before{content:"󱗈"}.mdi-shopping:before{content:"󰒚"}.mdi-shopping-music:before{content:"󰒛"}.mdi-shopping-outline:before{content:"󱇕"}.mdi-shopping-search:before{content:"󰾄"}.mdi-shopping-search-outline:before{content:"󱩯"}.mdi-shore:before{content:"󱓹"}.mdi-shovel:before{content:"󰜐"}.mdi-shovel-off:before{content:"󰜑"}.mdi-shower:before{content:"󰦠"}.mdi-shower-head:before{content:"󰦡"}.mdi-shredder:before{content:"󰒜"}.mdi-shuffle:before{content:"󰒝"}.mdi-shuffle-disabled:before{content:"󰒞"}.mdi-shuffle-variant:before{content:"󰒟"}.mdi-shuriken:before{content:"󱍿"}.mdi-sickle:before{content:"󱣀"}.mdi-sigma:before{content:"󰒠"}.mdi-sigma-lower:before{content:"󰘫"}.mdi-sign-caution:before{content:"󰒡"}.mdi-sign-direction:before{content:"󰞁"}.mdi-sign-direction-minus:before{content:"󱀀"}.mdi-sign-direction-plus:before{content:"󰿜"}.mdi-sign-direction-remove:before{content:"󰿝"}.mdi-sign-language:before{content:"󱭍"}.mdi-sign-language-outline:before{content:"󱭎"}.mdi-sign-pole:before{content:"󱓸"}.mdi-sign-real-estate:before{content:"󱄘"}.mdi-sign-text:before{content:"󰞂"}.mdi-sign-yield:before{content:"󱮯"}.mdi-signal:before{content:"󰒢"}.mdi-signal-2g:before{content:"󰜒"}.mdi-signal-3g:before{content:"󰜓"}.mdi-signal-4g:before{content:"󰜔"}.mdi-signal-5g:before{content:"󰩯"}.mdi-signal-cellular-1:before{content:"󰢼"}.mdi-signal-cellular-2:before{content:"󰢽"}.mdi-signal-cellular-3:before{content:"󰢾"}.mdi-signal-cellular-outline:before{content:"󰢿"}.mdi-signal-distance-variant:before{content:"󰹤"}.mdi-signal-hspa:before{content:"󰜕"}.mdi-signal-hspa-plus:before{content:"󰜖"}.mdi-signal-off:before{content:"󰞃"}.mdi-signal-variant:before{content:"󰘊"}.mdi-signature:before{content:"󰷻"}.mdi-signature-freehand:before{content:"󰷼"}.mdi-signature-image:before{content:"󰷽"}.mdi-signature-text:before{content:"󰷾"}.mdi-silo:before{content:"󱮟"}.mdi-silo-outline:before{content:"󰭉"}.mdi-silverware:before{content:"󰒣"}.mdi-silverware-clean:before{content:"󰿞"}.mdi-silverware-fork:before{content:"󰒤"}.mdi-silverware-fork-knife:before{content:"󰩰"}.mdi-silverware-spoon:before{content:"󰒥"}.mdi-silverware-variant:before{content:"󰒦"}.mdi-sim:before{content:"󰒧"}.mdi-sim-alert:before{content:"󰒨"}.mdi-sim-alert-outline:before{content:"󱗓"}.mdi-sim-off:before{content:"󰒩"}.mdi-sim-off-outline:before{content:"󱗔"}.mdi-sim-outline:before{content:"󱗕"}.mdi-simple-icons:before{content:"󱌝"}.mdi-sina-weibo:before{content:"󰫟"}.mdi-sine-wave:before{content:"󰥛"}.mdi-sitemap:before{content:"󰒪"}.mdi-sitemap-outline:before{content:"󱦜"}.mdi-size-l:before{content:"󱎦"}.mdi-size-m:before{content:"󱎥"}.mdi-size-s:before{content:"󱎤"}.mdi-size-xl:before{content:"󱎧"}.mdi-size-xs:before{content:"󱎣"}.mdi-size-xxl:before{content:"󱎨"}.mdi-size-xxs:before{content:"󱎢"}.mdi-size-xxxl:before{content:"󱎩"}.mdi-skate:before{content:"󰴵"}.mdi-skate-off:before{content:"󰚙"}.mdi-skateboard:before{content:"󱓂"}.mdi-skateboarding:before{content:"󰔁"}.mdi-skew-less:before{content:"󰴶"}.mdi-skew-more:before{content:"󰴷"}.mdi-ski:before{content:"󱌄"}.mdi-ski-cross-country:before{content:"󱌅"}.mdi-ski-water:before{content:"󱌆"}.mdi-skip-backward:before{content:"󰒫"}.mdi-skip-backward-outline:before{content:"󰼥"}.mdi-skip-forward:before{content:"󰒬"}.mdi-skip-forward-outline:before{content:"󰼦"}.mdi-skip-next:before{content:"󰒭"}.mdi-skip-next-circle:before{content:"󰙡"}.mdi-skip-next-circle-outline:before{content:"󰙢"}.mdi-skip-next-outline:before{content:"󰼧"}.mdi-skip-previous:before{content:"󰒮"}.mdi-skip-previous-circle:before{content:"󰙣"}.mdi-skip-previous-circle-outline:before{content:"󰙤"}.mdi-skip-previous-outline:before{content:"󰼨"}.mdi-skull:before{content:"󰚌"}.mdi-skull-crossbones:before{content:"󰯆"}.mdi-skull-crossbones-outline:before{content:"󰯇"}.mdi-skull-outline:before{content:"󰯈"}.mdi-skull-scan:before{content:"󱓇"}.mdi-skull-scan-outline:before{content:"󱓈"}.mdi-skype:before{content:"󰒯"}.mdi-skype-business:before{content:"󰒰"}.mdi-slack:before{content:"󰒱"}.mdi-slash-forward:before{content:"󰿟"}.mdi-slash-forward-box:before{content:"󰿠"}.mdi-sledding:before{content:"󰐛"}.mdi-sleep:before{content:"󰒲"}.mdi-sleep-off:before{content:"󰒳"}.mdi-slide:before{content:"󱖥"}.mdi-slope-downhill:before{content:"󰷿"}.mdi-slope-uphill:before{content:"󰸀"}.mdi-slot-machine:before{content:"󱄔"}.mdi-slot-machine-outline:before{content:"󱄕"}.mdi-smart-card:before{content:"󱂽"}.mdi-smart-card-off:before{content:"󱣷"}.mdi-smart-card-off-outline:before{content:"󱣸"}.mdi-smart-card-outline:before{content:"󱂾"}.mdi-smart-card-reader:before{content:"󱂿"}.mdi-smart-card-reader-outline:before{content:"󱃀"}.mdi-smog:before{content:"󰩱"}.mdi-smoke:before{content:"󱞙"}.mdi-smoke-detector:before{content:"󰎒"}.mdi-smoke-detector-alert:before{content:"󱤮"}.mdi-smoke-detector-alert-outline:before{content:"󱤯"}.mdi-smoke-detector-off:before{content:"󱠉"}.mdi-smoke-detector-off-outline:before{content:"󱠊"}.mdi-smoke-detector-outline:before{content:"󱠈"}.mdi-smoke-detector-variant:before{content:"󱠋"}.mdi-smoke-detector-variant-alert:before{content:"󱤰"}.mdi-smoke-detector-variant-off:before{content:"󱠌"}.mdi-smoking:before{content:"󰒴"}.mdi-smoking-off:before{content:"󰒵"}.mdi-smoking-pipe:before{content:"󱐍"}.mdi-smoking-pipe-off:before{content:"󱐨"}.mdi-snail:before{content:"󱙷"}.mdi-snake:before{content:"󱔎"}.mdi-snapchat:before{content:"󰒶"}.mdi-snowboard:before{content:"󱌇"}.mdi-snowflake:before{content:"󰜗"}.mdi-snowflake-alert:before{content:"󰼩"}.mdi-snowflake-check:before{content:"󱩰"}.mdi-snowflake-melt:before{content:"󱋋"}.mdi-snowflake-off:before{content:"󱓣"}.mdi-snowflake-thermometer:before{content:"󱩱"}.mdi-snowflake-variant:before{content:"󰼪"}.mdi-snowman:before{content:"󰒷"}.mdi-snowmobile:before{content:"󰛝"}.mdi-snowshoeing:before{content:"󱩲"}.mdi-soccer:before{content:"󰒸"}.mdi-soccer-field:before{content:"󰠴"}.mdi-social-distance-2-meters:before{content:"󱕹"}.mdi-social-distance-6-feet:before{content:"󱕺"}.mdi-sofa:before{content:"󰒹"}.mdi-sofa-outline:before{content:"󱕭"}.mdi-sofa-single:before{content:"󱕮"}.mdi-sofa-single-outline:before{content:"󱕯"}.mdi-solar-panel:before{content:"󰶛"}.mdi-solar-panel-large:before{content:"󰶜"}.mdi-solar-power:before{content:"󰩲"}.mdi-solar-power-variant:before{content:"󱩳"}.mdi-solar-power-variant-outline:before{content:"󱩴"}.mdi-soldering-iron:before{content:"󱂒"}.mdi-solid:before{content:"󰚍"}.mdi-sony-playstation:before{content:"󰐔"}.mdi-sort:before{content:"󰒺"}.mdi-sort-alphabetical-ascending:before{content:"󰖽"}.mdi-sort-alphabetical-ascending-variant:before{content:"󱅈"}.mdi-sort-alphabetical-descending:before{content:"󰖿"}.mdi-sort-alphabetical-descending-variant:before{content:"󱅉"}.mdi-sort-alphabetical-variant:before{content:"󰒻"}.mdi-sort-ascending:before{content:"󰒼"}.mdi-sort-bool-ascending:before{content:"󱎅"}.mdi-sort-bool-ascending-variant:before{content:"󱎆"}.mdi-sort-bool-descending:before{content:"󱎇"}.mdi-sort-bool-descending-variant:before{content:"󱎈"}.mdi-sort-calendar-ascending:before{content:"󱕇"}.mdi-sort-calendar-descending:before{content:"󱕈"}.mdi-sort-clock-ascending:before{content:"󱕉"}.mdi-sort-clock-ascending-outline:before{content:"󱕊"}.mdi-sort-clock-descending:before{content:"󱕋"}.mdi-sort-clock-descending-outline:before{content:"󱕌"}.mdi-sort-descending:before{content:"󰒽"}.mdi-sort-numeric-ascending:before{content:"󱎉"}.mdi-sort-numeric-ascending-variant:before{content:"󰤍"}.mdi-sort-numeric-descending:before{content:"󱎊"}.mdi-sort-numeric-descending-variant:before{content:"󰫒"}.mdi-sort-numeric-variant:before{content:"󰒾"}.mdi-sort-reverse-variant:before{content:"󰌼"}.mdi-sort-variant:before{content:"󰒿"}.mdi-sort-variant-lock:before{content:"󰳍"}.mdi-sort-variant-lock-open:before{content:"󰳎"}.mdi-sort-variant-off:before{content:"󱪻"}.mdi-sort-variant-remove:before{content:"󱅇"}.mdi-soundbar:before{content:"󱟛"}.mdi-soundcloud:before{content:"󰓀"}.mdi-source-branch:before{content:"󰘬"}.mdi-source-branch-check:before{content:"󱓏"}.mdi-source-branch-minus:before{content:"󱓋"}.mdi-source-branch-plus:before{content:"󱓊"}.mdi-source-branch-refresh:before{content:"󱓍"}.mdi-source-branch-remove:before{content:"󱓌"}.mdi-source-branch-sync:before{content:"󱓎"}.mdi-source-commit:before{content:"󰜘"}.mdi-source-commit-end:before{content:"󰜙"}.mdi-source-commit-end-local:before{content:"󰜚"}.mdi-source-commit-local:before{content:"󰜛"}.mdi-source-commit-next-local:before{content:"󰜜"}.mdi-source-commit-start:before{content:"󰜝"}.mdi-source-commit-start-next-local:before{content:"󰜞"}.mdi-source-fork:before{content:"󰓁"}.mdi-source-merge:before{content:"󰘭"}.mdi-source-pull:before{content:"󰓂"}.mdi-source-repository:before{content:"󰳏"}.mdi-source-repository-multiple:before{content:"󰳐"}.mdi-soy-sauce:before{content:"󰟮"}.mdi-soy-sauce-off:before{content:"󱏼"}.mdi-spa:before{content:"󰳑"}.mdi-spa-outline:before{content:"󰳒"}.mdi-space-invaders:before{content:"󰯉"}.mdi-space-station:before{content:"󱎃"}.mdi-spade:before{content:"󰹥"}.mdi-speaker:before{content:"󰓃"}.mdi-speaker-bluetooth:before{content:"󰦢"}.mdi-speaker-message:before{content:"󱬑"}.mdi-speaker-multiple:before{content:"󰴸"}.mdi-speaker-off:before{content:"󰓄"}.mdi-speaker-pause:before{content:"󱭳"}.mdi-speaker-play:before{content:"󱭲"}.mdi-speaker-stop:before{content:"󱭴"}.mdi-speaker-wireless:before{content:"󰜟"}.mdi-spear:before{content:"󱡅"}.mdi-speedometer:before{content:"󰓅"}.mdi-speedometer-medium:before{content:"󰾅"}.mdi-speedometer-slow:before{content:"󰾆"}.mdi-spellcheck:before{content:"󰓆"}.mdi-sphere:before{content:"󱥔"}.mdi-sphere-off:before{content:"󱥕"}.mdi-spider:before{content:"󱇪"}.mdi-spider-outline:before{content:"󱱵"}.mdi-spider-thread:before{content:"󱇫"}.mdi-spider-web:before{content:"󰯊"}.mdi-spirit-level:before{content:"󱓱"}.mdi-spoon-sugar:before{content:"󱐩"}.mdi-spotify:before{content:"󰓇"}.mdi-spotlight:before{content:"󰓈"}.mdi-spotlight-beam:before{content:"󰓉"}.mdi-spray:before{content:"󰙥"}.mdi-spray-bottle:before{content:"󰫠"}.mdi-sprinkler:before{content:"󱁟"}.mdi-sprinkler-fire:before{content:"󱦝"}.mdi-sprinkler-variant:before{content:"󱁠"}.mdi-sprout:before{content:"󰹦"}.mdi-sprout-outline:before{content:"󰹧"}.mdi-square:before{content:"󰝤"}.mdi-square-circle:before{content:"󱔀"}.mdi-square-circle-outline:before{content:"󱱐"}.mdi-square-edit-outline:before{content:"󰤌"}.mdi-square-medium:before{content:"󰨓"}.mdi-square-medium-outline:before{content:"󰨔"}.mdi-square-off:before{content:"󱋮"}.mdi-square-off-outline:before{content:"󱋯"}.mdi-square-opacity:before{content:"󱡔"}.mdi-square-outline:before{content:"󰝣"}.mdi-square-root:before{content:"󰞄"}.mdi-square-root-box:before{content:"󰦣"}.mdi-square-rounded:before{content:"󱓻"}.mdi-square-rounded-badge:before{content:"󱨇"}.mdi-square-rounded-badge-outline:before{content:"󱨈"}.mdi-square-rounded-outline:before{content:"󱓼"}.mdi-square-small:before{content:"󰨕"}.mdi-square-wave:before{content:"󱑻"}.mdi-squeegee:before{content:"󰫡"}.mdi-ssh:before{content:"󰣀"}.mdi-stack-exchange:before{content:"󰘋"}.mdi-stack-overflow:before{content:"󰓌"}.mdi-stackpath:before{content:"󰍙"}.mdi-stadium:before{content:"󰿹"}.mdi-stadium-outline:before{content:"󱬃"}.mdi-stadium-variant:before{content:"󰜠"}.mdi-stairs:before{content:"󰓍"}.mdi-stairs-box:before{content:"󱎞"}.mdi-stairs-down:before{content:"󱊾"}.mdi-stairs-up:before{content:"󱊽"}.mdi-stamper:before{content:"󰴹"}.mdi-standard-definition:before{content:"󰟯"}.mdi-star:before{content:"󰓎"}.mdi-star-box:before{content:"󰩳"}.mdi-star-box-multiple:before{content:"󱊆"}.mdi-star-box-multiple-outline:before{content:"󱊇"}.mdi-star-box-outline:before{content:"󰩴"}.mdi-star-check:before{content:"󱕦"}.mdi-star-check-outline:before{content:"󱕪"}.mdi-star-circle:before{content:"󰓏"}.mdi-star-circle-outline:before{content:"󰦤"}.mdi-star-cog:before{content:"󱙨"}.mdi-star-cog-outline:before{content:"󱙩"}.mdi-star-crescent:before{content:"󰥹"}.mdi-star-david:before{content:"󰥺"}.mdi-star-face:before{content:"󰦥"}.mdi-star-four-points:before{content:"󰫢"}.mdi-star-four-points-box:before{content:"󱱑"}.mdi-star-four-points-box-outline:before{content:"󱱒"}.mdi-star-four-points-circle:before{content:"󱱓"}.mdi-star-four-points-circle-outline:before{content:"󱱔"}.mdi-star-four-points-outline:before{content:"󰫣"}.mdi-star-four-points-small:before{content:"󱱕"}.mdi-star-half:before{content:"󰉆"}.mdi-star-half-full:before{content:"󰓐"}.mdi-star-minus:before{content:"󱕤"}.mdi-star-minus-outline:before{content:"󱕨"}.mdi-star-off:before{content:"󰓑"}.mdi-star-off-outline:before{content:"󱕛"}.mdi-star-outline:before{content:"󰓒"}.mdi-star-plus:before{content:"󱕣"}.mdi-star-plus-outline:before{content:"󱕧"}.mdi-star-remove:before{content:"󱕥"}.mdi-star-remove-outline:before{content:"󱕩"}.mdi-star-settings:before{content:"󱙪"}.mdi-star-settings-outline:before{content:"󱙫"}.mdi-star-shooting:before{content:"󱝁"}.mdi-star-shooting-outline:before{content:"󱝂"}.mdi-star-three-points:before{content:"󰫤"}.mdi-star-three-points-outline:before{content:"󰫥"}.mdi-state-machine:before{content:"󱇯"}.mdi-steam:before{content:"󰓓"}.mdi-steering:before{content:"󰓔"}.mdi-steering-off:before{content:"󰤎"}.mdi-step-backward:before{content:"󰓕"}.mdi-step-backward-2:before{content:"󰓖"}.mdi-step-forward:before{content:"󰓗"}.mdi-step-forward-2:before{content:"󰓘"}.mdi-stethoscope:before{content:"󰓙"}.mdi-sticker:before{content:"󱍤"}.mdi-sticker-alert:before{content:"󱍥"}.mdi-sticker-alert-outline:before{content:"󱍦"}.mdi-sticker-check:before{content:"󱍧"}.mdi-sticker-check-outline:before{content:"󱍨"}.mdi-sticker-circle-outline:before{content:"󰗐"}.mdi-sticker-emoji:before{content:"󰞅"}.mdi-sticker-minus:before{content:"󱍩"}.mdi-sticker-minus-outline:before{content:"󱍪"}.mdi-sticker-outline:before{content:"󱍫"}.mdi-sticker-plus:before{content:"󱍬"}.mdi-sticker-plus-outline:before{content:"󱍭"}.mdi-sticker-remove:before{content:"󱍮"}.mdi-sticker-remove-outline:before{content:"󱍯"}.mdi-sticker-text:before{content:"󱞎"}.mdi-sticker-text-outline:before{content:"󱞏"}.mdi-stocking:before{content:"󰓚"}.mdi-stomach:before{content:"󱂓"}.mdi-stool:before{content:"󱥝"}.mdi-stool-outline:before{content:"󱥞"}.mdi-stop:before{content:"󰓛"}.mdi-stop-circle:before{content:"󰙦"}.mdi-stop-circle-outline:before{content:"󰙧"}.mdi-storage-tank:before{content:"󱩵"}.mdi-storage-tank-outline:before{content:"󱩶"}.mdi-store:before{content:"󰓜"}.mdi-store-24-hour:before{content:"󰓝"}.mdi-store-alert:before{content:"󱣁"}.mdi-store-alert-outline:before{content:"󱣂"}.mdi-store-check:before{content:"󱣃"}.mdi-store-check-outline:before{content:"󱣄"}.mdi-store-clock:before{content:"󱣅"}.mdi-store-clock-outline:before{content:"󱣆"}.mdi-store-cog:before{content:"󱣇"}.mdi-store-cog-outline:before{content:"󱣈"}.mdi-store-edit:before{content:"󱣉"}.mdi-store-edit-outline:before{content:"󱣊"}.mdi-store-marker:before{content:"󱣋"}.mdi-store-marker-outline:before{content:"󱣌"}.mdi-store-minus:before{content:"󱙞"}.mdi-store-minus-outline:before{content:"󱣍"}.mdi-store-off:before{content:"󱣎"}.mdi-store-off-outline:before{content:"󱣏"}.mdi-store-outline:before{content:"󱍡"}.mdi-store-plus:before{content:"󱙟"}.mdi-store-plus-outline:before{content:"󱣐"}.mdi-store-remove:before{content:"󱙠"}.mdi-store-remove-outline:before{content:"󱣑"}.mdi-store-search:before{content:"󱣒"}.mdi-store-search-outline:before{content:"󱣓"}.mdi-store-settings:before{content:"󱣔"}.mdi-store-settings-outline:before{content:"󱣕"}.mdi-storefront:before{content:"󰟇"}.mdi-storefront-check:before{content:"󱭽"}.mdi-storefront-check-outline:before{content:"󱭾"}.mdi-storefront-edit:before{content:"󱭿"}.mdi-storefront-edit-outline:before{content:"󱮀"}.mdi-storefront-minus:before{content:"󱮃"}.mdi-storefront-minus-outline:before{content:"󱮄"}.mdi-storefront-outline:before{content:"󱃁"}.mdi-storefront-plus:before{content:"󱮁"}.mdi-storefront-plus-outline:before{content:"󱮂"}.mdi-storefront-remove:before{content:"󱮅"}.mdi-storefront-remove-outline:before{content:"󱮆"}.mdi-stove:before{content:"󰓞"}.mdi-strategy:before{content:"󱇖"}.mdi-stretch-to-page:before{content:"󰼫"}.mdi-stretch-to-page-outline:before{content:"󰼬"}.mdi-string-lights:before{content:"󱊺"}.mdi-string-lights-off:before{content:"󱊻"}.mdi-subdirectory-arrow-left:before{content:"󰘌"}.mdi-subdirectory-arrow-right:before{content:"󰘍"}.mdi-submarine:before{content:"󱕬"}.mdi-subtitles:before{content:"󰨖"}.mdi-subtitles-outline:before{content:"󰨗"}.mdi-subway:before{content:"󰚬"}.mdi-subway-alert-variant:before{content:"󰶝"}.mdi-subway-variant:before{content:"󰓟"}.mdi-summit:before{content:"󰞆"}.mdi-sun-angle:before{content:"󱬧"}.mdi-sun-angle-outline:before{content:"󱬨"}.mdi-sun-clock:before{content:"󱩷"}.mdi-sun-clock-outline:before{content:"󱩸"}.mdi-sun-compass:before{content:"󱦥"}.mdi-sun-snowflake:before{content:"󱞖"}.mdi-sun-snowflake-variant:before{content:"󱩹"}.mdi-sun-thermometer:before{content:"󱣖"}.mdi-sun-thermometer-outline:before{content:"󱣗"}.mdi-sun-wireless:before{content:"󱟾"}.mdi-sun-wireless-outline:before{content:"󱟿"}.mdi-sunglasses:before{content:"󰓠"}.mdi-surfing:before{content:"󱝆"}.mdi-surround-sound:before{content:"󰗅"}.mdi-surround-sound-2-0:before{content:"󰟰"}.mdi-surround-sound-2-1:before{content:"󱜩"}.mdi-surround-sound-3-1:before{content:"󰟱"}.mdi-surround-sound-5-1:before{content:"󰟲"}.mdi-surround-sound-5-1-2:before{content:"󱜪"}.mdi-surround-sound-7-1:before{content:"󰟳"}.mdi-svg:before{content:"󰜡"}.mdi-swap-horizontal:before{content:"󰓡"}.mdi-swap-horizontal-bold:before{content:"󰯍"}.mdi-swap-horizontal-circle:before{content:"󰿡"}.mdi-swap-horizontal-circle-outline:before{content:"󰿢"}.mdi-swap-horizontal-variant:before{content:"󰣁"}.mdi-swap-vertical:before{content:"󰓢"}.mdi-swap-vertical-bold:before{content:"󰯎"}.mdi-swap-vertical-circle:before{content:"󰿣"}.mdi-swap-vertical-circle-outline:before{content:"󰿤"}.mdi-swap-vertical-variant:before{content:"󰣂"}.mdi-swim:before{content:"󰓣"}.mdi-switch:before{content:"󰓤"}.mdi-sword:before{content:"󰓥"}.mdi-sword-cross:before{content:"󰞇"}.mdi-syllabary-hangul:before{content:"󱌳"}.mdi-syllabary-hiragana:before{content:"󱌴"}.mdi-syllabary-katakana:before{content:"󱌵"}.mdi-syllabary-katakana-halfwidth:before{content:"󱌶"}.mdi-symbol:before{content:"󱔁"}.mdi-symfony:before{content:"󰫦"}.mdi-synagogue:before{content:"󱬄"}.mdi-synagogue-outline:before{content:"󱬅"}.mdi-sync:before{content:"󰓦"}.mdi-sync-alert:before{content:"󰓧"}.mdi-sync-circle:before{content:"󱍸"}.mdi-sync-off:before{content:"󰓨"}.mdi-tab:before{content:"󰓩"}.mdi-tab-minus:before{content:"󰭋"}.mdi-tab-plus:before{content:"󰝜"}.mdi-tab-remove:before{content:"󰭌"}.mdi-tab-search:before{content:"󱦞"}.mdi-tab-unselected:before{content:"󰓪"}.mdi-table:before{content:"󰓫"}.mdi-table-account:before{content:"󱎹"}.mdi-table-alert:before{content:"󱎺"}.mdi-table-arrow-down:before{content:"󱎻"}.mdi-table-arrow-left:before{content:"󱎼"}.mdi-table-arrow-right:before{content:"󱎽"}.mdi-table-arrow-up:before{content:"󱎾"}.mdi-table-border:before{content:"󰨘"}.mdi-table-cancel:before{content:"󱎿"}.mdi-table-chair:before{content:"󱁡"}.mdi-table-check:before{content:"󱏀"}.mdi-table-clock:before{content:"󱏁"}.mdi-table-cog:before{content:"󱏂"}.mdi-table-column:before{content:"󰠵"}.mdi-table-column-plus-after:before{content:"󰓬"}.mdi-table-column-plus-before:before{content:"󰓭"}.mdi-table-column-remove:before{content:"󰓮"}.mdi-table-column-width:before{content:"󰓯"}.mdi-table-edit:before{content:"󰓰"}.mdi-table-eye:before{content:"󱂔"}.mdi-table-eye-off:before{content:"󱏃"}.mdi-table-filter:before{content:"󱮌"}.mdi-table-furniture:before{content:"󰖼"}.mdi-table-headers-eye:before{content:"󱈝"}.mdi-table-headers-eye-off:before{content:"󱈞"}.mdi-table-heart:before{content:"󱏄"}.mdi-table-key:before{content:"󱏅"}.mdi-table-large:before{content:"󰓱"}.mdi-table-large-plus:before{content:"󰾇"}.mdi-table-large-remove:before{content:"󰾈"}.mdi-table-lock:before{content:"󱏆"}.mdi-table-merge-cells:before{content:"󰦦"}.mdi-table-minus:before{content:"󱏇"}.mdi-table-multiple:before{content:"󱏈"}.mdi-table-network:before{content:"󱏉"}.mdi-table-of-contents:before{content:"󰠶"}.mdi-table-off:before{content:"󱏊"}.mdi-table-picnic:before{content:"󱝃"}.mdi-table-pivot:before{content:"󱠼"}.mdi-table-plus:before{content:"󰩵"}.mdi-table-question:before{content:"󱬡"}.mdi-table-refresh:before{content:"󱎠"}.mdi-table-remove:before{content:"󰩶"}.mdi-table-row:before{content:"󰠷"}.mdi-table-row-height:before{content:"󰓲"}.mdi-table-row-plus-after:before{content:"󰓳"}.mdi-table-row-plus-before:before{content:"󰓴"}.mdi-table-row-remove:before{content:"󰓵"}.mdi-table-search:before{content:"󰤏"}.mdi-table-settings:before{content:"󰠸"}.mdi-table-split-cell:before{content:"󱐪"}.mdi-table-star:before{content:"󱏋"}.mdi-table-sync:before{content:"󱎡"}.mdi-table-tennis:before{content:"󰹨"}.mdi-tablet:before{content:"󰓶"}.mdi-tablet-cellphone:before{content:"󰦧"}.mdi-tablet-dashboard:before{content:"󰻎"}.mdi-taco:before{content:"󰝢"}.mdi-tag:before{content:"󰓹"}.mdi-tag-arrow-down:before{content:"󱜫"}.mdi-tag-arrow-down-outline:before{content:"󱜬"}.mdi-tag-arrow-left:before{content:"󱜭"}.mdi-tag-arrow-left-outline:before{content:"󱜮"}.mdi-tag-arrow-right:before{content:"󱜯"}.mdi-tag-arrow-right-outline:before{content:"󱜰"}.mdi-tag-arrow-up:before{content:"󱜱"}.mdi-tag-arrow-up-outline:before{content:"󱜲"}.mdi-tag-check:before{content:"󱩺"}.mdi-tag-check-outline:before{content:"󱩻"}.mdi-tag-edit:before{content:"󱲜"}.mdi-tag-edit-outline:before{content:"󱲝"}.mdi-tag-faces:before{content:"󰓺"}.mdi-tag-heart:before{content:"󰚋"}.mdi-tag-heart-outline:before{content:"󰯏"}.mdi-tag-hidden:before{content:"󱱶"}.mdi-tag-minus:before{content:"󰤐"}.mdi-tag-minus-outline:before{content:"󱈟"}.mdi-tag-multiple:before{content:"󰓻"}.mdi-tag-multiple-outline:before{content:"󱋷"}.mdi-tag-off:before{content:"󱈠"}.mdi-tag-off-outline:before{content:"󱈡"}.mdi-tag-outline:before{content:"󰓼"}.mdi-tag-plus:before{content:"󰜢"}.mdi-tag-plus-outline:before{content:"󱈢"}.mdi-tag-remove:before{content:"󰜣"}.mdi-tag-remove-outline:before{content:"󱈣"}.mdi-tag-search:before{content:"󱤇"}.mdi-tag-search-outline:before{content:"󱤈"}.mdi-tag-text:before{content:"󱈤"}.mdi-tag-text-outline:before{content:"󰓽"}.mdi-tailwind:before{content:"󱏿"}.mdi-tally-mark-1:before{content:"󱪼"}.mdi-tally-mark-2:before{content:"󱪽"}.mdi-tally-mark-3:before{content:"󱪾"}.mdi-tally-mark-4:before{content:"󱪿"}.mdi-tally-mark-5:before{content:"󱫀"}.mdi-tangram:before{content:"󰓸"}.mdi-tank:before{content:"󰴺"}.mdi-tanker-truck:before{content:"󰿥"}.mdi-tape-drive:before{content:"󱛟"}.mdi-tape-measure:before{content:"󰭍"}.mdi-target:before{content:"󰓾"}.mdi-target-account:before{content:"󰯐"}.mdi-target-variant:before{content:"󰩷"}.mdi-taxi:before{content:"󰓿"}.mdi-tea:before{content:"󰶞"}.mdi-tea-outline:before{content:"󰶟"}.mdi-teamviewer:before{content:"󰔀"}.mdi-teddy-bear:before{content:"󱣻"}.mdi-telescope:before{content:"󰭎"}.mdi-television:before{content:"󰔂"}.mdi-television-ambient-light:before{content:"󱍖"}.mdi-television-box:before{content:"󰠹"}.mdi-television-classic:before{content:"󰟴"}.mdi-television-classic-off:before{content:"󰠺"}.mdi-television-guide:before{content:"󰔃"}.mdi-television-off:before{content:"󰠻"}.mdi-television-pause:before{content:"󰾉"}.mdi-television-play:before{content:"󰻏"}.mdi-television-shimmer:before{content:"󱄐"}.mdi-television-speaker:before{content:"󱬛"}.mdi-television-speaker-off:before{content:"󱬜"}.mdi-television-stop:before{content:"󰾊"}.mdi-temperature-celsius:before{content:"󰔄"}.mdi-temperature-fahrenheit:before{content:"󰔅"}.mdi-temperature-kelvin:before{content:"󰔆"}.mdi-temple-buddhist:before{content:"󱬆"}.mdi-temple-buddhist-outline:before{content:"󱬇"}.mdi-temple-hindu:before{content:"󱬈"}.mdi-temple-hindu-outline:before{content:"󱬉"}.mdi-tennis:before{content:"󰶠"}.mdi-tennis-ball:before{content:"󰔇"}.mdi-tennis-ball-outline:before{content:"󱱟"}.mdi-tent:before{content:"󰔈"}.mdi-terraform:before{content:"󱁢"}.mdi-terrain:before{content:"󰔉"}.mdi-test-tube:before{content:"󰙨"}.mdi-test-tube-empty:before{content:"󰤑"}.mdi-test-tube-off:before{content:"󰤒"}.mdi-text:before{content:"󰦨"}.mdi-text-account:before{content:"󱕰"}.mdi-text-box:before{content:"󰈚"}.mdi-text-box-check:before{content:"󰺦"}.mdi-text-box-check-outline:before{content:"󰺧"}.mdi-text-box-edit:before{content:"󱩼"}.mdi-text-box-edit-outline:before{content:"󱩽"}.mdi-text-box-minus:before{content:"󰺨"}.mdi-text-box-minus-outline:before{content:"󰺩"}.mdi-text-box-multiple:before{content:"󰪷"}.mdi-text-box-multiple-outline:before{content:"󰪸"}.mdi-text-box-outline:before{content:"󰧭"}.mdi-text-box-plus:before{content:"󰺪"}.mdi-text-box-plus-outline:before{content:"󰺫"}.mdi-text-box-remove:before{content:"󰺬"}.mdi-text-box-remove-outline:before{content:"󰺭"}.mdi-text-box-search:before{content:"󰺮"}.mdi-text-box-search-outline:before{content:"󰺯"}.mdi-text-long:before{content:"󰦪"}.mdi-text-recognition:before{content:"󱄽"}.mdi-text-search:before{content:"󱎸"}.mdi-text-search-variant:before{content:"󱩾"}.mdi-text-shadow:before{content:"󰙩"}.mdi-text-short:before{content:"󰦩"}.mdi-texture:before{content:"󰔌"}.mdi-texture-box:before{content:"󰿦"}.mdi-theater:before{content:"󰔍"}.mdi-theme-light-dark:before{content:"󰔎"}.mdi-thermometer:before{content:"󰔏"}.mdi-thermometer-alert:before{content:"󰸁"}.mdi-thermometer-auto:before{content:"󱬏"}.mdi-thermometer-bluetooth:before{content:"󱢕"}.mdi-thermometer-check:before{content:"󱩿"}.mdi-thermometer-chevron-down:before{content:"󰸂"}.mdi-thermometer-chevron-up:before{content:"󰸃"}.mdi-thermometer-high:before{content:"󱃂"}.mdi-thermometer-lines:before{content:"󰔐"}.mdi-thermometer-low:before{content:"󱃃"}.mdi-thermometer-minus:before{content:"󰸄"}.mdi-thermometer-off:before{content:"󱔱"}.mdi-thermometer-plus:before{content:"󰸅"}.mdi-thermometer-probe:before{content:"󱬫"}.mdi-thermometer-probe-off:before{content:"󱬬"}.mdi-thermometer-water:before{content:"󱪀"}.mdi-thermostat:before{content:"󰎓"}.mdi-thermostat-auto:before{content:"󱬗"}.mdi-thermostat-box:before{content:"󰢑"}.mdi-thermostat-box-auto:before{content:"󱬘"}.mdi-thermostat-cog:before{content:"󱲀"}.mdi-thought-bubble:before{content:"󰟶"}.mdi-thought-bubble-outline:before{content:"󰟷"}.mdi-thumb-down:before{content:"󰔑"}.mdi-thumb-down-outline:before{content:"󰔒"}.mdi-thumb-up:before{content:"󰔓"}.mdi-thumb-up-outline:before{content:"󰔔"}.mdi-thumbs-up-down:before{content:"󰔕"}.mdi-thumbs-up-down-outline:before{content:"󱤔"}.mdi-ticket:before{content:"󰔖"}.mdi-ticket-account:before{content:"󰔗"}.mdi-ticket-confirmation:before{content:"󰔘"}.mdi-ticket-confirmation-outline:before{content:"󱎪"}.mdi-ticket-outline:before{content:"󰤓"}.mdi-ticket-percent:before{content:"󰜤"}.mdi-ticket-percent-outline:before{content:"󱐫"}.mdi-tie:before{content:"󰔙"}.mdi-tilde:before{content:"󰜥"}.mdi-tilde-off:before{content:"󱣳"}.mdi-timelapse:before{content:"󰔚"}.mdi-timeline:before{content:"󰯑"}.mdi-timeline-alert:before{content:"󰾕"}.mdi-timeline-alert-outline:before{content:"󰾘"}.mdi-timeline-check:before{content:"󱔲"}.mdi-timeline-check-outline:before{content:"󱔳"}.mdi-timeline-clock:before{content:"󱇻"}.mdi-timeline-clock-outline:before{content:"󱇼"}.mdi-timeline-minus:before{content:"󱔴"}.mdi-timeline-minus-outline:before{content:"󱔵"}.mdi-timeline-outline:before{content:"󰯒"}.mdi-timeline-plus:before{content:"󰾖"}.mdi-timeline-plus-outline:before{content:"󰾗"}.mdi-timeline-question:before{content:"󰾙"}.mdi-timeline-question-outline:before{content:"󰾚"}.mdi-timeline-remove:before{content:"󱔶"}.mdi-timeline-remove-outline:before{content:"󱔷"}.mdi-timeline-text:before{content:"󰯓"}.mdi-timeline-text-outline:before{content:"󰯔"}.mdi-timer:before{content:"󱎫"}.mdi-timer-10:before{content:"󰔜"}.mdi-timer-3:before{content:"󰔝"}.mdi-timer-alert:before{content:"󱫌"}.mdi-timer-alert-outline:before{content:"󱫍"}.mdi-timer-cancel:before{content:"󱫎"}.mdi-timer-cancel-outline:before{content:"󱫏"}.mdi-timer-check:before{content:"󱫐"}.mdi-timer-check-outline:before{content:"󱫑"}.mdi-timer-cog:before{content:"󱤥"}.mdi-timer-cog-outline:before{content:"󱤦"}.mdi-timer-edit:before{content:"󱫒"}.mdi-timer-edit-outline:before{content:"󱫓"}.mdi-timer-lock:before{content:"󱫔"}.mdi-timer-lock-open:before{content:"󱫕"}.mdi-timer-lock-open-outline:before{content:"󱫖"}.mdi-timer-lock-outline:before{content:"󱫗"}.mdi-timer-marker:before{content:"󱫘"}.mdi-timer-marker-outline:before{content:"󱫙"}.mdi-timer-minus:before{content:"󱫚"}.mdi-timer-minus-outline:before{content:"󱫛"}.mdi-timer-music:before{content:"󱫜"}.mdi-timer-music-outline:before{content:"󱫝"}.mdi-timer-off:before{content:"󱎬"}.mdi-timer-off-outline:before{content:"󰔞"}.mdi-timer-outline:before{content:"󰔛"}.mdi-timer-pause:before{content:"󱫞"}.mdi-timer-pause-outline:before{content:"󱫟"}.mdi-timer-play:before{content:"󱫠"}.mdi-timer-play-outline:before{content:"󱫡"}.mdi-timer-plus:before{content:"󱫢"}.mdi-timer-plus-outline:before{content:"󱫣"}.mdi-timer-refresh:before{content:"󱫤"}.mdi-timer-refresh-outline:before{content:"󱫥"}.mdi-timer-remove:before{content:"󱫦"}.mdi-timer-remove-outline:before{content:"󱫧"}.mdi-timer-sand:before{content:"󰔟"}.mdi-timer-sand-complete:before{content:"󱦟"}.mdi-timer-sand-empty:before{content:"󰚭"}.mdi-timer-sand-full:before{content:"󰞌"}.mdi-timer-sand-paused:before{content:"󱦠"}.mdi-timer-settings:before{content:"󱤣"}.mdi-timer-settings-outline:before{content:"󱤤"}.mdi-timer-star:before{content:"󱫨"}.mdi-timer-star-outline:before{content:"󱫩"}.mdi-timer-stop:before{content:"󱫪"}.mdi-timer-stop-outline:before{content:"󱫫"}.mdi-timer-sync:before{content:"󱫬"}.mdi-timer-sync-outline:before{content:"󱫭"}.mdi-timetable:before{content:"󰔠"}.mdi-tire:before{content:"󱢖"}.mdi-toaster:before{content:"󱁣"}.mdi-toaster-off:before{content:"󱆷"}.mdi-toaster-oven:before{content:"󰳓"}.mdi-toggle-switch:before{content:"󰔡"}.mdi-toggle-switch-off:before{content:"󰔢"}.mdi-toggle-switch-off-outline:before{content:"󰨙"}.mdi-toggle-switch-outline:before{content:"󰨚"}.mdi-toggle-switch-variant:before{content:"󱨥"}.mdi-toggle-switch-variant-off:before{content:"󱨦"}.mdi-toilet:before{content:"󰦫"}.mdi-toolbox:before{content:"󰦬"}.mdi-toolbox-outline:before{content:"󰦭"}.mdi-tools:before{content:"󱁤"}.mdi-tooltip:before{content:"󰔣"}.mdi-tooltip-account:before{content:"󰀌"}.mdi-tooltip-cellphone:before{content:"󱠻"}.mdi-tooltip-check:before{content:"󱕜"}.mdi-tooltip-check-outline:before{content:"󱕝"}.mdi-tooltip-edit:before{content:"󰔤"}.mdi-tooltip-edit-outline:before{content:"󱋅"}.mdi-tooltip-image:before{content:"󰔥"}.mdi-tooltip-image-outline:before{content:"󰯕"}.mdi-tooltip-minus:before{content:"󱕞"}.mdi-tooltip-minus-outline:before{content:"󱕟"}.mdi-tooltip-outline:before{content:"󰔦"}.mdi-tooltip-plus:before{content:"󰯖"}.mdi-tooltip-plus-outline:before{content:"󰔧"}.mdi-tooltip-question:before{content:"󱮺"}.mdi-tooltip-question-outline:before{content:"󱮻"}.mdi-tooltip-remove:before{content:"󱕠"}.mdi-tooltip-remove-outline:before{content:"󱕡"}.mdi-tooltip-text:before{content:"󰔨"}.mdi-tooltip-text-outline:before{content:"󰯗"}.mdi-tooth:before{content:"󰣃"}.mdi-tooth-outline:before{content:"󰔩"}.mdi-toothbrush:before{content:"󱄩"}.mdi-toothbrush-electric:before{content:"󱄬"}.mdi-toothbrush-paste:before{content:"󱄪"}.mdi-torch:before{content:"󱘆"}.mdi-tortoise:before{content:"󰴻"}.mdi-toslink:before{content:"󱊸"}.mdi-touch-text-outline:before{content:"󱱠"}.mdi-tournament:before{content:"󰦮"}.mdi-tow-truck:before{content:"󰠼"}.mdi-tower-beach:before{content:"󰚁"}.mdi-tower-fire:before{content:"󰚂"}.mdi-town-hall:before{content:"󱡵"}.mdi-toy-brick:before{content:"󱊈"}.mdi-toy-brick-marker:before{content:"󱊉"}.mdi-toy-brick-marker-outline:before{content:"󱊊"}.mdi-toy-brick-minus:before{content:"󱊋"}.mdi-toy-brick-minus-outline:before{content:"󱊌"}.mdi-toy-brick-outline:before{content:"󱊍"}.mdi-toy-brick-plus:before{content:"󱊎"}.mdi-toy-brick-plus-outline:before{content:"󱊏"}.mdi-toy-brick-remove:before{content:"󱊐"}.mdi-toy-brick-remove-outline:before{content:"󱊑"}.mdi-toy-brick-search:before{content:"󱊒"}.mdi-toy-brick-search-outline:before{content:"󱊓"}.mdi-track-light:before{content:"󰤔"}.mdi-track-light-off:before{content:"󱬁"}.mdi-trackpad:before{content:"󰟸"}.mdi-trackpad-lock:before{content:"󰤳"}.mdi-tractor:before{content:"󰢒"}.mdi-tractor-variant:before{content:"󱓄"}.mdi-trademark:before{content:"󰩸"}.mdi-traffic-cone:before{content:"󱍼"}.mdi-traffic-light:before{content:"󰔫"}.mdi-traffic-light-outline:before{content:"󱠪"}.mdi-train:before{content:"󰔬"}.mdi-train-bus:before{content:"󱳇"}.mdi-train-car:before{content:"󰯘"}.mdi-train-car-autorack:before{content:"󱬭"}.mdi-train-car-box:before{content:"󱬮"}.mdi-train-car-box-full:before{content:"󱬯"}.mdi-train-car-box-open:before{content:"󱬰"}.mdi-train-car-caboose:before{content:"󱬱"}.mdi-train-car-centerbeam:before{content:"󱬲"}.mdi-train-car-centerbeam-full:before{content:"󱬳"}.mdi-train-car-container:before{content:"󱬴"}.mdi-train-car-flatbed:before{content:"󱬵"}.mdi-train-car-flatbed-car:before{content:"󱬶"}.mdi-train-car-flatbed-tank:before{content:"󱬷"}.mdi-train-car-gondola:before{content:"󱬸"}.mdi-train-car-gondola-full:before{content:"󱬹"}.mdi-train-car-hopper:before{content:"󱬺"}.mdi-train-car-hopper-covered:before{content:"󱬻"}.mdi-train-car-hopper-full:before{content:"󱬼"}.mdi-train-car-intermodal:before{content:"󱬽"}.mdi-train-car-passenger:before{content:"󱜳"}.mdi-train-car-passenger-door:before{content:"󱜴"}.mdi-train-car-passenger-door-open:before{content:"󱜵"}.mdi-train-car-passenger-variant:before{content:"󱜶"}.mdi-train-car-tank:before{content:"󱬾"}.mdi-train-variant:before{content:"󰣄"}.mdi-tram:before{content:"󰔭"}.mdi-tram-side:before{content:"󰿧"}.mdi-transcribe:before{content:"󰔮"}.mdi-transcribe-close:before{content:"󰔯"}.mdi-transfer:before{content:"󱁥"}.mdi-transfer-down:before{content:"󰶡"}.mdi-transfer-left:before{content:"󰶢"}.mdi-transfer-right:before{content:"󰔰"}.mdi-transfer-up:before{content:"󰶣"}.mdi-transit-connection:before{content:"󰴼"}.mdi-transit-connection-horizontal:before{content:"󱕆"}.mdi-transit-connection-variant:before{content:"󰴽"}.mdi-transit-detour:before{content:"󰾋"}.mdi-transit-skip:before{content:"󱔕"}.mdi-transit-transfer:before{content:"󰚮"}.mdi-transition:before{content:"󰤕"}.mdi-transition-masked:before{content:"󰤖"}.mdi-translate:before{content:"󰗊"}.mdi-translate-off:before{content:"󰸆"}.mdi-translate-variant:before{content:"󱮙"}.mdi-transmission-tower:before{content:"󰴾"}.mdi-transmission-tower-export:before{content:"󱤬"}.mdi-transmission-tower-import:before{content:"󱤭"}.mdi-transmission-tower-off:before{content:"󱧝"}.mdi-trash-can:before{content:"󰩹"}.mdi-trash-can-outline:before{content:"󰩺"}.mdi-tray:before{content:"󱊔"}.mdi-tray-alert:before{content:"󱊕"}.mdi-tray-arrow-down:before{content:"󰄠"}.mdi-tray-arrow-up:before{content:"󰄝"}.mdi-tray-full:before{content:"󱊖"}.mdi-tray-minus:before{content:"󱊗"}.mdi-tray-plus:before{content:"󱊘"}.mdi-tray-remove:before{content:"󱊙"}.mdi-treasure-chest:before{content:"󰜦"}.mdi-treasure-chest-outline:before{content:"󱱷"}.mdi-tree:before{content:"󰔱"}.mdi-tree-outline:before{content:"󰹩"}.mdi-trello:before{content:"󰔲"}.mdi-trending-down:before{content:"󰔳"}.mdi-trending-neutral:before{content:"󰔴"}.mdi-trending-up:before{content:"󰔵"}.mdi-triangle:before{content:"󰔶"}.mdi-triangle-down:before{content:"󱱖"}.mdi-triangle-down-outline:before{content:"󱱗"}.mdi-triangle-outline:before{content:"󰔷"}.mdi-triangle-small-down:before{content:"󱨉"}.mdi-triangle-small-up:before{content:"󱨊"}.mdi-triangle-wave:before{content:"󱑼"}.mdi-triforce:before{content:"󰯙"}.mdi-trophy:before{content:"󰔸"}.mdi-trophy-award:before{content:"󰔹"}.mdi-trophy-broken:before{content:"󰶤"}.mdi-trophy-outline:before{content:"󰔺"}.mdi-trophy-variant:before{content:"󰔻"}.mdi-trophy-variant-outline:before{content:"󰔼"}.mdi-truck:before{content:"󰔽"}.mdi-truck-alert:before{content:"󱧞"}.mdi-truck-alert-outline:before{content:"󱧟"}.mdi-truck-cargo-container:before{content:"󱣘"}.mdi-truck-check:before{content:"󰳔"}.mdi-truck-check-outline:before{content:"󱊚"}.mdi-truck-delivery:before{content:"󰔾"}.mdi-truck-delivery-outline:before{content:"󱊛"}.mdi-truck-fast:before{content:"󰞈"}.mdi-truck-fast-outline:before{content:"󱊜"}.mdi-truck-flatbed:before{content:"󱢑"}.mdi-truck-minus:before{content:"󱦮"}.mdi-truck-minus-outline:before{content:"󱦽"}.mdi-truck-off-road:before{content:"󱲞"}.mdi-truck-off-road-off:before{content:"󱲟"}.mdi-truck-outline:before{content:"󱊝"}.mdi-truck-plus:before{content:"󱦭"}.mdi-truck-plus-outline:before{content:"󱦼"}.mdi-truck-remove:before{content:"󱦯"}.mdi-truck-remove-outline:before{content:"󱦾"}.mdi-truck-snowflake:before{content:"󱦦"}.mdi-truck-trailer:before{content:"󰜧"}.mdi-trumpet:before{content:"󱂖"}.mdi-tshirt-crew:before{content:"󰩻"}.mdi-tshirt-crew-outline:before{content:"󰔿"}.mdi-tshirt-v:before{content:"󰩼"}.mdi-tshirt-v-outline:before{content:"󰕀"}.mdi-tsunami:before{content:"󱪁"}.mdi-tumble-dryer:before{content:"󰤗"}.mdi-tumble-dryer-alert:before{content:"󱆺"}.mdi-tumble-dryer-off:before{content:"󱆻"}.mdi-tune:before{content:"󰘮"}.mdi-tune-variant:before{content:"󱕂"}.mdi-tune-vertical:before{content:"󰙪"}.mdi-tune-vertical-variant:before{content:"󱕃"}.mdi-tunnel:before{content:"󱠽"}.mdi-tunnel-outline:before{content:"󱠾"}.mdi-turbine:before{content:"󱪂"}.mdi-turkey:before{content:"󱜛"}.mdi-turnstile:before{content:"󰳕"}.mdi-turnstile-outline:before{content:"󰳖"}.mdi-turtle:before{content:"󰳗"}.mdi-twitch:before{content:"󰕃"}.mdi-twitter:before{content:"󰕄"}.mdi-two-factor-authentication:before{content:"󰦯"}.mdi-typewriter:before{content:"󰼭"}.mdi-ubisoft:before{content:"󰯚"}.mdi-ubuntu:before{content:"󰕈"}.mdi-ufo:before{content:"󱃄"}.mdi-ufo-outline:before{content:"󱃅"}.mdi-ultra-high-definition:before{content:"󰟹"}.mdi-umbraco:before{content:"󰕉"}.mdi-umbrella:before{content:"󰕊"}.mdi-umbrella-beach:before{content:"󱢊"}.mdi-umbrella-beach-outline:before{content:"󱢋"}.mdi-umbrella-closed:before{content:"󰦰"}.mdi-umbrella-closed-outline:before{content:"󱏢"}.mdi-umbrella-closed-variant:before{content:"󱏡"}.mdi-umbrella-outline:before{content:"󰕋"}.mdi-undo:before{content:"󰕌"}.mdi-undo-variant:before{content:"󰕍"}.mdi-unfold-less-horizontal:before{content:"󰕎"}.mdi-unfold-less-vertical:before{content:"󰝠"}.mdi-unfold-more-horizontal:before{content:"󰕏"}.mdi-unfold-more-vertical:before{content:"󰝡"}.mdi-ungroup:before{content:"󰕐"}.mdi-unicode:before{content:"󰻐"}.mdi-unicorn:before{content:"󱗂"}.mdi-unicorn-variant:before{content:"󱗃"}.mdi-unicycle:before{content:"󱗥"}.mdi-unity:before{content:"󰚯"}.mdi-unreal:before{content:"󰦱"}.mdi-update:before{content:"󰚰"}.mdi-upload:before{content:"󰕒"}.mdi-upload-lock:before{content:"󱍳"}.mdi-upload-lock-outline:before{content:"󱍴"}.mdi-upload-multiple:before{content:"󰠽"}.mdi-upload-network:before{content:"󰛶"}.mdi-upload-network-outline:before{content:"󰳘"}.mdi-upload-off:before{content:"󱃆"}.mdi-upload-off-outline:before{content:"󱃇"}.mdi-upload-outline:before{content:"󰸇"}.mdi-usb:before{content:"󰕓"}.mdi-usb-c-port:before{content:"󱲿"}.mdi-usb-flash-drive:before{content:"󱊞"}.mdi-usb-flash-drive-outline:before{content:"󱊟"}.mdi-usb-port:before{content:"󱇰"}.mdi-vacuum:before{content:"󱦡"}.mdi-vacuum-outline:before{content:"󱦢"}.mdi-valve:before{content:"󱁦"}.mdi-valve-closed:before{content:"󱁧"}.mdi-valve-open:before{content:"󱁨"}.mdi-van-passenger:before{content:"󰟺"}.mdi-van-utility:before{content:"󰟻"}.mdi-vanish:before{content:"󰟼"}.mdi-vanish-quarter:before{content:"󱕔"}.mdi-vanity-light:before{content:"󱇡"}.mdi-variable:before{content:"󰫧"}.mdi-variable-box:before{content:"󱄑"}.mdi-vector-arrange-above:before{content:"󰕔"}.mdi-vector-arrange-below:before{content:"󰕕"}.mdi-vector-bezier:before{content:"󰫨"}.mdi-vector-circle:before{content:"󰕖"}.mdi-vector-circle-variant:before{content:"󰕗"}.mdi-vector-combine:before{content:"󰕘"}.mdi-vector-curve:before{content:"󰕙"}.mdi-vector-difference:before{content:"󰕚"}.mdi-vector-difference-ab:before{content:"󰕛"}.mdi-vector-difference-ba:before{content:"󰕜"}.mdi-vector-ellipse:before{content:"󰢓"}.mdi-vector-intersection:before{content:"󰕝"}.mdi-vector-line:before{content:"󰕞"}.mdi-vector-link:before{content:"󰿨"}.mdi-vector-point:before{content:"󰇄"}.mdi-vector-point-edit:before{content:"󰧨"}.mdi-vector-point-minus:before{content:"󱭸"}.mdi-vector-point-plus:before{content:"󱭹"}.mdi-vector-point-select:before{content:"󰕟"}.mdi-vector-polygon:before{content:"󰕠"}.mdi-vector-polygon-variant:before{content:"󱡖"}.mdi-vector-polyline:before{content:"󰕡"}.mdi-vector-polyline-edit:before{content:"󱈥"}.mdi-vector-polyline-minus:before{content:"󱈦"}.mdi-vector-polyline-plus:before{content:"󱈧"}.mdi-vector-polyline-remove:before{content:"󱈨"}.mdi-vector-radius:before{content:"󰝊"}.mdi-vector-rectangle:before{content:"󰗆"}.mdi-vector-selection:before{content:"󰕢"}.mdi-vector-square:before{content:"󰀁"}.mdi-vector-square-close:before{content:"󱡗"}.mdi-vector-square-edit:before{content:"󱣙"}.mdi-vector-square-minus:before{content:"󱣚"}.mdi-vector-square-open:before{content:"󱡘"}.mdi-vector-square-plus:before{content:"󱣛"}.mdi-vector-square-remove:before{content:"󱣜"}.mdi-vector-triangle:before{content:"󰕣"}.mdi-vector-union:before{content:"󰕤"}.mdi-vhs:before{content:"󰨛"}.mdi-vibrate:before{content:"󰕦"}.mdi-vibrate-off:before{content:"󰳙"}.mdi-video:before{content:"󰕧"}.mdi-video-2d:before{content:"󱨜"}.mdi-video-3d:before{content:"󰟽"}.mdi-video-3d-off:before{content:"󱏙"}.mdi-video-3d-variant:before{content:"󰻑"}.mdi-video-4k-box:before{content:"󰠾"}.mdi-video-account:before{content:"󰤙"}.mdi-video-box:before{content:"󰃽"}.mdi-video-box-off:before{content:"󰃾"}.mdi-video-check:before{content:"󱁩"}.mdi-video-check-outline:before{content:"󱁪"}.mdi-video-high-definition:before{content:"󱔮"}.mdi-video-image:before{content:"󰤚"}.mdi-video-input-antenna:before{content:"󰠿"}.mdi-video-input-component:before{content:"󰡀"}.mdi-video-input-hdmi:before{content:"󰡁"}.mdi-video-input-scart:before{content:"󰾌"}.mdi-video-input-svideo:before{content:"󰡂"}.mdi-video-marker:before{content:"󱦩"}.mdi-video-marker-outline:before{content:"󱦪"}.mdi-video-minus:before{content:"󰦲"}.mdi-video-minus-outline:before{content:"󰊺"}.mdi-video-off:before{content:"󰕨"}.mdi-video-off-outline:before{content:"󰯛"}.mdi-video-outline:before{content:"󰯜"}.mdi-video-plus:before{content:"󰦳"}.mdi-video-plus-outline:before{content:"󰇓"}.mdi-video-stabilization:before{content:"󰤛"}.mdi-video-standard-definition:before{content:"󱲠"}.mdi-video-switch:before{content:"󰕩"}.mdi-video-switch-outline:before{content:"󰞐"}.mdi-video-vintage:before{content:"󰨜"}.mdi-video-wireless:before{content:"󰻒"}.mdi-video-wireless-outline:before{content:"󰻓"}.mdi-view-agenda:before{content:"󰕪"}.mdi-view-agenda-outline:before{content:"󱇘"}.mdi-view-array:before{content:"󰕫"}.mdi-view-array-outline:before{content:"󱒅"}.mdi-view-carousel:before{content:"󰕬"}.mdi-view-carousel-outline:before{content:"󱒆"}.mdi-view-column:before{content:"󰕭"}.mdi-view-column-outline:before{content:"󱒇"}.mdi-view-comfy:before{content:"󰹪"}.mdi-view-comfy-outline:before{content:"󱒈"}.mdi-view-compact:before{content:"󰹫"}.mdi-view-compact-outline:before{content:"󰹬"}.mdi-view-dashboard:before{content:"󰕮"}.mdi-view-dashboard-edit:before{content:"󱥇"}.mdi-view-dashboard-edit-outline:before{content:"󱥈"}.mdi-view-dashboard-outline:before{content:"󰨝"}.mdi-view-dashboard-variant:before{content:"󰡃"}.mdi-view-dashboard-variant-outline:before{content:"󱒉"}.mdi-view-day:before{content:"󰕯"}.mdi-view-day-outline:before{content:"󱒊"}.mdi-view-gallery:before{content:"󱢈"}.mdi-view-gallery-outline:before{content:"󱢉"}.mdi-view-grid:before{content:"󰕰"}.mdi-view-grid-compact:before{content:"󱱡"}.mdi-view-grid-outline:before{content:"󱇙"}.mdi-view-grid-plus:before{content:"󰾍"}.mdi-view-grid-plus-outline:before{content:"󱇚"}.mdi-view-headline:before{content:"󰕱"}.mdi-view-list:before{content:"󰕲"}.mdi-view-list-outline:before{content:"󱒋"}.mdi-view-module:before{content:"󰕳"}.mdi-view-module-outline:before{content:"󱒌"}.mdi-view-parallel:before{content:"󰜨"}.mdi-view-parallel-outline:before{content:"󱒍"}.mdi-view-quilt:before{content:"󰕴"}.mdi-view-quilt-outline:before{content:"󱒎"}.mdi-view-sequential:before{content:"󰜩"}.mdi-view-sequential-outline:before{content:"󱒏"}.mdi-view-split-horizontal:before{content:"󰯋"}.mdi-view-split-vertical:before{content:"󰯌"}.mdi-view-stream:before{content:"󰕵"}.mdi-view-stream-outline:before{content:"󱒐"}.mdi-view-week:before{content:"󰕶"}.mdi-view-week-outline:before{content:"󱒑"}.mdi-vimeo:before{content:"󰕷"}.mdi-violin:before{content:"󰘏"}.mdi-virtual-reality:before{content:"󰢔"}.mdi-virus:before{content:"󱎶"}.mdi-virus-off:before{content:"󱣡"}.mdi-virus-off-outline:before{content:"󱣢"}.mdi-virus-outline:before{content:"󱎷"}.mdi-vlc:before{content:"󰕼"}.mdi-voicemail:before{content:"󰕽"}.mdi-volcano:before{content:"󱪃"}.mdi-volcano-outline:before{content:"󱪄"}.mdi-volleyball:before{content:"󰦴"}.mdi-volume-equal:before{content:"󱬐"}.mdi-volume-high:before{content:"󰕾"}.mdi-volume-low:before{content:"󰕿"}.mdi-volume-medium:before{content:"󰖀"}.mdi-volume-minus:before{content:"󰝞"}.mdi-volume-mute:before{content:"󰝟"}.mdi-volume-off:before{content:"󰖁"}.mdi-volume-plus:before{content:"󰝝"}.mdi-volume-source:before{content:"󱄠"}.mdi-volume-variant-off:before{content:"󰸈"}.mdi-volume-vibrate:before{content:"󱄡"}.mdi-vote:before{content:"󰨟"}.mdi-vote-outline:before{content:"󰨠"}.mdi-vpn:before{content:"󰖂"}.mdi-vuejs:before{content:"󰡄"}.mdi-vuetify:before{content:"󰹭"}.mdi-walk:before{content:"󰖃"}.mdi-wall:before{content:"󰟾"}.mdi-wall-fire:before{content:"󱨑"}.mdi-wall-sconce:before{content:"󰤜"}.mdi-wall-sconce-flat:before{content:"󰤝"}.mdi-wall-sconce-flat-outline:before{content:"󱟉"}.mdi-wall-sconce-flat-variant:before{content:"󰐜"}.mdi-wall-sconce-flat-variant-outline:before{content:"󱟊"}.mdi-wall-sconce-outline:before{content:"󱟋"}.mdi-wall-sconce-round:before{content:"󰝈"}.mdi-wall-sconce-round-outline:before{content:"󱟌"}.mdi-wall-sconce-round-variant:before{content:"󰤞"}.mdi-wall-sconce-round-variant-outline:before{content:"󱟍"}.mdi-wallet:before{content:"󰖄"}.mdi-wallet-bifold:before{content:"󱱘"}.mdi-wallet-bifold-outline:before{content:"󱱙"}.mdi-wallet-giftcard:before{content:"󰖅"}.mdi-wallet-membership:before{content:"󰖆"}.mdi-wallet-outline:before{content:"󰯝"}.mdi-wallet-plus:before{content:"󰾎"}.mdi-wallet-plus-outline:before{content:"󰾏"}.mdi-wallet-travel:before{content:"󰖇"}.mdi-wallpaper:before{content:"󰸉"}.mdi-wan:before{content:"󰖈"}.mdi-wardrobe:before{content:"󰾐"}.mdi-wardrobe-outline:before{content:"󰾑"}.mdi-warehouse:before{content:"󰾁"}.mdi-washing-machine:before{content:"󰜪"}.mdi-washing-machine-alert:before{content:"󱆼"}.mdi-washing-machine-off:before{content:"󱆽"}.mdi-watch:before{content:"󰖉"}.mdi-watch-export:before{content:"󰖊"}.mdi-watch-export-variant:before{content:"󰢕"}.mdi-watch-import:before{content:"󰖋"}.mdi-watch-import-variant:before{content:"󰢖"}.mdi-watch-variant:before{content:"󰢗"}.mdi-watch-vibrate:before{content:"󰚱"}.mdi-watch-vibrate-off:before{content:"󰳚"}.mdi-water:before{content:"󰖌"}.mdi-water-alert:before{content:"󱔂"}.mdi-water-alert-outline:before{content:"󱔃"}.mdi-water-boiler:before{content:"󰾒"}.mdi-water-boiler-alert:before{content:"󱆳"}.mdi-water-boiler-auto:before{content:"󱮘"}.mdi-water-boiler-off:before{content:"󱆴"}.mdi-water-check:before{content:"󱔄"}.mdi-water-check-outline:before{content:"󱔅"}.mdi-water-circle:before{content:"󱠆"}.mdi-water-minus:before{content:"󱔆"}.mdi-water-minus-outline:before{content:"󱔇"}.mdi-water-off:before{content:"󰖍"}.mdi-water-off-outline:before{content:"󱔈"}.mdi-water-opacity:before{content:"󱡕"}.mdi-water-outline:before{content:"󰸊"}.mdi-water-percent:before{content:"󰖎"}.mdi-water-percent-alert:before{content:"󱔉"}.mdi-water-plus:before{content:"󱔊"}.mdi-water-plus-outline:before{content:"󱔋"}.mdi-water-polo:before{content:"󱊠"}.mdi-water-pump:before{content:"󰖏"}.mdi-water-pump-off:before{content:"󰾓"}.mdi-water-remove:before{content:"󱔌"}.mdi-water-remove-outline:before{content:"󱔍"}.mdi-water-sync:before{content:"󱟆"}.mdi-water-thermometer:before{content:"󱪅"}.mdi-water-thermometer-outline:before{content:"󱪆"}.mdi-water-well:before{content:"󱁫"}.mdi-water-well-outline:before{content:"󱁬"}.mdi-waterfall:before{content:"󱡉"}.mdi-watering-can:before{content:"󱒁"}.mdi-watering-can-outline:before{content:"󱒂"}.mdi-watermark:before{content:"󰘒"}.mdi-wave:before{content:"󰼮"}.mdi-wave-arrow-down:before{content:"󱲰"}.mdi-wave-arrow-up:before{content:"󱲱"}.mdi-wave-undercurrent:before{content:"󱳀"}.mdi-waveform:before{content:"󱑽"}.mdi-waves:before{content:"󰞍"}.mdi-waves-arrow-left:before{content:"󱡙"}.mdi-waves-arrow-right:before{content:"󱡚"}.mdi-waves-arrow-up:before{content:"󱡛"}.mdi-waze:before{content:"󰯞"}.mdi-weather-cloudy:before{content:"󰖐"}.mdi-weather-cloudy-alert:before{content:"󰼯"}.mdi-weather-cloudy-arrow-right:before{content:"󰹮"}.mdi-weather-cloudy-clock:before{content:"󱣶"}.mdi-weather-dust:before{content:"󱭚"}.mdi-weather-fog:before{content:"󰖑"}.mdi-weather-hail:before{content:"󰖒"}.mdi-weather-hazy:before{content:"󰼰"}.mdi-weather-hurricane:before{content:"󰢘"}.mdi-weather-hurricane-outline:before{content:"󱱸"}.mdi-weather-lightning:before{content:"󰖓"}.mdi-weather-lightning-rainy:before{content:"󰙾"}.mdi-weather-night:before{content:"󰖔"}.mdi-weather-night-partly-cloudy:before{content:"󰼱"}.mdi-weather-partly-cloudy:before{content:"󰖕"}.mdi-weather-partly-lightning:before{content:"󰼲"}.mdi-weather-partly-rainy:before{content:"󰼳"}.mdi-weather-partly-snowy:before{content:"󰼴"}.mdi-weather-partly-snowy-rainy:before{content:"󰼵"}.mdi-weather-pouring:before{content:"󰖖"}.mdi-weather-rainy:before{content:"󰖗"}.mdi-weather-snowy:before{content:"󰖘"}.mdi-weather-snowy-heavy:before{content:"󰼶"}.mdi-weather-snowy-rainy:before{content:"󰙿"}.mdi-weather-sunny:before{content:"󰖙"}.mdi-weather-sunny-alert:before{content:"󰼷"}.mdi-weather-sunny-off:before{content:"󱓤"}.mdi-weather-sunset:before{content:"󰖚"}.mdi-weather-sunset-down:before{content:"󰖛"}.mdi-weather-sunset-up:before{content:"󰖜"}.mdi-weather-tornado:before{content:"󰼸"}.mdi-weather-windy:before{content:"󰖝"}.mdi-weather-windy-variant:before{content:"󰖞"}.mdi-web:before{content:"󰖟"}.mdi-web-box:before{content:"󰾔"}.mdi-web-cancel:before{content:"󱞐"}.mdi-web-check:before{content:"󰞉"}.mdi-web-clock:before{content:"󱉊"}.mdi-web-minus:before{content:"󱂠"}.mdi-web-off:before{content:"󰪎"}.mdi-web-plus:before{content:"󰀳"}.mdi-web-refresh:before{content:"󱞑"}.mdi-web-remove:before{content:"󰕑"}.mdi-web-sync:before{content:"󱞒"}.mdi-webcam:before{content:"󰖠"}.mdi-webcam-off:before{content:"󱜷"}.mdi-webhook:before{content:"󰘯"}.mdi-webpack:before{content:"󰜫"}.mdi-webrtc:before{content:"󱉈"}.mdi-wechat:before{content:"󰘑"}.mdi-weight:before{content:"󰖡"}.mdi-weight-gram:before{content:"󰴿"}.mdi-weight-kilogram:before{content:"󰖢"}.mdi-weight-lifter:before{content:"󱅝"}.mdi-weight-pound:before{content:"󰦵"}.mdi-whatsapp:before{content:"󰖣"}.mdi-wheel-barrow:before{content:"󱓲"}.mdi-wheelchair:before{content:"󱪇"}.mdi-wheelchair-accessibility:before{content:"󰖤"}.mdi-whistle:before{content:"󰦶"}.mdi-whistle-outline:before{content:"󱊼"}.mdi-white-balance-auto:before{content:"󰖥"}.mdi-white-balance-incandescent:before{content:"󰖦"}.mdi-white-balance-iridescent:before{content:"󰖧"}.mdi-white-balance-sunny:before{content:"󰖨"}.mdi-widgets:before{content:"󰜬"}.mdi-widgets-outline:before{content:"󱍕"}.mdi-wifi:before{content:"󰖩"}.mdi-wifi-alert:before{content:"󱚵"}.mdi-wifi-arrow-down:before{content:"󱚶"}.mdi-wifi-arrow-left:before{content:"󱚷"}.mdi-wifi-arrow-left-right:before{content:"󱚸"}.mdi-wifi-arrow-right:before{content:"󱚹"}.mdi-wifi-arrow-up:before{content:"󱚺"}.mdi-wifi-arrow-up-down:before{content:"󱚻"}.mdi-wifi-cancel:before{content:"󱚼"}.mdi-wifi-check:before{content:"󱚽"}.mdi-wifi-cog:before{content:"󱚾"}.mdi-wifi-lock:before{content:"󱚿"}.mdi-wifi-lock-open:before{content:"󱛀"}.mdi-wifi-marker:before{content:"󱛁"}.mdi-wifi-minus:before{content:"󱛂"}.mdi-wifi-off:before{content:"󰖪"}.mdi-wifi-plus:before{content:"󱛃"}.mdi-wifi-refresh:before{content:"󱛄"}.mdi-wifi-remove:before{content:"󱛅"}.mdi-wifi-settings:before{content:"󱛆"}.mdi-wifi-star:before{content:"󰸋"}.mdi-wifi-strength-1:before{content:"󰤟"}.mdi-wifi-strength-1-alert:before{content:"󰤠"}.mdi-wifi-strength-1-lock:before{content:"󰤡"}.mdi-wifi-strength-1-lock-open:before{content:"󱛋"}.mdi-wifi-strength-2:before{content:"󰤢"}.mdi-wifi-strength-2-alert:before{content:"󰤣"}.mdi-wifi-strength-2-lock:before{content:"󰤤"}.mdi-wifi-strength-2-lock-open:before{content:"󱛌"}.mdi-wifi-strength-3:before{content:"󰤥"}.mdi-wifi-strength-3-alert:before{content:"󰤦"}.mdi-wifi-strength-3-lock:before{content:"󰤧"}.mdi-wifi-strength-3-lock-open:before{content:"󱛍"}.mdi-wifi-strength-4:before{content:"󰤨"}.mdi-wifi-strength-4-alert:before{content:"󰤩"}.mdi-wifi-strength-4-lock:before{content:"󰤪"}.mdi-wifi-strength-4-lock-open:before{content:"󱛎"}.mdi-wifi-strength-alert-outline:before{content:"󰤫"}.mdi-wifi-strength-lock-open-outline:before{content:"󱛏"}.mdi-wifi-strength-lock-outline:before{content:"󰤬"}.mdi-wifi-strength-off:before{content:"󰤭"}.mdi-wifi-strength-off-outline:before{content:"󰤮"}.mdi-wifi-strength-outline:before{content:"󰤯"}.mdi-wifi-sync:before{content:"󱛇"}.mdi-wikipedia:before{content:"󰖬"}.mdi-wind-power:before{content:"󱪈"}.mdi-wind-power-outline:before{content:"󱪉"}.mdi-wind-turbine:before{content:"󰶥"}.mdi-wind-turbine-alert:before{content:"󱦫"}.mdi-wind-turbine-check:before{content:"󱦬"}.mdi-window-close:before{content:"󰖭"}.mdi-window-closed:before{content:"󰖮"}.mdi-window-closed-variant:before{content:"󱇛"}.mdi-window-maximize:before{content:"󰖯"}.mdi-window-minimize:before{content:"󰖰"}.mdi-window-open:before{content:"󰖱"}.mdi-window-open-variant:before{content:"󱇜"}.mdi-window-restore:before{content:"󰖲"}.mdi-window-shutter:before{content:"󱄜"}.mdi-window-shutter-alert:before{content:"󱄝"}.mdi-window-shutter-auto:before{content:"󱮣"}.mdi-window-shutter-cog:before{content:"󱪊"}.mdi-window-shutter-open:before{content:"󱄞"}.mdi-window-shutter-settings:before{content:"󱪋"}.mdi-windsock:before{content:"󱗺"}.mdi-wiper:before{content:"󰫩"}.mdi-wiper-wash:before{content:"󰶦"}.mdi-wiper-wash-alert:before{content:"󱣟"}.mdi-wizard-hat:before{content:"󱑷"}.mdi-wordpress:before{content:"󰖴"}.mdi-wrap:before{content:"󰖶"}.mdi-wrap-disabled:before{content:"󰯟"}.mdi-wrench:before{content:"󰖷"}.mdi-wrench-check:before{content:"󱮏"}.mdi-wrench-check-outline:before{content:"󱮐"}.mdi-wrench-clock:before{content:"󱦣"}.mdi-wrench-clock-outline:before{content:"󱮓"}.mdi-wrench-cog:before{content:"󱮑"}.mdi-wrench-cog-outline:before{content:"󱮒"}.mdi-wrench-outline:before{content:"󰯠"}.mdi-xamarin:before{content:"󰡅"}.mdi-xml:before{content:"󰗀"}.mdi-xmpp:before{content:"󰟿"}.mdi-yahoo:before{content:"󰭏"}.mdi-yeast:before{content:"󰗁"}.mdi-yin-yang:before{content:"󰚀"}.mdi-yoga:before{content:"󱅼"}.mdi-youtube:before{content:"󰗃"}.mdi-youtube-gaming:before{content:"󰡈"}.mdi-youtube-studio:before{content:"󰡇"}.mdi-youtube-subscription:before{content:"󰵀"}.mdi-youtube-tv:before{content:"󰑈"}.mdi-yurt:before{content:"󱔖"}.mdi-z-wave:before{content:"󰫪"}.mdi-zend:before{content:"󰫫"}.mdi-zigbee:before{content:"󰵁"}.mdi-zip-box:before{content:"󰗄"}.mdi-zip-box-outline:before{content:"󰿺"}.mdi-zip-disk:before{content:"󰨣"}.mdi-zodiac-aquarius:before{content:"󰩽"}.mdi-zodiac-aries:before{content:"󰩾"}.mdi-zodiac-cancer:before{content:"󰩿"}.mdi-zodiac-capricorn:before{content:"󰪀"}.mdi-zodiac-gemini:before{content:"󰪁"}.mdi-zodiac-leo:before{content:"󰪂"}.mdi-zodiac-libra:before{content:"󰪃"}.mdi-zodiac-pisces:before{content:"󰪄"}.mdi-zodiac-sagittarius:before{content:"󰪅"}.mdi-zodiac-scorpio:before{content:"󰪆"}.mdi-zodiac-taurus:before{content:"󰪇"}.mdi-zodiac-virgo:before{content:"󰪈"}.mdi-blank:before{content:"";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes v-shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.bg-black{background-color:#000!important;color:#fff!important}.bg-white{background-color:#fff!important;color:#000!important}.bg-transparent{background-color:transparent!important;color:currentColor!important}.bg-red{background-color:#f44336!important;color:#fff!important}.bg-red-lighten-5{background-color:#ffebee!important;color:#000!important}.bg-red-lighten-4{background-color:#ffcdd2!important;color:#000!important}.bg-red-lighten-3{background-color:#ef9a9a!important;color:#000!important}.bg-red-lighten-2{background-color:#e57373!important;color:#fff!important}.bg-red-lighten-1{background-color:#ef5350!important;color:#fff!important}.bg-red-darken-1{background-color:#e53935!important;color:#fff!important}.bg-red-darken-2{background-color:#d32f2f!important;color:#fff!important}.bg-red-darken-3{background-color:#c62828!important;color:#fff!important}.bg-red-darken-4{background-color:#b71c1c!important;color:#fff!important}.bg-red-accent-1{background-color:#ff8a80!important;color:#000!important}.bg-red-accent-2{background-color:#ff5252!important;color:#fff!important}.bg-red-accent-3{background-color:#ff1744!important;color:#fff!important}.bg-red-accent-4{background-color:#d50000!important;color:#fff!important}.bg-pink{background-color:#e91e63!important;color:#fff!important}.bg-pink-lighten-5{background-color:#fce4ec!important;color:#000!important}.bg-pink-lighten-4{background-color:#f8bbd0!important;color:#000!important}.bg-pink-lighten-3{background-color:#f48fb1!important;color:#000!important}.bg-pink-lighten-2{background-color:#f06292!important;color:#fff!important}.bg-pink-lighten-1{background-color:#ec407a!important;color:#fff!important}.bg-pink-darken-1{background-color:#d81b60!important;color:#fff!important}.bg-pink-darken-2{background-color:#c2185b!important;color:#fff!important}.bg-pink-darken-3{background-color:#ad1457!important;color:#fff!important}.bg-pink-darken-4{background-color:#880e4f!important;color:#fff!important}.bg-pink-accent-1{background-color:#ff80ab!important;color:#fff!important}.bg-pink-accent-2{background-color:#ff4081!important;color:#fff!important}.bg-pink-accent-3{background-color:#f50057!important;color:#fff!important}.bg-pink-accent-4{background-color:#c51162!important;color:#fff!important}.bg-purple{background-color:#9c27b0!important;color:#fff!important}.bg-purple-lighten-5{background-color:#f3e5f5!important;color:#000!important}.bg-purple-lighten-4{background-color:#e1bee7!important;color:#000!important}.bg-purple-lighten-3{background-color:#ce93d8!important;color:#fff!important}.bg-purple-lighten-2{background-color:#ba68c8!important;color:#fff!important}.bg-purple-lighten-1{background-color:#ab47bc!important;color:#fff!important}.bg-purple-darken-1{background-color:#8e24aa!important;color:#fff!important}.bg-purple-darken-2{background-color:#7b1fa2!important;color:#fff!important}.bg-purple-darken-3{background-color:#6a1b9a!important;color:#fff!important}.bg-purple-darken-4{background-color:#4a148c!important;color:#fff!important}.bg-purple-accent-1{background-color:#ea80fc!important;color:#fff!important}.bg-purple-accent-2{background-color:#e040fb!important;color:#fff!important}.bg-purple-accent-3{background-color:#d500f9!important;color:#fff!important}.bg-purple-accent-4{background-color:#a0f!important;color:#fff!important}.bg-deep-purple{background-color:#673ab7!important;color:#fff!important}.bg-deep-purple-lighten-5{background-color:#ede7f6!important;color:#000!important}.bg-deep-purple-lighten-4{background-color:#d1c4e9!important;color:#000!important}.bg-deep-purple-lighten-3{background-color:#b39ddb!important;color:#fff!important}.bg-deep-purple-lighten-2{background-color:#9575cd!important;color:#fff!important}.bg-deep-purple-lighten-1{background-color:#7e57c2!important;color:#fff!important}.bg-deep-purple-darken-1{background-color:#5e35b1!important;color:#fff!important}.bg-deep-purple-darken-2{background-color:#512da8!important;color:#fff!important}.bg-deep-purple-darken-3{background-color:#4527a0!important;color:#fff!important}.bg-deep-purple-darken-4{background-color:#311b92!important;color:#fff!important}.bg-deep-purple-accent-1{background-color:#b388ff!important;color:#fff!important}.bg-deep-purple-accent-2{background-color:#7c4dff!important;color:#fff!important}.bg-deep-purple-accent-3{background-color:#651fff!important;color:#fff!important}.bg-deep-purple-accent-4{background-color:#6200ea!important;color:#fff!important}.bg-indigo{background-color:#3f51b5!important;color:#fff!important}.bg-indigo-lighten-5{background-color:#e8eaf6!important;color:#000!important}.bg-indigo-lighten-4{background-color:#c5cae9!important;color:#000!important}.bg-indigo-lighten-3{background-color:#9fa8da!important;color:#fff!important}.bg-indigo-lighten-2{background-color:#7986cb!important;color:#fff!important}.bg-indigo-lighten-1{background-color:#5c6bc0!important;color:#fff!important}.bg-indigo-darken-1{background-color:#3949ab!important;color:#fff!important}.bg-indigo-darken-2{background-color:#303f9f!important;color:#fff!important}.bg-indigo-darken-3{background-color:#283593!important;color:#fff!important}.bg-indigo-darken-4{background-color:#1a237e!important;color:#fff!important}.bg-indigo-accent-1{background-color:#8c9eff!important;color:#fff!important}.bg-indigo-accent-2{background-color:#536dfe!important;color:#fff!important}.bg-indigo-accent-3{background-color:#3d5afe!important;color:#fff!important}.bg-indigo-accent-4{background-color:#304ffe!important;color:#fff!important}.bg-blue{background-color:#2196f3!important;color:#fff!important}.bg-blue-lighten-5{background-color:#e3f2fd!important;color:#000!important}.bg-blue-lighten-4{background-color:#bbdefb!important;color:#000!important}.bg-blue-lighten-3{background-color:#90caf9!important;color:#000!important}.bg-blue-lighten-2{background-color:#64b5f6!important;color:#000!important}.bg-blue-lighten-1{background-color:#42a5f5!important;color:#fff!important}.bg-blue-darken-1{background-color:#1e88e5!important;color:#fff!important}.bg-blue-darken-2{background-color:#1976d2!important;color:#fff!important}.bg-blue-darken-3{background-color:#1565c0!important;color:#fff!important}.bg-blue-darken-4{background-color:#0d47a1!important;color:#fff!important}.bg-blue-accent-1{background-color:#82b1ff!important;color:#000!important}.bg-blue-accent-2{background-color:#448aff!important;color:#fff!important}.bg-blue-accent-3{background-color:#2979ff!important;color:#fff!important}.bg-blue-accent-4{background-color:#2962ff!important;color:#fff!important}.bg-light-blue{background-color:#03a9f4!important;color:#fff!important}.bg-light-blue-lighten-5{background-color:#e1f5fe!important;color:#000!important}.bg-light-blue-lighten-4{background-color:#b3e5fc!important;color:#000!important}.bg-light-blue-lighten-3{background-color:#81d4fa!important;color:#000!important}.bg-light-blue-lighten-2{background-color:#4fc3f7!important;color:#000!important}.bg-light-blue-lighten-1{background-color:#29b6f6!important;color:#000!important}.bg-light-blue-darken-1{background-color:#039be5!important;color:#fff!important}.bg-light-blue-darken-2{background-color:#0288d1!important;color:#fff!important}.bg-light-blue-darken-3{background-color:#0277bd!important;color:#fff!important}.bg-light-blue-darken-4{background-color:#01579b!important;color:#fff!important}.bg-light-blue-accent-1{background-color:#80d8ff!important;color:#000!important}.bg-light-blue-accent-2{background-color:#40c4ff!important;color:#000!important}.bg-light-blue-accent-3{background-color:#00b0ff!important;color:#fff!important}.bg-light-blue-accent-4{background-color:#0091ea!important;color:#fff!important}.bg-cyan{background-color:#00bcd4!important;color:#000!important}.bg-cyan-lighten-5{background-color:#e0f7fa!important;color:#000!important}.bg-cyan-lighten-4{background-color:#b2ebf2!important;color:#000!important}.bg-cyan-lighten-3{background-color:#80deea!important;color:#000!important}.bg-cyan-lighten-2{background-color:#4dd0e1!important;color:#000!important}.bg-cyan-lighten-1{background-color:#26c6da!important;color:#000!important}.bg-cyan-darken-1{background-color:#00acc1!important;color:#fff!important}.bg-cyan-darken-2{background-color:#0097a7!important;color:#fff!important}.bg-cyan-darken-3{background-color:#00838f!important;color:#fff!important}.bg-cyan-darken-4{background-color:#006064!important;color:#fff!important}.bg-cyan-accent-1{background-color:#84ffff!important;color:#000!important}.bg-cyan-accent-2{background-color:#18ffff!important;color:#000!important}.bg-cyan-accent-3{background-color:#00e5ff!important;color:#000!important}.bg-cyan-accent-4{background-color:#00b8d4!important;color:#fff!important}.bg-teal{background-color:#009688!important;color:#fff!important}.bg-teal-lighten-5{background-color:#e0f2f1!important;color:#000!important}.bg-teal-lighten-4{background-color:#b2dfdb!important;color:#000!important}.bg-teal-lighten-3{background-color:#80cbc4!important;color:#000!important}.bg-teal-lighten-2{background-color:#4db6ac!important;color:#fff!important}.bg-teal-lighten-1{background-color:#26a69a!important;color:#fff!important}.bg-teal-darken-1{background-color:#00897b!important;color:#fff!important}.bg-teal-darken-2{background-color:#00796b!important;color:#fff!important}.bg-teal-darken-3{background-color:#00695c!important;color:#fff!important}.bg-teal-darken-4{background-color:#004d40!important;color:#fff!important}.bg-teal-accent-1{background-color:#a7ffeb!important;color:#000!important}.bg-teal-accent-2{background-color:#64ffda!important;color:#000!important}.bg-teal-accent-3{background-color:#1de9b6!important;color:#000!important}.bg-teal-accent-4{background-color:#00bfa5!important;color:#fff!important}.bg-green{background-color:#4caf50!important;color:#fff!important}.bg-green-lighten-5{background-color:#e8f5e9!important;color:#000!important}.bg-green-lighten-4{background-color:#c8e6c9!important;color:#000!important}.bg-green-lighten-3{background-color:#a5d6a7!important;color:#000!important}.bg-green-lighten-2{background-color:#81c784!important;color:#000!important}.bg-green-lighten-1{background-color:#66bb6a!important;color:#fff!important}.bg-green-darken-1{background-color:#43a047!important;color:#fff!important}.bg-green-darken-2{background-color:#388e3c!important;color:#fff!important}.bg-green-darken-3{background-color:#2e7d32!important;color:#fff!important}.bg-green-darken-4{background-color:#1b5e20!important;color:#fff!important}.bg-green-accent-1{background-color:#b9f6ca!important;color:#000!important}.bg-green-accent-2{background-color:#69f0ae!important;color:#000!important}.bg-green-accent-3{background-color:#00e676!important;color:#000!important}.bg-green-accent-4{background-color:#00c853!important;color:#000!important}.bg-light-green{background-color:#8bc34a!important;color:#000!important}.bg-light-green-lighten-5{background-color:#f1f8e9!important;color:#000!important}.bg-light-green-lighten-4{background-color:#dcedc8!important;color:#000!important}.bg-light-green-lighten-3{background-color:#c5e1a5!important;color:#000!important}.bg-light-green-lighten-2{background-color:#aed581!important;color:#000!important}.bg-light-green-lighten-1{background-color:#9ccc65!important;color:#000!important}.bg-light-green-darken-1{background-color:#7cb342!important;color:#fff!important}.bg-light-green-darken-2{background-color:#689f38!important;color:#fff!important}.bg-light-green-darken-3{background-color:#558b2f!important;color:#fff!important}.bg-light-green-darken-4{background-color:#33691e!important;color:#fff!important}.bg-light-green-accent-1{background-color:#ccff90!important;color:#000!important}.bg-light-green-accent-2{background-color:#b2ff59!important;color:#000!important}.bg-light-green-accent-3{background-color:#76ff03!important;color:#000!important}.bg-light-green-accent-4{background-color:#64dd17!important;color:#000!important}.bg-lime{background-color:#cddc39!important;color:#000!important}.bg-lime-lighten-5{background-color:#f9fbe7!important;color:#000!important}.bg-lime-lighten-4{background-color:#f0f4c3!important;color:#000!important}.bg-lime-lighten-3{background-color:#e6ee9c!important;color:#000!important}.bg-lime-lighten-2{background-color:#dce775!important;color:#000!important}.bg-lime-lighten-1{background-color:#d4e157!important;color:#000!important}.bg-lime-darken-1{background-color:#c0ca33!important;color:#000!important}.bg-lime-darken-2{background-color:#afb42b!important;color:#000!important}.bg-lime-darken-3{background-color:#9e9d24!important;color:#fff!important}.bg-lime-darken-4{background-color:#827717!important;color:#fff!important}.bg-lime-accent-1{background-color:#f4ff81!important;color:#000!important}.bg-lime-accent-2{background-color:#eeff41!important;color:#000!important}.bg-lime-accent-3{background-color:#c6ff00!important;color:#000!important}.bg-lime-accent-4{background-color:#aeea00!important;color:#000!important}.bg-yellow{background-color:#ffeb3b!important;color:#000!important}.bg-yellow-lighten-5{background-color:#fffde7!important;color:#000!important}.bg-yellow-lighten-4{background-color:#fff9c4!important;color:#000!important}.bg-yellow-lighten-3{background-color:#fff59d!important;color:#000!important}.bg-yellow-lighten-2{background-color:#fff176!important;color:#000!important}.bg-yellow-lighten-1{background-color:#ffee58!important;color:#000!important}.bg-yellow-darken-1{background-color:#fdd835!important;color:#000!important}.bg-yellow-darken-2{background-color:#fbc02d!important;color:#000!important}.bg-yellow-darken-3{background-color:#f9a825!important;color:#000!important}.bg-yellow-darken-4{background-color:#f57f17!important;color:#fff!important}.bg-yellow-accent-1{background-color:#ffff8d!important;color:#000!important}.bg-yellow-accent-2{background-color:#ff0!important;color:#000!important}.bg-yellow-accent-3{background-color:#ffea00!important;color:#000!important}.bg-yellow-accent-4{background-color:#ffd600!important;color:#000!important}.bg-amber{background-color:#ffc107!important;color:#000!important}.bg-amber-lighten-5{background-color:#fff8e1!important;color:#000!important}.bg-amber-lighten-4{background-color:#ffecb3!important;color:#000!important}.bg-amber-lighten-3{background-color:#ffe082!important;color:#000!important}.bg-amber-lighten-2{background-color:#ffd54f!important;color:#000!important}.bg-amber-lighten-1{background-color:#ffca28!important;color:#000!important}.bg-amber-darken-1{background-color:#ffb300!important;color:#000!important}.bg-amber-darken-2{background-color:#ffa000!important;color:#000!important}.bg-amber-darken-3{background-color:#ff8f00!important;color:#000!important}.bg-amber-darken-4{background-color:#ff6f00!important;color:#fff!important}.bg-amber-accent-1{background-color:#ffe57f!important;color:#000!important}.bg-amber-accent-2{background-color:#ffd740!important;color:#000!important}.bg-amber-accent-3{background-color:#ffc400!important;color:#000!important}.bg-amber-accent-4{background-color:#ffab00!important;color:#000!important}.bg-orange{background-color:#ff9800!important;color:#000!important}.bg-orange-lighten-5{background-color:#fff3e0!important;color:#000!important}.bg-orange-lighten-4{background-color:#ffe0b2!important;color:#000!important}.bg-orange-lighten-3{background-color:#ffcc80!important;color:#000!important}.bg-orange-lighten-2{background-color:#ffb74d!important;color:#000!important}.bg-orange-lighten-1{background-color:#ffa726!important;color:#000!important}.bg-orange-darken-1{background-color:#fb8c00!important;color:#fff!important}.bg-orange-darken-2{background-color:#f57c00!important;color:#fff!important}.bg-orange-darken-3{background-color:#ef6c00!important;color:#fff!important}.bg-orange-darken-4{background-color:#e65100!important;color:#fff!important}.bg-orange-accent-1{background-color:#ffd180!important;color:#000!important}.bg-orange-accent-2{background-color:#ffab40!important;color:#000!important}.bg-orange-accent-3{background-color:#ff9100!important;color:#000!important}.bg-orange-accent-4{background-color:#ff6d00!important;color:#fff!important}.bg-deep-orange{background-color:#ff5722!important;color:#fff!important}.bg-deep-orange-lighten-5{background-color:#fbe9e7!important;color:#000!important}.bg-deep-orange-lighten-4{background-color:#ffccbc!important;color:#000!important}.bg-deep-orange-lighten-3{background-color:#ffab91!important;color:#000!important}.bg-deep-orange-lighten-2{background-color:#ff8a65!important;color:#000!important}.bg-deep-orange-lighten-1{background-color:#ff7043!important;color:#fff!important}.bg-deep-orange-darken-1{background-color:#f4511e!important;color:#fff!important}.bg-deep-orange-darken-2{background-color:#e64a19!important;color:#fff!important}.bg-deep-orange-darken-3{background-color:#d84315!important;color:#fff!important}.bg-deep-orange-darken-4{background-color:#bf360c!important;color:#fff!important}.bg-deep-orange-accent-1{background-color:#ff9e80!important;color:#000!important}.bg-deep-orange-accent-2{background-color:#ff6e40!important;color:#fff!important}.bg-deep-orange-accent-3{background-color:#ff3d00!important;color:#fff!important}.bg-deep-orange-accent-4{background-color:#dd2c00!important;color:#fff!important}.bg-brown{background-color:#795548!important;color:#fff!important}.bg-brown-lighten-5{background-color:#efebe9!important;color:#000!important}.bg-brown-lighten-4{background-color:#d7ccc8!important;color:#000!important}.bg-brown-lighten-3{background-color:#bcaaa4!important;color:#000!important}.bg-brown-lighten-2{background-color:#a1887f!important;color:#fff!important}.bg-brown-lighten-1{background-color:#8d6e63!important;color:#fff!important}.bg-brown-darken-1{background-color:#6d4c41!important;color:#fff!important}.bg-brown-darken-2{background-color:#5d4037!important;color:#fff!important}.bg-brown-darken-3{background-color:#4e342e!important;color:#fff!important}.bg-brown-darken-4{background-color:#3e2723!important;color:#fff!important}.bg-blue-grey{background-color:#607d8b!important;color:#fff!important}.bg-blue-grey-lighten-5{background-color:#eceff1!important;color:#000!important}.bg-blue-grey-lighten-4{background-color:#cfd8dc!important;color:#000!important}.bg-blue-grey-lighten-3{background-color:#b0bec5!important;color:#000!important}.bg-blue-grey-lighten-2{background-color:#90a4ae!important;color:#fff!important}.bg-blue-grey-lighten-1{background-color:#78909c!important;color:#fff!important}.bg-blue-grey-darken-1{background-color:#546e7a!important;color:#fff!important}.bg-blue-grey-darken-2{background-color:#455a64!important;color:#fff!important}.bg-blue-grey-darken-3{background-color:#37474f!important;color:#fff!important}.bg-blue-grey-darken-4{background-color:#263238!important;color:#fff!important}.bg-grey{background-color:#9e9e9e!important;color:#fff!important}.bg-grey-lighten-5{background-color:#fafafa!important;color:#000!important}.bg-grey-lighten-4{background-color:#f5f5f5!important;color:#000!important}.bg-grey-lighten-3{background-color:#eee!important;color:#000!important}.bg-grey-lighten-2{background-color:#e0e0e0!important;color:#000!important}.bg-grey-lighten-1{background-color:#bdbdbd!important;color:#000!important}.bg-grey-darken-1{background-color:#757575!important;color:#fff!important}.bg-grey-darken-2{background-color:#616161!important;color:#fff!important}.bg-grey-darken-3{background-color:#424242!important;color:#fff!important}.bg-grey-darken-4{background-color:#212121!important;color:#fff!important}.bg-shades-black{background-color:#000!important;color:#fff!important}.bg-shades-white{background-color:#fff!important;color:#000!important}.bg-shades-transparent{background-color:transparent!important;color:currentColor!important}.text-black{color:#000!important}.text-white{color:#fff!important}.text-transparent{color:transparent!important}.text-red{color:#f44336!important}.text-red-lighten-5{color:#ffebee!important}.text-red-lighten-4{color:#ffcdd2!important}.text-red-lighten-3{color:#ef9a9a!important}.text-red-lighten-2{color:#e57373!important}.text-red-lighten-1{color:#ef5350!important}.text-red-darken-1{color:#e53935!important}.text-red-darken-2{color:#d32f2f!important}.text-red-darken-3{color:#c62828!important}.text-red-darken-4{color:#b71c1c!important}.text-red-accent-1{color:#ff8a80!important}.text-red-accent-2{color:#ff5252!important}.text-red-accent-3{color:#ff1744!important}.text-red-accent-4{color:#d50000!important}.text-pink{color:#e91e63!important}.text-pink-lighten-5{color:#fce4ec!important}.text-pink-lighten-4{color:#f8bbd0!important}.text-pink-lighten-3{color:#f48fb1!important}.text-pink-lighten-2{color:#f06292!important}.text-pink-lighten-1{color:#ec407a!important}.text-pink-darken-1{color:#d81b60!important}.text-pink-darken-2{color:#c2185b!important}.text-pink-darken-3{color:#ad1457!important}.text-pink-darken-4{color:#880e4f!important}.text-pink-accent-1{color:#ff80ab!important}.text-pink-accent-2{color:#ff4081!important}.text-pink-accent-3{color:#f50057!important}.text-pink-accent-4{color:#c51162!important}.text-purple{color:#9c27b0!important}.text-purple-lighten-5{color:#f3e5f5!important}.text-purple-lighten-4{color:#e1bee7!important}.text-purple-lighten-3{color:#ce93d8!important}.text-purple-lighten-2{color:#ba68c8!important}.text-purple-lighten-1{color:#ab47bc!important}.text-purple-darken-1{color:#8e24aa!important}.text-purple-darken-2{color:#7b1fa2!important}.text-purple-darken-3{color:#6a1b9a!important}.text-purple-darken-4{color:#4a148c!important}.text-purple-accent-1{color:#ea80fc!important}.text-purple-accent-2{color:#e040fb!important}.text-purple-accent-3{color:#d500f9!important}.text-purple-accent-4{color:#a0f!important}.text-deep-purple{color:#673ab7!important}.text-deep-purple-lighten-5{color:#ede7f6!important}.text-deep-purple-lighten-4{color:#d1c4e9!important}.text-deep-purple-lighten-3{color:#b39ddb!important}.text-deep-purple-lighten-2{color:#9575cd!important}.text-deep-purple-lighten-1{color:#7e57c2!important}.text-deep-purple-darken-1{color:#5e35b1!important}.text-deep-purple-darken-2{color:#512da8!important}.text-deep-purple-darken-3{color:#4527a0!important}.text-deep-purple-darken-4{color:#311b92!important}.text-deep-purple-accent-1{color:#b388ff!important}.text-deep-purple-accent-2{color:#7c4dff!important}.text-deep-purple-accent-3{color:#651fff!important}.text-deep-purple-accent-4{color:#6200ea!important}.text-indigo{color:#3f51b5!important}.text-indigo-lighten-5{color:#e8eaf6!important}.text-indigo-lighten-4{color:#c5cae9!important}.text-indigo-lighten-3{color:#9fa8da!important}.text-indigo-lighten-2{color:#7986cb!important}.text-indigo-lighten-1{color:#5c6bc0!important}.text-indigo-darken-1{color:#3949ab!important}.text-indigo-darken-2{color:#303f9f!important}.text-indigo-darken-3{color:#283593!important}.text-indigo-darken-4{color:#1a237e!important}.text-indigo-accent-1{color:#8c9eff!important}.text-indigo-accent-2{color:#536dfe!important}.text-indigo-accent-3{color:#3d5afe!important}.text-indigo-accent-4{color:#304ffe!important}.text-blue{color:#2196f3!important}.text-blue-lighten-5{color:#e3f2fd!important}.text-blue-lighten-4{color:#bbdefb!important}.text-blue-lighten-3{color:#90caf9!important}.text-blue-lighten-2{color:#64b5f6!important}.text-blue-lighten-1{color:#42a5f5!important}.text-blue-darken-1{color:#1e88e5!important}.text-blue-darken-2{color:#1976d2!important}.text-blue-darken-3{color:#1565c0!important}.text-blue-darken-4{color:#0d47a1!important}.text-blue-accent-1{color:#82b1ff!important}.text-blue-accent-2{color:#448aff!important}.text-blue-accent-3{color:#2979ff!important}.text-blue-accent-4{color:#2962ff!important}.text-light-blue{color:#03a9f4!important}.text-light-blue-lighten-5{color:#e1f5fe!important}.text-light-blue-lighten-4{color:#b3e5fc!important}.text-light-blue-lighten-3{color:#81d4fa!important}.text-light-blue-lighten-2{color:#4fc3f7!important}.text-light-blue-lighten-1{color:#29b6f6!important}.text-light-blue-darken-1{color:#039be5!important}.text-light-blue-darken-2{color:#0288d1!important}.text-light-blue-darken-3{color:#0277bd!important}.text-light-blue-darken-4{color:#01579b!important}.text-light-blue-accent-1{color:#80d8ff!important}.text-light-blue-accent-2{color:#40c4ff!important}.text-light-blue-accent-3{color:#00b0ff!important}.text-light-blue-accent-4{color:#0091ea!important}.text-cyan{color:#00bcd4!important}.text-cyan-lighten-5{color:#e0f7fa!important}.text-cyan-lighten-4{color:#b2ebf2!important}.text-cyan-lighten-3{color:#80deea!important}.text-cyan-lighten-2{color:#4dd0e1!important}.text-cyan-lighten-1{color:#26c6da!important}.text-cyan-darken-1{color:#00acc1!important}.text-cyan-darken-2{color:#0097a7!important}.text-cyan-darken-3{color:#00838f!important}.text-cyan-darken-4{color:#006064!important}.text-cyan-accent-1{color:#84ffff!important}.text-cyan-accent-2{color:#18ffff!important}.text-cyan-accent-3{color:#00e5ff!important}.text-cyan-accent-4{color:#00b8d4!important}.text-teal{color:#009688!important}.text-teal-lighten-5{color:#e0f2f1!important}.text-teal-lighten-4{color:#b2dfdb!important}.text-teal-lighten-3{color:#80cbc4!important}.text-teal-lighten-2{color:#4db6ac!important}.text-teal-lighten-1{color:#26a69a!important}.text-teal-darken-1{color:#00897b!important}.text-teal-darken-2{color:#00796b!important}.text-teal-darken-3{color:#00695c!important}.text-teal-darken-4{color:#004d40!important}.text-teal-accent-1{color:#a7ffeb!important}.text-teal-accent-2{color:#64ffda!important}.text-teal-accent-3{color:#1de9b6!important}.text-teal-accent-4{color:#00bfa5!important}.text-green{color:#4caf50!important}.text-green-lighten-5{color:#e8f5e9!important}.text-green-lighten-4{color:#c8e6c9!important}.text-green-lighten-3{color:#a5d6a7!important}.text-green-lighten-2{color:#81c784!important}.text-green-lighten-1{color:#66bb6a!important}.text-green-darken-1{color:#43a047!important}.text-green-darken-2{color:#388e3c!important}.text-green-darken-3{color:#2e7d32!important}.text-green-darken-4{color:#1b5e20!important}.text-green-accent-1{color:#b9f6ca!important}.text-green-accent-2{color:#69f0ae!important}.text-green-accent-3{color:#00e676!important}.text-green-accent-4{color:#00c853!important}.text-light-green{color:#8bc34a!important}.text-light-green-lighten-5{color:#f1f8e9!important}.text-light-green-lighten-4{color:#dcedc8!important}.text-light-green-lighten-3{color:#c5e1a5!important}.text-light-green-lighten-2{color:#aed581!important}.text-light-green-lighten-1{color:#9ccc65!important}.text-light-green-darken-1{color:#7cb342!important}.text-light-green-darken-2{color:#689f38!important}.text-light-green-darken-3{color:#558b2f!important}.text-light-green-darken-4{color:#33691e!important}.text-light-green-accent-1{color:#ccff90!important}.text-light-green-accent-2{color:#b2ff59!important}.text-light-green-accent-3{color:#76ff03!important}.text-light-green-accent-4{color:#64dd17!important}.text-lime{color:#cddc39!important}.text-lime-lighten-5{color:#f9fbe7!important}.text-lime-lighten-4{color:#f0f4c3!important}.text-lime-lighten-3{color:#e6ee9c!important}.text-lime-lighten-2{color:#dce775!important}.text-lime-lighten-1{color:#d4e157!important}.text-lime-darken-1{color:#c0ca33!important}.text-lime-darken-2{color:#afb42b!important}.text-lime-darken-3{color:#9e9d24!important}.text-lime-darken-4{color:#827717!important}.text-lime-accent-1{color:#f4ff81!important}.text-lime-accent-2{color:#eeff41!important}.text-lime-accent-3{color:#c6ff00!important}.text-lime-accent-4{color:#aeea00!important}.text-yellow{color:#ffeb3b!important}.text-yellow-lighten-5{color:#fffde7!important}.text-yellow-lighten-4{color:#fff9c4!important}.text-yellow-lighten-3{color:#fff59d!important}.text-yellow-lighten-2{color:#fff176!important}.text-yellow-lighten-1{color:#ffee58!important}.text-yellow-darken-1{color:#fdd835!important}.text-yellow-darken-2{color:#fbc02d!important}.text-yellow-darken-3{color:#f9a825!important}.text-yellow-darken-4{color:#f57f17!important}.text-yellow-accent-1{color:#ffff8d!important}.text-yellow-accent-2{color:#ff0!important}.text-yellow-accent-3{color:#ffea00!important}.text-yellow-accent-4{color:#ffd600!important}.text-amber{color:#ffc107!important}.text-amber-lighten-5{color:#fff8e1!important}.text-amber-lighten-4{color:#ffecb3!important}.text-amber-lighten-3{color:#ffe082!important}.text-amber-lighten-2{color:#ffd54f!important}.text-amber-lighten-1{color:#ffca28!important}.text-amber-darken-1{color:#ffb300!important}.text-amber-darken-2{color:#ffa000!important}.text-amber-darken-3{color:#ff8f00!important}.text-amber-darken-4{color:#ff6f00!important}.text-amber-accent-1{color:#ffe57f!important}.text-amber-accent-2{color:#ffd740!important}.text-amber-accent-3{color:#ffc400!important}.text-amber-accent-4{color:#ffab00!important}.text-orange{color:#ff9800!important}.text-orange-lighten-5{color:#fff3e0!important}.text-orange-lighten-4{color:#ffe0b2!important}.text-orange-lighten-3{color:#ffcc80!important}.text-orange-lighten-2{color:#ffb74d!important}.text-orange-lighten-1{color:#ffa726!important}.text-orange-darken-1{color:#fb8c00!important}.text-orange-darken-2{color:#f57c00!important}.text-orange-darken-3{color:#ef6c00!important}.text-orange-darken-4{color:#e65100!important}.text-orange-accent-1{color:#ffd180!important}.text-orange-accent-2{color:#ffab40!important}.text-orange-accent-3{color:#ff9100!important}.text-orange-accent-4{color:#ff6d00!important}.text-deep-orange{color:#ff5722!important}.text-deep-orange-lighten-5{color:#fbe9e7!important}.text-deep-orange-lighten-4{color:#ffccbc!important}.text-deep-orange-lighten-3{color:#ffab91!important}.text-deep-orange-lighten-2{color:#ff8a65!important}.text-deep-orange-lighten-1{color:#ff7043!important}.text-deep-orange-darken-1{color:#f4511e!important}.text-deep-orange-darken-2{color:#e64a19!important}.text-deep-orange-darken-3{color:#d84315!important}.text-deep-orange-darken-4{color:#bf360c!important}.text-deep-orange-accent-1{color:#ff9e80!important}.text-deep-orange-accent-2{color:#ff6e40!important}.text-deep-orange-accent-3{color:#ff3d00!important}.text-deep-orange-accent-4{color:#dd2c00!important}.text-brown{color:#795548!important}.text-brown-lighten-5{color:#efebe9!important}.text-brown-lighten-4{color:#d7ccc8!important}.text-brown-lighten-3{color:#bcaaa4!important}.text-brown-lighten-2{color:#a1887f!important}.text-brown-lighten-1{color:#8d6e63!important}.text-brown-darken-1{color:#6d4c41!important}.text-brown-darken-2{color:#5d4037!important}.text-brown-darken-3{color:#4e342e!important}.text-brown-darken-4{color:#3e2723!important}.text-blue-grey{color:#607d8b!important}.text-blue-grey-lighten-5{color:#eceff1!important}.text-blue-grey-lighten-4{color:#cfd8dc!important}.text-blue-grey-lighten-3{color:#b0bec5!important}.text-blue-grey-lighten-2{color:#90a4ae!important}.text-blue-grey-lighten-1{color:#78909c!important}.text-blue-grey-darken-1{color:#546e7a!important}.text-blue-grey-darken-2{color:#455a64!important}.text-blue-grey-darken-3{color:#37474f!important}.text-blue-grey-darken-4{color:#263238!important}.text-grey{color:#9e9e9e!important}.text-grey-lighten-5{color:#fafafa!important}.text-grey-lighten-4{color:#f5f5f5!important}.text-grey-lighten-3{color:#eee!important}.text-grey-lighten-2{color:#e0e0e0!important}.text-grey-lighten-1{color:#bdbdbd!important}.text-grey-darken-1{color:#757575!important}.text-grey-darken-2{color:#616161!important}.text-grey-darken-3{color:#424242!important}.text-grey-darken-4{color:#212121!important}.text-shades-black{color:#000!important}.text-shades-white{color:#fff!important}.text-shades-transparent{color:transparent!important}/*! * ress.css • v2.0.4 * MIT License * github.com/filipelinhares/ress diff --git a/zt_backend/dist_app/assets/index-d25ef89f.js b/zt_backend/dist_app/assets/index-d25ef89f.js deleted file mode 100644 index 2c2529d1..00000000 --- a/zt_backend/dist_app/assets/index-d25ef89f.js +++ /dev/null @@ -1,1608 +0,0 @@ -var Kie=Object.defineProperty;var Xie=(o,b,y)=>b in o?Kie(o,b,{enumerable:!0,configurable:!0,writable:!0,value:y}):o[b]=y;var pl=(o,b,y)=>(Xie(o,typeof b!="symbol"?b+"":b,y),y),Jie=(o,b,y)=>{if(!b.has(o))throw TypeError("Cannot "+y)};var DJ=(o,b,y)=>{if(b.has(o))throw TypeError("Cannot add the same private member more than once");b instanceof WeakSet?b.add(o):b.set(o,y)};var zF=(o,b,y)=>(Jie(o,b,"access private method"),y);(function(){const b=document.createElement("link").relList;if(b&&b.supports&&b.supports("modulepreload"))return;for(const G of document.querySelectorAll('link[rel="modulepreload"]'))T(G);new MutationObserver(G=>{for(const V of G)if(V.type==="childList")for(const L of V.addedNodes)L.tagName==="LINK"&&L.rel==="modulepreload"&&T(L)}).observe(document,{childList:!0,subtree:!0});function y(G){const V={};return G.integrity&&(V.integrity=G.integrity),G.referrerPolicy&&(V.referrerPolicy=G.referrerPolicy),G.crossOrigin==="use-credentials"?V.credentials="include":G.crossOrigin==="anonymous"?V.credentials="omit":V.credentials="same-origin",V}function T(G){if(G.ep)return;G.ep=!0;const V=y(G);fetch(G.href,V)}})();function Ure(o,b){return function(){return o.apply(b,arguments)}}const{toString:Qie}=Object.prototype,{getPrototypeOf:NQ}=Object,IB=(o=>b=>{const y=Qie.call(b);return o[y]||(o[y]=y.slice(8,-1).toLowerCase())})(Object.create(null)),E0=o=>(o=o.toLowerCase(),b=>IB(b)===o),NB=o=>b=>typeof b===o,{isArray:LE}=Array,E6=NB("undefined");function qie(o){return o!==null&&!E6(o)&&o.constructor!==null&&!E6(o.constructor)&&pg(o.constructor.isBuffer)&&o.constructor.isBuffer(o)}const Wre=E0("ArrayBuffer");function ele(o){let b;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?b=ArrayBuffer.isView(o):b=o&&o.buffer&&Wre(o.buffer),b}const tle=NB("string"),pg=NB("function"),Gre=NB("number"),FB=o=>o!==null&&typeof o=="object",nle=o=>o===!0||o===!1,tB=o=>{if(IB(o)!=="object")return!1;const b=NQ(o);return(b===null||b===Object.prototype||Object.getPrototypeOf(b)===null)&&!(Symbol.toStringTag in o)&&!(Symbol.iterator in o)},rle=E0("Date"),ole=E0("File"),ale=E0("Blob"),sle=E0("FileList"),ile=o=>FB(o)&&pg(o.pipe),lle=o=>{let b;return o&&(typeof FormData=="function"&&o instanceof FormData||pg(o.append)&&((b=IB(o))==="formdata"||b==="object"&&pg(o.toString)&&o.toString()==="[object FormData]"))},cle=E0("URLSearchParams"),ule=o=>o.trim?o.trim():o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function W6(o,b,{allOwnKeys:y=!1}={}){if(o===null||typeof o>"u")return;let T,G;if(typeof o!="object"&&(o=[o]),LE(o))for(T=0,G=o.length;T0;)if(G=y[T],b===G.toLowerCase())return G;return null}const jre=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Yre=o=>!E6(o)&&o!==jre;function tQ(){const{caseless:o}=Yre(this)&&this||{},b={},y=(T,G)=>{const V=o&&Zre(b,G)||G;tB(b[V])&&tB(T)?b[V]=tQ(b[V],T):tB(T)?b[V]=tQ({},T):LE(T)?b[V]=T.slice():b[V]=T};for(let T=0,G=arguments.length;T(W6(b,(G,V)=>{y&&pg(G)?o[V]=Ure(G,y):o[V]=G},{allOwnKeys:T}),o),dle=o=>(o.charCodeAt(0)===65279&&(o=o.slice(1)),o),hle=(o,b,y,T)=>{o.prototype=Object.create(b.prototype,T),o.prototype.constructor=o,Object.defineProperty(o,"super",{value:b.prototype}),y&&Object.assign(o.prototype,y)},mle=(o,b,y,T)=>{let G,V,L;const A={};if(b=b||{},o==null)return b;do{for(G=Object.getOwnPropertyNames(o),V=G.length;V-- >0;)L=G[V],(!T||T(L,o,b))&&!A[L]&&(b[L]=o[L],A[L]=!0);o=y!==!1&&NQ(o)}while(o&&(!y||y(o,b))&&o!==Object.prototype);return b},gle=(o,b,y)=>{o=String(o),(y===void 0||y>o.length)&&(y=o.length),y-=b.length;const T=o.indexOf(b,y);return T!==-1&&T===y},ple=o=>{if(!o)return null;if(LE(o))return o;let b=o.length;if(!Gre(b))return null;const y=new Array(b);for(;b-- >0;)y[b]=o[b];return y},vle=(o=>b=>o&&b instanceof o)(typeof Uint8Array<"u"&&NQ(Uint8Array)),yle=(o,b)=>{const T=(o&&o[Symbol.iterator]).call(o);let G;for(;(G=T.next())&&!G.done;){const V=G.value;b.call(o,V[0],V[1])}},ble=(o,b)=>{let y;const T=[];for(;(y=o.exec(b))!==null;)T.push(y);return T},xle=E0("HTMLFormElement"),wle=o=>o.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(y,T,G){return T.toUpperCase()+G}),Ite=(({hasOwnProperty:o})=>(b,y)=>o.call(b,y))(Object.prototype),Cle=E0("RegExp"),Kre=(o,b)=>{const y=Object.getOwnPropertyDescriptors(o),T={};W6(y,(G,V)=>{let L;(L=b(G,V,o))!==!1&&(T[V]=L||G)}),Object.defineProperties(o,T)},Sle=o=>{Kre(o,(b,y)=>{if(pg(o)&&["arguments","caller","callee"].indexOf(y)!==-1)return!1;const T=o[y];if(pg(T)){if(b.enumerable=!1,"writable"in b){b.writable=!1;return}b.set||(b.set=()=>{throw Error("Can not rewrite read-only method '"+y+"'")})}})},Tle=(o,b)=>{const y={},T=G=>{G.forEach(V=>{y[V]=!0})};return LE(o)?T(o):T(String(o).split(b)),y},kle=()=>{},Ale=(o,b)=>(o=+o,Number.isFinite(o)?o:b),$J="abcdefghijklmnopqrstuvwxyz",Nte="0123456789",Xre={DIGIT:Nte,ALPHA:$J,ALPHA_DIGIT:$J+$J.toUpperCase()+Nte},Mle=(o=16,b=Xre.ALPHA_DIGIT)=>{let y="";const{length:T}=b;for(;o--;)y+=b[Math.random()*T|0];return y};function Ele(o){return!!(o&&pg(o.append)&&o[Symbol.toStringTag]==="FormData"&&o[Symbol.iterator])}const _le=o=>{const b=new Array(10),y=(T,G)=>{if(FB(T)){if(b.indexOf(T)>=0)return;if(!("toJSON"in T)){b[G]=T;const V=LE(T)?[]:{};return W6(T,(L,A)=>{const s=y(L,G+1);!E6(s)&&(V[A]=s)}),b[G]=void 0,V}}return T};return y(o,0)},Rle=E0("AsyncFunction"),Lle=o=>o&&(FB(o)||pg(o))&&pg(o.then)&&pg(o.catch),Pr={isArray:LE,isArrayBuffer:Wre,isBuffer:qie,isFormData:lle,isArrayBufferView:ele,isString:tle,isNumber:Gre,isBoolean:nle,isObject:FB,isPlainObject:tB,isUndefined:E6,isDate:rle,isFile:ole,isBlob:ale,isRegExp:Cle,isFunction:pg,isStream:ile,isURLSearchParams:cle,isTypedArray:vle,isFileList:sle,forEach:W6,merge:tQ,extend:fle,trim:ule,stripBOM:dle,inherits:hle,toFlatObject:mle,kindOf:IB,kindOfTest:E0,endsWith:gle,toArray:ple,forEachEntry:yle,matchAll:ble,isHTMLForm:xle,hasOwnProperty:Ite,hasOwnProp:Ite,reduceDescriptors:Kre,freezeMethods:Sle,toObjectSet:Tle,toCamelCase:wle,noop:kle,toFiniteNumber:Ale,findKey:Zre,global:jre,isContextDefined:Yre,ALPHABET:Xre,generateString:Mle,isSpecCompliantForm:Ele,toJSONObject:_le,isAsyncFn:Rle,isThenable:Lle};function Zs(o,b,y,T,G){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",b&&(this.code=b),y&&(this.config=y),T&&(this.request=T),G&&(this.response=G)}Pr.inherits(Zs,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Pr.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Jre=Zs.prototype,Qre={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(o=>{Qre[o]={value:o}});Object.defineProperties(Zs,Qre);Object.defineProperty(Jre,"isAxiosError",{value:!0});Zs.from=(o,b,y,T,G,V)=>{const L=Object.create(Jre);return Pr.toFlatObject(o,L,function(s){return s!==Error.prototype},A=>A!=="isAxiosError"),Zs.call(L,o.message,b,y,T,G),L.cause=o,L.name=o.name,V&&Object.assign(L,V),L};const Dle=null;function nQ(o){return Pr.isPlainObject(o)||Pr.isArray(o)}function qre(o){return Pr.endsWith(o,"[]")?o.slice(0,-2):o}function Fte(o,b,y){return o?o.concat(b).map(function(G,V){return G=qre(G),!y&&V?"["+G+"]":G}).join(y?".":""):b}function $le(o){return Pr.isArray(o)&&!o.some(nQ)}const Ole=Pr.toFlatObject(Pr,{},null,function(b){return/^is[A-Z]/.test(b)});function BB(o,b,y){if(!Pr.isObject(o))throw new TypeError("target must be an object");b=b||new FormData,y=Pr.toFlatObject(y,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,g){return!Pr.isUndefined(g[d])});const T=y.metaTokens,G=y.visitor||h,V=y.dots,L=y.indexes,s=(y.Blob||typeof Blob<"u"&&Blob)&&Pr.isSpecCompliantForm(b);if(!Pr.isFunction(G))throw new TypeError("visitor must be a function");function m(u){if(u===null)return"";if(Pr.isDate(u))return u.toISOString();if(!s&&Pr.isBlob(u))throw new Zs("Blob is not supported. Use a Buffer instead.");return Pr.isArrayBuffer(u)||Pr.isTypedArray(u)?s&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function h(u,d,g){let v=u;if(u&&!g&&typeof u=="object"){if(Pr.endsWith(d,"{}"))d=T?d:d.slice(0,-2),u=JSON.stringify(u);else if(Pr.isArray(u)&&$le(u)||(Pr.isFileList(u)||Pr.endsWith(d,"[]"))&&(v=Pr.toArray(u)))return d=qre(d),v.forEach(function(C,_){!(Pr.isUndefined(C)||C===null)&&b.append(L===!0?Fte([d],_,V):L===null?d:d+"[]",m(C))}),!1}return nQ(u)?!0:(b.append(Fte(g,d,V),m(u)),!1)}const l=[],c=Object.assign(Ole,{defaultVisitor:h,convertValue:m,isVisitable:nQ});function i(u,d){if(!Pr.isUndefined(u)){if(l.indexOf(u)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(u),Pr.forEach(u,function(v,x){(!(Pr.isUndefined(v)||v===null)&&G.call(b,v,Pr.isString(x)?x.trim():x,d,c))===!0&&i(v,d?d.concat(x):[x])}),l.pop()}}if(!Pr.isObject(o))throw new TypeError("data must be an object");return i(o),b}function Bte(o){const b={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'()~]|%20|%00/g,function(T){return b[T]})}function FQ(o,b){this._pairs=[],o&&BB(o,this,b)}const eoe=FQ.prototype;eoe.append=function(b,y){this._pairs.push([b,y])};eoe.toString=function(b){const y=b?function(T){return b.call(this,T,Bte)}:Bte;return this._pairs.map(function(G){return y(G[0])+"="+y(G[1])},"").join("&")};function Ple(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function toe(o,b,y){if(!b)return o;const T=y&&y.encode||Ple,G=y&&y.serialize;let V;if(G?V=G(b,y):V=Pr.isURLSearchParams(b)?b.toString():new FQ(b,y).toString(T),V){const L=o.indexOf("#");L!==-1&&(o=o.slice(0,L)),o+=(o.indexOf("?")===-1?"?":"&")+V}return o}class Ile{constructor(){this.handlers=[]}use(b,y,T){return this.handlers.push({fulfilled:b,rejected:y,synchronous:T?T.synchronous:!1,runWhen:T?T.runWhen:null}),this.handlers.length-1}eject(b){this.handlers[b]&&(this.handlers[b]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(b){Pr.forEach(this.handlers,function(T){T!==null&&b(T)})}}const Hte=Ile,noe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nle=typeof URLSearchParams<"u"?URLSearchParams:FQ,Fle=typeof FormData<"u"?FormData:null,Ble=typeof Blob<"u"?Blob:null,Hle={isBrowser:!0,classes:{URLSearchParams:Nle,FormData:Fle,Blob:Ble},protocols:["http","https","file","blob","url","data"]},roe=typeof window<"u"&&typeof document<"u",zle=(o=>roe&&["ReactNative","NativeScript","NS"].indexOf(o)<0)(typeof navigator<"u"&&navigator.product),Vle=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ule=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:roe,hasStandardBrowserEnv:zle,hasStandardBrowserWebWorkerEnv:Vle},Symbol.toStringTag,{value:"Module"})),w0={...Ule,...Hle};function Wle(o,b){return BB(o,new w0.classes.URLSearchParams,Object.assign({visitor:function(y,T,G,V){return w0.isNode&&Pr.isBuffer(y)?(this.append(T,y.toString("base64")),!1):V.defaultVisitor.apply(this,arguments)}},b))}function Gle(o){return Pr.matchAll(/\w+|\[(\w*)]/g,o).map(b=>b[0]==="[]"?"":b[1]||b[0])}function Zle(o){const b={},y=Object.keys(o);let T;const G=y.length;let V;for(T=0;T=y.length;return L=!L&&Pr.isArray(G)?G.length:L,s?(Pr.hasOwnProp(G,L)?G[L]=[G[L],T]:G[L]=T,!A):((!G[L]||!Pr.isObject(G[L]))&&(G[L]=[]),b(y,T,G[L],V)&&Pr.isArray(G[L])&&(G[L]=Zle(G[L])),!A)}if(Pr.isFormData(o)&&Pr.isFunction(o.entries)){const y={};return Pr.forEachEntry(o,(T,G)=>{b(Gle(T),G,y,0)}),y}return null}function jle(o,b,y){if(Pr.isString(o))try{return(b||JSON.parse)(o),Pr.trim(o)}catch(T){if(T.name!=="SyntaxError")throw T}return(y||JSON.stringify)(o)}const BQ={transitional:noe,adapter:["xhr","http"],transformRequest:[function(b,y){const T=y.getContentType()||"",G=T.indexOf("application/json")>-1,V=Pr.isObject(b);if(V&&Pr.isHTMLForm(b)&&(b=new FormData(b)),Pr.isFormData(b))return G&&G?JSON.stringify(ooe(b)):b;if(Pr.isArrayBuffer(b)||Pr.isBuffer(b)||Pr.isStream(b)||Pr.isFile(b)||Pr.isBlob(b))return b;if(Pr.isArrayBufferView(b))return b.buffer;if(Pr.isURLSearchParams(b))return y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),b.toString();let A;if(V){if(T.indexOf("application/x-www-form-urlencoded")>-1)return Wle(b,this.formSerializer).toString();if((A=Pr.isFileList(b))||T.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return BB(A?{"files[]":b}:b,s&&new s,this.formSerializer)}}return V||G?(y.setContentType("application/json",!1),jle(b)):b}],transformResponse:[function(b){const y=this.transitional||BQ.transitional,T=y&&y.forcedJSONParsing,G=this.responseType==="json";if(b&&Pr.isString(b)&&(T&&!this.responseType||G)){const L=!(y&&y.silentJSONParsing)&&G;try{return JSON.parse(b)}catch(A){if(L)throw A.name==="SyntaxError"?Zs.from(A,Zs.ERR_BAD_RESPONSE,this,null,this.response):A}}return b}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:w0.classes.FormData,Blob:w0.classes.Blob},validateStatus:function(b){return b>=200&&b<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Pr.forEach(["delete","get","head","post","put","patch"],o=>{BQ.headers[o]={}});const HQ=BQ,Yle=Pr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kle=o=>{const b={};let y,T,G;return o&&o.split(` -`).forEach(function(L){G=L.indexOf(":"),y=L.substring(0,G).trim().toLowerCase(),T=L.substring(G+1).trim(),!(!y||b[y]&&Yle[y])&&(y==="set-cookie"?b[y]?b[y].push(T):b[y]=[T]:b[y]=b[y]?b[y]+", "+T:T)}),b},zte=Symbol("internals");function p6(o){return o&&String(o).trim().toLowerCase()}function nB(o){return o===!1||o==null?o:Pr.isArray(o)?o.map(nB):String(o)}function Xle(o){const b=Object.create(null),y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let T;for(;T=y.exec(o);)b[T[1]]=T[2];return b}const Jle=o=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());function OJ(o,b,y,T,G){if(Pr.isFunction(T))return T.call(this,b,y);if(G&&(b=y),!!Pr.isString(b)){if(Pr.isString(T))return b.indexOf(T)!==-1;if(Pr.isRegExp(T))return T.test(b)}}function Qle(o){return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(b,y,T)=>y.toUpperCase()+T)}function qle(o,b){const y=Pr.toCamelCase(" "+b);["get","set","has"].forEach(T=>{Object.defineProperty(o,T+y,{value:function(G,V,L){return this[T].call(this,b,G,V,L)},configurable:!0})})}class HB{constructor(b){b&&this.set(b)}set(b,y,T){const G=this;function V(A,s,m){const h=p6(s);if(!h)throw new Error("header name must be a non-empty string");const l=Pr.findKey(G,h);(!l||G[l]===void 0||m===!0||m===void 0&&G[l]!==!1)&&(G[l||s]=nB(A))}const L=(A,s)=>Pr.forEach(A,(m,h)=>V(m,h,s));return Pr.isPlainObject(b)||b instanceof this.constructor?L(b,y):Pr.isString(b)&&(b=b.trim())&&!Jle(b)?L(Kle(b),y):b!=null&&V(y,b,T),this}get(b,y){if(b=p6(b),b){const T=Pr.findKey(this,b);if(T){const G=this[T];if(!y)return G;if(y===!0)return Xle(G);if(Pr.isFunction(y))return y.call(this,G,T);if(Pr.isRegExp(y))return y.exec(G);throw new TypeError("parser must be boolean|regexp|function")}}}has(b,y){if(b=p6(b),b){const T=Pr.findKey(this,b);return!!(T&&this[T]!==void 0&&(!y||OJ(this,this[T],T,y)))}return!1}delete(b,y){const T=this;let G=!1;function V(L){if(L=p6(L),L){const A=Pr.findKey(T,L);A&&(!y||OJ(T,T[A],A,y))&&(delete T[A],G=!0)}}return Pr.isArray(b)?b.forEach(V):V(b),G}clear(b){const y=Object.keys(this);let T=y.length,G=!1;for(;T--;){const V=y[T];(!b||OJ(this,this[V],V,b,!0))&&(delete this[V],G=!0)}return G}normalize(b){const y=this,T={};return Pr.forEach(this,(G,V)=>{const L=Pr.findKey(T,V);if(L){y[L]=nB(G),delete y[V];return}const A=b?Qle(V):String(V).trim();A!==V&&delete y[V],y[A]=nB(G),T[A]=!0}),this}concat(...b){return this.constructor.concat(this,...b)}toJSON(b){const y=Object.create(null);return Pr.forEach(this,(T,G)=>{T!=null&&T!==!1&&(y[G]=b&&Pr.isArray(T)?T.join(", "):T)}),y}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([b,y])=>b+": "+y).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(b){return b instanceof this?b:new this(b)}static concat(b,...y){const T=new this(b);return y.forEach(G=>T.set(G)),T}static accessor(b){const T=(this[zte]=this[zte]={accessors:{}}).accessors,G=this.prototype;function V(L){const A=p6(L);T[A]||(qle(G,L),T[A]=!0)}return Pr.isArray(b)?b.forEach(V):V(b),this}}HB.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Pr.reduceDescriptors(HB.prototype,({value:o},b)=>{let y=b[0].toUpperCase()+b.slice(1);return{get:()=>o,set(T){this[y]=T}}});Pr.freezeMethods(HB);const Ny=HB;function PJ(o,b){const y=this||HQ,T=b||y,G=Ny.from(T.headers);let V=T.data;return Pr.forEach(o,function(A){V=A.call(y,V,G.normalize(),b?b.status:void 0)}),G.normalize(),V}function aoe(o){return!!(o&&o.__CANCEL__)}function G6(o,b,y){Zs.call(this,o??"canceled",Zs.ERR_CANCELED,b,y),this.name="CanceledError"}Pr.inherits(G6,Zs,{__CANCEL__:!0});function ece(o,b,y){const T=y.config.validateStatus;!y.status||!T||T(y.status)?o(y):b(new Zs("Request failed with status code "+y.status,[Zs.ERR_BAD_REQUEST,Zs.ERR_BAD_RESPONSE][Math.floor(y.status/100)-4],y.config,y.request,y))}const tce=w0.hasStandardBrowserEnv?{write(o,b,y,T,G,V){const L=[o+"="+encodeURIComponent(b)];Pr.isNumber(y)&&L.push("expires="+new Date(y).toGMTString()),Pr.isString(T)&&L.push("path="+T),Pr.isString(G)&&L.push("domain="+G),V===!0&&L.push("secure"),document.cookie=L.join("; ")},read(o){const b=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return b?decodeURIComponent(b[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function nce(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function rce(o,b){return b?o.replace(/\/+$/,"")+"/"+b.replace(/^\/+/,""):o}function soe(o,b){return o&&!nce(b)?rce(o,b):b}const oce=w0.hasStandardBrowserEnv?function(){const b=/(msie|trident)/i.test(navigator.userAgent),y=document.createElement("a");let T;function G(V){let L=V;return b&&(y.setAttribute("href",L),L=y.href),y.setAttribute("href",L),{href:y.href,protocol:y.protocol?y.protocol.replace(/:$/,""):"",host:y.host,search:y.search?y.search.replace(/^\?/,""):"",hash:y.hash?y.hash.replace(/^#/,""):"",hostname:y.hostname,port:y.port,pathname:y.pathname.charAt(0)==="/"?y.pathname:"/"+y.pathname}}return T=G(window.location.href),function(L){const A=Pr.isString(L)?G(L):L;return A.protocol===T.protocol&&A.host===T.host}}():function(){return function(){return!0}}();function sce(o){const b=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return b&&b[1]||""}function ice(o,b){o=o||10;const y=new Array(o),T=new Array(o);let G=0,V=0,L;return b=b!==void 0?b:1e3,function(s){const m=Date.now(),h=T[V];L||(L=m),y[G]=s,T[G]=m;let l=V,c=0;for(;l!==G;)c+=y[l++],l=l%o;if(G=(G+1)%o,G===V&&(V=(V+1)%o),m-L{const V=G.loaded,L=G.lengthComputable?G.total:void 0,A=V-y,s=T(A),m=V<=L;y=V;const h={loaded:V,total:L,progress:L?V/L:void 0,bytes:A,rate:s||void 0,estimated:s&&L&&m?(L-V)/s:void 0,event:G};h[b?"download":"upload"]=!0,o(h)}}const lce=typeof XMLHttpRequest<"u",cce=lce&&function(o){return new Promise(function(y,T){let G=o.data;const V=Ny.from(o.headers).normalize();let{responseType:L,withXSRFToken:A}=o,s;function m(){o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let h;if(Pr.isFormData(G)){if(w0.hasStandardBrowserEnv||w0.hasStandardBrowserWebWorkerEnv)V.setContentType(!1);else if((h=V.getContentType())!==!1){const[d,...g]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];V.setContentType([d||"multipart/form-data",...g].join("; "))}}let l=new XMLHttpRequest;if(o.auth){const d=o.auth.username||"",g=o.auth.password?unescape(encodeURIComponent(o.auth.password)):"";V.set("Authorization","Basic "+btoa(d+":"+g))}const c=soe(o.baseURL,o.url);l.open(o.method.toUpperCase(),toe(c,o.params,o.paramsSerializer),!0),l.timeout=o.timeout;function i(){if(!l)return;const d=Ny.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),v={data:!L||L==="text"||L==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:o,request:l};ece(function(C){y(C),m()},function(C){T(C),m()},v),l=null}if("onloadend"in l?l.onloadend=i:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(i)},l.onabort=function(){l&&(T(new Zs("Request aborted",Zs.ECONNABORTED,o,l)),l=null)},l.onerror=function(){T(new Zs("Network Error",Zs.ERR_NETWORK,o,l)),l=null},l.ontimeout=function(){let g=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||noe;o.timeoutErrorMessage&&(g=o.timeoutErrorMessage),T(new Zs(g,v.clarifyTimeoutError?Zs.ETIMEDOUT:Zs.ECONNABORTED,o,l)),l=null},w0.hasStandardBrowserEnv&&(A&&Pr.isFunction(A)&&(A=A(o)),A||A!==!1&&oce(c))){const d=o.xsrfHeaderName&&o.xsrfCookieName&&tce.read(o.xsrfCookieName);d&&V.set(o.xsrfHeaderName,d)}G===void 0&&V.setContentType(null),"setRequestHeader"in l&&Pr.forEach(V.toJSON(),function(g,v){l.setRequestHeader(v,g)}),Pr.isUndefined(o.withCredentials)||(l.withCredentials=!!o.withCredentials),L&&L!=="json"&&(l.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&l.addEventListener("progress",Vte(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Vte(o.onUploadProgress)),(o.cancelToken||o.signal)&&(s=d=>{l&&(T(!d||d.type?new G6(null,o,l):d),l.abort(),l=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const u=sce(c);if(u&&w0.protocols.indexOf(u)===-1){T(new Zs("Unsupported protocol "+u+":",Zs.ERR_BAD_REQUEST,o));return}l.send(G||null)})},rQ={http:Dle,xhr:cce};Pr.forEach(rQ,(o,b)=>{if(o){try{Object.defineProperty(o,"name",{value:b})}catch{}Object.defineProperty(o,"adapterName",{value:b})}});const Ute=o=>`- ${o}`,uce=o=>Pr.isFunction(o)||o===null||o===!1,ioe={getAdapter:o=>{o=Pr.isArray(o)?o:[o];const{length:b}=o;let y,T;const G={};for(let V=0;V`adapter ${A} `+(s===!1?"is not supported by the environment":"is not available in the build"));let L=b?V.length>1?`since : -`+V.map(Ute).join(` -`):" "+Ute(V[0]):"as no adapter specified";throw new Zs("There is no suitable adapter to dispatch the request "+L,"ERR_NOT_SUPPORT")}return T},adapters:rQ};function IJ(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new G6(null,o)}function Wte(o){return IJ(o),o.headers=Ny.from(o.headers),o.data=PJ.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),ioe.getAdapter(o.adapter||HQ.adapter)(o).then(function(T){return IJ(o),T.data=PJ.call(o,o.transformResponse,T),T.headers=Ny.from(T.headers),T},function(T){return aoe(T)||(IJ(o),T&&T.response&&(T.response.data=PJ.call(o,o.transformResponse,T.response),T.response.headers=Ny.from(T.response.headers))),Promise.reject(T)})}const Gte=o=>o instanceof Ny?o.toJSON():o;function CE(o,b){b=b||{};const y={};function T(m,h,l){return Pr.isPlainObject(m)&&Pr.isPlainObject(h)?Pr.merge.call({caseless:l},m,h):Pr.isPlainObject(h)?Pr.merge({},h):Pr.isArray(h)?h.slice():h}function G(m,h,l){if(Pr.isUndefined(h)){if(!Pr.isUndefined(m))return T(void 0,m,l)}else return T(m,h,l)}function V(m,h){if(!Pr.isUndefined(h))return T(void 0,h)}function L(m,h){if(Pr.isUndefined(h)){if(!Pr.isUndefined(m))return T(void 0,m)}else return T(void 0,h)}function A(m,h,l){if(l in b)return T(m,h);if(l in o)return T(void 0,m)}const s={url:V,method:V,data:V,baseURL:L,transformRequest:L,transformResponse:L,paramsSerializer:L,timeout:L,timeoutMessage:L,withCredentials:L,withXSRFToken:L,adapter:L,responseType:L,xsrfCookieName:L,xsrfHeaderName:L,onUploadProgress:L,onDownloadProgress:L,decompress:L,maxContentLength:L,maxBodyLength:L,beforeRedirect:L,transport:L,httpAgent:L,httpsAgent:L,cancelToken:L,socketPath:L,responseEncoding:L,validateStatus:A,headers:(m,h)=>G(Gte(m),Gte(h),!0)};return Pr.forEach(Object.keys(Object.assign({},o,b)),function(h){const l=s[h]||G,c=l(o[h],b[h],h);Pr.isUndefined(c)&&l!==A||(y[h]=c)}),y}const loe="1.6.2",zQ={};["object","boolean","number","function","string","symbol"].forEach((o,b)=>{zQ[o]=function(T){return typeof T===o||"a"+(b<1?"n ":" ")+o}});const Zte={};zQ.transitional=function(b,y,T){function G(V,L){return"[Axios v"+loe+"] Transitional option '"+V+"'"+L+(T?". "+T:"")}return(V,L,A)=>{if(b===!1)throw new Zs(G(L," has been removed"+(y?" in "+y:"")),Zs.ERR_DEPRECATED);return y&&!Zte[L]&&(Zte[L]=!0,console.warn(G(L," has been deprecated since v"+y+" and will be removed in the near future"))),b?b(V,L,A):!0}};function fce(o,b,y){if(typeof o!="object")throw new Zs("options must be an object",Zs.ERR_BAD_OPTION_VALUE);const T=Object.keys(o);let G=T.length;for(;G-- >0;){const V=T[G],L=b[V];if(L){const A=o[V],s=A===void 0||L(A,V,o);if(s!==!0)throw new Zs("option "+V+" must be "+s,Zs.ERR_BAD_OPTION_VALUE);continue}if(y!==!0)throw new Zs("Unknown option "+V,Zs.ERR_BAD_OPTION)}}const oQ={assertOptions:fce,validators:zQ},b2=oQ.validators;class fB{constructor(b){this.defaults=b,this.interceptors={request:new Hte,response:new Hte}}request(b,y){typeof b=="string"?(y=y||{},y.url=b):y=b||{},y=CE(this.defaults,y);const{transitional:T,paramsSerializer:G,headers:V}=y;T!==void 0&&oQ.assertOptions(T,{silentJSONParsing:b2.transitional(b2.boolean),forcedJSONParsing:b2.transitional(b2.boolean),clarifyTimeoutError:b2.transitional(b2.boolean)},!1),G!=null&&(Pr.isFunction(G)?y.paramsSerializer={serialize:G}:oQ.assertOptions(G,{encode:b2.function,serialize:b2.function},!0)),y.method=(y.method||this.defaults.method||"get").toLowerCase();let L=V&&Pr.merge(V.common,V[y.method]);V&&Pr.forEach(["delete","get","head","post","put","patch","common"],u=>{delete V[u]}),y.headers=Ny.concat(L,V);const A=[];let s=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(y)===!1||(s=s&&d.synchronous,A.unshift(d.fulfilled,d.rejected))});const m=[];this.interceptors.response.forEach(function(d){m.push(d.fulfilled,d.rejected)});let h,l=0,c;if(!s){const u=[Wte.bind(this),void 0];for(u.unshift.apply(u,A),u.push.apply(u,m),c=u.length,h=Promise.resolve(y);l{if(!T._listeners)return;let V=T._listeners.length;for(;V-- >0;)T._listeners[V](G);T._listeners=null}),this.promise.then=G=>{let V;const L=new Promise(A=>{T.subscribe(A),V=A}).then(G);return L.cancel=function(){T.unsubscribe(V)},L},b(function(V,L,A){T.reason||(T.reason=new G6(V,L,A),y(T.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(b){if(this.reason){b(this.reason);return}this._listeners?this._listeners.push(b):this._listeners=[b]}unsubscribe(b){if(!this._listeners)return;const y=this._listeners.indexOf(b);y!==-1&&this._listeners.splice(y,1)}static source(){let b;return{token:new VQ(function(G){b=G}),cancel:b}}}const dce=VQ;function hce(o){return function(y){return o.apply(null,y)}}function mce(o){return Pr.isObject(o)&&o.isAxiosError===!0}const aQ={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(aQ).forEach(([o,b])=>{aQ[b]=o});const gce=aQ;function coe(o){const b=new rB(o),y=Ure(rB.prototype.request,b);return Pr.extend(y,rB.prototype,b,{allOwnKeys:!0}),Pr.extend(y,b,null,{allOwnKeys:!0}),y.create=function(G){return coe(CE(o,G))},y}const Wc=coe(HQ);Wc.Axios=rB;Wc.CanceledError=G6;Wc.CancelToken=dce;Wc.isCancel=aoe;Wc.VERSION=loe;Wc.toFormData=BB;Wc.AxiosError=Zs;Wc.Cancel=Wc.CanceledError;Wc.all=function(b){return Promise.all(b)};Wc.spread=hce;Wc.isAxiosError=mce;Wc.mergeConfig=CE;Wc.AxiosHeaders=Ny;Wc.formToJSON=o=>ooe(Pr.isHTMLForm(o)?new FormData(o):o);Wc.getAdapter=ioe.getAdapter;Wc.HttpStatusCode=gce;Wc.default=Wc;const Oy=Wc;function UQ(o,b){const y=Object.create(null),T=o.split(",");for(let G=0;G!!y[G.toLowerCase()]:G=>!!y[G]}const vl={},pE=[],Ap=()=>{},pce=()=>!1,vce=/^on[^a-z]/,zB=o=>vce.test(o),WQ=o=>o.startsWith("onUpdate:"),Mc=Object.assign,GQ=(o,b)=>{const y=o.indexOf(b);y>-1&&o.splice(y,1)},yce=Object.prototype.hasOwnProperty,ti=(o,b)=>yce.call(o,b),Pa=Array.isArray,vE=o=>VB(o)==="[object Map]",uoe=o=>VB(o)==="[object Set]",fs=o=>typeof o=="function",hc=o=>typeof o=="string",ZQ=o=>typeof o=="symbol",ol=o=>o!==null&&typeof o=="object",foe=o=>ol(o)&&fs(o.then)&&fs(o.catch),doe=Object.prototype.toString,VB=o=>doe.call(o),bce=o=>VB(o).slice(8,-1),hoe=o=>VB(o)==="[object Object]",jQ=o=>hc(o)&&o!=="NaN"&&o[0]!=="-"&&""+parseInt(o,10)===o,oB=UQ(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),UB=o=>{const b=Object.create(null);return y=>b[y]||(b[y]=o(y))},xce=/-(\w)/g,bg=UB(o=>o.replace(xce,(b,y)=>y?y.toUpperCase():"")),wce=/\B([A-Z])/g,DE=UB(o=>o.replace(wce,"-$1").toLowerCase()),_0=UB(o=>o.charAt(0).toUpperCase()+o.slice(1)),C0=UB(o=>o?`on${_0(o)}`:""),_6=(o,b)=>!Object.is(o,b),aB=(o,b)=>{for(let y=0;y{Object.defineProperty(o,b,{configurable:!0,enumerable:!1,value:y})},sQ=o=>{const b=parseFloat(o);return isNaN(b)?o:b},Cce=o=>{const b=hc(o)?Number(o):NaN;return isNaN(b)?o:b};let jte;const iQ=()=>jte||(jte=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function YQ(o){if(Pa(o)){const b={};for(let y=0;y{if(y){const T=y.split(Tce);T.length>1&&(b[T[0].trim()]=T[1].trim())}}),b}function KQ(o){let b="";if(hc(o))b=o;else if(Pa(o))for(let y=0;yhc(o)?o:o==null?"":Pa(o)||ol(o)&&(o.toString===doe||!fs(o.toString))?JSON.stringify(o,goe,2):String(o),goe=(o,b)=>b&&b.__v_isRef?goe(o,b.value):vE(b)?{[`Map(${b.size})`]:[...b.entries()].reduce((y,[T,G])=>(y[`${T} =>`]=G,y),{})}:uoe(b)?{[`Set(${b.size})`]:[...b.values()]}:ol(b)&&!Pa(b)&&!hoe(b)?String(b):b;let rm;class poe{constructor(b=!1){this.detached=b,this._active=!0,this.effects=[],this.cleanups=[],this.parent=rm,!b&&rm&&(this.index=(rm.scopes||(rm.scopes=[])).push(this)-1)}get active(){return this._active}run(b){if(this._active){const y=rm;try{return rm=this,b()}finally{rm=y}}}on(){rm=this}off(){rm=this.parent}stop(b){if(this._active){let y,T;for(y=0,T=this.effects.length;y{const b=new Set(o);return b.w=0,b.n=0,b},voe=o=>(o.w&M2)>0,yoe=o=>(o.n&M2)>0,Lce=({deps:o})=>{if(o.length)for(let b=0;b{const{deps:b}=o;if(b.length){let y=0;for(let T=0;T{(h==="length"||h>=s)&&A.push(m)})}else switch(y!==void 0&&A.push(L.get(y)),b){case"add":Pa(o)?jQ(y)&&A.push(L.get("length")):(A.push(L.get(m3)),vE(o)&&A.push(L.get(cQ)));break;case"delete":Pa(o)||(A.push(L.get(m3)),vE(o)&&A.push(L.get(cQ)));break;case"set":vE(o)&&A.push(L.get(m3));break}if(A.length===1)A[0]&&uQ(A[0]);else{const s=[];for(const m of A)m&&s.push(...m);uQ(JQ(s))}}function uQ(o,b){const y=Pa(o)?o:[...o];for(const T of y)T.computed&&Kte(T);for(const T of y)T.computed||Kte(T)}function Kte(o,b){(o!==Cp||o.allowRecurse)&&(o.scheduler?o.scheduler():o.run())}function $ce(o,b){var y;return(y=hB.get(o))==null?void 0:y.get(b)}const Oce=UQ("__proto__,__v_isRef,__isVue"),woe=new Set(Object.getOwnPropertyNames(Symbol).filter(o=>o!=="arguments"&&o!=="caller").map(o=>Symbol[o]).filter(ZQ)),Pce=qQ(),Ice=qQ(!1,!0),Nce=qQ(!0),Xte=Fce();function Fce(){const o={};return["includes","indexOf","lastIndexOf"].forEach(b=>{o[b]=function(...y){const T=ds(this);for(let V=0,L=this.length;V{o[b]=function(...y){$E();const T=ds(this)[b].apply(this,y);return OE(),T}}),o}function Bce(o){const b=ds(this);return uh(b,"has",o),b.hasOwnProperty(o)}function qQ(o=!1,b=!1){return function(T,G,V){if(G==="__v_isReactive")return!o;if(G==="__v_isReadonly")return o;if(G==="__v_isShallow")return b;if(G==="__v_raw"&&V===(o?b?tue:Aoe:b?koe:Toe).get(T))return T;const L=Pa(T);if(!o){if(L&&ti(Xte,G))return Reflect.get(Xte,G,V);if(G==="hasOwnProperty")return Bce}const A=Reflect.get(T,G,V);return(ZQ(G)?woe.has(G):Oce(G))||(o||uh(T,"get",G),b)?A:Wl(A)?L&&jQ(G)?A:A.value:ol(A)?o?Z6(A):ih(A):A}}const Hce=Coe(),zce=Coe(!0);function Coe(o=!1){return function(y,T,G,V){let L=y[T];if(SE(L)&&Wl(L)&&!Wl(G))return!1;if(!o&&(!mB(G)&&!SE(G)&&(L=ds(L),G=ds(G)),!Pa(y)&&Wl(L)&&!Wl(G)))return L.value=G,!0;const A=Pa(y)&&jQ(T)?Number(T)o,WB=o=>Reflect.getPrototypeOf(o);function VF(o,b,y=!1,T=!1){o=o.__v_raw;const G=ds(o),V=ds(b);y||(b!==V&&uh(G,"get",b),uh(G,"get",V));const{has:L}=WB(G),A=T?eq:y?oq:R6;if(L.call(G,b))return A(o.get(b));if(L.call(G,V))return A(o.get(V));o!==G&&o.get(b)}function UF(o,b=!1){const y=this.__v_raw,T=ds(y),G=ds(o);return b||(o!==G&&uh(T,"has",o),uh(T,"has",G)),o===G?y.has(o):y.has(o)||y.has(G)}function WF(o,b=!1){return o=o.__v_raw,!b&&uh(ds(o),"iterate",m3),Reflect.get(o,"size",o)}function Jte(o){o=ds(o);const b=ds(this);return WB(b).has.call(b,o)||(b.add(o),Fy(b,"add",o,o)),this}function Qte(o,b){b=ds(b);const y=ds(this),{has:T,get:G}=WB(y);let V=T.call(y,o);V||(o=ds(o),V=T.call(y,o));const L=G.call(y,o);return y.set(o,b),V?_6(b,L)&&Fy(y,"set",o,b):Fy(y,"add",o,b),this}function qte(o){const b=ds(this),{has:y,get:T}=WB(b);let G=y.call(b,o);G||(o=ds(o),G=y.call(b,o)),T&&T.call(b,o);const V=b.delete(o);return G&&Fy(b,"delete",o,void 0),V}function ene(){const o=ds(this),b=o.size!==0,y=o.clear();return b&&Fy(o,"clear",void 0,void 0),y}function GF(o,b){return function(T,G){const V=this,L=V.__v_raw,A=ds(L),s=b?eq:o?oq:R6;return!o&&uh(A,"iterate",m3),L.forEach((m,h)=>T.call(G,s(m),s(h),V))}}function ZF(o,b,y){return function(...T){const G=this.__v_raw,V=ds(G),L=vE(V),A=o==="entries"||o===Symbol.iterator&&L,s=o==="keys"&&L,m=G[o](...T),h=y?eq:b?oq:R6;return!b&&uh(V,"iterate",s?cQ:m3),{next(){const{value:l,done:c}=m.next();return c?{value:l,done:c}:{value:A?[h(l[0]),h(l[1])]:h(l),done:c}},[Symbol.iterator](){return this}}}}function x2(o){return function(...b){return o==="delete"?!1:this}}function jce(){const o={get(V){return VF(this,V)},get size(){return WF(this)},has:UF,add:Jte,set:Qte,delete:qte,clear:ene,forEach:GF(!1,!1)},b={get(V){return VF(this,V,!1,!0)},get size(){return WF(this)},has:UF,add:Jte,set:Qte,delete:qte,clear:ene,forEach:GF(!1,!0)},y={get(V){return VF(this,V,!0)},get size(){return WF(this,!0)},has(V){return UF.call(this,V,!0)},add:x2("add"),set:x2("set"),delete:x2("delete"),clear:x2("clear"),forEach:GF(!0,!1)},T={get(V){return VF(this,V,!0,!0)},get size(){return WF(this,!0)},has(V){return UF.call(this,V,!0)},add:x2("add"),set:x2("set"),delete:x2("delete"),clear:x2("clear"),forEach:GF(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(V=>{o[V]=ZF(V,!1,!1),y[V]=ZF(V,!0,!1),b[V]=ZF(V,!1,!0),T[V]=ZF(V,!0,!0)}),[o,y,b,T]}const[Yce,Kce,Xce,Jce]=jce();function tq(o,b){const y=b?o?Jce:Xce:o?Kce:Yce;return(T,G,V)=>G==="__v_isReactive"?!o:G==="__v_isReadonly"?o:G==="__v_raw"?T:Reflect.get(ti(y,G)&&G in T?y:T,G,V)}const Qce={get:tq(!1,!1)},qce={get:tq(!1,!0)},eue={get:tq(!0,!1)},Toe=new WeakMap,koe=new WeakMap,Aoe=new WeakMap,tue=new WeakMap;function nue(o){switch(o){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rue(o){return o.__v_skip||!Object.isExtensible(o)?0:nue(bce(o))}function ih(o){return SE(o)?o:nq(o,!1,Soe,Qce,Toe)}function oue(o){return nq(o,!1,Zce,qce,koe)}function Z6(o){return nq(o,!0,Gce,eue,Aoe)}function nq(o,b,y,T,G){if(!ol(o)||o.__v_raw&&!(b&&o.__v_isReactive))return o;const V=G.get(o);if(V)return V;const L=rue(o);if(L===0)return o;const A=new Proxy(o,L===2?T:y);return G.set(o,A),A}function yE(o){return SE(o)?yE(o.__v_raw):!!(o&&o.__v_isReactive)}function SE(o){return!!(o&&o.__v_isReadonly)}function mB(o){return!!(o&&o.__v_isShallow)}function Moe(o){return yE(o)||SE(o)}function ds(o){const b=o&&o.__v_raw;return b?ds(b):o}function rq(o){return dB(o,"__v_skip",!0),o}const R6=o=>ol(o)?ih(o):o,oq=o=>ol(o)?Z6(o):o;function Eoe(o){k2&&Cp&&(o=ds(o),xoe(o.dep||(o.dep=JQ())))}function _oe(o,b){o=ds(o);const y=o.dep;y&&uQ(y)}function Wl(o){return!!(o&&o.__v_isRef===!0)}function No(o){return Roe(o,!1)}function xa(o){return Roe(o,!0)}function Roe(o,b){return Wl(o)?o:new aue(o,b)}class aue{constructor(b,y){this.__v_isShallow=y,this.dep=void 0,this.__v_isRef=!0,this._rawValue=y?b:ds(b),this._value=y?b:R6(b)}get value(){return Eoe(this),this._value}set value(b){const y=this.__v_isShallow||mB(b)||SE(b);b=y?b:ds(b),_6(b,this._rawValue)&&(this._rawValue=b,this._value=y?b:R6(b),_oe(this))}}function im(o){return Wl(o)?o.value:o}const sue={get:(o,b,y)=>im(Reflect.get(o,b,y)),set:(o,b,y,T)=>{const G=o[b];return Wl(G)&&!Wl(y)?(G.value=y,!0):Reflect.set(o,b,y,T)}};function Loe(o){return yE(o)?o:new Proxy(o,sue)}function GB(o){const b=Pa(o)?new Array(o.length):{};for(const y in o)b[y]=Doe(o,y);return b}class iue{constructor(b,y,T){this._object=b,this._key=y,this._defaultValue=T,this.__v_isRef=!0}get value(){const b=this._object[this._key];return b===void 0?this._defaultValue:b}set value(b){this._object[this._key]=b}get dep(){return $ce(ds(this._object),this._key)}}class lue{constructor(b){this._getter=b,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Xo(o,b,y){return Wl(o)?o:fs(o)?new lue(o):ol(o)&&arguments.length>1?Doe(o,b,y):No(o)}function Doe(o,b,y){const T=o[b];return Wl(T)?T:new iue(o,b,y)}class cue{constructor(b,y,T,G){this._setter=y,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new QQ(b,()=>{this._dirty||(this._dirty=!0,_oe(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!G,this.__v_isReadonly=T}get value(){const b=ds(this);return Eoe(b),(b._dirty||!b._cacheable)&&(b._dirty=!1,b._value=b.effect.run()),b._value}set value(b){this._setter(b)}}function uue(o,b,y=!1){let T,G;const V=fs(o);return V?(T=o,G=Ap):(T=o.get,G=o.set),new cue(T,G,V||!G,y)}function A2(o,b,y,T){let G;try{G=T?o(...T):o()}catch(V){ZB(V,b,y)}return G}function vg(o,b,y,T){if(fs(o)){const V=A2(o,b,y,T);return V&&foe(V)&&V.catch(L=>{ZB(L,b,y)}),V}const G=[];for(let V=0;V>>1;D6(Bf[T])x0&&Bf.splice(b,1)}function mue(o){Pa(o)?bE.push(...o):(!Iy||!Iy.includes(o,o.allowRecurse?c3+1:c3))&&bE.push(o),Ooe()}function tne(o,b=L6?x0+1:0){for(;bD6(y)-D6(T)),c3=0;c3o.id==null?1/0:o.id,gue=(o,b)=>{const y=D6(o)-D6(b);if(y===0){if(o.pre&&!b.pre)return-1;if(b.pre&&!o.pre)return 1}return y};function Ioe(o){fQ=!1,L6=!0,Bf.sort(gue);const b=Ap;try{for(x0=0;x0hc(i)?i.trim():i)),l&&(G=y.map(sQ))}let A,s=T[A=C0(b)]||T[A=C0(bg(b))];!s&&V&&(s=T[A=C0(DE(b))]),s&&vg(s,o,6,G);const m=T[A+"Once"];if(m){if(!o.emitted)o.emitted={};else if(o.emitted[A])return;o.emitted[A]=!0,vg(m,o,6,G)}}function Noe(o,b,y=!1){const T=b.emitsCache,G=T.get(o);if(G!==void 0)return G;const V=o.emits;let L={},A=!1;if(!fs(o)){const s=m=>{const h=Noe(m,b,!0);h&&(A=!0,Mc(L,h))};!y&&b.mixins.length&&b.mixins.forEach(s),o.extends&&s(o.extends),o.mixins&&o.mixins.forEach(s)}return!V&&!A?(ol(o)&&T.set(o,null),null):(Pa(V)?V.forEach(s=>L[s]=null):Mc(L,V),ol(o)&&T.set(o,L),L)}function jB(o,b){return!o||!zB(b)?!1:(b=b.slice(2).replace(/Once$/,""),ti(o,b[0].toLowerCase()+b.slice(1))||ti(o,DE(b))||ti(o,b))}let lm=null,Foe=null;function gB(o){const b=lm;return lm=o,Foe=o&&o.type.__scopeId||null,b}function jr(o,b=lm,y){if(!b||o._n)return o;const T=(...G)=>{T._d&&mne(-1);const V=gB(b);let L;try{L=o(...G)}finally{gB(V),T._d&&mne(1)}return L};return T._n=!0,T._c=!0,T._d=!0,T}function NJ(o){const{type:b,vnode:y,proxy:T,withProxy:G,props:V,propsOptions:[L],slots:A,attrs:s,emit:m,render:h,renderCache:l,data:c,setupState:i,ctx:u,inheritAttrs:d}=o;let g,v;const x=gB(o);try{if(y.shapeFlag&4){const _=G||T;g=b0(h.call(_,_,l,V,i,c,u)),v=s}else{const _=b;g=b0(_.length>1?_(V,{attrs:s,slots:A,emit:m}):_(V,null)),v=b.props?s:vue(s)}}catch(_){k6.length=0,ZB(_,o,1),g=ct(Mp)}let C=g;if(v&&d!==!1){const _=Object.keys(v),{shapeFlag:$}=C;_.length&&$&7&&(L&&_.some(WQ)&&(v=yue(v,L)),C=By(C,v))}return y.dirs&&(C=By(C),C.dirs=C.dirs?C.dirs.concat(y.dirs):y.dirs),y.transition&&(C.transition=y.transition),g=C,gB(x),g}const vue=o=>{let b;for(const y in o)(y==="class"||y==="style"||zB(y))&&((b||(b={}))[y]=o[y]);return b},yue=(o,b)=>{const y={};for(const T in o)(!WQ(T)||!(T.slice(9)in b))&&(y[T]=o[T]);return y};function bue(o,b,y){const{props:T,children:G,component:V}=o,{props:L,children:A,patchFlag:s}=b,m=V.emitsOptions;if(b.dirs||b.transition)return!0;if(y&&s>=0){if(s&1024)return!0;if(s&16)return T?nne(T,L,m):!!L;if(s&8){const h=b.dynamicProps;for(let l=0;lo.__isSuspense;function Cue(o,b){b&&b.pendingBranch?Pa(o)?b.effects.push(...o):b.effects.push(o):mue(o)}function fh(o,b){return iq(o,null,b)}const jF={};function ta(o,b,y){return iq(o,b,y)}function iq(o,b,{immediate:y,deep:T,flush:G,onTrack:V,onTrigger:L}=vl){var A;const s=Rce()===((A=zu)==null?void 0:A.scope)?zu:null;let m,h=!1,l=!1;if(Wl(o)?(m=()=>o.value,h=mB(o)):yE(o)?(m=()=>o,T=!0):Pa(o)?(l=!0,h=o.some(_=>yE(_)||mB(_)),m=()=>o.map(_=>{if(Wl(_))return _.value;if(yE(_))return d3(_);if(fs(_))return A2(_,s,2)})):fs(o)?b?m=()=>A2(o,s,2):m=()=>{if(!(s&&s.isUnmounted))return c&&c(),vg(o,s,3,[i])}:m=Ap,b&&T){const _=m;m=()=>d3(_())}let c,i=_=>{c=x.onStop=()=>{A2(_,s,4)}},u;if(I6)if(i=Ap,b?y&&vg(b,s,3,[m(),l?[]:void 0,i]):m(),G==="sync"){const _=dfe();u=_.__watcherHandles||(_.__watcherHandles=[])}else return Ap;let d=l?new Array(o.length).fill(jF):jF;const g=()=>{if(x.active)if(b){const _=x.run();(T||h||(l?_.some(($,S)=>_6($,d[S])):_6(_,d)))&&(c&&c(),vg(b,s,3,[_,d===jF?void 0:l&&d[0]===jF?[]:d,i]),d=_)}else x.run()};g.allowRecurse=!!b;let v;G==="sync"?v=g:G==="post"?v=()=>sh(g,s&&s.suspense):(g.pre=!0,s&&(g.id=s.uid),v=()=>sq(g));const x=new QQ(m,v);b?y?g():d=x.run():G==="post"?sh(x.run.bind(x),s&&s.suspense):x.run();const C=()=>{x.stop(),s&&s.scope&&GQ(s.scope.effects,x)};return u&&u.push(C),C}function Sue(o,b,y){const T=this.proxy,G=hc(o)?o.includes(".")?Boe(T,o):()=>T[o]:o.bind(T,T);let V;fs(b)?V=b:(V=b.handler,y=b);const L=zu;TE(this);const A=iq(G,V.bind(T),y);return L?TE(L):g3(),A}function Boe(o,b){const y=b.split(".");return()=>{let T=o;for(let G=0;G{d3(y,b)});else if(hoe(o))for(const y in o)d3(o[y],b);return o}function lu(o,b){const y=lm;if(y===null)return o;const T=QB(y)||y.proxy,G=o.dirs||(o.dirs=[]);for(let V=0;V{o.isMounted=!0}),dm(()=>{o.isUnmounting=!0}),o}const hg=[Function,Array],zoe={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:hg,onEnter:hg,onAfterEnter:hg,onEnterCancelled:hg,onBeforeLeave:hg,onLeave:hg,onAfterLeave:hg,onLeaveCancelled:hg,onBeforeAppear:hg,onAppear:hg,onAfterAppear:hg,onAppearCancelled:hg},Tue={name:"BaseTransition",props:zoe,setup(o,{slots:b}){const y=yq(),T=Hoe();let G;return()=>{const V=b.default&&lq(b.default(),!0);if(!V||!V.length)return;let L=V[0];if(V.length>1){for(const d of V)if(d.type!==Mp){L=d;break}}const A=ds(o),{mode:s}=A;if(T.isLeaving)return FJ(L);const m=rne(L);if(!m)return FJ(L);const h=$6(m,A,T,y);O6(m,h);const l=y.subTree,c=l&&rne(l);let i=!1;const{getTransitionKey:u}=m.type;if(u){const d=u();G===void 0?G=d:d!==G&&(G=d,i=!0)}if(c&&c.type!==Mp&&(!u3(m,c)||i)){const d=$6(c,A,T,y);if(O6(c,d),s==="out-in")return T.isLeaving=!0,d.afterLeave=()=>{T.isLeaving=!1,y.update.active!==!1&&y.update()},FJ(L);s==="in-out"&&m.type!==Mp&&(d.delayLeave=(g,v,x)=>{const C=Voe(T,c);C[String(c.key)]=c,g._leaveCb=()=>{v(),g._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=x})}return L}}},kue=Tue;function Voe(o,b){const{leavingVNodes:y}=o;let T=y.get(b.type);return T||(T=Object.create(null),y.set(b.type,T)),T}function $6(o,b,y,T){const{appear:G,mode:V,persisted:L=!1,onBeforeEnter:A,onEnter:s,onAfterEnter:m,onEnterCancelled:h,onBeforeLeave:l,onLeave:c,onAfterLeave:i,onLeaveCancelled:u,onBeforeAppear:d,onAppear:g,onAfterAppear:v,onAppearCancelled:x}=b,C=String(o.key),_=Voe(y,o),$=(D,N)=>{D&&vg(D,T,9,N)},S=(D,N)=>{const M=N[1];$(D,N),Pa(D)?D.every(k=>k.length<=1)&&M():D.length<=1&&M()},O={mode:V,persisted:L,beforeEnter(D){let N=A;if(!y.isMounted)if(G)N=d||A;else return;D._leaveCb&&D._leaveCb(!0);const M=_[C];M&&u3(o,M)&&M.el._leaveCb&&M.el._leaveCb(),$(N,[D])},enter(D){let N=s,M=m,k=h;if(!y.isMounted)if(G)N=g||s,M=v||m,k=x||h;else return;let R=!1;const F=D._enterCb=H=>{R||(R=!0,H?$(k,[D]):$(M,[D]),O.delayedLeave&&O.delayedLeave(),D._enterCb=void 0)};N?S(N,[D,F]):F()},leave(D,N){const M=String(o.key);if(D._enterCb&&D._enterCb(!0),y.isUnmounting)return N();$(l,[D]);let k=!1;const R=D._leaveCb=F=>{k||(k=!0,N(),F?$(u,[D]):$(i,[D]),D._leaveCb=void 0,_[M]===o&&delete _[M])};_[M]=o,c?S(c,[D,R]):R()},clone(D){return $6(D,b,y,T)}};return O}function FJ(o){if(KB(o))return o=By(o),o.children=null,o}function rne(o){return KB(o)?o.children?o.children[0]:void 0:o}function O6(o,b){o.shapeFlag&6&&o.component?O6(o.component.subTree,b):o.shapeFlag&128?(o.ssContent.transition=b.clone(o.ssContent),o.ssFallback.transition=b.clone(o.ssFallback)):o.transition=b}function lq(o,b=!1,y){let T=[],G=0;for(let V=0;V1)for(let V=0;VMc({name:o.name},b,{setup:o}))():o}const sB=o=>!!o.type.__asyncLoader,KB=o=>o.type.__isKeepAlive;function cq(o,b){Uoe(o,"a",b)}function uq(o,b){Uoe(o,"da",b)}function Uoe(o,b,y=zu){const T=o.__wdc||(o.__wdc=()=>{let G=y;for(;G;){if(G.isDeactivated)return;G=G.parent}return o()});if(XB(b,T,y),y){let G=y.parent;for(;G&&G.parent;)KB(G.parent.vnode)&&Aue(T,b,y,G),G=G.parent}}function Aue(o,b,y,T){const G=XB(b,o,T,!0);Goe(()=>{GQ(T[b],G)},y)}function XB(o,b,y=zu,T=!1){if(y){const G=y[o]||(y[o]=[]),V=b.__weh||(b.__weh=(...L)=>{if(y.isUnmounted)return;$E(),TE(y);const A=vg(b,y,o,L);return g3(),OE(),A});return T?G.unshift(V):G.push(V),V}}const zy=o=>(b,y=zu)=>(!I6||o==="sp")&&XB(o,(...T)=>b(...T),y),fq=zy("bm"),Cg=zy("m"),Mue=zy("bu"),Woe=zy("u"),dm=zy("bum"),Goe=zy("um"),Eue=zy("sp"),_ue=zy("rtg"),Rue=zy("rtc");function Lue(o,b=zu){XB("ec",o,b)}const dq="components",Due="directives";function A0(o,b){return hq(dq,o,!0,b)||o}const Zoe=Symbol.for("v-ndc");function mg(o){return hc(o)?hq(dq,o,!1)||o:o||Zoe}function _p(o){return hq(Due,o)}function hq(o,b,y=!0,T=!1){const G=lm||zu;if(G){const V=G.type;if(o===dq){const A=cfe(V,!1);if(A&&(A===b||A===bg(b)||A===_0(bg(b))))return V}const L=one(G[o]||V[o],b)||one(G.appContext[o],b);return!L&&T?V:L}}function one(o,b){return o&&(o[b]||o[bg(b)]||o[_0(bg(b))])}function uf(o,b,y,T){let G;const V=y&&y[T];if(Pa(o)||hc(o)){G=new Array(o.length);for(let L=0,A=o.length;Lb(L,A,void 0,V&&V[A]));else{const L=Object.keys(o);G=new Array(L.length);for(let A=0,s=L.length;Ao?rae(o)?QB(o)||o.proxy:dQ(o.parent):null,S6=Mc(Object.create(null),{$:o=>o,$el:o=>o.vnode.el,$data:o=>o.data,$props:o=>o.props,$attrs:o=>o.attrs,$slots:o=>o.slots,$refs:o=>o.refs,$parent:o=>dQ(o.parent),$root:o=>dQ(o.root),$emit:o=>o.emit,$options:o=>mq(o),$forceUpdate:o=>o.f||(o.f=()=>sq(o.update)),$nextTick:o=>o.n||(o.n=Ll.bind(o.proxy)),$watch:o=>Sue.bind(o)}),BJ=(o,b)=>o!==vl&&!o.__isScriptSetup&&ti(o,b),$ue={get({_:o},b){const{ctx:y,setupState:T,data:G,props:V,accessCache:L,type:A,appContext:s}=o;let m;if(b[0]!=="$"){const i=L[b];if(i!==void 0)switch(i){case 1:return T[b];case 2:return G[b];case 4:return y[b];case 3:return V[b]}else{if(BJ(T,b))return L[b]=1,T[b];if(G!==vl&&ti(G,b))return L[b]=2,G[b];if((m=o.propsOptions[0])&&ti(m,b))return L[b]=3,V[b];if(y!==vl&&ti(y,b))return L[b]=4,y[b];hQ&&(L[b]=0)}}const h=S6[b];let l,c;if(h)return b==="$attrs"&&uh(o,"get",b),h(o);if((l=A.__cssModules)&&(l=l[b]))return l;if(y!==vl&&ti(y,b))return L[b]=4,y[b];if(c=s.config.globalProperties,ti(c,b))return c[b]},set({_:o},b,y){const{data:T,setupState:G,ctx:V}=o;return BJ(G,b)?(G[b]=y,!0):T!==vl&&ti(T,b)?(T[b]=y,!0):ti(o.props,b)||b[0]==="$"&&b.slice(1)in o?!1:(V[b]=y,!0)},has({_:{data:o,setupState:b,accessCache:y,ctx:T,appContext:G,propsOptions:V}},L){let A;return!!y[L]||o!==vl&&ti(o,L)||BJ(b,L)||(A=V[0])&&ti(A,L)||ti(T,L)||ti(S6,L)||ti(G.config.globalProperties,L)},defineProperty(o,b,y){return y.get!=null?o._.accessCache[b]=0:ti(y,"value")&&this.set(o,b,y.value,null),Reflect.defineProperty(o,b,y)}};function ane(o){return Pa(o)?o.reduce((b,y)=>(b[y]=null,b),{}):o}let hQ=!0;function Oue(o){const b=mq(o),y=o.proxy,T=o.ctx;hQ=!1,b.beforeCreate&&sne(b.beforeCreate,o,"bc");const{data:G,computed:V,methods:L,watch:A,provide:s,inject:m,created:h,beforeMount:l,mounted:c,beforeUpdate:i,updated:u,activated:d,deactivated:g,beforeDestroy:v,beforeUnmount:x,destroyed:C,unmounted:_,render:$,renderTracked:S,renderTriggered:O,errorCaptured:D,serverPrefetch:N,expose:M,inheritAttrs:k,components:R,directives:F,filters:H}=b;if(m&&Pue(m,T,null),L)for(const ee in L){const J=L[ee];fs(J)&&(T[ee]=J.bind(y))}if(G){const ee=G.call(y,y);ol(ee)&&(o.data=ih(ee))}if(hQ=!0,V)for(const ee in V){const J=V[ee],K=fs(J)?J.bind(y,y):fs(J.get)?J.get.bind(y,y):Ap,ae=!fs(J)&&fs(J.set)?J.set.bind(y):Ap,Q=on({get:K,set:ae});Object.defineProperty(T,ee,{enumerable:!0,configurable:!0,get:()=>Q.value,set:he=>Q.value=he})}if(A)for(const ee in A)joe(A[ee],T,y,ee);if(s){const ee=fs(s)?s.call(y):s;Reflect.ownKeys(ee).forEach(J=>{Gl(J,ee[J])})}h&&sne(h,o,"c");function P(ee,J){Pa(J)?J.forEach(K=>ee(K.bind(y))):J&&ee(J.bind(y))}if(P(fq,l),P(Cg,c),P(Mue,i),P(Woe,u),P(cq,d),P(uq,g),P(Lue,D),P(Rue,S),P(_ue,O),P(dm,x),P(Goe,_),P(Eue,N),Pa(M))if(M.length){const ee=o.exposed||(o.exposed={});M.forEach(J=>{Object.defineProperty(ee,J,{get:()=>y[J],set:K=>y[J]=K})})}else o.exposed||(o.exposed={});$&&o.render===Ap&&(o.render=$),k!=null&&(o.inheritAttrs=k),R&&(o.components=R),F&&(o.directives=F)}function Pue(o,b,y=Ap){Pa(o)&&(o=mQ(o));for(const T in o){const G=o[T];let V;ol(G)?"default"in G?V=ni(G.from||T,G.default,!0):V=ni(G.from||T):V=ni(G),Wl(V)?Object.defineProperty(b,T,{enumerable:!0,configurable:!0,get:()=>V.value,set:L=>V.value=L}):b[T]=V}}function sne(o,b,y){vg(Pa(o)?o.map(T=>T.bind(b.proxy)):o.bind(b.proxy),b,y)}function joe(o,b,y,T){const G=T.includes(".")?Boe(y,T):()=>y[T];if(hc(o)){const V=b[o];fs(V)&&ta(G,V)}else if(fs(o))ta(G,o.bind(y));else if(ol(o))if(Pa(o))o.forEach(V=>joe(V,b,y,T));else{const V=fs(o.handler)?o.handler.bind(y):b[o.handler];fs(V)&&ta(G,V,o)}}function mq(o){const b=o.type,{mixins:y,extends:T}=b,{mixins:G,optionsCache:V,config:{optionMergeStrategies:L}}=o.appContext,A=V.get(b);let s;return A?s=A:!G.length&&!y&&!T?s=b:(s={},G.length&&G.forEach(m=>pB(s,m,L,!0)),pB(s,b,L)),ol(b)&&V.set(b,s),s}function pB(o,b,y,T=!1){const{mixins:G,extends:V}=b;V&&pB(o,V,y,!0),G&&G.forEach(L=>pB(o,L,y,!0));for(const L in b)if(!(T&&L==="expose")){const A=Iue[L]||y&&y[L];o[L]=A?A(o[L],b[L]):b[L]}return o}const Iue={data:ine,props:lne,emits:lne,methods:C6,computed:C6,beforeCreate:bd,created:bd,beforeMount:bd,mounted:bd,beforeUpdate:bd,updated:bd,beforeDestroy:bd,beforeUnmount:bd,destroyed:bd,unmounted:bd,activated:bd,deactivated:bd,errorCaptured:bd,serverPrefetch:bd,components:C6,directives:C6,watch:Fue,provide:ine,inject:Nue};function ine(o,b){return b?o?function(){return Mc(fs(o)?o.call(this,this):o,fs(b)?b.call(this,this):b)}:b:o}function Nue(o,b){return C6(mQ(o),mQ(b))}function mQ(o){if(Pa(o)){const b={};for(let y=0;y1)return y&&fs(b)?b.call(T&&T.proxy):b}}function zue(o,b,y,T=!1){const G={},V={};dB(V,JB,1),o.propsDefaults=Object.create(null),Koe(o,b,G,V);for(const L in o.propsOptions[0])L in G||(G[L]=void 0);y?o.props=T?G:oue(G):o.type.props?o.props=G:o.props=V,o.attrs=V}function Vue(o,b,y,T){const{props:G,attrs:V,vnode:{patchFlag:L}}=o,A=ds(G),[s]=o.propsOptions;let m=!1;if((T||L>0)&&!(L&16)){if(L&8){const h=o.vnode.dynamicProps;for(let l=0;l{s=!0;const[c,i]=Xoe(l,b,!0);Mc(L,c),i&&A.push(...i)};!y&&b.mixins.length&&b.mixins.forEach(h),o.extends&&h(o.extends),o.mixins&&o.mixins.forEach(h)}if(!V&&!s)return ol(o)&&T.set(o,pE),pE;if(Pa(V))for(let h=0;h-1,i[1]=d<0||u-1||ti(i,"default"))&&A.push(l)}}}const m=[L,A];return ol(o)&&T.set(o,m),m}function cne(o){return o[0]!=="$"}function une(o){const b=o&&o.toString().match(/^\s*(function|class) (\w+)/);return b?b[2]:o===null?"null":""}function fne(o,b){return une(o)===une(b)}function dne(o,b){return Pa(b)?b.findIndex(y=>fne(y,o)):fs(b)&&fne(b,o)?0:-1}const Joe=o=>o[0]==="_"||o==="$stable",gq=o=>Pa(o)?o.map(b0):[b0(o)],Uue=(o,b,y)=>{if(b._n)return b;const T=jr((...G)=>gq(b(...G)),y);return T._c=!1,T},Qoe=(o,b,y)=>{const T=o._ctx;for(const G in o){if(Joe(G))continue;const V=o[G];if(fs(V))b[G]=Uue(G,V,T);else if(V!=null){const L=gq(V);b[G]=()=>L}}},qoe=(o,b)=>{const y=gq(b);o.slots.default=()=>y},Wue=(o,b)=>{if(o.vnode.shapeFlag&32){const y=b._;y?(o.slots=ds(b),dB(b,"_",y)):Qoe(b,o.slots={})}else o.slots={},b&&qoe(o,b);dB(o.slots,JB,1)},Gue=(o,b,y)=>{const{vnode:T,slots:G}=o;let V=!0,L=vl;if(T.shapeFlag&32){const A=b._;A?y&&A===1?V=!1:(Mc(G,b),!y&&A===1&&delete G._):(V=!b.$stable,Qoe(b,G)),L=b}else b&&(qoe(o,b),L={default:1});if(V)for(const A in G)!Joe(A)&&!(A in L)&&delete G[A]};function pQ(o,b,y,T,G=!1){if(Pa(o)){o.forEach((c,i)=>pQ(c,b&&(Pa(b)?b[i]:b),y,T,G));return}if(sB(T)&&!G)return;const V=T.shapeFlag&4?QB(T.component)||T.component.proxy:T.el,L=G?null:V,{i:A,r:s}=o,m=b&&b.r,h=A.refs===vl?A.refs={}:A.refs,l=A.setupState;if(m!=null&&m!==s&&(hc(m)?(h[m]=null,ti(l,m)&&(l[m]=null)):Wl(m)&&(m.value=null)),fs(s))A2(s,A,12,[L,h]);else{const c=hc(s),i=Wl(s);if(c||i){const u=()=>{if(o.f){const d=c?ti(l,s)?l[s]:h[s]:s.value;G?Pa(d)&&GQ(d,V):Pa(d)?d.includes(V)||d.push(V):c?(h[s]=[V],ti(l,s)&&(l[s]=h[s])):(s.value=[V],o.k&&(h[o.k]=s.value))}else c?(h[s]=L,ti(l,s)&&(l[s]=L)):i&&(s.value=L,o.k&&(h[o.k]=L))};L?(u.id=-1,sh(u,y)):u()}}}const sh=Cue;function Zue(o){return jue(o)}function jue(o,b){const y=iQ();y.__VUE__=!0;const{insert:T,remove:G,patchProp:V,createElement:L,createText:A,createComment:s,setText:m,setElementText:h,parentNode:l,nextSibling:c,setScopeId:i=Ap,insertStaticContent:u}=o,d=(ke,Ne,Ve,Oe=null,Fe=null,ie=null,we=!1,se=null,ue=!!Ne.dynamicChildren)=>{if(ke===Ne)return;ke&&!u3(ke,Ne)&&(Oe=fe(ke),he(ke,Fe,ie,!0),ke=null),Ne.patchFlag===-2&&(ue=!1,Ne.dynamicChildren=null);const{type:pe,ref:le,shapeFlag:Te}=Ne;switch(pe){case j6:g(ke,Ne,Ve,Oe);break;case Mp:v(ke,Ne,Ve,Oe);break;case HJ:ke==null&&x(Ne,Ve,Oe,we);break;case Uo:R(ke,Ne,Ve,Oe,Fe,ie,we,se,ue);break;default:Te&1?$(ke,Ne,Ve,Oe,Fe,ie,we,se,ue):Te&6?F(ke,Ne,Ve,Oe,Fe,ie,we,se,ue):(Te&64||Te&128)&&pe.process(ke,Ne,Ve,Oe,Fe,ie,we,se,ue,ye)}le!=null&&Fe&&pQ(le,ke&&ke.ref,ie,Ne||ke,!Ne)},g=(ke,Ne,Ve,Oe)=>{if(ke==null)T(Ne.el=A(Ne.children),Ve,Oe);else{const Fe=Ne.el=ke.el;Ne.children!==ke.children&&m(Fe,Ne.children)}},v=(ke,Ne,Ve,Oe)=>{ke==null?T(Ne.el=s(Ne.children||""),Ve,Oe):Ne.el=ke.el},x=(ke,Ne,Ve,Oe)=>{[ke.el,ke.anchor]=u(ke.children,Ne,Ve,Oe,ke.el,ke.anchor)},C=({el:ke,anchor:Ne},Ve,Oe)=>{let Fe;for(;ke&&ke!==Ne;)Fe=c(ke),T(ke,Ve,Oe),ke=Fe;T(Ne,Ve,Oe)},_=({el:ke,anchor:Ne})=>{let Ve;for(;ke&&ke!==Ne;)Ve=c(ke),G(ke),ke=Ve;G(Ne)},$=(ke,Ne,Ve,Oe,Fe,ie,we,se,ue)=>{we=we||Ne.type==="svg",ke==null?S(Ne,Ve,Oe,Fe,ie,we,se,ue):N(ke,Ne,Fe,ie,we,se,ue)},S=(ke,Ne,Ve,Oe,Fe,ie,we,se)=>{let ue,pe;const{type:le,props:Te,shapeFlag:de,transition:Me,dirs:Re}=ke;if(ue=ke.el=L(ke.type,ie,Te&&Te.is,Te),de&8?h(ue,ke.children):de&16&&D(ke.children,ue,null,Oe,Fe,ie&&le!=="foreignObject",we,se),Re&&o3(ke,null,Oe,"created"),O(ue,ke,ke.scopeId,we,Oe),Te){for(const We in Te)We!=="value"&&!oB(We)&&V(ue,We,null,Te[We],ie,ke.children,Oe,Fe,ne);"value"in Te&&V(ue,"value",null,Te.value),(pe=Te.onVnodeBeforeMount)&&v0(pe,Oe,ke)}Re&&o3(ke,null,Oe,"beforeMount");const ze=(!Fe||Fe&&!Fe.pendingBranch)&&Me&&!Me.persisted;ze&&Me.beforeEnter(ue),T(ue,Ne,Ve),((pe=Te&&Te.onVnodeMounted)||ze||Re)&&sh(()=>{pe&&v0(pe,Oe,ke),ze&&Me.enter(ue),Re&&o3(ke,null,Oe,"mounted")},Fe)},O=(ke,Ne,Ve,Oe,Fe)=>{if(Ve&&i(ke,Ve),Oe)for(let ie=0;ie{for(let pe=ue;pe{const se=Ne.el=ke.el;let{patchFlag:ue,dynamicChildren:pe,dirs:le}=Ne;ue|=ke.patchFlag&16;const Te=ke.props||vl,de=Ne.props||vl;let Me;Ve&&a3(Ve,!1),(Me=de.onVnodeBeforeUpdate)&&v0(Me,Ve,Ne,ke),le&&o3(Ne,ke,Ve,"beforeUpdate"),Ve&&a3(Ve,!0);const Re=Fe&&Ne.type!=="foreignObject";if(pe?M(ke.dynamicChildren,pe,se,Ve,Oe,Re,ie):we||J(ke,Ne,se,null,Ve,Oe,Re,ie,!1),ue>0){if(ue&16)k(se,Ne,Te,de,Ve,Oe,Fe);else if(ue&2&&Te.class!==de.class&&V(se,"class",null,de.class,Fe),ue&4&&V(se,"style",Te.style,de.style,Fe),ue&8){const ze=Ne.dynamicProps;for(let We=0;We{Me&&v0(Me,Ve,Ne,ke),le&&o3(Ne,ke,Ve,"updated")},Oe)},M=(ke,Ne,Ve,Oe,Fe,ie,we)=>{for(let se=0;se{if(Ve!==Oe){if(Ve!==vl)for(const se in Ve)!oB(se)&&!(se in Oe)&&V(ke,se,Ve[se],null,we,Ne.children,Fe,ie,ne);for(const se in Oe){if(oB(se))continue;const ue=Oe[se],pe=Ve[se];ue!==pe&&se!=="value"&&V(ke,se,pe,ue,we,Ne.children,Fe,ie,ne)}"value"in Oe&&V(ke,"value",Ve.value,Oe.value)}},R=(ke,Ne,Ve,Oe,Fe,ie,we,se,ue)=>{const pe=Ne.el=ke?ke.el:A(""),le=Ne.anchor=ke?ke.anchor:A("");let{patchFlag:Te,dynamicChildren:de,slotScopeIds:Me}=Ne;Me&&(se=se?se.concat(Me):Me),ke==null?(T(pe,Ve,Oe),T(le,Ve,Oe),D(Ne.children,Ve,le,Fe,ie,we,se,ue)):Te>0&&Te&64&&de&&ke.dynamicChildren?(M(ke.dynamicChildren,de,Ve,Fe,ie,we,se),(Ne.key!=null||Fe&&Ne===Fe.subTree)&&pq(ke,Ne,!0)):J(ke,Ne,Ve,le,Fe,ie,we,se,ue)},F=(ke,Ne,Ve,Oe,Fe,ie,we,se,ue)=>{Ne.slotScopeIds=se,ke==null?Ne.shapeFlag&512?Fe.ctx.activate(Ne,Ve,Oe,we,ue):H(Ne,Ve,Oe,Fe,ie,we,ue):j(ke,Ne,ue)},H=(ke,Ne,Ve,Oe,Fe,ie,we)=>{const se=ke.component=ofe(ke,Oe,Fe);if(KB(ke)&&(se.ctx.renderer=ye),afe(se),se.asyncDep){if(Fe&&Fe.registerDep(se,P),!ke.el){const ue=se.subTree=ct(Mp);v(null,ue,Ne,Ve)}return}P(se,ke,Ne,Ve,Fe,ie,we)},j=(ke,Ne,Ve)=>{const Oe=Ne.component=ke.component;if(bue(ke,Ne,Ve))if(Oe.asyncDep&&!Oe.asyncResolved){ee(Oe,Ne,Ve);return}else Oe.next=Ne,hue(Oe.update),Oe.update();else Ne.el=ke.el,Oe.vnode=Ne},P=(ke,Ne,Ve,Oe,Fe,ie,we)=>{const se=()=>{if(ke.isMounted){let{next:le,bu:Te,u:de,parent:Me,vnode:Re}=ke,ze=le,We;a3(ke,!1),le?(le.el=Re.el,ee(ke,le,we)):le=Re,Te&&aB(Te),(We=le.props&&le.props.onVnodeBeforeUpdate)&&v0(We,Me,le,Re),a3(ke,!0);const ot=NJ(ke),dt=ke.subTree;ke.subTree=ot,d(dt,ot,l(dt.el),fe(dt),ke,Fe,ie),le.el=ot.el,ze===null&&xue(ke,ot.el),de&&sh(de,Fe),(We=le.props&&le.props.onVnodeUpdated)&&sh(()=>v0(We,Me,le,Re),Fe)}else{let le;const{el:Te,props:de}=Ne,{bm:Me,m:Re,parent:ze}=ke,We=sB(Ne);if(a3(ke,!1),Me&&aB(Me),!We&&(le=de&&de.onVnodeBeforeMount)&&v0(le,ze,Ne),a3(ke,!0),Te&&$e){const ot=()=>{ke.subTree=NJ(ke),$e(Te,ke.subTree,ke,Fe,null)};We?Ne.type.__asyncLoader().then(()=>!ke.isUnmounted&&ot()):ot()}else{const ot=ke.subTree=NJ(ke);d(null,ot,Ve,Oe,ke,Fe,ie),Ne.el=ot.el}if(Re&&sh(Re,Fe),!We&&(le=de&&de.onVnodeMounted)){const ot=Ne;sh(()=>v0(le,ze,ot),Fe)}(Ne.shapeFlag&256||ze&&sB(ze.vnode)&&ze.vnode.shapeFlag&256)&&ke.a&&sh(ke.a,Fe),ke.isMounted=!0,Ne=Ve=Oe=null}},ue=ke.effect=new QQ(se,()=>sq(pe),ke.scope),pe=ke.update=()=>ue.run();pe.id=ke.uid,a3(ke,!0),pe()},ee=(ke,Ne,Ve)=>{Ne.component=ke;const Oe=ke.vnode.props;ke.vnode=Ne,ke.next=null,Vue(ke,Ne.props,Oe,Ve),Gue(ke,Ne.children,Ve),$E(),tne(),OE()},J=(ke,Ne,Ve,Oe,Fe,ie,we,se,ue=!1)=>{const pe=ke&&ke.children,le=ke?ke.shapeFlag:0,Te=Ne.children,{patchFlag:de,shapeFlag:Me}=Ne;if(de>0){if(de&128){ae(pe,Te,Ve,Oe,Fe,ie,we,se,ue);return}else if(de&256){K(pe,Te,Ve,Oe,Fe,ie,we,se,ue);return}}Me&8?(le&16&&ne(pe,Fe,ie),Te!==pe&&h(Ve,Te)):le&16?Me&16?ae(pe,Te,Ve,Oe,Fe,ie,we,se,ue):ne(pe,Fe,ie,!0):(le&8&&h(Ve,""),Me&16&&D(Te,Ve,Oe,Fe,ie,we,se,ue))},K=(ke,Ne,Ve,Oe,Fe,ie,we,se,ue)=>{ke=ke||pE,Ne=Ne||pE;const pe=ke.length,le=Ne.length,Te=Math.min(pe,le);let de;for(de=0;dele?ne(ke,Fe,ie,!0,!1,Te):D(Ne,Ve,Oe,Fe,ie,we,se,ue,Te)},ae=(ke,Ne,Ve,Oe,Fe,ie,we,se,ue)=>{let pe=0;const le=Ne.length;let Te=ke.length-1,de=le-1;for(;pe<=Te&&pe<=de;){const Me=ke[pe],Re=Ne[pe]=ue?S2(Ne[pe]):b0(Ne[pe]);if(u3(Me,Re))d(Me,Re,Ve,null,Fe,ie,we,se,ue);else break;pe++}for(;pe<=Te&&pe<=de;){const Me=ke[Te],Re=Ne[de]=ue?S2(Ne[de]):b0(Ne[de]);if(u3(Me,Re))d(Me,Re,Ve,null,Fe,ie,we,se,ue);else break;Te--,de--}if(pe>Te){if(pe<=de){const Me=de+1,Re=Mede)for(;pe<=Te;)he(ke[pe],Fe,ie,!0),pe++;else{const Me=pe,Re=pe,ze=new Map;for(pe=Re;pe<=de;pe++){const ut=Ne[pe]=ue?S2(Ne[pe]):b0(Ne[pe]);ut.key!=null&&ze.set(ut.key,pe)}let We,ot=0;const dt=de-Re+1;let Ge=!1,Xe=0;const qe=new Array(dt);for(pe=0;pe=dt){he(ut,Fe,ie,!0);continue}let tt;if(ut.key!=null)tt=ze.get(ut.key);else for(We=Re;We<=de;We++)if(qe[We-Re]===0&&u3(ut,Ne[We])){tt=We;break}tt===void 0?he(ut,Fe,ie,!0):(qe[tt-Re]=pe+1,tt>=Xe?Xe=tt:Ge=!0,d(ut,Ne[tt],Ve,null,Fe,ie,we,se,ue),ot++)}const gt=Ge?Yue(qe):pE;for(We=gt.length-1,pe=dt-1;pe>=0;pe--){const ut=Re+pe,tt=Ne[ut],Ct=ut+1{const{el:ie,type:we,transition:se,children:ue,shapeFlag:pe}=ke;if(pe&6){Q(ke.component.subTree,Ne,Ve,Oe);return}if(pe&128){ke.suspense.move(Ne,Ve,Oe);return}if(pe&64){we.move(ke,Ne,Ve,ye);return}if(we===Uo){T(ie,Ne,Ve);for(let Te=0;Tese.enter(ie),Fe);else{const{leave:Te,delayLeave:de,afterLeave:Me}=se,Re=()=>T(ie,Ne,Ve),ze=()=>{Te(ie,()=>{Re(),Me&&Me()})};de?de(ie,Re,ze):ze()}else T(ie,Ne,Ve)},he=(ke,Ne,Ve,Oe=!1,Fe=!1)=>{const{type:ie,props:we,ref:se,children:ue,dynamicChildren:pe,shapeFlag:le,patchFlag:Te,dirs:de}=ke;if(se!=null&&pQ(se,null,Ve,ke,!0),le&256){Ne.ctx.deactivate(ke);return}const Me=le&1&&de,Re=!sB(ke);let ze;if(Re&&(ze=we&&we.onVnodeBeforeUnmount)&&v0(ze,Ne,ke),le&6)ce(ke.component,Ve,Oe);else{if(le&128){ke.suspense.unmount(Ve,Oe);return}Me&&o3(ke,null,Ne,"beforeUnmount"),le&64?ke.type.remove(ke,Ne,Ve,Fe,ye,Oe):pe&&(ie!==Uo||Te>0&&Te&64)?ne(pe,Ne,Ve,!1,!0):(ie===Uo&&Te&384||!Fe&&le&16)&&ne(ue,Ne,Ve),Oe&&ge(ke)}(Re&&(ze=we&&we.onVnodeUnmounted)||Me)&&sh(()=>{ze&&v0(ze,Ne,ke),Me&&o3(ke,null,Ne,"unmounted")},Ve)},ge=ke=>{const{type:Ne,el:Ve,anchor:Oe,transition:Fe}=ke;if(Ne===Uo){Se(Ve,Oe);return}if(Ne===HJ){_(ke);return}const ie=()=>{G(Ve),Fe&&!Fe.persisted&&Fe.afterLeave&&Fe.afterLeave()};if(ke.shapeFlag&1&&Fe&&!Fe.persisted){const{leave:we,delayLeave:se}=Fe,ue=()=>we(Ve,ie);se?se(ke.el,ie,ue):ue()}else ie()},Se=(ke,Ne)=>{let Ve;for(;ke!==Ne;)Ve=c(ke),G(ke),ke=Ve;G(Ne)},ce=(ke,Ne,Ve)=>{const{bum:Oe,scope:Fe,update:ie,subTree:we,um:se}=ke;Oe&&aB(Oe),Fe.stop(),ie&&(ie.active=!1,he(we,ke,Ne,Ve)),se&&sh(se,Ne),sh(()=>{ke.isUnmounted=!0},Ne),Ne&&Ne.pendingBranch&&!Ne.isUnmounted&&ke.asyncDep&&!ke.asyncResolved&&ke.suspenseId===Ne.pendingId&&(Ne.deps--,Ne.deps===0&&Ne.resolve())},ne=(ke,Ne,Ve,Oe=!1,Fe=!1,ie=0)=>{for(let we=ie;weke.shapeFlag&6?fe(ke.component.subTree):ke.shapeFlag&128?ke.suspense.next():c(ke.anchor||ke.el),X=(ke,Ne,Ve)=>{ke==null?Ne._vnode&&he(Ne._vnode,null,null,!0):d(Ne._vnode||null,ke,Ne,null,null,null,Ve),tne(),Poe(),Ne._vnode=ke},ye={p:d,um:he,m:Q,r:ge,mt:H,mc:D,pc:J,pbc:M,n:fe,o};let Ce,$e;return b&&([Ce,$e]=b(ye)),{render:X,hydrate:Ce,createApp:Hue(X,Ce)}}function a3({effect:o,update:b},y){o.allowRecurse=b.allowRecurse=y}function pq(o,b,y=!1){const T=o.children,G=b.children;if(Pa(T)&&Pa(G))for(let V=0;V>1,o[y[A]]0&&(b[T]=y[V-1]),y[V]=T)}}for(V=y.length,L=y[V-1];V-- >0;)y[V]=L,L=b[L];return y}const Kue=o=>o.__isTeleport,T6=o=>o&&(o.disabled||o.disabled===""),hne=o=>typeof SVGElement<"u"&&o instanceof SVGElement,vQ=(o,b)=>{const y=o&&o.to;return hc(y)?b?b(y):null:y},Xue={__isTeleport:!0,process(o,b,y,T,G,V,L,A,s,m){const{mc:h,pc:l,pbc:c,o:{insert:i,querySelector:u,createText:d,createComment:g}}=m,v=T6(b.props);let{shapeFlag:x,children:C,dynamicChildren:_}=b;if(o==null){const $=b.el=d(""),S=b.anchor=d("");i($,y,T),i(S,y,T);const O=b.target=vQ(b.props,u),D=b.targetAnchor=d("");O&&(i(D,O),L=L||hne(O));const N=(M,k)=>{x&16&&h(C,M,k,G,V,L,A,s)};v?N(y,S):O&&N(O,D)}else{b.el=o.el;const $=b.anchor=o.anchor,S=b.target=o.target,O=b.targetAnchor=o.targetAnchor,D=T6(o.props),N=D?y:S,M=D?$:O;if(L=L||hne(S),_?(c(o.dynamicChildren,_,N,G,V,L,A),pq(o,b,!0)):s||l(o,b,N,M,G,V,L,A,!1),v)D||YF(b,y,$,m,1);else if((b.props&&b.props.to)!==(o.props&&o.props.to)){const k=b.target=vQ(b.props,u);k&&YF(b,k,null,m,0)}else D&&YF(b,S,O,m,1)}eae(b)},remove(o,b,y,T,{um:G,o:{remove:V}},L){const{shapeFlag:A,children:s,anchor:m,targetAnchor:h,target:l,props:c}=o;if(l&&V(h),(L||!T6(c))&&(V(m),A&16))for(let i=0;i0?Tp||pE:null,que(),P6>0&&Tp&&Tp.push(o),o}function Ts(o,b,y,T,G,V){return tae(ff(o,b,y,T,G,V,!0))}function za(o,b,y,T,G){return tae(ct(o,b,y,T,G,!0))}function yQ(o){return o?o.__v_isVNode===!0:!1}function u3(o,b){return o.type===b.type&&o.key===b.key}const JB="__vInternal",nae=({key:o})=>o??null,iB=({ref:o,ref_key:b,ref_for:y})=>(typeof o=="number"&&(o=""+o),o!=null?hc(o)||Wl(o)||fs(o)?{i:lm,r:o,k:b,f:!!y}:o:null);function ff(o,b=null,y=null,T=0,G=null,V=o===Uo?0:1,L=!1,A=!1){const s={__v_isVNode:!0,__v_skip:!0,type:o,props:b,key:b&&nae(b),ref:b&&iB(b),scopeId:Foe,slotScopeIds:null,children:y,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:V,patchFlag:T,dynamicProps:G,dynamicChildren:null,appContext:null,ctx:lm};return A?(vq(s,y),V&128&&o.normalize(s)):y&&(s.shapeFlag|=hc(y)?8:16),P6>0&&!L&&Tp&&(s.patchFlag>0||V&6)&&s.patchFlag!==32&&Tp.push(s),s}const ct=efe;function efe(o,b=null,y=null,T=0,G=null,V=!1){if((!o||o===Zoe)&&(o=Mp),yQ(o)){const A=By(o,b,!0);return y&&vq(A,y),P6>0&&!V&&Tp&&(A.shapeFlag&6?Tp[Tp.indexOf(o)]=A:Tp.push(A)),A.patchFlag|=-2,A}if(ufe(o)&&(o=o.__vccOpts),b){b=tfe(b);let{class:A,style:s}=b;A&&!hc(A)&&(b.class=KQ(A)),ol(s)&&(Moe(s)&&!Pa(s)&&(s=Mc({},s)),b.style=YQ(s))}const L=hc(o)?1:wue(o)?128:Kue(o)?64:ol(o)?4:fs(o)?2:0;return ff(o,b,y,T,G,L,V,!0)}function tfe(o){return o?Moe(o)||JB in o?Mc({},o):o:null}function By(o,b,y=!1){const{props:T,ref:G,patchFlag:V,children:L}=o,A=b?Jo(T||{},b):T;return{__v_isVNode:!0,__v_skip:!0,type:o.type,props:A,key:A&&nae(A),ref:b&&b.ref?y&&G?Pa(G)?G.concat(iB(b)):[G,iB(b)]:iB(b):G,scopeId:o.scopeId,slotScopeIds:o.slotScopeIds,children:L,target:o.target,targetAnchor:o.targetAnchor,staticCount:o.staticCount,shapeFlag:o.shapeFlag,patchFlag:b&&o.type!==Uo?V===-1?16:V|16:V,dynamicProps:o.dynamicProps,dynamicChildren:o.dynamicChildren,appContext:o.appContext,dirs:o.dirs,transition:o.transition,component:o.component,suspense:o.suspense,ssContent:o.ssContent&&By(o.ssContent),ssFallback:o.ssFallback&&By(o.ssFallback),el:o.el,anchor:o.anchor,ctx:o.ctx,ce:o.ce}}function ii(o=" ",b=0){return ct(j6,null,o,b)}function cm(o="",b=!1){return b?(mo(),za(Mp,null,o)):ct(Mp,null,o)}function b0(o){return o==null||typeof o=="boolean"?ct(Mp):Pa(o)?ct(Uo,null,o.slice()):typeof o=="object"?S2(o):ct(j6,null,String(o))}function S2(o){return o.el===null&&o.patchFlag!==-1||o.memo?o:By(o)}function vq(o,b){let y=0;const{shapeFlag:T}=o;if(b==null)b=null;else if(Pa(b))y=16;else if(typeof b=="object")if(T&65){const G=b.default;G&&(G._c&&(G._d=!1),vq(o,G()),G._c&&(G._d=!0));return}else{y=32;const G=b._;!G&&!(JB in b)?b._ctx=lm:G===3&&lm&&(lm.slots._===1?b._=1:(b._=2,o.patchFlag|=1024))}else fs(b)?(b={default:b,_ctx:lm},y=32):(b=String(b),T&64?(y=16,b=[ii(b)]):y=8);o.children=b,o.shapeFlag|=y}function Jo(...o){const b={};for(let y=0;yzu||lm;let bq,fE,gne="__VUE_INSTANCE_SETTERS__";(fE=iQ()[gne])||(fE=iQ()[gne]=[]),fE.push(o=>zu=o),bq=o=>{fE.length>1?fE.forEach(b=>b(o)):fE[0](o)};const TE=o=>{bq(o),o.scope.on()},g3=()=>{zu&&zu.scope.off(),bq(null)};function rae(o){return o.vnode.shapeFlag&4}let I6=!1;function afe(o,b=!1){I6=b;const{props:y,children:T}=o.vnode,G=rae(o);zue(o,y,G,b),Wue(o,T);const V=G?sfe(o,b):void 0;return I6=!1,V}function sfe(o,b){const y=o.type;o.accessCache=Object.create(null),o.proxy=rq(new Proxy(o.ctx,$ue));const{setup:T}=y;if(T){const G=o.setupContext=T.length>1?lfe(o):null;TE(o),$E();const V=A2(T,o,0,[o.props,G]);if(OE(),g3(),foe(V)){if(V.then(g3,g3),b)return V.then(L=>{pne(o,L,b)}).catch(L=>{ZB(L,o,0)});o.asyncDep=V}else pne(o,V,b)}else oae(o,b)}function pne(o,b,y){fs(b)?o.type.__ssrInlineRender?o.ssrRender=b:o.render=b:ol(b)&&(o.setupState=Loe(b)),oae(o,y)}let vne;function oae(o,b,y){const T=o.type;if(!o.render){if(!b&&vne&&!T.render){const G=T.template||mq(o).template;if(G){const{isCustomElement:V,compilerOptions:L}=o.appContext.config,{delimiters:A,compilerOptions:s}=T,m=Mc(Mc({isCustomElement:V,delimiters:A},L),s);T.render=vne(G,m)}}o.render=T.render||Ap}TE(o),$E(),Oue(o),OE(),g3()}function ife(o){return o.attrsProxy||(o.attrsProxy=new Proxy(o.attrs,{get(b,y){return uh(o,"get","$attrs"),b[y]}}))}function lfe(o){const b=y=>{o.exposed=y||{}};return{get attrs(){return ife(o)},slots:o.slots,emit:o.emit,expose:b}}function QB(o){if(o.exposed)return o.exposeProxy||(o.exposeProxy=new Proxy(Loe(rq(o.exposed)),{get(b,y){if(y in b)return b[y];if(y in S6)return S6[y](o)},has(b,y){return y in b||y in S6}}))}function cfe(o,b=!0){return fs(o)?o.displayName||o.name:o.name||b&&o.__name}function ufe(o){return fs(o)&&"__vccOpts"in o}const on=(o,b)=>uue(o,b,I6);function um(o,b,y){const T=arguments.length;return T===2?ol(b)&&!Pa(b)?yQ(b)?ct(o,null,[b]):ct(o,b):ct(o,null,b):(T>3?y=Array.prototype.slice.call(arguments,2):T===3&&yQ(y)&&(y=[y]),ct(o,b,y))}const ffe=Symbol.for("v-scx"),dfe=()=>ni(ffe),hfe="3.3.4",mfe="http://www.w3.org/2000/svg",f3=typeof document<"u"?document:null,yne=f3&&f3.createElement("template"),gfe={insert:(o,b,y)=>{b.insertBefore(o,y||null)},remove:o=>{const b=o.parentNode;b&&b.removeChild(o)},createElement:(o,b,y,T)=>{const G=b?f3.createElementNS(mfe,o):f3.createElement(o,y?{is:y}:void 0);return o==="select"&&T&&T.multiple!=null&&G.setAttribute("multiple",T.multiple),G},createText:o=>f3.createTextNode(o),createComment:o=>f3.createComment(o),setText:(o,b)=>{o.nodeValue=b},setElementText:(o,b)=>{o.textContent=b},parentNode:o=>o.parentNode,nextSibling:o=>o.nextSibling,querySelector:o=>f3.querySelector(o),setScopeId(o,b){o.setAttribute(b,"")},insertStaticContent(o,b,y,T,G,V){const L=y?y.previousSibling:b.lastChild;if(G&&(G===V||G.nextSibling))for(;b.insertBefore(G.cloneNode(!0),y),!(G===V||!(G=G.nextSibling)););else{yne.innerHTML=T?`${o}`:o;const A=yne.content;if(T){const s=A.firstChild;for(;s.firstChild;)A.appendChild(s.firstChild);A.removeChild(s)}b.insertBefore(A,y)}return[L?L.nextSibling:b.firstChild,y?y.previousSibling:b.lastChild]}};function pfe(o,b,y){const T=o._vtc;T&&(b=(b?[b,...T]:[...T]).join(" ")),b==null?o.removeAttribute("class"):y?o.setAttribute("class",b):o.className=b}function vfe(o,b,y){const T=o.style,G=hc(y);if(y&&!G){if(b&&!hc(b))for(const V in b)y[V]==null&&bQ(T,V,"");for(const V in y)bQ(T,V,y[V])}else{const V=T.display;G?b!==y&&(T.cssText=y):b&&o.removeAttribute("style"),"_vod"in o&&(T.display=V)}}const bne=/\s*!important$/;function bQ(o,b,y){if(Pa(y))y.forEach(T=>bQ(o,b,T));else if(y==null&&(y=""),b.startsWith("--"))o.setProperty(b,y);else{const T=yfe(o,b);bne.test(y)?o.setProperty(DE(T),y.replace(bne,""),"important"):o[T]=y}}const xne=["Webkit","Moz","ms"],zJ={};function yfe(o,b){const y=zJ[b];if(y)return y;let T=bg(b);if(T!=="filter"&&T in o)return zJ[b]=T;T=_0(T);for(let G=0;GVJ||(Tfe.then(()=>VJ=0),VJ=Date.now());function Afe(o,b){const y=T=>{if(!T._vts)T._vts=Date.now();else if(T._vts<=y.attached)return;vg(Mfe(T,y.value),b,5,[T])};return y.value=o,y.attached=kfe(),y}function Mfe(o,b){if(Pa(b)){const y=o.stopImmediatePropagation;return o.stopImmediatePropagation=()=>{y.call(o),o._stopped=!0},b.map(T=>G=>!G._stopped&&T&&T(G))}else return b}const Sne=/^on[a-z]/,Efe=(o,b,y,T,G=!1,V,L,A,s)=>{b==="class"?pfe(o,T,G):b==="style"?vfe(o,y,T):zB(b)?WQ(b)||Cfe(o,b,y,T,L):(b[0]==="."?(b=b.slice(1),!0):b[0]==="^"?(b=b.slice(1),!1):_fe(o,b,T,G))?xfe(o,b,T,V,L,A,s):(b==="true-value"?o._trueValue=T:b==="false-value"&&(o._falseValue=T),bfe(o,b,T,G))};function _fe(o,b,y,T){return T?!!(b==="innerHTML"||b==="textContent"||b in o&&Sne.test(b)&&fs(y)):b==="spellcheck"||b==="draggable"||b==="translate"||b==="form"||b==="list"&&o.tagName==="INPUT"||b==="type"&&o.tagName==="TEXTAREA"||Sne.test(b)&&hc(y)?!1:b in o}const w2="transition",v6="animation",Hy=(o,{slots:b})=>um(kue,sae(o),b);Hy.displayName="Transition";const aae={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Rfe=Hy.props=Mc({},zoe,aae),s3=(o,b=[])=>{Pa(o)?o.forEach(y=>y(...b)):o&&o(...b)},Tne=o=>o?Pa(o)?o.some(b=>b.length>1):o.length>1:!1;function sae(o){const b={};for(const R in o)R in aae||(b[R]=o[R]);if(o.css===!1)return b;const{name:y="v",type:T,duration:G,enterFromClass:V=`${y}-enter-from`,enterActiveClass:L=`${y}-enter-active`,enterToClass:A=`${y}-enter-to`,appearFromClass:s=V,appearActiveClass:m=L,appearToClass:h=A,leaveFromClass:l=`${y}-leave-from`,leaveActiveClass:c=`${y}-leave-active`,leaveToClass:i=`${y}-leave-to`}=o,u=Lfe(G),d=u&&u[0],g=u&&u[1],{onBeforeEnter:v,onEnter:x,onEnterCancelled:C,onLeave:_,onLeaveCancelled:$,onBeforeAppear:S=v,onAppear:O=x,onAppearCancelled:D=C}=b,N=(R,F,H)=>{C2(R,F?h:A),C2(R,F?m:L),H&&H()},M=(R,F)=>{R._isLeaving=!1,C2(R,l),C2(R,i),C2(R,c),F&&F()},k=R=>(F,H)=>{const j=R?O:x,P=()=>N(F,R,H);s3(j,[F,P]),kne(()=>{C2(F,R?s:V),Py(F,R?h:A),Tne(j)||Ane(F,T,d,P)})};return Mc(b,{onBeforeEnter(R){s3(v,[R]),Py(R,V),Py(R,L)},onBeforeAppear(R){s3(S,[R]),Py(R,s),Py(R,m)},onEnter:k(!1),onAppear:k(!0),onLeave(R,F){R._isLeaving=!0;const H=()=>M(R,F);Py(R,l),lae(),Py(R,c),kne(()=>{R._isLeaving&&(C2(R,l),Py(R,i),Tne(_)||Ane(R,T,g,H))}),s3(_,[R,H])},onEnterCancelled(R){N(R,!1),s3(C,[R])},onAppearCancelled(R){N(R,!0),s3(D,[R])},onLeaveCancelled(R){M(R),s3($,[R])}})}function Lfe(o){if(o==null)return null;if(ol(o))return[UJ(o.enter),UJ(o.leave)];{const b=UJ(o);return[b,b]}}function UJ(o){return Cce(o)}function Py(o,b){b.split(/\s+/).forEach(y=>y&&o.classList.add(y)),(o._vtc||(o._vtc=new Set)).add(b)}function C2(o,b){b.split(/\s+/).forEach(T=>T&&o.classList.remove(T));const{_vtc:y}=o;y&&(y.delete(b),y.size||(o._vtc=void 0))}function kne(o){requestAnimationFrame(()=>{requestAnimationFrame(o)})}let Dfe=0;function Ane(o,b,y,T){const G=o._endId=++Dfe,V=()=>{G===o._endId&&T()};if(y)return setTimeout(V,y);const{type:L,timeout:A,propCount:s}=iae(o,b);if(!L)return T();const m=L+"end";let h=0;const l=()=>{o.removeEventListener(m,c),V()},c=i=>{i.target===o&&++h>=s&&l()};setTimeout(()=>{h(y[u]||"").split(", "),G=T(`${w2}Delay`),V=T(`${w2}Duration`),L=Mne(G,V),A=T(`${v6}Delay`),s=T(`${v6}Duration`),m=Mne(A,s);let h=null,l=0,c=0;b===w2?L>0&&(h=w2,l=L,c=V.length):b===v6?m>0&&(h=v6,l=m,c=s.length):(l=Math.max(L,m),h=l>0?L>m?w2:v6:null,c=h?h===w2?V.length:s.length:0);const i=h===w2&&/\b(transform|all)(,|$)/.test(T(`${w2}Property`).toString());return{type:h,timeout:l,propCount:c,hasTransform:i}}function Mne(o,b){for(;o.lengthEne(y)+Ene(o[T])))}function Ene(o){return Number(o.slice(0,-1).replace(",","."))*1e3}function lae(){return document.body.offsetHeight}const cae=new WeakMap,uae=new WeakMap,fae={name:"TransitionGroup",props:Mc({},Rfe,{tag:String,moveClass:String}),setup(o,{slots:b}){const y=yq(),T=Hoe();let G,V;return Woe(()=>{if(!G.length)return;const L=o.moveClass||`${o.name||"v"}-move`;if(!Ffe(G[0].el,y.vnode.el,L))return;G.forEach(Pfe),G.forEach(Ife);const A=G.filter(Nfe);lae(),A.forEach(s=>{const m=s.el,h=m.style;Py(m,L),h.transform=h.webkitTransform=h.transitionDuration="";const l=m._moveCb=c=>{c&&c.target!==m||(!c||/transform$/.test(c.propertyName))&&(m.removeEventListener("transitionend",l),m._moveCb=null,C2(m,L))};m.addEventListener("transitionend",l)})}),()=>{const L=ds(o),A=sae(L);let s=L.tag||Uo;G=V,V=b.default?lq(b.default()):[];for(let m=0;mdelete o.mode;fae.props;const Ofe=fae;function Pfe(o){const b=o.el;b._moveCb&&b._moveCb(),b._enterCb&&b._enterCb()}function Ife(o){uae.set(o,o.el.getBoundingClientRect())}function Nfe(o){const b=cae.get(o),y=uae.get(o),T=b.left-y.left,G=b.top-y.top;if(T||G){const V=o.el.style;return V.transform=V.webkitTransform=`translate(${T}px,${G}px)`,V.transitionDuration="0s",o}}function Ffe(o,b,y){const T=o.cloneNode();o._vtc&&o._vtc.forEach(L=>{L.split(/\s+/).forEach(A=>A&&T.classList.remove(A))}),y.split(/\s+/).forEach(L=>L&&T.classList.add(L)),T.style.display="none";const G=b.nodeType===1?b:b.parentNode;G.appendChild(T);const{hasTransform:V}=iae(T);return G.removeChild(T),V}const _ne=o=>{const b=o.props["onUpdate:modelValue"]||!1;return Pa(b)?y=>aB(b,y):b};function Bfe(o){o.target.composing=!0}function Rne(o){const b=o.target;b.composing&&(b.composing=!1,b.dispatchEvent(new Event("input")))}const Hfe={created(o,{modifiers:{lazy:b,trim:y,number:T}},G){o._assign=_ne(G);const V=T||G.props&&G.props.type==="number";mE(o,b?"change":"input",L=>{if(L.target.composing)return;let A=o.value;y&&(A=A.trim()),V&&(A=sQ(A)),o._assign(A)}),y&&mE(o,"change",()=>{o.value=o.value.trim()}),b||(mE(o,"compositionstart",Bfe),mE(o,"compositionend",Rne),mE(o,"change",Rne))},mounted(o,{value:b}){o.value=b??""},beforeUpdate(o,{value:b,modifiers:{lazy:y,trim:T,number:G}},V){if(o._assign=_ne(V),o.composing||document.activeElement===o&&o.type!=="range"&&(y||T&&o.value.trim()===b||(G||o.type==="number")&&sQ(o.value)===b))return;const L=b??"";o.value!==L&&(o.value=L)}},zfe=["ctrl","shift","alt","meta"],Vfe={stop:o=>o.stopPropagation(),prevent:o=>o.preventDefault(),self:o=>o.target!==o.currentTarget,ctrl:o=>!o.ctrlKey,shift:o=>!o.shiftKey,alt:o=>!o.altKey,meta:o=>!o.metaKey,left:o=>"button"in o&&o.button!==0,middle:o=>"button"in o&&o.button!==1,right:o=>"button"in o&&o.button!==2,exact:(o,b)=>zfe.some(y=>o[`${y}Key`]&&!b.includes(y))},Lne=(o,b)=>(y,...T)=>{for(let G=0;G{y6(o,!1)}):y6(o,b))},beforeUnmount(o,{value:b}){y6(o,b)}};function y6(o,b){o.style.display=b?o._vod:"none"}const Ufe=Mc({patchProp:Efe},gfe);let Dne;function Wfe(){return Dne||(Dne=Zue(Ufe))}const Gfe=(...o)=>{const b=Wfe().createApp(...o),{mount:y}=b;return b.mount=T=>{const G=Zfe(T);if(!G)return;const V=b._component;!fs(V)&&!V.render&&!V.template&&(V.template=G.innerHTML),G.innerHTML="";const L=y(G,!1,G instanceof SVGElement);return G instanceof Element&&(G.removeAttribute("v-cloak"),G.setAttribute("data-v-app","")),L},b};function Zfe(o){return hc(o)?document.querySelector(o):o}function dae(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var hae={exports:{}};(function(o,b){(function(T,G){o.exports=G()})(self,function(){return function(){var y={8847:function(L,A,s){var m=s(1828),h={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var l in h){var c=l.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");m.addStyleRule(c,h[l])}},8222:function(L,A,s){L.exports=s(2887)},7206:function(L,A,s){L.exports=s(822)},9509:function(L,A,s){L.exports=s(2201)},9548:function(L,A,s){L.exports=s(8729)},1039:function(L,A,s){L.exports=s(4382)},4296:function(L,A,s){L.exports=s(3102)},2576:function(L,A,s){var m=s(9548);m.register([s(7206),s(4201),s(8222),s(1039),s(4296),s(6398),s(9509)]),L.exports=m},4201:function(L,A,s){L.exports=s(8810)},6398:function(L,A,s){L.exports=s(2275)},2884:function(L){L.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},215:function(L,A,s){var m=s(2884),h=s(1940),l=s(5555),c=s(4467).templatedArray;s(4695),L.exports=c("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:h({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:m.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:m.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",l.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",l.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",l.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",l.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:h({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(L,A,s){var m=s(1828),h=s(9298),l=s(2605).draw;L.exports=function(d){var g=d._fullLayout,v=m.filterVisible(g.annotations);if(v.length&&d._fullData.length)return m.syncOrAsync([l,c],d)};function c(u){var d=u._fullLayout;m.filterVisible(d.annotations).forEach(function(g){var v=h.getFromId(u,g.xref),x=h.getFromId(u,g.yref),C=h.getRefType(g.xref),_=h.getRefType(g.yref);g._extremes={},C==="range"&&i(g,v),_==="range"&&i(g,x)})}function i(u,d){var g=d._id,v=g.charAt(0),x=u[v],C=u["a"+v],_=u[v+"ref"],$=u["a"+v+"ref"],S=u["_"+v+"padplus"],O=u["_"+v+"padminus"],D={x:1,y:-1}[v]*u[v+"shift"],N=3*u.arrowsize*u.arrowwidth||0,M=N+D,k=N-D,R=3*u.startarrowsize*u.arrowwidth||0,F=R+D,H=R-D,j;if($===_){var P=h.findExtremes(d,[d.r2c(x)],{ppadplus:M,ppadminus:k}),ee=h.findExtremes(d,[d.r2c(C)],{ppadplus:Math.max(S,F),ppadminus:Math.max(O,H)});j={min:[P.min[0],ee.min[0]],max:[P.max[0],ee.max[0]]}}else F=C?F+C:F,H=C?H-C:H,j=h.findExtremes(d,[d.r2c(x)],{ppadplus:Math.max(S,M,F),ppadminus:Math.max(O,k,H)});u._extremes[g]=j}},4317:function(L,A,s){var m=s(1828),h=s(3972),l=s(4467).arrayEditor;L.exports={hasClickToShow:c,onClick:i};function c(g,v){var x=u(g,v);return x.on.length>0||x.explicitOff.length>0}function i(g,v){var x=u(g,v),C=x.on,_=x.off.concat(x.explicitOff),$={},S=g._fullLayout.annotations,O,D;if(C.length||_.length){for(O=0;O.6666666666666666?Gn="right":Gn="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Gn]}for(var Gt=!1,Yt=["x","y"],Nt=0;Nt1)&&(_n===pn?(ht=sn.r2fraction(R["a"+Ft]),(ht<0||ht>1)&&(Gt=!0)):Gt=!0),ft=sn._offset+sn.r2p(R[Ft]),$t=.5}else{var pt=it==="domain";Ft==="x"?(vt=R[Ft],ft=pt?sn._offset+sn._length*vt:ft=J.l+J.w*vt):(vt=1-R[Ft],ft=pt?sn._offset+sn._length*vt:ft=J.t+J.h*vt),$t=R.showarrow?.5:vt}if(R.showarrow){lt.head=ft;var Tt=R["a"+Ft];if(Ze=an*Ct(.5,R.xanchor)-Cn*Ct(.5,R.yanchor),_n===pn){var Et=u.getRefType(_n);Et==="domain"?(Ft==="y"&&(Tt=1-Tt),lt.tail=sn._offset+sn._length*Tt):Et==="paper"?Ft==="y"?(Tt=1-Tt,lt.tail=J.t+J.h*Tt):lt.tail=J.l+J.w*Tt:lt.tail=sn._offset+sn.r2p(Tt),wt=Ze}else lt.tail=ft+Tt,wt=Ze+Tt;lt.text=lt.tail+Ze;var fn=ee[Ft==="x"?"width":"height"];if(pn==="paper"&&(lt.head=c.constrain(lt.head,1,fn-1)),_n==="pixel"){var tn=-Math.max(lt.tail-3,lt.text),Zt=Math.min(lt.tail+3,lt.text)-fn;tn>0?(lt.tail+=tn,lt.text+=tn):Zt>0&&(lt.tail-=Zt,lt.text-=Zt)}lt.tail+=wn,lt.head+=wn}else Ze=jn*Ct($t,Wn),wt=Ze,lt.text=ft+Ze;lt.text+=wn,Ze+=wn,wt+=wn,R["_"+Ft+"padplus"]=jn/2+wt,R["_"+Ft+"padminus"]=jn/2-wt,R["_"+Ft+"size"]=jn,R["_"+Ft+"shift"]=Ze}if(Gt){Ve.remove();return}var Dt=0,un=0;if(R.align!=="left"&&(Dt=(qe-Ge)*(R.align==="center"?.5:1)),R.valign!=="top"&&(un=(gt-Xe)*(R.valign==="middle"?.5:1)),ot)We.select("svg").attr({x:ie+Dt-1,y:ie+un}).call(g.setClipUrl,se?ne:null,k);else{var Un=ie+un-dt.top,tr=ie+Dt-dt.left;Te.call(x.positionText,tr,Un).call(g.setClipUrl,se?ne:null,k)}ue.select("rect").call(g.setRect,ie,ie,qe,gt),we.call(g.setRect,Oe/2,Oe/2,ut-Oe,tt-Oe),Ve.call(g.setTranslate,Math.round(fe.x.text-ut/2),Math.round(fe.y.text-tt/2)),Ce.attr({transform:"rotate("+X+","+fe.x.text+","+fe.y.text+")"});var Er=function(pr,Gn){ye.selectAll(".annotation-arrow-g").remove();var Ir=fe.x.head,Tr=fe.y.head,rr=fe.x.tail+pr,Yr=fe.y.tail+Gn,_r=fe.x.text+pr,Ln=fe.y.text+Gn,xr=c.rotationXYMatrix(X,_r,Ln),or=c.apply2DTransform(xr),wr=c.apply2DTransform2(xr),ro=+we.attr("width"),vo=+we.attr("height"),Cr=_r-.5*ro,He=Cr+ro,De=Ln-.5*vo,St=De+vo,kt=[[Cr,De,Cr,St],[Cr,St,He,St],[He,St,He,De],[He,De,Cr,De]].map(wr);if(!kt.reduce(function(gn,Qn){return gn^!!c.segmentsIntersect(Ir,Tr,Ir+1e6,Tr+1e6,Qn[0],Qn[1],Qn[2],Qn[3])},!1)){kt.forEach(function(gn){var Qn=c.segmentsIntersect(rr,Yr,Ir,Tr,gn[0],gn[1],gn[2],gn[3]);Qn&&(rr=Qn.x,Yr=Qn.y)});var Pt=R.arrowwidth,Bt=R.arrowcolor,Ut=R.arrowside,Ot=ye.append("g").style({opacity:d.opacity(Bt)}).classed("annotation-arrow-g",!0),_t=Ot.append("path").attr("d","M"+rr+","+Yr+"L"+Ir+","+Tr).style("stroke-width",Pt+"px").call(d.stroke,d.rgb(Bt));if(S(_t,Ut,R),K.annotationPosition&&_t.node().parentNode&&!H){var qt=Ir,cn=Tr;if(R.standoff){var Qt=Math.sqrt(Math.pow(Ir-rr,2)+Math.pow(Tr-Yr,2));qt+=R.standoff*(rr-Ir)/Qt,cn+=R.standoff*(Yr-Tr)/Qt}var nn=Ot.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(rr-qt)+","+(Yr-cn),transform:i(qt,cn)}).style("stroke-width",Pt+6+"px").call(d.stroke,"rgba(0,0,0,0)").call(d.fill,"rgba(0,0,0,0)"),Sn,bn;_.init({element:nn.node(),gd:k,prepFn:function(){var gn=g.getTranslate(Ve);Sn=gn.x,bn=gn.y,j&&j.autorange&&ge(j._name+".autorange",!0),P&&P.autorange&&ge(P._name+".autorange",!0)},moveFn:function(gn,Qn){var Bn=or(Sn,bn),Hr=Bn[0]+gn,fr=Bn[1]+Qn;Ve.call(g.setTranslate,Hr,fr),Se("x",N(j,gn,"x",J,R)),Se("y",N(P,Qn,"y",J,R)),R.axref===R.xref&&Se("ax",N(j,gn,"ax",J,R)),R.ayref===R.yref&&Se("ay",N(P,Qn,"ay",J,R)),Ot.attr("transform",i(gn,Qn)),Ce.attr({transform:"rotate("+X+","+Hr+","+fr+")"})},doneFn:function(){h.call("_guiRelayout",k,ce());var gn=document.querySelector(".js-notes-box-panel");gn&&gn.redraw(gn.selectedObj)}})}}};if(R.showarrow&&Er(0,0),$e){var zt;_.init({element:Ve.node(),gd:k,prepFn:function(){zt=Ce.attr("transform")},moveFn:function(pr,Gn){var Ir="pointer";if(R.showarrow)R.axref===R.xref?Se("ax",N(j,pr,"ax",J,R)):Se("ax",R.ax+pr),R.ayref===R.yref?Se("ay",N(P,Gn,"ay",J.w,R)):Se("ay",R.ay+Gn),Er(pr,Gn);else{if(H)return;var Tr,rr;if(j)Tr=N(j,pr,"x",J,R);else{var Yr=R._xsize/J.w,_r=R.x+(R._xshift-R.xshift)/J.w-Yr/2;Tr=_.align(_r+pr/J.w,Yr,0,1,R.xanchor)}if(P)rr=N(P,Gn,"y",J,R);else{var Ln=R._ysize/J.h,xr=R.y-(R._yshift+R.yshift)/J.h-Ln/2;rr=_.align(xr-Gn/J.h,Ln,0,1,R.yanchor)}Se("x",Tr),Se("y",rr),(!j||!P)&&(Ir=_.getCursor(j?.5:Tr,P?.5:rr,R.xanchor,R.yanchor))}Ce.attr({transform:i(pr,Gn)+zt}),C(Ve,Ir)},clickFn:function(pr,Gn){R.captureevents&&k.emit("plotly_clickannotation",Ne(Gn))},doneFn:function(){C(Ve),h.call("_guiRelayout",k,ce());var pr=document.querySelector(".js-notes-box-panel");pr&&pr.redraw(pr.selectedObj)}})}}K.annotationText?Te.call(x.makeEditable,{delegate:Ve,gd:k}).call(de).on("edit",function(Re){R.text=Re,this.call(de),Se("text",Re),j&&j.autorange&&ge(j._name+".autorange",!0),P&&P.autorange&&ge(P._name+".autorange",!0),h.call("_guiRelayout",k,ce())}):Te.call(de)}},3011:function(L,A,s){var m=s(9898),h=s(7901),l=s(2884),c=s(1828),i=c.strScale,u=c.strRotate,d=c.strTranslate;L.exports=function(v,x,C){var _=v.node(),$=l[C.arrowhead||0],S=l[C.startarrowhead||0],O=(C.arrowwidth||1)*(C.arrowsize||1),D=(C.arrowwidth||1)*(C.startarrowsize||1),N=x.indexOf("start")>=0,M=x.indexOf("end")>=0,k=$.backoff*O+C.standoff,R=S.backoff*D+C.startstandoff,F,H,j,P;if(_.nodeName==="line"){F={x:+v.attr("x1"),y:+v.attr("y1")},H={x:+v.attr("x2"),y:+v.attr("y2")};var ee=F.x-H.x,J=F.y-H.y;if(j=Math.atan2(J,ee),P=j+Math.PI,k&&R&&k+R>Math.sqrt(ee*ee+J*J)){Ce();return}if(k){if(k*k>ee*ee+J*J){Ce();return}var K=k*Math.cos(j),ae=k*Math.sin(j);H.x+=K,H.y+=ae,v.attr({x2:H.x,y2:H.y})}if(R){if(R*R>ee*ee+J*J){Ce();return}var Q=R*Math.cos(j),he=R*Math.sin(j);F.x-=Q,F.y-=he,v.attr({x1:F.x,y1:F.y})}}else if(_.nodeName==="path"){var ge=_.getTotalLength(),Se="";if(ge1){C=!0;break}}C?i.fullLayout._infolayer.select(".annotation-"+i.id+'[data-index="'+v+'"]').remove():(x._pdata=h(i.glplot.cameraParams,[u.xaxis.r2l(x.x)*d[0],u.yaxis.r2l(x.y)*d[1],u.zaxis.r2l(x.z)*d[2]]),m(i.graphDiv,x,v,i.id,x._xa,x._ya))}}},2468:function(L,A,s){var m=s(3972),h=s(1828);L.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:s(6997)}}},layoutAttributes:s(6997),handleDefaults:s(226),includeBasePlot:l,convert:s(5485),draw:s(2188)};function l(c,i){var u=m.subplotsRegistry.gl3d;if(u)for(var d=u.attrRegex,g=Object.keys(c),v=0;v=0)))return v;if(S===3)_[S]>1&&(_[S]=1);else if(_[S]>=1)return v}var O=Math.round(_[0]*255)+", "+Math.round(_[1]*255)+", "+Math.round(_[2]*255);return $?"rgba("+O+", "+_[3]+")":"rgb("+O+")"}},3583:function(L,A,s){var m=s(3838),h=s(1940),l=s(1426).extendFlat,c=s(962).overrideAll;L.exports=c({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:m.linecolor,outlinewidth:m.linewidth,bordercolor:m.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:m.minor.tickmode,nticks:m.nticks,tick0:m.tick0,dtick:m.dtick,tickvals:m.tickvals,ticktext:m.ticktext,ticks:l({},m.ticks,{dflt:""}),ticklabeloverflow:l({},m.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:m.ticklen,tickwidth:m.tickwidth,tickcolor:m.tickcolor,ticklabelstep:m.ticklabelstep,showticklabels:m.showticklabels,labelalias:m.labelalias,tickfont:h({}),tickangle:m.tickangle,tickformat:m.tickformat,tickformatstops:m.tickformatstops,tickprefix:m.tickprefix,showtickprefix:m.showtickprefix,ticksuffix:m.ticksuffix,showticksuffix:m.showticksuffix,separatethousands:m.separatethousands,exponentformat:m.exponentformat,minexponent:m.minexponent,showexponent:m.showexponent,title:{text:{valType:"string"},font:h({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:h({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},939:function(L){L.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},2499:function(L,A,s){var m=s(1828),h=s(4467),l=s(6218),c=s(8701),i=s(6115),u=s(9426),d=s(3583);L.exports=function(v,x,C){var _=h.newContainer(x,"colorbar"),$=v.colorbar||{};function S(fe,X){return m.coerce($,_,d,fe,X)}var O=C.margin||{t:0,b:0,l:0,r:0},D=C.width-O.l-O.r,N=C.height-O.t-O.b,M=S("orientation"),k=M==="v",R=S("thicknessmode");S("thickness",R==="fraction"?30/(k?D:N):30);var F=S("lenmode");S("len",F==="fraction"?1:k?N:D);var H=S("yref"),j=S("xref"),P=H==="paper",ee=j==="paper",J,K,ae,Q="left";k?(ae="middle",Q=ee?"left":"right",J=ee?1.02:1,K=.5):(ae=P?"bottom":"top",Q="center",J=.5,K=P?1.02:1),m.coerce($,_,{x:{valType:"number",min:ee?-2:0,max:ee?3:1,dflt:J}},"x"),m.coerce($,_,{y:{valType:"number",min:P?-2:0,max:P?3:1,dflt:K}},"y"),S("xanchor",Q),S("xpad"),S("yanchor",ae),S("ypad"),m.noneOrAll($,_,["x","y"]),S("outlinecolor"),S("outlinewidth"),S("bordercolor"),S("borderwidth"),S("bgcolor");var he=m.coerce($,_,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:k?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");S("ticklabeloverflow",he.indexOf("inside")!==-1?"hide past domain":"hide past div"),l($,_,S,"linear");var ge=C.font,Se={outerTicks:!1,font:ge};he.indexOf("inside")!==-1&&(Se.bgColor="black"),u($,_,S,"linear",Se),i($,_,S,"linear",Se),c($,_,S,"linear",Se),S("title.text",C._dfltTitle.colorbar);var ce=_.showticklabels?_.tickfont:ge,ne=m.extendFlat({},ce,{color:ge.color,size:m.bigFont(ce.size)});m.coerceFont(S,"title.font",ne),S("title.side",k?"top":"right")}},8981:function(L,A,s){var m=s(9898),h=s(4267),l=s(4875),c=s(3972),i=s(9298),u=s(8569),d=s(1828),g=d.strTranslate,v=s(1426).extendFlat,x=s(6964),C=s(1424),_=s(7901),$=s(2998),S=s(3893),O=s(2869).flipScale,D=s(1453),N=s(2830),M=s(3838),k=s(8783),R=k.LINE_SPACING,F=k.FROM_TL,H=k.FROM_BR,j=s(939).cn;function P(he){var ge=he._fullLayout,Se=ge._infolayer.selectAll("g."+j.colorbar).data(ee(he),function(ce){return ce._id});Se.enter().append("g").attr("class",function(ce){return ce._id}).classed(j.colorbar,!0),Se.each(function(ce){var ne=m.select(this);d.ensureSingle(ne,"rect",j.cbbg),d.ensureSingle(ne,"g",j.cbfills),d.ensureSingle(ne,"g",j.cblines),d.ensureSingle(ne,"g",j.cbaxis,function(X){X.classed(j.crisp,!0)}),d.ensureSingle(ne,"g",j.cbtitleunshift,function(X){X.append("g").classed(j.cbtitle,!0)}),d.ensureSingle(ne,"rect",j.cboutline);var fe=J(ne,ce,he);fe&&fe.then&&(he._promises||[]).push(fe),he._context.edits.colorbarPosition&&K(ne,ce,he)}),Se.exit().each(function(ce){l.autoMargin(he,ce._id)}).remove(),Se.order()}function ee(he){var ge=he._fullLayout,Se=he.calcdata,ce=[],ne,fe,X,ye;function Ce(pe){return v(pe,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function $e(){typeof ye.calc=="function"?ye.calc(he,X,ne):(ne._fillgradient=fe.reversescale?O(fe.colorscale):fe.colorscale,ne._zrange=[fe[ye.min],fe[ye.max]])}for(var ke=0;ke1){var lt=Math.pow(10,Math.floor(Math.log(wn)/Math.LN10));jn*=lt*d.roundUp(wn/lt,[2,5,10]),(Math.abs(dt.start)/dt.size+1e-6)%1<2e-6&&(an.tick0=0)}an.dtick=jn}an.domain=ce?[sn+Fe/le.h,sn+Ct-Fe/le.h]:[sn+Oe/le.w,sn+Ct-Oe/le.w],an.setScale(),he.attr("transform",g(Math.round(le.l),Math.round(le.t)));var ft=he.select("."+j.cbtitleunshift).attr("transform",g(-Math.round(le.l),-Math.round(le.t))),wt=an.ticklabelposition,vt=an.title.font.size,$t=he.select("."+j.cbaxis),Ze,it=0,ht=0;function pt(Zt,Dt){var un={propContainer:an,propName:ge._propPrefix+"title",traceIndex:ge._traceIndex,_meta:ge._meta,placeholder:pe._dfltTitle.colorbar,containerGroup:he.select("."+j.cbtitle)},Un=Zt.charAt(0)==="h"?Zt.substr(1):"h"+Zt;he.selectAll("."+Un+",."+Un+"-math-group").remove(),$.draw(Se,Zt,v(un,Dt||{}))}function Tt(){if(ce&&Cn||!ce&&!Cn){var Zt,Dt;Re==="top"&&(Zt=Oe+le.l+Gt*ie,Dt=Fe+le.t+Yt*(1-sn-Ct)+3+vt*.75),Re==="bottom"&&(Zt=Oe+le.l+Gt*ie,Dt=Fe+le.t+Yt*(1-sn)-3-vt*.25),Re==="right"&&(Dt=Fe+le.t+Yt*we+3+vt*.75,Zt=Oe+le.l+Gt*sn),pt(an._id+"title",{attributes:{x:Zt,y:Dt,"text-anchor":ce?"start":"middle"}})}}function Et(){if(ce&&!Cn||!ce&&Cn){var Zt=an.position||0,Dt=an._offset+an._length/2,un,Un;if(Re==="right")Un=Dt,un=le.l+Gt*Zt+10+vt*(an.showticklabels?1:.5);else if(un=Dt,Re==="bottom"&&(Un=le.t+Yt*Zt+10+(wt.indexOf("inside")===-1?an.tickfont.size:0)+(an.ticks!=="intside"&&ge.ticklen||0)),Re==="top"){var tr=Me.text.split("
    ").length;Un=le.t+Yt*Zt+10-gt-R*vt*tr}pt((ce?"h":"v")+an._id+"title",{avoid:{selection:m.select(Se).selectAll("g."+an._id+"tick"),side:Re,offsetTop:ce?0:le.t,offsetLeft:ce?le.l:0,maxShift:ce?pe.width:pe.height},attributes:{x:un,y:Un,"text-anchor":"middle"},transform:{rotate:ce?-90:0,offset:0}})}}function fn(){if(!ce&&!Cn||ce&&Cn){var Zt=he.select("."+j.cbtitle),Dt=Zt.select("text"),un=[-Ce/2,Ce/2],Un=Zt.select(".h"+an._id+"title-math-group").node(),tr=15.6;Dt.node()&&(tr=parseInt(Dt.node().style.fontSize,10)*R);var Er;if(Un?(Er=C.bBox(Un),ht=Er.width,it=Er.height,it>tr&&(un[1]-=(it-tr)/2)):Dt.node()&&!Dt.classed(j.jsPlaceholder)&&(Er=C.bBox(Dt.node()),ht=Er.width,it=Er.height),ce){if(it){if(it+=5,Re==="top")an.domain[1]-=it/le.h,un[1]*=-1;else{an.domain[0]+=it/le.h;var zt=S.lineCount(Dt);un[1]+=(1-zt)*tr}Zt.attr("transform",g(un[0],un[1])),an.setScale()}}else ht&&(Re==="right"&&(an.domain[0]+=(ht+vt/2)/le.w),Zt.attr("transform",g(un[0],un[1])),an.setScale())}he.selectAll("."+j.cbfills+",."+j.cblines).attr("transform",ce?g(0,Math.round(le.h*(1-an.domain[1]))):g(Math.round(le.w*an.domain[0]),0)),$t.attr("transform",ce?g(0,Math.round(-le.t)):g(Math.round(-le.l),0));var pr=he.select("."+j.cbfills).selectAll("rect."+j.cbfill).attr("style","").data(Xe);pr.enter().append("rect").classed(j.cbfill,!0).attr("style",""),pr.exit().remove();var Gn=ze.map(an.c2p).map(Math.round).sort(function(_r,Ln){return _r-Ln});pr.each(function(_r,Ln){var xr=[Ln===0?ze[0]:(Xe[Ln]+Xe[Ln-1])/2,Ln===Xe.length-1?ze[1]:(Xe[Ln]+Xe[Ln+1])/2].map(an.c2p).map(Math.round);ce&&(xr[1]=d.constrain(xr[1]+(xr[1]>xr[0])?1:-1,Gn[0],Gn[1]));var or=m.select(this).attr(ce?"x":"y",Nt).attr(ce?"y":"x",m.min(xr)).attr(ce?"width":"height",Math.max(gt,2)).attr(ce?"height":"width",Math.max(m.max(xr)-m.min(xr),2));if(ge._fillgradient)C.gradient(or,Se,ge._id,ce?"vertical":"horizontalreversed",ge._fillgradient,"fill");else{var wr=ot(_r).replace("e-","");or.attr("fill",h(wr).toHexString())}});var Ir=he.select("."+j.cblines).selectAll("path."+j.cbline).data(de.color&&de.width?qe:[]);Ir.enter().append("path").classed(j.cbline,!0),Ir.exit().remove(),Ir.each(function(_r){var Ln=Nt,xr=Math.round(an.c2p(_r))+de.width/2%1;m.select(this).attr("d","M"+(ce?Ln+","+xr:xr+","+Ln)+(ce?"h":"v")+gt).call(C.lineGroupStyle,de.width,We(_r),de.dash)}),$t.selectAll("g."+an._id+"tick,path").remove();var Tr=Nt+gt+(Ce||0)/2-(ge.ticks==="outside"?1:0),rr=i.calcTicks(an),Yr=i.getTickSigns(an)[2];return i.drawTicks(Se,an,{vals:an.ticks==="inside"?i.clipEnds(an,rr):rr,layer:$t,path:i.makeTickPath(an,Tr,Yr),transFn:i.makeTransTickFn(an)}),i.drawLabels(Se,an,{vals:rr,layer:$t,transFn:i.makeTransTickLabelFn(an),labelFns:i.makeLabelFns(an,Tr)})}function tn(){var Zt,Dt=gt+Ce/2;wt.indexOf("inside")===-1&&(Zt=C.bBox($t.node()),Dt+=ce?Zt.width:Zt.height),Ze=ft.select("text");var un=0,Un=ce&&Re==="top",tr=!ce&&Re==="right",Er=0;if(Ze.node()&&!Ze.classed(j.jsPlaceholder)){var zt,pr=ft.select(".h"+an._id+"title-math-group").node();pr&&(ce&&Cn||!ce&&!Cn)?(Zt=C.bBox(pr),un=Zt.width,zt=Zt.height):(Zt=C.bBox(ft.node()),un=Zt.right-le.l-(ce?Nt:Zn),zt=Zt.bottom-le.t-(ce?Zn:Nt),!ce&&Re==="top"&&(Dt+=Zt.height,Er=Zt.height)),tr&&(Ze.attr("transform",g(un/2+vt/2,0)),un*=2),Dt=Math.max(Dt,ce?un:zt)}var Gn=(ce?Oe:Fe)*2+Dt+$e+Ce/2,Ir=0;!ce&&Me.text&&Ve==="bottom"&&we<=0&&(Ir=Gn/2,Gn+=Ir,Er+=Ir),pe._hColorbarMoveTitle=Ir,pe._hColorbarMoveCBTitle=Er;var Tr=$e+Ce,rr=(ce?Nt:Zn)-Tr/2-(ce?Oe:0),Yr=(ce?Zn:Nt)-(ce?tt:Fe+Er-Ir);he.select("."+j.cbbg).attr("x",rr).attr("y",Yr).attr(ce?"width":"height",Math.max(Gn-Ir,2)).attr(ce?"height":"width",Math.max(tt+Tr,2)).call(_.fill,ke).call(_.stroke,ge.bordercolor).style("stroke-width",$e);var _r=tr?Math.max(un-10,0):0;he.selectAll("."+j.cboutline).attr("x",(ce?Nt:Zn+Oe)+_r).attr("y",(ce?Zn+Fe-tt:Nt)+(Un?it:0)).attr(ce?"width":"height",Math.max(gt,2)).attr(ce?"height":"width",Math.max(tt-(ce?2*Fe+it:2*Oe+_r),2)).call(_.stroke,ge.outlinecolor).style({fill:"none","stroke-width":Ce});var Ln=ce?Ft*Gn:0,xr=ce?0:(1-pn)*Gn-Er;if(Ln=ue?le.l-Ln:-Ln,xr=se?le.t-xr:-xr,he.attr("transform",g(Ln,xr)),!ce&&($e||h(ke).getAlpha()&&!h.equals(pe.paper_bgcolor,ke))){var or=$t.selectAll("text"),wr=or[0].length,ro=he.select("."+j.cbbg).node(),vo=C.bBox(ro),Cr=C.getTranslate(he),He=2;or.each(function(cn,Qt){var nn=0,Sn=wr-1;if(Qt===nn||Qt===Sn){var bn=C.bBox(this),gn=C.getTranslate(this),Qn;if(Qt===Sn){var Bn=bn.right+gn.x,Hr=vo.right+Cr.x+Zn-$e-He+ie;Qn=Hr-Bn,Qn>0&&(Qn=0)}else if(Qt===nn){var fr=bn.left+gn.x,Vr=vo.left+Cr.x+Zn+$e+He;Qn=Vr-fr,Qn<0&&(Qn=0)}Qn&&(wr<3?this.setAttribute("transform","translate("+Qn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var De={},St=F[Ne],kt=H[Ne],Pt=F[Ve],Bt=H[Ve],Ut=Gn-gt;ce?(fe==="pixels"?(De.y=we,De.t=tt*Pt,De.b=tt*Bt):(De.t=De.b=0,De.yt=we+ne*Pt,De.yb=we-ne*Bt),ye==="pixels"?(De.x=ie,De.l=Gn*St,De.r=Gn*kt):(De.l=Ut*St,De.r=Ut*kt,De.xl=ie-X*St,De.xr=ie+X*kt)):(fe==="pixels"?(De.x=ie,De.l=tt*St,De.r=tt*kt):(De.l=De.r=0,De.xl=ie+ne*St,De.xr=ie-ne*kt),ye==="pixels"?(De.y=1-we,De.t=Gn*Pt,De.b=Gn*Bt):(De.t=Ut*Pt,De.b=Ut*Bt,De.yt=we-X*Pt,De.yb=we+X*Bt));var Ot=ge.y<.5?"b":"t",_t=ge.x<.5?"l":"r";Se._fullLayout._reservedMargin[ge._id]={};var qt={r:pe.width-rr-Ln,l:rr+De.r,b:pe.height-Yr-xr,t:Yr+De.b};ue&&se?l.autoMargin(Se,ge._id,De):ue?Se._fullLayout._reservedMargin[ge._id][Ot]=qt[Ot]:se||ce?Se._fullLayout._reservedMargin[ge._id][_t]=qt[_t]:Se._fullLayout._reservedMargin[ge._id][Ot]=qt[Ot]}return d.syncOrAsync([l.previousPromises,Tt,fn,Et,l.previousPromises,tn],Se)}function K(he,ge,Se){var ce=ge.orientation==="v",ne=Se._fullLayout,fe=ne._size,X,ye,Ce;u.init({element:he.node(),gd:Se,prepFn:function(){X=he.attr("transform"),x(he)},moveFn:function($e,ke){he.attr("transform",X+g($e,ke)),ye=u.align((ce?ge._uFrac:ge._vFrac)+$e/fe.w,ce?ge._thickFrac:ge._lenFrac,0,1,ge.xanchor),Ce=u.align((ce?ge._vFrac:1-ge._uFrac)-ke/fe.h,ce?ge._lenFrac:ge._thickFrac,0,1,ge.yanchor);var Ne=u.getCursor(ye,Ce,ge.xanchor,ge.yanchor);x(he,Ne)},doneFn:function(){if(x(he),ye!==void 0&&Ce!==void 0){var $e={};$e[ge._propPrefix+"x"]=ye,$e[ge._propPrefix+"y"]=Ce,ge._traceIndex!==void 0?c.call("_guiRestyle",Se,$e,ge._traceIndex):c.call("_guiRelayout",Se,$e)}}})}function ae(he,ge,Se){var ce=ge._levels,ne=[],fe=[],X,ye,Ce=ce.end+ce.size/100,$e=ce.size,ke=1.001*Se[0]-.001*Se[1],Ne=1.001*Se[1]-.001*Se[0];for(ye=0;ye<1e5&&(X=ce.start+ye*$e,!($e>0?X>=Ce:X<=Ce));ye++)X>ke&&X0?X>=Ce:X<=Ce));ye++)X>Se[0]&&XD-S?S=D-(O-D):O-D=0?k=g.colorscale.sequential:k=g.colorscale.sequentialminus,_._sync("colorscale",k)}}},3046:function(L,A,s){var m=s(1828),h=s(2869).hasColorscale,l=s(2869).extractOpts;L.exports=function(i,u){function d(S,O){var D=S["_"+O];D!==void 0&&(S[O]=D)}function g(S,O){var D=O.container?m.nestedProperty(S,O.container).get():S;if(D)if(D.coloraxis)D._colorAx=u[D.coloraxis];else{var N=l(D),M=N.auto;(M||N.min===void 0)&&d(D,O.min),(M||N.max===void 0)&&d(D,O.max),N.autocolorscale&&d(D,"colorscale")}}for(var v=0;v=0;k--,R++){var F=D[k];M[R]=[1-F[0],F[1]]}return M}function $(D,N){N=N||{};for(var M=D.domain,k=D.range,R=k.length,F=new Array(R),H=0;H1.3333333333333333-d?u:d}},461:function(L,A,s){var m=s(1828),h=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];L.exports=function(c,i,u,d){return u==="left"?c=0:u==="center"?c=1:u==="right"?c=2:c=m.constrain(Math.floor(c*3),0,2),d==="bottom"?i=0:d==="middle"?i=1:d==="top"?i=2:i=m.constrain(Math.floor(i*3),0,2),h[i][c]}},4505:function(L,A){A.selectMode=function(s){return s==="lasso"||s==="select"},A.drawMode=function(s){return s==="drawclosedpath"||s==="drawopenpath"||s==="drawline"||s==="drawrect"||s==="drawcircle"},A.openMode=function(s){return s==="drawline"||s==="drawopenpath"},A.rectMode=function(s){return s==="select"||s==="drawline"||s==="drawrect"||s==="drawcircle"},A.freeMode=function(s){return s==="lasso"||s==="drawclosedpath"||s==="drawopenpath"},A.selectingOrDrawing=function(s){return A.freeMode(s)||A.rectMode(s)}},8569:function(L,A,s){var m=s(8956),h=s(7035),l=s(8520),c=s(1828).removeElement,i=s(5555),u=L.exports={};u.align=s(2807),u.getCursor=s(461);var d=s(6041);u.unhover=d.wrapped,u.unhoverRaw=d.raw,u.init=function(C){var _=C.gd,$=1,S=_._context.doubleClickDelay,O=C.element,D,N,M,k,R,F,H,j;_._mouseDownTime||(_._mouseDownTime=0),O.style.pointerEvents="all",O.onmousedown=J,l?(O._ontouchstart&&O.removeEventListener("touchstart",O._ontouchstart),O._ontouchstart=J,O.addEventListener("touchstart",J,{passive:!1})):O.ontouchstart=J;function P(Q,he,ge){return Math.abs(Q)"u"&&typeof Q.clientY>"u"&&(Q.clientX=D,Q.clientY=N),M=new Date().getTime(),M-_._mouseDownTimeS&&($=Math.max($-1,1)),_._dragged)C.doneFn&&C.doneFn();else if(C.clickFn&&C.clickFn($,F),!j){var he;try{he=new MouseEvent("click",Q)}catch{var ge=v(Q);he=document.createEvent("MouseEvents"),he.initMouseEvent("click",Q.bubbles,Q.cancelable,Q.view,Q.detail,Q.screenX,Q.screenY,ge[0],ge[1],Q.ctrlKey,Q.altKey,Q.shiftKey,Q.metaKey,Q.button,Q.relatedTarget)}H.dispatchEvent(he)}_._dragging=!1,_._dragged=!1}};function g(){var x=document.createElement("div");x.className="dragcover";var C=x.style;return C.position="fixed",C.left=0,C.right=0,C.top=0,C.bottom=0,C.zIndex=999999999,C.background="none",document.body.appendChild(x),x}u.coverSlip=g;function v(x){return m(x.changedTouches?x.changedTouches[0]:x,document.body)}},6041:function(L,A,s){var m=s(1086),h=s(9990),l=s(4401).getGraphDiv,c=s(6675),i=L.exports={};i.wrapped=function(u,d,g){u=l(u),u._fullLayout&&h.clear(u._fullLayout._uid+c.HOVERID),i.raw(u,d,g)},i.raw=function(d,g){var v=d._fullLayout,x=d._hoverdata;g||(g={}),!(g.target&&!d._dragged&&m.triggerHandler(d,"plotly_beforehover",g)===!1)&&(v._hoverlayer.selectAll("g").remove(),v._hoverlayer.selectAll("line").remove(),v._hoverlayer.selectAll("circle").remove(),d._hoverdata=void 0,g.target&&x&&d.emit("plotly_unhover",{event:g,points:x}))}},9952:function(L,A){A.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},A.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},1424:function(L,A,s){var m=s(9898),h=s(1828),l=h.numberFormat,c=s(2770),i=s(4267),u=s(3972),d=s(7901),g=s(1081),v=h.strTranslate,x=s(3893),C=s(7922),_=s(8783),$=_.LINE_SPACING,S=s(7822).DESELECTDIM,O=s(4098),D=s(9984),N=s(3469).appendArrayPointValue,M=L.exports={};M.font=function(Ge,Xe,qe,gt){h.isPlainObject(Xe)&&(gt=Xe.color,qe=Xe.size,Xe=Xe.family),Xe&&Ge.style("font-family",Xe),qe+1&&Ge.style("font-size",qe+"px"),gt&&Ge.call(d.fill,gt)},M.setPosition=function(Ge,Xe,qe){Ge.attr("x",Xe).attr("y",qe)},M.setSize=function(Ge,Xe,qe){Ge.attr("width",Xe).attr("height",qe)},M.setRect=function(Ge,Xe,qe,gt,ut){Ge.call(M.setPosition,Xe,qe).call(M.setSize,gt,ut)},M.translatePoint=function(Ge,Xe,qe,gt){var ut=qe.c2p(Ge.x),tt=gt.c2p(Ge.y);if(c(ut)&&c(tt)&&Xe.node())Xe.node().nodeName==="text"?Xe.attr("x",ut).attr("y",tt):Xe.attr("transform",v(ut,tt));else return!1;return!0},M.translatePoints=function(Ge,Xe,qe){Ge.each(function(gt){var ut=m.select(this);M.translatePoint(gt,ut,Xe,qe)})},M.hideOutsideRangePoint=function(Ge,Xe,qe,gt,ut,tt){Xe.attr("display",qe.isPtWithinRange(Ge,ut)&>.isPtWithinRange(Ge,tt)?null:"none")},M.hideOutsideRangePoints=function(Ge,Xe){if(Xe._hasClipOnAxisFalse){var qe=Xe.xaxis,gt=Xe.yaxis;Ge.each(function(ut){var tt=ut[0].trace,Ct=tt.xcalendar,Gt=tt.ycalendar,Yt=u.traceIs(tt,"bar-like")?".bartext":".point,.textpoint";Ge.selectAll(Yt).each(function(Nt){M.hideOutsideRangePoint(Nt,m.select(this),qe,gt,Ct,Gt)})})}},M.crispRound=function(Ge,Xe,qe){return!Xe||!c(Xe)?qe||0:Ge._context.staticPlot?Xe:Xe<1?1:Math.round(Xe)},M.singleLineStyle=function(Ge,Xe,qe,gt,ut){Xe.style("fill","none");var tt=(((Ge||[])[0]||{}).trace||{}).line||{},Ct=qe||tt.width||0,Gt=ut||tt.dash||"";d.stroke(Xe,gt||tt.color),M.dashLine(Xe,Gt,Ct)},M.lineGroupStyle=function(Ge,Xe,qe,gt){Ge.style("fill","none").each(function(ut){var tt=(((ut||[])[0]||{}).trace||{}).line||{},Ct=Xe||tt.width||0,Gt=gt||tt.dash||"";m.select(this).call(d.stroke,qe||tt.color).call(M.dashLine,Gt,Ct)})},M.dashLine=function(Ge,Xe,qe){qe=+qe||0,Xe=M.dashStyle(Xe,qe),Ge.style({"stroke-dasharray":Xe,"stroke-width":qe+"px"})},M.dashStyle=function(Ge,Xe){Xe=+Xe||1;var qe=Math.max(Xe,3);return Ge==="solid"?Ge="":Ge==="dot"?Ge=qe+"px,"+qe+"px":Ge==="dash"?Ge=3*qe+"px,"+3*qe+"px":Ge==="longdash"?Ge=5*qe+"px,"+5*qe+"px":Ge==="dashdot"?Ge=3*qe+"px,"+qe+"px,"+qe+"px,"+qe+"px":Ge==="longdashdot"&&(Ge=5*qe+"px,"+2*qe+"px,"+qe+"px,"+2*qe+"px"),Ge};function k(Ge,Xe,qe){var gt=Xe.fillpattern,ut=gt&&M.getPatternAttr(gt.shape,0,"");if(ut){var tt=M.getPatternAttr(gt.bgcolor,0,null),Ct=M.getPatternAttr(gt.fgcolor,0,null),Gt=gt.fgopacity,Yt=M.getPatternAttr(gt.size,0,8),Nt=M.getPatternAttr(gt.solidity,0,.3),Ft=Xe.uid;M.pattern(Ge,"point",qe,Ft,ut,Yt,Nt,void 0,gt.fillmode,tt,Ct,Gt)}else Xe.fillcolor&&Ge.call(d.fill,Xe.fillcolor)}M.singleFillStyle=function(Ge,Xe){var qe=m.select(Ge.node()),gt=qe.data(),ut=((gt[0]||[])[0]||{}).trace||{};k(Ge,ut,Xe)},M.fillGroupStyle=function(Ge,Xe){Ge.style("stroke-width",0).each(function(qe){var gt=m.select(this);qe[0].trace&&k(gt,qe[0].trace,Xe)})};var R=s(998);M.symbolNames=[],M.symbolFuncs=[],M.symbolBackOffs=[],M.symbolNeedLines={},M.symbolNoDot={},M.symbolNoFill={},M.symbolList=[],Object.keys(R).forEach(function(Ge){var Xe=R[Ge],qe=Xe.n;M.symbolList.push(qe,String(qe),Ge,qe+100,String(qe+100),Ge+"-open"),M.symbolNames[qe]=Ge,M.symbolFuncs[qe]=Xe.f,M.symbolBackOffs[qe]=Xe.backoff||0,Xe.needLine&&(M.symbolNeedLines[qe]=!0),Xe.noDot?M.symbolNoDot[qe]=!0:M.symbolList.push(qe+200,String(qe+200),Ge+"-dot",qe+300,String(qe+300),Ge+"-open-dot"),Xe.noFill&&(M.symbolNoFill[qe]=!0)});var F=M.symbolNames.length,H="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";M.symbolNumber=function(Ge){if(c(Ge))Ge=+Ge;else if(typeof Ge=="string"){var Xe=0;Ge.indexOf("-open")>0&&(Xe=100,Ge=Ge.replace("-open","")),Ge.indexOf("-dot")>0&&(Xe+=200,Ge=Ge.replace("-dot","")),Ge=M.symbolNames.indexOf(Ge),Ge>=0&&(Ge+=Xe)}return Ge%100>=F||Ge>=400?0:Math.floor(Math.max(Ge,0))};function j(Ge,Xe,qe,gt){var ut=Ge%100;return M.symbolFuncs[ut](Xe,qe,gt)+(Ge>=200?H:"")}var P={x1:1,x2:0,y1:0,y2:0},ee={x1:0,x2:0,y1:1,y2:0},J=l("~f"),K={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:P},horizontalreversed:{node:"linearGradient",attrs:P,reversed:!0},vertical:{node:"linearGradient",attrs:ee},verticalreversed:{node:"linearGradient",attrs:ee,reversed:!0}};M.gradient=function(Ge,Xe,qe,gt,ut,tt){for(var Ct=ut.length,Gt=K[gt],Yt=new Array(Ct),Nt=0;Nt=0&&Ge.i===void 0&&(Ge.i=tt.i),Xe.style("opacity",gt.selectedOpacityFn?gt.selectedOpacityFn(Ge):Ge.mo===void 0?Ct.opacity:Ge.mo),gt.ms2mrc){var Yt;Ge.ms==="various"||Ct.size==="various"?Yt=3:Yt=gt.ms2mrc(Ge.ms),Ge.mrc=Yt,gt.selectedSizeFn&&(Yt=Ge.mrc=gt.selectedSizeFn(Ge));var Nt=M.symbolNumber(Ge.mx||Ct.symbol)||0;Ge.om=Nt%200>=100;var Ft=dt(Ge,qe),pn=se(Ge,qe);Xe.attr("d",j(Nt,Yt,Ft,pn))}var _n=!1,sn,Zn,an;if(Ge.so)an=Gt.outlierwidth,Zn=Gt.outliercolor,sn=Ct.outliercolor;else{var Cn=(Gt||{}).width;an=(Ge.mlw+1||Cn+1||(Ge.trace?(Ge.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in Ge?Zn=Ge.mlcc=gt.lineScale(Ge.mlc):h.isArrayOrTypedArray(Gt.color)?Zn=d.defaultLine:Zn=Gt.color,h.isArrayOrTypedArray(Ct.color)&&(sn=d.defaultLine,_n=!0),"mc"in Ge?sn=Ge.mcc=gt.markerScale(Ge.mc):sn=Ct.color||Ct.colors||"rgba(0,0,0,0)",gt.selectedColorFn&&(sn=gt.selectedColorFn(Ge))}if(Ge.om)Xe.call(d.stroke,sn).style({"stroke-width":(an||1)+"px",fill:"none"});else{Xe.style("stroke-width",(Ge.isBlank?0:an)+"px");var jn=Ct.gradient,Wn=Ge.mgt;Wn?_n=!0:Wn=jn&&jn.type,h.isArrayOrTypedArray(Wn)&&(Wn=Wn[0],K[Wn]||(Wn=0));var wn=Ct.pattern,lt=wn&&M.getPatternAttr(wn.shape,Ge.i,"");if(Wn&&Wn!=="none"){var ft=Ge.mgc;ft?_n=!0:ft=jn.color;var wt=qe.uid;_n&&(wt+="-"+Ge.i),M.gradient(Xe,ut,wt,Wn,[[0,ft],[1,sn]],"fill")}else if(lt){var vt=!1,$t=wn.fgcolor;!$t&&tt&&tt.color&&($t=tt.color,vt=!0);var Ze=M.getPatternAttr($t,Ge.i,tt&&tt.color||null),it=M.getPatternAttr(wn.bgcolor,Ge.i,null),ht=wn.fgopacity,pt=M.getPatternAttr(wn.size,Ge.i,8),Tt=M.getPatternAttr(wn.solidity,Ge.i,.3);vt=vt||Ge.mcc||h.isArrayOrTypedArray(wn.shape)||h.isArrayOrTypedArray(wn.bgcolor)||h.isArrayOrTypedArray(wn.fgcolor)||h.isArrayOrTypedArray(wn.size)||h.isArrayOrTypedArray(wn.solidity);var Et=qe.uid;vt&&(Et+="-"+Ge.i),M.pattern(Xe,"point",ut,Et,lt,pt,Tt,Ge.mcc,wn.fillmode,it,Ze,ht)}else h.isArrayOrTypedArray(sn)?d.fill(Xe,sn[Ge.i]):d.fill(Xe,sn);an&&d.stroke(Xe,Zn)}},M.makePointStyleFns=function(Ge){var Xe={},qe=Ge.marker;return Xe.markerScale=M.tryColorscale(qe,""),Xe.lineScale=M.tryColorscale(qe,"line"),u.traceIs(Ge,"symbols")&&(Xe.ms2mrc=O.isBubble(Ge)?D(Ge):function(){return(qe.size||6)/2}),Ge.selectedpoints&&h.extendFlat(Xe,M.makeSelectedPointStyleFns(Ge)),Xe},M.makeSelectedPointStyleFns=function(Ge){var Xe={},qe=Ge.selected||{},gt=Ge.unselected||{},ut=Ge.marker||{},tt=qe.marker||{},Ct=gt.marker||{},Gt=ut.opacity,Yt=tt.opacity,Nt=Ct.opacity,Ft=Yt!==void 0,pn=Nt!==void 0;(h.isArrayOrTypedArray(Gt)||Ft||pn)&&(Xe.selectedOpacityFn=function(lt){var ft=lt.mo===void 0?ut.opacity:lt.mo;return lt.selected?Ft?Yt:ft:pn?Nt:S*ft});var _n=ut.color,sn=tt.color,Zn=Ct.color;(sn||Zn)&&(Xe.selectedColorFn=function(lt){var ft=lt.mcc||_n;return lt.selected?sn||ft:Zn||ft});var an=ut.size,Cn=tt.size,jn=Ct.size,Wn=Cn!==void 0,wn=jn!==void 0;return u.traceIs(Ge,"symbols")&&(Wn||wn)&&(Xe.selectedSizeFn=function(lt){var ft=lt.mrc||an/2;return lt.selected?Wn?Cn/2:ft:wn?jn/2:ft}),Xe},M.makeSelectedTextStyleFns=function(Ge){var Xe={},qe=Ge.selected||{},gt=Ge.unselected||{},ut=Ge.textfont||{},tt=qe.textfont||{},Ct=gt.textfont||{},Gt=ut.color,Yt=tt.color,Nt=Ct.color;return Xe.selectedTextColorFn=function(Ft){var pn=Ft.tc||Gt;return Ft.selected?Yt||pn:Nt||(Yt?pn:d.addOpacity(pn,S))},Xe},M.selectedPointStyle=function(Ge,Xe){if(!(!Ge.size()||!Xe.selectedpoints)){var qe=M.makeSelectedPointStyleFns(Xe),gt=Xe.marker||{},ut=[];qe.selectedOpacityFn&&ut.push(function(tt,Ct){tt.style("opacity",qe.selectedOpacityFn(Ct))}),qe.selectedColorFn&&ut.push(function(tt,Ct){d.fill(tt,qe.selectedColorFn(Ct))}),qe.selectedSizeFn&&ut.push(function(tt,Ct){var Gt=Ct.mx||gt.symbol||0,Yt=qe.selectedSizeFn(Ct);tt.attr("d",j(M.symbolNumber(Gt),Yt,dt(Ct,Xe),se(Ct,Xe))),Ct.mrc2=Yt}),ut.length&&Ge.each(function(tt){for(var Ct=m.select(this),Gt=0;Gt0?qe:0}M.textPointStyle=function(Ge,Xe,qe){if(Ge.size()){var gt;if(Xe.selectedpoints){var ut=M.makeSelectedTextStyleFns(Xe);gt=ut.selectedTextColorFn}var tt=Xe.texttemplate,Ct=qe._fullLayout;Ge.each(function(Gt){var Yt=m.select(this),Nt=tt?h.extractOption(Gt,Xe,"txt","texttemplate"):h.extractOption(Gt,Xe,"tx","text");if(!Nt&&Nt!==0){Yt.remove();return}if(tt){var Ft=Xe._module.formatLabels,pn=Ft?Ft(Gt,Xe,Ct):{},_n={};N(_n,Xe,Gt.i);var sn=Xe._meta||{};Nt=h.texttemplateString(Nt,pn,Ct._d3locale,_n,Gt,sn)}var Zn=Gt.tp||Xe.textposition,an=he(Gt,Xe),Cn=gt?gt(Gt):Gt.tc||Xe.textfont.color;Yt.call(M.font,Gt.tf||Xe.textfont.family,an,Cn).text(Nt).call(x.convertToTspans,qe).call(Q,Zn,an,Gt.mrc)})}},M.selectedTextStyle=function(Ge,Xe){if(!(!Ge.size()||!Xe.selectedpoints)){var qe=M.makeSelectedTextStyleFns(Xe);Ge.each(function(gt){var ut=m.select(this),tt=qe.selectedTextColorFn(gt),Ct=gt.tp||Xe.textposition,Gt=he(gt,Xe);d.fill(ut,tt);var Yt=u.traceIs(Xe,"bar-like");Q(ut,Ct,Gt,gt.mrc2||gt.mrc,Yt)})}};var ge=.5;M.smoothopen=function(Ge,Xe){if(Ge.length<3)return"M"+Ge.join("L");var qe="M"+Ge[0],gt=[],ut;for(ut=1;ut=Yt||lt>=Ft&<<=Yt)&&(ft<=pn&&ft>=Nt||ft>=pn&&ft<=Nt)&&(Ge=[lt,ft])}return Ge}M.applyBackoff=ke,M.makeTester=function(){var Ge=h.ensureSingleById(m.select("body"),"svg","js-plotly-tester",function(qe){qe.attr(C.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),Xe=h.ensureSingle(Ge,"path","js-reference-point",function(qe){qe.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});M.tester=Ge,M.testref=Xe},M.savedBBoxes={};var Ne=0,Ve=1e4;M.bBox=function(Ge,Xe,qe){qe||(qe=Oe(Ge));var gt;if(qe){if(gt=M.savedBBoxes[qe],gt)return h.extendFlat({},gt)}else if(Ge.childNodes.length===1){var ut=Ge.childNodes[0];if(qe=Oe(ut),qe){var tt=+ut.getAttribute("x")||0,Ct=+ut.getAttribute("y")||0,Gt=ut.getAttribute("transform");if(!Gt){var Yt=M.bBox(ut,!1,qe);return tt&&(Yt.left+=tt,Yt.right+=tt),Ct&&(Yt.top+=Ct,Yt.bottom+=Ct),Yt}if(qe+="~"+tt+"~"+Ct+"~"+Gt,gt=M.savedBBoxes[qe],gt)return h.extendFlat({},gt)}}var Nt,Ft;Xe?Nt=Ge:(Ft=M.tester.node(),Nt=Ge.cloneNode(!0),Ft.appendChild(Nt)),m.select(Nt).attr("transform",null).call(x.positionText,0,0);var pn=Nt.getBoundingClientRect(),_n=M.testref.node().getBoundingClientRect();Xe||Ft.removeChild(Nt);var sn={height:pn.height,width:pn.width,left:pn.left-_n.left,top:pn.top-_n.top,right:pn.right-_n.left,bottom:pn.bottom-_n.top};return Ne>=Ve&&(M.savedBBoxes={},Ne=0),qe&&(M.savedBBoxes[qe]=sn),Ne++,h.extendFlat({},sn)};function Oe(Ge){var Xe=Ge.getAttribute("data-unformatted");if(Xe!==null)return Xe+Ge.getAttribute("data-math")+Ge.getAttribute("text-anchor")+Ge.getAttribute("style")}M.setClipUrl=function(Ge,Xe,qe){Ge.attr("clip-path",Fe(Xe,qe))};function Fe(Ge,Xe){if(!Ge)return null;var qe=Xe._context,gt=qe._exportedPlot?"":qe._baseUrl||"";return gt?"url('"+gt+"#"+Ge+"')":"url(#"+Ge+")"}M.getTranslate=function(Ge){var Xe=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,qe=Ge.attr?"attr":"getAttribute",gt=Ge[qe]("transform")||"",ut=gt.replace(Xe,function(tt,Ct,Gt){return[Ct,Gt].join(" ")}).split(" ");return{x:+ut[0]||0,y:+ut[1]||0}},M.setTranslate=function(Ge,Xe,qe){var gt=/(\btranslate\(.*?\);?)/,ut=Ge.attr?"attr":"getAttribute",tt=Ge.attr?"attr":"setAttribute",Ct=Ge[ut]("transform")||"";return Xe=Xe||0,qe=qe||0,Ct=Ct.replace(gt,"").trim(),Ct+=v(Xe,qe),Ct=Ct.trim(),Ge[tt]("transform",Ct),Ct},M.getScale=function(Ge){var Xe=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,qe=Ge.attr?"attr":"getAttribute",gt=Ge[qe]("transform")||"",ut=gt.replace(Xe,function(tt,Ct,Gt){return[Ct,Gt].join(" ")}).split(" ");return{x:+ut[0]||1,y:+ut[1]||1}},M.setScale=function(Ge,Xe,qe){var gt=/(\bscale\(.*?\);?)/,ut=Ge.attr?"attr":"getAttribute",tt=Ge.attr?"attr":"setAttribute",Ct=Ge[ut]("transform")||"";return Xe=Xe||1,qe=qe||1,Ct=Ct.replace(gt,"").trim(),Ct+="scale("+Xe+","+qe+")",Ct=Ct.trim(),Ge[tt]("transform",Ct),Ct};var ie=/\s*sc.*/;M.setPointGroupScale=function(Ge,Xe,qe){if(Xe=Xe||1,qe=qe||1,!!Ge){var gt=Xe===1&&qe===1?"":"scale("+Xe+","+qe+")";Ge.each(function(){var ut=(this.getAttribute("transform")||"").replace(ie,"");ut+=gt,ut=ut.trim(),this.setAttribute("transform",ut)})}};var we=/translate\([^)]*\)\s*$/;M.setTextPointsScale=function(Ge,Xe,qe){Ge&&Ge.each(function(){var gt,ut=m.select(this),tt=ut.select("text");if(tt.node()){var Ct=parseFloat(tt.attr("x")||0),Gt=parseFloat(tt.attr("y")||0),Yt=(ut.attr("transform")||"").match(we);Xe===1&&qe===1?gt=[]:gt=[v(Ct,Gt),"scale("+Xe+","+qe+")",v(-Ct,-Gt)],Yt&>.push(Yt),ut.attr("transform",gt.join(""))}})};function se(Ge,Xe){var qe;return Ge&&(qe=Ge.mf),qe===void 0&&(qe=Xe.marker&&Xe.marker.standoff||0),!Xe._geo&&!Xe._xA?-qe:qe}M.getMarkerStandoff=se;var ue=Math.atan2,pe=Math.cos,le=Math.sin;function Te(Ge,Xe){var qe=Xe[0],gt=Xe[1];return[qe*pe(Ge)-gt*le(Ge),qe*le(Ge)+gt*pe(Ge)]}var de,Me,Re,ze,We,ot;function dt(Ge,Xe){var qe=Ge.ma;qe===void 0&&(qe=Xe.marker.angle||0);var gt,ut,tt=Xe.marker.angleref;if(tt==="previous"||tt==="north"){if(Xe._geo){var Ct=Xe._geo.project(Ge.lonlat);gt=Ct[0],ut=Ct[1]}else{var Gt=Xe._xA,Yt=Xe._yA;if(Gt&&Yt)gt=Gt.c2p(Ge.x),ut=Yt.c2p(Ge.y);else return 90}if(Xe._geo){var Nt=Ge.lonlat[0],Ft=Ge.lonlat[1],pn=Xe._geo.project([Nt,Ft+1e-5]),_n=Xe._geo.project([Nt+1e-5,Ft]),sn=ue(_n[1]-ut,_n[0]-gt),Zn=ue(pn[1]-ut,pn[0]-gt),an;if(tt==="north")an=qe/180*Math.PI;else if(tt==="previous"){var Cn=Nt/180*Math.PI,jn=Ft/180*Math.PI,Wn=de/180*Math.PI,wn=Me/180*Math.PI,lt=Wn-Cn,ft=pe(wn)*le(lt),wt=le(wn)*pe(jn)-pe(wn)*le(jn)*pe(lt);an=-ue(ft,wt)-Math.PI,de=Nt,Me=Ft}var vt=Te(sn,[pe(an),0]),$t=Te(Zn,[le(an),0]);qe=ue(vt[1]+$t[1],vt[0]+$t[0])/Math.PI*180,tt==="previous"&&!(ot===Xe.uid&&Ge.i===We+1)&&(qe=null)}if(tt==="previous"&&!Xe._geo)if(ot===Xe.uid&&Ge.i===We+1&&c(gt)&&c(ut)){var Ze=gt-Re,it=ut-ze,ht=Xe.line&&Xe.line.shape||"",pt=ht.slice(ht.length-1);pt==="h"&&(it=0),pt==="v"&&(Ze=0),qe+=ue(it,Ze)/Math.PI*180+90}else qe=null}return Re=gt,ze=ut,We=Ge.i,ot=Xe.uid,qe}M.getMarkerAngle=dt},998:function(L,A,s){var m=s(5616),h=s(9898).round,l="M0,0Z",c=Math.sqrt(2),i=Math.sqrt(3),u=Math.PI,d=Math.cos,g=Math.sin;L.exports={circle:{n:0,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k="M"+M+",0A"+M+","+M+" 0 1,1 0,-"+M+"A"+M+","+M+" 0 0,1 "+M+",0Z";return N?S(D,N,k):k}},square:{n:1,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+","+M+"H-"+M+"V-"+M+"H"+M+"Z")}},diamond:{n:2,f:function(O,D,N){if(v(D))return l;var M=h(O*1.3,2);return S(D,N,"M"+M+",0L0,"+M+"L-"+M+",0L0,-"+M+"Z")}},cross:{n:3,f:function(O,D,N){if(v(D))return l;var M=h(O*.4,2),k=h(O*1.2,2);return S(D,N,"M"+k+","+M+"H"+M+"V"+k+"H-"+M+"V"+M+"H-"+k+"V-"+M+"H-"+M+"V-"+k+"H"+M+"V-"+M+"H"+k+"Z")}},x:{n:4,f:function(O,D,N){if(v(D))return l;var M=h(O*.8/c,2),k="l"+M+","+M,R="l"+M+",-"+M,F="l-"+M+",-"+M,H="l-"+M+","+M;return S(D,N,"M0,"+M+k+R+F+R+F+H+F+H+k+H+k+"Z")}},"triangle-up":{n:5,f:function(O,D,N){if(v(D))return l;var M=h(O*2/i,2),k=h(O/2,2),R=h(O,2);return S(D,N,"M-"+M+","+k+"H"+M+"L0,-"+R+"Z")}},"triangle-down":{n:6,f:function(O,D,N){if(v(D))return l;var M=h(O*2/i,2),k=h(O/2,2),R=h(O,2);return S(D,N,"M-"+M+",-"+k+"H"+M+"L0,"+R+"Z")}},"triangle-left":{n:7,f:function(O,D,N){if(v(D))return l;var M=h(O*2/i,2),k=h(O/2,2),R=h(O,2);return S(D,N,"M"+k+",-"+M+"V"+M+"L-"+R+",0Z")}},"triangle-right":{n:8,f:function(O,D,N){if(v(D))return l;var M=h(O*2/i,2),k=h(O/2,2),R=h(O,2);return S(D,N,"M-"+k+",-"+M+"V"+M+"L"+R+",0Z")}},"triangle-ne":{n:9,f:function(O,D,N){if(v(D))return l;var M=h(O*.6,2),k=h(O*1.2,2);return S(D,N,"M-"+k+",-"+M+"H"+M+"V"+k+"Z")}},"triangle-se":{n:10,f:function(O,D,N){if(v(D))return l;var M=h(O*.6,2),k=h(O*1.2,2);return S(D,N,"M"+M+",-"+k+"V"+M+"H-"+k+"Z")}},"triangle-sw":{n:11,f:function(O,D,N){if(v(D))return l;var M=h(O*.6,2),k=h(O*1.2,2);return S(D,N,"M"+k+","+M+"H-"+M+"V-"+k+"Z")}},"triangle-nw":{n:12,f:function(O,D,N){if(v(D))return l;var M=h(O*.6,2),k=h(O*1.2,2);return S(D,N,"M-"+M+","+k+"V-"+M+"H"+k+"Z")}},pentagon:{n:13,f:function(O,D,N){if(v(D))return l;var M=h(O*.951,2),k=h(O*.588,2),R=h(-O,2),F=h(O*-.309,2),H=h(O*.809,2);return S(D,N,"M"+M+","+F+"L"+k+","+H+"H-"+k+"L-"+M+","+F+"L0,"+R+"Z")}},hexagon:{n:14,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O/2,2),R=h(O*i/2,2);return S(D,N,"M"+R+",-"+k+"V"+k+"L0,"+M+"L-"+R+","+k+"V-"+k+"L0,-"+M+"Z")}},hexagon2:{n:15,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O/2,2),R=h(O*i/2,2);return S(D,N,"M-"+k+","+R+"H"+k+"L"+M+",0L"+k+",-"+R+"H-"+k+"L-"+M+",0Z")}},octagon:{n:16,f:function(O,D,N){if(v(D))return l;var M=h(O*.924,2),k=h(O*.383,2);return S(D,N,"M-"+k+",-"+M+"H"+k+"L"+M+",-"+k+"V"+k+"L"+k+","+M+"H-"+k+"L-"+M+","+k+"V-"+k+"Z")}},star:{n:17,f:function(O,D,N){if(v(D))return l;var M=O*1.4,k=h(M*.225,2),R=h(M*.951,2),F=h(M*.363,2),H=h(M*.588,2),j=h(-M,2),P=h(M*-.309,2),ee=h(M*.118,2),J=h(M*.809,2),K=h(M*.382,2);return S(D,N,"M"+k+","+P+"H"+R+"L"+F+","+ee+"L"+H+","+J+"L0,"+K+"L-"+H+","+J+"L-"+F+","+ee+"L-"+R+","+P+"H-"+k+"L0,"+j+"Z")}},hexagram:{n:18,f:function(O,D,N){if(v(D))return l;var M=h(O*.66,2),k=h(O*.38,2),R=h(O*.76,2);return S(D,N,"M-"+R+",0l-"+k+",-"+M+"h"+R+"l"+k+",-"+M+"l"+k+","+M+"h"+R+"l-"+k+","+M+"l"+k+","+M+"h-"+R+"l-"+k+","+M+"l-"+k+",-"+M+"h-"+R+"Z")}},"star-triangle-up":{n:19,f:function(O,D,N){if(v(D))return l;var M=h(O*i*.8,2),k=h(O*.8,2),R=h(O*1.6,2),F=h(O*4,2),H="A "+F+","+F+" 0 0 1 ";return S(D,N,"M-"+M+","+k+H+M+","+k+H+"0,-"+R+H+"-"+M+","+k+"Z")}},"star-triangle-down":{n:20,f:function(O,D,N){if(v(D))return l;var M=h(O*i*.8,2),k=h(O*.8,2),R=h(O*1.6,2),F=h(O*4,2),H="A "+F+","+F+" 0 0 1 ";return S(D,N,"M"+M+",-"+k+H+"-"+M+",-"+k+H+"0,"+R+H+M+",-"+k+"Z")}},"star-square":{n:21,f:function(O,D,N){if(v(D))return l;var M=h(O*1.1,2),k=h(O*2,2),R="A "+k+","+k+" 0 0 1 ";return S(D,N,"M-"+M+",-"+M+R+"-"+M+","+M+R+M+","+M+R+M+",-"+M+R+"-"+M+",-"+M+"Z")}},"star-diamond":{n:22,f:function(O,D,N){if(v(D))return l;var M=h(O*1.4,2),k=h(O*1.9,2),R="A "+k+","+k+" 0 0 1 ";return S(D,N,"M-"+M+",0"+R+"0,"+M+R+M+",0"+R+"0,-"+M+R+"-"+M+",0Z")}},"diamond-tall":{n:23,f:function(O,D,N){if(v(D))return l;var M=h(O*.7,2),k=h(O*1.4,2);return S(D,N,"M0,"+k+"L"+M+",0L0,-"+k+"L-"+M+",0Z")}},"diamond-wide":{n:24,f:function(O,D,N){if(v(D))return l;var M=h(O*1.4,2),k=h(O*.7,2);return S(D,N,"M0,"+k+"L"+M+",0L0,-"+k+"L-"+M+",0Z")}},hourglass:{n:25,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+","+M+"H-"+M+"L"+M+",-"+M+"H-"+M+"Z")},noDot:!0},bowtie:{n:26,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+","+M+"V-"+M+"L-"+M+","+M+"V-"+M+"Z")},noDot:!0},"circle-cross":{n:27,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M0,"+M+"V-"+M+"M"+M+",0H-"+M+"M"+M+",0A"+M+","+M+" 0 1,1 0,-"+M+"A"+M+","+M+" 0 0,1 "+M+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O/c,2);return S(D,N,"M"+k+","+k+"L-"+k+",-"+k+"M"+k+",-"+k+"L-"+k+","+k+"M"+M+",0A"+M+","+M+" 0 1,1 0,-"+M+"A"+M+","+M+" 0 0,1 "+M+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M0,"+M+"V-"+M+"M"+M+",0H-"+M+"M"+M+","+M+"H-"+M+"V-"+M+"H"+M+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+","+M+"L-"+M+",-"+M+"M"+M+",-"+M+"L-"+M+","+M+"M"+M+","+M+"H-"+M+"V-"+M+"H"+M+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(O,D,N){if(v(D))return l;var M=h(O*1.3,2);return S(D,N,"M"+M+",0L0,"+M+"L-"+M+",0L0,-"+M+"ZM0,-"+M+"V"+M+"M-"+M+",0H"+M)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(O,D,N){if(v(D))return l;var M=h(O*1.3,2),k=h(O*.65,2);return S(D,N,"M"+M+",0L0,"+M+"L-"+M+",0L0,-"+M+"ZM-"+k+",-"+k+"L"+k+","+k+"M-"+k+","+k+"L"+k+",-"+k)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(O,D,N){if(v(D))return l;var M=h(O*1.4,2);return S(D,N,"M0,"+M+"V-"+M+"M"+M+",0H-"+M)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+","+M+"L-"+M+",-"+M+"M"+M+",-"+M+"L-"+M+","+M)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(O,D,N){if(v(D))return l;var M=h(O*1.2,2),k=h(O*.85,2);return S(D,N,"M0,"+M+"V-"+M+"M"+M+",0H-"+M+"M"+k+","+k+"L-"+k+",-"+k+"M"+k+",-"+k+"L-"+k+","+k)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(O,D,N){if(v(D))return l;var M=h(O/2,2),k=h(O,2);return S(D,N,"M"+M+","+k+"V-"+k+"M"+(M-k)+",-"+k+"V"+k+"M"+k+","+M+"H-"+k+"M-"+k+","+(M-k)+"H"+k)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(O,D,N){if(v(D))return l;var M=h(O*1.2,2),k=h(O*1.6,2),R=h(O*.8,2);return S(D,N,"M-"+M+","+R+"L0,0M"+M+","+R+"L0,0M0,-"+k+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(O,D,N){if(v(D))return l;var M=h(O*1.2,2),k=h(O*1.6,2),R=h(O*.8,2);return S(D,N,"M-"+M+",-"+R+"L0,0M"+M+",-"+R+"L0,0M0,"+k+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(O,D,N){if(v(D))return l;var M=h(O*1.2,2),k=h(O*1.6,2),R=h(O*.8,2);return S(D,N,"M"+R+","+M+"L0,0M"+R+",-"+M+"L0,0M-"+k+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(O,D,N){if(v(D))return l;var M=h(O*1.2,2),k=h(O*1.6,2),R=h(O*.8,2);return S(D,N,"M-"+R+","+M+"L0,0M-"+R+",-"+M+"L0,0M"+k+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(O,D,N){if(v(D))return l;var M=h(O*1.4,2);return S(D,N,"M"+M+",0H-"+M)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(O,D,N){if(v(D))return l;var M=h(O*1.4,2);return S(D,N,"M0,"+M+"V-"+M)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+",-"+M+"L-"+M+","+M)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+","+M+"L-"+M+",-"+M)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O*2,2);return S(D,N,"M0,0L-"+M+","+k+"H"+M+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O*2,2);return S(D,N,"M0,0L-"+M+",-"+k+"H"+M+"Z")},noDot:!0},"arrow-left":{n:47,f:function(O,D,N){if(v(D))return l;var M=h(O*2,2),k=h(O,2);return S(D,N,"M0,0L"+M+",-"+k+"V"+k+"Z")},noDot:!0},"arrow-right":{n:48,f:function(O,D,N){if(v(D))return l;var M=h(O*2,2),k=h(O,2);return S(D,N,"M0,0L-"+M+",-"+k+"V"+k+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O*2,2);return S(D,N,"M-"+M+",0H"+M+"M0,0L-"+M+","+k+"H"+M+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O*2,2);return S(D,N,"M-"+M+",0H"+M+"M0,0L-"+M+",-"+k+"H"+M+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(O,D,N){if(v(D))return l;var M=h(O*2,2),k=h(O,2);return S(D,N,"M0,-"+k+"V"+k+"M0,0L"+M+",-"+k+"V"+k+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(O,D,N){if(v(D))return l;var M=h(O*2,2),k=h(O,2);return S(D,N,"M0,-"+k+"V"+k+"M0,0L-"+M+",-"+k+"V"+k+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(O,D,N){if(v(D))return l;var M=u/2.5,k=2*O*d(M),R=2*O*g(M);return S(D,N,"M0,0L"+-k+","+R+"L"+k+","+R+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(O,D,N){if(v(D))return l;var M=u/4,k=2*O*d(M),R=2*O*g(M);return S(D,N,"M0,0L"+-k+","+R+"A "+2*O+","+2*O+" 0 0 1 "+k+","+R+"Z")},backoff:.4,noDot:!0}};function v(O){return O===null}var x,C,_,$;function S(O,D,N){if((!O||O%360===0)&&!D)return N;if(_===O&&$===D&&x===N)return C;_=O,$=D,x=N;function M(ge,Se){var ce=d(ge),ne=g(ge),fe=Se[0],X=Se[1]+(D||0);return[fe*ce-X*ne,fe*ne+X*ce]}for(var k=O/180*u,R=0,F=0,H=m(N),j="",P=0;P0,O=d._context.staticPlot;g.each(function(D){var N=D[0].trace,M=N.error_x||{},k=N.error_y||{},R;N.ids&&(R=function(P){return P.id});var F=c.hasMarkers(N)&&N.marker.maxdisplayed>0;!k.visible&&!M.visible&&(D=[]);var H=m.select(this).selectAll("g.errorbar").data(D,R);if(H.exit().remove(),!!D.length){M.visible||H.selectAll("path.xerror").remove(),k.visible||H.selectAll("path.yerror").remove(),H.style("opacity",1);var j=H.enter().append("g").classed("errorbar",!0);S&&j.style("opacity",0).transition().duration(x.duration).style("opacity",1),l.setClipUrl(H,v.layerClipId,d),H.each(function(P){var ee=m.select(this),J=i(P,_,$);if(!(F&&!P.vis)){var K,ae=ee.select("path.yerror");if(k.visible&&h(J.x)&&h(J.yh)&&h(J.ys)){var Q=k.width;K="M"+(J.x-Q)+","+J.yh+"h"+2*Q+"m-"+Q+",0V"+J.ys,J.noYS||(K+="m-"+Q+",0h"+2*Q),C=!ae.size(),C?ae=ee.append("path").style("vector-effect",O?"none":"non-scaling-stroke").classed("yerror",!0):S&&(ae=ae.transition().duration(x.duration).ease(x.easing)),ae.attr("d",K)}else ae.remove();var he=ee.select("path.xerror");if(M.visible&&h(J.y)&&h(J.xh)&&h(J.xs)){var ge=(M.copy_ystyle?k:M).width;K="M"+J.xh+","+(J.y-ge)+"v"+2*ge+"m0,-"+ge+"H"+J.xs,J.noXS||(K+="m0,-"+ge+"v"+2*ge),C=!he.size(),C?he=ee.append("path").style("vector-effect",O?"none":"non-scaling-stroke").classed("xerror",!0):S&&(he=he.transition().duration(x.duration).ease(x.easing)),he.attr("d",K)}else he.remove()}})}})};function i(u,d,g){var v={x:d.c2p(u.x),y:g.c2p(u.y)};return u.yh!==void 0&&(v.yh=g.c2p(u.yh),v.ys=g.c2p(u.ys),h(v.ys)||(v.noYS=!0,v.ys=g.c2p(u.ys,!0))),u.xh!==void 0&&(v.xh=d.c2p(u.xh),v.xs=d.c2p(u.xs),h(v.xs)||(v.noXS=!0,v.xs=d.c2p(u.xs,!0))),v}},2662:function(L,A,s){var m=s(9898),h=s(7901);L.exports=function(c){c.each(function(i){var u=i[0].trace,d=u.error_y||{},g=u.error_x||{},v=m.select(this);v.selectAll("path.yerror").style("stroke-width",d.thickness+"px").call(h.stroke,d.color),g.copy_ystyle&&(g=d),v.selectAll("path.xerror").style("stroke-width",g.thickness+"px").call(h.stroke,g.color)})}},7914:function(L,A,s){var m=s(1940),h=s(528).hoverlabel,l=s(1426).extendFlat;L.exports={hoverlabel:{bgcolor:l({},h.bgcolor,{arrayOk:!0}),bordercolor:l({},h.bordercolor,{arrayOk:!0}),font:m({arrayOk:!0,editType:"none"}),align:l({},h.align,{arrayOk:!0}),namelength:l({},h.namelength,{arrayOk:!0}),editType:"none"}}},732:function(L,A,s){var m=s(1828),h=s(3972);L.exports=function(i){var u=i.calcdata,d=i._fullLayout;function g($){return function(S){return m.coerceHoverinfo({hoverinfo:S},{_module:$._module},d)}}for(var v=0;v=0&&v.indexGe[0]._length||pt<0||pt>Xe[0]._length)return _.unhoverRaw(se,ue)}if(ue.pointerX=ht+Ge[0]._offset,ue.pointerY=pt+Xe[0]._offset,"xval"in ue?pn=O.flat(de,ue.xval):pn=O.p2c(Ge,ht),"yval"in ue?_n=O.flat(de,ue.yval):_n=O.p2c(Xe,pt),!h(pn[0])||!h(_n[0]))return c.warn("Fx.hover failed",ue,se),_.unhoverRaw(se,ue)}var fn=1/0;function tn(ar,cr){for(Zn=0;Znvt&&(Nt.splice(0,vt),fn=Nt[0].distance),We&&Yt!==0&&Nt.length===0){wt.distance=Yt,wt.index=!1;var bo=Cn._module.hoverPoints(wt,lt,ft,"closest",{hoverLayer:Me._hoverlayer});if(bo&&(bo=bo.filter(function(Os){return Os.spikeDistance<=Yt})),bo&&bo.length){var Zo,oa=bo.filter(function(Os){return Os.xa.showspikes&&Os.xa.spikesnap!=="hovered data"});if(oa.length){var Va=oa[0];h(Va.x0)&&h(Va.y0)&&(Zo=Dt(Va),(!$t.vLinePoint||$t.vLinePoint.spikeDistance>Zo.spikeDistance)&&($t.vLinePoint=Zo))}var Yo=bo.filter(function(Os){return Os.ya.showspikes&&Os.ya.spikesnap!=="hovered data"});if(Yo.length){var Fa=Yo[0];h(Fa.x0)&&h(Fa.y0)&&(Zo=Dt(Fa),(!$t.hLinePoint||$t.hLinePoint.spikeDistance>Zo.spikeDistance)&&($t.hLinePoint=Zo))}}}}}tn();function Zt(ar,cr,Kr){for(var qr=null,So=1/0,wa,bo=0;bo0&&Math.abs(ar.distance)Ln-1;He--)Cr(Nt[He]);Nt=wr,Er()}var De=se._hoverdata,St=[],kt=Fe(se),Pt=ie(se);for(sn=0;sn1||Nt.length>1)||Ct==="closest"&&Ze&&Nt.length>1,Bn=C.combine(Me.plot_bgcolor||C.background,Me.paper_bgcolor),Hr=ge(Nt,{gd:se,hovermode:Ct,rotateLabels:Qn,bgColor:Bn,container:Me._hoverlayer,outerContainer:Me._paper.node(),commonLabelOpts:Me.hoverlabel,hoverdistance:Me.hoverdistance}),fr=Hr.hoverLabels;if(O.isUnifiedHover(Ct)||(ce(fr,Qn,Me,Hr.commonLabelBoundingBox),X(fr,Qn,Me._invScaleX,Me._invScaleY)),Te&&Te.tagName){var Vr=S.getComponentMethod("annotations","hasClickToShow")(se,St);v(m.select(Te),Vr?"pointer":"")}!Te||le||!$e(se,ue,De)||(De&&se.emit("plotly_unhover",{event:ue,points:De}),se.emit("plotly_hover",{event:ue,points:se._hoverdata,xaxes:Ge,yaxes:Xe,xvals:pn,yvals:_n}))}function Q(se){return[se.trace.index,se.index,se.x0,se.y0,se.name,se.attr,se.xa?se.xa._id:"",se.ya?se.ya._id:""].join(",")}var he=/([\s\S]*)<\/extra>/;function ge(se,ue){var pe=ue.gd,le=pe._fullLayout,Te=ue.hovermode,de=ue.rotateLabels,Me=ue.bgColor,Re=ue.container,ze=ue.outerContainer,We=ue.commonLabelOpts||{};if(se.length===0)return[[]];var ot=ue.fontFamily||D.HOVERFONT,dt=ue.fontSize||D.HOVERFONTSIZE,Ge=se[0],Xe=Ge.xa,qe=Ge.ya,gt=Te.charAt(0),ut=gt+"Label",tt=Ge[ut];if(tt===void 0&&Xe.type==="multicategory")for(var Ct=0;Ctle.width-Pt?(De=le.width-Pt,xr.attr("d","M"+(Pt-P)+",0L"+Pt+","+kt+P+"v"+kt+(ee*2+He.height)+"H-"+Pt+"V"+kt+P+"H"+(Pt-P*2)+"Z")):xr.attr("d","M0,0L"+P+","+kt+P+"H"+Pt+"v"+kt+(ee*2+He.height)+"H-"+Pt+"V"+kt+P+"H-"+P+"Z"),jn.minX=De-Pt,jn.maxX=De+Pt,Xe.side==="top"?(jn.minY=St-(ee*2+He.height),jn.maxY=St-ee):(jn.minY=St+ee,jn.maxY=St+(ee*2+He.height))}else{var Bt,Ut,Ot;qe.side==="right"?(Bt="start",Ut=1,Ot="",De=Xe._offset+Xe._length):(Bt="end",Ut=-1,Ot="-",De=Xe._offset),St=qe._offset+(Ge.y0+Ge.y1)/2,or.attr("text-anchor",Bt),xr.attr("d","M0,0L"+Ot+P+","+P+"V"+(ee+He.height/2)+"h"+Ot+(ee*2+He.width)+"V-"+(ee+He.height/2)+"H"+Ot+P+"V-"+P+"Z"),jn.minY=St-(ee+He.height/2),jn.maxY=St+(ee+He.height/2),qe.side==="right"?(jn.minX=De+P,jn.maxX=De+P+(ee*2+He.width)):(jn.minX=De-P-(ee*2+He.width),jn.maxX=De-P);var _t=He.height/2,qt=Yt-He.top-_t,cn="clip"+le._uid+"commonlabel"+qe._id,Qt;if(De=0?rr=pr:Gn+tn=0?rr=Gn:Ir+tn=0?Yr=Er:zt+Zt=0?Yr=zt:Tr+Zt=0,(Ln.idealAlign==="top"||!Qn)&&Bn?(qt-=Qt/2,Ln.anchor="end"):Qn?(qt+=Qt/2,Ln.anchor="start"):Ln.anchor="middle",Ln.crossPos=qt;else{if(Ln.pos=qt,Qn=_t+cn/2+gn<=Nt,Bn=_t-cn/2-gn>=0,(Ln.idealAlign==="left"||!Qn)&&Bn)_t-=cn/2,Ln.anchor="end";else if(Qn)_t+=cn/2,Ln.anchor="start";else{Ln.anchor="middle";var Hr=gn/2,fr=_t+Hr-Nt,Vr=_t-Hr;fr>0&&(_t-=fr),Vr<0&&(_t+=-Vr)}Ln.crossPos=_t}kt.attr("text-anchor",Ln.anchor),Bt&&Pt.attr("text-anchor",Ln.anchor),xr.attr("transform",i(_t,qt)+(de?u(k):""))}),{hoverLabels:_r,commonLabelBoundingBox:jn}}function Se(se,ue,pe,le,Te,de){var Me="",Re="";se.nameOverride!==void 0&&(se.name=se.nameOverride),se.name&&(se.trace._meta&&(se.name=c.templateString(se.name,se.trace._meta)),Me=Ne(se.name,se.nameLength));var ze=pe.charAt(0),We=ze==="x"?"y":"x";se.zLabel!==void 0?(se.xLabel!==void 0&&(Re+="x: "+se.xLabel+"
    "),se.yLabel!==void 0&&(Re+="y: "+se.yLabel+"
    "),se.trace.type!=="choropleth"&&se.trace.type!=="choroplethmapbox"&&(Re+=(Re?"z: ":"")+se.zLabel)):ue&&se[ze+"Label"]===Te?Re=se[We+"Label"]||"":se.xLabel===void 0?se.yLabel!==void 0&&se.trace.type!=="scattercarpet"&&(Re=se.yLabel):se.yLabel===void 0?Re=se.xLabel:Re="("+se.xLabel+", "+se.yLabel+")",(se.text||se.text===0)&&!Array.isArray(se.text)&&(Re+=(Re?"
    ":"")+se.text),se.extraText!==void 0&&(Re+=(Re?"
    ":"")+se.extraText),de&&Re===""&&!se.hovertemplate&&(Me===""&&de.remove(),Re=Me);var ot=se.hovertemplate||!1;if(ot){var dt=se.hovertemplateLabels||se;se[ze+"Label"]!==Te&&(dt[ze+"other"]=dt[ze+"Val"],dt[ze+"otherLabel"]=dt[ze+"Label"]),Re=c.hovertemplateString(ot,dt,le._d3locale,se.eventData[0]||{},se.trace._meta),Re=Re.replace(he,function(Ge,Xe){return Me=Ne(Xe,se.nameLength),""})}return[Re,Me]}function ce(se,ue,pe,le){var Te=ue?"xa":"ya",de=ue?"ya":"xa",Me=0,Re=1,ze=se.size(),We=new Array(ze),ot=0,dt=le.minX,Ge=le.maxX,Xe=le.minY,qe=le.maxY,gt=function(lt){return lt*pe._invScaleX},ut=function(lt){return lt*pe._invScaleY};se.each(function(lt){var ft=lt[Te],wt=lt[de],vt=ft._id.charAt(0)==="x",$t=ft.range;ot===0&&$t&&$t[0]>$t[1]!==vt&&(Re=-1);var Ze=0,it=vt?pe.width:pe.height;if(pe.hovermode==="x"||pe.hovermode==="y"){var ht=ne(lt,ue),pt=lt.anchor,Tt=pt==="end"?-1:1,Et,fn;if(pt==="middle")Et=lt.crossPos+(vt?ut(ht.y-lt.by/2):gt(lt.bx/2+lt.tx2width/2)),fn=Et+(vt?ut(lt.by):gt(lt.bx));else if(vt)Et=lt.crossPos+ut(P+ht.y)-ut(lt.by/2-P),fn=Et+ut(lt.by);else{var tn=gt(Tt*P+ht.x),Zt=tn+gt(Tt*lt.bx);Et=lt.crossPos+Math.min(tn,Zt),fn=lt.crossPos+Math.max(tn,Zt)}vt?Xe!==void 0&&qe!==void 0&&Math.min(fn,qe)-Math.max(Et,Xe)>1&&(wt.side==="left"?(Ze=wt._mainLinePosition,it=pe.width):it=wt._mainLinePosition):dt!==void 0&&Ge!==void 0&&Math.min(fn,Ge)-Math.max(Et,dt)>1&&(wt.side==="top"?(Ze=wt._mainLinePosition,it=pe.height):it=wt._mainLinePosition)}We[ot++]=[{datum:lt,traceIndex:lt.trace.index,dp:0,pos:lt.pos,posref:lt.posref,size:lt.by*(vt?F:1)/2,pmin:Ze,pmax:it}]}),We.sort(function(lt,ft){return lt[0].posref-ft[0].posref||Re*(ft[0].traceIndex-lt[0].traceIndex)});var tt,Ct,Gt,Yt,Nt,Ft,pn;function _n(lt){var ft=lt[0],wt=lt[lt.length-1];if(Ct=ft.pmin-ft.pos-ft.dp+ft.size,Gt=wt.pos+wt.dp+wt.size-ft.pmax,Ct>.01){for(Nt=lt.length-1;Nt>=0;Nt--)lt[Nt].dp+=Ct;tt=!1}if(!(Gt<.01)){if(Ct<-.01){for(Nt=lt.length-1;Nt>=0;Nt--)lt[Nt].dp-=Gt;tt=!1}if(tt){var vt=0;for(Yt=0;Ytft.pmax&&vt++;for(Yt=lt.length-1;Yt>=0&&!(vt<=0);Yt--)Ft=lt[Yt],Ft.pos>ft.pmax-1&&(Ft.del=!0,vt--);for(Yt=0;Yt=0;Nt--)lt[Nt].dp-=Gt;for(Yt=lt.length-1;Yt>=0&&!(vt<=0);Yt--)Ft=lt[Yt],Ft.pos+Ft.dp+Ft.size>ft.pmax&&(Ft.del=!0,vt--)}}}for(;!tt&&Me<=ze;){for(Me++,tt=!0,Yt=0;Yt.01&&an.pmin===Cn.pmin&&an.pmax===Cn.pmax){for(Nt=Zn.length-1;Nt>=0;Nt--)Zn[Nt].dp+=Ct;for(sn.push.apply(sn,Zn),We.splice(Yt+1,1),pn=0,Nt=sn.length-1;Nt>=0;Nt--)pn+=sn[Nt].dp;for(Gt=pn/sn.length,Nt=sn.length-1;Nt>=0;Nt--)sn[Nt].dp-=Gt;tt=!1}else Yt++}We.forEach(_n)}for(Yt=We.length-1;Yt>=0;Yt--){var jn=We[Yt];for(Nt=jn.length-1;Nt>=0;Nt--){var Wn=jn[Nt],wn=Wn.datum;wn.offset=Wn.dp,wn.del=Wn.del}}}function ne(se,ue){var pe=0,le=se.offset;return ue&&(le*=-j,pe=se.offset*H),{x:pe,y:le}}function fe(se){var ue={start:1,end:-1,middle:0}[se.anchor],pe=ue*(P+ee),le=pe+ue*(se.txwidth+ee),Te=se.anchor==="middle";return Te&&(pe-=se.tx2width/2,le+=se.txwidth/2+ee),{alignShift:ue,textShiftX:pe,text2ShiftX:le}}function X(se,ue,pe,le){var Te=function(Me){return Me*pe},de=function(Me){return Me*le};se.each(function(Me){var Re=m.select(this);if(Me.del)return Re.remove();var ze=Re.select("text.nums"),We=Me.anchor,ot=We==="end"?-1:1,dt=fe(Me),Ge=ne(Me,ue),Xe=Ge.x,qe=Ge.y,gt=We==="middle";Re.select("path").attr("d",gt?"M-"+Te(Me.bx/2+Me.tx2width/2)+","+de(qe-Me.by/2)+"h"+Te(Me.bx)+"v"+de(Me.by)+"h-"+Te(Me.bx)+"Z":"M0,0L"+Te(ot*P+Xe)+","+de(P+qe)+"v"+de(Me.by/2-P)+"h"+Te(ot*Me.bx)+"v-"+de(Me.by)+"H"+Te(ot*P+Xe)+"V"+de(qe-P)+"Z");var ut=Xe+dt.textShiftX,tt=qe+Me.ty0-Me.by/2+ee,Ct=Me.textAlign||"auto";Ct!=="auto"&&(Ct==="left"&&We!=="start"?(ze.attr("text-anchor","start"),ut=gt?-Me.bx/2-Me.tx2width/2+ee:-Me.bx-ee):Ct==="right"&&We!=="end"&&(ze.attr("text-anchor","end"),ut=gt?Me.bx/2-Me.tx2width/2-ee:Me.bx+ee)),ze.call(g.positionText,Te(ut),de(tt)),Me.tx2width&&(Re.select("text.name").call(g.positionText,Te(dt.text2ShiftX+dt.alignShift*ee+Xe),de(qe+Me.ty0-Me.by/2+ee)),Re.select("rect").call(x.setRect,Te(dt.text2ShiftX+(dt.alignShift-1)*Me.tx2width/2+Xe),de(qe-Me.by/2-1),Te(Me.tx2width),de(Me.by+2)))})}function ye(se,ue){var pe=se.index,le=se.trace||{},Te=se.cd[0],de=se.cd[pe]||{};function Me(Ge){return Ge||h(Ge)&&Ge===0}var Re=Array.isArray(pe)?function(Ge,Xe){var qe=c.castOption(Te,pe,Ge);return Me(qe)?qe:c.extractOption({},le,"",Xe)}:function(Ge,Xe){return c.extractOption(de,le,Ge,Xe)};function ze(Ge,Xe,qe){var gt=Re(Xe,qe);Me(gt)&&(se[Ge]=gt)}if(ze("hoverinfo","hi","hoverinfo"),ze("bgcolor","hbg","hoverlabel.bgcolor"),ze("borderColor","hbc","hoverlabel.bordercolor"),ze("fontFamily","htf","hoverlabel.font.family"),ze("fontSize","hts","hoverlabel.font.size"),ze("fontColor","htc","hoverlabel.font.color"),ze("nameLength","hnl","hoverlabel.namelength"),ze("textAlign","hta","hoverlabel.align"),se.posref=ue==="y"||ue==="closest"&&le.orientation==="h"?se.xa._offset+(se.x0+se.x1)/2:se.ya._offset+(se.y0+se.y1)/2,se.x0=c.constrain(se.x0,0,se.xa._length),se.x1=c.constrain(se.x1,0,se.xa._length),se.y0=c.constrain(se.y0,0,se.ya._length),se.y1=c.constrain(se.y1,0,se.ya._length),se.xLabelVal!==void 0&&(se.xLabel="xLabel"in se?se.xLabel:$.hoverLabelText(se.xa,se.xLabelVal,le.xhoverformat),se.xVal=se.xa.c2d(se.xLabelVal)),se.yLabelVal!==void 0&&(se.yLabel="yLabel"in se?se.yLabel:$.hoverLabelText(se.ya,se.yLabelVal,le.yhoverformat),se.yVal=se.ya.c2d(se.yLabelVal)),se.zLabelVal!==void 0&&se.zLabel===void 0&&(se.zLabel=String(se.zLabelVal)),!isNaN(se.xerr)&&!(se.xa.type==="log"&&se.xerr<=0)){var We=$.tickText(se.xa,se.xa.c2l(se.xerr),"hover").text;se.xerrneg!==void 0?se.xLabel+=" +"+We+" / -"+$.tickText(se.xa,se.xa.c2l(se.xerrneg),"hover").text:se.xLabel+=" ± "+We,ue==="x"&&(se.distance+=1)}if(!isNaN(se.yerr)&&!(se.ya.type==="log"&&se.yerr<=0)){var ot=$.tickText(se.ya,se.ya.c2l(se.yerr),"hover").text;se.yerrneg!==void 0?se.yLabel+=" +"+ot+" / -"+$.tickText(se.ya,se.ya.c2l(se.yerrneg),"hover").text:se.yLabel+=" ± "+ot,ue==="y"&&(se.distance+=1)}var dt=se.hoverinfo||se.trace.hoverinfo;return dt&&dt!=="all"&&(dt=Array.isArray(dt)?dt:dt.split("+"),dt.indexOf("x")===-1&&(se.xLabel=void 0),dt.indexOf("y")===-1&&(se.yLabel=void 0),dt.indexOf("z")===-1&&(se.zLabel=void 0),dt.indexOf("text")===-1&&(se.text=void 0),dt.indexOf("name")===-1&&(se.name=void 0)),se}function Ce(se,ue,pe){var le=pe.container,Te=pe.fullLayout,de=Te._size,Me=pe.event,Re=!!ue.hLinePoint,ze=!!ue.vLinePoint,We,ot;if(le.selectAll(".spikeline").remove(),!!(ze||Re)){var dt=C.combine(Te.plot_bgcolor,Te.paper_bgcolor);if(Re){var Ge=ue.hLinePoint,Xe,qe;We=Ge&&Ge.xa,ot=Ge&&Ge.ya;var gt=ot.spikesnap;gt==="cursor"?(Xe=Me.pointerX,qe=Me.pointerY):(Xe=We._offset+Ge.x,qe=ot._offset+Ge.y);var ut=l.readability(Ge.color,dt)<1.5?C.contrast(dt):Ge.color,tt=ot.spikemode,Ct=ot.spikethickness,Gt=ot.spikecolor||ut,Yt=$.getPxPosition(se,ot),Nt,Ft;if(tt.indexOf("toaxis")!==-1||tt.indexOf("across")!==-1){if(tt.indexOf("toaxis")!==-1&&(Nt=Yt,Ft=Xe),tt.indexOf("across")!==-1){var pn=ot._counterDomainMin,_n=ot._counterDomainMax;ot.anchor==="free"&&(pn=Math.min(pn,ot.position),_n=Math.max(_n,ot.position)),Nt=de.l+pn*de.w,Ft=de.l+_n*de.w}le.insert("line",":first-child").attr({x1:Nt,x2:Ft,y1:qe,y2:qe,"stroke-width":Ct,stroke:Gt,"stroke-dasharray":x.dashStyle(ot.spikedash,Ct)}).classed("spikeline",!0).classed("crisp",!0),le.insert("line",":first-child").attr({x1:Nt,x2:Ft,y1:qe,y2:qe,"stroke-width":Ct+2,stroke:dt}).classed("spikeline",!0).classed("crisp",!0)}tt.indexOf("marker")!==-1&&le.insert("circle",":first-child").attr({cx:Yt+(ot.side!=="right"?Ct:-Ct),cy:qe,r:Ct,fill:Gt}).classed("spikeline",!0)}if(ze){var sn=ue.vLinePoint,Zn,an;We=sn&&sn.xa,ot=sn&&sn.ya;var Cn=We.spikesnap;Cn==="cursor"?(Zn=Me.pointerX,an=Me.pointerY):(Zn=We._offset+sn.x,an=ot._offset+sn.y);var jn=l.readability(sn.color,dt)<1.5?C.contrast(dt):sn.color,Wn=We.spikemode,wn=We.spikethickness,lt=We.spikecolor||jn,ft=$.getPxPosition(se,We),wt,vt;if(Wn.indexOf("toaxis")!==-1||Wn.indexOf("across")!==-1){if(Wn.indexOf("toaxis")!==-1&&(wt=ft,vt=an),Wn.indexOf("across")!==-1){var $t=We._counterDomainMin,Ze=We._counterDomainMax;We.anchor==="free"&&($t=Math.min($t,We.position),Ze=Math.max(Ze,We.position)),wt=de.t+(1-Ze)*de.h,vt=de.t+(1-$t)*de.h}le.insert("line",":first-child").attr({x1:Zn,x2:Zn,y1:wt,y2:vt,"stroke-width":wn,stroke:lt,"stroke-dasharray":x.dashStyle(We.spikedash,wn)}).classed("spikeline",!0).classed("crisp",!0),le.insert("line",":first-child").attr({x1:Zn,x2:Zn,y1:wt,y2:vt,"stroke-width":wn+2,stroke:dt}).classed("spikeline",!0).classed("crisp",!0)}Wn.indexOf("marker")!==-1&&le.insert("circle",":first-child").attr({cx:Zn,cy:ft-(We.side!=="top"?wn:-wn),r:wn,fill:lt}).classed("spikeline",!0)}}}function $e(se,ue,pe){if(!pe||pe.length!==se._hoverdata.length)return!0;for(var le=pe.length-1;le>=0;le--){var Te=pe[le],de=se._hoverdata[le];if(Te.curveNumber!==de.curveNumber||String(Te.pointNumber)!==String(de.pointNumber)||String(Te.pointNumbers)!==String(de.pointNumbers))return!0}return!1}function ke(se,ue){return!ue||ue.vLinePoint!==se._spikepoints.vLinePoint||ue.hLinePoint!==se._spikepoints.hLinePoint}function Ne(se,ue){return g.plainText(se||"",{len:ue,allowedTags:["br","sub","sup","b","i","em"]})}function Ve(se,ue){for(var pe=ue.charAt(0),le=[],Te=[],de=[],Me=0;Me1)){delete $.grid;return}if(!N&&!M&&!k){var K=P("pattern")==="independent";K&&(N=!0)}j._hasSubplotGrid=N;var ae=P("roworder"),Q=ae==="top to bottom",he=N?.2:.1,ge=N?.3:.1,Se,ce;R&&$._splomGridDflt&&(Se=$._splomGridDflt.xside,ce=$._splomGridDflt.yside),j._domains={x:v("x",P,he,Se,J),y:v("y",P,ge,ce,ee,Q)}}function v(_,$,S,O,D,N){var M=$(_+"gap",S),k=$("domain."+_);$(_+"side",O);for(var R=new Array(D),F=k[0],H=(k[1]-F)/(D-M),j=H*(1-M),P=0;P(v==="legend"?1:0));if(Q===!1&&(C[v]=void 0),!(Q===!1&&!$.uirevision)&&(O("uirevision",C.uirevision),Q!==!1)){O("borderwidth");var he=O("orientation"),ge=O("yref"),Se=O("xref"),ce=he==="h",ne=ge==="paper",fe=Se==="paper",X,ye,Ce,$e="left";ce?(X=0,m.getComponentMethod("rangeslider","isVisible")(x.xaxis)?ne?(ye=1.1,Ce="bottom"):(ye=1,Ce="top"):ne?(ye=-.1,Ce="top"):(ye=0,Ce="bottom")):(ye=1,Ce="auto",fe?X=1.02:(X=1,$e="right")),h.coerce($,S,{x:{valType:"number",editType:"legend",min:fe?-2:0,max:fe?3:1,dflt:X}},"x"),h.coerce($,S,{y:{valType:"number",editType:"legend",min:ne?-2:0,max:ne?3:1,dflt:ye}},"y"),O("traceorder",P),d.isGrouped(C[v])&&O("tracegroupgap"),O("entrywidth"),O("entrywidthmode"),O("itemsizing"),O("itemwidth"),O("itemclick"),O("itemdoubleclick"),O("groupclick"),O("xanchor",$e),O("yanchor",Ce),O("valign"),h.noneOrAll($,S,["x","y"]);var ke=O("title.text");if(ke){O("title.side",ce?"left":"top");var Ne=h.extendFlat({},D,{size:h.bigFont(D.size)});h.coerceFont(O,"title.font",Ne)}}}}L.exports=function(x,C,_){var $,S=_.slice(),O=C.shapes;if(O)for($=0;$1)}var le=$e.hiddenlabels||[];if(!Oe&&(!$e.showlegend||!Fe.length))return Ve.selectAll("."+ke).remove(),$e._topdefs.select("#"+Ne).remove(),l.autoMargin(X,ke);var Te=h.ensureSingle(Ve,"g",ke,function(Xe){Oe||Xe.attr("pointer-events","all")}),de=h.ensureSingleById($e._topdefs,"clipPath",Ne,function(Xe){Xe.append("rect")}),Me=h.ensureSingle(Te,"rect","bg",function(Xe){Xe.attr("shape-rendering","crispEdges")});Me.call(g.stroke,Ce.bordercolor).call(g.fill,Ce.bgcolor).style("stroke-width",Ce.borderwidth+"px");var Re=h.ensureSingle(Te,"g","scrollbox"),ze=Ce.title;Ce._titleWidth=0,Ce._titleHeight=0;var We;ze.text?(We=h.ensureSingle(Re,"text",ke+"titletext"),We.attr("text-anchor","start").call(d.font,ze.font).text(ze.text),ae(We,Re,X,Ce,k)):Re.selectAll("."+ke+"titletext").remove();var ot=h.ensureSingle(Te,"rect","scrollbar",function(Xe){Xe.attr(C.scrollBarEnterAttrs).call(g.fill,C.scrollBarColor)}),dt=Re.selectAll("g.groups").data(Fe);dt.enter().append("g").attr("class","groups"),dt.exit().remove();var Ge=dt.selectAll("g.traces").data(h.identity);Ge.enter().append("g").attr("class","traces"),Ge.exit().remove(),Ge.style("opacity",function(Xe){var qe=Xe[0].trace;return c.traceIs(qe,"pie-like")?le.indexOf(Xe[0].label)!==-1?.5:1:qe.visible==="legendonly"?.5:1}).each(function(){m.select(this).call(ee,X,Ce)}).call(N,X,Ce).each(function(){Oe||m.select(this).call(K,X,ke)}),h.syncOrAsync([l.previousPromises,function(){return ge(X,dt,Ge,Ce)},function(){var Xe=$e._size,qe=Ce.borderwidth,gt=Ce.xref==="paper",ut=Ce.yref==="paper";if(ze.text&&F(We,Ce,qe),!Oe){var tt,Ct;gt?tt=Xe.l+Xe.w*Ce.x-S[ce(Ce)]*Ce._width:tt=$e.width*Ce.x-S[ce(Ce)]*Ce._width,ut?Ct=Xe.t+Xe.h*(1-Ce.y)-S[ne(Ce)]*Ce._effHeight:Ct=$e.height*(1-Ce.y)-S[ne(Ce)]*Ce._effHeight;var Gt=Se(X,ke,tt,Ct);if(Gt)return;if($e.margin.autoexpand){var Yt=tt,Nt=Ct;tt=gt?h.constrain(tt,0,$e.width-Ce._width):Yt,Ct=ut?h.constrain(Ct,0,$e.height-Ce._effHeight):Nt,tt!==Yt&&h.log("Constrain "+ke+".x to make legend fit inside graph"),Ct!==Nt&&h.log("Constrain "+ke+".y to make legend fit inside graph")}d.setTranslate(Te,tt,Ct)}if(ot.on(".drag",null),Te.on("wheel",null),Oe||Ce._height<=Ce._maxHeight||X._context.staticPlot){var Ft=Ce._effHeight;Oe&&(Ft=Ce._height),Me.attr({width:Ce._width-qe,height:Ft-qe,x:qe/2,y:qe/2}),d.setTranslate(Re,0,0),de.select("rect").attr({width:Ce._width-2*qe,height:Ft-2*qe,x:qe,y:qe}),d.setClipUrl(Re,Ne,X),d.setRect(ot,0,0,0,0),delete Ce._scrollY}else{var pn=Math.max(C.scrollBarMinHeight,Ce._effHeight*Ce._effHeight/Ce._height),_n=Ce._effHeight-pn-2*C.scrollBarMargin,sn=Ce._height-Ce._effHeight,Zn=_n/sn,an=Math.min(Ce._scrollY||0,sn);Me.attr({width:Ce._width-2*qe+C.scrollBarWidth+C.scrollBarMargin,height:Ce._effHeight-qe,x:qe/2,y:qe/2}),de.select("rect").attr({width:Ce._width-2*qe+C.scrollBarWidth+C.scrollBarMargin,height:Ce._effHeight-2*qe,x:qe,y:qe+an}),d.setClipUrl(Re,Ne,X),vt(an,pn,Zn),Te.on("wheel",function(){an=h.constrain(Ce._scrollY+m.event.deltaY/_n*sn,0,sn),vt(an,pn,Zn),an!==0&&an!==sn&&m.event.preventDefault()});var Cn,jn,Wn,wn=function(pt,Tt,Et){var fn=(Et-Tt)/Zn+pt;return h.constrain(fn,0,sn)},lt=function(pt,Tt,Et){var fn=(Tt-Et)/Zn+pt;return h.constrain(fn,0,sn)},ft=m.behavior.drag().on("dragstart",function(){var pt=m.event.sourceEvent;pt.type==="touchstart"?Cn=pt.changedTouches[0].clientY:Cn=pt.clientY,Wn=an}).on("drag",function(){var pt=m.event.sourceEvent;pt.buttons===2||pt.ctrlKey||(pt.type==="touchmove"?jn=pt.changedTouches[0].clientY:jn=pt.clientY,an=wn(Wn,Cn,jn),vt(an,pn,Zn))});ot.call(ft);var wt=m.behavior.drag().on("dragstart",function(){var pt=m.event.sourceEvent;pt.type==="touchstart"&&(Cn=pt.changedTouches[0].clientY,Wn=an)}).on("drag",function(){var pt=m.event.sourceEvent;pt.type==="touchmove"&&(jn=pt.changedTouches[0].clientY,an=lt(Wn,Cn,jn),vt(an,pn,Zn))});Re.call(wt)}function vt(pt,Tt,Et){Ce._scrollY=X._fullLayout[ke]._scrollY=pt,d.setTranslate(Re,0,-pt),d.setRect(ot,Ce._width,C.scrollBarMargin+pt*Et,C.scrollBarWidth,Tt),de.select("rect").attr("y",qe+pt)}if(X._context.edits.legendPosition){var $t,Ze,it,ht;Te.classed("cursor-move",!0),u.init({element:Te.node(),gd:X,prepFn:function(){var pt=d.getTranslate(Te);it=pt.x,ht=pt.y},moveFn:function(pt,Tt){var Et=it+pt,fn=ht+Tt;d.setTranslate(Te,Et,fn),$t=u.align(Et,Ce._width,Xe.l,Xe.l+Xe.w,Ce.xanchor),Ze=u.align(fn+Ce._height,-Ce._height,Xe.t+Xe.h,Xe.t,Ce.yanchor)},doneFn:function(){if($t!==void 0&&Ze!==void 0){var pt={};pt[ke+".x"]=$t,pt[ke+".y"]=Ze,c.call("_guiRelayout",X,pt)}},clickFn:function(pt,Tt){var Et=Ve.selectAll("g.traces").filter(function(){var fn=this.getBoundingClientRect();return Tt.clientX>=fn.left&&Tt.clientX<=fn.right&&Tt.clientY>=fn.top&&Tt.clientY<=fn.bottom});Et.size()>0&&P(X,Te,Et,pt,Tt)}})}}],X)}}function j(X,ye,Ce){var $e=X[0],ke=$e.width,Ne=ye.entrywidthmode,Ve=$e.trace.legendwidth||ye.entrywidth;return Ne==="fraction"?ye._maxWidth*Ve:Ce+(Ve||ke)}function P(X,ye,Ce,$e,ke){var Ne=Ce.data()[0][0].trace,Ve={event:ke,node:Ce.node(),curveNumber:Ne.index,expandedIndex:Ne._expandedIndex,data:X.data,layout:X.layout,frames:X._transitionData._frames,config:X._context,fullData:X._fullData,fullLayout:X._fullLayout};Ne._group&&(Ve.group=Ne._group),c.traceIs(Ne,"pie-like")&&(Ve.label=Ce.datum()[0].label);var Oe=i.triggerHandler(X,"plotly_legendclick",Ve);if($e===1){if(Oe===!1)return;ye._clickTimeout=setTimeout(function(){X._fullLayout&&x(Ce,X,$e)},X._context.doubleClickDelay)}else if($e===2){ye._clickTimeout&&clearTimeout(ye._clickTimeout),X._legendMouseDownTime=0;var Fe=i.triggerHandler(X,"plotly_legenddoubleclick",Ve);Fe!==!1&&Oe!==!1&&x(Ce,X,$e)}}function ee(X,ye,Ce){var $e=fe(Ce),ke=X.data()[0][0],Ne=ke.trace,Ve=c.traceIs(Ne,"pie-like"),Oe=!Ce._inHover&&ye._context.edits.legendText&&!Ve,Fe=Ce._maxNameLength,ie,we;ke.groupTitle?(ie=ke.groupTitle.text,we=ke.groupTitle.font):(we=Ce.font,Ce.entries?ie=ke.text:(ie=Ve?ke.label:Ne.name,Ne._meta&&(ie=h.templateString(ie,Ne._meta))));var se=h.ensureSingle(X,"text",$e+"text");se.attr("text-anchor","start").call(d.font,we).text(Oe?J(ie,Fe):ie);var ue=Ce.itemwidth+C.itemGap*2;v.positionText(se,ue,0),Oe?se.call(v.makeEditable,{gd:ye,text:ie}).call(ae,X,ye,Ce).on("edit",function(pe){this.text(J(pe,Fe)).call(ae,X,ye,Ce);var le=ke.trace._fullInput||{},Te={};if(c.hasTransform(le,"groupby")){var de=c.getTransformIndices(le,"groupby"),Me=de[de.length-1],Re=h.keyedContainer(le,"transforms["+Me+"].styles","target","value.name");Re.set(ke.trace._group,pe),Te=Re.constructUpdate()}else Te.name=pe;return le._isShape?c.call("_guiRelayout",ye,"shapes["+Ne.index+"].name",Te.name):c.call("_guiRestyle",ye,Te,Ne.index)}):ae(se,X,ye,Ce)}function J(X,ye){var Ce=Math.max(4,ye);if(X&&X.trim().length>=Ce/2)return X;X=X||"";for(var $e=Ce-X.length;$e>0;$e--)X+=" ";return X}function K(X,ye,Ce){var $e=ye._context.doubleClickDelay,ke,Ne=1,Ve=h.ensureSingle(X,"rect",Ce+"toggle",function(Oe){ye._context.staticPlot||Oe.style("cursor","pointer").attr("pointer-events","all"),Oe.call(g.fill,"rgba(0,0,0,0)")});ye._context.staticPlot||(Ve.on("mousedown",function(){ke=new Date().getTime(),ke-ye._legendMouseDownTime<$e?Ne+=1:(Ne=1,ye._legendMouseDownTime=ke)}),Ve.on("mouseup",function(){if(!(ye._dragged||ye._editing)){var Oe=ye._fullLayout[Ce];new Date().getTime()-ye._legendMouseDownTime>$e&&(Ne=Math.max(Ne-1,1)),P(ye,Oe,X,Ne,m.event)}}))}function ae(X,ye,Ce,$e,ke){$e._inHover&&X.attr("data-notex",!0),v.convertToTspans(X,Ce,function(){Q(ye,Ce,$e,ke)})}function Q(X,ye,Ce,$e){var ke=X.data()[0][0];if(!Ce._inHover&&ke&&!ke.trace.showlegend){X.remove();return}var Ne=X.select("g[class*=math-group]"),Ve=Ne.node(),Oe=fe(Ce);Ce||(Ce=ye._fullLayout[Oe]);var Fe=Ce.borderwidth,ie;$e===k?ie=Ce.title.font:ke.groupTitle?ie=ke.groupTitle.font:ie=Ce.font;var we=ie.size*$,se,ue;if(Ve){var pe=d.bBox(Ve);se=pe.height,ue=pe.width,$e===k?d.setTranslate(Ne,Fe,Fe+se*.75):d.setTranslate(Ne,0,se*.25)}else{var le="."+Oe+($e===k?"title":"")+"text",Te=X.select(le),de=v.lineCount(Te),Me=Te.node();if(se=we*de,ue=Me?d.bBox(Me).width:0,$e===k)Ce.title.side==="left"&&(ue+=C.itemGap*2),v.positionText(Te,Fe+C.titlePad,Fe+we);else{var Re=C.itemGap*2+Ce.itemwidth;ke.groupTitle&&(Re=C.itemGap,ue-=Ce.itemwidth),v.positionText(Te,Re,-we*((de-1)/2-.3))}}$e===k?(Ce._titleWidth=ue,Ce._titleHeight=se):(ke.lineHeight=we,ke.height=Math.max(se,16)+3,ke.width=ue)}function he(X){var ye=0,Ce=0,$e=X.title.side;return $e&&($e.indexOf("left")!==-1&&(ye=X._titleWidth),$e.indexOf("top")!==-1&&(Ce=X._titleHeight)),[ye,Ce]}function ge(X,ye,Ce,$e){var ke=X._fullLayout,Ne=fe($e);$e||($e=ke[Ne]);var Ve=ke._size,Oe=M.isVertical($e),Fe=M.isGrouped($e),ie=$e.entrywidthmode==="fraction",we=$e.borderwidth,se=2*we,ue=C.itemGap,pe=$e.itemwidth+ue*2,le=2*(we+ue),Te=ne($e),de=$e.y<0||$e.y===0&&Te==="top",Me=$e.y>1||$e.y===1&&Te==="bottom",Re=$e.tracegroupgap,ze={};$e._maxHeight=Math.max(de||Me?ke.height/2:Ve.h,30);var We=0;$e._width=0,$e._height=0;var ot=he($e);if(Oe)Ce.each(function(Wn){var wn=Wn[0].height;d.setTranslate(this,we+ot[0],we+ot[1]+$e._height+wn/2+ue),$e._height+=wn,$e._width=Math.max($e._width,Wn[0].width)}),We=pe+$e._width,$e._width+=ue+pe+se,$e._height+=le,Fe&&(ye.each(function(Wn,wn){d.setTranslate(this,0,wn*$e.tracegroupgap)}),$e._height+=($e._lgroupsLength-1)*$e.tracegroupgap);else{var dt=ce($e),Ge=$e.x<0||$e.x===0&&dt==="right",Xe=$e.x>1||$e.x===1&&dt==="left",qe=Me||de,gt=ke.width/2;$e._maxWidth=Math.max(Ge?qe&&dt==="left"?Ve.l+Ve.w:gt:Xe?qe&&dt==="right"?Ve.r+Ve.w:gt:Ve.w,2*pe);var ut=0,tt=0;Ce.each(function(Wn){var wn=j(Wn,$e,pe);ut=Math.max(ut,wn),tt+=wn}),We=null;var Ct=0;if(Fe){var Gt=0,Yt=0,Nt=0;ye.each(function(){var Wn=0,wn=0;m.select(this).selectAll("g.traces").each(function(ft){var wt=j(ft,$e,pe),vt=ft[0].height;d.setTranslate(this,ot[0],ot[1]+we+ue+vt/2+wn),wn+=vt,Wn=Math.max(Wn,wt),ze[ft[0].trace.legendgroup]=Wn});var lt=Wn+ue;Yt>0&<+we+Yt>$e._maxWidth?(Ct=Math.max(Ct,Yt),Yt=0,Nt+=Gt+Re,Gt=wn):Gt=Math.max(Gt,wn),d.setTranslate(this,Yt,Nt),Yt+=lt}),$e._width=Math.max(Ct,Yt)+we,$e._height=Nt+Gt+le}else{var Ft=Ce.size(),pn=tt+se+(Ft-1)*ue<$e._maxWidth,_n=0,sn=0,Zn=0,an=0;Ce.each(function(Wn){var wn=Wn[0].height,lt=j(Wn,$e,pe),ft=pn?lt:ut;ie||(ft+=ue),ft+we+sn-ue>=$e._maxWidth&&(Ct=Math.max(Ct,an),sn=0,Zn+=_n,$e._height+=_n,_n=0),d.setTranslate(this,ot[0]+we+sn,ot[1]+we+Zn+wn/2+ue),an=sn+lt+ue,sn+=ft,_n=Math.max(_n,wn)}),pn?($e._width=sn+se,$e._height=_n+le):($e._width=Math.max(Ct,an)+se,$e._height+=_n+le)}}$e._width=Math.ceil(Math.max($e._width+ot[0],$e._titleWidth+2*(we+C.titlePad))),$e._height=Math.ceil(Math.max($e._height+ot[1],$e._titleHeight+2*(we+C.itemGap))),$e._effHeight=Math.min($e._height,$e._maxHeight);var Cn=X._context.edits,jn=Cn.legendText||Cn.legendPosition;Ce.each(function(Wn){var wn=m.select(this).select("."+Ne+"toggle"),lt=Wn[0].height,ft=Wn[0].trace.legendgroup,wt=j(Wn,$e,pe);Fe&&ft!==""&&(wt=ze[ft]);var vt=jn?pe:We||wt;!Oe&&!ie&&(vt+=ue/2),d.setRect(wn,0,-lt/2,vt,lt)})}function Se(X,ye,Ce,$e){var ke=X._fullLayout,Ne=ke[ye],Ve=ce(Ne),Oe=ne(Ne),Fe=Ne.xref==="paper",ie=Ne.yref==="paper";X._fullLayout._reservedMargin[ye]={};var we=Ne.y<.5?"b":"t",se=Ne.x<.5?"l":"r",ue={r:ke.width-Ce,l:Ce+Ne._width,b:ke.height-$e,t:$e+Ne._effHeight};if(Fe&&ie)return l.autoMargin(X,ye,{x:Ne.x,y:Ne.y,l:Ne._width*S[Ve],r:Ne._width*O[Ve],b:Ne._effHeight*O[Oe],t:Ne._effHeight*S[Oe]});Fe?X._fullLayout._reservedMargin[ye][we]=ue[we]:ie||Ne.orientation==="v"?X._fullLayout._reservedMargin[ye][se]=ue[se]:X._fullLayout._reservedMargin[ye][we]=ue[we]}function ce(X){return h.isRightAnchor(X)?"right":h.isCenterAnchor(X)?"center":"left"}function ne(X){return h.isBottomAnchor(X)?"bottom":h.isMiddleAnchor(X)?"middle":"top"}function fe(X){return X._id||"legend"}},2424:function(L,A,s){var m=s(3972),h=s(130);L.exports=function(c,i,u){var d=i._inHover,g=h.isGrouped(i),v=h.isReversed(i),x={},C=[],_=!1,$={},S=0,O=0,D,N;function M(X,ye,Ce){if(i.visible!==!1&&!(u&&X!==i._id))if(ye===""||!h.isGrouped(i)){var $e="~~i"+S;C.push($e),x[$e]=[Ce],S++}else C.indexOf(ye)===-1?(C.push(ye),_=!0,x[ye]=[Ce]):x[ye].push(Ce)}for(D=0;DQ&&(ae=Q)}J[D][0]._groupMinRank=ae,J[D][0]._preGroupSort=D}var he=function(X,ye){return X[0]._groupMinRank-ye[0]._groupMinRank||X[0]._preGroupSort-ye[0]._preGroupSort},ge=function(X,ye){return X.trace.legendrank-ye.trace.legendrank||X._preSort-ye._preSort};for(J.forEach(function(X,ye){X[0]._preGroupSort=ye}),J.sort(he),D=0;D0)se=Fe.width;else return 0;return ee?we:Math.min(se,ie)};F.each(function(Oe){var Fe=m.select(this),ie=l.ensureSingle(Fe,"g","layers");ie.style("opacity",Oe[0].trace.opacity);var we=j.valign,se=Oe[0].lineHeight,ue=Oe[0].height;if(we==="middle"||!se||!ue)ie.attr("transform",null);else{var pe={top:1,bottom:-1}[we],le=pe*(.5*(se-ue+3));ie.attr("transform",c(0,le))}var Te=ie.selectAll("g.legendfill").data([Oe]);Te.enter().append("g").classed("legendfill",!0);var de=ie.selectAll("g.legendlines").data([Oe]);de.enter().append("g").classed("legendlines",!0);var Me=ie.selectAll("g.legendsymbols").data([Oe]);Me.enter().append("g").classed("legendsymbols",!0),Me.selectAll("g.legendpoints").data([Oe]).enter().append("g").classed("legendpoints",!0)}).each(Ve).each(Se).each(ne).each(ce).each(X).each(ke).each($e).each(he).each(ge).each(ye).each(Ce);function he(Oe){var Fe=M(Oe),ie=Fe.showFill,we=Fe.showLine,se=Fe.showGradientLine,ue=Fe.showGradientFill,pe=Fe.anyFill,le=Fe.anyLine,Te=Oe[0],de=Te.trace,Me,Re,ze=d(de),We=ze.colorscale,ot=ze.reversescale,dt=function(Ct){if(Ct.size())if(ie)i.fillGroupStyle(Ct,H);else{var Gt="legendfill-"+de.uid;i.gradient(Ct,H,Gt,N(ot),We,"fill")}},Ge=function(Ct){if(Ct.size()){var Gt="legendline-"+de.uid;i.lineGroupStyle(Ct),i.gradient(Ct,H,Gt,N(ot),We,"stroke")}},Xe=g.hasMarkers(de)||!pe?"M5,0":le?"M5,-2":"M5,-3",qe=m.select(this),gt=qe.select(".legendfill").selectAll("path").data(ie||ue?[Oe]:[]);if(gt.enter().append("path").classed("js-fill",!0),gt.exit().remove(),gt.attr("d",Xe+"h"+J+"v6h-"+J+"z").call(dt),we||se){var ut=Q(void 0,de.line,O,$);Re=l.minExtend(de,{line:{width:ut}}),Me=[l.minExtend(Te,{trace:Re})]}var tt=qe.select(".legendlines").selectAll("path").data(we||se?[Me]:[]);tt.enter().append("path").classed("js-line",!0),tt.exit().remove(),tt.attr("d",Xe+(se?"l"+J+",0.0001":"h"+J)).call(we?i.lineGroupStyle:Ge)}function ge(Oe){var Fe=M(Oe),ie=Fe.anyFill,we=Fe.anyLine,se=Fe.showLine,ue=Fe.showMarker,pe=Oe[0],le=pe.trace,Te=!ue&&!we&&!ie&&g.hasText(le),de,Me;function Re(gt,ut,tt,Ct){var Gt=l.nestedProperty(le,gt).get(),Yt=l.isArrayOrTypedArray(Gt)&&ut?ut(Gt):Gt;if(ee&&Yt&&Ct!==void 0&&(Yt=Ct),tt){if(Yttt[1])return tt[1]}return Yt}function ze(gt){return pe._distinct&&pe.index&>[pe.index]?gt[pe.index]:gt[0]}if(ue||Te||se){var We={},ot={};if(ue){We.mc=Re("marker.color",ze),We.mx=Re("marker.symbol",ze),We.mo=Re("marker.opacity",l.mean,[.2,1]),We.mlc=Re("marker.line.color",ze),We.mlw=Re("marker.line.width",l.mean,[0,5],S),ot.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var dt=Re("marker.size",l.mean,[2,16],_);We.ms=dt,ot.marker.size=dt}se&&(ot.line={width:Re("line.width",ze,[0,10],$)}),Te&&(We.tx="Aa",We.tp=Re("textposition",ze),We.ts=10,We.tc=Re("textfont.color",ze),We.tf=Re("textfont.family",ze)),de=[l.minExtend(pe,We)],Me=l.minExtend(le,ot),Me.selectedpoints=null,Me.texttemplate=null}var Ge=m.select(this).select("g.legendpoints"),Xe=Ge.selectAll("path.scatterpts").data(ue?de:[]);Xe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",ae),Xe.exit().remove(),Xe.call(i.pointStyle,Me,H),ue&&(de[0].mrc=3);var qe=Ge.selectAll("g.pointtext").data(Te?de:[]);qe.enter().append("g").classed("pointtext",!0).append("text").attr("transform",ae),qe.exit().remove(),qe.selectAll("text").call(i.textPointStyle,Me,H)}function Se(Oe){var Fe=Oe[0].trace,ie=Fe.type==="waterfall";if(Oe[0]._distinct&&ie){var we=Oe[0].trace[Oe[0].dir].marker;return Oe[0].mc=we.color,Oe[0].mlw=we.line.width,Oe[0].mlc=we.line.color,fe(Oe,this,"waterfall")}var se=[];Fe.visible&&ie&&(se=Oe[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var ue=m.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(se);ue.enter().append("path").classed("legendwaterfall",!0).attr("transform",ae).style("stroke-miterlimit",1),ue.exit().remove(),ue.each(function(pe){var le=m.select(this),Te=Fe[pe[0]].marker,de=Q(void 0,Te.line,D,S);le.attr("d",pe[1]).style("stroke-width",de+"px").call(u.fill,Te.color),de&&le.call(u.stroke,Te.line.color)})}function ce(Oe){fe(Oe,this)}function ne(Oe){fe(Oe,this,"funnel")}function fe(Oe,Fe,ie){var we=Oe[0].trace,se=we.marker||{},ue=se.line||{},pe=ie?we.visible&&we.type===ie:h.traceIs(we,"bar"),le=m.select(Fe).select("g.legendpoints").selectAll("path.legend"+ie).data(pe?[Oe]:[]);le.enter().append("path").classed("legend"+ie,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",ae),le.exit().remove(),le.each(function(Te){var de=m.select(this),Me=Te[0],Re=Q(Me.mlw,se.line,D,S);de.style("stroke-width",Re+"px");var ze=Me.mcc;if(!j._inHover&&"mc"in Me){var We=d(se),ot=We.mid;ot===void 0&&(ot=(We.max+We.min)/2),ze=i.tryColorscale(se,"")(ot)}var dt=ze||Me.mc||se.color,Ge=se.pattern,Xe=Ge&&i.getPatternAttr(Ge.shape,0,"");if(Xe){var qe=i.getPatternAttr(Ge.bgcolor,0,null),gt=i.getPatternAttr(Ge.fgcolor,0,null),ut=Ge.fgopacity,tt=k(Ge.size,8,10),Ct=k(Ge.solidity,.5,1),Gt="legend-"+we.uid;de.call(i.pattern,"legend",H,Gt,Xe,tt,Ct,ze,Ge.fillmode,qe,gt,ut)}else de.call(u.fill,dt);Re&&u.stroke(de,Me.mlc||ue.color)})}function X(Oe){var Fe=Oe[0].trace,ie=m.select(this).select("g.legendpoints").selectAll("path.legendbox").data(Fe.visible&&h.traceIs(Fe,"box-violin")?[Oe]:[]);ie.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",ae),ie.exit().remove(),ie.each(function(){var we=m.select(this);if((Fe.boxpoints==="all"||Fe.points==="all")&&u.opacity(Fe.fillcolor)===0&&u.opacity((Fe.line||{}).color)===0){var se=l.minExtend(Fe,{marker:{size:ee?_:l.constrain(Fe.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});ie.call(i.pointStyle,se,H)}else{var ue=Q(void 0,Fe.line,D,S);we.style("stroke-width",ue+"px").call(u.fill,Fe.fillcolor),ue&&u.stroke(we,Fe.line.color)}})}function ye(Oe){var Fe=Oe[0].trace,ie=m.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(Fe.visible&&Fe.type==="candlestick"?[Oe,Oe]:[]);ie.enter().append("path").classed("legendcandle",!0).attr("d",function(we,se){return se?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",ae).style("stroke-miterlimit",1),ie.exit().remove(),ie.each(function(we,se){var ue=m.select(this),pe=Fe[se?"increasing":"decreasing"],le=Q(void 0,pe.line,D,S);ue.style("stroke-width",le+"px").call(u.fill,pe.fillcolor),le&&u.stroke(ue,pe.line.color)})}function Ce(Oe){var Fe=Oe[0].trace,ie=m.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(Fe.visible&&Fe.type==="ohlc"?[Oe,Oe]:[]);ie.enter().append("path").classed("legendohlc",!0).attr("d",function(we,se){return se?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",ae).style("stroke-miterlimit",1),ie.exit().remove(),ie.each(function(we,se){var ue=m.select(this),pe=Fe[se?"increasing":"decreasing"],le=Q(void 0,pe.line,D,S);ue.style("fill","none").call(i.dashLine,pe.line.dash,le),le&&u.stroke(ue,pe.line.color)})}function $e(Oe){Ne(Oe,this,"pie")}function ke(Oe){Ne(Oe,this,"funnelarea")}function Ne(Oe,Fe,ie){var we=Oe[0],se=we.trace,ue=ie?se.visible&&se.type===ie:h.traceIs(se,ie),pe=m.select(Fe).select("g.legendpoints").selectAll("path.legend"+ie).data(ue?[Oe]:[]);if(pe.enter().append("path").classed("legend"+ie,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",ae),pe.exit().remove(),pe.size()){var le=se.marker||{},Te=Q(x(le.line.width,we.pts),le.line,D,S),de="pieLike",Me=l.minExtend(se,{marker:{line:{width:Te}}},de),Re=l.minExtend(we,{trace:Me},de);v(pe,Re,Me,H)}}function Ve(Oe){var Fe=Oe[0].trace,ie,we=[];if(Fe.visible)switch(Fe.type){case"histogram2d":case"heatmap":we=[["M-15,-2V4H15V-2Z"]],ie=!0;break;case"choropleth":case"choroplethmapbox":we=[["M-6,-6V6H6V-6Z"]],ie=!0;break;case"densitymapbox":we=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],ie="radial";break;case"cone":we=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],ie=!1;break;case"streamtube":we=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],ie=!1;break;case"surface":we=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],ie=!0;break;case"mesh3d":we=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ie=!1;break;case"volume":we=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ie=!0;break;case"isosurface":we=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],ie=!1;break}var se=m.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(we);se.enter().append("path").classed("legend3dandfriends",!0).attr("transform",ae).style("stroke-miterlimit",1),se.exit().remove(),se.each(function(ue,pe){var le=m.select(this),Te=d(Fe),de=Te.colorscale,Me=Te.reversescale,Re=function(dt){if(dt.size()){var Ge="legendfill-"+Fe.uid;i.gradient(dt,H,Ge,N(Me,ie==="radial"),de,"fill")}},ze;if(de){if(!ie){var ot=de.length;ze=pe===0?de[Me?ot-1:0][1]:pe===1?de[Me?0:ot-1][1]:de[Math.floor((ot-1)/2)][1]}}else{var We=Fe.vertexcolor||Fe.facecolor||Fe.color;ze=l.isArrayOrTypedArray(We)?We[pe]||We[0]:We}le.attr("d",ue[0]),ze?le.call(u.fill,ze):le.call(Re)})}};function N(R,F){var H=F?"radial":"horizontal";return H+(R?"":"reversed")}function M(R){var F=R[0].trace,H=F.contours,j=g.hasLines(F),P=g.hasMarkers(F),ee=F.visible&&F.fill&&F.fill!=="none",J=!1,K=!1;if(H){var ae=H.coloring;ae==="lines"?J=!0:j=ae==="none"||ae==="heatmap"||H.showlines,H.type==="constraint"?ee=H._operation!=="=":(ae==="fill"||ae==="heatmap")&&(K=!0)}return{showMarker:P,showLine:j,showFill:ee,showGradientLine:J,showGradientFill:K,anyLine:j||J,anyFill:ee||K}}function k(R,F,H){return R&&l.isArrayOrTypedArray(R)?F:R>H?H:R}},2068:function(L,A,s){s(3348),L.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},6023:function(L,A,s){var m=s(3972),h=s(4875),l=s(1675),c=s(4255),i=s(4031).eraseActiveShape,u=s(1828),d=u._,g=L.exports={};g.toImage={name:"toImage",title:function(R){var F=R._context.toImageButtonOptions||{},H=F.format||"png";return H==="png"?d(R,"Download plot as a png"):d(R,"Download plot")},icon:c.camera,click:function(R){var F=R._context.toImageButtonOptions,H={format:F.format||"png"};u.notifier(d(R,"Taking snapshot - this may take a few seconds"),"long"),H.format!=="svg"&&u.isIE()&&(u.notifier(d(R,"IE only supports svg. Changing format to svg."),"long"),H.format="svg"),["filename","width","height","scale"].forEach(function(j){j in F&&(H[j]=F[j])}),m.call("downloadImage",R,H).then(function(j){u.notifier(d(R,"Snapshot succeeded")+" - "+j,"long")}).catch(function(){u.notifier(d(R,"Sorry, there was a problem downloading your snapshot!"),"long")})}},g.sendDataToCloud={name:"sendDataToCloud",title:function(R){return d(R,"Edit in Chart Studio")},icon:c.disk,click:function(R){h.sendDataToCloud(R)}},g.editInChartStudio={name:"editInChartStudio",title:function(R){return d(R,"Edit in Chart Studio")},icon:c.pencil,click:function(R){h.sendDataToCloud(R)}},g.zoom2d={name:"zoom2d",_cat:"zoom",title:function(R){return d(R,"Zoom")},attr:"dragmode",val:"zoom",icon:c.zoombox,click:v},g.pan2d={name:"pan2d",_cat:"pan",title:function(R){return d(R,"Pan")},attr:"dragmode",val:"pan",icon:c.pan,click:v},g.select2d={name:"select2d",_cat:"select",title:function(R){return d(R,"Box Select")},attr:"dragmode",val:"select",icon:c.selectbox,click:v},g.lasso2d={name:"lasso2d",_cat:"lasso",title:function(R){return d(R,"Lasso Select")},attr:"dragmode",val:"lasso",icon:c.lasso,click:v},g.drawclosedpath={name:"drawclosedpath",title:function(R){return d(R,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:c.drawclosedpath,click:v},g.drawopenpath={name:"drawopenpath",title:function(R){return d(R,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:c.drawopenpath,click:v},g.drawline={name:"drawline",title:function(R){return d(R,"Draw line")},attr:"dragmode",val:"drawline",icon:c.drawline,click:v},g.drawrect={name:"drawrect",title:function(R){return d(R,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:c.drawrect,click:v},g.drawcircle={name:"drawcircle",title:function(R){return d(R,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:c.drawcircle,click:v},g.eraseshape={name:"eraseshape",title:function(R){return d(R,"Erase active shape")},icon:c.eraseshape,click:i},g.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(R){return d(R,"Zoom in")},attr:"zoom",val:"in",icon:c.zoom_plus,click:v},g.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(R){return d(R,"Zoom out")},attr:"zoom",val:"out",icon:c.zoom_minus,click:v},g.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(R){return d(R,"Autoscale")},attr:"zoom",val:"auto",icon:c.autoscale,click:v},g.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(R){return d(R,"Reset axes")},attr:"zoom",val:"reset",icon:c.home,click:v},g.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(R){return d(R,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:c.tooltip_basic,gravity:"ne",click:v},g.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(R){return d(R,"Compare data on hover")},attr:"hovermode",val:function(R){return R._fullLayout._isHoriz?"y":"x"},icon:c.tooltip_compare,gravity:"ne",click:v};function v(R,F){var H=F.currentTarget,j=H.getAttribute("data-attr"),P=H.getAttribute("data-val")||!0,ee=R._fullLayout,J={},K=l.list(R,null,!0),ae=ee._cartesianSpikesEnabled,Q,he;if(j==="zoom"){var ge=P==="in"?.5:2,Se=(1+ge)/2,ce=(1-ge)/2,ne;for(he=0;he1?(Ne=["toggleHover"],Ve=["resetViews"]):J?(ke=["zoomInGeo","zoomOutGeo"],Ne=["hoverClosestGeo"],Ve=["resetGeo"]):ee?(Ne=["hoverClosest3d"],Ve=["resetCameraDefault3d","resetCameraLastSave3d"]):ge?(ke=["zoomInMapbox","zoomOutMapbox"],Ne=["toggleHover"],Ve=["resetViewMapbox"]):Q?Ne=["hoverClosestGl2d"]:K?Ne=["hoverClosestPie"]:ne?(Ne=["hoverClosestCartesian","hoverCompareCartesian"],Ve=["resetViewSankey"]):Ne=["toggleHover"],P&&(Ne=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(_(N)||X)&&(Ne=[]),(P||Q)&&!fe&&(ke=["zoomIn2d","zoomOut2d","autoScale2d"],Ve[0]!=="resetViews"&&(Ve=["resetScale2d"])),ee?Oe=["zoom3d","pan3d","orbitRotation","tableRotation"]:(P||Q)&&!fe||he?Oe=["zoom2d","pan2d"]:ge||J?Oe=["pan2d"]:Se&&(Oe=["zoom2d"]),C(N)&&Oe.push("select2d","lasso2d");var Fe=[],ie=function(pe){Fe.indexOf(pe)===-1&&Ne.indexOf(pe)!==-1&&Fe.push(pe)};if(Array.isArray(H)){for(var we=[],se=0;se0);if(k){var R=g(C,_,$);N("x",R[0]),N("y",R[1]),m.noneOrAll(x,C,["x","y"]),N("xanchor"),N("yanchor"),m.coerceFont(N,"font",_.font);var F=N("bgcolor");N("activecolor",h.contrast(F,u.lightAmount,u.darkAmount)),N("bordercolor"),N("borderwidth")}};function d(v,x,C,_){var $=_.calendar;function S(N,M){return m.coerce(v,x,i.buttons,N,M)}var O=S("visible");if(O){var D=S("step");D!=="all"&&($&&$!=="gregorian"&&(D==="month"||D==="year")?x.stepmode="backward":S("stepmode"),S("count")),S("label")}}function g(v,x,C){for(var _=C.filter(function(D){return x[D].anchor===v._id}),$=0,S=0;S<_.length;S++){var O=x[_[S]].domain;O&&($=Math.max(O[1],$))}return[v.domain[0],$+u.yPad]}},1598:function(L,A,s){var m=s(9898),h=s(3972),l=s(4875),c=s(7901),i=s(1424),u=s(1828),d=u.strTranslate,g=s(3893),v=s(1675),x=s(8783),C=x.LINE_SPACING,_=x.FROM_TL,$=x.FROM_BR,S=s(9573),O=s(7917);L.exports=function(ee){var J=ee._fullLayout,K=J._infolayer.selectAll(".rangeselector").data(D(ee),N);K.enter().append("g").classed("rangeselector",!0),K.exit().remove(),K.style({cursor:"pointer","pointer-events":"all"}),K.each(function(ae){var Q=m.select(this),he=ae,ge=he.rangeselector,Se=Q.selectAll("g.button").data(u.filterVisible(ge.buttons));Se.enter().append("g").classed("button",!0),Se.exit().remove(),Se.each(function(ce){var ne=m.select(this),fe=O(he,ce);ce._isActive=M(he,ce,fe),ne.call(k,ge,ce),ne.call(F,ge,ce,ee),ne.on("click",function(){ee._dragged||h.call("_guiRelayout",ee,fe)}),ne.on("mouseover",function(){ce._isHovered=!0,ne.call(k,ge,ce)}),ne.on("mouseout",function(){ce._isHovered=!1,ne.call(k,ge,ce)})}),j(ee,Se,ge,he._name,Q)})};function D(P){for(var ee=v.list(P,"x",!0),J=[],K=0;K=dt.max)We=Te[ot+1];else if(ze=dt.pmax)We=Te[ot+1];else if(zeJ._length||ye+Oe<0)return;Fe=X+Oe,ie=ye+Oe;break;case Q:if(we="col-resize",X+Oe>J._length)return;Fe=X+Oe,ie=ye;break;case he:if(we="col-resize",ye+Oe<0)return;Fe=X,ie=ye+Oe;break;default:we="ew-resize",Fe=fe,ie=fe+Oe;break}if(ie=0;Se--){var ce=H.append("path").attr(P).style("opacity",Se?.1:ee).call(c.stroke,K).call(c.fill,J).call(i.dashLine,Se?"solid":Q,Se?4+ae:ae);if(_(ce,D,k),he){var ne=u(D.layout,"selections",k);ce.style({cursor:"move"});var fe={element:ce.node(),plotinfo:R,gd:D,editHelpers:ne,isActiveSelection:!0},X=m(j,D);h(X,ce,fe)}else ce.style("pointer-events",Se?"all":"none");ge[Se]=ce}var ye=ge[0],Ce=ge[1];Ce.node().addEventListener("click",function(){return $(D,ye)})}}function _(D,N,M){var k=M.xref+M.yref;i.setClipUrl(D,"clip"+N._fullLayout._uid+k,N)}function $(D,N){if(x(D)){var M=N.node(),k=+M.getAttribute("data-index");if(k>=0){if(k===D._fullLayout._activeSelectionIndex){O(D);return}D._fullLayout._activeSelectionIndex=k,D._fullLayout._deactivateSelection=O,v(D)}}}function S(D){if(x(D)){var N=D._fullLayout.selections.length-1;D._fullLayout._activeSelectionIndex=N,D._fullLayout._deactivateSelection=O,v(D)}}function O(D){if(x(D)){var N=D._fullLayout._activeSelectionIndex;N>=0&&(l(D),delete D._fullLayout._activeSelectionIndex,v(D))}}},3777:function(L,A,s){var m=s(9952).P,h=s(1426).extendFlat;L.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:h({},m,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},849:function(L){L.exports=function(s,m,h){h("newselection.mode");var l=h("newselection.line.width");l&&(h("newselection.line.color"),h("newselection.line.dash")),h("activeselection.fillcolor"),h("activeselection.opacity")}},5855:function(L,A,s){var m=s(4505),h=m.selectMode,l=s(1873),c=l.clearOutline,i=s(165),u=i.readPaths,d=i.writePaths,g=i.fixDatesForPaths;L.exports=function(x,C){if(x.length){var _=x[0][0];if(_){var $=_.getAttribute("d"),S=C.gd,O=S._fullLayout.newselection,D=C.plotinfo,N=D.xaxis,M=D.yaxis,k=C.isActiveSelection,R=C.dragmode,F=(S.layout||{}).selections||[];if(!h(R)&&k!==void 0){var H=S._fullLayout._activeSelectionIndex;if(H=0){Dt._fullLayout._deactivateShape(Dt);return}if(!Tt){var fr=un.clickmode;K.done(Sn).then(function(){if(K.clear(Sn),Bn===2){for(Ot.remove(),Pt=0;Pt-1&&Ne(Hr,Dt,vt.xaxes,vt.yaxes,vt.subplot,vt,Ot),fr==="event"&&Wn(Dt,void 0);u.click(Dt,Hr,zt.id)}).catch(P.error)}},vt.doneFn=function(){Qt.remove(),K.done(Sn).then(function(){K.clear(Sn),!Un&&kt&&vt.selectionDefs&&(kt.subtract=Cr,vt.selectionDefs.push(kt),vt.mergedPolygons.length=0,[].push.apply(vt.mergedPolygons,St)),(Un||Tt)&&pe(vt,Un),vt.doneFnCompleted&&vt.doneFnCompleted(bn),Et&&Wn(Dt,Ut)}).catch(P.error)}}function Ne(lt,ft,wt,vt,$t,Ze,it){var ht=ft._hoverdata,pt=ft._fullLayout,Tt=pt.clickmode,Et=Tt.indexOf("event")>-1,fn=[],tn,Zt,Dt,un,Un,tr,Er,zt,pr,Gn;if(Me(ht)){we(lt,ft,Ze),tn=Te(ft,wt,vt,$t);var Ir=Re(ht,tn),Tr=Ir.pointNumbers.length>0;if(Tr?We(tn,Ir):ot(tn)&&(Er=ze(Ir))){for(it&&it.remove(),Gn=0;Gn=0}function ue(lt){return lt._fullLayout._activeSelectionIndex>=0}function pe(lt,ft){var wt=lt.dragmode,vt=lt.plotinfo,$t=lt.gd;se($t)&&$t._fullLayout._deactivateShape($t),ue($t)&&$t._fullLayout._deactivateSelection($t);var Ze=$t._fullLayout,it=Ze._zoomlayer,ht=C(wt),pt=$(wt);if(ht||pt){var Tt=it.selectAll(".select-outline-"+vt.id);if(Tt&&$t._fullLayout._outlining){var Et;ht&&(Et=F(Tt,lt)),Et&&l.call("_guiRelayout",$t,{shapes:Et});var fn;pt&&!$e(lt)&&(fn=H(Tt,lt)),fn&&($t._fullLayout._noEmitSelectedAtStart=!0,l.call("_guiRelayout",$t,{selections:fn}).then(function(){ft&&j($t)})),$t._fullLayout._outlining=!1}}vt.selection={},vt.selection.selectionDefs=lt.selectionDefs=[],vt.selection.mergedPolygons=lt.mergedPolygons=[]}function le(lt){return lt._id}function Te(lt,ft,wt,vt){if(!lt.calcdata)return[];var $t=[],Ze=ft.map(le),it=wt.map(le),ht,pt,Tt;for(Tt=0;Tt0,Ze=$t?vt[0]:wt;return ft.selectedpoints?ft.selectedpoints.indexOf(Ze)>-1:!1}function We(lt,ft){var wt=[],vt,$t,Ze,it;for(it=0;it0&&wt.push(vt);if(wt.length===1&&(Ze=wt[0]===ft.searchInfo,Ze&&($t=ft.searchInfo.cd[0].trace,$t.selectedpoints.length===ft.pointNumbers.length))){for(it=0;it1||(ft+=vt.selectedpoints.length,ft>1)))return!1;return ft===1}function dt(lt,ft,wt){var vt;for(vt=0;vt-1&&ft;if(!it&&ft){var Bn=Ft(lt,!0);if(Bn.length){var Hr=Bn[0].xref,fr=Bn[0].yref;if(Hr&&fr){var Vr=sn(Bn),ar=an([ae(lt,Hr,"x"),ae(lt,fr,"y")]);ar(bn,Vr)}}lt._fullLayout._noEmitSelectedAtStart?lt._fullLayout._noEmitSelectedAtStart=!1:Qn&&Wn(lt,bn),tn._reselect=!1}if(!it&&tn._deselect){var cr=tn._deselect;ht=cr.xref,pt=cr.yref,Gt(ht,pt,Et)||Yt(lt,ht,pt,vt),Qn&&(bn.points.length?Wn(lt,bn):wn(lt)),tn._deselect=!1}return{eventData:bn,selectionTesters:wt}}function Ct(lt){var ft=lt.calcdata;if(ft)for(var wt=0;wt0?M+O:O;return{ppad:O,ppadplus:D?R:F,ppadminus:D?F:R}}else return{ppad:O}}function g(v,x,C,_,$){var S=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;if(x!==void 0)return[S(x),S(C)];if(_){var O=1/0,D=-1/0,N=_.match(l.segmentRE),M,k,R,F,H;for(v.type==="date"&&(S=c.decodeDate(S)),M=0;MD&&(D=H)));if(D>=O)return[O,D]}}},1459:function(L){L.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},4726:function(L,A,s){var m=s(1828),h=s(9298),l=s(5501),c=s(9827),i=s(477);L.exports=function(v,x){l(v,x,{name:"shapes",handleItemDefaults:d})};function u(g,v){return g?"bottom":v.indexOf("top")!==-1?"top":v.indexOf("bottom")!==-1?"bottom":"middle"}function d(g,v,x){function C(Oe,Fe){return m.coerce(g,v,c,Oe,Fe)}v._isShape=!0;var _=C("visible");if(_){var $=C("showlegend");$&&(C("legend"),C("legendwidth"),C("legendgroup"),C("legendgrouptitle.text"),m.coerceFont(C,"legendgrouptitle.font"),C("legendrank"));var S=C("path"),O=S?"path":"rect",D=C("type",O),N=D!=="path";N&&delete v.path,C("editable"),C("layer"),C("opacity"),C("fillcolor"),C("fillrule");var M=C("line.width");M&&(C("line.color"),C("line.dash"));for(var k=C("xsizemode"),R=C("ysizemode"),F=["x","y"],H=0;H<2;H++){var j=F[H],P=j+"anchor",ee=j==="x"?k:R,J={_fullLayout:x},K,ae,Q,he=h.coerceRef(g,v,J,j,void 0,"paper"),ge=h.getRefType(he);if(ge==="range"?(K=h.getFromId(J,he),K._shapeIndices.push(v._index),Q=i.rangeToShapePosition(K),ae=i.shapePositionToRange(K)):ae=Q=m.identity,N){var Se=.25,ce=.75,ne=j+"0",fe=j+"1",X=g[ne],ye=g[fe];g[ne]=ae(g[ne],!0),g[fe]=ae(g[fe],!0),ee==="pixel"?(C(ne,0),C(fe,10)):(h.coercePosition(v,J,C,he,ne,Se),h.coercePosition(v,J,C,he,fe,ce)),v[ne]=Q(v[ne]),v[fe]=Q(v[fe]),g[ne]=X,g[fe]=ye}if(ee==="pixel"){var Ce=g[P];g[P]=ae(g[P],!0),h.coercePosition(v,J,C,he,P,.25),v[P]=Q(v[P]),g[P]=Ce}}N&&m.noneOrAll(g,v,["x0","x1","y0","y1"]);var $e=D==="line",ke,Ne;if(N&&(ke=C("label.texttemplate")),ke||(Ne=C("label.text")),Ne||ke){C("label.textangle");var Ve=C("label.textposition",$e?"middle":"middle center");C("label.xanchor"),C("label.yanchor",u($e,Ve)),C("label.padding"),m.coerceFont(C,"label.font",x.font)}}}},8100:function(L,A,s){var m=s(1828),h=s(9298),l=s(3893),c=s(1424),i=s(165).readPaths,u=s(477),d=u.getPathString,g=s(7281),v=s(8783).FROM_TL;L.exports=function($,S,O,D){if(D.selectAll(".shape-label").remove(),!!(O.label.text||O.label.texttemplate)){var N;if(O.label.texttemplate){var M={};if(O.type!=="path"){var k=h.getFromId($,O.xref),R=h.getFromId($,O.yref);for(var F in g){var H=g[F](O,k,R);H!==void 0&&(M[F]=H)}}N=m.texttemplateStringForShapes(O.label.texttemplate,{},$._fullLayout._d3locale,M)}else N=O.label.text;var j={"data-index":S},P=O.label.font,ee={"data-notex":1},J=D.append("g").attr(j).classed("shape-label",!0),K=J.append("text").attr(ee).classed("shape-label-text",!0).text(N),ae,Q,he,ge;if(O.path){var Se=d($,O),ce=i(Se,$);ae=1/0,he=1/0,Q=-1/0,ge=-1/0;for(var ne=0;ne=_?D=$-O:D=O-$,-180/Math.PI*Math.atan2(D,N)}function C(_,$,S,O,D,N,M){var k=D.label.textposition,R=D.label.textangle,F=D.label.padding,H=D.type,j=Math.PI/180*N,P=Math.sin(j),ee=Math.cos(j),J=D.label.xanchor,K=D.label.yanchor,ae,Q,he,ge;if(H==="line"){k==="start"?(ae=_,Q=$):k==="end"?(ae=S,Q=O):(ae=(_+S)/2,Q=($+O)/2),J==="auto"&&(k==="start"?R==="auto"?S>_?J="left":S<_?J="right":J="center":S>_?J="right":S<_?J="left":J="center":k==="end"?R==="auto"?S>_?J="right":S<_?J="left":J="center":S>_?J="left":S<_?J="right":J="center":J="center");var Se={left:1,center:0,right:-1},ce={bottom:-1,middle:0,top:1};if(R==="auto"){var ne=ce[K];he=-F*P*ne,ge=F*ee*ne}else{var fe=Se[J],X=ce[K];he=F*fe,ge=F*X}ae=ae+he,Q=Q+ge}else he=F+3,k.indexOf("right")!==-1?(ae=Math.max(_,S)-he,J==="auto"&&(J="right")):k.indexOf("left")!==-1?(ae=Math.min(_,S)+he,J==="auto"&&(J="left")):(ae=(_+S)/2,J==="auto"&&(J="center")),k.indexOf("top")!==-1?Q=Math.min($,O):k.indexOf("bottom")!==-1?Q=Math.max($,O):Q=($+O)/2,ge=F,K==="bottom"?Q=Q-ge:K==="top"&&(Q=Q+ge);var ye=v[K],Ce=D.label.font.size,$e=M.height,ke=($e*ye-Ce)*P,Ne=-($e*ye-Ce)*ee;return{textx:ae+ke,texty:Q+Ne,xanchor:J}}},2359:function(L,A,s){var m=s(1828),h=m.strTranslate,l=s(8569),c=s(4505),i=c.drawMode,u=c.selectMode,d=s(3972),g=s(7901),v=s(9995),x=v.i000,C=v.i090,_=v.i180,$=v.i270,S=s(1873),O=S.clearOutlineControllers,D=s(165),N=D.pointsOnRectangle,M=D.pointsOnEllipse,k=D.writePaths,R=s(551).newShapes,F=s(551).createShapeObj,H=s(5855),j=s(8100);L.exports=function K(ae,Q,he,ge){ge||(ge=0);var Se=he.gd;function ce(){K(ae,Q,he,ge++),(M(ae[0])||he.hasText)&&ne({redrawing:!0})}function ne(Xe){var qe={};he.isActiveShape!==void 0&&(he.isActiveShape=!1,qe=R(Q,he)),he.isActiveSelection!==void 0&&(he.isActiveSelection=!1,qe=H(Q,he),Se._fullLayout._reselect=!0),Object.keys(qe).length&&d.call((Xe||{}).redrawing?"relayout":"_guiRelayout",Se,qe)}var fe=Se._fullLayout,X=fe._zoomlayer,ye=he.dragmode,Ce=i(ye),$e=u(ye);(Ce||$e)&&(Se._fullLayout._outlining=!0),O(Se),Q.attr("d",k(ae));var ke,Ne,Ve,Oe,Fe;if(!ge&&(he.isActiveShape||he.isActiveSelection)){Fe=P([],ae);var ie=X.append("g").attr("class","outline-controllers");Me(ie),Ge()}if(Ce&&he.hasText){var we=X.select(".label-temp"),se=F(Q,he,he.dragmode);j(Se,"label-temp",se,we)}function ue(Xe){Ve=+Xe.srcElement.getAttribute("data-i"),Oe=+Xe.srcElement.getAttribute("data-j"),ke[Ve][Oe].moveFn=pe}function pe(Xe,qe){if(ae.length){var gt=Fe[Ve][Oe][1],ut=Fe[Ve][Oe][2],tt=ae[Ve],Ct=tt.length;if(N(tt)){var Gt=Xe,Yt=qe;if(he.isActiveSelection){var Nt=ee(tt,Oe);Nt[1]===tt[Oe][1]?Yt=0:Gt=0}for(var Ft=0;Ft1&&!(Xe.length===2&&Xe[1][0]==="Z")&&(Oe===0&&(Xe[0][0]="M"),ae[Ve]=Xe,ce(),ne())}}function de(Xe,qe){if(Xe===2){Ve=+qe.srcElement.getAttribute("data-i"),Oe=+qe.srcElement.getAttribute("data-j");var gt=ae[Ve];!N(gt)&&!M(gt)&&Te()}}function Me(Xe){ke=[];for(var qe=0;qece&&wt>ne&&!wn.shiftKey?_.getCursor(vt/ft,1-$t/wt):"move";$(ae,Ze),Gt=Ze.split("-")[0]}}function pn(wn){M(K)||(fe&&(Fe=Xe(Q.xanchor)),X&&(ie=qe(Q.yanchor)),Q.type==="path"?Re=Q.path:(ke=fe?Q.x0:Xe(Q.x0),Ne=X?Q.y0:qe(Q.y0),Ve=fe?Q.x1:Xe(Q.x1),Oe=X?Q.y1:qe(Q.y1)),keOe?(we=Ne,le="y0",se=Oe,Te="y1"):(we=Oe,le="y1",se=Ne,Te="y0"),Ft(wn),Cn(ge,Q),Wn(ae,Q,K),Ct.moveFn=Gt==="move"?Zn:an,Ct.altKey=wn.altKey)}function _n(){M(K)||($(ae),jn(ge),F(ae,K,Q),h.call("_guiRelayout",K,Se.getUpdateObj()))}function sn(){M(K)||jn(ge)}function Zn(wn,lt){if(Q.type==="path"){var ft=function($t){return $t},wt=ft,vt=ft;fe?$e("xanchor",Q.xanchor=gt(Fe+wn)):(wt=function(Ze){return gt(Xe(Ze)+wn)},We&&We.type==="date"&&(wt=O.encodeDate(wt))),X?$e("yanchor",Q.yanchor=ut(ie+lt)):(vt=function(Ze){return ut(qe(Ze)+lt)},dt&&dt.type==="date"&&(vt=O.encodeDate(vt))),$e("path",Q.path=j(Re,wt,vt))}else fe?$e("xanchor",Q.xanchor=gt(Fe+wn)):($e("x0",Q.x0=gt(ke+wn)),$e("x1",Q.x1=gt(Ve+wn))),X?$e("yanchor",Q.yanchor=ut(ie+lt)):($e("y0",Q.y0=ut(Ne+lt)),$e("y1",Q.y1=ut(Oe+lt)));ae.attr("d",D(K,Q)),Cn(ge,Q),d(K,he,Q,ze)}function an(wn,lt){if(Ce){var ft=function(tr){return tr},wt=ft,vt=ft;fe?$e("xanchor",Q.xanchor=gt(Fe+wn)):(wt=function(Er){return gt(Xe(Er)+wn)},We&&We.type==="date"&&(wt=O.encodeDate(wt))),X?$e("yanchor",Q.yanchor=ut(ie+lt)):(vt=function(Er){return ut(qe(Er)+lt)},dt&&dt.type==="date"&&(vt=O.encodeDate(vt))),$e("path",Q.path=j(Re,wt,vt))}else if(ye){if(Gt==="resize-over-start-point"){var $t=ke+wn,Ze=X?Ne-lt:Ne+lt;$e("x0",Q.x0=fe?$t:gt($t)),$e("y0",Q.y0=X?Ze:ut(Ze))}else if(Gt==="resize-over-end-point"){var it=Ve+wn,ht=X?Oe-lt:Oe+lt;$e("x1",Q.x1=fe?it:gt(it)),$e("y1",Q.y1=X?ht:ut(ht))}}else{var pt=function(tr){return Gt.indexOf(tr)!==-1},Tt=pt("n"),Et=pt("s"),fn=pt("w"),tn=pt("e"),Zt=Tt?we+lt:we,Dt=Et?se+lt:se,un=fn?ue+wn:ue,Un=tn?pe+wn:pe;X&&(Tt&&(Zt=we-lt),Et&&(Dt=se-lt)),(!X&&Dt-Zt>ne||X&&Zt-Dt>ne)&&($e(le,Q[le]=X?Zt:ut(Zt)),$e(Te,Q[Te]=X?Dt:ut(Dt))),Un-un>ce&&($e(de,Q[de]=fe?un:gt(un)),$e(Me,Q[Me]=fe?Un:gt(Un)))}ae.attr("d",D(K,Q)),Cn(ge,Q),d(K,he,Q,ze)}function Cn(wn,lt){(fe||X)&&ft();function ft(){var wt=lt.type!=="path",vt=wn.selectAll(".visual-cue").data([0]),$t=1;vt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":$t}).classed("visual-cue",!0);var Ze=Xe(fe?lt.xanchor:l.midRange(wt?[lt.x0,lt.x1]:O.extractPathCoords(lt.path,S.paramIsX))),it=qe(X?lt.yanchor:l.midRange(wt?[lt.y0,lt.y1]:O.extractPathCoords(lt.path,S.paramIsY)));if(Ze=O.roundPositionForSharpStrokeRendering(Ze,$t),it=O.roundPositionForSharpStrokeRendering(it,$t),fe&&X){var ht="M"+(Ze-1-$t)+","+(it-1-$t)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";vt.attr("d",ht)}else if(fe){var pt="M"+(Ze-1-$t)+","+(it-9-$t)+"v18 h2 v-18 Z";vt.attr("d",pt)}else{var Tt="M"+(Ze-9-$t)+","+(it-1-$t)+"h18 v2 h-18 Z";vt.attr("d",Tt)}}}function jn(wn){wn.selectAll(".visual-cue").remove()}function Wn(wn,lt,ft){var wt=lt.xref,vt=lt.yref,$t=c.getFromId(ft,wt),Ze=c.getFromId(ft,vt),it="";wt!=="paper"&&!$t.autorange&&(it+=wt),vt!=="paper"&&!Ze.autorange&&(it+=vt),x.setClipUrl(wn,it?"clip"+ft._fullLayout._uid+it:null,ft)}}function j(K,ae,Q){return K.replace(S.segmentRE,function(he){var ge=0,Se=he.charAt(0),ce=S.paramIsX[Se],ne=S.paramIsY[Se],fe=S.numParams[Se],X=he.substr(1).replace(S.paramRE,function(ye){return ge>=fe||(ce[ge]?ye=ae(ye):ne[ge]&&(ye=Q(ye)),ge++),ye});return Se+X})}function P(K,ae){if(k(K)){var Q=ae.node(),he=+Q.getAttribute("data-index");if(he>=0){if(he===K._fullLayout._activeShapeIndex){ee(K);return}K._fullLayout._activeShapeIndex=he,K._fullLayout._deactivateShape=ee,N(K)}}}function ee(K){if(k(K)){var ae=K._fullLayout._activeShapeIndex;ae>=0&&(g(K),delete K._fullLayout._activeShapeIndex,N(K))}}function J(K){if(k(K)){g(K);var ae=K._fullLayout._activeShapeIndex,Q=(K.layout||{}).shapes||[];if(ae0&&RM&&(R="X"),R});return S>M&&(k=k.replace(/[\s,]*X.*/,""),h.log("Ignoring extra params in segment "+$)),O+k})}},9853:function(L,A,s){var m=s(4031);L.exports={moduleType:"component",name:"shapes",layoutAttributes:s(9827),supplyLayoutDefaults:s(4726),supplyDrawNewShapeDefaults:s(5547),includeBasePlot:s(6325)("shapes"),calcAutorange:s(5627),draw:m.draw,drawOne:m.drawOne}},7281:function(L){function A($,S){return S?S.d2l($):$}function s($,S){return S?S.l2d($):$}function m($){return $.x0}function h($){return $.x1}function l($){return $.y0}function c($){return $.y1}function i($,S){return A($.x1,S)-A($.x0,S)}function u($,S,O){return A($.y1,O)-A($.y0,O)}function d($,S){return Math.abs(i($,S))}function g($,S,O){return Math.abs(u($,S,O))}function v($,S,O){return $.type!=="line"?void 0:Math.sqrt(Math.pow(i($,S),2)+Math.pow(u($,S,O),2))}function x($,S){return s((A($.x1,S)+A($.x0,S))/2,S)}function C($,S,O){return s((A($.y1,O)+A($.y0,O))/2,O)}function _($,S,O){return $.type!=="line"?void 0:u($,S,O)/i($,S)}L.exports={x0:m,x1:h,y0:l,y1:c,slope:_,dx:i,dy:u,width:d,height:g,length:v,xcenter:x,ycenter:C}},5067:function(L,A,s){var m=s(1940),h=s(5025),l=s(1426).extendDeepAll,c=s(962).overrideAll,i=s(5594),u=s(4467).templatedArray,d=s(8292),g=u("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});L.exports=c(u("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:g,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:l(h({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:i.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:m({})},font:m({}),activebgcolor:{valType:"color",dflt:d.gripBgActiveColor},bgcolor:{valType:"color",dflt:d.railBgColor},bordercolor:{valType:"color",dflt:d.railBorderColor},borderwidth:{valType:"number",min:0,dflt:d.railBorderWidth},ticklen:{valType:"number",min:0,dflt:d.tickLength},tickcolor:{valType:"color",dflt:d.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:d.minorTickLength}}),"arraydraw","from-root")},8292:function(L){L.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},2343:function(L,A,s){var m=s(1828),h=s(5501),l=s(5067),c=s(8292),i=c.name,u=l.steps;L.exports=function(x,C){h(x,C,{name:i,handleItemDefaults:d})};function d(v,x,C){function _(R,F){return m.coerce(v,x,l,R,F)}for(var $=h(v,x,{name:"steps",handleItemDefaults:g}),S=0,O=0;O<$.length;O++)$[O].visible&&S++;var D;if(S<2?D=x.visible=!1:D=_("visible"),!!D){x._stepCount=S;var N=x._visibleSteps=m.filterVisible($),M=_("active");($[M]||{}).visible||(x.active=N[0]._index),_("x"),_("y"),m.noneOrAll(v,x,["x","y"]),_("xanchor"),_("yanchor"),_("len"),_("lenmode"),_("pad.t"),_("pad.r"),_("pad.b"),_("pad.l"),m.coerceFont(_,"font",C.font);var k=_("currentvalue.visible");k&&(_("currentvalue.xanchor"),_("currentvalue.prefix"),_("currentvalue.suffix"),_("currentvalue.offset"),m.coerceFont(_,"currentvalue.font",x.font)),_("transition.duration"),_("transition.easing"),_("bgcolor"),_("activebgcolor"),_("bordercolor"),_("borderwidth"),_("ticklen"),_("tickwidth"),_("tickcolor"),_("minorticklen")}}function g(v,x){function C(S,O){return m.coerce(v,x,u,S,O)}var _;if(v.method!=="skip"&&!Array.isArray(v.args)?_=x.visible=!1:_=C("visible"),_){C("method"),C("args");var $=C("label","step-"+x._index);C("value",$),C("execute")}}},4504:function(L,A,s){var m=s(9898),h=s(4875),l=s(7901),c=s(1424),i=s(1828),u=i.strTranslate,d=s(3893),g=s(4467).arrayEditor,v=s(8292),x=s(8783),C=x.LINE_SPACING,_=x.FROM_TL,$=x.FROM_BR;L.exports=function(ne){var fe=ne._context.staticPlot,X=ne._fullLayout,ye=O(X,ne),Ce=X._infolayer.selectAll("g."+v.containerClassName).data(ye.length>0?[0]:[]);Ce.enter().append("g").classed(v.containerClassName,!0).style("cursor",fe?null:"ew-resize");function $e(Oe){Oe._commandObserver&&(Oe._commandObserver.remove(),delete Oe._commandObserver),h.autoMargin(ne,S(Oe))}if(Ce.exit().each(function(){m.select(this).selectAll("g."+v.groupClassName).each($e)}).remove(),ye.length!==0){var ke=Ce.selectAll("g."+v.groupClassName).data(ye,D);ke.enter().append("g").classed(v.groupClassName,!0),ke.exit().each($e).remove();for(var Ne=0;Ne0&&(ke=ke.transition().duration(ne.transition.duration).ease(ne.transition.easing)),ke.attr("transform",u($e-v.gripWidth*.5,ne._dims.currentValueTotalHeight))}}function Q(ce,ne){var fe=ce._dims;return fe.inputAreaStart+v.stepInset+(fe.inputAreaLength-2*v.stepInset)*Math.min(1,Math.max(0,ne))}function he(ce,ne){var fe=ce._dims;return Math.min(1,Math.max(0,(ne-v.stepInset-fe.inputAreaStart)/(fe.inputAreaLength-2*v.stepInset-2*fe.inputAreaStart)))}function ge(ce,ne,fe){var X=fe._dims,ye=i.ensureSingle(ce,"rect",v.railTouchRectClass,function(Ce){Ce.call(ee,ne,ce,fe).style("pointer-events","all")});ye.attr({width:X.inputAreaLength,height:Math.max(X.inputAreaWidth,v.tickOffset+fe.ticklen+X.labelHeight)}).call(l.fill,fe.bgcolor).attr("opacity",0),c.setTranslate(ye,0,X.currentValueTotalHeight)}function Se(ce,ne){var fe=ne._dims,X=fe.inputAreaLength-v.railInset*2,ye=i.ensureSingle(ce,"rect",v.railRectClass);ye.attr({width:X,height:v.railWidth,rx:v.railRadius,ry:v.railRadius,"shape-rendering":"crispEdges"}).call(l.stroke,ne.bordercolor).call(l.fill,ne.bgcolor).style("stroke-width",ne.borderwidth+"px"),c.setTranslate(ye,v.railInset,(fe.inputAreaWidth-v.railWidth)*.5+fe.currentValueTotalHeight)}},3243:function(L,A,s){var m=s(8292);L.exports={moduleType:"component",name:m.name,layoutAttributes:s(5067),supplyLayoutDefaults:s(2343),draw:s(4504)}},2998:function(L,A,s){var m=s(9898),h=s(2770),l=s(4875),c=s(3972),i=s(1828),u=i.strTranslate,d=s(1424),g=s(7901),v=s(3893),x=s(7822),C=s(8783).OPPOSITE_SIDE,_=/ [XY][0-9]* /;function $(S,O,D){var N=D.propContainer,M=D.propName,k=D.placeholder,R=D.traceIndex,F=D.avoid||{},H=D.attributes,j=D.transform,P=D.containerGroup,ee=S._fullLayout,J=1,K=!1,ae=N.title,Q=(ae&&ae.text?ae.text:"").trim(),he=ae&&ae.font?ae.font:{},ge=he.family,Se=he.size,ce=he.color,ne;M==="title.text"?ne="titleText":M.indexOf("axis")!==-1?ne="axisTitleText":M.indexOf("colorbar"!==-1)&&(ne="colorbarTitleText");var fe=S._context.edits[ne];Q===""?J=0:Q.replace(_," % ")===k.replace(_," % ")&&(J=.2,K=!0,fe||(Q="")),D._meta?Q=i.templateString(Q,D._meta):ee._meta&&(Q=i.templateString(Q,ee._meta));var X=Q||fe,ye;P||(P=i.ensureSingle(ee._infolayer,"g","g-"+O),ye=ee._hColorbarMoveTitle);var Ce=P.selectAll("text").data(X?[0]:[]);if(Ce.enter().append("text"),Ce.text(Q).attr("class",O),Ce.exit().remove(),!X)return P;function $e(Oe){i.syncOrAsync([ke,Ne],Oe)}function ke(Oe){var Fe;return!j&&ye&&(j={}),j?(Fe="",j.rotate&&(Fe+="rotate("+[j.rotate,H.x,H.y]+")"),(j.offset||ye)&&(Fe+=u(0,(j.offset||0)-(ye||0)))):Fe=null,Oe.attr("transform",Fe),Oe.style({"font-family":ge,"font-size":m.round(Se,2)+"px",fill:g.rgb(ce),opacity:J*g.opacity(ce),"font-weight":l.fontWeight}).attr(H).call(v.convertToTspans,S),l.previousPromises(S)}function Ne(Oe){var Fe=m.select(Oe.node().parentNode);if(F&&F.selection&&F.side&&Q){Fe.attr("transform",null);var ie=C[F.side],we=F.side==="left"||F.side==="top"?-1:1,se=h(F.pad)?F.pad:2,ue=d.bBox(Fe.node()),pe={t:0,b:0,l:0,r:0},le=S._fullLayout._reservedMargin;for(var Te in le)for(var de in le[Te]){var Me=le[Te][de];pe[de]=Math.max(pe[de],Me)}var Re={left:pe.l,top:pe.t,right:ee.width-pe.r,bottom:ee.height-pe.b},ze=F.maxShift||we*(Re[F.side]-ue[F.side]),We=0;if(ze<0)We=ze;else{var ot=F.offsetLeft||0,dt=F.offsetTop||0;ue.left-=ot,ue.right-=ot,ue.top-=dt,ue.bottom-=dt,F.selection.each(function(){var Xe=d.bBox(this);i.bBoxIntersect(ue,Xe,se)&&(We=Math.max(We,we*(Xe[F.side]-ue[ie])+se))}),We=Math.min(ze,We),N._titleScoot=Math.abs(We)}if(We>0||ze<0){var Ge={left:[-We,0],right:[We,0],top:[0,-We],bottom:[0,We]}[F.side];Fe.attr("transform",u(Ge[0],Ge[1]))}}}Ce.call($e);function Ve(){J=0,K=!0,Ce.text(k).on("mouseover.opacity",function(){m.select(this).transition().duration(x.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){m.select(this).transition().duration(x.HIDE_PLACEHOLDER).style("opacity",0)})}return fe&&(Q?Ce.on(".opacity",null):Ve(),Ce.call(v.makeEditable,{gd:S}).on("edit",function(Oe){R!==void 0?c.call("_guiRestyle",S,M,Oe,R):c.call("_guiRelayout",S,M,Oe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call($e)}).on("input",function(Oe){this.text(Oe||" ").call(v.positionText,H.x,H.y)})),Ce.classed("js-placeholder",K),P}L.exports={draw:$}},7163:function(L,A,s){var m=s(1940),h=s(2399),l=s(1426).extendFlat,c=s(962).overrideAll,i=s(5025),u=s(4467).templatedArray,d=u("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});L.exports=c(u("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:d,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:l(i({editType:"arraydraw"}),{}),font:m({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:h.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},5909:function(L){L.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},4897:function(L,A,s){var m=s(1828),h=s(5501),l=s(7163),c=s(5909),i=c.name,u=l.buttons;L.exports=function(x,C){var _={name:i,handleItemDefaults:d};h(x,C,_)};function d(v,x,C){function _(O,D){return m.coerce(v,x,l,O,D)}var $=h(v,x,{name:"buttons",handleItemDefaults:g}),S=_("visible",$.length>0);S&&(_("active"),_("direction"),_("type"),_("showactive"),_("x"),_("y"),m.noneOrAll(v,x,["x","y"]),_("xanchor"),_("yanchor"),_("pad.t"),_("pad.r"),_("pad.b"),_("pad.l"),m.coerceFont(_,"font",C.font),_("bgcolor",C.paper_bgcolor),_("bordercolor"),_("borderwidth"))}function g(v,x){function C($,S){return m.coerce(v,x,u,$,S)}var _=C("visible",v.method==="skip"||Array.isArray(v.args));_&&(C("method"),C("args"),C("args2"),C("label"),C("execute"))}},3689:function(L,A,s){var m=s(9898),h=s(4875),l=s(7901),c=s(1424),i=s(1828),u=s(3893),d=s(4467).arrayEditor,g=s(8783).LINE_SPACING,v=s(5909),x=s(5849);L.exports=function(he){var ge=he._fullLayout,Se=i.filterVisible(ge[v.name]);function ce(Ne){h.autoMargin(he,J(Ne))}var ne=ge._menulayer.selectAll("g."+v.containerClassName).data(Se.length>0?[0]:[]);if(ne.enter().append("g").classed(v.containerClassName,!0).style("cursor","pointer"),ne.exit().each(function(){m.select(this).selectAll("g."+v.headerGroupClassName).each(ce)}).remove(),Se.length!==0){var fe=ne.selectAll("g."+v.headerGroupClassName).data(Se,C);fe.enter().append("g").classed(v.headerGroupClassName,!0);for(var X=i.ensureSingle(ne,"g",v.dropdownButtonGroupClassName,function(Ne){Ne.style("pointer-events","all")}),ye=0;yeH,he=i.barLength+2*i.barPad,ge=i.barWidth+2*i.barPad,Se=$,ce=O+D;ce+ge>_&&(ce=_-ge);var ne=this.container.selectAll("rect.scrollbar-horizontal").data(Q?[0]:[]);ne.exit().on(".drag",null).remove(),ne.enter().append("rect").classed("scrollbar-horizontal",!0).call(h.fill,i.barColor),Q?(this.hbar=ne.attr({rx:i.barRadius,ry:i.barRadius,x:Se,y:ce,width:he,height:ge}),this._hbarXMin=Se+he/2,this._hbarTranslateMax=H-he):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var fe=D>j,X=i.barWidth+2*i.barPad,ye=i.barLength+2*i.barPad,Ce=$+S,$e=O;Ce+X>C&&(Ce=C-X);var ke=this.container.selectAll("rect.scrollbar-vertical").data(fe?[0]:[]);ke.exit().on(".drag",null).remove(),ke.enter().append("rect").classed("scrollbar-vertical",!0).call(h.fill,i.barColor),fe?(this.vbar=ke.attr({rx:i.barRadius,ry:i.barRadius,x:Ce,y:$e,width:X,height:ye}),this._vbarYMin=$e+ye/2,this._vbarTranslateMax=j-ye):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Ne=this.id,Ve=P-.5,Oe=fe?ee+X+.5:ee+.5,Fe=J-.5,ie=Q?K+ge+.5:K+.5,we=x._topdefs.selectAll("#"+Ne).data(Q||fe?[0]:[]);if(we.exit().remove(),we.enter().append("clipPath").attr("id",Ne).append("rect"),Q||fe?(this._clipRect=we.select("rect").attr({x:Math.floor(Ve),y:Math.floor(Fe),width:Math.ceil(Oe)-Math.floor(Ve),height:Math.ceil(ie)-Math.floor(Fe)}),this.container.call(l.setClipUrl,Ne,this.gd),this.bg.attr({x:$,y:O,width:S,height:D})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(l.setClipUrl,null),delete this._clipRect),Q||fe){var se=m.behavior.drag().on("dragstart",function(){m.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(se);var ue=m.behavior.drag().on("dragstart",function(){m.event.sourceEvent.preventDefault(),m.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));Q&&this.hbar.on(".drag",null).call(ue),fe&&this.vbar.on(".drag",null).call(ue)}this.setTranslate(g,v)},i.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(l.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},i.prototype._onBoxDrag=function(){var d=this.translateX,g=this.translateY;this.hbar&&(d-=m.event.dx),this.vbar&&(g-=m.event.dy),this.setTranslate(d,g)},i.prototype._onBoxWheel=function(){var d=this.translateX,g=this.translateY;this.hbar&&(d+=m.event.deltaY),this.vbar&&(g+=m.event.deltaY),this.setTranslate(d,g)},i.prototype._onBarDrag=function(){var d=this.translateX,g=this.translateY;if(this.hbar){var v=d+this._hbarXMin,x=v+this._hbarTranslateMax,C=c.constrain(m.event.x,v,x),_=(C-v)/(x-v),$=this.position.w-this._box.w;d=_*$}if(this.vbar){var S=g+this._vbarYMin,O=S+this._vbarTranslateMax,D=c.constrain(m.event.y,S,O),N=(D-S)/(O-S),M=this.position.h-this._box.h;g=N*M}this.setTranslate(d,g)},i.prototype.setTranslate=function(d,g){var v=this.position.w-this._box.w,x=this.position.h-this._box.h;if(d=c.constrain(d||0,0,v),g=c.constrain(g||0,0,x),this.translateX=d,this.translateY=g,this.container.call(l.setTranslate,this._box.l-this.position.l-d,this._box.t-this.position.t-g),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+d-.5),y:Math.floor(this.position.t+g-.5)}),this.hbar){var C=d/v;this.hbar.call(l.setTranslate,d+C*this._hbarTranslateMax,g)}if(this.vbar){var _=g/x;this.vbar.call(l.setTranslate,d,g+_*this._vbarTranslateMax)}}},8783:function(L){L.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},4695:function(L){L.exports={axisRefDescription:function(A,s,m){return["If set to a",A,"axis id (e.g. *"+A+"* or","*"+A+"2*), the `"+A+"` position refers to a",A,"coordinate. If set to *paper*, the `"+A+"`","position refers to the distance from the",s,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",s,"("+m+"). If set to a",A,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",s,"of the domain of that axis: e.g.,","*"+A+"2 domain* refers to the domain of the second",A," axis and a",A,"position of 0.5 refers to the","point between the",s,"and the",m,"of the domain of the","second",A,"axis."].join(" ")}}},1562:function(L){L.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},4808:function(L){L.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},7822:function(L){L.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},606:function(L){L.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},7922:function(L,A){A.xmlns="http://www.w3.org/2000/xmlns/",A.svg="http://www.w3.org/2000/svg",A.xlink="http://www.w3.org/1999/xlink",A.svgAttrs={xmlns:A.svg,"xmlns:xlink":A.xlink}},8729:function(L,A,s){A.version=s(1506).version,s(7417),s(8847);for(var m=s(3972),h=A.register=m.register,l=s(641),c=Object.keys(l),i=0;i",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},9863:function(L,A){A.isLeftAnchor=function(m){return m.xanchor==="left"||m.xanchor==="auto"&&m.x<=.3333333333333333},A.isCenterAnchor=function(m){return m.xanchor==="center"||m.xanchor==="auto"&&m.x>.3333333333333333&&m.x<.6666666666666666},A.isRightAnchor=function(m){return m.xanchor==="right"||m.xanchor==="auto"&&m.x>=.6666666666666666},A.isTopAnchor=function(m){return m.yanchor==="top"||m.yanchor==="auto"&&m.y>=.6666666666666666},A.isMiddleAnchor=function(m){return m.yanchor==="middle"||m.yanchor==="auto"&&m.y>.3333333333333333&&m.y<.6666666666666666},A.isBottomAnchor=function(m){return m.yanchor==="bottom"||m.yanchor==="auto"&&m.y<=.3333333333333333}},6348:function(L,A,s){var m=s(4872),h=m.mod,l=m.modHalf,c=Math.PI,i=2*c;function u(N){return N/180*c}function d(N){return N/c*180}function g(N){return Math.abs(N[1]-N[0])>i-1e-14}function v(N,M){return l(M-N,i)}function x(N,M){return Math.abs(v(N,M))}function C(N,M){if(g(M))return!0;var k,R;M[0]R&&(R+=i);var F=h(N,i),H=F+i;return F>=k&&F<=R||H>=k&&H<=R}function _(N,M,k,R){if(!C(M,R))return!1;var F,H;return k[0]=F&&N<=H}function $(N,M,k,R,F,H,j){F=F||0,H=H||0;var P=g([k,R]),ee,J,K,ae,Q;P?(ee=0,J=c,K=i):kO.max?$.set(S):$.set(+_)}},integer:{coerceFunction:function(_,$,S,O){_%1||!m(_)||O.min!==void 0&&_O.max?$.set(S):$.set(+_)}},string:{coerceFunction:function(_,$,S,O){if(typeof _!="string"){var D=typeof _=="number";O.strict===!0||!D?$.set(S):$.set(String(_))}else O.noBlank&&!_?$.set(S):$.set(_)}},color:{coerceFunction:function(_,$,S){h(_).isValid()?$.set(_):$.set(S)}},colorlist:{coerceFunction:function(_,$,S){function O(D){return h(D).isValid()}!Array.isArray(_)||!_.length?$.set(S):_.every(O)?$.set(_):$.set(S)}},colorscale:{coerceFunction:function(_,$,S){$.set(c.get(_,S))}},angle:{coerceFunction:function(_,$,S){_==="auto"?$.set("auto"):m(_)?$.set(v(+_,360)):$.set(S)}},subplotid:{coerceFunction:function(_,$,S,O){var D=O.regex||g(S);if(typeof _=="string"&&D.test(_)){$.set(_);return}$.set(S)},validateFunction:function(_,$){var S=$.dflt;return _===S?!0:typeof _!="string"?!1:!!g(S).test(_)}},flaglist:{coerceFunction:function(_,$,S,O){if((O.extras||[]).indexOf(_)!==-1){$.set(_);return}if(typeof _!="string"){$.set(S);return}for(var D=_.split("+"),N=0;N=k&&ce<=R?ce:u}if(typeof ce!="string"&&typeof ce!="number")return u;ce=String(ce);var Ce=N(ne),$e=ce.charAt(0);Ce&&($e==="G"||$e==="g")&&(ce=ce.substr(1),ne="");var ke=Ce&&ne.substr(0,7)==="chinese",Ne=ce.match(ke?O:S);if(!Ne)return u;var Ve=Ne[1],Oe=Ne[3]||"1",Fe=Number(Ne[5]||1),ie=Number(Ne[7]||0),we=Number(Ne[9]||0),se=Number(Ne[11]||0);if(Ce){if(Ve.length===2)return u;Ve=Number(Ve);var ue;try{var pe=_.getComponentMethod("calendars","getCal")(ne);if(ke){var le=Oe.charAt(Oe.length-1)==="i";Oe=parseInt(Oe,10),ue=pe.newDate(Ve,pe.toMonthIndex(Ve,Oe,le),Fe)}else ue=pe.newDate(Ve,Number(Oe),Fe)}catch{return u}return ue?(ue.toJD()-C)*d+ie*g+we*v+se*x:u}Ve.length===2?Ve=(Number(Ve)+2e3-D)%100+D:Ve=Number(Ve),Oe-=1;var Te=new Date(Date.UTC(2e3,Oe,Fe,ie,we));return Te.setUTCFullYear(Ve),Te.getUTCMonth()!==Oe||Te.getUTCDate()!==Fe?u:Te.getTime()+se*x},k=A.MIN_MS=A.dateTime2ms("-9999"),R=A.MAX_MS=A.dateTime2ms("9999-12-31 23:59:59.9999"),A.isDateTime=function(ce,ne){return A.dateTime2ms(ce,ne)!==u};function F(ce,ne){return String(ce+Math.pow(10,ne)).substr(1)}var H=90*d,j=3*g,P=5*v;A.ms2DateTime=function(ce,ne,fe){if(typeof ce!="number"||!(ce>=k&&ce<=R))return u;ne||(ne=0);var X=Math.floor(c(ce+.05,1)*10),ye=Math.round(ce-X/10),Ce,$e,ke,Ne,Ve,Oe;if(N(fe)){var Fe=Math.floor(ye/d)+C,ie=Math.floor(c(ce,d));try{Ce=_.getComponentMethod("calendars","getCal")(fe).fromJD(Fe).formatDate("yyyy-mm-dd")}catch{Ce=$("G%Y-%m-%d")(new Date(ye))}if(Ce.charAt(0)==="-")for(;Ce.length<11;)Ce="-0"+Ce.substr(1);else for(;Ce.length<10;)Ce="0"+Ce;$e=ne=k+d&&ce<=R-d))return u;var ne=Math.floor(c(ce+.05,1)*10),fe=new Date(Math.round(ce-ne/10)),X=m("%Y-%m-%d")(fe),ye=fe.getHours(),Ce=fe.getMinutes(),$e=fe.getSeconds(),ke=fe.getUTCMilliseconds()*10+ne;return ee(X,ye,Ce,$e,ke)};function ee(ce,ne,fe,X,ye){if((ne||fe||X||ye)&&(ce+=" "+F(ne,2)+":"+F(fe,2),(X||ye)&&(ce+=":"+F(X,2),ye))){for(var Ce=4;ye%10===0;)Ce-=1,ye/=10;ce+="."+F(ye,Ce)}return ce}A.cleanDate=function(ce,ne,fe){if(ce===u)return ne;if(A.isJSDate(ce)||typeof ce=="number"&&isFinite(ce)){if(N(fe))return l.error("JS Dates and milliseconds are incompatible with world calendars",ce),ne;if(ce=A.ms2DateTimeLocal(+ce),!ce&&ne!==void 0)return ne}else if(!A.isDateTime(ce,fe))return l.error("unrecognized date",ce),ne;return ce};var J=/%\d?f/g,K=/%h/g,ae={1:"1",2:"1",3:"2",4:"2"};function Q(ce,ne,fe,X){ce=ce.replace(J,function(Ce){var $e=Math.min(+Ce.charAt(1)||6,6),ke=(ne/1e3%1+2).toFixed($e).substr(2).replace(/0+$/,"")||"0";return ke});var ye=new Date(Math.floor(ne+.05));if(ce=ce.replace(K,function(){return ae[fe("%q")(ye)]}),N(X))try{ce=_.getComponentMethod("calendars","worldCalFmt")(ce,ne,X)}catch{return"Invalid"}return fe(ce)(ye)}var he=[59,59.9,59.99,59.999,59.9999];function ge(ce,ne){var fe=c(ce+.05,d),X=F(Math.floor(fe/g),2)+":"+F(c(Math.floor(fe/v),60),2);if(ne!=="M"){h(ne)||(ne=0);var ye=Math.min(c(ce/x,60),he[ne]),Ce=(100+ye).toFixed(ne).substr(1);ne>0&&(Ce=Ce.replace(/0+$/,"").replace(/[\.]$/,"")),X+=":"+Ce}return X}A.formatDate=function(ce,ne,fe,X,ye,Ce){if(ye=N(ye)&&ye,!ne)if(fe==="y")ne=Ce.year;else if(fe==="m")ne=Ce.month;else if(fe==="d")ne=Ce.dayMonth+` -`+Ce.year;else return ge(ce,fe)+` -`+Q(Ce.dayMonthYear,ce,X,ye);return Q(ne,ce,X,ye)};var Se=3*d;A.incrementMonth=function(ce,ne,fe){fe=N(fe)&&fe;var X=c(ce,d);if(ce=Math.round(ce-X),fe)try{var ye=Math.round(ce/d)+C,Ce=_.getComponentMethod("calendars","getCal")(fe),$e=Ce.fromJD(ye);return ne%12?Ce.add($e,ne,"m"):Ce.add($e,ne/12,"y"),($e.toJD()-C)*d+X}catch{l.error("invalid ms "+ce+" in calendar "+fe)}var ke=new Date(ce+Se);return ke.setUTCMonth(ke.getUTCMonth()+ne)+X-Se},A.findExactDates=function(ce,ne){for(var fe=0,X=0,ye=0,Ce=0,$e,ke,Ne=N(ne)&&_.getComponentMethod("calendars","getCal")(ne),Ve=0;Ve1||H<0||H>1?null:{x:d+O*H,y:g+M*H}}A.segmentDistance=function(g,v,x,C,_,$,S,O){if(h(g,v,x,C,_,$,S,O))return 0;var D=x-g,N=C-v,M=S-_,k=O-$,R=D*D+N*N,F=M*M+k*k,H=Math.min(l(D,N,R,_-g,$-v),l(D,N,R,S-g,O-v),l(M,k,F,g-_,v-$),l(M,k,F,x-_,C-$));return Math.sqrt(H)};function l(d,g,v,x,C){var _=x*d+C*g;if(_<0)return x*x+C*C;if(_>v){var $=x-d,S=C-g;return $*$+S*S}else{var O=x*g-C*d;return O*O/v}}var c,i,u;A.getTextLocation=function(g,v,x,C){if((g!==i||C!==u)&&(c={},i=g,u=C),c[x])return c[x];var _=g.getPointAtLength(m(x-C/2,v)),$=g.getPointAtLength(m(x+C/2,v)),S=Math.atan(($.y-_.y)/($.x-_.x)),O=g.getPointAtLength(m(x,v)),D=(O.x*4+_.x+$.x)/6,N=(O.y*4+_.y+$.y)/6,M={x:D,y:N,theta:S};return c[x]=M,M},A.clearLocationCache=function(){i=null},A.getVisibleSegment=function(g,v,x){var C=v.left,_=v.right,$=v.top,S=v.bottom,O=0,D=g.getTotalLength(),N=D,M,k;function R(H){var j=g.getPointAtLength(H);H===0?M=j:H===D&&(k=j);var P=j.x_?j.x-_:0,ee=j.y<$?$-j.y:j.y>S?j.y-S:0;return Math.sqrt(P*P+ee*ee)}for(var F=R(O);F;){if(O+=F+x,O>N)return;F=R(O)}for(F=R(N);F;){if(N-=F+x,O>N)return;F=R(N)}return{min:O,max:N,len:N-O,total:D,isClosed:O===0&&N===D&&Math.abs(M.x-k.x)<.1&&Math.abs(M.y-k.y)<.1}},A.findPointOnPath=function(g,v,x,C){C=C||{};for(var _=C.pathLength||g.getTotalLength(),$=C.tolerance||.001,S=C.iterationLimit||30,O=g.getPointAtLength(0)[x]>g.getPointAtLength(_)[x]?-1:1,D=0,N=0,M=_,k,R,F;D0?M=k:N=k,D++}return R}},3389:function(L){L.exports=function(s){return s}},9240:function(L){L.exports=function(s,m){if(!m)return s;var h=1/Math.abs(m),l=h>1?(h*s+h*m)/h:s+m,c=String(l).length;if(c>16){var i=String(m).length,u=String(s).length;if(c>=u+i){var d=parseFloat(l).toPrecision(12);d.indexOf("e+")===-1&&(l=+d)}}return l}},1828:function(L,A,s){var m=s(9898),h=s(4096).g0,l=s(721).WU,c=s(2770),i=s(606),u=i.FP_SAFE,d=-u,g=i.BADNUM,v=L.exports={};v.adjustFormat=function(ue){return!ue||/^\d[.]\df/.test(ue)||/[.]\d%/.test(ue)?ue:ue==="0.f"?"~f":/^\d%/.test(ue)?"~%":/^\ds/.test(ue)?"~s":!/^[~,.0$]/.test(ue)&&/[&fps]/.test(ue)?"~"+ue:ue};var x={};v.warnBadFormat=function(se){var ue=String(se);x[ue]||(x[ue]=1,v.warn('encountered bad format: "'+ue+'"'))},v.noFormat=function(se){return String(se)},v.numberFormat=function(se){var ue;try{ue=l(v.adjustFormat(se))}catch{return v.warnBadFormat(se),v.noFormat}return ue},v.nestedProperty=s(5487),v.keyedContainer=s(6636),v.relativeAttr=s(6962),v.isPlainObject=s(1965),v.toLogRange=s(8163),v.relinkPrivateKeys=s(1332);var C=s(3627);v.isTypedArray=C.isTypedArray,v.isArrayOrTypedArray=C.isArrayOrTypedArray,v.isArray1D=C.isArray1D,v.ensureArray=C.ensureArray,v.concat=C.concat,v.maxRowLength=C.maxRowLength,v.minRowLength=C.minRowLength;var _=s(4872);v.mod=_.mod,v.modHalf=_.modHalf;var $=s(6554);v.valObjectMeta=$.valObjectMeta,v.coerce=$.coerce,v.coerce2=$.coerce2,v.coerceFont=$.coerceFont,v.coercePattern=$.coercePattern,v.coerceHoverinfo=$.coerceHoverinfo,v.coerceSelectionMarkerOpacity=$.coerceSelectionMarkerOpacity,v.validate=$.validate;var S=s(1631);v.dateTime2ms=S.dateTime2ms,v.isDateTime=S.isDateTime,v.ms2DateTime=S.ms2DateTime,v.ms2DateTimeLocal=S.ms2DateTimeLocal,v.cleanDate=S.cleanDate,v.isJSDate=S.isJSDate,v.formatDate=S.formatDate,v.incrementMonth=S.incrementMonth,v.dateTick0=S.dateTick0,v.dfltRange=S.dfltRange,v.findExactDates=S.findExactDates,v.MIN_MS=S.MIN_MS,v.MAX_MS=S.MAX_MS;var O=s(5888);v.findBin=O.findBin,v.sorterAsc=O.sorterAsc,v.sorterDes=O.sorterDes,v.distinctVals=O.distinctVals,v.roundUp=O.roundUp,v.sort=O.sort,v.findIndexOfMin=O.findIndexOfMin,v.sortObjectKeys=s(8607);var D=s(38);v.aggNums=D.aggNums,v.len=D.len,v.mean=D.mean,v.median=D.median,v.midRange=D.midRange,v.variance=D.variance,v.stdev=D.stdev,v.interp=D.interp;var N=s(5657);v.init2dArray=N.init2dArray,v.transposeRagged=N.transposeRagged,v.dot=N.dot,v.translationMatrix=N.translationMatrix,v.rotationMatrix=N.rotationMatrix,v.rotationXYMatrix=N.rotationXYMatrix,v.apply3DTransform=N.apply3DTransform,v.apply2DTransform=N.apply2DTransform,v.apply2DTransform2=N.apply2DTransform2,v.convertCssMatrix=N.convertCssMatrix,v.inverseTransformMatrix=N.inverseTransformMatrix;var M=s(6348);v.deg2rad=M.deg2rad,v.rad2deg=M.rad2deg,v.angleDelta=M.angleDelta,v.angleDist=M.angleDist,v.isFullCircle=M.isFullCircle,v.isAngleInsideSector=M.isAngleInsideSector,v.isPtInsideSector=M.isPtInsideSector,v.pathArc=M.pathArc,v.pathSector=M.pathSector,v.pathAnnulus=M.pathAnnulus;var k=s(9863);v.isLeftAnchor=k.isLeftAnchor,v.isCenterAnchor=k.isCenterAnchor,v.isRightAnchor=k.isRightAnchor,v.isTopAnchor=k.isTopAnchor,v.isMiddleAnchor=k.isMiddleAnchor,v.isBottomAnchor=k.isBottomAnchor;var R=s(7642);v.segmentsIntersect=R.segmentsIntersect,v.segmentDistance=R.segmentDistance,v.getTextLocation=R.getTextLocation,v.clearLocationCache=R.clearLocationCache,v.getVisibleSegment=R.getVisibleSegment,v.findPointOnPath=R.findPointOnPath;var F=s(1426);v.extendFlat=F.extendFlat,v.extendDeep=F.extendDeep,v.extendDeepAll=F.extendDeepAll,v.extendDeepNoArrays=F.extendDeepNoArrays;var H=s(7769);v.log=H.log,v.warn=H.warn,v.error=H.error;var j=s(587);v.counterRegex=j.counter;var P=s(9990);v.throttle=P.throttle,v.throttleDone=P.done,v.clearThrottle=P.clear;var ee=s(4401);v.getGraphDiv=ee.getGraphDiv,v.isPlotDiv=ee.isPlotDiv,v.removeElement=ee.removeElement,v.addStyleRule=ee.addStyleRule,v.addRelatedStyleRule=ee.addRelatedStyleRule,v.deleteRelatedStyleRule=ee.deleteRelatedStyleRule,v.getFullTransformMatrix=ee.getFullTransformMatrix,v.getElementTransformMatrix=ee.getElementTransformMatrix,v.getElementAndAncestors=ee.getElementAndAncestors,v.equalDomRects=ee.equalDomRects,v.clearResponsive=s(6367),v.preserveDrawingBuffer=s(5142),v.makeTraceGroups=s(7310),v._=s(5867),v.notifier=s(5046),v.filterUnique=s(5744),v.filterVisible=s(6756),v.pushUnique=s(5138),v.increment=s(9240),v.cleanNumber=s(5218),v.ensureNumber=function(ue){return c(ue)?(ue=Number(ue),ue>u||ue=ue?!1:c(se)&&se>=0&&se%1===0},v.noop=s(4213),v.identity=s(3389),v.repeat=function(se,ue){for(var pe=new Array(ue),le=0;lepe?Math.max(pe,Math.min(ue,se)):Math.max(ue,Math.min(pe,se))},v.bBoxIntersect=function(se,ue,pe){return pe=pe||0,se.left<=ue.right+pe&&ue.left<=se.right+pe&&se.top<=ue.bottom+pe&&ue.top<=se.bottom+pe},v.simpleMap=function(se,ue,pe,le,Te){for(var de=se.length,Me=new Array(de),Re=0;Re=Math.pow(2,pe)?Te>10?(v.warn("randstr failed uniqueness"),Me):se(ue,pe,le,(Te||0)+1):Me},v.OptionControl=function(se,ue){se||(se={}),ue||(ue="opt");var pe={};return pe.optionList=[],pe._newoption=function(le){le[ue]=se,pe[le.name]=le,pe.optionList.push(le)},pe["_"+ue]=se,pe},v.smooth=function(se,ue){if(ue=Math.round(ue)||0,ue<2)return se;var pe=se.length,le=2*pe,Te=2*ue-1,de=new Array(Te),Me=new Array(pe),Re,ze,We,ot;for(Re=0;Re=le&&(We-=le*Math.floor(We/le)),We<0?We=-1-We:We>=pe&&(We=le-1-We),ot+=se[We]*de[ze];Me[Re]=ot}return Me},v.syncOrAsync=function(se,ue,pe){var le,Te;function de(){return v.syncOrAsync(se,ue,pe)}for(;se.length;)if(Te=se.splice(0,1)[0],le=Te(ue),le&&le.then)return le.then(de);return pe&&pe(ue)},v.stripTrailingSlash=function(se){return se.substr(-1)==="/"?se.substr(0,se.length-1):se},v.noneOrAll=function(se,ue,pe){if(se){var le=!1,Te=!0,de,Me;for(de=0;de0?Te:0})},v.fillArray=function(se,ue,pe,le){if(le=le||v.identity,v.isArrayOrTypedArray(se))for(var Te=0;Te1?Te+Me[1]:"";if(de&&(Me.length>1||Re.length>4||pe))for(;le.test(Re);)Re=Re.replace(le,"$1"+de+"$2");return Re+ze},v.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var ne=/^\w*$/;v.templateString=function(se,ue){var pe={};return se.replace(v.TEMPLATE_STRING_REGEX,function(le,Te){var de;return ne.test(Te)?de=ue[Te]:(pe[Te]=pe[Te]||v.nestedProperty(ue,Te).get,de=pe[Te]()),v.isValidTextValue(de)?de:""})};var fe={max:10,count:0,name:"hovertemplate"};v.hovertemplateString=function(){return Ne.apply(fe,arguments)};var X={max:10,count:0,name:"texttemplate"};v.texttemplateString=function(){return Ne.apply(X,arguments)};var ye=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Ce(se){var ue=se.match(ye);return ue?{key:ue[1],op:ue[2],number:Number(ue[3])}:{key:se,op:null,number:null}}var $e={max:10,count:0,name:"texttemplate",parseMultDiv:!0};v.texttemplateStringForShapes=function(){return Ne.apply($e,arguments)};var ke=/^[:|\|]/;function Ne(se,ue,pe){var le=this,Te=arguments;ue||(ue={});var de={};return se.replace(v.TEMPLATE_STRING_REGEX,function(Me,Re,ze){var We=Re==="xother"||Re==="yother",ot=Re==="_xother"||Re==="_yother",dt=Re==="_xother_"||Re==="_yother_",Ge=Re==="xother_"||Re==="yother_",Xe=We||ot||Ge||dt,qe=Re;(ot||dt)&&(qe=qe.substring(1)),(Ge||dt)&&(qe=qe.substring(0,qe.length-1));var gt=null,ut=null;if(le.parseMultDiv){var tt=Ce(qe);qe=tt.key,gt=tt.op,ut=tt.number}var Ct;if(Xe){if(Ct=ue[qe],Ct===void 0)return""}else{var Gt,Yt;for(Yt=3;Yt=Ve&&Me<=Oe,We=Re>=Ve&&Re<=Oe;if(ze&&(le=10*le+Me-Ve),We&&(Te=10*Te+Re-Ve),!ze||!We){if(le!==Te)return le-Te;if(Me!==Re)return Me-Re}}return Te-le};var Fe=2e9;v.seedPseudoRandom=function(){Fe=2e9},v.pseudoRandom=function(){var se=Fe;return Fe=(69069*Fe+1)%4294967296,Math.abs(Fe-se)<429496729?v.pseudoRandom():Fe/4294967296},v.fillText=function(se,ue,pe){var le=Array.isArray(pe)?function(Me){pe.push(Me)}:function(Me){pe.text=Me},Te=v.extractOption(se,ue,"htx","hovertext");if(v.isValidTextValue(Te))return le(Te);var de=v.extractOption(se,ue,"tx","text");if(v.isValidTextValue(de))return le(de)},v.isValidTextValue=function(se){return se||se===0},v.formatPercent=function(se,ue){ue=ue||0;for(var pe=(Math.round(100*se*Math.pow(10,ue))*Math.pow(.1,ue)).toFixed(ue)+"%",le=0;le1&&(We=1):We=0,v.strTranslate(Te-We*(pe+Me),de-We*(le+Re))+v.strScale(We)+(ze?"rotate("+ze+(ue?"":" "+pe+" "+le)+")":"")},v.setTransormAndDisplay=function(se,ue){se.attr("transform",v.getTextTransform(ue)),se.style("display",ue.scale?null:"none")},v.ensureUniformFontSize=function(se,ue){var pe=v.extendFlat({},ue);return pe.size=Math.max(ue.size,se._fullLayout.uniformtext.minsize||0),pe},v.join2=function(se,ue,pe){var le=se.length;return le>1?se.slice(0,-1).join(ue)+pe+se[le-1]:se.join(ue)},v.bigFont=function(se){return Math.round(1.2*se)};var ie=v.getFirefoxVersion(),we=ie!==null&&ie<86;v.getPositionFromD3Event=function(){return we?[m.event.layerX,m.event.layerY]:[m.event.offsetX,m.event.offsetY]}},1965:function(L){L.exports=function(s){return window&&window.process&&window.process.versions?Object.prototype.toString.call(s)==="[object Object]":Object.prototype.toString.call(s)==="[object Object]"&&Object.getPrototypeOf(s).hasOwnProperty("hasOwnProperty")}},6636:function(L,A,s){var m=s(5487),h=/^\w*$/,l=0,c=1,i=2,u=3,d=4;L.exports=function(v,x,C,_){C=C||"name",_=_||"value";var $,S,O,D={};x&&x.length?(O=m(v,x),S=O.get()):S=v,x=x||"";var N={};if(S)for($=0;$2)return D[F]=D[F]|i,k.set(R,null);if(M){for($=F;$1){var i=["LOG:"];for(c=0;c1){var u=[];for(c=0;c"),"long")}},l.warn=function(){var c;if(m.logging>0){var i=["WARN:"];for(c=0;c0){var u=[];for(c=0;c"),"stick")}},l.error=function(){var c;if(m.logging>0){var i=["ERROR:"];for(c=0;c0){var u=[];for(c=0;c"),"stick")}}},7310:function(L,A,s){var m=s(9898);L.exports=function(l,c,i){var u=l.selectAll("g."+i.replace(/\s/g,".")).data(c,function(g){return g[0].trace.uid});u.exit().remove(),u.enter().append("g").attr("class",i),u.order();var d=l.classed("rangeplot")?"nodeRangePlot3":"node3";return u.each(function(g){g[0][d]=m.select(this)}),u}},5657:function(L,A,s){var m=s(9576);A.init2dArray=function(h,l){for(var c=new Array(h),i=0;ih/2?m-Math.round(m/h)*h:m}L.exports={mod:A,modHalf:s}},5487:function(L,A,s){var m=s(2770),h=s(3627).isArrayOrTypedArray;L.exports=function(_,$){if(m($))$=String($);else if(typeof $!="string"||$.substr($.length-4)==="[-1]")throw"bad property string";var S=$.split("."),O,D,N,M;for(M=0;M/g),S=0;S<$.length;S++)S&&_.append("br"),_.append("span").text($[S]);i==="stick"?C.transition().duration(350).style("opacity",1):C.transition().duration(700).style("opacity",1).transition().delay(u).call(v)})}},9918:function(L,A,s){var m=s(6964),h="data-savedcursor",l="!!";L.exports=function(i,u){var d=i.attr(h);if(u){if(!d){for(var g=(i.attr("class")||"").split(" "),v=0;vg||F===h||Fx||k&&$(M))}function O(M,k){var R=M[0],F=M[1];if(R===h||Rg||F===h||Fx)return!1;var H=u.length,j=u[0][0],P=u[0][1],ee=0,J,K,ae,Q,he;for(J=1;JMath.max(K,j)||F>Math.max(ae,P)))if(FC||Math.abs(m(O,$))>g)return!0;return!1},l.filter=function(i,u){var d=[i[0]],g=0,v=0;function x(_){i.push(_);var $=d.length,S=g;d.splice(v+1);for(var O=S+1;O1){var C=i.pop();x(C)}return{addPt:x,raw:i,filtered:d}}},5142:function(L,A,s){var m=s(2770),h=s(5791);L.exports=function(i){var u;if(i&&i.hasOwnProperty("userAgent")?u=i.userAgent:u=l(),typeof u!="string")return!0;var d=h({ua:{headers:{"user-agent":u}},tablet:!0,featureDetect:!1});if(!d)for(var g=u.split(" "),v=1;v-1;C--){var _=g[C];if(_.substr(0,8)==="Version/"){var $=_.substr(8).split(".")[0];if(m($)&&($=+$),$>=13)return!0}}}return d};function l(){var c;return typeof navigator<"u"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),c}},5138:function(L){L.exports=function(s,m){if(m instanceof RegExp){for(var h=m.toString(),l=0;lh.queueLength&&(i.undoQueue.queue.shift(),i.undoQueue.index--)},c.startSequence=function(i){i.undoQueue=i.undoQueue||{index:0,queue:[],sequence:!1},i.undoQueue.sequence=!0,i.undoQueue.beginSequence=!0},c.stopSequence=function(i){i.undoQueue=i.undoQueue||{index:0,queue:[],sequence:!1},i.undoQueue.sequence=!1,i.undoQueue.beginSequence=!1},c.undo=function(u){var d,g;if(!(u.undoQueue===void 0||isNaN(u.undoQueue.index)||u.undoQueue.index<=0)){for(u.undoQueue.index--,d=u.undoQueue.queue[u.undoQueue.index],u.undoQueue.inSequence=!0,g=0;g=u.undoQueue.queue.length)){for(d=u.undoQueue.queue[u.undoQueue.index],u.undoQueue.inSequence=!0,g=0;g1?(C[S-1]-C[0])/(S-1):1,N,M;for(D>=0?M=_?u:d:M=_?v:g,x+=D*i*(_?-1:1)*(D>=0?1:-1);$90&&h.log("Long binary search..."),$-1};function u(x,C){return xC}function v(x,C){return x>=C}A.sorterAsc=function(x,C){return x-C},A.sorterDes=function(x,C){return C-x},A.distinctVals=function(x){var C=x.slice();C.sort(A.sorterAsc);var _;for(_=C.length-1;_>-1&&C[_]===c;_--);for(var $=C[_]-C[0]||1,S=$/(_||1)/1e4,O=[],D,N=0;N<=_;N++){var M=C[N],k=M-D;D===void 0?(O.push(M),D=M):k>S&&($=Math.min($,k),O.push(M),D=M)}return{vals:O,minDiff:$}},A.roundUp=function(x,C,_){for(var $=0,S=C.length-1,O,D=0,N=_?0:1,M=_?1:0,k=_?Math.ceil:Math.floor;$0&&($=1),_&&$)return x.sort(C)}return $?x:x.reverse()},A.findIndexOfMin=function(x,C){C=C||l;for(var _=1/0,$,S=0;Si.length)&&(u=i.length),m(c)||(c=!1),h(i[0])){for(g=new Array(u),d=0;dl.length-1)return l[l.length-1];var i=c%1;return i*l[Math.ceil(c)]+(1-i)*l[Math.floor(c)]}},3893:function(L,A,s){var m=s(9898),h=s(1828),l=h.strTranslate,c=s(7922),i=s(8783).LINE_SPACING,u=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;A.convertToTspans=function(fe,X,ye){var Ce=fe.text(),$e=!fe.attr("data-notex")&&X&&X._context.typesetMath&&typeof MathJax<"u"&&Ce.match(u),ke=m.select(fe.node().parentNode);if(ke.empty())return;var Ne=fe.attr("class")?fe.attr("class").split(" ")[0]:"text";Ne+="-math",ke.selectAll("svg."+Ne).remove(),ke.selectAll("g."+Ne+"-group").remove(),fe.style("display",null).attr({"data-unformatted":Ce,"data-math":"N"});function Ve(){ke.empty()||(Ne=fe.attr("class")+"-math",ke.select("svg."+Ne).remove()),fe.text("").style("white-space","pre");var Oe=ge(fe.node(),Ce);Oe&&fe.style("pointer-events","all"),A.positionText(fe),ye&&ye.call(fe)}return $e?(X&&X._promises||[]).push(new Promise(function(Oe){fe.style("display","none");var Fe=parseInt(fe.node().style.fontSize,10),ie={fontSize:Fe};C($e[2],ie,function(we,se,ue){ke.selectAll("svg."+Ne).remove(),ke.selectAll("g."+Ne+"-group").remove();var pe=we&&we.select("svg");if(!pe||!pe.node()){Ve(),Oe();return}var le=ke.append("g").classed(Ne+"-group",!0).attr({"pointer-events":"none","data-unformatted":Ce,"data-math":"Y"});le.node().appendChild(pe.node()),se&&se.node()&&pe.node().insertBefore(se.node().cloneNode(!0),pe.node().firstChild);var Te=ue.width,de=ue.height;pe.attr({class:Ne,height:de,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var Me=fe.node().style.fill||"black",Re=pe.select("g");Re.attr({fill:Me,stroke:Me});var ze=Re.node().getBoundingClientRect(),We=ze.width,ot=ze.height;(We>Te||ot>de)&&(pe.style("overflow","hidden"),ze=pe.node().getBoundingClientRect(),We=ze.width,ot=ze.height);var dt=+fe.attr("x"),Ge=+fe.attr("y"),Xe=Fe||fe.node().getBoundingClientRect().height,qe=-Xe/4;if(Ne[0]==="y")le.attr({transform:"rotate("+[-90,dt,Ge]+")"+l(-We/2,qe-ot/2)});else if(Ne[0]==="l")Ge=qe-ot/2;else if(Ne[0]==="a"&&Ne.indexOf("atitle")!==0)dt=0,Ge=qe;else{var gt=fe.attr("text-anchor");dt=dt-We*(gt==="middle"?.5:gt==="end"?1:0),Ge=Ge+qe-ot/2}pe.attr({x:dt,y:Ge}),ye&&ye.call(fe,le),Oe(le)})})):Ve(),fe};var d=/(<|<|<)/g,g=/(>|>|>)/g;function v(fe){return fe.replace(d,"\\lt ").replace(g,"\\gt ")}var x=[["$","$"],["\\(","\\)"]];function C(fe,X,ye){var Ce=parseInt((MathJax.version||"").split(".")[0]);if(Ce!==2&&Ce!==3){h.warn("No MathJax version:",MathJax.version);return}var $e,ke,Ne,Ve,Oe=function(){return ke=h.extendDeepAll({},MathJax.Hub.config),Ne=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:x},displayAlign:"left"})},Fe=function(){ke=h.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=x},ie=function(){if($e=MathJax.Hub.config.menuSettings.renderer,$e!=="SVG")return MathJax.Hub.setRenderer("SVG")},we=function(){$e=MathJax.config.startup.output,$e!=="svg"&&(MathJax.config.startup.output="svg")},se=function(){var Me="math-output-"+h.randstr({},64);Ve=m.select("body").append("div").attr({id:Me}).style({visibility:"hidden",position:"absolute","font-size":X.fontSize+"px"}).text(v(fe));var Re=Ve.node();return Ce===2?MathJax.Hub.Typeset(Re):MathJax.typeset([Re])},ue=function(){var Me=Ve.select(Ce===2?".MathJax_SVG":".MathJax"),Re=!Me.empty()&&Ve.select("svg").node();if(!Re)h.log("There was an error in the tex syntax.",fe),ye();else{var ze=Re.getBoundingClientRect(),We;Ce===2?We=m.select("body").select("#MathJax_SVG_glyphs"):We=Me.select("defs"),ye(Me,We,ze)}Ve.remove()},pe=function(){if($e!=="SVG")return MathJax.Hub.setRenderer($e)},le=function(){$e!=="svg"&&(MathJax.config.startup.output=$e)},Te=function(){return Ne!==void 0&&(MathJax.Hub.processSectionDelay=Ne),MathJax.Hub.Config(ke)},de=function(){MathJax.config=ke};Ce===2?MathJax.Hub.Queue(Oe,ie,se,ue,pe,Te):Ce===3&&(Fe(),we(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){se(),ue(),le(),de()}))}var _={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},$={sub:"0.3em",sup:"-0.6em"},S={sub:"-0.21em",sup:"0.42em"},O="​",D=["http:","https:","mailto:","",void 0,":"],N=A.NEWLINES=/(\r\n?|\n)/g,M=/(<[^<>]*>)/,k=/<(\/?)([^ >]*)(\s+(.*))?>/i,R=//i;A.BR_TAG_ALL=//gi;var F=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,H=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,j=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,P=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function ee(fe,X){if(!fe)return null;var ye=fe.match(X),Ce=ye&&(ye[3]||ye[4]);return Ce&&Q(Ce)}var J=/(^|;)\s*color:/;A.plainText=function(fe,X){X=X||{};for(var ye=X.len!==void 0&&X.len!==-1?X.len:1/0,Ce=X.allowedTags!==void 0?X.allowedTags:["br"],$e="...",ke=$e.length,Ne=fe.split(M),Ve=[],Oe="",Fe=0,ie=0;ieke?Ve.push(we.substr(0,le-ke)+$e):Ve.push(we.substr(0,le));break}Oe=""}}return Ve.join("")};var K={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},ae=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Q(fe){return fe.replace(ae,function(X,ye){var Ce;return ye.charAt(0)==="#"?Ce=he(ye.charAt(1)==="x"?parseInt(ye.substr(2),16):parseInt(ye.substr(1),10)):Ce=K[ye],Ce||X})}A.convertEntities=Q;function he(fe){if(!(fe>1114111)){var X=String.fromCodePoint;if(X)return X(fe);var ye=String.fromCharCode;return fe<=65535?ye(fe):ye((fe>>10)+55232,fe%1024+56320)}}function ge(fe,X){X=X.replace(N," ");var ye=!1,Ce=[],$e,ke=-1;function Ne(){ke++;var ot=document.createElementNS(c.svg,"tspan");m.select(ot).attr({class:"line",dy:ke*i+"em"}),fe.appendChild(ot),$e=ot;var dt=Ce;if(Ce=[{node:ot}],dt.length>1)for(var Ge=1;Ge.",X);return}var dt=Ce.pop();ot!==dt.type&&h.log("Start tag <"+dt.type+"> doesnt match end tag <"+ot+">. Pretending it did match.",X),$e=Ce[Ce.length-1].node}var ie=R.test(X);ie?Ne():($e=fe,Ce=[{node:fe}]);for(var we=X.split(M),se=0;seu.ts+c){v();return}u.timer=setTimeout(function(){v(),u.timer=null},c)},A.done=function(h){var l=s[h];return!l||!l.timer?Promise.resolve():new Promise(function(c){var i=l.onDone;l.onDone=function(){i&&i(),c(),l.onDone=null}})},A.clear=function(h){if(h)m(s[h]),delete s[h];else for(var l in s)A.clear(l)};function m(h){h&&h.timer!==null&&(clearTimeout(h.timer),h.timer=null)}},8163:function(L,A,s){var m=s(2770);L.exports=function(l,c){if(l>0)return Math.log(l)/Math.LN10;var i=Math.log(Math.min(c[0],c[1]))/Math.LN10;return m(i)||(i=Math.log(Math.max(c[0],c[1]))/Math.LN10-6),i}},7815:function(L){L.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},2177:function(L){L.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},4458:function(L,A,s){var m=s(3972);L.exports=function(l){for(var c=m.layoutArrayContainers,i=m.layoutArrayRegexes,u=l.split("[")[0],d,g,v=0;v0&&c.log("Clearing previous rejected promises from queue."),R._promises=[]},A.cleanLayout=function(R){var F,H;R||(R={}),R.xaxis1&&(R.xaxis||(R.xaxis=R.xaxis1),delete R.xaxis1),R.yaxis1&&(R.yaxis||(R.yaxis=R.yaxis1),delete R.yaxis1),R.scene1&&(R.scene||(R.scene=R.scene1),delete R.scene1);var j=(i.subplotsRegistry.cartesian||{}).attrRegex,P=(i.subplotsRegistry.polar||{}).attrRegex,ee=(i.subplotsRegistry.ternary||{}).attrRegex,J=(i.subplotsRegistry.gl3d||{}).attrRegex,K=Object.keys(R);for(F=0;F3?(ie.x=1.02,ie.xanchor="left"):ie.x<-2&&(ie.x=-.02,ie.xanchor="right"),ie.y>3?(ie.y=1.02,ie.yanchor="bottom"):ie.y<-2&&(ie.y=-.02,ie.yanchor="top")),_(R),R.dragmode==="rotate"&&(R.dragmode="orbit"),d.clean(R),R.template&&R.template.layout&&A.cleanLayout(R.template.layout),R};function C(R,F){var H=R[F],j=F.charAt(0);H&&H!=="paper"&&(R[F]=g(H,j,!0))}function _(R){R&&((typeof R.title=="string"||typeof R.title=="number")&&(R.title={text:R.title}),F("titlefont","font"),F("titleposition","position"),F("titleside","side"),F("titleoffset","offset"));function F(H,j){var P=R[H],ee=R.title&&R.title[j];P&&!ee&&(R.title||(R.title={}),R.title[j]=R[H],delete R[H])}}A.cleanData=function(R){for(var F=0;F0)return R.substr(0,F)}A.hasParent=function(R,F){for(var H=M(F);H;){if(H in R)return!0;H=M(H)}return!1};var k=["x","y","z"];A.clearAxisTypes=function(R,F,H){for(var j=0;j1&&l.warn("Full array edits are incompatible with other edits",S);var F=C[""][""];if(d(F))x.set(null);else if(Array.isArray(F))x.set(F);else return l.warn("Unrecognized full array edit value",S,F),!0;return M?!1:(O(k,R),D(v),!0)}var H=Object.keys(C).map(Number).sort(c),j=x.get(),P=j||[],ee=$(R,S).get(),J=[],K=-1,ae=P.length,Q,he,ge,Se,ce,ne,fe,X;for(Q=0;QP.length-(fe?0:1)){l.warn("index out of range",S,ge);continue}if(ne!==void 0)ce.length>1&&l.warn("Insertion & removal are incompatible with edits to the same index.",S,ge),d(ne)?J.push(ge):fe?(ne==="add"&&(ne={}),P.splice(ge,0,ne),ee&&ee.splice(ge,0,{})):l.warn("Unrecognized full object edit value",S,ge,ne),K===-1&&(K=ge);else for(he=0;he=0;Q--)P.splice(J[Q],1),ee&&ee.splice(J[Q],1);if(P.length?j||x.set(P):x.set(null),M)return!1;if(O(k,R),N!==h){var ye;if(K===-1)ye=H;else{for(ae=Math.max(P.length,ae),ye=[],Q=0;Q=K));Q++)ye.push(ge);for(Q=K;Q=Ze.data.length||Tt<-Ze.data.length)throw new Error(ht+" must be valid indices for gd.data.");if(it.indexOf(Tt,pt+1)>-1||Tt>=0&&it.indexOf(-Ze.data.length+Tt)>-1||Tt<0&&it.indexOf(Ze.data.length+Tt)>-1)throw new Error("each index in "+ht+" must be unique.")}}function ye(Ze,it,ht){if(!Array.isArray(Ze.data))throw new Error("gd.data must be an array.");if(typeof it>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(it)||(it=[it]),X(Ze,it,"currentIndices"),typeof ht<"u"&&!Array.isArray(ht)&&(ht=[ht]),typeof ht<"u"&&X(Ze,ht,"newIndices"),typeof ht<"u"&&it.length!==ht.length)throw new Error("current and new indices must be of equal length.")}function Ce(Ze,it,ht){var pt,Tt;if(!Array.isArray(Ze.data))throw new Error("gd.data must be an array.");if(typeof it>"u")throw new Error("traces must be defined.");for(Array.isArray(it)||(it=[it]),pt=0;pt"u")throw new Error("indices must be an integer or array of integers");X(Ze,ht,"indices");for(var Et in it){if(!Array.isArray(it[Et])||it[Et].length!==ht.length)throw new Error("attribute "+Et+" must be an array of length equal to indices array length");if(Tt&&(!(Et in pt)||!Array.isArray(pt[Et])||pt[Et].length!==it[Et].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function ke(Ze,it,ht,pt){var Tt=c.isPlainObject(pt),Et=[],fn,tn,Zt,Dt,un;Array.isArray(ht)||(ht=[ht]),ht=fe(ht,Ze.data.length-1);for(var Un in it)for(var tr=0;tr=0&&un=0&&un"u")return Dt=A.redraw(Ze),d.add(Ze,Tt,fn,Et,tn),Dt;Array.isArray(ht)||(ht=[ht]);try{ye(Ze,pt,ht)}catch(un){throw Ze.data.splice(Ze.data.length-it.length,it.length),un}return d.startSequence(Ze),d.add(Ze,Tt,fn,Et,tn),Dt=A.moveTraces(Ze,pt,ht),d.stopSequence(Ze),Dt}function we(Ze,it){Ze=c.getGraphDiv(Ze);var ht=[],pt=A.addTraces,Tt=we,Et=[Ze,ht,it],fn=[Ze,it],tn,Zt;if(typeof it>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(it)||(it=[it]),X(Ze,it,"indices"),it=fe(it,Ze.data.length-1),it.sort(c.sorterDes),tn=0;tn"u")for(ht=[],Dt=0;Dt-1&&Et.indexOf("grouptitlefont")===-1?tn(Et,Et.replace("titlefont","title.font")):Et.indexOf("titleposition")>-1?tn(Et,Et.replace("titleposition","title.position")):Et.indexOf("titleside")>-1?tn(Et,Et.replace("titleside","title.side")):Et.indexOf("titleoffset")>-1&&tn(Et,Et.replace("titleoffset","title.offset"));function tn(Zt,Dt){Ze[Dt]=Ze[Zt],delete Ze[Zt]}}function ze(Ze,it,ht){Ze=c.getGraphDiv(Ze),F.clearPromiseQueue(Ze);var pt={};if(typeof it=="string")pt[it]=ht;else if(c.isPlainObject(it))pt=c.extendFlat({},it);else return c.warn("Relayout fail.",it,ht),Promise.reject();Object.keys(pt).length&&(Ze.changed=!0);var Tt=qe(Ze,pt),Et=Tt.flags;Et.calc&&(Ze.calcdata=void 0);var fn=[x.previousPromises];Et.layoutReplot?fn.push(H.layoutReplot):Object.keys(pt).length&&(We(Ze,Et,Tt)||x.supplyDefaults(Ze),Et.legend&&fn.push(H.doLegend),Et.layoutstyle&&fn.push(H.layoutStyles),Et.axrange&&ot(fn,Tt.rangesAltered),Et.ticks&&fn.push(H.doTicksRelayout),Et.modebar&&fn.push(H.doModeBar),Et.camera&&fn.push(H.doCamera),Et.colorbars&&fn.push(H.doColorBars),fn.push(ae)),fn.push(x.rehover,x.redrag,x.reselect),d.add(Ze,ze,[Ze,Tt.undoit],ze,[Ze,Tt.redoit]);var tn=c.syncOrAsync(fn,Ze);return(!tn||!tn.then)&&(tn=Promise.resolve(Ze)),tn.then(function(){return Ze.emit("plotly_relayout",Tt.eventData),Ze})}function We(Ze,it,ht){var pt=Ze._fullLayout;if(!it.axrange)return!1;for(var Tt in it)if(Tt!=="axrange"&&it[Tt])return!1;var Et,fn,tn=function(Er,zt){return c.coerce(Et,fn,$,Er,zt)},Zt={};for(var Dt in ht.rangesAltered){var un=C.id2name(Dt);if(Et=Ze.layout[un],fn=pt[un],_(Et,fn,tn,Zt),fn._matchGroup){for(var Un in fn._matchGroup)if(Un!==Dt){var tr=pt[C.id2name(Un)];tr.autorange=fn.autorange,tr.range=fn.range.slice(),tr._input.range=fn.range.slice()}}}return!0}function ot(Ze,it){var ht=it?function(pt){var Tt=[],Et=!0;for(var fn in it){var tn=C.getFromId(pt,fn);if(Tt.push(fn),(tn.ticklabelposition||"").indexOf("inside")!==-1&&tn._anchorAxis&&Tt.push(tn._anchorAxis._id),tn._matchGroup)for(var Zt in tn._matchGroup)it[Zt]||Tt.push(Zt)}return C.draw(pt,Tt,{skipTitle:Et})}:function(pt){return C.draw(pt,"redraw")};Ze.push(M,H.doAutoRangeAndConstraints,ht,H.drawData,H.finalDraw)}var dt=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Ge=/^[xyz]axis[0-9]*\.autorange$/,Xe=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function qe(Ze,it){var ht=Ze.layout,pt=Ze._fullLayout,Tt=pt._guiEditing,Et=le(pt._preGUI,Tt),fn=Object.keys(it),tn=C.list(Ze),Zt=c.extendDeepAll({},it),Dt={},un,Un,tr;for(Re(it),fn=Object.keys(it),Un=0;Un0&&typeof or.parts[vo]!="string";)vo--;var Cr=or.parts[vo],He=or.parts[vo-1]+"."+Cr,De=or.parts.slice(0,vo).join("."),St=i(Ze.layout,De).get(),kt=i(pt,De).get(),Pt=or.get();if(wr!==void 0){Ir[xr]=wr,Tr[xr]=Cr==="reverse"?wr:pe(Pt);var Bt=v.getLayoutValObject(pt,or.parts);if(Bt&&Bt.impliedEdits&&wr!==null)for(var Ut in Bt.impliedEdits)rr(c.relativeAttr(xr,Ut),Bt.impliedEdits[Ut]);if(["width","height"].indexOf(xr)!==-1)if(wr){rr("autosize",null);var Ot=xr==="height"?"width":"height";rr(Ot,pt[Ot])}else pt[xr]=Ze._initialAutoSize[xr];else if(xr==="autosize")rr("width",wr?null:pt.width),rr("height",wr?null:pt.height);else if(He.match(dt))Ln(He),i(pt,De+"._inputRange").set(null);else if(He.match(Ge)){Ln(He),i(pt,De+"._inputRange").set(null);var _t=i(pt,De).get();_t._inputDomain&&(_t._input.domain=_t._inputDomain.slice())}else He.match(Xe)&&i(pt,De+"._inputDomain").set(null);if(Cr==="type"){_r=St;var qt=kt.type==="linear"&&wr==="log",cn=kt.type==="log"&&wr==="linear";if(qt||cn){if(!_r||!_r.range)rr(De+".autorange",!0);else if(kt.autorange)qt&&(_r.range=_r.range[1]>_r.range[0]?[1,2]:[2,1]);else{var Qt=_r.range[0],nn=_r.range[1];qt?(Qt<=0&&nn<=0&&rr(De+".autorange",!0),Qt<=0?Qt=nn/1e6:nn<=0&&(nn=Qt/1e6),rr(De+".range[0]",Math.log(Qt)/Math.LN10),rr(De+".range[1]",Math.log(nn)/Math.LN10)):(rr(De+".range[0]",Math.pow(10,Qt)),rr(De+".range[1]",Math.pow(10,nn)))}Array.isArray(pt._subplots.polar)&&pt._subplots.polar.length&&pt[or.parts[0]]&&or.parts[1]==="radialaxis"&&delete pt[or.parts[0]]._subplot.viewInitial["radialaxis.range"],g.getComponentMethod("annotations","convertCoords")(Ze,kt,wr,rr),g.getComponentMethod("images","convertCoords")(Ze,kt,wr,rr)}else rr(De+".autorange",!0),rr(De+".range",null);i(pt,De+"._inputRange").set(null)}else if(Cr.match(P)){var Sn=i(pt,xr).get(),bn=(wr||{}).type;(!bn||bn==="-")&&(bn="linear"),g.getComponentMethod("annotations","convertCoords")(Ze,Sn,bn,rr),g.getComponentMethod("images","convertCoords")(Ze,Sn,bn,rr)}var gn=R.containerArrayMatch(xr);if(gn){un=gn.array,Un=gn.index;var Qn=gn.property,Bn=Bt||{editType:"calc"};Un!==""&&Qn===""&&(R.isAddVal(wr)?Tr[xr]=null:R.isRemoveVal(wr)?Tr[xr]=(i(ht,un).get()||[])[Un]:c.warn("unrecognized full object value",it)),j.update(Gn,Bn),Dt[un]||(Dt[un]={});var Hr=Dt[un][Un];Hr||(Hr=Dt[un][Un]={}),Hr[Qn]=wr,delete it[xr]}else Cr==="reverse"?(St.range?St.range.reverse():(rr(De+".autorange",!0),St.range=[1,0]),kt.autorange?Gn.calc=!0:Gn.plot=!0):(xr==="dragmode"&&(wr===!1&&Pt!==!1||wr!==!1&&Pt===!1)||pt._has("scatter-like")&&pt._has("regl")&&xr==="dragmode"&&(wr==="lasso"||wr==="select")&&!(Pt==="lasso"||Pt==="select")||pt._has("gl2d")?Gn.plot=!0:Bt?j.update(Gn,Bt):Gn.calc=!0,or.set(wr))}}for(un in Dt){var fr=R.applyContainerArrayChanges(Ze,Et(ht,un),Dt[un],Gn,Et);fr||(Gn.plot=!0)}for(var Vr in Yr){_r=C.getFromId(Ze,Vr);var ar=_r&&_r._constraintGroup;if(ar){Gn.calc=!0;for(var cr in ar)Yr[cr]||(C.getFromId(Ze,cr)._constraintShrinkable=!0)}}(gt(Ze)||it.height||it.width)&&(Gn.plot=!0);var Kr=pt.shapes;for(Un=0;Un1;)if(pt.pop(),ht=i(it,pt.join(".")+".uirevision").get(),ht!==void 0)return ht;return it.uirevision}function Ft(Ze,it){for(var ht=0;ht=Tt.length?Tt[0]:Tt[Dt]:Tt}function tn(Dt){return Array.isArray(Et)?Dt>=Et.length?Et[0]:Et[Dt]:Et}function Zt(Dt,un){var Un=0;return function(){if(Dt&&++Un===un)return Dt()}}return new Promise(function(Dt,un){function Un(){if(pt._frameQueue.length!==0){for(;pt._frameQueue.length;){var Cr=pt._frameQueue.pop();Cr.onInterrupt&&Cr.onInterrupt()}Ze.emit("plotly_animationinterrupted",[])}}function tr(Cr){if(Cr.length!==0){for(var He=0;Hept._timeToNext&&zt()};Cr()}var Gn=0;function Ir(Cr){return Array.isArray(Tt)?Gn>=Tt.length?Cr.transitionOpts=Tt[Gn]:Cr.transitionOpts=Tt[0]:Cr.transitionOpts=Tt,Gn++,Cr}var Tr,rr,Yr=[],_r=it==null,Ln=Array.isArray(it),xr=!_r&&!Ln&&c.isPlainObject(it);if(xr)Yr.push({type:"object",data:Ir(c.extendFlat({},it))});else if(_r||["string","number"].indexOf(typeof it)!==-1)for(Tr=0;Tr0&&roro)&&vo.push(rr);Yr=vo}}Yr.length>0?tr(Yr):(Ze.emit("plotly_animated"),Dt())})}function lt(Ze,it,ht){if(Ze=c.getGraphDiv(Ze),it==null)return Promise.resolve();if(!c.isPlotDiv(Ze))throw new Error("This element is not a Plotly plot: "+Ze+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var pt,Tt,Et,fn,tn=Ze._transitionData._frames,Zt=Ze._transitionData._frameHash;if(!Array.isArray(it))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+it);var Dt=tn.length+it.length*2,un=[],Un={};for(pt=it.length-1;pt>=0;pt--)if(c.isPlainObject(it[pt])){var tr=it[pt].name,Er=(Zt[tr]||Un[tr]||{}).name,zt=it[pt].name,pr=Zt[Er]||Un[Er];Er&&zt&&typeof zt=="number"&&pr&&eeor.index?-1:xr.index=0;pt--){if(Tt=un[pt].frame,typeof Tt.name=="number"&&c.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Tt.name)for(;Zt[Tt.name="frame "+Ze._transitionData._counter++];);if(Zt[Tt.name]){for(Et=0;Et=0;ht--)pt=it[ht],Et.push({type:"delete",index:pt}),fn.unshift({type:"insert",index:pt,value:Tt[pt]});var tn=x.modifyFrames,Zt=x.modifyFrames,Dt=[Ze,fn],un=[Ze,Et];return d&&d.add(Ze,tn,Dt,Zt,un),x.modifyFrames(Ze,Et)}function wt(Ze){Ze=c.getGraphDiv(Ze);var it=Ze._fullLayout||{},ht=Ze._fullData||[];return x.cleanPlot([],{},ht,it),x.purge(Ze),u.purge(Ze),it._container&&it._container.remove(),delete Ze._context,Ze}function vt(Ze){var it=Ze._fullLayout,ht=Ze.getBoundingClientRect();if(!c.equalDomRects(ht,it._lastBBox)){var pt=it._invTransform=c.inverseTransformMatrix(c.getFullTransformMatrix(Ze));it._invScaleX=Math.sqrt(pt[0][0]*pt[0][0]+pt[0][1]*pt[0][1]+pt[0][2]*pt[0][2]),it._invScaleY=Math.sqrt(pt[1][0]*pt[1][0]+pt[1][1]*pt[1][1]+pt[1][2]*pt[1][2]),it._lastBBox=ht}}function $t(Ze){var it=m.select(Ze),ht=Ze._fullLayout;if(ht._calcInverseTransform=vt,ht._calcInverseTransform(Ze),ht._container=it.selectAll(".plot-container").data([0]),ht._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),ht._paperdiv=ht._container.selectAll(".svg-container").data([0]),ht._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),ht._glcontainer=ht._paperdiv.selectAll(".gl-container").data([{}]),ht._glcontainer.enter().append("div").classed("gl-container",!0),ht._paperdiv.selectAll(".main-svg").remove(),ht._paperdiv.select(".modebar-container").remove(),ht._paper=ht._paperdiv.insert("svg",":first-child").classed("main-svg",!0),ht._toppaper=ht._paperdiv.append("svg").classed("main-svg",!0),ht._modebardiv=ht._paperdiv.append("div"),delete ht._modeBar,ht._hoverpaper=ht._paperdiv.append("svg").classed("main-svg",!0),!ht._uid){var pt={};m.selectAll("defs").each(function(){this.id&&(pt[this.id.split("-")[1]]=1)}),ht._uid=c.randstr(pt)}ht._paperdiv.selectAll(".main-svg").attr(N.svgAttrs),ht._defs=ht._paper.append("defs").attr("id","defs-"+ht._uid),ht._clips=ht._defs.append("g").classed("clips",!0),ht._topdefs=ht._toppaper.append("defs").attr("id","topdefs-"+ht._uid),ht._topclips=ht._topdefs.append("g").classed("clips",!0),ht._bgLayer=ht._paper.append("g").classed("bglayer",!0),ht._draggers=ht._paper.append("g").classed("draglayer",!0);var Tt=ht._paper.append("g").classed("layer-below",!0);ht._imageLowerLayer=Tt.append("g").classed("imagelayer",!0),ht._shapeLowerLayer=Tt.append("g").classed("shapelayer",!0),ht._cartesianlayer=ht._paper.append("g").classed("cartesianlayer",!0),ht._polarlayer=ht._paper.append("g").classed("polarlayer",!0),ht._smithlayer=ht._paper.append("g").classed("smithlayer",!0),ht._ternarylayer=ht._paper.append("g").classed("ternarylayer",!0),ht._geolayer=ht._paper.append("g").classed("geolayer",!0),ht._funnelarealayer=ht._paper.append("g").classed("funnelarealayer",!0),ht._pielayer=ht._paper.append("g").classed("pielayer",!0),ht._iciclelayer=ht._paper.append("g").classed("iciclelayer",!0),ht._treemaplayer=ht._paper.append("g").classed("treemaplayer",!0),ht._sunburstlayer=ht._paper.append("g").classed("sunburstlayer",!0),ht._indicatorlayer=ht._toppaper.append("g").classed("indicatorlayer",!0),ht._glimages=ht._paper.append("g").classed("glimages",!0);var Et=ht._toppaper.append("g").classed("layer-above",!0);ht._imageUpperLayer=Et.append("g").classed("imagelayer",!0),ht._shapeUpperLayer=Et.append("g").classed("shapelayer",!0),ht._selectionLayer=ht._toppaper.append("g").classed("selectionlayer",!0),ht._infolayer=ht._toppaper.append("g").classed("infolayer",!0),ht._menulayer=ht._toppaper.append("g").classed("menulayer",!0),ht._zoomlayer=ht._toppaper.append("g").classed("zoomlayer",!0),ht._hoverlayer=ht._hoverpaper.append("g").classed("hoverlayer",!0),ht._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),Ze.emit("plotly_framework")}A.animate=wn,A.addFrames=lt,A.deleteFrames=ft,A.addTraces=ie,A.deleteTraces=we,A.extendTraces=Oe,A.moveTraces=se,A.prependTraces=Fe,A.newPlot=ne,A._doPlot=K,A.purge=wt,A.react=Zn,A.redraw=ce,A.relayout=ze,A.restyle=ue,A.setPlotConfig=Q,A.update=ut,A._guiRelayout=tt(ze),A._guiRestyle=tt(ue),A._guiUpdate=tt(ut),A._storeDirectGUIEdit=de},2075:function(L){var A={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},s={};function m(h,l){for(var c in h){var i=h[c];i.valType?l[c]=i.dflt:(l[c]||(l[c]={}),m(i,l[c]))}}m(A,s),L.exports={configAttributes:A,dfltConfig:s}},6281:function(L,A,s){var m=s(3972),h=s(1828),l=s(9012),c=s(820),i=s(1391),u=s(5594),d=s(2075).configAttributes,g=s(962),v=h.extendDeepAll,x=h.isPlainObject,C=h.isArrayOrTypedArray,_=h.nestedProperty,$=h.valObjectMeta,S="_isSubplotObj",O="_isLinkedToArray",D="_arrayAttrRegexps",N="_deprecated",M=[S,O,D,N];A.IS_SUBPLOT_OBJ=S,A.IS_LINKED_TO_ARRAY=O,A.DEPRECATED=N,A.UNDERSCORE_ATTRS=M,A.get=function(){var Se={};m.allTypes.forEach(function(ne){Se[ne]=H(ne)});var ce={};return Object.keys(m.transformsRegistry).forEach(function(ne){ce[ne]=P(ne)}),{defs:{valObjects:$,metaKeys:M.concat(["description","role","editType","impliedEdits"]),editType:{traces:g.traces,layout:g.layout},impliedEdits:{}},traces:Se,layout:j(),transforms:ce,frames:ee(),animation:J(u),config:J(d)}},A.crawl=function(Se,ce,ne,fe){var X=ne||0;fe=fe||"",Object.keys(Se).forEach(function(ye){var Ce=Se[ye];if(M.indexOf(ye)===-1){var $e=(fe?fe+".":"")+ye;ce(Ce,ye,Se,X,$e),!A.isValObject(Ce)&&x(Ce)&&ye!=="impliedEdits"&&A.crawl(Ce,ce,X+1,$e)}})},A.isValObject=function(Se){return Se&&Se.valType!==void 0},A.findArrayAttributes=function(Se){var ce=[],ne=[],fe=[],X,ye;function Ce(Fe,ie,we,se){ne=ne.slice(0,se).concat([ie]),fe=fe.slice(0,se).concat([Fe&&Fe._isLinkedToArray]);var ue=Fe&&(Fe.valType==="data_array"||Fe.arrayOk===!0)&&!(ne[se-1]==="colorbar"&&(ie==="ticktext"||ie==="tickvals"));ue&&$e(X,0,"")}function $e(Fe,ie,we){var se=Fe[ne[ie]],ue=we+ne[ie];if(ie===ne.length-1)C(se)&&ce.push(ye+ue);else if(fe[ie]){if(Array.isArray(se))for(var pe=0;pe=Ce.length)return!1;X=(m.transformsRegistry[Ce[$e].type]||{}).attributes,ye=X&&X[ce[2]],fe=3}else{var ke=Se._module;if(ke||(ke=(m.modules[Se.type||l.type.dflt]||{})._module),!ke)return!1;if(X=ke.attributes,ye=X&&X[ne],!ye){var Ne=ke.basePlotModule;Ne&&Ne.attributes&&(ye=Ne.attributes[ne])}ye||(ye=l[ne])}return R(ye,ce,fe)},A.getLayoutValObject=function(Se,ce){var ne=k(Se,ce[0]);return R(ne,ce,1)};function k(Se,ce){var ne,fe,X,ye,Ce=Se._basePlotModules;if(Ce){var $e;for(ne=0;ne=ye.length)return!1;if(Se.dimensions===2){if(ne++,ce.length===ne)return Se;var Ce=ce[ne];if(!F(Ce))return!1;Se=ye[X][Ce]}else Se=ye[X]}else Se=ye}}return Se}function F(Se){return Se===Math.round(Se)&&Se>=0}function H(Se){var ce,ne;ce=m.modules[Se]._module,ne=ce.basePlotModule;var fe={};fe.type=null;var X=v({},l),ye=v({},ce.attributes);A.crawl(ye,function(ke,Ne,Ve,Oe,Fe){_(X,Fe).set(void 0),ke===void 0&&_(ye,Fe).set(void 0)}),v(fe,X),m.traceIs(Se,"noOpacity")&&delete fe.opacity,m.traceIs(Se,"showLegend")||(delete fe.showlegend,delete fe.legendgroup),m.traceIs(Se,"noHover")&&(delete fe.hoverinfo,delete fe.hoverlabel),ce.selectPoints||delete fe.selectedpoints,v(fe,ye),ne.attributes&&v(fe,ne.attributes),fe.type=Se;var Ce={meta:ce.meta||{},categories:ce.categories||{},animatable:!!ce.animatable,type:Se,attributes:J(fe)};if(ce.layoutAttributes){var $e={};v($e,ce.layoutAttributes),Ce.layoutAttributes=J($e)}return ce.animatable||A.crawl(Ce,function(ke){A.isValObject(ke)&&"anim"in ke&&delete ke.anim}),Ce}function j(){var Se={},ce,ne;v(Se,c);for(ce in m.subplotsRegistry)if(ne=m.subplotsRegistry[ce],!!ne.layoutAttributes)if(Array.isArray(ne.attr))for(var fe=0;fe=x&&(v._input||{})._templateitemname;_&&(C=x);var $=g+"["+C+"]",S;function O(){S={},_&&(S[$]={},S[$][l]=_)}O();function D(R,F){S[R]=F}function N(R,F){_?m.nestedProperty(S[$],R).set(F):S[$+"."+R]=F}function M(){var R=S;return O(),R}function k(R,F){R&&N(R,F);var H=M();for(var j in H)m.nestedProperty(d,j).set(H[j])}return{modifyBase:D,modifyItem:N,getUpdateObj:M,applyUpdate:k}}},1549:function(L,A,s){var m=s(9898),h=s(3972),l=s(4875),c=s(1828),i=s(3893),u=s(3306),d=s(7901),g=s(1424),v=s(2998),x=s(4168),C=s(9298),_=s(8783),$=s(9082),S=$.enforce,O=$.clean,D=s(1739).doAutoRange,N="start",M="middle",k="end";A.layoutStyles=function(ne){return c.syncOrAsync([l.doAutoMargin,F],ne)};function R(ne,fe,X){for(var ye=0;ye=ne[1]||Ce[1]<=ne[0])&&$e[0]fe[0])return!0}return!1}function F(ne){var fe=ne._fullLayout,X=fe._size,ye=X.p,Ce=C.list(ne,"",!0),$e,ke,Ne,Ve,Oe,Fe;if(fe._paperdiv.style({width:ne._context.responsive&&fe.autosize&&!ne._context._hasZeroWidth&&!ne.layout.width?"100%":fe.width+"px",height:ne._context.responsive&&fe.autosize&&!ne._context._hasZeroHeight&&!ne.layout.height?"100%":fe.height+"px"}).selectAll(".main-svg").call(g.setSize,fe.width,fe.height),ne._context.setBackground(ne,fe.paper_bgcolor),A.drawMainTitle(ne),x.manage(ne),!fe._has("cartesian"))return l.previousPromises(ne);function ie(wt,vt,$t){var Ze=wt._lw/2;if(wt._id.charAt(0)==="x"){if(vt){if($t==="top")return vt._offset-ye-Ze}else return X.t+X.h*(1-(wt.position||0))+Ze%1;return vt._offset+vt._length+ye+Ze}if(vt){if($t==="right")return vt._offset+vt._length+ye+Ze}else return X.l+X.w*(wt.position||0)+Ze%1;return vt._offset-ye-Ze}for($e=0;$e0&&(ae(ne,$e,Oe,Ve),Ne.attr({x:ke,y:$e,"text-anchor":ye,dy:ge(fe.yanchor)}).call(i.positionText,ke,$e))}};function ee(ne,fe,X,ye,Ce){var $e=fe.yref==="paper"?ne._fullLayout._size.h:ne._fullLayout.height,ke=c.isTopAnchor(fe)?ye:ye-Ce,Ne=X==="b"?$e-ke:ke;return c.isTopAnchor(fe)&&X==="t"||c.isBottomAnchor(fe)&&X==="b"?!1:Ne.5?"t":"b",ke=ne._fullLayout.margin[$e],Ne=0;return fe.yref==="paper"?Ne=X+fe.pad.t+fe.pad.b:fe.yref==="container"&&(Ne=J($e,ye,Ce,ne._fullLayout.height,X)+fe.pad.t+fe.pad.b),Ne>ke?Ne:0}function ae(ne,fe,X,ye){var Ce="title.automargin",$e=ne._fullLayout.title,ke=$e.y>.5?"t":"b",Ne={x:$e.x,y:$e.y,t:0,b:0},Ve={};$e.yref==="paper"&&ee(ne,$e,ke,fe,ye)?Ne[ke]=X:$e.yref==="container"&&(Ve[ke]=X,ne._fullLayout._reservedMargin[Ce]=Ve),l.allowAutoMargin(ne,Ce),l.autoMargin(ne,Ce,Ne)}function Q(ne,fe){var X=ne.title,ye=ne._size,Ce=0;switch(fe===N?Ce=X.pad.l:fe===k&&(Ce=-X.pad.r),X.xref){case"paper":return ye.l+ye.w*X.x+Ce;case"container":default:return ne.width*X.x+Ce}}function he(ne,fe){var X=ne.title,ye=ne._size,Ce=0;if(fe==="0em"||!fe?Ce=-X.pad.b:fe===_.CAP_SHIFT+"em"&&(Ce=X.pad.t),X.y==="auto")return ye.t/2;switch(X.yref){case"paper":return ye.t+ye.h-ye.h*X.y+Ce;case"container":default:return ne.height-ne.height*X.y+Ce}}function ge(ne){return ne==="top"?_.CAP_SHIFT+.3+"em":ne==="bottom"?"-0.3em":_.MID_SHIFT+"em"}function Se(ne){var fe=ne.title,X=M;return c.isRightAnchor(fe)?X=k:c.isLeftAnchor(fe)&&(X=N),X}function ce(ne){var fe=ne.title,X="0em";return c.isTopAnchor(fe)?X=_.CAP_SHIFT+"em":c.isMiddleAnchor(fe)&&(X=_.MID_SHIFT+"em"),X}A.doTraceStyle=function(ne){var fe=ne.calcdata,X=[],ye;for(ye=0;yece?H.push({code:"unused",traceType:Q,templateCount:Se,dataCount:ce}):ce>Se&&H.push({code:"reused",traceType:Q,templateCount:Se,dataCount:ce})}}function ne(fe,X){for(var ye in fe)if(ye.charAt(0)!=="_"){var Ce=fe[ye],$e=$(fe,ye,X);h(Ce)?(Array.isArray(fe)&&Ce._template===!1&&Ce.templateitemname&&H.push({code:"missing",path:$e,templateitemname:Ce.templateitemname}),ne(Ce,$e)):Array.isArray(Ce)&&S(Ce)&&ne(Ce,$e)}}if(ne({data:P,layout:j},""),H.length)return H.map(O)};function S(D){for(var N=0;N1&&H.push(_("object","layout"))),h.supplyDefaults(j);for(var J=j._fullData,K=P.length,ae=0;aeQ.length&&F.push(_("unused",H,K.concat(Q.length)));var fe=Q.length,X=Array.isArray(ne);X&&(fe=Math.min(fe,ne.length));var ye,Ce,$e,ke,Ne;if(he.dimensions===2)for(Ce=0;CeQ[Ce].length&&F.push(_("unused",H,K.concat(Ce,Q[Ce].length)));var Ve=Q[Ce].length;for(ye=0;ye<(X?Math.min(Ve,ne[Ce].length):Ve);ye++)$e=X?ne[Ce][ye]:ne,ke=ae[Ce][ye],Ne=Q[Ce][ye],m.validate(ke,$e)?Ne!==ke&&Ne!==+ke&&F.push(_("dynamic",H,K.concat(Ce,ye),ke,Ne)):F.push(_("value",H,K.concat(Ce,ye),ke))}else F.push(_("array",H,K.concat(Ce),ae[Ce]));else for(Ce=0;Ce0&&Math.round(O)===O)S=O;else return{vals:C}}for(var D=v.calendar,N=_==="start",M=_==="end",k=g[x+"period0"],R=l(k,D)||0,F=[],H=[],j=[],P=C.length,ee=0;eeJ;)Q=c(Q,-S,D);for(;Q<=J;)Q=c(Q,S,D);ae=c(Q,-S,D)}else{for(K=Math.round((J-R)/$),Q=R+K*$;Q>J;)Q-=$;for(;Q<=J;)Q+=$;ae=Q-$}F[ee]=N?ae:M?Q:(ae+Q)/2,H[ee]=ae,j[ee]=Q}return{vals:F,starts:H,ends:j}}},9502:function(L){L.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},1739:function(L,A,s){var m=s(9898),h=s(2770),l=s(1828),c=s(606).FP_SAFE,i=s(3972),u=s(1424),d=s(1675),g=d.getFromId,v=d.isLinked;L.exports={applyAutorangeOptions:K,getAutoRange:x,makePadFn:_,doAutoRange:D,findExtremes:N,concatExtremes:O};function x(ae,Q){var he,ge,Se=[],ce=ae._fullLayout,ne=_(ce,Q,0),fe=_(ce,Q,1),X=O(ae,Q),ye=X.min,Ce=X.max;if(ye.length===0||Ce.length===0)return l.simpleMap(Q.range,Q.r2l);var $e=ye[0].val,ke=Ce[0].val;for(he=1;he0&&(Re=se-ne(le)-fe(Te),Re>ue?ze/Re>pe&&(de=le,Me=Te,pe=ze/Re):ze/se>pe&&(de={val:le.val,nopad:1},Me={val:Te.val,nopad:1},pe=ze/se));function We(qe,gt){return Math.max(qe,fe(gt))}if($e===ke){var ot=$e-1,dt=$e+1;if(ie)if($e===0)Se=[0,1];else{var Ge=($e>0?Ce:ye).reduce(We,0),Xe=$e/(1-Math.min(.5,Ge/se));Se=$e>0?[0,Xe]:[Xe,0]}else we?Se=[Math.max(0,ot),Math.max(1,dt)]:Se=[ot,dt]}else ie?(de.val>=0&&(de={val:0,nopad:1}),Me.val<=0&&(Me={val:0,nopad:1})):we&&(de.val-pe*ne(de)<0&&(de={val:0,nopad:1}),Me.val<=0&&(Me={val:1,nopad:1})),pe=(Me.val-de.val-C(Q,le.val,Te.val))/(se-ne(de)-fe(Me)),Se=[de.val-pe*ne(de),Me.val+pe*fe(Me)];return Se=K(Se,Q),Q.limitRange&&Q.limitRange(),Ve&&Se.reverse(),l.simpleMap(Se,Q.l2r||Number)}function C(ae,Q,he){var ge=0;if(ae.rangebreaks)for(var Se=ae.locateBreaks(Q,he),ce=0;ce0?he.ppadplus:he.ppadminus)||he.ppad||0),le=ue((ae._m>0?he.ppadminus:he.ppadplus)||he.ppad||0),Te=ue(he.vpadplus||he.vpad),de=ue(he.vpadminus||he.vpad);if(!ye){if(we=1/0,se=-1/0,X)for($e=0;$e0&&(we=ke),ke>se&&ke-c&&(we=ke),ke>se&&ke=ze;$e--)Re($e);return{min:ge,max:Se,opts:he}}function M(ae,Q,he,ge){R(ae,Q,he,ge,H)}function k(ae,Q,he,ge){R(ae,Q,he,ge,j)}function R(ae,Q,he,ge,Se){for(var ce=ge.tozero,ne=ge.extrapad,fe=!0,X=0;X=he&&(ye.extrapad||!ne)){fe=!1;break}else Se(Q,ye.val)&&ye.pad<=he&&(ne||!ye.extrapad)&&(ae.splice(X,1),X--)}if(fe){var Ce=ce&&Q===0;ae.push({val:Q,pad:Ce?0:he,extrapad:Ce?!1:ne})}}function F(ae){return h(ae)&&Math.abs(ae)=Q}function P(ae,Q){var he=Q.autorangeoptions;return he&&he.minallowed!==void 0&&J(Q,he.minallowed,he.maxallowed)?he.minallowed:he&&he.clipmin!==void 0&&J(Q,he.clipmin,he.clipmax)?Math.max(ae,Q.d2l(he.clipmin)):ae}function ee(ae,Q){var he=Q.autorangeoptions;return he&&he.maxallowed!==void 0&&J(Q,he.minallowed,he.maxallowed)?he.maxallowed:he&&he.clipmax!==void 0&&J(Q,he.clipmin,he.clipmax)?Math.min(ae,Q.d2l(he.clipmax)):ae}function J(ae,Q,he){return Q!==void 0&&he!==void 0?(Q=ae.d2l(Q),he=ae.d2l(he),Q=X&&(ce=X,he=X),ne<=X&&(ne=X,ge=X)}}return he=P(he,Q),ge=ee(ge,Q),[he,ge]}},3074:function(L){L.exports=function(s,m,h){var l,c;if(h){var i=m==="reversed"||m==="min reversed"||m==="max reversed";l=h[i?1:0],c=h[i?0:1]}var u=s("autorangeoptions.minallowed",c===null?l:void 0),d=s("autorangeoptions.maxallowed",l===null?c:void 0);u===void 0&&s("autorangeoptions.clipmin"),d===void 0&&s("autorangeoptions.clipmax"),s("autorangeoptions.include")}},9298:function(L,A,s){var m=s(9898),h=s(2770),l=s(4875),c=s(3972),i=s(1828),u=i.strTranslate,d=s(3893),g=s(2998),v=s(7901),x=s(1424),C=s(3838),_=s(6287),$=s(606),S=$.ONEMAXYEAR,O=$.ONEAVGYEAR,D=$.ONEMINYEAR,N=$.ONEMAXQUARTER,M=$.ONEAVGQUARTER,k=$.ONEMINQUARTER,R=$.ONEMAXMONTH,F=$.ONEAVGMONTH,H=$.ONEMINMONTH,j=$.ONEWEEK,P=$.ONEDAY,ee=P/2,J=$.ONEHOUR,K=$.ONEMIN,ae=$.ONESEC,Q=$.MINUS_SIGN,he=$.BADNUM,ge={K:"zeroline"},Se={K:"gridline",L:"path"},ce={K:"minor-gridline",L:"path"},ne={K:"tick",L:"path"},fe={K:"tick",L:"text"},X={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},ye=s(8783),Ce=ye.MID_SHIFT,$e=ye.CAP_SHIFT,ke=ye.LINE_SPACING,Ne=ye.OPPOSITE_SIDE,Ve=3,Oe=L.exports={};Oe.setConvert=s(1994);var Fe=s(4322),ie=s(1675),we=ie.idSort,se=ie.isLinked;Oe.id2name=ie.id2name,Oe.name2id=ie.name2id,Oe.cleanId=ie.cleanId,Oe.list=ie.list,Oe.listIds=ie.listIds,Oe.getFromId=ie.getFromId,Oe.getFromTrace=ie.getFromTrace;var ue=s(1739);Oe.getAutoRange=ue.getAutoRange,Oe.findExtremes=ue.findExtremes;var pe=1e-4;function le(He){var De=(He[1]-He[0])*pe;return[He[0]-De,He[1]+De]}Oe.coerceRef=function(He,De,St,kt,Pt,Bt){var Ut=kt.charAt(kt.length-1),Ot=St._fullLayout._subplots[Ut+"axis"],_t=kt+"ref",qt={};return Pt||(Pt=Ot[0]||(typeof Bt=="string"?Bt:Bt[0])),Bt||(Bt=Pt),Ot=Ot.concat(Ot.map(function(cn){return cn+" domain"})),qt[_t]={valType:"enumerated",values:Ot.concat(Bt?typeof Bt=="string"?[Bt]:Bt:[]),dflt:Pt},i.coerce(He,De,qt,_t)},Oe.getRefType=function(He){return He===void 0?He:He==="paper"?"paper":He==="pixel"?"pixel":/( domain)$/.test(He)?"domain":"range"},Oe.coercePosition=function(He,De,St,kt,Pt,Bt){var Ut,Ot,_t=Oe.getRefType(kt);if(_t!=="range")Ut=i.ensureNumber,Ot=St(Pt,Bt);else{var qt=Oe.getFromId(De,kt);Bt=qt.fraction2r(Bt),Ot=St(Pt,Bt),Ut=qt.cleanPos}He[Pt]=Ut(Ot)},Oe.cleanPosition=function(He,De,St){var kt=St==="paper"||St==="pixel"?i.ensureNumber:Oe.getFromId(De,St).cleanPos;return kt(He)},Oe.redrawComponents=function(He,De){De=De||Oe.listIds(He);var St=He._fullLayout;function kt(Pt,Bt,Ut,Ot){for(var _t=c.getComponentMethod(Pt,Bt),qt={},cn=0;cn2e-6||((St-He._forceTick0)/He._minDtick%1+1.000001)%1>2e-6)&&(He._minDtick=0))},Oe.saveRangeInitial=function(He,De){for(var St=Oe.list(He,"",!0),kt=!1,Pt=0;PtQt*.3||qt(kt)||qt(Pt))){var nn=St.dtick/2;He+=He+nnUt){var Ot=Number(St.substr(1));Bt.exactYears>Ut&&Ot%12===0?He=Oe.tickIncrement(He,"M6","reverse")+P*1.5:Bt.exactMonths>Ut?He=Oe.tickIncrement(He,"M1","reverse")+P*15.5:He-=ee;var _t=Oe.tickIncrement(He,St);if(_t<=kt)return _t}return He}Oe.prepMinorTicks=function(He,De,St){if(!De.minor.dtick){delete He.dtick;var kt=De.dtick&&h(De._tmin),Pt;if(kt){var Bt=Oe.tickIncrement(De._tmin,De.dtick,!0);Pt=[De._tmin,Bt*.99+De._tmin*.01]}else{var Ut=i.simpleMap(De.range,De.r2l);Pt=[Ut[0],.8*Ut[0]+.2*Ut[1]]}if(He.range=i.simpleMap(Pt,De.l2r),He._isMinor=!0,Oe.prepTicks(He,St),kt){var Ot=h(De.dtick),_t=h(He.dtick),qt=Ot?De.dtick:+De.dtick.substring(1),cn=_t?He.dtick:+He.dtick.substring(1);Ot&&_t?We(qt,cn)?qt===2*j&&cn===2*P&&(He.dtick=j):qt===2*j&&cn===3*P?He.dtick=j:qt===j&&!(De._input.minor||{}).nticks?He.dtick=P:ot(qt/cn,2.5)?He.dtick=qt/2:He.dtick=qt:String(De.dtick).charAt(0)==="M"?_t?He.dtick="M1":We(qt,cn)?qt>=12&&cn===2&&(He.dtick="M3"):He.dtick=De.dtick:String(He.dtick).charAt(0)==="L"?String(De.dtick).charAt(0)==="L"?We(qt,cn)||(He.dtick=ot(qt/cn,2.5)?De.dtick/2:De.dtick):He.dtick="D1":He.dtick==="D2"&&+De.dtick>1&&(He.dtick=1)}He.range=De.range}De.minor._tick0Init===void 0&&(He.tick0=De.tick0)};function We(He,De){return Math.abs((He/De+.5)%1-.5)<.001}function ot(He,De){return Math.abs(He/De-1)<.001}Oe.prepTicks=function(He,De){var St=i.simpleMap(He.range,He.r2l,void 0,void 0,De);if(He.tickmode==="auto"||!He.dtick){var kt=He.nticks,Pt;kt||(He.type==="category"||He.type==="multicategory"?(Pt=He.tickfont?i.bigFont(He.tickfont.size||12):15,kt=He._length/Pt):(Pt=He._id.charAt(0)==="y"?40:80,kt=i.constrain(He._length/Pt,4,9)+1),He._name==="radialaxis"&&(kt*=2)),He.minor&&He.minor.tickmode!=="array"||He.tickmode==="array"&&(kt*=100),He._roughDTick=Math.abs(St[1]-St[0])/kt,Oe.autoTicks(He,He._roughDTick),He._minDtick>0&&He.dtick0?(Bt=kt-1,Ut=kt):(Bt=kt,Ut=kt);var Ot=He[Bt].value,_t=He[Ut].value,qt=Math.abs(_t-Ot),cn=St||qt,Qt=0;cn>=D?qt>=D&&qt<=S?Qt=qt:Qt=O:St===M&&cn>=k?qt>=k&&qt<=N?Qt=qt:Qt=M:cn>=H?qt>=H&&qt<=R?Qt=qt:Qt=F:St===j&&cn>=j?Qt=j:cn>=P?Qt=P:St===ee&&cn>=ee?Qt=ee:St===J&&cn>=J&&(Qt=J);var nn;Qt>=qt&&(Qt=qt,nn=!0);var Sn=Pt+Qt;if(De.rangebreaks&&Qt>0){for(var bn=84,gn=0,Qn=0;Qnj&&(Qt=qt)}(Qt>0||kt===0)&&(He[kt].periodX=Pt+Qt/2)}}Oe.calcTicks=function(De,St){for(var kt=De.type,Pt=De.calendar,Bt=De.ticklabelstep,Ut=De.ticklabelmode==="period",Ot=i.simpleMap(De.range,De.r2l,void 0,void 0,St),_t=Ot[1]=(Qn?0:1);Bn--){var Hr=!Bn;Bn?(De._dtickInit=De.dtick,De._tick0Init=De.tick0):(De.minor._dtickInit=De.minor.dtick,De.minor._tick0Init=De.minor.tick0);var fr=Bn?De:i.extendFlat({},De,De.minor);if(Hr?Oe.prepMinorTicks(fr,De,St):Oe.prepTicks(fr,St),fr.tickmode==="array"){Bn?(bn=[],nn=ut(De)):(gn=[],Sn=ut(De));continue}if(fr.tickmode==="sync"){bn=[],nn=gt(De);continue}var Vr=le(Ot),ar=Vr[0],cr=Vr[1],Kr=h(fr.dtick),qr=kt==="log"&&!(Kr||fr.dtick.charAt(0)==="L"),So=Oe.tickFirst(fr,St);if(Bn){if(De._tmin=So,So=cr:bo<=cr;bo=Oe.tickIncrement(bo,Va,_t,Pt)){if(Bn&&Zo++,fr.rangebreaks&&!_t){if(bo=cn)break}if(bn.length>Qt||bo===wa)break;wa=bo;var Yo={value:bo};Bn?(qr&&bo!==(bo|0)&&(Yo.simpleLabel=!0),Bt>1&&Zo%Bt&&(Yo.skipLabel=!0),bn.push(Yo)):(Yo.minor=!0,gn.push(Yo))}}if(Qn){var Fa=De.minor.ticks==="inside"&&De.ticks==="outside"||De.minor.ticks==="outside"&&De.ticks==="inside";if(!Fa){for(var Os=bn.map(function(To){return To.value}),Zl=[],Ys=0;Ys-1;Ya--){if(bn[Ya].drop){bn.splice(Ya,1);continue}bn[Ya].value=or(bn[Ya].value,De);var Ka=De.c2p(bn[Ya].value);(_c?jl>Ka-Lr:jlcn||Zccn&&(Xa.periodX=cn),Zckt&&QtO)De/=O,kt=Pt(10),He.dtick="M"+12*_n(De,kt,tt);else if(Bt>F)De/=F,He.dtick="M"+_n(De,1,Ct);else if(Bt>P){if(He.dtick=_n(De,P,He._hasDayOfWeekBreaks?[1,2,7,14]:Yt),!St){var Ut=Oe.getTickFormat(He),Ot=He.ticklabelmode==="period";Ot&&(He._rawTick0=He.tick0),/%[uVW]/.test(Ut)?He.tick0=i.dateTick0(He.calendar,2):He.tick0=i.dateTick0(He.calendar,1),Ot&&(He._dowTick0=He.tick0)}}else Bt>J?He.dtick=_n(De,J,Ct):Bt>K?He.dtick=_n(De,K,Gt):Bt>ae?He.dtick=_n(De,ae,Gt):(kt=Pt(10),He.dtick=_n(De,kt,tt))}else if(He.type==="log"){He.tick0=0;var _t=i.simpleMap(He.range,He.r2l);if(He._isMinor&&(De*=1.5),De>.7)He.dtick=Math.ceil(De);else if(Math.abs(_t[1]-_t[0])<1){var qt=1.5*Math.abs((_t[1]-_t[0])/De);De=Math.abs(Math.pow(10,_t[1])-Math.pow(10,_t[0]))/qt,kt=Pt(10),He.dtick="L"+_n(De,kt,tt)}else He.dtick=De>.3?"D2":"D1"}else He.type==="category"||He.type==="multicategory"?(He.tick0=0,He.dtick=Math.ceil(Math.max(De,1))):xr(He)?(He.tick0=0,kt=1,He.dtick=_n(De,kt,pn)):(He.tick0=0,kt=Pt(10),He.dtick=_n(De,kt,tt));if(He.dtick===0&&(He.dtick=1),!h(He.dtick)&&typeof He.dtick!="string"){var cn=He.dtick;throw He.dtick=1,"ax.dtick error: "+String(cn)}};function sn(He){var De=He.dtick;if(He._tickexponent=0,!h(De)&&typeof De!="string"&&(De=1),(He.type==="category"||He.type==="multicategory")&&(He._tickround=null),He.type==="date"){var St=He.r2l(He.tick0),kt=He.l2r(St).replace(/(^-|i)/g,""),Pt=kt.length;if(String(De).charAt(0)==="M")Pt>10||kt.substr(5)!=="01-01"?He._tickround="d":He._tickround=+De.substr(1)%12===0?"y":"m";else if(De>=P&&Pt<=10||De>=P*15)He._tickround="d";else if(De>=K&&Pt<=16||De>=J)He._tickround="M";else if(De>=ae&&Pt<=19||De>=K)He._tickround="S";else{var Bt=He.l2r(St+De).replace(/^-/,"").length;He._tickround=Math.max(Pt,Bt)-20,He._tickround<0&&(He._tickround=4)}}else if(h(De)||De.charAt(0)==="L"){var Ut=He.range.map(He.r2d||Number);h(De)||(De=Number(De.substr(1))),He._tickround=2-Math.floor(Math.log(De)/Math.LN10+.01);var Ot=Math.max(Math.abs(Ut[0]),Math.abs(Ut[1])),_t=Math.floor(Math.log(Ot)/Math.LN10+.01),qt=He.minexponent===void 0?3:He.minexponent;Math.abs(_t)>qt&&(vt(He.exponentformat)&&!$t(_t)?He._tickexponent=3*Math.round((_t-1)/3):He._tickexponent=_t)}else He._tickround=null}Oe.tickIncrement=function(He,De,St,kt){var Pt=St?-1:1;if(h(De))return i.increment(He,Pt*De);var Bt=De.charAt(0),Ut=Pt*Number(De.substr(1));if(Bt==="M")return i.incrementMonth(He,Ut,kt);if(Bt==="L")return Math.log(Math.pow(10,He)+Ut)/Math.LN10;if(Bt==="D"){var Ot=De==="D2"?Ft:Nt,_t=He+Pt*.01,qt=i.roundUp(i.mod(_t,1),Ot,St);return Math.floor(_t)+Math.log(m.round(Math.pow(10,qt),1))/Math.LN10}throw"unrecognized dtick "+String(De)},Oe.tickFirst=function(He,De){var St=He.r2l||Number,kt=i.simpleMap(He.range,St,void 0,void 0,De),Pt=kt[1]=0&&Bn<=He._length?Qn:null};Pt.xbnd=[gn(Pt.x-.5),gn(Pt.x+He.dtick-.5)]}return Pt},Oe.hoverLabelText=function(He,De,St){St&&(He=i.extendFlat({},He,{hoverformat:St}));var kt=Array.isArray(De)?De[0]:De,Pt=Array.isArray(De)?De[1]:void 0;if(Pt!==void 0&&Pt!==kt)return Oe.hoverLabelText(He,kt,St)+" - "+Oe.hoverLabelText(He,Pt,St);var Bt=He.type==="log"&&kt<=0,Ut=Oe.tickText(He,He.c2l(Bt?-kt:kt),"hover").text;return Bt?kt===0?"0":Q+Ut:Ut};function Zn(He,De,St){var kt=He.tickfont||{};return{x:De,dx:0,dy:0,text:St||"",fontSize:kt.size,font:kt.family,fontColor:kt.color}}function an(He,De,St,kt){var Pt=He._tickround,Bt=St&&He.hoverformat||Oe.getTickFormat(He);kt&&(h(Pt)?Pt=4:Pt={y:"m",m:"d",d:"M",M:"S",S:4}[Pt]);var Ut=i.formatDate(De.x,Bt,Pt,He._dateFormat,He.calendar,He._extraFormat),Ot,_t=Ut.indexOf(` -`);if(_t!==-1&&(Ot=Ut.substr(_t+1),Ut=Ut.substr(0,_t)),kt&&(Ut==="00:00:00"||Ut==="00:00"?(Ut=Ot,Ot=""):Ut.length===8&&(Ut=Ut.replace(/:00$/,""))),Ot)if(St)Pt==="d"?Ut+=", "+Ot:Ut=Ot+(Ut?", "+Ut:"");else if(!He._inCalcTicks||He._prevDateHead!==Ot)He._prevDateHead=Ot,Ut+="
    "+Ot;else{var qt=wr(He),cn=He._trueSide||He.side;(!qt&&cn==="top"||qt&&cn==="bottom")&&(Ut+="
    ")}De.text=Ut}function Cn(He,De,St,kt,Pt){var Bt=He.dtick,Ut=De.x,Ot=He.tickformat,_t=typeof Bt=="string"&&Bt.charAt(0);if(Pt==="never"&&(Pt=""),kt&&_t!=="L"&&(Bt="L3",_t="L"),Ot||_t==="L")De.text=Ze(Math.pow(10,Ut),He,Pt,kt);else if(h(Bt)||_t==="D"&&i.mod(Ut+.01,1)<.1){var qt=Math.round(Ut),cn=Math.abs(qt),Qt=He.exponentformat;Qt==="power"||vt(Qt)&&$t(qt)?(qt===0?De.text=1:qt===1?De.text="10":De.text="10"+(qt>1?"":Q)+cn+"",De.fontSize*=1.25):(Qt==="e"||Qt==="E")&&cn>2?De.text="1"+Qt+(qt>0?"+":Q)+cn:(De.text=Ze(Math.pow(10,Ut),He,"","fakehover"),Bt==="D1"&&He._id.charAt(0)==="y"&&(De.dy-=De.fontSize/6))}else if(_t==="D")De.text=String(Math.round(Math.pow(10,i.mod(Ut,1)))),De.fontSize*=.75;else throw"unrecognized dtick "+String(Bt);if(He.dtick==="D1"){var nn=String(De.text).charAt(0);(nn==="0"||nn==="1")&&(He._id.charAt(0)==="y"?De.dx-=De.fontSize/4:(De.dy+=De.fontSize/2,De.dx+=(He.range[1]>He.range[0]?1:-1)*De.fontSize*(Ut<0?.5:.25)))}}function jn(He,De){var St=He._categories[Math.round(De.x)];St===void 0&&(St=""),De.text=String(St)}function Wn(He,De,St){var kt=Math.round(De.x),Pt=He._categories[kt]||[],Bt=Pt[1]===void 0?"":String(Pt[1]),Ut=Pt[0]===void 0?"":String(Pt[0]);St?De.text=Ut+" - "+Bt:(De.text=Bt,De.text2=Ut)}function wn(He,De,St,kt,Pt){Pt==="never"?Pt="":He.showexponent==="all"&&Math.abs(De.x/He.dtick)<1e-6&&(Pt="hide"),De.text=Ze(De.x,He,Pt,kt)}function lt(He,De,St,kt,Pt){if(He.thetaunit==="radians"&&!St){var Bt=De.x/180;if(Bt===0)De.text="0";else{var Ut=ft(Bt);if(Ut[1]>=100)De.text=Ze(i.deg2rad(De.x),He,Pt,kt);else{var Ot=De.x<0;Ut[1]===1?Ut[0]===1?De.text="π":De.text=Ut[0]+"π":De.text=["",Ut[0],"","⁄","",Ut[1],"","π"].join(""),Ot&&(De.text=Q+De.text)}}}else De.text=Ze(De.x,He,Pt,kt)}function ft(He){function De(Ot,_t){return Math.abs(Ot-_t)<=1e-6}function St(Ot,_t){return De(_t,0)?Ot:St(_t,Ot%_t)}function kt(Ot){for(var _t=1;!De(Math.round(Ot*_t)/_t,Ot);)_t*=10;return _t}var Pt=kt(He),Bt=He*Pt,Ut=Math.abs(St(Bt,Pt));return[Math.round(Bt/Ut),Math.round(Pt/Ut)]}var wt=["f","p","n","μ","m","","k","M","G","T"];function vt(He){return He==="SI"||He==="B"}function $t(He){return He>14||He<-15}function Ze(He,De,St,kt){var Pt=He<0,Bt=De._tickround,Ut=St||De.exponentformat||"B",Ot=De._tickexponent,_t=Oe.getTickFormat(De),qt=De.separatethousands;if(kt){var cn={exponentformat:Ut,minexponent:De.minexponent,dtick:De.showexponent==="none"?De.dtick:h(He)&&Math.abs(He)||1,range:De.showexponent==="none"?De.range.map(De.r2d):[0,He||1]};sn(cn),Bt=(Number(cn._tickround)||0)+4,Ot=cn._tickexponent,De.hoverformat&&(_t=De.hoverformat)}if(_t)return De._numFormat(_t)(He).replace(/-/g,Q);var Qt=Math.pow(10,-Bt)/2;if(Ut==="none"&&(Ot=0),He=Math.abs(He),He"+bn+"":Ut==="B"&&Ot===9?He+="B":vt(Ut)&&(He+=wt[Ot/3+5])}return Pt?Q+He:He}Oe.getTickFormat=function(He){var De;function St(_t){return typeof _t!="string"?_t:Number(_t.replace("M",""))*F}function kt(_t,qt){var cn=["L","D"];if(typeof _t==typeof qt){if(typeof _t=="number")return _t-qt;var Qt=cn.indexOf(_t.charAt(0)),nn=cn.indexOf(qt.charAt(0));return Qt===nn?Number(_t.replace(/(L|D)/g,""))-Number(qt.replace(/(L|D)/g,"")):Qt-nn}else return typeof _t=="number"?1:-1}function Pt(_t,qt,cn){var Qt=cn||function(bn){return bn},nn=qt[0],Sn=qt[1];return(!nn&&typeof nn!="number"||Qt(nn)<=Qt(_t))&&(!Sn&&typeof Sn!="number"||Qt(Sn)>=Qt(_t))}function Bt(_t,qt){var cn=qt[0]===null,Qt=qt[1]===null,nn=kt(_t,qt[0])>=0,Sn=kt(_t,qt[1])<=0;return(cn||nn)&&(Qt||Sn)}var Ut,Ot;if(He.tickformatstops&&He.tickformatstops.length>0)switch(He.type){case"date":case"linear":{for(De=0;De=0&&Pt.unshift(Pt.splice(cn,1).shift())}});var Ot={false:{left:0,right:0}};return i.syncOrAsync(Pt.map(function(_t){return function(){if(_t){var qt=Oe.getFromId(He,_t);St||(St={}),St.axShifts=Ot,St.overlayingShiftedAx=Ut;var cn=Oe.drawOne(He,qt,St);return qt._shiftPusher&&vo(qt,qt._fullDepth||0,Ot,!0),qt._r=qt.range.slice(),qt._rl=i.simpleMap(qt._r,qt.r2l),cn}}}))},Oe.drawOne=function(He,De,St){St=St||{};var kt=St.axShifts||{},Pt=St.overlayingShiftedAx||[],Bt,Ut,Ot;De.setScale();var _t=He._fullLayout,qt=De._id,cn=qt.charAt(0),Qt=Oe.counterLetter(qt),nn=_t._plots[De._mainSubplot];if(!nn)return;if(De._shiftPusher=De.autoshift||Pt.indexOf(De._id)!==-1||Pt.indexOf(De.overlaying)!==-1,De._shiftPusher&De.anchor==="free"){var Sn=De.linewidth/2||0;De.ticks==="inside"&&(Sn+=De.ticklen),vo(De,Sn,kt,!0),vo(De,De.shift||0,kt,!1)}(St.skipTitle!==!0||De._shift===void 0)&&(De._shift=Cr(De,kt));var bn=nn[cn+"axislayer"],gn=De._mainLinePosition,Qn=gn+=De._shift,Bn=De._mainMirrorPosition,Hr=De._vals=Oe.calcTicks(De),fr=[De.mirror,Qn,Bn].join("_");for(Bt=0;Bt0?Bo.bottom-Es:0,qi))));var Ls=0,cu=0;if(De._shiftPusher&&(Ls=Math.max(qi,Bo.height>0?li==="l"?Es-Bo.left:Bo.right-Es:0),De.title.text!==_t._dfltTitle[cn]&&(cu=(De._titleStandoff||0)+(De._titleScoot||0),li==="l"&&(cu+=un(De))),De._fullDepth=Math.max(Ls,cu)),De.automargin){Ks={x:0,y:0,r:0,l:0,t:0,b:0};var uu=[0,1],Vf=typeof De._shift=="number"?De._shift:0;if(cn==="x"){if(li==="b"?Ks[li]=De._depth:(Ks[li]=De._depth=Math.max(Bo.width>0?Es-Bo.top:0,qi),uu.reverse()),Bo.width>0){var Ma=Bo.right-(De._offset+De._length);Ma>0&&(Ks.xr=1,Ks.r=Ma);var Uf=De._offset-Bo.left;Uf>0&&(Ks.xl=0,Ks.l=Uf)}}else if(li==="l"?(De._depth=Math.max(Bo.height>0?Es-Bo.left:0,qi),Ks[li]=De._depth-Vf):(De._depth=Math.max(Bo.height>0?Bo.right-Es:0,qi),Ks[li]=De._depth+Vf,uu.reverse()),Bo.height>0){var gc=Bo.bottom-(De._offset+De._length);gc>0&&(Ks.yb=0,Ks.b=gc);var al=De._offset-Bo.top;al>0&&(Ks.yt=1,Ks.t=al)}Ks[Qt]=De.anchor==="free"?De.position:De._anchorAxis.domain[uu[0]],De.title.text!==_t._dfltTitle[cn]&&(Ks[li]+=un(De)+(De.title.standoff||0)),De.mirror&&De.anchor!=="free"&&(Bs={x:0,y:0,r:0,l:0,t:0,b:0},Bs[Rs]=De.linewidth,De.mirror&&De.mirror!==!0&&(Bs[Rs]+=qi),De.mirror===!0||De.mirror==="ticks"?Bs[Qt]=De._anchorAxis.domain[uu[1]]:(De.mirror==="all"||De.mirror==="allticks")&&(Bs[Qt]=[De._counterDomainMin,De._counterDomainMax][uu[1]]))}Ms&&(df=c.getComponentMethod("rangeslider","autoMarginOpts")(He,De)),typeof De.automargin=="string"&&(it(Ks,De.automargin),it(Bs,De.automargin)),l.autoMargin(He,Gn(De),Ks),l.autoMargin(He,Ir(De),Bs),l.autoMargin(He,Tr(De),df)}),i.syncOrAsync(Mi)}};function it(He,De){if(He){var St=Object.keys(X).reduce(function(kt,Pt){return De.indexOf(Pt)!==-1&&X[Pt].forEach(function(Bt){kt[Bt]=1}),kt},{});Object.keys(He).forEach(function(kt){St[kt]||(kt.length===1?He[kt]=0:delete He[kt])})}}function ht(He,De){var St=[],kt,Pt=function(Bt,Ut){var Ot=Bt.xbnd[Ut];Ot!==null&&St.push(i.extendFlat({},Bt,{x:Ot}))};if(De.length){for(kt=0;kt60?-.5*Va:He.side==="top"!==cn?-Va:0};else if(Kr==="y"){if(So=!cn&&cr==="left"||cn&&cr==="right",Vr=So?1:-1,cn&&(Vr*=-1),Bn=nn,Hr=Sn*Vr,fr=0,!cn&&Math.abs(qr)===90&&(qr===-90&&cr==="left"||qr===90&&cr==="right"?fr=$e:fr=.5),cn){var wa=h(qr)?+qr:0;if(wa!==0){var bo=i.deg2rad(wa);ar=Math.abs(Math.sin(bo))*$e*Vr,fr=0}}Qn.xFn=function(Zo){return Zo.dx+De-(Bn+Zo.fontSize*fr)*Vr+ar*Zo.fontSize},Qn.yFn=function(Zo){return Zo.dy+Hr+Zo.fontSize*Ce},Qn.anchorFn=function(Zo,oa){return h(oa)&&Math.abs(oa)===90?"middle":So?"end":"start"},Qn.heightFn=function(Zo,oa,Va){return He.side==="right"&&(oa*=-1),oa<-30?-Va:oa<30?-.5*Va:0}}return Qn};function Zt(He){return[He.text,He.x,He.axInfo,He.font,He.fontSize,He.fontColor].join("_")}Oe.drawTicks=function(He,De,St){St=St||{};var kt=De._id+"tick",Pt=[].concat(De.minor&&De.minor.ticks?St.vals.filter(function(Ut){return Ut.minor&&!Ut.noTick}):[]).concat(De.ticks?St.vals.filter(function(Ut){return!Ut.minor&&!Ut.noTick}):[]),Bt=St.layer.selectAll("path."+kt).data(Pt,Zt);Bt.exit().remove(),Bt.enter().append("path").classed(kt,1).classed("ticks",1).classed("crisp",St.crisp!==!1).each(function(Ut){return v.stroke(m.select(this),Ut.minor?De.minor.tickcolor:De.tickcolor)}).style("stroke-width",function(Ut){return x.crispRound(He,Ut.minor?De.minor.tickwidth:De.tickwidth,1)+"px"}).attr("d",St.path).style("display",null),ro(De,[ne]),Bt.attr("transform",St.transFn)},Oe.drawGrid=function(He,De,St){if(St=St||{},De.tickmode!=="sync"){var kt=De._id+"grid",Pt=De.minor&&De.minor.showgrid,Bt=Pt?St.vals.filter(function(Bn){return Bn.minor}):[],Ut=De.showgrid?St.vals.filter(function(Bn){return!Bn.minor}):[],Ot=St.counterAxis;if(Ot&&Oe.shouldShowZeroLine(He,De,Ot))for(var _t=De.tickmode==="array",qt=0;qt=0;bn--){var gn=bn?nn:Sn;if(gn){var Qn=gn.selectAll("path."+kt).data(bn?Ut:Bt,Zt);Qn.exit().remove(),Qn.enter().append("path").classed(kt,1).classed("crisp",St.crisp!==!1),Qn.attr("transform",St.transFn).attr("d",St.path).each(function(Bn){return v.stroke(m.select(this),Bn.minor?De.minor.gridcolor:De.gridcolor||"#ddd")}).style("stroke-dasharray",function(Bn){return x.dashStyle(Bn.minor?De.minor.griddash:De.griddash,Bn.minor?De.minor.gridwidth:De.gridwidth)}).style("stroke-width",function(Bn){return(Bn.minor?Qt:De._gw)+"px"}).style("display",null),typeof St.path=="function"&&Qn.attr("d",St.path)}}ro(De,[Se,ce])}},Oe.drawZeroLine=function(He,De,St){St=St||St;var kt=De._id+"zl",Pt=Oe.shouldShowZeroLine(He,De,St.counterAxis),Bt=St.layer.selectAll("path."+kt).data(Pt?[{x:0,id:De._id}]:[]);Bt.exit().remove(),Bt.enter().append("path").classed(kt,1).classed("zl",1).classed("crisp",St.crisp!==!1).each(function(){St.layer.selectAll("path").sort(function(Ut,Ot){return we(Ut.id,Ot.id)})}),Bt.attr("transform",St.transFn).attr("d",St.path).call(v.stroke,De.zerolinecolor||v.defaultLine).style("stroke-width",x.crispRound(He,De.zerolinewidth,De._gw||1)+"px").style("display",null),ro(De,[ge])},Oe.drawLabels=function(He,De,St){St=St||{};var kt=He._fullLayout,Pt=De._id,Bt=Pt.charAt(0),Ut=St.cls||Pt+"tick",Ot=St.vals.filter(function(Vr){return Vr.text}),_t=St.labelFns,qt=St.secondary?0:De.tickangle,cn=(De._prevTickAngles||{})[Ut],Qt=St.layer.selectAll("g."+Ut).data(De.showticklabels?Ot:[],Zt),nn=[];Qt.enter().append("g").classed(Ut,1).append("text").attr("text-anchor","middle").each(function(Vr){var ar=m.select(this),cr=He._promises.length;ar.call(d.positionText,_t.xFn(Vr),_t.yFn(Vr)).call(x.font,Vr.font,Vr.fontSize,Vr.fontColor).text(Vr.text).call(d.convertToTspans,He),He._promises[cr]?nn.push(He._promises.pop().then(function(){Sn(ar,qt)})):Sn(ar,qt)}),ro(De,[fe]),Qt.exit().remove(),St.repositionOnUpdate&&Qt.each(function(Vr){m.select(this).select("text").call(d.positionText,_t.xFn(Vr),_t.yFn(Vr))});function Sn(Vr,ar){Vr.each(function(cr){var Kr=m.select(this),qr=Kr.select(".text-math-group"),So=_t.anchorFn(cr,ar),wa=St.transFn.call(Kr.node(),cr)+(h(ar)&&+ar!=0?" rotate("+ar+","+_t.xFn(cr)+","+(_t.yFn(cr)-cr.fontSize/2)+")":""),bo=d.lineCount(Kr),Zo=ke*cr.fontSize,oa=_t.heightFn(cr,h(ar)?+ar:0,(bo-1)*Zo);if(oa&&(wa+=u(0,oa)),qr.empty()){var Va=Kr.select("text");Va.attr({transform:wa,"text-anchor":So}),Va.style("opacity",1),De._adjustTickLabelsOverflow&&De._adjustTickLabelsOverflow()}else{var Yo=x.bBox(qr.node()).width,Fa=Yo*{end:-.5,start:.5}[So];qr.attr("transform",wa+u(Fa,0))}})}De._adjustTickLabelsOverflow=function(){var Vr=De.ticklabeloverflow;if(!(!Vr||Vr==="allow")){var ar=Vr.indexOf("hide")!==-1,cr=De._id.charAt(0)==="x",Kr=0,qr=cr?He._fullLayout.width:He._fullLayout.height;if(Vr.indexOf("domain")!==-1){var So=i.simpleMap(De.range,De.r2l);Kr=De.l2p(So[0])+De._offset,qr=De.l2p(So[1])+De._offset}var wa=Math.min(Kr,qr),bo=Math.max(Kr,qr),Zo=De.side,oa=1/0,Va=-1/0;Qt.each(function(Zl){var Ys=m.select(this),Ec=Ys.select(".text-math-group");if(Ec.empty()){var ks=x.bBox(Ys.node()),Wa=0;cr?(ks.right>bo||ks.leftbo||ks.top+(De.tickangle?0:Zl.fontSize/4)De["_visibleLabelMin_"+So._id]?Zl.style("display","none"):bo.K==="tick"&&!wa&&Zl.style("display",null)})})})})},Sn(Qt,cn+1?cn:qt);function bn(){return nn.length&&Promise.all(nn)}var gn=null;function Qn(){if(Sn(Qt,qt),Ot.length&&Bt==="x"&&!h(qt)&&(De.type!=="log"||String(De.dtick).charAt(0)!=="D")){gn=0;var Vr=0,ar=[],cr;if(Qt.each(function(ks){Vr=Math.max(Vr,ks.fontSize);var Wa=De.l2p(ks.x),ss=pr(this),Ya=x.bBox(ss.node());ar.push({top:0,bottom:10,height:10,left:Wa-Ya.width/2,right:Wa+Ya.width/2+2,width:Ya.width+2})}),(De.tickson==="boundaries"||De.showdividers)&&!St.secondary){var Kr=2;for(De.ticks&&(Kr+=De.tickwidth/2),cr=0;cr1&&St1)for(Pt=1;Pt=Pt.min&&Hek*2}function C(S){return Math.max(1,(S-1)/1e3)}function _(S,O){for(var D=S.length,N=C(D),M=0,k=0,R={},F=0;FM*2}function $(S){return c(S[0])&&c(S[1])}},1453:function(L,A,s){var m=s(2770),h=s(3972),l=s(1828),c=s(4467),i=s(5501),u=s(3838),d=s(6218),g=s(8701),v=s(6115),x=s(9426),C=s(5258),_=s(2128),$=s(3608),S=s(1994),O=s(5555).WEEKDAY_PATTERN,D=s(5555).HOUR_PATTERN;L.exports=function(F,H,j,P,ee){var J=P.letter,K=P.font||{},ae=P.splomStash||{},Q=j("visible",!P.visibleDflt),he=H._template||{},ge=H.type||he.type||"-",Se;if(ge==="date"){var ce=h.getComponentMethod("calendars","handleDefaults");ce(F,H,"calendar",P.calendar),P.noTicklabelmode||(Se=j("ticklabelmode"))}var ne="";(!P.noTicklabelposition||ge==="multicategory")&&(ne=l.coerce(F,H,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:Se==="period"?["outside","inside"]:J==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),P.noTicklabeloverflow||j("ticklabeloverflow",ne.indexOf("inside")!==-1?"hide past domain":ge==="category"||ge==="multicategory"?"allow":"hide past div"),S(H,ee),$(F,H,j,P),C(F,H,j,P),ge!=="category"&&!P.noHover&&j("hoverformat");var fe=j("color"),X=fe!==u.color.dflt?fe:K.color,ye=ae.label||ee._dfltTitle[J];if(x(F,H,j,ge,P),!Q)return H;j("title.text",ye),l.coerceFont(j,"title.font",{family:K.family,size:l.bigFont(K.size),color:X}),d(F,H,j,ge);var Ce=P.hasMinor;if(Ce&&(c.newContainer(H,"minor"),d(F,H,j,ge,{isMinor:!0})),v(F,H,j,ge,P),g(F,H,j,P),Ce){var $e=P.isMinor;P.isMinor=!0,g(F,H,j,P),P.isMinor=$e}_(F,H,j,{dfltColor:fe,bgColor:P.bgColor,showGrid:P.showGrid,hasMinor:Ce,attributes:u}),Ce&&!H.minor.ticks&&!H.minor.showgrid&&delete H.minor,(H.showline||H.ticks)&&j("mirror");var ke=ge==="multicategory";if(!P.noTickson&&(ge==="category"||ke)&&(H.ticks||H.showgrid)){var Ne;ke&&(Ne="boundaries");var Ve=j("tickson",Ne);Ve==="boundaries"&&delete H.ticklabelposition}if(ke){var Oe=j("showdividers");Oe&&(j("dividercolor"),j("dividerwidth"))}if(ge==="date")if(i(F,H,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:N}),!H.rangebreaks.length)delete H.rangebreaks;else{for(var Fe=0;Fe=2){var J="",K,ae;if(ee.length===2){for(K=0;K<2;K++)if(ae=k(ee[K]),ae){J=O;break}}var Q=j("pattern",J);if(Q===O)for(K=0;K<2;K++)ae=k(ee[K]),ae&&(F.bounds[K]=ee[K]=ae-1);if(Q)for(K=0;K<2;K++)switch(ae=ee[K],Q){case O:if(!m(ae)){F.enabled=!1;return}if(ae=+ae,ae!==Math.floor(ae)||ae<0||ae>=7){F.enabled=!1;return}F.bounds[K]=ee[K]=ae;break;case D:if(!m(ae)){F.enabled=!1;return}if(ae=+ae,ae<0||ae>24){F.enabled=!1;return}F.bounds[K]=ee[K]=ae;break}if(H.autorange===!1){var he=H.range;if(he[0]he[1]){F.enabled=!1;return}}else if(ee[0]>he[0]&&ee[1]d?1:-1:+(c.substr(1)||1)-+(i.substr(1)||1)},A.ref2id=function(c){return/^[xyz]/.test(c)?c.split(" ")[0]:!1};function l(c,i){if(i&&i.length){for(var u=0;u0,d;u&&(d="array");var g=l("categoryorder",d),v;g==="array"&&(v=l("categoryarray")),!u&&g==="array"&&(g=h.categoryorder="trace"),g==="trace"?h._initialCategories=[]:g==="array"?h._initialCategories=v.slice():(v=A(h,c).sort(),g==="category ascending"?h._initialCategories=v:g==="category descending"&&(h._initialCategories=v.reverse()))}}},6287:function(L,A,s){var m=s(2770),h=s(1828),l=s(606),c=l.ONEDAY,i=l.ONEWEEK;A.dtick=function(u,d){var g=d==="log",v=d==="date",x=d==="category",C=v?c:1;if(!u)return C;if(m(u))return u=Number(u),u<=0?C:x?Math.max(1,Math.round(u)):v?Math.max(.1,u):u;if(typeof u!="string"||!(v||g))return C;var _=u.charAt(0),$=u.substr(1);return $=m($)?Number($):0,$<=0||!(v&&_==="M"&&$===Math.round($)||g&&_==="L"||g&&_==="D"&&($===1||$===2))?C:u},A.tick0=function(u,d,g,v){if(d==="date")return h.cleanDate(u,h.dateTick0(g,v%i===0?1:0));if(!(v==="D1"||v==="D2"))return m(u)?Number(u):0}},5555:function(L,A,s){var m=s(587).counter;L.exports={idRegex:{x:m("x","( domain)?"),y:m("y","( domain)?")},attrRegex:m("[xy]axis"),xAxisMatch:m("xaxis"),yAxisMatch:m("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},9082:function(L,A,s){var m=s(1828),h=s(1739),l=s(1675).id2name,c=s(3838),i=s(2449),u=s(1994),d=s(606).ALMOST_EQUAL,g=s(8783).FROM_BL;A.handleDefaults=function(D,N,M){var k=M.axIds,R=M.axHasImage,F=N._axisConstraintGroups=[],H=N._axisMatchGroups=[],j,P,ee,J,K,ae,Q,he;for(j=0;jF?M.substr(F):k.substr(R))+H}function S(D,N){for(var M=N._size,k=M.h/M.w,R={},F=Object.keys(D),H=0;Hd*he&&!ne)){for(F=0;FFe&&deVe&&(Ve=de);var Re=(Ve-Ne)/(2*Oe);K/=Re,Ne=P.l2r(Ne),Ve=P.l2r(Ve),P.range=P._input.range=Ce<$e?[Ne,Ve]:[Ve,Ne]}O(P,K)}}}},A.getAxisGroup=function(N,M){for(var k=N._axisMatchGroups,R=0;R=0){qt._fullLayout._deactivateShape(qt);return}var cn=qt._fullLayout.clickmode;if(Fe(qt),Ot===2&&!gt&&De(),qe)cn.indexOf("select")>-1&&ee(_t,qt,Yt,Nt,Me.id,Et),cn.indexOf("event")>-1&&C.click(qt,_t,Me.id);else if(Ot===1&>){var Qt=dt?tt:ut,nn=dt==="s"||Ge==="w"?0:1,Sn=Qt._name+".range["+nn+"]",bn=fe(Qt,nn),gn="left",Qn="middle";if(Qt.fixedrange)return;dt?(Qn=dt==="n"?"top":"bottom",Qt.side==="right"&&(gn="right")):Ge==="e"&&(gn="right"),qt._context.showAxisRangeEntryBoxes&&m.select(Tt).call(g.makeEditable,{gd:qt,immediate:!0,background:qt._fullLayout.paper_bgcolor,text:String(bn),fill:Qt.tickfont?Qt.tickfont.color:"#444",horizontalAlign:gn,verticalAlign:Qn}).on("edit",function(Bn){var Hr=Qt.d2r(Bn);Hr!==void 0&&u.call("_guiRelayout",qt,Sn,Hr)})}}S.init(Et);var Zt,Dt,un,Un,tr,Er,zt,pr,Gn,Ir;function Tr(Ot,_t,qt){var cn=Tt.getBoundingClientRect();Zt=_t-cn.left,Dt=qt-cn.top,de._fullLayout._calcInverseTransform(de);var Qt=h.apply3DTransform(de._fullLayout._invTransform)(Zt,Dt);Zt=Qt[0],Dt=Qt[1],un={l:Zt,r:Zt,w:0,t:Dt,b:Dt,h:0},Un=de._hmpixcount?de._hmlumcount/de._hmpixcount:c(de._fullLayout.plot_bgcolor).getLuminance(),tr="M0,0H"+_n+"V"+sn+"H0V0",Er=!1,zt="xy",Ir=!1,pr=ke(Xe,Un,Ft,pn,tr),Gn=Ne(Xe,Ft,pn)}function rr(Ot,_t){if(de._transitioningWithDuration)return!1;var qt=Math.max(0,Math.min(_n,Ze*Ot+Zt)),cn=Math.max(0,Math.min(sn,it*_t+Dt)),Qt=Math.abs(qt-Zt),nn=Math.abs(cn-Dt);un.l=Math.min(Zt,qt),un.r=Math.max(Zt,qt),un.t=Math.min(Dt,cn),un.b=Math.max(Dt,cn);function Sn(){zt="",un.r=un.l,un.t=un.b,Gn.attr("d","M0,0Z")}if(Zn.isSubplotConstrained)Qt>Q||nn>Q?(zt="xy",Qt/_n>nn/sn?(nn=Qt*sn/_n,Dt>cn?un.t=Dt-nn:un.b=Dt+nn):(Qt=nn*_n/sn,Zt>qt?un.l=Zt-Qt:un.r=Zt+Qt),Gn.attr("d",ue(un))):Sn();else if(an.isSubplotConstrained)if(Qt>Q||nn>Q){zt="xy";var bn=Math.min(un.l/_n,(sn-un.b)/sn),gn=Math.max(un.r/_n,(sn-un.t)/sn);un.l=bn*_n,un.r=gn*_n,un.b=(1-bn)*sn,un.t=(1-gn)*sn,Gn.attr("d",ue(un))}else Sn();else!jn||nn0){var Bn;if(an.isSubplotConstrained||!Cn&&jn.length===1){for(Bn=0;Bn1&&(Sn.maxallowed!==void 0&&wn===(Sn.range[0]1&&(bn.maxallowed!==void 0&<===(bn.range[0]=0?Math.min(de,.9):1/(1/Math.max(de,-.3)+3.222))}function $e(de,Me,Re){return de?de==="nsew"?Re?"":Me==="pan"?"move":"crosshair":de.toLowerCase()+"-resize":"pointer"}function ke(de,Me,Re,ze,We){return de.append("path").attr("class","zoombox").style({fill:Me>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",d(Re,ze)).attr("d",We+"Z")}function Ne(de,Me,Re){return de.append("path").attr("class","zoombox-corners").style({fill:v.background,stroke:v.defaultLine,"stroke-width":1,opacity:0}).attr("transform",d(Me,Re)).attr("d","M0,0Z")}function Ve(de,Me,Re,ze,We,ot){de.attr("d",ze+"M"+Re.l+","+Re.t+"v"+Re.h+"h"+Re.w+"v-"+Re.h+"h-"+Re.w+"Z"),Oe(de,Me,We,ot)}function Oe(de,Me,Re,ze){Re||(de.transition().style("fill",ze>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Me.transition().style("opacity",1).duration(200))}function Fe(de){m.select(de).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ie(de){he&&de.data&&de._context.showTips&&(h.notifier(h._(de,"Double-click to zoom back out"),"long"),he=!1)}function we(de,Me){return"M"+(de.l-.5)+","+(Me-Q-.5)+"h-3v"+(2*Q+1)+"h3ZM"+(de.r+.5)+","+(Me-Q-.5)+"h3v"+(2*Q+1)+"h-3Z"}function se(de,Me){return"M"+(Me-Q-.5)+","+(de.t-.5)+"v-3h"+(2*Q+1)+"v3ZM"+(Me-Q-.5)+","+(de.b+.5)+"v3h"+(2*Q+1)+"v-3Z"}function ue(de){var Me=Math.floor(Math.min(de.b-de.t,de.r-de.l,Q)/2);return"M"+(de.l-3.5)+","+(de.t-.5+Me)+"h3v"+-Me+"h"+Me+"v-3h-"+(Me+3)+"ZM"+(de.r+3.5)+","+(de.t-.5+Me)+"h-3v"+-Me+"h"+-Me+"v-3h"+(Me+3)+"ZM"+(de.r+3.5)+","+(de.b+.5-Me)+"h-3v"+Me+"h"+-Me+"v3h"+(Me+3)+"ZM"+(de.l-3.5)+","+(de.b+.5-Me)+"h3v"+Me+"h"+Me+"v3h-"+(Me+3)+"Z"}function pe(de,Me,Re,ze,We){for(var ot=!1,dt={},Ge={},Xe,qe,gt,ut,tt=(We||{}).xaHash,Ct=(We||{}).yaHash,Gt=0;Gtj[1]-.000244140625&&(i.domain=S),h.noneOrAll(c.domain,i.domain,S),i.tickmode==="sync"&&(i.tickmode="auto")}return u("layer"),i}},9426:function(L,A,s){var m=s(9652);L.exports=function(l,c,i,u,d){d||(d={});var g=d.tickSuffixDflt,v=m(l),x=i("tickprefix");x&&i("showtickprefix",v);var C=i("ticksuffix",g);C&&i("showticksuffix",v)}},3608:function(L,A,s){var m=s(3074);L.exports=function(l,c,i,u){var d=c._template||{},g=c.type||d.type||"-";i("minallowed"),i("maxallowed");var v=i("range"),x=c.getAutorangeDflt(v,u),C=i("autorange",x),_;v&&(v[0]===null&&v[1]===null||(v[0]===null||v[1]===null)&&(C==="reversed"||C===!0)||v[0]!==null&&(C==="min"||C==="max reversed")||v[1]!==null&&(C==="max"||C==="min reversed"))&&(v=void 0,delete c.range,c.autorange=!0,_=!0),_||(x=c.getAutorangeDflt(v,u),C=i("autorange",x)),C&&(m(i,C,v),(g==="linear"||g==="-")&&i("rangemode")),c.cleanRange()}},2449:function(L,A,s){var m=s(8783).FROM_BL;L.exports=function(l,c,i){i===void 0&&(i=m[l.constraintoward||"center"]);var u=[l.r2l(l.range[0]),l.r2l(l.range[1])],d=u[0]+(u[1]-u[0])*i;l.range=l._input.range=[l.l2r(d+(u[0]-d)*c),l.l2r(d+(u[1]-d)*c)],l.setScale()}},1994:function(L,A,s){var m=s(9898),h=s(4096).g0,l=s(1828),c=l.numberFormat,i=s(2770),u=l.cleanNumber,d=l.ms2DateTime,g=l.dateTime2ms,v=l.ensureNumber,x=l.isArrayOrTypedArray,C=s(606),_=C.FP_SAFE,$=C.BADNUM,S=C.LOG_CLIP,O=C.ONEWEEK,D=C.ONEDAY,N=C.ONEHOUR,M=C.ONEMIN,k=C.ONESEC,R=s(1675),F=s(5555),H=F.HOUR_PATTERN,j=F.WEEKDAY_PATTERN;function P(J){return Math.pow(10,J)}function ee(J){return J!=null}L.exports=function(K,ae){ae=ae||{};var Q=K._id||"x",he=Q.charAt(0);function ge(we,se){if(we>0)return Math.log(we)/Math.LN10;if(we<=0&&se&&K.range&&K.range.length===2){var ue=K.range[0],pe=K.range[1];return .5*(ue+pe-2*S*Math.abs(ue-pe))}else return $}function Se(we,se,ue,pe){if((pe||{}).msUTC&&i(we))return+we;var le=g(we,ue||K.calendar);if(le===$)if(i(we)){we=+we;var Te=Math.floor(l.mod(we+.05,1)*10),de=Math.round(we-Te/10);le=g(new Date(de))+Te/10}else return $;return le}function ce(we,se,ue){return d(we,se,ue||K.calendar)}function ne(we){return K._categories[Math.round(we)]}function fe(we){if(ee(we)){if(K._categoriesMap===void 0&&(K._categoriesMap={}),K._categoriesMap[we]!==void 0)return K._categoriesMap[we];K._categories.push(typeof we=="number"?String(we):we);var se=K._categories.length-1;return K._categoriesMap[we]=se,se}return $}function X(we,se){for(var ue=new Array(se),pe=0;peK.range[1]&&(ue=!ue);for(var pe=ue?-1:1,le=pe*we,Te=0,de=0;deRe)Te=de+1;else{Te=le<(Me+Re)/2?de:de+1;break}}var ze=K._B[Te]||0;return isFinite(ze)?ke(we,K._m2,ze):0},Oe=function(we){var se=K._rangebreaks.length;if(!se)return Ne(we,K._m,K._b);for(var ue=0,pe=0;peK._rangebreaks[pe].pmax&&(ue=pe+1);return Ne(we,K._m2,K._B[ue])}}K.c2l=K.type==="log"?ge:v,K.l2c=K.type==="log"?P:v,K.l2p=Ve,K.p2l=Oe,K.c2p=K.type==="log"?function(we,se){return Ve(ge(we,se))}:Ve,K.p2c=K.type==="log"?function(we){return P(Oe(we))}:Oe,["linear","-"].indexOf(K.type)!==-1?(K.d2r=K.r2d=K.d2c=K.r2c=K.d2l=K.r2l=u,K.c2d=K.c2r=K.l2d=K.l2r=v,K.d2p=K.r2p=function(we){return K.l2p(u(we))},K.p2d=K.p2r=Oe,K.cleanPos=v):K.type==="log"?(K.d2r=K.d2l=function(we,se){return ge(u(we),se)},K.r2d=K.r2c=function(we){return P(u(we))},K.d2c=K.r2l=u,K.c2d=K.l2r=v,K.c2r=ge,K.l2d=P,K.d2p=function(we,se){return K.l2p(K.d2r(we,se))},K.p2d=function(we){return P(Oe(we))},K.r2p=function(we){return K.l2p(u(we))},K.p2r=Oe,K.cleanPos=v):K.type==="date"?(K.d2r=K.r2d=l.identity,K.d2c=K.r2c=K.d2l=K.r2l=Se,K.c2d=K.c2r=K.l2d=K.l2r=ce,K.d2p=K.r2p=function(we,se,ue){return K.l2p(Se(we,0,ue))},K.p2d=K.p2r=function(we,se,ue){return ce(Oe(we),se,ue)},K.cleanPos=function(we){return l.cleanDate(we,$,K.calendar)}):K.type==="category"?(K.d2c=K.d2l=fe,K.r2d=K.c2d=K.l2d=ne,K.d2r=K.d2l_noadd=Ce,K.r2c=function(we){var se=$e(we);return se!==void 0?se:K.fraction2r(.5)},K.l2r=K.c2r=v,K.r2l=$e,K.d2p=function(we){return K.l2p(K.r2c(we))},K.p2d=function(we){return ne(Oe(we))},K.r2p=K.d2p,K.p2r=Oe,K.cleanPos=function(we){return typeof we=="string"&&we!==""?we:v(we)}):K.type==="multicategory"&&(K.r2d=K.c2d=K.l2d=ne,K.d2r=K.d2l_noadd=Ce,K.r2c=function(we){var se=Ce(we);return se!==void 0?se:K.fraction2r(.5)},K.r2c_just_indices=ye,K.l2r=K.c2r=v,K.r2l=Ce,K.d2p=function(we){return K.l2p(K.r2c(we))},K.p2d=function(we){return ne(Oe(we))},K.r2p=K.d2p,K.p2r=Oe,K.cleanPos=function(we){return Array.isArray(we)||typeof we=="string"&&we!==""?we:v(we)},K.setupMultiCategory=function(we){var se=K._traceIndices,ue,pe,le=K._matchGroup;if(le&&K._categories.length===0){for(var Te in le)if(Te!==Q){var de=ae[R.id2name(Te)];se=se.concat(de._traceIndices)}}var Me=[[0,{}],[0,{}]],Re=[];for(ue=0;uede[1]&&(pe[Te?0:1]=ue)}},K.cleanRange=function(we,se){K._cleanRange(we,se),K.limitRange(we)},K._cleanRange=function(we,se){se||(se={}),we||(we="range");var ue=l.nestedProperty(K,we).get(),pe,le;if(K.type==="date"?le=l.dfltRange(K.calendar):he==="y"?le=F.DFLTRANGEY:K._name==="realaxis"?le=[0,1]:le=se.dfltRange||F.DFLTRANGEX,le=le.slice(),(K.rangemode==="tozero"||K.rangemode==="nonnegative")&&(le[0]=0),!ue||ue.length!==2){l.nestedProperty(K,we).set(le);return}var Te=ue[0]===null,de=ue[1]===null;for(K.type==="date"&&!K.autorange&&(ue[0]=l.cleanDate(ue[0],$,K.calendar),ue[1]=l.cleanDate(ue[1],$,K.calendar)),pe=0;pe<2;pe++)if(K.type==="date"){if(!l.isDateTime(ue[pe],K.calendar)){K[we]=le;break}if(K.r2l(ue[0])===K.r2l(ue[1])){var Me=l.constrain(K.r2l(ue[0]),l.MIN_MS+1e3,l.MAX_MS-1e3);ue[0]=K.l2r(Me-1e3),ue[1]=K.l2r(Me+1e3);break}}else{if(!i(ue[pe]))if(!(Te||de)&&i(ue[1-pe]))ue[pe]=ue[1-pe]*(pe?10:.1);else{K[we]=le;break}if(ue[pe]<-_?ue[pe]=-_:ue[pe]>_&&(ue[pe]=_),ue[0]===ue[1]){var Re=Math.max(1,Math.abs(ue[0]*1e-6));ue[0]-=Re,ue[1]+=Re}}},K.setScale=function(we){var se=ae._size;if(K.overlaying){var ue=R.getFromId({_fullLayout:ae},K.overlaying);K.domain=ue.domain}var pe=we&&K._r?"_r":"range",le=K.calendar;K.cleanRange(pe);var Te=K.r2l(K[pe][0],le),de=K.r2l(K[pe][1],le),Me=he==="y";if(Me?(K._offset=se.t+(1-K.domain[1])*se.h,K._length=se.h*(K.domain[1]-K.domain[0]),K._m=K._length/(Te-de),K._b=-K._m*de):(K._offset=se.l+K.domain[0]*se.w,K._length=se.w*(K.domain[1]-K.domain[0]),K._m=K._length/(de-Te),K._b=-K._m*Te),K._rangebreaks=[],K._lBreaks=0,K._m2=0,K._B=[],K.rangebreaks){var Re,ze;if(K._rangebreaks=K.locateBreaks(Math.min(Te,de),Math.max(Te,de)),K._rangebreaks.length){for(Re=0;Rede&&(We=!We),We&&K._rangebreaks.reverse();var ot=We?-1:1;for(K._m2=ot*K._length/(Math.abs(de-Te)-K._lBreaks),K._B.push(-K._m2*(Me?de:Te)),Re=0;Rele&&(le+=7,Tele&&(le+=24,Te=pe&&Te=pe&&we=Nt.min&&(ttNt.max&&(Nt.max=Ct),Gt=!1)}Gt&&de.push({min:tt,max:Ct})}};for(ue=0;ue rect").call(c.setTranslate,0,0).call(c.setScale,1,1),H.plot.call(c.setTranslate,j._offset,P._offset).call(c.setScale,1,1);var ee=H.plot.selectAll(".scatterlayer .trace");ee.selectAll(".point").call(c.setPointGroupScale,1,1),ee.selectAll(".textpoint").call(c.setTextPointsScale,1,1),ee.call(c.hideOutsideRangePoints,H)}function $(H,j){var P=H.plotinfo,ee=P.xaxis,J=P.yaxis,K=ee._length,ae=J._length,Q=!!H.xr1,he=!!H.yr1,ge=[];if(Q){var Se=l.simpleMap(H.xr0,ee.r2l),ce=l.simpleMap(H.xr1,ee.r2l),ne=Se[1]-Se[0],fe=ce[1]-ce[0];ge[0]=(Se[0]*(1-j)+j*ce[0]-Se[0])/(Se[1]-Se[0])*K,ge[2]=K*(1-j+j*fe/ne),ee.range[0]=ee.l2r(Se[0]*(1-j)+j*ce[0]),ee.range[1]=ee.l2r(Se[1]*(1-j)+j*ce[1])}else ge[0]=0,ge[2]=K;if(he){var X=l.simpleMap(H.yr0,J.r2l),ye=l.simpleMap(H.yr1,J.r2l),Ce=X[1]-X[0],$e=ye[1]-ye[0];ge[1]=(X[1]*(1-j)+j*ye[1]-X[1])/(X[0]-X[1])*ae,ge[3]=ae*(1-j+j*$e/Ce),J.range[0]=ee.l2r(X[0]*(1-j)+j*ye[0]),J.range[1]=J.l2r(X[1]*(1-j)+j*ye[1])}else ge[1]=0,ge[3]=ae;i.drawOne(d,ee,{skipTitle:!0}),i.drawOne(d,J,{skipTitle:!0}),i.redrawComponents(d,[ee._id,J._id]);var ke=Q?K/ge[2]:1,Ne=he?ae/ge[3]:1,Ve=Q?ge[0]:0,Oe=he?ge[1]:0,Fe=Q?ge[0]/ge[2]*K:0,ie=he?ge[1]/ge[3]*ae:0,we=ee._offset-Fe,se=J._offset-ie;P.clipRect.call(c.setTranslate,Ve,Oe).call(c.setScale,1/ke,1/Ne),P.plot.call(c.setTranslate,we,se).call(c.setScale,ke,Ne),c.setPointGroupScale(P.zoomScalePts,1/ke,1/Ne),c.setTextPointsScale(P.zoomScaleTxt,1/ke,1/Ne)}var S;x&&(S=x());function O(){for(var H={},j=0;jv.duration?(O(),k=window.cancelAnimationFrame(F)):k=window.requestAnimationFrame(F)}return N=Date.now(),k=window.requestAnimationFrame(F),Promise.resolve()}},951:function(L,A,s){var m=s(3972).traceIs,h=s(4322);L.exports=function(g,v,x,C){x("autotypenumbers",C.autotypenumbersDflt);var _=x("type",(C.splomStash||{}).type);_==="-"&&(l(v,C.data),v.type==="-"?v.type="linear":g.type=v.type)};function l(d,g){if(d.type==="-"){var v=d._id,x=v.charAt(0),C;v.indexOf("scene")!==-1&&(v=x);var _=c(g,v,x);if(_){if(_.type==="histogram"&&x==={v:"y",h:"x"}[_.orientation||"v"]){d.type="linear";return}var $=x+"calendar",S=_[$],O={noMultiCategory:!m(_,"cartesian")||m(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&x==={h:"x",v:"y"}[_.orientation||"v"]&&(O.noMultiCategory=!0),O.autotypenumbers=d.autotypenumbers,u(_,x)){var D=i(_),N=[];for(C=0;C0&&(C["_"+v+"axes"]||{})[g])return C;if((C[v+"axis"]||v)===g){if(u(C,v))return C;if((C[v]||[]).length||C[v+"0"])return C}}}function i(d){return{v:"x",h:"y"}[d.orientation||"v"]}function u(d,g){var v=i(d),x=m(d,"box-violin"),C=m(d._fullInput||{},"candlestick");return x&&!C&&g===v&&d[v]===void 0&&d[v+"0"]===void 0}},1137:function(L,A,s){var m=s(3972),h=s(1828);A.manageCommandObserver=function(g,v,x,C){var _={},$=!0;v&&v._commandObserver&&(_=v._commandObserver),_.cache||(_.cache={}),_.lookupTable={};var S=A.hasSimpleAPICommandBindings(g,x,_.lookupTable);if(v&&v._commandObserver){if(S)return _;if(v._commandObserver.remove)return v._commandObserver.remove(),v._commandObserver=null,_}if(S){l(g,S,_.cache),_.check=function(){if($){var M=l(g,S,_.cache);return M.changed&&C&&_.lookupTable[M.value]!==void 0&&(_.disable(),Promise.resolve(C({value:M.value,type:S.type,prop:S.prop,traces:S.traces,index:_.lookupTable[M.value]})).then(_.enable,_.enable)),M.changed}};for(var O=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],D=0;D0?".":"")+_;h.isPlainObject($)?d($,v,S,C+1):v(S,_,$)}})}},7670:function(L,A,s){var m=s(1426).extendFlat;A.Y=function(h,l){h=h||{},l=l||{};var c={valType:"info_array",editType:h.editType,items:[{valType:"number",min:0,max:1,editType:h.editType},{valType:"number",min:0,max:1,editType:h.editType}],dflt:[0,1]};h.name&&h.name+"",h.trace,l.description&&""+l.description;var i={x:m({},c,{}),y:m({},c,{}),editType:h.editType};return h.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:h.editType},i.column={valType:"integer",min:0,dflt:0,editType:h.editType}),i},A.c=function(h,l,c,i){var u=i&&i.x||[0,1],d=i&&i.y||[0,1],g=l.grid;if(g){var v=c("domain.column");v!==void 0&&(v=we.width-20?(pe["text-anchor"]="start",pe.x=5):(pe["text-anchor"]="end",pe.x=we._paper.attr("width")-7),se.attr(pe);var le=se.select(".js-link-to-tool"),Te=se.select(".js-link-spacer"),de=se.select(".js-sourcelinks");ie._context.showSources&&ie._context.showSources(ie),ie._context.showLink&&H(ie,le),Te.text(le.text()&&de.text()?" - ":"")}};function H(ie,we){we.text("");var se=we.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(ie._context.linkText+" "+String.fromCharCode(187));if(ie._context.sendData)se.on("click",function(){k.sendDataToCloud(ie)});else{var ue=window.location.pathname.split("/"),pe=window.location.search;se.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+ue[2].split(".")[0]+"/"+ue[1]+pe})}}k.sendDataToCloud=function(ie){var we=(window.PLOTLYENV||{}).BASE_URL||ie._context.plotlyServerURL;if(we){ie.emit("plotly_beforeexport");var se=m.select(ie).append("div").attr("id","hiddenform").style("display","none"),ue=se.append("form").attr({action:we+"/external",method:"post",target:"_blank"}),pe=ue.append("input").attr({type:"text",name:"data"});return pe.node().value=k.graphJson(ie,!1,"keepdata"),ue.node().submit(),se.remove(),ie.emit("plotly_afterexport"),!1}};var j=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],P=["year","month","dayMonth","dayMonthYear"];k.supplyDefaults=function(ie,we){var se=we&&we.skipUpdateCalc,ue=ie._fullLayout||{};if(ue._skipDefaults){delete ue._skipDefaults;return}var pe=ie._fullLayout={},le=ie.layout||{},Te=ie._fullData||[],de=ie._fullData=[],Me=ie.data||[],Re=ie.calcdata||[],ze=ie._context||{},We;ie._transitionData||k.createTransitionData(ie),pe._dfltTitle={plot:M(ie,"Click to enter Plot title"),x:M(ie,"Click to enter X axis title"),y:M(ie,"Click to enter Y axis title"),colorbar:M(ie,"Click to enter Colorscale title"),annotation:M(ie,"new text")},pe._traceWord=M(ie,"trace");var ot=K(ie,j);if(pe._mapboxAccessToken=ze.mapboxAccessToken,ue._initialAutoSizeIsDone){var dt=ue.width,Ge=ue.height;k.supplyLayoutGlobalDefaults(le,pe,ot),le.width||(pe.width=dt),le.height||(pe.height=Ge),k.sanitizeMargins(pe)}else{k.supplyLayoutGlobalDefaults(le,pe,ot);var Xe=!le.width||!le.height,qe=pe.autosize,gt=ze.autosizable,ut=Xe&&(qe||gt);ut?k.plotAutoSize(ie,le,pe):Xe&&k.sanitizeMargins(pe),!qe&&Xe&&(le.width=pe.width,le.height=pe.height)}pe._d3locale=ae(ot,pe.separators),pe._extraFormat=K(ie,P),pe._initialAutoSizeIsDone=!0,pe._dataLength=Me.length,pe._modules=[],pe._visibleModules=[],pe._basePlotModules=[];var tt=pe._subplots=J(),Ct=pe._splomAxes={x:{},y:{}},Gt=pe._splomSubplots={};pe._splomGridDflt={},pe._scatterStackOpts={},pe._firstScatter={},pe._alignmentOpts={},pe._colorAxes={},pe._requestRangeslider={},pe._traceUids=ee(Te,Me),pe._globalTransforms=(ie._context||{}).globalTransforms,k.supplyDataDefaults(Me,de,le,pe);var Yt=Object.keys(Ct.x),Nt=Object.keys(Ct.y);if(Yt.length>1&&Nt.length>1){for(i.getComponentMethod("grid","sizeDefaults")(le,pe),We=0;We15&&Nt.length>15&&pe.shapes.length===0&&pe.images.length===0,k.linkSubplots(de,pe,Te,ue),k.cleanPlot(de,pe,Te,ue);var Zn=!!(ue._has&&ue._has("gl2d")),an=!!(pe._has&&pe._has("gl2d")),Cn=!!(ue._has&&ue._has("cartesian")),jn=!!(pe._has&&pe._has("cartesian")),Wn=Cn||Zn,wn=jn||an;Wn&&!wn?ue._bgLayer.remove():wn&&!Wn&&(pe._shouldCreateBgLayer=!0),ue._zoomlayer&&!ie._dragging&&_({_fullLayout:ue}),Q(de,pe),N(pe,ue),i.getComponentMethod("colorscale","crossTraceDefaults")(de,pe),pe._preGUI||(pe._preGUI={}),pe._tracePreGUI||(pe._tracePreGUI={});var lt=pe._tracePreGUI,ft={},wt;for(wt in lt)ft[wt]="old";for(We=0;We0){var ze=1-2*le;Te=Math.round(ze*Te),de=Math.round(ze*de)}}var We=k.layoutAttributes.width.min,ot=k.layoutAttributes.height.min;Te1,Ge=!se.height&&Math.abs(ue.height-de)>1;(Ge||dt)&&(dt&&(ue.width=Te),Ge&&(ue.height=de)),we._initialAutoSize||(we._initialAutoSize={width:Te,height:de}),k.sanitizeMargins(ue)},k.supplyLayoutModuleDefaults=function(ie,we,se,ue){var pe=i.componentsRegistry,le=we._basePlotModules,Te,de,Me,Re=i.subplotsRegistry.cartesian;for(Te in pe)Me=pe[Te],Me.includeBasePlot&&Me.includeBasePlot(ie,we);le.length||le.push(Re),we._has("cartesian")&&(i.getComponentMethod("grid","contentDefaults")(ie,we),Re.finalizeSubplots(ie,we));for(var ze in we._subplots)we._subplots[ze].sort(g.subplotSort);for(de=0;de1&&(se.l/=qe,se.r/=qe)}if(ot){var gt=(se.t+se.b)/ot;gt>1&&(se.t/=gt,se.b/=gt)}var ut=se.xl!==void 0?se.xl:se.x,tt=se.xr!==void 0?se.xr:se.x,Ct=se.yt!==void 0?se.yt:se.y,Gt=se.yb!==void 0?se.yb:se.y;dt[we]={l:{val:ut,size:se.l+Xe},r:{val:tt,size:se.r+Xe},b:{val:Gt,size:se.b+Xe},t:{val:Ct,size:se.t+Xe}},Ge[we]=1}if(!ue._replotting)return k.doAutoMargin(ie)}};function ye(ie){if("_redrawFromAutoMarginCount"in ie._fullLayout)return!1;var we=C.list(ie,"",!0);for(var se in we)if(we[se].autoshift||we[se].shift)return!0;return!1}k.doAutoMargin=function(ie){var we=ie._fullLayout,se=we.width,ue=we.height;we._size||(we._size={}),ne(we);var pe=we._size,le=we.margin,Te={t:0,b:0,l:0,r:0},de=g.extendFlat({},pe),Me=le.l,Re=le.r,ze=le.t,We=le.b,ot=we._pushmargin,dt=we._pushmarginIds,Ge=we.minreducedwidth,Xe=we.minreducedheight;if(le.autoexpand!==!1){for(var qe in ot)dt[qe]||delete ot[qe];var gt=ie._fullLayout._reservedMargin;for(var ut in gt)for(var tt in gt[ut]){var Ct=gt[ut][tt];Te[tt]=Math.max(Te[tt],Ct)}ot.base={l:{val:0,size:Me},r:{val:1,size:Re},t:{val:1,size:ze},b:{val:0,size:We}};for(var Gt in Te){var Yt=0;for(var Nt in ot)Nt!=="base"&&c(ot[Nt][Gt].size)&&(Yt=ot[Nt][Gt].size>Yt?ot[Nt][Gt].size:Yt);var Ft=Math.max(0,le[Gt]-Yt);Te[Gt]=Math.max(0,Te[Gt]-Ft)}for(var pn in ot){var _n=ot[pn].l||{},sn=ot[pn].b||{},Zn=_n.val,an=_n.size,Cn=sn.val,jn=sn.size,Wn=se-Te.r-Te.l,wn=ue-Te.t-Te.b;for(var lt in ot){if(c(an)&&ot[lt].r){var ft=ot[lt].r.val,wt=ot[lt].r.size;if(ft>Zn){var vt=(an*ft+(wt-Wn)*Zn)/(ft-Zn),$t=(wt*(1-Zn)+(an-Wn)*(1-ft))/(ft-Zn);vt+$t>Me+Re&&(Me=vt,Re=$t)}}if(c(jn)&&ot[lt].t){var Ze=ot[lt].t.val,it=ot[lt].t.size;if(Ze>Cn){var ht=(jn*Ze+(it-wn)*Cn)/(Ze-Cn),pt=(it*(1-Cn)+(jn-wn)*(1-Ze))/(Ze-Cn);ht+pt>We+ze&&(We=ht,ze=pt)}}}}}var Tt=g.constrain(se-le.l-le.r,fe,Ge),Et=g.constrain(ue-le.t-le.b,X,Xe),fn=Math.max(0,se-Tt),tn=Math.max(0,ue-Et);if(fn){var Zt=(Me+Re)/fn;Zt>1&&(Me/=Zt,Re/=Zt)}if(tn){var Dt=(We+ze)/tn;Dt>1&&(We/=Dt,ze/=Dt)}if(pe.l=Math.round(Me)+Te.l,pe.r=Math.round(Re)+Te.r,pe.t=Math.round(ze)+Te.t,pe.b=Math.round(We)+Te.b,pe.p=Math.round(le.pad),pe.w=Math.round(se)-pe.l-pe.r,pe.h=Math.round(ue)-pe.t-pe.b,!we._replotting&&(k.didMarginChange(de,pe)||ye(ie))){"_redrawFromAutoMarginCount"in we?we._redrawFromAutoMarginCount++:we._redrawFromAutoMarginCount=1;var un=3*(1+Object.keys(dt).length);if(we._redrawFromAutoMarginCount1)return!0}return!1},k.graphJson=function(ie,we,se,ue,pe,le){(pe&&we&&!ie._fullData||pe&&!we&&!ie._fullLayout)&&k.supplyDefaults(ie);var Te=pe?ie._fullData:ie.data,de=pe?ie._fullLayout:ie.layout,Me=(ie._transitionData||{})._frames;function Re(ot,dt){if(typeof ot=="function")return dt?"_function_":null;if(g.isPlainObject(ot)){var Ge={},Xe;return Object.keys(ot).sort().forEach(function(qe){if(["_","["].indexOf(qe.charAt(0))===-1){if(typeof ot[qe]=="function"){dt&&(Ge[qe]="_function");return}if(se==="keepdata"){if(qe.substr(qe.length-3)==="src")return}else if(se==="keepstream"){if(Xe=ot[qe+"src"],typeof Xe=="string"&&Xe.indexOf(":")>0&&!g.isPlainObject(ot.stream))return}else if(se!=="keepall"&&(Xe=ot[qe+"src"],typeof Xe=="string"&&Xe.indexOf(":")>0))return;Ge[qe]=Re(ot[qe],dt)}}),Ge}return Array.isArray(ot)?ot.map(function(qe){return Re(qe,dt)}):g.isTypedArray(ot)?g.simpleMap(ot,g.identity):g.isJSDate(ot)?g.ms2DateTimeLocal(+ot):ot}var ze={data:(Te||[]).map(function(ot){var dt=Re(ot);return we&&delete dt.fit,dt})};if(!we&&(ze.layout=Re(de),pe)){var We=de._size;ze.layout.computed={margin:{b:We.b,l:We.l,r:We.r,t:We.t}}}return Me&&(ze.frames=Re(Me)),le&&(ze.config=Re(ie._context,!0)),ue==="object"?ze:JSON.stringify(ze)},k.modifyFrames=function(ie,we){var se,ue,pe,le=ie._transitionData._frames,Te=ie._transitionData._frameHash;for(se=0;se0&&(ie._transitioningWithDuration=!0),ie._transitionData._interruptCallbacks.push(function(){ue=!0}),se.redraw&&ie._transitionData._interruptCallbacks.push(function(){return i.call("redraw",ie)}),ie._transitionData._interruptCallbacks.push(function(){ie.emit("plotly_transitioninterrupted",[])});var ot=0,dt=0;function Ge(){return ot++,function(){dt++,!ue&&dt===ot&&de(We)}}se.runFn(Ge),setTimeout(Ge())})}function de(We){if(ie._transitionData)return le(ie._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(se.redraw)return i.call("redraw",ie)}).then(function(){ie._transitioning=!1,ie._transitioningWithDuration=!1,ie.emit("plotly_transitioned",[])}).then(We)}function Me(){if(ie._transitionData)return ie._transitioning=!1,pe(ie._transitionData._interruptCallbacks)}var Re=[k.previousPromises,Me,se.prepareFn,k.rehover,k.reselect,Te],ze=g.syncOrAsync(Re,ie);return(!ze||!ze.then)&&(ze=Promise.resolve()),ze.then(function(){return ie})}k.doCalcdata=function(ie,we){var se=C.list(ie),ue=ie._fullData,pe=ie._fullLayout,le,Te,de,Me,Re=new Array(ue.length),ze=(ie.calcdata||[]).slice();for(ie.calcdata=Re,pe._numBoxes=0,pe._numViolins=0,pe._violinScaleGroupStats={},ie._hmpixcount=0,ie._hmlumcount=0,pe._piecolormap={},pe._sunburstcolormap={},pe._treemapcolormap={},pe._iciclecolormap={},pe._funnelareacolormap={},de=0;de=0;Me--)if(Gt[Me].enabled){le._indexToPoints=Gt[Me]._indexToPoints;break}Te&&Te.calc&&(Ct=Te.calc(ie,le))}(!Array.isArray(Ct)||!Ct[0])&&(Ct=[{x,y:x}]),Ct[0].t||(Ct[0].t={}),Ct[0].trace=le,Re[ut]=Ct}}for(Oe(se,ue,pe),de=0;de0){for(var u=[],d=0;d-1}L.exports=function(g,v){var x,C=g.data,_=g.layout,$=c([],C),S=c({},_,i(v.tileClass)),O=g._context||{};if(v.width&&(S.width=v.width),v.height&&(S.height=v.height),v.tileClass==="thumbnail"||v.tileClass==="themes__thumb"){S.annotations=[];var D=Object.keys(S);for(x=0;x")!==-1?"":_.html(S).text()});return _.remove(),$}function x(C){return C.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}L.exports=function(_,$,S){var O=_._fullLayout,D=O._paper,N=O._toppaper,M=O.width,k=O.height,R;D.insert("rect",":first-child").call(l.setRect,0,0,M,k).call(c.fill,O.paper_bgcolor);var F=O._basePlotModules||[];for(R=0;Rne+Se||!m(ce))}for(var X=0;Xg;if(!v)return i}return u!==void 0?u:c.dflt},A.coerceColor=function(c,i,u){return h(i).isValid()?i:u!==void 0?u:c.dflt},A.coerceEnumerated=function(c,i,u){return c.coerceNumber&&(i=+i),c.values.indexOf(i)!==-1?i:u!==void 0?u:c.dflt},A.getValue=function(c,i){var u;return Array.isArray(c)?i0?Re+=ze:P<0&&(Re-=ze)}return Re}function Ve(Me){var Re=P,ze=Me.b,We=Ne(Me);return m.inbox(ze-Re,We-Re,F+(We-Re)/(We-ze)-1)}function Oe(Me){var Re=P,ze=Me.b,We=Ne(Me);return m.inbox(ze-Re,We-Re,H+(We-Re)/(We-ze)-1)}var Fe=C[ee+"a"],ie=C[J+"a"];Q=Math.abs(Fe.r2c(Fe.range[1])-Fe.r2c(Fe.range[0]));function we(Me){return(K(Me)+ae(Me))/2}var se=m.getDistanceFunction(S,K,ae,we);if(m.getClosest(D,se,C),C.index!==!1&&D[C.index].p!==d){ge||(X=function(Me){return Math.min(Se(Me),Me.p-M.bargroupwidth/2)},ye=function(Me){return Math.max(ce(Me),Me.p+M.bargroupwidth/2)});var ue=C.index,pe=D[ue],le=N.base?pe.b+pe.s:pe.s;C[J+"0"]=C[J+"1"]=ie.c2p(pe[J],!0),C[J+"LabelVal"]=le;var Te=M.extents[M.extents.round(pe.p)];C[ee+"0"]=Fe.c2p(k?X(pe):Te[0],!0),C[ee+"1"]=Fe.c2p(k?ye(pe):Te[1],!0);var de=pe.orig_p!==void 0;return C[ee+"LabelVal"]=de?pe.orig_p:pe.p,C.labelLabel=u(Fe,C[ee+"LabelVal"],N[ee+"hoverformat"]),C.valueLabel=u(ie,C[J+"LabelVal"],N[J+"hoverformat"]),C.baseLabel=u(ie,pe.b,N[J+"hoverformat"]),C.spikeDistance=(Oe(pe)+ke(pe))/2,C[ee+"Spike"]=Fe.c2p(pe.p,!0),c(pe,N,C),C.hovertemplate=N.hovertemplate,C}}function x(C,_){var $=_.mcc||C.marker.color,S=_.mlcc||C.marker.line.color,O=i(C,_);if(l.opacity($))return $;if(l.opacity(S)&&O)return S}L.exports={hoverPoints:g,hoverOnBars:v,getTraceColor:x}},822:function(L,A,s){L.exports={attributes:s(1486),layoutAttributes:s(3641),supplyDefaults:s(769).supplyDefaults,crossTraceDefaults:s(769).crossTraceDefaults,supplyLayoutDefaults:s(3957),calc:s(2290),crossTraceCalc:s(1661).crossTraceCalc,colorbar:s(4898),arraysToCalcdata:s(5341),plot:s(7295).plot,style:s(6688).style,styleOnSelect:s(6688).styleOnSelect,hoverPoints:s(5423).hoverPoints,eventData:s(8065),selectPoints:s(1974),moduleType:"trace",name:"bar",basePlotModule:s(3612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},3641:function(L){L.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},3957:function(L,A,s){var m=s(3972),h=s(9298),l=s(1828),c=s(3641);L.exports=function(i,u,d){function g(M,k){return l.coerce(i,u,c,M,k)}for(var v=!1,x=!1,C=!1,_={},$=g("barmode"),S=0;S0}function J(X,ye,Ce,$e,ke,Ne){var Ve=ye.xaxis,Oe=ye.yaxis,Fe=X._fullLayout,ie=X._context.staticPlot;ke||(ke={mode:Fe.barmode,norm:Fe.barmode,gap:Fe.bargap,groupgap:Fe.bargroupgap},C("bar",Fe));var we=l.makeTraceGroups($e,Ce,"trace bars").each(function(se){var ue=m.select(this),pe=se[0].trace,le=pe.type==="waterfall",Te=pe.type==="funnel",de=pe.type==="bar",Me=de||Te,Re=0;le&&pe.connector.visible&&pe.connector.mode==="between"&&(Re=pe.connector.line.width/2);var ze=pe.orientation==="h",We=ee(ke),ot=l.ensureSingle(ue,"g","points"),dt=F(pe),Ge=ot.selectAll("g.point").data(l.identity,dt);Ge.enter().append("g").classed("point",!0),Ge.exit().remove(),Ge.each(function(qe,gt){var ut=m.select(this),tt=j(qe,Ve,Oe,ze),Ct=tt[0][0],Gt=tt[0][1],Yt=tt[1][0],Nt=tt[1][1],Ft=(ze?Gt-Ct:Nt-Yt)===0;Ft&&Me&&$.getLineWidth(pe,qe)&&(Ft=!1),Ft||(Ft=!h(Ct)||!h(Gt)||!h(Yt)||!h(Nt)),qe.isBlank=Ft,Ft&&(ze?Gt=Ct:Nt=Yt),Re&&!Ft&&(ze?(Ct-=H(Ct,Gt)*Re,Gt+=H(Ct,Gt)*Re):(Yt-=H(Yt,Nt)*Re,Nt+=H(Yt,Nt)*Re));var pn,_n;if(pe.type==="waterfall"){if(!Ft){var sn=pe[qe.dir].marker;pn=sn.line.width,_n=sn.color}}else pn=$.getLineWidth(pe,qe),_n=qe.mc||pe.marker.color;function Zn(lt){var ft=m.round(pn/2%1,2);return ke.gap===0&&ke.groupgap===0?m.round(Math.round(lt)-ft,2):lt}function an(lt,ft,wt){return wt&<===ft?lt:Math.abs(lt-ft)>=2?Zn(lt):lt>ft?Math.ceil(lt):Math.floor(lt)}if(!X._context.staticPlot){var Cn=i.opacity(_n),jn=Cn<1||pn>.01?Zn:an;Ct=jn(Ct,Gt,ze),Gt=jn(Gt,Ct,ze),Yt=jn(Yt,Nt,!ze),Nt=jn(Nt,Yt,!ze)}var Wn=P(l.ensureSingle(ut,"path"),Fe,ke,Ne);if(Wn.style("vector-effect",ie?"none":"non-scaling-stroke").attr("d",isNaN((Gt-Ct)*(Nt-Yt))||Ft&&X._context.staticPlot?"M0,0Z":"M"+Ct+","+Yt+"V"+Nt+"H"+Gt+"V"+Yt+"Z").call(u.setClipUrl,ye.layerClipId,X),!Fe.uniformtext.mode&&We){var wn=u.makePointStyleFns(pe);u.singlePointStyle(qe,Wn,pe,wn,X)}K(X,ye,ut,se,gt,Ct,Gt,Yt,Nt,ke,Ne),ye.layerClipId&&u.hideOutsideRangePoint(qe,ut.select("text"),Ve,Oe,pe.xcalendar,pe.ycalendar)});var Xe=pe.cliponaxis===!1;u.setClipUrl(ue,Xe?null:ye.layerClipId,X)});d.getComponentMethod("errorbars","plot")(X,we,ye,ke)}function K(X,ye,Ce,$e,ke,Ne,Ve,Oe,Fe,ie,we){var se=ye.xaxis,ue=ye.yaxis,pe=X._fullLayout,le;function Te(lt,ft,wt){var vt=l.ensureSingle(lt,"text").text(ft).attr({class:"bartext bartext-"+le,"text-anchor":"middle","data-notex":1}).call(u.font,wt).call(c.convertToTspans,X);return vt}var de=$e[0].trace,Me=de.orientation==="h",Re=Se(pe,$e,ke,se,ue);le=ce(de,ke);var ze=ie.mode==="stack"||ie.mode==="relative",We=$e[ke],ot=!ze||We._outmost;if(!Re||le==="none"||(We.isBlank||Ne===Ve||Oe===Fe)&&(le==="auto"||le==="inside")){Ce.select("text").remove();return}var dt=pe.font,Ge=_.getBarColor($e[ke],de),Xe=_.getInsideTextFont(de,ke,dt,Ge),qe=_.getOutsideTextFont(de,ke,dt),gt=Ce.datum();Me?se.type==="log"&>.s0<=0&&(se.range[0]0&&Nt>0,_n=Yt<=ut&&Nt<=tt,sn=Yt<=tt&&Nt<=ut,Zn=Me?ut>=Yt*(tt/Nt):tt>=Nt*(ut/Yt);pn&&(_n||sn||Zn)?le="inside":(le="outside",Ct.remove(),Ct=null)}else le="inside";if(!Ct){Ft=l.ensureUniformFontSize(X,le==="outside"?qe:Xe),Ct=Te(Ce,Re,Ft);var an=Ct.attr("transform");if(Ct.attr("transform",""),Gt=u.bBox(Ct.node()),Yt=Gt.width,Nt=Gt.height,Ct.attr("transform",an),Yt<=0||Nt<=0){Ct.remove();return}}var Cn=de.textangle,jn,Wn;le==="outside"?(Wn=de.constraintext==="both"||de.constraintext==="outside",jn=ge(Ne,Ve,Oe,Fe,Gt,{isHorizontal:Me,constrained:Wn,angle:Cn})):(Wn=de.constraintext==="both"||de.constraintext==="inside",jn=he(Ne,Ve,Oe,Fe,Gt,{isHorizontal:Me,constrained:Wn,angle:Cn,anchor:de.insidetextanchor})),jn.fontSize=Ft.size,x(de.type==="histogram"?"bar":de.type,jn,pe),We.transform=jn;var wn=P(Ct,pe,ie,we);l.setTransormAndDisplay(wn,jn)}function ae(X){return X==="auto"?0:X}function Q(X,ye){var Ce=Math.PI/180*ye,$e=Math.abs(Math.sin(Ce)),ke=Math.abs(Math.cos(Ce));return{x:X.width*ke+X.height*$e,y:X.width*$e+X.height*ke}}function he(X,ye,Ce,$e,ke,Ne){var Ve=!!Ne.isHorizontal,Oe=!!Ne.constrained,Fe=Ne.angle||0,ie=Ne.anchor||"end",we=ie==="end",se=ie==="start",ue=Ne.leftToRight||0,pe=(ue+1)/2,le=1-pe,Te=ke.width,de=ke.height,Me=Math.abs(ye-X),Re=Math.abs($e-Ce),ze=Me>2*k&&Re>2*k?k:0;Me-=2*ze,Re-=2*ze;var We=ae(Fe);Fe==="auto"&&!(Te<=Me&&de<=Re)&&(Te>Me||de>Re)&&(!(Te>Re||de>Me)||Te2*k?k:0:pe=se>2*k?k:0;var le=1;Oe&&(le=Ve?Math.min(1,ue/we):Math.min(1,se/ie));var Te=ae(Fe),de=Q(ke,Te),Me=(Ve?de.x:de.y)/2,Re=(ke.left+ke.right)/2,ze=(ke.top+ke.bottom)/2,We=(X+ye)/2,ot=(Ce+$e)/2,dt=0,Ge=0,Xe=Ve?H(ye,X):H(Ce,$e);return Ve?(We=ye-Xe*pe,dt=Xe*Me):(ot=$e+Xe*pe,Ge=-Xe*Me),{textX:Re,textY:ze,targetX:We,targetY:ot,anchorX:dt,anchorY:Ge,scale:le,rotate:Te}}function Se(X,ye,Ce,$e,ke){var Ne=ye[0].trace,Ve=Ne.texttemplate,Oe;return Ve?Oe=ne(X,ye,Ce,$e,ke):Ne.textinfo?Oe=fe(ye,Ce,$e,ke):Oe=$.getValue(Ne.text,Ce),$.coerceString(D,Oe)}function ce(X,ye){var Ce=$.getValue(X.textposition,ye);return $.coerceEnumerated(N,Ce)}function ne(X,ye,Ce,$e,ke){var Ne=ye[0].trace,Ve=l.castOption(Ne,Ce,"texttemplate");if(!Ve)return"";var Oe=Ne.type==="histogram",Fe=Ne.type==="waterfall",ie=Ne.type==="funnel",we=Ne.orientation==="h",se,ue,pe,le;we?(se="y",ue=ke,pe="x",le=$e):(se="x",ue=$e,pe="y",le=ke);function Te(dt){return g(ue,ue.c2l(dt),!0).text}function de(dt){return g(le,le.c2l(dt),!0).text}var Me=ye[Ce],Re={};Re.label=Me.p,Re.labelLabel=Re[se+"Label"]=Te(Me.p);var ze=l.castOption(Ne,Me.i,"text");(ze===0||ze)&&(Re.text=ze),Re.value=Me.s,Re.valueLabel=Re[pe+"Label"]=de(Me.s);var We={};M(We,Ne,Me.i),(Oe||We.x===void 0)&&(We.x=we?Re.value:Re.label),(Oe||We.y===void 0)&&(We.y=we?Re.label:Re.value),(Oe||We.xLabel===void 0)&&(We.xLabel=we?Re.valueLabel:Re.labelLabel),(Oe||We.yLabel===void 0)&&(We.yLabel=we?Re.labelLabel:Re.valueLabel),Fe&&(Re.delta=+Me.rawS||Me.s,Re.deltaLabel=de(Re.delta),Re.final=Me.v,Re.finalLabel=de(Re.final),Re.initial=Re.final-Re.delta,Re.initialLabel=de(Re.initial)),ie&&(Re.value=Me.s,Re.valueLabel=de(Re.value),Re.percentInitial=Me.begR,Re.percentInitialLabel=l.formatPercent(Me.begR),Re.percentPrevious=Me.difR,Re.percentPreviousLabel=l.formatPercent(Me.difR),Re.percentTotal=Me.sumR,Re.percenTotalLabel=l.formatPercent(Me.sumR));var ot=l.castOption(Ne,Me.i,"customdata");return ot&&(Re.customdata=ot),l.texttemplateString(Ve,Re,X._d3locale,We,Re,Ne._meta||{})}function fe(X,ye,Ce,$e){var ke=X[0].trace,Ne=ke.orientation==="h",Ve=ke.type==="waterfall",Oe=ke.type==="funnel";function Fe(ot){var dt=Ne?$e:Ce;return g(dt,ot,!0).text}function ie(ot){var dt=Ne?Ce:$e;return g(dt,+ot,!0).text}var we=ke.textinfo,se=X[ye],ue=we.split("+"),pe=[],le,Te=function(ot){return ue.indexOf(ot)!==-1};if(Te("label")&&pe.push(Fe(X[ye].p)),Te("text")&&(le=l.castOption(ke,se.i,"text"),(le===0||le)&&pe.push(le)),Ve){var de=+se.rawS||se.s,Me=se.v,Re=Me-de;Te("initial")&&pe.push(ie(Re)),Te("delta")&&pe.push(ie(de)),Te("final")&&pe.push(ie(Me))}if(Oe){Te("value")&&pe.push(ie(se.s));var ze=0;Te("percent initial")&&ze++,Te("percent previous")&&ze++,Te("percent total")&&ze++;var We=ze>1;Te("percent initial")&&(le=l.formatPercent(se.begR),We&&(le+=" of initial"),pe.push(le)),Te("percent previous")&&(le=l.formatPercent(se.difR),We&&(le+=" of previous"),pe.push(le)),Te("percent total")&&(le=l.formatPercent(se.sumR),We&&(le+=" of total"),pe.push(le))}return pe.join("
    ")}L.exports={plot:J,toMoveInsideBar:he}},1974:function(L){L.exports=function(m,h){var l=m.cd,c=m.xaxis,i=m.yaxis,u=l[0].trace,d=u.type==="funnel",g=u.orientation==="h",v=[],x;if(h===!1)for(x=0;x1||K.bargap===0&&K.bargroupgap===0&&!ae[0].trace.marker.line.width)&&m.select(this).attr("shape-rendering","crispEdges")}),ee.selectAll("g.points").each(function(ae){var Q=m.select(this),he=ae[0].trace;$(Q,he,P)}),i.getComponentMethod("errorbars","style")(ee)}function $(P,ee,J){l.pointStyle(P.selectAll("path"),ee,J),S(P,ee,J)}function S(P,ee,J){P.selectAll("text").each(function(K){var ae=m.select(this),Q=c.ensureUniformFontSize(J,M(ae,K,ee,J));l.font(ae,Q)})}function O(P,ee,J){var K=ee[0].trace;K.selectedpoints?D(J,K,P):($(J,K,P),i.getComponentMethod("errorbars","style")(J))}function D(P,ee,J){l.selectedPointStyle(P.selectAll("path"),ee),N(P.selectAll("text"),ee,J)}function N(P,ee,J){P.each(function(K){var ae=m.select(this),Q;if(K.selected){Q=c.ensureUniformFontSize(J,M(ae,K,ee,J));var he=ee.selected.textfont&&ee.selected.textfont.color;he&&(Q.color=he),l.font(ae,Q)}else l.selectedTextStyle(ae,ee)})}function M(P,ee,J,K){var ae=K._fullLayout.font,Q=J.textfont;if(P.classed("bartext-inside")){var he=j(ee,J);Q=R(J,ee.i,ae,he)}else P.classed("bartext-outside")&&(Q=F(J,ee.i,ae));return Q}function k(P,ee,J){return H(g,P.textfont,ee,J)}function R(P,ee,J,K){var ae=k(P,ee,J),Q=P._input.textfont===void 0||P._input.textfont.color===void 0||Array.isArray(P.textfont.color)&&P.textfont.color[ee]===void 0;return Q&&(ae={color:h.contrast(K),family:ae.family,size:ae.size}),H(v,P.insidetextfont,ee,ae)}function F(P,ee,J){var K=k(P,ee,J);return H(x,P.outsidetextfont,ee,K)}function H(P,ee,J,K){ee=ee||{};var ae=C.getValue(ee.family,J),Q=C.getValue(ee.size,J),he=C.getValue(ee.color,J);return{family:C.coerceString(P.family,ae,K.family),size:C.coerceNumber(P.size,Q,K.size),color:C.coerceColor(P.color,he,K.color)}}function j(P,ee){return ee.type==="waterfall"?ee[P.dir].marker.color:P.mcc||P.mc||ee.marker.color}L.exports={style:_,styleTextPoints:S,styleOnSelect:O,getInsideTextFont:R,getOutsideTextFont:F,getBarColor:j,resizeText:u}},8340:function(L,A,s){var m=s(7901),h=s(2869).hasColorscale,l=s(1586),c=s(1828).coercePattern;L.exports=function(u,d,g,v,x){var C=g("marker.color",v),_=h(u,"marker");_&&l(u,d,x,g,{prefix:"marker.",cLetter:"c"}),g("marker.line.color",m.defaultLine),h(u,"marker.line")&&l(u,d,x,g,{prefix:"marker.line.",cLetter:"c"}),g("marker.line.width"),g("marker.opacity"),c(g,"marker.pattern",C,_),g("selected.marker.color"),g("unselected.marker.color")}},2597:function(L,A,s){var m=s(9898),h=s(1828);function l(d,g,v){var x=d._fullLayout,C=x["_"+v+"Text_minsize"];if(C){var _=x.uniformtext.mode==="hide",$;switch(v){case"funnelarea":case"pie":case"sunburst":$="g.slice";break;case"treemap":case"icicle":$="g.slice, g.pathbar";break;default:$="g.points > g.point"}g.selectAll($).each(function(S){var O=S.transform;if(O){O.scale=_&&O.hide?0:C/O.fontSize;var D=m.select(this).select("text");h.setTransormAndDisplay(D,O)}})}}function c(d,g,v){if(v.uniformtext.mode){var x=u(d),C=v.uniformtext.minsize,_=g.scale*g.fontSize;g.hide=_=0});var Q=x.type==="funnelarea"?P:x.sort;return Q&&C.sort(function(he,ge){return ge.v-he.v}),C[0]&&(C[0].vTotal=j),C}function u(v){return function(C,_){return!C||(C=h(C),!C.isValid())?!1:(C=l.addOpacity(C,C.getAlpha()),v[_]||(v[_]=C),C)}}function d(v,x){var C=(x||{}).type;C||(C="pie");var _=v._fullLayout,$=v.calcdata,S=_[C+"colorway"],O=_["_"+C+"colormap"];_["extend"+C+"colors"]&&(S=g(S,c));for(var D=0,N=0;N<$.length;N++){var M=$[N],k=M[0].trace.type;if(k===C)for(var R=0;R0){O=!0;break}}O||(S=0)}return{hasLabels:_,hasValues:$,len:S}}function g(x,C,_,$,S){var O=$("marker.line.width");O&&$("marker.line.color",S?void 0:_.paper_bgcolor);var D=$("marker.colors");u($,"marker.pattern",D),x.marker&&!C.marker.pattern.fgcolor&&(C.marker.pattern.fgcolor=x.marker.colors),C.marker.pattern.bgcolor||(C.marker.pattern.bgcolor=_.paper_bgcolor)}function v(x,C,_,$){function S(ae,Q){return h.coerce(x,C,l,ae,Q)}var O=S("labels"),D=S("values"),N=d(O,D),M=N.len;if(C._hasLabels=N.hasLabels,C._hasValues=N.hasValues,!C._hasLabels&&C._hasValues&&(S("label0"),S("dlabel")),!M){C.visible=!1;return}C._length=M,g(x,C,$,S,!0),S("scalegroup");var k=S("text"),R=S("texttemplate"),F;if(R||(F=S("textinfo",Array.isArray(k)?"text+percent":"percent")),S("hovertext"),S("hovertemplate"),R||F&&F!=="none"){var H=S("textposition");i(x,C,$,S,H,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var j=Array.isArray(H)||H==="auto",P=j||H==="outside";P&&S("automargin"),(H==="inside"||H==="auto"||Array.isArray(H))&&S("insidetextorientation")}c(C,$,S);var ee=S("hole"),J=S("title.text");if(J){var K=S("title.position",ee?"middle center":"top center");!ee&&K==="middle center"&&(C.title.position="top center"),h.coerceFont(S,"title.font",$.font)}S("sort"),S("direction"),S("rotation"),S("pull")}L.exports={handleLabelsAndValues:d,handleMarkerDefaults:g,supplyDefaults:v}},7:function(L,A,s){var m=s(3469).appendArrayMultiPointValues;L.exports=function(l,c){var i={curveNumber:c.index,pointNumbers:l.pts,data:c._input,fullData:c,label:l.label,color:l.color,value:l.v,percent:l.percent,text:l.text,bbox:l.bbox,v:l.v};return l.pts.length===1&&(i.pointNumber=i.i=l.pts[0]),m(i,c,l.pts),c.type==="funnelarea"&&(delete i.v,delete i.i),i}},2209:function(L,A,s){var m=s(1424),h=s(7901);L.exports=function(c,i,u,d){var g=u.marker.pattern;g&&g.shape?m.pointStyle(c,u,d,i):h.fill(c,i.color)}},3581:function(L,A,s){var m=s(1828);function h(l){return l.indexOf("e")!==-1?l.replace(/[.]?0+e/,"e"):l.indexOf(".")!==-1?l.replace(/[.]?0+$/,""):l}A.formatPiePercent=function(c,i){var u=h((c*100).toPrecision(3));return m.numSeparate(u,i)+"%"},A.formatPieValue=function(c,i){var u=h(c.toPrecision(10));return m.numSeparate(u,i)},A.getFirstFilled=function(c,i){if(Array.isArray(c))for(var u=0;u0&&(Gt+=pn*tt.pxmid[0],Yt+=pn*tt.pxmid[1])}tt.cxFinal=Gt,tt.cyFinal=Yt;function _n(wn,lt,ft,wt){var vt=wt*(lt[0]-wn[0]),$t=wt*(lt[1]-wn[1]);return"a"+wt*de.r+","+wt*de.r+" 0 "+tt.largeArc+(ft?" 1 ":" 0 ")+vt+","+$t}var sn=Me.hole;if(tt.v===de.vTotal){var Zn="M"+(Gt+tt.px0[0])+","+(Yt+tt.px0[1])+_n(tt.px0,tt.pxmid,!0,1)+_n(tt.pxmid,tt.px0,!0,1)+"Z";sn?Ft.attr("d","M"+(Gt+sn*tt.px0[0])+","+(Yt+sn*tt.px0[1])+_n(tt.px0,tt.pxmid,!1,sn)+_n(tt.pxmid,tt.px0,!1,sn)+"Z"+Zn):Ft.attr("d",Zn)}else{var an=_n(tt.px0,tt.px1,!0,1);if(sn){var Cn=1-sn;Ft.attr("d","M"+(Gt+sn*tt.px1[0])+","+(Yt+sn*tt.px1[1])+_n(tt.px1,tt.px0,!1,sn)+"l"+Cn*tt.px0[0]+","+Cn*tt.px0[1]+an+"Z")}else Ft.attr("d","M"+Gt+","+Yt+"l"+tt.px0[0]+","+tt.px0[1]+an+"Z")}Ve(Fe,tt,de);var jn=S.castOption(Me.textposition,tt.pts),Wn=Nt.selectAll("g.slicetext").data(tt.text&&jn!=="none"?[0]:[]);Wn.enter().append("g").classed("slicetext",!0),Wn.exit().remove(),Wn.each(function(){var wn=u.ensureSingle(m.select(this),"text","",function(ht){ht.attr("data-notex",1)}),lt=u.ensureUniformFontSize(Fe,jn==="outside"?R(Me,tt,se.font):F(Me,tt,se.font));wn.text(tt.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(i.font,lt).call(v.convertToTspans,Fe);var ft=i.bBox(wn.node()),wt;if(jn==="outside")wt=ge(ft,tt);else if(wt=j(ft,tt,de),jn==="auto"&&wt.scale<1){var vt=u.ensureUniformFontSize(Fe,Me.outsidetextfont);wn.call(i.font,vt),ft=i.bBox(wn.node()),wt=ge(ft,tt)}var $t=wt.textPosAngle,Ze=$t===void 0?tt.pxmid:Ne(de.r,$t);if(wt.targetX=Gt+Ze[0]*wt.rCenter+(wt.x||0),wt.targetY=Yt+Ze[1]*wt.rCenter+(wt.y||0),Oe(wt,ft),wt.outside){var it=wt.targetY;tt.yLabelMin=it-ft.height/2,tt.yLabelMid=it,tt.yLabelMax=it+ft.height/2,tt.labelExtraX=0,tt.labelExtraY=0,We=!0}wt.fontSize=lt.size,C(Me.type,wt,se),le[Ct].transform=wt,u.setTransormAndDisplay(wn,wt)})});var ot=m.select(this).selectAll("g.titletext").data(Me.title.text?[0]:[]);if(ot.enter().append("g").classed("titletext",!0),ot.exit().remove(),ot.each(function(){var tt=u.ensureSingle(m.select(this),"text","",function(Yt){Yt.attr("data-notex",1)}),Ct=Me.title.text;Me._meta&&(Ct=u.templateString(Ct,Me._meta)),tt.text(Ct).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(i.font,Me.title.font).call(v.convertToTspans,Fe);var Gt;Me.title.position==="middle center"?Gt=Se(de):Gt=ce(de,ue),tt.attr("transform",g(Gt.x,Gt.y)+d(Math.min(1,Gt.scale))+g(Gt.tx,Gt.ty))}),We&&ye(ze,Me),M(Re,Me),We&&Me.automargin){var dt=i.bBox(Te.node()),Ge=Me.domain,Xe=ue.w*(Ge.x[1]-Ge.x[0]),qe=ue.h*(Ge.y[1]-Ge.y[0]),gt=(.5*Xe-de.r)/ue.w,ut=(.5*qe-de.r)/ue.h;h.autoMargin(Fe,"pie."+Me.uid+".automargin",{xl:Ge.x[0]-gt,xr:Ge.x[1]+gt,yb:Ge.y[0]-ut,yt:Ge.y[1]+ut,l:Math.max(de.cx-de.r-dt.left,0),r:Math.max(dt.right-(de.cx+de.r),0),b:Math.max(dt.bottom-(de.cy+de.r),0),t:Math.max(de.cy-de.r-dt.top,0),pad:5})}})});setTimeout(function(){pe.selectAll("tspan").each(function(){var le=m.select(this);le.attr("dy")&&le.attr("dy",le.attr("dy"))})},0)}function M(Fe,ie){Fe.each(function(we){var se=m.select(this);if(!we.labelExtraX&&!we.labelExtraY){se.select("path.textline").remove();return}var ue=se.select("g.slicetext text");we.transform.targetX+=we.labelExtraX,we.transform.targetY+=we.labelExtraY,u.setTransormAndDisplay(ue,we.transform);var pe=we.cxFinal+we.pxmid[0],le=we.cyFinal+we.pxmid[1],Te="M"+pe+","+le,de=(we.yLabelMax-we.yLabelMin)*(we.pxmid[0]<0?-1:1)/4;if(we.labelExtraX){var Me=we.labelExtraX*we.pxmid[1]/we.pxmid[0],Re=we.yLabelMid+we.labelExtraY-(we.cyFinal+we.pxmid[1]);Math.abs(Me)>Math.abs(Re)?Te+="l"+Re*we.pxmid[0]/we.pxmid[1]+","+Re+"H"+(pe+we.labelExtraX+de):Te+="l"+we.labelExtraX+","+Me+"v"+(Re-Me)+"h"+de}else Te+="V"+(we.yLabelMid+we.labelExtraY)+"h"+de;u.ensureSingle(se,"path","textline").call(c.stroke,ie.outsidetextfont.color).attr({"stroke-width":Math.min(2,ie.outsidetextfont.size/8),d:Te,fill:"none"})})}function k(Fe,ie,we){var se=we[0],ue=se.cx,pe=se.cy,le=se.trace,Te=le.type==="funnelarea";"_hasHoverLabel"in le||(le._hasHoverLabel=!1),"_hasHoverEvent"in le||(le._hasHoverEvent=!1),Fe.on("mouseover",function(de){var Me=ie._fullLayout,Re=ie._fullData[le.index];if(!(ie._dragging||Me.hovermode===!1)){var ze=Re.hoverinfo;if(Array.isArray(ze)&&(ze=l.castHoverinfo({hoverinfo:[S.castOption(ze,de.pts)],_module:le._module},Me,0)),ze==="all"&&(ze="label+text+value+percent+name"),Re.hovertemplate||ze!=="none"&&ze!=="skip"&&ze){var We=de.rInscribed||0,ot=ue+de.pxmid[0]*(1-We),dt=pe+de.pxmid[1]*(1-We),Ge=Me.separators,Xe=[];if(ze&&ze.indexOf("label")!==-1&&Xe.push(de.label),de.text=S.castOption(Re.hovertext||Re.text,de.pts),ze&&ze.indexOf("text")!==-1){var qe=de.text;u.isValidTextValue(qe)&&Xe.push(qe)}de.value=de.v,de.valueLabel=S.formatPieValue(de.v,Ge),ze&&ze.indexOf("value")!==-1&&Xe.push(de.valueLabel),de.percent=de.v/se.vTotal,de.percentLabel=S.formatPiePercent(de.percent,Ge),ze&&ze.indexOf("percent")!==-1&&Xe.push(de.percentLabel);var gt=Re.hoverlabel,ut=gt.font,tt=[];l.loneHover({trace:le,x0:ot-We*se.r,x1:ot+We*se.r,y:dt,_x0:Te?ue+de.TL[0]:ot-We*se.r,_x1:Te?ue+de.TR[0]:ot+We*se.r,_y0:Te?pe+de.TL[1]:dt-We*se.r,_y1:Te?pe+de.BL[1]:dt+We*se.r,text:Xe.join("
    "),name:Re.hovertemplate||ze.indexOf("name")!==-1?Re.name:void 0,idealAlign:de.pxmid[0]<0?"left":"right",color:S.castOption(gt.bgcolor,de.pts)||de.color,borderColor:S.castOption(gt.bordercolor,de.pts),fontFamily:S.castOption(ut.family,de.pts),fontSize:S.castOption(ut.size,de.pts),fontColor:S.castOption(ut.color,de.pts),nameLength:S.castOption(gt.namelength,de.pts),textAlign:S.castOption(gt.align,de.pts),hovertemplate:S.castOption(Re.hovertemplate,de.pts),hovertemplateLabels:de,eventData:[O(de,Re)]},{container:Me._hoverlayer.node(),outerContainer:Me._paper.node(),gd:ie,inOut_bbox:tt}),de.bbox=tt[0],le._hasHoverLabel=!0}le._hasHoverEvent=!0,ie.emit("plotly_hover",{points:[O(de,Re)],event:m.event})}}),Fe.on("mouseout",function(de){var Me=ie._fullLayout,Re=ie._fullData[le.index],ze=m.select(this).datum();le._hasHoverEvent&&(de.originalEvent=m.event,ie.emit("plotly_unhover",{points:[O(ze,Re)],event:m.event}),le._hasHoverEvent=!1),le._hasHoverLabel&&(l.loneUnhover(Me._hoverlayer.node()),le._hasHoverLabel=!1)}),Fe.on("click",function(de){var Me=ie._fullLayout,Re=ie._fullData[le.index];ie._dragging||Me.hovermode===!1||(ie._hoverdata=[O(de,Re)],l.click(ie,m.event))})}function R(Fe,ie,we){var se=S.castOption(Fe.outsidetextfont.color,ie.pts)||S.castOption(Fe.textfont.color,ie.pts)||we.color,ue=S.castOption(Fe.outsidetextfont.family,ie.pts)||S.castOption(Fe.textfont.family,ie.pts)||we.family,pe=S.castOption(Fe.outsidetextfont.size,ie.pts)||S.castOption(Fe.textfont.size,ie.pts)||we.size;return{color:se,family:ue,size:pe}}function F(Fe,ie,we){var se=S.castOption(Fe.insidetextfont.color,ie.pts);!se&&Fe._input.textfont&&(se=S.castOption(Fe._input.textfont.color,ie.pts));var ue=S.castOption(Fe.insidetextfont.family,ie.pts)||S.castOption(Fe.textfont.family,ie.pts)||we.family,pe=S.castOption(Fe.insidetextfont.size,ie.pts)||S.castOption(Fe.textfont.size,ie.pts)||we.size;return{color:se||c.contrast(ie.color),family:ue,size:pe}}function H(Fe,ie){for(var we,se,ue=0;ue=-4;gt-=2)qe(Math.PI*gt,"tan");for(gt=4;gt>=-4;gt-=2)qe(Math.PI*(gt+1),"tan")}if(ze||ot){for(gt=4;gt>=-4;gt-=2)qe(Math.PI*(gt+1.5),"rad");for(gt=4;gt>=-4;gt-=2)qe(Math.PI*(gt+.5),"rad")}}if(Te||dt||ze){var ut=Math.sqrt(Fe.width*Fe.width+Fe.height*Fe.height);if(Xe={scale:ue*se*2/ut,rCenter:1-ue,rotate:0},Xe.textPosAngle=(ie.startangle+ie.stopangle)/2,Xe.scale>=1)return Xe;Ge.push(Xe)}(dt||ot)&&(Xe=ee(Fe,se,le,de,Me),Xe.textPosAngle=(ie.startangle+ie.stopangle)/2,Ge.push(Xe)),(dt||We)&&(Xe=J(Fe,se,le,de,Me),Xe.textPosAngle=(ie.startangle+ie.stopangle)/2,Ge.push(Xe));for(var tt=0,Ct=0,Gt=0;Gt=1)break}return Ge[tt]}function P(Fe,ie){var we=Fe.startangle,se=Fe.stopangle;return we>ie&&ie>se||we0?1:-1)/2,y:pe/(1+we*we/(se*se)),outside:!0}}function Se(Fe){var ie=Math.sqrt(Fe.titleBox.width*Fe.titleBox.width+Fe.titleBox.height*Fe.titleBox.height);return{x:Fe.cx,y:Fe.cy,scale:Fe.trace.hole*Fe.r*2/ie,tx:0,ty:-Fe.titleBox.height/2+Fe.trace.title.font.size}}function ce(Fe,ie){var we=1,se=1,ue,pe=Fe.trace,le={x:Fe.cx,y:Fe.cy},Te={tx:0,ty:0};Te.ty+=pe.title.font.size,ue=X(pe),pe.title.position.indexOf("top")!==-1?(le.y-=(1+ue)*Fe.r,Te.ty-=Fe.titleBox.height):pe.title.position.indexOf("bottom")!==-1&&(le.y+=(1+ue)*Fe.r);var de=ne(Fe.r,Fe.trace.aspectratio),Me=ie.w*(pe.domain.x[1]-pe.domain.x[0])/2;return pe.title.position.indexOf("left")!==-1?(Me=Me+de,le.x-=(1+ue)*de,Te.tx+=Fe.titleBox.width/2):pe.title.position.indexOf("center")!==-1?Me*=2:pe.title.position.indexOf("right")!==-1&&(Me=Me+de,le.x+=(1+ue)*de,Te.tx-=Fe.titleBox.width/2),we=Me/Fe.titleBox.width,se=fe(Fe,ie)/Fe.titleBox.height,{x:le.x,y:le.y,scale:Math.min(we,se),tx:Te.tx,ty:Te.ty}}function ne(Fe,ie){return Fe/(ie===void 0?1:ie)}function fe(Fe,ie){var we=Fe.trace,se=ie.h*(we.domain.y[1]-we.domain.y[0]);return Math.min(Fe.titleBox.height,se/2)}function X(Fe){var ie=Fe.pull;if(!ie)return 0;var we;if(Array.isArray(ie))for(ie=0,we=0;weie&&(ie=Fe.pull[we]);return ie}function ye(Fe,ie){var we,se,ue,pe,le,Te,de,Me,Re,ze,We,ot,dt;function Ge(ut,tt){return ut.pxmid[1]-tt.pxmid[1]}function Xe(ut,tt){return tt.pxmid[1]-ut.pxmid[1]}function qe(ut,tt){tt||(tt={});var Ct=tt.labelExtraY+(se?tt.yLabelMax:tt.yLabelMin),Gt=se?ut.yLabelMin:ut.yLabelMax,Yt=se?ut.yLabelMax:ut.yLabelMin,Nt=ut.cyFinal+le(ut.px0[1],ut.px1[1]),Ft=Ct-Gt,pn,_n,sn,Zn,an,Cn;if(Ft*de>0&&(ut.labelExtraY=Ft),!!Array.isArray(ie.pull))for(_n=0;_n=(S.castOption(ie.pull,sn.pts)||0))&&((ut.pxmid[1]-sn.pxmid[1])*de>0?(Zn=sn.cyFinal+le(sn.px0[1],sn.px1[1]),Ft=Zn-Gt-ut.labelExtraY,Ft*de>0&&(ut.labelExtraY+=Ft)):(Yt+ut.labelExtraY-Nt)*de>0&&(pn=3*Te*Math.abs(_n-ze.indexOf(ut)),an=sn.cxFinal+pe(sn.px0[0],sn.px1[0]),Cn=an+pn-(ut.cxFinal+ut.pxmid[0])-ut.labelExtraX,Cn*Te>0&&(ut.labelExtraX+=Cn)))}for(se=0;se<2;se++)for(ue=se?Ge:Xe,le=se?Math.max:Math.min,de=se?1:-1,we=0;we<2;we++){for(pe=we?Math.max:Math.min,Te=we?1:-1,Me=Fe[se][we],Me.sort(ue),Re=Fe[1-se][we],ze=Re.concat(Me),ot=[],We=0;We1?(Me=we.r,Re=Me/ue.aspectratio):(Re=we.r,Me=Re*ue.aspectratio),Me*=(1+ue.baseratio)/2,de=Me*Re}le=Math.min(le,de/we.vTotal)}for(se=0;seie.vTotal/2?1:0,Me.halfangle=Math.PI*Math.min(Me.v/ie.vTotal,.5),Me.ring=1-se.hole,Me.rInscribed=he(Me,ie))}function Ne(Fe,ie){return[Fe*Math.sin(ie),-Fe*Math.cos(ie)]}function Ve(Fe,ie,we){var se=Fe._fullLayout,ue=we.trace,pe=ue.texttemplate,le=ue.textinfo;if(!pe&&le&&le!=="none"){var Te=le.split("+"),de=function(tt){return Te.indexOf(tt)!==-1},Me=de("label"),Re=de("text"),ze=de("value"),We=de("percent"),ot=se.separators,dt;if(dt=Me?[ie.label]:[],Re){var Ge=S.getFirstFilled(ue.text,ie.pts);D(Ge)&&dt.push(Ge)}ze&&dt.push(S.formatPieValue(ie.v,ot)),We&&dt.push(S.formatPiePercent(ie.v/we.vTotal,ot)),ie.text=dt.join("
    ")}function Xe(tt){return{label:tt.label,value:tt.v,valueLabel:S.formatPieValue(tt.v,se.separators),percent:tt.v/we.vTotal,percentLabel:S.formatPiePercent(tt.v/we.vTotal,se.separators),color:tt.color,text:tt.text,customdata:u.castOption(ue,tt.i,"customdata")}}if(pe){var qe=u.castOption(ue,ie.i,"texttemplate");if(!qe)ie.text="";else{var gt=Xe(ie),ut=S.getFirstFilled(ue.text,ie.pts);(D(ut)||ut==="")&&(gt.text=ut),ie.text=u.texttemplateString(qe,gt,Fe._fullLayout._d3locale,gt,ue._meta||{})}}}function Oe(Fe,ie){var we=Fe.rotate*Math.PI/180,se=Math.cos(we),ue=Math.sin(we),pe=(ie.left+ie.right)/2,le=(ie.top+ie.bottom)/2;Fe.textX=pe*se-le*ue,Fe.textY=pe*ue+le*se,Fe.noCenter=!0}L.exports={plot:N,formatSliceLabel:Ve,transformInsideText:j,determineInsideTextFont:F,positionTitleOutside:ce,prerenderTitles:H,layoutAreas:Ce,attachFxHandlers:k,computeTransform:Oe}},8357:function(L,A,s){var m=s(9898),h=s(3463),l=s(2597).resizeText;L.exports=function(i){var u=i._fullLayout._pielayer.selectAll(".trace");l(i,u,"pie"),u.each(function(d){var g=d[0],v=g.trace,x=m.select(this);x.style({opacity:v.opacity}),x.selectAll("path.surface").each(function(C){m.select(this).call(h,C,v,i)})})}},3463:function(L,A,s){var m=s(7901),h=s(3581).castOption,l=s(2209);L.exports=function(i,u,d,g){var v=d.marker.line,x=h(v.color,u.pts)||m.defaultLine,C=h(v.width,u.pts)||0;i.call(l,u,d,g).style("stroke-width",C).call(m.stroke,x)}},5225:function(L,A,s){var m=s(1828);L.exports=function(l,c){for(var i=0;ice&&ae[fe].gap;)fe--;for(ye=ae[fe].s,ne=ae.length-1;ne>fe;ne--)ae[ne].s=ye;for(;cege[D]&&D=0;$--){var S=i[$];if(S.type==="scatter"&&S.xaxis===C.xaxis&&S.yaxis===C.yaxis){S.opacity=void 0;break}}}}}},7438:function(L,A,s){var m=s(1828),h=s(3972),l=s(2196),c=s(7581),i=s(4098),u=s(7513),d=s(3927),g=s(565),v=s(9508),x=s(1058),C=s(4039),_=s(2410),$=s(8908),S=s(1828).coercePattern;L.exports=function(D,N,M,k){function R(ae,Q){return m.coerce(D,N,l,ae,Q)}var F=u(D,N,k,R);if(F||(N.visible=!1),!!N.visible){d(D,N,k,R),R("xhoverformat"),R("yhoverformat");var H=g(D,N,k,R);k.scattermode==="group"&&N.orientation===void 0&&R("orientation","v");var j=!H&&F=Math.min(Re,ze)&&D<=Math.max(Re,ze)?0:1/0}var We=Math.max(3,Me.mrc||0),ot=1-1/We,dt=Math.abs(S.c2p(Me.x)-D);return dt=Math.min(Re,ze)&&N<=Math.max(Re,ze)?0:1/0}var We=Math.max(3,Me.mrc||0),ot=1-1/We,dt=Math.abs(O.c2p(Me.y)-N);return dtTe!=le>=Te&&(se=ie[Oe-1][0],ue=ie[Oe][0],le-pe&&(we=se+(ue-se)*(Te-pe)/(le-pe),Ce=Math.min(Ce,we),$e=Math.max($e,we)));Ce=Math.max(Ce,0),$e=Math.min($e,S._length);var de=i.defaultLine;return i.opacity($.fillcolor)?de=$.fillcolor:i.opacity(($.line||{}).color)&&(de=$.line.color),m.extendFlat(g,{distance:g.maxHoverDistance,x0:Ce,x1:$e,y0:Te,y1:Te,color:de,hovertemplate:!1}),delete g.index,$.text&&!Array.isArray($.text)?g.text=String($.text):g.text=$.name,[g]}}}},7368:function(L,A,s){var m=s(4098);L.exports={hasLines:m.hasLines,hasMarkers:m.hasMarkers,hasText:m.hasText,isBubble:m.isBubble,attributes:s(2196),layoutAttributes:s(1479),supplyDefaults:s(7438),crossTraceDefaults:s(462),supplyLayoutDefaults:s(9334),calc:s(7761).calc,crossTraceCalc:s(2626),arraysToCalcdata:s(5225),plot:s(7399),colorbar:s(4898),formatLabels:s(8225),style:s(6296).style,styleOnSelect:s(6296).styleOnSelect,hoverPoints:s(3720),selectPoints:s(8002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:s(3612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},1479:function(L){L.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},9334:function(L,A,s){var m=s(1828),h=s(1479);L.exports=function(l,c){function i(d,g){return m.coerce(l,c,h,d,g)}var u=c.barmode==="group";c.scattermode==="group"&&i("scattergap",u?c.bargap:.2)}},1058:function(L,A,s){var m=s(1828).isArrayOrTypedArray,h=s(2869).hasColorscale,l=s(1586);L.exports=function(i,u,d,g,v,x){x||(x={});var C=(i.marker||{}).color;if(v("line.color",d),h(i,"line"))l(i,u,g,v,{prefix:"line.",cLetter:"c"});else{var _=(m(C)?!1:C)||d;v("line.color",_)}v("line.width"),x.noDash||v("line.dash"),x.backoff&&v("line.backoff")}},4621:function(L,A,s){var m=s(1424),h=s(606),l=h.BADNUM,c=h.LOG_CLIP,i=c+.5,u=c-.5,d=s(1828),g=d.segmentsIntersect,v=d.constrain,x=s(7581);L.exports=function(_,$){var S=$.trace||{},O=$.xaxis,D=$.yaxis,N=O.type==="log",M=D.type==="log",k=O._length,R=D._length,F=$.backoff,H=S.marker,j=$.connectGaps,P=$.baseTolerance,ee=$.shape,J=ee==="linear",K=S.fill&&S.fill!=="none",ae=[],Q=x.minTolerance,he=_.length,ge=new Array(he),Se=0,ce,ne,fe,X,ye,Ce,$e,ke,Ne,Ve,Oe,Fe,ie,we,se,ue;function pe(Tt){var Et=_[Tt];if(!Et)return!1;var fn=$.linearized?O.l2p(Et.x):O.c2p(Et.x),tn=$.linearized?D.l2p(Et.y):D.c2p(Et.y);if(fn===l){if(N&&(fn=O.c2p(Et.x,!0)),fn===l)return!1;M&&tn===l&&(fn*=Math.abs(O._m*R*(O._m>0?i:u)/(D._m*k*(D._m>0?i:u)))),fn*=1e3}if(tn===l){if(M&&(tn=D.c2p(Et.y,!0)),tn===l)return!1;tn*=1e3}return[fn,tn]}function le(Tt,Et,fn,tn){var Zt=fn-Tt,Dt=tn-Et,un=.5-Tt,Un=.5-Et,tr=Zt*Zt+Dt*Dt,Er=Zt*un+Dt*Un;if(Er>0&&Er1||Math.abs(un.y-fn[0][1])>1)&&(un=[un.x,un.y],tn&&Re(un,Tt)ot||Tt[1]Ge)return[v(Tt[0],We,ot),v(Tt[1],dt,Ge)]}function Ft(Tt,Et){if(Tt[0]===Et[0]&&(Tt[0]===We||Tt[0]===ot)||Tt[1]===Et[1]&&(Tt[1]===dt||Tt[1]===Ge))return!0}function pn(Tt,Et){var fn=[],tn=Nt(Tt),Zt=Nt(Et);return tn&&Zt&&Ft(tn,Zt)||(tn&&fn.push(tn),Zt&&fn.push(Zt)),fn}function _n(Tt,Et,fn){return function(tn,Zt){var Dt=Nt(tn),un=Nt(Zt),Un=[];if(Dt&&un&&Ft(Dt,un))return Un;Dt&&Un.push(Dt),un&&Un.push(un);var tr=2*d.constrain((tn[Tt]+Zt[Tt])/2,Et,fn)-((Dt||tn)[Tt]+(un||Zt)[Tt]);if(tr){var Er;Dt&&un?Er=tr>0==Dt[Tt]>un[Tt]?Dt:un:Er=Dt||un,Er[Tt]+=tr}return Un}}var sn;ee==="linear"||ee==="spline"?sn=Yt:ee==="hv"||ee==="vh"?sn=pn:ee==="hvh"?sn=_n(0,We,ot):ee==="vhv"&&(sn=_n(1,dt,Ge));function Zn(Tt,Et){var fn=Et[0]-Tt[0],tn=(Et[1]-Tt[1])/fn,Zt=(Tt[1]*Et[0]-Et[1]*Tt[0])/fn;return Zt>0?[tn>0?We:ot,Ge]:[tn>0?ot:We,dt]}function an(Tt){var Et=Tt[0],fn=Tt[1],tn=Et===ge[Se-1][0],Zt=fn===ge[Se-1][1];if(!(tn&&Zt))if(Se>1){var Dt=Et===ge[Se-2][0],un=fn===ge[Se-2][1];tn&&(Et===We||Et===ot)&&Dt?un?Se--:ge[Se-1]=Tt:Zt&&(fn===dt||fn===Ge)&&un?Dt?Se--:ge[Se-1]=Tt:ge[Se++]=Tt}else ge[Se++]=Tt}function Cn(Tt){ge[Se-1][0]!==Tt[0]&&ge[Se-1][1]!==Tt[1]&&an([ut,tt]),an(Tt),Ct=null,ut=tt=0}var jn=d.isArrayOrTypedArray(H);function Wn(Tt){if(Tt&&F&&(Tt.i=ce,Tt.d=_,Tt.trace=S,Tt.marker=jn?H[Tt.i]:H,Tt.backoff=F),Te=Tt[0]/k,de=Tt[1]/R,qe=Tt[0]ot?ot:0,gt=Tt[1]Ge?Ge:0,qe||gt){if(!Se)ge[Se++]=[qe||Tt[0],gt||Tt[1]];else if(Ct){var Et=sn(Ct,Tt);Et.length>1&&(Cn(Et[0]),ge[Se++]=Et[1])}else Gt=sn(ge[Se-1],Tt)[0],ge[Se++]=Gt;var fn=ge[Se-1];qe&>&&(fn[0]!==qe||fn[1]!==gt)?(Ct&&(ut!==qe&&tt!==gt?an(ut&&tt?Zn(Ct,Tt):[ut||qe,tt||gt]):ut&&tt&&an([ut,tt])),an([qe,gt])):ut-qe&&tt-gt&&an([qe||ut,gt||tt]),Ct=Tt,ut=qe,tt=gt}else Ct&&Cn(sn(Ct,Tt)[0]),ge[Se++]=Tt}for(ce=0;ceMe(Ce,wn))break;fe=Ce,ie=Ne[0]*ke[0]+Ne[1]*ke[1],ie>Oe?(Oe=ie,X=Ce,$e=!1):ie=_.length||!Ce)break;Wn(Ce),ne=Ce}}Ct&&an([ut||Ct[0],tt||Ct[1]]),ae.push(ge.slice(0,Se))}var lt=ee.slice(ee.length-1);if(F&<!=="h"&<!=="v"){for(var ft=!1,wt=-1,vt=[],$t=0;$t=0?g=$:(g=$=_,_++),g0?Math.max(x,d):0}}},4898:function(L){L.exports={container:"marker",min:"cmin",max:"cmax"}},9508:function(L,A,s){var m=s(7901),h=s(2869).hasColorscale,l=s(1586),c=s(4098);L.exports=function(u,d,g,v,x,C){var _=c.isBubble(u),$=(u.line||{}).color,S;if(C=C||{},$&&(g=$),x("marker.symbol"),x("marker.opacity",_?.7:1),x("marker.size"),C.noAngle||(x("marker.angle"),C.noAngleRef||x("marker.angleref"),C.noStandOff||x("marker.standoff")),x("marker.color",g),h(u,"marker")&&l(u,d,v,x,{prefix:"marker.",cLetter:"c"}),C.noSelect||(x("selected.marker.color"),x("unselected.marker.color"),x("selected.marker.size"),x("unselected.marker.size")),C.noLine||($&&!Array.isArray($)&&d.marker.color!==$?S=$:_?S=m.background:S=m.defaultLine,x("marker.line.color",S),h(u,"marker.line")&&l(u,d,v,x,{prefix:"marker.line.",cLetter:"c"}),x("marker.line.width",_?1:0)),_&&(x("marker.sizeref"),x("marker.sizemin"),x("marker.sizemode")),C.gradient){var O=x("marker.gradient.type");O!=="none"&&x("marker.gradient.color")}}},3927:function(L,A,s){var m=s(1828).dateTick0,h=s(606),l=h.ONEWEEK;function c(i,u){return i%l===0?m(u,1):m(u,0)}L.exports=function(u,d,g,v,x){if(x||(x={x:!0,y:!0}),x.x){var C=v("xperiod");C&&(v("xperiod0",c(C,d.xcalendar)),v("xperiodalignment"))}if(x.y){var _=v("yperiod");_&&(v("yperiod0",c(_,d.ycalendar)),v("yperiodalignment"))}}},7399:function(L,A,s){var m=s(9898),h=s(3972),l=s(1828),c=l.ensureSingle,i=l.identity,u=s(1424),d=s(4098),g=s(4621),v=s(8687),x=s(1082).tester;L.exports=function(O,D,N,M,k,R){var F,H,j=!k,P=!!k&&k.duration>0,ee=v(O,D,N);if(F=M.selectAll("g.trace").data(ee,function(K){return K[0].trace.uid}),F.enter().append("g").attr("class",function(K){return"trace scatter trace"+K[0].trace.uid}).style("stroke-miterlimit",2),F.order(),C(O,F,D),P){R&&(H=R());var J=m.transition().duration(k.duration).ease(k.easing).each("end",function(){H&&H()}).each("interrupt",function(){H&&H()});J.each(function(){M.selectAll("g.trace").each(function(K,ae){_(O,ae,D,K,ee,this,k)})})}else F.each(function(K,ae){_(O,ae,D,K,ee,this,k)});j&&F.exit().remove(),M.selectAll("path:not([d])").remove()};function C(S,O,D){O.each(function(N){var M=c(m.select(this),"g","fills");u.setClipUrl(M,D.layerClipId,S);var k=N[0].trace,R=[];k._ownfill&&R.push("_ownFill"),k._nexttrace&&R.push("_nextFill");var F=M.selectAll("g").data(R,i);F.enter().append("g"),F.exit().each(function(H){k[H]=null}).remove(),F.order().each(function(H){k[H]=c(m.select(this),"path","js-fill")})})}function _(S,O,D,N,M,k,R){var F=S._context.staticPlot,H;$(S,O,D,N,M);var j=!!R&&R.duration>0;function P(tt){return j?tt.transition():tt}var ee=D.xaxis,J=D.yaxis,K=N[0].trace,ae=K.line,Q=m.select(k),he=c(Q,"g","errorbars"),ge=c(Q,"g","lines"),Se=c(Q,"g","points"),ce=c(Q,"g","text");if(h.getComponentMethod("errorbars","plot")(S,he,D,R),K.visible!==!0)return;P(Q).style("opacity",K.opacity);var ne,fe,X=K.fill.charAt(K.fill.length-1);X!=="x"&&X!=="y"&&(X=""),N[0][D.isRangePlot?"nodeRangePlot3":"node3"]=Q;var ye="",Ce=[],$e=K._prevtrace;$e&&(ye=$e._prevRevpath||"",fe=$e._nextFill,Ce=$e._polygons);var ke,Ne,Ve="",Oe="",Fe,ie,we,se,ue,pe,le,Te=[],de=l.noop;if(ne=K._ownFill,d.hasLines(K)||K.fill!=="none"){for(fe&&fe.datum(N),["hv","vh","hvh","vhv"].indexOf(ae.shape)!==-1?(Fe=u.steps(ae.shape),ie=u.steps(ae.shape.split("").reverse().join(""))):ae.shape==="spline"?Fe=ie=function(tt){var Ct=tt[tt.length-1];return tt.length>1&&tt[0][0]===Ct[0]&&tt[0][1]===Ct[1]?u.smoothclosed(tt.slice(1),ae.smoothing):u.smoothopen(tt,ae.smoothing)}:Fe=ie=function(tt){return"M"+tt.join("L")},we=function(tt){return ie(tt.reverse())},Te=g(N,{xaxis:ee,yaxis:J,trace:K,connectGaps:K.connectgaps,baseTolerance:Math.max(ae.width||1,3)/4,shape:ae.shape,backoff:ae.backoff,simplify:ae.simplify,fill:K.fill}),le=K._polygons=new Array(Te.length),H=0;H=F[0]&&Q.x<=F[1]&&Q.y>=H[0]&&Q.y<=H[1]}),J=Math.ceil(ee.length/P),K=0;M.forEach(function(Q,he){var ge=Q[0].trace;d.hasMarkers(ge)&&ge.marker.maxdisplayed>0&&heF&&(F=ee,H=P)}}return F?N(H):i};case"rms":return function(M,k){for(var R=0,F=0,H=0;H":return function(R){return M(R)>k};case">=":return function(R){return M(R)>=k};case"[]":return function(R){var F=M(R);return F>=k[0]&&F<=k[1]};case"()":return function(R){var F=M(R);return F>k[0]&&F=k[0]&&Fk[0]&&F<=k[1]};case"][":return function(R){var F=M(R);return F<=k[0]||F>=k[1]};case")(":return function(R){var F=M(R);return Fk[1]};case"](":return function(R){var F=M(R);return F<=k[0]||F>k[1]};case")[":return function(R){var F=M(R);return F=k[1]};case"{}":return function(R){return k.indexOf(M(R))!==-1};case"}{":return function(R){return k.indexOf(M(R))===-1}}}},3102:function(L,A,s){var m=s(1828),h=s(6281),l=s(4875),c=s(9344).p;A.moduleType="transform",A.name="groupby",A.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"data_array",dflt:[],editType:"calc"},nameformat:{valType:"string",editType:"calc"},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc"},value:{valType:"any",dflt:{},editType:"calc",_compareAsJSON:!0},editType:"calc"},editType:"calc"},A.supplyDefaults=function(u,d,g){var v,x={};function C(N,M){return m.coerce(u,x,A.attributes,N,M)}var _=C("enabled");if(!_)return x;C("groups"),C("nameformat",g._dataLength>1?"%{group} (%{trace})":"%{group}");var $=u.styles,S=x.styles=[];if($)for(v=0;v<$.length;v++){var O=S[v]={};m.coerce($[v],S[v],A.attributes.styles,"target");var D=m.coerce($[v],S[v],A.attributes.styles,"value");m.isPlainObject(D)?O.value=m.extendDeep({},D):D&&delete O.value}return x},A.transform=function(u,d){var g,v,x,C=[];for(v=0;v1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(i=!0),i}},9898:function(L,A,s){var m,h;(function(){var l={version:"3.8.0"},c=[].slice,i=function(U){return c.call(U)},u=self.document;function d(U){return U&&(U.ownerDocument||U.document||U).documentElement}function g(U){return U&&(U.ownerDocument&&U.ownerDocument.defaultView||U.document&&U||U.defaultView)}if(u)try{i(u.documentElement.childNodes)[0].nodeType}catch{i=function(q){for(var ve=q.length,Ae=new Array(ve);ve--;)Ae[ve]=q[ve];return Ae}}if(Date.now||(Date.now=function(){return+new Date}),u)try{u.createElement("DIV").style.setProperty("opacity",0,"")}catch{var v=this.Element.prototype,x=v.setAttribute,C=v.setAttributeNS,_=this.CSSStyleDeclaration.prototype,$=_.setProperty;v.setAttribute=function(q,ve){x.call(this,q,ve+"")},v.setAttributeNS=function(q,ve,Ae){C.call(this,q,ve,Ae+"")},_.setProperty=function(q,ve,Ae){$.call(this,q,ve+"",Ae)}}l.ascending=S;function S(U,q){return Uq?1:U>=q?0:NaN}l.descending=function(U,q){return qU?1:q>=U?0:NaN},l.min=function(U,q){var ve=-1,Ae=U.length,_e,Ie;if(arguments.length===1){for(;++ve=Ie){_e=Ie;break}for(;++veIe&&(_e=Ie)}else{for(;++ve=Ie){_e=Ie;break}for(;++veIe&&(_e=Ie)}return _e},l.max=function(U,q){var ve=-1,Ae=U.length,_e,Ie;if(arguments.length===1){for(;++ve=Ie){_e=Ie;break}for(;++ve_e&&(_e=Ie)}else{for(;++ve=Ie){_e=Ie;break}for(;++ve_e&&(_e=Ie)}return _e},l.extent=function(U,q){var ve=-1,Ae=U.length,_e,Ie,Qe;if(arguments.length===1){for(;++ve=Ie){_e=Qe=Ie;break}for(;++veIe&&(_e=Ie),Qe=Ie){_e=Qe=Ie;break}for(;++veIe&&(_e=Ie),Qe1)return Qe/(rt-1)},l.deviation=function(){var U=l.variance.apply(this,arguments);return U&&Math.sqrt(U)};function N(U){return{left:function(q,ve,Ae,_e){for(arguments.length<3&&(Ae=0),arguments.length<4&&(_e=q.length);Ae<_e;){var Ie=Ae+_e>>>1;U(q[Ie],ve)<0?Ae=Ie+1:_e=Ie}return Ae},right:function(q,ve,Ae,_e){for(arguments.length<3&&(Ae=0),arguments.length<4&&(_e=q.length);Ae<_e;){var Ie=Ae+_e>>>1;U(q[Ie],ve)>0?_e=Ie:Ae=Ie+1}return Ae}}}var M=N(S);l.bisectLeft=M.left,l.bisect=l.bisectRight=M.right,l.bisector=function(U){return N(U.length===1?function(q,ve){return S(U(q),ve)}:U)},l.shuffle=function(U,q,ve){(Ae=arguments.length)<3&&(ve=U.length,Ae<2&&(q=0));for(var Ae=ve-q,_e,Ie;Ae;)Ie=Math.random()*Ae--|0,_e=U[Ae+q],U[Ae+q]=U[Ie+q],U[Ie+q]=_e;return U},l.permute=function(U,q){for(var ve=q.length,Ae=new Array(ve);ve--;)Ae[ve]=U[q[ve]];return Ae},l.pairs=function(U){for(var q=0,ve=U.length-1,Ae=U[0],_e=new Array(ve<0?0:ve);q=0;)for(Qe=U[q],ve=Qe.length;--ve>=0;)Ie[--_e]=Qe[ve];return Ie};var R=Math.abs;l.range=function(U,q,ve){if(arguments.length<3&&(ve=1,arguments.length<2&&(q=U,U=0)),(q-U)/ve===1/0)throw new Error("infinite range");var Ae=[],_e=F(R(ve)),Ie=-1,Qe;if(U*=_e,q*=_e,ve*=_e,ve<0)for(;(Qe=U+ve*++Ie)>q;)Ae.push(Qe/_e);else for(;(Qe=U+ve*++Ie)=q.length)return _e?_e.call(U,rt):Ae?rt.sort(Ae):rt;for(var bt=-1,Vt=rt.length,Wt=q[yt++],mn,An,Kt,en=new j,dn;++bt=q.length)return Ye;var yt=[],bt=ve[rt++];return Ye.forEach(function(Vt,Wt){yt.push({key:Vt,values:Qe(Wt,rt)})}),bt?yt.sort(function(Vt,Wt){return bt(Vt.key,Wt.key)}):yt}return U.map=function(Ye,rt){return Ie(rt,Ye,0)},U.entries=function(Ye){return Qe(Ie(l.map,Ye,0),0)},U.key=function(Ye){return q.push(Ye),U},U.sortKeys=function(Ye){return ve[q.length-1]=Ye,U},U.sortValues=function(Ye){return Ae=Ye,U},U.rollup=function(Ye){return _e=Ye,U},U},l.set=function(U){var q=new ce;if(U)for(var ve=0,Ae=U.length;ve=0&&(Ae=U.slice(ve+1),U=U.slice(0,ve)),U)return arguments.length<2?this[U].on(Ae):this[U].on(Ae,q);if(arguments.length===2){if(q==null)for(U in this)this.hasOwnProperty(U)&&this[U].on(Ae,null);return this}};function ke(U){var q=[],ve=new j;function Ae(){for(var _e=q,Ie=-1,Qe=_e.length,Ye;++Ie=0&&(ve=U.slice(0,q))!=="xmlns"&&(U=U.slice(q+1)),Re.hasOwnProperty(ve)?{space:Re[ve],local:U}:U}},le.attr=function(U,q){if(arguments.length<2){if(typeof U=="string"){var ve=this.node();return U=l.ns.qualify(U),U.local?ve.getAttributeNS(U.space,U.local):ve.getAttribute(U)}for(q in U)this.each(ze(q,U[q]));return this}return this.each(ze(U,q))};function ze(U,q){U=l.ns.qualify(U);function ve(){this.removeAttribute(U)}function Ae(){this.removeAttributeNS(U.space,U.local)}function _e(){this.setAttribute(U,q)}function Ie(){this.setAttributeNS(U.space,U.local,q)}function Qe(){var rt=q.apply(this,arguments);rt==null?this.removeAttribute(U):this.setAttribute(U,rt)}function Ye(){var rt=q.apply(this,arguments);rt==null?this.removeAttributeNS(U.space,U.local):this.setAttributeNS(U.space,U.local,rt)}return q==null?U.local?Ae:ve:typeof q=="function"?U.local?Ye:Qe:U.local?Ie:_e}function We(U){return U.trim().replace(/\s+/g," ")}le.classed=function(U,q){if(arguments.length<2){if(typeof U=="string"){var ve=this.node(),Ae=(U=dt(U)).length,_e=-1;if(q=ve.classList){for(;++_e=0;)(Ie=ve[Ae])&&(_e&&_e!==Ie.nextSibling&&_e.parentNode.insertBefore(Ie,_e),_e=Ie);return this},le.sort=function(U){U=Yt.apply(this,arguments);for(var q=-1,ve=this.length;++q=q&&(q=_e+1);!(rt=Qe[q])&&++q0&&(U=U.slice(0,_e));var Qe=Zn.get(U);Qe&&(U=Qe,Ie=Cn);function Ye(){var bt=this[Ae];bt&&(this.removeEventListener(U,bt,bt.$),delete this[Ae])}function rt(){var bt=Ie(q,i(arguments));Ye.call(this),this.addEventListener(U,this[Ae]=bt,bt.$=ve),bt._=q}function yt(){var bt=new RegExp("^__on([^.]+)"+l.requote(U)+"$"),Vt;for(var Wt in this)if(Vt=Wt.match(bt)){var mn=this[Wt];this.removeEventListener(Vt[1],mn,mn.$),delete this[Wt]}}return _e?q?rt:Ye:q?Ce:yt}var Zn=l.map({mouseenter:"mouseover",mouseleave:"mouseout"});u&&Zn.forEach(function(U){"on"+U in u&&Zn.remove(U)});function an(U,q){return function(ve){var Ae=l.event;l.event=ve,q[0]=this.__data__;try{U.apply(this,q)}finally{l.event=Ae}}}function Cn(U,q){var ve=an(U,q);return function(Ae){var _e=this,Ie=Ae.relatedTarget;(!Ie||Ie!==_e&&!(Ie.compareDocumentPosition(_e)&8))&&ve.call(_e,Ae)}}var jn,Wn=0;function wn(U){var q=".dragsuppress-"+ ++Wn,ve="click"+q,Ae=l.select(g(U)).on("touchmove"+q,Ne).on("dragstart"+q,Ne).on("selectstart"+q,Ne);if(jn==null&&(jn="onselectstart"in U?!1:X(U.style,"userSelect")),jn){var _e=d(U).style,Ie=_e[jn];_e[jn]="none"}return function(Qe){if(Ae.on(q,null),jn&&(_e[jn]=Ie),Qe){var Ye=function(){Ae.on(ve,null)};Ae.on(ve,function(){Ne(),Ye()},!0),setTimeout(Ye,0)}}}l.mouse=function(U){return ft(U,Ve())};var lt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ft(U,q){q.changedTouches&&(q=q.changedTouches[0]);var ve=U.ownerSVGElement||U;if(ve.createSVGPoint){var Ae=ve.createSVGPoint();if(lt<0){var _e=g(U);if(_e.scrollX||_e.scrollY){ve=l.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Ie=ve[0][0].getScreenCTM();lt=!(Ie.f||Ie.e),ve.remove()}}return lt?(Ae.x=q.pageX,Ae.y=q.pageY):(Ae.x=q.clientX,Ae.y=q.clientY),Ae=Ae.matrixTransform(U.getScreenCTM().inverse()),[Ae.x,Ae.y]}var Qe=U.getBoundingClientRect();return[q.clientX-Qe.left-U.clientLeft,q.clientY-Qe.top-U.clientTop]}l.touch=function(U,q,ve){if(arguments.length<3&&(ve=q,q=Ve().changedTouches),q){for(var Ae=0,_e=q.length,Ie;Ae<_e;++Ae)if((Ie=q[Ae]).identifier===ve)return ft(U,Ie)}},l.behavior.drag=function(){var U=Oe(_e,"drag","dragstart","dragend"),q=null,ve=Ie(Ce,l.mouse,g,"mousemove","mouseup"),Ae=Ie(wt,l.touch,ne,"touchmove","touchend");function _e(){this.on("mousedown.drag",ve).on("touchstart.drag",Ae)}function Ie(Qe,Ye,rt,yt,bt){return function(){var Vt=this,Wt=l.event.target.correspondingElement||l.event.target,mn=Vt.parentNode,An=U.of(Vt,arguments),Kt=0,en=Qe(),dn=".drag"+(en==null?"":"-"+en),Rn,Mn=l.select(rt(Wt)).on(yt+dn,zr).on(bt+dn,Jr),vn=wn(Wt),lr=Ye(mn,en);q?(Rn=q.apply(Vt,arguments),Rn=[Rn.x-lr[0],Rn.y-lr[1]]):Rn=[0,0],An({type:"dragstart"});function zr(){var kr=Ye(mn,en),eo,lo;kr&&(eo=kr[0]-lr[0],lo=kr[1]-lr[1],Kt|=eo|lo,lr=kr,An({type:"drag",x:kr[0]+Rn[0],y:kr[1]+Rn[1],dx:eo,dy:lo}))}function Jr(){Ye(mn,en)&&(Mn.on(yt+dn,null).on(bt+dn,null),vn(Kt),An({type:"dragend"}))}}}return _e.origin=function(Qe){return arguments.length?(q=Qe,_e):q},l.rebind(_e,U,"on")};function wt(){return l.event.changedTouches[0].identifier}l.touches=function(U,q){return arguments.length<2&&(q=Ve().touches),q?i(q).map(function(ve){var Ae=ft(U,ve);return Ae.identifier=ve.identifier,Ae}):[]};var vt=1e-6,$t=vt*vt,Ze=Math.PI,it=2*Ze,ht=it-vt,pt=Ze/2,Tt=Ze/180,Et=180/Ze;function fn(U,q,ve){return(q[0]-U[0])*(ve[1]-U[1])-(q[1]-U[1])*(ve[0]-U[0])}function tn(U){return U>1?pt:U<-1?-pt:Math.asin(U)}function Zt(U){return((U=Math.exp(U))-1/U)/2}function Dt(U){return((U=Math.exp(U))+1/U)/2}function un(U){return((U=Math.exp(2*U))-1)/(U+1)}var Un=Math.SQRT2,tr=2,Er=4;l.interpolateZoom=function(U,q){var ve=U[0],Ae=U[1],_e=U[2],Ie=q[0],Qe=q[1],Ye=q[2],rt=Ie-ve,yt=Qe-Ae,bt=rt*rt+yt*yt,Vt,Wt;if(bt<$t)Wt=Math.log(Ye/_e)/Un,Vt=function(Rn){return[ve+Rn*rt,Ae+Rn*yt,_e*Math.exp(Un*Rn*Wt)]};else{var mn=Math.sqrt(bt),An=(Ye*Ye-_e*_e+Er*bt)/(2*_e*tr*mn),Kt=(Ye*Ye-_e*_e-Er*bt)/(2*Ye*tr*mn),en=Math.log(Math.sqrt(An*An+1)-An),dn=Math.log(Math.sqrt(Kt*Kt+1)-Kt);Wt=(dn-en)/Un,Vt=function(Rn){var Mn=Rn*Wt,vn=Dt(en),lr=_e/(tr*mn)*(vn*un(Un*Mn+en)-Zt(en));return[ve+lr*rt,Ae+lr*yt,_e*vn/Dt(Un*Mn+en)]}}return Vt.duration=Wt*1e3,Vt},l.behavior.zoom=function(){var U={x:0,y:0,k:1},q,ve,Ae,_e=[960,500],Ie=zt,Qe=250,Ye=0,rt="mousedown.zoom",yt="mousemove.zoom",bt="mouseup.zoom",Vt,Wt="touchstart.zoom",mn,An=Oe(Mn,"zoomstart","zoom","zoomend"),Kt,en,dn,Rn;Gn||(Gn="onwheel"in u?(pr=function(){return-l.event.deltaY*(l.event.deltaMode?120:1)},"wheel"):"onmousewheel"in u?(pr=function(){return l.event.wheelDelta},"mousewheel"):(pr=function(){return-l.event.detail},"MozMousePixelScroll"));function Mn($r){$r.on(rt,fo).on(Gn+".zoom",Vs).on("dblclick.zoom",is).on(Wt,Ha)}Mn.event=function($r){$r.each(function(){var _o=An.of(this,arguments),sa=U;Zf?l.select(this).transition().each("start.zoom",function(){U=this.__chart__||{x:0,y:0,k:1},lo(_o)}).tween("zoom:zoom",function(){var Ca=_e[0],As=_e[1],qs=ve?ve[0]:Ca/2,Di=ve?ve[1]:As/2,xi=l.interpolateZoom([(qs-U.x)/U.k,(Di-U.y)/U.k,Ca/U.k],[(qs-sa.x)/sa.k,(Di-sa.y)/sa.k,Ca/sa.k]);return function(xc){var Ii=xi(xc),tc=Ca/Ii[2];this.__chart__=U={x:qs-Ii[0]*tc,y:Di-Ii[1]*tc,k:tc},Ko(_o)}}).each("interrupt.zoom",function(){yo(_o)}).each("end.zoom",function(){yo(_o)}):(this.__chart__=U,lo(_o),Ko(_o),yo(_o))})},Mn.translate=function($r){return arguments.length?(U={x:+$r[0],y:+$r[1],k:U.k},eo(),Mn):[U.x,U.y]},Mn.scale=function($r){return arguments.length?(U={x:U.x,y:U.y,k:null},zr(+$r),eo(),Mn):U.k},Mn.scaleExtent=function($r){return arguments.length?(Ie=$r==null?zt:[+$r[0],+$r[1]],Mn):Ie},Mn.center=function($r){return arguments.length?(Ae=$r&&[+$r[0],+$r[1]],Mn):Ae},Mn.size=function($r){return arguments.length?(_e=$r&&[+$r[0],+$r[1]],Mn):_e},Mn.duration=function($r){return arguments.length?(Qe=+$r,Mn):Qe},Mn.x=function($r){return arguments.length?(en=$r,Kt=$r.copy(),U={x:0,y:0,k:1},Mn):en},Mn.y=function($r){return arguments.length?(Rn=$r,dn=$r.copy(),U={x:0,y:0,k:1},Mn):Rn};function vn($r){return[($r[0]-U.x)/U.k,($r[1]-U.y)/U.k]}function lr($r){return[$r[0]*U.k+U.x,$r[1]*U.k+U.y]}function zr($r){U.k=Math.max(Ie[0],Math.min(Ie[1],$r))}function Jr($r,_o){_o=lr(_o),U.x+=$r[0]-_o[0],U.y+=$r[1]-_o[1]}function kr($r,_o,sa,Ca){$r.__chart__={x:U.x,y:U.y,k:U.k},zr(Math.pow(2,Ca)),Jr(ve=_o,sa),$r=l.select($r),Qe>0&&($r=$r.transition().duration(Qe)),$r.call(Mn.event)}function eo(){en&&en.domain(Kt.range().map(function($r){return($r-U.x)/U.k}).map(Kt.invert)),Rn&&Rn.domain(dn.range().map(function($r){return($r-U.y)/U.k}).map(dn.invert))}function lo($r){Ye++||$r({type:"zoomstart"})}function Ko($r){eo(),$r({type:"zoom",scale:U.k,translate:[U.x,U.y]})}function yo($r){--Ye||($r({type:"zoomend"}),ve=null)}function fo(){var $r=this,_o=An.of($r,arguments),sa=0,Ca=l.select(g($r)).on(yt,Di).on(bt,xi),As=vn(l.mouse($r)),qs=wn($r);Ol.call($r),lo(_o);function Di(){sa=1,Jr(l.mouse($r),As),Ko(_o)}function xi(){Ca.on(yt,null).on(bt,null),qs(sa),yo(_o)}}function Ha(){var $r=this,_o=An.of($r,arguments),sa={},Ca=0,As,qs=".zoom-"+l.event.changedTouches[0].identifier,Di="touchmove"+qs,xi="touchend"+qs,xc=[],Ii=l.select($r),tc=wn($r);Ga(),lo(_o),Ii.on(rt,null).on(Wt,Ga);function Cl(){var Sl=l.touches($r);return As=U.k,Sl.forEach(function(wi){wi.identifier in sa&&(sa[wi.identifier]=vn(wi))}),Sl}function Ga(){var Sl=l.event.target;l.select(Sl).on(Di,xu).on(xi,qu),xc.push(Sl);for(var wi=l.event.changedTouches,Tl=0,Ci=wi.length;Tl1){var Yf=Za[0],wu=Za[1],Th=Yf[0]-wu[0],Kf=Yf[1]-wu[1];Ca=Th*Th+Kf*Kf}}function xu(){var Sl=l.touches($r),wi,Tl,Ci,Za;Ol.call($r);for(var nc=0,Yf=Sl.length;nc1?1:q,ve=ve<0?0:ve>1?1:ve,_e=ve<=.5?ve*(1+q):ve+q-ve*q,Ae=2*ve-_e;function Ie(Ye){return Ye>360?Ye-=360:Ye<0&&(Ye+=360),Ye<60?Ae+(_e-Ae)*Ye/60:Ye<180?_e:Ye<240?Ae+(_e-Ae)*(240-Ye)/60:Ae}function Qe(Ye){return Math.round(Ie(Ye)*255)}return new Ut(Qe(U+120),Qe(U),Qe(U-120))}l.hcl=_r;function _r(U,q,ve){return this instanceof _r?(this.h=+U,this.c=+q,void(this.l=+ve)):arguments.length<2?U instanceof _r?new _r(U.h,U.c,U.l):U instanceof or?St(U.l,U.a,U.b):St((U=Sn((U=l.rgb(U)).r,U.g,U.b)).l,U.a,U.b):new _r(U,q,ve)}var Ln=_r.prototype=new Ir;Ln.brighter=function(U){return new _r(this.h,this.c,Math.min(100,this.l+wr*(arguments.length?U:1)))},Ln.darker=function(U){return new _r(this.h,this.c,Math.max(0,this.l-wr*(arguments.length?U:1)))},Ln.rgb=function(){return xr(this.h,this.c,this.l).rgb()};function xr(U,q,ve){return isNaN(U)&&(U=0),isNaN(q)&&(q=0),new or(ve,Math.cos(U*=Tt)*q,Math.sin(U)*q)}l.lab=or;function or(U,q,ve){return this instanceof or?(this.l=+U,this.a=+q,void(this.b=+ve)):arguments.length<2?U instanceof or?new or(U.l,U.a,U.b):U instanceof _r?xr(U.h,U.c,U.l):Sn((U=Ut(U)).r,U.g,U.b):new or(U,q,ve)}var wr=18,ro=.95047,vo=1,Cr=1.08883,He=or.prototype=new Ir;He.brighter=function(U){return new or(Math.min(100,this.l+wr*(arguments.length?U:1)),this.a,this.b)},He.darker=function(U){return new or(Math.max(0,this.l-wr*(arguments.length?U:1)),this.a,this.b)},He.rgb=function(){return De(this.l,this.a,this.b)};function De(U,q,ve){var Ae=(U+16)/116,_e=Ae+q/500,Ie=Ae-ve/200;return _e=kt(_e)*ro,Ae=kt(Ae)*vo,Ie=kt(Ie)*Cr,new Ut(Bt(3.2404542*_e-1.5371385*Ae-.4985314*Ie),Bt(-.969266*_e+1.8760108*Ae+.041556*Ie),Bt(.0556434*_e-.2040259*Ae+1.0572252*Ie))}function St(U,q,ve){return U>0?new _r(Math.atan2(ve,q)*Et,Math.sqrt(q*q+ve*ve),U):new _r(NaN,NaN,U)}function kt(U){return U>.206893034?U*U*U:(U-.13793103448275862)/7.787037}function Pt(U){return U>.008856?Math.pow(U,.3333333333333333):7.787037*U+.13793103448275862}function Bt(U){return Math.round(255*(U<=.00304?12.92*U:1.055*Math.pow(U,.4166666666666667)-.055))}l.rgb=Ut;function Ut(U,q,ve){return this instanceof Ut?(this.r=~~U,this.g=~~q,void(this.b=~~ve)):arguments.length<2?U instanceof Ut?new Ut(U.r,U.g,U.b):Qt(""+U,Ut,Yr):new Ut(U,q,ve)}function Ot(U){return new Ut(U>>16,U>>8&255,U&255)}function _t(U){return Ot(U)+""}var qt=Ut.prototype=new Ir;qt.brighter=function(U){U=Math.pow(.7,arguments.length?U:1);var q=this.r,ve=this.g,Ae=this.b,_e=30;return!q&&!ve&&!Ae?new Ut(_e,_e,_e):(q&&q<_e&&(q=_e),ve&&ve<_e&&(ve=_e),Ae&&Ae<_e&&(Ae=_e),new Ut(Math.min(255,q/U),Math.min(255,ve/U),Math.min(255,Ae/U)))},qt.darker=function(U){return U=Math.pow(.7,arguments.length?U:1),new Ut(U*this.r,U*this.g,U*this.b)},qt.hsl=function(){return nn(this.r,this.g,this.b)},qt.toString=function(){return"#"+cn(this.r)+cn(this.g)+cn(this.b)};function cn(U){return U<16?"0"+Math.max(0,U).toString(16):Math.min(255,U).toString(16)}function Qt(U,q,ve){var Ae=0,_e=0,Ie=0,Qe,Ye,rt;if(Qe=/([a-z]+)\((.*)\)/.exec(U=U.toLowerCase()),Qe)switch(Ye=Qe[2].split(","),Qe[1]){case"hsl":return ve(parseFloat(Ye[0]),parseFloat(Ye[1])/100,parseFloat(Ye[2])/100);case"rgb":return q(gn(Ye[0]),gn(Ye[1]),gn(Ye[2]))}return(rt=Qn.get(U))?q(rt.r,rt.g,rt.b):(U!=null&&U.charAt(0)==="#"&&!isNaN(rt=parseInt(U.slice(1),16))&&(U.length===4?(Ae=(rt&3840)>>4,Ae=Ae>>4|Ae,_e=rt&240,_e=_e>>4|_e,Ie=rt&15,Ie=Ie<<4|Ie):U.length===7&&(Ae=(rt&16711680)>>16,_e=(rt&65280)>>8,Ie=rt&255)),q(Ae,_e,Ie))}function nn(U,q,ve){var Ae=Math.min(U/=255,q/=255,ve/=255),_e=Math.max(U,q,ve),Ie=_e-Ae,Qe,Ye,rt=(_e+Ae)/2;return Ie?(Ye=rt<.5?Ie/(_e+Ae):Ie/(2-_e-Ae),U==_e?Qe=(q-ve)/Ie+(q0&&rt<1?0:Qe),new Tr(Qe,Ye,rt)}function Sn(U,q,ve){U=bn(U),q=bn(q),ve=bn(ve);var Ae=Pt((.4124564*U+.3575761*q+.1804375*ve)/ro),_e=Pt((.2126729*U+.7151522*q+.072175*ve)/vo),Ie=Pt((.0193339*U+.119192*q+.9503041*ve)/Cr);return or(116*_e-16,500*(Ae-_e),200*(_e-Ie))}function bn(U){return(U/=255)<=.04045?U/12.92:Math.pow((U+.055)/1.055,2.4)}function gn(U){var q=parseFloat(U);return U.charAt(U.length-1)==="%"?Math.round(q*2.55):q}var Qn=l.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Qn.forEach(function(U,q){Qn.set(U,Ot(q))});function Bn(U){return typeof U=="function"?U:function(){return U}}l.functor=Bn,l.xhr=Hr(ne);function Hr(U){return function(q,ve,Ae){return arguments.length===2&&typeof ve=="function"&&(Ae=ve,ve=null),fr(q,ve,U,Ae)}}function fr(U,q,ve,Ae){var _e={},Ie=l.dispatch("beforesend","progress","load","error"),Qe={},Ye=new XMLHttpRequest,rt=null;self.XDomainRequest&&!("withCredentials"in Ye)&&/^(http(s)?:)?\/\//.test(U)&&(Ye=new XDomainRequest),"onload"in Ye?Ye.onload=Ye.onerror=yt:Ye.onreadystatechange=function(){Ye.readyState>3&&yt()};function yt(){var bt=Ye.status,Vt;if(!bt&&ar(Ye)||bt>=200&&bt<300||bt===304){try{Vt=ve.call(_e,Ye)}catch(Wt){Ie.error.call(_e,Wt);return}Ie.load.call(_e,Vt)}else Ie.error.call(_e,Ye)}return Ye.onprogress=function(bt){var Vt=l.event;l.event=bt;try{Ie.progress.call(_e,Ye)}finally{l.event=Vt}},_e.header=function(bt,Vt){return bt=(bt+"").toLowerCase(),arguments.length<2?Qe[bt]:(Vt==null?delete Qe[bt]:Qe[bt]=Vt+"",_e)},_e.mimeType=function(bt){return arguments.length?(q=bt==null?null:bt+"",_e):q},_e.responseType=function(bt){return arguments.length?(rt=bt,_e):rt},_e.response=function(bt){return ve=bt,_e},["get","post"].forEach(function(bt){_e[bt]=function(){return _e.send.apply(_e,[bt].concat(i(arguments)))}}),_e.send=function(bt,Vt,Wt){if(arguments.length===2&&typeof Vt=="function"&&(Wt=Vt,Vt=null),Ye.open(bt,U,!0),q!=null&&!("accept"in Qe)&&(Qe.accept=q+",*/*"),Ye.setRequestHeader)for(var mn in Qe)Ye.setRequestHeader(mn,Qe[mn]);return q!=null&&Ye.overrideMimeType&&Ye.overrideMimeType(q),rt!=null&&(Ye.responseType=rt),Wt!=null&&_e.on("error",Wt).on("load",function(An){Wt(null,An)}),Ie.beforesend.call(_e,Ye),Ye.send(Vt??null),_e},_e.abort=function(){return Ye.abort(),_e},l.rebind(_e,Ie,"on"),Ae==null?_e:_e.get(Vr(Ae))}function Vr(U){return U.length===1?function(q,ve){U(q==null?ve:null)}:U}function ar(U){var q=U.responseType;return q&&q!=="text"?U.response:U.responseText}l.dsv=function(U,q){var ve=new RegExp('["'+U+` -]`),Ae=U.charCodeAt(0);function _e(yt,bt,Vt){arguments.length<3&&(Vt=bt,bt=null);var Wt=fr(yt,q,bt==null?Ie:Qe(bt),Vt);return Wt.row=function(mn){return arguments.length?Wt.response((bt=mn)==null?Ie:Qe(mn)):bt},Wt}function Ie(yt){return _e.parse(yt.responseText)}function Qe(yt){return function(bt){return _e.parse(bt.responseText,yt)}}_e.parse=function(yt,bt){var Vt;return _e.parseRows(yt,function(Wt,mn){if(Vt)return Vt(Wt,mn-1);var An=function(Kt){for(var en={},dn=Wt.length,Rn=0;Rn=An)return Wt;if(Rn)return Rn=!1,Vt;var lr=Kt;if(yt.charCodeAt(lr)===34){for(var zr=lr;zr++24?(isFinite(q)&&(clearTimeout(So),So=setTimeout(Zo,q)),qr=0):(qr=1,wa(Zo))}l.timer.flush=function(){oa(),Va()};function oa(){for(var U=Date.now(),q=cr;q;)U>=q.t&&q.c(U-q.t)&&(q.c=null),q=q.n;return U}function Va(){for(var U,q=cr,ve=1/0;q;)q.c?(q.t=0;--Ye)Kt.push(_e[yt[Vt[Ye]][2]]);for(Ye=+mn;Ye1&&fn(U[ve[Ae-2]],U[ve[Ae-1]],U[_e])<=0;)--Ae;ve[Ae++]=_e}return ve.slice(0,Ae)}function Zl(U,q){return U[0]-q[0]||U[1]-q[1]}l.geom.polygon=function(U){return ie(U,Ys),U};var Ys=l.geom.polygon.prototype=[];Ys.area=function(){for(var U=-1,q=this.length,ve,Ae=this[q-1],_e=0;++Uvt)Ye=Ye.L;else if(Qe=q-Mi(Ye,ve),Qe>vt){if(!Ye.R){Ae=Ye;break}Ye=Ye.R}else{Ie>-vt?(Ae=Ye.P,_e=Ye):Qe>-vt?(Ae=Ye,_e=Ye.N):Ae=_e=Ye;break}var rt=Xa(U);if(_c.insert(Ae,rt),!(!Ae&&!_e)){if(Ae===_e){qi(Ae),_e=Xa(Ae.site),_c.insert(rt,_e),rt.edge=_e.edge=Ls(Ae.site,rt.site),Es(Ae),Es(_e);return}if(!_e){rt.edge=Ls(Ae.site,rt.site);return}qi(Ae),qi(_e);var yt=Ae.site,bt=yt.x,Vt=yt.y,Wt=U.x-bt,mn=U.y-Vt,An=_e.site,Kt=An.x-bt,en=An.y-Vt,dn=2*(Wt*en-mn*Kt),Rn=Wt*Wt+mn*mn,Mn=Kt*Kt+en*en,vn={x:(en*Rn-mn*Mn)/dn+bt,y:(Wt*Mn-Kt*Rn)/dn+Vt};uu(_e.edge,yt,An,vn),rt.edge=Ls(yt,U,null,vn),_e.edge=Ls(U,An,null,vn),Es(Ae),Es(_e)}}function To(U,q){var ve=U.site,Ae=ve.x,_e=ve.y,Ie=_e-q;if(!Ie)return Ae;var Qe=U.P;if(!Qe)return-1/0;ve=Qe.site;var Ye=ve.x,rt=ve.y,yt=rt-q;if(!yt)return Ye;var bt=Ye-Ae,Vt=1/Ie-1/yt,Wt=bt/yt;return Vt?(-Wt+Math.sqrt(Wt*Wt-2*Vt*(bt*bt/(-2*yt)-rt+yt/2+_e-Ie/2)))/Vt+Ae:(Ae+Ye)/2}function Mi(U,q){var ve=U.N;if(ve)return To(ve,q);var Ae=U.site;return Ae.y===q?Ae.x:1/0}function ur(U){this.site=U,this.edges=[]}ur.prototype.prepare=function(){for(var U=this.edges,q=U.length,ve;q--;)ve=U[q].edge,(!ve.b||!ve.a)&&U.splice(q,1);return U.sort(li),U.length};function Ms(U){for(var q=U[0][0],ve=U[1][0],Ae=U[0][1],_e=U[1][1],Ie,Qe,Ye,rt,yt=Ya,bt=yt.length,Vt,Wt,mn,An,Kt,en;bt--;)if(Vt=yt[bt],!(!Vt||!Vt.prepare()))for(mn=Vt.edges,An=mn.length,Wt=0;Wtvt||R(rt-Qe)>vt)&&(mn.splice(Wt,0,new Vf(cu(Vt.site,en,R(Ye-q)vt?{x:q,y:R(Ie-q)vt?{x:R(Qe-_e)vt?{x:ve,y:R(Ie-ve)vt?{x:R(Qe-Ae)=-$t)){var Wt=rt*rt+yt*yt,mn=bt*bt+en*en,An=(en*Wt-yt*mn)/Vt,Kt=(rt*mn-bt*Wt)/Vt,en=Kt+Ye,dn=yi.pop()||new Rs;dn.arc=U,dn.site=_e,dn.x=An+Qe,dn.y=en+Math.sqrt(An*An+Kt*Kt),dn.cy=en,U.circle=dn;for(var Rn=null,Mn=Ka._;Mn;)if(dn.y0)){if(Kt/=mn,mn<0){if(Kt0){if(Kt>Wt)return;Kt>Vt&&(Vt=Kt)}if(Kt=ve-Ye,!(!mn&&Kt<0)){if(Kt/=mn,mn<0){if(Kt>Wt)return;Kt>Vt&&(Vt=Kt)}else if(mn>0){if(Kt0)){if(Kt/=An,An<0){if(Kt0){if(Kt>Wt)return;Kt>Vt&&(Vt=Kt)}if(Kt=Ae-rt,!(!An&&Kt<0)){if(Kt/=An,An<0){if(Kt>Wt)return;Kt>Vt&&(Vt=Kt)}else if(An>0){if(Kt0&&(_e.a={x:Ye+Vt*mn,y:rt+Vt*An}),Wt<1&&(_e.b={x:Ye+Wt*mn,y:rt+Wt*An}),_e}}}}}}function Ks(U){for(var q=ss,ve=Bo(U[0][0],U[0][1],U[1][0],U[1][1]),Ae=q.length,_e;Ae--;)_e=q[Ae],(!Bs(_e,U)||!ve(_e)||R(_e.a.x-_e.b.x)=Ie)return;if(bt>Wt){if(!Ae)Ae={x:An,y:Qe};else if(Ae.y>=Ye)return;ve={x:An,y:Ye}}else{if(!Ae)Ae={x:An,y:Ye};else if(Ae.y1)if(bt>Wt){if(!Ae)Ae={x:(Qe-dn)/en,y:Qe};else if(Ae.y>=Ye)return;ve={x:(Ye-dn)/en,y:Ye}}else{if(!Ae)Ae={x:(Ye-dn)/en,y:Ye};else if(Ae.y=Ie)return;ve={x:Ie,y:en*Ie+dn}}else{if(!Ae)Ae={x:Ie,y:en*Ie+dn};else if(Ae.x<_e)return;ve={x:_e,y:en*_e+dn}}return U.a=Ae,U.b=ve,!0}function df(U,q){this.l=U,this.r=q,this.a=this.b=null}function Ls(U,q,ve,Ae){var _e=new df(U,q);return ss.push(_e),ve&&uu(_e,U,q,ve),Ae&&uu(_e,q,U,Ae),Ya[U.i].edges.push(new Vf(_e,U,q)),Ya[q.i].edges.push(new Vf(_e,q,U)),_e}function cu(U,q,ve){var Ae=new df(U,null);return Ae.a=q,Ae.b=ve,ss.push(Ae),Ae}function uu(U,q,ve,Ae){!U.a&&!U.b?(U.a=Ae,U.l=q,U.r=ve):U.l===ve?U.b=Ae:U.a=Ae}function Vf(U,q,ve){var Ae=U.a,_e=U.b;this.edge=U,this.site=q,this.angle=ve?Math.atan2(ve.y-q.y,ve.x-q.x):U.l===q?Math.atan2(_e.x-Ae.x,Ae.y-_e.y):Math.atan2(Ae.x-_e.x,_e.y-Ae.y)}Vf.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function Ma(){this._=null}function Uf(U){U.U=U.C=U.L=U.R=U.P=U.N=null}Ma.prototype={insert:function(U,q){var ve,Ae,_e;if(U){if(q.P=U,q.N=U.N,U.N&&(U.N.P=q),U.N=q,U.R){for(U=U.R;U.L;)U=U.L;U.L=q}else U.R=q;ve=U}else this._?(U=wd(this._),q.P=null,q.N=U,U.P=U.L=q,ve=U):(q.P=q.N=null,this._=q,ve=null);for(q.L=q.R=null,q.U=ve,q.C=!0,U=q;ve&&ve.C;)Ae=ve.U,ve===Ae.L?(_e=Ae.R,_e&&_e.C?(ve.C=_e.C=!1,Ae.C=!0,U=Ae):(U===ve.R&&(gc(this,ve),U=ve,ve=U.U),ve.C=!1,Ae.C=!0,al(this,Ae))):(_e=Ae.L,_e&&_e.C?(ve.C=_e.C=!1,Ae.C=!0,U=Ae):(U===ve.L&&(al(this,ve),U=ve,ve=U.U),ve.C=!1,Ae.C=!0,gc(this,Ae))),ve=U.U;this._.C=!1},remove:function(U){U.N&&(U.N.P=U.P),U.P&&(U.P.N=U.N),U.N=U.P=null;var q=U.U,ve,Ae=U.L,_e=U.R,Ie,Qe;if(Ae?_e?Ie=wd(_e):Ie=Ae:Ie=_e,q?q.L===U?q.L=Ie:q.R=Ie:this._=Ie,Ae&&_e?(Qe=Ie.C,Ie.C=U.C,Ie.L=Ae,Ae.U=Ie,Ie!==_e?(q=Ie.U,Ie.U=U.U,U=Ie.R,q.L=U,Ie.R=_e,_e.U=Ie):(Ie.U=q,q=Ie,U=Ie.R)):(Qe=U.C,U=Ie),U&&(U.U=q),!Qe){if(U&&U.C){U.C=!1;return}do{if(U===this._)break;if(U===q.L){if(ve=q.R,ve.C&&(ve.C=!1,q.C=!0,gc(this,q),ve=q.R),ve.L&&ve.L.C||ve.R&&ve.R.C){(!ve.R||!ve.R.C)&&(ve.L.C=!1,ve.C=!0,al(this,ve),ve=q.R),ve.C=q.C,q.C=ve.R.C=!1,gc(this,q),U=this._;break}}else if(ve=q.L,ve.C&&(ve.C=!1,q.C=!0,al(this,q),ve=q.L),ve.L&&ve.L.C||ve.R&&ve.R.C){(!ve.L||!ve.L.C)&&(ve.R.C=!1,ve.C=!0,gc(this,ve),ve=q.L),ve.C=q.C,q.C=ve.L.C=!1,al(this,q),U=this._;break}ve.C=!0,U=q,q=q.U}while(!U.C);U&&(U.C=!1)}}};function gc(U,q){var ve=q,Ae=q.R,_e=ve.U;_e?_e.L===ve?_e.L=Ae:_e.R=Ae:U._=Ae,Ae.U=_e,ve.U=Ae,ve.R=Ae.L,ve.R&&(ve.R.U=ve),Ae.L=ve}function al(U,q){var ve=q,Ae=q.L,_e=ve.U;_e?_e.L===ve?_e.L=Ae:_e.R=Ae:U._=Ae,Ae.U=_e,ve.U=Ae,ve.L=Ae.R,ve.L&&(ve.L.U=ve),Ae.R=ve}function wd(U){for(;U.L;)U=U.L;return U}function dh(U,q){var ve=U.sort(La).pop(),Ae,_e,Ie;for(ss=[],Ya=new Array(U.length),_c=new Ma,Ka=new Ma;;)if(Ie=jl,ve&&(!Ie||ve.y=bt&&dn.x<=Wt&&dn.y>=Vt&&dn.y<=mn?[[bt,mn],[Wt,mn],[Wt,Vt],[bt,Vt]]:[];Rn.point=rt[Kt]}),yt}function Ye(rt){return rt.map(function(yt,bt){return{x:Math.round(Ae(yt,bt)/vt)*vt,y:Math.round(_e(yt,bt)/vt)*vt,i:bt}})}return Qe.links=function(rt){return dh(Ye(rt)).edges.filter(function(yt){return yt.l&&yt.r}).map(function(yt){return{source:rt[yt.l.i],target:rt[yt.r.i]}})},Qe.triangles=function(rt){var yt=[];return dh(Ye(rt)).cells.forEach(function(bt,Vt){for(var Wt=bt.site,mn=bt.edges.sort(li),An=-1,Kt=mn.length,en,dn=mn[Kt-1].edge,Rn=dn.l===Wt?dn.r:dn.l;++AnMn&&(Mn=bt.x),bt.y>vn&&(vn=bt.y),mn.push(bt.x),An.push(bt.y);else for(Kt=0;KtMn&&(Mn=lr),zr>vn&&(vn=zr),mn.push(lr),An.push(zr)}var Jr=Mn-dn,kr=vn-Rn;Jr>kr?vn=Rn+Jr:Mn=dn+kr;function eo(yo,fo,Ha,Vs,is,$r,_o,sa){if(!(isNaN(Ha)||isNaN(Vs)))if(yo.leaf){var Ca=yo.x,As=yo.y;if(Ca!=null)if(R(Ca-Ha)+R(As-Vs)<.01)lo(yo,fo,Ha,Vs,is,$r,_o,sa);else{var qs=yo.point;yo.x=yo.y=yo.point=null,lo(yo,qs,Ca,As,is,$r,_o,sa),lo(yo,fo,Ha,Vs,is,$r,_o,sa)}else yo.x=Ha,yo.y=Vs,yo.point=fo}else lo(yo,fo,Ha,Vs,is,$r,_o,sa)}function lo(yo,fo,Ha,Vs,is,$r,_o,sa){var Ca=(is+_o)*.5,As=($r+sa)*.5,qs=Ha>=Ca,Di=Vs>=As,xi=Di<<1|qs;yo.leaf=!1,yo=yo.nodes[xi]||(yo.nodes[xi]=sl()),qs?is=Ca:_o=Ca,Di?$r=As:sa=As,eo(yo,fo,Ha,Vs,is,$r,_o,sa)}var Ko=sl();if(Ko.add=function(yo){eo(Ko,yo,+Vt(yo,++Kt),+Wt(yo,Kt),dn,Rn,Mn,vn)},Ko.visit=function(yo){Ei(yo,Ko,dn,Rn,Mn,vn)},Ko.find=function(yo){return Zy(Ko,yo[0],yo[1],dn,Rn,Mn,vn)},Kt=-1,q==null){for(;++KtIe||Wt>Qe||mn=lr,kr=ve>=zr,eo=kr<<1|Jr,lo=eo+4;eove&&(Ie=q.slice(ve,Ie),Ye[Qe]?Ye[Qe]+=Ie:Ye[++Qe]=Ie),(Ae=Ae[0])===(_e=_e[0])?Ye[Qe]?Ye[Qe]+=_e:Ye[++Qe]=_e:(Ye[++Qe]=null,rt.push({i:Qe,x:fu(Ae,_e)})),ve=il.lastIndex;return ve=0&&!(Ae=l.interpolators[ve](U,q)););return Ae}l.interpolators=[function(U,q){var ve=typeof q;return(ve==="string"?Qn.has(q.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(q)?Ag:ws:q instanceof Ir?Ag:Array.isArray(q)?Gu:ve==="object"&&isNaN(q)?Yc:fu)(U,q)}],l.interpolateArray=Gu;function Gu(U,q){var ve=[],Ae=[],_e=U.length,Ie=q.length,Qe=Math.min(U.length,q.length),Ye;for(Ye=0;Ye=0?U.slice(0,q):U,Ae=q>=0?U.slice(q+1):"in";return ve=Zu.get(ve)||Xs,Ae=Mg.get(Ae)||ne,Eg(Ae(ve.apply(null,c.call(arguments,1))))};function Eg(U){return function(q){return q<=0?0:q>=1?1:U(q)}}function D0(U){return function(q){return 1-U(1-q)}}function Dp(U){return function(q){return .5*(q<.5?U(2*q):2-U(2-2*q))}}function ju(U){return U*U}function _g(U){return U*U*U}function Kl(U){if(U<=0)return 0;if(U>=1)return 1;var q=U*U,ve=q*U;return 4*(U<.5?ve:3*(U-q)+ve-.75)}function $p(U){return function(q){return Math.pow(q,U)}}function $0(U){return 1-Math.cos(U*pt)}function hh(U){return Math.pow(2,10*(U-1))}function O0(U){return 1-Math.sqrt(1-U*U)}function mh(U,q){var ve;return arguments.length<2&&(q=.45),arguments.length?ve=q/it*Math.asin(1/U):(U=1,ve=q/4),function(Ae){return 1+U*Math.pow(2,-10*Ae)*Math.sin((Ae-ve)*it/q)}}function jy(U){return U||(U=1.70158),function(q){return q*q*((U+1)*q-U)}}function Cd(U){return U<.36363636363636365?7.5625*U*U:U<.7272727272727273?7.5625*(U-=.5454545454545454)*U+.75:U<.9090909090909091?7.5625*(U-=.8181818181818182)*U+.9375:7.5625*(U-=.9545454545454546)*U+.984375}l.interpolateHcl=Yy;function Yy(U,q){U=l.hcl(U),q=l.hcl(q);var ve=U.h,Ae=U.c,_e=U.l,Ie=q.h-ve,Qe=q.c-Ae,Ye=q.l-_e;return isNaN(Qe)&&(Qe=0,Ae=isNaN(Ae)?q.c:Ae),isNaN(Ie)?(Ie=0,ve=isNaN(ve)?q.h:ve):Ie>180?Ie-=360:Ie<-180&&(Ie+=360),function(rt){return xr(ve+Ie*rt,Ae+Qe*rt,_e+Ye*rt)+""}}l.interpolateHsl=Ky;function Ky(U,q){U=l.hsl(U),q=l.hsl(q);var ve=U.h,Ae=U.s,_e=U.l,Ie=q.h-ve,Qe=q.s-Ae,Ye=q.l-_e;return isNaN(Qe)&&(Qe=0,Ae=isNaN(Ae)?q.s:Ae),isNaN(Ie)?(Ie=0,ve=isNaN(ve)?q.h:ve):Ie>180?Ie-=360:Ie<-180&&(Ie+=360),function(rt){return Yr(ve+Ie*rt,Ae+Qe*rt,_e+Ye*rt)+""}}l.interpolateLab=Xy;function Xy(U,q){U=l.lab(U),q=l.lab(q);var ve=U.l,Ae=U.a,_e=U.b,Ie=q.l-ve,Qe=q.a-Ae,Ye=q.b-_e;return function(rt){return De(ve+Ie*rt,Ae+Qe*rt,_e+Ye*rt)+""}}l.interpolateRound=gh;function gh(U,q){return q-=U,function(ve){return Math.round(U+q*ve)}}l.transform=function(U){var q=u.createElementNS(l.ns.prefix.svg,"g");return(l.transform=function(ve){if(ve!=null){q.setAttribute("transform",ve);var Ae=q.transform.baseVal.consolidate()}return new P0(Ae?Ae.matrix:Op)})(U)};function P0(U){var q=[U.a,U.b],ve=[U.c,U.d],Ae=ph(q),_e=jt(q,ve),Ie=ph(du(ve,q,-_e))||0;q[0]*ve[1]180?q+=360:q-U>180&&(U+=360),Ae.push({i:ve.push(Rg(ve)+"rotate(",null,")")-2,x:fu(U,q)})):q&&ve.push(Rg(ve)+"rotate("+q+")")}function Dl(U,q,ve,Ae){U!==q?Ae.push({i:ve.push(Rg(ve)+"skewX(",null,")")-2,x:fu(U,q)}):q&&ve.push(Rg(ve)+"skewX("+q+")")}function hf(U,q,ve,Ae){if(U[0]!==q[0]||U[1]!==q[1]){var _e=ve.push(Rg(ve)+"scale(",null,",",null,")");Ae.push({i:_e-4,x:fu(U[0],q[0])},{i:_e-2,x:fu(U[1],q[1])})}else(q[0]!==1||q[1]!==1)&&ve.push(Rg(ve)+"scale("+q+")")}function mf(U,q){var ve=[],Ae=[];return U=l.transform(U),q=l.transform(q),I2(U.translate,q.translate,ve,Ae),Ba(U.rotate,q.rotate,ve,Ae),Dl(U.skew,q.skew,ve,Ae),hf(U.scale,q.scale,ve,Ae),U=q=null,function(_e){for(var Ie=-1,Qe=Ae.length,Ye;++Ie0?Ie=vn:(ve.c=null,ve.t=NaN,ve=null,q.end({type:"end",alpha:Ie=0})):vn>0&&(q.start({type:"start",alpha:Ie=vn}),ve=bo(U.tick)),U):Ie},U.start=function(){var vn,lr=mn.length,zr=An.length,Jr=Ae[0],kr=Ae[1],eo,lo;for(vn=0;vn=0;)Ie.push(bt=yt[rt]),bt.parent=Ye,bt.depth=Ye.depth+1;ve&&(Ye.value=0),Ye.children=yt}else ve&&(Ye.value=+ve.call(Ae,Ye,Ye.depth)||0),delete Ye.children;return mu(_e,function(Vt){var Wt,mn;U&&(Wt=Vt.children)&&Wt.sort(U),ve&&(mn=Vt.parent)&&(mn.value+=Vt.value)}),Qe}return Ae.sort=function(_e){return arguments.length?(U=_e,Ae):U},Ae.children=function(_e){return arguments.length?(q=_e,Ae):q},Ae.value=function(_e){return arguments.length?(ve=_e,Ae):ve},Ae.revalue=function(_e){return ve&&(ll(_e,function(Ie){Ie.children&&(Ie.value=0)}),mu(_e,function(Ie){var Qe;Ie.children||(Ie.value=+ve.call(Ae,Ie,Ie.depth)||0),(Qe=Ie.parent)&&(Qe.value+=Ie.value)})),_e},Ae};function Xl(U,q){return l.rebind(U,q,"sort","children","value"),U.nodes=U,U.links=Pp,U}function ll(U,q){for(var ve=[U];(U=ve.pop())!=null;)if(q(U),(_e=U.children)&&(Ae=_e.length))for(var Ae,_e;--Ae>=0;)ve.push(_e[Ae])}function mu(U,q){for(var ve=[U],Ae=[];(U=ve.pop())!=null;)if(Ae.push(U),(Qe=U.children)&&(Ie=Qe.length))for(var _e=-1,Ie,Qe;++_e_e&&(_e=Ye),Ae.push(Ye)}for(Qe=0;QeAe&&(ve=q,Ae=_e);return ve}function Js(U){return U.reduce(Xc,0)}function Xc(U,q){return U+q[1]}l.layout.histogram=function(){var U=!0,q=Number,ve=bl,Ae=H0;function _e(Ie,Wt){for(var Ye=[],rt=Ie.map(q,this),yt=ve.call(this,rt,Wt),bt=Ae.call(this,yt,rt,Wt),Vt,Wt=-1,mn=rt.length,An=bt.length-1,Kt=U?1:1/mn,en;++Wt0)for(Wt=-1;++Wt=yt[0]&&en<=yt[1]&&(Vt=Ye[l.bisect(bt,en,1,An)-1],Vt.y+=Kt,Vt.push(Ie[Wt]));return Ye}return _e.value=function(Ie){return arguments.length?(q=Ie,_e):q},_e.range=function(Ie){return arguments.length?(ve=Bn(Ie),_e):ve},_e.bins=function(Ie){return arguments.length?(Ae=typeof Ie=="number"?function(Qe){return eb(Qe,Ie)}:Bn(Ie),_e):Ae},_e.frequency=function(Ie){return arguments.length?(U=!!Ie,_e):U},_e};function H0(U,q){return eb(U,Math.ceil(Math.log(q.length)/Math.LN2+1))}function eb(U,q){for(var ve=-1,Ae=+U[0],_e=(U[1]-Ae)/q,Ie=[];++ve<=q;)Ie[ve]=_e*ve+Ae;return Ie}function bl(U){return[l.min(U),l.max(U)]}l.layout.pack=function(){var U=l.layout.hierarchy().sort(vm),q=0,ve=[1,1],Ae;function _e(Ie,Qe){var Ye=U.call(this,Ie,Qe),rt=Ye[0],yt=ve[0],bt=ve[1],Vt=Ae==null?Math.sqrt:typeof Ae=="function"?Ae:function(){return Ae};if(rt.x=rt.y=0,mu(rt,function(mn){mn.r=+Vt(mn.value)}),mu(rt,Wo),q){var Wt=q*(Ae?1:Math.max(2*rt.r/yt,2*rt.r/bt))/2;mu(rt,function(mn){mn.r+=Wt}),mu(rt,Wo),mu(rt,function(mn){mn.r-=Wt})}return vh(rt,yt/2,bt/2,Ae?1:1/Math.max(2*rt.r/yt,2*rt.r/bt)),Ye}return _e.size=function(Ie){return arguments.length?(ve=Ie,_e):ve},_e.radius=function(Ie){return arguments.length?(Ae=Ie==null||typeof Ie=="function"?Ie:+Ie,_e):Ae},_e.padding=function(Ie){return arguments.length?(q=+Ie,_e):q},Xl(_e,U)};function vm(U,q){return U.value-q.value}function Jl(U,q){var ve=U._pack_next;U._pack_next=q,q._pack_prev=U,q._pack_next=ve,ve._pack_prev=q}function Ku(U,q){U._pack_next=q,q._pack_prev=U}function z0(U,q){var ve=q.x-U.x,Ae=q.y-U.y,_e=U.r+q.r;return .999*_e*_e>ve*ve+Ae*Ae}function Wo(U){if(!(q=U.children)||!(Wt=q.length))return;var q,ve=1/0,Ae=-1/0,_e=1/0,Ie=-1/0,Qe,Ye,rt,yt,bt,Vt,Wt;function mn(vn){ve=Math.min(vn.x-vn.r,ve),Ae=Math.max(vn.x+vn.r,Ae),_e=Math.min(vn.y-vn.r,_e),Ie=Math.max(vn.y+vn.r,Ie)}if(q.forEach(vc),Qe=q[0],Qe.x=-Qe.r,Qe.y=0,mn(Qe),Wt>1&&(Ye=q[1],Ye.x=Ye.r,Ye.y=0,mn(Ye),Wt>2))for(rt=q[2],V0(Qe,Ye,rt),mn(rt),Jl(Qe,rt),Qe._pack_prev=rt,Jl(rt,Ye),Ye=Qe._pack_next,yt=3;yten.x&&(en=lr),lr.depth>dn.depth&&(dn=lr)});var Rn=q(Kt,en)/2-Kt.x,Mn=ve[0]/(en.x+q(en,Kt)/2+Rn),vn=ve[1]/(dn.depth||1);ll(mn,function(lr){lr.x=(lr.x+Rn)*Mn,lr.y=lr.depth*vn})}return Wt}function Ie(bt){for(var Vt={A:null,children:[bt]},Wt=[Vt],mn;(mn=Wt.pop())!=null;)for(var An=mn.children,Kt,en=0,dn=An.length;en0&&(Lc(W0(Kt,bt,Wt),bt,lr),dn+=lr,Rn+=lr),Mn+=Kt.m,dn+=mn.m,vn+=en.m,Rn+=An.m;Kt&&!ui(An)&&(An.t=Kt,An.m+=Mn-Rn),mn&&!$l(en)&&(en.t=mn,en.m+=dn-vn,Wt=bt)}return Wt}function yt(bt){bt.x*=ve[0],bt.y=bt.depth*ve[1]}return _e.separation=function(bt){return arguments.length?(q=bt,_e):q},_e.size=function(bt){return arguments.length?(Ae=(ve=bt)==null?yt:null,_e):Ae?null:ve},_e.nodeSize=function(bt){return arguments.length?(Ae=(ve=bt)==null?null:yt,_e):Ae?ve:null},Xl(_e,U)};function U0(U,q){return U.parent==q.parent?1:2}function $l(U){var q=U.children;return q.length?q[0]:U.t}function ui(U){var q=U.children,ve;return(ve=q.length)?q[ve-1]:U.t}function Lc(U,q,ve){var Ae=ve/(q.i-U.i);q.c-=Ae,q.s+=ve,U.c+=Ae,q.z+=ve,q.m+=ve}function _i(U){for(var q=0,ve=0,Ae=U.children,_e=Ae.length,Ie;--_e>=0;)Ie=Ae[_e],Ie.z+=q,Ie.m+=q,q+=Ie.s+(ve+=Ie.c)}function W0(U,q,ve){return U.a.parent===q.parent?U.a:ve}l.layout.cluster=function(){var U=l.layout.hierarchy().sort(null).value(null),q=U0,ve=[1,1],Ae=!1;function _e(Ie,Qe){var Ye=U.call(this,Ie,Qe),rt=Ye[0],yt,bt=0;mu(rt,function(Kt){var en=Kt.children;en&&en.length?(Kt.x=fi(en),Kt.y=Np(en)):(Kt.x=yt?bt+=q(Kt,yt):0,Kt.y=0,yt=Kt)});var Vt=Ri(rt),Wt=gu(rt),mn=Vt.x-q(Vt,Wt)/2,An=Wt.x+q(Wt,Vt)/2;return mu(rt,Ae?function(Kt){Kt.x=(Kt.x-rt.x)*ve[0],Kt.y=(rt.y-Kt.y)*ve[1]}:function(Kt){Kt.x=(Kt.x-mn)/(An-mn)*ve[0],Kt.y=(1-(rt.y?Kt.y/rt.y:1))*ve[1]}),Ye}return _e.separation=function(Ie){return arguments.length?(q=Ie,_e):q},_e.size=function(Ie){return arguments.length?(Ae=(ve=Ie)==null,_e):Ae?null:ve},_e.nodeSize=function(Ie){return arguments.length?(Ae=(ve=Ie)!=null,_e):Ae?ve:null},Xl(_e,U)};function Np(U){return 1+l.max(U,function(q){return q.y})}function fi(U){return U.reduce(function(q,ve){return q+ve.x},0)/U.length}function Ri(U){var q=U.children;return q&&q.length?Ri(q[0]):U}function gu(U){var q=U.children,ve;return q&&(ve=q.length)?gu(q[ve-1]):U}l.layout.treemap=function(){var U=l.layout.hierarchy(),q=Math.round,ve=[1,1],Ae=null,_e=yh,Ie=!1,Qe,Ye="squarify",rt=.5*(1+Math.sqrt(5));function yt(Kt,en){for(var dn=-1,Rn=Kt.length,Mn,vn;++dn0;)Rn.push(vn=Mn[kr-1]),Rn.area+=vn.area,Ye!=="squarify"||(zr=Wt(Rn,Jr))<=lr?(Mn.pop(),lr=zr):(Rn.area-=Rn.pop().area,mn(Rn,Jr,dn,!1),Jr=Math.min(dn.dx,dn.dy),Rn.length=Rn.area=0,lr=1/0);Rn.length&&(mn(Rn,Jr,dn,!0),Rn.length=Rn.area=0),en.forEach(bt)}}function Vt(Kt){var en=Kt.children;if(en&&en.length){var dn=_e(Kt),Rn=en.slice(),Mn,vn=[];for(yt(Rn,dn.dx*dn.dy/Kt.value),vn.area=0;Mn=Rn.pop();)vn.push(Mn),vn.area+=Mn.area,Mn.z!=null&&(mn(vn,Mn.z?dn.dx:dn.dy,dn,!Rn.length),vn.length=vn.area=0);en.forEach(Vt)}}function Wt(Kt,en){for(var dn=Kt.area,Rn,Mn=0,vn=1/0,lr=-1,zr=Kt.length;++lrMn&&(Mn=Rn));return dn*=dn,en*=en,dn?Math.max(en*Mn*rt/dn,dn/(en*vn*rt)):1/0}function mn(Kt,en,dn,Rn){var Mn=-1,vn=Kt.length,lr=dn.x,zr=dn.y,Jr=en?q(Kt.area/en):0,kr;if(en==dn.dx){for((Rn||Jr>dn.dy)&&(Jr=dn.dy);++Mndn.dx)&&(Jr=dn.dx);++Mn1);return U+q*Ae*Math.sqrt(-2*Math.log(Ie)/Ie)}},logNormal:function(){var U=l.random.normal.apply(l,arguments);return function(){return Math.exp(U())}},bates:function(U){var q=l.random.irwinHall(U);return function(){return q()/U}},irwinHall:function(U){return function(){for(var q=0,ve=0;ve2?G0:hs,yt=Ae?mm:I0;return _e=rt(U,q,yt,ve),Ie=rt(q,U,yt,Yl),Ye}function Ye(rt){return _e(rt)}return Ye.invert=function(rt){return Ie(rt)},Ye.domain=function(rt){return arguments.length?(U=rt.map(Number),Qe()):U},Ye.range=function(rt){return arguments.length?(q=rt,Qe()):q},Ye.rangeRound=function(rt){return Ye.range(rt).interpolate(gh)},Ye.clamp=function(rt){return arguments.length?(Ae=rt,Qe()):Ae},Ye.interpolate=function(rt){return arguments.length?(ve=rt,Qe()):ve},Ye.ticks=function(rt){return Ig(U,rt)},Ye.tickFormat=function(rt,yt){return d3_scale_linearTickFormat(U,rt,yt)},Ye.nice=function(rt){return bh(U,rt),Qe()},Ye.copy=function(){return Pg(U,q,ve,Ae)},Qe()}function aa(U,q){return l.rebind(U,q,"range","rangeRound","interpolate","clamp")}function bh(U,q){return Ad(U,Ua(Fp(U,q)[2])),Ad(U,Ua(Fp(U,q)[2])),U}function Fp(U,q){q==null&&(q=10);var ve=ym(U),Ae=ve[1]-ve[0],_e=Math.pow(10,Math.floor(Math.log(Ae/q)/Math.LN10)),Ie=q/Ae*_e;return Ie<=.15?_e*=10:Ie<=.35?_e*=5:Ie<=.75&&(_e*=2),ve[0]=Math.ceil(ve[0]/_e)*_e,ve[1]=Math.floor(ve[1]/_e)*_e+_e*.5,ve[2]=_e,ve}function Ig(U,q){return l.range.apply(l,Fp(U,q))}l.scale.log=function(){return F2(l.scale.linear().domain([0,1]),10,!0,[1,10])};function F2(U,q,ve,Ae){function _e(Ye){return(ve?Math.log(Ye<0?0:Ye):-Math.log(Ye>0?0:-Ye))/Math.log(q)}function Ie(Ye){return ve?Math.pow(q,Ye):-Math.pow(q,-Ye)}function Qe(Ye){return U(_e(Ye))}return Qe.invert=function(Ye){return Ie(U.invert(Ye))},Qe.domain=function(Ye){return arguments.length?(ve=Ye[0]>=0,U.domain((Ae=Ye.map(Number)).map(_e)),Qe):Ae},Qe.base=function(Ye){return arguments.length?(q=+Ye,U.domain(Ae.map(_e)),Qe):q},Qe.nice=function(){var Ye=Ad(Ae.map(_e),ve?Math:B2);return U.domain(Ye),Ae=Ye.map(Ie),Qe},Qe.ticks=function(){var Ye=ym(Ae),rt=[],yt=Ye[0],bt=Ye[1],Vt=Math.floor(_e(yt)),Wt=Math.ceil(_e(bt)),mn=q%1?2:q;if(isFinite(Wt-Vt)){if(ve){for(;Vt0;An--)rt.push(Ie(Vt)*An);for(Vt=0;rt[Vt]bt;Wt--);rt=rt.slice(Vt,Wt)}return rt},Qe.copy=function(){return F2(U.copy(),q,ve,Ae)},aa(Qe,U)}var B2={floor:function(U){return-Math.ceil(-U)},ceil:function(U){return-Math.floor(-U)}};l.scale.pow=function(){return Z0(l.scale.linear(),1,[0,1])};function Z0(U,q,ve){var Ae=xh(q),_e=xh(1/q);function Ie(Qe){return U(Ae(Qe))}return Ie.invert=function(Qe){return _e(U.invert(Qe))},Ie.domain=function(Qe){return arguments.length?(U.domain((ve=Qe.map(Number)).map(Ae)),Ie):ve},Ie.ticks=function(Qe){return Ig(ve,Qe)},Ie.tickFormat=function(Qe,Ye){return d3_scale_linearTickFormat(ve,Qe,Ye)},Ie.nice=function(Qe){return Ie.domain(bh(ve,Qe))},Ie.exponent=function(Qe){return arguments.length?(Ae=xh(q=Qe),_e=xh(1/q),U.domain(ve.map(Ae)),Ie):q},Ie.copy=function(){return Z0(U.copy(),q,ve)},aa(Ie,U)}function xh(U){return function(q){return q<0?-Math.pow(-q,U):Math.pow(q,U)}}l.scale.sqrt=function(){return l.scale.pow().exponent(.5)},l.scale.ordinal=function(){return Bp([],{t:"range",a:[[]]})};function Bp(U,q){var ve,Ae,_e;function Ie(Ye){return Ae[((ve.get(Ye)||(q.t==="range"?ve.set(Ye,U.push(Ye)):NaN))-1)%Ae.length]}function Qe(Ye,rt){return l.range(U.length).map(function(yt){return Ye+rt*yt})}return Ie.domain=function(Ye){if(!arguments.length)return U;U=[],ve=new j;for(var rt=-1,yt=Ye.length,bt;++rt0?ve[Ie-1]:U[0],IeWt?0:1;if(bt=ht)return rt(bt,An)+(yt?rt(yt,1-An):"")+"Z";var Kt,en,dn,Rn,Mn=0,vn=0,lr,zr,Jr,kr,eo,lo,Ko,yo,fo=[];if((Rn=(+Qe.apply(this,arguments)||0)/2)&&(dn=Ae===xm?Math.sqrt(yt*yt+bt*bt):+Ae.apply(this,arguments),An||(vn*=-1),bt&&(vn=tn(dn/bt*Math.sin(Rn))),yt&&(Mn=tn(dn/yt*Math.sin(Rn)))),bt){lr=bt*Math.cos(Vt+vn),zr=bt*Math.sin(Vt+vn),Jr=bt*Math.cos(Wt-vn),kr=bt*Math.sin(Wt-vn);var Ha=Math.abs(Wt-Vt-2*vn)<=Ze?0:1;if(vn&&Ng(lr,zr,Jr,kr)===An^Ha){var Vs=(Vt+Wt)/2;lr=bt*Math.cos(Vs),zr=bt*Math.sin(Vs),Jr=kr=null}}else lr=zr=0;if(yt){eo=yt*Math.cos(Wt-Mn),lo=yt*Math.sin(Wt-Mn),Ko=yt*Math.cos(Vt+Mn),yo=yt*Math.sin(Vt+Mn);var is=Math.abs(Vt-Wt+2*Mn)<=Ze?0:1;if(Mn&&Ng(eo,lo,Ko,yo)===1-An^is){var $r=(Vt+Wt)/2;eo=yt*Math.cos($r),lo=yt*Math.sin($r),Ko=yo=null}}else eo=lo=0;if(mn>vt&&(Kt=Math.min(Math.abs(bt-yt)/2,+ve.apply(this,arguments)))>.001){en=yt0?0:1}function es(U,q,ve,Ae,_e){var Ie=U[0]-q[0],Qe=U[1]-q[1],Ye=(_e?Ae:-Ae)/Math.sqrt(Ie*Ie+Qe*Qe),rt=Ye*Qe,yt=-Ye*Ie,bt=U[0]+rt,Vt=U[1]+yt,Wt=q[0]+rt,mn=q[1]+yt,An=(bt+Wt)/2,Kt=(Vt+mn)/2,en=Wt-bt,dn=mn-Vt,Rn=en*en+dn*dn,Mn=ve-Ae,vn=bt*mn-Wt*Vt,lr=(dn<0?-1:1)*Math.sqrt(Math.max(0,Mn*Mn*Rn-vn*vn)),zr=(vn*dn-en*lr)/Rn,Jr=(-vn*en-dn*lr)/Rn,kr=(vn*dn+en*lr)/Rn,eo=(-vn*en+dn*lr)/Rn,lo=zr-An,Ko=Jr-Kt,yo=kr-An,fo=eo-Kt;return lo*lo+Ko*Ko>yo*yo+fo*fo&&(zr=kr,Jr=eo),[[zr-rt,Jr-yt],[zr*ve/Mn,Jr*ve/Mn]]}function io(){return!0}function vu(U){var q=Yo,ve=Fa,Ae=io,_e=xl,Ie=_e.key,Qe=.7;function Ye(rt){var yt=[],bt=[],Vt=-1,Wt=rt.length,mn,An=Bn(q),Kt=Bn(ve);function en(){yt.push("M",_e(U(bt),Qe))}for(;++Vt1?U.join("L"):U+"Z"}function H2(U){return U.join("L")+"Z"}function Wf(U){for(var q=0,ve=U.length,Ae=U[0],_e=[Ae[0],",",Ae[1]];++q1&&_e.push("H",Ae[0]),_e.join("")}function oi(U){for(var q=0,ve=U.length,Ae=U[0],_e=[Ae[0],",",Ae[1]];++q1){Ye=q[1],Ie=U[rt],rt++,Ae+="C"+(_e[0]+Qe[0])+","+(_e[1]+Qe[1])+","+(Ie[0]-Ye[0])+","+(Ie[1]-Ye[1])+","+Ie[0]+","+Ie[1];for(var yt=2;yt9&&(Ie=ve*3/Math.sqrt(Ie),Qe[Ye]=Ie*Ae,Qe[Ye+1]=Ie*_e));for(Ye=-1;++Ye<=rt;)Ie=(U[Math.min(rt,Ye+1)][0]-U[Math.max(0,Ye-1)][0])/(6*(1+Qe[Ye]*Qe[Ye])),q.push([Ie||0,Qe[Ye]*Ie||0]);return q}function Bg(U){return U.length<3?xl(U):U[0]+Sh(U,fa(U))}l.svg.line.radial=function(){var U=vu(Wi);return U.radius=U.x,delete U.x,U.angle=U.y,delete U.y,U};function Wi(U){for(var q,ve=-1,Ae=U.length,_e,Ie;++veZe)+",1 "+Vt}function yt(bt,Vt,Wt,mn){return"Q 0,0 "+mn}return Ie.radius=function(bt){return arguments.length?(ve=Bn(bt),Ie):ve},Ie.source=function(bt){return arguments.length?(U=Bn(bt),Ie):U},Ie.target=function(bt){return arguments.length?(q=Bn(bt),Ie):q},Ie.startAngle=function(bt){return arguments.length?(Ae=Bn(bt),Ie):Ae},Ie.endAngle=function(bt){return arguments.length?(_e=Bn(bt),Ie):_e},Ie};function yc(U){return U.radius}l.svg.diagonal=function(){var U=Hg,q=qn,ve=Cm;function Ae(_e,Ie){var Qe=U.call(this,_e,Ie),Ye=q.call(this,_e,Ie),rt=(Qe.y+Ye.y)/2,yt=[Qe,{x:Qe.x,y:rt},{x:Ye.x,y:rt},Ye];return yt=yt.map(ve),"M"+yt[0]+"C"+yt[1]+" "+yt[2]+" "+yt[3]}return Ae.source=function(_e){return arguments.length?(U=Bn(_e),Ae):U},Ae.target=function(_e){return arguments.length?(q=Bn(_e),Ae):q},Ae.projection=function(_e){return arguments.length?(ve=_e,Ae):ve},Ae};function Cm(U){return[U.x,U.y]}l.svg.diagonal.radial=function(){var U=l.svg.diagonal(),q=Cm,ve=U.projection;return U.projection=function(Ae){return arguments.length?ve(Da(q=Ae)):q},U};function Da(U){return function(){var q=U.apply(this,arguments),ve=q[0],Ae=q[1]-pt;return[ve*Math.cos(Ae),ve*Math.sin(Ae)]}}l.svg.symbol=function(){var U=z2,q=Qu;function ve(Ae,_e){return(Up.get(U.call(this,Ae,_e))||bu)(q.call(this,Ae,_e))}return ve.type=function(Ae){return arguments.length?(U=Bn(Ae),ve):U},ve.size=function(Ae){return arguments.length?(q=Bn(Ae),ve):q},ve};function Qu(){return 64}function z2(){return"circle"}function bu(U){var q=Math.sqrt(U/Ze);return"M0,"+q+"A"+q+","+q+" 0 1,1 0,"+-q+"A"+q+","+q+" 0 1,1 0,"+q+"Z"}var Up=l.map({circle:bu,cross:function(U){var q=Math.sqrt(U/5)/2;return"M"+-3*q+","+-q+"H"+-q+"V"+-3*q+"H"+q+"V"+-q+"H"+3*q+"V"+q+"H"+q+"V"+3*q+"H"+-q+"V"+q+"H"+-3*q+"Z"},diamond:function(U){var q=Math.sqrt(U/(2*Wp)),ve=q*Wp;return"M0,"+-q+"L"+ve+",0 0,"+q+" "+-ve+",0Z"},square:function(U){var q=Math.sqrt(U)/2;return"M"+-q+","+-q+"L"+q+","+-q+" "+q+","+q+" "+-q+","+q+"Z"},"triangle-down":function(U){var q=Math.sqrt(U/Dc),ve=q*Dc/2;return"M0,"+ve+"L"+q+","+-ve+" "+-q+","+-ve+"Z"},"triangle-up":function(U){var q=Math.sqrt(U/Dc),ve=q*Dc/2;return"M0,"+-ve+"L"+q+","+ve+" "+-q+","+ve+"Z"}});l.svg.symbolTypes=Up.keys();var Dc=Math.sqrt(3),Wp=Math.tan(30*Tt);le.transition=function(U){for(var q=Zf||++Gi,ve=vf(U),Ae=[],_e,Ie,Qe=pf||{time:Date.now(),ease:Kl,delay:0,duration:250},Ye=-1,rt=this.length;++Ye0;)Vt[--Rn].call(U,dn);if(en>=1)return Qe.event&&Qe.event.end.call(U,U.__data__,q),--Ie.count?delete Ie[Ae]:delete U[ve],1}Qe||(Ye=_e.time,rt=bo(Wt,0,Ye),Qe=Ie[Ae]={tween:new j,time:Ye,timer:rt,delay:_e.delay,duration:_e.duration,ease:_e.ease,index:q},_e=null,++Ie.count)}l.svg.axis=function(){var U=l.scale.linear(),q=ql,ve=6,Ae=6,_e=3,Ie=[10],Qe=null,Ye;function rt(yt){yt.each(function(){var bt=l.select(this),Vt=this.__chart__||U,Wt=this.__chart__=U.copy(),mn=Qe??(Wt.ticks?Wt.ticks.apply(Wt,Ie):Wt.domain()),An=Ye??(Wt.tickFormat?Wt.tickFormat.apply(Wt,Ie):ne),Kt=bt.selectAll(".tick").data(mn,Wt),en=Kt.enter().insert("g",".domain").attr("class","tick").style("opacity",vt),dn=l.transition(Kt.exit()).style("opacity",vt).remove(),Rn=l.transition(Kt.order()).style("opacity",1),Mn=Math.max(ve,0)+_e,vn,lr=Og(Wt),zr=bt.selectAll(".domain").data([0]),Jr=(zr.enter().append("path").attr("class","domain"),l.transition(zr));en.append("line"),en.append("text");var kr=en.select("line"),eo=Rn.select("line"),lo=Kt.select("text").text(An),Ko=en.select("text"),yo=Rn.select("text"),fo=q==="top"||q==="left"?-1:1,Ha,Vs,is,$r;if(q==="bottom"||q==="top"?(vn=bf,Ha="x",is="y",Vs="x2",$r="y2",lo.attr("dy",fo<0?"0em":".71em").style("text-anchor","middle"),Jr.attr("d","M"+lr[0]+","+fo*Ae+"V0H"+lr[1]+"V"+fo*Ae)):(vn=bc,Ha="y",is="x",Vs="y2",$r="x2",lo.attr("dy",".32em").style("text-anchor",fo<0?"end":"start"),Jr.attr("d","M"+fo*Ae+","+lr[0]+"H0V"+lr[1]+"H"+fo*Ae)),kr.attr($r,fo*ve),Ko.attr(is,fo*Mn),eo.attr(Vs,0).attr($r,fo*ve),yo.attr(Ha,0).attr(is,fo*Mn),Wt.rangeBand){var _o=Wt,sa=_o.rangeBand()/2;Vt=Wt=function(Ca){return _o(Ca)+sa}}else Vt.rangeBand?Vt=Wt:dn.call(vn,Wt,Vt);en.call(vn,Vt,Wt),Rn.call(vn,Wt,Wt)})}return rt.scale=function(yt){return arguments.length?(U=yt,rt):U},rt.orient=function(yt){return arguments.length?(q=yt in yf?yt+"":ql,rt):q},rt.ticks=function(){return arguments.length?(Ie=i(arguments),rt):Ie},rt.tickValues=function(yt){return arguments.length?(Qe=yt,rt):Qe},rt.tickFormat=function(yt){return arguments.length?(Ye=yt,rt):Ye},rt.tickSize=function(yt){var bt=arguments.length;return bt?(ve=+yt,Ae=+arguments[bt-1],rt):ve},rt.innerTickSize=function(yt){return arguments.length?(ve=+yt,rt):ve},rt.outerTickSize=function(yt){return arguments.length?(Ae=+yt,rt):Ae},rt.tickPadding=function(yt){return arguments.length?(_e=+yt,rt):_e},rt.tickSubdivide=function(){return arguments.length&&rt},rt};var ql="bottom",yf={top:1,right:1,bottom:1,left:1};function bf(U,q,ve){U.attr("transform",function(Ae){var _e=q(Ae);return"translate("+(isFinite(_e)?_e:ve(Ae))+",0)"})}function bc(U,q,ve){U.attr("transform",function(Ae){var _e=q(Ae);return"translate(0,"+(isFinite(_e)?_e:ve(Ae))+")"})}l.svg.brush=function(){var U=Oe(bt,"brushstart","brush","brushend"),q=null,ve=null,Ae=[0,0],_e=[0,0],Ie,Qe,Ye=!0,rt=!0,yt=bi[0];function bt(Kt){Kt.each(function(){var en=l.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",An).on("touchstart.brush",An),dn=en.selectAll(".background").data([0]);dn.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),en.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Rn=en.selectAll(".resize").data(yt,ne);Rn.exit().remove(),Rn.enter().append("g").attr("class",function(zr){return"resize "+zr}).style("cursor",function(zr){return Li[zr]}).append("rect").attr("x",function(zr){return/[ew]$/.test(zr)?-3:null}).attr("y",function(zr){return/^[ns]/.test(zr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Rn.style("display",bt.empty()?"none":null);var Mn=l.transition(en),vn=l.transition(dn),lr;q&&(lr=Og(q),vn.attr("x",lr[0]).attr("width",lr[1]-lr[0]),Wt(Mn)),ve&&(lr=Og(ve),vn.attr("y",lr[0]).attr("height",lr[1]-lr[0]),mn(Mn)),Vt(Mn)})}bt.event=function(Kt){Kt.each(function(){var en=U.of(this,arguments),dn={x:Ae,y:_e,i:Ie,j:Qe},Rn=this.__chart__||dn;this.__chart__=dn,Zf?l.select(this).transition().each("start.brush",function(){Ie=Rn.i,Qe=Rn.j,Ae=Rn.x,_e=Rn.y,en({type:"brushstart"})}).tween("brush:brush",function(){var Mn=Gu(Ae,dn.x),vn=Gu(_e,dn.y);return Ie=Qe=null,function(lr){Ae=dn.x=Mn(lr),_e=dn.y=vn(lr),en({type:"brush",mode:"resize"})}}).each("end.brush",function(){Ie=dn.i,Qe=dn.j,en({type:"brush",mode:"resize"}),en({type:"brushend"})}):(en({type:"brushstart"}),en({type:"brush",mode:"resize"}),en({type:"brushend"}))})};function Vt(Kt){Kt.selectAll(".resize").attr("transform",function(en){return"translate("+Ae[+/e$/.test(en)]+","+_e[+/^s/.test(en)]+")"})}function Wt(Kt){Kt.select(".extent").attr("x",Ae[0]),Kt.selectAll(".extent,.n>rect,.s>rect").attr("width",Ae[1]-Ae[0])}function mn(Kt){Kt.select(".extent").attr("y",_e[0]),Kt.selectAll(".extent,.e>rect,.w>rect").attr("height",_e[1]-_e[0])}function An(){var Kt=this,en=l.select(l.event.target),dn=U.of(Kt,arguments),Rn=l.select(Kt),Mn=en.datum(),vn=!/^(n|s)$/.test(Mn)&&q,lr=!/^(e|w)$/.test(Mn)&&ve,zr=en.classed("extent"),Jr=wn(Kt),kr,eo=l.mouse(Kt),lo,Ko=l.select(g(Kt)).on("keydown.brush",Ha).on("keyup.brush",Vs);if(l.event.changedTouches?Ko.on("touchmove.brush",is).on("touchend.brush",_o):Ko.on("mousemove.brush",is).on("mouseup.brush",_o),Rn.interrupt().selectAll("*").interrupt(),zr)eo[0]=Ae[0]-eo[0],eo[1]=_e[0]-eo[1];else if(Mn){var yo=+/w$/.test(Mn),fo=+/^n/.test(Mn);lo=[Ae[1-yo]-eo[0],_e[1-fo]-eo[1]],eo[0]=Ae[yo],eo[1]=_e[fo]}else l.event.altKey&&(kr=eo.slice());Rn.style("pointer-events","none").selectAll(".resize").style("display",null),l.select("body").style("cursor",en.style("cursor")),dn({type:"brushstart"}),is();function Ha(){l.event.keyCode==32&&(zr||(kr=null,eo[0]-=Ae[1],eo[1]-=_e[1],zr=2),Ne())}function Vs(){l.event.keyCode==32&&zr==2&&(eo[0]+=Ae[1],eo[1]+=_e[1],zr=0,Ne())}function is(){var sa=l.mouse(Kt),Ca=!1;lo&&(sa[0]+=lo[0],sa[1]+=lo[1]),zr||(l.event.altKey?(kr||(kr=[(Ae[0]+Ae[1])/2,(_e[0]+_e[1])/2]),eo[0]=Ae[+(sa[0]=1e21?F.toLocaleString("en").replace(/,/g,""):F.toString(10)}function h(F,H){if((j=(F=H?F.toExponential(H-1):F.toExponential()).indexOf("e"))<0)return null;var j,P=F.slice(0,j);return[P.length>1?P[0]+P.slice(2):P,+F.slice(j+1)]}function l(F){return F=h(Math.abs(F)),F?F[1]:NaN}function c(F,H){return function(j,P){for(var ee=j.length,J=[],K=0,ae=F[0],Q=0;ee>0&&ae>0&&(Q+ae+1>P&&(ae=Math.max(1,P-Q)),J.push(j.substring(ee-=ae,ee+ae)),!((Q+=ae+1)>P));)ae=F[K=(K+1)%F.length];return J.reverse().join(H)}}function i(F){return function(H){return H.replace(/[0-9]/g,function(j){return F[+j]})}}var u=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function d(F){if(!(H=u.exec(F)))throw new Error("invalid format: "+F);var H;return new g({fill:H[1],align:H[2],sign:H[3],symbol:H[4],zero:H[5],width:H[6],comma:H[7],precision:H[8]&&H[8].slice(1),trim:H[9],type:H[10]})}d.prototype=g.prototype;function g(F){this.fill=F.fill===void 0?" ":F.fill+"",this.align=F.align===void 0?">":F.align+"",this.sign=F.sign===void 0?"-":F.sign+"",this.symbol=F.symbol===void 0?"":F.symbol+"",this.zero=!!F.zero,this.width=F.width===void 0?void 0:+F.width,this.comma=!!F.comma,this.precision=F.precision===void 0?void 0:+F.precision,this.trim=!!F.trim,this.type=F.type===void 0?"":F.type+""}g.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function v(F){e:for(var H=F.length,j=1,P=-1,ee;j0&&(P=0);break}return P>0?F.slice(0,P)+F.slice(ee+1):F}var x;function C(F,H){var j=h(F,H);if(!j)return F+"";var P=j[0],ee=j[1],J=ee-(x=Math.max(-8,Math.min(8,Math.floor(ee/3)))*3)+1,K=P.length;return J===K?P:J>K?P+new Array(J-K+1).join("0"):J>0?P.slice(0,J)+"."+P.slice(J):"0."+new Array(1-J).join("0")+h(F,Math.max(0,H+J-1))[0]}function _(F,H){var j=h(F,H);if(!j)return F+"";var P=j[0],ee=j[1];return ee<0?"0."+new Array(-ee).join("0")+P:P.length>ee+1?P.slice(0,ee+1)+"."+P.slice(ee+1):P+new Array(ee-P.length+2).join("0")}var $={"%":function(F,H){return(F*100).toFixed(H)},b:function(F){return Math.round(F).toString(2)},c:function(F){return F+""},d:m,e:function(F,H){return F.toExponential(H)},f:function(F,H){return F.toFixed(H)},g:function(F,H){return F.toPrecision(H)},o:function(F){return Math.round(F).toString(8)},p:function(F,H){return _(F*100,H)},r:_,s:C,X:function(F){return Math.round(F).toString(16).toUpperCase()},x:function(F){return Math.round(F).toString(16)}};function S(F){return F}var O=Array.prototype.map,D=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function N(F){var H=F.grouping===void 0||F.thousands===void 0?S:c(O.call(F.grouping,Number),F.thousands+""),j=F.currency===void 0?"":F.currency[0]+"",P=F.currency===void 0?"":F.currency[1]+"",ee=F.decimal===void 0?".":F.decimal+"",J=F.numerals===void 0?S:i(O.call(F.numerals,String)),K=F.percent===void 0?"%":F.percent+"",ae=F.minus===void 0?"-":F.minus+"",Q=F.nan===void 0?"NaN":F.nan+"";function he(Se){Se=d(Se);var ce=Se.fill,ne=Se.align,fe=Se.sign,X=Se.symbol,ye=Se.zero,Ce=Se.width,$e=Se.comma,ke=Se.precision,Ne=Se.trim,Ve=Se.type;Ve==="n"?($e=!0,Ve="g"):$[Ve]||(ke===void 0&&(ke=12),Ne=!0,Ve="g"),(ye||ce==="0"&&ne==="=")&&(ye=!0,ce="0",ne="=");var Oe=X==="$"?j:X==="#"&&/[boxX]/.test(Ve)?"0"+Ve.toLowerCase():"",Fe=X==="$"?P:/[%p]/.test(Ve)?K:"",ie=$[Ve],we=/[defgprs%]/.test(Ve);ke=ke===void 0?6:/[gprs]/.test(Ve)?Math.max(1,Math.min(21,ke)):Math.max(0,Math.min(20,ke));function se(ue){var pe=Oe,le=Fe,Te,de,Me;if(Ve==="c")le=ie(ue)+le,ue="";else{ue=+ue;var Re=ue<0||1/ue<0;if(ue=isNaN(ue)?Q:ie(Math.abs(ue),ke),Ne&&(ue=v(ue)),Re&&+ue==0&&fe!=="+"&&(Re=!1),pe=(Re?fe==="("?fe:ae:fe==="-"||fe==="("?"":fe)+pe,le=(Ve==="s"?D[8+x/3]:"")+le+(Re&&fe==="("?")":""),we){for(Te=-1,de=ue.length;++TeMe||Me>57){le=(Me===46?ee+ue.slice(Te+1):ue.slice(Te))+le,ue=ue.slice(0,Te);break}}}$e&&!ye&&(ue=H(ue,1/0));var ze=pe.length+ue.length+le.length,We=ze>1)+pe+ue+le+We.slice(ze);break;default:ue=We+pe+ue+le;break}return J(ue)}return se.toString=function(){return Se+""},se}function ge(Se,ce){var ne=he((Se=d(Se),Se.type="f",Se)),fe=Math.max(-8,Math.min(8,Math.floor(l(ce)/3)))*3,X=Math.pow(10,-fe),ye=D[8+fe/3];return function(Ce){return ne(X*Ce)+ye}}return{format:he,formatPrefix:ge}}var M,k;R({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function R(F){return M=N(F),k=M.format,M.formatPrefix,M}},4096:function(L,A,s){s.d(A,{i$:function(){return Wn},Dq:function(){return x},g0:function(){return wn}});var m=s(8176),h=s(8480),l=s(9879),c=s(2301),i=s(4823),u=s(9791);function d(ft){if(0<=ft.y&&ft.y<100){var wt=new Date(-1,ft.m,ft.d,ft.H,ft.M,ft.S,ft.L);return wt.setFullYear(ft.y),wt}return new Date(ft.y,ft.m,ft.d,ft.H,ft.M,ft.S,ft.L)}function g(ft){if(0<=ft.y&&ft.y<100){var wt=new Date(Date.UTC(-1,ft.m,ft.d,ft.H,ft.M,ft.S,ft.L));return wt.setUTCFullYear(ft.y),wt}return new Date(Date.UTC(ft.y,ft.m,ft.d,ft.H,ft.M,ft.S,ft.L))}function v(ft,wt,vt){return{y:ft,m:wt,d:vt,H:0,M:0,S:0,L:0}}function x(ft){var wt=ft.dateTime,vt=ft.date,$t=ft.time,Ze=ft.periods,it=ft.days,ht=ft.shortDays,pt=ft.months,Tt=ft.shortMonths,Et=N(Ze),fn=M(Ze),tn=N(it),Zt=M(it),Dt=N(ht),un=M(ht),Un=N(pt),tr=M(pt),Er=N(Tt),zt=M(Tt),pr={a:He,A:De,b:St,B:kt,c:null,d:$e,e:$e,f:Fe,H:ke,I:Ne,j:Ve,L:Oe,m:ie,M:we,p:Pt,q:Bt,Q:an,s:Cn,S:se,u:ue,U:pe,V:le,w:Te,W:de,x:null,X:null,y:Me,Y:Re,Z:ze,"%":Zn},Gn={a:Ut,A:Ot,b:_t,B:qt,c:null,d:We,e:We,f:qe,H:ot,I:dt,j:Ge,L:Xe,m:gt,M:ut,p:cn,q:Qt,Q:an,s:Cn,S:tt,u:Ct,U:Gt,V:Yt,w:Nt,W:Ft,x:null,X:null,y:pn,Y:_n,Z:sn,"%":Zn},Ir={a:Ln,A:xr,b:or,B:wr,c:ro,d:Q,e:Q,f:fe,H:ge,I:ge,j:he,L:ne,m:ae,M:Se,p:_r,q:K,Q:ye,s:Ce,S:ce,u:R,U:F,V:H,w:k,W:j,x:vo,X:Cr,y:ee,Y:P,Z:J,"%":X};pr.x=Tr(vt,pr),pr.X=Tr($t,pr),pr.c=Tr(wt,pr),Gn.x=Tr(vt,Gn),Gn.X=Tr($t,Gn),Gn.c=Tr(wt,Gn);function Tr(nn,Sn){return function(bn){var gn=[],Qn=-1,Bn=0,Hr=nn.length,fr,Vr,ar;for(bn instanceof Date||(bn=new Date(+bn));++Qn53)return null;"w"in gn||(gn.w=1),"Z"in gn?(Bn=g(v(gn.y,0,1)),Hr=Bn.getUTCDay(),Bn=Hr>4||Hr===0?m.l6.ceil(Bn):(0,m.l6)(Bn),Bn=h.Z.offset(Bn,(gn.V-1)*7),gn.y=Bn.getUTCFullYear(),gn.m=Bn.getUTCMonth(),gn.d=Bn.getUTCDate()+(gn.w+6)%7):(Bn=d(v(gn.y,0,1)),Hr=Bn.getDay(),Bn=Hr>4||Hr===0?l.wA.ceil(Bn):(0,l.wA)(Bn),Bn=c.Z.offset(Bn,(gn.V-1)*7),gn.y=Bn.getFullYear(),gn.m=Bn.getMonth(),gn.d=Bn.getDate()+(gn.w+6)%7)}else("W"in gn||"U"in gn)&&("w"in gn||(gn.w="u"in gn?gn.u%7:"W"in gn?1:0),Hr="Z"in gn?g(v(gn.y,0,1)).getUTCDay():d(v(gn.y,0,1)).getDay(),gn.m=0,gn.d="W"in gn?(gn.w+6)%7+gn.W*7-(Hr+5)%7:gn.w+gn.U*7-(Hr+6)%7);return"Z"in gn?(gn.H+=gn.Z/100|0,gn.M+=gn.Z%100,g(gn)):d(gn)}}function Yr(nn,Sn,bn,gn){for(var Qn=0,Bn=Sn.length,Hr=bn.length,fr,Vr;Qn=Hr)return-1;if(fr=Sn.charCodeAt(Qn++),fr===37){if(fr=Sn.charAt(Qn++),Vr=Ir[fr in C?Sn.charAt(Qn++):fr],!Vr||(gn=Vr(nn,bn,gn))<0)return-1}else if(fr!=bn.charCodeAt(gn++))return-1}return gn}function _r(nn,Sn,bn){var gn=Et.exec(Sn.slice(bn));return gn?(nn.p=fn[gn[0].toLowerCase()],bn+gn[0].length):-1}function Ln(nn,Sn,bn){var gn=Dt.exec(Sn.slice(bn));return gn?(nn.w=un[gn[0].toLowerCase()],bn+gn[0].length):-1}function xr(nn,Sn,bn){var gn=tn.exec(Sn.slice(bn));return gn?(nn.w=Zt[gn[0].toLowerCase()],bn+gn[0].length):-1}function or(nn,Sn,bn){var gn=Er.exec(Sn.slice(bn));return gn?(nn.m=zt[gn[0].toLowerCase()],bn+gn[0].length):-1}function wr(nn,Sn,bn){var gn=Un.exec(Sn.slice(bn));return gn?(nn.m=tr[gn[0].toLowerCase()],bn+gn[0].length):-1}function ro(nn,Sn,bn){return Yr(nn,wt,Sn,bn)}function vo(nn,Sn,bn){return Yr(nn,vt,Sn,bn)}function Cr(nn,Sn,bn){return Yr(nn,$t,Sn,bn)}function He(nn){return ht[nn.getDay()]}function De(nn){return it[nn.getDay()]}function St(nn){return Tt[nn.getMonth()]}function kt(nn){return pt[nn.getMonth()]}function Pt(nn){return Ze[+(nn.getHours()>=12)]}function Bt(nn){return 1+~~(nn.getMonth()/3)}function Ut(nn){return ht[nn.getUTCDay()]}function Ot(nn){return it[nn.getUTCDay()]}function _t(nn){return Tt[nn.getUTCMonth()]}function qt(nn){return pt[nn.getUTCMonth()]}function cn(nn){return Ze[+(nn.getUTCHours()>=12)]}function Qt(nn){return 1+~~(nn.getUTCMonth()/3)}return{format:function(nn){var Sn=Tr(nn+="",pr);return Sn.toString=function(){return nn},Sn},parse:function(nn){var Sn=rr(nn+="",!1);return Sn.toString=function(){return nn},Sn},utcFormat:function(nn){var Sn=Tr(nn+="",Gn);return Sn.toString=function(){return nn},Sn},utcParse:function(nn){var Sn=rr(nn+="",!0);return Sn.toString=function(){return nn},Sn}}}var C={"-":"",_:" ",0:"0"},_=/^\s*\d+/,$=/^%/,S=/[\\^$*+?|[\]().{}]/g;function O(ft,wt,vt){var $t=ft<0?"-":"",Ze=($t?-ft:ft)+"",it=Ze.length;return $t+(it68?1900:2e3),vt+$t[0].length):-1}function J(ft,wt,vt){var $t=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(wt.slice(vt,vt+6));return $t?(ft.Z=$t[1]?0:-($t[2]+($t[3]||"00")),vt+$t[0].length):-1}function K(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+1));return $t?(ft.q=$t[0]*3-3,vt+$t[0].length):-1}function ae(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+2));return $t?(ft.m=$t[0]-1,vt+$t[0].length):-1}function Q(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+2));return $t?(ft.d=+$t[0],vt+$t[0].length):-1}function he(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+3));return $t?(ft.m=0,ft.d=+$t[0],vt+$t[0].length):-1}function ge(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+2));return $t?(ft.H=+$t[0],vt+$t[0].length):-1}function Se(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+2));return $t?(ft.M=+$t[0],vt+$t[0].length):-1}function ce(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+2));return $t?(ft.S=+$t[0],vt+$t[0].length):-1}function ne(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+3));return $t?(ft.L=+$t[0],vt+$t[0].length):-1}function fe(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+6));return $t?(ft.L=Math.floor($t[0]/1e3),vt+$t[0].length):-1}function X(ft,wt,vt){var $t=$.exec(wt.slice(vt,vt+1));return $t?vt+$t[0].length:-1}function ye(ft,wt,vt){var $t=_.exec(wt.slice(vt));return $t?(ft.Q=+$t[0],vt+$t[0].length):-1}function Ce(ft,wt,vt){var $t=_.exec(wt.slice(vt));return $t?(ft.s=+$t[0],vt+$t[0].length):-1}function $e(ft,wt){return O(ft.getDate(),wt,2)}function ke(ft,wt){return O(ft.getHours(),wt,2)}function Ne(ft,wt){return O(ft.getHours()%12||12,wt,2)}function Ve(ft,wt){return O(1+c.Z.count((0,i.Z)(ft),ft),wt,3)}function Oe(ft,wt){return O(ft.getMilliseconds(),wt,3)}function Fe(ft,wt){return Oe(ft,wt)+"000"}function ie(ft,wt){return O(ft.getMonth()+1,wt,2)}function we(ft,wt){return O(ft.getMinutes(),wt,2)}function se(ft,wt){return O(ft.getSeconds(),wt,2)}function ue(ft){var wt=ft.getDay();return wt===0?7:wt}function pe(ft,wt){return O(l.OM.count((0,i.Z)(ft)-1,ft),wt,2)}function le(ft,wt){var vt=ft.getDay();return ft=vt>=4||vt===0?(0,l.bL)(ft):l.bL.ceil(ft),O(l.bL.count((0,i.Z)(ft),ft)+((0,i.Z)(ft).getDay()===4),wt,2)}function Te(ft){return ft.getDay()}function de(ft,wt){return O(l.wA.count((0,i.Z)(ft)-1,ft),wt,2)}function Me(ft,wt){return O(ft.getFullYear()%100,wt,2)}function Re(ft,wt){return O(ft.getFullYear()%1e4,wt,4)}function ze(ft){var wt=ft.getTimezoneOffset();return(wt>0?"-":(wt*=-1,"+"))+O(wt/60|0,"0",2)+O(wt%60,"0",2)}function We(ft,wt){return O(ft.getUTCDate(),wt,2)}function ot(ft,wt){return O(ft.getUTCHours(),wt,2)}function dt(ft,wt){return O(ft.getUTCHours()%12||12,wt,2)}function Ge(ft,wt){return O(1+h.Z.count((0,u.Z)(ft),ft),wt,3)}function Xe(ft,wt){return O(ft.getUTCMilliseconds(),wt,3)}function qe(ft,wt){return Xe(ft,wt)+"000"}function gt(ft,wt){return O(ft.getUTCMonth()+1,wt,2)}function ut(ft,wt){return O(ft.getUTCMinutes(),wt,2)}function tt(ft,wt){return O(ft.getUTCSeconds(),wt,2)}function Ct(ft){var wt=ft.getUTCDay();return wt===0?7:wt}function Gt(ft,wt){return O(m.Ox.count((0,u.Z)(ft)-1,ft),wt,2)}function Yt(ft,wt){var vt=ft.getUTCDay();return ft=vt>=4||vt===0?(0,m.hB)(ft):m.hB.ceil(ft),O(m.hB.count((0,u.Z)(ft),ft)+((0,u.Z)(ft).getUTCDay()===4),wt,2)}function Nt(ft){return ft.getUTCDay()}function Ft(ft,wt){return O(m.l6.count((0,u.Z)(ft)-1,ft),wt,2)}function pn(ft,wt){return O(ft.getUTCFullYear()%100,wt,2)}function _n(ft,wt){return O(ft.getUTCFullYear()%1e4,wt,4)}function sn(){return"+0000"}function Zn(){return"%"}function an(ft){return+ft}function Cn(ft){return Math.floor(+ft/1e3)}var jn,Wn,wn;lt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function lt(ft){return jn=x(ft),Wn=jn.format,jn.parse,wn=jn.utcFormat,jn.utcParse,jn}},2301:function(L,A,s){s.d(A,{a:function(){return c}});var m=s(52),h=s(4263),l=(0,m.Z)(function(i){i.setHours(0,0,0,0)},function(i,u){i.setDate(i.getDate()+u)},function(i,u){return(u-i-(u.getTimezoneOffset()-i.getTimezoneOffset())*h.yB)/h.UD},function(i){return i.getDate()-1});A.Z=l;var c=l.range},4263:function(L,A,s){s.d(A,{UD:function(){return c},Y2:function(){return l},Ym:function(){return m},iM:function(){return i},yB:function(){return h}});var m=1e3,h=6e4,l=36e5,c=864e5,i=6048e5},1041:function(L,A,s){s.r(A),s.d(A,{timeDay:function(){return O.Z},timeDays:function(){return O.a},timeFriday:function(){return D.mC},timeFridays:function(){return D.b$},timeHour:function(){return $},timeHours:function(){return S},timeInterval:function(){return m.Z},timeMillisecond:function(){return l},timeMilliseconds:function(){return c},timeMinute:function(){return x},timeMinutes:function(){return C},timeMonday:function(){return D.wA},timeMondays:function(){return D.bJ},timeMonth:function(){return M},timeMonths:function(){return k},timeSaturday:function(){return D.EY},timeSaturdays:function(){return D.Ff},timeSecond:function(){return d},timeSeconds:function(){return g},timeSunday:function(){return D.OM},timeSundays:function(){return D.vm},timeThursday:function(){return D.bL},timeThursdays:function(){return D.$t},timeTuesday:function(){return D.sy},timeTuesdays:function(){return D.aU},timeWednesday:function(){return D.zg},timeWednesdays:function(){return D.Ld},timeWeek:function(){return D.OM},timeWeeks:function(){return D.vm},timeYear:function(){return R.Z},timeYears:function(){return R.g},utcDay:function(){return K.Z},utcDays:function(){return K.y},utcFriday:function(){return ae.QQ},utcFridays:function(){return ae.fz},utcHour:function(){return ee},utcHours:function(){return J},utcMillisecond:function(){return l},utcMilliseconds:function(){return c},utcMinute:function(){return H},utcMinutes:function(){return j},utcMonday:function(){return ae.l6},utcMondays:function(){return ae.$3},utcMonth:function(){return he},utcMonths:function(){return ge},utcSaturday:function(){return ae.g4},utcSaturdays:function(){return ae.Q_},utcSecond:function(){return d},utcSeconds:function(){return g},utcSunday:function(){return ae.Ox},utcSundays:function(){return ae.SU},utcThursday:function(){return ae.hB},utcThursdays:function(){return ae.xj},utcTuesday:function(){return ae.J1},utcTuesdays:function(){return ae.DK},utcWednesday:function(){return ae.b3},utcWednesdays:function(){return ae.uy},utcWeek:function(){return ae.Ox},utcWeeks:function(){return ae.SU},utcYear:function(){return Se.Z},utcYears:function(){return Se.D}});var m=s(52),h=(0,m.Z)(function(){},function(ce,ne){ce.setTime(+ce+ne)},function(ce,ne){return ne-ce});h.every=function(ce){return ce=Math.floor(ce),!isFinite(ce)||!(ce>0)?null:ce>1?(0,m.Z)(function(ne){ne.setTime(Math.floor(ne/ce)*ce)},function(ne,fe){ne.setTime(+ne+fe*ce)},function(ne,fe){return(fe-ne)/ce}):h};var l=h,c=h.range,i=s(4263),u=(0,m.Z)(function(ce){ce.setTime(ce-ce.getMilliseconds())},function(ce,ne){ce.setTime(+ce+ne*i.Ym)},function(ce,ne){return(ne-ce)/i.Ym},function(ce){return ce.getUTCSeconds()}),d=u,g=u.range,v=(0,m.Z)(function(ce){ce.setTime(ce-ce.getMilliseconds()-ce.getSeconds()*i.Ym)},function(ce,ne){ce.setTime(+ce+ne*i.yB)},function(ce,ne){return(ne-ce)/i.yB},function(ce){return ce.getMinutes()}),x=v,C=v.range,_=(0,m.Z)(function(ce){ce.setTime(ce-ce.getMilliseconds()-ce.getSeconds()*i.Ym-ce.getMinutes()*i.yB)},function(ce,ne){ce.setTime(+ce+ne*i.Y2)},function(ce,ne){return(ne-ce)/i.Y2},function(ce){return ce.getHours()}),$=_,S=_.range,O=s(2301),D=s(9879),N=(0,m.Z)(function(ce){ce.setDate(1),ce.setHours(0,0,0,0)},function(ce,ne){ce.setMonth(ce.getMonth()+ne)},function(ce,ne){return ne.getMonth()-ce.getMonth()+(ne.getFullYear()-ce.getFullYear())*12},function(ce){return ce.getMonth()}),M=N,k=N.range,R=s(4823),F=(0,m.Z)(function(ce){ce.setUTCSeconds(0,0)},function(ce,ne){ce.setTime(+ce+ne*i.yB)},function(ce,ne){return(ne-ce)/i.yB},function(ce){return ce.getUTCMinutes()}),H=F,j=F.range,P=(0,m.Z)(function(ce){ce.setUTCMinutes(0,0,0)},function(ce,ne){ce.setTime(+ce+ne*i.Y2)},function(ce,ne){return(ne-ce)/i.Y2},function(ce){return ce.getUTCHours()}),ee=P,J=P.range,K=s(8480),ae=s(8176),Q=(0,m.Z)(function(ce){ce.setUTCDate(1),ce.setUTCHours(0,0,0,0)},function(ce,ne){ce.setUTCMonth(ce.getUTCMonth()+ne)},function(ce,ne){return ne.getUTCMonth()-ce.getUTCMonth()+(ne.getUTCFullYear()-ce.getUTCFullYear())*12},function(ce){return ce.getUTCMonth()}),he=Q,ge=Q.range,Se=s(9791)},52:function(L,A,s){s.d(A,{Z:function(){return l}});var m=new Date,h=new Date;function l(c,i,u,d){function g(v){return c(v=arguments.length===0?new Date:new Date(+v)),v}return g.floor=function(v){return c(v=new Date(+v)),v},g.ceil=function(v){return c(v=new Date(v-1)),i(v,1),c(v),v},g.round=function(v){var x=g(v),C=g.ceil(v);return v-x0))return _;do _.push($=new Date(+v)),i(v,C),c(v);while($=x)for(;c(x),!v(x);)x.setTime(x-1)},function(x,C){if(x>=x)if(C<0)for(;++C<=0;)for(;i(x,-1),!v(x););else for(;--C>=0;)for(;i(x,1),!v(x););})},u&&(g.count=function(v,x){return m.setTime(+v),h.setTime(+x),c(m),c(h),Math.floor(u(m,h))},g.every=function(v){return v=Math.floor(v),!isFinite(v)||!(v>0)?null:v>1?g.filter(d?function(x){return d(x)%v===0}:function(x){return g.count(0,x)%v===0}):g}),g}},8480:function(L,A,s){s.d(A,{y:function(){return c}});var m=s(52),h=s(4263),l=(0,m.Z)(function(i){i.setUTCHours(0,0,0,0)},function(i,u){i.setUTCDate(i.getUTCDate()+u)},function(i,u){return(u-i)/h.UD},function(i){return i.getUTCDate()-1});A.Z=l;var c=l.range},8176:function(L,A,s){s.d(A,{$3:function(){return _},DK:function(){return $},J1:function(){return u},Ox:function(){return c},QQ:function(){return v},Q_:function(){return N},SU:function(){return C},b3:function(){return d},fz:function(){return D},g4:function(){return x},hB:function(){return g},l6:function(){return i},uy:function(){return S},xj:function(){return O}});var m=s(52),h=s(4263);function l(M){return(0,m.Z)(function(k){k.setUTCDate(k.getUTCDate()-(k.getUTCDay()+7-M)%7),k.setUTCHours(0,0,0,0)},function(k,R){k.setUTCDate(k.getUTCDate()+R*7)},function(k,R){return(R-k)/h.iM})}var c=l(0),i=l(1),u=l(2),d=l(3),g=l(4),v=l(5),x=l(6),C=c.range,_=i.range,$=u.range,S=d.range,O=g.range,D=v.range,N=x.range},9791:function(L,A,s){s.d(A,{D:function(){return l}});var m=s(52),h=(0,m.Z)(function(c){c.setUTCMonth(0,1),c.setUTCHours(0,0,0,0)},function(c,i){c.setUTCFullYear(c.getUTCFullYear()+i)},function(c,i){return i.getUTCFullYear()-c.getUTCFullYear()},function(c){return c.getUTCFullYear()});h.every=function(c){return!isFinite(c=Math.floor(c))||!(c>0)?null:(0,m.Z)(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/c)*c),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,u){i.setUTCFullYear(i.getUTCFullYear()+u*c)})},A.Z=h;var l=h.range},9879:function(L,A,s){s.d(A,{$t:function(){return O},EY:function(){return x},Ff:function(){return N},Ld:function(){return S},OM:function(){return c},aU:function(){return $},b$:function(){return D},bJ:function(){return _},bL:function(){return g},mC:function(){return v},sy:function(){return u},vm:function(){return C},wA:function(){return i},zg:function(){return d}});var m=s(52),h=s(4263);function l(M){return(0,m.Z)(function(k){k.setDate(k.getDate()-(k.getDay()+7-M)%7),k.setHours(0,0,0,0)},function(k,R){k.setDate(k.getDate()+R*7)},function(k,R){return(R-k-(R.getTimezoneOffset()-k.getTimezoneOffset())*h.yB)/h.iM})}var c=l(0),i=l(1),u=l(2),d=l(3),g=l(4),v=l(5),x=l(6),C=c.range,_=i.range,$=u.range,S=d.range,O=g.range,D=v.range,N=x.range},4823:function(L,A,s){s.d(A,{g:function(){return l}});var m=s(52),h=(0,m.Z)(function(c){c.setMonth(0,1),c.setHours(0,0,0,0)},function(c,i){c.setFullYear(c.getFullYear()+i)},function(c,i){return i.getFullYear()-c.getFullYear()},function(c){return c.getFullYear()});h.every=function(c){return!isFinite(c=Math.floor(c))||!(c>0)?null:(0,m.Z)(function(i){i.setFullYear(Math.floor(i.getFullYear()/c)*c),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,u){i.setFullYear(i.getFullYear()+u*c)})},A.Z=h;var l=h.range},5398:function(L){var A=typeof Reflect=="object"?Reflect:null,s=A&&typeof A.apply=="function"?A.apply:function(R,F,H){return Function.prototype.apply.call(R,F,H)},m;A&&typeof A.ownKeys=="function"?m=A.ownKeys:Object.getOwnPropertySymbols?m=function(R){return Object.getOwnPropertyNames(R).concat(Object.getOwnPropertySymbols(R))}:m=function(R){return Object.getOwnPropertyNames(R)};function h(k){console&&console.warn&&console.warn(k)}var l=Number.isNaN||function(R){return R!==R};function c(){c.init.call(this)}L.exports=c,L.exports.once=D,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var i=10;function u(k){if(typeof k!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof k)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(k){if(typeof k!="number"||k<0||l(k))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+k+".");i=k}}),c.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(R){if(typeof R!="number"||R<0||l(R))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+R+".");return this._maxListeners=R,this};function d(k){return k._maxListeners===void 0?c.defaultMaxListeners:k._maxListeners}c.prototype.getMaxListeners=function(){return d(this)},c.prototype.emit=function(R){for(var F=[],H=1;H0&&(ee=F[0]),ee instanceof Error)throw ee;var J=new Error("Unhandled error."+(ee?" ("+ee.message+")":""));throw J.context=ee,J}var K=P[R];if(K===void 0)return!1;if(typeof K=="function")s(K,this,F);else for(var ae=K.length,Q=$(K,ae),H=0;H0&&ee.length>j&&!ee.warned){ee.warned=!0;var J=new Error("Possible EventEmitter memory leak detected. "+ee.length+" "+String(R)+" listeners added. Use emitter.setMaxListeners() to increase limit");J.name="MaxListenersExceededWarning",J.emitter=k,J.type=R,J.count=ee.length,h(J)}return k}c.prototype.addListener=function(R,F){return g(this,R,F,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(R,F){return g(this,R,F,!0)};function v(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function x(k,R,F){var H={fired:!1,wrapFn:void 0,target:k,type:R,listener:F},j=v.bind(H);return j.listener=F,H.wrapFn=j,j}c.prototype.once=function(R,F){return u(F),this.on(R,x(this,R,F)),this},c.prototype.prependOnceListener=function(R,F){return u(F),this.prependListener(R,x(this,R,F)),this},c.prototype.removeListener=function(R,F){var H,j,P,ee,J;if(u(F),j=this._events,j===void 0)return this;if(H=j[R],H===void 0)return this;if(H===F||H.listener===F)--this._eventsCount===0?this._events=Object.create(null):(delete j[R],j.removeListener&&this.emit("removeListener",R,H.listener||F));else if(typeof H!="function"){for(P=-1,ee=H.length-1;ee>=0;ee--)if(H[ee]===F||H[ee].listener===F){J=H[ee].listener,P=ee;break}if(P<0)return this;P===0?H.shift():S(H,P),H.length===1&&(j[R]=H[0]),j.removeListener!==void 0&&this.emit("removeListener",R,J||F)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(R){var F,H,j;if(H=this._events,H===void 0)return this;if(H.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):H[R]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete H[R]),this;if(arguments.length===0){var P=Object.keys(H),ee;for(j=0;j=0;j--)this.removeListener(R,F[j]);return this};function C(k,R,F){var H=k._events;if(H===void 0)return[];var j=H[R];return j===void 0?[]:typeof j=="function"?F?[j.listener||j]:[j]:F?O(j):$(j,j.length)}c.prototype.listeners=function(R){return C(this,R,!0)},c.prototype.rawListeners=function(R){return C(this,R,!1)},c.listenerCount=function(k,R){return typeof k.listenerCount=="function"?k.listenerCount(R):_.call(k,R)},c.prototype.listenerCount=_;function _(k){var R=this._events;if(R!==void 0){var F=R[k];if(typeof F=="function")return 1;if(F!==void 0)return F.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?m(this._events):[]};function $(k,R){for(var F=new Array(R),H=0;H13)&&m!==32&&m!==133&&m!==160&&m!==5760&&m!==6158&&(m<8192||m>8205)&&m!==8232&&m!==8233&&m!==8239&&m!==8287&&m!==8288&&m!==12288&&m!==65279)return!1;return!0}},8956:function(L){var A={left:0,top:0};L.exports=s;function s(h,l,c){l=l||h.currentTarget||h.srcElement,Array.isArray(c)||(c=[0,0]);var i=h.clientX||0,u=h.clientY||0,d=m(l);return c[0]=i-d.left,c[1]=u-d.top,c}function m(h){return h===window||h===document||h===document.body?A:h.getBoundingClientRect()}},7417:function(L,A,s){var m;/*! Native Promise Only - v0.8.1 (c) Kyle Simpson - MIT License: http://getify.mit-license.org -*/(function(l,c,i){c[l]=c[l]||i(),L.exports?L.exports=c[l]:(m=(function(){return c[l]}).call(A,s,A,L),m!==void 0&&(L.exports=m))})("Promise",typeof s.g<"u"?s.g:this,function(){var l,c,i,u=Object.prototype.toString,d=typeof setImmediate<"u"?function(R){return setImmediate(R)}:setTimeout;try{Object.defineProperty({},"x",{}),l=function(R,F,H,j){return Object.defineProperty(R,F,{value:H,writable:!0,configurable:j!==!1})}}catch{l=function(F,H,j){return F[H]=j,F}}i=function(){var R,F,H;function j(P,ee){this.fn=P,this.self=ee,this.next=void 0}return{add:function(ee,J){H=new j(ee,J),F?F.next=H:R=H,F=H,H=void 0},drain:function(){var ee=R;for(R=F=c=void 0;ee;)ee.fn.call(ee.self),ee=ee.next}}}();function g(k,R){i.add(k,R),c||(c=d(i.drain))}function v(k){var R,F=typeof k;return k!=null&&(F=="object"||F=="function")&&(R=k.then),typeof R=="function"?R:!1}function x(){for(var k=0;k0&&g(x,F))}catch(H){$.call(new O(F),H)}}}function $(k){var R=this;R.triggered||(R.triggered=!0,R.def&&(R=R.def),R.msg=k,R.state=2,R.chain.length>0&&g(x,R))}function S(k,R,F,H){for(var j=0;j2&&(i.push([d].concat(g.splice(0,2))),v="l",d=d=="m"?"l":"L");;){if(g.length==A[v])return g.unshift(d),i.push(g);if(g.lengthi!=$>i&&c<(_-x)*(i-C)/($-C)+x;S&&(u=!u)}return u}},2142:function(L,A,s){/* - * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc - * @license MIT - * @preserve Project Home: https://github.com/voidqk/polybooljs - */var m=s(9444),h=s(9023),l=s(7263),c=s(1328),i=s(5968),u=s(670),d=!1,g=h(),v;v={buildLog:function(C){return C===!0?d=m():C===!1&&(d=!1),d===!1?!1:d.list},epsilon:function(C){return g.epsilon(C)},segments:function(C){var _=l(!0,g,d);return C.regions.forEach(_.addRegion),{segments:_.calculate(C.inverted),inverted:C.inverted}},combine:function(C,_){var $=l(!1,g,d);return{combined:$.calculate(C.segments,C.inverted,_.segments,_.inverted),inverted1:C.inverted,inverted2:_.inverted}},selectUnion:function(C){return{segments:i.union(C.combined,d),inverted:C.inverted1||C.inverted2}},selectIntersect:function(C){return{segments:i.intersect(C.combined,d),inverted:C.inverted1&&C.inverted2}},selectDifference:function(C){return{segments:i.difference(C.combined,d),inverted:C.inverted1&&!C.inverted2}},selectDifferenceRev:function(C){return{segments:i.differenceRev(C.combined,d),inverted:!C.inverted1&&C.inverted2}},selectXor:function(C){return{segments:i.xor(C.combined,d),inverted:C.inverted1!==C.inverted2}},polygon:function(C){return{regions:c(C.segments,g,d),inverted:C.inverted}},polygonFromGeoJSON:function(C){return u.toPolygon(v,C)},polygonToGeoJSON:function(C){return u.fromPolygon(v,g,C)},union:function(C,_){return x(C,_,v.selectUnion)},intersect:function(C,_){return x(C,_,v.selectIntersect)},difference:function(C,_){return x(C,_,v.selectDifference)},differenceRev:function(C,_){return x(C,_,v.selectDifferenceRev)},xor:function(C,_){return x(C,_,v.selectXor)}};function x(C,_,$){var S=v.segments(C),O=v.segments(_),D=v.combine(S,O),N=$(D);return v.polygon(N)}typeof window=="object"&&(window.PolyBool=v),L.exports=v},9444:function(L){function A(){var s,m=0,h=!1;function l(c,i){return s.list.push({type:c,data:i?JSON.parse(JSON.stringify(i)):void 0}),s}return s={list:[],segmentId:function(){return m++},checkIntersection:function(c,i){return l("check",{seg1:c,seg2:i})},segmentChop:function(c,i){return l("div_seg",{seg:c,pt:i}),l("chop",{seg:c,pt:i})},statusRemove:function(c){return l("pop_seg",{seg:c})},segmentUpdate:function(c){return l("seg_update",{seg:c})},segmentNew:function(c,i){return l("new_seg",{seg:c,primary:i})},segmentRemove:function(c){return l("rem_seg",{seg:c})},tempStatus:function(c,i,u){return l("temp_status",{seg:c,above:i,below:u})},rewind:function(c){return l("rewind",{seg:c})},status:function(c,i,u){return l("status",{seg:c,above:i,below:u})},vert:function(c){return c===h?s:(h=c,l("vert",{x:c}))},log:function(c){return typeof c!="string"&&(c=JSON.stringify(c,!1," ")),l("log",{txt:c})},reset:function(){return l("reset")},selected:function(c){return l("selected",{segs:c})},chainStart:function(c){return l("chain_start",{seg:c})},chainRemoveHead:function(c,i){return l("chain_rem_head",{index:c,pt:i})},chainRemoveTail:function(c,i){return l("chain_rem_tail",{index:c,pt:i})},chainNew:function(c,i){return l("chain_new",{pt1:c,pt2:i})},chainMatch:function(c){return l("chain_match",{index:c})},chainClose:function(c){return l("chain_close",{index:c})},chainAddHead:function(c,i){return l("chain_add_head",{index:c,pt:i})},chainAddTail:function(c,i){return l("chain_add_tail",{index:c,pt:i})},chainConnect:function(c,i){return l("chain_con",{index1:c,index2:i})},chainReverse:function(c){return l("chain_rev",{index:c})},chainJoin:function(c,i){return l("chain_join",{index1:c,index2:i})},done:function(){return l("done")}},s}L.exports=A},9023:function(L){function A(s){typeof s!="number"&&(s=1e-10);var m={epsilon:function(h){return typeof h=="number"&&(s=h),s},pointAboveOrOnLine:function(h,l,c){var i=l[0],u=l[1],d=c[0],g=c[1],v=h[0],x=h[1];return(d-i)*(x-u)-(g-u)*(v-i)>=-s},pointBetween:function(h,l,c){var i=h[1]-l[1],u=c[0]-l[0],d=h[0]-l[0],g=c[1]-l[1],v=d*u+i*g;if(v-s)},pointsSameX:function(h,l){return Math.abs(h[0]-l[0])s!=d-i>s&&(u-x)*(i-C)/(d-C)+x-c>s&&(g=!g),u=x,d=C}return g}};return m}L.exports=A},670:function(L){var A={toPolygon:function(s,m){function h(i){if(i.length<=0)return s.segments({inverted:!1,regions:[]});function u(v){var x=v.slice(0,v.length-1);return s.segments({inverted:!1,regions:[x]})}for(var d=u(i[0]),g=1;g0})}function H(ce,ne){var fe=ce.seg,X=ne.seg,ye=fe.start,Ce=fe.end,$e=X.start,ke=X.end;i&&i.checkIntersection(fe,X);var Ne=c.linesIntersect(ye,Ce,$e,ke);if(Ne===!1){if(!c.pointsCollinear(ye,Ce,$e)||c.pointsSame(ye,ke)||c.pointsSame(Ce,$e))return!1;var Ve=c.pointsSame(ye,$e),Oe=c.pointsSame(Ce,ke);if(Ve&&Oe)return ne;var Fe=!Ve&&c.pointBetween(ye,$e,ke),ie=!Oe&&c.pointBetween(Ce,$e,ke);if(Ve)return ie?O(ne,Ce):O(ce,ke),ne;Fe&&(Oe||(ie?O(ne,Ce):O(ce,ke)),O(ne,ye))}else Ne.alongA===0&&(Ne.alongB===-1?O(ce,$e):Ne.alongB===0?O(ce,Ne.pt):Ne.alongB===1&&O(ce,ke)),Ne.alongB===0&&(Ne.alongA===-1?O(ne,ye):Ne.alongA===0?O(ne,Ne.pt):Ne.alongA===1&&O(ne,Ce));return!1}for(var j=[];!g.isEmpty();){var P=g.getHead();if(i&&i.vert(P.pt[0]),P.isStart){let ce=function(){if(J){var ne=H(P,J);if(ne)return ne}return K?H(P,K):!1};i&&i.segmentNew(P.seg,P.primary);var ee=F(P),J=ee.before?ee.before.ev:null,K=ee.after?ee.after.ev:null;i&&i.tempStatus(P.seg,J?J.seg:!1,K?K.seg:!1);var ae=ce();if(ae){if(l){var Q;P.seg.myFill.below===null?Q=!0:Q=P.seg.myFill.above!==P.seg.myFill.below,Q&&(ae.seg.myFill.above=!ae.seg.myFill.above)}else ae.seg.otherFill=P.seg.myFill;i&&i.segmentUpdate(ae.seg),P.other.remove(),P.remove()}if(g.getHead()!==P){i&&i.rewind(P.seg);continue}if(l){var Q;P.seg.myFill.below===null?Q=!0:Q=P.seg.myFill.above!==P.seg.myFill.below,K?P.seg.myFill.below=K.seg.myFill.above:P.seg.myFill.below=N,Q?P.seg.myFill.above=!P.seg.myFill.below:P.seg.myFill.above=P.seg.myFill.below}else if(P.seg.otherFill===null){var he;K?P.primary===K.primary?he=K.seg.otherFill.above:he=K.seg.myFill.above:he=P.primary?M:N,P.seg.otherFill={above:he,below:he}}i&&i.status(P.seg,J?J.seg:!1,K?K.seg:!1),P.other.status=ee.insert(m.node({ev:P}))}else{var ge=P.status;if(ge===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(k.exists(ge.prev)&&k.exists(ge.next)&&H(ge.prev.ev,ge.next.ev),i&&i.statusRemove(ge.ev.seg),ge.remove(),!P.primary){var Se=P.seg.myFill;P.seg.myFill=P.seg.otherFill,P.seg.otherFill=Se}j.push(P.seg)}g.getHead().remove()}return i&&i.done(),j}return l?{addRegion:function(N){for(var M,k=N[N.length-1],R=0;R=0,Re=!Te&&Me&&(le==="hex"||le==="hex6"||le==="hex3"||le==="hex4"||le==="hex8"||le==="name");return Re?le==="name"&&this._a===0?this.toName():this.toRgbString():(le==="rgb"&&(de=this.toRgbString()),le==="prgb"&&(de=this.toPercentageRgbString()),(le==="hex"||le==="hex6")&&(de=this.toHexString()),le==="hex3"&&(de=this.toHexString(!0)),le==="hex4"&&(de=this.toHex8String(!0)),le==="hex8"&&(de=this.toHex8String()),le==="name"&&(de=this.toName()),le==="hsl"&&(de=this.toHslString()),le==="hsv"&&(de=this.toHsvString()),de||this.toHexString())},clone:function(){return x(this.toString())},_applyModification:function(le,Te){var de=le.apply(null,[this].concat([].slice.call(Te)));return this._r=de._r,this._g=de._g,this._b=de._b,this.setAlpha(de._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(ee,arguments)},desaturate:function(){return this._applyModification(R,arguments)},saturate:function(){return this._applyModification(F,arguments)},greyscale:function(){return this._applyModification(H,arguments)},spin:function(){return this._applyModification(J,arguments)},_applyCombination:function(le,Te){return le.apply(null,[this].concat([].slice.call(Te)))},analogous:function(){return this._applyCombination(ge,arguments)},complement:function(){return this._applyCombination(K,arguments)},monochromatic:function(){return this._applyCombination(Se,arguments)},splitcomplement:function(){return this._applyCombination(he,arguments)},triad:function(){return this._applyCombination(ae,arguments)},tetrad:function(){return this._applyCombination(Q,arguments)}},x.fromRatio=function(le,Te){if(typeof le=="object"){var de={};for(var Me in le)le.hasOwnProperty(Me)&&(Me==="a"?de[Me]=le[Me]:de[Me]=Oe(le[Me]));le=de}return x(le,Te)};function C(le){var Te={r:0,g:0,b:0},de=1,Me=null,Re=null,ze=null,We=!1,ot=!1;return typeof le=="string"&&(le=ue(le)),typeof le=="object"&&(se(le.r)&&se(le.g)&&se(le.b)?(Te=_(le.r,le.g,le.b),We=!0,ot=String(le.r).substr(-1)==="%"?"prgb":"rgb"):se(le.h)&&se(le.s)&&se(le.v)?(Me=Oe(le.s),Re=Oe(le.v),Te=D(le.h,Me,Re),We=!0,ot="hsv"):se(le.h)&&se(le.s)&&se(le.l)&&(Me=Oe(le.s),ze=Oe(le.l),Te=S(le.h,Me,ze),We=!0,ot="hsl"),le.hasOwnProperty("a")&&(de=le.a)),de=X(de),{ok:We,format:le.format||ot,r:d(255,g(Te.r,0)),g:d(255,g(Te.g,0)),b:d(255,g(Te.b,0)),a:de}}function _(le,Te,de){return{r:ye(le,255)*255,g:ye(Te,255)*255,b:ye(de,255)*255}}function $(le,Te,de){le=ye(le,255),Te=ye(Te,255),de=ye(de,255);var Me=g(le,Te,de),Re=d(le,Te,de),ze,We,ot=(Me+Re)/2;if(Me==Re)ze=We=0;else{var dt=Me-Re;switch(We=ot>.5?dt/(2-Me-Re):dt/(Me+Re),Me){case le:ze=(Te-de)/dt+(Te1&&(qe-=1),qe<.16666666666666666?Ge+(Xe-Ge)*6*qe:qe<.5?Xe:qe<.6666666666666666?Ge+(Xe-Ge)*(.6666666666666666-qe)*6:Ge}if(Te===0)Me=Re=ze=de;else{var ot=de<.5?de*(1+Te):de+Te-de*Te,dt=2*de-ot;Me=We(dt,ot,le+.3333333333333333),Re=We(dt,ot,le),ze=We(dt,ot,le-.3333333333333333)}return{r:Me*255,g:Re*255,b:ze*255}}function O(le,Te,de){le=ye(le,255),Te=ye(Te,255),de=ye(de,255);var Me=g(le,Te,de),Re=d(le,Te,de),ze,We,ot=Me,dt=Me-Re;if(We=Me===0?0:dt/Me,Me==Re)ze=0;else{switch(Me){case le:ze=(Te-de)/dt+(Te>1)+720)%360;--Te;)Me.h=(Me.h+Re)%360,ze.push(x(Me));return ze}function Se(le,Te){Te=Te||6;for(var de=x(le).toHsv(),Me=de.h,Re=de.s,ze=de.v,We=[],ot=1/Te;Te--;)We.push(x({h:Me,s:Re,v:ze})),ze=(ze+ot)%1;return We}x.mix=function(le,Te,de){de=de===0?0:de||50;var Me=x(le).toRgb(),Re=x(Te).toRgb(),ze=de/100,We={r:(Re.r-Me.r)*ze+Me.r,g:(Re.g-Me.g)*ze+Me.g,b:(Re.b-Me.b)*ze+Me.b,a:(Re.a-Me.a)*ze+Me.a};return x(We)},x.readability=function(le,Te){var de=x(le),Me=x(Te);return(h.max(de.getLuminance(),Me.getLuminance())+.05)/(h.min(de.getLuminance(),Me.getLuminance())+.05)},x.isReadable=function(le,Te,de){var Me=x.readability(le,Te),Re,ze;switch(ze=!1,Re=pe(de),Re.level+Re.size){case"AAsmall":case"AAAlarge":ze=Me>=4.5;break;case"AAlarge":ze=Me>=3;break;case"AAAsmall":ze=Me>=7;break}return ze},x.mostReadable=function(le,Te,de){var Me=null,Re=0,ze,We,ot,dt;de=de||{},We=de.includeFallbackColors,ot=de.level,dt=de.size;for(var Ge=0;GeRe&&(Re=ze,Me=x(Te[Ge]));return x.isReadable(le,Me,{level:ot,size:dt})||!We?Me:(de.includeFallbackColors=!1,x.mostReadable(le,["#fff","#000"],de))};var ce=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ne=x.hexNames=fe(ce);function fe(le){var Te={};for(var de in le)le.hasOwnProperty(de)&&(Te[le[de]]=de);return Te}function X(le){return le=parseFloat(le),(isNaN(le)||le<0||le>1)&&(le=1),le}function ye(le,Te){ke(le)&&(le="100%");var de=Ne(le);return le=d(Te,g(0,parseFloat(le))),de&&(le=parseInt(le*Te,10)/100),h.abs(le-Te)<1e-6?1:le%Te/parseFloat(Te)}function Ce(le){return d(1,g(0,le))}function $e(le){return parseInt(le,16)}function ke(le){return typeof le=="string"&&le.indexOf(".")!=-1&&parseFloat(le)===1}function Ne(le){return typeof le=="string"&&le.indexOf("%")!=-1}function Ve(le){return le.length==1?"0"+le:""+le}function Oe(le){return le<=1&&(le=le*100+"%"),le}function Fe(le){return h.round(parseFloat(le)*255).toString(16)}function ie(le){return $e(le)/255}var we=function(){var le="[-\\+]?\\d+%?",Te="[-\\+]?\\d*\\.\\d+%?",de="(?:"+Te+")|(?:"+le+")",Me="[\\s|\\(]+("+de+")[,|\\s]+("+de+")[,|\\s]+("+de+")\\s*\\)?",Re="[\\s|\\(]+("+de+")[,|\\s]+("+de+")[,|\\s]+("+de+")[,|\\s]+("+de+")\\s*\\)?";return{CSS_UNIT:new RegExp(de),rgb:new RegExp("rgb"+Me),rgba:new RegExp("rgba"+Re),hsl:new RegExp("hsl"+Me),hsla:new RegExp("hsla"+Re),hsv:new RegExp("hsv"+Me),hsva:new RegExp("hsva"+Re),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function se(le){return!!we.CSS_UNIT.exec(le)}function ue(le){le=le.replace(l,"").replace(c,"").toLowerCase();var Te=!1;if(ce[le])le=ce[le],Te=!0;else if(le=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var de;return(de=we.rgb.exec(le))?{r:de[1],g:de[2],b:de[3]}:(de=we.rgba.exec(le))?{r:de[1],g:de[2],b:de[3],a:de[4]}:(de=we.hsl.exec(le))?{h:de[1],s:de[2],l:de[3]}:(de=we.hsla.exec(le))?{h:de[1],s:de[2],l:de[3],a:de[4]}:(de=we.hsv.exec(le))?{h:de[1],s:de[2],v:de[3]}:(de=we.hsva.exec(le))?{h:de[1],s:de[2],v:de[3],a:de[4]}:(de=we.hex8.exec(le))?{r:$e(de[1]),g:$e(de[2]),b:$e(de[3]),a:ie(de[4]),format:Te?"name":"hex8"}:(de=we.hex6.exec(le))?{r:$e(de[1]),g:$e(de[2]),b:$e(de[3]),format:Te?"name":"hex"}:(de=we.hex4.exec(le))?{r:$e(de[1]+""+de[1]),g:$e(de[2]+""+de[2]),b:$e(de[3]+""+de[3]),a:ie(de[4]+""+de[4]),format:Te?"name":"hex8"}:(de=we.hex3.exec(le))?{r:$e(de[1]+""+de[1]),g:$e(de[2]+""+de[2]),b:$e(de[3]+""+de[3]),format:Te?"name":"hex"}:!1}function pe(le){var Te,de;return le=le||{level:"AA",size:"small"},Te=(le.level||"AA").toUpperCase(),de=(le.size||"small").toLowerCase(),Te!=="AA"&&Te!=="AAA"&&(Te="AA"),de!=="small"&&de!=="large"&&(de="small"),{level:Te,size:de}}L.exports?L.exports=x:(m=(function(){return x}).call(A,s,A,L),m!==void 0&&(L.exports=m))})(Math)},3961:function(L,A,s){var m=s(3489),h=s(6131),l=m.instance();function c($){this.local=this.regionalOptions[$||""]||this.regionalOptions[""]}c.prototype=new m.baseCalendar,h(c.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function($,S){if(typeof $=="string"){var O=$.match(u);return O?O[0]:""}var D=this._validateYear($),N=$.month(),M=""+this.toChineseMonth(D,N);return S&&M.length<2&&(M="0"+M),this.isIntercalaryMonth(D,N)&&(M+="i"),M},monthNames:function($){if(typeof $=="string"){var S=$.match(d);return S?S[0]:""}var O=this._validateYear($),D=$.month(),N=this.toChineseMonth(O,D),M=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][N-1];return this.isIntercalaryMonth(O,D)&&(M="闰"+M),M},monthNamesShort:function($){if(typeof $=="string"){var S=$.match(g);return S?S[0]:""}var O=this._validateYear($),D=$.month(),N=this.toChineseMonth(O,D),M=["一","二","三","四","五","六","七","八","九","十","十一","十二"][N-1];return this.isIntercalaryMonth(O,D)&&(M="闰"+M),M},parseMonth:function($,S){$=this._validateYear($);var O=parseInt(S),D;if(isNaN(O))S[0]==="闰"&&(D=!0,S=S.substring(1)),S[S.length-1]==="月"&&(S=S.substring(0,S.length-1)),O=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(S);else{var N=S[S.length-1];D=N==="i"||N==="I"}var M=this.toMonthIndex($,O,D);return M},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function($,S){if($.year&&($=$.year()),typeof $!="number"||$<1888||$>2111)throw S.replace(/\{0\}/,this.local.name);return $},toMonthIndex:function($,S,O){var D=this.intercalaryMonth($),N=O&&S!==D;if(N||S<1||S>12)throw m.local.invalidMonth.replace(/\{0\}/,this.local.name);var M;return D?!O&&S<=D?M=S-1:M=S:M=S-1,M},toChineseMonth:function($,S){$.year&&($=$.year(),S=$.month());var O=this.intercalaryMonth($),D=O?12:11;if(S<0||S>D)throw m.local.invalidMonth.replace(/\{0\}/,this.local.name);var N;return O?S>13;return O},isIntercalaryMonth:function($,S){$.year&&($=$.year(),S=$.month());var O=this.intercalaryMonth($);return!!O&&O===S},leapYear:function($){return this.intercalaryMonth($)!==0},weekOfYear:function($,S,O){var D=this._validateYear($,m.local.invalidyear),N=x[D-x[0]],M=N>>9&4095,k=N>>5&15,R=N&31,F;F=l.newDate(M,k,R),F.add(4-(F.dayOfWeek()||7),"d");var H=this.toJD($,S,O)-F.toJD();return 1+Math.floor(H/7)},monthsInYear:function($){return this.leapYear($)?13:12},daysInMonth:function($,S){$.year&&(S=$.month(),$=$.year()),$=this._validateYear($);var O=v[$-v[0]],D=O>>13,N=D?12:11;if(S>N)throw m.local.invalidMonth.replace(/\{0\}/,this.local.name);var M=O&1<<12-S?30:29;return M},weekDay:function($,S,O){return(this.dayOfWeek($,S,O)||7)<6},toJD:function($,S,O){var D=this._validate($,M,O,m.local.invalidDate);$=this._validateYear(D.year()),S=D.month(),O=D.day();var N=this.isIntercalaryMonth($,S),M=this.toChineseMonth($,S),k=_($,M,O,N);return l.toJD(k.year,k.month,k.day)},fromJD:function($){var S=l.fromJD($),O=C(S.year(),S.month(),S.day()),D=this.toMonthIndex(O.year,O.month,O.isIntercalary);return this.newDate(O.year,D,O.day)},fromString:function($){var S=$.match(i),O=this._validateYear(+S[1]),D=+S[2],N=!!S[3],M=this.toMonthIndex(O,D,N),k=+S[4];return this.newDate(O,M,k)},add:function($,S,O){var D=$.year(),N=$.month(),M=this.isIntercalaryMonth(D,N),k=this.toChineseMonth(D,N),R=Object.getPrototypeOf(c.prototype).add.call(this,$,S,O);if(O==="y"){var F=R.year(),H=R.month(),j=this.isIntercalaryMonth(F,k),P=M&&j?this.toMonthIndex(F,k,!0):this.toMonthIndex(F,k,!1);P!==H&&R.month(P)}return R}});var i=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,u=/^\d?\d[iI]?/m,d=/^闰?十?[一二三四五六七八九]?月/m,g=/^闰?十?[一二三四五六七八九]?/m;m.calendars.chinese=c;var v=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],x=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function C($,S,O,D){var N,M;if(typeof $=="object")N=$,M=S||{};else{var k=typeof $=="number"&&$>=1888&&$<=2111;if(!k)throw new Error("Solar year outside range 1888-2111");var R=typeof S=="number"&&S>=1&&S<=12;if(!R)throw new Error("Solar month outside range 1 - 12");var F=typeof O=="number"&&O>=1&&O<=31;if(!F)throw new Error("Solar day outside range 1 - 31");N={year:$,month:S,day:O},M=D||{}}var H=x[N.year-x[0]],j=N.year<<9|N.month<<5|N.day;M.year=j>=H?N.year:N.year-1,H=x[M.year-x[0]];var P=H>>9&4095,ee=H>>5&15,J=H&31,K,ae=new Date(P,ee-1,J),Q=new Date(N.year,N.month-1,N.day);K=Math.round((Q-ae)/864e5);var he=v[M.year-v[0]],ge;for(ge=0;ge<13;ge++){var Se=he&1<<12-ge?30:29;if(K>13;return!ce||ge=1888&&$<=2111;if(!R)throw new Error("Lunar year outside range 1888-2111");var F=typeof S=="number"&&S>=1&&S<=12;if(!F)throw new Error("Lunar month outside range 1 - 12");var H=typeof O=="number"&&O>=1&&O<=30;if(!H)throw new Error("Lunar day outside range 1 - 30");var j;typeof D=="object"?(j=!1,M=D):(j=!!D,M=N||{}),k={year:$,month:S,day:O,isIntercalary:j}}var P;P=k.day-1;var ee=v[k.year-v[0]],J=ee>>13,K;J&&(k.month>J||k.isIntercalary)?K=k.month:K=k.month-1;for(var ae=0;ae>9&4095,Se=he>>5&15,ce=he&31,ne=new Date(ge,Se-1,ce+P);return M.year=ne.getFullYear(),M.month=1+ne.getMonth(),M.day=ne.getDate(),M}},8751:function(L,A,s){var m=s(3489),h=s(6131);function l(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var i=this._validate(u,this.minMonth,this.minDay,m.local.invalidYear),u=i.year()+(i.year()<0?1:0);return u%4===3||u%4===-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),13},weekOfYear:function(c,i,u){var d=this.newDate(c,i,u);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInMonth:function(c,i){var u=this._validate(c,i,this.minDay,m.local.invalidMonth);return this.daysPerMonth[u.month()-1]+(u.month()===13&&this.leapYear(u.year())?1:0)},weekDay:function(c,i,u){return(this.dayOfWeek(c,i,u)||7)<6},toJD:function(c,i,u){var d=this._validate(c,i,u,m.local.invalidDate);return c=d.year(),c<0&&c++,d.day()+(d.month()-1)*30+(c-1)*365+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var i=Math.floor(c)+.5-this.jdEpoch,u=Math.floor((i-Math.floor((i+366)/1461))/365)+1;u<=0&&u--,i=Math.floor(c)+.5-this.newDate(u,1,1).toJD();var d=Math.floor(i/30)+1,g=i-(d-1)*30+1;return this.newDate(u,d,g)}}),m.calendars.coptic=l},6825:function(L,A,s){var m=s(3489),h=s(6131);function l(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(i){return this._validate(i,this.minMonth,this.minDay,m.local.invalidYear),!1},monthsInYear:function(i){return this._validate(i,this.minMonth,this.minDay,m.local.invalidYear),13},daysInYear:function(i){return this._validate(i,this.minMonth,this.minDay,m.local.invalidYear),400},weekOfYear:function(i,u,d){var g=this.newDate(i,u,d);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/8)+1},daysInMonth:function(i,u){var d=this._validate(i,u,this.minDay,m.local.invalidMonth);return this.daysPerMonth[d.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate);return(g.day()+1)%8},weekDay:function(i,u,d){var g=this.dayOfWeek(i,u,d);return g>=2&&g<=6},extraInfo:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate);return{century:c[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate);return i=g.year()+(g.year()<0?1:0),u=g.month(),d=g.day(),d+(u>1?16:0)+(u>2?(u-2)*32:0)+(i-1)*400+this.jdEpoch-1},fromJD:function(i){i=Math.floor(i+.5)-Math.floor(this.jdEpoch)-1;var u=Math.floor(i/400)+1;i-=(u-1)*400,i+=i>15?16:0;var d=Math.floor(i/32)+1,g=i-(d-1)*32+1;return this.newDate(u<=0?u-1:u,d,g)}});var c={20:"Fruitbat",21:"Anchovy"};m.calendars.discworld=l},7715:function(L,A,s){var m=s(3489),h=s(6131);function l(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var i=this._validate(u,this.minMonth,this.minDay,m.local.invalidYear),u=i.year()+(i.year()<0?1:0);return u%4===3||u%4===-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),13},weekOfYear:function(c,i,u){var d=this.newDate(c,i,u);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInMonth:function(c,i){var u=this._validate(c,i,this.minDay,m.local.invalidMonth);return this.daysPerMonth[u.month()-1]+(u.month()===13&&this.leapYear(u.year())?1:0)},weekDay:function(c,i,u){return(this.dayOfWeek(c,i,u)||7)<6},toJD:function(c,i,u){var d=this._validate(c,i,u,m.local.invalidDate);return c=d.year(),c<0&&c++,d.day()+(d.month()-1)*30+(c-1)*365+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var i=Math.floor(c)+.5-this.jdEpoch,u=Math.floor((i-Math.floor((i+366)/1461))/365)+1;u<=0&&u--,i=Math.floor(c)+.5-this.newDate(u,1,1).toJD();var d=Math.floor(i/30)+1,g=i-(d-1)*30+1;return this.newDate(u,d,g)}}),m.calendars.ethiopian=l},9384:function(L,A,s){var m=s(3489),h=s(6131);function l(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(i){var u=this._validate(i,this.minMonth,this.minDay,m.local.invalidYear);return this._leapYear(u.year())},_leapYear:function(i){return i=i<0?i+1:i,c(i*7+1,19)<7},monthsInYear:function(i){return this._validate(i,this.minMonth,this.minDay,m.local.invalidYear),this._leapYear(i.year?i.year():i)?13:12},weekOfYear:function(i,u,d){var g=this.newDate(i,u,d);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(i){var u=this._validate(i,this.minMonth,this.minDay,m.local.invalidYear);return i=u.year(),this.toJD(i===-1?1:i+1,7,1)-this.toJD(i,7,1)},daysInMonth:function(i,u){return i.year&&(u=i.month(),i=i.year()),this._validate(i,u,this.minDay,m.local.invalidMonth),u===12&&this.leapYear(i)||u===8&&c(this.daysInYear(i),10)===5?30:u===9&&c(this.daysInYear(i),10)===3?29:this.daysPerMonth[u-1]},weekDay:function(i,u,d){return this.dayOfWeek(i,u,d)!==6},extraInfo:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate);i=g.year(),u=g.month(),d=g.day();var v=i<=0?i+1:i,x=this.jdEpoch+this._delay1(v)+this._delay2(v)+d+1;if(u<7){for(var C=7;C<=this.monthsInYear(i);C++)x+=this.daysInMonth(i,C);for(var C=1;C=this.toJD(u===-1?1:u+1,7,1);)u++;for(var d=ithis.toJD(u,d,this.daysInMonth(u,d));)d++;var g=i-this.toJD(u,d,1)+1;return this.newDate(u,d,g)}});function c(i,u){return i-u*Math.floor(i/u)}m.calendars.hebrew=l},3805:function(L,A,s){var m=s(3489),h=s(6131);function l(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(c){var i=this._validate(c,this.minMonth,this.minDay,m.local.invalidYear);return(i.year()*11+14)%30<11},weekOfYear:function(c,i,u){var d=this.newDate(c,i,u);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInYear:function(c){return this.leapYear(c)?355:354},daysInMonth:function(c,i){var u=this._validate(c,i,this.minDay,m.local.invalidMonth);return this.daysPerMonth[u.month()-1]+(u.month()===12&&this.leapYear(u.year())?1:0)},weekDay:function(c,i,u){return this.dayOfWeek(c,i,u)!==5},toJD:function(c,i,u){var d=this._validate(c,i,u,m.local.invalidDate);return c=d.year(),i=d.month(),u=d.day(),c=c<=0?c+1:c,u+Math.ceil(29.5*(i-1))+(c-1)*354+Math.floor((3+11*c)/30)+this.jdEpoch-1},fromJD:function(c){c=Math.floor(c)+.5;var i=Math.floor((30*(c-this.jdEpoch)+10646)/10631);i=i<=0?i-1:i;var u=Math.min(12,Math.ceil((c-29-this.toJD(i,1,1))/29.5)+1),d=c-this.toJD(i,u,1)+1;return this.newDate(i,u,d)}}),m.calendars.islamic=l},8874:function(L,A,s){var m=s(3489),h=s(6131);function l(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var i=this._validate(u,this.minMonth,this.minDay,m.local.invalidYear),u=i.year()<0?i.year()+1:i.year();return u%4===0},weekOfYear:function(c,i,u){var d=this.newDate(c,i,u);return d.add(4-(d.dayOfWeek()||7),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInMonth:function(c,i){var u=this._validate(c,i,this.minDay,m.local.invalidMonth);return this.daysPerMonth[u.month()-1]+(u.month()===2&&this.leapYear(u.year())?1:0)},weekDay:function(c,i,u){return(this.dayOfWeek(c,i,u)||7)<6},toJD:function(c,i,u){var d=this._validate(c,i,u,m.local.invalidDate);return c=d.year(),i=d.month(),u=d.day(),c<0&&c++,i<=2&&(c--,i+=12),Math.floor(365.25*(c+4716))+Math.floor(30.6001*(i+1))+u-1524.5},fromJD:function(c){var i=Math.floor(c+.5),u=i+1524,d=Math.floor((u-122.1)/365.25),g=Math.floor(365.25*d),v=Math.floor((u-g)/30.6001),x=v-Math.floor(v<14?1:13),C=d-Math.floor(x>2?4716:4715),_=u-g-Math.floor(30.6001*v);return C<=0&&C--,this.newDate(C,x,_)}}),m.calendars.julian=l},3290:function(L,A,s){var m=s(3489),h=s(6131);function l(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(u){return this._validate(u,this.minMonth,this.minDay,m.local.invalidYear),!1},formatYear:function(u){var d=this._validate(u,this.minMonth,this.minDay,m.local.invalidYear);u=d.year();var g=Math.floor(u/400);u=u%400,u+=u<0?400:0;var v=Math.floor(u/20);return g+"."+v+"."+u%20},forYear:function(u){if(u=u.split("."),u.length<3)throw"Invalid Mayan year";for(var d=0,g=0;g19||g>0&&v<0)throw"Invalid Mayan year";d=d*20+v}return d},monthsInYear:function(u){return this._validate(u,this.minMonth,this.minDay,m.local.invalidYear),18},weekOfYear:function(u,d,g){return this._validate(u,d,g,m.local.invalidDate),0},daysInYear:function(u){return this._validate(u,this.minMonth,this.minDay,m.local.invalidYear),360},daysInMonth:function(u,d){return this._validate(u,d,this.minDay,m.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(u,d,g){var v=this._validate(u,d,g,m.local.invalidDate);return v.day()},weekDay:function(u,d,g){return this._validate(u,d,g,m.local.invalidDate),!0},extraInfo:function(u,d,g){var v=this._validate(u,d,g,m.local.invalidDate),x=v.toJD(),C=this._toHaab(x),_=this._toTzolkin(x);return{haabMonthName:this.local.haabMonths[C[0]-1],haabMonth:C[0],haabDay:C[1],tzolkinDayName:this.local.tzolkinMonths[_[0]-1],tzolkinDay:_[0],tzolkinTrecena:_[1]}},_toHaab:function(u){u-=this.jdEpoch;var d=c(u+8+(18-1)*20,365);return[Math.floor(d/20)+1,c(d,20)]},_toTzolkin:function(u){return u-=this.jdEpoch,[i(u+20,20),i(u+4,13)]},toJD:function(u,d,g){var v=this._validate(u,d,g,m.local.invalidDate);return v.day()+v.month()*20+v.year()*360+this.jdEpoch},fromJD:function(u){u=Math.floor(u)+.5-this.jdEpoch;var d=Math.floor(u/360);u=u%360,u+=u<0?360:0;var g=Math.floor(u/20),v=u%20;return this.newDate(d,g,v)}});function c(u,d){return u-d*Math.floor(u/d)}function i(u,d){return c(u-1,d)+1}m.calendars.mayan=l},9108:function(L,A,s){var m=s(3489),h=s(6131);function l(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar;var c=m.instance("gregorian");h(l.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(i){var u=this._validate(i,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return c.leapYear(u.year()+(u.year()<1?1:0)+1469)},weekOfYear:function(i,u,d){var g=this.newDate(i,u,d);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(i,u){var d=this._validate(i,u,this.minDay,m.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===12&&this.leapYear(d.year())?1:0)},weekDay:function(i,u,d){return(this.dayOfWeek(i,u,d)||7)<6},toJD:function(v,u,d){var g=this._validate(v,u,d,m.local.invalidMonth),v=g.year();v<0&&v++;for(var x=g.day(),C=1;C=this.toJD(u+1,1,1);)u++;for(var d=i-Math.floor(this.toJD(u,1,1)+.5)+1,g=1;d>this.daysInMonth(u,g);)d-=this.daysInMonth(u,g),g++;return this.newDate(u,g,d)}}),m.calendars.nanakshahi=l},5422:function(L,A,s){var m=s(3489),h=s(6131);function l(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(c){return this.daysInYear(c)!==this.daysPerYear},weekOfYear:function(c,i,u){var d=this.newDate(c,i,u);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInYear:function(c){var i=this._validate(c,this.minMonth,this.minDay,m.local.invalidYear);if(c=i.year(),typeof this.NEPALI_CALENDAR_DATA[c]>"u")return this.daysPerYear;for(var u=0,d=this.minMonth;d<=12;d++)u+=this.NEPALI_CALENDAR_DATA[c][d];return u},daysInMonth:function(c,i){return c.year&&(i=c.month(),c=c.year()),this._validate(c,i,this.minDay,m.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[c]>"u"?this.daysPerMonth[i-1]:this.NEPALI_CALENDAR_DATA[c][i]},weekDay:function(c,i,u){return this.dayOfWeek(c,i,u)!==6},toJD:function(c,i,u){var d=this._validate(c,i,u,m.local.invalidDate);c=d.year(),i=d.month(),u=d.day();var g=m.instance(),v=0,x=i,C=c;this._createMissingCalendarData(c);var _=c-(x>9||x===9&&u>=this.NEPALI_CALENDAR_DATA[C][0]?56:57);for(i!==9&&(v=u,x--);x!==9;)x<=0&&(x=12,C--),v+=this.NEPALI_CALENDAR_DATA[C][x],x--;return i===9?(v+=u-this.NEPALI_CALENDAR_DATA[C][0],v<0&&(v+=g.daysInYear(_))):v+=this.NEPALI_CALENDAR_DATA[C][9]-this.NEPALI_CALENDAR_DATA[C][0],g.newDate(_,1,1).add(v,"d").toJD()},fromJD:function(c){var i=m.instance(),u=i.fromJD(c),d=u.year(),g=u.dayOfYear(),v=d+56;this._createMissingCalendarData(v);for(var x=9,C=this.NEPALI_CALENDAR_DATA[v][0],_=this.NEPALI_CALENDAR_DATA[v][x]-C+1;g>_;)x++,x>12&&(x=1,v++),_+=this.NEPALI_CALENDAR_DATA[v][x];var $=this.NEPALI_CALENDAR_DATA[v][x]-(_-g);return this.newDate(v,x,$)},_createMissingCalendarData:function(c){var i=this.daysPerMonth.slice(0);i.unshift(17);for(var u=c-1;u"u"&&(this.NEPALI_CALENDAR_DATA[u]=i)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),m.calendars.nepali=l},4320:function(L,A,s){var m=s(3489),h=s(6131);function l(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(i){var u=this._validate(i,this.minMonth,this.minDay,m.local.invalidYear);return((u.year()-(u.year()>0?474:473))%2820+474+38)*682%2816<682},weekOfYear:function(i,u,d){var g=this.newDate(i,u,d);return g.add(-((g.dayOfWeek()+1)%7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(i,u){var d=this._validate(i,u,this.minDay,m.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===12&&this.leapYear(d.year())?1:0)},weekDay:function(i,u,d){return this.dayOfWeek(i,u,d)!==5},toJD:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate);i=g.year(),u=g.month(),d=g.day();var v=i-(i>=0?474:473),x=474+c(v,2820);return d+(u<=7?(u-1)*31:(u-1)*30+6)+Math.floor((x*682-110)/2816)+(x-1)*365+Math.floor(v/2820)*1029983+this.jdEpoch-1},fromJD:function(i){i=Math.floor(i)+.5;var u=i-this.toJD(475,1,1),d=Math.floor(u/1029983),g=c(u,1029983),v=2820;if(g!==1029982){var x=Math.floor(g/366),C=c(g,366);v=Math.floor((2134*x+2816*C+2815)/1028522)+x+1}var _=v+2820*d+474;_=_<=0?_-1:_;var $=i-this.toJD(_,1,1)+1,S=$<=186?Math.ceil($/31):Math.ceil(($-6)/30),O=i-this.toJD(_,S,1)+1;return this.newDate(_,S,O)}});function c(i,u){return i-u*Math.floor(i/u)}m.calendars.persian=l,m.calendars.jalali=l},1320:function(L,A,s){var m=s(3489),h=s(6131),l=m.instance();function c(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}c.prototype=new m.baseCalendar,h(c.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(d){var u=this._validate(d,this.minMonth,this.minDay,m.local.invalidYear),d=this._t2gYear(u.year());return l.leapYear(d)},weekOfYear:function(v,u,d){var g=this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),v=this._t2gYear(g.year());return l.weekOfYear(v,g.month(),g.day())},daysInMonth:function(i,u){var d=this._validate(i,u,this.minDay,m.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===2&&this.leapYear(d.year())?1:0)},weekDay:function(i,u,d){return(this.dayOfWeek(i,u,d)||7)<6},toJD:function(v,u,d){var g=this._validate(v,u,d,m.local.invalidDate),v=this._t2gYear(g.year());return l.toJD(v,g.month(),g.day())},fromJD:function(i){var u=l.fromJD(i),d=this._g2tYear(u.year());return this.newDate(d,u.month(),u.day())},_t2gYear:function(i){return i+this.yearsOffset+(i>=-this.yearsOffset&&i<=-1?1:0)},_g2tYear:function(i){return i-this.yearsOffset-(i>=1&&i<=this.yearsOffset?1:0)}}),m.calendars.taiwan=c},1367:function(L,A,s){var m=s(3489),h=s(6131),l=m.instance();function c(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}c.prototype=new m.baseCalendar,h(c.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var u=this._validate(d,this.minMonth,this.minDay,m.local.invalidYear),d=this._t2gYear(u.year());return l.leapYear(d)},weekOfYear:function(v,u,d){var g=this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),v=this._t2gYear(g.year());return l.weekOfYear(v,g.month(),g.day())},daysInMonth:function(i,u){var d=this._validate(i,u,this.minDay,m.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===2&&this.leapYear(d.year())?1:0)},weekDay:function(i,u,d){return(this.dayOfWeek(i,u,d)||7)<6},toJD:function(v,u,d){var g=this._validate(v,u,d,m.local.invalidDate),v=this._t2gYear(g.year());return l.toJD(v,g.month(),g.day())},fromJD:function(i){var u=l.fromJD(i),d=this._g2tYear(u.year());return this.newDate(d,u.month(),u.day())},_t2gYear:function(i){return i-this.yearsOffset-(i>=1&&i<=this.yearsOffset?1:0)},_g2tYear:function(i){return i+this.yearsOffset+(i>=-this.yearsOffset&&i<=-1?1:0)}}),m.calendars.thai=c},1457:function(L,A,s){var m=s(3489),h=s(6131);function l(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(i){var u=this._validate(i,this.minMonth,this.minDay,m.local.invalidYear);return this.daysInYear(u.year())===355},weekOfYear:function(i,u,d){var g=this.newDate(i,u,d);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(i){for(var u=0,d=1;d<=12;d++)u+=this.daysInMonth(i,d);return u},daysInMonth:function(i,u){for(var d=this._validate(i,u,this.minDay,m.local.invalidMonth),g=d.toJD()-24e5+.5,v=0,x=0;xg)return c[v]-c[v-1];v++}return 30},weekDay:function(i,u,d){return this.dayOfWeek(i,u,d)!==5},toJD:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate),v=12*(g.year()-1)+g.month()-15292,x=g.day()+c[v-1]-1;return x+24e5-.5},fromJD:function(i){for(var u=i-24e5+.5,d=0,g=0;gu);g++)d++;var v=d+15292,x=Math.floor((v-1)/12),C=x+1,_=v-12*x,$=u-c[d-1]+1;return this.newDate(C,_,$)},isValid:function(i,u,d){var g=m.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(i=i.year!=null?i.year:i,g=i>=1276&&i<=1500),g},_validate:function(i,u,d,g){var v=m.baseCalendar.prototype._validate.apply(this,arguments);if(v.year<1276||v.year>1500)throw g.replace(/\{0\}/,this.local.name);return v}}),m.calendars.ummalqura=l;var c=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},3489:function(L,A,s){var m=s(6131);function h(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}m(h.prototype,{instance:function(g,v){g=(g||"gregorian").toLowerCase(),v=v||"";var x=this._localCals[g+"-"+v];if(!x&&this.calendars[g]&&(x=new this.calendars[g](v),this._localCals[g+"-"+v]=x),!x)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return x},newDate:function(g,v,x,C,_){return C=(g!=null&&g.year?g.calendar():typeof C=="string"?this.instance(C,_):C)||this.instance(),C.newDate(g,v,x)},substituteDigits:function(g){return function(v){return(v+"").replace(/[0-9]/g,function(x){return g[x]})}},substituteChineseDigits:function(g,v){return function(x){for(var C="",_=0;x>0;){var $=x%10;C=($===0?"":g[$]+v[_])+C,_++,x=Math.floor(x/10)}return C.indexOf(g[1]+v[1])===0&&(C=C.substr(1)),C||g[0]}}});function l(g,v,x,C){if(this._calendar=g,this._year=v,this._month=x,this._day=C,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(d.local.invalidDate||d.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function c(g,v){return g=""+g,"000000".substring(0,v-g.length)+g}m(l.prototype,{newDate:function(g,v,x){return this._calendar.newDate(g??this,v,x)},year:function(g){return arguments.length===0?this._year:this.set(g,"y")},month:function(g){return arguments.length===0?this._month:this.set(g,"m")},day:function(g){return arguments.length===0?this._day:this.set(g,"d")},date:function(g,v,x){if(!this._calendar.isValid(g,v,x))throw(d.local.invalidDate||d.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,this._month=v,this._day=x,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(g,v){return this._calendar.add(this,g,v)},set:function(g,v){return this._calendar.set(this,g,v)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(d.local.differentCalendars||d.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var v=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return v===0?0:v<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(g){return this._calendar.fromJD(g)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(g){return this._calendar.fromJSDate(g)},toString:function(){return(this.year()<0?"-":"")+c(Math.abs(this.year()),4)+"-"+c(this.month(),2)+"-"+c(this.day(),2)}});function i(){this.shortYearCutoff="+10"}m(i.prototype,{_validateLevel:0,newDate:function(g,v,x){return g==null?this.today():(g.year&&(this._validate(g,v,x,d.local.invalidDate||d.regionalOptions[""].invalidDate),x=g.day(),v=g.month(),g=g.year()),new l(this,g,v,x))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){var v=this._validate(g,this.minMonth,this.minDay,d.local.invalidYear||d.regionalOptions[""].invalidYear);return v.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var v=this._validate(g,this.minMonth,this.minDay,d.local.invalidYear||d.regionalOptions[""].invalidYear);return(v.year()<0?"-":"")+c(Math.abs(v.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,d.local.invalidYear||d.regionalOptions[""].invalidYear),12},monthOfYear:function(g,v){var x=this._validate(g,v,this.minDay,d.local.invalidMonth||d.regionalOptions[""].invalidMonth);return(x.month()+this.monthsInYear(x)-this.firstMonth)%this.monthsInYear(x)+this.minMonth},fromMonthOfYear:function(g,v){var x=(v+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,x,this.minDay,d.local.invalidMonth||d.regionalOptions[""].invalidMonth),x},daysInYear:function(g){var v=this._validate(g,this.minMonth,this.minDay,d.local.invalidYear||d.regionalOptions[""].invalidYear);return this.leapYear(v)?366:365},dayOfYear:function(g,v,x){var C=this._validate(g,v,x,d.local.invalidDate||d.regionalOptions[""].invalidDate);return C.toJD()-this.newDate(C.year(),this.fromMonthOfYear(C.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,v,x){var C=this._validate(g,v,x,d.local.invalidDate||d.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(C))+2)%this.daysInWeek()},extraInfo:function(g,v,x){return this._validate(g,v,x,d.local.invalidDate||d.regionalOptions[""].invalidDate),{}},add:function(g,v,x){return this._validate(g,this.minMonth,this.minDay,d.local.invalidDate||d.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,v,x),v,x)},_add:function(g,v,x){if(this._validateLevel++,x==="d"||x==="w"){var C=g.toJD()+v*(x==="w"?this.daysInWeek():1),_=g.calendar().fromJD(C);return this._validateLevel--,[_.year(),_.month(),_.day()]}try{var $=g.year()+(x==="y"?v:0),S=g.monthOfYear()+(x==="m"?v:0),_=g.day(),O=function(M){for(;Sk-1+M.minMonth;)$++,S-=k,k=M.monthsInYear($)};x==="y"?(g.month()!==this.fromMonthOfYear($,S)&&(S=this.newDate($,g.month(),this.minDay).monthOfYear()),S=Math.min(S,this.monthsInYear($)),_=Math.min(_,this.daysInMonth($,this.fromMonthOfYear($,S)))):x==="m"&&(O(this),_=Math.min(_,this.daysInMonth($,this.fromMonthOfYear($,S))));var D=[$,this.fromMonthOfYear($,S),_];return this._validateLevel--,D}catch(N){throw this._validateLevel--,N}},_correctAdd:function(g,v,x,C){if(!this.hasYearZero&&(C==="y"||C==="m")&&(v[0]===0||g.year()>0!=v[0]>0)){var _={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[C],$=x<0?-1:1;v=this._add(g,x*_[0]+$*_[1],_[2])}return g.date(v[0],v[1],v[2])},set:function(g,v,x){this._validate(g,this.minMonth,this.minDay,d.local.invalidDate||d.regionalOptions[""].invalidDate);var C=x==="y"?v:g.year(),_=x==="m"?v:g.month(),$=x==="d"?v:g.day();return(x==="y"||x==="m")&&($=Math.min($,this.daysInMonth(C,_))),g.date(C,_,$)},isValid:function(g,v,x){this._validateLevel++;var C=this.hasYearZero||g!==0;if(C){var _=this.newDate(g,v,this.minDay);C=v>=this.minMonth&&v-this.minMonth=this.minDay&&x-this.minDay13.5?13:1),N=_-(D>2.5?4716:4715);return N<=0&&N--,this.newDate(N,D,O)},toJSDate:function(g,v,x){var C=this._validate(g,v,x,d.local.invalidDate||d.regionalOptions[""].invalidDate),_=new Date(C.year(),C.month()-1,C.day());return _.setHours(0),_.setMinutes(0),_.setSeconds(0),_.setMilliseconds(0),_.setHours(_.getHours()>12?_.getHours()+2:0),_},fromJSDate:function(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var d=L.exports=new h;d.cdate=l,d.baseCalendar=i,d.calendars.gregorian=u},4338:function(L,A,s){var m=s(6131),h=s(3489);m(h.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),h.local=h.regionalOptions[""],m(h.cdate.prototype,{formatDate:function(l,c){return typeof l!="string"&&(c=l,l=""),this._calendar.formatDate(l||"",this,c)}}),m(h.baseCalendar.prototype,{UNIX_EPOCH:h.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:h.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(l,c,i){if(typeof l!="string"&&(i=c,c=l,l=""),!c)return"";if(c.calendar()!==this)throw h.local.invalidFormat||h.regionalOptions[""].invalidFormat;l=l||this.local.dateFormat,i=i||{};var u=i.dayNamesShort||this.local.dayNamesShort,d=i.dayNames||this.local.dayNames,g=i.monthNumbers||this.local.monthNumbers,v=i.monthNamesShort||this.local.monthNamesShort,x=i.monthNames||this.local.monthNames;i.calculateWeek||this.local.calculateWeek;for(var C=function(H,j){for(var P=1;F+P1},_=function(H,j,P,ee){var J=""+j;if(C(H,ee))for(;J.length1},F=function(ge,Se){var ce=R(ge,Se),ne=[2,3,ce?4:2,ce?4:2,10,11,20]["oyYJ@!".indexOf(ge)+1],fe=new RegExp("^-?\\d{1,"+ne+"}"),X=c.substring(K).match(fe);if(!X)throw(h.local.missingNumberAt||h.regionalOptions[""].missingNumberAt).replace(/\{0\}/,K);return K+=X[0].length,parseInt(X[0],10)},H=this,j=function(){if(typeof x=="function"){R("m");var ge=x.call(H,c.substring(K));return K+=ge.length,ge}return F("m")},P=function(ge,Se,ce,ne){for(var fe=R(ge,ne)?ce:Se,X=0;X-1){O=1,D=N;for(var he=this.daysInMonth(S,O);D>he;he=this.daysInMonth(S,O))O++,D-=he}return $>-1?this.fromJD($):this.newDate(S,O,D)},determineDate:function(l,c,i,u,d){i&&typeof i!="object"&&(d=u,u=i,i=null),typeof u!="string"&&(d=u,u="");var g=this,v=function(x){try{return g.parseDate(u,x,d)}catch{}x=x.toLowerCase();for(var C=(x.match(/^c/)&&i?i.newDate():null)||g.today(),_=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,$=_.exec(x);$;)C.add(parseInt($[1],10),$[2]||"d"),$=_.exec(x);return C};return c=c?c.newDate():null,l=l==null?c:typeof l=="string"?v(l):typeof l=="number"?isNaN(l)||l===1/0||l===-1/0?c:g.today().add(l,"d"):g.newDate(l),l}})}},T={};function G(L){var A=T[L];if(A!==void 0)return A.exports;var s=T[L]={exports:{}};return y[L].call(s.exports,s,s.exports,G),s.exports}(function(){G.d=function(L,A){for(var s in A)G.o(A,s)&&!G.o(L,s)&&Object.defineProperty(L,s,{enumerable:!0,get:A[s]})}})(),function(){G.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){G.o=function(L,A){return Object.prototype.hasOwnProperty.call(L,A)}}(),function(){G.r=function(L){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(L,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(L,"__esModule",{value:!0})}}();var V=G(2576);return V}()})})(hae);var jfe=hae.exports;const WJ=dae(jfe),Yfe=YB({props:{figure:{type:Object,required:!0},layout:{type:Object,required:!0},id:{type:String,required:!0}},setup(o){Cg(()=>{WJ.newPlot(o.id,o.figure.data,o.layout)}),ta(()=>o.figure,(b,y)=>{b!==y&&WJ.newPlot(o.id,b.data,o.layout)},{deep:!0}),ta(()=>o.layout,(b,y)=>{b!==y&&WJ.newPlot(o.id,o.figure.data,b)},{deep:!0})}}),Vy=(o,b)=>{const y=o.__vccOpts||o;for(const[T,G]of b)y[T]=G;return y},Kfe=["id"];function Xfe(o,b,y,T,G,V){return mo(),Ts("div",{id:o.id,style:{height:"100%",width:"100%"}},null,8,Kfe)}const mae=Vy(Yfe,[["render",Xfe]]);var gae={exports:{}};(function(o,b){(function(){var y="ace",T=function(){return this}();!T&&typeof window<"u"&&(T=window);var G=function(h,l,c){if(typeof h!="string"){G.original?G.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(c=l),G.modules[h]||(G.payloads[h]=c,G.modules[h]=null)};G.modules={},G.payloads={};var V=function(h,l,c){if(typeof l=="string"){var i=s(h,l);if(i!=null)return c&&c(),i}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var u=[],d=0,g=l.length;ds.length)&&(A=s.length),A-=L.length;var m=s.indexOf(L,A);return m!==-1&&m===A}),String.prototype.repeat||V(String.prototype,"repeat",function(L){for(var A="",s=this;L>0;)L&1&&(A+=s),(L>>=1)&&(s+=s);return A}),String.prototype.includes||V(String.prototype,"includes",function(L,A){return this.indexOf(L,A)!=-1}),Object.assign||(Object.assign=function(L){if(L==null)throw new TypeError("Cannot convert undefined or null to object");for(var A=Object(L),s=1;s>>0,m=arguments[1],h=m>>0,l=h<0?Math.max(s+h,0):Math.min(h,s),c=arguments[2],i=c===void 0?s:c>>0,u=i<0?Math.max(s+i,0):Math.min(i,s);l0;)s&1&&(m+=A),(s>>=1)&&(A+=A);return m};var V=/^\s\s*/,L=/\s\s*$/;T.stringTrimLeft=function(A){return A.replace(V,"")},T.stringTrimRight=function(A){return A.replace(L,"")},T.copyObject=function(A){var s={};for(var m in A)s[m]=A[m];return s},T.copyArray=function(A){for(var s=[],m=0,h=A.length;m=0?parseFloat((A.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((A.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),T.isOldIE=T.isIE&&T.isIE<9,T.isGecko=T.isMozilla=A.match(/ Gecko\/\d+/),T.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",T.isWebKit=parseFloat(A.split("WebKit/")[1])||void 0,T.isChrome=parseFloat(A.split(" Chrome/")[1])||void 0,T.isEdge=parseFloat(A.split(" Edge/")[1])||void 0,T.isAIR=A.indexOf("AdobeAIR")>=0,T.isAndroid=A.indexOf("Android")>=0,T.isChromeOS=A.indexOf(" CrOS ")>=0,T.isIOS=/iPad|iPhone|iPod/.test(A)&&!window.MSStream,T.isIOS&&(T.isMac=!0),T.isMobile=T.isIOS||T.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(y,T,G){var V=y("./useragent"),L="http://www.w3.org/1999/xhtml";T.buildDom=function c(i,u,d){if(typeof i=="string"&&i){var g=document.createTextNode(i);return u&&u.appendChild(g),g}if(!Array.isArray(i))return i&&i.appendChild&&u&&u.appendChild(i),i;if(typeof i[0]!="string"||!i[0]){for(var v=[],x=0;x"u")){if(s){if(u)m();else if(u===!1)return s.push([c,i])}if(!A){var d=u;!u||!u.getRootNode?d=document:(d=u.getRootNode(),(!d||d==u)&&(d=document));var g=d.ownerDocument||d;if(i&&T.hasCssString(i,d))return null;i&&(c+=` -/*# sourceURL=ace/css/`+i+" */");var v=T.createElement("style");v.appendChild(g.createTextNode(c)),i&&(v.id=i),d==g&&(d=T.getDocumentHead(g)),d.insertBefore(v,d.firstChild)}}}if(T.importCssString=h,T.importCssStylsheet=function(c,i){T.buildDom(["link",{rel:"stylesheet",href:c}],T.getDocumentHead(i))},T.scrollbarWidth=function(c){var i=T.createElement("ace_inner");i.style.width="100%",i.style.minWidth="0px",i.style.height="200px",i.style.display="block";var u=T.createElement("ace_outer"),d=u.style;d.position="absolute",d.left="-10000px",d.overflow="hidden",d.width="200px",d.minWidth="0px",d.height="150px",d.display="block",u.appendChild(i);var g=c&&c.documentElement||document&&document.documentElement;if(!g)return 0;g.appendChild(u);var v=i.offsetWidth;d.overflow="scroll";var x=i.offsetWidth;return v===x&&(x=u.clientWidth),g.removeChild(u),v-x},T.computedStyle=function(c,i){return window.getComputedStyle(c,"")||{}},T.setStyle=function(c,i,u){c[i]!==u&&(c[i]=u)},T.HAS_CSS_ANIMATION=!1,T.HAS_CSS_TRANSFORMS=!1,T.HI_DPI=V.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,V.isChromeOS&&(T.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");T.HI_DPI&&l.style.transform!==void 0&&(T.HAS_CSS_TRANSFORMS=!0),!V.isEdge&&typeof l.style.animationName<"u"&&(T.HAS_CSS_ANIMATION=!0),l=null}T.HAS_CSS_TRANSFORMS?T.translate=function(c,i,u){c.style.transform="translate("+Math.round(i)+"px, "+Math.round(u)+"px)"}:T.translate=function(c,i,u){c.style.top=Math.round(u)+"px",c.style.left=Math.round(i)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(y,T,G){/* -* based on code from: -* -* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved. -* Available via the MIT or new BSD license. -* see: http://github.com/jrburke/requirejs for details -*/var V=y("./dom");T.get=function(L,A){var s=new XMLHttpRequest;s.open("GET",L,!0),s.onreadystatechange=function(){s.readyState===4&&A(s.responseText)},s.send(null)},T.loadScript=function(L,A){var s=V.getDocumentHead(),m=document.createElement("script");m.src=L,s.appendChild(m),m.onload=m.onreadystatechange=function(h,l){(l||!m.readyState||m.readyState=="loaded"||m.readyState=="complete")&&(m=m.onload=m.onreadystatechange=null,l||A())}},T.qualifyURL=function(L){var A=document.createElement("a");return A.href=L,A.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(y,T,G){T.inherits=function(V,L){V.super_=L,V.prototype=Object.create(L.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}})},T.mixin=function(V,L){for(var A in L)V[A]=L[A];return V},T.implement=function(V,L){T.mixin(V,L)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(y,T,G){var V={},L=function(){this.propagationStopped=!0},A=function(){this.defaultPrevented=!0};V._emit=V._dispatchEvent=function(s,m){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var h=this._eventRegistry[s]||[],l=this._defaultHandlers[s];if(!(!h.length&&!l)){(typeof m!="object"||!m)&&(m={}),m.type||(m.type=s),m.stopPropagation||(m.stopPropagation=L),m.preventDefault||(m.preventDefault=A),h=h.slice();for(var c=0;c1&&(v=d[d.length-2]);var C=m[u+"Path"];return C==null?C=m.basePath:g=="/"&&(u=g=""),C&&C.slice(-1)!="/"&&(C+="/"),C+u+g+v+this.get("suffix")},T.setModuleUrl=function(i,u){return m.$moduleUrls[i]=u};var h=function(i,u){if(i==="ace/theme/textmate"||i==="./theme/textmate")return u(null,y("./theme/textmate"));if(l)return l(i,u);console.error("loader is not configured")},l;T.setLoader=function(i){l=i},T.dynamicModules=Object.create(null),T.$loading={},T.$loaded={},T.loadModule=function(i,u){var d,g;Array.isArray(i)&&(g=i[0],i=i[1]);var v=function(x){if(x&&!T.$loading[i])return u&&u(x);if(T.$loading[i]||(T.$loading[i]=[]),T.$loading[i].push(u),!(T.$loading[i].length>1)){var C=function(){h(i,function(_,$){$&&(T.$loaded[i]=$),T._emit("load.module",{name:i,module:$});var S=T.$loading[i];T.$loading[i]=null,S.forEach(function(O){O&&O($)})})};if(!T.get("packaged"))return C();L.loadScript(T.moduleUrl(i,g),C),c()}};if(T.dynamicModules[i])T.dynamicModules[i]().then(function(x){x.default?v(x.default):v(x)});else{try{d=this.$require(i)}catch{}v(d||T.$loaded[i])}},T.$require=function(i){if(typeof G.require=="function"){var u="require";return G[u](i)}},T.setModuleLoader=function(i,u){T.dynamicModules[i]=u};var c=function(){!m.basePath&&!m.workerPath&&!m.modePath&&!m.themePath&&!Object.keys(m.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};T.version="1.28.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(y,T,G){y("./lib/fixoldbrowsers");var V=y("./config");V.setLoader(function(m,h){y([m],function(l){h(null,l)})});var L=function(){return this||typeof window<"u"&&window}();G.exports=function(m){V.init=A,V.$require=y,m.require=y},A(!0);function A(m){if(!(!L||!L.document)){V.set("packaged",m||y.packaged||G.packaged||L.define&&(void 0).packaged);var h={},l="",c=document.currentScript||document._currentScript,i=c&&c.ownerDocument||document;c&&c.src&&(l=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var u=i.getElementsByTagName("script"),d=0;d ["+this.end.row+"/"+this.end.column+"]"},A.prototype.contains=function(s,m){return this.compare(s,m)==0},A.prototype.compareRange=function(s){var m,h=s.end,l=s.start;return m=this.compare(h.row,h.column),m==1?(m=this.compare(l.row,l.column),m==1?2:m==0?1:0):m==-1?-2:(m=this.compare(l.row,l.column),m==-1?-1:m==1?42:0)},A.prototype.comparePoint=function(s){return this.compare(s.row,s.column)},A.prototype.containsRange=function(s){return this.comparePoint(s.start)==0&&this.comparePoint(s.end)==0},A.prototype.intersects=function(s){var m=this.compareRange(s);return m==-1||m==0||m==1},A.prototype.isEnd=function(s,m){return this.end.row==s&&this.end.column==m},A.prototype.isStart=function(s,m){return this.start.row==s&&this.start.column==m},A.prototype.setStart=function(s,m){typeof s=="object"?(this.start.column=s.column,this.start.row=s.row):(this.start.row=s,this.start.column=m)},A.prototype.setEnd=function(s,m){typeof s=="object"?(this.end.column=s.column,this.end.row=s.row):(this.end.row=s,this.end.column=m)},A.prototype.inside=function(s,m){return this.compare(s,m)==0?!(this.isEnd(s,m)||this.isStart(s,m)):!1},A.prototype.insideStart=function(s,m){return this.compare(s,m)==0?!this.isEnd(s,m):!1},A.prototype.insideEnd=function(s,m){return this.compare(s,m)==0?!this.isStart(s,m):!1},A.prototype.compare=function(s,m){return!this.isMultiLine()&&s===this.start.row?mthis.end.column?1:0:sthis.end.row?1:this.start.row===s?m>=this.start.column?0:-1:this.end.row===s?m<=this.end.column?0:1:0},A.prototype.compareStart=function(s,m){return this.start.row==s&&this.start.column==m?-1:this.compare(s,m)},A.prototype.compareEnd=function(s,m){return this.end.row==s&&this.end.column==m?1:this.compare(s,m)},A.prototype.compareInside=function(s,m){return this.end.row==s&&this.end.column==m?1:this.start.row==s&&this.start.column==m?-1:this.compare(s,m)},A.prototype.clipRows=function(s,m){if(this.end.row>m)var h={row:m+1,column:0};else if(this.end.rowm)var l={row:m+1,column:0};else if(this.start.row1?(D++,D>4&&(D=1)):D=1,L.isIE){var j=Math.abs(H.clientX-N)>5||Math.abs(H.clientY-M)>5;(!k||j)&&(D=1),k&&clearTimeout(k),k=setTimeout(function(){k=null},_[D-1]||600),D==1&&(N=H.clientX,M=H.clientY)}if(H._clicks=D,$[S]("mousedown",H),D>4)D=0;else if(D>1)return $[S](R[D],H)}Array.isArray(C)||(C=[C]),C.forEach(function(H){i(H,"mousedown",F,O)})};var d=function(C){return 0|(C.ctrlKey?1:0)|(C.altKey?2:0)|(C.shiftKey?4:0)|(C.metaKey?8:0)};T.getModifierString=function(C){return V.KEY_MODS[d(C)]};function g(C,_,$){var S=d(_);if(!L.isMac&&A){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(S|=8),A.altGr)if((3&S)!=3)A.altGr=0;else return;if($===18||$===17){var O="location"in _?_.location:_.keyLocation;if($===17&&O===1)A[$]==1&&(s=_.timeStamp);else if($===18&&S===3&&O===2){var D=_.timeStamp-s;D<50&&(A.altGr=!0)}}}if($ in V.MODIFIER_KEYS&&($=-1),!S&&$===13){var O="location"in _?_.location:_.keyLocation;if(O===3&&(C(_,S,-$),_.defaultPrevented))return}if(L.isChromeOS&&S&8){if(C(_,S,$),_.defaultPrevented)return;S&=-9}return!S&&!($ in V.FUNCTION_KEYS)&&!($ in V.PRINTABLE_KEYS)?!1:C(_,S,$)}T.addCommandKeyListener=function(C,_,$){if(L.isOldGecko||L.isOpera&&!("KeyboardEvent"in window)){var S=null;i(C,"keydown",function(D){S=D.keyCode},$),i(C,"keypress",function(D){return g(_,D,S)},$)}else{var O=null;i(C,"keydown",function(D){A[D.keyCode]=(A[D.keyCode]||0)+1;var N=g(_,D,D.keyCode);return O=D.defaultPrevented,N},$),i(C,"keypress",function(D){O&&(D.ctrlKey||D.altKey||D.shiftKey||D.metaKey)&&(T.stopEvent(D),O=null)},$),i(C,"keyup",function(D){A[D.keyCode]=null},$),A||(v(),i(window,"focus",v))}};function v(){A=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!L.isOldIE){var x=1;T.nextTick=function(C,_){_=_||window;var $="zero-timeout-message-"+x++,S=function(O){O.data==$&&(T.stopPropagation(O),u(_,"message",S),C())};i(_,"message",S),_.postMessage($,"*")}}T.$idleBlocked=!1,T.onIdle=function(C,_){return setTimeout(function $(){T.$idleBlocked?setTimeout($,100):C()},_)},T.$idleBlockId=null,T.blockIdle=function(C){T.$idleBlockId&&clearTimeout(T.$idleBlockId),T.$idleBlocked=!0,T.$idleBlockId=setTimeout(function(){T.$idleBlocked=!1},C||100)},T.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),T.nextFrame?T.nextFrame=T.nextFrame.bind(window):T.nextFrame=function(C){setTimeout(C,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(y,T,G){var V;G.exports={lineMode:!1,pasteCancelled:function(){return V&&V>Date.now()-50?!0:V=!1},cancel:function(){V=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(y,T,G){var V=y("../lib/event"),L=y("../config").nls,A=y("../lib/useragent"),s=y("../lib/dom"),m=y("../lib/lang"),h=y("../clipboard"),l=A.isChrome<18,c=A.isIE,i=A.isChrome>63,u=400,d=y("../lib/keys"),g=d.KEY_MODS,v=A.isIOS,x=v?/\s/:/\n/,C=A.isMobile,_=function($,S){var O=s.createElement("textarea");O.className="ace_text-input",O.setAttribute("wrap","off"),O.setAttribute("autocorrect","off"),O.setAttribute("autocapitalize","off"),O.setAttribute("spellcheck",!1),O.style.opacity="0",$.insertBefore(O,$.firstChild);var D=!1,N=!1,M=!1,k=!1,R="";C||(O.style.fontSize="1px");var F=!1,H=!1,j="",P=0,ee=0,J=0,K=Number.MAX_SAFE_INTEGER,ae=Number.MIN_SAFE_INTEGER,Q=0;try{var he=document.activeElement===O}catch{}this.setNumberOfExtraLines=function(Re){if(K=Number.MAX_SAFE_INTEGER,ae=Number.MIN_SAFE_INTEGER,Re<0){Q=0;return}Q=Re},this.setAriaOptions=function(Re){if(Re.activeDescendant?(O.setAttribute("aria-haspopup","true"),O.setAttribute("aria-autocomplete",Re.inline?"both":"list"),O.setAttribute("aria-activedescendant",Re.activeDescendant)):(O.setAttribute("aria-haspopup","false"),O.setAttribute("aria-autocomplete","both"),O.removeAttribute("aria-activedescendant")),Re.role&&O.setAttribute("role",Re.role),Re.setLabel&&(O.setAttribute("aria-roledescription",L("editor")),S.session)){var ze=S.session.selection.cursor.row;O.setAttribute("aria-label",L("Cursor at row $0",[ze+1]))}},this.setAriaOptions({role:"textbox"}),V.addListener(O,"blur",function(Re){H||(S.onBlur(Re),he=!1)},S),V.addListener(O,"focus",function(Re){if(!H){if(he=!0,A.isEdge)try{if(!document.hasFocus())return}catch{}S.onFocus(Re),A.isEdge?setTimeout(Se):Se()}},S),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:S.renderer.enableKeyboardAccessibility}),R||i||this.$focusScroll=="browser")return O.focus({preventScroll:!0});var Re=O.style.top;O.style.position="fixed",O.style.top="0px";try{var ze=O.getBoundingClientRect().top!=0}catch{return}var We=[];if(ze)for(var ot=O.parentElement;ot&&ot.nodeType==1;)We.push(ot),ot.setAttribute("ace_nocontext",!0),!ot.parentElement&&ot.getRootNode?ot=ot.getRootNode().host:ot=ot.parentElement;O.focus({preventScroll:!0}),ze&&We.forEach(function(dt){dt.removeAttribute("ace_nocontext")}),setTimeout(function(){O.style.position="",O.style.top=="0px"&&(O.style.top=Re)},0)},this.blur=function(){O.blur()},this.isFocused=function(){return he},S.on("beforeEndOperation",function(){var Re=S.curOp,ze=Re&&Re.command&&Re.command.name;if(ze!="insertstring"){var We=ze&&(Re.docChanged||Re.selectionChanged);M&&We&&(j=O.value="",we()),Se()}});var ge=function(Re,ze){for(var We=ze,ot=1;ot<=Re-K&&ot<2*Q+1;ot++)We+=S.session.getLine(Re-ot).length+1;return We},Se=v?function(Re){if(!(!he||D&&!Re||k)){Re||(Re="");var ze=` - ab`+Re+`cde fg -`;ze!=O.value&&(O.value=j=ze);var We=4,ot=4+(Re.length||(S.selection.isEmpty()?0:1));(P!=We||ee!=ot)&&O.setSelectionRange(We,ot),P=We,ee=ot}}:function(){if(!(M||k)&&!(!he&&!X)){M=!0;var Re=0,ze=0,We="";if(S.session){var ot=S.selection,dt=ot.getRange(),Ge=ot.cursor.row;Ge===ae+1?(K=ae+1,ae=K+2*Q):Ge===K-1?(ae=K-1,K=ae-2*Q):(Geae+1)&&(K=Ge>Q?Ge-Q:0,ae=Ge>Q?Ge+Q:2*Q);for(var Xe=[],qe=K;qe<=ae;qe++)Xe.push(S.session.getLine(qe));if(We=Xe.join(` -`),Re=ge(dt.start.row,dt.start.column),ze=ge(dt.end.row,dt.end.column),dt.start.rowae){var ut=S.session.getLine(ae+1);ze=dt.end.row>ae+1?ut.length:dt.end.column,ze+=We.length+1,We=We+` -`+ut}else C&&Ge>0&&(We=` -`+We,ze+=1,Re+=1);We.length>u&&(Re=j.length&&Re.value===j&&j&&Re.selectionEnd!==ee},ne=function(Re){M||(D?D=!1:ce(O)?(S.selectAll(),Se()):C&&O.selectionStart!=P&&Se())},fe=null;this.setInputHandler=function(Re){fe=Re},this.getInputHandler=function(){return fe};var X=!1,ye=function(Re,ze){if(X&&(X=!1),N)return Se(),Re&&S.onPaste(Re),N=!1,"";for(var We=O.selectionStart,ot=O.selectionEnd,dt=P,Ge=j.length-ee,Xe=Re,qe=Re.length-We,gt=Re.length-ot,ut=0;dt>0&&j[ut]==Re[ut];)ut++,dt--;for(Xe=Xe.slice(ut),ut=1;Ge>0&&j.length-ut>P-1&&j[j.length-ut]==Re[Re.length-ut];)ut++,Ge--;qe-=ut-1,gt-=ut-1;var tt=Xe.length-ut+1;if(tt<0&&(dt=-tt,tt=0),Xe=Xe.slice(0,tt),!ze&&!Xe&&!qe&&!dt&&!Ge&&!gt)return"";k=!0;var Ct=!1;return A.isAndroid&&Xe==". "&&(Xe=" ",Ct=!0),Xe&&!dt&&!Ge&&!qe&&!gt||F?S.onTextInput(Xe):S.onTextInput(Xe,{extendLeft:dt,extendRight:Ge,restoreStart:qe,restoreEnd:gt}),k=!1,j=Re,P=We,ee=ot,J=gt,Ct?` -`:Xe},Ce=function(Re){if(M)return ie();if(Re&&Re.inputType){if(Re.inputType=="historyUndo")return S.execCommand("undo");if(Re.inputType=="historyRedo")return S.execCommand("redo")}var ze=O.value,We=ye(ze,!0);(ze.length>u+100||x.test(We)||C&&P<1&&P==ee)&&Se()},$e=function(Re,ze,We){var ot=Re.clipboardData||window.clipboardData;if(!(!ot||l)){var dt=c||We?"Text":"text/plain";try{return ze?ot.setData(dt,ze)!==!1:ot.getData(dt)}catch(Ge){if(!We)return $e(Ge,ze,!0)}}},ke=function(Re,ze){var We=S.getCopyText();if(!We)return V.preventDefault(Re);$e(Re,We)?(v&&(Se(We),D=We,setTimeout(function(){D=!1},10)),ze?S.onCut():S.onCopy(),V.preventDefault(Re)):(D=!0,O.value=We,O.select(),setTimeout(function(){D=!1,Se(),ze?S.onCut():S.onCopy()}))},Ne=function(Re){ke(Re,!0)},Ve=function(Re){ke(Re,!1)},Oe=function(Re){var ze=$e(Re);h.pasteCancelled()||(typeof ze=="string"?(ze&&S.onPaste(ze,Re),A.isIE&&setTimeout(Se),V.preventDefault(Re)):(O.value="",N=!0))};V.addCommandKeyListener(O,S.onCommandKey.bind(S),S),V.addListener(O,"select",ne,S),V.addListener(O,"input",Ce,S),V.addListener(O,"cut",Ne,S),V.addListener(O,"copy",Ve,S),V.addListener(O,"paste",Oe,S),(!("oncut"in O)||!("oncopy"in O)||!("onpaste"in O))&&V.addListener($,"keydown",function(Re){if(!(A.isMac&&!Re.metaKey||!Re.ctrlKey))switch(Re.keyCode){case 67:Ve(Re);break;case 86:Oe(Re);break;case 88:Ne(Re);break}},S);var Fe=function(Re){if(!(M||!S.onCompositionStart||S.$readOnly)&&(M={},!F)){Re.data&&(M.useTextareaForIME=!1),setTimeout(ie,0),S._signal("compositionStart"),S.on("mousedown",se);var ze=S.getSelectionRange();ze.end.row=ze.start.row,ze.end.column=ze.start.column,M.markerRange=ze,M.selectionStart=P,S.onCompositionStart(M),M.useTextareaForIME?(j=O.value="",P=0,ee=0):(O.msGetInputContext&&(M.context=O.msGetInputContext()),O.getInputContext&&(M.context=O.getInputContext()))}},ie=function(){if(!(!M||!S.onCompositionUpdate||S.$readOnly)){if(F)return se();if(M.useTextareaForIME)S.onCompositionUpdate(O.value);else{var Re=O.value;ye(Re),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+ee-M.selectionStart+J)}}},we=function(Re){!S.onCompositionEnd||S.$readOnly||(M=!1,S.onCompositionEnd(),S.off("mousedown",se),Re&&Ce())};function se(){H=!0,O.blur(),O.focus(),H=!1}var ue=m.delayedCall(ie,50).schedule.bind(null,null);function pe(Re){Re.keyCode==27&&O.value.lengthee&&j[gt]==` -`?ut=d.end:qeee&&j.slice(0,gt).split(` -`).length>2?ut=d.down:gt>ee&&j[gt-1]==" "?(ut=d.right,tt=g.option):(gt>ee||gt==ee&&ee!=P&&qe==gt)&&(ut=d.right),qe!==gt&&(tt|=g.shift),ut){var Ct=ze.onCommandKey({},tt,ut);if(!Ct&&ze.commands){ut=d.keyCodeToString(ut);var Gt=ze.commands.findKeyCommand(tt,ut);Gt&&ze.execCommand(Gt)}P=qe,ee=gt,Se("")}}};document.addEventListener("selectionchange",Ge),ze.on("destroy",function(){document.removeEventListener("selectionchange",Ge)})}this.destroy=function(){O.parentElement&&O.parentElement.removeChild(O)}};T.TextInput=_,T.$setUserAgentForTests=function($,S){C=$,v=S}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(y,T,G){var V=y("../lib/useragent"),L=0,A=550,s=function(){function l(c){c.$clickSelection=null;var i=c.editor;i.setDefaultHandler("mousedown",this.onMouseDown.bind(c)),i.setDefaultHandler("dblclick",this.onDoubleClick.bind(c)),i.setDefaultHandler("tripleclick",this.onTripleClick.bind(c)),i.setDefaultHandler("quadclick",this.onQuadClick.bind(c)),i.setDefaultHandler("mousewheel",this.onMouseWheel.bind(c));var u=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];u.forEach(function(d){c[d]=this[d]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}return l.prototype.onMouseDown=function(c){var i=c.inSelection(),u=c.getDocumentPosition();this.mousedownEvent=c;var d=this.editor,g=c.getButton();if(g!==0){var v=d.getSelectionRange(),x=v.isEmpty();(x||g==1)&&d.selection.moveToPosition(u),g==2&&(d.textInput.onContextMenu(c.domEvent),V.isMozilla||c.preventDefault());return}if(this.mousedownEvent.time=Date.now(),i&&!d.isFocused()&&(d.focus(),this.$focusTimeout&&!this.$clickSelection&&!d.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(c);return}return this.captureMouse(c),this.startSelect(u,c.domEvent._clicks>1),c.preventDefault()},l.prototype.startSelect=function(c,i){c=c||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var u=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?u.selection.selectToPosition(c):i||u.selection.moveToPosition(c),i||this.select(),u.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var c,i=this.editor,u=i.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var d=this.$clickSelection.comparePoint(u);if(d==-1)c=this.$clickSelection.end;else if(d==1)c=this.$clickSelection.start;else{var g=h(this.$clickSelection,u);u=g.cursor,c=g.anchor}i.selection.setSelectionAnchor(c.row,c.column)}i.selection.selectToPosition(u),i.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(c){var i,u=this.editor,d=u.renderer.screenToTextCoordinates(this.x,this.y),g=u.selection[c](d.row,d.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(g.start),x=this.$clickSelection.comparePoint(g.end);if(v==-1&&x<=0)i=this.$clickSelection.end,(g.end.row!=d.row||g.end.column!=d.column)&&(d=g.start);else if(x==1&&v>=0)i=this.$clickSelection.start,(g.start.row!=d.row||g.start.column!=d.column)&&(d=g.end);else if(v==-1&&x==1)d=g.end,i=g.start;else{var C=h(this.$clickSelection,d);d=C.cursor,i=C.anchor}u.selection.setSelectionAnchor(i.row,i.column)}u.selection.selectToPosition(d),u.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var c=m(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),i=Date.now();(c>L||i-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(c){var i=c.getDocumentPosition(),u=this.editor,d=u.session,g=d.getBracketRange(i);g?(g.isEmpty()&&(g.start.column--,g.end.column++),this.setState("select")):(g=u.selection.getWordRange(i.row,i.column),this.setState("selectByWords")),this.$clickSelection=g,this.select()},l.prototype.onTripleClick=function(c){var i=c.getDocumentPosition(),u=this.editor;this.setState("selectByLines");var d=u.getSelectionRange();d.isMultiLine()&&d.contains(i.row,i.column)?(this.$clickSelection=u.selection.getLineRange(d.start.row),this.$clickSelection.end=u.selection.getLineRange(d.end.row).end):this.$clickSelection=u.selection.getLineRange(i.row),this.select()},l.prototype.onQuadClick=function(c){var i=this.editor;i.selectAll(),this.$clickSelection=i.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(c){if(!c.getAccelKey()){c.getShiftKey()&&c.wheelY&&!c.wheelX&&(c.wheelX=c.wheelY,c.wheelY=0);var i=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var u=this.$lastScroll,d=c.domEvent.timeStamp,g=d-u.t,v=g?c.wheelX/g:u.vx,x=g?c.wheelY/g:u.vy;g=1&&i.renderer.isScrollableBy(c.wheelX*c.speed,0)&&(_=!0),C<=1&&i.renderer.isScrollableBy(0,c.wheelY*c.speed)&&(_=!0),_)u.allowed=d;else if(d-u.allowed=u.length&&(u=void 0),{value:u&&u[v++],done:!u}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},A=y("./lib/dom"),s=y("./range").Range,m="ace_tooltip",h=function(){function u(d){this.isOpen=!1,this.$element=null,this.$parentNode=d}return u.prototype.$init=function(){return this.$element=A.createElement("div"),this.$element.className=m,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},u.prototype.getElement=function(){return this.$element||this.$init()},u.prototype.setText=function(d){this.getElement().textContent=d},u.prototype.setHtml=function(d){this.getElement().innerHTML=d},u.prototype.setPosition=function(d,g){this.getElement().style.left=d+"px",this.getElement().style.top=g+"px"},u.prototype.setClassName=function(d){A.addCssClass(this.getElement(),d)},u.prototype.setTheme=function(d){this.$element.className=m+" "+(d.isDark?"ace_dark ":"")+(d.cssClass||"")},u.prototype.show=function(d,g,v){d!=null&&this.setText(d),g!=null&&v!=null&&this.setPosition(g,v),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=m,this.isOpen=!1)},u.prototype.getHeight=function(){return this.getElement().offsetHeight},u.prototype.getWidth=function(){return this.getElement().offsetWidth},u.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},u}(),l=function(){function u(){this.popups=[]}return u.prototype.addPopup=function(d){this.popups.push(d),this.updatePopups()},u.prototype.removePopup=function(d){var g=this.popups.indexOf(d);g!==-1&&(this.popups.splice(g,1),this.updatePopups())},u.prototype.updatePopups=function(){var d,g,v,x;this.popups.sort(function(k,R){return R.priority-k.priority});var C=[];try{for(var _=L(this.popups),$=_.next();!$.done;$=_.next()){var S=$.value,O=!0;try{for(var D=(v=void 0,L(C)),N=D.next();!N.done;N=D.next()){var M=N.value;if(this.doPopupsOverlap(M,S)){O=!1;break}}}catch(k){v={error:k}}finally{try{N&&!N.done&&(x=D.return)&&x.call(D)}finally{if(v)throw v.error}}O?C.push(S):S.hide()}}catch(k){d={error:k}}finally{try{$&&!$.done&&(g=_.return)&&g.call(_)}finally{if(d)throw d.error}}},u.prototype.doPopupsOverlap=function(d,g){var v=d.getElement().getBoundingClientRect(),x=g.getElement().getBoundingClientRect();return v.leftx.left&&v.topx.top},u}(),c=new l;T.popupManager=c,T.Tooltip=h;var i=function(u){V(d,u);function d(g){g===void 0&&(g=document.body);var v=u.call(this,g)||this;v.timeout=void 0,v.lastT=0,v.idleTime=350,v.lastEvent=void 0,v.onMouseOut=v.onMouseOut.bind(v),v.onMouseMove=v.onMouseMove.bind(v),v.waitForHover=v.waitForHover.bind(v),v.hide=v.hide.bind(v);var x=v.getElement();return x.style.whiteSpace="pre-wrap",x.style.pointerEvents="auto",x.addEventListener("mouseout",v.onMouseOut),x.tabIndex=-1,x.addEventListener("blur",(function(){x.contains(document.activeElement)||this.hide()}).bind(v)),v}return d.prototype.addToEditor=function(g){g.on("mousemove",this.onMouseMove),g.on("mousedown",this.hide),g.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},d.prototype.removeFromEditor=function(g){g.off("mousemove",this.onMouseMove),g.off("mousedown",this.hide),g.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},d.prototype.onMouseMove=function(g,v){this.lastEvent=g,this.lastT=Date.now();var x=v.$mouseHandler.isMousePressed;if(this.isOpen){var C=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(C.row,C.column)||x||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||x||(this.lastEvent=g,this.timeout=setTimeout(this.waitForHover,this.idleTime))},d.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var g=Date.now()-this.lastT;if(this.idleTime-g>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-g);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},d.prototype.isOutsideOfText=function(g){var v=g.editor,x=g.getDocumentPosition(),C=v.session.getLine(x.row);if(x.column==C.length){var _=v.renderer.pixelToScreenCoordinates(g.clientX,g.clientY),$=v.session.documentToScreenPosition(x.row,x.column);if($.column!=_.column||$.row!=_.row)return!0}return!1},d.prototype.setDataProvider=function(g){this.$gatherData=g},d.prototype.showForRange=function(g,v,x,C){if(!(C&&C!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var _=g.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(_.theme)),this.isOpen=!0,this.addMarker(v,g.session),this.range=s.fromPoints(v.start,v.end);var $=this.getElement();$.innerHTML="",$.appendChild(x),$.style.display="block";var S=_.textToScreenCoordinates(v.start.row,v.start.column),O=$.clientHeight,D=_.scroller.getBoundingClientRect(),N=!0;S.pageY-O<0&&(N=!1),N?S.pageY-=O:S.pageY+=_.lineHeight,$.style.maxWidth=D.width-(S.pageX-D.left)+"px",this.setPosition(S.pageX,S.pageY)}},d.prototype.addMarker=function(g,v){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=v,this.marker=v&&v.addMarker(g,"ace_highlight-marker","text")},d.prototype.hide=function(g){!g&&document.activeElement==this.getElement()||g&&g.target&&(g.type!="keydown"||g.ctrlKey||g.metaKey)&&this.$element.contains(g.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},d.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("mousewheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},d.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("mousewheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},d.prototype.onMouseOut=function(g){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!g.relatedTarget||g.relatedTarget==this.getElement()||g&&g.currentTarget.contains(g.relatedTarget)||g.relatedTarget.classList.contains("ace_content")||this.hide())},d}(h);T.HoverTooltip=i}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(y,T,G){var V=this&&this.__extends||function(){var i=function(u,d){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var x in v)Object.prototype.hasOwnProperty.call(v,x)&&(g[x]=v[x])},i(u,d)};return function(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");i(u,d);function g(){this.constructor=u}u.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)}}(),L=this&&this.__values||function(i){var u=typeof Symbol=="function"&&Symbol.iterator,d=u&&i[u],g=0;if(d)return d.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&g>=i.length&&(i=void 0),{value:i&&i[g++],done:!i}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")},A=y("../lib/dom"),s=y("../lib/event"),m=y("../tooltip").Tooltip,h=y("../config").nls;function l(i){var u=i.editor,d=u.renderer.$gutterLayer,g=new c(u);i.editor.setDefaultHandler("guttermousedown",function(S){if(!(!u.isFocused()||S.getButton()!=0)){var O=d.getRegion(S);if(O!="foldWidgets"){var D=S.getDocumentPosition().row,N=u.session.selection;if(S.getShiftKey())N.selectTo(D,0);else{if(S.domEvent.detail==2)return u.selectAll(),S.preventDefault();i.$clickSelection=u.selection.getLineRange(D)}return i.setState("selectByLines"),i.captureMouse(S),S.preventDefault()}}});var v,x;function C(){var S=x.getDocumentPosition().row,O=u.session.getLength();if(S==O){var D=u.renderer.pixelToScreenCoordinates(0,x.y).row,N=x.$pos;if(D>u.session.documentToScreenRow(N.row,N.column))return _()}if(g.showTooltip(S),!!g.isOpen)if(u.on("mousewheel",_),i.$tooltipFollowsMouse)$(x);else{var M=x.getGutterRow(),k=d.$lines.get(M);if(k){var R=k.element.querySelector(".ace_gutter_annotation"),F=R.getBoundingClientRect(),H=g.getElement().style;H.left=F.right+"px",H.top=F.bottom+"px"}else $(x)}}function _(){v&&(v=clearTimeout(v)),g.isOpen&&(g.hideTooltip(),u.off("mousewheel",_))}function $(S){g.setPosition(S.x,S.y)}i.editor.setDefaultHandler("guttermousemove",function(S){var O=S.domEvent.target||S.domEvent.srcElement;if(A.hasCssClass(O,"ace_fold-widget"))return _();g.isOpen&&i.$tooltipFollowsMouse&&$(S),x=S,!v&&(v=setTimeout(function(){v=null,x&&!i.isMousePressed?C():_()},50))}),s.addListener(u.renderer.$gutter,"mouseout",function(S){x=null,!(!g.isOpen||v)&&(v=setTimeout(function(){v=null,_()},50))},u),u.on("changeSession",_),u.on("input",_)}T.GutterHandler=l;var c=function(i){V(u,i);function u(d){var g=i.call(this,d.container)||this;return g.editor=d,g}return u.prototype.setPosition=function(d,g){var v=window.innerWidth||document.documentElement.clientWidth,x=window.innerHeight||document.documentElement.clientHeight,C=this.getWidth(),_=this.getHeight();d+=15,g+=15,d+C>v&&(d-=d+C-v),g+_>x&&(g-=20+_),m.prototype.setPosition.call(this,d,g)},Object.defineProperty(u,"annotationLabels",{get:function(){return{error:{singular:h("error"),plural:h("errors")},warning:{singular:h("warning"),plural:h("warnings")},info:{singular:h("information message"),plural:h("information messages")}}},enumerable:!1,configurable:!0}),u.prototype.showTooltip=function(d){var g=this.editor.renderer.$gutterLayer,v=g.$annotations[d],x;v?x={text:Array.from(v.text),type:Array.from(v.type)}:x={text:[],type:[]};var C=g.session.getFoldLine(d);if(C&&g.$showFoldedAnnotations){for(var _={error:[],warning:[],info:[]},$,S=d+1;S<=C.end.row;S++)if(g.$annotations[S])for(var O=0;O
    ").concat(x.text[S]);M[x.type[S].replace("_fold","")].push(R)}var F=[].concat(M.error,M.warning,M.info).join("
    ");this.setHtml(F),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},u.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},u.annotationsToSummaryString=function(d){var g,v,x=[],C=["error","warning","info"];try{for(var _=L(C),$=_.next();!$.done;$=_.next()){var S=$.value;if(d[S].length){var O=d[S].length===1?u.annotationLabels[S].singular:u.annotationLabels[S].plural;x.push("".concat(d[S].length," ").concat(O))}}}catch(D){g={error:D}}finally{try{$&&!$.done&&(v=_.return)&&v.call(_)}finally{if(g)throw g.error}}return x.join(", ")},u}(m);T.GutterTooltip=c}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(y,T,G){var V=y("../lib/event"),L=y("../lib/useragent"),A=function(){function s(m,h){this.domEvent=m,this.editor=h,this.x=this.clientX=m.clientX,this.y=this.clientY=m.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return s.prototype.stopPropagation=function(){V.stopPropagation(this.domEvent),this.propagationStopped=!0},s.prototype.preventDefault=function(){V.preventDefault(this.domEvent),this.defaultPrevented=!0},s.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},s.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},s.prototype.getGutterRow=function(){var m=this.getDocumentPosition().row,h=this.editor.session.documentToScreenRow(m,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return h-l},s.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var m=this.editor,h=m.getSelectionRange();if(h.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=h.contains(l.row,l.column)}return this.$inSelection},s.prototype.getButton=function(){return V.getButton(this.domEvent)},s.prototype.getShiftKey=function(){return this.domEvent.shiftKey},s.prototype.getAccelKey=function(){return L.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},s}();T.MouseEvent=A}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(y,T,G){var V=y("../lib/dom"),L=y("../lib/event"),A=y("../lib/useragent"),s=200,m=200,h=5;function l(i){var u=i.editor,d=V.createElement("div");d.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",d.textContent=" ";var g=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];g.forEach(function(ge){i[ge]=this[ge]},this),u.on("mousedown",this.onMouseDown.bind(i));var v=u.container,x,C,_,$,S,O,D=0,N,M,k,R,F;this.onDragStart=function(ge){if(this.cancelDrag||!v.draggable){var Se=this;return setTimeout(function(){Se.startSelect(),Se.captureMouse(ge)},0),ge.preventDefault()}S=u.getSelectionRange();var ce=ge.dataTransfer;ce.effectAllowed=u.getReadOnly()?"copy":"copyMove",u.container.appendChild(d),ce.setDragImage&&ce.setDragImage(d,0,0),setTimeout(function(){u.container.removeChild(d)}),ce.clearData(),ce.setData("Text",u.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(ge){if(v.draggable=!1,M=!1,this.setState(null),!u.getReadOnly()){var Se=ge.dataTransfer.dropEffect;!N&&Se=="move"&&u.session.remove(u.getSelectionRange()),u.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ge){if(!(u.getReadOnly()||!Q(ge.dataTransfer)))return C=ge.clientX,_=ge.clientY,x||ee(),D++,ge.dataTransfer.dropEffect=N=he(ge),L.preventDefault(ge)},this.onDragOver=function(ge){if(!(u.getReadOnly()||!Q(ge.dataTransfer)))return C=ge.clientX,_=ge.clientY,x||(ee(),D++),K!==null&&(K=null),ge.dataTransfer.dropEffect=N=he(ge),L.preventDefault(ge)},this.onDragLeave=function(ge){if(D--,D<=0&&x)return J(),N=null,L.preventDefault(ge)},this.onDrop=function(ge){if(O){var Se=ge.dataTransfer;if(M)switch(N){case"move":S.contains(O.row,O.column)?S={start:O,end:O}:S=u.moveText(S,O);break;case"copy":S=u.moveText(S,O,!0);break}else{var ce=Se.getData("Text");S={start:O,end:u.session.insert(O,ce)},u.focus(),N=null}return J(),L.preventDefault(ge)}},L.addListener(v,"dragstart",this.onDragStart.bind(i),u),L.addListener(v,"dragend",this.onDragEnd.bind(i),u),L.addListener(v,"dragenter",this.onDragEnter.bind(i),u),L.addListener(v,"dragover",this.onDragOver.bind(i),u),L.addListener(v,"dragleave",this.onDragLeave.bind(i),u),L.addListener(v,"drop",this.onDrop.bind(i),u);function H(ge,Se){var ce=Date.now(),ne=!Se||ge.row!=Se.row,fe=!Se||ge.column!=Se.column;if(!R||ne||fe)u.moveCursorToPosition(ge),R=ce,F={x:C,y:_};else{var X=c(F.x,F.y,C,_);X>h?R=null:ce-R>=m&&(u.renderer.scrollCursorIntoView(),R=null)}}function j(ge,Se){var ce=Date.now(),ne=u.renderer.layerConfig.lineHeight,fe=u.renderer.layerConfig.characterWidth,X=u.renderer.scroller.getBoundingClientRect(),ye={x:{left:C-X.left,right:X.right-C},y:{top:_-X.top,bottom:X.bottom-_}},Ce=Math.min(ye.x.left,ye.x.right),$e=Math.min(ye.y.top,ye.y.bottom),ke={row:ge.row,column:ge.column};Ce/fe<=2&&(ke.column+=ye.x.left=s&&u.renderer.scrollCursorIntoView(ke):k=ce:k=null}function P(){var ge=O;O=u.renderer.screenToTextCoordinates(C,_),H(O,ge),j(O,ge)}function ee(){S=u.selection.toOrientedRange(),x=u.session.addMarker(S,"ace_selection",u.getSelectionStyle()),u.clearSelection(),u.isFocused()&&u.renderer.$cursorLayer.setBlinking(!1),clearInterval($),P(),$=setInterval(P,20),D=0,L.addListener(document,"mousemove",ae)}function J(){clearInterval($),u.session.removeMarker(x),x=null,u.selection.fromOrientedRange(S),u.isFocused()&&!M&&u.$resetCursorStyle(),S=null,O=null,D=0,k=null,R=null,L.removeListener(document,"mousemove",ae)}var K=null;function ae(){K==null&&(K=setTimeout(function(){K!=null&&x&&J()},20))}function Q(ge){var Se=ge.types;return!Se||Array.prototype.some.call(Se,function(ce){return ce=="text/plain"||ce=="Text"})}function he(ge){var Se=["copy","copymove","all","uninitialized"],ce=["move","copymove","linkmove","all","uninitialized"],ne=A.isMac?ge.altKey:ge.ctrlKey,fe="uninitialized";try{fe=ge.dataTransfer.effectAllowed.toLowerCase()}catch{}var X="none";return ne&&Se.indexOf(fe)>=0?X="copy":ce.indexOf(fe)>=0?X="move":Se.indexOf(fe)>=0&&(X="copy"),X}}(function(){this.dragWait=function(){var i=Date.now()-this.mousedownEvent.time;i>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var i=this.editor.container;i.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(i){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var i=this.editor,u=i.container;u.draggable=!0,i.renderer.$cursorLayer.setBlinking(!1),i.setStyle("ace_dragging");var d=A.isWin?"default":"move";i.renderer.setCursorStyle(d),this.setState("dragReady")},this.onMouseDrag=function(i){var u=this.editor.container;if(A.isIE&&this.state=="dragReady"){var d=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>3&&u.dragDrop()}if(this.state==="dragWait"){var d=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>0&&(u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(i){if(this.$dragEnabled){this.mousedownEvent=i;var u=this.editor,d=i.inSelection(),g=i.getButton(),v=i.domEvent.detail||1;if(v===1&&g===0&&d){if(i.editor.inMultiSelectMode&&(i.getAccelKey()||i.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=i.domEvent.target||i.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),u.getDragDelay()){if(A.isWebKit){this.cancelDrag=!0;var C=u.container;C.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(i,this.onMouseDrag.bind(this)),i.defaultPrevented=!0}}}}).call(l.prototype);function c(i,u,d,g){return Math.sqrt(Math.pow(d-i,2)+Math.pow(g-u,2))}T.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(y,T,G){var V=y("./mouse_event").MouseEvent,L=y("../lib/event"),A=y("../lib/dom");T.addTouchListeners=function(s,m){var h="scroll",l,c,i,u,d,g,v=0,x,C=0,_=0,$=0,S,O;function D(){var H=window.navigator&&window.navigator.clipboard,j=!1,P=function(){var J=m.getCopyText(),K=m.session.getUndoManager().hasUndo();O.replaceChild(A.buildDom(j?["span",!J&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],J&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],J&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],H&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],K&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),O.firstChild)},ee=function(J){var K=J.target.getAttribute("action");if(K=="more"||!j)return j=!j,P();K=="paste"?H.readText().then(function(ae){m.execCommand(K,ae)}):K&&((K=="cut"||K=="copy")&&(H?H.writeText(m.getCopyText()):document.execCommand("copy")),m.execCommand(K)),O.firstChild.style.display="none",j=!1,K!="openCommandPallete"&&m.focus()};O=A.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(J){h="menu",J.stopPropagation(),J.preventDefault(),m.textInput.focus()},ontouchend:function(J){J.stopPropagation(),J.preventDefault(),ee(J)},onclick:ee},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],m.container)}function N(){O||D();var H=m.selection.cursor,j=m.renderer.textToScreenCoordinates(H.row,H.column),P=m.renderer.textToScreenCoordinates(0,0).pageX,ee=m.renderer.scrollLeft,J=m.container.getBoundingClientRect();O.style.top=j.pageY-J.top-3+"px",j.pageX-J.left=2?m.selection.getLineRange(x.row):m.session.getBracketRange(x);H&&!H.isEmpty()?m.selection.setRange(H):m.selection.selectWord(),h="wait"}L.addListener(s,"contextmenu",function(H){if(S){var j=m.textInput.getElement();j.focus()}},m),L.addListener(s,"touchstart",function(H){var j=H.touches;if(d||j.length>1){clearTimeout(d),d=null,i=-1,h="zoom";return}S=m.$mouseHandler.isMousePressed=!0;var P=m.renderer.layerConfig.lineHeight,ee=m.renderer.layerConfig.lineHeight,J=H.timeStamp;u=J;var K=j[0],ae=K.clientX,Q=K.clientY;Math.abs(l-ae)+Math.abs(c-Q)>P&&(i=-1),l=H.clientX=ae,c=H.clientY=Q,_=$=0;var he=new V(H,m);if(x=he.getDocumentPosition(),J-i<500&&j.length==1&&!v)C++,H.preventDefault(),H.button=0,R();else{C=0;var ge=m.selection.cursor,Se=m.selection.isEmpty()?ge:m.selection.anchor,ce=m.renderer.$cursorLayer.getPixelPosition(ge,!0),ne=m.renderer.$cursorLayer.getPixelPosition(Se,!0),fe=m.renderer.scroller.getBoundingClientRect(),X=m.renderer.layerConfig.offset,ye=m.renderer.scrollLeft,Ce=function(Ne,Ve){return Ne=Ne/ee,Ve=Ve/P-.75,Ne*Ne+Ve*Ve};if(H.clientXke?"cursor":"anchor"),ke<3.5?h="anchor":$e<3.5?h="cursor":h="scroll",d=setTimeout(k,450)}i=J},m),L.addListener(s,"touchend",function(H){S=m.$mouseHandler.isMousePressed=!1,g&&clearInterval(g),h=="zoom"?(h="",v=0):d?(m.selection.moveToPosition(x),v=0,N()):h=="scroll"?(F(),M()):N(),clearTimeout(d),d=null},m),L.addListener(s,"touchmove",function(H){d&&(clearTimeout(d),d=null);var j=H.touches;if(!(j.length>1||h=="zoom")){var P=j[0],ee=l-P.clientX,J=c-P.clientY;if(h=="wait")if(ee*ee+J*J>4)h="cursor";else return H.preventDefault();l=P.clientX,c=P.clientY,H.clientX=P.clientX,H.clientY=P.clientY;var K=H.timeStamp,ae=K-u;if(u=K,h=="scroll"){var Q=new V(H,m);Q.speed=1,Q.wheelX=ee,Q.wheelY=J,10*Math.abs(ee)0)if(ke==16){for(Oe=Ve;Oe-1){for(Oe=Ve;Oe=0&&ne[we]==S;we--)Se[we]=V}}}function ae(ge,Se,ce){if(!(L=ge){for(X=fe+1;X=ge;)X++;for(ye=fe,Ce=X-1;ye=Se.length||(X=ce[ne-1])!=g&&X!=v||(ye=Se[ne+1])!=g&&ye!=v?x:(A&&(ye=v),ye==X?ye:x);case D:return X=ne>0?ce[ne-1]:C,X==g&&ne+10&&ce[ne-1]==g)return g;if(A)return x;for($e=ne+1,Ce=Se.length;$e=1425&&ke<=2303||ke==64286;if(X=Se[$e],Ne&&(X==d||X==$))return d}return ne<1||(X=Se[ne-1])==C?x:ce[ne-1];case C:return A=!1,s=!0,V;case _:return m=!0,x;case k:case R:case H:case j:case F:A=!1;case P:return x}}function he(ge){var Se=ge.charCodeAt(0),ce=Se>>8;return ce==0?Se>191?u:ee[Se]:ce==5?/[\u0591-\u05f4]/.test(ge)?d:u:ce==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ge)?M:/[\u0660-\u0669\u066b-\u066c]/.test(ge)?v:Se==1642?N:/[\u06f0-\u06f9]/.test(ge)?g:$:ce==32&&Se<=8287?J[Se&255]:ce==254&&Se>=65136?$:x}T.L=u,T.R=d,T.EN=g,T.ON_R=3,T.AN=4,T.R_H=5,T.B=6,T.RLE=7,T.DOT="·",T.doBidiReorder=function(ge,Se,ce){if(ge.length<2)return{};var ne=ge.split(""),fe=new Array(ne.length),X=new Array(ne.length),ye=[];V=ce?i:c,K(ne,ye,ne.length,Se);for(var Ce=0;Ce$&&Se[Ce]0&&ne[Ce-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(ne[Ce])&&(ye[Ce-1]=ye[Ce]=T.R_H,Ce++);ne[ne.length-1]===T.DOT&&(ye[ne.length-1]=T.B),ne[0]==="‫"&&(ye[0]=T.RLE);for(var Ce=0;Ce=0&&(h=this.session.$docRowCache[c])}return h},m.prototype.getSplitIndex=function(){var h=0,l=this.session.$screenRowCache;if(l.length)for(var c,i=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-h>0&&(c=this.session.$getRowCacheIndex(l,this.currentRow-h-1),c===i);)i=c,h++;else h=this.currentRow;return h},m.prototype.updateRowLine=function(h,l){h===void 0&&(h=this.getDocumentRow());var c=h===this.session.getLength()-1,i=c?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(h),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var u=this.session.$wrapData[h];u&&(l===void 0&&(l=this.getSplitIndex()),l>0&&u.length?(this.wrapIndent=u.indent,this.wrapOffset=this.wrapIndent*this.charWidths[V.L],this.line=ll?this.session.getOverwrite()?h:h-1:l,i=V.getVisualFromLogicalIdx(c,this.bidiMap),u=this.bidiMap.bidiLevels,d=0;!this.session.getOverwrite()&&h<=l&&u[i]%2!==0&&i++;for(var g=0;gl&&u[i]%2===0&&(d+=this.charWidths[u[i]]),this.wrapIndent&&(d+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(d+=this.rtlLineOffset),d},m.prototype.getSelections=function(h,l){var c=this.bidiMap,i=c.bidiLevels,u,d=[],g=0,v=Math.min(h,l)-this.wrapIndent,x=Math.max(h,l)-this.wrapIndent,C=!1,_=!1,$=0;this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var S,O=0;O=v&&Si+g/2;){if(i+=g,u===d.length-1){g=0;break}g=this.charWidths[d[++u]]}return u>0&&d[u-1]%2!==0&&d[u]%2===0?(c0&&d[u-1]%2===0&&d[u]%2!==0?l=1+(c>i?this.bidiMap.logicalFromVisual[u]:this.bidiMap.logicalFromVisual[u-1]):this.isRtlDir&&u===d.length-1&&g===0&&d[u-1]%2===0||!this.isRtlDir&&u===0&&d[u]%2!==0?l=1+this.bidiMap.logicalFromVisual[u]:(u>0&&d[u-1]%2!==0&&g!==0&&u--,l=this.bidiMap.logicalFromVisual[u]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},m}();T.BidiHandler=s}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(y,T,G){var V=y("./lib/oop"),L=y("./lib/lang"),A=y("./lib/event_emitter").EventEmitter,s=y("./range").Range,m=function(){function h(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var c=this;this.cursor.on("change",function(i){c.$cursorChanged=!0,c.$silent||c._emit("changeCursor"),!c.$isEmpty&&!c.$silent&&c._emit("changeSelection"),!c.$keepDesiredColumnOnChange&&i.old.column!=i.value.column&&(c.$desiredColumn=null)}),this.anchor.on("change",function(){c.$anchorChanged=!0,!c.$isEmpty&&!c.$silent&&c._emit("changeSelection")})}return h.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},h.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},h.prototype.getCursor=function(){return this.lead.getPosition()},h.prototype.setAnchor=function(l,c){this.$isEmpty=!1,this.anchor.setPosition(l,c)},h.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},h.prototype.getSelectionLead=function(){return this.lead.getPosition()},h.prototype.isBackwards=function(){var l=this.anchor,c=this.lead;return l.row>c.row||l.row==c.row&&l.column>c.column},h.prototype.getRange=function(){var l=this.anchor,c=this.lead;return this.$isEmpty?s.fromPoints(c,c):this.isBackwards()?s.fromPoints(c,l):s.fromPoints(l,c)},h.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},h.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},h.prototype.setRange=function(l,c){var i=c?l.end:l.start,u=c?l.start:l.end;this.$setSelection(i.row,i.column,u.row,u.column)},h.prototype.$setSelection=function(l,c,i,u){if(!this.$silent){var d=this.$isEmpty,g=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,c),this.cursor.setPosition(i,u),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||d!=this.$isEmpty||g)&&this._emit("changeSelection")}},h.prototype.$moveSelection=function(l){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),l.call(this)},h.prototype.selectTo=function(l,c){this.$moveSelection(function(){this.moveCursorTo(l,c)})},h.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},h.prototype.moveTo=function(l,c){this.clearSelection(),this.moveCursorTo(l,c)},h.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},h.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},h.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},h.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},h.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},h.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},h.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},h.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},h.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},h.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},h.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},h.prototype.getWordRange=function(l,c){if(typeof c>"u"){var i=l||this.lead;l=i.row,c=i.column}return this.session.getWordRange(l,c)},h.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},h.prototype.selectAWord=function(){var l=this.getCursor(),c=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(c)},h.prototype.getLineRange=function(l,c){var i=typeof l=="number"?l:this.lead.row,u,d=this.session.getFoldLine(i);return d?(i=d.start.row,u=d.end.row):u=i,c===!0?new s(i,0,u,this.session.getLine(u).length):new s(i,0,u+1,0)},h.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},h.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},h.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},h.prototype.wouldMoveIntoSoftTab=function(l,c,i){var u=l.column,d=l.column+c;return i<0&&(u=l.column-c,d=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(u,d).split(" ").length-1==c},h.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),c;if(c=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(l.column===0)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var i=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,i,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-i):this.moveCursorBy(0,-1)}},h.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),c;if(c=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(c.end.row,c.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(c.column=u)}}this.moveCursorTo(c.row,c.column)},h.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,c=this.doc.getLine(l).length;this.moveCursorTo(l,c)},h.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},h.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,c=this.lead.column,i=this.doc.getLine(l),u=i.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var d=this.session.getFoldAt(l,c,1);if(d){this.moveCursorTo(d.end.row,d.end.column);return}if(this.session.nonTokenRe.exec(u)&&(c+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,u=i.substring(c)),c>=i.length){this.moveCursorTo(l,i.length),this.moveCursorRight(),l0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(d)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,c)},h.prototype.$shortWordEndIndex=function(l){var c=0,i,u=/\s/,d=this.session.tokenRe;if(d.lastIndex=0,this.session.tokenRe.exec(l))c=this.session.tokenRe.lastIndex;else{for(;(i=l[c])&&u.test(i);)c++;if(c<1){for(d.lastIndex=0;(i=l[c])&&!d.test(i);)if(d.lastIndex=0,c++,u.test(i))if(c>2){c--;break}else{for(;(i=l[c])&&u.test(i);)c++;if(c>2)break}}}return d.lastIndex=0,c},h.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,c=this.lead.column,i=this.doc.getLine(l),u=i.substring(c),d=this.session.getFoldAt(l,c,1);if(d)return this.moveCursorTo(d.end.row,d.end.column);if(c==i.length){var g=this.doc.getLength();do l++,u=this.doc.getLine(l);while(l0&&/^\s*$/.test(u));c=u.length,/\s+$/.test(u)||(u="")}var d=L.stringReverse(u),g=this.$shortWordEndIndex(d);return this.moveCursorTo(l,c-g)},h.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},h.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},h.prototype.moveCursorBy=function(l,c){var i=this.session.documentToScreenPosition(this.lead.row,this.lead.column),u;if(c===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(u=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(u/this.session.$bidiHandler.charWidths[0])):u=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var d=this.session.lineWidgets[this.lead.row];l<0?l-=d.rowsAbove||0:l>0&&(l+=d.rowCount-(d.rowsAbove||0))}var g=this.session.screenToDocumentPosition(i.row+l,i.column,u);l!==0&&c===0&&g.row===this.lead.row&&(g.column,this.lead.column),this.moveCursorTo(g.row,g.column+c,c===0)},h.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},h.prototype.moveCursorTo=function(l,c,i){var u=this.session.getFoldAt(l,c,1);u&&(l=u.start.row,c=u.start.column),this.$keepDesiredColumnOnChange=!0;var d=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(d.charAt(c))&&d.charAt(c-1)&&(this.lead.row==l&&this.lead.column==c+1?c=c-1:c=c+1),this.lead.setPosition(l,c),this.$keepDesiredColumnOnChange=!1,i||(this.$desiredColumn=null)},h.prototype.moveCursorToScreen=function(l,c,i){var u=this.session.screenToDocumentPosition(l,c);this.moveCursorTo(u.row,u.column,i)},h.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},h.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},h.prototype.toOrientedRange=function(l){var c=this.getRange();return l?(l.start.column=c.start.column,l.start.row=c.start.row,l.end.column=c.end.column,l.end.row=c.end.row):l=c,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},h.prototype.getRangeOfMovements=function(l){var c=this.getCursor();try{l(this);var i=this.getCursor();return s.fromPoints(c,i)}catch{return s.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},h.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(c){var i=c.clone();return i.isBackwards=c.cursor==c.start,i});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},h.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var c=l.length;c--;){var i=s.fromPoints(l[c].start,l[c].end);l[c].isBackwards&&(i.cursor=i.start),this.addRange(i,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},h.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(l[c]))return!1;return!0},h}();m.prototype.setSelectionAnchor=m.prototype.setAnchor,m.prototype.getSelectionAnchor=m.prototype.getAnchor,m.prototype.setSelectionRange=m.prototype.setRange,V.implement(m.prototype,A),T.Selection=m}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(y,T,G){var V=y("./lib/report_error").reportError,L=2e3,A=function(){function s(m){this.states=m,this.regExps={},this.matchMappings={};for(var h in this.states){for(var l=this.states[h],c=[],i=0,u=this.matchMappings[h]={defaultToken:"text"},d="g",g=[],v=0;v1?x.onMatch=this.$applyToken:x.onMatch=x.token),_>1&&(/\\\d/.test(x.regex)?C=x.regex.replace(/\\([0-9]+)/g,function($,S){return"\\"+(parseInt(S,10)+i+1)}):(_=1,C=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&g.push(x)),u[i]=v,i+=_,c.push(C),x.onMatch||(x.onMatch=null)}}c.length||(u[0]=0,c.push("$")),g.forEach(function($){$.splitRegex=this.createSplitterRegexp($.regex,d)},this),this.regExps[h]=new RegExp("("+c.join(")|(")+")|($)",d)}}return s.prototype.$setMaxTokenCount=function(m){L=m|0},s.prototype.$applyToken=function(m){var h=this.splitRegex.exec(m).slice(1),l=this.token.apply(this,h);if(typeof l=="string")return[{type:l,value:m}];for(var c=[],i=0,u=l.length;ix){var N=m.substring(x,D-O.length);_.type==$?_.value+=N:(_.type&&v.push(_),_={type:$,value:N})}for(var M=0;ML){for(C>2*m.length&&this.reportError("infinite loop with in ace tokenizer",{startState:h,line:m});x1&&l[0]!==c&&l.unshift("#tmp",c),{tokens:v,state:l.length?l:c}},s}();A.prototype.reportError=V,T.Tokenizer=A}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(y,T,G){var V=y("../lib/deep_copy").deepCopy,L=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(m,h){if(!h){for(var l in m)this.$rules[l]=m[l];return}for(var l in m){for(var c=m[l],i=0;i=this.$rowTokens.length;){if(this.$row+=1,s||(s=this.$session.getLength()),this.$row>=s)return this.$row=s-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},A.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},A.prototype.getCurrentTokenRow=function(){return this.$row},A.prototype.getCurrentTokenColumn=function(){var s=this.$rowTokens,m=this.$tokenIndex,h=s[m].start;if(h!==void 0)return h;for(h=0;m>0;)m-=1,h+=s[m].value.length;return h},A.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},A.prototype.getCurrentTokenRange=function(){var s=this.$rowTokens[this.$tokenIndex],m=this.getCurrentTokenColumn();return new V(this.$row,m,this.$row,m+s.value.length)},A}();T.TokenIterator=L}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(y,T,G){var V=y("../../lib/oop"),L=y("../behaviour").Behaviour,A=y("../../token_iterator").TokenIterator,s=y("../../lib/lang"),m=["text","paren.rparen","rparen","paren","punctuation.operator"],h=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,c={},i={'"':'"',"'":"'"},u=function(v){var x=-1;if(v.multiSelect&&(x=v.selection.index,c.rangeCount!=v.multiSelect.rangeCount&&(c={rangeCount:v.multiSelect.rangeCount})),c[x])return l=c[x];l=c[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(v,x,C,_){var $=v.end.row-v.start.row;return{text:C+x+_,selection:[0,v.start.column+1,$,v.end.column+($?0:1)]}},g=function(v){v=v||{},this.add("braces","insertion",function(x,C,_,$,S){var O=_.getCursorPosition(),D=$.doc.getLine(O.row);if(S=="{"){u(_);var N=_.getSelectionRange(),M=$.doc.getTextRange(N);if(M!==""&&M!=="{"&&_.getWrapBehavioursEnabled())return d(N,M,"{","}");if(g.isSaneInsertion(_,$))return/[\]\}\)]/.test(D[O.column])||_.inMultiSelectMode||v.braces?(g.recordAutoInsert(_,$,"}"),{text:"{}",selection:[1,1]}):(g.recordMaybeInsert(_,$,"{"),{text:"{",selection:[1,1]})}else if(S=="}"){u(_);var k=D.substring(O.column,O.column+1);if(k=="}"){var R=$.$findOpeningBracket("}",{column:O.column+1,row:O.row});if(R!==null&&g.isAutoInsertedClosing(O,D,S))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(S==` -`||S==`\r -`){u(_);var F="";g.isMaybeInsertedClosing(O,D)&&(F=s.stringRepeat("}",l.maybeInsertedBrackets),g.clearMaybeInsertedClosing());var k=D.substring(O.column,O.column+1);if(k==="}"){var H=$.findMatchingBracket({row:O.row,column:O.column+1},"}");if(!H)return null;var j=this.$getIndent($.getLine(H.row))}else if(F)var j=this.$getIndent(D);else{g.clearMaybeInsertedClosing();return}var P=j+$.getTabString();return{text:` -`+P+` -`+j+F,selection:[1,P.length,1,P.length]}}else g.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,C,_,$,S){var O=$.doc.getTextRange(S);if(!S.isMultiLine()&&O=="{"){u(_);var D=$.doc.getLine(S.start.row),N=D.substring(S.end.column,S.end.column+1);if(N=="}")return S.end.column++,S;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,C,_,$,S){if(S=="("){u(_);var O=_.getSelectionRange(),D=$.doc.getTextRange(O);if(D!==""&&_.getWrapBehavioursEnabled())return d(O,D,"(",")");if(g.isSaneInsertion(_,$))return g.recordAutoInsert(_,$,")"),{text:"()",selection:[1,1]}}else if(S==")"){u(_);var N=_.getCursorPosition(),M=$.doc.getLine(N.row),k=M.substring(N.column,N.column+1);if(k==")"){var R=$.$findOpeningBracket(")",{column:N.column+1,row:N.row});if(R!==null&&g.isAutoInsertedClosing(N,M,S))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,C,_,$,S){var O=$.doc.getTextRange(S);if(!S.isMultiLine()&&O=="("){u(_);var D=$.doc.getLine(S.start.row),N=D.substring(S.start.column+1,S.start.column+2);if(N==")")return S.end.column++,S}}),this.add("brackets","insertion",function(x,C,_,$,S){if(S=="["){u(_);var O=_.getSelectionRange(),D=$.doc.getTextRange(O);if(D!==""&&_.getWrapBehavioursEnabled())return d(O,D,"[","]");if(g.isSaneInsertion(_,$))return g.recordAutoInsert(_,$,"]"),{text:"[]",selection:[1,1]}}else if(S=="]"){u(_);var N=_.getCursorPosition(),M=$.doc.getLine(N.row),k=M.substring(N.column,N.column+1);if(k=="]"){var R=$.$findOpeningBracket("]",{column:N.column+1,row:N.row});if(R!==null&&g.isAutoInsertedClosing(N,M,S))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,C,_,$,S){var O=$.doc.getTextRange(S);if(!S.isMultiLine()&&O=="["){u(_);var D=$.doc.getLine(S.start.row),N=D.substring(S.start.column+1,S.start.column+2);if(N=="]")return S.end.column++,S}}),this.add("string_dquotes","insertion",function(x,C,_,$,S){var O=$.$mode.$quotes||i;if(S.length==1&&O[S]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(S)!=-1)return;u(_);var D=S,N=_.getSelectionRange(),M=$.doc.getTextRange(N);if(M!==""&&(M.length!=1||!O[M])&&_.getWrapBehavioursEnabled())return d(N,M,D,D);if(!M){var k=_.getCursorPosition(),R=$.doc.getLine(k.row),F=R.substring(k.column-1,k.column),H=R.substring(k.column,k.column+1),j=$.getTokenAt(k.row,k.column),P=$.getTokenAt(k.row,k.column+1);if(F=="\\"&&j&&/escape/.test(j.type))return null;var ee=j&&/string|escape/.test(j.type),J=!P||/string|escape/.test(P.type),K;if(H==D)K=ee!==J,K&&/string\.end/.test(P.type)&&(K=!1);else{if(ee&&!J||ee&&J)return null;var ae=$.$mode.tokenRe;ae.lastIndex=0;var Q=ae.test(F);ae.lastIndex=0;var he=ae.test(H),ge=$.$mode.$pairQuotesAfter,Se=ge&&ge[D]&&ge[D].test(F);if(!Se&&Q||he||H&&!/[\s;,.})\]\\]/.test(H))return null;var ce=R[k.column-2];if(F==D&&(ce==D||ae.test(ce)))return null;K=!0}return{text:K?D+D:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,C,_,$,S){var O=$.$mode.$quotes||i,D=$.doc.getTextRange(S);if(!S.isMultiLine()&&O.hasOwnProperty(D)){u(_);var N=$.doc.getLine(S.start.row),M=N.substring(S.start.column+1,S.start.column+2);if(M==D)return S.end.column++,S}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(x,C,_,$,S){if(x==="doc-start"&&(S===` -`||S===`\r -`)&&_.selection.isEmpty()){var O=_.getCursorPosition(),D=$.doc.getLine(O.row),N=$.doc.getLine(O.row+1),M=this.$getIndent(D);if(/\s*\*/.test(N))return/^\s*\*/.test(D)?{text:S+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:S+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(D.substring(0,O.column)))return{text:S+M+" * "+S+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}}})};g.isSaneInsertion=function(v,x){var C=v.getCursorPosition(),_=new A(x,C.row,C.column);if(!this.$matchTokenType(_.getCurrentToken()||"text",m)){if(/[)}\]]/.test(v.session.getLine(C.row)[C.column]))return!0;var $=new A(x,C.row,C.column+1);if(!this.$matchTokenType($.getCurrentToken()||"text",m))return!1}return _.stepForward(),_.getCurrentTokenRow()!==C.row||this.$matchTokenType(_.getCurrentToken()||"text",h)},g.$matchTokenType=function(v,x){return x.indexOf(v.type||v)>-1},g.recordAutoInsert=function(v,x,C){var _=v.getCursorPosition(),$=x.doc.getLine(_.row);this.isAutoInsertedClosing(_,$,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=_.row,l.autoInsertedLineEnd=C+$.substr(_.column),l.autoInsertedBrackets++},g.recordMaybeInsert=function(v,x,C){var _=v.getCursorPosition(),$=x.doc.getLine(_.row);this.isMaybeInsertedClosing(_,$)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=_.row,l.maybeInsertedLineStart=$.substr(0,_.column)+C,l.maybeInsertedLineEnd=$.substr(_.column),l.maybeInsertedBrackets++},g.isAutoInsertedClosing=function(v,x,C){return l.autoInsertedBrackets>0&&v.row===l.autoInsertedRow&&C===l.autoInsertedLineEnd[0]&&x.substr(v.column)===l.autoInsertedLineEnd},g.isMaybeInsertedClosing=function(v,x){return l.maybeInsertedBrackets>0&&v.row===l.maybeInsertedRow&&x.substr(v.column)===l.maybeInsertedLineEnd&&x.substr(0,v.column)==l.maybeInsertedLineStart},g.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},g.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},V.inherits(g,L),T.CstyleBehaviour=g}),ace.define("ace/unicode",["require","exports","module"],function(y,T,G){for(var V=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],L=0,A=[],s=0;s2?ce%S!=S-1:ce%S==0}}else{if(!this.blockComment)return!1;var D=this.blockComment.start,N=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+h.escapeRegExp(D)+")"),k=new RegExp("(?:"+h.escapeRegExp(N)+")\\s*$"),R=function(K,ae){H(K,ae)||(!C||/\S/.test(K))&&(x.insertInLine({row:ae,column:K.length},N),x.insertInLine({row:ae,column:$},D))},F=function(K,ae){var Q;(Q=K.match(k))&&x.removeInLine(ae,K.length-Q[0].length,K.length),(Q=K.match(M))&&x.removeInLine(ae,Q[1].length,Q[0].length)},H=function(K,ae){if(M.test(K))return!0;for(var Q=d.getTokens(ae),he=0;heK.length&&(J=K.length)}),$==1/0&&($=J,C=!1,_=!1),O&&$%S!=0&&($=Math.floor($/S)*S),ee(_?F:R)},this.toggleBlockComment=function(u,d,g,v){var x=this.blockComment;if(x){!x.start&&x[0]&&(x=x[0]);var C=new l(d,v.row,v.column),_=C.getCurrentToken();d.selection;var $=d.selection.toOrientedRange(),S,O;if(_&&/comment/.test(_.type)){for(var D,N;_&&/comment/.test(_.type);){var M=_.value.indexOf(x.start);if(M!=-1){var k=C.getCurrentTokenRow(),R=C.getCurrentTokenColumn()+M;D=new c(k,R,k,R+x.start.length);break}_=C.stepBackward()}for(var C=new l(d,v.row,v.column),_=C.getCurrentToken();_&&/comment/.test(_.type);){var M=_.value.indexOf(x.end);if(M!=-1){var k=C.getCurrentTokenRow(),R=C.getCurrentTokenColumn()+M;N=new c(k,R,k,R+x.end.length);break}_=C.stepForward()}N&&d.remove(N),D&&(d.remove(D),S=D.start.row,O=-x.start.length)}else O=x.start.length,S=g.start.row,d.insert(g.end,x.end),d.insert(g.start,x.start);$.start.row==S&&($.start.column+=O),$.end.row==S&&($.end.column+=O),d.selection.fromOrientedRange($)}},this.getNextLineIndent=function(u,d,g){return this.$getIndent(d)},this.checkOutdent=function(u,d,g){return!1},this.autoOutdent=function(u,d,g){},this.$getIndent=function(u){return u.match(/^\s*/)[0]},this.createWorker=function(u){return null},this.createModeDelegates=function(u){this.$embeds=[],this.$modes={};for(var d in u)if(u[d]){var g=u[d],v=g.prototype.$id,x=V.$modes[v];x||(V.$modes[v]=x=new g),V.$modes[d]||(V.$modes[d]=x),this.$embeds.push(d),this.$modes[d]=x}for(var C=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],d=0;d"u"?this.setPosition(c.row,c.column):this.setPosition(c,i)}return h.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},h.prototype.getDocument=function(){return this.document},h.prototype.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row)&&!(l.start.row>this.row)){var c=m(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}},h.prototype.setPosition=function(l,c,i){var u;if(i?u={row:l,column:c}:u=this.$clipPositionToDocument(l,c),!(this.row==u.row&&this.column==u.column)){var d={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:d,value:u})}},h.prototype.detach=function(){this.document.off("change",this.$onChange)},h.prototype.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},h.prototype.$clipPositionToDocument=function(l,c){var i={};return l>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):l<0?(i.row=0,i.column=0):(i.row=l,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,c))),c<0&&(i.column=0),i},h}();A.prototype.$insertRight=!1,V.implement(A.prototype,L);function s(h,l,c){var i=c?h.column<=l.column:h.column=u&&(c=u-1,i=void 0);var d=this.getLine(c);return i==null&&(i=d.length),i=Math.min(Math.max(i,0),d.length),{row:c,column:i}},l.prototype.clonePos=function(c){return{row:c.row,column:c.column}},l.prototype.pos=function(c,i){return{row:c,column:i}},l.prototype.$clipPosition=function(c){var i=this.getLength();return c.row>=i?(c.row=Math.max(0,i-1),c.column=this.getLine(i-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},l.prototype.insertFullLines=function(c,i){c=Math.min(Math.max(c,0),this.getLength());var u=0;c0,d=i=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(c,i){if(c instanceof s||(c=s.fromPoints(c.start,c.end)),i.length===0&&c.isEmpty())return c.start;if(i==this.getTextRange(c))return c.end;this.remove(c);var u;return i?u=this.insert(c.start,i):u=c.start,u},l.prototype.applyDeltas=function(c){for(var i=0;i=0;i--)this.revertDelta(c[i])},l.prototype.applyDelta=function(c,i){var u=c.action=="insert";(u?c.lines.length<=1&&!c.lines[0]:!s.comparePoints(c.start,c.end))||(u&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(L(this.$lines,c,i),this._signal("change",c)))},l.prototype.$safeApplyDelta=function(c){var i=this.$lines.length;(c.action=="remove"&&c.start.row20){l.running=setTimeout(l.$worker,20);break}}l.currentLine=i,u==-1&&(u=i),g<=u&&l.fireUpdateEvent(g,u)}}}return s.prototype.setTokenizer=function(m){this.tokenizer=m,this.lines=[],this.states=[],this.start(0)},s.prototype.setDocument=function(m){this.doc=m,this.lines=[],this.states=[],this.stop()},s.prototype.fireUpdateEvent=function(m,h){var l={first:m,last:h};this._signal("update",{data:l})},s.prototype.start=function(m){this.currentLine=Math.min(m||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},s.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},s.prototype.$updateOnChange=function(m){var h=m.start.row,l=m.end.row-h;if(l===0)this.lines[h]=null;else if(m.action=="remove")this.lines.splice(h,l+1,null),this.states.splice(h,l+1,null);else{var c=Array(l+1);c.unshift(h,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(h,this.currentLine,this.doc.getLength()),this.stop()},s.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},s.prototype.getTokens=function(m){return this.lines[m]||this.$tokenizeRow(m)},s.prototype.getState=function(m){return this.currentLine==m&&this.$tokenizeRow(m),this.states[m]||"start"},s.prototype.$tokenizeRow=function(m){var h=this.doc.getLine(m),l=this.states[m-1],c=this.tokenizer.getLineTokens(h,l,m);return this.states[m]+""!=c.state+""?(this.states[m]=c.state,this.lines[m+1]=null,this.currentLine>m+1&&(this.currentLine=m+1)):this.currentLine==m&&(this.currentLine=m+1),this.lines[m]=c.tokens},s.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},s}();V.implement(A.prototype,L),T.BackgroundTokenizer=A}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(y,T,G){var V=y("./lib/lang"),L=y("./range").Range,A=function(){function s(m,h,l){l===void 0&&(l="text"),this.setRegexp(m),this.clazz=h,this.type=l}return s.prototype.setRegexp=function(m){this.regExp+""!=m+""&&(this.regExp=m,this.cache=[])},s.prototype.update=function(m,h,l,c){if(this.regExp)for(var i=c.firstRow,u=c.lastRow,d={},g=i;g<=u;g++){var v=this.cache[g];v==null&&(v=V.getMatchOffsets(l.getLine(g),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function($){return new L(g,$.offset,g,$.offset+$.length)}),this.cache[g]=v.length?v:"");for(var x=v.length;x--;){var C=v[x].toScreenRange(l),_=C.toString();d[_]||(d[_]=!0,h.drawSingleLineMarker(m,C,this.clazz,c))}}},s}();A.prototype.MAX_RANGES=500,T.SearchHighlight=A}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(y,T,G){var V=y("../range").Range,L=function(){function A(s,m){this.foldData=s,Array.isArray(m)?this.folds=m:m=this.folds=[m];var h=m[m.length-1];this.range=new V(m[0].start.row,m[0].start.column,h.end.row,h.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(l){l.setFoldLine(this)},this)}return A.prototype.shiftRow=function(s){this.start.row+=s,this.end.row+=s,this.folds.forEach(function(m){m.start.row+=s,m.end.row+=s})},A.prototype.addFold=function(s){if(s.sameRow){if(s.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(s),this.folds.sort(function(m,h){return-m.range.compareEnd(h.start.row,h.start.column)}),this.range.compareEnd(s.start.row,s.start.column)>0?(this.end.row=s.end.row,this.end.column=s.end.column):this.range.compareStart(s.end.row,s.end.column)<0&&(this.start.row=s.start.row,this.start.column=s.start.column)}else if(s.start.row==this.end.row)this.folds.push(s),this.end.row=s.end.row,this.end.column=s.end.column;else if(s.end.row==this.start.row)this.folds.unshift(s),this.start.row=s.start.row,this.start.column=s.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");s.foldLine=this},A.prototype.containsRow=function(s){return s>=this.start.row&&s<=this.end.row},A.prototype.walk=function(s,m,h){var l=0,c=this.folds,i,u,d,g=!0;m==null&&(m=this.end.row,h=this.end.column);for(var v=0;v0)){var g=L(m,u.start);return d===0?h&&g!==0?-i-2:i:g>0||g===0&&!h?i:-i-1}}return-i-1},s.prototype.add=function(m){var h=!m.isEmpty(),l=this.pointIndex(m.start,h);l<0&&(l=-l-1);var c=this.pointIndex(m.end,h,l);return c<0?c=-c-1:c++,this.ranges.splice(l,c-l,m)},s.prototype.addList=function(m){for(var h=[],l=m.length;l--;)h.push.apply(h,this.add(m[l]));return h},s.prototype.substractPoint=function(m){var h=this.pointIndex(m);if(h>=0)return this.ranges.splice(h,1)},s.prototype.merge=function(){var m=[],h=this.ranges;h=h.sort(function(d,g){return L(d.start,g.start)});for(var l=h[0],c,i=1;i=0},s.prototype.containsPoint=function(m){return this.pointIndex(m)>=0},s.prototype.rangeAtPoint=function(m){var h=this.pointIndex(m);if(h>=0)return this.ranges[h]},s.prototype.clipRows=function(m,h){var l=this.ranges;if(l[0].start.row>h||l[l.length-1].start.row=c)break}if(m.action=="insert")for(var x=i-c,C=-h.column+l.column;dc)break;if(v.start.row==c&&v.start.column>=h.column&&(v.start.column==h.column&&this.$bias<=0||(v.start.column+=C,v.start.row+=x)),v.end.row==c&&v.end.column>=h.column){if(v.end.column==h.column&&this.$bias<0)continue;v.end.column==h.column&&C>0&&dv.start.column&&v.end.column==u[d+1].start.column&&(v.end.column-=C),v.end.column+=C,v.end.row+=x}}else for(var x=c-i,C=h.column-l.column;di)break;v.end.rowh.column)&&(v.end.column=h.column,v.end.row=h.row):(v.end.column+=C,v.end.row+=x):v.end.row>i&&(v.end.row+=x),v.start.rowh.column)&&(v.start.column=h.column,v.start.row=h.row):(v.start.column+=C,v.start.row+=x):v.start.row>i&&(v.start.row+=x)}if(x!=0&&d=l)return d;if(d.end.row>l)return null}return null},this.getNextFoldLine=function(l,c){var i=this.$foldData,u=0;for(c&&(u=i.indexOf(c)),u==-1&&(u=0),u;u=l)return d}return null},this.getFoldedRowCount=function(l,c){for(var i=this.$foldData,u=c-l+1,d=0;d=c){x=l?u-=c-x:u=0);break}else v>=l&&(x>=l?u-=v-x:u-=v-l+1)}return u},this.$addFoldLine=function(l){return this.$foldData.push(l),this.$foldData.sort(function(c,i){return c.start.row-i.start.row}),l},this.addFold=function(l,c){var i=this.$foldData,u=!1,d;l instanceof A?d=l:(d=new A(c,l),d.collapseChildren=c.collapseChildren),this.$clipRangeToDocument(d.range);var g=d.start.row,v=d.start.column,x=d.end.row,C=d.end.column,_=this.getFoldAt(g,v,1),$=this.getFoldAt(x,C,-1);if(_&&$==_)return _.addSubFold(d);_&&!_.range.isStart(g,v)&&this.removeFold(_),$&&!$.range.isEnd(x,C)&&this.removeFold($);var S=this.getFoldsInRange(d.range);S.length>0&&(this.removeFolds(S),d.collapseChildren||S.forEach(function(M){d.addSubFold(M)}));for(var O=0;O0&&this.foldAll(l.start.row+1,l.end.row,l.collapseChildren-1),l.subFolds=[]},this.expandFolds=function(l){l.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(l,c){var i,u;if(l==null)i=new V(0,0,this.getLength(),0),c==null&&(c=!0);else if(typeof l=="number")i=new V(l,0,l,this.getLine(l).length);else if("row"in l)i=V.fromPoints(l,l);else{if(Array.isArray(l))return u=[],l.forEach(function(g){u=u.concat(this.unfold(g))},this),u;i=l}u=this.getFoldsInRangeList(i);for(var d=u;u.length==1&&V.comparePoints(u[0].start,i.start)<0&&V.comparePoints(u[0].end,i.end)>0;)this.expandFolds(u),u=this.getFoldsInRangeList(i);if(c!=!1?this.removeFolds(u):this.expandFolds(u),d.length)return d},this.isRowFolded=function(l,c){return!!this.getFoldLine(l,c)},this.getRowFoldEnd=function(l,c){var i=this.getFoldLine(l,c);return i?i.end.row:l},this.getRowFoldStart=function(l,c){var i=this.getFoldLine(l,c);return i?i.start.row:l},this.getFoldDisplayLine=function(l,c,i,u,d){u==null&&(u=l.start.row),d==null&&(d=0),c==null&&(c=l.end.row),i==null&&(i=this.getLine(c).length);var g=this.doc,v="";return l.walk(function(x,C,_,$){if(!(CC)break;while(d&&v.test(d.type)&&!/^comment.start/.test(d.type));d=u.stepBackward()}else d=u.getCurrentToken();return x.end.row=u.getCurrentTokenRow(),x.end.column=u.getCurrentTokenColumn(),/^comment.end/.test(d.type)||(x.end.column+=d.value.length-2),x}},this.foldAll=function(l,c,i,u){i==null&&(i=1e5);var d=this.foldWidgets;if(d){c=c||this.getLength(),l=l||0;for(var g=l;g=l&&(g=v.end.row,v.collapseChildren=i,this.addFold("...",v))}}},this.foldToLevel=function(l){for(this.foldAll();l-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var l=this;this.foldAll(null,null,null,function(c){for(var i=l.getTokens(c),u=0;u=0;){var g=i[u];if(g==null&&(g=i[u]=this.getFoldWidget(u)),g=="start"){var v=this.getFoldWidgetRange(u);if(d||(d=v),v&&v.end.row>=l)break}u--}return{range:u!==-1&&v,firstRange:d}},this.onFoldWidgetClick=function(l,c){c instanceof m&&(c=c.domEvent);var i={children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey},u=this.$toggleFoldWidget(l,i);if(!u){var d=c.target||c.srcElement;d&&/ace_fold-widget/.test(d.className)&&(d.className+=" ace_invalid")}},this.$toggleFoldWidget=function(l,c){if(this.getFoldWidget){var i=this.getFoldWidget(l),u=this.getLine(l),d=i==="end"?-1:1,g=this.getFoldAt(l,d===-1?0:u.length,d);if(g)return c.children||c.all?this.removeFold(g):this.expandFold(g),g;var v=this.getFoldWidgetRange(l,!0);if(v&&!v.isMultiLine()&&(g=this.getFoldAt(v.start.row,v.start.column,1),g&&v.isEqual(g.range)))return this.removeFold(g),g;if(c.siblings){var x=this.getParentFoldRangeData(l);if(x.range)var C=x.range.start.row+1,_=x.range.end.row;this.foldAll(C,_,c.all?1e4:0)}else c.children?(_=v?v.end.row:this.getLength(),this.foldAll(l+1,_,c.all?1e4:0)):v&&(c.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(l){var c=this.selection.getCursor().row;c=this.getRowFoldStart(c);var i=this.$toggleFoldWidget(c,{});if(!i){var u=this.getParentFoldRangeData(c,!0);if(i=u.range||u.firstRange,i){c=i.start.row;var d=this.getFoldAt(c,this.getLine(c).length,1);d?this.removeFold(d):this.addFold("...",i)}}},this.updateFoldWidgets=function(l){var c=l.start.row,i=l.end.row-c;if(i===0)this.foldWidgets[c]=null;else if(l.action=="remove")this.foldWidgets.splice(c,i+1,null);else{var u=Array(i+1);u.unshift(c,1),this.foldWidgets.splice.apply(this.foldWidgets,u)}},this.tokenizerUpdateFoldWidgets=function(l){var c=l.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}T.Folding=h}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(y,T,G){var V=y("../token_iterator").TokenIterator,L=y("../range").Range;function A(){this.findMatchingBracket=function(s,m){if(s.column==0)return null;var h=m||this.getLine(s.row).charAt(s.column-1);if(h=="")return null;var l=h.match(/([\(\[\{])|([\)\]\}])/);return l?l[1]?this.$findClosingBracket(l[1],s):this.$findOpeningBracket(l[2],s):null},this.getBracketRange=function(s){var m=this.getLine(s.row),h=!0,l,c=m.charAt(s.column-1),i=c&&c.match(/([\(\[\{])|([\)\]\}])/);if(i||(c=m.charAt(s.column),s={row:s.row,column:s.column+1},i=c&&c.match(/([\(\[\{])|([\)\]\}])/),h=!1),!i)return null;if(i[1]){var u=this.$findClosingBracket(i[1],s);if(!u)return null;l=L.fromPoints(s,u),h||(l.end.column++,l.start.column--),l.cursor=l.end}else{var u=this.$findOpeningBracket(i[2],s);if(!u)return null;l=L.fromPoints(u,s),h||(l.start.column++,l.end.column--),l.cursor=l.start}return l},this.getMatchingBracketRanges=function(s,m){var h=this.getLine(s.row),l=/([\(\[\{])|([\)\]\}])/,c=!m&&h.charAt(s.column-1),i=c&&c.match(l);if(i||(c=(m===void 0||m)&&h.charAt(s.column),s={row:s.row,column:s.column+1},i=c&&c.match(l)),!i)return null;var u=new L(s.row,s.column-1,s.row,s.column),d=i[1]?this.$findClosingBracket(i[1],s):this.$findOpeningBracket(i[2],s);if(!d)return[u];var g=new L(d.row,d.column,d.row,d.column+1);return[u,g]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,m,h){var l=this.$brackets[s],c=1,i=new V(this,m.row,m.column),u=i.getCurrentToken();if(u||(u=i.stepForward()),!!u){h||(h=new RegExp("(\\.?"+u.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var d=m.column-i.getCurrentTokenColumn()-2,g=u.value;;){for(;d>=0;){var v=g.charAt(d);if(v==l){if(c-=1,c==0)return{row:i.getCurrentTokenRow(),column:d+i.getCurrentTokenColumn()}}else v==s&&(c+=1);d-=1}do u=i.stepBackward();while(u&&!h.test(u.type));if(u==null)break;g=u.value,d=g.length-1}return null}},this.$findClosingBracket=function(s,m,h){var l=this.$brackets[s],c=1,i=new V(this,m.row,m.column),u=i.getCurrentToken();if(u||(u=i.stepForward()),!!u){h||(h=new RegExp("(\\.?"+u.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var d=m.column-i.getCurrentTokenColumn();;){for(var g=u.value,v=g.length;d"?l=!0:m.type.indexOf("tag-name")!==-1&&(h=!0));while(m&&!h);return m},this.$findClosingTag=function(s,m){var h,l=m.value,c=m.value,i=0,u=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=s.stepForward();var d=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+m.value.length),g=!1;do if(h=m,m=s.stepForward(),m){if(m.value===">"&&!g){var v=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);g=!0}if(m.type.indexOf("tag-name")!==-1){if(l=m.value,c===l){if(h.value==="<")i++;else if(h.value==="")var _=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);else return}}}else if(c===l&&m.value==="/>"&&(i--,i<0))var x=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),C=x,_=C,v=new L(d.end.row,d.end.column,d.end.row,d.end.column+1)}while(m&&i>=0);if(u&&v&&x&&_&&d&&C)return{openTag:new L(u.start.row,u.start.column,v.end.row,v.end.column),closeTag:new L(x.start.row,x.start.column,_.end.row,_.end.column),openTagName:d,closeTagName:C}},this.$findOpeningTag=function(s,m){var h=s.getCurrentToken(),l=m.value,c=0,i=s.getCurrentTokenRow(),u=s.getCurrentTokenColumn(),d=u+2,g=new L(i,u,i,d);s.stepForward();var v=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+m.value.length);if(m=s.stepForward(),!(!m||m.value!==">")){var x=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do if(m=h,i=s.getCurrentTokenRow(),u=s.getCurrentTokenColumn(),d=u+m.value.length,h=s.stepBackward(),m){if(m.type.indexOf("tag-name")!==-1){if(l===m.value)if(h.value==="<"){if(c++,c>0){var C=new L(i,u,i,d),_=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do m=s.stepForward();while(m&&m.value!==">");var $=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else h.value===""){for(var S=0,O=h;O;){if(O.type.indexOf("tag-name")!==-1&&O.value===l){c--;break}else if(O.value==="<")break;O=s.stepBackward(),S++}for(var D=0;DF&&(this.$docRowCache.splice(F,R),this.$screenRowCache.splice(F,R))},M.prototype.$getRowCacheIndex=function(k,R){for(var F=0,H=k.length-1;F<=H;){var j=F+H>>1,P=k[j];if(R>P)F=j+1;else if(R=R));P++);return H=F[P],H?(H.index=P,H.start=j-H.value.length,H):null},M.prototype.setUndoManager=function(k){if(this.$undoManager=k,this.$informUndoManager&&this.$informUndoManager.cancel(),k){var R=this;k.addSession(this),this.$syncInformUndoManager=function(){R.$informUndoManager.cancel(),R.mergeUndoDeltas=!1},this.$informUndoManager=L.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},M.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},M.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},M.prototype.getTabString=function(){return this.getUseSoftTabs()?L.stringRepeat(" ",this.getTabSize()):" "},M.prototype.setUseSoftTabs=function(k){this.setOption("useSoftTabs",k)},M.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},M.prototype.setTabSize=function(k){this.setOption("tabSize",k)},M.prototype.getTabSize=function(){return this.$tabSize},M.prototype.isTabStop=function(k){return this.$useSoftTabs&&k.column%this.$tabSize===0},M.prototype.setNavigateWithinSoftTabs=function(k){this.setOption("navigateWithinSoftTabs",k)},M.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},M.prototype.setOverwrite=function(k){this.setOption("overwrite",k)},M.prototype.getOverwrite=function(){return this.$overwrite},M.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},M.prototype.addGutterDecoration=function(k,R){this.$decorations[k]||(this.$decorations[k]=""),this.$decorations[k]+=" "+R,this._signal("changeBreakpoint",{})},M.prototype.removeGutterDecoration=function(k,R){this.$decorations[k]=(this.$decorations[k]||"").replace(" "+R,""),this._signal("changeBreakpoint",{})},M.prototype.getBreakpoints=function(){return this.$breakpoints},M.prototype.setBreakpoints=function(k){this.$breakpoints=[];for(var R=0;R0&&(H=!!F.charAt(R-1).match(this.tokenRe)),H||(H=!!F.charAt(R).match(this.tokenRe)),H)var j=this.tokenRe;else if(/^\s+$/.test(F.slice(R-1,R+1)))var j=/\s/;else var j=this.nonTokenRe;var P=R;if(P>0){do P--;while(P>=0&&F.charAt(P).match(j));P++}for(var ee=R;eek&&(k=R.screenWidth)}),this.lineWidgetWidth=k},M.prototype.$computeWidth=function(k){if(this.$modified||k){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var R=this.doc.getAllLines(),F=this.$rowLengthCache,H=0,j=0,P=this.$foldData[j],ee=P?P.start.row:1/0,J=R.length,K=0;Kee){if(K=P.end.row+1,K>=J)break;P=this.$foldData[j++],ee=P?P.start.row:1/0}F[K]==null&&(F[K]=this.$getStringScreenWidth(R[K])[0]),F[K]>H&&(H=F[K])}this.screenWidth=H}},M.prototype.getLine=function(k){return this.doc.getLine(k)},M.prototype.getLines=function(k,R){return this.doc.getLines(k,R)},M.prototype.getLength=function(){return this.doc.getLength()},M.prototype.getTextRange=function(k){return this.doc.getTextRange(k||this.selection.getRange())},M.prototype.insert=function(k,R){return this.doc.insert(k,R)},M.prototype.remove=function(k){return this.doc.remove(k)},M.prototype.removeFullLines=function(k,R){return this.doc.removeFullLines(k,R)},M.prototype.undoChanges=function(k,R){if(k.length){this.$fromUndo=!0;for(var F=k.length-1;F!=-1;F--){var H=k[F];H.action=="insert"||H.action=="remove"?this.doc.revertDelta(H):H.folds&&this.addFolds(H.folds)}!R&&this.$undoSelect&&(k.selectionBefore?this.selection.fromJSON(k.selectionBefore):this.selection.setRange(this.$getUndoSelection(k,!0))),this.$fromUndo=!1}},M.prototype.redoChanges=function(k,R){if(k.length){this.$fromUndo=!0;for(var F=0;Fk.end.column&&(P.start.column+=J),P.end.row==k.end.row&&P.end.column>k.end.column&&(P.end.column+=J)),ee&&P.start.row>=k.end.row&&(P.start.row+=ee,P.end.row+=ee)}if(P.end=this.insert(P.start,H),j.length){var K=k.start,ae=P.start,ee=ae.row-K.row,J=ae.column-K.column;this.addFolds(j.map(function(ge){return ge=ge.clone(),ge.start.row==K.row&&(ge.start.column+=J),ge.end.row==K.row&&(ge.end.column+=J),ge.start.row+=ee,ge.end.row+=ee,ge}))}return P},M.prototype.indentRows=function(k,R,F){F=F.replace(/\t/g,this.getTabString());for(var H=k;H<=R;H++)this.doc.insertInLine({row:H,column:0},F)},M.prototype.outdentRows=function(k){for(var R=k.collapseRows(),F=new c(0,0,0,0),H=this.getTabSize(),j=R.start.row;j<=R.end.row;++j){var P=this.getLine(j);F.start.row=j,F.end.row=j;for(var ee=0;ee0){var H=this.getRowFoldEnd(R+F);if(H>this.doc.getLength()-1)return 0;var j=H-R}else{k=this.$clipRowToDocument(k),R=this.$clipRowToDocument(R);var j=R-k+1}var P=new c(k,0,R,Number.MAX_VALUE),ee=this.getFoldsInRange(P).map(function(K){return K=K.clone(),K.start.row+=j,K.end.row+=j,K}),J=F==0?this.doc.getLines(k,R):this.doc.removeFullLines(k,R);return this.doc.insertFullLines(k+j,J),ee.length&&this.addFolds(ee),j},M.prototype.moveLinesUp=function(k,R){return this.$moveLines(k,R,-1)},M.prototype.moveLinesDown=function(k,R){return this.$moveLines(k,R,1)},M.prototype.duplicateLines=function(k,R){return this.$moveLines(k,R,0)},M.prototype.$clipRowToDocument=function(k){return Math.max(0,Math.min(k,this.doc.getLength()-1))},M.prototype.$clipColumnToRow=function(k,R){return R<0?0:Math.min(this.doc.getLine(k).length,R)},M.prototype.$clipPositionToDocument=function(k,R){if(R=Math.max(0,R),k<0)k=0,R=0;else{var F=this.doc.getLength();k>=F?(k=F-1,R=this.doc.getLine(F-1).length):R=Math.min(this.doc.getLine(k).length,R)}return{row:k,column:R}},M.prototype.$clipRangeToDocument=function(k){k.start.row<0?(k.start.row=0,k.start.column=0):k.start.column=this.$clipColumnToRow(k.start.row,k.start.column);var R=this.doc.getLength()-1;return k.end.row>R?(k.end.row=R,k.end.column=this.doc.getLine(R).length):k.end.column=this.$clipColumnToRow(k.end.row,k.end.column),k},M.prototype.setUseWrapMode=function(k){if(k!=this.$useWrapMode){if(this.$useWrapMode=k,this.$modified=!0,this.$resetRowCache(0),k){var R=this.getLength();this.$wrapData=Array(R),this.$updateWrapData(0,R-1)}this._signal("changeWrapMode")}},M.prototype.getUseWrapMode=function(){return this.$useWrapMode},M.prototype.setWrapLimitRange=function(k,R){(this.$wrapLimitRange.min!==k||this.$wrapLimitRange.max!==R)&&(this.$wrapLimitRange={min:k,max:R},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},M.prototype.adjustWrapLimit=function(k,R){var F=this.$wrapLimitRange;F.max<0&&(F={min:R,max:R});var H=this.$constrainWrapLimit(k,F.min,F.max);return H!=this.$wrapLimit&&H>1?(this.$wrapLimit=H,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},M.prototype.$constrainWrapLimit=function(k,R,F){return R&&(k=Math.max(R,k)),F&&(k=Math.min(F,k)),k},M.prototype.getWrapLimit=function(){return this.$wrapLimit},M.prototype.setWrapLimit=function(k){this.setWrapLimitRange(k,k)},M.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},M.prototype.$updateInternalDataOnChange=function(k){var R=this.$useWrapMode,F=k.action,H=k.start,j=k.end,P=H.row,ee=j.row,J=ee-P,K=null;if(this.$updating=!0,J!=0)if(F==="remove"){this[R?"$wrapData":"$rowLengthCache"].splice(P,J);var ae=this.$foldData;K=this.getFoldsInRange(k),this.removeFolds(K);var Q=this.getFoldLine(j.row),he=0;if(Q){Q.addRemoveChars(j.row,j.column,H.column-j.column),Q.shiftRow(-J);var ge=this.getFoldLine(P);ge&&ge!==Q&&(ge.merge(Q),Q=ge),he=ae.indexOf(Q)+1}for(he;he=j.row&&Q.shiftRow(-J)}ee=P}else{var Se=Array(J);Se.unshift(P,0);var ce=R?this.$wrapData:this.$rowLengthCache;ce.splice.apply(ce,Se);var ae=this.$foldData,Q=this.getFoldLine(P),he=0;if(Q){var ne=Q.range.compareInside(H.row,H.column);ne==0?(Q=Q.split(H.row,H.column),Q&&(Q.shiftRow(J),Q.addRemoveChars(ee,0,j.column-H.column))):ne==-1&&(Q.addRemoveChars(P,0,j.column-H.column),Q.shiftRow(J)),he=ae.indexOf(Q)+1}for(he;he=P&&Q.shiftRow(J)}}else{J=Math.abs(k.start.column-k.end.column),F==="remove"&&(K=this.getFoldsInRange(k),this.removeFolds(K),J=-J);var Q=this.getFoldLine(P);Q&&Q.addRemoveChars(P,H.column,J)}return R&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,R?this.$updateWrapData(P,ee):this.$updateRowLengthCache(P,ee),K},M.prototype.$updateRowLengthCache=function(k,R,F){this.$rowLengthCache[k]=null,this.$rowLengthCache[R]=null},M.prototype.$updateWrapData=function(k,R){var F=this.doc.getAllLines(),H=this.getTabSize(),j=this.$wrapData,P=this.$wrapLimit,ee,J,K=k;for(R=Math.min(R,F.length-1);K<=R;)J=this.getFoldLine(K,J),J?(ee=[],J.walk((function(ae,Q,he,ge){var Se;if(ae!=null){Se=this.$getDisplayTokens(ae,ee.length),Se[0]=C;for(var ce=1;ceR-ge;){var Se=P+R-ge;if(k[Se-1]>=S&&k[Se]>=S){he(Se);continue}if(k[Se]==C||k[Se]==_){for(Se;Se!=P-1&&k[Se]!=C;Se--);if(Se>P){he(Se);continue}for(Se=P+R,Se;Se>2)),P-1);Se>ce&&k[Se]ce&&k[Se]ce&&k[Se]==$;)Se--}else for(;Se>ce&&k[Se]ce){he(++Se);continue}Se=P+R,k[Se]==x&&Se--,he(Se-ge)}return H},M.prototype.$getDisplayTokens=function(k,R){var F=[],H;R=R||0;for(var j=0;j39&&P<48||P>57&&P<64?F.push($):P>=4352&&N(P)?F.push(v,x):F.push(v)}return F},M.prototype.$getStringScreenWidth=function(k,R,F){if(R==0)return[0,0];R==null&&(R=1/0),F=F||0;var H,j;for(j=0;j=4352&&N(H)?F+=2:F+=1,!(F>R));j++);return[F,j]},M.prototype.getRowLength=function(k){var R=1;return this.lineWidgets&&(R+=this.lineWidgets[k]&&this.lineWidgets[k].rowCount||0),!this.$useWrapMode||!this.$wrapData[k]?R:this.$wrapData[k].length+R},M.prototype.getRowLineCount=function(k){return!this.$useWrapMode||!this.$wrapData[k]?1:this.$wrapData[k].length+1},M.prototype.getRowWrapIndent=function(k){if(this.$useWrapMode){var R=this.screenToDocumentPosition(k,Number.MAX_VALUE),F=this.$wrapData[R.row];return F.length&&F[0]=0)var J=ae[Q],j=this.$docRowCache[Q],ge=k>ae[he-1];else var ge=!he;for(var Se=this.getLength()-1,ce=this.getNextFoldLine(j),ne=ce?ce.start.row:1/0;J<=k&&(K=this.getRowLength(j),!(J+K>k||j>=Se));)J+=K,j++,j>ne&&(j=ce.end.row+1,ce=this.getNextFoldLine(j,ce),ne=ce?ce.start.row:1/0),ge&&(this.$docRowCache.push(j),this.$screenRowCache.push(J));if(ce&&ce.start.row<=j)H=this.getFoldDisplayLine(ce),j=ce.start.row;else{if(J+K<=k||j>Se)return{row:Se,column:this.getLine(Se).length};H=this.getLine(j),ce=null}var fe=0,X=Math.floor(k-J);if(this.$useWrapMode){var ye=this.$wrapData[j];ye&&(ee=ye[X],X>0&&ye.length&&(fe=ye.indent,P=ye[X-1]||ye[ye.length-1],H=H.substring(P)))}return F!==void 0&&this.$bidiHandler.isBidiRow(J+X,j,X)&&(R=this.$bidiHandler.offsetToCol(F)),P+=this.$getStringScreenWidth(H,R-fe)[1],this.$useWrapMode&&P>=ee&&(P=ee-1),ce?ce.idxToPosition(P):{row:j,column:P}},M.prototype.documentToScreenPosition=function(k,R){if(typeof R>"u")var F=this.$clipPositionToDocument(k.row,k.column);else F=this.$clipPositionToDocument(k,R);k=F.row,R=F.column;var H=0,j=null,P=null;P=this.getFoldAt(k,R,1),P&&(k=P.start.row,R=P.start.column);var ee,J=0,K=this.$docRowCache,ae=this.$getRowCacheIndex(K,k),Q=K.length;if(Q&&ae>=0)var J=K[ae],H=this.$screenRowCache[ae],he=k>K[Q-1];else var he=!Q;for(var ge=this.getNextFoldLine(J),Se=ge?ge.start.row:1/0;J=Se){if(ee=ge.end.row+1,ee>k)break;ge=this.getNextFoldLine(ee,ge),Se=ge?ge.start.row:1/0}else ee=J+1;H+=this.getRowLength(J),J=ee,he&&(this.$docRowCache.push(J),this.$screenRowCache.push(H))}var ce="";ge&&J>=Se?(ce=this.getFoldDisplayLine(ge,k,R),j=ge.start.row):(ce=this.getLine(k).substring(0,R),j=k);var ne=0;if(this.$useWrapMode){var fe=this.$wrapData[j];if(fe){for(var X=0;ce.length>=fe[X];)H++,X++;ce=ce.substring(fe[X-1]||0,ce.length),ne=X>0?fe.indent:0}}return this.lineWidgets&&this.lineWidgets[J]&&this.lineWidgets[J].rowsAbove&&(H+=this.lineWidgets[J].rowsAbove),{row:H,column:ne+this.$getStringScreenWidth(ce)[0]}},M.prototype.documentToScreenColumn=function(k,R){return this.documentToScreenPosition(k,R).column},M.prototype.documentToScreenRow=function(k,R){return this.documentToScreenPosition(k,R).row},M.prototype.getScreenLength=function(){var k=0,R=null;if(this.$useWrapMode)for(var j=this.$wrapData.length,P=0,H=0,R=this.$foldData[H++],ee=R?R.start.row:1/0;Pee&&(P=R.end.row+1,R=this.$foldData[H++],ee=R?R.start.row:1/0)}else{k=this.getLength();for(var F=this.$foldData,H=0;HF));P++);return[H,P]})},M.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},M}();g.$uid=0,g.prototype.$modes=s.$modes,g.prototype.getValue=g.prototype.toString,g.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},g.prototype.$overwrite=!1,g.prototype.$mode=null,g.prototype.$modeId=null,g.prototype.$scrollTop=0,g.prototype.$scrollLeft=0,g.prototype.$wrapLimit=80,g.prototype.$useWrapMode=!1,g.prototype.$wrapLimitRange={min:null,max:null},g.prototype.lineWidgets=null,g.prototype.isFullWidth=N,V.implement(g.prototype,m);var v=1,x=2,C=3,_=4,$=9,S=10,O=11,D=12;function N(M){return M<4352?!1:M>=4352&&M<=4447||M>=4515&&M<=4519||M>=4602&&M<=4607||M>=9001&&M<=9002||M>=11904&&M<=11929||M>=11931&&M<=12019||M>=12032&&M<=12245||M>=12272&&M<=12283||M>=12288&&M<=12350||M>=12353&&M<=12438||M>=12441&&M<=12543||M>=12549&&M<=12589||M>=12593&&M<=12686||M>=12688&&M<=12730||M>=12736&&M<=12771||M>=12784&&M<=12830||M>=12832&&M<=12871||M>=12880&&M<=13054||M>=13056&&M<=19903||M>=19968&&M<=42124||M>=42128&&M<=42182||M>=43360&&M<=43388||M>=44032&&M<=55203||M>=55216&&M<=55238||M>=55243&&M<=55291||M>=63744&&M<=64255||M>=65040&&M<=65049||M>=65072&&M<=65106||M>=65108&&M<=65126||M>=65128&&M<=65131||M>=65281&&M<=65376||M>=65504&&M<=65510}y("./edit_session/folding").Folding.call(g.prototype),y("./edit_session/bracket_match").BracketMatch.call(g.prototype),s.defineOptions(g.prototype,"session",{wrap:{set:function(M){if(!M||M=="off"?M=!1:M=="free"?M=!0:M=="printMargin"?M=-1:typeof M=="string"&&(M=parseInt(M,10)||!1),this.$wrap!=M)if(this.$wrap=M,!M)this.setUseWrapMode(!1);else{var k=typeof M=="number"?M:null;this.setWrapLimitRange(k,k),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(M){M=M=="auto"?this.$mode.type!="text":M!="text",M!=this.$wrapAsCode&&(this.$wrapAsCode=M,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(M){this.$useWorker=M,this.$stopWorker(),M&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(M){M=parseInt(M),M>0&&this.$tabSize!==M&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=M,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(M){this.setFoldStyle(M)},handlesSet:!0},overwrite:{set:function(M){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(M){this.doc.setNewLineMode(M)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(M){this.setMode(M)},get:function(){return this.$modeId},handlesSet:!0}}),T.EditSession=g}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(y,T,G){var V=y("./lib/lang"),L=y("./lib/oop"),A=y("./range").Range,s=function(){function h(){this.$options={}}return h.prototype.set=function(l){return L.mixin(this.$options,l),this},h.prototype.getOptions=function(){return V.copyObject(this.$options)},h.prototype.setOptions=function(l){this.$options=l},h.prototype.find=function(l){var c=this.$options,i=this.$matchIterator(l,c);if(!i)return!1;var u=null;return i.forEach(function(d,g,v,x){return u=new A(d,g,v,x),g==x&&c.start&&c.start.start&&c.skipCurrent!=!1&&u.isEqual(c.start)?(u=null,!1):!0}),u},h.prototype.findAll=function(l){var c=this.$options;if(!c.needle)return[];this.$assembleRegExp(c);var i=c.range,u=i?l.getLines(i.start.row,i.end.row):l.doc.getAllLines(),d=[],g=c.re;if(c.$isMultiLine){var v=g.length,x=u.length-v,C;e:for(var _=g.offset||0;_<=x;_++){for(var $=0;$D||(d.push(C=new A(_,D,_+v-1,N)),v>2&&(_=_+v-2))}}else for(var M=0;MH&&d[$].end.row==j;)$--;for(d=d.slice(M,$+1),M=0,$=d.length;M<$;M++)d[M].start.row+=i.start.row,d[M].end.row+=i.start.row}return d},h.prototype.replace=function(l,c){var i=this.$options,u=this.$assembleRegExp(i);if(i.$isMultiLine)return c;if(u){var d=u.exec(l);if(!d||d[0].length!=l.length)return null;if(c=l.replace(u,c),i.preserveCase){c=c.split("");for(var g=Math.min(l.length,l.length);g--;){var v=l[g];v&&v.toLowerCase()!=v?c[g]=c[g].toUpperCase():c[g]=c[g].toLowerCase()}c=c.join("")}return c}},h.prototype.$assembleRegExp=function(l,c){if(l.needle instanceof RegExp)return l.re=l.needle;var i=l.needle;if(!l.needle)return l.re=!1;l.$supportsUnicodeFlag===void 0&&(l.$supportsUnicodeFlag=V.supportsUnicodeFlag());try{new RegExp(i,"u")}catch{l.$supportsUnicodeFlag=!1}l.regExp||(i=V.escapeRegExp(i)),l.wholeWord&&(i=m(i,l));var u=l.caseSensitive?"gm":"gmi";if(l.$supportsUnicodeFlag&&(u+="u"),l.$isMultiLine=!c&&/[\n\r]/.test(i),l.$isMultiLine)return l.re=this.$assembleMultilineRegExp(i,u);try{var d=new RegExp(i,u)}catch{d=!1}return l.re=d},h.prototype.$assembleMultilineRegExp=function(l,c){for(var i=l.replace(/\r\n|\r|\n/g,`$ -^`).split(` -`),u=[],d=0;d=x;D--)if(S(D,Number.MAX_VALUE,O))return;if(c.wrap!=!1){for(D=C,x=v.row;D>=x;D--)if(S(D,Number.MAX_VALUE,O))return}}};else var _=function(D){var N=v.row;if(!S(N,v.column,D)){for(N=N+1;N<=C;N++)if(S(N,0,D))return;if(c.wrap!=!1){for(N=x,C=v.row;N<=C;N++)if(S(N,0,D))return}}};if(c.$isMultiLine)var $=i.length,S=function(O,D,N){var M=u?O-$+1:O;if(!(M<0||M+$>l.getLength())){var k=l.getLine(M),R=k.search(i[0]);if(!(!u&&RD)&&N(M,R,M+$-1,H))return!0}}};else if(u)var S=function(D,N,M){var k=l.getLine(D),R=[],F,H=0;for(i.lastIndex=0;F=i.exec(k);){var j=F[0].length;if(H=F.index,!j){if(H>=k.length)break;i.lastIndex=H+=1}if(F.index+j>N)break;R.push(F.index,j)}for(var P=R.length-1;P>=0;P-=2){var ee=R[P-1],j=R[P];if(M(D,ee,D,ee+j))return!0}};else var S=function(D,N,M){var k=l.getLine(D),R,F;for(i.lastIndex=N;F=i.exec(k);){var H=F[0].length;if(R=F.index,M(D,R,D,R+H))return!0;if(!H&&(i.lastIndex=R+=1,R>=k.length))return!1}};return{forEach:_}},h}();function m(h,l){var c=V.supportsLookbehind();function i(v,x){x===void 0&&(x=!0);var C=c&&l.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return C.test(v)||l.regExp?c&&l.$supportsUnicodeFlag?x?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var u=Array.from(h),d=u[0],g=u[u.length-1];return i(d)+h+i(g,!1)}T.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(y,T,G){var V=this&&this.__extends||function(){var c=function(i,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&(d[v]=g[v])},c(i,u)};return function(i,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");c(i,u);function d(){this.constructor=i}i.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}}(),L=y("../lib/keys"),A=y("../lib/useragent"),s=L.KEY_MODS,m=function(){function c(i,u){this.$init(i,u,!1)}return c.prototype.$init=function(i,u,d){this.platform=u||(A.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(i),this.$singleCommand=d},c.prototype.addCommand=function(i){this.commands[i.name]&&this.removeCommand(i),this.commands[i.name]=i,i.bindKey&&this._buildKeyHash(i)},c.prototype.removeCommand=function(i,u){var d=i&&(typeof i=="string"?i:i.name);i=this.commands[d],u||delete this.commands[d];var g=this.commandKeyBinding;for(var v in g){var x=g[v];if(x==i)delete g[v];else if(Array.isArray(x)){var C=x.indexOf(i);C!=-1&&(x.splice(C,1),x.length==1&&(g[v]=x[0]))}}},c.prototype.bindKey=function(i,u,d){if(typeof i=="object"&&i&&(d==null&&(d=i.position),i=i[this.platform]),!!i){if(typeof u=="function")return this.addCommand({exec:u,bindKey:i,name:u.name||i});i.split("|").forEach(function(g){var v="";if(g.indexOf(" ")!=-1){var x=g.split(/\s+/);g=x.pop(),x.forEach(function($){var S=this.parseKeys($),O=s[S.hashId]+S.key;v+=(v?" ":"")+O,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var C=this.parseKeys(g),_=s[C.hashId]+C.key;this._addCommandToBinding(v+_,u,d)},this)}},c.prototype._addCommandToBinding=function(i,u,d){var g=this.commandKeyBinding,v;if(!u)delete g[i];else if(!g[i]||this.$singleCommand)g[i]=u;else{Array.isArray(g[i])?(v=g[i].indexOf(u))!=-1&&g[i].splice(v,1):g[i]=[g[i]],typeof d!="number"&&(d=h(u));var x=g[i];for(v=0;vd)break}x.splice(v,0,u)}},c.prototype.addCommands=function(i){i&&Object.keys(i).forEach(function(u){var d=i[u];if(d){if(typeof d=="string")return this.bindKey(d,u);typeof d=="function"&&(d={exec:d}),typeof d=="object"&&(d.name||(d.name=u),this.addCommand(d))}},this)},c.prototype.removeCommands=function(i){Object.keys(i).forEach(function(u){this.removeCommand(i[u])},this)},c.prototype.bindKeys=function(i){Object.keys(i).forEach(function(u){this.bindKey(u,i[u])},this)},c.prototype._buildKeyHash=function(i){this.bindKey(i.bindKey,i)},c.prototype.parseKeys=function(i){var u=i.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(_){return _}),d=u.pop(),g=L[d];if(L.FUNCTION_KEYS[g])d=L.FUNCTION_KEYS[g].toLowerCase();else if(u.length){if(u.length==1&&u[0]=="shift")return{key:d.toUpperCase(),hashId:-1}}else return{key:d,hashId:-1};for(var v=0,x=u.length;x--;){var C=L.KEY_MODS[u[x]];if(C==null)return typeof console<"u"&&console.error("invalid modifier "+u[x]+" in "+i),!1;v|=C}return{key:d,hashId:v}},c.prototype.findKeyCommand=function(i,u){var d=s[i]+u;return this.commandKeyBinding[d]},c.prototype.handleKeyboard=function(i,u,d,g){if(!(g<0)){var v=s[u]+d,x=this.commandKeyBinding[v];return i.$keyChain&&(i.$keyChain+=" "+v,x=this.commandKeyBinding[i.$keyChain]||x),x&&(x=="chainKeys"||x[x.length-1]=="chainKeys")?(i.$keyChain=i.$keyChain||v,{command:"null"}):(i.$keyChain&&((!u||u==4)&&d.length==1?i.$keyChain=i.$keyChain.slice(0,-v.length-1):(u==-1||g>0)&&(i.$keyChain="")),{command:x})}},c.prototype.getStatusText=function(i,u){return u.$keyChain||""},c}();function h(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}var l=function(c){V(i,c);function i(u,d){var g=c.call(this,u,d)||this;return g.$singleCommand=!0,g}return i}(m);l.call=function(c,i,u){m.prototype.$init.call(c,i,u,!0)},m.call=function(c,i,u){m.prototype.$init.call(c,i,u,!1)},T.HashHandler=l,T.MultiHashHandler=m}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(y,T,G){var V=this&&this.__extends||function(){var h=function(l,c){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,u){i.__proto__=u}||function(i,u){for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(i[d]=u[d])},h(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");h(l,c);function i(){this.constructor=l}l.prototype=c===null?Object.create(c):(i.prototype=c.prototype,new i)}}(),L=y("../lib/oop"),A=y("../keyboard/hash_handler").MultiHashHandler,s=y("../lib/event_emitter").EventEmitter,m=function(h){V(l,h);function l(c,i){var u=h.call(this,i,c)||this;return u.byName=u.commands,u.setDefaultHandler("exec",function(d){return d.args?d.command.exec(d.editor,d.args,d.event,!1):d.command.exec(d.editor,{},d.event,!0)}),u}return l.prototype.exec=function(c,i,u){if(Array.isArray(c)){for(var d=c.length;d--;)if(this.exec(c[d],i,u))return!0;return!1}if(typeof c=="string"&&(c=this.commands[c]),!c||i&&i.$readOnly&&!c.readOnly||this.$checkCommandState!=!1&&c.isAvailable&&!c.isAvailable(i))return!1;var g={editor:i,command:c,args:u};return g.returnValue=this._emit("exec",g),this._signal("afterExec",g),g.returnValue!==!1},l.prototype.toggleRecording=function(c){if(!this.$inReplay)return c&&c._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(i){this.macro.push([i.command,i.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},l.prototype.replay=function(c){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(c);try{this.$inReplay=!0,this.macro.forEach(function(i){typeof i=="string"?this.exec(i,c):this.exec(i[0],c,i[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(c){return c.map(function(i){return typeof i[0]!="string"&&(i[0]=i[0].name),i[1]||(i=i[0]),i})},l}(A);L.implement(m.prototype,s),T.CommandManager=m}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(y,T,G){var V=y("../lib/lang"),L=y("../config"),A=y("../range").Range;function s(h,l){return{win:h,mac:l}}T.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(h){L.loadModule("ace/ext/settings_menu",function(l){l.init(h),h.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(h){L.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(h,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(h){L.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(h,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(h){h.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(h){h.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(h,l){typeof l=="number"&&!isNaN(l)&&h.gotoLine(l),h.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(h){h.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(h){h.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(h){h.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(h){h.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(h){h.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(h){h.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(h){h.session.foldAll(),h.session.unfold(h.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(h){h.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(h){h.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(h){h.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(h){h.selection.isEmpty()?h.selection.selectWord():h.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(h){h.selection.isEmpty()?h.selection.selectWord():h.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(h){L.loadModule("ace/ext/searchbox",function(l){l.Search(h)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(h){h.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(h){h.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(h){h.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(h){h.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(h,l){h.navigateUp(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(h){h.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(h){h.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(h){h.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(h,l){h.navigateDown(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(h){h.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(h){h.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(h){h.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(h){h.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(h){h.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(h,l){h.navigateLeft(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(h){h.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(h){h.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(h){h.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(h){h.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(h){h.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(h,l){h.navigateRight(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(h){h.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(h){h.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(h){h.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(h){h.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(h){h.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(h){h.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(h){h.renderer.scrollBy(0,-2*h.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(h){h.renderer.scrollBy(0,2*h.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(h){h.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(h){h.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(h){h.commands.toggleRecording(h)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(h){h.commands.replay(h)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(h){h.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(h){h.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(h){h.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(h){},readOnly:!0},{name:"cut",description:"Cut",exec:function(h){var l=h.$copyWithEmptySelection&&h.selection.isEmpty(),c=l?h.selection.getLineRange():h.selection.getRange();h._emit("cut",c),c.isEmpty()||h.session.remove(c),h.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(h,l){h.$handlePaste(l)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(h){h.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(h){h.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(h){h.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(h){h.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(h){h.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(h){h.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(h){h.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(h){L.loadModule("ace/ext/searchbox",function(l){l.Search(h,!0)})}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(h){h.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(h){h.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(h){h.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(h){h.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(h){h.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(h){h.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(h){h.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(h){h.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(h){if(h.selection.isEmpty())h.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(h){h.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(h){h.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(h){var l=h.selection.getRange();l.start.column=0,h.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(h){var l=h.selection.getRange();l.end.column=Number.MAX_VALUE,h.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(h){h.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(h){h.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(h){h.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(h){h.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(h){h.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(h){h.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(h,l){h.insert(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(h,l){h.insert(V.stringRepeat(l.text||"",l.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(h){h.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(h){h.transposeLetters()},multiSelectAction:function(h){h.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(h){h.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(h){h.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(h){h.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(h){var l=h.selection.getRange();l.start.column=l.end.column=0,l.end.row++,h.selection.setRange(l,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(h){h.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(h){for(var l=h.selection.isBackwards(),c=l?h.selection.getSelectionLead():h.selection.getSelectionAnchor(),i=l?h.selection.getSelectionAnchor():h.selection.getSelectionLead(),u=h.session.doc.getLine(c.row).length,d=h.session.doc.getTextRange(h.selection.getRange()),g=d.replace(/\n\s*/," ").length,v=h.session.doc.getLine(c.row),x=c.row+1;x<=i.row+1;x++){var C=V.stringTrimLeft(V.stringTrimRight(h.session.doc.getLine(x)));C.length!==0&&(C=" "+C),v+=C}i.row+10?(h.selection.moveCursorTo(c.row,c.column),h.selection.selectTo(c.row,c.column+g)):(u=h.session.doc.getLine(c.row).length>u?u+1:u,h.selection.moveCursorTo(c.row,u))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(h){var l=h.session.doc.getLength()-1,c=h.session.doc.getLine(l).length,i=h.selection.rangeList.ranges,u=[];i.length<1&&(i=[h.selection.getRange()]);for(var d=0;dm[h].column&&h++,i.unshift(h,0),m.splice.apply(m,i),this.$updateRows()}}},A.prototype.$updateRows=function(){var s=this.session.lineWidgets;if(s){var m=!0;s.forEach(function(h,l){if(h)for(m=!1,h.row=l;h.$oldWidget;)h.$oldWidget.row=l,h=h.$oldWidget}),m&&(this.session.lineWidgets=null)}},A.prototype.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var m=this.session.lineWidgets[s.row];return m&&(s.$oldWidget=m,m.el&&m.el.parentNode&&(m.el.parentNode.removeChild(m.el),m._inDocument=!1)),this.session.lineWidgets[s.row]=s,s},A.prototype.addLineWidget=function(s){if(this.$registerLineWidget(s),s.session=this.session,!this.editor)return s;var m=this.editor.renderer;s.html&&!s.el&&(s.el=V.createElement("div"),s.el.innerHTML=s.html),s.text&&!s.el&&(s.el=V.createElement("div"),s.el.textContent=s.text),s.el&&(V.addCssClass(s.el,"ace_lineWidgetContainer"),s.className&&V.addCssClass(s.el,s.className),s.el.style.position="absolute",s.el.style.zIndex=5,m.container.appendChild(s.el),s._inDocument=!0,s.coverGutter||(s.el.style.zIndex=3),s.pixelHeight==null&&(s.pixelHeight=s.el.offsetHeight)),s.rowCount==null&&(s.rowCount=s.pixelHeight/m.layerConfig.lineHeight);var h=this.session.getFoldAt(s.row,0);if(s.$fold=h,h){var l=this.session.lineWidgets;s.row==h.end.row&&!l[h.start.row]?l[h.start.row]=s:s.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,m),this.onWidgetChanged(s),s},A.prototype.removeLineWidget=function(s){if(s._inDocument=!1,s.session=null,s.el&&s.el.parentNode&&s.el.parentNode.removeChild(s.el),s.editor&&s.editor.destroy)try{s.editor.destroy()}catch{}if(this.session.lineWidgets){var m=this.session.lineWidgets[s.row];if(m==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;m;){if(m.$oldWidget==s){m.$oldWidget=s.$oldWidget;break}m=m.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},A.prototype.getWidgetsAtRow=function(s){for(var m=this.session.lineWidgets,h=m&&m[s],l=[];h;)l.push(h),h=h.$oldWidget;return l},A.prototype.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},A.prototype.measureWidgets=function(s,m){var h=this.session._changedWidgets,l=m.layerConfig;if(!(!h||!h.length)){for(var c=1/0,i=0;i0&&!l[c];)c--;this.firstRow=h.firstRow,this.lastRow=h.lastRow,m.$cursorLayer.config=h;for(var u=c;u<=i;u++){var d=l[u];if(!(!d||!d.el)){if(d.hidden){d.el.style.top=-100-(d.pixelHeight||0)+"px";continue}d._inDocument||(d._inDocument=!0,m.container.appendChild(d.el));var g=m.$cursorLayer.getPixelPosition({row:u,column:0},!0).top;d.coverLine||(g+=h.lineHeight*this.session.getRowLineCount(d.row)),d.el.style.top=g-h.offset+"px";var v=d.coverGutter?0:m.gutterWidth;d.fixedWidth||(v-=m.scrollLeft),d.el.style.left=v+"px",d.fullWidth&&d.screenWidth&&(d.el.style.minWidth=h.width+2*h.padding+"px"),d.fixedWidth?d.el.style.right=m.scrollBar.getWidth()+"px":d.el.style.right=""}}}},A}();T.LineWidgets=L}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(y,T,G){var V=y("../lib/keys"),L=y("../mouse/default_gutter_handler").GutterTooltip,A=function(){function m(h){this.editor=h,this.gutterLayer=h.renderer.$gutterLayer,this.element=h.renderer.$gutter,this.lines=h.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new L(this.editor)}return m.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},m.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},m.prototype.$onGutterKeyDown=function(h){if(this.annotationTooltip.isOpen){h.preventDefault(),h.keyCode===V.escape&&this.annotationTooltip.hideTooltip();return}if(h.target===this.element){if(h.keyCode!=V.enter)return;h.preventDefault();var l=this.editor.getCursorPosition().row;this.editor.isRowVisible(l)||this.editor.scrollToLine(l,!0,!0),setTimeout((function(){var c=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),i=this.$findNearestFoldWidget(c),u=this.$findNearestAnnotation(c);if(!(i===null&&u===null)){if(i===null&&u!==null){this.activeRowIndex=u,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(i!==null&&u===null){this.activeRowIndex=i,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(u-c)0||h+l=0&&this.$isFoldWidgetVisible(h-l))return h-l;if(h+l<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(h+l))return h+l}return null},m.prototype.$findNearestAnnotation=function(h){if(this.$isAnnotationVisible(h))return h;for(var l=0;h-l>0||h+l=0&&this.$isAnnotationVisible(h-l))return h-l;if(h+l<=this.lines.getLength()-1&&this.$isAnnotationVisible(h+l))return h+l}return null},m.prototype.$focusFoldWidget=function(h){if(h!=null){var l=this.$getFoldWidget(h);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},m.prototype.$focusAnnotation=function(h){if(h!=null){var l=this.$getAnnotation(h);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},m.prototype.$blurFoldWidget=function(h){var l=this.$getFoldWidget(h);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},m.prototype.$blurAnnotation=function(h){var l=this.$getAnnotation(h);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},m.prototype.$moveFoldWidgetUp=function(){for(var h=this.activeRowIndex;h>0;)if(h--,this.$isFoldWidgetVisible(h)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=h,this.$focusFoldWidget(this.activeRowIndex);return}},m.prototype.$moveFoldWidgetDown=function(){for(var h=this.activeRowIndex;h0;)if(h--,this.$isAnnotationVisible(h)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=h,this.$focusAnnotation(this.activeRowIndex);return}},m.prototype.$moveAnnotationDown=function(){for(var h=this.activeRowIndex;h=F.length&&(F=void 0),{value:F&&F[P++],done:!F}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")},L=y("./lib/oop"),A=y("./lib/dom"),s=y("./lib/lang"),m=y("./lib/useragent"),h=y("./keyboard/textinput").TextInput,l=y("./mouse/mouse_handler").MouseHandler,c=y("./mouse/fold_handler").FoldHandler,i=y("./keyboard/keybinding").KeyBinding,u=y("./edit_session").EditSession,d=y("./search").Search,g=y("./range").Range,v=y("./lib/event_emitter").EventEmitter,x=y("./commands/command_manager").CommandManager,C=y("./commands/default_commands").commands,_=y("./config"),$=y("./token_iterator").TokenIterator,S=y("./line_widgets").LineWidgets,O=y("./keyboard/gutter_handler").GutterKeyboardHandler,D=y("./config").nls,N=y("./clipboard"),M=y("./lib/keys"),k=function(){function F(H,j,P){this.$toDestroy=[];var ee=H.getContainerElement();this.container=ee,this.renderer=H,this.id="editor"+ ++F.$uid,this.commands=new x(m.isMac?"mac":"win",C),typeof document=="object"&&(this.textInput=new h(H.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new c(this)),this.keyBinding=new i(this),this.$search=new d().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(J,K){K._$emitInputEvent.schedule(31)}),this.setSession(j||P&&P.session||new u("")),_.resetOptions(this),P&&this.setOptions(P),_._signal("editor",this)}return F.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},F.prototype.startOperation=function(H){if(this.curOp){if(!H||this.curOp.command)return;this.prevOp=this.curOp}H||(this.previousCommand=null,H={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:H.command||{},args:H.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},F.prototype.endOperation=function(H){if(this.curOp&&this.session){if(H&&H.returnValue===!1||!this.session)return this.curOp=null;if(H==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var j=this.curOp.command,P=j&&j.scrollIntoView;if(P){switch(P){case"center-animate":P="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var ee=this.selection.getRange(),J=this.renderer.layerConfig;(ee.start.row>=J.lastRow||ee.end.row<=J.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}P=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var K=this.selection.toJSON();this.curOp.selectionAfter=K,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(K),this.prevOp=this.curOp,this.curOp=null}},F.prototype.$historyTracker=function(H){if(this.$mergeUndoDeltas){var j=this.prevOp,P=this.$mergeableCommands,ee=j.command&&H.command.name==j.command.name;if(H.command.name=="insertstring"){var J=H.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),ee=ee&&this.mergeNextCommand&&(!/\s/.test(J)||/\s/.test(j.args)),this.mergeNextCommand=!0}else ee=ee&&P.indexOf(H.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(ee=!1),ee?this.session.mergeUndoDeltas=!0:P.indexOf(H.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},F.prototype.setKeyboardHandler=function(H,j){if(H&&typeof H=="string"&&H!="ace"){this.$keybindingId=H;var P=this;_.loadModule(["keybinding",H],function(ee){P.$keybindingId==H&&P.keyBinding.setKeyboardHandler(ee&&ee.handler),j&&j()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(H),j&&j()},F.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},F.prototype.setSession=function(H){if(this.session!=H){this.curOp&&this.endOperation(),this.curOp={};var j=this.session;if(j){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var P=this.session.getSelection();P.off("changeCursor",this.$onCursorChange),P.off("changeSelection",this.$onSelectionChange)}this.session=H,H?(this.$onDocumentChange=this.onDocumentChange.bind(this),H.on("change",this.$onDocumentChange),this.renderer.setSession(H),this.$onChangeMode=this.onChangeMode.bind(this),H.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),H.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),H.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),H.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),H.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),H.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=H.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(H)),this._signal("changeSession",{session:H,oldSession:j}),this.curOp=null,j&&j._signal("changeEditor",{oldEditor:this}),H&&H._signal("changeEditor",{editor:this}),H&&!H.destroyed&&H.bgTokenizer.scheduleStart()}},F.prototype.getSession=function(){return this.session},F.prototype.setValue=function(H,j){return this.session.doc.setValue(H),j?j==1?this.navigateFileEnd():j==-1&&this.navigateFileStart():this.selectAll(),H},F.prototype.getValue=function(){return this.session.getValue()},F.prototype.getSelection=function(){return this.selection},F.prototype.resize=function(H){this.renderer.onResize(H)},F.prototype.setTheme=function(H,j){this.renderer.setTheme(H,j)},F.prototype.getTheme=function(){return this.renderer.getTheme()},F.prototype.setStyle=function(H){this.renderer.setStyle(H)},F.prototype.unsetStyle=function(H){this.renderer.unsetStyle(H)},F.prototype.getFontSize=function(){return this.getOption("fontSize")||A.computedStyle(this.container).fontSize},F.prototype.setFontSize=function(H){this.setOption("fontSize",H)},F.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var H=this;this.$highlightPending=!0,setTimeout(function(){H.$highlightPending=!1;var j=H.session;if(!(!j||j.destroyed)){j.$bracketHighlight&&(j.$bracketHighlight.markerIds.forEach(function(Se){j.removeMarker(Se)}),j.$bracketHighlight=null);var P=H.getCursorPosition(),ee=H.getKeyboardHandler(),J=ee&&ee.$getDirectionForHighlight&&ee.$getDirectionForHighlight(H),K=j.getMatchingBracketRanges(P,J);if(!K){var ae=new $(j,P.row,P.column),Q=ae.getCurrentToken();if(Q&&/\b(?:tag-open|tag-name)/.test(Q.type)){var he=j.getMatchingTags(P);he&&(K=[he.openTagName,he.closeTagName])}}if(!K&&j.$mode.getMatching&&(K=j.$mode.getMatching(H.session)),!K){H.getHighlightIndentGuides()&&H.renderer.$textLayer.$highlightIndentGuide();return}var ge="ace_bracket";Array.isArray(K)?K.length==1&&(ge="ace_error_bracket"):K=[K],K.length==2&&(g.comparePoints(K[0].end,K[1].start)==0?K=[g.fromPoints(K[0].start,K[1].end)]:g.comparePoints(K[0].start,K[1].end)==0&&(K=[g.fromPoints(K[1].start,K[0].end)])),j.$bracketHighlight={ranges:K,markerIds:K.map(function(Se){return j.addMarker(Se,ge,"text")})},H.getHighlightIndentGuides()&&H.renderer.$textLayer.$highlightIndentGuide()}},50)}},F.prototype.focus=function(){this.textInput.focus()},F.prototype.isFocused=function(){return this.textInput.isFocused()},F.prototype.blur=function(){this.textInput.blur()},F.prototype.onFocus=function(H){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",H))},F.prototype.onBlur=function(H){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",H))},F.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},F.prototype.onDocumentChange=function(H){var j=this.session.$useWrapMode,P=H.start.row==H.end.row?H.end.row:1/0;this.renderer.updateLines(H.start.row,P,j),this._signal("change",H),this.$cursorChange()},F.prototype.onTokenizerUpdate=function(H){var j=H.data;this.renderer.updateLines(j.first,j.last)},F.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},F.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},F.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},F.prototype.$updateHighlightActiveLine=function(){var H=this.getSession(),j;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(j=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(j=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(j=!1)),H.$highlightLineMarker&&!j)H.removeMarker(H.$highlightLineMarker.id),H.$highlightLineMarker=null;else if(!H.$highlightLineMarker&&j){var P=new g(j.row,j.column,j.row,1/0);P.id=H.addMarker(P,"ace_active-line","screenLine"),H.$highlightLineMarker=P}else j&&(H.$highlightLineMarker.start.row=j.row,H.$highlightLineMarker.end.row=j.row,H.$highlightLineMarker.start.column=j.column,H._signal("changeBackMarker"))},F.prototype.onSelectionChange=function(H){var j=this.session;if(j.$selectionMarker&&j.removeMarker(j.$selectionMarker),j.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var P=this.selection.getRange(),ee=this.getSelectionStyle();j.$selectionMarker=j.addMarker(P,"ace_selection",ee)}var J=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(J),this._signal("changeSelection")},F.prototype.$getSelectionHighLightRegexp=function(){var H=this.session,j=this.getSelectionRange();if(!(j.isEmpty()||j.isMultiLine())){var P=j.start.column,ee=j.end.column,J=H.getLine(j.start.row),K=J.substring(P,ee);if(!(K.length>5e3||!/[\w\d]/.test(K))){var ae=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:K}),Q=J.substring(P-1,ee+1);if(ae.test(Q))return ae}}},F.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},F.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},F.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},F.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},F.prototype.onChangeMode=function(H){this.renderer.updateText(),this._emit("changeMode",H)},F.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},F.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},F.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},F.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},F.prototype.getCopyText=function(){var H=this.getSelectedText(),j=this.session.doc.getNewLineCharacter(),P=!1;if(!H&&this.$copyWithEmptySelection){P=!0;for(var ee=this.selection.getAllRanges(),J=0;JSe.search(/\S|$/)){var Q=Se.substr(J.column).search(/\S|$/);P.doc.removeInLine(J.row,J.column,J.column+Q)}}this.clearSelection();var he=J.column,ge=P.getState(J.row),Se=P.getLine(J.row),ce=ee.checkOutdent(ge,Se,H);if(P.insert(J,H),K&&K.selection&&(K.selection.length==2?this.selection.setSelectionRange(new g(J.row,he+K.selection[0],J.row,he+K.selection[1])):this.selection.setSelectionRange(new g(J.row+K.selection[0],K.selection[1],J.row+K.selection[2],K.selection[3]))),this.$enableAutoIndent){if(P.getDocument().isNewLine(H)){var ne=ee.getNextLineIndent(ge,Se.slice(0,J.column),P.getTabString());P.insert({row:J.row+1,column:0},ne)}ce&&ee.autoOutdent(ge,P,J.row)}},F.prototype.autoIndent=function(){var H=this.session,j=H.getMode(),P,ee;if(this.selection.isEmpty())P=0,ee=H.doc.getLength()-1;else{var J=this.getSelectionRange();P=J.start.row,ee=J.end.row}for(var K="",ae="",Q="",he,ge,Se,ce=H.getTabString(),ne=P;ne<=ee;ne++)ne>0&&(K=H.getState(ne-1),ae=H.getLine(ne-1),Q=j.getNextLineIndent(K,ae,ce)),he=H.getLine(ne),ge=j.$getIndent(he),Q!==ge&&(ge.length>0&&(Se=new g(ne,0,ne,ge.length),H.remove(Se)),Q.length>0&&H.insert({row:ne,column:0},Q)),j.autoOutdent(K,H,ne)},F.prototype.onTextInput=function(H,j){if(!j)return this.keyBinding.onTextInput(H);this.startOperation({command:{name:"insertstring"}});var P=this.applyComposition.bind(this,H,j);this.selection.rangeCount?this.forEachSelection(P):P(),this.endOperation()},F.prototype.applyComposition=function(H,j){if(j.extendLeft||j.extendRight){var P=this.selection.getRange();P.start.column-=j.extendLeft,P.end.column+=j.extendRight,P.start.column<0&&(P.start.row--,P.start.column+=this.session.getLine(P.start.row).length+1),this.selection.setRange(P),!H&&!P.isEmpty()&&this.remove()}if((H||!this.selection.isEmpty())&&this.insert(H,!0),j.restoreStart||j.restoreEnd){var P=this.selection.getRange();P.start.column-=j.restoreStart,P.end.column-=j.restoreEnd,this.selection.setRange(P)}},F.prototype.onCommandKey=function(H,j,P){return this.keyBinding.onCommandKey(H,j,P)},F.prototype.setOverwrite=function(H){this.session.setOverwrite(H)},F.prototype.getOverwrite=function(){return this.session.getOverwrite()},F.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},F.prototype.setScrollSpeed=function(H){this.setOption("scrollSpeed",H)},F.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},F.prototype.setDragDelay=function(H){this.setOption("dragDelay",H)},F.prototype.getDragDelay=function(){return this.getOption("dragDelay")},F.prototype.setSelectionStyle=function(H){this.setOption("selectionStyle",H)},F.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},F.prototype.setHighlightActiveLine=function(H){this.setOption("highlightActiveLine",H)},F.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},F.prototype.setHighlightGutterLine=function(H){this.setOption("highlightGutterLine",H)},F.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},F.prototype.setHighlightSelectedWord=function(H){this.setOption("highlightSelectedWord",H)},F.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},F.prototype.setAnimatedScroll=function(H){this.renderer.setAnimatedScroll(H)},F.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},F.prototype.setShowInvisibles=function(H){this.renderer.setShowInvisibles(H)},F.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},F.prototype.setDisplayIndentGuides=function(H){this.renderer.setDisplayIndentGuides(H)},F.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},F.prototype.setHighlightIndentGuides=function(H){this.renderer.setHighlightIndentGuides(H)},F.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},F.prototype.setShowPrintMargin=function(H){this.renderer.setShowPrintMargin(H)},F.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},F.prototype.setPrintMarginColumn=function(H){this.renderer.setPrintMarginColumn(H)},F.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},F.prototype.setReadOnly=function(H){this.setOption("readOnly",H)},F.prototype.getReadOnly=function(){return this.getOption("readOnly")},F.prototype.setBehavioursEnabled=function(H){this.setOption("behavioursEnabled",H)},F.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},F.prototype.setWrapBehavioursEnabled=function(H){this.setOption("wrapBehavioursEnabled",H)},F.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},F.prototype.setShowFoldWidgets=function(H){this.setOption("showFoldWidgets",H)},F.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},F.prototype.setFadeFoldWidgets=function(H){this.setOption("fadeFoldWidgets",H)},F.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},F.prototype.remove=function(H){this.selection.isEmpty()&&(H=="left"?this.selection.selectLeft():this.selection.selectRight());var j=this.getSelectionRange();if(this.getBehavioursEnabled()){var P=this.session,ee=P.getState(j.start.row),J=P.getMode().transformAction(ee,"deletion",this,P,j);if(j.end.column===0){var K=P.getTextRange(j);if(K[K.length-1]==` -`){var ae=P.getLine(j.end.row);/^\s+$/.test(ae)&&(j.end.column=ae.length)}}J&&(j=J)}this.session.remove(j),this.clearSelection()},F.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},F.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},F.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},F.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var H=this.getSelectionRange();H.start.column==H.end.column&&H.start.row==H.end.row&&(H.end.column=0,H.end.row++),this.session.remove(H),this.clearSelection()},F.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var H=this.getCursorPosition();this.insert(` -`),this.moveCursorToPosition(H)},F.prototype.setGhostText=function(H,j){this.session.widgetManager||(this.session.widgetManager=new S(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(H,j)},F.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},F.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var H=this.getCursorPosition(),j=H.column;if(j!==0){var P=this.session.getLine(H.row),ee,J;jQ.toLowerCase()?1:0});for(var J=new g(0,0,0,0),ee=H.first;ee<=H.last;ee++){var K=j.getLine(ee);J.start.row=ee,J.end.row=ee,J.end.column=K.length,j.replace(J,P[ee-H.first])}},F.prototype.toggleCommentLines=function(){var H=this.session.getState(this.getCursorPosition().row),j=this.$getSelectedRows();this.session.getMode().toggleCommentLines(H,this.session,j.first,j.last)},F.prototype.toggleBlockComment=function(){var H=this.getCursorPosition(),j=this.session.getState(H.row),P=this.getSelectionRange();this.session.getMode().toggleBlockComment(j,this.session,P,H)},F.prototype.getNumberAt=function(H,j){var P=/[\-]?[0-9]+(?:\.[0-9]+)?/g;P.lastIndex=0;for(var ee=this.session.getLine(H);P.lastIndex=j){var K={value:J[0],start:J.index,end:J.index+J[0].length};return K}}return null},F.prototype.modifyNumber=function(H){var j=this.selection.getCursor().row,P=this.selection.getCursor().column,ee=new g(j,P-1,j,P),J=this.session.getTextRange(ee);if(!isNaN(parseFloat(J))&&isFinite(J)){var K=this.getNumberAt(j,P);if(K){var ae=K.value.indexOf(".")>=0?K.start+K.value.indexOf(".")+1:K.end,Q=K.start+K.value.length-ae,he=parseFloat(K.value);he*=Math.pow(10,Q),ae!==K.end&&P=ae&&K<=Q&&(P=$e,he.selection.clearSelection(),he.moveCursorTo(H,ae+ee),he.selection.selectTo(H,Q+ee)),ae=Q});for(var ge=this.$toggleWordPairs,Se,ce=0;ce=Q&&ae<=he&&ne.match(/((?:https?|ftp):\/\/[\S]+)/)){ge=ne.replace(/[\s:.,'";}\]]+$/,"");break}Q=he}}catch(fe){P={error:fe}}finally{try{ce&&!ce.done&&(ee=Se.return)&&ee.call(Se)}finally{if(P)throw P.error}}return ge},F.prototype.openLink=function(){var H=this.selection.getCursor(),j=this.findLinkAt(H.row,H.column);return j&&window.open(j,"_blank"),j!=null},F.prototype.removeLines=function(){var H=this.$getSelectedRows();this.session.removeFullLines(H.first,H.last),this.clearSelection()},F.prototype.duplicateSelection=function(){var H=this.selection,j=this.session,P=H.getRange(),ee=H.isBackwards();if(P.isEmpty()){var J=P.start.row;j.duplicateLines(J,J)}else{var K=ee?P.start:P.end,ae=j.insert(K,j.getTextRange(P),!1);P.start=K,P.end=ae,H.setSelectionRange(P,ee)}},F.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},F.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},F.prototype.moveText=function(H,j,P){return this.session.moveText(H,j,P)},F.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},F.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},F.prototype.$moveLines=function(H,j){var P,ee,J=this.selection;if(!J.inMultiSelectMode||this.inVirtualSelectionMode){var K=J.toOrientedRange();P=this.$getSelectedRows(K),ee=this.session.$moveLines(P.first,P.last,j?0:H),j&&H==-1&&(ee=0),K.moveBy(ee,0),J.fromOrientedRange(K)}else{var ae=J.rangeList.ranges;J.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var Q=0,he=0,ge=ae.length,Se=0;Sefe+1)break;fe=X.last}for(Se--,Q=this.session.$moveLines(ne,fe,j?0:H),j&&H==-1&&(ce=Se+1);ce<=Se;)ae[ce].moveBy(Q,0),ce++;j||(Q=0),he+=Q}J.fromOrientedRange(J.ranges[0]),J.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},F.prototype.$getSelectedRows=function(H){return H=(H||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(H.start.row),last:this.session.getRowFoldEnd(H.end.row)}},F.prototype.onCompositionStart=function(H){this.renderer.showComposition(H)},F.prototype.onCompositionUpdate=function(H){this.renderer.setCompositionText(H)},F.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},F.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},F.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},F.prototype.isRowVisible=function(H){return H>=this.getFirstVisibleRow()&&H<=this.getLastVisibleRow()},F.prototype.isRowFullyVisible=function(H){return H>=this.renderer.getFirstFullyVisibleRow()&&H<=this.renderer.getLastFullyVisibleRow()},F.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},F.prototype.$moveByPage=function(H,j){var P=this.renderer,ee=this.renderer.layerConfig,J=H*Math.floor(ee.height/ee.lineHeight);j===!0?this.selection.$moveSelection(function(){this.moveCursorBy(J,0)}):j===!1&&(this.selection.moveCursorBy(J,0),this.selection.clearSelection());var K=P.scrollTop;P.scrollBy(0,J*ee.lineHeight),j!=null&&P.scrollCursorIntoView(null,.5),P.animateScrolling(K)},F.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},F.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},F.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},F.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},F.prototype.scrollPageDown=function(){this.$moveByPage(1)},F.prototype.scrollPageUp=function(){this.$moveByPage(-1)},F.prototype.scrollToRow=function(H){this.renderer.scrollToRow(H)},F.prototype.scrollToLine=function(H,j,P,ee){this.renderer.scrollToLine(H,j,P,ee)},F.prototype.centerSelection=function(){var H=this.getSelectionRange(),j={row:Math.floor(H.start.row+(H.end.row-H.start.row)/2),column:Math.floor(H.start.column+(H.end.column-H.start.column)/2)};this.renderer.alignCursor(j,.5)},F.prototype.getCursorPosition=function(){return this.selection.getCursor()},F.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},F.prototype.getSelectionRange=function(){return this.selection.getRange()},F.prototype.selectAll=function(){this.selection.selectAll()},F.prototype.clearSelection=function(){this.selection.clearSelection()},F.prototype.moveCursorTo=function(H,j){this.selection.moveCursorTo(H,j)},F.prototype.moveCursorToPosition=function(H){this.selection.moveCursorToPosition(H)},F.prototype.jumpToMatching=function(H,j){var P=this.getCursorPosition(),ee=new $(this.session,P.row,P.column),J=ee.getCurrentToken(),K=0;J&&J.type.indexOf("tag-name")!==-1&&(J=ee.stepBackward());var ae=J||ee.stepForward();if(ae){var Q,he=!1,ge={},Se=P.column-ae.start,ce,ne={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(ae.value.match(/[{}()\[\]]/g)){for(;Se1?ge[ae.value]++:J.value==="=0;--K)this.$tryReplace(P[K],H)&&ee++;return this.selection.setSelectionRange(J),ee},F.prototype.$tryReplace=function(H,j){var P=this.session.getTextRange(H);return j=this.$search.replace(P,j),j!==null?(H.end=this.session.replace(H,j),H):null},F.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},F.prototype.find=function(H,j,P){j||(j={}),typeof H=="string"||H instanceof RegExp?j.needle=H:typeof H=="object"&&L.mixin(j,H);var ee=this.selection.getRange();j.needle==null&&(H=this.session.getTextRange(ee)||this.$search.$options.needle,H||(ee=this.session.getWordRange(ee.start.row,ee.start.column),H=this.session.getTextRange(ee)),this.$search.set({needle:H})),this.$search.set(j),j.start||this.$search.set({start:ee});var J=this.$search.find(this.session);if(j.preventScroll)return J;if(J)return this.revealRange(J,P),J;j.backwards?ee.start=ee.end:ee.end=ee.start,this.selection.setRange(ee)},F.prototype.findNext=function(H,j){this.find({skipCurrent:!0,backwards:!1},H,j)},F.prototype.findPrevious=function(H,j){this.find(H,{skipCurrent:!0,backwards:!0},j)},F.prototype.revealRange=function(H,j){this.session.unfold(H),this.selection.setSelectionRange(H);var P=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(H.start,H.end,.5),j!==!1&&this.renderer.animateScrolling(P)},F.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},F.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},F.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(H){H.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},F.prototype.setAutoScrollEditorIntoView=function(H){if(H){var j,P=this,ee=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var J=this.$scrollAnchor;J.style.cssText="position:absolute",this.container.insertBefore(J,this.container.firstChild);var K=this.on("changeSelection",function(){ee=!0}),ae=this.renderer.on("beforeRender",function(){ee&&(j=P.renderer.container.getBoundingClientRect())}),Q=this.renderer.on("afterRender",function(){if(ee&&j&&(P.isFocused()||P.searchBox&&P.searchBox.isFocused())){var he=P.renderer,ge=he.$cursorLayer.$pixelPos,Se=he.layerConfig,ce=ge.top-Se.offset;ge.top>=0&&ce+j.top<0?ee=!0:ge.topwindow.innerHeight?ee=!1:ee=null,ee!=null&&(J.style.top=ce+"px",J.style.left=ge.left+"px",J.style.height=Se.lineHeight+"px",J.scrollIntoView(ee)),ee=j=null}});this.setAutoScrollEditorIntoView=function(he){he||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",K),this.renderer.off("afterRender",Q),this.renderer.off("beforeRender",ae))}}},F.prototype.$resetCursorStyle=function(){var H=this.$cursorStyle||"ace",j=this.renderer.$cursorLayer;j&&(j.setSmoothBlinking(/smooth/.test(H)),j.isBlinking=!this.$readOnly&&H!="wide",A.setCssClass(j.element,"ace_slim-cursors",/slim/.test(H)))},F.prototype.prompt=function(H,j,P){var ee=this;_.loadModule("ace/ext/prompt",function(J){J.prompt(ee,H,j,P)})},F}();k.$uid=0,k.prototype.curOp=null,k.prototype.prevOp={},k.prototype.$mergeableCommands=["backspace","del","insertstring"],k.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],L.implement(k.prototype,v),_.defineOptions(k.prototype,"editor",{selectionStyle:{set:function(F){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:F})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(F){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(F){this.textInput.setReadOnly(F),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(F){this.textInput.setCopyWithEmptySelection(F)},initialValue:!1},cursorStyle:{set:function(F){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(F){this.setAutoScrollEditorIntoView(F)}},keyboardHandler:{set:function(F){this.setKeyboardHandler(F)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(F){this.session.setValue(F)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(F){this.setSession(F)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(F){this.renderer.$gutterLayer.setShowLineNumbers(F),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),F&&this.$relativeLineNumbers?R.attach(this):R.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(F){this.$showLineNumbers&&F?R.attach(this):R.detach(this)}},placeholder:{set:function(F){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var H=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(H&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),A.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!H&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),A.addCssClass(this.container,"ace_hasPlaceholder");var j=A.createElement("div");j.className="ace_placeholder",j.textContent=this.$placeholder||"",this.renderer.placeholderNode=j,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!H&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(F){var H={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(ee){ee.blur(),ee.renderer.scroller.focus()},readOnly:!0},j=function(ee){if(ee.target==this.renderer.scroller&&ee.keyCode===M.enter){ee.preventDefault();var J=this.getCursorPosition().row;this.isRowVisible(J)||this.scrollToLine(J,!0,!0),this.focus()}},P;F?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(m.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",D("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",D("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",j.bind(this)),this.commands.addCommand(H),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",D("editor")),this.renderer.$gutter.setAttribute("aria-label",D("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),P||(P=new O(this)),P.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",j.bind(this)),this.commands.removeCommand(H),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),P&&P.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var R={getText:function(F,H){return(Math.abs(F.selection.lead.row-H)||H+1+(H<9?"·":""))+""},getWidth:function(F,H,j){return Math.max(H.toString().length,(j.lastRow+1).toString().length,2)*j.characterWidth},update:function(F,H){H.renderer.$loop.schedule(H.renderer.CHANGE_GUTTER)},attach:function(F){F.renderer.$gutterLayer.$renderer=this,F.on("changeSelection",this.update),this.update(null,F)},detach:function(F){F.renderer.$gutterLayer.$renderer==this&&(F.renderer.$gutterLayer.$renderer=null),F.off("changeSelection",this.update),this.update(null,F)}};T.Editor=k}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(y,T,G){var V=function(){function $(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return $.prototype.addSession=function(S){this.$session=S},$.prototype.add=function(S,O,D){if(!this.$fromUndo&&S!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),O===!1||!this.lastDeltas){this.lastDeltas=[];var N=this.$undoStack.length;N>this.$undoDepth-1&&this.$undoStack.splice(0,N-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),S.id=this.$rev=++this.$maxRev}(S.action=="remove"||S.action=="insert")&&(this.$lastDelta=S),this.lastDeltas.push(S)}},$.prototype.addSelection=function(S,O){this.selections.push({value:S,rev:O||this.$rev})},$.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},$.prototype.markIgnored=function(S,O){O==null&&(O=this.$rev+1);for(var D=this.$undoStack,N=D.length;N--;){var M=D[N][0];if(M.id<=S)break;M.id0},$.prototype.canRedo=function(){return this.$redoStack.length>0},$.prototype.bookmark=function(S){S==null&&(S=this.$rev),this.mark=S},$.prototype.isAtBookmark=function(){return this.$rev===this.mark},$.prototype.toJSON=function(){},$.prototype.fromJSON=function(){},$.prototype.$prettyPrint=function(S){return S?l(S):l(this.$undoStack)+` ---- -`+l(this.$redoStack)},$}();V.prototype.hasUndo=V.prototype.canUndo,V.prototype.hasRedo=V.prototype.canRedo,V.prototype.isClean=V.prototype.isAtBookmark,V.prototype.markClean=V.prototype.bookmark;function L($,S){for(var O=S;O--;){var D=$[O];if(D&&!D[0].ignore){for(;O"+$.end.row+":"+$.end.column}function i($,S){var O=$.action=="insert",D=S.action=="insert";if(O&&D)if(s(S.start,$.end)>=0)g(S,$,-1);else if(s(S.start,$.start)<=0)g($,S,1);else return null;else if(O&&!D)if(s(S.start,$.end)>=0)g(S,$,-1);else if(s(S.end,$.start)<=0)g($,S,-1);else return null;else if(!O&&D)if(s(S.start,$.start)>=0)g(S,$,1);else if(s(S.start,$.start)<=0)g($,S,1);else return null;else if(!O&&!D)if(s(S.start,$.start)>=0)g(S,$,1);else if(s(S.end,$.start)<=0)g($,S,-1);else return null;return[S,$]}function u($,S){for(var O=$.length;O--;)for(var D=0;D=0?g($,S,-1):(s($.start,S.start)<=0||g($,A.fromPoints(S.start,$.start),-1),g(S,$,1));else if(!O&&D)s(S.start,$.end)>=0?g(S,$,-1):(s(S.start,$.start)<=0||g(S,A.fromPoints($.start,S.start),-1),g($,S,1));else if(!O&&!D)if(s(S.start,$.end)>=0)g(S,$,-1);else if(s(S.end,$.start)<=0)g($,S,-1);else{var N,M;return s($.start,S.start)<0&&(N=$,$=x($,S.start)),s($.end,S.end)>0&&(M=x($,S.end)),v(S.end,$.start,$.end,-1),M&&!N&&($.lines=M.lines,$.start=M.start,$.end=M.end,M=$),[S,N,M].filter(Boolean)}return[S,$]}function g($,S,O){v($.start,S.start,S.end,O),v($.end,S.start,S.end,O)}function v($,S,O,D){$.row==(D==1?S:O).row&&($.column+=D*(O.column-S.column)),$.row+=D*(O.row-S.row)}function x($,S){var O=$.lines,D=$.end;$.end=m(S);var N=$.end.row-$.start.row,M=O.splice(N,O.length),k=N?S.column:S.column-$.start.column;O.push(M[0].substring(0,k)),M[0]=M[0].substr(k);var R={start:m(S),end:D,lines:M,action:$.action};return R}function C($,S){S=h(S);for(var O=$.length;O--;){for(var D=$[O],N=0;NC&&(S=x.end.row+1,x=d.getNextFoldLine(S,x),C=x?x.start.row:1/0),S>v){for(;this.$lines.getLength()>$+1;)this.$lines.pop();break}_=this.$lines.get(++$),_?_.row=S:(_=this.$lines.createCell(S,u,this.session,c),this.$lines.push(_)),this.$renderCell(_,u,x,S),S++}this._signal("afterRender"),this.$updateGutterWidth(u)},i.prototype.$updateGutterWidth=function(u){var d=this.session,g=d.gutterRenderer||this.$renderer,v=d.$firstLineNumber,x=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||d.$useWrapMode)&&(x=d.getLength()+v-1);var C=g?g.getWidth(d,x,u):x.toString().length*u.characterWidth,_=this.$padding||this.$computePadding();C+=_.left+_.right,C!==this.gutterWidth&&!isNaN(C)&&(this.gutterWidth=C,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",C))},i.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var u=this.session.selection.getCursor();this.$cursorRow!==u.row&&(this.$cursorRow=u.row)}},i.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var u=this.session.selection.cursor.row;if(this.$cursorRow=u,!(this.$cursorCell&&this.$cursorCell.row==u)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var d=this.$lines.cells;this.$cursorCell=null;for(var g=0;g=this.$cursorRow){if(v.row>this.$cursorRow){var x=this.session.getFoldLine(this.$cursorRow);if(g>0&&x&&x.start.row==d[g-1].row)v=d[g-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},i.prototype.scrollLines=function(u){var d=this.config;if(this.config=u,this.$updateCursorRow(),this.$lines.pageChanged(d,u))return this.update(u);this.$lines.moveContainer(u);var g=Math.min(u.lastRow+u.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=g,!d||v0;x--)this.$lines.shift();if(v>g)for(var x=this.session.getFoldedRowCount(g+1,v);x>0;x--)this.$lines.pop();u.firstRowv&&this.$lines.push(this.$renderLines(u,v+1,g)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(u)},i.prototype.$renderLines=function(u,d,g){for(var v=[],x=d,C=this.session.getNextFoldLine(x),_=C?C.start.row:1/0;x>_&&(x=C.end.row+1,C=this.session.getNextFoldLine(x,C),_=C?C.start.row:1/0),!(x>g);){var $=this.$lines.createCell(x,u,this.session,c);this.$renderCell($,u,C,x),v.push($),x++}return v},i.prototype.$renderCell=function(u,d,g,v){var x=u.element,C=this.session,_=x.childNodes[0],$=x.childNodes[1],S=x.childNodes[2],O=S.firstChild,D=C.$firstLineNumber,N=C.$breakpoints,M=C.$decorations,k=C.gutterRenderer||this.$renderer,R=this.$showFoldWidgets&&C.foldWidgets,F=g?g.start.row:Number.MAX_VALUE,H=d.lineHeight+"px",j=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",P=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",ee=(k?k.getText(C,v):v+D).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||g&&v=F&&this.$cursorRow<=g.end.row)&&(j+="ace_gutter-active-line ",this.$cursorCell!=u&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=u)),N[v]&&(j+=N[v]),M[v]&&(j+=M[v]),this.$annotations[v]&&v!==F&&(j+=this.$annotations[v].className),R){var J=R[v];J==null&&(J=R[v]=C.getFoldWidget(v))}if(J){var K="ace_fold-widget ace_"+J,ae=J=="start"&&v==F&&vg.right-d.right)return"foldWidgets"},i}();l.prototype.$fixedWidth=!1,l.prototype.$highlightGutterLine=!0,l.prototype.$renderer="",l.prototype.$showLineNumbers=!0,l.prototype.$showFoldWidgets=!0,L.implement(l.prototype,s);function c(i){var u=document.createTextNode("");i.appendChild(u);var d=V.createElement("span");i.appendChild(d);var g=V.createElement("span");i.appendChild(g);var v=V.createElement("span");return g.appendChild(v),i}T.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(y,T,G){var V=y("../range").Range,L=y("../lib/dom"),A=function(){function m(h){this.element=L.createElement("div"),this.element.className="ace_layer ace_marker-layer",h.appendChild(this.element)}return m.prototype.setPadding=function(h){this.$padding=h},m.prototype.setSession=function(h){this.session=h},m.prototype.setMarkers=function(h){this.markers=h},m.prototype.elt=function(h,l){var c=this.i!=-1&&this.element.childNodes[this.i];c?this.i++:(c=document.createElement("div"),this.element.appendChild(c),this.i=-1),c.style.cssText=l,c.className=h},m.prototype.update=function(h){if(h){this.config=h,this.i=0;var l;for(var c in this.markers){var i=this.markers[c];if(!i.range){i.update(l,this,this.session,h);continue}var u=i.range.clipRows(h.firstRow,h.lastRow);if(!u.isEmpty())if(u=u.toScreenRange(this.session),i.renderer){var d=this.$getTop(u.start.row,h),g=this.$padding+u.start.column*h.characterWidth;i.renderer(l,u,g,d,h)}else i.type=="fullLine"?this.drawFullLineMarker(l,u,i.clazz,h):i.type=="screenLine"?this.drawScreenLineMarker(l,u,i.clazz,h):u.isMultiLine()?i.type=="text"?this.drawTextMarker(l,u,i.clazz,h):this.drawMultiLineMarker(l,u,i.clazz,h):this.drawSingleLineMarker(l,u,i.clazz+" ace_start ace_br15",h)}if(this.i!=-1)for(;this.i$,x==v),i,x==v?0:1,u)},m.prototype.drawMultiLineMarker=function(h,l,c,i,u){var d=this.$padding,g=i.lineHeight,v=this.$getTop(l.start.row,i),x=d+l.start.column*i.characterWidth;if(u=u||"",this.session.$bidiHandler.isBidiRow(l.start.row)){var C=l.clone();C.end.row=C.start.row,C.end.column=this.session.getLine(C.start.row).length,this.drawBidiSingleLineMarker(h,C,c+" ace_br1 ace_start",i,null,u)}else this.elt(c+" ace_br1 ace_start","height:"+g+"px;right:0;top:"+v+"px;left:"+x+"px;"+(u||""));if(this.session.$bidiHandler.isBidiRow(l.end.row)){var C=l.clone();C.start.row=C.end.row,C.start.column=0,this.drawBidiSingleLineMarker(h,C,c+" ace_br12",i,null,u)}else{v=this.$getTop(l.end.row,i);var _=l.end.column*i.characterWidth;this.elt(c+" ace_br12","height:"+g+"px;width:"+_+"px;top:"+v+"px;left:"+d+"px;"+(u||""))}if(g=(l.end.row-l.start.row-1)*i.lineHeight,!(g<=0)){v=this.$getTop(l.start.row+1,i);var $=(l.start.column?1:0)|(l.end.column?0:8);this.elt(c+($?" ace_br"+$:""),"height:"+g+"px;right:0;top:"+v+"px;left:"+d+"px;"+(u||""))}},m.prototype.drawSingleLineMarker=function(h,l,c,i,u,d){if(this.session.$bidiHandler.isBidiRow(l.start.row))return this.drawBidiSingleLineMarker(h,l,c,i,u,d);var g=i.lineHeight,v=(l.end.column+(u||0)-l.start.column)*i.characterWidth,x=this.$getTop(l.start.row,i),C=this.$padding+l.start.column*i.characterWidth;this.elt(c,"height:"+g+"px;width:"+v+"px;top:"+x+"px;left:"+C+"px;"+(d||""))},m.prototype.drawBidiSingleLineMarker=function(h,l,c,i,u,d){var g=i.lineHeight,v=this.$getTop(l.start.row,i),x=this.$padding,C=this.session.$bidiHandler.getSelections(l.start.column,l.end.column);C.forEach(function(_){this.elt(c,"height:"+g+"px;width:"+(_.width+(u||0))+"px;top:"+v+"px;left:"+(x+_.left)+"px;"+(d||""))},this)},m.prototype.drawFullLineMarker=function(h,l,c,i,u){var d=this.$getTop(l.start.row,i),g=i.lineHeight;l.start.row!=l.end.row&&(g+=this.$getTop(l.end.row,i)-d),this.elt(c,"height:"+g+"px;top:"+d+"px;left:0;right:0;"+(u||""))},m.prototype.drawScreenLineMarker=function(h,l,c,i,u){var d=this.$getTop(l.start.row,i),g=i.lineHeight;this.elt(c,"height:"+g+"px;top:"+d+"px;left:0;right:0;"+(u||""))},m}();A.prototype.$padding=0;function s(m,h,l,c){return(m?1:0)|(h?2:0)|(l?4:0)|(c?8:0)}T.Marker=A}),ace.define("ace/layer/text_util",["require","exports","module"],function(y,T,G){var V=new Set(["text","rparen","lparen"]);T.isTextToken=function(L){return V.has(L)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(y,T,G){var V=y("../lib/oop"),L=y("../lib/dom"),A=y("../lib/lang"),s=y("./lines").Lines,m=y("../lib/event_emitter").EventEmitter,h=y("../config").nls,l=y("./text_util").isTextToken,c=function(){function i(u){this.dom=L,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",u.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return i.prototype.$updateEolChar=function(){var u=this.session.doc,d=u.getNewLineCharacter()==` -`&&u.getNewLineMode()!="windows",g=d?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=g)return this.EOL_CHAR=g,!0},i.prototype.setPadding=function(u){this.$padding=u,this.element.style.margin="0 "+u+"px"},i.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},i.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},i.prototype.$setFontMetrics=function(u){this.$fontMetrics=u,this.$fontMetrics.on("changeCharacterSize",(function(d){this._signal("changeCharacterSize",d)}).bind(this)),this.$pollSizeChanges()},i.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},i.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},i.prototype.setSession=function(u){this.session=u,u&&this.$computeTabString()},i.prototype.setShowInvisibles=function(u){return this.showInvisibles==u?!1:(this.showInvisibles=u,typeof u=="string"?(this.showSpaces=/tab/i.test(u),this.showTabs=/space/i.test(u),this.showEOL=/eol/i.test(u)):this.showSpaces=this.showTabs=this.showEOL=u,this.$computeTabString(),!0)},i.prototype.setDisplayIndentGuides=function(u){return this.displayIndentGuides==u?!1:(this.displayIndentGuides=u,this.$computeTabString(),!0)},i.prototype.setHighlightIndentGuides=function(u){return this.$highlightIndentGuides===u?!1:(this.$highlightIndentGuides=u,u)},i.prototype.$computeTabString=function(){var u=this.session.getTabSize();this.tabSize=u;for(var d=this.$tabStrings=[0],g=1;gD&&(S=O.end.row+1,O=this.session.getNextFoldLine(S,O),D=O?O.start.row:1/0),!(S>x);){var N=C[_++];if(N){this.dom.removeChildren(N),this.$renderLine(N,S,S==D?O:!1),$&&(N.style.top=this.$lines.computeLineTop(S,u,this.session)+"px");var M=u.lineHeight*this.session.getRowLength(S)+"px";N.style.height!=M&&($=!0,N.style.height=M)}S++}if($)for(;_0;x--)this.$lines.shift();if(d.lastRow>u.lastRow)for(var x=this.session.getFoldedRowCount(u.lastRow+1,d.lastRow);x>0;x--)this.$lines.pop();u.firstRowd.lastRow&&this.$lines.push(this.$renderLinesFragment(u,d.lastRow+1,u.lastRow)),this.$highlightIndentGuide()},i.prototype.$renderLinesFragment=function(u,d,g){for(var v=[],x=d,C=this.session.getNextFoldLine(x),_=C?C.start.row:1/0;x>_&&(x=C.end.row+1,C=this.session.getNextFoldLine(x,C),_=C?C.start.row:1/0),!(x>g);){var $=this.$lines.createCell(x,u,this.session),S=$.element;this.dom.removeChildren(S),L.setStyle(S.style,"height",this.$lines.computeLineHeight(x,u,this.session)+"px"),L.setStyle(S.style,"top",this.$lines.computeLineTop(x,u,this.session)+"px"),this.$renderLine(S,x,x==_?C:!1),this.$useLineGroups()?S.className="ace_line_group":S.className="ace_line",v.push($),x++}return v},i.prototype.update=function(u){this.$lines.moveContainer(u),this.config=u;for(var d=u.firstRow,g=u.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(u,d,g))},i.prototype.$renderToken=function(u,d,g,v){for(var x=this,C=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,_=this.dom.createFragment(this.element),$,S=0;$=C.exec(v);){var O=$[1],D=$[2],N=$[3],M=$[4],k=$[5];if(!(!x.showSpaces&&D)){var R=S!=$.index?v.slice(S,$.index):"";if(S=$.index+$[0].length,R&&_.appendChild(this.dom.createTextNode(R,this.element)),O){var F=x.session.getScreenTabSize(d+$.index);_.appendChild(x.$tabStrings[F].cloneNode(!0)),d+=F-1}else if(D)if(x.showSpaces){var H=this.dom.createElement("span");H.className="ace_invisible ace_invisible_space",H.textContent=A.stringRepeat(x.SPACE_CHAR,D.length),_.appendChild(H)}else _.appendChild(this.dom.createTextNode(D,this.element));else if(N){var H=this.dom.createElement("span");H.className="ace_invisible ace_invisible_space ace_invalid",H.textContent=A.stringRepeat(x.SPACE_CHAR,N.length),_.appendChild(H)}else if(M){d+=1;var H=this.dom.createElement("span");H.style.width=x.config.characterWidth*2+"px",H.className=x.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",H.textContent=x.showSpaces?x.SPACE_CHAR:M,_.appendChild(H)}else if(k){d+=1;var H=this.dom.createElement("span");H.style.width=x.config.characterWidth*2+"px",H.className="ace_cjk",H.textContent=k,_.appendChild(H)}}}if(_.appendChild(this.dom.createTextNode(S?v.slice(S):v,this.element)),l(g.type))u.appendChild(_);else{var j="ace_"+g.type.replace(/\./g," ace_"),H=this.dom.createElement("span");g.type=="fold"&&(H.style.width=g.value.length*this.config.characterWidth+"px",H.setAttribute("title",h("Unfold code"))),H.className=j,H.appendChild(_),u.appendChild(H)}return d+v.length},i.prototype.renderIndentGuide=function(u,d,g){var v=d.search(this.$indentGuideRe);if(v<=0||v>=g)return d;if(d[0]==" "){v-=v%this.tabSize;for(var x=v/this.tabSize,C=0;CC[_].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&u[d.row]!==""&&d.column===u[d.row].length){this.$highlightIndentGuideMarker.dir=1;for(var _=d.row+1;_0){for(var x=0;x=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,d)}}else for(var g=u.length-1;g>=0;g--){var v=u[g];if(this.$highlightIndentGuideMarker.end&&v.row=C;)_=this.$renderToken($,_,O,D.substring(0,C-v)),D=D.substring(C-v),v=C,$=this.$createLineElement(),u.appendChild($),$.appendChild(this.dom.createTextNode(A.stringRepeat(" ",g.indent),this.element)),x++,_=0,C=g[x]||Number.MAX_VALUE;D.length!=0&&(v+=D.length,_=this.$renderToken($,_,O,D))}}g[g.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage($,_,null,"",!0)},i.prototype.$renderSimpleLine=function(u,d){for(var g=0,v=0;vthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(u,g,x,C);g=this.$renderToken(u,g,x,C)}}},i.prototype.$renderOverflowMessage=function(u,d,g,v,x){g&&this.$renderToken(u,d,g,v.slice(0,this.MAX_LINE_LENGTH-d));var C=this.dom.createElement("span");C.className="ace_inline_button ace_keyword ace_toggle_wrap",C.textContent=x?"":"",u.appendChild(C)},i.prototype.$renderLine=function(u,d,g){if(!g&&g!=!1&&(g=this.session.getFoldLine(d)),g)var v=this.$getFoldLineTokens(d,g);else var v=this.session.getTokens(d);var x=u;if(v.length){var C=this.session.getRowSplitData(d);if(C&&C.length){this.$renderWrappedLine(u,v,C);var x=u.lastChild}else{var x=u;this.$useLineGroups()&&(x=this.$createLineElement(),u.appendChild(x)),this.$renderSimpleLine(x,v)}}else this.$useLineGroups()&&(x=this.$createLineElement(),u.appendChild(x));if(this.showEOL&&x){g&&(d=g.end.row);var _=this.dom.createElement("span");_.className="ace_invisible ace_invisible_eol",_.textContent=d==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(_)}},i.prototype.$getFoldLineTokens=function(u,d){var g=this.session,v=[];function x(_,$,S){for(var O=0,D=0;D+_[O].value.length<$;)if(D+=_[O].value.length,O++,O==_.length)return;if(D!=$){var N=_[O].value.substring($-D);N.length>S-$&&(N=N.substring(0,S-$)),v.push({type:_[O].type,value:N}),D=$+N.length,O+=1}for(;DS?v.push({type:_[O].type,value:N.substring(0,S-D)}):v.push(_[O]),D+=N.length,O+=1}}var C=g.getTokens(u);return d.walk(function(_,$,S,O,D){_!=null?v.push({type:"fold",value:_}):(D&&(C=g.getTokens($)),C.length&&x(C,O,S))},d.end.row,this.session.getLine(d.end.row).length),v},i.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},i}();c.prototype.EOF_CHAR="¶",c.prototype.EOL_CHAR_LF="¬",c.prototype.EOL_CHAR_CRLF="¤",c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR="—",c.prototype.SPACE_CHAR="·",c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString,V.implement(c.prototype,m),T.Text=c}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(y,T,G){var V=y("../lib/dom"),L=function(){function A(s){this.element=V.createElement("div"),this.element.className="ace_layer ace_cursor-layer",s.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),V.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return A.prototype.$updateOpacity=function(s){for(var m=this.cursors,h=m.length;h--;)V.setStyle(m[h].style,"opacity",s?"":"0")},A.prototype.$startCssAnimation=function(){for(var s=this.cursors,m=s.length;m--;)s[m].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&V.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},A.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,V.removeCssClass(this.element,"ace_animate-blinking")},A.prototype.setPadding=function(s){this.$padding=s},A.prototype.setSession=function(s){this.session=s},A.prototype.setBlinking=function(s){s!=this.isBlinking&&(this.isBlinking=s,this.restartTimer())},A.prototype.setBlinkInterval=function(s){s!=this.blinkInterval&&(this.blinkInterval=s,this.restartTimer())},A.prototype.setSmoothBlinking=function(s){s!=this.smoothBlinking&&(this.smoothBlinking=s,V.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},A.prototype.addCursor=function(){var s=V.createElement("div");return s.className="ace_cursor",this.element.appendChild(s),this.cursors.push(s),s},A.prototype.removeCursor=function(){if(this.cursors.length>1){var s=this.cursors.pop();return s.parentNode.removeChild(s),s}},A.prototype.hideCursor=function(){this.isVisible=!1,V.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},A.prototype.showCursor=function(){this.isVisible=!0,V.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},A.prototype.restartTimer=function(){var s=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,V.removeCssClass(this.element,"ace_smooth-blinking")),s(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&V.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),V.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var m=(function(){this.timeoutId=setTimeout(function(){s(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){s(!0),m()},this.blinkInterval),m()}},A.prototype.getPixelPosition=function(s,m){if(!this.config||!this.session)return{left:0,top:0};s||(s=this.session.selection.getCursor());var h=this.session.documentToScreenPosition(s),l=this.$padding+(this.session.$bidiHandler.isBidiRow(h.row,s.row)?this.session.$bidiHandler.getPosLeft(h.column):h.column*this.config.characterWidth),c=(h.row-(m?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:l,top:c}},A.prototype.isCursorInView=function(s,m){return s.top>=0&&s.tops.height+s.offset||i.top<0)&&h>1)){var u=this.cursors[l++]||this.addCursor(),d=u.style;this.drawCursor?this.drawCursor(u,i,s,m[h],this.session):this.isCursorInView(i,s)?(V.setStyle(d,"display","block"),V.translate(u,i.left,i.top),V.setStyle(d,"width",Math.round(s.characterWidth)+"px"),V.setStyle(d,"height",s.lineHeight+"px")):V.setStyle(d,"display","none")}}for(;this.cursors.length>l;)this.removeCursor();var g=this.session.getOverwrite();this.$setOverwrite(g),this.$pixelPos=i,this.restartTimer()},A.prototype.$setOverwrite=function(s){s!=this.overwrite&&(this.overwrite=s,s?V.addCssClass(this.element,"ace_overwrite-cursors"):V.removeCssClass(this.element,"ace_overwrite-cursors"))},A.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},A}();L.prototype.$padding=0,L.prototype.drawCursor=null,T.Cursor=L}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(y,T,G){var V=this&&this.__extends||function(){var u=function(d,g){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var C in x)Object.prototype.hasOwnProperty.call(x,C)&&(v[C]=x[C])},u(d,g)};return function(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");u(d,g);function v(){this.constructor=d}d.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}}(),L=y("./lib/oop"),A=y("./lib/dom"),s=y("./lib/event"),m=y("./lib/event_emitter").EventEmitter,h=32768,l=function(){function u(d,g){this.element=A.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+g,this.inner=A.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),d.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)}return u.prototype.setVisible=function(d){this.element.style.display=d?"":"none",this.isVisible=d,this.coeff=1},u}();L.implement(l.prototype,m);var c=function(u){V(d,u);function d(g,v){var x=u.call(this,g,"-v")||this;return x.scrollTop=0,x.scrollHeight=0,v.$scrollbarWidth=x.width=A.scrollbarWidth(g.ownerDocument),x.inner.style.width=x.element.style.width=(x.width||15)+5+"px",x.$minWidth=0,x}return d.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var g=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-g)/(this.coeff-g)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},d.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},d.prototype.setHeight=function(g){this.element.style.height=g+"px"},d.prototype.setScrollHeight=function(g){this.scrollHeight=g,g>h?(this.coeff=h/g,g=h):this.coeff!=1&&(this.coeff=1),this.inner.style.height=g+"px"},d.prototype.setScrollTop=function(g){this.scrollTop!=g&&(this.skipEvent=!0,this.scrollTop=g,this.element.scrollTop=g*this.coeff)},d}(l);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var i=function(u){V(d,u);function d(g,v){var x=u.call(this,g,"-h")||this;return x.scrollLeft=0,x.height=v.$scrollbarWidth,x.inner.style.height=x.element.style.height=(x.height||15)+5+"px",x}return d.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},d.prototype.getHeight=function(){return this.isVisible?this.height:0},d.prototype.setWidth=function(g){this.element.style.width=g+"px"},d.prototype.setInnerWidth=function(g){this.inner.style.width=g+"px"},d.prototype.setScrollWidth=function(g){this.inner.style.width=g+"px"},d.prototype.setScrollLeft=function(g){this.scrollLeft!=g&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=g)},d}(l);T.ScrollBar=c,T.ScrollBarV=c,T.ScrollBarH=i,T.VScrollBar=c,T.HScrollBar=i}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(y,T,G){var V=this&&this.__extends||function(){var i=function(u,d){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var x in v)Object.prototype.hasOwnProperty.call(v,x)&&(g[x]=v[x])},i(u,d)};return function(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");i(u,d);function g(){this.constructor=u}u.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)}}(),L=y("./lib/oop"),A=y("./lib/dom"),s=y("./lib/event"),m=y("./lib/event_emitter").EventEmitter;A.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{ - position: absolute; - background: rgba(128, 128, 128, 0.6); - -moz-box-sizing: border-box; - box-sizing: border-box; - border: 1px solid #bbb; - border-radius: 2px; - z-index: 8; -} -.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h { - position: absolute; - z-index: 6; - background: none; - overflow: hidden!important; -} -.ace_editor>.ace_sb-v { - z-index: 6; - right: 0; - top: 0; - width: 12px; -} -.ace_editor>.ace_sb-v div { - z-index: 8; - right: 0; - width: 100%; -} -.ace_editor>.ace_sb-h { - bottom: 0; - left: 0; - height: 12px; -} -.ace_editor>.ace_sb-h div { - bottom: 0; - height: 100%; -} -.ace_editor>.ace_sb_grabbed { - z-index: 8; - background: #000; -}`,"ace_scrollbar.css",!1);var h=function(){function i(u,d){this.element=A.createElement("div"),this.element.className="ace_sb"+d,this.inner=A.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return i.prototype.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1},i}();L.implement(h.prototype,m);var l=function(i){V(u,i);function u(d,g){var v=i.call(this,d,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=d,v.width=v.VScrollWidth,v.renderer=g,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return u.prototype.onMouseDown=function(d,g){if(d==="mousedown"&&!(s.getButton(g)!==0||g.detail===2)){if(g.target===this.inner){var v=this,x=g.clientY,C=function(M){x=M.clientY},_=function(){clearInterval(D)},$=g.clientY,S=this.thumbTop,O=function(){if(x!==void 0){var M=v.scrollTopFromThumbTop(S+x-$);M!==v.scrollTop&&v._emit("scroll",{data:M})}};s.capture(this.inner,C,_);var D=setInterval(O,20);return s.preventDefault(g)}var N=g.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(N)}),s.preventDefault(g)}},u.prototype.getHeight=function(){return this.height},u.prototype.scrollTopFromThumbTop=function(d){var g=d*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return g=g>>0,g<0?g=0:g>this.pageHeight-this.viewHeight&&(g=this.pageHeight-this.viewHeight),g},u.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},u.prototype.setHeight=function(d){this.height=Math.max(0,d),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},u.prototype.setScrollHeight=function(d,g){this.pageHeight===d&&!g||(this.pageHeight=d,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},u.prototype.setScrollTop=function(d){this.scrollTop=d,d<0&&(d=0),this.thumbTop=d*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},u}(h);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var c=function(i){V(u,i);function u(d,g){var v=i.call(this,d,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=g,v}return u.prototype.onMouseDown=function(d,g){if(d==="mousedown"&&!(s.getButton(g)!==0||g.detail===2)){if(g.target===this.inner){var v=this,x=g.clientX,C=function(M){x=M.clientX},_=function(){clearInterval(D)},$=g.clientX,S=this.thumbLeft,O=function(){if(x!==void 0){var M=v.scrollLeftFromThumbLeft(S+x-$);M!==v.scrollLeft&&v._emit("scroll",{data:M})}};s.capture(this.inner,C,_);var D=setInterval(O,20);return s.preventDefault(g)}var N=g.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(N)}),s.preventDefault(g)}},u.prototype.getHeight=function(){return this.isVisible?this.height:0},u.prototype.scrollLeftFromThumbLeft=function(d){var g=d*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return g=g>>0,g<0?g=0:g>this.pageWidth-this.viewWidth&&(g=this.pageWidth-this.viewWidth),g},u.prototype.setWidth=function(d){this.width=Math.max(0,d),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},u.prototype.setScrollWidth=function(d,g){this.pageWidth===d&&!g||(this.pageWidth=d,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},u.prototype.setScrollLeft=function(d){this.scrollLeft=d,d<0&&(d=0),this.thumbLeft=d*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},u}(h);c.prototype.setInnerWidth=c.prototype.setScrollWidth,T.ScrollBar=l,T.ScrollBarV=l,T.ScrollBarH=c,T.VScrollBar=l,T.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(y,T,G){var V=y("./lib/event"),L=function(){function A(s,m){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=m||window;var h=this;this._flush=function(l){h.pending=!1;var c=h.changes;if(c&&(V.blockIdle(100),h.changes=0,h.onRender(c)),h.changes){if(h.$recursionLimit--<0)return;h.schedule()}else h.$recursionLimit=2}}return A.prototype.schedule=function(s){this.changes=this.changes|s,this.changes&&!this.pending&&(V.nextFrame(this._flush),this.pending=!0)},A.prototype.clear=function(s){var m=this.changes;return this.changes=0,m},A}();T.RenderLoop=L}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(y,T,G){var V=y("../lib/oop"),L=y("../lib/dom"),A=y("../lib/lang"),s=y("../lib/event"),m=y("../lib/useragent"),h=y("../lib/event_emitter").EventEmitter,l=512,c=typeof ResizeObserver=="function",i=200,u=function(){function d(g){this.el=L.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=L.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=L.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),g.appendChild(this.el),this.$measureNode.textContent=A.stringRepeat("X",l),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return d.prototype.$setMeasureNodeStyles=function(g,v){g.width=g.height="auto",g.left=g.top="0px",g.visibility="hidden",g.position="absolute",g.whiteSpace="pre",m.isIE<8?g["font-family"]="inherit":g.font="inherit",g.overflow=v?"hidden":"visible"},d.prototype.checkForSizeChanges=function(g){if(g===void 0&&(g=this.$measureSizes()),g&&(this.$characterSize.width!==g.width||this.$characterSize.height!==g.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=g,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===g.width&&v.height===g.height,this._emit("changeCharacterSize",{data:g})}},d.prototype.$addObserver=function(){var g=this;this.$observer=new window.ResizeObserver(function(v){g.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},d.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var g=this;return this.$pollSizeChangesTimer=s.onIdle(function v(){g.checkForSizeChanges(),s.onIdle(v,500)},500)},d.prototype.setPolling=function(g){g?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},d.prototype.$measureSizes=function(g){var v={height:(g||this.$measureNode).clientHeight,width:(g||this.$measureNode).clientWidth/l};return v.width===0||v.height===0?null:v},d.prototype.$measureCharWidth=function(g){this.$main.textContent=A.stringRepeat(g,l);var v=this.$main.getBoundingClientRect();return v.width/l},d.prototype.getCharacterWidth=function(g){var v=this.charSizes[g];return v===void 0&&(v=this.charSizes[g]=this.$measureCharWidth(g)/this.$characterSize.width),v},d.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},d.prototype.$getZoom=function(g){return!g||!g.parentElement?1:(window.getComputedStyle(g).zoom||1)*this.$getZoom(g.parentElement)},d.prototype.$initTransformMeasureNodes=function(){var g=function(v,x){return["div",{style:"position: absolute;top:"+v+"px;left:"+x+"px;"}]};this.els=L.buildDom([g(0,0),g(i,0),g(0,i),g(i,i)],this.el)},d.prototype.transformCoordinates=function(g,v){if(g){var x=this.$getZoom(this.el);g=S(1/x,g)}function C(ae,Q,he){var ge=ae[1]*Q[0]-ae[0]*Q[1];return[(-Q[1]*he[0]+Q[0]*he[1])/ge,(+ae[1]*he[0]-ae[0]*he[1])/ge]}function _(ae,Q){return[ae[0]-Q[0],ae[1]-Q[1]]}function $(ae,Q){return[ae[0]+Q[0],ae[1]+Q[1]]}function S(ae,Q){return[ae*Q[0],ae*Q[1]]}this.els||this.$initTransformMeasureNodes();function O(ae){var Q=ae.getBoundingClientRect();return[Q.left,Q.top]}var D=O(this.els[0]),N=O(this.els[1]),M=O(this.els[2]),k=O(this.els[3]),R=C(_(k,N),_(k,M),_($(N,M),$(k,D))),F=S(1+R[0],_(N,D)),H=S(1+R[1],_(M,D));if(v){var j=v,P=R[0]*j[0]/i+R[1]*j[1]/i+1,ee=$(S(j[0],F),S(j[1],H));return $(S(1/P/i,ee),D)}var J=_(g,D),K=C(_(F,S(R[0],J)),_(H,S(R[1],J)),J);return S(i,K)},d}();u.prototype.$characterSize={width:0,height:0},V.implement(u.prototype,h),T.FontMetrics=u}),ace.define("ace/css/editor-css",["require","exports","module"],function(y,T,G){G.exports=` -.ace_br1 {border-top-left-radius : 3px;} -.ace_br2 {border-top-right-radius : 3px;} -.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;} -.ace_br4 {border-bottom-right-radius: 3px;} -.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;} -.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;} -.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;} -.ace_br8 {border-bottom-left-radius : 3px;} -.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;} -.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;} -.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} - - -.ace_editor { - position: relative; - overflow: hidden; - padding: 0; - font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace; - direction: ltr; - text-align: left; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -} - -.ace_scroller { - position: absolute; - overflow: hidden; - top: 0; - bottom: 0; - background-color: inherit; - -ms-user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; - cursor: text; -} - -.ace_content { - position: absolute; - box-sizing: border-box; - min-width: 100%; - contain: style size layout; - font-variant-ligatures: no-common-ligatures; -} - -.ace_keyboard-focus:focus { - box-shadow: inset 0 0 0 2px #5E9ED6; - outline: none; -} - -.ace_dragging .ace_scroller:before{ - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - content: ''; - background: rgba(250, 250, 250, 0.01); - z-index: 1000; -} -.ace_dragging.ace_dark .ace_scroller:before{ - background: rgba(0, 0, 0, 0.01); -} - -.ace_gutter { - position: absolute; - overflow : hidden; - width: auto; - top: 0; - bottom: 0; - left: 0; - cursor: default; - z-index: 4; - -ms-user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; - contain: style size layout; -} - -.ace_gutter-active-line { - position: absolute; - left: 0; - right: 0; -} - -.ace_scroller.ace_scroll-left:after { - content: ""; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset; - pointer-events: none; -} - -.ace_gutter-cell, .ace_gutter-cell_svg-icons { - position: absolute; - top: 0; - left: 0; - right: 0; - padding-left: 19px; - padding-right: 6px; - background-repeat: no-repeat; -} - -.ace_gutter-cell_svg-icons .ace_gutter_annotation { - margin-left: -14px; - float: left; -} - -.ace_gutter-cell .ace_gutter_annotation { - margin-left: -19px; - float: left; -} - -.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg=="); - background-repeat: no-repeat; - background-position: 2px center; -} - -.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg=="); - background-repeat: no-repeat; - background-position: 2px center; -} - -.ace_gutter-cell.ace_info, .ace_icon.ace_info { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII="); - background-repeat: no-repeat; - background-position: 2px center; -} -.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC"); -} - -.ace_icon_svg.ace_error { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+"); - background-color: crimson; -} -.ace_icon_svg.ace_warning { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg=="); - background-color: darkorange; -} -.ace_icon_svg.ace_info { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg=="); - background-color: royalblue; -} - -.ace_icon_svg.ace_error_fold { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4="); - background-color: crimson; -} -.ace_icon_svg.ace_warning_fold { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4="); - background-color: darkorange; -} - -.ace_scrollbar { - contain: strict; - position: absolute; - right: 0; - bottom: 0; - z-index: 6; -} - -.ace_scrollbar-inner { - position: absolute; - cursor: text; - left: 0; - top: 0; -} - -.ace_scrollbar-v{ - overflow-x: hidden; - overflow-y: scroll; - top: 0; -} - -.ace_scrollbar-h { - overflow-x: scroll; - overflow-y: hidden; - left: 0; -} - -.ace_print-margin { - position: absolute; - height: 100%; -} - -.ace_text-input { - position: absolute; - z-index: 0; - width: 0.5em; - height: 1em; - opacity: 0; - background: transparent; - -moz-appearance: none; - appearance: none; - border: none; - resize: none; - outline: none; - overflow: hidden; - font: inherit; - padding: 0 1px; - margin: 0 -1px; - contain: strict; - -ms-user-select: text; - -moz-user-select: text; - -webkit-user-select: text; - user-select: text; - /*with \`pre-line\` chrome inserts   instead of space*/ - white-space: pre!important; -} -.ace_text-input.ace_composition { - background: transparent; - color: inherit; - z-index: 1000; - opacity: 1; -} -.ace_composition_placeholder { color: transparent } -.ace_composition_marker { - border-bottom: 1px solid; - position: absolute; - border-radius: 0; - margin-top: 1px; -} - -[ace_nocontext=true] { - transform: none!important; - filter: none!important; - clip-path: none!important; - mask : none!important; - contain: none!important; - perspective: none!important; - mix-blend-mode: initial!important; - z-index: auto; -} - -.ace_layer { - z-index: 1; - position: absolute; - overflow: hidden; - /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/ - word-wrap: normal; - white-space: pre; - height: 100%; - width: 100%; - box-sizing: border-box; - /* setting pointer-events: auto; on node under the mouse, which changes - during scroll, will break mouse wheel scrolling in Safari */ - pointer-events: none; -} - -.ace_gutter-layer { - position: relative; - width: auto; - text-align: right; - pointer-events: auto; - height: 1000000px; - contain: style size layout; -} - -.ace_text-layer { - font: inherit !important; - position: absolute; - height: 1000000px; - width: 1000000px; - contain: style size layout; -} - -.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group { - contain: style size layout; - position: absolute; - top: 0; - left: 0; - right: 0; -} - -.ace_hidpi .ace_text-layer, -.ace_hidpi .ace_gutter-layer, -.ace_hidpi .ace_content, -.ace_hidpi .ace_gutter { - contain: strict; -} -.ace_hidpi .ace_text-layer > .ace_line, -.ace_hidpi .ace_text-layer > .ace_line_group { - contain: strict; -} - -.ace_cjk { - display: inline-block; - text-align: center; -} - -.ace_cursor-layer { - z-index: 4; -} - -.ace_cursor { - z-index: 4; - position: absolute; - box-sizing: border-box; - border-left: 2px solid; - /* workaround for smooth cursor repaintng whole screen in chrome */ - transform: translatez(0); -} - -.ace_multiselect .ace_cursor { - border-left-width: 1px; -} - -.ace_slim-cursors .ace_cursor { - border-left-width: 1px; -} - -.ace_overwrite-cursors .ace_cursor { - border-left-width: 0; - border-bottom: 1px solid; -} - -.ace_hidden-cursors .ace_cursor { - opacity: 0.2; -} - -.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor { - opacity: 0; -} - -.ace_smooth-blinking .ace_cursor { - transition: opacity 0.18s; -} - -.ace_animate-blinking .ace_cursor { - animation-duration: 1000ms; - animation-timing-function: step-end; - animation-name: blink-ace-animate; - animation-iteration-count: infinite; -} - -.ace_animate-blinking.ace_smooth-blinking .ace_cursor { - animation-duration: 1000ms; - animation-timing-function: ease-in-out; - animation-name: blink-ace-animate-smooth; -} - -@keyframes blink-ace-animate { - from, to { opacity: 1; } - 60% { opacity: 0; } -} - -@keyframes blink-ace-animate-smooth { - from, to { opacity: 1; } - 45% { opacity: 1; } - 60% { opacity: 0; } - 85% { opacity: 0; } -} - -.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack { - position: absolute; - z-index: 3; -} - -.ace_marker-layer .ace_selection { - position: absolute; - z-index: 5; -} - -.ace_marker-layer .ace_bracket { - position: absolute; - z-index: 6; -} - -.ace_marker-layer .ace_error_bracket { - position: absolute; - border-bottom: 1px solid #DE5555; - border-radius: 0; -} - -.ace_marker-layer .ace_active-line { - position: absolute; - z-index: 2; -} - -.ace_marker-layer .ace_selected-word { - position: absolute; - z-index: 4; - box-sizing: border-box; -} - -.ace_line .ace_fold { - box-sizing: border-box; - - display: inline-block; - height: 11px; - margin-top: -2px; - vertical-align: middle; - - background-image: - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII="); - background-repeat: no-repeat, repeat-x; - background-position: center center, top left; - color: transparent; - - border: 1px solid black; - border-radius: 2px; - - cursor: pointer; - pointer-events: auto; -} - -.ace_dark .ace_fold { -} - -.ace_fold:hover{ - background-image: - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC"); -} - -.ace_tooltip { - background-color: #f5f5f5; - border: 1px solid gray; - border-radius: 1px; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); - color: black; - max-width: 100%; - padding: 3px 4px; - position: fixed; - z-index: 999999; - box-sizing: border-box; - cursor: default; - white-space: pre; - word-wrap: break-word; - line-height: normal; - font-style: normal; - font-weight: normal; - letter-spacing: normal; - pointer-events: none; -} - -.ace_tooltip.ace_dark { - background-color: #636363; - color: #fff; -} - -.ace_tooltip:focus { - outline: 1px solid #5E9ED6; -} - -.ace_icon { - display: inline-block; - width: 18px; - vertical-align: top; -} - -.ace_icon_svg { - display: inline-block; - width: 12px; - vertical-align: top; - -webkit-mask-repeat: no-repeat; - -webkit-mask-size: 12px; - -webkit-mask-position: center; -} - -.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons { - padding-right: 13px; -} - -.ace_fold-widget { - box-sizing: border-box; - - margin: 0 -12px 0 1px; - display: none; - width: 11px; - vertical-align: top; - - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg=="); - background-repeat: no-repeat; - background-position: center; - - border-radius: 3px; - - border: 1px solid transparent; - cursor: pointer; -} - -.ace_folding-enabled .ace_fold-widget { - display: inline-block; -} - -.ace_fold-widget.ace_end { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg=="); -} - -.ace_fold-widget.ace_closed { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA=="); -} - -.ace_fold-widget:hover { - border: 1px solid rgba(0, 0, 0, 0.3); - background-color: rgba(255, 255, 255, 0.2); - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7); -} - -.ace_fold-widget:active { - border: 1px solid rgba(0, 0, 0, 0.4); - background-color: rgba(0, 0, 0, 0.05); - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); -} -/** - * Dark version for fold widgets - */ -.ace_dark .ace_fold-widget { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC"); -} -.ace_dark .ace_fold-widget.ace_end { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg=="); -} -.ace_dark .ace_fold-widget.ace_closed { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg=="); -} -.ace_dark .ace_fold-widget:hover { - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); - background-color: rgba(255, 255, 255, 0.1); -} -.ace_dark .ace_fold-widget:active { - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); -} - -.ace_inline_button { - border: 1px solid lightgray; - display: inline-block; - margin: -1px 8px; - padding: 0 5px; - pointer-events: auto; - cursor: pointer; -} -.ace_inline_button:hover { - border-color: gray; - background: rgba(200,200,200,0.2); - display: inline-block; - pointer-events: auto; -} - -.ace_fold-widget.ace_invalid { - background-color: #FFB4B4; - border-color: #DE5555; -} - -.ace_fade-fold-widgets .ace_fold-widget { - transition: opacity 0.4s ease 0.05s; - opacity: 0; -} - -.ace_fade-fold-widgets:hover .ace_fold-widget { - transition: opacity 0.05s ease 0.05s; - opacity:1; -} - -.ace_underline { - text-decoration: underline; -} - -.ace_bold { - font-weight: bold; -} - -.ace_nobold .ace_bold { - font-weight: normal; -} - -.ace_italic { - font-style: italic; -} - - -.ace_error-marker { - background-color: rgba(255, 0, 0,0.2); - position: absolute; - z-index: 9; -} - -.ace_highlight-marker { - background-color: rgba(255, 255, 0,0.2); - position: absolute; - z-index: 8; -} - -.ace_mobile-menu { - position: absolute; - line-height: 1.5; - border-radius: 4px; - -ms-user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; - background: white; - box-shadow: 1px 3px 2px grey; - border: 1px solid #dcdcdc; - color: black; -} -.ace_dark > .ace_mobile-menu { - background: #333; - color: #ccc; - box-shadow: 1px 3px 2px grey; - border: 1px solid #444; - -} -.ace_mobile-button { - padding: 2px; - cursor: pointer; - overflow: hidden; -} -.ace_mobile-button:hover { - background-color: #eee; - opacity:1; -} -.ace_mobile-button:active { - background-color: #ddd; -} - -.ace_placeholder { - font-family: arial; - transform: scale(0.9); - transform-origin: left; - white-space: pre; - opacity: 0.7; - margin: 0 10px; -} - -.ace_ghost_text { - opacity: 0.5; - font-style: italic; - white-space: pre; -}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(y,T,G){var V=y("../lib/dom"),L=y("../lib/oop"),A=y("../lib/event_emitter").EventEmitter,s=function(){function m(h,l){this.canvas=V.createElement("canvas"),this.renderer=l,this.pixelRatio=1,this.maxHeight=l.layerConfig.maxHeight,this.lineHeight=l.layerConfig.lineHeight,this.canvasHeight=h.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=h.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},h.element.appendChild(this.canvas)}return m.prototype.$updateDecorators=function(h){var l=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(h){this.maxHeight=h.maxHeight,this.lineHeight=h.lineHeight,this.canvasHeight=h.height;var c=(h.lastRow+1)*this.lineHeight;cR.priority?1:0}var d=this.renderer.session.$annotations;if(i.clearRect(0,0,this.canvas.width,this.canvas.height),d){var g={info:1,warning:2,error:3};d.forEach(function(k){k.priority=g[k.type]||null}),d=d.sort(u);for(var v=this.renderer.session.$foldData,x=0;xthis.canvasHeight&&(N=this.canvasHeight-this.halfMinDecorationHeight),S=Math.round(N-this.halfMinDecorationHeight),O=Math.round(N+this.halfMinDecorationHeight)}i.fillStyle=l[d[x].type]||null,i.fillRect(0,$,this.canvasWidth,O-S)}}var M=this.renderer.session.selection.getCursor();if(M){var _=this.compensateFoldRows(M.row,v),$=Math.round((M.row-_)*this.lineHeight*this.heightRatio);i.fillStyle="rgba(0, 0, 0, 0.5)",i.fillRect(0,$,this.canvasWidth,2)}},m.prototype.compensateFoldRows=function(h,l){var c=0;if(l&&l.length>0)for(var i=0;il[i].start.row&&h=l[i].end.row&&(c+=l[i].end.row-l[i].start.row);return c},m}();L.implement(s.prototype,A),T.Decorator=s}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(y,T,G){var V=y("./lib/oop"),L=y("./lib/dom"),A=y("./lib/lang"),s=y("./config"),m=y("./layer/gutter").Gutter,h=y("./layer/marker").Marker,l=y("./layer/text").Text,c=y("./layer/cursor").Cursor,i=y("./scrollbar").HScrollBar,u=y("./scrollbar").VScrollBar,d=y("./scrollbar_custom").HScrollBar,g=y("./scrollbar_custom").VScrollBar,v=y("./renderloop").RenderLoop,x=y("./layer/font_metrics").FontMetrics,C=y("./lib/event_emitter").EventEmitter,_=y("./css/editor-css"),$=y("./layer/decorators").Decorator,S=y("./lib/useragent");L.importCssString(_,"ace_editor.css",!1);var O=function(){function D(N,M){var k=this;this.container=N||L.createElement("div"),L.addCssClass(this.container,"ace_editor"),L.HI_DPI&&L.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),s.get("useStrictCSP")==null&&s.set("useStrictCSP",!1),this.$gutter=L.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=L.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=L.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new m(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new h(this.content);var R=this.$textLayer=new l(this.content);this.canvas=R.element,this.$markerFront=new h(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new u(this.container,this),this.scrollBarH=new i(this.container,this),this.scrollBarV.on("scroll",function(F){k.$scrollAnimation||k.session.setScrollTop(F.data-k.scrollMargin.top)}),this.scrollBarH.on("scroll",function(F){k.$scrollAnimation||k.session.setScrollLeft(F.data-k.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new x(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(F){k.updateCharacterSize(),k.onResize(!0,k.gutterWidth,k.$size.width,k.$size.height),k._signal("changeCharacterSize",F)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!S.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),s.resetOptions(this),s._signal("renderer",this)}return D.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),L.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},D.prototype.setSession=function(N){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=N,N&&this.scrollMargin.top&&N.getScrollTop()<=0&&N.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(N),this.$markerBack.setSession(N),this.$markerFront.setSession(N),this.$gutterLayer.setSession(N),this.$textLayer.setSession(N),N&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},D.prototype.updateLines=function(N,M,k){if(M===void 0&&(M=1/0),this.$changedLines?(this.$changedLines.firstRow>N&&(this.$changedLines.firstRow=N),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},D.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},D.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},D.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},D.prototype.updateFull=function(N){N?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},D.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},D.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},D.prototype.onResize=function(N,M,k,R){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=N?1:0;var F=this.container;R||(R=F.clientHeight||F.scrollHeight),k||(k=F.clientWidth||F.scrollWidth);var H=this.$updateCachedSize(N,M,k,R);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!k&&!R)return this.resizing=0;N&&(this.$gutterLayer.$padding=null),N?this.$renderChanges(H|this.$changes,!0):this.$loop.schedule(H|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},D.prototype.$updateCachedSize=function(N,M,k,R){R-=this.$extraHeight||0;var F=0,H=this.$size,j={width:H.width,height:H.height,scrollerHeight:H.scrollerHeight,scrollerWidth:H.scrollerWidth};if(R&&(N||H.height!=R)&&(H.height=R,F|=this.CHANGE_SIZE,H.scrollerHeight=H.height,this.$horizScroll&&(H.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(H.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",F=F|this.CHANGE_SCROLL),k&&(N||H.width!=k)){F|=this.CHANGE_SIZE,H.width=k,M==null&&(M=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=M,L.setStyle(this.scrollBarH.element.style,"left",M+"px"),L.setStyle(this.scroller.style,"left",M+this.margin.left+"px"),H.scrollerWidth=Math.max(0,k-M-this.scrollBarV.getWidth()-this.margin.h),L.setStyle(this.$gutter.style,"left",this.margin.left+"px");var P=this.scrollBarV.getWidth()+"px";L.setStyle(this.scrollBarH.element.style,"right",P),L.setStyle(this.scroller.style,"right",P),L.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(H.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||N)&&(F|=this.CHANGE_FULL)}return H.$dirty=!k||!R,F&&this._signal("resize",j),F},D.prototype.onGutterResize=function(N){var M=this.$showGutter?N:0;M!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,M,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},D.prototype.adjustWrapLimit=function(){var N=this.$size.scrollerWidth-this.$padding*2,M=Math.floor(N/this.characterWidth);return this.session.adjustWrapLimit(M,this.$showPrintMargin&&this.$printMarginColumn)},D.prototype.setAnimatedScroll=function(N){this.setOption("animatedScroll",N)},D.prototype.getAnimatedScroll=function(){return this.$animatedScroll},D.prototype.setShowInvisibles=function(N){this.setOption("showInvisibles",N),this.session.$bidiHandler.setShowInvisibles(N)},D.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},D.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},D.prototype.setDisplayIndentGuides=function(N){this.setOption("displayIndentGuides",N)},D.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},D.prototype.setHighlightIndentGuides=function(N){this.setOption("highlightIndentGuides",N)},D.prototype.setShowPrintMargin=function(N){this.setOption("showPrintMargin",N)},D.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},D.prototype.setPrintMarginColumn=function(N){this.setOption("printMarginColumn",N)},D.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},D.prototype.getShowGutter=function(){return this.getOption("showGutter")},D.prototype.setShowGutter=function(N){return this.setOption("showGutter",N)},D.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},D.prototype.setFadeFoldWidgets=function(N){this.setOption("fadeFoldWidgets",N)},D.prototype.setHighlightGutterLine=function(N){this.setOption("highlightGutterLine",N)},D.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},D.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var N=L.createElement("div");N.className="ace_layer ace_print-margin-layer",this.$printMarginEl=L.createElement("div"),this.$printMarginEl.className="ace_print-margin",N.appendChild(this.$printMarginEl),this.content.insertBefore(N,this.content.firstChild)}var M=this.$printMarginEl.style;M.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",M.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},D.prototype.getContainerElement=function(){return this.container},D.prototype.getMouseEventTarget=function(){return this.scroller},D.prototype.getTextAreaContainer=function(){return this.container},D.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var N=this.textarea.style,M=this.$composition;if(!this.$keepTextAreaAtCursor&&!M){L.translate(this.textarea,-100,0);return}var k=this.$cursorLayer.$pixelPos;if(k){M&&M.markerRange&&(k=this.$cursorLayer.getPixelPosition(M.markerRange.start,!0));var R=this.layerConfig,F=k.top,H=k.left;F-=R.offset;var j=M&&M.useTextareaForIME||S.isMobile?this.lineHeight:1;if(F<0||F>R.height-j){L.translate(this.textarea,0,0);return}var P=1,ee=this.$size.height-j;if(!M)F+=this.lineHeight;else if(M.useTextareaForIME){var J=this.textarea.value;P=this.characterWidth*this.session.$getStringScreenWidth(J)[0]}else F+=this.lineHeight+2;H-=this.scrollLeft,H>this.$size.scrollerWidth-P&&(H=this.$size.scrollerWidth-P),H+=this.gutterWidth+this.margin.left,L.setStyle(N,"height",j+"px"),L.setStyle(N,"width",P+"px"),L.translate(this.textarea,Math.min(H,this.$size.scrollerWidth-P),Math.min(F,ee))}}},D.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},D.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},D.prototype.getLastFullyVisibleRow=function(){var N=this.layerConfig,M=N.lastRow,k=this.session.documentToScreenRow(M,0)*N.lineHeight;return k-this.session.getScrollTop()>N.height-N.lineHeight?M-1:M},D.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},D.prototype.setPadding=function(N){this.$padding=N,this.$textLayer.setPadding(N),this.$cursorLayer.setPadding(N),this.$markerFront.setPadding(N),this.$markerBack.setPadding(N),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},D.prototype.setScrollMargin=function(N,M,k,R){var F=this.scrollMargin;F.top=N|0,F.bottom=M|0,F.right=R|0,F.left=k|0,F.v=F.top+F.bottom,F.h=F.left+F.right,F.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-F.top),this.updateFull()},D.prototype.setMargin=function(N,M,k,R){var F=this.margin;F.top=N|0,F.bottom=M|0,F.right=R|0,F.left=k|0,F.v=F.top+F.bottom,F.h=F.left+F.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},D.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},D.prototype.setHScrollBarAlwaysVisible=function(N){this.setOption("hScrollBarAlwaysVisible",N)},D.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},D.prototype.setVScrollBarAlwaysVisible=function(N){this.setOption("vScrollBarAlwaysVisible",N)},D.prototype.$updateScrollBarV=function(){var N=this.layerConfig.maxHeight,M=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(N-=(M-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>N-M&&(N=this.scrollTop+M,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(N+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},D.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},D.prototype.freeze=function(){this.$frozen=!0},D.prototype.unfreeze=function(){this.$frozen=!1},D.prototype.$renderChanges=function(N,M){if(this.$changes&&(N|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!N&&!M){this.$changes|=N;return}if(this.$size.$dirty)return this.$changes|=N,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",N),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var k=this.layerConfig;if(N&this.CHANGE_FULL||N&this.CHANGE_SIZE||N&this.CHANGE_TEXT||N&this.CHANGE_LINES||N&this.CHANGE_SCROLL||N&this.CHANGE_H_SCROLL){if(N|=this.$computeLayerConfig()|this.$loop.clear(),k.firstRow!=this.layerConfig.firstRow&&k.firstRowScreen==this.layerConfig.firstRowScreen){var R=this.scrollTop+(k.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;R>0&&(this.scrollTop=R,N=N|this.CHANGE_SCROLL,N|=this.$computeLayerConfig()|this.$loop.clear())}k=this.layerConfig,this.$updateScrollBarV(),N&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),L.translate(this.content,-this.scrollLeft,-k.offset);var F=k.width+2*this.$padding+"px",H=k.minHeight+"px";L.setStyle(this.content.style,"width",F),L.setStyle(this.content.style,"height",H)}if(N&this.CHANGE_H_SCROLL&&(L.translate(this.content,-this.scrollLeft,-k.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),N&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(k),this.$showGutter&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k),this.$markerBack.update(k),this.$markerFront.update(k),this.$cursorLayer.update(k),this.$moveTextAreaToCursor(),this._signal("afterRender",N);return}if(N&this.CHANGE_SCROLL){this.$changedLines=null,N&this.CHANGE_TEXT||N&this.CHANGE_LINES?this.$textLayer.update(k):this.$textLayer.scrollLines(k),this.$showGutter&&(N&this.CHANGE_GUTTER||N&this.CHANGE_LINES?this.$gutterLayer.update(k):this.$gutterLayer.scrollLines(k)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k),this.$markerBack.update(k),this.$markerFront.update(k),this.$cursorLayer.update(k),this.$moveTextAreaToCursor(),this._signal("afterRender",N);return}N&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(k),this.$showGutter&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)):N&this.CHANGE_LINES?((this.$updateLines()||N&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)):N&this.CHANGE_TEXT||N&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)):N&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)),N&this.CHANGE_CURSOR&&(this.$cursorLayer.update(k),this.$moveTextAreaToCursor()),N&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(k),N&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(k),this._signal("afterRender",N)},D.prototype.$autosize=function(){var N=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,k=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,N))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(k+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&k>this.$maxPixelHeight&&(k=this.$maxPixelHeight);var R=k<=2*this.lineHeight,F=!R&&N>M;if(k!=this.desiredHeight||this.$size.height!=this.desiredHeight||F!=this.$vScroll){F!=this.$vScroll&&(this.$vScroll=F,this.scrollBarV.setVisible(F));var H=this.container.clientWidth;this.container.style.height=k+"px",this.$updateCachedSize(!0,this.$gutterWidth,H,k),this.desiredHeight=k,this._signal("autosize")}},D.prototype.$computeLayerConfig=function(){var N=this.session,M=this.$size,k=M.height<=2*this.lineHeight,R=this.session.getScreenLength(),F=R*this.lineHeight,H=this.$getLongestLine(),j=!k&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-H-2*this.$padding<0),P=this.$horizScroll!==j;P&&(this.$horizScroll=j,this.scrollBarH.setVisible(j));var ee=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var J=M.scrollerHeight+this.lineHeight,K=!this.$maxLines&&this.$scrollPastEnd?(M.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;F+=K;var ae=this.scrollMargin;this.session.setScrollTop(Math.max(-ae.top,Math.min(this.scrollTop,F-M.scrollerHeight+ae.bottom))),this.session.setScrollLeft(Math.max(-ae.left,Math.min(this.scrollLeft,H+2*this.$padding-M.scrollerWidth+ae.right)));var Q=!k&&(this.$vScrollBarAlwaysVisible||M.scrollerHeight-F+K<0||this.scrollTop>ae.top),he=ee!==Q;he&&(this.$vScroll=Q,this.scrollBarV.setVisible(Q));var ge=this.scrollTop%this.lineHeight,Se=Math.ceil(J/this.lineHeight)-1,ce=Math.max(0,Math.round((this.scrollTop-ge)/this.lineHeight)),ne=ce+Se,fe,X,ye=this.lineHeight;ce=N.screenToDocumentRow(ce,0);var Ce=N.getFoldLine(ce);Ce&&(ce=Ce.start.row),fe=N.documentToScreenRow(ce,0),X=N.getRowLength(ce)*ye,ne=Math.min(N.screenToDocumentRow(ne,0),N.getLength()-1),J=M.scrollerHeight+N.getRowLength(ne)*ye+X,ge=this.scrollTop-fe*ye;var $e=0;return(this.layerConfig.width!=H||P)&&($e=this.CHANGE_H_SCROLL),(P||he)&&($e|=this.$updateCachedSize(!0,this.gutterWidth,M.width,M.height),this._signal("scrollbarVisibilityChanged"),he&&(H=this.$getLongestLine())),this.layerConfig={width:H,padding:this.$padding,firstRow:ce,firstRowScreen:fe,lastRow:ne,lineHeight:ye,characterWidth:this.characterWidth,minHeight:J,maxHeight:F,offset:ge,gutterOffset:ye?Math.max(0,Math.ceil((ge+M.height-M.scrollerHeight)/ye)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(H-this.$padding),$e},D.prototype.$updateLines=function(){if(this.$changedLines){var N=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var k=this.layerConfig;if(!(N>k.lastRow+1)&&!(Mthis.$textLayer.MAX_LINE_LENGTH&&(N=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(N*this.characterWidth))},D.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},D.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},D.prototype.addGutterDecoration=function(N,M){this.$gutterLayer.addGutterDecoration(N,M)},D.prototype.removeGutterDecoration=function(N,M){this.$gutterLayer.removeGutterDecoration(N,M)},D.prototype.updateBreakpoints=function(N){this.$loop.schedule(this.CHANGE_GUTTER)},D.prototype.setAnnotations=function(N){this.$gutterLayer.setAnnotations(N),this.$loop.schedule(this.CHANGE_GUTTER)},D.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},D.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},D.prototype.showCursor=function(){this.$cursorLayer.showCursor()},D.prototype.scrollSelectionIntoView=function(N,M,k){this.scrollCursorIntoView(N,k),this.scrollCursorIntoView(M,k)},D.prototype.scrollCursorIntoView=function(N,M,k){if(this.$size.scrollerHeight!==0){var R=this.$cursorLayer.getPixelPosition(N),F=R.left,H=R.top,j=k&&k.top||0,P=k&&k.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var ee=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;ee+j>H?(M&&ee+j>H+this.lineHeight&&(H-=M*this.$size.scrollerHeight),H===0&&(H=-this.scrollMargin.top),this.session.setScrollTop(H)):ee+this.$size.scrollerHeight-P=1-this.scrollMargin.top||M>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||N<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||N>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},D.prototype.pixelToScreenCoordinates=function(N,M){var k;if(this.$hasCssTransforms){k={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([N,M]);N=R[1]-this.gutterWidth-this.margin.left,M=R[0]}else k=this.scroller.getBoundingClientRect();var F=N+this.scrollLeft-k.left-this.$padding,H=F/this.characterWidth,j=Math.floor((M+this.scrollTop-k.top)/this.lineHeight),P=this.$blockCursor?Math.floor(H):Math.round(H);return{row:j,column:P,side:H-P>0?1:-1,offsetX:F}},D.prototype.screenToTextCoordinates=function(N,M){var k;if(this.$hasCssTransforms){k={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([N,M]);N=R[1]-this.gutterWidth-this.margin.left,M=R[0]}else k=this.scroller.getBoundingClientRect();var F=N+this.scrollLeft-k.left-this.$padding,H=F/this.characterWidth,j=this.$blockCursor?Math.floor(H):Math.round(H),P=Math.floor((M+this.scrollTop-k.top)/this.lineHeight);return this.session.screenToDocumentPosition(P,Math.max(j,0),F)},D.prototype.textToScreenCoordinates=function(N,M){var k=this.scroller.getBoundingClientRect(),R=this.session.documentToScreenPosition(N,M),F=this.$padding+(this.session.$bidiHandler.isBidiRow(R.row,N)?this.session.$bidiHandler.getPosLeft(R.column):Math.round(R.column*this.characterWidth)),H=R.row*this.lineHeight;return{pageX:k.left+F-this.scrollLeft,pageY:k.top+H-this.scrollTop}},D.prototype.visualizeFocus=function(){L.addCssClass(this.container,"ace_focus")},D.prototype.visualizeBlur=function(){L.removeCssClass(this.container,"ace_focus")},D.prototype.showComposition=function(N){this.$composition=N,N.cssText||(N.cssText=this.textarea.style.cssText),N.useTextareaForIME==null&&(N.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(L.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):N.markerId=this.session.addMarker(N.markerRange,"ace_composition_marker","text")},D.prototype.setCompositionText=function(N){var M=this.session.selection.cursor;this.addToken(N,"composition_placeholder",M.row,M.column),this.$moveTextAreaToCursor()},D.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),L.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var N=this.session.selection.cursor;this.removeExtraToken(N.row,N.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},D.prototype.setGhostText=function(N,M){var k=this.session.selection.cursor,R=M||{row:k.row,column:k.column};this.removeGhostText();var F=N.split(` -`);this.addToken(F[0],"ghost_text",R.row,R.column),this.$ghostText={text:N,position:{row:R.row,column:R.column}},F.length>1&&(this.$ghostTextWidget={text:F.slice(1).join(` -`),row:R.row,column:R.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},D.prototype.removeGhostText=function(){if(this.$ghostText){var N=this.$ghostText.position;this.removeExtraToken(N.row,N.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},D.prototype.addToken=function(N,M,k,R){var F=this.session;F.bgTokenizer.lines[k]=null;var H={type:M,value:N},j=F.getTokens(k);if(R==null||!j.length)j.push(H);else for(var P=0,ee=0;ee1||Math.abs(N.$size.height-R)>1?N.$resizeTimer.delay():N.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},D}();O.prototype.CHANGE_CURSOR=1,O.prototype.CHANGE_MARKER=2,O.prototype.CHANGE_GUTTER=4,O.prototype.CHANGE_SCROLL=8,O.prototype.CHANGE_LINES=16,O.prototype.CHANGE_TEXT=32,O.prototype.CHANGE_SIZE=64,O.prototype.CHANGE_MARKER_BACK=128,O.prototype.CHANGE_MARKER_FRONT=256,O.prototype.CHANGE_FULL=512,O.prototype.CHANGE_H_SCROLL=1024,O.prototype.$changes=0,O.prototype.$padding=null,O.prototype.$frozen=!1,O.prototype.STEPS=8,V.implement(O.prototype,C),s.defineOptions(O.prototype,"renderer",{useResizeObserver:{set:function(D){!D&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):D&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(D){this.$textLayer.setShowInvisibles(D)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(D){typeof D=="number"&&(this.$printMarginColumn=D),this.$showPrintMargin=!!D,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(D){this.$gutter.style.display=D?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(D){this.$gutterLayer.$useSvgGutterIcons=D},initialValue:!1},showFoldedAnnotations:{set:function(D){this.$gutterLayer.$showFoldedAnnotations=D},initialValue:!1},fadeFoldWidgets:{set:function(D){L.setCssClass(this.$gutter,"ace_fade-fold-widgets",D)},initialValue:!1},showFoldWidgets:{set:function(D){this.$gutterLayer.setShowFoldWidgets(D),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(D){this.$textLayer.setDisplayIndentGuides(D)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(D){this.$textLayer.setHighlightIndentGuides(D)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(D){this.$gutterLayer.setHighlightGutterLine(D),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(D){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(D){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(D){typeof D=="number"&&(D=D+"px"),this.container.style.fontSize=D,this.updateFontSize()},initialValue:12},fontFamily:{set:function(D){this.container.style.fontFamily=D,this.updateFontSize()}},maxLines:{set:function(D){this.updateFull()}},minLines:{set:function(D){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(D){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(D){D=+D||0,this.$scrollPastEnd!=D&&(this.$scrollPastEnd=D,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(D){this.$gutterLayer.$fixedWidth=!!D,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(D){this.$updateCustomScrollbar(D)},initialValue:!1},theme:{set:function(D){this.setTheme(D)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!S.isMobile&&!S.isIE}}),T.VirtualRenderer=O}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(y,T,G){var V=y("../lib/oop"),L=y("../lib/net"),A=y("../lib/event_emitter").EventEmitter,s=y("../config");function m(i){var u="importScripts('"+L.qualifyURL(i)+"');";try{return new Blob([u],{type:"application/javascript"})}catch{var d=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,g=new d;return g.append(u),g.getBlob("application/javascript")}}function h(i){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var u=m(i),d=window.URL||window.webkitURL,g=d.createObjectURL(u);return new Worker(g)}return new Worker(i)}var l=function(i){i.postMessage||(i=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=i,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){V.implement(this,A),this.$createWorkerFromOldConfig=function(i,u,d,g,v){if(y.nameToUrl&&!y.toUrl&&(y.toUrl=y.nameToUrl),s.get("packaged")||!y.toUrl)g=g||s.moduleUrl(u,"worker");else{var x=this.$normalizePath;g=g||x(y.toUrl("ace/worker/worker.js",null,"_"));var C={};i.forEach(function(_){C[_]=x(y.toUrl(_,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=h(g),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:C,module:u,classname:d}),this.$worker},this.onMessage=function(i){var u=i.data;switch(u.type){case"event":this._signal(u.name,{data:u.data});break;case"call":var d=this.callbacks[u.id];d&&(d(u.data),delete this.callbacks[u.id]);break;case"error":this.reportError(u.data);break;case"log":window.console&&console.log&&console.log.apply(console,u.data);break}},this.reportError=function(i){window.console&&console.error&&console.error(i)},this.$normalizePath=function(i){return L.qualifyURL(i)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(i){i.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(i,u){this.$worker.postMessage({command:i,args:u})},this.call=function(i,u,d){if(d){var g=this.callbackId++;this.callbacks[g]=d,u.push(g)}this.send(i,u)},this.emit=function(i,u){try{u.data&&u.data.err&&(u.data.err={message:u.data.err.message,stack:u.data.err.stack,code:u.data.err.code}),this.$worker&&this.$worker.postMessage({event:i,data:{data:u.data}})}catch(d){console.error(d.stack)}},this.attachToDocument=function(i){this.$doc&&this.terminate(),this.$doc=i,this.call("setValue",[i.getValue()]),i.on("change",this.changeListener,!0)},this.changeListener=function(i){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),i.action=="insert"?this.deltaQueue.push(i.start,i.lines):this.deltaQueue.push(i.start,i.end)},this.$sendDeltaQueue=function(){var i=this.deltaQueue;i&&(this.deltaQueue=null,i.length>50&&i.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:i}))}}).call(l.prototype);var c=function(i,u,d){var g=null,v=!1,x=Object.create(A),C=[],_=new l({messageBuffer:C,terminate:function(){},postMessage:function(S){C.push(S),g&&(v?setTimeout($):$())}});_.setEmitSync=function(S){v=S};var $=function(){var S=C.shift();S.command?g[S.command].apply(g,S.args):S.event&&x._signal(S.event,S.data)};return x.postMessage=function(S){_.onMessage({data:S})},x.callback=function(S,O){this.postMessage({type:"call",id:O,data:S})},x.emit=function(S,O){this.postMessage({type:"event",name:S,data:O})},s.loadModule(["worker",u],function(S){for(g=new S[d](x);C.length;)$()}),_};T.UIWorkerClient=c,T.WorkerClient=l,T.createWorker=h}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(y,T,G){var V=y("./range").Range,L=y("./lib/event_emitter").EventEmitter,A=y("./lib/oop"),s=function(){function m(h,l,c,i,u,d){var g=this;this.length=l,this.session=h,this.doc=h.getDocument(),this.mainClass=u,this.othersClass=d,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=i,this.$onCursorChange=function(){setTimeout(function(){g.onCursorChange()})},this.$pos=c;var v=h.getUndoManager().$undoStack||h.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),h.selection.on("changeCursor",this.$onCursorChange)}return m.prototype.setup=function(){var h=this,l=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=l.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=c.addMarker(new V(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(u){var d=l.createAnchor(u.row,u.column);d.$insertRight=!0,d.detach(),h.others.push(d)}),c.setUndoSelect(!1)},m.prototype.showOtherMarkers=function(){if(!this.othersActive){var h=this.session,l=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=h.addMarker(new V(c.row,c.column,c.row,c.column+l.length),l.othersClass,null,!1)})}},m.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var h=0;h=this.pos.column&&l.start.column<=this.pos.column+this.length+1,u=l.start.column-this.pos.column;if(this.updateAnchors(h),i&&(this.length+=c),i&&!this.session.$fromUndo){if(h.action==="insert")for(var d=this.others.length-1;d>=0;d--){var g=this.others[d],v={row:g.row,column:g.column+u};this.doc.insertMergedLines(v,h.lines)}else if(h.action==="remove")for(var d=this.others.length-1;d>=0;d--){var g=this.others[d],v={row:g.row,column:g.column+u};this.doc.remove(new V(v.row,v.column,v.row,v.column-c))}}this.$updating=!1,this.updateMarkers()}},m.prototype.updateAnchors=function(h){this.pos.onChange(h);for(var l=this.others.length;l--;)this.others[l].onChange(h);this.updateMarkers()},m.prototype.updateMarkers=function(){if(!this.$updating){var h=this,l=this.session,c=function(u,d){l.removeMarker(u.markerId),u.markerId=l.addMarker(new V(u.row,u.column,u.row,u.column+h.length),d,null,!1)};c(this.pos,this.mainClass);for(var i=this.others.length;i--;)c(this.others[i],this.othersClass)}},m.prototype.onCursorChange=function(h){if(!(this.$updating||!this.session)){var l=this.session.selection.getCursor();l.row===this.pos.row&&l.column>=this.pos.column&&l.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",h)):(this.hideOtherMarkers(),this._emit("cursorLeave",h))}},m.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},m.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var h=this.session.getUndoManager(),l=(h.$undoStack||h.$undostack).length-this.$undoStackDepth,c=0;c1?L.multiSelect.joinSelections():L.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(L){L.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(L){L.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(L){L.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],T.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(L){L.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(L){return L&&L.inMultiSelectMode}}];var V=y("../keyboard/hash_handler").HashHandler;T.keyboardHandler=new V(T.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(y,T,G){var V=y("./range_list").RangeList,L=y("./range").Range,A=y("./selection").Selection,s=y("./mouse/multi_select_handler").onMouseDown,m=y("./lib/event"),h=y("./lib/lang"),l=y("./commands/multi_select_commands");T.commands=l.defaultCommands.concat(l.multiSelectCommands);var c=y("./search").Search,i=new c;function u(_,$,S){return i.$options.wrap=!0,i.$options.needle=$,i.$options.backwards=S==-1,i.find(_)}var d=y("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(_,$){if(_){if(!this.inMultiSelectMode&&this.rangeCount===0){var S=this.toOrientedRange();if(this.rangeList.add(S),this.rangeList.add(_),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),$||this.fromOrientedRange(_);this.rangeList.removeAll(),this.rangeList.add(S),this.$onAddRange(S)}_.cursor||(_.cursor=_.end);var O=this.rangeList.add(_);return this.$onAddRange(_),O.length&&this.$onRemoveRange(O),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),$||this.fromOrientedRange(_)}},this.toSingleRange=function(_){_=_||this.ranges[0];var $=this.rangeList.removeAll();$.length&&this.$onRemoveRange($),_&&this.fromOrientedRange(_)},this.substractPoint=function(_){var $=this.rangeList.substractPoint(_);if($)return this.$onRemoveRange($),$[0]},this.mergeOverlappingRanges=function(){var _=this.rangeList.merge();_.length&&this.$onRemoveRange(_)},this.$onAddRange=function(_){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(_),this._signal("addRange",{range:_})},this.$onRemoveRange=function(_){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var $=this.rangeList.ranges.pop();_.push($),this.rangeCount=0}for(var S=_.length;S--;){var O=this.ranges.indexOf(_[S]);this.ranges.splice(O,1)}this._signal("removeRange",{ranges:_}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),$=$||this.ranges[0],$&&!$.isEqual(this.getRange())&&this.fromOrientedRange($)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new V,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var _=this.ranges.length?this.ranges:[this.getRange()],$=[],S=0;S<_.length;S++){var O=_[S],D=O.start.row,N=O.end.row;if(D===N)$.push(O.clone());else{for($.push(new L(D,O.start.column,D,this.session.getLine(D).length));++D1){var _=this.rangeList.ranges,$=_[_.length-1],S=L.fromPoints(_[0].start,$.end);this.toSingleRange(),this.setSelectionRange(S,$.cursor==$.start)}else{var O=this.session.documentToScreenPosition(this.cursor),D=this.session.documentToScreenPosition(this.anchor),N=this.rectangularRangeBlock(O,D);N.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(_,$,S){var O=[],D=_.column<$.column;if(D)var N=_.column,M=$.column,k=_.offsetX,R=$.offsetX;else var N=$.column,M=_.column,k=$.offsetX,R=_.offsetX;var F=_.row<$.row;if(F)var H=_.row,j=$.row;else var H=$.row,j=_.row;N<0&&(N=0),H<0&&(H=0),H==j&&(S=!0);for(var P,ee=H;ee<=j;ee++){var J=L.fromPoints(this.session.screenToDocumentPosition(ee,N,k),this.session.screenToDocumentPosition(ee,M,R));if(J.isEmpty()){if(P&&v(J.end,P))break;P=J.end}J.cursor=D?J.start:J.end,O.push(J)}if(F&&O.reverse(),!S){for(var K=O.length-1;O[K].isEmpty()&&K>0;)K--;if(K>0)for(var ae=0;O[ae].isEmpty();)ae++;for(var Q=K;Q>=ae;Q--)O[Q].isEmpty()&&O.splice(Q,1)}return O}}).call(A.prototype);var g=y("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(_){_.cursor||(_.cursor=_.end);var $=this.getSelectionStyle();return _.marker=this.session.addMarker(_,"ace_selection",$),this.session.$selectionMarkers.push(_),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,_},this.removeSelectionMarker=function(_){if(_.marker){this.session.removeMarker(_.marker);var $=this.session.$selectionMarkers.indexOf(_);$!=-1&&this.session.$selectionMarkers.splice($,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(_){for(var $=this.session.$selectionMarkers,S=_.length;S--;){var O=_[S];if(O.marker){this.session.removeMarker(O.marker);var D=$.indexOf(O);D!=-1&&$.splice(D,1)}}this.session.selectionMarkerCount=$.length},this.$onAddRange=function(_){this.addSelectionMarker(_.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(_){this.removeSelectionMarkers(_.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(_){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(_){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(_){var $=_.command,S=_.editor;if(S.multiSelect){if($.multiSelectAction)$.multiSelectAction=="forEach"?O=S.forEachSelection($,_.args):$.multiSelectAction=="forEachLine"?O=S.forEachSelection($,_.args,!0):$.multiSelectAction=="single"?(S.exitMultiSelectMode(),O=$.exec(S,_.args||{})):O=$.multiSelectAction(S,_.args||{});else{var O=$.exec(S,_.args||{});S.multiSelect.addRange(S.multiSelect.toOrientedRange()),S.multiSelect.mergeOverlappingRanges()}return O}},this.forEachSelection=function(_,$,S){if(!this.inVirtualSelectionMode){var O=S&&S.keepOrder,D=S==!0||S&&S.$byLines,N=this.session,M=this.selection,k=M.rangeList,R=(O?M:k).ranges,F;if(!R.length)return _.exec?_.exec(this,$||{}):_(this,$||{});var H=M._eventRegistry;M._eventRegistry={};var j=new A(N);this.inVirtualSelectionMode=!0;for(var P=R.length;P--;){if(D)for(;P>0&&R[P].start.row==R[P-1].end.row;)P--;j.fromOrientedRange(R[P]),j.index=P,this.selection=N.selection=j;var ee=_.exec?_.exec(this,$||{}):_(this,$||{});!F&&ee!==void 0&&(F=ee),j.toOrientedRange(R[P])}j.detach(),this.selection=N.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=H,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var J=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),J&&J.from==J.to&&this.renderer.animateScrolling(J.from),F}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var _="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var $=this.multiSelect.rangeList.ranges,S=[],O=0;O<$.length;O++)S.push(this.session.getTextRange($[O]));var D=this.session.getDocument().getNewLineCharacter();_=S.join(D),_.length==(S.length-1)*D.length&&(_="")}else this.selection.isEmpty()||(_=this.session.getTextRange(this.getSelectionRange()));return _},this.$checkMultiselectChange=function(_,$){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var S=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&$==this.multiSelect.anchor)return;var O=$==this.multiSelect.anchor?S.cursor==S.start?S.end:S.start:S.cursor;O.row!=$.row||this.session.$clipPositionToDocument(O.row,O.column).column!=$.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(_,$,S){if($=$||{},$.needle=_||$.needle,$.needle==null){var O=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();$.needle=this.session.getTextRange(O)}this.$search.set($);var D=this.$search.findAll(this.session);if(!D.length)return 0;var N=this.multiSelect;S||N.toSingleRange(D[0]);for(var M=D.length;M--;)N.addRange(D[M],!0);return O&&N.rangeList.rangeAtPoint(O.start)&&N.addRange(O,!0),D.length},this.selectMoreLines=function(_,$){var S=this.selection.toOrientedRange(),O=S.cursor==S.end,D=this.session.documentToScreenPosition(S.cursor);this.selection.$desiredColumn&&(D.column=this.selection.$desiredColumn);var N=this.session.screenToDocumentPosition(D.row+_,D.column);if(S.isEmpty())var k=N;else var M=this.session.documentToScreenPosition(O?S.end:S.start),k=this.session.screenToDocumentPosition(M.row+_,M.column);if(O){var R=L.fromPoints(N,k);R.cursor=R.start}else{var R=L.fromPoints(k,N);R.cursor=R.end}if(R.desiredColumn=D.column,!this.selection.inMultiSelectMode)this.selection.addRange(S);else if($)var F=S.cursor;this.selection.addRange(R),F&&this.selection.substractPoint(F)},this.transposeSelections=function(_){for(var $=this.session,S=$.multiSelect,O=S.ranges,D=O.length;D--;){var N=O[D];if(N.isEmpty()){var M=$.getWordRange(N.start.row,N.start.column);N.start.row=M.start.row,N.start.column=M.start.column,N.end.row=M.end.row,N.end.column=M.end.column}}S.mergeOverlappingRanges();for(var k=[],D=O.length;D--;){var N=O[D];k.unshift($.getTextRange(N))}_<0?k.unshift(k.pop()):k.push(k.shift());for(var D=O.length;D--;){var N=O[D],M=N.clone();$.replace(N,k[D]),N.start.row=M.start.row,N.start.column=M.start.column}S.fromOrientedRange(S.ranges[0])},this.selectMore=function(_,$,S){var O=this.session,D=O.multiSelect,N=D.toOrientedRange();if(!(N.isEmpty()&&(N=O.getWordRange(N.start.row,N.start.column),N.cursor=_==-1?N.start:N.end,this.multiSelect.addRange(N),S))){var M=O.getTextRange(N),k=u(O,M,_);k&&(k.cursor=_==-1?k.start:k.end,this.session.unfold(k),this.multiSelect.addRange(k),this.renderer.scrollCursorIntoView(null,.5)),$&&this.multiSelect.substractPoint(N.cursor)}},this.alignCursors=function(){var _=this.session,$=_.multiSelect,S=$.ranges,O=-1,D=S.filter(function(K){if(K.cursor.row==O)return!0;O=K.cursor.row});if(!S.length||D.length==S.length-1){var N=this.selection.getRange(),M=N.start.row,k=N.end.row,R=M==k;if(R){var F=this.session.getLength(),H;do H=this.session.getLine(k);while(/[=:]/.test(H)&&++k0);M<0&&(M=0),k>=F&&(k=F-1)}var j=this.session.removeFullLines(M,k);j=this.$reAlignText(j,R),this.session.insert({row:M,column:0},j.join(` -`)+` -`),R||(N.start.column=0,N.end.column=j[j.length-1].length),this.selection.setRange(N)}else{D.forEach(function(K){$.substractPoint(K.cursor)});var P=0,ee=1/0,J=S.map(function(K){var ae=K.cursor,Q=_.getLine(ae.row),he=Q.substr(ae.column).search(/\S/g);return he==-1&&(he=0),ae.column>P&&(P=ae.column),hege?_.insert(Q,h.stringRepeat(" ",he-ge)):_.remove(new L(Q.row,Q.column,Q.row,Q.column-he+ge)),K.start.column=K.end.column=P,K.start.row=K.end.row=Q.row,K.cursor=K.end}),$.fromOrientedRange(S[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(_,$){var S=!0,O=!0,D,N,M;return _.map(function(j){var P=j.match(/(\s*)(.*?)(\s*)([=:].*)/);return P?D==null?(D=P[1].length,N=P[2].length,M=P[3].length,P):(D+N+M!=P[1].length+P[2].length+P[3].length&&(O=!1),D!=P[1].length&&(S=!1),D>P[1].length&&(D=P[1].length),NP[3].length&&(M=P[3].length),P):[j]}).map($?R:S?O?F:R:H);function k(j){return h.stringRepeat(" ",j)}function R(j){return j[2]?k(D)+j[2]+k(N-j[2].length+M)+j[4].replace(/^([=:])\s+/,"$1 "):j[0]}function F(j){return j[2]?k(D+N-j[2].length)+j[2]+k(M)+j[4].replace(/^([=:])\s+/,"$1 "):j[0]}function H(j){return j[2]?k(D)+j[2]+k(M)+j[4].replace(/^([=:])\s+/,"$1 "):j[0]}}}).call(g.prototype);function v(_,$){return _.row==$.row&&_.column==$.column}T.onSessionChange=function(_){var $=_.session;$&&!$.multiSelect&&($.$selectionMarkers=[],$.selection.$initRangeList(),$.multiSelect=$.selection),this.multiSelect=$&&$.multiSelect;var S=_.oldSession;S&&(S.multiSelect.off("addRange",this.$onAddRange),S.multiSelect.off("removeRange",this.$onRemoveRange),S.multiSelect.off("multiSelect",this.$onMultiSelect),S.multiSelect.off("singleSelect",this.$onSingleSelect),S.multiSelect.lead.off("change",this.$checkMultiselectChange),S.multiSelect.anchor.off("change",this.$checkMultiselectChange)),$&&($.multiSelect.on("addRange",this.$onAddRange),$.multiSelect.on("removeRange",this.$onRemoveRange),$.multiSelect.on("multiSelect",this.$onMultiSelect),$.multiSelect.on("singleSelect",this.$onSingleSelect),$.multiSelect.lead.on("change",this.$checkMultiselectChange),$.multiSelect.anchor.on("change",this.$checkMultiselectChange)),$&&this.inMultiSelectMode!=$.selection.inMultiSelectMode&&($.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(_){_.$multiselectOnSessionChange||(_.$onAddRange=_.$onAddRange.bind(_),_.$onRemoveRange=_.$onRemoveRange.bind(_),_.$onMultiSelect=_.$onMultiSelect.bind(_),_.$onSingleSelect=_.$onSingleSelect.bind(_),_.$multiselectOnSessionChange=T.onSessionChange.bind(_),_.$checkMultiselectChange=_.$checkMultiselectChange.bind(_),_.$multiselectOnSessionChange(_),_.on("changeSession",_.$multiselectOnSessionChange),_.on("mousedown",s),_.commands.addCommands(l.defaultCommands),C(_))}function C(_){if(!_.textInput)return;var $=_.textInput.getElement(),S=!1;m.addListener($,"keydown",function(D){var N=D.keyCode==18&&!(D.ctrlKey||D.shiftKey||D.metaKey);_.$blockSelectEnabled&&N?S||(_.renderer.setMouseCursor("crosshair"),S=!0):S&&O()},_),m.addListener($,"keyup",O,_),m.addListener($,"blur",O,_);function O(D){S&&(_.renderer.setMouseCursor(""),S=!1)}}T.MultiSelect=x,y("./config").defineOptions(g.prototype,"editor",{enableMultiselect:{set:function(_){x(this),_?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function(_){this.$blockSelectEnabled=_},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(y,T,G){var V=y("../../range").Range,L=T.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(A,s,m){var h=A.getLine(m);return this.foldingStartMarker.test(h)?"start":s=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(h)?"end":""},this.getFoldWidgetRange=function(A,s,m){return null},this.indentationBlock=function(A,s,m){var h=/\S/,l=A.getLine(s),c=l.search(h);if(c!=-1){for(var i=m||l.length,u=A.getLength(),d=s,g=s;++sd){var C=A.getLine(g).length;return new V(d,i,g,C)}}},this.openingBracketBlock=function(A,s,m,h,l){var c={row:m,column:h+1},i=A.$findClosingBracket(s,c,l);if(i){var u=A.foldWidgets[i.row];return u==null&&(u=A.getFoldWidget(i.row)),u=="start"&&i.row>c.row&&(i.row--,i.column=A.getLine(i.row).length),V.fromPoints(c,i)}},this.closingBracketBlock=function(A,s,m,h,l){var c={row:m,column:h},i=A.$findOpeningBracket(s,c);if(i)return i.column++,c.column--,V.fromPoints(i,c)}}).call(L.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(y,T,G){var V=y("../line_widgets").LineWidgets,L=y("../lib/dom"),A=y("../range").Range,s=y("../config").nls;function m(l,c,i){for(var u=0,d=l.length-1;u<=d;){var g=u+d>>1,v=i(c,l[g]);if(v>0)u=g+1;else if(v<0)d=g-1;else return g}return-(u+1)}function h(l,c,i){var u=l.getAnnotations().sort(A.comparePoints);if(u.length){var d=m(u,{row:c,column:-1},A.comparePoints);d<0&&(d=-d-1),d>=u.length?d=i>0?0:u.length-1:d===0&&i<0&&(d=u.length-1);var g=u[d];if(!(!g||!i)){if(g.row===c){do g=u[d+=i];while(g&&g.row===c);if(!g)return u.slice()}var v=[];c=g.row;do v[i<0?"unshift":"push"](g),g=u[d+=i];while(g&&g.row==c);return v.length&&v}}}T.showErrorMarker=function(l,c){var i=l.session;i.widgetManager||(i.widgetManager=new V(i),i.widgetManager.attach(l));var u=l.getCursorPosition(),d=u.row,g=i.widgetManager.getWidgetsAtRow(d).filter(function(N){return N.type=="errorMarker"})[0];g?g.destroy():d-=c;var v=h(i,d,c),x;if(v){var C=v[0];u.column=(C.pos&&typeof C.column!="number"?C.pos.sc:C.column)||0,u.row=C.row,x=l.renderer.$gutterLayer.$annotations[u.row]}else{if(g)return;x={text:[s("Looks good!")],className:"ace_ok"}}l.session.unfold(u.row),l.selection.moveToPosition(u);var _={row:u.row,fixedWidth:!0,coverGutter:!0,el:L.createElement("div"),type:"errorMarker"},$=_.el.appendChild(L.createElement("div")),S=_.el.appendChild(L.createElement("div"));S.className="error_widget_arrow "+x.className;var O=l.renderer.$cursorLayer.getPixelPosition(u).left;S.style.left=O+l.renderer.gutterWidth-5+"px",_.el.className="error_widget_wrapper",$.className="error_widget "+x.className,$.innerHTML=x.text.join("
    "),$.appendChild(L.createElement("div"));var D=function(N,M,k){if(M===0&&(k==="esc"||k==="return"))return _.destroy(),{command:"null"}};_.destroy=function(){l.$mouseHandler.isMousePressed||(l.keyBinding.removeKeyboardHandler(D),i.widgetManager.removeLineWidget(_),l.off("changeSelection",_.destroy),l.off("changeSession",_.destroy),l.off("mouseup",_.destroy),l.off("change",_.destroy))},l.keyBinding.addKeyboardHandler(D),l.on("changeSelection",_.destroy),l.on("changeSession",_.destroy),l.on("mouseup",_.destroy),l.on("change",_.destroy),l.session.widgetManager.addLineWidget(_),_.el.onmousedown=l.focus.bind(l),l.renderer.scrollCursorIntoView(null,.5,{bottom:_.el.offsetHeight})},L.importCssString(` - .error_widget_wrapper { - background: inherit; - color: inherit; - border:none - } - .error_widget { - border-top: solid 2px; - border-bottom: solid 2px; - margin: 5px 0; - padding: 10px 40px; - white-space: pre-wrap; - } - .error_widget.ace_error, .error_widget_arrow.ace_error{ - border-color: #ff5a5a - } - .error_widget.ace_warning, .error_widget_arrow.ace_warning{ - border-color: #F1D817 - } - .error_widget.ace_info, .error_widget_arrow.ace_info{ - border-color: #5a5a5a - } - .error_widget.ace_ok, .error_widget_arrow.ace_ok{ - border-color: #5aaa5a - } - .error_widget_arrow { - position: absolute; - border: solid 5px; - border-top-color: transparent!important; - border-right-color: transparent!important; - border-left-color: transparent!important; - top: -5px; - } -`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(y,T,G){y("./loader_build")(T);var V=y("./lib/dom"),L=y("./range").Range,A=y("./editor").Editor,s=y("./edit_session").EditSession,m=y("./undomanager").UndoManager,h=y("./virtual_renderer").VirtualRenderer;y("./worker/worker_client"),y("./keyboard/hash_handler"),y("./placeholder"),y("./multi_select"),y("./mode/folding/fold_mode"),y("./theme/textmate"),y("./ext/error_marker"),T.config=y("./config"),T.edit=function(l,c){if(typeof l=="string"){var i=l;if(l=document.getElementById(i),!l)throw new Error("ace.edit can't find div #"+i)}if(l&&l.env&&l.env.editor instanceof A)return l.env.editor;var u="";if(l&&/input|textarea/i.test(l.tagName)){var d=l;u=d.value,l=V.createElement("pre"),d.parentNode.replaceChild(l,d)}else l&&(u=l.textContent,l.innerHTML="");var g=T.createEditSession(u),v=new A(new h(l),g,c),x={document:g,editor:v,onResize:v.resize.bind(v,null)};return d&&(x.textarea=d),v.on("destroy",function(){x.editor.container.env=null}),v.container.env=v.env=x,v},T.createEditSession=function(l,c){var i=new s(l,c);return i.setUndoManager(new m),i},T.Range=L,T.Editor=A,T.EditSession=s,T.UndoManager=m,T.VirtualRenderer=h,T.version=T.config.version}),function(){ace.require(["ace/ace"],function(y){y&&(y.config.init(!0),y.define=ace.define);var T=function(){return this}();!T&&typeof window<"u"&&(T=window),!T&&typeof self<"u"&&(T=self),T.ace||(T.ace=y);for(var G in y)y.hasOwnProperty(G)&&(T.ace[G]=y[G]);T.ace.default=T.ace,o&&(o.exports=T.ace)})}()})(gae);var Jfe=gae.exports;const Qfe=dae(Jfe);var pae=function(){if(typeof Map<"u")return Map;function o(b,y){var T=-1;return b.some(function(G,V){return G[0]===y?(T=V,!0):!1}),T}return function(){function b(){this.__entries__=[]}return Object.defineProperty(b.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),b.prototype.get=function(y){var T=o(this.__entries__,y),G=this.__entries__[T];return G&&G[1]},b.prototype.set=function(y,T){var G=o(this.__entries__,y);~G?this.__entries__[G][1]=T:this.__entries__.push([y,T])},b.prototype.delete=function(y){var T=this.__entries__,G=o(T,y);~G&&T.splice(G,1)},b.prototype.has=function(y){return!!~o(this.__entries__,y)},b.prototype.clear=function(){this.__entries__.splice(0)},b.prototype.forEach=function(y,T){T===void 0&&(T=null);for(var G=0,V=this.__entries__;G0},o.prototype.connect_=function(){!xQ||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ode?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},o.prototype.disconnect_=function(){!xQ||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},o.prototype.onTransitionEnd_=function(b){var y=b.propertyName,T=y===void 0?"":y,G=rde.some(function(V){return!!~T.indexOf(V)});G&&this.refresh()},o.getInstance=function(){return this.instance_||(this.instance_=new o),this.instance_},o.instance_=null,o}(),vae=function(o,b){for(var y=0,T=Object.keys(b);y"u"||!(Element instanceof Object))){if(!(b instanceof kE(b).Element))throw new TypeError('parameter 1 is not of type "Element".');var y=this.observations_;y.has(b)||(y.set(b,new hde(b)),this.controller_.addObserver(this),this.controller_.refresh())}},o.prototype.unobserve=function(b){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(b instanceof kE(b).Element))throw new TypeError('parameter 1 is not of type "Element".');var y=this.observations_;y.has(b)&&(y.delete(b),y.size||this.controller_.removeObserver(this))}},o.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},o.prototype.gatherActive=function(){var b=this;this.clearActive(),this.observations_.forEach(function(y){y.isActive()&&b.activeObservations_.push(y)})},o.prototype.broadcastActive=function(){if(this.hasActive()){var b=this.callbackCtx_,y=this.activeObservations_.map(function(T){return new mde(T.target,T.broadcastRect())});this.callback_.call(b,y,b),this.clearActive()}},o.prototype.clearActive=function(){this.activeObservations_.splice(0)},o.prototype.hasActive=function(){return this.activeObservations_.length>0},o}(),bae=typeof WeakMap<"u"?new WeakMap:new pae,xae=function(){function o(b){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var y=ade.getInstance(),T=new gde(b,y,this);bae.set(this,T)}return o}();["observe","unobserve","disconnect"].forEach(function(o){xae.prototype[o]=function(){var b;return(b=bae.get(this))[o].apply(b,arguments)}});var pde=function(){return typeof yB.ResizeObserver<"u"?yB.ResizeObserver:xae}();const One=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],eH=YB({props:{value:{type:String,required:!0},lang:{type:String,default:"text"},theme:{type:String,default:"chrome"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number},emits:["update:value","init",...One],render(){return um("div")},mounted(){const o=this._editor=rq(Qfe.edit(this.$el,{placeholder:this.placeholder,readOnly:this.readonly,value:this.value,mode:"ace/mode/"+this.lang,theme:"ace/theme/"+this.theme,wrap:this.wrap,printMargin:this.printMargin,useWorker:!1,minLines:this.minLines,maxLines:this.maxLines,...this.options}));this._contentBackup=this.value,this._isSettingContent=!1,o.on("change",()=>{if(this._isSettingContent)return;const b=o.getValue();this._contentBackup=b,this.$emit("update:value",b)}),One.forEach(b=>{const y="on"+_0(b);typeof this.$.vnode.props[y]=="function"&&o.on(b,this.$emit.bind(this,b))}),this._ro=new pde(()=>o.resize()),this._ro.observe(this.$el),this.$emit("init",o)},beforeUnmount(){var o,b;(o=this._ro)===null||o===void 0||o.disconnect(),(b=this._editor)===null||b===void 0||b.destroy()},methods:{focus(){this._editor.focus()},blur(){this._editor.blur()},selectAll(){this._editor.selectAll()}},watch:{value(o){if(this._contentBackup!==o){try{this._isSettingContent=!0,this._editor.setValue(o,1)}finally{this._isSettingContent=!1}this._contentBackup=o}},theme(o){this._editor.setTheme("ace/theme/"+o)},options(o){this._editor.setOptions(o)},readonly(o){this._editor.setReadOnly(o)},placeholder(o){this._editor.setOption("placeholder",o)},wrap(o){this._editor.setWrapBehavioursEnabled(o)},printMargin(o){this._editor.setOption("printMargin",o)},lang(o){this._editor.setOption("mode","ace/mode/"+o)},minLines(o){this._editor.setOption("minLines",o)},maxLines(o){this._editor.setOption("maxLines",o)}}});var vde={exports:{}};(function(o,b){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("./text_highlight_rules").TextHighlightRules,A=function(){var s="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",m="True|False|None|NotImplemented|Ellipsis|__debug__",h="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",l=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":h,"variable.language":"self|cls","constant.language":m,keyword:s},"identifier"),c="[uU]?",i="[rR]",u="[fF]",d="(?:[rR][fF]|[fF][rR])",g="(?:(?:[1-9]\\d*)|(?:0))",v="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",C="(?:0[bB][01]+)",_="(?:"+g+"|"+v+"|"+x+"|"+C+")",$="(?:[eE][+-]?\\d+)",S="(?:\\.\\d+)",O="(?:\\d+)",D="(?:(?:"+O+"?"+S+")|(?:"+O+"\\.))",N="(?:(?:"+D+"|"+O+")"+$+")",M="(?:"+N+"|"+D+")",k=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:c+'"{3}',next:"qqstring3"},{token:"string",regex:c+'"(?=.)',next:"qqstring"},{token:"string",regex:c+"'{3}",next:"qstring3"},{token:"string",regex:c+"'(?=.)",next:"qstring"},{token:"string",regex:i+'"{3}',next:"rawqqstring3"},{token:"string",regex:i+'"(?=.)',next:"rawqqstring"},{token:"string",regex:i+"'{3}",next:"rawqstring3"},{token:"string",regex:i+"'(?=.)",next:"rawqstring"},{token:"string",regex:u+'"{3}',next:"fqqstring3"},{token:"string",regex:u+'"(?=.)',next:"fqqstring"},{token:"string",regex:u+"'{3}",next:"fqstring3"},{token:"string",regex:u+"'(?=.)",next:"fqstring"},{token:"string",regex:d+'"{3}',next:"rfqqstring3"},{token:"string",regex:d+'"(?=.)',next:"rfqqstring"},{token:"string",regex:d+"'{3}",next:"rfqstring3"},{token:"string",regex:d+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:k},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:k},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:k},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:k},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:k},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:k},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:k},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:k},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+M+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:M},{token:"constant.numeric",regex:_+"[lL]\\b"},{token:"constant.numeric",regex:_+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:l,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};V.inherits(A,L),T.PythonHighlightRules=A}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(y,T,G){var V=y("../../lib/oop"),L=y("./fold_mode").FoldMode,A=T.FoldMode=function(s){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+s+")(?:\\s*)(?:#.*)?$")};V.inherits(A,L),(function(){this.getFoldWidgetRange=function(s,m,h){var l=s.getLine(h),c=l.match(this.foldingStartMarker);if(c)return c[1]?this.openingBracketBlock(s,c[1],h,c.index):c[2]?this.indentationBlock(s,h,c.index+c[2].length):this.indentationBlock(s,h)}}).call(A.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(y,T,G){var V=y("../lib/oop"),L=y("./text").Mode,A=y("./python_highlight_rules").PythonHighlightRules,s=y("./folding/pythonic").FoldMode,m=y("../range").Range,h=function(){this.HighlightRules=A,this.foldingRules=new s("\\:"),this.$behaviour=this.$defaultBehaviour};V.inherits(h,L),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(c,i,u){var d=this.$getIndent(i),g=this.getTokenizer().getLineTokens(i,c),v=g.tokens;if(v.length&&v[v.length-1].type=="comment")return d;if(c=="start"){var x=i.match(/^.*[\{\(\[:]\s*$/);x&&(d+=u)}return d};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(c,i,u){if(u!==`\r -`&&u!=="\r"&&u!==` -`)return!1;var d=this.getTokenizer().getLineTokens(i.trim(),c).tokens;if(!d)return!1;do var g=d.pop();while(g&&(g.type=="comment"||g.type=="text"&&g.value.match(/^\s+$/)));return g?g.type=="keyword"&&l[g.value]:!1},this.autoOutdent=function(c,i,u){u+=1;var d=this.$getIndent(i.getLine(u)),g=i.getTabString();d.slice(-g.length)==g&&i.remove(new m(u,d.length-g.length,u,d.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(h.prototype),T.Mode=h}),function(){ace.require(["ace/mode/python"],function(y){o&&(o.exports=y)})}()})(vde);var yde={exports:{}};(function(o,b){ace.define("ace/snippets/python.snippets",["require","exports","module"],function(y,T,G){G.exports=`snippet #! - #!/usr/bin/env python -snippet imp - import \${1:module} -snippet from - from \${1:package} import \${2:module} -# Module Docstring -snippet docs - ''' - File: \${1:FILENAME:file_name} - Author: \${2:author} - Description: \${3} - ''' -snippet wh - while \${1:condition}: - \${2:# TODO: write code...} -# dowh - does the same as do...while in other languages -snippet dowh - while True: - \${1:# TODO: write code...} - if \${2:condition}: - break -snippet with - with \${1:expr} as \${2:var}: - \${3:# TODO: write code...} -# New Class -snippet cl - class \${1:ClassName}(\${2:object}): - """\${3:docstring for $1}""" - def __init__(self, \${4:arg}): - \${5:super($1, self).__init__()} - self.$4 = $4 - \${6} -# New Function -snippet def - def \${1:fname}(\${2:\`indent('.') ? 'self' : ''\`}): - """\${3:docstring for $1}""" - \${4:# TODO: write code...} -snippet deff - def \${1:fname}(\${2:\`indent('.') ? 'self' : ''\`}): - \${3:# TODO: write code...} -# New Method -snippet defs - def \${1:mname}(self, \${2:arg}): - \${3:# TODO: write code...} -# New Property -snippet property - def \${1:foo}(): - doc = "\${2:The $1 property.}" - def fget(self): - \${3:return self._$1} - def fset(self, value): - \${4:self._$1 = value} -# Ifs -snippet if - if \${1:condition}: - \${2:# TODO: write code...} -snippet el - else: - \${1:# TODO: write code...} -snippet ei - elif \${1:condition}: - \${2:# TODO: write code...} -# For -snippet for - for \${1:item} in \${2:items}: - \${3:# TODO: write code...} -# Encodes -snippet cutf8 - # -*- coding: utf-8 -*- -snippet clatin1 - # -*- coding: latin-1 -*- -snippet cascii - # -*- coding: ascii -*- -# Lambda -snippet ld - \${1:var} = lambda \${2:vars} : \${3:action} -snippet . - self. -snippet try Try/Except - try: - \${1:# TODO: write code...} - except \${2:Exception}, \${3:e}: - \${4:raise $3} -snippet try Try/Except/Else - try: - \${1:# TODO: write code...} - except \${2:Exception}, \${3:e}: - \${4:raise $3} - else: - \${5:# TODO: write code...} -snippet try Try/Except/Finally - try: - \${1:# TODO: write code...} - except \${2:Exception}, \${3:e}: - \${4:raise $3} - finally: - \${5:# TODO: write code...} -snippet try Try/Except/Else/Finally - try: - \${1:# TODO: write code...} - except \${2:Exception}, \${3:e}: - \${4:raise $3} - else: - \${5:# TODO: write code...} - finally: - \${6:# TODO: write code...} -# if __name__ == '__main__': -snippet ifmain - if __name__ == '__main__': - \${1:main()} -# __magic__ -snippet _ - __\${1:init}__\${2} -# python debugger (pdb) -snippet pdb - import pdb; pdb.set_trace() -# ipython debugger (ipdb) -snippet ipdb - import ipdb; ipdb.set_trace() -# ipython debugger (pdbbb) -snippet pdbbb - import pdbpp; pdbpp.set_trace() -snippet pprint - import pprint; pprint.pprint(\${1})\${2} -snippet " - """ - \${1:doc} - """ -# test function/method -snippet test - def test_\${1:description}(\${2:self}): - \${3:# TODO: write code...} -# test case -snippet testcase - class \${1:ExampleCase}(unittest.TestCase): - - def test_\${2:description}(self): - \${3:# TODO: write code...} -snippet fut - from __future__ import \${1} -#getopt -snippet getopt - try: - # Short option syntax: "hv:" - # Long option syntax: "help" or "verbose=" - opts, args = getopt.getopt(sys.argv[1:], "\${1:short_options}", [\${2:long_options}]) - - except getopt.GetoptError, err: - # Print debug info - print str(err) - \${3:error_action} - - for option, argument in opts: - if option in ("-h", "--help"): - \${4} - elif option in ("-v", "--verbose"): - verbose = argument -`}),ace.define("ace/snippets/python",["require","exports","module","ace/snippets/python.snippets"],function(y,T,G){T.snippetText=y("./python.snippets"),T.scope="python"}),function(){ace.require(["ace/snippets/python"],function(y){o&&(o.exports=y)})}()})(yde);var bde={exports:{}};(function(o,b){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(y,T,G){var V=y("./lib/dom"),L=y("./lib/oop"),A=y("./lib/event_emitter").EventEmitter,s=y("./lib/lang"),m=y("./range").Range,h=y("./range_list").RangeList,l=y("./keyboard/hash_handler").HashHandler,c=y("./tokenizer").Tokenizer,i=y("./clipboard"),u={CURRENT_WORD:function(S){return S.session.getTextRange(S.session.getWordRange())},SELECTION:function(S,O,D){var N=S.session.getTextRange();return D?N.replace(/\n\r?([ \t]*\S)/g,` -`+D+"$1"):N},CURRENT_LINE:function(S){return S.session.getLine(S.getCursorPosition().row)},PREV_LINE:function(S){return S.session.getLine(S.getCursorPosition().row-1)},LINE_INDEX:function(S){return S.getCursorPosition().row},LINE_NUMBER:function(S){return S.getCursorPosition().row+1},SOFT_TABS:function(S){return S.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(S){return S.session.getTabSize()},CLIPBOARD:function(S){return i.getText&&i.getText()},FILENAME:function(S){return/[^/\\]*$/.exec(this.FILEPATH(S))[0]},FILENAME_BASE:function(S){return/[^/\\]*$/.exec(this.FILEPATH(S))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(S){return this.FILEPATH(S).replace(/[^/\\]*$/,"")},FILEPATH:function(S){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(S){var O=S.session.$mode||{};return O.blockComment&&O.blockComment.start||""},BLOCK_COMMENT_END:function(S){var O=S.session.$mode||{};return O.blockComment&&O.blockComment.end||""},LINE_COMMENT:function(S){var O=S.session.$mode||{};return O.lineCommentStart||""},CURRENT_YEAR:d.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:d.bind(null,{year:"2-digit"}),CURRENT_MONTH:d.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:d.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:d.bind(null,{month:"short"}),CURRENT_DATE:d.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:d.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:d.bind(null,{weekday:"short"}),CURRENT_HOUR:d.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:d.bind(null,{minute:"2-digit"}),CURRENT_SECOND:d.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;function d(S){var O=new Date().toLocaleString("en-us",S);return O.length==1?"0"+O:O}var g=function(){function S(){this.snippetMap={},this.snippetNameMap={},this.variables=u}return S.prototype.getTokenizer=function(){return S.$tokenizer||this.createTokenizer()},S.prototype.createTokenizer=function(){function O(M){return M=M.substr(1),/^\d+$/.test(M)?[{tabstopId:parseInt(M,10)}]:[{text:M}]}function D(M){return"(?:[^\\\\"+M+"]|\\\\.)"}var N={regex:"/("+D("/")+"+)/",onMatch:function(M,k,R){var F=R[0];return F.fmtString=!0,F.guard=M.slice(1,-1),F.flag="",""},next:"formatString"};return S.$tokenizer=new c({start:[{regex:/\\./,onMatch:function(M,k,R){var F=M[1];return(F=="}"&&R.length||"`$\\".indexOf(F)!=-1)&&(M=F),[M]}},{regex:/}/,onMatch:function(M,k,R){return[R.length?R.shift():M]}},{regex:/\$(?:\d+|\w+)/,onMatch:O},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(M,k,R){var F=O(M.substr(1));return R.unshift(F[0]),F},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+D("\\|")+"*\\|",onMatch:function(M,k,R){var F=M.slice(1,-1).replace(/\\[,|\\]|,/g,function(H){return H.length==2?H[1]:"\0"}).split("\0").map(function(H){return{value:H}});return R[0].choices=F,[F[0]]},next:"start"},N,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(M,k,R){return R.length&&R[0].expectElse?(R[0].expectElse=!1,R[0].ifEnd={elseEnd:R[0]},[R[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(M,k,R){var F=M[1];return F=="}"&&R.length||"`$\\".indexOf(F)!=-1?M=F:F=="n"?M=` -`:F=="t"?M=" ":"ulULE".indexOf(F)!=-1&&(M={changeCase:F,local:F>"a"}),[M]}},{regex:"/\\w*}",onMatch:function(M,k,R){var F=R.shift();return F&&(F.flag=M.slice(1,-1)),this.next=F&&F.tabstopId?"start":"",[F||M]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(M,k,R){return[{text:M.slice(1)}]}},{regex:/\${\w+/,onMatch:function(M,k,R){var F={text:M.slice(2)};return R.unshift(F),[F]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(M,k,R){var F=R.shift();return this.next=F&&F.tabstopId?"start":"",[F||M]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(M,k,R){var F=R[0];return F.formatFunction=M.slice(2,-1),[R.shift()]},next:"formatString"},N,{regex:/:[\?\-+]?/,onMatch:function(M,k,R){M[1]=="+"&&(R[0].ifEnd=R[0]),M[1]=="?"&&(R[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),S.$tokenizer},S.prototype.tokenizeTmSnippet=function(O,D){return this.getTokenizer().getLineTokens(O,D).tokens.map(function(N){return N.value||N})},S.prototype.getVariableValue=function(O,D,N){if(/^\d+$/.test(D))return(this.variables.__||{})[D]||"";if(/^[A-Z]\d+$/.test(D))return(this.variables[D[0]+"__"]||{})[D.substr(1)]||"";if(D=D.replace(/^TM_/,""),!this.variables.hasOwnProperty(D))return"";var M=this.variables[D];return typeof M=="function"&&(M=this.variables[D](O,D,N)),M??""},S.prototype.tmStrFormat=function(O,D,N){if(!D.fmt)return O;var M=D.flag||"",k=D.guard;k=new RegExp(k,M.replace(/[^gim]/g,""));var R=typeof D.fmt=="string"?this.tokenizeTmSnippet(D.fmt,"formatString"):D.fmt,F=this,H=O.replace(k,function(){var j=F.variables.__;F.variables.__=[].slice.call(arguments);for(var P=F.resolveVariables(R,N),ee="E",J=0;J=0&&H.splice(j,1)}}O.content?k(O):Array.isArray(O)&&O.forEach(k)},S.prototype.parseSnippetFile=function(O){O=O.replace(/\r/g,"");for(var D=[],N={},M=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,k;k=M.exec(O);){if(k[1])try{N=JSON.parse(k[1]),D.push(N)}catch{}if(k[4])N.content=k[4].replace(/^\t/gm,""),D.push(N),N={};else{var R=k[2],F=k[3];if(R=="regex"){var H=/\/((?:[^\/\\]|\\.)*)|$/g;N.guard=H.exec(F)[1],N.trigger=H.exec(F)[1],N.endTrigger=H.exec(F)[1],N.endGuard=H.exec(F)[1]}else R=="snippet"?(N.tabTrigger=F.match(/^\S*/)[0],N.name||(N.name=F)):R&&(N[R]=F)}}return D},S.prototype.getSnippetByName=function(O,D){var N=this.snippetNameMap,M;return this.getActiveScopes(D).some(function(k){var R=N[k];return R&&(M=R[O]),!!M},this),M},S}();L.implement(g.prototype,A);var v=function(S,O,D){D===void 0&&(D={});var N=S.getCursorPosition(),M=S.session.getLine(N.row),k=S.session.getTabString(),R=M.match(/^\s*/)[0];N.column1?(Se=fe[fe.length-1].length,ge+=fe.length-1):Se+=ne.length,ce+=ne}else ne&&(ne.start?ne.end={row:ge,column:Se}:ne.start={row:ge,column:Se})}),{text:ce,tabstops:H,tokens:F}},x=function(){function S(O){if(this.index=0,this.ranges=[],this.tabstops=[],O.tabstopManager)return O.tabstopManager;O.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(O)}return S.prototype.attach=function(O){this.$openTabstops=null,this.selectedTabstop=null,this.editor=O,this.session=O.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},S.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},S.prototype.onChange=function(O){for(var D=O.action[0]=="r",N=this.selectedTabstop||{},M=N.parents||{},k=this.tabstops.slice(),R=0;R2&&(this.tabstops.length&&F.push(F.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,F))},S.prototype.addTabstopMarkers=function(O){var D=this.session;O.forEach(function(N){N.markerId||(N.markerId=D.addMarker(N,"ace_snippet-marker","text"))})},S.prototype.removeTabstopMarkers=function(O){var D=this.session;O.forEach(function(N){D.removeMarker(N.markerId),N.markerId=null})},S.prototype.removeRange=function(O){var D=O.tabstop.indexOf(O);D!=-1&&O.tabstop.splice(D,1),D=this.ranges.indexOf(O),D!=-1&&this.ranges.splice(D,1),D=O.tabstop.rangeList.ranges.indexOf(O),D!=-1&&O.tabstop.splice(D,1),this.session.removeMarker(O.markerId),O.tabstop.length||(D=this.tabstops.indexOf(O.tabstop),D!=-1&&this.tabstops.splice(D,1),this.tabstops.length||this.detach())},S}();x.prototype.keyboardHandler=new l,x.prototype.keyboardHandler.bindKeys({Tab:function(S){T.snippetManager&&T.snippetManager.expandWithTab(S)||(S.tabstopManager.tabNext(1),S.renderer.scrollCursorIntoView())},"Shift-Tab":function(S){S.tabstopManager.tabNext(-1),S.renderer.scrollCursorIntoView()},Esc:function(S){S.tabstopManager.detach()}});var C=function(S,O){S.row==0&&(S.column+=O.column),S.row+=O.row},_=function(S,O){S.row==O.row&&(S.column-=O.column),S.row-=O.row};V.importCssString(` -.ace_snippet-marker { - -moz-box-sizing: border-box; - box-sizing: border-box; - background: rgba(194, 193, 208, 0.09); - border: 1px dotted rgba(211, 208, 235, 0.62); - position: absolute; -}`,"snippets.css",!1),T.snippetManager=new g;var $=y("./editor").Editor;(function(){this.insertSnippet=function(S,O){return T.snippetManager.insertSnippet(this,S,O)},this.expandSnippet=function(S){return T.snippetManager.expandWithTab(this,S)}}).call($.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config"],function(y,T,G){var V=y("../virtual_renderer").VirtualRenderer,L=y("../editor").Editor,A=y("../range").Range,s=y("../lib/event"),m=y("../lib/lang"),h=y("../lib/dom"),l=y("../config").nls,c=function(d){return"suggest-aria-id:".concat(d)},i=function(d){var g=new V(d);g.$maxLines=4;var v=new L(g);return v.setHighlightActiveLine(!1),v.setShowPrintMargin(!1),v.renderer.setShowGutter(!1),v.renderer.setHighlightGutterLine(!1),v.$mouseHandler.$focusTimeout=0,v.$highlightTagPending=!0,v},u=function(){function d(g){var v=h.createElement("div"),x=new i(v);g&&g.appendChild(v),v.style.display="none",x.renderer.content.style.cursor="default",x.renderer.setStyle("ace_autocomplete"),x.renderer.$textLayer.element.setAttribute("role","listbox"),x.renderer.$textLayer.element.setAttribute("aria-label",l("Autocomplete suggestions")),x.renderer.textarea.setAttribute("aria-hidden","true"),x.setOption("displayIndentGuides",!1),x.setOption("dragDelay",150);var C=function(){};x.focus=C,x.$isFocused=!0,x.renderer.$cursorLayer.restartTimer=C,x.renderer.$cursorLayer.element.style.opacity=0,x.renderer.$maxLines=8,x.renderer.$keepTextAreaAtCursor=!1,x.setHighlightActiveLine(!1),x.session.highlight(""),x.session.$searchHighlight.clazz="ace_highlight-marker",x.on("mousedown",function(M){var k=M.getDocumentPosition();x.selection.moveToPosition(k),S.start.row=S.end.row=k.row,M.stop()});var _,$=new A(-1,0,-1,1/0),S=new A(-1,0,-1,1/0);S.id=x.session.addMarker(S,"ace_active-line","fullLine"),x.setSelectOnHover=function(M){M?$.id&&(x.session.removeMarker($.id),$.id=null):$.id=x.session.addMarker($,"ace_line-hover","fullLine")},x.setSelectOnHover(!1),x.on("mousemove",function(M){if(!_){_=M;return}if(!(_.x==M.x&&_.y==M.y)){_=M,_.scrollTop=x.renderer.scrollTop;var k=_.getDocumentPosition().row;$.start.row!=k&&($.id||x.setRow(k),D(k))}}),x.renderer.on("beforeRender",function(){if(_&&$.start.row!=-1){_.$pos=null;var M=_.getDocumentPosition().row;$.id||x.setRow(M),D(M,!0)}}),x.renderer.on("afterRender",function(){var M=x.getRow(),k=x.renderer.$textLayer,R=k.element.childNodes[M-k.config.firstRow],F=document.activeElement;if(R!==k.selectedNode&&k.selectedNode&&(h.removeCssClass(k.selectedNode,"ace_selected"),F.removeAttribute("aria-activedescendant"),k.selectedNode.removeAttribute("id")),k.selectedNode=R,R){h.addCssClass(R,"ace_selected");var H=c(M);R.id=H,k.element.setAttribute("aria-activedescendant",H),F.setAttribute("aria-activedescendant",H),R.setAttribute("role","option"),R.setAttribute("aria-label",x.getData(M).value),R.setAttribute("aria-setsize",x.data.length),R.setAttribute("aria-posinset",M+1),R.setAttribute("aria-describedby","doc-tooltip")}});var O=function(){D(-1)},D=function(M,k){M!==$.start.row&&($.start.row=$.end.row=M,k||x.session._emit("changeBackMarker"),x._emit("changeHoverMarker"))};x.getHoveredRow=function(){return $.start.row},s.addListener(x.container,"mouseout",O),x.on("hide",O),x.on("changeSelection",O),x.session.doc.getLength=function(){return x.data.length},x.session.doc.getLine=function(M){var k=x.data[M];return typeof k=="string"?k:k&&k.value||""};var N=x.session.bgTokenizer;return N.$tokenizeRow=function(M){var k=x.data[M],R=[];if(!k)return R;typeof k=="string"&&(k={value:k});var F=k.caption||k.value||k.name;function H(he,ge){he&&R.push({type:(k.className||"")+(ge||""),value:he})}for(var j=F.toLowerCase(),P=(x.filterText||"").toLowerCase(),ee=0,J=0,K=0;K<=P.length;K++)if(K!=J&&(k.matchMask&1<=J?R="bottom":R="top"),R==="top"?(K.bottom=M.top-this.$borderSize,K.top=K.bottom-J):R==="bottom"&&(K.top=M.top+k+this.$borderSize,K.bottom=K.top+J);var he=K.top>=0&&K.bottom<=j;if(!F&&!he)return!1;he?ee.$maxPixelHeight=null:R==="top"?ee.$maxPixelHeight=Q:ee.$maxPixelHeight=ae,R==="top"?(H.style.top="",H.style.bottom=j-K.bottom+"px",x.isTopdown=!1):(H.style.top=K.top+"px",H.style.bottom="",x.isTopdown=!0),H.style.display="";var ge=M.left;return ge+H.offsetWidth>P&&(ge=P-H.offsetWidth),H.style.left=ge+"px",H.style.right="",x.isOpen||(x.isOpen=!0,this._signal("show"),_=null),x.anchorPos=M,x.anchor=R,!0},x.show=function(M,k,R){this.tryShow(M,k,R?"bottom":void 0,!0)},x.goTo=function(M){var k=this.getRow(),R=this.session.getLength()-1;switch(M){case"up":k=k<=0?R:k-1;break;case"down":k=k>=R?-1:k+1;break;case"start":k=0;break;case"end":k=R;break}this.setRow(k)},x.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},x.$imageSize=0,x.$borderSize=1,x}return d}();h.importCssString(` -.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { - background-color: #CAD6FA; - z-index: 1; -} -.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { - background-color: #3a674e; -} -.ace_editor.ace_autocomplete .ace_line-hover { - border: 1px solid #abbffe; - margin-top: -1px; - background: rgba(233,233,253,0.4); - position: absolute; - z-index: 2; -} -.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { - border: 1px solid rgba(109, 150, 13, 0.8); - background: rgba(58, 103, 78, 0.62); -} -.ace_completion-meta { - opacity: 0.5; - margin-left: 0.9em; -} -.ace_completion-message { - color: blue; -} -.ace_editor.ace_autocomplete .ace_completion-highlight{ - color: #2d69c7; -} -.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ - color: #93ca12; -} -.ace_editor.ace_autocomplete { - width: 300px; - z-index: 200000; - border: 1px lightgray solid; - position: fixed; - box-shadow: 2px 3px 5px rgba(0,0,0,.2); - line-height: 1.4; - background: #fefefe; - color: #111; -} -.ace_dark.ace_editor.ace_autocomplete { - border: 1px #484747 solid; - box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); - line-height: 1.4; - background: #25282c; - color: #c1c1c1; -} -.ace_autocomplete .ace_text-layer { - width: calc(100% - 8px); -} -.ace_autocomplete .ace_line { - display: flex; - align-items: center; -} -.ace_autocomplete .ace_line > * { - min-width: 0; - flex: 0 0 auto; -} -.ace_autocomplete .ace_line .ace_ { - flex: 0 1 auto; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} -.ace_autocomplete .ace_completion-spacer { - flex: 1; -} -`,"autocompletion.css",!1),T.AcePopup=u,T.$singleLineEditor=i,T.getAriaId=c}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets"],function(y,T,G){var V=y("../snippets").snippetManager,L=function(){function A(){this.editor=null}return A.prototype.show=function(s,m,h){if(h=h||"",s&&this.editor&&this.editor!==s&&(this.hide(),this.editor=null),!s||!m)return!1;var l=m.snippet?V.getDisplayTextForSnippet(s,m.snippet):m.value;return m.hideInlinePreview||!l||!l.startsWith(h)?!1:(this.editor=s,l=l.slice(h.length),l===""?s.removeGhostText():s.setGhostText(l),!0)},A.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},A.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},A.prototype.destroy=function(){this.hide(),this.editor=null},A}();T.AceInline=L}),ace.define("ace/autocomplete/util",["require","exports","module"],function(y,T,G){T.parForEach=function(L,A,s){var m=0,h=L.length;h===0&&s();for(var l=0;l=0&&s.test(L[h]);h--)m.push(L[h]);return m.reverse().join("")},T.retrieveFollowingIdentifier=function(L,A,s){s=s||V;for(var m=[],h=A;h=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},x.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var C=this.editor.container.parentNode,_=[];C;)_.push(C),C.addEventListener("scroll",this.onLayoutChange,{passive:!0}),C=C.parentNode;this.$elements=_}},x.prototype.unObserveLayoutChanges=function(){var C=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(_){_.removeEventListener("scroll",C.onLayoutChange,{passive:!0})}),this.$elements=null},x.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},x.prototype.$updatePopupPosition=function(){var C=this.editor,_=C.renderer,$=_.layerConfig.lineHeight,S=_.$cursorLayer.getPixelPosition(this.base,!0);S.left-=this.popup.getTextLeftOffset();var O=C.container.getBoundingClientRect();S.top+=O.top-_.layerConfig.offset,S.left+=O.left-C.renderer.scrollLeft,S.left+=_.gutterWidth;var D={top:S.top,left:S.left};_.$ghostText&&_.$ghostTextWidget&&this.base.row===_.$ghostText.position.row&&(D.top+=_.$ghostTextWidget.el.offsetHeight),!this.popup.tryShow(D,$,"bottom")&&(this.popup.tryShow(S,$,"top")||this.popup.show(S,$))},x.prototype.openPopup=function(C,_,$){this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var S=this.popup.data[this.popup.getRow()];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:s(this.popup.getRow()),inline:this.inlineEnabled}),C.keyBinding.addKeyboardHandler(this.keyboardHandler);var O=this.popup.data.indexOf(S);O&&this.stickySelection?this.popup.setRow(this.autoSelect?O:-1):this.popup.setRow(this.autoSelect?0:-1),$?$&&!_&&this.detach():(this.popup.setTheme(C.getTheme()),this.popup.setFontSize(C.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},x.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},x.prototype.changeListener=function(C){var _=this.editor.selection.lead;(_.row!=this.base.row||_.columnthis.filterText&&C.lastIndexOf(this.filterText,0)===0)var _=this.filtered;else var _=this.all;this.filterText=C,_=this.filterCompletions(_,this.filterText),_=_.sort(function(S,O){return O.exactMatch-S.exactMatch||O.$score-S.$score||(S.caption||S.value).localeCompare(O.caption||O.value)});var $=null;_=_.filter(function(S){var O=S.snippet||S.caption||S.value;return O===$?!1:($=O,!0)}),this.filtered=_},x.prototype.filterCompletions=function(C,_){var $=[],S=_.toUpperCase(),O=_.toLowerCase();e:for(var D=0,N;N=C[D];D++){var M=!this.ignoreCaption&&N.caption||N.value||N.snippet;if(M){var k=-1,R=0,F=0,H,j;if(this.exactMatch){if(_!==M.substr(0,_.length))continue e}else{var P=M.toLowerCase().indexOf(O);if(P>-1)F=P;else for(var ee=0;ee<_.length;ee++){var J=M.indexOf(O[ee],k+1),K=M.indexOf(S[ee],k+1);if(H=J>=0&&(K<0||J0&&(k===-1&&(F+=10),F+=j,R=R|1<",s.escapeHTML(D.caption),"","
    ",s.escapeHTML(c(D.snippet))].join(""))},id:"snippetCompleter"},u=[i,h,l];T.setCompleters=function(D){u.length=0,D&&u.push.apply(u,D)},T.addCompleter=function(D){u.push(D)},T.textCompleter=h,T.keyWordCompleter=l,T.snippetCompleter=i;var d={name:"expandSnippet",exec:function(D){return V.expandWithTab(D)},bindKey:"Tab"},g=function(D,N){v(N.session.$mode)},v=function(D){typeof D=="string"&&(D=A.$modes[D]),D&&(V.files||(V.files={}),x(D.$id,D.snippetFileId),D.modes&&D.modes.forEach(v))},x=function(D,N){!N||!D||V.files[D]||(V.files[D]={},A.loadModule(N,function(M){M&&(V.files[D]=M,!M.snippets&&M.snippetText&&(M.snippets=V.parseSnippetFile(M.snippetText)),V.register(M.snippets||[],M.scope),M.includeScopes&&(V.snippetMap[M.scope].includeScopes=M.includeScopes,M.includeScopes.forEach(function(k){v("ace/mode/"+k)})))}))},C=function(D){var N=D.editor,M=N.completer&&N.completer.activated;if(D.command.name==="backspace")M&&!m.getCompletionPrefix(N)&&N.completer.detach();else if(D.command.name==="insertstring"&&!M){_=D;var k=D.editor.$liveAutocompletionDelay;k?$.delay(k):S(D)}},_,$=s.delayedCall(function(){S(_)},0),S=function(D){var N=D.editor,M=m.getCompletionPrefix(N),k=m.triggerAutocomplete(N);if(M&&M.length>=N.$liveAutocompletionThreshold||k){var R=L.for(N);R.autoShown=!0,R.showPopup(N)}},O=y("../editor").Editor;y("../config").defineOptions(O.prototype,"editor",{enableBasicAutocompletion:{set:function(D){D?(this.completers||(this.completers=Array.isArray(D)?D:u),this.commands.addCommand(L.startCommand)):this.commands.removeCommand(L.startCommand)},value:!1},enableLiveAutocompletion:{set:function(D){D?(this.completers||(this.completers=Array.isArray(D)?D:u),this.commands.on("afterExec",C)):this.commands.off("afterExec",C)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(D){D?(this.commands.addCommand(d),this.on("changeMode",g),g(null,this)):(this.commands.removeCommand(d),this.off("changeMode",g))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(y){o&&(o.exports=y)})}()})(bde);var xde={exports:{}};(function(o,b){ace.define("ace/theme/dracula-css",["require","exports","module"],function(y,T,G){G.exports=`/* - * Copyright © 2017 Zeno Rocha - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ - -.ace-dracula .ace_gutter { - background: #282a36; - color: rgb(144,145,148) -} - -.ace-dracula .ace_print-margin { - width: 1px; - background: #44475a -} - -.ace-dracula { - background-color: #282a36; - color: #f8f8f2 -} - -.ace-dracula .ace_cursor { - color: #f8f8f0 -} - -.ace-dracula .ace_marker-layer .ace_selection { - background: #44475a -} - -.ace-dracula.ace_multiselect .ace_selection.ace_start { - box-shadow: 0 0 3px 0px #282a36; - border-radius: 2px -} - -.ace-dracula .ace_marker-layer .ace_step { - background: rgb(198, 219, 174) -} - -.ace-dracula .ace_marker-layer .ace_bracket { - margin: -1px 0 0 -1px; - border: 1px solid #a29709 -} - -.ace-dracula .ace_marker-layer .ace_active-line { - background: #44475a -} - -.ace-dracula .ace_gutter-active-line { - background-color: #44475a -} - -.ace-dracula .ace_marker-layer .ace_selected-word { - box-shadow: 0px 0px 0px 1px #a29709; - border-radius: 3px; -} - -.ace-dracula .ace_fold { - background-color: #50fa7b; - border-color: #f8f8f2 -} - -.ace-dracula .ace_keyword { - color: #ff79c6 -} - -.ace-dracula .ace_constant.ace_language { - color: #bd93f9 -} - -.ace-dracula .ace_constant.ace_numeric { - color: #bd93f9 -} - -.ace-dracula .ace_constant.ace_character { - color: #bd93f9 -} - -.ace-dracula .ace_constant.ace_character.ace_escape { - color: #ff79c6 -} - -.ace-dracula .ace_constant.ace_other { - color: #bd93f9 -} - -.ace-dracula .ace_support.ace_function { - color: #8be9fd -} - -.ace-dracula .ace_support.ace_constant { - color: #6be5fd -} - -.ace-dracula .ace_support.ace_class { - font-style: italic; - color: #66d9ef -} - -.ace-dracula .ace_support.ace_type { - font-style: italic; - color: #66d9ef -} - -.ace-dracula .ace_storage { - color: #ff79c6 -} - -.ace-dracula .ace_storage.ace_type { - font-style: italic; - color: #8be9fd -} - -.ace-dracula .ace_invalid { - color: #F8F8F0; - background-color: #ff79c6 -} - -.ace-dracula .ace_invalid.ace_deprecated { - color: #F8F8F0; - background-color: #bd93f9 -} - -.ace-dracula .ace_string { - color: #f1fa8c -} - -.ace-dracula .ace_comment { - color: #6272a4 -} - -.ace-dracula .ace_variable { - color: #50fa7b -} - -.ace-dracula .ace_variable.ace_parameter { - font-style: italic; - color: #ffb86c -} - -.ace-dracula .ace_entity.ace_other.ace_attribute-name { - color: #50fa7b -} - -.ace-dracula .ace_entity.ace_name.ace_function { - color: #50fa7b -} - -.ace-dracula .ace_entity.ace_name.ace_tag { - color: #ff79c6 -} -.ace-dracula .ace_invisible { - color: #626680; -} - -.ace-dracula .ace_indent-guide { - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y -} - -.ace-dracula .ace_indent-guide-active { - background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACAQMAAACjTyRkAAAABlBMVEUAAADCwsK76u2xAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjYGBoAAAAhACBGFbxzQAAAABJRU5ErkJggg==") right repeat-y; -} -`}),ace.define("ace/theme/dracula",["require","exports","module","ace/theme/dracula-css","ace/lib/dom"],function(y,T,G){T.isDark=!0,T.cssClass="ace-dracula",T.cssText=y("./dracula-css"),T.$selectionColorConflict=!0;var V=y("../lib/dom");V.importCssString(T.cssText,T.cssClass,!1)}),function(){ace.require(["ace/theme/dracula"],function(y){o&&(o.exports=y)})}()})(xde);function Br(o,b){return y=>Object.keys(o).reduce((T,G)=>{const L=typeof o[G]=="object"&&o[G]!=null&&!Array.isArray(o[G])?o[G]:{type:o[G]};return y&&G in y?T[G]={...L,default:y[G]}:T[G]=L,b&&!T[G].source&&(T[G].source=b),T},{})}const ts=Br({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component"),yl=typeof window<"u",xq=yl&&"IntersectionObserver"in window,wde=yl&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function wae(o,b,y){const T=b.length-1;if(T<0)return o===void 0?y:o;for(let G=0;Gb3(o[T],b[T]))}function v3(o,b,y){return o==null||!b||typeof b!="string"?y:o[b]!==void 0?o[b]:(b=b.replace(/\[(\w+)\]/g,".$1"),b=b.replace(/^\./,""),wae(o,b.split("."),y))}function lh(o,b,y){if(b===!0)return o===void 0?y:o;if(b==null||typeof b=="boolean")return y;if(o!==Object(o)){if(typeof b!="function")return y;const G=b(o,y);return typeof G>"u"?y:G}if(typeof b=="string")return v3(o,b,y);if(Array.isArray(b))return wae(o,b,y);if(typeof b!="function")return y;const T=b(o,y);return typeof T>"u"?y:T}function AE(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:o},(y,T)=>b+T)}function ra(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(o==null||o===""))return isNaN(+o)?String(o):isFinite(+o)?`${Number(o)}${b}`:void 0}function wQ(o){return o!==null&&typeof o=="object"&&!Array.isArray(o)}function CQ(o){return o&&"$el"in o?o.$el:o}const Pne=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Cde=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function GJ(o,b){return b.every(y=>o.hasOwnProperty(y))}function ME(o,b,y){const T=Object.create(null),G=Object.create(null);for(const V in o)b.some(L=>L instanceof RegExp?L.test(V):L===V)&&!(y!=null&&y.some(L=>L===V))?T[V]=o[V]:G[V]=o[V];return[T,G]}function PE(o,b){const y={...o};return b.forEach(T=>delete y[T]),y}const Cae=/^on[^a-z]/,wq=o=>Cae.test(o),Sde=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function Cq(o){const[b,y]=ME(o,[Cae]),T=PE(b,Sde),[G,V]=ME(y,["class","style","id",/^data-/]);return Object.assign(G,b),Object.assign(V,T),[G,V]}function xd(o){return o==null?[]:Array.isArray(o)?o:[o]}function yg(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(b,Math.min(y,o))}function Ine(o){const b=o.toString().trim();return b.includes(".")?b.length-b.indexOf(".")-1:0}function Nne(o,b){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return o+y.repeat(Math.max(0,b-o.length))}function Tde(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const y=[];let T=0;for(;T0&&arguments[0]!==void 0?arguments[0]:{},b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=arguments.length>2?arguments[2]:void 0;const T={};for(const G in o)T[G]=o[G];for(const G in b){const V=o[G],L=b[G];if(wQ(V)&&wQ(L)){T[G]=gg(V,L,y);continue}if(Array.isArray(V)&&Array.isArray(L)&&y){T[G]=y(V,L);continue}T[G]=L}return T}function Sae(o){return o.map(b=>b.type===Uo?Sae(b.children):b).flat()}function p3(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(p3.cache.has(o))return p3.cache.get(o);const b=o.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return p3.cache.set(o,b),b}p3.cache=new Map;function A6(o,b){if(!b||typeof b!="object")return[];if(Array.isArray(b))return b.map(y=>A6(o,y)).flat(1);if(Array.isArray(b.children))return b.children.map(y=>A6(o,y)).flat(1);if(b.component){if(Object.getOwnPropertySymbols(b.component.provides).includes(o))return[b.component];if(b.component.subTree)return A6(o,b.component.subTree).flat(1)}return[]}function Sq(o){const b=ih({}),y=on(o);return fh(()=>{for(const T in y.value)b[T]=y.value[T]},{flush:"sync"}),GB(b)}function xB(o,b){return o.includes(b)}function Tae(o){return o[2].toLowerCase()+o.slice(3)}const M0=()=>[Function,Array];function Fne(o,b){return b="on"+_0(b),!!(o[b]||o[`${b}Once`]||o[`${b}Capture`]||o[`${b}OnceCapture`]||o[`${b}CaptureOnce`])}function kae(o){for(var b=arguments.length,y=new Array(b>1?b-1:0),T=1;T1&&arguments[1]!==void 0?arguments[1]:!0;const y=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(T=>`${T}${b?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...o.querySelectorAll(y)]}function Aae(o,b,y){let T,G=o.indexOf(document.activeElement);const V=b==="next"?1:-1;do G+=V,T=o[G];while((!T||T.offsetParent==null||!((y==null?void 0:y(T))??!0))&&G=0);return T}function CB(o,b){var T,G,V,L;const y=wB(o);if(!b)(o===document.activeElement||!o.contains(document.activeElement))&&((T=y[0])==null||T.focus());else if(b==="first")(G=y[0])==null||G.focus();else if(b==="last")(V=y.at(-1))==null||V.focus();else if(typeof b=="number")(L=y[b])==null||L.focus();else{const A=Aae(y,b);A?A.focus():CB(o,b==="next"?"first":"last")}}function KF(o){return o==null||typeof o=="string"&&o.trim()===""}function Mae(){}function EE(o,b){if(!(yl&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${b})`)))return null;try{return!!o&&o.matches(b)}catch{return null}}const Eae=["top","bottom"],kde=["start","end","left","right"];function SQ(o,b){let[y,T]=o.split(" ");return T||(T=xB(Eae,y)?"start":xB(kde,y)?"top":"center"),{side:Bne(y,b),align:Bne(T,b)}}function Bne(o,b){return o==="start"?b?"right":"left":o==="end"?b?"left":"right":o}function ZJ(o){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[o.side],align:o.align}}function jJ(o){return{side:o.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[o.align]}}function Hne(o){return{side:o.align,align:o.side}}function zne(o){return xB(Eae,o.side)?"y":"x"}class xE{constructor(b){let{x:y,y:T,width:G,height:V}=b;this.x=y,this.y=T,this.width=G,this.height=V}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Vne(o,b){return{x:{before:Math.max(0,b.left-o.left),after:Math.max(0,o.right-b.right)},y:{before:Math.max(0,b.top-o.top),after:Math.max(0,o.bottom-b.bottom)}}}function Tq(o){const b=o.getBoundingClientRect(),y=getComputedStyle(o),T=y.transform;if(T){let G,V,L,A,s;if(T.startsWith("matrix3d("))G=T.slice(9,-1).split(/, /),V=+G[0],L=+G[5],A=+G[12],s=+G[13];else if(T.startsWith("matrix("))G=T.slice(7,-1).split(/, /),V=+G[0],L=+G[3],A=+G[4],s=+G[5];else return new xE(b);const m=y.transformOrigin,h=b.x-A-(1-V)*parseFloat(m),l=b.y-s-(1-L)*parseFloat(m.slice(m.indexOf(" ")+1)),c=V?b.width/V:o.offsetWidth+1,i=L?b.height/L:o.offsetHeight+1;return new xE({x:h,y:l,width:c,height:i})}else return new xE(b)}function gE(o,b,y){if(typeof o.animate>"u")return{finished:Promise.resolve()};let T;try{T=o.animate(b,y)}catch{return{finished:Promise.resolve()}}return typeof T.finished>"u"&&(T.finished=new Promise(G=>{T.onfinish=()=>{G(T)}})),T}const lB=new WeakMap;function Ade(o,b){Object.keys(b).forEach(y=>{if(wq(y)){const T=Tae(y),G=lB.get(o);if(b[y]==null)G==null||G.forEach(V=>{const[L,A]=V;L===T&&(o.removeEventListener(T,A),G.delete(V))});else if(!G||![...G].some(V=>V[0]===T&&V[1]===b[y])){o.addEventListener(T,b[y]);const V=G||new Set;V.add([T,b[y]]),lB.has(o)||lB.set(o,V)}}else b[y]==null?o.removeAttribute(y):o.setAttribute(y,b[y])})}function Mde(o,b){Object.keys(b).forEach(y=>{if(wq(y)){const T=Tae(y),G=lB.get(o);G==null||G.forEach(V=>{const[L,A]=V;L===T&&(o.removeEventListener(T,A),G.delete(V))})}else o.removeAttribute(y)})}const dE=2.4,Une=.2126729,Wne=.7151522,Gne=.072175,Ede=.55,_de=.58,Rde=.57,Lde=.62,XF=.03,Zne=1.45,Dde=5e-4,$de=1.25,Ode=1.25,jne=.078,Yne=12.82051282051282,JF=.06,Kne=.001;function Xne(o,b){const y=(o.r/255)**dE,T=(o.g/255)**dE,G=(o.b/255)**dE,V=(b.r/255)**dE,L=(b.g/255)**dE,A=(b.b/255)**dE;let s=y*Une+T*Wne+G*Gne,m=V*Une+L*Wne+A*Gne;if(s<=XF&&(s+=(XF-s)**Zne),m<=XF&&(m+=(XF-m)**Zne),Math.abs(m-s)s){const l=(m**Ede-s**_de)*$de;h=l-Kne?0:l>-jne?l-l*Yne*JF:l+JF}return h*100}function Pde(o,b){b=Array.isArray(b)?b.slice(0,-1).map(y=>`'${y}'`).join(", ")+` or '${b.at(-1)}'`:`'${b}'`}const SB=.20689655172413793,Ide=o=>o>SB**3?Math.cbrt(o):o/(3*SB**2)+4/29,Nde=o=>o>SB?o**3:3*SB**2*(o-4/29);function _ae(o){const b=Ide,y=b(o[1]);return[116*y-16,500*(b(o[0]/.95047)-y),200*(y-b(o[2]/1.08883))]}function Rae(o){const b=Nde,y=(o[0]+16)/116;return[b(y+o[1]/500)*.95047,b(y),b(y-o[2]/200)*1.08883]}const Fde=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Bde=o=>o<=.0031308?o*12.92:1.055*o**(1/2.4)-.055,Hde=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],zde=o=>o<=.04045?o/12.92:((o+.055)/1.055)**2.4;function Lae(o){const b=Array(3),y=Bde,T=Fde;for(let G=0;G<3;++G)b[G]=Math.round(yg(y(T[G][0]*o[0]+T[G][1]*o[1]+T[G][2]*o[2]))*255);return{r:b[0],g:b[1],b:b[2]}}function kq(o){let{r:b,g:y,b:T}=o;const G=[0,0,0],V=zde,L=Hde;b=V(b/255),y=V(y/255),T=V(T/255);for(let A=0;A<3;++A)G[A]=L[A][0]*b+L[A][1]*y+L[A][2]*T;return G}function Jne(o){return!!o&&/^(#|var\(--|(rgb|hsl)a?\()/.test(o)}const Qne=/^(?(?:rgb|hsl)a?)\((?.+)\)/,Vde={rgb:(o,b,y,T)=>({r:o,g:b,b:y,a:T}),rgba:(o,b,y,T)=>({r:o,g:b,b:y,a:T}),hsl:(o,b,y,T)=>qne({h:o,s:b,l:y,a:T}),hsla:(o,b,y,T)=>qne({h:o,s:b,l:y,a:T}),hsv:(o,b,y,T)=>N6({h:o,s:b,v:y,a:T}),hsva:(o,b,y,T)=>N6({h:o,s:b,v:y,a:T})};function S0(o){if(typeof o=="number")return{r:(o&16711680)>>16,g:(o&65280)>>8,b:o&255};if(typeof o=="string"&&Qne.test(o)){const{groups:b}=o.match(Qne),{fn:y,values:T}=b,G=T.split(/,\s*/).map(V=>V.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(y)?parseFloat(V)/100:parseFloat(V));return Vde[y](...G)}else if(typeof o=="string"){let b=o.startsWith("#")?o.slice(1):o;return[3,4].includes(b.length)?b=b.split("").map(y=>y+y).join(""):[6,8].includes(b.length),Wde(b)}else if(typeof o=="object"){if(GJ(o,["r","g","b"]))return o;if(GJ(o,["h","s","l"]))return N6(Dae(o));if(GJ(o,["h","s","v"]))return N6(o)}throw new TypeError(`Invalid color: ${o==null?o:String(o)||o.constructor.name} -Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function N6(o){const{h:b,s:y,v:T,a:G}=o,V=A=>{const s=(A+b/60)%6;return T-T*y*Math.max(Math.min(s,4-s,1),0)},L=[V(5),V(3),V(1)].map(A=>Math.round(A*255));return{r:L[0],g:L[1],b:L[2],a:G}}function qne(o){return N6(Dae(o))}function Dae(o){const{h:b,s:y,l:T,a:G}=o,V=T+y*Math.min(T,1-T),L=V===0?0:2-2*T/V;return{h:b,s:L,v:V,a:G}}function QF(o){const b=Math.round(o).toString(16);return("00".substr(0,2-b.length)+b).toUpperCase()}function Ude(o){let{r:b,g:y,b:T,a:G}=o;return`#${[QF(b),QF(y),QF(T),G!==void 0?QF(Math.round(G*255)):""].join("")}`}function Wde(o){o=Gde(o);let[b,y,T,G]=Tde(o,2).map(V=>parseInt(V,16));return G=G===void 0?G:G/255,{r:b,g:y,b:T,a:G}}function Gde(o){return o.startsWith("#")&&(o=o.slice(1)),o=o.replace(/([^0-9a-f])/gi,"F"),(o.length===3||o.length===4)&&(o=o.split("").map(b=>b+b).join("")),o.length!==6&&(o=Nne(Nne(o,6),8,"F")),o}function Zde(o,b){const y=_ae(kq(o));return y[0]=y[0]+b*10,Lae(Rae(y))}function jde(o,b){const y=_ae(kq(o));return y[0]=y[0]-b*10,Lae(Rae(y))}function Yde(o){const b=S0(o);return kq(b)[1]}function $ae(o){const b=Math.abs(Xne(S0(0),S0(o)));return Math.abs(Xne(S0(16777215),S0(o)))>Math.min(b,50)?"#fff":"#000"}const _E=Symbol.for("vuetify:defaults");function Kde(o){return No(o)}function Aq(){const o=ni(_E);if(!o)throw new Error("[Vuetify] Could not find defaults instance");return o}function R0(o,b){const y=Aq(),T=No(o),G=on(()=>{if(im(b==null?void 0:b.disabled))return y.value;const L=im(b==null?void 0:b.scoped),A=im(b==null?void 0:b.reset),s=im(b==null?void 0:b.root);if(T.value==null&&!(L||A||s))return y.value;let m=gg(T.value,{prev:y.value});if(L)return m;if(A||s){const h=Number(A||1/0);for(let l=0;l<=h&&!(!m||!("prev"in m));l++)m=m.prev;return m&&typeof s=="string"&&s in m&&(m=gg(gg(m,{prev:m}),m[s])),m}return m.prev?gg(m.prev,m):m});return Gl(_E,G),G}function Xde(o,b){var y,T;return typeof((y=o.props)==null?void 0:y[b])<"u"||typeof((T=o.props)==null?void 0:T[p3(b)])<"u"}function Jde(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=arguments.length>1?arguments[1]:void 0,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Aq();const T=Vu("useDefaults");if(b=b??T.type.name??T.type.__name,!b)throw new Error("[Vuetify] Could not determine component name");const G=on(()=>{var s;return(s=y.value)==null?void 0:s[o._as??b]}),V=new Proxy(o,{get(s,m){var l,c,i,u;const h=Reflect.get(s,m);return m==="class"||m==="style"?[(l=G.value)==null?void 0:l[m],h].filter(d=>d!=null):typeof m=="string"&&!Xde(T.vnode,m)?((c=G.value)==null?void 0:c[m])??((u=(i=y.value)==null?void 0:i.global)==null?void 0:u[m])??h:h}}),L=xa();fh(()=>{if(G.value){const s=Object.entries(G.value).filter(m=>{let[h]=m;return h.startsWith(h[0].toUpperCase())});L.value=s.length?Object.fromEntries(s):void 0}else L.value=void 0});function A(){const s=nhe(_E,T);Gl(_E,on(()=>L.value?gg((s==null?void 0:s.value)??{},L.value):s==null?void 0:s.value))}return{props:V,provideSubDefaults:A}}function IE(o){if(o._setup=o._setup??o.setup,!o.name)return o;if(o._setup){o.props=Br(o.props??{},o.name)();const b=Object.keys(o.props);o.filterProps=function(T){return ME(T,b,["class","style"])},o.props._as=String,o.setup=function(T,G){const V=Aq();if(!V.value)return o._setup(T,G);const{props:L,provideSubDefaults:A}=Jde(T,T._as??o.name,V),s=o._setup(L,G);return A(),s}}return o}function Go(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return b=>(o?IE:YB)(b)}function Qde(o,b){return b.props=o,b}function NE(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",y=arguments.length>2?arguments[2]:void 0;return Go()({name:y??_0(bg(o.replace(/__/g,"-"))),props:{tag:{type:String,default:b},...ts()},setup(T,G){let{slots:V}=G;return()=>{var L;return um(T.tag,{class:[o,T.class],style:T.style},(L=V.default)==null?void 0:L.call(V))}}})}function Oae(o){if(typeof o.getRootNode!="function"){for(;o.parentNode;)o=o.parentNode;return o!==document?null:document}const b=o.getRootNode();return b!==document&&b.getRootNode({composed:!0})!==document?null:b}const TB="cubic-bezier(0.4, 0, 0.2, 1)",qde="cubic-bezier(0.0, 0, 0.2, 1)",ehe="cubic-bezier(0.4, 0, 1, 1)";function Vu(o,b){const y=yq();if(!y)throw new Error(`[Vuetify] ${o} ${b||"must be called from inside a setup function"}`);return y}function Uy(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const b=Vu(o).type;return p3((b==null?void 0:b.aliasName)||(b==null?void 0:b.name))}let Pae=0,cB=new WeakMap;function Rp(){const o=Vu("getUid");if(cB.has(o))return cB.get(o);{const b=Pae++;return cB.set(o,b),b}}Rp.reset=()=>{Pae=0,cB=new WeakMap};function Iae(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;o;){if(b?the(o):Mq(o))return o;o=o.parentElement}return document.scrollingElement}function kB(o,b){const y=[];if(b&&o&&!b.contains(o))return y;for(;o&&(Mq(o)&&y.push(o),o!==b);)o=o.parentElement;return y}function Mq(o){if(!o||o.nodeType!==Node.ELEMENT_NODE)return!1;const b=window.getComputedStyle(o);return b.overflowY==="scroll"||b.overflowY==="auto"&&o.scrollHeight>o.clientHeight}function the(o){if(!o||o.nodeType!==Node.ELEMENT_NODE)return!1;const b=window.getComputedStyle(o);return["scroll","auto"].includes(b.overflowY)}function nhe(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vu("injectSelf");const{provides:y}=b;if(y&&o in y)return y[o]}function rhe(o){for(;o;){if(window.getComputedStyle(o).position==="fixed")return!0;o=o.offsetParent}return!1}function ga(o){const b=Vu("useRender");b.render=o}function tH(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const y=No(),T=No();if(yl){const G=new ResizeObserver(V=>{o==null||o(V,G),V.length&&(b==="content"?T.value=V[0].contentRect:T.value=V[0].target.getBoundingClientRect())});dm(()=>{G.disconnect()}),ta(y,(V,L)=>{L&&(G.unobserve(CQ(L)),T.value=void 0),V&&G.observe(CQ(V))},{flush:"post"})}return{resizeRef:y,contentRect:Z6(T)}}const AB=Symbol.for("vuetify:layout"),Nae=Symbol.for("vuetify:layout-item"),ere=1e3,ohe=Br({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),ahe=Br({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function she(){const o=ni(AB);if(!o)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:o.getLayoutItem,mainRect:o.mainRect,mainStyles:o.mainStyles}}function ihe(o){const b=ni(AB);if(!b)throw new Error("[Vuetify] Could not find injected layout");const y=o.id??`layout-item-${Rp()}`,T=Vu("useLayoutItem");Gl(Nae,{id:y});const G=xa(!1);uq(()=>G.value=!0),cq(()=>G.value=!1);const{layoutItemStyles:V,layoutItemScrimStyles:L}=b.register(T,{...o,active:on(()=>G.value?!1:o.active.value),id:y});return dm(()=>b.unregister(y)),{layoutItemStyles:V,layoutRect:b.layoutRect,layoutItemScrimStyles:L}}const lhe=(o,b,y,T)=>{let G={top:0,left:0,right:0,bottom:0};const V=[{id:"",layer:{...G}}];for(const L of o){const A=b.get(L),s=y.get(L),m=T.get(L);if(!A||!s||!m)continue;const h={...G,[A.value]:parseInt(G[A.value],10)+(m.value?parseInt(s.value,10):0)};V.push({id:L,layer:h}),G=h}return V};function che(o){const b=ni(AB,null),y=on(()=>b?b.rootZIndex.value-100:ere),T=No([]),G=ih(new Map),V=ih(new Map),L=ih(new Map),A=ih(new Map),s=ih(new Map),{resizeRef:m,contentRect:h}=tH(),l=on(()=>{const S=new Map,O=o.overlaps??[];for(const D of O.filter(N=>N.includes(":"))){const[N,M]=D.split(":");if(!T.value.includes(N)||!T.value.includes(M))continue;const k=G.get(N),R=G.get(M),F=V.get(N),H=V.get(M);!k||!R||!F||!H||(S.set(M,{position:k.value,amount:parseInt(F.value,10)}),S.set(N,{position:R.value,amount:-parseInt(H.value,10)}))}return S}),c=on(()=>{const S=[...new Set([...L.values()].map(D=>D.value))].sort((D,N)=>D-N),O=[];for(const D of S){const N=T.value.filter(M=>{var k;return((k=L.get(M))==null?void 0:k.value)===D});O.push(...N)}return lhe(O,G,V,A)}),i=on(()=>!Array.from(s.values()).some(S=>S.value)),u=on(()=>c.value[c.value.length-1].layer),d=on(()=>({"--v-layout-left":ra(u.value.left),"--v-layout-right":ra(u.value.right),"--v-layout-top":ra(u.value.top),"--v-layout-bottom":ra(u.value.bottom),...i.value?void 0:{transition:"none"}})),g=on(()=>c.value.slice(1).map((S,O)=>{let{id:D}=S;const{layer:N}=c.value[O],M=V.get(D),k=G.get(D);return{id:D,...N,size:Number(M.value),position:k.value}})),v=S=>g.value.find(O=>O.id===S),x=Vu("createLayout"),C=xa(!1);Cg(()=>{C.value=!0}),Gl(AB,{register:(S,O)=>{let{id:D,order:N,position:M,layoutSize:k,elementSize:R,active:F,disableTransitions:H,absolute:j}=O;L.set(D,N),G.set(D,M),V.set(D,k),A.set(D,F),H&&s.set(D,H);const ee=A6(Nae,x==null?void 0:x.vnode).indexOf(S);ee>-1?T.value.splice(ee,0,D):T.value.push(D);const J=on(()=>g.value.findIndex(he=>he.id===D)),K=on(()=>y.value+c.value.length*2-J.value*2),ae=on(()=>{const he=M.value==="left"||M.value==="right",ge=M.value==="right",Se=M.value==="bottom",ce={[M.value]:0,zIndex:K.value,transform:`translate${he?"X":"Y"}(${(F.value?0:-110)*(ge||Se?-1:1)}%)`,position:j.value||y.value!==ere?"absolute":"fixed",...i.value?void 0:{transition:"none"}};if(!C.value)return ce;const ne=g.value[J.value];if(!ne)throw new Error(`[Vuetify] Could not find layout item "${D}"`);const fe=l.value.get(D);return fe&&(ne[fe.position]+=fe.amount),{...ce,height:he?`calc(100% - ${ne.top}px - ${ne.bottom}px)`:R.value?`${R.value}px`:void 0,left:ge?void 0:`${ne.left}px`,right:ge?`${ne.right}px`:void 0,top:M.value!=="bottom"?`${ne.top}px`:void 0,bottom:M.value!=="top"?`${ne.bottom}px`:void 0,width:he?R.value?`${R.value}px`:void 0:`calc(100% - ${ne.left}px - ${ne.right}px)`}}),Q=on(()=>({zIndex:K.value-1}));return{layoutItemStyles:ae,layoutItemScrimStyles:Q,zIndex:K}},unregister:S=>{L.delete(S),G.delete(S),V.delete(S),A.delete(S),s.delete(S),T.value=T.value.filter(O=>O!==S)},mainRect:u,mainStyles:d,getLayoutItem:v,items:g,layoutRect:h,rootZIndex:y});const _=on(()=>["v-layout",{"v-layout--full-height":o.fullHeight}]),$=on(()=>({zIndex:b?y.value:void 0,position:b?"relative":void 0,overflow:b?"hidden":void 0}));return{layoutClasses:_,layoutStyles:$,getLayoutItem:v,items:g,layoutRect:h,layoutRef:m}}const uhe={badge:"Badge",open:"Open",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{ok:"OK",cancel:"Cancel",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},fhe={af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1};function E2(o,b){let y;function T(){y=XQ(),y.run(()=>b.length?b(()=>{y==null||y.stop(),T()}):b())}ta(o,G=>{G&&!y?T():G||(y==null||y.stop(),y=void 0)},{immediate:!0}),ch(()=>{y==null||y.stop()})}function ri(o,b,y){let T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:l=>l,G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:l=>l;const V=Vu("useProxiedModel"),L=No(o[b]!==void 0?o[b]:y),A=p3(b),m=on(A!==b?()=>{var l,c,i,u;return o[b],!!(((l=V.vnode.props)!=null&&l.hasOwnProperty(b)||(c=V.vnode.props)!=null&&c.hasOwnProperty(A))&&((i=V.vnode.props)!=null&&i.hasOwnProperty(`onUpdate:${b}`)||(u=V.vnode.props)!=null&&u.hasOwnProperty(`onUpdate:${A}`)))}:()=>{var l,c;return o[b],!!((l=V.vnode.props)!=null&&l.hasOwnProperty(b)&&((c=V.vnode.props)!=null&&c.hasOwnProperty(`onUpdate:${b}`)))});E2(()=>!m.value,()=>{ta(()=>o[b],l=>{L.value=l})});const h=on({get(){const l=o[b];return T(m.value?l:L.value)},set(l){const c=G(l),i=ds(m.value?o[b]:L.value);i===c||T(i)===l||(L.value=c,V==null||V.emit(`update:${b}`,c))}});return Object.defineProperty(h,"externalValue",{get:()=>m.value?o[b]:L.value}),h}const tre="$vuetify.",nre=(o,b)=>o.replace(/\{(\d+)\}/g,(y,T)=>String(b[+T])),Fae=(o,b,y)=>function(T){for(var G=arguments.length,V=new Array(G>1?G-1:0),L=1;Lnew Intl.NumberFormat([o.value,b.value],T).format(y)}function YJ(o,b,y){const T=ri(o,b,o[b]??y.value);return T.value=o[b]??y.value,ta(y,G=>{o[b]==null&&(T.value=y.value)}),T}function Hae(o){return b=>{const y=YJ(b,"locale",o.current),T=YJ(b,"fallback",o.fallback),G=YJ(b,"messages",o.messages);return{name:"vuetify",current:y,fallback:T,messages:G,t:Fae(y,T,G),n:Bae(y,T),provide:Hae({current:y,fallback:T,messages:G})}}}function dhe(o){const b=xa((o==null?void 0:o.locale)??"en"),y=xa((o==null?void 0:o.fallback)??"en"),T=No({en:uhe,...o==null?void 0:o.messages});return{name:"vuetify",current:b,fallback:y,messages:T,t:Fae(b,y,T),n:Bae(b,y),provide:Hae({current:b,fallback:y,messages:T})}}const MB=Symbol.for("vuetify:locale");function hhe(o){return o.name!=null}function mhe(o){const b=o!=null&&o.adapter&&hhe(o==null?void 0:o.adapter)?o==null?void 0:o.adapter:dhe(o),y=ghe(b,o);return{...b,...y}}function L2(){const o=ni(MB);if(!o)throw new Error("[Vuetify] Could not find injected locale instance");return o}function ghe(o,b){const y=No((b==null?void 0:b.rtl)??fhe),T=on(()=>y.value[o.current.value]??!1);return{isRtl:T,rtl:y,rtlClasses:on(()=>`v-locale--is-${T.value?"rtl":"ltr"}`)}}function Sg(){const o=ni(MB);if(!o)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:o.isRtl,rtlClasses:o.rtlClasses}}const EB=Symbol.for("vuetify:theme"),Gc=Br({theme:String},"theme"),b6={defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#6200EE","primary-darken-1":"#3700B3",secondary:"#03DAC6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#BB86FC","primary-darken-1":"#3700B3",secondary:"#03DAC5","secondary-darken-1":"#03DAC5",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}};function phe(){var y,T;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b6;if(!o)return{...b6,isDisabled:!0};const b={};for(const[G,V]of Object.entries(o.themes??{})){const L=V.dark||G==="dark"?(y=b6.themes)==null?void 0:y.dark:(T=b6.themes)==null?void 0:T.light;b[G]=gg(L,V)}return gg(b6,{...o,themes:b})}function vhe(o){const b=phe(o),y=No(b.defaultTheme),T=No(b.themes),G=on(()=>{const h={};for(const[l,c]of Object.entries(T.value)){const i=h[l]={...c,colors:{...c.colors}};if(b.variations)for(const u of b.variations.colors){const d=i.colors[u];if(d)for(const g of["lighten","darken"]){const v=g==="lighten"?Zde:jde;for(const x of AE(b.variations[g],1))i.colors[`${u}-${g}-${x}`]=Ude(v(S0(d),x))}}for(const u of Object.keys(i.colors)){if(/^on-[a-z]/.test(u)||i.colors[`on-${u}`])continue;const d=`on-${u}`,g=S0(i.colors[u]);i.colors[d]=$ae(g)}}return h}),V=on(()=>G.value[y.value]),L=on(()=>{const h=[];V.value.dark&&i3(h,":root",["color-scheme: dark"]),i3(h,":root",rre(V.value));for(const[u,d]of Object.entries(G.value))i3(h,`.v-theme--${u}`,[`color-scheme: ${d.dark?"dark":"normal"}`,...rre(d)]);const l=[],c=[],i=new Set(Object.values(G.value).flatMap(u=>Object.keys(u.colors)));for(const u of i)/^on-[a-z]/.test(u)?i3(c,`.${u}`,[`color: rgb(var(--v-theme-${u})) !important`]):(i3(l,`.bg-${u}`,[`--v-theme-overlay-multiplier: var(--v-theme-${u}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${u})) !important`,`color: rgb(var(--v-theme-on-${u})) !important`]),i3(c,`.text-${u}`,[`color: rgb(var(--v-theme-${u})) !important`]),i3(c,`.border-${u}`,[`--v-border-color: var(--v-theme-${u})`]));return h.push(...l,...c),h.map((u,d)=>d===0?u:` ${u}`).join("")});function A(){return{style:[{children:L.value,id:"vuetify-theme-stylesheet",nonce:b.cspNonce||!1}]}}function s(h){if(b.isDisabled)return;const l=h._context.provides.usehead;if(l)if(l.push){const c=l.push(A);yl&&ta(L,()=>{c.patch(A)})}else yl?(l.addHeadObjs(on(A)),fh(()=>l.updateDOM())):l.addHeadObjs(A());else{let i=function(){if(typeof document<"u"&&!c){const u=document.createElement("style");u.type="text/css",u.id="vuetify-theme-stylesheet",b.cspNonce&&u.setAttribute("nonce",b.cspNonce),c=u,document.head.appendChild(c)}c&&(c.innerHTML=L.value)},c=yl?document.getElementById("vuetify-theme-stylesheet"):null;yl?ta(L,i,{immediate:!0}):i()}}const m=on(()=>b.isDisabled?void 0:`v-theme--${y.value}`);return{install:s,isDisabled:b.isDisabled,name:y,themes:T,current:V,computedThemes:G,themeClasses:m,styles:L,global:{name:y,current:V}}}function Uu(o){Vu("provideTheme");const b=ni(EB,null);if(!b)throw new Error("Could not find Vuetify theme injection");const y=on(()=>o.theme??b.name.value),T=on(()=>b.themes.value[y.value]),G=on(()=>b.isDisabled?void 0:`v-theme--${y.value}`),V={...b,name:y,current:T,themeClasses:G};return Gl(EB,V),V}function i3(o,b,y){o.push(`${b} { -`,...y.map(T=>` ${T}; -`),`} -`)}function rre(o){const b=o.dark?2:1,y=o.dark?1:2,T=[];for(const[G,V]of Object.entries(o.colors)){const L=S0(V);T.push(`--v-theme-${G}: ${L.r},${L.g},${L.b}`),G.startsWith("on-")||T.push(`--v-theme-${G}-overlay-multiplier: ${Yde(V)>.18?b:y}`)}for(const[G,V]of Object.entries(o.variables)){const L=typeof V=="string"&&V.startsWith("#")?S0(V):void 0,A=L?`${L.r}, ${L.g}, ${L.b}`:void 0;T.push(`--v-${G}: ${A??V}`)}return T}const yhe=Br({...ts(),...ohe({fullHeight:!0}),...Gc()},"VApp"),bhe=Go()({name:"VApp",props:yhe(),setup(o,b){let{slots:y}=b;const T=Uu(o),{layoutClasses:G,getLayoutItem:V,items:L,layoutRef:A}=che(o),{rtlClasses:s}=Sg();return ga(()=>{var m;return ct("div",{ref:A,class:["v-application",T.themeClasses.value,G.value,s.value,o.class],style:[o.style]},[ct("div",{class:"v-application__wrap"},[(m=y.default)==null?void 0:m.call(y)])])}),{getLayoutItem:V,items:L,theme:T}}});const mc=Br({tag:{type:String,default:"div"}},"tag"),xhe=Br({text:String,...ts(),...mc()},"VToolbarTitle"),whe=Go()({name:"VToolbarTitle",props:xhe(),setup(o,b){let{slots:y}=b;return ga(()=>{const T=!!(y.default||y.text||o.text);return ct(o.tag,{class:["v-toolbar-title",o.class],style:o.style},{default:()=>{var G;return[T&&ct("div",{class:"v-toolbar-title__placeholder"},[y.text?y.text():o.text,(G=y.default)==null?void 0:G.call(y)])]}})}),{}}}),Che=Br({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function hm(o,b,y){return Go()({name:o,props:Che({mode:y,origin:b}),setup(T,G){let{slots:V}=G;const L={onBeforeEnter(A){T.origin&&(A.style.transformOrigin=T.origin)},onLeave(A){if(T.leaveAbsolute){const{offsetTop:s,offsetLeft:m,offsetWidth:h,offsetHeight:l}=A;A._transitionInitialStyles={position:A.style.position,top:A.style.top,left:A.style.left,width:A.style.width,height:A.style.height},A.style.position="absolute",A.style.top=`${s}px`,A.style.left=`${m}px`,A.style.width=`${h}px`,A.style.height=`${l}px`}T.hideOnLeave&&A.style.setProperty("display","none","important")},onAfterLeave(A){if(T.leaveAbsolute&&(A!=null&&A._transitionInitialStyles)){const{position:s,top:m,left:h,width:l,height:c}=A._transitionInitialStyles;delete A._transitionInitialStyles,A.style.position=s||"",A.style.top=m||"",A.style.left=h||"",A.style.width=l||"",A.style.height=c||""}}};return()=>{const A=T.group?Ofe:Hy;return um(A,{name:T.disabled?"":o,css:!T.disabled,...T.group?void 0:{mode:T.mode},...T.disabled?{}:L},V.default)}}})}function zae(o,b){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Go()({name:o,props:{mode:{type:String,default:y},disabled:Boolean},setup(T,G){let{slots:V}=G;return()=>um(Hy,{name:T.disabled?"":o,css:!T.disabled,...T.disabled?{}:b},V.default)}})}function Vae(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const y=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",T=bg(`offset-${y}`);return{onBeforeEnter(L){L._parent=L.parentNode,L._initialStyle={transition:L.style.transition,overflow:L.style.overflow,[y]:L.style[y]}},onEnter(L){const A=L._initialStyle;L.style.setProperty("transition","none","important"),L.style.overflow="hidden";const s=`${L[T]}px`;L.style[y]="0",L.offsetHeight,L.style.transition=A.transition,o&&L._parent&&L._parent.classList.add(o),requestAnimationFrame(()=>{L.style[y]=s})},onAfterEnter:V,onEnterCancelled:V,onLeave(L){L._initialStyle={transition:"",overflow:L.style.overflow,[y]:L.style[y]},L.style.overflow="hidden",L.style[y]=`${L[T]}px`,L.offsetHeight,requestAnimationFrame(()=>L.style[y]="0")},onAfterLeave:G,onLeaveCancelled:G};function G(L){o&&L._parent&&L._parent.classList.remove(o),V(L)}function V(L){const A=L._initialStyle[y];L.style.overflow=L._initialStyle.overflow,A!=null&&(L.style[y]=A),delete L._initialStyle}}const She=Br({target:Object},"v-dialog-transition"),Eq=Go()({name:"VDialogTransition",props:She(),setup(o,b){let{slots:y}=b;const T={onBeforeEnter(G){G.style.pointerEvents="none",G.style.visibility="hidden"},async onEnter(G,V){var c;await new Promise(i=>requestAnimationFrame(i)),await new Promise(i=>requestAnimationFrame(i)),G.style.visibility="";const{x:L,y:A,sx:s,sy:m,speed:h}=are(o.target,G),l=gE(G,[{transform:`translate(${L}px, ${A}px) scale(${s}, ${m})`,opacity:0},{}],{duration:225*h,easing:qde});(c=ore(G))==null||c.forEach(i=>{gE(i,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*h,easing:TB})}),l.finished.then(()=>V())},onAfterEnter(G){G.style.removeProperty("pointer-events")},onBeforeLeave(G){G.style.pointerEvents="none"},async onLeave(G,V){var c;await new Promise(i=>requestAnimationFrame(i));const{x:L,y:A,sx:s,sy:m,speed:h}=are(o.target,G);gE(G,[{},{transform:`translate(${L}px, ${A}px) scale(${s}, ${m})`,opacity:0}],{duration:125*h,easing:ehe}).finished.then(()=>V()),(c=ore(G))==null||c.forEach(i=>{gE(i,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*h,easing:TB})})},onAfterLeave(G){G.style.removeProperty("pointer-events")}};return()=>o.target?ct(Hy,Jo({name:"dialog-transition"},T,{css:!1}),y):ct(Hy,{name:"dialog-transition"},y)}});function ore(o){var y;const b=(y=o.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:y.children;return b&&[...b]}function are(o,b){const y=o.getBoundingClientRect(),T=Tq(b),[G,V]=getComputedStyle(b).transformOrigin.split(" ").map(v=>parseFloat(v)),[L,A]=getComputedStyle(b).getPropertyValue("--v-overlay-anchor-origin").split(" ");let s=y.left+y.width/2;L==="left"||A==="left"?s-=y.width/2:(L==="right"||A==="right")&&(s+=y.width/2);let m=y.top+y.height/2;L==="top"||A==="top"?m-=y.height/2:(L==="bottom"||A==="bottom")&&(m+=y.height/2);const h=y.width/T.width,l=y.height/T.height,c=Math.max(1,h,l),i=h/c||0,u=l/c||0,d=T.width*T.height/(window.innerWidth*window.innerHeight),g=d>.12?Math.min(1.5,(d-.12)*10+1):1;return{x:s-(G+T.left),y:m-(V+T.top),sx:i,sy:u,speed:g}}hm("fab-transition","center center","out-in");hm("dialog-bottom-transition");hm("dialog-top-transition");hm("fade-transition");const The=hm("scale-transition");hm("scroll-x-transition");hm("scroll-x-reverse-transition");hm("scroll-y-transition");hm("scroll-y-reverse-transition");hm("slide-x-transition");hm("slide-x-reverse-transition");const Uae=hm("slide-y-transition");hm("slide-y-reverse-transition");const _q=zae("expand-transition",Vae()),Wae=zae("expand-x-transition",Vae("",!0)),khe=Br({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),Ac=Go(!1)({name:"VDefaultsProvider",props:khe(),setup(o,b){let{slots:y}=b;const{defaults:T,disabled:G,reset:V,root:L,scoped:A}=GB(o);return R0(T,{reset:V,root:L,scoped:A,disabled:G}),()=>{var s;return(s=y.default)==null?void 0:s.call(y)}}});const x3=Br({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function w3(o){return{dimensionStyles:on(()=>({height:ra(o.height),maxHeight:ra(o.maxHeight),maxWidth:ra(o.maxWidth),minHeight:ra(o.minHeight),minWidth:ra(o.minWidth),width:ra(o.width)}))}}function Ahe(o){return{aspectStyles:on(()=>{const b=Number(o.aspectRatio);return b?{paddingBottom:String(1/b*100)+"%"}:void 0})}}const Gae=Br({aspectRatio:[String,Number],contentClass:String,inline:Boolean,...ts(),...x3()},"VResponsive"),sre=Go()({name:"VResponsive",props:Gae(),setup(o,b){let{slots:y}=b;const{aspectStyles:T}=Ahe(o),{dimensionStyles:G}=w3(o);return ga(()=>{var V;return ct("div",{class:["v-responsive",{"v-responsive--inline":o.inline},o.class],style:[G.value,o.style]},[ct("div",{class:"v-responsive__sizer",style:T.value},null),(V=y.additional)==null?void 0:V.call(y),y.default&&ct("div",{class:["v-responsive__content",o.contentClass]},[y.default()])])}),{}}}),C3=Br({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:o=>o!==!0}},"transition"),T2=(o,b)=>{let{slots:y}=b;const{transition:T,disabled:G,...V}=o,{component:L=Hy,...A}=typeof T=="object"?T:{};return um(L,Jo(typeof T=="string"?{name:G?"":T}:A,V,{disabled:G}),y)};function Mhe(o,b){if(!xq)return;const y=b.modifiers||{},T=b.value,{handler:G,options:V}=typeof T=="object"?T:{handler:T,options:{}},L=new IntersectionObserver(function(){var l;let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;const m=(l=o._observe)==null?void 0:l[b.instance.$.uid];if(!m)return;const h=A.some(c=>c.isIntersecting);G&&(!y.quiet||m.init)&&(!y.once||h||m.init)&&G(h,A,s),h&&y.once?Zae(o,b):m.init=!0},V);o._observe=Object(o._observe),o._observe[b.instance.$.uid]={init:!1,observer:L},L.observe(o)}function Zae(o,b){var T;const y=(T=o._observe)==null?void 0:T[b.instance.$.uid];y&&(y.observer.unobserve(o),delete o._observe[b.instance.$.uid])}const Ehe={mounted:Mhe,unmounted:Zae},Rq=Ehe,_he=Br({alt:String,cover:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},srcset:String,...Gae(),...ts(),...C3()},"VImg"),Y6=Go()({name:"VImg",directives:{intersect:Rq},props:_he(),emits:{loadstart:o=>!0,load:o=>!0,error:o=>!0},setup(o,b){let{emit:y,slots:T}=b;const G=xa(""),V=No(),L=xa(o.eager?"loading":"idle"),A=xa(),s=xa(),m=on(()=>o.src&&typeof o.src=="object"?{src:o.src.src,srcset:o.srcset||o.src.srcset,lazySrc:o.lazySrc||o.src.lazySrc,aspect:Number(o.aspectRatio||o.src.aspect||0)}:{src:o.src,srcset:o.srcset,lazySrc:o.lazySrc,aspect:Number(o.aspectRatio||0)}),h=on(()=>m.value.aspect||A.value/s.value||0);ta(()=>o.src,()=>{l(L.value!=="idle")}),ta(h,(D,N)=>{!D&&N&&V.value&&g(V.value)}),fq(()=>l());function l(D){if(!(o.eager&&D)&&!(xq&&!D&&!o.eager)){if(L.value="loading",m.value.lazySrc){const N=new Image;N.src=m.value.lazySrc,g(N,null)}m.value.src&&Ll(()=>{var N,M;if(y("loadstart",((N=V.value)==null?void 0:N.currentSrc)||m.value.src),(M=V.value)!=null&&M.complete){if(V.value.naturalWidth||i(),L.value==="error")return;h.value||g(V.value,null),c()}else h.value||g(V.value),u()})}}function c(){var D;u(),L.value="loaded",y("load",((D=V.value)==null?void 0:D.currentSrc)||m.value.src)}function i(){var D;L.value="error",y("error",((D=V.value)==null?void 0:D.currentSrc)||m.value.src)}function u(){const D=V.value;D&&(G.value=D.currentSrc||D.src)}let d=-1;function g(D){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const M=()=>{clearTimeout(d);const{naturalHeight:k,naturalWidth:R}=D;k||R?(A.value=R,s.value=k):!D.complete&&L.value==="loading"&&N!=null?d=window.setTimeout(M,N):(D.currentSrc.endsWith(".svg")||D.currentSrc.startsWith("data:image/svg+xml"))&&(A.value=1,s.value=1)};M()}const v=on(()=>({"v-img__img--cover":o.cover,"v-img__img--contain":!o.cover})),x=()=>{var M;if(!m.value.src||L.value==="idle")return null;const D=ct("img",{class:["v-img__img",v.value],src:m.value.src,srcset:m.value.srcset,alt:o.alt,sizes:o.sizes,ref:V,onLoad:c,onError:i},null),N=(M=T.sources)==null?void 0:M.call(T);return ct(T2,{transition:o.transition,appear:!0},{default:()=>[lu(N?ct("picture",{class:"v-img__picture"},[N,D]):D,[[R2,L.value==="loaded"]])]})},C=()=>ct(T2,{transition:o.transition},{default:()=>[m.value.lazySrc&&L.value!=="loaded"&&ct("img",{class:["v-img__img","v-img__img--preload",v.value],src:m.value.lazySrc,alt:o.alt},null)]}),_=()=>T.placeholder?ct(T2,{transition:o.transition,appear:!0},{default:()=>[(L.value==="loading"||L.value==="error"&&!T.error)&&ct("div",{class:"v-img__placeholder"},[T.placeholder()])]}):null,$=()=>T.error?ct(T2,{transition:o.transition,appear:!0},{default:()=>[L.value==="error"&&ct("div",{class:"v-img__error"},[T.error()])]}):null,S=()=>o.gradient?ct("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${o.gradient})`}},null):null,O=xa(!1);{const D=ta(h,N=>{N&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{O.value=!0})}),D())})}return ga(()=>{const[D]=sre.filterProps(o);return lu(ct(sre,Jo({class:["v-img",{"v-img--booting":!O.value},o.class],style:[{width:ra(o.width==="auto"?A.value:o.width)},o.style]},D,{aspectRatio:h.value,"aria-label":o.alt,role:o.alt?"img":void 0}),{additional:()=>ct(Uo,null,[ct(x,null,null),ct(C,null,null),ct(S,null,null),ct(_,null,null),ct($,null,null)]),default:T.default}),[[_p("intersect"),{handler:l,options:o.options},null,{once:!0}]])}),{currentSrc:G,image:V,state:L,naturalWidth:A,naturalHeight:s}}}),S3=Br({border:[Boolean,Number,String]},"border");function T3(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();return{borderClasses:on(()=>{const T=Wl(o)?o.value:o.border,G=[];if(T===!0||T==="")G.push(`${b}--border`);else if(typeof T=="string"||T===0)for(const V of String(T).split(" "))G.push(`border-${V}`);return G})}}function Lq(o){return Sq(()=>{const b=[],y={};if(o.value.background)if(Jne(o.value.background)){if(y.backgroundColor=o.value.background,!o.value.text){const T=S0(o.value.background);if(T.a==null||T.a===1){const G=$ae(T);y.color=G,y.caretColor=G}}}else b.push(`bg-${o.value.background}`);return o.value.text&&(Jne(o.value.text)?(y.color=o.value.text,y.caretColor=o.value.text):b.push(`text-${o.value.text}`)),{colorClasses:b,colorStyles:y}})}function xg(o,b){const y=on(()=>({text:Wl(o)?o.value:b?o[b]:null})),{colorClasses:T,colorStyles:G}=Lq(y);return{textColorClasses:T,textColorStyles:G}}function wg(o,b){const y=on(()=>({background:Wl(o)?o.value:b?o[b]:null})),{colorClasses:T,colorStyles:G}=Lq(y);return{backgroundColorClasses:T,backgroundColorStyles:G}}const Wy=Br({elevation:{type:[Number,String],validator(o){const b=parseInt(o);return!isNaN(b)&&b>=0&&b<=24}}},"elevation");function Gy(o){return{elevationClasses:on(()=>{const y=Wl(o)?o.value:o.elevation,T=[];return y==null||T.push(`elevation-${y}`),T})}}const Tg=Br({rounded:{type:[Boolean,Number,String],default:void 0}},"rounded");function kg(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();return{roundedClasses:on(()=>{const T=Wl(o)?o.value:o.rounded,G=[];if(T===!0||T==="")G.push(`${b}--rounded`);else if(typeof T=="string"||T===0)for(const V of String(T).split(" "))G.push(`rounded-${V}`);return G})}}const Rhe=[null,"prominent","default","comfortable","compact"],jae=Br({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:o=>Rhe.includes(o)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...S3(),...ts(),...Wy(),...Tg(),...mc({tag:"header"}),...Gc()},"VToolbar"),ire=Go()({name:"VToolbar",props:jae(),setup(o,b){var i;let{slots:y}=b;const{backgroundColorClasses:T,backgroundColorStyles:G}=wg(Xo(o,"color")),{borderClasses:V}=T3(o),{elevationClasses:L}=Gy(o),{roundedClasses:A}=kg(o),{themeClasses:s}=Uu(o),{rtlClasses:m}=Sg(),h=xa(!!(o.extended||(i=y.extension)!=null&&i.call(y))),l=on(()=>parseInt(Number(o.height)+(o.density==="prominent"?Number(o.height):0)-(o.density==="comfortable"?8:0)-(o.density==="compact"?16:0),10)),c=on(()=>h.value?parseInt(Number(o.extensionHeight)+(o.density==="prominent"?Number(o.extensionHeight):0)-(o.density==="comfortable"?4:0)-(o.density==="compact"?8:0),10):0);return R0({VBtn:{variant:"text"}}),ga(()=>{var v;const u=!!(o.title||y.title),d=!!(y.image||o.image),g=(v=y.extension)==null?void 0:v.call(y);return h.value=!!(o.extended||g),ct(o.tag,{class:["v-toolbar",{"v-toolbar--absolute":o.absolute,"v-toolbar--collapse":o.collapse,"v-toolbar--flat":o.flat,"v-toolbar--floating":o.floating,[`v-toolbar--density-${o.density}`]:!0},T.value,V.value,L.value,A.value,s.value,m.value,o.class],style:[G.value,o.style]},{default:()=>[d&&ct("div",{key:"image",class:"v-toolbar__image"},[y.image?ct(Ac,{key:"image-defaults",disabled:!o.image,defaults:{VImg:{cover:!0,src:o.image}}},y.image):ct(Y6,{key:"image-img",cover:!0,src:o.image},null)]),ct(Ac,{defaults:{VTabs:{height:ra(l.value)}}},{default:()=>{var x,C,_;return[ct("div",{class:"v-toolbar__content",style:{height:ra(l.value)}},[y.prepend&&ct("div",{class:"v-toolbar__prepend"},[(x=y.prepend)==null?void 0:x.call(y)]),u&&ct(whe,{key:"title",text:o.title},{text:y.title}),(C=y.default)==null?void 0:C.call(y),y.append&&ct("div",{class:"v-toolbar__append"},[(_=y.append)==null?void 0:_.call(y)])])]}}),ct(Ac,{defaults:{VTabs:{height:ra(c.value)}}},{default:()=>[ct(_q,null,{default:()=>[h.value&&ct("div",{class:"v-toolbar__extension",style:{height:ra(c.value)}},[g])]})]})]})}),{contentHeight:l,extensionHeight:c}}}),Lhe=Br({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function Dhe(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:y}=b;let T=0;const G=No(null),V=xa(0),L=xa(0),A=xa(0),s=xa(!1),m=xa(!1),h=on(()=>Number(o.scrollThreshold)),l=on(()=>yg((h.value-V.value)/h.value||0)),c=()=>{const i=G.value;!i||y&&!y.value||(T=V.value,V.value="window"in i?i.pageYOffset:i.scrollTop,m.value=V.value{L.value=L.value||V.value}),ta(s,()=>{L.value=0}),Cg(()=>{ta(()=>o.scrollTarget,i=>{var d;const u=i?document.querySelector(i):window;u&&u!==G.value&&((d=G.value)==null||d.removeEventListener("scroll",c),G.value=u,G.value.addEventListener("scroll",c,{passive:!0}))},{immediate:!0})}),dm(()=>{var i;(i=G.value)==null||i.removeEventListener("scroll",c)}),y&&ta(y,c,{immediate:!0}),{scrollThreshold:h,currentScroll:V,currentThreshold:A,isScrollActive:s,scrollRatio:l,isScrollingUp:m,savedScroll:L}}function Dq(){const o=xa(!1);return Cg(()=>{window.requestAnimationFrame(()=>{o.value=!0})}),{ssrBootStyles:on(()=>o.value?void 0:{transition:"none !important"}),isBooted:Z6(o)}}const $he=Br({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:o=>["top","bottom"].includes(o)},...jae(),...ahe(),...Lhe(),height:{type:[Number,String],default:64}},"VAppBar"),Ohe=Go()({name:"VAppBar",props:$he(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y}=b;const T=No(),G=ri(o,"modelValue"),V=on(()=>{var x;const v=new Set(((x=o.scrollBehavior)==null?void 0:x.split(" "))??[]);return{hide:v.has("hide"),inverted:v.has("inverted"),collapse:v.has("collapse"),elevate:v.has("elevate"),fadeImage:v.has("fade-image")}}),L=on(()=>{const v=V.value;return v.hide||v.inverted||v.collapse||v.elevate||v.fadeImage||!G.value}),{currentScroll:A,scrollThreshold:s,isScrollingUp:m,scrollRatio:h}=Dhe(o,{canScroll:L}),l=on(()=>o.collapse||V.value.collapse&&(V.value.inverted?h.value>0:h.value===0)),c=on(()=>o.flat||V.value.elevate&&(V.value.inverted?A.value>0:A.value===0)),i=on(()=>V.value.fadeImage?V.value.inverted?1-h.value:h.value:void 0),u=on(()=>{var C,_;if(V.value.hide&&V.value.inverted)return 0;const v=((C=T.value)==null?void 0:C.contentHeight)??0,x=((_=T.value)==null?void 0:_.extensionHeight)??0;return v+x});E2(on(()=>!!o.scrollBehavior),()=>{fh(()=>{V.value.hide?V.value.inverted?G.value=A.value>s.value:G.value=m.value||A.valueparseInt(o.order,10)),position:Xo(o,"location"),layoutSize:u,elementSize:xa(void 0),active:G,absolute:Xo(o,"absolute")});return ga(()=>{const[v]=ire.filterProps(o);return ct(ire,Jo({ref:T,class:["v-app-bar",{"v-app-bar--bottom":o.location==="bottom"},o.class],style:[{...g.value,"--v-toolbar-image-opacity":i.value,height:void 0,...d.value},o.style]},v,{collapse:l.value,flat:c.value}),y)}),{}}});const Phe=[null,"default","comfortable","compact"],Lp=Br({density:{type:String,default:"default",validator:o=>Phe.includes(o)}},"density");function L0(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();return{densityClasses:on(()=>`${b}--density-${o.density}`)}}const Ihe=["elevated","flat","tonal","outlined","text","plain"];function K6(o,b){return ct(Uo,null,[o&&ct("span",{key:"overlay",class:`${b}__overlay`},null),ct("span",{key:"underlay",class:`${b}__underlay`},null)])}const D2=Br({color:String,variant:{type:String,default:"elevated",validator:o=>Ihe.includes(o)}},"variant");function X6(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();const y=on(()=>{const{variant:V}=im(o);return`${b}--variant-${V}`}),{colorClasses:T,colorStyles:G}=Lq(on(()=>{const{variant:V,color:L}=im(o);return{[["elevated","flat"].includes(V)?"background":"text"]:L}}));return{colorClasses:T,colorStyles:G,variantClasses:y}}const Yae=Br({divided:Boolean,...S3(),...ts(),...Lp(),...Wy(),...Tg(),...mc(),...Gc(),...D2()},"VBtnGroup"),lre=Go()({name:"VBtnGroup",props:Yae(),setup(o,b){let{slots:y}=b;const{themeClasses:T}=Uu(o),{densityClasses:G}=L0(o),{borderClasses:V}=T3(o),{elevationClasses:L}=Gy(o),{roundedClasses:A}=kg(o);R0({VBtn:{height:"auto",color:Xo(o,"color"),density:Xo(o,"density"),flat:!0,variant:Xo(o,"variant")}}),ga(()=>ct(o.tag,{class:["v-btn-group",{"v-btn-group--divided":o.divided},T.value,V.value,G.value,L.value,A.value,o.class],style:o.style},y))}}),$q=Br({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Oq=Br({value:null,disabled:Boolean,selectedClass:String},"group-item");function Pq(o,b){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const T=Vu("useGroupItem");if(!T)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const G=Rp();Gl(Symbol.for(`${b.description}:id`),G);const V=ni(b,null);if(!V){if(!y)return V;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${b.description}`)}const L=Xo(o,"value"),A=on(()=>!!(V.disabled.value||o.disabled));V.register({id:G,value:L,disabled:A},T),dm(()=>{V.unregister(G)});const s=on(()=>V.isSelected(G)),m=on(()=>s.value&&[V.selectedClass.value,o.selectedClass]);return ta(s,h=>{T.emit("group:selected",{value:h})}),{id:G,isSelected:s,toggle:()=>V.select(G,!s.value),select:h=>V.select(G,h),selectedClass:m,value:L,disabled:A,group:V}}function Iq(o,b){let y=!1;const T=ih([]),G=ri(o,"modelValue",[],c=>c==null?[]:Kae(T,xd(c)),c=>{const i=Fhe(T,c);return o.multiple?i:i[0]}),V=Vu("useGroup");function L(c,i){const u=c,d=Symbol.for(`${b.description}:id`),v=A6(d,V==null?void 0:V.vnode).indexOf(i);v>-1?T.splice(v,0,u):T.push(u)}function A(c){if(y)return;s();const i=T.findIndex(u=>u.id===c);T.splice(i,1)}function s(){const c=T.find(i=>!i.disabled);c&&o.mandatory==="force"&&!G.value.length&&(G.value=[c.id])}Cg(()=>{s()}),dm(()=>{y=!0});function m(c,i){const u=T.find(d=>d.id===c);if(!(i&&(u!=null&&u.disabled)))if(o.multiple){const d=G.value.slice(),g=d.findIndex(x=>x===c),v=~g;if(i=i??!v,v&&o.mandatory&&d.length<=1||!v&&o.max!=null&&d.length+1>o.max)return;g<0&&i?d.push(c):g>=0&&!i&&d.splice(g,1),G.value=d}else{const d=G.value.includes(c);if(o.mandatory&&d)return;G.value=i??!d?[c]:[]}}function h(c){if(o.multiple,G.value.length){const i=G.value[0],u=T.findIndex(v=>v.id===i);let d=(u+c)%T.length,g=T[d];for(;g.disabled&&d!==u;)d=(d+c)%T.length,g=T[d];if(g.disabled)return;G.value=[T[d].id]}else{const i=T.find(u=>!u.disabled);i&&(G.value=[i.id])}}const l={register:L,unregister:A,selected:G,select:m,disabled:Xo(o,"disabled"),prev:()=>h(T.length-1),next:()=>h(1),isSelected:c=>G.value.includes(c),selectedClass:on(()=>o.selectedClass),items:on(()=>T),getItemIndex:c=>Nhe(T,c)};return Gl(b,l),l}function Nhe(o,b){const y=Kae(o,[b]);return y.length?o.findIndex(T=>T.id===y[0]):-1}function Kae(o,b){const y=[];return b.forEach(T=>{const G=o.find(L=>b3(T,L.value)),V=o[T];(G==null?void 0:G.value)!=null?y.push(G.id):V!=null&&y.push(V.id)}),y}function Fhe(o,b){const y=[];return b.forEach(T=>{const G=o.findIndex(V=>V.id===T);if(~G){const V=o[G];y.push(V.value!=null?V.value:G)}}),y}const Xae=Symbol.for("vuetify:v-btn-toggle"),Bhe=Br({...Yae(),...$q()},"VBtnToggle");Go()({name:"VBtnToggle",props:Bhe(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y}=b;const{isSelected:T,next:G,prev:V,select:L,selected:A}=Iq(o,Xae);return ga(()=>{const[s]=lre.filterProps(o);return ct(lre,Jo({class:["v-btn-toggle",o.class]},s,{style:o.style}),{default:()=>{var m;return[(m=y.default)==null?void 0:m.call(y,{isSelected:T,next:G,prev:V,select:L,selected:A})]}})}),{next:G,prev:V,select:L}}});const Hhe={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar"},Jae={component:o=>um(qae,{...o,class:"mdi"})},vi=[String,Function,Object,Array],TQ=Symbol.for("vuetify:icons"),nH=Br({icon:{type:vi},tag:{type:String,required:!0}},"icon"),cre=Go()({name:"VComponentIcon",props:nH(),setup(o,b){let{slots:y}=b;return()=>{const T=o.icon;return ct(o.tag,null,{default:()=>{var G;return[o.icon?ct(T,null,null):(G=y.default)==null?void 0:G.call(y)]}})}}}),Qae=IE({name:"VSvgIcon",inheritAttrs:!1,props:nH(),setup(o,b){let{attrs:y}=b;return()=>ct(o.tag,Jo(y,{style:null}),{default:()=>[ct("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(o.icon)?o.icon.map(T=>Array.isArray(T)?ct("path",{d:T[0],"fill-opacity":T[1]},null):ct("path",{d:T},null)):ct("path",{d:o.icon},null)])]})}});IE({name:"VLigatureIcon",props:nH(),setup(o){return()=>ct(o.tag,null,{default:()=>[o.icon]})}});const qae=IE({name:"VClassIcon",props:nH(),setup(o){return()=>ct(o.tag,{class:o.icon},null)}}),zhe={svg:{component:Qae},class:{component:qae}};function Vhe(o){return gg({defaultSet:"mdi",sets:{...zhe,mdi:Jae},aliases:{...Hhe,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z"}},o)}const Uhe=o=>{const b=ni(TQ);if(!b)throw new Error("Missing Vuetify Icons provide!");return{iconData:on(()=>{var s;const T=im(o);if(!T)return{component:cre};let G=T;if(typeof G=="string"&&(G=G.trim(),G.startsWith("$")&&(G=(s=b.aliases)==null?void 0:s[G.slice(1)])),!G)throw new Error(`Could not find aliased icon "${T}"`);if(Array.isArray(G))return{component:Qae,icon:G};if(typeof G!="string")return{component:cre,icon:G};const V=Object.keys(b.sets).find(m=>typeof G=="string"&&G.startsWith(`${m}:`)),L=V?G.slice(V.length+1):G;return{component:b.sets[V??b.defaultSet].component,icon:L}})}},Whe=["x-small","small","default","large","x-large"],J6=Br({size:{type:[String,Number],default:"default"}},"size");function Q6(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();return Sq(()=>{let y,T;return xB(Whe,o.size)?y=`${b}--size-${o.size}`:o.size&&(T={width:ra(o.size),height:ra(o.size)}),{sizeClasses:y,sizeStyles:T}})}const Ghe=Br({color:String,start:Boolean,end:Boolean,icon:vi,...ts(),...J6(),...mc({tag:"i"}),...Gc()},"VIcon"),js=Go()({name:"VIcon",props:Ghe(),setup(o,b){let{attrs:y,slots:T}=b;const G=No(),{themeClasses:V}=Uu(o),{iconData:L}=Uhe(on(()=>G.value||o.icon)),{sizeClasses:A}=Q6(o),{textColorClasses:s,textColorStyles:m}=xg(Xo(o,"color"));return ga(()=>{var l,c;const h=(l=T.default)==null?void 0:l.call(T);return h&&(G.value=(c=Sae(h).filter(i=>i.type===j6&&i.children&&typeof i.children=="string")[0])==null?void 0:c.children),ct(L.value.component,{tag:o.tag,icon:L.value.icon,class:["v-icon","notranslate",V.value,A.value,s.value,{"v-icon--clickable":!!y.onClick,"v-icon--start":o.start,"v-icon--end":o.end},o.class],style:[A.value?void 0:{fontSize:ra(o.size),height:ra(o.size),width:ra(o.size)},m.value,o.style],role:y.onClick?"button":void 0,"aria-hidden":!y.onClick},{default:()=>[h]})}),{}}});function ese(o,b){const y=No(),T=xa(!1);if(xq){const G=new IntersectionObserver(V=>{o==null||o(V,G),T.value=!!V.find(L=>L.isIntersecting)},b);dm(()=>{G.disconnect()}),ta(y,(V,L)=>{L&&(G.unobserve(L),T.value=!1),V&&G.observe(V)},{flush:"post"})}return{intersectionRef:y,isIntersecting:T}}const Zhe=Br({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...ts(),...J6(),...mc({tag:"div"}),...Gc()},"VProgressCircular"),tse=Go()({name:"VProgressCircular",props:Zhe(),setup(o,b){let{slots:y}=b;const T=20,G=2*Math.PI*T,V=No(),{themeClasses:L}=Uu(o),{sizeClasses:A,sizeStyles:s}=Q6(o),{textColorClasses:m,textColorStyles:h}=xg(Xo(o,"color")),{textColorClasses:l,textColorStyles:c}=xg(Xo(o,"bgColor")),{intersectionRef:i,isIntersecting:u}=ese(),{resizeRef:d,contentRect:g}=tH(),v=on(()=>Math.max(0,Math.min(100,parseFloat(o.modelValue)))),x=on(()=>Number(o.width)),C=on(()=>s.value?Number(o.size):g.value?g.value.width:Math.max(x.value,32)),_=on(()=>T/(1-x.value/C.value)*2),$=on(()=>x.value/C.value*_.value),S=on(()=>ra((100-v.value)/100*G));return fh(()=>{i.value=V.value,d.value=V.value}),ga(()=>ct(o.tag,{ref:V,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!o.indeterminate,"v-progress-circular--visible":u.value,"v-progress-circular--disable-shrink":o.indeterminate==="disable-shrink"},L.value,A.value,m.value,o.class],style:[s.value,h.value,o.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":o.indeterminate?void 0:v.value},{default:()=>[ct("svg",{style:{transform:`rotate(calc(-90deg + ${Number(o.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[ct("circle",{class:["v-progress-circular__underlay",l.value],style:c.value,fill:"transparent",cx:"50%",cy:"50%",r:T,"stroke-width":$.value,"stroke-dasharray":G,"stroke-dashoffset":0},null),ct("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:T,"stroke-width":$.value,"stroke-dasharray":G,"stroke-dashoffset":S.value},null)]),y.default&&ct("div",{class:"v-progress-circular__content"},[y.default({value:v.value})])]})),{}}});const ure={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Nq=Br({location:String},"location");function Fq(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=arguments.length>2?arguments[2]:void 0;const{isRtl:T}=Sg();return{locationStyles:on(()=>{if(!o.location)return{};const{side:V,align:L}=SQ(o.location.split(" ").length>1?o.location:`${o.location} center`,T.value);function A(m){return y?y(m):0}const s={};return V!=="center"&&(b?s[ure[V]]=`calc(100% - ${A(V)}px)`:s[V]=0),L!=="center"?b?s[ure[L]]=`calc(100% - ${A(L)}px)`:s[L]=0:(V==="center"?s.top=s.left="50%":s[{top:"left",bottom:"left",left:"top",right:"top"}[V]]="50%",s.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[V]),s})}}const jhe=Br({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...ts(),...Nq({location:"top"}),...Tg(),...mc(),...Gc()},"VProgressLinear"),Yhe=Go()({name:"VProgressLinear",props:jhe(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y}=b;const T=ri(o,"modelValue"),{isRtl:G,rtlClasses:V}=Sg(),{themeClasses:L}=Uu(o),{locationStyles:A}=Fq(o),{textColorClasses:s,textColorStyles:m}=xg(o,"color"),{backgroundColorClasses:h,backgroundColorStyles:l}=wg(on(()=>o.bgColor||o.color)),{backgroundColorClasses:c,backgroundColorStyles:i}=wg(o,"color"),{roundedClasses:u}=kg(o),{intersectionRef:d,isIntersecting:g}=ese(),v=on(()=>parseInt(o.max,10)),x=on(()=>parseInt(o.height,10)),C=on(()=>parseFloat(o.bufferValue)/v.value*100),_=on(()=>parseFloat(T.value)/v.value*100),$=on(()=>G.value!==o.reverse),S=on(()=>o.indeterminate?"fade-transition":"slide-x-transition"),O=on(()=>o.bgOpacity==null?o.bgOpacity:parseFloat(o.bgOpacity));function D(N){if(!d.value)return;const{left:M,right:k,width:R}=d.value.getBoundingClientRect(),F=$.value?R-N.clientX+(k-R):N.clientX-M;T.value=Math.round(F/R*v.value)}return ga(()=>ct(o.tag,{ref:d,class:["v-progress-linear",{"v-progress-linear--absolute":o.absolute,"v-progress-linear--active":o.active&&g.value,"v-progress-linear--reverse":$.value,"v-progress-linear--rounded":o.rounded,"v-progress-linear--rounded-bar":o.roundedBar,"v-progress-linear--striped":o.striped},u.value,L.value,V.value,o.class],style:[{bottom:o.location==="bottom"?0:void 0,top:o.location==="top"?0:void 0,height:o.active?ra(x.value):0,"--v-progress-linear-height":ra(x.value),...A.value},o.style],role:"progressbar","aria-hidden":o.active?"false":"true","aria-valuemin":"0","aria-valuemax":o.max,"aria-valuenow":o.indeterminate?void 0:_.value,onClick:o.clickable&&D},{default:()=>[o.stream&&ct("div",{key:"stream",class:["v-progress-linear__stream",s.value],style:{...m.value,[$.value?"left":"right"]:ra(-x.value),borderTop:`${ra(x.value/2)} dotted`,opacity:O.value,top:`calc(50% - ${ra(x.value/4)})`,width:ra(100-C.value,"%"),"--v-progress-linear-stream-to":ra(x.value*($.value?1:-1))}},null),ct("div",{class:["v-progress-linear__background",h.value],style:[l.value,{opacity:O.value,width:ra(o.stream?C.value:100,"%")}]},null),ct(Hy,{name:S.value},{default:()=>[o.indeterminate?ct("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(N=>ct("div",{key:N,class:["v-progress-linear__indeterminate",N,c.value],style:i.value},null))]):ct("div",{class:["v-progress-linear__determinate",c.value],style:[i.value,{width:ra(_.value,"%")}]},null)]}),y.default&&ct("div",{class:"v-progress-linear__content"},[y.default({value:_.value,buffer:C.value})])]})),{}}}),rH=Br({loading:[Boolean,String]},"loader");function oH(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();return{loaderClasses:on(()=>({[`${b}--loading`]:o.loading}))}}function Bq(o,b){var T;let{slots:y}=b;return ct("div",{class:`${o.name}__loader`},[((T=y.default)==null?void 0:T.call(y,{color:o.color,isActive:o.active}))||ct(Yhe,{active:o.active,color:o.color,height:"2",indeterminate:!0},null)])}const Khe=["static","relative","fixed","absolute","sticky"],nse=Br({position:{type:String,validator:o=>Khe.includes(o)}},"position");function rse(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();return{positionClasses:on(()=>o.position?`${b}--${o.position}`:void 0)}}function Xhe(){var o,b;return(b=(o=Vu("useRouter"))==null?void 0:o.proxy)==null?void 0:b.$router}function aH(o,b){const y=mg("RouterLink"),T=on(()=>!!(o.href||o.to)),G=on(()=>(T==null?void 0:T.value)||Fne(b,"click")||Fne(o,"click"));if(typeof y=="string")return{isLink:T,isClickable:G,href:Xo(o,"href")};const V=o.to?y.useLink(o):void 0;return{isLink:T,isClickable:G,route:V==null?void 0:V.route,navigate:V==null?void 0:V.navigate,isActive:V&&on(()=>{var L,A;return o.exact?(L=V.isExactActive)==null?void 0:L.value:(A=V.isActive)==null?void 0:A.value}),href:on(()=>o.to?V==null?void 0:V.route.value.href:o.href)}}const sH=Br({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let KJ=!1;function Jhe(o,b){let y=!1,T,G;yl&&(Ll(()=>{window.addEventListener("popstate",V),T=o==null?void 0:o.beforeEach((L,A,s)=>{KJ?y?b(s):s():setTimeout(()=>y?b(s):s()),KJ=!0}),G=o==null?void 0:o.afterEach(()=>{KJ=!1})}),ch(()=>{window.removeEventListener("popstate",V),T==null||T(),G==null||G()}));function V(L){var A;(A=L.state)!=null&&A.replaced||(y=!0,setTimeout(()=>y=!1))}}function Qhe(o,b){ta(()=>{var y;return(y=o.isActive)==null?void 0:y.value},y=>{o.isLink.value&&y&&b&&Ll(()=>{b(!0)})},{immediate:!0})}const kQ=Symbol("rippleStop"),qhe=80;function fre(o,b){o.style.transform=b,o.style.webkitTransform=b}function AQ(o){return o.constructor.name==="TouchEvent"}function ose(o){return o.constructor.name==="KeyboardEvent"}const eme=function(o,b){var l;let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},T=0,G=0;if(!ose(o)){const c=b.getBoundingClientRect(),i=AQ(o)?o.touches[o.touches.length-1]:o;T=i.clientX-c.left,G=i.clientY-c.top}let V=0,L=.3;(l=b._ripple)!=null&&l.circle?(L=.15,V=b.clientWidth/2,V=y.center?V:V+Math.sqrt((T-V)**2+(G-V)**2)/4):V=Math.sqrt(b.clientWidth**2+b.clientHeight**2)/2;const A=`${(b.clientWidth-V*2)/2}px`,s=`${(b.clientHeight-V*2)/2}px`,m=y.center?A:`${T-V}px`,h=y.center?s:`${G-V}px`;return{radius:V,scale:L,x:m,y:h,centerX:A,centerY:s}},_B={show(o,b){var i;let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((i=b==null?void 0:b._ripple)!=null&&i.enabled))return;const T=document.createElement("span"),G=document.createElement("span");T.appendChild(G),T.className="v-ripple__container",y.class&&(T.className+=` ${y.class}`);const{radius:V,scale:L,x:A,y:s,centerX:m,centerY:h}=eme(o,b,y),l=`${V*2}px`;G.className="v-ripple__animation",G.style.width=l,G.style.height=l,b.appendChild(T);const c=window.getComputedStyle(b);c&&c.position==="static"&&(b.style.position="relative",b.dataset.previousPosition="static"),G.classList.add("v-ripple__animation--enter"),G.classList.add("v-ripple__animation--visible"),fre(G,`translate(${A}, ${s}) scale3d(${L},${L},${L})`),G.dataset.activated=String(performance.now()),setTimeout(()=>{G.classList.remove("v-ripple__animation--enter"),G.classList.add("v-ripple__animation--in"),fre(G,`translate(${m}, ${h}) scale3d(1,1,1)`)},0)},hide(o){var V;if(!((V=o==null?void 0:o._ripple)!=null&&V.enabled))return;const b=o.getElementsByClassName("v-ripple__animation");if(b.length===0)return;const y=b[b.length-1];if(y.dataset.isHiding)return;y.dataset.isHiding="true";const T=performance.now()-Number(y.dataset.activated),G=Math.max(250-T,0);setTimeout(()=>{y.classList.remove("v-ripple__animation--in"),y.classList.add("v-ripple__animation--out"),setTimeout(()=>{var A;o.getElementsByClassName("v-ripple__animation").length===1&&o.dataset.previousPosition&&(o.style.position=o.dataset.previousPosition,delete o.dataset.previousPosition),((A=y.parentNode)==null?void 0:A.parentNode)===o&&o.removeChild(y.parentNode)},300)},G)}};function ase(o){return typeof o>"u"||!!o}function F6(o){const b={},y=o.currentTarget;if(!(!(y!=null&&y._ripple)||y._ripple.touched||o[kQ])){if(o[kQ]=!0,AQ(o))y._ripple.touched=!0,y._ripple.isTouch=!0;else if(y._ripple.isTouch)return;if(b.center=y._ripple.centered||ose(o),y._ripple.class&&(b.class=y._ripple.class),AQ(o)){if(y._ripple.showTimerCommit)return;y._ripple.showTimerCommit=()=>{_B.show(o,y,b)},y._ripple.showTimer=window.setTimeout(()=>{var T;(T=y==null?void 0:y._ripple)!=null&&T.showTimerCommit&&(y._ripple.showTimerCommit(),y._ripple.showTimerCommit=null)},qhe)}else _B.show(o,y,b)}}function dre(o){o[kQ]=!0}function am(o){const b=o.currentTarget;if(b!=null&&b._ripple){if(window.clearTimeout(b._ripple.showTimer),o.type==="touchend"&&b._ripple.showTimerCommit){b._ripple.showTimerCommit(),b._ripple.showTimerCommit=null,b._ripple.showTimer=window.setTimeout(()=>{am(o)});return}window.setTimeout(()=>{b._ripple&&(b._ripple.touched=!1)}),_B.hide(b)}}function sse(o){const b=o.currentTarget;b!=null&&b._ripple&&(b._ripple.showTimerCommit&&(b._ripple.showTimerCommit=null),window.clearTimeout(b._ripple.showTimer))}let B6=!1;function ise(o){!B6&&(o.keyCode===Pne.enter||o.keyCode===Pne.space)&&(B6=!0,F6(o))}function lse(o){B6=!1,am(o)}function cse(o){B6&&(B6=!1,am(o))}function use(o,b,y){const{value:T,modifiers:G}=b,V=ase(T);if(V||_B.hide(o),o._ripple=o._ripple??{},o._ripple.enabled=V,o._ripple.centered=G.center,o._ripple.circle=G.circle,wQ(T)&&T.class&&(o._ripple.class=T.class),V&&!y){if(G.stop){o.addEventListener("touchstart",dre,{passive:!0}),o.addEventListener("mousedown",dre);return}o.addEventListener("touchstart",F6,{passive:!0}),o.addEventListener("touchend",am,{passive:!0}),o.addEventListener("touchmove",sse,{passive:!0}),o.addEventListener("touchcancel",am),o.addEventListener("mousedown",F6),o.addEventListener("mouseup",am),o.addEventListener("mouseleave",am),o.addEventListener("keydown",ise),o.addEventListener("keyup",lse),o.addEventListener("blur",cse),o.addEventListener("dragstart",am,{passive:!0})}else!V&&y&&fse(o)}function fse(o){o.removeEventListener("mousedown",F6),o.removeEventListener("touchstart",F6),o.removeEventListener("touchend",am),o.removeEventListener("touchmove",sse),o.removeEventListener("touchcancel",am),o.removeEventListener("mouseup",am),o.removeEventListener("mouseleave",am),o.removeEventListener("keydown",ise),o.removeEventListener("keyup",lse),o.removeEventListener("dragstart",am),o.removeEventListener("blur",cse)}function tme(o,b){use(o,b,!1)}function nme(o){delete o._ripple,fse(o)}function rme(o,b){if(b.value===b.oldValue)return;const y=ase(b.oldValue);use(o,b,y)}const k3={mounted:tme,unmounted:nme,updated:rme},ome=Br({active:{type:Boolean,default:void 0},symbol:{type:null,default:Xae},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:vi,appendIcon:vi,block:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...S3(),...ts(),...Lp(),...x3(),...Wy(),...Oq(),...rH(),...Nq(),...nse(),...Tg(),...sH(),...J6(),...mc({tag:"button"}),...Gc(),...D2({variant:"elevated"})},"VBtn"),dc=Go()({name:"VBtn",directives:{Ripple:k3},props:ome(),emits:{"group:selected":o=>!0},setup(o,b){let{attrs:y,slots:T}=b;const{themeClasses:G}=Uu(o),{borderClasses:V}=T3(o),{colorClasses:L,colorStyles:A,variantClasses:s}=X6(o),{densityClasses:m}=L0(o),{dimensionStyles:h}=w3(o),{elevationClasses:l}=Gy(o),{loaderClasses:c}=oH(o),{locationStyles:i}=Fq(o),{positionClasses:u}=rse(o),{roundedClasses:d}=kg(o),{sizeClasses:g,sizeStyles:v}=Q6(o),x=Pq(o,o.symbol,!1),C=aH(o,y),_=on(()=>{var N;return o.active!==void 0?o.active:C.isLink.value?(N=C.isActive)==null?void 0:N.value:x==null?void 0:x.isSelected.value}),$=on(()=>(x==null?void 0:x.disabled.value)||o.disabled),S=on(()=>o.variant==="elevated"&&!(o.disabled||o.flat||o.border)),O=on(()=>{if(o.value!==void 0)return Object(o.value)===o.value?JSON.stringify(o.value,null,0):o.value});function D(N){var M;$.value||C.isLink.value&&(N.metaKey||N.ctrlKey||N.shiftKey||N.button!==0||y.target==="_blank")||((M=C.navigate)==null||M.call(C,N),x==null||x.toggle())}return Qhe(C,x==null?void 0:x.select),ga(()=>{var H,j;const N=C.isLink.value?"a":o.tag,M=!!(o.prependIcon||T.prepend),k=!!(o.appendIcon||T.append),R=!!(o.icon&&o.icon!==!0),F=(x==null?void 0:x.isSelected.value)&&(!C.isLink.value||((H=C.isActive)==null?void 0:H.value))||!x||((j=C.isActive)==null?void 0:j.value);return lu(ct(N,{type:N==="a"?void 0:"button",class:["v-btn",x==null?void 0:x.selectedClass.value,{"v-btn--active":_.value,"v-btn--block":o.block,"v-btn--disabled":$.value,"v-btn--elevated":S.value,"v-btn--flat":o.flat,"v-btn--icon":!!o.icon,"v-btn--loading":o.loading,"v-btn--stacked":o.stacked},G.value,V.value,F?L.value:void 0,m.value,l.value,c.value,u.value,d.value,g.value,s.value,o.class],style:[F?A.value:void 0,h.value,i.value,v.value,o.style],disabled:$.value||void 0,href:C.href.value,onClick:D,value:O.value},{default:()=>{var P;return[K6(!0,"v-btn"),!o.icon&&M&&ct("span",{key:"prepend",class:"v-btn__prepend"},[T.prepend?ct(Ac,{key:"prepend-defaults",disabled:!o.prependIcon,defaults:{VIcon:{icon:o.prependIcon}}},T.prepend):ct(js,{key:"prepend-icon",icon:o.prependIcon},null)]),ct("span",{class:"v-btn__content","data-no-activator":""},[!T.default&&R?ct(js,{key:"content-icon",icon:o.icon},null):ct(Ac,{key:"content-defaults",disabled:!R,defaults:{VIcon:{icon:o.icon}}},{default:()=>{var ee;return[((ee=T.default)==null?void 0:ee.call(T))??o.text]}})]),!o.icon&&k&&ct("span",{key:"append",class:"v-btn__append"},[T.append?ct(Ac,{key:"append-defaults",disabled:!o.appendIcon,defaults:{VIcon:{icon:o.appendIcon}}},T.append):ct(js,{key:"append-icon",icon:o.appendIcon},null)]),!!o.loading&&ct("span",{key:"loader",class:"v-btn__loader"},[((P=T.loader)==null?void 0:P.call(T))??ct(tse,{color:typeof o.loading=="boolean"?void 0:o.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[_p("ripple"),!$.value&&o.ripple,null]])}),{}}});const ame=Br({text:String,clickable:Boolean,...ts(),...Gc()},"VLabel"),iH=Go()({name:"VLabel",props:ame(),setup(o,b){let{slots:y}=b;return ga(()=>{var T;return ct("label",{class:["v-label",{"v-label--clickable":o.clickable},o.class],style:o.style},[o.text,(T=y.default)==null?void 0:T.call(y)])}),{}}});const dse=Symbol.for("vuetify:selection-control-group"),hse=Br({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:vi,trueIcon:vi,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:Boolean,modelValue:null,type:String,valueComparator:{type:Function,default:b3},...ts(),...Lp(),...Gc()},"SelectionControlGroup"),sme=Br({...hse({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Go()({name:"VSelectionControlGroup",props:sme(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y}=b;const T=ri(o,"modelValue"),G=Rp(),V=on(()=>o.id||`v-selection-control-group-${G}`),L=on(()=>o.name||V.value),A=new Set;return Gl(dse,{modelValue:T,forceUpdate:()=>{A.forEach(s=>s())},onForceUpdate:s=>{A.add(s),ch(()=>{A.delete(s)})}}),R0({[o.defaultsTarget]:{color:Xo(o,"color"),disabled:Xo(o,"disabled"),density:Xo(o,"density"),error:Xo(o,"error"),inline:Xo(o,"inline"),modelValue:T,multiple:on(()=>!!o.multiple||o.multiple==null&&Array.isArray(T.value)),name:L,falseIcon:Xo(o,"falseIcon"),trueIcon:Xo(o,"trueIcon"),readonly:Xo(o,"readonly"),ripple:Xo(o,"ripple"),type:Xo(o,"type"),valueComparator:Xo(o,"valueComparator")}}),ga(()=>{var s;return ct("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":o.inline},o.class],style:o.style,role:o.type==="radio"?"radiogroup":void 0},[(s=y.default)==null?void 0:s.call(y)])}),{}}});const mse=Br({label:String,trueValue:null,falseValue:null,value:null,...ts(),...hse()},"VSelectionControl");function ime(o){const b=ni(dse,void 0),{densityClasses:y}=L0(o),T=ri(o,"modelValue"),G=on(()=>o.trueValue!==void 0?o.trueValue:o.value!==void 0?o.value:!0),V=on(()=>o.falseValue!==void 0?o.falseValue:!1),L=on(()=>!!o.multiple||o.multiple==null&&Array.isArray(T.value)),A=on({get(){const i=b?b.modelValue.value:T.value;return L.value?i.some(u=>o.valueComparator(u,G.value)):o.valueComparator(i,G.value)},set(i){if(o.readonly)return;const u=i?G.value:V.value;let d=u;L.value&&(d=i?[...xd(T.value),u]:xd(T.value).filter(g=>!o.valueComparator(g,G.value))),b?b.modelValue.value=d:T.value=d}}),{textColorClasses:s,textColorStyles:m}=xg(on(()=>A.value&&!o.error&&!o.disabled?o.color:void 0)),{backgroundColorClasses:h,backgroundColorStyles:l}=wg(on(()=>A.value&&!o.error&&!o.disabled?o.color:void 0)),c=on(()=>A.value?o.trueIcon:o.falseIcon);return{group:b,densityClasses:y,trueValue:G,falseValue:V,model:A,textColorClasses:s,textColorStyles:m,backgroundColorClasses:h,backgroundColorStyles:l,icon:c}}const hre=Go()({name:"VSelectionControl",directives:{Ripple:k3},inheritAttrs:!1,props:mse(),emits:{"update:modelValue":o=>!0},setup(o,b){let{attrs:y,slots:T}=b;const{group:G,densityClasses:V,icon:L,model:A,textColorClasses:s,textColorStyles:m,backgroundColorClasses:h,backgroundColorStyles:l,trueValue:c}=ime(o),i=Rp(),u=on(()=>o.id||`input-${i}`),d=xa(!1),g=xa(!1),v=No();G==null||G.onForceUpdate(()=>{v.value&&(v.value.checked=A.value)});function x($){d.value=!0,EE($.target,":focus-visible")!==!1&&(g.value=!0)}function C(){d.value=!1,g.value=!1}function _($){o.readonly&&G&&Ll(()=>G.forceUpdate()),A.value=$.target.checked}return ga(()=>{var N,M;const $=T.label?T.label({label:o.label,props:{for:u.value}}):o.label,[S,O]=Cq(y),D=ct("input",Jo({ref:v,checked:A.value,disabled:!!(o.readonly||o.disabled),id:u.value,onBlur:C,onFocus:x,onInput:_,"aria-disabled":!!(o.readonly||o.disabled),type:o.type,value:c.value,name:o.name,"aria-checked":o.type==="checkbox"?A.value:void 0},O),null);return ct("div",Jo({class:["v-selection-control",{"v-selection-control--dirty":A.value,"v-selection-control--disabled":o.disabled,"v-selection-control--error":o.error,"v-selection-control--focused":d.value,"v-selection-control--focus-visible":g.value,"v-selection-control--inline":o.inline},V.value,o.class]},S,{style:o.style}),[ct("div",{class:["v-selection-control__wrapper",s.value],style:m.value},[(N=T.default)==null?void 0:N.call(T,{backgroundColorClasses:h,backgroundColorStyles:l}),lu(ct("div",{class:["v-selection-control__input"]},[((M=T.input)==null?void 0:M.call(T,{model:A,textColorClasses:s,textColorStyles:m,backgroundColorClasses:h,backgroundColorStyles:l,inputNode:D,icon:L.value,props:{onFocus:x,onBlur:C,id:u.value}}))??ct(Uo,null,[L.value&&ct(js,{key:"icon",icon:L.value},null),D])]),[[_p("ripple"),o.ripple&&[!o.disabled&&!o.readonly,null,["center","circle"]]]])]),$&&ct(iH,{for:u.value,clickable:!0,onClick:k=>k.stopPropagation()},{default:()=>[$]})])}),{isFocused:d,input:v}}}),lme=Br({indeterminate:Boolean,indeterminateIcon:{type:vi,default:"$checkboxIndeterminate"},...mse({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),FE=Go()({name:"VCheckboxBtn",props:lme(),emits:{"update:modelValue":o=>!0,"update:indeterminate":o=>!0},setup(o,b){let{slots:y}=b;const T=ri(o,"indeterminate"),G=ri(o,"modelValue");function V(s){T.value&&(T.value=!1)}const L=on(()=>T.value?o.indeterminateIcon:o.falseIcon),A=on(()=>T.value?o.indeterminateIcon:o.trueIcon);return ga(()=>{const s=PE(hre.filterProps(o)[0],["modelValue"]);return ct(hre,Jo(s,{modelValue:G.value,"onUpdate:modelValue":[m=>G.value=m,V],class:["v-checkbox-btn",o.class],style:o.style,type:"checkbox",falseIcon:L.value,trueIcon:A.value,"aria-checked":T.value?"mixed":void 0}),y)}),{}}});function gse(o){const{t:b}=L2();function y(T){let{name:G}=T;const V={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[G],L=o[`onClick:${G}`],A=L&&V?b(`$vuetify.input.${V}`,o.label??""):void 0;return ct(js,{icon:o[`${G}Icon`],"aria-label":A,onClick:L},null)}return{InputIcon:y}}const cme=Br({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...ts(),...C3({transition:{component:Uae,leaveAbsolute:!0,group:!0}})},"VMessages"),ume=Go()({name:"VMessages",props:cme(),setup(o,b){let{slots:y}=b;const T=on(()=>xd(o.messages)),{textColorClasses:G,textColorStyles:V}=xg(on(()=>o.color));return ga(()=>ct(T2,{transition:o.transition,tag:"div",class:["v-messages",G.value,o.class],style:[V.value,o.style],role:"alert","aria-live":"polite"},{default:()=>[o.active&&T.value.map((L,A)=>ct("div",{class:"v-messages__message",key:`${A}-${T.value}`},[y.message?y.message({message:L}):L]))]})),{}}}),lH=Br({focused:Boolean,"onUpdate:focused":M0()},"focus");function q6(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();const y=ri(o,"focused"),T=on(()=>({[`${b}--focused`]:y.value}));function G(){y.value=!0}function V(){y.value=!1}return{focusClasses:T,isFocused:y,focus:G,blur:V}}const fme=Symbol.for("vuetify:form");function cH(){return ni(fme,null)}const dme=Br({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...lH()},"validation");function hme(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy(),y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rp();const T=ri(o,"modelValue"),G=on(()=>o.validationValue===void 0?T.value:o.validationValue),V=cH(),L=No([]),A=xa(!0),s=on(()=>!!(xd(T.value===""?null:T.value).length||xd(G.value===""?null:G.value).length)),m=on(()=>!!(o.disabled??(V==null?void 0:V.isDisabled.value))),h=on(()=>!!(o.readonly??(V==null?void 0:V.isReadonly.value))),l=on(()=>{var _;return(_=o.errorMessages)!=null&&_.length?xd(o.errorMessages).slice(0,Math.max(0,+o.maxErrors)):L.value}),c=on(()=>{let _=(o.validateOn??(V==null?void 0:V.validateOn.value))||"input";_==="lazy"&&(_="input lazy");const $=new Set((_==null?void 0:_.split(" "))??[]);return{blur:$.has("blur")||$.has("input"),input:$.has("input"),submit:$.has("submit"),lazy:$.has("lazy")}}),i=on(()=>{var _;return o.error||(_=o.errorMessages)!=null&&_.length?!1:o.rules.length?A.value?L.value.length||c.value.lazy?null:!0:!L.value.length:!0}),u=xa(!1),d=on(()=>({[`${b}--error`]:i.value===!1,[`${b}--dirty`]:s.value,[`${b}--disabled`]:m.value,[`${b}--readonly`]:h.value})),g=on(()=>o.name??im(y));fq(()=>{V==null||V.register({id:g.value,validate:C,reset:v,resetValidation:x})}),dm(()=>{V==null||V.unregister(g.value)}),Cg(async()=>{c.value.lazy||await C(!0),V==null||V.update(g.value,i.value,l.value)}),E2(()=>c.value.input,()=>{ta(G,()=>{if(G.value!=null)C();else if(o.focused){const _=ta(()=>o.focused,$=>{$||C(),_()})}})}),E2(()=>c.value.blur,()=>{ta(()=>o.focused,_=>{_||C()})}),ta(i,()=>{V==null||V.update(g.value,i.value,l.value)});function v(){T.value=null,Ll(x)}function x(){A.value=!0,c.value.lazy?L.value=[]:C(!0)}async function C(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const $=[];u.value=!0;for(const S of o.rules){if($.length>=+(o.maxErrors??1))break;const D=await(typeof S=="function"?S:()=>S)(G.value);if(D!==!0){if(D!==!1&&typeof D!="string"){console.warn(`${D} is not a valid value. Rule functions must return boolean true or a string.`);continue}$.push(D||"")}}return L.value=$,u.value=!1,A.value=_,L.value}return{errorMessages:l,isDirty:s,isDisabled:m,isReadonly:h,isPristine:A,isValid:i,isValidating:u,reset:v,resetValidation:x,validate:C,validationClasses:d}}const e$=Br({id:String,appendIcon:vi,centerAffix:{type:Boolean,default:!0},prependIcon:vi,hideDetails:[Boolean,String],hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:o=>["horizontal","vertical"].includes(o)},"onClick:prepend":M0(),"onClick:append":M0(),...ts(),...Lp(),...dme()},"VInput"),_2=Go()({name:"VInput",props:{...e$()},emits:{"update:modelValue":o=>!0},setup(o,b){let{attrs:y,slots:T,emit:G}=b;const{densityClasses:V}=L0(o),{rtlClasses:L}=Sg(),{InputIcon:A}=gse(o),s=Rp(),m=on(()=>o.id||`input-${s}`),h=on(()=>`${m.value}-messages`),{errorMessages:l,isDirty:c,isDisabled:i,isReadonly:u,isPristine:d,isValid:g,isValidating:v,reset:x,resetValidation:C,validate:_,validationClasses:$}=hme(o,"v-input",m),S=on(()=>({id:m,messagesId:h,isDirty:c,isDisabled:i,isReadonly:u,isPristine:d,isValid:g,isValidating:v,reset:x,resetValidation:C,validate:_})),O=on(()=>{var D;return(D=o.errorMessages)!=null&&D.length||!d.value&&l.value.length?l.value:o.hint&&(o.persistentHint||o.focused)?o.hint:o.messages});return ga(()=>{var R,F,H,j;const D=!!(T.prepend||o.prependIcon),N=!!(T.append||o.appendIcon),M=O.value.length>0,k=!o.hideDetails||o.hideDetails==="auto"&&(M||!!T.details);return ct("div",{class:["v-input",`v-input--${o.direction}`,{"v-input--center-affix":o.centerAffix},V.value,L.value,$.value,o.class],style:o.style},[D&&ct("div",{key:"prepend",class:"v-input__prepend"},[(R=T.prepend)==null?void 0:R.call(T,S.value),o.prependIcon&&ct(A,{key:"prepend-icon",name:"prepend"},null)]),T.default&&ct("div",{class:"v-input__control"},[(F=T.default)==null?void 0:F.call(T,S.value)]),N&&ct("div",{key:"append",class:"v-input__append"},[o.appendIcon&&ct(A,{key:"append-icon",name:"append"},null),(H=T.append)==null?void 0:H.call(T,S.value)]),k&&ct("div",{class:"v-input__details"},[ct(ume,{id:h.value,active:M,messages:O.value},{message:T.message}),(j=T.details)==null?void 0:j.call(T,S.value)])])}),{reset:x,resetValidation:C,validate:_}}});const mme=Br({start:Boolean,end:Boolean,icon:vi,image:String,...ts(),...Lp(),...Tg(),...J6(),...mc(),...Gc(),...D2({variant:"flat"})},"VAvatar"),RE=Go()({name:"VAvatar",props:mme(),setup(o,b){let{slots:y}=b;const{themeClasses:T}=Uu(o),{colorClasses:G,colorStyles:V,variantClasses:L}=X6(o),{densityClasses:A}=L0(o),{roundedClasses:s}=kg(o),{sizeClasses:m,sizeStyles:h}=Q6(o);return ga(()=>ct(o.tag,{class:["v-avatar",{"v-avatar--start":o.start,"v-avatar--end":o.end},T.value,G.value,A.value,s.value,m.value,L.value,o.class],style:[V.value,h.value,o.style]},{default:()=>{var l;return[o.image?ct(Y6,{key:"image",src:o.image,alt:"",cover:!0},null):o.icon?ct(js,{key:"icon",icon:o.icon},null):(l=y.default)==null?void 0:l.call(y),K6(!1,"v-avatar")]}})),{}}});const pse=Symbol.for("vuetify:v-chip-group"),gme=Br({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:b3},...ts(),...$q({selectedClass:"v-chip--selected"}),...mc(),...Gc(),...D2({variant:"tonal"})},"VChipGroup");Go()({name:"VChipGroup",props:gme(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y}=b;const{themeClasses:T}=Uu(o),{isSelected:G,select:V,next:L,prev:A,selected:s}=Iq(o,pse);return R0({VChip:{color:Xo(o,"color"),disabled:Xo(o,"disabled"),filter:Xo(o,"filter"),variant:Xo(o,"variant")}}),ga(()=>ct(o.tag,{class:["v-chip-group",{"v-chip-group--column":o.column},T.value,o.class],style:o.style},{default:()=>{var m;return[(m=y.default)==null?void 0:m.call(y,{isSelected:G,select:V,next:L,prev:A,selected:s.value})]}})),{}}});const pme=Br({activeClass:String,appendAvatar:String,appendIcon:vi,closable:Boolean,closeIcon:{type:vi,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:vi,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:M0(),onClickOnce:M0(),...S3(),...ts(),...Lp(),...Wy(),...Oq(),...Tg(),...sH(),...J6(),...mc({tag:"span"}),...Gc(),...D2({variant:"tonal"})},"VChip"),wE=Go()({name:"VChip",directives:{Ripple:k3},props:pme(),emits:{"click:close":o=>!0,"update:modelValue":o=>!0,"group:selected":o=>!0,click:o=>!0},setup(o,b){let{attrs:y,emit:T,slots:G}=b;const{t:V}=L2(),{borderClasses:L}=T3(o),{colorClasses:A,colorStyles:s,variantClasses:m}=X6(o),{densityClasses:h}=L0(o),{elevationClasses:l}=Gy(o),{roundedClasses:c}=kg(o),{sizeClasses:i}=Q6(o),{themeClasses:u}=Uu(o),d=ri(o,"modelValue"),g=Pq(o,pse,!1),v=aH(o,y),x=on(()=>o.link!==!1&&v.isLink.value),C=on(()=>!o.disabled&&o.link!==!1&&(!!g||o.link||v.isClickable.value)),_=on(()=>({"aria-label":V(o.closeLabel),onClick(O){O.stopPropagation(),d.value=!1,T("click:close",O)}}));function $(O){var D;T("click",O),C.value&&((D=v.navigate)==null||D.call(v,O),g==null||g.toggle())}function S(O){(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),$(O))}return()=>{const O=v.isLink.value?"a":o.tag,D=!!(o.appendIcon||o.appendAvatar),N=!!(D||G.append),M=!!(G.close||o.closable),k=!!(G.filter||o.filter)&&g,R=!!(o.prependIcon||o.prependAvatar),F=!!(R||G.prepend),H=!g||g.isSelected.value;return d.value&&lu(ct(O,{class:["v-chip",{"v-chip--disabled":o.disabled,"v-chip--label":o.label,"v-chip--link":C.value,"v-chip--filter":k,"v-chip--pill":o.pill},u.value,L.value,H?A.value:void 0,h.value,l.value,c.value,i.value,m.value,g==null?void 0:g.selectedClass.value,o.class],style:[H?s.value:void 0,o.style],disabled:o.disabled||void 0,draggable:o.draggable,href:v.href.value,tabindex:C.value?0:void 0,onClick:$,onKeydown:C.value&&!x.value&&S},{default:()=>{var j;return[K6(C.value,"v-chip"),k&&ct(Wae,{key:"filter"},{default:()=>[lu(ct("div",{class:"v-chip__filter"},[G.filter?ct(Ac,{key:"filter-defaults",disabled:!o.filterIcon,defaults:{VIcon:{icon:o.filterIcon}}},G.filter):ct(js,{key:"filter-icon",icon:o.filterIcon},null)]),[[R2,g.isSelected.value]])]}),F&&ct("div",{key:"prepend",class:"v-chip__prepend"},[G.prepend?ct(Ac,{key:"prepend-defaults",disabled:!R,defaults:{VAvatar:{image:o.prependAvatar,start:!0},VIcon:{icon:o.prependIcon,start:!0}}},G.prepend):ct(Uo,null,[o.prependIcon&&ct(js,{key:"prepend-icon",icon:o.prependIcon,start:!0},null),o.prependAvatar&&ct(RE,{key:"prepend-avatar",image:o.prependAvatar,start:!0},null)])]),ct("div",{class:"v-chip__content"},[((j=G.default)==null?void 0:j.call(G,{isSelected:g==null?void 0:g.isSelected.value,selectedClass:g==null?void 0:g.selectedClass.value,select:g==null?void 0:g.select,toggle:g==null?void 0:g.toggle,value:g==null?void 0:g.value.value,disabled:o.disabled}))??o.text]),N&&ct("div",{key:"append",class:"v-chip__append"},[G.append?ct(Ac,{key:"append-defaults",disabled:!D,defaults:{VAvatar:{end:!0,image:o.appendAvatar},VIcon:{end:!0,icon:o.appendIcon}}},G.append):ct(Uo,null,[o.appendIcon&&ct(js,{key:"append-icon",end:!0,icon:o.appendIcon},null),o.appendAvatar&&ct(RE,{key:"append-avatar",end:!0,image:o.appendAvatar},null)])]),M&&ct("div",Jo({key:"close",class:"v-chip__close"},_.value),[G.close?ct(Ac,{key:"close-defaults",defaults:{VIcon:{icon:o.closeIcon,size:"x-small"}}},G.close):ct(js,{key:"close-icon",icon:o.closeIcon,size:"x-small"},null)])]}}),[[_p("ripple"),C.value&&o.ripple,null]])}}});const MQ=Symbol.for("vuetify:list");function vse(){const o=ni(MQ,{hasPrepend:xa(!1),updateHasPrepend:()=>null}),b={hasPrepend:xa(!1),updateHasPrepend:y=>{y&&(b.hasPrepend.value=y)}};return Gl(MQ,b),o}function yse(){return ni(MQ,null)}const vme={open:o=>{let{id:b,value:y,opened:T,parents:G}=o;if(y){const V=new Set;V.add(b);let L=G.get(b);for(;L!=null;)V.add(L),L=G.get(L);return V}else return T.delete(b),T},select:()=>null},bse={open:o=>{let{id:b,value:y,opened:T,parents:G}=o;if(y){let V=G.get(b);for(T.add(b);V!=null&&V!==b;)T.add(V),V=G.get(V);return T}else T.delete(b);return T},select:()=>null},yme={open:bse.open,select:o=>{let{id:b,value:y,opened:T,parents:G}=o;if(!y)return T;const V=[];let L=G.get(b);for(;L!=null;)V.push(L),L=G.get(L);return new Set(V)}},Hq=o=>{const b={select:y=>{let{id:T,value:G,selected:V}=y;if(T=ds(T),o&&!G){const L=Array.from(V.entries()).reduce((A,s)=>{let[m,h]=s;return h==="on"?[...A,m]:A},[]);if(L.length===1&&L[0]===T)return V}return V.set(T,G?"on":"off"),V},in:(y,T,G)=>{let V=new Map;for(const L of y||[])V=b.select({id:L,value:!0,selected:new Map(V),children:T,parents:G});return V},out:y=>{const T=[];for(const[G,V]of y.entries())V==="on"&&T.push(G);return T}};return b},xse=o=>{const b=Hq(o);return{select:T=>{let{selected:G,id:V,...L}=T;V=ds(V);const A=G.has(V)?new Map([[V,G.get(V)]]):new Map;return b.select({...L,id:V,selected:A})},in:(T,G,V)=>{let L=new Map;return T!=null&&T.length&&(L=b.in(T.slice(0,1),G,V)),L},out:(T,G,V)=>b.out(T,G,V)}},bme=o=>{const b=Hq(o);return{select:T=>{let{id:G,selected:V,children:L,...A}=T;return G=ds(G),L.has(G)?V:b.select({id:G,selected:V,children:L,...A})},in:b.in,out:b.out}},xme=o=>{const b=xse(o);return{select:T=>{let{id:G,selected:V,children:L,...A}=T;return G=ds(G),L.has(G)?V:b.select({id:G,selected:V,children:L,...A})},in:b.in,out:b.out}},wme=o=>{const b={select:y=>{let{id:T,value:G,selected:V,children:L,parents:A}=y;T=ds(T);const s=new Map(V),m=[T];for(;m.length;){const l=m.shift();V.set(l,G?"on":"off"),L.has(l)&&m.push(...L.get(l))}let h=A.get(T);for(;h;){const l=L.get(h),c=l.every(u=>V.get(u)==="on"),i=l.every(u=>!V.has(u)||V.get(u)==="off");V.set(h,c?"on":i?"off":"indeterminate"),h=A.get(h)}return o&&!G&&Array.from(V.entries()).reduce((c,i)=>{let[u,d]=i;return d==="on"?[...c,u]:c},[]).length===0?s:V},in:(y,T,G)=>{let V=new Map;for(const L of y||[])V=b.select({id:L,value:!0,selected:new Map(V),children:T,parents:G});return V},out:(y,T)=>{const G=[];for(const[V,L]of y.entries())L==="on"&&!T.has(V)&&G.push(V);return G}};return b},H6=Symbol.for("vuetify:nested"),wse={id:xa(),root:{register:()=>null,unregister:()=>null,parents:No(new Map),children:No(new Map),open:()=>null,openOnSelect:()=>null,select:()=>null,opened:No(new Set),selected:No(new Map),selectedValues:No([])}},Cme=Br({selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,selected:Array,mandatory:Boolean},"nested"),Sme=o=>{let b=!1;const y=No(new Map),T=No(new Map),G=ri(o,"opened",o.opened,l=>new Set(l),l=>[...l.values()]),V=on(()=>{if(typeof o.selectStrategy=="object")return o.selectStrategy;switch(o.selectStrategy){case"single-leaf":return xme(o.mandatory);case"leaf":return bme(o.mandatory);case"independent":return Hq(o.mandatory);case"single-independent":return xse(o.mandatory);case"classic":default:return wme(o.mandatory)}}),L=on(()=>{if(typeof o.openStrategy=="object")return o.openStrategy;switch(o.openStrategy){case"list":return yme;case"single":return vme;case"multiple":default:return bse}}),A=ri(o,"selected",o.selected,l=>V.value.in(l,y.value,T.value),l=>V.value.out(l,y.value,T.value));dm(()=>{b=!0});function s(l){const c=[];let i=l;for(;i!=null;)c.unshift(i),i=T.value.get(i);return c}const m=Vu("nested"),h={id:xa(),root:{opened:G,selected:A,selectedValues:on(()=>{const l=[];for(const[c,i]of A.value.entries())i==="on"&&l.push(c);return l}),register:(l,c,i)=>{c&&l!==c&&T.value.set(l,c),i&&y.value.set(l,[]),c!=null&&y.value.set(c,[...y.value.get(c)||[],l])},unregister:l=>{if(b)return;y.value.delete(l);const c=T.value.get(l);if(c){const i=y.value.get(c)??[];y.value.set(c,i.filter(u=>u!==l))}T.value.delete(l),G.value.delete(l)},open:(l,c,i)=>{m.emit("click:open",{id:l,value:c,path:s(l),event:i});const u=L.value.open({id:l,value:c,opened:new Set(G.value),children:y.value,parents:T.value,event:i});u&&(G.value=u)},openOnSelect:(l,c,i)=>{const u=L.value.select({id:l,value:c,selected:new Map(A.value),opened:new Set(G.value),children:y.value,parents:T.value,event:i});u&&(G.value=u)},select:(l,c,i)=>{m.emit("click:select",{id:l,value:c,path:s(l),event:i});const u=V.value.select({id:l,value:c,selected:new Map(A.value),children:y.value,parents:T.value,event:i});u&&(A.value=u),h.root.openOnSelect(l,c,i)},children:y,parents:T}};return Gl(H6,h),h.root},Cse=(o,b)=>{const y=ni(H6,wse),T=Symbol(Rp()),G=on(()=>o.value!==void 0?o.value:T),V={...y,id:G,open:(L,A)=>y.root.open(G.value,L,A),openOnSelect:(L,A)=>y.root.openOnSelect(G.value,L,A),isOpen:on(()=>y.root.opened.value.has(G.value)),parent:on(()=>y.root.parents.value.get(G.value)),select:(L,A)=>y.root.select(G.value,L,A),isSelected:on(()=>y.root.selected.value.get(ds(G.value))==="on"),isIndeterminate:on(()=>y.root.selected.value.get(G.value)==="indeterminate"),isLeaf:on(()=>!y.root.children.value.get(G.value)),isGroupActivator:y.isGroupActivator};return!y.isGroupActivator&&y.root.register(G.value,y.id.value,b),dm(()=>{!y.isGroupActivator&&y.root.unregister(G.value)}),b&&Gl(H6,V),V},Tme=()=>{const o=ni(H6,wse);Gl(H6,{...o,isGroupActivator:!0})},kme=IE({name:"VListGroupActivator",setup(o,b){let{slots:y}=b;return Tme(),()=>{var T;return(T=y.default)==null?void 0:T.call(y)}}}),Ame=Br({activeColor:String,baseColor:String,color:String,collapseIcon:{type:vi,default:"$collapse"},expandIcon:{type:vi,default:"$expand"},prependIcon:vi,appendIcon:vi,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ts(),...mc()},"VListGroup"),mre=Go()({name:"VListGroup",props:Ame(),setup(o,b){let{slots:y}=b;const{isOpen:T,open:G,id:V}=Cse(Xo(o,"value"),!0),L=on(()=>`v-list-group--id-${String(V.value)}`),A=yse(),{isBooted:s}=Dq();function m(i){G(!T.value,i)}const h=on(()=>({onClick:m,class:"v-list-group__header",id:L.value})),l=on(()=>T.value?o.collapseIcon:o.expandIcon),c=on(()=>({VListItem:{active:T.value,activeColor:o.activeColor,baseColor:o.baseColor,color:o.color,prependIcon:o.prependIcon||o.subgroup&&l.value,appendIcon:o.appendIcon||!o.subgroup&&l.value,title:o.title,value:o.value}}));return ga(()=>ct(o.tag,{class:["v-list-group",{"v-list-group--prepend":A==null?void 0:A.hasPrepend.value,"v-list-group--fluid":o.fluid,"v-list-group--subgroup":o.subgroup,"v-list-group--open":T.value},o.class],style:o.style},{default:()=>[y.activator&&ct(Ac,{defaults:c.value},{default:()=>[ct(kme,null,{default:()=>[y.activator({props:h.value,isOpen:T.value})]})]}),ct(T2,{transition:{component:_q},disabled:!s.value},{default:()=>{var i;return[lu(ct("div",{class:"v-list-group__items",role:"group","aria-labelledby":L.value},[(i=y.default)==null?void 0:i.call(y)]),[[R2,T.value]])]}})]})),{}}});const Mme=NE("v-list-item-subtitle"),Eme=NE("v-list-item-title"),_me=Br({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:vi,baseColor:String,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:vi,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number,Boolean],title:[String,Number,Boolean],value:null,onClick:M0(),onClickOnce:M0(),...S3(),...ts(),...Lp(),...x3(),...Wy(),...Tg(),...sH(),...mc(),...Gc(),...D2({variant:"text"})},"VListItem"),fm=Go()({name:"VListItem",directives:{Ripple:k3},props:_me(),emits:{click:o=>!0},setup(o,b){let{attrs:y,slots:T,emit:G}=b;const V=aH(o,y),L=on(()=>o.value===void 0?V.href.value:o.value),{select:A,isSelected:s,isIndeterminate:m,isGroupActivator:h,root:l,parent:c,openOnSelect:i}=Cse(L,!1),u=yse(),d=on(()=>{var J;return o.active!==!1&&(o.active||((J=V.isActive)==null?void 0:J.value)||s.value)}),g=on(()=>o.link!==!1&&V.isLink.value),v=on(()=>!o.disabled&&o.link!==!1&&(o.link||V.isClickable.value||o.value!=null&&!!u)),x=on(()=>o.rounded||o.nav),C=on(()=>o.color??o.activeColor),_=on(()=>({color:d.value?C.value??o.baseColor:o.baseColor,variant:o.variant}));ta(()=>{var J;return(J=V.isActive)==null?void 0:J.value},J=>{J&&c.value!=null&&l.open(c.value,!0),J&&i(J)},{immediate:!0});const{themeClasses:$}=Uu(o),{borderClasses:S}=T3(o),{colorClasses:O,colorStyles:D,variantClasses:N}=X6(_),{densityClasses:M}=L0(o),{dimensionStyles:k}=w3(o),{elevationClasses:R}=Gy(o),{roundedClasses:F}=kg(x),H=on(()=>o.lines?`v-list-item--${o.lines}-line`:void 0),j=on(()=>({isActive:d.value,select:A,isSelected:s.value,isIndeterminate:m.value}));function P(J){var K;G("click",J),!(h||!v.value)&&((K=V.navigate)==null||K.call(V,J),o.value!=null&&A(!s.value,J))}function ee(J){(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),P(J))}return ga(()=>{const J=g.value?"a":o.tag,K=T.title||o.title,ae=T.subtitle||o.subtitle,Q=!!(o.appendAvatar||o.appendIcon),he=!!(Q||T.append),ge=!!(o.prependAvatar||o.prependIcon),Se=!!(ge||T.prepend);return u==null||u.updateHasPrepend(Se),o.activeColor&&Pde("active-color",["color","base-color"]),lu(ct(J,{class:["v-list-item",{"v-list-item--active":d.value,"v-list-item--disabled":o.disabled,"v-list-item--link":v.value,"v-list-item--nav":o.nav,"v-list-item--prepend":!Se&&(u==null?void 0:u.hasPrepend.value),[`${o.activeClass}`]:o.activeClass&&d.value},$.value,S.value,O.value,M.value,R.value,H.value,F.value,N.value,o.class],style:[D.value,k.value,o.style],href:V.href.value,tabindex:v.value?u?-2:0:void 0,onClick:P,onKeydown:v.value&&!g.value&&ee},{default:()=>{var ce;return[K6(v.value||d.value,"v-list-item"),Se&&ct("div",{key:"prepend",class:"v-list-item__prepend"},[T.prepend?ct(Ac,{key:"prepend-defaults",disabled:!ge,defaults:{VAvatar:{density:o.density,image:o.prependAvatar},VIcon:{density:o.density,icon:o.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var ne;return[(ne=T.prepend)==null?void 0:ne.call(T,j.value)]}}):ct(Uo,null,[o.prependAvatar&&ct(RE,{key:"prepend-avatar",density:o.density,image:o.prependAvatar},null),o.prependIcon&&ct(js,{key:"prepend-icon",density:o.density,icon:o.prependIcon},null)]),ct("div",{class:"v-list-item__spacer"},null)]),ct("div",{class:"v-list-item__content","data-no-activator":""},[K&&ct(Eme,{key:"title"},{default:()=>{var ne;return[((ne=T.title)==null?void 0:ne.call(T,{title:o.title}))??o.title]}}),ae&&ct(Mme,{key:"subtitle"},{default:()=>{var ne;return[((ne=T.subtitle)==null?void 0:ne.call(T,{subtitle:o.subtitle}))??o.subtitle]}}),(ce=T.default)==null?void 0:ce.call(T,j.value)]),he&&ct("div",{key:"append",class:"v-list-item__append"},[T.append?ct(Ac,{key:"append-defaults",disabled:!Q,defaults:{VAvatar:{density:o.density,image:o.appendAvatar},VIcon:{density:o.density,icon:o.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var ne;return[(ne=T.append)==null?void 0:ne.call(T,j.value)]}}):ct(Uo,null,[o.appendIcon&&ct(js,{key:"append-icon",density:o.density,icon:o.appendIcon},null),o.appendAvatar&&ct(RE,{key:"append-avatar",density:o.density,image:o.appendAvatar},null)]),ct("div",{class:"v-list-item__spacer"},null)])]}}),[[_p("ripple"),v.value&&o.ripple]])}),{}}}),Rme=Br({color:String,inset:Boolean,sticky:Boolean,title:String,...ts(),...mc()},"VListSubheader"),Lme=Go()({name:"VListSubheader",props:Rme(),setup(o,b){let{slots:y}=b;const{textColorClasses:T,textColorStyles:G}=xg(Xo(o,"color"));return ga(()=>{const V=!!(y.default||o.title);return ct(o.tag,{class:["v-list-subheader",{"v-list-subheader--inset":o.inset,"v-list-subheader--sticky":o.sticky},T.value,o.class],style:[{textColorStyles:G},o.style]},{default:()=>{var L;return[V&&ct("div",{class:"v-list-subheader__text"},[((L=y.default)==null?void 0:L.call(y))??o.title])]}})}),{}}});const Dme=Br({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...ts(),...Gc()},"VDivider"),$me=Go()({name:"VDivider",props:Dme(),setup(o,b){let{attrs:y}=b;const{themeClasses:T}=Uu(o),{textColorClasses:G,textColorStyles:V}=xg(Xo(o,"color")),L=on(()=>{const A={};return o.length&&(A[o.vertical?"maxHeight":"maxWidth"]=ra(o.length)),o.thickness&&(A[o.vertical?"borderRightWidth":"borderTopWidth"]=ra(o.thickness)),A});return ga(()=>ct("hr",{class:[{"v-divider":!0,"v-divider--inset":o.inset,"v-divider--vertical":o.vertical},T.value,G.value,o.class],style:[L.value,V.value,o.style],"aria-orientation":!y.role||y.role==="separator"?o.vertical?"vertical":"horizontal":void 0,role:`${y.role||"separator"}`},null)),{}}}),Ome=Br({items:Array,returnObject:Boolean},"VListChildren"),Sse=Go()({name:"VListChildren",props:Ome(),setup(o,b){let{slots:y}=b;return vse(),()=>{var T,G;return((T=y.default)==null?void 0:T.call(y))??((G=o.items)==null?void 0:G.map(V=>{var i,u;let{children:L,props:A,type:s,raw:m}=V;if(s==="divider")return((i=y.divider)==null?void 0:i.call(y,{props:A}))??ct($me,A,null);if(s==="subheader")return((u=y.subheader)==null?void 0:u.call(y,{props:A}))??ct(Lme,A,null);const h={subtitle:y.subtitle?d=>{var g;return(g=y.subtitle)==null?void 0:g.call(y,{...d,item:m})}:void 0,prepend:y.prepend?d=>{var g;return(g=y.prepend)==null?void 0:g.call(y,{...d,item:m})}:void 0,append:y.append?d=>{var g;return(g=y.append)==null?void 0:g.call(y,{...d,item:m})}:void 0,title:y.title?d=>{var g;return(g=y.title)==null?void 0:g.call(y,{...d,item:m})}:void 0},[l,c]=mre.filterProps(A);return L?ct(mre,Jo({value:A==null?void 0:A.value},l),{activator:d=>{let{props:g}=d;const v={...A,...g,value:o.returnObject?m:A.value};return y.header?y.header({props:v}):ct(fm,v,h)},default:()=>ct(Sse,{items:L},y)}):y.item?y.item({props:A}):ct(fm,Jo(A,{value:o.returnObject?m:A.value}),h)}))}}}),Tse=Br({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:b3}},"list-items");function h3(o,b){const y=lh(b,o.itemTitle,b),T=lh(b,o.itemValue,y),G=lh(b,o.itemChildren),V=o.itemProps===!0?typeof b=="object"&&b!=null&&!Array.isArray(b)?"children"in b?ME(b,["children"])[1]:b:void 0:lh(b,o.itemProps),L={title:y,value:T,...V};return{title:String(L.title??""),value:L.value,props:L,children:Array.isArray(G)?kse(o,G):void 0,raw:b}}function kse(o,b){const y=[];for(const T of b)y.push(h3(o,T));return y}function zq(o){const b=on(()=>kse(o,o.items)),y=on(()=>b.value.some(V=>V.value===null));function T(V){return y.value||(V=V.filter(L=>L!==null)),V.map(L=>o.returnObject&&typeof L=="string"?h3(o,L):b.value.find(A=>o.valueComparator(L,A.value))||h3(o,L))}function G(V){return o.returnObject?V.map(L=>{let{raw:A}=L;return A}):V.map(L=>{let{value:A}=L;return A})}return{items:b,transformIn:T,transformOut:G}}function Pme(o){return typeof o=="string"||typeof o=="number"||typeof o=="boolean"}function Ime(o,b){const y=lh(b,o.itemType,"item"),T=Pme(b)?b:lh(b,o.itemTitle),G=lh(b,o.itemValue,void 0),V=lh(b,o.itemChildren),L=o.itemProps===!0?ME(b,["children"])[1]:lh(b,o.itemProps),A={title:T,value:G,...L};return{type:y,title:A.title,value:A.value,props:A,children:y==="item"&&V?Ase(o,V):void 0,raw:b}}function Ase(o,b){const y=[];for(const T of b)y.push(Ime(o,T));return y}function Nme(o){return{items:on(()=>Ase(o,o.items))}}const Fme=Br({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,lines:{type:[Boolean,String],default:"one"},nav:Boolean,...Cme({selectStrategy:"single-leaf",openStrategy:"list"}),...S3(),...ts(),...Lp(),...x3(),...Wy(),itemType:{type:String,default:"type"},...Tse(),...Tg(),...mc(),...Gc(),...D2({variant:"text"})},"VList"),$2=Go()({name:"VList",props:Fme(),emits:{"update:selected":o=>!0,"update:opened":o=>!0,"click:open":o=>!0,"click:select":o=>!0},setup(o,b){let{slots:y}=b;const{items:T}=Nme(o),{themeClasses:G}=Uu(o),{backgroundColorClasses:V,backgroundColorStyles:L}=wg(Xo(o,"bgColor")),{borderClasses:A}=T3(o),{densityClasses:s}=L0(o),{dimensionStyles:m}=w3(o),{elevationClasses:h}=Gy(o),{roundedClasses:l}=kg(o),{open:c,select:i}=Sme(o),u=on(()=>o.lines?`v-list--${o.lines}-line`:void 0),d=Xo(o,"activeColor"),g=Xo(o,"baseColor"),v=Xo(o,"color");vse(),R0({VListGroup:{activeColor:d,baseColor:g,color:v},VListItem:{activeClass:Xo(o,"activeClass"),activeColor:d,baseColor:g,color:v,density:Xo(o,"density"),disabled:Xo(o,"disabled"),lines:Xo(o,"lines"),nav:Xo(o,"nav"),variant:Xo(o,"variant")}});const x=xa(!1),C=No();function _(N){x.value=!0}function $(N){x.value=!1}function S(N){var M;!x.value&&!(N.relatedTarget&&((M=C.value)!=null&&M.contains(N.relatedTarget)))&&D()}function O(N){if(C.value){if(N.key==="ArrowDown")D("next");else if(N.key==="ArrowUp")D("prev");else if(N.key==="Home")D("first");else if(N.key==="End")D("last");else return;N.preventDefault()}}function D(N){if(C.value)return CB(C.value,N)}return ga(()=>ct(o.tag,{ref:C,class:["v-list",{"v-list--disabled":o.disabled,"v-list--nav":o.nav},G.value,V.value,A.value,s.value,h.value,u.value,l.value,o.class],style:[L.value,m.value,o.style],tabindex:o.disabled||x.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:_,onFocusout:$,onFocus:S,onKeydown:O},{default:()=>[ct(Sse,{items:T.value,returnObject:o.returnObject},y)]})),{open:c,select:i,focus:D}}});function XJ(o,b){return{x:o.x+b.x,y:o.y+b.y}}function Bme(o,b){return{x:o.x-b.x,y:o.y-b.y}}function gre(o,b){if(o.side==="top"||o.side==="bottom"){const{side:y,align:T}=o,G=T==="left"?0:T==="center"?b.width/2:T==="right"?b.width:T,V=y==="top"?0:y==="bottom"?b.height:y;return XJ({x:G,y:V},b)}else if(o.side==="left"||o.side==="right"){const{side:y,align:T}=o,G=y==="left"?0:y==="right"?b.width:y,V=T==="top"?0:T==="center"?b.height/2:T==="bottom"?b.height:T;return XJ({x:G,y:V},b)}return XJ({x:b.width/2,y:b.height/2},b)}const Mse={static:Vme,connected:Wme},Hme=Br({locationStrategy:{type:[String,Function],default:"static",validator:o=>typeof o=="function"||o in Mse},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function zme(o,b){const y=No({}),T=No();yl&&(E2(()=>!!(b.isActive.value&&o.locationStrategy),V=>{var L,A;ta(()=>o.locationStrategy,V),ch(()=>{T.value=void 0}),typeof o.locationStrategy=="function"?T.value=(L=o.locationStrategy(b,o,y))==null?void 0:L.updateLocation:T.value=(A=Mse[o.locationStrategy](b,o,y))==null?void 0:A.updateLocation}),window.addEventListener("resize",G,{passive:!0}),ch(()=>{window.removeEventListener("resize",G),T.value=void 0}));function G(V){var L;(L=T.value)==null||L.call(T,V)}return{contentStyles:y,updateLocation:T}}function Vme(){}function Ume(o,b){b?o.style.removeProperty("left"):o.style.removeProperty("right");const y=Tq(o);return b?y.x+=parseFloat(o.style.right||0):y.x-=parseFloat(o.style.left||0),y.y-=parseFloat(o.style.top||0),y}function Wme(o,b,y){rhe(o.activatorEl.value)&&Object.assign(y.value,{position:"fixed",top:0,[o.isRtl.value?"right":"left"]:0});const{preferredAnchor:G,preferredOrigin:V}=Sq(()=>{const u=SQ(b.location,o.isRtl.value),d=b.origin==="overlap"?u:b.origin==="auto"?ZJ(u):SQ(b.origin,o.isRtl.value);return u.side===d.side&&u.align===jJ(d).align?{preferredAnchor:Hne(u),preferredOrigin:Hne(d)}:{preferredAnchor:u,preferredOrigin:d}}),[L,A,s,m]=["minWidth","minHeight","maxWidth","maxHeight"].map(u=>on(()=>{const d=parseFloat(b[u]);return isNaN(d)?1/0:d})),h=on(()=>{if(Array.isArray(b.offset))return b.offset;if(typeof b.offset=="string"){const u=b.offset.split(" ").map(parseFloat);return u.length<2&&u.push(0),u}return typeof b.offset=="number"?[b.offset,0]:[0,0]});let l=!1;const c=new ResizeObserver(()=>{l&&i()});ta([o.activatorEl,o.contentEl],(u,d)=>{let[g,v]=u,[x,C]=d;x&&c.unobserve(x),g&&c.observe(g),C&&c.unobserve(C),v&&c.observe(v)},{immediate:!0}),ch(()=>{c.disconnect()});function i(){if(l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>l=!0)}),!o.activatorEl.value||!o.contentEl.value)return;const u=o.activatorEl.value.getBoundingClientRect(),d=Ume(o.contentEl.value,o.isRtl.value),g=kB(o.contentEl.value),v=12;g.length||(g.push(document.documentElement),o.contentEl.value.style.top&&o.contentEl.value.style.left||(d.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),d.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const x=g.reduce((k,R)=>{const F=R.getBoundingClientRect(),H=new xE({x:R===document.documentElement?0:F.x,y:R===document.documentElement?0:F.y,width:R.clientWidth,height:R.clientHeight});return k?new xE({x:Math.max(k.left,H.left),y:Math.max(k.top,H.top),width:Math.min(k.right,H.right)-Math.max(k.left,H.left),height:Math.min(k.bottom,H.bottom)-Math.max(k.top,H.top)}):H},void 0);x.x+=v,x.y+=v,x.width-=v*2,x.height-=v*2;let C={anchor:G.value,origin:V.value};function _(k){const R=new xE(d),F=gre(k.anchor,u),H=gre(k.origin,R);let{x:j,y:P}=Bme(F,H);switch(k.anchor.side){case"top":P-=h.value[0];break;case"bottom":P+=h.value[0];break;case"left":j-=h.value[0];break;case"right":j+=h.value[0];break}switch(k.anchor.align){case"top":P-=h.value[1];break;case"bottom":P+=h.value[1];break;case"left":j-=h.value[1];break;case"right":j+=h.value[1];break}return R.x+=j,R.y+=P,R.width=Math.min(R.width,s.value),R.height=Math.min(R.height,m.value),{overflows:Vne(R,x),x:j,y:P}}let $=0,S=0;const O={x:0,y:0},D={x:!1,y:!1};let N=-1;for(;!(N++>10);){const{x:k,y:R,overflows:F}=_(C);$+=k,S+=R,d.x+=k,d.y+=R;{const H=zne(C.anchor),j=F.x.before||F.x.after,P=F.y.before||F.y.after;let ee=!1;if(["x","y"].forEach(J=>{if(J==="x"&&j&&!D.x||J==="y"&&P&&!D.y){const K={anchor:{...C.anchor},origin:{...C.origin}},ae=J==="x"?H==="y"?jJ:ZJ:H==="y"?ZJ:jJ;K.anchor=ae(K.anchor),K.origin=ae(K.origin);const{overflows:Q}=_(K);(Q[J].before<=F[J].before&&Q[J].after<=F[J].after||Q[J].before+Q[J].after<(F[J].before+F[J].after)/2)&&(C=K,ee=D[J]=!0)}}),ee)continue}F.x.before&&($+=F.x.before,d.x+=F.x.before),F.x.after&&($-=F.x.after,d.x-=F.x.after),F.y.before&&(S+=F.y.before,d.y+=F.y.before),F.y.after&&(S-=F.y.after,d.y-=F.y.after);{const H=Vne(d,x);O.x=x.width-H.x.before-H.x.after,O.y=x.height-H.y.before-H.y.after,$+=H.x.before,d.x+=H.x.before,S+=H.y.before,d.y+=H.y.before}break}const M=zne(C.anchor);return Object.assign(y.value,{"--v-overlay-anchor-origin":`${C.anchor.side} ${C.anchor.align}`,transformOrigin:`${C.origin.side} ${C.origin.align}`,top:ra(JJ(S)),left:o.isRtl.value?void 0:ra(JJ($)),right:o.isRtl.value?ra(JJ(-$)):void 0,minWidth:ra(M==="y"?Math.min(L.value,u.width):L.value),maxWidth:ra(pre(yg(O.x,L.value===1/0?0:L.value,s.value))),maxHeight:ra(pre(yg(O.y,A.value===1/0?0:A.value,m.value)))}),{available:O,contentBox:d}}return ta(()=>[G.value,V.value,b.offset,b.minWidth,b.minHeight,b.maxWidth,b.maxHeight],()=>i()),Ll(()=>{const u=i();if(!u)return;const{available:d,contentBox:g}=u;g.height>d.y&&requestAnimationFrame(()=>{i(),requestAnimationFrame(()=>{i()})})}),{updateLocation:i}}function JJ(o){return Math.round(o*devicePixelRatio)/devicePixelRatio}function pre(o){return Math.ceil(o*devicePixelRatio)/devicePixelRatio}let EQ=!0;const RB=[];function Gme(o){!EQ||RB.length?(RB.push(o),_Q()):(EQ=!1,o(),_Q())}let vre=-1;function _Q(){cancelAnimationFrame(vre),vre=requestAnimationFrame(()=>{const o=RB.shift();o&&o(),RB.length?_Q():EQ=!0})}const uB={none:null,close:Yme,block:Kme,reposition:Xme},Zme=Br({scrollStrategy:{type:[String,Function],default:"block",validator:o=>typeof o=="function"||o in uB}},"VOverlay-scroll-strategies");function jme(o,b){if(!yl)return;let y;fh(async()=>{y==null||y.stop(),b.isActive.value&&o.scrollStrategy&&(y=XQ(),await Ll(),y.active&&y.run(()=>{var T;typeof o.scrollStrategy=="function"?o.scrollStrategy(b,o,y):(T=uB[o.scrollStrategy])==null||T.call(uB,b,o,y)}))}),ch(()=>{y==null||y.stop()})}function Yme(o){function b(y){o.isActive.value=!1}Ese(o.activatorEl.value??o.contentEl.value,b)}function Kme(o,b){var L;const y=(L=o.root.value)==null?void 0:L.offsetParent,T=[...new Set([...kB(o.activatorEl.value,b.contained?y:void 0),...kB(o.contentEl.value,b.contained?y:void 0)])].filter(A=>!A.classList.contains("v-overlay-scroll-blocked")),G=window.innerWidth-document.documentElement.offsetWidth,V=(A=>Mq(A)&&A)(y||document.documentElement);V&&o.root.value.classList.add("v-overlay--scroll-blocked"),T.forEach((A,s)=>{A.style.setProperty("--v-body-scroll-x",ra(-A.scrollLeft)),A.style.setProperty("--v-body-scroll-y",ra(-A.scrollTop)),A!==document.documentElement&&A.style.setProperty("--v-scrollbar-offset",ra(G)),A.classList.add("v-overlay-scroll-blocked")}),ch(()=>{T.forEach((A,s)=>{const m=parseFloat(A.style.getPropertyValue("--v-body-scroll-x")),h=parseFloat(A.style.getPropertyValue("--v-body-scroll-y"));A.style.removeProperty("--v-body-scroll-x"),A.style.removeProperty("--v-body-scroll-y"),A.style.removeProperty("--v-scrollbar-offset"),A.classList.remove("v-overlay-scroll-blocked"),A.scrollLeft=-m,A.scrollTop=-h}),V&&o.root.value.classList.remove("v-overlay--scroll-blocked")})}function Xme(o,b,y){let T=!1,G=-1,V=-1;function L(A){Gme(()=>{var h,l;const s=performance.now();(l=(h=o.updateLocation).value)==null||l.call(h,A),T=(performance.now()-s)/(1e3/60)>2})}V=(typeof requestIdleCallback>"u"?A=>A():requestIdleCallback)(()=>{y.run(()=>{Ese(o.activatorEl.value??o.contentEl.value,A=>{T?(cancelAnimationFrame(G),G=requestAnimationFrame(()=>{G=requestAnimationFrame(()=>{L(A)})})):L(A)})})}),ch(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(V),cancelAnimationFrame(G)})}function Ese(o,b){const y=[document,...kB(o)];y.forEach(T=>{T.addEventListener("scroll",b,{passive:!0})}),ch(()=>{y.forEach(T=>{T.removeEventListener("scroll",b)})})}const RQ=Symbol.for("vuetify:v-menu"),Jme=Br({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function Qme(o,b){const y={},T=G=>()=>{if(!yl)return Promise.resolve(!0);const V=G==="openDelay";return y.closeDelay&&window.clearTimeout(y.closeDelay),delete y.closeDelay,y.openDelay&&window.clearTimeout(y.openDelay),delete y.openDelay,new Promise(L=>{const A=parseInt(o[G]??0,10);y[G]=window.setTimeout(()=>{b==null||b(V),L(V)},A)})};return{runCloseDelay:T("closeDelay"),runOpenDelay:T("openDelay")}}const qme=Br({activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...Jme()},"VOverlay-activator");function ege(o,b){let{isActive:y,isTop:T}=b;const G=No();let V=!1,L=!1,A=!0;const s=on(()=>o.openOnFocus||o.openOnFocus==null&&o.openOnHover),m=on(()=>o.openOnClick||o.openOnClick==null&&!o.openOnHover&&!s.value),{runOpenDelay:h,runCloseDelay:l}=Qme(o,C=>{C===(o.openOnHover&&V||s.value&&L)&&!(o.openOnHover&&y.value&&!T.value)&&(y.value!==C&&(A=!0),y.value=C)}),c={onClick:C=>{C.stopPropagation(),G.value=C.currentTarget||C.target,y.value=!y.value},onMouseenter:C=>{var _;(_=C.sourceCapabilities)!=null&&_.firesTouchEvents||(V=!0,G.value=C.currentTarget||C.target,h())},onMouseleave:C=>{V=!1,l()},onFocus:C=>{EE(C.target,":focus-visible")!==!1&&(L=!0,C.stopPropagation(),G.value=C.currentTarget||C.target,h())},onBlur:C=>{L=!1,C.stopPropagation(),l()}},i=on(()=>{const C={};return m.value&&(C.onClick=c.onClick),o.openOnHover&&(C.onMouseenter=c.onMouseenter,C.onMouseleave=c.onMouseleave),s.value&&(C.onFocus=c.onFocus,C.onBlur=c.onBlur),C}),u=on(()=>{const C={};if(o.openOnHover&&(C.onMouseenter=()=>{V=!0,h()},C.onMouseleave=()=>{V=!1,l()}),s.value&&(C.onFocusin=()=>{L=!0,h()},C.onFocusout=()=>{L=!1,l()}),o.closeOnContentClick){const _=ni(RQ,null);C.onClick=()=>{y.value=!1,_==null||_.closeParents()}}return C}),d=on(()=>{const C={};return o.openOnHover&&(C.onMouseenter=()=>{A&&(V=!0,A=!1,h())},C.onMouseleave=()=>{V=!1,l()}),C});ta(T,C=>{C&&(o.openOnHover&&!V&&(!s.value||!L)||s.value&&!L&&(!o.openOnHover||!V))&&(y.value=!1)});const g=No();fh(()=>{g.value&&Ll(()=>{G.value=CQ(g.value)})});const v=Vu("useActivator");let x;return ta(()=>!!o.activator,C=>{C&&yl?(x=XQ(),x.run(()=>{tge(o,v,{activatorEl:G,activatorEvents:i})})):x&&x.stop()},{flush:"post",immediate:!0}),ch(()=>{x==null||x.stop()}),{activatorEl:G,activatorRef:g,activatorEvents:i,contentEvents:u,scrimEvents:d}}function tge(o,b,y){let{activatorEl:T,activatorEvents:G}=y;ta(()=>o.activator,(s,m)=>{if(m&&s!==m){const h=A(m);h&&L(h)}s&&Ll(()=>V())},{immediate:!0}),ta(()=>o.activatorProps,()=>{V()}),ch(()=>{L()});function V(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A(),m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.activatorProps;s&&Ade(s,Jo(G.value,m))}function L(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A(),m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.activatorProps;s&&Mde(s,Jo(G.value,m))}function A(){var h,l;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o.activator,m;if(s)if(s==="parent"){let c=(l=(h=b==null?void 0:b.proxy)==null?void 0:h.$el)==null?void 0:l.parentNode;for(;c!=null&&c.hasAttribute("data-no-activator");)c=c.parentNode;m=c}else typeof s=="string"?m=document.querySelector(s):"$el"in s?m=s.$el:m=s;return T.value=(m==null?void 0:m.nodeType)===Node.ELEMENT_NODE?m:null,T.value}}const uH=["sm","md","lg","xl","xxl"],LQ=Symbol.for("vuetify:display"),yre={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},nge=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yre;return gg(yre,o)};function bre(o){return yl&&!o?window.innerWidth:typeof o=="object"&&o.clientWidth||0}function xre(o){return yl&&!o?window.innerHeight:typeof o=="object"&&o.clientHeight||0}function wre(o){const b=yl&&!o?window.navigator.userAgent:"ssr";function y(u){return!!b.match(u)}const T=y(/android/i),G=y(/iphone|ipad|ipod/i),V=y(/cordova/i),L=y(/electron/i),A=y(/chrome/i),s=y(/edge/i),m=y(/firefox/i),h=y(/opera/i),l=y(/win/i),c=y(/mac/i),i=y(/linux/i);return{android:T,ios:G,cordova:V,electron:L,chrome:A,edge:s,firefox:m,opera:h,win:l,mac:c,linux:i,touch:wde,ssr:b==="ssr"}}function rge(o,b){const{thresholds:y,mobileBreakpoint:T}=nge(o),G=xa(xre(b)),V=xa(wre(b)),L=ih({}),A=xa(bre(b));function s(){G.value=xre(),A.value=bre()}function m(){s(),V.value=wre()}return fh(()=>{const h=A.value=y.xxl,g=h?"xs":l?"sm":c?"md":i?"lg":u?"xl":"xxl",v=typeof T=="number"?T:y[T],x=A.value{b.value=!0}),b}else return xa(!0)}const Vq=Br({eager:Boolean},"lazy");function Rse(o,b){const y=xa(!1),T=on(()=>y.value||o.eager||b.value);ta(b,()=>y.value=!0);function G(){o.eager||(y.value=!1)}return{isBooted:y,hasContent:T,onAfterLeave:G}}function Uq(){const b=Vu("useScopeId").vnode.scopeId;return{scopeId:b?{[b]:""}:void 0}}const Cre=Symbol.for("vuetify:stack"),x6=ih([]);function age(o,b,y){const T=Vu("useStack"),G=!y,V=ni(Cre,void 0),L=ih({activeChildren:new Set});Gl(Cre,L);const A=xa(+b.value);E2(o,()=>{var l;const h=(l=x6.at(-1))==null?void 0:l[1];A.value=h?h+10:+b.value,G&&x6.push([T.uid,A.value]),V==null||V.activeChildren.add(T.uid),ch(()=>{if(G){const c=ds(x6).findIndex(i=>i[0]===T.uid);x6.splice(c,1)}V==null||V.activeChildren.delete(T.uid)})});const s=xa(!0);G&&fh(()=>{var l;const h=((l=x6.at(-1))==null?void 0:l[0])===T.uid;setTimeout(()=>s.value=h)});const m=on(()=>!L.activeChildren.size);return{globalTop:Z6(s),localTop:m,stackStyles:on(()=>({zIndex:A.value}))}}function sge(o){return{teleportTarget:on(()=>{const y=o.value;if(y===!0||!yl)return;const T=y===!1?document.body:typeof y=="string"?document.querySelector(y):y;if(T==null)return;let G=T.querySelector(":scope > .v-overlay-container");return G||(G=document.createElement("div"),G.className="v-overlay-container",T.appendChild(G)),G})}}function ige(){return!0}function Lse(o,b,y){if(!o||Dse(o,y)===!1)return!1;const T=Oae(b);if(typeof ShadowRoot<"u"&&T instanceof ShadowRoot&&T.host===o.target)return!1;const G=(typeof y.value=="object"&&y.value.include||(()=>[]))();return G.push(b),!G.some(V=>V==null?void 0:V.contains(o.target))}function Dse(o,b){return(typeof b.value=="object"&&b.value.closeConditional||ige)(o)}function lge(o,b,y){const T=typeof y.value=="function"?y.value:y.value.handler;b._clickOutside.lastMousedownWasOutside&&Lse(o,b,y)&&setTimeout(()=>{Dse(o,y)&&T&&T(o)},0)}function Sre(o,b){const y=Oae(o);b(document),typeof ShadowRoot<"u"&&y instanceof ShadowRoot&&b(y)}const cge={mounted(o,b){const y=G=>lge(G,o,b),T=G=>{o._clickOutside.lastMousedownWasOutside=Lse(G,o,b)};Sre(o,G=>{G.addEventListener("click",y,!0),G.addEventListener("mousedown",T,!0)}),o._clickOutside||(o._clickOutside={lastMousedownWasOutside:!1}),o._clickOutside[b.instance.$.uid]={onClick:y,onMousedown:T}},unmounted(o,b){o._clickOutside&&(Sre(o,y=>{var V;if(!y||!((V=o._clickOutside)!=null&&V[b.instance.$.uid]))return;const{onClick:T,onMousedown:G}=o._clickOutside[b.instance.$.uid];y.removeEventListener("click",T,!0),y.removeEventListener("mousedown",G,!0)}),delete o._clickOutside[b.instance.$.uid])}};function uge(o){const{modelValue:b,color:y,...T}=o;return ct(Hy,{name:"fade-transition",appear:!0},{default:()=>[o.modelValue&&ct("div",Jo({class:["v-overlay__scrim",o.color.backgroundColorClasses.value],style:o.color.backgroundColorStyles.value},T),null)]})}const Wq=Br({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...qme(),...ts(),...x3(),...Vq(),...Hme(),...Zme(),...Gc(),...C3()},"VOverlay"),LB=Go()({name:"VOverlay",directives:{ClickOutside:cge},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Wq()},emits:{"click:outside":o=>!0,"update:modelValue":o=>!0,afterLeave:()=>!0},setup(o,b){let{slots:y,attrs:T,emit:G}=b;const V=ri(o,"modelValue"),L=on({get:()=>V.value,set:K=>{K&&o.disabled||(V.value=K)}}),{teleportTarget:A}=sge(on(()=>o.attach||o.contained)),{themeClasses:s}=Uu(o),{rtlClasses:m,isRtl:h}=Sg(),{hasContent:l,onAfterLeave:c}=Rse(o,L),i=wg(on(()=>typeof o.scrim=="string"?o.scrim:null)),{globalTop:u,localTop:d,stackStyles:g}=age(L,Xo(o,"zIndex"),o._disableGlobalStack),{activatorEl:v,activatorRef:x,activatorEvents:C,contentEvents:_,scrimEvents:$}=ege(o,{isActive:L,isTop:d}),{dimensionStyles:S}=w3(o),O=oge(),{scopeId:D}=Uq();ta(()=>o.disabled,K=>{K&&(L.value=!1)});const N=No(),M=No(),{contentStyles:k,updateLocation:R}=zme(o,{isRtl:h,contentEl:M,activatorEl:v,isActive:L});jme(o,{root:N,contentEl:M,activatorEl:v,isActive:L,updateLocation:R});function F(K){G("click:outside",K),o.persistent?J():L.value=!1}function H(){return L.value&&u.value}yl&&ta(L,K=>{K?window.addEventListener("keydown",j):window.removeEventListener("keydown",j)},{immediate:!0});function j(K){var ae,Q;K.key==="Escape"&&u.value&&(o.persistent?J():(L.value=!1,(ae=M.value)!=null&&ae.contains(document.activeElement)&&((Q=v.value)==null||Q.focus())))}const P=Xhe();E2(()=>o.closeOnBack,()=>{Jhe(P,K=>{u.value&&L.value?(K(!1),o.persistent?J():L.value=!1):K()})});const ee=No();ta(()=>L.value&&(o.absolute||o.contained)&&A.value==null,K=>{if(K){const ae=Iae(N.value);ae&&ae!==document.scrollingElement&&(ee.value=ae.scrollTop)}});function J(){o.noClickAnimation||M.value&&gE(M.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:TB})}return ga(()=>{var K;return ct(Uo,null,[(K=y.activator)==null?void 0:K.call(y,{isActive:L.value,props:Jo({ref:x},C.value,o.activatorProps)}),O.value&&l.value&&ct(Que,{disabled:!A.value,to:A.value},{default:()=>[ct("div",Jo({class:["v-overlay",{"v-overlay--absolute":o.absolute||o.contained,"v-overlay--active":L.value,"v-overlay--contained":o.contained},s.value,m.value,o.class],style:[g.value,{top:ra(ee.value)},o.style],ref:N},D,T),[ct(uge,Jo({color:i,modelValue:L.value&&!!o.scrim},$.value),null),ct(T2,{appear:!0,persisted:!0,transition:o.transition,target:v.value,onAfterLeave:()=>{c(),G("afterLeave")}},{default:()=>{var ae;return[lu(ct("div",Jo({ref:M,class:["v-overlay__content",o.contentClass],style:[S.value,k.value]},_.value,o.contentProps),[(ae=y.default)==null?void 0:ae.call(y,{isActive:L})]),[[R2,L.value],[_p("click-outside"),{handler:F,closeConditional:H,include:()=>[v.value]}]])]}})])]})])}),{activatorEl:v,animateClick:J,contentEl:M,globalTop:u,localTop:d,updateLocation:R}}}),QJ=Symbol("Forwarded refs");function qJ(o,b){let y=o;for(;y;){const T=Reflect.getOwnPropertyDescriptor(y,b);if(T)return T;y=Object.getPrototypeOf(y)}}function A3(o){for(var b=arguments.length,y=new Array(b>1?b-1:0),T=1;T!0},setup(o,b){let{slots:y}=b;const T=ri(o,"modelValue"),{scopeId:G}=Uq(),V=Rp(),L=on(()=>o.id||`v-menu-${V}`),A=No(),s=ni(RQ,null),m=xa(0);Gl(RQ,{register(){++m.value},unregister(){--m.value},closeParents(){setTimeout(()=>{m.value||(T.value=!1,s==null||s.closeParents())},40)}});async function h(d){var x,C,_;const g=d.relatedTarget,v=d.target;await Ll(),T.value&&g!==v&&((x=A.value)!=null&&x.contentEl)&&((C=A.value)!=null&&C.globalTop)&&![document,A.value.contentEl].includes(v)&&!A.value.contentEl.contains(v)&&((_=wB(A.value.contentEl)[0])==null||_.focus())}ta(T,d=>{d?(s==null||s.register(),document.addEventListener("focusin",h,{once:!0})):(s==null||s.unregister(),document.removeEventListener("focusin",h))});function l(){s==null||s.closeParents()}function c(d){var g,v,x;o.disabled||d.key==="Tab"&&(Aae(wB((g=A.value)==null?void 0:g.contentEl,!1),d.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(T.value=!1,(x=(v=A.value)==null?void 0:v.activatorEl)==null||x.focus()))}function i(d){var v;if(o.disabled)return;const g=(v=A.value)==null?void 0:v.contentEl;g&&T.value?d.key==="ArrowDown"?(d.preventDefault(),CB(g,"next")):d.key==="ArrowUp"&&(d.preventDefault(),CB(g,"prev")):["ArrowDown","ArrowUp"].includes(d.key)&&(T.value=!0,d.preventDefault(),setTimeout(()=>setTimeout(()=>i(d))))}const u=on(()=>Jo({"aria-haspopup":"menu","aria-expanded":String(T.value),"aria-owns":L.value,onKeydown:i},o.activatorProps));return ga(()=>{const[d]=LB.filterProps(o);return ct(LB,Jo({ref:A,class:["v-menu",o.class],style:o.style},d,{modelValue:T.value,"onUpdate:modelValue":g=>T.value=g,absolute:!0,activatorProps:u.value,"onClick:outside":l,onKeydown:c},G),{activator:y.activator,default:function(){for(var g=arguments.length,v=new Array(g),x=0;x{var C;return[(C=y.default)==null?void 0:C.call(y,...v)]}})}})}),A3({id:L,ΨopenChildren:m},A)}});const dge=Br({active:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...ts(),...C3({transition:{component:Uae}})},"VCounter"),$se=Go()({name:"VCounter",functional:!0,props:dge(),setup(o,b){let{slots:y}=b;const T=on(()=>o.max?`${o.value} / ${o.max}`:String(o.value));return ga(()=>ct(T2,{transition:o.transition},{default:()=>[lu(ct("div",{class:["v-counter",o.class],style:o.style},[y.default?y.default({counter:T.value,max:o.max,value:o.value}):T.value]),[[R2,o.active]])]})),{}}});const hge=Br({floating:Boolean,...ts()},"VFieldLabel"),qF=Go()({name:"VFieldLabel",props:hge(),setup(o,b){let{slots:y}=b;return ga(()=>ct(iH,{class:["v-field-label",{"v-field-label--floating":o.floating},o.class],style:o.style,"aria-hidden":o.floating||void 0},y)),{}}}),mge=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Gq=Br({appendInnerIcon:vi,bgColor:String,clearable:Boolean,clearIcon:{type:vi,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:vi,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:o=>mge.includes(o)},"onClick:clear":M0(),"onClick:appendInner":M0(),"onClick:prependInner":M0(),...ts(),...rH(),...Tg(),...Gc()},"VField"),Zq=Go()({name:"VField",inheritAttrs:!1,props:{id:String,...lH(),...Gq()},emits:{"update:focused":o=>!0,"update:modelValue":o=>!0},setup(o,b){let{attrs:y,emit:T,slots:G}=b;const{themeClasses:V}=Uu(o),{loaderClasses:L}=oH(o),{focusClasses:A,isFocused:s,focus:m,blur:h}=q6(o),{InputIcon:l}=gse(o),{roundedClasses:c}=kg(o),{rtlClasses:i}=Sg(),u=on(()=>o.dirty||o.active),d=on(()=>!o.singleLine&&!!(o.label||G.label)),g=Rp(),v=on(()=>o.id||`input-${g}`),x=on(()=>`${v.value}-messages`),C=No(),_=No(),$=No(),S=on(()=>["plain","underlined"].includes(o.variant)),{backgroundColorClasses:O,backgroundColorStyles:D}=wg(Xo(o,"bgColor")),{textColorClasses:N,textColorStyles:M}=xg(on(()=>o.error||o.disabled?void 0:u.value&&s.value?o.color:o.baseColor));ta(u,F=>{if(d.value){const H=C.value.$el,j=_.value.$el;requestAnimationFrame(()=>{const P=Tq(H),ee=j.getBoundingClientRect(),J=ee.x-P.x,K=ee.y-P.y-(P.height/2-ee.height/2),ae=ee.width/.75,Q=Math.abs(ae-P.width)>1?{maxWidth:ra(ae)}:void 0,he=getComputedStyle(H),ge=getComputedStyle(j),Se=parseFloat(he.transitionDuration)*1e3||150,ce=parseFloat(ge.getPropertyValue("--v-field-label-scale")),ne=ge.getPropertyValue("color");H.style.visibility="visible",j.style.visibility="hidden",gE(H,{transform:`translate(${J}px, ${K}px) scale(${ce})`,color:ne,...Q},{duration:Se,easing:TB,direction:F?"normal":"reverse"}).finished.then(()=>{H.style.removeProperty("visibility"),j.style.removeProperty("visibility")})})}},{flush:"post"});const k=on(()=>({isActive:u,isFocused:s,controlRef:$,blur:h,focus:m}));function R(F){F.target!==document.activeElement&&F.preventDefault()}return ga(()=>{var J,K,ae;const F=o.variant==="outlined",H=G["prepend-inner"]||o.prependInnerIcon,j=!!(o.clearable||G.clear),P=!!(G["append-inner"]||o.appendInnerIcon||j),ee=G.label?G.label({...k.value,label:o.label,props:{for:v.value}}):o.label;return ct("div",Jo({class:["v-field",{"v-field--active":u.value,"v-field--appended":P,"v-field--center-affix":o.centerAffix??!S.value,"v-field--disabled":o.disabled,"v-field--dirty":o.dirty,"v-field--error":o.error,"v-field--flat":o.flat,"v-field--has-background":!!o.bgColor,"v-field--persistent-clear":o.persistentClear,"v-field--prepended":H,"v-field--reverse":o.reverse,"v-field--single-line":o.singleLine,"v-field--no-label":!ee,[`v-field--variant-${o.variant}`]:!0},V.value,O.value,A.value,L.value,c.value,i.value,o.class],style:[D.value,o.style],onClick:R},y),[ct("div",{class:"v-field__overlay"},null),ct(Bq,{name:"v-field",active:!!o.loading,color:o.error?"error":typeof o.loading=="string"?o.loading:o.color},{default:G.loader}),H&&ct("div",{key:"prepend",class:"v-field__prepend-inner"},[o.prependInnerIcon&&ct(l,{key:"prepend-icon",name:"prependInner"},null),(J=G["prepend-inner"])==null?void 0:J.call(G,k.value)]),ct("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(o.variant)&&d.value&&ct(qF,{key:"floating-label",ref:_,class:[N.value],floating:!0,for:v.value,style:M.value},{default:()=>[ee]}),ct(qF,{ref:C,for:v.value},{default:()=>[ee]}),(K=G.default)==null?void 0:K.call(G,{...k.value,props:{id:v.value,class:"v-field__input","aria-describedby":x.value},focus:m,blur:h})]),j&&ct(Wae,{key:"clear"},{default:()=>[lu(ct("div",{class:"v-field__clearable",onMousedown:Q=>{Q.preventDefault(),Q.stopPropagation()}},[G.clear?G.clear():ct(l,{name:"clear"},null)]),[[R2,o.dirty]])]}),P&&ct("div",{key:"append",class:"v-field__append-inner"},[(ae=G["append-inner"])==null?void 0:ae.call(G,k.value),o.appendInnerIcon&&ct(l,{key:"append-icon",name:"appendInner"},null)]),ct("div",{class:["v-field__outline",N.value],style:M.value},[F&&ct(Uo,null,[ct("div",{class:"v-field__outline__start"},null),d.value&&ct("div",{class:"v-field__outline__notch"},[ct(qF,{ref:_,floating:!0,for:v.value},{default:()=>[ee]})]),ct("div",{class:"v-field__outline__end"},null)]),S.value&&d.value&&ct(qF,{ref:_,floating:!0,for:v.value},{default:()=>[ee]})])])}),{controlRef:$}}});function Ose(o){const b=Object.keys(Zq.props).filter(y=>!wq(y)&&y!=="class"&&y!=="style");return ME(o,b)}const gge=["color","file","time","date","datetime-local","week","month"],fH=Br({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...e$(),...Gq()},"VTextField"),Ep=Go()({name:"VTextField",directives:{Intersect:Rq},inheritAttrs:!1,props:fH(),emits:{"click:control":o=>!0,"mousedown:control":o=>!0,"update:focused":o=>!0,"update:modelValue":o=>!0},setup(o,b){let{attrs:y,emit:T,slots:G}=b;const V=ri(o,"modelValue"),{isFocused:L,focus:A,blur:s}=q6(o),m=on(()=>typeof o.counterValue=="function"?o.counterValue(V.value):typeof o.counterValue=="number"?o.counterValue:(V.value??"").toString().length),h=on(()=>{if(y.maxlength)return y.maxlength;if(!(!o.counter||typeof o.counter!="number"&&typeof o.counter!="string"))return o.counter}),l=on(()=>["plain","underlined"].includes(o.variant));function c(S,O){var D,N;!o.autofocus||!S||(N=(D=O[0].target)==null?void 0:D.focus)==null||N.call(D)}const i=No(),u=No(),d=No(),g=on(()=>gge.includes(o.type)||o.persistentPlaceholder||L.value||o.active);function v(){var S;d.value!==document.activeElement&&((S=d.value)==null||S.focus()),L.value||A()}function x(S){T("mousedown:control",S),S.target!==d.value&&(v(),S.preventDefault())}function C(S){v(),T("click:control",S)}function _(S){S.stopPropagation(),v(),Ll(()=>{V.value=null,kae(o["onClick:clear"],S)})}function $(S){var D;const O=S.target;if(V.value=O.value,(D=o.modelModifiers)!=null&&D.trim&&["text","search","password","tel","url"].includes(o.type)){const N=[O.selectionStart,O.selectionEnd];Ll(()=>{O.selectionStart=N[0],O.selectionEnd=N[1]})}}return ga(()=>{const S=!!(G.counter||o.counter!==!1&&o.counter!=null),O=!!(S||G.details),[D,N]=Cq(y),[{modelValue:M,...k}]=_2.filterProps(o),[R]=Ose(o);return ct(_2,Jo({ref:i,modelValue:V.value,"onUpdate:modelValue":F=>V.value=F,class:["v-text-field",{"v-text-field--prefixed":o.prefix,"v-text-field--suffixed":o.suffix,"v-text-field--plain-underlined":["plain","underlined"].includes(o.variant)},o.class],style:o.style},D,k,{centerAffix:!l.value,focused:L.value}),{...G,default:F=>{let{id:H,isDisabled:j,isDirty:P,isReadonly:ee,isValid:J}=F;return ct(Zq,Jo({ref:u,onMousedown:x,onClick:C,"onClick:clear":_,"onClick:prependInner":o["onClick:prependInner"],"onClick:appendInner":o["onClick:appendInner"],role:o.role},R,{id:H.value,active:g.value||P.value,dirty:P.value||o.dirty,disabled:j.value,focused:L.value,error:J.value===!1}),{...G,default:K=>{let{props:{class:ae,...Q}}=K;const he=lu(ct("input",Jo({ref:d,value:V.value,onInput:$,autofocus:o.autofocus,readonly:ee.value,disabled:j.value,name:o.name,placeholder:o.placeholder,size:1,type:o.type,onFocus:v,onBlur:s},Q,N),null),[[_p("intersect"),{handler:c},null,{once:!0}]]);return ct(Uo,null,[o.prefix&&ct("span",{class:"v-text-field__prefix"},[ct("span",{class:"v-text-field__prefix__text"},[o.prefix])]),G.default?ct("div",{class:ae,"data-no-activator":""},[G.default(),he]):By(he,{class:ae}),o.suffix&&ct("span",{class:"v-text-field__suffix"},[ct("span",{class:"v-text-field__suffix__text"},[o.suffix])])])}})},details:O?F=>{var H;return ct(Uo,null,[(H=G.details)==null?void 0:H.call(G,F),S&&ct(Uo,null,[ct("span",null,null),ct($se,{active:o.persistentCounter||L.value,value:m.value,max:h.value},G.counter)])])}:void 0})}),A3({},i,u,d)}});const pge=Br({renderless:Boolean,...ts()},"VVirtualScrollItem"),vge=Go()({name:"VVirtualScrollItem",inheritAttrs:!1,props:pge(),emits:{"update:height":o=>!0},setup(o,b){let{attrs:y,emit:T,slots:G}=b;const{resizeRef:V,contentRect:L}=tH(void 0,"border");ta(()=>{var A;return(A=L.value)==null?void 0:A.height},A=>{A!=null&&T("update:height",A)}),ga(()=>{var A,s;return o.renderless?ct(Uo,null,[(A=G.default)==null?void 0:A.call(G,{itemRef:V})]):ct("div",Jo({ref:V,class:["v-virtual-scroll__item",o.class],style:o.style},y),[(s=G.default)==null?void 0:s.call(G)])})}}),Tre=-1,kre=1,yge=Br({itemHeight:{type:[Number,String],default:48}},"virtual");function bge(o,b,y){const T=xa(0),G=xa(o.itemHeight),V=on({get:()=>parseInt(G.value??0,10),set(O){G.value=O}}),L=No(),{resizeRef:A,contentRect:s}=tH();fh(()=>{A.value=L.value});const m=_se(),h=new Map;let l=Array.from({length:b.value.length});const c=on(()=>{const O=(!s.value||L.value===document.documentElement?m.height.value:s.value.height)-((y==null?void 0:y.value)??0);return Math.ceil(O/V.value*1.7+1)});function i(O,D){V.value=Math.max(V.value,D),l[O]=D,h.set(b.value[O],D)}function u(O){return l.slice(0,O).reduce((D,N)=>D+(N||V.value),0)}function d(O){const D=b.value.length;let N=0,M=0;for(;M=F&&(T.value=yg(R,0,b.value.length-c.value)),g=D}function x(O){if(!L.value)return;const D=u(O);L.value.scrollTop=D}const C=on(()=>Math.min(b.value.length,T.value+c.value)),_=on(()=>b.value.slice(T.value,C.value).map((O,D)=>({raw:O,index:D+T.value}))),$=on(()=>u(T.value)),S=on(()=>u(b.value.length)-u(C.value));return ta(()=>b.value.length,()=>{l=AE(b.value.length).map(()=>V.value),h.forEach((O,D)=>{const N=b.value.indexOf(D);N===-1?h.delete(D):l[N]=O})}),{containerRef:L,computedItems:_,itemHeight:V,paddingTop:$,paddingBottom:S,scrollToIndex:x,handleScroll:v,handleItemResize:i}}const xge=Br({items:{type:Array,default:()=>[]},renderless:Boolean,...yge(),...ts(),...x3()},"VVirtualScroll"),jq=Go()({name:"VVirtualScroll",props:xge(),setup(o,b){let{slots:y}=b;const T=Vu("VVirtualScroll"),{dimensionStyles:G}=w3(o),{containerRef:V,handleScroll:L,handleItemResize:A,scrollToIndex:s,paddingTop:m,paddingBottom:h,computedItems:l}=bge(o,Xo(o,"items"));return E2(()=>o.renderless,()=>{Cg(()=>{var c;V.value=Iae(T.vnode.el,!0),(c=V.value)==null||c.addEventListener("scroll",L)}),ch(()=>{var c;(c=V.value)==null||c.removeEventListener("scroll",L)})}),ga(()=>{const c=l.value.map(i=>ct(vge,{key:i.index,renderless:o.renderless,"onUpdate:height":u=>A(i.index,u)},{default:u=>{var d;return(d=y.default)==null?void 0:d.call(y,{item:i.raw,index:i.index,...u})}}));return o.renderless?ct(Uo,null,[ct("div",{class:"v-virtual-scroll__spacer",style:{paddingTop:ra(m.value)}},null),c,ct("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:ra(h.value)}},null)]):ct("div",{ref:V,class:["v-virtual-scroll",o.class],onScroll:L,style:[G.value,o.style]},[ct("div",{class:"v-virtual-scroll__container",style:{paddingTop:ra(m.value),paddingBottom:ra(h.value)}},[c])])}),{scrollToIndex:s}}});function Yq(o,b){const y=xa(!1);let T;function G(A){cancelAnimationFrame(T),y.value=!0,T=requestAnimationFrame(()=>{T=requestAnimationFrame(()=>{y.value=!1})})}async function V(){await new Promise(A=>requestAnimationFrame(A)),await new Promise(A=>requestAnimationFrame(A)),await new Promise(A=>requestAnimationFrame(A)),await new Promise(A=>{if(y.value){const s=ta(y,()=>{s(),A()})}else A()})}async function L(A){var h,l;if(A.key==="Tab"&&((h=b.value)==null||h.focus()),!["PageDown","PageUp","Home","End"].includes(A.key))return;const s=(l=o.value)==null?void 0:l.$el;if(!s)return;(A.key==="Home"||A.key==="End")&&s.scrollTo({top:A.key==="Home"?0:s.scrollHeight,behavior:"smooth"}),await V();const m=s.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(A.key==="PageDown"||A.key==="Home"){const c=s.getBoundingClientRect().top;for(const i of m)if(i.getBoundingClientRect().top>=c){i.focus();break}}else{const c=s.getBoundingClientRect().bottom;for(const i of[...m].reverse())if(i.getBoundingClientRect().bottom<=c){i.focus();break}}}return{onListScroll:G,onListKeydown:L}}const Kq=Br({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,menu:Boolean,menuIcon:{type:vi,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...Tse({itemChildren:!1})},"Select"),wge=Br({...Kq(),...PE(fH({modelValue:null,role:"button"}),["validationValue","dirty","appendInnerIcon"]),...C3({transition:{component:Eq}})},"VSelect"),Xq=Go()({name:"VSelect",props:wge(),emits:{"update:focused":o=>!0,"update:modelValue":o=>!0,"update:menu":o=>!0},setup(o,b){let{slots:y}=b;const{t:T}=L2(),G=No(),V=No(),L=No(),A=ri(o,"menu"),s=on({get:()=>A.value,set:P=>{var ee;A.value&&!P&&((ee=V.value)!=null&&ee.ΨopenChildren)||(A.value=P)}}),{items:m,transformIn:h,transformOut:l}=zq(o),c=ri(o,"modelValue",[],P=>h(P===null?[null]:xd(P)),P=>{const ee=l(P);return o.multiple?ee:ee[0]??null}),i=cH(),u=on(()=>c.value.map(P=>P.value)),d=xa(!1),g=on(()=>s.value?o.closeText:o.openText);let v="",x;const C=on(()=>o.hideSelected?m.value.filter(P=>!c.value.some(ee=>ee===P)):m.value),_=on(()=>o.hideNoData&&!m.value.length||o.readonly||(i==null?void 0:i.isReadonly.value)),$=No(),{onListScroll:S,onListKeydown:O}=Yq($,G);function D(P){o.openOnClear&&(s.value=!0)}function N(){_.value||(s.value=!s.value)}function M(P){var Q,he;if(!P.key||o.readonly||i!=null&&i.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(P.key)&&P.preventDefault(),["Enter","ArrowDown"," "].includes(P.key)&&(s.value=!0),["Escape","Tab"].includes(P.key)&&(s.value=!1),P.key==="Home"?(Q=$.value)==null||Q.focus("first"):P.key==="End"&&((he=$.value)==null||he.focus("last"));const ee=1e3;function J(ge){const Se=ge.key.length===1,ce=!ge.ctrlKey&&!ge.metaKey&&!ge.altKey;return Se&&ce}if(o.multiple||!J(P))return;const K=performance.now();K-x>ee&&(v=""),v+=P.key.toLowerCase(),x=K;const ae=m.value.find(ge=>ge.title.toLowerCase().startsWith(v));ae!==void 0&&(c.value=[ae])}function k(P){if(o.multiple){const ee=c.value.findIndex(J=>o.valueComparator(J.value,P.value));if(ee===-1)c.value=[...c.value,P];else{const J=[...c.value];J.splice(ee,1),c.value=J}}else c.value=[P],s.value=!1}function R(P){var ee;(ee=$.value)!=null&&ee.$el.contains(P.relatedTarget)||(s.value=!1)}function F(){var P;d.value&&((P=G.value)==null||P.focus())}function H(P){d.value=!0}function j(P){if(P==null)c.value=[];else if(EE(G.value,":autofill")||EE(G.value,":-webkit-autofill")){const ee=m.value.find(J=>J.title===P);ee&&k(ee)}else G.value&&(G.value.value="")}return ta(s,()=>{if(!o.hideSelected&&s.value&&c.value.length){const P=C.value.findIndex(ee=>c.value.some(J=>o.valueComparator(J.value,ee.value)));yl&&window.requestAnimationFrame(()=>{var ee;P>=0&&((ee=L.value)==null||ee.scrollToIndex(P))})}}),ga(()=>{const P=!!(o.chips||y.chip),ee=!!(!o.hideNoData||C.value.length||y["prepend-item"]||y["append-item"]||y["no-data"]),J=c.value.length>0,[K]=Ep.filterProps(o),ae=J||!d.value&&o.label&&!o.persistentPlaceholder?void 0:o.placeholder;return ct(Ep,Jo({ref:G},K,{modelValue:c.value.map(Q=>Q.props.value).join(", "),"onUpdate:modelValue":j,focused:d.value,"onUpdate:focused":Q=>d.value=Q,validationValue:c.externalValue,counterValue:c.value.length,dirty:J,class:["v-select",{"v-select--active-menu":s.value,"v-select--chips":!!o.chips,[`v-select--${o.multiple?"multiple":"single"}`]:!0,"v-select--selected":c.value.length,"v-select--selection-slot":!!y.selection},o.class],style:o.style,inputmode:"none",placeholder:ae,"onClick:clear":D,"onMousedown:control":N,onBlur:R,onKeydown:M,"aria-label":T(g.value),title:T(g.value)}),{...y,default:()=>ct(Uo,null,[ct(O2,Jo({ref:V,modelValue:s.value,"onUpdate:modelValue":Q=>s.value=Q,activator:"parent",contentClass:"v-select__content",disabled:_.value,eager:o.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:o.transition,onAfterLeave:F},o.menuProps),{default:()=>[ee&&ct($2,{ref:$,selected:u.value,selectStrategy:o.multiple?"independent":"single-independent",onMousedown:Q=>Q.preventDefault(),onKeydown:O,onFocusin:H,onScrollPassive:S,tabindex:"-1",color:o.itemColor??o.color},{default:()=>{var Q,he,ge;return[(Q=y["prepend-item"])==null?void 0:Q.call(y),!C.value.length&&!o.hideNoData&&(((he=y["no-data"])==null?void 0:he.call(y))??ct(fm,{title:T(o.noDataText)},null)),ct(jq,{ref:L,renderless:!0,items:C.value},{default:Se=>{var ye;let{item:ce,index:ne,itemRef:fe}=Se;const X=Jo(ce.props,{ref:fe,key:ne,onClick:()=>k(ce)});return((ye=y.item)==null?void 0:ye.call(y,{item:ce,index:ne,props:X}))??ct(fm,X,{prepend:Ce=>{let{isSelected:$e}=Ce;return ct(Uo,null,[o.multiple&&!o.hideSelected?ct(FE,{key:ce.value,modelValue:$e,ripple:!1,tabindex:"-1"},null):void 0,ce.props.prependIcon&&ct(js,{icon:ce.props.prependIcon},null)])}})}}),(ge=y["append-item"])==null?void 0:ge.call(y)]}})]}),c.value.map((Q,he)=>{var ce;function ge(ne){ne.stopPropagation(),ne.preventDefault(),k(Q)}const Se={"onClick:close":ge,onMousedown(ne){ne.preventDefault(),ne.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0};return ct("div",{key:Q.value,class:"v-select__selection"},[P?y.chip?ct(Ac,{key:"chip-defaults",defaults:{VChip:{closable:o.closableChips,size:"small",text:Q.title}}},{default:()=>{var ne;return[(ne=y.chip)==null?void 0:ne.call(y,{item:Q,index:he,props:Se})]}}):ct(wE,Jo({key:"chip",closable:o.closableChips,size:"small",text:Q.title,disabled:Q.props.disabled},Se),null):((ce=y.selection)==null?void 0:ce.call(y,{item:Q,index:he}))??ct("span",{class:"v-select__selection-text"},[Q.title,o.multiple&&heo==null||b==null?-1:o.toString().toLocaleLowerCase().indexOf(b.toString().toLocaleLowerCase()),Jq=Br({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function Sge(o,b,y){var A;const T=[],G=(y==null?void 0:y.default)??Cge,V=y!=null&&y.filterKeys?xd(y.filterKeys):!1,L=Object.keys((y==null?void 0:y.customKeyFilter)??{}).length;if(!(o!=null&&o.length))return T;e:for(let s=0;sT!=null&&T.transform?im(b).map(s=>[s,T.transform(s)]):im(b));fh(()=>{const s=typeof y=="function"?y():im(y),m=typeof s!="string"&&typeof s!="number"?"":String(s),h=Sge(L.value,m,{customKeyFilter:o.customKeyFilter,default:o.customFilter,filterKeys:o.filterKeys,filterMode:o.filterMode,noFilter:o.noFilter}),l=im(b),c=[],i=new Map;h.forEach(u=>{let{index:d,matches:g}=u;const v=l[d];c.push(v),i.set(v.value,g)}),G.value=c,V.value=i});function A(s){return V.value.get(s.value)}return{filteredItems:G,filteredMatches:V,getMatches:A}}function Tge(o,b,y){if(b==null)return o;if(Array.isArray(b))throw new Error("Multiple matches is not implemented");return typeof b=="number"&&~b?ct(Uo,null,[ct("span",{class:"v-autocomplete__unmask"},[o.substr(0,b)]),ct("span",{class:"v-autocomplete__mask"},[o.substr(b,y)]),ct("span",{class:"v-autocomplete__unmask"},[o.substr(b+y)])]):o}const kge=Br({autoSelectFirst:{type:[Boolean,String]},search:String,...Jq({filterKeys:["title"]}),...Kq(),...PE(fH({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...C3({transition:!1})},"VAutocomplete"),Pse=Go()({name:"VAutocomplete",props:kge(),emits:{"update:focused":o=>!0,"update:search":o=>!0,"update:modelValue":o=>!0,"update:menu":o=>!0},setup(o,b){let{slots:y}=b;const{t:T}=L2(),G=No(),V=xa(!1),L=xa(!0),A=xa(!1),s=No(),m=No(),h=ri(o,"menu"),l=on({get:()=>h.value,set:X=>{var ye;h.value&&!X&&((ye=s.value)!=null&&ye.ΨopenChildren)||(h.value=X)}}),c=xa(-1),i=on(()=>{var X;return(X=G.value)==null?void 0:X.color}),u=on(()=>l.value?o.closeText:o.openText),{items:d,transformIn:g,transformOut:v}=zq(o),{textColorClasses:x,textColorStyles:C}=xg(i),_=ri(o,"search",""),$=ri(o,"modelValue",[],X=>g(X===null?[null]:xd(X)),X=>{const ye=v(X);return o.multiple?ye:ye[0]??null}),S=cH(),{filteredItems:O,getMatches:D}=Qq(o,d,()=>L.value?"":_.value),N=on(()=>o.hideSelected?O.value.filter(X=>!$.value.some(ye=>ye.value===X.value)):O.value),M=on(()=>$.value.map(X=>X.props.value)),k=on(()=>{var ye;return(o.autoSelectFirst===!0||o.autoSelectFirst==="exact"&&_.value===((ye=N.value[0])==null?void 0:ye.title))&&N.value.length>0&&!L.value&&!A.value}),R=on(()=>o.hideNoData&&!d.value.length||o.readonly||(S==null?void 0:S.isReadonly.value)),F=No(),{onListScroll:H,onListKeydown:j}=Yq(F,G);function P(X){o.openOnClear&&(l.value=!0),_.value=""}function ee(){R.value||(l.value=!0)}function J(X){R.value||(V.value&&(X.preventDefault(),X.stopPropagation()),l.value=!l.value)}function K(X){var $e,ke,Ne;if(o.readonly||S!=null&&S.isReadonly.value)return;const ye=G.value.selectionStart,Ce=$.value.length;if((c.value>-1||["Enter","ArrowDown","ArrowUp"].includes(X.key))&&X.preventDefault(),["Enter","ArrowDown"].includes(X.key)&&(l.value=!0),["Escape"].includes(X.key)&&(l.value=!1),k.value&&["Enter","Tab"].includes(X.key)&&fe(N.value[0]),X.key==="ArrowDown"&&k.value&&(($e=F.value)==null||$e.focus("next")),!!o.multiple){if(["Backspace","Delete"].includes(X.key)){if(c.value<0){X.key==="Backspace"&&!_.value&&(c.value=Ce-1);return}const Ve=c.value,Oe=$.value[c.value];Oe&&!Oe.props.disabled&&fe(Oe),c.value=Ve>=Ce-1?Ce-2:Ve}if(X.key==="ArrowLeft"){if(c.value<0&&ye>0)return;const Ve=c.value>-1?c.value-1:Ce-1;$.value[Ve]?c.value=Ve:(c.value=-1,G.value.setSelectionRange((ke=_.value)==null?void 0:ke.length,(Ne=_.value)==null?void 0:Ne.length))}if(X.key==="ArrowRight"){if(c.value<0)return;const Ve=c.value+1;$.value[Ve]?c.value=Ve:(c.value=-1,G.value.setSelectionRange(0,0))}}}function ae(X){_.value=X.target.value}function Q(X){if(EE(G.value,":autofill")||EE(G.value,":-webkit-autofill")){const ye=d.value.find(Ce=>Ce.title===X.target.value);ye&&fe(ye)}}function he(){var X;V.value&&(L.value=!0,(X=G.value)==null||X.focus())}function ge(X){V.value=!0,setTimeout(()=>{A.value=!0})}function Se(X){A.value=!1}function ce(X){(X==null||X===""&&!o.multiple)&&($.value=[])}const ne=xa(!1);function fe(X){if(o.multiple){const ye=$.value.findIndex(Ce=>o.valueComparator(Ce.value,X.value));if(ye===-1)$.value=[...$.value,X];else{const Ce=[...$.value];Ce.splice(ye,1),$.value=Ce}}else $.value=[X],ne.value=!0,_.value=X.title,l.value=!1,L.value=!0,Ll(()=>ne.value=!1)}return ta(V,(X,ye)=>{var Ce;X!==ye&&(X?(ne.value=!0,_.value=o.multiple?"":String(((Ce=$.value.at(-1))==null?void 0:Ce.props.title)??""),L.value=!0,Ll(()=>ne.value=!1)):(!o.multiple&&!_.value?$.value=[]:k.value&&!A.value&&!$.value.some($e=>{let{value:ke}=$e;return ke===N.value[0].value})&&fe(N.value[0]),l.value=!1,_.value="",c.value=-1))}),ta(_,X=>{!V.value||ne.value||(X&&(l.value=!0),L.value=!X)}),ta(l,()=>{if(!o.hideSelected&&l.value&&$.value.length){const X=N.value.findIndex(ye=>$.value.some(Ce=>ye.value===Ce.value));yl&&window.requestAnimationFrame(()=>{var ye;X>=0&&((ye=m.value)==null||ye.scrollToIndex(X))})}}),ga(()=>{const X=!!(o.chips||y.chip),ye=!!(!o.hideNoData||N.value.length||y["prepend-item"]||y["append-item"]||y["no-data"]),Ce=$.value.length>0,[$e]=Ep.filterProps(o);return ct(Ep,Jo({ref:G},$e,{modelValue:_.value,"onUpdate:modelValue":ce,focused:V.value,"onUpdate:focused":ke=>V.value=ke,validationValue:$.externalValue,counterValue:$.value.length,dirty:Ce,onInput:ae,onChange:Q,class:["v-autocomplete",`v-autocomplete--${o.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":l.value,"v-autocomplete--chips":!!o.chips,"v-autocomplete--selection-slot":!!y.selection,"v-autocomplete--selecting-index":c.value>-1},o.class],style:o.style,readonly:o.readonly,placeholder:Ce?void 0:o.placeholder,"onClick:clear":P,"onMousedown:control":ee,onKeydown:K}),{...y,default:()=>ct(Uo,null,[ct(O2,Jo({ref:s,modelValue:l.value,"onUpdate:modelValue":ke=>l.value=ke,activator:"parent",contentClass:"v-autocomplete__content",disabled:R.value,eager:o.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:o.transition,onAfterLeave:he},o.menuProps),{default:()=>[ye&&ct($2,{ref:F,selected:M.value,selectStrategy:o.multiple?"independent":"single-independent",onMousedown:ke=>ke.preventDefault(),onKeydown:j,onFocusin:ge,onFocusout:Se,onScrollPassive:H,tabindex:"-1",color:o.itemColor??o.color},{default:()=>{var ke,Ne,Ve;return[(ke=y["prepend-item"])==null?void 0:ke.call(y),!N.value.length&&!o.hideNoData&&(((Ne=y["no-data"])==null?void 0:Ne.call(y))??ct(fm,{title:T(o.noDataText)},null)),ct(jq,{ref:m,renderless:!0,items:N.value},{default:Oe=>{var ue;let{item:Fe,index:ie,itemRef:we}=Oe;const se=Jo(Fe.props,{ref:we,key:ie,active:k.value&&ie===0?!0:void 0,onClick:()=>fe(Fe)});return((ue=y.item)==null?void 0:ue.call(y,{item:Fe,index:ie,props:se}))??ct(fm,se,{prepend:pe=>{let{isSelected:le}=pe;return ct(Uo,null,[o.multiple&&!o.hideSelected?ct(FE,{key:Fe.value,modelValue:le,ripple:!1,tabindex:"-1"},null):void 0,Fe.props.prependIcon&&ct(js,{icon:Fe.props.prependIcon},null)])},title:()=>{var pe,le;return L.value?Fe.title:Tge(Fe.title,(pe=D(Fe))==null?void 0:pe.title,((le=_.value)==null?void 0:le.length)??0)}})}}),(Ve=y["append-item"])==null?void 0:Ve.call(y)]}})]}),$.value.map((ke,Ne)=>{var Fe;function Ve(ie){ie.stopPropagation(),ie.preventDefault(),fe(ke)}const Oe={"onClick:close":Ve,onMousedown(ie){ie.preventDefault(),ie.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0};return ct("div",{key:ke.value,class:["v-autocomplete__selection",Ne===c.value&&["v-autocomplete__selection--selected",x.value]],style:Ne===c.value?C.value:{}},[X?y.chip?ct(Ac,{key:"chip-defaults",defaults:{VChip:{closable:o.closableChips,size:"small",text:ke.title}}},{default:()=>{var ie;return[(ie=y.chip)==null?void 0:ie.call(y,{item:ke,index:Ne,props:Oe})]}}):ct(wE,Jo({key:"chip",closable:o.closableChips,size:"small",text:ke.title,disabled:ke.props.disabled},Oe),null):((Fe=y.selection)==null?void 0:Fe.call(y,{item:ke,index:Ne}))??ct("span",{class:"v-autocomplete__selection-text"},[ke.title,o.multiple&&Ne<$.value.length-1&&ct("span",{class:"v-autocomplete__selection-comma"},[ii(",")])])])})]),"append-inner":function(){var Oe;for(var ke=arguments.length,Ne=new Array(ke),Ve=0;Ve{var T;return ct("div",{class:["v-card-actions",o.class],style:o.style},[(T=y.default)==null?void 0:T.call(y)])}),{}}}),Age=NE("v-card-subtitle"),Nse=NE("v-card-title"),Mge=Br({appendAvatar:String,appendIcon:vi,prependAvatar:String,prependIcon:vi,subtitle:String,title:String,...ts(),...Lp()},"VCardItem"),Ege=Go()({name:"VCardItem",props:Mge(),setup(o,b){let{slots:y}=b;return ga(()=>{var m;const T=!!(o.prependAvatar||o.prependIcon),G=!!(T||y.prepend),V=!!(o.appendAvatar||o.appendIcon),L=!!(V||y.append),A=!!(o.title||y.title),s=!!(o.subtitle||y.subtitle);return ct("div",{class:["v-card-item",o.class],style:o.style},[G&&ct("div",{key:"prepend",class:"v-card-item__prepend"},[y.prepend?ct(Ac,{key:"prepend-defaults",disabled:!T,defaults:{VAvatar:{density:o.density,icon:o.prependIcon,image:o.prependAvatar}}},y.prepend):T&&ct(RE,{key:"prepend-avatar",density:o.density,icon:o.prependIcon,image:o.prependAvatar},null)]),ct("div",{class:"v-card-item__content"},[A&&ct(Nse,{key:"title"},{default:()=>{var h;return[((h=y.title)==null?void 0:h.call(y))??o.title]}}),s&&ct(Age,{key:"subtitle"},{default:()=>{var h;return[((h=y.subtitle)==null?void 0:h.call(y))??o.subtitle]}}),(m=y.default)==null?void 0:m.call(y)]),L&&ct("div",{key:"append",class:"v-card-item__append"},[y.append?ct(Ac,{key:"append-defaults",disabled:!V,defaults:{VAvatar:{density:o.density,icon:o.appendIcon,image:o.appendAvatar}}},y.append):V&&ct(RE,{key:"append-avatar",density:o.density,icon:o.appendIcon,image:o.appendAvatar},null)])])}),{}}}),_ge=NE("v-card-text"),Rge=Br({appendAvatar:String,appendIcon:vi,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:vi,ripple:{type:[Boolean,Object],default:!0},subtitle:String,text:String,title:String,...S3(),...ts(),...Lp(),...x3(),...Wy(),...rH(),...Nq(),...nse(),...Tg(),...sH(),...mc(),...Gc(),...D2({variant:"elevated"})},"VCard"),M3=Go()({name:"VCard",directives:{Ripple:k3},props:Rge(),setup(o,b){let{attrs:y,slots:T}=b;const{themeClasses:G}=Uu(o),{borderClasses:V}=T3(o),{colorClasses:L,colorStyles:A,variantClasses:s}=X6(o),{densityClasses:m}=L0(o),{dimensionStyles:h}=w3(o),{elevationClasses:l}=Gy(o),{loaderClasses:c}=oH(o),{locationStyles:i}=Fq(o),{positionClasses:u}=rse(o),{roundedClasses:d}=kg(o),g=aH(o,y),v=on(()=>o.link!==!1&&g.isLink.value),x=on(()=>!o.disabled&&o.link!==!1&&(o.link||g.isClickable.value));return ga(()=>{const C=v.value?"a":o.tag,_=!!(T.title||o.title),$=!!(T.subtitle||o.subtitle),S=_||$,O=!!(T.append||o.appendAvatar||o.appendIcon),D=!!(T.prepend||o.prependAvatar||o.prependIcon),N=!!(T.image||o.image),M=S||D||O,k=!!(T.text||o.text);return lu(ct(C,{class:["v-card",{"v-card--disabled":o.disabled,"v-card--flat":o.flat,"v-card--hover":o.hover&&!(o.disabled||o.flat),"v-card--link":x.value},G.value,V.value,L.value,m.value,l.value,c.value,u.value,d.value,s.value,o.class],style:[A.value,h.value,i.value,o.style],href:g.href.value,onClick:x.value&&g.navigate,tabindex:o.disabled?-1:void 0},{default:()=>{var R;return[N&&ct("div",{key:"image",class:"v-card__image"},[T.image?ct(Ac,{key:"image-defaults",disabled:!o.image,defaults:{VImg:{cover:!0,src:o.image}}},T.image):ct(Y6,{key:"image-img",cover:!0,src:o.image},null)]),ct(Bq,{name:"v-card",active:!!o.loading,color:typeof o.loading=="boolean"?void 0:o.loading},{default:T.loader}),M&&ct(Ege,{key:"item",prependAvatar:o.prependAvatar,prependIcon:o.prependIcon,title:o.title,subtitle:o.subtitle,appendAvatar:o.appendAvatar,appendIcon:o.appendIcon},{default:T.item,prepend:T.prepend,title:T.title,subtitle:T.subtitle,append:T.append}),k&&ct(_ge,{key:"text"},{default:()=>{var F;return[((F=T.text)==null?void 0:F.call(T))??o.text]}}),(R=T.default)==null?void 0:R.call(T),T.actions&&ct(Ise,null,{default:T.actions}),K6(x.value,"v-card")]}}),[[_p("ripple"),x.value&&o.ripple]])}),{}}});const qq=Symbol.for("vuetify:v-slider");function DQ(o,b,y){const T=y==="vertical",G=b.getBoundingClientRect(),V="touches"in o?o.touches[0]:o;return T?V.clientY-(G.top+G.height/2):V.clientX-(G.left+G.width/2)}function Lge(o,b){return"touches"in o&&o.touches.length?o.touches[0][b]:"changedTouches"in o&&o.changedTouches.length?o.changedTouches[0][b]:o[b]}const Fse=Br({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:o=>typeof o=="boolean"||o==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:o=>typeof o=="boolean"||o==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:o=>["vertical","horizontal"].includes(o)},reverse:Boolean,...Tg(),...Wy({elevation:2})},"Slider"),Bse=o=>{const b=on(()=>parseFloat(o.min)),y=on(()=>parseFloat(o.max)),T=on(()=>+o.step>0?parseFloat(o.step):0),G=on(()=>Math.max(Ine(T.value),Ine(b.value)));function V(L){if(L=parseFloat(L),T.value<=0)return L;const A=yg(L,b.value,y.value),s=b.value%T.value,m=Math.round((A-s)/T.value)*T.value+s;return parseFloat(Math.min(m,y.value).toFixed(G.value))}return{min:b,max:y,step:T,decimals:G,roundValue:V}},Hse=o=>{let{props:b,steps:y,onSliderStart:T,onSliderMove:G,onSliderEnd:V,getActiveThumb:L}=o;const{isRtl:A}=Sg(),s=Xo(b,"reverse"),m=on(()=>b.direction==="vertical"),h=on(()=>m.value!==s.value),{min:l,max:c,step:i,decimals:u,roundValue:d}=y,g=on(()=>parseInt(b.thumbSize,10)),v=on(()=>parseInt(b.tickSize,10)),x=on(()=>parseInt(b.trackSize,10)),C=on(()=>(c.value-l.value)/i.value),_=Xo(b,"disabled"),$=on(()=>b.error||b.disabled?void 0:b.thumbColor??b.color),S=on(()=>b.error||b.disabled?void 0:b.trackColor??b.color),O=on(()=>b.error||b.disabled?void 0:b.trackFillColor??b.color),D=xa(!1),N=xa(0),M=No(),k=No();function R(ne){var Oe;const fe=b.direction==="vertical",X=fe?"top":"left",ye=fe?"height":"width",Ce=fe?"clientY":"clientX",{[X]:$e,[ye]:ke}=(Oe=M.value)==null?void 0:Oe.$el.getBoundingClientRect(),Ne=Lge(ne,Ce);let Ve=Math.min(Math.max((Ne-$e-N.value)/ke,0),1)||0;return(fe?h.value:h.value!==A.value)&&(Ve=1-Ve),d(l.value+Ve*(c.value-l.value))}const F=ne=>{V({value:R(ne)}),D.value=!1,N.value=0},H=ne=>{k.value=L(ne),k.value&&(k.value.focus(),D.value=!0,k.value.contains(ne.target)?N.value=DQ(ne,k.value,b.direction):(N.value=0,G({value:R(ne)})),T({value:R(ne)}))},j={passive:!0,capture:!0};function P(ne){G({value:R(ne)})}function ee(ne){ne.stopPropagation(),ne.preventDefault(),F(ne),window.removeEventListener("mousemove",P,j),window.removeEventListener("mouseup",ee)}function J(ne){var fe;F(ne),window.removeEventListener("touchmove",P,j),(fe=ne.target)==null||fe.removeEventListener("touchend",J)}function K(ne){var fe;H(ne),window.addEventListener("touchmove",P,j),(fe=ne.target)==null||fe.addEventListener("touchend",J,{passive:!1})}function ae(ne){ne.preventDefault(),H(ne),window.addEventListener("mousemove",P,j),window.addEventListener("mouseup",ee,{passive:!1})}const Q=ne=>{const fe=(ne-l.value)/(c.value-l.value)*100;return yg(isNaN(fe)?0:fe,0,100)},he=Xo(b,"showTicks"),ge=on(()=>he.value?b.ticks?Array.isArray(b.ticks)?b.ticks.map(ne=>({value:ne,position:Q(ne),label:ne.toString()})):Object.keys(b.ticks).map(ne=>({value:parseFloat(ne),position:Q(parseFloat(ne)),label:b.ticks[ne]})):C.value!==1/0?AE(C.value+1).map(ne=>{const fe=l.value+ne*i.value;return{value:fe,position:Q(fe)}}):[]:[]),Se=on(()=>ge.value.some(ne=>{let{label:fe}=ne;return!!fe})),ce={activeThumbRef:k,color:Xo(b,"color"),decimals:u,disabled:_,direction:Xo(b,"direction"),elevation:Xo(b,"elevation"),hasLabels:Se,isReversed:s,indexFromEnd:h,min:l,max:c,mousePressed:D,numTicks:C,onSliderMousedown:ae,onSliderTouchstart:K,parsedTicks:ge,parseMouseMove:R,position:Q,readonly:Xo(b,"readonly"),rounded:Xo(b,"rounded"),roundValue:d,showTicks:he,startOffset:N,step:i,thumbSize:g,thumbColor:$,thumbLabel:Xo(b,"thumbLabel"),ticks:Xo(b,"ticks"),tickSize:v,trackColor:S,trackContainerRef:M,trackFillColor:O,trackSize:x,vertical:m};return Gl(qq,ce),ce},Dge=Br({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},...ts()},"VSliderThumb"),$Q=Go()({name:"VSliderThumb",directives:{Ripple:k3},props:Dge(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y,emit:T}=b;const G=ni(qq),{isRtl:V,rtlClasses:L}=Sg();if(!G)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:A,step:s,disabled:m,thumbSize:h,thumbLabel:l,direction:c,isReversed:i,vertical:u,readonly:d,elevation:g,mousePressed:v,decimals:x,indexFromEnd:C}=G,{textColorClasses:_,textColorStyles:$}=xg(A),{pageup:S,pagedown:O,end:D,home:N,left:M,right:k,down:R,up:F}=Cde,H=[S,O,D,N,M,k,R,F],j=on(()=>s.value?[1,2,3]:[1,5,10]);function P(J,K){if(!H.includes(J.key))return;J.preventDefault();const ae=s.value||.1,Q=(o.max-o.min)/ae;if([M,k,R,F].includes(J.key)){const ge=(u.value?[V.value?M:k,i.value?R:F]:C.value!==V.value?[M,F]:[k,F]).includes(J.key)?1:-1,Se=J.shiftKey?2:J.ctrlKey?1:0;K=K+ge*ae*j.value[Se]}else if(J.key===N)K=o.min;else if(J.key===D)K=o.max;else{const he=J.key===O?1:-1;K=K-he*ae*(Q>100?Q/10:10)}return Math.max(o.min,Math.min(o.max,K))}function ee(J){const K=P(J,o.modelValue);K!=null&&T("update:modelValue",K)}return ga(()=>{const J=ra(C.value?100-o.position:o.position,"%"),{elevationClasses:K}=Gy(on(()=>m.value?void 0:g.value));return ct("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":o.focused,"v-slider-thumb--pressed":o.focused&&v.value},o.class,L.value],style:[{"--v-slider-thumb-position":J,"--v-slider-thumb-size":ra(h.value)},o.style],role:"slider",tabindex:m.value?-1:0,"aria-valuemin":o.min,"aria-valuemax":o.max,"aria-valuenow":o.modelValue,"aria-readonly":!!d.value,"aria-orientation":c.value,onKeydown:d.value?void 0:ee},[ct("div",{class:["v-slider-thumb__surface",_.value,K.value],style:{...$.value}},null),lu(ct("div",{class:["v-slider-thumb__ripple",_.value],style:$.value},null),[[_p("ripple"),o.ripple,null,{circle:!0,center:!0}]]),ct(The,{origin:"bottom center"},{default:()=>{var ae;return[lu(ct("div",{class:"v-slider-thumb__label-container"},[ct("div",{class:["v-slider-thumb__label"]},[ct("div",null,[((ae=y["thumb-label"])==null?void 0:ae.call(y,{modelValue:o.modelValue}))??o.modelValue.toFixed(s.value?x.value:1)])])]),[[R2,l.value&&o.focused||l.value==="always"]])]}})])}),{}}});const $ge=Br({start:{type:Number,required:!0},stop:{type:Number,required:!0},...ts()},"VSliderTrack"),zse=Go()({name:"VSliderTrack",props:$ge(),emits:{},setup(o,b){let{slots:y}=b;const T=ni(qq);if(!T)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:G,parsedTicks:V,rounded:L,showTicks:A,tickSize:s,trackColor:m,trackFillColor:h,trackSize:l,vertical:c,min:i,max:u,indexFromEnd:d}=T,{roundedClasses:g}=kg(L),{backgroundColorClasses:v,backgroundColorStyles:x}=wg(h),{backgroundColorClasses:C,backgroundColorStyles:_}=wg(m),$=on(()=>`inset-${c.value?"block":"inline"}-${d.value?"end":"start"}`),S=on(()=>c.value?"height":"width"),O=on(()=>({[$.value]:"0%",[S.value]:"100%"})),D=on(()=>o.stop-o.start),N=on(()=>({[$.value]:ra(o.start,"%"),[S.value]:ra(D.value,"%")})),M=on(()=>A.value?(c.value?V.value.slice().reverse():V.value).map((R,F)=>{var j;const H=R.value!==i.value&&R.value!==u.value?ra(R.position,"%"):void 0;return ct("div",{key:R.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":R.position>=o.start&&R.position<=o.stop,"v-slider-track__tick--first":R.value===i.value,"v-slider-track__tick--last":R.value===u.value}],style:{[$.value]:H}},[(R.label||y["tick-label"])&&ct("div",{class:"v-slider-track__tick-label"},[((j=y["tick-label"])==null?void 0:j.call(y,{tick:R,index:F}))??R.label])])}):[]);return ga(()=>ct("div",{class:["v-slider-track",g.value,o.class],style:[{"--v-slider-track-size":ra(l.value),"--v-slider-tick-size":ra(s.value)},o.style]},[ct("div",{class:["v-slider-track__background",C.value,{"v-slider-track__background--opacity":!!G.value||!h.value}],style:{...O.value,..._.value}},null),ct("div",{class:["v-slider-track__fill",v.value],style:{...N.value,...x.value}},null),A.value&&ct("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":A.value==="always"}]},[M.value])])),{}}}),Oge=Br({...lH(),...Fse(),...e$(),modelValue:{type:[Number,String],default:0}},"VSlider"),Vse=Go()({name:"VSlider",props:Oge(),emits:{"update:focused":o=>!0,"update:modelValue":o=>!0,start:o=>!0,end:o=>!0},setup(o,b){let{slots:y,emit:T}=b;const G=No(),{rtlClasses:V}=Sg(),L=Bse(o),A=ri(o,"modelValue",void 0,S=>L.roundValue(S??L.min.value)),{min:s,max:m,mousePressed:h,roundValue:l,onSliderMousedown:c,onSliderTouchstart:i,trackContainerRef:u,position:d,hasLabels:g,readonly:v}=Hse({props:o,steps:L,onSliderStart:()=>{T("start",A.value)},onSliderEnd:S=>{let{value:O}=S;const D=l(O);A.value=D,T("end",D)},onSliderMove:S=>{let{value:O}=S;return A.value=l(O)},getActiveThumb:()=>{var S;return(S=G.value)==null?void 0:S.$el}}),{isFocused:x,focus:C,blur:_}=q6(o),$=on(()=>d(A.value));return ga(()=>{const[S,O]=_2.filterProps(o),D=!!(o.label||y.label||y.prepend);return ct(_2,Jo({class:["v-slider",{"v-slider--has-labels":!!y["tick-label"]||g.value,"v-slider--focused":x.value,"v-slider--pressed":h.value,"v-slider--disabled":o.disabled},V.value,o.class],style:o.style},S,{focused:x.value}),{...y,prepend:D?N=>{var M,k;return ct(Uo,null,[((M=y.label)==null?void 0:M.call(y,N))??(o.label?ct(iH,{id:N.id.value,class:"v-slider__label",text:o.label},null):void 0),(k=y.prepend)==null?void 0:k.call(y,N)])}:void 0,default:N=>{let{id:M,messagesId:k}=N;return ct("div",{class:"v-slider__container",onMousedown:v.value?void 0:c,onTouchstartPassive:v.value?void 0:i},[ct("input",{id:M.value,name:o.name||M.value,disabled:!!o.disabled,readonly:!!o.readonly,tabindex:"-1",value:A.value},null),ct(zse,{ref:u,start:0,stop:$.value},{"tick-label":y["tick-label"]}),ct($Q,{ref:G,"aria-describedby":k.value,focused:x.value,min:s.value,max:m.value,modelValue:A.value,"onUpdate:modelValue":R=>A.value=R,position:$.value,elevation:o.elevation,onFocus:C,onBlur:_},{"thumb-label":y["thumb-label"]})])}})}),{}}});function Pge(o,b,y){if(b==null)return o;if(Array.isArray(b))throw new Error("Multiple matches is not implemented");return typeof b=="number"&&~b?ct(Uo,null,[ct("span",{class:"v-combobox__unmask"},[o.substr(0,b)]),ct("span",{class:"v-combobox__mask"},[o.substr(b,y)]),ct("span",{class:"v-combobox__unmask"},[o.substr(b+y)])]):o}const Ige=Br({autoSelectFirst:{type:[Boolean,String]},delimiters:Array,...Jq({filterKeys:["title"]}),...Kq({hideNoData:!0,returnObject:!0}),...PE(fH({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...C3({transition:!1})},"VCombobox"),Use=Go()({name:"VCombobox",props:Ige(),emits:{"update:focused":o=>!0,"update:modelValue":o=>!0,"update:search":o=>!0,"update:menu":o=>!0},setup(o,b){var X;let{emit:y,slots:T}=b;const{t:G}=L2(),V=No(),L=xa(!1),A=xa(!0),s=xa(!1),m=No(),h=No(),l=ri(o,"menu"),c=on({get:()=>l.value,set:ye=>{var Ce;l.value&&!ye&&((Ce=m.value)!=null&&Ce.ΨopenChildren)||(l.value=ye)}}),i=xa(-1);let u=!1;const d=on(()=>{var ye;return(ye=V.value)==null?void 0:ye.color}),g=on(()=>c.value?o.closeText:o.openText),{items:v,transformIn:x,transformOut:C}=zq(o),{textColorClasses:_,textColorStyles:$}=xg(d),S=ri(o,"modelValue",[],ye=>x(xd(ye)),ye=>{const Ce=C(ye);return o.multiple?Ce:Ce[0]??null}),O=cH(),D=xa(o.multiple?"":((X=S.value[0])==null?void 0:X.title)??""),N=on({get:()=>D.value,set:ye=>{var Ce;if(D.value=ye,o.multiple||(S.value=[h3(o,ye)]),ye&&o.multiple&&((Ce=o.delimiters)!=null&&Ce.length)){const $e=ye.split(new RegExp(`(?:${o.delimiters.join("|")})+`));$e.length>1&&($e.forEach(ke=>{ke=ke.trim(),ke&&Se(h3(o,ke))}),D.value="")}ye||(i.value=-1),A.value=!ye}});ta(D,ye=>{u?Ll(()=>u=!1):L.value&&!c.value&&(c.value=!0),y("update:search",ye)}),ta(S,ye=>{var Ce;o.multiple||(D.value=((Ce=ye[0])==null?void 0:Ce.title)??"")});const{filteredItems:M,getMatches:k}=Qq(o,v,()=>A.value?"":N.value),R=on(()=>o.hideSelected?M.value.filter(ye=>!S.value.some(Ce=>Ce.value===ye.value)):M.value),F=on(()=>S.value.map(ye=>ye.value)),H=on(()=>{var Ce;return(o.autoSelectFirst===!0||o.autoSelectFirst==="exact"&&N.value===((Ce=R.value[0])==null?void 0:Ce.title))&&R.value.length>0&&!A.value&&!s.value}),j=on(()=>o.hideNoData&&!v.value.length||o.readonly||(O==null?void 0:O.isReadonly.value)),P=No(),{onListScroll:ee,onListKeydown:J}=Yq(P,V);function K(ye){u=!0,o.openOnClear&&(c.value=!0)}function ae(){j.value||(c.value=!0)}function Q(ye){j.value||(L.value&&(ye.preventDefault(),ye.stopPropagation()),c.value=!c.value)}function he(ye){var ke;if(o.readonly||O!=null&&O.isReadonly.value)return;const Ce=V.value.selectionStart,$e=S.value.length;if((i.value>-1||["Enter","ArrowDown","ArrowUp"].includes(ye.key))&&ye.preventDefault(),["Enter","ArrowDown"].includes(ye.key)&&(c.value=!0),["Escape"].includes(ye.key)&&(c.value=!1),["Enter","Escape","Tab"].includes(ye.key)&&(H.value&&["Enter","Tab"].includes(ye.key)&&Se(M.value[0]),A.value=!0),ye.key==="ArrowDown"&&H.value&&((ke=P.value)==null||ke.focus("next")),!!o.multiple){if(["Backspace","Delete"].includes(ye.key)){if(i.value<0){ye.key==="Backspace"&&!N.value&&(i.value=$e-1);return}const Ne=i.value,Ve=S.value[i.value];Ve&&!Ve.props.disabled&&Se(Ve),i.value=Ne>=$e-1?$e-2:Ne}if(ye.key==="ArrowLeft"){if(i.value<0&&Ce>0)return;const Ne=i.value>-1?i.value-1:$e-1;S.value[Ne]?i.value=Ne:(i.value=-1,V.value.setSelectionRange(N.value.length,N.value.length))}if(ye.key==="ArrowRight"){if(i.value<0)return;const Ne=i.value+1;S.value[Ne]?i.value=Ne:(i.value=-1,V.value.setSelectionRange(0,0))}ye.key==="Enter"&&N.value&&(Se(h3(o,N.value)),N.value="")}}function ge(){var ye;L.value&&(A.value=!0,(ye=V.value)==null||ye.focus())}function Se(ye){if(o.multiple){const Ce=S.value.findIndex($e=>o.valueComparator($e.value,ye.value));if(Ce===-1)S.value=[...S.value,ye];else{const $e=[...S.value];$e.splice(Ce,1),S.value=$e}N.value=""}else S.value=[ye],D.value=ye.title,Ll(()=>{c.value=!1,A.value=!0})}function ce(ye){L.value=!0,setTimeout(()=>{s.value=!0})}function ne(ye){s.value=!1}function fe(ye){(ye==null||ye===""&&!o.multiple)&&(S.value=[])}return ta(M,ye=>{!ye.length&&o.hideNoData&&(c.value=!1)}),ta(L,(ye,Ce)=>{ye||ye===Ce||(i.value=-1,c.value=!1,H.value&&!s.value&&!S.value.some($e=>{let{value:ke}=$e;return ke===R.value[0].value})?Se(R.value[0]):o.multiple&&N.value&&(S.value=[...S.value,h3(o,N.value)],N.value=""))}),ta(c,()=>{if(!o.hideSelected&&c.value&&S.value.length){const ye=R.value.findIndex(Ce=>S.value.some($e=>o.valueComparator($e.value,Ce.value)));yl&&window.requestAnimationFrame(()=>{var Ce;ye>=0&&((Ce=h.value)==null||Ce.scrollToIndex(ye))})}}),ga(()=>{const ye=!!(o.chips||T.chip),Ce=!!(!o.hideNoData||R.value.length||T["prepend-item"]||T["append-item"]||T["no-data"]),$e=S.value.length>0,[ke]=Ep.filterProps(o);return ct(Ep,Jo({ref:V},ke,{modelValue:N.value,"onUpdate:modelValue":[Ne=>N.value=Ne,fe],focused:L.value,"onUpdate:focused":Ne=>L.value=Ne,validationValue:S.externalValue,counterValue:o.multiple?S.value.length:N.value.length,dirty:$e,class:["v-combobox",{"v-combobox--active-menu":c.value,"v-combobox--chips":!!o.chips,"v-combobox--selection-slot":!!T.selection,"v-combobox--selecting-index":i.value>-1,[`v-combobox--${o.multiple?"multiple":"single"}`]:!0},o.class],style:o.style,readonly:o.readonly,placeholder:$e?void 0:o.placeholder,"onClick:clear":K,"onMousedown:control":ae,onKeydown:he}),{...T,default:()=>ct(Uo,null,[ct(O2,Jo({ref:m,modelValue:c.value,"onUpdate:modelValue":Ne=>c.value=Ne,activator:"parent",contentClass:"v-combobox__content",disabled:j.value,eager:o.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:o.transition,onAfterLeave:ge},o.menuProps),{default:()=>[Ce&&ct($2,{ref:P,selected:F.value,selectStrategy:o.multiple?"independent":"single-independent",onMousedown:Ne=>Ne.preventDefault(),onKeydown:J,onFocusin:ce,onFocusout:ne,onScrollPassive:ee,tabindex:"-1",color:o.itemColor??o.color},{default:()=>{var Ne,Ve,Oe;return[(Ne=T["prepend-item"])==null?void 0:Ne.call(T),!R.value.length&&!o.hideNoData&&(((Ve=T["no-data"])==null?void 0:Ve.call(T))??ct(fm,{title:G(o.noDataText)},null)),ct(jq,{ref:h,renderless:!0,items:R.value},{default:Fe=>{var pe;let{item:ie,index:we,itemRef:se}=Fe;const ue=Jo(ie.props,{ref:se,key:we,active:H.value&&we===0?!0:void 0,onClick:()=>Se(ie)});return((pe=T.item)==null?void 0:pe.call(T,{item:ie,index:we,props:ue}))??ct(fm,ue,{prepend:le=>{let{isSelected:Te}=le;return ct(Uo,null,[o.multiple&&!o.hideSelected?ct(FE,{key:ie.value,modelValue:Te,ripple:!1,tabindex:"-1"},null):void 0,ie.props.prependIcon&&ct(js,{icon:ie.props.prependIcon},null)])},title:()=>{var le,Te;return A.value?ie.title:Pge(ie.title,(le=k(ie))==null?void 0:le.title,((Te=N.value)==null?void 0:Te.length)??0)}})}}),(Oe=T["append-item"])==null?void 0:Oe.call(T)]}})]}),S.value.map((Ne,Ve)=>{var ie;function Oe(we){we.stopPropagation(),we.preventDefault(),Se(Ne)}const Fe={"onClick:close":Oe,onMousedown(we){we.preventDefault(),we.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0};return ct("div",{key:Ne.value,class:["v-combobox__selection",Ve===i.value&&["v-combobox__selection--selected",_.value]],style:Ve===i.value?$.value:{}},[ye?T.chip?ct(Ac,{key:"chip-defaults",defaults:{VChip:{closable:o.closableChips,size:"small",text:Ne.title}}},{default:()=>{var we;return[(we=T.chip)==null?void 0:we.call(T,{item:Ne,index:Ve,props:Fe})]}}):ct(wE,Jo({key:"chip",closable:o.closableChips,size:"small",text:Ne.title,disabled:Ne.props.disabled},Fe),null):((ie=T.selection)==null?void 0:ie.call(T,{item:Ne,index:Ve}))??ct("span",{class:"v-combobox__selection-text"},[Ne.title,o.multiple&&Ve!0},setup(o,b){let{slots:y}=b;const T=ri(o,"modelValue"),{scopeId:G}=Uq(),V=No();function L(s){var l,c;const m=s.relatedTarget,h=s.target;if(m!==h&&((l=V.value)!=null&&l.contentEl)&&((c=V.value)!=null&&c.globalTop)&&![document,V.value.contentEl].includes(h)&&!V.value.contentEl.contains(h)){const i=wB(V.value.contentEl);if(!i.length)return;const u=i[0],d=i[i.length-1];m===u?d.focus():u.focus()}}yl&&ta(()=>T.value&&o.retainFocus,s=>{s?document.addEventListener("focusin",L):document.removeEventListener("focusin",L)},{immediate:!0}),ta(T,async s=>{var m,h;await Ll(),s?(m=V.value.contentEl)==null||m.focus({preventScroll:!0}):(h=V.value.activatorEl)==null||h.focus({preventScroll:!0})});const A=on(()=>Jo({"aria-haspopup":"dialog","aria-expanded":String(T.value)},o.activatorProps));return ga(()=>{const[s]=LB.filterProps(o);return ct(LB,Jo({ref:V,class:["v-dialog",{"v-dialog--fullscreen":o.fullscreen,"v-dialog--scrollable":o.scrollable},o.class],style:o.style},s,{modelValue:T.value,"onUpdate:modelValue":m=>T.value=m,"aria-modal":"true",activatorProps:A.value,role:"dialog"},G),{activator:y.activator,default:function(){for(var m=arguments.length,h=new Array(m),l=0;l{var c;return[(c=y.default)==null?void 0:c.call(y,...h)]}})}})}),A3({},V)}});const z6=Symbol.for("vuetify:v-expansion-panel"),Bge=["default","accordion","inset","popout"],Hge=Br({color:String,variant:{type:String,default:"default",validator:o=>Bge.includes(o)},readonly:Boolean,...ts(),...$q(),...mc(),...Gc()},"VExpansionPanels"),Wse=Go()({name:"VExpansionPanels",props:Hge(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y}=b;Iq(o,z6);const{themeClasses:T}=Uu(o),G=on(()=>o.variant&&`v-expansion-panels--variant-${o.variant}`);return R0({VExpansionPanel:{color:Xo(o,"color")},VExpansionPanelTitle:{readonly:Xo(o,"readonly")}}),ga(()=>ct(o.tag,{class:["v-expansion-panels",T.value,G.value,o.class],style:o.style},y)),{}}}),zge=Br({...ts(),...Vq()},"VExpansionPanelText"),eee=Go()({name:"VExpansionPanelText",props:zge(),setup(o,b){let{slots:y}=b;const T=ni(z6);if(!T)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:G,onAfterLeave:V}=Rse(o,T.isSelected);return ga(()=>ct(_q,{onAfterLeave:V},{default:()=>{var L;return[lu(ct("div",{class:["v-expansion-panel-text",o.class],style:o.style},[y.default&&G.value&&ct("div",{class:"v-expansion-panel-text__wrapper"},[(L=y.default)==null?void 0:L.call(y)])]),[[R2,T.isSelected.value]])]}})),{}}}),Gse=Br({color:String,expandIcon:{type:vi,default:"$expand"},collapseIcon:{type:vi,default:"$collapse"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...ts()},"VExpansionPanelTitle"),tee=Go()({name:"VExpansionPanelTitle",directives:{Ripple:k3},props:Gse(),setup(o,b){let{slots:y}=b;const T=ni(z6);if(!T)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:G,backgroundColorStyles:V}=wg(o,"color"),L=on(()=>({collapseIcon:o.collapseIcon,disabled:T.disabled.value,expanded:T.isSelected.value,expandIcon:o.expandIcon,readonly:o.readonly}));return ga(()=>{var A;return lu(ct("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":T.isSelected.value},G.value,o.class],style:[V.value,o.style],type:"button",tabindex:T.disabled.value?-1:void 0,disabled:T.disabled.value,"aria-expanded":T.isSelected.value,onClick:o.readonly?void 0:T.toggle},[ct("span",{class:"v-expansion-panel-title__overlay"},null),(A=y.default)==null?void 0:A.call(y,L.value),!o.hideActions&&ct("span",{class:"v-expansion-panel-title__icon"},[y.actions?y.actions(L.value):ct(js,{icon:T.isSelected.value?o.collapseIcon:o.expandIcon},null)])]),[[_p("ripple"),o.ripple]])}),{}}}),Vge=Br({title:String,text:String,bgColor:String,...ts(),...Wy(),...Oq(),...Vq(),...Tg(),...mc(),...Gse()},"VExpansionPanel"),Zse=Go()({name:"VExpansionPanel",props:Vge(),emits:{"group:selected":o=>!0},setup(o,b){let{slots:y}=b;const T=Pq(o,z6),{backgroundColorClasses:G,backgroundColorStyles:V}=wg(o,"bgColor"),{elevationClasses:L}=Gy(o),{roundedClasses:A}=kg(o),s=on(()=>(T==null?void 0:T.disabled.value)||o.disabled),m=on(()=>T.group.items.value.reduce((c,i,u)=>(T.group.selected.value.includes(i.id)&&c.push(u),c),[])),h=on(()=>{const c=T.group.items.value.findIndex(i=>i.id===T.id);return!T.isSelected.value&&m.value.some(i=>i-c===1)}),l=on(()=>{const c=T.group.items.value.findIndex(i=>i.id===T.id);return!T.isSelected.value&&m.value.some(i=>i-c===-1)});return Gl(z6,T),R0({VExpansionPanelText:{eager:Xo(o,"eager")}}),ga(()=>{const c=!!(y.text||o.text),i=!!(y.title||o.title);return ct(o.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":T.isSelected.value,"v-expansion-panel--before-active":h.value,"v-expansion-panel--after-active":l.value,"v-expansion-panel--disabled":s.value},A.value,G.value,o.class],style:[V.value,o.style]},{default:()=>{var u;return[ct("div",{class:["v-expansion-panel__shadow",...L.value]},null),i&&ct(tee,{key:"title",collapseIcon:o.collapseIcon,color:o.color,expandIcon:o.expandIcon,hideActions:o.hideActions,ripple:o.ripple},{default:()=>[y.title?y.title():o.title]}),c&&ct(eee,{key:"text"},{default:()=>[y.text?y.text():o.text]}),(u=y.default)==null?void 0:u.call(y)]}})}),{}}});const Uge=Br({fluid:{type:Boolean,default:!1},...ts(),...mc()},"VContainer"),V6=Go()({name:"VContainer",props:Uge(),setup(o,b){let{slots:y}=b;const{rtlClasses:T}=Sg();return ga(()=>ct(o.tag,{class:["v-container",{"v-container--fluid":o.fluid},T.value,o.class],style:o.style},y)),{}}}),jse=(()=>uH.reduce((o,b)=>(o[b]={type:[Boolean,String,Number],default:!1},o),{}))(),Yse=(()=>uH.reduce((o,b)=>{const y="offset"+_0(b);return o[y]={type:[String,Number],default:null},o},{}))(),Kse=(()=>uH.reduce((o,b)=>{const y="order"+_0(b);return o[y]={type:[String,Number],default:null},o},{}))(),Are={col:Object.keys(jse),offset:Object.keys(Yse),order:Object.keys(Kse)};function Wge(o,b,y){let T=o;if(!(y==null||y===!1)){if(b){const G=b.replace(o,"");T+=`-${G}`}return o==="col"&&(T="v-"+T),o==="col"&&(y===""||y===!0)||(T+=`-${y}`),T.toLowerCase()}}const Gge=["auto","start","end","center","baseline","stretch"],Zge=Br({cols:{type:[Boolean,String,Number],default:!1},...jse,offset:{type:[String,Number],default:null},...Yse,order:{type:[String,Number],default:null},...Kse,alignSelf:{type:String,default:null,validator:o=>Gge.includes(o)},...ts(),...mc()},"VCol"),kp=Go()({name:"VCol",props:Zge(),setup(o,b){let{slots:y}=b;const T=on(()=>{const G=[];let V;for(V in Are)Are[V].forEach(A=>{const s=o[A],m=Wge(V,A,s);m&&G.push(m)});const L=G.some(A=>A.startsWith("v-col-"));return G.push({"v-col":!L||!o.cols,[`v-col-${o.cols}`]:o.cols,[`offset-${o.offset}`]:o.offset,[`order-${o.order}`]:o.order,[`align-self-${o.alignSelf}`]:o.alignSelf}),G});return()=>{var G;return um(o.tag,{class:[T.value,o.class],style:o.style},(G=y.default)==null?void 0:G.call(y))}}}),nee=["start","end","center"],Xse=["space-between","space-around","space-evenly"];function ree(o,b){return uH.reduce((y,T)=>{const G=o+_0(T);return y[G]=b(),y},{})}const jge=[...nee,"baseline","stretch"],Jse=o=>jge.includes(o),Qse=ree("align",()=>({type:String,default:null,validator:Jse})),Yge=[...nee,...Xse],qse=o=>Yge.includes(o),eie=ree("justify",()=>({type:String,default:null,validator:qse})),Kge=[...nee,...Xse,"stretch"],tie=o=>Kge.includes(o),nie=ree("alignContent",()=>({type:String,default:null,validator:tie})),Mre={align:Object.keys(Qse),justify:Object.keys(eie),alignContent:Object.keys(nie)},Xge={align:"align",justify:"justify",alignContent:"align-content"};function Jge(o,b,y){let T=Xge[o];if(y!=null){if(b){const G=b.replace(o,"");T+=`-${G}`}return T+=`-${y}`,T.toLowerCase()}}const Qge=Br({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:Jse},...Qse,justify:{type:String,default:null,validator:qse},...eie,alignContent:{type:String,default:null,validator:tie},...nie,...ts(),...mc()},"VRow"),sm=Go()({name:"VRow",props:Qge(),setup(o,b){let{slots:y}=b;const T=on(()=>{const G=[];let V;for(V in Mre)Mre[V].forEach(L=>{const A=o[L],s=Jge(V,L,A);s&&G.push(s)});return G.push({"v-row--no-gutters":o.noGutters,"v-row--dense":o.dense,[`align-${o.align}`]:o.align,[`justify-${o.justify}`]:o.justify,[`align-content-${o.alignContent}`]:o.alignContent}),G});return()=>{var G;return um(o.tag,{class:["v-row",T.value,o.class],style:o.style},(G=y.default)==null?void 0:G.call(y))}}}),rie=NE("v-spacer","div","VSpacer");const qge=Br({scrollable:Boolean,...ts(),...mc({tag:"main"})},"VMain"),epe=Go()({name:"VMain",props:qge(),setup(o,b){let{slots:y}=b;const{mainStyles:T}=she(),{ssrBootStyles:G}=Dq();return ga(()=>ct(o.tag,{class:["v-main",{"v-main--scrollable":o.scrollable},o.class],style:[T.value,G.value,o.style]},{default:()=>{var V,L;return[o.scrollable?ct("div",{class:"v-main__scroller"},[(V=y.default)==null?void 0:V.call(y)]):(L=y.default)==null?void 0:L.call(y)]}})),{}}}),tpe=Br({...lH(),...e$(),...Fse(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),oie=Go()({name:"VRangeSlider",props:tpe(),emits:{"update:focused":o=>!0,"update:modelValue":o=>!0,end:o=>!0,start:o=>!0},setup(o,b){let{slots:y,emit:T}=b;const G=No(),V=No(),L=No(),{rtlClasses:A}=Sg();function s(N){if(!G.value||!V.value)return;const M=DQ(N,G.value.$el,o.direction),k=DQ(N,V.value.$el,o.direction),R=Math.abs(M),F=Math.abs(k);return RN!=null&&N.length?N.map(M=>m.roundValue(M)):[0,0]),{activeThumbRef:l,hasLabels:c,max:i,min:u,mousePressed:d,onSliderMousedown:g,onSliderTouchstart:v,position:x,trackContainerRef:C}=Hse({props:o,steps:m,onSliderStart:()=>{T("start",h.value)},onSliderEnd:N=>{var R;let{value:M}=N;const k=l.value===((R=G.value)==null?void 0:R.$el)?[M,h.value[1]]:[h.value[0],M];!o.strict&&k[0]{var F,H,j,P;let{value:M}=N;const[k,R]=h.value;!o.strict&&k===R&&k!==u.value&&(l.value=M>k?(F=V.value)==null?void 0:F.$el:(H=G.value)==null?void 0:H.$el,(j=l.value)==null||j.focus()),l.value===((P=G.value)==null?void 0:P.$el)?h.value=[Math.min(M,R),R]:h.value=[k,Math.max(k,M)]},getActiveThumb:s}),{isFocused:_,focus:$,blur:S}=q6(o),O=on(()=>x(h.value[0])),D=on(()=>x(h.value[1]));return ga(()=>{const[N,M]=_2.filterProps(o),k=!!(o.label||y.label||y.prepend);return ct(_2,Jo({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!y["tick-label"]||c.value,"v-slider--focused":_.value,"v-slider--pressed":d.value,"v-slider--disabled":o.disabled},A.value,o.class],style:o.style,ref:L},N,{focused:_.value}),{...y,prepend:k?R=>{var F,H;return ct(Uo,null,[((F=y.label)==null?void 0:F.call(y,R))??(o.label?ct(iH,{class:"v-slider__label",text:o.label},null):void 0),(H=y.prepend)==null?void 0:H.call(y,R)])}:void 0,default:R=>{var j,P;let{id:F,messagesId:H}=R;return ct("div",{class:"v-slider__container",onMousedown:g,onTouchstartPassive:v},[ct("input",{id:`${F.value}_start`,name:o.name||F.value,disabled:!!o.disabled,readonly:!!o.readonly,tabindex:"-1",value:h.value[0]},null),ct("input",{id:`${F.value}_stop`,name:o.name||F.value,disabled:!!o.disabled,readonly:!!o.readonly,tabindex:"-1",value:h.value[1]},null),ct(zse,{ref:C,start:O.value,stop:D.value},{"tick-label":y["tick-label"]}),ct($Q,{ref:G,"aria-describedby":H.value,focused:_&&l.value===((j=G.value)==null?void 0:j.$el),modelValue:h.value[0],"onUpdate:modelValue":ee=>h.value=[ee,h.value[1]],onFocus:ee=>{var J,K,ae,Q;$(),l.value=(J=G.value)==null?void 0:J.$el,h.value[0]===h.value[1]&&h.value[1]===u.value&&ee.relatedTarget!==((K=V.value)==null?void 0:K.$el)&&((ae=G.value)==null||ae.$el.blur(),(Q=V.value)==null||Q.$el.focus())},onBlur:()=>{S(),l.value=void 0},min:u.value,max:h.value[1],position:O.value},{"thumb-label":y["thumb-label"]}),ct($Q,{ref:V,"aria-describedby":H.value,focused:_&&l.value===((P=V.value)==null?void 0:P.$el),modelValue:h.value[1],"onUpdate:modelValue":ee=>h.value=[h.value[0],ee],onFocus:ee=>{var J,K,ae,Q;$(),l.value=(J=V.value)==null?void 0:J.$el,h.value[0]===h.value[1]&&h.value[0]===i.value&&ee.relatedTarget!==((K=G.value)==null?void 0:K.$el)&&((ae=V.value)==null||ae.$el.blur(),(Q=G.value)==null||Q.$el.focus())},onBlur:()=>{S(),l.value=void 0},min:h.value[0],max:i.value,position:D.value},{"thumb-label":y["thumb-label"]})])}})}),{}}});const aie=Br({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...ts(),...Lp(),...mc(),...Gc()},"VTable"),Ere=Go()({name:"VTable",props:aie(),setup(o,b){let{slots:y}=b;const{themeClasses:T}=Uu(o),{densityClasses:G}=L0(o);return ga(()=>ct(o.tag,{class:["v-table",{"v-table--fixed-height":!!o.height,"v-table--fixed-header":o.fixedHeader,"v-table--fixed-footer":o.fixedFooter,"v-table--has-top":!!y.top,"v-table--has-bottom":!!y.bottom,"v-table--hover":o.hover},T.value,G.value,o.class],style:o.style},{default:()=>{var V,L,A;return[(V=y.top)==null?void 0:V.call(y),y.default?ct("div",{class:"v-table__wrapper",style:{height:ra(o.height)}},[ct("table",null,[y.default()])]):(L=y.wrapper)==null?void 0:L.call(y),(A=y.bottom)==null?void 0:A.call(y)]}})),{}}});const npe=Br({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:o=>!isNaN(parseFloat(o))},maxRows:{type:[Number,String],validator:o=>!isNaN(parseFloat(o))},suffix:String,modelModifiers:Object,...e$(),...Gq()},"VTextarea"),sie=Go()({name:"VTextarea",directives:{Intersect:Rq},inheritAttrs:!1,props:npe(),emits:{"click:control":o=>!0,"mousedown:control":o=>!0,"update:focused":o=>!0,"update:modelValue":o=>!0},setup(o,b){let{attrs:y,emit:T,slots:G}=b;const V=ri(o,"modelValue"),{isFocused:L,focus:A,blur:s}=q6(o),m=on(()=>typeof o.counterValue=="function"?o.counterValue(V.value):(V.value||"").toString().length),h=on(()=>{if(y.maxlength)return y.maxlength;if(!(!o.counter||typeof o.counter!="number"&&typeof o.counter!="string"))return o.counter});function l(k,R){var F,H;!o.autofocus||!k||(H=(F=R[0].target)==null?void 0:F.focus)==null||H.call(F)}const c=No(),i=No(),u=xa(""),d=No(),g=on(()=>o.persistentPlaceholder||L.value||o.active);function v(){var k;d.value!==document.activeElement&&((k=d.value)==null||k.focus()),L.value||A()}function x(k){v(),T("click:control",k)}function C(k){T("mousedown:control",k)}function _(k){k.stopPropagation(),v(),Ll(()=>{V.value="",kae(o["onClick:clear"],k)})}function $(k){var F;const R=k.target;if(V.value=R.value,(F=o.modelModifiers)!=null&&F.trim){const H=[R.selectionStart,R.selectionEnd];Ll(()=>{R.selectionStart=H[0],R.selectionEnd=H[1]})}}const S=No(),O=No(+o.rows),D=on(()=>["plain","underlined"].includes(o.variant));fh(()=>{o.autoGrow||(O.value=+o.rows)});function N(){o.autoGrow&&Ll(()=>{if(!S.value||!i.value)return;const k=getComputedStyle(S.value),R=getComputedStyle(i.value.$el),F=parseFloat(k.getPropertyValue("--v-field-padding-top"))+parseFloat(k.getPropertyValue("--v-input-padding-top"))+parseFloat(k.getPropertyValue("--v-field-padding-bottom")),H=S.value.scrollHeight,j=parseFloat(k.lineHeight),P=Math.max(parseFloat(o.rows)*j+F,parseFloat(R.getPropertyValue("--v-input-control-height"))),ee=parseFloat(o.maxRows)*j+F||1/0,J=yg(H??0,P,ee);O.value=Math.floor((J-F)/j),u.value=ra(J)})}Cg(N),ta(V,N),ta(()=>o.rows,N),ta(()=>o.maxRows,N),ta(()=>o.density,N);let M;return ta(S,k=>{k?(M=new ResizeObserver(N),M.observe(S.value)):M==null||M.disconnect()}),dm(()=>{M==null||M.disconnect()}),ga(()=>{const k=!!(G.counter||o.counter||o.counterValue),R=!!(k||G.details),[F,H]=Cq(y),[{modelValue:j,...P}]=_2.filterProps(o),[ee]=Ose(o);return ct(_2,Jo({ref:c,modelValue:V.value,"onUpdate:modelValue":J=>V.value=J,class:["v-textarea v-text-field",{"v-textarea--prefixed":o.prefix,"v-textarea--suffixed":o.suffix,"v-text-field--prefixed":o.prefix,"v-text-field--suffixed":o.suffix,"v-textarea--auto-grow":o.autoGrow,"v-textarea--no-resize":o.noResize||o.autoGrow,"v-text-field--plain-underlined":D.value},o.class],style:o.style},F,P,{centerAffix:O.value===1&&!D.value,focused:L.value}),{...G,default:J=>{let{isDisabled:K,isDirty:ae,isReadonly:Q,isValid:he}=J;return ct(Zq,Jo({ref:i,style:{"--v-textarea-control-height":u.value},onClick:x,onMousedown:C,"onClick:clear":_,"onClick:prependInner":o["onClick:prependInner"],"onClick:appendInner":o["onClick:appendInner"]},ee,{active:g.value||ae.value,centerAffix:O.value===1&&!D.value,dirty:ae.value||o.dirty,disabled:K.value,focused:L.value,error:he.value===!1}),{...G,default:ge=>{let{props:{class:Se,...ce}}=ge;return ct(Uo,null,[o.prefix&&ct("span",{class:"v-text-field__prefix"},[o.prefix]),lu(ct("textarea",Jo({ref:d,class:Se,value:V.value,onInput:$,autofocus:o.autofocus,readonly:Q.value,disabled:K.value,placeholder:o.placeholder,rows:o.rows,name:o.name,onFocus:v,onBlur:s},ce,H),null),[[_p("intersect"),{handler:l},null,{once:!0}]]),o.autoGrow&&lu(ct("textarea",{class:[Se,"v-textarea__sizer"],id:`${ce.id}-sizer`,"onUpdate:modelValue":ne=>V.value=ne,ref:S,readonly:!0,"aria-hidden":"true"},null),[[Hfe,V.value]]),o.suffix&&ct("span",{class:"v-text-field__suffix"},[o.suffix])])}})},details:R?J=>{var K;return ct(Uo,null,[(K=G.details)==null?void 0:K.call(G,J),k&&ct(Uo,null,[ct("span",null,null),ct($se,{active:o.persistentCounter||L.value,value:m.value,max:h.value},G.counter)])])}:void 0})}),A3({},c,i,d)}});const rpe=Br({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),iie=Symbol.for("vuetify:data-table-pagination");function ope(o){const b=ri(o,"page",void 0,T=>+(T??1)),y=ri(o,"itemsPerPage",void 0,T=>+(T??10));return{page:b,itemsPerPage:y}}function ape(o){const{page:b,itemsPerPage:y,itemsLength:T}=o,G=on(()=>y.value===-1?0:y.value*(b.value-1)),V=on(()=>y.value===-1?T.value:Math.min(T.value,G.value+y.value)),L=on(()=>y.value===-1||T.value===0?1:Math.ceil(T.value/y.value));fh(()=>{b.value>L.value&&(b.value=L.value)});function A(c){y.value=c,b.value=1}function s(){b.value=yg(b.value+1,1,L.value)}function m(){b.value=yg(b.value-1,1,L.value)}function h(c){b.value=yg(c,1,L.value)}const l={page:b,itemsPerPage:y,startIndex:G,stopIndex:V,pageCount:L,itemsLength:T,nextPage:s,prevPage:m,setPage:h,setItemsPerPage:A};return Gl(iie,l),l}function spe(){const o=ni(iie);if(!o)throw new Error("Missing pagination!");return o}function ipe(o){const{items:b,startIndex:y,stopIndex:T,itemsPerPage:G}=o;return{paginatedItems:on(()=>G.value<=0?b.value:b.value.slice(y.value,T.value))}}const lie=Br({prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),_re=Go()({name:"VDataTableFooter",props:lie(),setup(o,b){let{slots:y}=b;const{t:T}=L2(),{page:G,pageCount:V,startIndex:L,stopIndex:A,itemsLength:s,itemsPerPage:m,setItemsPerPage:h}=spe(),l=on(()=>o.itemsPerPageOptions.map(c=>({...c,title:T(c.title)})));return()=>{var c;return ct("div",{class:"v-data-table-footer"},[(c=y.prepend)==null?void 0:c.call(y),ct("div",{class:"v-data-table-footer__items-per-page"},[ct("span",null,[T(o.itemsPerPageText)]),ct(Xq,{items:l.value,modelValue:m.value,"onUpdate:modelValue":i=>h(Number(i)),density:"compact",variant:"outlined","hide-details":!0},null)]),ct("div",{class:"v-data-table-footer__info"},[ct("div",null,[T(o.pageText,s.value?L.value+1:0,A.value,s.value)])]),ct("div",{class:"v-data-table-footer__pagination"},[ct(dc,{icon:o.firstIcon,variant:"plain",onClick:()=>G.value=1,disabled:G.value===1,"aria-label":T(o.firstPageLabel)},null),ct(dc,{icon:o.prevIcon,variant:"plain",onClick:()=>G.value=Math.max(1,G.value-1),disabled:G.value===1,"aria-label":T(o.prevPageLabel)},null),o.showCurrentPage&&ct("span",{key:"page",class:"v-data-table-footer__page"},[G.value]),ct(dc,{icon:o.nextIcon,variant:"plain",onClick:()=>G.value=Math.min(V.value,G.value+1),disabled:G.value===V.value,"aria-label":T(o.nextPageLabel)},null),ct(dc,{icon:o.lastIcon,variant:"plain",onClick:()=>G.value=V.value,disabled:G.value===V.value,"aria-label":T(o.lastPageLabel)},null)])])}}}),oee=Qde({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String]},(o,b)=>{let{slots:y,attrs:T}=b;const G=o.tag??"td";return ct(G,Jo({class:["v-data-table__td",{"v-data-table-column--fixed":o.fixed,"v-data-table-column--last-fixed":o.lastFixed,"v-data-table-column--no-padding":o.noPadding},`v-data-table-column--align-${o.align}`],style:{height:ra(o.height),width:ra(o.width),left:ra(o.fixedOffset||null)}},T),{default:()=>{var V;return[(V=y.default)==null?void 0:V.call(y)]}})}),lpe=Br({headers:{type:Array,default:()=>[]}},"DataTable-header"),cie=Symbol.for("vuetify:data-table-headers");function cpe(o,b){const y=No([]),T=No([]);fh(()=>{var i,u,d;const V=o.headers.length?Array.isArray(o.headers[0])?o.headers:[o.headers]:[],L=V.flatMap((g,v)=>g.map(x=>({column:x,row:v}))),A=V.length,s={title:"",sortable:!1},m={...s,width:48};if((i=b==null?void 0:b.groupBy)!=null&&i.value.length){const g=L.findIndex(v=>{let{column:x}=v;return x.key==="data-table-group"});g<0?L.unshift({column:{...s,key:"data-table-group",title:"Group",rowspan:A},row:0}):L.splice(g,1,{column:{...s,...L[g].column},row:L[g].row})}if((u=b==null?void 0:b.showSelect)!=null&&u.value){const g=L.findIndex(v=>{let{column:x}=v;return x.key==="data-table-select"});g<0?L.unshift({column:{...m,key:"data-table-select",rowspan:A},row:0}):L.splice(g,1,{column:{...m,...L[g].column},row:L[g].row})}if((d=b==null?void 0:b.showExpand)!=null&&d.value){const g=L.findIndex(v=>{let{column:x}=v;return x.key==="data-table-expand"});g<0?L.push({column:{...m,key:"data-table-expand",rowspan:A},row:0}):L.splice(g,1,{column:{...m,...L[g].column},row:L[g].row})}const h=AE(A).map(()=>[]),l=AE(A).fill(0);L.forEach(g=>{let{column:v,row:x}=g;const C=v.key??(typeof v.value=="string"?v.value:null),_=v.value??v.key??null;for(let $=x;$<=x+(v.rowspan??1)-1;$++)h[$].push({...v,key:C,value:_,fixedOffset:l[$],sortable:v.sortable??C!=null}),l[$]+=Number(v.width??0)}),h.forEach(g=>{for(let v=g.length;v--;v>=0)if(g[v].fixed){g[v].lastFixed=!0;return}});const c=new Set;y.value=h.map(g=>{const v=[];for(const x of g)c.has(x.key)||(c.add(x.key),v.push(x));return v}),T.value=h.at(-1)??[]});const G={headers:y,columns:T};return Gl(cie,G),G}function dH(){const o=ni(cie);if(!o)throw new Error("Missing headers!");return o}const upe={showSelectAll:!1,allSelected:()=>[],select:o=>{var T;let{items:b,value:y}=o;return new Set(y?[(T=b[0])==null?void 0:T.value]:[])},selectAll:o=>{let{selected:b}=o;return b}},uie={showSelectAll:!0,allSelected:o=>{let{currentPage:b}=o;return b},select:o=>{let{items:b,value:y,selected:T}=o;for(const G of b)y?T.add(G.value):T.delete(G.value);return T},selectAll:o=>{let{value:b,currentPage:y,selected:T}=o;return uie.select({items:y,value:b,selected:T})}},fie={showSelectAll:!0,allSelected:o=>{let{allItems:b}=o;return b},select:o=>{let{items:b,value:y,selected:T}=o;for(const G of b)y?T.add(G.value):T.delete(G.value);return T},selectAll:o=>{let{value:b,allItems:y,selected:T}=o;return fie.select({items:y,value:b,selected:T})}},fpe=Br({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:b3}},"DataTable-select"),die=Symbol.for("vuetify:data-table-selection");function dpe(o,b){let{allItems:y,currentPage:T}=b;const G=ri(o,"modelValue",o.modelValue,g=>new Set(xd(g).map(v=>{var x;return((x=y.value.find(C=>o.valueComparator(v,C.value)))==null?void 0:x.value)??v})),g=>[...g.values()]),V=on(()=>y.value.filter(g=>g.selectable)),L=on(()=>T.value.filter(g=>g.selectable)),A=on(()=>{if(typeof o.selectStrategy=="object")return o.selectStrategy;switch(o.selectStrategy){case"single":return upe;case"all":return fie;case"page":default:return uie}});function s(g){return xd(g).every(v=>G.value.has(v.value))}function m(g){return xd(g).some(v=>G.value.has(v.value))}function h(g,v){const x=A.value.select({items:g,value:v,selected:new Set(G.value)});G.value=x}function l(g){h([g],!s([g]))}function c(g){const v=A.value.selectAll({value:g,allItems:V.value,currentPage:L.value,selected:new Set(G.value)});G.value=v}const i=on(()=>G.value.size>0),u=on(()=>{const g=A.value.allSelected({allItems:V.value,currentPage:L.value});return!!g.length&&s(g)}),d={toggleSelect:l,select:h,selectAll:c,isSelected:s,isSomeSelected:m,someSelected:i,allSelected:u,showSelectAll:A.value.showSelectAll};return Gl(die,d),d}function hH(){const o=ni(die);if(!o)throw new Error("Missing selection!");return o}const hpe=Br({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),hie=Symbol.for("vuetify:data-table-sort");function mpe(o){const b=ri(o,"sortBy"),y=Xo(o,"mustSort"),T=Xo(o,"multiSort");return{sortBy:b,mustSort:y,multiSort:T}}function gpe(o){const{sortBy:b,mustSort:y,multiSort:T,page:G}=o,V=s=>{if(s.key==null)return;let m=b.value.map(l=>({...l}))??[];const h=m.find(l=>l.key===s.key);h?h.order==="desc"?y.value?h.order="asc":m=m.filter(l=>l.key!==s.key):h.order="desc":T.value?m=[...m,{key:s.key,order:"asc"}]:m=[{key:s.key,order:"asc"}],b.value=m,G&&(G.value=1)};function L(s){return!!b.value.find(m=>m.key===s.key)}const A={sortBy:b,toggleSort:V,isSorted:L};return Gl(hie,A),A}function ppe(){const o=ni(hie);if(!o)throw new Error("Missing sort!");return o}function vpe(o,b,y){const T=L2();return{sortedItems:on(()=>y.value.length?ype(b.value,y.value,T.current.value,o.customKeySort):b.value)}}function ype(o,b,y,T){const G=new Intl.Collator(y,{sensitivity:"accent",usage:"sort"});return[...o].sort((V,L)=>{for(let A=0;Ac!=null?c.toString().toLocaleLowerCase():c),h!==l)return KF(h)&&KF(l)?0:KF(h)?-1:KF(l)?1:!isNaN(h)&&!isNaN(l)?Number(h)-Number(l):G.compare(h,l)}return 0})}const mie=Br({color:String,sticky:Boolean,multiSort:Boolean,sortAscIcon:{type:vi,default:"$sortAsc"},sortDescIcon:{type:vi,default:"$sortDesc"},...rH()},"VDataTableHeaders"),Rre=Go()({name:"VDataTableHeaders",props:mie(),setup(o,b){let{slots:y,emit:T}=b;const{toggleSort:G,sortBy:V,isSorted:L}=ppe(),{someSelected:A,allSelected:s,selectAll:m,showSelectAll:h}=hH(),{columns:l,headers:c}=dH(),{loaderClasses:i}=oH(o),u=(_,$)=>{if(!(!o.sticky&&!_.fixed))return{position:"sticky",zIndex:_.fixed?4:o.sticky?3:void 0,left:_.fixed?ra(_.fixedOffset):void 0,top:o.sticky?`calc(var(--v-table-header-height) * ${$})`:void 0}};function d(_){const $=V.value.find(S=>S.key===_.key);return $?$.order==="asc"?o.sortAscIcon:o.sortDescIcon:o.sortAscIcon}const{backgroundColorClasses:g,backgroundColorStyles:v}=wg(o,"color"),x=on(()=>({headers:c.value,columns:l.value,toggleSort:G,isSorted:L,sortBy:V.value,someSelected:A.value,allSelected:s.value,selectAll:m,getSortIcon:d,getFixedStyles:u})),C=_=>{let{column:$,x:S,y:O}=_;const D=$.key==="data-table-select"||$.key==="data-table-expand";return ct(oee,{tag:"th",align:$.align,class:["v-data-table__th",{"v-data-table__th--sortable":$.sortable,"v-data-table__th--sorted":L($)},i.value],style:{width:ra($.width),minWidth:ra($.width),...u($,O)},colspan:$.colspan,rowspan:$.rowspan,onClick:$.sortable?()=>G($):void 0,lastFixed:$.lastFixed,noPadding:D},{default:()=>{var k;const N=`column.${$.key}`,M={column:$,selectAll:m,isSorted:L,toggleSort:G,sortBy:V.value,someSelected:A.value,allSelected:s.value,getSortIcon:d};return y[N]?y[N](M):$.key==="data-table-select"?((k=y["column.data-table-select"])==null?void 0:k.call(y,M))??(h&&ct(FE,{modelValue:s.value,indeterminate:A.value&&!s.value,"onUpdate:modelValue":m},null)):ct("div",{class:"v-data-table-header__content"},[ct("span",null,[$.title]),$.sortable&&ct(js,{key:"icon",class:"v-data-table-header__sort-icon",icon:d($)},null),o.multiSort&&L($)&&ct("div",{key:"badge",class:["v-data-table-header__sort-badge",...g.value],style:v.value},[V.value.findIndex(R=>R.key===$.key)+1])])}})};ga(()=>ct(Uo,null,[y.headers?y.headers(x.value):c.value.map((_,$)=>ct("tr",null,[_.map((S,O)=>ct(C,{column:S,x:O,y:$},null))])),o.loading&&ct("tr",{class:"v-data-table-progress"},[ct("th",{colspan:l.value.length},[ct(Bq,{name:"v-data-table-progress",active:!0,color:typeof o.loading=="boolean"?void 0:o.loading,indeterminate:!0},{default:y.loader})])])]))}}),bpe=Br({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),gie=Symbol.for("vuetify:data-table-group");function xpe(o){return{groupBy:ri(o,"groupBy")}}function wpe(o){const{groupBy:b,sortBy:y}=o,T=No(new Set),G=on(()=>b.value.map(m=>({...m,order:m.order??!1})).concat(y.value));function V(m){return T.value.has(m.id)}function L(m){const h=new Set(T.value);V(m)?h.delete(m.id):h.add(m.id),T.value=h}function A(m){function h(l){const c=[];for(const i of l.items)"type"in i&&i.type==="group"?c.push(...h(i)):c.push(i);return c}return h({type:"group",items:m,id:"dummy",key:"dummy",value:"dummy",depth:0})}const s={sortByWithGroups:G,toggleGroup:L,opened:T,groupBy:b,extractRows:A,isGroupOpen:V};return Gl(gie,s),s}function pie(){const o=ni(gie);if(!o)throw new Error("Missing group!");return o}function Cpe(o,b){if(!o.length)return[];const y=new Map;for(const T of o){const G=v3(T.raw,b);y.has(G)||y.set(G,[]),y.get(G).push(T)}return y}function vie(o,b){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!b.length)return[];const G=Cpe(o,b[0]),V=[],L=b.slice(1);return G.forEach((A,s)=>{const m=b[0],h=`${T}_${m}_${s}`;V.push({depth:y,id:h,key:m,value:s,items:L.length?vie(A,L,y+1,h):A,type:"group"})}),V}function yie(o,b){const y=[];for(const T of o)"type"in T&&T.type==="group"?(T.value!=null&&y.push(T),(b.has(T.id)||T.value==null)&&y.push(...yie(T.items,b))):y.push(T);return y}function Spe(o,b,y){return{flatItems:on(()=>{if(!b.value.length)return o.value;const G=vie(o.value,b.value.map(V=>V.key));return yie(G,y.value)})}}const Tpe=Br({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),kpe=Go()({name:"VDataTableGroupHeaderRow",props:Tpe(),setup(o,b){let{slots:y}=b;const{isGroupOpen:T,toggleGroup:G,extractRows:V}=pie(),{isSelected:L,isSomeSelected:A,select:s}=hH(),{columns:m}=dH(),h=on(()=>V([o.item]));return()=>ct("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":o.item.depth}},[m.value.map(l=>{var c,i;if(l.key==="data-table-group"){const u=T(o.item)?"$expand":"$next",d=()=>G(o.item);return((c=y["data-table-group"])==null?void 0:c.call(y,{item:o.item,count:h.value.length,props:{icon:u,onClick:d}}))??ct(oee,{class:"v-data-table-group-header-row__column"},{default:()=>[ct(dc,{size:"small",variant:"text",icon:u,onClick:d},null),ct("span",null,[o.item.value]),ct("span",null,[ii("("),h.value.length,ii(")")])]})}if(l.key==="data-table-select"){const u=L(h.value),d=A(h.value)&&!u,g=v=>s(h.value,v);return((i=y["data-table-select"])==null?void 0:i.call(y,{props:{modelValue:u,indeterminate:d,"onUpdate:modelValue":g}}))??ct("td",null,[ct(FE,{modelValue:u,indeterminate:d,"onUpdate:modelValue":g},null)])}return ct("td",null,null)})])}}),Ape=Br({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),bie=Symbol.for("vuetify:datatable:expanded");function Mpe(o){const b=Xo(o,"expandOnClick"),y=ri(o,"expanded",o.expanded,A=>new Set(A),A=>[...A.values()]);function T(A,s){const m=new Set(y.value);s?m.add(A.value):m.delete(A.value),y.value=m}function G(A){return y.value.has(A.value)}function V(A){T(A,!G(A))}const L={expand:T,expanded:y,expandOnClick:b,isExpanded:G,toggleExpand:V};return Gl(bie,L),L}function xie(){const o=ni(bie);if(!o)throw new Error("foo");return o}const Epe=Br({index:Number,item:Object,onClick:Function},"VDataTableRow"),_pe=Go()({name:"VDataTableRow",props:Epe(),setup(o,b){let{slots:y}=b;const{isSelected:T,toggleSelect:G}=hH(),{isExpanded:V,toggleExpand:L}=xie(),{columns:A}=dH();ga(()=>ct("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!o.onClick}],onClick:o.onClick},[o.item&&A.value.map((s,m)=>ct(oee,{align:s.align,fixed:s.fixed,fixedOffset:s.fixedOffset,lastFixed:s.lastFixed,noPadding:s.key==="data-table-select"||s.key==="data-table-expand",width:s.width},{default:()=>{var i,u;const h=o.item,l=`item.${s.key}`,c={index:o.index,item:h.raw,internalItem:h,value:v3(h.columns,s.key),column:s,isSelected:T,toggleSelect:G,isExpanded:V,toggleExpand:L};return y[l]?y[l](c):s.key==="data-table-select"?((i=y["item.data-table-select"])==null?void 0:i.call(y,c))??ct(FE,{disabled:!h.selectable,modelValue:T([h]),onClick:Lne(()=>G(h),["stop"])},null):s.key==="data-table-expand"?((u=y["item.data-table-expand"])==null?void 0:u.call(y,c))??ct(dc,{icon:V(h)?"$collapse":"$expand",size:"small",variant:"text",onClick:Lne(()=>L(h),["stop"])},null):Sp(c.value)}}))]))}}),wie=Br({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowHeight:Number,"onClick:row":Function},"VDataTableRows"),Lre=Go()({name:"VDataTableRows",props:wie(),setup(o,b){let{emit:y,slots:T}=b;const{columns:G}=dH(),{expandOnClick:V,toggleExpand:L,isExpanded:A}=xie(),{isSelected:s,toggleSelect:m}=hH(),{toggleGroup:h,isGroupOpen:l}=pie(),{t:c}=L2();return ga(()=>{var i,u;return o.loading?ct("tr",{class:"v-data-table-rows-loading",key:"loading"},[ct("td",{colspan:G.value.length},[((i=T.loading)==null?void 0:i.call(T))??c(o.loadingText)])]):!o.loading&&!o.items.length&&!o.hideNoData?ct("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[ct("td",{colspan:G.value.length},[((u=T["no-data"])==null?void 0:u.call(T))??c(o.noDataText)])]):ct(Uo,null,[o.items.map((d,g)=>{var C;if(d.type==="group")return T["group-header"]?T["group-header"]({index:g,item:d,columns:G.value,isExpanded:A,toggleExpand:L,isSelected:s,toggleSelect:m,toggleGroup:h,isGroupOpen:l}):ct(kpe,{key:`group-header_${d.id}`,item:d},T);const v={index:g,item:d.raw,internalItem:d,columns:G.value,isExpanded:A,toggleExpand:L,isSelected:s,toggleSelect:m},x={...v,props:{key:`item_${d.key??d.index}`,onClick:V.value||o["onClick:row"]?_=>{var $;V.value&&L(d),($=o["onClick:row"])==null||$.call(o,_,{item:d.raw,internalItem:d})}:void 0,index:g,item:d}};return ct(Uo,null,[T.item?T.item(x):ct(_pe,x.props,T),A(d)&&((C=T["expanded-row"])==null?void 0:C.call(T,v))])})])}),{}}}),Rpe=Br({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataTable-items");function Lpe(o,b,y,T){const G=o.returnObject?b:lh(b,o.itemValue),V=lh(b,o.itemSelectable,!0),L=T.reduce((A,s)=>(s.key!=null&&(A[s.key]=lh(b,s.value)),A),{});return{type:"item",key:o.returnObject?lh(b,o.itemValue):G,index:y,value:G,selectable:V,columns:L,raw:b}}function Dpe(o,b,y){return b.map((T,G)=>Lpe(o,T,G,y))}function $pe(o,b){return{items:on(()=>Dpe(o,o.items,b.value))}}function Ope(o){let{page:b,itemsPerPage:y,sortBy:T,groupBy:G,search:V}=o;const L=Vu("VDataTable"),A=on(()=>({page:b.value,itemsPerPage:y.value,sortBy:T.value,groupBy:G.value,search:V.value}));ta(()=>V==null?void 0:V.value,()=>{b.value=1});let s=null;ta(A,()=>{b3(s,A.value)||(L.emit("update:options",A.value),s=A.value)},{deep:!0,immediate:!0})}const Ppe=Br({...wie(),width:[String,Number],search:String,...Ape(),...bpe(),...lpe(),...Rpe(),...fpe(),...hpe(),...mie(),...aie()},"DataTable"),Ipe=Br({...rpe(),...Ppe(),...Jq(),...lie()},"VDataTable"),aee=Go()({name:"VDataTable",props:Ipe(),emits:{"update:modelValue":o=>!0,"update:page":o=>!0,"update:itemsPerPage":o=>!0,"update:sortBy":o=>!0,"update:options":o=>!0,"update:groupBy":o=>!0,"update:expanded":o=>!0},setup(o,b){let{emit:y,slots:T}=b;const{groupBy:G}=xpe(o),{sortBy:V,multiSort:L,mustSort:A}=mpe(o),{page:s,itemsPerPage:m}=ope(o),{columns:h,headers:l}=cpe(o,{groupBy:G,showSelect:Xo(o,"showSelect"),showExpand:Xo(o,"showExpand")}),{items:c}=$pe(o,h),i=Xo(o,"search"),{filteredItems:u}=Qq(o,c,i,{transform:ge=>ge.columns}),{toggleSort:d}=gpe({sortBy:V,multiSort:L,mustSort:A,page:s}),{sortByWithGroups:g,opened:v,extractRows:x,isGroupOpen:C,toggleGroup:_}=wpe({groupBy:G,sortBy:V}),{sortedItems:$}=vpe(o,u,g),{flatItems:S}=Spe($,G,v),O=on(()=>S.value.length),{startIndex:D,stopIndex:N,pageCount:M,setItemsPerPage:k}=ape({page:s,itemsPerPage:m,itemsLength:O}),{paginatedItems:R}=ipe({items:S,startIndex:D,stopIndex:N,itemsPerPage:m}),F=on(()=>x(R.value)),{isSelected:H,select:j,selectAll:P,toggleSelect:ee,someSelected:J,allSelected:K}=dpe(o,{allItems:c,currentPage:F}),{isExpanded:ae,toggleExpand:Q}=Mpe(o);Ope({page:s,itemsPerPage:m,sortBy:V,groupBy:G,search:i}),R0({VDataTableRows:{hideNoData:Xo(o,"hideNoData"),noDataText:Xo(o,"noDataText"),loading:Xo(o,"loading"),loadingText:Xo(o,"loadingText")}});const he=on(()=>({page:s.value,itemsPerPage:m.value,sortBy:V.value,pageCount:M.value,toggleSort:d,setItemsPerPage:k,someSelected:J.value,allSelected:K.value,isSelected:H,select:j,selectAll:P,toggleSelect:ee,isExpanded:ae,toggleExpand:Q,isGroupOpen:C,toggleGroup:_,items:F.value,groupedItems:R.value,columns:h.value,headers:l.value}));return ga(()=>{const[ge]=_re.filterProps(o),[Se]=Rre.filterProps(o),[ce]=Lre.filterProps(o),[ne]=Ere.filterProps(o);return ct(Ere,Jo({class:["v-data-table",{"v-data-table--show-select":o.showSelect,"v-data-table--loading":o.loading},o.class],style:o.style},ne),{top:()=>{var fe;return(fe=T.top)==null?void 0:fe.call(T,he.value)},default:()=>{var fe,X,ye,Ce;return T.default?T.default(he.value):ct(Uo,null,[(fe=T.colgroup)==null?void 0:fe.call(T,he.value),ct("thead",null,[ct(Rre,Se,T)]),(X=T.thead)==null?void 0:X.call(T,he.value),ct("tbody",null,[T.body?T.body(he.value):ct(Lre,Jo(ce,{items:R.value}),T)]),(ye=T.tbody)==null?void 0:ye.call(T,he.value),(Ce=T.tfoot)==null?void 0:Ce.call(T,he.value)])},bottom:()=>T.bottom?T.bottom(he.value):ct(Uo,null,[ct(_re,ge,{prepend:T["footer.prepend"]})])})}),{}}}),Npe={emits:["runCode"],components:{"v-slider":Vse,"v-text-field":Ep,"v-number-field":Ep,"v-textarea":sie,"v-range-slider":oie,"v-select":Xq,"v-combobox":Use,"v-btn":dc,"v-img":Y6,"v-data-table":aee,"v-autocomplete":Pse,"v-card":M3,"plotly-plot":mae},props:{rowData:{type:Object},columnData:{type:Object},components:{type:Object,required:!0}},methods:{findComponentById(o){const b=this.components.find(y=>y.id===o);return b?[b]:[]},cardComponents(o){const b=[];for(const y in o.cardChildren)b.push.apply(b,this.findComponentById(o.cardChildren[y]));return b},runCode(o,b,y){this.$emit("runCode",o,b,y)},componentWidth(o){return o.width?o.width:!1},componentBind(o){if(o.component&&o.component==="v-autocomplete"){const{value:b,...y}=o;return y}return o},clickedButton(o){o.component==="v-btn"&&(o.value=!0)}}},Fpe={key:0},Bpe={key:1},Hpe={key:1},zpe={key:0},Vpe={key:1};function Upe(o,b,y,T,G,V){const L=A0("plotly-plot"),A=A0("layout-component",!0);return mo(),Ts(Uo,null,[y.rowData?(mo(),za(sm,{key:0},{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(y.rowData.components,(s,m)=>(mo(),za(kp,{key:m,cols:V.componentWidth(s)},{default:jr(()=>[typeof s=="string"?(mo(),Ts("div",Fpe,[(mo(!0),Ts(Uo,null,uf(V.findComponentById(s),h=>(mo(),Ts("div",null,[h.component==="plotly-plot"?(mo(),za(L,{key:0,id:h.id,figure:h.figure,layout:h.layout},null,8,["id","figure","layout"])):h.component==="v-card"?(mo(),za(mg(h.component),Jo({key:1},V.componentBind(h),{position:"relative",onRunCode:V.runCode}),{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(V.cardComponents(h),l=>(mo(),Ts("div",null,[l.component==="plotly-plot"?(mo(),za(L,{key:0,id:l.id,figure:l.figure,layout:l.layout},null,8,["id","figure","layout"])):(mo(),za(mg(l.component),Jo({key:1},V.componentBind(l),{modelValue:l.value,"onUpdate:modelValue":c=>l.value=c,onClick:c=>V.clickedButton(l)},{[C0(l.triggerEvent)]:c=>V.runCode(!0,l.id,l.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))]),_:2},1040,["onRunCode"])):(mo(),za(mg(h.component),Jo({key:2},V.componentBind(h),{modelValue:h.value,"onUpdate:modelValue":l=>h.value=l,onClick:l=>V.clickedButton(h)},{[C0(h.triggerEvent)]:l=>V.runCode(!0,h.id,h.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))])):(mo(),Ts("div",Bpe,[ct(A,{"column-data":s,components:y.components,onRunCode:V.runCode},null,8,["column-data","components","onRunCode"])]))]),_:2},1032,["cols"]))),128))]),_:1})):cm("",!0),y.columnData?(mo(),Ts("div",Hpe,[(mo(!0),Ts(Uo,null,uf(y.columnData.components,(s,m)=>(mo(),Ts("div",{key:m},[typeof s=="string"?(mo(),Ts("div",zpe,[(mo(!0),Ts(Uo,null,uf(V.findComponentById(s),h=>(mo(),Ts("div",null,[h.component==="plotly-plot"?(mo(),za(L,{key:0,id:h.id,figure:h.figure,layout:h.layout},null,8,["id","figure","layout"])):h.component==="v-card"?(mo(),za(mg(h.component),Jo({key:1},V.componentBind(h),{position:"relative"}),{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(V.cardComponents(h),l=>(mo(),Ts("div",null,[l.component==="plotly-plot"?(mo(),za(L,{key:0,id:l.id,figure:l.figure,layout:l.layout},null,8,["id","figure","layout"])):(mo(),za(mg(l.component),Jo({key:1},V.componentBind(l),{modelValue:l.value,"onUpdate:modelValue":c=>l.value=c,onClick:c=>V.clickedButton(l)},{[C0(l.triggerEvent)]:c=>V.runCode(!0,l.id,l.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))]),_:2},1040)):(mo(),za(mg(h.component),Jo({key:2},V.componentBind(h),{modelValue:h.value,"onUpdate:modelValue":l=>h.value=l,onClick:l=>V.clickedButton(h)},{[C0(h.triggerEvent)]:l=>V.runCode(!0,h.id,h.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))])):(mo(),Ts("div",Vpe,[ct(A,{"row-data":s,components:y.components,onRunCode:V.runCode},null,8,["row-data","components","onRunCode"])]))]))),128))])):cm("",!0)],64)}const Wpe=Vy(Npe,[["render",Upe]]),Gpe={components:{"ace-editor":eH,"v-slider":Vse,"v-text-field":Ep,"v-number-field":Ep,"v-textarea":sie,"v-range-slider":oie,"v-select":Xq,"v-combobox":Use,"v-btn":dc,"v-img":Y6,"v-data-table":aee,"v-autocomplete":Pse,"v-card":M3,"plotly-plot":mae,"layout-component":Wpe},props:{cellData:{type:Object,required:!0}},data(){return{isFocused:!1,items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},mounted(){if(this.$devMode){const o=this.$refs.editor;o._editor.renderer.$cursorLayer.element.style.display="none"}window.addEventListener("keydown",this.handleKeyDown)},beforeUnmount(){window.removeEventListener("keydown",this.handleKeyDown)},computed:{columns(){var o;return((o=this.cellData.layout)==null?void 0:o.columns)||[]},editorOptions(){return{showPrintMargin:!1,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,autoScrollEditorIntoView:!0,highlightActiveLine:this.$devMode&&this.isFocused,highlightGutterLine:this.$devMode&&this.isFocused,minLines:1,maxLines:1/0}},unplacedComponents(){var T,G;const o=V=>{let L=[];for(const A of V)for(const s of(A==null?void 0:A.components)??[])typeof s=="string"?L.push(s):s&&s.components&&(L=L.concat(o([s])));return L},b=V=>{let L=[];for(const A of V)A.component==="v-card"&&L.push.apply(L,Object.values(A.cardChildren));return L},y=o(((T=this.cellData.layout)==null?void 0:T.rows)??[]).concat(o(((G=this.cellData.layout)==null?void 0:G.columns)??[])).concat(b(this.cellData.components));return this.cellData.components.filter(V=>!y.includes(V.id))}},methods:{handleKeyDown(o){this.isFocused&&o.ctrlKey&&o.key==="Enter"&&this.runCode(!1,this.cellData.id,"")},handleFocus(o){if(o){const b=this.$refs.editor;b._editor.renderer.$cursorLayer.element.style.display=""}else{const b=this.$refs.editor;b._editor.renderer.$cursorLayer.element.style.display="none"}this.isFocused=o},runCode(o,b,y){!this.$devMode&&o?this.$emit("componentChange",this.cellData.id,b,y):this.$emit("runCode",this.cellData.id,b)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},componentBind(o){if(o.component&&o.component==="v-autocomplete"){const{value:b,...y}=o;return this.convertUnderscoresToHyphens(y)}return this.convertUnderscoresToHyphens(o)},convertUnderscoresToHyphens(o){return Object.entries(o).reduce((b,[y,T])=>{const G=y.replace(/_/g,"-");return b[G]=T,b},{})},clickedButton(o){o.component==="v-btn"&&(o.value=!0)},findComponentById(o){return this.cellData.components.find(y=>y.id===o)},cardComponents(o){const b=[];for(const y in o.cardChildren)b.push(this.findComponentById(o.cardChildren[y]));return b},createCell(o){this.$emit("createCell",this.cellData.id,o)}}};const Zpe=ff("span",{class:"py-0 px-2"},".py",-1),jpe={key:3},Ype=ff("p",{class:"text-caption text-disabled text-right"}," CTRL+Enter to run",-1),Kpe=[Ype],Xpe={class:"text-p"};function Jpe(o,b,y,T,G,V){const L=A0("ace-editor"),A=A0("layout-component"),s=A0("plotly-plot");return mo(),Ts(Uo,null,[ct(M3,{flat:"",color:"bluegrey"},{default:jr(()=>[o.$devMode?(mo(),za(sm,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:jr(()=>[ct(kp,{cols:11},{default:jr(()=>[Zpe]),_:1}),ct(kp,{cols:1,class:"d-flex justify-end align-center py-0"},{default:jr(()=>[ct(js,{small:"",class:"mx-1",color:"primary",onClick:b[0]||(b[0]=m=>V.runCode(!1,"",""))},{default:jr(()=>[ii(" mdi-play ")]),_:1}),ct(js,{small:"",class:"mx-1",color:"error",onClick:V.deleteCell},{default:jr(()=>[ii(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):cm("",!0),o.$devMode?(mo(),za(L,{key:1,value:y.cellData.code,"onUpdate:value":b[1]||(b[1]=m=>y.cellData.code=m),ref:"editor",class:"editor",theme:"dracula",lang:"python",options:V.editorOptions,onFocus:b[2]||(b[2]=m=>V.handleFocus(!0)),onBlur:b[3]||(b[3]=m=>V.handleFocus(!1))},null,8,["value","options"])):(mo(),za(Wse,{key:2},{default:jr(()=>[ct(Zse,null,{default:jr(()=>[ct(tee,{color:"bluegrey2"},{default:jr(()=>[ii(" View Source Code ")]),_:1}),ct(eee,null,{default:jr(()=>[ct(L,{value:y.cellData.code,"onUpdate:value":b[4]||(b[4]=m=>y.cellData.code=m),class:"editor",theme:"dracula",lang:"python",readonly:!0,options:V.editorOptions},null,8,["value","options"])]),_:1})]),_:1})]),_:1})),o.$devMode?(mo(),Ts("div",jpe,Kpe)):cm("",!0),ct(V6,null,{default:jr(()=>{var m;return[(mo(!0),Ts(Uo,null,uf((m=y.cellData.layout)==null?void 0:m.rows,(h,l)=>(mo(),za(A,{key:l,"row-data":h,components:y.cellData.components,onRunCode:V.runCode},null,8,["row-data","components","onRunCode"]))),128)),ct(sm,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(V.columns,(h,l)=>(mo(),za(kp,{cols:h.width},{default:jr(()=>[(mo(),za(A,{key:l,"column-data":h,components:y.cellData.components,onRunCode:V.runCode},null,8,["column-data","components","onRunCode"]))]),_:2},1032,["cols"]))),256))]),_:1}),ct(sm,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(V.unplacedComponents,h=>(mo(),za(V6,{class:"pa-1",key:h.id},{default:jr(()=>[h.component==="plotly-plot"?(mo(),za(s,{key:0,id:h.id,figure:h.figure,layout:h.layout},null,8,["id","figure","layout"])):h.component==="v-card"?(mo(),za(mg(h.component),Jo({key:1},V.componentBind(h),{position:"relative",onRunCode:V.runCode}),{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(V.cardComponents(h),l=>(mo(),Ts("div",null,[l.component==="plotly-plot"?(mo(),za(s,{key:0,id:h.id,figure:l.figure,layout:l.layout},null,8,["id","figure","layout"])):(mo(),za(mg(l.component),Jo({key:1},V.componentBind(l),{modelValue:l.value,"onUpdate:modelValue":c=>l.value=c,onClick:c=>V.clickedButton(l)},{[C0(l.triggerEvent)]:c=>V.runCode(!0,l.id,l.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))]),_:2},1040,["onRunCode"])):(mo(),za(mg(h.component),Jo({key:2},V.componentBind(h),{modelValue:h.value,"onUpdate:modelValue":l=>h.value=l,onClick:l=>V.clickedButton(h)},{[C0(h.triggerEvent)]:l=>V.runCode(!0,h.id,h.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]),_:2},1024))),128))]),_:1}),ct(sm,null,{default:jr(()=>[ct(kp,null,{default:jr(()=>[ff("div",Xpe,Sp(y.cellData.output),1)]),_:1})]),_:1})]}),_:1})]),_:1}),ct(O2,{transition:"scale-transition"},{activator:jr(({props:m})=>[ct(dc,Jo(m,{block:""}),{default:jr(()=>[ct(sm,null,{default:jr(()=>[ct(js,{color:"primary"},{default:jr(()=>[ii("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:jr(()=>[ct($2,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(G.items,(m,h)=>(mo(),za(fm,{key:h},{default:jr(()=>[ct(dc,{block:"",onClick:l=>V.createCell(m.title)},{default:jr(()=>[ii(Sp(m.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})],64)}const Qpe=Vy(Gpe,[["render",Jpe]]);function see(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let E3=see();function Cie(o){E3=o}const Sie=/[&<>"']/,qpe=new RegExp(Sie.source,"g"),Tie=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,eve=new RegExp(Tie.source,"g"),tve={"&":"&","<":"<",">":">",'"':""","'":"'"},Dre=o=>tve[o];function om(o,b){if(b){if(Sie.test(o))return o.replace(qpe,Dre)}else if(Tie.test(o))return o.replace(eve,Dre);return o}const nve=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function rve(o){return o.replace(nve,(b,y)=>(y=y.toLowerCase(),y==="colon"?":":y.charAt(0)==="#"?y.charAt(1)==="x"?String.fromCharCode(parseInt(y.substring(2),16)):String.fromCharCode(+y.substring(1)):""))}const ove=/(^|[^\[])\^/g;function Ai(o,b){o=typeof o=="string"?o:o.source,b=b||"";const y={replace:(T,G)=>(G=typeof G=="object"&&"source"in G?G.source:G,G=G.replace(ove,"$1"),o=o.replace(T,G),y),getRegex:()=>new RegExp(o,b)};return y}function $re(o){try{o=encodeURI(o).replace(/%25/g,"%")}catch{return null}return o}const DB={exec:()=>null};function Ore(o,b){const y=o.replace(/\|/g,(V,L,A)=>{let s=!1,m=L;for(;--m>=0&&A[m]==="\\";)s=!s;return s?"|":" |"}),T=y.split(/ \|/);let G=0;if(T[0].trim()||T.shift(),T.length>0&&!T[T.length-1].trim()&&T.pop(),b)if(T.length>b)T.splice(b);else for(;T.length{const V=G.match(/^\s+/);if(V===null)return G;const[L]=V;return L.length>=T.length?G.slice(T.length):G}).join(` -`)}class $B{constructor(b){pl(this,"options");pl(this,"rules");pl(this,"lexer");this.options=b||E3}space(b){const y=this.rules.block.newline.exec(b);if(y&&y[0].length>0)return{type:"space",raw:y[0]}}code(b){const y=this.rules.block.code.exec(b);if(y){const T=y[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:y[0],codeBlockStyle:"indented",text:this.options.pedantic?T:eB(T,` -`)}}}fences(b){const y=this.rules.block.fences.exec(b);if(y){const T=y[0],G=sve(T,y[3]||"");return{type:"code",raw:T,lang:y[2]?y[2].trim().replace(this.rules.inline._escapes,"$1"):y[2],text:G}}}heading(b){const y=this.rules.block.heading.exec(b);if(y){let T=y[2].trim();if(/#$/.test(T)){const G=eB(T,"#");(this.options.pedantic||!G||/ $/.test(G))&&(T=G.trim())}return{type:"heading",raw:y[0],depth:y[1].length,text:T,tokens:this.lexer.inline(T)}}}hr(b){const y=this.rules.block.hr.exec(b);if(y)return{type:"hr",raw:y[0]}}blockquote(b){const y=this.rules.block.blockquote.exec(b);if(y){const T=eB(y[0].replace(/^ *>[ \t]?/gm,""),` -`),G=this.lexer.state.top;this.lexer.state.top=!0;const V=this.lexer.blockTokens(T);return this.lexer.state.top=G,{type:"blockquote",raw:y[0],tokens:V,text:T}}}list(b){let y=this.rules.block.list.exec(b);if(y){let T=y[1].trim();const G=T.length>1,V={type:"list",raw:"",ordered:G,start:G?+T.slice(0,-1):"",loose:!1,items:[]};T=G?`\\d{1,9}\\${T.slice(-1)}`:`\\${T}`,this.options.pedantic&&(T=G?T:"[*+-]");const L=new RegExp(`^( {0,3}${T})((?:[ ][^\\n]*)?(?:\\n|$))`);let A="",s="",m=!1;for(;b;){let h=!1;if(!(y=L.exec(b))||this.rules.block.hr.test(b))break;A=y[0],b=b.substring(A.length);let l=y[2].split(` -`,1)[0].replace(/^\t+/,v=>" ".repeat(3*v.length)),c=b.split(` -`,1)[0],i=0;this.options.pedantic?(i=2,s=l.trimStart()):(i=y[2].search(/[^ ]/),i=i>4?1:i,s=l.slice(i),i+=y[1].length);let u=!1;if(!l&&/^ *$/.test(c)&&(A+=c+` -`,b=b.substring(c.length+1),h=!0),!h){const v=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),x=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),C=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),_=new RegExp(`^ {0,${Math.min(3,i-1)}}#`);for(;b;){const $=b.split(` -`,1)[0];if(c=$,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),C.test(c)||_.test(c)||v.test(c)||x.test(b))break;if(c.search(/[^ ]/)>=i||!c.trim())s+=` -`+c.slice(i);else{if(u||l.search(/[^ ]/)>=4||C.test(l)||_.test(l)||x.test(l))break;s+=` -`+c}!u&&!c.trim()&&(u=!0),A+=$+` -`,b=b.substring($.length+1),l=c.slice(i)}}V.loose||(m?V.loose=!0:/\n *\n *$/.test(A)&&(m=!0));let d=null,g;this.options.gfm&&(d=/^\[[ xX]\] /.exec(s),d&&(g=d[0]!=="[ ] ",s=s.replace(/^\[[ xX]\] +/,""))),V.items.push({type:"list_item",raw:A,task:!!d,checked:g,loose:!1,text:s,tokens:[]}),V.raw+=A}V.items[V.items.length-1].raw=A.trimEnd(),V.items[V.items.length-1].text=s.trimEnd(),V.raw=V.raw.trimEnd();for(let h=0;hi.type==="space"),c=l.length>0&&l.some(i=>/\n.*\n/.test(i.raw));V.loose=c}if(V.loose)for(let h=0;h$/,"$1").replace(this.rules.inline._escapes,"$1"):"",V=y[3]?y[3].substring(1,y[3].length-1).replace(this.rules.inline._escapes,"$1"):y[3];return{type:"def",tag:T,raw:y[0],href:G,title:V}}}table(b){const y=this.rules.block.table.exec(b);if(y){if(!/[:|]/.test(y[2]))return;const T={type:"table",raw:y[0],header:Ore(y[1]).map(G=>({text:G,tokens:[]})),align:y[2].replace(/^\||\| *$/g,"").split("|"),rows:y[3]&&y[3].trim()?y[3].replace(/\n[ \t]*$/,"").split(` -`):[]};if(T.header.length===T.align.length){let G=T.align.length,V,L,A,s;for(V=0;V({text:m,tokens:[]}));for(G=T.header.length,L=0;L/i.test(y[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(y[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(y[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:y[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:y[0]}}link(b){const y=this.rules.inline.link.exec(b);if(y){const T=y[2].trim();if(!this.options.pedantic&&/^$/.test(T))return;const L=eB(T.slice(0,-1),"\\");if((T.length-L.length)%2===0)return}else{const L=ave(y[2],"()");if(L>-1){const s=(y[0].indexOf("!")===0?5:4)+y[1].length+L;y[2]=y[2].substring(0,L),y[0]=y[0].substring(0,s).trim(),y[3]=""}}let G=y[2],V="";if(this.options.pedantic){const L=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(G);L&&(G=L[1],V=L[3])}else V=y[3]?y[3].slice(1,-1):"";return G=G.trim(),/^$/.test(T)?G=G.slice(1):G=G.slice(1,-1)),Pre(y,{href:G&&G.replace(this.rules.inline._escapes,"$1"),title:V&&V.replace(this.rules.inline._escapes,"$1")},y[0],this.lexer)}}reflink(b,y){let T;if((T=this.rules.inline.reflink.exec(b))||(T=this.rules.inline.nolink.exec(b))){let G=(T[2]||T[1]).replace(/\s+/g," ");if(G=y[G.toLowerCase()],!G){const V=T[0].charAt(0);return{type:"text",raw:V,text:V}}return Pre(T,G,T[0],this.lexer)}}emStrong(b,y,T=""){let G=this.rules.inline.emStrong.lDelim.exec(b);if(!G||G[3]&&T.match(/[\p{L}\p{N}]/u))return;if(!(G[1]||G[2]||"")||!T||this.rules.inline.punctuation.exec(T)){const L=[...G[0]].length-1;let A,s,m=L,h=0;const l=G[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,y=y.slice(-1*b.length+L);(G=l.exec(y))!=null;){if(A=G[1]||G[2]||G[3]||G[4]||G[5]||G[6],!A)continue;if(s=[...A].length,G[3]||G[4]){m+=s;continue}else if((G[5]||G[6])&&L%3&&!((L+s)%3)){h+=s;continue}if(m-=s,m>0)continue;s=Math.min(s,s+m+h);const c=[...G[0]][0].length,i=b.slice(0,L+G.index+c+s);if(Math.min(L,s)%2){const d=i.slice(1,-1);return{type:"em",raw:i,text:d,tokens:this.lexer.inlineTokens(d)}}const u=i.slice(2,-2);return{type:"strong",raw:i,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(b){const y=this.rules.inline.code.exec(b);if(y){let T=y[2].replace(/\n/g," ");const G=/[^ ]/.test(T),V=/^ /.test(T)&&/ $/.test(T);return G&&V&&(T=T.substring(1,T.length-1)),T=om(T,!0),{type:"codespan",raw:y[0],text:T}}}br(b){const y=this.rules.inline.br.exec(b);if(y)return{type:"br",raw:y[0]}}del(b){const y=this.rules.inline.del.exec(b);if(y)return{type:"del",raw:y[0],text:y[2],tokens:this.lexer.inlineTokens(y[2])}}autolink(b){const y=this.rules.inline.autolink.exec(b);if(y){let T,G;return y[2]==="@"?(T=om(y[1]),G="mailto:"+T):(T=om(y[1]),G=T),{type:"link",raw:y[0],text:T,href:G,tokens:[{type:"text",raw:T,text:T}]}}}url(b){let y;if(y=this.rules.inline.url.exec(b)){let T,G;if(y[2]==="@")T=om(y[0]),G="mailto:"+T;else{let V;do V=y[0],y[0]=this.rules.inline._backpedal.exec(y[0])[0];while(V!==y[0]);T=om(y[0]),y[1]==="www."?G="http://"+y[0]:G=y[0]}return{type:"link",raw:y[0],text:T,href:G,tokens:[{type:"text",raw:T,text:T}]}}}inlineText(b){const y=this.rules.inline.text.exec(b);if(y){let T;return this.lexer.state.inRawBlock?T=y[0]:T=om(y[0]),{type:"text",raw:y[0],text:T}}}}const ba={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:DB,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};ba._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;ba._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;ba.def=Ai(ba.def).replace("label",ba._label).replace("title",ba._title).getRegex();ba.bullet=/(?:[*+-]|\d{1,9}[.)])/;ba.listItemStart=Ai(/^( *)(bull) */).replace("bull",ba.bullet).getRegex();ba.list=Ai(ba.list).replace(/bull/g,ba.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ba.def.source+")").getRegex();ba._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";ba._comment=/|$)/;ba.html=Ai(ba.html,"i").replace("comment",ba._comment).replace("tag",ba._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();ba.lheading=Ai(ba.lheading).replace(/bull/g,ba.bullet).getRegex();ba.paragraph=Ai(ba._paragraph).replace("hr",ba.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ba._tag).getRegex();ba.blockquote=Ai(ba.blockquote).replace("paragraph",ba.paragraph).getRegex();ba.normal={...ba};ba.gfm={...ba.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};ba.gfm.table=Ai(ba.gfm.table).replace("hr",ba.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ba._tag).getRegex();ba.gfm.paragraph=Ai(ba._paragraph).replace("hr",ba.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ba.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ba._tag).getRegex();ba.pedantic={...ba.normal,html:Ai(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ba._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:DB,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ai(ba.normal._paragraph).replace("hr",ba.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",ba.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Fo={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:DB,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:DB,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";Fo.punctuation=Ai(Fo.punctuation,"u").replace(/punctuation/g,Fo._punctuation).getRegex();Fo.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;Fo.anyPunctuation=/\\[punct]/g;Fo._escapes=/\\([punct])/g;Fo._comment=Ai(ba._comment).replace("(?:-->|$)","-->").getRegex();Fo.emStrong.lDelim=Ai(Fo.emStrong.lDelim,"u").replace(/punct/g,Fo._punctuation).getRegex();Fo.emStrong.rDelimAst=Ai(Fo.emStrong.rDelimAst,"gu").replace(/punct/g,Fo._punctuation).getRegex();Fo.emStrong.rDelimUnd=Ai(Fo.emStrong.rDelimUnd,"gu").replace(/punct/g,Fo._punctuation).getRegex();Fo.anyPunctuation=Ai(Fo.anyPunctuation,"gu").replace(/punct/g,Fo._punctuation).getRegex();Fo._escapes=Ai(Fo._escapes,"gu").replace(/punct/g,Fo._punctuation).getRegex();Fo._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;Fo._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;Fo.autolink=Ai(Fo.autolink).replace("scheme",Fo._scheme).replace("email",Fo._email).getRegex();Fo._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;Fo.tag=Ai(Fo.tag).replace("comment",Fo._comment).replace("attribute",Fo._attribute).getRegex();Fo._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;Fo._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;Fo._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;Fo.link=Ai(Fo.link).replace("label",Fo._label).replace("href",Fo._href).replace("title",Fo._title).getRegex();Fo.reflink=Ai(Fo.reflink).replace("label",Fo._label).replace("ref",ba._label).getRegex();Fo.nolink=Ai(Fo.nolink).replace("ref",ba._label).getRegex();Fo.reflinkSearch=Ai(Fo.reflinkSearch,"g").replace("reflink",Fo.reflink).replace("nolink",Fo.nolink).getRegex();Fo.normal={...Fo};Fo.pedantic={...Fo.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ai(/^!?\[(label)\]\((.*?)\)/).replace("label",Fo._label).getRegex(),reflink:Ai(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Fo._label).getRegex()};Fo.gfm={...Fo.normal,escape:Ai(Fo.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\s+" ".repeat(m.length));let T,G,V,L;for(;b;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(A=>(T=A.call({lexer:this},b,y))?(b=b.substring(T.raw.length),y.push(T),!0):!1))){if(T=this.tokenizer.space(b)){b=b.substring(T.raw.length),T.raw.length===1&&y.length>0?y[y.length-1].raw+=` -`:y.push(T);continue}if(T=this.tokenizer.code(b)){b=b.substring(T.raw.length),G=y[y.length-1],G&&(G.type==="paragraph"||G.type==="text")?(G.raw+=` -`+T.raw,G.text+=` -`+T.text,this.inlineQueue[this.inlineQueue.length-1].src=G.text):y.push(T);continue}if(T=this.tokenizer.fences(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.heading(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.hr(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.blockquote(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.list(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.html(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.def(b)){b=b.substring(T.raw.length),G=y[y.length-1],G&&(G.type==="paragraph"||G.type==="text")?(G.raw+=` -`+T.raw,G.text+=` -`+T.raw,this.inlineQueue[this.inlineQueue.length-1].src=G.text):this.tokens.links[T.tag]||(this.tokens.links[T.tag]={href:T.href,title:T.title});continue}if(T=this.tokenizer.table(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.lheading(b)){b=b.substring(T.raw.length),y.push(T);continue}if(V=b,this.options.extensions&&this.options.extensions.startBlock){let A=1/0;const s=b.slice(1);let m;this.options.extensions.startBlock.forEach(h=>{m=h.call({lexer:this},s),typeof m=="number"&&m>=0&&(A=Math.min(A,m))}),A<1/0&&A>=0&&(V=b.substring(0,A+1))}if(this.state.top&&(T=this.tokenizer.paragraph(V))){G=y[y.length-1],L&&G.type==="paragraph"?(G.raw+=` -`+T.raw,G.text+=` -`+T.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=G.text):y.push(T),L=V.length!==b.length,b=b.substring(T.raw.length);continue}if(T=this.tokenizer.text(b)){b=b.substring(T.raw.length),G=y[y.length-1],G&&G.type==="text"?(G.raw+=` -`+T.raw,G.text+=` -`+T.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=G.text):y.push(T);continue}if(b){const A="Infinite loop on byte: "+b.charCodeAt(0);if(this.options.silent){console.error(A);break}else throw new Error(A)}}return this.state.top=!0,y}inline(b,y=[]){return this.inlineQueue.push({src:b,tokens:y}),y}inlineTokens(b,y=[]){let T,G,V,L=b,A,s,m;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;(A=this.tokenizer.rules.inline.reflinkSearch.exec(L))!=null;)h.includes(A[0].slice(A[0].lastIndexOf("[")+1,-1))&&(L=L.slice(0,A.index)+"["+"a".repeat(A[0].length-2)+"]"+L.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(A=this.tokenizer.rules.inline.blockSkip.exec(L))!=null;)L=L.slice(0,A.index)+"["+"a".repeat(A[0].length-2)+"]"+L.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(A=this.tokenizer.rules.inline.anyPunctuation.exec(L))!=null;)L=L.slice(0,A.index)+"++"+L.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;b;)if(s||(m=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(T=h.call({lexer:this},b,y))?(b=b.substring(T.raw.length),y.push(T),!0):!1))){if(T=this.tokenizer.escape(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.tag(b)){b=b.substring(T.raw.length),G=y[y.length-1],G&&T.type==="text"&&G.type==="text"?(G.raw+=T.raw,G.text+=T.text):y.push(T);continue}if(T=this.tokenizer.link(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.reflink(b,this.tokens.links)){b=b.substring(T.raw.length),G=y[y.length-1],G&&T.type==="text"&&G.type==="text"?(G.raw+=T.raw,G.text+=T.text):y.push(T);continue}if(T=this.tokenizer.emStrong(b,L,m)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.codespan(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.br(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.del(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.autolink(b)){b=b.substring(T.raw.length),y.push(T);continue}if(!this.state.inLink&&(T=this.tokenizer.url(b))){b=b.substring(T.raw.length),y.push(T);continue}if(V=b,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const l=b.slice(1);let c;this.options.extensions.startInline.forEach(i=>{c=i.call({lexer:this},l),typeof c=="number"&&c>=0&&(h=Math.min(h,c))}),h<1/0&&h>=0&&(V=b.substring(0,h+1))}if(T=this.tokenizer.inlineText(V)){b=b.substring(T.raw.length),T.raw.slice(-1)!=="_"&&(m=T.raw.slice(-1)),s=!0,G=y[y.length-1],G&&G.type==="text"?(G.raw+=T.raw,G.text+=T.text):y.push(T);continue}if(b){const h="Infinite loop on byte: "+b.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return y}}class OB{constructor(b){pl(this,"options");this.options=b||E3}code(b,y,T){var V;const G=(V=(y||"").match(/^\S*/))==null?void 0:V[0];return b=b.replace(/\n$/,"")+` -`,G?'
    '+(T?b:om(b,!0))+`
    -`:"
    "+(T?b:om(b,!0))+`
    -`}blockquote(b){return`
    -${b}
    -`}html(b,y){return b}heading(b,y,T){return`${b} -`}hr(){return`
    -`}list(b,y,T){const G=y?"ol":"ul",V=y&&T!==1?' start="'+T+'"':"";return"<"+G+V+`> -`+b+" -`}listitem(b,y,T){return`
  • ${b}
  • -`}checkbox(b){return"'}paragraph(b){return`

    ${b}

    -`}table(b,y){return y&&(y=`${y}`),` - -`+b+` -`+y+`
    -`}tablerow(b){return` -${b} -`}tablecell(b,y){const T=y.header?"th":"td";return(y.align?`<${T} align="${y.align}">`:`<${T}>`)+b+` -`}strong(b){return`${b}`}em(b){return`${b}`}codespan(b){return`${b}`}br(){return"
    "}del(b){return`${b}`}link(b,y,T){const G=$re(b);if(G===null)return T;b=G;let V='
    ",V}image(b,y,T){const G=$re(b);if(G===null)return T;b=G;let V=`${T}0&&c.tokens[0].type==="paragraph"?(c.tokens[0].text=g+" "+c.tokens[0].text,c.tokens[0].tokens&&c.tokens[0].tokens.length>0&&c.tokens[0].tokens[0].type==="text"&&(c.tokens[0].tokens[0].text=g+" "+c.tokens[0].tokens[0].text)):c.tokens.unshift({type:"text",text:g+" "}):d+=g+" "}d+=this.parse(c.tokens,m),h+=this.renderer.listitem(d,u,!!i)}T+=this.renderer.list(h,A,s);continue}case"html":{const L=V;T+=this.renderer.html(L.text,L.block);continue}case"paragraph":{const L=V;T+=this.renderer.paragraph(this.parseInline(L.tokens));continue}case"text":{let L=V,A=L.tokens?this.parseInline(L.tokens):L.text;for(;G+1{T=T.concat(this.walkTokens(A[s],y))}):A.tokens&&(T=T.concat(this.walkTokens(A.tokens,y)))}}return T}use(...b){const y=this.defaults.extensions||{renderers:{},childTokens:{}};return b.forEach(T=>{const G={...T};if(G.async=this.defaults.async||G.async||!1,T.extensions&&(T.extensions.forEach(V=>{if(!V.name)throw new Error("extension name required");if("renderer"in V){const L=y.renderers[V.name];L?y.renderers[V.name]=function(...A){let s=V.renderer.apply(this,A);return s===!1&&(s=L.apply(this,A)),s}:y.renderers[V.name]=V.renderer}if("tokenizer"in V){if(!V.level||V.level!=="block"&&V.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const L=y[V.level];L?L.unshift(V.tokenizer):y[V.level]=[V.tokenizer],V.start&&(V.level==="block"?y.startBlock?y.startBlock.push(V.start):y.startBlock=[V.start]:V.level==="inline"&&(y.startInline?y.startInline.push(V.start):y.startInline=[V.start]))}"childTokens"in V&&V.childTokens&&(y.childTokens[V.name]=V.childTokens)}),G.extensions=y),T.renderer){const V=this.defaults.renderer||new OB(this.defaults);for(const L in T.renderer){const A=T.renderer[L],s=L,m=V[s];V[s]=(...h)=>{let l=A.apply(V,h);return l===!1&&(l=m.apply(V,h)),l||""}}G.renderer=V}if(T.tokenizer){const V=this.defaults.tokenizer||new $B(this.defaults);for(const L in T.tokenizer){const A=T.tokenizer[L],s=L,m=V[s];V[s]=(...h)=>{let l=A.apply(V,h);return l===!1&&(l=m.apply(V,h)),l}}G.tokenizer=V}if(T.hooks){const V=this.defaults.hooks||new M6;for(const L in T.hooks){const A=T.hooks[L],s=L,m=V[s];M6.passThroughHooks.has(L)?V[s]=h=>{if(this.defaults.async)return Promise.resolve(A.call(V,h)).then(c=>m.call(V,c));const l=A.call(V,h);return m.call(V,l)}:V[s]=(...h)=>{let l=A.apply(V,h);return l===!1&&(l=m.apply(V,h)),l}}G.hooks=V}if(T.walkTokens){const V=this.defaults.walkTokens,L=T.walkTokens;G.walkTokens=function(A){let s=[];return s.push(L.call(this,A)),V&&(s=s.concat(V.call(this,A))),s}}this.defaults={...this.defaults,...G}}),this}setOptions(b){return this.defaults={...this.defaults,...b},this}lexer(b,y){return T0.lex(b,y??this.defaults)}parser(b,y){return k0.parse(b,y??this.defaults)}}U6=new WeakSet,OQ=function(b,y){return(T,G)=>{const V={...G},L={...this.defaults,...V};this.defaults.async===!0&&V.async===!1&&(L.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),L.async=!0);const A=zF(this,PB,kie).call(this,!!L.silent,!!L.async);if(typeof T>"u"||T===null)return A(new Error("marked(): input parameter is undefined or null"));if(typeof T!="string")return A(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(T)+", string expected"));if(L.hooks&&(L.hooks.options=L),L.async)return Promise.resolve(L.hooks?L.hooks.preprocess(T):T).then(s=>b(s,L)).then(s=>L.walkTokens?Promise.all(this.walkTokens(s,L.walkTokens)).then(()=>s):s).then(s=>y(s,L)).then(s=>L.hooks?L.hooks.postprocess(s):s).catch(A);try{L.hooks&&(T=L.hooks.preprocess(T));const s=b(T,L);L.walkTokens&&this.walkTokens(s,L.walkTokens);let m=y(s,L);return L.hooks&&(m=L.hooks.postprocess(m)),m}catch(s){return A(s)}}},PB=new WeakSet,kie=function(b,y){return T=>{if(T.message+=` -Please report this to https://github.com/markedjs/marked.`,b){const G="

    An error occurred:

    "+om(T.message+"",!0)+"
    ";return y?Promise.resolve(G):G}if(y)return Promise.reject(T);throw T}};const y3=new ive;function Pi(o,b){return y3.parse(o,b)}Pi.options=Pi.setOptions=function(o){return y3.setOptions(o),Pi.defaults=y3.defaults,Cie(Pi.defaults),Pi};Pi.getDefaults=see;Pi.defaults=E3;Pi.use=function(...o){return y3.use(...o),Pi.defaults=y3.defaults,Cie(Pi.defaults),Pi};Pi.walkTokens=function(o,b){return y3.walkTokens(o,b)};Pi.parseInline=y3.parseInline;Pi.Parser=k0;Pi.parser=k0.parse;Pi.Renderer=OB;Pi.TextRenderer=iee;Pi.Lexer=T0;Pi.lexer=T0.lex;Pi.Tokenizer=$B;Pi.Hooks=M6;Pi.parse=Pi;Pi.options;Pi.setOptions;Pi.use;Pi.walkTokens;Pi.parseInline;k0.parse;T0.lex;var lve={exports:{}};(function(o,b){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop");y("../lib/lang");var L=y("./text_highlight_rules").TextHighlightRules,A=T.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",s=T.supportFunction="rgb|rgba|url|attr|counter|counters",m=T.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",h=T.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=T.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",c=T.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",i=T.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",u=T.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",d=function(){var g=this.createKeywordMapper({"support.function":s,"support.constant":m,"support.type":A,"support.constant.color":h,"support.constant.fonts":l},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:c},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+c+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:c},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:i},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:u},{include:"url"},{token:g,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};V.inherits(d,L),T.CssHighlightRules=d}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("./text_highlight_rules").TextHighlightRules,A=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},A.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};V.inherits(A,L),A.getTagRule=function(s){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},A.getStartRule=function(s){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:s}},A.getEndRule=function(s){return{token:"comment.doc",regex:"\\*\\/",next:s}},T.JsDocCommentHighlightRules=A}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,A=y("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",m=function(c){var i=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),u="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",d="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[L.getStartRule("doc-start"),l("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+s+")(\\.)(prototype)(\\.)("+s+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+u+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:i,regex:s},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:s},{regex:"",token:"empty",next:"no_regex"}],start:[L.getStartRule("doc-start"),l("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[l("function_arguments"),{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!c||!c.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(g,v,x){if(this.next=g=="{"?this.nextState:"",g=="{"&&x.length)x.unshift("start",v);else if(g=="}"&&x.length&&(x.shift(),this.next=x.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return g=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:d},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+s+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!c||c.jsx!=!1)&&h.call(this)),this.embedRules(L,"doc-",[L.getEndRule("no_regex")]),this.normalizeRules()};V.inherits(m,A);function h(){var c=s.replace("\\d","\\d\\-"),i={onMatch:function(d,g,v){var x=d.charAt(1)=="/"?2:1;return x==1?(g!=this.nextState?v.unshift(this.next,this.nextState,0):v.unshift(this.next),v[2]++):x==2&&g==this.nextState&&(v[1]--,(!v[1]||v[1]<0)&&(v.shift(),v.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:d.slice(0,x)},{type:"meta.tag.tag-name.xml",value:d.substr(x)}]},regex:"",onMatch:function(d,g,v){return g==v[0]&&v.shift(),d.length==2&&(v[0]==this.nextState&&v[1]--,(!v[1]||v[1]<0)&&v.splice(0,2)),this.next=v[0]||"start",[{type:this.token,value:d}]},nextState:"jsx"},u,l("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:c},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},i],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function l(c){return[{token:"comment",regex:/\/\*/,next:[L.getTagRule(),{token:"comment",regex:"\\*\\/",next:c||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[L.getTagRule(),{token:"comment",regex:"$|^",next:c||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}T.JavaScriptHighlightRules=m}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("./text_highlight_rules").TextHighlightRules,A=function(s){var m="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+m+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+m+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:m},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===A&&this.normalizeRules()};(function(){this.embedTagRules=function(s,m,h){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+h+".tag-name.xml"],regex:"(<)("+h+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:m+"start"}]}),this.$rules[h+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(l,c,i){return i.splice(0),this.token}}],this.embedRules(s,m,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+h+".tag-name.xml"],regex:"(|$))",next:h+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(L.prototype),V.inherits(A,L),T.XmlHighlightRules=A}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("../lib/lang"),A=y("./css_highlight_rules").CssHighlightRules,s=y("./javascript_highlight_rules").JavaScriptHighlightRules,m=y("./xml_highlight_rules").XmlHighlightRules,h=L.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),l=function(){m.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(c,i){var u=h[i];return["meta.tag.punctuation."+(c=="<"?"":"end-")+"tag-open.xml","meta.tag"+(u?"."+u:"")+".tag-name.xml"]},regex:"(",next:"start"}]}),this.embedTagRules(A,"css-","style"),this.embedTagRules(new s({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};V.inherits(l,m),T.HtmlHighlightRules=l}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(y,T,G){var V=y("../config").$modes,L=y("../lib/oop"),A=y("../lib/lang"),s=y("./text_highlight_rules").TextHighlightRules,m=y("./html_highlight_rules").HtmlHighlightRules,h=function(c){return"(?:[^"+A.escapeRegExp(c)+"\\\\]|\\\\.)*"},l=function(){m.call(this);var c={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(u,d,g,v){var x=u.match(/^(\s*)([`~]+)(.*)/),C=/[\w-]+|$/.exec(x[3])[0];return V[C]||(C=""),g.unshift("githubblock",[],[x[1],x[2],C],d),this.token},next:"githubblock"},i=[{token:"support.function",regex:".*",onMatch:function(u,d,g,v){var x=g[1],C=g[2][0],_=g[2][1],$=g[2][2],S=/^(\s*)(`+|~+)\s*$/.exec(u);if(S&&S[1].length=_.length&&S[2][0]==_[0])return g.splice(0,3),this.next=g.shift(),this.token;if(this.next="",$&&V[$]){var O=V[$].getTokenizer().getLineTokens(u,x.slice(0));return g[1]=O.state,O.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(u){return"markup.heading."+u.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},c,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+h("]")+")(\\]\\s*\\[)("+h("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+h("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+h('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},c,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:i}),this.normalizeRules()};L.inherits(l,s),T.MarkdownHighlightRules=l}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(y,T,G){var V=y("../../lib/oop"),L=y("./fold_mode").FoldMode,A=y("../../range").Range,s=T.FoldMode=function(){};V.inherits(s,L),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(m,h,l){var c=m.getLine(l);return this.foldingStartMarker.test(c)?c[0]=="`"&&m.bgTokenizer.getState(l)=="start"?"end":"start":""},this.getFoldWidgetRange=function(m,h,l){var c=m.getLine(l),i=c.length,u=m.getLength(),d=l,g=l;if(!c.match(this.foldingStartMarker))return;if(c[0]=="`")if(m.bgTokenizer.getState(l)!=="start"){for(;++l0&&(c=m.getLine(l),!(c[0]=="`"&c.substring(0,3)=="```")););return new A(l,c.length,d,0)}var v;function x(D){return v=m.getTokens(D)[0],v&&v.type.lastIndexOf(C,0)===0}var C="markup.heading";function _(){var D=v.value[0];return D=="="?6:D=="-"?5:7-v.value.search(/[^#]|$/)}if(x(l)){for(var $=_();++l=$)break}if(g=l-(!v||["=","-"].indexOf(v.value[0])==-1?1:2),g>d)for(;g>d&&/^\s*$/.test(m.getLine(g));)g--;if(g>d){var O=m.getLine(g).length;return new A(d,i,g,O)}}}}).call(s.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(y,T,G){var V=y("../range").Range,L=function(){};(function(){this.checkOutdent=function(A,s){return/^\s+$/.test(A)?/^\s*\}/.test(s):!1},this.autoOutdent=function(A,s){var m=A.getLine(s),h=m.match(/^(\s*\})/);if(!h)return 0;var l=h[1].length,c=A.findMatchingBracket({row:s,column:l});if(!c||c.row==s)return 0;var i=this.$getIndent(A.getLine(c.row));A.replace(new V(s,0,s,l-1),i)},this.$getIndent=function(A){return A.match(/^\s*/)[0]}}).call(L.prototype),T.MatchingBraceOutdent=L}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(y,T,G){var V=y("../../lib/oop"),L=y("../../range").Range,A=y("./fold_mode").FoldMode,s=T.FoldMode=function(m){m&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+m.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+m.end)))};V.inherits(s,A),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(m,h,l){var c=m.getLine(l);if(this.singleLineBlockCommentRe.test(c)&&!this.startRegionRe.test(c)&&!this.tripleStarBlockCommentRe.test(c))return"";var i=this._getFoldWidgetBase(m,h,l);return!i&&this.startRegionRe.test(c)?"start":i},this.getFoldWidgetRange=function(m,h,l,c){var i=m.getLine(l);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(m,i,l);var g=i.match(this.foldingStartMarker);if(g){var u=g.index;if(g[1])return this.openingBracketBlock(m,g[1],l,u);var d=m.getCommentFoldRange(l,u+g[0].length,1);return d&&!d.isMultiLine()&&(c?d=this.getSectionRange(m,l):h!="all"&&(d=null)),d}if(h!=="markbegin"){var g=i.match(this.foldingStopMarker);if(g){var u=g.index+g[0].length;return g[1]?this.closingBracketBlock(m,g[1],l,u):m.getCommentFoldRange(l,u,-1)}}},this.getSectionRange=function(m,h){var l=m.getLine(h),c=l.search(/\S/),i=h,u=l.length;h=h+1;for(var d=h,g=m.getLength();++hv)break;var x=this.getFoldWidgetRange(m,"all",h);if(x){if(x.start.row<=i)break;if(x.isMultiLine())h=x.end.row;else if(c==v)break}d=h}}return new L(i,u,d,m.getLine(d).length)},this.getCommentRegionBlock=function(m,h,l){for(var c=h.search(/\s*$/),i=m.getLength(),u=l,d=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++lu)return new L(u,c,x,h.length)}}).call(s.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(y,T,G){var V=y("../lib/oop"),L=y("./text").Mode,A=y("./javascript_highlight_rules").JavaScriptHighlightRules,s=y("./matching_brace_outdent").MatchingBraceOutdent,m=y("../worker/worker_client").WorkerClient,h=y("./behaviour/cstyle").CstyleBehaviour,l=y("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=A,this.$outdent=new s,this.$behaviour=new h,this.foldingRules=new l};V.inherits(c,L),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(i,u,d){var g=this.$getIndent(u),v=this.getTokenizer().getLineTokens(u,i),x=v.tokens,C=v.state;if(x.length&&x[x.length-1].type=="comment")return g;if(i=="start"||i=="no_regex"){var _=u.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);_&&(g+=d)}else if(i=="doc-start"){if(C=="start"||C=="no_regex")return"";var _=u.match(/^\s*(\/?)\*/);_&&(_[1]&&(g+=" "),g+="* ")}return g},this.checkOutdent=function(i,u,d){return this.$outdent.checkOutdent(u,d)},this.autoOutdent=function(i,u,d){this.$outdent.autoOutdent(u,d)},this.createWorker=function(i){var u=new m(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return u.attachToDocument(i.getDocument()),u.on("annotate",function(d){i.setAnnotations(d.data)}),u.on("terminate",function(){i.clearAnnotations()}),u},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(c.prototype),T.Mode=c}),ace.define("ace/mode/css_completions",["require","exports","module"],function(y,T,G){var V={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},L=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var A=document.createElement("c").style;for(var s in A)if(typeof A[s]=="string"){var m=s.replace(/[A-Z]/g,function(h){return"-"+h.toLowerCase()});V.hasOwnProperty(m)||(V[m]=1)}}this.completionsDefined=!0},this.getCompletions=function(A,s,m,h){if(this.completionsDefined||this.defineCompletions(),A==="ruleset"||s.$mode.$id=="ace/mode/scss"){var l=s.getLine(m.row).substr(0,m.column),c=/\([^)]*$/.test(l);return c&&(l=l.substr(l.lastIndexOf("(")+1)),/:[^;]+$/.test(l)?this.getPropertyValueCompletions(A,s,m,h):this.getPropertyCompletions(A,s,m,h,c)}return[]},this.getPropertyCompletions=function(A,s,m,h,l){l=l||!1;var c=Object.keys(V);return c.map(function(i){return{caption:i,snippet:i+": $0"+(l?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(A,s,m,h){var l=s.getLine(m.row).substr(0,m.column),c=(/([\w\-]+):[^:]*$/.exec(l)||{})[1];if(!c)return[];var i=[];return c in V&&typeof V[c]=="object"&&(i=Object.keys(V[c])),i.map(function(u){return{caption:u,snippet:u,meta:"property value",score:1e6}})}}).call(L.prototype),T.CssCompletions=L}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(y,T,G){var V=y("../../lib/oop");y("../behaviour").Behaviour;var L=y("./cstyle").CstyleBehaviour,A=y("../../token_iterator").TokenIterator,s=function(){this.inherit(L),this.add("colon","insertion",function(m,h,l,c,i){if(i===":"&&l.selection.isEmpty()){var u=l.getCursorPosition(),d=new A(c,u.row,u.column),g=d.getCurrentToken();if(g&&g.value.match(/\s+/)&&(g=d.stepBackward()),g&&g.type==="support.type"){var v=c.doc.getLine(u.row),x=v.substring(u.column,u.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(v.substring(u.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(m,h,l,c,i){var u=c.doc.getTextRange(i);if(!i.isMultiLine()&&u===":"){var d=l.getCursorPosition(),g=new A(c,d.row,d.column),v=g.getCurrentToken();if(v&&v.value.match(/\s+/)&&(v=g.stepBackward()),v&&v.type==="support.type"){var x=c.doc.getLine(i.start.row),C=x.substring(i.end.column,i.end.column+1);if(C===";")return i.end.column++,i}}}),this.add("semicolon","insertion",function(m,h,l,c,i){if(i===";"&&l.selection.isEmpty()){var u=l.getCursorPosition(),d=c.doc.getLine(u.row),g=d.substring(u.column,u.column+1);if(g===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(m,h,l,c,i){if(i==="!"&&l.selection.isEmpty()){var u=l.getCursorPosition(),d=c.doc.getLine(u.row);if(/^\s*(;|}|$)/.test(d.substring(u.column)))return{text:"!important",selection:[10,10]}}})};V.inherits(s,L),T.CssBehaviour=s}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(y,T,G){var V=y("../lib/oop"),L=y("./text").Mode,A=y("./css_highlight_rules").CssHighlightRules,s=y("./matching_brace_outdent").MatchingBraceOutdent,m=y("../worker/worker_client").WorkerClient,h=y("./css_completions").CssCompletions,l=y("./behaviour/css").CssBehaviour,c=y("./folding/cstyle").FoldMode,i=function(){this.HighlightRules=A,this.$outdent=new s,this.$behaviour=new l,this.$completer=new h,this.foldingRules=new c};V.inherits(i,L),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(u,d,g){var v=this.$getIndent(d),x=this.getTokenizer().getLineTokens(d,u).tokens;if(x.length&&x[x.length-1].type=="comment")return v;var C=d.match(/^.*\{\s*$/);return C&&(v+=g),v},this.checkOutdent=function(u,d,g){return this.$outdent.checkOutdent(d,g)},this.autoOutdent=function(u,d,g){this.$outdent.autoOutdent(d,g)},this.getCompletions=function(u,d,g,v){return this.$completer.getCompletions(u,d,g,v)},this.createWorker=function(u){var d=new m(["ace"],"ace/mode/css_worker","Worker");return d.attachToDocument(u.getDocument()),d.on("annotate",function(g){u.setAnnotations(g.data)}),d.on("terminate",function(){u.clearAnnotations()}),d},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(i.prototype),T.Mode=i}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(y,T,G){var V=y("../../lib/oop"),L=y("../behaviour").Behaviour,A=y("../../token_iterator").TokenIterator;y("../../lib/lang");function s(h,l){return h&&h.type.lastIndexOf(l+".xml")>-1}var m=function(){this.add("string_dquotes","insertion",function(h,l,c,i,u){if(u=='"'||u=="'"){var d=u,g=i.doc.getTextRange(c.getSelectionRange());if(g!==""&&g!=="'"&&g!='"'&&c.getWrapBehavioursEnabled())return{text:d+g+d,selection:!1};var v=c.getCursorPosition(),x=i.doc.getLine(v.row),C=x.substring(v.column,v.column+1),_=new A(i,v.row,v.column),$=_.getCurrentToken();if(C==d&&(s($,"attribute-value")||s($,"string")))return{text:"",selection:[1,1]};if($||($=_.stepBackward()),!$)return;for(;s($,"tag-whitespace")||s($,"whitespace");)$=_.stepBackward();var S=!C||C.match(/\s/);if(s($,"attribute-equals")&&(S||C==">")||s($,"decl-attribute-equals")&&(S||C=="?"))return{text:d+d,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(h,l,c,i,u){var d=i.doc.getTextRange(u);if(!u.isMultiLine()&&(d=='"'||d=="'")){var g=i.doc.getLine(u.start.row),v=g.substring(u.start.column+1,u.start.column+2);if(v==d)return u.end.column++,u}}),this.add("autoclosing","insertion",function(h,l,c,i,u){if(u==">"){var d=c.getSelectionRange().start,g=new A(i,d.row,d.column),v=g.getCurrentToken()||g.stepBackward();if(!v||!(s(v,"tag-name")||s(v,"tag-whitespace")||s(v,"attribute-name")||s(v,"attribute-equals")||s(v,"attribute-value"))||s(v,"reference.attribute-value"))return;if(s(v,"attribute-value")){var x=g.getCurrentTokenColumn()+v.value.length;if(d.column/.test(i.getLine(d.row).slice(d.column)))return;for(;!s(v,"tag-name");)if(v=g.stepBackward(),v.value=="<"){v=g.stepForward();break}var _=g.getCurrentTokenRow(),$=g.getCurrentTokenColumn();if(s(g.stepBackward(),"end-tag-open"))return;var S=v.value;return _==d.row&&(S=S.substring(0,d.column-$)),this.voidElements.hasOwnProperty(S.toLowerCase())?void 0:{text:">",selection:[1,1]}}}),this.add("autoindent","insertion",function(h,l,c,i,u){if(u==` -`){var d=c.getCursorPosition(),g=i.getLine(d.row),v=new A(i,d.row,d.column),x=v.getCurrentToken();if(x&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=v.stepBackward();if(!x)return;var C=x.value,_=v.getCurrentTokenRow();if(x=v.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[C]){var $=i.getTokenAt(d.row,d.column+1),g=i.getLine(_),S=this.$getIndent(g),O=S+i.getTabString();return $&&$.value==="-1}(function(){this.getFoldWidget=function(l,c,i){var u=this._getFirstTagInLine(l,i);return u?u.closing||!u.tagName&&u.selfClosing?c==="markbeginend"?"end":"":!u.tagName||u.selfClosing||this.voidElements.hasOwnProperty(u.tagName.toLowerCase())||this._findEndTagInLine(l,i,u.tagName,u.end.column)?"":"start":this.getCommentFoldWidget(l,i)},this.getCommentFoldWidget=function(l,c){return/comment/.test(l.getState(c))&&/";break}return u}else if(h(g,"tag-close"))return u.selfClosing=g.value=="/>",u;u.start.column+=g.value.length}return null},this._findEndTagInLine=function(l,c,i,u){for(var d=l.getTokens(c),g=0,v=0;v-1}function c(d,g){for(var v=new V(d,g.row,g.column),x=v.getCurrentToken();x&&!l(x,"tag-name");)x=v.stepBackward();if(x)return x.value}function i(d,g){for(var v=new V(d,g.row,g.column),x=v.getCurrentToken();x&&!l(x,"attribute-name");)x=v.stepBackward();if(x)return x.value}var u=function(){};(function(){this.getCompletions=function(d,g,v,x){var C=g.getTokenAt(v.row,v.column);if(!C)return[];if(l(C,"tag-name")||l(C,"tag-open")||l(C,"end-tag-open"))return this.getTagCompletions(d,g,v,x);if(l(C,"tag-whitespace")||l(C,"attribute-name"))return this.getAttributeCompletions(d,g,v,x);if(l(C,"attribute-value"))return this.getAttributeValueCompletions(d,g,v,x);var _=g.getLine(v.row).substr(0,v.column);return/&[a-z]*$/i.test(_)?this.getHTMLEntityCompletions(d,g,v,x):[]},this.getTagCompletions=function(d,g,v,x){return h.map(function(C){return{value:C,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(d,g,v,x){var C=c(g,v);if(!C)return[];var _=s;return C in m&&(_=_.concat(Object.keys(m[C]))),_.map(function($){return{caption:$,snippet:$+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(d,g,v,x){var C=c(g,v),_=i(g,v);if(!C)return[];var $=[];return C in m&&_ in m[C]&&typeof m[C][_]=="object"&&($=Object.keys(m[C][_])),$.map(function(S){return{caption:S,snippet:S,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(d,g,v,x){var C=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return C.map(function(_){return{caption:_,snippet:_,meta:"html entity",score:1e6}})}}).call(u.prototype),T.HtmlCompletions=u}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(y,T,G){var V=y("../lib/oop"),L=y("../lib/lang"),A=y("./text").Mode,s=y("./javascript").Mode,m=y("./css").Mode,h=y("./html_highlight_rules").HtmlHighlightRules,l=y("./behaviour/xml").XmlBehaviour,c=y("./folding/html").FoldMode,i=y("./html_completions").HtmlCompletions,u=y("../worker/worker_client").WorkerClient,d=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],g=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],v=function(x){this.fragmentContext=x&&x.fragmentContext,this.HighlightRules=h,this.$behaviour=new l,this.$completer=new i,this.createModeDelegates({"js-":s,"css-":m}),this.foldingRules=new c(this.voidElements,L.arrayToMap(g))};V.inherits(v,A),(function(){this.blockComment={start:""},this.voidElements=L.arrayToMap(d),this.getNextLineIndent=function(x,C,_){return this.$getIndent(C)},this.checkOutdent=function(x,C,_){return!1},this.getCompletions=function(x,C,_,$){return this.$completer.getCompletions(x,C,_,$)},this.createWorker=function(x){if(this.constructor==v){var C=new u(["ace"],"ace/mode/html_worker","Worker");return C.attachToDocument(x.getDocument()),this.fragmentContext&&C.call("setOptions",[{context:this.fragmentContext}]),C.on("error",function(_){x.setAnnotations(_.data)}),C.on("terminate",function(){x.clearAnnotations()}),C}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(v.prototype),T.Mode=v}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("./text_highlight_rules").TextHighlightRules,A=T.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",s=T.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",m=function(){var h=this.createKeywordMapper({keyword:A,"support.function.builtin":s,"invalid.deprecated":"debugger"},"identifier"),l="(?:(?:[1-9]\\d*)|(?:0))",c="(?:\\.\\d+)",i="(?:\\d+)",u="(?:(?:"+i+"?"+c+")|(?:"+i+"\\.))",d="(?:(?:"+u+"|"+i+"))",g="(?:"+d+"|"+u+")",v="(?:&"+i+")",x="[a-zA-Z_][a-zA-Z0-9_]*",C="(?:"+x+"(?==))",_="(?:\\$(?:SHLVL|\\$|\\!|\\?))",$="(?:"+x+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(S,O,D){var N=S[2]=="-"?"indentedHeredoc":"heredoc",M=S.split(this.splitRegex);return D.push(N,M[4]),[{type:"constant",value:M[1]},{type:"text",value:M[2]},{type:"string",value:M[3]},{type:"support.class",value:M[4]},{type:"string",value:M[5]}]},rules:{heredoc:[{onMatch:function(S,O,D){return S===D[1]?(D.shift(),D.shift(),this.next=D[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(S,O,D){return S===D[1]?(D.shift(),D.shift(),this.next=D[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(S,O){return O[0]==="heredoc"||O[0]==="indentedHeredoc"?O[0]:S}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:_},{token:"variable",regex:C},{include:"variables"},{token:"support.function",regex:$},{token:"support.function",regex:v},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:g},{token:"constant.numeric",regex:l+"\\b"},{token:h,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};V.inherits(m,L),T.ShHighlightRules=m}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(y,T,G){var V=y("../lib/oop"),L=y("./text").Mode,A=y("./sh_highlight_rules").ShHighlightRules,s=y("../range").Range,m=y("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=A,this.foldingRules=new m,this.$behaviour=this.$defaultBehaviour};V.inherits(h,L),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(c,i,u){var d=this.$getIndent(i),g=this.getTokenizer().getLineTokens(i,c),v=g.tokens;if(v.length&&v[v.length-1].type=="comment")return d;if(c=="start"){var x=i.match(/^.*[\{\(\[:]\s*$/);x&&(d+=u)}return d};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(c,i,u){if(u!==`\r -`&&u!=="\r"&&u!==` -`)return!1;var d=this.getTokenizer().getLineTokens(i.trim(),c).tokens;if(!d)return!1;do var g=d.pop();while(g&&(g.type=="comment"||g.type=="text"&&g.value.match(/^\s+$/)));return g?g.type=="keyword"&&l[g.value]:!1},this.autoOutdent=function(c,i,u){u+=1;var d=this.$getIndent(i.getLine(u)),g=i.getTabString();d.slice(-g.length)==g&&i.remove(new s(u,d.length-g.length,u,d.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(h.prototype),T.Mode=h}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(y,T,G){var V=y("../lib/oop"),L=y("../lib/lang"),A=y("./text").Mode,s=y("./xml_highlight_rules").XmlHighlightRules,m=y("./behaviour/xml").XmlBehaviour,h=y("./folding/xml").FoldMode,l=y("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=s,this.$behaviour=new m,this.foldingRules=new h};V.inherits(c,A),(function(){this.voidElements=L.arrayToMap([]),this.blockComment={start:""},this.createWorker=function(i){var u=new l(["ace"],"ace/mode/xml_worker","Worker");return u.attachToDocument(i.getDocument()),u.on("error",function(d){i.setAnnotations(d.data)}),u.on("terminate",function(){i.clearAnnotations()}),u},this.$id="ace/mode/xml"}).call(c.prototype),T.Mode=c}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(y,T,G){var V=y("../lib/oop"),L=y("./behaviour/cstyle").CstyleBehaviour,A=y("./text").Mode,s=y("./markdown_highlight_rules").MarkdownHighlightRules,m=y("./folding/markdown").FoldMode,h=function(){this.HighlightRules=s,this.createModeDelegates({javascript:y("./javascript").Mode,html:y("./html").Mode,bash:y("./sh").Mode,sh:y("./sh").Mode,xml:y("./xml").Mode,css:y("./css").Mode}),this.foldingRules=new m,this.$behaviour=new L({braces:!0})};V.inherits(h,A),(function(){this.type="text",this.blockComment={start:""},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(l,c,i){if(l=="listblock"){var u=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(c);if(!u)return"";var d=u[2];return d||(d=parseInt(u[3],10)+1+"."),u[1]+d+u[4]}else return this.$getIndent(c)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(h.prototype),T.Mode=h}),function(){ace.require(["ace/mode/markdown"],function(y){o&&(o.exports=y)})}()})(lve);var cve={exports:{}};(function(o,b){ace.define("ace/snippets/markdown.snippets",["require","exports","module"],function(y,T,G){G.exports=`# Markdown - -# Includes octopress (http://octopress.org/) snippets - -snippet [ - [\${1:text}](http://\${2:address} "\${3:title}") -snippet [* - [\${1:link}](\${2:\`@*\`} "\${3:title}")\${4} - -snippet [: - [\${1:id}]: http://\${2:url} "\${3:title}" -snippet [:* - [\${1:id}]: \${2:\`@*\`} "\${3:title}" - -snippet ![ - ![\${1:alttext}](\${2:/images/image.jpg} "\${3:title}") -snippet ![* - ![\${1:alt}](\${2:\`@*\`} "\${3:title}")\${4} - -snippet ![: - ![\${1:id}]: \${2:url} "\${3:title}" -snippet ![:* - ![\${1:id}]: \${2:\`@*\`} "\${3:title}" - -snippet === -regex /^/=+/=*// - \${PREV_LINE/./=/g} - - \${0} -snippet --- -regex /^/-+/-*// - \${PREV_LINE/./-/g} - - \${0} -snippet blockquote - {% blockquote %} - \${1:quote} - {% endblockquote %} - -snippet blockquote-author - {% blockquote \${1:author}, \${2:title} %} - \${3:quote} - {% endblockquote %} - -snippet blockquote-link - {% blockquote \${1:author} \${2:URL} \${3:link_text} %} - \${4:quote} - {% endblockquote %} - -snippet bt-codeblock-short - \`\`\` - \${1:code_snippet} - \`\`\` - -snippet bt-codeblock-full - \`\`\` \${1:language} \${2:title} \${3:URL} \${4:link_text} - \${5:code_snippet} - \`\`\` - -snippet codeblock-short - {% codeblock %} - \${1:code_snippet} - {% endcodeblock %} - -snippet codeblock-full - {% codeblock \${1:title} lang:\${2:language} \${3:URL} \${4:link_text} %} - \${5:code_snippet} - {% endcodeblock %} - -snippet gist-full - {% gist \${1:gist_id} \${2:filename} %} - -snippet gist-short - {% gist \${1:gist_id} %} - -snippet img - {% img \${1:class} \${2:URL} \${3:width} \${4:height} \${5:title_text} \${6:alt_text} %} - -snippet youtube - {% youtube \${1:video_id} %} - -# The quote should appear only once in the text. It is inherently part of it. -# See http://octopress.org/docs/plugins/pullquote/ for more info. - -snippet pullquote - {% pullquote %} - \${1:text} {" \${2:quote} "} \${3:text} - {% endpullquote %} -`}),ace.define("ace/snippets/markdown",["require","exports","module","ace/snippets/markdown.snippets"],function(y,T,G){T.snippetText=y("./markdown.snippets"),T.scope="markdown"}),function(){ace.require(["ace/snippets/markdown"],function(y){o&&(o.exports=y)})}()})(cve);const uve={components:{"ace-editor":eH},computed:{editorOptions(){return{showPrintMargin:!1,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,autoScrollEditorIntoView:!0,highlightActiveLine:this.isFocused,highlightGutterLine:this.isFocused,minLines:1,maxLines:1/0}},compiledMarkdown(){return Pi.parse(this.cellData.code)}},data(){return{isFocused:!1,items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0}},mounted(){if(this.$devMode){const o=this.$refs.editor;o._editor.renderer.$cursorLayer.element.style.display="none"}window.addEventListener("keydown",this.handleKeyDown)},beforeUnmount(){window.removeEventListener("keydown",this.handleKeyDown)},methods:{handleKeyDown(o){this.isFocused&&o.ctrlKey&&o.key==="Enter"&&this.saveCell()},handleFocus(o){if(o){const b=this.$refs.editor;b._editor.renderer.$cursorLayer.element.style.display=""}else{const b=this.$refs.editor;b._editor.renderer.$cursorLayer.element.style.display="none"}this.isFocused=o},saveCell(){this.$emit("saveCell",this.cellData.id)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(o){this.$emit("createCell",this.cellData.id,o)}}};const fve=ff("span",{class:"py-0 px-2"},".md",-1),dve={key:2},hve=ff("p",{class:"text-caption text-disabled text-right"}," CTRL+Enter to save",-1),mve=[hve],gve=["innerHTML"];function pve(o,b,y,T,G,V){const L=A0("ace-editor");return mo(),Ts(Uo,null,[ct(M3,{flat:"",color:"bluegrey"},{default:jr(()=>[o.$devMode?(mo(),za(sm,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:jr(()=>[ct(kp,{cols:11},{default:jr(()=>[fve]),_:1}),ct(kp,{cols:1,class:"d-flex justify-end align-center py-0"},{default:jr(()=>[ct(js,{small:"",class:"mx-1",color:"primary",onClick:V.saveCell},{default:jr(()=>[ii(" mdi-content-save ")]),_:1},8,["onClick"]),ct(js,{small:"",class:"mx-1",color:"error",onClick:V.deleteCell},{default:jr(()=>[ii(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):cm("",!0),o.$devMode?(mo(),za(L,{key:1,value:y.cellData.code,"onUpdate:value":b[0]||(b[0]=A=>y.cellData.code=A),ref:"editor",class:"editor",theme:"dracula",lang:"markdown",onFocus:b[1]||(b[1]=A=>V.handleFocus(!0)),onBlur:b[2]||(b[2]=A=>V.handleFocus(!1)),options:V.editorOptions},null,8,["value","options"])):cm("",!0),o.$devMode?(mo(),Ts("div",dve,mve)):cm("",!0),ff("div",{class:"markdown-content",innerHTML:V.compiledMarkdown},null,8,gve)]),_:1}),ct(O2,{transition:"scale-transition"},{activator:jr(({props:A})=>[ct(dc,Jo(A,{block:""}),{default:jr(()=>[ct(sm,null,{default:jr(()=>[ct(js,{color:"primary"},{default:jr(()=>[ii("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:jr(()=>[ct($2,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(G.items,(A,s)=>(mo(),za(fm,{key:s},{default:jr(()=>[ct(dc,{block:"",onClick:m=>V.createCell(A.title)},{default:jr(()=>[ii(Sp(A.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})],64)}const vve=Vy(uve,[["render",pve]]);var yve={exports:{}};(function(o){(function(){var b=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var n=typeof e;return n==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":n==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":n},y=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},T=function(e,n){var r=Array.prototype.slice.call(e);return r.sort(n)},G=function(e,n){return V(function(r,f){return e.eq(n(r),n(f))})},V=function(e){return{eq:e}},L=V(function(e,n){return e===n}),A=L,s=function(e){return V(function(n,r){if(n.length!==r.length)return!1;for(var f=n.length,w=0;w{var f;return r(e,n.prototype)?!0:((f=e.constructor)===null||f===void 0?void 0:f.name)===n.name},u=e=>{const n=typeof e;return e===null?"null":n==="object"&&Array.isArray(e)?"array":n==="object"&&i(e,String,(r,f)=>f.isPrototypeOf(r))?"string":n},d=e=>n=>u(n)===e,g=e=>n=>typeof n===e,v=e=>n=>e===n,x=(e,n)=>_(e)&&i(e,n,(r,f)=>c(r)===f),C=d("string"),_=d("object"),$=e=>x(e,Object),S=d("array"),O=v(null),D=g("boolean"),N=v(void 0),M=e=>e==null,k=e=>!M(e),R=g("function"),F=g("number"),H=(e,n)=>{if(S(e)){for(let r=0,f=e.length;r{},P=(e,n)=>(...r)=>e(n.apply(null,r)),ee=(e,n)=>r=>e(n(r)),J=e=>()=>e,K=e=>e,ae=(e,n)=>e===n;function Q(e,...n){return(...r)=>{const f=n.concat(r);return e.apply(null,f)}}const he=e=>n=>!e(n),ge=e=>()=>{throw new Error(e)},Se=e=>e(),ce=e=>{e()},ne=J(!1),fe=J(!0);class X{constructor(n,r){this.tag=n,this.value=r}static some(n){return new X(!0,n)}static none(){return X.singletonNone}fold(n,r){return this.tag?r(this.value):n()}isSome(){return this.tag}isNone(){return!this.tag}map(n){return this.tag?X.some(n(this.value)):X.none()}bind(n){return this.tag?n(this.value):X.none()}exists(n){return this.tag&&n(this.value)}forall(n){return!this.tag||n(this.value)}filter(n){return!this.tag||n(this.value)?this:X.none()}getOr(n){return this.tag?this.value:n}or(n){return this.tag?this:n}getOrThunk(n){return this.tag?this.value:n()}orThunk(n){return this.tag?this:n()}getOrDie(n){if(this.tag)return this.value;throw new Error(n??"Called getOrDie on None")}static from(n){return k(n)?X.some(n):X.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(n){this.tag&&n(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}X.singletonNone=new X(!1);const ye=Array.prototype.slice,Ce=Array.prototype.indexOf,$e=Array.prototype.push,ke=(e,n)=>Ce.call(e,n),Ne=(e,n)=>{const r=ke(e,n);return r===-1?X.none():X.some(r)},Ve=(e,n)=>ke(e,n)>-1,Oe=(e,n)=>{for(let r=0,f=e.length;r{const r=e.length,f=new Array(r);for(let w=0;w{for(let r=0,f=e.length;r{for(let r=e.length-1;r>=0;r--){const f=e[r];n(f,r)}},se=(e,n)=>{const r=[],f=[];for(let w=0,B=e.length;w{const r=[];for(let f=0,w=e.length;f(we(e,(f,w)=>{r=n(r,f,w)}),r),le=(e,n,r)=>(ie(e,(f,w)=>{r=n(r,f,w)}),r),Te=(e,n,r)=>{for(let f=0,w=e.length;fTe(e,n,ne),Me=(e,n)=>{for(let r=0,f=e.length;r{const n=[];for(let r=0,f=e.length;rRe(Fe(e,n)),We=(e,n)=>{for(let r=0,f=e.length;r{const n=ye.call(e,0);return n.reverse(),n},dt=(e,n)=>ue(e,r=>!Ve(n,r)),Ge=(e,n)=>{const r={};for(let f=0,w=e.length;f{const r=ye.call(e,0);return r.sort(n),r},qe=(e,n)=>n>=0&&nqe(e,0),ut=e=>qe(e,e.length-1),tt=R(Array.from)?Array.from:e=>ye.call(e),Ct=(e,n)=>{for(let r=0;r{const r=[],f=R(n)?w=>Oe(r,B=>n(B,w)):w=>Ve(r,w);for(let w=0,B=e.length;w{const r=Yt(e);for(let f=0,w=r.length;f_n(e,(r,f)=>({k:f,v:n(r,f)})),_n=(e,n)=>{const r={};return Ft(e,(f,w)=>{const B=n(f,w);r[B.k]=B.v}),r},sn=e=>(n,r)=>{e[r]=n},Zn=(e,n,r,f)=>{Ft(e,(w,B)=>{(n(w,B)?r:f)(w,B)})},an=(e,n)=>{const r={},f={};return Zn(e,n,sn(r),sn(f)),{t:r,f}},Cn=(e,n)=>{const r={};return Zn(e,n,sn(r),j),r},jn=(e,n)=>{const r=[];return Ft(e,(f,w)=>{r.push(n(f,w))}),r},Wn=e=>jn(e,K),wn=(e,n)=>lt(e,n)?X.from(e[n]):X.none(),lt=(e,n)=>Nt.call(e,n),ft=(e,n)=>lt(e,n)&&e[n]!==void 0&&e[n]!==null,wt=(e,n,r=l)=>h(r).eq(e,n),vt=e=>{const n={};return ie(e,r=>{n[r]={}}),Yt(n)},$t=e=>e.length!==void 0,Ze=Array.isArray,it=e=>{if(Ze(e))return e;{const n=[];for(let r=0,f=e.length;r{if(!e)return!1;if(r=r||e,$t(e)){for(let f=0,w=e.length;f{const r=[];return ht(e,(f,w)=>{r.push(n(f,w,e))}),r},Tt=(e,n)=>{const r=[];return ht(e,(f,w)=>{(!n||n(f,w,e))&&r.push(f)}),r},Et=(e,n)=>{if(e){for(let r=0,f=e.length;r{let w=N(r)?e[0]:r;for(let B=0;B{for(let f=0,w=e.length;fe[e.length-1],Dt=e=>{let n=!1,r;return(...f)=>(n||(n=!0,r=e.apply(null,f)),r)},un=(e,n,r,f)=>{const w=e.isiOS()&&/ipad/i.test(r)===!0,B=e.isiOS()&&!w,Z=e.isiOS()||e.isAndroid(),oe=Z||f("(pointer:coarse)"),be=w||!B&&Z&&f("(min-device-width:768px)"),Pe=B||Z&&!be,Ke=n.isSafari()&&e.isiOS()&&/safari/i.test(r)===!1,Je=!Pe&&!be&&!Ke;return{isiPad:J(w),isiPhone:J(B),isTablet:J(be),isPhone:J(Pe),isTouch:J(oe),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:J(Ke),isDesktop:J(Je)}},Un=(e,n)=>{for(let r=0;r{const r=Un(e,n);if(!r)return{major:0,minor:0};const f=w=>Number(n.replace(r,"$"+w));return pr(f(1),f(2))},Er=(e,n)=>{const r=String(n).toLowerCase();return e.length===0?zt():tr(e,r)},zt=()=>pr(0,0),pr=(e,n)=>({major:e,minor:n}),Gn={nu:pr,detect:Er,unknown:zt},Ir=(e,n)=>Ct(n.brands,r=>{const f=r.brand.toLowerCase();return de(e,w=>{var B;return f===((B=w.brand)===null||B===void 0?void 0:B.toLowerCase())}).map(w=>({current:w.name,version:Gn.nu(parseInt(r.version,10),0)}))}),Tr=(e,n)=>{const r=String(n).toLowerCase();return de(e,f=>f.search(r))},rr=(e,n)=>Tr(e,n).map(r=>{const f=Gn.detect(r.versionRegexes,n);return{current:r.name,version:f}}),Yr=(e,n)=>Tr(e,n).map(r=>{const f=Gn.detect(r.versionRegexes,n);return{current:r.name,version:f}}),_r=(e,n)=>e.substring(n),Ln=(e,n,r)=>n===""||e.length>=n.length&&e.substr(r,r+n.length)===n,xr=(e,n)=>wr(e,n)?_r(e,n.length):e,or=(e,n,r=0,f)=>{const w=e.indexOf(n,r);return w!==-1?N(f)?!0:w+n.length<=f:!1},wr=(e,n)=>Ln(e,n,0),ro=(e,n)=>Ln(e,n,e.length-n.length),vo=e=>n=>n.replace(e,""),Cr=vo(/^\s+|\s+$/g),He=vo(/^\s+/g),De=vo(/\s+$/g),St=e=>e.length>0,kt=e=>!St(e),Pt=(e,n)=>n<=0?"":new Array(n+1).join(e),Bt=(e,n=10)=>{const r=parseInt(e,n);return isNaN(r)?X.none():X.some(r)},Ut=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ot=e=>n=>or(n,e),_t=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>or(e,"edge/")&&or(e,"chrome")&&or(e,"safari")&&or(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ut],search:e=>or(e,"chrome")&&!or(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>or(e,"msie")||or(e,"trident")},{name:"Opera",versionRegexes:[Ut,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ot("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ot("firefox")},{name:"Safari",versionRegexes:[Ut,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(or(e,"safari")||or(e,"mobile/"))&&or(e,"applewebkit")}],qt=[{name:"Windows",search:Ot("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>or(e,"iphone")||or(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ot("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Ot("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ot("linux"),versionRegexes:[]},{name:"Solaris",search:Ot("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ot("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ot("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],cn={browsers:J(_t),oses:J(qt)},Qt="Edge",nn="Chromium",Sn="IE",bn="Opera",gn="Firefox",Qn="Safari",Bn=()=>Hr({current:void 0,version:Gn.unknown()}),Hr=e=>{const n=e.current,r=e.version,f=w=>()=>n===w;return{current:n,version:r,isEdge:f(Qt),isChromium:f(nn),isIE:f(Sn),isOpera:f(bn),isFirefox:f(gn),isSafari:f(Qn)}},fr={unknown:Bn,nu:Hr,edge:J(Qt),chromium:J(nn),ie:J(Sn),opera:J(bn),firefox:J(gn),safari:J(Qn)},Vr="Windows",ar="iOS",cr="Android",Kr="Linux",qr="macOS",So="Solaris",wa="FreeBSD",bo="ChromeOS",Zo=()=>oa({current:void 0,version:Gn.unknown()}),oa=e=>{const n=e.current,r=e.version,f=w=>()=>n===w;return{current:n,version:r,isWindows:f(Vr),isiOS:f(ar),isAndroid:f(cr),isMacOS:f(qr),isLinux:f(Kr),isSolaris:f(So),isFreeBSD:f(wa),isChromeOS:f(bo)}},Va={unknown:Zo,nu:oa,windows:J(Vr),ios:J(ar),android:J(cr),linux:J(Kr),macos:J(qr),solaris:J(So),freebsd:J(wa),chromeos:J(bo)},Fa={detect:(e,n,r)=>{const f=cn.browsers(),w=cn.oses(),B=n.bind(be=>Ir(f,be)).orThunk(()=>rr(f,e)).fold(fr.unknown,fr.nu),Z=Yr(w,e).fold(Va.unknown,Va.nu),oe=un(Z,B,e,r);return{browser:B,os:Z,deviceType:oe}}},Os=e=>window.matchMedia(e).matches;let Zl=Dt(()=>Fa.detect(navigator.userAgent,X.from(navigator.userAgentData),Os));const Ys=()=>Zl(),Ec=navigator.userAgent,ks=Ys(),Wa=ks.browser,ss=ks.os,Ya=ks.deviceType,_c=Ec.indexOf("Windows Phone")!==-1,Lr={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Wa.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Wa.isIE(),windowsPhone:_c,browser:{current:Wa.current,version:Wa.version,isChromium:Wa.isChromium,isEdge:Wa.isEdge,isFirefox:Wa.isFirefox,isIE:Wa.isIE,isOpera:Wa.isOpera,isSafari:Wa.isSafari},os:{current:ss.current,version:ss.version,isAndroid:ss.isAndroid,isChromeOS:ss.isChromeOS,isFreeBSD:ss.isFreeBSD,isiOS:ss.isiOS,isLinux:ss.isLinux,isMacOS:ss.isMacOS,isSolaris:ss.isSolaris,isWindows:ss.isWindows},deviceType:{isDesktop:Ya.isDesktop,isiPad:Ya.isiPad,isiPhone:Ya.isiPhone,isPhone:Ya.isPhone,isTablet:Ya.isTablet,isTouch:Ya.isTouch,isWebView:Ya.isWebView}},jl=/^\s*|\s*$/g,Ka=e=>M(e)?"":(""+e).replace(jl,""),yi=(e,n)=>n?n==="array"&&Ze(e)?!0:typeof e===n:e!==void 0,Hf=(e,n,r={})=>{const f=C(e)?e.split(n||","):e||[];let w=f.length;for(;w--;)r[f[w]]={};return r},Xa=lt,Zc=(e,...n)=>{for(let r=0;rn.call(f,w,B,r)===!1?!1:(zf(w,n,r,f),!0)))},ur={trim:Ka,isArray:Ze,is:yi,toArray:it,makeMap:Hf,each:ht,map:pt,grep:Tt,inArray:Et,hasOwn:Xa,extend:Zc,walk:zf,resolve:(e,n=window)=>{const r=e.split(".");for(let f=0,w=r.length;fS(e)?e:e===""?[]:pt(e.split(n||","),Ka),_addCacheSuffix:e=>{const n=Lr.cacheSuffix;return n&&(e+=(e.indexOf("?")===-1?"?":"&")+n),e}},Ms=(e,n,r=ae)=>e.exists(f=>r(f,n)),li=(e,n,r=ae)=>Es(e,n,r).getOr(e.isNone()&&n.isNone()),Rs=e=>{const n=[],r=f=>{n.push(f)};for(let f=0;fe.isSome()&&n.isSome()?X.some(r(e.getOrDie(),n.getOrDie())):X.none(),qi=(e,n,r,f)=>e.isSome()&&n.isSome()&&r.isSome()?X.some(f(e.getOrDie(),n.getOrDie(),r.getOrDie())):X.none(),Bo=(e,n)=>e?X.some(n):X.none(),Ks=typeof window<"u"?window:Function("return this;")(),Bs=(e,n)=>{let r=n??Ks;for(let f=0;f{const r=e.split(".");return Bs(r,n)},Ls=(e,n)=>df(e,n),cu=(e,n)=>{const r=Ls(e,n);if(r==null)throw new Error(e+" not available on this browser");return r},uu=Object.getPrototypeOf,Vf=e=>cu("HTMLElement",e),Ma=e=>{const n=df("ownerDocument.defaultView",e);return _(e)&&(Vf(n).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(uu(e).constructor.name))},Uf=8,gc=9,al=11,wd=1,dh=3,La=e=>e.dom.nodeName.toLowerCase(),ci=e=>e.dom.nodeType,Wu=e=>n=>ci(n)===e,P2=e=>ci(e)===Uf||La(e)==="#comment",Ps=e=>sl(e)&&Ma(e.dom),sl=Wu(wd),Ei=Wu(dh),Zy=Wu(gc),Ag=Wu(al),Yc=e=>n=>sl(n)&&La(n)===e,fu=(e,n,r)=>{if(C(r)||D(r)||F(r))e.setAttribute(n,r+"");else throw console.error("Invalid call to Attribute.set. Key ",n,":: Value ",r,":: Element ",e),new Error("Attribute value was not simple")},ws=(e,n,r)=>{fu(e.dom,n,r)},Kc=(e,n)=>{const r=e.dom;Ft(n,(f,w)=>{fu(r,w,f)})},il=(e,n)=>{const r=e.dom.getAttribute(n);return r===null?void 0:r},Yl=(e,n)=>X.from(il(e,n)),Gu=(e,n)=>{const r=e.dom;return r&&r.hasAttribute?r.hasAttribute(n):!1},Xs=(e,n)=>{e.dom.removeAttribute(n)},Zu=e=>{const n=e.dom.attributes;return n==null||n.length===0},Mg=e=>le(e.dom.attributes,(n,r)=>(n[r.name]=r.value,n),{}),Eg=(e,n)=>{const r=il(e,n);return r===void 0||r===""?[]:r.split(" ")},D0=(e,n,r)=>{const w=Eg(e,n).concat([r]);return ws(e,n,w.join(" ")),!0},Dp=(e,n,r)=>{const f=ue(Eg(e,n),w=>w!==r);return f.length>0?ws(e,n,f.join(" ")):Xs(e,n),!1},ju=e=>e.dom.classList!==void 0,_g=e=>Eg(e,"class"),Kl=(e,n)=>D0(e,"class",n),$p=(e,n)=>Dp(e,"class",n),$0=(e,n)=>Ve(_g(e),n)?$p(e,n):Kl(e,n),hh=(e,n)=>{ju(e)?e.dom.classList.add(n):Kl(e,n)},O0=e=>{(ju(e)?e.dom.classList:_g(e)).length===0&&Xs(e,"class")},mh=(e,n)=>{ju(e)?e.dom.classList.remove(n):$p(e,n),O0(e)},jy=(e,n)=>{const r=ju(e)?e.dom.classList.toggle(n):$0(e,n);return O0(e),r},Cd=(e,n)=>ju(e)&&e.dom.classList.contains(n),Yy=(e,n)=>{const f=(n||document).createElement("div");if(f.innerHTML=e,!f.hasChildNodes()||f.childNodes.length>1){const w="HTML does not have a single root node";throw console.error(w,e),new Error(w)}return gh(f.childNodes[0])},Ky=(e,n)=>{const f=(n||document).createElement(e);return gh(f)},Xy=(e,n)=>{const f=(n||document).createTextNode(e);return gh(f)},gh=e=>{if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},jt={fromHtml:Yy,fromTag:Ky,fromText:Xy,fromDom:gh,fromPoint:(e,n,r)=>X.from(e.dom.elementFromPoint(n,r)).map(gh)},ph=(e,n)=>{const r=[],f=B=>(r.push(B),n(B));let w=n(e);do w=w.bind(f);while(w.isSome());return r},du=(e,n)=>{const r=e.dom;if(r.nodeType!==wd)return!1;{const f=r;if(f.matches!==void 0)return f.matches(n);if(f.msMatchesSelector!==void 0)return f.msMatchesSelector(n);if(f.webkitMatchesSelector!==void 0)return f.webkitMatchesSelector(n);if(f.mozMatchesSelector!==void 0)return f.mozMatchesSelector(n);throw new Error("Browser lacks native selectors")}},Op=e=>e.nodeType!==wd&&e.nodeType!==gc&&e.nodeType!==al||e.childElementCount===0,Rg=(e,n)=>{const r=n===void 0?document:n.dom;return Op(r)?[]:Fe(r.querySelectorAll(e),jt.fromDom)},I2=(e,n)=>{const r=n===void 0?document:n.dom;return Op(r)?X.none():X.from(r.querySelector(e)).map(jt.fromDom)},Ba=(e,n)=>e.dom===n.dom,Dl=(e,n)=>{const r=e.dom,f=n.dom;return r===f?!1:r.contains(f)},hf=e=>jt.fromDom(e.dom.ownerDocument),mf=e=>Zy(e)?e:hf(e),I0=e=>jt.fromDom(mf(e).dom.documentElement),mm=e=>jt.fromDom(mf(e).dom.defaultView),Rc=e=>X.from(e.dom.parentNode).map(jt.fromDom),gm=e=>X.from(e.dom.parentElement).map(jt.fromDom),N0=(e,n)=>{const r=R(n)?n:ne;let f=e.dom;const w=[];for(;f.parentNode!==null&&f.parentNode!==void 0;){const B=f.parentNode,Z=jt.fromDom(B);if(w.push(Z),r(Z)===!0)break;f=B}return w},Jy=e=>{const n=r=>ue(r,f=>!Ba(e,f));return Rc(e).map(zi).map(n).getOr([])},hu=e=>X.from(e.dom.previousSibling).map(jt.fromDom),Lg=e=>X.from(e.dom.nextSibling).map(jt.fromDom),F0=e=>ot(ph(e,hu)),pc=e=>ph(e,Lg),zi=e=>Fe(e.dom.childNodes,jt.fromDom),Sd=(e,n)=>{const r=e.dom.childNodes;return X.from(r[n]).map(jt.fromDom)},pm=e=>Sd(e,0),Xl=e=>Sd(e,e.dom.childNodes.length-1),ll=e=>e.dom.childNodes.length,mu=e=>e.dom.hasChildNodes(),Qy=e=>{const n=e.dom.head;if(n==null)throw new Error("Head is not available yet");return jt.fromDom(n)},Dg=e=>Ag(e)&&k(e.dom.host),B0=R(Element.prototype.attachShadow)&&R(Node.prototype.getRootNode),Pp=J(B0),Yu=B0?e=>jt.fromDom(e.dom.getRootNode()):mf,qy=e=>Dg(e)?e:Qy(mf(e)),_3=e=>Dg(e)?e:jt.fromDom(mf(e).dom.body),R3=e=>{const n=Yu(e);return Dg(n)?X.some(n):X.none()},N2=e=>jt.fromDom(e.dom.host),$g=e=>{if(Pp()&&k(e.target)){const n=jt.fromDom(e.target);if(sl(n)&&Ip(n)&&e.composed&&e.composedPath){const r=e.composedPath();if(r)return gt(r)}}return X.from(e.target)},Ip=e=>k(e.dom.shadowRoot),Td=e=>{const n=Ei(e)?e.dom.parentNode:e.dom;if(n==null||n.ownerDocument===null)return!1;const r=n.ownerDocument;return R3(jt.fromDom(n)).fold(()=>r.body.contains(n),ee(Td,N2))};var Hs=(e,n,r,f,w)=>e(r,f)?X.some(r):R(w)&&w(r)?X.none():n(r,f,w);const Js=(e,n,r)=>{let f=e.dom;const w=R(r)?r:ne;for(;f.parentNode;){f=f.parentNode;const B=jt.fromDom(f);if(n(B))return X.some(B);if(w(B))break}return X.none()},Xc=(e,n,r)=>Hs((w,B)=>B(w),Js,e,n,r),H0=(e,n)=>{const r=e.dom;return r.parentNode?eb(jt.fromDom(r.parentNode),f=>!Ba(e,f)&&n(f)):X.none()},eb=(e,n)=>{const r=w=>n(jt.fromDom(w));return de(e.dom.childNodes,r).map(jt.fromDom)},bl=(e,n)=>{const r=f=>{for(let w=0;wJs(e,f=>du(f,n),r),Jl=(e,n)=>I2(n,e),Ku=(e,n,r)=>Hs((w,B)=>du(w,B),vm,e,n,r),z0=e=>Ku(e,"[contenteditable]"),Wo=(e,n=!1)=>Td(e)?e.dom.isContentEditable:z0(e).fold(J(n),r=>vc(r)==="true"),vc=e=>e.dom.contentEditable,kd=e=>e.style!==void 0&&R(e.style.getPropertyValue),vh=(e,n,r)=>{if(!C(r))throw console.error("Invalid call to CSS.set. Property ",n,":: Value ",r,":: Element ",e),new Error("CSS value must be a string: "+r);kd(e)&&e.style.setProperty(n,r)},V0=(e,n)=>{kd(e)&&e.style.removeProperty(n)},U0=(e,n,r)=>{const f=e.dom;vh(f,n,r)},$l=(e,n)=>{const r=e.dom;Ft(n,(f,w)=>{vh(r,w,f)})},ui=(e,n)=>{const r=e.dom,w=window.getComputedStyle(r).getPropertyValue(n);return w===""&&!Td(e)?Lc(r,n):w},Lc=(e,n)=>kd(e)?e.style.getPropertyValue(n):"",_i=(e,n)=>{const r=e.dom,f=Lc(r,n);return X.from(f).filter(w=>w.length>0)},W0=e=>{const n={},r=e.dom;if(kd(r))for(let f=0;f{const r=e.dom;V0(r,n),Ms(Yl(e,"style").map(Cr),"")&&Xs(e,"style")},fi=e=>e.dom.offsetWidth,Ri=(e,n)=>{Rc(e).each(f=>{f.dom.insertBefore(n.dom,e.dom)})},gu=(e,n)=>{Lg(e).fold(()=>{Rc(e).each(w=>{di(w,n)})},f=>{Ri(f,n)})},yh=(e,n)=>{pm(e).fold(()=>{di(e,n)},f=>{e.dom.insertBefore(n.dom,f.dom)})},di=(e,n)=>{e.dom.appendChild(n.dom)},ym=(e,n)=>{Ri(e,n),di(n,e)},Og=(e,n)=>{ie(n,(r,f)=>{const w=f===0?e:n[f-1];gu(w,r)})},hs=(e,n)=>{ie(n,r=>{di(e,r)})},Ad=e=>{e.dom.textContent="",ie(zi(e),n=>{Ua(n)})},Ua=e=>{const n=e.dom;n.parentNode!==null&&n.parentNode.removeChild(n)},Xu=e=>{const n=zi(e);n.length>0&&Og(e,n),Ua(e)},G0=(e,n)=>{const f=(n||document).createElement("div");return f.innerHTML=e,zi(jt.fromDom(f))},Pg=e=>Fe(e,jt.fromDom),aa=e=>e.dom.innerHTML,bh=(e,n)=>{const f=hf(e).dom,w=jt.fromDom(f.createDocumentFragment()),B=G0(n,f);hs(w,B),Ad(e),di(e,w)},Fp=e=>{const n=jt.fromTag("div"),r=jt.fromDom(e.dom.cloneNode(!0));return di(n,r),aa(n)},Ig=(e,n,r,f,w,B,Z)=>({target:e,x:n,y:r,stop:f,prevent:w,kill:B,raw:Z}),F2=e=>{const n=jt.fromDom($g(e).getOr(e.target)),r=()=>e.stopPropagation(),f=()=>e.preventDefault(),w=P(f,r);return Ig(n,e.clientX,e.clientY,r,f,w,e)},B2=(e,n)=>r=>{e(r)&&n(F2(r))},Z0=(e,n,r,f,w)=>{const B=B2(r,f);return e.dom.addEventListener(n,B,w),{unbind:Q(Bp,e,n,B,w)}},xh=(e,n,r,f)=>Z0(e,n,r,f,!1),Bp=(e,n,r,f)=>{e.dom.removeEventListener(n,r,f)},wh=(e,n)=>({left:e,top:n,translate:(f,w)=>wh(e+f,n+w)}),bm=wh,tb=e=>{const n=e.getBoundingClientRect();return bm(n.left,n.top)},pu=(e,n)=>e!==void 0?e:n!==void 0?n:0,nb=e=>{const n=e.dom.ownerDocument,r=n.body,f=n.defaultView,w=n.documentElement;if(r===e.dom)return bm(r.offsetLeft,r.offsetTop);const B=pu(f==null?void 0:f.pageYOffset,w.scrollTop),Z=pu(f==null?void 0:f.pageXOffset,w.scrollLeft),oe=pu(w.clientTop,r.clientTop),be=pu(w.clientLeft,r.clientLeft);return Ch(e).translate(Z-be,B-oe)},Ch=e=>{const n=e.dom,f=n.ownerDocument.body;return f===n?bm(f.offsetLeft,f.offsetTop):Td(e)?tb(n):bm(0,0)},Jc=e=>{const n=e!==void 0?e.dom:document,r=n.body.scrollLeft||n.documentElement.scrollLeft,f=n.body.scrollTop||n.documentElement.scrollTop;return bm(r,f)},Hp=(e,n,r)=>{const w=(r!==void 0?r.dom:document).defaultView;w&&w.scrollTo(e,n)},j0=(e,n)=>{Ys().browser.isSafari()&&R(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(n)},xm=e=>{const n=e===void 0?window:e;return Ys().browser.isFirefox()?X.none():X.from(n.visualViewport)},Y0=(e,n,r,f)=>({x:e,y:n,width:r,height:f,right:e+r,bottom:n+f}),K0=e=>{const n=e===void 0?window:e,r=n.document,f=Jc(jt.fromDom(r));return xm(n).fold(()=>{const w=n.document.documentElement,B=w.clientWidth,Z=w.clientHeight;return Y0(f.left,f.top,B,Z)},w=>Y0(Math.max(w.pageLeft,f.left),Math.max(w.pageTop,f.top),w.width,w.height))},X0=(e,n)=>ue(zi(e),n),zp=(e,n)=>{let r=[];return ie(zi(e),f=>{n(f)&&(r=r.concat([f])),r=r.concat(zp(f,n))}),r},Vi=(e,n)=>Rg(n,e),Ng=(e,n,r)=>vm(e,n,r).isSome();class es{constructor(n,r){this.node=n,this.rootNode=r,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(n){return this.node=this.findSibling(this.node,"firstChild","nextSibling",n),this.node}prev(n){return this.node=this.findSibling(this.node,"lastChild","previousSibling",n),this.node}prev2(n){return this.node=this.findPreviousNode(this.node,n),this.node}findSibling(n,r,f,w){if(n){if(!w&&n[r])return n[r];if(n!==this.rootNode){let B=n[f];if(B)return B;for(let Z=n.parentNode;Z&&Z!==this.rootNode;Z=Z.parentNode)if(B=Z[f],B)return B}}}findPreviousNode(n,r){if(n){const f=n.previousSibling;if(this.rootNode&&f===this.rootNode)return;if(f){if(!r){for(let B=f.lastChild;B;B=B.lastChild)if(!B.lastChild)return B}return f}const w=n.parentNode;if(w&&w!==this.rootNode)return w}}}const io=e=>n=>!!n&&n.nodeType===e,vu=e=>!!e&&!Object.getPrototypeOf(e),Gr=io(1),xl=e=>Gr(e)&&Ps(jt.fromDom(e)),H2=e=>Gr(e)&&e.namespaceURI==="http://www.w3.org/2000/svg",Wf=e=>{const n=e.toLowerCase();return r=>k(r)&&r.nodeName.toLowerCase()===n},oi=e=>{const n=e.map(r=>r.toLowerCase());return r=>{if(r&&r.nodeName){const f=r.nodeName.toLowerCase();return Ve(n,f)}return!1}},Gf=(e,n)=>{const r=n.toLowerCase().split(" ");return f=>{if(Gr(f)){const w=f.ownerDocument.defaultView;if(w)for(let B=0;Bn=>Gr(n)&&n.hasAttribute(e),Ui=(e,n)=>r=>Gr(r)&&r.getAttribute(e)===n,Ju=e=>Gr(e)&&e.hasAttribute("data-mce-bogus"),Sh=e=>Gr(e)&&e.getAttribute("data-mce-bogus")==="all",yu=e=>Gr(e)&&e.tagName==="TABLE",J0=e=>n=>!!(xl(n)&&(n.contentEditable===e||n.getAttribute("data-mce-contenteditable")===e)),Vp=oi(["textarea","input"]),ir=io(3),rb=io(4),cl=io(7),gf=io(8),wm=io(9),ns=io(11),Ja=Wf("br"),ul=Wf("img"),wl=J0("true"),fa=J0("false"),Bg=oi(["td","th"]),Wi=oi(["td","th","caption"]),zs=oi(["video","audio","object","embed"]),Hg=Wf("li"),qn=Wf("details"),yc=Wf("summary"),Cm="\uFEFF",Da=" ",Qu=e=>e===Cm,z2=e=>e.replace(/\uFEFF/g,""),Up=((e,n)=>{const r=B=>{if(!e(B))throw new Error("Can only get "+n+" value of a "+n+" node");return f(B).getOr("")},f=B=>e(B)?X.from(B.dom.nodeValue):X.none();return{get:r,getOption:f,set:(B,Z)=>{if(!e(B))throw new Error("Can only set raw "+n+" value of a "+n+" node");B.dom.nodeValue=Z}}})(Ei,"text"),Dc=e=>Up.get(e),Wp=e=>Up.getOption(e),Ol=(e,n)=>Up.set(e,n),Ia=["td","th"],$c=["thead","tbody","tfoot"],Qs=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Gi=["li","dd","dt"],Zf=["ul","ol","dl"],pf=["pre","script","textarea","style"],jf=e=>{let n;return r=>(n=n||Ge(e,fe),lt(n,La(r)))},Ql=e=>La(e)==="table",vf=e=>sl(e)&&La(e)==="br",En=jf(Qs),ql=jf(Zf),yf=jf(Gi),bf=jf($c),bc=jf(Ia),Li=jf(pf),bi=e=>{const n=[];let r=e.dom;for(;r;)n.push(jt.fromDom(r)),r=r.lastChild;return n},L3=e=>{const n=Vi(e,"br"),r=ue(bi(e).slice(-1),vf);n.length===r.length&&ie(r,Ua)},ec=()=>{const e=jt.fromTag("br");return ws(e,"data-mce-bogus","1"),e},U=e=>{Ad(e),di(e,ec())},q=(e,n)=>{Xl(e).each(r=>{hu(r).each(f=>{n.isBlock(La(e))&&vf(r)&&n.isBlock(La(f))&&Ua(r)})})},ve=Cm,Ae=Qu,_e=z2,Ie=e=>e.insertContent(ve,{preserve_zwsp:!0}),Qe=Gr,Ye=ir,rt=e=>(Ye(e)&&(e=e.parentNode),Qe(e)&&e.hasAttribute("data-mce-caret")),yt=e=>Ye(e)&&Ae(e.data),bt=e=>rt(e)||yt(e),Vt=e=>e.firstChild!==e.lastChild||!Ja(e.firstChild),Wt=(e,n)=>{var r;const w=((r=e.ownerDocument)!==null&&r!==void 0?r:document).createTextNode(ve),B=e.parentNode;if(n){const Z=e.previousSibling;if(Ye(Z)){if(bt(Z))return Z;if(dn(Z))return Z.splitText(Z.data.length-1)}B==null||B.insertBefore(w,e)}else{const Z=e.nextSibling;if(Ye(Z)){if(bt(Z))return Z;if(en(Z))return Z.splitText(1),Z}e.nextSibling?B==null||B.insertBefore(w,e.nextSibling):B==null||B.appendChild(w)}return w},mn=e=>{const n=e.container();return ir(n)?n.data.charAt(e.offset())===ve||e.isAtStart()&&yt(n.previousSibling):!1},An=e=>{const n=e.container();return ir(n)?n.data.charAt(e.offset()-1)===ve||e.isAtEnd()&&yt(n.nextSibling):!1},Kt=(e,n,r)=>{var f;const B=((f=n.ownerDocument)!==null&&f!==void 0?f:document).createElement(e);B.setAttribute("data-mce-caret",r?"before":"after"),B.setAttribute("data-mce-bogus","all"),B.appendChild(ec().dom);const Z=n.parentNode;return r?Z==null||Z.insertBefore(B,n):n.nextSibling?Z==null||Z.insertBefore(B,n.nextSibling):Z==null||Z.appendChild(B),B},en=e=>Ye(e)&&e.data[0]===ve,dn=e=>Ye(e)&&e.data[e.data.length-1]===ve,Rn=e=>{var n;const r=e.getElementsByTagName("br"),f=r[r.length-1];Ju(f)&&((n=f.parentNode)===null||n===void 0||n.removeChild(f))},Mn=e=>e&&e.hasAttribute("data-mce-caret")?(Rn(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("data-mce-style"),e.removeAttribute("_moz_abspos"),e):null,vn=e=>rt(e.startContainer),lr=wl,zr=fa,Jr=Ja,kr=ir,eo=oi(["script","style","textarea"]),lo=oi(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Ko=oi(["table"]),yo=bt,fo=e=>yo(e)?!1:kr(e)?!eo(e.parentNode):lo(e)||Jr(e)||Ko(e)||Vs(e),Ha=e=>Gr(e)&&e.getAttribute("unselectable")==="true",Vs=e=>!Ha(e)&&zr(e),is=(e,n)=>{for(let r=e.parentNode;r&&r!==n;r=r.parentNode){if(Vs(r))return!1;if(lr(r))return!0}return!0},$r=e=>Vs(e)?!le(tt(e.getElementsByTagName("*")),(n,r)=>n||lr(r),!1):!1,_o=e=>lo(e)||$r(e),sa=(e,n)=>fo(e)&&is(e,n),Ca=/^[ \t\r\n]*$/,As=e=>Ca.test(e),qs=e=>{for(const n of e)if(!Qu(n))return!1;return!0},Di=e=>" \f \v".indexOf(e)!==-1,xi=e=>e===` -`||e==="\r",xc=(e,n)=>n=0?xi(e[n]):!1,Ii=(e,n=4,r=!0,f=!0)=>{const w=Pt(" ",n),B=e.replace(/\t/g,w);return le(B,(oe,be)=>Di(be)||be===Da?oe.pcIsSpace||oe.str===""&&r||oe.str.length===B.length-1&&f||xc(B,oe.str.length+1)?{pcIsSpace:!1,str:oe.str+Da}:{pcIsSpace:!0,str:oe.str+" "}:{pcIsSpace:xi(be),str:oe.str+be},{pcIsSpace:!1,str:""}).str},tc=(e,n)=>{const r=jt.fromDom(n),f=jt.fromDom(e);return Ng(f,"pre,code",Q(Ba,r))},Cl=(e,n)=>ir(e)&&As(e.data)&&!tc(e,n),Ga=e=>Gr(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id")),xu=(e,n)=>fo(e)&&!Cl(e,n)||Ga(e)||qu(e),qu=Fg("data-mce-bookmark"),Sl=Fg("data-mce-bogus"),wi=Ui("data-mce-bogus","all"),Tl=e=>gm(jt.fromDom(e)).exists(n=>!Wo(n)),Ci=(e,n)=>{let r=0;if(xu(e,e))return!1;{let f=e.firstChild;if(!f)return!0;const w=new es(f,e);do{if(n){if(wi(f)){f=w.next(!0);continue}if(Sl(f)){f=w.next();continue}}if(wl(f)&&Tl(f))return!1;if(Ja(f)){r++,f=w.next();continue}if(xu(f,e))return!1;f=w.next()}while(f);return r<=1}},Za=(e,n=!0)=>Ci(e.dom,n),nc=e=>e.toLowerCase()==="svg",Yf=e=>nc(e.nodeName),wu=e=>(e==null?void 0:e.nodeName)==="svg"?"svg":"html",Th=["svg"],Kf=()=>{let e=[];const n=()=>e[e.length-1];return{track:B=>{Yf(B)&&e.push(B);let Z=n();return Z&&!Z.contains(B)&&(e.pop(),Z=n()),wu(Z)},current:()=>wu(n()),reset:()=>{e=[]}}},Q0="data-mce-block",ob=e=>ue(Yt(e),n=>!/[A-Z]/.test(n)),Md=e=>Fe(ob(e),n=>`${n}:`+Fe(Th,r=>`not(${r} ${n})`).join(":")).join(","),Xf=(e,n)=>k(n.querySelector(e))?(n.setAttribute(Q0,"true"),n.getAttribute("data-mce-selected")==="inline-boundary"&&n.removeAttribute("data-mce-selected"),!0):(n.removeAttribute(Q0),!1),Cu=(e,n)=>{const r=Md(e.getTransparentElements()),f=Md(e.getBlockElements());return ue(n.querySelectorAll(r),w=>Xf(f,w))},Sm=(e,n)=>{var r;const f=n?"lastChild":"firstChild";for(let w=e[f];w;w=w[f])if(Za(jt.fromDom(w))){(r=w.parentNode)===null||r===void 0||r.removeChild(w);return}},Tm=(e,n)=>{const r=document.createRange(),f=e.parentNode;if(f){r.setStartBefore(e),r.setEndBefore(n);const w=r.extractContents();Sm(w,!0),r.setStartAfter(n),r.setEndAfter(e);const B=r.extractContents();Sm(B,!1),Za(jt.fromDom(w))||f.insertBefore(w,e),Za(jt.fromDom(n))||f.insertBefore(n,e),Za(jt.fromDom(B))||f.insertBefore(B,e),f.removeChild(e)}},D3=(e,n,r)=>{const f=e.getBlockElements(),w=jt.fromDom(n),B=oe=>La(oe)in f,Z=oe=>Ba(oe,w);ie(Pg(r),oe=>{Js(oe,B,Z).each(be=>{const Pe=X0(oe,Ke=>B(Ke)&&!e.isValidChild(La(be),La(Ke)));if(Pe.length>0){const Ke=gm(be);ie(Pe,Je=>{Js(Je,B,Z).each(at=>{Tm(at.dom,Je.dom)})}),Ke.each(Je=>Cu(e,Je.dom))}})})},ab=(e,n,r)=>{ie([...r,...pa(e,n)?[n]:[]],f=>ie(Vi(jt.fromDom(f),f.nodeName.toLowerCase()),w=>{go(e,w.dom)&&Xu(w)}))},q0=(e,n)=>{const r=Cu(e,n);D3(e,n,r),ab(e,n,r)},sb=(e,n)=>{if(t1(e,n)){const r=Md(e.getBlockElements());Xf(r,n)}},$3=(e,n,r)=>{const f=B=>Ba(B,jt.fromDom(n)),w=N0(jt.fromDom(r),f);qe(w,w.length-2).filter(sl).fold(()=>q0(e,n),B=>q0(e,B.dom))},ib=e=>e.hasAttribute(Q0),e1=(e,n)=>lt(e.getTransparentElements(),n),t1=(e,n)=>Gr(n)&&e1(e,n.nodeName),pa=(e,n)=>t1(e,n)&&ib(n),go=(e,n)=>t1(e,n)&&!ib(n),kh=(e,n)=>n.type===1&&e1(e,n.name)&&C(n.attr(Q0)),lb=Ys().browser,n1=e=>de(e,sl),BE=e=>lb.isFirefox()&&La(e)==="table"?n1(zi(e)).filter(n=>La(n)==="caption").bind(n=>n1(pc(n)).map(r=>{const f=r.dom.offsetTop,w=n.dom.offsetTop,B=n.dom.offsetHeight;return f<=w?-B:0})).getOr(0):0,V2=(e,n)=>e.children&&Ve(e.children,n),bs=(e,n,r)=>{let f=0,w=0;const B=e.ownerDocument;if(r=r||e,n){if(r===e&&n.getBoundingClientRect&&ui(jt.fromDom(e),"position")==="static"){const oe=n.getBoundingClientRect();return f=oe.left+(B.documentElement.scrollLeft||e.scrollLeft)-B.documentElement.clientLeft,w=oe.top+(B.documentElement.scrollTop||e.scrollTop)-B.documentElement.clientTop,{x:f,y:w}}let Z=n;for(;Z&&Z!==r&&Z.nodeType&&!V2(Z,r);){const oe=Z;f+=oe.offsetLeft||0,w+=oe.offsetTop||0,Z=oe.offsetParent}for(Z=n.parentNode;Z&&Z!==r&&Z.nodeType&&!V2(Z,r);)f-=Z.scrollLeft||0,w-=Z.scrollTop||0,Z=Z.parentNode;w+=BE(jt.fromDom(n))}return{x:f,y:w}},U2=(e,n={})=>{let r=0;const f={},w=jt.fromDom(e),B=mf(w),Z=ln=>{n.referrerPolicy=ln},oe=ln=>{n.contentCssCors=ln},be=ln=>{di(qy(w),ln)},Pe=ln=>{const xn=qy(w);Jl(xn,"#"+ln).each(Ua)},Ke=ln=>wn(f,ln).getOrThunk(()=>({id:"mce-u"+r++,passed:[],failed:[],count:0})),Je=ln=>new Promise((xn,yn)=>{let $n;const nr=ur._addCacheSuffix(ln),mr=Ke(nr);f[nr]=mr,mr.count++;const Nr=(Qr,ho)=>{ie(Qr,ce),mr.status=ho,mr.passed=[],mr.failed=[],$n&&($n.onload=null,$n.onerror=null,$n=null)},zn=()=>Nr(mr.passed,2),Nn=()=>Nr(mr.failed,3);if(xn&&mr.passed.push(xn),yn&&mr.failed.push(yn),mr.status===1)return;if(mr.status===2){zn();return}if(mr.status===3){Nn();return}mr.status=1;const er=jt.fromTag("link",B.dom);Kc(er,{rel:"stylesheet",type:"text/css",id:mr.id}),n.contentCssCors&&ws(er,"crossOrigin","anonymous"),n.referrerPolicy&&ws(er,"referrerpolicy",n.referrerPolicy),$n=er.dom,$n.onload=zn,$n.onerror=Nn,be(er),ws(er,"href",nr)}),at=(ln,xn)=>{const yn=Ke(ln);f[ln]=yn,yn.count++;const $n=jt.fromTag("style",B.dom);Kc($n,{rel:"stylesheet",type:"text/css",id:yn.id}),$n.dom.innerHTML=xn,be($n)},Rt=ln=>Promise.allSettled(Fe(ln,yn=>Je(yn).then(J(yn)))).then(yn=>{const $n=se(yn,nr=>nr.status==="fulfilled");return $n.fail.length>0?Promise.reject(Fe($n.fail,nr=>nr.reason)):Fe($n.pass,nr=>nr.value)}),Ht=ln=>{const xn=ur._addCacheSuffix(ln);wn(f,xn).each(yn=>{--yn.count===0&&(delete f[xn],Pe(yn.id))})};return{load:Je,loadRawCss:at,loadAll:Rt,unload:Ht,unloadRawCss:ln=>{wn(f,ln).each(xn=>{--xn.count===0&&(delete f[ln],Pe(xn.id))})},unloadAll:ln=>{ie(ln,xn=>{Ht(xn)})},_setReferrerPolicy:Z,_setContentCssCors:oe}},G2=(()=>{const e=new WeakMap;return{forElement:(r,f)=>{const B=Yu(r).dom;return X.from(e.get(B)).getOrThunk(()=>{const Z=U2(B,f);return e.set(B,Z),Z})}}})(),Xn=e=>e.nodeName.toLowerCase()==="span",cb=(e,n,r)=>k(e)&&(xu(e,n)||r.isInline(e.nodeName.toLowerCase())),HE=(e,n,r)=>{const f=new es(e,n).prev(!1),w=new es(e,n).next(!1),B=N(f)||cb(f,n,r),Z=N(w)||cb(w,n,r);return B&&Z},r1=e=>Xn(e)&&e.getAttribute("data-mce-type")==="bookmark",zE=(e,n,r)=>ir(e)&&e.data.length>0&&HE(e,n,r),Gp=e=>Gr(e)?e.childNodes.length>0:!1,Z2=e=>ns(e)||wm(e),Ah=(e,n,r,f)=>{var w;const B=f||n;if(Gr(n)&&r1(n))return n;const Z=n.childNodes;for(let oe=Z.length-1;oe>=0;oe--)Ah(e,Z[oe],r,B);if(Gr(n)){const oe=n.childNodes;oe.length===1&&r1(oe[0])&&((w=n.parentNode)===null||w===void 0||w.insertBefore(oe[0],n))}return!Z2(n)&&!xu(n,B)&&!Gp(n)&&!zE(n,B,r)&&e.remove(n),n},VE=ur.makeMap,Ed=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ms=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_d=/[<>&\"\']/g,j2=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,xf={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},Mh={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},Y2={"<":"<",">":">","&":"&",""":'"',"'":"'"},zg=e=>{const n=jt.fromTag("div").dom;return n.innerHTML=e,n.textContent||n.innerText||e},O3=(e,n)=>{const r={};if(e){const f=e.split(",");n=n||10;for(let w=0;we.replace(n?Ed:ms,r=>Mh[r]||r),UE=e=>(""+e).replace(_d,n=>Mh[n]||n),X2=(e,n)=>e.replace(n?Ed:ms,r=>r.length>1?"&#"+((r.charCodeAt(0)-55296)*1024+(r.charCodeAt(1)-56320)+65536)+";":Mh[r]||"&#"+r.charCodeAt(0)+";"),Rd=(e,n,r)=>{const f=r||ub;return e.replace(n?Ed:ms,w=>Mh[w]||f[w]||w)},km={encodeRaw:K2,encodeAllRaw:UE,encodeNumeric:X2,encodeNamed:Rd,getEncodeFunc:(e,n)=>{const r=O3(n)||ub,f=(Z,oe)=>Z.replace(oe?Ed:ms,be=>Mh[be]!==void 0?Mh[be]:r[be]!==void 0?r[be]:be.length>1?"&#"+((be.charCodeAt(0)-55296)*1024+(be.charCodeAt(1)-56320)+65536)+";":"&#"+be.charCodeAt(0)+";"),w=(Z,oe)=>Rd(Z,oe,r),B=VE(e.replace(/\+/g,","));return B.named&&B.numeric?f:B.named?n?w:Rd:B.numeric?X2:K2},decode:e=>e.replace(j2,(n,r)=>r?(r.charAt(0).toLowerCase()==="x"?r=parseInt(r.substr(1),16):r=parseInt(r,10),r>65535?(r-=65536,String.fromCharCode(55296+(r>>10),56320+(r&1023))):xf[r]||String.fromCharCode(r)):Y2[n]||ub[n]||zg(n))},kl=(e,n)=>(e=ur.trim(e),e?e.split(n||" "):[]),Xr=e=>new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$"),WE=e=>{const n=/^(~)?(.+)$/;return ze(kl(e,","),r=>{const f=n.exec(r);if(f){const w=f[1]==="~",B=w?"span":"div",Z=f[2];return[{inline:w,cloneName:B,name:Z}]}else return[]})},Q2=e=>{let n,r,f;if(n="id accesskey class dir lang style tabindex title role",r="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",f="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",e!=="html4"){const B="a ins del canvas map";n+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",r+=" article aside details dialog figure main header footer hgroup section nav "+B,f+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen svg"}e!=="html5-strict"&&(n+=" xml:lang",f=[f,"acronym applet basefont big font strike tt"].join(" "),r=[r,"center dir isindex noframes"].join(" "));const w=[r,f].join(" ");return{globalAttributes:n,blockContent:r,phrasingContent:f,flowContent:w}},GE=e=>{const{globalAttributes:n,phrasingContent:r,flowContent:f}=Q2(e),w={},B=(be,Pe,Ke)=>{w[be]={attributes:Ge(Pe,J({})),attributesOrder:Pe,children:Ge(Ke,J({}))}},Z=(be,Pe="",Ke="")=>{const Je=kl(Ke),at=kl(be);let Rt=at.length;const Ht=kl([n,Pe].join(" "));for(;Rt--;)B(at[Rt],Ht.slice(),Je)},oe=(be,Pe)=>{const Ke=kl(be),Je=kl(Pe);let at=Ke.length;for(;at--;){const Rt=w[Ke[at]];for(let Ht=0,At=Je.length;Ht{Z(Ke,"",r)}),ie(kl("center dir isindex noframes"),Ke=>{Z(Ke,"",f)})),Z("html","manifest","head body"),Z("head","","base command link meta noscript script style title"),Z("title hr noscript br"),Z("base","href target"),Z("link","href rel media hreflang type sizes hreflang"),Z("meta","name http-equiv content charset"),Z("style","media type scoped"),Z("script","src async defer type charset"),Z("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",f),Z("dd div","",f),Z("address dt caption","",e==="html4"?r:f),Z("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),Z("blockquote","cite",f),Z("ol","reversed start type","li"),Z("ul","","li"),Z("li","value",f),Z("dl","","dt dd"),Z("a","href target rel media hreflang type",e==="html4"?r:f),Z("q","cite",r),Z("ins del","cite datetime",f),Z("img","src sizes srcset alt usemap ismap width height"),Z("iframe","src name width height",f),Z("embed","src type width height"),Z("object","data type typemustmatch name usemap form width height",[f,"param"].join(" ")),Z("param","name value"),Z("map","name",[f,"area"].join(" ")),Z("area","alt coords shape href target rel media hreflang type"),Z("table","border","caption colgroup thead tfoot tbody tr"+(e==="html4"?" col":"")),Z("colgroup","span","col"),Z("col","span"),Z("tbody thead tfoot","","tr"),Z("tr","","td th"),Z("td","colspan rowspan headers",f),Z("th","colspan rowspan headers scope abbr",f),Z("form","accept-charset action autocomplete enctype method name novalidate target",f),Z("fieldset","disabled form name",[f,"legend"].join(" ")),Z("label","form for",r),Z("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),Z("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",e==="html4"?f:r),Z("select","disabled form multiple name required size","option optgroup"),Z("optgroup","disabled label","option"),Z("option","disabled label selected value"),Z("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),Z("menu","type label",[f,"li"].join(" ")),Z("noscript","",f),e!=="html4"&&(Z("wbr"),Z("ruby","",[r,"rt rp"].join(" ")),Z("figcaption","",f),Z("mark rt rp bdi","",r),Z("summary","",[r,"h1 h2 h3 h4 h5 h6"].join(" ")),Z("canvas","width height",f),Z("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[f,"track source"].join(" ")),Z("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[f,"track source"].join(" ")),Z("picture","","img source"),Z("source","src srcset type media sizes"),Z("track","kind src srclang label default"),Z("datalist","",[r,"option"].join(" ")),Z("article section nav aside main header footer","",f),Z("hgroup","","h1 h2 h3 h4 h5 h6"),Z("figure","",[f,"figcaption"].join(" ")),Z("time","datetime",r),Z("dialog","open",f),Z("command","type label icon disabled checked radiogroup command"),Z("output","for form name",r),Z("progress","value max",r),Z("meter","value min max low high optimum",r),Z("details","open",[f,"summary"].join(" ")),Z("keygen","autofocus challenge disabled form keytype name"),B("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),e!=="html5-strict"&&(oe("script","language xml:space"),oe("style","xml:space"),oe("object","declare classid code codebase codetype archive standby align border hspace vspace"),oe("embed","align name hspace vspace"),oe("param","valuetype type"),oe("a","charset name rev shape coords"),oe("br","clear"),oe("applet","codebase archive code object alt name width height align hspace vspace"),oe("img","name longdesc align border hspace vspace"),oe("iframe","longdesc frameborder marginwidth marginheight scrolling align"),oe("font basefont","size color face"),oe("input","usemap align"),oe("select"),oe("textarea"),oe("h1 h2 h3 h4 h5 h6 div p legend caption","align"),oe("ul","type compact"),oe("li","type"),oe("ol dl menu dir","compact"),oe("pre","width xml:space"),oe("hr","align noshade size width"),oe("isindex","prompt"),oe("table","summary width frame rules cellspacing cellpadding align bgcolor"),oe("col","width align char charoff valign"),oe("colgroup","width align char charoff valign"),oe("thead","align char charoff valign"),oe("tr","align char charoff valign bgcolor"),oe("th","axis align char charoff valign nowrap bgcolor width height"),oe("form","accept"),oe("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),oe("tfoot","align char charoff valign"),oe("tbody","align char charoff valign"),oe("area","nohref"),oe("body","background bgcolor text link vlink alink")),e!=="html4"&&(oe("input button select textarea","autofocus"),oe("input textarea","placeholder"),oe("a","download"),oe("link script img","crossorigin"),oe("img","loading"),oe("iframe","sandbox seamless allow allowfullscreen loading")),e!=="html4"&&ie([w.video,w.audio],be=>{delete be.children.audio,delete be.children.video}),ie(kl("a form meter progress dfn"),be=>{w[be]&&delete w[be].children[be]}),delete w.caption.children.table,delete w.script,w},P3=e=>e==="-"?"remove":"add",Vg=e=>{const n=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return ze(kl(e,","),r=>{const f=n.exec(r);if(f){const w=f[1],B=w?P3(w):"replace",Z=f[2],oe=kl(f[3],"|");return[{operation:B,name:Z,validChildren:oe}]}else return[]})},Zp=(e,n)=>{const r=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,f=/[*?+]/,{attributes:w,attributesOrder:B}=n;return ie(kl(e,"|"),Z=>{const oe=r.exec(Z);if(oe){const be={},Pe=oe[1],Ke=oe[2].replace(/[\\:]:/g,":"),Je=oe[3],at=oe[4];if(Pe==="!"&&(n.attributesRequired=n.attributesRequired||[],n.attributesRequired.push(Ke),be.required=!0),Pe==="-"){delete w[Ke],B.splice(ur.inArray(B,Ke),1);return}if(Je&&(Je==="="?(n.attributesDefault=n.attributesDefault||[],n.attributesDefault.push({name:Ke,value:at}),be.defaultValue=at):Je==="~"?(n.attributesForced=n.attributesForced||[],n.attributesForced.push({name:Ke,value:at}),be.forcedValue=at):Je==="<"&&(be.validValues=ur.makeMap(at,"?"))),f.test(Ke)){const Rt=be;n.attributePatterns=n.attributePatterns||[],Rt.pattern=Xr(Ke),n.attributePatterns.push(Rt)}else w[Ke]||B.push(Ke),w[Ke]=be}})},o1=(e,n)=>{Ft(e.attributes,(r,f)=>{n.attributes[f]=r}),n.attributesOrder.push(...e.attributesOrder)},jp=(e,n)=>{const r=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return ze(kl(n,","),f=>{const w=r.exec(f);if(w){const B=w[1],Z=w[2],oe=w[3],be=w[4],Pe=w[5],Ke={attributes:{},attributesOrder:[]};if(e.each(Je=>o1(Je,Ke)),B==="#"?Ke.paddEmpty=!0:B==="-"&&(Ke.removeEmpty=!0),be==="!"&&(Ke.removeEmptyAttrs=!0),Pe&&Zp(Pe,Ke),oe&&(Ke.outputName=Z),Z==="@")if(e.isNone())e=X.some(Ke);else return[];return[oe?{name:Z,element:Ke,aliasName:oe}:{name:Z,element:Ke}]}else return[]})},fb={},Eh=ur.makeMap,Jf=ur.each,a1=ur.extend,ef=ur.explode,db=(e,n={})=>{const r=Eh(e," ",Eh(e.toUpperCase()," "));return a1(r,n)},I3=e=>db("td th li dt dd figcaption caption details summary",e.getTextBlockElements()),Yp=(e,n)=>{if(e){const r={};return C(e)&&(e={"*":e}),Jf(e,(f,w)=>{r[w]=r[w.toUpperCase()]=n==="map"?Eh(f,/[, ]/):ef(f,/[, ]/)}),r}else return},_h=(e={})=>{var n;const r={},f={};let w=[];const B={},Z={},oe=(zo,Oa,vs)=>{const Gs=e[zo];if(Gs)return Eh(Gs,/[, ]/,Eh(Gs.toUpperCase(),/[, ]/));{let $s=fb[zo];return $s||($s=db(Oa,vs),fb[zo]=$s),$s}},be=(n=e.schema)!==null&&n!==void 0?n:"html5",Pe=GE(be);e.verify_html===!1&&(e.valid_elements="*[*]");const Ke=Yp(e.valid_styles),Je=Yp(e.invalid_styles,"map"),at=Yp(e.valid_classes,"map"),Rt=oe("whitespace_elements","pre script noscript style textarea video audio iframe object code"),Ht=oe("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),At=oe("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),It=oe("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),ln="td th iframe video audio object script code",xn=oe("non_empty_elements",ln+" pre svg",At),yn=oe("move_caret_before_on_enter_elements",ln+" table",At),$n="h1 h2 h3 h4 h5 h6",nr=oe("text_block_elements",$n+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),mr=oe("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",nr),Nr=oe("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),zn=oe("transparent_elements","a ins del canvas map"),Nn=oe("wrap_block_elements","pre "+$n);Jf("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),zo=>{Z[zo]=new RegExp("]*>","gi")});const er=zo=>{const Oa=X.from(r["@"]),vs=/[*?+]/;ie(jp(Oa,zo??""),({name:Gs,element:$s,aliasName:Iu})=>{if(Iu&&(r[Iu]=$s),vs.test(Gs)){const nh=$s;nh.pattern=Xr(Gs),w.push(nh)}else r[Gs]=$s})},Qr=zo=>{w=[],ie(Yt(r),Oa=>{delete r[Oa]}),er(zo)},ho=zo=>{delete fb.text_block_elements,delete fb.block_elements,ie(WE(zo??""),({inline:Oa,name:vs,cloneName:Gs})=>{if(f[vs]=f[Gs],B[vs]=Gs,xn[vs.toUpperCase()]={},xn[vs]={},Oa||(mr[vs.toUpperCase()]={},mr[vs]={}),!r[vs]){let $s=r[Gs];$s=a1({},$s),delete $s.removeEmptyAttrs,delete $s.removeEmpty,r[vs]=$s}Ft(f,($s,Iu)=>{$s[Gs]&&(f[Iu]=$s=a1({},f[Iu]),$s[vs]=$s[Gs])})})},na=zo=>{ie(Vg(zo??""),({operation:Oa,name:vs,validChildren:Gs})=>{const $s=Oa==="replace"?{"#comment":{}}:f[vs];ie(Gs,Iu=>{Oa==="remove"?delete $s[Iu]:$s[Iu]={}}),f[vs]=$s})},ca=zo=>{const Oa=r[zo];if(Oa)return Oa;let vs=w.length;for(;vs--;){const Gs=w[vs];if(Gs.pattern.test(zo))return Gs}};e.valid_elements?(Qr(e.valid_elements),Jf(Pe,(zo,Oa)=>{f[Oa]=zo.children})):(Jf(Pe,(zo,Oa)=>{r[Oa]={attributes:zo.attributes,attributesOrder:zo.attributesOrder},f[Oa]=zo.children}),Jf(kl("strong/b em/i"),zo=>{const Oa=kl(zo,"/");r[Oa[1]].outputName=Oa[0]}),Jf(Nr,(zo,Oa)=>{r[Oa]&&(e.padd_empty_block_inline_children&&(r[Oa].paddInEmptyBlock=!0),r[Oa].removeEmpty=!0)}),Jf(kl("ol ul blockquote a table tbody"),zo=>{r[zo]&&(r[zo].removeEmpty=!0)}),Jf(kl("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),zo=>{r[zo]&&(r[zo].paddEmpty=!0)}),Jf(kl("span"),zo=>{r[zo].removeEmptyAttrs=!0})),delete r.svg,ho(e.custom_elements),na(e.valid_children),er(e.extended_valid_elements),na("+ol[ul|ol],+ul[ul|ol]"),Jf({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(zo,Oa)=>{r[Oa]&&(r[Oa].parentsRequired=kl(zo))}),e.invalid_elements&&Jf(ef(e.invalid_elements),zo=>{r[zo]&&delete r[zo]}),ca("span")||er("span[!data-mce-type|*]");const os=J(Ke),ka=J(Je),ei=J(at),zl=J(It),as=J(mr),Sr=J(nr),so=J(Nr),$a=J(Object.seal(At)),ha=J(Ht),to=J(xn),Lo=J(yn),vr=J(Rt),Oo=J(zn),Aa=J(Nn),ps=J(Object.seal(Z)),us=(zo,Oa)=>{const vs=f[zo.toLowerCase()];return!!(vs&&vs[Oa.toLowerCase()])},ml=(zo,Oa)=>{const vs=ca(zo);if(vs)if(Oa){if(vs.attributes[Oa])return!0;const Gs=vs.attributePatterns;if(Gs){let $s=Gs.length;for(;$s--;)if(Gs[$s].pattern.test(Oa))return!0}}else return!0;return!1},th=zo=>lt(as(),zo),cf=zo=>ml(zo)&&!th(zo),iu=zo=>lt(Aa(),zo)||cf(zo),pd=J(B);return{type:be,children:f,elements:r,getValidStyles:os,getValidClasses:ei,getBlockElements:as,getInvalidStyles:ka,getVoidElements:$a,getTextBlockElements:Sr,getTextInlineElements:so,getBoolAttrs:zl,getElementRule:ca,getSelfClosingElements:ha,getNonEmptyElements:to,getMoveCaretBeforeOnEnterElements:Lo,getWhitespaceElements:vr,getTransparentElements:Oo,getSpecialElements:ps,isValidChild:us,isValid:ml,isBlock:th,isInline:cf,isWrapper:iu,getCustomElements:pd,addValidElements:er,setValidElements:Qr,addCustomElements:ho,addValidChildren:na}},ZE=e=>({value:Kp(e)}),Kp=e=>xr(e,"#").toUpperCase(),Ug=e=>{const n=e.toString(16);return(n.length===1?"0"+n:n).toUpperCase()},wf=e=>{const n=Ug(e.red)+Ug(e.green)+Ug(e.blue);return ZE(n)},Qc=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,jE=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,N3=(e,n,r,f)=>({red:e,green:n,blue:r,alpha:f}),F3=(e,n,r,f)=>{const w=parseInt(e,10),B=parseInt(n,10),Z=parseInt(r,10),oe=parseFloat(f);return N3(w,B,Z,oe)},q2=e=>{if(e==="transparent")return X.some(N3(0,0,0,0));const n=Qc.exec(e);if(n!==null)return X.some(F3(n[1],n[2],n[3],"1"));const r=jE.exec(e);return r!==null?X.some(F3(r[1],r[2],r[3],r[4])):X.none()},qc=e=>`rgba(${e.red},${e.green},${e.blue},${e.alpha})`,Xp=e=>q2(e).map(wf).map(n=>"#"+n.value).getOr(e),hb=(e={},n)=>{const r=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,f=/\s*([^:]+):\s*([^;]+);?/g,w=/\s+$/,B={};let Z,oe;const be=Cm;n&&(Z=n.getValidStyles(),oe=n.getInvalidStyles());const Pe=(`\\" \\' \\; \\: ; : `+be).split(" ");for(let Je=0;Je{const at={};let Rt=!1;const Ht=e.url_converter,At=e.url_converter_scope||Ke,It=(zn,Nn,er)=>{const Qr=at[zn+"-top"+Nn];if(!Qr)return;const ho=at[zn+"-right"+Nn];if(!ho)return;const na=at[zn+"-bottom"+Nn];if(!na)return;const ca=at[zn+"-left"+Nn];if(!ca)return;const os=[Qr,ho,na,ca];let ka=os.length-1;for(;ka--&&os[ka]===os[ka+1];);ka>-1&&er||(at[zn+Nn]=ka===-1?os[0]:os.join(" "),delete at[zn+"-top"+Nn],delete at[zn+"-right"+Nn],delete at[zn+"-bottom"+Nn],delete at[zn+"-left"+Nn])},ln=zn=>{const Nn=at[zn];if(!Nn)return;const er=Nn.indexOf(",")>-1?[Nn]:Nn.split(" ");let Qr=er.length;for(;Qr--;)if(er[Qr]!==er[0])return!1;return at[zn]=er[0],!0},xn=(zn,Nn,er,Qr)=>{ln(Nn)&&ln(er)&&ln(Qr)&&(at[zn]=at[Nn]+" "+at[er]+" "+at[Qr],delete at[Nn],delete at[er],delete at[Qr])},yn=zn=>(Rt=!0,B[zn]),$n=(zn,Nn)=>(Rt&&(zn=zn.replace(/\uFEFF[0-9]/g,er=>B[er])),Nn||(zn=zn.replace(/\\([\'\";:])/g,"$1")),zn),nr=zn=>String.fromCharCode(parseInt(zn.slice(1),16)),mr=zn=>zn.replace(/\\[0-9a-f]+/gi,nr),Nr=(zn,Nn,er,Qr,ho,na)=>{if(ho=ho||na,ho)return ho=$n(ho),"'"+ho.replace(/\'/g,"\\'")+"'";if(Nn=$n(Nn||er||Qr||""),!e.allow_script_urls){const ca=Nn.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(ca)||!e.allow_svg_data_urls&&/^data:image\/svg/i.test(ca))return""}return Ht&&(Nn=Ht.call(At,Nn,"style")),"url('"+Nn.replace(/\'/g,"\\'")+"')"};if(Je){Je=Je.replace(/[\u0000-\u001F]/g,""),Je=Je.replace(/\\[\"\';:\uFEFF]/g,yn).replace(/\"[^\"]+\"|\'[^\']+\'/g,Nn=>Nn.replace(/[;:]/g,yn));let zn;for(;zn=f.exec(Je);){f.lastIndex=zn.index+zn[0].length;let Nn=zn[1].replace(w,"").toLowerCase(),er=zn[2].replace(w,"");if(Nn&&er){if(Nn=mr(Nn),er=mr(er),Nn.indexOf(be)!==-1||Nn.indexOf('"')!==-1||!e.allow_script_urls&&(Nn==="behavior"||/expression\s*\(|\/\*|\*\//.test(er)))continue;Nn==="font-weight"&&er==="700"?er="bold":(Nn==="color"||Nn==="background-color")&&(er=er.toLowerCase()),C(e.force_hex_color)&&e.force_hex_color!=="off"&&q2(er).each(Qr=>{(e.force_hex_color==="always"||Qr.alpha===1)&&(er=Xp(qc(Qr)))}),er=er.replace(r,Nr),at[Nn]=Rt?$n(er,!0):er}}It("border","",!0),It("border","-width"),It("border","-color"),It("border","-style"),It("padding",""),It("margin",""),xn("border","border-width","border-style","border-color"),at.border==="medium none"&&delete at.border,at["border-image"]==="none"&&delete at["border-image"]}return at},serialize:(Je,at)=>{let Rt="";const Ht=(It,ln)=>{const xn=ln[It];if(xn)for(let yn=0,$n=xn.length;yn<$n;yn++){const nr=xn[yn],mr=Je[nr];mr&&(Rt+=(Rt.length>0?" ":"")+nr+": "+mr+";")}},At=(It,ln)=>{if(!oe||!ln)return!0;let xn=oe["*"];return xn&&xn[It]?!1:(xn=oe[ln],!(xn&&xn[It]))};return at&&Z?(Ht("*",Z),Ht(at,Z)):Ft(Je,(It,ln)=>{It&&At(ln,at)&&(Rt+=(Rt.length>0?" ":"")+ln+": "+It+";")}),Rt}};return Ke},mb={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},YE=e=>e instanceof Event||R(e.initEvent),B3=e=>e.isDefaultPrevented===fe||e.isDefaultPrevented===ne,ew=e=>M(e.preventDefault)||YE(e),Jp=(e,n)=>{const r=n??{};for(const f in e)lt(mb,f)||(r[f]=e[f]);return k(e.composedPath)&&(r.composedPath=()=>e.composedPath()),k(e.getModifierState)&&(r.getModifierState=f=>e.getModifierState(f)),k(e.getTargetRanges)&&(r.getTargetRanges=()=>e.getTargetRanges()),r},Qp=(e,n,r,f)=>{var w;const B=Jp(n,f);return B.type=e,M(B.target)&&(B.target=(w=B.srcElement)!==null&&w!==void 0?w:r),ew(n)&&(B.preventDefault=()=>{B.defaultPrevented=!0,B.isDefaultPrevented=fe,R(n.preventDefault)&&n.preventDefault()},B.stopPropagation=()=>{B.cancelBubble=!0,B.isPropagationStopped=fe,R(n.stopPropagation)&&n.stopPropagation()},B.stopImmediatePropagation=()=>{B.isImmediatePropagationStopped=fe,B.stopPropagation()},B3(B)||(B.isDefaultPrevented=B.defaultPrevented===!0?fe:ne,B.isPropagationStopped=B.cancelBubble===!0?fe:ne,B.isImmediatePropagationStopped=ne)),B},gb="mce-data-",KE=/^(?:mouse|contextmenu)|click/,pb=(e,n,r,f)=>{e.addEventListener(n,r,f||!1)},qp=(e,n,r,f)=>{e.removeEventListener(n,r,f||!1)},XE=e=>k(e)&&KE.test(e.type),s1=(e,n)=>{const r=Qp(e.type,e,document,n);if(XE(e)&&N(e.pageX)&&!N(e.clientX)){const f=r.target.ownerDocument||document,w=f.documentElement,B=f.body,Z=r;Z.pageX=e.clientX+(w&&w.scrollLeft||B&&B.scrollLeft||0)-(w&&w.clientLeft||B&&B.clientLeft||0),Z.pageY=e.clientY+(w&&w.scrollTop||B&&B.scrollTop||0)-(w&&w.clientTop||B&&B.clientTop||0)}return r},tw=(e,n,r)=>{const f=e.document,w={type:"ready"};if(r.domLoaded){n(w);return}const B=()=>f.readyState==="complete"||f.readyState==="interactive"&&f.body,Z=()=>{qp(e,"DOMContentLoaded",Z),qp(e,"load",Z),r.domLoaded||(r.domLoaded=!0,n(w)),e=null};B()?Z():pb(e,"DOMContentLoaded",Z),r.domLoaded||pb(e,"load",Z)};class eu{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=gb+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(n,r,f,w){const B=this;let Z;const oe=window,be=at=>{B.executeHandlers(s1(at||oe.event),Pe)};if(!n||ir(n)||gf(n))return f;let Pe;n[B.expando]?Pe=n[B.expando]:(Pe=B.count++,n[B.expando]=Pe,B.events[Pe]={}),w=w||n;const Ke=r.split(" ");let Je=Ke.length;for(;Je--;){let at=Ke[Je],Rt=be,Ht=!1,At=!1;if(at==="DOMContentLoaded"&&(at="ready"),B.domLoaded&&at==="ready"&&n.readyState==="complete"){f.call(w,s1({type:at}));continue}!B.hasFocusIn&&(at==="focusin"||at==="focusout")&&(Ht=!0,At=at==="focusin"?"focus":"blur",Rt=It=>{const ln=s1(It||oe.event);ln.type=ln.type==="focus"?"focusin":"focusout",B.executeHandlers(ln,Pe)}),Z=B.events[Pe][at],Z?at==="ready"&&B.domLoaded?f(s1({type:at})):Z.push({func:f,scope:w}):(B.events[Pe][at]=Z=[{func:f,scope:w}],Z.fakeName=At,Z.capture=Ht,Z.nativeHandler=Rt,at==="ready"?tw(n,Rt,B):pb(n,At||at,Rt,Ht))}return n=Z=null,f}unbind(n,r,f){if(!n||ir(n)||gf(n))return this;const w=n[this.expando];if(w){let B=this.events[w];if(r){const Z=r.split(" ");let oe=Z.length;for(;oe--;){const be=Z[oe],Pe=B[be];if(Pe){if(f){let Ke=Pe.length;for(;Ke--;)if(Pe[Ke].func===f){const Je=Pe.nativeHandler,at=Pe.fakeName,Rt=Pe.capture,Ht=Pe.slice(0,Ke).concat(Pe.slice(Ke+1));Ht.nativeHandler=Je,Ht.fakeName=at,Ht.capture=Rt,B[be]=Ht}}(!f||Pe.length===0)&&(delete B[be],qp(n,Pe.fakeName||be,Pe.nativeHandler,Pe.capture))}}}else Ft(B,(Z,oe)=>{qp(n,Z.fakeName||oe,Z.nativeHandler,Z.capture)}),B={};for(const Z in B)if(lt(B,Z))return this;delete this.events[w];try{delete n[this.expando]}catch{n[this.expando]=null}}return this}fire(n,r,f){return this.dispatch(n,r,f)}dispatch(n,r,f){if(!n||ir(n)||gf(n))return this;const w=s1({type:r,target:n},f);do{const B=n[this.expando];B&&this.executeHandlers(w,B),n=n.parentNode||n.ownerDocument||n.defaultView||n.parentWindow}while(n&&!w.isPropagationStopped());return this}clean(n){if(!n||ir(n)||gf(n))return this;if(n[this.expando]&&this.unbind(n),n.getElementsByTagName||(n=n.document),n&&n.getElementsByTagName){this.unbind(n);const r=n.getElementsByTagName("*");let f=r.length;for(;f--;)n=r[f],n[this.expando]&&this.unbind(n)}return this}destroy(){this.events={}}cancel(n){return n&&(n.preventDefault(),n.stopImmediatePropagation()),!1}executeHandlers(n,r){const f=this.events[r],w=f&&f[n.type];if(w)for(let B=0,Z=w.length;B{M(r)||r===""?Xs(e,n):ws(e,n,r)},Am=e=>e.replace(/[A-Z]/g,n=>"-"+n.toLowerCase()),Ld=(e,n)=>{let r=0;if(e)for(let f=e.nodeType,w=e.previousSibling;w;w=w.previousSibling){const B=w.nodeType;n&&ir(w)&&(B===f||!w.data.length)||(r++,f=B)}return r},nw=(e,n)=>{const r=il(n,"style"),f=e.serialize(e.parse(r),La(n));bb(n,yb,f)},ev=(e,n)=>F(e)?lt(n$,n)?e+"":e+"px":e,xb=(e,n,r)=>{const f=Am(n);M(r)||r===""?Np(e,f):U0(e,f,ev(r,f))},z3=(e,n,r)=>{const f=n.keep_values,w={set:(Z,oe,be)=>{const Pe=jt.fromDom(Z);R(n.url_converter)&&k(oe)&&(oe=n.url_converter.call(n.url_converter_scope||r(),String(oe),be,Z));const Ke="data-mce-"+be;bb(Pe,Ke,oe),bb(Pe,be,oe)},get:(Z,oe)=>{const be=jt.fromDom(Z);return il(be,"data-mce-"+oe)||il(be,oe)}},B={style:{set:(Z,oe)=>{const be=jt.fromDom(Z);f&&bb(be,yb,oe),Xs(be,"style"),C(oe)&&$l(be,e.parse(oe))},get:Z=>{const oe=jt.fromDom(Z),be=il(oe,yb)||il(oe,"style");return e.serialize(e.parse(be),La(oe))}}};return f&&(B.href=B.src=w),B},Cs=(e,n={})=>{const r={},f=window,w={};let B=0;const Z=!0,oe=!0,be=G2.forElement(jt.fromDom(e),{contentCssCors:n.contentCssCors,referrerPolicy:n.referrerPolicy}),Pe=[],Ke=n.schema?n.schema:_h({}),Je=hb({url_converter:n.url_converter,url_converter_scope:n.url_converter_scope,force_hex_color:n.force_hex_color},n.schema),at=n.ownEvents?new eu:eu.Event,Rt=Ke.getBlockElements(),Ht=On=>C(On)?lt(Rt,On):Gr(On)&&(lt(Rt,On.nodeName)||pa(Ke,On)),At=On=>On&&e&&C(On)?e.getElementById(On):On,It=On=>{const Pn=At(On);return k(Pn)?jt.fromDom(Pn):null},ln=(On,Pn,yr="")=>{let dr;const uo=It(On);if(k(uo)&&sl(uo)){const ua=v2[Pn];ua&&ua.get?dr=ua.get(uo.dom,Pn):dr=il(uo,Pn)}return k(dr)?dr:yr},xn=On=>{const Pn=At(On);return M(Pn)?[]:Pn.attributes},yn=(On,Pn,yr)=>{so(On,dr=>{if(Gr(dr)){const uo=jt.fromDom(dr),ua=yr===""?null:yr,Fs=il(uo,Pn),Nu=v2[Pn];Nu&&Nu.set?Nu.set(uo.dom,ua,Pn):bb(uo,Pn,ua),Fs!==ua&&n.onSetAttrib&&n.onSetAttrib({attrElm:uo.dom,attrName:Pn,attrValue:ua})}})},$n=(On,Pn)=>On.cloneNode(Pn),nr=()=>n.root_element||e.body,mr=On=>{const Pn=K0(On);return{x:Pn.x,y:Pn.y,w:Pn.width,h:Pn.height}},Nr=(On,Pn)=>bs(e.body,At(On),Pn),zn=(On,Pn,yr)=>{so(On,dr=>{const uo=jt.fromDom(dr);xb(uo,Pn,yr),n.update_styles&&nw(Je,uo)})},Nn=(On,Pn)=>{so(On,yr=>{const dr=jt.fromDom(yr);Ft(Pn,(uo,ua)=>{xb(dr,ua,uo)}),n.update_styles&&nw(Je,dr)})},er=(On,Pn,yr)=>{const dr=At(On);if(!(M(dr)||!xl(dr)&&!H2(dr)))return yr?ui(jt.fromDom(dr),Am(Pn)):(Pn=Pn.replace(/-(\D)/g,(uo,ua)=>ua.toUpperCase()),Pn==="float"&&(Pn="cssFloat"),dr.style?dr.style[Pn]:void 0)},Qr=On=>{const Pn=At(On);if(!Pn)return{w:0,h:0};let yr=er(Pn,"width"),dr=er(Pn,"height");return(!yr||yr.indexOf("px")===-1)&&(yr="0"),(!dr||dr.indexOf("px")===-1)&&(dr="0"),{w:parseInt(yr,10)||Pn.offsetWidth||Pn.clientWidth,h:parseInt(dr,10)||Pn.offsetHeight||Pn.clientHeight}},ho=On=>{const Pn=At(On),yr=Nr(Pn),dr=Qr(Pn);return{x:yr.x,y:yr.y,w:dr.w,h:dr.h}},na=(On,Pn)=>{if(!On)return!1;const yr=S(On)?On:[On];return Oe(yr,dr=>du(jt.fromDom(dr),Pn))},ca=(On,Pn,yr,dr)=>{const uo=[];let ua=At(On);dr=dr===void 0;const Fs=yr||(nr().nodeName!=="BODY"?nr().parentNode:null);if(C(Pn))if(Pn==="*")Pn=Gr;else{const Nu=Pn;Pn=Vl=>na(Vl,Nu)}for(;ua&&!(ua===Fs||M(ua.nodeType)||wm(ua)||ns(ua));){if(!Pn||Pn(ua))if(dr)uo.push(ua);else return[ua];ua=ua.parentNode}return dr?uo:null},os=(On,Pn,yr)=>{const dr=ca(On,Pn,yr,!1);return dr&&dr.length>0?dr[0]:null},ka=(On,Pn,yr)=>{let dr=Pn;if(On){C(Pn)&&(dr=uo=>na(uo,Pn));for(let uo=On[yr];uo;uo=uo[yr])if(R(dr)&&dr(uo))return uo}return null},ei=(On,Pn)=>ka(On,Pn,"nextSibling"),zl=(On,Pn)=>ka(On,Pn,"previousSibling"),as=On=>R(On.querySelectorAll),Sr=(On,Pn)=>{var yr,dr;const uo=(dr=(yr=At(Pn))!==null&&yr!==void 0?yr:n.root_element)!==null&&dr!==void 0?dr:e;return as(uo)?tt(uo.querySelectorAll(On)):[]},so=function(On,Pn,yr){const dr=yr??this;if(S(On)){const uo=[];return vb(On,(ua,Fs)=>{const Nu=At(ua);Nu&&uo.push(Pn.call(dr,Nu,Fs))}),uo}else{const uo=At(On);return uo?Pn.call(dr,uo):!1}},$a=(On,Pn)=>{so(On,yr=>{Ft(Pn,(dr,uo)=>{yn(yr,uo,dr)})})},ha=(On,Pn)=>{so(On,yr=>{const dr=jt.fromDom(yr);bh(dr,Pn)})},to=(On,Pn,yr,dr,uo)=>so(On,ua=>{const Fs=C(Pn)?e.createElement(Pn):Pn;return k(yr)&&$a(Fs,yr),dr&&(!C(dr)&&dr.nodeType?Fs.appendChild(dr):C(dr)&&ha(Fs,dr)),uo?Fs:ua.appendChild(Fs)}),Lo=(On,Pn,yr)=>to(e.createElement(On),On,Pn,yr,!0),vr=km.decode,Oo=km.encodeAllRaw,Aa=(On,Pn,yr="")=>{let dr="<"+On;for(const uo in Pn)ft(Pn,uo)&&(dr+=" "+uo+'="'+Oo(Pn[uo])+'"');return kt(yr)&<(Ke.getVoidElements(),On)?dr+" />":dr+">"+yr+""},ps=On=>{const Pn=e.createElement("div"),yr=e.createDocumentFragment();yr.appendChild(Pn),On&&(Pn.innerHTML=On);let dr;for(;dr=Pn.firstChild;)yr.appendChild(dr);return yr.removeChild(Pn),yr},us=(On,Pn)=>so(On,yr=>{const dr=jt.fromDom(yr);return Pn&&ie(zi(dr),uo=>{Ei(uo)&&uo.dom.length===0?Ua(uo):Ri(dr,uo)}),Ua(dr),dr.dom}),ml=On=>so(On,Pn=>{const yr=Pn.attributes;for(let dr=yr.length-1;dr>=0;dr--)Pn.removeAttributeNode(yr.item(dr))}),th=On=>Je.parse(On),cf=(On,Pn)=>Je.serialize(On,Pn),iu=On=>{if(ug!==Cs.DOM&&e===document){if(r[On])return;r[On]=!0}let Pn=e.getElementById("mceDefaultStyles");if(!Pn){Pn=e.createElement("style"),Pn.id="mceDefaultStyles",Pn.type="text/css";const yr=e.head;yr.firstChild?yr.insertBefore(Pn,yr.firstChild):yr.appendChild(Pn)}Pn.styleSheet?Pn.styleSheet.cssText+=On:Pn.appendChild(e.createTextNode(On))},pd=On=>{On||(On=""),ie(On.split(","),Pn=>{w[Pn]=!0,be.load(Pn).catch(j)})},zo=(On,Pn,yr)=>{so(On,dr=>{if(Gr(dr)){const uo=jt.fromDom(dr),ua=Pn.split(" ");ie(ua,Fs=>{k(yr)?(yr?hh:mh)(uo,Fs):jy(uo,Fs)})}})},Oa=(On,Pn)=>{zo(On,Pn,!0)},vs=(On,Pn)=>{zo(On,Pn,!1)},Gs=(On,Pn)=>{const yr=It(On),dr=Pn.split(" ");return k(yr)&&We(dr,uo=>Cd(yr,uo))},$s=On=>{so(On,Pn=>Np(jt.fromDom(Pn),"display"))},Iu=On=>{so(On,Pn=>U0(jt.fromDom(Pn),"display","none"))},nh=On=>{const Pn=It(On);return k(Pn)&&Ms(_i(Pn,"display"),"none")},xp=On=>(On||"mce_")+B++,eE=On=>{const Pn=It(On);return k(Pn)?Gr(Pn.dom)?Pn.dom.outerHTML:Fp(Pn):""},JS=(On,Pn)=>{so(On,yr=>{Gr(yr)&&(yr.outerHTML=Pn)})},tE=(On,Pn)=>{const yr=At(Pn);return so(On,dr=>{const uo=yr==null?void 0:yr.parentNode,ua=yr==null?void 0:yr.nextSibling;return uo&&(ua?uo.insertBefore(dr,ua):uo.appendChild(dr)),dr})},m2=(On,Pn,yr)=>so(Pn,dr=>{var uo;const ua=S(Pn)?On.cloneNode(!0):On;return yr&&vb(H3(dr.childNodes),Fs=>{ua.appendChild(Fs)}),(uo=dr.parentNode)===null||uo===void 0||uo.replaceChild(ua,dr),dr}),nE=(On,Pn)=>{if(On.nodeName!==Pn.toUpperCase()){const yr=Lo(Pn);return vb(xn(On),dr=>{yn(yr,dr.nodeName,ln(On,dr.nodeName))}),m2(yr,On,!0),yr}else return On},g2=(On,Pn)=>{let yr=On;for(;yr;){let dr=Pn;for(;dr&&yr!==dr;)dr=dr.parentNode;if(yr===dr)break;yr=yr.parentNode}return!yr&&On.ownerDocument?On.ownerDocument.documentElement:yr},g0=On=>{if(Gr(On)){const Pn=On.nodeName.toLowerCase()==="a"&&!ln(On,"href")&&ln(On,"id");if(ln(On,"name")||ln(On,"data-mce-bookmark")||Pn)return!0}return!1},rh=(On,Pn,yr)=>{let dr=0;if(g0(On))return!1;const uo=On.firstChild;if(uo){const ua=new es(uo,On),Fs=Ke?Ke.getWhitespaceElements():{},Nu=Pn||(Ke?Ke.getNonEmptyElements():null);let Vl=uo;do{if(Gr(Vl)){const Ry=Vl.getAttribute("data-mce-bogus");if(Ry){Vl=ua.next(Ry==="all");continue}const vd=Vl.nodeName.toLowerCase();if(Nu&&Nu[vd]){if(vd==="br"){dr++,Vl=ua.next();continue}return!1}if(g0(Vl))return!1}if(gf(Vl)||ir(Vl)&&!As(Vl.data)&&(!(yr!=null&&yr.includeZwsp)||!qs(Vl.data))||ir(Vl)&&Vl.parentNode&&Fs[Vl.parentNode.nodeName]&&As(Vl.data))return!1;Vl=ua.next()}while(Vl)}return dr<=1},em=()=>e.createRange(),p2=(On,Pn,yr)=>{let dr=em(),uo,ua;if(On&&Pn&&On.parentNode&&Pn.parentNode){const Fs=On.parentNode;return dr.setStart(Fs,Ld(On)),dr.setEnd(Pn.parentNode,Ld(Pn)),uo=dr.extractContents(),dr=em(),dr.setStart(Pn.parentNode,Ld(Pn)+1),dr.setEnd(Fs,Ld(On)+1),ua=dr.extractContents(),Fs.insertBefore(Ah(ug,uo,Ke),On),yr?Fs.insertBefore(yr,On):Fs.insertBefore(Pn,On),Fs.insertBefore(Ah(ug,ua,Ke),On),us(On),yr||Pn}else return},Ey=(On,Pn,yr,dr)=>{if(S(On)){let uo=On.length;const ua=[];for(;uo--;)ua[uo]=Ey(On[uo],Pn,yr,dr);return ua}else return n.collect&&(On===e||On===f)&&Pe.push([On,Pn,yr,dr]),at.bind(On,Pn,yr,dr||ug)},QS=(On,Pn,yr)=>{if(S(On)){let dr=On.length;const uo=[];for(;dr--;)uo[dr]=QS(On[dr],Pn,yr);return uo}else{if(Pe.length>0&&(On===e||On===f)){let dr=Pe.length;for(;dr--;){const[uo,ua,Fs]=Pe[dr];On===uo&&(!Pn||Pn===ua)&&(!yr||yr===Fs)&&at.unbind(uo,ua,Fs)}}return at.unbind(On,Pn,yr)}},tm=(On,Pn,yr)=>at.dispatch(On,Pn,yr),rE=(On,Pn,yr)=>at.dispatch(On,Pn,yr),qS=On=>{if(On&&xl(On)){const Pn=On.getAttribute("data-mce-contenteditable");return Pn&&Pn!=="inherit"?Pn:On.contentEditable!=="inherit"?On.contentEditable:null}else return null},ug={doc:e,settings:n,win:f,files:w,stdMode:Z,boxModel:oe,styleSheetLoader:be,boundEvents:Pe,styles:Je,schema:Ke,events:at,isBlock:Ht,root:null,clone:$n,getRoot:nr,getViewPort:mr,getRect:ho,getSize:Qr,getParent:os,getParents:ca,get:At,getNext:ei,getPrev:zl,select:Sr,is:na,add:to,create:Lo,createHTML:Aa,createFragment:ps,remove:us,setStyle:zn,getStyle:er,setStyles:Nn,removeAllAttribs:ml,setAttrib:yn,setAttribs:$a,getAttrib:ln,getPos:Nr,parseStyle:th,serializeStyle:cf,addStyle:iu,loadCSS:pd,addClass:Oa,removeClass:vs,hasClass:Gs,toggleClass:zo,show:$s,hide:Iu,isHidden:nh,uniqueId:xp,setHTML:ha,getOuterHTML:eE,setOuterHTML:JS,decode:vr,encode:Oo,insertAfter:tE,replace:m2,rename:nE,findCommonAncestor:g2,run:so,getAttribs:xn,isEmpty:rh,createRng:em,nodeIndex:Ld,split:p2,bind:Ey,unbind:QS,fire:rE,dispatch:tm,getContentEditable:qS,getContentEditableParent:On=>{const Pn=nr();let yr=null;for(let dr=On;dr&&dr!==Pn&&(yr=qS(dr),yr===null);dr=dr.parentNode);return yr},isEditable:On=>{if(k(On)){const Pn=Gr(On)?On:On.parentElement;return k(Pn)&&xl(Pn)&&Wo(jt.fromDom(Pn))}else return!1},destroy:()=>{if(Pe.length>0){let On=Pe.length;for(;On--;){const[Pn,yr,dr]=Pe[On];at.unbind(Pn,yr,dr)}}Ft(w,(On,Pn)=>{be.unload(Pn),delete w[Pn]})},isChildOf:(On,Pn)=>On===Pn||Pn.contains(On),dumpRng:On=>"startContainer: "+On.startContainer.nodeName+", startOffset: "+On.startOffset+", endContainer: "+On.endContainer.nodeName+", endOffset: "+On.endOffset},v2=z3(Je,n,J(ug));return ug};Cs.DOM=Cs(document),Cs.nodeIndex=Ld;const JE=Cs.DOM,hi=0,V3=1,Is=2,tv=3;class Ni{constructor(n={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=n}_setReferrerPolicy(n){this.settings.referrerPolicy=n}loadScript(n){return new Promise((r,f)=>{const w=JE;let B;const Z=()=>{w.remove(Pe),B&&(B.onerror=B.onload=B=null)},oe=()=>{Z(),r()},be=()=>{Z(),f("Failed to load script: "+n)},Pe=w.uniqueId();B=document.createElement("script"),B.id=Pe,B.type="text/javascript",B.src=ur._addCacheSuffix(n),this.settings.referrerPolicy&&w.setAttrib(B,"referrerpolicy",this.settings.referrerPolicy),B.onload=oe,B.onerror=be,(document.getElementsByTagName("head")[0]||document.body).appendChild(B)})}isDone(n){return this.states[n]===Is}markDone(n){this.states[n]=Is}add(n){const r=this;return r.queue.push(n),r.states[n]===void 0&&(r.states[n]=hi),new Promise((w,B)=>{r.scriptLoadedCallbacks[n]||(r.scriptLoadedCallbacks[n]=[]),r.scriptLoadedCallbacks[n].push({resolve:w,reject:B})})}load(n){return this.add(n)}remove(n){delete this.states[n],delete this.scriptLoadedCallbacks[n]}loadQueue(){const n=this.queue;return this.queue=[],this.loadScripts(n)}loadScripts(n){const r=this,f=(be,Pe)=>{wn(r.scriptLoadedCallbacks,Pe).each(Ke=>{ie(Ke,Je=>Je[be](Pe))}),delete r.scriptLoadedCallbacks[Pe]},w=be=>{const Pe=ue(be,Ke=>Ke.status==="rejected");return Pe.length>0?Promise.reject(ze(Pe,({reason:Ke})=>S(Ke)?Ke:[Ke])):Promise.resolve()},B=be=>Promise.allSettled(Fe(be,Pe=>r.states[Pe]===Is?(f("resolve",Pe),Promise.resolve()):r.states[Pe]===tv?(f("reject",Pe),Promise.reject(Pe)):(r.states[Pe]=V3,r.loadScript(Pe).then(()=>{r.states[Pe]=Is,f("resolve",Pe);const Ke=r.queue;return Ke.length>0?(r.queue=[],B(Ke).then(w)):Promise.resolve()},()=>(r.states[Pe]=tv,f("reject",Pe),Promise.reject(Pe)))))),Z=be=>(r.loading=!0,B(be).then(Pe=>{r.loading=!1;const Ke=r.queueLoadedCallbacks.shift();return X.from(Ke).each(ce),w(Pe)})),oe=vt(n);return r.loading?new Promise((be,Pe)=>{r.queueLoadedCallbacks.push(()=>{Z(oe).then(be,Pe)})}):Z(oe)}}Ni.ScriptLoader=new Ni;const Us=e=>{let n=e;return{get:()=>n,set:w=>{n=w}}},Su=(e,n)=>{const r=e.indexOf(n);return r!==-1&&e.indexOf(n,r+1)>r},rw=e=>_(e)&<(e,"raw"),Al=e=>S(e)&&e.length>1,i1={},nv=Us("en"),Dd=()=>wn(i1,nv.get()),Cf={getData:()=>pn(i1,e=>({...e})),setCode:e=>{e&&nv.set(e)},getCode:()=>nv.get(),add:(e,n)=>{let r=i1[e];r||(i1[e]=r={});const f=Fe(Yt(n),w=>w.toLowerCase());Ft(n,(w,B)=>{const Z=B.toLowerCase();Z!==B&&Su(f,Z)?(lt(n,Z)||(r[Z]=w),r[B]=w):r[Z]=w})},translate:e=>{const n=Dd().getOr({}),r=Z=>R(Z)?Object.prototype.toString.call(Z):f(Z)?"":""+Z,f=Z=>Z===""||Z===null||Z===void 0,w=Z=>{const oe=r(Z);return lt(n,oe)?r(n[oe]):wn(n,oe.toLowerCase()).map(r).getOr(oe)},B=Z=>Z.replace(/{context:\w+}$/,"");if(f(e))return"";if(rw(e))return r(e.raw);if(Al(e)){const Z=e.slice(1),oe=w(e[0]).replace(/\{([0-9]+)\}/g,(be,Pe)=>lt(Z,Pe)?r(Z[Pe]):be);return B(oe)}return B(w(e))},isRtl:()=>Dd().bind(e=>wn(e,"_dir")).exists(e=>e==="rtl"),hasCode:e=>lt(i1,e)},rc=()=>{const e=[],n={},r={},f=[],w=(At,It)=>{const ln=ue(f,xn=>xn.name===At&&xn.state===It);ie(ln,xn=>xn.resolve())},B=At=>lt(n,At),Z=At=>lt(r,At),oe=At=>{if(r[At])return r[At].instance},be=(At,It)=>{const ln=Cf.getCode(),xn=","+(It||"")+",";!ln||It&&xn.indexOf(","+ln+",")===-1||Ni.ScriptLoader.add(n[At]+"/langs/"+ln+".js")},Pe=(At,It)=>{rc.languageLoad!==!1&&(B(At)?be(At,It):Ht(At,"loaded").then(()=>be(At,It)))},Ke=(At,It)=>(e.push(It),r[At]={instance:It},w(At,"added"),It),Je=At=>{delete n[At],delete r[At]},at=(At,It)=>C(It)?C(At)?{prefix:"",resource:It,suffix:""}:{prefix:At.prefix,resource:It,suffix:At.suffix}:It,Rt=(At,It)=>{if(n[At])return Promise.resolve();let ln=C(It)?It:It.prefix+It.resource+It.suffix;ln.indexOf("/")!==0&&ln.indexOf("://")===-1&&(ln=rc.baseURL+"/"+ln),n[At]=ln.substring(0,ln.lastIndexOf("/"));const xn=()=>(w(At,"loaded"),Promise.resolve());return r[At]?xn():Ni.ScriptLoader.add(ln).then(xn)},Ht=(At,It="added")=>It==="added"&&Z(At)||It==="loaded"&&B(At)?Promise.resolve():new Promise(ln=>{f.push({name:At,state:It,resolve:ln})});return{items:e,urls:n,lookup:r,get:oe,requireLangPack:Pe,add:Ke,remove:Je,createUrl:at,load:Rt,waitFor:Ht}};rc.languageLoad=!0,rc.baseURL="",rc.PluginManager=rc(),rc.ThemeManager=rc(),rc.ModelManager=rc();const qE=e=>{const n=Us(X.none()),r=()=>n.get().each(e);return{clear:()=>{r(),n.set(X.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:oe=>{r(),n.set(X.some(oe))}}},e4=e=>{const n=Us(X.none()),r=()=>n.get().each(oe=>clearInterval(oe));return{clear:()=>{r(),n.set(X.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:oe=>{r(),n.set(X.some(setInterval(oe,e)))}}},Em=()=>{const e=qE(j);return{...e,on:r=>e.get().each(r)}},l1=(e,n)=>{let r=null;return{cancel:()=>{O(r)||(clearTimeout(r),r=null)},throttle:(...B)=>{O(r)&&(r=setTimeout(()=>{r=null,e.apply(null,B)},n))}}},wb=(e,n)=>{let r=null;const f=()=>{O(r)||(clearTimeout(r),r=null)};return{cancel:f,throttle:(...B)=>{f(),r=setTimeout(()=>{r=null,e.apply(null,B)},n)}}},Cb=J("mce-annotation"),$d=J("data-mce-annotation"),ov=J("data-mce-annotation-uid"),av=J("data-mce-annotation-active"),sv=J("data-mce-annotation-classes"),Wg=J("data-mce-annotation-attrs"),W3=e=>n=>Ba(n,e),ai=(e,n)=>{const r=e.selection.getRng(),f=jt.fromDom(r.startContainer),w=jt.fromDom(e.getBody()),B=n.fold(()=>"."+Cb(),be=>`[${$d()}="${be}"]`),Z=Sd(f,r.startOffset).getOr(f);return Ku(Z,B,W3(w)).bind(be=>Yl(be,`${ov()}`).bind(Pe=>Yl(be,`${$d()}`).map(Ke=>{const Je=Z3(e,Pe);return{uid:Pe,name:Ke,elements:Je}})))},G3=e=>sl(e)&&Cd(e,Cb()),iv=(e,n)=>Gu(e,"data-mce-bogus")||Ng(e,'[data-mce-bogus="all"]',W3(n)),Z3=(e,n)=>{const r=jt.fromDom(e.getBody()),f=Vi(r,`[${ov()}="${n}"]`);return ue(f,w=>!iv(w,r))},Sb=(e,n)=>{const r=jt.fromDom(e.getBody()),f=Vi(r,`[${$d()}="${n}"]`),w={};return ie(f,B=>{if(!iv(B,r)){const Z=il(B,ov()),oe=wn(w,Z).getOr([]);w[Z]=oe.concat([B])}}),w},Pl=(e,n)=>{const r=Us({}),f=()=>({listeners:[],previous:Em()}),w=(Je,at)=>{B(Je,Rt=>(at(Rt),Rt))},B=(Je,at)=>{const Rt=r.get(),Ht=wn(Rt,Je).getOrThunk(f),At=at(Ht);Rt[Je]=At,r.set(Rt)},Z=(Je,at,Rt)=>{w(Je,Ht=>{ie(Ht.listeners,At=>At(!0,Je,{uid:at,nodes:Fe(Rt,It=>It.dom)}))})},oe=Je=>{w(Je,at=>{ie(at.listeners,Rt=>Rt(!1,Je))})},be=(Je,at)=>{ie(Z3(e,Je),Rt=>{at?ws(Rt,av(),"true"):Xs(Rt,av())})},Pe=wb(()=>{const Je=Xe(n.getNames());ie(Je,at=>{B(at,Rt=>{const Ht=Rt.previous.get();return ai(e,X.some(at)).fold(()=>{Ht.each(At=>{oe(at),Rt.previous.clear(),be(At,!1)})},({uid:At,name:It,elements:ln})=>{Ms(Ht,At)||(Ht.each(xn=>be(xn,!1)),Z(It,At,ln),Rt.previous.set(At),be(At,!0))}),{previous:Rt.previous,listeners:Rt.listeners}})})},30);return e.on("remove",()=>{Pe.cancel()}),e.on("NodeChange",()=>{Pe.throttle()}),{addListener:(Je,at)=>{B(Je,Rt=>({previous:Rt.previous,listeners:Rt.listeners.concat([at])}))}}},Tu=(e,n)=>{const r=$d(),f=B=>X.from(B.attr(r)).bind(n.lookup),w=B=>{var Z,oe;B.attr(ov(),null),B.attr($d(),null),B.attr(av(),null);const be=X.from(B.attr(Wg())).map(at=>at.split(",")).getOr([]),Pe=X.from(B.attr(sv())).map(at=>at.split(",")).getOr([]);ie(be,at=>B.attr(at,null));const Ke=(oe=(Z=B.attr("class"))===null||Z===void 0?void 0:Z.split(" "))!==null&&oe!==void 0?oe:[],Je=dt(Ke,[Cb()].concat(Pe));B.attr("class",Je.length>0?Je.join(" "):null),B.attr(sv(),null),B.attr(Wg(),null)};e.serializer.addTempAttr(av()),e.serializer.addAttributeFilter(r,B=>{for(const Z of B)f(Z).each(oe=>{oe.persistent===!1&&(Z.name==="span"?Z.unwrap():w(Z))})})},j3=()=>{const e={};return{register:(w,B)=>{e[w]={name:w,settings:B}},lookup:w=>wn(e,w).map(B=>B.settings),getNames:()=>Yt(e)}};let Tb=0;const Gg=e=>{const r=new Date().getTime(),f=Math.floor(Math.random()*1e9);return Tb++,e+"_"+f+Tb+String(r)},t4=(e,n)=>{ie(n,r=>{hh(e,r)})},Y3=(e,n)=>{ie(n,r=>{mh(e,r)})},ow=(e,n)=>jt.fromDom(e.dom.cloneNode(n)),tu=e=>ow(e,!1),kb=e=>ow(e,!0),mi=(e,n)=>{const r=jt.fromTag(n),f=Mg(e);return Kc(r,f),r},Qf=(e,n)=>{const r=mi(e,n);gu(e,r);const f=zi(e);return hs(r,f),Ua(e),r},lv=(e,n,r=ne)=>{const f=new es(e,n),w=B=>{let Z;do Z=f[B]();while(Z&&!ir(Z)&&!r(Z));return X.from(Z).filter(ir)};return{current:()=>X.from(f.current()).filter(ir),next:()=>w("next"),prev:()=>w("prev"),prev2:()=>w("prev2")}},_m=(e,n)=>{const r=n||(Z=>e.isBlock(Z)||Ja(Z)||fa(Z)),f=(Z,oe,be,Pe)=>{if(ir(Z)){const Ke=Pe(Z,oe,Z.data);if(Ke!==-1)return X.some({container:Z,offset:Ke})}return be().bind(Ke=>f(Ke.container,Ke.offset,be,Pe))};return{backwards:(Z,oe,be,Pe)=>{const Ke=lv(Z,Pe??e.getRoot(),r);return f(Z,oe,()=>Ke.prev().map(Je=>({container:Je,offset:Je.length})),be).getOrNull()},forwards:(Z,oe,be,Pe)=>{const Ke=lv(Z,Pe??e.getRoot(),r);return f(Z,oe,()=>Ke.next().map(Je=>({container:Je,offset:0})),be).getOrNull()}}},Zg=Math.round,jg=e=>e?{left:Zg(e.left),top:Zg(e.top),bottom:Zg(e.bottom),right:Zg(e.right),width:Zg(e.width),height:Zg(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Lh=(e,n)=>(e=jg(e),n||(e.left=e.left+e.width),e.right=e.left,e.width=0,e),K3=(e,n)=>e.left===n.left&&e.top===n.top&&e.bottom===n.bottom&&e.right===n.right,Yg=(e,n,r)=>e>=0&&e<=Math.min(n.height,r.height)/2,Rm=(e,n)=>{const r=Math.min(n.height/2,e.height/2);return e.bottom-rn.bottom?!1:Yg(n.top-e.bottom,e,n)},Kg=(e,n)=>e.top>n.bottom?!0:e.bottomn>=e.left&&n<=e.right&&r>=e.top&&r<=e.bottom,n4=e=>le(e,(n,r)=>n.fold(()=>X.some(r),f=>{const w=Math.min(r.left,f.left),B=Math.min(r.top,f.top),Z=Math.max(r.right,f.right),oe=Math.max(r.bottom,f.bottom);return X.some({top:B,right:Z,bottom:oe,left:w,width:Z-w,height:oe-B})}),X.none()),aw=(e,n,r)=>{const f=Math.max(Math.min(n,e.left+e.width),e.left),w=Math.max(Math.min(r,e.top+e.height),e.top);return Math.sqrt((n-f)*(n-f)+(r-w)*(r-w))},r4=(e,n)=>Math.max(0,Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top)),Ab=(e,n,r)=>Math.min(Math.max(e,n),r),sw=e=>{const n=e.startContainer,r=e.startOffset;return n===e.endContainer&&n.hasChildNodes()&&e.endOffset===r+1?n.childNodes[r]:null},nu=(e,n)=>{if(Gr(e)&&e.hasChildNodes()){const r=e.childNodes,f=Ab(n,0,r.length-1);return r[f]}else return e},J3=(e,n)=>{if(!(n<0&&Gr(e)&&e.hasChildNodes()))return nu(e,n)},cv=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),Q3=e=>C(e)&&e.charCodeAt(0)>=768&&cv.test(e),o4=(...e)=>n=>{for(let r=0;rn=>{for(let r=0;re?e.createRange():Cs.DOM.createRng(),Dm=e=>C(e)&&/[\r\n\t ]/.test(e),cw=e=>!!e.setStart&&!!e.setEnd,Eb=e=>{const n=e.startContainer,r=e.startOffset;if(Dm(e.toString())&&iw(n.parentNode)&&ir(n)){const f=n.data;if(Dm(f[r-1])||Dm(f[r+1]))return!0}return!1},f1=e=>{const n=e.ownerDocument,r=Od(n),f=n.createTextNode(Da),w=e.parentNode;w.insertBefore(f,e),r.setStart(f,0),r.setEnd(f,1);const B=jg(r.getBoundingClientRect());return w.removeChild(f),B},uw=e=>{const n=e.startContainer,r=e.endContainer,f=e.startOffset,w=e.endOffset;if(n===r&&ir(r)&&f===0&&w===1){const B=e.cloneRange();return B.setEndAfter(r),Pd(B)}else return null},_b=e=>e.left===0&&e.right===0&&e.top===0&&e.bottom===0,Pd=e=>{var n;let r;const f=e.getClientRects();return f.length>0?r=jg(f[0]):r=jg(e.getBoundingClientRect()),!cw(e)&&u1(e)&&_b(r)?f1(e):_b(r)&&cw(e)&&(n=uw(e))!==null&&n!==void 0?n:r},Dh=(e,n)=>{const r=Lh(e,n);return r.width=1,r.right=r.left+1,r},a4=e=>{const n=[],r=Z=>{Z.height!==0&&(n.length>0&&K3(Z,n[n.length-1])||n.push(Z))},f=(Z,oe)=>{const be=Od(Z.ownerDocument);if(oe0&&(be.setStart(Z,oe-1),be.setEnd(Z,oe),Eb(be)||r(Dh(Pd(be),!1))),oe{const f=()=>(rs(e),n===0),w=()=>rs(e)?n>=e.data.length:n>=e.childNodes.length,B=()=>{const Ke=Od(e.ownerDocument);return Ke.setStart(e,n),Ke.setEnd(e,n),Ke},Z=()=>(r||(r=a4(In(e,n))),r),oe=()=>Z().length>0,be=Ke=>Ke&&e===Ke.container()&&n===Ke.offset(),Pe=Ke=>Zi(e,Ke?n-1:n);return{container:J(e),offset:J(n),toRange:B,getClientRects:Z,isVisible:oe,isAtStart:f,isAtEnd:w,isEqual:be,getNode:Pe}};In.fromRangeStart=e=>In(e.startContainer,e.startOffset),In.fromRangeEnd=e=>In(e.endContainer,e.endOffset),In.after=e=>In(e.parentNode,lw(e)+1),In.before=e=>In(e.parentNode,lw(e)),In.isAbove=(e,n)=>Es(gt(n.getClientRects()),ut(e.getClientRects()),Rm).getOr(!1),In.isBelow=(e,n)=>Es(ut(n.getClientRects()),gt(e.getClientRects()),Kg).getOr(!1),In.isAtStart=e=>e?e.isAtStart():!1,In.isAtEnd=e=>e?e.isAtEnd():!1,In.isTextPosition=e=>e?ir(e.container()):!1,In.isElementPosition=e=>!In.isTextPosition(e);const d1=(e,n)=>{ir(n)&&n.data.length===0&&e.remove(n)},uv=(e,n,r)=>{n.insertNode(r),d1(e,r.previousSibling),d1(e,r.nextSibling)},ku=(e,n,r)=>{const f=X.from(r.firstChild),w=X.from(r.lastChild);n.insertNode(r),f.each(B=>d1(e,B.previousSibling)),w.each(B=>d1(e,B.nextSibling))},fw=(e,n,r)=>{ns(r)?ku(e,n,r):uv(e,n,r)},Ds=ir,Rb=Ju,$h=Cs.nodeIndex,dw=e=>{const n=e.parentNode;return Rb(n)?dw(n):n},Lb=e=>e?fn(e.childNodes,(n,r)=>(Rb(r)&&r.nodeName!=="BR"?n=n.concat(Lb(r)):n.push(r),n),[]):[],hw=(e,n)=>{let r=e;for(;(r=r.previousSibling)&&Ds(r);)n+=r.data.length;return n},h1=e=>n=>e===n,fv=e=>{let n,r;n=Lb(dw(e)),r=tn(n,h1(e),e),n=n.slice(0,r+1);const f=fn(n,(w,B,Z)=>(Ds(B)&&Ds(n[Z-1])&&w++,w),0);return n=Tt(n,oi([e.nodeName])),r=tn(n,h1(e),e),r-f},mw=e=>(Ds(e)?"text()":e.nodeName.toLowerCase())+"["+fv(e)+"]",s4=(e,n,r)=>{const f=[];for(let w=n.parentNode;w&&w!==e&&!(r&&r(w));w=w.parentNode)f.push(w);return f},wc=(e,n)=>{let r=[],f=n.container(),w=n.offset(),B;if(Ds(f))B=hw(f,w);else{const oe=f.childNodes;w>=oe.length?(B="after",w=oe.length-1):B="before",f=oe[w]}r.push(mw(f));let Z=s4(e,f);return Z=Tt(Z,he(Ju)),r=r.concat(pt(Z,oe=>mw(oe))),r.reverse().join("/")+","+B},ji=(e,n,r)=>{let f=Lb(e);return f=Tt(f,(w,B)=>!Ds(w)||!Ds(f[B-1])),f=Tt(f,oi([n])),f[r]},Ml=(e,n)=>{let r=e,f=0;for(;Ds(r);){const w=r.data.length;if(n>=f&&n<=f+w){e=r,n=n-f;break}if(!Ds(r.nextSibling)){e=r,n=w;break}f+=w,r=r.nextSibling}return Ds(e)&&n>e.data.length&&(n=e.data.length),In(e,n)},Cc=(e,n)=>{if(!n)return null;const r=n.split(","),f=r[0].split("/"),w=r.length>1?r[1]:"before",B=fn(f,(Z,oe)=>{const be=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(oe);return be?(be[1]==="text()"&&(be[1]="#text"),ji(Z,be[1],parseInt(be[2],10))):null},e);if(!B)return null;if(!Ds(B)&&B.parentNode){let Z;return w==="after"?Z=$h(B)+1:Z=$h(B),In(B.parentNode,Z)}return Ml(B,parseInt(w,10))},Il=fa,oc=(e,n,r)=>{let f=e(n.data.slice(0,r)).length;for(let w=n.previousSibling;w&&ir(w);w=w.previousSibling)f+=e(w.data).length;return f},Yi=(e,n,r,f,w)=>{const B=w?f.startContainer:f.endContainer;let Z=w?f.startOffset:f.endOffset;const oe=[],be=e.getRoot();if(ir(B))oe.push(r?oc(n,B,Z):Z);else{let Pe=0;const Ke=B.childNodes;Z>=Ke.length&&Ke.length&&(Pe=1,Z=Math.max(0,Ke.length-1)),oe.push(e.nodeIndex(Ke[Z],r)+Pe)}for(let Pe=B;Pe&&Pe!==be;Pe=Pe.parentNode)oe.push(e.nodeIndex(Pe,r));return oe},gw=(e,n,r,f)=>{const w=n.dom,B=Yi(w,e,r,f,!0),Z=n.isForward(),oe=vn(f)?{isFakeCaret:!0}:{};if(n.isCollapsed())return{start:B,forward:Z,...oe};{const be=Yi(w,e,r,f,!1);return{start:B,end:be,forward:Z,...oe}}},m1=(e,n,r)=>{let f=0;return ur.each(e.select(n),w=>{if(w.getAttribute("data-mce-bogus")!=="all"){if(w===r)return!1;f++;return}}),f},pw=(e,n)=>{let r=n?e.startContainer:e.endContainer,f=n?e.startOffset:e.endOffset;if(Gr(r)&&r.nodeName==="TR"){const w=r.childNodes;r=w[Math.min(n?f:f-1,w.length-1)],r&&(f=n?0:r.childNodes.length,n?e.setStart(r,f):e.setEnd(r,f))}},g1=e=>(pw(e,!0),pw(e,!1),e),vw=(e,n)=>{if(Gr(e)&&(e=nu(e,n),Il(e)))return e;if(bt(e)){ir(e)&&rt(e)&&(e=e.parentNode);let r=e.previousSibling;if(Il(r)||(r=e.nextSibling,Il(r)))return r}},q3=e=>vw(e.startContainer,e.startOffset)||vw(e.endContainer,e.endOffset),Db=(e,n,r)=>{const f=r.getNode(),w=r.getRng();if(f.nodeName==="IMG"||Il(f)){const Z=f.nodeName;return{name:Z,index:m1(r.dom,Z,f)}}const B=q3(w);if(B){const Z=B.tagName;return{name:Z,index:m1(r.dom,Z,B)}}return gw(e,r,n,w)},yw=e=>{const n=e.getRng();return{start:wc(e.dom.getRoot(),In.fromRangeStart(n)),end:wc(e.dom.getRoot(),In.fromRangeEnd(n)),forward:e.isForward()}},i4=e=>({rng:e.getRng(),forward:e.isForward()}),l4=(e,n,r)=>{const f={"data-mce-type":"bookmark",id:n,style:"overflow:hidden;line-height:0px"};return r?e.create("span",f,""):e.create("span",f)},eT=(e,n)=>{const r=e.dom;let f=e.getRng();const w=r.uniqueId(),B=e.isCollapsed(),Z=e.getNode(),oe=Z.nodeName,be=e.isForward();if(oe==="IMG")return{name:oe,index:m1(r,oe,Z)};const Pe=g1(f.cloneRange());if(!B){Pe.collapse(!1);const Je=l4(r,w+"_end",n);fw(r,Pe,Je)}f=g1(f),f.collapse(!0);const Ke=l4(r,w+"_start",n);return fw(r,f,Ke),e.moveToBookmark({id:w,keep:!0,forward:be}),{id:w,forward:be}},c4=(e,n,r=!1)=>n===2?Db(_e,r,e):n===3?yw(e):n?i4(e):eT(e,!1),dv=Q(Db,K,!0),$b=e=>{const n=B=>B(e),r=J(e),f=()=>w,w={tag:!0,inner:e,fold:(B,Z)=>Z(e),isValue:fe,isError:ne,map:B=>Oc.value(B(e)),mapError:f,bind:n,exists:n,forall:n,getOr:r,or:f,getOrThunk:r,orThunk:f,getOrDie:r,each:B=>{B(e)},toOptional:()=>X.some(e)};return w},tT=e=>{const n=()=>r,r={tag:!1,inner:e,fold:(f,w)=>f(e),isValue:ne,isError:fe,map:n,mapError:f=>Oc.error(f(e)),bind:n,exists:ne,forall:fe,getOr:K,or:K,getOrThunk:Se,orThunk:Se,getOrDie:ge(String(e)),each:j,toOptional:X.none};return r},Oc={value:$b,error:tT,fromOption:(e,n)=>e.fold(()=>tT(n),$b)},ed={generate:e=>{if(!S(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");const n=[],r={};return ie(e,(f,w)=>{const B=Yt(f);if(B.length!==1)throw new Error("one and only one name per case");const Z=B[0],oe=f[Z];if(r[Z]!==void 0)throw new Error("duplicate key detected:"+Z);if(Z==="cata")throw new Error("cannot have a case named cata (sorry)");if(!S(oe))throw new Error("case arguments must be an array");n.push(Z),r[Z]=(...be)=>{const Pe=be.length;if(Pe!==oe.length)throw new Error("Wrong number of arguments to case "+Z+". Expected "+oe.length+" ("+oe+"), got "+Pe);return{fold:(...Je)=>{if(Je.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+Je.length);return Je[w].apply(null,be)},match:Je=>{const at=Yt(Je);if(n.length!==at.length)throw new Error("Wrong number of arguments to match. Expected: "+n.join(",")+` -Actual: `+at.join(","));if(!We(n,Ht=>Ve(at,Ht)))throw new Error("Not all branches were specified when using match. Specified: "+at.join(", ")+` -Required: `+n.join(", "));return Je[Z].apply(null,be)},log:Je=>{console.log(Je,{constructors:n,constructor:Z,params:be})}}}}),r}};ed.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const gr=e=>{const n=[],r=[];return ie(e,f=>{f.fold(w=>{n.push(w)},w=>{r.push(w)})}),{errors:n,values:r}},bw=e=>e.type==="inline-command"||e.type==="inline-format",Ki=e=>e.type==="block-command"||e.type==="block-format",nT=e=>{const n=f=>Oc.error({message:f,pattern:e}),r=(f,w,B)=>{if(e.format!==void 0){let Z;if(S(e.format)){if(!We(e.format,C))return n(f+" pattern has non-string items in the `format` array");Z=e.format}else if(C(e.format))Z=[e.format];else return n(f+" pattern has non-string `format` parameter");return Oc.value(w(Z))}else return e.cmd!==void 0?C(e.cmd)?Oc.value(B(e.cmd,e.value)):n(f+" pattern has non-string `cmd` parameter"):n(f+" pattern is missing both `format` and `cmd` parameters")};if(!_(e))return n("Raw pattern is not an object");if(!C(e.start))return n("Raw pattern is missing `start` parameter");if(e.end!==void 0){if(!C(e.end))return n("Inline pattern has non-string `end` parameter");if(e.start.length===0&&e.end.length===0)return n("Inline pattern has empty `start` and `end` parameters");let f=e.start,w=e.end;return w.length===0&&(w=f,f=""),r("Inline",B=>({type:"inline-format",start:f,end:w,format:B}),(B,Z)=>({type:"inline-command",start:f,end:w,cmd:B,value:Z}))}else return e.replacement!==void 0?C(e.replacement)?e.start.length===0?n("Replacement pattern has empty `start` parameter"):Oc.value({type:"inline-command",start:"",end:e.start,cmd:"mceInsertContent",value:e.replacement}):n("Replacement pattern has non-string `replacement` parameter"):e.start.length===0?n("Block pattern has empty `start` parameter"):r("Block",f=>({type:"block-format",start:e.start,format:f[0]}),(f,w)=>({type:"block-command",start:e.start,cmd:f,value:w}))},Ob=e=>ue(e,Ki),xw=e=>ue(e,bw),Pc=(e,n)=>({inlinePatterns:xw(e),blockPatterns:Ob(e),dynamicPatternsLookup:n}),u4=e=>{const n=gr(Fe(e,nT));return ie(n.errors,r=>console.error(r.message,r.pattern)),n.values},rT=e=>n=>{const r=e(n);return u4(r)},Ic=Ys().deviceType,hv=Ic.isTouch(),p1=Cs.DOM,Id=e=>{const n=e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(",");return le(n,(r,f)=>{const w=f.split("="),B=w[0],Z=w.length>1?w[1]:B;return r[Cr(B)]=Cr(Z),r},{})},Sf=e=>x(e,RegExp),Ur=e=>n=>n.options.get(e),Au=e=>C(e)||_(e),oT=(e,n="")=>r=>{const f=C(r);if(f)if(r.indexOf("=")!==-1){const w=Id(r);return{value:wn(w,e.id).getOr(n),valid:f}}else return{value:r,valid:f};else return{valid:!1,message:"Must be a string."}},aT=e=>{const n=e.options.register;n("id",{processor:"string",default:e.id}),n("selector",{processor:"string"}),n("target",{processor:"object"}),n("suffix",{processor:"string"}),n("cache_suffix",{processor:"string"}),n("base_url",{processor:"string"}),n("referrer_policy",{processor:"string",default:""}),n("language_load",{processor:"boolean",default:!0}),n("inline",{processor:"boolean",default:!1}),n("iframe_attrs",{processor:"object",default:{}}),n("doctype",{processor:"string",default:""}),n("document_base_url",{processor:"string",default:e.documentBaseUrl}),n("body_id",{processor:oT(e,"tinymce"),default:"tinymce"}),n("body_class",{processor:oT(e),default:""}),n("content_security_policy",{processor:"string",default:""}),n("br_in_pre",{processor:"boolean",default:!0}),n("forced_root_block",{processor:r=>{const f=C(r)&&St(r);return f?{value:r,valid:f}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),n("forced_root_block_attrs",{processor:"object",default:{}}),n("newline_behavior",{processor:r=>{const f=Ve(["block","linebreak","invert","default"],r);return f?{value:r,valid:f}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),n("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),n("no_newline_selector",{processor:"string",default:""}),n("keep_styles",{processor:"boolean",default:!0}),n("end_container_on_empty_block",{processor:r=>D(r)?{valid:!0,value:r}:C(r)?{valid:!0,value:r}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),n("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),n("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),n("font_size_classes",{processor:"string",default:""}),n("automatic_uploads",{processor:"boolean",default:!0}),n("images_reuse_filename",{processor:"boolean",default:!1}),n("images_replace_blob_uris",{processor:"boolean",default:!0}),n("icons",{processor:"string",default:""}),n("icons_url",{processor:"string",default:""}),n("images_upload_url",{processor:"string",default:""}),n("images_upload_base_path",{processor:"string",default:""}),n("images_upload_credentials",{processor:"boolean",default:!1}),n("images_upload_handler",{processor:"function"}),n("language",{processor:"string",default:"en"}),n("language_url",{processor:"string",default:""}),n("entity_encoding",{processor:"string",default:"named"}),n("indent",{processor:"boolean",default:!0}),n("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),n("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),n("indent_use_margin",{processor:"boolean",default:!1}),n("indentation",{processor:"string",default:"40px"}),n("content_css",{processor:r=>{const f=r===!1||C(r)||H(r,C);return f?C(r)?{value:Fe(r.split(","),Cr),valid:f}:S(r)?{value:r,valid:f}:r===!1?{value:[],valid:f}:{value:r,valid:f}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:Dw(e)?[]:["default"]}),n("content_style",{processor:"string"}),n("content_css_cors",{processor:"boolean",default:!1}),n("font_css",{processor:r=>{const f=C(r)||H(r,C);return f?{value:S(r)?r:Fe(r.split(","),Cr),valid:f}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),n("inline_boundaries",{processor:"boolean",default:!0}),n("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),n("object_resizing",{processor:r=>{const f=D(r)||C(r);return f?r===!1||Ic.isiPhone()||Ic.isiPad()?{value:"",valid:f}:{value:r===!0?"table,img,figure.image,div,video,iframe":r,valid:f}:{valid:!1,message:"Must be boolean or a string"}},default:!hv}),n("resize_img_proportional",{processor:"boolean",default:!0}),n("event_root",{processor:"object"}),n("service_message",{processor:"string"}),n("theme",{processor:r=>r===!1||C(r)||R(r),default:"silver"}),n("theme_url",{processor:"string"}),n("formats",{processor:"object"}),n("format_empty_lines",{processor:"boolean",default:!1}),n("format_noneditable_selector",{processor:"string",default:""}),n("preview_styles",{processor:r=>{const f=r===!1||C(r);return f?{value:r===!1?"":r,valid:f}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),n("custom_ui_selector",{processor:"string",default:""}),n("hidden_input",{processor:"boolean",default:!0}),n("submit_patch",{processor:"boolean",default:!0}),n("encoding",{processor:"string"}),n("add_form_submit_trigger",{processor:"boolean",default:!0}),n("add_unload_trigger",{processor:"boolean",default:!0}),n("custom_undo_redo_levels",{processor:"number",default:0}),n("disable_nodechange",{processor:"boolean",default:!1}),n("readonly",{processor:"boolean",default:!1}),n("editable_root",{processor:"boolean",default:!0}),n("plugins",{processor:"string[]",default:[]}),n("external_plugins",{processor:"object"}),n("forced_plugins",{processor:"string[]"}),n("model",{processor:"string",default:e.hasPlugin("rtc")?"plugin":"dom"}),n("model_url",{processor:"string"}),n("block_unsupported_drop",{processor:"boolean",default:!0}),n("visual",{processor:"boolean",default:!0}),n("visual_table_class",{processor:"string",default:"mce-item-table"}),n("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),n("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),n("setup",{processor:"function"}),n("init_instance_callback",{processor:"function"}),n("url_converter",{processor:"function",default:e.convertURL}),n("url_converter_scope",{processor:"object",default:e}),n("urlconverter_callback",{processor:"function"}),n("allow_conditional_comments",{processor:"boolean",default:!1}),n("allow_html_data_urls",{processor:"boolean",default:!1}),n("allow_svg_data_urls",{processor:"boolean"}),n("allow_html_in_named_anchor",{processor:"boolean",default:!1}),n("allow_script_urls",{processor:"boolean",default:!1}),n("allow_unsafe_link_target",{processor:"boolean",default:!1}),n("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),n("fix_list_elements",{processor:"boolean",default:!1}),n("preserve_cdata",{processor:"boolean",default:!1}),n("remove_trailing_brs",{processor:"boolean",default:!0}),n("pad_empty_with_br",{processor:"boolean",default:!1}),n("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),n("element_format",{processor:"string",default:"html"}),n("entities",{processor:"string"}),n("schema",{processor:"string",default:"html5"}),n("convert_urls",{processor:"boolean",default:!0}),n("relative_urls",{processor:"boolean",default:!0}),n("remove_script_host",{processor:"boolean",default:!0}),n("custom_elements",{processor:"string"}),n("extended_valid_elements",{processor:"string"}),n("invalid_elements",{processor:"string"}),n("invalid_styles",{processor:Au}),n("valid_children",{processor:"string"}),n("valid_classes",{processor:Au}),n("valid_elements",{processor:"string"}),n("valid_styles",{processor:Au}),n("verify_html",{processor:"boolean",default:!0}),n("auto_focus",{processor:r=>C(r)||r===!0}),n("browser_spellcheck",{processor:"boolean",default:!1}),n("protect",{processor:"array"}),n("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),n("deprecation_warnings",{processor:"boolean",default:!0}),n("a11y_advanced_options",{processor:"boolean",default:!1}),n("api_key",{processor:"string"}),n("paste_block_drop",{processor:"boolean",default:!1}),n("paste_data_images",{processor:"boolean",default:!0}),n("paste_preprocess",{processor:"function"}),n("paste_postprocess",{processor:"function"}),n("paste_webkit_styles",{processor:"string",default:"none"}),n("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),n("paste_merge_formats",{processor:"boolean",default:!0}),n("smart_paste",{processor:"boolean",default:!0}),n("paste_as_text",{processor:"boolean",default:!1}),n("paste_tab_spaces",{processor:"number",default:4}),n("text_patterns",{processor:r=>H(r,_)||r===!1?{value:u4(r===!1?[]:r),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"1. ",cmd:"InsertOrderedList"},{start:"* ",cmd:"InsertUnorderedList"},{start:"- ",cmd:"InsertUnorderedList"}]}),n("text_patterns_lookup",{processor:r=>R(r)?{value:rT(r),valid:!0}:{valid:!1,message:"Must be a single function"},default:r=>[]}),n("noneditable_class",{processor:"string",default:"mceNonEditable"}),n("editable_class",{processor:"string",default:"mceEditable"}),n("noneditable_regexp",{processor:r=>H(r,Sf)?{value:r,valid:!0}:Sf(r)?{value:[r],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),n("table_tab_navigation",{processor:"boolean",default:!0}),n("highlight_on_focus",{processor:"boolean",default:!1}),n("xss_sanitization",{processor:"boolean",default:!0}),n("details_initial_state",{processor:r=>{const f=Ve(["inherited","collapsed","expanded"],r);return f?{value:r,valid:f}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),n("details_serialized_state",{processor:r=>{const f=Ve(["inherited","collapsed","expanded"],r);return f?{value:r,valid:f}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),n("init_content_sync",{processor:"boolean",default:!1}),n("newdocument_content",{processor:"string",default:""}),n("force_hex_color",{processor:r=>{const f=["always","rgb_only","off"],w=Ve(f,r);return w?{value:r,valid:w}:{valid:!1,message:`Must be one of: ${f.join(", ")}.`}},default:"off"}),n("sandbox_iframes",{processor:"boolean",default:!1}),n("convert_unsafe_embeds",{processor:"boolean",default:!1}),e.on("ScriptsLoaded",()=>{n("directionality",{processor:"string",default:Cf.isRtl()?"rtl":void 0}),n("placeholder",{processor:"string",default:p1.getAttrib(e.getElement(),"placeholder")})})},ww=Ur("iframe_attrs"),sT=Ur("doctype"),Cw=Ur("document_base_url"),Sw=Ur("body_id"),f4=Ur("body_class"),Tw=Ur("content_security_policy"),d4=Ur("br_in_pre"),ac=Ur("forced_root_block"),v1=Ur("forced_root_block_attrs"),h4=Ur("newline_behavior"),m4=Ur("br_newline_selector"),kw=Ur("no_newline_selector"),g4=Ur("keep_styles"),iT=Ur("end_container_on_empty_block"),lT=Ur("automatic_uploads"),y1=Ur("images_reuse_filename"),cT=Ur("images_replace_blob_uris"),Aw=Ur("icons"),Xg=Ur("icons_url"),p4=Ur("images_upload_url"),v4=Ur("images_upload_base_path"),Mw=Ur("images_upload_credentials"),y4=Ur("images_upload_handler"),Oh=Ur("content_css_cors"),ia=Ur("referrer_policy"),Ew=Ur("language"),sc=Ur("language_url"),Pb=Ur("indent_use_margin"),_w=Ur("indentation"),Rw=Ur("content_css"),Ib=Ur("content_style"),uT=Ur("font_css"),b4=Ur("directionality"),x4=Ur("inline_boundaries_selector"),mv=Ur("object_resizing"),fT=Ur("resize_img_proportional"),i$=Ur("placeholder"),$m=Ur("event_root"),w4=Ur("service_message"),gv=Ur("theme"),C4=Ur("theme_url"),Lw=Ur("model"),dT=Ur("model_url"),Jg=Ur("inline_boundaries"),S4=Ur("formats"),hT=Ur("preview_styles"),mT=Ur("format_empty_lines"),pv=Ur("format_noneditable_selector"),gT=Ur("custom_ui_selector"),Dw=Ur("inline"),T4=Ur("hidden_input"),pT=Ur("submit_patch"),Nd=Ur("add_form_submit_trigger"),b1=Ur("add_unload_trigger"),x1=Ur("custom_undo_redo_levels"),Nb=Ur("disable_nodechange"),w1=Ur("readonly"),tf=Ur("editable_root"),vv=Ur("content_css_cors"),C1=Ur("plugins"),Om=Ur("external_plugins"),Fb=Ur("block_unsupported_drop"),k4=Ur("visual"),A4=Ur("visual_table_class"),vT=Ur("visual_anchor_class"),M4=Ur("iframe_aria_text"),$w=Ur("setup"),E4=Ur("init_instance_callback"),_4=Ur("urlconverter_callback"),yT=Ur("auto_focus"),R4=Ur("browser_spellcheck"),bT=Ur("protect"),L4=Ur("paste_block_drop"),Bb=Ur("paste_data_images"),D4=Ur("paste_preprocess"),xT=Ur("paste_postprocess"),yv=Ur("newdocument_content"),Ow=Ur("paste_webkit_styles"),Pw=Ur("paste_remove_styles_if_webkit"),Iw=Ur("paste_merge_formats"),wT=Ur("smart_paste"),Nw=Ur("paste_as_text"),$4=Ur("paste_tab_spaces"),Hb=Ur("allow_html_data_urls"),zb=Ur("text_patterns"),O4=Ur("text_patterns_lookup"),Fw=Ur("noneditable_class"),CT=Ur("editable_class"),P4=Ur("noneditable_regexp"),Bw=Ur("preserve_cdata"),I4=Ur("highlight_on_focus"),bv=Ur("xss_sanitization"),N4=Ur("init_content_sync"),Hw=e=>e.options.isSet("text_patterns_lookup"),F4=e=>ur.explode(e.options.get("font_size_style_values")),B4=e=>ur.explode(e.options.get("font_size_classes")),H4=e=>e.options.get("encoding")==="xml",ST=e=>ur.explode(e.options.get("images_file_types")),z4=Ur("table_tab_navigation"),fl=Ur("details_initial_state"),l$=Ur("details_serialized_state"),xv=Ur("force_hex_color"),Vb=Ur("sandbox_iframes"),TT=Gr,zw=ir,kT=e=>{const n=e.parentNode;n&&n.removeChild(e)},AT=e=>{const n=_e(e);return{count:e.length-n.length,text:n}},Qg=e=>{let n;for(;(n=e.data.lastIndexOf(ve))!==-1;)e.deleteData(n,1)},S1=(e,n)=>(Xi(e),n),V4=(e,n)=>{const r=AT(e.data.substr(0,n.offset())),f=AT(e.data.substr(n.offset()));return(r.text+f.text).length>0?(Qg(e),In(e,n.offset()-r.count)):n},U4=(e,n)=>{const r=n.container(),f=Ne(tt(r.childNodes),e).map(w=>wzw(e)&&n.container()===e?V4(e,n):S1(e,n),Vw=(e,n)=>n.container()===e.parentNode?U4(e,n):S1(e,n),MT=(e,n)=>In.isTextPosition(n)?T1(e,n):Vw(e,n),Xi=e=>{TT(e)&&bt(e)&&(Vt(e)?e.removeAttribute("data-mce-caret"):kT(e)),zw(e)&&(Qg(e),e.data.length===0&&kT(e))},ET=fa,Uw=zs,c$=Bg,wv="*[contentEditable=false],video,audio,embed,object",W4=(e,n,r)=>{const f=Lh(n.getBoundingClientRect(),r);let w,B;if(e.tagName==="BODY"){const oe=e.ownerDocument.documentElement;w=e.scrollLeft||oe.scrollLeft,B=e.scrollTop||oe.scrollTop}else{const oe=e.getBoundingClientRect();w=e.scrollLeft-oe.left,B=e.scrollTop-oe.top}f.left+=w,f.right+=w,f.top+=B,f.bottom+=B,f.width=1;let Z=n.offsetWidth-n.clientWidth;return Z>0&&(r&&(Z*=-1),f.left+=Z,f.right+=Z),f},_T=e=>{var n,r;const f=Vi(jt.fromDom(e),wv);for(let w=0;w{const w=Em();let B,Z;const oe=ac(e),be=e.dom,Pe=(At,It)=>{let ln;if(Ke(),c$(It))return null;if(r(It)){const xn=Kt(oe,It,At),yn=W4(n,It,At);be.setStyle(xn,"top",yn.top),Z=xn;const $n=be.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});be.setStyles($n,{...yn}),be.add(n,$n),w.set({caret:$n,element:It,before:At}),At&&be.addClass($n,"mce-visual-caret-before"),Je(),ln=It.ownerDocument.createRange(),ln.setStart(xn,0),ln.setEnd(xn,0)}else return Z=Wt(It,At),ln=It.ownerDocument.createRange(),Ub(Z.nextSibling)?(ln.setStart(Z,0),ln.setEnd(Z,0)):(ln.setStart(Z,1),ln.setEnd(Z,1)),ln;return ln},Ke=()=>{_T(n),Z&&(Xi(Z),Z=null),w.on(At=>{be.remove(At.caret),w.clear()}),B&&(clearInterval(B),B=void 0)},Je=()=>{B=setInterval(()=>{w.on(At=>{f()?be.toggleClass(At.caret,"mce-visual-caret-hidden"):be.addClass(At.caret,"mce-visual-caret-hidden")})},500)};return{show:Pe,hide:Ke,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{w.on(At=>{const It=W4(n,At.element,At.before);be.setStyles(At.caret,{...It})})},destroy:()=>clearInterval(B)}},k1=()=>Lr.browser.isFirefox(),Ub=e=>ET(e)||Uw(e),Cv=e=>(Ub(e)||yu(e)&&k1())&&gm(jt.fromDom(e)).exists(Wo),G4=wl,Pm=fa,RT=zs,Im=Gf("display","block table table-cell table-caption list-item"),Nm=bt,Gw=rt,LT=Gr,u$=ir,Zw=fo,Fm=e=>e>0,Fd=e=>e<0,A1=(e,n)=>{let r;for(;r=e(n);)if(!Gw(r))return r;return null},Sv=(e,n,r,f,w)=>{const B=new es(e,f),Z=Pm(e)||Gw(e);let oe;if(Fd(n)){if(Z&&(oe=A1(B.prev.bind(B),!0),r(oe)))return oe;for(;oe=A1(B.prev.bind(B),w);)if(r(oe))return oe}if(Fm(n)){if(Z&&(oe=A1(B.next.bind(B),!0),r(oe)))return oe;for(;oe=A1(B.next.bind(B),w);)if(r(oe))return oe}return null},jw=(e,n)=>{const r=w=>G4(w.dom),f=w=>w.dom===n;return Js(jt.fromDom(e),r,f).map(w=>w.dom).getOr(n)},Ph=(e,n)=>{for(;e&&e!==n;){if(Im(e))return e;e=e.parentNode}return null},td=(e,n,r)=>Ph(e.container(),r)===Ph(n.container(),r),M1=(e,n)=>{if(!n)return X.none();const r=n.container(),f=n.offset();return LT(r)?X.from(r.childNodes[f+e]):X.none()},Wb=(e,n)=>{var r;const w=((r=n.ownerDocument)!==null&&r!==void 0?r:document).createRange();return e?(w.setStartBefore(n),w.setEndBefore(n)):(w.setStartAfter(n),w.setEndAfter(n)),w},E1=(e,n,r)=>Ph(n,e)===Ph(r,e),Yw=(e,n,r)=>{const f=e?"previousSibling":"nextSibling";let w=r;for(;w&&w!==n;){let B=w[f];if(B&&Nm(B)&&(B=B[f]),Pm(B)||RT(B)){if(E1(n,B,w))return B;break}if(Zw(B))break;w=w.parentNode}return null},Tv=Q(Wb,!0),_1=Q(Wb,!1),Kw=(e,n,r)=>{let f;const w=Q(Yw,!0,n),B=Q(Yw,!1,n),Z=r.startContainer,oe=r.startOffset;if(rt(Z)){const be=u$(Z)?Z.parentNode:Z,Pe=be.getAttribute("data-mce-caret");if(Pe==="before"&&(f=be.nextSibling,Cv(f)))return Tv(f);if(Pe==="after"&&(f=be.previousSibling,Cv(f)))return _1(f)}if(!r.collapsed)return r;if(ir(Z)){if(Nm(Z)){if(e===1){if(f=B(Z),f)return Tv(f);if(f=w(Z),f)return _1(f)}if(e===-1){if(f=w(Z),f)return _1(f);if(f=B(Z),f)return Tv(f)}return r}if(dn(Z)&&oe>=Z.data.length-1)return e===1&&(f=B(Z),f)?Tv(f):r;if(en(Z)&&oe<=1)return e===-1&&(f=w(Z),f)?_1(f):r;if(oe===Z.data.length)return f=B(Z),f?Tv(f):r;if(oe===0)return f=w(Z),f?_1(f):r}return r},DT=(e,n)=>M1(e?0:-1,n).filter(Pm),Bm=(e,n,r)=>{const f=Kw(e,n,r);return e===-1?In.fromRangeStart(f):In.fromRangeEnd(f)},Gb=e=>X.from(e.getNode()).map(jt.fromDom),Z4=e=>X.from(e.getNode(!0)).map(jt.fromDom),$T=(e,n)=>{let r=n;for(;r=e(r);)if(r.isVisible())return r;return r},Xw=(e,n)=>{const r=td(e,n);return!r&&Ja(e.getNode())?!0:r};var gi;(function(e){e[e.Backwards=-1]="Backwards",e[e.Forwards=1]="Forwards"})(gi||(gi={}));const f$=fa,Ih=ir,OT=Gr,Zb=Ja,Hm=fo,Nl=_o,kv=sa,R1=(e,n)=>{const r=[];let f=e;for(;f&&f!==n;)r.push(f),f=f.parentNode;return r},Av=(e,n)=>e.hasChildNodes()&&n{if(Fm(e)){if(Hm(n.previousSibling)&&!Ih(n.previousSibling))return In.before(n);if(Ih(n))return In(n,0)}if(Fd(e)){if(Hm(n.nextSibling)&&!Ih(n.nextSibling))return In.after(n);if(Ih(n))return In(n,n.data.length)}return Fd(e)?Zb(n)?In.before(n):In.after(n):In.before(n)},Mv=(e,n)=>{const r=n.nextSibling;return r&&Hm(r)?Ih(r)?In(r,0):In.before(r):qg(gi.Forwards,In.after(n),e)},qg=(e,n,r)=>{let f,w,B,Z;if(!OT(r)||!n)return null;if(n.isEqual(In.after(r))&&r.lastChild){if(Z=In.after(r.lastChild),Fd(e)&&Hm(r.lastChild)&&OT(r.lastChild))return Zb(r.lastChild)?In.before(r.lastChild):Z}else Z=n;const oe=Z.container();let be=Z.offset();if(Ih(oe)){if(Fd(e)&&be>0)return In(oe,--be);if(Fm(e)&&be0&&(w=Av(oe,be-1),Hm(w)))return!Nl(w)&&(B=Sv(w,e,kv,w),B)?Ih(B)?In(B,B.data.length):In.after(B):Ih(w)?In(w,w.data.length):In.before(w);if(Fm(e)&&be({next:n=>qg(gi.Forwards,n,e),prev:n=>qg(gi.Backwards,n,e)}),j4=(e,n,r)=>{const f=e?In.before(r):In.after(r);return dl(e,n,f)},Y4=e=>Ja(e)?In.before(e):In.after(e),zm=e=>In.isTextPosition(e)?e.offset()===0:fo(e.getNode()),Ev=e=>{if(In.isTextPosition(e)){const n=e.container();return e.offset()===n.data.length}else return fo(e.getNode(!0))},jb=(e,n)=>!In.isTextPosition(e)&&!In.isTextPosition(n)&&e.getNode()===n.getNode(!0),Bd=e=>!In.isTextPosition(e)&&Ja(e.getNode()),Qw=(e,n,r)=>e?!jb(n,r)&&!Bd(n)&&Ev(n)&&zm(r):!jb(r,n)&&zm(n)&&Ev(r),dl=(e,n,r)=>{const f=nd(n);return X.from(e?f.next(r):f.prev(r))},Nh=(e,n,r)=>dl(e,n,r).bind(f=>td(r,f,n)&&Qw(e,r,f)?dl(e,n,f):X.some(f)),Tf=(e,n,r,f)=>Nh(e,n,r).bind(w=>f(w)?Tf(e,n,w,f):X.some(w)),_v=(e,n)=>{const r=e?n.firstChild:n.lastChild;return ir(r)?X.some(In(r,e?0:r.data.length)):r?fo(r)?X.some(e?In.before(r):Y4(r)):j4(e,n,r):X.none()},ic=Q(dl,!0),Nc=Q(dl,!1),Sc=Q(_v,!0),kf=Q(_v,!1),Yb="_mce_caret",Mu=e=>Gr(e)&&e.id===Yb,ep=(e,n)=>{let r=n;for(;r&&r!==e;){if(Mu(r))return r;r=r.parentNode}return null},qw=e=>C(e.start),K4=e=>lt(e,"rng"),PT=e=>lt(e,"id"),L1=e=>lt(e,"name"),IT=e=>ur.isArray(e.start),D1=e=>!L1(e)&&D(e.forward)?e.forward:!0,Kb=(e,n)=>(Gr(n)&&e.isBlock(n)&&!n.innerHTML&&(n.innerHTML='
    '),n),X4=(e,n)=>{const r=X.from(Cc(e.getRoot(),n.start)),f=X.from(Cc(e.getRoot(),n.end));return Es(r,f,(w,B)=>{const Z=e.createRng();return Z.setStart(w.container(),w.offset()),Z.setEnd(B.container(),B.offset()),{range:Z,forward:D1(n)}})},NT=(e,n)=>{var r;const w=((r=e.ownerDocument)!==null&&r!==void 0?r:document).createTextNode(ve);e.appendChild(w),n.setStart(w,0),n.setEnd(w,0)},J4=e=>!e.hasChildNodes(),d$=(e,n)=>kf(e).fold(ne,r=>(n.setStart(r.container(),r.offset()),n.setEnd(r.container(),r.offset()),!0)),FT=(e,n,r)=>J4(n)&&ep(e,n)?(NT(n,r),!0):!1,va=(e,n,r,f)=>{const w=r[n?"start":"end"],B=e.getRoot();if(w){let Z=B,oe=w[0];for(let be=w.length-1;Z&&be>=1;be--){const Pe=Z.childNodes;if(FT(B,Z,f))return!0;if(w[be]>Pe.length-1)return FT(B,Z,f)?!0:d$(Z,f);Z=Pe[w[be]]}ir(Z)&&(oe=Math.min(w[0],Z.data.length)),Gr(Z)&&(oe=Math.min(w[0],Z.childNodes.length)),n?f.setStart(Z,oe):f.setEnd(Z,oe)}return!0},rd=e=>ir(e)&&e.data.length>0,tp=(e,n,r)=>{const f=e.get(r.id+"_"+n),w=f==null?void 0:f.parentNode,B=r.keep;if(f&&w){let Z,oe;if(n==="start"?B?f.hasChildNodes()?(Z=f.firstChild,oe=1):rd(f.nextSibling)?(Z=f.nextSibling,oe=0):rd(f.previousSibling)?(Z=f.previousSibling,oe=f.previousSibling.data.length):(Z=w,oe=e.nodeIndex(f)+1):(Z=w,oe=e.nodeIndex(f)):B?f.hasChildNodes()?(Z=f.firstChild,oe=1):rd(f.previousSibling)?(Z=f.previousSibling,oe=f.previousSibling.data.length):(Z=w,oe=e.nodeIndex(f)):(Z=w,oe=e.nodeIndex(f)),!B){const be=f.previousSibling,Pe=f.nextSibling;ur.each(ur.grep(f.childNodes),Je=>{ir(Je)&&(Je.data=Je.data.replace(/\uFEFF/g,""))});let Ke;for(;Ke=e.get(r.id+"_"+n);)e.remove(Ke,!0);if(ir(Pe)&&ir(be)&&!Lr.browser.isOpera()){const Je=be.data.length;be.appendData(Pe.data),e.remove(Pe),Z=be,oe=Je}}return X.some(In(Z,oe))}else return X.none()},eC=(e,n)=>{const r=e.createRng();return va(e,!0,n,r)&&va(e,!1,n,r)?X.some({range:r,forward:D1(n)}):X.none()},BT=(e,n)=>{const r=tp(e,"start",n),f=tp(e,"end",n);return Es(r,f.or(r),(w,B)=>{const Z=e.createRng();return Z.setStart(Kb(e,w.container()),w.offset()),Z.setEnd(Kb(e,B.container()),B.offset()),{range:Z,forward:D1(n)}})},$1=(e,n)=>X.from(e.select(n.name)[n.index]).map(r=>{const f=e.createRng();return f.selectNode(r),{range:f,forward:!0}}),Q4=(e,n)=>{const r=e.dom;if(n){if(IT(n))return eC(r,n);if(qw(n))return X4(r,n);if(PT(n))return BT(r,n);if(L1(n))return $1(r,n);if(K4(n))return X.some({range:n.rng,forward:D1(n)})}return X.none()},Rv=(e,n,r)=>c4(e,n,r),Xb=(e,n)=>{Q4(e,n).each(({range:r,forward:f})=>{e.setRng(r,f)})},Eu=e=>Gr(e)&&e.tagName==="SPAN"&&e.getAttribute("data-mce-type")==="bookmark",Jb=(e=>n=>e===n)(Da),Lv=e=>e!==""&&` \f -\r \v`.indexOf(e)!==-1,Vm=e=>!Lv(e)&&!Jb(e)&&!Qu(e),Qb=e=>{const n=[];if(e)for(let r=0;rze(e,n=>{const r=sw(n);return r?[jt.fromDom(r)]:[]}),np=e=>Qb(e).length>1,q4=e=>ue(qb(e),bc),HT=e=>Vi(e,"td[data-mce-selected],th[data-mce-selected]"),e_=(e,n)=>{const r=HT(n);return r.length>0?r:q4(e)},Dv=e=>e_(Qb(e.selection.getSel()),jt.fromDom(e.getBody())),Fh=(e,n)=>vm(e,"table",n),t_=e=>{const n=e.startContainer,r=e.startOffset;return ir(n)?r===0?X.some(jt.fromDom(n)):X.none():X.from(n.childNodes[r]).map(jt.fromDom)},n_=e=>{const n=e.endContainer,r=e.endOffset;return ir(n)?r===n.data.length?X.some(jt.fromDom(n)):X.none():X.from(n.childNodes[r-1]).map(jt.fromDom)},zT=e=>pm(e).fold(J([e]),n=>[e].concat(zT(n))),tC=e=>Xl(e).fold(J([e]),n=>La(n)==="br"?hu(n).map(r=>[e].concat(tC(r))).getOr([]):[e].concat(tC(n))),nC=(e,n)=>Es(t_(n),n_(n),(r,f)=>{const w=de(zT(e),Q(Ba,r)),B=de(tC(e),Q(Ba,f));return w.isSome()&&B.isSome()}).getOr(!1),rC=(e,n,r,f)=>{const w=r,B=new es(r,w),Z=Cn(e.schema.getMoveCaretBeforeOnEnterElements(),(be,Pe)=>!Ve(["td","th","table"],Pe.toLowerCase()));let oe=r;do{if(ir(oe)&&ur.trim(oe.data).length!==0){f?n.setStart(oe,0):n.setEnd(oe,oe.data.length);return}if(Z[oe.nodeName]){f?n.setStartBefore(oe):oe.nodeName==="BR"?n.setEndBefore(oe):n.setEndAfter(oe);return}}while(oe=f?B.next():B.prev());w.nodeName==="BODY"&&(f?n.setStart(w,0):n.setEnd(w,w.childNodes.length))},ex=e=>{const n=e.selection.getSel();return k(n)&&n.rangeCount>0},Um=(e,n)=>{const r=Dv(e);r.length>0?ie(r,f=>{const w=f.dom,B=e.dom.createRng();B.setStartBefore(w),B.setEndAfter(w),n(B,!0)}):n(e.selection.getRng(),!1)},VT=(e,n,r)=>{const f=eT(e,n);r(f),e.moveToBookmark(f)},O1=e=>F(e==null?void 0:e.nodeType),oC=e=>Gr(e)&&!Eu(e)&&!Mu(e)&&!Ju(e),r_=(e,n)=>{if(oC(n)&&!/^(TD|TH)$/.test(n.nodeName)){const r=e.getAttrib(n,"data-mce-selected"),f=parseInt(r,10);return!isNaN(f)&&f>0}else return!1},P1=(e,n,r)=>{const{selection:f,dom:w}=e,B=f.getNode(),Z=fa(B);VT(f,!0,()=>{n()}),Z&&fa(B)&&w.isChildOf(B,e.getBody())?e.selection.select(B):r(f.getStart())&&o_(w,f)},o_=(e,n)=>{var r,f;const w=n.getRng(),{startContainer:B,startOffset:Z}=w,oe=n.getNode();if(!r_(e,oe)&&Gr(B)){const be=B.childNodes,Pe=e.getRoot();let Ke;if(Z{if(e){const f=n?"nextSibling":"previousSibling";for(e=r?e:e[f];e;e=e[f])if(Gr(e)||!Si(e))return e}},Fi=(e,n)=>!!e.getTextBlockElements()[n.nodeName.toLowerCase()]||pa(e,n),Bh=(e,n,r)=>e.schema.isValidChild(n,r),Si=(e,n=!1)=>{if(k(e)&&ir(e)){const r=n?e.data.replace(/ /g," "):e.data;return As(r)}else return!1},nf=e=>k(e)&&ir(e)&&e.length===0,tx=(e,n)=>{const r="[data-mce-cef-wrappable]",f=pv(e),w=kt(f)?r:`${r},${f}`;return du(jt.fromDom(n),w)},I1=(e,n)=>{const r=e.dom;return oC(n)&&r.getContentEditable(n)==="false"&&tx(e,n)&&r.select('[contenteditable="true"]',n).length===0},od=(e,n)=>R(e)?e(n):(k(n)&&(e=e.replace(/%(\w+)/g,(r,f)=>n[f]||r)),e),nx=(e,n)=>(e=e||"",n=n||"",e=""+(e.nodeName||e),n=""+(n.nodeName||n),e.toLowerCase()===n.toLowerCase()),rx=(e,n)=>{if(M(e))return null;{let r=String(e);return(n==="color"||n==="backgroundColor")&&(r=Xp(r)),n==="fontWeight"&&e===700&&(r="bold"),n==="fontFamily"&&(r=r.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),r}},$v=(e,n,r)=>{const f=e.getStyle(n,r);return rx(f,r)},UT=(e,n)=>{let r;return e.getParent(n,f=>Gr(f)?(r=e.getStyle(f,"text-decoration"),!!r&&r!=="none"):!1),r},N1=(e,n,r)=>e.getParents(n,r,e.getRoot()),aC=(e,n,r)=>{const f=e.formatter.get(n);return k(f)&&Oe(f,r)},sC=(e,n)=>aC(e,n,f=>{const w=B=>R(B)||B.length>1&&B.charAt(0)==="%";return Oe(["styles","attributes"],B=>wn(f,B).exists(Z=>{const oe=S(Z)?Z:Wn(Z);return Oe(oe,w)}))}),a_=(e,n,r)=>{const f=["inline","block","selector","attributes","styles","classes"],w=B=>Cn(B,(Z,oe)=>Oe(f,be=>be===oe));return aC(e,n,B=>{const Z=w(B);return aC(e,r,oe=>{const be=w(oe);return wt(Z,be)})})},ad=e=>ft(e,"block"),ox=e=>ad(e)&&e.wrapper===!0,Ov=e=>ad(e)&&e.wrapper!==!0,El=e=>ft(e,"selector"),$i=e=>ft(e,"inline"),ax=e=>El(e)&&$i(e)&&Ms(wn(e,"mixed"),!0),F1=e=>El(e)&&e.expand!==!1&&!$i(e),sx=e=>{const n=[];let r=e;for(;r;){if(ir(r)&&r.data!==ve||r.childNodes.length>1)return[];Gr(r)&&n.push(r),r=r.firstChild}return n},B1=e=>sx(e).length>0,H1=e=>Mu(e.dom)&&B1(e.dom),Pv=Eu,WT=N1,z1=Si,GT=Fi,ZT=e=>Ja(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling,jT=(e,n)=>{let r=n;for(;r;){if(Gr(r)&&e.getContentEditable(r))return e.getContentEditable(r)==="false"?r:n;r=r.parentNode}return n},rf=(e,n,r,f)=>{const w=n.data;if(e){for(let B=r;B>0;B--)if(f(w.charAt(B-1)))return B}else for(let B=r;Brf(e,n,r,f=>Jb(f)||Lv(f)),Af=(e,n,r)=>rf(e,n,r,Vm),Fc=(e,n,r,f,w,B)=>{let Z;const oe=e.getParent(r,e.isBlock)||n,be=(Ke,Je,at)=>{const Rt=_m(e),Ht=w?Rt.backwards:Rt.forwards;return X.from(Ht(Ke,Je,(At,It)=>Pv(At.parentNode)?-1:(Z=At,at(w,At,It)),oe))};return be(r,f,Fl).bind(Ke=>B?be(Ke.container,Ke.offset+(w?-1:0),Af):X.some(Ke)).orThunk(()=>Z?X.some({container:Z,offset:w?0:Z.length}):X.none())},V1=(e,n,r,f,w)=>{const B=f[w];ir(f)&&kt(f.data)&&B&&(f=B);const Z=WT(e,f);for(let oe=0;oe{var w;let B=r;const Z=e.getRoot(),oe=n[0];if(ad(oe)&&(B=oe.wrapper?null:e.getParent(r,oe.block,Z)),!B){const be=(w=e.getParent(r,"LI,TD,TH,SUMMARY"))!==null&&w!==void 0?w:Z;B=e.getParent(ir(r)?r.parentNode:r,Pe=>Pe!==Z&>(e.schema,Pe),be)}if(B&&ad(oe)&&oe.wrapper&&(B=WT(e,B,"ul,ol").reverse()[0]||B),!B)for(B=r;B&&B[f]&&!e.isBlock(B[f])&&(B=B[f],!nx(B,"br")););return B||r},YT=(e,n,r,f)=>{const w=r.parentNode;return k(r[f])?!1:w===n||M(w)||e.isBlock(w)?!0:YT(e,n,w,f)},U1=(e,n,r,f,w)=>{let B=r;const Z=w?"previousSibling":"nextSibling",oe=e.getRoot();if(ir(r)&&!z1(r)&&(w?f>0:fPv(e.parentNode)||Pv(e),Hh=(e,n,r,f=!1)=>{let{startContainer:w,startOffset:B,endContainer:Z,endOffset:oe}=n;const be=r[0];return Gr(w)&&w.hasChildNodes()&&(w=nu(w,B),ir(w)&&(B=0)),Gr(Z)&&Z.hasChildNodes()&&(Z=nu(Z,n.collapsed?oe:oe-1),ir(Z)&&(oe=Z.data.length)),w=jT(e,w),Z=jT(e,Z),s_(w)&&(w=Pv(w)?w:w.parentNode,n.collapsed?w=w.previousSibling||w:w=w.nextSibling||w,ir(w)&&(B=n.collapsed?w.length:0)),s_(Z)&&(Z=Pv(Z)?Z:Z.parentNode,n.collapsed?Z=Z.nextSibling||Z:Z=Z.previousSibling||Z,ir(Z)&&(oe=n.collapsed?0:Z.length)),n.collapsed&&(Fc(e,e.getRoot(),w,B,!0,f).each(({container:Je,offset:at})=>{w=Je,B=at}),Fc(e,e.getRoot(),Z,oe,!1,f).each(({container:Je,offset:at})=>{Z=Je,oe=at})),($i(be)||be.block_expand)&&((!$i(be)||!ir(w)||B===0)&&(w=U1(e,r,w,B,!0)),(!$i(be)||!ir(Z)||oe===Z.data.length)&&(Z=U1(e,r,Z,oe,!1))),F1(be)&&(w=V1(e,r,n,w,"previousSibling"),Z=V1(e,r,n,Z,"nextSibling")),(ad(be)||El(be))&&(w=ix(e,r,w,"previousSibling"),Z=ix(e,r,Z,"nextSibling"),ad(be)&&(e.isBlock(w)||(w=U1(e,r,w,B,!0)),e.isBlock(Z)||(Z=U1(e,r,Z,oe,!1)))),Gr(w)&&w.parentNode&&(B=e.nodeIndex(w),w=w.parentNode),Gr(Z)&&Z.parentNode&&(oe=e.nodeIndex(Z)+1,Z=Z.parentNode),{startContainer:w,startOffset:B,endContainer:Z,endOffset:oe}},W1=(e,n,r)=>{var f;const w=n.startOffset,B=nu(n.startContainer,w),Z=n.endOffset,oe=nu(n.endContainer,Z-1),be=It=>{const ln=It[0];ir(ln)&&ln===B&&w>=ln.data.length&&It.splice(0,1);const xn=It[It.length-1];return Z===0&&It.length>0&&xn===oe&&ir(xn)&&It.splice(It.length-1,1),It},Pe=(It,ln,xn)=>{const yn=[];for(;It&&It!==xn;It=It[ln])yn.push(It);return yn},Ke=(It,ln)=>e.getParent(It,xn=>xn.parentNode===ln,ln),Je=(It,ln,xn)=>{const yn=xn?"nextSibling":"previousSibling";for(let $n=It,nr=$n.parentNode;$n&&$n!==ln;$n=nr){nr=$n.parentNode;const mr=Pe($n===It?$n:$n[yn],yn);mr.length&&(xn||mr.reverse(),r(be(mr)))}};if(B===oe)return r(be([B]));const at=(f=e.findCommonAncestor(B,oe))!==null&&f!==void 0?f:e.getRoot();if(e.isChildOf(B,oe))return Je(B,at,!0);if(e.isChildOf(oe,B))return Je(oe,at);const Rt=Ke(B,at)||B,Ht=Ke(oe,at)||oe;Je(B,Rt,!0);const At=Pe(Rt===B?Rt:Rt.nextSibling,"nextSibling",Ht===oe?Ht.nextSibling:Ht);At.length&&r(be(At)),Je(oe,Ht)},iC=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],KT=e=>Ei(e)&&Dc(e)===ve,XT=(e,n,r,f)=>Rc(n).fold(()=>"skipping",w=>f==="br"||KT(n)?"valid":G3(n)?"existing":Mu(n.dom)?"caret":Oe(iC,B=>du(n,B))?"valid-block":!Bh(e,r,f)||!Bh(e,La(w),r)?"invalid-child":"valid"),lC=(e,n)=>{const r=Hh(e.dom,n,[{inline:"span"}]);n.setStart(r.startContainer,r.startOffset),n.setEnd(r.endContainer,r.endOffset),e.selection.setRng(n)},lx=(e,n,r,f,w,B)=>{const{uid:Z=n,...oe}=r;hh(e,Cb()),ws(e,`${ov()}`,Z),ws(e,`${$d()}`,f);const{attributes:be={},classes:Pe=[]}=w(Z,oe);if(Kc(e,be),t4(e,Pe),B){Pe.length>0&&ws(e,`${sv()}`,Pe.join(","));const Ke=Yt(be);Ke.length>0&&ws(e,`${Wg()}`,Ke.join(","))}},gs=e=>{mh(e,Cb()),Xs(e,`${ov()}`),Xs(e,`${$d()}`),Xs(e,`${av()}`);const n=Yl(e,`${Wg()}`).map(f=>f.split(",")).getOr([]),r=Yl(e,`${sv()}`).map(f=>f.split(",")).getOr([]);ie(n,f=>Xs(e,f)),Y3(e,r),Xs(e,`${sv()}`),Xs(e,`${Wg()}`)},zh=(e,n,r,f,w)=>{const B=jt.fromTag("span",e);return lx(B,n,r,f,w,!1),B},JT=(e,n,r,f,w,B)=>{const Z=[],oe=zh(e.getDoc(),r,B,f,w),be=Em(),Pe=()=>{be.clear()},Ke=()=>be.get().getOrThunk(()=>{const Ht=tu(oe);return Z.push(Ht),be.set(Ht),Ht}),Je=Ht=>{ie(Ht,at)},at=Ht=>{switch(XT(e,Ht,"span",La(Ht))){case"invalid-child":{Pe();const It=zi(Ht);Je(It),Pe();break}case"valid-block":{Pe(),lx(Ht,r,B,f,w,!0);break}case"valid":{const It=Ke();ym(Ht,It);break}}},Rt=Ht=>{const At=Fe(Ht,jt.fromDom);Je(At)};return W1(e.dom,n,Ht=>{Pe(),Rt(Ht)}),Z},cC=(e,n,r,f)=>{e.undoManager.transact(()=>{const w=e.selection,B=w.getRng(),Z=Dv(e).length>0,oe=Gg("mce-annotation");if(B.collapsed&&!Z&&lC(e,B),w.getRng().collapsed&&!Z){const be=zh(e.getDoc(),oe,f,n,r.decorate);bh(be,Da),w.getRng().insertNode(be.dom),w.select(be.dom)}else VT(w,!1,()=>{Um(e,be=>{JT(e,be,oe,n,r.decorate,f)})})})},uC=e=>{const n=j3();Tu(e,n);const r=Pl(e,n),f=Yc("span"),w=B=>{ie(B,Z=>{f(Z)?Xu(Z):gs(Z)})};return{register:(B,Z)=>{n.register(B,Z)},annotate:(B,Z)=>{n.lookup(B).each(oe=>{cC(e,B,oe,Z)})},annotationChanged:(B,Z)=>{r.addListener(B,Z)},remove:B=>{ai(e,X.some(B)).each(({elements:Z})=>{const oe=e.selection.getBookmark();w(Z),e.selection.moveToBookmark(oe)})},removeAll:B=>{const Z=e.selection.getBookmark();Ft(Sb(e,B),(oe,be)=>{w(oe)}),e.selection.moveToBookmark(Z)},getAll:B=>{const Z=Sb(e,B);return pn(Z,oe=>Fe(oe,be=>be.dom))}}},rp=e=>({getBookmark:Q(Rv,e),moveToBookmark:Q(Xb,e)});rp.isBookmarkNode=Eu;const fC=(e,n,r)=>r.collapsed?!1:Oe(r.getClientRects(),f=>X3(f,e,n)),dC=(e,n)=>e.dispatch("PreProcess",n),i_=(e,n)=>e.dispatch("PostProcess",n),Iv=e=>{e.dispatch("remove")},Nv=e=>{e.dispatch("detach")},hC=(e,n)=>{e.dispatch("SwitchMode",{mode:n})},mC=(e,n,r,f,w)=>{e.dispatch("ObjectResizeStart",{target:n,width:r,height:f,origin:w})},Mf=(e,n,r,f,w)=>{e.dispatch("ObjectResized",{target:n,width:r,height:f,origin:w})},Wm=e=>{e.dispatch("PreInit")},l_=e=>{e.dispatch("PostRender")},G1=e=>{e.dispatch("Init")},c_=(e,n)=>{e.dispatch("PlaceholderToggle",{state:n})},ou=(e,n,r)=>{e.dispatch(n,r)},Bl=(e,n,r,f)=>{e.dispatch("FormatApply",{format:n,node:r,vars:f})},op=(e,n,r,f)=>{e.dispatch("FormatRemove",{format:n,node:r,vars:f})},h$=(e,n)=>e.dispatch("BeforeSetContent",n),QT=(e,n)=>e.dispatch("SetContent",n),u_=(e,n)=>e.dispatch("BeforeGetContent",n),da=(e,n)=>e.dispatch("GetContent",n),gC=(e,n)=>{e.dispatch("AutocompleterStart",n)},qT=(e,n)=>{e.dispatch("AutocompleterUpdate",n)},pC=e=>{e.dispatch("AutocompleterEnd")},f_=(e,n,r)=>e.dispatch("PastePreProcess",{content:n,internal:r}),d_=(e,n,r)=>e.dispatch("PastePostProcess",{node:n,internal:r}),ek=(e,n)=>e.dispatch("PastePlainTextToggle",{state:n}),h_=(e,n)=>e.dispatch("EditableRootStateChange",{state:n}),Wr={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:e=>e.shiftKey||e.ctrlKey||e.altKey||Wr.metaKeyPressed(e),metaKeyPressed:e=>Lr.os.isMacOS()||Lr.os.isiOS()?e.metaKey:e.ctrlKey&&!e.altKey},Gm="data-mce-selected",tk="table,img,figure.image,hr,video,span.mce-preview-object,details",Z1=Math.abs,j1=Math.round,m_={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},m$=e=>e.type==="longpress"||e.type.indexOf("touch")===0,g$=(e,n)=>{const r=n.dom,f=n.getDoc(),w=document,B=n.getBody();let Z,oe,be,Pe,Ke,Je,at,Rt,Ht,At,It,ln,xn,yn,$n,nr,mr;const Nr=vr=>k(vr)&&(ul(vr)||r.is(vr,"figure.image")),zn=vr=>zs(vr)||r.hasClass(vr,"mce-preview-object"),Nn=(vr,Oo)=>{if(m$(vr)){const Aa=vr.touches[0];return Nr(vr.target)&&!fC(Aa.clientX,Aa.clientY,Oo)}else return Nr(vr.target)&&!fC(vr.clientX,vr.clientY,Oo)},er=vr=>{const Oo=vr.target;Nn(vr,n.selection.getRng())&&!vr.isDefaultPrevented()&&n.selection.select(Oo)},Qr=vr=>r.hasClass(vr,"mce-preview-object")&&k(vr.firstElementChild)?[vr,vr.firstElementChild]:r.is(vr,"figure.image")?[vr.querySelector("img")]:[vr],ho=vr=>{const Oo=mv(n);return!Oo||vr.getAttribute("data-mce-resize")==="false"||vr===n.getBody()?!1:r.hasClass(vr,"mce-preview-object")&&k(vr.firstElementChild)?du(jt.fromDom(vr.firstElementChild),Oo):du(jt.fromDom(vr),Oo)},na=vr=>zn(vr)?r.create("img",{src:Lr.transparentSrc}):vr.cloneNode(!0),ca=(vr,Oo,Aa)=>{if(k(Aa)){const ps=Qr(vr);ie(ps,us=>{us.style[Oo]||!n.schema.isValid(us.nodeName.toLowerCase(),Oo)?r.setStyle(us,Oo,Aa):r.setAttrib(us,Oo,""+Aa)})}},os=(vr,Oo,Aa)=>{ca(vr,"width",Oo),ca(vr,"height",Aa)},ka=vr=>{let Oo,Aa,ps,us,ml;Oo=vr.screenX-Je,Aa=vr.screenY-at,yn=Oo*Pe[2]+At,$n=Aa*Pe[3]+It,yn=yn<5?5:yn,$n=$n<5?5:$n,(Nr(Z)||zn(Z))&&fT(n)!==!1?ps=!Wr.modifierPressed(vr):ps=Wr.modifierPressed(vr),ps&&(Z1(Oo)>Z1(Aa)?($n=j1(yn*ln),yn=j1($n/ln)):(yn=j1($n/ln),$n=j1(yn*ln))),os(oe,yn,$n),us=Pe.startPos.x+Oo,ml=Pe.startPos.y+Aa,us=us>0?us:0,ml=ml>0?ml:0,r.setStyles(be,{left:us,top:ml,display:"block"}),be.innerHTML=yn+" × "+$n,Pe[2]<0&&oe.clientWidth<=yn&&r.setStyle(oe,"left",Rt+(At-yn)),Pe[3]<0&&oe.clientHeight<=$n&&r.setStyle(oe,"top",Ht+(It-$n)),Oo=B.scrollWidth-nr,Aa=B.scrollHeight-mr,Oo+Aa!==0&&r.setStyles(be,{left:us-Oo,top:ml-Aa}),xn||(mC(n,Z,At,It,"corner-"+Pe.name),xn=!0)},ei=()=>{const vr=xn;xn=!1,vr&&(ca(Z,"width",yn),ca(Z,"height",$n)),r.unbind(f,"mousemove",ka),r.unbind(f,"mouseup",ei),w!==f&&(r.unbind(w,"mousemove",ka),r.unbind(w,"mouseup",ei)),r.remove(oe),r.remove(be),r.remove(Ke),zl(Z),vr&&(Mf(n,Z,yn,$n,"corner-"+Pe.name),r.setAttrib(Z,"style",r.getAttrib(Z,"style"))),n.nodeChanged()},zl=vr=>{ha();const Oo=r.getPos(vr,B),Aa=Oo.x,ps=Oo.y,us=vr.getBoundingClientRect(),ml=us.width||us.right-us.left,th=us.height||us.bottom-us.top;Z!==vr&&(Sr(),Z=vr,yn=$n=0);const cf=n.dispatch("ObjectSelected",{target:vr});ho(vr)&&!cf.isDefaultPrevented()?Ft(m_,(iu,pd)=>{const zo=vs=>{const Gs=Qr(Z)[0];Je=vs.screenX,at=vs.screenY,At=Gs.clientWidth,It=Gs.clientHeight,ln=It/At,Pe=iu,Pe.name=pd,Pe.startPos={x:ml*iu[0]+Aa,y:th*iu[1]+ps},nr=B.scrollWidth,mr=B.scrollHeight,Ke=r.add(B,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),r.setStyles(Ke,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),oe=na(Z),r.addClass(oe,"mce-clonedresizable"),r.setAttrib(oe,"data-mce-bogus","all"),oe.contentEditable="false",r.setStyles(oe,{left:Aa,top:ps,margin:0}),os(oe,ml,th),oe.removeAttribute(Gm),B.appendChild(oe),r.bind(f,"mousemove",ka),r.bind(f,"mouseup",ei),w!==f&&(r.bind(w,"mousemove",ka),r.bind(w,"mouseup",ei)),be=r.add(B,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},At+" × "+It)};let Oa=r.get("mceResizeHandle"+pd);Oa&&r.remove(Oa),Oa=r.add(B,"div",{id:"mceResizeHandle"+pd,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+pd+"-resize; margin:0; padding:0"}),r.bind(Oa,"mousedown",vs=>{vs.stopImmediatePropagation(),vs.preventDefault(),zo(vs)}),iu.elm=Oa,r.setStyles(Oa,{left:ml*iu[0]+Aa-Oa.offsetWidth/2,top:th*iu[1]+ps-Oa.offsetHeight/2})}):Sr(!1)},as=l1(zl,0),Sr=(vr=!0)=>{as.cancel(),ha(),Z&&vr&&Z.removeAttribute(Gm),Ft(m_,(Oo,Aa)=>{const ps=r.get("mceResizeHandle"+Aa);ps&&(r.unbind(ps),r.remove(ps))})},so=(vr,Oo)=>r.isChildOf(vr,Oo),$a=vr=>{if(xn||n.removed||n.composing)return;const Oo=vr.type==="mousedown"?vr.target:e.getNode(),Aa=Ku(jt.fromDom(Oo),tk).map(us=>us.dom).filter(us=>r.isEditable(us.parentElement)||us.nodeName==="IMG"&&r.isEditable(us)).getOrUndefined(),ps=k(Aa)?r.getAttrib(Aa,Gm,"1"):"1";if(ie(r.select(`img[${Gm}],hr[${Gm}]`),us=>{us.removeAttribute(Gm)}),k(Aa)&&so(Aa,B)&&n.hasFocus()){to();const us=e.getStart(!0);if(so(us,Aa)&&so(e.getEnd(!0),Aa)){r.setAttrib(Aa,Gm,ps),as.throttle(Aa);return}}Sr()},ha=()=>{Ft(m_,vr=>{vr.elm&&(r.unbind(vr.elm),delete vr.elm)})},to=()=>{try{n.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};return n.on("init",()=>{to(),n.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",$a),n.on("keyup compositionend",vr=>{Z&&Z.nodeName==="TABLE"&&$a(vr)}),n.on("hide blur",Sr),n.on("contextmenu longpress",er,!0)}),n.on("remove",ha),{isResizable:ho,showResizeRect:zl,hideResizeRect:Sr,updateResizeRect:$a,destroy:()=>{as.cancel(),Z=oe=Ke=null}}},gH=(e,n)=>{n.fold(r=>{e.setStartBefore(r.dom)},(r,f)=>{e.setStart(r.dom,f)},r=>{e.setStartAfter(r.dom)})},g_=(e,n)=>{n.fold(r=>{e.setEndBefore(r.dom)},(r,f)=>{e.setEnd(r.dom,f)},r=>{e.setEndAfter(r.dom)})},nk=(e,n,r)=>{const f=e.document.createRange();return gH(f,n),g_(f,r),f},Co=(e,n,r,f,w)=>{const B=e.document.createRange();return B.setStart(n.dom,r),B.setEnd(f.dom,w),B},Vh=ed.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),rk=(e,n,r)=>n(jt.fromDom(r.startContainer),r.startOffset,jt.fromDom(r.endContainer),r.endOffset),p_=(e,n)=>n.match({domRange:r=>({ltr:J(r),rtl:X.none}),relative:(r,f)=>({ltr:Dt(()=>nk(e,r,f)),rtl:Dt(()=>X.some(nk(e,f,r)))}),exact:(r,f,w,B)=>({ltr:Dt(()=>Co(e,r,f,w,B)),rtl:Dt(()=>X.some(Co(e,w,B,r,f)))})}),Y1=(e,n)=>{const r=n.ltr();return r.collapsed?n.rtl().filter(w=>w.collapsed===!1).map(w=>Vh.rtl(jt.fromDom(w.endContainer),w.endOffset,jt.fromDom(w.startContainer),w.startOffset)).getOrThunk(()=>rk(e,Vh.ltr,r)):rk(e,Vh.ltr,r)},v_=(e,n)=>{const r=p_(e,n);return Y1(e,r)};Vh.ltr,Vh.rtl;const vC={create:(e,n,r,f)=>({start:e,soffset:n,finish:r,foffset:f})},ak=(e,n,r)=>{var f,w;return X.from((w=(f=e.dom).caretPositionFromPoint)===null||w===void 0?void 0:w.call(f,n,r)).bind(B=>{if(B.offsetNode===null)return X.none();const Z=e.dom.createRange();return Z.setStart(B.offsetNode,B.offset),Z.collapse(),X.some(Z)})},cx=(e,n,r)=>{var f,w;return X.from((w=(f=e.dom).caretRangeFromPoint)===null||w===void 0?void 0:w.call(f,n,r))},y_=(()=>document.caretPositionFromPoint?ak:document.caretRangeFromPoint?cx:X.none)(),b_=(e,n,r)=>{const f=jt.fromDom(e.document);return y_(f,n,r).map(w=>vC.create(jt.fromDom(w.startContainer),w.startOffset,jt.fromDom(w.endContainer),w.endOffset))},Fv=ed.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),yC=(e,n,r,f)=>e.fold(n,r,f),sk=e=>e.fold(K,K,K),x_=Fv.before,w_=Fv.on,ux=Fv.after,Hd={before:x_,on:w_,after:ux,cata:yC,getStart:sk},fx=ed.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Na=e=>fx.exact(e.start,e.soffset,e.finish,e.foffset),C_=e=>e.match({domRange:n=>jt.fromDom(n.startContainer),relative:(n,r)=>Hd.getStart(n),exact:(n,r,f,w)=>n}),Uh=fx.domRange,zd=fx.relative,dx=fx.exact,_u=e=>{const n=C_(e);return mm(n)},hx=vC.create,Wh={domRange:Uh,relative:zd,exact:dx,exactFromRange:Na,getWin:_u,range:hx},Bv=(e,n)=>{const r=La(e);return r==="input"?Hd.after(e):Ve(["br","img"],r)?n===0?Hd.before(e):Hd.after(e):Hd.on(e,n)},K1=(e,n)=>{const r=e.fold(Hd.before,Bv,Hd.after),f=n.fold(Hd.before,Bv,Hd.after);return Wh.relative(r,f)},bC=(e,n,r,f)=>{const w=Bv(e,n),B=Bv(r,f);return Wh.relative(w,B)},S_=e=>e.match({domRange:n=>{const r=jt.fromDom(n.startContainer),f=jt.fromDom(n.endContainer);return bC(r,n.startOffset,f,n.endOffset)},relative:K1,exact:bC}),xC=(e,n)=>{const f=(n||document).createDocumentFragment();return ie(e,w=>{f.appendChild(w.dom)}),jt.fromDom(f)},T_=e=>{const n=Wh.getWin(e).dom,r=(w,B,Z,oe)=>Co(n,w,B,Z,oe),f=S_(e);return v_(n,f).match({ltr:r,rtl:r})},ya=(e,n,r)=>b_(e,n,r),Ru=(e,n,r)=>{const f=mm(jt.fromDom(r));return ya(f.dom,e,n).map(w=>{const B=r.createRange();return B.setStart(w.start.dom,w.soffset),B.setEnd(w.finish.dom,w.foffset),B}).getOrUndefined()},Zm=(e,n)=>k(e)&&k(n)&&e.startContainer===n.startContainer&&e.startOffset===n.startOffset&&e.endContainer===n.endContainer&&e.endOffset===n.endOffset,k_=(e,n,r)=>{let f=e;for(;f&&f!==n;){if(r(f))return f;f=f.parentNode}return null},Hv=(e,n,r)=>k_(e,n,r)!==null,_a=(e,n,r)=>Hv(e,n,f=>f.nodeName===r),A_=(e,n)=>bt(e)&&!Hv(e,n,Mu),wC=(e,n,r)=>{const f=n.parentNode;if(f){const w=new es(n,e.getParent(f,e.isBlock)||e.getRoot());let B;for(;B=w[r?"prev":"next"]();)if(Ja(B))return!0}return!1},I=(e,n)=>{var r;return((r=e.previousSibling)===null||r===void 0?void 0:r.nodeName)===n},W=(e,n)=>{let r=n;for(;r&&r!==e;){if(fa(r))return!0;r=r.parentNode}return!1},te=(e,n,r,f,w)=>{const B=e.getRoot(),Z=e.schema.getNonEmptyElements(),oe=w.parentNode;let be,Pe;if(!oe)return X.none();const Ke=e.getParent(oe,e.isBlock)||B;if(f&&Ja(w)&&n&&e.isEmpty(Ke))return X.some(In(oe,e.nodeIndex(w)));const Je=new es(w,Ke);for(;Pe=Je[f?"prev":"next"]();){if(e.getContentEditableParent(Pe)==="false"||A_(Pe,B))return X.none();if(ir(Pe)&&Pe.data.length>0)return _a(Pe,B,"A")?X.none():X.some(In(Pe,f?Pe.data.length:0));if(e.isBlock(Pe)||Z[Pe.nodeName.toLowerCase()])return X.none();be=Pe}return gf(be)?X.none():r&&be?X.some(In(be,0)):X.none()},me=(e,n,r,f)=>{const w=e.getRoot();let B,Z=!1,oe=r?f.startContainer:f.endContainer,be=r?f.startOffset:f.endOffset;const Pe=Gr(oe)&&be===oe.childNodes.length,Ke=e.schema.getNonEmptyElements();let Je=r;if(bt(oe))return X.none();if(Gr(oe)&&be>oe.childNodes.length-1&&(Je=!1),wm(oe)&&(oe=w,be=0),oe===w){if(Je&&(B=oe.childNodes[be>0?be-1:0],B&&(bt(B)||Ke[B.nodeName]||yu(B))))return X.none();if(oe.hasChildNodes()){if(be=Math.min(!Je&&be>0?be-1:be,oe.childNodes.length-1),oe=oe.childNodes[be],be=ir(oe)&&Pe?oe.data.length:0,!n&&oe===w.lastChild&&yu(oe)||W(w,oe)||bt(oe)||qn(oe))return X.none();if(oe.hasChildNodes()&&!yu(oe)){B=oe;const at=new es(oe,w);do{if(fa(B)||bt(B)){Z=!1;break}if(ir(B)&&B.data.length>0){be=Je?0:B.data.length,oe=B,Z=!0;break}if(Ke[B.nodeName.toLowerCase()]&&!Wi(B)){be=e.nodeIndex(B),oe=B.parentNode,Je||be++,Z=!0;break}}while(B=Je?at.next():at.prev())}}}return n&&(ir(oe)&&be===0&&te(e,Pe,n,!0,oe).each(at=>{oe=at.container(),be=at.offset(),Z=!0}),Gr(oe)&&(B=oe.childNodes[be],B||(B=oe.childNodes[be-1]),B&&Ja(B)&&!I(B,"A")&&!wC(e,B,!1)&&!wC(e,B,!0)&&te(e,Pe,n,!0,B).each(at=>{oe=at.container(),be=at.offset(),Z=!0}))),Je&&!n&&ir(oe)&&be===oe.data.length&&te(e,Pe,n,!1,oe).each(at=>{oe=at.container(),be=at.offset(),Z=!0}),Z&&oe?X.some(In(oe,be)):X.none()},Le=(e,n)=>{const r=n.collapsed,f=n.cloneRange(),w=In.fromRangeStart(n);return me(e,r,!0,f).each(B=>{(!r||!In.isAbove(w,B))&&f.setStart(B.container(),B.offset())}),r||me(e,r,!1,f).each(B=>{f.setEnd(B.container(),B.offset())}),r&&f.collapse(!0),Zm(n,f)?X.none():X.some(f)},Ue=(e,n)=>e.splitText(n),nt=e=>{let n=e.startContainer,r=e.startOffset,f=e.endContainer,w=e.endOffset;if(n===f&&ir(n)){if(r>0&&rr){w=w-r;const B=Ue(f,w).previousSibling;n=f=B,w=B.data.length,r=0}else w=0}else if(ir(n)&&r>0&&r0&&w({walk:(B,Z)=>W1(e,B,Z),split:nt,expand:(B,Z={type:"word"})=>{if(Z.type==="word"){const oe=Hh(e,B,[{inline:"span"}]),be=e.createRng();return be.setStart(oe.startContainer,oe.startOffset),be.setEnd(oe.endContainer,oe.endOffset),be}return B},normalize:B=>Le(e,B).fold(ne,Z=>(B.setStart(Z.startContainer,Z.startOffset),B.setEnd(Z.endContainer,Z.endOffset),!0))});xt.compareRanges=Zm,xt.getCaretRangeFromPoint=Ru,xt.getSelectedNode=sw,xt.getNode=nu;const Jt=((e,n)=>{const r=(oe,be)=>{if(!F(be)&&!be.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+be);const Pe=oe.dom;kd(Pe)&&(Pe.style[e]=be+"px")},f=oe=>{const be=n(oe);if(be<=0||be===null){const Pe=ui(oe,e);return parseFloat(Pe)||0}return be},w=f,B=(oe,be)=>le(be,(Pe,Ke)=>{const Je=ui(oe,Ke),at=Je===void 0?0:parseInt(Je,10);return isNaN(at)?Pe:Pe+at},0);return{set:r,get:f,getOuter:w,aggregate:B,max:(oe,be,Pe)=>{const Ke=B(oe,Pe);return be>Ke?be-Ke:0}}})("height",e=>{const n=e.dom;return Td(e)?n.getBoundingClientRect().height:n.offsetHeight}),Tn=e=>Jt.get(e),sr=()=>jt.fromDom(document),Dr=(e,n)=>e.view(n).fold(J([]),f=>{const w=e.owner(f),B=Dr(e,w);return[f].concat(B)}),Rr=(e,n)=>{const r=n.owner(e);return Dr(n,r)};var Kn=Object.freeze({__proto__:null,view:e=>{var n;return(e.dom===document?X.none():X.from((n=e.dom.defaultView)===null||n===void 0?void 0:n.frameElement)).map(jt.fromDom)},owner:e=>mf(e)});const oo=e=>{const n=sr(),r=Jc(n),f=Rr(e,Kn),w=Ch(e),B=pe(f,(Z,oe)=>{const be=Ch(oe);return{left:Z.left+be.left,top:Z.top+be.top}},{left:0,top:0});return bm(B.left+w.left+r.left,B.top+w.top+r.top)},Ro=e=>La(e)==="textarea",Qo=(e,n)=>e.dispatch("ScrollIntoView",n).isDefaultPrevented(),_s=(e,n)=>{e.dispatch("AfterScrollIntoView",n)},Ji=(e,n)=>{const r=zi(e);if(r.length===0||Ro(e))return{element:e,offset:n};if(n{const r=nb(e),f=Tn(e);return{element:e,bottom:r.top+f,height:f,pos:r,cleanup:n}},Bc=(e,n)=>{const r=Ji(e,n),f=jt.fromHtml(''+ve+"");return Ri(r.element,f),si(f,()=>Ua(f))},ap=e=>si(jt.fromDom(e),j),sp=(e,n,r,f)=>{lc(e,(w,B)=>mx(e,n,r,f),r)},CC=(e,n,r,f,w)=>{const B={elm:f.element.dom,alignToTop:w};if(Qo(e,B))return;const Z=Jc(n).top;r(e,n,Z,f,w),_s(e,B)},mx=(e,n,r,f)=>{const w=jt.fromDom(e.getBody()),B=jt.fromDom(e.getDoc());fi(w);const Z=Bc(jt.fromDom(r.startContainer),r.startOffset);CC(e,B,n,Z,f),Z.cleanup()},ls=(e,n,r,f)=>{const w=jt.fromDom(e.getDoc());CC(e,w,r,ap(n),f)},lc=(e,n,r)=>{const f=r.startContainer,w=r.startOffset,B=r.endContainer,Z=r.endOffset;n(jt.fromDom(f),jt.fromDom(B));const oe=e.dom.createRng();oe.setStart(f,w),oe.setEnd(B,Z),e.selection.setRng(r)},_l=(e,n,r,f,w)=>{const B=n.pos;if(f)Hp(B.left,B.top,w);else{const Z=B.top-r+n.height;Hp(-e.getBody().getBoundingClientRect().left,Z,w)}},Lu=(e,n,r,f,w,B)=>{const Z=f+r,oe=w.pos.top,be=w.bottom,Pe=be-oe>=f;oeZ?_l(e,w,f,Pe?B!==!1:B===!0,n):be>Z&&!Pe&&_l(e,w,f,B===!0,n)},au=(e,n,r,f,w)=>{const B=mm(n).dom.innerHeight;Lu(e,n,r,B,f,w)},jm=(e,n,r,f,w)=>{const B=mm(n).dom.innerHeight;Lu(e,n,r,B,f,w);const Z=oo(f.element),oe=K0(window);Z.topoe.bottom&&j0(f.element,w===!0)},Tc=(e,n,r)=>sp(e,au,n,r),SC=(e,n,r)=>ls(e,n,au,r),X1=(e,n,r)=>sp(e,jm,n,r),Vd=(e,n,r)=>ls(e,n,jm,r),Hl=(e,n,r)=>{(e.inline?SC:Vd)(e,n,r)},J1=(e,n,r)=>{(e.inline?Tc:X1)(e,n,r)},ik=(e,n=!1)=>e.dom.focus({preventScroll:n}),lk=e=>{const n=Yu(e).dom;return e.dom===n.activeElement},zv=(e=sr())=>X.from(e.dom.activeElement).map(jt.fromDom),ck=e=>zv(Yu(e)).filter(n=>e.dom.contains(n.dom)),gx=(e,n)=>{const r=Ei(n)?Dc(n).length:zi(n).length+1;return e>r?r:e<0?0:e},uk=e=>Wh.range(e.start,gx(e.soffset,e.start),e.finish,gx(e.foffset,e.finish)),ip=(e,n)=>!vu(n.dom)&&(Dl(e,n)||Ba(e,n)),p$=e=>n=>ip(e,n.start)&&ip(e,n.finish),pH=e=>e.inline||Lr.browser.isFirefox(),vH=e=>Wh.range(jt.fromDom(e.startContainer),e.startOffset,jt.fromDom(e.endContainer),e.endOffset),yH=e=>{const n=e.getSelection();return(!n||n.rangeCount===0?X.none():X.from(n.getRangeAt(0))).map(vH)},bH=e=>{const n=mm(e);return yH(n.dom).filter(p$(e))},v$=(e,n)=>X.from(n).filter(p$(e)).map(uk),y$=e=>{const n=document.createRange();try{return n.setStart(e.start.dom,e.soffset),n.setEnd(e.finish.dom,e.foffset),X.some(n)}catch{return X.none()}},px=e=>{const n=pH(e)?bH(jt.fromDom(e.getBody())):X.none();e.bookmark=n.isSome()?n:e.bookmark},M_=e=>(e.bookmark?e.bookmark:X.none()).bind(r=>v$(jt.fromDom(e.getBody()),r)).bind(y$),xH=e=>{M_(e).each(n=>e.selection.setRng(n))},x$={isEditorUIElement:e=>{const n=e.className.toString();return n.indexOf("tox-")!==-1||n.indexOf("mce-")!==-1}},w$=(e,n)=>(F(n)||(n=0),setTimeout(e,n)),C$=(e,n)=>(F(n)||(n=0),setInterval(e,n)),Ef={setEditorTimeout:(e,n,r)=>w$(()=>{e.removed||n()},r),setEditorInterval:(e,n,r)=>{const f=C$(()=>{e.removed?clearInterval(f):n()},r);return f}},wH=e=>e.type==="nodechange"&&e.selectionChange,CH=(e,n)=>{const r=()=>{n.throttle()};Cs.DOM.bind(document,"mouseup",r),e.on("remove",()=>{Cs.DOM.unbind(document,"mouseup",r)})},SH=(e,n)=>{e.on("mouseup touchend",r=>{n.throttle()})},TH=(e,n)=>{SH(e,n),e.on("keyup NodeChange AfterSetSelectionRange",r=>{wH(r)||px(e)})},fk=e=>{const n=l1(()=>{px(e)},0);e.on("init",()=>{e.inline&&CH(e,n),TH(e,n)}),e.on("remove",()=>{n.cancel()})};let Q1;const dk=Cs.DOM,S$=e=>Gr(e)&&x$.isEditorUIElement(e),hk=e=>{const n=e.classList;return n!==void 0?n.contains("tox-edit-area")||n.contains("tox-edit-area__iframe")||n.contains("mce-content-body"):!1},mk=(e,n)=>{const r=gT(e);return dk.getParent(n,w=>S$(w)||(r?e.dom.is(w,r):!1))!==null},E_=e=>{try{const n=Yu(jt.fromDom(e.getElement()));return zv(n).fold(()=>document.body,r=>r.dom)}catch{return document.body}},kH=(e,n)=>{const r=n.editor;fk(r);const f=(w,B)=>{if(I4(w)&&w.inline!==!0){const Z=jt.fromDom(w.getContainer());B(Z,"tox-edit-focus")}};r.on("focusin",()=>{const w=e.focusedEditor;hk(E_(r))&&f(r,hh),w!==r&&(w&&w.dispatch("blur",{focusedEditor:r}),e.setActive(r),e.focusedEditor=r,r.dispatch("focus",{blurredEditor:w}),r.focus(!0))}),r.on("focusout",()=>{Ef.setEditorTimeout(r,()=>{const w=e.focusedEditor;(!hk(E_(r))||w!==r)&&f(r,mh),!mk(r,E_(r))&&w===r&&(r.dispatch("blur",{focusedEditor:null}),e.focusedEditor=null)})}),Q1||(Q1=w=>{const B=e.activeEditor;B&&$g(w).each(Z=>{const oe=Z;oe.ownerDocument===document&&oe!==document.body&&!mk(B,oe)&&e.focusedEditor===B&&(B.dispatch("blur",{focusedEditor:null}),e.focusedEditor=null)})},dk.bind(document,"focusin",Q1))},AH=(e,n)=>{e.focusedEditor===n.editor&&(e.focusedEditor=null),!e.activeEditor&&Q1&&(dk.unbind(document,"focusin",Q1),Q1=null)},MH=e=>{e.on("AddEditor",Q(kH,e)),e.on("RemoveEditor",Q(AH,e))},EH=(e,n)=>e.dom.getParent(n,r=>e.dom.getContentEditable(r)==="true"),_H=e=>e.collapsed?X.from(nu(e.startContainer,e.startOffset)).map(jt.fromDom):X.none(),RH=(e,n)=>_H(n).bind(r=>bf(r)?X.some(r):Dl(e,r)?X.none():X.some(e)),T$=(e,n)=>{RH(jt.fromDom(e.getBody()),n).bind(r=>Sc(r.dom)).fold(()=>{e.selection.normalize()},r=>e.selection.setRng(r.toRange()))},__=e=>{if(e.setActive)try{e.setActive()}catch{e.focus()}else e.focus()},LH=e=>lk(e)||ck(e).isSome(),DH=e=>k(e.iframeElement)&&lk(jt.fromDom(e.iframeElement)),gk=e=>{const n=e.getBody();return n&&LH(jt.fromDom(n))},k$=e=>{const n=Yu(jt.fromDom(e.getElement()));return zv(n).filter(r=>!hk(r.dom)&&mk(e,r.dom)).isSome()},Vv=e=>e.inline?gk(e):DH(e),A$=e=>Vv(e)||k$(e),$H=e=>{const n=e.selection,r=e.getBody();let f=n.getRng();e.quirks.refreshContentEditable(),k(e.bookmark)&&!Vv(e)&&M_(e).each(B=>{e.selection.setRng(B),f=B});const w=EH(e,n.getNode());if(w&&e.dom.isChildOf(w,r)){__(w),T$(e,f),R_(e);return}e.inline||(Lr.browser.isOpera()||__(r),e.getWin().focus()),(Lr.browser.isFirefox()||e.inline)&&(__(r),T$(e,f)),R_(e)},R_=e=>e.editorManager.setActive(e),OH=(e,n)=>{e.removed||(n?R_(e):$H(e))},M$=(e,n)=>n.collapsed?e.isEditable(n.startContainer):e.isEditable(n.startContainer)&&e.isEditable(n.endContainer),E$=(e,n,r,f,w)=>{const B=r?n.startContainer:n.endContainer,Z=r?n.startOffset:n.endOffset;return X.from(B).map(jt.fromDom).map(oe=>!f||!n.collapsed?Sd(oe,w(oe,Z)).getOr(oe):oe).bind(oe=>sl(oe)?X.some(oe):Rc(oe).filter(sl)).map(oe=>oe.dom).getOr(e)},L_=(e,n,r=!1)=>E$(e,n,!0,r,(f,w)=>Math.min(ll(f),w)),_$=(e,n,r=!1)=>E$(e,n,!1,r,(f,w)=>w>0?w-1:w),D_=(e,n)=>{const r=e;for(;e&&ir(e)&&e.length===0;)e=n?e.nextSibling:e.previousSibling;return e||r},R$=(e,n)=>{if(!n)return e;let r=n.startContainer,f=n.endContainer;const w=n.startOffset,B=n.endOffset;let Z=n.commonAncestorContainer;n.collapsed||(r===f&&B-w<2&&r.hasChildNodes()&&(Z=r.childNodes[w]),ir(r)&&ir(f)&&(r.length===w?r=D_(r.nextSibling,!0):r=r.parentNode,B===0?f=D_(f.previousSibling,!1):f=f.parentNode,r&&r===f&&(Z=r)));const oe=ir(Z)?Z.parentNode:Z;return xl(oe)?oe:e},PH=(e,n,r,f)=>{const w=[],B=e.getRoot(),Z=e.getParent(r||L_(B,n,n.collapsed),e.isBlock),oe=e.getParent(f||_$(B,n,n.collapsed),e.isBlock);if(Z&&Z!==B&&w.push(Z),Z&&oe&&Z!==oe){let be;const Pe=new es(Z,B);for(;(be=Pe.next())&&be!==oe;)e.isBlock(be)&&w.push(be)}return oe&&Z!==oe&&oe!==B&&w.push(oe),w},IH=(e,n,r)=>X.from(n).bind(f=>X.from(f.parentNode).map(w=>{const B=e.nodeIndex(f),Z=e.createRng();return Z.setStart(w,B),Z.setEnd(w,B+1),r&&(rC(e,Z,f,!0),rC(e,Z,f,!1)),Z})),$_=(e,n)=>Fe(n,r=>{const f=e.dispatch("GetSelectionRange",{range:r});return f.range!==r?f.range:r}),NH=e=>La(e)==="img"?1:Wp(e).fold(()=>zi(e).length,n=>n.length),FH=e=>Wp(e).filter(n=>n.trim().length!==0||n.indexOf(Da)>-1).isSome(),BH=e=>Ps(e)&&il(e,"contenteditable")==="false",HH=["img","br"],L$=e=>FH(e)||Ve(HH,La(e))||BH(e),zH=e=>bl(e,L$),VH=e=>UH(e,L$),UH=(e,n)=>{const r=f=>{const w=zi(f);for(let B=w.length-1;B>=0;B--){const Z=w[B];if(n(Z))return X.some(Z);const oe=r(Z);if(oe.isSome())return oe}return X.none()};return r(e)},D$="[data-mce-autocompleter]",WH=(e,n)=>{if($$(jt.fromDom(e.getBody())).isNone()){const r=jt.fromHtml('',e.getDoc());di(r,jt.fromDom(n.extractContents())),n.insertNode(r.dom),Rc(r).each(f=>f.dom.normalize()),VH(r).map(f=>{e.selection.setCursorLocation(f.dom,NH(f))})}},GH=e=>Ku(e,D$),$$=e=>Jl(e,D$),ZH=(e,n)=>$$(n).each(r=>{const f=e.selection.getBookmark();Xu(r),e.selection.moveToBookmark(f)}),jH={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},pk=(e,n,r)=>{const f=r?"lastChild":"firstChild",w=r?"prev":"next";if(e[f])return e[f];if(e!==n){let B=e[w];if(B)return B;for(let Z=e.parent;Z&&Z!==n;Z=Z.parent)if(B=Z[w],B)return B}},YH=e=>{var n;const r=(n=e.value)!==null&&n!==void 0?n:"";if(!As(r))return!1;const f=e.parent;return!(f&&(f.name!=="span"||f.attr("style"))&&/^[ ]+$/.test(r))},po=e=>{const n=e.name==="a"&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||n};class Hc{static create(n,r){const f=new Hc(n,jH[n]||1);return r&&Ft(r,(w,B)=>{f.attr(B,w)}),f}constructor(n,r){this.name=n,this.type=r,r===1&&(this.attributes=[],this.attributes.map={})}replace(n){const r=this;return n.parent&&n.remove(),r.insert(n,r),r.remove(),r}attr(n,r){const f=this;if(!C(n))return k(n)&&Ft(n,(B,Z)=>{f.attr(Z,B)}),f;const w=f.attributes;if(w){if(r!==void 0){if(r===null){if(n in w.map){delete w.map[n];let B=w.length;for(;B--;)if(w[B].name===n)return w.splice(B,1),f}return f}if(n in w.map){let B=w.length;for(;B--;)if(w[B].name===n){w[B].value=r;break}}else w.push({name:n,value:r});return w.map[n]=r,f}return w.map[n]}}clone(){const n=this,r=new Hc(n.name,n.type),f=n.attributes;if(f){const w=[];w.map={};for(let B=0,Z=f.length;BC(e.nodeValue)&&e.nodeValue.includes(ve),vk=e=>`${e.length===0?"":`${Fe(e,n=>`[${n}]`).join(",")},`}[data-mce-bogus="all"]`,KH=(e,n)=>n.querySelectorAll(vk(e)),I$=e=>document.createTreeWalker(e,NodeFilter.SHOW_COMMENT,n=>P$(n)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),N$=e=>document.createTreeWalker(e,NodeFilter.SHOW_TEXT,n=>{if(P$(n)){const r=n.parentNode;return r&<(O$,r.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}else return NodeFilter.FILTER_SKIP}),XH=e=>I$(e).nextNode()!==null,JH=e=>N$(e).nextNode()!==null,yk=(e,n)=>n.querySelector(vk(e))!==null,F$=(e,n)=>{ie(KH(e,n),r=>{const f=jt.fromDom(r);il(f,"data-mce-bogus")==="all"?Ua(f):ie(e,w=>{Gu(f,w)&&Xs(f,w)})})},QH=e=>{let n=e.nextNode();for(;n!==null;)n.nodeValue=null,n=e.nextNode()},qH=P(QH,I$),Ho=P(QH,N$),B$=(e,n)=>{const r=[{condition:Q(yk,n),action:Q(F$,n)},{condition:XH,action:qH},{condition:JH,action:Ho}];let f=e,w=!1;return ie(r,({condition:B,action:Z})=>{B(f)&&(w||(f=e.cloneNode(!0),w=!0),Z(f))}),f},jo=e=>{const n=Vi(e,"[data-mce-bogus]");ie(n,r=>{il(r,"data-mce-bogus")==="all"?Ua(r):vf(r)?(Ri(r,jt.fromText(Cm)),Ua(r)):Xu(r)})},O_=e=>{const n=Vi(e,"input");ie(n,r=>{Xs(r,"name")})},cee=(e,n)=>{const r=ac(e),f=new RegExp(`^(<${r}[^>]*>( | |\\s| |
    |)<\\/${r}>[\r -]*|
    [\r -]*)$`);return n.replace(f,"")},uee=(e,n)=>{const r=e.getDoc(),f=Yu(jt.fromDom(e.getBody())),w=jt.fromTag("div",r);ws(w,"data-mce-bogus","all"),$l(w,{position:"fixed",left:"-9999999px",top:"0"}),bh(w,n.innerHTML),jo(w),O_(w);const B=_3(f);di(B,w);const Z=_e(w.dom.innerText);return Ua(w),Z},ez=(e,n,r)=>{let f;return n.format==="raw"?f=ur.trim(_e(B$(r,e.serializer.getTempAttrs()).innerHTML)):n.format==="text"?f=uee(e,r):n.format==="tree"?f=e.serializer.serialize(r,n):f=cee(e,e.serializer.serialize(r,n)),n.format!=="text"&&!Li(jt.fromDom(r))&&C(f)?ur.trim(f):f},fee=(e,n)=>X.from(e.getBody()).fold(J(n.format==="tree"?new Hc("body",11):""),r=>ez(e,n,r)),tz=ur.makeMap,H$=e=>{const n=[];e=e||{};const r=e.indent,f=tz(e.indent_before||""),w=tz(e.indent_after||""),B=km.getEncodeFunc(e.entity_encoding||"raw",e.entities),Z=e.element_format!=="xhtml";return{start:(oe,be,Pe)=>{if(r&&f[oe]&&n.length>0){const Ke=n[n.length-1];Ke.length>0&&Ke!==` -`&&n.push(` -`)}if(n.push("<",oe),be)for(let Ke=0,Je=be.length;Ke0){const Ke=n[n.length-1];Ke.length>0&&Ke!==` -`&&n.push(` -`)}},end:oe=>{let be;n.push(""),r&&w[oe]&&n.length>0&&(be=n[n.length-1],be.length>0&&be!==` -`&&n.push(` -`))},text:(oe,be)=>{oe.length>0&&(n[n.length]=be?oe:B(oe))},cdata:oe=>{n.push("")},comment:oe=>{n.push("")},pi:(oe,be)=>{be?n.push(""):n.push(""),r&&n.push(` -`)},doctype:oe=>{n.push("",r?` -`:"")},reset:()=>{n.length=0},getContent:()=>n.join("").replace(/\n$/,"")}},Uv=(e={},n=_h())=>{const r=H$(e);return e.validate="validate"in e?e.validate:!0,{serialize:w=>{const B=e.validate,Z={3:be=>{var Pe;r.text((Pe=be.value)!==null&&Pe!==void 0?Pe:"",be.raw)},8:be=>{var Pe;r.comment((Pe=be.value)!==null&&Pe!==void 0?Pe:"")},7:be=>{r.pi(be.name,be.value)},10:be=>{var Pe;r.doctype((Pe=be.value)!==null&&Pe!==void 0?Pe:"")},4:be=>{var Pe;r.cdata((Pe=be.value)!==null&&Pe!==void 0?Pe:"")},11:be=>{let Pe=be;if(Pe=Pe.firstChild)do oe(Pe);while(Pe=Pe.next)}};r.reset();const oe=be=>{var Pe;const Ke=Z[be.type];if(Ke)Ke(be);else{const Je=be.name,at=Je in n.getVoidElements();let Rt=be.attributes;if(B&&Rt&&Rt.length>1){const Ht=[];Ht.map={};const At=n.getElementRule(be.name);if(At){for(let It=0,ln=At.attributesOrder.length;It{ko.add(n)});const z$=["font","text-decoration","text-emphasis"],P_=(e,n)=>Yt(e.parseStyle(e.getAttrib(n,"style"))),nz=e=>ko.has(e),TC=(e,n)=>We(P_(e,n),r=>!nz(r)),V$=e=>ue(e,n=>Oe(z$,r=>wr(n,r))),rz=(e,n,r)=>{const f=P_(e,n),w=P_(e,r),B=Z=>{var oe,be;const Pe=(oe=e.getStyle(n,Z))!==null&&oe!==void 0?oe:"",Ke=(be=e.getStyle(r,Z))!==null&&be!==void 0?be:"";return St(Pe)&&St(Ke)&&Pe!==Ke};return Oe(f,Z=>{const oe=be=>Oe(be,Pe=>Pe===Z);if(!oe(w)&&oe(z$)){const be=V$(w);return Oe(be,B)}else return B(Z)})},U$=(e,n,r)=>X.from(r.container()).filter(ir).exists(f=>{const w=e?0:-1;return n(f.data.charAt(r.offset()+w))}),I_=Q(U$,!0,Lv),bk=Q(U$,!1,Lv),oz=e=>{const n=e.container();return ir(n)&&(n.data.length===0||Ae(n.data)&&rp.isBookmarkNode(n.parentNode))},q1=(e,n)=>r=>M1(e?0:-1,r).filter(n).isSome(),az=e=>ul(e)&&ui(jt.fromDom(e),"display")==="block",W$=e=>fa(e)&&!Sh(e),sz=q1(!0,az),iz=q1(!1,az),kC=q1(!0,zs),vx=q1(!1,zs),G$=q1(!0,yu),qo=q1(!1,yu),lp=q1(!0,W$),Gh=q1(!1,W$),Z$=e=>e.slice(0,-1),j$=(e,n,r)=>Dl(n,e)?Z$(N0(e,f=>r(f)||Ba(f,n))):[],N_=(e,n)=>j$(e,n,ne),Ym=(e,n)=>[e].concat(N_(e,n)),xk=(e,n,r)=>Tf(e,n,r,oz),lz=e=>n=>e.isBlock(La(n)),F_=(e,n,r)=>de(Ym(jt.fromDom(n.container()),e),lz(r)),Y$=(e,n,r,f)=>xk(e,n.dom,r).forall(w=>F_(n,r,f).fold(()=>!td(w,r,n.dom),B=>!td(w,r,n.dom)&&Dl(B,jt.fromDom(w.container())))),K$=(e,n,r,f)=>F_(n,r,f).fold(()=>xk(e,n.dom,r).forall(w=>!td(w,r,n.dom)),w=>xk(e,w.dom,r).isNone()),B_=Q(K$,!1),X$=Q(K$,!0),cz=Q(Y$,!1),uz=Q(Y$,!0),fz=e=>Gb(e).exists(vf),wk=(e,n,r,f)=>{const w=ue(Ym(jt.fromDom(r.container()),n),Z=>f.isBlock(La(Z))),B=gt(w).getOr(n);return dl(e,B.dom,r).filter(fz)},AC=(e,n,r)=>Gb(n).exists(vf)||wk(!0,e,n,r).isSome(),MC=(e,n,r)=>Z4(n).exists(vf)||wk(!1,e,n,r).isSome(),dz=Q(wk,!1),hz=Q(wk,!0),J$=e=>In.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd(),Q$=(e,n,r)=>{const f=ue(Ym(jt.fromDom(n.container()),e),w=>r.isBlock(La(w)));return gt(f).getOr(e)},q$=(e,n,r)=>J$(n)?bk(n):bk(n)||Nc(Q$(e,n,r).dom,n).exists(bk),e8=(e,n,r)=>J$(n)?I_(n):I_(n)||ic(Q$(e,n,r).dom,n).exists(I_),mz=e=>Ve(["pre","pre-wrap"],e),H_=e=>Gb(e).bind(n=>Xc(n,sl)).exists(n=>mz(ui(n,"white-space"))),t8=(e,n)=>Nc(e.dom,n).isNone(),gz=(e,n)=>ic(e.dom,n).isNone(),pz=(e,n,r)=>t8(e,n)||gz(e,n)||B_(e,n,r)||X$(e,n,r)||MC(e,n,r)||AC(e,n,r),ey=e=>k(e)&&fa(e)&&Im(e),n8=(e,n)=>r=>ey(new es(r,e)[n]()),r8=(e,n)=>{const r=ic(e.dom,n).getOr(n),f=n8(e.dom,"next");return n.isAtEnd()&&(f(n.container())||f(r.container()))},vz=(e,n)=>{const r=Nc(e.dom,n).getOr(n),f=n8(e.dom,"prev");return n.isAtStart()&&(f(n.container())||f(r.container()))},o8=(e,n,r)=>H_(n)?!1:pz(e,n,r)||q$(e,n,r)||e8(e,n,r),yx=(e,n,r)=>H_(n)?!1:B_(e,n,r)||cz(e,n,r)||MC(e,n,r)||q$(e,n,r)||vz(e,n),a8=e=>{const n=e.container(),r=e.offset();return ir(n)&&rH_(n)?!1:X$(e,n,r)||uz(e,n,r)||AC(e,n,r)||e8(e,n,r)||r8(e,n),Ck=(e,n,r)=>yx(e,n,r)||bx(e,a8(n),r),zc=(e,n)=>Jb(e.charAt(n)),s8=(e,n)=>Lv(e.charAt(n)),yz=e=>{const n=e.container();return ir(n)&&or(n.data,Da)},bz=e=>{const n=e.split("");return Fe(n,(r,f)=>Jb(r)&&f>0&&f{const w=n.data,B=In(n,0);return!r&&zc(w,0)&&!Ck(e,B,f)?(n.data=" "+w.slice(1),!0):r&&s8(w,0)&&yx(e,B,f)?(n.data=Da+w.slice(1),!0):!1},xz=e=>{const n=e.data,r=bz(n);return r!==n?(e.data=r,!0):!1},Wv=(e,n,r,f)=>{const w=n.data,B=In(n,w.length-1);return!r&&zc(w,w.length-1)&&!Ck(e,B,f)?(n.data=w.slice(0,-1)+" ",!0):r&&s8(w,w.length-1)&&bx(e,B,f)?(n.data=w.slice(0,-1)+Da,!0):!1},wz=(e,n,r)=>{const f=n.container();if(!ir(f))return X.none();if(yz(n)){const w=i8(e,f,!1,r)||xz(f)||Wv(e,f,!1,r);return Bo(w,n)}else if(Ck(e,n,r)){const w=i8(e,f,!0,r)||Wv(e,f,!0,r);return Bo(w,n)}else return X.none()},Cz=e=>{const n=jt.fromDom(e.getBody());e.selection.isCollapsed()&&wz(n,In.fromRangeStart(e.selection.getRng()),e.schema).each(r=>{e.selection.setRng(r.toRange())})},Ws=(e,n,r,f)=>{if(r===0)return;const w=jt.fromDom(e),B=Js(w,Pe=>f.isBlock(La(Pe))).getOr(w),Z=e.data.slice(n,n+r),oe=n+r>=e.data.length&&bx(B,In(e,e.data.length),f),be=n===0&&yx(B,In(e,0),f);e.replaceData(n,r,Ii(Z,4,be,oe))},ty=(e,n,r)=>{const f=e.data.slice(n),w=f.length-He(f).length;Ws(e,n,w,r)},l8=(e,n,r)=>{const f=e.data.slice(0,n),w=f.length-De(f).length;Ws(e,n-w,w,r)},hl=(e,n,r,f,w=!0)=>{const B=De(e.data).length,Z=w?e:n,oe=w?n:e;return w?Z.appendData(oe.data):Z.insertData(0,oe.data),Ua(jt.fromDom(oe)),f&&ty(Z,B,r),Z},Sz=(e,n)=>{const r=e.container(),f=e.offset();return!In.isTextPosition(e)&&r===n.parentNode&&f>In.before(n).offset()},Tz=(e,n)=>Sz(n,e)?In(n.container(),n.offset()-1):n,cp=e=>ir(e)?In(e,0):In.before(e),Qa=e=>ir(e)?In(e,e.data.length):In.after(e),z_=e=>fo(e.previousSibling)?X.some(Qa(e.previousSibling)):e.previousSibling?kf(e.previousSibling):X.none(),V_=e=>fo(e.nextSibling)?X.some(cp(e.nextSibling)):e.nextSibling?Sc(e.nextSibling):X.none(),kz=(e,n)=>X.from(n.previousSibling?n.previousSibling:n.parentNode).bind(r=>Nc(e,In.before(r))).orThunk(()=>ic(e,In.after(n))),Az=(e,n)=>ic(e,In.after(n)).orThunk(()=>Nc(e,In.before(n))),Mz=(e,n)=>z_(n).orThunk(()=>V_(n)).orThunk(()=>kz(e,n)),of=(e,n)=>V_(n).orThunk(()=>z_(n)).orThunk(()=>Az(e,n)),Zh=(e,n,r)=>e?of(n,r):Mz(n,r),Ez=(e,n,r)=>Zh(e,n,r).map(Q(Tz,r)),Sk=(e,n,r)=>{r.fold(()=>{e.focus()},f=>{e.selection.setRng(f.toRange(),n)})},U_=e=>n=>n.dom===e,_z=(e,n)=>n&<(e.schema.getBlockElements(),La(n)),Rz=(e,n)=>{if(Za(e)){const r=jt.fromHtml('
    ');return n?ie(zi(e),f=>{H1(f)||Ua(f)}):Ad(e),di(e,r),X.some(In.before(r.dom))}else return X.none()},EC=(e,n,r,f)=>{const w=hu(e).filter(Ei),B=Lg(e).filter(Ei);return Ua(e),qi(w,B,n,(Z,oe,be)=>{const Pe=Z.dom,Ke=oe.dom,Je=Pe.data.length;return hl(Pe,Ke,r,f),be.container()===Ke?In(Pe,Je):be}).orThunk(()=>(f&&(w.each(Z=>l8(Z.dom,Z.dom.length,r)),B.each(Z=>ty(Z.dom,0,r))),n))},Tk=(e,n)=>lt(e.schema.getTextInlineElements(),La(n)),up=(e,n,r,f=!0,w=!1)=>{const B=Ez(n,e.getBody(),r.dom),Z=Js(r,Q(_z,e),U_(e.getBody())),oe=EC(r,B,e.schema,Tk(e,r));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):Z.bind(be=>Rz(be,w)).fold(()=>{f&&Sk(e,n,oe)},be=>{f&&Sk(e,n,X.some(be))})},Lz=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,jh=e=>Lz.test(e),ny=(e,n)=>du(jt.fromDom(n),x4(e))&&!pa(e.schema,n)&&e.dom.isEditable(n),c8=e=>{var n;return Cs.DOM.getStyle(e,"direction",!0)==="rtl"||jh((n=e.textContent)!==null&&n!==void 0?n:"")},sd=(e,n,r)=>ue(Cs.DOM.getParents(r.container(),"*",n),e),Ud=(e,n,r)=>{const f=sd(e,n,r);return X.from(f[f.length-1])},Wd=(e,n,r)=>{const f=Ph(n,e),w=Ph(r,e);return k(f)&&f===w},Dz=e=>mn(e)||An(e),Ta=(e,n)=>{const r=n.container(),f=n.offset();return e?yt(r)?ir(r.nextSibling)?In(r.nextSibling,0):In.after(r):mn(n)?In(r,f+1):n:yt(r)?ir(r.previousSibling)?In(r.previousSibling,r.previousSibling.data.length):In.before(r):An(n)?In(r,f-1):n},ry=Q(Ta,!0),_C=Q(Ta,!1),W_=(e,n)=>{const r=f=>f.stopImmediatePropagation();e.on("beforeinput input",r,!0),e.getDoc().execCommand(n),e.off("beforeinput input",r)},G_=e=>{e.execCommand("delete")},RC=e=>W_(e,"Delete"),$z=e=>W_(e,"ForwardDelete"),Z_=e=>n=>Ms(Rc(n),e,Ba),Oz=e=>En(e)||yf(e),LC=(e,n)=>Dl(e,n)?Xc(n,Oz,Z_(e)):X.none(),kk=(e,n=!0)=>{e.dom.isEmpty(e.getBody())&&e.setContent("",{no_selection:!n})},Ak=(e,n,r)=>Es(Sc(r),kf(r),(f,w)=>{const B=Ta(!0,f),Z=Ta(!1,w),oe=Ta(!1,n);return e?ic(r,oe).exists(be=>be.isEqual(Z)&&n.isEqual(B)):Nc(r,oe).exists(be=>be.isEqual(B)&&n.isEqual(Z))}).getOr(!0),j_=e=>(P2(e)?hu(e):Xl(e)).bind(j_).orThunk(()=>X.some(e)),DC=(e,n,r,f=!0)=>{var w;n.deleteContents();const B=j_(r).getOr(r),Z=jt.fromDom((w=e.dom.getParent(B.dom,e.dom.isBlock))!==null&&w!==void 0?w:r.dom);if(Z.dom===e.getBody()?kk(e,f):Za(Z)&&(U(Z),f&&e.selection.setCursorLocation(Z.dom,0)),!Ba(r,Z)){const oe=Ms(Rc(Z),r)?[]:Jy(Z);ie(oe.concat(zi(r)),be=>{!Ba(be,Z)&&!Dl(be,Z)&&Za(be)&&Ua(be)})}},Pz=(e,n,r)=>Js(e,n,r).isSome(),Iz=(e,n)=>H0(e,n).isSome(),u8=(e,n)=>bl(e,n).isSome(),Nz=e=>n=>Ba(e,n),Y_=e=>Vi(e,"td,th"),K_=(e,n)=>Fh(jt.fromDom(e),n),Fz=e=>Es(e.startTable,e.endTable,(n,r)=>{const f=u8(n,B=>Ba(B,r)),w=u8(r,B=>Ba(B,n));return!f&&!w?e:{...e,startTable:f?X.none():e.startTable,endTable:w?X.none():e.endTable,isSameTable:!1,isMultiTable:!1}}).getOr(e),Bz=e=>Fz(e),f8=(e,n)=>{const r=K_(e.startContainer,n),f=K_(e.endContainer,n),w=r.isSome(),B=f.isSome(),Z=Es(r,f,Ba).getOr(!1);return Bz({startTable:r,endTable:f,isStartInTable:w,isEndInTable:B,isSameTable:Z,isMultiTable:!Z&&w&&B})},Mk=(e,n)=>({start:e,end:n}),Hz=(e,n,r)=>({rng:e,table:n,cells:r}),$C=ed.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),OC=(e,n)=>Ku(jt.fromDom(e),"td,th",n),d8=e=>!Ba(e.start,e.end),X_=(e,n)=>Fh(e.start,n).bind(r=>Fh(e.end,n).bind(f=>Bo(Ba(r,f),r))),_f=(e,n)=>!d8(e)&&X_(e,n).exists(r=>{const f=r.dom.rows;return f.length===1&&f[0].cells.length===1}),zz=(e,n)=>{const r=OC(e.startContainer,n),f=OC(e.endContainer,n);return Es(r,f,Mk)},h8=e=>n=>Fh(n,e).bind(r=>ut(Y_(r)).map(f=>Mk(n,f))),J_=e=>n=>Fh(n,e).bind(r=>gt(Y_(r)).map(f=>Mk(f,n))),PC=e=>n=>X_(n,e).map(r=>Hz(n,r,Y_(r))),Q_=(e,n,r,f)=>{if(r.collapsed||!e.forall(d8))return X.none();if(n.isSameTable){const w=e.bind(PC(f));return X.some({start:w,end:w})}else{const w=OC(r.startContainer,f),B=OC(r.endContainer,f),Z=w.bind(h8(f)).bind(PC(f)),oe=B.bind(J_(f)).bind(PC(f));return X.some({start:Z,end:oe})}},q_=(e,n)=>Me(e,r=>Ba(r,n)),e5=e=>Es(q_(e.cells,e.rng.start),q_(e.cells,e.rng.end),(n,r)=>e.cells.slice(n,r+1)),Vz=(e,n,r)=>e.exists(f=>_f(f,r)&&nC(f.start,n)),Ek=(e,n)=>{const{startTable:r,endTable:f}=n,w=e.cloneRange();return r.each(B=>w.setStartAfter(B.dom)),f.each(B=>w.setEndBefore(B.dom)),w},m8=(e,n,r,f)=>Q_(e,n,r,f).bind(({start:w,end:B})=>w.or(B)).bind(w=>{const{isSameTable:B}=n,Z=e5(w).getOr([]);if(B&&w.cells.length===Z.length)return X.some($C.fullTable(w.table));if(Z.length>0){if(B)return X.some($C.partialTable(Z,X.none()));{const oe=Ek(r,n);return X.some($C.partialTable(Z,X.some({...n,rng:oe})))}}else return X.none()}),Gd=(e,n,r,f)=>Q_(e,n,r,f).bind(({start:w,end:B})=>{const Z=w.bind(e5).getOr([]),oe=B.bind(e5).getOr([]);if(Z.length>0&&oe.length>0){const be=Ek(r,n);return X.some($C.multiTable(Z,oe,be))}else return X.none()}),Uz=(e,n)=>{const r=Nz(e),f=zz(n,r),w=f8(n,r);return Vz(f,n,r)?f.map(B=>$C.singleCellTable(n,B.start)):w.isMultiTable?Gd(f,w,n,r):m8(f,w,n,r)},g8=e=>ie(e,n=>{Xs(n,"contenteditable"),U(n)}),dee=(e,n)=>X.from(e.dom.getParent(n,e.dom.isBlock)).map(jt.fromDom),t5=(e,n,r)=>{r.each(f=>{n?Ua(f):(U(f),e.selection.setCursorLocation(f.dom,0))})},n5=(e,n,r,f)=>{const w=r.cloneRange();f?(w.setStart(r.startContainer,r.startOffset),w.setEndAfter(n.dom.lastChild)):(w.setStartBefore(n.dom.firstChild),w.setEnd(r.endContainer,r.endOffset)),af(e,w,n,!1).each(B=>B())},oy=e=>{const n=Dv(e),r=jt.fromDom(e.selection.getNode());Bg(r.dom)&&Za(r)?e.selection.setCursorLocation(r.dom,0):e.selection.collapse(!0),n.length>1&&Oe(n,f=>Ba(f,r))&&ws(r,"data-mce-selected","1")},p8=(e,n,r)=>X.some(()=>{const f=e.selection.getRng(),w=r.bind(({rng:B,isStartInTable:Z})=>{const oe=dee(e,Z?B.endContainer:B.startContainer);B.deleteContents(),t5(e,Z,oe.filter(Za));const be=Z?n[0]:n[n.length-1];return n5(e,be,f,Z),Za(be)?X.none():X.some(Z?n.slice(1):n.slice(0,-1))}).getOr(n);g8(w),oy(e)}),xx=(e,n,r,f)=>X.some(()=>{const w=e.selection.getRng(),B=n[0],Z=r[r.length-1];n5(e,B,w,!0),n5(e,Z,w,!1);const oe=Za(B)?n:n.slice(1),be=Za(Z)?r:r.slice(0,-1);g8(oe.concat(be)),f.deleteContents(),oy(e)}),af=(e,n,r,f=!0)=>X.some(()=>{DC(e,n,r,f)}),IC=(e,n)=>X.some(()=>up(e,!1,n)),xs=(e,n,r)=>Uz(n,r).bind(f=>f.fold(Q(af,e),Q(IC,e),Q(p8,e),Q(xx,e))),NC=(e,n)=>wx(e,n),v8=(e,n,r,f)=>FC(n,f).fold(()=>xs(e,n,r),w=>NC(e,w)),y8=(e,n,r)=>{const f=jt.fromDom(e.getBody()),w=e.selection.getRng();return r.length!==0?p8(e,r,X.none()):v8(e,f,w,n)},_k=(e,n)=>de(Ym(n,e),bc),FC=(e,n)=>de(Ym(n,e),Yc("caption")),r5=(e,n,r,f,w)=>Nh(r,e.getBody(),w).bind(B=>_k(n,jt.fromDom(B.getNode())).bind(Z=>Ba(Z,f)?X.none():X.some(j))),wx=(e,n)=>X.some(()=>{U(n),e.selection.setCursorLocation(n.dom,0)}),Rk=(e,n,r,f)=>Sc(e.dom).bind(w=>kf(e.dom).map(B=>n?r.isEqual(w)&&f.isEqual(B):r.isEqual(B)&&f.isEqual(w))).getOr(!0),o5=(e,n)=>wx(e,n),b8=(e,n,r)=>FC(e,jt.fromDom(r.getNode())).fold(()=>X.some(j),f=>Bo(!Ba(f,n),j)),x8=(e,n,r,f,w)=>Nh(r,e.getBody(),w).fold(()=>X.some(j),B=>Rk(f,r,w,B)?o5(e,f):b8(n,f,B)),w8=(e,n,r,f)=>{const w=In.fromRangeStart(e.selection.getRng());return _k(r,f).bind(B=>Za(B)?wx(e,B):r5(e,r,n,B,w))},C8=(e,n,r,f)=>{const w=In.fromRangeStart(e.selection.getRng());return Za(f)?wx(e,f):x8(e,r,n,f,w)},a5=(e,n)=>e?G$(n):qo(n),Cx=(e,n)=>{const r=In.fromRangeStart(e.selection.getRng());return a5(n,r)||dl(n,e.getBody(),r).exists(f=>a5(n,f))},S8=(e,n,r)=>{const f=jt.fromDom(e.getBody());return FC(f,r).fold(()=>w8(e,n,f,r).orThunk(()=>Bo(Cx(e,n),j)),w=>C8(e,n,f,w))},BC=(e,n)=>{const r=jt.fromDom(e.selection.getStart(!0)),f=Dv(e);return e.selection.isCollapsed()&&f.length===0?S8(e,n,r):y8(e,r,f)},ay=(e,n)=>{let r=n;for(;r&&r!==e;){if(wl(r)||fa(r))return r;r=r.parentNode}return null},Wz=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],T8=ur.each,Lk=e=>{const n=e.dom,r=new Set(e.serializer.getTempAttrs()),f=(B,Z)=>{if(B.nodeName!==Z.nodeName||B.nodeType!==Z.nodeType)return!1;const oe=Pe=>{const Ke={};return T8(n.getAttribs(Pe),Je=>{const at=Je.nodeName.toLowerCase();at!=="style"&&!w(at)&&(Ke[at]=n.getAttrib(Pe,at))}),Ke},be=(Pe,Ke)=>{for(const Je in Pe)if(lt(Pe,Je)){const at=Ke[Je];if(N(at)||Pe[Je]!==at)return!1;delete Ke[Je]}for(const Je in Ke)if(lt(Ke,Je))return!1;return!0};return Gr(B)&&Gr(Z)&&(!be(oe(B),oe(Z))||!be(n.parseStyle(n.getAttrib(B,"style")),n.parseStyle(n.getAttrib(Z,"style"))))?!1:!Eu(B)&&!Eu(Z)},w=B=>Oe(Wz,Z=>wr(B,Z))||r.has(B);return{compare:f,isAttributeInternal:w}},s5=e=>["h1","h2","h3","h4","h5","h6"].includes(e.name),Dk=e=>e.name==="summary",k8=(e,n)=>{let r=e;for(;r=r.walk();)n(r)},i5=(e,n,r,f)=>{const w=r.name;for(let B=0,Z=e.length;B{const f={nodes:{},attributes:{}};return r.firstChild&&k8(r,w=>{i5(e,n,w,f)}),f},l5=(e,n)=>{const r=(f,w)=>{Ft(f,B=>{const Z=tt(B.nodes);ie(B.filter.callbacks,oe=>{for(let be=Z.length-1;be>=0;be--){const Pe=Z[be];(!(w?Pe.attr(B.filter.name)!==void 0:Pe.name===B.filter.name)||M(Pe.parent))&&Z.splice(be,1)}Z.length>0&&oe(Z,B.filter.name,n)})})};r(e.nodes,!1),r(e.attributes,!0)},c5=(e,n,r,f={})=>{const w=A8(e,n,r);l5(w,f)},$k=(e,n,r,f)=>{if((e.pad_empty_with_br||n.insert)&&r(f)){const B=new Hc("br",1);n.insert&&B.attr("data-mce-bogus","1"),f.empty().append(B)}else f.empty().append(new Hc("#text",3)).value=Da},M8=e=>{var n;return u5(e,"#text")&&((n=e==null?void 0:e.firstChild)===null||n===void 0?void 0:n.value)===Da},u5=(e,n)=>{const r=e==null?void 0:e.firstChild;return k(r)&&r===e.lastChild&&r.name===n},E8=(e,n)=>{const r=e.getElementRule(n.name);return(r==null?void 0:r.paddEmpty)===!0},Sx=(e,n,r,f)=>f.isEmpty(n,r,w=>E8(e,w)),f5=(e,n)=>k(e)&&(n(e)||e.name==="br"),_8=e=>{let n;for(let r=e;r;r=r.parent){const f=r.attr("contenteditable");if(f==="false")break;f==="true"&&(n=r)}return X.from(n)},Ok=(e,n,r=e.parent)=>{if(n.getSpecialElements()[e.name])e.empty().remove();else{const f=e.children();for(const w of f)r&&!n.isValidChild(r.name,w.name)&&Ok(w,n,r);e.unwrap()}},Pk=(e,n,r,f=j)=>{const w=n.getTextBlockElements(),B=n.getNonEmptyElements(),Z=n.getWhitespaceElements(),oe=ur.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),be=new Set,Pe=Ke=>Ke!==r&&!oe[Ke.name];for(let Ke=0;Ke1)if(Ik(n,Je,at))Ok(Je,n);else{At.reverse(),Rt=At[0].clone(),f(Rt);let It=Rt;for(let ln=0;ln0?(Ht=At[ln].clone(),f(Ht),It.append(Ht)):Ht=It;for(let xn=At[ln].firstChild;xn&&xn!==At[ln+1];){const yn=xn.next;Ht.append(xn),xn=yn}It=Ht}Sx(n,B,Z,Rt)?at.insert(Je,At[0],!0):(at.insert(Rt,At[0],!0),at.insert(Je,Rt)),at=At[0],(Sx(n,B,Z,at)||u5(at,"br"))&&at.empty().remove()}else if(Je.parent){if(Je.name==="li"){let It=Je.prev;if(It&&(It.name==="ul"||It.name==="ol")){It.append(Je);continue}if(It=Je.next,It&&(It.name==="ul"||It.name==="ol")&&It.firstChild){It.insert(Je,It.firstChild,!0);continue}const ln=new Hc("ul",1);f(ln),Je.wrap(ln);continue}if(n.isValidChild(Je.parent.name,"div")&&n.isValidChild("div",Je.name)){const It=new Hc("div",1);f(It),Je.wrap(It)}else Ok(Je,n)}}},R8=(e,n)=>{let r=e;for(;r;){if(r.name===n)return!0;r=r.parent}return!1},Ik=(e,n,r=n.parent)=>r?e.children[n.name]&&!e.isValidChild(r.name,n.name)||n.name==="a"&&R8(r,"a")?!0:Dk(r)&&s5(n)?!((r==null?void 0:r.firstChild)===n&&(r==null?void 0:r.lastChild)===n):!1:!1,L8=(e,n,r,f)=>{const w=document.createRange();return w.setStart(e,n),w.setEnd(r,f),w},d5=e=>{const n=In.fromRangeStart(e),r=In.fromRangeEnd(e),f=e.commonAncestorContainer;return dl(!1,f,r).map(w=>!td(n,r,f)&&td(n,w,f)?L8(n.container(),n.offset(),w.container(),w.offset()):e).getOr(e)},Tx=e=>e.collapsed?e:d5(e),Nk=e=>k(e.firstChild)&&e.firstChild===e.lastChild,h5=e=>e.name==="br"||e.value===Da,D8=(e,n)=>e.getBlockElements()[n.name]&&Nk(n)&&h5(n.firstChild),Fk=(e,n)=>{const r=e.getNonEmptyElements();return k(n)&&(n.isEmpty(r)||D8(e,n))},m5=(e,n)=>{let r=n.firstChild,f=n.lastChild;return r&&r.name==="meta"&&(r=r.next),f&&f.attr("id")==="mce_marker"&&(f=f.prev),Fk(e,f)&&(f=f==null?void 0:f.prev),!r||r!==f?!1:r.name==="ul"||r.name==="ol"},HC=e=>{var n,r;const f=e.firstChild,w=e.lastChild;return f&&f.nodeName==="META"&&((n=f.parentNode)===null||n===void 0||n.removeChild(f)),w&&w.id==="mce_marker"&&((r=w.parentNode)===null||r===void 0||r.removeChild(w)),e},g5=(e,n,r)=>{const f=n.serialize(r),w=e.createFragment(f);return HC(w)},$8=e=>{var n;return ue((n=e==null?void 0:e.childNodes)!==null&&n!==void 0?n:[],r=>r.nodeName==="LI")},kx=e=>e.data===Da||Ja(e),p5=e=>k(e==null?void 0:e.firstChild)&&e.firstChild===e.lastChild&&kx(e.firstChild),v5=e=>!e.firstChild||p5(e),zC=e=>e.length>0&&v5(e[e.length-1])?e.slice(0,-1):e,Km=(e,n)=>{const r=e.getParent(n,e.isBlock);return r&&r.nodeName==="LI"?r:null},O8=(e,n)=>!!Km(e,n),Gz=(e,n)=>{const r=n.cloneRange(),f=n.cloneRange();return r.setStartBefore(e),f.setEndAfter(e),[r.cloneContents(),f.cloneContents()]},P8=(e,n)=>{const r=In.before(e),w=nd(n).next(r);return w?w.toRange():null},y5=(e,n)=>{const r=In.after(e),w=nd(n).prev(r);return w?w.toRange():null},Zz=(e,n,r,f)=>{const w=Gz(e,f),B=e.parentNode;return B&&(B.insertBefore(w[0],e),ur.each(n,Z=>{B.insertBefore(Z,e)}),B.insertBefore(w[1],e),B.removeChild(e)),y5(n[n.length-1],r)},hee=(e,n,r)=>{const f=e.parentNode;return f&&ur.each(n,w=>{f.insertBefore(w,e)}),P8(e,r)},jz=(e,n,r,f)=>(f.insertAfter(n.reverse(),e),y5(n[0],r)),b5=(e,n,r,f)=>{const w=g5(n,e,f),B=Km(n,r.startContainer),Z=zC($8(w.firstChild)),oe=1,be=2,Pe=n.getRoot(),Ke=Je=>{const at=In.fromRangeStart(r),Rt=nd(n.getRoot()),Ht=Je===oe?Rt.prev(at):Rt.next(at),At=Ht==null?void 0:Ht.getNode();return At?Km(n,At)!==B:!0};return B?Ke(oe)?hee(B,Z,Pe):Ke(be)?jz(B,Z,Pe,n):Zz(B,Z,Pe,r):null},Yh=["pre"],x5=(e,n,r,f)=>{var w;const B=n.firstChild,Z=n.lastChild,oe=Z.attr("data-mce-type")==="bookmark"?Z.prev:Z,be=B===oe,Pe=Ve(Yh,B.name);if(be&&Pe){const Ke=B.attr("contenteditable")!=="false",Je=((w=e.getParent(r,e.isBlock))===null||w===void 0?void 0:w.nodeName.toLowerCase())===B.name,at=X.from(ay(f,r)).forall(wl);return Ke&&Je&&at}else return!1},Ax=Bg,w5=(e,n,r)=>{if(k(r)){const f=e.getParent(n.endContainer,Ax);return r===f&&nC(jt.fromDom(r),n)}else return!1},Yz=(e,n,r)=>{var f;if(r.getAttribute("data-mce-bogus")==="all")(f=r.parentNode)===null||f===void 0||f.insertBefore(e.dom.createFragment(n),r);else{const w=r.firstChild,B=r.lastChild;!w||w===B&&w.nodeName==="BR"?e.dom.setHTML(r,n):e.selection.setContent(n,{no_events:!0})}},I8=(e,n,r)=>{X.from(e.getParent(n,"td,th")).map(jt.fromDom).each(f=>q(f,r))},Kz=(e,n)=>{const r=e.schema.getTextInlineElements(),f=e.dom;if(n){const w=e.getBody(),B=Lk(e);ur.each(f.select("*[data-mce-fragment]"),Z=>{if(k(r[Z.nodeName.toLowerCase()])&&TC(f,Z)){for(let be=Z.parentElement;k(be)&&be!==w&&!rz(f,Z,be);be=be.parentElement)if(B.compare(be,Z)){f.remove(Z,!0);break}}})}},N8=e=>{let n=e;for(;n=n.walk();)n.type===1&&n.attr("data-mce-fragment","1")},C5=e=>{ur.each(e.getElementsByTagName("*"),n=>{n.removeAttribute("data-mce-fragment")})},Xz=e=>!!e.getAttribute("data-mce-fragment"),F8=(e,n)=>k(n)&&!e.schema.getVoidElements()[n.nodeName],Jz=(e,n)=>{var r,f,w;let B;const Z=e.dom,oe=e.selection;if(!n)return;oe.scrollIntoView(n);const be=ay(e.getBody(),n);if(be&&Z.getContentEditable(be)==="false"){Z.remove(n),oe.select(be);return}let Pe=Z.createRng();const Ke=n.previousSibling;if(ir(Ke)){Pe.setStart(Ke,(f=(r=Ke.nodeValue)===null||r===void 0?void 0:r.length)!==null&&f!==void 0?f:0);const Rt=n.nextSibling;ir(Rt)&&(Ke.appendData(Rt.data),(w=Rt.parentNode)===null||w===void 0||w.removeChild(Rt))}else Pe.setStartBefore(n),Pe.setEndBefore(n);const Je=Rt=>{let Ht=In.fromRangeStart(Rt);return Ht=nd(e.getBody()).next(Ht),Ht==null?void 0:Ht.toRange()},at=Z.getParent(n,Z.isBlock);if(Z.remove(n),at&&Z.isEmpty(at)){const Rt=Ax(at);Ad(jt.fromDom(at)),Pe.setStart(at,0),Pe.setEnd(at,0),!Rt&&!Xz(at)&&(B=Je(Pe))?(Pe=B,Z.remove(at)):Z.add(at,Z.create("br",Rt?{}:{"data-mce-bogus":"1"}))}oe.setRng(Pe)},VC=e=>{const n=e.dom,r=Tx(e.selection.getRng());e.selection.setRng(r);const f=n.getParent(r.startContainer,Ax);w5(n,r,f)?af(e,r,jt.fromDom(f)):r.startContainer===r.endContainer&&r.endOffset-r.startOffset===1&&ir(r.startContainer.childNodes[r.startOffset])?r.deleteContents():e.getDoc().execCommand("Delete",!1)},B8=e=>{for(let n=e;n;n=n.walk())if(n.attr("id")==="mce_marker")return X.some(n);return X.none()},Qz=(e,n,r)=>{var f;return Oe(r.children(),s5)&&((f=e.getParent(n,e.isBlock))===null||f===void 0?void 0:f.nodeName)==="SUMMARY"},H8=(e,n,r)=>{var f,w;const B=e.selection,Z=e.dom,oe=e.parser,be=r.merge,Pe=Uv({validate:!0},e.schema),Ke='';r.preserve_zwsp||(n=_e(n)),n.indexOf("{$caret}")===-1&&(n+="{$caret}"),n=n.replace(/\{\$caret\}/,Ke);let Je=B.getRng();const at=Je.startContainer,Rt=e.getBody();at===Rt&&B.isCollapsed()&&Z.isBlock(Rt.firstChild)&&F8(e,Rt.firstChild)&&Z.isEmpty(Rt.firstChild)&&(Je=Z.createRng(),Je.setStart(Rt.firstChild,0),Je.setEnd(Rt.firstChild,0),B.setRng(Je)),B.isCollapsed()||VC(e);const Ht=B.getNode(),At={context:Ht.nodeName.toLowerCase(),data:r.data,insert:!0},It=oe.parse(n,At);if(r.paste===!0&&m5(e.schema,It)&&O8(Z,Ht))return Je=b5(Pe,Z,B.getRng(),It),Je&&B.setRng(Je),n;r.paste===!0&&x5(Z,It,Ht,e.getBody())&&((f=It.firstChild)===null||f===void 0||f.unwrap()),N8(It);let ln=It.lastChild;if(ln&&ln.attr("id")==="mce_marker"){const xn=ln;for(ln=ln.prev;ln;ln=ln.walk(!0))if(ln.type===3||!Z.isBlock(ln.name)){ln.parent&&e.schema.isValidChild(ln.parent.name,"span")&&ln.parent.insert(xn,ln,ln.name==="br");break}}if(e._selectionOverrides.showBlockCaretContainer(Ht),!At.invalid&&!Qz(Z,Ht,It))n=Pe.serialize(It),Yz(e,n,Ht);else{e.selection.setContent(Ke);let xn=B.getNode(),yn;const $n=e.getBody();for(wm(xn)?xn=yn=$n:yn=xn;yn&&yn!==$n;)xn=yn,yn=yn.parentNode;n=xn===$n?$n.innerHTML:Z.getOuterHTML(xn);const nr=oe.parse(n),mr=B8(nr),Nr=mr.bind(_8).getOr(nr);mr.each(Qr=>Qr.replace(It));const zn=It.children(),Nn=(w=It.parent)!==null&&w!==void 0?w:nr;It.unwrap();const er=ue(zn,Qr=>Ik(e.schema,Qr,Nn));Pk(er,e.schema,Nr),c5(oe.getNodeFilters(),oe.getAttributeFilters(),nr),n=Pe.serialize(nr),xn===$n?Z.setHTML($n,n):Z.setOuterHTML(xn,n)}return Kz(e,be),Jz(e,Z.get("mce_marker")),C5(e.getBody()),I8(Z,B.getStart(),e.schema),$3(e.schema,e.getBody(),B.getStart()),n},Bk=e=>e instanceof Hc,qz=e=>{Vv(e)&&Sc(e.getBody()).each(n=>{const r=n.getNode(),f=yu(r)?Sc(r).getOr(n):n;e.selection.setRng(f.toRange())})},S5=(e,n,r)=>{e.dom.setHTML(e.getBody(),n),r!==!0&&qz(e)},eV=(e,n,r,f)=>{if(r=_e(r),r.length===0||/^\s+$/.test(r)){const w='
    ';n.nodeName==="TABLE"?r=""+w+"":/^(UL|OL)$/.test(n.nodeName)&&(r="
  • "+w+"
  • ");const B=ac(e);return e.schema.isValidChild(n.nodeName.toLowerCase(),B.toLowerCase())?(r=w,r=e.dom.createHTML(B,v1(e),r)):r||(r=w),S5(e,r,f.no_selection),{content:r,html:r}}else{f.format!=="raw"&&(r=Uv({validate:!1},e.schema).serialize(e.parser.parse(r,{isRootContent:!0,insert:!0})));const w=Li(jt.fromDom(n))?r:ur.trim(r);return S5(e,w,f.no_selection),{content:w,html:w}}},tV=(e,n,r,f)=>{c5(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),r);const w=Uv({validate:!1},e.schema).serialize(r),B=_e(Li(jt.fromDom(n))?w:ur.trim(w));return S5(e,B,f.no_selection),{content:r,html:B}},z8=(e,n,r)=>X.from(e.getBody()).map(f=>Bk(n)?tV(e,f,n,r):eV(e,f,n,r)).getOr({content:n,html:Bk(r.content)?"":r.content}),V8=e=>R(e)?e:ne,T5=(e,n,r)=>{let f=e.dom;const w=V8(r);for(;f.parentNode;){f=f.parentNode;const B=jt.fromDom(f),Z=n(B);if(Z.isSome())return Z;if(w(B))break}return X.none()},fp=(e,n,r)=>{const f=n(e),w=V8(r);return f.orThunk(()=>w(e)?X.none():T5(e,n,w))},k5=nx,U8=(e,n,r)=>{const f=e.formatter.get(r);if(f)for(let w=0;w{const B=e.dom.getRoot();if(n===B)return!1;const Z=e.dom.getParent(n,oe=>U8(e,oe,r)?!0:oe.parentNode===B||!!Xm(e,oe,r,f,!0));return!!Xm(e,Z,r,f,w)},UC=(e,n,r)=>$i(r)&&k5(n,r.inline)||ad(r)&&k5(n,r.block)?!0:El(r)?Gr(n)&&e.is(n,r.selector):!1,A5=(e,n,r,f,w,B)=>{const Z=r[f],oe=f==="attributes";if(R(r.onmatch))return r.onmatch(n,r,f);if(Z){if($t(Z)){for(let be=0;be{const B=e.formatter.get(r),Z=e.dom;if(B&&Gr(n))for(let oe=0;oe{if(f)return Mx(e,f,n,r,w);if(f=e.selection.getNode(),Mx(e,f,n,r,w))return!0;const B=e.selection.getStart();return!!(B!==f&&Mx(e,B,n,r,w))},nV=(e,n,r)=>{const f=[],w={},B=e.selection.getStart();return e.dom.getParent(B,Z=>{for(let oe=0;oe{const r=w=>Ba(w,jt.fromDom(e.getBody())),f=(w,B)=>Xm(e,w.dom,B)?X.some(B):X.none();return X.from(e.selection.getStart(!0)).bind(w=>fp(jt.fromDom(w),B=>Ct(n,Z=>f(B,Z)),r)).getOrNull()},W8=(e,n)=>{const r=e.formatter.get(n),f=e.dom;if(r&&e.selection.isEditable()){const w=e.selection.getStart(),B=N1(f,w);for(let Z=r.length-1;Z>=0;Z--){const oe=r[Z];if(!El(oe))return!0;for(let be=B.length-1;be>=0;be--)if(f.is(B[be],oe.selector))return!0}}return!1},G8=(e,n,r)=>le(r,(f,w)=>{const B=sC(e,w);return e.formatter.matchNode(n,w,{},B)?f.concat([w]):f},[]),Ex=ve,zk=(e,n)=>e.importNode(n,!0),M5=e=>{if(e){const n=new es(e,e);for(let r=n.current();r;r=n.next())if(ir(r))return r}return null},E5=e=>{const n=jt.fromTag("span");return Kc(n,{id:Yb,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&di(n,jt.fromText(Ex)),n},Z8=e=>{const n=M5(e);return n&&n.data.charAt(0)===Ex&&n.deleteData(0,1),n},_5=(e,n,r)=>{const f=e.dom,w=e.selection;if(B1(n))up(e,!1,jt.fromDom(n),r,!0);else{const B=w.getRng(),Z=f.getParent(n,f.isBlock),oe=B.startContainer,be=B.startOffset,Pe=B.endContainer,Ke=B.endOffset,Je=Z8(n);f.remove(n,!0),oe===Je&&be>0&&B.setStart(Je,be-1),Pe===Je&&Ke>0&&B.setEnd(Je,Ke-1),Z&&f.isEmpty(Z)&&U(jt.fromDom(Z)),w.setRng(B)}},R5=(e,n,r)=>{const f=e.dom,w=e.selection;if(n)_5(e,n,r);else if(n=ep(e.getBody(),w.getStart()),!n)for(;n=f.get(Yb);)_5(e,n,r)},Vk=(e,n,r)=>{var f,w;const B=e.dom,Z=B.getParent(r,Q(Fi,e.schema));Z&&B.isEmpty(Z)?(f=r.parentNode)===null||f===void 0||f.replaceChild(n,r):(L3(jt.fromDom(r)),B.isEmpty(r)?(w=r.parentNode)===null||w===void 0||w.replaceChild(n,r):B.insertAfter(n,r))},L5=(e,n)=>(e.appendChild(n),n),Uk=(e,n)=>{var r;const f=pe(e,(B,Z)=>L5(B,Z.cloneNode(!1)),n),w=(r=f.ownerDocument)!==null&&r!==void 0?r:document;return L5(f,w.createTextNode(Ex))},rV=(e,n,r,f,w,B)=>{const Z=e.formatter,oe=e.dom,be=ue(Yt(Z.get()),Je=>Je!==f&&!or(Je,"removeformat")),Pe=G8(e,r,be);if(ue(Pe,Je=>!a_(e,Je,f)).length>0){const Je=r.cloneNode(!1);return oe.add(n,Je),Z.remove(f,w,Je,B),oe.remove(Je),X.some(Je)}else return X.none()},oV=(e,n,r)=>{let f;const w=e.selection,B=e.formatter.get(n);if(!B)return;const Z=w.getRng();let oe=Z.startOffset;const Pe=Z.startContainer.nodeValue;f=ep(e.getBody(),w.getStart());const Ke=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(Pe&&oe>0&&oe{const w=e.dom,B=e.selection;let Z=!1;const oe=e.formatter.get(n);if(!oe)return;const be=B.getRng(),Pe=be.startContainer,Ke=be.startOffset;let Je=Pe;ir(Pe)&&(Ke!==Pe.data.length&&(Z=!0),Je=Je.parentNode);const at=[];let Rt;for(;Je;){if(Xm(e,Je,n,r,f)){Rt=Je;break}Je.nextSibling&&(Z=!0),at.push(Je),Je=Je.parentNode}if(Rt)if(Z){const Ht=B.getBookmark();be.collapse(!0);let At=Hh(w,be,oe,!0);At=nt(At),e.formatter.remove(n,r,At,f),B.moveToBookmark(Ht)}else{const Ht=ep(e.getBody(),Rt),At=k(Ht)?w.getParents(Rt.parentNode,fe,Ht):[],It=E5(!1).dom;Vk(e,It,Ht??Rt);const ln=rV(e,It,Rt,n,r,f),xn=Uk([...at,...ln.toArray(),...At],It);Ht&&_5(e,Ht,k(Ht)),B.setCursorLocation(xn,1),w.isEmpty(Rt)&&w.remove(Rt)}},D5=(e,n,r)=>{const f=e.selection,w=e.getBody();R5(e,null,r),(n===8||n===46)&&f.isCollapsed()&&f.getStart().innerHTML===Ex&&R5(e,ep(w,f.getStart()),!0),(n===37||n===39)&&R5(e,ep(w,f.getStart()),!0)},Y8=e=>ir(e)&&ro(e.data,Da),aV=e=>{e.on("mouseup keydown",n=>{D5(e,n.keyCode,Y8(e.selection.getRng().endContainer))})},K8=e=>{const n=E5(!1),r=Uk(e,n.dom);return{caretContainer:n,caretPosition:In(r,0)}},X8=(e,n)=>{const{caretContainer:r,caretPosition:f}=K8(n);return Ri(jt.fromDom(e),r),Ua(jt.fromDom(e)),f},Wk=(e,n)=>{const{caretContainer:r,caretPosition:f}=K8(n);return e.insertNode(r.dom),f},Jm=(e,n)=>{if(Mu(n.dom))return!1;const r=e.schema.getTextInlineElements();return lt(r,La(n))&&!Mu(n.dom)&&!Ju(n.dom)},WC={},Gk=oi(["pre"]),Oi=(e,n)=>{WC[e]||(WC[e]=[]),WC[e].push(n)},$5=(e,n)=>{lt(WC,e)&&ie(WC[e],r=>{r(n)})};Oi("pre",e=>{const n=e.selection.getRng(),r=w=>B=>{const Z=B.previousSibling;return Gk(Z)&&Ve(w,Z)},f=(w,B)=>{const Z=jt.fromDom(B),oe=mf(Z).dom;Ua(Z),hs(jt.fromDom(w),[jt.fromTag("br",oe),jt.fromTag("br",oe),...zi(Z)])};if(!n.collapsed){const w=e.selection.getSelectedBlocks(),B=ue(ue(w,Gk),r(w));ie(B,Z=>{f(Z.previousSibling,Z)})}});const Zk=["fontWeight","fontStyle","color","fontSize","fontFamily"],dp=e=>_(e.styles)&&Oe(Yt(e.styles),n=>Ve(Zk,n)),J8=e=>de(e,n=>$i(n)&&n.inline==="span"&&dp(n)),O5=(e,n)=>{const r=e.get(n);return S(r)?J8(r):X.none()},_x=(e,n)=>Nc(n,In.fromRangeStart(e)).isNone(),Q8=(e,n)=>ic(n,In.fromRangeEnd(e)).exists(r=>!Ja(r.getNode())||ic(n,r).isSome())===!1,q8=e=>n=>Hg(n)&&e.isEditable(n),Rx=e=>{const n=e.getSelectedBlocks(),r=e.getRng();if(e.isCollapsed())return[];if(n.length===1)return _x(r,n[0])&&Q8(r,n[0])?n:[];{const f=gt(n).filter(Z=>_x(r,Z)).toArray(),w=ut(n).filter(Z=>Q8(r,Z)).toArray(),B=n.slice(1,-1);return f.concat(B).concat(w)}},sV=e=>ue(Rx(e),q8(e.dom)),Gv=e=>ue(e.getSelectedBlocks(),q8(e.dom)),P5=ur.each,Qm=e=>Gr(e)&&!Eu(e)&&!Mu(e)&&!Ju(e),Rf=(e,n)=>{for(let r=e;r;r=r[n]){if(ir(r)&&St(r.data))return e;if(Gr(r)&&!Eu(r))return r}return e},GC=(e,n,r)=>{const f=Lk(e),w=xl(n)&&e.dom.isEditable(n),B=xl(r)&&e.dom.isEditable(r);if(w&&B){const Z=Rf(n,"previousSibling"),oe=Rf(r,"nextSibling");if(f.compare(Z,oe)){for(let be=Z.nextSibling;be&&be!==oe;){const Pe=be;be=be.nextSibling,Z.appendChild(Pe)}return e.dom.remove(oe),ur.each(ur.grep(oe.childNodes),be=>{Z.appendChild(be)}),Z}}return r},jk=(e,n,r,f)=>{var w;if(f&&n.merge_siblings!==!1){const B=(w=GC(e,Fr(f),f))!==null&&w!==void 0?w:f;GC(e,B,Fr(B,!0))}},iV=(e,n,r)=>{if(n.clear_child_styles){const f=n.links?"*:not(a)":"*";P5(e.select(f,r),w=>{Qm(w)&&e.isEditable(w)&&P5(n.styles,(B,Z)=>{e.setStyle(w,Z,"")})})}},I5=(e,n,r)=>{P5(e.childNodes,f=>{Qm(f)&&(n(f)&&r(f),f.hasChildNodes()&&I5(f,n,r))})},Yk=(e,n)=>{n.nodeName==="SPAN"&&e.getAttribs(n).length===0&&e.remove(n,!0)},e7=(e,n)=>r=>!!(r&&$v(e,r,n)),id=(e,n,r)=>f=>{e.setStyle(f,n,r),f.getAttribute("style")===""&&f.removeAttribute("style"),Yk(e,f)},qm=ed.generate([{keep:[]},{rename:["name"]},{removed:[]}]),t7=/^(src|href|style)$/,ZC=ur.each,Lx=nx,iy=e=>/^(TR|TH|TD)$/.test(e.nodeName),Kk=(e,n,r)=>e.isChildOf(n,r)&&n!==r&&!e.isBlock(r),n7=(e,n,r)=>{let f=n[r?"startContainer":"endContainer"],w=n[r?"startOffset":"endOffset"];if(Gr(f)){const B=f.childNodes.length-1;!r&&w&&w--,f=f.childNodes[w>B?B:w]}return ir(f)&&r&&w>=f.data.length&&(f=new es(f,e.getBody()).next()||f),ir(f)&&!r&&w===0&&(f=new es(f,e.getBody()).prev()||f),f},N5=(e,n)=>{const r=n?"firstChild":"lastChild",f=e[r];return iy(e)&&f?e.nodeName==="TR"&&f[r]||f:e},F5=(e,n,r,f)=>{var w;const B=e.create(r,f);return(w=n.parentNode)===null||w===void 0||w.insertBefore(B,n),B.appendChild(n),B},r7=(e,n,r,f,w)=>{const B=jt.fromDom(n),Z=jt.fromDom(e.create(f,w)),oe=r?pc(B):F0(B);return hs(Z,oe),r?(Ri(B,Z),yh(Z,B)):(gu(B,Z),di(Z,B)),Z.dom},lV=(e,n)=>n.links&&e.nodeName==="A",o7=(e,n,r)=>{const f=n.parentNode;let w;const B=e.dom,Z=ac(e);ad(r)&&f===B.getRoot()&&(!r.list_block||!Lx(n,r.list_block))&&ie(tt(n.childNodes),oe=>{Bh(e,Z,oe.nodeName.toLowerCase())?w?w.appendChild(oe):(w=F5(B,oe,Z),B.setAttribs(w,v1(e))):w=null}),!(ax(r)&&!Lx(r.inline,n))&&B.remove(n,!0)},Dx=(e,n,r)=>F(e)?{name:n,value:null}:{name:e,value:od(n,r)},a7=(e,n)=>{e.getAttrib(n,"style")===""&&(n.removeAttribute("style"),n.removeAttribute("data-mce-style"))},B5=(e,n,r,f,w)=>{let B=!1;ZC(r.styles,(Z,oe)=>{const{name:be,value:Pe}=Dx(oe,Z,f),Ke=rx(Pe,be);(r.remove_similar||O(Pe)||!Gr(w)||Lx($v(e,w,be),Ke))&&e.setStyle(n,be,""),B=!0}),B&&a7(e,n)},H5=(e,n,r)=>{n==="removeformat"?ie(Gv(e.selection),f=>{ie(Zk,w=>e.dom.setStyle(f,w,"")),a7(e.dom,f)}):O5(e.formatter,n).each(f=>{ie(Gv(e.selection),w=>B5(e.dom,w,f,r,null))})},s7=(e,n,r,f,w)=>{const B=e.dom,Z=Lk(e),oe=e.schema;if($i(n)&&e1(oe,n.inline)&&pa(oe,f)&&f.parentElement===e.getBody())return o7(e,f,n),qm.removed();if(!n.ceFalseOverride&&f&&B.getContentEditableParent(f)==="false"||f&&!UC(B,f,n)&&!lV(f,n))return qm.keep();const be=f,Pe=n.preserve_attributes;if($i(n)&&n.remove==="all"&&S(Pe)){const Ke=ue(B.getAttribs(be),Je=>Ve(Pe,Je.name.toLowerCase()));if(B.removeAllAttribs(be),ie(Ke,Je=>B.setAttrib(be,Je.name,Je.value)),Ke.length>0)return qm.rename("span")}if(n.remove!=="all"){B5(B,be,n,r,w),ZC(n.attributes,(Je,at)=>{const{name:Rt,value:Ht}=Dx(at,Je,r);if(n.remove_similar||O(Ht)||!Gr(w)||Lx(B.getAttrib(w,Rt),Ht)){if(Rt==="class"){const At=B.getAttrib(be,Rt);if(At){let It="";if(ie(At.split(/\s+/),ln=>{/mce\-\w+/.test(ln)&&(It+=(It?" ":"")+ln)}),It){B.setAttrib(be,Rt,It);return}}}if(t7.test(Rt)&&be.removeAttribute("data-mce-"+Rt),Rt==="style"&&oi(["li"])(be)&&B.getStyle(be,"list-style-type")==="none"){be.removeAttribute(Rt),B.setStyle(be,"list-style-type","none");return}Rt==="class"&&be.removeAttribute("className"),be.removeAttribute(Rt)}}),ZC(n.classes,Je=>{Je=od(Je,r),(!Gr(w)||B.hasClass(w,Je))&&B.removeClass(be,Je)});const Ke=B.getAttribs(be);for(let Je=0;Je{let B;return n.parentNode&&ie(N1(e.dom,n.parentNode).reverse(),Z=>{if(!B&&Gr(Z)&&Z.id!=="_start"&&Z.id!=="_end"){const oe=Xm(e,Z,r,f,w);oe&&oe.split!==!1&&(B=Z)}}),B},l7=(e,n,r,f)=>s7(e,n,r,f,f).fold(J(f),w=>(e.dom.createFragment().appendChild(f),e.dom.rename(f,w)),J(null)),cV=(e,n,r,f,w,B,Z,oe)=>{var be,Pe;let Ke,Je;const at=e.dom;if(r){const Rt=r.parentNode;for(let Ht=f.parentNode;Ht&&Ht!==Rt;Ht=Ht.parentNode){let At=at.clone(Ht,!1);for(let It=0;It{const B=e.formatter.get(n),Z=B[0],oe=e.dom,be=e.selection,Pe=At=>{const It=i7(e,At,n,r,w);return cV(e,B,It,At,At,!0,Z,r)},Ke=At=>Eu(At)&&Gr(At)&&(At.id==="_start"||At.id==="_end"),Je=At=>Oe(B,It=>jC(e,It,r,At,At)),at=At=>{const It=tt(At.childNodes),xn=Je(At)||Oe(B,nr=>UC(oe,At,nr)),yn=At.parentNode;if(!xn&&k(yn)&&F1(Z)&&Je(yn),Z.deep&&It.length)for(let nr=0;nr{Gr(At)&&e.dom.getStyle(At,"text-decoration")===nr&&At.parentNode&&UT(oe,At.parentNode)===nr&&jC(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:nr}},void 0,At)})},Rt=At=>{const It=oe.get(At?"_start":"_end");if(It){let ln=It[At?"firstChild":"lastChild"];return Ke(ln)&&(ln=ln[At?"firstChild":"lastChild"]),ir(ln)&&ln.data.length===0&&(ln=At?It.previousSibling||It.nextSibling:It.nextSibling||It.previousSibling),oe.remove(It,!0),ln}else return null},Ht=At=>{let It,ln,xn=Hh(oe,At,B,At.collapsed);if(Z.split){if(xn=nt(xn),It=n7(e,xn,!0),ln=n7(e,xn),It!==ln){if(It=N5(It,!0),ln=N5(ln,!1),Kk(oe,It,ln)){const $n=X.from(It.firstChild).getOr(It);Pe(r7(oe,$n,!0,"span",{id:"_start","data-mce-type":"bookmark"})),Rt(!0);return}if(Kk(oe,ln,It)){const $n=X.from(ln.lastChild).getOr(ln);Pe(r7(oe,$n,!1,"span",{id:"_end","data-mce-type":"bookmark"})),Rt(!1);return}It=F5(oe,It,"span",{id:"_start","data-mce-type":"bookmark"}),ln=F5(oe,ln,"span",{id:"_end","data-mce-type":"bookmark"});const yn=oe.createRng();yn.setStartAfter(It),yn.setEndBefore(ln),W1(oe,yn,$n=>{ie($n,nr=>{!Eu(nr)&&!Eu(nr.parentNode)&&Pe(nr)})}),Pe(It),Pe(ln),It=Rt(!0),ln=Rt()}else It=ln=Pe(It);xn.startContainer=It.parentNode?It.parentNode:It,xn.startOffset=oe.nodeIndex(It),xn.endContainer=ln.parentNode?ln.parentNode:ln,xn.endOffset=oe.nodeIndex(ln)+1}W1(oe,xn,yn=>{ie(yn,at)})};if(f){if(O1(f)){const At=oe.createRng();At.setStartBefore(f),At.setEndAfter(f),Ht(At)}else Ht(f);op(e,n,f,r);return}!be.isCollapsed()||!$i(Z)||Dv(e).length?(P1(e,()=>Um(e,Ht),At=>$i(Z)&&Hk(e,n,r,At)),e.nodeChanged()):j8(e,n,r,w),H5(e,n,r),op(e,n,f,r)},c7=(e,n,r,f,w)=>{(f||e.selection.isEditable())&&uV(e,n,r,f,w)},jC=(e,n,r,f,w)=>s7(e,n,r,f,w).fold(ne,B=>(e.dom.rename(f,B),!0),fe),u7=ur.each,fV=(e,n,r,f)=>{const w=B=>{if(xl(B)&&Gr(B.parentNode)&&e.isEditable(B)){const Z=UT(e,B.parentNode);e.getStyle(B,"color")&&Z?e.setStyle(B,"text-decoration",Z):e.getStyle(B,"text-decoration")===Z&&e.setStyle(B,"text-decoration",null)}};n.styles&&(n.styles.color||n.styles.textDecoration)&&(ur.walk(f,w,"childNodes"),w(f))},dV=(e,n,r,f)=>{if(n.styles&&n.styles.backgroundColor){const w=e7(e,"fontSize");I5(f,B=>w(B)&&e.isEditable(B),id(e,"backgroundColor",od(n.styles.backgroundColor,r)))}},hV=(e,n,r,f)=>{if($i(n)&&(n.inline==="sub"||n.inline==="sup")){const w=e7(e,"fontSize");I5(f,Z=>w(Z)&&e.isEditable(Z),id(e,"fontSize",""));const B=ue(e.select(n.inline==="sup"?"sub":"sup",f),e.isEditable);e.remove(B,!0)}},mV=(e,n,r,f)=>{u7(n,w=>{$i(w)&&u7(e.dom.select(w.inline,f),B=>{Qm(B)&&jC(e,w,r,B,w.exact?B:null)}),iV(e.dom,w,f)})},gV=(e,n,r,f,w)=>{const B=w.parentNode;Xm(e,B,r,f)&&jC(e,n,f,w)||n.merge_with_parents&&B&&e.dom.getParent(B,Z=>Xm(e,Z,r,f)?(jC(e,n,f,w),!0):!1)},Xk=ur.each,pV=(e,n,r,f)=>{if(mT(e)&&$i(n)&&r.parentNode){const w=I3(e.schema),B=Iz(jt.fromDom(r),Z=>Mu(Z.dom));return ft(w,f)&&Za(jt.fromDom(r.parentNode),!1)&&!B}else return!1},f7=(e,n,r,f)=>{if(Xk(r.styles,(w,B)=>{e.setStyle(n,B,od(w,f))}),r.styles){const w=e.getAttrib(n,"style");w&&e.setAttrib(n,"data-mce-style",w)}},d7=(e,n,r,f)=>{const w=e.formatter.get(n),B=w[0],Z=!f&&e.selection.isCollapsed(),oe=e.dom,be=e.selection,Pe=(Ht,At=B)=>{R(At.onformat)&&At.onformat(Ht,At,r,f),f7(oe,Ht,At,r),Xk(At.attributes,(It,ln)=>{oe.setAttrib(Ht,ln,od(It,r))}),Xk(At.classes,It=>{const ln=od(It,r);oe.hasClass(Ht,ln)||oe.addClass(Ht,ln)})},Ke=(Ht,At)=>{let It=!1;return Xk(Ht,ln=>El(ln)?oe.getContentEditable(At)==="false"&&!ln.ceFalseOverride||k(ln.collapsed)&&ln.collapsed!==Z?!0:oe.is(At,ln.selector)&&!Mu(At)?(Pe(At,ln),It=!0,!1):!0:!1),It},Je=Ht=>{if(C(Ht)){const At=oe.create(Ht);return Pe(At),At}else return null},at=(Ht,At,It)=>{const ln=[];let xn=!0;const yn=B.inline||B.block,$n=Je(yn),nr=zn=>ox(B)&&Xm(e,zn,n,r),mr=(zn,Nn,er)=>{const Qr=Ov(B)&&Fi(e.schema,zn)&&Bh(e,Nn,yn);return er&&Qr},Nr=(zn,Nn,er,Qr)=>{const ho=zn.nodeName.toLowerCase(),na=Bh(e,yn,ho)&&Bh(e,Nn,yn),ca=!It&&ir(zn)&&Ae(zn.data),os=Mu(zn),ka=!$i(B)||!Ht.isBlock(zn);return(er||Qr)&&na&&!ca&&!os&&ka};W1(Ht,At,zn=>{let Nn;const er=Qr=>{let ho=!1,na=xn,ca=!1;const os=Qr.parentNode,ka=os.nodeName.toLowerCase(),ei=Ht.getContentEditable(Qr);k(ei)&&(na=xn,xn=ei==="true",ho=!0,ca=I1(e,Qr));const zl=xn&&!ho;if(Ja(Qr)&&!pV(e,B,Qr,ka)){Nn=null,ad(B)&&Ht.remove(Qr);return}if(nr(Qr)){Nn=null;return}if(mr(Qr,ka,zl)){const as=Ht.rename(Qr,yn);Pe(as),ln.push(as),Nn=null;return}if(El(B)){let as=Ke(w,Qr);if(!as&&k(os)&&F1(B)&&(as=Ke(w,os)),!$i(B)||as){Nn=null;return}}k($n)&&Nr(Qr,ka,zl,ca)?(Nn||(Nn=Ht.clone($n,!1),os.insertBefore(Nn,Qr),ln.push(Nn)),ca&&ho&&(xn=na),Nn.appendChild(Qr)):(Nn=null,ie(tt(Qr.childNodes),er),ho&&(xn=na),Nn=null)};ie(zn,er)}),B.links===!0&&ie(ln,zn=>{const Nn=er=>{er.nodeName==="A"&&Pe(er,B),ie(tt(er.childNodes),Nn)};Nn(zn)}),ie(ln,zn=>{const Nn=ho=>{let na=0;return ie(ho.childNodes,ca=>{!nf(ca)&&!Eu(ca)&&na++}),na},er=ho=>de(ho.childNodes,oC).filter(ca=>Ht.getContentEditable(ca)!=="false"&&UC(Ht,ca,B)).map(ca=>{const os=Ht.clone(ca,!1);return Pe(os),Ht.replace(os,ho,!0),Ht.remove(ca,!0),os}).getOr(ho),Qr=Nn(zn);if((ln.length>1||!Ht.isBlock(zn))&&Qr===0){Ht.remove(zn,!0);return}($i(B)||ad(B)&&B.wrapper)&&(!B.exact&&Qr===1&&(zn=er(zn)),mV(e,w,r,zn),gV(e,B,n,r,zn),dV(Ht,B,r,zn),fV(Ht,B,r,zn),hV(Ht,B,r,zn),jk(e,B,r,zn))})},Rt=O1(f)?f:be.getNode();if(oe.getContentEditable(Rt)==="false"&&!I1(e,Rt)){f=Rt,Ke(w,f),Bl(e,n,f,r);return}if(B){if(f)if(O1(f)){if(!Ke(w,f)){const Ht=oe.createRng();Ht.setStartBefore(f),Ht.setEndAfter(f),at(oe,Hh(oe,Ht,w),!0)}}else at(oe,f,!0);else!Z||!$i(B)||Dv(e).length?(be.setRng(Tx(be.getRng())),P1(e,()=>{Um(e,(Ht,At)=>{const It=At?Ht:Hh(oe,Ht,w);at(oe,It,!1)})},fe),e.nodeChanged()):oV(e,n,r),O5(e.formatter,n).each(Ht=>{ie(sV(e.selection),At=>f7(oe,At,Ht,r))});$5(n,e)}Bl(e,n,f,r)},h7=(e,n,r,f)=>{(f||e.selection.isEditable())&&d7(e,n,r,f)},ly=e=>lt(e,"vars"),vV=(e,n)=>{e.set({}),n.on("NodeChange",r=>{z5(n,r.element,e.get())}),n.on("FormatApply FormatRemove",r=>{const f=X.from(r.node).map(w=>O1(w)?w:w.startContainer).bind(w=>Gr(w)?X.some(w):X.from(w.parentElement)).getOrThunk(()=>m7(n));z5(n,f,e.get())})},m7=e=>e.selection.getStart(),g7=(e,n,r,f,w)=>Te(n,oe=>{const be=e.formatter.matchNode(oe,r,w??{},f);return!N(be)},oe=>U8(e,oe,r)?!0:f?!1:k(e.formatter.matchNode(oe,r,w,!0))),p7=(e,n)=>{const r=n??m7(e);return ue(N1(e.dom,r),f=>Gr(f)&&!Ju(f))},z5=(e,n,r)=>{const f=p7(e,n);Ft(r,(w,B)=>{const Z=oe=>{const be=g7(e,f,B,oe.similar,ly(oe)?oe.vars:void 0),Pe=be.isSome();if(oe.state.get()!==Pe){oe.state.set(Pe);const Ke=be.getOr(n);ly(oe)?oe.callback(Pe,{node:Ke,format:B,parents:f}):ie(oe.callbacks,Je=>Je(Pe,{node:Ke,format:B,parents:f}))}};ie([w.withSimilar,w.withoutSimilar],Z),ie(w.withVars,Z)})},yV=(e,n,r,f,w,B)=>{const Z=n.get();ie(r.split(","),oe=>{const be=wn(Z,oe).getOrThunk(()=>{const Ke={withSimilar:{state:Us(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Us(!1),similar:!1,callbacks:[]},withVars:[]};return Z[oe]=Ke,Ke}),Pe=()=>{const Ke=p7(e);return g7(e,Ke,oe,w,B).isSome()};if(N(B)){const Ke=w?be.withSimilar:be.withoutSimilar;Ke.callbacks.push(f),Ke.callbacks.length===1&&Ke.state.set(Pe())}else be.withVars.push({state:Us(Pe()),similar:w,vars:B,callback:f})}),n.set(Z)},bV=(e,n,r)=>{const f=e.get();ie(n.split(","),w=>wn(f,w).each(B=>{f[w]={withSimilar:{...B.withSimilar,callbacks:ue(B.withSimilar.callbacks,Z=>Z!==r)},withoutSimilar:{...B.withoutSimilar,callbacks:ue(B.withoutSimilar.callbacks,Z=>Z!==r)},withVars:ue(B.withVars,Z=>Z.callback!==r)}})),e.set(f)},xV=(e,n,r,f,w,B)=>(yV(e,n,r,f,w,B),{unbind:()=>bV(n,r,f)}),wV=(e,n,r,f)=>{const w=e.formatter.get(n);w&&(Hk(e,n,r,f)&&(!("toggle"in w[0])||w[0].toggle)?c7(e,n,r,f):h7(e,n,r,f))},v7=ur.explode,y7=()=>{const e={};return{addFilter:(w,B)=>{ie(v7(w),Z=>{lt(e,Z)||(e[Z]={name:Z,callbacks:[]}),e[Z].callbacks.push(B)})},getFilters:()=>Wn(e),removeFilter:(w,B)=>{ie(v7(w),Z=>{if(lt(e,Z))if(k(B)){const oe=e[Z],be=ue(oe.callbacks,Pe=>Pe!==B);be.length>0?oe.callbacks=be:delete e[Z]}else delete e[Z]})}}},CV=(e,n)=>{ie(n,r=>{e.attr(r,null)})},SV=(e,n,r)=>{e.addNodeFilter("font",f=>{ie(f,w=>{const B=n.parse(w.attr("style")),Z=w.attr("color"),oe=w.attr("face"),be=w.attr("size");Z&&(B.color=Z),oe&&(B["font-family"]=oe),be&&Bt(be).each(Pe=>{B["font-size"]=r[Pe-1]}),w.name="span",w.attr("style",n.serialize(B)),CV(w,["color","face","size"])})})},TV=(e,n,r)=>{e.addNodeFilter("strike",f=>{const w=n.type!=="html4";ie(f,B=>{if(w)B.name="s";else{const Z=r.parse(B.attr("style"));Z["text-decoration"]="line-through",B.name="span",B.attr("style",r.serialize(Z))}})})},kV=(e,n,r)=>{var f;const w=hb();n.convert_fonts_to_spans&&SV(e,w,ur.explode((f=n.font_size_legacy_values)!==null&&f!==void 0?f:"")),TV(e,r,w)},V5=(e,n,r)=>{n.inline_styles&&kV(e,n,r)},U5=(e,n,r)=>{n.addNodeFilter("br",(f,w,B)=>{const Z=ur.extend({},r.getBlockElements()),oe=r.getNonEmptyElements(),be=r.getWhitespaceElements();Z.body=1;const Pe=Ke=>Ke.name in Z||kh(r,Ke);for(let Ke=0,Je=f.length;Kefetch(e).then(n=>n.ok?n.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${e} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})),YC=e=>{const n=/([a-z0-9+\/=\s]+)/i.exec(e);return n?n[1]:""},Jk=e=>{const[n,...r]=e.split(","),f=r.join(","),w=/data:([^/]+\/[^;]+)(;.+)?/.exec(n);if(w){const B=w[2]===";base64",Z=B?YC(f):decodeURIComponent(f);return X.some({type:w[1],data:Z,base64Encoded:B})}else return X.none()},$x=(e,n,r=!0)=>{let f=n;if(r)try{f=atob(n)}catch{return X.none()}const w=new Uint8Array(f.length);for(let B=0;Bnew Promise((n,r)=>{Jk(e).bind(({type:f,data:w,base64Encoded:B})=>$x(f,w,B)).fold(()=>r("Invalid data URI"),n)}),b7=e=>wr(e,"blob:")?mee(e):wr(e,"data:")?KC(e):Promise.reject("Unknown URI format"),AV=e=>new Promise((n,r)=>{const f=new FileReader;f.onloadend=()=>{n(f.result)},f.onerror=()=>{var w;r((w=f.error)===null||w===void 0?void 0:w.message)},f.readAsDataURL(e)});let MV=0;const gee=e=>(e||"blobid")+MV++,x7=(e,n,r)=>Jk(e).bind(({data:f,type:w,base64Encoded:B})=>{if(n&&!B)return X.none();{const Z=B?f:btoa(f);return r(Z,w)}}),w7=(e,n,r)=>{const f=e.create(gee(),n,r);return e.add(f),f},EV=(e,n,r=!1)=>x7(n,r,(f,w)=>X.from(e.getByData(f,w)).orThunk(()=>$x(w,f).map(B=>w7(e,B,f)))),_V=(e,n)=>{const r=()=>Promise.reject("Invalid data URI");if(wr(n,"blob:")){const f=e.getByUri(n);return k(f)?Promise.resolve(f):b7(n).then(w=>AV(w).then(B=>x7(B,!1,Z=>X.some(w7(e,w,Z))).getOrThunk(r)))}else return wr(n,"data:")?EV(e,n).fold(r,f=>Promise.resolve(f)):Promise.reject("Unknown image data format")},C7=e=>k(e.attr("data-mce-bogus")),RV=e=>e.attr("src")===Lr.transparentSrc||k(e.attr("data-mce-placeholder")),S7=(e,n)=>{const{blob_cache:r}=n;if(r){const f=w=>{const B=w.attr("src");RV(w)||C7(w)||M(B)||EV(r,B,!0).each(Z=>{w.attr("src",Z.blobUri())})};e.addAttributeFilter("src",w=>ie(w,f))}},W5=(e,n)=>wr(e,`${n}/`),Qk=(e,n,r,f,w)=>{let B;N(e)?B="iframe":W5(e,"image")?B="img":W5(e,"video")?B="video":W5(e,"audio")?B="audio":B="iframe";const Z=new Hc(B,1);return Z.attr(B==="audio"?{src:n}:{src:n,width:r,height:f}),(B==="audio"||B==="video")&&Z.attr("controls",""),B==="iframe"&&w&&Z.attr("sandbox",""),Z},T7=(e,n)=>{const r=e.schema;n.remove_trailing_brs&&U5(n,e,r),e.addAttributeFilter("href",w=>{let B=w.length;const Z=be=>be.split(" ").filter(Ke=>Ke.length>0).concat(["noopener"]).sort().join(" "),oe=be=>{const Pe=be?ur.trim(be):"";return/\b(noopener)\b/g.test(Pe)?Pe:Z(Pe)};if(!n.allow_unsafe_link_target)for(;B--;){const be=w[B];be.name==="a"&&be.attr("target")==="_blank"&&be.attr("rel",oe(be.attr("rel")))}}),n.allow_html_in_named_anchor||e.addAttributeFilter("id,name",w=>{let B=w.length,Z,oe,be,Pe;for(;B--;)if(Pe=w[B],Pe.name==="a"&&Pe.firstChild&&!Pe.attr("href"))for(be=Pe.parent,Z=Pe.lastChild;Z&&be;)oe=Z.prev,be.insert(Z,Pe),Z=oe}),n.fix_list_elements&&e.addNodeFilter("ul,ol",w=>{let B=w.length,Z,oe;for(;B--;)if(Z=w[B],oe=Z.parent,oe&&(oe.name==="ul"||oe.name==="ol"))if(Z.prev&&Z.prev.name==="li")Z.prev.append(Z);else{const be=new Hc("li",1);be.attr("style","list-style-type: none"),Z.wrap(be)}});const f=r.getValidClasses();n.validate&&f&&e.addAttributeFilter("class",w=>{var B;let Z=w.length;for(;Z--;){const oe=w[Z],be=(B=oe.attr("class"))!==null&&B!==void 0?B:"",Pe=ur.explode(be," ");let Ke="";for(let Je=0;Jeie(w,B=>{B.replace(Qk(B.attr("type"),B.name==="object"?B.attr("data"):B.attr("src"),B.attr("width"),B.attr("height"),n.sandbox_iframes))})),n.sandbox_iframes&&e.addNodeFilter("iframe",w=>ie(w,B=>B.attr("sandbox","")))},{entries:Qi,setPrototypeOf:LV,isFrozen:pee,getPrototypeOf:vee,getOwnPropertyDescriptor:yee}=Object;let{freeze:Bi,seal:Lf,create:Zv}=Object,{apply:eg,construct:G5}=typeof Reflect<"u"&&Reflect;eg||(eg=function(n,r,f){return n.apply(r,f)}),Bi||(Bi=function(n){return n}),Lf||(Lf=function(n){return n}),G5||(G5=function(n,r){return new n(...r)});const DV=jd(Array.prototype.forEach),Ox=jd(Array.prototype.pop),tg=jd(Array.prototype.push),hp=jd(String.prototype.toLowerCase),qk=jd(String.prototype.toString),Z5=jd(String.prototype.match),Zd=jd(String.prototype.replace),k7=jd(String.prototype.indexOf),$V=jd(String.prototype.trim),ld=jd(RegExp.prototype.test),Px=OV(TypeError);function jd(e){return function(n){for(var r=arguments.length,f=new Array(r>1?r-1:0),w=1;w/gm),D7=Lf(/\${[\w\W]*}/gm),$7=Lf(/^data-[\-\w.\u00B7-\uFFFF]/),O7=Lf(/^aria-[\-\w]+$/),P7=Lf(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),PV=Lf(/^(?:\w+script|data):/i),IV=Lf(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),tA=Lf(/^html$/i);var Nx=Object.freeze({__proto__:null,MUSTACHE_EXPR:R7,ERB_EXPR:L7,TMPLIT_EXPR:D7,DATA_ATTR:$7,ARIA_ATTR:O7,IS_ALLOWED_URI:P7,IS_SCRIPT_OR_DATA:PV,ATTR_WHITESPACE:IV,DOCTYPE_NAME:tA});const I7=()=>typeof window>"u"?null:window,N7=function(n,r){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let f=null;const w="data-tt-policy-suffix";r&&r.hasAttribute(w)&&(f=r.getAttribute(w));const B="dompurify"+(f?"#"+f:"");try{return n.createPolicy(B,{createHTML(Z){return Z},createScriptURL(Z){return Z}})}catch{return console.warn("TrustedTypes policy "+B+" could not be created."),null}};function JC(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I7();const n=la=>JC(la);if(n.version="3.0.5",n.removed=[],!e||!e.document||e.document.nodeType!==9)return n.isSupported=!1,n;const r=e.document,f=r.currentScript;let{document:w}=e;const{DocumentFragment:B,HTMLTemplateElement:Z,Node:oe,Element:be,NodeFilter:Pe,NamedNodeMap:Ke=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:Je,DOMParser:at,trustedTypes:Rt}=e,Ht=be.prototype,At=eA(Ht,"cloneNode"),It=eA(Ht,"nextSibling"),ln=eA(Ht,"childNodes"),xn=eA(Ht,"parentNode");if(typeof Z=="function"){const la=w.createElement("template");la.content&&la.content.ownerDocument&&(w=la.content.ownerDocument)}let yn,$n="";const{implementation:nr,createNodeIterator:mr,createDocumentFragment:Nr,getElementsByTagName:zn}=w,{importNode:Nn}=r;let er={};n.isSupported=typeof Qi=="function"&&typeof xn=="function"&&nr&&nr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Qr,ERB_EXPR:ho,TMPLIT_EXPR:na,DATA_ATTR:ca,ARIA_ATTR:os,IS_SCRIPT_OR_DATA:ka,ATTR_WHITESPACE:ei}=Nx;let{IS_ALLOWED_URI:zl}=Nx,as=null;const Sr=cs({},[...j5,...Y5,...cy,...K5,...E7]);let so=null;const $a=cs({},[...X5,...J5,..._7,...XC]);let ha=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),to=null,Lo=null,vr=!0,Oo=!0,Aa=!1,ps=!0,us=!1,ml=!1,th=!1,cf=!1,iu=!1,pd=!1,zo=!1,Oa=!0,vs=!1;const Gs="user-content-";let $s=!0,Iu=!1,nh={},xp=null;const eE=cs({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let JS=null;const tE=cs({},["audio","video","img","source","image","track"]);let m2=null;const nE=cs({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),g2="http://www.w3.org/1998/Math/MathML",g0="http://www.w3.org/2000/svg",rh="http://www.w3.org/1999/xhtml";let em=rh,p2=!1,Ey=null;const QS=cs({},[g2,g0,rh],qk);let tm;const rE=["application/xhtml+xml","text/html"],qS="text/html";let fc,_y=null;const LF=w.createElement("form"),oE=function(Fn){return Fn instanceof RegExp||Fn instanceof Function},e3=function(Fn){if(!(_y&&_y===Fn)){if((!Fn||typeof Fn!="object")&&(Fn={}),Fn=Ix(Fn),tm=rE.indexOf(Fn.PARSER_MEDIA_TYPE)===-1?tm=qS:tm=Fn.PARSER_MEDIA_TYPE,fc=tm==="application/xhtml+xml"?qk:hp,as="ALLOWED_TAGS"in Fn?cs({},Fn.ALLOWED_TAGS,fc):Sr,so="ALLOWED_ATTR"in Fn?cs({},Fn.ALLOWED_ATTR,fc):$a,Ey="ALLOWED_NAMESPACES"in Fn?cs({},Fn.ALLOWED_NAMESPACES,qk):QS,m2="ADD_URI_SAFE_ATTR"in Fn?cs(Ix(nE),Fn.ADD_URI_SAFE_ATTR,fc):nE,JS="ADD_DATA_URI_TAGS"in Fn?cs(Ix(tE),Fn.ADD_DATA_URI_TAGS,fc):tE,xp="FORBID_CONTENTS"in Fn?cs({},Fn.FORBID_CONTENTS,fc):eE,to="FORBID_TAGS"in Fn?cs({},Fn.FORBID_TAGS,fc):{},Lo="FORBID_ATTR"in Fn?cs({},Fn.FORBID_ATTR,fc):{},nh="USE_PROFILES"in Fn?Fn.USE_PROFILES:!1,vr=Fn.ALLOW_ARIA_ATTR!==!1,Oo=Fn.ALLOW_DATA_ATTR!==!1,Aa=Fn.ALLOW_UNKNOWN_PROTOCOLS||!1,ps=Fn.ALLOW_SELF_CLOSE_IN_ATTR!==!1,us=Fn.SAFE_FOR_TEMPLATES||!1,ml=Fn.WHOLE_DOCUMENT||!1,iu=Fn.RETURN_DOM||!1,pd=Fn.RETURN_DOM_FRAGMENT||!1,zo=Fn.RETURN_TRUSTED_TYPE||!1,cf=Fn.FORCE_BODY||!1,Oa=Fn.SANITIZE_DOM!==!1,vs=Fn.SANITIZE_NAMED_PROPS||!1,$s=Fn.KEEP_CONTENT!==!1,Iu=Fn.IN_PLACE||!1,zl=Fn.ALLOWED_URI_REGEXP||P7,em=Fn.NAMESPACE||rh,ha=Fn.CUSTOM_ELEMENT_HANDLING||{},Fn.CUSTOM_ELEMENT_HANDLING&&oE(Fn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ha.tagNameCheck=Fn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Fn.CUSTOM_ELEMENT_HANDLING&&oE(Fn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ha.attributeNameCheck=Fn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Fn.CUSTOM_ELEMENT_HANDLING&&typeof Fn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ha.allowCustomizedBuiltInElements=Fn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),us&&(Oo=!1),pd&&(iu=!0),nh&&(as=cs({},[...E7]),so=[],nh.html===!0&&(cs(as,j5),cs(so,X5)),nh.svg===!0&&(cs(as,Y5),cs(so,J5),cs(so,XC)),nh.svgFilters===!0&&(cs(as,cy),cs(so,J5),cs(so,XC)),nh.mathMl===!0&&(cs(as,K5),cs(so,_7),cs(so,XC))),Fn.ADD_TAGS&&(as===Sr&&(as=Ix(as)),cs(as,Fn.ADD_TAGS,fc)),Fn.ADD_ATTR&&(so===$a&&(so=Ix(so)),cs(so,Fn.ADD_ATTR,fc)),Fn.ADD_URI_SAFE_ATTR&&cs(m2,Fn.ADD_URI_SAFE_ATTR,fc),Fn.FORBID_CONTENTS&&(xp===eE&&(xp=Ix(xp)),cs(xp,Fn.FORBID_CONTENTS,fc)),$s&&(as["#text"]=!0),ml&&cs(as,["html","head","body"]),as.table&&(cs(as,["tbody"]),delete to.tbody),Fn.TRUSTED_TYPES_POLICY){if(typeof Fn.TRUSTED_TYPES_POLICY.createHTML!="function")throw Px('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Fn.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Px('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');yn=Fn.TRUSTED_TYPES_POLICY,$n=yn.createHTML("")}else yn===void 0&&(yn=N7(Rt,f)),yn!==null&&typeof $n=="string"&&($n=yn.createHTML(""));Bi&&Bi(Fn),_y=Fn}},ug=cs({},["mi","mo","mn","ms","mtext"]),v2=cs({},["foreignobject","desc","title","annotation-xml"]),On=cs({},["title","style","font","a","script"]),Pn=cs({},Y5);cs(Pn,cy),cs(Pn,A7);const yr=cs({},K5);cs(yr,M7);const dr=function(Fn){let ao=xn(Fn);(!ao||!ao.tagName)&&(ao={namespaceURI:em,tagName:"template"});const Ao=hp(Fn.tagName),ki=hp(ao.tagName);return Ey[Fn.namespaceURI]?Fn.namespaceURI===g0?ao.namespaceURI===rh?Ao==="svg":ao.namespaceURI===g2?Ao==="svg"&&(ki==="annotation-xml"||ug[ki]):!!Pn[Ao]:Fn.namespaceURI===g2?ao.namespaceURI===rh?Ao==="math":ao.namespaceURI===g0?Ao==="math"&&v2[ki]:!!yr[Ao]:Fn.namespaceURI===rh?ao.namespaceURI===g0&&!v2[ki]||ao.namespaceURI===g2&&!ug[ki]?!1:!yr[Ao]&&(On[Ao]||!Pn[Ao]):!!(tm==="application/xhtml+xml"&&Ey[Fn.namespaceURI]):!1},uo=function(Fn){tg(n.removed,{element:Fn});try{Fn.parentNode.removeChild(Fn)}catch{Fn.remove()}},ua=function(Fn,ao){try{tg(n.removed,{attribute:ao.getAttributeNode(Fn),from:ao})}catch{tg(n.removed,{attribute:null,from:ao})}if(ao.removeAttribute(Fn),Fn==="is"&&!so[Fn])if(iu||pd)try{uo(ao)}catch{}else try{ao.setAttribute(Fn,"")}catch{}},Fs=function(Fn){let ao,Ao;if(cf)Fn=""+Fn;else{const Ff=Z5(Fn,/^[\r\n\t ]+/);Ao=Ff&&Ff[0]}tm==="application/xhtml+xml"&&em===rh&&(Fn=''+Fn+"");const ki=yn?yn.createHTML(Fn):Fn;if(em===rh)try{ao=new at().parseFromString(ki,tm)}catch{}if(!ao||!ao.documentElement){ao=nr.createDocument(em,"template",null);try{ao.documentElement.innerHTML=p2?$n:ki}catch{}}const kc=ao.body||ao.documentElement;return Fn&&Ao&&kc.insertBefore(w.createTextNode(Ao),kc.childNodes[0]||null),em===rh?zn.call(ao,ml?"html":"body")[0]:ml?ao.documentElement:kc},Nu=function(Fn){return mr.call(Fn.ownerDocument||Fn,Fn,Pe.SHOW_ELEMENT|Pe.SHOW_COMMENT|Pe.SHOW_TEXT,null,!1)},Vl=function(Fn){return Fn instanceof Je&&(typeof Fn.nodeName!="string"||typeof Fn.textContent!="string"||typeof Fn.removeChild!="function"||!(Fn.attributes instanceof Ke)||typeof Fn.removeAttribute!="function"||typeof Fn.setAttribute!="function"||typeof Fn.namespaceURI!="string"||typeof Fn.insertBefore!="function"||typeof Fn.hasChildNodes!="function")},Ry=function(Fn){return typeof oe=="object"?Fn instanceof oe:Fn&&typeof Fn=="object"&&typeof Fn.nodeType=="number"&&typeof Fn.nodeName=="string"},vd=function(Fn,ao,Ao){er[Fn]&&DV(er[Fn],ki=>{ki.call(n,ao,Ao,_y)})},DF=function(Fn){let ao;if(vd("beforeSanitizeElements",Fn,null),Vl(Fn))return uo(Fn),!0;const Ao=fc(Fn.nodeName);if(vd("uponSanitizeElement",Fn,{tagName:Ao,allowedTags:as}),Fn.hasChildNodes()&&!Ry(Fn.firstElementChild)&&(!Ry(Fn.content)||!Ry(Fn.content.firstElementChild))&&ld(/<[/\w]/g,Fn.innerHTML)&&ld(/<[/\w]/g,Fn.textContent))return uo(Fn),!0;if(!as[Ao]||to[Ao]){if(!to[Ao]&&OF(Ao)&&(ha.tagNameCheck instanceof RegExp&&ld(ha.tagNameCheck,Ao)||ha.tagNameCheck instanceof Function&&ha.tagNameCheck(Ao)))return!1;if($s&&!xp[Ao]){const ki=xn(Fn)||Fn.parentNode,kc=ln(Fn)||Fn.childNodes;if(kc&&ki){const Ff=kc.length;for(let gl=Ff-1;gl>=0;--gl)ki.insertBefore(At(kc[gl],!0),It(Fn))}}return uo(Fn),!0}return Fn instanceof be&&!dr(Fn)||(Ao==="noscript"||Ao==="noembed"||Ao==="noframes")&&ld(/<\/no(script|embed|frames)/i,Fn.innerHTML)?(uo(Fn),!0):(us&&Fn.nodeType===3&&(ao=Fn.textContent,ao=Zd(ao,Qr," "),ao=Zd(ao,ho," "),ao=Zd(ao,na," "),Fn.textContent!==ao&&(tg(n.removed,{element:Fn.cloneNode()}),Fn.textContent=ao)),vd("afterSanitizeElements",Fn,null),!1)},$F=function(Fn,ao,Ao){if(Oa&&(ao==="id"||ao==="name")&&(Ao in w||Ao in LF))return!1;if(!(Oo&&!Lo[ao]&&ld(ca,ao))){if(!(vr&&ld(os,ao))){if(!so[ao]||Lo[ao]){if(!(OF(Fn)&&(ha.tagNameCheck instanceof RegExp&&ld(ha.tagNameCheck,Fn)||ha.tagNameCheck instanceof Function&&ha.tagNameCheck(Fn))&&(ha.attributeNameCheck instanceof RegExp&&ld(ha.attributeNameCheck,ao)||ha.attributeNameCheck instanceof Function&&ha.attributeNameCheck(ao))||ao==="is"&&ha.allowCustomizedBuiltInElements&&(ha.tagNameCheck instanceof RegExp&&ld(ha.tagNameCheck,Ao)||ha.tagNameCheck instanceof Function&&ha.tagNameCheck(Ao))))return!1}else if(!m2[ao]){if(!ld(zl,Zd(Ao,ei,""))){if(!((ao==="src"||ao==="xlink:href"||ao==="href")&&Fn!=="script"&&k7(Ao,"data:")===0&&JS[Fn])){if(!(Aa&&!ld(ka,Zd(Ao,ei,"")))){if(Ao)return!1}}}}}}return!0},OF=function(Fn){return Fn.indexOf("-")>0},d6=function(Fn){let ao,Ao,ki,kc;vd("beforeSanitizeAttributes",Fn,null);const{attributes:Ff}=Fn;if(!Ff)return;const gl={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:so};for(kc=Ff.length;kc--;){ao=Ff[kc];const{name:oh,namespaceURI:aE}=ao;Ao=oh==="value"?ao.value:$V(ao.value);const TJ=Ao;if(ki=fc(oh),gl.attrName=ki,gl.attrValue=Ao,gl.keepAttr=!0,gl.forceKeepAttr=void 0,vd("uponSanitizeAttribute",Fn,gl),Ao=gl.attrValue,gl.forceKeepAttr)continue;if(!gl.keepAttr){ua(oh,Fn);continue}if(!ps&&ld(/\/>/i,Ao)){ua(oh,Fn);continue}us&&(Ao=Zd(Ao,Qr," "),Ao=Zd(Ao,ho," "),Ao=Zd(Ao,na," "));const PF=fc(Fn.nodeName);if(!$F(PF,ki,Ao)){ua(oh,Fn);continue}if(vs&&(ki==="id"||ki==="name")&&(ua(oh,Fn),Ao=Gs+Ao),yn&&typeof Rt=="object"&&typeof Rt.getAttributeType=="function"&&!aE)switch(Rt.getAttributeType(PF,ki)){case"TrustedHTML":{Ao=yn.createHTML(Ao);break}case"TrustedScriptURL":{Ao=yn.createScriptURL(Ao);break}}if(Ao!==TJ)try{aE?Fn.setAttributeNS(aE,oh,Ao):Fn.setAttribute(oh,Ao)}catch{ua(oh,Fn)}}vd("afterSanitizeAttributes",Fn,null)},SJ=function la(Fn){let ao;const Ao=Nu(Fn);for(vd("beforeSanitizeShadowDOM",Fn,null);ao=Ao.nextNode();)vd("uponSanitizeShadowNode",ao,null),!DF(ao)&&(ao.content instanceof B&&la(ao.content),d6(ao));vd("afterSanitizeShadowDOM",Fn,null)};return n.sanitize=function(la){let Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ao,Ao,ki,kc;if(p2=!la,p2&&(la=""),typeof la!="string"&&!Ry(la))if(typeof la.toString=="function"){if(la=la.toString(),typeof la!="string")throw Px("dirty is not a string, aborting")}else throw Px("toString is not a function");if(!n.isSupported)return la;if(th||e3(Fn),n.removed=[],typeof la=="string"&&(Iu=!1),Iu){if(la.nodeName){const oh=fc(la.nodeName);if(!as[oh]||to[oh])throw Px("root node is forbidden and cannot be sanitized in-place")}}else if(la instanceof oe)ao=Fs(""),Ao=ao.ownerDocument.importNode(la,!0),Ao.nodeType===1&&Ao.nodeName==="BODY"||Ao.nodeName==="HTML"?ao=Ao:ao.appendChild(Ao);else{if(!iu&&!us&&!ml&&la.indexOf("<")===-1)return yn&&zo?yn.createHTML(la):la;if(ao=Fs(la),!ao)return iu?null:zo?$n:""}ao&&cf&&uo(ao.firstChild);const Ff=Nu(Iu?la:ao);for(;ki=Ff.nextNode();)DF(ki)||(ki.content instanceof B&&SJ(ki.content),d6(ki));if(Iu)return la;if(iu){if(pd)for(kc=Nr.call(ao.ownerDocument);ao.firstChild;)kc.appendChild(ao.firstChild);else kc=ao;return(so.shadowroot||so.shadowrootmode)&&(kc=Nn.call(r,kc,!0)),kc}let gl=ml?ao.outerHTML:ao.innerHTML;return ml&&as["!doctype"]&&ao.ownerDocument&&ao.ownerDocument.doctype&&ao.ownerDocument.doctype.name&&ld(tA,ao.ownerDocument.doctype.name)&&(gl=" -`+gl),us&&(gl=Zd(gl,Qr," "),gl=Zd(gl,ho," "),gl=Zd(gl,na," ")),yn&&zo?yn.createHTML(gl):gl},n.setConfig=function(la){e3(la),th=!0},n.clearConfig=function(){_y=null,th=!1},n.isValidAttribute=function(la,Fn,ao){_y||e3({});const Ao=fc(la),ki=fc(Fn);return $F(Ao,ki,ao)},n.addHook=function(la,Fn){typeof Fn=="function"&&(er[la]=er[la]||[],tg(er[la],Fn))},n.removeHook=function(la){if(er[la])return Ox(er[la])},n.removeHooks=function(la){er[la]&&(er[la]=[])},n.removeAllHooks=function(){er={}},n}var F7=JC();const B7=ur.each,jv=ur.trim,Q5=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],H7={ftp:21,http:80,https:443,mailto:25},QC=["img","video"],z7=(e,n)=>k(e)?!e:k(n)?!Ve(QC,n):!0,q5=e=>{try{return decodeURIComponent(e)}catch{return unescape(e)}},eR=(e,n,r)=>{const f=q5(n).replace(/\s/g,"");return e.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(f)?!0:e.allow_html_data_urls?!1:/^data:image\//i.test(f)?z7(e.allow_svg_data_urls,r)&&/^data:image\/svg\+xml/i.test(f):/^data:/i.test(f)};class cd{static parseDataUri(n){let r;const f=decodeURIComponent(n).split(","),w=/data:([^;]+)/.exec(f[0]);return w&&(r=w[1]),{type:r,data:f[1]}}static isDomSafe(n,r,f={}){if(f.allow_script_urls)return!0;{const w=km.decode(n).replace(/[\s\u0000-\u001F]+/g,"");return!eR(f,w,r)}}static getDocumentBaseUrl(n){var r;let f;return n.protocol.indexOf("http")!==0&&n.protocol!=="file:"?f=(r=n.href)!==null&&r!==void 0?r:"":f=n.protocol+"//"+n.host+n.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(f)&&(f=f.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(f)||(f+="/")),f}constructor(n,r={}){this.path="",this.directory="",n=jv(n),this.settings=r;const f=r.base_uri,w=this;if(/^([\w\-]+):([^\/]{2})/i.test(n)||/^\s*#/.test(n)){w.source=n;return}const B=n.indexOf("//")===0;if(n.indexOf("/")===0&&!B&&(n=(f&&f.protocol||"http")+"://mce_host"+n),!/^[\w\-]*:?\/\//.test(n)){const oe=f?f.path:new cd(document.location.href).directory;if((f==null?void 0:f.protocol)==="")n="//mce_host"+w.toAbsPath(oe,n);else{const be=/([^#?]*)([#?]?.*)/.exec(n);be&&(n=(f&&f.protocol||"http")+"://mce_host"+w.toAbsPath(oe,be[1])+be[2])}}n=n.replace(/@@/g,"(mce_at)");const Z=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(n);Z&&B7(Q5,(oe,be)=>{let Pe=Z[be];Pe&&(Pe=Pe.replace(/\(mce_at\)/g,"@@")),w[oe]=Pe}),f&&(w.protocol||(w.protocol=f.protocol),w.userInfo||(w.userInfo=f.userInfo),!w.port&&w.host==="mce_host"&&(w.port=f.port),(!w.host||w.host==="mce_host")&&(w.host=f.host),w.source=""),B&&(w.protocol="")}setPath(n){const r=/^(.*?)\/?(\w+)?$/.exec(n);r&&(this.path=r[0],this.directory=r[1],this.file=r[2]),this.source="",this.getURI()}toRelative(n){if(n==="./")return n;const r=new cd(n,{base_uri:this});if(r.host!=="mce_host"&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&r.protocol!=="")return r.getURI();const f=this.getURI(),w=r.getURI();if(f===w||f.charAt(f.length-1)==="/"&&f.substr(0,f.length-1)===w)return f;let B=this.toRelPath(this.path,r.path);return r.query&&(B+="?"+r.query),r.anchor&&(B+="#"+r.anchor),B}toAbsolute(n,r){const f=new cd(n,{base_uri:this});return f.getURI(r&&this.isSameOrigin(f))}isSameOrigin(n){if(this.host==n.host&&this.protocol==n.protocol){if(this.port==n.port)return!0;const r=this.protocol?H7[this.protocol]:null;if(r&&(this.port||r)==(n.port||r))return!0}return!1}toRelPath(n,r){let f=0,w="",B,Z;const oe=n.substring(0,n.lastIndexOf("/")).split("/"),be=r.split("/");if(oe.length>=be.length){for(B=0,Z=oe.length;B=be.length||oe[B]!==be[B]){f=B+1;break}}if(oe.length=oe.length||oe[B]!==be[B]){f=B+1;break}}if(f===1)return r;for(B=0,Z=oe.length-(f-1);B{Je&&oe.push(Je)});const be=[];for(let Je=Z.length-1;Je>=0;Je--)if(!(Z[Je].length===0||Z[Je]===".")){if(Z[Je]===".."){f++;continue}if(f>0){f--;continue}be.push(Z[Je])}const Pe=oe.length-f;let Ke;return Pe<=0?Ke=ot(be).join("/"):Ke=oe.slice(0,Pe).join("/")+"/"+ot(be).join("/"),Ke.indexOf("/")!==0&&(Ke="/"+Ke),w&&Ke.lastIndexOf("/")!==Ke.length-1&&(Ke+=w),Ke}getURI(n=!1){let r;return(!this.source||n)&&(r="",n||(this.protocol?r+=this.protocol+"://":r+="//",this.userInfo&&(r+=this.userInfo+"@"),this.host&&(r+=this.host),this.port&&(r+=":"+this.port)),this.path&&(r+=this.path),this.query&&(r+="?"+this.query),this.anchor&&(r+="#"+this.anchor),this.source=r),this.source}}const NV=ur.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),tR="data-mce-type";let V7=0;const nA=(e,n,r,f,w)=>{var B,Z,oe,be;const Pe=n.validate,Ke=r.getSpecialElements();e.nodeType===Uf&&!n.allow_conditional_comments&&/^\[if/i.test((B=e.nodeValue)!==null&&B!==void 0?B:"")&&(e.nodeValue=" "+e.nodeValue);const Je=(Z=w==null?void 0:w.tagName)!==null&&Z!==void 0?Z:e.nodeName.toLowerCase();if(f!=="html"&&r.isValid(f)){k(w)&&(w.allowedTags[Je]=!0);return}if(e.nodeType!==wd||Je==="body")return;const at=jt.fromDom(e),Rt=Gu(at,tR),Ht=il(at,"data-mce-bogus");if(!Rt&&C(Ht)){Ht==="all"?Ua(at):Xu(at);return}const At=r.getElementRule(Je);if(Pe&&!At){lt(Ke,Je)?Ua(at):Xu(at);return}else k(w)&&(w.allowedTags[Je]=!0);if(Pe&&At&&!Rt){if(ie((oe=At.attributesForced)!==null&&oe!==void 0?oe:[],It=>{ws(at,It.name,It.value==="{$uid}"?`mce_${V7++}`:It.value)}),ie((be=At.attributesDefault)!==null&&be!==void 0?be:[],It=>{Gu(at,It.name)||ws(at,It.name,It.value==="{$uid}"?`mce_${V7++}`:It.value)}),At.attributesRequired&&!Oe(At.attributesRequired,It=>Gu(at,It))){Xu(at);return}if(At.removeEmptyAttrs&&Zu(at)){Xu(at);return}At.outputName&&At.outputName!==Je&&Qf(at,At.outputName)}},FV=(e,n,r,f,w)=>{const B=e.tagName.toLowerCase(),{attrName:Z,attrValue:oe}=w;w.keepAttr=nR(n,r,f,B,Z,oe),w.keepAttr?(w.allowedAttributes[Z]=!0,W7(Z,r)&&(w.attrValue=Z),n.allow_svg_data_urls&&wr(oe,"data:image/svg+xml")&&(w.forceKeepAttr=!0)):U7(e,Z)&&(w.forceKeepAttr=!0)},nR=(e,n,r,f,w,B)=>r!=="html"&&!nc(f)?!0:!(w in NV&&eR(e,B,f))&&(!e.validate||n.isValid(f,w)||wr(w,"data-")||wr(w,"aria-")),U7=(e,n)=>e.hasAttribute(tR)&&(n==="id"||n==="class"||n==="style"),W7=(e,n)=>e in n.getBoolAttrs(),BV=(e,n,r,f)=>{const{attributes:w}=e;for(let B=w.length-1;B>=0;B--){const Z=w[B],oe=Z.name,be=Z.value;!nR(n,r,f,e.tagName.toLowerCase(),oe,be)&&!U7(e,oe)?e.removeAttribute(oe):W7(oe,r)&&e.setAttribute(oe,oe)}},HV=(e,n,r)=>{const f=F7();return f.addHook("uponSanitizeElement",(w,B)=>{nA(w,e,n,r.track(w),B)}),f.addHook("uponSanitizeAttribute",(w,B)=>{FV(w,e,n,r.current(),B)}),f},zV=(e,n)=>{const f={...{IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]}};return f.PARSER_MEDIA_TYPE=n,e.allow_script_urls?f.ALLOWED_URI_REGEXP=/.*/:e.allow_html_data_urls&&(f.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),f},VV=e=>{const n=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(f=>`xlink:${f}`),r={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:n};return F7().sanitize(e,r),e.innerHTML},UV=(e,n)=>{const r=Kf();if(e.sanitize){const f=HV(e,n,r);return{sanitizeHtmlElement:(B,Z)=>{f.sanitize(B,zV(e,Z)),f.removed=[],r.reset()},sanitizeNamespaceElement:VV}}else return{sanitizeHtmlElement:(B,Z)=>{const oe=document.createNodeIterator(B,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let be;for(;be=oe.nextNode();){const Pe=r.track(be);nA(be,e,n,Pe),Gr(be)&&BV(be,e,n,Pe)}r.reset()},sanitizeNamespaceElement:j}},G7=ur.makeMap,Z7=ur.extend,qC=(e,n,r,f)=>{const w=e.name,B=w in r&&w!=="title"&&w!=="textarea",Z=n.childNodes;for(let oe=0,be=Z.length;oe{const f=[];for(let w=e,B=w;w;B=w,w=w.walk()){const Z=w;ie(n,oe=>oe(Z)),M(Z.parent)&&Z!==e?w=B:f.push(Z)}for(let w=f.length-1;w>=0;w--){const B=f[w];ie(r,Z=>Z(B))}},WV=(e,n,r,f)=>{const w=r.validate,B=n.getNonEmptyElements(),Z=n.getWhitespaceElements(),oe=Z7(G7("script,style,head,html,body,title,meta,param"),n.getBlockElements()),be=I3(n),Pe=/[ \t\r\n]+/g,Ke=/^[ \t\r\n]+/,Je=/[ \t\r\n]+$/,at=xn=>{let yn=xn.parent;for(;k(yn);){if(yn.name in Z)return!0;yn=yn.parent}return!1},Rt=xn=>{let yn=xn;for(;k(yn);){if(yn.name in be)return Sx(n,B,Z,yn);yn=yn.parent}return!1},Ht=xn=>xn.name in oe||kh(n,xn)||nc(xn.name)&&xn.parent===e,At=(xn,yn)=>{const $n=yn?xn.prev:xn.next;return k($n)||M(xn.parent)?!1:Ht(xn.parent)&&(xn.parent!==e||f.isRootContent===!0)};return[xn=>{var yn;if(xn.type===3&&!at(xn)){let $n=(yn=xn.value)!==null&&yn!==void 0?yn:"";$n=$n.replace(Pe," "),(f5(xn.prev,Ht)||At(xn,!0))&&($n=$n.replace(Ke,"")),$n.length===0?xn.remove():xn.value=$n}},xn=>{var yn;if(xn.type===1){const $n=n.getElementRule(xn.name);if(w&&$n){const nr=Sx(n,B,Z,xn);$n.paddInEmptyBlock&&nr&&Rt(xn)?$k(r,f,Ht,xn):$n.removeEmpty&&nr?Ht(xn)?xn.remove():xn.unwrap():$n.paddEmpty&&(nr||M8(xn))&&$k(r,f,Ht,xn)}}else if(xn.type===3&&!at(xn)){let $n=(yn=xn.value)!==null&&yn!==void 0?yn:"";(xn.next&&Ht(xn.next)||At(xn,!1))&&($n=$n.replace(Je,"")),$n.length===0?xn.remove():xn.value=$n}}]},rA=(e,n)=>{var r;const f=(r=n.forced_root_block)!==null&&r!==void 0?r:e.forced_root_block;return f===!1?"":f===!0?"p":f},Yd=(e={},n=_h())=>{const r=y7(),f=y7(),w={validate:!0,root_name:"body",sanitize:!0,...e},B=new DOMParser,Z=UV(w,n),oe=(yn,$n,nr="html")=>{const mr=nr==="xhtml"?"application/xhtml+xml":"text/html",Nr=lt(n.getSpecialElements(),$n.toLowerCase()),zn=Nr?`<${$n}>${yn}`:yn,Nn=nr==="xhtml"?`${zn}`:`${zn}`,er=B.parseFromString(Nn,mr).body;return Z.sanitizeHtmlElement(er,mr),Nr?er.firstChild:er},be=r.addFilter,Pe=r.getFilters,Ke=r.removeFilter,Je=f.addFilter,at=f.getFilters,Rt=f.removeFilter,Ht=(yn,$n)=>{Ik(n,yn)&&$n.push(yn)},At=(yn,$n)=>{const nr=C($n.attr(tR)),mr=$n.type===1&&!lt(yn,$n.name)&&!kh(n,$n)&&!nc($n.name);return $n.type===3||mr&&!nr},It=(yn,$n)=>{const nr=Z7(G7("script,style,head,html,body,title,meta,param"),n.getBlockElements()),mr=/^[ \t\r\n]+/,Nr=/[ \t\r\n]+$/;let zn=yn.firstChild,Nn=null;const er=Qr=>{var ho,na;Qr&&(zn=Qr.firstChild,zn&&zn.type===3&&(zn.value=(ho=zn.value)===null||ho===void 0?void 0:ho.replace(mr,"")),zn=Qr.lastChild,zn&&zn.type===3&&(zn.value=(na=zn.value)===null||na===void 0?void 0:na.replace(Nr,"")))};if(n.isValidChild(yn.name,$n.toLowerCase())){for(;zn;){const Qr=zn.next;At(nr,zn)?(Nn||(Nn=new Hc($n,1),Nn.attr(w.forced_root_block_attrs),yn.insert(Nn,zn)),Nn.append(zn)):(er(Nn),Nn=null),zn=Qr}er(Nn)}},xn={schema:n,addAttributeFilter:Je,getAttributeFilters:at,removeAttributeFilter:Rt,addNodeFilter:be,getNodeFilters:Pe,removeNodeFilter:Ke,parse:(yn,$n={})=>{var nr;const mr=w.validate,Nr=(nr=$n.context)!==null&&nr!==void 0?nr:w.root_name,zn=oe(yn,Nr,$n.format);q0(n,zn);const Nn=new Hc(Nr,11);qC(Nn,zn,n.getSpecialElements(),Z.sanitizeNamespaceElement),zn.innerHTML="";const[er,Qr]=WV(Nn,n,w,$n),ho=[],na=mr?ei=>Ht(ei,ho):j,ca={nodes:{},attributes:{}},os=ei=>i5(Pe(),at(),ei,ca);if(Vc(Nn,[er,os],[Qr,na]),ho.reverse(),mr&&ho.length>0)if($n.context){const{pass:ei,fail:zl}=se(ho,as=>as.parent===Nn);Pk(zl,n,Nn,os),$n.invalid=ei.length>0}else Pk(ho,n,Nn,os);const ka=rA(w,$n);return ka&&(Nn.name==="body"||$n.isRootContent)&&It(Nn,ka),$n.invalid||l5(ca,$n),Nn}};return T7(xn,w),V5(xn,w,n),xn},j7=e=>Bk(e)?Uv({validate:!1}).serialize(e):e,Du=(e,n,r)=>{const f=j7(e),w=n(f);if(w.isDefaultPrevented())return w;if(Bk(e))if(w.content!==f){const B=Yd({validate:!1,forced_root_block:!1,...r}).parse(w.content,{context:e.name});return{...w,content:B}}else return{...w,content:e};else return w},Yv=(e,n)=>{if(n.no_events)return Oc.value(n);{const r=u_(e,n);return r.isDefaultPrevented()?Oc.error(da(e,{content:"",...r}).content):Oc.value(r)}},rR=(e,n,r)=>r.no_events?n:Du(n,w=>da(e,{...r,content:w}),{sanitize:bv(e),sandbox_iframes:Vb(e)}).content,oR=(e,n)=>{if(n.no_events)return Oc.value(n);{const r=Du(n.content,f=>h$(e,{...n,content:f}),{sanitize:bv(e),sandbox_iframes:Vb(e)});return r.isDefaultPrevented()?(QT(e,r),Oc.error(void 0)):Oc.value(r)}},oA=(e,n,r)=>{r.no_events||QT(e,{...r,content:n})},aR=(e,n,r)=>({element:e,width:n,rows:r}),sR=(e,n)=>({element:e,cells:n}),eS=(e,n)=>({x:e,y:n}),aA=(e,n)=>Yl(e,n).bind(Bt).getOr(1),GV=(e,n,r,f,w)=>{const B=aA(w,"rowspan"),Z=aA(w,"colspan"),oe=e.rows;for(let be=r;be{const f=e.rows;return!!(f[r]?f[r].cells:[])[n]},ZV=(e,n,r)=>{for(;Y7(e,n,r);)n++;return n},sA=e=>le(e,(n,r)=>r.cells.length>n?r.cells.length:n,0),iA=(e,n)=>{const r=e.rows;for(let f=0;f{const B=[],Z=e.rows;for(let oe=r;oe<=w;oe++){const be=Z[oe].cells,Pe=n{const f=n.x,w=n.y,B=r.x,Z=r.y,oe=w{const r=tu(e.element),f=jt.fromTag("tbody");return hs(f,n),di(r,f),r},iR=e=>Fe(e.rows,n=>{const r=Fe(n.cells,w=>{const B=kb(w);return Xs(B,"colspan"),Xs(B,"rowspan"),B}),f=tu(n.element);return hs(f,r),f}),YV=e=>{const n=aR(tu(e),0,[]);return ie(Vi(e,"tr"),(r,f)=>{ie(Vi(r,"td,th"),(w,B)=>{GV(n,ZV(n,B,f),f,r,w)})}),aR(n.element,sA(n.rows),n.rows)},lA=e=>ng(e,iR(e)),lR=(e,n,r)=>iA(e,n).bind(f=>iA(e,r).map(w=>jV(e,f,w))),X7=e=>de(e,n=>La(n)==="ul"||La(n)==="ol"),J7=(e,n)=>de(e,r=>La(r)==="li"&&nC(r,n)).fold(J([]),r=>X7(e).map(f=>{const w=jt.fromTag(La(f)),B=Cn(W0(f),(Z,oe)=>wr(oe,"list-style"));return $l(w,B),[jt.fromTag("li"),w]}).getOr([])),Q7=(e,n)=>{const r=le(n,(f,w)=>(di(w,f),w),e);return n.length>0?xC([r]):r},KV=e=>yf(e)?Rc(e).filter(ql).fold(J([]),n=>[e,n]):ql(e)?[e]:[],XV=(e,n,r)=>{const f=jt.fromDom(n.commonAncestorContainer),w=Ym(f,e),B=ue(w,be=>r.isWrapper(La(be))),Z=J7(w,n),oe=B.concat(Z.length?Z:KV(f));return Fe(oe,tu)},q7=()=>xC([]),JV=(e,n,r)=>Q7(jt.fromDom(n.cloneContents()),XV(e,n,r)),QV=(e,n)=>vm(n,"table",Q(Ba,e)),eO=(e,n)=>QV(e,n[0]).bind(r=>{const f=n[0],w=n[n.length-1],B=YV(r);return lR(B,f,w).map(Z=>xC([lA(Z)]))}).getOrThunk(q7),qV=(e,n,r)=>n.length>0&&n[0].collapsed?q7():JV(e,n[0],r),eU=(e,n,r)=>{const f=e_(n,e);return f.length>0?eO(e,f):qV(e,n,r)},cA=(e,n)=>n>=0&&n_e(e.innerText),uR=e=>e.map(n=>n.nodeName).getOr("div").toLowerCase(),fR=e=>X.from(e.selection.getRng()).map(n=>{var r;const f=X.from(e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock)),w=e.getBody(),B=uR(f),Z=jt.fromDom(n.cloneContents());jo(Z),O_(Z);const oe=e.dom.add(w,B,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},Z.dom),be=cR(oe),Pe=_e((r=oe.textContent)!==null&&r!==void 0?r:"");if(e.dom.remove(oe),cA(Pe,0)||cA(Pe,Pe.length-1)){const Ke=f.getOr(w),Je=cR(Ke),at=Je.indexOf(be);if(at===-1)return be;{const Rt=cA(Je,at-1),Ht=cA(Je,at+be.length);return(Rt?" ":"")+be+(Ht?" ":"")}}else return be}).getOr(""),tO=(e,n)=>{const r=e.selection.getRng(),f=e.dom.create("body"),w=e.selection.getSel(),B=$_(e,Qb(w)),Z=n.contextual?eU(jt.fromDom(e.getBody()),B,e.schema).dom:r.cloneContents();return Z&&f.appendChild(Z),e.selection.serializer.serialize(f,n)},dR=(e,n)=>{if(n.format==="text")return fR(e);{const r=tO(e,n);return n.format==="tree"?r:e.selection.isCollapsed()?"":r}},nO=(e,n)=>({...e,format:n,get:!0,selection:!0,getInner:!0}),rO=(e,n,r={})=>{const f=nO(r,n);return Yv(e,f).fold(K,w=>{const B=dR(e,w);return rR(e,B,w)})},tS=0,hR=1,mR=2,oO=(e,n)=>{const r=e.length+n.length+2,f=new Array(r),w=new Array(r),B=(Ke,Je,at)=>({start:Ke,end:Je,diag:at}),Z=(Ke,Je,at,Rt,Ht)=>{const At=be(Ke,Je,at,Rt);if(At===null||At.start===Je&&At.diag===Je-Rt||At.end===Ke&&At.diag===Ke-at){let It=Ke,ln=at;for(;ItRt-at?(Ht.push([mR,e[It]]),++It):(Ht.push([hR,n[ln]]),++ln)}else{Z(Ke,At.start,at,At.start-At.diag,Ht);for(let It=At.start;It{let Ht=Ke;for(;Ht-Je{const Ht=Je-Ke,At=Rt-at;if(Ht===0||At===0)return null;const It=Ht-At,ln=At+Ht,xn=(ln%2===0?ln:ln+1)/2;f[1+xn]=Ke,w[1+xn]=Je+1;let yn,$n,nr,mr,Nr;for(yn=0;yn<=xn;++yn){for($n=-yn;$n<=yn;$n+=2){for(nr=$n+xn,$n===-yn||$n!==yn&&f[nr-1]=Ke&&Nr>=at&&e[mr]===n[Nr];)w[nr]=mr--,Nr--;if(It%2===0&&-yn<=$n&&$n<=yn&&w[nr]<=f[nr+It])return oe(w[nr],$n+Ke-at,Je,Rt)}}return null},Pe=[];return Z(0,e.length,0,n.length,Pe),Pe},gR=e=>Gr(e)?e.outerHTML:ir(e)?km.encodeRaw(e.data,!1):gf(e)?"":"",pR=e=>{let n;const r=document.createElement("div"),f=document.createDocumentFragment();for(e&&(r.innerHTML=e);n=r.firstChild;)f.appendChild(n);return f},tU=(e,n,r)=>{const f=pR(n);if(e.hasChildNodes()&&r{if(e.hasChildNodes()&&n{let r=0;ie(e,f=>{f[0]===tS?r++:f[0]===hR?(tU(n,f[1],r),r++):f[0]===mR&&uA(n,r)})},rU=(e,n)=>ue(Fe(tt(e.childNodes),n?P(_e,gR):gR),r=>r.length>0),oU=(e,n)=>{const r=Fe(tt(n.childNodes),gR);return nU(oO(r,e),n),n},aO=Dt(()=>document.implementation.createHTMLDocument("undo")),sO=e=>e.querySelector("iframe")!==null,aU=e=>({type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}),sU=e=>({type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}),fA=e=>{const n=e.serializer.getTempAttrs(),r=B$(e.getBody(),n);return sO(r)?aU(rU(r,!0)):sU(_e(r.innerHTML))},vR=(e,n,r)=>{const f=r?n.beforeBookmark:n.bookmark;n.type==="fragmented"?oU(n.fragments,e.getBody()):e.setContent(n.content,{format:"raw",no_selection:k(f)&&IT(f)?!f.isFakeCaret:!0}),f&&(e.selection.moveToBookmark(f),e.selection.scrollIntoView())},yR=e=>e.type==="fragmented"?e.fragments.join(""):e.content,bR=e=>{const n=jt.fromTag("body",aO());return bh(n,yR(e)),ie(Vi(n,"*[data-mce-bogus]"),Xu),aa(n)},bee=(e,n)=>yR(e)===yR(n),iU=(e,n)=>bR(e)===bR(n),xR=(e,n)=>!e||!n?!1:bee(e,n)?!0:iU(e,n),wR=e=>e.get()===0,dA=(e,n,r)=>{wR(r)&&(e.typing=n)},iO=(e,n)=>{e.typing&&(dA(e,!1,n),e.add())},lU=e=>{e.typing&&(e.typing=!1,e.add())},cU=(e,n,r)=>{wR(n)&&r.set(dv(e.selection))},lO=(e,n,r,f,w,B,Z)=>{const oe=fA(e),be=ur.extend(B||{},oe);if(!wR(f)||e.removed)return null;const Pe=n.data[r.get()];if(e.dispatch("BeforeAddUndo",{level:be,lastLevel:Pe,originalEvent:Z}).isDefaultPrevented()||Pe&&xR(Pe,be))return null;n.data[r.get()]&&w.get().each(at=>{n.data[r.get()].beforeBookmark=at});const Ke=x1(e);if(Ke&&n.data.length>Ke){for(let at=0;at0?(e.setDirty(!0),e.dispatch("AddUndo",Je),e.dispatch("change",Je)):e.dispatch("AddUndo",Je),be},uU=(e,n,r)=>{n.data=[],r.set(0),n.typing=!1,e.dispatch("ClearUndos")},fU=(e,n,r,f,w)=>{if(n.transact(f)){const B=n.data[r.get()].bookmark,Z=n.data[r.get()-1];vR(e,Z,!0),n.transact(w)&&(n.data[r.get()-1].beforeBookmark=B)}},dU=(e,n,r)=>{let f;return n.get(){let w;return n.typing&&(n.add(),n.typing=!1,dA(n,!1,r)),f.get()>0&&(f.set(f.get()-1),w=n.data[f.get()],vR(e,w,!0),e.setDirty(!0),e.dispatch("Undo",{level:w})),w},mU=e=>{e.clear(),e.add()},xee=(e,n,r)=>r.get()>0||n.typing&&n.data[0]&&!xR(fA(e),n.data[0]),wee=(e,n)=>n.get()(iO(e,n),e.beforeChange(),e.ignore(r),e.add()),pU=(e,n)=>{try{e.set(e.get()+1),n()}finally{e.set(e.get()-1)}},Cee=(e,n)=>{const r=e.dom,f=k(n)?n:e.getBody();ie(r.select("table,a",f),w=>{switch(w.nodeName){case"TABLE":const B=A4(e),Z=r.getAttrib(w,"border");(!Z||Z==="0")&&e.hasVisual?r.addClass(w,B):r.removeClass(w,B);break;case"A":if(!r.getAttrib(w,"href")){const oe=r.getAttrib(w,"name")||w.id,be=vT(e);oe&&e.hasVisual?r.addClass(w,be):r.removeClass(w,be)}break}}),e.dispatch("VisualAid",{element:n,hasVisual:e.hasVisual})},cO=e=>({init:{bindEvents:j},undoManager:{beforeChange:(n,r)=>cU(e,n,r),add:(n,r,f,w,B,Z)=>lO(e,n,r,f,w,B,Z),undo:(n,r,f)=>hU(e,n,r,f),redo:(n,r)=>dU(e,n,r),clear:(n,r)=>uU(e,n,r),reset:n=>mU(n),hasUndo:(n,r)=>xee(e,n,r),hasRedo:(n,r)=>wee(n,r),transact:(n,r,f)=>gU(n,r,f),ignore:(n,r)=>pU(n,r),extra:(n,r,f,w)=>fU(e,n,r,f,w)},formatter:{match:(n,r,f,w)=>Hk(e,n,r,f,w),matchAll:(n,r)=>nV(e,n,r),matchNode:(n,r,f,w)=>Xm(e,n,r,f,w),canApply:n=>W8(e,n),closest:n=>sy(e,n),apply:(n,r,f)=>h7(e,n,r,f),remove:(n,r,f,w)=>c7(e,n,r,f,w),toggle:(n,r,f)=>wV(e,n,r,f),formatChanged:(n,r,f,w,B)=>xV(e,n,r,f,w,B)},editor:{getContent:n=>fee(e,n),setContent:(n,r)=>z8(e,n,r),insertContent:(n,r)=>H8(e,n,r),addVisual:n=>Cee(e,n)},selection:{getContent:(n,r)=>rO(e,n,r)},autocompleter:{addDecoration:n=>WH(e,n),removeDecoration:()=>ZH(e,jt.fromDom(e.getBody()))},raw:{getModel:()=>X.none()}}),pi=e=>{const n=Pe=>_(Pe)?Pe:{},{init:r,undoManager:f,formatter:w,editor:B,selection:Z,autocompleter:oe,raw:be}=e;return{init:{bindEvents:r.bindEvents},undoManager:{beforeChange:f.beforeChange,add:f.add,undo:f.undo,redo:f.redo,clear:f.clear,reset:f.reset,hasUndo:f.hasUndo,hasRedo:f.hasRedo,transact:(Pe,Ke,Je)=>f.transact(Je),ignore:(Pe,Ke)=>f.ignore(Ke),extra:(Pe,Ke,Je,at)=>f.extra(Je,at)},formatter:{match:(Pe,Ke,Je,at)=>w.match(Pe,n(Ke),at),matchAll:w.matchAll,matchNode:w.matchNode,canApply:Pe=>w.canApply(Pe),closest:Pe=>w.closest(Pe),apply:(Pe,Ke,Je)=>w.apply(Pe,n(Ke)),remove:(Pe,Ke,Je,at)=>w.remove(Pe,n(Ke)),toggle:(Pe,Ke,Je)=>w.toggle(Pe,n(Ke)),formatChanged:(Pe,Ke,Je,at,Rt)=>w.formatChanged(Ke,Je,at,Rt)},editor:{getContent:Pe=>B.getContent(Pe),setContent:(Pe,Ke)=>({content:B.setContent(Pe,Ke),html:""}),insertContent:(Pe,Ke)=>(B.insertContent(Pe),""),addVisual:B.addVisual},selection:{getContent:(Pe,Ke)=>Z.getContent(Ke)},autocompleter:{addDecoration:oe.addDecoration,removeDecoration:oe.removeDecoration},raw:{getModel:()=>X.some(be.getRawModel())}}},CR=()=>{const e=J(null),n=J("");return{init:{bindEvents:j},undoManager:{beforeChange:j,add:e,undo:e,redo:e,clear:j,reset:j,hasUndo:ne,hasRedo:ne,transact:e,ignore:j,extra:j},formatter:{match:ne,matchAll:J([]),matchNode:J(void 0),canApply:ne,closest:n,apply:j,remove:j,toggle:j,formatChanged:J({unbind:j})},editor:{getContent:n,setContent:J({content:"",html:""}),insertContent:J(""),addVisual:j},selection:{getContent:n},autocompleter:{addDecoration:j,removeDecoration:j},raw:{getModel:J(X.none())}}},mp=e=>lt(e.plugins,"rtc"),vU=e=>wn(e.plugins,"rtc").bind(n=>X.from(n.setup)),yU=e=>{const n=e;return vU(e).fold(()=>(n.rtcInstance=cO(e),X.none()),r=>(n.rtcInstance=CR(),X.some(()=>r().then(f=>(n.rtcInstance=pi(f),f.rtc.isRemote)))))},Kv=e=>e.rtcInstance?e.rtcInstance:cO(e),el=e=>{const n=e.rtcInstance;if(n)return n;throw new Error("Failed to get RTC instance not yet initialized.")},See=(e,n,r)=>{el(e).undoManager.beforeChange(n,r)},cc=(e,n,r,f,w,B,Z)=>el(e).undoManager.add(n,r,f,w,B,Z),uO=(e,n,r,f)=>el(e).undoManager.undo(n,r,f),fO=(e,n,r)=>el(e).undoManager.redo(n,r),dO=(e,n,r)=>{el(e).undoManager.clear(n,r)},bU=(e,n)=>{el(e).undoManager.reset(n)},xU=(e,n,r)=>el(e).undoManager.hasUndo(n,r),hA=(e,n,r)=>el(e).undoManager.hasRedo(n,r),wU=(e,n,r,f)=>el(e).undoManager.transact(n,r,f),SR=(e,n,r)=>{el(e).undoManager.ignore(n,r)},CU=(e,n,r,f,w)=>{el(e).undoManager.extra(n,r,f,w)},hO=(e,n,r,f,w)=>el(e).formatter.match(n,r,f,w),mO=(e,n,r)=>el(e).formatter.matchAll(n,r),TR=(e,n,r,f,w)=>el(e).formatter.matchNode(n,r,f,w),gO=(e,n)=>el(e).formatter.canApply(n),kR=(e,n)=>el(e).formatter.closest(n),SU=(e,n,r,f)=>{el(e).formatter.apply(n,r,f)},TU=(e,n,r,f,w)=>{el(e).formatter.remove(n,r,f,w)},kU=(e,n,r,f)=>{el(e).formatter.toggle(n,r,f)},ud=(e,n,r,f,w,B)=>el(e).formatter.formatChanged(n,r,f,w,B),AU=(e,n)=>Kv(e).editor.getContent(n),MU=(e,n,r)=>Kv(e).editor.setContent(n,r),EU=(e,n,r)=>Kv(e).editor.insertContent(n,r),_U=(e,n,r)=>el(e).selection.getContent(n,r),RU=(e,n)=>el(e).editor.addVisual(n),AR=e=>el(e).init.bindEvents(),LU=(e,n)=>el(e).autocompleter.addDecoration(n),DU=e=>el(e).autocompleter.removeDecoration(),$U=(e,n={})=>{const r=n.format?n.format:"html";return _U(e,r,n)},nS=e=>e.dom.length===0?(Ua(e),X.none()):X.some(e),OU=(e,n)=>e.filter(r=>rp.isBookmarkNode(r.dom)).bind(n?Lg:hu),PU=(e,n,r,f,w)=>{const B=e.dom,Z=n.dom,oe=f?B.length:Z.length;f?(hl(B,Z,w,!1,!f),r.setStart(Z,oe)):(hl(Z,B,w,!1,!f),r.setEnd(Z,oe))},pO=(e,n,r)=>{Rc(e).each(f=>{const w=e.dom;n&&yx(f,In(w,0),r)?ty(w,0,r):!n&&bx(f,In(w,w.length),r)&&l8(w,w.length,r)})},mA=(e,n,r,f,w)=>{e.bind(B=>((f?l8:ty)(B.dom,f?B.dom.length:0,w),n.filter(Ei).map(oe=>PU(B,oe,r,f,w)))).orThunk(()=>OU(n,f).or(n).filter(Ei).map(Z=>pO(Z,f,w)))},IU=(e,n,r)=>{const f=X.from(n.firstChild).map(jt.fromDom),w=X.from(n.lastChild).map(jt.fromDom);e.deleteContents(),e.insertNode(n);const B=f.bind(hu).filter(Ei).bind(nS),Z=w.bind(Lg).filter(Ei).bind(nS);mA(B,f,e,!0,r),mA(Z,w,e,!1,r),e.collapse(!1)},NU=(e,n)=>({format:"html",...e,set:!0,selection:!0,content:n}),Tee=(e,n)=>{if(n.format!=="raw"){const r=e.selection.getRng(),f=e.dom.getParent(r.commonAncestorContainer,e.dom.isBlock),w=f?{context:f.nodeName.toLowerCase()}:{},B=e.parser.parse(n.content,{forced_root_block:!1,...w,...n});return Uv({validate:!1},e.schema).serialize(B)}else return n.content},FU=(e,n,r={})=>{const f=NU(r,n);oR(e,f).each(w=>{const B=Tee(e,w),Z=e.selection.getRng();IU(Z,Z.createContextualFragment(B),e.schema),e.selection.setRng(Z),J1(e,Z),oA(e,B,w)})},vO=(e,n,r)=>{if(lt(e,n)){const f=ue(e[n],w=>w!==r);f.length===0?delete e[n]:e[n]=f}};var yO=(e,n)=>{let r,f;const w=(oe,be)=>de(be,Pe=>e.is(Pe,oe)),B=oe=>e.getParents(oe,void 0,e.getRoot()),Z=()=>{r={},f={},n.on("NodeChange",oe=>{const be=oe.element,Pe=B(be),Ke={};Ft(r,(Je,at)=>{w(at,Pe).each(Rt=>{f[at]||(ie(Je,Ht=>{Ht(!0,{node:Rt,selector:at,parents:Pe})}),f[at]=Je),Ke[at]=Je})}),Ft(f,(Je,at)=>{Ke[at]||(delete f[at],ie(Je,Rt=>{Rt(!1,{node:be,selector:at,parents:Pe})}))})})};return{selectorChangedWithUnbind:(oe,be)=>(r||Z(),r[oe]||(r[oe]=[]),r[oe].push(be),w(oe,B(n.selection.getStart())).each(()=>{f[oe]=r[oe]}),{unbind:()=>{vO(r,oe,be),vO(f,oe,be)}})}};const MR=e=>!!(e&&e.ownerDocument)&&Dl(jt.fromDom(e.ownerDocument),jt.fromDom(e)),BU=e=>e?MR(e.startContainer)&&MR(e.endContainer):!1,Xv=(e,n,r,f)=>{let w,B;const{selectorChangedWithUnbind:Z}=yO(e,f),oe=(Sr,so)=>{const $a=e.createRng();k(Sr)&&k(so)?($a.setStart(Sr,so),$a.setEnd(Sr,so),$n($a),ln(!1)):(rC(e,$a,f.getBody(),!0),$n($a))},be=Sr=>$U(f,Sr),Pe=(Sr,so)=>FU(f,Sr,so),Ke=Sr=>L_(f.getBody(),yn(),Sr),Je=Sr=>_$(f.getBody(),yn(),Sr),at=(Sr,so)=>zl.getBookmark(Sr,so),Rt=Sr=>zl.moveToBookmark(Sr),Ht=(Sr,so)=>(IH(e,Sr,so).each($n),Sr),At=()=>{const Sr=yn(),so=xn();return!Sr||Sr.item?!1:Sr.compareEndPoints?Sr.compareEndPoints("StartToEnd",Sr)===0:!so||Sr.collapsed},It=()=>{const Sr=yn(),so=f.getBody().querySelectorAll('[data-mce-selected="1"]');return so.length>0?We(so,$a=>e.isEditable($a.parentElement)):M$(e,Sr)},ln=Sr=>{const so=yn();so.collapse(!!Sr),$n(so)},xn=()=>n.getSelection?n.getSelection():n.document.selection,yn=()=>{let Sr;const so=(ha,to,Lo)=>{try{return to.compareBoundaryPoints(ha,Lo)}catch{return-1}},$a=n.document;if(k(f.bookmark)&&!Vv(f)){const ha=M_(f);if(ha.isSome())return ha.map(to=>$_(f,[to])[0]).getOr($a.createRange())}try{const ha=xn();ha&&!vu(ha.anchorNode)&&(ha.rangeCount>0?Sr=ha.getRangeAt(0):Sr=$a.createRange(),Sr=$_(f,[Sr])[0])}catch{}if(Sr||(Sr=$a.createRange()),wm(Sr.startContainer)&&Sr.collapsed){const ha=e.getRoot();Sr.setStart(ha,0),Sr.setEnd(ha,0)}return w&&B&&(so(Sr.START_TO_START,Sr,w)===0&&so(Sr.END_TO_END,Sr,w)===0?Sr=B:(w=null,B=null)),Sr},$n=(Sr,so)=>{if(!BU(Sr))return;const $a=xn();if(Sr=f.dispatch("SetSelectionRange",{range:Sr,forward:so}).range,$a){B=Sr;try{$a.removeAllRanges(),$a.addRange(Sr)}catch{}so===!1&&$a.extend&&($a.collapse(Sr.endContainer,Sr.endOffset),$a.extend(Sr.startContainer,Sr.startOffset)),w=$a.rangeCount>0?$a.getRangeAt(0):null}if(!Sr.collapsed&&Sr.startContainer===Sr.endContainer&&($a!=null&&$a.setBaseAndExtent)&&Sr.endOffset-Sr.startOffset<2&&Sr.startContainer.hasChildNodes()){const to=Sr.startContainer.childNodes[Sr.startOffset];to&&to.nodeName==="IMG"&&($a.setBaseAndExtent(Sr.startContainer,Sr.startOffset,Sr.endContainer,Sr.endOffset),($a.anchorNode!==Sr.startContainer||$a.focusNode!==Sr.endContainer)&&$a.setBaseAndExtent(to,0,to,1))}f.dispatch("AfterSetSelectionRange",{range:Sr,forward:so})},nr=Sr=>(Pe(e.getOuterHTML(Sr)),Sr),mr=()=>R$(f.getBody(),yn()),Nr=(Sr,so)=>PH(e,yn(),Sr,so),zn=()=>{const Sr=xn(),so=Sr==null?void 0:Sr.anchorNode,$a=Sr==null?void 0:Sr.focusNode;if(!Sr||!so||!$a||vu(so)||vu($a))return!0;const ha=e.createRng(),to=e.createRng();try{ha.setStart(so,Sr.anchorOffset),ha.collapse(!0),to.setStart($a,Sr.focusOffset),to.collapse(!0)}catch{return!0}return ha.compareBoundaryPoints(ha.START_TO_START,to)<=0},ei={dom:e,win:n,serializer:r,editor:f,expand:(Sr={type:"word"})=>$n(xt(e).expand(yn(),Sr)),collapse:ln,setCursorLocation:oe,getContent:be,setContent:Pe,getBookmark:at,moveToBookmark:Rt,select:Ht,isCollapsed:At,isEditable:It,isForward:zn,setNode:nr,getNode:mr,getSel:xn,setRng:$n,getRng:yn,getStart:Ke,getEnd:Je,getSelectedBlocks:Nr,normalize:()=>{const Sr=yn(),so=xn();if(!np(so)&&ex(f)){const $a=Le(e,Sr);return $a.each(ha=>{$n(ha,zn())}),$a.getOr(Sr)}return Sr},selectorChanged:(Sr,so)=>(Z(Sr,so),ei),selectorChangedWithUnbind:Z,getScrollContainer:()=>{let Sr,so=e.getRoot();for(;so&&so.nodeName!=="BODY";){if(so.scrollHeight>so.clientHeight){Sr=so;break}so=so.parentNode}return Sr},scrollIntoView:(Sr,so)=>{k(Sr)?Hl(f,Sr,so):J1(f,yn(),so)},placeCaretAt:(Sr,so)=>$n(Ru(Sr,so,f.getDoc())),getBoundingClientRect:()=>{const Sr=yn();return Sr.collapsed?In.fromRangeStart(Sr).getClientRects()[0]:Sr.getBoundingClientRect()},destroy:()=>{n=w=B=null,as.destroy()}},zl=rp(ei),as=g$(ei,f);return ei.bookmarkManager=zl,ei.controlSelection=as,ei},Fx=(e,n,r)=>{e.addAttributeFilter("data-mce-tabindex",(f,w)=>{let B=f.length;for(;B--;){const Z=f[B];Z.attr("tabindex",Z.attr("data-mce-tabindex")),Z.attr(w,null)}}),e.addAttributeFilter("src,href,style",(f,w)=>{const B="data-mce-"+w,Z=n.url_converter,oe=n.url_converter_scope;let be=f.length;for(;be--;){const Pe=f[be];let Ke=Pe.attr(B);Ke!==void 0?(Pe.attr(w,Ke.length>0?Ke:null),Pe.attr(B,null)):(Ke=Pe.attr(w),w==="style"?Ke=r.serializeStyle(r.parseStyle(Ke),Pe.name):Z&&(Ke=Z.call(oe,Ke,w,Pe.name)),Pe.attr(w,Ke.length>0?Ke:null))}}),e.addAttributeFilter("class",f=>{let w=f.length;for(;w--;){const B=f[w];let Z=B.attr("class");Z&&(Z=Z.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),B.attr("class",Z.length>0?Z:null))}}),e.addAttributeFilter("data-mce-type",(f,w,B)=>{let Z=f.length;for(;Z--;){const oe=f[Z];oe.attr("data-mce-type")==="bookmark"&&!B.cleanup&&(X.from(oe.firstChild).exists(Pe=>{var Ke;return!Ae((Ke=Pe.value)!==null&&Ke!==void 0?Ke:"")})?oe.unwrap():oe.remove())}}),e.addNodeFilter("noscript",f=>{var w;let B=f.length;for(;B--;){const Z=f[B].firstChild;Z&&(Z.value=km.decode((w=Z.value)!==null&&w!==void 0?w:""))}}),e.addNodeFilter("script,style",(f,w)=>{var B;const Z=be=>be.replace(/()/g,` -`).replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"");let oe=f.length;for(;oe--;){const be=f[oe],Pe=be.firstChild,Ke=(B=Pe==null?void 0:Pe.value)!==null&&B!==void 0?B:"";if(w==="script"){const Je=be.attr("type");Je&&be.attr("type",Je==="mce-no/type"?null:Je.replace(/^mce\-/,"")),n.element_format==="xhtml"&&Pe&&Ke.length>0&&(Pe.value=`// `)}else n.element_format==="xhtml"&&Pe&&Ke.length>0&&(Pe.value=``)}}),e.addNodeFilter("#comment",f=>{let w=f.length;for(;w--;){const B=f[w],Z=B.value;n.preserve_cdata&&(Z==null?void 0:Z.indexOf("[CDATA["))===0?(B.name="#cdata",B.type=4,B.value=r.decode(Z.replace(/^\[CDATA\[|\]\]$/g,""))):(Z==null?void 0:Z.indexOf("mce:protected "))===0&&(B.name="#text",B.type=3,B.raw=!0,B.value=unescape(Z).substr(14))}}),e.addNodeFilter("xml:namespace,input",(f,w)=>{let B=f.length;for(;B--;){const Z=f[B];Z.type===7?Z.remove():Z.type===1&&w==="input"&&!Z.attr("type")&&Z.attr("type","text")}}),e.addAttributeFilter("data-mce-type",f=>{ie(f,w=>{w.attr("data-mce-type")==="format-caret"&&(w.isEmpty(e.schema.getNonEmptyElements())?w.remove():w.unwrap())})}),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(f,w)=>{let B=f.length;for(;B--;)f[B].attr(w,null)}),n.remove_trailing_brs&&U5(n,e,e.schema)},rS=e=>{const n=f=>(f==null?void 0:f.name)==="br",r=e.lastChild;if(n(r)){const f=r.prev;n(f)&&(r.remove(),f.remove())}},bO=(e,n,r)=>{let f;const w=e.dom;let B=n.cloneNode(!0);const Z=document.implementation;if(Z.createHTMLDocument){const oe=Z.createHTMLDocument("");ur.each(B.nodeName==="BODY"?B.childNodes:[B],be=>{oe.body.appendChild(oe.importNode(be,!0))}),B.nodeName!=="BODY"?B=oe.body.firstChild:B=oe.body,f=w.doc,w.doc=oe}return dC(e,{...r,node:B}),f&&(w.doc=f),B},xO=(e,n)=>k(e)&&e.hasEventListeners("PreProcess")&&!n.no_events,HU=(e,n,r)=>xO(e,r)?bO(e,n,r):n,wO=(e,n,r)=>{ur.inArray(n,r)===-1&&(e.addAttributeFilter(r,(f,w)=>{let B=f.length;for(;B--;)f[B].attr(w,null)}),n.push(r))},zU=(e,n,r)=>!n.no_events&&e?i_(e,{...n,content:r}).content:r,VU=(e,n,r)=>{const f=_e(r.getInner?n.innerHTML:e.getOuterHTML(n));return r.selection||Li(jt.fromDom(n))?f:ur.trim(f)},UU=(e,n,r)=>{const f=r.selection?{forced_root_block:!1,...r}:r,w=e.parse(n,f);return rS(w),w},WU=(e,n,r)=>Uv(e,n).serialize(r),CO=(e,n,r,f,w)=>{const B=WU(n,r,f);return zU(e,w,B)},GU=(e,n)=>{const r=["data-mce-selected"],f={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...e},w=n&&n.dom?n.dom:Cs.DOM,B=n&&n.schema?n.schema:_h(f),Z=Yd(f,B);Fx(Z,f,w);const oe=(be,Pe={})=>{const Ke={format:"html",...Pe},Je=HU(n,be,Ke),at=VU(w,Je,Ke),Rt=UU(Z,at,Ke);return Ke.format==="tree"?Rt:CO(n,f,B,Rt,Ke)};return{schema:B,addNodeFilter:Z.addNodeFilter,addAttributeFilter:Z.addAttributeFilter,serialize:oe,addRules:B.addValidElements,setRules:B.setValidElements,addTempAttr:Q(wO,Z,r),getTempAttrs:J(r),getNodeFilters:Z.getNodeFilters,getAttributeFilters:Z.getAttributeFilters,removeNodeFilter:Z.removeNodeFilter,removeAttributeFilter:Z.removeAttributeFilter}},SO=(e,n)=>{const r=GU(e,n);return{schema:r.schema,addNodeFilter:r.addNodeFilter,addAttributeFilter:r.addAttributeFilter,serialize:r.serialize,addRules:r.addRules,setRules:r.setRules,addTempAttr:r.addTempAttr,getTempAttrs:r.getTempAttrs,getNodeFilters:r.getNodeFilters,getAttributeFilters:r.getAttributeFilters,removeNodeFilter:r.removeNodeFilter,removeAttributeFilter:r.removeAttributeFilter}},oS="html",TO=(e,n)=>({...e,format:n,get:!0,getInner:!0}),kO=(e,n={})=>{const r=n.format?n.format:oS,f=TO(n,r);return Yv(e,f).fold(K,w=>{const B=AU(e,w);return rR(e,B,w)})},ZU="html",jU=(e,n)=>({format:ZU,...e,set:!0,content:n}),ER=(e,n,r={})=>{const f=jU(r,n);return oR(e,f).map(w=>{const B=MU(e,w.content,w);return oA(e,B.html,w),B.content}).getOr(n)},AO="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),YU="template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),KU="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),MO=[{name:"template",replacedWith:"Advanced Template"},{name:"rtc"}],EO=(e,n)=>{const r=ue(n,f=>lt(e,f));return Xe(r)},kee=e=>{const n=EO(e,AO),r=e.forced_root_block;return(r===!1||r==="")&&n.push("forced_root_block (false only)"),Xe(n)},Kh=e=>EO(e,YU),gA=(e,n)=>{const r=ur.makeMap(e.plugins," "),w=ue(n,B=>lt(r,B));return Xe(w)},XU=e=>gA(e,KU),JU=e=>gA(e,MO.map(n=>n.name)),QU=(e,n)=>{const r=kee(e),f=XU(n),w=f.length>0,B=r.length>0,Z=n.theme==="mobile";if(w||B||Z){const oe=` -- `,be=Z?` - -Themes:${oe}mobile`:"",Pe=w?` - -Plugins:${oe}${f.join(oe)}`:"",Ke=B?` - -Options:${oe}${r.join(oe)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 6.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/6/migration-from-5x/ for more information."+be+Pe+Ke)}},qU=e=>de(MO,n=>n.name===e).fold(()=>e,n=>n.replacedWith?`${e}, replaced by ${n.replacedWith}`:e),qa=(e,n)=>{const r=Kh(e),f=JU(n),w=f.length>0,B=r.length>0;if(w||B){const Z=` -- `,oe=w?` - -Plugins:${Z}${f.map(qU).join(Z)}`:"",be=B?` - -Options:${Z}${r.join(Z)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+oe+be)}},Aee=(e,n)=>{QU(e,n),qa(e,n)},pA=Cs.DOM,eW=e=>{pA.setStyle(e.id,"display",e.orgDisplay)},Ns=e=>X.from(e).each(n=>n.destroy()),tW=e=>{const n=e;n.contentAreaContainer=n.formElement=n.container=n.editorContainer=null,n.bodyElement=n.contentDocument=n.contentWindow=null,n.iframeElement=n.targetElm=null;const r=e.selection;if(r){const f=r.dom;n.selection=r.win=r.dom=f.doc=null}},aS=e=>{const n=e.formElement;n&&(n._mceOldSubmit&&(n.submit=n._mceOldSubmit,delete n._mceOldSubmit),pA.unbind(n,"submit reset",e.formEventDelegate))},nW=e=>{if(!e.removed){const{_selectionOverrides:n,editorUpload:r}=e,f=e.getBody(),w=e.getElement();f&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&k(w==null?void 0:w.nextSibling)&&pA.remove(w.nextSibling),Iv(e),e.editorManager.remove(e),!e.inline&&f&&eW(e),Nv(e),pA.remove(e.getContainer()),Ns(n),Ns(r),e.destroy()}},rW=(e,n)=>{const{selection:r,dom:f}=e;if(!e.destroyed){if(!n&&!e.removed){e.remove();return}n||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),Ns(r),Ns(f)),aS(e),tW(e),e.destroyed=!0}},sS=(()=>{const e={};return{add:(w,B)=>{e[w]=B},get:w=>e[w]?e[w]:{icons:{}},has:w=>lt(e,w)}})(),fd=rc.ModelManager,$u=(e,n)=>n.dom[e],Bx=(e,n)=>parseInt(ui(n,e),10),Jv=Q($u,"clientWidth"),rg=Q($u,"clientHeight"),iS=Q(Bx,"margin-top"),_R=Q(Bx,"margin-left"),RR=e=>e.dom.getBoundingClientRect(),_O=(e,n,r)=>{const f=Jv(e),w=rg(e);return n>=0&&r>=0&&n<=f&&r<=w},RO=(e,n,r,f)=>{const w=RR(n),B=e?w.left+n.dom.clientLeft+_R(n):0,Z=e?w.top+n.dom.clientTop+iS(n):0,oe=r-B,be=f-Z;return{x:oe,y:be}},oW=(e,n,r)=>{const f=jt.fromDom(e.getBody()),w=e.inline?f:I0(f),B=RO(e.inline,w,n,r);return _O(w,B.x,B.y)},aW=e=>X.from(e).map(jt.fromDom),LO=e=>{const n=e.inline?e.getBody():e.getContentAreaContainer();return aW(n).map(Td).getOr(!1)};var DO=()=>{const e=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,getArgs:e}};const LR=e=>{const n=[],r=()=>{const at=e.theme;return at&&at.getNotificationManagerImpl?at.getNotificationManagerImpl():DO()},f=()=>X.from(n[0]),w=(at,Rt)=>at.type===Rt.type&&at.text===Rt.text&&!at.progressBar&&!at.timeout&&!Rt.progressBar&&!Rt.timeout,B=()=>{ie(n,at=>{at.reposition()})},Z=at=>{n.push(at)},oe=at=>{Me(n,Rt=>Rt===at).each(Rt=>{n.splice(Rt,1)})},be=(at,Rt=!0)=>e.removed||!LO(e)?{}:(Rt&&e.dispatch("BeforeOpenNotification",{notification:at}),de(n,Ht=>w(r().getArgs(Ht),at)).getOrThunk(()=>{e.editorManager.setActive(e);const Ht=r().open(at,()=>{oe(Ht),B(),A$(e)&&f().fold(()=>e.focus(),At=>ik(jt.fromDom(At.getEl())))});return Z(Ht),B(),e.dispatch("OpenNotification",{notification:{...Ht}}),Ht})),Pe=()=>{f().each(at=>{r().close(at),oe(at),B()})},Ke=J(n);return(at=>{at.on("SkinLoaded",()=>{const Rt=w4(at);Rt&&be({text:Rt,type:"warning",timeout:0},!1),B()}),at.on("show ResizeEditor ResizeWindow NodeChange",()=>{requestAnimationFrame(B)}),at.on("remove",()=>{ie(n.slice(),Rt=>{r().close(Rt)})})})(e),{open:be,close:Pe,getNotifications:Ke}},uy=rc.PluginManager,gp=rc.ThemeManager;var Eee=()=>{const e=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e}};const $O=e=>{let n=[];const r=()=>{const At=e.theme;return At&&At.getWindowManagerImpl?At.getWindowManagerImpl():Eee()},f=(At,It)=>(...ln)=>It?It.apply(At,ln):void 0,w=At=>{e.dispatch("OpenWindow",{dialog:At})},B=At=>{e.dispatch("CloseWindow",{dialog:At})},Z=At=>{n.push(At),w(At)},oe=At=>{B(At),n=ue(n,It=>It!==At),n.length===0&&e.focus()},be=()=>X.from(n[n.length-1]),Pe=At=>{e.editorManager.setActive(e),px(e),e.ui.show();const It=At();return Z(It),It},Ke=(At,It)=>Pe(()=>r().open(At,It,oe)),Je=At=>Pe(()=>r().openUrl(At,oe)),at=(At,It,ln)=>{const xn=r();xn.alert(At,f(ln||xn,It))},Rt=(At,It,ln)=>{const xn=r();xn.confirm(At,f(ln||xn,It))},Ht=()=>{be().each(At=>{r().close(At),oe(At)})};return e.on("remove",()=>{ie(n,At=>{r().close(At)})}),{open:Ke,openUrl:Je,alert:at,confirm:Rt,close:Ht}},sW=(e,n)=>{e.notificationManager.open({type:"error",text:n})},vA=(e,n)=>{e._skinLoaded?sW(e,n):e.on("SkinLoaded",()=>{sW(e,n)})},iW=(e,n)=>{vA(e,Cf.translate(["Failed to upload image: {0}",n]))},Df=(e,n,r)=>{ou(e,n,{message:r}),console.error(r)},yA=(e,n,r)=>r?`Failed to load ${e}: ${r} from url ${n}`:`Failed to load ${e} url: ${n}`,_ee=(e,n,r)=>{Df(e,"PluginLoadError",yA("plugin",n,r))},lW=(e,n,r)=>{Df(e,"IconsLoadError",yA("icons",n,r))},lS=(e,n,r)=>{Df(e,"LanguageLoadError",yA("language",n,r))},cW=(e,n,r)=>{Df(e,"ThemeLoadError",yA("theme",n,r))},OO=(e,n,r)=>{Df(e,"ModelLoadError",yA("model",n,r))},PO=(e,n,r)=>{const f=Cf.translate(["Failed to initialize plugin: {0}",n]);ou(e,"PluginLoadError",{message:f}),cS(f,r),vA(e,f)},cS=(e,...n)=>{const r=window.console;r&&(r.error?r.error(e,...n):r.log(e,...n))},uW=e=>/^[a-z0-9\-]+$/i.test(e),DR=e=>"content/"+e+"/content.css",Qv=e=>tinymce.Resource.has(DR(e)),fW=e=>IO(e,Rw(e)),dW=e=>IO(e,uT(e)),IO=(e,n)=>{const r=e.editorManager.baseURL+"/skins/content",w=`content${e.editorManager.suffix}.css`;return Fe(n,B=>Qv(B)?B:uW(B)&&!e.inline?`${r}/${B}/${w}`:e.documentBaseURI.toAbsolute(B))},hW=e=>{e.contentCSS=e.contentCSS.concat(fW(e),dW(e))},mW=e=>e?tt(e.getElementsByTagName("img")):[],gW=(e,n)=>{const r={};return{findAll:(w,B=fe)=>{const Z=ue(mW(w),be=>{const Pe=be.src;return be.hasAttribute("data-mce-bogus")||be.hasAttribute("data-mce-placeholder")||!Pe||Pe===Lr.transparentSrc?!1:wr(Pe,"blob:")?!e.isUploaded(Pe)&&B(be):wr(Pe,"data:")?B(be):!1}),oe=Fe(Z,be=>{const Pe=be.src;if(lt(r,Pe))return r[Pe].then(Ke=>C(Ke)?Ke:{image:be,blobInfo:Ke.blobInfo});{const Ke=_V(n,Pe).then(Je=>(delete r[Pe],{image:be,blobInfo:Je})).catch(Je=>(delete r[Pe],Je));return r[Pe]=Ke,Ke}});return Promise.all(oe)}}},NO=()=>{let r={};const f=(at,Rt)=>({status:at,resultUri:Rt}),w=at=>at in r;return{hasBlobUri:w,getResultUri:at=>{const Rt=r[at];return Rt?Rt.resultUri:null},isPending:at=>w(at)?r[at].status===1:!1,isUploaded:at=>w(at)?r[at].status===2:!1,markPending:at=>{r[at]=f(1,null)},markUploaded:(at,Rt)=>{r[at]=f(2,Rt)},removeFailed:at=>{delete r[at]},destroy:()=>{r={}}}};let pW=0;const vW=()=>{const e=()=>Math.round(Math.random()*4294967295).toString(36);return"s"+new Date().getTime().toString(36)+e()+e()+e()},yW=e=>e+pW+++vW(),bW=()=>{let e=[];const n=Je=>({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"})[Je.toLowerCase()]||"dat",r=(Je,at,Rt,Ht,At)=>{if(C(Je))return f({id:Je,name:Ht,filename:At,blob:at,base64:Rt});if(_(Je))return f(Je);throw new Error("Unknown input type")},f=Je=>{if(!Je.blob||!Je.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const at=Je.id||yW("blobid"),Rt=Je.name||at,Ht=Je.blob;return{id:J(at),name:J(Rt),filename:J(Je.filename||Rt+"."+n(Ht.type)),blob:J(Ht),base64:J(Je.base64),blobUri:J(Je.blobUri||URL.createObjectURL(Ht)),uri:J(Je.uri)}},w=Je=>{Z(Je.id())||e.push(Je)},B=Je=>de(e,Je).getOrUndefined(),Z=Je=>B(at=>at.id()===Je);return{create:r,add:w,get:Z,getByUri:Je=>B(at=>at.blobUri()===Je),getByData:(Je,at)=>B(Rt=>Rt.base64()===Je&&Rt.blob().type===at),findFirst:B,removeByUri:Je=>{e=ue(e,at=>at.blobUri()===Je?(URL.revokeObjectURL(at.blobUri()),!1):!0)},destroy:()=>{ie(e,Je=>{URL.revokeObjectURL(Je.blobUri())}),e=[]}}},Ree=(e,n)=>{const r={},f=(At,It)=>At?At.replace(/\/$/,"")+"/"+It.replace(/^\//,""):It,w=(At,It)=>new Promise((ln,xn)=>{const yn=new XMLHttpRequest;yn.open("POST",n.url),yn.withCredentials=n.credentials,yn.upload.onprogress=nr=>{It(nr.loaded/nr.total*100)},yn.onerror=()=>{xn("Image upload failed due to a XHR Transport error. Code: "+yn.status)},yn.onload=()=>{if(yn.status<200||yn.status>=300){xn("HTTP Error: "+yn.status);return}const nr=JSON.parse(yn.responseText);if(!nr||!C(nr.location)){xn("Invalid JSON: "+yn.responseText);return}ln(f(n.basePath,nr.location))};const $n=new FormData;$n.append("file",At.blob(),At.filename()),yn.send($n)}),B=R(n.handler)?n.handler:w,Z=()=>new Promise(At=>{At([])}),oe=(At,It)=>({url:It,blobInfo:At,status:!0}),be=(At,It)=>({url:"",blobInfo:At,status:!1,error:It}),Pe=(At,It)=>{ur.each(r[At],ln=>{ln(It)}),delete r[At]},Ke=(At,It,ln)=>(e.markPending(At.blobUri()),new Promise(xn=>{let yn,$n;try{const nr=()=>{yn&&(yn.close(),$n=j)},mr=zn=>{nr(),e.markUploaded(At.blobUri(),zn),Pe(At.blobUri(),oe(At,zn)),xn(oe(At,zn))},Nr=zn=>{nr(),e.removeFailed(At.blobUri()),Pe(At.blobUri(),be(At,zn)),xn(be(At,zn))};$n=zn=>{zn<0||zn>100||X.from(yn).orThunk(()=>X.from(ln).map(Se)).each(Nn=>{yn=Nn,Nn.progressBar.value(zn)})},It(At,$n).then(mr,zn=>{Nr(C(zn)?{message:zn}:zn)})}catch(nr){xn(be(At,nr))}})),Je=At=>At===w,at=At=>{const It=At.blobUri();return new Promise(ln=>{r[It]=r[It]||[],r[It].push(ln)})},Rt=(At,It)=>(At=ur.grep(At,ln=>!e.isUploaded(ln.blobUri())),Promise.all(ur.map(At,ln=>e.isPending(ln.blobUri())?at(ln):Ke(ln,B,It))));return{upload:(At,It)=>!n.url&&Je(B)?Z():Rt(At,It)}},Hx=e=>()=>e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),FO=(e,n)=>Ree(n,{url:p4(e),basePath:v4(e),credentials:Mw(e),handler:y4(e)}),$R=e=>{const n=NO(),r=FO(e,n);return{upload:(f,w=!0)=>r.upload(f,w?Hx(e):void 0)}},xW=(e,n)=>e.dom.isEmpty(n.dom)&&k(e.schema.getTextBlockElements()[La(n)]),wW=e=>n=>{xW(e,n)&&di(n,jt.fromHtml('
    '))},CW=e=>{const n=bW();let r,f;const w=NO(),B=[],Z=yn=>$n=>e.selection?yn($n):[],oe=yn=>yn+(yn.indexOf("?")===-1?"?":"&")+new Date().getTime(),be=(yn,$n,nr)=>{let mr=0;do mr=yn.indexOf($n,mr),mr!==-1&&(yn=yn.substring(0,mr)+nr+yn.substr(mr+$n.length),mr+=nr.length-$n.length+1);while(mr!==-1);return yn},Pe=(yn,$n,nr)=>{const mr=`src="${nr}"${nr===Lr.transparentSrc?' data-mce-placeholder="1"':""}`;return yn=be(yn,`src="${$n}"`,mr),yn=be(yn,'data-mce-src="'+$n+'"','data-mce-src="'+nr+'"'),yn},Ke=(yn,$n)=>{ie(e.undoManager.data,nr=>{nr.type==="fragmented"?nr.fragments=Fe(nr.fragments,mr=>Pe(mr,yn,$n)):nr.content=Pe(nr.content,yn,$n)})},Je=(yn,$n)=>{const nr=e.convertURL($n,"src");Ke(yn.src,$n),Kc(jt.fromDom(yn),{src:y1(e)?oe($n):$n,"data-mce-src":nr})},at=()=>(r||(r=FO(e,w)),It().then(Z(yn=>{const $n=Fe(yn,nr=>nr.blobInfo);return r.upload($n,Hx(e)).then(Z(nr=>{const mr=[];let Nr=!1;const zn=Fe(nr,(Nn,er)=>{const{blobInfo:Qr,image:ho}=yn[er];let na=!1;return Nn.status&&cT(e)?(Nn.url&&!or(ho.src,Nn.url)&&(Nr=!0),n.removeByUri(ho.src),mp(e)||Je(ho,Nn.url)):Nn.error&&(Nn.error.remove&&(Ke(ho.src,Lr.transparentSrc),mr.push(ho),na=!0),iW(e,Nn.error.message)),{element:ho,status:Nn.status,uploadUri:Nn.url,blobInfo:Qr,removed:na}});return mr.length>0&&!mp(e)?e.undoManager.transact(()=>{ie(Pg(mr),Nn=>{const er=Rc(Nn);Ua(Nn),er.each(wW(e)),n.removeByUri(Nn.dom.src)})}):Nr&&e.undoManager.dispatchChange(),zn}))}))),Rt=()=>lT(e)?at():Promise.resolve([]),Ht=yn=>We(B,$n=>$n(yn)),At=yn=>{B.push(yn)},It=()=>(f||(f=gW(w,n)),f.findAll(e.getBody(),Ht).then(Z(yn=>{const $n=ue(yn,nr=>C(nr)?(vA(e,nr),!1):nr.uriType!=="blob");return mp(e)||ie($n,nr=>{Ke(nr.image.src,nr.blobInfo.blobUri()),nr.image.src=nr.blobInfo.blobUri(),nr.image.removeAttribute("data-mce-src")}),$n}))),ln=()=>{n.destroy(),w.destroy(),f=r=null},xn=yn=>yn.replace(/src="(blob:[^"]+)"/g,($n,nr)=>{const mr=w.getResultUri(nr);if(mr)return'src="'+mr+'"';let Nr=n.getByUri(nr);return Nr||(Nr=le(e.editorManager.get(),(zn,Nn)=>zn||Nn.editorUpload&&Nn.editorUpload.blobCache.getByUri(nr),void 0)),Nr?'src="data:'+Nr.blob().type+";base64,"+Nr.base64()+'"':$n});return e.on("SetContent",()=>{lT(e)?Rt():It()}),e.on("RawSaveContent",yn=>{yn.content=xn(yn.content)}),e.on("GetContent",yn=>{yn.source_view||yn.format==="raw"||yn.format==="tree"||(yn.content=xn(yn.content))}),e.on("PostRender",()=>{e.parser.addNodeFilter("img",yn=>{ie(yn,$n=>{const nr=$n.attr("src");if(!nr||n.getByUri(nr))return;const mr=w.getResultUri(nr);mr&&$n.attr("src",mr)})})}),{blobCache:n,addFilter:At,uploadImages:at,uploadImagesAuto:Rt,scanForImages:It,destroy:ln}},SW=e=>{const n=e.dom,r=e.schema.type,f={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:w=>{n.setStyle(w,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:w=>{n.setStyle(w,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const w={inline:"span",styles:{textDecoration:"line-through"},exact:!0},B={inline:"strike",remove:"all",preserve_attributes:["class","style"]},Z={inline:"s",remove:"all",preserve_attributes:["class","style"]};return r!=="html4"?[Z,w,B]:[w,Z,B]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(w,B,Z)=>Gr(w)&&w.hasAttribute("href"),onformat:(w,B,Z)=>{ur.each(Z,(oe,be)=>{n.setAttrib(w,be,oe)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":w=>{var B;return(B=w==null?void 0:w.customValue)!==null&&B!==void 0?B:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return ur.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),w=>{f[w]={block:w,remove:"all"}}),f},qv={remove_similar:!0,inherit:!1},Kd={selector:"td,th",...qv},bA={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...Kd},tablecellverticalalign:{styles:{"vertical-align":"%value"},...Kd},tablecellbordercolor:{styles:{borderColor:"%value"},...Kd},tablecellclass:{classes:["%value"],...Kd},tableclass:{selector:"table",classes:["%value"],...qv},tablecellborderstyle:{styles:{borderStyle:"%value"},...Kd},tablecellborderwidth:{styles:{borderWidth:"%value"},...Kd}},xA=J(bA),fy=e=>{const n={},r=Z=>k(Z)?n[Z]:n,f=Z=>lt(n,Z),w=(Z,oe)=>{Z&&(C(Z)?(S(oe)||(oe=[oe]),ie(oe,be=>{N(be.deep)&&(be.deep=!El(be)),N(be.split)&&(be.split=!El(be)||$i(be)),N(be.remove)&&El(be)&&!$i(be)&&(be.remove="none"),El(be)&&$i(be)&&(be.mixed=!0,be.block_expand=!0),C(be.classes)&&(be.classes=be.classes.split(/\s+/))}),n[Z]=oe):Ft(Z,(be,Pe)=>{w(Pe,be)}))},B=Z=>(Z&&n[Z]&&delete n[Z],n);return w(SW(e)),w(xA()),w(S4(e)),{get:r,has:f,register:w,unregister:B}},og=ur.each,Ou=Cs.DOM,zx=e=>k(e)&&_(e),OR=(e,n)=>{const r=n&&n.schema||_h({}),f=(be,Pe)=>{Pe.classes.length>0&&Ou.addClass(be,Pe.classes.join(" ")),Ou.setAttribs(be,Pe.attrs)},w=be=>{const Pe=C(be)?{name:be,classes:[],attrs:{}}:be,Ke=Ou.create(Pe.name);return f(Ke,Pe),Ke},B=(be,Pe)=>{const Ke=r.getElementRule(be.nodeName.toLowerCase()),Je=Ke==null?void 0:Ke.parentsRequired;return Je&&Je.length?Pe&&Ve(Je,Pe)?Pe:Je[0]:!1},Z=(be,Pe,Ke)=>{let Je;const at=Pe[0],Rt=zx(at)?at.name:void 0,Ht=B(be,Rt);if(Ht)Rt===Ht?(Je=at,Pe=Pe.slice(1)):Je=Ht;else if(at)Je=at,Pe=Pe.slice(1);else if(!Ke)return be;const At=Je?w(Je):Ou.create("div");At.appendChild(be),Ke&&ur.each(Ke,ln=>{const xn=w(ln);At.insertBefore(xn,be)});const It=zx(Je)?Je.siblings:void 0;return Z(At,Pe,It)},oe=Ou.create("div");if(e.length>0){const be=e[0],Pe=w(be),Ke=zx(be)?be.siblings:void 0;oe.appendChild(Z(Pe,e.slice(1),Ke))}return oe},PR=e=>{e=ur.trim(e);let n="div";const r={name:n,classes:[],attrs:{},selector:e};return e!=="*"&&(n=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(f,w,B,Z,oe)=>{switch(w){case"#":r.attrs.id=B;break;case".":r.classes.push(B);break;case":":ur.inArray("checked disabled enabled read-only required".split(" "),B)!==-1&&(r.attrs[B]=B);break}if(Z==="["){const be=oe.match(/([\w\-]+)(?:\=\"([^\"]+))?/);be&&(r.attrs[be[1]]=be[2])}return""})),r.name=n||"div",r},IR=e=>C(e)?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),ur.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),n=>{const r=ur.map(n.split(/(?:~\+|~|\+)/),PR),f=r.pop();return r.length&&(f.siblings=r),f}).reverse()):[],BO=(e,n)=>{let r="",f=hT(e);if(f==="")return"";const w=at=>C(at)?at.replace(/%(\w+)/g,""):"",B=(at,Rt)=>Ou.getStyle(Rt??e.getBody(),at,!0);if(C(n)){const at=e.formatter.get(n);if(!at)return"";n=at[0]}if("preview"in n){const at=n.preview;if(at===!1)return"";f=at||f}let Z=n.block||n.inline||"span",oe;const be=IR(n.selector);be.length>0?(be[0].name||(be[0].name=Z),Z=n.selector,oe=OR(be,e)):oe=OR([Z],e);const Pe=Ou.select(Z,oe)[0]||oe.firstChild;og(n.styles,(at,Rt)=>{const Ht=w(at);Ht&&Ou.setStyle(Pe,Rt,Ht)}),og(n.attributes,(at,Rt)=>{const Ht=w(at);Ht&&Ou.setAttrib(Pe,Rt,Ht)}),og(n.classes,at=>{const Rt=w(at);Ou.hasClass(Pe,Rt)||Ou.addClass(Pe,Rt)}),e.dispatch("PreviewFormats"),Ou.setStyles(oe,{position:"absolute",left:-65535}),e.getBody().appendChild(oe);const Ke=B("fontSize"),Je=/px$/.test(Ke)?parseInt(Ke,10):0;return og(f.split(" "),at=>{let Rt=B(at,Pe);if(!(at==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(Rt)&&(Rt=B(at),Xp(Rt).toLowerCase()==="#ffffff"))&&!(at==="color"&&Xp(Rt).toLowerCase()==="#000000")){if(at==="font-size"&&/em|%$/.test(Rt)){if(Je===0)return;Rt=parseFloat(Rt)/(/%$/.test(Rt)?100:1)*Je+"px"}at==="border"&&Rt&&(r+="padding:0 2px;"),r+=at+":"+Rt+";"}}),e.dispatch("AfterPreviewFormats"),Ou.remove(oe),r},HO=e=>{e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(let n=1;n<=6;n++)e.addShortcut("access+"+n,"",["FormatBlock",!1,"h"+n]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},dy=e=>{const n=fy(e),r=Us({});return HO(e),aV(e),mp(e)||vV(r,e),{get:n.get,has:n.has,register:n.register,unregister:n.unregister,apply:(f,w,B)=>{SU(e,f,w,B)},remove:(f,w,B,Z)=>{TU(e,f,w,B,Z)},toggle:(f,w,B)=>{kU(e,f,w,B)},match:(f,w,B,Z)=>hO(e,f,w,B,Z),closest:f=>kR(e,f),matchAll:(f,w)=>mO(e,f,w),matchNode:(f,w,B,Z)=>TR(e,f,w,B,Z),canApply:f=>gO(e,f),formatChanged:(f,w,B,Z)=>ud(e,r,f,w,B,Z),getCssText:Q(BO,e)}},NR=e=>{switch(e.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},zO=(e,n,r)=>{const f=Us(!1),w=be=>{dA(n,!1,r),n.add({},be)};e.on("init",()=>{n.add()}),e.on("BeforeExecCommand",be=>{const Pe=be.command;NR(Pe)||(iO(n,r),n.beforeChange())}),e.on("ExecCommand",be=>{const Pe=be.command;NR(Pe)||w(be)}),e.on("ObjectResizeStart cut",()=>{n.beforeChange()}),e.on("SaveContent ObjectResized blur",w),e.on("dragend",w),e.on("keyup",be=>{const Pe=be.keyCode;if(be.isDefaultPrevented())return;const Ke=Lr.os.isMacOS()&&be.key==="Meta";(Pe>=33&&Pe<=36||Pe>=37&&Pe<=40||Pe===45||be.ctrlKey||Ke)&&(w(),e.nodeChanged()),(Pe===46||Pe===8)&&e.nodeChanged(),f.get()&&n.typing&&!xR(fA(e),n.data[0])&&(e.isDirty()||e.setDirty(!0),e.dispatch("TypingUndo"),f.set(!1),e.nodeChanged())}),e.on("keydown",be=>{const Pe=be.keyCode;if(be.isDefaultPrevented())return;if(Pe>=33&&Pe<=36||Pe>=37&&Pe<=40||Pe===45){n.typing&&w(be);return}const Ke=be.ctrlKey&&!be.altKey||be.metaKey;if((Pe<16||Pe>20)&&Pe!==224&&Pe!==91&&!n.typing&&!Ke){n.beforeChange(),dA(n,!0,r),n.add({},be),f.set(!0);return}(Lr.os.isMacOS()?be.metaKey:be.ctrlKey&&!be.altKey)&&n.beforeChange()}),e.on("mousedown",be=>{n.typing&&w(be)});const B=be=>be.inputType==="insertReplacementText",Z=be=>be.inputType==="insertText"&&be.data===null,oe=be=>be.inputType==="insertFromPaste"||be.inputType==="insertFromDrop";e.on("input",be=>{be.inputType&&(B(be)||Z(be)||oe(be))&&w(be)}),e.on("AddUndo Undo Redo ClearUndos",be=>{be.isDefaultPrevented()||e.nodeChanged()})},VO=e=>{e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},uS=e=>{const n=Em(),r=Us(0),f=Us(0),w={data:[],typing:!1,beforeChange:()=>{See(e,r,n)},add:(B,Z)=>cc(e,w,f,r,n,B,Z),dispatchChange:()=>{e.setDirty(!0);const B=fA(e);B.bookmark=dv(e.selection),e.dispatch("change",{level:B,lastLevel:qe(w.data,f.get()).getOrUndefined()})},undo:()=>uO(e,w,r,f),redo:()=>fO(e,f,w.data),clear:()=>{dO(e,w,f)},reset:()=>{bU(e,w)},hasUndo:()=>xU(e,w,f),hasRedo:()=>hA(e,w,f),transact:B=>wU(e,w,r,B),ignore:B=>{SR(e,r,B)},extra:(B,Z)=>{CU(e,w,f,B,Z)}};return mp(e)||zO(e,w,r),VO(e),w},UO=[9,27,Wr.HOME,Wr.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Wr.DOWN,Wr.UP,Wr.LEFT,Wr.RIGHT].concat(Lr.browser.isFirefox()?[224]:[]),FR="data-mce-placeholder",BR=e=>e.type==="keydown"||e.type==="keyup",HR=e=>{const n=e.keyCode;return n===Wr.BACKSPACE||n===Wr.DELETE},pp=e=>{if(BR(e)){const n=e.keyCode;return!HR(e)&&(Wr.metaKeyPressed(e)||e.altKey||n>=112&&n<=123||Ve(UO,n))}else return!1},e0=e=>BR(e)&&!(HR(e)||e.type==="keyup"&&e.keyCode===229),Xd=(e,n,r)=>{if(Za(jt.fromDom(n),!1)){const f=n.firstElementChild;return f?e.getStyle(n.firstElementChild,"padding-left")||e.getStyle(n.firstElementChild,"padding-right")?!1:r===f.nodeName.toLowerCase():!0}else return!1},TW=e=>{var n;const r=e.dom,f=ac(e),w=(n=i$(e))!==null&&n!==void 0?n:"",B=(Z,oe)=>{if(pp(Z))return;const be=e.getBody(),Pe=e0(Z)?!1:Xd(r,be,f);(r.getAttrib(be,FR)!==""!==Pe||oe)&&(r.setAttrib(be,FR,Pe?w:null),r.setAttrib(be,"aria-placeholder",Pe?w:null),c_(e,Pe),e.on(Pe?"keydown":"keyup",B),e.off(Pe?"keyup":"keydown",B))};St(w)&&e.on("init",Z=>{B(Z,!0),e.on("change SetContent ExecCommand",B),e.on("paste",oe=>Ef.setEditorTimeout(e,()=>B(oe)))})},kW=(e,n)=>({block:e,position:n}),AW=(e,n)=>({from:e,to:n}),zR=(e,n)=>{const r=jt.fromDom(e),f=jt.fromDom(n.container());return LC(r,f).map(w=>kW(w,n))},MW=e=>!Ba(e.from.block,e.to.block),WO=(e,n)=>Xc(n,w=>bc(w)||wl(w.dom),w=>Ba(w,e)).filter(sl).getOr(e),EW=(e,n)=>{const r=jt.fromDom(e);return Ba(WO(r,n.from.block),WO(r,n.to.block))},_W=e=>fa(e.from.block.dom)===!1&&fa(e.to.block.dom)===!1,RW=e=>{const n=r=>En(r)||ib(r.dom);return n(e.from.block)&&n(e.to.block)},LW=(e,n,r)=>Ja(r.position.getNode())&&!Za(r.block)?_v(!1,r.block.dom).bind(f=>f.isEqual(r.position)?dl(n,e,f).bind(w=>zR(e,w)):X.some(r)).getOr(r):r,DW=(e,n,r)=>{const f=zR(e,In.fromRangeStart(r)),w=f.bind(B=>dl(n,e,B.position).bind(Z=>zR(e,Z).map(oe=>LW(e,n,oe))));return Es(f,w,AW).filter(B=>MW(B)&&EW(e,B)&&_W(B)&&RW(B))},$W=(e,n,r)=>r.collapsed?DW(e,n,r):X.none(),VR=(e,n)=>{const r=zi(e);return Me(r,f=>n.isBlock(La(f))).fold(J(r),f=>r.slice(0,f))},wA=(e,n)=>{const r=VR(e,n);return ie(r,Ua),r},UR=(e,n)=>{const r=Ym(n,e);return de(r.reverse(),f=>Za(f)).each(Ua)},OW=e=>ue(F0(e),n=>!Za(n)).length===0,PW=(e,n,r,f,w)=>{if(Za(r))return U(r),Sc(r.dom);OW(w)&&Za(n)&&Ri(w,jt.fromTag("br"));const B=Nc(r.dom,In.before(w.dom));return ie(wA(n,f),Z=>{Ri(w,Z)}),UR(e,n),B},GO=(e,n)=>e.isInline(La(n)),ZO=(e,n,r,f)=>{if(Za(r)){if(Za(n)){const Z=pe((oe=>{const be=(Pe,Ke)=>pm(Pe).fold(()=>Ke,Je=>GO(f,Je)?be(Je,Ke.concat(tu(Je))):Ke);return be(oe,[])})(r),(oe,be)=>(ym(oe,be),be),ec());Ad(n),di(n,Z)}return Ua(r),Sc(n.dom)}const w=kf(r.dom);return ie(wA(n,f),B=>{di(r,B)}),UR(e,n),w},WR=(e,n)=>{const r=Ym(n,e);return X.from(r[r.length-1])},jO=(e,n)=>Dl(n,e)?WR(n,e):X.none(),GR=(e,n)=>{_v(e,n.dom).bind(r=>X.from(r.getNode())).map(jt.fromDom).filter(vf).each(Ua)},CA=(e,n,r,f)=>(GR(!0,n),GR(!1,r),jO(n,r).fold(Q(ZO,e,n,r,f),Q(PW,e,n,r,f))),YO=(e,n,r,f,w)=>n?CA(e,f,r,w):CA(e,r,f,w),ZR=(e,n)=>{const r=jt.fromDom(e.getBody());return $W(r.dom,n,e.selection.getRng()).map(w=>()=>{YO(r,n,w.from.block,w.to.block,e.schema).each(B=>{e.selection.setRng(B.toRange())})})},ag=(e,n,r)=>{const f=n.getRng();return Es(LC(e,jt.fromDom(f.startContainer)),LC(e,jt.fromDom(f.endContainer)),(w,B)=>Ba(w,B)?X.none():X.some(()=>{f.deleteContents(),YO(e,!0,w,B,r).each(Z=>{n.setRng(Z.toRange())})})).getOr(X.none())},dd=(e,n)=>{const r=jt.fromDom(n),f=Q(Ba,e);return Js(r,bc,f).isSome()},SA=(e,n)=>dd(e,n.startContainer)||dd(e,n.endContainer),KO=(e,n)=>{const r=Nc(e.dom,In.fromRangeStart(n)).isNone(),f=ic(e.dom,In.fromRangeEnd(n)).isNone();return!SA(e,n)&&r&&f},TA=e=>X.some(()=>{e.setContent(""),e.selection.setCursorLocation()}),XO=e=>{const n=jt.fromDom(e.getBody()),r=e.selection.getRng();return KO(n,r)?TA(e):ag(n,e.selection,e.schema)},kA=(e,n)=>e.selection.isCollapsed()?X.none():XO(e),sg=(e,n,r,f,w)=>X.from(n._selectionOverrides.showCaret(e,r,f,w)),JO=e=>{const n=e.ownerDocument.createRange();return n.selectNode(e),n},Vx=(e,n)=>e.dispatch("BeforeObjectSelected",{target:n}).isDefaultPrevented()?X.none():X.some(JO(n)),QO=(e,n,r)=>{const f=Kw(1,e.getBody(),n),w=In.fromRangeStart(f),B=w.getNode();if(Ub(B))return sg(1,e,B,!w.isAtEnd(),!1);const Z=w.getNode(!0);if(Ub(Z))return sg(1,e,Z,!1,!1);const oe=ay(e.dom.getRoot(),w.getNode());return Ub(oe)?sg(1,e,oe,!1,r):X.none()},Ux=(e,n,r)=>n.collapsed?QO(e,n,r).getOr(n):n,jR=e=>lp(e)||kC(e),IW=e=>Gh(e)||vx(e),NW=(e,n)=>{ir(n)&&n.data.length===0&&e.remove(n)},qO=(e,n,r,f,w,B)=>{sg(f,e,B.getNode(!w),w,!0).each(Z=>{if(n.collapsed){const oe=n.cloneRange();w?oe.setEnd(Z.startContainer,Z.startOffset):oe.setStart(Z.endContainer,Z.endOffset),oe.deleteContents()}else n.deleteContents();e.selection.setRng(Z)}),NW(e.dom,r)},FW=(e,n)=>{const r=e.selection.getRng();if(!ir(r.commonAncestorContainer))return X.none();const f=n?gi.Forwards:gi.Backwards,w=nd(e.getBody()),B=Q($T,n?w.next:w.prev),Z=n?jR:IW,oe=Bm(f,e.getBody(),r),be=B(oe),Pe=be&&Ta(n,be);if(!Pe||!Xw(oe,Pe))return X.none();if(Z(Pe))return X.some(()=>qO(e,r,oe.getNode(),f,n,Pe));const Ke=B(Pe);return Ke&&Z(Ke)&&Xw(Pe,Ke)?X.some(()=>qO(e,r,oe.getNode(),f,n,Ke)):X.none()},AA=(e,n)=>FW(e,n),YR=(e,n)=>{const r=e.getBody();return n?Sc(r).filter(lp):kf(r).filter(Gh)},KR=e=>{const n=e.selection.getRng();return!n.collapsed&&(YR(e,!0).exists(r=>r.isEqual(In.fromRangeStart(n)))||YR(e,!1).exists(r=>r.isEqual(In.fromRangeEnd(n))))},XR=e=>k(e)&&(bc(jt.fromDom(e))||yf(jt.fromDom(e))),$f=ed.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),BW=(e,n)=>{const r=n.getNode(!e),f=e?"after":"before";return Gr(r)&&r.getAttribute("data-mce-caret")===f},HW=(e,n,r,f,w)=>{const B=Z=>w.isInline(Z.nodeName.toLowerCase())&&!td(r,f,e);return DT(!n,r).fold(()=>DT(n,f).fold(ne,B),B)},eP=(e,n,r,f)=>{const w=f.getNode(!n);return LC(jt.fromDom(e),jt.fromDom(r.getNode())).map(B=>Za(B)?$f.remove(B.dom):$f.moveToElement(w)).orThunk(()=>X.some($f.moveToElement(w)))},tP=(e,n,r,f)=>dl(n,e,r).bind(w=>XR(w.getNode())||HW(e,n,r,w,f)?X.none():n&&fa(w.getNode())||!n&&fa(w.getNode(!0))?eP(e,n,r,w):n&&Gh(r)||!n&&lp(r)?X.some($f.moveToPosition(w)):X.none()),zW=(e,n)=>M(n)?X.none():e&&fa(n.nextSibling)?X.some($f.moveToElement(n.nextSibling)):!e&&fa(n.previousSibling)?X.some($f.moveToElement(n.previousSibling)):X.none(),VW=(e,n,r)=>r.fold(f=>X.some($f.remove(f)),f=>X.some($f.moveToElement(f)),f=>td(n,f,e)?X.none():X.some($f.moveToPosition(f))),MA=(e,n,r,f)=>BW(n,r)?zW(n,r.getNode(!n)).orThunk(()=>tP(e,n,r,f)):tP(e,n,r,f).bind(w=>VW(e,r,w)),JR=(e,n,r,f)=>{const w=Kw(n?1:-1,e,r),B=In.fromRangeStart(w),Z=jt.fromDom(e);return!n&&Gh(B)?X.some($f.remove(B.getNode(!0))):n&&lp(B)?X.some($f.remove(B.getNode())):!n&&lp(B)&&MC(Z,B,f)?dz(Z,B,f).map(oe=>$f.remove(oe.getNode())):n&&Gh(B)&&AC(Z,B,f)?hz(Z,B,f).map(oe=>$f.remove(oe.getNode())):MA(e,n,B,f)},UW=(e,n)=>r=>(e._selectionOverrides.hideFakeCaret(),up(e,n,jt.fromDom(r)),!0),WW=(e,n)=>r=>{const f=n?In.before(r):In.after(r);return e.selection.setRng(f.toRange()),!0},GW=e=>n=>(e.selection.setRng(n.toRange()),!0),nP=(e,n)=>X.from(ay(e.getBody(),n)),rP=(e,n)=>{const r=e.selection.getNode();return nP(e,r).filter(fa).fold(()=>JR(e.getBody(),n,e.selection.getRng(),e.schema).map(f=>()=>f.fold(UW(e,n),WW(e,n),GW(e))),()=>X.some(j))},ZW=e=>{ie(Vi(e,".mce-offscreen-selection"),Ua)},jW=(e,n)=>{const r=e.selection.getNode();return fa(r)&&!Bg(r)?nP(e,r.parentNode).filter(fa).fold(()=>X.some(()=>{ZW(jt.fromDom(e.getBody())),up(e,n,jt.fromDom(e.selection.getNode())),kk(e)}),()=>X.some(j)):KR(e)?X.some(()=>{DC(e,e.selection.getRng(),jt.fromDom(e.getBody()))}):X.none()},EA=e=>{const n=e.dom,r=e.selection,f=ay(e.getBody(),r.getNode());if(wl(f)&&n.isBlock(f)&&n.isEmpty(f)){const w=n.create("br",{"data-mce-bogus":"1"});n.setHTML(f,""),f.appendChild(w),r.setRng(In.before(w).toRange())}return!0},QR=(e,n)=>e.selection.isCollapsed()?rP(e,n):jW(e,n),YW=(e,n)=>{const r=In.fromRangeStart(e.selection.getRng());return dl(n,e.getBody(),r).filter(f=>n?sz(f):iz(f)).bind(f=>M1(n?0:-1,f)).map(f=>()=>e.selection.select(f))},qR=(e,n)=>e.selection.isCollapsed()?YW(e,n):X.none(),Wx=ir,oP=e=>Wx(e)&&e.data[0]===ve,aP=e=>Wx(e)&&e.data[e.data.length-1]===ve,sP=e=>{var n;return((n=e.ownerDocument)!==null&&n!==void 0?n:document).createTextNode(ve)},_A=e=>{var n;if(Wx(e.previousSibling))return aP(e.previousSibling)||e.previousSibling.appendData(ve),e.previousSibling;if(Wx(e))return oP(e)||e.insertData(0,ve),e;{const r=sP(e);return(n=e.parentNode)===null||n===void 0||n.insertBefore(r,e),r}},RA=e=>{var n,r;if(Wx(e.nextSibling))return oP(e.nextSibling)||e.nextSibling.insertData(0,ve),e.nextSibling;if(Wx(e))return aP(e)||e.appendData(ve),e;{const f=sP(e);return e.nextSibling?(n=e.parentNode)===null||n===void 0||n.insertBefore(f,e.nextSibling):(r=e.parentNode)===null||r===void 0||r.appendChild(f),f}},LA=(e,n)=>e?_A(n):RA(n),KW=Q(LA,!0),DA=Q(LA,!1),iP=(e,n)=>ir(e.container())?LA(n,e.container()):LA(n,e.getNode()),lP=(e,n)=>{const r=n.get();return r&&e.container()===r&&yt(r)},eL=(e,n)=>n.fold(r=>{Xi(e.get());const f=KW(r);return e.set(f),X.some(In(f,f.length-1))},r=>Sc(r).map(f=>{if(lP(f,e)){const w=e.get();return In(w,1)}else{Xi(e.get());const w=iP(f,!0);return e.set(w),In(w,1)}}),r=>kf(r).map(f=>{if(lP(f,e)){const w=e.get();return In(w,w.length-1)}else{Xi(e.get());const w=iP(f,!1);return e.set(w),In(w,w.length-1)}}),r=>{Xi(e.get());const f=DA(r);return e.set(f),X.some(In(f,1))}),cP=(e,n)=>{for(let r=0;r{const r=Ph(n,e);return r||e},XW=(e,n,r)=>{const f=ry(r),w=uP(n,f.container());return Ud(e,w,f).fold(()=>ic(w,f).bind(Q(Ud,e,w)).map(B=>su.before(B)),X.none)},JW=(e,n)=>ep(e,n)===null,fP=(e,n,r)=>Ud(e,n,r).filter(Q(JW,n)),QW=(e,n,r)=>{const f=_C(r);return fP(e,n,f).bind(w=>Nc(w,f).isNone()?X.some(su.start(w)):X.none())},qW=(e,n,r)=>{const f=ry(r);return fP(e,n,f).bind(w=>ic(w,f).isNone()?X.some(su.end(w)):X.none())},Lee=(e,n,r)=>{const f=_C(r),w=uP(n,f.container());return Ud(e,w,f).fold(()=>Nc(w,f).bind(Q(Ud,e,w)).map(B=>su.after(B)),X.none)},hd=e=>!c8($A(e)),Jd=(e,n,r)=>cP([XW,QW,qW,Lee],[e,n,r]).filter(hd),$A=e=>e.fold(K,K,K,K),tL=e=>e.fold(J("before"),J("start"),J("end"),J("after")),OA=e=>e.fold(su.before,su.before,su.after,su.after),PA=e=>e.fold(su.start,su.start,su.end,su.end),eG=(e,n)=>tL(e)===tL(n)&&$A(e)===$A(n),dP=(e,n,r,f,w,B)=>Es(Ud(n,r,f),Ud(n,r,w),(Z,oe)=>Z!==oe&&Wd(r,Z,oe)?su.after(e?Z:oe):B).getOr(B),tG=(e,n)=>e.fold(fe,r=>!eG(r,n)),nG=(e,n,r,f,w)=>{const B=Ta(e,w);return dl(e,r,B).map(Q(Ta,e)).fold(()=>f.map(OA),be=>Jd(n,r,be).map(Q(dP,e,n,r,B,be)).filter(Q(tG,f))).filter(hd)},rG=(e,n)=>e?n.fold(P(X.some,su.start),X.none,P(X.some,su.after),X.none):n.fold(X.none,P(X.some,su.before),X.none,P(X.some,su.end)),Gx=(e,n,r,f)=>{const w=Ta(e,f),B=Jd(n,r,w);return Jd(n,r,w).bind(Q(rG,e)).orThunk(()=>nG(e,n,r,B,f))},hP=e=>R(e.selection.getSel().modify),nL=(e,n,r)=>{const f=e?1:-1;return n.setRng(In(r.container(),r.offset()+f).toRange()),n.getSel().modify("move",e?"forward":"backward","word"),!0},mP=(e,n)=>{const r=n.selection.getRng(),f=e?In.fromRangeEnd(r):In.fromRangeStart(r);return hP(n)?e&&mn(f)?nL(!0,n.selection,f):!e&&An(f)?nL(!1,n.selection,f):!1:!1};var Qd;(function(e){e[e.Br=0]="Br",e[e.Block=1]="Block",e[e.Wrap=2]="Wrap",e[e.Eol=3]="Eol"})(Qd||(Qd={}));const IA=(e,n)=>e===gi.Backwards?ot(n):n,oG=(e,n,r)=>e===gi.Forwards?n.next(r):n.prev(r),aG=(e,n,r,f)=>Ja(f.getNode(n===gi.Forwards))?Qd.Br:td(r,f)===!1?Qd.Block:Qd.Wrap,sG=(e,n,r,f)=>{const w=nd(r);let B=f;const Z=[];for(;B;){const oe=oG(n,w,B);if(!oe)break;if(Ja(oe.getNode(!1)))return n===gi.Forwards?{positions:IA(n,Z).concat([oe]),breakType:Qd.Br,breakAt:X.some(oe)}:{positions:IA(n,Z),breakType:Qd.Br,breakAt:X.some(oe)};if(!oe.isVisible()){B=oe;continue}if(e(B,oe)){const be=aG(r,n,B,oe);return{positions:IA(n,Z),breakType:be,breakAt:X.some(oe)}}Z.push(oe),B=oe}return{positions:IA(n,Z),breakType:Qd.Eol,breakAt:X.none()}},iG=(e,n,r,f)=>n(r,f).breakAt.map(w=>{const B=n(r,w).positions;return e===gi.Backwards?B.concat(w):[w].concat(B)}).getOr([]),gP=(e,n)=>le(e,(r,f)=>r.fold(()=>X.some(f),w=>Es(gt(w.getClientRects()),gt(f.getClientRects()),(B,Z)=>{const oe=Math.abs(n-B.left);return Math.abs(n-Z.left)<=oe?f:w}).or(r)),X.none()),sf=(e,n)=>gt(n.getClientRects()).bind(r=>gP(e,r.left)),fS=Q(sG,In.isAbove,-1),dS=Q(sG,In.isBelow,1),t0=Q(iG,-1,fS),rL=Q(iG,1,dS),pP=(e,n)=>fS(e,n).breakAt.isNone(),hS=(e,n)=>dS(e,n).breakAt.isNone(),lG=e=>Sc(e).map(n=>[n].concat(dS(e,n).positions)).getOr([]),cG=e=>kf(e).map(n=>fS(e,n).positions.concat(n)).getOr([]),uG=(e,n)=>sf(t0(e,n),n),fG=(e,n)=>sf(rL(e,n),n),dG=fa,vP=(e,n)=>Math.abs(e.left-n),ig=(e,n)=>Math.abs(e.right-n),hG=e=>ft(e,"node"),yP=(e,n)=>fn(e,(r,f)=>{const w=Math.min(vP(r,n),ig(r,n)),B=Math.min(vP(f,n),ig(f,n));return B===w&&hG(f)&&dG(f.node)||B{const n=r=>Fe(r,f=>{const w=jg(f);return w.node=e,w});if(Gr(e))return n(e.getClientRects());if(ir(e)){const r=e.ownerDocument.createRange();return r.setStart(e,0),r.setEnd(e,e.data.length),n(r.getClientRects())}else return[]},bP=e=>ze(e,mG);var mS;(function(e){e[e.Up=-1]="Up",e[e.Down=1]="Down"})(mS||(mS={}));const oL=(e,n,r,f)=>{let w=f;for(;w=Sv(w,e,sa,n);)if(r(w))return},NA=(e,n,r,f,w,B)=>{let Z=0;const oe=[],be=Je=>{let at=bP([Je]);e===-1&&(at=at.reverse());for(let Rt=0;Rt0&&n(Ht,Zt(oe))&&Z++,Ht.line=Z,w(Ht))return!0;oe.push(Ht)}}return!1},Pe=Zt(B.getClientRects());if(!Pe)return oe;const Ke=B.getNode();return Ke&&(be(Ke),oL(e,f,be,Ke)),oe},aL=(e,n)=>n.line>e,xP=(e,n)=>n.line===e,wP=Q(NA,mS.Up,Rm,Kg),CP=Q(NA,mS.Down,Kg,Rm),SP=e=>Zt(e.getClientRects()),gS=(e,n,r,f)=>{const w=nd(n);let B,Z,oe,be;const Pe=[];let Ke=0;e===1?(B=w.next,Z=Kg,oe=Rm,be=In.after(f)):(B=w.prev,Z=Rm,oe=Kg,be=In.before(f));const Je=SP(be);do{if(!be.isVisible())continue;const at=SP(be);if(oe(at,Je))continue;Pe.length>0&&Z(at,Zt(Pe))&&Ke++;const Rt=jg(at);if(Rt.position=be,Rt.line=Ke,r(Rt))return Pe;Pe.push(Rt)}while(be=B(be));return Pe},pS=e=>n=>aL(e,n),FA=e=>n=>xP(e,n),lg=(e,n)=>{e.selection.setRng(n),J1(e,e.selection.getRng())},BA=(e,n,r)=>X.some(Ux(e,n,r)),sL=(e,n,r,f,w,B)=>{const Z=n===gi.Forwards,oe=nd(e.getBody()),be=Q($T,Z?oe.next:oe.prev),Pe=Z?f:w;if(!r.collapsed){const Ht=sw(r);if(B(Ht))return sg(n,e,Ht,n===gi.Backwards,!1);if(KR(e)){const At=r.cloneRange();return At.collapse(n===gi.Backwards),X.from(At)}}const Ke=Bm(n,e.getBody(),r);if(Pe(Ke))return Vx(e,Ke.getNode(!Z));let Je=be(Ke);const at=vn(r);if(Je)Je=Ta(Z,Je);else return at?X.some(r):X.none();if(Pe(Je))return sg(n,e,Je.getNode(!Z),Z,!1);const Rt=be(Je);return Rt&&Pe(Rt)&&Xw(Je,Rt)?sg(n,e,Rt.getNode(!Z),Z,!1):at?BA(e,Je.toRange(),!1):X.none()},vS=(e,n,r,f,w,B)=>{const Z=Bm(n,e.getBody(),r),oe=Zt(Z.getClientRects()),be=n===mS.Down,Pe=e.getBody();if(!oe)return X.none();if(KR(e)){const It=be?In.fromRangeEnd(r):In.fromRangeStart(r);return(be?fG:uG)(Pe,It).orThunk(()=>X.from(It)).map(xn=>xn.toRange())}const Je=(be?CP:wP)(Pe,pS(1),Z),at=ue(Je,FA(1)),Rt=oe.left,Ht=yP(at,Rt);if(Ht&&B(Ht.node)){const It=Math.abs(Rt-Ht.left),ln=Math.abs(Rt-Ht.right);return sg(n,e,Ht.node,ItUx(e,It.toRange(),!1)):X.none()},yS=(e,n)=>{const r=e.selection.getRng(),f=n?In.fromRangeEnd(r):In.fromRangeStart(r),w=jw(f.container(),e.getBody());if(n){const B=dS(w,f);return ut(B.positions)}else{const B=fS(w,f);return gt(B.positions)}},Zx=(e,n,r)=>yS(e,n).filter(r).exists(f=>(e.selection.setRng(f.toRange()),!0)),HA=(e,n)=>{const r=e.dom.createRng();r.setStart(n.container(),n.offset()),r.setEnd(n.container(),n.offset()),e.selection.setRng(r)},iL=(e,n)=>{e?n.setAttribute("data-mce-selected","inline-boundary"):n.removeAttribute("data-mce-selected")},TP=(e,n,r)=>eL(n,r).map(f=>(HA(e,f),r)),gG=(e,n,r)=>{const f=In.fromRangeStart(e);if(e.collapsed)return f;{const w=In.fromRangeEnd(e);return r?Nc(n,w).getOr(w):ic(n,f).getOr(f)}},kP=(e,n,r)=>{const f=e.getBody(),w=gG(e.selection.getRng(),f,r),B=Q(ny,e);return Gx(r,B,f,w).bind(oe=>TP(e,n,oe))},pG=(e,n,r)=>{const f=Fe(Vi(jt.fromDom(n.getRoot()),'*[data-mce-selected="inline-boundary"]'),Z=>Z.dom),w=ue(f,e),B=ue(r,e);ie(dt(w,B),Q(iL,!1)),ie(dt(B,w),Q(iL,!0))},AP=(e,n)=>{const r=n.get();if(e.selection.isCollapsed()&&!e.composing&&r){const f=In.fromRangeStart(e.selection.getRng());In.isTextPosition(f)&&!Dz(f)&&(HA(e,MT(r,f)),n.set(null))}},Dee=(e,n,r,f)=>{if(n.selection.isCollapsed()){const w=ue(f,e);ie(w,B=>{const Z=In.fromRangeStart(n.selection.getRng());Jd(e,n.getBody(),Z).bind(oe=>TP(n,r,oe))})}},MP=(e,n,r)=>Jg(e)?kP(e,n,r).isSome():!1,EP=(e,n,r)=>Jg(n)?mP(e,n):!1,vG=e=>{const n=Us(null),r=Q(ny,e);return e.on("NodeChange",f=>{Jg(e)&&(pG(r,e.dom,f.parents),AP(e,n),Dee(r,e,n,f.parents))}),n},yG=Q(EP,!0),bG=Q(EP,!1),zA=(e,n,r)=>{if(Jg(e)){const f=yS(e,n).getOrThunk(()=>{const w=e.selection.getRng();return n?In.fromRangeEnd(w):In.fromRangeStart(w)});return Jd(Q(ny,e),e.getBody(),f).exists(w=>{const B=OA(w);return eL(r,B).exists(Z=>(HA(e,Z),!0))})}else return!1},xG=(e,n)=>{const r=document.createRange();return r.setStart(e.container(),e.offset()),r.setEnd(n.container(),n.offset()),r},wG=e=>Es(Sc(e),kf(e),(n,r)=>{const f=Ta(!0,n),w=Ta(!1,r);return ic(e,f).forall(B=>B.isEqual(w))}).getOr(!0),lL=(e,n)=>r=>eL(n,r).map(f=>()=>HA(e,f)),_P=(e,n,r,f)=>{const w=e.getBody(),B=Q(ny,e);e.undoManager.ignore(()=>{e.selection.setRng(xG(r,f)),RC(e),Jd(B,w,In.fromRangeStart(e.selection.getRng())).map(PA).bind(lL(e,n)).each(ce)}),e.nodeChanged()},hy=(e,n)=>{const r=Ph(n,e);return r||e},RP=(e,n,r,f)=>{const w=hy(e.getBody(),f.container()),B=Q(ny,e),Z=Jd(B,w,f);return Z.bind(be=>r?be.fold(J(X.some(PA(be))),X.none,J(X.some(OA(be))),X.none):be.fold(X.none,J(X.some(OA(be))),X.none,J(X.some(PA(be))))).map(lL(e,n)).getOrThunk(()=>{const be=Nh(r,w,f),Pe=be.bind(Ke=>Jd(B,w,Ke));return Es(Z,Pe,()=>Ud(B,w,f).bind(Ke=>wG(Ke)?X.some(()=>{up(e,r,jt.fromDom(Ke))}):X.none())).getOrThunk(()=>Pe.bind(()=>be.map(Ke=>()=>{r?_P(e,n,f,Ke):_P(e,n,Ke,f)})))})},bS=(e,n,r)=>{if(e.selection.isCollapsed()&&Jg(e)){const f=In.fromRangeStart(e.selection.getRng());return RP(e,n,r,f)}return X.none()},LP=e=>ll(e)>1,VA=(e,n)=>{const r=jt.fromDom(e.getBody()),f=jt.fromDom(e.selection.getStart()),w=Ym(f,r);return Me(w,n).fold(J(w),B=>w.slice(0,B))},n0=e=>ll(e)===1,DP=e=>VA(e,n=>e.schema.isBlock(La(n))||LP(n)),md=e=>VA(e,n=>e.schema.isBlock(La(n))),r0=(e,n)=>{const r=Q(Jm,e);return ze(n,f=>r(f)?[f.dom]:[])},UA=e=>{const n=md(e);return r0(e,n)},CG=(e,n,r,f)=>{const w=r0(n,f);if(w.length===0)up(n,e,r);else{const B=X8(r.dom,w);n.selection.setRng(B.toRange())}},$P=(e,n)=>{const r=ue(DP(e),n0);return ut(r).bind(f=>{const w=In.fromRangeStart(e.selection.getRng());return Ak(n,w,f.dom)&&!H1(f)?X.some(()=>CG(n,e,f,r)):X.none()})},SG=(e,n)=>{const r=n.parentElement;return Ja(n)&&!O(r)&&e.dom.isEmpty(r)},TG=e=>H1(jt.fromDom(e)),OP=(e,n)=>{const r=e.selection.getStart(),f=SG(e,r)||TG(r)?X8(r,n):Wk(e.selection.getRng(),n);e.selection.setRng(f.toRange())},kG=(e,n)=>{const r=dt(n,UA(e));r.length>0&&OP(e,r)},PP=e=>ir(e.startContainer),IP=e=>e.startOffset===0&&PP(e),AG=(e,n)=>{const r=n.startContainer.parentElement;return!O(r)&&Jm(e,jt.fromDom(r))},MG=e=>{const n=e.startContainer.parentNode,r=e.endContainer.parentNode;return!O(n)&&!O(r)&&n.isEqualNode(r)},jx=e=>{const n=e.endContainer;return e.endOffset===(ir(n)?n.length:n.childNodes.length)},cL=e=>MG(e)&&jx(e),NP=e=>!e.endContainer.isEqualNode(e.commonAncestorContainer),FP=e=>cL(e)||NP(e),uL=e=>{const n=e.selection.getRng();return IP(n)&&AG(e,n)&&FP(n)},EG=e=>{if(uL(e)){const n=UA(e);return X.some(()=>{RC(e),kG(e,n)})}else return X.none()},fL=(e,n)=>e.selection.isCollapsed()?$P(e,n):EG(e),_G=(e,n)=>Pz(e,r=>Mu(r.dom),r=>n.isBlock(La(r))),RG=e=>_G(jt.fromDom(e.selection.getStart()),e.schema),LG=e=>{const n=e.selection.getRng();return n.collapsed&&(PP(n)||e.dom.isEmpty(n.startContainer))&&!RG(e)},xS=e=>(LG(e)&&OP(e,[]),!0),dL=(e,n,r)=>k(r)?X.some(()=>{e._selectionOverrides.hideFakeCaret(),up(e,n,jt.fromDom(r))}):X.none(),BP=(e,n)=>{const r=n?kC:vx,f=n?gi.Forwards:gi.Backwards,w=Bm(f,e.getBody(),e.selection.getRng());return r(w)?dL(e,n,w.getNode(!n)):X.from(Ta(n,w)).filter(B=>r(B)&&Xw(w,B)).bind(B=>dL(e,n,B.getNode(!n)))},DG=(e,n)=>{const r=e.selection.getNode();return zs(r)?dL(e,n,r):X.none()},hL=(e,n)=>e.selection.isCollapsed()?BP(e,n):DG(e,n),Of=e=>Xc(e,n=>wl(n.dom)||fa(n.dom)).exists(n=>wl(n.dom)),mL=e=>Bt(e??"").getOr(0),WA=(e,n)=>{const r=e||Ql(n)?"margin":"padding",f=ui(n,"direction")==="rtl"?"-right":"-left";return r+f},HP=(e,n,r,f,w,B)=>{const Z=WA(r,jt.fromDom(B)),oe=mL(e.getStyle(B,Z));if(n==="outdent"){const be=Math.max(0,oe-f);e.setStyle(B,Z,be?be+w:"")}else{const be=oe+f+w;e.setStyle(B,Z,be)}},gL=(e,n)=>We(n,r=>{const f=WA(Pb(e),r),w=_i(r,f).map(mL).getOr(0);return e.dom.getContentEditable(r.dom)!=="false"&&w>0}),zP=e=>{const n=UP(e);return!e.mode.isReadOnly()&&(n.length>1||gL(e,n))},VP=e=>ql(e)||yf(e),$G=e=>Rc(e).exists(VP),UP=e=>ue(Pg(e.selection.getSelectedBlocks()),n=>!VP(n)&&!$G(n)&&Of(n)),WP=(e,n)=>{var r,f;const{dom:w}=e,B=_w(e),Z=(f=(r=/[a-z%]+$/i.exec(B))===null||r===void 0?void 0:r[0])!==null&&f!==void 0?f:"px",oe=mL(B),be=Pb(e);ie(UP(e),Pe=>{HP(w,n,be,oe,Z,Pe.dom)})},GP=e=>WP(e,"indent"),ZP=e=>WP(e,"outdent"),jP=e=>{if(e.selection.isCollapsed()&&zP(e)){const n=e.dom,r=e.selection.getRng(),f=In.fromRangeStart(r),w=n.getParent(r.startContainer,n.isBlock);if(w!==null&&B_(jt.fromDom(w),f,e.schema))return X.some(()=>ZP(e))}return X.none()},Yx=(e,n,r)=>Ct([jP,QR,AA,(f,w)=>bS(f,n,w),ZR,BC,qR,hL,kA,fL],f=>f(e,r)).filter(f=>e.selection.isEditable()),vp=(e,n)=>{Yx(e,n,!1).fold(()=>{e.selection.isEditable()&&(RC(e),kk(e))},ce)},my=(e,n)=>{Yx(e,n,!0).fold(()=>{e.selection.isEditable()&&$z(e)},ce)},GA=(e,n)=>{e.addCommand("delete",()=>{vp(e,n)}),e.addCommand("forwardDelete",()=>{my(e,n)})},ZA=5,pL=400,vL=e=>e.touches===void 0||e.touches.length!==1?X.none():X.some(e.touches[0]),OG=(e,n)=>{const r=Math.abs(e.clientX-n.x),f=Math.abs(e.clientY-n.y);return r>ZA||f>ZA},YP=e=>{const n=Em(),r=Us(!1),f=wb(w=>{e.dispatch("longpress",{...w,type:"longpress"}),r.set(!0)},pL);e.on("touchstart",w=>{vL(w).each(B=>{f.cancel();const Z={x:B.clientX,y:B.clientY,target:w.target};f.throttle(w),r.set(!1),n.set(Z)})},!0),e.on("touchmove",w=>{f.cancel(),vL(w).each(B=>{n.on(Z=>{OG(B,Z)&&(n.clear(),r.set(!1),e.dispatch("longpresscancel"))})})},!0),e.on("touchend touchcancel",w=>{f.cancel(),w.type!=="touchcancel"&&n.get().filter(B=>B.target.isEqualNode(w.target)).each(()=>{r.get()?w.preventDefault():e.dispatch("tap",{...w,type:"tap"})})},!0)},jA=(e,n)=>lt(e,n.nodeName),PG=(e,n)=>ir(n)?!0:Gr(n)?!jA(e.getBlockElements(),n)&&!Eu(n)&&!pa(e,n)&&!Yf(n):!1,IG=(e,n,r)=>Oe(N_(jt.fromDom(r),jt.fromDom(n)),f=>jA(e,f.dom)),NG=(e,n)=>{if(ir(n)){if(n.data.length===0)return!0;if(/^\s+$/.test(n.data))return!n.nextSibling||jA(e,n.nextSibling)||Yf(n.nextSibling)}return!1},KP=e=>e.dom.create(ac(e),v1(e)),FG=e=>{const n=e.dom,r=e.selection,f=e.schema,w=f.getBlockElements(),B=r.getStart(),Z=e.getBody();let oe,be,Pe=!1;const Ke=ac(e);if(!B||!Gr(B))return;const Je=Z.nodeName.toLowerCase();if(!f.isValidChild(Je,Ke.toLowerCase())||IG(w,Z,B))return;const at=r.getRng(),{startContainer:Rt,startOffset:Ht,endContainer:At,endOffset:It}=at,ln=Vv(e);let xn=Z.firstChild;for(;xn;)if(Gr(xn)&&sb(f,xn),PG(f,xn)){if(NG(w,xn)){be=xn,xn=xn.nextSibling,n.remove(be);continue}oe||(oe=KP(e),Z.insertBefore(oe,xn),Pe=!0),be=xn,xn=xn.nextSibling,oe.appendChild(be)}else oe=null,xn=xn.nextSibling;Pe&&ln&&(at.setStart(Rt,Ht),at.setEnd(At,It),r.setRng(at),e.nodeChanged())},XP=(e,n,r)=>{const f=jt.fromDom(KP(e)),w=ec();di(f,w),r(n,f);const B=document.createRange();return B.setStartBefore(w.dom),B.setEndBefore(w.dom),B},JP=e=>{e.on("NodeChange",Q(FG,e))},yL=e=>n=>(" "+n.attr("class")+" ").indexOf(e)!==-1,$ee=(e,n,r)=>function(f){const w=arguments,B=w[w.length-2],Z=B>0?n.charAt(B-1):"";if(Z==='"')return f;if(Z===">"){const oe=n.lastIndexOf("<",B);if(oe!==-1&&n.substring(oe,B).indexOf('contenteditable="false"')!==-1)return f}return''+e.dom.encode(typeof w[1]=="string"?w[1]:w[0])+""},Oee=(e,n,r)=>{let f=n.length,w=r.content;if(r.format!=="raw"){for(;f--;)w=w.replace(n[f],$ee(e,w,Fw(e)));r.content=w}},Pee=e=>{const n="contenteditable",r=" "+ur.trim(CT(e))+" ",f=" "+ur.trim(Fw(e))+" ",w=yL(r),B=yL(f),Z=P4(e);Z.length>0&&e.on("BeforeSetContent",oe=>{Oee(e,Z,oe)}),e.parser.addAttributeFilter("class",oe=>{let be=oe.length;for(;be--;){const Pe=oe[be];w(Pe)?Pe.attr(n,"true"):B(Pe)&&Pe.attr(n,"false")}}),e.serializer.addAttributeFilter(n,oe=>{let be=oe.length;for(;be--;){const Pe=oe[be];!w(Pe)&&!B(Pe)||(Z.length>0&&Pe.attr("data-mce-content")?(Pe.name="#text",Pe.type=3,Pe.raw=!0,Pe.value=Pe.attr("data-mce-content")):Pe.attr(n,null))}})},BG=e=>Jl(jt.fromDom(e.getBody()),"*[data-mce-caret]").map(n=>n.dom).getOrNull(),HG=(e,n)=>{n.hasAttribute("data-mce-caret")&&(Mn(n),e.selection.setRng(e.selection.getRng()),e.selection.scrollIntoView(n))},Iee=(e,n)=>{const r=BG(e);if(r){if(n.type==="compositionstart"){n.preventDefault(),n.stopPropagation(),HG(e,r);return}Vt(r)&&(HG(e,r),e.undoManager.add())}},zG=e=>{e.on("keyup compositionstart",Q(Iee,e))},QP=fa,Nee=(e,n,r)=>sL(n,e,r,lp,Gh,QP),VG=(e,n,r)=>vS(n,e,r,B=>lp(B)||G$(B),B=>Gh(B)||qo(B),QP),lf=e=>{const n=e.dom.create(ac(e));return n.innerHTML='
    ',n},bL=(e,n,r)=>{const f=nd(e.getBody()),w=Q($T,n===1?f.next:f.prev);if(r.collapsed){const B=e.dom.getParent(r.startContainer,"PRE");if(!B)return;if(!w(In.fromRangeStart(r))){const oe=jt.fromDom(lf(e));n===1?gu(jt.fromDom(B),oe):Ri(jt.fromDom(B),oe),e.selection.select(oe.dom,!0),e.selection.collapse()}}},wS=(e,n)=>{const r=n?gi.Forwards:gi.Backwards,f=e.selection.getRng();return Nee(r,e,f).orThunk(()=>(bL(e,r,f),X.none()))},UG=(e,n)=>{const r=n?1:-1,f=e.selection.getRng();return VG(r,e,f).orThunk(()=>(bL(e,r,f),X.none()))},qP=(e,n)=>{const r=n?e.getEnd(!0):e.getStart(!0);return c8(r)?!n:n},xL=(e,n)=>wS(e,qP(e.selection,n)).exists(r=>(lg(e,r),!0)),YA=(e,n)=>UG(e,n).exists(r=>(lg(e,r),!0)),eI=(e,n)=>Zx(e,n,n?Gh:lp),KA=(e,n)=>YR(e,!n).map(r=>{const f=r.toRange(),w=e.selection.getRng();return n?f.setStart(w.startContainer,w.startOffset):f.setEnd(w.endContainer,w.endOffset),f}).exists(r=>(lg(e,r),!0)),tI=e=>Ve(["figcaption"],La(e)),WG=(e,n,r)=>{const f=Q(Ba,n);return Xc(jt.fromDom(e.container()),w=>r.isBlock(La(w)),f).filter(tI)},GG=(e,n,r)=>n?hS(e.dom,r):pP(e.dom,r),ZG=(e,n)=>{const r=jt.fromDom(e.getBody()),f=In.fromRangeStart(e.selection.getRng());return WG(f,r,e.schema).exists(()=>{if(GG(r,n,f)){const B=XP(e,r,n?di:yh);return e.selection.setRng(B),!0}else return!1})},XA=(e,n)=>e.selection.isCollapsed()?ZG(e,n):!1,jG=(e,n,r)=>{const f=e.selection.getRng(),w=In.fromRangeStart(f);return e.getBody().firstChild===n&&pP(r,w)?(e.execCommand("InsertNewBlockBefore"),!0):!1},YG=(e,n)=>{const r=e.selection.getRng(),f=In.fromRangeStart(r);return e.getBody().lastChild===n&&hS(n,f)?(e.execCommand("InsertNewBlockAfter"),!0):!1},Fee=(e,n)=>n?X.from(e.dom.getParent(e.selection.getNode(),"details")).map(r=>YG(e,r)).getOr(!1):X.from(e.dom.getParent(e.selection.getNode(),"summary")).bind(r=>X.from(e.dom.getParent(r,"details")).map(f=>jG(e,f,r))).getOr(!1),nI=(e,n)=>Fee(e,n),wL={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},Bee=e=>Fe(e,n=>({...wL,...n})),KG=e=>Fe(e,n=>({...wL,...n})),rI=(e,n)=>n.keyCode===e.keyCode&&n.shiftKey===e.shiftKey&&n.altKey===e.altKey&&n.ctrlKey===e.ctrlKey&&n.metaKey===e.metaKey,XG=(e,n)=>ze(Bee(e),r=>rI(r,n)?[r]:[]),CL=(e,n)=>ze(KG(e),r=>rI(r,n)?[r]:[]),Eo=(e,...n)=>()=>e.apply(null,n),Kx=(e,n)=>de(XG(e,n),r=>r.action()),SL=(e,n)=>Ct(CL(e,n),r=>r.action()),oI=(e,n)=>{const r=n?gi.Forwards:gi.Backwards,f=e.selection.getRng();return sL(e,r,f,kC,vx,zs).exists(w=>(lg(e,w),!0))},aI=(e,n)=>{const r=n?1:-1,f=e.selection.getRng();return vS(e,r,f,kC,vx,zs).exists(w=>(lg(e,w),!0))},JA=(e,n)=>Zx(e,n,n?vx:kC),sI=ed.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),CS={...sI,none:e=>sI.none(e)},JG=(e,n)=>gd(e,n,fe),gd=(e,n,r)=>ze(zi(e),f=>du(f,n)?r(f)?[f]:[]:gd(f,n,r)),iI=(e,n,r=ne)=>{if(r(n))return X.none();if(Ve(e,La(n)))return X.some(n);const f=w=>du(w,"table")||r(w);return vm(n,e.join(","),f)},lI=(e,n)=>iI(["td","th"],e,n),zee=e=>JG(e,"th,td"),QG=(e,n)=>Ku(e,"table",n),cI=(e,n,r,f,w=fe)=>{const B=f===1;if(!B&&r<=0)return CS.first(e[0]);if(B&&r>=e.length-1)return CS.last(e[e.length-1]);{const Z=r+f,oe=e[Z];return w(oe)?CS.middle(n,oe):cI(e,n,Z,f,w)}},qG=(e,n)=>QG(e,n).bind(r=>{const f=zee(r);return Me(f,B=>Ba(e,B)).map(B=>({index:B,all:f}))}),eZ=(e,n,r)=>qG(e,r).fold(()=>CS.none(e),w=>cI(w.all,e,w.index,1,n)),QA=(e,n,r)=>qG(e,r).fold(()=>CS.none(),w=>cI(w.all,e,w.index,-1,n)),tZ=(e,n)=>({left:e.left-n,top:e.top-n,right:e.right+n*2,bottom:e.bottom+n*2,width:e.width+n,height:e.height+n}),TL=(e,n)=>ze(n,r=>{const f=tZ(jg(r.getBoundingClientRect()),-1);return[{x:f.left,y:e(f),cell:r},{x:f.right,y:e(f),cell:r}]}),uI=(e,n,r)=>le(e,(f,w)=>f.fold(()=>X.some(w),B=>{const Z=Math.sqrt(Math.abs(B.x-n)+Math.abs(B.y-r)),oe=Math.sqrt(Math.abs(w.x-n)+Math.abs(w.y-r));return X.some(oe{const B=Vi(jt.fromDom(r),"td,th,caption").map(oe=>oe.dom),Z=ue(TL(e,B),oe=>n(oe,w));return uI(Z,f,w).map(oe=>oe.cell)},fI=e=>e.bottom,nZ=e=>e.top,rZ=(e,n)=>e.ye.y>n,aZ=Q(kL,fI,rZ),qA=Q(kL,nZ,oZ),sZ=(e,n)=>gt(n.getClientRects()).bind(r=>aZ(e,r.left,r.top)).bind(r=>sf(cG(r),n)),iZ=(e,n)=>ut(n.getClientRects()).bind(r=>qA(e,r.left,r.top)).bind(r=>sf(lG(r),n)),lZ=(e,n,r)=>r.breakAt.exists(f=>e(n,f).breakAt.isSome()),AL=e=>e.breakType===Qd.Wrap&&e.positions.length===0,cZ=e=>e.breakType===Qd.Br&&e.positions.length===1,dI=(e,n,r)=>{const f=e(n,r);return AL(f)||!Ja(r.getNode())&&cZ(f)?!lZ(e,n,f):f.breakAt.isNone()},hI=Q(dI,fS),uZ=Q(dI,dS),fZ=(e,n,r)=>{const f=In.fromRangeStart(n);return _v(!e,r).exists(w=>w.isEqual(f))},dZ=(e,n,r,f)=>{const w=e.selection.getRng(),B=n?1:-1;return k1()&&fZ(n,w,r)?(sg(B,e,r,!n,!1).each(Z=>{lg(e,Z)}),!0):!1},hZ=(e,n,r)=>sZ(n,r).orThunk(()=>gt(r.getClientRects()).bind(f=>gP(t0(e,In.before(n)),f.left))).getOr(In.before(n)),mZ=(e,n,r)=>iZ(n,r).orThunk(()=>gt(r.getClientRects()).bind(f=>gP(rL(e,In.after(n)),f.left))).getOr(In.after(n)),mI=(e,n)=>{const r=n.getNode(e);return yu(r)?X.some(r):X.none()},ML=(e,n,r)=>{n.undoManager.transact(()=>{const f=e?gu:Ri,w=XP(n,jt.fromDom(r),f);lg(n,w)})},gI=(e,n,r)=>{const f=mI(!!n,r),w=n===!1;f.fold(()=>lg(e,r.toRange()),B=>_v(w,e.getBody()).filter(Z=>Z.isEqual(r)).fold(()=>lg(e,r.toRange()),Z=>ML(n,e,B)))},pI=(e,n,r,f)=>{const w=e.selection.getRng(),B=In.fromRangeStart(w),Z=e.getBody();if(!n&&hI(f,B)){const oe=hZ(Z,r,B);return gI(e,n,oe),!0}else if(n&&uZ(f,B)){const oe=mZ(Z,r,B);return gI(e,n,oe),!0}else return!1},vI=(e,n,r)=>X.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind(f=>X.from(e.dom.getParent(f,"table")).map(w=>r(e,n,w,f))).getOr(!1),yI=(e,n)=>vI(e,n,dZ),EL=(e,n)=>vI(e,n,pI),gZ=e=>{const n=Wh.exact(e,0,e,0);return T_(n)},bI=(e,n,r)=>r.fold(X.none,X.none,(f,w)=>zH(w).map(B=>gZ(B)),f=>(e.execCommand("mceTableInsertRowAfter"),xI(e,n,f))),xI=(e,n,r)=>bI(e,n,eZ(r,Wo)),tl=(e,n,r)=>bI(e,n,QA(r,Wo)),wI=(e,n)=>{const r=["table","li","dl"],f=jt.fromDom(e.getBody()),w=oe=>{const be=La(oe);return Ba(oe,f)||Ve(r,be)},B=e.selection.getRng(),Z=jt.fromDom(n?B.endContainer:B.startContainer);return lI(Z,w).map(oe=>(QG(oe,w).each(Ke=>{e.model.table.clearSelectedCells(Ke.dom)}),e.selection.collapse(!n),(n?xI:tl)(e,w,oe).each(Ke=>{e.selection.setRng(Ke)}),!0)).getOr(!1)},pZ=(e,n,r)=>{const f=Lr.os.isMacOS()||Lr.os.isiOS();Kx([{keyCode:Wr.RIGHT,action:Eo(xL,e,!0)},{keyCode:Wr.LEFT,action:Eo(xL,e,!1)},{keyCode:Wr.UP,action:Eo(YA,e,!1)},{keyCode:Wr.DOWN,action:Eo(YA,e,!0)},...f?[{keyCode:Wr.UP,action:Eo(KA,e,!1),metaKey:!0,shiftKey:!0},{keyCode:Wr.DOWN,action:Eo(KA,e,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:Wr.RIGHT,action:Eo(yI,e,!0)},{keyCode:Wr.LEFT,action:Eo(yI,e,!1)},{keyCode:Wr.UP,action:Eo(EL,e,!1)},{keyCode:Wr.DOWN,action:Eo(EL,e,!0)},{keyCode:Wr.UP,action:Eo(EL,e,!1)},{keyCode:Wr.UP,action:Eo(nI,e,!1)},{keyCode:Wr.DOWN,action:Eo(nI,e,!0)},{keyCode:Wr.RIGHT,action:Eo(oI,e,!0)},{keyCode:Wr.LEFT,action:Eo(oI,e,!1)},{keyCode:Wr.UP,action:Eo(aI,e,!1)},{keyCode:Wr.DOWN,action:Eo(aI,e,!0)},{keyCode:Wr.RIGHT,action:Eo(MP,e,n,!0)},{keyCode:Wr.LEFT,action:Eo(MP,e,n,!1)},{keyCode:Wr.RIGHT,ctrlKey:!f,altKey:f,action:Eo(yG,e,n)},{keyCode:Wr.LEFT,ctrlKey:!f,altKey:f,action:Eo(bG,e,n)},{keyCode:Wr.UP,action:Eo(XA,e,!1)},{keyCode:Wr.DOWN,action:Eo(XA,e,!0)}],r).each(w=>{r.preventDefault()})},vZ=(e,n)=>{e.on("keydown",r=>{r.isDefaultPrevented()||pZ(e,n,r)})},qd=(e,n)=>({container:e,offset:n}),Xx=Cs.DOM,SS=e=>n=>e===n?-1:0,o0=e=>n=>e.isBlock(n)||Ve(["BR","IMG","HR","INPUT"],n.nodeName)||e.getContentEditable(n)==="false",TS=(e,n,r)=>{if(ir(e)&&n>=0)return X.some(qd(e,n));{const f=_m(Xx);return X.from(f.backwards(e,n,SS(e),r)).map(w=>qd(w.container,w.container.data.length))}},CI=(e,n,r)=>{if(ir(e)&&n>=e.length)return X.some(qd(e,n));{const f=_m(Xx);return X.from(f.forwards(e,n,SS(e),r)).map(w=>qd(w.container,0))}},kS=(e,n,r)=>{if(!ir(e))return X.none();const f=e.data;if(n>=0&&n<=f.length)return X.some(qd(e,n));{const w=_m(Xx);return X.from(w.backwards(e,n,SS(e),r)).bind(B=>{const Z=B.container.data;return kS(B.container,n+Z.length,r)})}},eM=(e,n,r)=>{if(!ir(e))return X.none();const f=e.data;if(n<=f.length)return X.some(qd(e,n));{const w=_m(Xx);return X.from(w.forwards(e,n,SS(e),r)).bind(B=>eM(B.container,n-f.length,r))}},AS=(e,n,r,f,w)=>{const B=_m(e,o0(e));return X.from(B.backwards(n,r,f,w))},SI=e=>e.collapsed&&ir(e.startContainer),MS=e=>_e(e.toString().replace(/\u00A0/g," ")),ES=e=>e!==""&&`  \f -\r \v`.indexOf(e)!==-1,gy=(e,n)=>e.substring(n.length),_S=(e,n,r)=>{let f;const w=r.charAt(0);for(f=n-1;f>=0;f--){const B=e.charAt(f);if(ES(B))return X.none();if(w===B&&or(e,r,f,n))break}return X.some(f)},eh=(e,n,r,f=0)=>{if(!SI(n))return X.none();const w={text:"",offset:0},B=(oe,be,Pe)=>(w.text=Pe+w.text,w.offset+=be,_S(w.text,w.offset,r).getOr(be)),Z=e.getParent(n.startContainer,e.isBlock)||e.getRoot();return AS(e,n.startContainer,n.startOffset,B,Z).bind(oe=>{const be=n.cloneRange();if(be.setStart(oe.container,oe.offset),be.setEnd(n.endContainer,n.endOffset),be.collapsed)return X.none();const Pe=MS(be);return Pe.lastIndexOf(r)!==0||gy(Pe,r).lengthGH(jt.fromDom(n.startContainer)).fold(()=>eh(e,n,r,f),w=>{const B=e.createRng();B.selectNode(w.dom);const Z=MS(B);return X.some({range:B,text:gy(Z,r),trigger:r})}),TI=e=>e.nodeType===dh,kI=e=>e.nodeType===wd,AI=e=>{if(TI(e))return qd(e,e.data.length);{const n=e.childNodes;return n.length>0?AI(n[n.length-1]):qd(e,n.length)}},_L=(e,n)=>{const r=e.childNodes;return r.length>0&&n0&&kI(e)&&r.length===n?AI(r[r.length-1]):qd(e,n)},yZ=(e,n)=>{var r;const f=(r=e.getParent(n.container,e.isBlock))!==null&&r!==void 0?r:e.getRoot();return AS(e,n.container,n.offset,(w,B)=>B===0?-1:B,f).filter(w=>{const B=w.container.data.charAt(w.offset-1);return!ES(B)}).isSome()},bZ=e=>n=>{const r=_L(n.startContainer,n.startOffset);return!yZ(e,r)},RS=(e,n,r)=>Ct(r.triggers,f=>Jx(e,n,f)),xZ=(e,n)=>{const r=n(),f=e.selection.getRng();return RS(e.dom,f,r).bind(w=>MI(e,n,w))},MI=(e,n,r,f={})=>{var w;const B=n(),oe=(w=e.selection.getRng().startContainer.nodeValue)!==null&&w!==void 0?w:"",be=ue(B.lookupByTrigger(r.trigger),Ke=>r.text.length>=Ke.minChars&&Ke.matches.getOrThunk(()=>bZ(e.dom))(r.range,oe,r.text));if(be.length===0)return X.none();const Pe=Promise.all(Fe(be,Ke=>Ke.fetch(r.text,Ke.maxResults,f).then(at=>({matchText:r.text,items:at,columns:Ke.columns,onAction:Ke.onAction,highlightOn:Ke.highlightOn}))));return X.some({lookupData:Pe,context:r})};var Xh;(function(e){e[e.Error=0]="Error",e[e.Value=1]="Value"})(Xh||(Xh={}));const RL=(e,n,r)=>e.stype===Xh.Error?n(e.serror):r(e.svalue),wZ=e=>{const n=[],r=[];return ie(e,f=>{RL(f,w=>r.push(w),w=>n.push(w))}),{values:n,errors:r}},CZ=(e,n)=>e.stype===Xh.Error?{stype:Xh.Error,serror:n(e.serror)}:e,SZ=(e,n)=>e.stype===Xh.Value?{stype:Xh.Value,svalue:n(e.svalue)}:e,TZ=(e,n)=>e.stype===Xh.Value?n(e.svalue):e,kZ=(e,n)=>e.stype===Xh.Error?n(e.serror):e,EI=e=>({stype:Xh.Value,svalue:e}),_I=e=>({stype:Xh.Error,serror:e}),uc={fromResult:e=>e.fold(_I,EI),toResult:e=>RL(e,Oc.error,Oc.value),svalue:EI,partition:wZ,serror:_I,bind:TZ,bindError:kZ,map:SZ,mapError:CZ,fold:RL},tM=e=>_(e)&&Yt(e).length>100?" removed due to size":JSON.stringify(e,null,2),RI=e=>{const n=e.length>10?e.slice(0,10).concat([{path:[],getErrorInfo:J("... (only showing first ten failures)")}]):e;return Fe(n,r=>"Failed path: ("+r.path.join(" > ")+`) -`+r.getErrorInfo())},LS=(e,n)=>uc.serror([{path:e,getErrorInfo:n}]),AZ=(e,n,r)=>LS(e,()=>'Could not find valid *required* value for "'+n+'" in '+tM(r)),MZ=(e,n)=>LS(e,()=>'Choice schema did not contain choice key: "'+n+'"'),EZ=(e,n,r)=>LS(e,()=>'The chosen schema: "'+r+'" did not exist in branches: '+tM(n)),_Z=(e,n)=>LS(e,J(n)),LI=(e,n,r,f)=>wn(r,f).fold(()=>EZ(e,r,f),B=>B.extract(e.concat(["branch: "+f]),n)),RZ=(e,n)=>({extract:(w,B)=>wn(B,e).fold(()=>MZ(w,e),oe=>LI(w,B,n,oe)),toString:()=>"chooseOn("+e+"). Possible values: "+Yt(n)}),DI=(e,n)=>n,LZ=(e,n)=>$(e)&&$(n)?DS(e,n):n,LL=e=>(...n)=>{if(n.length===0)throw new Error("Can't merge zero objects");const r={};for(let f=0;f({tag:"required",process:{}}),$Z=e=>({tag:"defaultedThunk",process:e}),DL=e=>$Z(J(e)),OZ=()=>({tag:"option",process:{}}),PZ=(e,n)=>e.length>0?uc.svalue(DS(n,DZ.apply(void 0,e))):uc.svalue(n),$L=e=>P(uc.serror,Re)(e),OI={consolidateObj:(e,n)=>{const r=uc.partition(e);return r.errors.length>0?$L(r.errors):PZ(r.values,n)},consolidateArr:e=>{const n=uc.partition(e);return n.errors.length>0?$L(n.errors):uc.svalue(n.values)}},IZ=(e,n,r,f)=>({tag:"field",key:e,newKey:n,presence:r,prop:f}),NZ=(e,n)=>({tag:"custom",newKey:e,instantiator:n}),PI=(e,n,r)=>{switch(e.tag){case"field":return n(e.key,e.newKey,e.presence,e.prop);case"custom":return r(e.newKey,e.instantiator)}},nM=e=>{const n=(f,w)=>uc.bindError(e(w),B=>_Z(f,B)),r=J("val");return{extract:n,toString:r}},II=nM(uc.svalue),FZ=(e,n,r,f)=>wn(n,r).fold(()=>AZ(e,r,n),f),NI=(e,n,r,f)=>{const w=wn(e,n).getOrThunk(()=>r(e));return f(w)},BZ=(e,n,r)=>r(wn(e,n)),HZ=(e,n,r,f)=>{const w=wn(e,n).map(B=>B===!0?r(e):B);return f(w)},zZ=(e,n,r,f,w)=>{const B=oe=>w.extract(n.concat([f]),oe),Z=oe=>oe.fold(()=>uc.svalue(X.none()),be=>{const Pe=w.extract(n.concat([f]),be);return uc.map(Pe,X.some)});switch(e.tag){case"required":return FZ(n,r,f,B);case"defaultedThunk":return NI(r,f,e.process,B);case"option":return BZ(r,f,Z);case"defaultedOptionThunk":return HZ(r,f,e.process,Z);case"mergeWithThunk":return NI(r,f,J({}),oe=>{const be=DS(e.process(r),oe);return B(be)})}},VZ=(e,n,r)=>{const f={},w=[];for(const B of r)PI(B,(Z,oe,be,Pe)=>{const Ke=zZ(be,e,n,Z,Pe);uc.fold(Ke,Je=>{w.push(...Je)},Je=>{f[oe]=Je})},(Z,oe)=>{f[Z]=oe(n)});return w.length>0?uc.serror(w):uc.svalue(f)},OL=e=>({extract:(f,w)=>VZ(f,w,e),toString:()=>`obj{ -`+Fe(e,w=>PI(w,(B,Z,oe,be)=>B+" -> "+be.toString(),(B,Z)=>"state("+B+")")).join(` -`)+"}"}),FI=e=>({extract:(f,w)=>{const B=Fe(w,(Z,oe)=>e.extract(f.concat(["["+oe+"]"]),Z));return OI.consolidateArr(B)},toString:()=>"array("+e.toString()+")"}),Zee=e=>nM(n=>e(n).fold(uc.serror,uc.svalue)),UZ=(e,n,r)=>{const f=n.extract([e],r);return uc.mapError(f,w=>({input:r,errors:w}))},rM=(e,n,r)=>uc.toResult(UZ(e,n,r)),BI=e=>`Errors: -`+RI(e.errors).join(` -`)+` - -Input object: `+tM(e.input),PL=(e,n)=>RZ(e,pn(n,OL)),WZ=J(II),$S=(e,n)=>nM(r=>{const f=typeof r;return e(r)?uc.svalue(r):uc.serror(`Expected type: ${n} but got: ${f}`)}),HI=$S(F,"number"),oM=$S(C,"string"),GZ=$S(D,"boolean"),IL=$S(R,"function"),Qx=IZ,zI=NZ,NL=e=>Zee(n=>Ve(e,n)?Oc.value(n):Oc.error(`Unsupported value: "${n}", choose one of "${e.join(", ")}".`)),VI=(e,n)=>Qx(e,e,$I(),n),UI=e=>VI(e,oM),WI=e=>VI(e,IL),GI=(e,n)=>Qx(e,e,$I(),FI(n)),FL=(e,n)=>Qx(e,e,OZ(),n),aM=e=>FL(e,oM),ZZ=e=>FL(e,IL),jZ=(e,n)=>Qx(e,e,DL(n),WZ()),qx=(e,n,r)=>Qx(e,e,DL(n),r),nl=(e,n)=>qx(e,n,HI),cg=(e,n)=>qx(e,n,oM),ZI=(e,n,r)=>qx(e,n,NL(r)),jI=(e,n)=>qx(e,n,GZ),BL=(e,n)=>qx(e,n,IL),YZ=(e,n,r)=>qx(e,n,FI(r)),KZ=UI("type"),XZ=WI("fetch"),sM=WI("onAction"),e2=BL("onSetup",()=>j),jee=aM("text"),JZ=aM("icon"),QZ=aM("tooltip"),Jh=aM("label"),qZ=jI("active",!1),ej=jI("enabled",!0),HL=jI("primary",!1),tj=e=>jZ("columns",e),py=e=>cg("type",e),YI=OL([KZ,UI("trigger"),nl("minChars",1),tj(1),nl("maxResults",10),ZZ("matches"),XZ,sM,YZ("highlightOn",[],oM)]),nj=e=>rM("Autocompleter",YI,{trigger:e.ch,...e}),zL=[ej,QZ,JZ,jee,e2],KI=[qZ].concat(zL),XI=[BL("predicate",ne),ZI("scope","node",["node","editor"]),ZI("position","selection",["node","selection","line"])],JI=zL.concat([py("contextformbutton"),HL,sM,zI("original",K)]),VL=KI.concat([py("contextformbutton"),HL,sM,zI("original",K)]),UL=zL.concat([py("contextformbutton")]),WL=KI.concat([py("contextformtogglebutton")]),rj=PL("type",{contextformbutton:JI,contextformtogglebutton:VL});OL([py("contextform"),BL("initValue",J("")),Jh,GI("commands",rj),FL("launch",PL("type",{contextformbutton:UL,contextformtogglebutton:WL}))].concat(XI));const oj=e=>{const n=e.ui.registry.getAll().popups,r=pn(n,Z=>nj(Z).fold(oe=>{throw new Error(BI(oe))},K)),f=vt(jn(r,Z=>Z.trigger)),w=Wn(r);return{dataset:r,triggers:f,lookupByTrigger:Z=>ue(w,oe=>oe.trigger===Z)}},aj=(e,n)=>{const r=wb(n.load,50);e.on("keypress compositionend",f=>{f.which!==27&&r.throttle()}),e.on("keydown",f=>{const w=f.which;w===8?r.throttle():w===27&&n.cancelIfNecessary()}),e.on("remove",r.cancel)},sj=e=>{const n=Em(),r=Us(!1),f=n.isSet,w=()=>{f()&&(DU(e),pC(e),r.set(!1),n.clear())},B=Pe=>{f()||(LU(e,Pe.range),n.set({trigger:Pe.trigger,matchLength:Pe.text.length}))},Z=Dt(()=>oj(e)),oe=Pe=>n.get().map(Ke=>Jx(e.dom,e.selection.getRng(),Ke.trigger).bind(Je=>MI(e,Z,Je,Pe))).getOrThunk(()=>xZ(e,Z)),be=Pe=>{oe(Pe).fold(w,Ke=>{B(Ke.context),Ke.lookupData.then(Je=>{n.get().map(at=>{const Rt=Ke.context;at.trigger===Rt.trigger&&(Rt.text.length-at.matchLength>=10?w():(n.set({...at,matchLength:Rt.text.length}),r.get()?qT(e,{lookupData:Je}):(r.set(!0),gC(e,{lookupData:Je}))))})})})};e.addCommand("mceAutocompleterReload",(Pe,Ke)=>{const Je=_(Ke)?Ke.fetchOptions:{};be(Je)}),e.addCommand("mceAutocompleterClose",w),aj(e,{cancelIfNecessary:w,load:be})},qI=Ys().browser.isSafari(),e9=e=>U(jt.fromDom(e)),GL=(e,n)=>{var r;return e.startOffset===0&&e.endOffset===((r=n.textContent)===null||r===void 0?void 0:r.length)},iM=(e,n)=>X.from(e.getParent(n.container(),"details")),lM=(e,n)=>iM(e,n).isSome(),ij=(e,n)=>{const r=X.from(e.getParent(n.startContainer,"details")),f=X.from(e.getParent(n.endContainer,"details"));if(r.isSome()||f.isSome()){const w=r.bind(B=>X.from(e.select("summary",B)[0]));return X.some({startSummary:w,startDetails:r,endDetails:f})}else return X.none()},lj=(e,n)=>Sc(n).exists(r=>r.isEqual(e)),cj=(e,n)=>kf(n).exists(r=>Ja(r.getNode())&&Nc(n,r).exists(f=>f.isEqual(e))||r.isEqual(e)),uj=(e,n)=>n.startSummary.exists(r=>lj(e,r)),fj=(e,n)=>n.startSummary.exists(r=>cj(e,r)),t9=(e,n)=>n.startDetails.exists(r=>Nc(r,e).forall(f=>n.startSummary.exists(w=>!w.contains(e.container())&&w.contains(f.container())))),ZL=(e,n,r)=>r.startDetails.exists(f=>ic(e,n).forall(w=>!f.contains(w.container()))),jL=(e,n)=>{const r=n.getNode();N(r)||e.selection.setCursorLocation(r,n.offset())},YL=(e,n,r)=>{const f=e.dom.getParent(n.container(),"details");if(f&&!f.open){const w=e.dom.select("summary",f)[0];w&&(r?Sc(w):kf(w)).each(Z=>jL(e,Z))}else jL(e,n)},dj=(e,n)=>{const r=be=>be.contains(e.startContainer),f=be=>be.contains(e.endContainer),w=n.startSummary.exists(r),B=n.startSummary.exists(f),Z=n.startDetails.forall(be=>n.endDetails.forall(Pe=>be!==Pe));return(w||B)&&!(w&&B)||Z},n9=(e,n,r)=>{const{dom:f,selection:w}=e,B=e.getBody();if(r==="character"){const Z=In.fromRangeStart(w.getRng()),oe=f.getParent(Z.container(),f.isBlock),be=iM(f,Z),Pe=oe&&f.isEmpty(oe),Ke=O(oe==null?void 0:oe.previousSibling),Je=O(oe==null?void 0:oe.nextSibling);return Pe&&(n?Je:Ke)&&Nh(!n,B,Z).exists(Ht=>lM(f,Ht)&&!li(be,iM(f,Ht)))?!0:Nh(n,B,Z).fold(ne,at=>{const Rt=iM(f,at);if(lM(f,at)&&!li(be,Rt)){if(n||YL(e,at,!1),oe&&Pe){if(n&&Ke)return!0;if(!n&&Je)return!0;YL(e,at,n),e.dom.remove(oe)}return!0}else return!1})}else return!1},hj=(e,n,r,f)=>{const B=e.selection.getRng(),Z=In.fromRangeStart(B),oe=e.getBody();return f==="selection"?dj(B,n):r?fj(Z,n)||ZL(oe,Z,n):uj(Z,n)||t9(Z,n)},cM=(e,n,r)=>ij(e.dom,e.selection.getRng()).fold(()=>n9(e,n,r),f=>hj(e,f,n,r)||n9(e,n,r)),r9=(e,n,r)=>{const f=e.selection,w=f.getNode(),B=f.getRng(),Z=In.fromRangeStart(B);return yc(w)?(r==="selection"&&GL(B,w)||Ak(n,Z,w)?e9(w):e.undoManager.transact(()=>{const oe=f.getSel();let{anchorNode:be,anchorOffset:Pe,focusNode:Ke,focusOffset:Je}=oe??{};const at=()=>{k(be)&&k(Pe)&&k(Ke)&&k(Je)&&(oe==null||oe.setBaseAndExtent(be,Pe,Ke,Je))},Rt=()=>{be=oe==null?void 0:oe.anchorNode,Pe=oe==null?void 0:oe.anchorOffset,Ke=oe==null?void 0:oe.focusNode,Je=oe==null?void 0:oe.focusOffset},Ht=(It,ln)=>{ie(It.childNodes,xn=>{O1(xn)&&ln.appendChild(xn)})},At=e.dom.create("span",{"data-mce-bogus":"1"});Ht(w,At),w.appendChild(At),at(),(r==="word"||r==="line")&&(oe==null||oe.modify("extend",n?"right":"left",r)),!f.isCollapsed()&&GL(f.getRng(),At)?e9(w):(e.execCommand(n?"ForwardDelete":"Delete"),Rt(),Ht(At,w),at()),e.dom.remove(At)}),!0):!1},a0=(e,n,r)=>cM(e,n,r)||qI&&r9(e,n,r)?X.some(j):X.none(),o9=e=>(n,r,f={})=>{const w=n.getBody(),B={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:w,currentTarget:w,eventPhase:Event.AT_TARGET,originalTarget:w,explicitOriginalTarget:w,isTrusted:!1,srcElement:w,cancelable:!1,preventDefault:j,inputType:r},Z=Jp(new InputEvent(e));return n.dispatch(e,{...Z,...B,...f})},OS=o9("input"),KL=o9("beforeinput"),mj=Ys(),gj=mj.os,a9=gj.isMacOS()||gj.isiOS(),pj=mj.browser.isFirefox(),vj=(e,n,r)=>{const f=r.keyCode===Wr.BACKSPACE?"deleteContentBackward":"deleteContentForward",w=e.selection.isCollapsed(),B=w?"character":"selection",Z=oe=>w?oe?"word":"line":"selection";SL([{keyCode:Wr.BACKSPACE,action:Eo(jP,e)},{keyCode:Wr.BACKSPACE,action:Eo(QR,e,!1)},{keyCode:Wr.DELETE,action:Eo(QR,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(AA,e,!1)},{keyCode:Wr.DELETE,action:Eo(AA,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(bS,e,n,!1)},{keyCode:Wr.DELETE,action:Eo(bS,e,n,!0)},{keyCode:Wr.BACKSPACE,action:Eo(BC,e,!1)},{keyCode:Wr.DELETE,action:Eo(BC,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(a0,e,!1,B)},{keyCode:Wr.DELETE,action:Eo(a0,e,!0,B)},...a9?[{keyCode:Wr.BACKSPACE,altKey:!0,action:Eo(a0,e,!1,Z(!0))},{keyCode:Wr.DELETE,altKey:!0,action:Eo(a0,e,!0,Z(!0))},{keyCode:Wr.BACKSPACE,metaKey:!0,action:Eo(a0,e,!1,Z(!1))}]:[{keyCode:Wr.BACKSPACE,ctrlKey:!0,action:Eo(a0,e,!1,Z(!0))},{keyCode:Wr.DELETE,ctrlKey:!0,action:Eo(a0,e,!0,Z(!0))}],{keyCode:Wr.BACKSPACE,action:Eo(qR,e,!1)},{keyCode:Wr.DELETE,action:Eo(qR,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(hL,e,!1)},{keyCode:Wr.DELETE,action:Eo(hL,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(kA,e,!1)},{keyCode:Wr.DELETE,action:Eo(kA,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(ZR,e,!1)},{keyCode:Wr.DELETE,action:Eo(ZR,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(fL,e,!1)},{keyCode:Wr.DELETE,action:Eo(fL,e,!0)}],r).filter(oe=>e.selection.isEditable()).each(oe=>{r.preventDefault(),KL(e,f).isDefaultPrevented()||(oe(),OS(e,f))})},Yee=(e,n,r)=>Kx([{keyCode:Wr.BACKSPACE,action:Eo(EA,e)},{keyCode:Wr.DELETE,action:Eo(EA,e)},...a9?[{keyCode:Wr.BACKSPACE,altKey:!0,action:Eo(xS,e)},{keyCode:Wr.DELETE,altKey:!0,action:Eo(xS,e)},...r?[{keyCode:pj?224:91,action:Eo(xS,e)}]:[]]:[{keyCode:Wr.BACKSPACE,ctrlKey:!0,action:Eo(xS,e)},{keyCode:Wr.DELETE,ctrlKey:!0,action:Eo(xS,e)}]],n),yj=(e,n)=>{let r=!1;e.on("keydown",f=>{r=f.keyCode===Wr.BACKSPACE,f.isDefaultPrevented()||vj(e,n,f)}),e.on("keyup",f=>{f.isDefaultPrevented()||Yee(e,f,r),r=!1})},Ti=e=>{for(;e;){if(Gr(e)||ir(e)&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}return null},s0=(e,n)=>{const r=e.dom,f=e.schema.getMoveCaretBeforeOnEnterElements();if(!n)return;if(/^(LI|DT|DD)$/.test(n.nodeName)){const B=Ti(n.firstChild);B&&/^(UL|OL|DL)$/.test(B.nodeName)&&n.insertBefore(r.doc.createTextNode(Da),n.firstChild)}const w=r.createRng();if(n.normalize(),n.hasChildNodes()){const B=new es(n,n);let Z=n,oe;for(;oe=B.current();){if(ir(oe)){w.setStart(oe,0),w.setEnd(oe,0);break}if(f[oe.nodeName.toLowerCase()]){w.setStartBefore(oe),w.setEndBefore(oe);break}Z=oe,oe=B.next()}oe||(w.setStart(Z,0),w.setEnd(Z,0))}else Ja(n)?n.nextSibling&&r.isBlock(n.nextSibling)?(w.setStartBefore(n),w.setEndBefore(n)):(w.setStartAfter(n),w.setEndAfter(n)):(w.setStart(n,0),w.setEnd(n,0));e.selection.setRng(w),J1(e,w)},Pf=(e,n)=>{const r=e.getRoot();let f,w=n;for(;w!==r&&w&&e.getContentEditable(w)!=="false";){if(e.getContentEditable(w)==="true"){f=w;break}w=w.parentNode}return w!==r?f:r},uM=e=>X.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock)),s9=e=>uM(e).fold(J(""),n=>n.nodeName.toUpperCase()),bj=e=>uM(e).filter(n=>yf(jt.fromDom(n))).isSome(),t2=e=>{e.innerHTML='
    '},XL=(e,n,r)=>{const f=e.dom;X.from(r.style).map(f.parseStyle).each(be=>{const Ke={...W0(jt.fromDom(n)),...be};f.setStyles(n,Ke)});const w=X.from(r.class).map(be=>be.split(/\s+/)),B=X.from(n.className).map(be=>ue(be.split(/\s+/),Pe=>Pe!==""));Es(w,B,(be,Pe)=>{const Ke=ue(Pe,at=>!Ve(be,at)),Je=[...be,...Ke];f.setAttrib(n,"class",Je.join(" "))});const Z=["style","class"],oe=Cn(r,(be,Pe)=>!Ve(Z,Pe));f.setAttribs(n,oe)},n2=(e,n)=>{if(ac(e).toLowerCase()===n.tagName.toLowerCase()){const f=v1(e);XL(e,n,f)}},JL=(e,n,r,f,w=!0,B,Z)=>{const oe=e.dom,be=e.schema,Pe=ac(e),Ke=r?r.nodeName.toUpperCase():"";let Je=n;const at=be.getTextInlineElements();let Rt;B||Ke==="TABLE"||Ke==="HR"?Rt=oe.create(B||Pe,Z||{}):Rt=r.cloneNode(!1);let Ht=Rt;if(!w)oe.setAttrib(Rt,"style",null),oe.setAttrib(Rt,"class",null);else do if(at[Je.nodeName]){if(Mu(Je)||Eu(Je))continue;const At=Je.cloneNode(!1);oe.setAttrib(At,"id",""),Rt.hasChildNodes()?(At.appendChild(Rt.firstChild),Rt.appendChild(At)):(Ht=At,Rt.appendChild(At))}while((Je=Je.parentNode)&&Je!==f);return n2(e,Rt),t2(Ht),Rt},xj=(e,n)=>e.dom.getParent(n,qn),wj=(e,n,r)=>{let f=n;for(;f&&f!==e&&O(f.nextSibling);){const w=f.parentElement;if(!w||!r(w))return qn(w);f=w}return!1},Cj=(e,n,r)=>!n&&r.nodeName.toLowerCase()===ac(e)&&e.dom.isEmpty(r)&&wj(e.getBody(),r,f=>lt(e.schema.getTextBlockElements(),f.nodeName.toLowerCase())),Sj=(e,n,r)=>{var f,w,B;const Z=n(ac(e)),oe=xj(e,r);oe&&(e.dom.insertAfter(Z,oe),s0(e,Z),((B=(w=(f=r.parentElement)===null||f===void 0?void 0:f.childNodes)===null||w===void 0?void 0:w.length)!==null&&B!==void 0?B:0)>1&&e.dom.remove(r))},Tj=(e,n)=>e.firstChild&&e.firstChild.nodeName===n,i9=e=>{var n;return((n=e.parentNode)===null||n===void 0?void 0:n.firstChild)===e},l9=(e,n)=>{const r=e==null?void 0:e.parentNode;return k(r)&&r.nodeName===n},c9=e=>k(e)&&/^(OL|UL|LI)$/.test(e.nodeName),QL=e=>k(e)&&/^(LI|DT|DD)$/.test(e.nodeName),kj=e=>c9(e)&&c9(e.parentNode),fM=e=>{const n=e.parentNode;return QL(n)?n:e},PS=(e,n,r)=>{let f=e[r?"firstChild":"lastChild"];for(;f&&!Gr(f);)f=f[r?"nextSibling":"previousSibling"];return f===n},qL=e=>le(jn(W0(jt.fromDom(e)),(n,r)=>`${r}: ${n};`),(n,r)=>n+r,""),Aj=(e,n,r,f,w)=>{const B=e.dom,Z=e.selection.getRng(),oe=r.parentNode;if(r===e.getBody()||!oe)return;kj(r)&&(w="LI");const be=QL(f)?qL(f):void 0;let Pe=QL(f)&&be?n(w,{style:qL(f)}):n(w);if(PS(r,f,!0)&&PS(r,f,!1))if(l9(r,"LI")){const Ke=fM(r);B.insertAfter(Pe,Ke),i9(r)?B.remove(Ke):B.remove(r)}else B.replace(Pe,r);else if(PS(r,f,!0))l9(r,"LI")?(B.insertAfter(Pe,fM(r)),Pe.appendChild(B.doc.createTextNode(" ")),Pe.appendChild(r)):oe.insertBefore(Pe,r),B.remove(f);else if(PS(r,f,!1))B.insertAfter(Pe,fM(r)),B.remove(f);else{r=fM(r);const Ke=Z.cloneRange();Ke.setStartAfter(f),Ke.setEndAfter(r);const Je=Ke.extractContents();if(w==="LI"&&Tj(Je,"LI")){const at=ue(Fe(Pe.children,jt.fromDom),he(Yc("br")));Pe=Je.firstChild,B.insertAfter(Je,r),ie(at,Rt=>yh(jt.fromDom(Pe),Rt)),be&&Pe.setAttribute("style",be)}else B.insertAfter(Je,r),B.insertAfter(Pe,r);B.remove(f)}s0(e,Pe)},Mj=e=>{ie(zp(jt.fromDom(e),Ei),n=>{const r=n.dom;r.nodeValue=_e(r.data)})},Kee=(e,n)=>{const r=e.dom.getParent(n,"ol,ul,dl");return r!==null&&e.dom.getContentEditableParent(r)==="false"},eD=(e,n)=>n&&n.nodeName==="A"&&e.isEmpty(n),tD=(e,n)=>e.nodeName===n||e.previousSibling&&e.previousSibling.nodeName===n,nD=(e,n)=>k(n)&&e.isBlock(n)&&!/^(TD|TH|CAPTION|FORM)$/.test(n.nodeName)&&!/^(fixed|absolute)/i.test(n.style.position)&&e.isEditable(n.parentNode)&&e.getContentEditable(n)!=="false",Ej=(e,n,r)=>{var f;const w=[];if(!r)return;let B=r;for(;B=B.firstChild;){if(e.isBlock(B))return;Gr(B)&&!n[B.nodeName.toLowerCase()]&&w.push(B)}let Z=w.length;for(;Z--;)B=w[Z],(!B.hasChildNodes()||B.firstChild===B.lastChild&&((f=B.firstChild)===null||f===void 0?void 0:f.nodeValue)===""||eD(e,B))&&e.remove(B)},dM=(e,n,r)=>ir(n)?e?r===1&&n.data.charAt(r-1)===ve?0:r:r===n.data.length-1&&n.data.charAt(r)===ve?n.data.length:r:r,_j=e=>{const n=e.cloneRange();return n.setStart(e.startContainer,dM(!0,e.startContainer,e.startOffset)),n.setEnd(e.endContainer,dM(!1,e.endContainer,e.endOffset)),n},u9=e=>{let n=e;do ir(n)&&(n.data=n.data.replace(/^[\r\n]+/,"")),n=n.firstChild;while(n)},Rj=(e,n,r,f,w)=>{var B,Z;const oe=e.dom,be=(B=Pf(oe,f))!==null&&B!==void 0?B:oe.getRoot();let Pe=oe.getParent(f,oe.isBlock);if(!Pe||!nD(oe,Pe)){if(Pe=Pe||be,!Pe.hasChildNodes()){const Rt=oe.create(n);return n2(e,Rt),Pe.appendChild(Rt),r.setStart(Rt,0),r.setEnd(Rt,0),Rt}let Ke=f;for(;Ke&&Ke.parentNode!==Pe;)Ke=Ke.parentNode;let Je;for(;Ke&&!oe.isBlock(Ke);)Je=Ke,Ke=Ke.previousSibling;const at=(Z=Je==null?void 0:Je.parentElement)===null||Z===void 0?void 0:Z.nodeName;if(Je&&at&&e.schema.isValidChild(at,n.toLowerCase())){const Rt=Je.parentNode,Ht=oe.create(n);for(n2(e,Ht),Rt.insertBefore(Ht,Je),Ke=Je;Ke&&!oe.isBlock(Ke);){const At=Ke.nextSibling;Ht.appendChild(Ke),Ke=At}r.setStart(f,w),r.setEnd(f,w)}}return f},Lj=(e,n)=>{n.normalize();const r=n.lastChild;(!r||Gr(r)&&/^(left|right)$/gi.test(e.getStyle(r,"float",!0)))&&e.add(n,"br")},Xee=(e,n)=>{const r=iT(e);return M(n)?!1:C(r)?Ve(ur.explode(r),n.nodeName.toLowerCase()):r},f9={insert:(e,n)=>{let r,f,w,B,Z=!1;const oe=e.dom,be=e.schema,Pe=be.getNonEmptyElements(),Ke=e.selection.getRng(),Je=ac(e),at=jt.fromDom(Ke.startContainer),Rt=Sd(at,Ke.startOffset),Ht=Rt.exists(er=>Ps(er)&&!Wo(er)),At=Ke.collapsed&&Ht,It=(er,Qr)=>JL(e,r,mr,nr,g4(e),er,Qr),ln=er=>{const Qr=dM(er,r,f);if(ir(r)&&(er?Qr>0:Qr{let er;return/^(H[1-6]|PRE|FIGURE)$/.test(w)&&Nr!=="HGROUP"?er=It(Je):er=It(),Xee(e,B)&&nD(oe,B)&&oe.isEmpty(mr,void 0,{includeZwsp:!0})?er=oe.split(B,mr):oe.insertAfter(er,mr),s0(e,er),er};Le(oe,Ke).each(er=>{Ke.setStart(er.startContainer,er.startOffset),Ke.setEnd(er.endContainer,er.endOffset)}),r=Ke.startContainer,f=Ke.startOffset;const yn=!!(n&&n.shiftKey),$n=!!(n&&n.ctrlKey);Gr(r)&&r.hasChildNodes()&&!At&&(Z=f>r.childNodes.length-1,r=r.childNodes[Math.min(f,r.childNodes.length-1)]||r,Z&&ir(r)?f=r.data.length:f=0);const nr=Pf(oe,r);if(!nr||Kee(e,r))return;yn||(r=Rj(e,Je,Ke,r,f));let mr=oe.getParent(r,oe.isBlock)||oe.getRoot();B=k(mr==null?void 0:mr.parentNode)?oe.getParent(mr.parentNode,oe.isBlock):null,w=mr?mr.nodeName.toUpperCase():"";const Nr=B?B.nodeName.toUpperCase():"";if(Nr==="LI"&&!$n){const er=B;mr=er,B=er.parentNode,w=Nr}if(Gr(B)&&Cj(e,yn,mr))return Sj(e,It,mr);if(/^(LI|DT|DD)$/.test(w)&&Gr(B)&&oe.isEmpty(mr)){Aj(e,It,B,mr,Je);return}if(!At&&(mr===e.getBody()||!nD(oe,mr)))return;const zn=mr.parentNode;let Nn;if(At)Nn=It(Je),Rt.fold(()=>{di(at,jt.fromDom(Nn))},er=>{Ri(er,jt.fromDom(Nn))}),e.selection.setCursorLocation(Nn,0);else if(rt(mr))Nn=Mn(mr),oe.isEmpty(mr)&&t2(mr),n2(e,Nn),s0(e,Nn);else if(ln(!1))Nn=xn();else if(ln(!0)&&zn){Nn=zn.insertBefore(It(),mr);const er=mu(jt.fromDom(Ke.startContainer))&&Ke.collapsed;s0(e,tD(mr,"HR")||er?Nn:mr)}else{const er=_j(Ke).cloneRange();er.setEndAfter(mr);const Qr=er.extractContents();Mj(Qr),u9(Qr),Nn=Qr.firstChild,oe.insertAfter(Qr,mr),Ej(oe,Pe,Nn),Lj(oe,mr),oe.isEmpty(mr)&&t2(mr),Nn.normalize(),oe.isEmpty(Nn)?(oe.remove(Nn),xn()):(n2(e,Nn),s0(e,Nn))}oe.setAttrib(Nn,"id",""),e.dispatch("NewBlock",{newBlock:Nn})},fakeEventName:"insertParagraph"},Dj=(e,n,r)=>{const f=new es(n,r);let w;const B=e.getNonEmptyElements();for(;w=f.next();)if(B[w.nodeName.toLowerCase()]||ir(w)&&w.length>0)return!0;return!1},d9=(e,n,r)=>{const f=e.dom.createRng();r?(f.setStartBefore(n),f.setEndBefore(n)):(f.setStartAfter(n),f.setEndAfter(n)),e.selection.setRng(f),J1(e,f)},$j=(e,n)=>{const r=e.selection,f=e.dom,w=r.getRng();let B,Z=!1;Le(f,w).each(Rt=>{w.setStart(Rt.startContainer,Rt.startOffset),w.setEnd(Rt.endContainer,Rt.endOffset)});let oe=w.startOffset,be=w.startContainer;if(Gr(be)&&be.hasChildNodes()){const Rt=oe>be.childNodes.length-1;be=be.childNodes[Math.min(oe,be.childNodes.length-1)]||be,Rt&&ir(be)?oe=be.data.length:oe=0}let Pe=f.getParent(be,f.isBlock);const Ke=Pe&&Pe.parentNode?f.getParent(Pe.parentNode,f.isBlock):null,Je=Ke?Ke.nodeName.toUpperCase():"",at=!!(n&&n.ctrlKey);Je==="LI"&&!at&&(Pe=Ke),ir(be)&&oe>=be.data.length&&(Dj(e.schema,be,Pe||f.getRoot())||(B=f.create("br"),w.insertNode(B),w.setStartAfter(B),w.setEndAfter(B),Z=!0)),B=f.create("br"),fw(f,w,B),d9(e,B,Z),e.undoManager.add()},Oj=(e,n)=>{const r=jt.fromTag("br");Ri(jt.fromDom(n),r),e.undoManager.add()},Pj=(e,n)=>{Ij(e.getBody(),n)||gu(jt.fromDom(n),jt.fromTag("br"));const r=jt.fromTag("br");gu(jt.fromDom(n),r),d9(e,r.dom,!1),e.undoManager.add()},hM=e=>Ja(e.getNode()),Ij=(e,n)=>hM(In.after(n))?!0:ic(e,In.after(n)).map(r=>Ja(r.getNode())).getOr(!1),h9=e=>e&&e.nodeName==="A"&&"href"in e,rD=e=>e.fold(ne,h9,h9,ne),oD=e=>{const n=Q(ny,e),r=In.fromRangeStart(e.selection.getRng());return Jd(n,e.getBody(),r).filter(rD)},Nj=(e,n)=>{n.fold(j,Q(Oj,e),Q(Pj,e),j)},Fj={insert:(e,n)=>{const r=oD(e);r.isSome()?r.each(Q(Nj,e)):$j(e,n)},fakeEventName:"insertLineBreak"},m9=(e,n)=>uM(e).filter(r=>n.length>0&&du(jt.fromDom(r),n)).isSome(),Bj=e=>m9(e,m4(e)),Qee=e=>m9(e,kw(e)),If=ed.generate([{br:[]},{block:[]},{none:[]}]),Qh=(e,n)=>Qee(e),g9=e=>(n,r)=>bj(n)===e,aD=(e,n)=>(r,f)=>s9(r)===e.toUpperCase()===n,Hj=e=>{const n=Pf(e.dom,e.selection.getStart());return M(n)},IS=e=>aD("pre",e),zj=()=>aD("summary",!0),mM=e=>(n,r)=>d4(n)===e,Vj=(e,n)=>Bj(e),gM=(e,n)=>n,Uj=e=>{const n=ac(e),r=Pf(e.dom,e.selection.getStart());return k(r)&&e.schema.isValidChild(r.nodeName,n)},sD=e=>{const n=e.selection.getRng(),r=jt.fromDom(n.startContainer),w=Sd(r,n.startOffset).map(B=>Ps(B)&&!Wo(B));return n.collapsed&&w.getOr(!0)},Nf=(e,n)=>(r,f)=>le(e,(B,Z)=>B&&Z(r,f),!0)?X.some(n):X.none(),pM=(e,n)=>cP([Nf([Qh],If.none()),Nf([IS(!0),Hj],If.none()),Nf([zj()],If.br()),Nf([IS(!0),mM(!1),gM],If.br()),Nf([IS(!0),mM(!1)],If.block()),Nf([IS(!0),mM(!0),gM],If.block()),Nf([IS(!0),mM(!0)],If.br()),Nf([g9(!0),gM],If.br()),Nf([g9(!0)],If.block()),Nf([Vj],If.br()),Nf([gM],If.br()),Nf([Uj],If.block()),Nf([sD],If.block())],[e,!!(n&&n.shiftKey)]).getOr(If.none()),vM=(e,n,r)=>{n.selection.isCollapsed()||G_(n),!(k(r)&&KL(n,e.fakeEventName).isDefaultPrevented())&&(e.insert(n,r),k(r)&&OS(n,e.fakeEventName))},p9=(e,n)=>{const r=()=>vM(Fj,e,n),f=()=>vM(f9,e,n),w=pM(e,n);switch(h4(e)){case"linebreak":w.fold(r,r,j);break;case"block":w.fold(f,f,j);break;case"invert":w.fold(f,r,j);break;default:w.fold(r,f,j);break}},v9=Ys(),Wj=v9.os.isiOS()&&v9.browser.isSafari(),y9=(e,n)=>{n.isDefaultPrevented()||(n.preventDefault(),lU(e.undoManager),e.undoManager.transact(()=>{p9(e,n)}))},b9=e=>{if(!e.collapsed)return!1;const n=e.startContainer;if(ir(n)){const r=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,f=n.data.charAt(e.startOffset-1);return r.test(f)}else return!1},Gj=e=>{let n=X.none();const r=w=>{n=X.some(w.selection.getBookmark()),w.undoManager.add()},f=(w,B)=>{w.undoManager.undo(),n.fold(j,Z=>w.selection.moveToBookmark(Z)),y9(w,B),n=X.none()};e.on("keydown",w=>{w.keyCode===Wr.ENTER&&(Wj&&b9(e.selection.getRng())?r(e):y9(e,w))}),e.on("keyup",w=>{w.keyCode===Wr.ENTER&&n.each(()=>f(e,w))})},x9=(e,n,r)=>{const f=Lr.os.isMacOS()||Lr.os.isiOS();Kx([{keyCode:Wr.END,action:Eo(eI,e,!0)},{keyCode:Wr.HOME,action:Eo(eI,e,!1)},...f?[]:[{keyCode:Wr.HOME,action:Eo(KA,e,!1),ctrlKey:!0,shiftKey:!0},{keyCode:Wr.END,action:Eo(KA,e,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:Wr.END,action:Eo(JA,e,!0)},{keyCode:Wr.HOME,action:Eo(JA,e,!1)},{keyCode:Wr.END,action:Eo(zA,e,!0,n)},{keyCode:Wr.HOME,action:Eo(zA,e,!1,n)}],r).each(w=>{r.preventDefault()})},w9=(e,n)=>{e.on("keydown",r=>{r.isDefaultPrevented()||x9(e,n,r)})},Zj=e=>{e.on("input",n=>{n.isComposing||Cz(e)})},jj=Ys(),iD=(e,n,r)=>{Kx([{keyCode:Wr.PAGE_UP,action:Eo(zA,e,!1,n)},{keyCode:Wr.PAGE_DOWN,action:Eo(zA,e,!0,n)}],r)},C9=e=>e.stopImmediatePropagation(),S9=e=>e.keyCode===Wr.PAGE_UP||e.keyCode===Wr.PAGE_DOWN,NS=(e,n,r)=>{r&&!e.get()?n.on("NodeChange",C9,!0):!r&&e.get()&&n.off("NodeChange",C9),e.set(r)},Yj=(e,n)=>{if(jj.os.isMacOS())return;const r=Us(!1);e.on("keydown",f=>{S9(f)&&NS(r,e,!0)}),e.on("keyup",f=>{f.isDefaultPrevented()||iD(e,n,f),S9(f)&&r.get()&&(NS(r,e,!1),e.nodeChanged())})},lD=e=>{e.on("beforeinput",n=>{(!e.selection.isEditable()||Oe(n.getTargetRanges(),r=>!M$(e.dom,r)))&&n.preventDefault()})},yM=(e,n)=>{const r=n.container(),f=n.offset();return ir(r)?(r.insertData(f,e),X.some(In(r,f+e.length))):Gb(n).map(w=>{const B=jt.fromText(e);return n.isAtEnd()?gu(w,B):Ri(w,B),In(B.dom,e.length)})},cD=Q(yM,Da),T9=Q(yM," "),qee=(e,n,r)=>o8(e,n,r)?cD(n):T9(n),i0=e=>n=>n.fold(r=>Nc(e.dom,In.before(r)),r=>Sc(r),r=>kf(r),r=>ic(e.dom,In.after(r))),Kj=(e,n,r)=>f=>o8(e,f,r)?cD(n):T9(n),k9=e=>n=>{e.selection.setRng(n.toRange()),e.nodeChanged()},Xj=(e,n)=>e.isEditable(e.getParent(n,"summary")),bM=e=>{const n=In.fromRangeStart(e.selection.getRng()),r=jt.fromDom(e.getBody());if(e.selection.isCollapsed()){const f=Q(ny,e),w=In.fromRangeStart(e.selection.getRng());return Jd(f,e.getBody(),w).bind(i0(r)).map(B=>()=>Kj(r,n,e.schema)(B).each(k9(e)))}else return X.none()},A9=e=>{const n=()=>{const r=jt.fromDom(e.getBody());e.selection.isCollapsed()||e.getDoc().execCommand("Delete");const f=In.fromRangeStart(e.selection.getRng());qee(r,f,e.schema).each(k9(e))};return Bo(Lr.browser.isFirefox()&&e.selection.isEditable()&&Xj(e.dom,e.selection.getRng().startContainer),n)},M9=(e,n)=>{SL([{keyCode:Wr.SPACEBAR,action:Eo(bM,e)},{keyCode:Wr.SPACEBAR,action:Eo(A9,e)}],n).each(r=>{n.preventDefault(),KL(e,"insertText",{data:" "}).isDefaultPrevented()||(r(),OS(e,"insertText",{data:" "}))})},Jj=e=>{e.on("keydown",n=>{n.isDefaultPrevented()||M9(e,n)})},E9=e=>z4(e)?[{keyCode:Wr.TAB,action:Eo(wI,e,!0)},{keyCode:Wr.TAB,shiftKey:!0,action:Eo(wI,e,!1)}]:[],Qj=(e,n)=>{Kx([...E9(e)],n).each(r=>{n.preventDefault()})},qj=e=>{e.on("keydown",n=>{n.isDefaultPrevented()||Qj(e,n)})},eY=e=>{if(e.addShortcut("Meta+P","","mcePrint"),sj(e),mp(e))return Us(null);{const n=vG(e);return lD(e),zG(e),vZ(e,n),yj(e,n),Gj(e),Jj(e),Zj(e),qj(e),w9(e,n),Yj(e,n),n}};class _9{constructor(n){this.lastPath=[],this.editor=n;let r;const f=this;"onselectionchange"in n.getDoc()||n.on("NodeChange click mouseup keyup focus",w=>{const B=n.selection.getRng(),Z={startContainer:B.startContainer,startOffset:B.startOffset,endContainer:B.endContainer,endOffset:B.endOffset};(w.type==="nodechange"||!Zm(Z,r))&&n.dispatch("SelectionChange"),r=Z}),n.on("contextmenu",()=>{n.dispatch("SelectionChange")}),n.on("SelectionChange",()=>{const w=n.selection.getStart(!0);w&&ex(n)&&!f.isSameElementPath(w)&&n.dom.isChildOf(w,n.getBody())&&n.nodeChanged({selectionChange:!0})}),n.on("mouseup",w=>{!w.isDefaultPrevented()&&ex(n)&&(n.selection.getNode().nodeName==="IMG"?Ef.setEditorTimeout(n,()=>{n.nodeChanged()}):n.nodeChanged())})}nodeChanged(n={}){const r=this.editor.selection;let f;if(this.editor.initialized&&r&&!Nb(this.editor)&&!this.editor.mode.isReadOnly()){const w=this.editor.getBody();f=r.getStart(!0)||w,(f.ownerDocument!==this.editor.getDoc()||!this.editor.dom.isChildOf(f,w))&&(f=w);const B=[];this.editor.dom.getParent(f,Z=>Z===w?!0:(B.push(Z),!1)),this.editor.dispatch("NodeChange",{...n,element:f,parents:B})}}isSameElementPath(n){let r;const f=this.editor,w=ot(f.dom.getParents(n,fe,f.getBody()));if(w.length===this.lastPath.length){for(r=w.length;r>=0&&w[r]===this.lastPath[r];r--);if(r===-1)return this.lastPath=w,!0}return this.lastPath=w,!1}}const xM=Gg("image"),tY=e=>{const n=e;return X.from(n[xM])},uD=(e,n)=>{const r=e;r[xM]=n},wM=Gg("event"),CM=e=>{const n=e;return X.from(n[wM])},FS=e=>n=>{const r=n;r[wM]=e},R9=(e,n)=>FS(n)(e),L9=FS(0),nY=FS(2),SM=FS(1),oY=(e=>n=>{const r=n;return X.from(r[wM]).exists(f=>f===e)})(0),aY=()=>Object.freeze({length:0,item:e=>null}),TM=Gg("mode"),sY=e=>{const n=e;return X.from(n[TM])},kM=e=>n=>{const r=n;r[TM]=e},D9=(e,n)=>kM(n)(e),$9=kM(0),fD=kM(2),O9=kM(1),P9=e=>n=>{const r=n;return X.from(r[TM]).exists(f=>f===e)},vy=P9(0),I9=P9(1),iY=(e,n)=>({...n,get length(){return n.length},add:(r,f)=>{if(vy(e))if(C(r)){if(!N(f))return n.add(r,f)}else return n.add(r);return null},remove:r=>{vy(e)&&n.remove(r)},clear:()=>{vy(e)&&n.clear()}}),lY=["none","copy","link","move"],cY=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],dD=()=>{const e=new window.DataTransfer;let n="move",r="all";const f={get dropEffect(){return n},set dropEffect(w){Ve(lY,w)&&(n=w)},get effectAllowed(){return r},set effectAllowed(w){oY(f)&&Ve(cY,w)&&(r=w)},get items(){return iY(f,e.items)},get files(){return I9(f)?aY():e.files},get types(){return e.types},setDragImage:(w,B,Z)=>{vy(f)&&(uD(f,{image:w,x:B,y:Z}),e.setDragImage(w,B,Z))},getData:w=>I9(f)?"":e.getData(w),setData:(w,B)=>{vy(f)&&e.setData(w,B)},clearData:w=>{vy(f)&&e.clearData(w)}};return $9(f),f},r2=e=>{const n=dD(),r=sY(e);return fD(e),L9(n),n.dropEffect=e.dropEffect,n.effectAllowed=e.effectAllowed,tY(e).each(f=>n.setDragImage(f.image,f.x,f.y)),ie(e.types,f=>{f!=="Files"&&n.setData(f,e.getData(f))}),ie(e.files,f=>n.items.add(f)),CM(e).each(f=>{R9(n,f)}),r.each(f=>{D9(e,f),D9(n,f)}),n},uY=e=>{const n=e.getData("text/html");return n===""?X.none():X.some(n)},N9=(e,n)=>e.setData("text/html",n),hD="x-tinymce/html",AM=J(hD),mD="",fY=e=>mD+e,F9=e=>e.replace(mD,""),B9=e=>e.indexOf(mD)!==-1,dY=e=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(e),ete=(e,n)=>{let r="<"+e;const f=jn(n,(w,B)=>B+'="'+km.encodeAllRaw(w)+'"');return f.length&&(r+=" "+f.join(" ")),r+">"},MM=(e,n,r)=>{const f=e.split(/\n\n/),w=ete(n,r),B="",Z=Fe(f,be=>be.split(/\n/).join("
    ")),oe=be=>w+be+B;return Z.length===1?Z[0]:Fe(Z,oe).join("")},H9="%MCEPASTEBIN%",hY=(e,n)=>{const{dom:r,selection:f}=e,w=e.getBody();n.set(f.getRng());const B=r.add(e.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},H9);Lr.browser.isFirefox()&&r.setStyle(B,"left",r.getStyle(w,"direction",!0)==="rtl"?65535:-65535),r.bind(B,"beforedeactivate focusin focusout",Z=>{Z.stopPropagation()}),B.focus(),f.select(B,!0)},mY=(e,n)=>{const r=e.dom;if(gD(e)){let f;const w=n.get();for(;f=gD(e);)r.remove(f),r.unbind(f);w&&e.selection.setRng(w)}n.set(null)},gD=e=>e.dom.get("mcepastebin"),gY=e=>k(e)&&e.id==="mcepastebin",pY=e=>{const n=e.dom,r=(Z,oe)=>{Z.appendChild(oe),n.remove(oe,!0)},[f,...w]=ue(e.getBody().childNodes,gY);ie(w,Z=>{r(f,Z)});const B=n.select("div[id=mcepastebin]",f);for(let Z=B.length-1;Z>=0;Z--){const oe=n.create("div");f.insertBefore(oe,B[Z]),r(oe,B[Z])}return f?f.innerHTML:""},z9=e=>e===H9,vY=e=>{const n=Us(null);return{create:()=>hY(e,n),remove:()=>mY(e,n),getEl:()=>gD(e),getHtml:()=>pY(e),getLastRng:n.get}},V9=(e,n)=>(ur.each(n,r=>{x(r,RegExp)?e=e.replace(r,""):e=e.replace(r[0],r[1])}),e),yY=e=>{const n=_h(),r=Yd({},n);let f="";const w=n.getVoidElements(),B=ur.makeMap("script noscript style textarea video audio iframe object"," "),Z=n.getBlockElements(),oe=be=>{const Pe=be.name,Ke=be;if(Pe==="br"){f+=` -`;return}if(Pe!=="wbr"){if(w[Pe]&&(f+=" "),B[Pe]){f+=" ";return}if(be.type===3&&(f+=be.value),!(be.name in n.getVoidElements())){let Je=be.firstChild;if(Je)do oe(Je);while(Je=Je.next)}Z[Pe]&&Ke.next&&(f+=` -`,Pe==="p"&&(f+=` -`))}};return e=V9(e,[//g]),oe(r.parse(e)),f},U9=e=>(e=V9(e,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/|/g,[/( ?)\u00a0<\/span>( ?)/g,(r,f,w)=>!f&&!w?" ":Da],/
    /g,/
    $/i]),e),bY=e=>{let n=0;return()=>e+n++},xY=e=>{const n=e.toLowerCase(),r={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return ur.hasOwn(r,n)?"image/"+r[n]:"image/"+n},Ss=(e,n)=>{const r=Yd({sanitize:bv(e),sandbox_iframes:Vb(e)},e.schema);r.addNodeFilter("meta",w=>{ur.each(w,B=>{B.remove()})});const f=r.parse(n,{forced_root_block:!1,isRootContent:!0});return Uv({validate:!0},e.schema).serialize(f)},W9=(e,n)=>({content:e,cancelled:n}),G9=(e,n,r)=>{const f=e.dom.create("div",{style:"display:none"},n),w=d_(e,f,r);return W9(w.node.innerHTML,w.isDefaultPrevented())},wY=(e,n,r)=>{const f=f_(e,n,r),w=Ss(e,f.content);return e.hasEventListeners("PastePostProcess")&&!f.isDefaultPrevented()?G9(e,w,r):W9(w,f.isDefaultPrevented())},pD=(e,n,r)=>wY(e,n,r),EM=(e,n)=>(e.insertContent(n,{merge:Iw(e),paste:!0}),!0),vD=e=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(e),CY=(e,n)=>vD(n)&&Oe(ST(e),r=>ro(n.toLowerCase(),`.${r.toLowerCase()}`)),Z9=(e,n,r)=>(e.undoManager.extra(()=>{r(e,n)},()=>{e.insertContent('')}),!0),yD=(e,n,r)=>(e.undoManager.extra(()=>{r(e,n)},()=>{e.execCommand("mceInsertLink",!1,n)}),!0),SY=(e,n,r)=>!e.selection.isCollapsed()&&vD(n)?yD(e,n,r):!1,TY=(e,n,r)=>CY(e,n)?Z9(e,n,r):!1,kY=(e,n)=>{ur.each([SY,TY,EM],r=>!r(e,n,EM))},j9=(e,n,r)=>{r||!wT(e)?EM(e,n):kY(e,n)},AY=bY("mceclip"),MY=e=>{const n=dD();return N9(n,e),fD(n),n},yy=(e,n,r,f,w)=>{const B=pD(e,n,r);if(!B.cancelled){const Z=B.content,oe=()=>j9(e,Z,f);w?KL(e,"insertFromPaste",{dataTransfer:MY(Z)}).isDefaultPrevented()||(oe(),OS(e,"insertFromPaste")):oe()}},_M=(e,n,r,f)=>{const w=r||B9(n);yy(e,F9(n),w,!1,f)},l0=(e,n,r)=>{const f=e.dom.encode(n).replace(/\r\n/g,` -`),w=Ii(f,$4(e)),B=MM(w,ac(e),v1(e));yy(e,B,!1,!0,r)},o2=e=>{const n={};if(e&&e.types)for(let r=0;rn in e&&e[n].length>0,Y9=e=>c0(e,"text/html")||c0(e,"text/plain"),a2=(e,n)=>{const r=n.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return k(r)?e.dom.encode(r[1]):void 0},EY=(e,n,r,f)=>{const w=AY(),B=y1(e)&&k(r.name),Z=B?a2(e,r.name):w,oe=B?r.name:void 0,be=n.create(w,r,f,Z,oe);return n.add(be),be},bD=(e,n)=>{Jk(n.uri).each(({data:r,type:f,base64Encoded:w})=>{const B=w?r:btoa(r),Z=n.file,oe=e.editorUpload.blobCache,be=oe.getByData(B,f),Pe=be??EY(e,oe,Z,B);_M(e,``,!1,!0)})},xD=e=>e.type==="paste",K9=e=>Promise.all(Fe(e,n=>AV(n).then(r=>({file:n,uri:r})))),wD=e=>{const n=ST(e);return r=>wr(r.type,"image/")&&Oe(n,f=>xY(f)===r.type)},X9=(e,n)=>{const r=n.items?ze(tt(n.items),w=>w.kind==="file"?[w.getAsFile()]:[]):[],f=n.files?tt(n.files):[];return ue(r.length>0?r:f,wD(e))},J9=(e,n,r)=>{const f=xD(n)?n.clipboardData:n.dataTransfer;if(Bb(e)&&f){const w=X9(e,f);if(w.length>0)return n.preventDefault(),K9(w).then(B=>{r&&e.selection.setRng(r),ie(B,Z=>{bD(e,Z)})}),!0}return!1},_Y=e=>{var n,r;return Lr.os.isAndroid()&&((r=(n=e.clipboardData)===null||n===void 0?void 0:n.items)===null||r===void 0?void 0:r.length)===0},Q9=e=>Wr.metaKeyPressed(e)&&e.keyCode===86||e.shiftKey&&e.keyCode===45,BS=(e,n,r,f,w)=>{let B=U9(r);const Z=c0(n,AM())||B9(r),oe=!Z&&dY(B),be=vD(B);(z9(B)||!B.length||oe&&!be)&&(f=!0),(f||be)&&(c0(n,"text/plain")&&oe?B=n["text/plain"]:B=yY(B)),!z9(B)&&(f?l0(e,B,w):_M(e,B,Z,w))},CD=(e,n,r)=>{let f;const w=()=>n.getLastRng()||e.selection.getRng();e.on("keydown",B=>{Q9(B)&&!B.isDefaultPrevented()&&(f=B.shiftKey&&B.keyCode===86)}),e.on("paste",B=>{if(B.isDefaultPrevented()||_Y(B))return;const Z=r.get()==="text"||f;f=!1;const oe=o2(B.clipboardData);!Y9(oe)&&J9(e,B,w())||(c0(oe,"text/html")?(B.preventDefault(),BS(e,oe,oe["text/html"],Z,!0)):c0(oe,"text/plain")&&c0(oe,"text/uri-list")?(B.preventDefault(),BS(e,oe,oe["text/plain"],Z,!0)):(n.create(),Ef.setEditorTimeout(e,()=>{const be=n.getHtml();n.remove(),BS(e,oe,be,Z,!1)},0)))})},q9=e=>{const n=w=>wr(w,"webkit-fake-url"),r=w=>wr(w,"data:"),f=w=>{var B;return((B=w.data)===null||B===void 0?void 0:B.paste)===!0};e.parser.addNodeFilter("img",(w,B,Z)=>{if(!Bb(e)&&f(Z))for(const oe of w){const be=oe.attr("src");C(be)&&!oe.attr("data-mce-object")&&be!==Lr.transparentSrc&&(n(be)||!Hb(e)&&r(be))&&oe.remove()}})},RY=(e,n,r)=>{CD(e,n,r),q9(e)},LY=(e,n)=>{n.get()==="text"?(n.set("html"),ek(e,!1)):(n.set("text"),ek(e,!0)),e.focus()},SD=(e,n)=>{e.addCommand("mceTogglePlainTextPaste",()=>{LY(e,n)}),e.addCommand("mceInsertClipboardContent",(r,f)=>{f.html&&_M(e,f.html,f.internal,!1),f.text&&l0(e,f.text,!1)})},TD=(e,n,r)=>{if(e)try{return e.clearData(),e.setData("text/html",n),e.setData("text/plain",r),e.setData(AM(),n),!0}catch{return!1}else return!1},eN=(e,n,r,f)=>{TD(e.clipboardData,n.html,n.text)?(e.preventDefault(),f()):r(n.html,f)},kD=e=>(n,r)=>{const{dom:f,selection:w}=e,B=f.create("div",{contenteditable:"false","data-mce-bogus":"all"}),Z=f.create("div",{contenteditable:"true"},n);f.setStyles(B,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),B.appendChild(Z),f.add(e.getBody(),B);const oe=w.getRng();Z.focus();const be=f.createRng();be.selectNodeContents(Z),w.setRng(be),Ef.setEditorTimeout(e,()=>{w.setRng(oe),f.remove(B),r()},0)},AD=e=>({html:fY(e.selection.getContent({contextual:!0})),text:e.selection.getContent({format:"text"})}),DY=e=>!!e.dom.getParent(e.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",e.getBody()),MD=e=>!e.selection.isCollapsed()||DY(e),$Y=e=>n=>{!n.isDefaultPrevented()&&MD(e)&&e.selection.isEditable()&&eN(n,AD(e),kD(e),()=>{if(Lr.browser.isChromium()||Lr.browser.isFirefox()){const r=e.selection.getRng();Ef.setEditorTimeout(e,()=>{e.selection.setRng(r),e.execCommand("Delete")},0)}else e.execCommand("Delete")})},OY=e=>n=>{!n.isDefaultPrevented()&&MD(e)&&eN(n,AD(e),kD(e),j)},PY=e=>{e.on("cut",$Y(e)),e.on("copy",OY(e))},tN=(e,n)=>{var r,f;return xt.getCaretRangeFromPoint((r=n.clientX)!==null&&r!==void 0?r:0,(f=n.clientY)!==null&&f!==void 0?f:0,e.getDoc())},IY=e=>{const n=e["text/plain"];return n?n.indexOf("file://")===0:!1},HS=(e,n)=>{e.focus(),n&&e.selection.setRng(n)},NY=e=>Oe(e.files,n=>/^image\//.test(n.type)),nN=(e,n,r,f)=>{const w=e.getParent(r,Z=>pa(n,Z));if(!O(e.getParent(r,"summary")))return!0;if(w&<(f,"text/html")){const Z=new DOMParser().parseFromString(f["text/html"],"text/html").body;return!O(Z.querySelector(w.nodeName.toLowerCase()))}else return!1},FY=e=>{e.on("input",n=>{const r=f=>O(f.querySelector("summary"));if(n.inputType==="deleteByDrag"){const f=ue(e.dom.select("details"),r);ie(f,w=>{Ja(w.firstChild)&&w.firstChild.remove();const B=e.dom.create("summary");B.appendChild(ec().dom),w.prepend(B)})}})},ED=(e,n)=>{L4(e)&&e.on("dragend dragover draggesture dragdrop drop drag",r=>{r.preventDefault(),r.stopPropagation()}),Bb(e)||e.on("drop",r=>{const f=r.dataTransfer;f&&NY(f)&&r.preventDefault()}),e.on("drop",r=>{if(r.isDefaultPrevented())return;const f=tN(e,r);if(M(f))return;const w=o2(r.dataTransfer),B=c0(w,AM());if((!Y9(w)||IY(w))&&J9(e,r,f))return;const Z=w[AM()],oe=Z||w["text/html"]||w["text/plain"],be=nN(e.dom,e.schema,f.startContainer,w),Pe=n.get();Pe&&!be||oe&&(r.preventDefault(),Ef.setEditorTimeout(e,()=>{e.undoManager.transact(()=>{(Z||Pe&&be)&&e.execCommand("Delete"),HS(e,f);const Ke=U9(oe);w["text/html"]?_M(e,Ke,B,!0):l0(e,Ke,!0)})}))}),e.on("dragstart",r=>{n.set(!0)}),e.on("dragover dragend",r=>{Bb(e)&&!n.get()&&(r.preventDefault(),HS(e,tN(e,r))),r.type==="dragend"&&n.set(!1)}),FY(e)},rN=e=>{const n=w=>B=>{w(e,B)},r=D4(e);R(r)&&e.on("PastePreProcess",n(r));const f=xT(e);R(f)&&e.on("PastePostProcess",n(f))},BY=(e,n)=>{e.on("PastePreProcess",r=>{r.content=n(e,r.content,r.internal)})},HY=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,oN=e=>ur.trim(e).replace(HY,Xp).toLowerCase(),zY=(e,n,r)=>{const f=Ow(e);if(r||f==="all"||!Pw(e))return n;const w=f?f.split(/[, ]/):[];if(w&&f!=="none"){const B=e.dom,Z=e.selection.getNode();n=n.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(oe,be,Pe,Ke)=>{const Je=B.parseStyle(B.decode(Pe)),at={};for(let Ht=0;Ht]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return n=n.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(B,Z,oe,be)=>Z+' style="'+oe+'"'+be),n},VY=e=>{(Lr.browser.isChromium()||Lr.browser.isSafari())&&BY(e,zY)},aN=e=>{const n=Us(!1),r=Us(Nw(e)?"text":"html"),f=vY(e);VY(e),SD(e,r),rN(e),e.on("PreInit",()=>{PY(e),ED(e,n),RY(e,f,r)})},UY=e=>{e.on("click",n=>{e.dom.getParent(n.target,"details")&&n.preventDefault()})},WY=e=>{e.parser.addNodeFilter("details",n=>{const r=fl(e);ie(n,f=>{r==="expanded"?f.attr("open","open"):r==="collapsed"&&f.attr("open",null)})}),e.serializer.addNodeFilter("details",n=>{const r=l$(e);ie(n,f=>{r==="expanded"?f.attr("open","open"):r==="collapsed"&&f.attr("open",null)})})},GY=e=>{UY(e),WY(e)},ZY=Ja,sN=ir,jY=e=>fa(e.dom),YY=e=>wl(e.dom),RM=e=>n=>Ba(jt.fromDom(e),n),iN=(e,n,r)=>Xc(jt.fromDom(e),f=>YY(f)||r.isBlock(La(f)),RM(n)).getOr(jt.fromDom(n)).dom,lN=(e,n)=>Xc(jt.fromDom(e),jY,RM(n)),cN=(e,n,r)=>{const f=new es(e,n),w=r?f.next.bind(f):f.prev.bind(f);let B=e;for(let Z=r?e:w();Z&&!ZY(Z);Z=w())fo(Z)&&(B=Z);return B},KY=(e,n,r)=>{const w=In.fromRangeStart(e).getNode(),B=iN(w,n,r),Z=cN(w,B,!1),oe=cN(w,B,!0),be=document.createRange();return lN(Z,B).fold(()=>{sN(Z)?be.setStart(Z,0):be.setStartBefore(Z)},Pe=>be.setStartBefore(Pe.dom)),lN(oe,B).fold(()=>{sN(oe)?be.setEnd(oe,oe.data.length):be.setEndAfter(oe)},Pe=>be.setEndAfter(Pe.dom)),be},XY=e=>{const n=KY(e.selection.getRng(),e.getBody(),e.schema);e.selection.setRng(Tx(n))},JY=e=>{e.on("mousedown",n=>{n.detail>=3&&(n.preventDefault(),XY(e))})};var s2;(function(e){e.Before="before",e.After="after"})(s2||(s2={}));const QY=(e,n)=>Math.abs(e.left-n),LM=(e,n)=>Math.abs(e.right-n),uN=(e,n)=>e>=n.top&&e<=n.bottom,qY=(e,n)=>e.topn.top,fN=(e,n)=>{const r=r4(e,n)/Math.min(e.height,n.height);return qY(e,n)&&r>.5},dN=(e,n)=>{const r=ue(e,f=>uN(n,f));return n4(r).fold(()=>[[],e],f=>{const{pass:w,fail:B}=se(e,Z=>fN(Z,f));return[w,B]})},_D=(e,n)=>({node:e.node,position:QY(e,n)n>e.left&&n{const f=Ke=>fo(Ke.node)?X.some(Ke):Gr(Ke.node)?DM(tt(Ke.node.childNodes),n,r):X.none(),w=(Ke,Je)=>{if(Ke.length>=2){const at=f(Ke[0]).getOr(Ke[0]),Rt=f(Ke[1]).getOr(Ke[1]);if(Math.abs(Je(at,n,r)-Je(Rt,n,r))<2){if(ir(at.node))return X.some(at);if(ir(Rt.node))return X.some(Rt)}}return X.none()},B=(Ke,Je)=>{const at=Xe(Ke,(Rt,Ht)=>Je(Rt,n,r)-Je(Ht,n,r));return w(at,Je).orThunk(()=>Ct(at,f))},[Z,oe]=dN(bP(e),r),{pass:be,fail:Pe}=se(oe,Ke=>Ke.topB(Pe,aw)).orThunk(()=>B(be,aw))},tK=(e,n,r,f)=>{const w=(B,Z)=>{const oe=Pe=>Gr(Pe)&&Pe.classList.contains("mce-drag-container"),be=ue(B.dom.childNodes,he(oe));return Z.fold(()=>DM(be,r,f),Pe=>{const Ke=ue(be,Je=>Je!==Pe.dom);return DM(Ke,r,f)}).orThunk(()=>(Ba(B,e)?X.none():gm(B)).bind(Ke=>w(Ke,X.some(B))))};return w(n,X.none())},hN=(e,n,r)=>{const f=jt.fromDom(e),w=mf(f),Z=jt.fromPoint(w,n,r).filter(oe=>Dl(f,oe)).getOr(f);return tK(f,Z,n,r)},mN=(e,n,r)=>hN(e,n,r).filter(f=>Cv(f.node)).map(f=>_D(f,n)),RD=e=>{var n,r;const f=e.getBoundingClientRect(),w=e.ownerDocument,B=w.documentElement,Z=w.defaultView;return{top:f.top+((n=Z==null?void 0:Z.scrollY)!==null&&n!==void 0?n:0)-B.clientTop,left:f.left+((r=Z==null?void 0:Z.scrollX)!==null&&r!==void 0?r:0)-B.clientLeft}},nK=e=>e.inline?RD(e.getBody()):{left:0,top:0},rK=e=>{const n=e.getBody();return e.inline?{left:n.scrollLeft,top:n.scrollTop}:{left:0,top:0}},oK=e=>{const n=e.getBody(),r=e.getDoc().documentElement,f={left:n.scrollLeft,top:n.scrollTop},w={left:n.scrollLeft||r.scrollLeft,top:n.scrollTop||r.scrollTop};return e.inline?f:w},zS=(e,n)=>{if(n.target.ownerDocument!==e.getDoc()){const r=RD(e.getContentAreaContainer()),f=oK(e);return{left:n.pageX-r.left+f.left,top:n.pageY-r.top+f.top}}return{left:n.pageX,top:n.pageY}},aK=(e,n,r)=>({pageX:r.left-e.left+n.left,pageY:r.top-e.top+n.top}),sK=(e,n)=>aK(nK(e),rK(e),zS(e,n)),LD=e=>({target:e,srcElement:e}),iK=(e,n,r,f)=>({...n,dataTransfer:f,type:e,...LD(r)}),lK=(e,n,r)=>{const f=ge("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:e,composedPath:f,initEvent:f,preventDefault:j,stopImmediatePropagation:j,stopPropagation:j,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:f,initMouseEvent:f,getModifierState:f,dataTransfer:r,...LD(n)}},cK=(e,n)=>{const r=r2(e);return n==="dragstart"?(L9(r),$9(r)):n==="drop"?(nY(r),fD(r)):(SM(r),O9(r)),r},uK=(e,n,r,f)=>{const w=cK(r,e);return N(f)?lK(e,n,w):iK(e,f,n,w)},$M=32,OM=100,VS=8,US=16,gN=fa,fK=o4(gN,wl),dK=(e,n,r)=>gN(r)&&r!==n&&e.isEditable(r.parentElement),tte=(e,n,r)=>M(n)||n===r||e.dom.isChildOf(n,r)?!1:e.dom.isEditable(n),hK=(e,n,r,f)=>{const w=e.dom,B=n.cloneNode(!0);w.setStyles(B,{width:r,height:f}),w.setAttrib(B,"data-mce-selected",null);const Z=w.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return w.setStyles(Z,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:r,height:f}),w.setStyles(B,{margin:0,boxSizing:"border-box"}),Z.appendChild(B),Z},DD=(e,n)=>{e.parentNode!==n&&n.appendChild(e)},i2=(e,n)=>r=>()=>{const f=e==="left"?r.scrollX:r.scrollY;r.scroll({[e]:f+n,behavior:"smooth"})},WS=i2("left",-$M),pN=i2("left",$M),vN=i2("top",-$M),$D=i2("top",$M),mK=(e,n,r,f,w,B,Z,oe,be,Pe,Ke,Je)=>{let at=0,Rt=0;e.style.left=n.pageX+"px",e.style.top=n.pageY+"px",n.pageX+r>w&&(at=n.pageX+r-w),n.pageY+f>B&&(Rt=n.pageY+f-B),e.style.width=r-at+"px",e.style.height=f-Rt+"px";const Ht=be.clientHeight,At=be.clientWidth,It=Z+be.getBoundingClientRect().top,ln=oe+be.getBoundingClientRect().left;Ke.on(xn=>{xn.intervalId.clear(),xn.dragging&&Je&&(Z+VS>=Ht?xn.intervalId.set($D(Pe)):Z-VS<=0?xn.intervalId.set(vN(Pe)):oe+VS>=At?xn.intervalId.set(pN(Pe)):oe-VS<=0?xn.intervalId.set(WS(Pe)):It+US>=window.innerHeight?xn.intervalId.set($D(window)):It-US<=0?xn.intervalId.set(vN(window)):ln+US>=window.innerWidth?xn.intervalId.set(pN(window)):ln-US<=0&&xn.intervalId.set(WS(window)))})},PM=e=>{e&&e.parentNode&&e.parentNode.removeChild(e)},yN=(e,n)=>{const r=e.getParent(n.parentNode,e.isBlock);PM(n),r&&r!==e.getRoot()&&e.isEmpty(r)&&U(jt.fromDom(r))},gK=e=>e.button===0,pK=(e,n)=>({pageX:n.pageX-e.relX,pageY:n.pageY+5}),bN=(e,n)=>r=>{if(gK(r)){const f=de(n.dom.getParents(r.target),fK).getOr(null);if(k(f)&&dK(n.dom,n.getBody(),f)){const w=n.dom.getPos(f),B=n.getBody(),Z=n.getDoc().documentElement;e.set({element:f,dataTransfer:dD(),dragging:!1,screenX:r.screenX,screenY:r.screenY,maxX:(n.inline?B.scrollWidth:Z.offsetWidth)-2,maxY:(n.inline?B.scrollHeight:Z.offsetHeight)-2,relX:r.pageX-w.x,relY:r.pageY-w.y,width:f.offsetWidth,height:f.offsetHeight,ghost:hK(n,f,f.offsetWidth,f.offsetHeight),intervalId:e4(OM)})}}},vK=(e,n,r)=>{e._selectionOverrides.hideFakeCaret(),mN(e.getBody(),n,r).fold(()=>e.selection.placeCaretAt(n,r),f=>{const w=e._selectionOverrides.showCaret(1,f.node,f.position===s2.Before,!1);w?e.selection.setRng(w):e.selection.placeCaretAt(n,r)})},IM=(e,n,r,f,w)=>{n==="dragstart"&&N9(f,e.dom.getOuterHTML(r));const B=uK(n,r,f,w);return e.dispatch(n,B)},yK=(e,n)=>{const r=l1((w,B)=>vK(n,w,B),0);n.on("remove",r.cancel);const f=e;return w=>e.on(B=>{const Z=Math.max(Math.abs(w.screenX-B.screenX),Math.abs(w.screenY-B.screenY));if(!B.dragging&&Z>10){const oe=IM(n,"dragstart",B.element,B.dataTransfer,w);if(k(oe.dataTransfer)&&(B.dataTransfer=oe.dataTransfer),oe.isDefaultPrevented())return;B.dragging=!0,n.focus()}if(B.dragging){const oe=w.currentTarget===n.getDoc().documentElement,be=pK(B,sK(n,w));DD(B.ghost,n.getBody()),mK(B.ghost,be,B.width,B.height,B.maxX,B.maxY,w.clientY,w.clientX,n.getContentAreaContainer(),n.getWin(),f,oe),r.throttle(w.clientX,w.clientY)}})},bK=e=>{const n=e.getSel();if(k(n)){const f=n.getRangeAt(0).startContainer;return ir(f)?f.parentNode:f}else return null},xK=(e,n)=>r=>{e.on(f=>{var w;if(f.intervalId.clear(),f.dragging){if(tte(n,bK(n.selection),f.element)){const B=(w=n.getDoc().elementFromPoint(r.clientX,r.clientY))!==null&&w!==void 0?w:n.getBody();IM(n,"drop",B,f.dataTransfer,r).isDefaultPrevented()||n.undoManager.transact(()=>{yN(n.dom,f.element),uY(f.dataTransfer).each(oe=>n.insertContent(oe)),n._selectionOverrides.hideFakeCaret()})}IM(n,"dragend",n.getBody(),f.dataTransfer,r)}}),PD(e)},OD=(e,n,r)=>{e.on(f=>{f.intervalId.clear(),f.dragging&&r.fold(()=>IM(n,"dragend",f.element,f.dataTransfer),w=>IM(n,"dragend",f.element,f.dataTransfer,w))}),PD(e)},wK=(e,n)=>r=>OD(e,n,X.some(r)),PD=e=>{e.on(n=>{n.intervalId.clear(),PM(n.ghost)}),e.clear()},CK=e=>{const n=Em(),r=Cs.DOM,f=document,w=bN(n,e),B=yK(n,e),Z=xK(n,e),oe=wK(n,e);e.on("mousedown",w),e.on("mousemove",B),e.on("mouseup",Z),r.bind(f,"mousemove",B),r.bind(f,"mouseup",oe),e.on("remove",()=>{r.unbind(f,"mousemove",B),r.unbind(f,"mouseup",oe)}),e.on("keydown",be=>{be.keyCode===Wr.ESC&&OD(n,e,X.none())})},SK=e=>{const n=w=>{if(!w.isDefaultPrevented()){const B=w.dataTransfer;B&&(Ve(B.types,"Files")||B.files.length>0)&&(w.preventDefault(),w.type==="drop"&&vA(e,"Dropped file type is not supported"))}},r=w=>{mk(e,w.target)&&n(w)},f=()=>{const w=Cs.DOM,B=e.dom,Z=document,oe=e.inline?e.getBody():e.getDoc(),be=["drop","dragover"];ie(be,Pe=>{w.bind(Z,Pe,r),B.bind(oe,Pe,n)}),e.on("remove",()=>{ie(be,Pe=>{w.unbind(Z,Pe,r),B.unbind(oe,Pe,n)})})};e.on("init",()=>{Ef.setEditorTimeout(e,f,0)})},TK=e=>{CK(e),Fb(e)&&SK(e)},kK=e=>{const n=l1(()=>{if(!e.removed&&e.getBody().contains(document.activeElement)){const r=e.selection.getRng();if(r.collapsed){const f=Ux(e,r,!1);e.selection.setRng(f)}}},0);e.on("focus",()=>{n.throttle()}),e.on("blur",()=>{n.cancel()})},AK=e=>{e.on("init",()=>{e.on("focusin",n=>{const r=n.target;if(zs(r)){const f=ay(e.getBody(),r),w=fa(f)?f:r;e.selection.getNode()!==w&&Vx(e,w).each(B=>e.selection.setRng(B))}})})},l2=fa,MK=(e,n)=>ay(e.getBody(),n),EK=e=>{const n=e.selection,r=e.dom,f=e.getBody(),w=Ww(e,f,r.isBlock,()=>Vv(e)),B="sel-"+r.uniqueId(),Z="data-mce-selected";let oe;const be=Nr=>k(Nr)&&r.hasClass(Nr,"mce-offscreen-selection"),Pe=Nr=>Nr!==f&&(l2(Nr)||zs(Nr))&&r.isChildOf(Nr,f)&&r.isEditable(Nr.parentNode),Ke=Nr=>{Nr&&n.setRng(Nr)},Je=(Nr,zn,Nn,er=!0)=>e.dispatch("ShowCaret",{target:zn,direction:Nr,before:Nn}).isDefaultPrevented()?null:(er&&n.scrollIntoView(zn,Nr===-1),w.show(Nn,zn)),at=Nr=>{Nr.hasAttribute("data-mce-caret")&&(Mn(Nr),n.scrollIntoView(Nr))},Rt=()=>{e.on("click",zn=>{r.isEditable(zn.target)||(zn.preventDefault(),e.focus())}),e.on("blur NewBlock",$n),e.on("ResizeWindow FullscreenStateChanged",w.reposition),e.on("tap",zn=>{const Nn=zn.target,er=MK(e,Nn);l2(er)?(zn.preventDefault(),Vx(e,er).each(yn)):Pe(Nn)&&Vx(e,Nn).each(yn)},!0),e.on("mousedown",zn=>{const Nn=zn.target;if(Nn!==f&&Nn.nodeName!=="HTML"&&!r.isChildOf(Nn,f)||!oW(e,zn.clientX,zn.clientY))return;$n(),mr();const er=MK(e,Nn);l2(er)?(zn.preventDefault(),Vx(e,er).each(yn)):mN(f,zn.clientX,zn.clientY).each(Qr=>{zn.preventDefault();const ho=Je(1,Qr.node,Qr.position===s2.Before,!1);Ke(ho),xl(er)?er.focus():e.getBody().focus()})}),e.on("keypress",zn=>{Wr.modifierPressed(zn)||l2(n.getNode())&&zn.preventDefault()}),e.on("GetSelectionRange",zn=>{let Nn=zn.range;if(oe){if(!oe.parentNode){oe=null;return}Nn=Nn.cloneRange(),Nn.selectNode(oe),zn.range=Nn}}),e.on("SetSelectionRange",zn=>{zn.range=It(zn.range);const Nn=yn(zn.range,zn.forward);Nn&&(zn.range=Nn)});const Nr=zn=>Gr(zn)&&zn.id==="mcepastebin";e.on("AfterSetSelectionRange",zn=>{const Nn=zn.range,er=Nn.startContainer.parentElement;!At(Nn)&&!Nr(er)&&mr(),be(er)||$n()}),TK(e),kK(e),AK(e)},Ht=Nr=>bt(Nr)||en(Nr)||dn(Nr),At=Nr=>Ht(Nr.startContainer)||Ht(Nr.endContainer),It=Nr=>{const zn=e.schema.getVoidElements(),Nn=r.createRng(),er=Nr.startContainer,Qr=Nr.startOffset,ho=Nr.endContainer,na=Nr.endOffset;return lt(zn,er.nodeName.toLowerCase())?Qr===0?Nn.setStartBefore(er):Nn.setStartAfter(er):Nn.setStart(er,Qr),lt(zn,ho.nodeName.toLowerCase())?na===0?Nn.setEndBefore(ho):Nn.setEndAfter(ho):Nn.setEnd(ho,na),Nn},ln=(Nr,zn)=>{const Nn=jt.fromDom(e.getBody()),er=e.getDoc(),Qr=Jl(Nn,"#"+B).getOrThunk(()=>{const ca=jt.fromHtml('
    ',er);return ws(ca,"id",B),di(Nn,ca),ca}),ho=r.createRng();Ad(Qr),hs(Qr,[jt.fromText(Da,er),jt.fromDom(zn),jt.fromText(Da,er)]),ho.setStart(Qr.dom.firstChild,1),ho.setEnd(Qr.dom.lastChild,0),$l(Qr,{top:r.getPos(Nr,e.getBody()).y+"px"}),ik(Qr);const na=n.getSel();return na&&(na.removeAllRanges(),na.addRange(ho)),ho},xn=Nr=>{const zn=Nr.cloneNode(!0),Nn=e.dispatch("ObjectSelected",{target:Nr,targetClone:zn});if(Nn.isDefaultPrevented())return null;const er=ln(Nr,Nn.targetClone),Qr=jt.fromDom(Nr);return ie(Vi(jt.fromDom(e.getBody()),`*[${Z}]`),ho=>{Ba(Qr,ho)||Xs(ho,Z)}),r.getAttrib(Nr,Z)||Nr.setAttribute(Z,"1"),oe=Nr,mr(),er},yn=(Nr,zn)=>{if(!Nr)return null;if(Nr.collapsed){if(!At(Nr)){const ho=zn?1:-1,na=Bm(ho,f,Nr),ca=na.getNode(!zn);if(k(ca)){if(Cv(ca))return Je(ho,ca,zn?!na.isAtEnd():!1,!1);if(yt(ca)&&fa(ca.nextSibling)){const ka=r.createRng();return ka.setStart(ca,0),ka.setEnd(ca,0),ka}}const os=na.getNode(zn);if(k(os)){if(Cv(os))return Je(ho,os,zn?!1:!na.isAtEnd(),!1);if(yt(os)&&fa(os.previousSibling)){const ka=r.createRng();return ka.setStart(os,1),ka.setEnd(os,1),ka}}}return null}let Nn=Nr.startContainer,er=Nr.startOffset;const Qr=Nr.endOffset;if(ir(Nn)&&er===0&&l2(Nn.parentNode)&&(Nn=Nn.parentNode,er=r.nodeIndex(Nn),Nn=Nn.parentNode),!Gr(Nn))return null;if(Qr===er+1&&Nn===Nr.endContainer){const ho=Nn.childNodes[er];if(Pe(ho))return xn(ho)}return null},$n=()=>{oe&&oe.removeAttribute(Z),Jl(jt.fromDom(e.getBody()),"#"+B).each(Ua),oe=null},nr=()=>{w.destroy(),oe=null},mr=()=>{w.hide()};return mp(e)||Rt(),{showCaret:Je,showBlockCaretContainer:at,hideFakeCaret:mr,destroy:nr}},xN=(e,n)=>{let r=n;for(let f=e.previousSibling;ir(f);f=f.previousSibling)r+=f.data.length;return r},wN=(e,n,r,f,w)=>{if(ir(r)&&(f<0||f>r.data.length))return[];const B=w&&ir(r)?[xN(r,f)]:[f];let Z=r;for(;Z!==n&&Z.parentNode;)B.push(e.nodeIndex(Z,w)),Z=Z.parentNode;return Z===n?B.reverse():[]},GS=(e,n,r,f,w,B,Z=!1)=>{const oe=wN(e,n,r,f,Z),be=wN(e,n,w,B,Z);return{start:oe,end:be}},CN=(e,n)=>{const r=n.slice(),f=r.pop();return F(f)?le(r,(B,Z)=>B.bind(oe=>X.from(oe.childNodes[Z])),X.some(e)).bind(B=>ir(B)&&(f<0||f>B.data.length)?X.none():X.some({node:B,offset:f})):X.none()},SN=(e,n)=>CN(e,n.start).bind(({node:r,offset:f})=>CN(e,n.end).map(({node:w,offset:B})=>{const Z=document.createRange();return Z.setStart(r,f),Z.setEnd(w,B),Z})),_K=(e,n,r,f=!1)=>GS(e,n,r.startContainer,r.startOffset,r.endContainer,r.endOffset,f),by=(e,n,r)=>{if(n&&e.isEmpty(n)&&!r(n)){const f=n.parentNode;e.remove(n,ir(n.firstChild)&&As(n.firstChild.data)),by(e,f,r)}},xy=(e,n,r,f=!0)=>{const w=n.startContainer.parentNode,B=n.endContainer.parentNode;n.deleteContents(),f&&!r(n.startContainer)&&(ir(n.startContainer)&&n.startContainer.data.length===0&&e.remove(n.startContainer),ir(n.endContainer)&&n.endContainer.data.length===0&&e.remove(n.endContainer),by(e,w,r),w!==B&&by(e,B,r))},NM=(e,n)=>X.from(e.dom.getParent(n.startContainer,e.dom.isBlock)),ID=(e,n,r)=>{const f=e.dynamicPatternsLookup({text:r,block:n});return{...e,blockPatterns:Ob(f).concat(e.blockPatterns),inlinePatterns:xw(f).concat(e.inlinePatterns)}},TN=(e,n,r,f)=>{const w=e.createRng();return w.setStart(n,0),w.setEnd(r,f),w.toString()},RK=e=>/^\s[^\s]/.test(e),ND=(e,n,r)=>{CI(n,0,n).each(w=>{const B=w.container;eM(B,r.start.length,n).each(be=>{const Pe=e.createRng();Pe.setStart(B,0),Pe.setEnd(be.container,be.offset),xy(e,Pe,Ke=>Ke===n)});const Z=jt.fromDom(B),oe=Dc(Z);RK(oe)&&Ol(Z,oe.slice(1))})},LK=(e,n)=>{const r=e.dom,f=n.pattern,w=SN(r.getRoot(),n.range).getOrDie("Unable to resolve path range"),B=(Z,oe)=>{const be=oe.get(Z);return S(be)&>(be).exists(Pe=>lt(Pe,"block"))};return NM(e,w).each(Z=>{f.type==="block-format"?B(f.format,e.formatter)&&e.undoManager.transact(()=>{ND(e.dom,Z,f),e.formatter.apply(f.format)}):f.type==="block-command"&&e.undoManager.transact(()=>{ND(e.dom,Z,f),e.execCommand(f.cmd,!1,f.value)})}),!0},DK=e=>Xe(e,(n,r)=>r.start.length-n.start.length),$K=(e,n)=>{const r=DK(e),f=n.replace(Da," ");return de(r,w=>n.indexOf(w.start)===0||f.indexOf(w.start)===0)},FD=(e,n,r,f)=>{var w;const B=e.dom,Z=ac(e);if(!B.is(n,Z))return[];const oe=(w=n.textContent)!==null&&w!==void 0?w:"";return $K(r.blockPatterns,oe).map(be=>ur.trim(oe).length===be.start.length?[]:[{pattern:be,range:GS(B,B.getRoot(),n,0,n,0,f)}]).getOr([])},OK=(e,n)=>{if(n.length===0)return;const r=e.selection.getBookmark();ie(n,f=>LK(e,f)),e.selection.moveToBookmark(r)},kN=(e,n)=>e.create("span",{"data-mce-type":"bookmark",id:n}),FM=(e,n)=>{const r=e.createRng();return r.setStartAfter(n.start),r.setEndBefore(n.end),r},AN=(e,n,r)=>{const f=SN(e.getRoot(),r).getOrDie("Unable to resolve path range"),w=f.startContainer,B=f.endContainer,Z=f.endOffset===0?B:B.splitText(f.endOffset),oe=f.startOffset===0?w:w.splitText(f.startOffset),be=oe.parentNode,Pe=Z.parentNode;return{prefix:n,end:Pe.insertBefore(kN(e,n+"-end"),Z),start:be.insertBefore(kN(e,n+"-start"),oe)}},MN=(e,n,r)=>{by(e,e.get(n.prefix+"-end"),r),by(e,e.get(n.prefix+"-start"),r)},BD=e=>e.start.length===0,EN=e=>(n,r)=>{const w=n.data.substring(0,r),B=w.lastIndexOf(e.charAt(e.length-1)),Z=w.lastIndexOf(e);return Z!==-1?Z+e.length:B!==-1?B+1:-1},HD=(e,n,r,f)=>{const w=n.start;return AS(e,f.container,f.offset,EN(w),r).bind(Z=>{var oe,be;const Pe=(be=(oe=r.textContent)===null||oe===void 0?void 0:oe.indexOf(w))!==null&&be!==void 0?be:-1;if(Pe!==-1&&Z.offset>=Pe+w.length){const Je=e.createRng();return Je.setStart(Z.container,Z.offset-w.length),Je.setEnd(Z.container,Z.offset),X.some(Je)}else{const Je=Z.offset-w.length;return kS(Z.container,Je,r).map(at=>{const Rt=e.createRng();return Rt.setStart(at.container,at.offset),Rt.setEnd(Z.container,Z.offset),Rt}).filter(at=>at.toString()===w).orThunk(()=>HD(e,n,r,qd(Z.container,0)))}})},zD=(e,n,r,f,w,B=!1)=>{if(n.start.length===0&&!B){const Z=e.createRng();return Z.setStart(r,f),Z.setEnd(r,f),X.some(Z)}return TS(r,f,w).bind(Z=>HD(e,n,w,Z).bind(be=>{var Pe;if(B){if(be.endContainer===Z.container&&be.endOffset===Z.offset)return X.none();if(Z.offset===0&&((Pe=be.endContainer.textContent)===null||Pe===void 0?void 0:Pe.length)===be.endOffset)return X.none()}return X.some(be)}))},VD=(e,n,r,f)=>{const w=e.dom,B=w.getRoot(),Z=r.pattern,oe=r.position.container,be=r.position.offset;return kS(oe,be-r.pattern.end.length,n).bind(Pe=>{const Ke=GS(w,B,Pe.container,Pe.offset,oe,be,f);if(BD(Z))return X.some({matches:[{pattern:Z,startRng:Ke,endRng:Ke}],position:Pe});{const Je=BM(e,r.remainingPatterns,Pe.container,Pe.offset,n,f),at=Je.getOr({matches:[],position:Pe}),Rt=at.position;return zD(w,Z,Rt.container,Rt.offset,n,Je.isNone()).map(At=>{const It=_K(w,B,At,f);return{matches:at.matches.concat([{pattern:Z,startRng:It,endRng:Ke}]),position:qd(At.startContainer,At.startOffset)}})}})},BM=(e,n,r,f,w,B)=>{const Z=e.dom;return TS(r,f,Z.getRoot()).bind(oe=>{const be=TN(Z,w,r,f);for(let Pe=0;Pe0)return BM(e,n,r,f-1,w,B);if(at.isSome())return at}return X.none()})},HM=(e,n,r)=>{e.selection.setRng(r),n.type==="inline-format"?ie(n.format,f=>{e.formatter.apply(f)}):e.execCommand(n.cmd,!1,n.value)},PK=(e,n,r,f)=>{const w=FM(e.dom,r);xy(e.dom,w,f),HM(e,n,w)},IK=(e,n,r,f,w)=>{const B=e.dom,Z=FM(B,f),oe=FM(B,r);xy(B,oe,w),xy(B,Z,w);const be={prefix:r.prefix,start:r.end,end:f.start},Pe=FM(B,be);HM(e,n,Pe)},_N=(e,n)=>{const r=Gg("mce_textpattern"),f=pe(n,(w,B)=>{const Z=AN(e,r+`_end${w.length}`,B.endRng);return w.concat([{...B,endMarker:Z}])},[]);return pe(f,(w,B)=>{const Z=f.length-w.length-1,oe=BD(B.pattern)?B.endMarker:AN(e,r+`_start${Z}`,B.startRng);return w.concat([{...B,startMarker:oe}])},[])},NK=e=>Xe(e,(n,r)=>r.end.length-n.end.length),FK=(e,n)=>{const r=We(e,f=>Oe(n,w=>f.pattern.start===w.pattern.start&&f.pattern.end===w.pattern.end));return e.length===n.length?r?e:n:e.length>n.length?e:n},RN=(e,n,r,f,w,B)=>{const Z=BM(e,w.inlinePatterns,r,f,n,B).fold(()=>[],be=>be.matches),oe=BM(e,NK(w.inlinePatterns),r,f,n,B).fold(()=>[],be=>be.matches);return FK(Z,oe)},LN=(e,n)=>{if(n.length===0)return;const r=e.dom,f=e.selection.getBookmark(),w=_N(r,n);ie(w,B=>{const Z=r.getParent(B.startMarker.start,r.isBlock),oe=be=>be===Z;BD(B.pattern)?PK(e,B.pattern,B.endMarker,oe):IK(e,B.pattern,B.startMarker,B.endMarker,oe),MN(r,B.endMarker,oe),MN(r,B.startMarker,oe)}),e.selection.moveToBookmark(f)},BK=(e,n)=>{const r=e.selection.getRng();return NM(e,r).map(f=>{var w;const B=Math.max(0,r.startOffset),Z=ID(n,f,(w=f.textContent)!==null&&w!==void 0?w:""),oe=RN(e,f,r.startContainer,B,Z,!0),be=FD(e,f,Z,!0);return be.length>0||oe.length>0?(e.undoManager.add(),e.undoManager.extra(()=>{e.execCommand("mceInsertNewLine")},()=>{Ie(e),LN(e,oe),OK(e,be);const Pe=e.selection.getRng(),Ke=TS(Pe.startContainer,Pe.startOffset,e.dom.getRoot());e.execCommand("mceInsertNewLine"),Ke.each(Je=>{const at=Je.container;at.data.charAt(Je.offset-1)===Cm&&(at.deleteData(Je.offset-1,1),by(e.dom,at.parentNode,Rt=>Rt===e.dom.getRoot()))})}),!0):!1}).getOr(!1)},HK=(e,n)=>{const r=e.selection.getRng();NM(e,r).map(f=>{const w=Math.max(0,r.startOffset-1),B=TN(e.dom,f,r.startContainer,w),Z=ID(n,f,B),oe=RN(e,f,r.startContainer,w,Z,!1);oe.length>0&&e.undoManager.transact(()=>{LN(e,oe)})})},DN=(e,n,r)=>{for(let f=0;fDN(e,n,(r,f)=>r===f.keyCode&&!Wr.modifierPressed(f)),zK=(e,n)=>DN(e,n,(r,f)=>r.charCodeAt(0)===f.charCode),UD=e=>{const n=[",",".",";",":","!","?"],r=[32],f=()=>Pc(zb(e),O4(e)),w=()=>Hw(e);e.on("keydown",Z=>{if(Z.keyCode===13&&!Wr.modifierPressed(Z)&&e.selection.isCollapsed()){const oe=f();(oe.inlinePatterns.length>0||oe.blockPatterns.length>0||w())&&BK(e,oe)&&Z.preventDefault()}},!0);const B=()=>{if(e.selection.isCollapsed()){const Z=f();(Z.inlinePatterns.length>0||w())&&HK(e,Z)}};e.on("keyup",Z=>{$N(r,Z)&&B()}),e.on("keypress",Z=>{zK(n,Z)&&Ef.setEditorTimeout(e,B)})},VK=e=>{UD(e)},UK=e=>{const n=ur.each,r=Wr.BACKSPACE,f=Wr.DELETE,w=e.dom,B=e.selection,Z=e.parser,oe=Lr.browser,be=oe.isFirefox(),Pe=oe.isChromium()||oe.isSafari(),Ke=Lr.deviceType.isiPhone()||Lr.deviceType.isiPad(),Je=Lr.os.isMacOS()||Lr.os.isiOS(),at=(to,Lo)=>{try{e.getDoc().execCommand(to,!1,String(Lo))}catch{}},Rt=to=>to.isDefaultPrevented(),Ht=()=>{const to=vr=>{const Oo=w.create("body"),Aa=vr.cloneContents();return Oo.appendChild(Aa),B.serializer.serialize(Oo,{format:"html"})},Lo=vr=>{const Oo=to(vr),Aa=w.createRng();Aa.selectNode(e.getBody());const ps=to(Aa);return Oo===ps};e.on("keydown",vr=>{const Oo=vr.keyCode;if(!Rt(vr)&&(Oo===f||Oo===r)&&e.selection.isEditable()){const Aa=e.selection.isCollapsed(),ps=e.getBody();if(Aa&&!Za(jt.fromDom(ps))||!Aa&&!Lo(e.selection.getRng()))return;vr.preventDefault(),e.setContent(""),ps.firstChild&&w.isBlock(ps.firstChild)?e.selection.setCursorLocation(ps.firstChild,0):e.selection.setCursorLocation(ps,0),e.nodeChanged()}})},At=()=>{e.shortcuts.add("meta+a",null,"SelectAll")},It=()=>{e.inline||w.bind(e.getDoc(),"mousedown mouseup",to=>{let Lo;if(to.target===e.getDoc().documentElement)if(Lo=B.getRng(),e.getBody().focus(),to.type==="mousedown"){if(bt(Lo.startContainer))return;B.placeCaretAt(to.clientX,to.clientY)}else B.setRng(Lo)})},ln=()=>{e.on("keydown",to=>{if(!Rt(to)&&to.keyCode===r){if(!e.getBody().getElementsByTagName("hr").length)return;if(B.isCollapsed()&&B.getRng().startOffset===0){const Lo=B.getNode(),vr=Lo.previousSibling;if(Lo.nodeName==="HR"){w.remove(Lo),to.preventDefault();return}vr&&vr.nodeName&&vr.nodeName.toLowerCase()==="hr"&&(w.remove(vr),to.preventDefault())}}})},xn=()=>{Range.prototype.getClientRects||e.on("mousedown",to=>{if(!Rt(to)&&to.target.nodeName==="HTML"){const Lo=e.getBody();Lo.blur(),Ef.setEditorTimeout(e,()=>{Lo.focus()})}})},yn=()=>{const to=vT(e);e.on("click",Lo=>{const vr=Lo.target;/^(IMG|HR)$/.test(vr.nodeName)&&w.isEditable(vr)&&(Lo.preventDefault(),e.selection.select(vr),e.nodeChanged()),vr.nodeName==="A"&&w.hasClass(vr,to)&&vr.childNodes.length===0&&w.isEditable(vr.parentNode)&&(Lo.preventDefault(),B.select(vr))})},$n=()=>{const to=()=>{const vr=w.getAttribs(B.getStart().cloneNode(!1));return()=>{const Oo=B.getStart();Oo!==e.getBody()&&(w.setAttrib(Oo,"style",null),n(vr,Aa=>{Oo.setAttributeNode(Aa.cloneNode(!0))}))}},Lo=()=>!B.isCollapsed()&&w.getParent(B.getStart(),w.isBlock)!==w.getParent(B.getEnd(),w.isBlock);e.on("keypress",vr=>{let Oo;return!Rt(vr)&&(vr.keyCode===8||vr.keyCode===46)&&Lo()?(Oo=to(),e.getDoc().execCommand("delete",!1),Oo(),vr.preventDefault(),!1):!0}),w.bind(e.getDoc(),"cut",vr=>{if(!Rt(vr)&&Lo()){const Oo=to();Ef.setEditorTimeout(e,()=>{Oo()})}})},nr=()=>{e.on("keydown",to=>{if(!Rt(to)&&to.keyCode===r&&B.isCollapsed()&&B.getRng().startOffset===0){const Lo=B.getNode().previousSibling;if(Lo&&Lo.nodeName&&Lo.nodeName.toLowerCase()==="table")return to.preventDefault(),!1}return!0})},mr=()=>{e.on("keydown",to=>{if(Rt(to)||to.keyCode!==Wr.BACKSPACE)return;let Lo=B.getRng();const vr=Lo.startContainer,Oo=Lo.startOffset,Aa=w.getRoot();let ps=vr;if(!(!Lo.collapsed||Oo!==0)){for(;ps.parentNode&&ps.parentNode.firstChild===ps&&ps.parentNode!==Aa;)ps=ps.parentNode;ps.nodeName==="BLOCKQUOTE"&&(e.formatter.toggle("blockquote",void 0,ps),Lo=w.createRng(),Lo.setStart(vr,0),Lo.setEnd(vr,0),B.setRng(Lo))}})},Nr=()=>{const to=()=>{at("StyleWithCSS",!1),at("enableInlineTableEditing",!1),mv(e)||at("enableObjectResizing",!1)};w1(e)||e.on("BeforeExecCommand mousedown",to)},zn=()=>{const to=()=>{n(w.select("a:not([data-mce-block])"),Lo=>{var vr;let Oo=Lo.parentNode;const Aa=w.getRoot();if((Oo==null?void 0:Oo.lastChild)===Lo){for(;Oo&&!w.isBlock(Oo);){if(((vr=Oo.parentNode)===null||vr===void 0?void 0:vr.lastChild)!==Oo||Oo===Aa)return;Oo=Oo.parentNode}w.add(Oo,"br",{"data-mce-bogus":1})}})};e.on("SetContent ExecCommand",Lo=>{(Lo.type==="setcontent"||Lo.command==="mceInsertLink")&&to()})},Nn=()=>{e.on("init",()=>{at("DefaultParagraphSeparator",ac(e))})},er=to=>{const Lo=to.getBody(),vr=to.selection.getRng();return vr.startContainer===vr.endContainer&&vr.startContainer===Lo&&vr.startOffset===0&&vr.endOffset===Lo.childNodes.length},Qr=()=>{e.on("keyup focusin mouseup",to=>{!Wr.modifierPressed(to)&&!er(e)&&B.normalize()},!0)},ho=()=>{e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},na=()=>{e.inline||e.on("keydown",()=>{document.activeElement===document.body&&e.getWin().focus()})},ca=()=>{e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",to=>{let Lo;to.target.nodeName==="HTML"&&(Lo=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(Lo),e.selection.normalize(),e.nodeChanged())}))},os=()=>{Je&&e.on("keydown",to=>{Wr.metaKeyPressed(to)&&!to.shiftKey&&(to.keyCode===37||to.keyCode===39)&&(to.preventDefault(),e.selection.getSel().modify("move",to.keyCode===37?"backward":"forward","lineboundary"))})},ka=()=>{e.on("click",to=>{let Lo=to.target;do if(Lo.tagName==="A"){to.preventDefault();return}while(Lo=Lo.parentNode)}),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},ei=()=>{e.on("init",()=>{e.dom.bind(e.getBody(),"submit",to=>{to.preventDefault()})})},zl=()=>{Z.addNodeFilter("br",to=>{let Lo=to.length;for(;Lo--;)to[Lo].attr("class")==="Apple-interchange-newline"&&to[Lo].remove()})},as=j,Sr=()=>{if(!be||e.removed)return!1;const to=e.selection.getSel();return!to||!to.rangeCount||to.rangeCount===0},so=()=>{Pe&&(It(),yn(),ei(),At(),Ke&&(na(),ca(),ka())),be&&(xn(),Nr(),ho(),os())},$a=()=>{e.on("drop",to=>{var Lo;const vr=(Lo=to.dataTransfer)===null||Lo===void 0?void 0:Lo.getData("text/html");C(vr)&&/^]*>$/.test(vr)&&e.dispatch("dragend",new window.DragEvent("dragend",to))})},ha=()=>{mr(),Ht(),Lr.windowsPhone||Qr(),Pe&&(It(),yn(),Nn(),ei(),nr(),zl(),Ke?(na(),ca(),ka()):At()),be&&(ln(),xn(),$n(),Nr(),zn(),ho(),os(),nr(),$a())};return mp(e)?so():ha(),{refreshContentEditable:as,isHidden:Sr}},WD=Cs.DOM,WK=(e,n)=>{const r=jt.fromDom(e.getBody()),f=qy(Yu(r)),w=jt.fromTag("style");ws(w,"type","text/css"),di(w,jt.fromText(n)),di(f,w),e.on("remove",()=>{Ua(w)})},GK=e=>e.inline?e.getElement().nodeName.toLowerCase():void 0,GD=e=>Cn(e,n=>N(n)===!1),ZS=e=>{const n=e.options.get,r=e.editorUpload.blobCache;return GD({allow_conditional_comments:n("allow_conditional_comments"),allow_html_data_urls:n("allow_html_data_urls"),allow_svg_data_urls:n("allow_svg_data_urls"),allow_html_in_named_anchor:n("allow_html_in_named_anchor"),allow_script_urls:n("allow_script_urls"),allow_unsafe_link_target:n("allow_unsafe_link_target"),convert_unsafe_embeds:n("convert_unsafe_embeds"),convert_fonts_to_spans:n("convert_fonts_to_spans"),fix_list_elements:n("fix_list_elements"),font_size_legacy_values:n("font_size_legacy_values"),forced_root_block:n("forced_root_block"),forced_root_block_attrs:n("forced_root_block_attrs"),preserve_cdata:n("preserve_cdata"),inline_styles:n("inline_styles"),root_name:GK(e),sandbox_iframes:n("sandbox_iframes"),sanitize:n("xss_sanitization"),validate:!0,blob_cache:r,document:e.getDoc()})},ON=e=>{const n=e.options.get;return GD({custom_elements:n("custom_elements"),extended_valid_elements:n("extended_valid_elements"),invalid_elements:n("invalid_elements"),invalid_styles:n("invalid_styles"),schema:n("schema"),valid_children:n("valid_children"),valid_classes:n("valid_classes"),valid_elements:n("valid_elements"),valid_styles:n("valid_styles"),verify_html:n("verify_html"),padd_empty_block_inline_children:n("format_empty_lines")})},ZK=e=>{const n=e.options.get;return{...ZS(e),...ON(e),...GD({remove_trailing_brs:n("remove_trailing_brs"),pad_empty_with_br:n("pad_empty_with_br"),url_converter:n("url_converter"),url_converter_scope:n("url_converter_scope"),element_format:n("element_format"),entities:n("entities"),entity_encoding:n("entity_encoding"),indent:n("indent"),indent_after:n("indent_after"),indent_before:n("indent_before")})}},jK=e=>{const n=Yd(ZS(e),e.schema);return n.addAttributeFilter("src,href,style,tabindex",(r,f)=>{const w=e.dom,B="data-mce-"+f;let Z=r.length;for(;Z--;){const oe=r[Z];let be=oe.attr(f);if(be&&!oe.attr(B)){if(be.indexOf("data:")===0||be.indexOf("blob:")===0)continue;f==="style"?(be=w.serializeStyle(w.parseStyle(be),oe.name),be.length||(be=null),oe.attr(B,be),oe.attr(f,be)):f==="tabindex"?(oe.attr(B,be),oe.attr(f,null)):oe.attr(B,e.convertURL(be,f,oe.name))}}}),n.addNodeFilter("script",r=>{let f=r.length;for(;f--;){const w=r[f],B=w.attr("type")||"no/type";B.indexOf("mce-")!==0&&w.attr("type","mce-"+B)}}),Bw(e)&&n.addNodeFilter("#cdata",r=>{var f;let w=r.length;for(;w--;){const B=r[w];B.type=8,B.name="#comment",B.value="[CDATA["+e.dom.encode((f=B.value)!==null&&f!==void 0?f:"")+"]]"}}),n.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",r=>{let f=r.length;const w=e.schema.getNonEmptyElements();for(;f--;){const B=r[f];B.isEmpty(w)&&B.getAll("br").length===0&&B.append(new Hc("br",1))}}),n},YK=e=>{const n=yT(e);n&&Ef.setEditorTimeout(e,()=>{let r;n===!0?r=e:r=e.editorManager.get(n),r&&!r.destroyed&&(r.focus(),r.selection.scrollIntoView())},100)},KK=e=>{const n=e.dom.getRoot();!e.inline&&(!ex(e)||e.selection.getStart(!0)===n)&&Sc(n).each(r=>{const f=r.getNode(),w=yu(f)?Sc(f).getOr(r):r;e.selection.setRng(w.toRange())})},XK=e=>{e.bindPendingEventDelegates(),e.initialized=!0,G1(e),e.focus(!0),KK(e),e.nodeChanged({initial:!0});const n=E4(e);R(n)&&n.call(e,e),YK(e)},ZD=e=>e.inline?e.ui.styleSheetLoader:e.dom.styleSheetLoader,JK=(e,n,r)=>{const{pass:f,fail:w}=se(n,oe=>tinymce.Resource.has(DR(oe))),Z=[...f.map(oe=>{const be=tinymce.Resource.get(DR(oe));return C(be)?Promise.resolve(ZD(e).loadRawCss(oe,be)):Promise.resolve()}),ZD(e).loadAll(w)];return e.inline?Z:Z.concat([e.ui.styleSheetLoader.loadAll(r)])},PN=e=>{const n=ZD(e),r=uT(e),f=e.contentCSS,w=()=>{n.unloadAll(f),e.inline||e.ui.styleSheetLoader.unloadAll(r)},B=()=>{e.removed?w():e.on("remove",w)};if(e.contentStyles.length>0){let be="";ur.each(e.contentStyles,Pe=>{be+=Pe+`\r -`}),e.dom.addStyle(be)}const Z=Promise.all(JK(e,f,r)).then(B).catch(B),oe=Ib(e);return oe&&WK(e,oe),Z},IN=e=>{const n=e.getDoc(),r=e.getBody();Wm(e),R4(e)||(n.body.spellcheck=!1,WD.setAttrib(r,"spellcheck","false")),e.quirks=UK(e),l_(e);const f=b4(e);f!==void 0&&(r.dir=f);const w=bT(e);w&&e.on("BeforeSetContent",B=>{ur.each(w,Z=>{B.content=B.content.replace(Z,oe=>"")})}),e.on("SetContent",()=>{e.addVisual(e.getBody())}),e.on("compositionstart compositionend",B=>{e.composing=B.type==="compositionstart"})},QK=e=>{mp(e)||e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"})},zM=e=>{e.removed!==!0&&(QK(e),XK(e))},qK=e=>{let n=!1;const r=setTimeout(()=>{n||e.setProgressState(!0)},500);return()=>{clearTimeout(r),n=!0,e.setProgressState(!1)}},NN=e=>{const n=e.getElement();let r=e.getDoc();e.inline&&(WD.addClass(n,"mce-content-body"),e.contentDocument=r=document,e.contentWindow=window,e.bodyElement=n,e.contentAreaContainer=n);const f=e.getBody();f.disabled=!0,e.readonly=w1(e),e._editableRoot=tf(e),!e.readonly&&e.hasEditableRoot()&&(e.inline&&WD.getStyle(f,"position",!0)==="static"&&(f.style.position="relative"),f.contentEditable="true"),f.disabled=!1,e.editorUpload=CW(e),e.schema=_h(ON(e)),e.dom=Cs(r,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,update_styles:!0,root_element:e.inline?e.getBody():null,collect:e.inline,schema:e.schema,contentCssCors:Oh(e),referrerPolicy:ia(e),onSetAttrib:Z=>{e.dispatch("SetAttrib",Z)},force_hex_color:xv(e)}),e.parser=jK(e),e.serializer=SO(ZK(e),e),e.selection=Xv(e.dom,e.getWin(),e.serializer,e),e.annotator=uC(e),e.formatter=dy(e),e.undoManager=uS(e),e._nodeChangeDispatcher=new _9(e),e._selectionOverrides=EK(e),YP(e),GY(e),Pee(e),mp(e)||(JY(e),VK(e));const w=eY(e);GA(e,w),JP(e),TW(e),aN(e);const B=yU(e);IN(e),B.fold(()=>{const Z=qK(e);PN(e).then(()=>{zM(e),Z()})},Z=>{e.setProgressState(!0),PN(e).then(()=>{Z().then(oe=>{e.setProgressState(!1),zM(e),AR(e)},oe=>{e.notificationManager.open({type:"error",text:String(oe)}),zM(e),AR(e)})})})},FN=fe,jS=(e,n,r)=>xh(e,n,FN,r),jD=Cs.DOM,BN=(e,n,r,f)=>{const w=jt.fromTag("iframe");return f.each(B=>ws(w,"tabindex",B)),Kc(w,r),Kc(w,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:n}),hh(w,"tox-edit-area__iframe"),w},eX=e=>{let n=sT(e)+"";Cw(e)!==e.documentBaseUrl&&(n+=''),n+='';const r=Sw(e),f=f4(e),w=e.translate(M4(e));return Tw(e)&&(n+=''),n+=`
    `,n},tX=(e,n)=>{const r=e.translate("Rich Text Area"),f=Yl(jt.fromDom(e.getElement()),"tabindex").bind(Bt),w=BN(e.id,r,ww(e),f).dom;w.onload=()=>{w.onload=null,e.dispatch("load")},e.contentAreaContainer=n.iframeContainer,e.iframeElement=w,e.iframeHTML=eX(e),jD.add(n.iframeContainer,w)},nX=e=>{const n=e.iframeElement,r=()=>{e.contentDocument=n.contentDocument,NN(e)};if(N4(e)||Lr.browser.isFirefox()){const f=e.getDoc();f.open(),f.write(e.iframeHTML),f.close(),r()}else{const f=jS(jt.fromDom(n),"load",()=>{f.unbind(),r()});n.srcdoc=e.iframeHTML}},rX=(e,n)=>{tX(e,n),n.editorContainer&&(n.editorContainer.style.display=e.orgDisplay,e.hidden=jD.isHidden(n.editorContainer)),e.getElement().style.display="none",jD.setAttrib(e.id,"aria-hidden","true"),e.getElement().style.visibility=e.orgVisibility,nX(e)},YD=Cs.DOM,oX=(e,n,r)=>{const f=uy.get(r),w=uy.urls[r]||e.documentBaseUrl.replace(/\/$/,"");if(r=ur.trim(r),f&&ur.inArray(n,r)===-1){if(e.plugins[r])return;try{const B=f(e,w)||{};e.plugins[r]=B,R(B.init)&&(B.init(e,w),n.push(r))}catch(B){PO(e,r,B)}}},HN=e=>e.replace(/^\-/,""),aX=e=>{const n=[];ie(C1(e),r=>{oX(e,n,HN(r))})},sX=e=>{const n=ur.trim(Aw(e)),r=e.ui.registry.getAll().icons,f={...sS.get("default").icons,...sS.get(n).icons};Ft(f,(w,B)=>{lt(r,B)||e.ui.registry.addIcon(B,w)})},iX=e=>{const n=gv(e);if(C(n)){const r=gp.get(n);e.theme=r(e,gp.urls[n])||{},R(e.theme.init)&&e.theme.init(e,gp.urls[n]||e.documentBaseUrl.replace(/\/$/,""))}else e.theme={}},lX=e=>{const n=Lw(e),r=fd.get(n);e.model=r(e,fd.urls[n])},cX=e=>{const n=e.theme.renderUI;return n?n():VN(e)},uX=e=>{const n=e.getElement(),f=gv(e)(e,n);return f.editorContainer.nodeType&&(f.editorContainer.id=f.editorContainer.id||e.id+"_parent"),f.iframeContainer&&f.iframeContainer.nodeType&&(f.iframeContainer.id=f.iframeContainer.id||e.id+"_iframecontainer"),f.height=f.iframeHeight?f.iframeHeight:n.offsetHeight,f},zN=(e,n)=>({editorContainer:e,iframeContainer:n,api:{}}),fX=e=>{const n=YD.create("div");return YD.insertAfter(n,e),zN(n,n)},VN=e=>{const n=e.getElement();return e.inline?zN(null):fX(n)},UN=e=>{const n=e.getElement();return e.orgDisplay=n.style.display,C(gv(e))?cX(e):R(gv(e))?uX(e):VN(e)},KD=(e,n)=>{const r={show:X.from(n.show).getOr(j),hide:X.from(n.hide).getOr(j),isEnabled:X.from(n.isEnabled).getOr(fe),setEnabled:f=>{e.mode.isReadOnly()||X.from(n.setEnabled).each(w=>w(f))}};e.ui={...e.ui,...r}},WN=async e=>{e.dispatch("ScriptsLoaded"),sX(e),iX(e),lX(e),aX(e);const n=await UN(e);KD(e,X.from(n.api).getOr({})),e.editorContainer=n.editorContainer,hW(e),e.inline?NN(e):rX(e,{editorContainer:n.editorContainer,iframeContainer:n.iframeContainer})},u0=Cs.DOM,GN=e=>e.charAt(0)==="-",dX=(e,n)=>{const r=Ew(n),f=sc(n);if(!Cf.hasCode(r)&&r!=="en"){const w=St(f)?f:`${n.editorManager.baseURL}/langs/${r}.js`;e.add(w).catch(()=>{lS(n,w,r)})}},hX=(e,n)=>{const r=gv(e);if(C(r)&&!GN(r)&&!lt(gp.urls,r)){const f=C4(e),w=f?e.documentBaseURI.toAbsolute(f):`themes/${r}/theme${n}.js`;gp.load(r,w).catch(()=>{cW(e,w,r)})}},ZN=(e,n)=>{const r=Lw(e);if(r!=="plugin"&&!lt(fd.urls,r)){const f=dT(e),w=C(f)?e.documentBaseURI.toAbsolute(f):`models/${r}/model${n}.js`;fd.load(r,w).catch(()=>{OO(e,w,r)})}},jN=e=>X.from(Xg(e)).filter(St).map(n=>({url:n,name:X.none()})),YN=(e,n,r)=>X.from(n).filter(f=>St(f)&&!sS.has(f)).map(f=>({url:`${e.editorManager.baseURL}/icons/${f}/icons${r}.js`,name:X.some(f)})),mX=(e,n,r)=>{const f=YN(n,"default",r),w=jN(n).orThunk(()=>YN(n,Aw(n),""));ie(Rs([f,w]),B=>{e.add(B.url).catch(()=>{lW(n,B.url,B.name.getOrUndefined())})})},XD=(e,n)=>{const r=(f,w)=>{uy.load(f,w).catch(()=>{_ee(e,w,f)})};Ft(Om(e),(f,w)=>{r(w,f),e.options.set("plugins",C1(e).concat(w))}),ie(C1(e),f=>{f=ur.trim(f),f&&!uy.urls[f]&&!GN(f)&&r(f,`plugins/${f}/plugin${n}.js`)})},VM=e=>{const n=gv(e);return!C(n)||k(gp.get(n))},UM=e=>{const n=Lw(e);return k(fd.get(n))},yp=(e,n)=>{const r=Ni.ScriptLoader,f=()=>{!e.removed&&VM(e)&&UM(e)&&WN(e)};hX(e,n),ZN(e,n),dX(r,e),mX(r,e,n),XD(e,n),r.loadQueue().then(f,f)},WM=(e,n)=>G2.forElement(e,{contentCssCors:vv(n),referrerPolicy:ia(n)}),c2=e=>{const n=e.id;Cf.setCode(Ew(e));const r=()=>{u0.unbind(window,"ready",r),e.render()};if(!eu.Event.domLoaded){u0.bind(window,"ready",r);return}if(!e.getElement())return;const f=jt.fromDom(e.getElement()),w=Mg(f);e.on("remove",()=>{we(f.dom.attributes,Z=>Xs(f,Z.name)),Kc(f,w)}),e.ui.styleSheetLoader=WM(f,e),Dw(e)?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");const B=e.getElement().form||u0.getParent(n,"form");B&&(e.formElement=B,T4(e)&&!Vp(e.getElement())&&(u0.insertAfter(u0.create("input",{type:"hidden",name:n}),n),e.hasHiddenInput=!0),e.formEventDelegate=Z=>{e.dispatch(Z.type,Z)},u0.bind(B,"submit reset",e.formEventDelegate),e.on("reset",()=>{e.resetContent()}),pT(e)&&!B.submit.nodeType&&!B.submit.length&&!B._mceOldSubmit&&(B._mceOldSubmit=B.submit,B.submit=()=>(e.editorManager.triggerSave(),e.setDirty(!1),B._mceOldSubmit(B)))),e.windowManager=$O(e),e.notificationManager=LR(e),H4(e)&&e.on("GetContent",Z=>{Z.save&&(Z.content=u0.encode(Z.content))}),Nd(e)&&e.on("submit",()=>{e.initialized&&e.save()}),b1(e)&&(e._beforeUnload=()=>{e.initialized&&!e.destroyed&&!e.isHidden()&&e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),yp(e,e.suffix)},KN=(e,n)=>{e._editableRoot!==n&&(e._editableRoot=n,e.readonly||(e.getBody().contentEditable=String(e.hasEditableRoot()),e.nodeChanged()),h_(e,n))},gX=e=>e._editableRoot,pX=(e,n)=>({sections:J(e),options:J(n)}),JD=Ys().deviceType,XN=JD.isPhone(),QD=JD.isTablet(),f0=e=>{if(M(e))return[];{const n=S(e)?e:e.split(/[ ,]/),r=Fe(n,Cr);return ue(r,St)}},d0=(e,n)=>{const r=an(n,(f,w)=>Ve(e,w));return pX(r.t,r.f)},wy=(e,n,r={})=>{const f=e.sections(),w=wn(f,n).getOr({});return ur.extend({},r,w)},GM=(e,n)=>lt(e.sections(),n),vX=(e,n)=>GM(e,n)?e.sections()[n]:{},yX=(e,n)=>({...{table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:wn(e,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1},...n?{menubar:!1}:{}}),bX=(e,n)=>{var r;const f=(r=n.external_plugins)!==null&&r!==void 0?r:{};return e&&e.external_plugins?ur.extend({},e.external_plugins,f):f},xX=(e,n)=>[...f0(e),...f0(n)],wX=(e,n,r,f)=>e&&GM(n,"mobile")?f:r,CX=(e,n,r,f)=>{const w=f0(r.forced_plugins),B=f0(f.plugins),Z=vX(n,"mobile"),oe=Z.plugins?f0(Z.plugins):B,be=wX(e,n,B,oe),Pe=xX(w,be);return ur.extend(f,{forced_plugins:w,plugins:Pe})},JN=(e,n)=>e&&GM(n,"mobile"),SX=(e,n,r,f,w)=>{var B;const Z=e?{mobile:yX((B=w.mobile)!==null&&B!==void 0?B:{},n)}:{},oe=d0(["mobile"],DS(Z,w)),be=ur.extend(r,f,oe.options(),JN(e,oe)?wy(oe,"mobile"):{},{external_plugins:bX(f,oe.options())});return CX(e,oe,f,be)},TX=(e,n)=>SX(XN||QD,XN,n,e,n),kX=(e,n)=>RU(e,n),nte=e=>{const n=(f,w)=>{e.formatter.toggle(f,w),e.nodeChanged()},r=f=>()=>{ie("left,center,right,justify".split(","),w=>{f!==w&&e.formatter.remove("align"+w)}),f!=="none"&&n("align"+f)};e.editorCommands.addCommands({JustifyLeft:r("left"),JustifyCenter:r("center"),JustifyRight:r("right"),JustifyFull:r("justify"),JustifyNone:r("none")})},AX=e=>{const n=r=>()=>{const f=e.selection,w=f.isCollapsed()?[e.dom.getParent(f.getNode(),e.dom.isBlock)]:f.getSelectedBlocks();return Oe(w,B=>k(e.formatter.matchNode(B,r)))};e.editorCommands.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify")},"state")},qD=e=>{nte(e),AX(e)},MX=e=>{e.editorCommands.addCommands({"Cut,Copy,Paste":n=>{const r=e.getDoc();let f;try{r.execCommand(n)}catch{f=!0}if(n==="paste"&&!r.queryCommandEnabled(n)&&(f=!0),f||!r.queryCommandSupported(n)){let w=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(Lr.os.isMacOS()||Lr.os.isiOS())&&(w=w.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:w,type:"error"})}}})},EX=(e,n,r,f)=>{const w=jt.fromDom(e.getRoot());return yx(w,In.fromRangeStart(n),f)?r=r.replace(/^ /," "):r=r.replace(/^ /," "),bx(w,In.fromRangeEnd(n),f)?r=r.replace(/( | )()?$/," "):r=r.replace(/ ()?$/," "),r},QN=e=>{if(typeof e!="string"){const n=ur.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:n}}return{content:e,details:{}}},_X=(e,n)=>{const r=e.selection,f=e.dom;return/^ | $/.test(n)?EX(f,r.getRng(),n,e.schema):n},YS=(e,n)=>{if(e.selection.isEditable()){const{content:r,details:f}=QN(n);oR(e,{...f,content:_X(e,r),format:"html",set:!1,selection:!0}).each(w=>{const B=EU(e,w.content,f);oA(e,B,w),e.addVisual()})}},RX=e=>{e.editorCommands.addCommands({mceCleanup:()=>{const n=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(n)},insertImage:(n,r,f)=>{YS(e,e.dom.createHTML("img",{src:f}))},insertHorizontalRule:()=>{e.execCommand("mceInsertContent",!1,"
    ")},insertText:(n,r,f)=>{YS(e,e.dom.encode(f))},insertHTML:(n,r,f)=>{YS(e,f)},mceInsertContent:(n,r,f)=>{YS(e,f)},mceSetContent:(n,r,f)=>{e.setContent(f)},mceReplaceContent:(n,r,f)=>{e.execCommand("mceInsertContent",!1,f.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceNewDocument:()=>{e.setContent(yv(e))}})},e6={"font-size":"size","font-family":"face"},LX=Yc("font"),DX=(e,n,r)=>{const f=B=>_i(B,e).orThunk(()=>LX(B)?wn(e6,e).bind(Z=>Yl(B,Z)):X.none()),w=B=>Ba(jt.fromDom(n),B);return fp(jt.fromDom(r),B=>f(B),w)},$X=e=>e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),OX=(e,n)=>X.from(Cs.DOM.getStyle(n,e,!0)),t6=e=>(n,r)=>X.from(r).map(jt.fromDom).filter(sl).bind(f=>DX(e,n,f.dom).or(OX(e,f.dom))).getOr(""),n6=t6("font-size"),qN=P($X,t6("font-family")),r6=e=>Sc(e.getBody()).bind(n=>{const r=n.container();return X.from(ir(r)?r.parentNode:r)}),PX=e=>X.from(e.selection.getRng()).bind(n=>{const r=e.getBody();return n.startContainer===r&&n.startOffset===0?X.none():X.from(e.selection.getStart(!0))}),rte=(e,n)=>PX(e).orThunk(Q(r6,e)).map(jt.fromDom).filter(sl).bind(n),eF=(e,n)=>rte(e,ee(X.some,n)),tF=(e,n)=>{if(/^[0-9.]+$/.test(n)){const r=parseInt(n,10);if(r>=1&&r<=7){const f=F4(e),w=B4(e);return w.length>0?w[r-1]||n:f[r-1]||n}else return n}else return n},nF=e=>{const n=e.split(/\s*,\s*/);return Fe(n,r=>r.indexOf(" ")!==-1&&!(wr(r,'"')||wr(r,"'"))?`'${r}'`:r).join(",")},IX=(e,n)=>{const r=tF(e,n);e.formatter.toggle("fontname",{value:nF(r)}),e.nodeChanged()},NX=e=>eF(e,n=>qN(e.getBody(),n.dom)).getOr(""),FX=(e,n)=>{e.formatter.toggle("fontsize",{value:tF(e,n)}),e.nodeChanged()},ote=e=>eF(e,n=>n6(e.getBody(),n.dom)).getOr(""),ate=e=>eF(e,n=>{const r=jt.fromDom(e.getBody()),f=fp(n,B=>_i(B,"line-height"),Q(Ba,r)),w=()=>{const B=parseFloat(ui(n,"line-height")),Z=parseFloat(ui(n,"font-size"));return String(B/Z)};return f.getOrThunk(w)}).getOr(""),rF=(e,n)=>{e.formatter.toggle("lineheight",{value:String(n)}),e.nodeChanged()},oF=e=>{const n=(r,f)=>{e.formatter.toggle(r,f),e.nodeChanged()};e.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":r=>{n(r)},"ForeColor,HiliteColor":(r,f,w)=>{n(r,{value:w})},BackColor:(r,f,w)=>{n("hilitecolor",{value:w})},FontName:(r,f,w)=>{IX(e,w)},FontSize:(r,f,w)=>{FX(e,w)},LineHeight:(r,f,w)=>{rF(e,w)},Lang:(r,f,w)=>{var B;n(r,{value:w.code,customValue:(B=w.customCode)!==null&&B!==void 0?B:null})},RemoveFormat:r=>{e.formatter.remove(r)},mceBlockQuote:()=>{n("blockquote")},FormatBlock:(r,f,w)=>{n(C(w)?w:"p")},mceToggleFormat:(r,f,w)=>{n(w)}})},BX=e=>{const n=r=>e.formatter.match(r);e.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":r=>n(r),mceBlockQuote:()=>n("blockquote")},"state"),e.editorCommands.addQueryValueHandler("FontName",()=>NX(e)),e.editorCommands.addQueryValueHandler("FontSize",()=>ote(e)),e.editorCommands.addQueryValueHandler("LineHeight",()=>ate(e))},HX=e=>{oF(e),BX(e)},zX=e=>{e.editorCommands.addCommands({mceAddUndoLevel:()=>{e.undoManager.add()},mceEndUndoLevel:()=>{e.undoManager.add()},Undo:()=>{e.undoManager.undo()},Redo:()=>{e.undoManager.redo()}})},ste=e=>{e.editorCommands.addCommands({Indent:()=>{GP(e)},Outdent:()=>{ZP(e)}}),e.editorCommands.addCommands({Outdent:()=>zP(e)},"state")},ite=e=>{const n=(r,f,w)=>{const B=C(w)?{href:w}:w,Z=e.dom.getParent(e.selection.getNode(),"a");_(B)&&C(B.href)&&(B.href=B.href.replace(/ /g,"%20"),(!Z||!B.href)&&e.formatter.remove("link"),B.href&&e.formatter.apply("link",B,Z))};e.editorCommands.addCommands({unlink:()=>{if(e.selection.isEditable()){if(e.selection.isCollapsed()){const r=e.dom.getParent(e.selection.getStart(),"a");r&&e.dom.remove(r,!0);return}e.formatter.remove("link")}},mceInsertLink:n,createLink:n})},lte=e=>{e.editorCommands.addCommands({"InsertUnorderedList,InsertOrderedList":n=>{e.getDoc().execCommand(n);const r=e.dom.getParent(e.selection.getNode(),"ol,ul");if(r){const f=r.parentNode;if(f&&/^(H[1-6]|P|ADDRESS|PRE)$/.test(f.nodeName)){const w=e.selection.getBookmark();e.dom.split(f,r),e.selection.moveToBookmark(w)}}}})},VX=e=>{e.editorCommands.addCommands({"InsertUnorderedList,InsertOrderedList":n=>{const r=e.dom.getParent(e.selection.getNode(),"ul,ol");return r&&(n==="insertunorderedlist"&&r.tagName==="UL"||n==="insertorderedlist"&&r.tagName==="OL")}},"state")},cte=e=>{lte(e),VX(e)},UX=(e,n,r,f)=>{const w=e.dom,B=oe=>w.isBlock(oe)&&oe.parentElement===r,Z=B(n)?n:w.getParent(f,B,r);return X.from(Z).map(jt.fromDom)},h0=(e,n)=>{const r=e.dom,f=e.selection.getRng(),w=n?e.selection.getStart():e.selection.getEnd(),B=n?f.startContainer:f.endContainer,Z=Pf(r,B);if(!Z||!Z.isContentEditable)return;const oe=n?Ri:gu,be=ac(e);UX(e,w,Z,B).each(Pe=>{const Ke=JL(e,B,Pe.dom,Z,!1,be);oe(Pe,jt.fromDom(Ke)),e.selection.setCursorLocation(Ke,0),e.dispatch("NewBlock",{newBlock:Ke}),OS(e,"insertParagraph")})},o6=e=>h0(e,!0),ZM=e=>h0(e,!1),aF=e=>{e.editorCommands.addCommands({InsertNewBlockBefore:()=>{o6(e)},InsertNewBlockAfter:()=>{ZM(e)}})},sF=e=>{e.editorCommands.addCommands({insertParagraph:()=>{vM(f9,e)},mceInsertNewLine:(n,r,f)=>{p9(e,f)},InsertLineBreak:(n,r,f)=>{vM(Fj,e)}})},iF=e=>{e.editorCommands.addCommands({mceSelectNodeDepth:(n,r,f)=>{let w=0;e.dom.getParent(e.selection.getNode(),B=>Gr(B)&&w++===f?(e.selection.select(B),!1):!0,e.getBody())},mceSelectNode:(n,r,f)=>{e.selection.select(f)},selectAll:()=>{const n=e.dom.getParent(e.selection.getStart(),wl);if(n){const r=e.dom.createRng();r.selectNodeContents(n),e.selection.setRng(r)}}})},WX=e=>{e.editorCommands.addCommands({mceRemoveNode:(n,r,f)=>{const w=f??e.selection.getNode();if(w!==e.getBody()){const B=e.selection.getBookmark();e.dom.remove(w,!0),e.selection.moveToBookmark(B)}},mcePrint:()=>{e.getWin().print()},mceFocus:(n,r,f)=>{OH(e,f===!0)},mceToggleVisualAid:()=>{e.hasVisual=!e.hasVisual,e.addVisual()}})},GX=e=>{qD(e),MX(e),zX(e),iF(e),RX(e),ite(e),ste(e),aF(e),sF(e),cte(e),HX(e),WX(e)},ZX=["toggleview"],lF=e=>Ve(ZX,e.toLowerCase());class bp{constructor(n){this.commands={state:{},exec:{},value:{}},this.editor=n}execCommand(n,r=!1,f,w){const B=this.editor,Z=n.toLowerCase(),oe=w==null?void 0:w.skip_focus;if(B.removed||(Z!=="mcefocus"&&(!/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(Z)&&!oe?B.focus():xH(B)),B.dispatch("BeforeExecCommand",{command:n,ui:r,value:f}).isDefaultPrevented()))return!1;const Pe=this.commands.exec[Z];return R(Pe)?(Pe(Z,r,f),B.dispatch("ExecCommand",{command:n,ui:r,value:f}),!0):!1}queryCommandState(n){if(!lF(n)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const r=n.toLowerCase(),f=this.commands.state[r];return R(f)?f(r):!1}queryCommandValue(n){if(!lF(n)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const r=n.toLowerCase(),f=this.commands.value[r];return R(f)?f(r):""}addCommands(n,r="exec"){const f=this.commands;Ft(n,(w,B)=>{ie(B.toLowerCase().split(","),Z=>{f[r][Z]=w})})}addCommand(n,r,f){const w=n.toLowerCase();this.commands.exec[w]=(B,Z,oe)=>r.call(f??this.editor,Z,oe)}queryCommandSupported(n){const r=n.toLowerCase();return!!this.commands.exec[r]}addQueryStateHandler(n,r,f){this.commands.state[n.toLowerCase()]=()=>r.call(f??this.editor)}addQueryValueHandler(n,r,f){this.commands.value[n.toLowerCase()]=()=>r.call(f??this.editor)}}const Cy="data-mce-contenteditable",cF=(e,n,r)=>{Cd(e,n)&&!r?mh(e,n):r&&hh(e,n)},a6=(e,n,r)=>{try{e.getDoc().execCommand(n,!1,String(r))}catch{}},Sy=(e,n)=>{e.dom.contentEditable=n?"true":"false"},jX=e=>{ie(Vi(e,'*[contenteditable="true"]'),n=>{ws(n,Cy,"true"),Sy(n,!1)})},YX=e=>{ie(Vi(e,`*[${Cy}="true"]`),n=>{Xs(n,Cy),Sy(n,!0)})},KX=e=>{X.from(e.selection.getNode()).each(n=>{n.removeAttribute("data-mce-selected")})},uF=e=>{e.selection.setRng(e.selection.getRng())},XX=(e,n)=>{const r=jt.fromDom(e.getBody());cF(r,"mce-content-readonly",n),n?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),KX(e),e.readonly=!0,Sy(r,!1),jX(r)):(e.readonly=!1,e.hasEditableRoot()&&Sy(r,!0),YX(r),a6(e,"StyleWithCSS",!1),a6(e,"enableInlineTableEditing",!1),a6(e,"enableObjectResizing",!1),A$(e)&&e.focus(),uF(e),e.nodeChanged())},Ty=e=>e.readonly,fF=e=>{e.parser.addAttributeFilter("contenteditable",n=>{Ty(e)&&ie(n,r=>{r.attr(Cy,r.attr("contenteditable")),r.attr("contenteditable","false")})}),e.serializer.addAttributeFilter(Cy,n=>{Ty(e)&&ie(n,r=>{r.attr("contenteditable",r.attr(Cy))})}),e.serializer.addTempAttr(Cy)},s6=e=>{e.serializer?fF(e):e.on("PreInit",()=>{fF(e)})},JX=e=>e.type==="click",QX=["copy"],rl=e=>Ve(QX,e.type),qX=(e,n)=>Ku(n,"a",f=>Ba(f,jt.fromDom(e.getBody()))).bind(f=>Yl(f,"href")),eJ=(e,n)=>{if(JX(n)&&!Wr.metaKeyPressed(n)){const r=jt.fromDom(n.target);qX(e,r).each(f=>{if(n.preventDefault(),/^#/.test(f)){const w=e.dom.select(`${f},[name="${xr(f,"#")}"]`);w.length&&e.selection.scrollIntoView(w[0],!0)}else window.open(f,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else rl(n)&&e.dispatch(n.type,n)},i6=e=>{e.on("ShowCaret",n=>{Ty(e)&&n.preventDefault()}),e.on("ObjectSelected",n=>{Ty(e)&&n.preventDefault()})},dF=ur.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class KS{static isNative(n){return!!dF[n.toLowerCase()]}constructor(n){this.bindings={},this.settings=n||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||ne}fire(n,r){return this.dispatch(n,r)}dispatch(n,r){const f=n.toLowerCase(),w=Qp(f,r??{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(w);const B=this.bindings[f];if(B)for(let Z=0,oe=B.length;Z{this.toggleEvent(be,!1),delete this.bindings[be]}),this;if(Z){if(!r)Z.length=0;else{const oe=se(Z,be=>be.func===r);Z=oe.fail,this.bindings[B]=Z,ie(oe.pass,be=>{be.removed=!0})}Z.length||(this.toggleEvent(n,!1),delete this.bindings[B])}}}else Ft(this.bindings,(f,w)=>{this.toggleEvent(w,!1)}),this.bindings={};return this}once(n,r,f){return this.on(n,r,f,{once:!0})}has(n){n=n.toLowerCase();const r=this.bindings[n];return!(!r||r.length===0)}}const XS=e=>(e._eventDispatcher||(e._eventDispatcher=new KS({scope:e,toggleEvent:(n,r)=>{KS.isNative(n)&&e.toggleNativeEvent&&e.toggleNativeEvent(n,r)}})),e._eventDispatcher),l6={fire(e,n,r){return this.dispatch(e,n,r)},dispatch(e,n,r){const f=this;if(f.removed&&e!=="remove"&&e!=="detach")return Qp(e.toLowerCase(),n??{},f);const w=XS(f).dispatch(e,n);if(r!==!1&&f.parent){let B=f.parent();for(;B&&!w.isPropagationStopped();)B.dispatch(e,w,!1),B=B.parent?B.parent():void 0}return w},on(e,n,r){return XS(this).on(e,n,r)},off(e,n){return XS(this).off(e,n)},once(e,n){return XS(this).once(e,n)},hasEventListeners(e){return XS(this).has(e)}},jM=Cs.DOM;let ky;const YM=(e,n)=>{if(n==="selectionchange")return e.getDoc();if(!e.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(n))return e.getDoc().documentElement;const r=$m(e);return r?(e.eventRoot||(e.eventRoot=jM.select(r)[0]),e.eventRoot):e.getBody()},tJ=e=>!e.hidden&&!Ty(e),hF=(e,n,r)=>{tJ(e)?e.dispatch(n,r):Ty(e)&&eJ(e,r)},mF=(e,n)=>{if(e.delegates||(e.delegates={}),e.delegates[n]||e.removed)return;const r=YM(e,n);if($m(e)){if(ky||(ky={},e.editorManager.on("removeEditor",()=>{e.editorManager.activeEditor||ky&&(Ft(ky,(w,B)=>{e.dom.unbind(YM(e,B))}),ky=null)})),ky[n])return;const f=w=>{const B=w.target,Z=e.editorManager.get();let oe=Z.length;for(;oe--;){const be=Z[oe].getBody();(be===B||jM.isChildOf(B,be))&&hF(Z[oe],n,w)}};ky[n]=f,jM.bind(r,n,f)}else{const f=w=>{hF(e,n,w)};jM.bind(r,n,f),e.delegates[n]=f}},Ay={...l6,bindPendingEventDelegates(){const e=this;ur.each(e._pendingNativeEvents,n=>{mF(e,n)})},toggleNativeEvent(e,n){const r=this;e==="focus"||e==="blur"||r.removed||(n?r.initialized?mF(r,e):r._pendingNativeEvents?r._pendingNativeEvents.push(e):r._pendingNativeEvents=[e]:r.initialized&&r.delegates&&(r.dom.unbind(YM(r,e),e,r.delegates[e]),delete r.delegates[e]))},unbindAllNativeEvents(){const e=this,n=e.getBody(),r=e.dom;e.delegates&&(Ft(e.delegates,(f,w)=>{e.dom.unbind(YM(e,w),w,f)}),delete e.delegates),!e.inline&&n&&r&&(n.onload=null,r.unbind(e.getWin()),r.unbind(e.getDoc())),r&&(r.unbind(n),r.unbind(e.getContainer()))}},qh=e=>C(e)?{value:e.split(/[ ,]/),valid:!0}:H(e,C)?{value:e,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},nJ=e=>{const n=(()=>{switch(e){case"array":return S;case"boolean":return D;case"function":return R;case"number":return F;case"object":return _;case"string":return C;case"string[]":return qh;case"object[]":return r=>H(r,_);case"regexp":return r=>x(r,RegExp);default:return fe}})();return r=>c6(r,n,`The value must be a ${e}.`)},rJ=e=>C(e.processor),gF=(e,n)=>{const r=kt(n.message)?"":`. ${n.message}`;return e+r},pF=e=>e.valid,c6=(e,n,r="")=>{const f=n(e);return D(f)?f?{value:e,valid:!0}:{valid:!1,message:r}:f},oJ=(e,n,r)=>{if(!N(n)){const f=c6(n,r);if(pF(f))return f.value;console.error(gF(`Invalid default value passed for the "${e}" option`,f))}},aJ=(e,n)=>{const r={},f={},w=(Je,at,Rt)=>{const Ht=c6(at,Rt);return pF(Ht)?(f[Je]=Ht.value,!0):(console.warn(gF(`Invalid value passed for the ${Je} option`,Ht)),!1)},B=(Je,at)=>{const Rt=rJ(at)?nJ(at.processor):at.processor,Ht=oJ(Je,at.default,Rt);r[Je]={...at,default:Ht,processor:Rt},wn(f,Je).orThunk(()=>wn(n,Je)).each(It=>w(Je,It,Rt))},Z=Je=>lt(r,Je);return{register:B,isRegistered:Z,get:Je=>wn(f,Je).orThunk(()=>wn(r,Je).map(at=>at.default)).getOrUndefined(),set:(Je,at)=>{if(Z(Je)){const Rt=r[Je];return Rt.immutable?(console.error(`"${Je}" is an immutable option and cannot be updated`),!1):w(Je,at,Rt.processor)}else return console.warn(`"${Je}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:Je=>{const at=Z(Je);return at&&delete f[Je],at},isSet:Je=>lt(f,Je)}},sJ=["design","readonly"],vF=(e,n,r,f)=>{const w=r[n.get()],B=r[f];try{B.activate()}catch(Z){console.error(`problem while activating editor mode ${f}:`,Z);return}w.deactivate(),w.editorReadOnly!==B.editorReadOnly&&XX(e,B.editorReadOnly),n.set(f),hC(e,f)},ute=(e,n,r,f)=>{if(f!==r.get()){if(!lt(n,f))throw new Error(`Editor mode '${f}' is invalid`);e.initialized?vF(e,r,n,f):e.on("init",()=>vF(e,r,n,f))}},iJ=(e,n,r)=>{if(Ve(sJ,n))throw new Error(`Cannot override default mode ${n}`);return{...e,[n]:{...r,deactivate:()=>{try{r.deactivate()}catch(f){console.error(`problem while deactivating editor mode ${n}:`,f)}}}}},lJ=e=>{const n=Us("design"),r=Us({design:{activate:j,deactivate:j,editorReadOnly:!1},readonly:{activate:j,deactivate:j,editorReadOnly:!0}});return s6(e),i6(e),{isReadOnly:()=>Ty(e),set:f=>ute(e,r.get(),n,f),get:()=>n.get(),register:(f,w)=>{r.set(iJ(r.get(),f,w))}}},u6=ur.each,f6=ur.explode,cJ={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},yF=ur.makeMap("alt,ctrl,shift,meta,access"),fte=e=>e in yF,uJ=e=>{const n={},r=Lr.os.isMacOS()||Lr.os.isiOS();u6(f6(e.toLowerCase(),"+"),B=>{fte(B)?n[B]=!0:/^[0-9]{2,}$/.test(B)?n.keyCode=parseInt(B,10):(n.charCode=B.charCodeAt(0),n.keyCode=cJ[B]||B.toUpperCase().charCodeAt(0))});const f=[n.keyCode];let w;for(w in yF)n[w]?f.push(w):n[w]=!1;return n.id=f.join(","),n.access&&(n.alt=!0,r?n.ctrl=!0:n.shift=!0),n.meta&&(r?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n};class bF{constructor(n){this.shortcuts={},this.pendingPatterns=[],this.editor=n;const r=this;n.on("keyup keypress keydown",f=>{(r.hasModifier(f)||r.isFunctionKey(f))&&!f.isDefaultPrevented()&&(u6(r.shortcuts,w=>{r.matchShortcut(f,w)&&(r.pendingPatterns=w.subpatterns.slice(0),f.type==="keydown"&&r.executeShortcutAction(w))}),r.matchShortcut(f,r.pendingPatterns[0])&&(r.pendingPatterns.length===1&&f.type==="keydown"&&r.executeShortcutAction(r.pendingPatterns[0]),r.pendingPatterns.shift()))})}add(n,r,f,w){const B=this,Z=B.normalizeCommandFunc(f);return u6(f6(ur.trim(n)),oe=>{const be=B.createShortcut(oe,r,Z,w);B.shortcuts[be.id]=be}),!0}remove(n){const r=this.createShortcut(n);return this.shortcuts[r.id]?(delete this.shortcuts[r.id],!0):!1}normalizeCommandFunc(n){const r=this,f=n;return typeof f=="string"?()=>{r.editor.execCommand(f,!1,null)}:ur.isArray(f)?()=>{r.editor.execCommand(f[0],f[1],f[2])}:f}createShortcut(n,r,f,w){const B=ur.map(f6(n,">"),uJ);return B[B.length-1]=ur.extend(B[B.length-1],{func:f,scope:w||this.editor}),ur.extend(B[0],{desc:this.editor.translate(r),subpatterns:B.slice(1)})}hasModifier(n){return n.altKey||n.ctrlKey||n.metaKey}isFunctionKey(n){return n.type==="keydown"&&n.keyCode>=112&&n.keyCode<=123}matchShortcut(n,r){return!r||r.ctrl!==n.ctrlKey||r.meta!==n.metaKey||r.alt!==n.altKey||r.shift!==n.shiftKey?!1:n.keyCode===r.keyCode||n.charCode&&n.charCode===r.charCode?(n.preventDefault(),!0):!1}executeShortcutAction(n){return n.func?n.func.call(n.scope):null}}const fJ=()=>{const e={},n={},r={},f={},w={},B={},Z={},oe={},be=(Ke,Je)=>(at,Rt)=>{Ke[at.toLowerCase()]={...Rt,type:Je}},Pe=(Ke,Je)=>f[Ke.toLowerCase()]=Je;return{addButton:be(e,"button"),addGroupToolbarButton:be(e,"grouptoolbarbutton"),addToggleButton:be(e,"togglebutton"),addMenuButton:be(e,"menubutton"),addSplitButton:be(e,"splitbutton"),addMenuItem:be(n,"menuitem"),addNestedMenuItem:be(n,"nestedmenuitem"),addToggleMenuItem:be(n,"togglemenuitem"),addAutocompleter:be(r,"autocompleter"),addContextMenu:be(w,"contextmenu"),addContextToolbar:be(B,"contexttoolbar"),addContextForm:be(B,"contextform"),addSidebar:be(Z,"sidebar"),addView:be(oe,"views"),addIcon:Pe,getAll:()=>({buttons:e,menuItems:n,icons:f,popups:r,contextMenus:w,contextToolbars:B,sidebars:Z,views:oe})}},dJ=()=>{const e=fJ();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,addView:e.addView,getAll:e.getAll}},My=Cs.DOM,xF=ur.extend,hJ=ur.each;class KM{constructor(n,r,f){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=f,this.documentBaseUrl=f.documentBaseURL,xF(this,Ay);const w=this;this.id=n,this.hidden=!1;const B=TX(f.defaultOptions,r);this.options=aJ(w,B),aT(w);const Z=this.options.get;Z("deprecation_warnings")&&Aee(r,B);const oe=Z("suffix");oe&&(f.suffix=oe),this.suffix=f.suffix;const be=Z("base_url");be&&f._setBaseUrl(be),this.baseUri=f.baseURI;const Pe=ia(w);Pe&&(Ni.ScriptLoader._setReferrerPolicy(Pe),Cs.DOM.styleSheetLoader._setReferrerPolicy(Pe));const Ke=vv(w);k(Ke)&&Cs.DOM.styleSheetLoader._setContentCssCors(Ke),rc.languageLoad=Z("language_load"),rc.baseURL=f.baseURL,this.setDirty(!1),this.documentBaseURI=new cd(Cw(w),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=Dw(w),this.hasVisual=k4(w),this.shortcuts=new bF(this),this.editorCommands=new bp(this),GX(this);const Je=Z("cache_suffix");Je&&(Lr.cacheSuffix=Je.replace(/^[\?\&]+/,"")),this.ui={registry:dJ(),styleSheetLoader:void 0,show:j,hide:j,setEnabled:j,isEnabled:fe},this.mode=lJ(w),f.dispatch("SetupEditor",{editor:this});const at=$w(w);R(at)&&at.call(w,w)}render(){c2(this)}focus(n){this.execCommand("mceFocus",!1,n)}hasFocus(){return Vv(this)}translate(n){return Cf.translate(n)}getParam(n,r,f){const w=this.options;return w.isRegistered(n)||(k(f)?w.register(n,{processor:f,default:r}):w.register(n,{processor:fe,default:r})),!w.isSet(n)&&!N(r)?r:w.get(n)}hasPlugin(n,r){return Ve(C1(this),n)?r?uy.get(n)!==void 0:!0:!1}nodeChanged(n){this._nodeChangeDispatcher.nodeChanged(n)}addCommand(n,r,f){this.editorCommands.addCommand(n,r,f)}addQueryStateHandler(n,r,f){this.editorCommands.addQueryStateHandler(n,r,f)}addQueryValueHandler(n,r,f){this.editorCommands.addQueryValueHandler(n,r,f)}addShortcut(n,r,f,w){this.shortcuts.add(n,r,f,w)}execCommand(n,r,f,w){return this.editorCommands.execCommand(n,r,f,w)}queryCommandState(n){return this.editorCommands.queryCommandState(n)}queryCommandValue(n){return this.editorCommands.queryCommandValue(n)}queryCommandSupported(n){return this.editorCommands.queryCommandSupported(n)}show(){const n=this;n.hidden&&(n.hidden=!1,n.inline?n.getBody().contentEditable="true":(My.show(n.getContainer()),My.hide(n.id)),n.load(),n.dispatch("show"))}hide(){const n=this;n.hidden||(n.save(),n.inline?(n.getBody().contentEditable="false",n===n.editorManager.focusedEditor&&(n.editorManager.focusedEditor=null)):(My.hide(n.getContainer()),My.setStyle(n.id,"display",n.orgDisplay)),n.hidden=!0,n.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(n,r){this.dispatch("ProgressState",{state:n,time:r})}load(n={}){const r=this,f=r.getElement();if(r.removed)return"";if(f){const w={...n,load:!0},B=Vp(f)?f.value:f.innerHTML,Z=r.setContent(B,w);return w.no_events||r.dispatch("LoadContent",{...w,element:f}),Z}else return""}save(n={}){const r=this;let f=r.getElement();if(!f||!r.initialized||r.removed)return"";const w={...n,save:!0,element:f};let B=r.getContent(w);const Z={...w,content:B};if(Z.no_events||r.dispatch("SaveContent",Z),Z.format==="raw"&&r.dispatch("RawSaveContent",Z),B=Z.content,Vp(f))f.value=B;else{(n.is_removing||!r.inline)&&(f.innerHTML=B);const oe=My.getParent(r.id,"form");oe&&hJ(oe.elements,be=>be.name===r.id?(be.value=B,!1):!0)}return Z.element=w.element=f=null,Z.set_dirty!==!1&&r.setDirty(!1),B}setContent(n,r){return ER(this,n,r)}getContent(n){return kO(this,n)}insertContent(n,r){r&&(n=xF({content:n},r)),this.execCommand("mceInsertContent",!1,n)}resetContent(n){n===void 0?ER(this,this.startContent,{format:"raw"}):ER(this,n),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(n){const r=!this.isNotDirty;this.isNotDirty=!n,n&&n!==r&&this.dispatch("dirty")}getContainer(){const n=this;return n.container||(n.container=n.editorContainer||My.get(n.id+"_parent")),n.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=My.get(this.id)),this.targetElm}getWin(){const n=this;if(!n.contentWindow){const r=n.iframeElement;r&&(n.contentWindow=r.contentWindow)}return n.contentWindow}getDoc(){const n=this;if(!n.contentDocument){const r=n.getWin();r&&(n.contentDocument=r.document)}return n.contentDocument}getBody(){var n,r;const f=this.getDoc();return(r=(n=this.bodyElement)!==null&&n!==void 0?n:f==null?void 0:f.body)!==null&&r!==void 0?r:null}convertURL(n,r,f){const w=this,B=w.options.get,Z=_4(w);if(R(Z))return Z.call(w,n,f,!0,r);if(!B("convert_urls")||f==="link"||_(f)&&f.nodeName==="LINK"||n.indexOf("file:")===0||n.length===0)return n;const oe=new cd(n);return oe.protocol!=="http"&&oe.protocol!=="https"&&oe.protocol!==""?n:B("relative_urls")?w.documentBaseURI.toRelative(n):(n=w.documentBaseURI.toAbsolute(n,B("remove_script_host")),n)}addVisual(n){kX(this,n)}setEditableRoot(n){KN(this,n)}hasEditableRoot(){return gX(this)}remove(){nW(this)}destroy(n){rW(this,n)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const u2=Cs.DOM,XM=ur.each;let wF=!1,JM,Pu=[];const QM=e=>{const n=e.type;XM(m0.get(),r=>{switch(n){case"scroll":r.dispatch("ScrollWindow",e);break;case"resize":r.dispatch("ResizeWindow",e);break}})},CF=e=>{if(e!==wF){const n=Cs.DOM;e?(n.bind(window,"resize",QM),n.bind(window,"scroll",QM)):(n.unbind(window,"resize",QM),n.unbind(window,"scroll",QM)),wF=e}},SF=e=>{const n=Pu;return Pu=ue(Pu,r=>e!==r),m0.activeEditor===e&&(m0.activeEditor=Pu.length>0?Pu[0]:null),m0.focusedEditor===e&&(m0.focusedEditor=null),n.length!==Pu.length},TF=e=>{e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(SF(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0)},mJ=document.compatMode!=="CSS1Compat",m0={...l6,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"6",minorVersion:"8.0",releaseDate:"2023-11-22",i18n:Cf,activeEditor:null,focusedEditor:null,setup(){const e=this;let n="",r="",f=cd.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(f)&&(f=f.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(f)||(f+="/"));const w=window.tinymce||window.tinyMCEPreInit;if(w)n=w.base||w.baseURL,r=w.suffix;else{const B=document.getElementsByTagName("script");for(let Z=0;Z{rc.PluginManager.urls[B]=w})},init(e){const n=this;let r;const f=ur.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),w=(Ke,Je)=>Ke.inline&&Je.tagName.toLowerCase()in f,B=Ke=>{let Je=Ke.id;return Je||(Je=wn(Ke,"name").filter(at=>!u2.get(at)).getOrThunk(u2.uniqueId),Ke.setAttribute("id",Je)),Je},Z=Ke=>{const Je=e[Ke];if(Je)return Je.apply(n,[])},oe=Ke=>Lr.browser.isIE()||Lr.browser.isEdge()?(cS("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/6/support/#supportedwebbrowsers"),[]):mJ?(cS("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):C(Ke.selector)?u2.select(Ke.selector):k(Ke.target)?[Ke.target]:[];let be=Ke=>{r=Ke};const Pe=()=>{let Ke=0;const Je=[];let at;const Rt=(Ht,At,It)=>{const ln=new KM(Ht,At,n);Je.push(ln),ln.on("init",()=>{++Ke===at.length&&be(Je)}),ln.targetElm=ln.targetElm||It,ln.render()};u2.unbind(window,"ready",Pe),Z("onpageload"),at=Gt(oe(e)),ur.each(at,Ht=>{TF(n.get(Ht.id))}),at=ur.grep(at,Ht=>!n.get(Ht.id)),at.length===0?be([]):XM(at,Ht=>{w(e,Ht)?cS("Could not initialize inline editor on invalid inline target element",Ht):Rt(B(Ht),e,Ht)})};return u2.bind(window,"ready",Pe),new Promise(Ke=>{r?Ke(r):be=Je=>{Ke(Je)}})},get(e){return arguments.length===0?Pu.slice(0):C(e)?de(Pu,n=>n.id===e).getOr(null):F(e)&&Pu[e]?Pu[e]:null},add(e){const n=this,r=n.get(e.id);return r===e||(r===null&&Pu.push(e),CF(!0),n.activeEditor=e,n.dispatch("AddEditor",{editor:e}),JM||(JM=f=>{const w=n.dispatch("BeforeUnload");if(w.returnValue)return f.preventDefault(),f.returnValue=w.returnValue,w.returnValue},window.addEventListener("beforeunload",JM))),e},createEditor(e,n){return this.add(new KM(e,n,this))},remove(e){const n=this;let r;if(!e){for(let f=Pu.length-1;f>=0;f--)n.remove(Pu[f]);return}if(C(e)){XM(u2.select(e),f=>{r=n.get(f.id),r&&n.remove(r)});return}return r=e,O(n.get(r.id))?null:(SF(r)&&n.dispatch("RemoveEditor",{editor:r}),Pu.length===0&&window.removeEventListener("beforeunload",JM),r.remove(),CF(Pu.length>0),r)},execCommand(e,n,r){var f;const w=this,B=_(r)?(f=r.id)!==null&&f!==void 0?f:r.index:r;switch(e){case"mceAddEditor":{if(!w.get(B)){const Z=r.options;new KM(B,Z,w).render()}return!0}case"mceRemoveEditor":{const Z=w.get(B);return Z&&Z.remove(),!0}case"mceToggleEditor":{const Z=w.get(B);return Z?(Z.isHidden()?Z.show():Z.hide(),!0):(w.execCommand("mceAddEditor",!1,r),!0)}}return w.activeEditor?w.activeEditor.execCommand(e,n,r):!1},triggerSave:()=>{XM(Pu,e=>{e.save()})},addI18n:(e,n)=>{Cf.add(e,n)},translate:e=>Cf.translate(e),setActive(e){const n=this.activeEditor;this.activeEditor!==e&&(n&&n.dispatch("deactivate",{relatedTarget:e}),e.dispatch("activate",{relatedTarget:n})),this.activeEditor=e},_setBaseUrl(e){this.baseURL=new cd(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new cd(this.baseURL)}};m0.setup();const gJ=(()=>{const e=Em(),n=B=>({items:B,types:Yt(B),getType:Z=>wn(B,Z).getOrUndefined()}),r=B=>{e.set(B)},f=()=>e.get().getOrUndefined(),w=e.clear;return{FakeClipboardItem:n,write:r,read:f,clear:w}})(),kF=Math.min,f2=Math.max,qM=Math.round,AF=(e,n,r)=>{let f=n.x,w=n.y;const B=e.w,Z=e.h,oe=n.w,be=n.h,Pe=(r||"").split("");return Pe[0]==="b"&&(w+=be),Pe[1]==="r"&&(f+=oe),Pe[0]==="c"&&(w+=qM(be/2)),Pe[1]==="c"&&(f+=qM(oe/2)),Pe[3]==="b"&&(w-=Z),Pe[4]==="r"&&(f-=B),Pe[3]==="c"&&(w-=qM(Z/2)),Pe[4]==="c"&&(f-=qM(B/2)),d2(f,w,B,Z)},MF=(e,n,r,f)=>{for(let w=0;w=r.x&&B.x+B.w<=r.w+r.x&&B.y>=r.y&&B.y+B.h<=r.h+r.y)return f[w]}return null},pJ=(e,n,r)=>d2(e.x-n,e.y-r,e.w+n*2,e.h+r*2),vJ=(e,n)=>{const r=f2(e.x,n.x),f=f2(e.y,n.y),w=kF(e.x+e.w,n.x+n.w),B=kF(e.y+e.h,n.y+n.h);return w-r<0||B-f<0?null:d2(r,f,w-r,B-f)},yJ=(e,n,r)=>{let f=e.x,w=e.y,B=e.x+e.w,Z=e.y+e.h;const oe=n.x+n.w,be=n.y+n.h,Pe=f2(0,n.x-f),Ke=f2(0,n.y-w),Je=f2(0,B-oe),at=f2(0,Z-be);return f+=Pe,w+=Ke,r&&(B+=Pe,Z+=Ke,f-=Je,w-=at),B-=Je,Z-=at,d2(f,w,B-f,Z-w)},d2=(e,n,r,f)=>({x:e,y:n,w:r,h:f}),bJ={inflate:pJ,relativePosition:AF,findBestRelativePosition:MF,intersect:vJ,clamp:yJ,create:d2,fromClientRect:e=>d2(e.left,e.top,e.width,e.height)},xJ=(e,n,r=1e3)=>{let f=!1,w=null;const B=Pe=>(...Ke)=>{f||(f=!0,w!==null&&(clearTimeout(w),w=null),Pe.apply(null,Ke))},Z=B(e),oe=B(n);return{start:(...Pe)=>{!f&&w===null&&(w=setTimeout(()=>oe.apply(null,Pe),r))},resolve:Z,reject:oe}},EF=(()=>{const e={},n={},r={};return{load:(be,Pe)=>{const Ke=`Script at URL "${Pe}" failed to load`,Je=`Script at URL "${Pe}" did not call \`tinymce.Resource.add('${be}', data)\` within 1 second`;if(e[be]!==void 0)return e[be];{const at=new Promise((Rt,Ht)=>{const At=xJ(Rt,Ht);n[be]=At.resolve,Ni.ScriptLoader.loadScript(Pe).then(()=>At.start(Je),()=>At.reject(Ke))});return e[be]=at,at}},add:(be,Pe)=>{n[be]!==void 0&&(n[be](Pe),delete n[be]),e[be]=Promise.resolve(Pe),r[be]=Pe},has:be=>be in r,get:be=>r[be],unload:be=>{delete e[be]}}})(),gte=()=>(()=>{let e={},n=[];const r={getItem:f=>{const w=e[f];return w||null},setItem:(f,w)=>{n.push(f),e[f]=String(w)},key:f=>n[f],removeItem:f=>{n=n.filter(w=>w===f),delete e[f]},clear:()=>{n=[],e={}},length:0};return Object.defineProperty(r,"length",{get:()=>n.length,configurable:!1,enumerable:!1}),r})();let h2;try{const e="__storage_test__";h2=window.localStorage,h2.setItem(e,e),h2.removeItem(e)}catch{h2=gte()}var wJ=h2;const _F={geom:{Rect:bJ},util:{Delay:Ef,Tools:ur,VK:Wr,URI:cd,EventDispatcher:KS,Observable:l6,I18n:Cf,LocalStorage:wJ,ImageUploader:$R},dom:{EventUtils:eu,TreeWalker:es,TextSeeker:_m,DOMUtils:Cs,ScriptLoader:Ni,RangeUtils:xt,Serializer:SO,StyleSheetLoader:U2,ControlSelection:g$,BookmarkManager:rp,Selection:Xv,Event:eu.Event},html:{Styles:hb,Entities:km,Node:Hc,Schema:_h,DomParser:Yd,Writer:H$,Serializer:Uv},Env:Lr,AddOnManager:rc,Annotator:uC,Formatter:dy,UndoManager:uS,EditorCommands:bp,WindowManager:$O,NotificationManager:LR,EditorObservable:Ay,Shortcuts:bF,Editor:KM,FocusManager:x$,EditorManager:m0,DOM:Cs.DOM,ScriptLoader:Ni.ScriptLoader,PluginManager:uy,ThemeManager:gp,ModelManager:fd,IconManager:sS,Resource:EF,FakeClipboard:gJ,trim:ur.trim,isArray:ur.isArray,is:ur.is,toArray:ur.toArray,makeMap:ur.makeMap,each:ur.each,map:ur.map,grep:ur.grep,inArray:ur.inArray,extend:ur.extend,walk:ur.walk,resolve:ur.resolve,explode:ur.explode,_addCacheSuffix:ur._addCacheSuffix},RF=ur.extend(m0,_F),CJ=e=>{try{o.exports=e}catch{}};(e=>{window.tinymce=e,window.tinyMCE=e})(RF),CJ(RF)})()})(yve);(function(){var o=tinymce.util.Tools.resolve("tinymce.ModelManager");const b=(I,W,te)=>{var me;return te(I,W.prototype)?!0:((me=I.constructor)===null||me===void 0?void 0:me.name)===W.name},y=I=>{const W=typeof I;return I===null?"null":W==="object"&&Array.isArray(I)?"array":W==="object"&&b(I,String,(te,me)=>me.isPrototypeOf(te))?"string":W},T=I=>W=>y(W)===I,G=I=>W=>typeof W===I,V=I=>W=>I===W,L=T("string"),A=T("object"),s=T("array"),m=V(null),h=G("boolean"),l=V(void 0),c=I=>I==null,i=I=>!c(I),u=G("function"),d=G("number"),g=()=>{},v=(I,W)=>(...te)=>I(W.apply(null,te)),x=(I,W)=>te=>I(W(te)),C=I=>()=>I,_=I=>I,$=(I,W)=>I===W;function S(I,...W){return(...te)=>{const me=W.concat(te);return I.apply(null,me)}}const O=I=>W=>!I(W),D=I=>()=>{throw new Error(I)},N=I=>I(),M=C(!1),k=C(!0);class R{constructor(W,te){this.tag=W,this.value=te}static some(W){return new R(!0,W)}static none(){return R.singletonNone}fold(W,te){return this.tag?te(this.value):W()}isSome(){return this.tag}isNone(){return!this.tag}map(W){return this.tag?R.some(W(this.value)):R.none()}bind(W){return this.tag?W(this.value):R.none()}exists(W){return this.tag&&W(this.value)}forall(W){return!this.tag||W(this.value)}filter(W){return!this.tag||W(this.value)?this:R.none()}getOr(W){return this.tag?this.value:W}or(W){return this.tag?this:W}getOrThunk(W){return this.tag?this.value:W()}orThunk(W){return this.tag?this:W()}getOrDie(W){if(this.tag)return this.value;throw new Error(W??"Called getOrDie on None")}static from(W){return i(W)?R.some(W):R.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(W){this.tag&&W(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}R.singletonNone=new R(!1);const F=Array.prototype.slice,H=Array.prototype.indexOf,j=Array.prototype.push,P=(I,W)=>H.call(I,W),ee=(I,W)=>P(I,W)>-1,J=(I,W)=>{for(let te=0,me=I.length;te{const te=[];for(let me=0;me{const te=I.length,me=new Array(te);for(let Le=0;Le{for(let te=0,me=I.length;te{for(let te=I.length-1;te>=0;te--){const me=I[te];W(me,te)}},ge=(I,W)=>{const te=[],me=[];for(let Le=0,Ue=I.length;Le{const te=[];for(let me=0,Le=I.length;me(he(I,(me,Le)=>{te=W(te,me,Le)}),te),ne=(I,W,te)=>(Q(I,(me,Le)=>{te=W(te,me,Le)}),te),fe=(I,W,te)=>{for(let me=0,Le=I.length;mefe(I,W,M),ye=(I,W)=>{for(let te=0,me=I.length;te{const W=[];for(let te=0,me=I.length;teCe(ae(I,W)),ke=(I,W)=>{for(let te=0,me=I.length;te{const W=F.call(I,0);return W.reverse(),W},Ve=(I,W)=>{const te={};for(let me=0,Le=I.length;me{const te=F.call(I,0);return te.sort(W),te},Fe=(I,W)=>W>=0&&WFe(I,0),we=I=>Fe(I,I.length-1),se=(I,W)=>{for(let te=0;te{const te=ue(I);for(let me=0,Le=te.length;mede(I,(te,me)=>({k:me,v:W(te,me)})),de=(I,W)=>{const te={};return le(I,(me,Le)=>{const Ue=W(me,Le);te[Ue.k]=Ue.v}),te},Me=I=>(W,te)=>{I[te]=W},Re=(I,W,te,me)=>{le(I,(Le,Ue)=>{(W(Le,Ue)?te:me)(Le,Ue)})},ze=(I,W)=>{const te={};return Re(I,W,Me(te),g),te},We=(I,W)=>{const te=[];return le(I,(me,Le)=>{te.push(W(me,Le))}),te},ot=I=>We(I,_),dt=(I,W)=>Ge(I,W)?R.from(I[W]):R.none(),Ge=(I,W)=>pe.call(I,W),Xe=(I,W)=>Ge(I,W)&&I[W]!==void 0&&I[W]!==null,qe=I=>{for(const W in I)if(pe.call(I,W))return!1;return!0},gt=typeof window<"u"?window:Function("return this;")(),ut=(I,W)=>{let te=W??gt;for(let me=0;me{const te=I.split(".");return ut(te,W)},Ct=(I,W)=>tt(I,W),Gt=(I,W)=>{const te=Ct(I,W);if(te==null)throw new Error(I+" not available on this browser");return te},Yt=Object.getPrototypeOf,Nt=I=>Gt("HTMLElement",I),Ft=I=>{const W=tt("ownerDocument.defaultView",I);return A(I)&&(Nt(W).prototype.isPrototypeOf(I)||/^HTML\w*Element$/.test(Yt(I).constructor.name))},pn=8,_n=9,sn=11,Zn=1,an=3,Cn=I=>I.dom.nodeName.toLowerCase(),jn=I=>I.dom.nodeType,Wn=I=>W=>jn(W)===I,wn=I=>jn(I)===pn||Cn(I)==="#comment",lt=I=>ft(I)&&Ft(I.dom),ft=Wn(Zn),wt=Wn(an),vt=Wn(_n),$t=Wn(sn),Ze=I=>W=>ft(W)&&Cn(W)===I,it=(I,W,te)=>{if(L(te)||h(te)||d(te))I.setAttribute(W,te+"");else throw console.error("Invalid call to Attribute.set. Key ",W,":: Value ",te,":: Element ",I),new Error("Attribute value was not simple")},ht=(I,W,te)=>{it(I.dom,W,te)},pt=(I,W)=>{const te=I.dom;le(W,(me,Le)=>{it(te,Le,me)})},Tt=(I,W)=>{le(W,(te,me)=>{te.fold(()=>{tn(I,me)},Le=>{it(I.dom,me,Le)})})},Et=(I,W)=>{const te=I.dom.getAttribute(W);return te===null?void 0:te},fn=(I,W)=>R.from(Et(I,W)),tn=(I,W)=>{I.dom.removeAttribute(W)},Zt=I=>ne(I.dom.attributes,(W,te)=>(W[te.name]=te.value,W),{}),Dt=(I,W)=>{const me=(W||document).createElement("div");if(me.innerHTML=I,!me.hasChildNodes()||me.childNodes.length>1){const Le="HTML does not have a single root node";throw console.error(Le,I),new Error(Le)}return tr(me.childNodes[0])},un=(I,W)=>{const me=(W||document).createElement(I);return tr(me)},Un=(I,W)=>{const me=(W||document).createTextNode(I);return tr(me)},tr=I=>{if(I==null)throw new Error("Node cannot be null or undefined");return{dom:I}},zt={fromHtml:Dt,fromTag:un,fromText:Un,fromDom:tr,fromPoint:(I,W,te)=>R.from(I.dom.elementFromPoint(W,te)).map(tr)},pr=(I,W)=>{const te=I.dom;if(te.nodeType!==Zn)return!1;{const me=te;if(me.matches!==void 0)return me.matches(W);if(me.msMatchesSelector!==void 0)return me.msMatchesSelector(W);if(me.webkitMatchesSelector!==void 0)return me.webkitMatchesSelector(W);if(me.mozMatchesSelector!==void 0)return me.mozMatchesSelector(W);throw new Error("Browser lacks native selectors")}},Gn=I=>I.nodeType!==Zn&&I.nodeType!==_n&&I.nodeType!==sn||I.childElementCount===0,Ir=(I,W)=>{const te=W===void 0?document:W.dom;return Gn(te)?[]:ae(te.querySelectorAll(I),zt.fromDom)},Tr=(I,W)=>{const te=W===void 0?document:W.dom;return Gn(te)?R.none():R.from(te.querySelector(I)).map(zt.fromDom)},rr=(I,W)=>I.dom===W.dom,Yr=(I,W)=>{const te=I.dom,me=W.dom;return te===me?!1:te.contains(me)},_r=pr,Ln=I=>zt.fromDom(I.dom.ownerDocument),xr=I=>vt(I)?I:Ln(I),or=I=>zt.fromDom(xr(I).dom.documentElement),wr=I=>zt.fromDom(xr(I).dom.defaultView),ro=I=>R.from(I.dom.parentNode).map(zt.fromDom),vo=I=>R.from(I.dom.parentElement).map(zt.fromDom),Cr=(I,W)=>{const te=u(W)?W:M;let me=I.dom;const Le=[];for(;me.parentNode!==null&&me.parentNode!==void 0;){const Ue=me.parentNode,nt=zt.fromDom(Ue);if(Le.push(nt),te(nt)===!0)break;me=Ue}return Le},He=I=>R.from(I.dom.previousSibling).map(zt.fromDom),De=I=>R.from(I.dom.nextSibling).map(zt.fromDom),St=I=>ae(I.dom.childNodes,zt.fromDom),kt=(I,W)=>{const te=I.dom.childNodes;return R.from(te[W]).map(zt.fromDom)},Pt=I=>kt(I,0),Bt=(I,W)=>{ro(I).each(me=>{me.dom.insertBefore(W.dom,I.dom)})},Ut=(I,W)=>{De(I).fold(()=>{ro(I).each(Le=>{_t(Le,W)})},me=>{Bt(me,W)})},Ot=(I,W)=>{Pt(I).fold(()=>{_t(I,W)},me=>{I.dom.insertBefore(W.dom,me.dom)})},_t=(I,W)=>{I.dom.appendChild(W.dom)},qt=(I,W,te)=>{kt(I,te).fold(()=>{_t(I,W)},me=>{Bt(me,W)})},cn=(I,W)=>{Bt(I,W),_t(W,I)},Qt=(I,W)=>{Q(W,(te,me)=>{const Le=me===0?I:W[me-1];Ut(Le,te)})},nn=(I,W)=>{Q(W,te=>{_t(I,te)})},Sn=I=>{I.dom.textContent="",Q(St(I),W=>{bn(W)})},bn=I=>{const W=I.dom;W.parentNode!==null&&W.parentNode.removeChild(W)},gn=I=>{const W=St(I);W.length>0&&Qt(I,W),bn(I)},Qn=(I,W)=>zt.fromDom(I.dom.cloneNode(W)),Bn=I=>Qn(I,!1),Hr=I=>Qn(I,!0),fr=(I,W)=>{const te=zt.fromTag(W),me=Zt(I);return pt(te,me),te},Vr=(I,W)=>{const te=fr(I,W),me=St(Hr(I));return nn(te,me),te},ar=(I,W)=>{const te=fr(I,W);Ut(I,te);const me=St(I);return nn(te,me),bn(I),te},cr=["tfoot","thead","tbody","colgroup"],Kr=I=>ee(cr,I),qr=(I,W)=>({rows:I,columns:W}),So=(I,W)=>({row:I,column:W}),wa=(I,W,te)=>({element:I,rowspan:W,colspan:te}),bo=(I,W,te,me)=>({element:I,rowspan:W,colspan:te,isNew:me}),Zo=(I,W,te,me,Le,Ue)=>({element:I,rowspan:W,colspan:te,row:me,column:Le,isLocked:Ue}),oa=(I,W,te)=>({element:I,cells:W,section:te}),Va=(I,W,te,me)=>({element:I,cells:W,section:te,isNew:me}),Yo=(I,W,te)=>({element:I,isNew:W,isLocked:te}),Fa=(I,W,te,me)=>({element:I,cells:W,section:te,isNew:me}),Os=(I,W,te,me)=>({startRow:I,startCol:W,finishRow:te,finishCol:me}),Zl=(I,W,te)=>({element:I,colspan:W,column:te}),Ys=(I,W)=>({element:I,columns:W}),Ec=I=>$t(I)&&i(I.dom.host),ks=u(Element.prototype.attachShadow)&&u(Node.prototype.getRootNode),Wa=C(ks),ss=ks?I=>zt.fromDom(I.dom.getRootNode()):xr,Ya=I=>{const W=ss(I);return Ec(W)?R.some(W):R.none()},_c=I=>zt.fromDom(I.dom.host),Lr=I=>{if(Wa()&&i(I.target)){const W=zt.fromDom(I.target);if(ft(W)&&jl(W)&&I.composed&&I.composedPath){const te=I.composedPath();if(te)return ie(te)}}return R.from(I.target)},jl=I=>i(I.dom.shadowRoot),Ka=I=>{const W=wt(I)?I.dom.parentNode:I.dom;if(W==null||W.ownerDocument===null)return!1;const te=W.ownerDocument;return Ya(zt.fromDom(W)).fold(()=>te.body.contains(W),x(Ka,_c))},yi=()=>Hf(zt.fromDom(document)),Hf=I=>{const W=I.dom.body;if(W==null)throw new Error("Body is not available yet");return zt.fromDom(W)},Xa=(I,W,te)=>Se(Cr(I,te),W),Zc=(I,W)=>Se(St(I),W),zf=(I,W)=>{let te=[];return Q(St(I),me=>{W(me)&&(te=te.concat([me])),te=te.concat(zf(me,W))}),te},jc=(I,W,te)=>Xa(I,me=>pr(me,W),te),To=(I,W)=>Zc(I,te=>pr(te,W)),Mi=(I,W)=>Ir(W,I);var ur=(I,W,te,me,Le)=>I(te,me)?R.some(te):u(Le)&&Le(te)?R.none():W(te,me,Le);const Ms=(I,W,te)=>{let me=I.dom;const Le=u(te)?te:M;for(;me.parentNode;){me=me.parentNode;const Ue=zt.fromDom(me);if(W(Ue))return R.some(Ue);if(Le(Ue))break}return R.none()},li=(I,W,te)=>ur((Le,Ue)=>Ue(Le),Ms,I,W,te),Rs=(I,W)=>{const te=Le=>W(zt.fromDom(Le));return X(I.dom.childNodes,te).map(zt.fromDom)},Es=(I,W)=>{const te=me=>{for(let Le=0;LeMs(I,me=>pr(me,W),te),Bo=(I,W)=>Rs(I,te=>pr(te,W)),Ks=(I,W)=>Tr(W,I),Bs=(I,W,te)=>ur((Le,Ue)=>pr(Le,Ue),qi,I,W,te),df=(I,W,te=$)=>I.exists(me=>te(me,W)),Ls=I=>{const W=[],te=me=>{W.push(me)};for(let me=0;meI!=null?W(I):R.none(),uu=(I,W)=>I?R.some(W):R.none(),Vf=(I,W,te)=>W===""||I.length>=W.length&&I.substr(te,te+W.length)===W,Ma=(I,W,te=0,me)=>{const Le=I.indexOf(W,te);return Le!==-1?l(me)?!0:Le+W.length<=me:!1},Uf=(I,W)=>Vf(I,W,0),gc=(I,W)=>Vf(I,W,I.length-W.length),wd=(I=>W=>W.replace(I,""))(/^\s+|\s+$/g),dh=I=>I.length>0,La=I=>{const W=parseFloat(I);return isNaN(W)?R.none():R.some(W)},ci=I=>I.style!==void 0&&u(I.style.getPropertyValue),Wu=(I,W,te)=>{if(!L(te))throw console.error("Invalid call to CSS.set. Property ",W,":: Value ",te,":: Element ",I),new Error("CSS value must be a string: "+te);ci(I)&&I.style.setProperty(W,te)},P2=(I,W)=>{ci(I)&&I.style.removeProperty(W)},Ps=(I,W,te)=>{const me=I.dom;Wu(me,W,te)},sl=(I,W)=>{const te=I.dom;le(W,(me,Le)=>{Wu(te,Le,me)})},Ei=(I,W)=>{const te=I.dom,Le=window.getComputedStyle(te).getPropertyValue(W);return Le===""&&!Ka(I)?Zy(te,W):Le},Zy=(I,W)=>ci(I)?I.style.getPropertyValue(W):"",Ag=(I,W)=>{const te=I.dom,me=Zy(te,W);return R.from(me).filter(Le=>Le.length>0)},Yc=(I,W)=>{const te=I.dom;P2(te,W),df(fn(I,"style").map(wd),"")&&tn(I,"style")},fu=(I,W)=>{const te=I.dom,me=W.dom;ci(te)&&ci(me)&&(me.style.cssText=te.style.cssText)},ws=(I,W,te=0)=>fn(I,W).map(me=>parseInt(me,10)).getOr(te),Kc=(I,W)=>ws(I,W,1),il=I=>Ze("col")(I)?ws(I,"span",1)>1:Kc(I,"colspan")>1,Yl=I=>Kc(I,"rowspan")>1,Gu=(I,W)=>parseInt(Ei(I,W),10),Xs=C(10),Zu=C(10),Mg=(I,W)=>Eg(I,W,k),Eg=(I,W,te)=>$e(St(I),me=>pr(me,W)?te(me)?[me]:[]:Eg(me,W,te)),D0=(I,W,te=M)=>{if(te(W))return R.none();if(ee(I,Cn(W)))return R.some(W);const me=Le=>pr(Le,"table")||te(Le);return qi(W,I.join(","),me)},Dp=(I,W)=>D0(["td","th"],I,W),ju=I=>Mg(I,"th,td"),_g=I=>pr(I,"colgroup")?To(I,"col"):$e($0(I),W=>To(W,"col")),Kl=(I,W)=>Bs(I,"table",W),$p=I=>Mg(I,"tr"),$0=I=>Kl(I).fold(C([]),W=>To(W,"colgroup")),hh=(I,W)=>ae(I,te=>{if(Cn(te)==="colgroup"){const me=ae(_g(te),Le=>{const Ue=ws(Le,"span",1);return wa(Le,1,Ue)});return oa(te,me,"colgroup")}else{const me=ae(ju(te),Le=>{const Ue=ws(Le,"rowspan",1),nt=ws(Le,"colspan",1);return wa(Le,Ue,nt)});return oa(te,me,W(te))}}),O0=I=>ro(I).map(W=>{const te=Cn(W);return Kr(te)?te:"tbody"}).getOr("tbody"),mh=I=>{const W=$p(I),me=[...$0(I),...W];return hh(me,O0)},jy=(I,W)=>hh(I,()=>W),Cd=I=>{let W=!1,te;return(...me)=>(W||(W=!0,te=I.apply(null,me)),te)},Yy=(I,W,te,me)=>{const Le=I.isiOS()&&/ipad/i.test(te)===!0,Ue=I.isiOS()&&!Le,nt=I.isiOS()||I.isAndroid(),xt=nt||me("(pointer:coarse)"),Lt=Le||!Ue&&nt&&me("(min-device-width:768px)"),Jt=Ue||nt&&!Lt,Tn=W.isSafari()&&I.isiOS()&&/safari/i.test(te)===!1,sr=!Jt&&!Lt&&!Tn;return{isiPad:C(Le),isiPhone:C(Ue),isTablet:C(Lt),isPhone:C(Jt),isTouch:C(xt),isAndroid:I.isAndroid,isiOS:I.isiOS,isWebView:C(Tn),isDesktop:C(sr)}},Ky=(I,W)=>{for(let te=0;te{const te=Ky(I,W);if(!te)return{major:0,minor:0};const me=Le=>Number(W.replace(te,"$"+Le));return jt(me(1),me(2))},gh=(I,W)=>{const te=String(W).toLowerCase();return I.length===0?P0():Xy(I,te)},P0=()=>jt(0,0),jt=(I,W)=>({major:I,minor:W}),ph={nu:jt,detect:gh,unknown:P0},du=(I,W)=>se(W.brands,te=>{const me=te.brand.toLowerCase();return X(I,Le=>{var Ue;return me===((Ue=Le.brand)===null||Ue===void 0?void 0:Ue.toLowerCase())}).map(Le=>({current:Le.name,version:ph.nu(parseInt(te.version,10),0)}))}),Op=(I,W)=>{const te=String(W).toLowerCase();return X(I,me=>me.search(te))},Rg=(I,W)=>Op(I,W).map(te=>{const me=ph.detect(te.versionRegexes,W);return{current:te.name,version:me}}),I2=(I,W)=>Op(I,W).map(te=>{const me=ph.detect(te.versionRegexes,W);return{current:te.name,version:me}}),Ba=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Dl=I=>W=>Ma(W,I),hf=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:I=>Ma(I,"edge/")&&Ma(I,"chrome")&&Ma(I,"safari")&&Ma(I,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ba],search:I=>Ma(I,"chrome")&&!Ma(I,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:I=>Ma(I,"msie")||Ma(I,"trident")},{name:"Opera",versionRegexes:[Ba,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Dl("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Dl("firefox")},{name:"Safari",versionRegexes:[Ba,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:I=>(Ma(I,"safari")||Ma(I,"mobile/"))&&Ma(I,"applewebkit")}],mf=[{name:"Windows",search:Dl("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:I=>Ma(I,"iphone")||Ma(I,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Dl("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Dl("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Dl("linux"),versionRegexes:[]},{name:"Solaris",search:Dl("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Dl("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Dl("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],I0={browsers:C(hf),oses:C(mf)},mm="Edge",Rc="Chromium",gm="IE",N0="Opera",Jy="Firefox",hu="Safari",Lg=()=>F0({current:void 0,version:ph.unknown()}),F0=I=>{const W=I.current,te=I.version,me=Le=>()=>W===Le;return{current:W,version:te,isEdge:me(mm),isChromium:me(Rc),isIE:me(gm),isOpera:me(N0),isFirefox:me(Jy),isSafari:me(hu)}},pc={unknown:Lg,nu:F0,edge:C(mm),chromium:C(Rc),ie:C(gm),opera:C(N0),firefox:C(Jy),safari:C(hu)},zi="Windows",Sd="iOS",pm="Android",Xl="Linux",ll="macOS",mu="Solaris",Qy="FreeBSD",Dg="ChromeOS",B0=()=>Pp({current:void 0,version:ph.unknown()}),Pp=I=>{const W=I.current,te=I.version,me=Le=>()=>W===Le;return{current:W,version:te,isWindows:me(zi),isiOS:me(Sd),isAndroid:me(pm),isMacOS:me(ll),isLinux:me(Xl),isSolaris:me(mu),isFreeBSD:me(Qy),isChromeOS:me(Dg)}},Yu={unknown:B0,nu:Pp,windows:C(zi),ios:C(Sd),android:C(pm),linux:C(Xl),macos:C(ll),solaris:C(mu),freebsd:C(Qy),chromeos:C(Dg)},_3={detect:(I,W,te)=>{const me=I0.browsers(),Le=I0.oses(),Ue=W.bind(Lt=>du(me,Lt)).orThunk(()=>Rg(me,I)).fold(pc.unknown,pc.nu),nt=I2(Le,I).fold(Yu.unknown,Yu.nu),xt=Yy(nt,Ue,I,te);return{browser:Ue,os:nt,deviceType:xt}}},R3=I=>window.matchMedia(I).matches;let N2=Cd(()=>_3.detect(navigator.userAgent,R.from(navigator.userAgentData),R3));const $g=()=>N2(),Ip=(I,W)=>{const te=(xt,Lt)=>{if(!d(Lt)&&!Lt.match(/^[0-9]+$/))throw new Error(I+".set accepts only positive integer values. Value was "+Lt);const Jt=xt.dom;ci(Jt)&&(Jt.style[I]=Lt+"px")},me=xt=>{const Lt=W(xt);if(Lt<=0||Lt===null){const Jt=Ei(xt,I);return parseFloat(Jt)||0}return Lt},Le=me,Ue=(xt,Lt)=>ne(Lt,(Jt,Tn)=>{const sr=Ei(xt,Tn),Dr=sr===void 0?0:parseInt(sr,10);return isNaN(Dr)?Jt:Jt+Dr},0);return{set:te,get:me,getOuter:Le,aggregate:Ue,max:(xt,Lt,Jt)=>{const Tn=Ue(xt,Jt);return Lt>Tn?Lt-Tn:0}}},Td=(I,W)=>La(I).getOr(W),Hs=(I,W,te)=>Td(Ei(I,W),te),Js=(I,W,te,me)=>{const Le=Hs(I,`padding-${te}`,0),Ue=Hs(I,`padding-${me}`,0),nt=Hs(I,`border-${te}-width`,0),xt=Hs(I,`border-${me}-width`,0);return W-Le-Ue-nt-xt},Xc=(I,W)=>{const te=I.dom,me=te.getBoundingClientRect().width||te.offsetWidth;return W==="border-box"?me:Js(I,me,"left","right")},H0=I=>Hs(I,"height",I.dom.offsetHeight),eb=I=>Hs(I,"width",I.dom.offsetWidth),bl=I=>Xc(I,"content-box"),vm=Ip("width",I=>I.dom.offsetWidth),Jl=I=>vm.get(I),Ku=I=>vm.getOuter(I),z0=bl,Wo=eb,vc=(I,W,te)=>{const me=I.cells,Le=me.slice(0,W),Ue=me.slice(W),nt=Le.concat(te).concat(Ue);return V0(I,nt)},kd=(I,W,te)=>vc(I,W,[te]),vh=(I,W,te)=>{const me=I.cells;me[W]=te},V0=(I,W)=>Fa(I.element,W,I.section,I.isNew),U0=(I,W)=>{const te=I.cells,me=ae(te,W);return Fa(I.element,me,I.section,I.isNew)},$l=(I,W)=>I.cells[W],ui=(I,W)=>$l(I,W).element,Lc=I=>I.cells.length,_i=I=>{const W=ge(I,te=>te.section==="colgroup");return{rows:W.fail,cols:W.pass}},W0=(I,W,te)=>{const me=ae(I.cells,te);return Fa(W(I.element),me,I.section,!0)},Np="data-snooker-locked-cols",fi=I=>fn(I,Np).bind(W=>R.from(W.match(/\d+/g))).map(W=>Ve(W,k)),Ri=I=>{const W=ne(_i(I).rows,(me,Le)=>(Q(Le.cells,(Ue,nt)=>{Ue.isLocked&&(me[nt]=!0)}),me),{}),te=We(W,(me,Le)=>parseInt(Le,10));return Oe(te)},gu=(I,W)=>I+","+W,yh=(I,W,te)=>R.from(I.access[gu(W,te)]),di=(I,W,te)=>{const me=ym(I,Le=>te(W,Le.element));return me.length>0?R.some(me[0]):R.none()},ym=(I,W)=>{const te=$e(I.all,me=>me.cells);return Se(te,W)},Og=I=>{const W={};let te=0;return Q(I.cells,me=>{const Le=me.colspan;K(Le,Ue=>{const nt=te+Ue;W[nt]=Zl(me.element,Le,nt)}),te+=Le}),W},hs=I=>{const W={},te=[],Le=ie(I).map(Rr=>Rr.element).bind(Kl).bind(fi).getOr({});let Ue=0,nt=0,xt=0;const{pass:Lt,fail:Jt}=ge(I,Rr=>Rr.section==="colgroup");Q(Jt,Rr=>{const Jn=[];Q(Rr.cells,Or=>{let Kn=0;for(;W[gu(xt,Kn)]!==void 0;)Kn++;const oo=Xe(Le,Kn.toString()),Ro=Zo(Or.element,Or.rowspan,Or.colspan,xt,Kn,oo);for(let Qo=0;Qo{const Jn=Og(Rr);return{colgroups:[Ys(Rr.element,ot(Jn))],columns:Jn}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:qr(Ue,nt),access:W,all:te,columns:Tn,colgroups:sr}},aa={fromTable:I=>{const W=mh(I);return hs(W)},generate:hs,getAt:yh,findItem:di,filterItems:ym,justCells:I=>$e(I.all,W=>W.cells),justColumns:I=>ot(I.columns),hasColumns:I=>ue(I.columns).length>0,getColumnAt:(I,W)=>R.from(I.columns[W])},bh=(I,W=k)=>{const te=I.grid,me=K(te.columns,_),Le=K(te.rows,_);return ae(me,Ue=>Fp(()=>$e(Le,Jt=>aa.getAt(I,Jt,Ue).filter(Tn=>Tn.column===Ue).toArray()),Jt=>Jt.colspan===1&&W(Jt.element),()=>aa.getAt(I,0,Ue)))},Fp=(I,W,te)=>{const me=I();return X(me,W).orThunk(()=>R.from(me[0]).orThunk(te)).map(nt=>nt.element)},Ig=I=>{const W=I.grid,te=K(W.rows,_),me=K(W.columns,_);return ae(te,Le=>Fp(()=>$e(me,Lt=>aa.getAt(I,Le,Lt).filter(Jt=>Jt.row===Le).fold(C([]),Jt=>[Jt])),Lt=>Lt.rowspan===1,()=>aa.getAt(I,Le,0)))},F2=(I,W)=>{if(W<0||W>=I.length-1)return R.none();const te=I[W].fold(()=>{const Le=Ne(I.slice(0,W));return se(Le,(Ue,nt)=>Ue.map(xt=>({value:xt,delta:nt+1})))},Le=>R.some({value:Le,delta:0})),me=I[W+1].fold(()=>{const Le=I.slice(W+1);return se(Le,(Ue,nt)=>Ue.map(xt=>({value:xt,delta:nt+1})))},Le=>R.some({value:Le,delta:1}));return te.bind(Le=>me.map(Ue=>{const nt=Ue.delta+Le.delta;return Math.abs(Ue.value-Le.value)/nt}))},B2=(I,W)=>te=>Z0(te)==="rtl"?W:I,Z0=I=>Ei(I,"direction")==="rtl"?"rtl":"ltr",xh=Ip("height",I=>{const W=I.dom;return Ka(I)?W.getBoundingClientRect().height:W.offsetHeight}),Bp=I=>xh.get(I),wh=I=>xh.getOuter(I),bm=H0,tb=(I,W)=>({left:I,top:W,translate:(me,Le)=>tb(I+me,W+Le)}),pu=tb,nb=I=>{const W=I.getBoundingClientRect();return pu(W.left,W.top)},Ch=(I,W)=>I!==void 0?I:W!==void 0?W:0,Jc=I=>{const W=I.dom.ownerDocument,te=W.body,me=W.defaultView,Le=W.documentElement;if(te===I.dom)return pu(te.offsetLeft,te.offsetTop);const Ue=Ch(me==null?void 0:me.pageYOffset,Le.scrollTop),nt=Ch(me==null?void 0:me.pageXOffset,Le.scrollLeft),xt=Ch(Le.clientTop,te.clientTop),Lt=Ch(Le.clientLeft,te.clientLeft);return Hp(I).translate(nt-Lt,Ue-xt)},Hp=I=>{const W=I.dom,me=W.ownerDocument.body;return me===W?pu(me.offsetLeft,me.offsetTop):Ka(I)?nb(W):pu(0,0)},j0=(I,W)=>({row:I,y:W}),xm=(I,W)=>({col:I,x:W}),Y0=I=>Jc(I).left+Ku(I),K0=I=>Jc(I).left,X0=(I,W)=>xm(I,K0(W)),zp=(I,W)=>xm(I,Y0(W)),Vi=I=>Jc(I).top,Ng=(I,W)=>j0(I,Vi(W)),es=(I,W)=>j0(I,Vi(W)+wh(W)),io=(I,W,te)=>{if(te.length===0)return[];const me=ae(te.slice(1),(Ue,nt)=>Ue.map(xt=>I(nt,xt))),Le=te[te.length-1].map(Ue=>W(te.length-1,Ue));return me.concat([Le])},vu=I=>-I,Gr={delta:_,positions:I=>io(Ng,es,I),edge:Vi},Wf=B2({delta:_,edge:K0,positions:I=>io(X0,zp,I)},{delta:vu,edge:Y0,positions:I=>io(zp,X0,I)}),oi={delta:(I,W)=>Wf(W).delta(I,W),positions:(I,W)=>Wf(W).positions(I,W),edge:I=>Wf(I).edge(I)},Gf={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Fg=(()=>{const I="[0-9]+",te="[eE]"+("[+-]?"+I),me="\\.",Le=xt=>`(?:${xt})?`,nt=`[+-]?(?:${["Infinity",I+me+Le(I)+Le(te),me+I+Le(te),I+Le(te)].join("|")})`;return new RegExp(`^(${nt})(.*)$`)})(),Ui=(I,W)=>J(W,te=>J(Gf[te],me=>I===me)),Ju=(I,W)=>R.from(Fg.exec(I)).bind(me=>{const Le=Number(me[1]),Ue=me[2];return Ui(Ue,W)?R.some({value:Le,unit:Ue}):R.none()}),Sh=/(\d+(\.\d+)?)%/,yu=/(\d+(\.\d+)?)px|em/,J0=Ze("col"),Vp=(I,W,te)=>{const me=vo(I).getOrThunk(()=>Hf(Ln(I)));return W(I)/te(me)*100},ir=(I,W)=>{Ps(I,"width",W+"px")},rb=(I,W)=>{Ps(I,"width",W+"%")},cl=(I,W)=>{Ps(I,"height",W+"px")},gf=I=>bm(I)+"px",wm=(I,W,te,me)=>{const Le=Kl(I).map(Ue=>{const nt=te(Ue);return Math.floor(W/100*nt)}).getOr(W);return me(I,Le),Le},ns=(I,W,te,me)=>{const Le=parseFloat(I);return gc(I,"%")&&Cn(W)!=="table"?wm(W,Le,te,me):Le},Ja=I=>{const W=gf(I);return W?ns(W,I,Bp,cl):Bp(I)},ul=(I,W,te)=>{const me=te(I),Le=Kc(I,W);return me/Le},wl=(I,W)=>Ag(I,W).orThunk(()=>fn(I,W).map(te=>te+"px")),fa=I=>wl(I,"width"),Bg=I=>wl(I,"height"),Wi=I=>Vp(I,Jl,z0),zs=I=>J0(I)?Jl(I):Wo(I),Hg=I=>ul(I,"rowspan",Ja),qn=I=>fa(I).bind(te=>Ju(te,["fixed","relative","empty"])),yc=(I,W,te)=>{Ps(I,"width",W+te)},Cm=I=>Jl(I)+"px",Da=I=>Vp(I,Jl,z0)+"%",Qu=I=>fa(I).exists(W=>Sh.test(W)),z2=I=>fa(I).exists(W=>yu.test(W)),bu=I=>fa(I).isNone(),Up=C(Sh),Dc=Ze("col"),Wp=I=>fa(I).getOrThunk(()=>zs(I)+"px"),Ol=I=>Bg(I).getOrThunk(()=>Hg(I)+"px"),Ia=I=>ae(aa.justColumns(I),W=>R.from(W.element)),$c=I=>{const W=$g().browser,te=W.isChromium()||W.isFirefox();return Dc(I)?te:!0},Qs=(I,W,te,me,Le,Ue)=>I.filter(me).fold(()=>Ue(F2(te,W)),nt=>Le(nt)),Gi=(I,W,te,me)=>{const Le=bh(I),Ue=aa.hasColumns(I)?Ia(I):Le,nt=[R.some(oi.edge(W))].concat(ae(oi.positions(Le,W),Lt=>Lt.map(Jt=>Jt.x))),xt=O(il);return ae(Ue,(Lt,Jt)=>Qs(Lt,Jt,nt,xt,Tn=>{if($c(Tn))return te(Tn);{const sr=cu(Le[Jt],_);return Qs(sr,Jt,nt,xt,Dr=>me(R.some(Jl(Dr))),me)}},me))},Zf=I=>I.map(W=>W+"px").getOr(""),pf=(I,W)=>Gi(I,W,Wp,Zf),jf=(I,W,te)=>Gi(I,W,Wi,me=>me.fold(()=>te.minCellWidth(),Le=>Le/te.pixelWidth()*100)),Ql=(I,W,te)=>Gi(I,W,zs,me=>me.getOrThunk(te.minCellWidth)),vf=(I,W,te,me,Le)=>{const Ue=Ig(I),nt=[R.some(te.edge(W))].concat(ae(te.positions(Ue,W),xt=>xt.map(Lt=>Lt.y)));return ae(Ue,(xt,Lt)=>Qs(xt,Lt,nt,O(Yl),me,Le))},En=(I,W,te)=>vf(I,W,te,Hg,me=>me.getOrThunk(Zu)),ql=(I,W,te)=>vf(I,W,te,Ol,Zf),yf=(I,W)=>()=>Ka(I)?W(I):parseFloat(Ag(I,"width").getOr("0")),bf=I=>{const W=yf(I,Jl),te=C(0);return{width:W,pixelWidth:W,getWidths:(Le,Ue)=>Ql(Le,I,Ue),getCellDelta:te,singleColumnWidth:C([0]),minCellWidth:te,setElementWidth:g,adjustTableWidth:g,isRelative:!0,label:"none"}},bc=I=>{const W=yf(I,Lt=>parseFloat(Da(Lt))),te=yf(I,Jl);return{width:W,pixelWidth:te,getWidths:(Lt,Jt)=>jf(Lt,I,Jt),getCellDelta:Lt=>Lt/te()*100,singleColumnWidth:(Lt,Jt)=>[100-Lt],minCellWidth:()=>Xs()/te()*100,setElementWidth:rb,adjustTableWidth:Lt=>{const Jt=W(),Tn=Lt/100*Jt,sr=Jt+Tn;rb(I,sr)},isRelative:!0,label:"percent"}},Li=I=>{const W=yf(I,Jl);return{width:W,pixelWidth:W,getWidths:(nt,xt)=>Ql(nt,I,xt),getCellDelta:_,singleColumnWidth:(nt,xt)=>[Math.max(Xs(),nt+xt)-nt],minCellWidth:Xs,setElementWidth:ir,adjustTableWidth:nt=>{const xt=W()+nt;ir(I,xt)},isRelative:!1,label:"pixel"}},bi=(I,W)=>Up().exec(W)!==null?bc(I):Li(I),ec={getTableSize:I=>fa(I).fold(()=>bf(I),te=>bi(I,te)),pixelSize:Li,percentageSize:bc,noneSize:bf},U=(I,W,te,me,Le,Ue)=>({minRow:I,minCol:W,maxRow:te,maxCol:me,allCells:Le,selectedCells:Ue}),q=(I,W)=>{const te=I.grid.columns;let Le=I.grid.rows,Ue=te,nt=0,xt=0;const Lt=[],Jt=[];return le(I.access,Tn=>{if(Lt.push(Tn),W(Tn)){Jt.push(Tn);const sr=Tn.row,Dr=sr+Tn.rowspan-1,Rr=Tn.column,Jn=Rr+Tn.colspan-1;srnt&&(nt=Dr),Rrxt&&(xt=Jn)}}),U(Le,Ue,nt,xt,Lt,Jt)},ve=(I,W,te)=>{const me=I[te].element,Le=zt.fromTag("td");_t(Le,zt.fromTag("br")),(W?_t:Ot)(me,Le)},Ae=(I,W,te,me)=>{const Le=Se(I,xt=>xt.section!=="colgroup"),Ue=W.grid.columns,nt=W.grid.rows;for(let xt=0;xtte.maxRow||Jtte.maxCol||(aa.getAt(W,xt,Jt).filter(me).isNone()?ve(Le,Lt,xt):Lt=!0)}},_e=(I,W,te,me)=>{le(te.columns,nt=>{(nt.columnW.maxCol)&&bn(nt.element)});const Le=Se(Mg(I,"tr"),nt=>nt.dom.childElementCount===0);Q(Le,bn),(W.minCol===W.maxCol||W.minRow===W.maxRow)&&Q(Mg(I,"th,td"),nt=>{tn(nt,"rowspan"),tn(nt,"colspan")}),tn(I,Np),tn(I,"data-snooker-col-series"),ec.getTableSize(I).adjustTableWidth(me)},Ie=(I,W,te,me)=>{if(me.minCol===0&&W.grid.columns===me.maxCol+1)return 0;const Le=Ql(W,I,te),Ue=ne(Le,(Jt,Tn)=>Jt+Tn,0),Lt=ne(Le.slice(me.minCol,me.maxCol+1),(Jt,Tn)=>Jt+Tn,0)/Ue*te.pixelWidth()-te.pixelWidth();return te.getCellDelta(Lt)},Qe=(I,W)=>{const te=Dr=>pr(Dr.element,W),me=Hr(I),Le=mh(me),Ue=ec.getTableSize(I),nt=aa.generate(Le),xt=q(nt,te),Lt="th:not("+W+"),td:not("+W+")",Jt=Eg(me,"th,td",Dr=>pr(Dr,Lt));Q(Jt,bn),Ae(Le,nt,xt,te);const Tn=aa.fromTable(I),sr=Ie(I,Tn,Ue,xt);return _e(me,xt,nt,sr),me},Ye=" ",yt=((I,W)=>{const te=Ue=>{if(!I(Ue))throw new Error("Can only get "+W+" value of a "+W+" node");return me(Ue).getOr("")},me=Ue=>I(Ue)?R.from(Ue.dom.nodeValue):R.none();return{get:te,getOption:me,set:(Ue,nt)=>{if(!I(Ue))throw new Error("Can only set raw "+W+" value of a "+W+" node");Ue.dom.nodeValue=nt}}})(wt,"text"),bt=I=>yt.get(I),Vt=I=>yt.getOption(I),Wt=(I,W)=>yt.set(I,W),mn=I=>Cn(I)==="img"?1:Vt(I).fold(()=>St(I).length,W=>W.length),An=I=>Vt(I).filter(W=>W.trim().length!==0||W.indexOf(Ye)>-1).isSome(),Kt=I=>lt(I)&&Et(I,"contenteditable")==="false",en=["img","br"],dn=I=>An(I)||ee(en,Cn(I))||Kt(I),Rn=I=>Es(I,dn),Mn=I=>vn(I,dn),vn=(I,W)=>{const te=me=>{const Le=St(me);for(let Ue=Le.length-1;Ue>=0;Ue--){const nt=Le[Ue];if(W(nt))return R.some(nt);const xt=te(nt);if(xt.isSome())return xt}return R.none()};return te(I)},lr={scope:["row","col"]},zr=I=>()=>{const W=zt.fromTag("td",I.dom);return _t(W,zt.fromTag("br",I.dom)),W},Jr=I=>()=>zt.fromTag("col",I.dom),kr=I=>()=>zt.fromTag("colgroup",I.dom),eo=I=>()=>zt.fromTag("tr",I.dom),lo=(I,W,te)=>{const me=Vr(I,W);return le(te,(Le,Ue)=>{Le===null?tn(me,Ue):ht(me,Ue,Le)}),me},Ko=I=>I,yo=(I,W,te)=>Rn(I).map(Le=>{const Ue=te.join(","),nt=jc(Le,Ue,xt=>rr(xt,I));return ce(nt,(xt,Lt)=>{const Jt=Bn(Lt);return _t(xt,Jt),Jt},W)}).getOr(W),fo=(I,W)=>{le(lr,(te,me)=>fn(I,me).filter(Le=>ee(te,Le)).each(Le=>ht(W,me,Le)))},Ha=(I,W,te)=>{const me=(nt,xt)=>{fu(nt.element,xt),Yc(xt,"height"),nt.colspan!==1&&Yc(xt,"width")},Le=nt=>{const xt=zt.fromTag(Cn(nt.element),W.dom),Lt=te.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),Jt=Lt.length>0?yo(nt.element,xt,Lt):xt;return _t(Jt,zt.fromTag("br")),me(nt,xt),fo(nt.element,xt),I(nt.element,xt),xt};return{col:nt=>{const xt=zt.fromTag(Cn(nt.element),W.dom);return me(nt,xt),I(nt.element,xt),xt},colgroup:kr(W),row:eo(W),cell:Le,replace:lo,colGap:Jr(W),gap:zr(W)}},Vs=I=>({col:Jr(I),colgroup:kr(I),row:eo(I),cell:zr(I),replace:Ko,colGap:Jr(I),gap:zr(I)}),is=(I,W)=>{const me=(W||document).createElement("div");return me.innerHTML=I,St(zt.fromDom(me))},$r=I=>ae(I,zt.fromDom),_o=I=>W=>W.options.get(I),sa="100%",Ca=I=>{var W;const te=I.dom,me=(W=te.getParent(I.selection.getStart(),te.isBlock))!==null&&W!==void 0?W:I.getBody();return z0(zt.fromDom(me))+"px"},As=(I,W)=>wi(I)||!Ci(I)?W:Sl(I)?{...W,width:Ca(I)}:{...W,width:sa},qs=(I,W)=>wi(I)||Ci(I)?W:Sl(I)?{...W,width:Ca(I)}:{...W,width:sa},Di=I=>{const W=I.options.register;W("table_clone_elements",{processor:"string[]"}),W("table_use_colgroups",{processor:"boolean",default:!0}),W("table_header_type",{processor:te=>{const me=ee(["section","cells","sectionCells","auto"],te);return me?{value:te,valid:me}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),W("table_sizing_mode",{processor:"string",default:"auto"}),W("table_default_attributes",{processor:"object",default:{border:"1"}}),W("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),W("table_column_resizing",{processor:te=>{const me=ee(["preservetable","resizetable"],te);return me?{value:te,valid:me}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),W("table_resize_bars",{processor:"boolean",default:!0}),W("table_style_by_css",{processor:"boolean",default:!0}),W("table_merge_content_on_paste",{processor:"boolean",default:!0})},xi=I=>R.from(I.options.get("table_clone_elements")),xc=I=>{const W=I.options.get("object_resizing");return ee(W.split(","),"table")},Ii=_o("table_header_type"),tc=_o("table_column_resizing"),Cl=I=>tc(I)==="preservetable",Ga=I=>tc(I)==="resizetable",xu=_o("table_sizing_mode"),qu=I=>xu(I)==="relative",Sl=I=>xu(I)==="fixed",wi=I=>xu(I)==="responsive",Tl=_o("table_resize_bars"),Ci=_o("table_style_by_css"),Za=_o("table_merge_content_on_paste"),nc=I=>{const W=I.options,te=W.get("table_default_attributes");return W.isSet("table_default_attributes")?te:qs(I,te)},Yf=I=>{const W=I.options,te=W.get("table_default_styles");return W.isSet("table_default_styles")?te:As(I,te)},wu=_o("table_use_colgroups"),Th=I=>Bs(I,"[contenteditable]"),Kf=(I,W=!1)=>Ka(I)?I.dom.isContentEditable:Th(I).fold(C(W),te=>Q0(te)==="true"),Q0=I=>I.dom.contentEditable,ob=I=>zt.fromDom(I.getBody()),Md=I=>W=>rr(W,ob(I)),Xf=I=>{tn(I,"data-mce-style");const W=te=>tn(te,"data-mce-style");Q(ju(I),W),Q(_g(I),W),Q($p(I),W)},Cu=I=>zt.fromDom(I.selection.getStart()),Sm=I=>I.getBoundingClientRect().width,Tm=I=>I.getBoundingClientRect().height,D3=(I,W)=>{const te=I.dom.getStyle(W,"width")||I.dom.getAttrib(W,"width");return R.from(te).filter(dh)},ab=I=>/^(\d+(\.\d+)?)%$/.test(I),q0=I=>/^(\d+(\.\d+)?)px$/.test(I),sb=I=>li(I,Ze("table")).exists(Kf),$3=(I,W)=>{const te=W.column,me=W.column+W.colspan-1,Le=W.row,Ue=W.row+W.rowspan-1;return te<=I.finishCol&&me>=I.startCol&&Le<=I.finishRow&&Ue>=I.startRow},ib=(I,W)=>W.column>=I.startCol&&W.column+W.colspan-1<=I.finishCol&&W.row>=I.startRow&&W.row+W.rowspan-1<=I.finishRow,e1=(I,W)=>{let te=!0;const me=S(ib,W);for(let Le=W.startRow;Le<=W.finishRow;Le++)for(let Ue=W.startCol;Ue<=W.finishCol;Ue++)te=te&&aa.getAt(I,Le,Ue).exists(me);return te?R.some(W):R.none()},t1=(I,W)=>Os(Math.min(I.row,W.row),Math.min(I.column,W.column),Math.max(I.row+I.rowspan-1,W.row+W.rowspan-1),Math.max(I.column+I.colspan-1,W.column+W.colspan-1)),pa=(I,W,te)=>{const me=aa.findItem(I,W,rr),Le=aa.findItem(I,te,rr);return me.bind(Ue=>Le.map(nt=>t1(Ue,nt)))},go=(I,W,te)=>pa(I,W,te).bind(me=>e1(I,me)),kh=(I,W,te,me)=>aa.findItem(I,W,rr).bind(Le=>{const Ue=te>0?Le.row+Le.rowspan-1:Le.row,nt=me>0?Le.column+Le.colspan-1:Le.column;return aa.getAt(I,Ue+te,nt+me).map(Lt=>Lt.element)}),lb=(I,W,te)=>pa(I,W,te).map(me=>{const Le=aa.filterItems(I,S($3,me));return ae(Le,Ue=>Ue.element)}),n1=(I,W)=>{const te=(me,Le)=>Yr(Le,me);return aa.findItem(I,W,te).map(me=>me.element)},BE=(I,W,te)=>Kl(I).bind(me=>{const Le=W2(me);return kh(Le,I,W,te)}),V2=(I,W,te)=>{const me=W2(I);return lb(me,W,te)},bs=(I,W,te,me,Le)=>{const Ue=W2(I),nt=rr(I,te)?R.some(W):n1(Ue,W),xt=rr(I,Le)?R.some(me):n1(Ue,me);return nt.bind(Lt=>xt.bind(Jt=>lb(Ue,Lt,Jt)))},U2=(I,W,te)=>{const me=W2(I);return go(me,W,te)},W2=aa.fromTable;var G2=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],Xn=()=>{const I=Jt=>zt.fromDom(Jt.dom.cloneNode(!1)),W=Jt=>xr(Jt).dom,te=Jt=>ft(Jt)?Cn(Jt)==="body"?!0:ee(G2,Cn(Jt)):!1,me=Jt=>ft(Jt)?ee(["br","img","hr","input"],Cn(Jt)):!1,Le=Jt=>ft(Jt)&&Et(Jt,"contenteditable")==="false",Ue=(Jt,Tn)=>Jt.dom.compareDocumentPosition(Tn.dom),nt=(Jt,Tn)=>{const sr=Zt(Jt);pt(Tn,sr)},xt=Jt=>{const Tn=Cn(Jt);return ee(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],Tn)},Lt=Jt=>ft(Jt)?fn(Jt,"lang"):R.none();return{up:C({selector:qi,closest:Bs,predicate:Ms,all:Cr}),down:C({selector:Mi,predicate:zf}),styles:C({get:Ei,getRaw:Ag,set:Ps,remove:Yc}),attrs:C({get:Et,set:ht,remove:tn,copyTo:nt}),insert:C({before:Bt,after:Ut,afterAll:Qt,append:_t,appendAll:nn,prepend:Ot,wrap:cn}),remove:C({unwrap:gn,remove:bn}),create:C({nu:zt.fromTag,clone:I,text:zt.fromText}),query:C({comparePosition:Ue,prevSibling:He,nextSibling:De}),property:C({children:St,name:Cn,parent:ro,document:W,isText:wt,isComment:wn,isElement:ft,isSpecial:xt,getLanguage:Lt,getText:bt,setText:Wt,isBoundary:te,isEmptyTag:me,isNonEditable:Le}),eq:rr,is:_r}};const cb=(I,W,te,me)=>{const Le=te[0],Ue=te.slice(1);return me(I,W,Le,Ue)},HE=(I,W,te)=>te.length>0?cb(I,W,te,r1):R.none(),r1=(I,W,te,me)=>{const Le=W(I,te);return ce(me,(Ue,nt)=>{const xt=W(I,nt);return zE(I,Ue,xt)},Le)},zE=(I,W,te)=>W.bind(me=>te.filter(S(I.eq,me))),Gp=(I,W)=>S(I.eq,W),Z2=(I,W,te,me=M)=>{const Le=[W].concat(I.up().all(W)),Ue=[te].concat(I.up().all(te)),nt=Tn=>ye(Tn,me).fold(()=>Tn,Dr=>Tn.slice(0,Dr+1)),xt=nt(Le),Lt=nt(Ue),Jt=X(xt,Tn=>J(Lt,Gp(I,Tn)));return{firstpath:xt,secondpath:Lt,shared:Jt}},Ah=HE,VE=Z2,Ed=Xn(),ms=(I,W)=>Ah(Ed,(te,me)=>I(me),W),_d=(I,W,te)=>VE(Ed,I,W,te),j2=I=>qi(I,"table"),xf=(I,W,te)=>{const me=Le=>Ue=>te!==void 0&&te(Ue)||rr(Ue,Le);return rr(I,W)?R.some({boxes:R.some([I]),start:I,finish:W}):j2(I).bind(Le=>j2(W).bind(Ue=>{if(rr(Le,Ue))return R.some({boxes:V2(Le,I,W),start:I,finish:W});if(Yr(Le,Ue)){const nt=jc(W,"td,th",me(Le)),xt=nt.length>0?nt[nt.length-1]:W;return R.some({boxes:bs(Le,I,Le,W,Ue),start:I,finish:xt})}else if(Yr(Ue,Le)){const nt=jc(I,"td,th",me(Ue)),xt=nt.length>0?nt[nt.length-1]:I;return R.some({boxes:bs(Ue,I,Le,W,Ue),start:I,finish:xt})}else return _d(I,W).shared.bind(nt=>Bs(nt,"table",te).bind(xt=>{const Lt=jc(W,"td,th",me(xt)),Jt=Lt.length>0?Lt[Lt.length-1]:W,Tn=jc(I,"td,th",me(xt)),sr=Tn.length>0?Tn[Tn.length-1]:I;return R.some({boxes:bs(xt,I,Le,W,Ue),start:sr,finish:Jt})}))}))},Mh=(I,W)=>{const te=Mi(I,W);return te.length>0?R.some(te):R.none()},Y2=(I,W)=>X(I,te=>pr(te,W)),zg=(I,W,te)=>Ks(I,W).bind(me=>Ks(I,te).bind(Le=>ms(j2,[me,Le]).map(Ue=>({first:me,last:Le,table:Ue})))),O3=(I,W)=>qi(I,"table").bind(te=>Ks(te,W).bind(me=>xf(me,I).bind(Le=>Le.boxes.map(Ue=>({boxes:Ue,start:Le.start,finish:Le.finish}))))),ub=(I,W,te,me,Le)=>Y2(I,Le).bind(Ue=>BE(Ue,W,te).bind(nt=>O3(nt,me))),K2=(I,W)=>Mh(I,W),UE=(I,W,te)=>zg(I,W,te).bind(me=>{const Le=Lt=>rr(I,Lt),Ue="thead,tfoot,tbody,table",nt=qi(me.first,Ue,Le),xt=qi(me.last,Ue,Le);return nt.bind(Lt=>xt.bind(Jt=>rr(Lt,Jt)?U2(me.table,me.first,me.last):R.none()))}),X2=_,Rd=I=>{const W=(me,Le)=>fn(me,Le).exists(Ue=>parseInt(Ue,10)>1),te=me=>W(me,"rowspan")||W(me,"colspan");return I.length>0&&ke(I,te)?R.some(I):R.none()},t$=(I,W,te)=>W.length<=1?R.none():UE(I,te.firstSelectedSelector,te.lastSelectedSelector).map(me=>({bounds:me,cells:W})),J2="data-mce-selected",km="td["+J2+"],th["+J2+"]",kl="["+J2+"]",Xr="data-mce-first-selected",WE="td["+Xr+"],th["+Xr+"]",Q2="data-mce-last-selected",GE="td["+Q2+"],th["+Q2+"]",P3=kl,Vg={selected:J2,selectedSelector:km,firstSelected:Xr,firstSelectedSelector:WE,lastSelected:Q2,lastSelectedSelector:GE},Zp=(I,W,te)=>({element:te,mergable:t$(W,I,Vg),unmergable:Rd(I),selection:X2(I)}),o1=(I,W,te)=>({element:I,clipboard:W,generators:te}),jp=(I,W,te,me)=>({selection:X2(I),clipboard:te,generators:me}),fb=I=>Kl(I).bind(W=>K2(W,Vg.firstSelectedSelector)).fold(C(I),W=>W[0]),Eh=I=>(W,te)=>{const me=Cn(W),Le=me==="col"||me==="colgroup"?fb(W):W;return Bs(Le,I,te)},Jf=Eh("th,td,caption"),a1=Eh("th,td"),ef=I=>$r(I.model.table.getSelectedCells()),db=I=>Se(ef(I),W=>pr(W,Vg.selectedSelector)),I3=I=>Kl(I[0]).map(W=>{const te=Qe(W,P3);return Xf(te),[te]}),Yp=(I,W)=>ae(W,te=>I.selection.serializer.serialize(te.dom,{})).join(""),_h=I=>ae(I,W=>W.dom.innerText).join(""),ZE=(I,W)=>{I.on("BeforeGetContent",te=>{const me=Le=>{te.preventDefault(),I3(Le).each(Ue=>{te.content=te.format==="text"?_h(Ue):Yp(I,Ue)})};if(te.selection===!0){const Le=db(I);Le.length>=1&&me(Le)}}),I.on("BeforeSetContent",te=>{if(te.selection===!0&&te.paste===!0){const me=ef(I);ie(me).each(Le=>{Kl(Le).each(Ue=>{const nt=Se(is(te.content),Lt=>Cn(Lt)!=="meta"),xt=Ze("table");if(Za(I)&&nt.length===1&&xt(nt[0])){te.preventDefault();const Lt=zt.fromDom(I.getDoc()),Jt=Vs(Lt),Tn=o1(Le,nt[0],Jt);W.pasteCells(Ue,Tn).each(()=>{I.focus()})}})})}})},Kp=(I,W)=>({element:I,offset:W}),Ug=(I,W,te)=>I.property().isText(W)&&I.property().getText(W).trim().length===0||I.property().isComment(W)?te(W).bind(me=>Ug(I,me,te).orThunk(()=>R.some(me))):R.none(),wf=(I,W)=>I.property().isText(W)?I.property().getText(W).length:I.property().children(W).length,Qc=(I,W)=>{const te=Ug(I,W,I.query().prevSibling).getOr(W);if(I.property().isText(te))return Kp(te,wf(I,te));const me=I.property().children(te);return me.length>0?Qc(I,me[me.length-1]):Kp(te,wf(I,te))},jE=Qc,N3=Xn(),F3=I=>jE(N3,I),q2=(I,W)=>{il(I)||qn(I).each(me=>{const Le=me.value/2;yc(I,Le,me.unit),yc(W,Le,me.unit)})},qc=I=>ae(I,C(0)),Xp=(I,W,te,me,Le)=>Le(I.slice(0,W)).concat(me).concat(Le(I.slice(te))),hb=I=>(W,te,me,Le)=>{if(I(me)){const Ue=Math.max(Le,W[te]-Math.abs(me)),nt=Math.abs(Ue-W[te]);return me>=0?nt:-nt}else return me},mb=hb(I=>I<0),YE=hb(k),B3=()=>{const I=(xt,Lt,Jt,Tn,sr)=>{const Dr=mb(xt,Lt,Tn,sr);return Xp(xt,Lt,Jt+1,[Dr,0],qc)},W=(xt,Lt,Jt,Tn)=>{const sr=(100+Jt)/100,Dr=Math.max(Tn,(xt[Lt]+Jt)/sr);return ae(xt,(Rr,Jn)=>(Jn===Lt?Dr:Rr/sr)-Rr)},te=(xt,Lt,Jt,Tn,sr,Dr)=>Dr?W(xt,Lt,Tn,sr):I(xt,Lt,Jt,Tn,sr);return{resizeTable:(xt,Lt)=>xt(Lt),clampTableDelta:mb,calcLeftEdgeDeltas:te,calcMiddleDeltas:(xt,Lt,Jt,Tn,sr,Dr,Rr)=>te(xt,Jt,Tn,sr,Dr,Rr),calcRightEdgeDeltas:(xt,Lt,Jt,Tn,sr,Dr)=>{if(Dr)return W(xt,Jt,Tn,sr);{const Rr=mb(xt,Jt,Tn,sr);return qc(xt.slice(0,Jt)).concat([Rr])}},calcRedestributedWidths:(xt,Lt,Jt,Tn)=>{if(Tn){const Dr=(Lt+Jt)/Lt,Rr=ae(xt,Jn=>Jn/Dr);return{delta:Dr*100-100,newSizes:Rr}}else return{delta:Jt,newSizes:xt}}}},ew=()=>{const I=(nt,xt,Lt,Jt,Tn)=>{const sr=Jt>=0?Lt:xt,Dr=YE(nt,sr,Jt,Tn);return Xp(nt,xt,Lt+1,[Dr,-Dr],qc)};return{resizeTable:(nt,xt,Lt)=>{Lt&&nt(xt)},clampTableDelta:(nt,xt,Lt,Jt,Tn)=>{if(Tn){if(Lt>=0)return Lt;{const sr=ne(nt,(Dr,Rr)=>Dr+Rr-Jt,0);return Math.max(-sr,Lt)}}else return mb(nt,xt,Lt,Jt)},calcLeftEdgeDeltas:I,calcMiddleDeltas:(nt,xt,Lt,Jt,Tn,sr)=>I(nt,Lt,Jt,Tn,sr),calcRightEdgeDeltas:(nt,xt,Lt,Jt,Tn,sr)=>{if(sr)return qc(nt);{const Dr=Jt/nt.length;return ae(nt,C(Dr))}},calcRedestributedWidths:(nt,xt,Lt,Jt)=>({delta:0,newSizes:nt})}},Jp=I=>aa.fromTable(I).grid,Qp=Ze("th"),gb=I=>ke(I,W=>Qp(W.element)),KE=(I,W)=>I&&W?"sectionCells":I?"section":"cells",pb=I=>{const W=I.section==="thead",te=df(qp(I.cells),"th");return I.section==="tfoot"?{type:"footer"}:W||te?{type:"header",subType:KE(W,te)}:{type:"body"}},qp=I=>{const W=Se(I,te=>Qp(te.element));return W.length===0?R.some("td"):W.length===I.length?R.some("th"):R.none()},XE=I=>{const W=ae(I,Le=>pb(Le).type),te=ee(W,"header"),me=ee(W,"footer");if(!te&&!me)return R.some("body");{const Le=ee(W,"body");return te&&!Le&&!me?R.some("header"):!te&&!Le&&me?R.some("footer"):R.none()}},s1=I=>se(I.all,W=>{const te=pb(W);return te.type==="header"?R.from(te.subType):R.none()}),tw=(I,W,te)=>Yo(te(I.element,W),!0,I.isLocked),eu=(I,W)=>I.section!==W?Fa(I.element,I.cells,W,I.isNew):I,vb=()=>({transformRow:eu,transformCell:(I,W,te)=>{const me=te(I.element,W),Le=Cn(me)!=="td"?ar(me,"td"):me;return Yo(Le,I.isNew,I.isLocked)}}),H3=()=>({transformRow:eu,transformCell:tw}),yb=()=>({transformRow:(I,W)=>eu(I,W==="thead"?"tbody":W),transformCell:tw}),Am={getTableSectionType:(I,W)=>{const te=aa.fromTable(I);switch(s1(te).getOr(W)){case"section":return vb();case"sectionCells":return H3();case"cells":return yb()}},section:vb,sectionCells:H3,cells:yb,fallback:()=>({transformRow:_,transformCell:tw})},Ld=(I,W,te,me)=>{te===me?tn(I,W):ht(I,W,te)},nw=(I,W,te)=>{we(To(I,W)).fold(()=>Ot(I,te),me=>Ut(me,te))},ev=(I,W)=>{const te=Bo(I,W).getOrThunk(()=>{const me=zt.fromTag(W,Ln(I).dom);return W==="thead"?nw(I,"caption,colgroup",me):W==="colgroup"?nw(I,"caption",me):_t(I,me),me});return Sn(te),te},xb=(I,W)=>{const te=[],me=[],Le=Rr=>ae(Rr,Jn=>{Jn.isNew&&te.push(Jn.element);const Or=Jn.element;return Sn(Or),Q(Jn.cells,Kn=>{Kn.isNew&&me.push(Kn.element),Ld(Kn.element,"colspan",Kn.colspan,1),Ld(Kn.element,"rowspan",Kn.rowspan,1),_t(Or,Kn.element)}),Or}),Ue=Rr=>$e(Rr,Jn=>ae(Jn.cells,Or=>(Ld(Or.element,"span",Or.colspan,1),Or.element))),nt=(Rr,Jn)=>{const Or=ev(I,Jn),oo=(Jn==="colgroup"?Ue:Le)(Rr);nn(Or,oo)},xt=Rr=>{Bo(I,Rr).each(bn)},Lt=(Rr,Jn)=>{Rr.length>0?nt(Rr,Jn):xt(Jn)},Jt=[],Tn=[],sr=[],Dr=[];return Q(W,Rr=>{switch(Rr.section){case"thead":Jt.push(Rr);break;case"tbody":Tn.push(Rr);break;case"tfoot":sr.push(Rr);break;case"colgroup":Dr.push(Rr);break}}),Lt(Dr,"colgroup"),Lt(Jt,"thead"),Lt(Tn,"tbody"),Lt(sr,"tfoot"),{newRows:te,newCells:me}},z3=I=>ae(I,W=>{const te=Bn(W.element);return Q(W.cells,me=>{const Le=Hr(me.element);Ld(Le,"colspan",me.colspan,1),Ld(Le,"rowspan",me.rowspan,1),_t(te,Le)}),te}),Cs=(I,W)=>ae(I,te=>$l(te,W)),JE=(I,W)=>I[W],hi=(I,W)=>{if(I.length===0)return 0;const te=I[0];return ye(I,Le=>!W(te.element,Le.element)).getOr(I.length)},V3=(I,W,te,me)=>{const Le=JE(I,W),Ue=Le.section==="colgroup",nt=hi(Le.cells.slice(te),me),xt=Ue?1:hi(Cs(I.slice(W),te),me);return{colspan:nt,rowspan:xt}},Is=(I,W)=>{const te=ae(I,Le=>ae(Le.cells,M)),me=(Le,Ue,nt,xt)=>{for(let Lt=Le;Lt{const nt=$e(Le.cells,(xt,Lt)=>{if(te[Ue][Lt]===!1){const Jt=V3(I,Ue,Lt,W);return me(Ue,Lt,Jt.rowspan,Jt.colspan),[bo(xt.element,Jt.rowspan,Jt.colspan,xt.isNew)]}else return[]});return Va(Le.element,nt,Le.section,Le.isNew)})},tv=(I,W,te)=>{const me=[];Q(I.colgroups,Le=>{const Ue=[];for(let nt=0;ntYo(Lt.element,te,!1)).getOrThunk(()=>Yo(W.colGap(),!0,!1));Ue.push(xt)}me.push(Fa(Le.element,Ue,"colgroup",te))});for(let Le=0;LeYo(Tn.element,te,Tn.isLocked)).getOrThunk(()=>Yo(W.gap(),!0,!1));Ue.push(Jt)}const nt=I.all[Le],xt=Fa(nt.element,Ue,nt.section,te);me.push(xt)}return me},Ni=(I,W)=>tv(I,W,!1),Us=I=>Is(I,rr),Su=(I,W)=>se(I.all,te=>X(te.cells,me=>rr(W,me.element))),rw=(I,W,te)=>{const me=ae(W.selection,Ue=>Dp(Ue).bind(nt=>Su(I,nt)).filter(te)),Le=Ls(me);return uu(Le.length>0,Le)},Al=(I,W,te,me,Le)=>(Ue,nt,xt,Lt)=>{const Jt=aa.fromTable(Ue),Tn=R.from(Lt==null?void 0:Lt.section).getOrThunk(Am.fallback);return W(Jt,nt).map(Dr=>{const Rr=Ni(Jt,xt),Jn=I(Rr,Dr,rr,Le(xt),Tn),Or=Ri(Jn.grid),Kn=Us(Jn.grid);return{info:Dr,grid:Kn,cursor:Jn.cursor,lockedColumns:Or}}).bind(Dr=>{const Rr=xb(Ue,Dr.grid),Jn=R.from(Lt==null?void 0:Lt.sizing).getOrThunk(()=>ec.getTableSize(Ue)),Or=R.from(Lt==null?void 0:Lt.resize).getOrThunk(ew);return te(Ue,Dr.grid,Dr.info,{sizing:Jn,resize:Or,section:Tn}),me(Ue),tn(Ue,Np),Dr.lockedColumns.length>0&&ht(Ue,Np,Dr.lockedColumns.join(",")),R.some({cursor:Dr.cursor,newRows:Rr.newRows,newCells:Rr.newCells})})},i1=(I,W)=>Dp(W.element).bind(te=>Su(I,te).map(me=>({...me,generators:W.generators,clipboard:W.clipboard}))),nv=(I,W)=>rw(I,W,k).map(te=>({cells:te,generators:W.generators,clipboard:W.clipboard})),Dd=(I,W)=>W.mergable,rv=(I,W)=>W.unmergable,Mm=(I,W)=>rw(I,W,k),Rh=(I,W)=>rw(I,W,te=>!te.isLocked),QE=(I,W)=>Su(I,W).exists(te=>!te.isLocked),U3=(I,W)=>ke(W,te=>QE(I,te)),r$=(I,W)=>Dd(I,W).filter(te=>U3(I,te.cells)),o$=(I,W)=>rv(I,W).filter(te=>U3(I,te)),Cf=(I,W,te,me)=>{const Le=_i(I).rows;if(Le.length===0)return I;for(let Ue=W.startRow;Ue<=W.finishRow;Ue++)for(let nt=W.startCol;nt<=W.finishCol;nt++){const xt=Le[Ue],Lt=$l(xt,nt).isLocked;vh(xt,nt,Yo(me(),!1,Lt))}return I},rc=(I,W,te,me)=>{const Le=_i(I).rows;let Ue=!0;for(let nt=0;ntne(I,(te,me)=>J(te,Le=>W(Le.element,me.element))?te:te.concat([me]),[]),e4=(I,W,te,me)=>(W>0&&W{const Ue=Le.cells[W-1];let nt=0;const xt=me();for(;Le.cells.length>W+nt&&te(Ue.element,Le.cells[W+nt].element);)vh(Le,W+nt,Yo(xt,!0,Le.cells[W+nt].isLocked)),nt++}),I),Em=(I,W,te,me)=>{const Le=_i(I).rows;if(W>0&&W{let Lt=R.none();for(let Jt=W;Jt{vh(sr,Tn,Yo(Jn,!0,Dr.isLocked))}))}})}return I},l1=I=>{const W=Ue=>Ue(I),te=C(I),me=()=>Le,Le={tag:!0,inner:I,fold:(Ue,nt)=>nt(I),isValue:k,isError:M,map:Ue=>$d.value(Ue(I)),mapError:me,bind:W,exists:W,forall:W,getOr:te,or:me,getOrThunk:te,orThunk:me,getOrDie:te,each:Ue=>{Ue(I)},toOptional:()=>R.some(I)};return Le},wb=I=>{const W=()=>te,te={tag:!1,inner:I,fold:(me,Le)=>me(I),isValue:M,isError:k,map:W,mapError:me=>$d.error(me(I)),bind:W,exists:M,forall:k,getOr:_,or:_,getOrThunk:N,orThunk:N,getOrDie:D(String(I)),each:g,toOptional:R.none};return te},$d={value:l1,error:wb,fromOption:(I,W)=>I.fold(()=>wb(W),l1)},ov=(I,W,te)=>{if(I.row>=W.length||I.column>Lc(W[0]))return $d.error("invalid start address out of table bounds, row: "+I.row+", column: "+I.column);const me=W.slice(I.row),Le=me[0].cells.slice(I.column),Ue=Lc(te[0]),nt=te.length;return $d.value({rowDelta:me.length-nt,colDelta:Le.length-Ue})},av=(I,W)=>{const te=Lc(I[0]),me=Lc(W[0]);return{rowDelta:0,colDelta:te-me}},sv=(I,W)=>{const te=I.length,me=W.length;return{rowDelta:te-me,colDelta:0}},Wg=(I,W,te,me)=>{const Le=W.section==="colgroup"?te.col:te.cell;return K(I,Ue=>Yo(Le(),!0,me(Ue)))},W3=(I,W,te,me)=>{const Le=I[I.length-1];return I.concat(K(W,()=>{const Ue=Le.section==="colgroup"?te.colgroup:te.row,nt=W0(Le,Ue,_),xt=Wg(nt.cells.length,nt,te,Lt=>Ge(me,Lt.toString()));return V0(nt,xt)}))},ai=(I,W,te,me)=>ae(I,Le=>{const Ue=Wg(W,Le,te,M);return vc(Le,me,Ue)}),G3=(I,W,te)=>ae(I,me=>ne(te,(Le,Ue)=>{const nt=Wg(1,me,W,k)[0];return kd(Le,Ue,nt)},me)),iv=(I,W,te)=>{const me=W.colDelta<0?ai:_,Le=W.rowDelta<0?W3:_,Ue=Ri(I),nt=Lc(I[0]),xt=J(Ue,Tn=>Tn===nt-1),Lt=me(I,Math.abs(W.colDelta),te,xt?nt-1:nt),Jt=Ri(Lt);return Le(Lt,Math.abs(W.rowDelta),te,Ve(Jt,k))},Z3=(I,W,te,me)=>{const Le=$l(I[W],te),Ue=S(me,Le.element),nt=I[W];return I.length>1&&Lc(nt)>1&&(te>0&&Ue(ui(nt,te-1))||te0&&Ue(ui(I[W-1],te))||W{const nt=I.row,xt=I.column,Lt=te.length,Jt=Lc(te[0]),Tn=nt+Lt,sr=xt+Jt+Ue.length,Dr=Ve(Ue,k);for(let Rr=nt;Rr{const me=Lc(W[0]),Le=_i(W).cols.length+I.row,Ue=K(me-I.column,xt=>xt+I.column),nt=X(Ue,xt=>ke(te,Lt=>Lt!==xt)).getOr(me-1);return{row:Le,column:nt}},Tu=(I,W,te)=>Se(te,me=>me>=I.column&&me<=Lc(W[0])+I.column),j3=(I,W,te,me,Le)=>{const Ue=Ri(W),nt=Pl(I,W,Ue),xt=_i(te).rows,Lt=Tu(nt,xt,Ue);return ov(nt,W,xt).map(Tn=>{const sr={...Tn,colDelta:Tn.colDelta-Lt.length},Dr=iv(W,sr,me),Rr=Ri(Dr),Jn=Tu(nt,xt,Rr);return Sb(nt,Dr,xt,me,Le,Jn)})},Tb=(I,W,te,me,Le)=>{e4(W,I,Le,me.cell);const Ue=sv(te,W),nt=iv(te,Ue,me),xt=sv(W,nt),Lt=iv(W,xt,me);return ae(Lt,(Jt,Tn)=>vc(Jt,I,nt[Tn].cells))},Gg=(I,W,te,me,Le)=>{Em(W,I,Le,me.cell);const Ue=Ri(W),nt=av(W,te),xt={...nt,colDelta:nt.colDelta-Ue.length},Lt=iv(W,xt,me),{cols:Jt,rows:Tn}=_i(Lt),sr=Ri(Lt),Dr=av(te,W),Rr={...Dr,colDelta:Dr.colDelta+sr.length},Jn=G3(te,me,sr),Or=iv(Jn,Rr,me);return[...Jt,...Tn.slice(0,I),...Or,...Tn.slice(I,Tn.length)]},t4=(I,W,te,me)=>W0(I,Le=>me(Le,te),W),Y3=(I,W,te,me,Le)=>{const{rows:Ue,cols:nt}=_i(I),xt=Ue.slice(0,W),Lt=Ue.slice(W),Jt=t4(Ue[te],(Tn,sr)=>W>0&&W{if(te==="colgroup"||!me){const xt=$l(I,Le);return Yo(nt(xt.element,Ue),!0,!1)}else return $l(I,W)},tu=(I,W,te,me,Le)=>ae(I,Ue=>{const nt=W>0&&W$e(I,te=>{const me=te.cells,Le=ce(W,(Ue,nt)=>nt>=0&&nt0?[Fa(te.element,Le,te.section,te.isNew)]:[]}),mi=(I,W,te)=>{const{rows:me,cols:Le}=_i(I);return[...Le,...me.slice(0,W),...me.slice(te+1)]},Qf=(I,W,te,me)=>ui(I[W],te)!==void 0&&W>0&&me(ui(I[W-1],te),ui(I[W],te)),lv=(I,W,te)=>W>0&&te(ui(I,W-1),ui(I,W)),_m=(I,W,te,me)=>Qf(I,W,te,me)||lv(I[W],te,me),Zg=(I,W)=>ke(W,_)&&gb(I.cells)?k:(me,Le,Ue)=>!(Cn(me.element)==="th"&&W[Ue]),jg=(I,W)=>ke(W,_)&&gb(I)?k:(me,Le,Ue)=>!(Cn(me.element)==="th"&&W[Le]),Lh=(I,W,te,me)=>{const Le=nt=>nt==="row"?Yl(W):il(W),Ue=nt=>Le(nt)?`${nt}group`:nt;return I?Qp(W)?Ue(te):null:me&&Qp(W)?Ue(te==="row"?"col":"row"):null},K3=(I,W)=>(te,me,Le)=>R.some(Lh(I,te.element,"col",W[Le])),Yg=(I,W)=>(te,me)=>R.some(Lh(I,te.element,"row",W[me])),Rm=(I,W,te)=>Yo(te(I.element,W),!0,I.isLocked),Kg=(I,W,te,me,Le,Ue,nt)=>{const xt=Lt=>J(W,Jt=>te(Lt.element,Jt.element));return ae(I,(Lt,Jt)=>U0(Lt,(Tn,sr)=>{if(xt(Tn)){const Dr=nt(Tn,Jt,sr)?Le(Tn,te,me):Tn;return Ue(Dr,Jt,sr).each(Rr=>{Tt(Dr.element,{scope:R.from(Rr)})}),Dr}else return Tn}))},X3=(I,W,te)=>$e(I,(me,Le)=>_m(I,Le,W,te)?[]:[$l(me,W)]),n4=(I,W,te)=>{const me=I[W];return $e(me.cells,(Le,Ue)=>_m(I,W,Ue,te)?[]:[Le])},aw=(I,W,te,me,Le)=>{const Ue=_i(I).rows,nt=$e(W,Tn=>X3(Ue,Tn,me)),xt=ae(Ue,Tn=>gb(Tn.cells)),Lt=jg(nt,xt),Jt=Yg(te,xt);return Kg(I,nt,me,Le,Rm,Jt,Lt)},r4=(I,W,te,me,Le,Ue,nt)=>{const{cols:xt,rows:Lt}=_i(I),Jt=Lt[W[0]],Tn=$e(W,Kn=>n4(Lt,Kn,Le)),sr=ae(Jt.cells,(Kn,oo)=>gb(X3(Lt,oo,Le))),Dr=[...Lt];Q(W,Kn=>{Dr[Kn]=nt.transformRow(Lt[Kn],te)});const Rr=[...xt,...Dr],Jn=Zg(Jt,sr),Or=K3(me,sr);return Kg(Rr,Tn,Le,Ue,nt.transformCell,Or,Jn)},Ab=(I,W,te,me)=>{const Le=_i(I).rows,Ue=ae(W,nt=>$l(Le[nt.row],nt.column));return Kg(I,Ue,te,me,Rm,R.none,k)},nu={generate:I=>{if(!s(I))throw new Error("cases must be an array");if(I.length===0)throw new Error("there must be at least one case");const W=[],te={};return Q(I,(me,Le)=>{const Ue=ue(me);if(Ue.length!==1)throw new Error("one and only one name per case");const nt=Ue[0],xt=me[nt];if(te[nt]!==void 0)throw new Error("duplicate key detected:"+nt);if(nt==="cata")throw new Error("cannot have a case named cata (sorry)");if(!s(xt))throw new Error("case arguments must be an array");W.push(nt),te[nt]=(...Lt)=>{const Jt=Lt.length;if(Jt!==xt.length)throw new Error("Wrong number of arguments to case "+nt+". Expected "+xt.length+" ("+xt+"), got "+Jt);return{fold:(...sr)=>{if(sr.length!==I.length)throw new Error("Wrong number of arguments to fold. Expected "+I.length+", got "+sr.length);return sr[Le].apply(null,Lt)},match:sr=>{const Dr=ue(sr);if(W.length!==Dr.length)throw new Error("Wrong number of arguments to match. Expected: "+W.join(",")+` -Actual: `+Dr.join(","));if(!ke(W,Jn=>ee(Dr,Jn)))throw new Error("Not all branches were specified when using match. Specified: "+Dr.join(", ")+` -Required: `+W.join(", "));return sr[nt].apply(null,Lt)},log:sr=>{console.log(sr,{constructors:W,constructor:nt,params:Lt})}}}}),te}},cv={...nu.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},Q3=(I,W)=>I.length===0?cv.none():I.length===1?cv.only(0):W===0?cv.left(0,1):W===I.length-1?cv.right(W-1,W):W>0&&W{const Ue=I.slice(0),nt=Q3(I,W),xt=C(ae(Ue,C(0))),Lt=Dr=>me.singleColumnWidth(Ue[Dr],te),Jt=(Dr,Rr)=>Le.calcLeftEdgeDeltas(Ue,Dr,Rr,te,me.minCellWidth(),me.isRelative),Tn=(Dr,Rr,Jn)=>Le.calcMiddleDeltas(Ue,Dr,Rr,Jn,te,me.minCellWidth(),me.isRelative),sr=(Dr,Rr)=>Le.calcRightEdgeDeltas(Ue,Dr,Rr,te,me.minCellWidth(),me.isRelative);return nt.fold(xt,Lt,Jt,Tn,sr)},c1=(I,W,te)=>{let me=0;for(let Le=I;Le{const te=aa.justCells(I);return ae(te,me=>{const Le=c1(me.column,me.column+me.colspan,W);return{element:me.element,width:Le,colspan:me.colspan}})},Mb=(I,W)=>{const te=aa.justColumns(I);return ae(te,(me,Le)=>({element:me.element,width:W[Le],colspan:me.colspan}))},Sa=(I,W)=>{const te=aa.justCells(I);return ae(te,me=>{const Le=c1(me.row,me.row+me.rowspan,W);return{element:me.element,height:Le,rowspan:me.rowspan}})},ru=(I,W)=>ae(I.all,(te,me)=>({element:te.element,height:W[me]})),qf=I=>ce(I,(W,te)=>W+te,0),iw=(I,W)=>aa.hasColumns(I)?Mb(I,W):Lm(I,W),rs=(I,W,te)=>{const me=iw(I,W);Q(me,Le=>{te.setElementWidth(Le.element,Le.width)})},u1=(I,W,te,me,Le)=>{const Ue=aa.fromTable(I),nt=Le.getCellDelta(W),xt=Le.getWidths(Ue,Le),Lt=te===Ue.grid.columns-1,Jt=me.clampTableDelta(xt,te,nt,Le.minCellWidth(),Lt),Tn=o4(xt,te,Jt,Le,me),sr=ae(Tn,(Dr,Rr)=>Dr+xt[Rr]);rs(Ue,sr,Le),me.resizeTable(Le.adjustTableWidth,Jt,Lt)},lw=(I,W,te,me)=>{const Le=aa.fromTable(I),Ue=En(Le,I,me),nt=ae(Ue,(Tn,sr)=>te===sr?Math.max(W+Tn,Zu()):Tn),xt=Sa(Le,nt),Lt=ru(Le,nt);Q(Lt,Tn=>{cl(Tn.element,Tn.height)}),Q(xt,Tn=>{cl(Tn.element,Tn.height)});const Jt=qf(nt);cl(I,Jt)},Zi=(I,W,te,me,Le)=>{const Ue=aa.generate(W),nt=me.getWidths(Ue,me),xt=me.pixelWidth(),{newSizes:Lt,delta:Jt}=Le.calcRedestributedWidths(nt,xt,te.pixelDelta,me.isRelative);rs(Ue,Lt,me),me.adjustTableWidth(Jt)},Od=(I,W,te,me)=>{const Le=aa.generate(W),Ue=me.getWidths(Le,me);rs(Le,Ue,me)},Dm=I=>ne(I,(te,me)=>J(te,Ue=>Ue.column===me.column)?te:te.concat([me]),[]).sort((te,me)=>te.column-me.column),cw=Ze("col"),Eb=Ze("colgroup"),f1=I=>Cn(I)==="tr"||Eb(I),uw=I=>{const W=ws(I,"colspan",1),te=ws(I,"rowspan",1);return{element:I,colspan:W,rowspan:te}},_b=(I,W=uw)=>{const te=xt=>cw(xt.element)?I.col(xt):I.cell(xt),me=xt=>Eb(xt.element)?I.colgroup(xt):I.row(xt),Le=xt=>{if(f1(xt))return me({element:xt});{const Lt=xt,Jt=te(W(Lt));return Ue=R.some({item:Lt,replacement:Jt}),Jt}};let Ue=R.none();return{getOrInit:(xt,Lt)=>Ue.fold(()=>Le(xt),Jt=>Lt(xt,Jt.item)?Jt.replacement:Le(xt))}},Pd=I=>W=>{const te=[],me=(nt,xt)=>X(te,Lt=>xt(Lt.item,nt)),Le=nt=>{const xt=I==="td"?{scope:null}:{},Lt=W.replace(nt,I,xt);return te.push({item:nt,sub:Lt}),Lt};return{replaceOrInit:(nt,xt)=>{if(f1(nt)||cw(nt))return nt;{const Lt=nt;return me(Lt,xt).fold(()=>Le(Lt),Jt=>xt(nt,Jt.item)?Jt.sub:Le(Lt))}}}},Dh=I=>fn(I,"scope").map(W=>W.substr(0,3)),In={modification:_b,transform:Pd,merging:I=>({unmerge:me=>{const Le=Dh(me);return Le.each(Ue=>ht(me,"scope",Ue)),()=>{const Ue=I.cell({element:me,colspan:1,rowspan:1});return Yc(Ue,"width"),Yc(me,"width"),Le.each(nt=>ht(Ue,"scope",nt)),Ue}},merge:me=>{const Le=()=>{const Ue=Ls(ae(me,Dh));if(Ue.length===0)return R.none();{const nt=Ue[0],xt=["row","col"];return J(Ue,Jt=>Jt!==nt&&ee(xt,Jt))?R.none():R.from(nt)}};return Yc(me[0],"width"),Le().fold(()=>tn(me[0],"scope"),Ue=>ht(me[0],"scope",Ue+"group")),C(me[0])}})},d1=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],uv=(I,W)=>{const te=I.property().name(W);return ee(["ol","ul"],te)},ku=(I,W)=>{const te=I.property().name(W);return ee(d1,te)},fw=(I,W)=>ee(["br","img","hr","input"],I.property().name(W)),Ds=Xn(),Rb=I=>ku(Ds,I),$h=I=>uv(Ds,I),dw=I=>fw(Ds,I),Lb=I=>{const W=Ze("br"),te=Lt=>ke(Lt,Jt=>W(Jt)||wt(Jt)&&bt(Jt).trim().length===0),me=Lt=>Cn(Lt)==="li"||Ms(Lt,$h).isSome(),Le=Lt=>De(Lt).map(Jt=>Rb(Jt)?!0:dw(Jt)?Cn(Jt)!=="img":!1).getOr(!1),Ue=Lt=>Mn(Lt).bind(Jt=>{const Tn=Le(Jt);return ro(Jt).map(sr=>Tn===!0||me(sr)||W(Jt)||Rb(sr)&&!rr(Lt,sr)?[]:[zt.fromTag("br")])}).getOr([]),xt=(()=>{const Lt=$e(I,Jt=>{const Tn=St(Jt);return te(Tn)?[]:Tn.concat(Ue(Jt))});return Lt.length===0?[zt.fromTag("br")]:Lt})();Sn(I[0]),nn(I[0],xt)},hw=I=>Kf(I,!0),h1=I=>{ju(I).length===0&&bn(I)},fv=(I,W)=>({grid:I,cursor:W}),mw=I=>se(I,W=>se(W.cells,te=>{const me=te.element;return uu(hw(me),me)})),s4=(I,W,te)=>{var me,Le;const Ue=_i(I).rows;return R.from((Le=(me=Ue[W])===null||me===void 0?void 0:me.cells[te])===null||Le===void 0?void 0:Le.element).filter(hw).orThunk(()=>mw(Ue))},wc=(I,W,te)=>{const me=s4(I,W,te);return fv(I,me)},ji=I=>ne(I,(te,me)=>J(te,Ue=>Ue.row===me.row)?te:te.concat([me]),[]).sort((te,me)=>te.row-me.row),Ml=(I,W,te,me)=>{const Le=W[0].row,Ue=ji(W),nt=ce(Ue,(xt,Lt)=>({grid:Y3(xt.grid,Le,Lt.row+xt.delta,te,me.getOrInit),delta:xt.delta+1}),{grid:I,delta:0}).grid;return wc(nt,Le,W[0].column)},Cc=(I,W,te,me)=>{const Le=ji(W),Ue=Le[Le.length-1],nt=Ue.row+Ue.rowspan,xt=ce(Le,(Lt,Jt)=>Y3(Lt,nt,Jt.row,te,me.getOrInit),I);return wc(xt,nt,W[0].column)},Il=(I,W,te,me)=>{const Le=W.details,Ue=Dm(Le),nt=Ue[0].column,xt=ce(Ue,(Lt,Jt)=>({grid:tu(Lt.grid,nt,Jt.column+Lt.delta,te,me.getOrInit),delta:Lt.delta+1}),{grid:I,delta:0}).grid;return wc(xt,Le[0].row,nt)},oc=(I,W,te,me)=>{const Le=W.details,Ue=Le[Le.length-1],nt=Ue.column+Ue.colspan,xt=Dm(Le),Lt=ce(xt,(Jt,Tn)=>tu(Jt,nt,Tn.column,te,me.getOrInit),I);return wc(Lt,Le[0].row,nt)},Yi=(I,W,te,me)=>{const Le=Dm(W),Ue=ae(Le,xt=>xt.column),nt=aw(I,Ue,!0,te,me.replaceOrInit);return wc(nt,W[0].row,W[0].column)},gw=(I,W,te,me)=>{const Le=Ab(I,W,te,me.replaceOrInit);return wc(Le,W[0].row,W[0].column)},m1=(I,W,te,me)=>{const Le=Dm(W),Ue=ae(Le,xt=>xt.column),nt=aw(I,Ue,!1,te,me.replaceOrInit);return wc(nt,W[0].row,W[0].column)},pw=(I,W,te,me)=>{const Le=Ab(I,W,te,me.replaceOrInit);return wc(Le,W[0].row,W[0].column)},g1=(I,W)=>(te,me,Le,Ue,nt)=>{const xt=ji(me),Lt=ae(xt,Tn=>Tn.row),Jt=r4(te,Lt,I,W,Le,Ue.replaceOrInit,nt);return wc(Jt,me[0].row,me[0].column)},vw=g1("thead",!0),q3=g1("tbody",!1),Db=g1("tfoot",!1),yw=(I,W,te,me)=>{const Le=Dm(W.details),Ue=kb(I,ae(Le,xt=>xt.column)),nt=Ue.length>0?Ue[0].cells.length-1:0;return wc(Ue,Le[0].row,Math.min(Le[0].column,nt))},i4=(I,W,te,me)=>{const Le=ji(W),Ue=mi(I,Le[0].row,Le[Le.length-1].row),nt=Ue.length>0?Ue.length-1:0;return wc(Ue,Math.min(W[0].row,nt),W[0].column)},l4=(I,W,te,me)=>{const Le=W.cells;Lb(Le);const Ue=Cf(I,W.bounds,te,me.merge(Le));return fv(Ue,R.from(Le[0]))},eT=(I,W,te,me)=>{const Ue=ce(W,(nt,xt)=>rc(nt,xt,te,me.unmerge(xt)),I);return fv(Ue,R.from(W[0]))},c4=(I,W,te,me)=>{const Ue=((Lt,Jt)=>{const Tn=aa.fromTable(Lt);return tv(Tn,Jt,!0)})(W.clipboard,W.generators),nt=So(W.row,W.column);return j3(nt,I,Ue,W.generators,te).fold(()=>fv(I,R.some(W.element)),Lt=>wc(Lt,W.row,W.column))},dv=(I,W,te)=>{const me=jy(I,te.section),Le=aa.generate(me);return tv(Le,W,!0)},$b=(I,W,te,me)=>{const Le=_i(I).rows,Ue=W.cells[0].column,nt=Le[W.cells[0].row],xt=dv(W.clipboard,W.generators,nt),Lt=Tb(Ue,I,xt,W.generators,te);return wc(Lt,W.cells[0].row,W.cells[0].column)},tT=(I,W,te,me)=>{const Le=_i(I).rows,Ue=W.cells[W.cells.length-1].column+W.cells[W.cells.length-1].colspan,nt=Le[W.cells[0].row],xt=dv(W.clipboard,W.generators,nt),Lt=Tb(Ue,I,xt,W.generators,te);return wc(Lt,W.cells[0].row,W.cells[0].column)},a$=(I,W,te,me)=>{const Le=_i(I).rows,Ue=W.cells[0].row,nt=Le[Ue],xt=dv(W.clipboard,W.generators,nt),Lt=Gg(Ue,I,xt,W.generators,te);return wc(Lt,W.cells[0].row,W.cells[0].column)},Oc=(I,W,te,me)=>{const Le=_i(I).rows,Ue=W.cells[W.cells.length-1].row+W.cells[W.cells.length-1].rowspan,nt=Le[W.cells[0].row],xt=dv(W.clipboard,W.generators,nt),Lt=Gg(Ue,I,xt,W.generators,te);return wc(Lt,W.cells[0].row,W.cells[0].column)},s$=(I,W)=>{const te=aa.fromTable(I);return Mm(te,W).bind(Le=>{const Ue=Le[Le.length-1],nt=Le[0].column,xt=Ue.column+Ue.colspan,Lt=Ce(ae(te.all,Jt=>Se(Jt.cells,Tn=>Tn.column>=nt&&Tn.column{const te=aa.fromTable(I);return Mm(te,W).bind(qp).getOr("")},gr=(I,W)=>{const te=aa.fromTable(I);return Mm(te,W).bind(Le=>{const Ue=Le[Le.length-1],nt=Le[0].row,xt=Ue.row+Ue.rowspan,Lt=te.all.slice(nt,xt);return XE(Lt)}).getOr("")},bw=(I,W,te,me)=>Od(I,W,te,me.sizing),Ki=(I,W,te,me)=>Zi(I,W,te,me.sizing,me.resize),nT=(I,W)=>J(W,te=>te.column===0&&te.isLocked),Ob=(I,W)=>J(W,te=>te.column+te.colspan>=I.grid.columns&&te.isLocked),xw=(I,W)=>{const te=bh(I),me=Dm(W);return ne(me,(Le,Ue)=>{const xt=te[Ue.column].map(Ku).getOr(0);return Le+xt},0)},Pc=I=>(W,te)=>Mm(W,te).filter(me=>!(I?nT:Ob)(W,me)).map(me=>({details:me,pixelDelta:xw(W,me)})),u4=(I,W)=>Rh(I,W).map(te=>({details:te,pixelDelta:-xw(I,te)})),rT=I=>(W,te)=>nv(W,te).filter(me=>!(I?nT:Ob)(W,me.cells)),Ic=In.transform("th"),hv=In.transform("td"),p1=Al(Ml,Mm,g,g,In.modification),Id=Al(Cc,Mm,g,g,In.modification),Sf=Al(Il,Pc(!0),Ki,g,In.modification),Ur=Al(oc,Pc(!1),Ki,g,In.modification),Au=Al(yw,u4,Ki,h1,In.modification),oT=Al(i4,Mm,g,h1,In.modification),aT=Al(Yi,Rh,g,g,Ic),ww=Al(m1,Rh,g,g,hv),sT=Al(vw,Rh,g,g,Ic),Cw=Al(q3,Rh,g,g,hv),Sw=Al(Db,Rh,g,g,hv),f4=Al(gw,Rh,g,g,Ic),Tw=Al(pw,Rh,g,g,hv),d4=Al(l4,r$,bw,g,In.merging),ac=Al(eT,o$,bw,g,In.merging),v1=Al(c4,i1,bw,g,In.modification),h4=Al($b,rT(!0),g,g,In.modification),m4=Al(tT,rT(!1),g,g,In.modification),kw=Al(a$,nv,g,g,In.modification),g4=Al(Oc,nv,g,g,In.modification),iT=s$,lT=ed,y1=gr,cT=(I,W)=>I.dispatch("NewRow",{node:W}),Aw=(I,W)=>I.dispatch("NewCell",{node:W}),Xg=(I,W,te)=>{I.dispatch("TableModified",{...te,table:W})},p4=(I,W,te,me,Le)=>{I.dispatch("TableSelectionChange",{cells:W,start:te,finish:me,otherCells:Le})},v4=I=>{I.dispatch("TableSelectionClear")},Mw=(I,W,te,me,Le)=>{I.dispatch("ObjectResizeStart",{target:W,width:te,height:me,origin:Le})},y4=(I,W,te,me,Le)=>{I.dispatch("ObjectResized",{target:W,width:te,height:me,origin:Le})},Oh={structure:!1,style:!0},ia={structure:!0,style:!1},Ew={structure:!0,style:!0},sc=(I,W)=>qu(I)?ec.percentageSize(W):Sl(I)?ec.pixelSize(W):ec.getTableSize(W),Pb=(I,W,te)=>{const me=Tc=>Cn(ob(Tc))==="table",Le=Tc=>!me(I)||Jp(Tc).rows>1,Ue=Tc=>!me(I)||Jp(Tc).columns>1,nt=xi(I),xt=Ga(I)?g:q2,Lt=Tc=>{switch(Ii(I)){case"section":return Am.section();case"sectionCells":return Am.sectionCells();case"cells":return Am.cells();default:return Am.getTableSectionType(Tc,"section")}},Jt=(Tc,SC)=>SC.cursor.fold(()=>{const X1=ju(Tc);return ie(X1).filter(Ka).map(Vd=>{te.clearSelectedCells(Tc.dom);const Hl=I.dom.createRng();return Hl.selectNode(Vd.dom),I.selection.setRng(Hl),ht(Vd,"data-mce-selected","1"),Hl})},X1=>{const Vd=F3(X1),Hl=I.dom.createRng();return Hl.setStart(Vd.element.dom,Vd.offset),Hl.setEnd(Vd.element.dom,Vd.offset),I.selection.setRng(Hl),te.clearSelectedCells(Tc.dom),R.some(Hl)}),Tn=(Tc,SC,X1,Vd)=>(Hl,J1,ik=!1)=>{Xf(Hl);const lk=zt.fromDom(I.getDoc()),zv=Ha(X1,lk,nt),ck={sizing:sc(I,Hl),resize:Ga(I)?B3():ew(),section:Lt(Hl)};return SC(Hl)?Tc(Hl,J1,zv,ck).bind(gx=>{W.refresh(Hl.dom),Q(gx.newRows,ip=>{cT(I,ip.dom)}),Q(gx.newCells,ip=>{Aw(I,ip.dom)});const uk=Jt(Hl,gx);return Ka(Hl)&&(Xf(Hl),ik||Xg(I,Hl.dom,Vd)),uk.map(ip=>({rng:ip,effect:Vd}))}):R.none()},sr=Tn(oT,Le,g,ia),Dr=Tn(Au,Ue,g,ia),Rr=Tn(p1,k,g,ia),Jn=Tn(Id,k,g,ia),Or=Tn(Sf,k,xt,ia),Kn=Tn(Ur,k,xt,ia),oo=Tn(d4,k,g,ia),Ro=Tn(ac,k,g,ia),Qo=Tn(h4,k,g,ia),_s=Tn(m4,k,g,ia),Ji=Tn(kw,k,g,ia),si=Tn(g4,k,g,ia),Bc=Tn(v1,k,g,Ew),ap=Tn(f4,k,g,ia),sp=Tn(Tw,k,g,ia),CC=Tn(aT,k,g,ia),mx=Tn(ww,k,g,ia),ls=Tn(sT,k,g,ia),lc=Tn(Cw,k,g,ia),_l=Tn(Sw,k,g,ia);return{deleteRow:sr,deleteColumn:Dr,insertRowsBefore:Rr,insertRowsAfter:Jn,insertColumnsBefore:Or,insertColumnsAfter:Kn,mergeCells:oo,unmergeCells:Ro,pasteColsBefore:Qo,pasteColsAfter:_s,pasteRowsBefore:Ji,pasteRowsAfter:si,pasteCells:Bc,makeCellsHeader:ap,unmakeCellsHeader:sp,makeColumnsHeader:CC,unmakeColumnsHeader:mx,makeRowsHeader:ls,makeRowsBody:lc,makeRowsFooter:_l,getTableRowType:y1,getTableCellType:lT,getTableColType:iT}},_w=(I,W,te)=>{const me=ws(I,W,1);te===1||me<=1?tn(I,W):ht(I,W,Math.min(te,me))},Rw=(I,W)=>te=>{const me=te.column+te.colspan-1,Le=te.column;return me>=I&&Le{if(aa.hasColumns(I)){const me=Se(aa.justColumns(I),Rw(W,te)),Le=ae(me,nt=>{const xt=Hr(nt.element);return _w(xt,"span",te-W),xt}),Ue=zt.fromTag("colgroup");return nn(Ue,Le),[Ue]}else return[]},uT=(I,W,te)=>ae(I.all,me=>{const Le=Se(me.cells,Rw(W,te)),Ue=ae(Le,xt=>{const Lt=Hr(xt.element);return _w(Lt,"colspan",te-W),Lt}),nt=zt.fromTag("tr");return nn(nt,Ue),nt}),b4=(I,W)=>{const te=aa.fromTable(I);return Rh(te,W).map(Le=>{const Ue=Le[Le.length-1],nt=Le[0].column,xt=Ue.column+Ue.colspan,Lt=Ib(te,nt,xt),Jt=uT(te,nt,xt);return[...Lt,...Jt]})},x4=(I,W,te)=>{const me=aa.fromTable(I);return Mm(me,W).bind(Ue=>{const nt=tv(me,te,!1),Lt=_i(nt).rows.slice(Ue[0].row,Ue[Ue.length-1].row+Ue[Ue.length-1].rowspan),Jt=$e(Lt,sr=>{const Dr=Se(sr.cells,Rr=>!Rr.isLocked);return Dr.length>0?[{...sr,cells:Dr}]:[]}),Tn=Us(Jt);return uu(Tn.length>0,Tn)}).map(Ue=>z3(Ue))},mv=nu.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),fT=(I,W,te)=>{const me=te.substring(0,te.length-I.length),Le=parseFloat(me);return me===Le.toString()?W(Le):mv.invalid(te)},$m={...mv,from:I=>gc(I,"%")?fT("%",mv.percent,I):gc(I,"px")?fT("px",mv.pixels,I):mv.invalid(I)},w4=(I,W)=>ae(I,te=>$m.from(te).fold(()=>te,Le=>Le/W*100+"%",Le=>Le+"%")),gv=(I,W,te)=>{const me=te/W;return ae(I,Le=>$m.from(Le).fold(()=>Le,nt=>nt*me+"px",nt=>nt/100*te+"px"))},C4=(I,W)=>{const te=I.fold(()=>C(""),me=>{const Le=me/W;return C(Le+"px")},()=>{const me=100/W;return C(me+"%")});return K(W,te)},Lw=(I,W,te)=>I.fold(()=>W,me=>gv(W,te,me),me=>w4(W,te)),dT=(I,W,te)=>{const me=$m.from(te),Le=ke(I,Ue=>Ue==="0px")?C4(me,I.length):Lw(me,I,W);return mT(Le)},Jg=(I,W)=>I.length===0?W:ce(I,(te,me)=>$m.from(me).fold(C(0),_,_)+te,0),S4=(I,W)=>{const te=Math.floor(I);return{value:te+W,remainder:I-te}},hT=(I,W)=>$m.from(I).fold(C(I),te=>te+W+"px",te=>te+W+"%"),mT=I=>{if(I.length===0)return I;const W=ce(I,(me,Le)=>{const Ue=$m.from(Le).fold(()=>({value:Le,remainder:0}),nt=>S4(nt,"px"),nt=>({value:nt+"%",remainder:0}));return{output:[Ue.value].concat(me.output),remainder:me.remainder+Ue.remainder}},{output:[],remainder:0}),te=W.output;return te.slice(0,te.length-1).concat([hT(te[te.length-1],Math.round(W.remainder))])},pv=$m.from,gT=(I,W,te)=>{Q(W,me=>{const Le=I.slice(me.column,me.colspan+me.column),Ue=Jg(Le,Xs());Ps(me.element,"width",Ue+te)})},Dw=(I,W,te)=>{Q(W,(me,Le)=>{const Ue=Jg([I[Le]],Xs());Ps(me.element,"width",Ue+te)})},T4=(I,W,te,me)=>{Q(te,Le=>{const Ue=I.slice(Le.row,Le.rowspan+Le.row),nt=Jg(Ue,Zu());Ps(Le.element,"height",nt+me)}),Q(W,(Le,Ue)=>{Ps(Le.element,"height",I[Ue])})},pT=I=>pv(I).fold(C("px"),C("px"),C("%")),Nd=(I,W,te)=>{const me=aa.fromTable(I),Le=me.all,Ue=aa.justCells(me),nt=aa.justColumns(me);W.each(xt=>{const Lt=pT(xt),Jt=Jl(I),Tn=pf(me,I),sr=dT(Tn,Jt,xt);aa.hasColumns(me)?Dw(sr,nt,Lt):gT(sr,Ue,Lt),Ps(I,"width",xt)}),te.each(xt=>{const Lt=pT(xt),Jt=Bp(I),Tn=ql(me,I,Gr),sr=dT(Tn,Jt,xt);T4(sr,Le,Ue,Lt),Ps(I,"height",xt)})},b1=Qu,x1=z2,Nb=bu,w1=I=>{tn(I,"width")},tf=I=>{const W=Da(I);Nd(I,R.some(W),R.none()),w1(I)},vv=I=>{const W=Cm(I);Nd(I,R.some(W),R.none()),w1(I)},C1=I=>{Yc(I,"width");const W=_g(I),te=W.length>0?W:ju(I);Q(te,me=>{Yc(me,"width"),w1(me)}),w1(I)},Om={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},Fb=()=>zt.fromTag("th"),k4=()=>zt.fromTag("td"),A4=()=>zt.fromTag("col"),vT=(I,W,te,me)=>{const Le=zt.fromTag("tr");for(let Ue=0;Ue{const W=zt.fromTag("colgroup");return K(I,()=>_t(W,A4())),W},$w=(I,W,te,me)=>K(I,Le=>vT(W,te,me,Le)),E4=(I,W,te,me,Le,Ue=Om)=>{const nt=zt.fromTag("table"),xt=Le!=="cells";sl(nt,Ue.styles),pt(nt,Ue.attributes),Ue.colGroups&&_t(nt,M4(W));const Lt=Math.min(I,te);if(xt&&te>0){const Rr=zt.fromTag("thead");_t(nt,Rr);const Or=$w(te,W,Le==="sectionCells"?Lt:0,me);nn(Rr,Or)}const Jt=zt.fromTag("tbody");_t(nt,Jt);const Tn=xt?I-Lt:I,Dr=$w(Tn,W,xt?0:te,me);return nn(Jt,Dr),nt},_4=I=>I.dom.innerHTML,yT=I=>{const W=zt.fromTag("div"),te=zt.fromDom(I.dom.cloneNode(!0));return _t(W,te),_4(W)},R4=(I,W)=>{I.selection.select(W.dom,!0),I.selection.collapse(!0)},bT=(I,W)=>{Ks(W,"td,th").each(S(R4,I))},L4=(I,W)=>{Q(Mi(W,"tr"),te=>{cT(I,te.dom),Q(Mi(te,"th,td"),me=>{Aw(I,me.dom)})})},Bb=I=>L(I)&&I.indexOf("%")!==-1,D4=(I,W,te,me,Le)=>{const Ue=Yf(I),nt={styles:Ue,attributes:nc(I),colGroups:wu(I)};return I.undoManager.ignore(()=>{const xt=E4(te,W,Le,me,Ii(I),nt);ht(xt,"data-mce-id","__mce");const Lt=yT(xt);I.insertContent(Lt),I.addVisual()}),Ks(ob(I),'table[data-mce-id="__mce"]').map(xt=>(Sl(I)?vv(xt):wi(I)?C1(xt):(qu(I)||Bb(Ue.width))&&tf(xt),Xf(xt),tn(xt,"data-mce-id"),L4(I,xt),bT(I,xt),xt.dom)).getOrNull()},xT=(I,W,te,me={})=>{const Le=Ue=>d(Ue)&&Ue>0;if(Le(W)&&Le(te)){const Ue=me.headerRows||0,nt=me.headerColumns||0;return D4(I,te,W,nt,Ue)}else return console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table."),null};var yv=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const Ow="x-tinymce/dom-table-",Pw=Ow+"rows",Iw=Ow+"columns",wT=I=>{const W=yv.FakeClipboardItem(I);yv.write([W])},Nw=I=>{var W;const te=(W=yv.read())!==null&&W!==void 0?W:[];return se(te,me=>R.from(me.getType(I)))},$4=I=>{Nw(I).isSome()&&yv.clear()},Hb=I=>{I.fold(O4,W=>wT({[Pw]:W}))},zb=()=>Nw(Pw),O4=()=>$4(Pw),Fw=I=>{I.fold(P4,W=>wT({[Iw]:W}))},CT=()=>Nw(Iw),P4=()=>$4(Iw),Bw=I=>Jf(Cu(I),Md(I)).filter(sb),I4=I=>a1(Cu(I),Md(I)).filter(sb),bv=(I,W)=>{const te=Md(I),me=()=>Bw(I).each(Kn=>{Kl(Kn,te).filter(O(te)).each(oo=>{const Ro=zt.fromText("");if(Ut(oo,Ro),bn(oo),I.dom.isEmpty(I.getBody()))I.setContent(""),I.selection.setCursorLocation();else{const Qo=I.dom.createRng();Qo.setStart(Ro.dom,0),Qo.setEnd(Ro.dom,0),I.selection.setRng(Qo),I.nodeChanged()}})}),Le=Kn=>Bw(I).each(oo=>{wi(I)||Sl(I)||qu(I)||Kl(oo,te).each(Qo=>{Kn==="relative"&&!b1(Qo)?tf(Qo):Kn==="fixed"&&!x1(Qo)?vv(Qo):Kn==="responsive"&&!Nb(Qo)&&C1(Qo),Xf(Qo),Xg(I,Qo.dom,ia)})}),Ue=Kn=>Kl(Kn,te),nt=Kn=>I4(I).bind(oo=>Ue(oo).map(Ro=>Kn(Ro,oo))),xt=(Kn,oo)=>{nt(Ro=>{I.formatter.toggle("tableclass",{value:oo},Ro.dom),Xg(I,Ro.dom,Oh)})},Lt=(Kn,oo)=>{nt(Ro=>{const Qo=ef(I),Ji=ke(Qo,si=>I.formatter.match("tablecellclass",{value:oo},si.dom))?I.formatter.remove:I.formatter.apply;Q(Qo,si=>Ji("tablecellclass",{value:oo},si.dom)),Xg(I,Ro.dom,Oh)})},Jt=()=>{Bw(I).each(Kn=>{Kl(Kn,te).each(oo=>{Bo(oo,"caption").fold(()=>{const Ro=zt.fromTag("caption");_t(Ro,zt.fromText("Caption")),qt(oo,Ro,0),I.selection.setCursorLocation(Ro.dom,0)},Ro=>{Ze("caption")(Kn)&&Tr("td",oo).each(Qo=>I.selection.setCursorLocation(Qo.dom,0)),bn(Ro)}),Xg(I,oo.dom,ia)})})},Tn=Kn=>{I.focus()},sr=(Kn,oo=!1)=>nt((Ro,Qo)=>{const _s=Zp(ef(I),Ro,Qo);Kn(Ro,_s,oo).each(Tn)}),Dr=()=>nt((Kn,oo)=>{const Ro=Zp(ef(I),Kn,oo),Qo=Ha(g,zt.fromDom(I.getDoc()),R.none());return x4(Kn,Ro,Qo)}),Rr=()=>nt((Kn,oo)=>{const Ro=Zp(ef(I),Kn,oo);return b4(Kn,Ro)}),Jn=(Kn,oo)=>oo().each(Ro=>{const Qo=ae(Ro,_s=>Hr(_s));nt((_s,Ji)=>{const si=Vs(zt.fromDom(I.getDoc())),Bc=jp(ef(I),Ji,Qo,si);Kn(_s,Bc).each(Tn)})}),Or=Kn=>(oo,Ro)=>dt(Ro,"type").each(Qo=>{sr(Kn(Qo),Ro.no_events)});le({mceTableSplitCells:()=>sr(W.unmergeCells),mceTableMergeCells:()=>sr(W.mergeCells),mceTableInsertRowBefore:()=>sr(W.insertRowsBefore),mceTableInsertRowAfter:()=>sr(W.insertRowsAfter),mceTableInsertColBefore:()=>sr(W.insertColumnsBefore),mceTableInsertColAfter:()=>sr(W.insertColumnsAfter),mceTableDeleteCol:()=>sr(W.deleteColumn),mceTableDeleteRow:()=>sr(W.deleteRow),mceTableCutCol:()=>Rr().each(Kn=>{Fw(Kn),sr(W.deleteColumn)}),mceTableCutRow:()=>Dr().each(Kn=>{Hb(Kn),sr(W.deleteRow)}),mceTableCopyCol:()=>Rr().each(Kn=>Fw(Kn)),mceTableCopyRow:()=>Dr().each(Kn=>Hb(Kn)),mceTablePasteColBefore:()=>Jn(W.pasteColsBefore,CT),mceTablePasteColAfter:()=>Jn(W.pasteColsAfter,CT),mceTablePasteRowBefore:()=>Jn(W.pasteRowsBefore,zb),mceTablePasteRowAfter:()=>Jn(W.pasteRowsAfter,zb),mceTableDelete:me,mceTableCellToggleClass:Lt,mceTableToggleClass:xt,mceTableToggleCaption:Jt,mceTableSizingMode:(Kn,oo)=>Le(oo),mceTableCellType:Or(Kn=>Kn==="th"?W.makeCellsHeader:W.unmakeCellsHeader),mceTableColType:Or(Kn=>Kn==="th"?W.makeColumnsHeader:W.unmakeColumnsHeader),mceTableRowType:Or(Kn=>{switch(Kn){case"header":return W.makeRowsHeader;case"footer":return W.makeRowsFooter;default:return W.makeRowsBody}})},(Kn,oo)=>I.addCommand(oo,Kn)),I.addCommand("mceInsertTable",(Kn,oo)=>{xT(I,oo.rows,oo.columns,oo.options)}),I.addCommand("mceTableApplyCellStyle",(Kn,oo)=>{const Ro=Ji=>"tablecell"+Ji.toLowerCase().replace("-","");if(!A(oo))return;const Qo=Se(ef(I),sb);if(Qo.length===0)return;const _s=ze(oo,(Ji,si)=>I.formatter.has(Ro(si))&&L(Ji));qe(_s)||(le(_s,(Ji,si)=>{const Bc=Ro(si);Q(Qo,ap=>{Ji===""?I.formatter.remove(Bc,{value:null},ap.dom,!0):I.formatter.apply(Bc,{value:Ji},ap.dom)})}),Ue(Qo[0]).each(Ji=>Xg(I,Ji.dom,Oh)))})},N4=(I,W)=>{const te=Md(I),me=Le=>a1(Cu(I)).bind(Ue=>Kl(Ue,te).map(nt=>{const xt=Zp(ef(I),nt,Ue);return Le(nt,xt)})).getOr("");le({mceTableRowType:()=>me(W.getTableRowType),mceTableCellType:()=>me(W.getTableCellType),mceTableColType:()=>me(W.getTableColType)},(Le,Ue)=>I.addQueryValueHandler(Ue,Le))},Hw=nu.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),F4=(I,W,te,me)=>I.fold(W,te,me),B4=I=>I.fold(_,_,_),H4=Hw.before,ST=Hw.on,z4=Hw.after,fl={before:H4,on:ST,after:z4,cata:F4,getStart:B4},xv={create:(I,W)=>({selection:I,kill:W})},Vb=(I,W)=>{const te=I.document.createRange();return te.selectNode(W.dom),te},TT=(I,W)=>{const te=I.document.createRange();return zw(te,W),te},zw=(I,W)=>I.selectNodeContents(W.dom),kT=(I,W)=>{W.fold(te=>{I.setStartBefore(te.dom)},(te,me)=>{I.setStart(te.dom,me)},te=>{I.setStartAfter(te.dom)})},AT=(I,W)=>{W.fold(te=>{I.setEndBefore(te.dom)},(te,me)=>{I.setEnd(te.dom,me)},te=>{I.setEndAfter(te.dom)})},Qg=(I,W,te)=>{const me=I.document.createRange();return kT(me,W),AT(me,te),me},S1=(I,W,te,me,Le)=>{const Ue=I.document.createRange();return Ue.setStart(W.dom,te),Ue.setEnd(me.dom,Le),Ue},V4=I=>({left:I.left,top:I.top,right:I.right,bottom:I.bottom,width:I.width,height:I.height}),U4=I=>{const W=I.getClientRects(),te=W.length>0?W[0]:I.getBoundingClientRect();return te.width>0||te.height>0?R.some(te).map(V4):R.none()},T1=nu.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Vw=(I,W,te)=>W(zt.fromDom(te.startContainer),te.startOffset,zt.fromDom(te.endContainer),te.endOffset),MT=(I,W)=>W.match({domRange:te=>({ltr:C(te),rtl:R.none}),relative:(te,me)=>({ltr:Cd(()=>Qg(I,te,me)),rtl:Cd(()=>R.some(Qg(I,me,te)))}),exact:(te,me,Le,Ue)=>({ltr:Cd(()=>S1(I,te,me,Le,Ue)),rtl:Cd(()=>R.some(S1(I,Le,Ue,te,me)))})}),Xi=(I,W)=>{const te=W.ltr();return te.collapsed?W.rtl().filter(Le=>Le.collapsed===!1).map(Le=>T1.rtl(zt.fromDom(Le.endContainer),Le.endOffset,zt.fromDom(Le.startContainer),Le.startOffset)).getOrThunk(()=>Vw(I,T1.ltr,te)):Vw(I,T1.ltr,te)},ET=(I,W)=>{const te=MT(I,W);return Xi(I,te)},Uw=(I,W)=>ET(I,W).match({ltr:(me,Le,Ue,nt)=>{const xt=I.document.createRange();return xt.setStart(me.dom,Le),xt.setEnd(Ue.dom,nt),xt},rtl:(me,Le,Ue,nt)=>{const xt=I.document.createRange();return xt.setStart(Ue.dom,nt),xt.setEnd(me.dom,Le),xt}});T1.ltr,T1.rtl;const wv={create:(I,W,te,me)=>({start:I,soffset:W,finish:te,foffset:me})},_T={create:(I,W,te,me)=>({start:fl.on(I,W),finish:fl.on(te,me)})},Ww=(I,W)=>{const te=Uw(I,W);return wv.create(zt.fromDom(te.startContainer),te.startOffset,zt.fromDom(te.endContainer),te.endOffset)},k1=_T.create,Ub=(I,W,te,me,Le,Ue,nt)=>rr(te,Le)&&me===Ue?R.none():Bs(te,"td,th",W).bind(xt=>Bs(Le,"td,th",W).bind(Lt=>Cv(I,W,xt,Lt,nt))),Cv=(I,W,te,me,Le)=>rr(te,me)?R.none():xf(te,me,W).bind(Ue=>{const nt=Ue.boxes.getOr([]);return nt.length>1?(Le(I,nt,Ue.start,Ue.finish),R.some(xv.create(R.some(k1(te,0,te,mn(te))),!0))):R.none()}),G4=(I,W,te,me,Le)=>{const Ue=nt=>(Le.clearBeforeUpdate(te),Le.selectRange(te,nt.boxes,nt.start,nt.finish),nt.boxes);return ub(me,I,W,Le.firstSelectedSelector,Le.lastSelectedSelector).map(Ue)},Pm=(I,W)=>({item:I,mode:W}),RT=(I,W,te,me=Im)=>I.property().parent(W).map(Le=>Pm(Le,me)),Im=(I,W,te,me=Nm)=>te.sibling(I,W).map(Le=>Pm(Le,me)),Nm=(I,W,te,me=Nm)=>{const Le=I.property().children(W);return te.first(Le).map(nt=>Pm(nt,me))},Gw=[{current:RT,next:Im,fallback:R.none()},{current:Im,next:Nm,fallback:R.some(RT)},{current:Nm,next:Nm,fallback:R.some(Im)}],LT=(I,W,te,me,Le=Gw)=>X(Le,nt=>nt.current===te).bind(nt=>nt.current(I,W,me,nt.next).orThunk(()=>nt.fallback.bind(xt=>LT(I,W,xt,me)))),Fm={left:()=>({sibling:(te,me)=>te.query().prevSibling(me),first:te=>te.length>0?R.some(te[te.length-1]):R.none()}),right:()=>({sibling:(te,me)=>te.query().nextSibling(me),first:te=>te.length>0?R.some(te[0]):R.none()})},Fd=(I,W,te,me,Le,Ue)=>LT(I,W,me,Le).bind(xt=>Ue(xt.item)?R.none():te(xt.item)?R.some(xt.item):Fd(I,xt.item,te,xt.mode,Le,Ue)),A1=(I,W,te,me)=>Fd(I,W,te,Im,Fm.left(),me),Sv=(I,W,te,me)=>Fd(I,W,te,Im,Fm.right(),me),jw=I=>W=>I.property().children(W).length===0,Ph=(I,W,te)=>M1(I,W,jw(I),te),td=(I,W,te)=>Wb(I,W,jw(I),te),M1=A1,Wb=Sv,E1=Xn(),Yw=(I,W)=>Ph(E1,I,W),Tv=(I,W)=>td(E1,I,W),_1=(I,W,te)=>M1(E1,I,W,te),Kw=(I,W,te)=>Wb(E1,I,W,te),DT=(I,W,te)=>Ms(I,W,te).isSome(),Bm=nu.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Gb=(I,W,te)=>{const me=I.getRect(W),Le=I.getRect(te);return Le.right>me.left&&Le.leftBs(I,"tr"),gi={...Bm,verify:(I,W,te,me,Le,Ue,nt)=>Bs(me,"td,th",nt).bind(xt=>Bs(W,"td,th",nt).map(Lt=>rr(xt,Lt)?rr(me,xt)&&mn(xt)===Le?Ue(Lt):Bm.none("in same cell"):ms(Z4,[xt,Lt]).fold(()=>Gb(I,Lt,xt)?Bm.success():Ue(Lt),Jt=>Ue(Lt)))).getOr(Bm.none("default")),cata:(I,W,te,me,Le)=>I.fold(W,te,me,Le)},f$=(I,W,te,me)=>({parent:I,children:W,element:te,index:me}),Ih=I=>ro(I).bind(W=>{const te=St(W);return OT(te,I).map(me=>f$(W,te,I,me))}),OT=(I,W)=>ye(I,S(rr,W)),Zb=Ze("br"),Hm=(I,W,te)=>W(I,te).bind(me=>wt(me)&&bt(me).trim().length===0?Hm(me,W,te):R.some(me)),Nl=(I,W,te)=>te.traverse(W).orThunk(()=>Hm(W,te.gather,I)).map(te.relative),kv=(I,W)=>kt(I,W).filter(Zb).orThunk(()=>kt(I,W-1).filter(Zb)),R1=(I,W,te,me)=>kv(W,te).bind(Le=>me.traverse(Le).fold(()=>Hm(Le,me.gather,I).map(me.relative),Ue=>Ih(Ue).map(nt=>fl.on(nt.parent,nt.index)))),Av=(I,W,te,me)=>(Zb(W)?Nl(I,W,me):R1(I,W,te,me)).map(Ue=>({start:Ue,finish:Ue})),Jw=I=>gi.cata(I,W=>R.none(),()=>R.none(),W=>R.some(Kp(W,0)),W=>R.some(Kp(W,mn(W)))),Mv=(I,W)=>({left:I.left,top:I.top+W,right:I.right,bottom:I.bottom+W}),qg=(I,W)=>({left:I.left,top:I.top-W,right:I.right,bottom:I.bottom-W}),nd=(I,W,te)=>({left:I.left+W,top:I.top+te,right:I.right+W,bottom:I.bottom+te}),j4=I=>I.top,Y4=I=>I.bottom,zm=(I,W,te)=>te>=0&&te0?I.getRangedRect(W,te-1,W,te):R.none(),Ev=I=>({left:I.left,top:I.top,right:I.right,bottom:I.bottom}),jb=(I,W)=>R.some(I.getRect(W)),Bd=(I,W,te)=>ft(W)?jb(I,W).map(Ev):wt(W)?zm(I,W,te).map(Ev):R.none(),Qw=(I,W)=>ft(W)?jb(I,W).map(Ev):wt(W)?I.getRangedRect(W,0,W,mn(W)).map(Ev):R.none(),dl=5,Nh=100,Tf=nu.generate([{none:[]},{retry:["caret"]}]),_v=(I,W)=>I.leftW.right,ic=(I,W,te)=>li(W,Rb).fold(M,me=>Qw(I,me).exists(Le=>_v(te,Le))),Nc=(I,W,te,me,Le)=>{const Ue=Mv(Le,dl);return Math.abs(te.bottom-me.bottom)<1||te.top>Le.bottom?Tf.retry(Ue):te.top===Le.bottom?Tf.retry(Mv(Le,1)):ic(I,W,Le)?Tf.retry(nd(Ue,dl,0)):Tf.none()},kf={point:j4,adjuster:(I,W,te,me,Le)=>{const Ue=qg(Le,dl);return Math.abs(te.top-me.top)<1||te.bottomI.elementFromPoint(W,te).filter(me=>Cn(me)==="table").isSome(),ep=(I,W,te,me,Le)=>qw(I,W,te,W.move(me,dl),Le),qw=(I,W,te,me,Le)=>Le===0?R.some(me):Mu(I,me.left,W.point(me))?ep(I,W,te,me,Le-1):I.situsFromPoint(me.left,W.point(me)).bind(Ue=>Ue.start.fold(R.none,nt=>Qw(I,nt).bind(xt=>W.adjuster(I,nt,xt,te,me).fold(R.none,Lt=>qw(I,W,te,Lt,Le-1))).orThunk(()=>R.some(me)),R.none)),K4=(I,W,te)=>I.point(W)>te.getInnerHeight()?R.some(I.point(W)-te.getInnerHeight()):I.point(W)<0?R.some(-I.point(W)):R.none(),PT=(I,W,te)=>{const me=I.move(te,dl),Le=qw(W,I,te,me,Nh).getOr(me);return K4(I,Le,W).fold(()=>W.situsFromPoint(Le.left,I.point(Le)),Ue=>(W.scrollBy(0,Ue),W.situsFromPoint(Le.left,I.point(Le)-Ue)))},L1={tryUp:S(PT,kf),tryDown:S(PT,Yb),getJumpSize:C(dl)},IT=20,D1=(I,W,te)=>I.getSelection().bind(me=>Av(W,me.finish,me.foffset,te).fold(()=>R.some(Kp(me.finish,me.foffset)),Le=>{const Ue=I.fromSitus(Le),nt=gi.verify(I,me.finish,me.foffset,Ue.finish,Ue.foffset,te.failure,W);return Jw(nt)})),Kb=(I,W,te,me,Le,Ue)=>Ue===0?R.none():J4(I,W,te,me,Le).bind(nt=>{const xt=I.fromSitus(nt),Lt=gi.verify(I,te,me,xt.finish,xt.foffset,Le.failure,W);return gi.cata(Lt,()=>R.none(),()=>R.some(nt),Jt=>rr(te,Jt)&&me===0?X4(I,te,me,qg,Le):Kb(I,W,Jt,0,Le,Ue-1),Jt=>rr(te,Jt)&&me===mn(Jt)?X4(I,te,me,Mv,Le):Kb(I,W,Jt,mn(Jt),Le,Ue-1))}),X4=(I,W,te,me,Le)=>Bd(I,W,te).bind(Ue=>NT(I,Le,me(Ue,L1.getJumpSize()))),NT=(I,W,te)=>{const me=$g().browser;return me.isChromium()||me.isSafari()||me.isFirefox()?W.retry(I,te):R.none()},J4=(I,W,te,me,Le)=>Bd(I,te,me).bind(Ue=>NT(I,Le,Ue)),d$=(I,W,te)=>D1(I,W,te).bind(me=>Kb(I,W,me.element,me.offset,te,IT).map(I.fromSitus)),FT=(I,W)=>DT(I,te=>ro(te).exists(me=>rr(me,W))),va=(I,W,te,me,Le)=>Bs(me,"td,th",W).bind(Ue=>Bs(Ue,"table",W).bind(nt=>FT(Le,nt)?d$(I,W,te).bind(xt=>Bs(xt.finish,"td,th",W).map(Lt=>({start:Ue,finish:Lt,range:xt}))):R.none())),rd=(I,W,te,me,Le,Ue)=>Ue(me,W).orThunk(()=>va(I,W,te,me,Le).map(nt=>{const xt=nt.range;return xv.create(R.some(k1(xt.start,xt.soffset,xt.finish,xt.foffset)),!0)})),tp=(I,W)=>Bs(I,"tr",W).bind(te=>Bs(te,"table",W).bind(me=>{const Le=Mi(me,"tr");return rr(te,Le[0])?_1(me,Ue=>Mn(Ue).isSome(),W).map(Ue=>{const nt=mn(Ue);return xv.create(R.some(k1(Ue,nt,Ue,nt)),!0)}):R.none()})),eC=(I,W)=>Bs(I,"tr",W).bind(te=>Bs(te,"table",W).bind(me=>{const Le=Mi(me,"tr");return rr(te,Le[Le.length-1])?Kw(me,Ue=>Rn(Ue).isSome(),W).map(Ue=>xv.create(R.some(k1(Ue,0,Ue,0)),!0)):R.none()})),BT=(I,W,te,me,Le,Ue,nt)=>va(I,te,me,Le,Ue).bind(xt=>Cv(W,te,xt.start,xt.finish,nt)),$1=I=>{let W=I;return{get:()=>W,set:Le=>{W=Le}}},Q4=I=>{const W=$1(R.none()),te=()=>W.get().each(I);return{clear:()=>{te(),W.set(R.none())},isSet:()=>W.get().isSome(),get:()=>W.get(),set:xt=>{te(),W.set(R.some(xt))}}},Rv=()=>{const I=Q4(g);return{...I,on:te=>I.get().each(te)}},Xb=(I,W)=>Bs(I,"td,th",W),Eu=I=>vo(I).exists(Kf),mH=(I,W,te,me)=>{const Le=Rv(),Ue=Le.clear,nt=Tn=>{Le.on(sr=>{me.clearBeforeUpdate(W),Xb(Tn.target,te).each(Dr=>{xf(sr,Dr,te).each(Rr=>{const Jn=Rr.boxes.getOr([]);if(Jn.length===1){const Or=Jn[0],Kn=Q0(Or)==="false",oo=df(Th(Tn.target),Or,rr);Kn&&oo&&(me.selectRange(W,Jn,Or,Or),I.selectContents(Or))}else Jn.length>1&&(me.selectRange(W,Jn,Rr.start,Rr.finish),I.selectContents(Dr))})})})};return{clearstate:Ue,mousedown:Tn=>{me.clear(W),Xb(Tn.target,te).filter(Eu).each(Le.set)},mouseover:Tn=>{nt(Tn)},mouseup:Tn=>{nt(Tn),Ue()}}},Jb={traverse:De,gather:Tv,relative:fl.before,retry:L1.tryDown,failure:gi.failedDown},Lv={traverse:He,gather:Yw,relative:fl.before,retry:L1.tryUp,failure:gi.failedUp},Vm=I=>W=>W===I,Qb=Vm(38),qb=Vm(40),np=I=>I>=37&&I<=40,q4={isBackward:Vm(37),isForward:Vm(39)},HT={isBackward:Vm(39),isForward:Vm(37)},e_=I=>{const W=I!==void 0?I.dom:document,te=W.body.scrollLeft||W.documentElement.scrollLeft,me=W.body.scrollTop||W.documentElement.scrollTop;return pu(te,me)},Dv=(I,W,te)=>{const Le=(te!==void 0?te.dom:document).defaultView;Le&&Le.scrollBy(I,W)},Fh=nu.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),t_=I=>Fh.exact(I.start,I.soffset,I.finish,I.foffset),n_=I=>I.match({domRange:W=>zt.fromDom(W.startContainer),relative:(W,te)=>fl.getStart(W),exact:(W,te,me,Le)=>W}),zT=Fh.domRange,tC=Fh.relative,nC=Fh.exact,rC=I=>{const W=n_(I);return wr(W)},ex=wv.create,Um={domRange:zT,relative:tC,exact:nC,exactFromRange:t_,getWin:rC,range:ex},VT=(I,W,te)=>{var me,Le;return R.from((Le=(me=I.dom).caretPositionFromPoint)===null||Le===void 0?void 0:Le.call(me,W,te)).bind(Ue=>{if(Ue.offsetNode===null)return R.none();const nt=I.dom.createRange();return nt.setStart(Ue.offsetNode,Ue.offset),nt.collapse(),R.some(nt)})},O1=(I,W,te)=>{var me,Le;return R.from((Le=(me=I.dom).caretRangeFromPoint)===null||Le===void 0?void 0:Le.call(me,W,te))},oC=(()=>document.caretPositionFromPoint?VT:document.caretRangeFromPoint?O1:R.none)(),r_=(I,W,te)=>{const me=zt.fromDom(I.document);return oC(me,W,te).map(Le=>wv.create(zt.fromDom(Le.startContainer),Le.startOffset,zt.fromDom(Le.endContainer),Le.endOffset))},P1=(I,W)=>{const te=Cn(I);return te==="input"?fl.after(I):ee(["br","img"],te)?W===0?fl.before(I):fl.after(I):fl.on(I,W)},o_=(I,W)=>{const te=I.fold(fl.before,P1,fl.after),me=W.fold(fl.before,P1,fl.after);return Um.relative(te,me)},Fr=(I,W,te,me)=>{const Le=P1(I,W),Ue=P1(te,me);return Um.relative(Le,Ue)},Fi=(I,W,te,me)=>{const Ue=Ln(I).dom.createRange();return Ue.setStart(I.dom,W),Ue.setEnd(te.dom,me),Ue},Bh=(I,W,te,me)=>{const Le=Fi(I,W,te,me),Ue=rr(I,te)&&W===me;return Le.collapsed&&!Ue},Si=I=>R.from(I.getSelection()),nf=(I,W)=>{Si(I).each(te=>{te.removeAllRanges(),te.addRange(W)})},tx=(I,W,te,me,Le)=>{const Ue=S1(I,W,te,me,Le);nf(I,Ue)},I1=(I,W,te,me,Le,Ue)=>{W.collapse(te.dom,me),W.extend(Le.dom,Ue)},od=(I,W)=>ET(I,W).match({ltr:(te,me,Le,Ue)=>{tx(I,te,me,Le,Ue)},rtl:(te,me,Le,Ue)=>{Si(I).each(nt=>{if(nt.setBaseAndExtent)nt.setBaseAndExtent(te.dom,me,Le.dom,Ue);else if(nt.extend)try{I1(I,nt,te,me,Le,Ue)}catch{tx(I,Le,Ue,te,me)}else tx(I,Le,Ue,te,me)})}}),nx=(I,W,te,me,Le)=>{const Ue=Fr(W,te,me,Le);od(I,Ue)},rx=(I,W,te)=>{const me=o_(W,te);od(I,me)},$v=I=>{if(I.rangeCount>0){const W=I.getRangeAt(0),te=I.getRangeAt(I.rangeCount-1);return R.some(wv.create(zt.fromDom(W.startContainer),W.startOffset,zt.fromDom(te.endContainer),te.endOffset))}else return R.none()},UT=I=>{if(I.anchorNode===null||I.focusNode===null)return $v(I);{const W=zt.fromDom(I.anchorNode),te=zt.fromDom(I.focusNode);return Bh(W,I.anchorOffset,te,I.focusOffset)?R.some(wv.create(W,I.anchorOffset,te,I.focusOffset)):$v(I)}},N1=(I,W,te=!0)=>{const Le=(te?TT:Vb)(I,W);nf(I,Le)},aC=I=>Si(I).filter(W=>W.rangeCount>0).bind(UT),sC=I=>aC(I).map(W=>Um.exact(W.start,W.soffset,W.finish,W.foffset)),a_=(I,W)=>{const te=Uw(I,W);return U4(te)},ad=(I,W,te)=>r_(I,W,te),ox=I=>{Si(I).each(W=>W.removeAllRanges())},Ov=I=>({elementFromPoint:(Kn,oo)=>zt.fromPoint(zt.fromDom(I.document),Kn,oo),getRect:Kn=>Kn.dom.getBoundingClientRect(),getRangedRect:(Kn,oo,Ro,Qo)=>{const _s=Um.exact(Kn,oo,Ro,Qo);return a_(I,_s)},getSelection:()=>sC(I).map(Kn=>Ww(I,Kn)),fromSitus:Kn=>{const oo=Um.relative(Kn.start,Kn.finish);return Ww(I,oo)},situsFromPoint:(Kn,oo)=>ad(I,Kn,oo).map(Ro=>_T.create(Ro.start,Ro.soffset,Ro.finish,Ro.foffset)),clearSelection:()=>{ox(I)},collapseSelection:(Kn=!1)=>{sC(I).each(oo=>oo.fold(Ro=>Ro.collapse(Kn),(Ro,Qo)=>{const _s=Kn?Ro:Qo;rx(I,_s,_s)},(Ro,Qo,_s,Ji)=>{const si=Kn?Ro:_s,Bc=Kn?Qo:Ji;nx(I,si,Bc,si,Bc)}))},setSelection:Kn=>{nx(I,Kn.start,Kn.soffset,Kn.finish,Kn.foffset)},setRelativeSelection:(Kn,oo)=>{rx(I,Kn,oo)},selectNode:Kn=>{N1(I,Kn,!1)},selectContents:Kn=>{N1(I,Kn)},getInnerHeight:()=>I.innerHeight,getScrollY:()=>e_(zt.fromDom(I.document)).top,scrollBy:(Kn,oo)=>{Dv(Kn,oo,zt.fromDom(I.document))}}),El=(I,W)=>({rows:I,cols:W}),$i=(I,W,te,me)=>{const Le=Ov(I),Ue=mH(Le,W,te,me);return{clearstate:Ue.clearstate,mousedown:Ue.mousedown,mouseover:Ue.mouseover,mouseup:Ue.mouseup}},ax=I=>li(I,lt).exists(Kf),F1=(I,W)=>ax(I)||ax(W),sx=(I,W,te,me)=>{const Le=Ov(I),Ue=()=>(me.clear(W),R.none());return{keydown:(Lt,Jt,Tn,sr,Dr,Rr)=>{const Jn=Lt.raw,Or=Jn.which,Kn=Jn.shiftKey===!0;return Mh(W,me.selectedSelector).fold(()=>(np(Or)&&!Kn&&me.clearBeforeUpdate(W),np(Or)&&Kn&&!F1(Jt,sr)?R.none:qb(Or)&&Kn?S(BT,Le,W,te,Jb,sr,Jt,me.selectRange):Qb(Or)&&Kn?S(BT,Le,W,te,Lv,sr,Jt,me.selectRange):qb(Or)?S(rd,Le,te,Jb,sr,Jt,eC):Qb(Or)?S(rd,Le,te,Lv,sr,Jt,tp):R.none),Ro=>{const Qo=_s=>()=>se(_s,si=>G4(si.rows,si.cols,W,Ro,me)).fold(()=>zg(W,me.firstSelectedSelector,me.lastSelectedSelector).map(si=>{const Bc=qb(Or)||Rr.isForward(Or)?fl.after:fl.before;return Le.setRelativeSelection(fl.on(si.first,0),Bc(si.table)),me.clear(W),xv.create(R.none(),!0)}),si=>R.some(xv.create(R.none(),!0)));return np(Or)&&Kn&&!F1(Jt,sr)?R.none:qb(Or)&&Kn?Qo([El(1,0)]):Qb(Or)&&Kn?Qo([El(-1,0)]):Rr.isBackward(Or)&&Kn?Qo([El(0,-1),El(-1,0)]):Rr.isForward(Or)&&Kn?Qo([El(0,1),El(1,0)]):np(Or)&&!Kn?Ue:R.none})()},keyup:(Lt,Jt,Tn,sr,Dr)=>Mh(W,me.selectedSelector).fold(()=>{const Rr=Lt.raw,Jn=Rr.which;return Rr.shiftKey===!0&&np(Jn)&&F1(Jt,sr)?Ub(W,te,Jt,Tn,sr,Dr,me.selectRange):R.none()},R.none)}},B1=(I,W,te,me)=>{const Le=Ov(I);return(Ue,nt)=>{me.clearBeforeUpdate(W),xf(Ue,nt,te).each(xt=>{const Lt=xt.boxes.getOr([]);me.selectRange(W,Lt,xt.start,xt.finish),Le.selectContents(nt),Le.collapseSelection()})}},H1=(I,W)=>{const te=Et(I,W);return te===void 0||te===""?[]:te.split(" ")},Pv=(I,W,te)=>{const Le=H1(I,W).concat([te]);return ht(I,W,Le.join(" ")),!0},WT=(I,W,te)=>{const me=Se(H1(I,W),Le=>Le!==te);return me.length>0?ht(I,W,me.join(" ")):tn(I,W),!1},z1=I=>I.dom.classList!==void 0,GT=I=>H1(I,"class"),ZT=(I,W)=>Pv(I,"class",W),jT=(I,W)=>WT(I,"class",W),rf=(I,W)=>{z1(I)?I.dom.classList.add(W):ZT(I,W)},Fl=I=>{(z1(I)?I.dom.classList:GT(I)).length===0&&tn(I,"class")},Af=(I,W)=>{z1(I)?I.dom.classList.remove(W):jT(I,W),Fl(I)},Fc=(I,W)=>z1(I)&&I.dom.classList.contains(W),V1=(I,W)=>{Q(W,te=>{Af(I,te)})},ix=I=>W=>{rf(W,I)},YT=I=>W=>{V1(W,I)},Hh={byClass:I=>{const W=ix(I.selected),te=YT([I.selected,I.lastSelected,I.firstSelected]),me=Ue=>{const nt=Mi(Ue,I.selectedSelector);Q(nt,te)};return{clearBeforeUpdate:me,clear:me,selectRange:(Ue,nt,xt,Lt)=>{me(Ue),Q(nt,W),rf(xt,I.firstSelected),rf(Lt,I.lastSelected)},selectedSelector:I.selectedSelector,firstSelectedSelector:I.firstSelectedSelector,lastSelectedSelector:I.lastSelectedSelector}},byAttr:(I,W,te)=>{const me=Lt=>{tn(Lt,I.selected),tn(Lt,I.firstSelected),tn(Lt,I.lastSelected)},Le=Lt=>{ht(Lt,I.selected,"1")},Ue=Lt=>{nt(Lt),te()},nt=Lt=>{const Jt=Mi(Lt,`${I.selectedSelector},${I.firstSelectedSelector},${I.lastSelectedSelector}`);Q(Jt,me)};return{clearBeforeUpdate:nt,clear:Ue,selectRange:(Lt,Jt,Tn,sr)=>{Ue(Lt),Q(Jt,Le),ht(Tn,I.firstSelected,"1"),ht(sr,I.lastSelected,"1"),W(Jt,Tn,sr)},selectedSelector:I.selectedSelector,firstSelectedSelector:I.firstSelectedSelector,lastSelectedSelector:I.lastSelectedSelector}}},W1=(I,W,te,me)=>{switch(I.tag){case"none":return W();case"single":return me(I.element);case"multiple":return te(I.elements)}},iC=()=>({tag:"none"}),KT=I=>({tag:"multiple",elements:I}),XT=I=>({tag:"single",element:I}),lC=(I,W,te)=>({get:()=>K2(I(),te).fold(()=>W().fold(iC,XT),KT)}),lx=(I,W)=>{const te=I.slice(0,W[W.length-1].row+1),me=Us(te);return $e(me,Le=>{const Ue=Le.cells.slice(0,W[W.length-1].column+1);return ae(Ue,nt=>nt.element)})},gs=(I,W)=>{const te=I.slice(W[0].row+W[0].rowspan-1,I.length),me=Us(te);return $e(me,Le=>{const Ue=Le.cells.slice(W[0].column+W[0].colspan-1,Le.cells.length);return ae(Ue,nt=>nt.element)})},zh=(I,W,te)=>{const me=aa.fromTable(I);return Mm(me,W).map(Ue=>{const nt=tv(me,te,!1),{rows:xt}=_i(nt),Lt=lx(xt,Ue),Jt=gs(xt,Ue);return{upOrLeftCells:Lt,downOrRightCells:Jt}})},JT=(I,W,te,me,Le,Ue,nt)=>({target:I,x:W,y:te,stop:me,prevent:Le,kill:Ue,raw:nt}),cC=I=>{const W=zt.fromDom(Lr(I).getOr(I.target)),te=()=>I.stopPropagation(),me=()=>I.preventDefault(),Le=v(me,te);return JT(W,I.clientX,I.clientY,te,me,Le,I)},uC=(I,W)=>te=>{I(te)&&W(cC(te))},rp=(I,W,te,me,Le)=>{const Ue=uC(te,me);return I.dom.addEventListener(W,Ue,Le),{unbind:S(dC,I,W,Ue,Le)}},fC=(I,W,te,me)=>rp(I,W,te,me,!1),dC=(I,W,te,me)=>{I.dom.removeEventListener(W,te,me)},i_=k,Iv=(I,W,te)=>fC(I,W,i_,te),Nv=cC,hC=I=>!Fc(zt.fromDom(I.target),"ephox-snooker-resizer-bar"),mC=(I,W)=>{const te=lC(()=>zt.fromDom(I.getBody()),()=>a1(Cu(I),Md(I)),Vg.selectedSelector),me=(Lt,Jt,Tn)=>{Kl(Jt).each(Dr=>{const Rr=xi(I),Jn=Ha(g,zt.fromDom(I.getDoc()),Rr),Or=ef(I),Kn=zh(Dr,{selection:Or},Jn);p4(I,Lt,Jt,Tn,Kn)})},Le=()=>v4(I),Ue=Hh.byAttr(Vg,me,Le);return I.on("init",Lt=>{const Jt=I.getWin(),Tn=ob(I),sr=Md(I),Dr=()=>{const ls=I.selection,lc=zt.fromDom(ls.getStart()),_l=zt.fromDom(ls.getEnd());ms(Kl,[lc,_l]).fold(()=>Ue.clear(Tn),g)},Rr=$i(Jt,Tn,sr,Ue),Jn=sx(Jt,Tn,sr,Ue),Or=B1(Jt,Tn,sr,Ue),Kn=ls=>ls.raw.shiftKey===!0;I.on("TableSelectorChange",ls=>Or(ls.start,ls.finish));const oo=(ls,lc)=>{Kn(ls)&&(lc.kill&&ls.kill(),lc.selection.each(_l=>{const Lu=Um.relative(_l.start,_l.finish),au=Uw(Jt,Lu);I.selection.setRng(au)}))},Ro=ls=>{const lc=Nv(ls);if(lc.raw.shiftKey&&np(lc.raw.which)){const _l=I.selection.getRng(),Lu=zt.fromDom(_l.startContainer),au=zt.fromDom(_l.endContainer);Jn.keyup(lc,Lu,_l.startOffset,au,_l.endOffset).each(jm=>{oo(lc,jm)})}},Qo=ls=>{const lc=Nv(ls);W.hide();const _l=I.selection.getRng(),Lu=zt.fromDom(_l.startContainer),au=zt.fromDom(_l.endContainer),jm=B2(q4,HT)(zt.fromDom(I.selection.getStart()));Jn.keydown(lc,Lu,_l.startOffset,au,_l.endOffset,jm).each(Tc=>{oo(lc,Tc)}),W.show()},_s=ls=>ls.button===0,Ji=ls=>ls.buttons===void 0?!0:(ls.buttons&1)!==0,si=ls=>{Rr.clearstate()},Bc=ls=>{_s(ls)&&hC(ls)&&Rr.mousedown(Nv(ls))},ap=ls=>{Ji(ls)&&hC(ls)&&Rr.mouseover(Nv(ls))},sp=ls=>{_s(ls)&&hC(ls)&&Rr.mouseup(Nv(ls))},mx=(()=>{const ls=$1(zt.fromDom(Tn)),lc=$1(0);return{touchEnd:Lu=>{const au=zt.fromDom(Lu.target);if(Ze("td")(au)||Ze("th")(au)){const jm=ls.get(),Tc=lc.get();rr(jm,au)&&Lu.timeStamp-Tc<300&&(Lu.preventDefault(),Or(au,au))}ls.set(au),lc.set(Lu.timeStamp)}}})();I.on("dragstart",si),I.on("mousedown",Bc),I.on("mouseover",ap),I.on("mouseup",sp),I.on("touchend",mx.touchEnd),I.on("keyup",Ro),I.on("keydown",Qo),I.on("NodeChange",Dr)}),I.on("PreInit",()=>{I.serializer.addTempAttr(Vg.firstSelected),I.serializer.addTempAttr(Vg.lastSelected)}),{getSelectedCells:()=>W1(te.get(),C([]),Lt=>ae(Lt,Jt=>Jt.dom),Lt=>[Lt.dom]),clearSelectedCells:Lt=>Ue.clear(zt.fromDom(Lt))}},Mf=I=>{let W=[];return{bind:Ue=>{if(Ue===void 0)throw new Error("Event bind error: undefined handler");W.push(Ue)},unbind:Ue=>{W=Se(W,nt=>nt!==Ue)},trigger:(...Ue)=>{const nt={};Q(I,(xt,Lt)=>{nt[xt]=Ue[Lt]}),Q(W,xt=>{xt(nt)})}}},Wm=I=>{const W=Te(I,me=>({bind:me.bind,unbind:me.unbind})),te=Te(I,me=>me.trigger);return{registry:W,trigger:te}},l_=(I,W)=>{let te=null;const me=()=>{m(te)||(clearTimeout(te),te=null)};return{cancel:me,throttle:(...Ue)=>{me(),te=setTimeout(()=>{te=null,I.apply(null,Ue)},W)}}},G1=I=>I.slice(0).sort(),c_=(I,W)=>{throw new Error("All required keys ("+G1(I).join(", ")+") were not specified. Specified keys were: "+G1(W).join(", ")+".")},ou=I=>{throw new Error("Unsupported keys for object: "+G1(I).join(", "))},Bl=(I,W)=>{if(!s(W))throw new Error("The "+I+" fields must be an array. Was: "+W+".");Q(W,te=>{if(!L(te))throw new Error("The value "+te+" in the "+I+" fields was not a string.")})},op=(I,W)=>{throw new Error("All values need to be of type: "+W+". Keys ("+G1(I).join(", ")+") were not.")},h$=I=>{const W=G1(I);X(W,(me,Le)=>Le{throw new Error("The field: "+me+" occurs more than once in the combined fields: ["+W.join(", ")+"].")})},QT=(I,W)=>u_(I,W,{validate:u,label:"function"}),u_=(I,W,te)=>{if(W.length===0)throw new Error("You must specify at least one required field.");return Bl("required",W),h$(W),me=>{const Le=ue(me);ke(W,xt=>ee(Le,xt))||c_(W,Le),I(W,Le);const nt=Se(W,xt=>!te.validate(me[xt],xt));return nt.length>0&&op(nt,te.label),me}},da=(I,W)=>{const te=Se(W,me=>!ee(I,me));te.length>0&&ou(te)},gC=I=>QT(da,I),qT=gC(["compare","extract","mutate","sink"]),pC=gC(["element","start","stop","destroy"]),f_=gC(["forceDrop","drop","move","delayDrop"]),d_=()=>{let I=R.none();const W=()=>{I=R.none()},te=(Ue,nt)=>{const xt=I.map(Lt=>Ue.compare(Lt,nt));return I=R.some(nt),xt},me=(Ue,nt)=>{nt.extract(Ue).each(Lt=>{te(nt,Lt).each(Tn=>{Le.trigger.move(Tn)})})},Le=Wm({move:Mf(["info"])});return{onEvent:me,reset:W,events:Le.registry}},ek=()=>{const I=Wm({move:Mf(["info"])});return{onEvent:g,reset:g,events:I.registry}},h_=()=>{const I=ek(),W=d_();let te=I;return{on:()=>{te.reset(),te=W},off:()=>{te.reset(),te=I},isOn:()=>te===W,onEvent:(xt,Lt)=>{te.onEvent(xt,Lt)},events:W.events}},Wr=(I,W,te)=>{let me=!1;const Le=Wm({start:Mf([]),stop:Mf([])}),Ue=h_(),nt=()=>{Jn.stop(),Ue.isOn()&&(Ue.off(),Le.trigger.stop())},xt=l_(nt,200),Lt=Kn=>{Jn.start(Kn),Ue.on(),Le.trigger.start()},Jt=Kn=>{xt.cancel(),Ue.onEvent(Kn,W)};Ue.events.move.bind(Kn=>{W.mutate(I,Kn.info)});const Tn=()=>{me=!0},sr=()=>{me=!1},Dr=()=>me,Rr=Kn=>(...oo)=>{me&&Kn.apply(null,oo)},Jn=W.sink(f_({forceDrop:nt,drop:Rr(nt),move:Rr(Jt),delayDrop:Rr(xt.throttle)}),te),Or=()=>{Jn.destroy()};return{element:Jn.element,go:Lt,on:Tn,off:sr,isActive:Dr,destroy:Or,events:Le.registry}},Gm=I=>{const W=I.replace(/\./g,"-");return{resolve:me=>W+"-"+me}},Z1=Gm("ephox-dragster").resolve,j1=I=>{const W={layerClass:Z1("blocker"),...I},te=zt.fromTag("div");return ht(te,"role","presentation"),sl(te,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),rf(te,Z1("blocker")),rf(te,W.layerClass),{element:C(te),destroy:()=>{bn(te)}}};var g_=qT({compare:(I,W)=>pu(W.left-I.left,W.top-I.top),extract:I=>R.some(pu(I.x,I.y)),sink:(I,W)=>{const te=j1(W),me=Iv(te.element(),"mousedown",I.forceDrop),Le=Iv(te.element(),"mouseup",I.drop),Ue=Iv(te.element(),"mousemove",I.move),nt=Iv(te.element(),"mouseout",I.delayDrop),xt=()=>{te.destroy(),Le.unbind(),Ue.unbind(),nt.unbind(),me.unbind()},Lt=Tn=>{_t(Tn,te.element())},Jt=()=>{bn(te.element())};return pC({element:te.element,start:Lt,stop:Jt,destroy:xt})},mutate:(I,W)=>{I.mutate(W.left,W.top)}});const nk=(I,W={})=>{var te;const me=(te=W.mode)!==null&&te!==void 0?te:g_;return Wr(I,me,W)},Vh=Gm("ephox-snooker").resolve,rk=()=>{const I=Wm({drag:Mf(["xDelta","yDelta"])});return{mutate:(te,me)=>{I.trigger.drag(te,me)},events:I.registry}},p_=()=>{const I=Wm({drag:Mf(["xDelta","yDelta","target"])});let W=R.none();const te=rk();return te.events.drag.bind(Ue=>{W.each(nt=>{I.trigger.drag(Ue.xDelta,Ue.yDelta,nt)})}),{assign:Ue=>{W=R.some(Ue)},get:()=>W,mutate:te.mutate,events:I.registry}},Y1=(I,W,te,me,Le)=>{const Ue=zt.fromTag("div");return sl(Ue,{position:"absolute",left:W-me/2+"px",top:te+"px",height:Le+"px",width:me+"px"}),pt(Ue,{"data-column":I,role:"presentation"}),Ue},v_=(I,W,te,me,Le)=>{const Ue=zt.fromTag("div");return sl(Ue,{position:"absolute",left:W+"px",top:te-Le/2+"px",height:Le+"px",width:me+"px"}),pt(Ue,{"data-row":I,role:"presentation"}),Ue},ok=Vh("resizer-bar"),vC=Vh("resizer-rows"),ak=Vh("resizer-cols"),cx=7,y_=(I,W)=>$e(I.all,(te,me)=>W(te.element)?[me]:[]),b_=(I,W)=>{const te=[];return K(I.grid.columns,me=>{aa.getColumnAt(I,me).map(Ue=>Ue.element).forall(W)&&te.push(me)}),Se(te,me=>{const Le=aa.filterItems(I,Ue=>Ue.column===me);return ke(Le,Ue=>W(Ue.element))})},Fv=I=>{const W=Mi(I.parent(),"."+ok);Q(W,bn)},yC=(I,W,te)=>{const me=I.origin();Q(W,Le=>{Le.each(Ue=>{const nt=te(me,Ue);rf(nt,ok),_t(I.parent(),nt)})})},sk=(I,W,te,me)=>{yC(I,W,(Le,Ue)=>{const nt=Y1(Ue.col,Ue.x-Le.left,te.top-Le.top,cx,me);return rf(nt,ak),nt})},x_=(I,W,te,me)=>{yC(I,W,(Le,Ue)=>{const nt=v_(Ue.row,te.left-Le.left,Ue.y-Le.top,me,cx);return rf(nt,vC),nt})},w_=(I,W,te,me,Le)=>{const Ue=Jc(te),nt=W.isResizable,xt=me.length>0?Gr.positions(me,te):[],Lt=xt.length>0?y_(I,nt):[],Jt=Se(xt,(Rr,Jn)=>J(Lt,Or=>Jn===Or));x_(W,Jt,Ue,Ku(te));const Tn=Le.length>0?oi.positions(Le,te):[],sr=Tn.length>0?b_(I,nt):[],Dr=Se(Tn,(Rr,Jn)=>J(sr,Or=>Jn===Or));sk(W,Dr,Ue,wh(te))},ux=(I,W)=>{if(Fv(I),I.isResizable(W)){const te=aa.fromTable(W),me=Ig(te),Le=bh(te);w_(te,I,W,me,Le)}},Hd=(I,W)=>{const te=Mi(I.parent(),"."+ok);Q(te,W)},fx=I=>{Hd(I,W=>{Ps(W,"display","none")})},Na=I=>{Hd(I,W=>{Ps(W,"display","block")})},C_=I=>Fc(I,vC),Uh=I=>Fc(I,ak),zd=Vh("resizer-bar-dragging"),dx=I=>{const W=p_(),te=nk(W,{});let me=R.none();const Le=(Jn,Or)=>R.from(Et(Jn,Or));W.events.drag.bind(Jn=>{Le(Jn.target,"data-row").each(Or=>{const Kn=Gu(Jn.target,"top");Ps(Jn.target,"top",Kn+Jn.yDelta+"px")}),Le(Jn.target,"data-column").each(Or=>{const Kn=Gu(Jn.target,"left");Ps(Jn.target,"left",Kn+Jn.xDelta+"px")})});const Ue=(Jn,Or)=>{const Kn=Gu(Jn,Or),oo=ws(Jn,"data-initial-"+Or,0);return Kn-oo};te.events.stop.bind(()=>{W.get().each(Jn=>{me.each(Or=>{Le(Jn,"data-row").each(Kn=>{const oo=Ue(Jn,"top");tn(Jn,"data-initial-top"),Rr.trigger.adjustHeight(Or,oo,parseInt(Kn,10))}),Le(Jn,"data-column").each(Kn=>{const oo=Ue(Jn,"left");tn(Jn,"data-initial-left"),Rr.trigger.adjustWidth(Or,oo,parseInt(Kn,10))}),ux(I,Or)})})});const nt=(Jn,Or)=>{Rr.trigger.startAdjust(),W.assign(Jn),ht(Jn,"data-initial-"+Or,Gu(Jn,Or)),rf(Jn,zd),Ps(Jn,"opacity","0.2"),te.go(I.parent())},xt=Iv(I.parent(),"mousedown",Jn=>{C_(Jn.target)&&nt(Jn.target,"top"),Uh(Jn.target)&&nt(Jn.target,"left")}),Lt=Jn=>rr(Jn,I.view()),Jt=Jn=>Bs(Jn,"table",Lt).filter(Kf),Tn=Iv(I.view(),"mouseover",Jn=>{Jt(Jn.target).fold(()=>{Ka(Jn.target)&&Fv(I)},Or=>{te.isActive()&&(me=R.some(Or),ux(I,Or))})}),sr=()=>{xt.unbind(),Tn.unbind(),te.destroy(),Fv(I)},Dr=Jn=>{ux(I,Jn)},Rr=Wm({adjustHeight:Mf(["table","delta","row"]),adjustWidth:Mf(["table","delta","column"]),startAdjust:Mf([])});return{destroy:sr,refresh:Dr,on:te.on,off:te.off,hideBars:S(fx,I),showBars:S(Na,I),events:Rr.registry}},hx={create:(I,W,te)=>{const me=Gr,Le=oi,Ue=dx(I),nt=Wm({beforeResize:Mf(["table","type"]),afterResize:Mf(["table","type"]),startDrag:Mf([])});return Ue.events.adjustHeight.bind(xt=>{const Lt=xt.table;nt.trigger.beforeResize(Lt,"row");const Jt=me.delta(xt.delta,Lt);lw(Lt,Jt,xt.row,me),nt.trigger.afterResize(Lt,"row")}),Ue.events.startAdjust.bind(xt=>{nt.trigger.startDrag()}),Ue.events.adjustWidth.bind(xt=>{const Lt=xt.table;nt.trigger.beforeResize(Lt,"col");const Jt=Le.delta(xt.delta,Lt),Tn=te(Lt);u1(Lt,Jt,xt.column,W,Tn),nt.trigger.afterResize(Lt,"col")}),{on:Ue.on,off:Ue.off,refreshBars:Ue.refresh,hideBars:Ue.hideBars,showBars:Ue.showBars,destroy:Ue.destroy,events:nt.registry}}},bC={only:(I,W)=>{const te=vt(I)?or(I):I;return{parent:C(te),view:C(I),origin:C(pu(0,0)),isResizable:W}},detached:(I,W,te)=>{const me=()=>Jc(W);return{parent:C(W),view:C(I),origin:me,isResizable:te}},body:(I,W,te)=>({parent:C(W),view:C(I),origin:C(pu(0,0)),isResizable:te})},S_=()=>{const I=zt.fromTag("div");return sl(I,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),_t(yi(),I),I},xC=(I,W)=>I.inline?bC.body(zt.fromDom(I.getBody()),S_(),W):bC.only(zt.fromDom(I.getDoc()),W),T_=(I,W)=>{I.inline&&bn(W.parent())},ya=I=>i(I)&&I.nodeName==="TABLE",Ru="bar-",Zm=I=>Et(I,"data-mce-resize")!=="false",k_=I=>{const W=aa.fromTable(I);aa.hasColumns(W)||Q(ju(I),te=>{const me=Ei(te,"width");Ps(te,"width",me),tn(te,"width")})},Hv=I=>{const W=Rv(),te=Rv(),me=Rv();let Le,Ue;const nt=Jn=>sc(I,Jn),xt=()=>Cl(I)?ew():B3(),Lt=Jn=>Jp(Jn).columns,Jt=(Jn,Or,Kn)=>{const oo=gc(Or,"e");if(Ue===""&&tf(Jn),Kn!==Le&&Ue!==""){Ps(Jn,"width",Ue);const Ro=xt(),Qo=nt(Jn),_s=Cl(I)||oo?Lt(Jn)-1:0;u1(Jn,Kn-Le,_s,Ro,Qo)}else if(ab(Ue)){const Ro=parseFloat(Ue.replace("%","")),Qo=Kn*Ro/Le;Ps(Jn,"width",Qo+"%")}q0(Ue)&&k_(Jn)},Tn=()=>{te.on(Jn=>{Jn.destroy()}),me.on(Jn=>{T_(I,Jn)})};return I.on("init",()=>{const Jn=xC(I,Zm);if(me.set(Jn),xc(I)&&Tl(I)){const Or=xt(),Kn=hx.create(Jn,Or,nt);Kn.on(),Kn.events.startDrag.bind(oo=>{W.set(I.selection.getRng())}),Kn.events.beforeResize.bind(oo=>{const Ro=oo.table.dom;Mw(I,Ro,Sm(Ro),Tm(Ro),Ru+oo.type)}),Kn.events.afterResize.bind(oo=>{const Ro=oo.table,Qo=Ro.dom;Xf(Ro),W.on(_s=>{I.selection.setRng(_s),I.focus()}),y4(I,Qo,Sm(Qo),Tm(Qo),Ru+oo.type),I.undoManager.add()}),te.set(Kn)}}),I.on("ObjectResizeStart",Jn=>{const Or=Jn.target;if(ya(Or)){const Kn=zt.fromDom(Or);Q(I.dom.select(".mce-clonedresizable"),oo=>{I.dom.addClass(oo,"mce-"+tc(I)+"-columns")}),!x1(Kn)&&Sl(I)?vv(Kn):!b1(Kn)&&qu(I)&&tf(Kn),Nb(Kn)&&Uf(Jn.origin,Ru)&&tf(Kn),Le=Jn.width,Ue=wi(I)?"":D3(I,Or).getOr("")}}),I.on("ObjectResized",Jn=>{const Or=Jn.target;if(ya(Or)){const Kn=zt.fromDom(Or),oo=Jn.origin;Uf(oo,"corner-")&&Jt(Kn,oo,Jn.width),Xf(Kn),Xg(I,Kn.dom,Oh)}}),I.on("SwitchMode",()=>{te.on(Jn=>{I.mode.isReadOnly()?Jn.hideBars():Jn.showBars()})}),I.on("dragstart dragend",Jn=>{te.on(Or=>{Jn.type==="dragstart"?(Or.hideBars(),Or.off()):(Or.on(),Or.showBars())})}),I.on("remove",()=>{Tn()}),{refresh:Jn=>{te.on(Or=>Or.refreshBars(zt.fromDom(Jn)))},hide:()=>{te.on(Jn=>Jn.hideBars())},show:()=>{te.on(Jn=>Jn.showBars())}}},_a=I=>{Di(I);const W=Hv(I),te=mC(I,W),me=Pb(I,W,te);return bv(I,me),N4(I,me),ZE(I,me),{getSelectedCells:te.getSelectedCells,clearSelectedCells:te.clearSelectedCells}},A_=I=>({table:_a(I)});var wC=()=>{o.add("dom",A_)};wC()})();(function(){const o=Object.getPrototypeOf,b=(t,a,p)=>{var E;return p(t,a.prototype)?!0:((E=t.constructor)===null||E===void 0?void 0:E.name)===a.name},y=t=>{const a=typeof t;return t===null?"null":a==="object"&&Array.isArray(t)?"array":a==="object"&&b(t,String,(p,E)=>E.isPrototypeOf(p))?"string":a},T=t=>a=>y(a)===t,G=t=>a=>typeof a===t,V=t=>a=>t===a,L=(t,a)=>s(t)&&b(t,a,(p,E)=>o(p)===E),A=T("string"),s=T("object"),m=t=>L(t,Object),h=T("array"),l=V(null),c=G("boolean"),i=V(void 0),u=t=>t==null,d=t=>!u(t),g=G("function"),v=G("number"),x=(t,a)=>{if(h(t)){for(let p=0,E=t.length;p{},_=t=>()=>t(),$=(t,a)=>(...p)=>t(a.apply(null,p)),S=(t,a)=>p=>t(a(p)),O=t=>()=>t,D=t=>t,N=(t,a)=>t===a;function M(t,...a){return(...p)=>{const E=a.concat(p);return t.apply(null,E)}}const k=t=>a=>!t(a),R=t=>()=>{throw new Error(t)},F=t=>t(),H=O(!1),j=O(!0);class P{constructor(a,p){this.tag=a,this.value=p}static some(a){return new P(!0,a)}static none(){return P.singletonNone}fold(a,p){return this.tag?p(this.value):a()}isSome(){return this.tag}isNone(){return!this.tag}map(a){return this.tag?P.some(a(this.value)):P.none()}bind(a){return this.tag?a(this.value):P.none()}exists(a){return this.tag&&a(this.value)}forall(a){return!this.tag||a(this.value)}filter(a){return!this.tag||a(this.value)?this:P.none()}getOr(a){return this.tag?this.value:a}or(a){return this.tag?this:a}getOrThunk(a){return this.tag?this.value:a()}orThunk(a){return this.tag?this:a()}getOrDie(a){if(this.tag)return this.value;throw new Error(a??"Called getOrDie on None")}static from(a){return d(a)?P.some(a):P.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(a){this.tag&&a(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}P.singletonNone=new P(!1);const ee=Array.prototype.slice,J=Array.prototype.indexOf,K=Array.prototype.push,ae=(t,a)=>J.call(t,a),Q=(t,a)=>{const p=ae(t,a);return p===-1?P.none():P.some(p)},he=(t,a)=>ae(t,a)>-1,ge=(t,a)=>{for(let p=0,E=t.length;p{const p=[];for(let E=0;E{const p=[];for(let E=0;E{const p=t.length,E=new Array(p);for(let z=0;z{for(let p=0,E=t.length;p{for(let p=t.length-1;p>=0;p--){const E=t[p];a(E,p)}},ye=(t,a)=>{const p=[],E=[];for(let z=0,Y=t.length;z{const p=[];for(let E=0,z=t.length;E(X(t,(E,z)=>{p=a(p,E,z)}),p),ke=(t,a,p)=>(fe(t,(E,z)=>{p=a(p,E,z)}),p),Ne=(t,a,p)=>{for(let E=0,z=t.length;ENe(t,a,H),Oe=(t,a)=>{for(let p=0,E=t.length;p{const a=[];for(let p=0,E=t.length;pFe(ne(t,a)),we=(t,a)=>{for(let p=0,E=t.length;p{const a=ee.call(t,0);return a.reverse(),a},ue=(t,a)=>Ce(t,p=>!he(a,p)),pe=(t,a)=>{const p={};for(let E=0,z=t.length;E[t],Te=(t,a)=>{const p=ee.call(t,0);return p.sort(a),p},de=(t,a)=>a>=0&&ade(t,0),Re=t=>de(t,t.length-1),ze=g(Array.from)?Array.from:t=>ee.call(t),We=(t,a)=>{for(let p=0;p{const p=ot(t);for(let E=0,z=p.length;Eqe(t,(p,E)=>({k:E,v:a(p,E)})),qe=(t,a)=>{const p={};return Ge(t,(E,z)=>{const Y=a(E,z);p[Y.k]=Y.v}),p},gt=t=>(a,p)=>{t[p]=a},ut=(t,a,p,E)=>{Ge(t,(z,Y)=>{(a(z,Y)?p:E)(z,Y)})},tt=(t,a)=>{const p={},E={};return ut(t,a,gt(p),gt(E)),{t:p,f:E}},Ct=(t,a)=>{const p={};return ut(t,a,gt(p),C),p},Gt=(t,a)=>{const p=[];return Ge(t,(E,z)=>{p.push(a(E,z))}),p},Yt=(t,a)=>{const p=ot(t);for(let E=0,z=p.length;EGt(t,D),Ft=(t,a)=>pn(t,a)?P.from(t[a]):P.none(),pn=(t,a)=>dt.call(t,a),_n=(t,a)=>pn(t,a)&&t[a]!==void 0&&t[a]!==null,sn=(t,a,p=N)=>t.exists(E=>p(E,a)),Zn=(t,a,p=N)=>jn(t,a,p).getOr(t.isNone()&&a.isNone()),an=t=>{const a=[],p=E=>{a.push(E)};for(let E=0;E{const a=[];for(let p=0;pt.isSome()&&a.isSome()?P.some(p(t.getOrDie(),a.getOrDie())):P.none(),Wn=(t,a,p,E)=>t.isSome()&&a.isSome()&&p.isSome()?P.some(E(t.getOrDie(),a.getOrDie(),p.getOrDie())):P.none(),wn=(t,a)=>t!=null?P.some(a(t)):P.none(),lt=(t,a)=>t?P.some(a):P.none(),ft=(t,a)=>t+a,wt=(t,a)=>t.substring(a),vt=(t,a,p)=>a===""||t.length>=a.length&&t.substr(p,p+a.length)===a,$t=(t,a)=>ht(t,a)?wt(t,a.length):t,Ze=(t,a)=>pt(t,a)?t:ft(t,a),it=(t,a,p=0,E)=>{const z=t.indexOf(a,p);return z!==-1?i(E)?!0:z+a.length<=E:!1},ht=(t,a)=>vt(t,a,0),pt=(t,a)=>vt(t,a,t.length-a.length),Et=(t=>a=>a.replace(t,""))(/^\s+|\s+$/g),fn=t=>t.length>0,tn=t=>!fn(t),Zt=t=>t.style!==void 0&&g(t.style.getPropertyValue),Dt=(t,a)=>{const E=(a||document).createElement("div");if(E.innerHTML=t,!E.hasChildNodes()||E.childNodes.length>1){const z="HTML does not have a single root node";throw console.error(z,t),new Error(z)}return tr(E.childNodes[0])},un=(t,a)=>{const E=(a||document).createElement(t);return tr(E)},Un=(t,a)=>{const E=(a||document).createTextNode(t);return tr(E)},tr=t=>{if(t==null)throw new Error("Node cannot be null or undefined");return{dom:t}},zt={fromHtml:Dt,fromTag:un,fromText:Un,fromDom:tr,fromPoint:(t,a,p)=>P.from(t.dom.elementFromPoint(a,p)).map(tr)},pr=typeof window<"u"?window:Function("return this;")(),Gn=(t,a)=>{let p=a??pr;for(let E=0;E{const p=t.split(".");return Gn(p,a)},Tr=(t,a)=>Ir(t,a),rr=(t,a)=>{const p=Tr(t,a);if(p==null)throw new Error(t+" not available on this browser");return p},Yr=Object.getPrototypeOf,_r=t=>rr("HTMLElement",t),Ln=t=>{const a=Ir("ownerDocument.defaultView",t);return s(t)&&(_r(a).prototype.isPrototypeOf(t)||/^HTML\w*Element$/.test(Yr(t).constructor.name))},xr=9,or=11,wr=1,ro=3,vo=t=>t.dom.nodeName.toLowerCase(),Cr=t=>t.dom.nodeType,He=t=>a=>Cr(a)===t,De=t=>St(t)&&Ln(t.dom),St=He(wr),kt=He(ro),Pt=He(xr),Bt=He(or),Ut=t=>a=>St(a)&&vo(a)===t,Ot=(t,a)=>{const p=t.dom;if(p.nodeType!==wr)return!1;{const E=p;if(E.matches!==void 0)return E.matches(a);if(E.msMatchesSelector!==void 0)return E.msMatchesSelector(a);if(E.webkitMatchesSelector!==void 0)return E.webkitMatchesSelector(a);if(E.mozMatchesSelector!==void 0)return E.mozMatchesSelector(a);throw new Error("Browser lacks native selectors")}},_t=t=>t.nodeType!==wr&&t.nodeType!==xr&&t.nodeType!==or||t.childElementCount===0,qt=(t,a)=>{const p=a===void 0?document:a.dom;return _t(p)?[]:ne(p.querySelectorAll(t),zt.fromDom)},cn=(t,a)=>{const p=a===void 0?document:a.dom;return _t(p)?P.none():P.from(p.querySelector(t)).map(zt.fromDom)},Qt=(t,a)=>t.dom===a.dom,nn=(t,a)=>{const p=t.dom,E=a.dom;return p===E?!1:p.contains(E)},Sn=t=>zt.fromDom(t.dom.ownerDocument),bn=t=>Pt(t)?t:Sn(t),gn=t=>zt.fromDom(bn(t).dom.documentElement),Qn=t=>zt.fromDom(bn(t).dom.defaultView),Bn=t=>P.from(t.dom.parentNode).map(zt.fromDom),Hr=t=>Bn(t),fr=t=>P.from(t.dom.parentElement).map(zt.fromDom),Vr=(t,a)=>{const p=g(a)?a:H;let E=t.dom;const z=[];for(;E.parentNode!==null&&E.parentNode!==void 0;){const Y=E.parentNode,re=zt.fromDom(Y);if(z.push(re),p(re)===!0)break;E=Y}return z},ar=t=>P.from(t.dom.offsetParent).map(zt.fromDom),cr=t=>P.from(t.dom.nextSibling).map(zt.fromDom),Kr=t=>ne(t.dom.childNodes,zt.fromDom),qr=(t,a)=>{const p=t.dom.childNodes;return P.from(p[a]).map(zt.fromDom)},So=t=>qr(t,0),wa=(t,a)=>({element:t,offset:a}),bo=(t,a)=>{const p=Kr(t);return p.length>0&&aBt(t)&&d(t.dom.host),oa=g(Element.prototype.attachShadow)&&g(Node.prototype.getRootNode),Va=O(oa),Yo=oa?t=>zt.fromDom(t.dom.getRootNode()):bn,Fa=t=>Zo(t)?t:zt.fromDom(bn(t).dom.body),Os=t=>Zl(t).isSome(),Zl=t=>{const a=Yo(t);return Zo(a)?P.some(a):P.none()},Ys=t=>zt.fromDom(t.dom.host),Ec=t=>{if(Va()&&d(t.target)){const a=zt.fromDom(t.target);if(St(a)&&ks(a)&&t.composed&&t.composedPath){const p=t.composedPath();if(p)return Me(p)}}return P.from(t.target)},ks=t=>d(t.dom.shadowRoot),Wa=t=>{const a=kt(t)?t.dom.parentNode:t.dom;if(a==null||a.ownerDocument===null)return!1;const p=a.ownerDocument;return Zl(zt.fromDom(a)).fold(()=>p.body.contains(a),S(Wa,Ys))},ss=()=>Ya(zt.fromDom(document)),Ya=t=>{const a=t.dom.body;if(a==null)throw new Error("Body is not available yet");return zt.fromDom(a)},_c=(t,a,p)=>{if(A(p)||c(p)||v(p))t.setAttribute(a,p+"");else throw console.error("Invalid call to Attribute.set. Key ",a,":: Value ",p,":: Element ",t),new Error("Attribute value was not simple")},Lr=(t,a,p)=>{_c(t.dom,a,p)},jl=(t,a)=>{const p=t.dom;Ge(a,(E,z)=>{_c(p,z,E)})},Ka=(t,a)=>{const p=t.dom.getAttribute(a);return p===null?void 0:p},yi=(t,a)=>P.from(Ka(t,a)),Hf=(t,a)=>{const p=t.dom;return p&&p.hasAttribute?p.hasAttribute(a):!1},Xa=(t,a)=>{t.dom.removeAttribute(a)},Zc=t=>ke(t.dom.attributes,(a,p)=>(a[p.name]=p.value,a),{}),zf=(t,a,p)=>{if(!A(p))throw console.error("Invalid call to CSS.set. Property ",a,":: Value ",p,":: Element ",t),new Error("CSS value must be a string: "+p);Zt(t)&&t.style.setProperty(a,p)},jc=(t,a)=>{Zt(t)&&t.style.removeProperty(a)},To=(t,a,p)=>{const E=t.dom;zf(E,a,p)},Mi=(t,a)=>{const p=t.dom;Ge(a,(E,z)=>{zf(p,z,E)})},ur=(t,a)=>{const p=t.dom;Ge(a,(E,z)=>{E.fold(()=>{jc(p,z)},Y=>{zf(p,z,Y)})})},Ms=(t,a)=>{const p=t.dom,z=window.getComputedStyle(p).getPropertyValue(a);return z===""&&!Wa(t)?li(p,a):z},li=(t,a)=>Zt(t)?t.style.getPropertyValue(a):"",Rs=(t,a)=>{const p=t.dom,E=li(p,a);return P.from(E).filter(z=>z.length>0)},Es=t=>{const a={},p=t.dom;if(Zt(p))for(let E=0;E{const E=zt.fromTag(t);return To(E,a,p),Rs(E,a).isSome()},Bo=(t,a)=>{const p=t.dom;jc(p,a),sn(yi(t,"style").map(Et),"")&&Xa(t,"style")},Ks=t=>t.dom.offsetWidth,Bs=(t,a)=>{const p=(xe,Ee)=>{if(!v(Ee)&&!Ee.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+Ee);const Be=xe.dom;Zt(Be)&&(Be.style[t]=Ee+"px")},E=xe=>{const Ee=a(xe);if(Ee<=0||Ee===null){const Be=Ms(xe,t);return parseFloat(Be)||0}return Ee},z=E,Y=(xe,Ee)=>ke(Ee,(Be,je)=>{const et=Ms(xe,je),st=et===void 0?0:parseInt(et,10);return isNaN(st)?Be:Be+st},0);return{set:p,get:E,getOuter:z,aggregate:Y,max:(xe,Ee,Be)=>{const je=Y(xe,Be);return Ee>je?Ee-je:0}}},df=Bs("height",t=>{const a=t.dom;return Wa(t)?a.getBoundingClientRect().height:a.offsetHeight}),Ls=t=>df.get(t),cu=t=>df.getOuter(t),uu=(t,a)=>{const p=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],E=df.max(t,a,p);To(t,"max-height",E+"px")},Vf=(t,a)=>({left:t,top:a,translate:(E,z)=>Vf(t+E,a+z)}),Ma=Vf,Uf=t=>{const a=t.getBoundingClientRect();return Ma(a.left,a.top)},gc=(t,a)=>t!==void 0?t:a!==void 0?a:0,al=t=>{const a=t.dom.ownerDocument,p=a.body,E=a.defaultView,z=a.documentElement;if(p===t.dom)return Ma(p.offsetLeft,p.offsetTop);const Y=gc(E==null?void 0:E.pageYOffset,z.scrollTop),re=gc(E==null?void 0:E.pageXOffset,z.scrollLeft),xe=gc(z.clientTop,p.clientTop),Ee=gc(z.clientLeft,p.clientLeft);return wd(t).translate(re-Ee,Y-xe)},wd=t=>{const a=t.dom,E=a.ownerDocument.body;return E===a?Ma(E.offsetLeft,E.offsetTop):Wa(t)?Uf(a):Ma(0,0)},dh=Bs("width",t=>t.dom.offsetWidth),La=(t,a)=>dh.set(t,a),ci=t=>dh.get(t),Wu=t=>dh.getOuter(t),P2=(t,a)=>{const p=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],E=dh.max(t,a,p);To(t,"max-width",E+"px")},Ps=t=>{let a=!1,p;return(...E)=>(a||(a=!0,p=t.apply(null,E)),p)},sl=(t,a,p,E)=>{const z=t.isiOS()&&/ipad/i.test(p)===!0,Y=t.isiOS()&&!z,re=t.isiOS()||t.isAndroid(),xe=re||E("(pointer:coarse)"),Ee=z||!Y&&re&&E("(min-device-width:768px)"),Be=Y||re&&!Ee,je=a.isSafari()&&t.isiOS()&&/safari/i.test(p)===!1,et=!Be&&!Ee&&!je;return{isiPad:O(z),isiPhone:O(Y),isTablet:O(Ee),isPhone:O(Be),isTouch:O(xe),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:O(je),isDesktop:O(et)}},Ei=(t,a)=>{for(let p=0;p{const p=Ei(t,a);if(!p)return{major:0,minor:0};const E=z=>Number(a.replace(p,"$"+z));return fu(E(1),E(2))},Ag=(t,a)=>{const p=String(a).toLowerCase();return t.length===0?Yc():Zy(t,p)},Yc=()=>fu(0,0),fu=(t,a)=>({major:t,minor:a}),ws={nu:fu,detect:Ag,unknown:Yc},Kc=(t,a)=>We(a.brands,p=>{const E=p.brand.toLowerCase();return Ve(t,z=>{var Y;return E===((Y=z.brand)===null||Y===void 0?void 0:Y.toLowerCase())}).map(z=>({current:z.name,version:ws.nu(parseInt(p.version,10),0)}))}),il=(t,a)=>{const p=String(a).toLowerCase();return Ve(t,E=>E.search(p))},Yl=(t,a)=>il(t,a).map(p=>{const E=ws.detect(p.versionRegexes,a);return{current:p.name,version:E}}),Gu=(t,a)=>il(t,a).map(p=>{const E=ws.detect(p.versionRegexes,a);return{current:p.name,version:E}}),Xs=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Zu=t=>a=>it(a,t),Mg=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:t=>it(t,"edge/")&&it(t,"chrome")&&it(t,"safari")&&it(t,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Xs],search:t=>it(t,"chrome")&&!it(t,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:t=>it(t,"msie")||it(t,"trident")},{name:"Opera",versionRegexes:[Xs,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Zu("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Zu("firefox")},{name:"Safari",versionRegexes:[Xs,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:t=>(it(t,"safari")||it(t,"mobile/"))&&it(t,"applewebkit")}],Eg=[{name:"Windows",search:Zu("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:t=>it(t,"iphone")||it(t,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Zu("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Zu("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Zu("linux"),versionRegexes:[]},{name:"Solaris",search:Zu("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Zu("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Zu("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],D0={browsers:O(Mg),oses:O(Eg)},Dp="Edge",ju="Chromium",_g="IE",Kl="Opera",$p="Firefox",$0="Safari",hh=()=>O0({current:void 0,version:ws.unknown()}),O0=t=>{const a=t.current,p=t.version,E=z=>()=>a===z;return{current:a,version:p,isEdge:E(Dp),isChromium:E(ju),isIE:E(_g),isOpera:E(Kl),isFirefox:E($p),isSafari:E($0)}},mh={unknown:hh,nu:O0,edge:O(Dp),chromium:O(ju),ie:O(_g),opera:O(Kl),firefox:O($p),safari:O($0)},jy="Windows",Cd="iOS",Yy="Android",Ky="Linux",Xy="macOS",gh="Solaris",P0="FreeBSD",jt="ChromeOS",ph=()=>du({current:void 0,version:ws.unknown()}),du=t=>{const a=t.current,p=t.version,E=z=>()=>a===z;return{current:a,version:p,isWindows:E(jy),isiOS:E(Cd),isAndroid:E(Yy),isMacOS:E(Xy),isLinux:E(Ky),isSolaris:E(gh),isFreeBSD:E(P0),isChromeOS:E(jt)}},Op={unknown:ph,nu:du,windows:O(jy),ios:O(Cd),android:O(Yy),linux:O(Ky),macos:O(Xy),solaris:O(gh),freebsd:O(P0),chromeos:O(jt)},I2={detect:(t,a,p)=>{const E=D0.browsers(),z=D0.oses(),Y=a.bind(Ee=>Kc(E,Ee)).orThunk(()=>Yl(E,t)).fold(mh.unknown,mh.nu),re=Gu(z,t).fold(Op.unknown,Op.nu),xe=sl(re,Y,t,p);return{browser:Y,os:re,deviceType:xe}}},Ba=t=>window.matchMedia(t).matches;let Dl=Ps(()=>I2.detect(navigator.userAgent,P.from(navigator.userAgentData),Ba));const hf=()=>Dl(),mf=(t,a,p,E,z,Y,re)=>({target:t,x:a,y:p,stop:E,prevent:z,kill:Y,raw:re}),I0=t=>{const a=zt.fromDom(Ec(t).getOr(t.target)),p=()=>t.stopPropagation(),E=()=>t.preventDefault(),z=$(E,p);return mf(a,t.clientX,t.clientY,p,E,z,t)},mm=(t,a)=>p=>{t(p)&&a(I0(p))},Rc=(t,a,p,E,z)=>{const Y=mm(p,E);return t.dom.addEventListener(a,Y,z),{unbind:M(Jy,t,a,Y,z)}},gm=(t,a,p,E)=>Rc(t,a,p,E,!1),N0=(t,a,p,E)=>Rc(t,a,p,E,!0),Jy=(t,a,p,E)=>{t.dom.removeEventListener(a,p,E)},hu=(t,a)=>{Bn(t).each(E=>{E.dom.insertBefore(a.dom,t.dom)})},Lg=(t,a)=>{cr(t).fold(()=>{Bn(t).each(z=>{pc(z,a)})},E=>{hu(E,a)})},F0=(t,a)=>{So(t).fold(()=>{pc(t,a)},E=>{t.dom.insertBefore(a.dom,E.dom)})},pc=(t,a)=>{t.dom.appendChild(a.dom)},zi=(t,a,p)=>{qr(t,p).fold(()=>{pc(t,a)},E=>{hu(E,a)})},Sd=(t,a)=>{fe(a,p=>{pc(t,p)})},pm=t=>{t.dom.textContent="",fe(Kr(t),a=>{Xl(a)})},Xl=t=>{const a=t.dom;a.parentNode!==null&&a.parentNode.removeChild(a)},ll=t=>{const a=t!==void 0?t.dom:document,p=a.body.scrollLeft||a.documentElement.scrollLeft,E=a.body.scrollTop||a.documentElement.scrollTop;return Ma(p,E)},mu=(t,a,p)=>{const z=(p!==void 0?p.dom:document).defaultView;z&&z.scrollTo(t,a)},Qy=t=>{const a=t===void 0?window:t;return hf().browser.isFirefox()?P.none():P.from(a.visualViewport)},Dg=(t,a,p,E)=>({x:t,y:a,width:p,height:E,right:t+p,bottom:a+E}),B0=t=>{const a=t===void 0?window:t,p=a.document,E=ll(zt.fromDom(p));return Qy(a).fold(()=>{const z=a.document.documentElement,Y=z.clientWidth,re=z.clientHeight;return Dg(E.left,E.top,Y,re)},z=>Dg(Math.max(z.pageLeft,E.left),Math.max(z.pageTop,E.top),z.width,z.height))},Pp=()=>zt.fromDom(document),Yu=(t,a)=>t.view(a).fold(O([]),E=>{const z=t.owner(E),Y=Yu(t,z);return[E].concat(Y)}),qy=(t,a)=>{const p=a.owner(t),E=Yu(a,p);return P.some(E)};var N2=Object.freeze({__proto__:null,view:t=>{var a;return(t.dom===document?P.none():P.from((a=t.dom.defaultView)===null||a===void 0?void 0:a.frameElement)).map(zt.fromDom)},owner:t=>Sn(t)});const $g=t=>{const a=Pp(),p=ll(a);return qy(t,N2).fold(M(al,t),z=>{const Y=wd(t),re=$e(z,(xe,Ee)=>{const Be=wd(Ee);return{left:xe.left+Be.left,top:xe.top+Be.top}},{left:0,top:0});return Ma(re.left+Y.left+p.left,re.top+Y.top+p.top)})},Ip=(t,a,p)=>({point:t,width:a,height:p}),Td=(t,a,p,E)=>({x:t,y:a,width:p,height:E}),Hs=(t,a,p,E)=>({x:t,y:a,width:p,height:E,right:t+p,bottom:a+E}),Js=t=>{const a=al(t),p=Wu(t),E=cu(t);return Hs(a.left,a.top,p,E)},Xc=t=>{const a=$g(t),p=Wu(t),E=cu(t);return Hs(a.left,a.top,p,E)},H0=(t,a)=>{const p=Math.max(t.x,a.x),E=Math.max(t.y,a.y),z=Math.min(t.right,a.right),Y=Math.min(t.bottom,a.bottom),re=z-p,xe=Y-E;return Hs(p,E,re,xe)},eb=(t,a)=>ke(a,(p,E)=>H0(p,E),t),bl=()=>B0(window);var vm=tinymce.util.Tools.resolve("tinymce.ThemeManager");const Jl=t=>{const a=Y=>Y(t),p=O(t),E=()=>z,z={tag:!0,inner:t,fold:(Y,re)=>re(t),isValue:j,isError:H,map:Y=>Wo.value(Y(t)),mapError:E,bind:a,exists:a,forall:a,getOr:p,or:E,getOrThunk:p,orThunk:E,getOrDie:p,each:Y=>{Y(t)},toOptional:()=>P.some(t)};return z},Ku=t=>{const a=()=>p,p={tag:!1,inner:t,fold:(E,z)=>E(t),isValue:H,isError:j,map:a,mapError:E=>Wo.error(E(t)),bind:a,exists:H,forall:j,getOr:D,or:D,getOrThunk:F,orThunk:F,getOrDie:R(String(t)),each:C,toOptional:P.none};return p},Wo={value:Jl,error:Ku,fromOption:(t,a)=>t.fold(()=>Ku(a),Jl)};var vc;(function(t){t[t.Error=0]="Error",t[t.Value=1]="Value"})(vc||(vc={}));const kd=(t,a,p)=>t.stype===vc.Error?a(t.serror):p(t.svalue),vh=t=>{const a=[],p=[];return fe(t,E=>{kd(E,z=>p.push(z),z=>a.push(z))}),{values:a,errors:p}},V0=(t,a)=>t.stype===vc.Error?{stype:vc.Error,serror:a(t.serror)}:t,U0=(t,a)=>t.stype===vc.Value?{stype:vc.Value,svalue:a(t.svalue)}:t,$l=(t,a)=>t.stype===vc.Value?a(t.svalue):t,ui=(t,a)=>t.stype===vc.Error?a(t.serror):t,Lc=t=>({stype:vc.Value,svalue:t}),_i=t=>({stype:vc.Error,serror:t}),fi={fromResult:t=>t.fold(_i,Lc),toResult:t=>kd(t,Wo.error,Wo.value),svalue:Lc,partition:vh,serror:_i,bind:$l,bindError:ui,map:U0,mapError:V0,fold:kd},Ri=(t,a,p,E)=>({tag:"field",key:t,newKey:a,presence:p,prop:E}),gu=(t,a)=>({tag:"custom",newKey:t,instantiator:a}),yh=(t,a,p)=>{switch(t.tag){case"field":return a(t.key,t.newKey,t.presence,t.prop);case"custom":return p(t.newKey,t.instantiator)}},di=(t,a)=>a,ym=(t,a)=>m(t)&&m(a)?hs(t,a):a,Og=t=>(...a)=>{if(a.length===0)throw new Error("Can't merge zero objects");const p={};for(let E=0;E({tag:"required",process:{}}),Xu=t=>({tag:"defaultedThunk",process:t}),G0=t=>Xu(O(t)),Pg=()=>({tag:"option",process:{}}),aa=t=>({tag:"mergeWithThunk",process:t}),bh=t=>aa(O(t)),Fp=(t,a)=>t.length>0?fi.svalue(hs(a,Ad.apply(void 0,t))):fi.svalue(a),Ig=t=>$(fi.serror,Fe)(t),Z0={consolidateObj:(t,a)=>{const p=fi.partition(t);return p.errors.length>0?Ig(p.errors):Fp(p.values,a)},consolidateArr:t=>{const a=fi.partition(t);return a.errors.length>0?Ig(a.errors):fi.svalue(a.values)}},xh=t=>s(t)&&ot(t).length>100?" removed due to size":JSON.stringify(t,null,2),Bp=t=>{const a=t.length>10?t.slice(0,10).concat([{path:[],getErrorInfo:O("... (only showing first ten failures)")}]):t;return ne(a,p=>"Failed path: ("+p.path.join(" > ")+`) -`+p.getErrorInfo())},wh=(t,a)=>fi.serror([{path:t,getErrorInfo:a}]),bm=(t,a,p)=>wh(t,()=>'Could not find valid *required* value for "'+a+'" in '+xh(p)),tb=(t,a)=>wh(t,()=>'Choice schema did not contain choice key: "'+a+'"'),pu=(t,a,p)=>wh(t,()=>'The chosen schema: "'+p+'" did not exist in branches: '+xh(a)),nb=(t,a)=>wh(t,()=>"There are unsupported fields: ["+a.join(", ")+"] specified"),Ch=(t,a)=>wh(t,O(a)),Jc=t=>{const a=(E,z)=>fi.bindError(t(z),Y=>Ch(E,Y)),p=O("val");return{extract:a,toString:p}},Hp=Jc(fi.svalue),j0=(t,a,p,E)=>Ft(a,p).fold(()=>bm(t,p,a),E),xm=(t,a,p,E)=>{const z=Ft(t,a).getOrThunk(()=>p(t));return E(z)},Y0=(t,a,p)=>p(Ft(t,a)),K0=(t,a,p,E)=>{const z=Ft(t,a).map(Y=>Y===!0?p(t):Y);return E(z)},X0=(t,a,p,E,z)=>{const Y=xe=>z.extract(a.concat([E]),xe),re=xe=>xe.fold(()=>fi.svalue(P.none()),Ee=>{const Be=z.extract(a.concat([E]),Ee);return fi.map(Be,P.some)});switch(t.tag){case"required":return j0(a,p,E,Y);case"defaultedThunk":return xm(p,E,t.process,Y);case"option":return Y0(p,E,re);case"defaultedOptionThunk":return K0(p,E,t.process,re);case"mergeWithThunk":return xm(p,E,O({}),xe=>{const Ee=hs(t.process(p),xe);return Y(Ee)})}},zp=(t,a,p)=>{const E={},z=[];for(const Y of p)yh(Y,(re,xe,Ee,Be)=>{const je=X0(Ee,t,a,re,Be);fi.fold(je,et=>{z.push(...et)},et=>{E[xe]=et})},(re,xe)=>{E[re]=xe(a)});return z.length>0?fi.serror(z):fi.svalue(E)},Vi=t=>({extract:(E,z)=>t().extract(E,z),toString:()=>t().toString()}),Ng=t=>ot(Ct(t,d)),es=t=>{const a=io(t),p=$e(t,(z,Y)=>yh(Y,re=>hs(z,{[re]:!0}),O(z)),{});return{extract:(z,Y)=>{const re=c(Y)?[]:Ng(Y),xe=Ce(re,Ee=>!_n(p,Ee));return xe.length===0?a.extract(z,Y):nb(z,xe)},toString:a.toString}},io=t=>({extract:(E,z)=>zp(E,z,t),toString:()=>`obj{ -`+ne(t,z=>yh(z,(Y,re,xe,Ee)=>Y+" -> "+Ee.toString(),(Y,re)=>"state("+Y+")")).join(` -`)+"}"}),vu=t=>({extract:(E,z)=>{const Y=ne(z,(re,xe)=>t.extract(E.concat(["["+xe+"]"]),re));return Z0.consolidateArr(Y)},toString:()=>"array("+t.toString()+")"}),Gr=(t,a)=>{const p=a!==void 0?a:D;return{extract:(Y,re)=>{const xe=[];for(const Ee of t){const Be=Ee.extract(Y,re);if(Be.stype===vc.Value)return{stype:vc.Value,svalue:p(Be.svalue)};xe.push(Be)}return Z0.consolidateArr(xe)},toString:()=>"oneOf("+ne(t,Y=>Y.toString()).join(", ")+")"}},xl=(t,a)=>{const p=(Y,re)=>vu(Jc(t)).extract(Y,re);return{extract:(Y,re)=>{const xe=ot(re),Ee=p(Y,xe);return fi.bind(Ee,Be=>{const je=ne(Be,et=>Ri(et,et,Ua(),a));return io(je).extract(Y,re)})},toString:()=>"setOf("+a.toString()+")"}},H2=(t,a)=>{const p=Ps(a);return{extract:(Y,re)=>p().extract(Y,re),toString:()=>p().toString()}},Wf=$(vu,io),oi=O(Hp),Gf=(t,a)=>Jc(p=>{const E=typeof p;return t(p)?fi.svalue(p):fi.serror(`Expected type: ${a} but got: ${E}`)}),Fg=Gf(v,"number"),Ui=Gf(A,"string"),Ju=Gf(c,"boolean"),Sh=Gf(g,"function"),yu=t=>{if(Object(t)!==t)return!0;switch({}.toString.call(t).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(t).every(a=>yu(t[a]));default:return!1}},J0=Jc(t=>yu(t)?fi.svalue(t):fi.serror("Expected value to be acceptable for sending via postMessage")),Vp=(t,a,p,E)=>Ft(p,E).fold(()=>pu(t,p,E),Y=>Y.extract(t.concat(["branch: "+E]),a)),ir=(t,a)=>({extract:(z,Y)=>Ft(Y,t).fold(()=>tb(z,t),xe=>Vp(z,Y,a,xe)),toString:()=>"chooseOn("+t+"). Possible values: "+ot(a)}),rb=()=>vu(Hp),cl=t=>Jc(a=>t(a).fold(fi.serror,fi.svalue)),gf=(t,a)=>xl(p=>fi.fromResult(t(p)),a),wm=(t,a,p)=>{const E=a.extract([t],p);return fi.mapError(E,z=>({input:p,errors:z}))},ns=(t,a,p)=>fi.toResult(wm(t,a,p)),Ja=t=>t.fold(a=>{throw new Error(wl(a))},D),ul=(t,a,p)=>Ja(ns(t,a,p)),wl=t=>`Errors: -`+Bp(t.errors).join(` -`)+` - -Input object: `+xh(t.input),fa=(t,a)=>ir(t,Xe(a,io)),Bg=(t,a)=>H2(t,a),Wi=Ri,zs=gu,Hg=t=>cl(a=>he(t,a)?Wo.value(a):Wo.error(`Unsupported value: "${a}", choose one of "${t.join(", ")}".`)),qn=t=>Wi(t,t,Ua(),oi()),yc=(t,a)=>Wi(t,t,Ua(),a),Cm=t=>yc(t,Fg),Da=t=>yc(t,Ui),Qu=(t,a)=>Wi(t,t,Ua(),Hg(a)),z2=t=>yc(t,Ju),bu=t=>yc(t,Sh),Up=(t,a)=>Wi(t,t,Pg(),Jc(p=>fi.serror("The field: "+t+" is forbidden. "+a))),Dc=(t,a)=>Wi(t,t,Ua(),io(a)),Wp=(t,a)=>Wi(t,t,Ua(),Wf(a)),Ol=(t,a)=>Wi(t,t,Ua(),vu(a)),Ia=t=>Wi(t,t,Pg(),oi()),$c=(t,a)=>Wi(t,t,Pg(),a),Qs=t=>$c(t,Fg),Gi=t=>$c(t,Ui),Zf=(t,a)=>$c(t,Hg(a)),pf=t=>$c(t,Sh),jf=(t,a)=>$c(t,vu(a)),Ql=(t,a)=>$c(t,io(a)),vf=(t,a)=>$c(t,es(a)),En=(t,a)=>Wi(t,t,G0(a),oi()),ql=(t,a,p)=>Wi(t,t,G0(a),p),yf=(t,a)=>ql(t,a,Fg),bf=(t,a)=>ql(t,a,Ui),bc=(t,a,p)=>ql(t,a,Hg(p)),Li=(t,a)=>ql(t,a,Ju),bi=(t,a)=>ql(t,a,Sh),L3=(t,a)=>ql(t,a,J0),ec=(t,a,p)=>ql(t,a,vu(p)),U=(t,a,p)=>ql(t,a,io(p)),q=t=>{let a=t;return{get:()=>a,set:z=>{a=z}}},Ae={generate:t=>{if(!h(t))throw new Error("cases must be an array");if(t.length===0)throw new Error("there must be at least one case");const a=[],p={};return fe(t,(E,z)=>{const Y=ot(E);if(Y.length!==1)throw new Error("one and only one name per case");const re=Y[0],xe=E[re];if(p[re]!==void 0)throw new Error("duplicate key detected:"+re);if(re==="cata")throw new Error("cannot have a case named cata (sorry)");if(!h(xe))throw new Error("case arguments must be an array");a.push(re),p[re]=(...Ee)=>{const Be=Ee.length;if(Be!==xe.length)throw new Error("Wrong number of arguments to case "+re+". Expected "+xe.length+" ("+xe+"), got "+Be);return{fold:(...et)=>{if(et.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+et.length);return et[z].apply(null,Ee)},match:et=>{const st=ot(et);if(a.length!==st.length)throw new Error("Wrong number of arguments to match. Expected: "+a.join(",")+` -Actual: `+st.join(","));if(!we(a,Mt=>he(st,Mt)))throw new Error("Not all branches were specified when using match. Specified: "+st.join(", ")+` -Required: `+a.join(", "));return et[re].apply(null,Ee)},log:et=>{console.log(et,{constructors:a,constructor:re,params:Ee})}}}}),p}};Ae.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const _e=t=>{const a=[],p=[];return fe(t,E=>{E.fold(z=>{a.push(z)},z=>{p.push(z)})}),{errors:a,values:p}},Ie=(t,a)=>{const p={};return Ge(t,(E,z)=>{he(a,z)||(p[z]=E)}),p},Qe=(t,a)=>({[t]:a}),Ye=t=>{const a={};return fe(t,p=>{a[p.key]=p.value}),a},rt=(t,a)=>Ie(t,a),yt=(t,a)=>Qe(t,a),bt=t=>Ye(t),Vt=(t,a)=>t.length===0?Wo.value(a):Wo.value(hs(a,Ad.apply(void 0,t))),Wt=t=>Wo.error(Fe(t)),mn=(t,a)=>{const p=_e(t);return p.errors.length>0?Wt(p.errors):Vt(p.values,a)},An=t=>g(t)?t:H,Kt=(t,a,p)=>{let E=t.dom;const z=An(p);for(;E.parentNode;){E=E.parentNode;const Y=zt.fromDom(E),re=a(Y);if(re.isSome())return re;if(z(Y))break}return P.none()},en=(t,a,p)=>{const E=a(t),z=An(p);return E.orThunk(()=>z(t)?P.none():Kt(t,a,z))},dn=(t,a)=>Qt(t.element,a.event.target),Rn={can:j,abort:H,run:C},Mn=t=>{if(!_n(t,"can")&&!_n(t,"abort")&&!_n(t,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(t,null,2)+" does not have can, abort, or run!");return{...Rn,...t}},vn=(t,a)=>(...p)=>ke(t,(E,z)=>E&&a(z).apply(void 0,p),!0),lr=(t,a)=>(...p)=>ke(t,(E,z)=>E||a(z).apply(void 0,p),!1),zr=t=>g(t)?{can:j,abort:H,run:t}:t,Jr=t=>{const a=vn(t,z=>z.can),p=lr(t,z=>z.abort);return{can:a,abort:p,run:(...z)=>{fe(t,Y=>{Y.run.apply(void 0,z)})}}},kr=O,eo=kr("touchstart"),lo=kr("touchmove"),Ko=kr("touchend"),yo=kr("touchcancel"),fo=kr("mousedown"),Ha=kr("mousemove"),Vs=kr("mouseout"),is=kr("mouseup"),$r=kr("mouseover"),_o=kr("focusin"),sa=kr("focusout"),Ca=kr("keydown"),As=kr("keyup"),qs=kr("input"),Di=kr("change"),xi=kr("click"),xc=kr("transitioncancel"),Ii=kr("transitionend"),tc=kr("transitionstart"),Cl=kr("selectstart"),Ga=t=>O("alloy."+t),xu={tap:Ga("tap")},qu=Ga("focus"),Sl=Ga("blur.post"),wi=Ga("paste.post"),Tl=Ga("receive"),Ci=Ga("execute"),Za=Ga("focus.item"),nc=xu.tap,Yf=Ga("longpress"),wu=Ga("sandbox.close"),Th=Ga("typeahead.cancel"),Kf=Ga("system.init"),Q0=Ga("system.touchmove"),ob=Ga("system.touchend"),Md=Ga("system.scroll"),Xf=Ga("system.resize"),Cu=Ga("system.attached"),Sm=Ga("system.detached"),Tm=Ga("system.dismissRequested"),D3=Ga("system.repositionRequested"),ab=Ga("focusmanager.shifted"),q0=Ga("slotcontainer.visibility"),sb=Ga("system.external.element.scroll"),$3=Ga("change.tab"),ib=Ga("dismiss.tab"),e1=Ga("highlight"),t1=Ga("dehighlight"),pa=(t,a)=>{n1(t,t.element,a,{})},go=(t,a,p)=>{n1(t,t.element,a,p)},kh=t=>{pa(t,Ci())},lb=(t,a,p)=>{n1(t,a,p,{})},n1=(t,a,p,E)=>{const z={target:a,...E};t.getSystem().triggerEvent(p,a,z)},BE=(t,a,p,E)=>{const z={...E,target:a};t.getSystem().triggerEvent(p,a,z)},V2=(t,a,p,E)=>{t.getSystem().triggerEvent(p,a,E.event)},bs=t=>bt(t),U2=(t,a)=>({key:t,value:Mn({abort:a})}),W2=(t,a)=>({key:t,value:Mn({can:a})}),G2=t=>({key:t,value:Mn({run:(a,p)=>{p.event.prevent()}})}),Xn=(t,a)=>({key:t,value:Mn({run:a})}),cb=(t,a,p)=>({key:t,value:Mn({run:(E,z)=>{a.apply(void 0,[E,z].concat(p))}})}),HE=t=>a=>Xn(t,a),r1=t=>a=>({key:t,value:Mn({run:(p,E)=>{dn(p,E)&&a(p,E)}})}),zE=(t,a)=>Xn(t,(p,E)=>{p.getSystem().getByUid(a).each(z=>{V2(z,z.element,t,E)})}),Gp=(t,a,p)=>{const E=a.partUids[p];return zE(t,E)},Z2=(t,a)=>Xn(t,(p,E)=>{const z=E.event,Y=p.getSystem().getByDom(z.target).getOrThunk(()=>en(z.target,xe=>p.getSystem().getByDom(xe).toOptional(),H).getOr(p));a(p,Y,E)}),Ah=t=>Xn(t,(a,p)=>{p.cut()}),VE=t=>Xn(t,(a,p)=>{p.stop()}),Ed=(t,a)=>r1(t)(a),ms=r1(Cu()),_d=r1(Sm()),j2=r1(Kf()),xf=HE(Ci()),Mh=(t,a)=>{const E=(a||document).createElement("div");return E.innerHTML=t,Kr(zt.fromDom(E))},Y2=t=>t.dom.innerHTML,zg=(t,a)=>{const E=Sn(t).dom,z=zt.fromDom(E.createDocumentFragment()),Y=Mh(a,E);Sd(z,Y),pm(t),pc(t,z)},O3=t=>{const a=zt.fromTag("div"),p=zt.fromDom(t.dom.cloneNode(!0));return pc(a,p),Y2(a)},ub=(t,a)=>zt.fromDom(t.dom.cloneNode(a)),K2=t=>ub(t,!1),UE=t=>ub(t,!0),X2=t=>{if(Zo(t))return"#shadow-root";{const a=K2(t);return O3(a)}},Rd=t=>X2(t),t$=(t,a,p)=>Qt(a,t.element)&&!Qt(a,p),J2=bs([W2(qu(),(t,a)=>{const p=a.event,E=p.originator,z=p.target;return t$(t,E,z)?(console.warn(qu()+` did not get interpreted by the desired target. -Originator: `+Rd(E)+` -Target: `+Rd(z)+` -Check the `+qu()+" event handlers"),!1):!0})]);var km=Object.freeze({__proto__:null,events:J2});let kl=0;const Xr=t=>{const p=new Date().getTime(),E=Math.floor(Math.random()*1e9);return kl++,t+"_"+E+kl+String(p)},WE=O("alloy-id-"),Q2=O("data-alloy-id"),GE=WE(),P3=Q2(),Vg=(t,a)=>{const p=Xr(GE+t);return Zp(a,p),p},Zp=(t,a)=>{Object.defineProperty(t.dom,P3,{value:a,writable:!0})},o1=t=>{const a=St(t)?t.dom[P3]:null;return P.from(a)},jp=t=>Xr(t),fb=D,Eh=t=>{const a=z=>`The component must be in a context to execute: ${z}`+(t?` -`+Rd(t().element)+" is not in context.":""),p=z=>()=>{throw new Error(a(z))},E=z=>()=>{console.warn(a(z))};return{debugInfo:O("fake"),triggerEvent:E("triggerEvent"),triggerFocus:E("triggerFocus"),triggerEscape:E("triggerEscape"),broadcast:E("broadcast"),broadcastOn:E("broadcastOn"),broadcastEvent:E("broadcastEvent"),build:p("build"),buildOrPatch:p("buildOrPatch"),addToWorld:p("addToWorld"),removeFromWorld:p("removeFromWorld"),addToGui:p("addToGui"),removeFromGui:p("removeFromGui"),getByUid:p("getByUid"),getByDom:p("getByDom"),isConnected:H}},Jf=Eh(),a1=(t,a,p)=>{const E=p.toString(),z=E.indexOf(")")+1,Y=E.indexOf("("),re=E.substring(Y+1,z-1).split(/,\s*/);return t.toFunctionAnnotation=()=>({name:a,parameters:ef(re.slice(0,1).concat(re.slice(3)))}),t},ef=t=>ne(t,a=>pt(a,"/*")?a.substring(0,a.length-2):a),db=(t,a)=>{const p=t.toString(),E=p.indexOf(")")+1,z=p.indexOf("("),Y=p.substring(z+1,E-1).split(/,\s*/);return t.toFunctionAnnotation=()=>({name:a,parameters:ef(Y)}),t},I3=(t,a)=>{const p=a.toString(),E=p.indexOf(")")+1,z=p.indexOf("("),Y=p.substring(z+1,E-1).split(/,\s*/);return t.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:ef(Y.slice(1))}),t},Yp=Xr("alloy-premade"),_h=t=>(Object.defineProperty(t.element.dom,Yp,{value:t.uid,writable:!0}),yt(Yp,t)),ZE=t=>pn(t.dom,Yp),Kp=t=>Ft(t,Yp),Ug=t=>I3((a,...p)=>t(a.getApis(),a,...p),t),wf={init:()=>Qc({readState:O("No State required")})},Qc=t=>t,jE=(t,a)=>{const p=ne(a,z=>Ql(z.name(),[qn("config"),En("state",wf)])),E=ns("component.behaviours",io(p),t.behaviours).fold(z=>{throw new Error(wl(z)+` -Complete spec: -`+JSON.stringify(t,null,2))},D);return{list:a,data:Xe(E,z=>{const Y=z.map(re=>({config:re.config,state:re.state.init(re.config)}));return O(Y)})}},N3=t=>t.list,F3=t=>t.data,q2=(t,a)=>{const p={};return Ge(t,(E,z)=>{Ge(E,(Y,re)=>{const xe=Ft(p,re).getOr([]);p[re]=xe.concat([a(z,Y)])})}),p},qc=t=>({classes:i(t.classes)?[]:t.classes,attributes:i(t.attributes)?{}:t.attributes,styles:i(t.styles)?{}:t.styles}),Xp=(t,a)=>({...t,attributes:{...t.attributes,...a.attributes},styles:{...t.styles,...a.styles},classes:t.classes.concat(a.classes)}),hb=(t,a,p,E)=>{const z={...a};fe(p,je=>{z[je.name()]=je.exhibit(t,E)});const Y=q2(z,(je,et)=>({name:je,modification:et})),re=je=>$e(je,(et,st)=>({...st.modification,...et}),{}),xe=$e(Y.classes,(je,et)=>et.modification.concat(je),[]),Ee=re(Y.attributes),Be=re(Y.styles);return qc({classes:xe,attributes:Ee,styles:Be})},mb=(t,a,p,E)=>{try{const z=Te(p,(Y,re)=>{const xe=Y[a],Ee=re[a],Be=E.indexOf(xe),je=E.indexOf(Ee);if(Be===-1)throw new Error("The ordering for "+t+" does not have an entry for "+xe+`. -Order specified: `+JSON.stringify(E,null,2));if(je===-1)throw new Error("The ordering for "+t+" does not have an entry for "+Ee+`. -Order specified: `+JSON.stringify(E,null,2));return Be({handler:t,purpose:a}),B3=(t,a)=>({cHandler:t,purpose:a}),ew=(t,a)=>B3(M.apply(void 0,[t.handler].concat(a)),t.purpose),Jp=t=>t.cHandler,Qp=(t,a)=>({name:t,handler:a}),gb=(t,a)=>{const p={};return fe(t,E=>{p[E.name()]=E.handlers(a)}),p},KE=(t,a,p)=>{const E={...p,...gb(a,t)};return q2(E,Qp)},pb=(t,a,p,E)=>{const z=KE(t,p,E);return tw(z,a)},qp=t=>{const a=zr(t);return(p,E,...z)=>{const Y=[p,E].concat(z);a.abort.apply(void 0,Y)?E.stop():a.can.apply(void 0,Y)&&a.run.apply(void 0,Y)}},XE=(t,a)=>Wo.error(["The event ("+t+`) has more than one behaviour that listens to it. -When this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]). -The behaviours that can trigger it are: `+JSON.stringify(ne(a,p=>p.name),null,2)]),s1=(t,a,p)=>{const E=a[p];return E?mb("Event: "+p,"name",t,E).map(z=>{const Y=ne(z,re=>re.handler);return Jr(Y)}):XE(p,t)},tw=(t,a)=>{const p=Gt(t,(E,z)=>(E.length===1?Wo.value(E[0].handler):s1(E,a,z)).map(re=>{const xe=qp(re),Ee=E.length>1?Ce(a[z],Be=>ge(E,je=>je.name===Be)).join(" > "):E[0].name;return yt(z,YE(xe,Ee))}));return mn(p,{})},eu="alloy.base.behaviour",vb=io([Wi("dom","dom",Ua(),io([qn("tag"),En("styles",{}),En("classes",[]),En("attributes",{}),Ia("value"),Ia("innerHtml")])),qn("components"),qn("uid"),En("events",{}),En("apis",{}),Wi("eventOrder","eventOrder",bh({[Ci()]:["disabling",eu,"toggling","typeaheadevents"],[qu()]:[eu,"focusing","keying"],[Kf()]:[eu,"disabling","toggling","representing"],[qs()]:[eu,"representing","streaming","invalidating"],[Sm()]:[eu,"representing","item-events","tooltipping"],[fo()]:["focusing",eu,"item-type-events"],[eo()]:["focusing",eu,"item-type-events"],[$r()]:["item-type-events","tooltipping"],[Tl()]:["receiving","reflecting","tooltipping"]}),oi()),Ia("domModification")]),H3=t=>ns("custom.definition",vb,t),yb=t=>({...t.dom,uid:t.uid,domChildren:ne(t.components,a=>a.element)}),n$=t=>t.domModification.fold(()=>qc({}),qc),bb=t=>t.events,Am=(t,a)=>{const p=Ka(t,a);return p===void 0||p===""?[]:p.split(" ")},Ld=(t,a,p)=>{const z=Am(t,a).concat([p]);return Lr(t,a,z.join(" ")),!0},nw=(t,a,p)=>{const E=Ce(Am(t,a),z=>z!==p);return E.length>0?Lr(t,a,E.join(" ")):Xa(t,a),!1},ev=t=>t.dom.classList!==void 0,xb=t=>Am(t,"class"),z3=(t,a)=>Ld(t,"class",a),Cs=(t,a)=>nw(t,"class",a),JE=(t,a)=>he(xb(t),a)?Cs(t,a):z3(t,a),hi=(t,a)=>{ev(t)?t.dom.classList.add(a):z3(t,a)},V3=t=>{(ev(t)?t.dom.classList:xb(t)).length===0&&Xa(t,"class")},Is=(t,a)=>{ev(t)?t.dom.classList.remove(a):Cs(t,a),V3(t)},tv=(t,a)=>{const p=ev(t)?t.dom.classList.toggle(a):JE(t,a);return V3(t),p},Ni=(t,a)=>ev(t)&&t.dom.classList.contains(a),Us=(t,a)=>{fe(a,p=>{hi(t,p)})},Su=(t,a)=>{fe(a,p=>{Is(t,p)})},rw=(t,a)=>{fe(a,p=>{tv(t,p)})},Al=(t,a)=>we(a,p=>Ni(t,p)),i1=t=>{const a=t.dom.classList,p=new Array(a.length);for(let E=0;Eev(t)?i1(t):xb(t),Dd=t=>t.dom.value,rv=(t,a)=>{if(a===void 0)throw new Error("Value.set was undefined");t.dom.value=a},Mm=(t,a,p)=>qr(t,a).map(z=>{if(p.exists(re=>!Qt(re,z))){const re=p.map(vo).getOr("span"),xe=zt.fromTag(re);return hu(z,xe),xe}else return z}),Rh=(t,a,p)=>{p.fold(()=>pc(t,a),E=>{Qt(E,a)||(hu(E,a),Xl(E))})},QE=(t,a,p)=>{const E=ne(a,p),z=Kr(t);return fe(z.slice(E.length),Xl),E},U3=(t,a,p,E)=>{const z=qr(t,a),Y=E(p,z),re=Mm(t,a,z);return Rh(t,Y.element,re),Y},r$=(t,a,p)=>QE(t,a,(E,z)=>U3(t,z,E,p)),o$=(t,a)=>QE(t,a,(p,E)=>{const z=qr(t,E);return Rh(t,p,z),p}),Cf=(t,a)=>{const p=ot(t),E=ot(a),z=ue(E,p),Y=tt(t,(re,xe)=>!pn(a,xe)||re!==a[xe]).t;return{toRemove:z,toSet:Y}},rc=(t,a)=>{const{class:p,style:E,...z}=Zc(a),{toSet:Y,toRemove:re}=Cf(t.attributes,z),xe=()=>{fe(re,kn=>Xa(a,kn)),jl(a,Y)},Ee=Es(a),{toSet:Be,toRemove:je}=Cf(t.styles,Ee),et=()=>{fe(je,kn=>Bo(a,kn)),Mi(a,Be)},st=nv(a),mt=ue(st,t.classes),Mt=ue(t.classes,st),Xt=()=>{Us(a,Mt),Su(a,mt)},Dn=kn=>{zg(a,kn)},hn=()=>{const kn=t.domChildren;o$(a,kn)},rn=()=>{const kn=a,Vn=t.value.getOrUndefined();Vn!==Dd(kn)&&rv(kn,Vn??"")};return xe(),Xt(),et(),t.innerHtml.fold(hn,Dn),rn(),a},qE=t=>{const a=zt.fromTag(t.tag);jl(a,t.attributes),Us(a,t.classes),Mi(a,t.styles),t.innerHtml.each(E=>zg(a,E));const p=t.domChildren;return Sd(a,p),t.value.each(E=>{rv(a,E)}),a},e4=(t,a)=>{try{const p=rc(t,a);return P.some(p)}catch{return P.none()}},Em=t=>t.innerHtml.isSome()&&t.domChildren.length>0,l1=(t,a)=>{const p=z=>vo(z)===t.tag&&!Em(t)&&!ZE(z),E=a.filter(p).bind(z=>e4(t,z)).getOrThunk(()=>qE(t));return Zp(E,t.uid),E},wb=t=>{const a=Ft(t,"behaviours").getOr({});return ie(ot(a),p=>{const E=a[p];return d(E)?[E.me]:[]})},Cb=(t,a)=>jE(t,a),$d=t=>{const a=wb(t);return Cb(t,a)},ov=(t,a,p)=>{const E=yb(t),z=n$(t),Y={"alloy.base.modification":z},re=a.length>0?hb(p,Y,a,E):z;return Xp(E,re)},av=(t,a,p)=>{const E={"alloy.base.behaviour":bb(t)};return pb(p,t.eventOrder,a,E).getOrDie()},sv=(t,a)=>{const p=()=>kn,E=q(Jf),z=Ja(H3(t)),Y=$d(t),re=N3(Y),xe=F3(Y),Ee=ov(z,re,xe),Be=l1(Ee,a),je=av(z,re,xe),et=q(z.components),st=Vn=>{E.set(Vn)},mt=()=>{E.set(Eh(p))},Mt=()=>{const Vn=Kr(Be),hr=ie(Vn,Yn=>E.get().getByDom(Yn).fold(()=>[],le));et.set(hr)},Xt=Vn=>{const hr=xe;return(g(hr[Vn.name()])?hr[Vn.name()]:()=>{throw new Error("Could not find "+Vn.name()+" in "+JSON.stringify(t,null,2))})()},Dn=Vn=>g(xe[Vn.name()]),hn=()=>z.apis,rn=Vn=>xe[Vn]().map(hr=>hr.state.readState()).getOr("not enabled"),kn={uid:t.uid,getSystem:E.get,config:Xt,hasConfigured:Dn,spec:t,readState:rn,getApis:hn,connect:st,disconnect:mt,element:Be,syncComponents:Mt,components:et.get,events:je};return kn},Wg=(t,a)=>{const p=Ft(t,"components").getOr([]);return a.fold(()=>ne(p,Pl),E=>ne(p,(z,Y)=>Sb(z,qr(E,Y))))},W3=(t,a)=>{const{events:p,...E}=fb(t),z=Wg(E,a),Y={...E,events:{...km,...p},components:z};return Wo.value(sv(Y,a))},ai=t=>{const a=zt.fromText(t);return G3({element:a})},G3=t=>{const a=ul("external.component",es([qn("element"),Ia("uid")]),t),p=q(Eh()),E=xe=>{p.set(xe)},z=()=>{p.set(Eh(()=>re))},Y=a.uid.getOrThunk(()=>jp("external"));Zp(a.element,Y);const re={uid:Y,getSystem:p.get,config:P.none,hasConfigured:H,connect:E,disconnect:z,getApis:()=>({}),element:a.element,spec:t,readState:O("No state"),syncComponents:C,components:O([]),events:{}};return _h(re)},iv=jp,Z3=t=>pn(t,"uid"),Sb=(t,a)=>Kp(t).getOrThunk(()=>{const p=Z3(t)?t:{uid:iv(""),...t};return W3(p,a).getOrDie()}),Pl=t=>Sb(t,P.none()),Tu=_h;var j3=(t,a,p,E,z)=>t(p,E)?P.some(p):g(z)&&z(p)?P.none():a(p,E,z);const Tb=(t,a,p)=>{let E=t.dom;const z=g(p)?p:H;for(;E.parentNode;){E=E.parentNode;const Y=zt.fromDom(E);if(a(Y))return P.some(Y);if(z(Y))break}return P.none()},Gg=(t,a,p)=>j3((z,Y)=>Y(z),Tb,t,a,p),t4=(t,a)=>{const p=z=>a(zt.fromDom(z));return Ve(t.dom.childNodes,p).map(zt.fromDom)},Y3=(t,a)=>{const p=E=>{for(let z=0;zGg(t,a,p).isSome(),tu=(t,a,p)=>Tb(t,E=>Ot(E,a),p),kb=(t,a)=>t4(t,p=>Ot(p,a)),mi=(t,a)=>cn(a,t),Qf=(t,a,p)=>j3((z,Y)=>Ot(z,Y),tu,t,a,p),lv="aria-controls",_m=t=>Gg(t,p=>{if(!St(p))return!1;const E=Ka(p,"id");return E!==void 0&&E.indexOf(lv)>-1}).bind(p=>{const E=Ka(p,"id"),z=Yo(p);return mi(z,`[${lv}="${E}"]`)}),Zg=()=>{const t=Xr(lv);return{id:t,link:E=>{Lr(E,lv,t)},unlink:E=>{Xa(E,lv)}}},jg=(t,a)=>_m(a).exists(p=>Lh(t,p)),Lh=(t,a)=>ow(a,p=>Qt(p,t.element),H)||jg(t,a),K3="unknown";var Yg;(function(t){t[t.STOP=0]="STOP",t[t.NORMAL=1]="NORMAL",t[t.LOGGING=2]="LOGGING"})(Yg||(Yg={}));const Rm=q({}),Kg=(t,a)=>{const p=[],E=new Date().getTime();return{logEventCut:(z,Y,re)=>{p.push({outcome:"cut",target:Y,purpose:re})},logEventStopped:(z,Y,re)=>{p.push({outcome:"stopped",target:Y,purpose:re})},logNoParent:(z,Y,re)=>{p.push({outcome:"no-parent",target:Y,purpose:re})},logEventNoHandlers:(z,Y)=>{p.push({outcome:"no-handlers-left",target:Y})},logEventResponse:(z,Y,re)=>{p.push({outcome:"response",purpose:re,target:Y})},write:()=>{const z=new Date().getTime();he(["mousemove","mouseover","mouseout",Kf()],t)||console.log(t,{event:t,time:z-E,target:a.dom,sequence:ne(p,Y=>he(["cut","stopped","response"],Y.outcome)?"{"+Y.purpose+"} "+Y.outcome+" at ("+Rd(Y.target)+")":Y.outcome)})}}},X3=(t,a,p)=>{switch(Ft(Rm.get(),t).orThunk(()=>{const z=ot(Rm.get());return We(z,Y=>t.indexOf(Y)>-1?P.some(Rm.get()[Y]):P.none())}).getOr(Yg.NORMAL)){case Yg.NORMAL:return p(sw());case Yg.LOGGING:{const z=Kg(t,a),Y=p(z);return z.write(),Y}case Yg.STOP:return!0}},n4=["alloy/data/Fields","alloy/debugging/Debugging"],aw=()=>{const t=new Error;if(t.stack!==void 0){const a=t.stack.split(` -`);return Ve(a,p=>p.indexOf("alloy")>0&&!ge(n4,E=>p.indexOf(E)>-1)).getOr(K3)}else return K3},r4={logEventCut:C,logEventStopped:C,logNoParent:C,logEventNoHandlers:C,logEventResponse:C,write:C},Ab=(t,a,p)=>X3(t,a,p),sw=O(r4),nu=O([qn("menu"),qn("selectedMenu")]),J3=O([qn("item"),qn("selectedItem")]);O(io(J3().concat(nu())));const cv=O(io(J3())),Q3=Dc("initSize",[qn("numColumns"),qn("numRows")]),o4=()=>yc("markers",cv()),c1=()=>Dc("markers",[qn("backgroundMenu")].concat(nu()).concat(J3())),Lm=t=>Dc("markers",ne(t,qn)),Mb=(t,a,p)=>(aw(),Wi(a,a,p,cl(E=>Wo.value((...z)=>E.apply(void 0,z))))),Sa=t=>Mb("onHandler",t,G0(C)),ru=t=>Mb("onKeyboardHandler",t,G0(P.none)),qf=t=>Mb("onHandler",t,Ua()),iw=t=>Mb("onKeyboardHandler",t,Ua()),rs=(t,a)=>zs(t,O(a)),u1=t=>zs(t,D),lw=O(Q3),Zi=(t,a,p,E,z,Y,re,xe=!1)=>({x:t,y:a,bubble:p,direction:E,placement:z,restriction:Y,label:`${re}-${z}`,alwaysFit:xe}),Od=Ae.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Dm=(t,a,p,E,z,Y,re,xe,Ee)=>t.fold(a,p,E,z,Y,re,xe,Ee),cw=(t,a,p,E)=>t.fold(a,a,E,E,a,E,p,p),Eb=(t,a,p,E)=>t.fold(a,E,a,E,p,p,a,E),f1=Od.southeast,uw=Od.southwest,_b=Od.northeast,Pd=Od.northwest,Dh=Od.south,a4=Od.north,In=Od.east,d1=Od.west,uv=(t,a,p,E)=>{const z=t+a;return z>E?p:zMath.min(Math.max(t,a),p),fw=(t,a)=>{switch(a){case 1:return t.x;case 0:return t.x+t.width;case 2:return t.y;case 3:return t.y+t.height}},Ds=(t,a)=>pe(["left","right","top","bottom"],p=>Ft(a,p).map(E=>fw(t,E))),Rb=(t,a,p)=>{const E=(Ee,Be)=>a[Ee].map(je=>{const et=Ee==="top"||Ee==="bottom",st=et?p.top:p.left,Mt=(Ee==="left"||Ee==="top"?Math.max:Math.min)(je,Be)+st;return et?ku(Mt,t.y,t.bottom):ku(Mt,t.x,t.right)}).getOr(Be),z=E("left",t.x),Y=E("top",t.y),re=E("right",t.right),xe=E("bottom",t.bottom);return Hs(z,Y,re-z,xe-Y)},$h="layout",dw=t=>t.x,Lb=(t,a)=>t.x+t.width/2-a.width/2,hw=(t,a)=>t.x+t.width-a.width,h1=(t,a)=>t.y-a.height,fv=t=>t.y+t.height,mw=(t,a)=>t.y+t.height/2-a.height/2,s4=t=>t.x+t.width,wc=(t,a)=>t.x-a.width,ji=(t,a,p)=>Zi(dw(t),fv(t),p.southeast(),f1(),"southeast",Ds(t,{left:1,top:3}),$h),Ml=(t,a,p)=>Zi(hw(t,a),fv(t),p.southwest(),uw(),"southwest",Ds(t,{right:0,top:3}),$h),Cc=(t,a,p)=>Zi(dw(t),h1(t,a),p.northeast(),_b(),"northeast",Ds(t,{left:1,bottom:2}),$h),Il=(t,a,p)=>Zi(hw(t,a),h1(t,a),p.northwest(),Pd(),"northwest",Ds(t,{right:0,bottom:2}),$h),oc=(t,a,p)=>Zi(Lb(t,a),h1(t,a),p.north(),a4(),"north",Ds(t,{bottom:2}),$h),Yi=(t,a,p)=>Zi(Lb(t,a),fv(t),p.south(),Dh(),"south",Ds(t,{top:3}),$h),gw=(t,a,p)=>Zi(s4(t),mw(t,a),p.east(),In(),"east",Ds(t,{left:0}),$h),m1=(t,a,p)=>Zi(wc(t,a),mw(t,a),p.west(),d1(),"west",Ds(t,{right:1}),$h),pw=()=>[ji,Ml,Cc,Il,Yi,oc,gw,m1],g1=()=>[Ml,ji,Il,Cc,Yi,oc,gw,m1],vw=()=>[Cc,Il,ji,Ml,oc,Yi],q3=()=>[Il,Cc,Ml,ji,oc,Yi],Db=()=>[ji,Ml,Cc,Il,Yi,oc],yw=()=>[Ml,ji,Il,Cc,Yi,oc],i4=(t,a)=>a.universal?t:Ce(t,p=>he(a.channels,p));var eT=Object.freeze({__proto__:null,events:t=>bs([Xn(Tl(),(a,p)=>{const E=t.channels,z=ot(E),Y=p,re=i4(z,Y);fe(re,xe=>{const Ee=E[xe],Be=Ee.schema,je=ul("channel["+xe+`] data -Receiver: `+Rd(a.element),Be,Y.data);Ee.onReceive(a,je)})})])}),c4=[yc("channels",gf(Wo.value,es([qf("onReceive"),En("schema",oi())])))];const dv=(t,a,p)=>xf(E=>{p(E,t,a)}),$b=(t,a,p)=>j2((E,z)=>{p(E,t,a)}),tT=(t,a,p,E,z,Y)=>{const re=es(t),xe=Ql(a,[vf("config",t)]);return ed(re,xe,a,p,E,z,Y)},a$=(t,a,p,E,z,Y)=>{const re=t,xe=Ql(a,[$c("config",t)]);return ed(re,xe,a,p,E,z,Y)},Oc=(t,a,p)=>a1((z,...Y)=>{const re=[z].concat(Y);return z.config({name:O(t)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+t+". Using API: "+p)},xe=>{const Ee=Array.prototype.slice.call(re,1);return a.apply(void 0,[z,xe.config,xe.state].concat(Ee))})},p,a),s$=t=>({key:t,value:void 0}),ed=(t,a,p,E,z,Y,re)=>{const xe=et=>_n(et,p)?et[p]():P.none(),Ee=Xe(z,(et,st)=>Oc(p,et,st)),je={...Xe(Y,(et,st)=>db(et,st)),...Ee,revoke:M(s$,p),config:et=>{const st=ul(p+"-config",t,et);return{key:p,value:{config:st,me:je,configAsRaw:Ps(()=>ul(p+"-config",t,et)),initialConfig:et,state:re}}},schema:O(a),exhibit:(et,st)=>jn(xe(et),Ft(E,"exhibit"),(mt,Mt)=>Mt(st,mt.config,mt.state)).getOrThunk(()=>qc({})),name:O(p),handlers:et=>xe(et).map(st=>Ft(E,"events").getOr(()=>({}))(st.config,st.state)).getOr({})};return je},gr=t=>bt(t),bw=es([qn("fields"),qn("name"),En("active",{}),En("apis",{}),En("state",wf),En("extra",{})]),Ki=t=>{const a=ul("Creating behaviour: "+t.name,bw,t);return tT(a.fields,a.name,a.active,a.apis,a.extra,a.state)},nT=es([qn("branchKey"),qn("branches"),qn("name"),En("active",{}),En("apis",{}),En("state",wf),En("extra",{})]),Ob=t=>{const a=ul("Creating behaviour: "+t.name,nT,t);return a$(fa(a.branchKey,a.branches),a.name,a.active,a.apis,a.extra,a.state)},xw=O(void 0),Pc=Ki({fields:c4,name:"receiving",active:eT});var rT=Object.freeze({__proto__:null,exhibit:(t,a)=>qc({classes:[],styles:a.useFixed()?{}:{position:"relative"}})});const Ic=(t,a=!1)=>t.dom.focus({preventScroll:a}),hv=t=>t.dom.blur(),p1=t=>{const a=Yo(t).dom;return t.dom===a.activeElement},Id=(t=Pp())=>P.from(t.dom.activeElement).map(zt.fromDom),Sf=t=>Id(Yo(t)).filter(a=>t.dom.contains(a.dom)),Ur=(t,a)=>{const p=Yo(a),E=Id(p).bind(Y=>{const re=xe=>Qt(Y,xe);return re(a)?P.some(a):Y3(a,re)}),z=t(a);return E.each(Y=>{Id(p).filter(re=>Qt(re,Y)).fold(()=>{Ic(Y)},C)}),z},Au=(t,a,p,E,z)=>{const Y=re=>re+"px";return{position:t,left:a.map(Y),top:p.map(Y),right:E.map(Y),bottom:z.map(Y)}},oT=t=>({...t,position:P.some(t.position)}),aT=(t,a)=>{ur(t,oT(a))},ww=Ae.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),sT=(t,a,p,E,z,Y)=>{const re=a.rect,xe=re.x-p,Ee=re.y-E,Be=re.width,je=re.height,et=z-(xe+Be),st=Y-(Ee+je),mt=P.some(xe),Mt=P.some(Ee),Xt=P.some(et),Dn=P.some(st),hn=P.none();return Dm(a.direction,()=>Au(t,mt,Mt,hn,hn),()=>Au(t,hn,Mt,Xt,hn),()=>Au(t,mt,hn,hn,Dn),()=>Au(t,hn,hn,Xt,Dn),()=>Au(t,mt,Mt,hn,hn),()=>Au(t,mt,hn,hn,Dn),()=>Au(t,mt,Mt,hn,hn),()=>Au(t,hn,Mt,Xt,hn))},Cw=(t,a)=>t.fold(()=>{const p=a.rect;return Au("absolute",P.some(p.x),P.some(p.y),P.none(),P.none())},(p,E,z,Y)=>sT("absolute",a,p,E,z,Y),(p,E,z,Y)=>sT("fixed",a,p,E,z,Y)),Sw=(t,a)=>{const p=M($g,a),E=t.fold(p,p,()=>{const re=ll();return $g(a).translate(-re.left,-re.top)}),z=Wu(a),Y=cu(a);return Hs(E.left,E.top,z,Y)},f4=(t,a)=>a.fold(()=>t.fold(bl,bl,Hs),p=>t.fold(O(p),O(p),()=>{const E=Tw(t,p.x,p.y);return Hs(E.left,E.top,p.width,p.height)})),Tw=(t,a,p)=>{const E=Ma(a,p),z=()=>{const Y=ll();return E.translate(-Y.left,-Y.top)};return t.fold(O(E),O(E),z)},d4=(t,a,p,E)=>t.fold(a,p,E);ww.none;const ac=ww.relative,v1=ww.fixed,h4=(t,a)=>({anchorBox:t,origin:a}),m4=(t,a)=>h4(t,a),kw="data-alloy-placement",g4=(t,a)=>{Lr(t,kw,a)},iT=t=>yi(t,kw),lT=t=>Xa(t,kw),y1=Ae.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),cT=(t,a)=>{const{x:p,y:E,right:z,bottom:Y}=a,{x:re,y:xe,right:Ee,bottom:Be,width:je,height:et}=t,st=re>=p&&re<=z,mt=xe>=E&&xe<=Y,Mt=st&&mt,Xt=Ee<=z&&Ee>=p,Dn=Be<=Y&&Be>=E,hn=Xt&&Dn,rn=Math.min(je,re>=p?z-re:Ee-p),kn=Math.min(et,xe>=E?Y-xe:Be-E);return{originInBounds:Mt,sizeInBounds:hn,visibleW:rn,visibleH:kn}},Aw=(t,a)=>{const{x:p,y:E,right:z,bottom:Y}=a,{x:re,y:xe,width:Ee,height:Be}=t,je=Math.max(p,z-Ee),et=Math.max(E,Y-Be),st=ku(re,p,je),mt=ku(xe,E,et),Mt=Math.min(st+Ee,z)-st,Xt=Math.min(mt+Be,Y)-mt;return Hs(st,mt,Mt,Xt)},Xg=(t,a,p)=>{const E=O(a.bottom-p.y),z=O(p.bottom-a.y),Y=cw(t,z,z,E),re=O(a.right-p.x),xe=O(p.right-a.x);return{maxWidth:Eb(t,xe,xe,re),maxHeight:Y}},p4=(t,a,p,E)=>{const z=t.bubble,Y=z.offset,re=Rb(E,t.restriction,Y),xe=t.x+Y.left,Ee=t.y+Y.top,Be=Hs(xe,Ee,a,p),{originInBounds:je,sizeInBounds:et,visibleW:st,visibleH:mt}=cT(Be,re),Mt=je&&et,Xt=Mt?Be:Aw(Be,re),Dn=Xt.width>0&&Xt.height>0,{maxWidth:hn,maxHeight:rn}=Xg(t.direction,Xt,E),kn={rect:Xt,maxHeight:rn,maxWidth:hn,direction:t.direction,placement:t.placement,classes:{on:z.classesOn,off:z.classesOff},layout:t.label,testY:Ee};return Mt||t.alwaysFit?y1.fit(kn):y1.nofit(kn,st,mt,Dn)},v4=(t,a,p,E,z,Y)=>{const re=E.width,xe=E.height,Ee=(je,et,st,mt,Mt)=>{const Xt=je(p,E,z,t,Y),Dn=p4(Xt,re,xe,Y);return Dn.fold(O(Dn),(hn,rn,kn,Vn)=>(Mt===Vn?kn>mt||rn>st:!Mt&&Vn)?Dn:y1.nofit(et,st,mt,Mt))};return ke(a,(je,et)=>{const st=M(Ee,et);return je.fold(O(je),st)},y1.nofit({rect:p,maxHeight:E.height,maxWidth:E.width,direction:f1(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:p.y},-1,-1,!1)).fold(D,D)},Mw=t=>{const a=q(P.none()),p=()=>a.get().each(t);return{clear:()=>{p(),a.set(P.none())},isSet:()=>a.get().isSome(),get:()=>a.get(),set:xe=>{p(),a.set(P.some(xe))}}},y4=()=>Mw(t=>t.destroy()),Oh=()=>Mw(t=>t.unbind()),ia=()=>{const t=Mw(C);return{...t,on:p=>t.get().each(p)}},Ew=j,sc=(t,a,p)=>gm(t,a,Ew,p),Pb=(t,a,p)=>N0(t,a,Ew,p),_w=I0,Rw=["top","bottom","right","left"],Ib="data-alloy-transition-timer",uT=(t,a)=>Al(t,a.classes),b4=(t,a,p)=>p.exists(E=>{const z=t.mode;return z==="all"?!0:E[z]!==a[z]}),x4=(t,a)=>{const p=E=>parseFloat(E).toFixed(3);return Yt(a,(E,z)=>{const Y=t[z].map(p),re=E.map(p);return!Zn(Y,re)}).isSome()},mv=t=>{const a=Y=>{const xe=Ms(t,Y).split(/\s*,\s*/);return Ce(xe,fn)},p=Y=>{if(A(Y)&&/^[\d.]+/.test(Y)){const re=parseFloat(Y);return pt(Y,"ms")?re:re*1e3}else return 0},E=a("transition-delay"),z=a("transition-duration");return ke(z,(Y,re,xe)=>{const Ee=p(E[xe])+p(re);return Math.max(Y,Ee)},0)},fT=(t,a)=>{const p=Oh(),E=Oh();let z;const Y=Be=>{var je;const et=(je=Be.raw.pseudoElement)!==null&&je!==void 0?je:"";return Qt(Be.target,t)&&tn(et)&&he(Rw,Be.raw.propertyName)},re=Be=>{if(u(Be)||Y(Be)){p.clear(),E.clear();const je=Be==null?void 0:Be.raw.type;(u(je)||je===Ii())&&(clearTimeout(z),Xa(t,Ib),Su(t,a.classes))}},xe=sc(t,tc(),Be=>{Y(Be)&&(xe.unbind(),p.set(sc(t,Ii(),re)),E.set(sc(t,xc(),re)))}),Ee=mv(t);requestAnimationFrame(()=>{z=setTimeout(re,Ee+17),Lr(t,Ib,z)})},i$=(t,a)=>{Us(t,a.classes),yi(t,Ib).each(p=>{clearTimeout(parseInt(p,10)),Xa(t,Ib)}),fT(t,a)},$m=(t,a,p,E,z,Y)=>{const re=b4(E,z,Y);if(re||uT(t,E)){To(t,"position",p.position);const xe=Sw(a,t),Ee=Cw(a,{...z,rect:xe}),Be=pe(Rw,je=>Ee[je]);x4(p,Be)&&(ur(t,Be),re&&i$(t,E),Ks(t))}else Su(t,E.classes)},w4=t=>({width:Wu(t),height:cu(t)}),gv=(t,a,p,E)=>{Bo(a,"max-height"),Bo(a,"max-width");const z=w4(a);return v4(a,E.preference,t,z,p,E.bounds)},C4=(t,a)=>{const p=a.classes;Su(t,p.off),Us(t,p.on)},Lw=(t,a,p)=>{const E=p.maxHeightFunction;E(t,a.maxHeight)},dT=(t,a,p)=>{const E=p.maxWidthFunction;E(t,a.maxWidth)},Jg=(t,a,p)=>{const E=Cw(p.origin,a);p.transition.each(z=>{$m(t,p.origin,E,z,a,p.lastPlacement)}),aT(t,E)},S4=(t,a)=>{g4(t,a.placement)},hT=(t,a)=>{uu(t,Math.floor(a))},mT=O((t,a)=>{hT(t,a),Mi(t,{"overflow-x":"hidden","overflow-y":"auto"})}),pv=O((t,a)=>{hT(t,a)}),gT=(t,a,p)=>t[a]===void 0?p:t[a],Dw=(t,a,p,E,z,Y,re,xe)=>{const Ee=gT(re,"maxHeightFunction",mT()),Be=gT(re,"maxWidthFunction",C),je=t.anchorBox,et=t.origin,st={bounds:f4(et,Y),origin:et,preference:E,maxHeightFunction:Ee,maxWidthFunction:Be,lastPlacement:z,transition:xe};return T4(je,a,p,st)},T4=(t,a,p,E)=>{const z=gv(t,a,p,E);return Jg(a,z,E),S4(a,z),C4(a,z),Lw(a,z,E),dT(a,z,E),{layout:z.layout,placement:z.placement}},pT=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Nd=(t,a,p,E=1)=>{const z=t*E,Y=a*E,re=Ee=>Ft(p,Ee).getOr([]),xe=(Ee,Be,je)=>{const et=ue(pT,je);return{offset:Ma(Ee,Be),classesOn:ie(je,re),classesOff:ie(et,re)}};return{southeast:()=>xe(-t,a,["top","alignLeft"]),southwest:()=>xe(t,a,["top","alignRight"]),south:()=>xe(-t/2,a,["top","alignCentre"]),northeast:()=>xe(-t,-a,["bottom","alignLeft"]),northwest:()=>xe(t,-a,["bottom","alignRight"]),north:()=>xe(-t/2,-a,["bottom","alignCentre"]),east:()=>xe(t,-a/2,["valignCentre","left"]),west:()=>xe(-t,-a/2,["valignCentre","right"]),insetNortheast:()=>xe(z,Y,["top","alignLeft","inset"]),insetNorthwest:()=>xe(-z,Y,["top","alignRight","inset"]),insetNorth:()=>xe(-z/2,Y,["top","alignCentre","inset"]),insetSoutheast:()=>xe(z,-Y,["bottom","alignLeft","inset"]),insetSouthwest:()=>xe(-z,-Y,["bottom","alignRight","inset"]),insetSouth:()=>xe(-z/2,-Y,["bottom","alignCentre","inset"]),insetEast:()=>xe(-z,-Y/2,["valignCentre","right","inset"]),insetWest:()=>xe(z,-Y/2,["valignCentre","left","inset"])}},b1=()=>Nd(0,0,{}),x1=D,Nb=(t,a)=>p=>w1(p)==="rtl"?a:t,w1=t=>Ms(t,"direction")==="rtl"?"rtl":"ltr";var tf;(function(t){t.TopToBottom="toptobottom",t.BottomToTop="bottomtotop"})(tf||(tf={}));const vv="data-alloy-vertical-dir",C1=t=>ow(t,a=>St(a)&&Ka(a,"data-alloy-vertical-dir")===tf.BottomToTop),Om=()=>Ql("layouts",[qn("onLtr"),qn("onRtl"),Ia("onBottomLtr"),Ia("onBottomRtl")]),Fb=(t,a,p,E,z,Y,re)=>{const xe=re.map(C1).getOr(!1),Ee=a.layouts.map(mt=>mt.onLtr(t)),Be=a.layouts.map(mt=>mt.onRtl(t)),je=xe?a.layouts.bind(mt=>mt.onBottomLtr.map(Mt=>Mt(t))).or(Ee).getOr(z):Ee.getOr(p),et=xe?a.layouts.bind(mt=>mt.onBottomRtl.map(Mt=>Mt(t))).or(Be).getOr(Y):Be.getOr(E);return Nb(je,et)(t)},k4=(t,a,p)=>{const E=a.hotspot,z=Sw(p,E.element),Y=Fb(t.element,a,Db(),yw(),vw(),q3(),P.some(a.hotspot.element));return P.some(x1({anchorBox:z,bubble:a.bubble.getOr(b1()),overrides:a.overrides,layouts:Y}))};var A4=[qn("hotspot"),Ia("bubble"),En("overrides",{}),Om(),rs("placement",k4)];const vT=(t,a,p)=>{const E=Tw(p,a.x,a.y),z=Hs(E.left,E.top,a.width,a.height),Y=Fb(t.element,a,pw(),g1(),pw(),g1(),P.none());return P.some(x1({anchorBox:z,bubble:a.bubble,overrides:a.overrides,layouts:Y}))};var M4=[qn("x"),qn("y"),En("height",0),En("width",0),En("bubble",b1()),En("overrides",{}),Om(),rs("placement",vT)];const $w=Ae.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),E4=t=>t.fold(D,(a,p,E)=>a.translate(-p,-E)),_4=t=>t.fold(D,D),yT=t=>ke(t,(a,p)=>a.translate(p.left,p.top),Ma(0,0)),R4=t=>{const a=ne(t,E4);return yT(a)},bT=t=>{const a=ne(t,_4);return yT(a)},L4=$w.screen,Bb=$w.absolute,D4=(t,a,p)=>{const E=Qn(p.root).dom,z=Y=>{const re=Sn(Y),xe=Sn(t.element);return Qt(re,xe)};return P.from(E.frameElement).map(zt.fromDom).filter(z).map(al)},xT=(t,a,p)=>{const E=Sn(t.element),z=ll(E),Y=D4(t,a,p).getOr(z);return Bb(Y,z.left,z.top)},yv=(t,a,p,E)=>{const z=L4(Ma(t,a));return P.some(Ip(z,p,E))},Ow=(t,a,p,E,z)=>t.map(Y=>{const re=[a,Y.point],xe=d4(E,()=>bT(re),()=>bT(re),()=>R4(re)),Ee=Td(xe.left,xe.top,Y.width,Y.height),Be=p.showAbove?vw():Db(),je=p.showAbove?q3():yw(),et=Fb(z,p,Be,je,Be,je,P.none());return x1({anchorBox:Ee,bubble:p.bubble.getOr(b1()),overrides:p.overrides,layouts:et})}),Pw=(t,a,p)=>{const E=xT(t,p,a);return a.node.filter(Wa).bind(z=>{const Y=z.dom.getBoundingClientRect(),re=yv(Y.left,Y.top,Y.width,Y.height),xe=a.node.getOr(t.element);return Ow(re,E,a,p,xe)})};var Iw=[qn("node"),qn("root"),Ia("bubble"),Om(),En("overrides",{}),En("showAbove",!1),rs("placement",Pw)];const wT="\uFEFF",Nw=" ",Hb={create:(t,a,p,E)=>({start:t,soffset:a,finish:p,foffset:E})},zb=Ae.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),O4=(t,a,p,E)=>t.fold(a,p,E),Fw=t=>t.fold(D,D,D),CT=zb.before,P4=zb.on,Bw=zb.after,I4={before:CT,on:P4,after:Bw,cata:O4,getStart:Fw},bv=Ae.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),N4=t=>bv.exact(t.start,t.soffset,t.finish,t.foffset),Hw=t=>t.match({domRange:a=>zt.fromDom(a.startContainer),relative:(a,p)=>I4.getStart(a),exact:(a,p,E,z)=>a}),F4=bv.domRange,B4=bv.relative,H4=bv.exact,ST=t=>{const a=Hw(t);return Qn(a)},z4=Hb.create,fl={domRange:F4,relative:B4,exact:H4,exactFromRange:N4,getWin:ST,range:z4},l$=(t,a)=>{a.fold(p=>{t.setStartBefore(p.dom)},(p,E)=>{t.setStart(p.dom,E)},p=>{t.setStartAfter(p.dom)})},xv=(t,a)=>{a.fold(p=>{t.setEndBefore(p.dom)},(p,E)=>{t.setEnd(p.dom,E)},p=>{t.setEndAfter(p.dom)})},Vb=(t,a,p)=>{const E=t.document.createRange();return l$(E,a),xv(E,p),E},TT=(t,a,p,E,z)=>{const Y=t.document.createRange();return Y.setStart(a.dom,p),Y.setEnd(E.dom,z),Y},zw=t=>({left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:t.width,height:t.height}),kT=t=>{const a=t.getClientRects(),p=a.length>0?a[0]:t.getBoundingClientRect();return p.width>0||p.height>0?P.some(p).map(zw):P.none()},AT=t=>{const a=t.getBoundingClientRect();return a.width>0||a.height>0?P.some(a).map(zw):P.none()},Qg=Ae.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),S1=(t,a,p)=>a(zt.fromDom(p.startContainer),p.startOffset,zt.fromDom(p.endContainer),p.endOffset),V4=(t,a)=>a.match({domRange:p=>({ltr:O(p),rtl:P.none}),relative:(p,E)=>({ltr:Ps(()=>Vb(t,p,E)),rtl:Ps(()=>P.some(Vb(t,E,p)))}),exact:(p,E,z,Y)=>({ltr:Ps(()=>TT(t,p,E,z,Y)),rtl:Ps(()=>P.some(TT(t,z,Y,p,E)))})}),U4=(t,a)=>{const p=a.ltr();return p.collapsed?a.rtl().filter(z=>z.collapsed===!1).map(z=>Qg.rtl(zt.fromDom(z.endContainer),z.endOffset,zt.fromDom(z.startContainer),z.startOffset)).getOrThunk(()=>S1(t,Qg.ltr,p)):S1(t,Qg.ltr,p)},T1=(t,a)=>{const p=V4(t,a);return U4(t,p)},Vw=(t,a)=>T1(t,a).match({ltr:(E,z,Y,re)=>{const xe=t.document.createRange();return xe.setStart(E.dom,z),xe.setEnd(Y.dom,re),xe},rtl:(E,z,Y,re)=>{const xe=t.document.createRange();return xe.setStart(Y.dom,re),xe.setEnd(E.dom,z),xe}});Qg.ltr,Qg.rtl;const MT=(t,a,p)=>Ce(Vr(t,p),a),Xi=(t,a)=>qt(a,t),ET=(t,a,p,E)=>{const Y=Sn(t).dom.createRange();return Y.setStart(t.dom,a),Y.setEnd(p.dom,E),Y},Uw=(t,a,p,E)=>{const z=ET(t,a,p,E),Y=Qt(t,p)&&a===E;return z.collapsed&&!Y},c$=t=>P.from(t.getSelection()),wv=t=>{if(t.rangeCount>0){const a=t.getRangeAt(0),p=t.getRangeAt(t.rangeCount-1);return P.some(Hb.create(zt.fromDom(a.startContainer),a.startOffset,zt.fromDom(p.endContainer),p.endOffset))}else return P.none()},W4=t=>{if(t.anchorNode===null||t.focusNode===null)return wv(t);{const a=zt.fromDom(t.anchorNode),p=zt.fromDom(t.focusNode);return Uw(a,t.anchorOffset,p,t.focusOffset)?P.some(Hb.create(a,t.anchorOffset,p,t.focusOffset)):wv(t)}},_T=t=>c$(t).filter(a=>a.rangeCount>0).bind(W4),Ww=(t,a)=>{const p=Vw(t,a);return kT(p)},k1=(t,a)=>{const p=Vw(t,a);return AT(p)},Cv=((t,a)=>{const p=Y=>{if(!t(Y))throw new Error("Can only get "+a+" value of a "+a+" node");return E(Y).getOr("")},E=Y=>t(Y)?P.from(Y.dom.nodeValue):P.none();return{get:p,getOption:E,set:(Y,re)=>{if(!t(Y))throw new Error("Can only set raw "+a+" value of a "+a+" node");Y.dom.nodeValue=re}}})(kt,"text"),G4=t=>Cv.get(t),Pm=(t,a)=>({element:t,offset:a}),RT=(t,a)=>{const p=Kr(t);if(p.length===0)return Pm(t,a);if(akt(t)?Pm(t,a):RT(t,a),Nm=t=>t.foffset!==void 0,Gw=(t,a)=>a.getSelection.getOrThunk(()=>()=>_T(t))().map(E=>{if(Nm(E)){const z=Im(E.start,E.soffset),Y=Im(E.finish,E.foffset);return fl.range(z.element,z.offset,Y.element,Y.offset)}else return E}),LT=(t,a,p)=>{const E=Qn(a.root).dom,z=xT(t,p,a),Y=Gw(E,a).bind(Ee=>{if(Nm(Ee))return k1(E,fl.exactFromRange(Ee)).orThunk(()=>{const je=zt.fromText(wT);hu(Ee.start,je);const et=Ww(E,fl.exact(je,0,je,1));return Xl(je),et}).bind(je=>yv(je.left,je.top,je.width,je.height));{const Be=Xe(Ee,et=>et.dom.getBoundingClientRect()),je={left:Math.min(Be.firstCell.left,Be.lastCell.left),right:Math.max(Be.firstCell.right,Be.lastCell.right),top:Math.min(Be.firstCell.top,Be.lastCell.top),bottom:Math.max(Be.firstCell.bottom,Be.lastCell.bottom)};return yv(je.left,je.top,je.right-je.left,je.bottom-je.top)}}),xe=Gw(E,a).bind(Ee=>Nm(Ee)?St(Ee.start)?P.some(Ee.start):fr(Ee.start):P.some(Ee.firstCell)).getOr(t.element);return Ow(Y,z,a,p,xe)};var u$=[Ia("getSelection"),qn("root"),Ia("bubble"),Om(),En("overrides",{}),En("showAbove",!1),rs("placement",LT)];const Zw="link-layout",Fm=t=>t.x+t.width,Fd=(t,a)=>t.x-a.width,A1=(t,a)=>t.y-a.height+t.height,Sv=t=>t.y,jw=(t,a,p)=>Zi(Fm(t),Sv(t),p.southeast(),f1(),"southeast",Ds(t,{left:0,top:2}),Zw),Ph=(t,a,p)=>Zi(Fd(t,a),Sv(t),p.southwest(),uw(),"southwest",Ds(t,{right:1,top:2}),Zw),td=(t,a,p)=>Zi(Fm(t),A1(t,a),p.northeast(),_b(),"northeast",Ds(t,{left:0,bottom:3}),Zw),M1=(t,a,p)=>Zi(Fd(t,a),A1(t,a),p.northwest(),Pd(),"northwest",Ds(t,{right:1,bottom:3}),Zw),Wb=()=>[jw,Ph,td,M1],E1=()=>[Ph,jw,M1,td],Yw=(t,a,p)=>{const E=Sw(p,a.item.element),z=Fb(t.element,a,Wb(),E1(),Wb(),E1(),P.none());return P.some(x1({anchorBox:E,bubble:b1(),overrides:a.overrides,layouts:z}))};var Tv=[qn("item"),Om(),En("overrides",{}),rs("placement",Yw)],_1=fa("type",{selection:u$,node:Iw,hotspot:A4,submenu:Tv,makeshift:M4});const Kw=[Ol("classes",Ui),bc("mode","all",["all","layout","placement"])],DT=[En("useFixed",H),Ia("getBounds")],Bm=[yc("anchor",_1),Ql("transition",Kw)],Gb=()=>{const t=document.documentElement;return v1(0,0,t.clientWidth,t.clientHeight)},Z4=t=>{const a=al(t.element),p=t.element.dom.getBoundingClientRect();return ac(a.left,a.top,p.width,p.height)},$T=(t,a,p,E,z,Y)=>{const re=m4(a.anchorBox,t);return Dw(re,E.element,a.bubble,a.layouts,z,p,a.overrides,Y)},Xw=(t,a,p,E,z)=>{const Y=P.none();gi(t,a,p,E,z,Y)},gi=(t,a,p,E,z,Y)=>{const re=ul("placement.info",io(Bm),z),xe=re.anchor,Ee=E.element,Be=p.get(E.uid);Ur(()=>{To(Ee,"position","fixed");const je=Rs(Ee,"visibility");To(Ee,"visibility","hidden");const et=a.useFixed()?Gb():Z4(t);xe.placement(t,xe,et).each(st=>{const mt=Y.orThunk(()=>a.getBounds.map(F)),Mt=$T(et,st,mt,E,Be,re.transition);p.set(E.uid,Mt)}),je.fold(()=>{Bo(Ee,"visibility")},st=>{To(Ee,"visibility",st)}),Rs(Ee,"left").isNone()&&Rs(Ee,"top").isNone()&&Rs(Ee,"right").isNone()&&Rs(Ee,"bottom").isNone()&&sn(Rs(Ee,"position"),"fixed")&&Bo(Ee,"position")},Ee)};var OT=Object.freeze({__proto__:null,position:Xw,positionWithinBounds:gi,getMode:(t,a,p)=>a.useFixed()?"fixed":"absolute",reset:(t,a,p,E)=>{const z=E.element;fe(["position","left","right","top","bottom"],Y=>Bo(z,Y)),lT(z),p.clear(E.uid)}}),Hm=Object.freeze({__proto__:null,init:()=>{let t={};return Qc({readState:()=>t,clear:z=>{d(z)?delete t[z]:t={}},set:(z,Y)=>{t[z]=Y},get:z=>Ft(t,z)})}});const Nl=Ki({fields:DT,name:"positioning",active:rT,apis:OT,state:Hm}),kv=t=>t.getSystem().isConnected(),R1=t=>{pa(t,Sm());const a=t.components();fe(a,R1)},Av=t=>{const a=t.components();fe(a,Av),pa(t,Cu())},Jw=(t,a)=>{t.getSystem().addToWorld(a),Wa(t.element)&&Av(a)},Mv=t=>{R1(t),t.getSystem().removeFromWorld(t)},qg=(t,a)=>{pc(t.element,a.element)},nd=t=>{fe(t.components(),a=>Xl(a.element)),pm(t.element),t.syncComponents()},j4=(t,a,p)=>{const E=t.components();nd(t);const z=p(a),Y=ue(E,z);fe(Y,re=>{R1(re),t.getSystem().removeFromWorld(re)}),fe(z,re=>{kv(re)?qg(t,re):(t.getSystem().addToWorld(re),qg(t,re),Wa(t.element)&&Av(re))}),t.syncComponents()},Y4=(t,a,p)=>{const E=t.components(),z=ie(a,xe=>Kp(xe).toArray());fe(E,xe=>{he(z,xe)||Mv(xe)});const Y=p(a),re=ue(E,Y);fe(re,xe=>{kv(xe)&&Mv(xe)}),fe(Y,xe=>{kv(xe)||Jw(t,xe)}),t.syncComponents()},zm=(t,a)=>{Ev(t,a,pc)},Ev=(t,a,p)=>{t.getSystem().addToWorld(a),p(t.element,a.element),Wa(t.element)&&Av(a),t.syncComponents()},jb=t=>{R1(t),Xl(t.element),t.getSystem().removeFromWorld(t)},Bd=t=>{const a=Bn(t.element).bind(p=>t.getSystem().getByDom(p).toOptional());jb(t),a.each(p=>{p.syncComponents()})},Qw=t=>{const a=t.components();fe(a,jb),pm(t.element),t.syncComponents()},dl=(t,a)=>{Tf(t,a,pc)},Nh=(t,a)=>{Tf(t,a,Lg)},Tf=(t,a,p)=>{p(t,a.element);const E=Kr(a.element);fe(E,z=>{a.getByDom(z).each(Av)})},_v=t=>{const a=Kr(t.element);fe(a,p=>{t.getByDom(p).each(R1)}),Xl(t.element)},ic=(t,a,p,E)=>{p.get().each(re=>{Qw(t)});const z=a.getAttachPoint(t);zm(z,t);const Y=t.getSystem().build(E);return zm(t,Y),p.set(Y),Y},Nc=(t,a,p,E)=>{const z=ic(t,a,p,E);return a.onOpen(t,z),z},Sc=(t,a,p,E)=>p.get().map(()=>ic(t,a,p,E)),kf=(t,a,p,E,z)=>{L1(t,a),Nc(t,a,p,E),z(),D1(t,a)},Yb=(t,a,p)=>{p.get().each(E=>{Qw(t),Bd(t),a.onClose(t,E),p.clear()})},Mu=(t,a,p)=>p.isOpen(),ep=(t,a,p,E)=>Mu(t,a,p)&&p.get().exists(z=>a.isPartOf(t,z,E)),qw=(t,a,p)=>p.get(),K4=(t,a,p,E)=>{Rs(t.element,a).fold(()=>{Xa(t.element,p)},z=>{Lr(t.element,p,z)}),To(t.element,a,E)},PT=(t,a,p)=>{yi(t.element,p).fold(()=>Bo(t.element,a),E=>To(t.element,a,E))},L1=(t,a,p)=>{const E=a.getAttachPoint(t);To(t.element,"position",Nl.getMode(E)),K4(t,"visibility",a.cloakVisibilityAttr,"hidden")},IT=t=>ge(["top","left","right","bottom"],a=>Rs(t,a).isSome()),D1=(t,a,p)=>{IT(t.element)||Bo(t.element,"position"),PT(t,"visibility",a.cloakVisibilityAttr)};var Kb=Object.freeze({__proto__:null,cloak:L1,decloak:D1,open:Nc,openWhileCloaked:kf,close:Yb,isOpen:Mu,isPartOf:ep,getState:qw,setContent:Sc}),NT=Object.freeze({__proto__:null,events:(t,a)=>bs([Xn(wu(),(p,E)=>{Yb(p,t,a)})])}),J4=[Sa("onOpen"),Sa("onClose"),qn("isPartOf"),qn("getAttachPoint"),En("cloakVisibilityAttr","data-precloak-visibility")],FT=Object.freeze({__proto__:null,init:()=>{const t=ia(),a=O("not-implemented");return Qc({readState:a,isOpen:t.isSet,clear:t.clear,set:t.set,get:t.get})}});const va=Ki({fields:J4,name:"sandboxing",active:NT,apis:Kb,state:FT}),rd=O("dismiss.popups"),tp=O("reposition.popups"),eC=O("mouse.released"),BT=es([En("isExtraPart",H),Ql("fireEventInstead",[En("event",Tm())])]),$1=t=>{const a=ul("Dismissal",BT,t);return{[rd()]:{schema:es([qn("target")]),onReceive:(p,E)=>{va.isOpen(p)&&(va.isPartOf(p,E.target)||a.isExtraPart(p,E.target)||a.fireEventInstead.fold(()=>va.close(p),Y=>pa(p,Y.event)))}}}},Q4=es([Ql("fireEventInstead",[En("event",D3())]),bu("doReposition")]),Rv=t=>{const a=ul("Reposition",Q4,t);return{[tp()]:{onReceive:p=>{va.isOpen(p)&&a.fireEventInstead.fold(()=>a.doReposition(p),E=>pa(p,E.event))}}}},Xb=(t,a,p)=>{a.store.manager.onLoad(t,a,p)},Eu=(t,a,p)=>{a.store.manager.onUnload(t,a,p)};var Vm=Object.freeze({__proto__:null,onLoad:Xb,onUnload:Eu,setValue:(t,a,p,E)=>{a.store.manager.setValue(t,a,p,E)},getValue:(t,a,p)=>a.store.manager.getValue(t,a,p),getState:(t,a,p)=>p}),qb=Object.freeze({__proto__:null,events:(t,a)=>{const p=t.resetOnDom?[ms((E,z)=>{Xb(E,t,a)}),_d((E,z)=>{Eu(E,t,a)})]:[$b(t,a,Xb)];return bs(p)}});const np=()=>{const t=q(null),a=()=>({mode:"memory",value:t.get()}),p=()=>t.get()===null,E=()=>{t.set(null)};return Qc({set:t.set,get:t.get,isNotSet:p,clear:E,readState:a})},q4=()=>Qc({readState:C}),HT=()=>{const t=q({}),a=q({});return Qc({readState:()=>({mode:"dataset",dataByValue:t.get(),dataByText:a.get()}),lookup:re=>Ft(t.get(),re).orThunk(()=>Ft(a.get(),re)),update:re=>{const xe=t.get(),Ee=a.get(),Be={},je={};fe(re,et=>{Be[et.value]=et,Ft(et,"meta").each(st=>{Ft(st,"text").each(mt=>{je[mt]=et})})}),t.set({...xe,...Be}),a.set({...Ee,...je})},clear:()=>{t.set({}),a.set({})}})};var Dv=Object.freeze({__proto__:null,memory:np,dataset:HT,manual:q4,init:t=>t.store.manager.state(t)});const Fh=(t,a,p,E)=>{const z=a.store;p.update([E]),z.setValue(t,E),a.onSetValue(t,E)},t_=(t,a,p)=>{const E=a.store,z=E.getDataKey(t);return p.lookup(z).getOrThunk(()=>E.getFallbackEntry(z))},n_=(t,a,p)=>{a.store.initialValue.each(z=>{Fh(t,a,p,z)})},zT=(t,a,p)=>{p.clear()};var tC=[Ia("initialValue"),qn("getFallbackEntry"),qn("getDataKey"),qn("setValue"),rs("manager",{setValue:Fh,getValue:t_,onLoad:n_,onUnload:zT,state:HT})];const nC=(t,a,p)=>a.store.getValue(t),rC=(t,a,p,E)=>{a.store.setValue(t,E),a.onSetValue(t,E)},ex=(t,a,p)=>{a.store.initialValue.each(E=>{a.store.setValue(t,E)})};var Um=[qn("getValue"),En("setValue",C),Ia("initialValue"),rs("manager",{setValue:rC,getValue:nC,onLoad:ex,onUnload:C,state:wf.init})];const VT=(t,a,p,E)=>{p.set(E),a.onSetValue(t,E)},O1=(t,a,p)=>p.get(),oC=(t,a,p)=>{a.store.initialValue.each(E=>{p.isNotSet()&&p.set(E)})},r_=(t,a,p)=>{p.clear()};var P1=[Ia("initialValue"),rs("manager",{setValue:VT,getValue:O1,onLoad:oC,onUnload:r_,state:np})],o_=[ql("store",{mode:"memory"},fa("mode",{memory:P1,manual:Um,dataset:tC})),Sa("onSetValue"),En("resetOnDom",!1)];const Fr=Ki({fields:o_,name:"representing",active:qb,apis:Vm,extra:{setValueFrom:(t,a)=>{const p=Fr.getValue(a);Fr.setValue(t,p)}},state:Dv}),Fi=(t,a)=>U(t,{},ne(a,p=>Up(p.name(),"Cannot configure "+p.name()+" for "+t)).concat([zs("dump",D)])),Bh=t=>t.dump,Si=(t,a)=>({...gr(a),...t.dump}),nf={field:Fi,augment:Si,get:Bh},tx="placeholder",I1=Ae.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),od=t=>pn(t,"uiType"),nx=(t,a,p,E)=>t.exists(z=>z!==p.owner)?I1.single(!0,O(p)):Ft(E,p.name).fold(()=>{throw new Error("Unknown placeholder component: "+p.name+` -Known: [`+ot(E)+`] -Namespace: `+t.getOr("none")+` -Spec: `+JSON.stringify(p,null,2))},z=>z.replace()),rx=(t,a,p,E)=>od(p)&&p.uiType===tx?nx(t,a,p,E):I1.single(!1,O(p)),$v=(t,a,p,E)=>rx(t,a,p,E).fold((Y,re)=>{const xe=od(p)?re(a,p.config,p.validated):re(a),Ee=Ft(xe,"components").getOr([]),Be=ie(Ee,je=>$v(t,a,je,E));return[{...xe,components:Be}]},(Y,re)=>{if(od(p)){const xe=re(a,p.config,p.validated);return p.validated.preprocess.getOr(D)(xe)}else return re(a)}),UT=(t,a,p,E)=>ie(p,z=>$v(t,a,z,E)),N1=(t,a)=>{let p=!1;const E=()=>p,z=()=>{if(p)throw new Error("Trying to use the same placeholder more than once: "+t);return p=!0,a},Y=()=>a.fold((re,xe)=>re,(re,xe)=>re);return{name:O(t),required:Y,used:E,replace:z}},aC=(t,a,p,E)=>{const z=Xe(E,(re,xe)=>N1(xe,re)),Y=UT(t,a,p,z);return Ge(z,re=>{if(re.used()===!1&&re.required())throw new Error("Placeholder: "+re.name()+` was not found in components list -Namespace: `+t.getOr("none")+` -Components: `+JSON.stringify(a.components,null,2))}),Y},sC=I1.single,a_=I1.multiple,ad=O(tx),ox=Ae.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),Ov=En("factory",{sketch:D}),El=En("schema",[]),$i=qn("name"),ax=Wi("pname","pname",Xu(t=>""),oi()),F1=zs("schema",()=>[Ia("preprocess")]),sx=En("defaults",O({})),B1=En("overrides",O({})),H1=io([Ov,El,$i,ax,sx,B1]),Pv=io([Ov,El,$i,sx,B1]),WT=io([Ov,El,$i,ax,sx,B1]),z1=io([Ov,F1,$i,qn("unit"),ax,sx,B1]),GT=t=>t.fold(P.some,P.none,P.some,P.some),ZT=t=>{const a=p=>p.name;return t.fold(a,a,a,a)},jT=t=>t.fold(D,D,D,D),rf=(t,a)=>p=>{const E=ul("Converting part type",a,p);return t(E)},Fl=rf(ox.required,H1),Af=rf(ox.external,Pv),Fc=rf(ox.optional,WT),V1=rf(ox.group,z1),ix=O("entirety");var YT=Object.freeze({__proto__:null,required:Fl,external:Af,optional:Fc,group:V1,asNamedPart:GT,name:ZT,asCommon:jT,original:ix});const U1=(t,a,p,E)=>hs(a.defaults(t,p,E),p,{uid:t.partUids[a.name]},a.overrides(t,p,E)),s_=(t,a,p)=>{const E={},z={};return fe(p,Y=>{Y.fold(re=>{E[re.pname]=sC(!0,(xe,Ee,Be)=>re.factory.sketch(U1(xe,re,Ee,Be)))},re=>{const xe=a.parts[re.name];z[re.name]=O(re.factory.sketch(U1(a,re,xe[ix()]),xe))},re=>{E[re.pname]=sC(!1,(xe,Ee,Be)=>re.factory.sketch(U1(xe,re,Ee,Be)))},re=>{E[re.pname]=a_(!0,(xe,Ee,Be)=>{const je=xe[re.name];return ne(je,et=>re.factory.sketch(hs(re.defaults(xe,et,Be),et,re.overrides(xe,et))))})})}),{internals:O(E),externals:O(z)}},Hh=(t,a)=>{const p={};return fe(a,E=>{GT(E).each(z=>{const Y=W1(t,z.pname);p[z.name]=re=>{const xe=ul("Part: "+z.name+" in "+t,io(z.schema),re);return{...Y,config:re,validated:xe}}})}),p},W1=(t,a)=>({uiType:ad(),owner:t,name:a}),iC=(t,a,p)=>({uiType:ad(),owner:t,name:a,config:p,validated:{}}),KT=t=>ie(t,a=>a.fold(P.none,P.some,P.none,P.none).map(p=>Dc(p.name,p.schema.concat([u1(ix())]))).toArray()),XT=t=>ne(t,ZT),lC=(t,a,p)=>s_(t,a,p),lx=(t,a,p)=>aC(P.some(t),a,a.components,p),gs=(t,a,p)=>{const E=a.partUids[p];return t.getSystem().getByUid(E).toOptional()},zh=(t,a,p)=>gs(t,a,p).getOrDie("Could not find part: "+p),JT=(t,a,p)=>{const E={},z=a.partUids,Y=t.getSystem();return fe(p,re=>{E[re]=O(Y.getByUid(z[re]))}),E},cC=(t,a)=>{const p=t.getSystem();return Xe(a.partUids,(E,z)=>O(p.getByUid(E)))},uC=t=>ot(t.partUids),rp=(t,a,p)=>{const E={},z=a.partUids,Y=t.getSystem();return fe(p,re=>{E[re]=O(Y.getByUid(z[re]).getOrDie())}),E},fC=(t,a)=>{const p=XT(a);return bt(ne(p,E=>({key:E,value:t+"-"+E})))},dC=t=>Wi("partUids","partUids",aa(a=>fC(a.uid,t)),oi());var i_=Object.freeze({__proto__:null,generate:Hh,generateOne:iC,schemas:KT,names:XT,substitutes:lC,components:lx,defaultUids:fC,defaultUidsSchema:dC,getAllParts:cC,getAllPartNames:uC,getPart:gs,getPartOrDie:zh,getParts:JT,getPartsOrDie:rp});const Iv=(t,a)=>(t.length>0?[Dc("parts",t)]:[]).concat([qn("uid"),En("dom",{}),En("components",[]),u1("originalSpec"),En("debug.sketcher",{})]).concat(a),Nv=(t,a,p,E,z)=>{const Y=Iv(E,z);return ul(t+" [SpecSchema]",es(Y.concat(a)),p)},hC=(t,a,p,E)=>{const z=Wm(E),Y=Nv(t,a,z,[],[]);return p(Y,z)},mC=(t,a,p,E,z)=>{const Y=Wm(z),re=KT(p),xe=dC(p),Ee=Nv(t,a,Y,re,[xe]),Be=lC(t,Ee,p),je=lx(t,Ee,Be.internals());return E(Ee,je,Y,Be.externals())},Mf=t=>pn(t,"uid"),Wm=t=>Mf(t)?t:{...t,uid:jp("uid")},l_=t=>t.uid!==void 0,G1=es([qn("name"),qn("factory"),qn("configFields"),En("apis",{}),En("extraApis",{})]),c_=es([qn("name"),qn("factory"),qn("configFields"),qn("partFields"),En("apis",{}),En("extraApis",{})]),ou=t=>{const a=ul("Sketcher for "+t.name,G1,t),p=Y=>hC(a.name,a.configFields,a.factory,Y),E=Xe(a.apis,Ug),z=Xe(a.extraApis,(Y,re)=>db(Y,re));return{name:a.name,configFields:a.configFields,sketch:p,...E,...z}},Bl=t=>{const a=ul("Sketcher for "+t.name,c_,t),p=re=>mC(a.name,a.configFields,a.partFields,a.factory,re),E=Hh(a.name,a.partFields),z=Xe(a.apis,Ug),Y=Xe(a.extraApis,(re,xe)=>db(re,xe));return{name:a.name,partFields:a.partFields,configFields:a.configFields,sketch:p,parts:E,...z,...Y}},op=t=>Ut("input")(t)&&Ka(t,"type")!=="radio"||Ut("textarea")(t);var QT=Object.freeze({__proto__:null,getCurrent:(t,a,p)=>a.find(t)});const u_=[qn("find")],da=Ki({fields:u_,name:"composing",apis:QT}),gC=["input","button","textarea","select"],qT=(t,a,p)=>{(a.disabled()?tk:Z1)(t,a)},pC=(t,a)=>a.useNative===!0&&he(gC,vo(t.element)),f_=t=>Hf(t.element,"disabled"),d_=t=>{Lr(t.element,"disabled","disabled")},ek=t=>{Xa(t.element,"disabled")},h_=t=>Ka(t.element,"aria-disabled")==="true",Wr=t=>{Lr(t.element,"aria-disabled","true")},Gm=t=>{Lr(t.element,"aria-disabled","false")},tk=(t,a,p)=>{a.disableClass.each(z=>{hi(t.element,z)}),(pC(t,a)?d_:Wr)(t),a.onDisabled(t)},Z1=(t,a,p)=>{a.disableClass.each(z=>{Is(t.element,z)}),(pC(t,a)?ek:Gm)(t),a.onEnabled(t)},j1=(t,a)=>pC(t,a)?f_(t):h_(t);var m$=Object.freeze({__proto__:null,enable:Z1,disable:tk,isDisabled:j1,onLoad:qT,set:(t,a,p,E)=>{(E?tk:Z1)(t,a)}}),g_=Object.freeze({__proto__:null,exhibit:(t,a)=>qc({classes:a.disabled()?a.disableClass.toArray():[]}),events:(t,a)=>bs([U2(Ci(),(p,E)=>j1(p,t)),$b(t,a,qT)])}),nk=[bi("disabled",H),En("useNative",!0),Ia("disableClass"),Sa("onDisabled"),Sa("onEnabled")];const Co=Ki({fields:nk,name:"disabling",active:g_,apis:m$}),Vh=(t,a,p,E)=>{const z=Xi(t.element,"."+a.highlightClass);fe(z,Y=>{ge(E,xe=>Qt(xe.element,Y))||(Is(Y,a.highlightClass),t.getSystem().getByDom(Y).each(xe=>{a.onDehighlight(t,xe),pa(xe,t1())}))})},rk=(t,a,p)=>Vh(t,a,p,[]),p_=(t,a,p,E)=>{cx(t,a,p,E)&&(Is(E.element,a.highlightClass),a.onDehighlight(t,E),pa(E,t1()))},Y1=(t,a,p,E)=>{Vh(t,a,p,[E]),cx(t,a,p,E)||(hi(E.element,a.highlightClass),a.onHighlight(t,E),pa(E,e1()))},v_=(t,a,p)=>{Fv(t,a).each(E=>{Y1(t,a,p,E)})},ok=(t,a,p)=>{yC(t,a).each(E=>{Y1(t,a,p,E)})},vC=(t,a,p,E)=>{b_(t,a,p,E).fold(z=>{throw z},z=>{Y1(t,a,p,z)})},ak=(t,a,p,E)=>{const z=ux(t,a);Ve(z,E).each(re=>{Y1(t,a,p,re)})},cx=(t,a,p,E)=>Ni(E.element,a.highlightClass),y_=(t,a,p)=>mi(t.element,"."+a.highlightClass).bind(E=>t.getSystem().getByDom(E).toOptional()),b_=(t,a,p,E)=>{const z=Xi(t.element,"."+a.itemClass);return P.from(z[E]).fold(()=>Wo.error(new Error("No element found with index "+E)),t.getSystem().getByDom)},Fv=(t,a,p)=>mi(t.element,"."+a.itemClass).bind(E=>t.getSystem().getByDom(E).toOptional()),yC=(t,a,p)=>{const E=Xi(t.element,"."+a.itemClass);return(E.length>0?P.some(E[E.length-1]):P.none()).bind(Y=>t.getSystem().getByDom(Y).toOptional())},sk=(t,a,p,E)=>{const z=Xi(t.element,"."+a.itemClass);return Oe(z,re=>Ni(re,a.highlightClass)).bind(re=>{const xe=uv(re,E,0,z.length-1);return t.getSystem().getByDom(z[xe]).toOptional()})},x_=(t,a,p)=>sk(t,a,p,-1),w_=(t,a,p)=>sk(t,a,p,1),ux=(t,a,p)=>{const E=Xi(t.element,"."+a.itemClass);return an(ne(E,z=>t.getSystem().getByDom(z).toOptional()))};var Hd=Object.freeze({__proto__:null,dehighlightAll:rk,dehighlight:p_,highlight:Y1,highlightFirst:v_,highlightLast:ok,highlightAt:vC,highlightBy:ak,isHighlighted:cx,getHighlighted:y_,getFirst:Fv,getLast:yC,getPrevious:x_,getNext:w_,getCandidates:ux}),fx=[qn("highlightClass"),qn("itemClass"),Sa("onHighlight"),Sa("onDehighlight")];const Na=Ki({fields:fx,name:"highlighting",apis:Hd}),C_=[8],Uh=[9],zd=[13],dx=[27],_u=[32],hx=[37],Wh=[38],Bv=[39],K1=[40],bC=(t,a,p)=>{const E=se(t.slice(0,a)),z=se(t.slice(a+1));return Ve(E.concat(z),p)},S_=(t,a,p)=>{const E=se(t.slice(0,a));return Ve(E,p)},xC=(t,a,p)=>{const E=t.slice(0,a),z=t.slice(a+1);return Ve(z.concat(E),p)},T_=(t,a,p)=>{const E=t.slice(a+1);return Ve(E,p)},ya=t=>a=>{const p=a.raw;return he(t,p.which)},Ru=t=>a=>we(t,p=>p(a)),Zm=t=>t.raw.shiftKey===!0,k_=t=>t.raw.ctrlKey===!0,Hv=k(Zm),_a=(t,a)=>({matches:t,classification:a}),A_=(t,a)=>Ve(t,E=>E.matches(a)).map(E=>E.classification),wC=(t,a,p)=>{a.exists(z=>p.exists(Y=>Qt(Y,z)))||go(t,ab(),{prevFocus:a,newFocus:p})},I=()=>{const t=p=>Sf(p.element);return{get:t,set:(p,E)=>{const z=t(p);p.getSystem().triggerFocus(E,p.element);const Y=t(p);wC(p,z,Y)}}},W=()=>{const t=p=>Na.getHighlighted(p).map(E=>E.element);return{get:t,set:(p,E)=>{const z=t(p);p.getSystem().getByDom(E).fold(C,re=>{Na.highlight(p,re)});const Y=t(p);wC(p,z,Y)}}};var te;(function(t){t.OnFocusMode="onFocus",t.OnEnterOrSpaceMode="onEnterOrSpace",t.OnApiMode="onApi"})(te||(te={}));const me=(t,a,p,E,z)=>{const Y=()=>t.concat([En("focusManager",I()),ql("focusInside","onFocus",cl(Be=>he(["onFocus","onEnterOrSpace","onApi"],Be)?Wo.value(Be):Wo.error("Invalid value for focusInside"))),rs("handler",Ee),rs("state",a),rs("sendFocusIn",z)]),re=(Be,je,et,st,mt)=>{const Mt=et(Be,je,st,mt);return A_(Mt,je.event).bind(Xt=>Xt(Be,je,st,mt))},Ee={schema:Y,processKey:re,toEvents:(Be,je)=>{const et=Be.focusInside!==te.OnFocusMode?P.none():z(Be).map(Mt=>Xn(qu(),(Xt,Dn)=>{Mt(Xt,Be,je),Dn.stop()})),st=(Mt,Xt)=>{const Dn=ya(_u.concat(zd))(Xt.event);Be.focusInside===te.OnEnterOrSpaceMode&&Dn&&dn(Mt,Xt)&&z(Be).each(hn=>{hn(Mt,Be,je),Xt.stop()})},mt=[Xn(Ca(),(Mt,Xt)=>{re(Mt,Xt,p,Be,je).fold(()=>{st(Mt,Xt)},Dn=>{Xt.stop()})}),Xn(As(),(Mt,Xt)=>{re(Mt,Xt,E,Be,je).each(Dn=>{Xt.stop()})})];return bs(et.toArray().concat(mt))}};return Ee},Le=t=>{const a=[Ia("onEscape"),Ia("onEnter"),En("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),En("firstTabstop",0),En("useTabstopAt",j),Ia("visibilitySelector")].concat([t]),p=(hn,rn)=>{const kn=hn.visibilitySelector.bind(Vn=>Qf(rn,Vn)).getOr(rn);return Ls(kn)>0},E=(hn,rn)=>{const kn=Xi(hn.element,rn.selector),Vn=Ce(kn,hr=>p(rn,hr));return P.from(Vn[rn.firstTabstop])},z=(hn,rn)=>rn.focusManager.get(hn).bind(kn=>Qf(kn,rn.selector)),Y=(hn,rn)=>p(hn,rn)&&hn.useTabstopAt(rn),re=(hn,rn,kn)=>{E(hn,rn).each(Vn=>{rn.focusManager.set(hn,Vn)})},xe=(hn,rn,kn,Vn,hr)=>hr(rn,kn,Yn=>Y(Vn,Yn)).fold(()=>Vn.cyclic?P.some(!0):P.none(),Yn=>(Vn.focusManager.set(hn,Yn),P.some(!0))),Ee=(hn,rn,kn,Vn)=>{const hr=Xi(hn.element,kn.selector);return z(hn,kn).bind(Yn=>Oe(hr,M(Qt,Yn)).bind(Mr=>xe(hn,hr,Mr,kn,Vn)))},Be=(hn,rn,kn)=>{const Vn=kn.cyclic?bC:S_;return Ee(hn,rn,kn,Vn)},je=(hn,rn,kn)=>{const Vn=kn.cyclic?xC:T_;return Ee(hn,rn,kn,Vn)},et=hn=>Hr(hn).bind(So).exists(rn=>Qt(rn,hn)),st=(hn,rn,kn)=>z(hn,kn).filter(Vn=>!kn.useTabstopAt(Vn)).bind(Vn=>(et(Vn)?Be:je)(hn,rn,kn)),mt=(hn,rn,kn)=>kn.onEnter.bind(Vn=>Vn(hn,rn)),Mt=(hn,rn,kn)=>kn.onEscape.bind(Vn=>Vn(hn,rn)),Xt=O([_a(Ru([Zm,ya(Uh)]),Be),_a(ya(Uh),je),_a(Ru([Hv,ya(zd)]),mt)]),Dn=O([_a(ya(dx),Mt),_a(ya(Uh),st)]);return me(a,wf.init,Xt,Dn,()=>P.some(re))};var Ue=Le(zs("cyclic",H)),nt=Le(zs("cyclic",j));const xt=(t,a,p)=>(lb(t,p,Ci()),P.some(!0)),Lt=(t,a,p)=>op(p)&&ya(_u)(a.event)?P.none():xt(t,a,p),Jt=(t,a)=>P.some(!0),Tn=[En("execute",Lt),En("useSpace",!1),En("useEnter",!0),En("useControlEnter",!1),En("useDown",!1)],sr=(t,a,p)=>p.execute(t,a,t.element),Dr=(t,a,p,E)=>{const z=p.useSpace&&!op(t.element)?_u:[],Y=p.useEnter?zd:[],re=p.useDown?K1:[],xe=z.concat(Y).concat(re);return[_a(ya(xe),sr)].concat(p.useControlEnter?[_a(Ru([k_,ya(zd)]),sr)]:[])},Rr=(t,a,p,E)=>p.useSpace&&!op(t.element)?[_a(ya(_u),Jt)]:[];var Jn=me(Tn,wf.init,Dr,Rr,()=>P.none());const Or=()=>{const t=ia();return Qc({readState:()=>t.get().map(z=>({numRows:String(z.numRows),numColumns:String(z.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(z,Y)=>{t.set({numRows:z,numColumns:Y})},getNumRows:()=>t.get().map(z=>z.numRows),getNumColumns:()=>t.get().map(z=>z.numColumns)})};var oo=Object.freeze({__proto__:null,flatgrid:Or,init:t=>t.state(t)});const Ro=t=>(a,p,E,z)=>{const Y=t(a.element);return si(Y,a,p,E,z)},Qo=(t,a)=>{const p=Nb(t,a);return Ro(p)},_s=(t,a)=>{const p=Nb(a,t);return Ro(p)},Ji=t=>(a,p,E,z)=>si(t,a,p,E,z),si=(t,a,p,E,z)=>E.focusManager.get(a).bind(re=>t(a.element,re,E,z)).map(re=>(E.focusManager.set(a,re),!0)),Bc=Ji,ap=Ji,sp=Ji,CC=t=>t.offsetWidth<=0&&t.offsetHeight<=0,mx=t=>!CC(t.dom),ls=(t,a)=>Oe(t,a).map(p=>({index:p,candidates:t})),lc=(t,a,p)=>{const E=re=>Qt(re,a),z=Xi(t,p),Y=Ce(z,mx);return ls(Y,E)},_l=(t,a)=>Oe(t,p=>Qt(a,p)),Lu=(t,a,p,E)=>{const z=Math.floor(a/p),Y=a%p;return E(z,Y).bind(re=>{const xe=re.row*p+re.column;return xe>=0&&xeLu(t,a,E,(Y,re)=>{const Ee=Y===p-1?t.length-Y*E:E,Be=uv(re,z,0,Ee-1);return P.some({row:Y,column:Be})}),jm=(t,a,p,E,z)=>Lu(t,a,E,(Y,re)=>{const xe=uv(Y,z,0,p-1),Be=xe===p-1?t.length-xe*E:E,je=ku(re,0,Be-1);return P.some({row:xe,column:je})}),Tc=(t,a,p,E)=>au(t,a,p,E,1),SC=(t,a,p,E)=>au(t,a,p,E,-1),X1=(t,a,p,E)=>jm(t,a,p,E,-1),Vd=(t,a,p,E)=>jm(t,a,p,E,1),Hl=[qn("selector"),En("execute",Lt),ru("onEscape"),En("captureTab",!1),lw()],J1=(t,a,p)=>{mi(t.element,a.selector).each(E=>{a.focusManager.set(t,E)})},ik=(t,a)=>a.focusManager.get(t).bind(p=>Qf(p,a.selector)),lk=(t,a,p,E)=>ik(t,p).bind(z=>p.execute(t,a,z)),zv=t=>(a,p,E,z)=>lc(a,p,E.selector).bind(Y=>t(Y.candidates,Y.index,z.getNumRows().getOr(E.initSize.numRows),z.getNumColumns().getOr(E.initSize.numColumns))),ck=(t,a,p)=>p.captureTab?P.some(!0):P.none(),gx=(t,a,p)=>p.onEscape(t,a),uk=zv(SC),ip=zv(Tc),p$=zv(X1),pH=zv(Vd),vH=O([_a(ya(hx),Qo(uk,ip)),_a(ya(Bv),_s(uk,ip)),_a(ya(Wh),Bc(p$)),_a(ya(K1),ap(pH)),_a(Ru([Zm,ya(Uh)]),ck),_a(Ru([Hv,ya(Uh)]),ck),_a(ya(_u.concat(zd)),lk)]),yH=O([_a(ya(dx),gx),_a(ya(_u),Jt)]);var bH=me(Hl,Or,vH,yH,()=>P.some(J1));const v$=(t,a,p,E,z)=>{const Y=xe=>vo(xe)==="button"&&Ka(xe,"disabled")==="disabled",re=(xe,Ee,Be)=>z(xe,Ee,E,0,Be.length-1,Be[Ee],je=>Y(Be[je])?re(xe,je,Be):P.from(Be[je]));return lc(t,p,a).bind(xe=>{const Ee=xe.index,Be=xe.candidates;return re(Ee,Ee,Be)})},y$=(t,a,p,E)=>v$(t,a,p,E,(z,Y,re,xe,Ee,Be,je)=>{const et=ku(Y+re,xe,Ee);return et===z?P.from(Be):je(et)}),px=(t,a,p,E)=>v$(t,a,p,E,(z,Y,re,xe,Ee,Be,je)=>{const et=uv(Y,re,xe,Ee);return et===z?P.none():je(et)}),M_=[qn("selector"),En("getInitial",P.none),En("execute",Lt),ru("onEscape"),En("executeOnMove",!1),En("allowVertical",!0),En("allowHorizontal",!0),En("cycles",!0)],xH=(t,a)=>a.focusManager.get(t).bind(p=>Qf(p,a.selector)),b$=(t,a,p)=>xH(t,p).bind(E=>p.execute(t,a,E)),x$=(t,a,p)=>{a.getInitial(t).orThunk(()=>mi(t.element,a.selector)).each(E=>{a.focusManager.set(t,E)})},w$=(t,a,p)=>(p.cycles?px:y$)(t,p.selector,a,-1),C$=(t,a,p)=>(p.cycles?px:y$)(t,p.selector,a,1),Ef=t=>(a,p,E,z)=>t(a,p,E,z).bind(()=>E.executeOnMove?b$(a,p,E):P.some(!0)),wH=(t,a,p)=>p.onEscape(t,a),CH=(t,a,p,E)=>{const z=[...p.allowHorizontal?hx:[]].concat(p.allowVertical?Wh:[]),Y=[...p.allowHorizontal?Bv:[]].concat(p.allowVertical?K1:[]);return[_a(ya(z),Ef(Qo(w$,C$))),_a(ya(Y),Ef(_s(w$,C$))),_a(ya(zd),b$),_a(ya(_u),b$)]},SH=O([_a(ya(_u),Jt),_a(ya(dx),wH)]);var TH=me(M_,wf.init,CH,SH,()=>P.some(x$));const fk=(t,a,p)=>P.from(t[a]).bind(E=>P.from(E[p]).map(z=>({rowIndex:a,columnIndex:p,cell:z}))),Q1=(t,a,p,E)=>{const Y=t[a].length,re=uv(p,E,0,Y-1);return fk(t,a,re)},dk=(t,a,p,E)=>{const z=uv(p,E,0,t.length-1),Y=t[z].length,re=ku(a,0,Y-1);return fk(t,z,re)},S$=(t,a,p,E)=>{const Y=t[a].length,re=ku(p+E,0,Y-1);return fk(t,a,re)},hk=(t,a,p,E)=>{const z=ku(p+E,0,t.length-1),Y=t[z].length,re=ku(a,0,Y-1);return fk(t,z,re)},mk=(t,a,p)=>Q1(t,a,p,1),E_=(t,a,p)=>Q1(t,a,p,-1),kH=(t,a,p)=>dk(t,p,a,-1),AH=(t,a,p)=>dk(t,p,a,1),MH=(t,a,p)=>S$(t,a,p,-1),EH=(t,a,p)=>S$(t,a,p,1),_H=(t,a,p)=>hk(t,p,a,-1),RH=(t,a,p)=>hk(t,p,a,1),T$=[Dc("selectors",[qn("row"),qn("cell")]),En("cycles",!0),En("previousSelector",P.none),En("execute",Lt)],__=(t,a,p)=>{a.previousSelector(t).orThunk(()=>{const z=a.selectors;return mi(t.element,z.cell)}).each(z=>{a.focusManager.set(t,z)})},LH=(t,a,p)=>Sf(t.element).bind(E=>p.execute(t,a,E)),DH=(t,a)=>ne(t,p=>Xi(p,a.selectors.cell)),gk=(t,a)=>(p,E,z)=>{const Y=z.cycles?t:a;return Qf(E,z.selectors.row).bind(re=>{const xe=Xi(re,z.selectors.cell);return _l(xe,E).bind(Ee=>{const Be=Xi(p,z.selectors.row);return _l(Be,re).bind(je=>{const et=DH(Be,z);return Y(et,je,Ee).map(st=>st.cell)})})})},k$=gk(E_,MH),Vv=gk(mk,EH),A$=gk(kH,_H),$H=gk(AH,RH),R_=O([_a(ya(hx),Qo(k$,Vv)),_a(ya(Bv),_s(k$,Vv)),_a(ya(Wh),Bc(A$)),_a(ya(K1),ap($H)),_a(ya(_u.concat(zd)),LH)]),OH=O([_a(ya(_u),Jt)]);var M$=me(T$,wf.init,R_,OH,()=>P.some(__));const E$=[qn("selector"),En("execute",Lt),En("moveOnTab",!1)],L_=(t,a,p)=>p.focusManager.get(t).bind(E=>p.execute(t,a,E)),_$=(t,a,p)=>{mi(t.element,a.selector).each(E=>{a.focusManager.set(t,E)})},D_=(t,a,p)=>px(t,p.selector,a,-1),R$=(t,a,p)=>px(t,p.selector,a,1),PH=(t,a,p,E)=>p.moveOnTab?sp(D_)(t,a,p,E):P.none(),IH=(t,a,p,E)=>p.moveOnTab?sp(R$)(t,a,p,E):P.none(),$_=O([_a(ya(Wh),sp(D_)),_a(ya(K1),sp(R$)),_a(Ru([Zm,ya(Uh)]),PH),_a(Ru([Hv,ya(Uh)]),IH),_a(ya(zd),L_),_a(ya(_u),L_)]),NH=O([_a(ya(_u),Jt)]);var FH=me(E$,wf.init,$_,NH,()=>P.some(_$));const BH=[ru("onSpace"),ru("onEnter"),ru("onShiftEnter"),ru("onLeft"),ru("onRight"),ru("onTab"),ru("onShiftTab"),ru("onUp"),ru("onDown"),ru("onEscape"),En("stopSpaceKeyup",!1),Ia("focusIn")],HH=(t,a,p)=>[_a(ya(_u),p.onSpace),_a(Ru([Hv,ya(zd)]),p.onEnter),_a(Ru([Zm,ya(zd)]),p.onShiftEnter),_a(Ru([Zm,ya(Uh)]),p.onShiftTab),_a(Ru([Hv,ya(Uh)]),p.onTab),_a(ya(Wh),p.onUp),_a(ya(K1),p.onDown),_a(ya(hx),p.onLeft),_a(ya(Bv),p.onRight),_a(ya(_u),p.onSpace)],L$=(t,a,p)=>[...p.stopSpaceKeyup?[_a(ya(_u),Jt)]:[],_a(ya(dx),p.onEscape)];var zH=me(BH,wf.init,HH,L$,t=>t.focusIn);const VH=Ue.schema(),UH=nt.schema(),D$=TH.schema(),WH=bH.schema(),GH=M$.schema(),$$=Jn.schema(),ZH=FH.schema(),jH=zH.schema();var pk=Object.freeze({__proto__:null,acyclic:VH,cyclic:UH,flow:D$,flatgrid:WH,matrix:GH,execution:$$,menu:ZH,special:jH});const YH=t=>_n(t,"setGridSize"),po=Ob({branchKey:"mode",branches:pk,name:"keying",active:{events:(t,a)=>t.handler.toEvents(t,a)},apis:{focusIn:(t,a,p)=>{a.sendFocusIn(a).fold(()=>{t.getSystem().triggerFocus(t.element,t.element)},E=>{E(t,a,p)})},setGridSize:(t,a,p,E,z)=>{YH(p)?p.setGridSize(E,z):console.error("Layout does not support setGridSize")}},state:oo}),Hc=(t,a)=>{Ur(()=>{j4(t,a,()=>ne(a,t.getSystem().build))},t.element)},O$=(t,a)=>{Ur(()=>{Y4(t,a,()=>r$(t.element,a,t.getSystem().buildOrPatch))},t.element)},P$=(t,a,p,E)=>{Mv(a);const z=U3(t.element,p,E,t.getSystem().buildOrPatch);Jw(t,z),t.syncComponents()},vk=(t,a,p)=>{const E=t.getSystem().build(p);Ev(t,E,a)},KH=(t,a,p,E)=>{Bd(a),vk(t,(z,Y)=>zi(z,Y,p),E)},I$=(t,a,p,E)=>(a.reuseDom?O$:Hc)(t,E),N$=(t,a,p,E)=>{vk(t,pc,E)},XH=(t,a,p,E)=>{vk(t,F0,E)},JH=(t,a,p,E)=>{const z=yk(t);Ve(z,re=>Qt(E.element,re.element)).each(Bd)},yk=(t,a)=>t.components(),F$=(t,a,p,E,z)=>{const Y=yk(t);return P.from(Y[E]).map(re=>(z.fold(()=>Bd(re),xe=>{(a.reuseDom?P$:KH)(t,re,E,xe)}),re))};var qH=Object.freeze({__proto__:null,append:N$,prepend:XH,remove:JH,replaceAt:F$,replaceBy:(t,a,p,E,z)=>{const Y=yk(t);return Oe(Y,E).bind(re=>F$(t,a,p,re,z))},set:I$,contents:yk});const Ho=Ki({fields:[Li("reuseDom",!0)],name:"replacing",apis:qH}),B$=(t,a)=>{const p=bs(a);return Ki({fields:[qn("enabled")],name:t,active:{events:O(p)}})},jo=(t,a)=>{const p=B$(t,a);return{key:t,value:{config:{},me:p,configAsRaw:O({}),initialConfig:{},state:wf}}},O_=(t,a)=>{a.ignore||(Ic(t.element),a.onFocus(t))};var ez=Object.freeze({__proto__:null,focus:O_,blur:(t,a)=>{a.ignore||hv(t.element)},isFocused:t=>p1(t.element)}),H$=Object.freeze({__proto__:null,exhibit:(t,a)=>{const p=a.ignore?{}:{attributes:{tabindex:"-1"}};return qc(p)},events:t=>bs([Xn(qu(),(a,p)=>{O_(a,t),p.stop()})].concat(t.stopMousedown?[Xn(fo(),(a,p)=>{p.event.prevent()})]:[]))}),Uv=[Sa("onFocus"),En("stopMousedown",!1),En("ignore",!1)];const ko=Ki({fields:Uv,name:"focusing",active:H$,apis:ez}),z$=t=>({init:()=>{const p=q(t);return{get:()=>p.get(),set:xe=>p.set(xe),clear:()=>p.set(t),readState:()=>p.get()}}}),P_=(t,a,p)=>{const E=a.aria;E.update(t,E,p.get())},nz=(t,a,p)=>{a.toggleClass.each(E=>{p.get()?hi(t.element,E):Is(t.element,E)})},TC=(t,a,p,E)=>{const z=p.get();p.set(E),nz(t,a,p),P_(t,a,p),z!==E&&a.onToggled(t,E)},V$=(t,a,p)=>{TC(t,a,p,!p.get())},rz=(t,a,p)=>{TC(t,a,p,!0)},U$=(t,a,p)=>{TC(t,a,p,!1)},I_=(t,a,p)=>p.get(),bk=(t,a,p)=>{TC(t,a,p,a.selected)};var oz=Object.freeze({__proto__:null,onLoad:bk,toggle:V$,isOn:I_,on:rz,off:U$,set:TC}),W$=Object.freeze({__proto__:null,exhibit:()=>qc({}),events:(t,a)=>{const p=dv(t,a,V$),E=$b(t,a,bk);return bs(Fe([t.toggleOnExecute?[p]:[],[E]]))}});const sz=(t,a,p)=>{Lr(t.element,"aria-pressed",p),a.syncWithExpanded&&vx(t,a,p)},iz=(t,a,p)=>{Lr(t.element,"aria-selected",p)},kC=(t,a,p)=>{Lr(t.element,"aria-checked",p)},vx=(t,a,p)=>{Lr(t.element,"aria-expanded",p)};var G$=[En("selected",!1),Ia("toggleClass"),En("toggleOnExecute",!0),Sa("onToggled"),ql("aria",{mode:"none"},fa("mode",{pressed:[En("syncWithExpanded",!1),rs("update",sz)],checked:[rs("update",kC)],expanded:[rs("update",vx)],selected:[rs("update",iz)],none:[rs("update",C)]}))];const qo=Ki({fields:G$,name:"toggling",active:W$,apis:oz,state:z$(!1)}),lp=()=>{const t=(a,p)=>{p.stop(),kh(a)};return[Xn(xi(),t),Xn(nc(),t),Ah(eo()),Ah(fo())]},Gh=t=>{const a=p=>xf((E,z)=>{p(E),z.stop()});return bs(Fe([t.map(a).toArray(),lp()]))},Z$="alloy.item-hover",j$="alloy.item-focus",N_="alloy.item-toggled",Ym=t=>{(Sf(t.element).isNone()||ko.isFocused(t))&&(ko.isFocused(t)||ko.focus(t),go(t,Z$,{item:t}))},xk=t=>{go(t,j$,{item:t})},lz=(t,a)=>{go(t,N_,{item:t,state:a})},F_=O(Z$),Y$=O(j$),K$=O(N_),B_=t=>t.toggling.map(a=>a.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),X$=t=>({aria:{mode:"checked"},...Ct(t,(a,p)=>p!=="exclusive"),onToggled:(a,p)=>{g(t.onToggled)&&t.onToggled(a,p),lz(a,p)}}),cz=t=>({dom:t.dom,domModification:{...t.domModification,attributes:{role:B_(t),...t.domModification.attributes,"aria-haspopup":t.hasSubmenu,...t.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:nf.augment(t.itemBehaviours,[t.toggling.fold(qo.revoke,a=>qo.config(X$(a))),ko.config({ignore:t.ignoreFocus,stopMousedown:t.ignoreFocus,onFocus:a=>{xk(a)}}),po.config({mode:"execution"}),Fr.config({store:{mode:"memory",initialValue:t.data}}),jo("item-type-events",[...lp(),Xn($r(),Ym),Xn(Za(),ko.focus)])]),components:t.components,eventOrder:t.eventOrder}),uz=[qn("data"),qn("components"),qn("dom"),En("hasSubmenu",!1),Ia("toggling"),nf.field("itemBehaviours",[qo,ko,po,Fr]),En("ignoreFocus",!1),En("domModification",{}),rs("builder",cz),En("eventOrder",{})],fz=t=>({dom:t.dom,components:t.components,events:bs([VE(Za())])}),wk=[qn("dom"),qn("components"),rs("builder",fz)],AC=O("item-widget"),MC=O([Fl({name:"widget",overrides:t=>({behaviours:gr([Fr.config({store:{mode:"manual",getValue:a=>t.data,setValue:C}})])})})]),dz=t=>{const a=lC(AC(),t,MC()),p=lx(AC(),t,a.internals()),E=Y=>gs(Y,t,"widget").map(re=>(po.focusIn(re),re)),z=(Y,re)=>op(re.event.target)?P.none():(()=>(t.autofocus&&re.setSource(Y.element),P.none()))();return{dom:t.dom,components:p,domModification:t.domModification,events:bs([xf((Y,re)=>{E(Y).each(xe=>{re.stop()})}),Xn($r(),Ym),Xn(Za(),(Y,re)=>{t.autofocus?E(Y):ko.focus(Y)})]),behaviours:nf.augment(t.widgetBehaviours,[Fr.config({store:{mode:"memory",initialValue:t.data}}),ko.config({ignore:t.ignoreFocus,onFocus:Y=>{xk(Y)}}),po.config({mode:"special",focusIn:t.autofocus?Y=>{E(Y)}:xw(),onLeft:z,onRight:z,onEscape:(Y,re)=>!ko.isFocused(Y)&&!t.autofocus?(ko.focus(Y),P.some(!0)):(t.autofocus&&re.setSource(Y.element),P.none())})])}},hz=[qn("uid"),qn("data"),qn("components"),qn("dom"),En("autofocus",!1),En("ignoreFocus",!1),nf.field("widgetBehaviours",[Fr,ko,po]),En("domModification",{}),dC(MC()),rs("builder",dz)],J$=fa("type",{widget:hz,item:uz,separator:wk}),Q$=(t,a)=>({mode:"flatgrid",selector:"."+t.markers.item,initSize:{numColumns:a.initSize.numColumns,numRows:a.initSize.numRows},focusManager:t.focusManager}),q$=(t,a)=>({mode:"matrix",selectors:{row:a.rowSelector,cell:"."+t.markers.item},previousSelector:a.previousSelector,focusManager:t.focusManager}),e8=(t,a)=>({mode:"menu",selector:"."+t.markers.item,moveOnTab:a.moveOnTab,focusManager:t.focusManager}),mz=O([V1({factory:{sketch:t=>{const a=ul("menu.spec item",J$,t);return a.builder(a)}},name:"items",unit:"item",defaults:(t,a)=>pn(a,"uid")?a:{...a,uid:jp("item")},overrides:(t,a)=>({type:a.type,ignoreFocus:t.fakeFocus,domModification:{classes:[t.markers.item]}})})]),H_=O([qn("value"),qn("items"),qn("dom"),qn("components"),En("eventOrder",{}),Fi("menuBehaviours",[Na,Fr,da,po]),ql("movement",{mode:"menu",moveOnTab:!0},fa("mode",{grid:[lw(),rs("config",Q$)],matrix:[rs("config",q$),qn("rowSelector"),En("previousSelector",P.none)],menu:[En("moveOnTab",!0),rs("config",e8)]})),o4(),En("fakeFocus",!1),En("focusManager",I()),Sa("onHighlight"),Sa("onDehighlight")]),t8=O("alloy.menu-focus"),gz=(t,a)=>{const p=Xi(t.element,'[role="menuitemradio"][aria-checked="true"]');fe(p,E=>{Qt(E,a.element)||t.getSystem().getByDom(E).each(z=>{qo.off(z)})})},pz=(t,a,p,E)=>({uid:t.uid,dom:t.dom,markers:t.markers,behaviours:Si(t.menuBehaviours,[Na.config({highlightClass:t.markers.selectedItem,itemClass:t.markers.item,onHighlight:t.onHighlight,onDehighlight:t.onDehighlight}),Fr.config({store:{mode:"memory",initialValue:t.value}}),da.config({find:P.some}),po.config(t.movement.config(t,t.movement))]),events:bs([Xn(Y$(),(z,Y)=>{const re=Y.event;z.getSystem().getByDom(re.target).each(xe=>{Na.highlight(z,xe),Y.stop(),go(z,t8(),{menu:z,item:xe})})}),Xn(F_(),(z,Y)=>{const re=Y.event.item;Na.highlight(z,re)}),Xn(K$(),(z,Y)=>{const{item:re,state:xe}=Y.event;xe&&Ka(re.element,"role")==="menuitemradio"&&gz(z,re)})]),components:a,eventOrder:t.eventOrder,domModification:{attributes:{role:"menu"}}}),ey=Bl({name:"Menu",configFields:H_(),partFields:mz(),factory:pz}),n8=t=>qe(t,(a,p)=>({k:a,v:p})),r8=(t,a,p,E)=>Ft(p,E).bind(z=>Ft(t,z).bind(Y=>{const re=r8(t,a,p,Y);return P.some([Y].concat(re))})).getOr([]),vz=(t,a)=>{const p={};Ge(t,(re,xe)=>{fe(re,Ee=>{p[Ee]=xe})});const E=a,z=n8(a),Y=Xe(z,(re,xe)=>[xe].concat(r8(p,E,z,xe)));return Xe(p,re=>Ft(Y,re).getOr([re]))},o8=()=>{const t=q({}),a=q({}),p=q({}),E=ia(),z=q({}),Y=()=>{t.set({}),a.set({}),p.set({}),E.clear()},re=()=>E.get().isNone(),xe=(hr,Yn)=>{a.set({...a.get(),[hr]:{type:"prepared",menu:Yn}})},Ee=(hr,Yn,br,Mr)=>{E.set(hr),t.set(br),a.set(Yn),z.set(Mr);const ea=vz(Mr,br);p.set(ea)},Be=hr=>Yt(t.get(),(Yn,br)=>Yn===hr),je=(hr,Yn,br)=>Xt(hr).bind(Mr=>Be(hr).bind(ea=>Yn(ea).map(Zr=>({triggeredMenu:Mr,triggeringItem:Zr,triggeringPath:br})))),et=(hr,Yn)=>{const br=Ce(hn(hr).toArray(),Mr=>Xt(Mr).isSome());return Ft(p.get(),hr).bind(Mr=>{const ea=se(br.concat(Mr)),Zr=ie(ea,(Do,Mo)=>je(Do,Yn,ea.slice(0,Mo+1)).fold(()=>sn(E.get(),Do)?[]:[P.none()],ja=>[P.some(ja)]));return Cn(Zr)})},st=hr=>Ft(t.get(),hr).map(Yn=>{const br=Ft(p.get(),hr).getOr([]);return[Yn].concat(br)}),mt=hr=>Ft(p.get(),hr).bind(Yn=>Yn.length>1?P.some(Yn.slice(1)):P.none()),Mt=hr=>Ft(p.get(),hr),Xt=hr=>Dn(hr).bind(yx),Dn=hr=>Ft(a.get(),hr),hn=hr=>Ft(t.get(),hr);return{setMenuBuilt:xe,setContents:Ee,expand:st,refresh:Mt,collapse:mt,lookupMenu:Dn,lookupItem:hn,otherMenus:hr=>{const Yn=z.get();return ue(ot(Yn),hr)},getPrimary:()=>E.get().bind(Xt),getMenus:()=>a.get(),clear:Y,isClear:re,getTriggeringPath:et}},yx=t=>t.type==="prepared"?P.some(t.menu):P.none(),a8={init:o8,extractPreparedMenu:yx},bx=Xr("tiered-menu-item-highlight"),Ck=Xr("tiered-menu-item-dehighlight");var zc;(function(t){t[t.HighlightMenuAndItem=0]="HighlightMenuAndItem",t[t.HighlightJustMenu=1]="HighlightJustMenu",t[t.HighlightNone=2]="HighlightNone"})(zc||(zc={}));const s8=(t,a)=>{const p=ia(),E=(Ar,no,$o)=>Xe($o,(Po,wo)=>{const Vo=()=>ey.sketch({...Po,value:wo,markers:t.markers,fakeFocus:t.fakeFocus,onHighlight:(ys,Ra)=>{go(ys,bx,{menuComp:ys,itemComp:Ra})},onDehighlight:(ys,Ra)=>{go(ys,Ck,{menuComp:ys,itemComp:Ra})},focusManager:t.fakeFocus?W():I()});return wo===no?{type:"prepared",menu:Ar.getSystem().build(Vo())}:{type:"notbuilt",nbMenu:Vo}}),z=a8.init(),Y=Ar=>{const no=E(Ar,t.data.primary,t.data.menus),$o=Ee();return z.setContents(t.data.primary,no,t.data.expansions,$o),z.getPrimary()},re=Ar=>Fr.getValue(Ar).value,xe=(Ar,no,$o)=>We(no,Po=>{if(!Po.getSystem().isConnected())return P.none();const wo=Na.getCandidates(Po);return Ve(wo,Vo=>re(Vo)===$o)}),Ee=Ar=>Xe(t.data.menus,(no,$o)=>ie(no.items,Po=>Po.type==="separator"?[]:[Po.data.value])),Be=Na.highlight,je=(Ar,no)=>{Be(Ar,no),Na.getHighlighted(no).orThunk(()=>Na.getFirst(no)).each($o=>{t.fakeFocus?Na.highlight(no,$o):lb(Ar,$o.element,Za())})},et=(Ar,no)=>an(ne(no,$o=>Ar.lookupMenu($o).bind(Po=>Po.type==="prepared"?P.some(Po.menu):P.none()))),st=(Ar,no,$o)=>{const Po=et(no,no.otherMenus($o));fe(Po,wo=>{Su(wo.element,[t.markers.backgroundMenu]),t.stayInDom||Ho.remove(Ar,wo)})},mt=Ar=>p.get().getOrThunk(()=>{const no={},$o=Xi(Ar.element,`.${t.markers.item}`),Po=Ce($o,wo=>Ka(wo,"aria-haspopup")==="true");return fe(Po,wo=>{Ar.getSystem().getByDom(wo).each(Vo=>{const ys=re(Vo);no[ys]=Vo})}),p.set(no),no}),Mt=(Ar,no)=>{const $o=mt(Ar);Ge($o,(Po,wo)=>{const Vo=he(no,wo);Lr(Po.element,"aria-expanded",Vo)})},Xt=(Ar,no,$o)=>P.from($o[0]).bind(Po=>no.lookupMenu(Po).bind(wo=>{if(wo.type==="notbuilt")return P.none();{const Vo=wo.menu,ys=et(no,$o.slice(1));return fe(ys,Ra=>{hi(Ra.element,t.markers.backgroundMenu)}),Wa(Vo.element)||Ho.append(Ar,Tu(Vo)),Su(Vo.element,[t.markers.backgroundMenu]),je(Ar,Vo),st(Ar,no,$o),P.some(Vo)}}));let Dn;(function(Ar){Ar[Ar.HighlightSubmenu=0]="HighlightSubmenu",Ar[Ar.HighlightParent=1]="HighlightParent"})(Dn||(Dn={}));const hn=(Ar,no,$o)=>{if($o.type==="notbuilt"){const Po=Ar.getSystem().build($o.nbMenu());return z.setMenuBuilt(no,Po),Po}else return $o.menu},rn=(Ar,no,$o=Dn.HighlightSubmenu)=>{if(no.hasConfigured(Co)&&Co.isDisabled(no))return P.some(no);{const Po=re(no);return z.expand(Po).bind(wo=>(Mt(Ar,wo),P.from(wo[0]).bind(Vo=>z.lookupMenu(Vo).bind(ys=>{const Ra=hn(Ar,Vo,ys);return Wa(Ra.element)||Ho.append(Ar,Tu(Ra)),t.onOpenSubmenu(Ar,no,Ra,se(wo)),$o===Dn.HighlightSubmenu?(Na.highlightFirst(Ra),Xt(Ar,z,wo)):(Na.dehighlightAll(Ra),P.some(no))}))))}},kn=(Ar,no)=>{const $o=re(no);return z.collapse($o).bind(Po=>(Mt(Ar,Po),Xt(Ar,z,Po).map(wo=>(t.onCollapseMenu(Ar,no,wo),wo))))},Vn=(Ar,no)=>{const $o=re(no);return z.refresh($o).bind(Po=>(Mt(Ar,Po),Xt(Ar,z,Po)))},hr=(Ar,no)=>op(no.element)?P.none():rn(Ar,no,Dn.HighlightSubmenu),Yn=(Ar,no)=>op(no.element)?P.none():kn(Ar,no),br=(Ar,no)=>kn(Ar,no).orThunk(()=>t.onEscape(Ar,no).map(()=>Ar)),Mr=Ar=>(no,$o)=>Qf($o.getSource(),`.${t.markers.item}`).bind(Po=>no.getSystem().getByDom(Po).toOptional().bind(wo=>Ar(no,wo).map(j))),ea=bs([Xn(t8(),(Ar,no)=>{const $o=no.event.item;z.lookupItem(re($o)).each(()=>{const Po=no.event.menu;Na.highlight(Ar,Po);const wo=re(no.event.item);z.refresh(wo).each(Vo=>st(Ar,z,Vo))})}),xf((Ar,no)=>{const $o=no.event.target;Ar.getSystem().getByDom($o).each(Po=>{re(Po).indexOf("collapse-item")===0&&kn(Ar,Po),rn(Ar,Po,Dn.HighlightSubmenu).fold(()=>{t.onExecute(Ar,Po)},C)})}),ms((Ar,no)=>{Y(Ar).each($o=>{Ho.append(Ar,Tu($o)),t.onOpenMenu(Ar,$o),t.highlightOnOpen===zc.HighlightMenuAndItem?je(Ar,$o):t.highlightOnOpen===zc.HighlightJustMenu&&Be(Ar,$o)})}),Xn(bx,(Ar,no)=>{t.onHighlightItem(Ar,no.event.menuComp,no.event.itemComp)}),Xn(Ck,(Ar,no)=>{t.onDehighlightItem(Ar,no.event.menuComp,no.event.itemComp)}),...t.navigateOnHover?[Xn(F_(),(Ar,no)=>{const $o=no.event.item;Vn(Ar,$o),rn(Ar,$o,Dn.HighlightParent),t.onHover(Ar,$o)})]:[]]),Zr=Ar=>Na.getHighlighted(Ar).bind(Na.getHighlighted),Do=Ar=>{Zr(Ar).each(no=>{kn(Ar,no)})},Mo=Ar=>{z.getPrimary().each(no=>{je(Ar,no)})},ja=Ar=>P.from(Ar.components()[0]).filter(no=>Ka(no.element,"role")==="menu"),Ea={collapseMenu:Do,highlightPrimary:Mo,repositionMenus:Ar=>{z.getPrimary().bind($o=>Zr(Ar).bind(Po=>{const wo=re(Po),Vo=Nt(z.getMenus()),ys=an(ne(Vo,a8.extractPreparedMenu));return z.getTriggeringPath(wo,Ra=>xe(Ar,ys,Ra))}).map(Po=>({primary:$o,triggeringPath:Po}))).fold(()=>{ja(Ar).each($o=>{t.onRepositionMenu(Ar,$o,[])})},({primary:$o,triggeringPath:Po})=>{t.onRepositionMenu(Ar,$o,Po)})}};return{uid:t.uid,dom:t.dom,markers:t.markers,behaviours:Si(t.tmenuBehaviours,[po.config({mode:"special",onRight:Mr(hr),onLeft:Mr(Yn),onEscape:Mr(br),focusIn:(Ar,no)=>{z.getPrimary().each($o=>{lb(Ar,$o.element,Za())})}}),Na.config({highlightClass:t.markers.selectedMenu,itemClass:t.markers.menu}),da.config({find:Ar=>Na.getHighlighted(Ar)}),Ho.config({})]),eventOrder:t.eventOrder,apis:Ea,events:ea}},yz=O("collapse-item"),bz=(t,a,p)=>({primary:t,menus:a,expansions:p}),i8=(t,a)=>({primary:t,menus:yt(t,a),expansions:{}}),xz=t=>({value:Xr(yz()),meta:{text:t}}),Wv=ou({name:"TieredMenu",configFields:[iw("onExecute"),iw("onEscape"),qf("onOpenMenu"),qf("onOpenSubmenu"),Sa("onRepositionMenu"),Sa("onCollapseMenu"),En("highlightOnOpen",zc.HighlightMenuAndItem),Dc("data",[qn("primary"),qn("menus"),qn("expansions")]),En("fakeFocus",!1),Sa("onHighlightItem"),Sa("onDehighlightItem"),Sa("onHover"),c1(),qn("dom"),En("navigateOnHover",!0),En("stayInDom",!1),Fi("tmenuBehaviours",[po,Na,da,Ho]),En("eventOrder",{})],apis:{collapseMenu:(t,a)=>{t.collapseMenu(a)},highlightPrimary:(t,a)=>{t.highlightPrimary(a)},repositionMenus:(t,a)=>{t.repositionMenus(a)}},factory:s8,extraApis:{tieredData:bz,singleData:i8,collapseItem:xz}}),wz=(t,a,p,E,z)=>{const Y=()=>t.lazySink(a),re=E.type==="horizontal"?{layouts:{onLtr:()=>Db(),onRtl:()=>yw()}}:{},xe=Be=>Be.length===2,Ee=Be=>xe(Be)?re:{};return Wv.sketch({dom:{tag:"div"},data:E.data,markers:E.menu.markers,highlightOnOpen:E.menu.highlightOnOpen,fakeFocus:E.menu.fakeFocus,onEscape:()=>(va.close(a),t.onEscape.map(Be=>Be(a)),P.some(!0)),onExecute:()=>P.some(!0),onOpenMenu:(Be,je)=>{Nl.positionWithinBounds(Y().getOrDie(),je,p,z())},onOpenSubmenu:(Be,je,et,st)=>{const mt=Y().getOrDie();Nl.position(mt,et,{anchor:{type:"submenu",item:je,...Ee(st)}})},onRepositionMenu:(Be,je,et)=>{const st=Y().getOrDie();Nl.positionWithinBounds(st,je,p,z()),fe(et,mt=>{const Mt=Ee(mt.triggeringPath);Nl.position(st,mt.triggeredMenu,{anchor:{type:"submenu",item:mt.triggeringItem,...Mt}})})}})},Cz=(t,a)=>{const p=(st,mt)=>t.getRelated(st).exists(Xt=>Lh(Xt,mt)),E=(st,mt)=>{va.setContent(st,mt)},z=(st,mt,Mt)=>{const Xt=P.none;Y(st,mt,Mt,Xt)},Y=(st,mt,Mt,Xt)=>{const Dn=t.lazySink(st).getOrDie();va.openWhileCloaked(st,mt,()=>Nl.positionWithinBounds(Dn,st,Mt,Xt())),Fr.setValue(st,P.some({mode:"position",config:Mt,getBounds:Xt}))},re=(st,mt,Mt)=>{xe(st,mt,Mt,P.none)},xe=(st,mt,Mt,Xt)=>{const Dn=wz(t,st,mt,Mt,Xt);va.open(st,Dn),Fr.setValue(st,P.some({mode:"menu",menu:Dn}))},Ee=st=>{va.isOpen(st)&&(Fr.setValue(st,P.none()),va.close(st))},Be=st=>va.getState(st),je=st=>{va.isOpen(st)&&Fr.getValue(st).each(mt=>{switch(mt.mode){case"menu":va.getState(st).each(Wv.repositionMenus);break;case"position":const Mt=t.lazySink(st).getOrDie();Nl.positionWithinBounds(Mt,st,mt.config,mt.getBounds());break}})},et={setContent:E,showAt:z,showWithinBounds:Y,showMenuAt:re,showMenuWithinBounds:xe,hide:Ee,getContent:Be,reposition:je,isOpen:va.isOpen};return{uid:t.uid,dom:t.dom,behaviours:Si(t.inlineBehaviours,[va.config({isPartOf:(st,mt,Mt)=>Lh(mt,Mt)||p(st,Mt),getAttachPoint:st=>t.lazySink(st).getOrDie(),onOpen:st=>{t.onShow(st)},onClose:st=>{t.onHide(st)}}),Fr.config({store:{mode:"memory",initialValue:P.none()}}),Pc.config({channels:{...$1({isExtraPart:a.isExtraPart,...t.fireDismissalEventInstead.map(st=>({fireEventInstead:{event:st.event}})).getOr({})}),...Rv({...t.fireRepositionEventInstead.map(st=>({fireEventInstead:{event:st.event}})).getOr({}),doReposition:je})}})]),eventOrder:t.eventOrder,apis:et}},Ws=ou({name:"InlineView",configFields:[qn("lazySink"),Sa("onShow"),Sa("onHide"),pf("onEscape"),Fi("inlineBehaviours",[va,Fr,Pc]),Ql("fireDismissalEventInstead",[En("event",Tm())]),Ql("fireRepositionEventInstead",[En("event",D3())]),En("getRelated",P.none),En("isExtraPart",H),En("eventOrder",P.none)],factory:Cz,apis:{showAt:(t,a,p,E)=>{t.showAt(a,p,E)},showWithinBounds:(t,a,p,E,z)=>{t.showWithinBounds(a,p,E,z)},showMenuAt:(t,a,p,E)=>{t.showMenuAt(a,p,E)},showMenuWithinBounds:(t,a,p,E,z)=>{t.showMenuWithinBounds(a,p,E,z)},hide:(t,a)=>{t.hide(a)},isOpen:(t,a)=>t.isOpen(a),getContent:(t,a)=>t.getContent(a),setContent:(t,a,p)=>{t.setContent(a,p)},reposition:(t,a)=>{t.reposition(a)}}});var ty=tinymce.util.Tools.resolve("tinymce.util.Delay");const hl=ou({name:"Button",factory:t=>{const a=Gh(t.action),p=t.dom.tag,E=Y=>Ft(t.dom,"attributes").bind(re=>Ft(re,Y)),z=()=>{if(p==="button"){const Y=E("type").getOr("button"),re=E("role").map(xe=>({role:xe})).getOr({});return{type:Y,...re}}else return{role:t.role.getOr(E("role").getOr("button"))}};return{uid:t.uid,dom:t.dom,components:t.components,events:a,behaviours:nf.augment(t.buttonBehaviours,[ko.config({}),po.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:z()},eventOrder:t.eventOrder}},configFields:[En("uid",void 0),qn("dom"),En("components",[]),nf.field("buttonBehaviours",[ko,po]),Ia("action"),Ia("role"),En("eventOrder",{})]}),Sz=t=>{const a=t.dom.attributes!==void 0?t.dom.attributes:[];return ke(a,(p,E)=>E.name==="class"?p:{...p,[E.name]:E.value},{})},Tz=t=>Array.prototype.slice.call(t.dom.classList,0),cp=t=>{const a=zt.fromHtml(t),p=Kr(a),E=Sz(a),z=Tz(a),Y=p.length===0?{}:{innerHtml:Y2(a)};return{tag:vo(a),classes:z,attributes:E,...Y}},Qa=t=>{const a=l_(t)&&_n(t,"uid")?t.uid:jp("memento");return{get:Y=>Y.getSystem().getByUid(a).getOrDie(),getOpt:Y=>Y.getSystem().getByUid(a).toOptional(),asSpec:()=>({...t,uid:a})}},{entries:z_,setPrototypeOf:V_,isFrozen:kz,getPrototypeOf:Az,getOwnPropertyDescriptor:Mz}=Object;let{freeze:of,seal:Zh,create:Ez}=Object,{apply:Sk,construct:U_}=typeof Reflect<"u"&&Reflect;Sk||(Sk=function(a,p,E){return a.apply(p,E)}),of||(of=function(a){return a}),Zh||(Zh=function(a){return a}),U_||(U_=function(a,p){return new a(...p)});const _z=Wd(Array.prototype.forEach),Rz=Wd(Array.prototype.pop),EC=Wd(Array.prototype.push),Tk=Wd(String.prototype.toLowerCase),up=Wd(String.prototype.toString),Lz=Wd(String.prototype.match),jh=Wd(String.prototype.replace),ny=Wd(String.prototype.indexOf),c8=Wd(String.prototype.trim),sd=Wd(RegExp.prototype.test),Ud=Dz(TypeError);function Wd(t){return function(a){for(var p=arguments.length,E=new Array(p>1?p-1:0),z=1;z/gm),u8=Zh(/\${[\w\W]*}/gm),Nz=Zh(/^data-[\-\w.\u00B7-\uFFFF]/),Y_=Zh(/^aria-[\-\w]+$/),K_=Zh(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fz=Zh(/^(?:\w+script|data):/i),Bz=Zh(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),f8=Zh(/^html$/i);var Mk=Object.freeze({__proto__:null,MUSTACHE_EXPR:Pz,ERB_EXPR:Iz,TMPLIT_EXPR:u8,DATA_ATTR:Nz,ARIA_ATTR:Y_,IS_ALLOWED_URI:K_,IS_SCRIPT_OR_DATA:Fz,ATTR_WHITESPACE:Bz,DOCTYPE_NAME:f8});const Hz=()=>typeof window>"u"?null:window,$C=function(a,p){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let E=null;const z="data-tt-policy-suffix";p&&p.hasAttribute(z)&&(E=p.getAttribute(z));const Y="dompurify"+(E?"#"+E:"");try{return a.createPolicy(Y,{createHTML(re){return re},createScriptURL(re){return re}})}catch{return console.warn("TrustedTypes policy "+Y+" could not be created."),null}};function OC(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hz();const a=ma=>OC(ma);if(a.version="3.0.5",a.removed=[],!t||!t.document||t.document.nodeType!==9)return a.isSupported=!1,a;const p=t.document,E=p.currentScript;let{document:z}=t;const{DocumentFragment:Y,HTMLTemplateElement:re,Node:xe,Element:Ee,NodeFilter:Be,NamedNodeMap:je=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:et,DOMParser:st,trustedTypes:mt}=t,Mt=Ee.prototype,Xt=_C(Mt,"cloneNode"),Dn=_C(Mt,"nextSibling"),hn=_C(Mt,"childNodes"),rn=_C(Mt,"parentNode");if(typeof re=="function"){const ma=z.createElement("template");ma.content&&ma.content.ownerDocument&&(z=ma.content.ownerDocument)}let kn,Vn="";const{implementation:hr,createNodeIterator:Yn,createDocumentFragment:br,getElementsByTagName:Mr}=z,{importNode:ea}=p;let Zr={};a.isSupported=typeof z_=="function"&&typeof rn=="function"&&hr&&hr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Do,ERB_EXPR:Mo,TMPLIT_EXPR:ja,DATA_ATTR:xo,ARIA_ATTR:Ea,IS_SCRIPT_OR_DATA:Ar,ATTR_WHITESPACE:no}=Mk;let{IS_ALLOWED_URI:$o}=Mk,Po=null;const wo=Ta({},[...W_,...G_,...RC,...Z_,...LC]);let Vo=null;const ys=Ta({},[...kk,...Ak,...j_,...DC]);let Ra=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Rl=null,Fu=null,yd=!0,ah=!0,p0=!1,Ly=!0,nm=!1,wp=!1,t3=!1,h6=!1,y2=!1,sE=!1,IF=!1,xte=!0,wte=!1;const Bie="user-content-";let kJ=!0,m6=!1,iE={},lE=null;const Cte=Ta({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ste=null;const Tte=Ta({},["audio","video","img","source","image","track"]);let AJ=null;const kte=Ta({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),NF="http://www.w3.org/1998/Math/MathML",FF="http://www.w3.org/2000/svg",Dy="http://www.w3.org/1999/xhtml";let cE=Dy,MJ=!1,EJ=null;const Hie=Ta({},[NF,FF,Dy],up);let n3;const zie=["application/xhtml+xml","text/html"],Vie="text/html";let Bu,uE=null;const Uie=z.createElement("form"),Ate=function(Hn){return Hn instanceof RegExp||Hn instanceof Function},_J=function(Hn){if(!(uE&&uE===Hn)){if((!Hn||typeof Hn!="object")&&(Hn={}),Hn=ry(Hn),n3=zie.indexOf(Hn.PARSER_MEDIA_TYPE)===-1?n3=Vie:n3=Hn.PARSER_MEDIA_TYPE,Bu=n3==="application/xhtml+xml"?up:Tk,Po="ALLOWED_TAGS"in Hn?Ta({},Hn.ALLOWED_TAGS,Bu):wo,Vo="ALLOWED_ATTR"in Hn?Ta({},Hn.ALLOWED_ATTR,Bu):ys,EJ="ALLOWED_NAMESPACES"in Hn?Ta({},Hn.ALLOWED_NAMESPACES,up):Hie,AJ="ADD_URI_SAFE_ATTR"in Hn?Ta(ry(kte),Hn.ADD_URI_SAFE_ATTR,Bu):kte,Ste="ADD_DATA_URI_TAGS"in Hn?Ta(ry(Tte),Hn.ADD_DATA_URI_TAGS,Bu):Tte,lE="FORBID_CONTENTS"in Hn?Ta({},Hn.FORBID_CONTENTS,Bu):Cte,Rl="FORBID_TAGS"in Hn?Ta({},Hn.FORBID_TAGS,Bu):{},Fu="FORBID_ATTR"in Hn?Ta({},Hn.FORBID_ATTR,Bu):{},iE="USE_PROFILES"in Hn?Hn.USE_PROFILES:!1,yd=Hn.ALLOW_ARIA_ATTR!==!1,ah=Hn.ALLOW_DATA_ATTR!==!1,p0=Hn.ALLOW_UNKNOWN_PROTOCOLS||!1,Ly=Hn.ALLOW_SELF_CLOSE_IN_ATTR!==!1,nm=Hn.SAFE_FOR_TEMPLATES||!1,wp=Hn.WHOLE_DOCUMENT||!1,y2=Hn.RETURN_DOM||!1,sE=Hn.RETURN_DOM_FRAGMENT||!1,IF=Hn.RETURN_TRUSTED_TYPE||!1,h6=Hn.FORCE_BODY||!1,xte=Hn.SANITIZE_DOM!==!1,wte=Hn.SANITIZE_NAMED_PROPS||!1,kJ=Hn.KEEP_CONTENT!==!1,m6=Hn.IN_PLACE||!1,$o=Hn.ALLOWED_URI_REGEXP||K_,cE=Hn.NAMESPACE||Dy,Ra=Hn.CUSTOM_ELEMENT_HANDLING||{},Hn.CUSTOM_ELEMENT_HANDLING&&Ate(Hn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ra.tagNameCheck=Hn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Hn.CUSTOM_ELEMENT_HANDLING&&Ate(Hn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ra.attributeNameCheck=Hn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Hn.CUSTOM_ELEMENT_HANDLING&&typeof Hn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ra.allowCustomizedBuiltInElements=Hn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),nm&&(ah=!1),sE&&(y2=!0),iE&&(Po=Ta({},[...LC]),Vo=[],iE.html===!0&&(Ta(Po,W_),Ta(Vo,kk)),iE.svg===!0&&(Ta(Po,G_),Ta(Vo,Ak),Ta(Vo,DC)),iE.svgFilters===!0&&(Ta(Po,RC),Ta(Vo,Ak),Ta(Vo,DC)),iE.mathMl===!0&&(Ta(Po,Z_),Ta(Vo,j_),Ta(Vo,DC))),Hn.ADD_TAGS&&(Po===wo&&(Po=ry(Po)),Ta(Po,Hn.ADD_TAGS,Bu)),Hn.ADD_ATTR&&(Vo===ys&&(Vo=ry(Vo)),Ta(Vo,Hn.ADD_ATTR,Bu)),Hn.ADD_URI_SAFE_ATTR&&Ta(AJ,Hn.ADD_URI_SAFE_ATTR,Bu),Hn.FORBID_CONTENTS&&(lE===Cte&&(lE=ry(lE)),Ta(lE,Hn.FORBID_CONTENTS,Bu)),kJ&&(Po["#text"]=!0),wp&&Ta(Po,["html","head","body"]),Po.table&&(Ta(Po,["tbody"]),delete Rl.tbody),Hn.TRUSTED_TYPES_POLICY){if(typeof Hn.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ud('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Hn.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ud('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');kn=Hn.TRUSTED_TYPES_POLICY,Vn=kn.createHTML("")}else kn===void 0&&(kn=$C(mt,E)),kn!==null&&typeof Vn=="string"&&(Vn=kn.createHTML(""));of&&of(Hn),uE=Hn}},Mte=Ta({},["mi","mo","mn","ms","mtext"]),Ete=Ta({},["foreignobject","desc","title","annotation-xml"]),Wie=Ta({},["title","style","font","a","script"]),BF=Ta({},G_);Ta(BF,RC),Ta(BF,$z);const RJ=Ta({},Z_);Ta(RJ,Oz);const Gie=function(Hn){let co=rn(Hn);(!co||!co.tagName)&&(co={namespaceURI:cE,tagName:"template"});const Io=Tk(Hn.tagName),Hi=Tk(co.tagName);return EJ[Hn.namespaceURI]?Hn.namespaceURI===FF?co.namespaceURI===Dy?Io==="svg":co.namespaceURI===NF?Io==="svg"&&(Hi==="annotation-xml"||Mte[Hi]):!!BF[Io]:Hn.namespaceURI===NF?co.namespaceURI===Dy?Io==="math":co.namespaceURI===FF?Io==="math"&&Ete[Hi]:!!RJ[Io]:Hn.namespaceURI===Dy?co.namespaceURI===FF&&!Ete[Hi]||co.namespaceURI===NF&&!Mte[Hi]?!1:!RJ[Io]&&(Wie[Io]||!BF[Io]):!!(n3==="application/xhtml+xml"&&EJ[Hn.namespaceURI]):!1},r3=function(Hn){EC(a.removed,{element:Hn});try{Hn.parentNode.removeChild(Hn)}catch{Hn.remove()}},g6=function(Hn,co){try{EC(a.removed,{attribute:co.getAttributeNode(Hn),from:co})}catch{EC(a.removed,{attribute:null,from:co})}if(co.removeAttribute(Hn),Hn==="is"&&!Vo[Hn])if(y2||sE)try{r3(co)}catch{}else try{co.setAttribute(Hn,"")}catch{}},_te=function(Hn){let co,Io;if(h6)Hn=""+Hn;else{const fg=Lz(Hn,/^[\r\n\t ]+/);Io=fg&&fg[0]}n3==="application/xhtml+xml"&&cE===Dy&&(Hn=''+Hn+"");const Hi=kn?kn.createHTML(Hn):Hn;if(cE===Dy)try{co=new st().parseFromString(Hi,n3)}catch{}if(!co||!co.documentElement){co=hr.createDocument(cE,"template",null);try{co.documentElement.innerHTML=MJ?Vn:Hi}catch{}}const Hu=co.body||co.documentElement;return Hn&&Io&&Hu.insertBefore(z.createTextNode(Io),Hu.childNodes[0]||null),cE===Dy?Mr.call(co,wp?"html":"body")[0]:wp?co.documentElement:Hu},Rte=function(Hn){return Yn.call(Hn.ownerDocument||Hn,Hn,Be.SHOW_ELEMENT|Be.SHOW_COMMENT|Be.SHOW_TEXT,null,!1)},Zie=function(Hn){return Hn instanceof et&&(typeof Hn.nodeName!="string"||typeof Hn.textContent!="string"||typeof Hn.removeChild!="function"||!(Hn.attributes instanceof je)||typeof Hn.removeAttribute!="function"||typeof Hn.setAttribute!="function"||typeof Hn.namespaceURI!="string"||typeof Hn.insertBefore!="function"||typeof Hn.hasChildNodes!="function")},HF=function(Hn){return typeof xe=="object"?Hn instanceof xe:Hn&&typeof Hn=="object"&&typeof Hn.nodeType=="number"&&typeof Hn.nodeName=="string"},$y=function(Hn,co,Io){Zr[Hn]&&_z(Zr[Hn],Hi=>{Hi.call(a,co,Io,uE)})},Lte=function(Hn){let co;if($y("beforeSanitizeElements",Hn,null),Zie(Hn))return r3(Hn),!0;const Io=Bu(Hn.nodeName);if($y("uponSanitizeElement",Hn,{tagName:Io,allowedTags:Po}),Hn.hasChildNodes()&&!HF(Hn.firstElementChild)&&(!HF(Hn.content)||!HF(Hn.content.firstElementChild))&&sd(/<[/\w]/g,Hn.innerHTML)&&sd(/<[/\w]/g,Hn.textContent))return r3(Hn),!0;if(!Po[Io]||Rl[Io]){if(!Rl[Io]&&$te(Io)&&(Ra.tagNameCheck instanceof RegExp&&sd(Ra.tagNameCheck,Io)||Ra.tagNameCheck instanceof Function&&Ra.tagNameCheck(Io)))return!1;if(kJ&&!lE[Io]){const Hi=rn(Hn)||Hn.parentNode,Hu=hn(Hn)||Hn.childNodes;if(Hu&&Hi){const fg=Hu.length;for(let Ul=fg-1;Ul>=0;--Ul)Hi.insertBefore(Xt(Hu[Ul],!0),Dn(Hn))}}return r3(Hn),!0}return Hn instanceof Ee&&!Gie(Hn)||(Io==="noscript"||Io==="noembed"||Io==="noframes")&&sd(/<\/no(script|embed|frames)/i,Hn.innerHTML)?(r3(Hn),!0):(nm&&Hn.nodeType===3&&(co=Hn.textContent,co=jh(co,Do," "),co=jh(co,Mo," "),co=jh(co,ja," "),Hn.textContent!==co&&(EC(a.removed,{element:Hn.cloneNode()}),Hn.textContent=co)),$y("afterSanitizeElements",Hn,null),!1)},Dte=function(Hn,co,Io){if(xte&&(co==="id"||co==="name")&&(Io in z||Io in Uie))return!1;if(!(ah&&!Fu[co]&&sd(xo,co))){if(!(yd&&sd(Ea,co))){if(!Vo[co]||Fu[co]){if(!($te(Hn)&&(Ra.tagNameCheck instanceof RegExp&&sd(Ra.tagNameCheck,Hn)||Ra.tagNameCheck instanceof Function&&Ra.tagNameCheck(Hn))&&(Ra.attributeNameCheck instanceof RegExp&&sd(Ra.attributeNameCheck,co)||Ra.attributeNameCheck instanceof Function&&Ra.attributeNameCheck(co))||co==="is"&&Ra.allowCustomizedBuiltInElements&&(Ra.tagNameCheck instanceof RegExp&&sd(Ra.tagNameCheck,Io)||Ra.tagNameCheck instanceof Function&&Ra.tagNameCheck(Io))))return!1}else if(!AJ[co]){if(!sd($o,jh(Io,no,""))){if(!((co==="src"||co==="xlink:href"||co==="href")&&Hn!=="script"&&ny(Io,"data:")===0&&Ste[Hn])){if(!(p0&&!sd(Ar,jh(Io,no,"")))){if(Io)return!1}}}}}}return!0},$te=function(Hn){return Hn.indexOf("-")>0},Ote=function(Hn){let co,Io,Hi,Hu;$y("beforeSanitizeAttributes",Hn,null);const{attributes:fg}=Hn;if(!fg)return;const Ul={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Vo};for(Hu=fg.length;Hu--;){co=fg[Hu];const{name:dg,namespaceURI:LJ}=co;Io=dg==="value"?co.value:c8(co.value);const Yie=Io;if(Hi=Bu(dg),Ul.attrName=Hi,Ul.attrValue=Io,Ul.keepAttr=!0,Ul.forceKeepAttr=void 0,$y("uponSanitizeAttribute",Hn,Ul),Io=Ul.attrValue,Ul.forceKeepAttr)continue;if(!Ul.keepAttr){g6(dg,Hn);continue}if(!Ly&&sd(/\/>/i,Io)){g6(dg,Hn);continue}nm&&(Io=jh(Io,Do," "),Io=jh(Io,Mo," "),Io=jh(Io,ja," "));const Pte=Bu(Hn.nodeName);if(!Dte(Pte,Hi,Io)){g6(dg,Hn);continue}if(wte&&(Hi==="id"||Hi==="name")&&(g6(dg,Hn),Io=Bie+Io),kn&&typeof mt=="object"&&typeof mt.getAttributeType=="function"&&!LJ)switch(mt.getAttributeType(Pte,Hi)){case"TrustedHTML":{Io=kn.createHTML(Io);break}case"TrustedScriptURL":{Io=kn.createScriptURL(Io);break}}if(Io!==Yie)try{LJ?Hn.setAttributeNS(LJ,dg,Io):Hn.setAttribute(dg,Io)}catch{g6(dg,Hn)}}$y("afterSanitizeAttributes",Hn,null)},jie=function ma(Hn){let co;const Io=Rte(Hn);for($y("beforeSanitizeShadowDOM",Hn,null);co=Io.nextNode();)$y("uponSanitizeShadowNode",co,null),!Lte(co)&&(co.content instanceof Y&&ma(co.content),Ote(co));$y("afterSanitizeShadowDOM",Hn,null)};return a.sanitize=function(ma){let Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},co,Io,Hi,Hu;if(MJ=!ma,MJ&&(ma=""),typeof ma!="string"&&!HF(ma))if(typeof ma.toString=="function"){if(ma=ma.toString(),typeof ma!="string")throw Ud("dirty is not a string, aborting")}else throw Ud("toString is not a function");if(!a.isSupported)return ma;if(t3||_J(Hn),a.removed=[],typeof ma=="string"&&(m6=!1),m6){if(ma.nodeName){const dg=Bu(ma.nodeName);if(!Po[dg]||Rl[dg])throw Ud("root node is forbidden and cannot be sanitized in-place")}}else if(ma instanceof xe)co=_te(""),Io=co.ownerDocument.importNode(ma,!0),Io.nodeType===1&&Io.nodeName==="BODY"||Io.nodeName==="HTML"?co=Io:co.appendChild(Io);else{if(!y2&&!nm&&!wp&&ma.indexOf("<")===-1)return kn&&IF?kn.createHTML(ma):ma;if(co=_te(ma),!co)return y2?null:IF?Vn:""}co&&h6&&r3(co.firstChild);const fg=Rte(m6?ma:co);for(;Hi=fg.nextNode();)Lte(Hi)||(Hi.content instanceof Y&&jie(Hi.content),Ote(Hi));if(m6)return ma;if(y2){if(sE)for(Hu=br.call(co.ownerDocument);co.firstChild;)Hu.appendChild(co.firstChild);else Hu=co;return(Vo.shadowroot||Vo.shadowrootmode)&&(Hu=ea.call(p,Hu,!0)),Hu}let Ul=wp?co.outerHTML:co.innerHTML;return wp&&Po["!doctype"]&&co.ownerDocument&&co.ownerDocument.doctype&&co.ownerDocument.doctype.name&&sd(f8,co.ownerDocument.doctype.name)&&(Ul=" -`+Ul),nm&&(Ul=jh(Ul,Do," "),Ul=jh(Ul,Mo," "),Ul=jh(Ul,ja," ")),kn&&IF?kn.createHTML(Ul):Ul},a.setConfig=function(ma){_J(ma),t3=!0},a.clearConfig=function(){uE=null,t3=!1},a.isValidAttribute=function(ma,Hn,co){uE||_J({});const Io=Bu(ma),Hi=Bu(Hn);return Dte(Io,Hi,co)},a.addHook=function(ma,Hn){typeof Hn=="function"&&(Zr[ma]=Zr[ma]||[],EC(Zr[ma],Hn))},a.removeHook=function(ma){if(Zr[ma])return Rz(Zr[ma])},a.removeHooks=function(ma){Zr[ma]&&(Zr[ma]=[])},a.removeAllHooks=function(){Zr={}},a}var d8=OC();const X_=t=>d8().sanitize(t);var _f=tinymce.util.Tools.resolve("tinymce.util.I18n");const zz={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},h8="temporary-placeholder",J_=t=>()=>Ft(t,h8).getOr("!not found!"),PC=(t,a)=>{const p=t.toLowerCase();if(_f.isRtl()){const E=Ze(p,"-rtl");return pn(a,E)?E:p}else return p},Q_=(t,a)=>Ft(a,PC(t,a)),q_=(t,a)=>{const p=a();return Q_(t,p).getOrThunk(J_(p))},e5=(t,a,p)=>{const E=a();return Q_(t,E).or(p).getOrThunk(J_(E))},Vz=t=>_f.isRtl()?pn(zz,t):!1,Ek=()=>jo("add-focusable",[ms(t=>{kb(t.element,"svg").each(a=>Lr(a,"focusable","false"))})]),m8=(t,a,p,E)=>{var z,Y;const re=Vz(a)?["tox-icon--flip"]:[],xe=Ft(p,PC(a,p)).or(E).getOrThunk(J_(p));return{dom:{tag:t.tag,attributes:(z=t.attributes)!==null&&z!==void 0?z:{},classes:t.classes.concat(re),innerHtml:xe},behaviours:gr([...(Y=t.behaviours)!==null&&Y!==void 0?Y:[],Ek()])}},Gd=(t,a,p,E=P.none())=>m8(a,t,p(),E),Uz=(t,a,p)=>{const E=p(),z=Ve(t,Y=>pn(E,PC(Y,E)));return m8(a,z.getOr(h8),E,P.none())},g8={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},t5=ou({name:"Notification",factory:t=>{const a=Qa({dom:cp(`

    ${X_(t.translationProvider(t.text))}

    `),behaviours:gr([Ho.config({})])}),p=mt=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${mt}%`}}}),E=mt=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${mt}%`}}),z=Qa({dom:{tag:"div",classes:t.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[p(0)]},E(0)],behaviours:gr([Ho.config({})])}),xe={updateProgress:(mt,Mt)=>{mt.getSystem().isConnected()&&z.getOpt(mt).each(Xt=>{Ho.set(Xt,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[p(Mt)]},E(Mt)])})},updateText:(mt,Mt)=>{if(mt.getSystem().isConnected()){const Xt=a.get(mt);Ho.set(Xt,[ai(Mt)])}}},Ee=Fe([t.icon.toArray(),t.level.toArray(),t.level.bind(mt=>P.from(g8[mt])).toArray()]),Be=Qa(hl.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[Gd("close",{tag:"span",classes:["tox-icon"],attributes:{"aria-label":t.translationProvider("Close")}},t.iconProvider)],action:mt=>{t.onAction(mt)}})),je=Uz(Ee,{tag:"div",classes:["tox-notification__icon"]},t.iconProvider),et={dom:{tag:"div",classes:["tox-notification__body"]},components:[a.asSpec()],behaviours:gr([Ho.config({})])},st=[je,et];return{uid:t.uid,dom:{tag:"div",attributes:{role:"alert"},classes:t.level.map(mt=>["tox-notification","tox-notification--in",`tox-notification--${mt}`]).getOr(["tox-notification","tox-notification--in"])},behaviours:gr([ko.config({}),jo("notification-events",[Xn(_o(),mt=>{Be.getOpt(mt).each(ko.focus)})])]),components:st.concat(t.progress?[z.asSpec()]:[]).concat(t.closeButton?[Be.asSpec()]:[]),apis:xe}},configFields:[Ia("level"),qn("progress"),Ia("icon"),qn("onAction"),qn("text"),qn("iconProvider"),qn("translationProvider"),Li("closeButton",!0)],apis:{updateProgress:(t,a,p)=>{t.updateProgress(a,p)},updateText:(t,a,p)=>{t.updateText(a,p)}}});var n5=(t,a,p)=>{const E=a.backstage.shared,z=()=>{const Ee=Js(zt.fromDom(t.getContentAreaContainer())),Be=bl(),je=ku(Be.x,Ee.x,Ee.right),et=ku(Be.y,Ee.y,Ee.bottom),st=Math.max(Ee.right,Be.right),mt=Math.max(Ee.bottom,Be.bottom);return P.some(Hs(je,et,st-je,mt-et))};return{open:(Ee,Be)=>{const je=()=>{Be(),Ws.hide(st)},et=Pl(t5.sketch({text:Ee.text,level:he(["success","error","warning","warn","info"],Ee.type)?Ee.type:void 0,progress:Ee.progressBar===!0,icon:Ee.icon,closeButton:Ee.closeButton,onAction:je,iconProvider:E.providers.icons,translationProvider:E.providers.translate})),st=Pl(Ws.sketch({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:E.getSink,fireDismissalEventInstead:{},...E.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}}}));p.add(st),v(Ee.timeout)&&Ee.timeout>0&&ty.setEditorTimeout(t,()=>{je()},Ee.timeout);const Mt={close:je,reposition:()=>{const Xt=Tu(et),Dn={maxHeightFunction:pv()},hn=t.notificationManager.getNotifications();if(hn[0]===Mt){const rn={...E.anchors.banner(),overrides:Dn};Ws.showWithinBounds(st,Xt,{anchor:rn},z)}else Q(hn,Mt).each(rn=>{const kn=hn[rn-1].getEl(),Vn={type:"node",root:ss(),node:P.some(zt.fromDom(kn)),overrides:Dn,layouts:{onRtl:()=>[Yi],onLtr:()=>[Yi]}};Ws.showWithinBounds(st,Xt,{anchor:Vn},z)})},text:Xt=>{t5.updateText(et,Xt)},settings:Ee,getEl:()=>et.element.dom,progressBar:{value:Xt=>{t5.updateProgress(et,Xt)}}};return Mt},close:Ee=>{Ee.close()},getArgs:Ee=>Ee.settings}},oy=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),p8=tinymce.util.Tools.resolve("tinymce.EditorManager"),xx=tinymce.util.Tools.resolve("tinymce.Env"),af;(function(t){t.default="wrap",t.floating="floating",t.sliding="sliding",t.scrolling="scrolling"})(af||(af={}));var IC;(function(t){t.auto="auto",t.top="top",t.bottom="bottom"})(IC||(IC={}));const xs=t=>a=>a.options.get(t),NC=t=>a=>P.from(t(a)),v8=t=>{const a=xx.deviceType.isPhone(),p=xx.deviceType.isTablet()||a,E=t.options.register,z=re=>A(re)||re===!1,Y=re=>A(re)||v(re);E("skin",{processor:re=>A(re)||re===!1,default:"oxide"}),E("skin_url",{processor:"string"}),E("height",{processor:Y,default:Math.max(t.getElement().offsetHeight,400)}),E("width",{processor:Y,default:oy.DOM.getStyle(t.getElement(),"width")}),E("min_height",{processor:"number",default:100}),E("min_width",{processor:"number"}),E("max_height",{processor:"number"}),E("max_width",{processor:"number"}),E("style_formats",{processor:"object[]"}),E("style_formats_merge",{processor:"boolean",default:!1}),E("style_formats_autohide",{processor:"boolean",default:!1}),E("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),E("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),E("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),E("font_size_input_default_unit",{processor:"string",default:"pt"}),E("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),E("content_langs",{processor:"object[]"}),E("removed_menuitems",{processor:"string",default:""}),E("menubar",{processor:re=>A(re)||c(re),default:!a}),E("menu",{processor:"object",default:{}}),E("toolbar",{processor:re=>c(re)||A(re)||h(re)?{value:re,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),Se(9,re=>{E("toolbar"+(re+1),{processor:"string"})}),E("toolbar_mode",{processor:"string",default:p?"scrolling":"floating"}),E("toolbar_groups",{processor:"object",default:{}}),E("toolbar_location",{processor:"string",default:IC.auto}),E("toolbar_persist",{processor:"boolean",default:!1}),E("toolbar_sticky",{processor:"boolean",default:t.inline}),E("toolbar_sticky_offset",{processor:"number",default:0}),E("fixed_toolbar_container",{processor:"string",default:""}),E("fixed_toolbar_container_target",{processor:"object"}),E("ui_mode",{processor:"string",default:"combined"}),E("file_picker_callback",{processor:"function"}),E("file_picker_validator_handler",{processor:"function"}),E("file_picker_types",{processor:"string"}),E("typeahead_urls",{processor:"boolean",default:!0}),E("anchor_top",{processor:z,default:"#top"}),E("anchor_bottom",{processor:z,default:"#bottom"}),E("draggable_modal",{processor:"boolean",default:!1}),E("statusbar",{processor:"boolean",default:!0}),E("elementpath",{processor:"boolean",default:!0}),E("branding",{processor:"boolean",default:!0}),E("promotion",{processor:"boolean",default:!0}),E("resize",{processor:re=>re==="both"||c(re),default:!xx.deviceType.isTouch()}),E("sidebar_show",{processor:"string"}),E("help_accessibility",{processor:"boolean",default:t.hasPlugin("help")}),E("default_font_stack",{processor:"string[]",default:[]})},y8=xs("readonly"),_k=xs("height"),FC=xs("width"),r5=NC(xs("min_width")),wx=NC(xs("min_height")),Rk=NC(xs("max_width")),o5=NC(xs("max_height")),b8=NC(xs("style_formats")),x8=xs("style_formats_merge"),w8=xs("style_formats_autohide"),C8=xs("content_langs"),a5=xs("removed_menuitems"),Cx=xs("toolbar_mode"),S8=xs("toolbar_groups"),BC=xs("toolbar_location"),ay=xs("fixed_toolbar_container"),Wz=xs("fixed_toolbar_container_target"),T8=xs("toolbar_persist"),Lk=xs("toolbar_sticky_offset"),s5=xs("menubar"),Dk=xs("toolbar"),k8=xs("file_picker_callback"),i5=xs("file_picker_validator_handler"),A8=xs("font_size_input_default_unit"),l5=xs("file_picker_types"),c5=xs("typeahead_urls"),$k=xs("anchor_top"),M8=xs("anchor_bottom"),u5=xs("draggable_modal"),E8=xs("statusbar"),Sx=xs("elementpath"),f5=xs("branding"),_8=xs("resize"),Ok=xs("paste_as_text"),Pk=xs("sidebar_show"),R8=xs("promotion"),Ik=xs("help_accessibility"),L8=xs("default_font_stack"),d5=t=>t.options.get("skin")===!1,Tx=t=>t.options.get("menubar")!==!1,Nk=t=>{const a=t.options.get("skin_url");if(d5(t))return a;if(a)return t.documentBaseURI.toAbsolute(a);{const p=t.options.get("skin");return p8.baseURL+"/skins/ui/"+p}},h5=t=>P.from(t.options.get("skin_url")),D8=t=>t.options.get("line_height_formats").split(" "),Fk=t=>{const a=Dk(t),p=A(a),E=h(a)&&a.length>0;return!HC(t)&&(E||p||a===!0)},m5=t=>{const a=Se(9,E=>t.options.get("toolbar"+(E+1))),p=Ce(a,A);return lt(p.length>0,p)},HC=t=>m5(t).fold(()=>{const a=Dk(t);return x(a,A)&&a.length>0},j),g5=t=>BC(t)===IC.bottom,$8=t=>{var a;if(!t.inline)return P.none();const p=(a=ay(t))!==null&&a!==void 0?a:"";if(p.length>0)return mi(ss(),p);const E=Wz(t);return d(E)?P.some(zt.fromDom(E)):P.none()},kx=t=>t.inline&&$8(t).isSome(),p5=t=>$8(t).getOrThunk(()=>Fa(Yo(zt.fromDom(t.getElement())))),v5=t=>t.inline&&!Tx(t)&&!Fk(t)&&!HC(t),zC=t=>(t.options.get("toolbar_sticky")||t.inline)&&!kx(t)&&!v5(t),Km=t=>!kx(t)&&t.options.get("ui_mode")==="split",O8=t=>{const a=t.options.get("menu");return Xe(a,p=>({...p,items:p.items}))};var Gz=Object.freeze({__proto__:null,get ToolbarMode(){return af},get ToolbarLocation(){return IC},register:v8,getSkinUrl:Nk,getSkinUrlOption:h5,isReadOnly:y8,isSkinDisabled:d5,getHeightOption:_k,getWidthOption:FC,getMinWidthOption:r5,getMinHeightOption:wx,getMaxWidthOption:Rk,getMaxHeightOption:o5,getUserStyleFormats:b8,shouldMergeStyleFormats:x8,shouldAutoHideStyleFormats:w8,getLineHeightFormats:D8,getContentLanguages:C8,getRemovedMenuItems:a5,isMenubarEnabled:Tx,isMultipleToolbars:HC,isToolbarEnabled:Fk,isToolbarPersist:T8,getMultipleToolbarsOption:m5,getUiContainer:p5,useFixedContainer:kx,isSplitUiMode:Km,getToolbarMode:Cx,isDraggableModal:u5,isDistractionFree:v5,isStickyToolbar:zC,getStickyToolbarOffset:Lk,getToolbarLocation:BC,isToolbarLocationBottom:g5,getToolbarGroups:S8,getMenus:O8,getMenubar:s5,getToolbar:Dk,getFilePickerCallback:k8,getFilePickerTypes:l5,useTypeaheadUrls:c5,getAnchorTop:$k,getAnchorBottom:M8,getFilePickerValidatorHandler:i5,getFontSizeInputDefaultUnit:A8,useStatusBar:E8,useElementPath:Sx,promotionEnabled:R8,useBranding:f5,getResize:_8,getPasteAsText:Ok,getSidebarShow:Pk,useHelpAccessibility:Ik,getDefaultFontStack:L8});const P8="[data-mce-autocompleter]",y5=t=>Qf(t,P8),Zz=t=>mi(t,P8),jz={setup:(t,a)=>{const p=(z,Y)=>{go(z,Ca(),{raw:Y})},E=()=>t.getMenu().bind(Na.getHighlighted);a.on("keydown",z=>{const Y=z.which;t.isActive()&&(t.isMenuOpen()?Y===13?(E().each(kh),z.preventDefault()):Y===40?(E().fold(()=>{t.getMenu().each(Na.highlightFirst)},re=>{p(re,z)}),z.preventDefault(),z.stopImmediatePropagation()):(Y===37||Y===38||Y===39)&&E().each(re=>{p(re,z),z.preventDefault(),z.stopImmediatePropagation()}):(Y===13||Y===38||Y===40)&&t.cancelIfNecessary())}),a.on("NodeChange",z=>{t.isActive()&&!t.isProcessingAction()&&y5(zt.fromDom(z.element)).isNone()&&t.cancelIfNecessary()})}};var b5;(function(t){t[t.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",t[t.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(b5||(b5={}));var Yh=b5;const x5="tox-menu-nav__js",Ax="tox-collection__item",w5="tox-swatch",Yz={normal:x5,color:w5},I8="tox-collection__item--enabled",Kz="tox-collection__group-heading",N8="tox-collection__item-icon",C5="tox-collection__item-label",Xz="tox-collection__item-accessory",F8="tox-collection__item-caret",Jz="tox-collection__item-checkmark",VC="tox-collection__item--active",B8="tox-collection__item-container",Qz="tox-collection__item-container--column",H8="tox-collection__item-container--row",Bk="tox-collection__item-container--align-right",qz="tox-collection__item-container--align-left",S5="tox-collection__item-container--valign-top",eV="tox-collection__item-container--valign-middle",tV="tox-collection__item-container--valign-bottom",z8=t=>Ft(Yz,t).getOr(x5),V8=t=>t==="color"?"tox-swatches":"tox-menu",T5=t=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:V8(t),tieredMenu:"tox-tiered-menu"}),fp=t=>{const a=T5(t);return{backgroundMenu:a.backgroundMenu,selectedMenu:a.selectedMenu,menu:a.menu,selectedItem:a.selectedItem,item:z8(t)}},k5=(t,a,p)=>{const E=T5(p);return{tag:"div",classes:Fe([[E.menu,`tox-menu-${a}-column`],t?[E.hasIcons]:[]])}},U8=[ey.parts.items({})],Mx=(t,a,p)=>{const E=T5(p);return{dom:{tag:"div",classes:Fe([[E.tieredMenu]])},markers:fp(p)}},UC=O([Ia("data"),En("inputAttributes",{}),En("inputStyles",{}),En("tag","input"),En("inputClasses",[]),Sa("onSetValue"),En("styles",{}),En("eventOrder",{}),Fi("inputBehaviours",[Fr,ko]),En("selectOnFocus",!0)]),A5=t=>gr([ko.config({onFocus:t.selectOnFocus?a=>{const p=a.element,E=Dd(p);p.dom.setSelectionRange(0,E.length)}:C})]),Xm=t=>({...A5(t),...Si(t.inputBehaviours,[Fr.config({store:{mode:"manual",...t.data.map(a=>({initialValue:a})).getOr({}),getValue:a=>Dd(a.element),setValue:(a,p)=>{Dd(a.element)!==p&&rv(a.element,p)}},onSetValue:t.onSetValue})])}),Hk=t=>({tag:t.tag,attributes:{type:"text",...t.inputAttributes},styles:t.inputStyles,classes:t.inputClasses}),nV=(t,a)=>({uid:t.uid,dom:Hk(t),components:[],behaviours:Xm(t),eventOrder:t.eventOrder}),sy=ou({name:"Input",configFields:UC(),factory:nV}),W8=Xr("refetch-trigger-event"),G8=Xr("redirect-menu-item-interaction"),Ex="tox-menu__searcher",zk=t=>mi(t.element,`.${Ex}`).bind(a=>t.getSystem().getByDom(a).toOptional()),M5=zk,E5=(t,a)=>{Fr.setValue(t,a.fetchPattern),t.element.dom.selectionStart=a.selectionStart,t.element.dom.selectionEnd=a.selectionEnd},Z8=t=>{const a=Fr.getValue(t),p=t.element.dom.selectionStart,E=t.element.dom.selectionEnd;return{fetchPattern:a,selectionStart:p,selectionEnd:E}},_5=(t,a)=>{yi(a.element,"id").each(p=>Lr(t.element,"aria-activedescendant",p))},R5=t=>{const a=(z,Y)=>(Y.cut(),P.none()),p=(z,Y)=>{const re={interactionEvent:Y.event,eventType:Y.event.raw.type};return go(z,G8,re),P.some(!0)},E="searcher-events";return{dom:{tag:"div",classes:[Ax]},components:[sy.sketch({inputClasses:[Ex,"tox-textfield"],inputAttributes:{...t.placeholder.map(z=>({placeholder:t.i18n(z)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:gr([jo(E,[Xn(qs(),z=>{pa(z,W8)}),Xn(Ca(),(z,Y)=>{Y.event.raw.key==="Escape"&&Y.stop()})]),po.config({mode:"special",onLeft:a,onRight:a,onSpace:a,onEnter:p,onEscape:p,onUp:p,onDown:p})]),eventOrder:{keydown:[E,po.name()]}})]}},Vk="tox-collection--results__js",L5=t=>{var a;return t.dom?{...t,dom:{...t.dom,attributes:{...(a=t.dom.attributes)!==null&&a!==void 0?a:{},id:Xr("aria-item-search-result-id"),"aria-selected":"false"}}}:t},Uk=(t,a)=>p=>{const E=ce(p,a);return ne(E,z=>({dom:t,components:z}))},rV=t=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[ey.parts.items({preprocess:t!=="auto"?Uk({tag:"div",classes:["tox-swatches__row"]},t):D})]}]}),oV=t=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[ey.parts.items({preprocess:Uk({tag:"div",classes:["tox-collection__group"]},t)})]}),j8=(t,a)=>{const p=[];let E=[];return fe(t,(z,Y)=>{a(z,Y)?(E.length>0&&p.push(E),E=[],(pn(z.dom,"innerHtml")||z.components&&z.components.length>0)&&E.push(z)):E.push(z)}),E.length>0&&p.push(E),ne(p,z=>({dom:{tag:"div",classes:["tox-collection__group"]},components:z}))},D5=(t,a,p)=>ey.parts.items({preprocess:E=>{const z=ne(E,p);return t!=="auto"&&t>1?Uk({tag:"div",classes:["tox-collection__group"]},t)(z):j8(z,(Y,re)=>a[re].type==="separator")}}),Y8=(t,a,p=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(t===1?["tox-collection--list"]:["tox-collection--grid"])},components:[D5(t,a,D)]}),aV=(t,a,p=!0)=>{const E=Xr("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",Vk].concat(t===1?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:E}},components:[D5(t,a,L5)]}},K8=(t,a,p)=>{const E=Xr("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(t===1?["tox-collection--list"]:["tox-collection--grid"])},components:[R5({i18n:_f.translate,placeholder:p.placeholder}),{dom:{tag:"div",classes:[...t===1?["tox-collection--list"]:["tox-collection--grid"],Vk],attributes:{id:E}},components:[D5(t,a,L5)]}]}},X8=(t,a=!0)=>({dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[ey.parts.items({preprocess:p=>j8(p,(E,z)=>t[z].type==="separator")})]}),Wk=t=>ge(t,a=>"icon"in a&&a.icon!==void 0),Jm=t=>(console.error(wl(t)),console.log(t),P.none()),WC=(t,a,p,E,z)=>{const Y=X8(p);return{value:t,dom:Y.dom,components:Y.components,items:p}},Gk=(t,a,p,E,z)=>{const Y=()=>z.menuType!=="searchable"?Y8(E,p):z.searchMode.searchMode==="search-with-field"?K8(E,p,z.searchMode):aV(E,p);if(z.menuType==="color"){const re=rV(E);return{value:t,dom:re.dom,components:re.components,items:p}}else if(z.menuType==="normal"&&E==="auto"){const re=Y8(E,p);return{value:t,dom:re.dom,components:re.components,items:p}}else if(z.menuType==="normal"||z.menuType==="searchable"){const re=Y();return{value:t,dom:re.dom,components:re.components,items:p}}else if(z.menuType==="listpreview"&&E!=="auto"){const re=oV(E);return{value:t,dom:re.dom,components:re.components,items:p}}else return{value:t,dom:k5(a,E,z.menuType),components:U8,items:p}},Oi=Da("type"),$5=Da("name"),Zk=Da("label"),dp=Da("text"),J8=Da("title"),O5=Da("icon"),_x=Da("value"),Q8=bu("fetch"),q8=bu("getSubmenuItems"),Rx=bu("onAction"),sV=bu("onItemAction"),Gv=bi("onSetup",()=>C),P5=Gi("name"),Qm=Gi("text"),Rf=Gi("icon"),GC=Gi("tooltip"),jk=Gi("label"),iV=Gi("shortcut"),I5=pf("select"),Yk=Li("active",!1),e7=Li("borderless",!1),id=Li("enabled",!0),qm=Li("primary",!1),t7=t=>En("columns",t),ZC=En("meta",{}),Lx=bi("onAction",C),iy=t=>bf("type",t),Kk=t=>Wi("name","name",Xu(()=>Xr(`${t}-name`)),Ui),n7=t=>Wi("value","value",Xu(()=>Xr(`${t}-value`)),oi()),N5=io([Oi,Qm]),F5=t=>ns("separatormenuitem",N5,t),r7=io([iy("autocompleteitem"),Yk,id,ZC,_x,Qm,Rf]),lV=t=>ns("Autocompleter.Separator",N5,t),o7=t=>ns("Autocompleter.Item",r7,t),Dx=[id,GC,Rf,Qm,Gv],a7=io([Oi,Rx].concat(Dx)),B5=t=>ns("toolbarbutton",a7,t),H5=[Yk].concat(Dx),s7=io(H5.concat([Oi,Rx])),i7=t=>ns("ToggleButton",s7,t),l7=[bi("predicate",H),bc("scope","node",["node","editor"]),bc("position","selection",["node","selection","line"])],cV=Dx.concat([iy("contextformbutton"),qm,Rx,zs("original",D)]),uV=H5.concat([iy("contextformbutton"),qm,Rx,zs("original",D)]),c7=Dx.concat([iy("contextformbutton")]),jC=H5.concat([iy("contextformtogglebutton")]),u7=fa("type",{contextformbutton:cV,contextformtogglebutton:uV}),fV=io([iy("contextform"),bi("initValue",O("")),jk,Ol("commands",u7),$c("launch",fa("type",{contextformbutton:c7,contextformtogglebutton:jC}))].concat(l7)),dV=t=>ns("ContextForm",fV,t),hV=io([iy("contexttoolbar"),Da("items")].concat(l7)),mV=t=>ns("ContextToolbar",hV,t),gV=[Oi,Da("src"),Gi("alt"),ec("classes",[],Ui)],Xk=io(gV),pV=[Oi,dp,P5,ec("classes",["tox-collection__item-label"],Ui)],f7=io(pV),d7=Vi(()=>ir("type",{cardimage:Xk,cardtext:f7,cardcontainer:h7})),h7=io([Oi,bf("direction","horizontal"),bf("align","left"),bf("valign","middle"),Ol("items",d7)]),ly=[id,Qm,iV,n7("menuitem"),ZC],vV=io([Oi,jk,Ol("items",d7),Gv,Lx].concat(ly)),m7=t=>ns("cardmenuitem",vV,t),g7=io([Oi,Yk,Rf].concat(ly)),p7=t=>ns("choicemenuitem",g7,t),z5=[Oi,Da("fancytype"),Lx],yV=[En("initData",{})].concat(z5),bV=[pf("select"),U("initData",{},[Li("allowCustomColors",!0),bf("storageKey","default"),jf("colors",oi())])].concat(z5),xV=fa("fancytype",{inserttable:yV,colorswatch:bV}),wV=t=>ns("fancymenuitem",xV,t),v7=io([Oi,Gv,Lx,Rf].concat(ly)),y7=t=>ns("menuitem",v7,t),CV=io([Oi,q8,Gv,Rf].concat(ly)),SV=t=>ns("nestedmenuitem",CV,t),TV=io([Oi,Rf,Yk,Gv,Rx].concat(ly)),kV=t=>ns("togglemenuitem",TV,t),V5=(t,a,p)=>{const E=Xi(t.element,"."+p);if(E.length>0){const z=Oe(E,Y=>{const re=Y.dom.getBoundingClientRect().top,xe=E[0].dom.getBoundingClientRect().top;return Math.abs(re-xe)>a}).getOr(E.length);return P.some({numColumns:z,numRows:Math.ceil(E.length/z)})}else return P.none()},U5=(t,a)=>gr([jo(t,a)]),YC={namedEvents:U5,unnamedEvents:t=>U5(Xr("unnamed-events"),t)},Jk=Xr("tooltip.exclusive"),$x=Xr("tooltip.show"),KC=Xr("tooltip.hide"),b7=(t,a,p)=>{t.getSystem().broadcastOn([Jk],{})};var MV=Object.freeze({__proto__:null,hideAllExclusive:b7,setComponents:(t,a,p,E)=>{p.getTooltip().each(z=>{z.getSystem().isConnected()&&Ho.set(z,E)})}}),x7=Object.freeze({__proto__:null,events:(t,a)=>{const p=z=>{a.getTooltip().each(Y=>{Bd(Y),t.onHide(z,Y),a.clearTooltip()}),a.clearTimer()},E=z=>{if(!a.isShowing()){b7(z);const Y=t.lazySink(z).getOrDie(),re=z.getSystem().build({dom:t.tooltipDom,components:t.tooltipComponents,events:bs(t.mode==="normal"?[Xn($r(),xe=>{pa(z,$x)}),Xn(Vs(),xe=>{pa(z,KC)})]:[]),behaviours:gr([Ho.config({})])});a.setTooltip(re),zm(Y,re),t.onShow(z,re),Nl.position(Y,re,{anchor:t.anchor(z)})}};return bs(Fe([[Xn($x,z=>{a.resetTimer(()=>{E(z)},t.delay)}),Xn(KC,z=>{a.resetTimer(()=>{p(z)},t.delay)}),Xn(Tl(),(z,Y)=>{const re=Y;re.universal||he(re.channels,Jk)&&p(z)}),_d(z=>{p(z)})],t.mode==="normal"?[Xn(_o(),z=>{pa(z,$x)}),Xn(Sl(),z=>{pa(z,KC)}),Xn($r(),z=>{pa(z,$x)}),Xn(Vs(),z=>{pa(z,KC)})]:[Xn(e1(),(z,Y)=>{pa(z,$x)}),Xn(t1(),z=>{pa(z,KC)})]]))}}),w7=[qn("lazySink"),qn("tooltipDom"),En("exclusive",!0),En("tooltipComponents",[]),En("delay",300),bc("mode","normal",["normal","follow-highlight"]),En("anchor",t=>({type:"hotspot",hotspot:t,layouts:{onLtr:O([Yi,oc,ji,Cc,Ml,Il]),onRtl:O([Yi,oc,ji,Cc,Ml,Il])}})),Sa("onHide"),Sa("onShow")],_V=Object.freeze({__proto__:null,init:()=>{const t=ia(),a=ia(),p=()=>{t.on(clearTimeout)},E=(Y,re)=>{p(),t.set(setTimeout(Y,re))},z=O("not-implemented");return Qc({getTooltip:a.get,isShowing:a.isSet,setTooltip:a.set,clearTooltip:a.clear,clearTimer:p,resetTimer:E,readState:z})}});const C7=Ki({fields:w7,name:"tooltipping",active:x7,state:_V,apis:MV}),RV=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),S7="silver.readonly",W5=io([z2("readonly")]),Qk=(t,a)=>{const E=t.mainUi.outerContainer.element,z=[t.mainUi.mothership,...t.uiMotherships];a&&fe(z,Y=>{Y.broadcastOn([rd()],{target:E})}),fe(z,Y=>{Y.broadcastOn([S7],{readonly:a})})},T7=(t,a)=>{t.on("init",()=>{t.mode.isReadOnly()&&Qk(a,!0)}),t.on("SwitchMode",()=>Qk(a,t.mode.isReadOnly())),y8(t)&&t.mode.set("readonly")},Qi=()=>Pc.config({channels:{[S7]:{schema:W5,onReceive:(t,a)=>{Co.set(t,a.readonly)}}}}),Bi={item:t=>Co.config({disabled:t,disableClass:"tox-collection__item--state-disabled"}),button:t=>Co.config({disabled:t}),splitButton:t=>Co.config({disabled:t,disableClass:"tox-tbtn--disabled"}),toolbarButton:t=>Co.config({disabled:t,disableClass:"tox-tbtn--disabled",useNative:!1})},Lf=(t,a)=>{const p=t.getApi(a);return E=>{E(p)}},Zv=(t,a)=>ms(p=>{Lf(t,p)(z=>{const Y=t.onSetup(z);g(Y)&&a.set(Y)})}),eg=(t,a)=>_d(p=>Lf(t,p)(a.get())),G5=(t,a)=>xf((p,E)=>{Lf(t,p)(t.onAction),!t.triggersSubmenu&&a===Yh.CLOSE_ON_EXECUTE&&(p.getSystem().isConnected()&&pa(p,wu()),E.stop())}),DV={[Ci()]:["disabling","alloy.base.behaviour","toggling","item-events"]},Ox=an,tg=(t,a,p,E)=>{const z=q(C);return{type:"item",dom:a.dom,components:Ox(a.optComponents),data:t.data,eventOrder:DV,hasSubmenu:t.triggersSubmenu,itemBehaviours:gr([jo("item-events",[G5(t,p),Zv(t,z),eg(t,z)]),Bi.item(()=>!t.enabled||E.isDisabled()),Qi(),Ho.config({})].concat(t.itemBehaviours))}},hp=t=>({value:t.value,meta:{text:t.text.getOr(""),...t.meta}}),qk=t=>{const a=xx.os.isMacOS()||xx.os.isiOS(),z=a?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},Y=t.split("+"),re=ne(Y,xe=>{const Ee=xe.toLowerCase().trim();return pn(z,Ee)?z[Ee]:xe});return a?re.join(""):re.join("+")},Z5=(t,a,p=[N8])=>Gd(t,{tag:"div",classes:p},a),Zd=t=>({dom:{tag:"div",classes:[C5]},components:[ai(_f.translate(t))]}),k7=(t,a)=>({dom:{tag:"div",classes:a,innerHtml:t}}),$V=(t,a)=>({dom:{tag:"div",classes:[C5]},components:[{dom:{tag:t.tag,styles:t.styles},components:[ai(_f.translate(a))]}]}),ld=t=>({dom:{tag:"div",classes:[Xz]},components:[ai(qk(t))]}),Px=t=>Z5("checkmark",t,[Jz]),jd=t=>Z5("chevron-right",t,[F8]),OV=t=>Z5("chevron-down",t,[F8]),cs=(t,a)=>{const p=t.direction==="vertical"?Qz:H8,E=t.align==="left"?qz:Bk;return{dom:{tag:"div",classes:[B8,p,E,(()=>{switch(t.valign){case"top":return S5;case"middle":return eV;case"bottom":return tV}})()]},components:a}},Ix=(t,a,p)=>({dom:{tag:"img",classes:a,attributes:{src:t,alt:p.getOr("")}}}),eA=(t,a,p)=>{const E="custom",z="remove",Y=t.ariaLabel,re=t.value,xe=t.iconContent.map(Be=>e5(Be,a.icons,p));return{dom:(()=>{const Be=w5,je=xe.getOr(""),st={tag:"div",attributes:Y.map(mt=>({title:a.translate(mt)})).getOr({}),classes:[Be]};return re===E?{...st,tag:"button",classes:[...st.classes,"tox-swatches__picker-btn"],innerHtml:je}:re===z?{...st,classes:[...st.classes,"tox-swatch--remove"],innerHtml:je}:d(re)?{...st,attributes:{...st.attributes,"data-mce-color":re},styles:{"background-color":re},innerHtml:je}:st})(),optComponents:[]}},j5=t=>{const a=t.map(p=>({attributes:{title:_f.translate(p),id:Xr("menu-item")}})).getOr({});return{tag:"div",classes:[x5,Ax],...a}},Y5=(t,a,p,E)=>{const z={tag:"div",classes:[N8]},Y=st=>Gd(st,z,a.icons,E),re=()=>P.some({dom:z}),xe=p?t.iconContent.map(Y).orThunk(re):P.none(),Ee=t.checkMark,Be=P.from(t.meta).fold(()=>Zd,st=>pn(st,"style")?M($V,st.style):Zd),je=t.htmlContent.fold(()=>t.textContent.map(Be),st=>P.some(k7(st,[C5])));return{dom:j5(t.ariaLabel),optComponents:[xe,je,t.shortcutContent.map(ld),Ee,t.caret]}},cy=(t,a,p,E=P.none())=>t.presets==="color"?eA(t,a,E):Y5(t,a,p,E),A7=(t,a)=>Ft(t,"tooltipWorker").map(p=>[C7.config({lazySink:a.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:E=>({type:"submenu",item:E,overrides:{maxHeightFunction:pv}}),mode:"follow-highlight",onShow:(E,z)=>{p(Y=>{C7.setComponents(E,[G3({element:zt.fromDom(Y)})])})}})]).getOr([]),K5=t=>oy.DOM.encode(t),M7=(t,a)=>{const p=_f.translate(t),E=K5(p);if(a.length>0){const z=new RegExp(RV(a),"gi");return E.replace(z,Y=>`${Y}`)}else return E},E7=(t,a,p,E,z,Y,re,xe=!0)=>{const Ee=cy({presets:E,textContent:P.none(),htmlContent:p?t.text.map(Be=>M7(Be,a)):P.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:P.none(),checkMark:P.none(),caret:P.none(),value:t.value},re.providers,xe,t.icon);return tg({data:hp(t),enabled:t.enabled,getApi:O({}),onAction:Be=>z(t.value,t.meta),onSetup:O(C),triggersSubmenu:!1,itemBehaviours:A7(t.meta,re)},Ee,Y,re.providers)},X5=(t,a)=>ne(t,p=>{switch(p.type){case"cardcontainer":return cs(p,X5(p.items,a));case"cardimage":return Ix(p.src,p.classes,p.alt);case"cardtext":const z=p.name.exists(Y=>he(a.cardText.highlightOn,Y))?P.from(a.cardText.matchText).getOr(""):"";return k7(M7(p.text,z),p.classes)}}),J5=(t,a,p,E)=>{const z=re=>({isEnabled:()=>!Co.isDisabled(re),setEnabled:xe=>{Co.set(re,!xe),fe(Xi(re.element,"*"),Ee=>{re.getSystem().getByDom(Ee).each(Be=>{Be.hasConfigured(Co)&&Co.set(Be,!xe)})})}}),Y={dom:j5(t.label),optComponents:[P.some({dom:{tag:"div",classes:[B8,H8]},components:X5(t.items,E)})]};return tg({data:hp({text:P.none(),...t}),enabled:t.enabled,getApi:z,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:P.from(E.itemBehaviours).getOr([])},Y,a,p.providers)},_7=(t,a,p,E,z,Y,re,xe=!0)=>{const Ee=je=>({setActive:et=>{qo.set(je,et)},isActive:()=>qo.isOn(je),isEnabled:()=>!Co.isDisabled(je),setEnabled:et=>Co.set(je,!et)}),Be=cy({presets:p,textContent:a?t.text:P.none(),htmlContent:P.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:a?t.shortcut:P.none(),checkMark:a?P.some(Px(re.icons)):P.none(),caret:P.none(),value:t.value},re,xe);return hs(tg({data:hp(t),enabled:t.enabled,getApi:Ee,onAction:je=>E(t.value),onSetup:je=>(je.setActive(z),C),triggersSubmenu:!1,itemBehaviours:[]},Be,Y,re),{toggling:{toggleClass:I8,toggleOnExecute:!1,selected:t.active,exclusive:!0}})},XC=Hh(AC(),MC()),R7=t=>({value:O7(t)}),L7=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,D7=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,$7=t=>L7.test(t)||D7.test(t),O7=t=>$t(t,"#").toUpperCase(),P7=t=>$7(t)?P.some({value:O7(t)}):P.none(),PV=t=>({value:t.value.replace(L7,(p,E,z,Y)=>E+E+z+z+Y+Y)}),IV=t=>{const a=PV(t),p=D7.exec(a.value);return p===null?["FFFFFF","FF","FF","FF"]:p},tA=t=>{const a=t.toString(16);return(a.length===1?"0"+a:a).toUpperCase()},Nx=t=>{const a=tA(t.red)+tA(t.green)+tA(t.blue);return R7(a)},I7=Math.min,N7=Math.max,JC=Math.round,F7=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,B7=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,jv=(t,a,p,E)=>({red:t,green:a,blue:p,alpha:E}),Q5=t=>{const a=parseInt(t,10);return a.toString()===t&&a>=0&&a<=255},H7=t=>{let a,p,E;const z=(t.hue||0)%360;let Y=t.saturation/100,re=t.value/100;if(Y=N7(0,I7(Y,1)),re=N7(0,I7(re,1)),Y===0)return a=p=E=JC(255*re),jv(a,p,E,1);const xe=z/60,Ee=re*Y,Be=Ee*(1-Math.abs(xe%2-1)),je=re-Ee;switch(Math.floor(xe)){case 0:a=Ee,p=Be,E=0;break;case 1:a=Be,p=Ee,E=0;break;case 2:a=0,p=Ee,E=Be;break;case 3:a=0,p=Be,E=Ee;break;case 4:a=Be,p=0,E=Ee;break;case 5:a=Ee,p=0,E=Be;break;default:a=p=E=0}return a=JC(255*(a+je)),p=JC(255*(p+je)),E=JC(255*(E+je)),jv(a,p,E,1)},QC=t=>{const a=IV(t),p=parseInt(a[1],16),E=parseInt(a[2],16),z=parseInt(a[3],16);return jv(p,E,z,1)},z7=(t,a,p,E)=>{const z=parseInt(t,10),Y=parseInt(a,10),re=parseInt(p,10),xe=parseFloat(E);return jv(z,Y,re,xe)},q5=t=>{if(t==="transparent")return P.some(jv(0,0,0,0));const a=F7.exec(t);if(a!==null)return P.some(z7(a[1],a[2],a[3],"1"));const p=B7.exec(t);return p!==null?P.some(z7(p[1],p[2],p[3],p[4])):P.none()},eR=t=>`rgba(${t.red},${t.green},${t.blue},${t.alpha})`,cd=jv(255,0,0,1),NV=t=>{t.dispatch("SkinLoaded")},tR=(t,a)=>{t.dispatch("SkinLoadError",a)},V7=t=>{t.dispatch("ResizeEditor")},nA=(t,a)=>{t.dispatch("ResizeContent",a)},FV=(t,a)=>{t.dispatch("ScrollContent",a)},nR=(t,a)=>{t.dispatch("TextColorChange",a)},U7=(t,a)=>{t.dispatch("AfterProgressState",{state:a})},W7=(t,a)=>t.dispatch("ResolveName",{name:a.nodeName.toLowerCase(),target:a}),BV=(t,a)=>{t.dispatch("ToggleToolbarDrawer",{state:a})},HV=(t,a)=>{t.dispatch("StylesTextUpdate",a)},zV=(t,a)=>{t.dispatch("AlignTextUpdate",a)},VV=(t,a)=>{t.dispatch("FontSizeTextUpdate",a)},UV=(t,a)=>{t.dispatch("FontSizeInputTextUpdate",a)},G7=(t,a)=>{t.dispatch("BlocksTextUpdate",a)},Z7=(t,a)=>{t.dispatch("FontFamilyTextUpdate",a)},qC=(t,a)=>()=>{t(),a()},Vc=t=>Yd(t,"NodeChange",a=>{a.setEnabled(t.selection.isEditable())}),WV=(t,a)=>p=>{const E=Oh(),z=()=>{p.setActive(t.formatter.match(a));const Y=t.formatter.formatChanged(a,p.setActive);E.set(Y)};return t.initialized?z():t.once("init",z),()=>{t.off("init",z),E.clear()}},rA=(t,a)=>p=>{const E=Vc(t)(p),z=WV(t,a)(p);return()=>{E(),z()}},Yd=(t,a,p)=>E=>{const z=()=>p(E),Y=()=>{p(E),t.on(a,z)};return t.initialized?Y():t.once("init",Y),()=>{t.off("init",Y),t.off(a,z)}},j7=t=>a=>()=>{t.undoManager.transact(()=>{t.focus(),t.execCommand("mceToggleFormat",!1,a.format)})},Du=(t,a)=>()=>t.execCommand(a);var Yv=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const rR={},oR=(t,a=10)=>{const p=Yv.getItem(t),E=A(p)?JSON.parse(p):[],Y=(Be=>a-Be.length<0?Be.slice(0,a):Be)(E),re=Be=>{Q(Y,Be).each(xe),Y.unshift(Be),Y.length>a&&Y.pop(),Yv.setItem(t,JSON.stringify(Y))},xe=Be=>{Y.splice(Be,1)};return{add:re,state:()=>Y.slice(0)}},oA=t=>Ft(rR,t).getOrThunk(()=>{const a=`tinymce-custom-colors-${t}`,p=Yv.getItem(a);if(u(p)){const z=Yv.getItem("tinymce-custom-colors");Yv.setItem(a,d(z)?z:"[]")}const E=oR(a,10);return rR[t]=E,E}),aR=t=>ne(oA(t).state(),a=>({type:"choiceitem",text:a,icon:"checkmark",value:a})),sR=(t,a)=>{oA(t).add(a)},eS=(t,a,p)=>({hue:t,saturation:a,value:p}),aA=t=>{let a=0,p=0,E=0;const z=t.red/255,Y=t.green/255,re=t.blue/255,xe=Math.min(z,Math.min(Y,re)),Ee=Math.max(z,Math.max(Y,re));if(xe===Ee)return E=xe,eS(0,0,E*100);const Be=z===xe?Y-re:re===xe?z-Y:re-z;return a=z===xe?3:re===xe?1:5,a=60*(a-Be/(Ee-xe)),p=(Ee-xe)/Ee,E=Ee,eS(Math.round(a),Math.round(p*100),Math.round(E*100))},GV=t=>aA(QC(t)),Y7=t=>Nx(H7(t)),ZV=t=>P7(t).orThunk(()=>q5(t).map(Nx)).getOrThunk(()=>{const a=document.createElement("canvas");a.height=1,a.width=1;const p=a.getContext("2d");p.clearRect(0,0,a.width,a.height),p.fillStyle="#FFFFFF",p.fillStyle=t,p.fillRect(0,0,1,1);const E=p.getImageData(0,0,1,1).data,z=E[0],Y=E[1],re=E[2],xe=E[3];return Nx(jv(z,Y,re,xe))}),sA="forecolor",iA="hilitecolor",K7=5,jV=t=>{const a=[];for(let p=0;pa=>a.options.get(t),iR="#000000",YV=t=>{const a=t.options.register,p=z=>x(z,A)?{value:jV(z),valid:!0}:{valid:!1,message:"Must be an array of strings."},E=z=>v(z)&&z>0?{value:z,valid:!0}:{valid:!1,message:"Must be a positive number."};a("color_map",{processor:p,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),a("color_map_background",{processor:p}),a("color_map_foreground",{processor:p}),a("color_cols",{processor:E,default:lR(t)}),a("color_cols_foreground",{processor:E,default:X7(t,sA)}),a("color_cols_background",{processor:E,default:X7(t,iA)}),a("custom_colors",{processor:"boolean",default:!0}),a("color_default_foreground",{processor:"string",default:iR}),a("color_default_background",{processor:"string",default:iR})},lA=(t,a)=>a===sA&&t.options.isSet("color_map_foreground")?ng("color_map_foreground")(t):a===iA&&t.options.isSet("color_map_background")?ng("color_map_background")(t):ng("color_map")(t),lR=(t,a="default")=>Math.max(K7,Math.ceil(Math.sqrt(lA(t,a).length))),X7=(t,a)=>{const p=ng("color_cols")(t),E=lR(t,a);return p===lR(t)?E:p},J7=(t,a="default")=>Math.round((()=>a===sA?ng("color_cols_foreground")(t):a===iA?ng("color_cols_background")(t):ng("color_cols")(t))()),Q7=ng("custom_colors"),KV=ng("color_default_foreground"),XV=ng("color_default_background"),q7="rgba(0, 0, 0, 0)",JV=t=>q5(t).exists(a=>a.alpha!==0),QV=t=>en(t,a=>{if(St(a)){const p=Ms(a,"background-color");return lt(JV(p),p)}else return P.none()}).getOr(q7),eO=(t,a)=>{const p=zt.fromDom(t.selection.getStart()),E=a==="hilitecolor"?QV(p):Ms(p,"color");return q5(E).map(z=>"#"+Nx(z).value)},qV=(t,a,p)=>{t.undoManager.transact(()=>{t.focus(),t.formatter.apply(a,{value:p}),t.nodeChanged()})},eU=(t,a)=>{t.undoManager.transact(()=>{t.focus(),t.formatter.remove(a,{value:null},void 0,!0),t.nodeChanged()})},cA=t=>{t.addCommand("mceApplyTextcolor",(a,p)=>{qV(t,a,p)}),t.addCommand("mceRemoveTextcolor",a=>{eU(t,a)})},cR=t=>{const a="choiceitem",p={type:a,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return t?[p,{type:a,text:"Custom color",icon:"color-picker",value:"custom"}]:[p]},uR=(t,a,p,E)=>{p==="custom"?oO(t)(Y=>{Y.each(re=>{sR(a,re),t.execCommand("mceApplyTextcolor",a,re),E(re)})},eO(t,a).getOr(iR)):p==="remove"?(E(""),t.execCommand("mceRemoveTextcolor",a)):(E(p),t.execCommand("mceApplyTextcolor",a,p))},fR=(t,a,p)=>t.concat(aR(a).concat(cR(p))),tO=(t,a,p)=>E=>{E(fR(t,a,p))},dR=(t,a,p)=>{const E=a==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";t.setIconFill(E,p)},nO=(t,a)=>{t.setTooltip(a)},rO=(t,a)=>p=>{const E=eO(t,a);return sn(E,p.toUpperCase())},tS=(t,a,p)=>{if(tn(p))return a==="forecolor"?"Text color":"Background color";const E=a==="forecolor"?"Text color {0}":"Background color {0}",z=fR(lA(t,a),a,!1),Y=Ve(z,re=>re.value===p).getOr({text:""}).text;return t.translate([E,t.translate(Y)])},hR=(t,a,p,E)=>{t.ui.registry.addSplitButton(a,{tooltip:tS(t,p,E.get()),presets:"color",icon:a==="forecolor"?"text-color":"highlight-bg-color",select:rO(t,p),columns:J7(t,p),fetch:tO(lA(t,p),p,Q7(t)),onAction:z=>{uR(t,p,E.get(),C)},onItemAction:(z,Y)=>{uR(t,p,Y,re=>{E.set(re),nR(t,{name:a,color:re})})},onSetup:z=>{dR(z,a,E.get());const Y=re=>{re.name===a&&(dR(z,re.name,re.color),nO(z,tS(t,p,re.color)))};return t.on("TextColorChange",Y),qC(Vc(t)(z),()=>{t.off("TextColorChange",Y)})}})},mR=(t,a,p,E,z)=>{t.ui.registry.addNestedMenuItem(a,{text:E,icon:a==="forecolor"?"text-color":"highlight-bg-color",onSetup:Y=>(nO(Y,tS(t,p,z.get())),dR(Y,a,z.get()),Vc(t)(Y)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:rO(t,p),initData:{storageKey:p},onAction:Y=>{uR(t,p,Y.value,re=>{z.set(re),nR(t,{name:a,color:re})})}}]})},oO=t=>(a,p)=>{let E=!1;const z=xe=>{const Be=xe.getData().colorpicker;E?(a(P.from(Be)),xe.close()):t.windowManager.alert(t.translate(["Invalid hex color code: {0}",Be]))},Y=(xe,Ee)=>{Ee.name==="hex-valid"&&(E=Ee.value)},re={colorpicker:p};t.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:re,onAction:Y,onSubmit:z,onClose:C,onCancel:()=>{a(P.none())}})},gR=t=>{cA(t);const a=KV(t),p=XV(t),E=q(a),z=q(p);hR(t,"forecolor","forecolor",E),hR(t,"backcolor","hilitecolor",z),mR(t,"forecolor","forecolor","Text color",E),mR(t,"backcolor","hilitecolor","Background color",z)},pR=(t,a,p,E,z,Y,re,xe)=>{const Ee=Wk(a),je=tU(a,p,E,z!=="color"?"normal":"color",Y,re,xe);return Gk(t,Ee,je,E,{menuType:z})},tU=(t,a,p,E,z,Y,re)=>an(ne(t,xe=>xe.type==="choiceitem"?p7(xe).fold(Jm,Ee=>P.some(_7(Ee,p===1,E,a,Y(Ee.value),z,re,Wk(t)))):P.none())),uA=(t,a)=>{const p=fp(a);return t===1?{mode:"menu",moveOnTab:!0}:t==="auto"?{mode:"grid",selector:"."+p.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+(a==="color"?"tox-swatches__row":"tox-collection__group"),previousSelector:z=>a==="color"?mi(z.element,"[aria-checked=true]"):P.none()}},nU=(t,a)=>t===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:t==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:a==="color"?".tox-swatches__row":".tox-collection__group",cell:a==="color"?`.${w5}`:`.${Ax}`}},rU=(t,a)=>{const p=oU(t,a),E=a.colorinput.getColorCols(t.initData.storageKey),z="color",re={...pR(Xr("menu-value"),p,xe=>{t.onAction({value:xe})},E,z,Yh.CLOSE_ON_EXECUTE,t.select.getOr(H),a.shared.providers),markers:fp(z),movement:uA(E,z)};return{type:"widget",data:{value:Xr("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[XC.widget(ey.sketch(re))]}},oU=(t,a)=>{const p=t.initData.allowCustomColors&&a.colorinput.hasCustomColors();return t.initData.colors.fold(()=>fR(a.colorinput.getColors(t.initData.storageKey),t.initData.storageKey,p),E=>E.concat(cR(p)))},aO=Xr("cell-over"),sO=Xr("cell-execute"),aU=t=>(a,p)=>t.shared.providers.translate(`${p} columns, ${a} rows`),sU=(t,a,p)=>{const E=re=>go(re,aO,{row:t,col:a}),z=re=>go(re,sO,{row:t,col:a}),Y=(re,xe)=>{xe.stop(),z(re)};return Pl({dom:{tag:"div",attributes:{role:"button","aria-label":p}},behaviours:gr([jo("insert-table-picker-cell",[Xn($r(),ko.focus),Xn(Ci(),z),Xn(xi(),Y),Xn(nc(),Y)]),qo.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),ko.config({onFocus:E})])})},fA=(t,a,p)=>{const E=[];for(let z=0;z{for(let Y=0;Yie(t,a=>ne(a,Tu)),bR=(t,a)=>ai(`${a}x${t}`),iU={inserttable:(t,a)=>{const z=aU(a),Y=fA(z,10,10),re=bR(0,0),xe=Qa({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[re],behaviours:gr([Ho.config({})])});return{type:"widget",data:{value:Xr("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[XC.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:yR(Y).concat(xe.asSpec()),behaviours:gr([jo("insert-table-picker",[ms(Ee=>{Ho.set(xe.get(Ee),[re])}),Z2(aO,(Ee,Be,je)=>{const{row:et,col:st}=je.event;vR(Y,et,st,10,10),Ho.set(xe.get(Ee),[bR(et+1,st+1)])}),Z2(sO,(Ee,Be,je)=>{const{row:et,col:st}=je.event;t.onAction({numRows:et+1,numColumns:st+1}),pa(Ee,wu())})]),po.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:rU},xR=(t,a)=>Ft(iU,t.fancytype).map(p=>p(t,a)),wR=(t,a,p,E=!0,z=!1)=>{const Y=z?OV(p.icons):jd(p.icons),re=Ee=>({isEnabled:()=>!Co.isDisabled(Ee),setEnabled:Be=>Co.set(Ee,!Be),setIconFill:(Be,je)=>{mi(Ee.element,`svg path[class="${Be}"], rect[class="${Be}"]`).each(et=>{Lr(et,"fill",je)})},setTooltip:Be=>{const je=p.translate(Be);jl(Ee.element,{"aria-label":je,title:je})}}),xe=cy({presets:"normal",iconContent:t.icon,textContent:t.text,htmlContent:P.none(),ariaLabel:t.text,caret:P.some(Y),checkMark:P.none(),shortcutContent:t.shortcut},p,E);return tg({data:hp(t),getApi:re,enabled:t.enabled,onAction:C,onSetup:t.onSetup,triggersSubmenu:!0,itemBehaviours:[]},xe,a,p)},dA=(t,a,p,E=!0)=>{const z=re=>({isEnabled:()=>!Co.isDisabled(re),setEnabled:xe=>Co.set(re,!xe)}),Y=cy({presets:"normal",iconContent:t.icon,textContent:t.text,htmlContent:P.none(),ariaLabel:t.text,caret:P.none(),checkMark:P.none(),shortcutContent:t.shortcut},p,E);return tg({data:hp(t),getApi:z,enabled:t.enabled,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Y,a,p)},iO=t=>({type:"separator",dom:{tag:"div",classes:[Ax,Kz]},components:t.text.map(ai).toArray()}),lU=(t,a,p,E=!0)=>{const z=re=>({setActive:xe=>{qo.set(re,xe)},isActive:()=>qo.isOn(re),isEnabled:()=>!Co.isDisabled(re),setEnabled:xe=>Co.set(re,!xe)}),Y=cy({iconContent:t.icon,textContent:t.text,htmlContent:P.none(),ariaLabel:t.text,checkMark:P.some(Px(p.icons)),caret:P.none(),shortcutContent:t.shortcut,presets:"normal",meta:t.meta},p,E);return hs(tg({data:hp(t),enabled:t.enabled,getApi:z,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Y,a,p),{toggling:{toggleClass:I8,toggleOnExecute:!1,selected:t.active}})},cU=E7,lO=iO,uU=dA,fU=wR,dU=lU,hU=xR,mU=J5;var gU=Object.freeze({__proto__:null,getCoupled:(t,a,p,E)=>p.getOrCreate(t,a,E),getExistingCoupled:(t,a,p,E)=>p.getExisting(t,a,E)}),pU=[yc("others",gf(Wo.value,oi()))],cO=Object.freeze({__proto__:null,init:()=>{const t={},a=(Y,re)=>{if(ot(Y.others).length===0)throw new Error("Cannot find any known coupled components");return Ft(t,re)},p=(Y,re,xe)=>a(re,xe).getOrThunk(()=>{const Be=Ft(re.others,xe).getOrDie("No information found for coupled component: "+xe)(Y),je=Y.getSystem().build(Be);return t[xe]=je,je}),E=(Y,re,xe)=>a(re,xe).orThunk(()=>(Ft(re.others,xe).getOrDie("No information found for coupled component: "+xe),P.none())),z=O({});return Qc({readState:z,getExisting:E,getOrCreate:p})}});const pi=Ki({fields:pU,name:"coupling",apis:gU,state:cO}),CR=t=>{let a=P.none(),p=[];const E=Be=>CR(je=>{z(et=>{je(Be(et))})}),z=Be=>{re()?Ee(Be):p.push(Be)},Y=Be=>{re()||(a=P.some(Be),xe(p),p=[])},re=()=>a.isSome(),xe=Be=>{fe(Be,Ee)},Ee=Be=>{a.each(je=>{setTimeout(()=>{Be(je)},0)})};return t(Y),{get:z,map:E,isReady:re}},vU={nu:CR,pure:t=>CR(a=>{a(t)})},yU=t=>{setTimeout(()=>{throw t},0)},Kv=t=>{const a=Ee=>{t().then(Ee,yU)};return{map:Ee=>Kv(()=>t().then(Ee)),bind:Ee=>Kv(()=>t().then(Be=>Ee(Be).toPromise())),anonBind:Ee=>Kv(()=>t().then(()=>Ee.toPromise())),toLazy:()=>vU.nu(a),toCached:()=>{let Ee=null;return Kv(()=>(Ee===null&&(Ee=t()),Ee))},toPromise:t,get:a}},cc={nu:t=>Kv(()=>new Promise(t)),pure:t=>Kv(()=>Promise.resolve(t))},uO=O("sink"),fO=O(Fc({name:uO(),overrides:O({dom:{tag:"div"},behaviours:gr([Nl.config({useFixed:j})]),events:bs([Ah(Ca()),Ah(fo()),Ah(xi())])})})),dO=(t,a)=>{const p=t.getHotspot(a).getOr(a),E="hotspot",z=t.getAnchorOverrides();return t.layouts.fold(()=>({type:E,hotspot:p,overrides:z}),Y=>({type:E,hotspot:p,overrides:z,layouts:Y}))},bU=(t,a,p)=>{const E=t.fetch;return E(p).map(a)},xU=(t,a,p,E,z,Y,re)=>{const xe=bU(t,a,E),Ee=hO(E,t);return xe.map(Be=>Be.bind(je=>P.from(Wv.sketch({...Y.menu(),uid:jp(""),data:je,highlightOnOpen:re,onOpenMenu:(et,st)=>{const mt=Ee().getOrDie();Nl.position(mt,st,{anchor:p}),va.decloak(z)},onOpenSubmenu:(et,st,mt)=>{const Mt=Ee().getOrDie();Nl.position(Mt,mt,{anchor:{type:"submenu",item:st}}),va.decloak(z)},onRepositionMenu:(et,st,mt)=>{const Mt=Ee().getOrDie();Nl.position(Mt,st,{anchor:p}),fe(mt,Xt=>{Nl.position(Mt,Xt.triggeredMenu,{anchor:{type:"submenu",item:Xt.triggeringItem}})})},onEscape:()=>(ko.focus(E),va.close(z),P.some(!0))}))))},hA=(t,a,p,E,z,Y,re)=>{const xe=dO(t,p);return xU(t,a,xe,p,E,z,re).map(Be=>(Be.fold(()=>{va.isOpen(E)&&va.close(E)},je=>{va.cloak(E),va.open(E,je),Y(E)}),E))},wU=(t,a,p,E,z,Y,re)=>(va.close(E),cc.pure(E)),SR=(t,a,p,E,z,Y)=>{const re=pi.getCoupled(p,"sandbox");return(va.isOpen(re)?wU:hA)(t,a,p,re,E,z,Y)},CU=(t,a,p)=>{const E=da.getCurrent(a).getOr(a),z=ci(t.element);p?To(E.element,"min-width",z+"px"):La(E.element,z)},hO=(t,a)=>t.getSystem().getByUid(a.uid+"-"+uO()).map(p=>()=>Wo.value(p)).getOrThunk(()=>a.lazySink.fold(()=>()=>Wo.error(new Error("No internal sink is specified, nor could an external sink be found")),p=>()=>p(t))),mO=t=>{va.getState(t).each(a=>{Wv.repositionMenus(a)})},TR=(t,a,p)=>{const E=Zg(),z=(xe,Ee)=>{const Be=dO(t,a);E.link(a.element),t.matchWidth&&CU(Be.hotspot,Ee,t.useMinWidth),t.onOpen(Be,xe,Ee),p!==void 0&&p.onOpen!==void 0&&p.onOpen(xe,Ee)},Y=(xe,Ee)=>{E.unlink(a.element),p!==void 0&&p.onClose!==void 0&&p.onClose(xe,Ee)},re=hO(a,t);return{dom:{tag:"div",classes:t.sandboxClasses,attributes:{id:E.id,role:"listbox"}},behaviours:nf.augment(t.sandboxBehaviours,[Fr.config({store:{mode:"memory",initialValue:a}}),va.config({onOpen:z,onClose:Y,isPartOf:(xe,Ee,Be)=>Lh(Ee,Be)||Lh(a,Be),getAttachPoint:()=>re().getOrDie()}),da.config({find:xe=>va.getState(xe).bind(Ee=>da.getCurrent(Ee))}),Pc.config({channels:{...$1({isExtraPart:H}),...Rv({doReposition:mO})}})])}},gO=t=>{const a=pi.getCoupled(t,"sandbox");mO(a)},kR=()=>[En("sandboxClasses",[]),nf.field("sandboxBehaviours",[da,Pc,va,Fr])],SU=O([qn("dom"),qn("fetch"),Sa("onOpen"),ru("onExecute"),En("getHotspot",P.some),En("getAnchorOverrides",O({})),Om(),Fi("dropdownBehaviours",[qo,pi,po,ko]),qn("toggleClass"),En("eventOrder",{}),Ia("lazySink"),En("matchWidth",!1),En("useMinWidth",!1),Ia("role")].concat(kR())),TU=O([Af({schema:[c1(),En("fakeFocus",!1)],name:"menu",defaults:t=>({onExecute:t.onExecute})}),fO()]),kU=(t,a,p,E)=>{const z=je=>Ft(t.dom,"attributes").bind(et=>Ft(et,je)),Y=je=>{va.getState(je).each(et=>{Wv.highlightPrimary(et)})},re=(je,et,st)=>SR(t,D,je,E,et,st),xe=je=>{re(je,Y,zc.HighlightMenuAndItem).get(C)},Ee={expand:je=>{qo.isOn(je)||re(je,C,zc.HighlightNone).get(C)},open:je=>{qo.isOn(je)||re(je,C,zc.HighlightMenuAndItem).get(C)},refetch:je=>pi.getExistingCoupled(je,"sandbox").fold(()=>re(je,C,zc.HighlightMenuAndItem).map(C),st=>hA(t,D,je,st,E,C,zc.HighlightMenuAndItem).map(C)),isOpen:qo.isOn,close:je=>{qo.isOn(je)&&re(je,C,zc.HighlightMenuAndItem).get(C)},repositionMenus:je=>{qo.isOn(je)&&gO(je)}},Be=(je,et)=>(kh(je),P.some(!0));return{uid:t.uid,dom:t.dom,components:a,behaviours:Si(t.dropdownBehaviours,[qo.config({toggleClass:t.toggleClass,aria:{mode:"expanded"}}),pi.config({others:{sandbox:je=>TR(t,je,{onOpen:()=>qo.on(je),onClose:()=>qo.off(je)})}}),po.config({mode:"special",onSpace:Be,onEnter:Be,onDown:(je,et)=>{if(ud.isOpen(je)){const st=pi.getCoupled(je,"sandbox");Y(st)}else ud.open(je);return P.some(!0)},onEscape:(je,et)=>ud.isOpen(je)?(ud.close(je),P.some(!0)):P.none()}),ko.config({})]),events:Gh(P.some(xe)),eventOrder:{...t.eventOrder,[Ci()]:["disabling","toggling","alloy.base.behaviour"]},apis:Ee,domModification:{attributes:{"aria-haspopup":"true",...t.role.fold(()=>({}),je=>({role:je})),...t.dom.tag==="button"?{type:z("type").getOr("button")}:{}}}}},ud=Bl({name:"Dropdown",configFields:SU(),partFields:TU(),factory:kU,apis:{open:(t,a)=>t.open(a),refetch:(t,a)=>t.refetch(a),expand:(t,a)=>t.expand(a),close:(t,a)=>t.close(a),isOpen:(t,a)=>t.isOpen(a),repositionMenus:(t,a)=>t.repositionMenus(a)}}),AU=t=>{switch(t.searchMode){case"no-search":return{menuType:"normal"};default:return{menuType:"searchable",searchMode:t}}},MU=t=>{const a=Fr.getValue(t),p=zk(t).map(Z8);ud.refetch(a).get(()=>{const E=pi.getCoupled(a,"sandbox");p.each(z=>zk(E).each(Y=>E5(Y,z)))})},EU=(t,a)=>{_U(t).each(p=>{BE(t,p.element,a.event.eventType,a.event.interactionEvent)})},_U=t=>va.getState(t).bind(Na.getHighlighted).bind(Na.getHighlighted),RU=t=>Ni(t.element,Vk)?P.some(t.element):mi(t.element,"."+Vk),AR=(t,a,p)=>{M5(t).each(E=>{_5(E,p),RU(a).each(Y=>{yi(Y,"id").each(re=>Lr(E.element,"aria-controls",re))})}),Lr(p.element,"aria-selected","true")},LU=(t,a,p)=>{Lr(p.element,"aria-selected","false")},DU=t=>{M5(t).each(a=>ko.focus(a))},$U=t=>pi.getExistingCoupled(t,"sandbox").bind(zk).map(Z8).map(p=>p.fetchPattern).getOr("");var nS;(function(t){t[t.ContentFocus=0]="ContentFocus",t[t.UiFocus=1]="UiFocus"})(nS||(nS={}));const OU=(t,a,p,E,z)=>{const Y=p.shared.providers,re=xe=>z?{...xe,shortcut:P.none(),icon:xe.text.isSome()?P.none():xe.icon}:xe;switch(t.type){case"menuitem":return y7(t).fold(Jm,xe=>P.some(uU(re(xe),a,Y,E)));case"nestedmenuitem":return SV(t).fold(Jm,xe=>P.some(fU(re(xe),a,Y,E,z)));case"togglemenuitem":return kV(t).fold(Jm,xe=>P.some(dU(re(xe),a,Y,E)));case"separator":return F5(t).fold(Jm,xe=>P.some(lO(xe)));case"fancymenuitem":return wV(t).fold(Jm,xe=>hU(xe,p));default:return console.error("Unknown item in general menu",t),P.none()}},PU=(t,a,p,E,z,Y,re)=>{const xe=E===1,Ee=!xe||Wk(t);return an(ne(t,Be=>{switch(Be.type){case"separator":return lV(Be).fold(Jm,je=>P.some(lO(je)));case"cardmenuitem":return m7(Be).fold(Jm,je=>P.some(mU({...je,onAction:et=>{je.onAction(et),p(je.value,je.meta)}},z,Y,{itemBehaviours:A7(je.meta,Y),cardText:{matchText:a,highlightOn:re}})));case"autocompleteitem":default:return o7(Be).fold(Jm,je=>P.some(cU(je,a,xe,"normal",p,z,Y,Ee)))}}))},pO=(t,a,p,E,z,Y)=>{const re=Wk(a),xe=an(ne(a,je=>{const et=mt=>z?!pn(mt,"text"):re,st=mt=>OU(mt,p,E,et(mt),z);return je.type==="nestedmenuitem"&&je.getSubmenuItems().length<=0?st({...je,enabled:!1}):st(je)})),Ee=AU(Y);return(z?WC:Gk)(t,re,xe,1,Ee)},mA=t=>Wv.singleData(t.value,t),IU=(t,a,p,E)=>{const z=uA(a,E),Y=fp(E);return{data:mA({...t,movement:z,menuBehaviours:YC.unnamedEvents(a!=="auto"?[]:[ms((re,xe)=>{V5(re,4,Y.item).each(({numColumns:Ee,numRows:Be})=>{po.setGridSize(re,Be,Ee)})})])}),menu:{markers:fp(E),fakeFocus:p===nS.ContentFocus}}},NU=(t,a)=>y5(zt.fromDom(a.startContainer)).map(p=>{const E=t.createRng();return E.selectNode(p.dom),E}),FU={register:(t,a)=>{const p=Xr("autocompleter"),E=q(!1),z=q(!1),Y=Pl(Ws.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:p}},components:[],fireDismissalEventInstead:{},inlineBehaviours:gr([jo("dismissAutocompleter",[Xn(Tm(),()=>je()),Xn(e1(),(Dn,hn)=>{yi(hn.event.target,"id").each(rn=>Lr(zt.fromDom(t.getBody()),"aria-activedescendant",rn))})])]),lazySink:a.getSink})),re=()=>Ws.isOpen(Y),xe=z.get,Ee=()=>{if(re()){Ws.hide(Y),t.dom.remove(p,!1);const Dn=zt.fromDom(t.getBody());yi(Dn,"aria-owns").filter(hn=>hn===p).each(()=>{Xa(Dn,"aria-owns"),Xa(Dn,"aria-activedescendant")})}},Be=()=>Ws.getContent(Y).bind(Dn=>de(Dn.components(),0)),je=()=>t.execCommand("mceAutocompleterClose"),et=Dn=>{const hn=We(Dn,rn=>P.from(rn.columns)).getOr(1);return ie(Dn,rn=>{const kn=rn.items;return PU(kn,rn.matchText,(Vn,hr)=>{const Yn=t.selection.getRng();NU(t.dom,Yn).each(br=>{const Mr={hide:()=>je(),reload:ea=>{Ee(),t.execCommand("mceAutocompleterReload",!1,{fetchOptions:ea})}};E.set(!0),rn.onAction(Mr,br,Vn,hr),E.set(!1)})},hn,Yh.BUBBLE_TO_SANDBOX,a,rn.highlightOn)})},st=(Dn,hn)=>{Zz(zt.fromDom(t.getBody())).each(rn=>{const kn=We(Dn,Vn=>P.from(Vn.columns)).getOr(1);Ws.showMenuAt(Y,{anchor:{type:"node",root:zt.fromDom(t.getBody()),node:P.from(rn)}},IU(Gk("autocompleter-value",!0,hn,kn,{menuType:"normal"}),kn,nS.ContentFocus,"normal"))}),Be().each(Na.highlightFirst)},mt=Dn=>{const hn=et(Dn);hn.length>0?(st(Dn,hn),Lr(zt.fromDom(t.getBody()),"aria-owns",p),t.inline||Mt()):Ee()},Mt=()=>{t.dom.get(p)&&t.dom.remove(p,!1);const Dn=t.getDoc().documentElement,hn=t.selection.getNode(),rn=UE(Y.element);Mi(rn,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${hn.offsetTop}px`,left:`${hn.offsetLeft}px`}),t.dom.add(Dn,rn.dom),mi(rn,'[role="menu"]').each(kn=>{Bo(kn,"position"),Bo(kn,"max-height")})};t.on("AutocompleterStart",({lookupData:Dn})=>{z.set(!0),E.set(!1),mt(Dn)}),t.on("AutocompleterUpdate",({lookupData:Dn})=>mt(Dn)),t.on("AutocompleterEnd",()=>{Ee(),z.set(!1),E.set(!1)});const Xt={cancelIfNecessary:je,isMenuOpen:re,isActive:xe,isProcessingAction:E.get,getMenu:Be};jz.setup(Xt,t)}},vO=["visible","hidden","clip"],yO=t=>Et(t).length>0&&!he(vO,t),MR=t=>{if(De(t)){const a=Ms(t,"overflow-x"),p=Ms(t,"overflow-y");return yO(a)||yO(p)}else return!1},BU=t=>{const a=MT(t,MR),p=a.length===0?Zl(t).map(Ys).map(E=>MT(E,MR)).getOr([]):a;return Me(p).map(E=>({element:E,others:p.slice(1)}))},Xv=(t,a)=>Km(t)?BU(a):P.none(),Fx=t=>{const a=[...ne(t.others,Js),bl()];return eb(Js(t.element),a)},rS=(t,a,p)=>Qf(t,a,p).isSome(),bO=(t,a)=>{let p=null;return{cancel:()=>{p!==null&&(clearTimeout(p),p=null)},schedule:(...Y)=>{p=setTimeout(()=>{t.apply(null,Y),p=null},a)}}},xO=5,HU=400,wO=t=>{const a=t.raw;return a.touches===void 0||a.touches.length!==1?P.none():P.some(a.touches[0])},zU=(t,a)=>{const p=Math.abs(t.clientX-a.x),E=Math.abs(t.clientY-a.y);return p>xO||E>xO},VU=t=>{const a=ia(),p=q(!1),E=bO(Be=>{t.triggerEvent(Yf(),Be),p.set(!0)},HU),z=Be=>(wO(Be).each(je=>{E.cancel();const et={x:je.clientX,y:je.clientY,target:Be.target};E.schedule(Be),p.set(!1),a.set(et)}),P.none()),Y=Be=>(E.cancel(),wO(Be).each(je=>{a.on(et=>{zU(je,et)&&a.clear()})}),P.none()),re=Be=>{E.cancel();const je=et=>Qt(et.target,Be.target);return a.get().filter(je).map(et=>p.get()?(Be.prevent(),!1):t.triggerEvent(nc(),Be))},xe=bt([{key:eo(),value:z},{key:lo(),value:Y},{key:Ko(),value:re}]);return{fireIfReady:(Be,je)=>Ft(xe,je).bind(et=>et(Be))}},UU=t=>t.raw.which===C_[0]&&!he(["input","textarea"],vo(t.target))&&!rS(t.target,'[contenteditable="true"]'),WU=(t,a)=>{const p={stopBackspace:!0,...a},E=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],z=VU(p),Y=ne(E.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),mt=>sc(t,mt,Mt=>{z.fireIfReady(Mt,mt).each(Dn=>{Dn&&Mt.kill()}),p.triggerEvent(mt,Mt)&&Mt.kill()})),re=ia(),xe=sc(t,"paste",mt=>{z.fireIfReady(mt,"paste").each(Xt=>{Xt&&mt.kill()}),p.triggerEvent("paste",mt)&&mt.kill(),re.set(setTimeout(()=>{p.triggerEvent(wi(),mt)},0))}),Ee=sc(t,"keydown",mt=>{p.triggerEvent("keydown",mt)?mt.kill():p.stopBackspace&&UU(mt)&&mt.prevent()}),Be=sc(t,"focusin",mt=>{p.triggerEvent("focusin",mt)&&mt.kill()}),je=ia(),et=sc(t,"focusout",mt=>{p.triggerEvent("focusout",mt)&&mt.kill(),je.set(setTimeout(()=>{p.triggerEvent(Sl(),mt)},0))});return{unbind:()=>{fe(Y,mt=>{mt.unbind()}),Ee.unbind(),Be.unbind(),et.unbind(),xe.unbind(),re.on(clearTimeout),je.on(clearTimeout)}}},CO=(t,a)=>{const p=Ft(t,"target").getOr(a);return q(p)},GU=(t,a)=>{const p=q(!1),E=q(!1);return{stop:()=>{p.set(!0)},cut:()=>{E.set(!0)},isStopped:p.get,isCut:E.get,event:t,setSource:a.set,getSource:a.get}},SO=t=>{const a=q(!1);return{stop:()=>{a.set(!0)},cut:C,isStopped:a.get,isCut:H,event:t,setSource:R("Cannot set source of a broadcasted event"),getSource:R("Cannot get source of a broadcasted event")}},oS=Ae.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),TO=(t,a,p,E,z,Y)=>{const re=t(a,E),xe=GU(p,z);return re.fold(()=>(Y.logEventNoHandlers(a,E),oS.complete()),Ee=>{const Be=Ee.descHandler;return Jp(Be)(xe),xe.isStopped()?(Y.logEventStopped(a,Ee.element,Be.purpose),oS.stopped()):xe.isCut()?(Y.logEventCut(a,Ee.element,Be.purpose),oS.complete()):Bn(Ee.element).fold(()=>(Y.logNoParent(a,Ee.element,Be.purpose),oS.complete()),et=>(Y.logEventResponse(a,Ee.element,Be.purpose),oS.resume(et)))})},kO=(t,a,p,E,z,Y)=>TO(t,a,p,E,z,Y).fold(j,re=>kO(t,a,p,re,z,Y),H),ZU=(t,a,p,E,z)=>{const Y=CO(p,E);return TO(t,a,p,E,Y,z)},jU=(t,a,p)=>{const E=SO(a);return fe(t,z=>{const Y=z.descHandler;Jp(Y)(E)}),E.isStopped()},ER=(t,a,p,E)=>AO(t,a,p,p.target,E),AO=(t,a,p,E,z)=>{const Y=CO(p,E);return kO(t,a,p,E,Y,z)},YU=(t,a)=>({element:t,descHandler:a}),KU=(t,a)=>({id:t,descHandler:a}),MO=()=>{const t={},a=(re,xe,Ee)=>{Ge(Ee,(Be,je)=>{const et=t[je]!==void 0?t[je]:{};et[xe]=ew(Be,re),t[je]=et})},p=(re,xe)=>o1(xe).bind(Ee=>Ft(re,Ee)).map(Ee=>YU(xe,Ee));return{registerId:a,unregisterId:re=>{Ge(t,(xe,Ee)=>{pn(xe,re)&&delete xe[re]})},filterByType:re=>Ft(t,re).map(xe=>Gt(xe,(Ee,Be)=>KU(Be,Ee))).getOr([]),find:(re,xe,Ee)=>Ft(t,xe).bind(Be=>en(Ee,je=>p(Be,je),re))}},EO=()=>{const t=MO(),a={},p=Be=>{const je=Be.element;return o1(je).getOrThunk(()=>Vg("uid-",Be.element))},E=(Be,je)=>{const et=a[je];if(et===Be)Y(Be);else throw new Error('The tagId "'+je+'" is already used by: '+Rd(et.element)+` -Cannot use it for: `+Rd(Be.element)+` -The conflicting element is`+(Wa(et.element)?" ":" not ")+"already in the DOM")},z=Be=>{const je=p(Be);_n(a,je)&&E(Be,je);const et=[Be];t.registerId(et,je,Be.events),a[je]=Be},Y=Be=>{o1(Be.element).each(je=>{delete a[je],t.unregisterId(je)})};return{find:(Be,je,et)=>t.find(Be,je,et),filter:Be=>t.filterByType(Be),register:z,unregister:Y,getById:Be=>Ft(a,Be)}},Kh=ou({name:"Container",factory:t=>{const{attributes:a,...p}=t.dom;return{uid:t.uid,dom:{tag:"div",attributes:{role:"presentation",...a},...p},components:t.components,behaviours:Bh(t.containerBehaviours),events:t.events,domModification:t.domModification,eventOrder:t.eventOrder}},configFields:[En("components",[]),Fi("containerBehaviours",[]),En("events",{}),En("domModification",{}),En("eventOrder",{})]}),gA=t=>{const a=hn=>Bn(t.element).fold(j,rn=>Qt(hn,rn)),p=EO(),E=(hn,rn)=>p.find(a,hn,rn),z=WU(t.element,{triggerEvent:(hn,rn)=>Ab(hn,rn.target,kn=>ER(E,hn,rn,kn))}),Y={debugInfo:O("real"),triggerEvent:(hn,rn,kn)=>{Ab(hn,rn,Vn=>AO(E,hn,kn,rn,Vn))},triggerFocus:(hn,rn)=>{o1(hn).fold(()=>{Ic(hn)},kn=>{Ab(qu(),hn,Vn=>(ZU(E,qu(),{originator:rn,kill:C,prevent:C,target:hn},hn,Vn),!1))})},triggerEscape:(hn,rn)=>{Y.triggerEvent("keydown",hn.element,rn.event)},getByUid:hn=>Xt(hn),getByDom:hn=>Dn(hn),build:Pl,buildOrPatch:Sb,addToGui:hn=>{Ee(hn)},removeFromGui:hn=>{Be(hn)},addToWorld:hn=>{re(hn)},removeFromWorld:hn=>{xe(hn)},broadcast:hn=>{st(hn)},broadcastOn:(hn,rn)=>{mt(hn,rn)},broadcastEvent:(hn,rn)=>{Mt(hn,rn)},isConnected:j},re=hn=>{hn.connect(Y),kt(hn.element)||(p.register(hn),fe(hn.components(),re),Y.triggerEvent(Kf(),hn.element,{target:hn.element}))},xe=hn=>{kt(hn.element)||(fe(hn.components(),xe),p.unregister(hn)),hn.disconnect()},Ee=hn=>{zm(t,hn)},Be=hn=>{Bd(hn)},je=()=>{z.unbind(),Xl(t.element)},et=hn=>{const rn=p.filter(Tl());fe(rn,kn=>{const Vn=kn.descHandler;Jp(Vn)(hn)})},st=hn=>{et({universal:!0,data:hn})},mt=(hn,rn)=>{et({universal:!1,channels:hn,data:rn})},Mt=(hn,rn)=>{const kn=p.filter(hn);return jU(kn,rn)},Xt=hn=>p.getById(hn).fold(()=>Wo.error(new Error('Could not find component with uid: "'+hn+'" in system.')),Wo.value),Dn=hn=>{const rn=o1(hn).getOr("not found");return Xt(rn)};return re(t),{root:t,element:t.element,destroy:je,add:Ee,remove:Be,getByUid:Xt,getByDom:Dn,addToWorld:re,removeFromWorld:xe,broadcast:st,broadcastOn:mt,broadcastEvent:Mt}},XU=(t,a)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:ne(t.items,a.interpreter)}),JU=O([En("prefix","form-field"),Fi("fieldBehaviours",[da,Fr])]),QU=O([Fc({schema:[qn("dom")],name:"label"}),Fc({factory:{sketch:t=>({uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}})},schema:[qn("text")],name:"aria-descriptor"}),Fl({factory:{sketch:t=>{const a=rt(t,["factory"]);return t.factory.sketch(a)}},schema:[qn("factory")],name:"field"})]),qU=(t,a,p,E)=>{const z=Si(t.fieldBehaviours,[da.config({find:xe=>gs(xe,t,"field")}),Fr.config({store:{mode:"manual",getValue:xe=>da.getCurrent(xe).bind(Fr.getValue),setValue:(xe,Ee)=>{da.getCurrent(xe).each(Be=>{Fr.setValue(Be,Ee)})}}})]),Y=bs([ms((xe,Ee)=>{const Be=JT(xe,t,["label","field","aria-descriptor"]);Be.field().each(je=>{const et=Xr(t.prefix);Be.label().each(st=>{Lr(st.element,"for",et),Lr(je.element,"id",et)}),Be["aria-descriptor"]().each(st=>{const mt=Xr(t.prefix);Lr(st.element,"id",mt),Lr(je.element,"aria-describedby",mt)})})})]),re={getField:xe=>gs(xe,t,"field"),getLabel:xe=>gs(xe,t,"label")};return{uid:t.uid,dom:t.dom,components:a,behaviours:z,events:Y,apis:re}},qa=Bl({name:"FormField",configFields:JU(),partFields:QU(),factory:qU,apis:{getField:(t,a)=>t.getField(a),getLabel:(t,a)=>t.getLabel(a)}});var pA=Object.freeze({__proto__:null,exhibit:(t,a)=>qc({attributes:bt([{key:a.tabAttr,value:"true"}])})}),eW=[En("tabAttr","data-alloy-tabstop")];const Ns=Ki({fields:eW,name:"tabstopping",active:pA});var tW=tinymce.util.Tools.resolve("tinymce.html.Entities");const aS=(t,a,p,E)=>{const z=rW(t,a,p,E);return qa.sketch(z)},nW=(t,a)=>aS(t,a,[],[]),rW=(t,a,p,E)=>({dom:sS(p),components:t.toArray().concat([a]),fieldBehaviours:gr(E)}),Mee=()=>sS([]),sS=t=>({tag:"div",classes:["tox-form__group"].concat(t)}),fd=(t,a)=>qa.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[ai(a.translate(t))]}),$u=Xr("form-component-change"),Bx=Xr("form-close"),Jv=Xr("form-cancel"),rg=Xr("form-action"),iS=Xr("form-submit"),_R=Xr("form-block"),RR=Xr("form-unblock"),_O=Xr("form-tabchange"),RO=Xr("form-resize"),oW=(t,a,p)=>{const E=t.label.map(mt=>fd(mt,a)),z=a.icons(),Y=mt=>{var Mt;return(Mt=z[mt])!==null&&Mt!==void 0?Mt:mt},re=mt=>(Mt,Xt)=>{Qf(Xt.event.target,"[data-collection-item-value]").each(Dn=>{mt(Mt,Xt,Dn,Ka(Dn,"data-collection-item-value"))})},xe=(mt,Mt)=>{const Xt=ne(Mt,rn=>{const kn=_f.translate(rn.text),Vn=t.columns===1?`
    ${kn}
    `:"",hr=`
    ${Y(rn.icon)}
    `,Yn={_:" "," - ":" ","-":" "},br=kn.replace(/\_| \- |\-/g,ea=>Yn[ea]);return`
    ${hr}${Vn}
    `}),Dn=t.columns!=="auto"&&t.columns>1?ce(Xt,t.columns):[Xt],hn=ne(Dn,rn=>`
    ${rn.join("")}
    `);zg(mt.element,hn.join(""))},Ee=re((mt,Mt,Xt,Dn)=>{Mt.stop(),a.isDisabled()||go(mt,rg,{name:t.name,value:Dn})}),Be=[Xn($r(),re((mt,Mt,Xt)=>{Ic(Xt)})),Xn(xi(),Ee),Xn(nc(),Ee),Xn(_o(),re((mt,Mt,Xt)=>{mi(mt.element,"."+VC).each(Dn=>{Is(Dn,VC)}),hi(Xt,VC)})),Xn(sa(),re(mt=>{mi(mt.element,"."+VC).each(Mt=>{Is(Mt,VC)})})),xf(re((mt,Mt,Xt,Dn)=>{go(mt,rg,{name:t.name,value:Dn})}))],je=(mt,Mt)=>ne(Xi(mt.element,".tox-collection__item"),Mt),et=qa.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(t.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:D},behaviours:gr([Co.config({disabled:a.isDisabled,onDisabled:mt=>{je(mt,Mt=>{hi(Mt,"tox-collection__item--state-disabled"),Lr(Mt,"aria-disabled",!0)})},onEnabled:mt=>{je(mt,Mt=>{Is(Mt,"tox-collection__item--state-disabled"),Xa(Mt,"aria-disabled")})}}),Qi(),Ho.config({}),Fr.config({store:{mode:"memory",initialValue:p.getOr([])},onSetValue:(mt,Mt)=>{xe(mt,Mt),t.columns==="auto"&&V5(mt,5,"tox-collection__item").each(({numRows:Xt,numColumns:Dn})=>{po.setGridSize(mt,Xt,Dn)}),pa(mt,RO)}}),Ns.config({}),po.config(nU(t.columns,"normal")),jo("collection-events",Be)]),eventOrder:{[Ci()]:["disabling","alloy.base.behaviour","collection-events"]}});return aS(E,et,["tox-form__group--collection"],[])},aW=["input","textarea"],LO=t=>{const a=vo(t);return he(aW,a)},DO=(t,a)=>{const p=a.getRoot(t).getOr(t.element);Is(p,a.invalidClass),a.notify.each(E=>{LO(t.element)&&Lr(t.element,"aria-invalid",!1),E.getContainer(t).each(z=>{zg(z,E.validHtml)}),E.onValid(t)})},LR=(t,a,p,E)=>{const z=a.getRoot(t).getOr(t.element);hi(z,a.invalidClass),a.notify.each(Y=>{LO(t.element)&&Lr(t.element,"aria-invalid",!0),Y.getContainer(t).each(re=>{zg(re,E)}),Y.onInvalid(t,E)})},uy=(t,a,p)=>a.validator.fold(()=>cc.pure(Wo.value(!0)),E=>E.validate(t)),gp=(t,a,p)=>(a.notify.each(E=>{E.onValidate(t)}),uy(t,a).map(E=>t.getSystem().isConnected()?E.fold(z=>(LR(t,a,p,z),Wo.error(z)),z=>(DO(t,a),Wo.value(z))):Wo.error("No longer in system")));var $O=Object.freeze({__proto__:null,markValid:DO,markInvalid:LR,query:uy,run:gp,isInvalid:(t,a)=>{const p=a.getRoot(t).getOr(t.element);return Ni(p,a.invalidClass)}}),vA=Object.freeze({__proto__:null,events:(t,a)=>t.validator.map(p=>bs([Xn(p.onEvent,E=>{gp(E,t,a).get(D)})].concat(p.validateOnLoad?[ms(E=>{gp(E,t,a).get(C)})]:[]))).getOr({})}),iW=[qn("invalidClass"),En("getRoot",P.none),Ql("notify",[En("aria","alert"),En("getContainer",P.none),En("validHtml",""),Sa("onValid"),Sa("onInvalid"),Sa("onValidate")]),Ql("validator",[qn("validate"),En("onEvent","input"),En("validateOnLoad",!0)])];const Df=Ki({fields:iW,name:"invalidating",active:vA,apis:$O,extra:{validation:t=>a=>{const p=Fr.getValue(a);return cc.pure(t(p))}}});var lW=Object.freeze({__proto__:null,events:()=>bs([U2(Cl(),j)]),exhibit:()=>qc({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})});const lS=Ki({fields:[],name:"unselecting",active:lW}),cW=(t,a)=>ud.sketch({dom:t.dom,components:t.components,toggleClass:"mce-active",dropdownBehaviours:gr([Bi.button(a.providers.isDisabled),Qi(),lS.config({}),Ns.config({})]),layouts:t.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:a.getSink,fetch:p=>cc.nu(E=>t.fetch(E)).map(E=>P.from(mA(hs(pR(Xr("menu-value"),E,z=>{t.onItemAction(p,z)},t.columns,t.presets,Yh.CLOSE_ON_EXECUTE,H,a.providers),{movement:uA(t.columns,t.presets)})))),parts:{menu:Mx(!1,1,t.presets)}}),OO=Xr("color-input-change"),PO=Xr("color-swatch-change"),cS=Xr("color-picker-cancel"),uW=(t,a,p,E)=>{const z=qa.parts.field({factory:sy,inputClasses:["tox-textfield"],data:E,onSetValue:Be=>Df.run(Be).get(C),inputBehaviours:gr([Co.config({disabled:a.providers.isDisabled}),Qi(),Ns.config({}),Df.config({invalidClass:"tox-textbox-field-invalid",getRoot:Be=>fr(Be.element),notify:{onValid:Be=>{const je=Fr.getValue(Be);go(Be,OO,{color:je})}},validator:{validateOnLoad:!1,validate:Be=>{const je=Fr.getValue(Be);if(je.length===0)return cc.pure(Wo.value(!0));{const et=zt.fromTag("span");To(et,"background-color",je);const st=Rs(et,"background-color").fold(()=>Wo.error("blah"),mt=>Wo.value(je));return cc.pure(st)}}}})]),selectOnFocus:!1}),Y=t.label.map(Be=>fd(Be,a.providers)),re=(Be,je)=>{go(Be,PO,{value:je})},xe=(Be,je)=>{Ee.getOpt(Be).each(et=>{je==="custom"?p.colorPicker(st=>{st.fold(()=>pa(et,cS),mt=>{re(et,mt),sR(t.storageKey,mt)})},"#ffffff"):je==="remove"?re(et,""):re(et,je)})},Ee=Qa(cW({dom:{tag:"span",attributes:{"aria-label":a.providers.translate("Color swatch")}},layouts:{onRtl:()=>[Ml,ji,Yi],onLtr:()=>[ji,Ml,Yi]},components:[],fetch:tO(p.getColors(t.storageKey),t.storageKey,p.hasCustomColors()),columns:p.getColorCols(t.storageKey),presets:"color",onItemAction:xe},a));return qa.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Y.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[z,Ee.asSpec()]}]),fieldBehaviours:gr([jo("form-field-events",[Xn(OO,(Be,je)=>{Ee.getOpt(Be).each(et=>{To(et.element,"background-color",je.event.color)}),go(Be,$u,{name:t.name})}),Xn(PO,(Be,je)=>{qa.getField(Be).each(et=>{Fr.setValue(et,je.event.value),da.getCurrent(Be).each(ko.focus)})}),Xn(cS,(Be,je)=>{qa.getField(Be).each(et=>{da.getCurrent(Be).each(ko.focus)})})])])})},DR=Fc({schema:[qn("dom")],name:"label"}),Qv=t=>Fc({name:""+t+"-edge",overrides:a=>a.model.manager.edgeActions[t].fold(()=>({}),E=>({events:bs([cb(eo(),(z,Y,re)=>E(z,re),[a]),cb(fo(),(z,Y,re)=>E(z,re),[a]),cb(Ha(),(z,Y,re)=>{re.mouseIsDown.get()&&E(z,re)},[a])])}))}),fW=Qv("top-left"),dW=Qv("top"),IO=Qv("top-right"),hW=Qv("right"),mW=Qv("bottom-right"),gW=Qv("bottom"),NO=Qv("bottom-left"),pW=Qv("left"),vW=Fl({name:"thumb",defaults:O({dom:{styles:{position:"absolute"}}}),overrides:t=>({events:bs([Gp(eo(),t,"spectrum"),Gp(lo(),t,"spectrum"),Gp(Ko(),t,"spectrum"),Gp(fo(),t,"spectrum"),Gp(Ha(),t,"spectrum"),Gp(is(),t,"spectrum")])})}),yW=Fl({schema:[zs("mouseIsDown",()=>q(!1))],name:"spectrum",overrides:t=>{const p=t.model.manager,E=(z,Y)=>p.getValueFromEvent(Y).map(re=>p.setValueFrom(z,t,re));return{behaviours:gr([po.config({mode:"special",onLeft:z=>p.onLeft(z,t),onRight:z=>p.onRight(z,t),onUp:z=>p.onUp(z,t),onDown:z=>p.onDown(z,t)}),ko.config({})]),events:bs([Xn(eo(),E),Xn(lo(),E),Xn(fo(),E),Xn(Ha(),(z,Y)=>{t.mouseIsDown.get()&&E(z,Y)})])}}});var bW=[DR,pW,hW,dW,gW,fW,IO,NO,mW,vW,yW];const Hx=O("slider.change.value"),FO=t=>t.type.indexOf("touch")!==-1,$R=t=>{const a=t.event.raw;if(FO(a)){const p=a;return p.touches!==void 0&&p.touches.length===1?P.some(p.touches[0]).map(E=>Ma(E.clientX,E.clientY)):P.none()}else{const p=a;return p.clientX!==void 0?P.some(p).map(E=>Ma(E.clientX,E.clientY)):P.none()}},xW="top",wW="right",CW="bottom",SW="left",qv=t=>t.model.minX,Kd=t=>t.model.minY,bA=t=>t.model.minX-1,xA=t=>t.model.minY-1,fy=t=>t.model.maxX,og=t=>t.model.maxY,Ou=t=>t.model.maxX+1,zx=t=>t.model.maxY+1,OR=(t,a,p)=>a(t)-p(t),PR=t=>OR(t,fy,qv),IR=t=>OR(t,og,Kd),BO=t=>PR(t)/2,HO=t=>IR(t)/2,dy=t=>t.stepSize,NR=t=>t.snapToGrid,zO=t=>t.snapStart,VO=t=>t.rounded,uS=(t,a)=>t[a+"-edge"]!==void 0,UO=t=>uS(t,SW),FR=t=>uS(t,wW),BR=t=>uS(t,xW),HR=t=>uS(t,CW),pp=t=>t.model.value.get(),e0=(t,a)=>({x:t,y:a}),Xd=(t,a)=>{go(t,Hx(),{value:a})},TW=(t,a)=>{Xd(t,e0(bA(a),xA(a)))},kW=(t,a)=>{Xd(t,xA(a))},AW=(t,a)=>{Xd(t,e0(BO(a),xA(a)))},zR=(t,a)=>{Xd(t,e0(Ou(a),xA(a)))},MW=(t,a)=>{Xd(t,Ou(a))},WO=(t,a)=>{Xd(t,e0(Ou(a),HO(a)))},EW=(t,a)=>{Xd(t,e0(Ou(a),zx(a)))},_W=(t,a)=>{Xd(t,zx(a))},RW=(t,a)=>{Xd(t,e0(BO(a),zx(a)))},LW=(t,a)=>{Xd(t,e0(bA(a),zx(a)))},DW=(t,a)=>{Xd(t,bA(a))},$W=(t,a)=>{Xd(t,e0(bA(a),HO(a)))},VR=(t,a,p,E)=>tp?p:t===a?a-1:Math.max(a,t-E),wA=(t,a,p,E)=>t>p?t:tMath.max(a,Math.min(p,t)),OW=(t,a,p,E,z)=>z.fold(()=>{const Y=t-a,re=Math.round(Y/E)*E;return UR(a+re,a-1,p+1)},Y=>{const re=(t-Y)%E,xe=Math.round(re/E),Ee=Math.floor((t-Y)/E),Be=Math.floor((p-Y)/E),je=Math.min(Be,Ee+xe),et=Y+je*E;return Math.max(Y,et)}),PW=(t,a,p)=>Math.min(p,Math.max(t,a))-a,GO=t=>{const{min:a,max:p,range:E,value:z,step:Y,snap:re,snapStart:xe,rounded:Ee,hasMinEdge:Be,hasMaxEdge:je,minBound:et,maxBound:st,screenRange:mt}=t,Mt=Be?a-1:a,Xt=je?p+1:p;if(zst)return Xt;{const Dn=PW(z,et,st),hn=UR(Dn/mt*E+a,Mt,Xt);return re&&hn>=a&&hn<=p?OW(hn,a,p,Y,xe):Ee?Math.round(hn):hn}},ZO=t=>{const{min:a,max:p,range:E,value:z,hasMinEdge:Y,hasMaxEdge:re,maxBound:xe,maxOffset:Ee,centerMinEdge:Be,centerMaxEdge:je}=t;return zp?re?xe:je:(z-a)/E*Ee},WR="top",jO="right",GR="bottom",CA="left",YO="width",ZR="height",ag=t=>t.element.dom.getBoundingClientRect(),dd=(t,a)=>t[a],SA=t=>{const a=ag(t);return dd(a,CA)},KO=t=>{const a=ag(t);return dd(a,jO)},TA=t=>{const a=ag(t);return dd(a,WR)},XO=t=>{const a=ag(t);return dd(a,GR)},kA=t=>{const a=ag(t);return dd(a,YO)},sg=t=>{const a=ag(t);return dd(a,ZR)},JO=(t,a,p)=>(t+a)/2-p,Vx=(t,a)=>{const p=ag(t),E=ag(a),z=dd(p,CA),Y=dd(p,jO),re=dd(E,CA);return JO(z,Y,re)},QO=(t,a)=>{const p=ag(t),E=ag(a),z=dd(p,WR),Y=dd(p,GR),re=dd(E,WR);return JO(z,Y,re)},Ux=(t,a)=>{go(t,Hx(),{value:a})},jR=(t,a,p)=>{const E={min:qv(a),max:fy(a),range:PR(a),value:p,step:dy(a),snap:NR(a),snapStart:zO(a),rounded:VO(a),hasMinEdge:UO(a),hasMaxEdge:FR(a),minBound:SA(t),maxBound:KO(t),screenRange:kA(t)};return GO(E)},IW=(t,a,p)=>{const E=jR(t,a,p);return Ux(t,E),E},NW=(t,a)=>{const p=qv(a);Ux(t,p)},qO=(t,a)=>{const p=fy(a);Ux(t,p)},FW=(t,a,p)=>{const z=(t>0?wA:VR)(pp(p),qv(p),fy(p),dy(p));return Ux(a,z),P.some(z)},AA=t=>(a,p)=>FW(t,a,p).map(j),YR=t=>$R(t).map(p=>p.left),KR=(t,a,p,E,z)=>{const re=kA(t),xe=E.bind(je=>P.some(Vx(je,t))).getOr(0),Ee=z.bind(je=>P.some(Vx(je,t))).getOr(re),Be={min:qv(a),max:fy(a),range:PR(a),value:p,hasMinEdge:UO(a),hasMaxEdge:FR(a),minBound:SA(t),minOffset:0,maxBound:KO(t),maxOffset:re,centerMinEdge:xe,centerMaxEdge:Ee};return ZO(Be)},XR=(t,a,p,E,z,Y)=>{const re=KR(a,Y,p,E,z);return SA(a)-SA(t)+re},$f=(t,a,p,E)=>{const z=pp(p),Y=XR(t,E.getSpectrum(t),z,E.getLeftEdge(t),E.getRightEdge(t),p),re=ci(a.element)/2;To(a.element,"left",Y-re+"px")},BW=AA(-1),HW=AA(1),eP=P.none,tP=P.none,zW={"top-left":P.none(),top:P.none(),"top-right":P.none(),right:P.some(MW),"bottom-right":P.none(),bottom:P.none(),"bottom-left":P.none(),left:P.some(DW)};var VW=Object.freeze({__proto__:null,setValueFrom:IW,setToMin:NW,setToMax:qO,findValueOfOffset:jR,getValueFromEvent:YR,findPositionOfValue:XR,setPositionFromValue:$f,onLeft:BW,onRight:HW,onUp:eP,onDown:tP,edgeActions:zW});const MA=(t,a)=>{go(t,Hx(),{value:a})},JR=(t,a,p)=>{const E={min:Kd(a),max:og(a),range:IR(a),value:p,step:dy(a),snap:NR(a),snapStart:zO(a),rounded:VO(a),hasMinEdge:BR(a),hasMaxEdge:HR(a),minBound:TA(t),maxBound:XO(t),screenRange:sg(t)};return GO(E)},UW=(t,a,p)=>{const E=JR(t,a,p);return MA(t,E),E},WW=(t,a)=>{const p=Kd(a);MA(t,p)},GW=(t,a)=>{const p=og(a);MA(t,p)},nP=(t,a,p)=>{const z=(t>0?wA:VR)(pp(p),Kd(p),og(p),dy(p));return MA(a,z),P.some(z)},rP=t=>(a,p)=>nP(t,a,p).map(j),ZW=t=>$R(t).map(p=>p.top),jW=(t,a,p,E,z)=>{const re=sg(t),xe=E.bind(je=>P.some(QO(je,t))).getOr(0),Ee=z.bind(je=>P.some(QO(je,t))).getOr(re),Be={min:Kd(a),max:og(a),range:IR(a),value:p,hasMinEdge:BR(a),hasMaxEdge:HR(a),minBound:TA(t),minOffset:0,maxBound:XO(t),maxOffset:re,centerMinEdge:xe,centerMaxEdge:Ee};return ZO(Be)},EA=(t,a,p,E,z,Y)=>{const re=jW(a,Y,p,E,z);return TA(a)-TA(t)+re},QR=(t,a,p,E)=>{const z=pp(p),Y=EA(t,E.getSpectrum(t),z,E.getTopEdge(t),E.getBottomEdge(t),p),re=Ls(a.element)/2;To(a.element,"top",Y-re+"px")},YW=P.none,qR=P.none,Wx=rP(-1),oP=rP(1),aP={"top-left":P.none(),top:P.some(kW),"top-right":P.none(),right:P.none(),"bottom-right":P.none(),bottom:P.some(_W),"bottom-left":P.none(),left:P.none()};var sP=Object.freeze({__proto__:null,setValueFrom:UW,setToMin:WW,setToMax:GW,findValueOfOffset:JR,getValueFromEvent:ZW,findPositionOfValue:EA,setPositionFromValue:QR,onLeft:YW,onRight:qR,onUp:Wx,onDown:oP,edgeActions:aP});const _A=(t,a)=>{go(t,Hx(),{value:a})},RA=(t,a)=>({x:t,y:a}),LA=(t,a,p)=>{const E=jR(t,a,p.left),z=JR(t,a,p.top),Y=RA(E,z);return _A(t,Y),Y},KW=(t,a,p,E)=>{const z=t>0?wA:VR,Y=a?pp(E).x:z(pp(E).x,qv(E),fy(E),dy(E)),re=a?z(pp(E).y,Kd(E),og(E),dy(E)):pp(E).y;return _A(p,RA(Y,re)),P.some(Y)},DA=(t,a)=>(p,E)=>KW(t,a,p,E).map(j),iP=(t,a)=>{const p=qv(a),E=Kd(a);_A(t,RA(p,E))},lP=(t,a)=>{const p=fy(a),E=og(a);_A(t,RA(p,E))},eL=t=>$R(t),cP=(t,a,p,E)=>{const z=pp(p),Y=XR(t,E.getSpectrum(t),z.x,E.getLeftEdge(t),E.getRightEdge(t),p),re=EA(t,E.getSpectrum(t),z.y,E.getTopEdge(t),E.getBottomEdge(t),p),xe=ci(a.element)/2,Ee=Ls(a.element)/2;To(a.element,"left",Y-xe+"px"),To(a.element,"top",re-Ee+"px")},su=DA(-1,!1),uP=DA(1,!1),XW=DA(-1,!0),JW=DA(1,!0),fP={"top-left":P.some(TW),top:P.some(AW),"top-right":P.some(zR),right:P.some(WO),"bottom-right":P.some(EW),bottom:P.some(RW),"bottom-left":P.some(LW),left:P.some($W)};var QW=Object.freeze({__proto__:null,setValueFrom:LA,setToMin:iP,setToMax:lP,getValueFromEvent:eL,setPositionFromValue:cP,onLeft:su,onRight:uP,onUp:XW,onDown:JW,edgeActions:fP});const qW=[En("stepSize",1),En("onChange",C),En("onChoose",C),En("onInit",C),En("onDragStart",C),En("onDragEnd",C),En("snapToGrid",!1),En("rounded",!0),Ia("snapStart"),yc("model",fa("mode",{x:[En("minX",0),En("maxX",100),zs("value",t=>q(t.mode.minX)),qn("getInitialValue"),rs("manager",VW)],y:[En("minY",0),En("maxY",100),zs("value",t=>q(t.mode.minY)),qn("getInitialValue"),rs("manager",sP)],xy:[En("minX",0),En("maxX",100),En("minY",0),En("maxY",100),zs("value",t=>q({x:t.mode.minX,y:t.mode.minY})),qn("getInitialValue"),rs("manager",QW)]})),Fi("sliderBehaviours",[po,Fr]),zs("mouseIsDown",()=>q(!1))],hd=Bl({name:"Slider",configFields:qW,partFields:bW,factory:(t,a,p,E)=>{const z=Vn=>zh(Vn,t,"thumb"),Y=Vn=>zh(Vn,t,"spectrum"),re=Vn=>gs(Vn,t,"left-edge"),xe=Vn=>gs(Vn,t,"right-edge"),Ee=Vn=>gs(Vn,t,"top-edge"),Be=Vn=>gs(Vn,t,"bottom-edge"),je=t.model,et=je.manager,st=(Vn,hr)=>{et.setPositionFromValue(Vn,hr,t,{getLeftEdge:re,getRightEdge:xe,getTopEdge:Ee,getBottomEdge:Be,getSpectrum:Y})},mt=(Vn,hr)=>{je.value.set(hr);const Yn=z(Vn);st(Vn,Yn)},Mt=(Vn,hr)=>{mt(Vn,hr);const Yn=z(Vn);return t.onChange(Vn,Yn,hr),P.some(!0)},Xt=Vn=>{et.setToMin(Vn,t)},Dn=Vn=>{et.setToMax(Vn,t)},hn=Vn=>{const hr=()=>{gs(Vn,t,"thumb").each(br=>{const Mr=je.value.get();t.onChoose(Vn,br,Mr)})},Yn=t.mouseIsDown.get();t.mouseIsDown.set(!1),Yn&&hr()},rn=(Vn,hr)=>{hr.stop(),t.mouseIsDown.set(!0),t.onDragStart(Vn,z(Vn))},kn=(Vn,hr)=>{hr.stop(),t.onDragEnd(Vn,z(Vn)),hn(Vn)};return{uid:t.uid,dom:t.dom,components:a,behaviours:Si(t.sliderBehaviours,[po.config({mode:"special",focusIn:Vn=>gs(Vn,t,"spectrum").map(po.focusIn).map(j)}),Fr.config({store:{mode:"manual",getValue:Vn=>je.value.get(),setValue:mt}}),Pc.config({channels:{[eC()]:{onReceive:hn}}})]),events:bs([Xn(Hx(),(Vn,hr)=>{Mt(Vn,hr.event.value)}),ms((Vn,hr)=>{const Yn=je.getInitialValue();je.value.set(Yn);const br=z(Vn);st(Vn,br);const Mr=Y(Vn);t.onInit(Vn,br,Mr,je.value.get())}),Xn(eo(),rn),Xn(Ko(),kn),Xn(fo(),rn),Xn(is(),kn)]),apis:{resetToMin:Xt,resetToMax:Dn,setValue:mt,refresh:st},domModification:{styles:{position:"relative"}}}},apis:{setValue:(t,a,p)=>{t.setValue(a,p)},resetToMin:(t,a)=>{t.resetToMin(a)},resetToMax:(t,a)=>{t.resetToMax(a)},refresh:(t,a)=>{t.refresh(a)}}}),Jd=Xr("rgb-hex-update"),$A=Xr("slider-update"),tL=Xr("palette-update"),OA=(t,a)=>{const p=hd.parts.spectrum({dom:{tag:"div",classes:[a("hue-slider-spectrum")],attributes:{role:"presentation"}}}),E=hd.parts.thumb({dom:{tag:"div",classes:[a("hue-slider-thumb")],attributes:{role:"presentation"}}});return hd.sketch({dom:{tag:"div",classes:[a("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:O(0)},components:[p,E],sliderBehaviours:gr([ko.config({})]),onChange:(z,Y,re)=>{go(z,$A,{value:re})}})},PA="form",eG=[Fi("formBehaviours",[Fr])],dP=t=>"",tG=t=>{const a=(()=>{const Y=[];return{field:(xe,Ee)=>(Y.push(xe),iC(PA,dP(xe),Ee)),record:O(Y)}})(),p=t(a),E=a.record(),z=ne(E,Y=>Fl({name:Y,pname:dP(Y)}));return mC(PA,eG,z,rG,p)},nG=(t,a)=>t.fold(()=>Wo.error(a),Wo.value),rG=(t,a)=>({uid:t.uid,dom:t.dom,components:a,behaviours:Si(t.formBehaviours,[Fr.config({store:{mode:"manual",getValue:p=>{const E=cC(p,t);return Xe(E,(z,Y)=>z().bind(re=>{const xe=da.getCurrent(re);return nG(xe,new Error(`Cannot find a current component to extract the value from for form part '${Y}': `+Rd(re.element)))}).map(Fr.getValue))},setValue:(p,E)=>{Ge(E,(z,Y)=>{gs(p,t,Y).each(re=>{da.getCurrent(re).each(xe=>{Fr.setValue(xe,z)})})})}}})]),apis:{getField:(p,E)=>gs(p,t,E).bind(da.getCurrent)}}),Gx={getField:Ug((t,a,p)=>t.getField(a,p)),sketch:tG},hP=Xr("valid-input"),nL=Xr("invalid-input"),mP=Xr("validating-input"),Qd="colorcustom.rgb.",IA=(t,a,p,E)=>{const z=(st,mt)=>Df.config({invalidClass:a("invalid"),notify:{onValidate:Mt=>{go(Mt,mP,{type:st})},onValid:Mt=>{go(Mt,hP,{type:st,value:Fr.getValue(Mt)})},onInvalid:Mt=>{go(Mt,nL,{type:st,value:Fr.getValue(Mt)})}},validator:{validate:Mt=>{const Xt=Fr.getValue(Mt),Dn=mt(Xt)?Wo.value(!0):Wo.error(t("aria.input.invalid"));return cc.pure(Dn)},validateOnLoad:!1}}),Y=(st,mt,Mt,Xt,Dn)=>{const hn=t(Qd+"range"),rn=qa.parts.label({dom:{tag:"label",attributes:{"aria-label":Xt}},components:[ai(Mt)]}),kn=qa.parts.field({data:Dn,factory:sy,inputAttributes:{type:"text",...mt==="hex"?{"aria-live":"polite"}:{}},inputClasses:[a("textfield")],inputBehaviours:gr([z(mt,st),Ns.config({})]),onSetValue:br=>{Df.isInvalid(br)&&Df.run(br).get(C)}}),Vn=[rn,kn],hr=mt!=="hex"?[qa.parts["aria-descriptor"]({text:hn})]:[],Yn=Vn.concat(hr);return{dom:{tag:"div",attributes:{role:"presentation"}},components:Yn}},re=(st,mt)=>{const Mt=Nx(mt);return Gx.getField(st,"hex").each(Xt=>{ko.isFocused(Xt)||Fr.setValue(st,{hex:Mt.value})}),Mt},xe=(st,mt)=>{const Mt=mt.red,Xt=mt.green,Dn=mt.blue;Fr.setValue(st,{red:Mt,green:Xt,blue:Dn})},Ee=Qa({dom:{tag:"div",classes:[a("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),Be=(st,mt)=>{Ee.getOpt(st).each(Mt=>{To(Mt.element,"background-color","#"+mt.value)})};return ou({factory:()=>{const st={red:q(P.some(255)),green:q(P.some(255)),blue:q(P.some(255)),hex:q(P.some("ffffff"))},mt=(Mo,ja)=>{const xo=QC(ja);xe(Mo,xo),hn(xo)},Mt=Mo=>st[Mo].get(),Xt=(Mo,ja)=>{st[Mo].set(ja)},Dn=()=>Mt("red").bind(Mo=>Mt("green").bind(ja=>Mt("blue").map(xo=>jv(Mo,ja,xo,1)))),hn=Mo=>{const ja=Mo.red,xo=Mo.green,Ea=Mo.blue;Xt("red",P.some(ja)),Xt("green",P.some(xo)),Xt("blue",P.some(Ea))},rn=(Mo,ja)=>{const xo=ja.event;xo.type!=="hex"?Xt(xo.type,P.none()):E(Mo)},kn=(Mo,ja)=>{p(Mo);const xo=R7(ja);Xt("hex",P.some(xo.value));const Ea=QC(xo);xe(Mo,Ea),hn(Ea),go(Mo,Jd,{hex:xo}),Be(Mo,xo)},Vn=(Mo,ja,xo)=>{const Ea=parseInt(xo,10);Xt(ja,P.some(Ea)),Dn().each(Ar=>{const no=re(Mo,Ar);go(Mo,Jd,{hex:no}),Be(Mo,no)})},hr=Mo=>Mo.type==="hex",Yn=(Mo,ja)=>{const xo=ja.event;hr(xo)?kn(Mo,xo.value):Vn(Mo,xo.type,xo.value)},br=Mo=>({label:t(Qd+Mo+".label"),description:t(Qd+Mo+".description")}),Mr=br("red"),ea=br("green"),Zr=br("blue"),Do=br("hex");return hs(Gx.sketch(Mo=>({dom:{tag:"form",classes:[a("rgb-form")],attributes:{"aria-label":t("aria.color.picker")}},components:[Mo.field("red",qa.sketch(Y(Q5,"red",Mr.label,Mr.description,255))),Mo.field("green",qa.sketch(Y(Q5,"green",ea.label,ea.description,255))),Mo.field("blue",qa.sketch(Y(Q5,"blue",Zr.label,Zr.description,255))),Mo.field("hex",qa.sketch(Y($7,"hex",Do.label,Do.description,"ffffff"))),Ee.asSpec()],formBehaviours:gr([Df.config({invalidClass:a("form-invalid")}),jo("rgb-form-events",[Xn(hP,Yn),Xn(nL,rn),Xn(mP,rn)])])})),{apis:{updateHex:(Mo,ja)=>{Fr.setValue(Mo,{hex:ja.value}),mt(Mo,ja),Be(Mo,ja)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(st,mt,Mt)=>{st.updateHex(mt,Mt)}},extraApis:{}})},oG=(t,a)=>{const p=hd.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[a("sv-palette-spectrum")]}}),E=hd.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[a("sv-palette-thumb")],innerHtml:``}}),z=(Be,je)=>{const{width:et,height:st}=Be,mt=Be.getContext("2d");if(mt===null)return;mt.fillStyle=je,mt.fillRect(0,0,et,st);const Mt=mt.createLinearGradient(0,0,et,0);Mt.addColorStop(0,"rgba(255,255,255,1)"),Mt.addColorStop(1,"rgba(255,255,255,0)"),mt.fillStyle=Mt,mt.fillRect(0,0,et,st);const Xt=mt.createLinearGradient(0,0,0,st);Xt.addColorStop(0,"rgba(0,0,0,0)"),Xt.addColorStop(1,"rgba(0,0,0,1)"),mt.fillStyle=Xt,mt.fillRect(0,0,et,st)},Y=(Be,je)=>{const et=Be.components()[0].element.dom,st=eS(je,100,100),mt=H7(st);z(et,eR(mt))},re=(Be,je)=>{const et=aA(QC(je));hd.setValue(Be,{x:et.saturation,y:100-et.value})};return ou({factory:Be=>{const je=O({x:0,y:0}),et=(Mt,Xt,Dn)=>{go(Mt,tL,{value:Dn})},st=(Mt,Xt,Dn,hn)=>{z(Dn.element.dom,eR(cd))},mt=gr([da.config({find:P.some}),ko.config({})]);return hd.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[a("sv-palette")]},model:{mode:"xy",getInitialValue:je},rounded:!1,components:[p,E],onChange:et,onInit:st,sliderBehaviours:mt})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(Be,je,et)=>{Y(je,et)},setThumb:(Be,je,et)=>{re(je,et)}},extraApis:{}})},aG=(t,a)=>{const p=z=>{const Y=IA(t,a,z.onValidHex,z.onInvalidHex),re=oG(t,a),xe=Yn=>(100-Yn)/100*360,Ee=Yn=>100-Yn/360*100,Be={paletteRgba:q(cd),paletteHue:q(0)},je=Qa(OA(t,a)),et=Qa(re.sketch({})),st=Qa(Y.sketch({})),mt=(Yn,br,Mr)=>{et.getOpt(Yn).each(ea=>{re.setHue(ea,Mr)})},Mt=(Yn,br)=>{st.getOpt(Yn).each(Mr=>{Y.updateHex(Mr,br)})},Xt=(Yn,br,Mr)=>{je.getOpt(Yn).each(ea=>{hd.setValue(ea,Ee(Mr))})},Dn=(Yn,br)=>{et.getOpt(Yn).each(Mr=>{re.setThumb(Mr,br)})},hn=(Yn,br)=>{const Mr=QC(Yn);Be.paletteRgba.set(Mr),Be.paletteHue.set(br)},rn=(Yn,br,Mr,ea)=>{hn(br,Mr),fe(ea,Zr=>{Zr(Yn,br,Mr)})},kn=()=>{const Yn=[Mt];return(br,Mr)=>{const ea=Mr.event.value,Zr=Be.paletteHue.get(),Do=eS(Zr,ea.x,100-ea.y),Mo=Y7(Do);rn(br,Mo,Zr,Yn)}},Vn=()=>{const Yn=[mt,Mt];return(br,Mr)=>{const ea=xe(Mr.event.value),Zr=Be.paletteRgba.get(),Do=aA(Zr),Mo=eS(ea,Do.saturation,Do.value),ja=Y7(Mo);rn(br,ja,ea,Yn)}},hr=()=>{const Yn=[mt,Xt,Dn];return(br,Mr)=>{const ea=Mr.event.hex,Zr=GV(ea);rn(br,ea,Zr.hue,Yn)}};return{uid:z.uid,dom:z.dom,components:[et.asSpec(),je.asSpec(),st.asSpec()],behaviours:gr([jo("colour-picker-events",[Xn(Jd,hr()),Xn(tL,kn()),Xn($A,Vn())]),da.config({find:Yn=>st.getOpt(Yn)}),po.config({mode:"acyclic"})])}};return ou({name:"ColourPicker",configFields:[qn("dom"),En("onValidHex",C),En("onInvalidHex",C)],factory:p})},sf={self:()=>da.config({find:P.some}),memento:t=>da.config({find:t.getOpt}),childAt:t=>da.config({find:a=>qr(a.element,t).bind(p=>a.getSystem().getByDom(p).toOptional())})},fS=io([En("preprocess",D),En("postprocess",D)]),dS=(t,a)=>{const p=ul("RepresentingConfigs.memento processors",fS,a);return Fr.config({store:{mode:"manual",getValue:E=>{const z=t.get(E),Y=Fr.getValue(z);return p.postprocess(Y)},setValue:(E,z)=>{const Y=p.preprocess(z),re=t.get(E);Fr.setValue(re,Y)}}})},t0=(t,a,p)=>Fr.config({store:{mode:"manual",...t.map(E=>({initialValue:E})).getOr({}),getValue:a,setValue:p}}),rL=(t,a,p)=>t0(t,E=>a(E.element),(E,z)=>p(E.element,z)),pP=t=>rL(t,Y2,zg),hS=t=>Fr.config({store:{mode:"memory",initialValue:t}}),lG={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},cG=t=>a=>t.translate(lG[a]),uG=(t,a,p)=>{const E=Ee=>"tox-"+Ee,z=aG(cG(a),E),Y=Ee=>{go(Ee,rg,{name:"hex-valid",value:!0})},re=Ee=>{go(Ee,rg,{name:"hex-valid",value:!1})},xe=Qa(z.sketch({dom:{tag:"div",classes:[E("color-picker-container")],attributes:{role:"presentation"}},onValidHex:Y,onInvalidHex:re}));return{dom:{tag:"div"},components:[xe.asSpec()],behaviours:gr([t0(p,Ee=>{const Be=xe.get(Ee);return da.getCurrent(Be).bind(st=>Fr.getValue(st).hex).map(st=>"#"+$t(st,"#")).getOr("")},(Ee,Be)=>{const je=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,et=P.from(je.exec(Be)).bind(Mt=>de(Mt,1)),st=xe.get(Ee);da.getCurrent(st).fold(()=>{console.log("Can not find form")},Mt=>{Fr.setValue(Mt,{hex:et.getOr("")}),Gx.getField(Mt,"hex").each(Xt=>{pa(Xt,qs())})})}),sf.self()])}};var fG=tinymce.util.Tools.resolve("tinymce.Resource");const dG=t=>pn(t,"init"),vP=t=>{const a=ia(),p=Qa({dom:{tag:t.tag}}),E=ia();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:gr([jo("custom-editor-events",[ms(z=>{p.getOpt(z).each(Y=>{(dG(t)?t.init(Y.element.dom):fG.load(t.scriptId,t.scriptUrl).then(re=>re(Y.element.dom,t.settings))).then(re=>{E.on(xe=>{re.setValue(xe)}),E.clear(),a.set(re)})})})]),t0(P.none(),()=>a.get().fold(()=>E.get().getOr(""),z=>z.getValue()),(z,Y)=>{a.get().fold(()=>E.set(Y),re=>re.setValue(Y))}),sf.self()]),components:[p.asSpec()]}};var ig=tinymce.util.Tools.resolve("tinymce.util.Tools");const hG=(t,a)=>{const p=ig.explode(a.getOption("images_file_types")),E=z=>ge(p,Y=>pt(z.name.toLowerCase(),`.${Y.toLowerCase()}`));return Ce(ze(t),E)},yP=(t,a,p)=>{const E=(st,mt)=>{mt.stop()},z=st=>(mt,Mt)=>{fe(st,Xt=>{Xt(mt,Mt)})},Y=(st,mt)=>{var Mt;if(!Co.isDisabled(st)){const Xt=mt.event.raw;xe(st,(Mt=Xt.dataTransfer)===null||Mt===void 0?void 0:Mt.files)}},re=(st,mt)=>{const Mt=mt.event.raw.target;xe(st,Mt.files)},xe=(st,mt)=>{mt&&(Fr.setValue(st,hG(mt,a)),go(st,$u,{name:t.name}))},Ee=Qa({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:gr([jo("input-file-events",[Ah(xi()),Ah(nc())])])}),Be=st=>({uid:st.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:gr([hS(p.getOr([])),sf.self(),Co.config({}),qo.config({toggleClass:"dragenter",toggleOnExecute:!1}),jo("dropzone-events",[Xn("dragenter",z([E,qo.toggle])),Xn("dragleave",z([E,qo.toggle])),Xn("dragover",E),Xn("drop",z([E,Y])),Xn(Di(),re)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[ai(a.translate("Drop an image here"))]},hl.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[ai(a.translate("Browse for an image")),Ee.asSpec()],action:mt=>{Ee.get(mt).element.dom.click()},buttonBehaviours:gr([Ns.config({}),Bi.button(a.isDisabled),Qi()])})]}]}),je=t.label.map(st=>fd(st,a)),et=qa.parts.field({factory:{sketch:Be}});return aS(je,et,["tox-form__group--stretched"],[])},mG=(t,a)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${t.columns}col`]},components:ne(t.items,a.interpreter)}),bP=(t,a)=>{let p=null,E=null;return{cancel:()=>{l(p)||(clearTimeout(p),p=null,E=null)},throttle:(...re)=>{E=re,l(p)&&(p=setTimeout(()=>{const xe=E;p=null,E=null,t.apply(null,xe)},a))}}},mS=(t,a)=>{let p=null;return{cancel:()=>{l(p)||(clearTimeout(p),p=null)},throttle:(...Y)=>{l(p)&&(p=setTimeout(()=>{p=null,t.apply(null,Y)},a))}}},oL=(t,a)=>{let p=null;const E=()=>{l(p)||(clearTimeout(p),p=null)};return{cancel:E,throttle:(...Y)=>{E(),p=setTimeout(()=>{p=null,t.apply(null,Y)},a)}}},NA=Xr("alloy-fake-before-tabstop"),aL=Xr("alloy-fake-after-tabstop"),xP=t=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:t},behaviours:gr([ko.config({ignore:!0}),Ns.config({})])}),wP=(t,a)=>({dom:{tag:"div",classes:["tox-navobj",...t.getOr([])]},components:[xP([NA]),a,xP([aL])],behaviours:gr([sf.childAt(1)])}),CP=(t,a)=>{go(t,Ca(),{raw:{which:9,shiftKey:a}})},SP=(t,a)=>{const p=a.element;Ni(p,NA)?CP(t,!0):Ni(p,aL)&&CP(t,!1)},gS=t=>rS(t,["."+NA,"."+aL].join(","),H),pS=Xr("update-dialog"),FA=Xr("update-title"),lg=Xr("update-body"),BA=Xr("update-footer"),sL=Xr("body-send-message"),vS=Xr("dialog-focus-shifted"),yS=hf().browser,Zx=yS.isSafari(),HA=yS.isFirefox(),iL=Zx||HA,TP=yS.isChromium(),gG=({scrollTop:t,scrollHeight:a,clientHeight:p})=>Math.ceil(t)+p>=a,kP=(t,a)=>t.scrollTo(0,a==="bottom"?99999999:a),pG=(t,a)=>{const p=t.body;return P.from(!/^1))?p:t.documentElement)},AP=(t,a,p)=>{const E=t.dom;P.from(E.contentDocument).fold(p,z=>{let Y=0;const re=pG(z,a).map(Ee=>(Y=Ee.scrollTop,Ee)).forall(gG),xe=()=>{const Ee=E.contentWindow;d(Ee)&&(re?kP(Ee,"bottom"):!re&&iL&&Y!==0&&kP(Ee,Y))};Zx&&E.addEventListener("load",xe,{once:!0}),z.open(),z.write(a),z.close(),Zx||xe()})},MP=lt(iL,Zx?500:200).map(t=>bP(AP,t)),EP=(t,a)=>{const p=q(t.getOr(""));return{getValue:E=>p.get(),setValue:(E,z)=>{if(p.get()!==z){const Y=E.element,re=()=>Lr(Y,"srcdoc",z);a?MP.fold(O(AP),xe=>xe.throttle)(Y,z,re):re()}p.set(z)}}},vG=(t,a,p)=>{const E="tox-dialog__iframe",z=t.transparent?[]:[`${E}--opaque`],Y=t.border?["tox-navobj-bordered"]:[],re={...t.label.map(et=>({title:et})).getOr({}),...p.map(et=>({srcdoc:et})).getOr({}),...t.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},xe=EP(p,t.streamContent),Ee=t.label.map(et=>fd(et,a)),Be=et=>wP(P.from(Y),{uid:et.uid,dom:{tag:"iframe",attributes:re,classes:[E,...z]},behaviours:gr([Ns.config({}),ko.config({}),t0(p,xe.getValue,xe.setValue),Pc.config({channels:{[vS]:{onReceive:(st,mt)=>{mt.newFocus.each(Mt=>{fr(st.element).each(Xt=>{(Qt(st.element,Mt)?hi:Is)(Xt,"tox-navobj-bordered-focus")})})}}}})])}),je=qa.parts.field({factory:{sketch:Be}});return aS(Ee,je,["tox-form__group--stretched"],[])},yG=t=>new Promise((a,p)=>{const E=()=>{Y(),a(t)},z=[sc(t,"load",E),sc(t,"error",()=>{Y(),p("Unable to load data from image: "+t.dom.src)})],Y=()=>fe(z,re=>re.unbind());t.dom.complete&&E()}),bG=(t,a,p,E,z)=>{const Y=p*z,re=E*z,xe=Math.max(0,t/2-Y/2),Ee=Math.max(0,a/2-re/2);return{left:xe.toString()+"px",top:Ee.toString()+"px",width:Y.toString()+"px",height:re.toString()+"px"}},zA=(t,a,p)=>{const E=ci(t),z=Ls(t);return Math.min(E/a,z/p,1)},xG=(t,a)=>{const p=q(a.getOr({url:""})),E=Qa({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:a.map(Ee=>({src:Ee.url})).getOr({})}}),z=Qa({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[E.asSpec()]}),Y=(Ee,Be)=>{const je={url:Be.url};Be.zoom.each(st=>je.zoom=st),Be.cachedWidth.each(st=>je.cachedWidth=st),Be.cachedHeight.each(st=>je.cachedHeight=st),p.set(je);const et=()=>{const{cachedWidth:st,cachedHeight:mt,zoom:Mt}=je;if(!i(st)&&!i(mt)){if(i(Mt)){const Dn=zA(Ee.element,st,mt);je.zoom=Dn}const Xt=bG(ci(Ee.element),Ls(Ee.element),st,mt,je.zoom);z.getOpt(Ee).each(Dn=>{Mi(Dn.element,Xt)})}};E.getOpt(Ee).each(st=>{const mt=st.element;Be.url!==Ka(mt,"src")&&(Lr(mt,"src",Be.url),Is(Ee.element,"tox-imagepreview__loaded")),et(),yG(mt).then(Mt=>{Ee.getSystem().isConnected()&&(hi(Ee.element,"tox-imagepreview__loaded"),je.cachedWidth=Mt.dom.naturalWidth,je.cachedHeight=Mt.dom.naturalHeight,et())})})},re={};t.height.each(Ee=>re.height=Ee);const xe=a.map(Ee=>({url:Ee.url,zoom:P.from(Ee.zoom),cachedWidth:P.from(Ee.cachedWidth),cachedHeight:P.from(Ee.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:re,attributes:{role:"presentation"}},components:[z.asSpec()],behaviours:gr([sf.self(),t0(xe,()=>p.get(),Y)])}},wG=(t,a)=>{const p="tox-label",E=t.align==="center"?[`${p}--center`]:[],z=t.align==="end"?[`${p}--end`]:[],Y={dom:{tag:"label",classes:[p,...E,...z]},components:[ai(a.providers.translate(t.label))]},re=ne(t.items,a.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[Y,...re],behaviours:gr([sf.self(),Ho.config({}),pP(P.none()),po.config({mode:"acyclic"})])}},lL=Xr("toolbar.button.execute"),_P=t=>xf((a,p)=>{Lf(t,a)(E=>{go(a,lL,{buttonApi:E}),t.onAction(E)})}),hy=Xr("common-button-display-events"),RP={[Ci()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],[Cu()]:["toolbar-button-events",hy],[fo()]:["focusing","alloy.base.behaviour",hy]},bS=t=>To(t.element,"width",Ms(t.element,"width")),LP=(t,a,p)=>Gd(t,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:p},a),VA=(t,a)=>LP(t,a,[]),n0=(t,a)=>LP(t,a,[Ho.config({})]),DP=(t,a,p)=>({dom:{tag:"span",classes:[`${a}__select-label`]},components:[ai(p.translate(t))],behaviours:gr([Ho.config({})])}),md=Xr("update-menu-text"),r0=Xr("update-menu-icon"),UA=(t,a,p)=>{const E=q(C),z=t.text.map(st=>Qa(DP(st,a,p.providers))),Y=t.icon.map(st=>Qa(n0(st,p.providers.icons))),re=(st,mt)=>{const Mt=Fr.getValue(st);return ko.focus(Mt),go(Mt,"keydown",{raw:mt.event.raw}),ud.close(Mt),P.some(!0)},xe=t.role.fold(()=>({}),st=>({role:st})),Ee=t.tooltip.fold(()=>({}),st=>{const mt=p.providers.translate(st);return{title:mt,"aria-label":mt}}),Be=Gd("chevron-down",{tag:"div",classes:[`${a}__select-chevron`]},p.providers.icons),je=Xr("common-button-display-events");return Qa(ud.sketch({...t.uid?{uid:t.uid}:{},...xe,dom:{tag:"button",classes:[a,`${a}--select`].concat(ne(t.classes,st=>`${a}--${st}`)),attributes:{...Ee}},components:Ox([Y.map(st=>st.asSpec()),z.map(st=>st.asSpec()),P.some(Be)]),matchWidth:!0,useMinWidth:!0,onOpen:(st,mt,Mt)=>{t.searchable&&DU(Mt)},dropdownBehaviours:gr([...t.dropdownBehaviours,Bi.button(()=>t.disabled||p.providers.isDisabled()),Qi(),lS.config({}),Ho.config({}),jo("dropdown-events",[Zv(t,E),eg(t,E)]),jo(je,[ms((st,mt)=>bS(st))]),jo("menubutton-update-display-text",[Xn(md,(st,mt)=>{z.bind(Mt=>Mt.getOpt(st)).each(Mt=>{Ho.set(Mt,[ai(p.providers.translate(mt.event.text))])})}),Xn(r0,(st,mt)=>{Y.bind(Mt=>Mt.getOpt(st)).each(Mt=>{Ho.set(Mt,[n0(mt.event.icon,p.providers.icons)])})})])]),eventOrder:hs(RP,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[Cu()]:["toolbar-button-events","dropdown-events",je]}),sandboxBehaviours:gr([po.config({mode:"special",onLeft:re,onRight:re}),jo("dropdown-sandbox-events",[Xn(W8,(st,mt)=>{MU(st),mt.stop()}),Xn(G8,(st,mt)=>{EU(st,mt),mt.stop()})])]),lazySink:p.getSink,toggleClass:`${a}--active`,parts:{menu:{...Mx(!1,t.columns,t.presets),fakeFocus:t.searchable,onHighlightItem:AR,onCollapseMenu:(st,mt,Mt)=>{Na.getHighlighted(Mt).each(Xt=>{AR(st,Mt,Xt)})},onDehighlightItem:LU}},getAnchorOverrides:()=>({maxHeightFunction:(st,mt)=>{mT()(st,mt-10)}}),fetch:st=>cc.nu(M(t.fetch,st))})).asSpec()},CG=t=>A(t),$P=t=>t.type==="separator",SG=t=>pn(t,"getSubmenuItems"),TG={type:"separator"},OP=(t,a)=>{const p=ke(t,(E,z)=>CG(z)?z===""?E:z==="|"?E.length>0&&!$P(E[E.length-1])?E.concat([TG]):E:pn(a,z.toLowerCase())?E.concat([a[z.toLowerCase()]]):E:E.concat([z]),[]);return p.length>0&&$P(p[p.length-1])&&p.pop(),p},kG=(t,a)=>{const p=t.getSubmenuItems(),E=IP(p,a),z=hs(E.menus,{[t.value]:E.items}),Y=hs(E.expansions,{[t.value]:t.value});return{item:t,menus:z,expansions:Y}},PP=t=>{const a=Ft(t,"value").getOrThunk(()=>Xr("generated-menu-item"));return hs({value:a},t)},IP=(t,a)=>{const p=OP(A(t)?t.split(" "):t,a);return $e(p,(E,z)=>{if(SG(z)){const Y=PP(z),re=kG(Y,a);return{menus:hs(E.menus,re.menus),items:[re.item,...E.items],expansions:hs(E.expansions,re.expansions)}}else return{...E,items:[z,...E.items]}},{menus:{},expansions:{},items:[]})},AG=t=>t.search.fold(()=>({searchMode:"no-search"}),a=>({searchMode:"search-with-field",placeholder:a.placeholder})),MG=t=>t.search.fold(()=>({searchMode:"no-search"}),a=>({searchMode:"search-with-results"})),jx=(t,a,p,E)=>{const z=Xr("primary-menu"),Y=IP(t,p.shared.providers.menuItems());if(Y.items.length===0)return P.none();const re=AG(E),xe=pO(z,Y.items,a,p,E.isHorizontalMenu,re),Ee=MG(E),Be=Xe(Y.menus,(et,st)=>pO(st,et,a,p,!1,Ee)),je=hs(Be,yt(z,xe));return P.from(Wv.tieredData(z,je,Y.expansions))},cL=t=>!pn(t,"items"),NP="data-value",FP=(t,a,p,E)=>ne(p,z=>cL(z)?{type:"togglemenuitem",text:z.text,value:z.value,active:z.value===E,onAction:()=>{Fr.setValue(t,z.value),go(t,$u,{name:a}),ko.focus(t)}}:{type:"nestedmenuitem",text:z.text,getSubmenuItems:()=>FP(t,a,z.items,E)}),uL=(t,a)=>We(t,p=>cL(p)?lt(p.value===a,p):uL(p.items,a)),EG=(t,a,p)=>{const E=a.shared.providers,z=p.bind(Ee=>uL(t.items,Ee)).orThunk(()=>Me(t.items).filter(cL)),Y=t.label.map(Ee=>fd(Ee,E)),re=qa.parts.field({dom:{},factory:{sketch:Ee=>UA({uid:Ee.uid,text:z.map(Be=>Be.text),icon:P.none(),tooltip:t.label,role:P.none(),fetch:(Be,je)=>{const et=FP(Be,t.name,t.items,Fr.getValue(Be));je(jx(et,Yh.CLOSE_ON_EXECUTE,a,{isHorizontalMenu:!1,search:P.none()}))},onSetup:O(C),getApi:O({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Ns.config({}),t0(z.map(Be=>Be.value),Be=>Ka(Be.element,NP),(Be,je)=>{uL(t.items,je).each(et=>{Lr(Be.element,NP,et.value),go(Be,md,{text:et.text})})})]},"tox-listbox",a.shared)}}),xe={dom:{tag:"div",classes:["tox-listboxfield"]},components:[re]};return qa.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Fe([Y.toArray(),[xe]]),fieldBehaviours:gr([Co.config({disabled:O(!t.enabled),onDisabled:Ee=>{qa.getField(Ee).each(Co.disable)},onEnabled:Ee=>{qa.getField(Ee).each(Co.enable)}})])})},fL=(t,a)=>({dom:{tag:"div",classes:t.classes},components:ne(t.items,a.shared.interpreter)}),_G=(t,a)=>{const p=ne(t.options,z=>({dom:{tag:"option",value:z.value,innerHtml:z.text}})),E=t.data.map(z=>yt("initialValue",z)).getOr({});return{uid:t.uid,dom:{tag:"select",classes:t.selectClasses,attributes:t.selectAttributes},components:p,behaviours:Si(t.selectBehaviours,[ko.config({}),Fr.config({store:{mode:"manual",getValue:z=>Dd(z.element),setValue:(z,Y)=>{const re=Me(t.options);Ve(t.options,Ee=>Ee.value===Y).isSome()?rv(z.element,Y):z.element.dom.selectedIndex===-1&&Y===""&&re.each(Ee=>rv(z.element,Ee.value))},...E}})])}},RG=ou({name:"HtmlSelect",configFields:[qn("options"),Fi("selectBehaviours",[ko,Fr]),En("selectClasses",[]),En("selectAttributes",{}),Ia("data")],factory:_G}),LG=(t,a,p)=>{const E=ne(t.items,Ee=>({text:a.translate(Ee.text),value:Ee.value})),z=t.label.map(Ee=>fd(Ee,a)),Y=qa.parts.field({dom:{},...p.map(Ee=>({data:Ee})).getOr({}),selectAttributes:{size:t.size},options:E,factory:RG,selectBehaviours:gr([Co.config({disabled:()=>!t.enabled||a.isDisabled()}),Ns.config({}),jo("selectbox-change",[Xn(Di(),(Ee,Be)=>{go(Ee,$u,{name:t.name})})])])}),re=t.size>1?P.none():P.some(Gd("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},a.icons)),xe={dom:{tag:"div",classes:["tox-selectfield"]},components:Fe([[Y],re.toArray()])};return qa.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Fe([z.toArray(),[xe]]),fieldBehaviours:gr([Co.config({disabled:()=>!t.enabled||a.isDisabled(),onDisabled:Ee=>{qa.getField(Ee).each(Co.disable)},onEnabled:Ee=>{qa.getField(Ee).each(Co.enable)}}),Qi()])})},xS=O([En("field1Name","field1"),En("field2Name","field2"),qf("onLockedChange"),Lm(["lockClass"]),En("locked",!1),nf.field("coupledFieldBehaviours",[da,Fr])]),dL=(t,a,p)=>gs(t,a,p).bind(da.getCurrent),BP=(t,a)=>Fl({factory:qa,name:t,overrides:p=>({fieldBehaviours:gr([jo("coupled-input-behaviour",[Xn(qs(),E=>{dL(E,p,a).each(z=>{gs(E,p,"lock").each(Y=>{qo.isOn(Y)&&p.onLockedChange(E,z,Y)})})})])])})}),DG=O([BP("field1","field2"),BP("field2","field1"),Fl({factory:hl,schema:[qn("dom")],name:"lock",overrides:t=>({buttonBehaviours:gr([qo.config({selected:t.locked,toggleClass:t.markers.lockClass,aria:{mode:"pressed"}})])})})]),hL=(t,a,p,E)=>({uid:t.uid,dom:t.dom,components:a,behaviours:nf.augment(t.coupledFieldBehaviours,[da.config({find:P.some}),Fr.config({store:{mode:"manual",getValue:z=>{const Y=rp(z,t,["field1","field2"]);return{[t.field1Name]:Fr.getValue(Y.field1()),[t.field2Name]:Fr.getValue(Y.field2())}},setValue:(z,Y)=>{const re=rp(z,t,["field1","field2"]);_n(Y,t.field1Name)&&Fr.setValue(re.field1(),Y[t.field1Name]),_n(Y,t.field2Name)&&Fr.setValue(re.field2(),Y[t.field2Name])}}})]),apis:{getField1:z=>gs(z,t,"field1"),getField2:z=>gs(z,t,"field2"),getLock:z=>gs(z,t,"lock")}}),Of=Bl({name:"FormCoupledInputs",configFields:xS(),partFields:DG(),factory:hL,apis:{getField1:(t,a)=>t.getField1(a),getField2:(t,a)=>t.getField2(a),getLock:(t,a)=>t.getLock(a)}}),mL=t=>{const a={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},p=z=>z in a?a[z]:1;let E=t.value.toFixed(p(t.unit));return E.indexOf(".")!==-1&&(E=E.replace(/\.?0*$/,"")),E+t.unit},WA=t=>{const p=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(t);if(p!==null){const E=parseFloat(p[1]),z=p[2];return Wo.value({value:E,unit:z})}else return Wo.error(t)},HP=(t,a)=>{const p={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},E=z=>pn(p,z);return t.unit===a?P.some(t.value):E(t.unit)&&E(a)?p[t.unit]===p[a]?P.some(t.value):P.some(t.value/p[t.unit]*p[a]):P.none()},gL=t=>P.none(),zP=(t,a)=>p=>HP(p,a).map(E=>({value:E*t,unit:a})),VP=(t,a)=>{const p=WA(t).toOptional(),E=WA(a).toOptional();return jn(p,E,(z,Y)=>HP(z,Y.unit).map(re=>Y.value/re).map(re=>zP(re,Y.unit)).getOr(gL)).getOr(gL)},$G=(t,a)=>{let p=gL;const E=Xr("ratio-event"),z=et=>Gd(et,{tag:"span",classes:["tox-icon","tox-lock-icon__"+et]},a.icons),Y=Of.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:a.translate(t.label.getOr("Constrain proportions"))}},components:[z("lock"),z("unlock")],buttonBehaviours:gr([Co.config({disabled:()=>!t.enabled||a.isDisabled()}),Qi(),Ns.config({})])}),re=et=>({dom:{tag:"div",classes:["tox-form__group"]},components:et}),xe=et=>qa.parts.field({factory:sy,inputClasses:["tox-textfield"],inputBehaviours:gr([Co.config({disabled:()=>!t.enabled||a.isDisabled()}),Qi(),Ns.config({}),jo("size-input-events",[Xn(_o(),(st,mt)=>{go(st,E,{isField1:et})}),Xn(Di(),(st,mt)=>{go(st,$u,{name:t.name})})])]),selectOnFocus:!1}),Ee=et=>({dom:{tag:"label",classes:["tox-label"]},components:[ai(a.translate(et))]}),Be=Of.parts.field1(re([qa.parts.label(Ee("Width")),xe(!0)])),je=Of.parts.field2(re([qa.parts.label(Ee("Height")),xe(!1)]));return Of.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[Be,je,re([Ee(Nw),Y])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(et,st,mt)=>{WA(Fr.getValue(et)).each(Mt=>{p(Mt).each(Xt=>{Fr.setValue(st,mL(Xt))})})},coupledFieldBehaviours:gr([Co.config({disabled:()=>!t.enabled||a.isDisabled(),onDisabled:et=>{Of.getField1(et).bind(qa.getField).each(Co.disable),Of.getField2(et).bind(qa.getField).each(Co.disable),Of.getLock(et).each(Co.disable)},onEnabled:et=>{Of.getField1(et).bind(qa.getField).each(Co.enable),Of.getField2(et).bind(qa.getField).each(Co.enable),Of.getLock(et).each(Co.enable)}}),Qi(),jo("size-input-events2",[Xn(E,(et,st)=>{const mt=st.event.isField1,Mt=mt?Of.getField1(et):Of.getField2(et),Xt=mt?Of.getField2(et):Of.getField1(et),Dn=Mt.map(Fr.getValue).getOr(""),hn=Xt.map(Fr.getValue).getOr("");p=VP(Dn,hn)})])])})},UP=(t,a,p)=>{const E=hd.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[ai(a.translate(t.label))]}),z=hd.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),Y=hd.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return hd.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:t.min,maxX:t.max,getInitialValue:O(p.getOrThunk(()=>(Math.abs(t.max)-Math.abs(t.min))/2))},components:[E,z,Y],sliderBehaviours:gr([sf.self(),ko.config({})]),onChoose:(re,xe,Ee)=>{go(re,$u,{name:t.name,value:Ee})}})},WP=(t,a)=>{const p=xe=>({dom:{tag:"th",innerHtml:a.translate(xe)}}),E=xe=>({dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:ne(xe,p)}]}),z=xe=>({dom:{tag:"td",innerHtml:a.translate(xe)}}),Y=xe=>({dom:{tag:"tr"},components:ne(xe,z)}),re=xe=>({dom:{tag:"tbody"},components:ne(xe,Y)});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[E(t.header),re(t.cells)],behaviours:gr([Ns.config({}),ko.config({})])}},GP=(t,a)=>{const p=t.label.map(mt=>fd(mt,a)),E=[Co.config({disabled:()=>t.disabled||a.isDisabled()}),Qi(),po.config({mode:"execution",useEnter:t.multiline!==!0,useControlEnter:t.multiline===!0,execute:mt=>(pa(mt,iS),P.some(!0))}),jo("textfield-change",[Xn(qs(),(mt,Mt)=>{go(mt,$u,{name:t.name})}),Xn(wi(),(mt,Mt)=>{go(mt,$u,{name:t.name})})]),Ns.config({})],z=t.validation.map(mt=>Df.config({getRoot:Mt=>fr(Mt.element),invalidClass:"tox-invalid",validator:{validate:Mt=>{const Xt=Fr.getValue(Mt),Dn=mt.validator(Xt);return cc.pure(Dn===!0?Wo.value(Xt):Wo.error(Dn))},validateOnLoad:mt.validateOnLoad}})).toArray(),Y=t.placeholder.fold(O({}),mt=>({placeholder:a.translate(mt)})),re=t.inputMode.fold(O({}),mt=>({inputmode:mt})),xe={...Y,...re},Ee=qa.parts.field({tag:t.multiline===!0?"textarea":"input",...t.data.map(mt=>({data:mt})).getOr({}),inputAttributes:xe,inputClasses:[t.classname],inputBehaviours:gr(Fe([E,z])),selectOnFocus:!1,factory:sy}),Be=t.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[Ee]}:Ee,et=(t.flex?["tox-form__group--stretched"]:[]).concat(t.maximized?["tox-form-group--maximize"]:[]),st=[Co.config({disabled:()=>t.disabled||a.isDisabled(),onDisabled:mt=>{qa.getField(mt).each(Co.disable)},onEnabled:mt=>{qa.getField(mt).each(Co.enable)}}),Qi()];return aS(p,Be,et,st)},ZP=(t,a,p)=>GP({name:t.name,multiline:!1,label:t.label,inputMode:t.inputMode,placeholder:t.placeholder,flex:!1,disabled:!t.enabled,classname:"tox-textfield",validation:P.none(),maximized:t.maximized,data:p},a),jP=(t,a,p)=>GP({name:t.name,multiline:!0,label:t.label,inputMode:P.none(),placeholder:t.placeholder,flex:!0,disabled:!t.enabled,classname:"tox-textarea",validation:P.none(),maximized:t.maximized,data:p},a),Yx=(t,a)=>a.getAnimationRoot.fold(()=>t.element,p=>p(t)),vp=t=>t.dimension.property,my=(t,a)=>t.dimension.getDimension(a),GA=(t,a)=>{const p=Yx(t,a);Su(p,[a.shrinkingClass,a.growingClass])},ZA=(t,a)=>{Is(t.element,a.openClass),hi(t.element,a.closedClass),To(t.element,vp(a),"0px"),Ks(t.element)},pL=(t,a)=>{Is(t.element,a.closedClass),hi(t.element,a.openClass),Bo(t.element,vp(a))},vL=(t,a,p,E)=>{p.setCollapsed(),To(t.element,vp(a),my(a,t.element)),GA(t,a),ZA(t,a),a.onStartShrink(t),a.onShrunk(t)},OG=(t,a,p,E)=>{const z=E.getOrThunk(()=>my(a,t.element));p.setCollapsed(),To(t.element,vp(a),z),Ks(t.element);const Y=Yx(t,a);Is(Y,a.growingClass),hi(Y,a.shrinkingClass),ZA(t,a),a.onStartShrink(t)},YP=(t,a,p)=>{const E=my(a,t.element);(E==="0px"?vL:OG)(t,a,p,P.some(E))},jA=(t,a,p)=>{const E=Yx(t,a),z=Ni(E,a.shrinkingClass),Y=my(a,t.element);pL(t,a);const re=my(a,t.element);(z?()=>{To(t.element,vp(a),Y),Ks(t.element)}:()=>{ZA(t,a)})(),Is(E,a.shrinkingClass),hi(E,a.growingClass),pL(t,a),To(t.element,vp(a),re),p.setExpanded(),a.onStartGrow(t)},PG=(t,a,p)=>{if(p.isExpanded()){Bo(t.element,vp(a));const E=my(a,t.element);To(t.element,vp(a),E)}},IG=(t,a,p)=>{p.isExpanded()||jA(t,a,p)},NG=(t,a,p)=>{p.isExpanded()&&YP(t,a,p)},KP=(t,a,p)=>{p.isExpanded()&&vL(t,a,p)},FG=(t,a,p)=>p.isExpanded(),XP=(t,a,p)=>p.isCollapsed(),JP=(t,a,p)=>{const E=Yx(t,a);return Ni(E,a.growingClass)===!0},yL=(t,a,p)=>{const E=Yx(t,a);return Ni(E,a.shrinkingClass)===!0};var BG=Object.freeze({__proto__:null,refresh:PG,grow:IG,shrink:NG,immediateShrink:KP,hasGrown:FG,hasShrunk:XP,isGrowing:JP,isShrinking:yL,isTransitioning:(t,a,p)=>JP(t,a)||yL(t,a),toggleGrow:(t,a,p)=>{(p.isExpanded()?YP:jA)(t,a,p)},disableTransitions:GA,immediateGrow:(t,a,p)=>{p.isExpanded()||(pL(t,a),To(t.element,vp(a),my(a,t.element)),GA(t,a),p.setExpanded(),a.onStartGrow(t),a.onGrown(t))}}),zG=Object.freeze({__proto__:null,exhibit:(t,a,p)=>{const E=a.expanded;return qc(E?{classes:[a.openClass],styles:{}}:{classes:[a.closedClass],styles:yt(a.dimension.property,"0px")})},events:(t,a)=>bs([Ed(Ii(),(p,E)=>{E.event.raw.propertyName===t.dimension.property&&(GA(p,t),a.isExpanded()&&Bo(p.element,t.dimension.property),(a.isExpanded()?t.onGrown:t.onShrunk)(p))})])}),QP=[qn("closedClass"),qn("openClass"),qn("shrinkingClass"),qn("growingClass"),Ia("getAnimationRoot"),Sa("onShrunk"),Sa("onStartShrink"),Sa("onGrown"),Sa("onStartGrow"),En("expanded",!1),yc("dimension",fa("property",{width:[rs("property","width"),rs("getDimension",t=>ci(t)+"px")],height:[rs("property","height"),rs("getDimension",t=>Ls(t)+"px")]}))],VG=Object.freeze({__proto__:null,init:t=>{const a=q(t.expanded),p=()=>"expanded: "+a.get();return Qc({isExpanded:()=>a.get()===!0,isCollapsed:()=>a.get()===!1,setCollapsed:M(a.set,!1),setExpanded:M(a.set,!0),readState:p})}});const lf=Ki({fields:QP,name:"sliding",active:zG,apis:BG,state:VG}),bL=t=>({isEnabled:()=>!Co.isDisabled(t),setEnabled:a=>Co.set(t,!a),setActive:a=>{const p=t.element;a?(hi(p,"tox-tbtn--enabled"),Lr(p,"aria-pressed",!0)):(Is(p,"tox-tbtn--enabled"),Xa(p,"aria-pressed"))},isActive:()=>Ni(t.element,"tox-tbtn--enabled"),setText:a=>{go(t,md,{text:a})},setIcon:a=>go(t,r0,{icon:a})}),wS=(t,a,p,E,z=!0)=>UA({text:t.text,icon:t.icon,tooltip:t.tooltip,searchable:t.search.isSome(),role:E,fetch:(Y,re)=>{const xe={pattern:t.search.isSome()?$U(Y):""};t.fetch(Ee=>{re(jx(Ee,Yh.CLOSE_ON_EXECUTE,p,{isHorizontalMenu:!1,search:t.search}))},xe,bL(Y))},onSetup:t.onSetup,getApi:bL,columns:1,presets:"normal",classes:[],dropdownBehaviours:[...z?[Ns.config({})]:[]]},a,p.shared),UG=(t,a,p)=>{const E=Y=>re=>{const xe=!re.isActive();re.setActive(xe),Y.storage.set(xe),p.shared.getSink().each(Ee=>{a().getOpt(Ee).each(Be=>{Ic(Be.element),go(Be,rg,{name:Y.name,value:Y.storage.get()})})})},z=Y=>re=>{re.setActive(Y.storage.get())};return Y=>{Y(ne(t,re=>{const xe=re.text.fold(()=>({}),Ee=>({text:Ee}));return{type:re.type,active:!1,...xe,onAction:E(re),onSetup:z(re)}}))}},qP=t=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{title:t,"aria-label":t}},components:[ai(t)]}),xL=Xr("leaf-label-event-id"),YA=({leaf:t,onLeafAction:a,visible:p,treeId:E,selectedId:z,backstage:Y})=>{const re=t.menu.map(Ee=>wS(Ee,"tox-mbtn",Y,P.none(),p)),xe=[qP(t.title)];return re.each(Ee=>xe.push(Ee)),hl.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(p?["tox-tree--leaf__label--visible"]:[])},components:xe,role:"treeitem",action:Ee=>{a(t.id),Ee.getSystem().broadcastOn([`update-active-item-${E}`],{value:t.id})},eventOrder:{[Ca()]:[xL,"keying"]},buttonBehaviours:gr([...p?[Ns.config({})]:[],qo.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),Pc.config({channels:{[`update-active-item-${E}`]:{onReceive:(Ee,Be)=>{(Be.value===t.id?qo.on:qo.off)(Ee)}}}}),jo(xL,[ms((Ee,Be)=>{z.each(je=>{(je===t.id?qo.on:qo.off)(Ee)})}),Xn(Ca(),(Ee,Be)=>{const je=Be.event.raw.code==="ArrowLeft",et=Be.event.raw.code==="ArrowRight";je?(tu(Ee.element,".tox-tree--directory").each(st=>{Ee.getSystem().getByDom(st).each(mt=>{kb(st,".tox-tree--directory__label").each(Mt=>{mt.getSystem().getByDom(Mt).each(ko.focus)})})}),Be.stop()):et&&Be.stop()})])])})},eI=(t,a,p)=>Gd(t,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:p},a),KA=(t,a)=>eI(t,a,[]),tI=Xr("directory-label-event-id"),WG=({directory:t,visible:a,noChildren:p,backstage:E})=>{const z=t.menu.map(xe=>wS(xe,"tox-mbtn",E,P.none())),Y=[{dom:{tag:"div",classes:["tox-chevron"]},components:[KA("chevron-right",E.shared.providers.icons)]},qP(t.title)];z.each(xe=>{Y.push(xe)});const re=xe=>{tu(xe.element,".tox-tree--directory").each(Ee=>{xe.getSystem().getByDom(Ee).each(Be=>{const je=!qo.isOn(Be);qo.toggle(Be),go(xe,"expand-tree-node",{expanded:je,node:t.id})})})};return hl.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(a?["tox-tree--directory__label--visible"]:[])},components:Y,action:re,eventOrder:{[Ca()]:[tI,"keying"]},buttonBehaviours:gr([...a?[Ns.config({})]:[],jo(tI,[Xn(Ca(),(xe,Ee)=>{const Be=Ee.event.raw.code==="ArrowRight",je=Ee.event.raw.code==="ArrowLeft";Be&&p&&Ee.stop(),(Be||je)&&tu(xe.element,".tox-tree--directory").each(et=>{xe.getSystem().getByDom(et).each(st=>{!qo.isOn(st)&&Be||qo.isOn(st)&&je?(re(xe),Ee.stop()):je&&!qo.isOn(st)&&(tu(st.element,".tox-tree--directory").each(mt=>{kb(mt,".tox-tree--directory__label").each(Mt=>{st.getSystem().getByDom(Mt).each(ko.focus)})}),Ee.stop())})})})])])})},GG=({children:t,onLeafAction:a,visible:p,treeId:E,expandedIds:z,selectedId:Y,backstage:re})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:t.map(xe=>xe.type==="leaf"?YA({leaf:xe,selectedId:Y,onLeafAction:a,visible:p,treeId:E,backstage:re}):XA({directory:xe,expandedIds:z,selectedId:Y,onLeafAction:a,labelTabstopping:p,treeId:E,backstage:re})),behaviours:gr([lf.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:p}),Ho.config({})])}),ZG=Xr("directory-event-id"),XA=({directory:t,onLeafAction:a,labelTabstopping:p,treeId:E,backstage:z,expandedIds:Y,selectedId:re})=>{const{children:xe}=t,Ee=q(Y),Be=et=>xe.map(st=>st.type==="leaf"?YA({leaf:st,selectedId:re,onLeafAction:a,visible:et,treeId:E,backstage:z}):XA({directory:st,expandedIds:Ee.get(),selectedId:re,onLeafAction:a,labelTabstopping:et,treeId:E,backstage:z})),je=Y.includes(t.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[WG({directory:t,visible:p,noChildren:t.children.length===0,backstage:z}),GG({children:xe,expandedIds:Y,selectedId:re,onLeafAction:a,visible:je,treeId:E,backstage:z})],behaviours:gr([jo(ZG,[ms((et,st)=>{qo.set(et,je)}),Xn("expand-tree-node",(et,st)=>{const{expanded:mt,node:Mt}=st.event;Ee.set(mt?[...Ee.get(),Mt]:Ee.get().filter(Xt=>Xt!==Mt))})]),qo.config({...t.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(et,st)=>{const mt=et.components()[1],Mt=Be(st);st?lf.grow(mt):lf.shrink(mt),Ho.set(mt,Mt)}})])}},jG=Xr("tree-event-id"),YG=(t,a)=>{const p=t.onLeafAction.getOr(C),E=t.onToggleExpand.getOr(C),z=t.defaultExpandedIds,Y=q(z),re=q(t.defaultSelectedId),xe=Xr("tree-id"),Ee=(Be,je)=>t.items.map(et=>et.type==="leaf"?YA({leaf:et,selectedId:Be,onLeafAction:p,visible:!0,treeId:xe,backstage:a}):XA({directory:et,selectedId:Be,onLeafAction:p,expandedIds:je,labelTabstopping:!0,treeId:xe,backstage:a}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:Ee(re.get(),Y.get()),behaviours:gr([po.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),jo(jG,[Xn("expand-tree-node",(Be,je)=>{const{expanded:et,node:st}=je.event;Y.set(et?[...Y.get(),st]:Y.get().filter(mt=>mt!==st)),E(Y.get(),{expanded:et,node:st})})]),Pc.config({channels:{[`update-active-item-${xe}`]:{onReceive:(Be,je)=>{re.set(P.some(je.value)),Ho.set(Be,Ee(P.some(je.value),Y.get()))}}}}),Ho.config({})])}};var nI=Object.freeze({__proto__:null,events:(t,a)=>{const E=t.stream.streams.setup(t,a);return bs([Xn(t.event,E),_d(()=>a.cancel())].concat(t.cancelEvent.map(z=>[Xn(z,()=>a.cancel())]).getOr([])))}});const wL=t=>{const a=q(null);return Qc({readState:()=>({timer:a.get()!==null?"set":"unset"}),setTimer:Y=>{a.set(Y)},cancel:()=>{const Y=a.get();Y!==null&&Y.cancel()}})};var KG=Object.freeze({__proto__:null,throttle:wL,init:t=>t.stream.streams.state(t)});const rI=(t,a)=>{const p=t.stream,E=oL(t.onStream,p.delay);return a.setTimer(E),(z,Y)=>{E.throttle(z,Y),p.stopEvent&&Y.stop()}};var XG=[yc("stream",fa("mode",{throttle:[qn("delay"),En("stopEvent",!0),rs("streams",{setup:rI,state:wL})]})),En("event","input"),Ia("cancelEvent"),qf("onStream")];const CL=Ki({fields:XG,name:"streaming",active:nI,state:KG}),Eo=(t,a,p)=>{const E=Fr.getValue(p);Fr.setValue(a,E),SL(a)},Kx=(t,a)=>{const p=t.element,E=Dd(p),z=p.dom;Ka(p,"type")!=="number"&&a(z,E)},SL=t=>{Kx(t,(a,p)=>a.setSelectionRange(p.length,p.length))},oI=(t,a)=>{Kx(t,(p,E)=>p.setSelectionRange(a,E.length))},aI=(t,a,p)=>{if(t.selectsOver){const E=Fr.getValue(a),z=t.getDisplayText(E),Y=Fr.getValue(p);return t.getDisplayText(Y).indexOf(z)===0?P.some(()=>{Eo(t,a,p),oI(a,z.length)}):P.none()}else return P.none()},JA=O("alloy.typeahead.itemexecute"),sI=(t,a,p,E)=>{const z=(et,st,mt)=>{t.previewing.set(!1);const Mt=pi.getCoupled(et,"sandbox");if(va.isOpen(Mt))da.getCurrent(Mt).each(Xt=>{Na.getHighlighted(Xt).fold(()=>{mt(Xt)},()=>{V2(Mt,Xt.element,"keydown",st)})});else{const Xt=Dn=>{da.getCurrent(Dn).each(mt)};hA(t,re(et),et,Mt,E,Xt,zc.HighlightMenuAndItem).get(C)}},Y=A5(t),re=et=>st=>st.map(mt=>{const Mt=Nt(mt.menus),Xt=ie(Mt,hn=>Ce(hn.items,rn=>rn.type==="item"));return Fr.getState(et).update(ne(Xt,hn=>hn.data)),mt}),xe=et=>da.getCurrent(et),Ee="typeaheadevents",Be=[ko.config({}),Fr.config({onSetValue:t.onSetValue,store:{mode:"dataset",getDataKey:et=>Dd(et.element),getFallbackEntry:et=>({value:et,meta:{}}),setValue:(et,st)=>{rv(et.element,t.model.getDisplayText(st))},...t.initialData.map(et=>yt("initialValue",et)).getOr({})}}),CL.config({stream:{mode:"throttle",delay:t.responseTime,stopEvent:!1},onStream:(et,st)=>{const mt=pi.getCoupled(et,"sandbox");if(ko.isFocused(et)&&Dd(et.element).length>=t.minChars){const Xt=xe(mt).bind(hn=>Na.getHighlighted(hn).map(Fr.getValue));t.previewing.set(!0);const Dn=hn=>{xe(mt).each(rn=>{Xt.fold(()=>{t.model.selectsOver&&Na.highlightFirst(rn)},kn=>{Na.highlightBy(rn,Vn=>Fr.getValue(Vn).value===kn.value),Na.getHighlighted(rn).orThunk(()=>(Na.highlightFirst(rn),P.none()))})})};hA(t,re(et),et,mt,E,Dn,zc.HighlightJustMenu).get(C)}},cancelEvent:Th()}),po.config({mode:"special",onDown:(et,st)=>(z(et,st,Na.highlightFirst),P.some(!0)),onEscape:et=>{const st=pi.getCoupled(et,"sandbox");return va.isOpen(st)?(va.close(st),P.some(!0)):P.none()},onUp:(et,st)=>(z(et,st,Na.highlightLast),P.some(!0)),onEnter:et=>{const st=pi.getCoupled(et,"sandbox"),mt=va.isOpen(st);if(mt&&!t.previewing.get())return xe(st).bind(Mt=>Na.getHighlighted(Mt)).map(Mt=>(go(et,JA(),{item:Mt}),!0));{const Mt=Fr.getValue(et);return pa(et,Th()),t.onExecute(st,et,Mt),mt&&va.close(st),P.some(!0)}}}),qo.config({toggleClass:t.markers.openClass,aria:{mode:"expanded"}}),pi.config({others:{sandbox:et=>TR(t,et,{onOpen:()=>qo.on(et),onClose:()=>{t.lazyTypeaheadComp.get().each(st=>Xa(st.element,"aria-activedescendant")),qo.off(et)}})}}),jo(Ee,[ms(et=>{t.lazyTypeaheadComp.set(P.some(et))}),_d(et=>{t.lazyTypeaheadComp.set(P.none())}),xf(et=>{const st=C;SR(t,re(et),et,E,st,zc.HighlightMenuAndItem).get(C)}),Xn(JA(),(et,st)=>{const mt=pi.getCoupled(et,"sandbox");Eo(t.model,et,st.event.item),pa(et,Th()),t.onItemExecute(et,mt,st.event.item,Fr.getValue(et)),va.close(mt),SL(et)})].concat(t.dismissOnBlur?[Xn(Sl(),et=>{const st=pi.getCoupled(et,"sandbox");Sf(st.element).isNone()&&va.close(st)})]:[]))],je={[Sm()]:[Fr.name(),CL.name(),Ee],...t.eventOrder};return{uid:t.uid,dom:Hk(hs(t,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...Y,...Si(t.typeaheadBehaviours,Be)},eventOrder:je}},Hee=O([Ia("lazySink"),qn("fetch"),En("minChars",5),En("responseTime",1e3),Sa("onOpen"),En("getHotspot",P.some),En("getAnchorOverrides",O({})),En("layouts",P.none()),En("eventOrder",{}),U("model",{},[En("getDisplayText",t=>t.meta!==void 0&&t.meta.text!==void 0?t.meta.text:t.value),En("selectsOver",!0),En("populateFromBrowse",!0)]),Sa("onSetValue"),ru("onExecute"),Sa("onItemExecute"),En("inputClasses",[]),En("inputAttributes",{}),En("inputStyles",{}),En("matchWidth",!0),En("useMinWidth",!1),En("dismissOnBlur",!0),Lm(["openClass"]),Ia("initialData"),Fi("typeaheadBehaviours",[ko,Fr,CL,po,qo,pi]),zs("lazyTypeaheadComp",()=>q(P.none)),zs("previewing",()=>q(!0))].concat(UC()).concat(kR())),CS=O([Af({schema:[c1()],name:"menu",overrides:t=>({fakeFocus:!0,onHighlightItem:(a,p,E)=>{t.previewing.get()?t.lazyTypeaheadComp.get().each(z=>{aI(t.model,z,E).fold(()=>{t.model.selectsOver?(Na.dehighlight(p,E),t.previewing.set(!0)):t.previewing.set(!1)},Y=>{Y(),t.previewing.set(!1)})}):t.lazyTypeaheadComp.get().each(z=>{t.model.populateFromBrowse&&Eo(t.model,z,E),yi(E.element,"id").each(Y=>Lr(z.element,"aria-activedescendant",Y))})},onExecute:(a,p)=>t.lazyTypeaheadComp.get().map(E=>(go(E,JA(),{item:p}),!0)),onHover:(a,p)=>{t.previewing.set(!1),t.lazyTypeaheadComp.get().each(E=>{t.model.populateFromBrowse&&Eo(t.model,E,p)})}})})]),JG=Bl({name:"Typeahead",configFields:Hee(),partFields:CS(),factory:sI}),gd=t=>({...t,toCached:()=>gd(t.toCached()),bindFuture:Ee=>gd(t.bind(Be=>Be.fold(je=>cc.pure(Wo.error(je)),je=>Ee(je)))),bindResult:Ee=>gd(t.map(Be=>Be.bind(Ee))),mapResult:Ee=>gd(t.map(Be=>Be.map(Ee))),mapError:Ee=>gd(t.map(Be=>Be.mapError(Ee))),foldResult:(Ee,Be)=>t.map(je=>je.fold(Ee,Be)),withTimeout:(Ee,Be)=>gd(cc.nu(je=>{let et=!1;const st=setTimeout(()=>{et=!0,je(Wo.error(Be()))},Ee);t.get(mt=>{et||(clearTimeout(st),je(mt))})}))}),iI=t=>gd(cc.nu(t)),lI=t=>gd(cc.pure(Wo.value(t))),eZ={nu:iI,wrap:gd,pure:lI,value:lI,error:t=>gd(cc.pure(Wo.error(t))),fromResult:t=>gd(cc.pure(t)),fromFuture:t=>gd(t.map(Wo.value)),fromPromise:t=>iI(a=>{t.then(p=>{a(Wo.value(p))},p=>{a(Wo.error(p))})})},QA=(t,a,p=[],E,z,Y)=>{const re=a.fold(()=>({}),Be=>({action:Be})),xe={buttonBehaviours:gr([Bi.button(()=>!t.enabled||Y.isDisabled()),Qi(),Ns.config({}),jo("button press",[G2("click"),G2("mousedown")])].concat(p)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...re},Ee=hs(xe,{dom:E});return hs(Ee,{components:z})},tZ=(t,a,p,E=[])=>{const z=t.tooltip.map(Ee=>({"aria-label":p.translate(Ee),title:p.translate(Ee)})).getOr({}),Y={tag:"button",classes:["tox-tbtn"],attributes:z},re=t.icon.map(Ee=>VA(Ee,p.icons)),xe=Ox([re]);return QA(t,a,E,Y,xe,p)},TL=t=>{switch(t){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];case"secondary":default:return["tox-button","tox-button--secondary"]}},uI=(t,a,p,E=[],z=[])=>{const Y=p.translate(t.text),re=t.icon.map(st=>VA(st,p.icons)),xe=[re.getOrThunk(()=>ai(Y))],Ee=t.buttonType.getOr(!t.primary&&!t.borderless?"secondary":"primary"),et={tag:"button",classes:[...TL(Ee),...re.isSome()?["tox-button--icon"]:[],...t.borderless?["tox-button--naked"]:[],...z],attributes:{title:Y}};return QA(t,a,E,et,xe,p)},kL=(t,a,p,E=[],z=[])=>{const Y=uI(t,P.some(a),p,E,z);return hl.sketch(Y)},fI=(t,a)=>p=>{a==="custom"?go(p,rg,{name:t,value:{}}):a==="submit"?pa(p,iS):a==="cancel"?pa(p,Jv):console.error("Unknown button type: ",a)},nZ=(t,a)=>a==="menu",rZ=(t,a)=>a==="custom"||a==="cancel"||a==="submit",oZ=(t,a)=>a==="togglebutton",aZ=(t,a)=>{var p,E;const z=t.icon.map(rn=>n0(rn,a.icons)).map(Qa),Y=rn=>{go(rn,rg,{name:t.name,value:{setIcon:kn=>{z.map(Vn=>Vn.getOpt(rn).each(hr=>{Ho.set(hr,[n0(kn,a.icons)])}))}}})},re=t.buttonType.getOr(t.primary?"primary":"secondary"),xe={...t,name:(p=t.name)!==null&&p!==void 0?p:"",primary:re==="primary",tooltip:P.from(t.tooltip),enabled:(E=t.enabled)!==null&&E!==void 0?E:!1,borderless:!1},Ee=xe.tooltip.map(rn=>({"aria-label":a.translate(rn),title:a.translate(rn)})).getOr({}),Be=TL(re??"secondary"),je=t.icon.isSome()&&t.text.isSome(),et={tag:"button",classes:[...Be.concat(t.icon.isSome()?["tox-button--icon"]:[]),...t.active?["tox-button--enabled"]:[],...je?["tox-button--icon-and-text"]:[]],attributes:Ee},st=[],mt=a.translate(t.text.getOr("")),Mt=ai(mt),Dn=[...Ox([z.map(rn=>rn.asSpec())]),...t.text.isSome()?[Mt]:[]],hn=QA(xe,P.some(Y),st,et,Dn,a);return hl.sketch(hn)},qA=(t,a,p)=>{if(nZ(t,a)){const E=()=>re,z=t,Y={...t,type:"menubutton",search:P.none(),onSetup:xe=>(xe.setEnabled(t.enabled),C),fetch:UG(z.items,E,p)},re=Qa(wS(Y,"tox-tbtn",p,P.none()));return re.asSpec()}else if(rZ(t,a)){const E=fI(t.name,a),z={...t,borderless:!1};return kL(z,E,p.shared.providers,[])}else{if(oZ(t,a))return aZ(t,p.shared.providers);throw console.error("Unknown footer button type: ",a),new Error("Unknown footer button type")}},sZ=(t,a)=>{const p=fI(t.name,"custom");return nW(P.none(),qa.parts.field({factory:hl,...uI(t,P.some(p),a,[hS(""),sf.self()])}))},iZ={type:"separator"},lZ=t=>({type:"menuitem",value:t.url,text:t.title,meta:{attach:t.attach},onAction:C}),AL=(t,a)=>({type:"menuitem",value:a,text:t,meta:{attach:void 0},onAction:C}),cZ=t=>ne(t,lZ),dI=(t,a)=>Ce(a,p=>p.type===t),hI=(t,a)=>cZ(dI(t,a)),uZ=t=>hI("header",t.targets),fZ=t=>hI("anchor",t.targets),dZ=t=>P.from(t.anchorTop).map(a=>AL("",a)).toArray(),hZ=t=>P.from(t.anchorBottom).map(a=>AL("",a)).toArray(),mZ=t=>ne(t,a=>AL(a,a)),mI=t=>ke(t,(a,p)=>a.length===0||p.length===0?a.concat(p):a.concat(iZ,p),[]),ML=(t,a)=>{const p=t.toLowerCase();return Ce(a,E=>{var z;const Y=E.meta!==void 0&&E.meta.text!==void 0?E.meta.text:E.text,re=(z=E.value)!==null&&z!==void 0?z:"";return it(Y.toLowerCase(),p)||it(re.toLowerCase(),p)})},gI=(t,a,p)=>{var E,z;const Y=Fr.getValue(a),re=(z=(E=Y==null?void 0:Y.meta)===null||E===void 0?void 0:E.text)!==null&&z!==void 0?z:Y.value;return p.getLinkInformation().fold(()=>[],Ee=>{const Be=ML(re,mZ(p.getHistory(t)));return t==="file"?mI([Be,ML(re,uZ(Ee)),ML(re,Fe([dZ(Ee),fZ(Ee),hZ(Ee)]))]):Be})},pI=Xr("aria-invalid"),vI=(t,a,p,E)=>{const z=a.shared.providers,Y=rn=>{const kn=Fr.getValue(rn);p.addToHistory(kn.value,t.filetype)},re={...E.map(rn=>({initialData:rn})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":pI,type:"url"},minChars:0,responseTime:0,fetch:rn=>{const kn=gI(t.filetype,rn,p),Vn=jx(kn,Yh.BUBBLE_TO_SANDBOX,a,{isHorizontalMenu:!1,search:P.none()});return cc.pure(Vn)},getHotspot:rn=>Mt.getOpt(rn),onSetValue:(rn,kn)=>{rn.hasConfigured(Df)&&Df.run(rn).get(C)},typeaheadBehaviours:gr([...p.getValidationHandler().map(rn=>Df.config({getRoot:kn=>fr(kn.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(kn,Vn)=>{je.getOpt(kn).each(hr=>{Lr(hr.element,"title",z.translate(Vn))})}},validator:{validate:kn=>{const Vn=Fr.getValue(kn);return eZ.nu(hr=>{rn({type:t.filetype,url:Vn.value},Yn=>{if(Yn.status==="invalid"){const br=Wo.error(Yn.message);hr(br)}else{const br=Wo.value(Yn.message);hr(br)}})})},validateOnLoad:!1}})).toArray(),Co.config({disabled:()=>!t.enabled||z.isDisabled()}),Ns.config({}),jo("urlinput-events",[Xn(qs(),rn=>{const kn=Dd(rn.element),Vn=kn.trim();Vn!==kn&&rv(rn.element,Vn),t.filetype==="file"&&go(rn,$u,{name:t.name})}),Xn(Di(),rn=>{go(rn,$u,{name:t.name}),Y(rn)}),Xn(wi(),rn=>{go(rn,$u,{name:t.name}),Y(rn)})])]),eventOrder:{[qs()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:rn=>rn.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:a.shared.getSink,parts:{menu:Mx(!1,1,"normal")},onExecute:(rn,kn,Vn)=>{go(kn,iS,{})},onItemExecute:(rn,kn,Vn,hr)=>{Y(rn),go(rn,$u,{name:t.name})}},xe=qa.parts.field({...re,factory:JG}),Ee=t.label.map(rn=>fd(rn,z)),je=Qa(((rn,kn,Vn=rn,hr=rn)=>Gd(Vn,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+rn],attributes:{title:z.translate(hr),"aria-live":"polite",...kn.fold(()=>({}),Yn=>({id:Yn}))}},z.icons))("invalid",P.some(pI),"warning")),et=Qa({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[je.asSpec()]}),st=p.getUrlPicker(t.filetype),mt=Xr("browser.url.event"),Mt=Qa({dom:{tag:"div",classes:["tox-control-wrap"]},components:[xe,et.asSpec()],behaviours:gr([Co.config({disabled:()=>!t.enabled||z.isDisabled()})])}),Xt=Qa(kL({name:t.name,icon:P.some("browse"),text:t.picker_text.or(t.label).getOr(""),enabled:t.enabled,primary:!1,buttonType:P.none(),borderless:!0},rn=>pa(rn,mt),z,[],["tox-browse-url"])),Dn=()=>({dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:Fe([[Mt.asSpec()],st.map(()=>Xt.asSpec()).toArray()])}),hn=rn=>{da.getCurrent(rn).each(kn=>{const Vn=Fr.getValue(kn),hr={fieldname:t.name,...Vn};st.each(Yn=>{Yn(hr).get(br=>{Fr.setValue(kn,br),go(rn,$u,{name:t.name})})})})};return qa.sketch({dom:Mee(),components:Ee.toArray().concat([Dn()]),fieldBehaviours:gr([Co.config({disabled:()=>!t.enabled||z.isDisabled(),onDisabled:rn=>{qa.getField(rn).each(Co.disable),Xt.getOpt(rn).each(Co.disable)},onEnabled:rn=>{qa.getField(rn).each(Co.enable),Xt.getOpt(rn).each(Co.enable)}}),Qi(),jo("url-input-events",[Xn(mt,hn)])])})},yI=(t,a)=>{const p=q_(t.icon,a.icons);return Kh.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${t.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:t.url?void 0:p},components:t.url?[hl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:p,attributes:{title:a.translate(t.iconTooltip)}},action:E=>go(E,rg,{name:"alert-banner",value:t.url}),buttonBehaviours:gr([Ek()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:a.translate(t.text)}}]})},EL=(t,a)=>{t.dom.checked=a},gZ=t=>t.dom.checked,bI=(t,a,p)=>{const E=Ee=>(Ee.element.dom.click(),P.some(!0)),z=qa.parts.field({factory:{sketch:D},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:gr([sf.self(),Co.config({disabled:()=>!t.enabled||a.isDisabled(),onDisabled:Ee=>{fr(Ee.element).each(Be=>hi(Be,"tox-checkbox--disabled"))},onEnabled:Ee=>{fr(Ee.element).each(Be=>Is(Be,"tox-checkbox--disabled"))}}),Ns.config({}),ko.config({}),rL(p,gZ,EL),po.config({mode:"special",onEnter:E,onSpace:E,stopSpaceKeyup:!0}),jo("checkbox-events",[Xn(Di(),(Ee,Be)=>{go(Ee,$u,{name:t.name})})])])}),Y=qa.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[ai(a.translate(t.label))],behaviours:gr([lS.config({})])}),re=Ee=>Gd(Ee==="checked"?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+Ee]},a.icons),xe=Qa({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[re("checked"),re("unchecked")]});return qa.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[z,xe.asSpec(),Y],fieldBehaviours:gr([Co.config({disabled:()=>!t.enabled||a.isDisabled()}),Qi()])})},xI=t=>t.presets==="presentation"?Kh.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html}}):Kh.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html,attributes:{role:"document"}},containerBehaviours:gr([Ns.config({}),ko.config({})])}),tl=t=>(a,p,E,z)=>Ft(p,"name").fold(()=>t(p,z,P.none()),Y=>a.field(Y,t(p,z,Ft(E,Y)))),wI=t=>(a,p,E,z)=>{const Y=hs(p,{source:"dynamic"});return tl(t)(a,Y,E,z)},pZ={bar:tl((t,a)=>XU(t,a.shared)),collection:tl((t,a,p)=>oW(t,a.shared.providers,p)),alertbanner:tl((t,a)=>yI(t,a.shared.providers)),input:tl((t,a,p)=>ZP(t,a.shared.providers,p)),textarea:tl((t,a,p)=>jP(t,a.shared.providers,p)),label:tl((t,a)=>wG(t,a.shared)),iframe:wI((t,a,p)=>vG(t,a.shared.providers,p)),button:tl((t,a)=>sZ(t,a.shared.providers)),checkbox:tl((t,a,p)=>bI(t,a.shared.providers,p)),colorinput:tl((t,a,p)=>uW(t,a.shared,a.colorinput,p)),colorpicker:tl((t,a,p)=>uG(t,a.shared.providers,p)),dropzone:tl((t,a,p)=>yP(t,a.shared.providers,p)),grid:tl((t,a)=>mG(t,a.shared)),listbox:tl((t,a,p)=>EG(t,a,p)),selectbox:tl((t,a,p)=>LG(t,a.shared.providers,p)),sizeinput:tl((t,a)=>$G(t,a.shared.providers)),slider:tl((t,a,p)=>UP(t,a.shared.providers,p)),urlinput:tl((t,a,p)=>vI(t,a,a.urlinput,p)),customeditor:tl(vP),htmlpanel:tl(xI),imagepreview:tl((t,a,p)=>xG(t,p)),table:tl((t,a)=>WP(t,a.shared.providers)),tree:tl((t,a)=>YG(t,a)),panel:tl((t,a)=>fL(t,a))},vZ={field:(t,a)=>a,record:O([])},qd=(t,a,p,E)=>{const z=hs(E,{shared:{interpreter:Y=>Xx(t,Y,p,z)}});return Xx(t,a,p,z)},Xx=(t,a,p,E)=>Ft(pZ,a.type).fold(()=>(console.error(`Unknown factory type "${a.type}", defaulting to container: `,a),a),z=>z(t,a,p,E)),SS=(t,a,p)=>Xx(vZ,t,a,p),o0="layout-inset",TS=t=>t.x,CI=(t,a)=>t.x+t.width/2-a.width/2,kS=(t,a)=>t.x+t.width-a.width,eM=t=>t.y,AS=(t,a)=>t.y+t.height-a.height,SI=(t,a)=>t.y+t.height/2-a.height/2,MS=(t,a,p)=>Zi(kS(t,a),AS(t,a),p.insetSouthwest(),Pd(),"southwest",Ds(t,{right:0,bottom:3}),o0),ES=(t,a,p)=>Zi(TS(t),AS(t,a),p.insetSoutheast(),_b(),"southeast",Ds(t,{left:1,bottom:3}),o0),gy=(t,a,p)=>Zi(kS(t,a),eM(t),p.insetNorthwest(),uw(),"northwest",Ds(t,{right:0,top:2}),o0),_S=(t,a,p)=>Zi(TS(t),eM(t),p.insetNortheast(),f1(),"northeast",Ds(t,{left:1,top:2}),o0),eh=(t,a,p)=>Zi(CI(t,a),eM(t),p.insetNorth(),Dh(),"north",Ds(t,{top:2}),o0),Jx=(t,a,p)=>Zi(CI(t,a),AS(t,a),p.insetSouth(),a4(),"south",Ds(t,{bottom:3}),o0),TI=(t,a,p)=>Zi(kS(t,a),SI(t,a),p.insetEast(),d1(),"east",Ds(t,{right:0}),o0),kI=(t,a,p)=>Zi(TS(t),SI(t,a),p.insetWest(),In(),"west",Ds(t,{left:1}),o0),AI=t=>{switch(t){case"north":return eh;case"northeast":return _S;case"northwest":return gy;case"south":return Jx;case"southeast":return ES;case"southwest":return MS;case"east":return TI;case"west":return kI}},_L=(t,a,p,E,z)=>iT(E).map(AI).getOr(eh)(t,a,p,E,z),yZ=t=>{switch(t){case"north":return Jx;case"northeast":return ES;case"northwest":return MS;case"south":return eh;case"southeast":return _S;case"southwest":return gy;case"east":return kI;case"west":return TI}},bZ=(t,a,p,E,z)=>iT(E).map(yZ).getOr(eh)(t,a,p,E,z),RS={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},xZ=(t,a,p)=>{const z={maxHeightFunction:pv()},Y=()=>({type:"node",root:Fa(Yo(t())),node:P.from(t()),bubble:Nd(12,12,RS),layouts:{onRtl:()=>[_S],onLtr:()=>[gy]},overrides:z}),re=()=>({type:"hotspot",hotspot:a(),bubble:Nd(-12,12,RS),layouts:{onRtl:()=>[ji,Ml,Yi],onLtr:()=>[Ml,ji,Yi]},overrides:z});return()=>p()?Y():re()},MI=(t,a,p,E)=>{const Y={maxHeightFunction:pv()},re=()=>({type:"node",root:Fa(Yo(a())),node:P.from(a()),bubble:Nd(12,12,RS),layouts:{onRtl:()=>[eh],onLtr:()=>[eh]},overrides:Y}),xe=()=>t?{type:"node",root:Fa(Yo(a())),node:P.from(a()),bubble:Nd(0,-cu(a()),RS),layouts:{onRtl:()=>[oc],onLtr:()=>[oc]},overrides:Y}:{type:"hotspot",hotspot:p(),bubble:Nd(0,0,RS),layouts:{onRtl:()=>[oc],onLtr:()=>[oc]},overrides:Y};return()=>E()?re():xe()},Xh=(t,a,p)=>{const E=()=>({type:"node",root:Fa(Yo(t())),node:P.from(t()),layouts:{onRtl:()=>[eh],onLtr:()=>[eh]}}),z=()=>({type:"hotspot",hotspot:a(),layouts:{onRtl:()=>[Yi],onLtr:()=>[Yi]}});return()=>p()?E():z()},RL=(t,a)=>()=>({type:"selection",root:a(),getSelection:()=>{const p=t.selection.getRng(),E=t.model.table.getSelectedCells();if(E.length>1){const z=E[0],Y=E[E.length-1],re={firstCell:zt.fromDom(z),lastCell:zt.fromDom(Y)};return P.some(re)}return P.some(fl.range(zt.fromDom(p.startContainer),p.startOffset,zt.fromDom(p.endContainer),p.endOffset))}}),wZ=t=>a=>({type:"node",root:t(),node:a}),CZ=(t,a,p,E)=>{const z=kx(t),Y=()=>zt.fromDom(t.getBody()),re=()=>zt.fromDom(t.getContentAreaContainer()),xe=()=>z||!E();return{inlineDialog:xZ(re,a,xe),inlineBottomDialog:MI(t.inline,re,p,xe),banner:Xh(re,a,xe),cursor:RL(t,Y),node:wZ(Y)}},SZ=t=>(a,p)=>{oO(t)(a,p)},TZ=t=>()=>Q7(t),kZ=t=>a=>lA(t,a),EI=t=>a=>J7(t,a),_I=t=>({colorPicker:SZ(t),hasCustomColors:TZ(t),getColors:kZ(t),getColorCols:EI(t)}),Vee=t=>()=>u5(t),Uee=t=>({isDraggableModal:Vee(t)}),uc=t=>{const a=q(g5(t)?"bottom":"top");return{isPositionedAtTop:()=>a.get()==="top",getDockingMode:a.get,setDockingMode:a.set}},tM=t=>_n(t,"items"),RI=t=>_n(t,"format"),LS=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],AZ=t=>pn(t,"items"),MZ=t=>pn(t,"block"),EZ=t=>pn(t,"inline"),_Z=t=>pn(t,"selector"),LI=t=>ke(t,(a,p)=>{if(AZ(p)){const E=LI(p.items);return{customFormats:a.customFormats.concat(E.customFormats),formats:a.formats.concat([{title:p.title,items:E.formats}])}}else if(EZ(p)||MZ(p)||_Z(p)){const z=`custom-${A(p.name)?p.name:p.title.toLowerCase()}`;return{customFormats:a.customFormats.concat([{name:z,format:p}]),formats:a.formats.concat([{title:p.title,format:z,icon:p.icon}])}}else return{...a,formats:a.formats.concat(p)}},{customFormats:[],formats:[]}),RZ=(t,a)=>{const p=LI(a),E=z=>{fe(z,Y=>{t.formatter.has(Y.name)||t.formatter.register(Y.name,Y.format)})};return t.formatter?E(p.customFormats):t.on("init",()=>{E(p.customFormats)}),p.formats},DI=t=>b8(t).map(a=>{const p=RZ(t,a);return x8(t)?LS.concat(p):p}).getOr(LS),LZ=t=>{const a=ot(t);return a.length===1&&he(a,"title")},LL=(t,a,p)=>({...t,type:"formatter",isSelected:a(t.format),getStylePreview:p(t.format)}),DS=(t,a,p,E)=>{const z=Ee=>LL(Ee,p,E),Y=Ee=>{const Be=xe(Ee.items);return{...Ee,type:"submenu",getStyleItems:O(Be)}},re=Ee=>{const Be=A(Ee.name)?Ee.name:Xr(Ee.title),je=`custom-${Be}`,et={...Ee,type:"formatter",format:je,isSelected:p(je),getStylePreview:E(je)};return t.formatter.register(Be,et),et},xe=Ee=>ne(Ee,Be=>tM(Be)?Y(Be):RI(Be)?z(Be):LZ(Be)?{...Be,type:"separator"}:re(Be));return xe(a)},DZ=t=>{const a=xe=>()=>t.formatter.match(xe),p=xe=>()=>{const Ee=t.formatter.get(xe);return Ee!==void 0?P.some({tag:Ee.length>0&&(Ee[0].inline||Ee[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(xe))}):P.none()},E=q([]),z=q([]),Y=q(!1);return t.on("PreInit",xe=>{const Ee=DI(t),Be=DS(t,Ee,a,p);E.set(Be)}),t.on("addStyleModifications",xe=>{const Ee=DS(t,xe.items,a,p);z.set(Ee),Y.set(xe.replace)}),{getData:()=>{const xe=Y.get()?[]:E.get(),Ee=z.get();return xe.concat(Ee)}}},$I=t=>d(t)&&t.nodeType===1,$Z=ig.trim,DL=t=>a=>!!($I(a)&&(a.contentEditable===t||a.getAttribute("data-mce-contenteditable")===t)),OZ=DL("true"),PZ=DL("false"),$L=(t,a,p,E,z)=>({type:t,title:a,url:p,level:E,attach:z}),Wee=t=>{let a=t;for(;a=a.parentNode;){const p=a.contentEditable;if(p&&p!=="inherit")return OZ(a)}return!1},Gee=(t,a)=>ne(Xi(zt.fromDom(a),t),p=>p.dom),OI=t=>t.innerText||t.textContent,IZ=t=>t.id?t.id:Xr("h"),NZ=t=>t&&t.nodeName==="A"&&(t.id||t.name)!==void 0,PI=t=>NZ(t)&&II(t),nM=t=>t&&/^(H[1-6])$/.test(t.nodeName),II=t=>Wee(t)&&!PZ(t),FZ=t=>nM(t)&&II(t),NI=t=>nM(t)?parseInt(t.nodeName.substr(1),10):0,BZ=t=>{var a;const p=IZ(t),E=()=>{t.id=p};return $L("header",(a=OI(t))!==null&&a!==void 0?a:"","#"+p,NI(t),E)},HZ=t=>{const a=t.id||t.name,p=OI(t);return $L("anchor",p||"#"+a,"#"+a,0,C)},zZ=t=>ne(Ce(t,FZ),BZ),VZ=t=>ne(Ce(t,PI),HZ),OL=t=>Gee("h1,h2,h3,h4,h5,h6,a:not([href])",t),FI=t=>$Z(t.title).length>0,UZ={find:t=>{const a=OL(t);return Ce(zZ(a).concat(VZ(a)),FI)}},rM="tinymce-url-history",BI=5,PL=t=>A(t)&&/^https?/.test(t),WZ=t=>h(t)&&t.length<=BI&&we(t,PL),$S=t=>s(t)&&Yt(t,a=>!WZ(a)).isNone(),HI=()=>{const t=Yv.getItem(rM);if(t===null)return{};let a;try{a=JSON.parse(t)}catch(p){if(p instanceof SyntaxError)return console.log("Local storage "+rM+" was not valid JSON",p),{};throw p}return $S(a)?a:(console.log("Local storage "+rM+" was not valid format",a),{})},oM=t=>{if(!$S(t))throw new Error(`Bad format for history: -`+JSON.stringify(t));Yv.setItem(rM,JSON.stringify(t))},GZ=t=>{const a=HI();return Ft(a,t).getOr([])},IL=(t,a)=>{if(!PL(t))return;const p=HI(),E=Ft(p,a).getOr([]),z=Ce(E,Y=>Y!==t);p[a]=[t].concat(z).slice(0,BI),oM(p)},Qx=t=>!!t,zI=t=>Xe(ig.makeMap(t,/[, ]/),Qx),NL=t=>P.from(k8(t)),VI=t=>{const a=P.from(l5(t)).filter(Qx).map(zI);return NL(t).fold(H,p=>a.fold(j,E=>ot(E).length>0?E:!1))},UI=(t,a)=>{const p=VI(t);return c(p)?p?NL(t):P.none():p[a]?NL(t):P.none()},WI=(t,a)=>UI(t,a).map(p=>E=>cc.nu(z=>{const Y=(xe,Ee)=>{if(!A(xe))throw new Error("Expected value to be string");if(Ee!==void 0&&!s(Ee))throw new Error("Expected meta to be a object");z({value:xe,meta:Ee})},re={filetype:a,fieldname:E.fieldname,...P.from(E.meta).getOr({})};p.call(t,Y,E.value,re)})),GI=t=>P.from(t).filter(A).getOrUndefined(),FL=t=>c5(t)?P.some({targets:UZ.find(t.getBody()),anchorTop:GI($k(t)),anchorBottom:GI(M8(t))}):P.none(),aM=t=>P.from(i5(t)),ZZ=t=>({getHistory:GZ,addToHistory:IL,getLinkInformation:()=>FL(t),getValidationHandler:()=>aM(t),getUrlPicker:a=>WI(t,a)}),jZ=(t,a,p,E)=>{const z=q(!1),Y=uc(a),re={icons:()=>a.ui.registry.getAll().icons,menuItems:()=>a.ui.registry.getAll().menuItems,translate:_f.translate,isDisabled:()=>a.mode.isReadOnly()||!a.ui.isEnabled(),getOption:a.options.get},xe=ZZ(a),Ee=DZ(a),Be=_I(a),je=Uee(a),et=()=>z.get(),st=Dn=>z.set(Dn),mt={shared:{providers:re,anchors:CZ(a,p,E,Y.isPositionedAtTop),header:Y},urlinput:xe,styles:Ee,colorinput:Be,dialog:je,isContextMenuOpen:et,setContextMenuState:st},Mt={...mt,shared:{...mt.shared,interpreter:Dn=>SS(Dn,{},Mt),getSink:t.popup}},Xt={...mt,shared:{...mt.shared,interpreter:Dn=>SS(Dn,{},Xt),getSink:t.dialog}};return{popup:Mt,dialog:Xt}},qx=(t,a,p)=>{const E=(Yn,br)=>{fe([a,...p],Mr=>{Mr.broadcastEvent(Yn,br)})},z=(Yn,br)=>{fe([a,...p],Mr=>{Mr.broadcastOn([Yn],br)})},Y=Yn=>z(rd(),{target:Yn.target}),re=Pp(),xe=sc(re,"touchstart",Y),Ee=sc(re,"touchmove",Yn=>E(Q0(),Yn)),Be=sc(re,"touchend",Yn=>E(ob(),Yn)),je=sc(re,"mousedown",Y),et=sc(re,"mouseup",Yn=>{Yn.raw.button===0&&z(eC(),{target:Yn.target})}),st=Yn=>z(rd(),{target:zt.fromDom(Yn.target)}),mt=Yn=>{Yn.button===0&&z(eC(),{target:zt.fromDom(Yn.target)})},Mt=()=>{fe(t.editorManager.get(),Yn=>{t!==Yn&&Yn.dispatch("DismissPopups",{relatedTarget:t})})},Xt=Yn=>E(Md(),_w(Yn)),Dn=Yn=>{z(tp(),{}),E(Xf(),_w(Yn))},hn=Yo(zt.fromDom(t.getElement())),rn=Pb(hn,"scroll",Yn=>{requestAnimationFrame(()=>{const br=t.getContainer();if(br!=null){const ea=Xv(t,a.element).map(Zr=>[Zr.element,...Zr.others]).getOr([]);ge(ea,Zr=>Qt(Zr,Yn.target))&&(t.dispatch("ElementScroll",{target:Yn.target.dom}),E(sb(),Yn))}})}),kn=()=>z(tp(),{}),Vn=Yn=>{Yn.state&&z(rd(),{target:zt.fromDom(t.getContainer())})},hr=Yn=>{z(rd(),{target:zt.fromDom(Yn.relatedTarget.getContainer())})};t.on("PostRender",()=>{t.on("click",st),t.on("tap",st),t.on("mouseup",mt),t.on("mousedown",Mt),t.on("ScrollWindow",Xt),t.on("ResizeWindow",Dn),t.on("ResizeEditor",kn),t.on("AfterProgressState",Vn),t.on("DismissPopups",hr)}),t.on("remove",()=>{t.off("click",st),t.off("tap",st),t.off("mouseup",mt),t.off("mousedown",Mt),t.off("ScrollWindow",Xt),t.off("ResizeWindow",Dn),t.off("ResizeEditor",kn),t.off("AfterProgressState",Vn),t.off("DismissPopups",hr),je.unbind(),xe.unbind(),Ee.unbind(),Be.unbind(),et.unbind(),rn.unbind()}),t.on("detach",()=>{fe([a,...p],_v),fe([a,...p],Yn=>Yn.destroy())})},nl=i_,cg=YT,ZI=O([En("shell",!1),qn("makeItem"),En("setupItem",C),nf.field("listBehaviours",[Ho])]),BL=Fc({name:"items",overrides:()=>({behaviours:gr([Ho.config({})])})}),YZ=O([BL]),KZ=O("CustomList"),XZ=(t,a,p,E)=>{const z=(xe,Ee)=>{re(xe).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},Be=>{const je=Ho.contents(Be),et=Ee.length,st=et-je.length,mt=st>0?Se(st,()=>t.makeItem()):[],Mt=je.slice(et);fe(Mt,Dn=>Ho.remove(Be,Dn)),fe(mt,Dn=>Ho.append(Be,Dn));const Xt=Ho.contents(Be);fe(Xt,(Dn,hn)=>{t.setupItem(xe,Dn,Ee[hn],hn)})})},Y=t.shell?{behaviours:[Ho.config({})],components:[]}:{behaviours:[],components:a},re=xe=>t.shell?P.some(xe):gs(xe,t,"items");return{uid:t.uid,dom:t.dom,components:Y.components,behaviours:Si(t.listBehaviours,Y.behaviours),apis:{setItems:z}}},sM=Bl({name:KZ(),configFields:ZI(),partFields:YZ(),factory:XZ,apis:{setItems:(t,a,p)=>{t.setItems(a,p)}}}),e2=O([qn("dom"),En("shell",!0),Fi("toolbarBehaviours",[Ho])]),JZ=O([Fc({name:"groups",overrides:()=>({behaviours:gr([Ho.config({})])})})]),QZ=(t,a,p,E)=>{const z=(xe,Ee)=>{Y(xe).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},Be=>{Ho.set(Be,Ee)})},Y=xe=>t.shell?P.some(xe):gs(xe,t,"groups"),re=t.shell?{behaviours:[Ho.config({})],components:[]}:{behaviours:[],components:a};return{uid:t.uid,dom:t.dom,components:re.components,behaviours:Si(t.toolbarBehaviours,re.behaviours),apis:{setGroups:z,refresh:C},domModification:{attributes:{role:"group"}}}},Jh=Bl({name:"Toolbar",configFields:e2(),partFields:JZ(),factory:QZ,apis:{setGroups:(t,a,p)=>{t.setGroups(a,p)}}}),qZ=C,ej=H,HL=O([]);var tj=Object.freeze({__proto__:null,setup:qZ,isDocked:ej,getBehaviours:HL});const py=t=>(sn(Rs(t,"position"),"fixed")?P.none():ar(t)).orThunk(()=>{const E=zt.fromTag("span");return Bn(t).bind(z=>{pc(z,E);const Y=ar(E);return Xl(E),Y})}),YI=t=>py(t).map(al).getOrThunk(()=>Ma(0,0)),nj=(t,a)=>{const p=t.element;hi(p,a.transitionClass),Is(p,a.fadeOutClass),hi(p,a.fadeInClass),a.onShow(t)},zL=(t,a)=>{const p=t.element;hi(p,a.transitionClass),Is(p,a.fadeInClass),hi(p,a.fadeOutClass),a.onHide(t)},KI=(t,a)=>t.ya.y,XI=(t,a)=>t.y>=a.y,JI=(t,a)=>t.bottom<=a.bottom,VL=(t,a,p)=>({location:"top",leftX:a,topY:p.bounds.y-t.y}),UL=(t,a,p)=>({location:"bottom",leftX:a,bottomY:t.bottom-p.bounds.bottom}),WL=t=>t.box.x-t.win.x,rj=(t,a,p)=>{const E=a.win,z=a.box,Y=WL(a);return We(t,re=>{switch(re){case"bottom":return JI(z,p.bounds)?P.none():P.some(UL(E,Y,p));case"top":return XI(z,p.bounds)?P.none():P.some(VL(E,Y,p));default:return P.none()}}).getOr({location:"no-dock"})},oj=(t,a,p)=>we(t,E=>{switch(E){case"bottom":return JI(a,p.bounds);case"top":return XI(a,p.bounds)}}),aj=(t,a)=>{const p=a.optScrollEnv.fold(O(t.bounds.y),E=>E.scrollElmTop+(t.bounds.y-E.currentScrollTop));return Ma(t.bounds.x,p)},sj=(t,a)=>{const p=a.optScrollEnv.fold(O(t.y),E=>t.y+E.currentScrollTop-E.scrollElmTop);return Ma(t.x,p)},QI=(t,a,p)=>p.getInitialPos().map(E=>{const z=aj(E,a);return{box:Hs(z.left,z.top,ci(t),Ls(t)),location:E.location}}),qI=(t,a,p,E,z)=>{const Y=sj(a,p),re=Hs(Y.left,Y.top,a.width,a.height);E.setInitialPos({style:Es(t),position:Ms(t,"position")||"static",bounds:re,location:z.location})},e9=(t,a,p,E,z)=>{E.getInitialPos().fold(()=>qI(t,a,p,E,z),()=>C)},GL=(t,a,p)=>p.getInitialPos().bind(E=>{var z;switch(p.clearInitialPos(),E.position){case"static":return P.some({morph:"static"});case"absolute":const Y=py(t).getOr(ss()),re=Js(Y),xe=(z=Y.dom.scrollTop)!==null&&z!==void 0?z:0;return P.some({morph:"absolute",positionCss:Au("absolute",Ft(E.style,"left").map(Ee=>a.x-re.x),Ft(E.style,"top").map(Ee=>a.y-re.y+xe),Ft(E.style,"right").map(Ee=>re.right-a.right),Ft(E.style,"bottom").map(Ee=>re.bottom-a.bottom))});default:return P.none()}}),iM=(t,a,p)=>QI(t,a,p).filter(({box:E})=>oj(p.getModes(),E,a)).bind(({box:E})=>GL(t,E,p)),lM=t=>{switch(t.location){case"top":return P.some({morph:"fixed",positionCss:Au("fixed",P.some(t.leftX),P.some(t.topY),P.none(),P.none())});case"bottom":return P.some({morph:"fixed",positionCss:Au("fixed",P.some(t.leftX),P.none(),P.none(),P.some(t.bottomY))});default:return P.none()}},ij=(t,a,p)=>{const E=Js(t),z=bl(),Y=rj(p.getModes(),{win:z,box:E},a);return Y.location==="top"||Y.location==="bottom"?(qI(t,E,a,p,Y),lM(Y)):P.none()},lj=(t,a,p)=>iM(t,a,p).orThunk(()=>a.optScrollEnv.bind(E=>QI(t,a,p)).bind(({box:E,location:z})=>{const Y=bl(),re=WL({win:Y,box:E}),xe=z==="top"?VL(Y,re,a):UL(Y,re,a);return lM(xe)})),cj=(t,a,p)=>{const E=t.element;return sn(Rs(E,"position"),"fixed")?lj(E,a,p):ij(E,a,p)},uj=(t,a,p)=>{const E=t.element;return QI(E,a,p).bind(({box:z})=>GL(E,z,p))},fj=(t,a,p,E)=>{const z=Js(t),Y=bl(),re=WL({win:Y,box:z}),xe=E(Y,re,a);return xe.location==="bottom"||xe.location==="top"?(e9(t,z,a,p,xe),lM(xe)):P.none()},t9=(t,a,p)=>{p.setDocked(!1),fe(["left","right","top","bottom","position"],E=>Bo(t.element,E)),a.onUndocked(t)},ZL=(t,a,p,E)=>{const z=E.position==="fixed";p.setDocked(z),aT(t.element,E),(z?a.onDocked:a.onUndocked)(t)},jL=(t,a,p,E,z=!1)=>{a.contextual.each(Y=>{Y.lazyContext(t).each(re=>{const xe=KI(re,E.bounds);xe!==p.isVisible()&&(p.setVisible(xe),z&&!xe?(Us(t.element,[Y.fadeOutClass]),Y.onHide(t)):(xe?nj:zL)(t,Y))})})},YL=(t,a,p,E,z)=>{jL(t,a,p,E,!0),ZL(t,a,p,z.positionCss)},dj=(t,a,p,E,z)=>{switch(z.morph){case"static":return t9(t,a,p);case"absolute":return ZL(t,a,p,z.positionCss);case"fixed":return YL(t,a,p,E,z)}},n9=(t,a,p)=>{const E=a.lazyViewport(t);jL(t,a,p,E),cj(t,E,p).each(z=>{dj(t,a,p,E,z)})},hj=(t,a,p)=>{const E=t.element;p.setDocked(!1);const z=a.lazyViewport(t);uj(t,z,p).each(Y=>{switch(Y.morph){case"static":{t9(t,a,p);break}case"absolute":{ZL(t,a,p,Y.positionCss);break}}}),p.setVisible(!0),a.contextual.each(Y=>{Su(E,[Y.fadeInClass,Y.fadeOutClass,Y.transitionClass]),Y.onShow(t)}),cM(t,a,p)},cM=(t,a,p)=>{t.getSystem().isConnected()&&n9(t,a,p)},r9=(t,a,p)=>{p.isDocked()&&hj(t,a,p)},a0=t=>(a,p,E)=>{const z=p.lazyViewport(a);fj(a.element,z,E,t).each(re=>{YL(a,p,E,z,re)})},o9=a0(VL),OS=a0(UL);var a9=Object.freeze({__proto__:null,refresh:cM,reset:r9,isDocked:(t,a,p)=>p.isDocked(),getModes:(t,a,p)=>p.getModes(),setModes:(t,a,p,E)=>p.setModes(E),forceDockToTop:o9,forceDockToBottom:OS}),pj=Object.freeze({__proto__:null,events:(t,a)=>bs([Ed(Ii(),(p,E)=>{t.contextual.each(z=>{Ni(p.element,z.transitionClass)&&(Su(p.element,[z.transitionClass,z.fadeInClass]),(a.isVisible()?z.onShown:z.onHidden)(p)),E.stop()})}),Xn(Md(),(p,E)=>{cM(p,t,a)}),Xn(sb(),(p,E)=>{cM(p,t,a)}),Xn(Xf(),(p,E)=>{r9(p,t,a)})])}),vj=[Ql("contextual",[Da("fadeInClass"),Da("fadeOutClass"),Da("transitionClass"),bu("lazyContext"),Sa("onShow"),Sa("onShown"),Sa("onHide"),Sa("onHidden")]),bi("lazyViewport",()=>({bounds:bl(),optScrollEnv:P.none()})),ec("modes",["top","bottom"],Ui),Sa("onDocked"),Sa("onUndocked")],yj=Object.freeze({__proto__:null,init:t=>{const a=q(!1),p=q(!0),E=ia(),z=q(t.modes),Y=()=>`docked: ${a.get()}, visible: ${p.get()}, modes: ${z.get().join(",")}`;return Qc({isDocked:a.get,setDocked:a.set,getInitialPos:E.get,setInitialPos:E.set,clearInitialPos:E.clear,isVisible:p.get,setVisible:p.set,getModes:z.get,setModes:z.set,readState:Y})}});const Ti=Ki({fields:vj,name:"docking",active:pj,apis:a9,state:yj}),s0=O(Xr("toolbar-height-change")),Pf={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},uM="tox-tinymce--toolbar-sticky-on",s9="tox-tinymce--toolbar-sticky-off",bj=(t,a)=>{const p=Sn(a),z=Qn(a).dom.innerHeight,Y=ll(p),re=zt.fromDom(t.elm),xe=Xc(re),Ee=Ls(re),Be=xe.y,je=Be+Ee,et=al(a),st=Ls(a),mt=et.top,Mt=mt+st,Xt=Math.abs(mt-Y.top)<2,Dn=Math.abs(Mt-(Y.top+z))<2;if(Xt&&Bemt){const hn=Be-z+Ee+st;mu(Y.left,hn,p)}},t2=(t,a)=>he(Ti.getModes(t),a),XL=t=>{const a=E=>cu(E)+(parseInt(Ms(E,"margin-top"),10)||0)+(parseInt(Ms(E,"margin-bottom"),10)||0),p=t.element;fr(p).each(E=>{const z="padding-"+Ti.getModes(t)[0];if(Ti.isDocked(t)){const Y=ci(E);To(p,"width",Y+"px"),To(E,z,a(p)+"px")}else Bo(p,"width"),Bo(E,z)})},n2=(t,a)=>{a?(Is(t,Pf.fadeOutClass),Us(t,[Pf.transitionClass,Pf.fadeInClass])):(Is(t,Pf.fadeInClass),Us(t,[Pf.fadeOutClass,Pf.transitionClass]))},JL=(t,a)=>{const p=zt.fromDom(t.getContainer());a?(hi(p,uM),Is(p,s9)):(hi(p,s9),Is(p,uM))},xj=(t,a)=>{const p=Sn(a);Id(p).filter(E=>!Qt(a,E)).filter(E=>Qt(E,zt.fromDom(p.dom.body))||nn(t,E)).each(()=>Ic(a))},wj=(t,a)=>Sf(t).orThunk(()=>a().toOptional().bind(p=>Sf(p.element))),Cj=(t,a,p)=>{t.inline||(a.header.isPositionedAtTop()||t.on("ResizeEditor",()=>{p().each(Ti.reset)}),t.on("ResizeWindow ResizeEditor",()=>{p().each(XL)}),t.on("SkinLoaded",()=>{p().each(E=>{Ti.isDocked(E)?Ti.reset(E):Ti.refresh(E)})}),t.on("FullscreenStateChanged",()=>{p().each(Ti.reset)})),t.on("AfterScrollIntoView",E=>{p().each(z=>{Ti.refresh(z);const Y=z.element;mx(Y)&&bj(E,Y)})}),t.on("PostRender",()=>{JL(t,!1)})},Sj=t=>t().map(Ti.isDocked).getOr(!1),Tj=()=>[Pc.config({channels:{[s0()]:{onReceive:XL}}})],i9=(t,a)=>{const p=ia(),E=a.getSink,z=xe=>{E().each(Ee=>xe(Ee.element))},Y=xe=>{t.inline||XL(xe),JL(t,Ti.isDocked(xe)),xe.getSystem().broadcastOn([tp()],{}),E().each(Ee=>Ee.getSystem().broadcastOn([tp()],{}))},re=t.inline?[]:Tj();return[ko.config({}),Ti.config({contextual:{lazyContext:xe=>{const Ee=cu(xe.element),Be=t.inline?t.getContentAreaContainer():t.getContainer();return P.from(Be).map(je=>{const et=Js(zt.fromDom(je));return Xv(t,xe.element).fold(()=>{const mt=et.height-Ee,Mt=et.y+(t2(xe,"top")?0:Ee);return Hs(et.x,Mt,et.width,mt)},mt=>{const Mt=H0(et,Fx(mt)),Xt=t2(xe,"top")?Mt.y:Mt.y+Ee;return Hs(Mt.x,Xt,Mt.width,Mt.height-Ee)})})},onShow:()=>{z(xe=>n2(xe,!0))},onShown:xe=>{z(Ee=>Su(Ee,[Pf.transitionClass,Pf.fadeInClass])),p.get().each(Ee=>{xj(xe.element,Ee),p.clear()})},onHide:xe=>{wj(xe.element,E).fold(p.clear,p.set),z(Ee=>n2(Ee,!1))},onHidden:()=>{z(xe=>Su(xe,[Pf.transitionClass]))},...Pf},lazyViewport:xe=>Xv(t,xe.element).fold(()=>{const Be=bl(),je=Lk(t),et=Be.y+(t2(xe,"top")?je:0),st=Be.height-(t2(xe,"bottom")?je:0);return{bounds:Hs(Be.x,et,Be.width,st),optScrollEnv:P.none()}},Be=>({bounds:Fx(Be),optScrollEnv:P.some({currentScrollTop:Be.element.dom.scrollTop,scrollElmTop:al(Be.element).top})})),modes:[a.header.getDockingMode()],onDocked:Y,onUndocked:Y}),...re]};var l9=Object.freeze({__proto__:null,setup:Cj,isDocked:Sj,getBehaviours:i9});const c9=t=>{const a=t.editor,p=t.sticky?i9:HL;return{uid:t.uid,dom:t.dom,components:t.components,behaviours:gr(p(a,t.sharedBackstage))}},QL=io([Oi,yc("items",Gr([Wf([$5,Ol("items",Ui)]),Ui]))].concat(Dx)),kj=t=>ns("GroupToolbarButton",QL,t),fM=[Gi("text"),Gi("tooltip"),Gi("icon"),ql("search",!1,Gr([Ju,io([Gi("placeholder")])],t=>c(t)?t?P.some({placeholder:P.none()}):P.none():P.some(t))),bu("fetch"),bi("onSetup",()=>C)],PS=io([Oi,...fM]),qL=t=>ns("menubutton",PS,t),Aj=io([Oi,GC,Rf,Qm,I5,Q8,Gv,bc("presets","normal",["normal","color","listpreview"]),t7(1),Rx,sV]),Mj=t=>ns("SplitButton",Aj,t);var eD=ou({factory:(t,a)=>{const p=(z,Y)=>{const re=ne(Y,xe=>{const Ee={type:"menubutton",text:xe.text,fetch:je=>{je(xe.getItems())}},Be=qL(Ee).mapError(je=>wl(je)).getOrDie();return wS(Be,"tox-mbtn",a.backstage,P.some("menuitem"))});Ho.set(z,re)},E={focus:po.focusIn,setMenus:p};return{uid:t.uid,dom:t.dom,components:[],behaviours:gr([Ho.config({}),jo("menubar-events",[ms(z=>{t.onSetup(z)}),Xn($r(),(z,Y)=>{mi(z.element,".tox-mbtn--active").each(re=>{Qf(Y.event.target,".tox-mbtn").each(xe=>{Qt(re,xe)||z.getSystem().getByDom(re).each(Ee=>{z.getSystem().getByDom(xe).each(Be=>{ud.expand(Be),ud.close(Ee),ko.focus(Be)})})})})}),Xn(ab(),(z,Y)=>{Y.event.prevFocus.bind(re=>z.getSystem().getByDom(re).toOptional()).each(re=>{Y.event.newFocus.bind(xe=>z.getSystem().getByDom(xe).toOptional()).each(xe=>{ud.isOpen(re)&&(ud.expand(xe),ud.close(re))})})})]),po.config({mode:"flow",selector:".tox-mbtn",onEscape:z=>(t.onEscape(z),P.some(!0))}),Ns.config({})]),apis:E,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[qn("dom"),qn("uid"),qn("onEscape"),qn("backstage"),En("onSetup",C)],apis:{focus:(t,a)=>{t.focus(a)},setMenus:(t,a,p)=>{t.setMenus(a,p)}}});const tD="⚡️Upgrade",nD="https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_source=TinyMCE&utm_medium=SPAP&utm_campaign=SPAP&utm_id=editorreferral",Ej=t=>({uid:t.uid,dom:t.dom,components:[{dom:{tag:"a",attributes:{href:nD,rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:tD}}]}),dM="container",_j=[Fi("slotBehaviours",[])],u9=t=>"",Rj=t=>{const a=(()=>{const Y=[];return{slot:(xe,Ee)=>(Y.push(xe),iC(dM,u9(xe),Ee)),record:O(Y)}})(),p=t(a),E=a.record(),z=ne(E,Y=>Fl({name:Y,pname:u9(Y)}));return mC(dM,_j,z,Lj,p)},Lj=(t,a)=>{const p=Xt=>uC(t),E=(Xt,Dn)=>gs(Xt,t,Dn),z=(Xt,Dn)=>(hn,rn)=>gs(hn,t,rn).map(kn=>Xt(kn,rn)).getOr(Dn),Y=Xt=>(Dn,hn)=>{fe(hn,rn=>Xt(Dn,rn))},re=(Xt,Dn)=>Ka(Xt.element,"aria-hidden")!=="true",xe=(Xt,Dn)=>{if(!re(Xt)){const hn=Xt.element;Bo(hn,"display"),Xa(hn,"aria-hidden"),go(Xt,q0(),{name:Dn,visible:!0})}},Ee=(Xt,Dn)=>{if(re(Xt)){const hn=Xt.element;To(hn,"display","none"),Lr(hn,"aria-hidden","true"),go(Xt,q0(),{name:Dn,visible:!1})}},Be=z(re,!1),je=z(Ee),et=Y(je),st=Xt=>et(Xt,p()),mt=z(xe),Mt={getSlotNames:p,getSlot:E,isShowing:Be,hideSlot:je,hideAllSlots:st,showSlot:mt};return{uid:t.uid,dom:t.dom,components:a,behaviours:Bh(t.slotBehaviours),apis:Mt}},Uc={...Xe({getSlotNames:(t,a)=>t.getSlotNames(a),getSlot:(t,a,p)=>t.getSlot(a,p),isShowing:(t,a,p)=>t.isShowing(a,p),hideSlot:(t,a,p)=>t.hideSlot(a,p),hideAllSlots:(t,a)=>t.hideAllSlots(a),showSlot:(t,a,p)=>t.showSlot(a,p)},t=>Ug(t)),sketch:Rj},Jee=io([Rf,GC,bi("onShow",C),bi("onHide",C),Gv]),f9=t=>ns("sidebar",Jee,t),Dj=t=>{const{sidebars:a}=t.ui.registry.getAll();fe(ot(a),p=>{const E=a[p],z=()=>sn(P.from(t.queryCommandValue("ToggleSidebar")),p);t.ui.registry.addToggleButton(p,{icon:E.icon,tooltip:E.tooltip,onAction:Y=>{t.execCommand("ToggleSidebar",!1,p),Y.setActive(z())},onSetup:Y=>{Y.setActive(z());const re=()=>Y.setActive(z());return t.on("ToggleSidebar",re),()=>{t.off("ToggleSidebar",re)}}})})},d9=t=>({element:()=>t.element.dom}),$j=(t,a)=>{const p=ne(ot(a),E=>{const z=a[E],Y=Ja(f9(z));return{name:E,getApi:d9,onSetup:Y.onSetup,onShow:Y.onShow,onHide:Y.onHide}});return ne(p,E=>{const z=q(C);return t.slot(E.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:YC.unnamedEvents([Zv(E,z),eg(E,z),Xn(q0(),(Y,re)=>{const xe=re.event;Ve(p,Be=>Be.name===xe.name).each(Be=>{(xe.visible?Be.onShow:Be.onHide)(Be.getApi(Y))})})])})})},Oj=t=>Uc.sketch(a=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:$j(a,t),slotBehaviours:YC.unnamedEvents([ms(p=>Uc.hideAllSlots(p))])})),Pj=(t,a,p)=>{da.getCurrent(t).each(z=>{Ho.set(z,[Oj(a)]);const Y=p==null?void 0:p.toLowerCase();A(Y)&&pn(a,Y)&&da.getCurrent(z).each(re=>{Uc.showSlot(re,Y),lf.immediateGrow(z),Bo(z.element,"width"),hM(t.element,"region")})})},hM=(t,a)=>{Lr(t,"role",a)},Ij=(t,a)=>{da.getCurrent(t).each(E=>{da.getCurrent(E).each(Y=>{lf.hasGrown(E)?Uc.isShowing(Y,a)?(lf.shrink(E),hM(t.element,"presentation")):(Uc.hideAllSlots(Y),Uc.showSlot(Y,a),hM(t.element,"region")):(Uc.hideAllSlots(Y),Uc.showSlot(Y,a),lf.grow(E),hM(t.element,"region"))})})},h9=t=>da.getCurrent(t).bind(p=>lf.isGrowing(p)||lf.hasGrown(p)?da.getCurrent(p).bind(Y=>Ve(Uc.getSlotNames(Y),re=>Uc.isShowing(Y,re))):P.none()),rD=Xr("FixSizeEvent"),oD=Xr("AutoSizeEvent"),Nj=t=>({uid:t.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:gr([Ns.config({}),ko.config({}),lf.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:a=>{da.getCurrent(a).each(Uc.hideAllSlots),pa(a,oD)},onGrown:a=>{pa(a,oD)},onStartGrow:a=>{go(a,rD,{width:Rs(a.element,"width").getOr("")})},onStartShrink:a=>{go(a,rD,{width:ci(a.element)+"px"})}}),Ho.config({}),da.config({find:a=>{const p=Ho.contents(a);return Me(p)}})])}],behaviours:gr([sf.childAt(0),jo("sidebar-sliding-events",[Xn(rD,(a,p)=>{To(a.element,"width",p.event.width)}),Xn(oD,(a,p)=>{Bo(a.element,"width")})])])});var m9=Object.freeze({__proto__:null,block:(t,a,p,E)=>{Lr(t.element,"aria-busy",!0);const z=a.getRoot(t).getOr(t),Y=gr([po.config({mode:"special",onTab:()=>P.some(!0),onShiftTab:()=>P.some(!0)}),ko.config({})]),re=E(z,Y),xe=z.getSystem().build(re);Ho.append(z,Tu(xe)),xe.hasConfigured(po)&&a.focus&&po.focusIn(xe),p.isBlocked()||a.onBlock(t),p.blockWith(()=>Ho.remove(z,xe))},unblock:(t,a,p)=>{Xa(t.element,"aria-busy"),p.isBlocked()&&a.onUnblock(t),p.clear()},isBlocked:(t,a,p)=>p.isBlocked()}),Bj=[bi("getRoot",P.none),Li("focus",!0),Sa("onBlock"),Sa("onUnblock")],If=Object.freeze({__proto__:null,init:()=>{const t=y4(),a=p=>{t.set({destroy:p})};return Qc({readState:t.isSet,blockWith:a,clear:t.clear,isBlocked:t.isSet})}});const Qh=Ki({fields:Bj,name:"blocking",apis:m9,state:If}),g9=t=>(a,p)=>({dom:{tag:"div",attributes:{"aria-label":t.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:cp('
    ')}]}),aD=t=>da.getCurrent(t).each(a=>Ic(a.element,!0)),Hj=(t,a)=>{const p="tabindex",E=`data-mce-${p}`;P.from(t.iframeElement).map(zt.fromDom).each(z=>{a?(yi(z,p).each(Y=>Lr(z,E,Y)),Lr(z,p,-1)):(Xa(z,p),yi(z,E).each(Y=>{Lr(z,p,Y),Xa(z,E)}))})},IS=(t,a,p,E)=>{const z=a.element;if(Hj(t,p),p)Qh.block(a,g9(E)),Bo(z,"display"),Xa(z,"aria-hidden"),t.hasFocus()&&aD(a);else{const Y=da.getCurrent(a).exists(re=>p1(re.element));Qh.unblock(a),To(z,"display","none"),Lr(z,"aria-hidden","true"),Y&&t.focus()}},zj=t=>({uid:t.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:gr([Ho.config({}),Qh.config({focus:!1}),da.config({find:a=>Me(a.components())})]),components:[]}),mM=t=>t.type==="focusin",Vj=t=>mM(t)?(t.composed?Me(t.composedPath()):P.from(t.target)).map(zt.fromDom).filter(St).exists(p=>Ni(p,"mce-pastebin")):!1,gM=(t,a,p)=>{const E=q(!1),z=ia(),Y=xe=>{E.get()&&!Vj(xe)&&(xe.preventDefault(),aD(a()),t.editorManager.setActive(t))};t.inline||t.on("PreInit",()=>{t.dom.bind(t.getWin(),"focusin",Y),t.on("BeforeExecCommand",xe=>{xe.command.toLowerCase()==="mcefocus"&&xe.value!==!0&&Y(xe)})});const re=xe=>{xe!==E.get()&&(E.set(xe),IS(t,a(),xe,p.providers),U7(t,xe))};t.on("ProgressState",xe=>{if(z.on(clearTimeout),v(xe.time)){const Ee=ty.setEditorTimeout(t,()=>re(xe.state),xe.time);z.set(Ee)}else re(xe.state),z.clear()})},Uj=(t,a)=>ke(t,(z,Y)=>a(Y,z.len).fold(O(z),xe=>({len:xe.finish,list:z.list.concat([xe])})),{len:0,list:[]}).list,sD=(t,a,p)=>({within:t,extra:a,withinWidth:p}),Nf=(t,a,p)=>{const E=Uj(t,(xe,Ee)=>{const Be=p(xe);return P.some({element:xe,start:Ee,finish:Ee+Be,width:Be})}),z=Ce(E,xe=>xe.finish<=a),Y=$e(z,(xe,Ee)=>xe+Ee.width,0),re=E.slice(z.length);return{within:z,extra:re,withinWidth:Y}},pM=t=>ne(t,a=>a.element),vM=(t,a,p)=>{const E=pM(t.concat(a));return sD(E,[],p)},p9=(t,a,p,E)=>{const z=pM(t).concat([p]);return sD(z,pM(a),E)},v9=(t,a,p)=>sD(pM(t),[],p),Wj=(t,a,p)=>{const E=Nf(a,t,p);return E.extra.length===0?P.some(E):P.none()},y9=(t,a,p,E)=>{const z=Wj(t,a,p).getOrThunk(()=>Nf(a,t-p(E),p)),Y=z.within,re=z.extra,xe=z.withinWidth;return re.length===1&&re[0].width<=p(E)?vM(Y,re,xe):re.length>=1?p9(Y,re,E,xe):v9(Y,re,xe)},b9=(t,a)=>{const p=ne(a,E=>Tu(E));Jh.setGroups(t,p)},Gj=t=>We(t,a=>Sf(a.element).bind(p=>a.getSystem().getByDom(p).toOptional())),x9=(t,a,p)=>{const E=a.builtGroups.get();if(E.length===0)return;const z=zh(t,a,"primary"),Y=pi.getCoupled(t,"overflowGroup");To(z.element,"visibility","hidden");const re=E.concat([Y]),xe=Gj(re);p([]),b9(z,re);const Ee=ci(z.element),Be=y9(Ee,a.builtGroups.get(),je=>ci(je.element),Y);Be.extra.length===0?(Ho.remove(z,Y),p([])):(b9(z,Be.within),p(Be.extra)),Bo(z.element,"visibility"),Ks(z.element),xe.each(ko.focus)},w9=O([Fi("splitToolbarBehaviours",[pi]),zs("builtGroups",()=>q([]))]),Zj=O([Lm(["overflowToggledClass"]),pf("getOverflowBounds"),qn("lazySink"),zs("overflowGroups",()=>q([])),Sa("onOpened"),Sa("onClosed")].concat(w9())),jj=O([Fl({factory:Jh,schema:e2(),name:"primary"}),Af({schema:e2(),name:"overflow"}),Af({name:"overflow-button"}),Af({name:"overflow-group"})]),iD=O((t,a)=>{P2(t,Math.floor(a))}),C9=O([Lm(["toggledClass"]),qn("lazySink"),bu("fetch"),pf("getBounds"),Ql("fireDismissalEventInstead",[En("event",Tm())]),Om(),Sa("onToggled")]),S9=O([Af({name:"button",overrides:t=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:gr([qo.config({toggleClass:t.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:t.onToggled})])})}),Af({factory:Jh,schema:e2(),name:"toolbar",overrides:t=>({toolbarBehaviours:gr([po.config({mode:"cyclic",onEscape:a=>(gs(a,t,"button").each(ko.focus),P.none())})])})})]),NS=ia(),Yj=(t,a)=>{NS.set(!0),lD(t,a),NS.clear()},lD=(t,a)=>{const p=pi.getCoupled(t,"toolbarSandbox");va.isOpen(p)?va.close(p):va.open(p,a.toolbar())},yM=(t,a,p,E)=>{const z=p.getBounds.map(re=>re()),Y=p.lazySink(t).getOrDie();Nl.positionWithinBounds(Y,a,{anchor:{type:"hotspot",hotspot:t,layouts:E,overrides:{maxWidthFunction:iD()}}},z)},cD=(t,a,p,E,z)=>{Jh.setGroups(a,z),yM(t,a,p,E),qo.on(t)},T9=(t,a,p)=>{const E=Zg(),z=(re,xe)=>{const Ee=NS.get().getOr(!1);p.fetch().get(Be=>{cD(t,xe,p,a.layouts,Be),E.link(t.element),Ee||po.focusIn(xe)})},Y=()=>{qo.off(t),NS.get().getOr(!1)||ko.focus(t),E.unlink(t.element)};return{dom:{tag:"div",attributes:{id:E.id}},behaviours:gr([po.config({mode:"special",onEscape:re=>(va.close(re),P.some(!0))}),va.config({onOpen:z,onClose:Y,isPartOf:(re,xe,Ee)=>Lh(xe,Ee)||Lh(t,Ee),getAttachPoint:()=>p.lazySink(t).getOrDie()}),Pc.config({channels:{...$1({isExtraPart:H,...p.fireDismissalEventInstead.map(re=>({fireEventInstead:{event:re.event}})).getOr({})}),...Rv({doReposition:()=>{va.getState(pi.getCoupled(t,"toolbarSandbox")).each(re=>{yM(t,re,p,a.layouts)})}})}})])}},i0=Bl({name:"FloatingToolbarButton",factory:(t,a,p,E)=>({...hl.sketch({...E.button(),action:z=>{lD(z,E)},buttonBehaviours:nf.augment({dump:E.button().buttonBehaviours},[pi.config({others:{toolbarSandbox:z=>T9(z,p,t)}})])}),apis:{setGroups:(z,Y)=>{va.getState(pi.getCoupled(z,"toolbarSandbox")).each(re=>{cD(z,re,t,p.layouts,Y)})},reposition:z=>{va.getState(pi.getCoupled(z,"toolbarSandbox")).each(Y=>{yM(z,Y,t,p.layouts)})},toggle:z=>{lD(z,E)},toggleWithoutFocusing:z=>{Yj(z,E)},getToolbar:z=>va.getState(pi.getCoupled(z,"toolbarSandbox")),isOpen:z=>va.isOpen(pi.getCoupled(z,"toolbarSandbox"))}}),configFields:C9(),partFields:S9(),apis:{setGroups:(t,a,p)=>{t.setGroups(a,p)},reposition:(t,a)=>{t.reposition(a)},toggle:(t,a)=>{t.toggle(a)},toggleWithoutFocusing:(t,a)=>{t.toggleWithoutFocusing(a)},getToolbar:(t,a)=>t.getToolbar(a),isOpen:(t,a)=>t.isOpen(a)}}),Kj=O([qn("items"),Lm(["itemSelector"]),Fi("tgroupBehaviours",[po])]),k9=O([V1({name:"items",unit:"item"})]),Xj=(t,a,p,E)=>({uid:t.uid,dom:t.dom,components:a,behaviours:Si(t.tgroupBehaviours,[po.config({mode:"flow",selector:t.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}),bM=Bl({name:"ToolbarGroup",configFields:Kj(),partFields:k9(),factory:Xj}),A9=t=>ne(t,a=>Tu(a)),M9=(t,a,p)=>{x9(t,p,E=>{p.overflowGroups.set(E),a.getOpt(t).each(z=>{i0.setGroups(z,A9(E))})})},Jj=(t,a,p,E)=>{const z=Qa(i0.sketch({fetch:()=>cc.nu(Y=>{Y(A9(t.overflowGroups.get()))}),layouts:{onLtr:()=>[Ml,ji],onRtl:()=>[ji,Ml],onBottomLtr:()=>[Il,Cc],onBottomRtl:()=>[Cc,Il]},getBounds:p.getOverflowBounds,lazySink:t.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:t.markers.overflowToggledClass},parts:{button:E["overflow-button"](),toolbar:E.overflow()},onToggled:(Y,re)=>t[re?"onOpened":"onClosed"](Y)}));return{uid:t.uid,dom:t.dom,components:a,behaviours:Si(t.splitToolbarBehaviours,[pi.config({others:{overflowGroup:()=>bM.sketch({...E["overflow-group"](),items:[z.asSpec()]})}})]),apis:{setGroups:(Y,re)=>{t.builtGroups.set(ne(re,Y.getSystem().build)),M9(Y,z,t)},refresh:Y=>M9(Y,z,t),toggle:Y=>{z.getOpt(Y).each(re=>{i0.toggle(re)})},toggleWithoutFocusing:Y=>{z.getOpt(Y).each(i0.toggleWithoutFocusing)},isOpen:Y=>z.getOpt(Y).map(i0.isOpen).getOr(!1),reposition:Y=>{z.getOpt(Y).each(re=>{i0.reposition(re)})},getOverflow:Y=>z.getOpt(Y).bind(i0.getToolbar)},domModification:{attributes:{role:"group"}}}},E9=Bl({name:"SplitFloatingToolbar",configFields:Zj(),partFields:jj(),factory:Jj,apis:{setGroups:(t,a,p)=>{t.setGroups(a,p)},refresh:(t,a)=>{t.refresh(a)},reposition:(t,a)=>{t.reposition(a)},toggle:(t,a)=>{t.toggle(a)},toggleWithoutFocusing:(t,a)=>{t.toggle(a)},isOpen:(t,a)=>t.isOpen(a),getOverflow:(t,a)=>t.getOverflow(a)}}),Qj=O([Lm(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Sa("onOpened"),Sa("onClosed")].concat(w9())),qj=O([Fl({factory:Jh,schema:e2(),name:"primary"}),Fl({factory:Jh,schema:e2(),name:"overflow",overrides:t=>({toolbarBehaviours:gr([lf.config({dimension:{property:"height"},closedClass:t.markers.closedClass,openClass:t.markers.openClass,shrinkingClass:t.markers.shrinkingClass,growingClass:t.markers.growingClass,onShrunk:a=>{gs(a,t,"overflow-button").each(p=>{qo.off(p),ko.focus(p)}),t.onClosed(a)},onGrown:a=>{po.focusIn(a),t.onOpened(a)},onStartGrow:a=>{gs(a,t,"overflow-button").each(qo.on)}}),po.config({mode:"acyclic",onEscape:a=>(gs(a,t,"overflow-button").each(ko.focus),P.some(!0))})])})}),Af({name:"overflow-button",overrides:t=>({buttonBehaviours:gr([qo.config({toggleClass:t.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])})}),Af({name:"overflow-group"})]),eY=(t,a)=>gs(t,a,"overflow").map(lf.hasGrown).getOr(!1),_9=(t,a)=>{gs(t,a,"overflow-button").bind(()=>gs(t,a,"overflow")).each(p=>{xM(t,a),lf.toggleGrow(p)})},xM=(t,a)=>{gs(t,a,"overflow").each(p=>{x9(t,a,E=>{const z=ne(E,Y=>Tu(Y));Jh.setGroups(p,z)}),gs(t,a,"overflow-button").each(E=>{lf.hasGrown(p)&&qo.on(E)}),lf.refresh(p)})},tY=(t,a,p,E)=>{const z="alloy.toolbar.toggle",Y=(re,xe)=>{const Ee=ne(xe,re.getSystem().build);t.builtGroups.set(Ee)};return{uid:t.uid,dom:t.dom,components:a,behaviours:Si(t.splitToolbarBehaviours,[pi.config({others:{overflowGroup:re=>bM.sketch({...E["overflow-group"](),items:[hl.sketch({...E["overflow-button"](),action:xe=>{pa(re,z)}})]})}}),jo("toolbar-toggle-events",[Xn(z,re=>{_9(re,t)})])]),apis:{setGroups:(re,xe)=>{Y(re,xe),xM(re,t)},refresh:re=>xM(re,t),toggle:re=>_9(re,t),isOpen:re=>eY(re,t)},domModification:{attributes:{role:"group"}}}},uD=Bl({name:"SplitSlidingToolbar",configFields:Qj(),partFields:qj(),factory:tY,apis:{setGroups:(t,a,p)=>{t.setGroups(a,p)},refresh:(t,a)=>{t.refresh(a)},toggle:(t,a)=>{t.toggle(a)},isOpen:(t,a)=>t.isOpen(a)}}),wM=t=>{const a=t.title.fold(()=>({}),p=>({attributes:{title:p}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...a},components:[bM.parts.items({})],items:t.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:gr([Ns.config({}),ko.config({})])}},CM=t=>bM.sketch(wM(t)),FS=(t,a)=>{const p=ms(E=>{const z=ne(t.initGroups,CM);Jh.setGroups(E,z)});return gr([Bi.toolbarButton(t.providers.isDisabled),Qi(),po.config({mode:a,onEscape:t.onEscape,selector:".tox-toolbar__group"}),jo("toolbar-events",[p])])},R9=t=>{const a=t.cyclicKeying?"cyclic":"acyclic";return{uid:t.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":wM({title:P.none(),items:[]}),"overflow-button":tZ({name:"more",icon:P.some("more-drawer"),enabled:!0,tooltip:P.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:P.none(),borderless:!1},P.none(),t.providers)},splitToolbarBehaviours:FS(t,a)}},L9=t=>{const a=R9(t),p=4,E=E9.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return E9.sketch({...a,lazySink:t.getSink,getOverflowBounds:()=>{const z=t.moreDrawerData.lazyHeader().element,Y=Xc(z),re=gn(z),xe=Xc(re),Ee=Math.max(re.dom.scrollHeight,xe.height);return Hs(Y.x+p,xe.y,Y.width-p*2,Ee)},parts:{...a.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:t.attributes}}},components:[E],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:z=>t.onToggled(z,!0),onClosed:z=>t.onToggled(z,!1)})},nY=t=>{const a=uD.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),p=uD.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),E=R9(t);return uD.sketch({...E,components:[a,p],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:z=>{z.getSystem().broadcastOn([s0()],{type:"opened"}),t.onToggled(z,!0)},onClosed:z=>{z.getSystem().broadcastOn([s0()],{type:"closed"}),t.onToggled(z,!1)}})},SM=t=>{const a=t.cyclicKeying?"cyclic":"acyclic";return Jh.sketch({uid:t.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(t.type===af.scrolling?["tox-toolbar--scrolling"]:[])},components:[Jh.parts.groups({})],toolbarBehaviours:FS(t,a)})},rY=[Qm,Rf,Gi("tooltip"),bc("buttonType","secondary",["primary","secondary"]),Li("borderless",!1),bu("onAction")],oY=[...rY,dp,Qu("type",["button"])],aY=[...rY,Li("active",!1),Qu("type",["togglebutton"])],TM={button:oY,togglebutton:aY},sY=[Qu("type",["group"]),ec("buttons",[],fa("type",TM))],kM=fa("type",{...TM,group:sY}),D9=io([ec("buttons",[],kM),bu("onShow"),bu("onHide")]),$9=t=>ns("view",D9,t),fD=(t,a)=>{var p,E;const z=t.type==="togglebutton",Y=t.icon.map(kn=>n0(kn,a.icons)).map(Qa),xe=(()=>kn=>{const Vn=br=>{Y.map(Mr=>Mr.getOpt(kn).each(ea=>{Ho.set(ea,[n0(br,a.icons)])}))},hr=br=>{const Mr=kn.element;br?(hi(Mr,"tox-button--enabled"),Lr(Mr,"aria-pressed",!0)):(Is(Mr,"tox-button--enabled"),Xa(Mr,"aria-pressed"))},Yn=()=>Ni(kn.element,"tox-button--enabled");if(z)return t.onAction({setIcon:Vn,setActive:hr,isActive:Yn});if(t.type==="button")return t.onAction({setIcon:Vn})})(),Ee={...t,name:z?t.text.getOr(t.icon.getOr("")):(p=t.text)!==null&&p!==void 0?p:t.icon.getOr(""),primary:t.buttonType==="primary",buttonType:P.from(t.buttonType),tooltip:t.tooltip,icon:t.icon,enabled:!0,borderless:t.borderless},Be=TL((E=t.buttonType)!==null&&E!==void 0?E:"secondary"),je=z?t.text.map(a.translate):P.some(a.translate(t.text)),et=je.map(ai),st=Ee.tooltip.or(je).map(kn=>({"aria-label":a.translate(kn),title:a.translate(kn)})).getOr({}),mt=Y.map(kn=>kn.asSpec()),Mt=Ox([mt,et]),Xt=t.icon.isSome()&&et.isSome(),Dn={tag:"button",classes:Be.concat(...t.icon.isSome()&&!Xt?["tox-button--icon"]:[]).concat(...Xt?["tox-button--icon-and-text"]:[]).concat(...t.borderless?["tox-button--naked"]:[]).concat(...t.type==="togglebutton"&&t.active?["tox-button--enabled"]:[]),attributes:st},hn=[],rn=QA(Ee,P.some(xe),hn,Dn,Mt,a);return hl.sketch(rn)},O9=(t,a)=>fD(t,a),P9=(t,a)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:ne(t.buttons,p=>O9(p,a))}),vy=hf().deviceType,I9=vy.isPhone(),iY=vy.isTablet(),lY=t=>{let a=!1;const p=ne(t.buttons,E=>E.type==="group"?(a=!0,P9(E,t.providers)):O9(E,t.providers));return{uid:t.uid,dom:{tag:"div",classes:[a?"tox-view__toolbar":"tox-view__header",...I9||iY?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:gr([ko.config({}),po.config({mode:"flow",selector:"button, .tox-button",focusInside:te.OnEnterOrSpaceMode})]),components:a?p:[Kh.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),Kh.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:p})]}},cY=t=>({uid:t.uid,dom:{tag:"div",classes:["tox-view__pane"]}}),dD=(t,a,p,E)=>{const z={getPane:Y=>nl.getPart(Y,t,"pane"),getOnShow:Y=>t.viewConfig.onShow,getOnHide:Y=>t.viewConfig.onHide};return{uid:t.uid,dom:t.dom,components:a,apis:z}};var r2=Bl({name:"silver.View",configFields:[qn("viewConfig")],partFields:[Fc({factory:{sketch:lY},schema:[qn("buttons"),qn("providers")],name:"header"}),Fc({factory:{sketch:cY},schema:[],name:"pane"})],factory:dD,apis:{getPane:(t,a)=>t.getPane(a),getOnShow:(t,a)=>t.getOnShow(a),getOnHide:(t,a)=>t.getOnHide(a)}});const uY=(t,a,p)=>Gt(a,(E,z)=>{const Y=Ja($9(E));return t.slot(z,r2.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:Y,components:[...Y.buttons.length>0?[r2.parts.header({buttons:Y.buttons,providers:p})]:[],r2.parts.pane({})]}))}),N9=(t,a)=>Uc.sketch(p=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:uY(p,t,a),slotBehaviours:YC.unnamedEvents([ms(E=>Uc.hideAllSlots(E))])})),hD=t=>Ve(Uc.getSlotNames(t),a=>Uc.isShowing(t,a)),AM=t=>{const a=t.element;To(a,"display","none"),Lr(a,"aria-hidden","true")},mD=t=>{const a=t.element;Bo(a,"display"),Xa(a,"aria-hidden")},fY=t=>({getContainer:O(t)}),F9=(t,a,p)=>{Uc.getSlot(t,a).each(E=>{r2.getPane(E).each(z=>{p(E)(fY(z.element.dom))})})},B9=(t,a)=>F9(t,a,r2.getOnShow),dY=(t,a)=>F9(t,a,r2.getOnHide);var MM=ou({factory:(t,a)=>{const Y={setViews:(re,xe)=>{Ho.set(re,[N9(xe,a.backstage.shared.providers)])},whichView:re=>da.getCurrent(re).bind(hD),toggleView:(re,xe,Ee,Be)=>da.getCurrent(re).exists(je=>{const et=hD(je),st=et.exists(Mt=>Be===Mt),mt=Uc.getSlot(je,Be).isSome();return mt&&(Uc.hideAllSlots(je),st?(AM(re),xe()):(Ee(),mD(re),Uc.showSlot(je,Be),B9(je,Be)),et.each(Mt=>dY(je,Mt))),mt})};return{uid:t.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:gr([Ho.config({}),da.config({find:re=>{const xe=Ho.contents(re);return Me(xe)}})]),apis:Y}},name:"silver.ViewWrapper",configFields:[qn("backstage")],apis:{setViews:(t,a,p)=>t.setViews(a,p),toggleView:(t,a,p,E,z)=>t.toggleView(a,p,E,z),whichView:(t,a)=>t.whichView(a)}});const H9=(t,a,p)=>{let E=!1;const z={getSocket:Y=>nl.getPart(Y,t,"socket"),setSidebar:(Y,re,xe)=>{nl.getPart(Y,t,"sidebar").each(Ee=>Pj(Ee,re,xe))},toggleSidebar:(Y,re)=>{nl.getPart(Y,t,"sidebar").each(xe=>Ij(xe,re))},whichSidebar:Y=>nl.getPart(Y,t,"sidebar").bind(h9).getOrNull(),getHeader:Y=>nl.getPart(Y,t,"header"),getToolbar:Y=>nl.getPart(Y,t,"toolbar"),setToolbar:(Y,re)=>{nl.getPart(Y,t,"toolbar").each(xe=>{const Ee=ne(re,CM);xe.getApis().setGroups(xe,Ee)})},setToolbars:(Y,re)=>{nl.getPart(Y,t,"multiple-toolbar").each(xe=>{const Ee=ne(re,Be=>ne(Be,CM));sM.setItems(xe,Ee)})},refreshToolbar:Y=>{nl.getPart(Y,t,"toolbar").each(xe=>xe.getApis().refresh(xe))},toggleToolbarDrawer:Y=>{nl.getPart(Y,t,"toolbar").each(re=>{wn(re.getApis().toggle,xe=>xe(re))})},toggleToolbarDrawerWithoutFocusing:Y=>{nl.getPart(Y,t,"toolbar").each(re=>{wn(re.getApis().toggleWithoutFocusing,xe=>xe(re))})},isToolbarDrawerToggled:Y=>nl.getPart(Y,t,"toolbar").bind(re=>P.from(re.getApis().isOpen).map(xe=>xe(re))).getOr(!1),getThrobber:Y=>nl.getPart(Y,t,"throbber"),focusToolbar:Y=>{nl.getPart(Y,t,"toolbar").orThunk(()=>nl.getPart(Y,t,"multiple-toolbar")).each(xe=>{po.focusIn(xe)})},setMenubar:(Y,re)=>{nl.getPart(Y,t,"menubar").each(xe=>{eD.setMenus(xe,re)})},focusMenubar:Y=>{nl.getPart(Y,t,"menubar").each(re=>{eD.focus(re)})},setViews:(Y,re)=>{nl.getPart(Y,t,"viewWrapper").each(xe=>{MM.setViews(xe,re)})},toggleView:(Y,re)=>nl.getPart(Y,t,"viewWrapper").exists(xe=>MM.toggleView(xe,()=>z.showMainView(Y),()=>z.hideMainView(Y),re)),whichView:Y=>nl.getPart(Y,t,"viewWrapper").bind(MM.whichView).getOrNull(),hideMainView:Y=>{E=z.isToolbarDrawerToggled(Y),E&&z.toggleToolbarDrawer(Y),nl.getPart(Y,t,"editorContainer").each(re=>{const xe=re.element;To(xe,"display","none"),Lr(xe,"aria-hidden","true")})},showMainView:Y=>{E&&z.toggleToolbarDrawer(Y),nl.getPart(Y,t,"editorContainer").each(re=>{const xe=re.element;Bo(xe,"display"),Xa(xe,"aria-hidden")})}};return{uid:t.uid,dom:t.dom,components:a,apis:z,behaviours:t.behaviours}},hY=cg.optional({factory:eD,name:"menubar",schema:[qn("backstage")]}),mY=t=>t.type===af.sliding?nY:t.type===af.floating?L9:SM,gD=cg.optional({factory:{sketch:t=>sM.sketch({uid:t.uid,dom:t.dom,listBehaviours:gr([po.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>SM({type:t.type,uid:Xr("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:t.providers,onEscape:()=>(t.onEscape(),P.some(!0))}),setupItem:(a,p,E,z)=>{Jh.setGroups(p,E)},shell:!0})},name:"multiple-toolbar",schema:[qn("dom"),qn("onEscape")]}),gY=cg.optional({factory:{sketch:t=>{const a=mY(t),p={type:t.type,uid:t.uid,onEscape:()=>(t.onEscape(),P.some(!0)),onToggled:(E,z)=>t.onToolbarToggled(z),cyclicKeying:!1,initGroups:[],getSink:t.getSink,providers:t.providers,moreDrawerData:{lazyToolbar:t.lazyToolbar,lazyMoreButton:t.lazyMoreButton,lazyHeader:t.lazyHeader},attributes:t.attributes};return a(p)}},name:"toolbar",schema:[qn("dom"),qn("onEscape"),qn("getSink")]}),pY=cg.optional({factory:{sketch:c9},name:"header",schema:[qn("dom")]}),z9=cg.optional({factory:{sketch:Ej},name:"promotion",schema:[qn("dom")]}),vY=cg.optional({name:"socket",schema:[qn("dom")]}),V9=cg.optional({factory:{sketch:Nj},name:"sidebar",schema:[qn("dom")]}),yY=cg.optional({factory:{sketch:zj},name:"throbber",schema:[qn("dom")]}),U9=cg.optional({factory:MM,name:"viewWrapper",schema:[qn("backstage")]}),bY=t=>({uid:t.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:t.components}),xY=cg.optional({factory:{sketch:bY},name:"editorContainer",schema:[]});var Ss=Bl({name:"OuterContainer",factory:H9,configFields:[qn("dom"),qn("behaviours")],partFields:[pY,hY,gY,gD,vY,V9,z9,yY,U9,xY],apis:{getSocket:(t,a)=>t.getSocket(a),setSidebar:(t,a,p,E)=>{t.setSidebar(a,p,E)},toggleSidebar:(t,a,p)=>{t.toggleSidebar(a,p)},whichSidebar:(t,a)=>t.whichSidebar(a),getHeader:(t,a)=>t.getHeader(a),getToolbar:(t,a)=>t.getToolbar(a),setToolbar:(t,a,p)=>{t.setToolbar(a,p)},setToolbars:(t,a,p)=>{t.setToolbars(a,p)},refreshToolbar:(t,a)=>t.refreshToolbar(a),toggleToolbarDrawer:(t,a)=>{t.toggleToolbarDrawer(a)},toggleToolbarDrawerWithoutFocusing:(t,a)=>{t.toggleToolbarDrawerWithoutFocusing(a)},isToolbarDrawerToggled:(t,a)=>t.isToolbarDrawerToggled(a),getThrobber:(t,a)=>t.getThrobber(a),setMenubar:(t,a,p)=>{t.setMenubar(a,p)},focusMenubar:(t,a)=>{t.focusMenubar(a)},focusToolbar:(t,a)=>{t.focusToolbar(a)},setViews:(t,a,p)=>{t.setViews(a,p)},toggleView:(t,a,p)=>t.toggleView(a,p),whichView:(t,a)=>t.whichView(a)}});const W9="file edit view insert format tools table help",G9={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template inserttemplate codesample inserttable accordion | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},wY=(t,a,p)=>{const E=a5(p).split(/[ ,]/);return{text:t.title,getItems:()=>ie(t.items,z=>{const Y=z.toLowerCase();return Y.trim().length===0?[]:ge(E,re=>re===Y)?[]:Y==="separator"||Y==="|"?[{type:"separator"}]:a.menuItems[Y]?[a.menuItems[Y]]:[]})}},pD=t=>t.split(" "),EM=(t,a)=>{const p={...G9,...a.menus},E=ot(a.menus).length>0,z=a.menubar===void 0||a.menubar===!0?pD(W9):pD(a.menubar===!1?"":a.menubar),Y=Ce(z,xe=>{const Ee=pn(G9,xe);return E?Ee||Ft(a.menus,xe).exists(Be=>pn(Be,"items")):Ee}),re=ne(Y,xe=>{const Ee=p[xe];return wY({title:Ee.title,items:pD(Ee.items)},a,t)});return Ce(re,xe=>{const Ee=Be=>A(Be)||Be.type!=="separator";return xe.getItems().length>0&&ge(xe.getItems(),Ee)})},vD=t=>{const a=()=>{t._skinLoaded=!0,NV(t)};return()=>{t.initialized?a():t.on("init",a)}},CY=(t,a)=>()=>tR(t,{message:a}),Z9=(t,a,p)=>(t.on("remove",()=>p.unload(a)),p.load(a)),yD=(t,a,p,E)=>(t.on("remove",()=>E.unloadRawCss(a)),E.loadRawCss(a,p)),SY=async(t,a)=>{const E="ui/"+h5(t).getOr("default")+"/skin.css",z=tinymce.Resource.get(E);if(A(z))return Promise.resolve(yD(t,E,z,t.ui.styleSheetLoader));{const Y=a+"/skin.min.css";return Z9(t,Y,t.ui.styleSheetLoader)}},TY=async(t,a)=>{if(Os(zt.fromDom(t.getElement()))){const E=a+"/skin.shadowdom.css",z=tinymce.Resource.get(E);if(A(z))return yD(t,E,z,oy.DOM.styleSheetLoader),Promise.resolve();{const Y=a+"/skin.shadowdom.min.css";return Z9(t,Y,oy.DOM.styleSheetLoader)}}},kY=async(t,a)=>{h5(a).fold(()=>{const E=Nk(a);E&&a.contentCSS.push(E+(t?"/content.inline":"/content")+".min.css")},E=>{const z="ui/"+E+(t?"/content.inline":"/content")+".css",Y=tinymce.Resource.get(z);if(A(Y))yD(a,z,Y,a.ui.styleSheetLoader);else{const re=Nk(a);re&&a.contentCSS.push(re+(t?"/content.inline":"/content")+".min.css")}});const p=Nk(a);if(!d5(a)&&A(p))return Promise.all([SY(a,p),TY(a,p)]).then()},j9=(t,a)=>kY(t,a).then(vD(a),CY(a,"Skin could not be loaded")),AY=M(j9,!1),MY=M(j9,!0),yy=(t,a,p)=>t.translate([`${a} {0}`,t.translate(p)]),_M=(t,a,p)=>{const E=(xe,Ee,Be,je)=>{const et=a.shared.providers.translate(xe.title);if(xe.type==="separator")return P.some({type:"separator",text:et});if(xe.type==="submenu"){const st=ie(xe.getStyleItems(),mt=>z(mt,Ee,je));return Ee===0&&st.length<=0?P.none():P.some({type:"nestedmenuitem",text:et,enabled:st.length>0,getSubmenuItems:()=>ie(xe.getStyleItems(),mt=>z(mt,Ee,je))})}else return P.some({type:"togglemenuitem",text:et,icon:xe.icon,active:xe.isSelected(je),enabled:!Be,onAction:p.onAction(xe),...xe.getStylePreview().fold(()=>({}),st=>({meta:{style:st}}))})},z=(xe,Ee,Be)=>{const je=xe.type==="formatter"&&p.isInvalid(xe);return Ee===0?je?[]:E(xe,Ee,!1,Be).toArray():E(xe,Ee,je,Be).toArray()},Y=xe=>{const Ee=p.getCurrentValue(),Be=p.shouldHide?0:1;return ie(xe,je=>z(je,Be,Ee))};return{validateItems:Y,getFetch:(xe,Ee)=>(Be,je)=>{const et=Ee(),st=Y(et),mt=jx(st,Yh.CLOSE_ON_EXECUTE,xe,{isHorizontalMenu:!1,search:P.none()});je(mt)}}},l0=(t,a,p)=>{const E=p.dataset,z=E.type==="basic"?()=>ne(E.data,Y=>LL(Y,p.isSelectedFor,p.getPreviewFor)):E.getData;return{items:_M(t,a,p),getStyleItems:z}},o2=(t,a,p,E,z)=>{const{items:Y,getStyleItems:re}=l0(t,a,p),xe=Be=>({getComponent:O(Be),setTooltip:je=>{const et=a.shared.providers.translate(je);jl(Be.element,{"aria-label":et,title:et})}}),Ee=Be=>{const je=et=>Be.setTooltip(yy(t,E,et.value));return t.on(z,je),qC(Yd(t,"NodeChange",et=>{const st=et.getComponent();p.updateText(st),Co.set(et.getComponent(),!t.selection.isEditable())})(Be),()=>t.off(z,je))};return UA({text:p.icon.isSome()?P.none():p.text,icon:p.icon,tooltip:P.from(p.tooltip),role:P.none(),fetch:Y.getFetch(a,re),onSetup:Ee,getApi:xe,columns:1,presets:"normal",classes:p.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",a.shared)},c0=t=>ne(t,a=>{let p=a,E=a;const z=a.split("=");return z.length>1&&(p=z[0],E=z[1]),{title:p,format:E}}),Y9=t=>({type:"basic",data:t});var a2;(function(t){t[t.SemiColon=0]="SemiColon",t[t.Space=1]="Space"})(a2||(a2={}));const EY=(t,a)=>a===a2.SemiColon?t.replace(/;$/,"").split(";"):t.split(" "),bD=(t,a,p)=>{const E=t.options.get(a);return{type:"basic",data:c0(EY(E,p))}},xD="Align",K9="left",wD=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],X9=t=>{const a=()=>Ve(wD,xe=>t.formatter.match(xe.format)),p=xe=>()=>t.formatter.match(xe),E=xe=>P.none,z=xe=>{const Be=a().fold(O(K9),je=>je.title.toLowerCase());go(xe,r0,{icon:`align-${Be}`}),zV(t,{value:Be})},Y=Y9(wD),re=xe=>()=>Ve(wD,Ee=>Ee.format===xe.format).each(Ee=>t.execCommand(Ee.command));return{tooltip:yy(t,xD,K9),text:P.none(),icon:P.some("align-left"),isSelectedFor:p,getCurrentValue:P.none,getPreviewFor:E,onAction:re,updateText:z,dataset:Y,shouldHide:!1,isInvalid:xe=>!t.formatter.canApply(xe.format)}},J9=(t,a)=>o2(t,a,X9(t),xD,"AlignTextUpdate"),_Y=(t,a)=>{const p=l0(t,a,X9(t));t.ui.registry.addNestedMenuItem("align",{text:a.shared.providers.translate(xD),onSetup:Vc(t),getSubmenuItems:()=>p.items.validateItems(p.getStyleItems())})},Q9=(t,a)=>{const p=a(),E=ne(p,z=>z.format);return P.from(t.formatter.closest(E)).bind(z=>Ve(p,Y=>Y.format===z)).orThunk(()=>lt(t.formatter.match("p"),{title:"Paragraph",format:"p"}))},BS="Blocks",CD="Paragraph",q9=t=>{const a=Y=>()=>t.formatter.match(Y),p=Y=>()=>{const re=t.formatter.get(Y);return re?P.some({tag:re.length>0&&(re[0].inline||re[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(Y))}):P.none()},E=Y=>{const xe=Q9(t,()=>z.data).fold(O(CD),Ee=>Ee.title);go(Y,md,{text:xe}),G7(t,{value:xe})},z=bD(t,"block_formats",a2.SemiColon);return{tooltip:yy(t,BS,CD),text:P.some(CD),icon:P.none(),isSelectedFor:a,getCurrentValue:P.none,getPreviewFor:p,onAction:j7(t),updateText:E,dataset:z,shouldHide:!1,isInvalid:Y=>!t.formatter.canApply(Y.format)}},RY=(t,a)=>o2(t,a,q9(t),BS,"BlocksTextUpdate"),LY=(t,a)=>{const p=l0(t,a,q9(t));t.ui.registry.addNestedMenuItem("blocks",{text:BS,onSetup:Vc(t),getSubmenuItems:()=>p.items.validateItems(p.getStyleItems())})},SD="Fonts",TD="System Font",eN=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],kD=t=>{const a=t.split(/\s*,\s*/);return ne(a,p=>p.replace(/^['"]+|['"]+$/g,""))},AD=(t,a)=>a.length>0&&we(a,p=>t.indexOf(p.toLowerCase())>-1),DY=(t,a)=>{if(t.indexOf("-apple-system")===0||a.length>0){const p=kD(t.toLowerCase());return AD(p,eN)||AD(p,a)}else return!1},MD=t=>{const a=()=>{const Ee=Mt=>Mt?kD(Mt)[0]:"",Be=t.queryCommandValue("FontName"),je=xe.data,et=Be?Be.toLowerCase():"",st=L8(t);return{matchOpt:Ve(je,Mt=>{const Xt=Mt.format;return Xt.toLowerCase()===et||Ee(Xt).toLowerCase()===Ee(et).toLowerCase()}).orThunk(()=>lt(DY(et,st),{title:TD,format:et})),font:Be}},p=Ee=>Be=>Be.exists(je=>je.format===Ee),E=()=>{const{matchOpt:Ee}=a();return Ee},z=Ee=>()=>P.some({tag:"div",styles:Ee.indexOf("dings")===-1?{"font-family":Ee}:{}}),Y=Ee=>()=>{t.undoManager.transact(()=>{t.focus(),t.execCommand("FontName",!1,Ee.format)})},re=Ee=>{const{matchOpt:Be,font:je}=a(),et=Be.fold(O(je),st=>st.title);go(Ee,md,{text:et}),Z7(t,{value:et})},xe=bD(t,"font_family_formats",a2.SemiColon);return{tooltip:yy(t,SD,TD),text:P.some(TD),icon:P.none(),isSelectedFor:p,getCurrentValue:E,getPreviewFor:z,onAction:Y,updateText:re,dataset:xe,shouldHide:!1,isInvalid:H}},$Y=(t,a)=>o2(t,a,MD(t),SD,"FontFamilyTextUpdate"),OY=(t,a)=>{const p=l0(t,a,MD(t));t.ui.registry.addNestedMenuItem("fontfamily",{text:a.shared.providers.translate(SD),onSetup:Vc(t),getSubmenuItems:()=>p.items.validateItems(p.getStyleItems())})},PY={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},tN=(()=>{const t="[0-9]+",p="[eE]"+("[+-]?"+t),E="\\.",z=xe=>`(?:${xe})?`,re=`[+-]?(?:${["Infinity",t+E+z(t)+z(p),E+t+z(p),t+z(p)].join("|")})`;return new RegExp(`^(${re})(.*)$`)})(),IY=(t,a)=>ge(a,p=>ge(PY[p],E=>t===E)),HS=(t,a)=>P.from(tN.exec(t)).bind(E=>{const z=Number(E[1]),Y=E[2];return IY(Y,a)?P.some({value:z,unit:Y}):P.none()}),NY=(t,a)=>HS(t,a).map(({value:p,unit:E})=>p+E),nN={tab:O(9),escape:O(27),enter:O(13),backspace:O(8),delete:O(46),left:O(37),up:O(38),right:O(39),down:O(40),space:O(32),home:O(36),end:O(35),pageUp:O(33),pageDown:O(34)},FY=(t,a,p)=>{let E=P.none();const z=rn=>rn.map(kn=>Fr.getValue(kn)).getOr(""),Y=Yd(t,"NodeChange SwitchMode",rn=>{const kn=rn.getComponent();E=P.some(kn),p.updateInputValue(kn),Co.set(kn,!t.selection.isEditable())}),re=rn=>({getComponent:O(rn)}),xe=q(C),Ee=Xr("custom-number-input-events"),Be=(rn,kn,Vn)=>{const hr=z(E),Yn=p.getNewValue(hr,rn),br=hr.length-`${Yn}`.length,Mr=E.map(Zr=>Zr.element.dom.selectionStart-br),ea=E.map(Zr=>Zr.element.dom.selectionEnd-br);p.onAction(Yn,Vn),E.each(Zr=>{Fr.setValue(Zr,Yn),kn&&(Mr.each(Do=>Zr.element.dom.selectionStart=Do),ea.each(Do=>Zr.element.dom.selectionEnd=Do))})},je=(rn,kn)=>Be((Vn,hr)=>Vn-hr,rn,kn),et=(rn,kn)=>Be((Vn,hr)=>Vn+hr,rn,kn),st=rn=>fr(rn.element).fold(P.none,kn=>(Ic(kn),P.some(!0))),mt=rn=>p1(rn.element)?(So(rn.element).each(kn=>Ic(kn)),P.some(!0)):P.none(),Mt=(rn,kn,Vn,hr)=>{const Yn=q(C),br=a.shared.providers.translate(Vn),Mr=Xr("altExecuting"),ea=Yd(t,"NodeChange SwitchMode",Do=>{Co.set(Do.getComponent(),!t.selection.isEditable())}),Zr=Do=>{Co.isDisabled(Do)||rn(!0)};return hl.sketch({dom:{tag:"button",attributes:{title:br,"aria-label":br},classes:hr.concat(kn)},components:[VA(kn,a.shared.providers.icons)],buttonBehaviours:gr([Co.config({}),jo(Mr,[Zv({onSetup:ea,getApi:re},Yn),eg({getApi:re},Yn),Xn(Ca(),(Do,Mo)=>{(Mo.event.raw.keyCode===nN.space()||Mo.event.raw.keyCode===nN.enter())&&(Co.isDisabled(Do)||rn(!1))}),Xn(xi(),Zr),Xn(Ko(),Zr)])]),eventOrder:{[Ca()]:[Mr,"keying"],[xi()]:[Mr,"alloy.base.behaviour"],[Ko()]:[Mr,"alloy.base.behaviour"]}})},Xt=Qa(Mt(rn=>je(!1,rn),"minus","Decrease font size",[])),Dn=Qa(Mt(rn=>et(!1,rn),"plus","Increase font size",[])),hn=Qa({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[sy.sketch({inputBehaviours:gr([Co.config({}),jo(Ee,[Zv({onSetup:Y,getApi:re},xe),eg({getApi:re},xe)]),jo("input-update-display-text",[Xn(md,(rn,kn)=>{Fr.setValue(rn,kn.event.text)}),Xn(sa(),rn=>{p.onAction(Fr.getValue(rn))}),Xn(Di(),rn=>{p.onAction(Fr.getValue(rn))})]),po.config({mode:"special",onEnter:rn=>(Be(D,!0,!0),P.some(!0)),onEscape:st,onUp:rn=>(et(!0,!1),P.some(!0)),onDown:rn=>(je(!0,!1),P.some(!0)),onLeft:(rn,kn)=>(kn.cut(),P.none()),onRight:(rn,kn)=>(kn.cut(),P.none())})])})],behaviours:gr([ko.config({}),po.config({mode:"special",onEnter:mt,onSpace:mt,onEscape:st}),jo("input-wrapper-events",[Xn($r(),rn=>{fe([Xt,Dn],kn=>{const Vn=zt.fromDom(kn.get(rn).element.dom);p1(Vn)&&hv(Vn)})})])])});return{dom:{tag:"div",classes:["tox-number-input"]},components:[Xt.asSpec(),hn.asSpec(),Dn.asSpec()],behaviours:gr([ko.config({}),po.config({mode:"flow",focusInside:te.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:rn=>p1(rn.element)?P.none():(Ic(rn.element),P.some(!0))})])}},ED="Font sizes",rN="12pt",BY={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},HY={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},oN=(t,a)=>{const p=Math.pow(10,a);return Math.round(t*p)/p},zY=(t,a)=>/[0-9.]+px$/.test(t)?oN(parseInt(t,10)*72/96,a||0)+"pt":Ft(HY,t).getOr(t),VY=t=>Ft(BY,t).getOr(""),aN=t=>{const a=()=>{let Ee=P.none();const Be=xe.data,je=t.queryCommandValue("FontSize");if(je)for(let et=3;Ee.isNone()&&et>=0;et--){const st=zY(je,et),mt=VY(st);Ee=Ve(Be,Mt=>Mt.format===je||Mt.format===st||Mt.format===mt)}return{matchOpt:Ee,size:je}},p=Ee=>Be=>Be.exists(je=>je.format===Ee),E=()=>{const{matchOpt:Ee}=a();return Ee},z=O(P.none),Y=Ee=>()=>{t.undoManager.transact(()=>{t.focus(),t.execCommand("FontSize",!1,Ee.format)})},re=Ee=>{const{matchOpt:Be,size:je}=a(),et=Be.fold(O(je),st=>st.title);go(Ee,md,{text:et}),VV(t,{value:et})},xe=bD(t,"font_size_formats",a2.Space);return{tooltip:yy(t,ED,rN),text:P.some(rN),icon:P.none(),isSelectedFor:p,getPreviewFor:z,getCurrentValue:E,onAction:Y,updateText:re,dataset:xe,shouldHide:!1,isInvalid:H}},UY=(t,a)=>o2(t,a,aN(t),ED,"FontSizeTextUpdate"),WY=t=>{var a;const p={step:1};return(a={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[t])!==null&&a!==void 0?a:p},GY=16,ZY=t=>t>=0,sN=t=>{const a=()=>t.queryCommandValue("FontSize");return{updateInputValue:E=>go(E,md,{text:a()}),onAction:(E,z)=>t.execCommand("FontSize",!1,E,{skip_focus:!z}),getNewValue:(E,z)=>{HS(E,["unsupportedLength","empty"]);const Y=a(),re=HS(E,["unsupportedLength","empty"]).or(HS(Y,["unsupportedLength","empty"])),xe=re.map(st=>st.value).getOr(GY),Ee=A8(t),Be=re.map(st=>st.unit).filter(st=>st!=="").getOr(Ee),je=z(xe,WY(Be).step),et=`${ZY(je)?je:xe}${Be}`;return et!==Y&&UV(t,{value:et}),et}}},jY=(t,a)=>FY(t,a,sN(t)),YY=(t,a)=>{const p=l0(t,a,aN(t));t.ui.registry.addNestedMenuItem("fontsize",{text:ED,onSetup:Vc(t),getSubmenuItems:()=>p.items.validateItems(p.getStyleItems())})},RM="Formats",iN=(t,a)=>{const p="Paragraph",E=re=>()=>t.formatter.match(re),z=re=>()=>{const xe=t.formatter.get(re);return xe!==void 0?P.some({tag:xe.length>0&&(xe[0].inline||xe[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(re))}):P.none()},Y=re=>{const xe=et=>tM(et)?ie(et.items,xe):RI(et)?[{title:et.title,format:et.format}]:[],Ee=ie(DI(t),xe),je=Q9(t,O(Ee)).fold(O(p),et=>et.title);go(re,md,{text:je}),HV(t,{value:je})};return{tooltip:yy(t,RM,p),text:P.some(p),icon:P.none(),isSelectedFor:E,getCurrentValue:P.none,getPreviewFor:z,onAction:j7(t),updateText:Y,shouldHide:w8(t),isInvalid:re=>!t.formatter.canApply(re.format),dataset:a}},lN=(t,a)=>{const p={type:"advanced",...a.styles};return o2(t,a,iN(t,p),RM,"StylesTextUpdate")},cN=(t,a)=>{const p={type:"advanced",...a.styles},E=l0(t,a,iN(t,p));t.ui.registry.addNestedMenuItem("styles",{text:RM,onSetup:Vc(t),getSubmenuItems:()=>E.items.validateItems(E.getStyleItems())})},KY=O([qn("toggleClass"),qn("fetch"),qf("onExecute"),En("getHotspot",P.some),En("getAnchorOverrides",O({})),Om(),qf("onItemExecute"),Ia("lazySink"),qn("dom"),Sa("onOpen"),Fi("splitDropdownBehaviours",[pi,po,ko]),En("matchWidth",!1),En("useMinWidth",!1),En("eventOrder",{}),Ia("role")].concat(kR())),XY=Fl({factory:hl,schema:[qn("dom")],name:"arrow",defaults:()=>({buttonBehaviours:gr([ko.revoke()])}),overrides:t=>({dom:{tag:"span",attributes:{role:"presentation"}},action:a=>{a.getSystem().getByUid(t.uid).each(kh)},buttonBehaviours:gr([qo.config({toggleOnExecute:!1,toggleClass:t.toggleClass})])})}),JY=Fl({factory:hl,schema:[qn("dom")],name:"button",defaults:()=>({buttonBehaviours:gr([ko.revoke()])}),overrides:t=>({dom:{tag:"span",attributes:{role:"presentation"}},action:a=>{a.getSystem().getByUid(t.uid).each(p=>{t.onExecute(p,a)})}})}),s2=O([XY,JY,Fc({factory:{sketch:t=>({uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}})},schema:[qn("text")],name:"aria-descriptor"}),Af({schema:[c1()],name:"menu",defaults:t=>({onExecute:(a,p)=>{a.getSystem().getByUid(t.uid).each(E=>{t.onItemExecute(E,a,p)})}})}),fO()]),QY=(t,a,p,E)=>{const z=je=>{da.getCurrent(je).each(et=>{Na.highlightFirst(et),po.focusIn(et)})},Y=je=>{SR(t,D,je,E,z,zc.HighlightMenuAndItem).get(C)},re=je=>(Y(je),P.some(!0)),xe=je=>{const et=zh(je,t,"button");return kh(et),P.some(!0)},Ee={...bs([ms((je,et)=>{gs(je,t,"aria-descriptor").each(mt=>{const Mt=Xr("aria");Lr(mt.element,"id",Mt),Lr(je.element,"aria-describedby",Mt)})})]),...Gh(P.some(Y))},Be={repositionMenus:je=>{qo.isOn(je)&&gO(je)}};return{uid:t.uid,dom:t.dom,components:a,apis:Be,eventOrder:{...t.eventOrder,[Ci()]:["disabling","toggling","alloy.base.behaviour"]},events:Ee,behaviours:Si(t.splitDropdownBehaviours,[pi.config({others:{sandbox:je=>{const et=zh(je,t,"arrow");return TR(t,je,{onOpen:()=>{qo.on(et),qo.on(je)},onClose:()=>{qo.off(et),qo.off(je)}})}}}),po.config({mode:"special",onSpace:xe,onEnter:xe,onDown:re}),ko.config({}),qo.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:t.role.getOr("button"),"aria-haspopup":!0}}}},LM=Bl({name:"SplitDropdown",configFields:KY(),partFields:s2(),factory:QY,apis:{repositionMenus:(t,a)=>t.repositionMenus(a)}}),uN=t=>({isEnabled:()=>!Co.isDisabled(t),setEnabled:a=>Co.set(t,!a),setText:a=>go(t,md,{text:a}),setIcon:a=>go(t,r0,{icon:a})}),qY=t=>({setActive:a=>{qo.set(t,a)},isActive:()=>qo.isOn(t),isEnabled:()=>!Co.isDisabled(t),setEnabled:a=>Co.set(t,!a),setText:a=>go(t,md,{text:a}),setIcon:a=>go(t,r0,{icon:a})}),fN=(t,a)=>t.map(p=>({"aria-label":a.translate(p),title:a.translate(p)})).getOr({}),dN=Xr("focus-button"),_D=(t,a,p,E,z)=>{const Y=a.map(xe=>Qa(DP(xe,"tox-tbtn",z))),re=t.map(xe=>Qa(n0(xe,z.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(a.isSome()?["tox-tbtn--select"]:[]),attributes:fN(p,z)},components:Ox([re.map(xe=>xe.asSpec()),Y.map(xe=>xe.asSpec())]),eventOrder:{[fo()]:["focusing","alloy.base.behaviour",hy],[Cu()]:[hy,"toolbar-group-button-events"]},buttonBehaviours:gr([Bi.toolbarButton(z.isDisabled),Qi(),jo(hy,[ms((xe,Ee)=>bS(xe)),Xn(md,(xe,Ee)=>{Y.bind(Be=>Be.getOpt(xe)).each(Be=>{Ho.set(Be,[ai(z.translate(Ee.event.text))])})}),Xn(r0,(xe,Ee)=>{re.bind(Be=>Be.getOpt(xe)).each(Be=>{Ho.set(Be,[n0(Ee.event.icon,z.icons)])})}),Xn(fo(),(xe,Ee)=>{Ee.event.prevent(),pa(xe,dN)})])].concat(E.getOr([])))}},eK=(t,a,p,E)=>{const z=a.shared,Y=q(C),re={toolbarButtonBehaviours:[],getApi:uN,onSetup:t.onSetup},xe=[jo("toolbar-group-button-events",[Zv(re,Y),eg(re,Y)])];return i0.sketch({lazySink:z.getSink,fetch:()=>cc.nu(Ee=>{Ee(ne(p(t.items),CM))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:_D(t.icon,t.text,t.tooltip,P.some(xe),z.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:E}}}})},DM=(t,a,p)=>{var E;const z=q(C),Y=_D(t.icon,t.text,t.tooltip,P.none(),p);return hl.sketch({dom:Y.dom,components:Y.components,eventOrder:RP,buttonBehaviours:{...gr([jo("toolbar-button-events",[_P({onAction:t.onAction,getApi:a.getApi}),Zv(a,z),eg(a,z)]),Bi.toolbarButton(()=>!t.enabled||p.isDisabled()),Qi()].concat(a.toolbarButtonBehaviours)),[hy]:(E=Y.buttonBehaviours)===null||E===void 0?void 0:E[hy]}})},tK=(t,a)=>hN(t,a,[]),hN=(t,a,p)=>DM(t,{toolbarButtonBehaviours:p.length>0?[jo("toolbarButtonWith",p)]:[],getApi:uN,onSetup:t.onSetup},a),mN=(t,a)=>RD(t,a,[]),RD=(t,a,p)=>DM(t,{toolbarButtonBehaviours:[Ho.config({}),qo.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(p.length>0?[jo("toolbarToggleButtonWith",p)]:[]),getApi:qY,onSetup:t.onSetup},a),nK=(t,a,p)=>E=>cc.nu(z=>a.fetch(z)).map(z=>P.from(mA(hs(pR(Xr("menu-value"),z,Y=>{a.onItemAction(t(E),Y)},a.columns,a.presets,Yh.CLOSE_ON_EXECUTE,a.select.getOr(H),p),{movement:uA(a.columns,a.presets),menuBehaviours:YC.unnamedEvents(a.columns!=="auto"?[]:[ms((Y,re)=>{V5(Y,4,z8(a.presets)).each(({numRows:xe,numColumns:Ee})=>{po.setGridSize(Y,xe,Ee)})})])})))),rK=(t,a)=>{const p=Y=>({isEnabled:()=>!Co.isDisabled(Y),setEnabled:re=>Co.set(Y,!re),setIconFill:(re,xe)=>{mi(Y.element,`svg path[class="${re}"], rect[class="${re}"]`).each(Ee=>{Lr(Ee,"fill",xe)})},setActive:re=>{Lr(Y.element,"aria-pressed",re),mi(Y.element,"span").each(xe=>{Y.getSystem().getByDom(xe).each(Ee=>qo.set(Ee,re))})},isActive:()=>mi(Y.element,"span").exists(re=>Y.getSystem().getByDom(re).exists(qo.isOn)),setText:re=>mi(Y.element,"span").each(xe=>Y.getSystem().getByDom(xe).each(Ee=>go(Ee,md,{text:re}))),setIcon:re=>mi(Y.element,"span").each(xe=>Y.getSystem().getByDom(xe).each(Ee=>go(Ee,r0,{icon:re}))),setTooltip:re=>{const xe=a.providers.translate(re);jl(Y.element,{"aria-label":xe,title:xe})}}),E=q(C),z={getApi:p,onSetup:t.onSetup};return LM.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...fN(t.tooltip,a.providers)}},onExecute:Y=>{const re=p(Y);re.isEnabled()&&t.onAction(re)},onItemExecute:(Y,re,xe)=>{},splitDropdownBehaviours:gr([Bi.splitButton(a.providers.isDisabled),Qi(),jo("split-dropdown-events",[ms((Y,re)=>bS(Y)),Xn(dN,ko.focus),Zv(z,E),eg(z,E)]),lS.config({})]),eventOrder:{[Cu()]:["alloy.base.behaviour","split-dropdown-events"]},toggleClass:"tox-tbtn--enabled",lazySink:a.getSink,fetch:nK(p,t,a.providers),parts:{menu:Mx(!1,t.columns,t.presets)},components:[LM.parts.button(_D(t.icon,t.text,P.none(),P.some([qo.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),a.providers)),LM.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:q_("chevron-down",a.providers.icons)},buttonBehaviours:gr([Bi.splitButton(a.providers.isDisabled),Qi(),Ek()])}),LM.parts["aria-descriptor"]({text:a.providers.translate("To open the popup, press Shift+Enter")})]})},oK=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],zS=(t,a)=>(p,E,z)=>{const Y=t(p).mapError(re=>wl(re)).getOrDie();return a(Y,E,z)},aK={button:zS(B5,(t,a)=>tK(t,a.shared.providers)),togglebutton:zS(i7,(t,a)=>mN(t,a.shared.providers)),menubutton:zS(qL,(t,a)=>wS(t,"tox-tbtn",a,P.none(),!1)),splitbutton:zS(Mj,(t,a)=>rK(t,a.shared)),grouptoolbarbutton:zS(kj,(t,a,p)=>{const E=p.ui.registry.getAll().buttons,z=re=>OM(p,{buttons:E,toolbar:re,allowToolbarGroups:!1},a,P.none()),Y={[vv]:a.shared.header.isPositionedAtTop()?tf.TopToBottom:tf.BottomToTop};switch(Cx(p)){case af.floating:return eK(t,a,z,Y);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})},sK=(t,a,p)=>Ft(aK,t.type).fold(()=>(console.error("skipping button defined by",t),P.none()),E=>P.some(E(t,a,p))),LD={styles:lN,fontsize:UY,fontsizeinput:jY,fontfamily:$Y,blocks:RY,align:J9},iK=t=>{const a=ne(oK,p=>{const E=Ce(p.items,z=>pn(t,z)||pn(LD,z));return{name:p.name,items:E}});return Ce(a,p=>p.items.length>0)},lK=t=>{const a=t.split("|");return ne(a,p=>({items:p.trim().split(" ")}))},cK=t=>x(t,a=>pn(a,"name")&&pn(a,"items")),uK=t=>{const a=t.toolbar,p=t.buttons;return a===!1?[]:a===void 0||a===!0?iK(p):A(a)?lK(a):cK(a)?a:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},$M=(t,a,p,E,z,Y)=>Ft(a,p.toLowerCase()).orThunk(()=>Y.bind(re=>We(re,xe=>Ft(a,xe+p.toLowerCase())))).fold(()=>Ft(LD,p.toLowerCase()).map(re=>re(t,z)),re=>re.type==="grouptoolbarbutton"&&!E?(console.warn(`Ignoring the '${p}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),P.none()):sK(re,z,t)),OM=(t,a,p,E)=>{const z=uK(a),Y=ne(z,re=>{const xe=ie(re.items,Ee=>Ee.trim().length===0?[]:$M(t,a.buttons,Ee,a.allowToolbarGroups,p,E).toArray());return{title:P.from(t.translate(re.name)),items:xe}});return Ce(Y,re=>re.items.length>0)},VS=(t,a,p,E)=>{const z=a.mainUi.outerContainer,Y=p.toolbar,re=p.buttons;if(x(Y,A)){const xe=Y.map(Ee=>{const Be={toolbar:Ee,buttons:re,allowToolbarGroups:p.allowToolbarGroups};return OM(t,Be,E,P.none())});Ss.setToolbars(z,xe)}else Ss.setToolbar(z,OM(t,p,E,P.none()))},US=hf(),gN=US.os.isiOS()&&US.os.version.major<=12,fK=(t,a)=>{const{uiMotherships:p}=a,E=t.dom;let z=t.getWin();const Y=t.getDoc().documentElement,re=q(Ma(z.innerWidth,z.innerHeight)),xe=q(Ma(Y.offsetWidth,Y.offsetHeight)),Ee=()=>{const st=re.get();(st.left!==z.innerWidth||st.top!==z.innerHeight)&&(re.set(Ma(z.innerWidth,z.innerHeight)),nA(t))},Be=()=>{const st=t.getDoc().documentElement,mt=xe.get();(mt.left!==st.offsetWidth||mt.top!==st.offsetHeight)&&(xe.set(Ma(st.offsetWidth,st.offsetHeight)),nA(t))},je=st=>{FV(t,st)};E.bind(z,"resize",Ee),E.bind(z,"scroll",je);const et=Pb(zt.fromDom(t.getBody()),"load",Be);t.on("hide",()=>{fe(p,st=>{To(st.element,"display","none")})}),t.on("show",()=>{fe(p,st=>{Bo(st.element,"display")})}),t.on("NodeChange",Be),t.on("remove",()=>{et.unbind(),E.unbind(z,"resize",Ee),E.unbind(z,"scroll",je),z=null})},dK=(t,a,p)=>{Km(t)&&Nh(p.mainUi.mothership.element,p.popupUi.mothership),dl(a,p.dialogUi.mothership)};var hK=Object.freeze({__proto__:null,render:(t,a,p,E,z)=>{const{mainUi:Y,uiMotherships:re}=a,xe=q(0),Ee=Y.outerContainer;AY(t);const Be=zt.fromDom(z.targetNode),je=Fa(Yo(Be));Nh(Be,Y.mothership),dK(t,je,a),t.on("SkinLoaded",()=>{Ss.setSidebar(Ee,p.sidebar,Pk(t)),VS(t,a,p,E),xe.set(t.getWin().innerWidth),Ss.setMenubar(Ee,EM(t,p)),Ss.setViews(Ee,p.views),fK(t,a)});const et=Ss.getSocket(Ee).getOrDie("Could not find expected socket element");if(gN){Mi(et.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const Xt=mS(()=>{t.dispatch("ScrollContent")},20),Dn=sc(et.element,"scroll",Xt.throttle);t.on("remove",Dn.unbind)}T7(t,a),t.addCommand("ToggleSidebar",(Xt,Dn)=>{Ss.toggleSidebar(Ee,Dn),t.dispatch("ToggleSidebar")}),t.addQueryValueHandler("ToggleSidebar",()=>{var Xt;return(Xt=Ss.whichSidebar(Ee))!==null&&Xt!==void 0?Xt:""}),t.addCommand("ToggleView",(Xt,Dn)=>{if(Ss.toggleView(Ee,Dn)){const hn=Ee.element;Y.mothership.broadcastOn([rd()],{target:hn}),fe(re,rn=>{rn.broadcastOn([rd()],{target:hn})}),l(Ss.whichView(Ee))&&(t.focus(),t.nodeChanged(),Ss.refreshToolbar(Ee))}}),t.addQueryValueHandler("ToggleView",()=>{var Xt;return(Xt=Ss.whichView(Ee))!==null&&Xt!==void 0?Xt:""});const st=Cx(t),mt=()=>{Ss.refreshToolbar(a.mainUi.outerContainer)};(st===af.sliding||st===af.floating)&&t.on("ResizeWindow ResizeEditor ResizeContent",()=>{const Xt=t.getWin().innerWidth;Xt!==xe.get()&&(mt(),xe.set(Xt))});const Mt={setEnabled:Xt=>{Qk(a,!Xt)},isEnabled:()=>!Co.isDisabled(Ee)};return{iframeContainer:et.element.dom,editorContainer:Ee.element.dom,api:Mt}}});const DD=t=>/^[0-9\.]+(|px)$/i.test(""+t)?P.some(parseInt(""+t,10)):P.none(),i2=t=>v(t)?t+"px":t,WS=(t,a,p)=>{const E=a.filter(Y=>tt>Y);return E.or(z).getOr(t)},pN=t=>{const a=_k(t),p=wx(t),E=o5(t);return DD(a).map(z=>WS(z,p,E))},vN=t=>pN(t).getOr(_k(t)),$D=t=>{const a=FC(t),p=r5(t),E=Rk(t);return DD(a).map(z=>WS(z,p,E))},mK=t=>$D(t).getOr(FC(t)),{ToolbarLocation:PM,ToolbarMode:yN}=Gz,gK=40,pK=(t,a,p,E,z)=>{const{mainUi:Y,uiMotherships:re}=p,xe=oy.DOM,Ee=kx(t),Be=zC(t),je=Rk(t).or($D(t)),et=E.shared.header,st=et.isPositionedAtTop,mt=Cx(t),Mt=mt===yN.sliding||mt===yN.floating,Xt=q(!1),Dn=()=>Xt.get()&&!t.removed,hn=xo=>Mt?xo.fold(O(0),Ea=>Ea.components().length>1?Ls(Ea.components()[1].element):0):0,rn=xo=>{switch(BC(t)){case PM.auto:const Ea=Ss.getToolbar(Y.outerContainer),Ar=hn(Ea),no=Ls(xo.element)-Ar,$o=Js(a);if($o.y>no)return"top";{const wo=gn(a),Vo=Math.max(wo.dom.scrollHeight,Ls(wo));return $o.bottom{z.on(Ea=>{Ti.setModes(Ea,[xo]),et.setDockingMode(xo);const Ar=st()?tf.TopToBottom:tf.BottomToTop;Lr(Ea.element,vv,Ar)})},Vn=()=>{z.on(xo=>{const Ea=je.getOrThunk(()=>{const Ar=DD(Ms(ss(),"margin-left")).getOr(0);return ci(ss())-al(a).left+Ar});To(xo.element,"max-width",Ea+"px")})},hr=xo=>{z.on(Ea=>{const Ar=Ss.getToolbar(Y.outerContainer),no=hn(Ar),$o=Js(a),{top:Po,left:wo}=Yn(t,Y.outerContainer.element).fold(()=>({top:st()?Math.max($o.y-Ls(Ea.element)+no,0):$o.bottom,left:$o.x}),Ra=>{var Rl;const Fu=Js(Ra),yd=(Rl=Ra.dom.scrollTop)!==null&&Rl!==void 0?Rl:0,ah=Qt(Ra,ss()),p0=ah?Math.max($o.y-Ls(Ea.element)+no,0):$o.y-Fu.y+yd-Ls(Ea.element)+no;return{top:st()?p0:$o.bottom,left:ah?$o.x:$o.x-Fu.x}}),Vo={position:"absolute",left:Math.round(wo)+"px",top:Math.round(Po)+"px"},ys=xo.map(Ra=>{const Rl=ll(),Fu=150,yd=window.innerWidth-(wo-Rl.left);return{width:Math.max(Math.min(Ra,yd),Fu)+"px"}}).getOr({});Mi(Y.outerContainer.element,{...Vo,...ys})})},Yn=(xo,Ea)=>Km(xo)?py(Ea):P.none(),br=()=>{fe(re,xo=>{xo.broadcastOn([tp()],{})})},Mr=()=>{if(Ee)return P.none();if(al(Y.outerContainer.element).left+Wu(Y.outerContainer.element)>=window.innerWidth-gK||Rs(Y.outerContainer.element,"width").isSome()){To(Y.outerContainer.element,"position","absolute"),To(Y.outerContainer.element,"left","0px"),Bo(Y.outerContainer.element,"width");const Ea=Wu(Y.outerContainer.element);return P.some(Ea)}else return P.none()},ea=xo=>{if(!Dn())return;Ee||Vn();const Ea=Ee?P.none():Mr();Mt&&Ss.refreshToolbar(Y.outerContainer),Ee||hr(Ea),Be&&z.on(xo),br()},Zr=()=>Ee||!Be||!Dn()?!1:z.get().exists(xo=>{const Ea=et.getDockingMode(),Ar=rn(xo);return Ar!==Ea?(kn(Ar),!0):!1});return{isVisible:Dn,isPositionedAtTop:st,show:()=>{Xt.set(!0),To(Y.outerContainer.element,"display","flex"),xe.addClass(t.getBody(),"mce-edit-focus"),fe(re,xo=>{Bo(xo.element,"display")}),Zr(),Km(t)?ea(xo=>Ti.isDocked(xo)?Ti.reset(xo):Ti.refresh(xo)):ea(Ti.refresh)},hide:()=>{Xt.set(!1),To(Y.outerContainer.element,"display","none"),xe.removeClass(t.getBody(),"mce-edit-focus"),fe(re,xo=>{To(xo.element,"display","none")})},update:ea,updateMode:()=>{Zr()&&ea(Ti.reset)},repositionPopups:br}},bN=(t,a)=>{const p=Js(t);return{pos:a?p.y:p.bottom,bounds:p}},vK=(t,a,p,E)=>{const z=q(bN(a,p.isPositionedAtTop())),Y=Be=>{const{pos:je,bounds:et}=bN(a,p.isPositionedAtTop()),{pos:st,bounds:mt}=z.get(),Mt=et.height!==mt.height||et.width!==mt.width;z.set({pos:je,bounds:et}),Mt&&nA(t,Be),p.isVisible()&&(st!==je?p.update(Ti.reset):Mt&&(p.updateMode(),p.repositionPopups()))};E||(t.on("activate",p.show),t.on("deactivate",p.hide)),t.on("SkinLoaded ResizeWindow",()=>p.update(Ti.reset)),t.on("NodeChange keydown",Be=>{requestAnimationFrame(()=>Y(Be))});let re=0;const xe=oL(()=>p.update(Ti.refresh),33);t.on("ScrollWindow",()=>{const Be=ll().left;Be!==re&&(re=Be,xe.throttle()),p.updateMode()}),Km(t)&&t.on("ElementScroll",Be=>{p.update(Ti.refresh)});const Ee=Oh();Ee.set(Pb(zt.fromDom(t.getBody()),"load",Be=>Y(Be.raw))),t.on("remove",()=>{Ee.clear()})};var yK=Object.freeze({__proto__:null,render:(t,a,p,E,z)=>{const{mainUi:Y}=a,re=ia(),xe=zt.fromDom(z.targetNode),Ee=pK(t,xe,a,E,re),Be=T8(t);MY(t);const je=()=>{if(re.isSet()){Ee.show();return}re.set(Ss.getHeader(Y.outerContainer).getOrDie());const st=p5(t);Km(t)?(Nh(xe,Y.mothership),Nh(xe,a.popupUi.mothership)):dl(st,Y.mothership),dl(st,a.dialogUi.mothership),VS(t,a,p,E),Ss.setMenubar(Y.outerContainer,EM(t,p)),Ee.show(),vK(t,xe,Ee,Be),t.nodeChanged()};t.on("show",je),t.on("hide",Ee.hide),Be||(t.on("focus",je),t.on("blur",Ee.hide)),t.on("init",()=>{(t.hasFocus()||Be)&&je()}),T7(t,a);const et={show:je,hide:Ee.hide,setEnabled:st=>{Qk(a,!st)},isEnabled:()=>!Co.isDisabled(Y.outerContainer)};return{editorContainer:Y.outerContainer.element.dom,api:et}}});const bK=()=>{const t=ia(),a=ia(),p=ia();return{dialogUi:t,popupUi:a,mainUi:p,getUiMotherships:()=>{const Y=t.get().map(xe=>xe.mothership),re=a.get().map(xe=>xe.mothership);return Y.fold(()=>re.toArray(),xe=>re.fold(()=>[xe],Ee=>Qt(xe.element,Ee.element)?[xe]:[xe,Ee]))},lazyGetInOuterOrDie:(Y,re)=>()=>p.get().bind(xe=>re(xe.outerContainer)).getOrDie(`Could not find ${Y} element in OuterContainer`)}},xK="contexttoolbar-show",OD="contexttoolbar-hide",wK=t=>({hide:()=>pa(t,wu()),getValue:()=>Fr.getValue(t)}),PD=(t,a)=>Xn(lL,(p,E)=>{const z=t.get(p),Y=wK(z);a.onAction(Y,E.event.buttonApi)}),CK=(t,a,p)=>{const{primary:E,...z}=a.original,Y=Ja(B5({...z,type:"button",onAction:C}));return hN(Y,p,[PD(t,a)])},SK=(t,a,p)=>{const{primary:E,...z}=a.original,Y=Ja(i7({...z,type:"togglebutton",onAction:C}));return RD(Y,p,[PD(t,a)])},TK=t=>t.type==="contextformtogglebutton",kK=(t,a,p)=>TK(a)?SK(t,a,p):CK(t,a,p),AK=(t,a,p)=>{const E=ne(a,re=>Qa(kK(t,re,p)));return{asSpecs:()=>ne(E,re=>re.asSpec()),findPrimary:re=>We(a,(xe,Ee)=>xe.primary?P.from(E[Ee]).bind(Be=>Be.getOpt(re)).filter(k(Co.isDisabled)):P.none())}},l2=(t,a)=>{const p=t.label.fold(()=>({}),Y=>({"aria-label":Y})),E=Qa(sy.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:t.initValue(),inputAttributes:p,selectOnFocus:!0,inputBehaviours:gr([po.config({mode:"special",onEnter:Y=>z.findPrimary(Y).map(re=>(kh(re),!0)),onLeft:(Y,re)=>(re.cut(),P.none()),onRight:(Y,re)=>(re.cut(),P.none())})])})),z=AK(E,t.commands,a);return[{title:P.none(),items:[E.asSpec()]},{title:P.none(),items:z.asSpecs()}]},EK={renderContextForm:(t,a,p)=>SM({type:t,uid:Xr("context-toolbar"),initGroups:l2(a,p),onEscape:P.none,cyclicKeying:!0,providers:p}),buildInitGroups:l2},xN=(t,a,p)=>a.bottom-t.y>=p&&t.bottom-a.y>=p,wN=t=>{const a=t.getBoundingClientRect();if(a.height<=0&&a.width<=0){const p=bo(zt.fromDom(t.startContainer),t.startOffset).element;return(kt(p)?Bn(p):P.some(p)).filter(St).map(z=>z.dom.getBoundingClientRect()).getOr(a)}else return a},GS=t=>{const a=t.selection.getRng(),p=wN(a);if(t.inline){const E=ll();return Hs(E.left+p.left,E.top+p.top,p.width,p.height)}else{const E=Xc(zt.fromDom(t.getBody()));return Hs(E.x+p.left,E.y+p.top,p.width,p.height)}},CN=(t,a)=>a.filter(p=>Wa(p)&&De(p)).map(Xc).getOrThunk(()=>GS(t)),SN=(t,a,p)=>{const E=Math.max(t.x+p,a.x),z=Math.min(t.right-p,a.right);return{x:E,width:z-E}},_K=(t,a,p,E,z,Y)=>{const re=zt.fromDom(t.getContainer()),xe=mi(re,".tox-editor-header").getOr(re),Ee=Js(xe),Be=Ee.y>=a.bottom,je=E&&!Be;if(t.inline&&je)return{y:Math.max(Ee.bottom+Y,p.y),bottom:p.bottom};if(t.inline&&!je)return{y:p.y,bottom:Math.min(Ee.y-Y,p.bottom)};const et=z==="line"?Js(re):a;return je?{y:Math.max(Ee.bottom+Y,p.y),bottom:Math.min(et.bottom-Y,p.bottom)}:{y:Math.max(et.y+Y,p.y),bottom:Math.min(Ee.y-Y,p.bottom)}},by=(t,a,p,E=0)=>{const z=B0(window),Y=Js(zt.fromDom(t.getContentAreaContainer())),re=Tx(t)||Fk(t)||HC(t),{x:xe,width:Ee}=SN(Y,z,E);if(t.inline&&!re)return Hs(xe,z.y,Ee,z.height);{const Be=a.header.isPositionedAtTop(),{y:je,bottom:et}=_K(t,Y,z,Be,p,E);return Hs(xe,je,Ee,et-je)}},xy=12,NM={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},ID={maxHeightFunction:pv(),maxWidthFunction:iD()},TN=(t,a)=>{const p=t.selection.getRng(),E=bo(zt.fromDom(p.startContainer),p.startOffset);return p.startContainer===p.endContainer&&p.startOffset===p.endOffset-1&&Qt(E.element,a)},RK=(t,a,p)=>{const E=Rs(t,"position");To(t,"position",a);const z=p(t);return E.each(Y=>To(t,"position",Y)),z},ND=t=>t==="node",LK=(t,a,p,E,z)=>{const Y=GS(t),re=E.lastElement().exists(xe=>Qt(p,xe));if(TN(t,p))return re?_L:eh;if(re)return RK(a,E.getMode(),()=>xN(Y,Js(a),-20)&&!E.isReposition()?bZ:_L);{const xe=E.getMode()==="fixed"?z.y+ll().top:z.y,Ee=Ls(a)+xy;return xe+Ee<=Y.y?eh:Jx}},DK=(t,a,p,E)=>{const z=Ee=>(Be,je,et,st,mt)=>{const Mt=LK(t,st,Ee,p,mt),Xt={...Be,y:mt.y,height:mt.height};return{...Mt(Xt,je,et,st,mt),alwaysFit:!0}},Y=Ee=>ND(E)?[z(Ee)]:[];return a?{onLtr:Ee=>[Yi,ji,Ml,Cc,Il,oc].concat(Y(Ee)),onRtl:Ee=>[Yi,Ml,ji,Il,Cc,oc].concat(Y(Ee))}:{onLtr:Ee=>[oc,Yi,Cc,ji,Il,Ml].concat(Y(Ee)),onRtl:Ee=>[oc,Yi,Il,Ml,Cc,ji].concat(Y(Ee))}},$K=(t,a,p,E)=>a==="line"?{bubble:Nd(xy,0,NM),layouts:{onLtr:()=>[gw],onRtl:()=>[m1]},overrides:ID}:{bubble:Nd(0,xy,NM,1/xy),layouts:DK(t,p,E,a),overrides:ID},FD=(t,a)=>{const p=Ce(a,Y=>Y.predicate(t.dom)),{pass:E,fail:z}=ye(p,Y=>Y.type==="contexttoolbar");return{contextToolbars:E,contextForms:z}},OK=t=>{if(t.length<=1)return t;{const a=Y=>ge(t,re=>re.position===Y),p=Y=>Ce(t,re=>re.position===Y),E=a("selection"),z=a("node");if(E||z)if(z&&E){const Y=p("node"),re=ne(p("selection"),xe=>({...xe,position:"node"}));return Y.concat(re)}else return p(E?"selection":"node");else return p("line")}},kN=t=>{if(t.length<=1)return t;{const a=E=>Ve(t,z=>z.position===E);return a("selection").orThunk(()=>a("node")).orThunk(()=>a("line")).map(E=>E.position).fold(()=>[],E=>Ce(t,z=>z.position===E))}},FM=(t,a,p)=>{const E=FD(t,a);if(E.contextForms.length>0)return P.some({elem:t,toolbars:[E.contextForms[0]]});{const z=FD(t,p);if(z.contextForms.length>0)return P.some({elem:t,toolbars:[z.contextForms[0]]});if(E.contextToolbars.length>0||z.contextToolbars.length>0){const Y=OK(E.contextToolbars.concat(z.contextToolbars));return P.some({elem:t,toolbars:Y})}else return P.none()}},AN=(t,a,p)=>t(a)?P.none():Kt(a,E=>{if(St(E)){const{contextToolbars:z,contextForms:Y}=FD(E,p.inNodeScope),re=Y.length>0?Y:kN(z);return re.length>0?P.some({elem:E,toolbars:re}):P.none()}else return P.none()},t),MN=(t,a)=>{const p=zt.fromDom(a.getBody()),E=re=>Qt(re,p),z=re=>!E(re)&&!nn(p,re),Y=zt.fromDom(a.selection.getNode());return z(Y)?P.none():FM(Y,t.inNodeScope,t.inEditorScope).orThunk(()=>AN(E,Y,t))},BD=(t,a)=>{const p={},E=[],z=[],Y={},re={},xe=(je,et)=>{const st=Ja(dV(et));p[je]=st,st.launch.map(mt=>{Y["form:"+je]={...et.launch,type:mt.type==="contextformtogglebutton"?"togglebutton":"button",onAction:()=>{a(st)}}}),st.scope==="editor"?z.push(st):E.push(st),re[je]=st},Ee=(je,et)=>{mV(et).each(st=>{et.scope==="editor"?z.push(st):E.push(st),re[je]=st})},Be=ot(t);return fe(Be,je=>{const et=t[je];et.type==="contextform"?xe(je,et):et.type==="contexttoolbar"&&Ee(je,et)}),{forms:p,inNodeScope:E,inEditorScope:z,lookupTable:re,formNavigators:Y}},EN=Xr("forward-slide"),HD=Xr("backward-slide"),zD=Xr("change-slide-event"),VD="tox-pop--resizing",BM=t=>{const a=q([]);return Ws.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:p=>{a.set([]),Ws.getContent(p).each(E=>{Bo(E.element,"visibility")}),Is(p.element,VD),Bo(p.element,"width")},inlineBehaviours:gr([jo("context-toolbar-events",[Ed(Ii(),(p,E)=>{E.event.raw.propertyName==="width"&&(Is(p.element,VD),Bo(p.element,"width"))}),Xn(zD,(p,E)=>{const z=p.element;Bo(z,"width");const Y=ci(z);Ws.setContent(p,E.event.contents),hi(z,VD);const re=ci(z);To(z,"width",Y+"px"),Ws.getContent(p).each(xe=>{E.event.focus.bind(Ee=>(Ic(Ee),Sf(z))).orThunk(()=>(po.focusIn(xe),Id(Yo(z))))}),setTimeout(()=>{To(p.element,"width",re+"px")},0)}),Xn(EN,(p,E)=>{Ws.getContent(p).each(z=>{a.set(a.get().concat([{bar:z,focus:Id(Yo(p.element))}]))}),go(p,zD,{contents:E.event.forwardContents,focus:P.none()})}),Xn(HD,(p,E)=>{Re(a.get()).each(z=>{a.set(a.get().slice(0,a.get().length-1)),go(p,zD,{contents:Tu(z.bar),focus:z.focus})})})]),po.config({mode:"special",onEscape:p=>Re(a.get()).fold(()=>t.onEscape(),E=>(pa(p,HD),P.some(!0)))})]),lazySink:()=>Wo.value(t.sink)})},HM="tox-pop--transition",PK=(t,a,p,E)=>{const z=E.backstage,Y=z.shared,re=hf().deviceType.isTouch,xe=ia(),Ee=ia(),Be=ia(),je=Pl(BM({sink:p,onEscape:()=>(t.focus(),P.some(!0))})),et=()=>{const Zr=Be.get().getOr("node"),Do=ND(Zr)?1:0;return by(t,Y,Zr,Do)},st=()=>!t.removed&&!(re()&&z.isContextMenuOpen()),mt=Zr=>sn(jn(Zr,xe.get(),Qt),!0),Mt=()=>{if(st()){const Zr=et(),Do=sn(Be.get(),"node")?CN(t,xe.get()):GS(t);return Zr.height<=0||!xN(Do,Zr,.01)}else return!0},Xt=()=>{xe.clear(),Ee.clear(),Be.clear(),Ws.hide(je)},Dn=()=>{if(Ws.isOpen(je)){const Zr=je.element;Bo(Zr,"display"),Mt()?To(Zr,"display","none"):(Ee.set(0),Ws.reposition(je))}},hn=Zr=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[Zr],behaviours:gr([po.config({mode:"acyclic"}),jo("pop-dialog-wrap-events",[ms(Do=>{t.shortcuts.add("ctrl+F9","focus statusbar",()=>po.focusIn(Do))}),_d(Do=>{t.shortcuts.remove("ctrl+F9")})])])}),rn=Ps(()=>BD(a,Zr=>{const Do=hr([Zr]);go(je,EN,{forwardContents:hn(Do)})})),kn=(Zr,Do)=>OM(t,{buttons:Zr,toolbar:Do.items,allowToolbarGroups:!1},E.backstage,P.some(["form:"])),Vn=(Zr,Do)=>EK.buildInitGroups(Zr,Do),hr=Zr=>{const{buttons:Do}=t.ui.registry.getAll(),Mo=rn(),ja={...Do,...Mo.formNavigators},xo=Cx(t)===af.scrolling?af.scrolling:af.default,Ea=Fe(ne(Zr,Ar=>Ar.type==="contexttoolbar"?kn(ja,Ar):Vn(Ar,Y.providers)));return SM({type:xo,uid:Xr("context-toolbar"),initGroups:Ea,onEscape:P.none,cyclicKeying:!0,providers:Y.providers})},Yn=(Zr,Do)=>{const Mo=Zr==="node"?Y.anchors.node(Do):Y.anchors.cursor(),ja=$K(t,Zr,re(),{lastElement:xe.get,isReposition:()=>sn(Ee.get(),0),getMode:()=>Nl.getMode(p)});return hs(Mo,ja)},br=(Zr,Do)=>{if(ea.cancel(),!st())return;const Mo=hr(Zr),ja=Zr[0].position,xo=Yn(ja,Do);Be.set(ja),Ee.set(1);const Ea=je.element;Bo(Ea,"display"),mt(Do)||(Is(Ea,HM),Nl.reset(p,je)),Ws.showWithinBounds(je,hn(Mo),{anchor:xo,transition:{classes:[HM],mode:"placement"}},()=>P.some(et())),Do.fold(xe.clear,xe.set),Mt()&&To(Ea,"display","none")};let Mr=!1;const ea=oL(()=>{if(!(!t.hasFocus()||t.removed||Mr))if(Ni(je.element,HM))ea.throttle();else{const Zr=rn();MN(Zr,t).fold(Xt,Do=>{br(Do.toolbars,P.some(Do.elem))})}},17);t.on("init",()=>{t.on("remove",Xt),t.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",Dn),t.on("click keyup focus SetContent",ea.throttle),t.on(OD,Xt),t.on(xK,Zr=>{const Do=rn();Ft(Do.lookupTable,Zr.toolbarKey).each(Mo=>{br([Mo],lt(Zr.target!==t,Zr.target)),Ws.getContent(je).each(po.focusIn)})}),t.on("focusout",Zr=>{ty.setEditorTimeout(t,()=>{Sf(p.element).isNone()&&Sf(je.element).isNone()&&Xt()},0)}),t.on("SwitchMode",()=>{t.mode.isReadOnly()&&Xt()}),t.on("AfterProgressState",Zr=>{Zr.state?Xt():t.hasFocus()&&ea.throttle()}),t.on("dragstart",()=>{Mr=!0}),t.on("dragend drop",()=>{Mr=!1}),t.on("NodeChange",Zr=>{Sf(je.element).fold(ea.throttle,C)})})},IK=t=>{fe([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],p=>{t.ui.registry.addToggleButton(p.name,{tooltip:p.text,icon:p.icon,onAction:Du(t,p.cmd),onSetup:rA(t,p.name)})}),t.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:Vc(t),onAction:Du(t,"JustifyNone")})},_N=(t,a)=>{const p=()=>{const E=a.getOptions(t),z=a.getCurrent(t).map(a.hash),Y=ia();return ne(E,re=>({type:"togglemenuitem",text:a.display(re),onSetup:xe=>{const Ee=je=>{je&&(Y.on(et=>et.setActive(!1)),Y.set(xe)),xe.setActive(je)};Ee(sn(z,a.hash(re)));const Be=a.watcher(t,re,Ee);return()=>{Y.clear(),Be()}},onAction:()=>a.setCurrent(t,re)}))};t.ui.registry.addMenuButton(a.name,{tooltip:a.text,icon:a.icon,fetch:E=>E(p()),onSetup:a.onToolbarSetup}),t.ui.registry.addNestedMenuItem(a.name,{type:"nestedmenuitem",text:a.text,getSubmenuItems:p,onSetup:a.onMenuSetup})},NK=t=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:D8,hash:a=>NY(a,["fixed","relative","empty"]).getOr(a),display:D,watcher:(a,p,E)=>a.formatter.formatChanged("lineheight",E,!1,{value:p}).unbind,getCurrent:a=>P.from(a.queryCommandValue("LineHeight")),setCurrent:(a,p)=>a.execCommand("LineHeight",!1,p),onToolbarSetup:Vc(t),onMenuSetup:Vc(t)}),FK=t=>P.from(C8(t)).map(p=>({name:"language",text:"Language",icon:"language",getOptions:O(p),hash:E=>i(E.customCode)?E.code:`${E.code}/${E.customCode}`,display:E=>E.title,watcher:(E,z,Y)=>{var re;return E.formatter.formatChanged("lang",Y,!1,{value:z.code,customValue:(re=z.customCode)!==null&&re!==void 0?re:null}).unbind},getCurrent:E=>{const z=zt.fromDom(E.selection.getNode());return en(z,Y=>P.some(Y).filter(St).bind(re=>yi(re,"lang").map(Ee=>{const Be=yi(re,"data-mce-lang").getOrUndefined();return{code:Ee,customCode:Be,title:""}})))},setCurrent:(E,z)=>E.execCommand("Lang",!1,z),onToolbarSetup:E=>{const z=Oh();return E.setActive(t.formatter.match("lang",{},void 0,!0)),z.set(t.formatter.formatChanged("lang",E.setActive,!0)),qC(z.clear,Vc(t)(E))},onMenuSetup:Vc(t)})),RN=t=>{_N(t,NK(t)),FK(t).each(a=>_N(t,a))},LN=(t,a)=>{_Y(t,a),OY(t,a),cN(t,a),LY(t,a),YY(t,a)},BK=t=>Yd(t,"NodeChange",a=>{a.setEnabled(t.queryCommandState("outdent")&&t.selection.isEditable())}),HK=t=>{t.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:BK(t),onAction:Du(t,"outdent")}),t.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:Vc(t),onAction:Du(t,"indent")})},DN=t=>{HK(t)},$N=(t,a)=>p=>{p.setActive(a.get());const E=z=>{a.set(z.state),p.setActive(z.state)};return t.on("PastePlainTextToggle",E),qC(()=>t.off("PastePlainTextToggle",E),Vc(t)(p))},zK=t=>{const a=q(Ok(t)),p=()=>t.execCommand("mceTogglePlainTextPaste");t.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:p,onSetup:$N(t,a)}),t.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:p,onSetup:$N(t,a)})},UD=(t,a)=>()=>{t.execCommand("mceToggleFormat",!1,a)},VK=t=>{ig.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(a,p)=>{t.ui.registry.addToggleButton(a.name,{tooltip:a.text,icon:a.icon,onSetup:rA(t,a.name),onAction:UD(t,a.name)})});for(let a=1;a<=6;a++){const p="h"+a;t.ui.registry.addToggleButton(p,{text:p.toUpperCase(),tooltip:"Heading "+a,onSetup:rA(t,p),onAction:UD(t,p)})}},UK=t=>{ig.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print"}],a=>{t.ui.registry.addButton(a.name,{tooltip:a.text,icon:a.icon,onAction:Du(t,a.action)})}),ig.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],a=>{t.ui.registry.addButton(a.name,{tooltip:a.text,icon:a.icon,onSetup:Vc(t),onAction:Du(t,a.action)})})},WD=t=>{ig.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],a=>{t.ui.registry.addToggleButton(a.name,{tooltip:a.text,icon:a.icon,onAction:Du(t,a.action),onSetup:rA(t,a.name)})})},WK=t=>{VK(t),UK(t),WD(t)},GK=t=>{ig.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],a=>{t.ui.registry.addMenuItem(a.name,{text:a.text,icon:a.icon,shortcut:a.shortcut,onAction:Du(t,a.action)})}),ig.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],a=>{t.ui.registry.addMenuItem(a.name,{text:a.text,icon:a.icon,shortcut:a.shortcut,onSetup:Vc(t),onAction:Du(t,a.action)})}),t.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:Vc(t),onAction:UD(t,"code")})},GD=t=>{WK(t),GK(t)},ZS=(t,a)=>Yd(t,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",p=>{p.setEnabled(!t.mode.isReadOnly()&&t.undoManager[a]())}),ON=t=>{t.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:ZS(t,"hasUndo"),onAction:Du(t,"undo")}),t.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:ZS(t,"hasRedo"),onAction:Du(t,"redo")})},ZK=t=>{t.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:ZS(t,"hasUndo"),onAction:Du(t,"undo")}),t.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:ZS(t,"hasRedo"),onAction:Du(t,"redo")})},jK=t=>{ON(t),ZK(t)},YK=t=>Yd(t,"VisualAid",a=>{a.setActive(t.hasVisual)}),KK=t=>{t.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:YK(t),onAction:Du(t,"mceToggleVisualAid")})},XK=t=>{t.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:Du(t,"mceToggleVisualAid")})},ZD=t=>{XK(t),KK(t)},JK=(t,a)=>{IK(t),GD(t),LN(t,a),jK(t),gR(t),ZD(t),DN(t),RN(t),zK(t)},PN=t=>A(t)?t.split(/[ ,]/):t,IN=t=>a=>a.options.get(t),QK=t=>{const a=t.options.register;a("contextmenu_avoid_overlap",{processor:"string",default:""}),a("contextmenu_never_use_native",{processor:"boolean",default:!1}),a("contextmenu",{processor:p=>p===!1?{value:[],valid:!0}:A(p)||x(p,A)?{value:PN(p),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})},zM=IN("contextmenu_never_use_native"),qK=IN("contextmenu_avoid_overlap"),NN=t=>FN(t).length===0,FN=t=>{const a=t.ui.registry.getAll().contextMenus,p=t.options.get("contextmenu");return t.options.isSet("contextmenu")?p:Ce(p,E=>pn(a,E))},jS=(t,a)=>({type:"makeshift",x:t,y:a}),jD=(t,a,p)=>jS(t.x+a,t.y+p),BN=t=>t.type==="longpress"||t.type.indexOf("touch")===0,eX=t=>{if(BN(t)){const a=t.touches[0];return jS(a.pageX,a.pageY)}else return jS(t.pageX,t.pageY)},tX=t=>{if(BN(t)){const a=t.touches[0];return jS(a.clientX,a.clientY)}else return jS(t.clientX,t.clientY)},nX=(t,a)=>{const p=oy.DOM.getPos(t);return jD(a,p.x,p.y)},rX=(t,a)=>a.type==="contextmenu"||a.type==="longpress"?t.inline?eX(a):nX(t.getContentAreaContainer(),tX(a)):YD(t),YD=t=>({type:"selection",root:zt.fromDom(t.selection.getNode())}),oX=t=>({type:"node",node:P.some(zt.fromDom(t.selection.getNode())),root:zt.fromDom(t.getBody())}),HN=(t,a,p)=>{switch(p){case"node":return oX(t);case"point":return rX(t,a);case"selection":return YD(t)}},aX=(t,a,p,E,z,Y)=>{const re=p(),xe=HN(t,a,Y);jx(re,Yh.CLOSE_ON_EXECUTE,E,{isHorizontalMenu:!1,search:P.none()}).map(Ee=>{a.preventDefault(),Ws.showMenuAt(z,{anchor:xe},{menu:{markers:fp("normal")},data:Ee})})},sX={onLtr:()=>[Yi,ji,Ml,Cc,Il,oc,eh,Jx,_S,ES,gy,MS],onRtl:()=>[Yi,Ml,ji,Il,Cc,oc,eh,Jx,gy,MS,_S,ES]},iX=12,lX={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},cX=(t,a)=>{const p=t.selection;if(p.isCollapsed()||a.touches.length<1)return!1;{const E=a.touches[0],z=p.getRng();return Ww(t.getWin(),fl.domRange(z)).exists(re=>re.left<=E.clientX&&re.right>=E.clientX&&re.top<=E.clientY&&re.bottom>=E.clientY)}},uX=t=>{const a=t.selection.getRng(),p=()=>{ty.setEditorTimeout(t,()=>{t.selection.setRng(a)},10),Y()};t.once("touchend",p);const E=re=>{re.preventDefault(),re.stopImmediatePropagation()};t.on("mousedown",E,!0);const z=()=>Y();t.once("longpresscancel",z);const Y=()=>{t.off("touchend",p),t.off("longpresscancel",z),t.off("mousedown",E)}},zN=(t,a,p)=>{const E=HN(t,a,p);return{bubble:Nd(0,p==="point"?iX:0,lX),layouts:sX,overrides:{maxWidthFunction:iD(),maxHeightFunction:pv()},...E}},fX=(t,a,p,E,z,Y,re)=>{const xe=zN(t,a,Y);jx(p,Yh.CLOSE_ON_EXECUTE,E,{isHorizontalMenu:!0,search:P.none()}).map(Ee=>{a.preventDefault();const Be=re?zc.HighlightMenuAndItem:zc.HighlightNone;Ws.showMenuWithinBounds(z,{anchor:xe},{menu:{markers:fp("normal"),highlightOnOpen:Be},data:Ee,type:"horizontal"},()=>P.some(by(t,E.shared,Y==="node"?"node":"selection"))),t.dispatch(OD)})},VN=(t,a,p,E,z,Y)=>{const re=hf(),xe=re.os.isiOS(),Ee=re.os.isMacOS(),Be=re.os.isAndroid(),je=re.deviceType.isTouch(),et=()=>!(Be||xe||Ee&&je),st=()=>{const mt=p();fX(t,a,mt,E,z,Y,et())};if((Ee||xe)&&Y!=="node"){const mt=()=>{uX(t),st()};cX(t,a)?mt():(t.once("selectionchange",mt),t.once("touchend",()=>t.off("selectionchange",mt)))}else st()},UN=t=>A(t)?t==="|":t.type==="separator",KD={type:"separator"},WN=t=>{const a=p=>({text:p.text,icon:p.icon,enabled:p.enabled,shortcut:p.shortcut});if(A(t))return t;switch(t.type){case"separator":return KD;case"submenu":return{type:"nestedmenuitem",...a(t),getSubmenuItems:()=>{const E=t.getSubmenuItems();return A(E)?E:ne(E,WN)}};default:const p=t;return{type:"menuitem",...a(p),onAction:_(p.onAction)}}},u0=(t,a)=>{if(a.length===0)return t;const E=Re(t).filter(z=>!UN(z)).fold(()=>[],z=>[KD]);return t.concat(E).concat(a).concat([KD])},GN=(t,a,p)=>{const E=ke(a,(z,Y)=>Ft(t,Y.toLowerCase()).map(re=>{const xe=re.update(p);if(A(xe)&&fn(Et(xe)))return u0(z,xe.split(" "));if(h(xe)&&xe.length>0){const Ee=ne(xe,WN);return u0(z,Ee)}else return z}).getOrThunk(()=>z.concat([Y])),[]);return E.length>0&&UN(E[E.length-1])&&E.pop(),E},dX=(t,a)=>a.ctrlKey&&!zM(t),hX=t=>t.type==="longpress"||pn(t,"touches"),ZN=(t,a)=>!hX(a)&&(a.button!==2||a.target===t.getBody()&&a.pointerType===""),jN=(t,a)=>ZN(t,a)?t.selection.getStart(!0):a.target,YN=(t,a)=>{const p=qK(t),E=ZN(t,a)?"selection":"point";if(fn(p)){const z=jN(t,a);return rS(zt.fromDom(z),p)?"node":E}else return E},mX=(t,a,p)=>{const z=hf().deviceType.isTouch,Y=Pl(Ws.sketch({dom:{tag:"div"},lazySink:a,onEscape:()=>t.focus(),onShow:()=>p.setContextMenuState(!0),onHide:()=>p.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:gr([jo("dismissContextMenu",[Xn(Tm(),(Ee,Be)=>{va.close(Ee),t.focus()})])])})),re=()=>Ws.hide(Y),xe=Ee=>{if(zM(t)&&Ee.preventDefault(),dX(t,Ee)||NN(t))return;const Be=YN(t,Ee),je=()=>{const st=jN(t,Ee),mt=t.ui.registry.getAll(),Mt=FN(t);return GN(mt.contextMenus,Mt,st)};(z()?VN:aX)(t,Ee,je,p,Y,Be)};t.on("init",()=>{const Ee="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(z()?"":" ResizeWindow");t.on(Ee,re),t.on("longpress contextmenu",xe)})},XD=Ae.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),VM=t=>a=>a.translate(-t.left,-t.top),UM=t=>a=>a.translate(t.left,t.top),yp=t=>(a,p)=>ke(t,(E,z)=>z(E),Ma(a,p)),WM=(t,a,p)=>t.fold(yp([UM(p),VM(a)]),yp([VM(a)]),yp([])),c2=(t,a,p)=>t.fold(yp([UM(p)]),yp([]),yp([UM(a)])),KN=(t,a,p)=>t.fold(yp([]),yp([VM(p)]),yp([UM(a),VM(p)])),gX=(t,a,p,E,z,Y)=>{const re=c2(t,z,Y),xe=c2(a,z,Y);return Math.abs(re.left-xe.left)<=p&&Math.abs(re.top-xe.top)<=E},pX=(t,a,p,E,z,Y)=>{const re=c2(t,z,Y),xe=c2(a,z,Y),Ee=Math.abs(re.left-xe.left),Be=Math.abs(re.top-xe.top);return Ma(Ee,Be)},JD=(t,a,p)=>{const E=t.fold((z,Y)=>({position:P.some("absolute"),left:P.some(z+"px"),top:P.some(Y+"px")}),(z,Y)=>({position:P.some("absolute"),left:P.some(z-p.left+"px"),top:P.some(Y-p.top+"px")}),(z,Y)=>({position:P.some("fixed"),left:P.some(z+"px"),top:P.some(Y+"px")}));return{right:P.none(),bottom:P.none(),...E}},XN=(t,a,p)=>t.fold((E,z)=>f0(E+a,z+p),(E,z)=>d0(E+a,z+p),(E,z)=>wy(E+a,z+p)),QD=(t,a,p,E)=>{const z=(Y,re)=>(xe,Ee)=>{const Be=Y(a,p,E);return re(xe.getOr(Be.left),Ee.getOr(Be.top))};return t.fold(z(KN,f0),z(c2,d0),z(WM,wy))},f0=XD.offset,d0=XD.absolute,wy=XD.fixed,GM=(t,a)=>{const p=Ka(t,a);return i(p)?NaN:parseInt(p,10)},vX=(t,a)=>{const p=t.element,E=GM(p,a.leftAttr),z=GM(p,a.topAttr);return isNaN(E)||isNaN(z)?P.none():P.some(Ma(E,z))},yX=(t,a,p)=>{const E=t.element;Lr(E,a.leftAttr,p.left+"px"),Lr(E,a.topAttr,p.top+"px")},bX=(t,a)=>{const p=t.element;Xa(p,a.leftAttr),Xa(p,a.topAttr)},xX=(t,a,p,E)=>vX(t,a).fold(()=>p,z=>wy(z.left+E.left,z.top+E.top)),wX=(t,a,p,E,z,Y)=>{const re=xX(t,a,p,E),xe=a.mustSnap?SX(t,a,re,z,Y):TX(t,a,re,z,Y),Ee=WM(re,z,Y);return yX(t,a,Ee),xe.fold(()=>({coord:wy(Ee.left,Ee.top),extra:P.none()}),Be=>({coord:Be.output,extra:Be.extra}))},CX=(t,a)=>{bX(t,a)},JN=(t,a,p,E)=>We(t,z=>{const Y=z.sensor;return gX(a,Y,z.range.left,z.range.top,p,E)?P.some({output:QD(z.output,a,p,E),extra:z.extra}):P.none()}),SX=(t,a,p,E,z)=>{const Y=a.getSnapPoints(t);return JN(Y,p,E,z).orThunk(()=>ke(Y,(Ee,Be)=>{const je=Be.sensor,et=pX(p,je,Be.range.left,Be.range.top,E,z);return Ee.deltas.fold(()=>({deltas:P.some(et),snap:P.some(Be)}),st=>{const mt=(et.left+et.top)/2,Mt=(st.left+st.top)/2;return mt<=Mt?{deltas:P.some(et),snap:P.some(Be)}:Ee})},{deltas:P.none(),snap:P.none()}).snap.map(Ee=>({output:QD(Ee.output,p,E,z),extra:Ee.extra})))},TX=(t,a,p,E,z)=>{const Y=a.getSnapPoints(t);return JN(Y,p,E,z)},kX=(t,a,p)=>({coord:QD(t.output,t.output,a,p),extra:t.extra});var AX=Object.freeze({__proto__:null,snapTo:(t,a,p,E)=>{const z=a.getTarget(t.element);if(a.repositionTarget){const Y=Sn(t.element),re=ll(Y),xe=YI(z),Ee=kX(E,re,xe),Be=JD(Ee.coord,re,xe);ur(z,Be)}}});const qD="data-initial-z-index",MX=t=>{Bn(t.element).filter(St).each(a=>{yi(a,qD).fold(()=>Bo(a,"z-index"),p=>To(a,"z-index",p)),Xa(a,qD)})},EX=t=>{Bn(t.element).filter(St).each(a=>{Rs(a,"z-index").each(p=>{Lr(a,qD,p)}),To(a,"z-index",Ms(t.element,"z-index"))})},QN=(t,a)=>{t.getSystem().addToGui(a),EX(a)},_X=t=>{MX(t),t.getSystem().removeFromGui(t)},YS=(t,a,p)=>t.getSystem().build(Kh.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[a]},events:p}));var RX=Ql("snaps",[qn("getSnapPoints"),Sa("onSensor"),qn("leftAttr"),qn("topAttr"),En("lazyViewport",bl),En("mustSnap",!1)]);const e6=[En("useFixed",H),qn("blockerClass"),En("getTarget",D),En("onDrag",C),En("repositionTarget",!0),En("onDrop",C),bi("getBounds",bl),RX],LX=t=>Wn(Rs(t,"left"),Rs(t,"top"),Rs(t,"position"),(a,p,E)=>(E==="fixed"?wy:f0)(parseInt(a,10),parseInt(p,10))).getOrThunk(()=>{const a=al(t);return d0(a.left,a.top)}),DX=(t,a,p,E,z)=>{const Y=z.bounds,re=c2(a,p,E),xe=ku(re.left,Y.x,Y.x+Y.width-z.width),Ee=ku(re.top,Y.y,Y.y+Y.height-z.height),Be=d0(xe,Ee);return a.fold(()=>{const je=KN(Be,p,E);return f0(je.left,je.top)},O(Be),()=>{const je=WM(Be,p,E);return wy(je.left,je.top)})},$X=(t,a,p,E,z,Y,re)=>{const xe=a.fold(()=>{const Ee=XN(p,Y.left,Y.top),Be=WM(Ee,E,z);return wy(Be.left,Be.top)},Ee=>{const Be=wX(t,Ee,p,Y,E,z);return Be.extra.each(je=>{Ee.onSensor(t,je)}),Be.coord});return DX(t,xe,E,z,re)},OX=(t,a,p,E)=>{const z=a.getTarget(t.element);if(a.repositionTarget){const Y=Sn(t.element),re=ll(Y),xe=YI(z),Ee=LX(z),Be=$X(t,a.snaps,Ee,re,xe,E,p),je=JD(Be,re,xe);ur(z,je)}a.onDrag(t,z,E)},t6=(t,a)=>({bounds:t.getBounds(),height:cu(a.element),width:Wu(a.element)}),n6=(t,a,p,E,z)=>{const Y=p.update(E,z),re=p.getStartData().getOrThunk(()=>t6(a,t));Y.each(xe=>{OX(t,a,re,xe)})},qN=(t,a,p,E)=>{a.each(_X),p.snaps.each(Y=>{CX(t,Y)});const z=p.getTarget(t.element);E.reset(),p.onDrop(t,z)},r6=t=>(a,p)=>{const E=z=>{p.setStartData(t6(a,z))};return bs([Xn(Md(),z=>{p.getStartData().each(()=>E(z))}),...t(a,p,E)])},PX=t=>bs([Xn(fo(),t.forceDrop),Xn(is(),t.drop),Xn(Ha(),(a,p)=>{t.move(p.event)}),Xn(Vs(),t.delayDrop)]);var tF=Object.freeze({__proto__:null,getData:t=>P.from(Ma(t.x,t.y)),getDelta:(t,a)=>Ma(a.left-t.left,a.top-t.top)});const nF=(t,a,p)=>[Xn(fo(),(E,z)=>{if(z.event.raw.button!==0)return;z.stop();const re=()=>qN(E,P.some(Be),t,a),xe=bO(re,200),Ee={drop:re,delayDrop:xe.schedule,forceDrop:re,move:et=>{xe.cancel(),n6(E,t,a,tF,et)}},Be=YS(E,t.blockerClass,PX(Ee));(()=>{p(E),QN(E,Be)})()})],IX=[...e6,rs("dragger",{handlers:r6(nF)})],NX=t=>bs([Xn(eo(),t.forceDrop),Xn(Ko(),t.drop),Xn(yo(),t.drop),Xn(lo(),(a,p)=>{t.move(p.event)})]),FX=t=>{const a=t[0];return P.some(Ma(a.clientX,a.clientY))};var rF=Object.freeze({__proto__:null,getData:t=>{const p=t.raw.touches;return p.length===1?FX(p):P.none()},getDelta:(t,a)=>Ma(a.left-t.left,a.top-t.top)});const oF=(t,a,p)=>{const E=ia(),z=Y=>{qN(Y,E.get(),t,a),E.clear()};return[Xn(eo(),(Y,re)=>{re.stop();const xe=()=>z(Y),Ee={drop:xe,delayDrop:C,forceDrop:xe,move:et=>{n6(Y,t,a,rF,et)}},Be=YS(Y,t.blockerClass,NX(Ee));E.set(Be),(()=>{p(Y),QN(Y,Be)})()}),Xn(lo(),(Y,re)=>{re.stop(),n6(Y,t,a,rF,re.event)}),Xn(Ko(),(Y,re)=>{re.stop(),z(Y)}),Xn(yo(),z)]},BX=[...e6,rs("dragger",{handlers:r6(oF)})],HX=(t,a,p)=>[...nF(t,a,p),...oF(t,a,p)],zX=[...e6,rs("dragger",{handlers:r6(HX)})];var VX=Object.freeze({__proto__:null,mouse:IX,touch:BX,mouseOrTouch:zX}),UX=Object.freeze({__proto__:null,init:()=>{let t=P.none(),a=P.none();const p=()=>{t=P.none(),a=P.none()},E=(Ee,Be)=>{const je=t.map(et=>Ee.getDelta(et,Be));return t=P.some(Be),je},z=(Ee,Be)=>Ee.getData(Be).bind(je=>E(Ee,je)),Y=Ee=>{a=P.some(Ee)},re=()=>a,xe=O({});return Qc({readState:xe,reset:p,update:z,getStartData:re,setStartData:Y})}});const h0=Ob({branchKey:"mode",branches:VX,name:"dragging",active:{events:(t,a)=>t.dragger.handlers(t,a)},extra:{snap:t=>({sensor:t.sensor,range:t.range,output:t.output,extra:P.from(t.extra)})},state:UX,apis:AX}),o6=40,ZM=o6/2,aF=(t,a,p,E,z,Y)=>t.fold(()=>h0.snap({sensor:d0(p-ZM,E-ZM),range:Ma(z,Y),output:d0(P.some(p),P.some(E)),extra:{td:a}}),re=>{const xe=p-ZM,Ee=E-ZM,Be=o6,je=o6,et=re.element.dom.getBoundingClientRect();return h0.snap({sensor:d0(xe,Ee),range:Ma(Be,je),output:d0(P.some(p-et.width/2),P.some(E-et.height/2)),extra:{td:a}})}),sF=(t,a,p)=>{const E=(z,Y)=>z.exists(re=>Qt(re,Y));return{getSnapPoints:t,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(z,Y)=>{const re=Y.td;E(a.get(),re)||(a.set(re),p(re))},mustSnap:!0}},iF=t=>Qa(hl.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:gr([h0.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:t}),lS.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),WX=(t,a)=>{const p=q([]),E=q([]),z=q(!1),Y=ia(),re=ia(),xe=br=>{const Mr=Xc(br);return aF(mt.getOpt(a),br,Mr.x,Mr.y,Mr.width,Mr.height)},Ee=()=>ne(p.get(),br=>xe(br)),Be=br=>{const Mr=Xc(br);return aF(Mt.getOpt(a),br,Mr.right,Mr.bottom,Mr.width,Mr.height)},je=()=>ne(E.get(),br=>Be(br)),et=sF(Ee,Y,br=>{re.get().each(Mr=>{t.dispatch("TableSelectorChange",{start:br,finish:Mr})})}),st=sF(je,re,br=>{Y.get().each(Mr=>{t.dispatch("TableSelectorChange",{start:Mr,finish:br})})}),mt=iF(et),Mt=iF(st),Xt=Pl(mt.asSpec()),Dn=Pl(Mt.asSpec()),hn=(br,Mr,ea,Zr)=>{const Do=Mr.dom.getBoundingClientRect();Bo(br.element,"display");const Mo=Qn(zt.fromDom(t.getBody())).dom.innerHeight,ja=ea(Do),xo=Zr(Do,Mo);(ja||xo)&&To(br.element,"display","none")},rn=(br,Mr,ea,Zr)=>{const Do=ea(Mr);h0.snapTo(br,Do),hn(br,Mr,xo=>xo[Zr]<0,(xo,Ea)=>xo[Zr]>Ea)},kn=br=>rn(Xt,br,xe,"top"),Vn=()=>Y.get().each(kn),hr=br=>rn(Dn,br,Be,"bottom"),Yn=()=>re.get().each(hr);hf().deviceType.isTouch()&&(t.on("TableSelectionChange",br=>{z.get()||(zm(a,Xt),zm(a,Dn),z.set(!0)),Y.set(br.start),re.set(br.finish),br.otherCells.each(Mr=>{p.set(Mr.upOrLeftCells),E.set(Mr.downOrRightCells),kn(br.start),hr(br.finish)})}),t.on("ResizeEditor ResizeWindow ScrollContent",()=>{Vn(),Yn()}),t.on("TableSelectionClear",()=>{z.get()&&(Bd(Xt),Bd(Dn),z.set(!1)),Y.clear(),re.clear()}))};var GX=` - - -`;const ZX=t=>t.nodeName==="BR"||!!t.getAttribute("data-mce-bogus")||t.getAttribute("data-mce-type")==="bookmark",lF=(t,a,p)=>{var E;const z=(E=a.delimiter)!==null&&E!==void 0?E:"›",Y=(Be,je,et)=>hl.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":et,"aria-level":et+1}},components:[ai(Be)],action:st=>{t.focus(),t.selection.select(je),t.nodeChanged()},buttonBehaviours:gr([Bi.button(p.isDisabled),Qi()])}),re=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[ai(` ${z} `)]}),xe=Be=>ke(Be,(je,et,st)=>{const mt=Y(et.name,et.element,st);return st===0?je.concat([mt]):je.concat([re(),mt])},[]),Ee=Be=>{const je=[];let et=Be.length;for(;et-- >0;){const st=Be[et];if(st.nodeType===1&&!ZX(st)){const mt=W7(t,st);if(mt.isDefaultPrevented()||je.push({name:mt.name,element:st}),mt.isPropagationStopped())break}}return je};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:gr([po.config({mode:"flow",selector:"div[role=button]"}),Co.config({disabled:p.isDisabled}),Qi(),Ns.config({}),Ho.config({}),jo("elementPathEvents",[ms((Be,je)=>{t.shortcuts.add("alt+F11","focus statusbar elementpath",()=>po.focusIn(Be)),t.on("NodeChange",et=>{const st=Ee(et.parents),mt=st.length>0?xe(st):[];Ho.set(Be,mt)})})])]),components:[]}};var bp;(function(t){t[t.None=0]="None",t[t.Both=1]="Both",t[t.Vertical=2]="Vertical"})(bp||(bp={}));const Cy=(t,a,p,E,z)=>{const Y={height:WS(E+a.top,wx(t),o5(t))};return p===bp.Both&&(Y.width=WS(z+a.left,r5(t),Rk(t))),Y},cF=(t,a,p)=>{const E=zt.fromDom(t.getContainer()),z=Cy(t,a,p,Ls(E),ci(E));Ge(z,(Y,re)=>{v(Y)&&To(E,re,i2(Y))}),V7(t)},a6=t=>{const a=_8(t);return a===!1?bp.None:a==="both"?bp.Both:bp.Vertical},Sy=(t,a,p,E)=>{const Y=Ma(p*20,E*20);return cF(t,Y,a),P.some(!0)},jX=(t,a)=>{const p=a6(t);if(p===bp.None)return P.none();const E=p===bp.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return P.some(Gd("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:a.translate("Resize"),"aria-label":a.translate(E)},behaviours:[h0.config({mode:"mouse",repositionTarget:!1,onDrag:(z,Y,re)=>cF(t,re,p),blockerClass:"tox-blocker"}),po.config({mode:"special",onLeft:()=>Sy(t,p,-1,0),onRight:()=>Sy(t,p,1,0),onUp:()=>Sy(t,p,0,-1),onDown:()=>Sy(t,p,0,1)}),Ns.config({}),ko.config({})]},a.icons))},YX=(t,a)=>{const p=(E,z,Y)=>Ho.set(E,[ai(a.translate(["{0} "+Y,z[Y]]))]);return hl.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:gr([Bi.button(a.isDisabled),Qi(),Ns.config({}),Ho.config({}),Fr.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),jo("wordcount-events",[xf(E=>{const z=Fr.getValue(E),Y=z.mode==="words"?"characters":"words";Fr.setValue(E,{mode:Y,count:z.count}),p(E,z.count,Y)}),ms(E=>{t.on("wordCountUpdate",z=>{const{mode:Y}=Fr.getValue(E);Fr.setValue(E,{mode:Y,count:z.wordCount}),p(E,z.wordCount,Y)})})])]),eventOrder:{[Ci()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},KX=(t,a)=>{const p=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=editor_referral&utm_medium=poweredby&utm_source=tinymce&utm_content=v6",rel:"noopener",target:"_blank","aria-label":_f.translate(["Powered by {0}","Tiny"])},innerHtml:GX.trim()},behaviours:gr([ko.config({})])}]}),E=()=>{const xe=qk("Alt+0"),Ee="Press {0} for help";return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[ai(_f.translate([Ee,xe]))]}},z=()=>{const xe=[];return t.hasPlugin("wordcount")&&xe.push(YX(t,a)),f5(t)&&xe.push(p()),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:xe}},Y=()=>{const xe=[],Ee=Ik(t),Be=Sx(t),je=f5(t)||t.hasPlugin("wordcount"),et=()=>{const st="tox-statusbar__text-container--flex-start",mt="tox-statusbar__text-container--flex-end",Mt="tox-statusbar__text-container--space-around";if(Ee){const Xt="tox-statusbar__text-container-3-cols";return!je&&!Be?[Xt,Mt]:je&&!Be?[Xt,mt]:[Xt,st]}return[je&&!Be?mt:st]};return Be&&xe.push(lF(t,{},a)),Ee&&xe.push(E()),je&&xe.push(z()),xe.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...et()]},components:xe}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const xe=Y(),Ee=jX(t,a);return xe.concat(Ee.toArray())})()}},uF=(t,a)=>a.get().getOrDie(`UI for ${t} has not been rendered`),XX=(t,a)=>{const p=t.inline,E=p?yK:hK,z=zC(t)?l9:tj,Y=bK(),re=ia(),xe=ia(),Ee=ia(),st=hf().deviceType.isTouch()?["tox-platform-touch"]:[],mt=g5(t),Mt=Cx(t),Xt=Qa({dom:{tag:"div",classes:["tox-anchorbar"]}}),Dn=Qa({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),hn=()=>Y.mainUi.get().map(wo=>wo.outerContainer).bind(Ss.getHeader),rn=()=>Wo.fromOption(Y.dialogUi.get().map(wo=>wo.sink),"UI has not been rendered"),kn=()=>Wo.fromOption(Y.popupUi.get().map(wo=>wo.sink),"(popup) UI has not been rendered"),Vn=Y.lazyGetInOuterOrDie("anchor bar",Xt.getOpt),hr=Y.lazyGetInOuterOrDie("bottom anchor bar",Dn.getOpt),Yn=Y.lazyGetInOuterOrDie("toolbar",Ss.getToolbar),br=Y.lazyGetInOuterOrDie("throbber",Ss.getThrobber),Mr=jZ({popup:kn,dialog:rn},t,Vn,hr),ea=()=>{const wo={attributes:{[vv]:mt?tf.BottomToTop:tf.TopToBottom}},Vo=Ss.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:Mr.popup,onEscape:()=>{t.focus()}}),ys=Ss.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:Mr.popup.shared.getSink,providers:Mr.popup.shared.providers,onEscape:()=>{t.focus()},onToolbarToggled:t3=>{BV(t,t3)},type:Mt,lazyToolbar:Yn,lazyHeader:()=>hn().getOrDie("Could not find header element"),...wo}),Ra=Ss.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:Mr.popup.shared.providers,onEscape:()=>{t.focus()},type:Mt}),Rl=HC(t),Fu=Fk(t),yd=Tx(t),ah=R8(t),p0=Zr(),Ly=Rl||Fu||yd,nm=()=>Rl?[Ra]:Fu?[ys]:[],wp=ah?[p0,Vo]:[Vo];return Ss.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(Ly?[]:["tox-editor-header--empty"]),...wo},components:Fe([yd?wp:[],nm(),kx(t)?[]:[Xt.asSpec()]]),sticky:zC(t),editor:t,sharedBackstage:Mr.popup.shared})},Zr=()=>Ss.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),Do=()=>{const wo=Ss.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),Vo=Ss.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}});return{dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[wo,Vo]}},Mo=()=>{const wo=p5(t),Vo=Qt(ss(),wo)&&Ms(wo,"display")==="grid",ys={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(st),attributes:{..._f.isRtl()?{dir:"rtl"}:{}}},behaviours:gr([Nl.config({useFixed:()=>z.isDocked(hn)})])},Ra={dom:{styles:{width:document.body.clientWidth+"px"}},events:bs([Xn(Xf(),yd=>{To(yd.element,"width",document.body.clientWidth+"px")})])},Rl=Pl(hs(ys,Vo?Ra:{})),Fu=gA(Rl);return xe.set(Fu),{sink:Rl,mothership:Fu}},ja=()=>{const wo={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(st),attributes:{..._f.isRtl()?{dir:"rtl"}:{}}},behaviours:gr([Nl.config({useFixed:()=>z.isDocked(hn),getBounds:()=>a.getPopupSinkBounds()})])},Vo=Pl(wo),ys=gA(Vo);return Ee.set(ys),{sink:Vo,mothership:ys}},xo=()=>{const wo=ea(),Vo=Do(),ys=Ss.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:Mr.popup}),Ra=Ss.parts.viewWrapper({backstage:Mr.popup}),Rl=E8(t)&&!p?P.some(KX(t,Mr.popup.shared.providers)):P.none(),Fu=Fe([mt?[]:[wo],p?[]:[Vo],mt?[wo]:[]]),yd=Ss.parts.editorContainer({components:Fe([Fu,p?[]:[Dn.asSpec(),...Rl.toArray()]])}),ah=v5(t),p0={role:"application",..._f.isRtl()?{dir:"rtl"}:{},...ah?{"aria-hidden":"true"}:{}},Ly=Pl(Ss.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(p?["tox-tinymce-inline"]:[]).concat(mt?["tox-tinymce--toolbar-bottom"]:[]).concat(st),styles:{visibility:"hidden",...ah?{opacity:"0",border:"0"}:{}},attributes:p0},components:[yd,...p?[]:[Ra],ys],behaviours:gr([Qi(),Co.config({disableClass:"tox-tinymce--disabled"}),po.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),nm=gA(Ly);return re.set(nm),{mothership:nm,outerContainer:Ly}},Ea=wo=>{const Vo=i2(vN(t)),ys=i2(mK(t));return t.inline||(qi("div","width",ys)&&To(wo.element,"width",ys),qi("div","height",Vo)?To(wo.element,"height",Vo):To(wo.element,"height","400px")),Vo},Ar=wo=>{t.addShortcut("alt+F9","focus menubar",()=>{Ss.focusMenubar(wo)}),t.addShortcut("alt+F10","focus toolbar",()=>{Ss.focusToolbar(wo)}),t.addCommand("ToggleToolbarDrawer",(Vo,ys)=>{ys!=null&&ys.skipFocus?Ss.toggleToolbarDrawerWithoutFocusing(wo):Ss.toggleToolbarDrawer(wo)}),t.addQueryStateHandler("ToggleToolbarDrawer",()=>Ss.isToolbarDrawerToggled(wo))},no=wo=>{const{mainUi:Vo,popupUi:ys,uiMotherships:Ra}=wo;Xe(S8(t),(y2,sE)=>{t.ui.registry.addGroupToolbarButton(sE,y2)});const{buttons:Rl,menuItems:Fu,contextToolbars:yd,sidebars:ah,views:p0}=t.ui.registry.getAll(),Ly=m5(t),nm={menuItems:Fu,menus:O8(t),menubar:s5(t),toolbar:Ly.getOrThunk(()=>Dk(t)),allowToolbarGroups:Mt===af.floating,buttons:Rl,sidebar:ah,views:p0};Ar(Vo.outerContainer),qx(t,Vo.mothership,Ra),z.setup(t,Mr.popup.shared,hn),JK(t,Mr.popup),mX(t,Mr.popup.shared.getSink,Mr.popup),Dj(t),gM(t,br,Mr.popup.shared),PK(t,yd,ys.sink,{backstage:Mr.popup}),WX(t,ys.sink);const wp=t.getElement(),t3=Ea(Vo.outerContainer),h6={targetNode:wp,height:t3};return E.render(t,wo,nm,Mr.popup,h6)},$o=wo=>(Ee.set(wo.mothership),wo),Po=()=>{const wo=xo(),Vo=Mo(),ys=Km(t)?ja():$o(Vo);Y.dialogUi.set(Vo),Y.popupUi.set(ys),Y.mainUi.set(wo);const Ra={popupUi:ys,dialogUi:Vo,mainUi:wo,uiMotherships:Y.getUiMotherships()};return no(Ra)};return{popups:{backstage:Mr.popup,getMothership:()=>uF("popups",Ee)},dialogs:{backstage:Mr.dialog,getMothership:()=>uF("dialogs",xe)},renderUI:Po}},Ty=(t,a)=>{const p=yi(t,"id").fold(()=>{const E=Xr("dialog-label");return Lr(a,"id",E),E},D);Lr(t,"aria-labelledby",p)},fF=O([qn("lazySink"),Ia("dragBlockClass"),bi("getBounds",bl),En("useTabstopAt",j),En("firstTabstop",0),En("eventOrder",{}),Fi("modalBehaviours",[po]),ru("onExecute"),iw("onEscape")]),s6={sketch:D},JX=O([Fc({name:"draghandle",overrides:(t,a)=>({behaviours:gr([h0.config({mode:"mouse",getTarget:p=>tu(p,'[role="dialog"]').getOr(p),blockerClass:t.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: -`+JSON.stringify(a,null,2)).message),getBounds:t.getDragBounds})])})}),Fl({schema:[qn("dom")],name:"title"}),Fl({factory:s6,schema:[qn("dom")],name:"close"}),Fl({factory:s6,schema:[qn("dom")],name:"body"}),Fc({factory:s6,schema:[qn("dom")],name:"footer"}),Af({factory:{sketch:(t,a)=>({...t,dom:a.dom,components:a.components})},schema:[En("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),En("components",[])],name:"blocker"})]),QX=(t,a,p,E)=>{const z=ia(),Y=mt=>{z.set(mt);const Mt=t.lazySink(mt).getOrDie(),Xt=E.blocker(),Dn=Mt.getSystem().build({...Xt,components:Xt.components.concat([Tu(mt)]),behaviours:gr([ko.config({}),jo("dialog-blocker-events",[Ed(_o(),()=>{Qh.isBlocked(mt)?C():po.focusIn(mt)})])])});zm(Mt,Dn),po.focusIn(mt)},re=mt=>{z.clear(),Bn(mt.element).each(Mt=>{mt.getSystem().getByDom(Mt).each(Xt=>{Bd(Xt)})})},xe=mt=>zh(mt,t,"body"),Ee=mt=>gs(mt,t,"footer"),Be=(mt,Mt)=>{Qh.block(mt,Mt)},je=mt=>{Qh.unblock(mt)},et=Xr("modal-events"),st={...t.eventOrder,[Cu()]:[et].concat(t.eventOrder["alloy.system.attached"]||[])};return{uid:t.uid,dom:t.dom,components:a,apis:{show:Y,hide:re,getBody:xe,getFooter:Ee,setIdle:je,setBusy:Be},eventOrder:st,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Si(t.modalBehaviours,[Ho.config({}),po.config({mode:"cyclic",onEnter:t.onExecute,onEscape:t.onEscape,useTabstopAt:t.useTabstopAt,firstTabstop:t.firstTabstop}),Qh.config({getRoot:z.get}),jo(et,[ms(mt=>{Ty(mt.element,zh(mt,t,"title").element)})])])}},rl=Bl({name:"ModalDialog",configFields:fF(),partFields:JX(),factory:QX,apis:{show:(t,a)=>{t.show(a)},hide:(t,a)=>{t.hide(a)},getBody:(t,a)=>t.getBody(a),getFooter:(t,a)=>t.getFooter(a),setBusy:(t,a,p)=>{t.setBusy(a,p)},setIdle:(t,a)=>{t.setIdle(a)}}}),qX=io([Oi,$5].concat(ly)),eJ=Ju,i6=[Kk("button"),Rf,bc("align","end",["start","end"]),qm,id,Zf("buttonType",["primary","secondary"])],dF=[...i6,dp],KS=[Qu("type",["submit","cancel","custom"]),...dF],XS=[Qu("type",["menu"]),Qm,GC,Rf,Ol("items",qX),...i6],l6=[...i6,Qu("type",["togglebutton"]),Da("tooltip"),Rf,Qm,Li("active",!1)],jM=fa("type",{submit:KS,cancel:KS,custom:KS,menu:XS,togglebutton:l6}),ky=[Oi,dp,Qu("level",["info","warn","error","success"]),O5,En("url","")],YM=io(ky),tJ=t=>[Oi,t],hF=[Oi,dp,id,Kk("button"),Rf,e7,Zf("buttonType",["primary","secondary","toolbar"]),qm],mF=io(hF),Ay=[Oi,$5],qh=Ay.concat([jk]),nJ=Ay.concat([Zk,id]),rJ=io(nJ),gF=Ju,pF=qh.concat([t7("auto")]),c6=io(pF),oJ=Wf([_x,dp,O5]),aJ=qh.concat([bf("storageKey","default")]),sJ=io(aJ),vF=Ui,iJ=io(qh),lJ=Ui,u6=Ay.concat([bf("tag","textarea"),Da("scriptId"),Da("scriptUrl"),L3("settings",void 0)]),f6=Ay.concat([bf("tag","textarea"),bu("init")]),cJ=cl(t=>ns("customeditor.old",es(f6),t).orThunk(()=>ns("customeditor.new",es(u6),t))),yF=Ui,uJ=io(qh),bF=rb(),fJ=t=>[Oi,Cm("columns"),t],dJ=[Oi,Da("html"),bc("presets","presentation",["presentation","document"])],My=io(dJ),xF=qh.concat([Li("border",!1),Li("sandboxed",!0),Li("streamContent",!1),Li("transparent",!0)]),hJ=io(xF),KM=Ui,u2=io(Ay.concat([Gi("height")])),XM=io([Da("url"),Qs("zoom"),Qs("cachedWidth"),Qs("cachedHeight")]),wF=qh.concat([Gi("inputMode"),Gi("placeholder"),Li("maximized",!1),id]),JM=io(wF),Pu=Ui,QM=t=>[Oi,Zk,t,bc("align","start",["start","center","end"])],CF=[dp,_x],SF=[dp,Ol("items",Bg("items",()=>TF))],TF=Gr([io(CF),io(SF)]),mJ=qh.concat([Ol("items",TF),id]),m0=io(mJ),dte=Ui,gJ=qh.concat([Wp("items",[dp,_x]),yf("size",1),id]),kF=io(gJ),f2=Ui,qM=qh.concat([Li("constrain",!0),id]),AF=io(qM),MF=io([Da("width"),Da("height")]),pJ=Ay.concat([Zk,yf("min",0),yf("max",0)]),vJ=io(pJ),yJ=Fg,d2=[Oi,Ol("header",Ui),Ol("cells",vu(Ui))],hte=io(d2),bJ=qh.concat([Gi("placeholder"),Li("maximized",!1),id]),xJ=io(bJ),mte=Ui,EF=[Qu("type",["directory","leaf"]),J8,Da("id"),$c("menu",PS)],h2=io(EF),wJ=EF.concat([Ol("children",Bg("children",()=>ir("type",{directory:_F,leaf:h2})))]),_F=io(wJ),RF=ir("type",{directory:_F,leaf:h2}),CJ=[Oi,Ol("items",RF),pf("onLeafAction"),pf("onToggleExpand"),ec("defaultExpandedIds",[],Ui),Gi("defaultSelectedId")],pte=io(CJ),e=qh.concat([bc("filetype","file",["image","media","file"]),id,Gi("picker_text")]),n=io(e),r=io([_x,ZC]),f=t=>Wi("items","items",Ua(),vu(cl(a=>ns(`Checking item of ${t}`,w,a).fold(p=>Wo.error(wl(p)),p=>Wo.value(p))))),w=Vi(()=>ir("type",{alertbanner:YM,bar:io(tJ(f("bar"))),button:mF,checkbox:rJ,colorinput:sJ,colorpicker:iJ,dropzone:uJ,grid:io(fJ(f("grid"))),iframe:hJ,input:JM,listbox:m0,selectbox:kF,sizeinput:AF,slider:vJ,textarea:xJ,urlinput:n,customeditor:cJ,htmlpanel:My,imagepreview:u2,collection:c6,label:io(QM(f("label"))),table:hte,tree:pte,panel:Z})),B=[Oi,En("classes",[]),Ol("items",w)],Z=io(B),oe=[Kk("tab"),J8,Ol("items",w)],be=[Oi,Wp("tabs",oe)],Pe=io(be),Ke=dF,Je=jM,at=io([Da("title"),yc("body",ir("type",{panel:Z,tabpanel:Pe})),bf("size","normal"),ec("buttons",[],Je),En("initialData",{}),bi("onAction",C),bi("onChange",C),bi("onSubmit",C),bi("onClose",C),bi("onCancel",C),bi("onTabChange",C)]),Rt=t=>ns("dialog",at,t),Ht=io([Qu("type",["cancel","custom"]),...Ke]),At=io([Da("title"),Da("url"),Qs("height"),Qs("width"),jf("buttons",Ht),bi("onAction",C),bi("onCancel",C),bi("onClose",C),bi("onMessage",C)]),It=t=>ns("dialog",At,t),ln=t=>s(t)?[t].concat(ie(Nt(t),ln)):h(t)?ie(t,ln):[],xn=t=>A(t.type)&&A(t.name),yn={checkbox:gF,colorinput:vF,colorpicker:lJ,dropzone:bF,input:Pu,iframe:KM,imagepreview:XM,selectbox:f2,sizeinput:MF,slider:yJ,listbox:dte,size:MF,textarea:mte,urlinput:r,customeditor:yF,collection:oJ,togglemenuitem:eJ},$n=t=>P.from(yn[t.type]),nr=t=>Ce(ln(t),xn),mr=t=>{const a=nr(t),p=ie(a,E=>$n(E).fold(()=>[],z=>[yc(E.name,z)]));return io(p)},Nr=t=>{var a;const p=Ja(Rt(t)),E=mr(t),z=(a=t.initialData)!==null&&a!==void 0?a:{};return{internalDialog:p,dataValidator:E,initialData:z}},zn={open:(t,a)=>{const p=Nr(a);return t(p.internalDialog,p.initialData,p.dataValidator)},openUrl:(t,a)=>{const p=Ja(It(a));return t(p)},redial:t=>Nr(t)};var er=Object.freeze({__proto__:null,events:(t,a)=>{const p=(E,z)=>{t.updateState.each(Y=>{const re=Y(E,z);a.set(re)}),t.renderComponents.each(Y=>{const re=Y(z,a.get());(t.reuseDom?O$:Hc)(E,re)})};return bs([Xn(Tl(),(E,z)=>{const Y=z;if(!Y.universal){const re=t.channel;he(Y.channels,re)&&p(E,Y.data)}}),ms((E,z)=>{t.initialData.each(Y=>{p(E,Y)})})])}}),ho=Object.freeze({__proto__:null,getState:(t,a,p)=>p}),na=[qn("channel"),Ia("renderComponents"),Ia("updateState"),Ia("initialData"),Li("reuseDom",!0)],os=Object.freeze({__proto__:null,init:()=>{const t=q(P.none()),a=()=>t.set(P.none());return{readState:()=>t.get().getOr("none"),get:t.get,set:t.set,clear:a}}});const ka=Ki({fields:na,name:"reflecting",active:er,apis:ho,state:os}),ei=t=>{const a=[],p={};return Ge(t,(E,z)=>{E.fold(()=>{a.push(z)},Y=>{p[z]=Y})}),a.length>0?Wo.error(a):Wo.value(p)},zl=(t,a,p)=>{const E=Qa(Gx.sketch(z=>({dom:{tag:"div",classes:["tox-form"].concat(t.classes)},components:ne(t.items,Y=>qd(z,Y,a,p))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[E.asSpec()]}],behaviours:gr([po.config({mode:"acyclic",useTabstopAt:k(gS)}),sf.memento(E),dS(E,{postprocess:z=>ei(z).fold(Y=>(console.error(Y),{}),D)}),jo("dialog-body-panel",[Xn(_o(),(z,Y)=>{z.getSystem().broadcastOn([vS],{newFocus:P.some(Y.event.target)})})])])}},as=(t,a)=>({uid:t.uid,dom:t.dom,components:t.components,events:Gh(t.action),behaviours:Si(t.tabButtonBehaviours,[ko.config({}),po.config({mode:"execution",useSpace:!0,useEnter:!0}),Fr.config({store:{mode:"memory",initialValue:t.value}})]),domModification:t.domModification}),Sr=ou({name:"TabButton",configFields:[En("uid",void 0),qn("value"),Wi("dom","dom",aa(()=>({attributes:{role:"tab",id:Xr("aria"),"aria-selected":"false"}})),oi()),Ia("action"),En("domModification",{}),Fi("tabButtonBehaviours",[ko,po,Fr]),qn("view")],factory:as}),so=O([qn("tabs"),qn("dom"),En("clickToDismiss",!1),Fi("tabbarBehaviours",[Na,po]),Lm(["tabClass","selectedClass"])]),$a=V1({factory:Sr,name:"tabs",unit:"tab",overrides:t=>{const a=(E,z)=>{Na.dehighlight(E,z),go(E,ib(),{tabbar:E,button:z})},p=(E,z)=>{Na.highlight(E,z),go(E,$3(),{tabbar:E,button:z})};return{action:E=>{const z=E.getSystem().getByUid(t.uid).getOrDie(),Y=Na.isHighlighted(z,E);(()=>Y&&t.clickToDismiss?a:Y?C:p)()(z,E)},domModification:{classes:[t.markers.tabClass]}}}}),ha=O([$a]),to=(t,a,p,E)=>({uid:t.uid,dom:t.dom,components:a,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Si(t.tabbarBehaviours,[Na.config({highlightClass:t.markers.selectedClass,itemClass:t.markers.tabClass,onHighlight:(z,Y)=>{Lr(Y.element,"aria-selected","true")},onDehighlight:(z,Y)=>{Lr(Y.element,"aria-selected","false")}}),po.config({mode:"flow",getInitial:z=>Na.getHighlighted(z).map(Y=>Y.element),selector:"."+t.markers.tabClass,executeOnMove:!0})])}),Lo=Bl({name:"Tabbar",configFields:so(),partFields:ha(),factory:to}),vr=(t,a)=>({uid:t.uid,dom:t.dom,behaviours:Si(t.tabviewBehaviours,[Ho.config({})]),domModification:{attributes:{role:"tabpanel"}}}),Oo=ou({name:"Tabview",configFields:[Fi("tabviewBehaviours",[Ho])],factory:vr}),Aa=O([En("selectFirst",!0),Sa("onChangeTab"),Sa("onDismissTab"),En("tabs",[]),Fi("tabSectionBehaviours",[])]),ps=Fl({factory:Lo,schema:[qn("dom"),Dc("markers",[qn("tabClass"),qn("selectedClass")])],name:"tabbar",defaults:t=>({tabs:t.tabs})}),us=Fl({factory:Oo,name:"tabview"}),ml=O([ps,us]),th=(t,a,p,E)=>{const z=re=>{const xe=Fr.getValue(re);gs(re,t,"tabview").each(Ee=>{Ve(t.tabs,je=>je.value===xe).each(je=>{const et=je.view();yi(re.element,"id").each(st=>{Lr(Ee.element,"aria-labelledby",st)}),Ho.set(Ee,et),t.onChangeTab(Ee,re,et)})})},Y=(re,xe)=>{gs(re,t,"tabbar").each(Ee=>{xe(Ee).each(kh)})};return{uid:t.uid,dom:t.dom,components:a,behaviours:Bh(t.tabSectionBehaviours),events:bs(Fe([t.selectFirst?[ms((re,xe)=>{Y(re,Na.getFirst)})]:[],[Xn($3(),(re,xe)=>{const Ee=xe.event.button;z(Ee)}),Xn(ib(),(re,xe)=>{const Ee=xe.event.button;t.onDismissTab(re,Ee)})]])),apis:{getViewItems:re=>gs(re,t,"tabview").map(xe=>Ho.contents(xe)).getOr([]),showTab:(re,xe)=>{Y(re,Be=>{const je=Na.getCandidates(Be);return Ve(je,st=>Fr.getValue(st)===xe).filter(st=>!Na.isHighlighted(Be,st))})}}}},cf=Bl({name:"TabSection",configFields:Aa(),partFields:ml(),factory:th,apis:{getViewItems:(t,a)=>t.getViewItems(a),showTab:(t,a,p)=>{t.showTab(a,p)}}}),iu=(t,a,p)=>ne(t,(E,z)=>{Ho.set(p,t[z].view());const Y=a.dom.getBoundingClientRect();return Ho.set(p,[]),Y.height}),pd=t=>Me(Te(t,(a,p)=>a>p?-1:a{const E=gn(t).dom,z=tu(t,".tox-dialog-wrap").getOr(t),Y=Ms(z,"position")==="fixed";let re;Y?re=Math.max(E.clientHeight,window.innerHeight):re=Math.max(E.offsetHeight,E.scrollHeight);const xe=Ls(a),Be=a.dom.offsetLeft>=p.dom.offsetLeft+ci(p)?Math.max(Ls(p),xe):xe,je=parseInt(Ms(t,"margin-top"),10)||0,et=parseInt(Ms(t,"margin-bottom"),10)||0,mt=Ls(t)+je+et-Be;return re-mt},Oa=(t,a)=>{Me(t).each(p=>cf.showTab(a,p.value))},vs=(t,a)=>{To(t,"height",a+"px"),To(t,"flex-basis",a+"px")},Gs=(t,a,p)=>{tu(t,'[role="dialog"]').each(E=>{mi(E,'[role="tablist"]').each(z=>{p.get().map(Y=>(To(a,"height","0"),To(a,"flex-basis","0"),Math.min(Y,zo(E,a,z)))).each(Y=>{vs(a,Y)})})})},$s=t=>mi(t,'[role="tabpanel"]'),Iu=t=>{const a=ia();return{extraEvents:[ms(z=>{const Y=z.element;$s(Y).each(re=>{To(re,"visibility","hidden"),z.getSystem().getByDom(re).toOptional().each(xe=>{const Ee=iu(t,re,xe);pd(Ee).fold(a.clear,a.set)}),Gs(Y,re,a),Bo(re,"visibility"),Oa(t,z),requestAnimationFrame(()=>{Gs(Y,re,a)})})}),Xn(Xf(),z=>{const Y=z.element;$s(Y).each(re=>{Gs(Y,re,a)})}),Xn(RO,(z,Y)=>{const re=z.element;$s(re).each(xe=>{const Ee=Id(Yo(xe));To(xe,"visibility","hidden");const Be=Rs(xe,"height").map(st=>parseInt(st,10));Bo(xe,"height"),Bo(xe,"flex-basis");const je=xe.dom.getBoundingClientRect().height;Be.forall(st=>je>st)?(a.set(je),Gs(re,xe,a)):Be.each(st=>{vs(xe,st)}),Bo(xe,"visibility"),Ee.each(Ic)})})],selectFirst:!1}},nh="send-data-to-section",xp="send-data-to-view",eE=(t,a,p)=>{const E=q({}),z=Be=>{const je=Fr.getValue(Be),et=ei(je).getOr({}),st=E.get(),mt=hs(st,et);E.set(mt)},Y=Be=>{const je=E.get();Fr.setValue(Be,je)},re=q(null),xe=ne(t.tabs,Be=>({value:Be.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[ai(p.shared.providers.translate(Be.title))],view:()=>[Gx.sketch(je=>({dom:{tag:"div",classes:["tox-form"]},components:ne(Be.items,et=>qd(je,et,a,p)),formBehaviours:gr([po.config({mode:"acyclic",useTabstopAt:k(gS)}),jo("TabView.form.events",[ms(Y),_d(z)]),Pc.config({channels:bt([{key:nh,value:{onReceive:z}},{key:xp,value:{onReceive:Y}}])})])}))]})),Ee=Iu(xe);return cf.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:(Be,je,et)=>{const st=Fr.getValue(je);go(Be,_O,{name:st,oldName:re.get()}),re.set(st)},tabs:xe,components:[cf.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[Lo.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:gr([Ns.config({})])}),cf.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:Ee.selectFirst,tabSectionBehaviours:gr([jo("tabpanel",Ee.extraEvents),po.config({mode:"acyclic"}),da.config({find:Be=>Me(cf.getViewItems(Be))}),t0(P.none(),Be=>(Be.getSystem().broadcastOn([nh],{}),E.get()),(Be,je)=>{E.set(je),Be.getSystem().broadcastOn([xp],{})})])})},JS=(t,a,p,E,z)=>{const Y=Ee=>{const Be=Ee.body;switch(Be.type){case"tabpanel":return[eE(Be,Ee.initialData,E)];default:return[zl(Be,Ee.initialData,E)]}},re=(Ee,Be)=>P.some({isTabPanel:()=>Be.body.type==="tabpanel"}),xe={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...p.map(Ee=>({id:Ee})).getOr({}),...z?xe:{}}},components:[],behaviours:gr([sf.childAt(0),ka.config({channel:`${lg}-${a}`,updateState:re,renderComponents:Y,initialData:t})])}},tE=(t,a,p,E,z)=>JS(t,a,P.some(p),E,z),m2=(t,a,p)=>{const E=JS(t,a,P.none(),p,!1);return rl.parts.body(E)},nE=t=>{const a={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[wP(P.none(),{dom:{tag:"iframe",attributes:{src:t.url}},behaviours:gr([Ns.config({}),ko.config({})])})]}],behaviours:gr([po.config({mode:"acyclic",useTabstopAt:k(gS)})])};return rl.parts.body(a)},g2=xx.deviceType.isTouch(),g0=(t,a)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[t,a]}),rh=(t,a)=>rl.parts.close(hl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":a.translate("Close")}},action:t,buttonBehaviours:gr([Ns.config({})])})),em=()=>rl.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),p2=(t,a)=>rl.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:cp(`

    ${X_(a.translate(t))}

    `)}]}]}),Ey=t=>rl.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:t}),QS=(t,a)=>[Kh.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:t}),Kh.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:a})],tm=t=>{const a="tox-dialog",p=a+"-wrap",E=p+"__backdrop",z=a+"__disable-scroll";return rl.sketch({lazySink:t.lazySink,onEscape:Y=>(t.onEscape(Y),P.some(!0)),useTabstopAt:Y=>!gS(Y),firstTabstop:t.firstTabstop,dom:{tag:"div",classes:[a].concat(t.extraClasses),styles:{position:"relative",...t.extraStyles}},components:[t.header,t.body,...t.footer.toArray()],parts:{blocker:{dom:cp(`
    `),components:[{dom:{tag:"div",classes:g2?[E,E+"--opaque"]:[E]}}]}},dragBlockClass:p,modalBehaviours:gr([ko.config({}),jo("dialog-events",t.dialogEvents.concat([Ed(_o(),(Y,re)=>{Qh.isBlocked(Y)?C():po.focusIn(Y)}),Xn(ab(),(Y,re)=>{Y.getSystem().broadcastOn([vS],{newFocus:re.event.newFocus})})])),jo("scroll-lock",[ms(()=>{hi(ss(),z)}),_d(()=>{Is(ss(),z)})]),...t.extraBehaviours]),eventOrder:{[Ci()]:["dialog-events"],[Cu()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[Sm()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...t.eventOrder}})},rE=t=>hl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close"),title:t.translate("Close")}},buttonBehaviours:gr([Ns.config({})]),components:[Gd("close",{tag:"span",classes:["tox-icon"]},t.icons)],action:a=>{pa(a,Jv)}}),qS=(t,a,p,E)=>{const z=Y=>[ai(E.translate(Y.title))];return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:{...p.map(Y=>({id:Y})).getOr({})}},components:[],behaviours:gr([ka.config({channel:`${FA}-${a}`,initialData:t,renderComponents:z})])}},fc=()=>({dom:cp('
    ')}),_y=(t,a,p,E)=>Kh.sketch({dom:cp('
    '),components:[qS(t,a,P.some(p),E),fc(),rE(E)],containerBehaviours:gr([h0.config({mode:"mouse",blockerClass:"blocker",getTarget:z=>Qf(z,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),LF=(t,a,p)=>{const E=rl.parts.title(qS(t,a,P.none(),p)),z=rl.parts.draghandle(fc()),Y=rl.parts.close(rE(p)),re=[E].concat(t.draggable?[z]:[]).concat([Y]);return Kh.sketch({dom:cp('
    '),components:re})},oE=(t,a,p)=>LF({title:p.shared.providers.translate(t),draggable:p.dialog.isDraggableModal()},a,p.shared.providers),e3=(t,a,p,E)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":p.translate(t)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${E.getOr(0)}px`,position:"absolute"}},behaviours:a,components:[{dom:cp('
    ')}]}),ug=(t,a,p)=>({onClose:()=>p.closeWindow(),onBlock:E=>{const z=mi(t().element,".tox-dialog__header").map(Y=>Ls(Y));rl.setBusy(t(),(Y,re)=>e3(E.message,re,a,z))},onUnblock:()=>{rl.setIdle(t())}}),v2="tox-dialog--fullscreen",On="tox-dialog--width-lg",Pn="tox-dialog--width-md",yr=t=>{switch(t){case"large":return P.some(On);case"medium":return P.some(Pn);default:return P.none()}},dr=(t,a)=>{const p=zt.fromDom(a.element.dom);Ni(p,v2)||(Su(p,[On,Pn]),yr(t).each(E=>hi(p,E)))},uo=(t,a)=>{const p=zt.fromDom(t.element.dom),E=nv(p),z=Ve(E,Y=>Y===On||Y===Pn).or(yr(a));rw(p,[v2,...z.toArray()])},ua=(t,a,p)=>Pl(tm({...t,firstTabstop:1,lazySink:p.shared.getSink,extraBehaviours:[hS({}),...t.extraBehaviours],onEscape:E=>{pa(E,Jv)},dialogEvents:a,eventOrder:{[Tl()]:[ka.name(),Pc.name()],[Cu()]:["scroll-lock",ka.name(),"messages","dialog-events","alloy.base.behaviour"],[Sm()]:["alloy.base.behaviour","dialog-events","messages",ka.name(),"scroll-lock"]}})),Fs=(t,a={})=>{const p=E=>{const z=ne(E.items,Y=>{const re=Ft(a,Y.name).getOr(q(!1));return{...Y,storage:re}});return{...E,items:z}};return ne(t,E=>E.type==="menu"?p(E):E)},Nu=t=>ke(t,(a,p)=>p.type==="menu"?ke(p.items,(z,Y)=>(z[Y.name]=Y.storage,z),a):a,{}),Vl=(t,a)=>[Z2(_o(),SP),t(Bx,(p,E,z,Y)=>{Id(Yo(Y.element)).fold(C,hv),a.onClose(),E.onClose()}),t(Jv,(p,E,z,Y)=>{E.onCancel(p),pa(Y,Bx)}),Xn(RR,(p,E)=>a.onUnblock()),Xn(_R,(p,E)=>a.onBlock(E.event))],Ry=(t,a)=>{const p=(z,Y)=>Xn(z,(re,xe)=>{E(re,(Ee,Be)=>{Y(t(),Ee,xe.event,re)})}),E=(z,Y)=>{ka.getState(z).get().each(re=>{Y(re,z)})};return[...Vl(p,a),p(rg,(z,Y,re)=>{Y.onAction(z,{name:re.name})})]},vd=(t,a,p)=>{const E=(Y,re)=>Xn(Y,(xe,Ee)=>{z(xe,(Be,je)=>{re(t(),Be,Ee.event,xe)})}),z=(Y,re)=>{ka.getState(Y).get().each(xe=>{re(xe.internalDialog,Y)})};return[...Vl(E,a),E(iS,(Y,re)=>re.onSubmit(Y)),E($u,(Y,re,xe)=>{re.onChange(Y,{name:xe.name})}),E(rg,(Y,re,xe,Ee)=>{const Be=()=>Ee.getSystem().isConnected()?po.focusIn(Ee):void 0,je=mt=>Hf(mt,"disabled")||yi(mt,"aria-disabled").exists(Mt=>Mt==="true"),et=Yo(Ee.element),st=Id(et);re.onAction(Y,{name:xe.name,value:xe.value}),Id(et).fold(Be,mt=>{je(mt)||st.exists(Mt=>nn(mt,Mt)&&je(Mt))?Be():p().toOptional().filter(Mt=>!nn(Mt.element,mt)).each(Be)})}),E(_O,(Y,re,xe)=>{re.onTabChange(Y,{newTabName:xe.name,oldTabName:xe.oldName})}),_d(Y=>{const re=t();Fr.setValue(Y,re.getData())})]},DF=(t,a)=>qA(t,t.type,a),$F=(t,a,p)=>Ve(a,E=>E.name===p).bind(E=>E.memento.getOpt(t)),OF=(t,a)=>{const p=a.map(xe=>xe.footerButtons).getOr([]),E=ye(p,xe=>xe.align==="start"),z=(xe,Ee)=>Kh.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${xe}`]},components:ne(Ee,Be=>Be.memento.asSpec())}),Y=z("start",E.pass),re=z("end",E.fail);return[Y,re]},d6=(t,a,p)=>{const E=(z,Y)=>{const re=ne(Y.buttons,Ee=>{const Be=Qa(DF(Ee,p));return{name:Ee.name,align:Ee.align,memento:Be}}),xe=Ee=>$F(z,re,Ee);return P.some({lookupByName:xe,footerButtons:re})};return{dom:cp(''),components:[],behaviours:gr([ka.config({channel:`${BA}-${a}`,initialData:t,updateState:E,renderComponents:OF})])}},SJ=(t,a,p)=>d6(t,a,p),la=(t,a,p)=>rl.parts.footer(d6(t,a,p)),Fn=(t,a)=>{if(t.getRoot().getSystem().isConnected()){const E=da.getCurrent(t.getFormWrapper()).getOr(t.getFormWrapper());return Gx.getField(E,a).orThunk(()=>t.getFooter().bind(re=>ka.getState(re).get()).bind(re=>re.lookupByName(a)))}else return P.none()},ao=(t,a)=>{const p=t.getRoot();return ka.getState(p).get().map(E=>Ja(ns("data",E.dataValidator,a))).getOr(a)},Ao=(t,a,p)=>{const E=Mt=>{const Xt=t.getRoot();Xt.getSystem().isConnected()&&Mt(Xt)},mt={getData:()=>{const Mt=t.getRoot(),Xt=Mt.getSystem().isConnected()?t.getFormWrapper():Mt,Dn=Fr.getValue(Xt),hn=Xe(p,rn=>rn.get());return{...Dn,...hn}},setData:Mt=>{E(Xt=>{const Dn=mt.getData(),hn=hs(Dn,Mt),rn=ao(t,hn),kn=t.getFormWrapper();Fr.setValue(kn,rn),Ge(p,(Vn,hr)=>{pn(hn,hr)&&Vn.set(hn[hr])})})},setEnabled:(Mt,Xt)=>{Fn(t,Mt).each(Xt?Co.enable:Co.disable)},focus:Mt=>{Fn(t,Mt).each(ko.focus)},block:Mt=>{if(!A(Mt))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");E(Xt=>{go(Xt,_R,{message:Mt})})},unblock:()=>{E(Mt=>{pa(Mt,RR)})},showTab:Mt=>{E(Xt=>{const Dn=t.getBody();ka.getState(Dn).get().exists(rn=>rn.isTabPanel())&&da.getCurrent(Dn).each(rn=>{cf.showTab(rn,Mt)})})},redial:Mt=>{E(Xt=>{const Dn=t.getId(),hn=a(Mt),rn=Fs(hn.internalDialog.buttons,p);Xt.getSystem().broadcastOn([`${pS}-${Dn}`],hn),Xt.getSystem().broadcastOn([`${FA}-${Dn}`],hn.internalDialog),Xt.getSystem().broadcastOn([`${lg}-${Dn}`],hn.internalDialog),Xt.getSystem().broadcastOn([`${BA}-${Dn}`],{...hn.internalDialog,buttons:rn}),mt.setData(hn.initialData)})},close:()=>{E(Mt=>{pa(Mt,Bx)})},toggleFullscreen:t.toggleFullscreen};return mt},ki=(t,a,p)=>{const E=Xr("dialog"),z=t.internalDialog,Y=oE(z.title,E,p),re=q(z.size),xe=yr(re.get()).toArray(),Ee=(rn,kn)=>(re.set(kn.internalDialog.size),dr(kn.internalDialog.size,rn),P.some(kn)),Be=m2({body:z.body,initialData:z.initialData},E,p),je=Fs(z.buttons),et=Nu(je),st=lt(je.length!==0,la({buttons:je},E,p)),mt=vd(()=>hn,ug(()=>Xt,p.shared.providers,a),p.shared.getSink),Mt={id:E,header:Y,body:Be,footer:st,extraClasses:xe,extraBehaviours:[ka.config({channel:`${pS}-${E}`,updateState:Ee,initialData:t})],extraStyles:{}},Xt=ua(Mt,mt,p),Dn=(()=>{const rn=()=>{const Vn=rl.getBody(Xt);return da.getCurrent(Vn).getOr(Vn)},kn=()=>{uo(Xt,re.get())};return{getId:O(E),getRoot:O(Xt),getBody:()=>rl.getBody(Xt),getFooter:()=>rl.getFooter(Xt),getFormWrapper:rn,toggleFullscreen:kn}})(),hn=Ao(Dn,a.redial,et);return{dialog:Xt,instanceApi:hn}},kc=(t,a,p,E=!1,z)=>{const Y=Xr("dialog"),re=Xr("dialog-label"),xe=Xr("dialog-content"),Ee=t.internalDialog,Be=q(Ee.size),je=yr(Be.get()).toArray(),et=(Yn,br)=>(Be.set(br.internalDialog.size),dr(br.internalDialog.size,Yn),z(),P.some(br)),st=Qa(_y({title:Ee.title,draggable:!0},Y,re,p.shared.providers)),mt=Qa(tE({body:Ee.body,initialData:Ee.initialData},Y,xe,p,E)),Mt=Fs(Ee.buttons),Xt=Nu(Mt),Dn=lt(Mt.length!==0,Qa(SJ({buttons:Mt},Y,p))),hn=vd(()=>hr,{onBlock:Yn=>{Qh.block(kn,(br,Mr)=>{const ea=st.getOpt(kn).map(Zr=>Ls(Zr.element));return e3(Yn.message,Mr,p.shared.providers,ea)})},onUnblock:()=>{Qh.unblock(kn)},onClose:()=>a.closeWindow()},p.shared.getSink),kn=Pl({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline",...je],attributes:{role:"dialog","aria-labelledby":re}},eventOrder:{[Tl()]:[ka.name(),Pc.name()],[Ci()]:["execute-on-form"],[Cu()]:["reflecting","execute-on-form"]},behaviours:gr([po.config({mode:"cyclic",onEscape:Yn=>(pa(Yn,Bx),P.some(!0)),useTabstopAt:Yn=>!gS(Yn)&&(vo(Yn)!=="button"||Ka(Yn,"disabled")!=="disabled"),firstTabstop:1}),ka.config({channel:`${pS}-${Y}`,updateState:et,initialData:t}),ko.config({}),jo("execute-on-form",hn.concat([Ed(_o(),(Yn,br)=>{po.focusIn(Yn)}),Xn(ab(),(Yn,br)=>{Yn.getSystem().broadcastOn([vS],{newFocus:br.event.newFocus})})])),Qh.config({getRoot:()=>P.some(kn)}),Ho.config({}),hS({})]),components:[st.asSpec(),mt.asSpec(),...Dn.map(Yn=>Yn.asSpec()).toArray()]}),Vn=()=>{uo(kn,Be.get())},hr=Ao({getId:O(Y),getRoot:O(kn),getFooter:()=>Dn.map(Yn=>Yn.get(kn)),getBody:()=>mt.get(kn),getFormWrapper:()=>{const Yn=mt.get(kn);return da.getCurrent(Yn).getOr(Yn)},toggleFullscreen:Vn},a.redial,Xt);return{dialog:kn,instanceApi:hr}};var Ff=tinymce.util.Tools.resolve("tinymce.util.URI");const gl=t=>{const a=re=>{t.getSystem().isConnected()&&re(t)};return{block:re=>{if(!A(re))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");a(xe=>{go(xe,_R,{message:re})})},unblock:()=>{a(re=>{pa(re,RR)})},close:()=>{a(re=>{pa(re,Bx)})},sendMessage:re=>{a(xe=>{xe.getSystem().broadcastOn([sL],re)})}}},oh=["insertContent","setContent","execCommand","close","block","unblock"],aE=t=>s(t)&&oh.indexOf(t.mceAction)!==-1,TJ=t=>!aE(t)&&s(t)&&pn(t,"mceAction"),PF=(t,a,p)=>{switch(p.mceAction){case"insertContent":t.insertContent(p.content);break;case"setContent":t.setContent(p.content);break;case"execCommand":const E=c(p.ui)?p.ui:!1;t.execCommand(p.cmd,E,p.value);break;case"close":a.close();break;case"block":a.block(p.message);break;case"unblock":a.unblock();break}},vte=(t,a,p,E)=>{const z=Xr("dialog"),Y=oE(t.title,z,E),re=nE(t),xe=t.buttons.bind(kn=>kn.length===0?P.none():P.some(la({buttons:kn},z,E))),Ee=Ry(()=>rn,ug(()=>hn,E.shared.providers,a)),Be={...t.height.fold(()=>({}),kn=>({height:kn+"px","max-height":kn+"px"})),...t.width.fold(()=>({}),kn=>({width:kn+"px","max-width":kn+"px"}))},je=t.width.isNone()&&t.height.isNone()?["tox-dialog--width-lg"]:[],et=new Ff(t.url,{base_uri:new Ff(window.location.href)}),st=`${et.protocol}://${et.host}${et.port?":"+et.port:""}`,mt=Oh(),Mt=(kn,Vn)=>P.some(Vn),Xt=[ka.config({channel:`${pS}-${z}`,updateState:Mt,initialData:t}),jo("messages",[ms(()=>{const kn=sc(zt.fromDom(window),"message",Vn=>{if(et.isSameOrigin(new Ff(Vn.raw.origin))){const hr=Vn.raw.data;aE(hr)?PF(p,rn,hr):TJ(hr)&&t.onMessage(rn,hr)}});mt.set(kn)}),_d(mt.clear)]),Pc.config({channels:{[sL]:{onReceive:(kn,Vn)=>{mi(kn.element,"iframe").each(hr=>{const Yn=hr.dom.contentWindow;d(Yn)&&Yn.postMessage(Vn,st)})}}}})],hn=ua({id:z,header:Y,body:re,footer:xe,extraClasses:je,extraBehaviours:Xt,extraStyles:Be},Ee,E),rn=gl(hn);return{dialog:hn,instanceApi:rn}},$ie=t=>{const a=t.shared;return{open:(E,z)=>{const Y=()=>{rl.hide(Be),z()},re=Qa(qA({name:"close-alert",text:"OK",primary:!0,buttonType:P.some("primary"),align:"end",enabled:!0,icon:P.none()},"cancel",t)),xe=em(),Ee=rh(Y,a.providers),Be=Pl(tm({lazySink:()=>a.getSink(),header:g0(xe,Ee),body:p2(E,a.providers),footer:P.some(Ey(QS([],[re.asSpec()]))),onEscape:Y,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Xn(Jv,Y)],eventOrder:{}}));rl.show(Be);const je=re.get(Be);ko.focus(je)}}},Oie=t=>{const a=t.shared;return{open:(E,z)=>{const Y=st=>{rl.hide(je),z(st)},re=Qa(qA({name:"yes",text:"Yes",primary:!0,buttonType:P.some("primary"),align:"end",enabled:!0,icon:P.none()},"submit",t)),xe=qA({name:"no",text:"No",primary:!1,buttonType:P.some("secondary"),align:"end",enabled:!0,icon:P.none()},"cancel",t),Ee=em(),Be=rh(()=>Y(!1),a.providers),je=Pl(tm({lazySink:()=>a.getSink(),header:g0(Ee,Be),body:p2(E,a.providers),footer:P.some(Ey(QS([],[xe,re.asSpec()]))),onEscape:()=>Y(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Xn(Jv,()=>Y(!1)),Xn(iS,()=>Y(!0))],eventOrder:{}}));rl.show(je);const et=re.get(je);ko.focus(et)}}},yte=(t,a)=>Ja(ns("data",a,t)),bte=t=>rS(t,".tox-alert-dialog")||rS(t,".tox-confirm-dialog"),Pie=(t,a,p)=>a&&p?[]:[Ti.config({contextual:{lazyContext:()=>P.some(Js(zt.fromDom(t.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:E=>Xv(t,E.element).map(Y=>({bounds:Fx(Y),optScrollEnv:P.some({currentScrollTop:Y.element.dom.scrollTop,scrollElmTop:al(Y.element).top})})).getOrThunk(()=>({bounds:bl(),optScrollEnv:P.none()}))})],Iie=t=>{const a=t.editor,p=zC(a),E=$ie(t.backstages.dialog),z=Oie(t.backstages.dialog),Y=(Mt,Xt,Dn)=>{if(!i(Xt)){if(Xt.inline==="toolbar")return Be(Mt,t.backstages.popup.shared.anchors.inlineDialog(),Dn,Xt);if(Xt.inline==="bottom")return je(Mt,t.backstages.popup.shared.anchors.inlineBottomDialog(),Dn,Xt);if(Xt.inline==="cursor")return Be(Mt,t.backstages.popup.shared.anchors.cursor(),Dn,Xt)}return Ee(Mt,Dn)},re=(Mt,Xt)=>xe(Mt,Xt),xe=(Mt,Xt)=>{const Dn=hn=>{const rn=vte(hn,{closeWindow:()=>{rl.hide(rn.dialog),Xt(rn.instanceApi)}},a,t.backstages.dialog);return rl.show(rn.dialog),rn.instanceApi};return zn.openUrl(Dn,Mt)},Ee=(Mt,Xt)=>{const Dn=(hn,rn,kn)=>{const Vn=rn,Yn=ki({dataValidator:kn,initialData:Vn,internalDialog:hn},{redial:zn.redial,closeWindow:()=>{rl.hide(Yn.dialog),Xt(Yn.instanceApi)}},t.backstages.dialog);return rl.show(Yn.dialog),Yn.instanceApi.setData(Vn),Yn.instanceApi};return zn.open(Dn,Mt)},Be=(Mt,Xt,Dn,hn)=>{const rn=(kn,Vn,hr)=>{const Yn=yte(Vn,hr),br=ia(),Mr=t.backstages.popup.shared.header.isPositionedAtTop(),ea={dataValidator:hr,initialData:Yn,internalDialog:kn},Zr=()=>br.on(xo=>{Ws.reposition(xo),(!p||!Mr)&&Ti.refresh(xo)}),Do=kc(ea,{redial:zn.redial,closeWindow:()=>{br.on(Ws.hide),a.off("ResizeEditor",Zr),br.clear(),Dn(Do.instanceApi)}},t.backstages.popup,hn.ariaAttrs,Zr),Mo=Pl(Ws.sketch({lazySink:t.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:hn.persistent?{event:"doNotDismissYet"}:{},...Mr?{}:{fireRepositionEventInstead:{}},inlineBehaviours:gr([jo("window-manager-inline-events",[Xn(Tm(),(xo,Ea)=>{pa(Do.dialog,Jv)})]),...Pie(a,p,Mr)]),isExtraPart:(xo,Ea)=>bte(Ea)}));br.set(Mo);const ja=()=>{const xo=a.inline?ss():zt.fromDom(a.getContainer()),Ea=Js(xo);return P.some(Ea)};return Ws.showWithinBounds(Mo,Tu(Do.dialog),{anchor:Xt},ja),(!p||!Mr)&&(Ti.refresh(Mo),a.on("ResizeEditor",Zr)),Do.instanceApi.setData(Yn),po.focusIn(Do.dialog),Do.instanceApi};return zn.open(rn,Mt)},je=(Mt,Xt,Dn,hn)=>{const rn=(kn,Vn,hr)=>{const Yn=yte(Vn,hr),br=ia(),Mr=t.backstages.popup.shared.header.isPositionedAtTop(),ea={dataValidator:hr,initialData:Yn,internalDialog:kn},Zr=()=>br.on(xo=>{Ws.reposition(xo),Ti.refresh(xo)}),Do=kc(ea,{redial:zn.redial,closeWindow:()=>{br.on(Ws.hide),a.off("ResizeEditor ScrollWindow ElementScroll",Zr),br.clear(),Dn(Do.instanceApi)}},t.backstages.popup,hn.ariaAttrs,Zr),Mo=Pl(Ws.sketch({lazySink:t.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:hn.persistent?{event:"doNotDismissYet"}:{},...Mr?{}:{fireRepositionEventInstead:{}},inlineBehaviours:gr([jo("window-manager-inline-events",[Xn(Tm(),(xo,Ea)=>{pa(Do.dialog,Jv)})]),Ti.config({contextual:{lazyContext:()=>P.some(Js(zt.fromDom(a.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:xo=>Xv(a,xo.element).map(Ar=>({bounds:Fx(Ar),optScrollEnv:P.some({currentScrollTop:Ar.element.dom.scrollTop,scrollElmTop:al(Ar.element).top})})).getOrThunk(()=>({bounds:bl(),optScrollEnv:P.none()}))})]),isExtraPart:(xo,Ea)=>bte(Ea)}));br.set(Mo);const ja=()=>t.backstages.popup.shared.getSink().toOptional().bind(xo=>{const Ea=Xv(a,xo.element),Ar=15,no=Ea.map(wo=>Fx(wo)).getOr(bl()),$o=Js(zt.fromDom(a.getContentAreaContainer())),Po=H0($o,no);return P.some(Hs(Po.x,Po.y,Po.width,Po.height-Ar))});return Ws.showWithinBounds(Mo,Tu(Do.dialog),{anchor:Xt},ja),Ti.refresh(Mo),a.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",Zr),Do.instanceApi.setData(Yn),po.focusIn(Do.dialog),Do.instanceApi};return zn.open(rn,Mt)};return{open:Y,openUrl:re,alert:(Mt,Xt)=>{E.open(Mt,Xt)},close:Mt=>{Mt.close()},confirm:(Mt,Xt)=>{z.open(Mt,Xt)}}},Nie=t=>{v8(t),YV(t),QK(t)};var Fie=()=>{vm.add("silver",t=>{Nie(t);let a=()=>bl();const{dialogs:p,popups:E,renderUI:z}=XX(t,{getPopupSinkBounds:()=>a()}),Y=()=>{const Ee=z();return Xv(t,E.getMothership().element).each(je=>{a=()=>Fx(je)}),Ee};FU.register(t,E.backstage.shared);const re=Iie({editor:t,backstages:{popup:E.backstage,dialog:p.backstage}}),xe=()=>n5(t,{backstage:E.backstage},E.getMothership());return{renderUI:Y,getWindowManagerImpl:O(re),getNotificationManagerImpl:xe}})};Fie()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"accordion-toggle":'',accordion:'',"action-next":'',"action-prev":'',addtag:'',"ai-prompt":'',ai:'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',footnote:'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',minus:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',send:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',"template-add":'',template:'',"temporary-placeholder":'',"text-color":'',"text-size-decrease":'',"text-size-increase":'',toc:'',translate:'',typography:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}});(function(){const o=C=>{let _=C;return{get:()=>_,set:O=>{_=O}}};var b=tinymce.util.Tools.resolve("tinymce.PluginManager");const y=C=>()=>C;var T=tinymce.util.Tools.resolve("tinymce.Env");const G=C=>C.dispatch("ResizeEditor"),V=C=>_=>_.options.get(C),L=C=>{const _=C.options.register;_("autoresize_overflow_padding",{processor:"number",default:1}),_("autoresize_bottom_margin",{processor:"number",default:50})},A=V("min_height"),s=V("max_height"),m=V("autoresize_overflow_padding"),h=V("autoresize_bottom_margin"),l=C=>C.plugins.fullscreen&&C.plugins.fullscreen.isFullscreen(),c=(C,_)=>{const $=C.getBody();$&&($.style.overflowY=_?"":"hidden",_||($.scrollTop=0))},i=(C,_,$,S)=>{var O;const D=parseInt((O=C.getStyle(_,$,S))!==null&&O!==void 0?O:"",10);return isNaN(D)?0:D},u=C=>{if((C==null?void 0:C.type.toLowerCase())==="setcontent"){const _=C;return _.selection===!0||_.paste===!0}else return!1},d=(C,_,$,S)=>{var O;const D=C.dom,N=C.getDoc();if(!N)return;if(l(C)){c(C,!0);return}const M=N.documentElement,k=S?S():m(C),R=(O=A(C))!==null&&O!==void 0?O:C.getElement().offsetHeight;let F=R;const H=i(D,M,"margin-top",!0),j=i(D,M,"margin-bottom",!0);let P=M.offsetHeight+H+j+k;P<0&&(P=0);const ee=C.getContainer().offsetHeight,J=C.getContentAreaContainer().offsetHeight,K=ee-J;P+K>R&&(F=P+K);const ae=s(C);if(ae&&F>ae?(F=ae,c(C,!0)):c(C,!1),F!==_.get()){const Q=F-_.get();if(D.setStyle(C.getContainer(),"height",F+"px"),_.set(F),G(C),T.browser.isSafari()&&(T.os.isMacOS()||T.os.isiOS())){const he=C.getWin();he.scrollTo(he.pageXOffset,he.pageYOffset)}C.hasFocus()&&u($)&&C.selection.scrollIntoView(),(T.browser.isSafari()||T.browser.isChromium())&&Q<0&&d(C,_,$,S)}},g=(C,_)=>{let $=()=>h(C),S,O;C.on("init",D=>{S=0;const N=m(C),M=C.dom;M.setStyles(C.getDoc().documentElement,{height:"auto"}),T.browser.isEdge()||T.browser.isIE()?M.setStyles(C.getBody(),{paddingLeft:N,paddingRight:N,"min-height":0}):M.setStyles(C.getBody(),{paddingLeft:N,paddingRight:N}),d(C,_,D,$),S+=1}),C.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",D=>{if(S===1)O=C.getContainer().offsetHeight,d(C,_,D,$),S+=1;else if(S===2){const N=O{C.addCommand("mceAutoResize",()=>{d(C,_)})};var x=()=>{b.add("autoresize",C=>{if(L(C),C.options.isSet("resize")||C.options.set("resize",!1),!C.inline){const _=o(0);v(C,_),g(C,_)}})};x()})();var bve=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],xve=function(o){return bve.map(function(b){return b.toLowerCase()}).indexOf(o.toLowerCase())!==-1},wve=function(o,b,y){Object.keys(b).filter(xve).forEach(function(T){var G=b[T];typeof G=="function"&&(T==="onInit"?G(o,y):y.on(T.substring(2),function(V){return G(V,y)}))})},Cve=function(o,b,y,T){var G=o.modelEvents?o.modelEvents:null,V=Array.isArray(G)?G.join(" "):G;ta(T,function(L,A){y&&typeof L=="string"&&L!==A&&L!==y.getContent({format:o.outputFormat})&&y.setContent(L)}),y.on(V||"change input undo redo",function(){b.emit("update:modelValue",y.getContent({format:o.outputFormat}))})},Sve=function(o,b,y,T,G,V){T.setContent(V()),y.attrs["onUpdate:modelValue"]&&Cve(b,y,T,G),wve(o,y.attrs,T)},Ire=0,Aie=function(o){var b=Date.now(),y=Math.floor(Math.random()*1e9);return Ire++,o+"_"+y+Ire+String(b)},Tve=function(o){return o!==null&&o.tagName.toLowerCase()==="textarea"},Nre=function(o){return typeof o>"u"||o===""?[]:Array.isArray(o)?o:o.split(" ")},kve=function(o,b){return Nre(o).concat(Nre(b))},Ave=function(o){return o==null},Fre=function(){return{listeners:[],scriptId:Aie("tiny-script"),scriptLoaded:!1}},Mve=function(){var o=Fre(),b=function(G,V,L,A){var s=V.createElement("script");s.referrerPolicy="origin",s.type="application/javascript",s.id=G,s.src=L;var m=function(){s.removeEventListener("load",m),A()};s.addEventListener("load",m),V.head&&V.head.appendChild(s)},y=function(G,V,L){o.scriptLoaded?L():(o.listeners.push(L),G.getElementById(o.scriptId)||b(o.scriptId,G,V,function(){o.listeners.forEach(function(A){return A()}),o.scriptLoaded=!0}))},T=function(){o=Fre()};return{load:y,reinitialize:T}},Eve=Mve(),_ve=function(){return typeof window<"u"?window:global},l3=function(){var o=_ve();return o&&o.tinymce?o.tinymce:null},Rve={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(o){return o==="html"||o==="text"}}},y0=globalThis&&globalThis.__assign||function(){return y0=Object.assign||function(o){for(var b,y=1,T=arguments.length;y[o.$devMode?(mo(),za(sm,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:jr(()=>[ct(kp,{cols:11},{default:jr(()=>[Pve]),_:1}),ct(kp,{cols:1,class:"d-flex justify-end align-center py-0"},{default:jr(()=>[ct(js,{small:"",class:"mx-1",color:"primary",onClick:V.saveCell},{default:jr(()=>[ii(" mdi-content-save ")]),_:1},8,["onClick"]),ct(js,{small:"",class:"mx-1",color:"error",onClick:V.deleteCell},{default:jr(()=>[ii(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):cm("",!0),o.$devMode?(mo(),za(L,{key:1,modelValue:y.cellData.code,"onUpdate:modelValue":b[0]||(b[0]=A=>y.cellData.code=A),init:o.init},null,8,["modelValue","init"])):(mo(),za(L,{key:2,modelValue:y.cellData.code,"onUpdate:modelValue":b[1]||(b[1]=A=>y.cellData.code=A),init:o.init,disabled:!0},null,8,["modelValue","init"]))]),_:1}),ct(O2,{transition:"scale-transition"},{activator:jr(({props:A})=>[ct(dc,Jo(A,{block:""}),{default:jr(()=>[ct(sm,null,{default:jr(()=>[ct(js,{color:"primary"},{default:jr(()=>[ii("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:jr(()=>[ct($2,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(o.items,(A,s)=>(mo(),za(fm,{key:s},{default:jr(()=>[ct(dc,{block:"",onClick:m=>V.createCell(A.title)},{default:jr(()=>[ii(Sp(A.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})],64)}const Nve=Vy(Ove,[["render",Ive]]);var Fve={exports:{}};(function(o,b){ace.define("ace/mode/sql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("./text_highlight_rules").TextHighlightRules,A=function(){var s="select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|when|then|else|end|type|left|right|join|on|outer|desc|asc|union|create|table|primary|key|if|foreign|not|references|default|null|inner|cross|natural|database|drop|grant|distinct|is|in",m="true|false",h="avg|count|first|last|max|min|sum|ucase|lcase|mid|len|round|rank|now|format|coalesce|ifnull|isnull|nvl",l="int|numeric|decimal|date|varchar|char|bigint|float|double|bit|binary|text|set|timestamp|money|real|number|integer",c=this.createKeywordMapper({"support.function":h,keyword:s,"constant.language":m,"storage.type":l},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:c,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};V.inherits(A,L),T.SqlHighlightRules=A}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(y,T,G){var V=y("../../lib/oop"),L=y("../../range").Range,A=y("./fold_mode").FoldMode,s=T.FoldMode=function(m){m&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+m.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+m.end)))};V.inherits(s,A),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(m,h,l){var c=m.getLine(l);if(this.singleLineBlockCommentRe.test(c)&&!this.startRegionRe.test(c)&&!this.tripleStarBlockCommentRe.test(c))return"";var i=this._getFoldWidgetBase(m,h,l);return!i&&this.startRegionRe.test(c)?"start":i},this.getFoldWidgetRange=function(m,h,l,c){var i=m.getLine(l);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(m,i,l);var g=i.match(this.foldingStartMarker);if(g){var u=g.index;if(g[1])return this.openingBracketBlock(m,g[1],l,u);var d=m.getCommentFoldRange(l,u+g[0].length,1);return d&&!d.isMultiLine()&&(c?d=this.getSectionRange(m,l):h!="all"&&(d=null)),d}if(h!=="markbegin"){var g=i.match(this.foldingStopMarker);if(g){var u=g.index+g[0].length;return g[1]?this.closingBracketBlock(m,g[1],l,u):m.getCommentFoldRange(l,u,-1)}}},this.getSectionRange=function(m,h){var l=m.getLine(h),c=l.search(/\S/),i=h,u=l.length;h=h+1;for(var d=h,g=m.getLength();++hv)break;var x=this.getFoldWidgetRange(m,"all",h);if(x){if(x.start.row<=i)break;if(x.isMultiLine())h=x.end.row;else if(c==v)break}d=h}}return new L(i,u,d,m.getLine(d).length)},this.getCommentRegionBlock=function(m,h,l){for(var c=h.search(/\s*$/),i=m.getLength(),u=l,d=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++lu)return new L(u,c,x,h.length)}}).call(s.prototype)}),ace.define("ace/mode/folding/sql",["require","exports","module","ace/lib/oop","ace/mode/folding/cstyle"],function(y,T,G){var V=y("../../lib/oop"),L=y("./cstyle").FoldMode,A=T.FoldMode=function(){};V.inherits(A,L),(function(){}).call(A.prototype)}),ace.define("ace/mode/sql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sql_highlight_rules","ace/mode/folding/sql"],function(y,T,G){var V=y("../lib/oop"),L=y("./text").Mode,A=y("./sql_highlight_rules").SqlHighlightRules,s=y("./folding/sql").FoldMode,m=function(){this.HighlightRules=A,this.foldingRules=new s,this.$behaviour=this.$defaultBehaviour};V.inherits(m,L),(function(){this.lineCommentStart="--",this.blockComment={start:"/*",end:"*/"},this.$id="ace/mode/sql",this.snippetFileId="ace/snippets/sql"}).call(m.prototype),T.Mode=m}),function(){ace.require(["ace/mode/sql"],function(y){o&&(o.exports=y)})}()})(Fve);var Bve={exports:{}};(function(o,b){ace.define("ace/snippets/sql.snippets",["require","exports","module"],function(y,T,G){G.exports="snippet tbl\n create table ${1:table} (\n ${2:columns}\n );\nsnippet col\n ${1:name} ${2:type} ${3:default ''} ${4:not null}\nsnippet ccol\n ${1:name} varchar2(${2:size}) ${3:default ''} ${4:not null}\nsnippet ncol\n ${1:name} number ${3:default 0} ${4:not null}\nsnippet dcol\n ${1:name} date ${3:default sysdate} ${4:not null}\nsnippet ind\n create index ${3:$1_$2} on ${1:table}(${2:column});\nsnippet uind\n create unique index ${1:name} on ${2:table}(${3:column});\nsnippet tblcom\n comment on table ${1:table} is '${2:comment}';\nsnippet colcom\n comment on column ${1:table}.${2:column} is '${3:comment}';\nsnippet addcol\n alter table ${1:table} add (${2:column} ${3:type});\nsnippet seq\n create sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${4:1};\nsnippet s*\n select * from ${1:table}\n"}),ace.define("ace/snippets/sql",["require","exports","module","ace/snippets/sql.snippets"],function(y,T,G){T.snippetText=y("./sql.snippets"),T.scope="sql"}),function(){ace.require(["ace/snippets/sql"],function(y){o&&(o.exports=y)})}()})(Bve);const Hve={components:{"ace-editor":eH,"v-data-table":aee},computed:{editorOptions(){return{showPrintMargin:!1,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,autoScrollEditorIntoView:!0,highlightActiveLine:this.$devMode&&this.isFocused,highlightGutterLine:this.$devMode&&this.isFocused,minLines:1,maxLines:1/0}}},data(){return{isFocused:!1,items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0}},mounted(){if(this.$devMode){const o=this.$refs.editor;o._editor.renderer.$cursorLayer.element.style.display="none"}window.addEventListener("keydown",this.handleKeyDown)},beforeUnmount(){window.removeEventListener("keydown",this.handleKeyDown)},methods:{handleKeyDown(o){this.isFocused&&o.ctrlKey&&o.key==="Enter"&&this.runCode()},handleFocus(o){if(o){const b=this.$refs.editor;b._editor.renderer.$cursorLayer.element.style.display=""}else{const b=this.$refs.editor;b._editor.renderer.$cursorLayer.element.style.display="none"}this.isFocused=o},runCode(){this.$emit("runCode",this.cellData.id)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(o){this.$emit("createCell",this.cellData.id,o)}}},zve=ff("span",{class:"py-0 px-2"},".sql",-1),Vve={key:4},Uve=ff("p",{class:"text-caption text-disabled text-right"}," CTRL+Enter to run",-1),Wve=[Uve],Gve={class:"text-p"};function Zve(o,b,y,T,G,V){const L=A0("ace-editor");return mo(),Ts(Uo,null,[ct(M3,{flat:"",color:"bluegrey"},{default:jr(()=>[o.$devMode?(mo(),za(sm,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:jr(()=>[ct(kp,{cols:11},{default:jr(()=>[zve]),_:1}),ct(kp,{cols:1,class:"d-flex justify-end align-center py-0"},{default:jr(()=>[ct(js,{small:"",class:"mx-1",color:"primary",onClick:V.runCode},{default:jr(()=>[ii(" mdi-play ")]),_:1},8,["onClick"]),ct(js,{small:"",class:"mx-1",color:"error",onClick:V.deleteCell},{default:jr(()=>[ii(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):cm("",!0),o.$devMode?(mo(),za(Ep,{key:1,modelValue:y.cellData.variable_name,"onUpdate:modelValue":b[0]||(b[0]=A=>y.cellData.variable_name=A),label:"Enter SQL variable name",density:"compact"},null,8,["modelValue"])):cm("",!0),o.$devMode?(mo(),za(L,{key:2,value:y.cellData.code,"onUpdate:value":b[1]||(b[1]=A=>y.cellData.code=A),ref:"editor",class:"editor",theme:"dracula",lang:"sql",onFocus:b[2]||(b[2]=A=>V.handleFocus(!0)),onBlur:b[3]||(b[3]=A=>V.handleFocus(!1)),options:V.editorOptions},null,8,["value","options"])):(mo(),za(Wse,{key:3},{default:jr(()=>[ct(Zse,null,{default:jr(()=>[ct(tee,{color:"bluegrey2"},{default:jr(()=>[ii(" View Source Code ")]),_:1}),ct(eee,null,{default:jr(()=>[ct(L,{value:y.cellData.code,"onUpdate:value":b[4]||(b[4]=A=>y.cellData.code=A),class:"editor",theme:"dracula",lang:"sql",readonly:!0,options:V.editorOptions},null,8,["value","options"])]),_:1})]),_:1})]),_:1})),o.$devMode?(mo(),Ts("div",Vve,Wve)):cm("",!0),(mo(!0),Ts(Uo,null,uf(y.cellData.components,A=>(mo(),za(V6,{key:A.id},{default:jr(()=>[(mo(),za(mg(A.component),Jo(A,{modelValue:A.value,"onUpdate:modelValue":s=>A.value=s},{[C0(A.triggerEvent)]:V.runCode}),null,16,["modelValue","onUpdate:modelValue"]))]),_:2},1024))),128)),ff("div",Gve,Sp(y.cellData.output),1)]),_:1}),ct(O2,{transition:"scale-transition"},{activator:jr(({props:A})=>[ct(dc,Jo(A,{block:""}),{default:jr(()=>[ct(sm,null,{default:jr(()=>[ct(js,{color:"primary"},{default:jr(()=>[ii("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:jr(()=>[ct($2,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(G.items,(A,s)=>(mo(),za(fm,{key:s},{default:jr(()=>[ct(dc,{block:"",onClick:m=>V.createCell(A.title)},{default:jr(()=>[ii(Sp(A.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})],64)}const jve=Vy(Hve,[["render",Zve]]);var Yve={exports:{}};(function(o,b){(function(){ace.require(["ace/mode/text"],function(y){o&&(o.exports=y)})})()})(Yve);var Kve={exports:{}};(function(o,b){(function(){ace.require(["ace/snippets/text"],function(y){o&&(o.exports=y)})})()})(Kve);const Xve={components:{"ace-editor":eH},data:()=>({updatingDependencies:!1}),props:{dependencies:{type:Object,required:!0}},computed:{editorOptions(){return{showPrintMargin:!1,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,autoScrollEditorIntoView:!0,minLines:1,maxLines:1/0}}},methods:{async updateDependencies(){const o={dependencies:this.dependencies.value};await Oy.post("api/dependency_update",o),this.updatingDependencies=!1}}},Jve=ff("span",{class:"text-h5"},"Add Dependencies",-1);function Qve(o,b,y,T,G,V){const L=A0("ace-editor");return mo(),za(Fge,{modelValue:o.updatingDependencies,"onUpdate:modelValue":b[2]||(b[2]=A=>o.updatingDependencies=A),persistent:"",width:"1024"},{activator:jr(({props:A})=>[ct(dc,Jo({color:"primary"},A,{icon:"mdi-graph"}),null,16)]),default:jr(()=>[ct(M3,null,{default:jr(()=>[ct(Nse,null,{default:jr(()=>[Jve]),_:1}),ct(L,{value:y.dependencies.value,"onUpdate:value":b[0]||(b[0]=A=>y.dependencies.value=A),ref:"editor",class:"editor",theme:"dracula",lang:"text",options:V.editorOptions},null,8,["value","options"]),ct(Ise,null,{default:jr(()=>[ct(rie),ct(dc,{color:"blue-darken-1",variant:"text",onClick:b[1]||(b[1]=A=>o.updatingDependencies=!1)},{default:jr(()=>[ii(" Close ")]),_:1}),ct(dc,{color:"blue-darken-1",variant:"text",onClick:V.updateDependencies},{default:jr(()=>[ii(" Update ")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const qve=Vy(Xve,[["render",Qve]]),e0e={components:{CodeComponent:Qpe,MarkdownComponent:vve,EditorComponent:Nve,SQLComponent:jve,PackageComponent:qve},data(){return{notebook:{},dependencies:{},timer:0,timerInterval:null,isCodeRunning:!1,requestQueue:[],componentChangeQueue:[],menu_items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},beforeMount(){window.addEventListener("beforeunload",this.clearState),window.addEventListener("unload",this.clearState)},beforeUnmount(){window.removeEventListener("beforeunload",this.clearState),window.removeEventListener("unload",this.clearState)},async created(){const o=await Oy.get("api/notebook");this.notebook=o.data.notebook,this.dependencies=o.data.dependencies},methods:{startTimer(){this.timer=0,this.timerInterval=setInterval(()=>{this.timer++},1)},stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null)},async runCode(o){if(this.requestQueue.push(o),!this.isCodeRunning)for(;this.requestQueue.length>0;){if(!this.requestQueue.shift())continue;const y=[],T={};for(let A in this.notebook.cells){const s={id:A,code:this.notebook.cells[A].code,variable_name:this.notebook.cells[A].variable_name||"",cellType:this.notebook.cells[A].cellType};for(const m of this.notebook.cells[A].components)T[m.id]=m.value;y.push(s)}const G={originId:o,cells:y,components:T};this.isCodeRunning=!0,this.startTimer();const V=await Oy.post("api/runcode",G);this.stopTimer(),this.isCodeRunning=!1;const L=V.data;for(const A of L.cells)this.notebook.cells[A.id].components=A.components,this.notebook.cells[A.id].output=A.output,this.notebook.cells[A.id].layout=A.layout}},async componentValueChange(o,b,y){const T={};for(let L in this.notebook.cells)for(const A of this.notebook.cells[L].components)T[A.id]=A.value;const G={originId:o,componentId:b,components:T,userId:this.notebook.userId},V=this.componentChangeQueue.findIndex(L=>L.componentId===b);if(V!==-1?this.componentChangeQueue[V]=G:this.componentChangeQueue.push(G),!this.isCodeRunning)for(;this.componentChangeQueue.length>0;){const L=this.componentChangeQueue.shift();if(!L)continue;const A={originId:L.originId,components:L.components,userId:L.userId};this.isCodeRunning=!0,this.startTimer();const s=await Oy.post("api/component_run",A);this.stopTimer(),this.isCodeRunning=!1;const m=s.data;if(m.refresh){const h=await Oy.get("api/notebook");this.notebook=h.data.notebook,this.dependencies=h.data.dependencies}else for(const h of m.cells)this.notebook.cells[h.id].components=h.components,this.notebook.cells[h.id].output=h.output,this.notebook.cells[h.id].layout=h.layout}},navigateToApp(){window.open("https://zero-true.com/")},clearState:function(){const b={userId:this.notebook.userId};Oy.post("api/clear_state",b)},async createCodeCell(o,b){const y={cellType:b.toLowerCase(),position_key:o},G=(await Oy.post("api/create_cell",y)).data;let V={};o||(V[G.id]=G);for(let L in this.notebook.cells)V[L]=this.notebook.cells[L],o===L&&(V[G.id]=G);this.notebook.cells=V},async deleteCell(o){const b={cellId:o};await Oy.post("api/delete_cell",b),delete this.notebook.cells[o]},async saveCell(o){const b={id:o,text:this.notebook.cells[o].code};await Oy.post("api/save_text",b)},getComponent(o){switch(o){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${o}`)}}}};const t0e={key:0,class:"d-flex align-center"};function n0e(o,b,y,T,G,V){const L=A0("PackageComponent");return mo(),za(bhe,{style:{"background-color":"#040607"}},{default:jr(()=>[ct(Ohe,{app:"",color:"bluegrey"},{default:jr(()=>[ct(dc,{size:"x-large",variant:"text",onClick:V.navigateToApp},{default:jr(()=>[ct(js,{start:"",size:"x-large",icon:"custom:ZTIcon"}),ii(" Zero-True ")]),_:1},8,["onClick"]),ct(rie),G.isCodeRunning?(mo(),Ts("div",t0e,[ct(tse,{indeterminate:"",color:"white",size:"24"}),ct(wE,{class:"ml-2",color:"white","text-color":"black"},{default:jr(()=>[ii(Sp(G.timer)+"ms ",1)]),_:1}),o.$devMode?(mo(),za(wE,{key:0,class:"ml-2",color:"white","text-color":"black"},{default:jr(()=>[ii(" Queue Length: "+Sp(G.requestQueue.length),1)]),_:1})):(mo(),za(wE,{key:1,class:"ml-2",color:"white","text-color":"black"},{default:jr(()=>[ii(" Queue Length: "+Sp(G.componentChangeQueue.length),1)]),_:1}))])):cm("",!0),o.$devMode?(mo(),za(L,{key:1,dependencies:G.dependencies},null,8,["dependencies"])):cm("",!0)]),_:1}),ct(epe,null,{default:jr(()=>[ct(V6,null,{default:jr(()=>[ct(O2,{transition:"scale-transition"},{activator:jr(({props:A})=>[ct(dc,Jo(A,{block:""}),{default:jr(()=>[ct(sm,null,{default:jr(()=>[ct(js,{color:"primary"},{default:jr(()=>[ii("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:jr(()=>[ct($2,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(G.menu_items,(A,s)=>(mo(),za(fm,{key:s},{default:jr(()=>[ct(dc,{block:"",onClick:m=>V.createCodeCell("",A.title)},{default:jr(()=>[ii(Sp(A.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),(mo(!0),Ts(Uo,null,uf(G.notebook.cells,A=>(mo(),za(V6,null,{default:jr(()=>[(mo(),za(mg(V.getComponent(A.cellType)),{cellData:A,onRunCode:V.runCode,onSaveCell:V.saveCell,onComponentChange:V.componentValueChange,onDeleteCell:V.deleteCell,onCreateCell:V.createCodeCell},null,40,["cellData","onRunCode","onSaveCell","onComponentChange","onDeleteCell","onCreateCell"]))]),_:2},1024))),256))]),_:1})]),_:1})}const r0e=Vy(e0e,[["render",n0e]]);const o0e="modulepreload",a0e=function(o,b){return new URL(o,b).href},Bre={},s0e=function(b,y,T){if(!y||y.length===0)return b();const G=document.getElementsByTagName("link");return Promise.all(y.map(V=>{if(V=a0e(V,T),V in Bre)return;Bre[V]=!0;const L=V.endsWith(".css"),A=L?'[rel="stylesheet"]':"";if(!!T)for(let h=G.length-1;h>=0;h--){const l=G[h];if(l.href===V&&(!L||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${V}"]${A}`))return;const m=document.createElement("link");if(m.rel=L?"stylesheet":o0e,L||(m.as="script",m.crossOrigin=""),m.href=V,document.head.appendChild(m),L)return new Promise((h,l)=>{m.addEventListener("load",h),m.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${V}`)))})})).then(()=>b()).catch(V=>{const L=new Event("vite:preloadError",{cancelable:!0});if(L.payload=V,window.dispatchEvent(L),!L.defaultPrevented)throw V})};async function i0e(){(await s0e(()=>import("./webfontloader-afe4bc24.js").then(b=>b.w),[],import.meta.url)).load({google:{families:["Pathway+Extreme:100,300,400,500,700,900&display=swap"]}})}const l0e={},c0e={id:"Capa_2","data-name":"Capa 2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 92.58 61.58"},u0e=ff("g",{id:"Capa_1-2","data-name":"Capa 1"},[ff("g",null,[ff("path",{class:"cls-1",d:"m77.14,15.44L61.7,0h-30.82l30.82,30.82v30.76l15.44-15.32,15.44-15.44-15.44-15.38Z"}),ff("path",{class:"cls-1",d:"m15.44,46.14l15.44,15.44h30.82l-30.82-30.82V0l-15.44,15.32L0,30.76l15.44,15.38Z"})])],-1),f0e=[u0e];function d0e(o,b){return mo(),Ts("svg",c0e,f0e)}const h0e=Vy(l0e,[["render",d0e]]),PQ={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function m0e(o,b){const y=[];let T=[];const G=Mie(o),V=Eie(o),L=(G.getDay()-PQ[b.slice(-2).toUpperCase()]+7)%7,A=(V.getDay()-PQ[b.slice(-2).toUpperCase()]+7)%7;for(let s=0;s{const T=new Date(Hre);return T.setDate(Hre.getDate()+b+y),new Intl.DateTimeFormat(o,{weekday:"narrow"}).format(T)})}function b0e(o,b,y){const T=new Date(o);let G={};switch(b){case"fullDateWithWeekday":G={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"normalDateWithWeekday":G={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":G={};break;case"monthAndDate":G={month:"long",day:"numeric"};break;case"monthAndYear":G={month:"long",year:"numeric"};break;case"dayOfMonth":G={day:"numeric"};break;case"shortDate":G={year:"numeric"};break;default:G={timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(y,G).format(T)}function x0e(o,b){const y=new Date(o);return y.setDate(y.getDate()+b),y}function w0e(o,b){const y=new Date(o);return y.setMonth(y.getMonth()+b),y}function C0e(o){return o.getFullYear()}function S0e(o){return o.getMonth()}function T0e(o){return new Date(o.getFullYear(),0,1)}function k0e(o){return new Date(o.getFullYear(),11,31)}function A0e(o,b){return IQ(o,b[0])&&E0e(o,b[1])}function M0e(o){if(!o||o==null)return!1;const b=new Date(o);return b instanceof Date&&!isNaN(b.getTime())}function IQ(o,b){return o.getTime()>b.getTime()}function E0e(o,b){return o.getTime()0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:b,...y}=o,T=gg(b,y),{aliases:G={},components:V={},directives:L={}}=T,A=Kde(T.defaults),s=rge(T.display,T.ssr),m=vhe(T.theme),h=Vhe(T.icons),l=mhe(T.locale),c=I0e(T.date);return{install:u=>{for(const d in L)u.directive(d,L[d]);for(const d in V)u.component(d,V[d]);for(const d in G)u.component(d,IE({...G[d],name:d,aliasName:G[d].name}));if(m.install(u),u.provide(_E,A),u.provide(LQ,s),u.provide(EB,m),u.provide(TQ,h),u.provide(MB,l),u.provide(Vre,c),yl&&T.ssr)if(u.$nuxt)u.$nuxt.hook("app:suspense:resolve",()=>{s.update()});else{const{mount:d}=u;u.mount=function(){const g=d(...arguments);return Ll(()=>s.update()),u.mount=d,g}}Rp.reset(),u.mixin({computed:{$vuetify(){return ih({defaults:hE.call(this,_E),display:hE.call(this,LQ),theme:hE.call(this,EB),icons:hE.call(this,TQ),locale:hE.call(this,MB),date:hE.call(this,Vre)})}}})},defaults:A,display:s,theme:m,icons:h,locale:l,date:c}}const N0e="3.3.20";_ie.version=N0e;function hE(o){var T,G;const b=this.$,y=((T=b.parent)==null?void 0:T.provides)??((G=b.vnode.appContext)==null?void 0:G.provides);if(y&&o in y)return y[o]}const F0e={ZTIcon:h0e},B0e={component:o=>um(o.tag,[um(F0e[o.icon],{class:"v-icon__svg"})])},H0e=_ie({theme:{defaultTheme:"light",themes:{light:{dark:!0,colors:{primary:"#AE9FE8",secondary:"#424242",bluegrey:"#0E1B23",bluegrey2:"#1B2F3C",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E"}}}},icons:{defaultSet:"mdi",sets:{mdi:Jae,custom:B0e}}});function z0e(o){i0e(),o.use(H0e)}const lee=Gfe(r0e);z0e(lee);lee.config.globalProperties.$devMode=!1;lee.mount("#app");export{dae as g}; diff --git a/zt_backend/dist_dev/assets/webfontloader-bb2b415c.js b/zt_backend/dist_app/assets/webfontloader-11d01d46.js similarity index 99% rename from zt_backend/dist_dev/assets/webfontloader-bb2b415c.js rename to zt_backend/dist_app/assets/webfontloader-11d01d46.js index d7e40665..425d7b6b 100644 --- a/zt_backend/dist_dev/assets/webfontloader-bb2b415c.js +++ b/zt_backend/dist_app/assets/webfontloader-11d01d46.js @@ -1 +1 @@ -import{g as Ft}from"./index-f89dedf6.js";function Pt(w,S){for(var _=0;_h[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;fh[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;f
    ",d}image(e,r,a){const i=Jhe(e);if(i===null)return a;e=i;let d=`${a}0&&b.tokens[0].type==="paragraph"?(b.tokens[0].text=w+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&b.tokens[0].tokens[0].type==="text"&&(b.tokens[0].tokens[0].text=w+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:w+" "}):C+=w+" "}C+=this.parse(b.tokens,p),v+=this.renderer.listitem(C,k,!!x)}a+=this.renderer.list(v,m,u);continue}case"html":{const f=d;a+=this.renderer.html(f.text,f.block);continue}case"paragraph":{const f=d;a+=this.renderer.paragraph(this.parseInline(f.tokens));continue}case"text":{let f=d,m=f.tokens?this.parseInline(f.tokens):f.text;for(;i+1{a=a.concat(this.walkTokens(m[u],r))}):m.tokens&&(a=a.concat(this.walkTokens(m.tokens,r)))}}return a}use(...e){const r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(a=>{const i={...a};if(i.async=this.defaults.async||i.async||!1,a.extensions&&(a.extensions.forEach(d=>{if(!d.name)throw new Error("extension name required");if("renderer"in d){const f=r.renderers[d.name];f?r.renderers[d.name]=function(...m){let u=d.renderer.apply(this,m);return u===!1&&(u=f.apply(this,m)),u}:r.renderers[d.name]=d.renderer}if("tokenizer"in d){if(!d.level||d.level!=="block"&&d.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const f=r[d.level];f?f.unshift(d.tokenizer):r[d.level]=[d.tokenizer],d.start&&(d.level==="block"?r.startBlock?r.startBlock.push(d.start):r.startBlock=[d.start]:d.level==="inline"&&(r.startInline?r.startInline.push(d.start):r.startInline=[d.start]))}"childTokens"in d&&d.childTokens&&(r.childTokens[d.name]=d.childTokens)}),i.extensions=r),a.renderer){const d=this.defaults.renderer||new FH(this.defaults);for(const f in a.renderer){const m=a.renderer[f],u=f,p=d[u];d[u]=(...v)=>{let y=m.apply(d,v);return y===!1&&(y=p.apply(d,v)),y||""}}i.renderer=d}if(a.tokenizer){const d=this.defaults.tokenizer||new QH(this.defaults);for(const f in a.tokenizer){const m=a.tokenizer[f],u=f,p=d[u];d[u]=(...v)=>{let y=m.apply(d,v);return y===!1&&(y=p.apply(d,v)),y}}i.tokenizer=d}if(a.hooks){const d=this.defaults.hooks||new FD;for(const f in a.hooks){const m=a.hooks[f],u=f,p=d[u];FD.passThroughHooks.has(f)?d[u]=v=>{if(this.defaults.async)return Promise.resolve(m.call(d,v)).then(b=>p.call(d,b));const y=m.call(d,v);return p.call(d,y)}:d[u]=(...v)=>{let y=m.apply(d,v);return y===!1&&(y=p.apply(d,v)),y}}i.hooks=d}if(a.walkTokens){const d=this.defaults.walkTokens,f=a.walkTokens;i.walkTokens=function(m){let u=[];return u.push(f.call(this,m)),d&&(u=u.concat(d.call(this,m))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return G1.lex(e,r??this.defaults)}parser(e,r){return j1.parse(e,r??this.defaults)}}A$=new WeakSet,Use=function(e,r){return(a,i)=>{const d={...i},f={...this.defaults,...d};this.defaults.async===!0&&d.async===!1&&(f.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),f.async=!0);const m=Iz(this,YH,Lbe).call(this,!!f.silent,!!f.async);if(typeof a>"u"||a===null)return m(new Error("marked(): input parameter is undefined or null"));if(typeof a!="string")return m(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(a)+", string expected"));if(f.hooks&&(f.hooks.options=f),f.async)return Promise.resolve(f.hooks?f.hooks.preprocess(a):a).then(u=>e(u,f)).then(u=>f.walkTokens?Promise.all(this.walkTokens(u,f.walkTokens)).then(()=>u):u).then(u=>r(u,f)).then(u=>f.hooks?f.hooks.postprocess(u):u).catch(m);try{f.hooks&&(a=f.hooks.preprocess(a));const u=e(a,f);f.walkTokens&&this.walkTokens(u,f.walkTokens);let p=r(u,f);return f.hooks&&(p=f.hooks.postprocess(p)),p}catch(u){return m(u)}}},YH=new WeakSet,Lbe=function(e,r){return a=>{if(a.message+=` +Please report this to https://github.com/markedjs/marked.`,e){const i="

    An error occurred:

    "+og(a.message+"",!0)+"
    ";return r?Promise.resolve(i):i}if(r)return Promise.reject(a);throw a}};const NC=new E7e;function qi(t,e){return NC.parse(t,e)}qi.options=qi.setOptions=function(t){return NC.setOptions(t),qi.defaults=NC.defaults,Rbe(qi.defaults),qi};qi.getDefaults=dle;qi.defaults=XC;qi.use=function(...t){return NC.use(...t),qi.defaults=NC.defaults,Rbe(qi.defaults),qi};qi.walkTokens=function(t,e){return NC.walkTokens(t,e)};qi.parseInline=NC.parseInline;qi.Parser=j1;qi.parser=j1.parse;qi.Renderer=FH;qi.TextRenderer=hle;qi.Lexer=G1;qi.lexer=G1.lex;qi.Tokenizer=QH;qi.Hooks=FD;qi.parse=qi;qi.options;qi.setOptions;qi.use;qi.walkTokens;qi.parseInline;j1.parse;G1.lex;class VH{static create(e,r,a,i,d){let f=i+(i<<8)+e+(r<<4)|0;return new VH(e,r,a,f,d,[],[])}constructor(e,r,a,i,d,f,m){this.type=e,this.value=r,this.from=a,this.hash=i,this.end=d,this.children=f,this.positions=m,this.hashProp=[[ua.contextHash,i]]}addChild(e,r){e.prop(ua.contextHash)!=this.hash&&(e=new Fi(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(r)}toTree(e,r=this.end){let a=this.children.length-1;return a>=0&&(r=Math.max(r,this.positions[a]+this.children[a].length+this.from)),new Fi(e.types[this.type],this.children,this.positions,r-this.from).balance({makeTree:(i,d,f)=>new Fi(Fu.none,i,d,f,this.hashProp)})}}var bo;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.URL=33]="URL",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel"})(bo||(bo={}));class _7e{constructor(e,r){this.start=e,this.content=r,this.marks=[],this.parsers=[]}}class R7e{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return VD(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,r=0,a=0){for(let i=r;i=e.stack[r.depth+1].value+r.baseIndent)return!0;if(r.indent>=r.baseIndent+4)return!1;let a=(t.type==bo.OrderedList?ple:gle)(r,e,!1);return a>0&&(t.type!=bo.BulletList||mle(r,e,!1)<0)&&r.text.charCodeAt(r.pos+a-1)==t.value}const Ibe={[bo.Blockquote](t,e,r){return r.next!=62?!1:(r.markers.push(Ei(bo.QuoteMark,e.lineStart+r.pos,e.lineStart+r.pos+1)),r.moveBase(r.pos+(Ip(r.text.charCodeAt(r.pos+1))?2:1)),t.end=e.lineStart+r.text.length,!0)},[bo.ListItem](t,e,r){return r.indent-1?!1:(r.moveBaseColumn(r.baseIndent+t.value),!0)},[bo.OrderedList]:nme,[bo.BulletList]:nme,[bo.Document](){return!0}};function Ip(t){return t==32||t==9||t==10||t==13}function VD(t,e=0){for(;er&&Ip(t.charCodeAt(e-1));)e--;return e}function Nbe(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e-1&&t.depth==e.stack.length||a<3?-1:1}function Qbe(t,e){for(let r=t.stack.length-1;r>=0;r--)if(t.stack[r].type==e)return!0;return!1}function gle(t,e,r){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||Ip(t.text.charCodeAt(t.pos+1)))&&(!r||Qbe(e,bo.BulletList)||t.skipSpace(t.pos+2)=48&&i<=57;){a++;if(a==t.text.length)return-1;i=t.text.charCodeAt(a)}return a==t.pos||a>t.pos+9||i!=46&&i!=41||at.pos+1||t.next!=49)?-1:a+1-t.pos}function Fbe(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e6?-1:r}function Vbe(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e/,Zbe=/\?>/,Yse=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(a);if(d)return t.append(Ei(bo.Comment,r,r+1+d[0].length));let f=/^\?[^]*?\?>/.exec(a);if(f)return t.append(Ei(bo.ProcessingInstruction,r,r+1+f[0].length));let m=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(a);return m?t.append(Ei(bo.HTMLTag,r,r+1+m[0].length)):-1},Emphasis(t,e,r){if(e!=95&&e!=42)return-1;let a=r+1;for(;t.char(a)==e;)a++;let i=t.slice(r-1,r),d=t.slice(a,a+1),f=T$.test(i),m=T$.test(d),u=/\s|^$/.test(i),p=/\s|^$/.test(d),v=!p&&(!m||u||f),y=!u&&(!f||p||m),b=v&&(e==42||!y||f),x=y&&(e==42||!v||m);return t.append(new $v(e==95?Gbe:jbe,r,a,(b?1:0)|(x?2:0)))},HardBreak(t,e,r){if(e==92&&t.char(r+1)==10)return t.append(Ei(bo.HardBreak,r,r+2));if(e==32){let a=r+1;for(;t.char(a)==32;)a++;if(t.char(a)==10&&a>=r+2)return t.append(Ei(bo.HardBreak,r,a+1))}return-1},Link(t,e,r){return e==91?t.append(new $v(bD,r,r+1,1)):-1},Image(t,e,r){return e==33&&t.char(r+1)==91?t.append(new $v(sme,r,r+2,1)):-1},LinkEnd(t,e,r){if(e!=93)return-1;for(let a=t.parts.length-1;a>=0;a--){let i=t.parts[a];if(i instanceof $v&&(i.type==bD||i.type==sme)){if(!i.side||t.skipSpace(i.to)==r&&!/[(\[]/.test(t.slice(r+1,r+2)))return t.parts[a]=null,-1;let d=t.takeContent(a),f=t.parts[a]=Q7e(t,d,i.type==bD?bo.Link:bo.Image,i.from,r+1);if(i.type==bD)for(let m=0;me?Ei(bo.URL,e+r,d+r):d==t.length?null:!1}}function Kbe(t,e,r){let a=t.charCodeAt(e);if(a!=39&&a!=34&&a!=40)return!1;let i=a==40?41:a;for(let d=e+1,f=!1;d=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,r){return this.text.slice(e-this.offset,r-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,r,a,i,d){return this.append(new $v(e,r,a,(i?1:0)|(d?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let a=e;a=e;u--){let C=this.parts[u];if(C instanceof $v&&C.side&1&&C.type==i.type&&!(d&&(i.side&1||C.side&2)&&(C.to-C.from+f)%3==0&&((C.to-C.from)%3||f%3))){m=C;break}}if(!m)continue;let p=i.type.resolve,v=[],y=m.from,b=i.to;if(d){let C=Math.min(2,m.to-m.from,f);y=m.to-C,b=i.from+C,p=C==1?"Emphasis":"StrongEmphasis"}m.type.mark&&v.push(this.elt(m.type.mark,y,m.to));for(let C=u+1;C=0;r--){let a=this.parts[r];if(a instanceof $v&&a.type==e)return r}return null}takeContent(e){let r=this.resolveMarkers(e);return this.parts.length=e,r}skipSpace(e){return VD(this.text,e-this.offset)+this.offset}elt(e,r,a,i){return typeof e=="string"?Ei(this.parser.getNodeType(e),r,a,i):new Xbe(e,r)}}function Gse(t,e){if(!e.length)return t;if(!t.length)return e;let r=t.slice(),a=0;for(let i of e){for(;a(e?e-1:0))return!1;if(this.fragmentEnd<0){let d=this.fragment.to;for(;d>0&&this.input.read(d-1,d)!=` +`;)d--;this.fragmentEnd=d?d-1:0}let a=this.cursor;a||(a=this.cursor=this.fragment.tree.cursor(),a.firstChild());let i=e+this.fragment.offset;for(;a.to<=i;)if(!a.parent())return!1;for(;;){if(a.from>=i)return this.fragment.from<=r;if(!a.childAfter(i))return!1}}matches(e){let r=this.cursor.tree;return r&&r.prop(ua.contextHash)==e}takeNodes(e){let r=this.cursor,a=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),d=e.absoluteLineStart,f=d,m=e.block.children.length,u=f,p=m;for(;;){if(r.to-a>i){if(r.type.isAnonymous&&r.firstChild())continue;break}let v=eOe(r.from-a,e.ranges);if(r.to-a<=e.ranges[e.rangeI].to)e.addNode(r.tree,v);else{let y=new Fi(e.parser.nodeSet.types[bo.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(y,r.tree),e.addNode(y,v)}if(r.type.is("Block")&&(V7e.indexOf(r.type.id)<0?(f=r.to-a,m=e.block.children.length):(f=u,m=p,u=r.to-a,p=e.block.children.length)),!r.nextSibling())break}for(;e.block.children.length>m;)e.block.children.pop(),e.block.positions.pop();return f-d}}function eOe(t,e){let r=t;for(let a=1;aOZ[t]),Object.keys(OZ).map(t=>L7e[t]),Object.keys(OZ),I7e,Ibe,Object.keys(roe).map(t=>roe[t]),Object.keys(roe),[]);function U7e(t,e,r){let a=[];for(let i=t.firstChild,d=e;;i=i.nextSibling){let f=i?i.from:r;if(f>d&&a.push({from:d,to:f}),!i)break;d=i.to}return a}function W7e(t){let{codeParser:e,htmlParser:r}=t;return{wrap:jve((i,d)=>{let f=i.type.id;if(e&&(f==bo.CodeBlock||f==bo.FencedCode)){let m="";if(f==bo.FencedCode){let p=i.node.getChild(bo.CodeInfo);p&&(m=d.read(p.from,p.to))}let u=e(m);if(u)return{parser:u,overlay:p=>p.type.id==bo.CodeText}}else if(r&&(f==bo.HTMLBlock||f==bo.HTMLTag))return{parser:r,overlay:U7e(i.node,i.from,i.to)};return null})}}const Y7e={resolve:"Strikethrough",mark:"StrikethroughMark"},X7e={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Qt.strikethrough}},{name:"StrikethroughMark",style:Qt.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,r){if(e!=126||t.char(r+1)!=126||t.char(r+2)==126)return-1;let a=t.slice(r-1,r),i=t.slice(r+2,r+3),d=/\s|^$/.test(a),f=/\s|^$/.test(i),m=T$.test(a),u=T$.test(i);return t.addDelimiter(Y7e,r,r+2,!f&&(!u||d||m),!d&&(!m||f||u))},after:"Emphasis"}]};function zD(t,e,r=0,a,i=0){let d=0,f=!0,m=-1,u=-1,p=!1,v=()=>{a.push(t.elt("TableCell",i+m,i+u,t.parser.parseInline(e.slice(m,u),i+m)))};for(let y=r;y-1)&&d++,f=!1,a&&(m>-1&&v(),a.push(t.elt("TableDelimiter",y+i,y+i+1))),m=u=-1):(p||b!=32&&b!=9)&&(m<0&&(m=y),u=y+1),p=!p&&b==92}return m>-1&&(d++,a&&v()),d}function ime(t,e){for(let r=e;ri instanceof lme)||!ime(e.text,e.basePos))return!1;let a=t.scanLine(t.absoluteLineEnd+1).text;return tOe.test(a)&&zD(t,e.text,e.basePos)==zD(t,a,e.basePos)},before:"SetextHeading"}]};class j7e{nextLine(){return!1}finish(e,r){return e.addLeafElement(r,e.elt("Task",r.start,r.start+r.content.length,[e.elt("TaskMarker",r.start,r.start+3),...e.parser.parseInline(r.content.slice(3),r.start+3)])),!0}}const q7e={defineNodes:[{name:"Task",block:!0,style:Qt.list},{name:"TaskMarker",style:Qt.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new j7e:null},after:"SetextHeading"}]},cme=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,ume=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,K7e=/[\w-]+\.[\w-]+($|\/)/,fme=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,dme=/\/[a-zA-Z\d@.]+/gy;function hme(t,e,r,a){let i=0;for(let d=e;d-1)return-1;let a=e+r[0].length;for(;;){let i=t[a-1],d;if(/[?!.,:*_~]/.test(i)||i==")"&&hme(t,e,a,")")>hme(t,e,a,"("))a--;else if(i==";"&&(d=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,a))))a=e+d.index;else break}return a}function mme(t,e){fme.lastIndex=e;let r=fme.exec(t);if(!r)return-1;let a=r[0][r[0].length-1];return a=="_"||a=="-"?-1:e+r[0].length-(a=="."?1:0)}const eRe={parseInline:[{name:"Autolink",parse(t,e,r){let a=r-t.offset;cme.lastIndex=a;let i=cme.exec(t.text),d=-1;return!i||(i[1]||i[2]?d=J7e(t.text,a+i[0].length):i[3]?d=mme(t.text,a):(d=mme(t.text,a+i[0].length),d>-1&&i[0]=="xmpp:"&&(dme.lastIndex=d,i=dme.exec(t.text),i&&(d=i.index+i[0].length))),d<0)?-1:(t.addElement(t.elt("URL",r,d+t.offset)),d+t.offset)}}]},tRe=[G7e,q7e,X7e,eRe];function nOe(t,e,r){return(a,i,d)=>{if(i!=t||a.char(d+1)==t)return-1;let f=[a.elt(r,d,d+1)];for(let m=d+1;m=65&&t<=90||t==95||t>=97&&t<=122||t>=161}function uOe(t){return t==9||t==10||t==13||t==32}let yme=null,bme=null,Ome=0;function qse(t,e){let r=t.pos+e;if(Ome==r&&bme==t)return yme;let a=t.peek(e);for(;uOe(a);)a=t.peek(++e);let i="";for(;ARe(a);)i+=String.fromCharCode(a),a=t.peek(++e);return bme=t,Ome=r,yme=i?i.toLowerCase():a==PRe||a==MRe?void 0:null}const fOe=60,ZH=62,vle=47,PRe=63,MRe=33,ERe=45;function xme(t,e){this.name=t,this.parent=e,this.hash=e?e.hash:0;for(let r=0;r-1?new xme(qse(a,1)||"",t):t},reduce(t,e){return e==iOe&&t?t.parent:t},reuse(t,e,r,a){let i=e.type.id;return i==zH||i==xRe?new xme(qse(a,1)||"",t):t},hash(t){return t?t.hash:0},strict:!1}),DRe=new hh((t,e)=>{if(t.next!=fOe){t.next<0&&e.context&&t.acceptToken(ooe);return}t.advance();let r=t.next==vle;r&&t.advance();let a=qse(t,0);if(a===void 0)return;if(!a)return t.acceptToken(r?gRe:zH);let i=e.context?e.context.name:null;if(r){if(a==i)return t.acceptToken(dRe);if(i&&kRe[i])return t.acceptToken(ooe,-2);if(e.dialectEnabled(wRe))return t.acceptToken(hRe);for(let d=e.context;d;d=d.parent)if(d.name==a)return;t.acceptToken(mRe)}else{if(a=="script")return t.acceptToken(rOe);if(a=="style")return t.acceptToken(oOe);if(a=="textarea")return t.acceptToken(sOe);if(CRe.hasOwnProperty(a))return t.acceptToken(aOe);i&&vme[i]&&vme[i][a]?t.acceptToken(ooe,-1):t.acceptToken(zH)}},{contextual:!0}),$Re=new hh(t=>{for(let e=0,r=0;;r++){if(t.next<0){r&&t.acceptToken(pme);break}if(t.next==ERe)e++;else if(t.next==ZH&&e>=2){r>=3&&t.acceptToken(pme,-2);break}else e=0;t.advance()}});function LRe(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const IRe=new hh((t,e)=>{if(t.next==vle&&t.peek(1)==ZH){let r=e.dialectEnabled(TRe)||LRe(e.context);t.acceptToken(r?fRe:gme,2)}else t.next==ZH&&t.acceptToken(gme,1)});function yle(t,e,r){let a=2+t.length;return new hh(i=>{for(let d=0,f=0,m=0;;m++){if(i.next<0){m&&i.acceptToken(e);break}if(d==0&&i.next==fOe||d==1&&i.next==vle||d>=2&&df?i.acceptToken(e,-f):i.acceptToken(r,-(f-2));break}else if((i.next==10||i.next==13)&&m){i.acceptToken(e,1);break}else d=f=0;i.advance()}})}const NRe=yle("script",sRe,aRe),BRe=yle("style",iRe,lRe),QRe=yle("textarea",cRe,uRe),FRe=RS({"Text RawText":Qt.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Qt.angleBracket,TagName:Qt.tagName,"MismatchedCloseTag/TagName":[Qt.tagName,Qt.invalid],AttributeName:Qt.attributeName,"AttributeValue UnquotedAttributeValue":Qt.attributeValue,Is:Qt.definitionOperator,"EntityReference CharacterReference":Qt.character,Comment:Qt.blockComment,ProcessingInst:Qt.processingInstruction,DoctypeDecl:Qt.documentMeta}),VRe=AS.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:RRe,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[FRe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let p=m.type.id;if(p==yRe)return soe(m,u,r);if(p==bRe)return soe(m,u,a);if(p==ORe)return soe(m,u,i);if(p==iOe&&d.length){let v=m.node,y=v.firstChild,b=y&&Sme(y,u),x;if(b){for(let k of d)if(k.tag==b&&(!k.attrs||k.attrs(x||(x=dOe(v,u))))){let C=v.lastChild,w=C.type.id==SRe?C.from:v.to;if(w>y.to)return{parser:k.parser,overlay:[{from:y.to,to:w}]}}}}if(f&&p==lOe){let v=m.node,y;if(y=v.firstChild){let b=f[u.read(y.from,y.to)];if(b)for(let x of b){if(x.tagName&&x.tagName!=Sme(v.parent,u))continue;let k=v.lastChild;if(k.type.id==jse){let C=k.from+1,w=k.lastChild,T=k.to-(w&&w.isError?0:1);if(T>C)return{parser:x.parser,overlay:[{from:C,to:T}]}}else if(k.type.id==cOe)return{parser:x.parser,overlay:[{from:k.from,to:k.to}]}}}}return null})}const zRe=96,wme=1,ZRe=97,HRe=98,Tme=2,mOe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],URe=58,WRe=40,gOe=95,YRe=91,WZ=45,XRe=46,GRe=35,jRe=37,qRe=38,KRe=92,JRe=10;function HH(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function eDe(t){return t>=48&&t<=57}const tDe=new hh((t,e)=>{for(let r=!1,a=0,i=0;;i++){let{next:d}=t;if(HH(d)||d==WZ||d==gOe||r&&eDe(d))!r&&(d!=WZ||i>0)&&(r=!0),a===i&&d==WZ&&a++,t.advance();else if(d==KRe&&t.peek(1)!=JRe)t.advance(),t.next>-1&&t.advance(),r=!0;else{r&&t.acceptToken(d==WRe?ZRe:a==2&&e.canShift(Tme)?Tme:HRe);break}}}),nDe=new hh(t=>{if(mOe.includes(t.peek(-1))){let{next:e}=t;(HH(e)||e==gOe||e==GRe||e==XRe||e==YRe||e==URe||e==WZ||e==qRe)&&t.acceptToken(zRe)}}),rDe=new hh(t=>{if(!mOe.includes(t.peek(-1))){let{next:e}=t;if(e==jRe&&(t.advance(),t.acceptToken(wme)),HH(e)){do t.advance();while(HH(t.next));t.acceptToken(wme)}}}),oDe=RS({"AtKeyword import charset namespace keyframes media supports":Qt.definitionKeyword,"from to selector":Qt.keyword,NamespaceName:Qt.namespace,KeyframeName:Qt.labelName,KeyframeRangeName:Qt.operatorKeyword,TagName:Qt.tagName,ClassName:Qt.className,PseudoClassName:Qt.constant(Qt.className),IdName:Qt.labelName,"FeatureName PropertyName":Qt.propertyName,AttributeName:Qt.attributeName,NumberLiteral:Qt.number,KeywordQuery:Qt.keyword,UnaryQueryOp:Qt.operatorKeyword,"CallTag ValueName":Qt.atom,VariableName:Qt.variableName,Callee:Qt.operatorKeyword,Unit:Qt.unit,"UniversalSelector NestingSelector":Qt.definitionOperator,MatchOp:Qt.compareOperator,"ChildOp SiblingOp, LogicOp":Qt.logicOperator,BinOp:Qt.arithmeticOperator,Important:Qt.modifier,Comment:Qt.blockComment,ColorLiteral:Qt.color,"ParenthesizedContent StringLiteral":Qt.string,":":Qt.punctuation,"PseudoOp #":Qt.derefOperator,"; ,":Qt.separator,"( )":Qt.paren,"[ ]":Qt.squareBracket,"{ }":Qt.brace}),sDe={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134},aDe={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164},iDe={__proto__:null,not:128,only:128},lDe=AS.deserialize({version:14,states:"9bQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DPO$vQ[O'#DTOOQP'#Ej'#EjO${QdO'#DeO%gQ[O'#DrO${QdO'#DtO%xQ[O'#DvO&TQ[O'#DyO&]Q[O'#EPO&kQ[O'#EROOQS'#Ei'#EiOOQS'#EU'#EUQYQ[OOO&rQXO'#CdO'gQWO'#DaO'lQWO'#EpO'wQ[O'#EpQOQWOOP(RO#tO'#C_POOO)C@X)C@XOOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(^Q[O'#EXO(xQWO,58{O)QQ[O,59SO$qQ[O,59kO$vQ[O,59oO(^Q[O,59sO(^Q[O,59uO(^Q[O,59vO)]Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)dQWO,59SO)iQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)nQ`O,59oOOQS'#Cp'#CpO${QdO'#CqO)vQvO'#CsO+TQtO,5:POOQO'#Cx'#CxO)iQWO'#CwO+iQWO'#CyOOQS'#Em'#EmOOQO'#Dh'#DhO+nQ[O'#DoO+|QWO'#EqO&]Q[O'#DmO,[QWO'#DpOOQO'#Er'#ErO({QWO,5:^O,aQpO,5:`OOQS'#Dx'#DxO,iQWO,5:bO,nQ[O,5:bOOQO'#D{'#D{O,vQWO,5:eO,{QWO,5:kO-TQWO,5:mOOQS-E8S-E8SO${QdO,59{O-]Q[O'#EZO-jQWO,5;[O-jQWO,5;[POOO'#ET'#ETP-uO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.lQXO,5:sOOQO-E8V-E8VOOQS1G.g1G.gOOQP1G.n1G.nO)dQWO1G.nO)iQWO1G.nOOQP1G/V1G/VO.yQ`O1G/ZO/dQXO1G/_O/zQXO1G/aO0bQXO1G/bO0xQWO,59zO0}Q[O'#DOO1UQdO'#CoOOQP1G/Z1G/ZO${QdO1G/ZO1]QpO,59]OOQS,59_,59_O${QdO,59aO1eQWO1G/kOOQS,59c,59cO1jQ!bO,59eO1rQWO'#DhO1}QWO,5:TO2SQWO,5:ZO&]Q[O,5:VO&]Q[O'#E[O2[QWO,5;]O2gQWO,5:XO(^Q[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2xQWO1G/|O2}QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO3YQtO1G/gOOQO,5:u,5:uO3pQ[O,5:uOOQO-E8X-E8XO3}QWO1G0vPOOO-E8R-E8RPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$u7+$uO${QdO7+$uOOQS1G/f1G/fO4YQXO'#EoO4aQWO,59jO4fQtO'#EVO5ZQdO'#ElO5eQWO,59ZO5jQpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5rQWO1G/PO${QdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5wQWO,5:vOOQO-E8Y-E8YO6VQXO1G/vOOQS7+%h7+%hO6^QYO'#CsOOQO'#EO'#EOO6iQ`O'#D}OOQO'#D}'#D}O6tQWO'#E]O6|QdO,5:hOOQS,5:h,5:hO7XQtO'#EYO${QdO'#EYO8VQdO7+%ROOQO7+%R7+%ROOQO1G0a1G0aO8jQpO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#b[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSp^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#_QOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#X~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#b[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!W^Oy%^z;'S%^;'S;=`%o<%lO%^dCoSzSOy%^z;'S%^;'S;=`%o<%lO%^bDQU|QOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS|Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!YQo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bFfSxQOy%^z;'S%^;'S;=`%o<%lO%^lFwSv[Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!`Qo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!RUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!Q^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!PQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[nDe,rDe,tDe,1,2,3,4,new CH("m~RRYZ[z{a~~g~aO#Z~~dP!P!Qg~lO#[~~",28,102)],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:97,get:t=>sDe[t]||-1},{term:56,get:t=>aDe[t]||-1},{term:98,get:t=>iDe[t]||-1}],tokenPrec:1169});let aoe=null;function ioe(){if(!aoe&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],r=new Set;for(let a in t)a!="cssText"&&a!="cssFloat"&&typeof t[a]=="string"&&(/[A-Z]/.test(a)&&(a=a.replace(/[A-Z]/g,i=>"-"+i.toLowerCase())),r.has(a)||(e.push(a),r.add(a)));aoe=e.sort().map(a=>({type:"property",label:a}))}return aoe||[]}const Cme=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),kme=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),cDe=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),oS=/^(\w[\w-]*|-\w[\w-]*|)$/,uDe=/^-(-[\w-]*)?$/;function fDe(t,e){var r;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let a=(r=t.parent)===null||r===void 0?void 0:r.firstChild;return(a==null?void 0:a.name)!="Callee"?!1:e.sliceString(a.from,a.to)=="var"}const Ame=new eie,dDe=["Declaration"];function hDe(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function pOe(t,e,r){if(e.to-e.from>4096){let a=Ame.get(e);if(a)return a;let i=[],d=new Set,f=e.cursor(vl.IncludeAnonymous);if(f.firstChild())do for(let m of pOe(t,f.node,r))d.has(m.label)||(d.add(m.label),i.push(m));while(f.nextSibling());return Ame.set(e,i),i}else{let a=[],i=new Set;return e.cursor().iterate(d=>{var f;if(r(d)&&d.matchContext(dDe)&&((f=d.node.nextSibling)===null||f===void 0?void 0:f.name)==":"){let m=t.sliceString(d.from,d.to);i.has(m)||(i.add(m),a.push({label:m,type:"variable"}))}}),a}}const mDe=t=>e=>{let{state:r,pos:a}=e,i=rl(r).resolveInner(a,-1),d=i.type.isError&&i.from==i.to-1&&r.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(d||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:ioe(),validFor:oS};if(i.name=="ValueName")return{from:i.from,options:kme,validFor:oS};if(i.name=="PseudoClassName")return{from:i.from,options:Cme,validFor:oS};if(t(i)||(e.explicit||d)&&fDe(i,r.doc))return{from:t(i)||d?i.from:a,options:pOe(r.doc,hDe(i),t),validFor:uDe};if(i.name=="TagName"){for(let{parent:u}=i;u;u=u.parent)if(u.name=="Block")return{from:i.from,options:ioe(),validFor:oS};return{from:i.from,options:cDe,validFor:oS}}if(!e.explicit)return null;let f=i.resolve(a),m=f.childBefore(a);return m&&m.name==":"&&f.name=="PseudoClassSelector"?{from:a,options:Cme,validFor:oS}:m&&m.name==":"&&f.name=="Declaration"||f.name=="ArgList"?{from:a,options:kme,validFor:oS}:f.name=="Block"||f.name=="Styles"?{from:a,options:ioe(),validFor:oS}:null},gDe=mDe(t=>t.name=="VariableName"),UH=CS.define({name:"css",parser:lDe.configure({props:[BC.add({Declaration:BD()}),DS.add({"Block KeyframeList":aie})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function pDe(){return new DC(UH,UH.data.of({autocomplete:gDe}))}const vDe=304,Pme=1,yDe=2,bDe=305,ODe=307,xDe=308,SDe=3,wDe=4,TDe=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],vOe=125,CDe=59,Mme=47,kDe=42,ADe=43,PDe=45,MDe=new wie({start:!1,shift(t,e){return e==SDe||e==wDe||e==ODe?t:e==xDe},strict:!1}),EDe=new hh((t,e)=>{let{next:r}=t;(r==vOe||r==-1||e.context)&&t.acceptToken(bDe)},{contextual:!0,fallback:!0}),_De=new hh((t,e)=>{let{next:r}=t,a;TDe.indexOf(r)>-1||r==Mme&&((a=t.peek(1))==Mme||a==kDe)||r!=vOe&&r!=CDe&&r!=-1&&!e.context&&t.acceptToken(vDe)},{contextual:!0}),RDe=new hh((t,e)=>{let{next:r}=t;if((r==ADe||r==PDe)&&(t.advance(),r==t.next)){t.advance();let a=!e.context&&e.canShift(Pme);t.acceptToken(a?Pme:yDe)}},{contextual:!0}),DDe=RS({"get set async static":Qt.modifier,"for while do if else switch try catch finally return throw break continue default case":Qt.controlKeyword,"in of await yield void typeof delete instanceof":Qt.operatorKeyword,"let var const using function class extends":Qt.definitionKeyword,"import export from":Qt.moduleKeyword,"with debugger as new":Qt.keyword,TemplateString:Qt.special(Qt.string),super:Qt.atom,BooleanLiteral:Qt.bool,this:Qt.self,null:Qt.null,Star:Qt.modifier,VariableName:Qt.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Qt.function(Qt.variableName),VariableDefinition:Qt.definition(Qt.variableName),Label:Qt.labelName,PropertyName:Qt.propertyName,PrivatePropertyName:Qt.special(Qt.propertyName),"CallExpression/MemberExpression/PropertyName":Qt.function(Qt.propertyName),"FunctionDeclaration/VariableDefinition":Qt.function(Qt.definition(Qt.variableName)),"ClassDeclaration/VariableDefinition":Qt.definition(Qt.className),PropertyDefinition:Qt.definition(Qt.propertyName),PrivatePropertyDefinition:Qt.definition(Qt.special(Qt.propertyName)),UpdateOp:Qt.updateOperator,"LineComment Hashbang":Qt.lineComment,BlockComment:Qt.blockComment,Number:Qt.number,String:Qt.string,Escape:Qt.escape,ArithOp:Qt.arithmeticOperator,LogicOp:Qt.logicOperator,BitOp:Qt.bitwiseOperator,CompareOp:Qt.compareOperator,RegExp:Qt.regexp,Equals:Qt.definitionOperator,Arrow:Qt.function(Qt.punctuation),": Spread":Qt.punctuation,"( )":Qt.paren,"[ ]":Qt.squareBracket,"{ }":Qt.brace,"InterpolationStart InterpolationEnd":Qt.special(Qt.brace),".":Qt.derefOperator,", ;":Qt.separator,"@":Qt.meta,TypeName:Qt.typeName,TypeDefinition:Qt.definition(Qt.typeName),"type enum interface implements namespace module declare":Qt.definitionKeyword,"abstract global Privacy readonly override":Qt.modifier,"is keyof unique infer":Qt.operatorKeyword,JSXAttributeValue:Qt.attributeValue,JSXText:Qt.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Qt.angleBracket,"JSXIdentifier JSXNameSpacedName":Qt.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Qt.attributeName,"JSXBuiltin/JSXIdentifier":Qt.standard(Qt.tagName)}),$De={__proto__:null,export:16,as:21,from:29,default:32,async:37,function:38,extends:48,this:52,true:60,false:60,null:72,void:76,typeof:80,super:98,new:132,delete:148,yield:157,await:161,class:166,public:223,private:223,protected:223,readonly:225,instanceof:244,satisfies:247,in:248,const:250,import:282,keyof:337,unique:341,infer:347,is:383,abstract:403,implements:405,type:407,let:410,var:412,using:415,interface:421,enum:425,namespace:431,module:433,declare:437,global:441,for:460,of:469,while:472,with:476,do:480,if:484,else:486,switch:490,case:496,try:502,catch:506,finally:510,return:514,throw:518,break:522,continue:526,debugger:530},LDe={__proto__:null,async:119,get:121,set:123,declare:183,public:185,private:185,protected:185,static:187,abstract:189,override:191,readonly:197,accessor:199,new:387},IDe={__proto__:null,"<":139},NDe=AS.deserialize({version:14,states:"$6zO%TQUOOO%[QUOOO'_QWOOP(lOSOOO*zQ(CjO'#CgO+ROpO'#ChO+aO!bO'#ChO+oO07`O'#D[O.QQUO'#DbO.bQUO'#DmO%[QUO'#DwO0fQUO'#EPOOQ(CY'#EX'#EXO1PQSO'#EUOOQO'#Ej'#EjOOQO'#Id'#IdO1XQSO'#GlO1dQSO'#EiO1iQSO'#EiO3kQ(CjO'#JeO6[Q(CjO'#JfO6xQSO'#FXO6}Q#tO'#FpOOQ(CY'#Fa'#FaO7YO&jO'#FaO7hQ,UO'#FwO9OQSO'#FvOOQ(CY'#Jf'#JfOOQ(CW'#Je'#JeO9TQSO'#GpOOQQ'#KQ'#KQO9`QSO'#IQO9eQ(C[O'#IROOQQ'#JR'#JROOQQ'#IV'#IVQ`QUOOO`QUOOO%[QUO'#DoO9mQUO'#D{O9tQUO'#D}O9ZQSO'#GlO9{Q,UO'#CmO:ZQSO'#EhO:fQSO'#EsO:kQ,UO'#F`O;YQSO'#GlOOQO'#KR'#KRO;_QSO'#KRO;mQSO'#GtO;mQSO'#GuO;mQSO'#GwO9ZQSO'#GzO]QSO'#HZO>eQSO'#HaO>eQSO'#HcO`QUO'#HeO>eQSO'#HgO>eQSO'#HjO>jQSO'#HpO>oQ(C]O'#HvO%[QUO'#HxO>zQ(C]O'#HzO?VQ(C]O'#H|O9eQ(C[O'#IOO?bQ(CjO'#CgO@dQWO'#DgQOQSOOO%[QUO'#D}O@zQSO'#EQO9{Q,UO'#EhOAVQSO'#EhOAbQ`O'#F`OOQQ'#Ce'#CeOOQ(CW'#Dl'#DlOOQ(CW'#Ji'#JiO%[QUO'#JiOOQO'#Jm'#JmOOQO'#Ia'#IaOBbQWO'#EaOOQ(CW'#E`'#E`OC^Q(C`O'#EaOChQWO'#ETOOQO'#Jl'#JlOC|QWO'#JmOEZQWO'#ETOChQWO'#EaPEhO?MpO'#C`POOO)CDp)CDpOOOO'#IW'#IWOEsOpO,59SOOQ(CY,59S,59SOOOO'#IX'#IXOFRO!bO,59SO%[QUO'#D^OOOO'#IZ'#IZOFaO07`O,59vOOQ(CY,59v,59vOFoQUO'#I[OGSQSO'#JgOIUQbO'#JgO+}QUO'#JgOI]QSO,59|OIsQSO'#EjOJQQSO'#JuOJ]QSO'#JtOJ]QSO'#JtOJeQSO,5;WOJjQSO'#JsOOQ(CY,5:X,5:XOJqQUO,5:XOLrQ(CjO,5:cOMcQSO,5:kOM|Q(C[O'#JrONTQSO'#JqO9TQSO'#JqONiQSO'#JqONqQSO,5;VONvQSO'#JqO!#OQbO'#JfOOQ(CY'#Cg'#CgO%[QUO'#EPO!#nQ`O,5:pOOQO'#Jn'#JnOOQO-ElOOQQ'#JZ'#JZOOQQ,5>m,5>mOOQQ-ExQ(CjO,5:iOOQO,5@m,5@mO!?iQ,UO,5=WO!?wQ(C[O'#J[O9OQSO'#J[O!@YQ(C[O,59XO!@eQWO,59XO!@mQ,UO,59XO9{Q,UO,59XO!@xQSO,5;TO!AQQSO'#HYO!AfQSO'#KVO%[QUO,5;xO!7cQWO,5;zO!AnQSO,5=sO!AsQSO,5=sO!AxQSO,5=sO9eQ(C[O,5=sO;mQSO,5=cOOQO'#Cs'#CsO!BWQWO,5=`O!B`Q,UO,5=aO!BkQSO,5=cO!BpQ`O,5=fO!BxQSO'#KRO>jQSO'#HPO9ZQSO'#HRO!B}QSO'#HRO9{Q,UO'#HTO!CSQSO'#HTOOQQ,5=i,5=iO!CXQSO'#HUO!CjQSO'#CmO!CoQSO,58}O!CyQSO,58}O!FOQUO,58}OOQQ,58},58}O!F`Q(C[O,58}O%[QUO,58}O!HkQUO'#H]OOQQ'#H^'#H^OOQQ'#H_'#H_O`QUO,5=uO!IRQSO,5=uO`QUO,5={O`QUO,5=}O!IWQSO,5>PO`QUO,5>RO!I]QSO,5>UO!IbQUO,5>[OOQQ,5>b,5>bO%[QUO,5>bO9eQ(C[O,5>dOOQQ,5>f,5>fO!MlQSO,5>fOOQQ,5>h,5>hO!MlQSO,5>hOOQQ,5>j,5>jO!MqQWO'#DYO%[QUO'#JiO!N`QWO'#JiO!N}QWO'#DhO# `QWO'#DhO##qQUO'#DhO##xQSO'#JhO#$QQSO,5:RO#$VQSO'#EnO#$eQSO'#JvO#$mQSO,5;XO#$rQWO'#DhO#%PQWO'#ESOOQ(CY,5:l,5:lO%[QUO,5:lO#%WQSO,5:lO>jQSO,5;SO!@eQWO,5;SO!@mQ,UO,5;SO9{Q,UO,5;SO#%`QSO,5@TO#%eQ!LQO,5:pOOQO-E<_-E<_O#&kQ(C`O,5:{OChQWO,5:oO#&uQWO,5:oOChQWO,5:{O!@YQ(C[O,5:oOOQ(CW'#Ed'#EdOOQO,5:{,5:{O%[QUO,5:{O#'SQ(C[O,5:{O#'_Q(C[O,5:{O!@eQWO,5:oOOQO,5;R,5;RO#'mQ(C[O,5:{POOO'#IU'#IUP#(RO?MpO,58zPOOO,58z,58zOOOO-EvO+}QUO,5>vOOQO,5>|,5>|O#(mQUO'#I[OOQO-EWQ(CjO1G0yO#>_Q(CjO1G0yO#@VQ(CjO1G0yO#CVQ$IUO'#CgO#ETQ$IUO1G1[O#E[Q$IUO'#JfO!,YQSO1G1bO#ElQ(CjO,5?SOOQ(CW-EeQSO1G3kO$.fQUO1G3mO$2jQUO'#HlOOQQ1G3p1G3pO$2wQSO'#HrO>jQSO'#HtOOQQ1G3v1G3vO$3PQUO1G3vO9eQ(C[O1G3|OOQQ1G4O1G4OOOQ(CW'#GX'#GXO9eQ(C[O1G4QO9eQ(C[O1G4SO$7WQSO,5@TO!*SQUO,5;YO9TQSO,5;YO>jQSO,5:SO!*SQUO,5:SO!@eQWO,5:SO$7]Q$IUO,5:SOOQO,5;Y,5;YO$7gQWO'#I]O$7}QSO,5@SOOQ(CY1G/m1G/mO$8VQWO'#IcO$8aQSO,5@bOOQ(CW1G0s1G0sO# `QWO,5:SOOQO'#I`'#I`O$8iQWO,5:nOOQ(CY,5:n,5:nO#%ZQSO1G0WOOQ(CY1G0W1G0WO%[QUO1G0WOOQ(CY1G0n1G0nO>jQSO1G0nO!@eQWO1G0nO!@mQ,UO1G0nOOQ(CW1G5o1G5oO!@YQ(C[O1G0ZOOQO1G0g1G0gO%[QUO1G0gO$8pQ(C[O1G0gO$8{Q(C[O1G0gO!@eQWO1G0ZOChQWO1G0ZO$9ZQ(C[O1G0gOOQO1G0Z1G0ZO$9oQ(CjO1G0gPOOO-EvO$:]QSO1G5mO$:eQSO1G5zO$:mQbO1G5{O9TQSO,5>|O$:wQ(CjO1G5xO%[QUO1G5xO$;XQ(C[O1G5xO$;jQSO1G5wO$;jQSO1G5wO9TQSO1G5wO$;rQSO,5?PO9TQSO,5?POOQO,5?P,5?PO$WOOQQ,5>W,5>WO%[QUO'#HmO%(vQSO'#HoOOQQ,5>^,5>^O9TQSO,5>^OOQQ,5>`,5>`OOQQ7+)b7+)bOOQQ7+)h7+)hOOQQ7+)l7+)lOOQQ7+)n7+)nO%({QWO1G5oO%)aQ$IUO1G0tO%)kQSO1G0tOOQO1G/n1G/nO%)vQ$IUO1G/nO>jQSO1G/nO!*SQUO'#DhOOQO,5>w,5>wOOQO-E},5>}OOQO-EjQSO7+&YO!@eQWO7+&YOOQO7+%u7+%uO$9oQ(CjO7+&ROOQO7+&R7+&RO%[QUO7+&RO%*QQ(C[O7+&RO!@YQ(C[O7+%uO!@eQWO7+%uO%*]Q(C[O7+&RO%*kQ(CjO7++dO%[QUO7++dO%*{QSO7++cO%*{QSO7++cOOQO1G4k1G4kO9TQSO1G4kO%+TQSO1G4kOOQO7+%z7+%zO#%ZQSO<xOOQO-E<[-E<[O%2yQbO,5>yO%[QUO,5>yOOQO-E<]-E<]O%3TQSO1G5qOOQ(CY<tQ$IUO1G0yO%>{Q$IUO1G0yO%@sQ$IUO1G0yO%AWQ(CjO<XOOQQ,5>Z,5>ZO& PQSO1G3xO9TQSO7+&`O!*SQUO7+&`OOQO7+%Y7+%YO& UQ$IUO1G5{O>jQSO7+%YOOQ(CY<jQSO<jQSO7+)dO&6mQSO<{AN>{O%[QUOAN?XOOQO<PQSO7+*ZO&>[QSO<= ZO&>dQ`O7+*]OOQ(CW<nQ`O<uQSO<= dOOQQG27kG27kO9eQ(C[OG27kO!*SQUO1G4vO&>}QSO7++uO%MbQSOANAyOOQQANAyANAyO!&^Q,UOANAyO&?VQSOANAyOOQQANA{ANA{O9eQ(C[OANA{O#NWQSOANA{OOQO'#HW'#HWOOQO7+*e7+*eOOQQG22uG22uOOQQANEPANEPOOQQANEQANEQOOQQANBTANBTO&?_QSOANBTOOQQ<fOPZXYZXlZXzZX{ZX}ZX!fZX!gZX!iZX!mZX#YZX#edX#hZX#iZX#jZX#kZX#lZX#mZX#nZX#oZX#pZX#rZX#tZX#vZX#wZX#|ZX(TZX(dZX(kZX(lZX!WZX!XZX~O#zZX~P#APOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO#v:TO#w:UO(TVO(d$ZO(k#|O(l#}O~O#z.iO~P#C^O#Y:ZO#|:ZO#z(YX!X(YX~P! UO_'[a!W'[a'm'[a'k'[a!h'[a!T'[ap'[a!Y'[a%b'[a!b'[a~P!7zOP#giY#gi_#gil#gi{#gi!W#gi!f#gi!g#gi!i#gi!m#gi#h#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi'm#gi(T#gi(d#gi'k#gi!T#gi!h#gip#gi!Y#gi%b#gi!b#gi~P#,sO_#{i!W#{i'm#{i'k#{i!T#{i!h#{ip#{i!Y#{i%b#{i!b#{i~P!7zO$X.nO$Z.nO~O$X.oO$Z.oO~O!b)_O#Y.pO!Y$_X$U$_X$X$_X$Z$_X$b$_X~O!V.qO~O!Y)bO$U.sO$X)aO$Z)aO$b.tO~O!W:VO!X(XX~P#C^O!X.uO~O!b)_O$b(mX~O$b.wO~Or)qO(U)rO(V.zO~O!T/OO~P!&^O!WdX!bdX!hdX!h$tX(ddX~P!/bO!h/UO~P#,sO!W/VO!b#uO(d'gO!h(qX~O!h/[O~O!V*SO'v%`O!h(qP~O#e/^O~O!T$tX!W$tX!b${X~P!/bO!W/_O!T(rX~P#,sO!b/aO~O!T/cO~Ol/gO!b#uO!i%^O(P%RO(d'gO~O'v/iO~O!b+YO~O_%gO!W/mO'm%gO~O!X/oO~P!3`O!^/pO!_/pO'w!lO(W!mO~O}/rO(W!mO~O#U/sO~O'v&QOe'aX!W'aX~O!W*lOe(Qa~Oe/xO~Oz/yO{/yO}/zOhwa(kwa(lwa!Wwa#Ywa~Oewa#zwa~P$ tOz)vO})wOh$ma(k$ma(l$ma!W$ma#Y$ma~Oe$ma#z$ma~P$!jOz)vO})wOh$oa(k$oa(l$oa!W$oa#Y$oa~Oe$oa#z$oa~P$#]O#e/|O~Oe$}a!W$}a#Y$}a#z$}a~P!0kO!b#uO~O#e0PO~O!W*}O_(va'm(va~Oz#yO{#zO}#{O!g#wO!i#xO(TVOP!oiY!oil!oi!W!oi!f!oi!m!oi#h!oi#i!oi#j!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#r!oi#t!oi#v!oi#w!oi(d!oi(k!oi(l!oi~O_!oi'm!oi'k!oi!T!oi!h!oip!oi!Y!oi%b!oi!b!oi~P$$zOh.UO!Y'VO%b.TO~Oj0ZO'v0YO~P!1]O!b+YO_(Oa!Y(Oa'm(Oa!W(Oa~O#e0aO~OYZX!WdX!XdX~O!W0bO!X(zX~O!X0dO~OY0eO~O`0gO'v+bO'xTO'{UO~O!Y%wO'v%`O^'iX!W'iX~O!W+gO^(ya~O!h0jO~P!7zOY0mO~O^0nO~O#Y0qO~Oh0tO!Y$|O~O(W(tO!X(wP~Oh0}O!Y0zO%b0|O(P%RO~OY1XO!W1VO!X(xX~O!X1YO~O^1[O_%gO'm%gO~O'v#mO'xTO'{UO~O#Y$eO#|$eOP(YXY(YXl(YXz(YX{(YX}(YX!W(YX!f(YX!i(YX!m(YX#h(YX#i(YX#j(YX#k(YX#l(YX#m(YX#n(YX#o(YX#r(YX#t(YX#v(YX#w(YX(T(YX(d(YX(k(YX(l(YX~O#p1_O&S1`O_(YX!g(YX~P$+sO#Y$eO#p1_O&S1`O~O_1bO~P%[O_1dO~O&]1gOP&ZiQ&ZiW&Zi_&Zib&Zic&Zij&Zil&Zim&Zin&Zit&Ziv&Zix&Zi}&Zi!R&Zi!S&Zi!Y&Zi!d&Zi!i&Zi!l&Zi!m&Zi!n&Zi!p&Zi!r&Zi!u&Zi!y&Zi#q&Zi$R&Zi$V&Zi%a&Zi%c&Zi%e&Zi%f&Zi%g&Zi%j&Zi%l&Zi%o&Zi%p&Zi%r&Zi&O&Zi&U&Zi&W&Zi&Y&Zi&[&Zi&_&Zi&e&Zi&k&Zi&m&Zi&o&Zi&q&Zi&s&Zi'k&Zi'v&Zi'x&Zi'{&Zi(T&Zi(c&Zi(p&Zi!X&Zi`&Zi&b&Zi~O`1mO!X1kO&b1lO~P`O!YXO!i1oO~O&i,jOP&diQ&diW&di_&dib&dic&dij&dil&dim&din&dit&div&dix&di}&di!R&di!S&di!Y&di!d&di!i&di!l&di!m&di!n&di!p&di!r&di!u&di!y&di#q&di$R&di$V&di%a&di%c&di%e&di%f&di%g&di%j&di%l&di%o&di%p&di%r&di&O&di&U&di&W&di&Y&di&[&di&_&di&e&di&k&di&m&di&o&di&q&di&s&di'k&di'v&di'x&di'{&di(T&di(c&di(p&di!X&di&]&di`&di&b&di~O!T1uO~O!W![a!X![a~P#C^Om!nO}!oO!V1{O(W!mO!W'PX!X'PX~P@OO!W,zO!X([a~O!W'VX!X'VX~P!7SO!W,}O!X(ja~O!X2SO~P'_O_%gO#Y2]O'm%gO~O_%gO!b#uO#Y2]O'm%gO~O_%gO!b#uO!m2aO#Y2]O'm%gO(d'gO~O_%gO'm%gO~P!7zO!W$aOp$la~O!T'Oi!W'Oi~P!7zO!W'{O!T(Zi~O!W(SO!T(hi~O!T(ii!W(ii~P!7zO!W(fi!h(fi_(fi'm(fi~P!7zO#Y2cO!W(fi!h(fi_(fi'm(fi~O!W(`O!h(ei~O}%aO!Y%bO!y]O#c2hO#d2gO'v%`O~O}%aO!Y%bO#d2gO'v%`O~Oh2oO!Y'VO%b2nO~Oh2oO!Y'VO%b2nO(P%RO~O#ewaPwaYwa_walwa!fwa!gwa!iwa!mwa#hwa#iwa#jwa#kwa#lwa#mwa#nwa#owa#pwa#rwa#twa#vwa#wwa'mwa(Twa(dwa!hwa!Twa'kwapwa!Ywa%bwa!bwa~P$ tO#e$maP$maY$ma_$mal$ma{$ma!f$ma!g$ma!i$ma!m$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#o$ma#p$ma#r$ma#t$ma#v$ma#w$ma'm$ma(T$ma(d$ma!h$ma!T$ma'k$map$ma!Y$ma%b$ma!b$ma~P$!jO#e$oaP$oaY$oa_$oal$oa{$oa!f$oa!g$oa!i$oa!m$oa#h$oa#i$oa#j$oa#k$oa#l$oa#m$oa#n$oa#o$oa#p$oa#r$oa#t$oa#v$oa#w$oa'm$oa(T$oa(d$oa!h$oa!T$oa'k$oap$oa!Y$oa%b$oa!b$oa~P$#]O#e$}aP$}aY$}a_$}al$}a{$}a!W$}a!f$}a!g$}a!i$}a!m$}a#h$}a#i$}a#j$}a#k$}a#l$}a#m$}a#n$}a#o$}a#p$}a#r$}a#t$}a#v$}a#w$}a'm$}a(T$}a(d$}a!h$}a!T$}a'k$}a#Y$}ap$}a!Y$}a%b$}a!b$}a~P#,sO_#]q!W#]q'm#]q'k#]q!T#]q!h#]qp#]q!Y#]q%b#]q!b#]q~P!7zOe'QX!W'QX~P!'vO!W._Oe(^a~O!V2wO!W'RX!h'RX~P%[O!W.bO!h(_a~O!W.bO!h(_a~P!7zO!T2zO~O#z!ka!X!ka~PJxO#z!ca!W!ca!X!ca~P#C^O#z!oa!X!oa~P!:eO#z!qa!X!qa~P!=OO!Y3^O$VfO$`3_O~O!X3cO~Op3dO~P#,sO_$iq!W$iq'm$iq'k$iq!T$iq!h$iqp$iq!Y$iq%b$iq!b$iq~P!7zO!T3eO~P#,sOz)vO})wO(l){Oh%Yi(k%Yi!W%Yi#Y%Yi~Oe%Yi#z%Yi~P$J]Oz)vO})wOh%[i(k%[i(l%[i!W%[i#Y%[i~Oe%[i#z%[i~P$KOO(d$ZO~P#,sO!V3hO'v%`O!W']X!h']X~O!W/VO!h(qa~O!W/VO!b#uO!h(qa~O!W/VO!b#uO(d'gO!h(qa~Oe$vi!W$vi#Y$vi#z$vi~P!0kO!V3pO'v*XO!T'_X!W'_X~P!1YO!W/_O!T(ra~O!W/_O!T(ra~P#,sO!b#uO#p3xO~Ol3{O!b#uO(d'gO~Oe(Ri!W(Ri~P!0kO#Y4OOe(Ri!W(Ri~P!0kO!h4RO~O_$jq!W$jq'm$jq'k$jq!T$jq!h$jqp$jq!Y$jq%b$jq!b$jq~P!7zO!T4VO~O!W4WO!Y(sX~P#,sO!g#wO~P4XO_$tX!Y$tX%VZX'm$tX!W$tX~P!/bO%V4YO_iXhiXziX}iX!YiX'miX(kiX(liX!WiX~O%V4YO~O`4`O%c4aO'v+bO'xTO'{UO!W'hX!X'hX~O!W0bO!X(za~OY4eO~O^4fO~O_%gO'm%gO~P#,sO!Y$|O~P#,sO!W4nO#Y4pO!X(wX~O!X4qO~Om!nO}4rO!]!xO!^!uO!_!uO!y9rO!}!pO#O!pO#P!pO#Q!pO#R!pO#U4wO#V!yO'w!lO'xTO'{UO(W!mO(c!sO~O!X4vO~P%%QOh4|O!Y0zO%b4{O~Oh4|O!Y0zO%b4{O(P%RO~O`5TO'v#mO'xTO'{UO!W'gX!X'gX~O!W1VO!X(xa~O'xTO'{UO(W5VO~O^5ZO~O#p5^O&S5_O~PMhO!h5`O~P%[O_5bO~O_5bO~P%[O`1mO!X5gO&b1lO~P`O!b5iO~O!b5kO!W(]i!X(]i!b(]i!i(]i(P(]i~O!W#bi!X#bi~P#C^O#Y5lO!W#bi!X#bi~O!W![i!X![i~P#C^O_%gO#Y5uO'm%gO~O_%gO!b#uO#Y5uO'm%gO~O!W(fq!h(fq_(fq'm(fq~P!7zO!W(`O!h(eq~O}%aO!Y%bO#d5|O'v%`O~O!Y'VO%b6PO~Oh6SO!Y'VO%b6PO~O#e%YiP%YiY%Yi_%Yil%Yi{%Yi!f%Yi!g%Yi!i%Yi!m%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#o%Yi#p%Yi#r%Yi#t%Yi#v%Yi#w%Yi'm%Yi(T%Yi(d%Yi!h%Yi!T%Yi'k%Yip%Yi!Y%Yi%b%Yi!b%Yi~P$J]O#e%[iP%[iY%[i_%[il%[i{%[i!f%[i!g%[i!i%[i!m%[i#h%[i#i%[i#j%[i#k%[i#l%[i#m%[i#n%[i#o%[i#p%[i#r%[i#t%[i#v%[i#w%[i'm%[i(T%[i(d%[i!h%[i!T%[i'k%[ip%[i!Y%[i%b%[i!b%[i~P$KOO#e$viP$viY$vi_$vil$vi{$vi!W$vi!f$vi!g$vi!i$vi!m$vi#h$vi#i$vi#j$vi#k$vi#l$vi#m$vi#n$vi#o$vi#p$vi#r$vi#t$vi#v$vi#w$vi'm$vi(T$vi(d$vi!h$vi!T$vi'k$vi#Y$vip$vi!Y$vi%b$vi!b$vi~P#,sOe'Qa!W'Qa~P!0kO!W'Ra!h'Ra~P!7zO!W.bO!h(_i~O#z#]i!W#]i!X#]i~P#C^OP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O(TVOY#gil#gi!f#gi#i#gi#j#gi#k#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~O#h#gi~P%3jO#h9zO~P%3jOP$]Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O(TVOY#gi!f#gi#l#gi#m#gi#n#gi#o#gi#p#gi#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~Ol#gi~P%5uOl9|O~P%5uOP$]Ol9|Oz#yO{#zO}#{O!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O(TVO#r#gi#t#gi#v#gi#w#gi#z#gi(d#gi(k#gi(l#gi!W#gi!X#gi~OY#gi!f#gi#m#gi#n#gi#o#gi#p#gi~P%8QOY:YO!f:OO#m:OO#n:OO#o:XO#p:OO~P%8QOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO(TVO#t#gi#v#gi#w#gi#z#gi(d#gi(l#gi!W#gi!X#gi~O(k#gi~P%:lO(k#|O~P%:lOP$]OY:YOl9|Oz#yO{#zO}#{O!f:OO!g#wO!i#xO!m$]O#h9zO#i9{O#j9{O#k9{O#l9}O#m:OO#n:OO#o:XO#p:OO#r:PO#t:RO(TVO(k#|O#v#gi#w#gi#z#gi(d#gi!W#gi!X#gi~O(l#gi~P%yP?^P?^PPP?^PAOP?^P?^P?^PASPPAXPArPFjPPPFnPPPPFnIoPPPIuJpPFnPMOPPPP! ^FnPPPFnPFnP!#lFnP!'Q!(S!(]P!)P!)T!)PPPPPP!,`!(SPP!,|!-vP!0jFnFn!0o!3y!8`!8`!}P#@^#@e#@mPPPP#D{#Gr#NZ#N^#Na$ Y$ ]$ `$ g$ oPP$ u$ y$!q$#p$#t$$YPP$$^$$d$$hP$$k$$o$$r$%h$&P$&h$&l$&o$&r$&x$&{$'P$'TR!{RoqOXst!Z#c%f&i&k&l&n,b,g1g1jY!uQ'V-S0z4uQ%lvQ%tyQ%{|Q&a!VS&}!e,zQ']!iS'c!r!xS*_$|*dQ+`%uQ+m%}Q,R&ZQ-Q'UQ-['^Q-d'dQ/p*fQ1U,SR:d9u%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7yS#p]9r!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ*o%VQ+e%wQ,T&^Q,[&fQ.X:[Q0W+WQ0[+YQ0g+fQ1^,YQ2k.UQ4`0bQ5T1VQ6R2oQ6X:]Q6z4aR8P6S&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;ct!nQ!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4w$^$si#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ&O|Q&{!eS'R%b,}Q+e%wQ,T&^Q/{*sQ0g+fQ0l+lQ1],XQ1^,YQ4`0bQ4i0nQ5T1VQ5W1XQ5X1[Q6z4aQ6}4fQ7h5ZQ8g7OR8r7ernOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR,V&b&v^OPXYstuvwz!Z!`!g!j!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;b;c[#[WZ#V#Y'O'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q%oxQ%syS%x|%}Q&U!TQ'Y!hQ'[!iQ(g#rS*R$x*VS+_%t%uQ+c%wQ+|&XQ,Q&ZS-Z']'^Q.W(hQ/Z*SQ0`+`Q0f+fQ0h+gQ0k+kQ1P+}S1T,R,SQ2X-[Q3g/VQ4_0bQ4c0eQ4h0mQ5S1UQ6d3hQ6y4aQ6|4eQ8c6xR9X8dv$zi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i!S%qy!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zQ+X%oQ+r&RQ+u&SQ,P&ZQ.V(gQ1O+|U1S,Q,R,SQ2p.WQ4}1PS5R1T1UQ7d5S#O;d#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg;e:X:Y:_:a:c:j:l:n:r:t:xW%Pi%R*l;`S&R!Q&`Q&S!RQ&T!SR+p&P$_%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mT)r$u)sV*p%V:[:]U'R!e%b,}S(u#y#zQ+j%zS.P(c(dQ0u+vQ4P/yR7S4n&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c$i$`c#X#d%j%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.j.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VT#SV#T&}kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ'P!eR1|,zv!nQ!e!r!u!x!y&}'U'V'c'd'e,z-Q-S-d0z4u4wS*^$|*dS/h*_*fQ/q*gQ0w+xQ3z/pR3}/snqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&p!^Q'm!wS(i#t9yQ+]%rQ+z&UQ+{&WQ-X'ZQ-f'fS.](n:fS0O*x:oQ0^+^Q0y+yQ1n,iQ1p,jQ1x,uQ2V-YQ2Y-^S4U0P:uQ4Z0_S4^0a:vQ5m1zQ5q2WQ5v2_Q6w4[Q7t5oQ7u5rQ7x5wR8x7q$d$_c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(f#o'`U*i$}(m3ZS+S%j.jQ2l0WQ6O2kQ8O6RR9P8P$d$^c#X#d%k%m'x(O(j(q(y(z({(|(})O)P)Q)R)S)T)V)Y)^)h+T+i,x-g-l-q-s.^.d.h.k.l.{/}1v1y2Z2b2v2{2|2}3O3P3Q3R3S3T3U3V3W3X3[3]3b4T4]5n5t5y6V6W6]6^7U7s7w8Q8U8V8{9Z9b9s;VS(e#o'`S(w#z$_S+R%j.jS.Q(d(fQ.m)XQ0T+SR2i.R&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS#p]9rQ&k!XQ&l!YQ&n![Q&o!]R1f,eQ'W!hQ+U%oQ-V'YS.S(g+XQ2T-UW2m.V.W0V0XQ5p2UU5}2j2l2pS7{6O6QS8}7}8OS9d8|9PQ9l9eR9o9mU!vQ'V-ST4s0z4u!Q_OXZ`st!V!Z#c#g%^%f&`&b&i&k&l&n(`,b,g-y1g1j]!pQ!r'V-S0z4uT#p]9r%Y{OPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS(u#y#zS.P(c(d!s:|$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cY!tQ'V-S0z4uQ'b!rS'l!u!xS'n!y4wS-c'c'dQ-e'eR2`-dQ'k!tS([#f1aS-b'b'nQ/Y*RQ/f*^Q2a-eQ3l/ZS3u/g/qQ6c3gS6n3{3}Q8Z6dR8b6qQ#vbQ'j!tS(Z#f1aS(]#l*wQ*y%_Q+Z%pQ+a%vU-a'b'k'nQ-u([Q/X*RQ/e*^Q/k*aQ0]+[Q1Q,OS2^-b-eQ2f-}S3k/Y/ZS3t/f/qQ3w/jQ3y/lQ5P1RQ5x2aQ6b3gQ6f3lS6j3u3}Q6o3|Q7b5QS8Y6c6dQ8^6kQ8`6nQ8o7cQ9T8ZQ9U8_Q9W8bQ9`8pQ9h9VQ;P:zQ;[;TR;];UV!vQ'V-S%YaOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yS#vz!j!r:y$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;P;b%YbOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yQ%_j!S%py!i!t%s%t%u&|'[']'^'b'l*^+_+`,w-Z-[-c/h0`2Q2X2`3zS%vz!jQ+[%qQ,O&ZW1R,P,Q,R,SU5Q1S1T1US7c5R5SQ8p7d!r:z$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ;T;aR;U;b$|eOPXYstuvw!Z!`!g!o#R#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7yY#aWZ#V#Y'y!S%cm#g#h#k%^%a(S(^(_(`*z*{*},^,t-r-x-y-z-|1o2g2h5k5|Q,]&f!p:{$[$m)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cR;O'OS'S!e%bR2O,}%OdOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|,_,b,g-W-`-n-t.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2w4r4|5^5_5b5u7Z7`7o7y!r)W$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cQ,[&fQ0W+WQ2k.UQ6R2oR8P6S!f$Uc#X%j'x(O(j(q)Q)R)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!T:Q)V)h,x.j1v1y2{3T3U3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!b$Wc#X%j'x(O(j(q)S)T)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9s!P:S)V)h,x.j1v1y2{3V3W3[3b5n6W6]6^7U7s8Q8U8V9Z9b;V!^$[c#X%j'x(O(j(q)Y)^+i-g-l-q-s.^.d.{/}2Z2b2v3X4T4]5t5y6V7w8{9sQ3f/Tz;c)V)h,x.j1v1y2{3[3b5n6W6]6^7U7s8Q8U8V9Z9b;VQ;h;jR;i;k&|kOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cS$nh$oR3_.p'TgOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$jf$pQ$hfS)a$k)eR)m$pT$if$pT)c$k)e'ThOPWXYZhstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$[$a$e$m$o%f%l%y&b&e&f&i&k&l&n&r&z'O'X'i'y'{(R(Y(n(r(v)j)u*x*|+W,_,b,g,s,v-W-`-n-t.U.b.i.p.q/z0P0a0}1_1`1b1d1g1j1l1{2]2c2o2w3^4p4r4|5^5_5b5l5u6S7Z7`7o7y8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;cT$nh$oQ$qhR)l$o%YjOPWXYZstuvw!Z!`!g!o#R#V#Y#c#n#t#x#{$O$P$Q$R$S$T$U$V$W$X$Y$a$e%f%l%y&b&e&f&i&k&l&n&r&z'X'i'y'{(R(Y(n(r(v)u*x*|+W,_,b,g-W-`-n-t.U.b.i/z0P0a0}1_1`1b1d1g1j1l2]2c2o2w4r4|5^5_5b5u6S7Z7`7o7y!s;a$[$m'O)j,s,v.q1{3^4p5l8h8y9q9t9u9x9y9z9{9|9}:O:P:Q:R:S:T:U:V:Z:d:e:f:h:o:p:u:v;c#clOPXZst!Z!`!o#R#c#n#{$m%f&b&e&f&i&k&l&n&r&z'X(v)j*|+W,_,b,g-W.U.q/z0}1_1`1b1d1g1j1l2o3^4r4|5^5_5b6S7Z7`7ov$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mQ*t%ZQ.|)vg3Z:X:Y:_:a:c:j:l:n:r:t:xv$yi#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;iQ*W$zS*a$|*dQ*u%[Q/l*b#O;R#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mf;S:X:Y:_:a:c:j:l:n:r:t:xQ;W;dQ;X;eQ;Y;fR;Z;gv$}i#w%W%X%])z)|*U*j*k._/^/|3f4O8X;`;h;i#O(m#u$c$d$x${)q)w)}*[+V+Y+q+t.T/P/_/a0q0t0|2n3p3x4W4Y4{6P6g6p7]7|8l9O9^9f:^:`:b:i:k:m:q:s:w;l;mg3Z:X:Y:_:a:c:j:l:n:r:t:xnoOXst!Z#c%f&i&k&l&n,b,g1g1jQ*Z${Q,p&uQ,q&wR3o/_$^%Oi#u#w$c$d$x${%W%X%])q)w)z)|)}*U*[*j*k+V+Y+q+t.T._/P/^/_/a/|0q0t0|2n3f3p3x4O4W4Y4{6P6g6p7]7|8X8l9O9^9f:X:Y:^:_:`:a:b:c:i:j:k:l:m:n:q:r:s:t:w:x;`;h;i;l;mQ+s&SQ0s+uQ4l0rR7R4mT*c$|*dS*c$|*dT4t0z4uS/j*`4rT3|/r7ZQ+Z%pQ/k*aQ0]+[Q1Q,OQ5P1RQ7b5QQ8o7cR9`8pn)z$v(o*v/]/t/u2t3m4S6a6r9S;Q;^;_!Y:i(k)[*Q*Y.[.x.}/T/b0U0p0r2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k]:j3Y6[8R9Q9R9pp)|$v(o*v/R/]/t/u2t3m4S6a6r9S;Q;^;_![:k(k)[*Q*Y.[.x.}/T/b0U0p0r2q2s3n3r4k4m6T6U6h6l6t6v8]8a9g;j;k_:l3Y6[8R8S9Q9R9prnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ&]!UR,_&frnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jR&]!UQ+w&TR0o+psnOXst!V!Z#c%f&`&i&k&l&n,b,g1g1jQ0{+|S4z1O1PU7[4x4y4}S8k7^7_S9[8j8mQ9i9]R9n9jQ&d!VR,W&`R5W1XS%x|%}R0h+gQ&i!WR,b&jR,h&oT1h,g1jR,l&pQ,k&pR1q,lQ'p!zR-h'pSsOtQ#cXT%is#cQ!}TR'r!}Q#QUR't#QQ)s$uR.y)sQ#TVR'v#TQ#WWU'|#W'}-oQ'}#XR-o(OQ,{'PR1},{Q.`(oR2u.`Q.c(qS2x.c2yR2y.dQ-S'VR2R-SY!rQ'V-S0z4uR'a!rS#^W%aU(T#^(U-pQ(U#_R-p(PQ-O'SR2P-Ot`OXst!V!Z#c%f&`&b&i&k&l&n,b,g1g1jS#gZ%^U#q`#g-yR-y(`Q(a#iQ-v(]W.O(a-v2d5zQ2d-wR5z2eQ)e$kR.r)eQ$ohR)k$oQ$bcU)Z$b-k:WQ-k9sR:W)hQ/W*RW3i/W3j6e8[U3j/X/Y/ZS6e3k3lR8[6f#o)x$v(k(o)[*Q*Y*q*r*v.Y.Z.[.x.}/R/S/T/]/b/t/u0U0p0r2q2r2s2t3Y3m3n3r4S4k4m6T6U6Y6Z6[6a6h6l6r6t6v8R8S8T8]8a9Q9R9S9g9p;Q;^;_;j;kQ/`*YU3q/`3s6iQ3s/bR6i3rQ*d$|R/n*dQ*m%QR/w*mQ4X0UR6u4XQ+O%dR0S+OQ4o0uS7T4o8iR8i7UQ+y&UR0x+yQ4u0zR7X4uQ1W,TS5U1W7fR7f5WQ0c+cW4b0c4d6{8eQ4d0fQ6{4cR8e6|Q+h%xR0i+hQ1j,gR5f1jYrOXst#cQ&m!ZQ+Q%fQ,a&iQ,c&kQ,d&lQ,f&nQ1e,bS1h,g1jR5e1gQ%hpQ&q!_Q&t!aQ&v!bQ&x!cQ'h!tQ+P%eQ+]%rQ+o&OQ,V&dQ,n&sW-_'b'j'k'nQ-f'fQ/m*cQ0^+^S1Z,W,ZQ1r,mQ1s,pQ1t,qQ2Y-^W2[-a-b-e-gQ4Z0_Q4g0lQ4j0pQ5O1QQ5Y1]Q5d1fU5s2Z2^2aQ5v2_Q6w4[Q7P4iQ7Q4kQ7W4tQ7a5PQ7g5XS7v5t5xQ7x5wQ8f6}Q8n7bQ8s7hQ8z7wQ9Y8gQ9_8oQ9c8{R9k9`Q%ryQ'Z!iQ'f!tU+^%s%t%uQ,u&|U-Y'[']'^S-^'b'lQ/d*^S0_+_+`Q1z,wS2W-Z-[Q2_-cQ3v/hQ4[0`Q5o2QQ5r2XQ5w2`R6m3zS$wi;`R*n%RU%Qi%R;`R/v*lQ$viS(k#u+YQ(o#wS)[$c$dQ*Q$xQ*Y${Q*q%WQ*r%XQ*v%]Q.Y:^Q.Z:`Q.[:bQ.x)qS.})w/PQ/R)zQ/S)|Q/T)}Q/]*UQ/b*[Q/t*jQ/u*kh0U+V.T0|2n4{6P7]7|8l9O9^9fQ0p+qQ0r+tQ2q:iQ2r:kQ2s:mQ2t._S3Y:X:YQ3m/^Q3n/_Q3r/aQ4S/|Q4k0qQ4m0tQ6T:qQ6U:sQ6Y:_Q6Z:aQ6[:cQ6a3fQ6h3pQ6l3xQ6r4OQ6t4WQ6v4YQ8R:nQ8S:jQ8T:lQ8]6gQ8a6pQ9Q:rQ9R:tQ9S8XQ9g:wQ9p:xQ;Q;`Q;^;hQ;_;iQ;j;lR;k;mnpOXst!Z#c%f&i&k&l&n,b,g1g1jQ!fPS#eZ#nQ&s!`U'_!o4r7ZQ'u#RQ(x#{Q)i$mS,Z&b&eQ,`&fQ,m&rQ,r&zQ-U'XQ.f(vQ.v)jQ0Q*|Q0X+WQ1c,_Q2U-WQ2l.UQ3a.qQ4Q/zQ4y0}Q5[1_Q5]1`Q5a1bQ5c1dQ5h1lQ6O2oQ6_3^Q7_4|Q7k5^Q7l5_Q7n5bQ8O6SQ8m7`R8w7o#WcOPXZst!Z!`!o#c#n#{%f&b&e&f&i&k&l&n&r&z'X(v*|+W,_,b,g-W.U/z0}1_1`1b1d1g1j1l2o4r4|5^5_5b6S7Z7`7oQ#XWQ#dYQ%juQ%kvS%mw!gS'x#V'{Q(O#YQ(j#tQ(q#xQ(y$OQ(z$PQ({$QQ(|$RQ(}$SQ)O$TQ)P$UQ)Q$VQ)R$WQ)S$XQ)T$YQ)V$[Q)Y$aQ)^$eW)h$m)j.q3^Q+T%lQ+i%yS,x'O1{Q-g'iS-l'y-nQ-q(RQ-s(YQ.^(nQ.d(rQ.h9qQ.j9tQ.k9uQ.l9xQ.{)uQ/}*xQ1v,sQ1y,vQ2Z-`Q2b-tQ2v.bQ2{9yQ2|9zQ2}9{Q3O9|Q3P9}Q3Q:OQ3R:PQ3S:QQ3T:RQ3U:SQ3V:TQ3W:UQ3X.iQ3[:ZQ3]:dQ3b:VQ4T0PQ4]0aQ5n:eQ5t2]Q5y2cQ6V2wQ6W:fQ6]:hQ6^:oQ7U4pQ7s5lQ7w5uQ8Q:pQ8U:uQ8V:vQ8{7yQ9Z8hQ9b8yQ9s#RR;V;cR#ZWR'Q!eY!tQ'V-S0z4uS&|!e,zQ'b!rS'l!u!xS'n!y4wS,w&}'US-c'c'dQ-e'eQ2Q-QR2`-dR(p#wR(s#xQ!fQT-R'V-S]!qQ!r'V-S0z4uQ#o]R'`9rT#jZ%^S#iZ%^S%dm,^U(]#g#h#kS-w(^(_Q-{(`Q0R*}Q2e-xU2f-y-z-|S5{2g2hR7z5|`#]W#V#Y%a'y(S*z-rr#fZm#g#h#k%^(^(_(`*}-x-y-z-|2g2h5|Q1a,^Q1w,tQ5j1oQ7r5kT:}'O*{T#`W%aS#_W%aS'z#V(SS(P#Y*zS,y'O*{T-m'y-rT'T!e%bQ$kfR)o$pT)d$k)eR3`.pT*T$x*VR*]${Q0V+VQ2j.TQ4x0|Q6Q2nQ7^4{Q7}6PQ8j7]Q8|7|Q9]8lQ9e9OQ9j9^R9m9fnqOXst!Z#c%f&i&k&l&n,b,g1g1jQ&c!VR,V&`tmOXst!U!V!Z#c%f&`&i&k&l&n,b,g1g1jR,^&fT%em,^R0v+vR,U&^Q%||R+n%}R+d%wT&g!W&jT&h!W&jT1i,g1j",nodeNames:"⚠ ArithOp ArithOp LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:367,context:MDe,nodeProps:[["group",-26,7,15,17,63,200,204,208,209,211,214,217,227,229,235,237,239,241,244,250,256,258,260,262,264,266,267,"Statement",-32,11,12,26,29,30,36,46,49,50,52,57,65,73,77,79,81,82,104,105,114,115,132,135,137,138,139,140,142,143,163,164,166,"Expression",-23,25,27,31,35,37,39,167,169,171,172,174,175,176,178,179,180,182,183,184,194,196,198,199,"Type",-3,85,97,103,"ClassItem"],["openedBy",32,"InterpolationStart",51,"[",55,"{",70,"(",144,"JSXStartTag",156,"JSXStartTag JSXStartCloseTag"],["closedBy",34,"InterpolationEnd",45,"]",56,"}",71,")",145,"JSXSelfCloseEndTag JSXEndTag",161,"JSXEndTag"]],propSources:[DDe],skippedNodes:[0,3,4,270],repeatNodeCount:33,tokenData:"$Fl(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Nu!`!a$#a!a!b$(n!b!c$,m!c!}Er!}#O$-w#O#P$/R#P#Q$4j#Q#R$5t#R#SEr#S#T$7R#T#o$8]#o#p$s#r#s$@P#s$f%Z$f$g+g$g#BYEr#BY#BZ$AZ#BZ$ISEr$IS$I_$AZ$I_$I|Er$I|$I}$Df$I}$JO$Df$JO$JTEr$JT$JU$AZ$JU$KVEr$KV$KW$AZ$KW&FUEr&FU&FV$AZ&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AZ?HUOEr(n%d_$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$e&j'ypOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'ypOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'yp'|!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$e&j'yp'|!b'o(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'z#S$e&j'p(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$e&j'yp'|!b'p(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$e&j!m$Ip'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#r$Id$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'x$(n$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$e&j'|!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$e&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$`#t$e&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$`#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$`#t$e&j'|!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'|!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$`#t'|!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hh$e&j'yp'|!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXUS$e&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSUSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWUS'|!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]US$e&j'ypOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWUS'ypOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYUS'yp'|!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%lQ^$e&j!SSOY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@Y!_!}!=y!}#O!Bw#O#P!Dj#P#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!?Ta$e&j!SSO!^&c!_#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&cS!@_X!SSOY!@YZ!P!@Y!P!Q!@z!Q!}!@Y!}#O!Ac#O#P!Bb#P;'S!@Y;'S;=`!Bq<%lO!@YS!APU!SS#Z#[!@z#]#^!@z#a#b!@z#g#h!@z#i#j!@z#m#n!@zS!AfVOY!AcZ#O!Ac#O#P!A{#P#Q!@Y#Q;'S!Ac;'S;=`!B[<%lO!AcS!BOSOY!AcZ;'S!Ac;'S;=`!B[<%lO!AcS!B_P;=`<%l!AcS!BeSOY!@YZ;'S!@Y;'S;=`!Bq<%lO!@YS!BtP;=`<%l!@Y&n!B|[$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#O!Bw#O#P!Cr#P#Q!=y#Q#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!CwX$e&jOY!BwYZ&cZ!^!Bw!^!_!Ac!_#o!Bw#o#p!Ac#p;'S!Bw;'S;=`!Dd<%lO!Bw&n!DgP;=`<%l!Bw&n!DoX$e&jOY!=yYZ&cZ!^!=y!^!_!@Y!_#o!=y#o#p!@Y#p;'S!=y;'S;=`!E[<%lO!=y&n!E_P;=`<%l!=y(Q!Eki$e&j'|!b!SSOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#Z&}#Z#[!Eb#[#]&}#]#^!Eb#^#a&}#a#b!Eb#b#g&}#g#h!Eb#h#i&}#i#j!Eb#j#m&}#m#n!Eb#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!f!GaZ'|!b!SSOY!GYZw!GYwx!@Yx!P!GY!P!Q!HS!Q!}!GY!}#O!Ic#O#P!Bb#P;'S!GY;'S;=`!JZ<%lO!GY!f!HZb'|!b!SSOY'}Zw'}x#O'}#P#Z'}#Z#[!HS#[#]'}#]#^!HS#^#a'}#a#b!HS#b#g'}#g#h!HS#h#i'}#i#j!HS#j#m'}#m#n!HS#n;'S'};'S;=`(f<%lO'}!f!IhX'|!bOY!IcZw!Icwx!Acx#O!Ic#O#P!A{#P#Q!GY#Q;'S!Ic;'S;=`!JT<%lO!Ic!f!JWP;=`<%l!Ic!f!J^P;=`<%l!GY(Q!Jh^$e&j'|!bOY!JaYZ&cZw!Jawx!Bwx!^!Ja!^!_!Ic!_#O!Ja#O#P!Cr#P#Q!Q#V#X%Z#X#Y!4|#Y#b%Z#b#c#Zd$e&j'yp'|!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#?tf$e&j'yp'|!bm$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#?i!R!S#?i!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#?i#S#b%Z#b#c#$De[t]||-1},{term:330,get:t=>LDe[t]||-1},{term:68,get:t=>IDe[t]||-1}],tokenPrec:12868}),yOe=[hc("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),hc("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),hc("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),hc("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),hc("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),hc(`try { + \${} +} catch (\${error}) { + \${} +}`,{label:"try",detail:"/ catch block",type:"keyword"}),hc("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),hc(`if (\${}) { + \${} +} else { + \${} +}`,{label:"if",detail:"/ else block",type:"keyword"}),hc(`class \${name} { + constructor(\${params}) { + \${} + } +}`,{label:"class",detail:"definition",type:"keyword"}),hc('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),hc('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],BDe=yOe.concat([hc("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),hc("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),hc("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Eme=new eie,bOe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function OD(t){return(e,r)=>{let a=e.node.getChild("VariableDefinition");return a&&r(a,t),!0}}const QDe=["FunctionDeclaration"],FDe={FunctionDeclaration:OD("function"),ClassDeclaration:OD("class"),ClassExpression:()=>!0,EnumDeclaration:OD("constant"),TypeAliasDeclaration:OD("type"),NamespaceDeclaration:OD("namespace"),VariableDefinition(t,e){t.matchContext(QDe)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function OOe(t,e){let r=Eme.get(e);if(r)return r;let a=[],i=!0;function d(f,m){let u=t.sliceString(f.from,f.to);a.push({label:u,type:m})}return e.cursor(vl.IncludeAnonymous).iterate(f=>{if(i)i=!1;else if(f.name){let m=FDe[f.name];if(m&&m(f,d)||bOe.has(f.name))return!1}else if(f.to-f.from>8192){for(let m of OOe(t,f.node))a.push(m);return!1}}),Eme.set(e,a),a}const _me=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,xOe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function VDe(t){let e=rl(t.state).resolveInner(t.pos,-1);if(xOe.indexOf(e.name)>-1)return null;let r=e.name=="VariableName"||e.to-e.from<20&&_me.test(t.state.sliceDoc(e.from,e.to));if(!r&&!t.explicit)return null;let a=[];for(let i=e;i;i=i.parent)bOe.has(i.name)&&(a=a.concat(OOe(t.state.doc,i)));return{options:a,from:r?e.from:t.pos,validFor:_me}}const ey=CS.define({name:"javascript",parser:NDe.configure({props:[BC.add({IfStatement:BD({except:/^\s*({|else\b)/}),TryStatement:BD({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Uke,SwitchBody:t=>{let e=t.textAfter,r=/^\s*\}/.test(e),a=/^\s*(case|default)\b/.test(e);return t.baseIndent+(r?0:a?1:2)*t.unit},Block:FZ({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":BD({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),DS.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":aie,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),SOe={test:t=>/^JSX/.test(t.name),facet:nie({commentTokens:{block:{open:"{/*",close:"*/}"}}})},wOe=ey.configure({dialect:"ts"},"typescript"),TOe=ey.configure({dialect:"jsx",props:[rie.add(t=>t.isTop?[SOe]:void 0)]}),COe=ey.configure({dialect:"jsx ts",props:[rie.add(t=>t.isTop?[SOe]:void 0)]},"typescript");let kOe=t=>({label:t,type:"keyword"});const AOe="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(kOe),zDe=AOe.concat(["declare","implements","private","protected","public"].map(kOe));function ZDe(t={}){let e=t.jsx?t.typescript?COe:TOe:t.typescript?wOe:ey,r=t.typescript?BDe.concat(zDe):yOe.concat(AOe);return new DC(e,[ey.data.of({autocomplete:pie(xOe,SU(r))}),ey.data.of({autocomplete:VDe}),t.jsx?WDe:[]])}function HDe(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function Rme(t,e,r=t.length){for(let a=e==null?void 0:e.firstChild;a;a=a.nextSibling)if(a.name=="JSXIdentifier"||a.name=="JSXBuiltin"||a.name=="JSXNamespacedName"||a.name=="JSXMemberExpression")return t.sliceString(a.from,Math.min(a.to,r));return""}const UDe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),WDe=Xo.inputHandler.of((t,e,r,a,i)=>{if((UDe?t.composing:t.compositionStarted)||t.state.readOnly||e!=r||a!=">"&&a!="/"||!ey.isActiveAt(t.state,e,-1))return!1;let d=i(),{state:f}=d,m=f.changeByRange(u=>{var p;let{head:v}=u,y=rl(f).resolveInner(v-1,-1),b;if(y.name=="JSXStartTag"&&(y=y.parent),!(f.doc.sliceString(v-1,v)!=a||y.name=="JSXAttributeValue"&&y.to>v)){if(a==">"&&y.name=="JSXFragmentTag")return{range:u,changes:{from:v,insert:""}};if(a=="/"&&y.name=="JSXStartCloseTag"){let x=y.parent,k=x.parent;if(k&&x.from==v-2&&((b=Rme(f.doc,k.firstChild,v))||((p=k.firstChild)===null||p===void 0?void 0:p.name)=="JSXFragmentTag")){let C=`${b}>`;return{range:Tr.cursor(v+C.length,-1),changes:{from:v,insert:C}}}}else if(a==">"){let x=HDe(y);if(x&&!/^\/?>|^<\//.test(f.doc.sliceString(v,v+2))&&(b=Rme(f.doc,x,v)))return{range:u,changes:{from:v,insert:``}}}}return{range:u}});return m.changes.empty?!1:(t.dispatch([d,f.update(m,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),xD=["_blank","_self","_top","_parent"],loe=["ascii","utf-8","utf-16","latin1","latin1"],coe=["get","post","put","delete"],uoe=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],tg=["true","false"],vs={},YDe={a:{attrs:{href:null,ping:null,type:null,media:null,target:xD,hreflang:null}},abbr:vs,address:vs,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:vs,aside:vs,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:vs,base:{attrs:{href:null,target:xD}},bdi:vs,bdo:vs,blockquote:{attrs:{cite:null}},body:vs,br:vs,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:uoe,formmethod:coe,formnovalidate:["novalidate"],formtarget:xD,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:vs,center:vs,cite:vs,code:vs,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:vs,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:vs,div:vs,dl:vs,dt:vs,em:vs,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:vs,figure:vs,footer:vs,form:{attrs:{action:null,name:null,"accept-charset":loe,autocomplete:["on","off"],enctype:uoe,method:coe,novalidate:["novalidate"],target:xD}},h1:vs,h2:vs,h3:vs,h4:vs,h5:vs,h6:vs,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:vs,hgroup:vs,hr:vs,html:{attrs:{manifest:null}},i:vs,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:uoe,formmethod:coe,formnovalidate:["novalidate"],formtarget:xD,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:vs,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:vs,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:vs,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:loe,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:vs,noscript:vs,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:vs,param:{attrs:{name:null,value:null}},pre:vs,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:vs,rt:vs,ruby:vs,samp:vs,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:loe}},section:vs,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:vs,source:{attrs:{src:null,type:null,media:null}},span:vs,strong:vs,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:vs,summary:vs,sup:vs,table:vs,tbody:vs,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:vs,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:vs,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:vs,time:{attrs:{datetime:null}},title:vs,tr:vs,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:vs,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:vs},POe={accesskey:null,class:null,contenteditable:tg,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:tg,autocorrect:tg,autocapitalize:tg,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":tg,"aria-autocomplete":["inline","list","both","none"],"aria-busy":tg,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":tg,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":tg,"aria-hidden":tg,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":tg,"aria-multiselectable":tg,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":tg,"aria-relevant":null,"aria-required":tg,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},MOe="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of MOe)POe[t]=null;class C${constructor(e,r){this.tags=Object.assign(Object.assign({},YDe),e),this.globalAttrs=Object.assign(Object.assign({},POe),r),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}C$.default=new C$;function pM(t,e,r=t.length){if(!e)return"";let a=e.firstChild,i=a&&a.getChild("TagName");return i?t.sliceString(i.from,Math.min(i.to,r)):""}function vM(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function EOe(t,e,r){let a=r.tags[pM(t,vM(e))];return(a==null?void 0:a.children)||r.allTags}function ble(t,e){let r=[];for(let a=vM(e);a&&!a.type.isTop;a=vM(a.parent)){let i=pM(t,a);if(i&&a.lastChild.name=="CloseTag")break;i&&r.indexOf(i)<0&&(e.name=="EndTag"||e.from>=a.firstChild.to)&&r.push(i)}return r}const _Oe=/^[:\-\.\w\u00b7-\uffff]*$/;function Dme(t,e,r,a,i){let d=/\s*>/.test(t.sliceDoc(i,i+5))?"":">",f=vM(r,!0);return{from:a,to:i,options:EOe(t.doc,f,e).map(m=>({label:m,type:"type"})).concat(ble(t.doc,r).map((m,u)=>({label:"/"+m,apply:"/"+m+d,type:"type",boost:99-u}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function $me(t,e,r,a){let i=/\s*>/.test(t.sliceDoc(a,a+5))?"":">";return{from:r,to:a,options:ble(t.doc,e).map((d,f)=>({label:d,apply:d+i,type:"type",boost:99-f})),validFor:_Oe}}function XDe(t,e,r,a){let i=[],d=0;for(let f of EOe(t.doc,r,e))i.push({label:"<"+f,type:"type"});for(let f of ble(t.doc,r))i.push({label:"",type:"type",boost:99-d++});return{from:a,to:a,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function GDe(t,e,r,a,i){let d=vM(r),f=d?e.tags[pM(t.doc,d)]:null,m=f&&f.attrs?Object.keys(f.attrs):[],u=f&&f.globalAttrs===!1?m:m.length?m.concat(e.globalAttrNames):e.globalAttrNames;return{from:a,to:i,options:u.map(p=>({label:p,type:"property"})),validFor:_Oe}}function jDe(t,e,r,a,i){var d;let f=(d=r.parent)===null||d===void 0?void 0:d.getChild("AttributeName"),m=[],u;if(f){let p=t.sliceDoc(f.from,f.to),v=e.globalAttrs[p];if(!v){let y=vM(r),b=y?e.tags[pM(t.doc,y)]:null;v=(b==null?void 0:b.attrs)&&b.attrs[p]}if(v){let y=t.sliceDoc(a,i).toLowerCase(),b='"',x='"';/^['"]/.test(y)?(u=y[0]=='"'?/^[^"]*$/:/^[^']*$/,b="",x=t.sliceDoc(i,i+1)==y[0]?"":y[0],y=y.slice(1),a++):u=/^[^\s<>='"]*$/;for(let k of v)m.push({label:k,apply:b+k+x,type:"constant"})}}return{from:a,to:i,options:m,validFor:u}}function ROe(t,e){let{state:r,pos:a}=e,i=rl(r).resolveInner(a,-1),d=i.resolve(a);for(let f=a,m;d==i&&(m=i.childBefore(f));){let u=m.lastChild;if(!u||!u.type.isError||u.fromROe(a,i)}const JDe=ey.parser.configure({top:"SingleExpression"}),DOe=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:wOe.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:TOe.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:COe.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:JDe},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:ey.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:UH.parser}],$Oe=[{name:"style",parser:UH.parser.configure({top:"Styles"})}].concat(MOe.map(t=>({name:t,parser:ey.parser}))),LOe=CS.define({name:"html",parser:VRe.configure({props:[BC.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].lengtht.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:""}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),YZ=LOe.configure({wrap:hOe(DOe,$Oe)});function e$e(t={}){let e="",r;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(r=hOe((t.nestedLanguages||[]).concat(DOe),(t.nestedAttributes||[]).concat($Oe)));let a=r?LOe.configure({wrap:r,dialect:e}):e?YZ.configure({dialect:e}):YZ;return new DC(a,[YZ.data.of({autocomplete:KDe(t)}),t.autoCloseTags!==!1?t$e:[],ZDe().support,pDe().support])}const Lme=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),t$e=Xo.inputHandler.of((t,e,r,a,i)=>{if(t.composing||t.state.readOnly||e!=r||a!=">"&&a!="/"||!YZ.isActiveAt(t.state,e,-1))return!1;let d=i(),{state:f}=d,m=f.changeByRange(u=>{var p,v,y;let b=f.doc.sliceString(u.from-1,u.to)==a,{head:x}=u,k=rl(f).resolveInner(x-1,-1),C;if((k.name=="TagName"||k.name=="StartTag")&&(k=k.parent),b&&a==">"&&k.name=="OpenTag"){if(((v=(p=k.parent)===null||p===void 0?void 0:p.lastChild)===null||v===void 0?void 0:v.name)!="CloseTag"&&(C=pM(f.doc,k.parent,x))&&!Lme.has(C)){let w=x+(f.doc.sliceString(x,x+1)===">"?1:0),T=``;return{range:u,changes:{from:x,to:w,insert:T}}}}else if(b&&a=="/"&&k.name=="IncompleteCloseTag"){let w=k.parent;if(k.from==x-2&&((y=w.lastChild)===null||y===void 0?void 0:y.name)!="CloseTag"&&(C=pM(f.doc,w,x))&&!Lme.has(C)){let T=x+(f.doc.sliceString(x,x+1)===">"?1:0),R=`${C}>`;return{range:Tr.cursor(x+R.length,-1),changes:{from:x,to:T,insert:R}}}}return{range:u}});return m.changes.empty?!1:(t.dispatch([d,f.update(m,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),IOe=nie({commentTokens:{block:{open:""}}}),NOe=new ua,BOe=H7e.configure({props:[DS.add(t=>!t.is("Block")||t.is("Document")||Kse(t)!=null?void 0:(e,r)=>({from:r.doc.lineAt(e.from).to,to:e.to})),NOe.add(Kse),BC.add({Document:()=>null}),CC.add({Document:IOe})]});function Kse(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function n$e(t,e){let r=t;for(;;){let a=r.nextSibling,i;if(!a||(i=Kse(a.type))!=null&&i<=e)break;r=a}return r.to}const r$e=n0e.of((t,e,r)=>{for(let a=rl(t).resolveInner(r,-1);a&&!(a.fromr)return{from:r,to:d}}return null});function Ole(t){return new Op(IOe,t,[r$e],"markdown")}const o$e=Ole(BOe),s$e=BOe.configure([tRe,rRe,nRe,oRe,{props:[DS.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),QOe=Ole(s$e);function a$e(t,e){return r=>{if(r&&t){let a=null;if(r=/\S*/.exec(r)[0],typeof t=="function"?a=t(r):a=fH.matchLanguageName(t,r,!0),a instanceof fH)return a.support?a.support.language.parser:c$.getSkippingParser(a.load());if(a)return a.parser}return e?e.parser:null}}class SZ{constructor(e,r,a,i,d,f,m){this.node=e,this.from=r,this.to=a,this.spaceBefore=i,this.spaceAfter=d,this.type=f,this.item=m}blank(e,r=!0){let a=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;a.length0;i--)a+=" ";return a+(r?this.spaceAfter:"")}}marker(e,r){let a=this.node.name=="OrderedList"?String(+VOe(this.item,e)[2]+r):"";return this.spaceBefore+a+this.type+this.spaceAfter}}function FOe(t,e){let r=[];for(let i=t;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&r.push(i);let a=[];for(let i=r.length-1;i>=0;i--){let d=r[i],f,m=e.lineAt(d.from),u=d.from-m.from;if(d.name=="FencedCode")a.push(new SZ(d,u,u,"","","",null));else if(d.name=="Blockquote"&&(f=/^ *>( ?)/.exec(m.text.slice(u))))a.push(new SZ(d,u,u+f[0].length,"",f[1],">",null));else if(d.name=="ListItem"&&d.parent.name=="OrderedList"&&(f=/^( *)\d+([.)])( *)/.exec(m.text.slice(u)))){let p=f[3],v=f[0].length;p.length>=4&&(p=p.slice(0,p.length-4),v-=4),a.push(new SZ(d.parent,u,u+v,f[1],p,f[2],d))}else if(d.name=="ListItem"&&d.parent.name=="BulletList"&&(f=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(m.text.slice(u)))){let p=f[4],v=f[0].length;p.length>4&&(p=p.slice(0,p.length-4),v-=4);let y=f[2];f[3]&&(y+=f[3].replace(/[xX]/," ")),a.push(new SZ(d.parent,u,u+v,f[1],p,y,d))}}return a}function VOe(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function foe(t,e,r,a=0){for(let i=-1,d=t;;){if(d.name=="ListItem"){let m=VOe(d,e),u=+m[2];if(i>=0){if(u!=i+1)return;r.push({from:d.from+m[1].length,to:d.from+m[0].length,insert:String(i+2+a)})}i=u}let f=d.nextSibling;if(!f)break;d=f}}function Jse(t,e){let r=/^[ \t]*/.exec(t)[0].length;if(!r||e.facet(SM)!=" ")return t;let a=Fv(t,4,r),i="";for(let d=a;d>0;)d>=4?(i+=" ",d-=4):(i+=" ",d--);return i+t.slice(r)}const i$e=({state:t,dispatch:e})=>{let r=rl(t),{doc:a}=t,i=null,d=t.changeByRange(f=>{if(!f.empty||!QOe.isActiveAt(t,f.from))return i={range:f};let m=f.from,u=a.lineAt(m),p=FOe(r.resolveInner(m,-1),a);for(;p.length&&p[p.length-1].from>m-u.from;)p.pop();if(!p.length)return i={range:f};let v=p[p.length-1];if(v.to-v.spaceAfter.length>m-u.from)return i={range:f};let y=m>=v.to-v.spaceAfter.length&&!/\S/.test(u.text.slice(v.to));if(v.item&&y)if(v.node.firstChild.to>=m||u.from>0&&!/[^\s>]/.test(a.lineAt(u.from-1).text)){let w=p.length>1?p[p.length-2]:null,T,R="";w&&w.item?(T=u.from+w.from,R=w.marker(a,1)):T=u.from+(w?w.to:0);let M=[{from:T,to:m,insert:R}];return v.node.name=="OrderedList"&&foe(v.item,a,M,-2),w&&w.node.name=="OrderedList"&&foe(w.item,a,M),{range:Tr.cursor(T+R.length),changes:M}}else{let w="";for(let T=0,R=p.length-2;T<=R;T++)w+=p[T].blank(T\s*$/.exec(w.text);if(T&&T.index==v.from){let R=t.changes([{from:w.from+T.index,to:w.to},{from:u.from+v.from,to:u.to}]);return{range:f.map(R),changes:R}}}let b=[];v.node.name=="OrderedList"&&foe(v.item,a,b);let x=v.item&&v.item.from]*/.exec(u.text)[0].length>=v.to)for(let w=0,T=p.length-1;w<=T;w++)k+=w==T&&!x?p[w].marker(a,1):p[w].blank(wu.from&&/\s/.test(u.text.charAt(C-u.from-1));)C--;return k=Jse(k,t),b.push({from:C,to:m,insert:t.lineBreak+k}),{range:Tr.cursor(C+k.length+1),changes:b}});return i?!1:(e(t.update(d,{scrollIntoView:!0,userEvent:"input"})),!0)};function Ime(t){return t.name=="QuoteMark"||t.name=="ListMark"}function l$e(t,e){let r=t.resolveInner(e,-1),a=e;Ime(r)&&(a=r.from,r=r.parent);for(let i;i=r.childBefore(a);)if(Ime(i))a=i.from;else if(i.name=="OrderedList"||i.name=="BulletList")r=i.lastChild,a=r.to;else break;return r}const c$e=({state:t,dispatch:e})=>{let r=rl(t),a=null,i=t.changeByRange(d=>{let f=d.from,{doc:m}=t;if(d.empty&&QOe.isActiveAt(t,d.from)){let u=m.lineAt(f),p=FOe(l$e(r,f),m);if(p.length){let v=p[p.length-1],y=v.to-v.spaceAfter.length+(v.spaceAfter?1:0);if(f-u.from>y&&!/\S/.test(u.text.slice(y,f-u.from)))return{range:Tr.cursor(u.from+y),changes:{from:u.from+y,to:f}};if(f-u.from==y&&(!v.item||u.from<=v.item.from||!/\S/.test(u.text.slice(0,v.to)))){let b=u.from+v.from;if(v.item&&v.node.from[t.$devMode?(so(),Ts(cg,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:Yr(()=>[lt(Nv,{cols:11},{default:Yr(()=>[m$e]),_:1}),lt(Nv,{cols:1,class:"d-flex justify-end align-center py-0"},{default:Yr(()=>[lt(qa,{small:"",class:"mx-1",color:"primary",onClick:d.saveCell},{default:Yr(()=>[gi(" mdi-content-save ")]),_:1},8,["onClick"]),lt(qa,{small:"",class:"mx-1",color:"error",onClick:d.deleteCell},{default:Yr(()=>[gi(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):Nu("",!0),t.$devMode?(so(),Ts(f,{key:1,modelValue:r.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=m=>r.cellData.code=m),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):Nu("",!0),kd("div",{class:"markdown-content",innerHTML:d.compiledMarkdown},null,8,g$e)]),_:1}),t.$devMode?(so(),Ts(BS,{key:0,transition:"scale-transition"},{activator:Yr(({props:m})=>[lt(Nc,rs(m,{block:""}),{default:Yr(()=>[lt(cg,null,{default:Yr(()=>[lt(qa,{color:"primary"},{default:Yr(()=>[gi("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:Yr(()=>[lt(NS,null,{default:Yr(()=>[(so(!0),La(Go,null,Hf(i.items,(m,u)=>(so(),Ts(mg,{key:u},{default:Yr(()=>[lt(Nc,{block:"",onClick:p=>d.createCell(m.title)},{default:Yr(()=>[gi(yp(m.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})):Nu("",!0)],64)}const v$e=ny(h$e,[["render",p$e]]);var y$e={exports:{}};(function(t){(function(){var e=function(n){if(n===null)return"null";if(n===void 0)return"undefined";var s=typeof n;return s==="object"&&(Array.prototype.isPrototypeOf(n)||n.constructor&&n.constructor.name==="Array")?"array":s==="object"&&(String.prototype.isPrototypeOf(n)||n.constructor&&n.constructor.name==="String")?"string":s},r=function(n){return["undefined","boolean","number","string","function","xml","null"].indexOf(n)!==-1},a=function(n,s){var l=Array.prototype.slice.call(n);return l.sort(s)},i=function(n,s){return d(function(l,h){return n.eq(s(l),s(h))})},d=function(n){return{eq:n}},f=d(function(n,s){return n===s}),m=f,u=function(n){return d(function(s,l){if(s.length!==l.length)return!1;for(var h=s.length,O=0;O{var h;return l(n,s.prototype)?!0:((h=n.constructor)===null||h===void 0?void 0:h.name)===s.name},k=n=>{const s=typeof n;return n===null?"null":s==="object"&&Array.isArray(n)?"array":s==="object"&&x(n,String,(l,h)=>h.isPrototypeOf(l))?"string":s},C=n=>s=>k(s)===n,w=n=>s=>typeof s===n,T=n=>s=>n===s,R=(n,s)=>I(n)&&x(n,s,(l,h)=>b(l)===h),M=C("string"),I=C("object"),V=n=>R(n,Object),N=C("array"),F=T(null),z=w("boolean"),U=T(void 0),Q=n=>n==null,B=n=>!Q(n),E=w("function"),W=w("number"),Y=(n,s)=>{if(N(n)){for(let l=0,h=n.length;l{},L=(n,s)=>(...l)=>n(s.apply(null,l)),me=(n,s)=>l=>n(s(l)),ae=n=>()=>n,q=n=>n,fe=(n,s)=>n===s;function ee(n,...s){return(...l)=>{const h=s.concat(l);return n.apply(null,h)}}const be=n=>s=>!n(s),Te=n=>()=>{throw new Error(n)},Be=n=>n(),ge=n=>{n()},ne=ae(!1),pe=ae(!0);class G{constructor(s,l){this.tag=s,this.value=l}static some(s){return new G(!0,s)}static none(){return G.singletonNone}fold(s,l){return this.tag?l(this.value):s()}isSome(){return this.tag}isNone(){return!this.tag}map(s){return this.tag?G.some(s(this.value)):G.none()}bind(s){return this.tag?s(this.value):G.none()}exists(s){return this.tag&&s(this.value)}forall(s){return!this.tag||s(this.value)}filter(s){return!this.tag||s(this.value)?this:G.none()}getOr(s){return this.tag?this.value:s}or(s){return this.tag?this:s}getOrThunk(s){return this.tag?this.value:s()}orThunk(s){return this.tag?this:s()}getOrDie(s){if(this.tag)return this.value;throw new Error(s??"Called getOrDie on None")}static from(s){return B(s)?G.some(s):G.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(s){this.tag&&s(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}G.singletonNone=new G(!1);const Oe=Array.prototype.slice,xe=Array.prototype.indexOf,Le=Array.prototype.push,ke=(n,s)=>xe.call(n,s),$e=(n,s)=>{const l=ke(n,s);return l===-1?G.none():G.some(l)},Ze=(n,s)=>ke(n,s)>-1,De=(n,s)=>{for(let l=0,h=n.length;l{const l=n.length,h=new Array(l);for(let O=0;O{for(let l=0,h=n.length;l{for(let l=n.length-1;l>=0;l--){const h=n[l];s(h,l)}},te=(n,s)=>{const l=[],h=[];for(let O=0,P=n.length;O{const l=[];for(let h=0,O=n.length;h(ye(n,(h,O)=>{l=s(l,h,O)}),l),oe=(n,s,l)=>(re(n,(h,O)=>{l=s(l,h,O)}),l),Se=(n,s,l)=>{for(let h=0,O=n.length;hSe(n,s,ne),Ce=(n,s)=>{for(let l=0,h=n.length;l{const s=[];for(let l=0,h=n.length;lQe(Ie(n,s)),Xe=(n,s)=>{for(let l=0,h=n.length;l{const s=Oe.call(n,0);return s.reverse(),s},pt=(n,s)=>se(n,l=>!Ze(s,l)),Ye=(n,s)=>{const l={};for(let h=0,O=n.length;h{const l=Oe.call(n,0);return l.sort(s),l},et=(n,s)=>s>=0&&set(n,0),ft=n=>et(n,n.length-1),tt=E(Array.from)?Array.from:n=>Oe.call(n),wt=(n,s)=>{for(let l=0;l{const l=[],h=E(s)?O=>De(l,P=>s(P,O)):O=>Ze(l,O);for(let O=0,P=n.length;O{const l=Gt(n);for(let h=0,O=l.length;hEn(n,(l,h)=>({k:h,v:s(l,h)})),En=(n,s)=>{const l={};return Bt(n,(h,O)=>{const P=s(h,O);l[P.k]=P.v}),l},ln=n=>(s,l)=>{n[l]=s},Yn=(n,s,l,h)=>{Bt(n,(O,P)=>{(s(O,P)?l:h)(O,P)})},an=(n,s)=>{const l={},h={};return Yn(n,s,ln(l),ln(h)),{t:l,f:h}},wn=(n,s)=>{const l={};return Yn(n,s,ln(l),ie),l},Xn=(n,s)=>{const l=[];return Bt(n,(h,O)=>{l.push(s(h,O))}),l},Un=n=>Xn(n,q),Sn=(n,s)=>it(n,s)?G.from(n[s]):G.none(),it=(n,s)=>Nt.call(n,s),ut=(n,s)=>it(n,s)&&n[s]!==void 0&&n[s]!==null,xt=(n,s,l=y)=>v(l).eq(n,s),gt=n=>{const s={};return re(n,l=>{s[l]={}}),Gt(s)},Dt=n=>n.length!==void 0,He=Array.isArray,at=n=>{if(He(n))return n;{const s=[];for(let l=0,h=n.length;l{if(!n)return!1;if(l=l||n,Dt(n)){for(let h=0,O=n.length;h{const l=[];return dt(n,(h,O)=>{l.push(s(h,O,n))}),l},Tt=(n,s)=>{const l=[];return dt(n,(h,O)=>{(!s||s(h,O,n))&&l.push(h)}),l},Pt=(n,s)=>{if(n){for(let l=0,h=n.length;l{let O=U(l)?n[0]:l;for(let P=0;P{for(let h=0,O=n.length;hn[n.length-1],Rt=n=>{let s=!1,l;return(...h)=>(s||(s=!0,l=n.apply(null,h)),l)},fn=(n,s,l,h)=>{const O=n.isiOS()&&/ipad/i.test(l)===!0,P=n.isiOS()&&!O,Z=n.isiOS()||n.isAndroid(),J=Z||h("(pointer:coarse)"),he=O||!P&&Z&&h("(min-device-width:768px)"),_e=P||Z&&!he,Ge=s.isSafari()&&n.isiOS()&&/safari/i.test(l)===!1,qe=!_e&&!he&&!Ge;return{isiPad:ae(O),isiPhone:ae(P),isTablet:ae(he),isPhone:ae(_e),isTouch:ae(J),isAndroid:n.isAndroid,isiOS:n.isiOS,isWebView:ae(Ge),isDesktop:ae(qe)}},Hn=(n,s)=>{for(let l=0;l{const l=Hn(n,s);if(!l)return{major:0,minor:0};const h=O=>Number(s.replace(l,"$"+O));return vr(h(1),h(2))},Er=(n,s)=>{const l=String(s).toLowerCase();return n.length===0?zt():nr(n,l)},zt=()=>vr(0,0),vr=(n,s)=>({major:n,minor:s}),Wn={nu:vr,detect:Er,unknown:zt},Br=(n,s)=>wt(s.brands,l=>{const h=l.brand.toLowerCase();return le(n,O=>{var P;return h===((P=O.brand)===null||P===void 0?void 0:P.toLowerCase())}).map(O=>({current:O.name,version:Wn.nu(parseInt(l.version,10),0)}))}),kr=(n,s)=>{const l=String(s).toLowerCase();return le(n,h=>h.search(l))},or=(n,s)=>kr(n,s).map(l=>{const h=Wn.detect(l.versionRegexes,s);return{current:l.name,version:h}}),jr=(n,s)=>kr(n,s).map(l=>{const h=Wn.detect(l.versionRegexes,s);return{current:l.name,version:h}}),_r=(n,s)=>n.substring(s),Rn=(n,s,l)=>s===""||n.length>=s.length&&n.substr(l,l+s.length)===s,xr=(n,s)=>Sr(n,s)?_r(n,s.length):n,sr=(n,s,l=0,h)=>{const O=n.indexOf(s,l);return O!==-1?U(h)?!0:O+s.length<=h:!1},Sr=(n,s)=>Rn(n,s,0),ao=(n,s)=>Rn(n,s,n.length-s.length),Oo=n=>s=>s.replace(n,""),wr=Oo(/^\s+|\s+$/g),Fe=Oo(/^\s+/g),Ee=Oo(/\s+$/g),St=n=>n.length>0,Ct=n=>!St(n),Lt=(n,s)=>s<=0?"":new Array(s+1).join(n),Ft=(n,s=10)=>{const l=parseInt(n,s);return isNaN(l)?G.none():G.some(l)},Ht=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,$t=n=>s=>sr(s,n),Mt=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:n=>sr(n,"edge/")&&sr(n,"chrome")&&sr(n,"safari")&&sr(n,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ht],search:n=>sr(n,"chrome")&&!sr(n,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:n=>sr(n,"msie")||sr(n,"trident")},{name:"Opera",versionRegexes:[Ht,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:$t("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:$t("firefox")},{name:"Safari",versionRegexes:[Ht,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:n=>(sr(n,"safari")||sr(n,"mobile/"))&&sr(n,"applewebkit")}],en=[{name:"Windows",search:$t("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:n=>sr(n,"iphone")||sr(n,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:$t("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:$t("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:$t("linux"),versionRegexes:[]},{name:"Solaris",search:$t("sunos"),versionRegexes:[]},{name:"FreeBSD",search:$t("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:$t("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],un={browsers:ae(Mt),oses:ae(en)},Jt="Edge",rn="Chromium",Tn="IE",On="Opera",pn="Firefox",Jn="Safari",Fn=()=>zr({current:void 0,version:Wn.unknown()}),zr=n=>{const s=n.current,l=n.version,h=O=>()=>s===O;return{current:s,version:l,isEdge:h(Jt),isChromium:h(rn),isIE:h(Tn),isOpera:h(On),isFirefox:h(pn),isSafari:h(Jn)}},dr={unknown:Fn,nu:zr,edge:ae(Jt),chromium:ae(rn),ie:ae(Tn),opera:ae(On),firefox:ae(pn),safari:ae(Jn)},Hr="Windows",ar="iOS",ur="Android",qr="Linux",to="macOS",ko="Solaris",Es="FreeBSD",So="ChromeOS",Ko=()=>ds({current:void 0,version:Wn.unknown()}),ds=n=>{const s=n.current,l=n.version,h=O=>()=>s===O;return{current:s,version:l,isWindows:h(Hr),isiOS:h(ar),isAndroid:h(ur),isMacOS:h(to),isLinux:h(qr),isSolaris:h(ko),isFreeBSD:h(Es),isChromeOS:h(So)}},qs={unknown:Ko,nu:ds,windows:ae(Hr),ios:ae(ar),android:ae(ur),linux:ae(qr),macos:ae(to),solaris:ae(ko),freebsd:ae(Es),chromeos:ae(So)},Xs={detect:(n,s,l)=>{const h=un.browsers(),O=un.oses(),P=s.bind(he=>Br(h,he)).orThunk(()=>or(h,n)).fold(dr.unknown,dr.nu),Z=jr(O,n).fold(qs.unknown,qs.nu),J=fn(Z,P,n,l);return{browser:P,os:Z,deviceType:J}}},Wa=n=>window.matchMedia(n).matches;let vc=Rt(()=>Xs.detect(navigator.userAgent,G.from(navigator.userAgentData),Wa));const ii=()=>vc(),tu=navigator.userAgent,Na=ii(),Js=Na.browser,ya=Na.os,ra=Na.deviceType,nu=tu.indexOf("Windows Phone")!==-1,Dr={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Js.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Js.isIE(),windowsPhone:nu,browser:{current:Js.current,version:Js.version,isChromium:Js.isChromium,isEdge:Js.isEdge,isFirefox:Js.isFirefox,isIE:Js.isIE,isOpera:Js.isOpera,isSafari:Js.isSafari},os:{current:ya.current,version:ya.version,isAndroid:ya.isAndroid,isChromeOS:ya.isChromeOS,isFreeBSD:ya.isFreeBSD,isiOS:ya.isiOS,isLinux:ya.isLinux,isMacOS:ya.isMacOS,isSolaris:ya.isSolaris,isWindows:ya.isWindows},deviceType:{isDesktop:ra.isDesktop,isiPad:ra.isiPad,isiPhone:ra.isiPhone,isPhone:ra.isPhone,isTablet:ra.isTablet,isTouch:ra.isTouch,isWebView:ra.isWebView}},yc=/^\s*|\s*$/g,oa=n=>Q(n)?"":(""+n).replace(yc,""),Ri=(n,s)=>s?s==="array"&&He(n)?!0:typeof n===s:n!==void 0,Md=(n,s,l={})=>{const h=M(n)?n.split(s||","):n||[];let O=h.length;for(;O--;)l[h[O]]={};return l},sa=it,bu=(n,...s)=>{for(let l=0;ls.call(h,O,P,l)===!1?!1:(Ed(O,s,l,h),!0)))},fr={trim:oa,isArray:He,is:Ri,toArray:at,makeMap:Md,each:dt,map:mt,grep:Tt,inArray:Pt,hasOwn:sa,extend:bu,walk:Ed,resolve:(n,s=window)=>{const l=n.split(".");for(let h=0,O=l.length;hN(n)?n:n===""?[]:mt(n.split(s||","),oa),_addCacheSuffix:n=>{const s=Dr.cacheSuffix;return s&&(n+=(n.indexOf("?")===-1?"?":"&")+s),n}},Qa=(n,s,l=fe)=>n.exists(h=>l(h,s)),xi=(n,s,l=fe)=>Fa(n,s,l).getOr(n.isNone()&&s.isNone()),za=n=>{const s=[],l=h=>{s.push(h)};for(let h=0;hn.isSome()&&s.isSome()?G.some(l(n.getOrDie(),s.getOrDie())):G.none(),yl=(n,s,l,h)=>n.isSome()&&s.isSome()&&l.isSome()?G.some(h(n.getOrDie(),s.getOrDie(),l.getOrDie())):G.none(),Zo=(n,s)=>n?G.some(s):G.none(),li=typeof window<"u"?window:Function("return this;")(),Ka=(n,s)=>{let l=s??li;for(let h=0;h{const l=n.split(".");return Ka(l,s)},Za=(n,s)=>Gf(n,s),Vu=(n,s)=>{const l=Za(n,s);if(l==null)throw new Error(n+" not available on this browser");return l},zu=Object.getPrototypeOf,_d=n=>Vu("HTMLElement",n),Is=n=>{const s=Gf("ownerDocument.defaultView",n);return I(n)&&(_d(s).prototype.isPrototypeOf(n)||/^HTML\w*Element$/.test(zu(n).constructor.name))},Rd=8,Fc=9,Cl=11,mh=1,lm=3,Vs=n=>n.dom.nodeName.toLowerCase(),Si=n=>n.dom.nodeType,Tf=n=>s=>Si(s)===n,QS=n=>Si(n)===Rd||Vs(n)==="#comment",Ya=n=>kl(n)&&Is(n.dom),kl=Tf(mh),Zi=Tf(lm),PO=Tf(Fc),Np=Tf(Cl),xu=n=>s=>kl(s)&&Vs(s)===n,Zu=(n,s,l)=>{if(M(l)||z(l)||W(l))n.setAttribute(s,l+"");else throw console.error("Invalid call to Attribute.set. Key ",s,":: Value ",l,":: Element ",n),new Error("Attribute value was not simple")},Ra=(n,s,l)=>{Zu(n.dom,s,l)},Su=(n,s)=>{const l=n.dom;Bt(s,(h,O)=>{Zu(l,O,h)})},Al=(n,s)=>{const l=n.dom.getAttribute(s);return l===null?void 0:l},bc=(n,s)=>G.from(Al(n,s)),Cf=(n,s)=>{const l=n.dom;return l&&l.hasAttribute?l.hasAttribute(s):!1},ci=(n,s)=>{n.dom.removeAttribute(s)},kf=n=>{const s=n.dom.attributes;return s==null||s.length===0},Bp=n=>oe(n.dom.attributes,(s,l)=>(s[l.name]=l.value,s),{}),Qp=(n,s)=>{const l=Al(n,s);return l===void 0||l===""?[]:l.split(" ")},ly=(n,s,l)=>{const O=Qp(n,s).concat([l]);return Ra(n,s,O.join(" ")),!0},Xv=(n,s,l)=>{const h=se(Qp(n,s),O=>O!==l);return h.length>0?Ra(n,s,h.join(" ")):ci(n,s),!1},Af=n=>n.dom.classList!==void 0,Fp=n=>Qp(n,"class"),Oc=(n,s)=>ly(n,"class",s),Gv=(n,s)=>Xv(n,"class",s),cy=(n,s)=>Ze(Fp(n),s)?Gv(n,s):Oc(n,s),cm=(n,s)=>{Af(n)?n.dom.classList.add(s):Oc(n,s)},uy=n=>{(Af(n)?n.dom.classList:Fp(n)).length===0&&ci(n,"class")},um=(n,s)=>{Af(n)?n.dom.classList.remove(s):Gv(n,s),uy(n)},MO=(n,s)=>{const l=Af(n)?n.dom.classList.toggle(s):cy(n,s);return uy(n),l},gh=(n,s)=>Af(n)&&n.dom.classList.contains(s),EO=(n,s)=>{const h=(s||document).createElement("div");if(h.innerHTML=n,!h.hasChildNodes()||h.childNodes.length>1){const O="HTML does not have a single root node";throw console.error(O,n),new Error(O)}return fm(h.childNodes[0])},_O=(n,s)=>{const h=(s||document).createElement(n);return fm(h)},RO=(n,s)=>{const h=(s||document).createTextNode(n);return fm(h)},fm=n=>{if(n==null)throw new Error("Node cannot be null or undefined");return{dom:n}},Yt={fromHtml:EO,fromTag:_O,fromText:RO,fromDom:fm,fromPoint:(n,s,l)=>G.from(n.dom.elementFromPoint(s,l)).map(fm)},dm=(n,s)=>{const l=[],h=P=>(l.push(P),s(P));let O=s(n);do O=O.bind(h);while(O.isSome());return l},Hu=(n,s)=>{const l=n.dom;if(l.nodeType!==mh)return!1;{const h=l;if(h.matches!==void 0)return h.matches(s);if(h.msMatchesSelector!==void 0)return h.msMatchesSelector(s);if(h.webkitMatchesSelector!==void 0)return h.webkitMatchesSelector(s);if(h.mozMatchesSelector!==void 0)return h.mozMatchesSelector(s);throw new Error("Browser lacks native selectors")}},jv=n=>n.nodeType!==mh&&n.nodeType!==Fc&&n.nodeType!==Cl||n.childElementCount===0,Vp=(n,s)=>{const l=s===void 0?document:s.dom;return jv(l)?[]:Ie(l.querySelectorAll(n),Yt.fromDom)},FS=(n,s)=>{const l=s===void 0?document:s.dom;return jv(l)?G.none():G.from(l.querySelector(n)).map(Yt.fromDom)},Gs=(n,s)=>n.dom===s.dom,tc=(n,s)=>{const l=n.dom,h=s.dom;return l===h?!1:l.contains(h)},jf=n=>Yt.fromDom(n.dom.ownerDocument),qf=n=>PO(n)?n:jf(n),dy=n=>Yt.fromDom(qf(n).dom.documentElement),vg=n=>Yt.fromDom(qf(n).dom.defaultView),ru=n=>G.from(n.dom.parentNode).map(Yt.fromDom),yg=n=>G.from(n.dom.parentElement).map(Yt.fromDom),hy=(n,s)=>{const l=E(s)?s:ne;let h=n.dom;const O=[];for(;h.parentNode!==null&&h.parentNode!==void 0;){const P=h.parentNode,Z=Yt.fromDom(P);if(O.push(Z),l(Z)===!0)break;h=P}return O},DO=n=>{const s=l=>se(l,h=>!Gs(n,h));return ru(n).map(ol).map(s).getOr([])},Uu=n=>G.from(n.dom.previousSibling).map(Yt.fromDom),zp=n=>G.from(n.dom.nextSibling).map(Yt.fromDom),my=n=>ct(dm(n,Uu)),Vc=n=>dm(n,zp),ol=n=>Ie(n.dom.childNodes,Yt.fromDom),ph=(n,s)=>{const l=n.dom.childNodes;return G.from(l[s]).map(Yt.fromDom)},bg=n=>ph(n,0),xc=n=>ph(n,n.dom.childNodes.length-1),Pl=n=>n.dom.childNodes.length,Wu=n=>n.dom.hasChildNodes(),$O=n=>{const s=n.dom.head;if(s==null)throw new Error("Head is not available yet");return Yt.fromDom(s)},Zp=n=>Np(n)&&B(n.dom.host),gy=E(Element.prototype.attachShadow)&&E(Node.prototype.getRootNode),qv=ae(gy),Pf=gy?n=>Yt.fromDom(n.dom.getRootNode()):qf,LO=n=>Zp(n)?n:$O(qf(n)),GC=n=>Zp(n)?n:Yt.fromDom(qf(n).dom.body),jC=n=>{const s=Pf(n);return Zp(s)?G.some(s):G.none()},VS=n=>Yt.fromDom(n.dom.host),Hp=n=>{if(qv()&&B(n.target)){const s=Yt.fromDom(n.target);if(kl(s)&&Kv(s)&&n.composed&&n.composedPath){const l=n.composedPath();if(l)return yt(l)}}return G.from(n.target)},Kv=n=>B(n.dom.shadowRoot),vh=n=>{const s=Zi(n)?n.dom.parentNode:n.dom;if(s==null||s.ownerDocument===null)return!1;const l=s.ownerDocument;return jC(Yt.fromDom(s)).fold(()=>l.body.contains(s),me(vh,VS))};var Ja=(n,s,l,h,O)=>n(l,h)?G.some(l):E(O)&&O(l)?G.none():s(l,h,O);const ui=(n,s,l)=>{let h=n.dom;const O=E(l)?l:ne;for(;h.parentNode;){h=h.parentNode;const P=Yt.fromDom(h);if(s(P))return G.some(P);if(O(P))break}return G.none()},wu=(n,s,l)=>Ja((O,P)=>P(O),ui,n,s,l),py=(n,s)=>{const l=n.dom;return l.parentNode?IO(Yt.fromDom(l.parentNode),h=>!Gs(n,h)&&s(h)):G.none()},IO=(n,s)=>{const l=O=>s(Yt.fromDom(O));return le(n.dom.childNodes,l).map(Yt.fromDom)},Vl=(n,s)=>{const l=h=>{for(let O=0;Oui(n,h=>Hu(h,s),l),Sc=(n,s)=>FS(s,n),Mf=(n,s,l)=>Ja((O,P)=>Hu(O,P),Og,n,s,l),vy=n=>Mf(n,"[contenteditable]"),jo=(n,s=!1)=>vh(n)?n.dom.isContentEditable:vy(n).fold(ae(s),l=>zc(l)==="true"),zc=n=>n.dom.contentEditable,yh=n=>n.style!==void 0&&E(n.style.getPropertyValue),hm=(n,s,l)=>{if(!M(l))throw console.error("Invalid call to CSS.set. Property ",s,":: Value ",l,":: Element ",n),new Error("CSS value must be a string: "+l);yh(n)&&n.style.setProperty(s,l)},yy=(n,s)=>{yh(n)&&n.style.removeProperty(s)},by=(n,s,l)=>{const h=n.dom;hm(h,s,l)},nc=(n,s)=>{const l=n.dom;Bt(s,(h,O)=>{hm(l,O,h)})},wi=(n,s)=>{const l=n.dom,O=window.getComputedStyle(l).getPropertyValue(s);return O===""&&!vh(n)?ou(l,s):O},ou=(n,s)=>yh(n)?n.style.getPropertyValue(s):"",Hi=(n,s)=>{const l=n.dom,h=ou(l,s);return G.from(h).filter(O=>O.length>0)},Oy=n=>{const s={},l=n.dom;if(yh(l))for(let h=0;h{const l=n.dom;yy(l,s),Qa(bc(n,"style").map(wr),"")&&ci(n,"style")},Ti=n=>n.dom.offsetWidth,Ui=(n,s)=>{ru(n).each(h=>{h.dom.insertBefore(s.dom,n.dom)})},Yu=(n,s)=>{zp(n).fold(()=>{ru(n).each(O=>{Ci(O,s)})},h=>{Ui(h,s)})},mm=(n,s)=>{bg(n).fold(()=>{Ci(n,s)},h=>{n.dom.insertBefore(s.dom,h.dom)})},Ci=(n,s)=>{n.dom.appendChild(s.dom)},xg=(n,s)=>{Ui(n,s),Ci(s,n)},Up=(n,s)=>{re(s,(l,h)=>{const O=h===0?n:s[h-1];Yu(O,l)})},Ta=(n,s)=>{re(s,l=>{Ci(n,l)})},bh=n=>{n.dom.textContent="",re(ol(n),s=>{Ks(s)})},Ks=n=>{const s=n.dom;s.parentNode!==null&&s.parentNode.removeChild(s)},Ef=n=>{const s=ol(n);s.length>0&&Up(n,s),Ks(n)},xy=(n,s)=>{const h=(s||document).createElement("div");return h.innerHTML=n,ol(Yt.fromDom(h))},Wp=n=>Ie(n,Yt.fromDom),hs=n=>n.dom.innerHTML,gm=(n,s)=>{const h=jf(n).dom,O=Yt.fromDom(h.createDocumentFragment()),P=xy(s,h);Ta(O,P),bh(n),Ci(n,O)},e0=n=>{const s=Yt.fromTag("div"),l=Yt.fromDom(n.dom.cloneNode(!0));return Ci(s,l),hs(s)},Yp=(n,s,l,h,O,P,Z)=>({target:n,x:s,y:l,stop:h,prevent:O,kill:P,raw:Z}),zS=n=>{const s=Yt.fromDom(Hp(n).getOr(n.target)),l=()=>n.stopPropagation(),h=()=>n.preventDefault(),O=L(h,l);return Yp(s,n.clientX,n.clientY,l,h,O,n)},ZS=(n,s)=>l=>{n(l)&&s(zS(l))},Sy=(n,s,l,h,O)=>{const P=ZS(l,h);return n.dom.addEventListener(s,P,O),{unbind:ee(t0,n,s,P,O)}},pm=(n,s,l,h)=>Sy(n,s,l,h,!1),t0=(n,s,l,h)=>{n.dom.removeEventListener(s,l,h)},vm=(n,s)=>({left:n,top:s,translate:(h,O)=>vm(n+h,s+O)}),Sg=vm,NO=n=>{const s=n.getBoundingClientRect();return Sg(s.left,s.top)},Xu=(n,s)=>n!==void 0?n:s!==void 0?s:0,BO=n=>{const s=n.dom.ownerDocument,l=s.body,h=s.defaultView,O=s.documentElement;if(l===n.dom)return Sg(l.offsetLeft,l.offsetTop);const P=Xu(h==null?void 0:h.pageYOffset,O.scrollTop),Z=Xu(h==null?void 0:h.pageXOffset,O.scrollLeft),J=Xu(O.clientTop,l.clientTop),he=Xu(O.clientLeft,l.clientLeft);return ym(n).translate(Z-he,P-J)},ym=n=>{const s=n.dom,h=s.ownerDocument.body;return h===s?Sg(h.offsetLeft,h.offsetTop):vh(n)?NO(s):Sg(0,0)},Tu=n=>{const s=n!==void 0?n.dom:document,l=s.body.scrollLeft||s.documentElement.scrollLeft,h=s.body.scrollTop||s.documentElement.scrollTop;return Sg(l,h)},n0=(n,s,l)=>{const O=(l!==void 0?l.dom:document).defaultView;O&&O.scrollTo(n,s)},wy=(n,s)=>{ii().browser.isSafari()&&E(n.dom.scrollIntoViewIfNeeded)?n.dom.scrollIntoViewIfNeeded(!1):n.dom.scrollIntoView(s)},wg=n=>{const s=n===void 0?window:n;return ii().browser.isFirefox()?G.none():G.from(s.visualViewport)},Ty=(n,s,l,h)=>({x:n,y:s,width:l,height:h,right:n+l,bottom:s+h}),Cy=n=>{const s=n===void 0?window:n,l=s.document,h=Tu(Yt.fromDom(l));return wg(s).fold(()=>{const O=s.document.documentElement,P=O.clientWidth,Z=O.clientHeight;return Ty(h.left,h.top,P,Z)},O=>Ty(Math.max(O.pageLeft,h.left),Math.max(O.pageTop,h.top),O.width,O.height))},ky=(n,s)=>se(ol(n),s),r0=(n,s)=>{let l=[];return re(ol(n),h=>{s(h)&&(l=l.concat([h])),l=l.concat(r0(h,s))}),l},sl=(n,s)=>Vp(s,n),Xp=(n,s,l)=>Og(n,s,l).isSome();class ca{constructor(s,l){this.node=s,this.rootNode=l,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(s){return this.node=this.findSibling(this.node,"firstChild","nextSibling",s),this.node}prev(s){return this.node=this.findSibling(this.node,"lastChild","previousSibling",s),this.node}prev2(s){return this.node=this.findPreviousNode(this.node,s),this.node}findSibling(s,l,h,O){if(s){if(!O&&s[l])return s[l];if(s!==this.rootNode){let P=s[h];if(P)return P;for(let Z=s.parentNode;Z&&Z!==this.rootNode;Z=Z.parentNode)if(P=Z[h],P)return P}}}findPreviousNode(s,l){if(s){const h=s.previousSibling;if(this.rootNode&&h===this.rootNode)return;if(h){if(!l){for(let P=h.lastChild;P;P=P.lastChild)if(!P.lastChild)return P}return h}const O=s.parentNode;if(O&&O!==this.rootNode)return O}}}const uo=n=>s=>!!s&&s.nodeType===n,Gu=n=>!!n&&!Object.getPrototypeOf(n),Xr=uo(1),zl=n=>Xr(n)&&Ya(Yt.fromDom(n)),HS=n=>Xr(n)&&n.namespaceURI==="http://www.w3.org/2000/svg",Dd=n=>{const s=n.toLowerCase();return l=>B(l)&&l.nodeName.toLowerCase()===s},vi=n=>{const s=n.map(l=>l.toLowerCase());return l=>{if(l&&l.nodeName){const h=l.nodeName.toLowerCase();return Ze(s,h)}return!1}},$d=(n,s)=>{const l=s.toLowerCase().split(" ");return h=>{if(Xr(h)){const O=h.ownerDocument.defaultView;if(O)for(let P=0;Ps=>Xr(s)&&s.hasAttribute(n),al=(n,s)=>l=>Xr(l)&&l.getAttribute(n)===s,_f=n=>Xr(n)&&n.hasAttribute("data-mce-bogus"),bm=n=>Xr(n)&&n.getAttribute("data-mce-bogus")==="all",ju=n=>Xr(n)&&n.tagName==="TABLE",Ay=n=>s=>!!(zl(s)&&(s.contentEditable===n||s.getAttribute("data-mce-contenteditable")===n)),o0=vi(["textarea","input"]),lr=uo(3),QO=uo(4),Ml=uo(7),Kf=uo(8),Tg=uo(9),da=uo(11),aa=Dd("br"),El=Dd("img"),Zl=Ay("true"),Os=Ay("false"),jp=vi(["td","th"]),il=vi(["td","th","caption"]),ei=vi(["video","audio","object","embed"]),qp=Dd("li"),er=Dd("details"),Zc=Dd("summary"),Cg="\uFEFF",zs=" ",Rf=n=>n===Cg,US=n=>n.replace(/\uFEFF/g,""),s0=((n,s)=>{const l=P=>{if(!n(P))throw new Error("Can only get "+s+" value of a "+s+" node");return h(P).getOr("")},h=P=>n(P)?G.from(P.dom.nodeValue):G.none();return{get:l,getOption:h,set:(P,Z)=>{if(!n(P))throw new Error("Can only set raw "+s+" value of a "+s+" node");P.dom.nodeValue=Z}}})(Zi,"text"),su=n=>s0.get(n),a0=n=>s0.getOption(n),rc=(n,s)=>s0.set(n,s),Ws=["td","th"],au=["thead","tbody","tfoot"],fi=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],ll=["li","dd","dt"],Ld=["ul","ol","dl"],Jf=["pre","script","textarea","style"],Id=n=>{let s;return l=>(s=s||Ye(n,pe),it(s,Vs(l)))},wc=n=>Vs(n)==="table",ed=n=>kl(n)&&Vs(n)==="br",Mn=Id(fi),Tc=Id(Ld),td=Id(ll),nd=Id(au),Hc=Id(Ws),Wi=Id(Jf),Di=n=>{const s=[];let l=n.dom;for(;l;)s.push(Yt.fromDom(l)),l=l.lastChild;return s},qC=n=>{const s=sl(n,"br"),l=se(Di(n).slice(-1),ed);s.length===l.length&&re(l,Ks)},Cc=()=>{const n=Yt.fromTag("br");return Ra(n,"data-mce-bogus","1"),n},D=n=>{bh(n),Ci(n,Cc())},X=(n,s)=>{xc(n).each(l=>{Uu(l).each(h=>{s.isBlock(Vs(n))&&ed(l)&&s.isBlock(Vs(h))&&Ks(l)})})},de=Cg,we=Rf,Pe=US,Re=n=>n.insertContent(de,{preserve_zwsp:!0}),Ke=Xr,We=lr,rt=n=>(We(n)&&(n=n.parentNode),Ke(n)&&n.hasAttribute("data-mce-caret")),vt=n=>We(n)&&we(n.data),bt=n=>rt(n)||vt(n),Zt=n=>n.firstChild!==n.lastChild||!aa(n.firstChild),Ut=(n,s)=>{var l;const O=((l=n.ownerDocument)!==null&&l!==void 0?l:document).createTextNode(de),P=n.parentNode;if(s){const Z=n.previousSibling;if(We(Z)){if(bt(Z))return Z;if(hn(Z))return Z.splitText(Z.data.length-1)}P==null||P.insertBefore(O,n)}else{const Z=n.nextSibling;if(We(Z)){if(bt(Z))return Z;if(tn(Z))return Z.splitText(1),Z}n.nextSibling?P==null||P.insertBefore(O,n.nextSibling):P==null||P.appendChild(O)}return O},gn=n=>{const s=n.container();return lr(s)?s.data.charAt(n.offset())===de||n.isAtStart()&&vt(s.previousSibling):!1},An=n=>{const s=n.container();return lr(s)?s.data.charAt(n.offset()-1)===de||n.isAtEnd()&&vt(s.nextSibling):!1},jt=(n,s,l)=>{var h;const P=((h=s.ownerDocument)!==null&&h!==void 0?h:document).createElement(n);P.setAttribute("data-mce-caret",l?"before":"after"),P.setAttribute("data-mce-bogus","all"),P.appendChild(Cc().dom);const Z=s.parentNode;return l?Z==null||Z.insertBefore(P,s):s.nextSibling?Z==null||Z.insertBefore(P,s.nextSibling):Z==null||Z.appendChild(P),P},tn=n=>We(n)&&n.data[0]===de,hn=n=>We(n)&&n.data[n.data.length-1]===de,_n=n=>{var s;const l=n.getElementsByTagName("br"),h=l[l.length-1];_f(h)&&((s=h.parentNode)===null||s===void 0||s.removeChild(h))},Pn=n=>n&&n.hasAttribute("data-mce-caret")?(_n(n),n.removeAttribute("data-mce-caret"),n.removeAttribute("data-mce-bogus"),n.removeAttribute("style"),n.removeAttribute("data-mce-style"),n.removeAttribute("_moz_abspos"),n):null,yn=n=>rt(n.startContainer),cr=Zl,Zr=Os,Jr=aa,Ar=lr,no=vi(["script","style","textarea"]),fo=vi(["img","input","textarea","hr","iframe","video","audio","object","embed"]),ts=vi(["table"]),xo=bt,go=n=>xo(n)?!1:Ar(n)?!no(n.parentNode):fo(n)||Jr(n)||ts(n)||ti(n),js=n=>Xr(n)&&n.getAttribute("unselectable")==="true",ti=n=>!js(n)&&Zr(n),ba=(n,s)=>{for(let l=n.parentNode;l&&l!==s;l=l.parentNode){if(ti(l))return!1;if(cr(l))return!0}return!0},Lr=n=>ti(n)?!oe(tt(n.getElementsByTagName("*")),(s,l)=>s||cr(l),!1):!1,Do=n=>fo(n)||Lr(n),ms=(n,s)=>go(n)&&ba(n,s),_s=/^[ \t\r\n]*$/,Ba=n=>_s.test(n),di=n=>{for(const s of n)if(!Rf(s))return!1;return!0},Yi=n=>" \f \v".indexOf(n)!==-1,$i=n=>n===` +`||n==="\r",Uc=(n,s)=>s=0?$i(n[s]):!1,Ki=(n,s=4,l=!0,h=!0)=>{const O=Lt(" ",s),P=n.replace(/\t/g,O);return oe(P,(J,he)=>Yi(he)||he===zs?J.pcIsSpace||J.str===""&&l||J.str.length===P.length-1&&h||Uc(P,J.str.length+1)?{pcIsSpace:!1,str:J.str+zs}:{pcIsSpace:!0,str:J.str+" "}:{pcIsSpace:$i(he),str:J.str+he},{pcIsSpace:!1,str:""}).str},kc=(n,s)=>{const l=Yt.fromDom(s),h=Yt.fromDom(n);return Xp(h,"pre,code",ee(Gs,l))},Hl=(n,s)=>lr(n)&&Ba(n.data)&&!kc(n,s),ea=n=>Xr(n)&&n.nodeName==="A"&&!n.hasAttribute("href")&&(n.hasAttribute("name")||n.hasAttribute("id")),Ku=(n,s)=>go(n)&&!Hl(n,s)||ea(n)||Df(n),Df=Gp("data-mce-bookmark"),Ul=Gp("data-mce-bogus"),Li=al("data-mce-bogus","all"),Wl=n=>yg(Yt.fromDom(n)).exists(s=>!jo(s)),Ii=(n,s)=>{let l=0;if(Ku(n,n))return!1;{let h=n.firstChild;if(!h)return!0;const O=new ca(h,n);do{if(s){if(Li(h)){h=O.next(!0);continue}if(Ul(h)){h=O.next();continue}}if(Zl(h)&&Wl(h))return!1;if(aa(h)){l++,h=O.next();continue}if(Ku(h,n))return!1;h=O.next()}while(h);return l<=1}},ta=(n,s=!0)=>Ii(n.dom,s),Ac=n=>n.toLowerCase()==="svg",Nd=n=>Ac(n.nodeName),Ju=n=>(n==null?void 0:n.nodeName)==="svg"?"svg":"html",Om=["svg"],Bd=()=>{let n=[];const s=()=>n[n.length-1];return{track:P=>{Nd(P)&&n.push(P);let Z=s();return Z&&!Z.contains(P)&&(n.pop(),Z=s()),Ju(Z)},current:()=>Ju(s()),reset:()=>{n=[]}}},Py="data-mce-block",FO=n=>se(Gt(n),s=>!/[A-Z]/.test(s)),Oh=n=>Ie(FO(n),s=>`${s}:`+Ie(Om,l=>`not(${l} ${s})`).join(":")).join(","),Qd=(n,s)=>B(s.querySelector(n))?(s.setAttribute(Py,"true"),s.getAttribute("data-mce-selected")==="inline-boundary"&&s.removeAttribute("data-mce-selected"),!0):(s.removeAttribute(Py),!1),ef=(n,s)=>{const l=Oh(n.getTransparentElements()),h=Oh(n.getBlockElements());return se(s.querySelectorAll(l),O=>Qd(h,O))},kg=(n,s)=>{var l;const h=s?"lastChild":"firstChild";for(let O=n[h];O;O=O[h])if(ta(Yt.fromDom(O))){(l=O.parentNode)===null||l===void 0||l.removeChild(O);return}},Ag=(n,s)=>{const l=document.createRange(),h=n.parentNode;if(h){l.setStartBefore(n),l.setEndBefore(s);const O=l.extractContents();kg(O,!0),l.setStartAfter(s),l.setEndAfter(n);const P=l.extractContents();kg(P,!1),ta(Yt.fromDom(O))||h.insertBefore(O,n),ta(Yt.fromDom(s))||h.insertBefore(s,n),ta(Yt.fromDom(P))||h.insertBefore(P,n),h.removeChild(n)}},KC=(n,s,l)=>{const h=n.getBlockElements(),O=Yt.fromDom(s),P=J=>Vs(J)in h,Z=J=>Gs(J,O);re(Wp(l),J=>{ui(J,P,Z).each(he=>{const _e=ky(J,Ge=>P(Ge)&&!n.isValidChild(Vs(he),Vs(Ge)));if(_e.length>0){const Ge=yg(he);re(_e,qe=>{ui(qe,P,Z).each(ot=>{Ag(ot.dom,qe.dom)})}),Ge.each(qe=>ef(n,qe.dom))}})})},VO=(n,s,l)=>{re([...l,...ks(n,s)?[s]:[]],h=>re(sl(Yt.fromDom(h),h.nodeName.toLowerCase()),O=>{vo(n,O.dom)&&Ef(O)}))},My=(n,s)=>{const l=ef(n,s);KC(n,s,l),VO(n,s,l)},zO=(n,s)=>{if(_y(n,s)){const l=Oh(n.getBlockElements());Qd(l,s)}},JC=(n,s,l)=>{const h=P=>Gs(P,Yt.fromDom(s)),O=hy(Yt.fromDom(l),h);et(O,O.length-2).filter(kl).fold(()=>My(n,s),P=>My(n,P.dom))},ZO=n=>n.hasAttribute(Py),Ey=(n,s)=>it(n.getTransparentElements(),s),_y=(n,s)=>Xr(s)&&Ey(n,s.nodeName),ks=(n,s)=>_y(n,s)&&ZO(s),vo=(n,s)=>_y(n,s)&&!ZO(s),xm=(n,s)=>s.type===1&&Ey(n,s.name)&&M(s.attr(Py)),HO=ii().browser,Ry=n=>le(n,kl),EM=n=>HO.isFirefox()&&Vs(n)==="table"?Ry(ol(n)).filter(s=>Vs(s)==="caption").bind(s=>Ry(Vc(s)).map(l=>{const h=l.dom.offsetTop,O=s.dom.offsetTop,P=s.dom.offsetHeight;return h<=O?-P:0})).getOr(0):0,WS=(n,s)=>n.children&&Ze(n.children,s),Ea=(n,s,l)=>{let h=0,O=0;const P=n.ownerDocument;if(l=l||n,s){if(l===n&&s.getBoundingClientRect&&wi(Yt.fromDom(n),"position")==="static"){const J=s.getBoundingClientRect();return h=J.left+(P.documentElement.scrollLeft||n.scrollLeft)-P.documentElement.clientLeft,O=J.top+(P.documentElement.scrollTop||n.scrollTop)-P.documentElement.clientTop,{x:h,y:O}}let Z=s;for(;Z&&Z!==l&&Z.nodeType&&!WS(Z,l);){const J=Z;h+=J.offsetLeft||0,O+=J.offsetTop||0,Z=J.offsetParent}for(Z=s.parentNode;Z&&Z!==l&&Z.nodeType&&!WS(Z,l);)h-=Z.scrollLeft||0,O-=Z.scrollTop||0,Z=Z.parentNode;O+=EM(Yt.fromDom(s))}return{x:h,y:O}},YS=(n,s={})=>{let l=0;const h={},O=Yt.fromDom(n),P=qf(O),Z=cn=>{s.referrerPolicy=cn},J=cn=>{s.contentCssCors=cn},he=cn=>{Ci(LO(O),cn)},_e=cn=>{const xn=LO(O);Sc(xn,"#"+cn).each(Ks)},Ge=cn=>Sn(h,cn).getOrThunk(()=>({id:"mce-u"+l++,passed:[],failed:[],count:0})),qe=cn=>new Promise((xn,bn)=>{let $n;const rr=fr._addCacheSuffix(cn),gr=Ge(rr);h[rr]=gr,gr.count++;const Qr=(eo,po)=>{re(eo,ge),gr.status=po,gr.passed=[],gr.failed=[],$n&&($n.onload=null,$n.onerror=null,$n=null)},zn=()=>Qr(gr.passed,2),Bn=()=>Qr(gr.failed,3);if(xn&&gr.passed.push(xn),bn&&gr.failed.push(bn),gr.status===1)return;if(gr.status===2){zn();return}if(gr.status===3){Bn();return}gr.status=1;const tr=Yt.fromTag("link",P.dom);Su(tr,{rel:"stylesheet",type:"text/css",id:gr.id}),s.contentCssCors&&Ra(tr,"crossOrigin","anonymous"),s.referrerPolicy&&Ra(tr,"referrerpolicy",s.referrerPolicy),$n=tr.dom,$n.onload=zn,$n.onerror=Bn,he(tr),Ra(tr,"href",rr)}),ot=(cn,xn)=>{const bn=Ge(cn);h[cn]=bn,bn.count++;const $n=Yt.fromTag("style",P.dom);Su($n,{rel:"stylesheet",type:"text/css",id:bn.id}),$n.dom.innerHTML=xn,he($n)},Et=cn=>Promise.allSettled(Ie(cn,bn=>qe(bn).then(ae(bn)))).then(bn=>{const $n=te(bn,rr=>rr.status==="fulfilled");return $n.fail.length>0?Promise.reject(Ie($n.fail,rr=>rr.reason)):Ie($n.pass,rr=>rr.value)}),Vt=cn=>{const xn=fr._addCacheSuffix(cn);Sn(h,xn).each(bn=>{--bn.count===0&&(delete h[xn],_e(bn.id))})};return{load:qe,loadRawCss:ot,loadAll:Et,unload:Vt,unloadRawCss:cn=>{Sn(h,cn).each(xn=>{--xn.count===0&&(delete h[cn],_e(xn.id))})},unloadAll:cn=>{re(cn,xn=>{Vt(xn)})},_setReferrerPolicy:Z,_setContentCssCors:J}},GS=(()=>{const n=new WeakMap;return{forElement:(l,h)=>{const P=Pf(l).dom;return G.from(n.get(P)).getOrThunk(()=>{const Z=YS(P,h);return n.set(P,Z),Z})}}})(),qn=n=>n.nodeName.toLowerCase()==="span",UO=(n,s,l)=>B(n)&&(Ku(n,s)||l.isInline(n.nodeName.toLowerCase())),_M=(n,s,l)=>{const h=new ca(n,s).prev(!1),O=new ca(n,s).next(!1),P=U(h)||UO(h,s,l),Z=U(O)||UO(O,s,l);return P&&Z},Dy=n=>qn(n)&&n.getAttribute("data-mce-type")==="bookmark",RM=(n,s,l)=>lr(n)&&n.data.length>0&&_M(n,s,l),i0=n=>Xr(n)?n.childNodes.length>0:!1,jS=n=>da(n)||Tg(n),Sm=(n,s,l,h)=>{var O;const P=h||s;if(Xr(s)&&Dy(s))return s;const Z=s.childNodes;for(let J=Z.length-1;J>=0;J--)Sm(n,Z[J],l,P);if(Xr(s)){const J=s.childNodes;J.length===1&&Dy(J[0])&&((O=s.parentNode)===null||O===void 0||O.insertBefore(J[0],s))}return!jS(s)&&!Ku(s,P)&&!i0(s)&&!RM(s,P,l)&&n.remove(s),s},DM=fr.makeMap,xh=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ca=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Sh=/[<>&\"\']/g,qS=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,rd={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},wm={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},KS={"<":"<",">":">","&":"&",""":'"',"'":"'"},Kp=n=>{const s=Yt.fromTag("div").dom;return s.innerHTML=n,s.textContent||s.innerText||n},ek=(n,s)=>{const l={};if(n){const h=n.split(",");s=s||10;for(let O=0;On.replace(s?xh:Ca,l=>wm[l]||l),$M=n=>(""+n).replace(Sh,s=>wm[s]||s),ew=(n,s)=>n.replace(s?xh:Ca,l=>l.length>1?"&#"+((l.charCodeAt(0)-55296)*1024+(l.charCodeAt(1)-56320)+65536)+";":wm[l]||"&#"+l.charCodeAt(0)+";"),wh=(n,s,l)=>{const h=l||WO;return n.replace(s?xh:Ca,O=>wm[O]||h[O]||O)},Pg={encodeRaw:JS,encodeAllRaw:$M,encodeNumeric:ew,encodeNamed:wh,getEncodeFunc:(n,s)=>{const l=ek(s)||WO,h=(Z,J)=>Z.replace(J?xh:Ca,he=>wm[he]!==void 0?wm[he]:l[he]!==void 0?l[he]:he.length>1?"&#"+((he.charCodeAt(0)-55296)*1024+(he.charCodeAt(1)-56320)+65536)+";":"&#"+he.charCodeAt(0)+";"),O=(Z,J)=>wh(Z,J,l),P=DM(n.replace(/\+/g,","));return P.named&&P.numeric?h:P.named?s?O:wh:P.numeric?ew:JS},decode:n=>n.replace(qS,(s,l)=>l?(l.charAt(0).toLowerCase()==="x"?l=parseInt(l.substr(1),16):l=parseInt(l,10),l>65535?(l-=65536,String.fromCharCode(55296+(l>>10),56320+(l&1023))):rd[l]||String.fromCharCode(l)):KS[s]||WO[s]||Kp(s))},Yl=(n,s)=>(n=fr.trim(n),n?n.split(s||" "):[]),Kr=n=>new RegExp("^"+n.replace(/([?+*])/g,".$1")+"$"),LM=n=>{const s=/^(~)?(.+)$/;return ze(Yl(n,","),l=>{const h=s.exec(l);if(h){const O=h[1]==="~",P=O?"span":"div",Z=h[2];return[{inline:O,cloneName:P,name:Z}]}else return[]})},nw=n=>{let s,l,h;if(s="id accesskey class dir lang style tabindex title role",l="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",h="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",n!=="html4"){const P="a ins del canvas map";s+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",l+=" article aside details dialog figure main header footer hgroup section nav "+P,h+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen svg"}n!=="html5-strict"&&(s+=" xml:lang",h=[h,"acronym applet basefont big font strike tt"].join(" "),l=[l,"center dir isindex noframes"].join(" "));const O=[l,h].join(" ");return{globalAttributes:s,blockContent:l,phrasingContent:h,flowContent:O}},IM=n=>{const{globalAttributes:s,phrasingContent:l,flowContent:h}=nw(n),O={},P=(he,_e,Ge)=>{O[he]={attributes:Ye(_e,ae({})),attributesOrder:_e,children:Ye(Ge,ae({}))}},Z=(he,_e="",Ge="")=>{const qe=Yl(Ge),ot=Yl(he);let Et=ot.length;const Vt=Yl([s,_e].join(" "));for(;Et--;)P(ot[Et],Vt.slice(),qe)},J=(he,_e)=>{const Ge=Yl(he),qe=Yl(_e);let ot=Ge.length;for(;ot--;){const Et=O[Ge[ot]];for(let Vt=0,kt=qe.length;Vt{Z(Ge,"",l)}),re(Yl("center dir isindex noframes"),Ge=>{Z(Ge,"",h)})),Z("html","manifest","head body"),Z("head","","base command link meta noscript script style title"),Z("title hr noscript br"),Z("base","href target"),Z("link","href rel media hreflang type sizes hreflang"),Z("meta","name http-equiv content charset"),Z("style","media type scoped"),Z("script","src async defer type charset"),Z("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",h),Z("dd div","",h),Z("address dt caption","",n==="html4"?l:h),Z("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",l),Z("blockquote","cite",h),Z("ol","reversed start type","li"),Z("ul","","li"),Z("li","value",h),Z("dl","","dt dd"),Z("a","href target rel media hreflang type",n==="html4"?l:h),Z("q","cite",l),Z("ins del","cite datetime",h),Z("img","src sizes srcset alt usemap ismap width height"),Z("iframe","src name width height",h),Z("embed","src type width height"),Z("object","data type typemustmatch name usemap form width height",[h,"param"].join(" ")),Z("param","name value"),Z("map","name",[h,"area"].join(" ")),Z("area","alt coords shape href target rel media hreflang type"),Z("table","border","caption colgroup thead tfoot tbody tr"+(n==="html4"?" col":"")),Z("colgroup","span","col"),Z("col","span"),Z("tbody thead tfoot","","tr"),Z("tr","","td th"),Z("td","colspan rowspan headers",h),Z("th","colspan rowspan headers scope abbr",h),Z("form","accept-charset action autocomplete enctype method name novalidate target",h),Z("fieldset","disabled form name",[h,"legend"].join(" ")),Z("label","form for",l),Z("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),Z("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",n==="html4"?h:l),Z("select","disabled form multiple name required size","option optgroup"),Z("optgroup","disabled label","option"),Z("option","disabled label selected value"),Z("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),Z("menu","type label",[h,"li"].join(" ")),Z("noscript","",h),n!=="html4"&&(Z("wbr"),Z("ruby","",[l,"rt rp"].join(" ")),Z("figcaption","",h),Z("mark rt rp bdi","",l),Z("summary","",[l,"h1 h2 h3 h4 h5 h6"].join(" ")),Z("canvas","width height",h),Z("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[h,"track source"].join(" ")),Z("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[h,"track source"].join(" ")),Z("picture","","img source"),Z("source","src srcset type media sizes"),Z("track","kind src srclang label default"),Z("datalist","",[l,"option"].join(" ")),Z("article section nav aside main header footer","",h),Z("hgroup","","h1 h2 h3 h4 h5 h6"),Z("figure","",[h,"figcaption"].join(" ")),Z("time","datetime",l),Z("dialog","open",h),Z("command","type label icon disabled checked radiogroup command"),Z("output","for form name",l),Z("progress","value max",l),Z("meter","value min max low high optimum",l),Z("details","open",[h,"summary"].join(" ")),Z("keygen","autofocus challenge disabled form keytype name"),P("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),n!=="html5-strict"&&(J("script","language xml:space"),J("style","xml:space"),J("object","declare classid code codebase codetype archive standby align border hspace vspace"),J("embed","align name hspace vspace"),J("param","valuetype type"),J("a","charset name rev shape coords"),J("br","clear"),J("applet","codebase archive code object alt name width height align hspace vspace"),J("img","name longdesc align border hspace vspace"),J("iframe","longdesc frameborder marginwidth marginheight scrolling align"),J("font basefont","size color face"),J("input","usemap align"),J("select"),J("textarea"),J("h1 h2 h3 h4 h5 h6 div p legend caption","align"),J("ul","type compact"),J("li","type"),J("ol dl menu dir","compact"),J("pre","width xml:space"),J("hr","align noshade size width"),J("isindex","prompt"),J("table","summary width frame rules cellspacing cellpadding align bgcolor"),J("col","width align char charoff valign"),J("colgroup","width align char charoff valign"),J("thead","align char charoff valign"),J("tr","align char charoff valign bgcolor"),J("th","axis align char charoff valign nowrap bgcolor width height"),J("form","accept"),J("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),J("tfoot","align char charoff valign"),J("tbody","align char charoff valign"),J("area","nohref"),J("body","background bgcolor text link vlink alink")),n!=="html4"&&(J("input button select textarea","autofocus"),J("input textarea","placeholder"),J("a","download"),J("link script img","crossorigin"),J("img","loading"),J("iframe","sandbox seamless allow allowfullscreen loading")),n!=="html4"&&re([O.video,O.audio],he=>{delete he.children.audio,delete he.children.video}),re(Yl("a form meter progress dfn"),he=>{O[he]&&delete O[he].children[he]}),delete O.caption.children.table,delete O.script,O},tk=n=>n==="-"?"remove":"add",Jp=n=>{const s=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return ze(Yl(n,","),l=>{const h=s.exec(l);if(h){const O=h[1],P=O?tk(O):"replace",Z=h[2],J=Yl(h[3],"|");return[{operation:P,name:Z,validChildren:J}]}else return[]})},l0=(n,s)=>{const l=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,h=/[*?+]/,{attributes:O,attributesOrder:P}=s;return re(Yl(n,"|"),Z=>{const J=l.exec(Z);if(J){const he={},_e=J[1],Ge=J[2].replace(/[\\:]:/g,":"),qe=J[3],ot=J[4];if(_e==="!"&&(s.attributesRequired=s.attributesRequired||[],s.attributesRequired.push(Ge),he.required=!0),_e==="-"){delete O[Ge],P.splice(fr.inArray(P,Ge),1);return}if(qe&&(qe==="="?(s.attributesDefault=s.attributesDefault||[],s.attributesDefault.push({name:Ge,value:ot}),he.defaultValue=ot):qe==="~"?(s.attributesForced=s.attributesForced||[],s.attributesForced.push({name:Ge,value:ot}),he.forcedValue=ot):qe==="<"&&(he.validValues=fr.makeMap(ot,"?"))),h.test(Ge)){const Et=he;s.attributePatterns=s.attributePatterns||[],Et.pattern=Kr(Ge),s.attributePatterns.push(Et)}else O[Ge]||P.push(Ge),O[Ge]=he}})},$y=(n,s)=>{Bt(n.attributes,(l,h)=>{s.attributes[h]=l}),s.attributesOrder.push(...n.attributesOrder)},c0=(n,s)=>{const l=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return ze(Yl(s,","),h=>{const O=l.exec(h);if(O){const P=O[1],Z=O[2],J=O[3],he=O[4],_e=O[5],Ge={attributes:{},attributesOrder:[]};if(n.each(qe=>$y(qe,Ge)),P==="#"?Ge.paddEmpty=!0:P==="-"&&(Ge.removeEmpty=!0),he==="!"&&(Ge.removeEmptyAttrs=!0),_e&&l0(_e,Ge),J&&(Ge.outputName=Z),Z==="@")if(n.isNone())n=G.some(Ge);else return[];return[J?{name:Z,element:Ge,aliasName:J}:{name:Z,element:Ge}]}else return[]})},YO={},Tm=fr.makeMap,Fd=fr.each,Ly=fr.extend,$f=fr.explode,XO=(n,s={})=>{const l=Tm(n," ",Tm(n.toUpperCase()," "));return Ly(l,s)},nk=n=>XO("td th li dt dd figcaption caption details summary",n.getTextBlockElements()),u0=(n,s)=>{if(n){const l={};return M(n)&&(n={"*":n}),Fd(n,(h,O)=>{l[O]=l[O.toUpperCase()]=s==="map"?Tm(h,/[, ]/):$f(h,/[, ]/)}),l}else return},Cm=(n={})=>{var s;const l={},h={};let O=[];const P={},Z={},J=(Wo,Hs,Pa)=>{const oi=n[Wo];if(oi)return Tm(oi,/[, ]/,Tm(oi.toUpperCase(),/[, ]/));{let Ua=YO[Wo];return Ua||(Ua=XO(Hs,Pa),YO[Wo]=Ua),Ua}},he=(s=n.schema)!==null&&s!==void 0?s:"html5",_e=IM(he);n.verify_html===!1&&(n.valid_elements="*[*]");const Ge=u0(n.valid_styles),qe=u0(n.invalid_styles,"map"),ot=u0(n.valid_classes,"map"),Et=J("whitespace_elements","pre script noscript style textarea video audio iframe object code"),Vt=J("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),kt=J("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),It=J("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),cn="td th iframe video audio object script code",xn=J("non_empty_elements",cn+" pre svg",kt),bn=J("move_caret_before_on_enter_elements",cn+" table",kt),$n="h1 h2 h3 h4 h5 h6",rr=J("text_block_elements",$n+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),gr=J("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",rr),Qr=J("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),zn=J("transparent_elements","a ins del canvas map"),Bn=J("wrap_block_elements","pre "+$n);Fd("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),Wo=>{Z[Wo]=new RegExp("]*>","gi")});const tr=Wo=>{const Hs=G.from(l["@"]),Pa=/[*?+]/;re(c0(Hs,Wo??""),({name:oi,element:Ua,aliasName:gf})=>{if(gf&&(l[gf]=Ua),Pa.test(oi)){const Gh=Ua;Gh.pattern=Kr(oi),O.push(Gh)}else l[oi]=Ua})},eo=Wo=>{O=[],re(Gt(l),Hs=>{delete l[Hs]}),tr(Wo)},po=Wo=>{delete YO.text_block_elements,delete YO.block_elements,re(LM(Wo??""),({inline:Hs,name:Pa,cloneName:oi})=>{if(h[Pa]=h[oi],P[Pa]=oi,xn[Pa.toUpperCase()]={},xn[Pa]={},Hs||(gr[Pa.toUpperCase()]={},gr[Pa]={}),!l[Pa]){let Ua=l[oi];Ua=Ly({},Ua),delete Ua.removeEmptyAttrs,delete Ua.removeEmpty,l[Pa]=Ua}Bt(h,(Ua,gf)=>{Ua[oi]&&(h[gf]=Ua=Ly({},h[gf]),Ua[Pa]=Ua[oi])})})},ls=Wo=>{re(Jp(Wo??""),({operation:Hs,name:Pa,validChildren:oi})=>{const Ua=Hs==="replace"?{"#comment":{}}:h[Pa];re(oi,gf=>{Hs==="remove"?delete Ua[gf]:Ua[gf]={}}),h[Pa]=Ua})},ys=Wo=>{const Hs=l[Wo];if(Hs)return Hs;let Pa=O.length;for(;Pa--;){const oi=O[Pa];if(oi.pattern.test(Wo))return oi}};n.valid_elements?(eo(n.valid_elements),Fd(_e,(Wo,Hs)=>{h[Hs]=Wo.children})):(Fd(_e,(Wo,Hs)=>{l[Hs]={attributes:Wo.attributes,attributesOrder:Wo.attributesOrder},h[Hs]=Wo.children}),Fd(Yl("strong/b em/i"),Wo=>{const Hs=Yl(Wo,"/");l[Hs[1]].outputName=Hs[0]}),Fd(Qr,(Wo,Hs)=>{l[Hs]&&(n.padd_empty_block_inline_children&&(l[Hs].paddInEmptyBlock=!0),l[Hs].removeEmpty=!0)}),Fd(Yl("ol ul blockquote a table tbody"),Wo=>{l[Wo]&&(l[Wo].removeEmpty=!0)}),Fd(Yl("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),Wo=>{l[Wo]&&(l[Wo].paddEmpty=!0)}),Fd(Yl("span"),Wo=>{l[Wo].removeEmptyAttrs=!0})),delete l.svg,po(n.custom_elements),ls(n.valid_children),tr(n.extended_valid_elements),ls("+ol[ul|ol],+ul[ul|ol]"),Fd({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(Wo,Hs)=>{l[Hs]&&(l[Hs].parentsRequired=Yl(Wo))}),n.invalid_elements&&Fd($f(n.invalid_elements),Wo=>{l[Wo]&&delete l[Wo]}),ys("span")||tr("span[!data-mce-type|*]");const ma=ae(Ge),$s=ae(qe),hi=ae(ot),uc=ae(It),ga=ae(gr),Cr=ae(rr),co=ae(Qr),Zs=ae(Object.seal(kt)),Ss=ae(Vt),ro=ae(xn),Lo=ae(bn),yr=ae(Et),Bo=ae(zn),Ls=ae(Bn),Aa=ae(Object.seal(Z)),Sa=(Wo,Hs)=>{const Pa=h[Wo.toLowerCase()];return!!(Pa&&Pa[Hs.toLowerCase()])},$l=(Wo,Hs)=>{const Pa=ys(Wo);if(Pa)if(Hs){if(Pa.attributes[Hs])return!0;const oi=Pa.attributePatterns;if(oi){let Ua=oi.length;for(;Ua--;)if(oi[Ua].pattern.test(Hs))return!0}}else return!0;return!1},Xh=Wo=>it(ga(),Wo),zf=Wo=>$l(Wo)&&!Xh(Wo),$u=Wo=>it(Ls(),Wo)||zf(Wo),sh=ae(P);return{type:he,children:h,elements:l,getValidStyles:ma,getValidClasses:hi,getBlockElements:ga,getInvalidStyles:$s,getVoidElements:Zs,getTextBlockElements:Cr,getTextInlineElements:co,getBoolAttrs:uc,getElementRule:ys,getSelfClosingElements:Ss,getNonEmptyElements:ro,getMoveCaretBeforeOnEnterElements:Lo,getWhitespaceElements:yr,getTransparentElements:Bo,getSpecialElements:Aa,isValidChild:Sa,isValid:$l,isBlock:Xh,isInline:zf,isWrapper:$u,getCustomElements:sh,addValidElements:tr,setValidElements:eo,addCustomElements:po,addValidChildren:ls}},NM=n=>({value:f0(n)}),f0=n=>xr(n,"#").toUpperCase(),ev=n=>{const s=n.toString(16);return(s.length===1?"0"+s:s).toUpperCase()},od=n=>{const s=ev(n.red)+ev(n.green)+ev(n.blue);return NM(s)},Cu=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,BM=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,rk=(n,s,l,h)=>({red:n,green:s,blue:l,alpha:h}),ok=(n,s,l,h)=>{const O=parseInt(n,10),P=parseInt(s,10),Z=parseInt(l,10),J=parseFloat(h);return rk(O,P,Z,J)},rw=n=>{if(n==="transparent")return G.some(rk(0,0,0,0));const s=Cu.exec(n);if(s!==null)return G.some(ok(s[1],s[2],s[3],"1"));const l=BM.exec(n);return l!==null?G.some(ok(l[1],l[2],l[3],l[4])):G.none()},ku=n=>`rgba(${n.red},${n.green},${n.blue},${n.alpha})`,d0=n=>rw(n).map(od).map(s=>"#"+s.value).getOr(n),GO=(n={},s)=>{const l=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,h=/\s*([^:]+):\s*([^;]+);?/g,O=/\s+$/,P={};let Z,J;const he=Cg;s&&(Z=s.getValidStyles(),J=s.getInvalidStyles());const _e=(`\\" \\' \\; \\: ; : `+he).split(" ");for(let qe=0;qe<_e.length;qe++)P[_e[qe]]=he+qe,P[he+qe]=_e[qe];const Ge={parse:qe=>{const ot={};let Et=!1;const Vt=n.url_converter,kt=n.url_converter_scope||Ge,It=(zn,Bn,tr)=>{const eo=ot[zn+"-top"+Bn];if(!eo)return;const po=ot[zn+"-right"+Bn];if(!po)return;const ls=ot[zn+"-bottom"+Bn];if(!ls)return;const ys=ot[zn+"-left"+Bn];if(!ys)return;const ma=[eo,po,ls,ys];let $s=ma.length-1;for(;$s--&&ma[$s]===ma[$s+1];);$s>-1&&tr||(ot[zn+Bn]=$s===-1?ma[0]:ma.join(" "),delete ot[zn+"-top"+Bn],delete ot[zn+"-right"+Bn],delete ot[zn+"-bottom"+Bn],delete ot[zn+"-left"+Bn])},cn=zn=>{const Bn=ot[zn];if(!Bn)return;const tr=Bn.indexOf(",")>-1?[Bn]:Bn.split(" ");let eo=tr.length;for(;eo--;)if(tr[eo]!==tr[0])return!1;return ot[zn]=tr[0],!0},xn=(zn,Bn,tr,eo)=>{cn(Bn)&&cn(tr)&&cn(eo)&&(ot[zn]=ot[Bn]+" "+ot[tr]+" "+ot[eo],delete ot[Bn],delete ot[tr],delete ot[eo])},bn=zn=>(Et=!0,P[zn]),$n=(zn,Bn)=>(Et&&(zn=zn.replace(/\uFEFF[0-9]/g,tr=>P[tr])),Bn||(zn=zn.replace(/\\([\'\";:])/g,"$1")),zn),rr=zn=>String.fromCharCode(parseInt(zn.slice(1),16)),gr=zn=>zn.replace(/\\[0-9a-f]+/gi,rr),Qr=(zn,Bn,tr,eo,po,ls)=>{if(po=po||ls,po)return po=$n(po),"'"+po.replace(/\'/g,"\\'")+"'";if(Bn=$n(Bn||tr||eo||""),!n.allow_script_urls){const ys=Bn.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(ys)||!n.allow_svg_data_urls&&/^data:image\/svg/i.test(ys))return""}return Vt&&(Bn=Vt.call(kt,Bn,"style")),"url('"+Bn.replace(/\'/g,"\\'")+"')"};if(qe){qe=qe.replace(/[\u0000-\u001F]/g,""),qe=qe.replace(/\\[\"\';:\uFEFF]/g,bn).replace(/\"[^\"]+\"|\'[^\']+\'/g,Bn=>Bn.replace(/[;:]/g,bn));let zn;for(;zn=h.exec(qe);){h.lastIndex=zn.index+zn[0].length;let Bn=zn[1].replace(O,"").toLowerCase(),tr=zn[2].replace(O,"");if(Bn&&tr){if(Bn=gr(Bn),tr=gr(tr),Bn.indexOf(he)!==-1||Bn.indexOf('"')!==-1||!n.allow_script_urls&&(Bn==="behavior"||/expression\s*\(|\/\*|\*\//.test(tr)))continue;Bn==="font-weight"&&tr==="700"?tr="bold":(Bn==="color"||Bn==="background-color")&&(tr=tr.toLowerCase()),M(n.force_hex_color)&&n.force_hex_color!=="off"&&rw(tr).each(eo=>{(n.force_hex_color==="always"||eo.alpha===1)&&(tr=d0(ku(eo)))}),tr=tr.replace(l,Qr),ot[Bn]=Et?$n(tr,!0):tr}}It("border","",!0),It("border","-width"),It("border","-color"),It("border","-style"),It("padding",""),It("margin",""),xn("border","border-width","border-style","border-color"),ot.border==="medium none"&&delete ot.border,ot["border-image"]==="none"&&delete ot["border-image"]}return ot},serialize:(qe,ot)=>{let Et="";const Vt=(It,cn)=>{const xn=cn[It];if(xn)for(let bn=0,$n=xn.length;bn<$n;bn++){const rr=xn[bn],gr=qe[rr];gr&&(Et+=(Et.length>0?" ":"")+rr+": "+gr+";")}},kt=(It,cn)=>{if(!J||!cn)return!0;let xn=J["*"];return xn&&xn[It]?!1:(xn=J[cn],!(xn&&xn[It]))};return ot&&Z?(Vt("*",Z),Vt(ot,Z)):Bt(qe,(It,cn)=>{It&&kt(cn,ot)&&(Et+=(Et.length>0?" ":"")+cn+": "+It+";")}),Et}};return Ge},jO={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},QM=n=>n instanceof Event||E(n.initEvent),sk=n=>n.isDefaultPrevented===pe||n.isDefaultPrevented===ne,ow=n=>Q(n.preventDefault)||QM(n),h0=(n,s)=>{const l=s??{};for(const h in n)it(jO,h)||(l[h]=n[h]);return B(n.composedPath)&&(l.composedPath=()=>n.composedPath()),B(n.getModifierState)&&(l.getModifierState=h=>n.getModifierState(h)),B(n.getTargetRanges)&&(l.getTargetRanges=()=>n.getTargetRanges()),l},m0=(n,s,l,h)=>{var O;const P=h0(s,h);return P.type=n,Q(P.target)&&(P.target=(O=P.srcElement)!==null&&O!==void 0?O:l),ow(s)&&(P.preventDefault=()=>{P.defaultPrevented=!0,P.isDefaultPrevented=pe,E(s.preventDefault)&&s.preventDefault()},P.stopPropagation=()=>{P.cancelBubble=!0,P.isPropagationStopped=pe,E(s.stopPropagation)&&s.stopPropagation()},P.stopImmediatePropagation=()=>{P.isImmediatePropagationStopped=pe,P.stopPropagation()},sk(P)||(P.isDefaultPrevented=P.defaultPrevented===!0?pe:ne,P.isPropagationStopped=P.cancelBubble===!0?pe:ne,P.isImmediatePropagationStopped=ne)),P},qO="mce-data-",FM=/^(?:mouse|contextmenu)|click/,KO=(n,s,l,h)=>{n.addEventListener(s,l,h||!1)},g0=(n,s,l,h)=>{n.removeEventListener(s,l,h||!1)},VM=n=>B(n)&&FM.test(n.type),Iy=(n,s)=>{const l=m0(n.type,n,document,s);if(VM(n)&&U(n.pageX)&&!U(n.clientX)){const h=l.target.ownerDocument||document,O=h.documentElement,P=h.body,Z=l;Z.pageX=n.clientX+(O&&O.scrollLeft||P&&P.scrollLeft||0)-(O&&O.clientLeft||P&&P.clientLeft||0),Z.pageY=n.clientY+(O&&O.scrollTop||P&&P.scrollTop||0)-(O&&O.clientTop||P&&P.clientTop||0)}return l},sw=(n,s,l)=>{const h=n.document,O={type:"ready"};if(l.domLoaded){s(O);return}const P=()=>h.readyState==="complete"||h.readyState==="interactive"&&h.body,Z=()=>{g0(n,"DOMContentLoaded",Z),g0(n,"load",Z),l.domLoaded||(l.domLoaded=!0,s(O)),n=null};P()?Z():KO(n,"DOMContentLoaded",Z),l.domLoaded||KO(n,"load",Z)};class Au{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=qO+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(s,l,h,O){const P=this;let Z;const J=window,he=ot=>{P.executeHandlers(Iy(ot||J.event),_e)};if(!s||lr(s)||Kf(s))return h;let _e;s[P.expando]?_e=s[P.expando]:(_e=P.count++,s[P.expando]=_e,P.events[_e]={}),O=O||s;const Ge=l.split(" ");let qe=Ge.length;for(;qe--;){let ot=Ge[qe],Et=he,Vt=!1,kt=!1;if(ot==="DOMContentLoaded"&&(ot="ready"),P.domLoaded&&ot==="ready"&&s.readyState==="complete"){h.call(O,Iy({type:ot}));continue}!P.hasFocusIn&&(ot==="focusin"||ot==="focusout")&&(Vt=!0,kt=ot==="focusin"?"focus":"blur",Et=It=>{const cn=Iy(It||J.event);cn.type=cn.type==="focus"?"focusin":"focusout",P.executeHandlers(cn,_e)}),Z=P.events[_e][ot],Z?ot==="ready"&&P.domLoaded?h(Iy({type:ot})):Z.push({func:h,scope:O}):(P.events[_e][ot]=Z=[{func:h,scope:O}],Z.fakeName=kt,Z.capture=Vt,Z.nativeHandler=Et,ot==="ready"?sw(s,Et,P):KO(s,kt||ot,Et,Vt))}return s=Z=null,h}unbind(s,l,h){if(!s||lr(s)||Kf(s))return this;const O=s[this.expando];if(O){let P=this.events[O];if(l){const Z=l.split(" ");let J=Z.length;for(;J--;){const he=Z[J],_e=P[he];if(_e){if(h){let Ge=_e.length;for(;Ge--;)if(_e[Ge].func===h){const qe=_e.nativeHandler,ot=_e.fakeName,Et=_e.capture,Vt=_e.slice(0,Ge).concat(_e.slice(Ge+1));Vt.nativeHandler=qe,Vt.fakeName=ot,Vt.capture=Et,P[he]=Vt}}(!h||_e.length===0)&&(delete P[he],g0(s,_e.fakeName||he,_e.nativeHandler,_e.capture))}}}else Bt(P,(Z,J)=>{g0(s,Z.fakeName||J,Z.nativeHandler,Z.capture)}),P={};for(const Z in P)if(it(P,Z))return this;delete this.events[O];try{delete s[this.expando]}catch{s[this.expando]=null}}return this}fire(s,l,h){return this.dispatch(s,l,h)}dispatch(s,l,h){if(!s||lr(s)||Kf(s))return this;const O=Iy({type:l,target:s},h);do{const P=s[this.expando];P&&this.executeHandlers(O,P),s=s.parentNode||s.ownerDocument||s.defaultView||s.parentWindow}while(s&&!O.isPropagationStopped());return this}clean(s){if(!s||lr(s)||Kf(s))return this;if(s[this.expando]&&this.unbind(s),s.getElementsByTagName||(s=s.document),s&&s.getElementsByTagName){this.unbind(s);const l=s.getElementsByTagName("*");let h=l.length;for(;h--;)s=l[h],s[this.expando]&&this.unbind(s)}return this}destroy(){this.events={}}cancel(s){return s&&(s.preventDefault(),s.stopImmediatePropagation()),!1}executeHandlers(s,l){const h=this.events[l],O=h&&h[s.type];if(O)for(let P=0,Z=O.length;P{Q(l)||l===""?ci(n,s):Ra(n,s,l)},Mg=n=>n.replace(/[A-Z]/g,s=>"-"+s.toLowerCase()),Th=(n,s)=>{let l=0;if(n)for(let h=n.nodeType,O=n.previousSibling;O;O=O.previousSibling){const P=O.nodeType;s&&lr(O)&&(P===h||!O.data.length)||(l++,h=P)}return l},aw=(n,s)=>{const l=Al(s,"style"),h=n.serialize(n.parse(l),Vs(s));tx(s,ex,h)},p0=(n,s)=>W(n)?it(q$,s)?n+"":n+"px":n,nx=(n,s,l)=>{const h=Mg(s);Q(l)||l===""?Jv(n,h):by(n,h,p0(l,h))},ik=(n,s,l)=>{const h=s.keep_values,O={set:(Z,J,he)=>{const _e=Yt.fromDom(Z);E(s.url_converter)&&B(J)&&(J=s.url_converter.call(s.url_converter_scope||l(),String(J),he,Z));const Ge="data-mce-"+he;tx(_e,Ge,J),tx(_e,he,J)},get:(Z,J)=>{const he=Yt.fromDom(Z);return Al(he,"data-mce-"+J)||Al(he,J)}},P={style:{set:(Z,J)=>{const he=Yt.fromDom(Z);h&&tx(he,ex,J),ci(he,"style"),M(J)&&nc(he,n.parse(J))},get:Z=>{const J=Yt.fromDom(Z),he=Al(J,ex)||Al(J,"style");return n.serialize(n.parse(he),Vs(J))}}};return h&&(P.href=P.src=O),P},Da=(n,s={})=>{const l={},h=window,O={};let P=0;const Z=!0,J=!0,he=GS.forElement(Yt.fromDom(n),{contentCssCors:s.contentCssCors,referrerPolicy:s.referrerPolicy}),_e=[],Ge=s.schema?s.schema:Cm({}),qe=GO({url_converter:s.url_converter,url_converter_scope:s.url_converter_scope,force_hex_color:s.force_hex_color},s.schema),ot=s.ownEvents?new Au:Au.Event,Et=Ge.getBlockElements(),Vt=Ln=>M(Ln)?it(Et,Ln):Xr(Ln)&&(it(Et,Ln.nodeName)||ks(Ge,Ln)),kt=Ln=>Ln&&n&&M(Ln)?n.getElementById(Ln):Ln,It=Ln=>{const In=kt(Ln);return B(In)?Yt.fromDom(In):null},cn=(Ln,In,br="")=>{let hr;const mo=It(Ln);if(B(mo)&&kl(mo)){const bs=J2[In];bs&&bs.get?hr=bs.get(mo.dom,In):hr=Al(mo,In)}return B(hr)?hr:br},xn=Ln=>{const In=kt(Ln);return Q(In)?[]:In.attributes},bn=(Ln,In,br)=>{co(Ln,hr=>{if(Xr(hr)){const mo=Yt.fromDom(hr),bs=br===""?null:br,ja=Al(mo,In),pf=J2[In];pf&&pf.set?pf.set(mo.dom,bs,In):tx(mo,In,bs),ja!==bs&&s.onSetAttrib&&s.onSetAttrib({attrElm:mo.dom,attrName:In,attrValue:bs})}})},$n=(Ln,In)=>Ln.cloneNode(In),rr=()=>s.root_element||n.body,gr=Ln=>{const In=Cy(Ln);return{x:In.x,y:In.y,w:In.width,h:In.height}},Qr=(Ln,In)=>Ea(n.body,kt(Ln),In),zn=(Ln,In,br)=>{co(Ln,hr=>{const mo=Yt.fromDom(hr);nx(mo,In,br),s.update_styles&&aw(qe,mo)})},Bn=(Ln,In)=>{co(Ln,br=>{const hr=Yt.fromDom(br);Bt(In,(mo,bs)=>{nx(hr,bs,mo)}),s.update_styles&&aw(qe,hr)})},tr=(Ln,In,br)=>{const hr=kt(Ln);if(!(Q(hr)||!zl(hr)&&!HS(hr)))return br?wi(Yt.fromDom(hr),Mg(In)):(In=In.replace(/-(\D)/g,(mo,bs)=>bs.toUpperCase()),In==="float"&&(In="cssFloat"),hr.style?hr.style[In]:void 0)},eo=Ln=>{const In=kt(Ln);if(!In)return{w:0,h:0};let br=tr(In,"width"),hr=tr(In,"height");return(!br||br.indexOf("px")===-1)&&(br="0"),(!hr||hr.indexOf("px")===-1)&&(hr="0"),{w:parseInt(br,10)||In.offsetWidth||In.clientWidth,h:parseInt(hr,10)||In.offsetHeight||In.clientHeight}},po=Ln=>{const In=kt(Ln),br=Qr(In),hr=eo(In);return{x:br.x,y:br.y,w:hr.w,h:hr.h}},ls=(Ln,In)=>{if(!Ln)return!1;const br=N(Ln)?Ln:[Ln];return De(br,hr=>Hu(Yt.fromDom(hr),In))},ys=(Ln,In,br,hr)=>{const mo=[];let bs=kt(Ln);hr=hr===void 0;const ja=br||(rr().nodeName!=="BODY"?rr().parentNode:null);if(M(In))if(In==="*")In=Xr;else{const pf=In;In=fc=>ls(fc,pf)}for(;bs&&!(bs===ja||Q(bs.nodeType)||Tg(bs)||da(bs));){if(!In||In(bs))if(hr)mo.push(bs);else return[bs];bs=bs.parentNode}return hr?mo:null},ma=(Ln,In,br)=>{const hr=ys(Ln,In,br,!1);return hr&&hr.length>0?hr[0]:null},$s=(Ln,In,br)=>{let hr=In;if(Ln){M(In)&&(hr=mo=>ls(mo,In));for(let mo=Ln[br];mo;mo=mo[br])if(E(hr)&&hr(mo))return mo}return null},hi=(Ln,In)=>$s(Ln,In,"nextSibling"),uc=(Ln,In)=>$s(Ln,In,"previousSibling"),ga=Ln=>E(Ln.querySelectorAll),Cr=(Ln,In)=>{var br,hr;const mo=(hr=(br=kt(In))!==null&&br!==void 0?br:s.root_element)!==null&&hr!==void 0?hr:n;return ga(mo)?tt(mo.querySelectorAll(Ln)):[]},co=function(Ln,In,br){const hr=br??this;if(N(Ln)){const mo=[];return JO(Ln,(bs,ja)=>{const pf=kt(bs);pf&&mo.push(In.call(hr,pf,ja))}),mo}else{const mo=kt(Ln);return mo?In.call(hr,mo):!1}},Zs=(Ln,In)=>{co(Ln,br=>{Bt(In,(hr,mo)=>{bn(br,mo,hr)})})},Ss=(Ln,In)=>{co(Ln,br=>{const hr=Yt.fromDom(br);gm(hr,In)})},ro=(Ln,In,br,hr,mo)=>co(Ln,bs=>{const ja=M(In)?n.createElement(In):In;return B(br)&&Zs(ja,br),hr&&(!M(hr)&&hr.nodeType?ja.appendChild(hr):M(hr)&&Ss(ja,hr)),mo?ja:bs.appendChild(ja)}),Lo=(Ln,In,br)=>ro(n.createElement(Ln),Ln,In,br,!0),yr=Pg.decode,Bo=Pg.encodeAllRaw,Ls=(Ln,In,br="")=>{let hr="<"+Ln;for(const mo in In)ut(In,mo)&&(hr+=" "+mo+'="'+Bo(In[mo])+'"');return Ct(br)&&it(Ge.getVoidElements(),Ln)?hr+" />":hr+">"+br+""},Aa=Ln=>{const In=n.createElement("div"),br=n.createDocumentFragment();br.appendChild(In),Ln&&(In.innerHTML=Ln);let hr;for(;hr=In.firstChild;)br.appendChild(hr);return br.removeChild(In),br},Sa=(Ln,In)=>co(Ln,br=>{const hr=Yt.fromDom(br);return In&&re(ol(hr),mo=>{Zi(mo)&&mo.dom.length===0?Ks(mo):Ui(hr,mo)}),Ks(hr),hr.dom}),$l=Ln=>co(Ln,In=>{const br=In.attributes;for(let hr=br.length-1;hr>=0;hr--)In.removeAttributeNode(br.item(hr))}),Xh=Ln=>qe.parse(Ln),zf=(Ln,In)=>qe.serialize(Ln,In),$u=Ln=>{if(hp!==Da.DOM&&n===document){if(l[Ln])return;l[Ln]=!0}let In=n.getElementById("mceDefaultStyles");if(!In){In=n.createElement("style"),In.id="mceDefaultStyles",In.type="text/css";const br=n.head;br.firstChild?br.insertBefore(In,br.firstChild):br.appendChild(In)}In.styleSheet?In.styleSheet.cssText+=Ln:In.appendChild(n.createTextNode(Ln))},sh=Ln=>{Ln||(Ln=""),re(Ln.split(","),In=>{O[In]=!0,he.load(In).catch(ie)})},Wo=(Ln,In,br)=>{co(Ln,hr=>{if(Xr(hr)){const mo=Yt.fromDom(hr),bs=In.split(" ");re(bs,ja=>{B(br)?(br?cm:um)(mo,ja):MO(mo,ja)})}})},Hs=(Ln,In)=>{Wo(Ln,In,!0)},Pa=(Ln,In)=>{Wo(Ln,In,!1)},oi=(Ln,In)=>{const br=It(Ln),hr=In.split(" ");return B(br)&&Xe(hr,mo=>gh(br,mo))},Ua=Ln=>{co(Ln,In=>Jv(Yt.fromDom(In),"display"))},gf=Ln=>{co(Ln,In=>by(Yt.fromDom(In),"display","none"))},Gh=Ln=>{const In=It(Ln);return B(In)&&Qa(Hi(In,"display"),"none")},_v=Ln=>(Ln||"mce_")+P++,OP=Ln=>{const In=It(Ln);return B(In)?Xr(In.dom)?In.dom.outerHTML:e0(In):""},tC=(Ln,In)=>{co(Ln,br=>{Xr(br)&&(br.outerHTML=In)})},xP=(Ln,In)=>{const br=kt(In);return co(Ln,hr=>{const mo=br==null?void 0:br.parentNode,bs=br==null?void 0:br.nextSibling;return mo&&(bs?mo.insertBefore(hr,bs):mo.appendChild(hr)),hr})},j2=(Ln,In,br)=>co(In,hr=>{var mo;const bs=N(In)?Ln.cloneNode(!0):Ln;return br&&JO(ak(hr.childNodes),ja=>{bs.appendChild(ja)}),(mo=hr.parentNode)===null||mo===void 0||mo.replaceChild(bs,hr),hr}),SP=(Ln,In)=>{if(Ln.nodeName!==In.toUpperCase()){const br=Lo(In);return JO(xn(Ln),hr=>{bn(br,hr.nodeName,cn(Ln,hr.nodeName))}),j2(br,Ln,!0),br}else return Ln},q2=(Ln,In)=>{let br=Ln;for(;br;){let hr=In;for(;hr&&br!==hr;)hr=hr.parentNode;if(br===hr)break;br=br.parentNode}return!br&&Ln.ownerDocument?Ln.ownerDocument.documentElement:br},_1=Ln=>{if(Xr(Ln)){const In=Ln.nodeName.toLowerCase()==="a"&&!cn(Ln,"href")&&cn(Ln,"id");if(cn(Ln,"name")||cn(Ln,"data-mce-bookmark")||In)return!0}return!1},jh=(Ln,In,br)=>{let hr=0;if(_1(Ln))return!1;const mo=Ln.firstChild;if(mo){const bs=new ca(mo,Ln),ja=Ge?Ge.getWhitespaceElements():{},pf=In||(Ge?Ge.getNonEmptyElements():null);let fc=mo;do{if(Xr(fc)){const aO=fc.getAttribute("data-mce-bogus");if(aO){fc=bs.next(aO==="all");continue}const ah=fc.nodeName.toLowerCase();if(pf&&pf[ah]){if(ah==="br"){hr++,fc=bs.next();continue}return!1}if(_1(fc))return!1}if(Kf(fc)||lr(fc)&&!Ba(fc.data)&&(!(br!=null&&br.includeZwsp)||!di(fc.data))||lr(fc)&&fc.parentNode&&ja[fc.parentNode.nodeName]&&Ba(fc.data))return!1;fc=bs.next()}while(fc)}return hr<=1},jm=()=>n.createRange(),K2=(Ln,In,br)=>{let hr=jm(),mo,bs;if(Ln&&In&&Ln.parentNode&&In.parentNode){const ja=Ln.parentNode;return hr.setStart(ja,Th(Ln)),hr.setEnd(In.parentNode,Th(In)),mo=hr.extractContents(),hr=jm(),hr.setStart(In.parentNode,Th(In)+1),hr.setEnd(ja,Th(Ln)+1),bs=hr.extractContents(),ja.insertBefore(Sm(hp,mo,Ge),Ln),br?ja.insertBefore(br,Ln):ja.insertBefore(In,Ln),ja.insertBefore(Sm(hp,bs,Ge),Ln),Sa(Ln),br||In}else return},oO=(Ln,In,br,hr)=>{if(N(Ln)){let mo=Ln.length;const bs=[];for(;mo--;)bs[mo]=oO(Ln[mo],In,br,hr);return bs}else return s.collect&&(Ln===n||Ln===h)&&_e.push([Ln,In,br,hr]),ot.bind(Ln,In,br,hr||hp)},nC=(Ln,In,br)=>{if(N(Ln)){let hr=Ln.length;const mo=[];for(;hr--;)mo[hr]=nC(Ln[hr],In,br);return mo}else{if(_e.length>0&&(Ln===n||Ln===h)){let hr=_e.length;for(;hr--;){const[mo,bs,ja]=_e[hr];Ln===mo&&(!In||In===bs)&&(!br||br===ja)&&ot.unbind(mo,bs,ja)}}return ot.unbind(Ln,In,br)}},qm=(Ln,In,br)=>ot.dispatch(Ln,In,br),wP=(Ln,In,br)=>ot.dispatch(Ln,In,br),rC=Ln=>{if(Ln&&zl(Ln)){const In=Ln.getAttribute("data-mce-contenteditable");return In&&In!=="inherit"?In:Ln.contentEditable!=="inherit"?Ln.contentEditable:null}else return null},hp={doc:n,settings:s,win:h,files:O,stdMode:Z,boxModel:J,styleSheetLoader:he,boundEvents:_e,styles:qe,schema:Ge,events:ot,isBlock:Vt,root:null,clone:$n,getRoot:rr,getViewPort:gr,getRect:po,getSize:eo,getParent:ma,getParents:ys,get:kt,getNext:hi,getPrev:uc,select:Cr,is:ls,add:ro,create:Lo,createHTML:Ls,createFragment:Aa,remove:Sa,setStyle:zn,getStyle:tr,setStyles:Bn,removeAllAttribs:$l,setAttrib:bn,setAttribs:Zs,getAttrib:cn,getPos:Qr,parseStyle:Xh,serializeStyle:zf,addStyle:$u,loadCSS:sh,addClass:Hs,removeClass:Pa,hasClass:oi,toggleClass:Wo,show:Ua,hide:gf,isHidden:Gh,uniqueId:_v,setHTML:Ss,getOuterHTML:OP,setOuterHTML:tC,decode:yr,encode:Bo,insertAfter:xP,replace:j2,rename:SP,findCommonAncestor:q2,run:co,getAttribs:xn,isEmpty:jh,createRng:jm,nodeIndex:Th,split:K2,bind:oO,unbind:nC,fire:wP,dispatch:qm,getContentEditable:rC,getContentEditableParent:Ln=>{const In=rr();let br=null;for(let hr=Ln;hr&&hr!==In&&(br=rC(hr),br===null);hr=hr.parentNode);return br},isEditable:Ln=>{if(B(Ln)){const In=Xr(Ln)?Ln:Ln.parentElement;return B(In)&&zl(In)&&jo(Yt.fromDom(In))}else return!1},destroy:()=>{if(_e.length>0){let Ln=_e.length;for(;Ln--;){const[In,br,hr]=_e[Ln];ot.unbind(In,br,hr)}}Bt(O,(Ln,In)=>{he.unload(In),delete O[In]})},isChildOf:(Ln,In)=>Ln===In||In.contains(Ln),dumpRng:Ln=>"startContainer: "+Ln.startContainer.nodeName+", startOffset: "+Ln.startOffset+", endContainer: "+Ln.endContainer.nodeName+", endOffset: "+Ln.endOffset},J2=ik(qe,s,ae(hp));return hp};Da.DOM=Da(document),Da.nodeIndex=Th;const zM=Da.DOM,ki=0,lk=1,Xa=2,v0=3;class Ji{constructor(s={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=s}_setReferrerPolicy(s){this.settings.referrerPolicy=s}loadScript(s){return new Promise((l,h)=>{const O=zM;let P;const Z=()=>{O.remove(_e),P&&(P.onerror=P.onload=P=null)},J=()=>{Z(),l()},he=()=>{Z(),h("Failed to load script: "+s)},_e=O.uniqueId();P=document.createElement("script"),P.id=_e,P.type="text/javascript",P.src=fr._addCacheSuffix(s),this.settings.referrerPolicy&&O.setAttrib(P,"referrerpolicy",this.settings.referrerPolicy),P.onload=J,P.onerror=he,(document.getElementsByTagName("head")[0]||document.body).appendChild(P)})}isDone(s){return this.states[s]===Xa}markDone(s){this.states[s]=Xa}add(s){const l=this;return l.queue.push(s),l.states[s]===void 0&&(l.states[s]=ki),new Promise((O,P)=>{l.scriptLoadedCallbacks[s]||(l.scriptLoadedCallbacks[s]=[]),l.scriptLoadedCallbacks[s].push({resolve:O,reject:P})})}load(s){return this.add(s)}remove(s){delete this.states[s],delete this.scriptLoadedCallbacks[s]}loadQueue(){const s=this.queue;return this.queue=[],this.loadScripts(s)}loadScripts(s){const l=this,h=(he,_e)=>{Sn(l.scriptLoadedCallbacks,_e).each(Ge=>{re(Ge,qe=>qe[he](_e))}),delete l.scriptLoadedCallbacks[_e]},O=he=>{const _e=se(he,Ge=>Ge.status==="rejected");return _e.length>0?Promise.reject(ze(_e,({reason:Ge})=>N(Ge)?Ge:[Ge])):Promise.resolve()},P=he=>Promise.allSettled(Ie(he,_e=>l.states[_e]===Xa?(h("resolve",_e),Promise.resolve()):l.states[_e]===v0?(h("reject",_e),Promise.reject(_e)):(l.states[_e]=lk,l.loadScript(_e).then(()=>{l.states[_e]=Xa,h("resolve",_e);const Ge=l.queue;return Ge.length>0?(l.queue=[],P(Ge).then(O)):Promise.resolve()},()=>(l.states[_e]=v0,h("reject",_e),Promise.reject(_e)))))),Z=he=>(l.loading=!0,P(he).then(_e=>{l.loading=!1;const Ge=l.queueLoadedCallbacks.shift();return G.from(Ge).each(ge),O(_e)})),J=gt(s);return l.loading?new Promise((he,_e)=>{l.queueLoadedCallbacks.push(()=>{Z(J).then(he,_e)})}):Z(J)}}Ji.ScriptLoader=new Ji;const ni=n=>{let s=n;return{get:()=>s,set:O=>{s=O}}},tf=(n,s)=>{const l=n.indexOf(s);return l!==-1&&n.indexOf(s,l+1)>l},iw=n=>I(n)&&it(n,"raw"),Xl=n=>N(n)&&n.length>1,Ny={},y0=ni("en"),Ch=()=>Sn(Ny,y0.get()),sd={getData:()=>vn(Ny,n=>({...n})),setCode:n=>{n&&y0.set(n)},getCode:()=>y0.get(),add:(n,s)=>{let l=Ny[n];l||(Ny[n]=l={});const h=Ie(Gt(s),O=>O.toLowerCase());Bt(s,(O,P)=>{const Z=P.toLowerCase();Z!==P&&tf(h,Z)?(it(s,Z)||(l[Z]=O),l[P]=O):l[Z]=O})},translate:n=>{const s=Ch().getOr({}),l=Z=>E(Z)?Object.prototype.toString.call(Z):h(Z)?"":""+Z,h=Z=>Z===""||Z===null||Z===void 0,O=Z=>{const J=l(Z);return it(s,J)?l(s[J]):Sn(s,J.toLowerCase()).map(l).getOr(J)},P=Z=>Z.replace(/{context:\w+}$/,"");if(h(n))return"";if(iw(n))return l(n.raw);if(Xl(n)){const Z=n.slice(1),J=O(n[0]).replace(/\{([0-9]+)\}/g,(he,_e)=>it(Z,_e)?l(Z[_e]):he);return P(J)}return P(O(n))},isRtl:()=>Ch().bind(n=>Sn(n,"_dir")).exists(n=>n==="rtl"),hasCode:n=>it(Ny,n)},Pc=()=>{const n=[],s={},l={},h=[],O=(kt,It)=>{const cn=se(h,xn=>xn.name===kt&&xn.state===It);re(cn,xn=>xn.resolve())},P=kt=>it(s,kt),Z=kt=>it(l,kt),J=kt=>{if(l[kt])return l[kt].instance},he=(kt,It)=>{const cn=sd.getCode(),xn=","+(It||"")+",";!cn||It&&xn.indexOf(","+cn+",")===-1||Ji.ScriptLoader.add(s[kt]+"/langs/"+cn+".js")},_e=(kt,It)=>{Pc.languageLoad!==!1&&(P(kt)?he(kt,It):Vt(kt,"loaded").then(()=>he(kt,It)))},Ge=(kt,It)=>(n.push(It),l[kt]={instance:It},O(kt,"added"),It),qe=kt=>{delete s[kt],delete l[kt]},ot=(kt,It)=>M(It)?M(kt)?{prefix:"",resource:It,suffix:""}:{prefix:kt.prefix,resource:It,suffix:kt.suffix}:It,Et=(kt,It)=>{if(s[kt])return Promise.resolve();let cn=M(It)?It:It.prefix+It.resource+It.suffix;cn.indexOf("/")!==0&&cn.indexOf("://")===-1&&(cn=Pc.baseURL+"/"+cn),s[kt]=cn.substring(0,cn.lastIndexOf("/"));const xn=()=>(O(kt,"loaded"),Promise.resolve());return l[kt]?xn():Ji.ScriptLoader.add(cn).then(xn)},Vt=(kt,It="added")=>It==="added"&&Z(kt)||It==="loaded"&&P(kt)?Promise.resolve():new Promise(cn=>{h.push({name:kt,state:It,resolve:cn})});return{items:n,urls:s,lookup:l,get:J,requireLangPack:_e,add:Ge,remove:qe,createUrl:ot,load:Et,waitFor:Vt}};Pc.languageLoad=!0,Pc.baseURL="",Pc.PluginManager=Pc(),Pc.ThemeManager=Pc(),Pc.ModelManager=Pc();const HM=n=>{const s=ni(G.none()),l=()=>s.get().each(n);return{clear:()=>{l(),s.set(G.none())},isSet:()=>s.get().isSome(),get:()=>s.get(),set:J=>{l(),s.set(G.some(J))}}},UM=n=>{const s=ni(G.none()),l=()=>s.get().each(J=>clearInterval(J));return{clear:()=>{l(),s.set(G.none())},isSet:()=>s.get().isSome(),get:()=>s.get(),set:J=>{l(),s.set(G.some(setInterval(J,n)))}}},_g=()=>{const n=HM(ie);return{...n,on:l=>n.get().each(l)}},By=(n,s)=>{let l=null;return{cancel:()=>{F(l)||(clearTimeout(l),l=null)},throttle:(...P)=>{F(l)&&(l=setTimeout(()=>{l=null,n.apply(null,P)},s))}}},rx=(n,s)=>{let l=null;const h=()=>{F(l)||(clearTimeout(l),l=null)};return{cancel:h,throttle:(...P)=>{h(),l=setTimeout(()=>{l=null,n.apply(null,P)},s)}}},ox=ae("mce-annotation"),kh=ae("data-mce-annotation"),O0=ae("data-mce-annotation-uid"),x0=ae("data-mce-annotation-active"),S0=ae("data-mce-annotation-classes"),tv=ae("data-mce-annotation-attrs"),uk=n=>s=>Gs(s,n),yi=(n,s)=>{const l=n.selection.getRng(),h=Yt.fromDom(l.startContainer),O=Yt.fromDom(n.getBody()),P=s.fold(()=>"."+ox(),he=>`[${kh()}="${he}"]`),Z=ph(h,l.startOffset).getOr(h);return Mf(Z,P,uk(O)).bind(he=>bc(he,`${O0()}`).bind(_e=>bc(he,`${kh()}`).map(Ge=>{const qe=dk(n,_e);return{uid:_e,name:Ge,elements:qe}})))},fk=n=>kl(n)&&gh(n,ox()),w0=(n,s)=>Cf(n,"data-mce-bogus")||Xp(n,'[data-mce-bogus="all"]',uk(s)),dk=(n,s)=>{const l=Yt.fromDom(n.getBody()),h=sl(l,`[${O0()}="${s}"]`);return se(h,O=>!w0(O,l))},sx=(n,s)=>{const l=Yt.fromDom(n.getBody()),h=sl(l,`[${kh()}="${s}"]`),O={};return re(h,P=>{if(!w0(P,l)){const Z=Al(P,O0()),J=Sn(O,Z).getOr([]);O[Z]=J.concat([P])}}),O},oc=(n,s)=>{const l=ni({}),h=()=>({listeners:[],previous:_g()}),O=(qe,ot)=>{P(qe,Et=>(ot(Et),Et))},P=(qe,ot)=>{const Et=l.get(),Vt=Sn(Et,qe).getOrThunk(h),kt=ot(Vt);Et[qe]=kt,l.set(Et)},Z=(qe,ot,Et)=>{O(qe,Vt=>{re(Vt.listeners,kt=>kt(!0,qe,{uid:ot,nodes:Ie(Et,It=>It.dom)}))})},J=qe=>{O(qe,ot=>{re(ot.listeners,Et=>Et(!1,qe))})},he=(qe,ot)=>{re(dk(n,qe),Et=>{ot?Ra(Et,x0(),"true"):ci(Et,x0())})},_e=rx(()=>{const qe=je(s.getNames());re(qe,ot=>{P(ot,Et=>{const Vt=Et.previous.get();return yi(n,G.some(ot)).fold(()=>{Vt.each(kt=>{J(ot),Et.previous.clear(),he(kt,!1)})},({uid:kt,name:It,elements:cn})=>{Qa(Vt,kt)||(Vt.each(xn=>he(xn,!1)),Z(It,kt,cn),Et.previous.set(kt),he(kt,!0))}),{previous:Et.previous,listeners:Et.listeners}})})},30);return n.on("remove",()=>{_e.cancel()}),n.on("NodeChange",()=>{_e.throttle()}),{addListener:(qe,ot)=>{P(qe,Et=>({previous:Et.previous,listeners:Et.listeners.concat([ot])}))}}},nf=(n,s)=>{const l=kh(),h=P=>G.from(P.attr(l)).bind(s.lookup),O=P=>{var Z,J;P.attr(O0(),null),P.attr(kh(),null),P.attr(x0(),null);const he=G.from(P.attr(tv())).map(ot=>ot.split(",")).getOr([]),_e=G.from(P.attr(S0())).map(ot=>ot.split(",")).getOr([]);re(he,ot=>P.attr(ot,null));const Ge=(J=(Z=P.attr("class"))===null||Z===void 0?void 0:Z.split(" "))!==null&&J!==void 0?J:[],qe=pt(Ge,[ox()].concat(_e));P.attr("class",qe.length>0?qe.join(" "):null),P.attr(S0(),null),P.attr(tv(),null)};n.serializer.addTempAttr(x0()),n.serializer.addAttributeFilter(l,P=>{for(const Z of P)h(Z).each(J=>{J.persistent===!1&&(Z.name==="span"?Z.unwrap():O(Z))})})},hk=()=>{const n={};return{register:(O,P)=>{n[O]={name:O,settings:P}},lookup:O=>Sn(n,O).map(P=>P.settings),getNames:()=>Gt(n)}};let ax=0;const nv=n=>{const l=new Date().getTime(),h=Math.floor(Math.random()*1e9);return ax++,n+"_"+h+ax+String(l)},WM=(n,s)=>{re(s,l=>{cm(n,l)})},mk=(n,s)=>{re(s,l=>{um(n,l)})},lw=(n,s)=>Yt.fromDom(n.dom.cloneNode(s)),Pu=n=>lw(n,!1),ix=n=>lw(n,!0),Ai=(n,s)=>{const l=Yt.fromTag(s),h=Bp(n);return Su(l,h),l},Vd=(n,s)=>{const l=Ai(n,s);Yu(n,l);const h=ol(n);return Ta(l,h),Ks(n),l},T0=(n,s,l=ne)=>{const h=new ca(n,s),O=P=>{let Z;do Z=h[P]();while(Z&&!lr(Z)&&!l(Z));return G.from(Z).filter(lr)};return{current:()=>G.from(h.current()).filter(lr),next:()=>O("next"),prev:()=>O("prev"),prev2:()=>O("prev2")}},Rg=(n,s)=>{const l=s||(Z=>n.isBlock(Z)||aa(Z)||Os(Z)),h=(Z,J,he,_e)=>{if(lr(Z)){const Ge=_e(Z,J,Z.data);if(Ge!==-1)return G.some({container:Z,offset:Ge})}return he().bind(Ge=>h(Ge.container,Ge.offset,he,_e))};return{backwards:(Z,J,he,_e)=>{const Ge=T0(Z,_e??n.getRoot(),l);return h(Z,J,()=>Ge.prev().map(qe=>({container:qe,offset:qe.length})),he).getOrNull()},forwards:(Z,J,he,_e)=>{const Ge=T0(Z,_e??n.getRoot(),l);return h(Z,J,()=>Ge.next().map(qe=>({container:qe,offset:0})),he).getOrNull()}}},rv=Math.round,ov=n=>n?{left:rv(n.left),top:rv(n.top),bottom:rv(n.bottom),right:rv(n.right),width:rv(n.width),height:rv(n.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Am=(n,s)=>(n=ov(n),s||(n.left=n.left+n.width),n.right=n.left,n.width=0,n),gk=(n,s)=>n.left===s.left&&n.top===s.top&&n.bottom===s.bottom&&n.right===s.right,sv=(n,s,l)=>n>=0&&n<=Math.min(s.height,l.height)/2,Dg=(n,s)=>{const l=Math.min(s.height/2,n.height/2);return n.bottom-ls.bottom?!1:sv(s.top-n.bottom,n,s)},av=(n,s)=>n.top>s.bottom?!0:n.bottoms>=n.left&&s<=n.right&&l>=n.top&&l<=n.bottom,YM=n=>oe(n,(s,l)=>s.fold(()=>G.some(l),h=>{const O=Math.min(l.left,h.left),P=Math.min(l.top,h.top),Z=Math.max(l.right,h.right),J=Math.max(l.bottom,h.bottom);return G.some({top:P,right:Z,bottom:J,left:O,width:Z-O,height:J-P})}),G.none()),cw=(n,s,l)=>{const h=Math.max(Math.min(s,n.left+n.width),n.left),O=Math.max(Math.min(l,n.top+n.height),n.top);return Math.sqrt((s-h)*(s-h)+(l-O)*(l-O))},XM=(n,s)=>Math.max(0,Math.min(n.bottom,s.bottom)-Math.max(n.top,s.top)),lx=(n,s,l)=>Math.min(Math.max(n,s),l),uw=n=>{const s=n.startContainer,l=n.startOffset;return s===n.endContainer&&s.hasChildNodes()&&n.endOffset===l+1?s.childNodes[l]:null},Mu=(n,s)=>{if(Xr(n)&&n.hasChildNodes()){const l=n.childNodes,h=lx(s,0,l.length-1);return l[h]}else return n},vk=(n,s)=>{if(!(s<0&&Xr(n)&&n.hasChildNodes()))return Mu(n,s)},C0=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),yk=n=>M(n)&&n.charCodeAt(0)>=768&&C0.test(n),GM=(...n)=>s=>{for(let l=0;ls=>{for(let l=0;ln?n.createRange():Da.DOM.createRng(),Lg=n=>M(n)&&/[\r\n\t ]/.test(n),hw=n=>!!n.setStart&&!!n.setEnd,ux=n=>{const s=n.startContainer,l=n.startOffset;if(Lg(n.toString())&&fw(s.parentNode)&&lr(s)){const h=s.data;if(Lg(h[l-1])||Lg(h[l+1]))return!0}return!1},Vy=n=>{const s=n.ownerDocument,l=Ah(s),h=s.createTextNode(zs),O=n.parentNode;O.insertBefore(h,n),l.setStart(h,0),l.setEnd(h,1);const P=ov(l.getBoundingClientRect());return O.removeChild(h),P},mw=n=>{const s=n.startContainer,l=n.endContainer,h=n.startOffset,O=n.endOffset;if(s===l&&lr(l)&&h===0&&O===1){const P=n.cloneRange();return P.setEndAfter(l),Ph(P)}else return null},fx=n=>n.left===0&&n.right===0&&n.top===0&&n.bottom===0,Ph=n=>{var s;let l;const h=n.getClientRects();return h.length>0?l=ov(h[0]):l=ov(n.getBoundingClientRect()),!hw(n)&&Fy(n)&&fx(l)?Vy(n):fx(l)&&hw(n)&&(s=mw(n))!==null&&s!==void 0?s:l},Pm=(n,s)=>{const l=Am(n,s);return l.width=1,l.right=l.left+1,l},jM=n=>{const s=[],l=Z=>{Z.height!==0&&(s.length>0&&gk(Z,s[s.length-1])||s.push(Z))},h=(Z,J)=>{const he=Ah(Z.ownerDocument);if(J0&&(he.setStart(Z,J-1),he.setEnd(Z,J),ux(he)||l(Pm(Ph(he),!1))),J{const h=()=>(ha(n),s===0),O=()=>ha(n)?s>=n.data.length:s>=n.childNodes.length,P=()=>{const Ge=Ah(n.ownerDocument);return Ge.setStart(n,s),Ge.setEnd(n,s),Ge},Z=()=>(l||(l=jM(Nn(n,s))),l),J=()=>Z().length>0,he=Ge=>Ge&&n===Ge.container()&&s===Ge.offset(),_e=Ge=>cl(n,Ge?s-1:s);return{container:ae(n),offset:ae(s),toRange:P,getClientRects:Z,isVisible:J,isAtStart:h,isAtEnd:O,isEqual:he,getNode:_e}};Nn.fromRangeStart=n=>Nn(n.startContainer,n.startOffset),Nn.fromRangeEnd=n=>Nn(n.endContainer,n.endOffset),Nn.after=n=>Nn(n.parentNode,dw(n)+1),Nn.before=n=>Nn(n.parentNode,dw(n)),Nn.isAbove=(n,s)=>Fa(yt(s.getClientRects()),ft(n.getClientRects()),Dg).getOr(!1),Nn.isBelow=(n,s)=>Fa(ft(s.getClientRects()),yt(n.getClientRects()),av).getOr(!1),Nn.isAtStart=n=>n?n.isAtStart():!1,Nn.isAtEnd=n=>n?n.isAtEnd():!1,Nn.isTextPosition=n=>n?lr(n.container()):!1,Nn.isElementPosition=n=>!Nn.isTextPosition(n);const zy=(n,s)=>{lr(s)&&s.data.length===0&&n.remove(s)},k0=(n,s,l)=>{s.insertNode(l),zy(n,l.previousSibling),zy(n,l.nextSibling)},rf=(n,s,l)=>{const h=G.from(l.firstChild),O=G.from(l.lastChild);s.insertNode(l),h.each(P=>zy(n,P.previousSibling)),O.each(P=>zy(n,P.nextSibling))},gw=(n,s,l)=>{da(l)?rf(n,s,l):k0(n,s,l)},Ha=lr,dx=_f,Mm=Da.nodeIndex,pw=n=>{const s=n.parentNode;return dx(s)?pw(s):s},hx=n=>n?dn(n.childNodes,(s,l)=>(dx(l)&&l.nodeName!=="BR"?s=s.concat(hx(l)):s.push(l),s),[]):[],vw=(n,s)=>{let l=n;for(;(l=l.previousSibling)&&Ha(l);)s+=l.data.length;return s},Zy=n=>s=>n===s,A0=n=>{let s,l;s=hx(pw(n)),l=nn(s,Zy(n),n),s=s.slice(0,l+1);const h=dn(s,(O,P,Z)=>(Ha(P)&&Ha(s[Z-1])&&O++,O),0);return s=Tt(s,vi([n.nodeName])),l=nn(s,Zy(n),n),l-h},yw=n=>(Ha(n)?"text()":n.nodeName.toLowerCase())+"["+A0(n)+"]",qM=(n,s,l)=>{const h=[];for(let O=s.parentNode;O&&O!==n&&!(l&&l(O));O=O.parentNode)h.push(O);return h},Wc=(n,s)=>{let l=[],h=s.container(),O=s.offset(),P;if(Ha(h))P=vw(h,O);else{const J=h.childNodes;O>=J.length?(P="after",O=J.length-1):P="before",h=J[O]}l.push(yw(h));let Z=qM(n,h);return Z=Tt(Z,be(_f)),l=l.concat(mt(Z,J=>yw(J))),l.reverse().join("/")+","+P},ul=(n,s,l)=>{let h=hx(n);return h=Tt(h,(O,P)=>!Ha(O)||!Ha(h[P-1])),h=Tt(h,vi([s])),h[l]},Gl=(n,s)=>{let l=n,h=0;for(;Ha(l);){const O=l.data.length;if(s>=h&&s<=h+O){n=l,s=s-h;break}if(!Ha(l.nextSibling)){n=l,s=O;break}h+=O,l=l.nextSibling}return Ha(n)&&s>n.data.length&&(s=n.data.length),Nn(n,s)},Yc=(n,s)=>{if(!s)return null;const l=s.split(","),h=l[0].split("/"),O=l.length>1?l[1]:"before",P=dn(h,(Z,J)=>{const he=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(J);return he?(he[1]==="text()"&&(he[1]="#text"),ul(Z,he[1],parseInt(he[2],10))):null},n);if(!P)return null;if(!Ha(P)&&P.parentNode){let Z;return O==="after"?Z=Mm(P)+1:Z=Mm(P),Nn(P.parentNode,Z)}return Gl(P,parseInt(O,10))},sc=Os,Mc=(n,s,l)=>{let h=n(s.data.slice(0,l)).length;for(let O=s.previousSibling;O&&lr(O);O=O.previousSibling)h+=n(O.data).length;return h},fl=(n,s,l,h,O)=>{const P=O?h.startContainer:h.endContainer;let Z=O?h.startOffset:h.endOffset;const J=[],he=n.getRoot();if(lr(P))J.push(l?Mc(s,P,Z):Z);else{let _e=0;const Ge=P.childNodes;Z>=Ge.length&&Ge.length&&(_e=1,Z=Math.max(0,Ge.length-1)),J.push(n.nodeIndex(Ge[Z],l)+_e)}for(let _e=P;_e&&_e!==he;_e=_e.parentNode)J.push(n.nodeIndex(_e,l));return J},bw=(n,s,l,h)=>{const O=s.dom,P=fl(O,n,l,h,!0),Z=s.isForward(),J=yn(h)?{isFakeCaret:!0}:{};if(s.isCollapsed())return{start:P,forward:Z,...J};{const he=fl(O,n,l,h,!1);return{start:P,end:he,forward:Z,...J}}},Hy=(n,s,l)=>{let h=0;return fr.each(n.select(s),O=>{if(O.getAttribute("data-mce-bogus")!=="all"){if(O===l)return!1;h++;return}}),h},Ow=(n,s)=>{let l=s?n.startContainer:n.endContainer,h=s?n.startOffset:n.endOffset;if(Xr(l)&&l.nodeName==="TR"){const O=l.childNodes;l=O[Math.min(s?h:h-1,O.length-1)],l&&(h=s?0:l.childNodes.length,s?n.setStart(l,h):n.setEnd(l,h))}},Uy=n=>(Ow(n,!0),Ow(n,!1),n),xw=(n,s)=>{if(Xr(n)&&(n=Mu(n,s),sc(n)))return n;if(bt(n)){lr(n)&&rt(n)&&(n=n.parentNode);let l=n.previousSibling;if(sc(l)||(l=n.nextSibling,sc(l)))return l}},bk=n=>xw(n.startContainer,n.startOffset)||xw(n.endContainer,n.endOffset),mx=(n,s,l)=>{const h=l.getNode(),O=l.getRng();if(h.nodeName==="IMG"||sc(h)){const Z=h.nodeName;return{name:Z,index:Hy(l.dom,Z,h)}}const P=bk(O);if(P){const Z=P.tagName;return{name:Z,index:Hy(l.dom,Z,P)}}return bw(n,l,s,O)},Sw=n=>{const s=n.getRng();return{start:Wc(n.dom.getRoot(),Nn.fromRangeStart(s)),end:Wc(n.dom.getRoot(),Nn.fromRangeEnd(s)),forward:n.isForward()}},KM=n=>({rng:n.getRng(),forward:n.isForward()}),JM=(n,s,l)=>{const h={"data-mce-type":"bookmark",id:s,style:"overflow:hidden;line-height:0px"};return l?n.create("span",h,""):n.create("span",h)},Ok=(n,s)=>{const l=n.dom;let h=n.getRng();const O=l.uniqueId(),P=n.isCollapsed(),Z=n.getNode(),J=Z.nodeName,he=n.isForward();if(J==="IMG")return{name:J,index:Hy(l,J,Z)};const _e=Uy(h.cloneRange());if(!P){_e.collapse(!1);const qe=JM(l,O+"_end",s);gw(l,_e,qe)}h=Uy(h),h.collapse(!0);const Ge=JM(l,O+"_start",s);return gw(l,h,Ge),n.moveToBookmark({id:O,keep:!0,forward:he}),{id:O,forward:he}},eE=(n,s,l=!1)=>s===2?mx(Pe,l,n):s===3?Sw(n):s?KM(n):Ok(n,!1),P0=ee(mx,q,!0),gx=n=>{const s=P=>P(n),l=ae(n),h=()=>O,O={tag:!0,inner:n,fold:(P,Z)=>Z(n),isValue:pe,isError:ne,map:P=>iu.value(P(n)),mapError:h,bind:s,exists:s,forall:s,getOr:l,or:h,getOrThunk:l,orThunk:h,getOrDie:l,each:P=>{P(n)},toOptional:()=>G.some(n)};return O},xk=n=>{const s=()=>l,l={tag:!1,inner:n,fold:(h,O)=>h(n),isValue:ne,isError:pe,map:s,mapError:h=>iu.error(h(n)),bind:s,exists:ne,forall:pe,getOr:q,or:q,getOrThunk:Be,orThunk:Be,getOrDie:Te(String(n)),each:ie,toOptional:G.none};return l},iu={value:gx,error:xk,fromOption:(n,s)=>n.fold(()=>xk(s),gx)},Zd={generate:n=>{if(!N(n))throw new Error("cases must be an array");if(n.length===0)throw new Error("there must be at least one case");const s=[],l={};return re(n,(h,O)=>{const P=Gt(h);if(P.length!==1)throw new Error("one and only one name per case");const Z=P[0],J=h[Z];if(l[Z]!==void 0)throw new Error("duplicate key detected:"+Z);if(Z==="cata")throw new Error("cannot have a case named cata (sorry)");if(!N(J))throw new Error("case arguments must be an array");s.push(Z),l[Z]=(...he)=>{const _e=he.length;if(_e!==J.length)throw new Error("Wrong number of arguments to case "+Z+". Expected "+J.length+" ("+J+"), got "+_e);return{fold:(...qe)=>{if(qe.length!==n.length)throw new Error("Wrong number of arguments to fold. Expected "+n.length+", got "+qe.length);return qe[O].apply(null,he)},match:qe=>{const ot=Gt(qe);if(s.length!==ot.length)throw new Error("Wrong number of arguments to match. Expected: "+s.join(",")+` +Actual: `+ot.join(","));if(!Xe(s,Vt=>Ze(ot,Vt)))throw new Error("Not all branches were specified when using match. Specified: "+ot.join(", ")+` +Required: `+s.join(", "));return qe[Z].apply(null,he)},log:qe=>{console.log(qe,{constructors:s,constructor:Z,params:he})}}}}),l}};Zd.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const pr=n=>{const s=[],l=[];return re(n,h=>{h.fold(O=>{s.push(O)},O=>{l.push(O)})}),{errors:s,values:l}},ww=n=>n.type==="inline-command"||n.type==="inline-format",dl=n=>n.type==="block-command"||n.type==="block-format",Sk=n=>{const s=h=>iu.error({message:h,pattern:n}),l=(h,O,P)=>{if(n.format!==void 0){let Z;if(N(n.format)){if(!Xe(n.format,M))return s(h+" pattern has non-string items in the `format` array");Z=n.format}else if(M(n.format))Z=[n.format];else return s(h+" pattern has non-string `format` parameter");return iu.value(O(Z))}else return n.cmd!==void 0?M(n.cmd)?iu.value(P(n.cmd,n.value)):s(h+" pattern has non-string `cmd` parameter"):s(h+" pattern is missing both `format` and `cmd` parameters")};if(!I(n))return s("Raw pattern is not an object");if(!M(n.start))return s("Raw pattern is missing `start` parameter");if(n.end!==void 0){if(!M(n.end))return s("Inline pattern has non-string `end` parameter");if(n.start.length===0&&n.end.length===0)return s("Inline pattern has empty `start` and `end` parameters");let h=n.start,O=n.end;return O.length===0&&(O=h,h=""),l("Inline",P=>({type:"inline-format",start:h,end:O,format:P}),(P,Z)=>({type:"inline-command",start:h,end:O,cmd:P,value:Z}))}else return n.replacement!==void 0?M(n.replacement)?n.start.length===0?s("Replacement pattern has empty `start` parameter"):iu.value({type:"inline-command",start:"",end:n.start,cmd:"mceInsertContent",value:n.replacement}):s("Replacement pattern has non-string `replacement` parameter"):n.start.length===0?s("Block pattern has empty `start` parameter"):l("Block",h=>({type:"block-format",start:n.start,format:h[0]}),(h,O)=>({type:"block-command",start:n.start,cmd:h,value:O}))},px=n=>se(n,dl),Tw=n=>se(n,ww),lu=(n,s)=>({inlinePatterns:Tw(n),blockPatterns:px(n),dynamicPatternsLookup:s}),tE=n=>{const s=pr(Ie(n,Sk));return re(s.errors,l=>console.error(l.message,l.pattern)),s.values},wk=n=>s=>{const l=n(s);return tE(l)},cu=ii().deviceType,M0=cu.isTouch(),Wy=Da.DOM,Mh=n=>{const s=n.indexOf("=")>0?n.split(/[;,](?![^=;,]*(?:[;,]|$))/):n.split(",");return oe(s,(l,h)=>{const O=h.split("="),P=O[0],Z=O.length>1?O[1]:P;return l[wr(P)]=wr(Z),l},{})},ad=n=>R(n,RegExp),Ur=n=>s=>s.options.get(n),of=n=>M(n)||I(n),Tk=(n,s="")=>l=>{const h=M(l);if(h)if(l.indexOf("=")!==-1){const O=Mh(l);return{value:Sn(O,n.id).getOr(s),valid:h}}else return{value:l,valid:h};else return{valid:!1,message:"Must be a string."}},Ck=n=>{const s=n.options.register;s("id",{processor:"string",default:n.id}),s("selector",{processor:"string"}),s("target",{processor:"object"}),s("suffix",{processor:"string"}),s("cache_suffix",{processor:"string"}),s("base_url",{processor:"string"}),s("referrer_policy",{processor:"string",default:""}),s("language_load",{processor:"boolean",default:!0}),s("inline",{processor:"boolean",default:!1}),s("iframe_attrs",{processor:"object",default:{}}),s("doctype",{processor:"string",default:""}),s("document_base_url",{processor:"string",default:n.documentBaseUrl}),s("body_id",{processor:Tk(n,"tinymce"),default:"tinymce"}),s("body_class",{processor:Tk(n),default:""}),s("content_security_policy",{processor:"string",default:""}),s("br_in_pre",{processor:"boolean",default:!0}),s("forced_root_block",{processor:l=>{const h=M(l)&&St(l);return h?{value:l,valid:h}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),s("forced_root_block_attrs",{processor:"object",default:{}}),s("newline_behavior",{processor:l=>{const h=Ze(["block","linebreak","invert","default"],l);return h?{value:l,valid:h}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),s("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),s("no_newline_selector",{processor:"string",default:""}),s("keep_styles",{processor:"boolean",default:!0}),s("end_container_on_empty_block",{processor:l=>z(l)?{valid:!0,value:l}:M(l)?{valid:!0,value:l}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),s("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),s("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),s("font_size_classes",{processor:"string",default:""}),s("automatic_uploads",{processor:"boolean",default:!0}),s("images_reuse_filename",{processor:"boolean",default:!1}),s("images_replace_blob_uris",{processor:"boolean",default:!0}),s("icons",{processor:"string",default:""}),s("icons_url",{processor:"string",default:""}),s("images_upload_url",{processor:"string",default:""}),s("images_upload_base_path",{processor:"string",default:""}),s("images_upload_credentials",{processor:"boolean",default:!1}),s("images_upload_handler",{processor:"function"}),s("language",{processor:"string",default:"en"}),s("language_url",{processor:"string",default:""}),s("entity_encoding",{processor:"string",default:"named"}),s("indent",{processor:"boolean",default:!0}),s("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),s("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),s("indent_use_margin",{processor:"boolean",default:!1}),s("indentation",{processor:"string",default:"40px"}),s("content_css",{processor:l=>{const h=l===!1||M(l)||Y(l,M);return h?M(l)?{value:Ie(l.split(","),wr),valid:h}:N(l)?{value:l,valid:h}:l===!1?{value:[],valid:h}:{value:l,valid:h}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:Iw(n)?[]:["default"]}),s("content_style",{processor:"string"}),s("content_css_cors",{processor:"boolean",default:!1}),s("font_css",{processor:l=>{const h=M(l)||Y(l,M);return h?{value:N(l)?l:Ie(l.split(","),wr),valid:h}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),s("inline_boundaries",{processor:"boolean",default:!0}),s("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),s("object_resizing",{processor:l=>{const h=z(l)||M(l);return h?l===!1||cu.isiPhone()||cu.isiPad()?{value:"",valid:h}:{value:l===!0?"table,img,figure.image,div,video,iframe":l,valid:h}:{valid:!1,message:"Must be boolean or a string"}},default:!M0}),s("resize_img_proportional",{processor:"boolean",default:!0}),s("event_root",{processor:"object"}),s("service_message",{processor:"string"}),s("theme",{processor:l=>l===!1||M(l)||E(l),default:"silver"}),s("theme_url",{processor:"string"}),s("formats",{processor:"object"}),s("format_empty_lines",{processor:"boolean",default:!1}),s("format_noneditable_selector",{processor:"string",default:""}),s("preview_styles",{processor:l=>{const h=l===!1||M(l);return h?{value:l===!1?"":l,valid:h}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),s("custom_ui_selector",{processor:"string",default:""}),s("hidden_input",{processor:"boolean",default:!0}),s("submit_patch",{processor:"boolean",default:!0}),s("encoding",{processor:"string"}),s("add_form_submit_trigger",{processor:"boolean",default:!0}),s("add_unload_trigger",{processor:"boolean",default:!0}),s("custom_undo_redo_levels",{processor:"number",default:0}),s("disable_nodechange",{processor:"boolean",default:!1}),s("readonly",{processor:"boolean",default:!1}),s("editable_root",{processor:"boolean",default:!0}),s("plugins",{processor:"string[]",default:[]}),s("external_plugins",{processor:"object"}),s("forced_plugins",{processor:"string[]"}),s("model",{processor:"string",default:n.hasPlugin("rtc")?"plugin":"dom"}),s("model_url",{processor:"string"}),s("block_unsupported_drop",{processor:"boolean",default:!0}),s("visual",{processor:"boolean",default:!0}),s("visual_table_class",{processor:"string",default:"mce-item-table"}),s("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),s("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),s("setup",{processor:"function"}),s("init_instance_callback",{processor:"function"}),s("url_converter",{processor:"function",default:n.convertURL}),s("url_converter_scope",{processor:"object",default:n}),s("urlconverter_callback",{processor:"function"}),s("allow_conditional_comments",{processor:"boolean",default:!1}),s("allow_html_data_urls",{processor:"boolean",default:!1}),s("allow_svg_data_urls",{processor:"boolean"}),s("allow_html_in_named_anchor",{processor:"boolean",default:!1}),s("allow_script_urls",{processor:"boolean",default:!1}),s("allow_unsafe_link_target",{processor:"boolean",default:!1}),s("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),s("fix_list_elements",{processor:"boolean",default:!1}),s("preserve_cdata",{processor:"boolean",default:!1}),s("remove_trailing_brs",{processor:"boolean",default:!0}),s("pad_empty_with_br",{processor:"boolean",default:!1}),s("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),s("element_format",{processor:"string",default:"html"}),s("entities",{processor:"string"}),s("schema",{processor:"string",default:"html5"}),s("convert_urls",{processor:"boolean",default:!0}),s("relative_urls",{processor:"boolean",default:!0}),s("remove_script_host",{processor:"boolean",default:!0}),s("custom_elements",{processor:"string"}),s("extended_valid_elements",{processor:"string"}),s("invalid_elements",{processor:"string"}),s("invalid_styles",{processor:of}),s("valid_children",{processor:"string"}),s("valid_classes",{processor:of}),s("valid_elements",{processor:"string"}),s("valid_styles",{processor:of}),s("verify_html",{processor:"boolean",default:!0}),s("auto_focus",{processor:l=>M(l)||l===!0}),s("browser_spellcheck",{processor:"boolean",default:!1}),s("protect",{processor:"array"}),s("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),s("deprecation_warnings",{processor:"boolean",default:!0}),s("a11y_advanced_options",{processor:"boolean",default:!1}),s("api_key",{processor:"string"}),s("paste_block_drop",{processor:"boolean",default:!1}),s("paste_data_images",{processor:"boolean",default:!0}),s("paste_preprocess",{processor:"function"}),s("paste_postprocess",{processor:"function"}),s("paste_webkit_styles",{processor:"string",default:"none"}),s("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),s("paste_merge_formats",{processor:"boolean",default:!0}),s("smart_paste",{processor:"boolean",default:!0}),s("paste_as_text",{processor:"boolean",default:!1}),s("paste_tab_spaces",{processor:"number",default:4}),s("text_patterns",{processor:l=>Y(l,I)||l===!1?{value:tE(l===!1?[]:l),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"1. ",cmd:"InsertOrderedList"},{start:"* ",cmd:"InsertUnorderedList"},{start:"- ",cmd:"InsertUnorderedList"}]}),s("text_patterns_lookup",{processor:l=>E(l)?{value:wk(l),valid:!0}:{valid:!1,message:"Must be a single function"},default:l=>[]}),s("noneditable_class",{processor:"string",default:"mceNonEditable"}),s("editable_class",{processor:"string",default:"mceEditable"}),s("noneditable_regexp",{processor:l=>Y(l,ad)?{value:l,valid:!0}:ad(l)?{value:[l],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),s("table_tab_navigation",{processor:"boolean",default:!0}),s("highlight_on_focus",{processor:"boolean",default:!1}),s("xss_sanitization",{processor:"boolean",default:!0}),s("details_initial_state",{processor:l=>{const h=Ze(["inherited","collapsed","expanded"],l);return h?{value:l,valid:h}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),s("details_serialized_state",{processor:l=>{const h=Ze(["inherited","collapsed","expanded"],l);return h?{value:l,valid:h}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),s("init_content_sync",{processor:"boolean",default:!1}),s("newdocument_content",{processor:"string",default:""}),s("force_hex_color",{processor:l=>{const h=["always","rgb_only","off"],O=Ze(h,l);return O?{value:l,valid:O}:{valid:!1,message:`Must be one of: ${h.join(", ")}.`}},default:"off"}),s("sandbox_iframes",{processor:"boolean",default:!1}),s("convert_unsafe_embeds",{processor:"boolean",default:!1}),n.on("ScriptsLoaded",()=>{s("directionality",{processor:"string",default:sd.isRtl()?"rtl":void 0}),s("placeholder",{processor:"string",default:Wy.getAttrib(n.getElement(),"placeholder")})})},Cw=Ur("iframe_attrs"),kk=Ur("doctype"),kw=Ur("document_base_url"),Aw=Ur("body_id"),nE=Ur("body_class"),Pw=Ur("content_security_policy"),rE=Ur("br_in_pre"),Ec=Ur("forced_root_block"),Yy=Ur("forced_root_block_attrs"),oE=Ur("newline_behavior"),sE=Ur("br_newline_selector"),Mw=Ur("no_newline_selector"),aE=Ur("keep_styles"),Ak=Ur("end_container_on_empty_block"),Pk=Ur("automatic_uploads"),Xy=Ur("images_reuse_filename"),Mk=Ur("images_replace_blob_uris"),Ew=Ur("icons"),iv=Ur("icons_url"),iE=Ur("images_upload_url"),lE=Ur("images_upload_base_path"),_w=Ur("images_upload_credentials"),cE=Ur("images_upload_handler"),Em=Ur("content_css_cors"),gs=Ur("referrer_policy"),Rw=Ur("language"),_c=Ur("language_url"),vx=Ur("indent_use_margin"),Dw=Ur("indentation"),$w=Ur("content_css"),yx=Ur("content_style"),Ek=Ur("font_css"),uE=Ur("directionality"),fE=Ur("inline_boundaries_selector"),E0=Ur("object_resizing"),_k=Ur("resize_img_proportional"),n9=Ur("placeholder"),Ig=Ur("event_root"),dE=Ur("service_message"),_0=Ur("theme"),hE=Ur("theme_url"),Lw=Ur("model"),Rk=Ur("model_url"),lv=Ur("inline_boundaries"),mE=Ur("formats"),Dk=Ur("preview_styles"),$k=Ur("format_empty_lines"),R0=Ur("format_noneditable_selector"),Lk=Ur("custom_ui_selector"),Iw=Ur("inline"),gE=Ur("hidden_input"),Ik=Ur("submit_patch"),Eh=Ur("add_form_submit_trigger"),Gy=Ur("add_unload_trigger"),jy=Ur("custom_undo_redo_levels"),bx=Ur("disable_nodechange"),qy=Ur("readonly"),Lf=Ur("editable_root"),D0=Ur("content_css_cors"),Ky=Ur("plugins"),Ng=Ur("external_plugins"),Ox=Ur("block_unsupported_drop"),pE=Ur("visual"),vE=Ur("visual_table_class"),Nk=Ur("visual_anchor_class"),yE=Ur("iframe_aria_text"),Nw=Ur("setup"),bE=Ur("init_instance_callback"),OE=Ur("urlconverter_callback"),Bk=Ur("auto_focus"),xE=Ur("browser_spellcheck"),Qk=Ur("protect"),SE=Ur("paste_block_drop"),xx=Ur("paste_data_images"),wE=Ur("paste_preprocess"),Fk=Ur("paste_postprocess"),$0=Ur("newdocument_content"),Bw=Ur("paste_webkit_styles"),Qw=Ur("paste_remove_styles_if_webkit"),Fw=Ur("paste_merge_formats"),Vk=Ur("smart_paste"),Vw=Ur("paste_as_text"),TE=Ur("paste_tab_spaces"),Sx=Ur("allow_html_data_urls"),wx=Ur("text_patterns"),CE=Ur("text_patterns_lookup"),zw=Ur("noneditable_class"),zk=Ur("editable_class"),kE=Ur("noneditable_regexp"),Zw=Ur("preserve_cdata"),AE=Ur("highlight_on_focus"),L0=Ur("xss_sanitization"),PE=Ur("init_content_sync"),Hw=n=>n.options.isSet("text_patterns_lookup"),ME=n=>fr.explode(n.options.get("font_size_style_values")),EE=n=>fr.explode(n.options.get("font_size_classes")),_E=n=>n.options.get("encoding")==="xml",Zk=n=>fr.explode(n.options.get("images_file_types")),RE=Ur("table_tab_navigation"),_l=Ur("details_initial_state"),r9=Ur("details_serialized_state"),I0=Ur("force_hex_color"),Tx=Ur("sandbox_iframes"),Hk=Xr,Uw=lr,Uk=n=>{const s=n.parentNode;s&&s.removeChild(n)},Wk=n=>{const s=Pe(n);return{count:n.length-s.length,text:s}},cv=n=>{let s;for(;(s=n.data.lastIndexOf(de))!==-1;)n.deleteData(s,1)},Jy=(n,s)=>(hl(n),s),DE=(n,s)=>{const l=Wk(n.data.substr(0,s.offset())),h=Wk(n.data.substr(s.offset()));return(l.text+h.text).length>0?(cv(n),Nn(n,s.offset()-l.count)):s},$E=(n,s)=>{const l=s.container(),h=$e(tt(l.childNodes),n).map(O=>OUw(n)&&s.container()===n?DE(n,s):Jy(n,s),Ww=(n,s)=>s.container()===n.parentNode?$E(n,s):Jy(n,s),Yk=(n,s)=>Nn.isTextPosition(s)?eb(n,s):Ww(n,s),hl=n=>{Hk(n)&&bt(n)&&(Zt(n)?n.removeAttribute("data-mce-caret"):Uk(n)),Uw(n)&&(cv(n),n.data.length===0&&Uk(n))},Xk=Os,Yw=ei,o9=jp,N0="*[contentEditable=false],video,audio,embed,object",LE=(n,s,l)=>{const h=Am(s.getBoundingClientRect(),l);let O,P;if(n.tagName==="BODY"){const J=n.ownerDocument.documentElement;O=n.scrollLeft||J.scrollLeft,P=n.scrollTop||J.scrollTop}else{const J=n.getBoundingClientRect();O=n.scrollLeft-J.left,P=n.scrollTop-J.top}h.left+=O,h.right+=O,h.top+=P,h.bottom+=P,h.width=1;let Z=s.offsetWidth-s.clientWidth;return Z>0&&(l&&(Z*=-1),h.left+=Z,h.right+=Z),h},Gk=n=>{var s,l;const h=sl(Yt.fromDom(n),N0);for(let O=0;O{const O=_g();let P,Z;const J=Ec(n),he=n.dom,_e=(kt,It)=>{let cn;if(Ge(),o9(It))return null;if(l(It)){const xn=jt(J,It,kt),bn=LE(s,It,kt);he.setStyle(xn,"top",bn.top),Z=xn;const $n=he.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});he.setStyles($n,{...bn}),he.add(s,$n),O.set({caret:$n,element:It,before:kt}),kt&&he.addClass($n,"mce-visual-caret-before"),qe(),cn=It.ownerDocument.createRange(),cn.setStart(xn,0),cn.setEnd(xn,0)}else return Z=Ut(It,kt),cn=It.ownerDocument.createRange(),Cx(Z.nextSibling)?(cn.setStart(Z,0),cn.setEnd(Z,0)):(cn.setStart(Z,1),cn.setEnd(Z,1)),cn;return cn},Ge=()=>{Gk(s),Z&&(hl(Z),Z=null),O.on(kt=>{he.remove(kt.caret),O.clear()}),P&&(clearInterval(P),P=void 0)},qe=()=>{P=setInterval(()=>{O.on(kt=>{h()?he.toggleClass(kt.caret,"mce-visual-caret-hidden"):he.addClass(kt.caret,"mce-visual-caret-hidden")})},500)};return{show:_e,hide:Ge,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{O.on(kt=>{const It=LE(s,kt.element,kt.before);he.setStyles(kt.caret,{...It})})},destroy:()=>clearInterval(P)}},tb=()=>Dr.browser.isFirefox(),Cx=n=>Xk(n)||Yw(n),B0=n=>(Cx(n)||ju(n)&&tb())&&yg(Yt.fromDom(n)).exists(jo),IE=Zl,Bg=Os,jk=ei,Qg=$d("display","block table table-cell table-caption list-item"),Fg=bt,Gw=rt,qk=Xr,s9=lr,jw=go,Vg=n=>n>0,_h=n=>n<0,nb=(n,s)=>{let l;for(;l=n(s);)if(!Gw(l))return l;return null},Q0=(n,s,l,h,O)=>{const P=new ca(n,h),Z=Bg(n)||Gw(n);let J;if(_h(s)){if(Z&&(J=nb(P.prev.bind(P),!0),l(J)))return J;for(;J=nb(P.prev.bind(P),O);)if(l(J))return J}if(Vg(s)){if(Z&&(J=nb(P.next.bind(P),!0),l(J)))return J;for(;J=nb(P.next.bind(P),O);)if(l(J))return J}return null},qw=(n,s)=>{const l=O=>IE(O.dom),h=O=>O.dom===s;return ui(Yt.fromDom(n),l,h).map(O=>O.dom).getOr(s)},_m=(n,s)=>{for(;n&&n!==s;){if(Qg(n))return n;n=n.parentNode}return null},Hd=(n,s,l)=>_m(n.container(),l)===_m(s.container(),l),rb=(n,s)=>{if(!s)return G.none();const l=s.container(),h=s.offset();return qk(l)?G.from(l.childNodes[h+n]):G.none()},kx=(n,s)=>{var l;const O=((l=s.ownerDocument)!==null&&l!==void 0?l:document).createRange();return n?(O.setStartBefore(s),O.setEndBefore(s)):(O.setStartAfter(s),O.setEndAfter(s)),O},ob=(n,s,l)=>_m(s,n)===_m(l,n),Kw=(n,s,l)=>{const h=n?"previousSibling":"nextSibling";let O=l;for(;O&&O!==s;){let P=O[h];if(P&&Fg(P)&&(P=P[h]),Bg(P)||jk(P)){if(ob(s,P,O))return P;break}if(jw(P))break;O=O.parentNode}return null},F0=ee(kx,!0),sb=ee(kx,!1),Jw=(n,s,l)=>{let h;const O=ee(Kw,!0,s),P=ee(Kw,!1,s),Z=l.startContainer,J=l.startOffset;if(rt(Z)){const he=s9(Z)?Z.parentNode:Z,_e=he.getAttribute("data-mce-caret");if(_e==="before"&&(h=he.nextSibling,B0(h)))return F0(h);if(_e==="after"&&(h=he.previousSibling,B0(h)))return sb(h)}if(!l.collapsed)return l;if(lr(Z)){if(Fg(Z)){if(n===1){if(h=P(Z),h)return F0(h);if(h=O(Z),h)return sb(h)}if(n===-1){if(h=O(Z),h)return sb(h);if(h=P(Z),h)return F0(h)}return l}if(hn(Z)&&J>=Z.data.length-1)return n===1&&(h=P(Z),h)?F0(h):l;if(tn(Z)&&J<=1)return n===-1&&(h=O(Z),h)?sb(h):l;if(J===Z.data.length)return h=P(Z),h?F0(h):l;if(J===0)return h=O(Z),h?sb(h):l}return l},Kk=(n,s)=>rb(n?0:-1,s).filter(Bg),zg=(n,s,l)=>{const h=Jw(n,s,l);return n===-1?Nn.fromRangeStart(h):Nn.fromRangeEnd(h)},Ax=n=>G.from(n.getNode()).map(Yt.fromDom),NE=n=>G.from(n.getNode(!0)).map(Yt.fromDom),Jk=(n,s)=>{let l=s;for(;l=n(l);)if(l.isVisible())return l;return l},eT=(n,s)=>{const l=Hd(n,s);return!l&&aa(n.getNode())?!0:l};var Pi;(function(n){n[n.Backwards=-1]="Backwards",n[n.Forwards=1]="Forwards"})(Pi||(Pi={}));const a9=Os,Rm=lr,eA=Xr,Px=aa,Zg=go,ac=Do,V0=ms,ab=(n,s)=>{const l=[];let h=n;for(;h&&h!==s;)l.push(h),h=h.parentNode;return l},z0=(n,s)=>n.hasChildNodes()&&s{if(Vg(n)){if(Zg(s.previousSibling)&&!Rm(s.previousSibling))return Nn.before(s);if(Rm(s))return Nn(s,0)}if(_h(n)){if(Zg(s.nextSibling)&&!Rm(s.nextSibling))return Nn.after(s);if(Rm(s))return Nn(s,s.data.length)}return _h(n)?Px(s)?Nn.before(s):Nn.after(s):Nn.before(s)},Z0=(n,s)=>{const l=s.nextSibling;return l&&Zg(l)?Rm(l)?Nn(l,0):Nn.before(l):uv(Pi.Forwards,Nn.after(s),n)},uv=(n,s,l)=>{let h,O,P,Z;if(!eA(l)||!s)return null;if(s.isEqual(Nn.after(l))&&l.lastChild){if(Z=Nn.after(l.lastChild),_h(n)&&Zg(l.lastChild)&&eA(l.lastChild))return Px(l.lastChild)?Nn.before(l.lastChild):Z}else Z=s;const J=Z.container();let he=Z.offset();if(Rm(J)){if(_h(n)&&he>0)return Nn(J,--he);if(Vg(n)&&he0&&(O=z0(J,he-1),Zg(O)))return!ac(O)&&(P=Q0(O,n,V0,O),P)?Rm(P)?Nn(P,P.data.length):Nn.after(P):Rm(O)?Nn(O,O.data.length):Nn.before(O);if(Vg(n)&&he({next:s=>uv(Pi.Forwards,s,n),prev:s=>uv(Pi.Backwards,s,n)}),BE=(n,s,l)=>{const h=n?Nn.before(l):Nn.after(l);return Rl(n,s,h)},QE=n=>aa(n)?Nn.before(n):Nn.after(n),Hg=n=>Nn.isTextPosition(n)?n.offset()===0:go(n.getNode()),H0=n=>{if(Nn.isTextPosition(n)){const s=n.container();return n.offset()===s.data.length}else return go(n.getNode(!0))},Mx=(n,s)=>!Nn.isTextPosition(n)&&!Nn.isTextPosition(s)&&n.getNode()===s.getNode(!0),Rh=n=>!Nn.isTextPosition(n)&&aa(n.getNode()),nT=(n,s,l)=>n?!Mx(s,l)&&!Rh(s)&&H0(s)&&Hg(l):!Mx(l,s)&&Hg(s)&&H0(l),Rl=(n,s,l)=>{const h=Ud(s);return G.from(n?h.next(l):h.prev(l))},Dm=(n,s,l)=>Rl(n,s,l).bind(h=>Hd(l,h,s)&&nT(n,l,h)?Rl(n,s,h):G.some(h)),id=(n,s,l,h)=>Dm(n,s,l).bind(O=>h(O)?id(n,s,O,h):G.some(O)),U0=(n,s)=>{const l=n?s.firstChild:s.lastChild;return lr(l)?G.some(Nn(l,n?0:l.data.length)):l?go(l)?G.some(n?Nn.before(l):QE(l)):BE(n,s,l):G.none()},Rc=ee(Rl,!0),uu=ee(Rl,!1),Xc=ee(U0,!0),ld=ee(U0,!1),Ex="_mce_caret",sf=n=>Xr(n)&&n.id===Ex,fv=(n,s)=>{let l=s;for(;l&&l!==n;){if(sf(l))return l;l=l.parentNode}return null},rT=n=>M(n.start),FE=n=>it(n,"rng"),tA=n=>it(n,"id"),ib=n=>it(n,"name"),nA=n=>fr.isArray(n.start),lb=n=>!ib(n)&&z(n.forward)?n.forward:!0,_x=(n,s)=>(Xr(s)&&n.isBlock(s)&&!s.innerHTML&&(s.innerHTML='
    '),s),VE=(n,s)=>{const l=G.from(Yc(n.getRoot(),s.start)),h=G.from(Yc(n.getRoot(),s.end));return Fa(l,h,(O,P)=>{const Z=n.createRng();return Z.setStart(O.container(),O.offset()),Z.setEnd(P.container(),P.offset()),{range:Z,forward:lb(s)}})},rA=(n,s)=>{var l;const O=((l=n.ownerDocument)!==null&&l!==void 0?l:document).createTextNode(de);n.appendChild(O),s.setStart(O,0),s.setEnd(O,0)},zE=n=>!n.hasChildNodes(),i9=(n,s)=>ld(n).fold(ne,l=>(s.setStart(l.container(),l.offset()),s.setEnd(l.container(),l.offset()),!0)),oA=(n,s,l)=>zE(s)&&fv(n,s)?(rA(s,l),!0):!1,As=(n,s,l,h)=>{const O=l[s?"start":"end"],P=n.getRoot();if(O){let Z=P,J=O[0];for(let he=O.length-1;Z&&he>=1;he--){const _e=Z.childNodes;if(oA(P,Z,h))return!0;if(O[he]>_e.length-1)return oA(P,Z,h)?!0:i9(Z,h);Z=_e[O[he]]}lr(Z)&&(J=Math.min(O[0],Z.data.length)),Xr(Z)&&(J=Math.min(O[0],Z.childNodes.length)),s?h.setStart(Z,J):h.setEnd(Z,J)}return!0},Wd=n=>lr(n)&&n.data.length>0,dv=(n,s,l)=>{const h=n.get(l.id+"_"+s),O=h==null?void 0:h.parentNode,P=l.keep;if(h&&O){let Z,J;if(s==="start"?P?h.hasChildNodes()?(Z=h.firstChild,J=1):Wd(h.nextSibling)?(Z=h.nextSibling,J=0):Wd(h.previousSibling)?(Z=h.previousSibling,J=h.previousSibling.data.length):(Z=O,J=n.nodeIndex(h)+1):(Z=O,J=n.nodeIndex(h)):P?h.hasChildNodes()?(Z=h.firstChild,J=1):Wd(h.previousSibling)?(Z=h.previousSibling,J=h.previousSibling.data.length):(Z=O,J=n.nodeIndex(h)):(Z=O,J=n.nodeIndex(h)),!P){const he=h.previousSibling,_e=h.nextSibling;fr.each(fr.grep(h.childNodes),qe=>{lr(qe)&&(qe.data=qe.data.replace(/\uFEFF/g,""))});let Ge;for(;Ge=n.get(l.id+"_"+s);)n.remove(Ge,!0);if(lr(_e)&&lr(he)&&!Dr.browser.isOpera()){const qe=he.data.length;he.appendData(_e.data),n.remove(_e),Z=he,J=qe}}return G.some(Nn(Z,J))}else return G.none()},oT=(n,s)=>{const l=n.createRng();return As(n,!0,s,l)&&As(n,!1,s,l)?G.some({range:l,forward:lb(s)}):G.none()},sA=(n,s)=>{const l=dv(n,"start",s),h=dv(n,"end",s);return Fa(l,h.or(l),(O,P)=>{const Z=n.createRng();return Z.setStart(_x(n,O.container()),O.offset()),Z.setEnd(_x(n,P.container()),P.offset()),{range:Z,forward:lb(s)}})},cb=(n,s)=>G.from(n.select(s.name)[s.index]).map(l=>{const h=n.createRng();return h.selectNode(l),{range:h,forward:!0}}),ZE=(n,s)=>{const l=n.dom;if(s){if(nA(s))return oT(l,s);if(rT(s))return VE(l,s);if(tA(s))return sA(l,s);if(ib(s))return cb(l,s);if(FE(s))return G.some({range:s.rng,forward:lb(s)})}return G.none()},W0=(n,s,l)=>eE(n,s,l),Rx=(n,s)=>{ZE(n,s).each(({range:l,forward:h})=>{n.setRng(l,h)})},af=n=>Xr(n)&&n.tagName==="SPAN"&&n.getAttribute("data-mce-type")==="bookmark",Dx=(n=>s=>n===s)(zs),Y0=n=>n!==""&&` \f +\r \v`.indexOf(n)!==-1,Ug=n=>!Y0(n)&&!Dx(n)&&!Rf(n),$x=n=>{const s=[];if(n)for(let l=0;lze(n,s=>{const l=uw(s);return l?[Yt.fromDom(l)]:[]}),hv=n=>$x(n).length>1,HE=n=>se(Lx(n),Hc),aA=n=>sl(n,"td[data-mce-selected],th[data-mce-selected]"),UE=(n,s)=>{const l=aA(s);return l.length>0?l:HE(n)},X0=n=>UE($x(n.selection.getSel()),Yt.fromDom(n.getBody())),$m=(n,s)=>Og(n,"table",s),WE=n=>{const s=n.startContainer,l=n.startOffset;return lr(s)?l===0?G.some(Yt.fromDom(s)):G.none():G.from(s.childNodes[l]).map(Yt.fromDom)},YE=n=>{const s=n.endContainer,l=n.endOffset;return lr(s)?l===s.data.length?G.some(Yt.fromDom(s)):G.none():G.from(s.childNodes[l-1]).map(Yt.fromDom)},iA=n=>bg(n).fold(ae([n]),s=>[n].concat(iA(s))),sT=n=>xc(n).fold(ae([n]),s=>Vs(s)==="br"?Uu(s).map(l=>[n].concat(sT(l))).getOr([]):[n].concat(sT(s))),aT=(n,s)=>Fa(WE(s),YE(s),(l,h)=>{const O=le(iA(n),ee(Gs,l)),P=le(sT(n),ee(Gs,h));return O.isSome()&&P.isSome()}).getOr(!1),iT=(n,s,l,h)=>{const O=l,P=new ca(l,O),Z=wn(n.schema.getMoveCaretBeforeOnEnterElements(),(he,_e)=>!Ze(["td","th","table"],_e.toLowerCase()));let J=l;do{if(lr(J)&&fr.trim(J.data).length!==0){h?s.setStart(J,0):s.setEnd(J,J.data.length);return}if(Z[J.nodeName]){h?s.setStartBefore(J):J.nodeName==="BR"?s.setEndBefore(J):s.setEndAfter(J);return}}while(J=h?P.next():P.prev());O.nodeName==="BODY"&&(h?s.setStart(O,0):s.setEnd(O,O.childNodes.length))},Ix=n=>{const s=n.selection.getSel();return B(s)&&s.rangeCount>0},Wg=(n,s)=>{const l=X0(n);l.length>0?re(l,h=>{const O=h.dom,P=n.dom.createRng();P.setStartBefore(O),P.setEndAfter(O),s(P,!0)}):s(n.selection.getRng(),!1)},lA=(n,s,l)=>{const h=Ok(n,s);l(h),n.moveToBookmark(h)},ub=n=>W(n==null?void 0:n.nodeType),lT=n=>Xr(n)&&!af(n)&&!sf(n)&&!_f(n),XE=(n,s)=>{if(lT(s)&&!/^(TD|TH)$/.test(s.nodeName)){const l=n.getAttrib(s,"data-mce-selected"),h=parseInt(l,10);return!isNaN(h)&&h>0}else return!1},fb=(n,s,l)=>{const{selection:h,dom:O}=n,P=h.getNode(),Z=Os(P);lA(h,!0,()=>{s()}),Z&&Os(P)&&O.isChildOf(P,n.getBody())?n.selection.select(P):l(h.getStart())&&GE(O,h)},GE=(n,s)=>{var l,h;const O=s.getRng(),{startContainer:P,startOffset:Z}=O,J=s.getNode();if(!XE(n,J)&&Xr(P)){const he=P.childNodes,_e=n.getRoot();let Ge;if(Z{if(n){const h=s?"nextSibling":"previousSibling";for(n=l?n:n[h];n;n=n[h])if(Xr(n)||!Ni(n))return n}},el=(n,s)=>!!n.getTextBlockElements()[s.nodeName.toLowerCase()]||ks(n,s),Lm=(n,s,l)=>n.schema.isValidChild(s,l),Ni=(n,s=!1)=>{if(B(n)&&lr(n)){const l=s?n.data.replace(/ /g," "):n.data;return Ba(l)}else return!1},If=n=>B(n)&&lr(n)&&n.length===0,Nx=(n,s)=>{const l="[data-mce-cef-wrappable]",h=R0(n),O=Ct(h)?l:`${l},${h}`;return Hu(Yt.fromDom(s),O)},db=(n,s)=>{const l=n.dom;return lT(s)&&l.getContentEditable(s)==="false"&&Nx(n,s)&&l.select('[contenteditable="true"]',s).length===0},Yd=(n,s)=>E(n)?n(s):(B(s)&&(n=n.replace(/%(\w+)/g,(l,h)=>s[h]||l)),n),Bx=(n,s)=>(n=n||"",s=s||"",n=""+(n.nodeName||n),s=""+(s.nodeName||s),n.toLowerCase()===s.toLowerCase()),Qx=(n,s)=>{if(Q(n))return null;{let l=String(n);return(s==="color"||s==="backgroundColor")&&(l=d0(l)),s==="fontWeight"&&n===700&&(l="bold"),s==="fontFamily"&&(l=l.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),l}},G0=(n,s,l)=>{const h=n.getStyle(s,l);return Qx(h,l)},cA=(n,s)=>{let l;return n.getParent(s,h=>Xr(h)?(l=n.getStyle(h,"text-decoration"),!!l&&l!=="none"):!1),l},hb=(n,s,l)=>n.getParents(s,l,n.getRoot()),cT=(n,s,l)=>{const h=n.formatter.get(s);return B(h)&&De(h,l)},uT=(n,s)=>cT(n,s,h=>{const O=P=>E(P)||P.length>1&&P.charAt(0)==="%";return De(["styles","attributes"],P=>Sn(h,P).exists(Z=>{const J=N(Z)?Z:Un(Z);return De(J,O)}))}),jE=(n,s,l)=>{const h=["inline","block","selector","attributes","styles","classes"],O=P=>wn(P,(Z,J)=>De(h,he=>he===J));return cT(n,s,P=>{const Z=O(P);return cT(n,l,J=>{const he=O(J);return xt(Z,he)})})},Xd=n=>ut(n,"block"),Fx=n=>Xd(n)&&n.wrapper===!0,j0=n=>Xd(n)&&n.wrapper!==!0,jl=n=>ut(n,"selector"),Xi=n=>ut(n,"inline"),Vx=n=>jl(n)&&Xi(n)&&Qa(Sn(n,"mixed"),!0),mb=n=>jl(n)&&n.expand!==!1&&!Xi(n),zx=n=>{const s=[];let l=n;for(;l;){if(lr(l)&&l.data!==de||l.childNodes.length>1)return[];Xr(l)&&s.push(l),l=l.firstChild}return s},gb=n=>zx(n).length>0,pb=n=>sf(n.dom)&&gb(n.dom),q0=af,uA=hb,vb=Ni,fA=el,dA=n=>aa(n)&&n.getAttribute("data-mce-bogus")&&!n.nextSibling,hA=(n,s)=>{let l=s;for(;l;){if(Xr(l)&&n.getContentEditable(l))return n.getContentEditable(l)==="false"?l:s;l=l.parentNode}return s},Nf=(n,s,l,h)=>{const O=s.data;if(n){for(let P=l;P>0;P--)if(h(O.charAt(P-1)))return P}else for(let P=l;PNf(n,s,l,h=>Dx(h)||Y0(h)),cd=(n,s,l)=>Nf(n,s,l,Ug),fu=(n,s,l,h,O,P)=>{let Z;const J=n.getParent(l,n.isBlock)||s,he=(Ge,qe,ot)=>{const Et=Rg(n),Vt=O?Et.backwards:Et.forwards;return G.from(Vt(Ge,qe,(kt,It)=>q0(kt.parentNode)?-1:(Z=kt,ot(O,kt,It)),J))};return he(l,h,ic).bind(Ge=>P?he(Ge.container,Ge.offset+(O?-1:0),cd):G.some(Ge)).orThunk(()=>Z?G.some({container:Z,offset:O?0:Z.length}):G.none())},yb=(n,s,l,h,O)=>{const P=h[O];lr(h)&&Ct(h.data)&&P&&(h=P);const Z=uA(n,h);for(let J=0;J{var O;let P=l;const Z=n.getRoot(),J=s[0];if(Xd(J)&&(P=J.wrapper?null:n.getParent(l,J.block,Z)),!P){const he=(O=n.getParent(l,"LI,TD,TH,SUMMARY"))!==null&&O!==void 0?O:Z;P=n.getParent(lr(l)?l.parentNode:l,_e=>_e!==Z&&fA(n.schema,_e),he)}if(P&&Xd(J)&&J.wrapper&&(P=uA(n,P,"ul,ol").reverse()[0]||P),!P)for(P=l;P&&P[h]&&!n.isBlock(P[h])&&(P=P[h],!Bx(P,"br")););return P||l},mA=(n,s,l,h)=>{const O=l.parentNode;return B(l[h])?!1:O===s||Q(O)||n.isBlock(O)?!0:mA(n,s,O,h)},bb=(n,s,l,h,O)=>{let P=l;const Z=O?"previousSibling":"nextSibling",J=n.getRoot();if(lr(l)&&!vb(l)&&(O?h>0:hq0(n.parentNode)||q0(n),Im=(n,s,l,h=!1)=>{let{startContainer:O,startOffset:P,endContainer:Z,endOffset:J}=s;const he=l[0];return Xr(O)&&O.hasChildNodes()&&(O=Mu(O,P),lr(O)&&(P=0)),Xr(Z)&&Z.hasChildNodes()&&(Z=Mu(Z,s.collapsed?J:J-1),lr(Z)&&(J=Z.data.length)),O=hA(n,O),Z=hA(n,Z),qE(O)&&(O=q0(O)?O:O.parentNode,s.collapsed?O=O.previousSibling||O:O=O.nextSibling||O,lr(O)&&(P=s.collapsed?O.length:0)),qE(Z)&&(Z=q0(Z)?Z:Z.parentNode,s.collapsed?Z=Z.nextSibling||Z:Z=Z.previousSibling||Z,lr(Z)&&(J=s.collapsed?0:Z.length)),s.collapsed&&(fu(n,n.getRoot(),O,P,!0,h).each(({container:qe,offset:ot})=>{O=qe,P=ot}),fu(n,n.getRoot(),Z,J,!1,h).each(({container:qe,offset:ot})=>{Z=qe,J=ot})),(Xi(he)||he.block_expand)&&((!Xi(he)||!lr(O)||P===0)&&(O=bb(n,l,O,P,!0)),(!Xi(he)||!lr(Z)||J===Z.data.length)&&(Z=bb(n,l,Z,J,!1))),mb(he)&&(O=yb(n,l,s,O,"previousSibling"),Z=yb(n,l,s,Z,"nextSibling")),(Xd(he)||jl(he))&&(O=Zx(n,l,O,"previousSibling"),Z=Zx(n,l,Z,"nextSibling"),Xd(he)&&(n.isBlock(O)||(O=bb(n,l,O,P,!0)),n.isBlock(Z)||(Z=bb(n,l,Z,J,!1)))),Xr(O)&&O.parentNode&&(P=n.nodeIndex(O),O=O.parentNode),Xr(Z)&&Z.parentNode&&(J=n.nodeIndex(Z)+1,Z=Z.parentNode),{startContainer:O,startOffset:P,endContainer:Z,endOffset:J}},Ob=(n,s,l)=>{var h;const O=s.startOffset,P=Mu(s.startContainer,O),Z=s.endOffset,J=Mu(s.endContainer,Z-1),he=It=>{const cn=It[0];lr(cn)&&cn===P&&O>=cn.data.length&&It.splice(0,1);const xn=It[It.length-1];return Z===0&&It.length>0&&xn===J&&lr(xn)&&It.splice(It.length-1,1),It},_e=(It,cn,xn)=>{const bn=[];for(;It&&It!==xn;It=It[cn])bn.push(It);return bn},Ge=(It,cn)=>n.getParent(It,xn=>xn.parentNode===cn,cn),qe=(It,cn,xn)=>{const bn=xn?"nextSibling":"previousSibling";for(let $n=It,rr=$n.parentNode;$n&&$n!==cn;$n=rr){rr=$n.parentNode;const gr=_e($n===It?$n:$n[bn],bn);gr.length&&(xn||gr.reverse(),l(he(gr)))}};if(P===J)return l(he([P]));const ot=(h=n.findCommonAncestor(P,J))!==null&&h!==void 0?h:n.getRoot();if(n.isChildOf(P,J))return qe(P,ot,!0);if(n.isChildOf(J,P))return qe(J,ot);const Et=Ge(P,ot)||P,Vt=Ge(J,ot)||J;qe(P,Et,!0);const kt=_e(Et===P?Et:Et.nextSibling,"nextSibling",Vt===J?Vt.nextSibling:Vt);kt.length&&l(he(kt)),qe(J,Vt)},fT=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],gA=n=>Zi(n)&&su(n)===de,pA=(n,s,l,h)=>ru(s).fold(()=>"skipping",O=>h==="br"||gA(s)?"valid":fk(s)?"existing":sf(s.dom)?"caret":De(fT,P=>Hu(s,P))?"valid-block":!Lm(n,l,h)||!Lm(n,Vs(O),l)?"invalid-child":"valid"),dT=(n,s)=>{const l=Im(n.dom,s,[{inline:"span"}]);s.setStart(l.startContainer,l.startOffset),s.setEnd(l.endContainer,l.endOffset),n.selection.setRng(s)},Hx=(n,s,l,h,O,P)=>{const{uid:Z=s,...J}=l;cm(n,ox()),Ra(n,`${O0()}`,Z),Ra(n,`${kh()}`,h);const{attributes:he={},classes:_e=[]}=O(Z,J);if(Su(n,he),WM(n,_e),P){_e.length>0&&Ra(n,`${S0()}`,_e.join(","));const Ge=Gt(he);Ge.length>0&&Ra(n,`${tv()}`,Ge.join(","))}},ka=n=>{um(n,ox()),ci(n,`${O0()}`),ci(n,`${kh()}`),ci(n,`${x0()}`);const s=bc(n,`${tv()}`).map(h=>h.split(",")).getOr([]),l=bc(n,`${S0()}`).map(h=>h.split(",")).getOr([]);re(s,h=>ci(n,h)),mk(n,l),ci(n,`${S0()}`),ci(n,`${tv()}`)},Nm=(n,s,l,h,O)=>{const P=Yt.fromTag("span",n);return Hx(P,s,l,h,O,!1),P},vA=(n,s,l,h,O,P)=>{const Z=[],J=Nm(n.getDoc(),l,P,h,O),he=_g(),_e=()=>{he.clear()},Ge=()=>he.get().getOrThunk(()=>{const Vt=Pu(J);return Z.push(Vt),he.set(Vt),Vt}),qe=Vt=>{re(Vt,ot)},ot=Vt=>{switch(pA(n,Vt,"span",Vs(Vt))){case"invalid-child":{_e();const It=ol(Vt);qe(It),_e();break}case"valid-block":{_e(),Hx(Vt,l,P,h,O,!0);break}case"valid":{const It=Ge();xg(Vt,It);break}}},Et=Vt=>{const kt=Ie(Vt,Yt.fromDom);qe(kt)};return Ob(n.dom,s,Vt=>{_e(),Et(Vt)}),Z},hT=(n,s,l,h)=>{n.undoManager.transact(()=>{const O=n.selection,P=O.getRng(),Z=X0(n).length>0,J=nv("mce-annotation");if(P.collapsed&&!Z&&dT(n,P),O.getRng().collapsed&&!Z){const he=Nm(n.getDoc(),J,h,s,l.decorate);gm(he,zs),O.getRng().insertNode(he.dom),O.select(he.dom)}else lA(O,!1,()=>{Wg(n,he=>{vA(n,he,J,s,l.decorate,h)})})})},mT=n=>{const s=hk();nf(n,s);const l=oc(n,s),h=xu("span"),O=P=>{re(P,Z=>{h(Z)?Ef(Z):ka(Z)})};return{register:(P,Z)=>{s.register(P,Z)},annotate:(P,Z)=>{s.lookup(P).each(J=>{hT(n,P,J,Z)})},annotationChanged:(P,Z)=>{l.addListener(P,Z)},remove:P=>{yi(n,G.some(P)).each(({elements:Z})=>{const J=n.selection.getBookmark();O(Z),n.selection.moveToBookmark(J)})},removeAll:P=>{const Z=n.selection.getBookmark();Bt(sx(n,P),(J,he)=>{O(J)}),n.selection.moveToBookmark(Z)},getAll:P=>{const Z=sx(n,P);return vn(Z,J=>Ie(J,he=>he.dom))}}},mv=n=>({getBookmark:ee(W0,n),moveToBookmark:ee(Rx,n)});mv.isBookmarkNode=af;const gT=(n,s,l)=>l.collapsed?!1:De(l.getClientRects(),h=>pk(h,n,s)),pT=(n,s)=>n.dispatch("PreProcess",s),KE=(n,s)=>n.dispatch("PostProcess",s),K0=n=>{n.dispatch("remove")},J0=n=>{n.dispatch("detach")},vT=(n,s)=>{n.dispatch("SwitchMode",{mode:s})},yT=(n,s,l,h,O)=>{n.dispatch("ObjectResizeStart",{target:s,width:l,height:h,origin:O})},ud=(n,s,l,h,O)=>{n.dispatch("ObjectResized",{target:s,width:l,height:h,origin:O})},Yg=n=>{n.dispatch("PreInit")},JE=n=>{n.dispatch("PostRender")},xb=n=>{n.dispatch("Init")},e_=(n,s)=>{n.dispatch("PlaceholderToggle",{state:s})},_u=(n,s,l)=>{n.dispatch(s,l)},lc=(n,s,l,h)=>{n.dispatch("FormatApply",{format:s,node:l,vars:h})},gv=(n,s,l,h)=>{n.dispatch("FormatRemove",{format:s,node:l,vars:h})},l9=(n,s)=>n.dispatch("BeforeSetContent",s),yA=(n,s)=>n.dispatch("SetContent",s),t_=(n,s)=>n.dispatch("BeforeGetContent",s),xs=(n,s)=>n.dispatch("GetContent",s),bT=(n,s)=>{n.dispatch("AutocompleterStart",s)},bA=(n,s)=>{n.dispatch("AutocompleterUpdate",s)},OT=n=>{n.dispatch("AutocompleterEnd")},n_=(n,s,l)=>n.dispatch("PastePreProcess",{content:s,internal:l}),r_=(n,s,l)=>n.dispatch("PastePostProcess",{node:s,internal:l}),OA=(n,s)=>n.dispatch("PastePlainTextToggle",{state:s}),o_=(n,s)=>n.dispatch("EditableRootStateChange",{state:s}),Wr={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:n=>n.shiftKey||n.ctrlKey||n.altKey||Wr.metaKeyPressed(n),metaKeyPressed:n=>Dr.os.isMacOS()||Dr.os.isiOS()?n.metaKey:n.ctrlKey&&!n.altKey},Xg="data-mce-selected",xA="table,img,figure.image,hr,video,span.mce-preview-object,details",Sb=Math.abs,wb=Math.round,s_={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},c9=n=>n.type==="longpress"||n.type.indexOf("touch")===0,u9=(n,s)=>{const l=s.dom,h=s.getDoc(),O=document,P=s.getBody();let Z,J,he,_e,Ge,qe,ot,Et,Vt,kt,It,cn,xn,bn,$n,rr,gr;const Qr=yr=>B(yr)&&(El(yr)||l.is(yr,"figure.image")),zn=yr=>ei(yr)||l.hasClass(yr,"mce-preview-object"),Bn=(yr,Bo)=>{if(c9(yr)){const Ls=yr.touches[0];return Qr(yr.target)&&!gT(Ls.clientX,Ls.clientY,Bo)}else return Qr(yr.target)&&!gT(yr.clientX,yr.clientY,Bo)},tr=yr=>{const Bo=yr.target;Bn(yr,s.selection.getRng())&&!yr.isDefaultPrevented()&&s.selection.select(Bo)},eo=yr=>l.hasClass(yr,"mce-preview-object")&&B(yr.firstElementChild)?[yr,yr.firstElementChild]:l.is(yr,"figure.image")?[yr.querySelector("img")]:[yr],po=yr=>{const Bo=E0(s);return!Bo||yr.getAttribute("data-mce-resize")==="false"||yr===s.getBody()?!1:l.hasClass(yr,"mce-preview-object")&&B(yr.firstElementChild)?Hu(Yt.fromDom(yr.firstElementChild),Bo):Hu(Yt.fromDom(yr),Bo)},ls=yr=>zn(yr)?l.create("img",{src:Dr.transparentSrc}):yr.cloneNode(!0),ys=(yr,Bo,Ls)=>{if(B(Ls)){const Aa=eo(yr);re(Aa,Sa=>{Sa.style[Bo]||!s.schema.isValid(Sa.nodeName.toLowerCase(),Bo)?l.setStyle(Sa,Bo,Ls):l.setAttrib(Sa,Bo,""+Ls)})}},ma=(yr,Bo,Ls)=>{ys(yr,"width",Bo),ys(yr,"height",Ls)},$s=yr=>{let Bo,Ls,Aa,Sa,$l;Bo=yr.screenX-qe,Ls=yr.screenY-ot,bn=Bo*_e[2]+kt,$n=Ls*_e[3]+It,bn=bn<5?5:bn,$n=$n<5?5:$n,(Qr(Z)||zn(Z))&&_k(s)!==!1?Aa=!Wr.modifierPressed(yr):Aa=Wr.modifierPressed(yr),Aa&&(Sb(Bo)>Sb(Ls)?($n=wb(bn*cn),bn=wb($n/cn)):(bn=wb($n/cn),$n=wb(bn*cn))),ma(J,bn,$n),Sa=_e.startPos.x+Bo,$l=_e.startPos.y+Ls,Sa=Sa>0?Sa:0,$l=$l>0?$l:0,l.setStyles(he,{left:Sa,top:$l,display:"block"}),he.innerHTML=bn+" × "+$n,_e[2]<0&&J.clientWidth<=bn&&l.setStyle(J,"left",Et+(kt-bn)),_e[3]<0&&J.clientHeight<=$n&&l.setStyle(J,"top",Vt+(It-$n)),Bo=P.scrollWidth-rr,Ls=P.scrollHeight-gr,Bo+Ls!==0&&l.setStyles(he,{left:Sa-Bo,top:$l-Ls}),xn||(yT(s,Z,kt,It,"corner-"+_e.name),xn=!0)},hi=()=>{const yr=xn;xn=!1,yr&&(ys(Z,"width",bn),ys(Z,"height",$n)),l.unbind(h,"mousemove",$s),l.unbind(h,"mouseup",hi),O!==h&&(l.unbind(O,"mousemove",$s),l.unbind(O,"mouseup",hi)),l.remove(J),l.remove(he),l.remove(Ge),uc(Z),yr&&(ud(s,Z,bn,$n,"corner-"+_e.name),l.setAttrib(Z,"style",l.getAttrib(Z,"style"))),s.nodeChanged()},uc=yr=>{Ss();const Bo=l.getPos(yr,P),Ls=Bo.x,Aa=Bo.y,Sa=yr.getBoundingClientRect(),$l=Sa.width||Sa.right-Sa.left,Xh=Sa.height||Sa.bottom-Sa.top;Z!==yr&&(Cr(),Z=yr,bn=$n=0);const zf=s.dispatch("ObjectSelected",{target:yr});po(yr)&&!zf.isDefaultPrevented()?Bt(s_,($u,sh)=>{const Wo=Pa=>{const oi=eo(Z)[0];qe=Pa.screenX,ot=Pa.screenY,kt=oi.clientWidth,It=oi.clientHeight,cn=It/kt,_e=$u,_e.name=sh,_e.startPos={x:$l*$u[0]+Ls,y:Xh*$u[1]+Aa},rr=P.scrollWidth,gr=P.scrollHeight,Ge=l.add(P,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),l.setStyles(Ge,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),J=ls(Z),l.addClass(J,"mce-clonedresizable"),l.setAttrib(J,"data-mce-bogus","all"),J.contentEditable="false",l.setStyles(J,{left:Ls,top:Aa,margin:0}),ma(J,$l,Xh),J.removeAttribute(Xg),P.appendChild(J),l.bind(h,"mousemove",$s),l.bind(h,"mouseup",hi),O!==h&&(l.bind(O,"mousemove",$s),l.bind(O,"mouseup",hi)),he=l.add(P,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},kt+" × "+It)};let Hs=l.get("mceResizeHandle"+sh);Hs&&l.remove(Hs),Hs=l.add(P,"div",{id:"mceResizeHandle"+sh,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+sh+"-resize; margin:0; padding:0"}),l.bind(Hs,"mousedown",Pa=>{Pa.stopImmediatePropagation(),Pa.preventDefault(),Wo(Pa)}),$u.elm=Hs,l.setStyles(Hs,{left:$l*$u[0]+Ls-Hs.offsetWidth/2,top:Xh*$u[1]+Aa-Hs.offsetHeight/2})}):Cr(!1)},ga=By(uc,0),Cr=(yr=!0)=>{ga.cancel(),Ss(),Z&&yr&&Z.removeAttribute(Xg),Bt(s_,(Bo,Ls)=>{const Aa=l.get("mceResizeHandle"+Ls);Aa&&(l.unbind(Aa),l.remove(Aa))})},co=(yr,Bo)=>l.isChildOf(yr,Bo),Zs=yr=>{if(xn||s.removed||s.composing)return;const Bo=yr.type==="mousedown"?yr.target:n.getNode(),Ls=Mf(Yt.fromDom(Bo),xA).map(Sa=>Sa.dom).filter(Sa=>l.isEditable(Sa.parentElement)||Sa.nodeName==="IMG"&&l.isEditable(Sa)).getOrUndefined(),Aa=B(Ls)?l.getAttrib(Ls,Xg,"1"):"1";if(re(l.select(`img[${Xg}],hr[${Xg}]`),Sa=>{Sa.removeAttribute(Xg)}),B(Ls)&&co(Ls,P)&&s.hasFocus()){ro();const Sa=n.getStart(!0);if(co(Sa,Ls)&&co(n.getEnd(!0),Ls)){l.setAttrib(Ls,Xg,Aa),ga.throttle(Ls);return}}Cr()},Ss=()=>{Bt(s_,yr=>{yr.elm&&(l.unbind(yr.elm),delete yr.elm)})},ro=()=>{try{s.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};return s.on("init",()=>{ro(),s.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",Zs),s.on("keyup compositionend",yr=>{Z&&Z.nodeName==="TABLE"&&Zs(yr)}),s.on("hide blur",Cr),s.on("contextmenu longpress",tr,!0)}),s.on("remove",Ss),{isResizable:po,showResizeRect:uc,hideResizeRect:Cr,updateResizeRect:Zs,destroy:()=>{ga.cancel(),Z=J=Ge=null}}},ZU=(n,s)=>{s.fold(l=>{n.setStartBefore(l.dom)},(l,h)=>{n.setStart(l.dom,h)},l=>{n.setStartAfter(l.dom)})},a_=(n,s)=>{s.fold(l=>{n.setEndBefore(l.dom)},(l,h)=>{n.setEnd(l.dom,h)},l=>{n.setEndAfter(l.dom)})},SA=(n,s,l)=>{const h=n.document.createRange();return ZU(h,s),a_(h,l),h},Co=(n,s,l,h,O)=>{const P=n.document.createRange();return P.setStart(s.dom,l),P.setEnd(h.dom,O),P},Bm=Zd.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),wA=(n,s,l)=>s(Yt.fromDom(l.startContainer),l.startOffset,Yt.fromDom(l.endContainer),l.endOffset),i_=(n,s)=>s.match({domRange:l=>({ltr:ae(l),rtl:G.none}),relative:(l,h)=>({ltr:Rt(()=>SA(n,l,h)),rtl:Rt(()=>G.some(SA(n,h,l)))}),exact:(l,h,O,P)=>({ltr:Rt(()=>Co(n,l,h,O,P)),rtl:Rt(()=>G.some(Co(n,O,P,l,h)))})}),Tb=(n,s)=>{const l=s.ltr();return l.collapsed?s.rtl().filter(O=>O.collapsed===!1).map(O=>Bm.rtl(Yt.fromDom(O.endContainer),O.endOffset,Yt.fromDom(O.startContainer),O.startOffset)).getOrThunk(()=>wA(n,Bm.ltr,l)):wA(n,Bm.ltr,l)},l_=(n,s)=>{const l=i_(n,s);return Tb(n,l)};Bm.ltr,Bm.rtl;const xT={create:(n,s,l,h)=>({start:n,soffset:s,finish:l,foffset:h})},CA=(n,s,l)=>{var h,O;return G.from((O=(h=n.dom).caretPositionFromPoint)===null||O===void 0?void 0:O.call(h,s,l)).bind(P=>{if(P.offsetNode===null)return G.none();const Z=n.dom.createRange();return Z.setStart(P.offsetNode,P.offset),Z.collapse(),G.some(Z)})},Ux=(n,s,l)=>{var h,O;return G.from((O=(h=n.dom).caretRangeFromPoint)===null||O===void 0?void 0:O.call(h,s,l))},c_=(()=>document.caretPositionFromPoint?CA:document.caretRangeFromPoint?Ux:G.none)(),u_=(n,s,l)=>{const h=Yt.fromDom(n.document);return c_(h,s,l).map(O=>xT.create(Yt.fromDom(O.startContainer),O.startOffset,Yt.fromDom(O.endContainer),O.endOffset))},e1=Zd.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),ST=(n,s,l,h)=>n.fold(s,l,h),kA=n=>n.fold(q,q,q),f_=e1.before,d_=e1.on,Wx=e1.after,Dh={before:f_,on:d_,after:Wx,cata:ST,getStart:kA},Yx=Zd.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Ys=n=>Yx.exact(n.start,n.soffset,n.finish,n.foffset),h_=n=>n.match({domRange:s=>Yt.fromDom(s.startContainer),relative:(s,l)=>Dh.getStart(s),exact:(s,l,h,O)=>s}),Qm=Yx.domRange,$h=Yx.relative,Xx=Yx.exact,lf=n=>{const s=h_(n);return vg(s)},Gx=xT.create,Fm={domRange:Qm,relative:$h,exact:Xx,exactFromRange:Ys,getWin:lf,range:Gx},t1=(n,s)=>{const l=Vs(n);return l==="input"?Dh.after(n):Ze(["br","img"],l)?s===0?Dh.before(n):Dh.after(n):Dh.on(n,s)},Cb=(n,s)=>{const l=n.fold(Dh.before,t1,Dh.after),h=s.fold(Dh.before,t1,Dh.after);return Fm.relative(l,h)},wT=(n,s,l,h)=>{const O=t1(n,s),P=t1(l,h);return Fm.relative(O,P)},m_=n=>n.match({domRange:s=>{const l=Yt.fromDom(s.startContainer),h=Yt.fromDom(s.endContainer);return wT(l,s.startOffset,h,s.endOffset)},relative:Cb,exact:wT}),TT=(n,s)=>{const h=(s||document).createDocumentFragment();return re(n,O=>{h.appendChild(O.dom)}),Yt.fromDom(h)},g_=n=>{const s=Fm.getWin(n).dom,l=(O,P,Z,J)=>Co(s,O,P,Z,J),h=m_(n);return l_(s,h).match({ltr:l,rtl:l})},Ps=(n,s,l)=>u_(n,s,l),cf=(n,s,l)=>{const h=vg(Yt.fromDom(l));return Ps(h.dom,n,s).map(O=>{const P=l.createRange();return P.setStart(O.start.dom,O.soffset),P.setEnd(O.finish.dom,O.foffset),P}).getOrUndefined()},Gg=(n,s)=>B(n)&&B(s)&&n.startContainer===s.startContainer&&n.startOffset===s.startOffset&&n.endContainer===s.endContainer&&n.endOffset===s.endOffset,p_=(n,s,l)=>{let h=n;for(;h&&h!==s;){if(l(h))return h;h=h.parentNode}return null},n1=(n,s,l)=>p_(n,s,l)!==null,Qs=(n,s,l)=>n1(n,s,h=>h.nodeName===l),v_=(n,s)=>bt(n)&&!n1(n,s,sf),CT=(n,s,l)=>{const h=s.parentNode;if(h){const O=new ca(s,n.getParent(h,n.isBlock)||n.getRoot());let P;for(;P=O[l?"prev":"next"]();)if(aa(P))return!0}return!1},A=(n,s)=>{var l;return((l=n.previousSibling)===null||l===void 0?void 0:l.nodeName)===s},$=(n,s)=>{let l=s;for(;l&&l!==n;){if(Os(l))return!0;l=l.parentNode}return!1},j=(n,s,l,h,O)=>{const P=n.getRoot(),Z=n.schema.getNonEmptyElements(),J=O.parentNode;let he,_e;if(!J)return G.none();const Ge=n.getParent(J,n.isBlock)||P;if(h&&aa(O)&&s&&n.isEmpty(Ge))return G.some(Nn(J,n.nodeIndex(O)));const qe=new ca(O,Ge);for(;_e=qe[h?"prev":"next"]();){if(n.getContentEditableParent(_e)==="false"||v_(_e,P))return G.none();if(lr(_e)&&_e.data.length>0)return Qs(_e,P,"A")?G.none():G.some(Nn(_e,h?_e.data.length:0));if(n.isBlock(_e)||Z[_e.nodeName.toLowerCase()])return G.none();he=_e}return Kf(he)?G.none():l&&he?G.some(Nn(he,0)):G.none()},ce=(n,s,l,h)=>{const O=n.getRoot();let P,Z=!1,J=l?h.startContainer:h.endContainer,he=l?h.startOffset:h.endOffset;const _e=Xr(J)&&he===J.childNodes.length,Ge=n.schema.getNonEmptyElements();let qe=l;if(bt(J))return G.none();if(Xr(J)&&he>J.childNodes.length-1&&(qe=!1),Tg(J)&&(J=O,he=0),J===O){if(qe&&(P=J.childNodes[he>0?he-1:0],P&&(bt(P)||Ge[P.nodeName]||ju(P))))return G.none();if(J.hasChildNodes()){if(he=Math.min(!qe&&he>0?he-1:he,J.childNodes.length-1),J=J.childNodes[he],he=lr(J)&&_e?J.data.length:0,!s&&J===O.lastChild&&ju(J)||$(O,J)||bt(J)||er(J))return G.none();if(J.hasChildNodes()&&!ju(J)){P=J;const ot=new ca(J,O);do{if(Os(P)||bt(P)){Z=!1;break}if(lr(P)&&P.data.length>0){he=qe?0:P.data.length,J=P,Z=!0;break}if(Ge[P.nodeName.toLowerCase()]&&!il(P)){he=n.nodeIndex(P),J=P.parentNode,qe||he++,Z=!0;break}}while(P=qe?ot.next():ot.prev())}}}return s&&(lr(J)&&he===0&&j(n,_e,s,!0,J).each(ot=>{J=ot.container(),he=ot.offset(),Z=!0}),Xr(J)&&(P=J.childNodes[he],P||(P=J.childNodes[he-1]),P&&aa(P)&&!A(P,"A")&&!CT(n,P,!1)&&!CT(n,P,!0)&&j(n,_e,s,!0,P).each(ot=>{J=ot.container(),he=ot.offset(),Z=!0}))),qe&&!s&&lr(J)&&he===J.data.length&&j(n,_e,s,!1,J).each(ot=>{J=ot.container(),he=ot.offset(),Z=!0}),Z&&J?G.some(Nn(J,he)):G.none()},Me=(n,s)=>{const l=s.collapsed,h=s.cloneRange(),O=Nn.fromRangeStart(s);return ce(n,l,!0,h).each(P=>{(!l||!Nn.isAbove(O,P))&&h.setStart(P.container(),P.offset())}),l||ce(n,l,!1,h).each(P=>{h.setEnd(P.container(),P.offset())}),l&&h.collapse(!0),Gg(s,h)?G.none():G.some(h)},Ve=(n,s)=>n.splitText(s),nt=n=>{let s=n.startContainer,l=n.startOffset,h=n.endContainer,O=n.endOffset;if(s===h&&lr(s)){if(l>0&&ll){O=O-l;const P=Ve(h,O).previousSibling;s=h=P,O=P.data.length,l=0}else O=0}else if(lr(s)&&l>0&&l0&&O({walk:(P,Z)=>Ob(n,P,Z),split:nt,expand:(P,Z={type:"word"})=>{if(Z.type==="word"){const J=Im(n,P,[{inline:"span"}]),he=n.createRng();return he.setStart(J.startContainer,J.startOffset),he.setEnd(J.endContainer,J.endOffset),he}return P},normalize:P=>Me(n,P).fold(ne,Z=>(P.setStart(Z.startContainer,Z.startOffset),P.setEnd(Z.endContainer,Z.endOffset),!0))});Ot.compareRanges=Gg,Ot.getCaretRangeFromPoint=cf,Ot.getSelectedNode=uw,Ot.getNode=Mu;const Kt=((n,s)=>{const l=(J,he)=>{if(!W(he)&&!he.match(/^[0-9]+$/))throw new Error(n+".set accepts only positive integer values. Value was "+he);const _e=J.dom;yh(_e)&&(_e.style[n]=he+"px")},h=J=>{const he=s(J);if(he<=0||he===null){const _e=wi(J,n);return parseFloat(_e)||0}return he},O=h,P=(J,he)=>oe(he,(_e,Ge)=>{const qe=wi(J,Ge),ot=qe===void 0?0:parseInt(qe,10);return isNaN(ot)?_e:_e+ot},0);return{set:l,get:h,getOuter:O,aggregate:P,max:(J,he,_e)=>{const Ge=P(J,_e);return he>Ge?he-Ge:0}}})("height",n=>{const s=n.dom;return vh(n)?s.getBoundingClientRect().height:s.offsetHeight}),Cn=n=>Kt.get(n),ir=()=>Yt.fromDom(document),$r=(n,s)=>n.view(s).fold(ae([]),h=>{const O=n.owner(h),P=$r(n,O);return[h].concat(P)}),Rr=(n,s)=>{const l=s.owner(n);return $r(s,l)};var jn=Object.freeze({__proto__:null,view:n=>{var s;return(n.dom===document?G.none():G.from((s=n.dom.defaultView)===null||s===void 0?void 0:s.frameElement)).map(Yt.fromDom)},owner:n=>qf(n)});const io=n=>{const s=ir(),l=Tu(s),h=Rr(n,jn),O=ym(n),P=ue(h,(Z,J)=>{const he=ym(J);return{left:Z.left+he.left,top:Z.top+he.top}},{left:0,top:0});return Sg(P.left+O.left+l.left,P.top+O.top+l.top)},$o=n=>Vs(n)==="textarea",os=(n,s)=>n.dispatch("ScrollIntoView",s).isDefaultPrevented(),Va=(n,s)=>{n.dispatch("AfterScrollIntoView",s)},ml=(n,s)=>{const l=ol(n);if(l.length===0||$o(n))return{element:n,offset:s};if(s{const l=BO(n),h=Cn(n);return{element:n,bottom:l.top+h,height:h,pos:l,cleanup:s}},du=(n,s)=>{const l=ml(n,s),h=Yt.fromHtml(''+de+"");return Ui(l.element,h),bi(h,()=>Ks(h))},pv=n=>bi(Yt.fromDom(n),ie),vv=(n,s,l,h)=>{Dc(n,(O,P)=>jx(n,s,l,h),l)},kT=(n,s,l,h,O)=>{const P={elm:h.element.dom,alignToTop:O};if(os(n,P))return;const Z=Tu(s).top;l(n,s,Z,h,O),Va(n,P)},jx=(n,s,l,h)=>{const O=Yt.fromDom(n.getBody()),P=Yt.fromDom(n.getDoc());Ti(O);const Z=du(Yt.fromDom(l.startContainer),l.startOffset);kT(n,P,s,Z,h),Z.cleanup()},Oa=(n,s,l,h)=>{const O=Yt.fromDom(n.getDoc());kT(n,O,l,pv(s),h)},Dc=(n,s,l)=>{const h=l.startContainer,O=l.startOffset,P=l.endContainer,Z=l.endOffset;s(Yt.fromDom(h),Yt.fromDom(P));const J=n.dom.createRng();J.setStart(h,O),J.setEnd(P,Z),n.selection.setRng(l)},ql=(n,s,l,h,O)=>{const P=s.pos;if(h)n0(P.left,P.top,O);else{const Z=P.top-l+s.height;n0(-n.getBody().getBoundingClientRect().left,Z,O)}},uf=(n,s,l,h,O,P)=>{const Z=h+l,J=O.pos.top,he=O.bottom,_e=he-J>=h;JZ?ql(n,O,h,_e?P!==!1:P===!0,s):he>Z&&!_e&&ql(n,O,h,P===!0,s)},Ru=(n,s,l,h,O)=>{const P=vg(s).dom.innerHeight;uf(n,s,l,P,h,O)},jg=(n,s,l,h,O)=>{const P=vg(s).dom.innerHeight;uf(n,s,l,P,h,O);const Z=io(h.element),J=Cy(window);Z.topJ.bottom&&wy(h.element,O===!0)},Gc=(n,s,l)=>vv(n,Ru,s,l),AT=(n,s,l)=>Oa(n,s,Ru,l),kb=(n,s,l)=>vv(n,jg,s,l),Lh=(n,s,l)=>Oa(n,s,jg,l),cc=(n,s,l)=>{(n.inline?AT:Lh)(n,s,l)},Ab=(n,s,l)=>{(n.inline?Gc:kb)(n,s,l)},AA=(n,s=!1)=>n.dom.focus({preventScroll:s}),PA=n=>{const s=Pf(n).dom;return n.dom===s.activeElement},r1=(n=ir())=>G.from(n.dom.activeElement).map(Yt.fromDom),MA=n=>r1(Pf(n)).filter(s=>n.dom.contains(s.dom)),qx=(n,s)=>{const l=Zi(s)?su(s).length:ol(s).length+1;return n>l?l:n<0?0:n},EA=n=>Fm.range(n.start,qx(n.soffset,n.start),n.finish,qx(n.foffset,n.finish)),yv=(n,s)=>!Gu(s.dom)&&(tc(n,s)||Gs(n,s)),f9=n=>s=>yv(n,s.start)&&yv(n,s.finish),HU=n=>n.inline||Dr.browser.isFirefox(),UU=n=>Fm.range(Yt.fromDom(n.startContainer),n.startOffset,Yt.fromDom(n.endContainer),n.endOffset),WU=n=>{const s=n.getSelection();return(!s||s.rangeCount===0?G.none():G.from(s.getRangeAt(0))).map(UU)},YU=n=>{const s=vg(n);return WU(s.dom).filter(f9(n))},d9=(n,s)=>G.from(s).filter(f9(n)).map(EA),h9=n=>{const s=document.createRange();try{return s.setStart(n.start.dom,n.soffset),s.setEnd(n.finish.dom,n.foffset),G.some(s)}catch{return G.none()}},Kx=n=>{const s=HU(n)?YU(Yt.fromDom(n.getBody())):G.none();n.bookmark=s.isSome()?s:n.bookmark},y_=n=>(n.bookmark?n.bookmark:G.none()).bind(l=>d9(Yt.fromDom(n.getBody()),l)).bind(h9),XU=n=>{y_(n).each(s=>n.selection.setRng(s))},g9={isEditorUIElement:n=>{const s=n.className.toString();return s.indexOf("tox-")!==-1||s.indexOf("mce-")!==-1}},p9=(n,s)=>(W(s)||(s=0),setTimeout(n,s)),v9=(n,s)=>(W(s)||(s=0),setInterval(n,s)),fd={setEditorTimeout:(n,s,l)=>p9(()=>{n.removed||s()},l),setEditorInterval:(n,s,l)=>{const h=v9(()=>{n.removed?clearInterval(h):s()},l);return h}},GU=n=>n.type==="nodechange"&&n.selectionChange,jU=(n,s)=>{const l=()=>{s.throttle()};Da.DOM.bind(document,"mouseup",l),n.on("remove",()=>{Da.DOM.unbind(document,"mouseup",l)})},qU=(n,s)=>{n.on("mouseup touchend",l=>{s.throttle()})},KU=(n,s)=>{qU(n,s),n.on("keyup NodeChange AfterSetSelectionRange",l=>{GU(l)||Kx(n)})},_A=n=>{const s=By(()=>{Kx(n)},0);n.on("init",()=>{n.inline&&jU(n,s),KU(n,s)}),n.on("remove",()=>{s.cancel()})};let Pb;const RA=Da.DOM,y9=n=>Xr(n)&&g9.isEditorUIElement(n),DA=n=>{const s=n.classList;return s!==void 0?s.contains("tox-edit-area")||s.contains("tox-edit-area__iframe")||s.contains("mce-content-body"):!1},$A=(n,s)=>{const l=Lk(n);return RA.getParent(s,O=>y9(O)||(l?n.dom.is(O,l):!1))!==null},b_=n=>{try{const s=Pf(Yt.fromDom(n.getElement()));return r1(s).fold(()=>document.body,l=>l.dom)}catch{return document.body}},JU=(n,s)=>{const l=s.editor;_A(l);const h=(O,P)=>{if(AE(O)&&O.inline!==!0){const Z=Yt.fromDom(O.getContainer());P(Z,"tox-edit-focus")}};l.on("focusin",()=>{const O=n.focusedEditor;DA(b_(l))&&h(l,cm),O!==l&&(O&&O.dispatch("blur",{focusedEditor:l}),n.setActive(l),n.focusedEditor=l,l.dispatch("focus",{blurredEditor:O}),l.focus(!0))}),l.on("focusout",()=>{fd.setEditorTimeout(l,()=>{const O=n.focusedEditor;(!DA(b_(l))||O!==l)&&h(l,um),!$A(l,b_(l))&&O===l&&(l.dispatch("blur",{focusedEditor:null}),n.focusedEditor=null)})}),Pb||(Pb=O=>{const P=n.activeEditor;P&&Hp(O).each(Z=>{const J=Z;J.ownerDocument===document&&J!==document.body&&!$A(P,J)&&n.focusedEditor===P&&(P.dispatch("blur",{focusedEditor:null}),n.focusedEditor=null)})},RA.bind(document,"focusin",Pb))},eW=(n,s)=>{n.focusedEditor===s.editor&&(n.focusedEditor=null),!n.activeEditor&&Pb&&(RA.unbind(document,"focusin",Pb),Pb=null)},tW=n=>{n.on("AddEditor",ee(JU,n)),n.on("RemoveEditor",ee(eW,n))},nW=(n,s)=>n.dom.getParent(s,l=>n.dom.getContentEditable(l)==="true"),rW=n=>n.collapsed?G.from(Mu(n.startContainer,n.startOffset)).map(Yt.fromDom):G.none(),oW=(n,s)=>rW(s).bind(l=>nd(l)?G.some(l):tc(n,l)?G.none():G.some(n)),b9=(n,s)=>{oW(Yt.fromDom(n.getBody()),s).bind(l=>Xc(l.dom)).fold(()=>{n.selection.normalize()},l=>n.selection.setRng(l.toRange()))},O_=n=>{if(n.setActive)try{n.setActive()}catch{n.focus()}else n.focus()},sW=n=>PA(n)||MA(n).isSome(),aW=n=>B(n.iframeElement)&&PA(Yt.fromDom(n.iframeElement)),LA=n=>{const s=n.getBody();return s&&sW(Yt.fromDom(s))},O9=n=>{const s=Pf(Yt.fromDom(n.getElement()));return r1(s).filter(l=>!DA(l.dom)&&$A(n,l.dom)).isSome()},o1=n=>n.inline?LA(n):aW(n),x9=n=>o1(n)||O9(n),iW=n=>{const s=n.selection,l=n.getBody();let h=s.getRng();n.quirks.refreshContentEditable(),B(n.bookmark)&&!o1(n)&&y_(n).each(P=>{n.selection.setRng(P),h=P});const O=nW(n,s.getNode());if(O&&n.dom.isChildOf(O,l)){O_(O),b9(n,h),x_(n);return}n.inline||(Dr.browser.isOpera()||O_(l),n.getWin().focus()),(Dr.browser.isFirefox()||n.inline)&&(O_(l),b9(n,h)),x_(n)},x_=n=>n.editorManager.setActive(n),lW=(n,s)=>{n.removed||(s?x_(n):iW(n))},S9=(n,s)=>s.collapsed?n.isEditable(s.startContainer):n.isEditable(s.startContainer)&&n.isEditable(s.endContainer),w9=(n,s,l,h,O)=>{const P=l?s.startContainer:s.endContainer,Z=l?s.startOffset:s.endOffset;return G.from(P).map(Yt.fromDom).map(J=>!h||!s.collapsed?ph(J,O(J,Z)).getOr(J):J).bind(J=>kl(J)?G.some(J):ru(J).filter(kl)).map(J=>J.dom).getOr(n)},S_=(n,s,l=!1)=>w9(n,s,!0,l,(h,O)=>Math.min(Pl(h),O)),T9=(n,s,l=!1)=>w9(n,s,!1,l,(h,O)=>O>0?O-1:O),w_=(n,s)=>{const l=n;for(;n&&lr(n)&&n.length===0;)n=s?n.nextSibling:n.previousSibling;return n||l},C9=(n,s)=>{if(!s)return n;let l=s.startContainer,h=s.endContainer;const O=s.startOffset,P=s.endOffset;let Z=s.commonAncestorContainer;s.collapsed||(l===h&&P-O<2&&l.hasChildNodes()&&(Z=l.childNodes[O]),lr(l)&&lr(h)&&(l.length===O?l=w_(l.nextSibling,!0):l=l.parentNode,P===0?h=w_(h.previousSibling,!1):h=h.parentNode,l&&l===h&&(Z=l)));const J=lr(Z)?Z.parentNode:Z;return zl(J)?J:n},cW=(n,s,l,h)=>{const O=[],P=n.getRoot(),Z=n.getParent(l||S_(P,s,s.collapsed),n.isBlock),J=n.getParent(h||T9(P,s,s.collapsed),n.isBlock);if(Z&&Z!==P&&O.push(Z),Z&&J&&Z!==J){let he;const _e=new ca(Z,P);for(;(he=_e.next())&&he!==J;)n.isBlock(he)&&O.push(he)}return J&&Z!==J&&J!==P&&O.push(J),O},uW=(n,s,l)=>G.from(s).bind(h=>G.from(h.parentNode).map(O=>{const P=n.nodeIndex(h),Z=n.createRng();return Z.setStart(O,P),Z.setEnd(O,P+1),l&&(iT(n,Z,h,!0),iT(n,Z,h,!1)),Z})),T_=(n,s)=>Ie(s,l=>{const h=n.dispatch("GetSelectionRange",{range:l});return h.range!==l?h.range:l}),fW=n=>Vs(n)==="img"?1:a0(n).fold(()=>ol(n).length,s=>s.length),dW=n=>a0(n).filter(s=>s.trim().length!==0||s.indexOf(zs)>-1).isSome(),hW=n=>Ya(n)&&Al(n,"contenteditable")==="false",mW=["img","br"],k9=n=>dW(n)||Ze(mW,Vs(n))||hW(n),gW=n=>Vl(n,k9),pW=n=>vW(n,k9),vW=(n,s)=>{const l=h=>{const O=ol(h);for(let P=O.length-1;P>=0;P--){const Z=O[P];if(s(Z))return G.some(Z);const J=l(Z);if(J.isSome())return J}return G.none()};return l(n)},A9="[data-mce-autocompleter]",yW=(n,s)=>{if(P9(Yt.fromDom(n.getBody())).isNone()){const l=Yt.fromHtml('',n.getDoc());Ci(l,Yt.fromDom(s.extractContents())),s.insertNode(l.dom),ru(l).each(h=>h.dom.normalize()),pW(l).map(h=>{n.selection.setCursorLocation(h.dom,fW(h))})}},bW=n=>Mf(n,A9),P9=n=>Sc(n,A9),OW=(n,s)=>P9(s).each(l=>{const h=n.selection.getBookmark();Ef(l),n.selection.moveToBookmark(h)}),xW={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},IA=(n,s,l)=>{const h=l?"lastChild":"firstChild",O=l?"prev":"next";if(n[h])return n[h];if(n!==s){let P=n[O];if(P)return P;for(let Z=n.parent;Z&&Z!==s;Z=Z.parent)if(P=Z[O],P)return P}},SW=n=>{var s;const l=(s=n.value)!==null&&s!==void 0?s:"";if(!Ba(l))return!1;const h=n.parent;return!(h&&(h.name!=="span"||h.attr("style"))&&/^[ ]+$/.test(l))},yo=n=>{const s=n.name==="a"&&!n.attr("href")&&n.attr("id");return n.attr("name")||n.attr("id")&&!n.firstChild||n.attr("data-mce-bookmark")||s};class hu{static create(s,l){const h=new hu(s,xW[s]||1);return l&&Bt(l,(O,P)=>{h.attr(P,O)}),h}constructor(s,l){this.name=s,this.type=l,l===1&&(this.attributes=[],this.attributes.map={})}replace(s){const l=this;return s.parent&&s.remove(),l.insert(s,l),l.remove(),l}attr(s,l){const h=this;if(!M(s))return B(s)&&Bt(s,(P,Z)=>{h.attr(Z,P)}),h;const O=h.attributes;if(O){if(l!==void 0){if(l===null){if(s in O.map){delete O.map[s];let P=O.length;for(;P--;)if(O[P].name===s)return O.splice(P,1),h}return h}if(s in O.map){let P=O.length;for(;P--;)if(O[P].name===s){O[P].value=l;break}}else O.push({name:s,value:l});return O.map[s]=l,h}return O.map[s]}}clone(){const s=this,l=new hu(s.name,s.type),h=s.attributes;if(h){const O=[];O.map={};for(let P=0,Z=h.length;PM(n.nodeValue)&&n.nodeValue.includes(de),NA=n=>`${n.length===0?"":`${Ie(n,s=>`[${s}]`).join(",")},`}[data-mce-bogus="all"]`,wW=(n,s)=>s.querySelectorAll(NA(n)),_9=n=>document.createTreeWalker(n,NodeFilter.SHOW_COMMENT,s=>E9(s)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),R9=n=>document.createTreeWalker(n,NodeFilter.SHOW_TEXT,s=>{if(E9(s)){const l=s.parentNode;return l&&it(M9,l.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}else return NodeFilter.FILTER_SKIP}),TW=n=>_9(n).nextNode()!==null,CW=n=>R9(n).nextNode()!==null,BA=(n,s)=>s.querySelector(NA(n))!==null,D9=(n,s)=>{re(wW(n,s),l=>{const h=Yt.fromDom(l);Al(h,"data-mce-bogus")==="all"?Ks(h):re(n,O=>{Cf(h,O)&&ci(h,O)})})},kW=n=>{let s=n.nextNode();for(;s!==null;)s.nodeValue=null,s=n.nextNode()},AW=L(kW,_9),Uo=L(kW,R9),$9=(n,s)=>{const l=[{condition:ee(BA,s),action:ee(D9,s)},{condition:TW,action:AW},{condition:CW,action:Uo}];let h=n,O=!1;return re(l,({condition:P,action:Z})=>{P(h)&&(O||(h=n.cloneNode(!0),O=!0),Z(h))}),h},Jo=n=>{const s=sl(n,"[data-mce-bogus]");re(s,l=>{Al(l,"data-mce-bogus")==="all"?Ks(l):ed(l)?(Ui(l,Yt.fromText(Cg)),Ks(l)):Ef(l)})},C_=n=>{const s=sl(n,"input");re(s,l=>{ci(l,"name")})},Cle=(n,s)=>{const l=Ec(n),h=new RegExp(`^(<${l}[^>]*>( | |\\s| |
    |)<\\/${l}>[\r +]*|
    [\r +]*)$`);return s.replace(h,"")},kle=(n,s)=>{const l=n.getDoc(),h=Pf(Yt.fromDom(n.getBody())),O=Yt.fromTag("div",l);Ra(O,"data-mce-bogus","all"),nc(O,{position:"fixed",left:"-9999999px",top:"0"}),gm(O,s.innerHTML),Jo(O),C_(O);const P=GC(h);Ci(P,O);const Z=Pe(O.dom.innerText);return Ks(O),Z},PW=(n,s,l)=>{let h;return s.format==="raw"?h=fr.trim(Pe($9(l,n.serializer.getTempAttrs()).innerHTML)):s.format==="text"?h=kle(n,l):s.format==="tree"?h=n.serializer.serialize(l,s):h=Cle(n,n.serializer.serialize(l,s)),s.format!=="text"&&!Wi(Yt.fromDom(l))&&M(h)?fr.trim(h):h},Ale=(n,s)=>G.from(n.getBody()).fold(ae(s.format==="tree"?new hu("body",11):""),l=>PW(n,s,l)),MW=fr.makeMap,L9=n=>{const s=[];n=n||{};const l=n.indent,h=MW(n.indent_before||""),O=MW(n.indent_after||""),P=Pg.getEncodeFunc(n.entity_encoding||"raw",n.entities),Z=n.element_format!=="xhtml";return{start:(J,he,_e)=>{if(l&&h[J]&&s.length>0){const Ge=s[s.length-1];Ge.length>0&&Ge!==` +`&&s.push(` +`)}if(s.push("<",J),he)for(let Ge=0,qe=he.length;Ge0){const Ge=s[s.length-1];Ge.length>0&&Ge!==` +`&&s.push(` +`)}},end:J=>{let he;s.push(""),l&&O[J]&&s.length>0&&(he=s[s.length-1],he.length>0&&he!==` +`&&s.push(` +`))},text:(J,he)=>{J.length>0&&(s[s.length]=he?J:P(J))},cdata:J=>{s.push("")},comment:J=>{s.push("")},pi:(J,he)=>{he?s.push(""):s.push(""),l&&s.push(` +`)},doctype:J=>{s.push("",l?` +`:"")},reset:()=>{s.length=0},getContent:()=>s.join("").replace(/\n$/,"")}},s1=(n={},s=Cm())=>{const l=L9(n);return n.validate="validate"in n?n.validate:!0,{serialize:O=>{const P=n.validate,Z={3:he=>{var _e;l.text((_e=he.value)!==null&&_e!==void 0?_e:"",he.raw)},8:he=>{var _e;l.comment((_e=he.value)!==null&&_e!==void 0?_e:"")},7:he=>{l.pi(he.name,he.value)},10:he=>{var _e;l.doctype((_e=he.value)!==null&&_e!==void 0?_e:"")},4:he=>{var _e;l.cdata((_e=he.value)!==null&&_e!==void 0?_e:"")},11:he=>{let _e=he;if(_e=_e.firstChild)do J(_e);while(_e=_e.next)}};l.reset();const J=he=>{var _e;const Ge=Z[he.type];if(Ge)Ge(he);else{const qe=he.name,ot=qe in s.getVoidElements();let Et=he.attributes;if(P&&Et&&Et.length>1){const Vt=[];Vt.map={};const kt=s.getElementRule(he.name);if(kt){for(let It=0,cn=kt.attributesOrder.length;It{Mo.add(s)});const I9=["font","text-decoration","text-emphasis"],k_=(n,s)=>Gt(n.parseStyle(n.getAttrib(s,"style"))),EW=n=>Mo.has(n),PT=(n,s)=>Xe(k_(n,s),l=>!EW(l)),N9=n=>se(n,s=>De(I9,l=>Sr(s,l))),_W=(n,s,l)=>{const h=k_(n,s),O=k_(n,l),P=Z=>{var J,he;const _e=(J=n.getStyle(s,Z))!==null&&J!==void 0?J:"",Ge=(he=n.getStyle(l,Z))!==null&&he!==void 0?he:"";return St(_e)&&St(Ge)&&_e!==Ge};return De(h,Z=>{const J=he=>De(he,_e=>_e===Z);if(!J(O)&&J(I9)){const he=N9(O);return De(he,P)}else return P(Z)})},B9=(n,s,l)=>G.from(l.container()).filter(lr).exists(h=>{const O=n?0:-1;return s(h.data.charAt(l.offset()+O))}),A_=ee(B9,!0,Y0),QA=ee(B9,!1,Y0),RW=n=>{const s=n.container();return lr(s)&&(s.data.length===0||we(s.data)&&mv.isBookmarkNode(s.parentNode))},Mb=(n,s)=>l=>rb(n?0:-1,l).filter(s).isSome(),DW=n=>El(n)&&wi(Yt.fromDom(n),"display")==="block",Q9=n=>Os(n)&&!bm(n),$W=Mb(!0,DW),LW=Mb(!1,DW),MT=Mb(!0,ei),Jx=Mb(!1,ei),F9=Mb(!0,ju),as=Mb(!1,ju),bv=Mb(!0,Q9),Vm=Mb(!1,Q9),V9=n=>n.slice(0,-1),z9=(n,s,l)=>tc(s,n)?V9(hy(n,h=>l(h)||Gs(h,s))):[],P_=(n,s)=>z9(n,s,ne),qg=(n,s)=>[n].concat(P_(n,s)),FA=(n,s,l)=>id(n,s,l,RW),IW=n=>s=>n.isBlock(Vs(s)),M_=(n,s,l)=>le(qg(Yt.fromDom(s.container()),n),IW(l)),Z9=(n,s,l,h)=>FA(n,s.dom,l).forall(O=>M_(s,l,h).fold(()=>!Hd(O,l,s.dom),P=>!Hd(O,l,s.dom)&&tc(P,Yt.fromDom(O.container())))),H9=(n,s,l,h)=>M_(s,l,h).fold(()=>FA(n,s.dom,l).forall(O=>!Hd(O,l,s.dom)),O=>FA(n,O.dom,l).isNone()),E_=ee(H9,!1),U9=ee(H9,!0),NW=ee(Z9,!1),BW=ee(Z9,!0),QW=n=>Ax(n).exists(ed),VA=(n,s,l,h)=>{const O=se(qg(Yt.fromDom(l.container()),s),Z=>h.isBlock(Vs(Z))),P=yt(O).getOr(s);return Rl(n,P.dom,l).filter(QW)},ET=(n,s,l)=>Ax(s).exists(ed)||VA(!0,n,s,l).isSome(),_T=(n,s,l)=>NE(s).exists(ed)||VA(!1,n,s,l).isSome(),FW=ee(VA,!1),VW=ee(VA,!0),W9=n=>Nn.isTextPosition(n)&&!n.isAtStart()&&!n.isAtEnd(),Y9=(n,s,l)=>{const h=se(qg(Yt.fromDom(s.container()),n),O=>l.isBlock(Vs(O)));return yt(h).getOr(n)},X9=(n,s,l)=>W9(s)?QA(s):QA(s)||uu(Y9(n,s,l).dom,s).exists(QA),G9=(n,s,l)=>W9(s)?A_(s):A_(s)||Rc(Y9(n,s,l).dom,s).exists(A_),zW=n=>Ze(["pre","pre-wrap"],n),__=n=>Ax(n).bind(s=>wu(s,kl)).exists(s=>zW(wi(s,"white-space"))),j9=(n,s)=>uu(n.dom,s).isNone(),ZW=(n,s)=>Rc(n.dom,s).isNone(),HW=(n,s,l)=>j9(n,s)||ZW(n,s)||E_(n,s,l)||U9(n,s,l)||_T(n,s,l)||ET(n,s,l),Eb=n=>B(n)&&Os(n)&&Qg(n),q9=(n,s)=>l=>Eb(new ca(l,n)[s]()),K9=(n,s)=>{const l=Rc(n.dom,s).getOr(s),h=q9(n.dom,"next");return s.isAtEnd()&&(h(s.container())||h(l.container()))},UW=(n,s)=>{const l=uu(n.dom,s).getOr(s),h=q9(n.dom,"prev");return s.isAtStart()&&(h(s.container())||h(l.container()))},J9=(n,s,l)=>__(s)?!1:HW(n,s,l)||X9(n,s,l)||G9(n,s,l),e2=(n,s,l)=>__(s)?!1:E_(n,s,l)||NW(n,s,l)||_T(n,s,l)||X9(n,s,l)||UW(n,s),eL=n=>{const s=n.container(),l=n.offset();return lr(s)&&l__(s)?!1:U9(n,s,l)||BW(n,s,l)||ET(n,s,l)||G9(n,s,l)||K9(n,s),zA=(n,s,l)=>e2(n,s,l)||t2(n,eL(s),l),mu=(n,s)=>Dx(n.charAt(s)),tL=(n,s)=>Y0(n.charAt(s)),WW=n=>{const s=n.container();return lr(s)&&sr(s.data,zs)},YW=n=>{const s=n.split("");return Ie(s,(l,h)=>Dx(l)&&h>0&&h{const O=s.data,P=Nn(s,0);return!l&&mu(O,0)&&!zA(n,P,h)?(s.data=" "+O.slice(1),!0):l&&tL(O,0)&&e2(n,P,h)?(s.data=zs+O.slice(1),!0):!1},XW=n=>{const s=n.data,l=YW(s);return l!==s?(n.data=l,!0):!1},a1=(n,s,l,h)=>{const O=s.data,P=Nn(s,O.length-1);return!l&&mu(O,O.length-1)&&!zA(n,P,h)?(s.data=O.slice(0,-1)+" ",!0):l&&tL(O,O.length-1)&&t2(n,P,h)?(s.data=O.slice(0,-1)+zs,!0):!1},GW=(n,s,l)=>{const h=s.container();if(!lr(h))return G.none();if(WW(s)){const O=nL(n,h,!1,l)||XW(h)||a1(n,h,!1,l);return Zo(O,s)}else if(zA(n,s,l)){const O=nL(n,h,!0,l)||a1(n,h,!0,l);return Zo(O,s)}else return G.none()},jW=n=>{const s=Yt.fromDom(n.getBody());n.selection.isCollapsed()&&GW(s,Nn.fromRangeStart(n.selection.getRng()),n.schema).each(l=>{n.selection.setRng(l.toRange())})},ri=(n,s,l,h)=>{if(l===0)return;const O=Yt.fromDom(n),P=ui(O,_e=>h.isBlock(Vs(_e))).getOr(O),Z=n.data.slice(s,s+l),J=s+l>=n.data.length&&t2(P,Nn(n,n.data.length),h),he=s===0&&e2(P,Nn(n,0),h);n.replaceData(s,l,Ki(Z,4,he,J))},_b=(n,s,l)=>{const h=n.data.slice(s),O=h.length-Fe(h).length;ri(n,s,O,l)},rL=(n,s,l)=>{const h=n.data.slice(0,s),O=h.length-Ee(h).length;ri(n,s-O,O,l)},Dl=(n,s,l,h,O=!0)=>{const P=Ee(n.data).length,Z=O?n:s,J=O?s:n;return O?Z.appendData(J.data):Z.insertData(0,J.data),Ks(Yt.fromDom(J)),h&&_b(Z,P,l),Z},qW=(n,s)=>{const l=n.container(),h=n.offset();return!Nn.isTextPosition(n)&&l===s.parentNode&&h>Nn.before(s).offset()},KW=(n,s)=>qW(s,n)?Nn(s.container(),s.offset()-1):s,Ov=n=>lr(n)?Nn(n,0):Nn.before(n),ia=n=>lr(n)?Nn(n,n.data.length):Nn.after(n),R_=n=>go(n.previousSibling)?G.some(ia(n.previousSibling)):n.previousSibling?ld(n.previousSibling):G.none(),D_=n=>go(n.nextSibling)?G.some(Ov(n.nextSibling)):n.nextSibling?Xc(n.nextSibling):G.none(),JW=(n,s)=>G.from(s.previousSibling?s.previousSibling:s.parentNode).bind(l=>uu(n,Nn.before(l))).orThunk(()=>Rc(n,Nn.after(s))),eY=(n,s)=>Rc(n,Nn.after(s)).orThunk(()=>uu(n,Nn.before(s))),tY=(n,s)=>R_(s).orThunk(()=>D_(s)).orThunk(()=>JW(n,s)),Bf=(n,s)=>D_(s).orThunk(()=>R_(s)).orThunk(()=>eY(n,s)),zm=(n,s,l)=>n?Bf(s,l):tY(s,l),nY=(n,s,l)=>zm(n,s,l).map(ee(KW,l)),ZA=(n,s,l)=>{l.fold(()=>{n.focus()},h=>{n.selection.setRng(h.toRange(),s)})},$_=n=>s=>s.dom===n,rY=(n,s)=>s&&it(n.schema.getBlockElements(),Vs(s)),oY=(n,s)=>{if(ta(n)){const l=Yt.fromHtml('
    ');return s?re(ol(n),h=>{pb(h)||Ks(h)}):bh(n),Ci(n,l),G.some(Nn.before(l.dom))}else return G.none()},RT=(n,s,l,h)=>{const O=Uu(n).filter(Zi),P=zp(n).filter(Zi);return Ks(n),yl(O,P,s,(Z,J,he)=>{const _e=Z.dom,Ge=J.dom,qe=_e.data.length;return Dl(_e,Ge,l,h),he.container()===Ge?Nn(_e,qe):he}).orThunk(()=>(h&&(O.each(Z=>rL(Z.dom,Z.dom.length,l)),P.each(Z=>_b(Z.dom,0,l))),s))},HA=(n,s)=>it(n.schema.getTextInlineElements(),Vs(s)),xv=(n,s,l,h=!0,O=!1)=>{const P=nY(s,n.getBody(),l.dom),Z=ui(l,ee(rY,n),$_(n.getBody())),J=RT(l,P,n.schema,HA(n,l));n.dom.isEmpty(n.getBody())?(n.setContent(""),n.selection.setCursorLocation()):Z.bind(he=>oY(he,O)).fold(()=>{h&&ZA(n,s,J)},he=>{h&&ZA(n,s,G.some(he))})},sY=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,Zm=n=>sY.test(n),Rb=(n,s)=>Hu(Yt.fromDom(s),fE(n))&&!ks(n.schema,s)&&n.dom.isEditable(s),oL=n=>{var s;return Da.DOM.getStyle(n,"direction",!0)==="rtl"||Zm((s=n.textContent)!==null&&s!==void 0?s:"")},Gd=(n,s,l)=>se(Da.DOM.getParents(l.container(),"*",s),n),Ih=(n,s,l)=>{const h=Gd(n,s,l);return G.from(h[h.length-1])},Nh=(n,s,l)=>{const h=_m(s,n),O=_m(l,n);return B(h)&&h===O},aY=n=>gn(n)||An(n),Ds=(n,s)=>{const l=s.container(),h=s.offset();return n?vt(l)?lr(l.nextSibling)?Nn(l.nextSibling,0):Nn.after(l):gn(s)?Nn(l,h+1):s:vt(l)?lr(l.previousSibling)?Nn(l.previousSibling,l.previousSibling.data.length):Nn.before(l):An(s)?Nn(l,h-1):s},Db=ee(Ds,!0),DT=ee(Ds,!1),L_=(n,s)=>{const l=h=>h.stopImmediatePropagation();n.on("beforeinput input",l,!0),n.getDoc().execCommand(s),n.off("beforeinput input",l)},I_=n=>{n.execCommand("delete")},$T=n=>L_(n,"Delete"),iY=n=>L_(n,"ForwardDelete"),N_=n=>s=>Qa(ru(s),n,Gs),lY=n=>Mn(n)||td(n),LT=(n,s)=>tc(n,s)?wu(s,lY,N_(n)):G.none(),UA=(n,s=!0)=>{n.dom.isEmpty(n.getBody())&&n.setContent("",{no_selection:!s})},WA=(n,s,l)=>Fa(Xc(l),ld(l),(h,O)=>{const P=Ds(!0,h),Z=Ds(!1,O),J=Ds(!1,s);return n?Rc(l,J).exists(he=>he.isEqual(Z)&&s.isEqual(P)):uu(l,J).exists(he=>he.isEqual(P)&&s.isEqual(Z))}).getOr(!0),B_=n=>(QS(n)?Uu(n):xc(n)).bind(B_).orThunk(()=>G.some(n)),IT=(n,s,l,h=!0)=>{var O;s.deleteContents();const P=B_(l).getOr(l),Z=Yt.fromDom((O=n.dom.getParent(P.dom,n.dom.isBlock))!==null&&O!==void 0?O:l.dom);if(Z.dom===n.getBody()?UA(n,h):ta(Z)&&(D(Z),h&&n.selection.setCursorLocation(Z.dom,0)),!Gs(l,Z)){const J=Qa(ru(Z),l)?[]:DO(Z);re(J.concat(ol(l)),he=>{!Gs(he,Z)&&!tc(he,Z)&&ta(he)&&Ks(he)})}},cY=(n,s,l)=>ui(n,s,l).isSome(),uY=(n,s)=>py(n,s).isSome(),sL=(n,s)=>Vl(n,s).isSome(),fY=n=>s=>Gs(n,s),Q_=n=>sl(n,"td,th"),F_=(n,s)=>$m(Yt.fromDom(n),s),dY=n=>Fa(n.startTable,n.endTable,(s,l)=>{const h=sL(s,P=>Gs(P,l)),O=sL(l,P=>Gs(P,s));return!h&&!O?n:{...n,startTable:h?G.none():n.startTable,endTable:O?G.none():n.endTable,isSameTable:!1,isMultiTable:!1}}).getOr(n),hY=n=>dY(n),aL=(n,s)=>{const l=F_(n.startContainer,s),h=F_(n.endContainer,s),O=l.isSome(),P=h.isSome(),Z=Fa(l,h,Gs).getOr(!1);return hY({startTable:l,endTable:h,isStartInTable:O,isEndInTable:P,isSameTable:Z,isMultiTable:!Z&&O&&P})},YA=(n,s)=>({start:n,end:s}),mY=(n,s,l)=>({rng:n,table:s,cells:l}),NT=Zd.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),BT=(n,s)=>Mf(Yt.fromDom(n),"td,th",s),iL=n=>!Gs(n.start,n.end),V_=(n,s)=>$m(n.start,s).bind(l=>$m(n.end,s).bind(h=>Zo(Gs(l,h),l))),dd=(n,s)=>!iL(n)&&V_(n,s).exists(l=>{const h=l.dom.rows;return h.length===1&&h[0].cells.length===1}),gY=(n,s)=>{const l=BT(n.startContainer,s),h=BT(n.endContainer,s);return Fa(l,h,YA)},lL=n=>s=>$m(s,n).bind(l=>ft(Q_(l)).map(h=>YA(s,h))),z_=n=>s=>$m(s,n).bind(l=>yt(Q_(l)).map(h=>YA(h,s))),QT=n=>s=>V_(s,n).map(l=>mY(s,l,Q_(l))),Z_=(n,s,l,h)=>{if(l.collapsed||!n.forall(iL))return G.none();if(s.isSameTable){const O=n.bind(QT(h));return G.some({start:O,end:O})}else{const O=BT(l.startContainer,h),P=BT(l.endContainer,h),Z=O.bind(lL(h)).bind(QT(h)),J=P.bind(z_(h)).bind(QT(h));return G.some({start:Z,end:J})}},H_=(n,s)=>Ce(n,l=>Gs(l,s)),U_=n=>Fa(H_(n.cells,n.rng.start),H_(n.cells,n.rng.end),(s,l)=>n.cells.slice(s,l+1)),pY=(n,s,l)=>n.exists(h=>dd(h,l)&&aT(h.start,s)),XA=(n,s)=>{const{startTable:l,endTable:h}=s,O=n.cloneRange();return l.each(P=>O.setStartAfter(P.dom)),h.each(P=>O.setEndBefore(P.dom)),O},cL=(n,s,l,h)=>Z_(n,s,l,h).bind(({start:O,end:P})=>O.or(P)).bind(O=>{const{isSameTable:P}=s,Z=U_(O).getOr([]);if(P&&O.cells.length===Z.length)return G.some(NT.fullTable(O.table));if(Z.length>0){if(P)return G.some(NT.partialTable(Z,G.none()));{const J=XA(l,s);return G.some(NT.partialTable(Z,G.some({...s,rng:J})))}}else return G.none()}),Bh=(n,s,l,h)=>Z_(n,s,l,h).bind(({start:O,end:P})=>{const Z=O.bind(U_).getOr([]),J=P.bind(U_).getOr([]);if(Z.length>0&&J.length>0){const he=XA(l,s);return G.some(NT.multiTable(Z,J,he))}else return G.none()}),vY=(n,s)=>{const l=fY(n),h=gY(s,l),O=aL(s,l);return pY(h,s,l)?h.map(P=>NT.singleCellTable(s,P.start)):O.isMultiTable?Bh(h,O,s,l):cL(h,O,s,l)},uL=n=>re(n,s=>{ci(s,"contenteditable"),D(s)}),Ple=(n,s)=>G.from(n.dom.getParent(s,n.dom.isBlock)).map(Yt.fromDom),W_=(n,s,l)=>{l.each(h=>{s?Ks(h):(D(h),n.selection.setCursorLocation(h.dom,0))})},Y_=(n,s,l,h)=>{const O=l.cloneRange();h?(O.setStart(l.startContainer,l.startOffset),O.setEndAfter(s.dom.lastChild)):(O.setStartBefore(s.dom.firstChild),O.setEnd(l.endContainer,l.endOffset)),Qf(n,O,s,!1).each(P=>P())},$b=n=>{const s=X0(n),l=Yt.fromDom(n.selection.getNode());jp(l.dom)&&ta(l)?n.selection.setCursorLocation(l.dom,0):n.selection.collapse(!0),s.length>1&&De(s,h=>Gs(h,l))&&Ra(l,"data-mce-selected","1")},fL=(n,s,l)=>G.some(()=>{const h=n.selection.getRng(),O=l.bind(({rng:P,isStartInTable:Z})=>{const J=Ple(n,Z?P.endContainer:P.startContainer);P.deleteContents(),W_(n,Z,J.filter(ta));const he=Z?s[0]:s[s.length-1];return Y_(n,he,h,Z),ta(he)?G.none():G.some(Z?s.slice(1):s.slice(0,-1))}).getOr(s);uL(O),$b(n)}),n2=(n,s,l,h)=>G.some(()=>{const O=n.selection.getRng(),P=s[0],Z=l[l.length-1];Y_(n,P,O,!0),Y_(n,Z,O,!1);const J=ta(P)?s:s.slice(1),he=ta(Z)?l:l.slice(0,-1);uL(J.concat(he)),h.deleteContents(),$b(n)}),Qf=(n,s,l,h=!0)=>G.some(()=>{IT(n,s,l,h)}),FT=(n,s)=>G.some(()=>xv(n,!1,s)),_a=(n,s,l)=>vY(s,l).bind(h=>h.fold(ee(Qf,n),ee(FT,n),ee(fL,n),ee(n2,n))),VT=(n,s)=>r2(n,s),dL=(n,s,l,h)=>zT(s,h).fold(()=>_a(n,s,l),O=>VT(n,O)),hL=(n,s,l)=>{const h=Yt.fromDom(n.getBody()),O=n.selection.getRng();return l.length!==0?fL(n,l,G.none()):dL(n,h,O,s)},GA=(n,s)=>le(qg(s,n),Hc),zT=(n,s)=>le(qg(s,n),xu("caption")),X_=(n,s,l,h,O)=>Dm(l,n.getBody(),O).bind(P=>GA(s,Yt.fromDom(P.getNode())).bind(Z=>Gs(Z,h)?G.none():G.some(ie))),r2=(n,s)=>G.some(()=>{D(s),n.selection.setCursorLocation(s.dom,0)}),jA=(n,s,l,h)=>Xc(n.dom).bind(O=>ld(n.dom).map(P=>s?l.isEqual(O)&&h.isEqual(P):l.isEqual(P)&&h.isEqual(O))).getOr(!0),G_=(n,s)=>r2(n,s),mL=(n,s,l)=>zT(n,Yt.fromDom(l.getNode())).fold(()=>G.some(ie),h=>Zo(!Gs(h,s),ie)),gL=(n,s,l,h,O)=>Dm(l,n.getBody(),O).fold(()=>G.some(ie),P=>jA(h,l,O,P)?G_(n,h):mL(s,h,P)),pL=(n,s,l,h)=>{const O=Nn.fromRangeStart(n.selection.getRng());return GA(l,h).bind(P=>ta(P)?r2(n,P):X_(n,l,s,P,O))},vL=(n,s,l,h)=>{const O=Nn.fromRangeStart(n.selection.getRng());return ta(h)?r2(n,h):gL(n,l,s,h,O)},j_=(n,s)=>n?F9(s):as(s),o2=(n,s)=>{const l=Nn.fromRangeStart(n.selection.getRng());return j_(s,l)||Rl(s,n.getBody(),l).exists(h=>j_(s,h))},yL=(n,s,l)=>{const h=Yt.fromDom(n.getBody());return zT(h,l).fold(()=>pL(n,s,h,l).orThunk(()=>Zo(o2(n,s),ie)),O=>vL(n,s,h,O))},ZT=(n,s)=>{const l=Yt.fromDom(n.selection.getStart(!0)),h=X0(n);return n.selection.isCollapsed()&&h.length===0?yL(n,s,l):hL(n,l,h)},Lb=(n,s)=>{let l=s;for(;l&&l!==n;){if(Zl(l)||Os(l))return l;l=l.parentNode}return null},yY=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],bL=fr.each,qA=n=>{const s=n.dom,l=new Set(n.serializer.getTempAttrs()),h=(P,Z)=>{if(P.nodeName!==Z.nodeName||P.nodeType!==Z.nodeType)return!1;const J=_e=>{const Ge={};return bL(s.getAttribs(_e),qe=>{const ot=qe.nodeName.toLowerCase();ot!=="style"&&!O(ot)&&(Ge[ot]=s.getAttrib(_e,ot))}),Ge},he=(_e,Ge)=>{for(const qe in _e)if(it(_e,qe)){const ot=Ge[qe];if(U(ot)||_e[qe]!==ot)return!1;delete Ge[qe]}for(const qe in Ge)if(it(Ge,qe))return!1;return!0};return Xr(P)&&Xr(Z)&&(!he(J(P),J(Z))||!he(s.parseStyle(s.getAttrib(P,"style")),s.parseStyle(s.getAttrib(Z,"style"))))?!1:!af(P)&&!af(Z)},O=P=>De(yY,Z=>Sr(P,Z))||l.has(P);return{compare:h,isAttributeInternal:O}},q_=n=>["h1","h2","h3","h4","h5","h6"].includes(n.name),KA=n=>n.name==="summary",OL=(n,s)=>{let l=n;for(;l=l.walk();)s(l)},K_=(n,s,l,h)=>{const O=l.name;for(let P=0,Z=n.length;P{const h={nodes:{},attributes:{}};return l.firstChild&&OL(l,O=>{K_(n,s,O,h)}),h},J_=(n,s)=>{const l=(h,O)=>{Bt(h,P=>{const Z=tt(P.nodes);re(P.filter.callbacks,J=>{for(let he=Z.length-1;he>=0;he--){const _e=Z[he];(!(O?_e.attr(P.filter.name)!==void 0:_e.name===P.filter.name)||Q(_e.parent))&&Z.splice(he,1)}Z.length>0&&J(Z,P.filter.name,s)})})};l(n.nodes,!1),l(n.attributes,!0)},e8=(n,s,l,h={})=>{const O=xL(n,s,l);J_(O,h)},JA=(n,s,l,h)=>{if((n.pad_empty_with_br||s.insert)&&l(h)){const P=new hu("br",1);s.insert&&P.attr("data-mce-bogus","1"),h.empty().append(P)}else h.empty().append(new hu("#text",3)).value=zs},SL=n=>{var s;return t8(n,"#text")&&((s=n==null?void 0:n.firstChild)===null||s===void 0?void 0:s.value)===zs},t8=(n,s)=>{const l=n==null?void 0:n.firstChild;return B(l)&&l===n.lastChild&&l.name===s},wL=(n,s)=>{const l=n.getElementRule(s.name);return(l==null?void 0:l.paddEmpty)===!0},s2=(n,s,l,h)=>h.isEmpty(s,l,O=>wL(n,O)),n8=(n,s)=>B(n)&&(s(n)||n.name==="br"),TL=n=>{let s;for(let l=n;l;l=l.parent){const h=l.attr("contenteditable");if(h==="false")break;h==="true"&&(s=l)}return G.from(s)},e5=(n,s,l=n.parent)=>{if(s.getSpecialElements()[n.name])n.empty().remove();else{const h=n.children();for(const O of h)l&&!s.isValidChild(l.name,O.name)&&e5(O,s,l);n.unwrap()}},t5=(n,s,l,h=ie)=>{const O=s.getTextBlockElements(),P=s.getNonEmptyElements(),Z=s.getWhitespaceElements(),J=fr.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),he=new Set,_e=Ge=>Ge!==l&&!J[Ge.name];for(let Ge=0;Ge1)if(n5(s,qe,ot))e5(qe,s);else{kt.reverse(),Et=kt[0].clone(),h(Et);let It=Et;for(let cn=0;cn0?(Vt=kt[cn].clone(),h(Vt),It.append(Vt)):Vt=It;for(let xn=kt[cn].firstChild;xn&&xn!==kt[cn+1];){const bn=xn.next;Vt.append(xn),xn=bn}It=Vt}s2(s,P,Z,Et)?ot.insert(qe,kt[0],!0):(ot.insert(Et,kt[0],!0),ot.insert(qe,Et)),ot=kt[0],(s2(s,P,Z,ot)||t8(ot,"br"))&&ot.empty().remove()}else if(qe.parent){if(qe.name==="li"){let It=qe.prev;if(It&&(It.name==="ul"||It.name==="ol")){It.append(qe);continue}if(It=qe.next,It&&(It.name==="ul"||It.name==="ol")&&It.firstChild){It.insert(qe,It.firstChild,!0);continue}const cn=new hu("ul",1);h(cn),qe.wrap(cn);continue}if(s.isValidChild(qe.parent.name,"div")&&s.isValidChild("div",qe.name)){const It=new hu("div",1);h(It),qe.wrap(It)}else e5(qe,s)}}},CL=(n,s)=>{let l=n;for(;l;){if(l.name===s)return!0;l=l.parent}return!1},n5=(n,s,l=s.parent)=>l?n.children[s.name]&&!n.isValidChild(l.name,s.name)||s.name==="a"&&CL(l,"a")?!0:KA(l)&&q_(s)?!((l==null?void 0:l.firstChild)===s&&(l==null?void 0:l.lastChild)===s):!1:!1,kL=(n,s,l,h)=>{const O=document.createRange();return O.setStart(n,s),O.setEnd(l,h),O},r8=n=>{const s=Nn.fromRangeStart(n),l=Nn.fromRangeEnd(n),h=n.commonAncestorContainer;return Rl(!1,h,l).map(O=>!Hd(s,l,h)&&Hd(s,O,h)?kL(s.container(),s.offset(),O.container(),O.offset()):n).getOr(n)},a2=n=>n.collapsed?n:r8(n),r5=n=>B(n.firstChild)&&n.firstChild===n.lastChild,o8=n=>n.name==="br"||n.value===zs,AL=(n,s)=>n.getBlockElements()[s.name]&&r5(s)&&o8(s.firstChild),o5=(n,s)=>{const l=n.getNonEmptyElements();return B(s)&&(s.isEmpty(l)||AL(n,s))},s8=(n,s)=>{let l=s.firstChild,h=s.lastChild;return l&&l.name==="meta"&&(l=l.next),h&&h.attr("id")==="mce_marker"&&(h=h.prev),o5(n,h)&&(h=h==null?void 0:h.prev),!l||l!==h?!1:l.name==="ul"||l.name==="ol"},HT=n=>{var s,l;const h=n.firstChild,O=n.lastChild;return h&&h.nodeName==="META"&&((s=h.parentNode)===null||s===void 0||s.removeChild(h)),O&&O.id==="mce_marker"&&((l=O.parentNode)===null||l===void 0||l.removeChild(O)),n},a8=(n,s,l)=>{const h=s.serialize(l),O=n.createFragment(h);return HT(O)},PL=n=>{var s;return se((s=n==null?void 0:n.childNodes)!==null&&s!==void 0?s:[],l=>l.nodeName==="LI")},i2=n=>n.data===zs||aa(n),i8=n=>B(n==null?void 0:n.firstChild)&&n.firstChild===n.lastChild&&i2(n.firstChild),l8=n=>!n.firstChild||i8(n),UT=n=>n.length>0&&l8(n[n.length-1])?n.slice(0,-1):n,Kg=(n,s)=>{const l=n.getParent(s,n.isBlock);return l&&l.nodeName==="LI"?l:null},ML=(n,s)=>!!Kg(n,s),bY=(n,s)=>{const l=s.cloneRange(),h=s.cloneRange();return l.setStartBefore(n),h.setEndAfter(n),[l.cloneContents(),h.cloneContents()]},EL=(n,s)=>{const l=Nn.before(n),O=Ud(s).next(l);return O?O.toRange():null},c8=(n,s)=>{const l=Nn.after(n),O=Ud(s).prev(l);return O?O.toRange():null},OY=(n,s,l,h)=>{const O=bY(n,h),P=n.parentNode;return P&&(P.insertBefore(O[0],n),fr.each(s,Z=>{P.insertBefore(Z,n)}),P.insertBefore(O[1],n),P.removeChild(n)),c8(s[s.length-1],l)},Mle=(n,s,l)=>{const h=n.parentNode;return h&&fr.each(s,O=>{h.insertBefore(O,n)}),EL(n,l)},xY=(n,s,l,h)=>(h.insertAfter(s.reverse(),n),c8(s[0],l)),u8=(n,s,l,h)=>{const O=a8(s,n,h),P=Kg(s,l.startContainer),Z=UT(PL(O.firstChild)),J=1,he=2,_e=s.getRoot(),Ge=qe=>{const ot=Nn.fromRangeStart(l),Et=Ud(s.getRoot()),Vt=qe===J?Et.prev(ot):Et.next(ot),kt=Vt==null?void 0:Vt.getNode();return kt?Kg(s,kt)!==P:!0};return P?Ge(J)?Mle(P,Z,_e):Ge(he)?xY(P,Z,_e,s):OY(P,Z,_e,l):null},Hm=["pre"],f8=(n,s,l,h)=>{var O;const P=s.firstChild,Z=s.lastChild,J=Z.attr("data-mce-type")==="bookmark"?Z.prev:Z,he=P===J,_e=Ze(Hm,P.name);if(he&&_e){const Ge=P.attr("contenteditable")!=="false",qe=((O=n.getParent(l,n.isBlock))===null||O===void 0?void 0:O.nodeName.toLowerCase())===P.name,ot=G.from(Lb(h,l)).forall(Zl);return Ge&&qe&&ot}else return!1},l2=jp,d8=(n,s,l)=>{if(B(l)){const h=n.getParent(s.endContainer,l2);return l===h&&aT(Yt.fromDom(l),s)}else return!1},SY=(n,s,l)=>{var h;if(l.getAttribute("data-mce-bogus")==="all")(h=l.parentNode)===null||h===void 0||h.insertBefore(n.dom.createFragment(s),l);else{const O=l.firstChild,P=l.lastChild;!O||O===P&&O.nodeName==="BR"?n.dom.setHTML(l,s):n.selection.setContent(s,{no_events:!0})}},_L=(n,s,l)=>{G.from(n.getParent(s,"td,th")).map(Yt.fromDom).each(h=>X(h,l))},wY=(n,s)=>{const l=n.schema.getTextInlineElements(),h=n.dom;if(s){const O=n.getBody(),P=qA(n);fr.each(h.select("*[data-mce-fragment]"),Z=>{if(B(l[Z.nodeName.toLowerCase()])&&PT(h,Z)){for(let he=Z.parentElement;B(he)&&he!==O&&!_W(h,Z,he);he=he.parentElement)if(P.compare(he,Z)){h.remove(Z,!0);break}}})}},RL=n=>{let s=n;for(;s=s.walk();)s.type===1&&s.attr("data-mce-fragment","1")},h8=n=>{fr.each(n.getElementsByTagName("*"),s=>{s.removeAttribute("data-mce-fragment")})},TY=n=>!!n.getAttribute("data-mce-fragment"),DL=(n,s)=>B(s)&&!n.schema.getVoidElements()[s.nodeName],CY=(n,s)=>{var l,h,O;let P;const Z=n.dom,J=n.selection;if(!s)return;J.scrollIntoView(s);const he=Lb(n.getBody(),s);if(he&&Z.getContentEditable(he)==="false"){Z.remove(s),J.select(he);return}let _e=Z.createRng();const Ge=s.previousSibling;if(lr(Ge)){_e.setStart(Ge,(h=(l=Ge.nodeValue)===null||l===void 0?void 0:l.length)!==null&&h!==void 0?h:0);const Et=s.nextSibling;lr(Et)&&(Ge.appendData(Et.data),(O=Et.parentNode)===null||O===void 0||O.removeChild(Et))}else _e.setStartBefore(s),_e.setEndBefore(s);const qe=Et=>{let Vt=Nn.fromRangeStart(Et);return Vt=Ud(n.getBody()).next(Vt),Vt==null?void 0:Vt.toRange()},ot=Z.getParent(s,Z.isBlock);if(Z.remove(s),ot&&Z.isEmpty(ot)){const Et=l2(ot);bh(Yt.fromDom(ot)),_e.setStart(ot,0),_e.setEnd(ot,0),!Et&&!TY(ot)&&(P=qe(_e))?(_e=P,Z.remove(ot)):Z.add(ot,Z.create("br",Et?{}:{"data-mce-bogus":"1"}))}J.setRng(_e)},WT=n=>{const s=n.dom,l=a2(n.selection.getRng());n.selection.setRng(l);const h=s.getParent(l.startContainer,l2);d8(s,l,h)?Qf(n,l,Yt.fromDom(h)):l.startContainer===l.endContainer&&l.endOffset-l.startOffset===1&&lr(l.startContainer.childNodes[l.startOffset])?l.deleteContents():n.getDoc().execCommand("Delete",!1)},$L=n=>{for(let s=n;s;s=s.walk())if(s.attr("id")==="mce_marker")return G.some(s);return G.none()},kY=(n,s,l)=>{var h;return De(l.children(),q_)&&((h=n.getParent(s,n.isBlock))===null||h===void 0?void 0:h.nodeName)==="SUMMARY"},LL=(n,s,l)=>{var h,O;const P=n.selection,Z=n.dom,J=n.parser,he=l.merge,_e=s1({validate:!0},n.schema),Ge='';l.preserve_zwsp||(s=Pe(s)),s.indexOf("{$caret}")===-1&&(s+="{$caret}"),s=s.replace(/\{\$caret\}/,Ge);let qe=P.getRng();const ot=qe.startContainer,Et=n.getBody();ot===Et&&P.isCollapsed()&&Z.isBlock(Et.firstChild)&&DL(n,Et.firstChild)&&Z.isEmpty(Et.firstChild)&&(qe=Z.createRng(),qe.setStart(Et.firstChild,0),qe.setEnd(Et.firstChild,0),P.setRng(qe)),P.isCollapsed()||WT(n);const Vt=P.getNode(),kt={context:Vt.nodeName.toLowerCase(),data:l.data,insert:!0},It=J.parse(s,kt);if(l.paste===!0&&s8(n.schema,It)&&ML(Z,Vt))return qe=u8(_e,Z,P.getRng(),It),qe&&P.setRng(qe),s;l.paste===!0&&f8(Z,It,Vt,n.getBody())&&((h=It.firstChild)===null||h===void 0||h.unwrap()),RL(It);let cn=It.lastChild;if(cn&&cn.attr("id")==="mce_marker"){const xn=cn;for(cn=cn.prev;cn;cn=cn.walk(!0))if(cn.type===3||!Z.isBlock(cn.name)){cn.parent&&n.schema.isValidChild(cn.parent.name,"span")&&cn.parent.insert(xn,cn,cn.name==="br");break}}if(n._selectionOverrides.showBlockCaretContainer(Vt),!kt.invalid&&!kY(Z,Vt,It))s=_e.serialize(It),SY(n,s,Vt);else{n.selection.setContent(Ge);let xn=P.getNode(),bn;const $n=n.getBody();for(Tg(xn)?xn=bn=$n:bn=xn;bn&&bn!==$n;)xn=bn,bn=bn.parentNode;s=xn===$n?$n.innerHTML:Z.getOuterHTML(xn);const rr=J.parse(s),gr=$L(rr),Qr=gr.bind(TL).getOr(rr);gr.each(eo=>eo.replace(It));const zn=It.children(),Bn=(O=It.parent)!==null&&O!==void 0?O:rr;It.unwrap();const tr=se(zn,eo=>n5(n.schema,eo,Bn));t5(tr,n.schema,Qr),e8(J.getNodeFilters(),J.getAttributeFilters(),rr),s=_e.serialize(rr),xn===$n?Z.setHTML($n,s):Z.setOuterHTML(xn,s)}return wY(n,he),CY(n,Z.get("mce_marker")),h8(n.getBody()),_L(Z,P.getStart(),n.schema),JC(n.schema,n.getBody(),P.getStart()),s},s5=n=>n instanceof hu,AY=n=>{o1(n)&&Xc(n.getBody()).each(s=>{const l=s.getNode(),h=ju(l)?Xc(l).getOr(s):s;n.selection.setRng(h.toRange())})},m8=(n,s,l)=>{n.dom.setHTML(n.getBody(),s),l!==!0&&AY(n)},PY=(n,s,l,h)=>{if(l=Pe(l),l.length===0||/^\s+$/.test(l)){const O='
    ';s.nodeName==="TABLE"?l=""+O+"":/^(UL|OL)$/.test(s.nodeName)&&(l="
  • "+O+"
  • ");const P=Ec(n);return n.schema.isValidChild(s.nodeName.toLowerCase(),P.toLowerCase())?(l=O,l=n.dom.createHTML(P,Yy(n),l)):l||(l=O),m8(n,l,h.no_selection),{content:l,html:l}}else{h.format!=="raw"&&(l=s1({validate:!1},n.schema).serialize(n.parser.parse(l,{isRootContent:!0,insert:!0})));const O=Wi(Yt.fromDom(s))?l:fr.trim(l);return m8(n,O,h.no_selection),{content:O,html:O}}},MY=(n,s,l,h)=>{e8(n.parser.getNodeFilters(),n.parser.getAttributeFilters(),l);const O=s1({validate:!1},n.schema).serialize(l),P=Pe(Wi(Yt.fromDom(s))?O:fr.trim(O));return m8(n,P,h.no_selection),{content:l,html:P}},IL=(n,s,l)=>G.from(n.getBody()).map(h=>s5(s)?MY(n,h,s,l):PY(n,h,s,l)).getOr({content:s,html:s5(l.content)?"":l.content}),NL=n=>E(n)?n:ne,g8=(n,s,l)=>{let h=n.dom;const O=NL(l);for(;h.parentNode;){h=h.parentNode;const P=Yt.fromDom(h),Z=s(P);if(Z.isSome())return Z;if(O(P))break}return G.none()},Sv=(n,s,l)=>{const h=s(n),O=NL(l);return h.orThunk(()=>O(n)?G.none():g8(n,s,O))},p8=Bx,BL=(n,s,l)=>{const h=n.formatter.get(l);if(h)for(let O=0;O{const P=n.dom.getRoot();if(s===P)return!1;const Z=n.dom.getParent(s,J=>BL(n,J,l)?!0:J.parentNode===P||!!Jg(n,J,l,h,!0));return!!Jg(n,Z,l,h,O)},YT=(n,s,l)=>Xi(l)&&p8(s,l.inline)||Xd(l)&&p8(s,l.block)?!0:jl(l)?Xr(s)&&n.is(s,l.selector):!1,v8=(n,s,l,h,O,P)=>{const Z=l[h],J=h==="attributes";if(E(l.onmatch))return l.onmatch(s,l,h);if(Z){if(Dt(Z)){for(let he=0;he{const P=n.formatter.get(l),Z=n.dom;if(P&&Xr(s))for(let J=0;J{if(h)return c2(n,h,s,l,O);if(h=n.selection.getNode(),c2(n,h,s,l,O))return!0;const P=n.selection.getStart();return!!(P!==h&&c2(n,P,s,l,O))},EY=(n,s,l)=>{const h=[],O={},P=n.selection.getStart();return n.dom.getParent(P,Z=>{for(let J=0;J{const l=O=>Gs(O,Yt.fromDom(n.getBody())),h=(O,P)=>Jg(n,O.dom,P)?G.some(P):G.none();return G.from(n.selection.getStart(!0)).bind(O=>Sv(Yt.fromDom(O),P=>wt(s,Z=>h(P,Z)),l)).getOrNull()},QL=(n,s)=>{const l=n.formatter.get(s),h=n.dom;if(l&&n.selection.isEditable()){const O=n.selection.getStart(),P=hb(h,O);for(let Z=l.length-1;Z>=0;Z--){const J=l[Z];if(!jl(J))return!0;for(let he=P.length-1;he>=0;he--)if(h.is(P[he],J.selector))return!0}}return!1},FL=(n,s,l)=>oe(l,(h,O)=>{const P=uT(n,O);return n.formatter.matchNode(s,O,{},P)?h.concat([O]):h},[]),u2=de,i5=(n,s)=>n.importNode(s,!0),y8=n=>{if(n){const s=new ca(n,n);for(let l=s.current();l;l=s.next())if(lr(l))return l}return null},b8=n=>{const s=Yt.fromTag("span");return Su(s,{id:Ex,"data-mce-bogus":"1","data-mce-type":"format-caret"}),n&&Ci(s,Yt.fromText(u2)),s},VL=n=>{const s=y8(n);return s&&s.data.charAt(0)===u2&&s.deleteData(0,1),s},O8=(n,s,l)=>{const h=n.dom,O=n.selection;if(gb(s))xv(n,!1,Yt.fromDom(s),l,!0);else{const P=O.getRng(),Z=h.getParent(s,h.isBlock),J=P.startContainer,he=P.startOffset,_e=P.endContainer,Ge=P.endOffset,qe=VL(s);h.remove(s,!0),J===qe&&he>0&&P.setStart(qe,he-1),_e===qe&&Ge>0&&P.setEnd(qe,Ge-1),Z&&h.isEmpty(Z)&&D(Yt.fromDom(Z)),O.setRng(P)}},x8=(n,s,l)=>{const h=n.dom,O=n.selection;if(s)O8(n,s,l);else if(s=fv(n.getBody(),O.getStart()),!s)for(;s=h.get(Ex);)O8(n,s,l)},l5=(n,s,l)=>{var h,O;const P=n.dom,Z=P.getParent(l,ee(el,n.schema));Z&&P.isEmpty(Z)?(h=l.parentNode)===null||h===void 0||h.replaceChild(s,l):(qC(Yt.fromDom(l)),P.isEmpty(l)?(O=l.parentNode)===null||O===void 0||O.replaceChild(s,l):P.insertAfter(s,l))},S8=(n,s)=>(n.appendChild(s),s),c5=(n,s)=>{var l;const h=ue(n,(P,Z)=>S8(P,Z.cloneNode(!1)),s),O=(l=h.ownerDocument)!==null&&l!==void 0?l:document;return S8(h,O.createTextNode(u2))},_Y=(n,s,l,h,O,P)=>{const Z=n.formatter,J=n.dom,he=se(Gt(Z.get()),qe=>qe!==h&&!sr(qe,"removeformat")),_e=FL(n,l,he);if(se(_e,qe=>!jE(n,qe,h)).length>0){const qe=l.cloneNode(!1);return J.add(s,qe),Z.remove(h,O,qe,P),J.remove(qe),G.some(qe)}else return G.none()},RY=(n,s,l)=>{let h;const O=n.selection,P=n.formatter.get(s);if(!P)return;const Z=O.getRng();let J=Z.startOffset;const _e=Z.startContainer.nodeValue;h=fv(n.getBody(),O.getStart());const Ge=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(_e&&J>0&&J<_e.length&&Ge.test(_e.charAt(J))&&Ge.test(_e.charAt(J-1))){const qe=O.getBookmark();Z.collapse(!0);let ot=Im(n.dom,Z,P);ot=nt(ot),n.formatter.apply(s,l,ot),O.moveToBookmark(qe)}else{let qe=h?y8(h):null;(!h||(qe==null?void 0:qe.data)!==u2)&&(h=i5(n.getDoc(),b8(!0).dom),qe=h.firstChild,Z.insertNode(h),J=1),n.formatter.apply(s,l,h),O.setCursorLocation(qe,J)}},zL=(n,s,l,h)=>{const O=n.dom,P=n.selection;let Z=!1;const J=n.formatter.get(s);if(!J)return;const he=P.getRng(),_e=he.startContainer,Ge=he.startOffset;let qe=_e;lr(_e)&&(Ge!==_e.data.length&&(Z=!0),qe=qe.parentNode);const ot=[];let Et;for(;qe;){if(Jg(n,qe,s,l,h)){Et=qe;break}qe.nextSibling&&(Z=!0),ot.push(qe),qe=qe.parentNode}if(Et)if(Z){const Vt=P.getBookmark();he.collapse(!0);let kt=Im(O,he,J,!0);kt=nt(kt),n.formatter.remove(s,l,kt,h),P.moveToBookmark(Vt)}else{const Vt=fv(n.getBody(),Et),kt=B(Vt)?O.getParents(Et.parentNode,pe,Vt):[],It=b8(!1).dom;l5(n,It,Vt??Et);const cn=_Y(n,It,Et,s,l,h),xn=c5([...ot,...cn.toArray(),...kt],It);Vt&&O8(n,Vt,B(Vt)),P.setCursorLocation(xn,1),O.isEmpty(Et)&&O.remove(Et)}},w8=(n,s,l)=>{const h=n.selection,O=n.getBody();x8(n,null,l),(s===8||s===46)&&h.isCollapsed()&&h.getStart().innerHTML===u2&&x8(n,fv(O,h.getStart()),!0),(s===37||s===39)&&x8(n,fv(O,h.getStart()),!0)},ZL=n=>lr(n)&&ao(n.data,zs),DY=n=>{n.on("mouseup keydown",s=>{w8(n,s.keyCode,ZL(n.selection.getRng().endContainer))})},HL=n=>{const s=b8(!1),l=c5(n,s.dom);return{caretContainer:s,caretPosition:Nn(l,0)}},UL=(n,s)=>{const{caretContainer:l,caretPosition:h}=HL(s);return Ui(Yt.fromDom(n),l),Ks(Yt.fromDom(n)),h},u5=(n,s)=>{const{caretContainer:l,caretPosition:h}=HL(s);return n.insertNode(l.dom),h},ep=(n,s)=>{if(sf(s.dom))return!1;const l=n.schema.getTextInlineElements();return it(l,Vs(s))&&!sf(s.dom)&&!_f(s.dom)},XT={},f5=vi(["pre"]),Gi=(n,s)=>{XT[n]||(XT[n]=[]),XT[n].push(s)},T8=(n,s)=>{it(XT,n)&&re(XT[n],l=>{l(s)})};Gi("pre",n=>{const s=n.selection.getRng(),l=O=>P=>{const Z=P.previousSibling;return f5(Z)&&Ze(O,Z)},h=(O,P)=>{const Z=Yt.fromDom(P),J=qf(Z).dom;Ks(Z),Ta(Yt.fromDom(O),[Yt.fromTag("br",J),Yt.fromTag("br",J),...ol(Z)])};if(!s.collapsed){const O=n.selection.getSelectedBlocks(),P=se(se(O,f5),l(O));re(P,Z=>{h(Z.previousSibling,Z)})}});const d5=["fontWeight","fontStyle","color","fontSize","fontFamily"],wv=n=>I(n.styles)&&De(Gt(n.styles),s=>Ze(d5,s)),WL=n=>le(n,s=>Xi(s)&&s.inline==="span"&&wv(s)),C8=(n,s)=>{const l=n.get(s);return N(l)?WL(l):G.none()},f2=(n,s)=>uu(s,Nn.fromRangeStart(n)).isNone(),YL=(n,s)=>Rc(s,Nn.fromRangeEnd(n)).exists(l=>!aa(l.getNode())||Rc(s,l).isSome())===!1,XL=n=>s=>qp(s)&&n.isEditable(s),d2=n=>{const s=n.getSelectedBlocks(),l=n.getRng();if(n.isCollapsed())return[];if(s.length===1)return f2(l,s[0])&&YL(l,s[0])?s:[];{const h=yt(s).filter(Z=>f2(l,Z)).toArray(),O=ft(s).filter(Z=>YL(l,Z)).toArray(),P=s.slice(1,-1);return h.concat(P).concat(O)}},$Y=n=>se(d2(n),XL(n.dom)),i1=n=>se(n.getSelectedBlocks(),XL(n.dom)),k8=fr.each,tp=n=>Xr(n)&&!af(n)&&!sf(n)&&!_f(n),hd=(n,s)=>{for(let l=n;l;l=l[s]){if(lr(l)&&St(l.data))return n;if(Xr(l)&&!af(l))return l}return n},GT=(n,s,l)=>{const h=qA(n),O=zl(s)&&n.dom.isEditable(s),P=zl(l)&&n.dom.isEditable(l);if(O&&P){const Z=hd(s,"previousSibling"),J=hd(l,"nextSibling");if(h.compare(Z,J)){for(let he=Z.nextSibling;he&&he!==J;){const _e=he;he=he.nextSibling,Z.appendChild(_e)}return n.dom.remove(J),fr.each(fr.grep(J.childNodes),he=>{Z.appendChild(he)}),Z}}return l},h5=(n,s,l,h)=>{var O;if(h&&s.merge_siblings!==!1){const P=(O=GT(n,Fr(h),h))!==null&&O!==void 0?O:h;GT(n,P,Fr(P,!0))}},LY=(n,s,l)=>{if(s.clear_child_styles){const h=s.links?"*:not(a)":"*";k8(n.select(h,l),O=>{tp(O)&&n.isEditable(O)&&k8(s.styles,(P,Z)=>{n.setStyle(O,Z,"")})})}},A8=(n,s,l)=>{k8(n.childNodes,h=>{tp(h)&&(s(h)&&l(h),h.hasChildNodes()&&A8(h,s,l))})},m5=(n,s)=>{s.nodeName==="SPAN"&&n.getAttribs(s).length===0&&n.remove(s,!0)},GL=(n,s)=>l=>!!(l&&G0(n,l,s)),jd=(n,s,l)=>h=>{n.setStyle(h,s,l),h.getAttribute("style")===""&&h.removeAttribute("style"),m5(n,h)},np=Zd.generate([{keep:[]},{rename:["name"]},{removed:[]}]),jL=/^(src|href|style)$/,jT=fr.each,h2=Bx,Nb=n=>/^(TR|TH|TD)$/.test(n.nodeName),g5=(n,s,l)=>n.isChildOf(s,l)&&s!==l&&!n.isBlock(l),qL=(n,s,l)=>{let h=s[l?"startContainer":"endContainer"],O=s[l?"startOffset":"endOffset"];if(Xr(h)){const P=h.childNodes.length-1;!l&&O&&O--,h=h.childNodes[O>P?P:O]}return lr(h)&&l&&O>=h.data.length&&(h=new ca(h,n.getBody()).next()||h),lr(h)&&!l&&O===0&&(h=new ca(h,n.getBody()).prev()||h),h},P8=(n,s)=>{const l=s?"firstChild":"lastChild",h=n[l];return Nb(n)&&h?n.nodeName==="TR"&&h[l]||h:n},M8=(n,s,l,h)=>{var O;const P=n.create(l,h);return(O=s.parentNode)===null||O===void 0||O.insertBefore(P,s),P.appendChild(s),P},KL=(n,s,l,h,O)=>{const P=Yt.fromDom(s),Z=Yt.fromDom(n.create(h,O)),J=l?Vc(P):my(P);return Ta(Z,J),l?(Ui(P,Z),mm(Z,P)):(Yu(P,Z),Ci(Z,P)),Z.dom},IY=(n,s)=>s.links&&n.nodeName==="A",JL=(n,s,l)=>{const h=s.parentNode;let O;const P=n.dom,Z=Ec(n);Xd(l)&&h===P.getRoot()&&(!l.list_block||!h2(s,l.list_block))&&re(tt(s.childNodes),J=>{Lm(n,Z,J.nodeName.toLowerCase())?O?O.appendChild(J):(O=M8(P,J,Z),P.setAttribs(O,Yy(n))):O=null}),!(Vx(l)&&!h2(l.inline,s))&&P.remove(s,!0)},m2=(n,s,l)=>W(n)?{name:s,value:null}:{name:n,value:Yd(s,l)},eI=(n,s)=>{n.getAttrib(s,"style")===""&&(s.removeAttribute("style"),s.removeAttribute("data-mce-style"))},E8=(n,s,l,h,O)=>{let P=!1;jT(l.styles,(Z,J)=>{const{name:he,value:_e}=m2(J,Z,h),Ge=Qx(_e,he);(l.remove_similar||F(_e)||!Xr(O)||h2(G0(n,O,he),Ge))&&n.setStyle(s,he,""),P=!0}),P&&eI(n,s)},_8=(n,s,l)=>{s==="removeformat"?re(i1(n.selection),h=>{re(d5,O=>n.dom.setStyle(h,O,"")),eI(n.dom,h)}):C8(n.formatter,s).each(h=>{re(i1(n.selection),O=>E8(n.dom,O,h,l,null))})},tI=(n,s,l,h,O)=>{const P=n.dom,Z=qA(n),J=n.schema;if(Xi(s)&&Ey(J,s.inline)&&ks(J,h)&&h.parentElement===n.getBody())return JL(n,h,s),np.removed();if(!s.ceFalseOverride&&h&&P.getContentEditableParent(h)==="false"||h&&!YT(P,h,s)&&!IY(h,s))return np.keep();const he=h,_e=s.preserve_attributes;if(Xi(s)&&s.remove==="all"&&N(_e)){const Ge=se(P.getAttribs(he),qe=>Ze(_e,qe.name.toLowerCase()));if(P.removeAllAttribs(he),re(Ge,qe=>P.setAttrib(he,qe.name,qe.value)),Ge.length>0)return np.rename("span")}if(s.remove!=="all"){E8(P,he,s,l,O),jT(s.attributes,(qe,ot)=>{const{name:Et,value:Vt}=m2(ot,qe,l);if(s.remove_similar||F(Vt)||!Xr(O)||h2(P.getAttrib(O,Et),Vt)){if(Et==="class"){const kt=P.getAttrib(he,Et);if(kt){let It="";if(re(kt.split(/\s+/),cn=>{/mce\-\w+/.test(cn)&&(It+=(It?" ":"")+cn)}),It){P.setAttrib(he,Et,It);return}}}if(jL.test(Et)&&he.removeAttribute("data-mce-"+Et),Et==="style"&&vi(["li"])(he)&&P.getStyle(he,"list-style-type")==="none"){he.removeAttribute(Et),P.setStyle(he,"list-style-type","none");return}Et==="class"&&he.removeAttribute("className"),he.removeAttribute(Et)}}),jT(s.classes,qe=>{qe=Yd(qe,l),(!Xr(O)||P.hasClass(O,qe))&&P.removeClass(he,qe)});const Ge=P.getAttribs(he);for(let qe=0;qe{let P;return s.parentNode&&re(hb(n.dom,s.parentNode).reverse(),Z=>{if(!P&&Xr(Z)&&Z.id!=="_start"&&Z.id!=="_end"){const J=Jg(n,Z,l,h,O);J&&J.split!==!1&&(P=Z)}}),P},rI=(n,s,l,h)=>tI(n,s,l,h,h).fold(ae(h),O=>(n.dom.createFragment().appendChild(h),n.dom.rename(h,O)),ae(null)),NY=(n,s,l,h,O,P,Z,J)=>{var he,_e;let Ge,qe;const ot=n.dom;if(l){const Et=l.parentNode;for(let Vt=h.parentNode;Vt&&Vt!==Et;Vt=Vt.parentNode){let kt=ot.clone(Vt,!1);for(let It=0;It{const P=n.formatter.get(s),Z=P[0],J=n.dom,he=n.selection,_e=kt=>{const It=nI(n,kt,s,l,O);return NY(n,P,It,kt,kt,!0,Z,l)},Ge=kt=>af(kt)&&Xr(kt)&&(kt.id==="_start"||kt.id==="_end"),qe=kt=>De(P,It=>qT(n,It,l,kt,kt)),ot=kt=>{const It=tt(kt.childNodes),xn=qe(kt)||De(P,rr=>YT(J,kt,rr)),bn=kt.parentNode;if(!xn&&B(bn)&&mb(Z)&&qe(bn),Z.deep&&It.length)for(let rr=0;rr{Xr(kt)&&n.dom.getStyle(kt,"text-decoration")===rr&&kt.parentNode&&cA(J,kt.parentNode)===rr&&qT(n,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:rr}},void 0,kt)})},Et=kt=>{const It=J.get(kt?"_start":"_end");if(It){let cn=It[kt?"firstChild":"lastChild"];return Ge(cn)&&(cn=cn[kt?"firstChild":"lastChild"]),lr(cn)&&cn.data.length===0&&(cn=kt?It.previousSibling||It.nextSibling:It.nextSibling||It.previousSibling),J.remove(It,!0),cn}else return null},Vt=kt=>{let It,cn,xn=Im(J,kt,P,kt.collapsed);if(Z.split){if(xn=nt(xn),It=qL(n,xn,!0),cn=qL(n,xn),It!==cn){if(It=P8(It,!0),cn=P8(cn,!1),g5(J,It,cn)){const $n=G.from(It.firstChild).getOr(It);_e(KL(J,$n,!0,"span",{id:"_start","data-mce-type":"bookmark"})),Et(!0);return}if(g5(J,cn,It)){const $n=G.from(cn.lastChild).getOr(cn);_e(KL(J,$n,!1,"span",{id:"_end","data-mce-type":"bookmark"})),Et(!1);return}It=M8(J,It,"span",{id:"_start","data-mce-type":"bookmark"}),cn=M8(J,cn,"span",{id:"_end","data-mce-type":"bookmark"});const bn=J.createRng();bn.setStartAfter(It),bn.setEndBefore(cn),Ob(J,bn,$n=>{re($n,rr=>{!af(rr)&&!af(rr.parentNode)&&_e(rr)})}),_e(It),_e(cn),It=Et(!0),cn=Et()}else It=cn=_e(It);xn.startContainer=It.parentNode?It.parentNode:It,xn.startOffset=J.nodeIndex(It),xn.endContainer=cn.parentNode?cn.parentNode:cn,xn.endOffset=J.nodeIndex(cn)+1}Ob(J,xn,bn=>{re(bn,ot)})};if(h){if(ub(h)){const kt=J.createRng();kt.setStartBefore(h),kt.setEndAfter(h),Vt(kt)}else Vt(h);gv(n,s,h,l);return}!he.isCollapsed()||!Xi(Z)||X0(n).length?(fb(n,()=>Wg(n,Vt),kt=>Xi(Z)&&a5(n,s,l,kt)),n.nodeChanged()):zL(n,s,l,O),_8(n,s,l),gv(n,s,h,l)},oI=(n,s,l,h,O)=>{(h||n.selection.isEditable())&&BY(n,s,l,h,O)},qT=(n,s,l,h,O)=>tI(n,s,l,h,O).fold(ne,P=>(n.dom.rename(h,P),!0),pe),sI=fr.each,QY=(n,s,l,h)=>{const O=P=>{if(zl(P)&&Xr(P.parentNode)&&n.isEditable(P)){const Z=cA(n,P.parentNode);n.getStyle(P,"color")&&Z?n.setStyle(P,"text-decoration",Z):n.getStyle(P,"text-decoration")===Z&&n.setStyle(P,"text-decoration",null)}};s.styles&&(s.styles.color||s.styles.textDecoration)&&(fr.walk(h,O,"childNodes"),O(h))},FY=(n,s,l,h)=>{if(s.styles&&s.styles.backgroundColor){const O=GL(n,"fontSize");A8(h,P=>O(P)&&n.isEditable(P),jd(n,"backgroundColor",Yd(s.styles.backgroundColor,l)))}},VY=(n,s,l,h)=>{if(Xi(s)&&(s.inline==="sub"||s.inline==="sup")){const O=GL(n,"fontSize");A8(h,Z=>O(Z)&&n.isEditable(Z),jd(n,"fontSize",""));const P=se(n.select(s.inline==="sup"?"sub":"sup",h),n.isEditable);n.remove(P,!0)}},zY=(n,s,l,h)=>{sI(s,O=>{Xi(O)&&sI(n.dom.select(O.inline,h),P=>{tp(P)&&qT(n,O,l,P,O.exact?P:null)}),LY(n.dom,O,h)})},ZY=(n,s,l,h,O)=>{const P=O.parentNode;Jg(n,P,l,h)&&qT(n,s,h,O)||s.merge_with_parents&&P&&n.dom.getParent(P,Z=>Jg(n,Z,l,h)?(qT(n,s,h,O),!0):!1)},p5=fr.each,HY=(n,s,l,h)=>{if($k(n)&&Xi(s)&&l.parentNode){const O=nk(n.schema),P=uY(Yt.fromDom(l),Z=>sf(Z.dom));return ut(O,h)&&ta(Yt.fromDom(l.parentNode),!1)&&!P}else return!1},aI=(n,s,l,h)=>{if(p5(l.styles,(O,P)=>{n.setStyle(s,P,Yd(O,h))}),l.styles){const O=n.getAttrib(s,"style");O&&n.setAttrib(s,"data-mce-style",O)}},iI=(n,s,l,h)=>{const O=n.formatter.get(s),P=O[0],Z=!h&&n.selection.isCollapsed(),J=n.dom,he=n.selection,_e=(Vt,kt=P)=>{E(kt.onformat)&&kt.onformat(Vt,kt,l,h),aI(J,Vt,kt,l),p5(kt.attributes,(It,cn)=>{J.setAttrib(Vt,cn,Yd(It,l))}),p5(kt.classes,It=>{const cn=Yd(It,l);J.hasClass(Vt,cn)||J.addClass(Vt,cn)})},Ge=(Vt,kt)=>{let It=!1;return p5(Vt,cn=>jl(cn)?J.getContentEditable(kt)==="false"&&!cn.ceFalseOverride||B(cn.collapsed)&&cn.collapsed!==Z?!0:J.is(kt,cn.selector)&&!sf(kt)?(_e(kt,cn),It=!0,!1):!0:!1),It},qe=Vt=>{if(M(Vt)){const kt=J.create(Vt);return _e(kt),kt}else return null},ot=(Vt,kt,It)=>{const cn=[];let xn=!0;const bn=P.inline||P.block,$n=qe(bn),rr=zn=>Fx(P)&&Jg(n,zn,s,l),gr=(zn,Bn,tr)=>{const eo=j0(P)&&el(n.schema,zn)&&Lm(n,Bn,bn);return tr&&eo},Qr=(zn,Bn,tr,eo)=>{const po=zn.nodeName.toLowerCase(),ls=Lm(n,bn,po)&&Lm(n,Bn,bn),ys=!It&&lr(zn)&&we(zn.data),ma=sf(zn),$s=!Xi(P)||!Vt.isBlock(zn);return(tr||eo)&&ls&&!ys&&!ma&&$s};Ob(Vt,kt,zn=>{let Bn;const tr=eo=>{let po=!1,ls=xn,ys=!1;const ma=eo.parentNode,$s=ma.nodeName.toLowerCase(),hi=Vt.getContentEditable(eo);B(hi)&&(ls=xn,xn=hi==="true",po=!0,ys=db(n,eo));const uc=xn&&!po;if(aa(eo)&&!HY(n,P,eo,$s)){Bn=null,Xd(P)&&Vt.remove(eo);return}if(rr(eo)){Bn=null;return}if(gr(eo,$s,uc)){const ga=Vt.rename(eo,bn);_e(ga),cn.push(ga),Bn=null;return}if(jl(P)){let ga=Ge(O,eo);if(!ga&&B(ma)&&mb(P)&&(ga=Ge(O,ma)),!Xi(P)||ga){Bn=null;return}}B($n)&&Qr(eo,$s,uc,ys)?(Bn||(Bn=Vt.clone($n,!1),ma.insertBefore(Bn,eo),cn.push(Bn)),ys&&po&&(xn=ls),Bn.appendChild(eo)):(Bn=null,re(tt(eo.childNodes),tr),po&&(xn=ls),Bn=null)};re(zn,tr)}),P.links===!0&&re(cn,zn=>{const Bn=tr=>{tr.nodeName==="A"&&_e(tr,P),re(tt(tr.childNodes),Bn)};Bn(zn)}),re(cn,zn=>{const Bn=po=>{let ls=0;return re(po.childNodes,ys=>{!If(ys)&&!af(ys)&&ls++}),ls},tr=po=>le(po.childNodes,lT).filter(ys=>Vt.getContentEditable(ys)!=="false"&&YT(Vt,ys,P)).map(ys=>{const ma=Vt.clone(ys,!1);return _e(ma),Vt.replace(ma,po,!0),Vt.remove(ys,!0),ma}).getOr(po),eo=Bn(zn);if((cn.length>1||!Vt.isBlock(zn))&&eo===0){Vt.remove(zn,!0);return}(Xi(P)||Xd(P)&&P.wrapper)&&(!P.exact&&eo===1&&(zn=tr(zn)),zY(n,O,l,zn),ZY(n,P,s,l,zn),FY(Vt,P,l,zn),QY(Vt,P,l,zn),VY(Vt,P,l,zn),h5(n,P,l,zn))})},Et=ub(h)?h:he.getNode();if(J.getContentEditable(Et)==="false"&&!db(n,Et)){h=Et,Ge(O,h),lc(n,s,h,l);return}if(P){if(h)if(ub(h)){if(!Ge(O,h)){const Vt=J.createRng();Vt.setStartBefore(h),Vt.setEndAfter(h),ot(J,Im(J,Vt,O),!0)}}else ot(J,h,!0);else!Z||!Xi(P)||X0(n).length?(he.setRng(a2(he.getRng())),fb(n,()=>{Wg(n,(Vt,kt)=>{const It=kt?Vt:Im(J,Vt,O);ot(J,It,!1)})},pe),n.nodeChanged()):RY(n,s,l),C8(n.formatter,s).each(Vt=>{re($Y(n.selection),kt=>aI(J,kt,Vt,l))});T8(s,n)}lc(n,s,h,l)},lI=(n,s,l,h)=>{(h||n.selection.isEditable())&&iI(n,s,l,h)},Bb=n=>it(n,"vars"),UY=(n,s)=>{n.set({}),s.on("NodeChange",l=>{R8(s,l.element,n.get())}),s.on("FormatApply FormatRemove",l=>{const h=G.from(l.node).map(O=>ub(O)?O:O.startContainer).bind(O=>Xr(O)?G.some(O):G.from(O.parentElement)).getOrThunk(()=>cI(s));R8(s,h,n.get())})},cI=n=>n.selection.getStart(),uI=(n,s,l,h,O)=>Se(s,J=>{const he=n.formatter.matchNode(J,l,O??{},h);return!U(he)},J=>BL(n,J,l)?!0:h?!1:B(n.formatter.matchNode(J,l,O,!0))),fI=(n,s)=>{const l=s??cI(n);return se(hb(n.dom,l),h=>Xr(h)&&!_f(h))},R8=(n,s,l)=>{const h=fI(n,s);Bt(l,(O,P)=>{const Z=J=>{const he=uI(n,h,P,J.similar,Bb(J)?J.vars:void 0),_e=he.isSome();if(J.state.get()!==_e){J.state.set(_e);const Ge=he.getOr(s);Bb(J)?J.callback(_e,{node:Ge,format:P,parents:h}):re(J.callbacks,qe=>qe(_e,{node:Ge,format:P,parents:h}))}};re([O.withSimilar,O.withoutSimilar],Z),re(O.withVars,Z)})},WY=(n,s,l,h,O,P)=>{const Z=s.get();re(l.split(","),J=>{const he=Sn(Z,J).getOrThunk(()=>{const Ge={withSimilar:{state:ni(!1),similar:!0,callbacks:[]},withoutSimilar:{state:ni(!1),similar:!1,callbacks:[]},withVars:[]};return Z[J]=Ge,Ge}),_e=()=>{const Ge=fI(n);return uI(n,Ge,J,O,P).isSome()};if(U(P)){const Ge=O?he.withSimilar:he.withoutSimilar;Ge.callbacks.push(h),Ge.callbacks.length===1&&Ge.state.set(_e())}else he.withVars.push({state:ni(_e()),similar:O,vars:P,callback:h})}),s.set(Z)},YY=(n,s,l)=>{const h=n.get();re(s.split(","),O=>Sn(h,O).each(P=>{h[O]={withSimilar:{...P.withSimilar,callbacks:se(P.withSimilar.callbacks,Z=>Z!==l)},withoutSimilar:{...P.withoutSimilar,callbacks:se(P.withoutSimilar.callbacks,Z=>Z!==l)},withVars:se(P.withVars,Z=>Z.callback!==l)}})),n.set(h)},XY=(n,s,l,h,O,P)=>(WY(n,s,l,h,O,P),{unbind:()=>YY(s,l,h)}),GY=(n,s,l,h)=>{const O=n.formatter.get(s);O&&(a5(n,s,l,h)&&(!("toggle"in O[0])||O[0].toggle)?oI(n,s,l,h):lI(n,s,l,h))},dI=fr.explode,hI=()=>{const n={};return{addFilter:(O,P)=>{re(dI(O),Z=>{it(n,Z)||(n[Z]={name:Z,callbacks:[]}),n[Z].callbacks.push(P)})},getFilters:()=>Un(n),removeFilter:(O,P)=>{re(dI(O),Z=>{if(it(n,Z))if(B(P)){const J=n[Z],he=se(J.callbacks,_e=>_e!==P);he.length>0?J.callbacks=he:delete n[Z]}else delete n[Z]})}}},jY=(n,s)=>{re(s,l=>{n.attr(l,null)})},qY=(n,s,l)=>{n.addNodeFilter("font",h=>{re(h,O=>{const P=s.parse(O.attr("style")),Z=O.attr("color"),J=O.attr("face"),he=O.attr("size");Z&&(P.color=Z),J&&(P["font-family"]=J),he&&Ft(he).each(_e=>{P["font-size"]=l[_e-1]}),O.name="span",O.attr("style",s.serialize(P)),jY(O,["color","face","size"])})})},KY=(n,s,l)=>{n.addNodeFilter("strike",h=>{const O=s.type!=="html4";re(h,P=>{if(O)P.name="s";else{const Z=l.parse(P.attr("style"));Z["text-decoration"]="line-through",P.name="span",P.attr("style",l.serialize(Z))}})})},JY=(n,s,l)=>{var h;const O=GO();s.convert_fonts_to_spans&&qY(n,O,fr.explode((h=s.font_size_legacy_values)!==null&&h!==void 0?h:"")),KY(n,l,O)},D8=(n,s,l)=>{s.inline_styles&&JY(n,s,l)},$8=(n,s,l)=>{s.addNodeFilter("br",(h,O,P)=>{const Z=fr.extend({},l.getBlockElements()),J=l.getNonEmptyElements(),he=l.getWhitespaceElements();Z.body=1;const _e=Ge=>Ge.name in Z||xm(l,Ge);for(let Ge=0,qe=h.length;Gefetch(n).then(s=>s.ok?s.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${n} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})),KT=n=>{const s=/([a-z0-9+\/=\s]+)/i.exec(n);return s?s[1]:""},v5=n=>{const[s,...l]=n.split(","),h=l.join(","),O=/data:([^/]+\/[^;]+)(;.+)?/.exec(s);if(O){const P=O[2]===";base64",Z=P?KT(h):decodeURIComponent(h);return G.some({type:O[1],data:Z,base64Encoded:P})}else return G.none()},g2=(n,s,l=!0)=>{let h=s;if(l)try{h=atob(s)}catch{return G.none()}const O=new Uint8Array(h.length);for(let P=0;Pnew Promise((s,l)=>{v5(n).bind(({type:h,data:O,base64Encoded:P})=>g2(h,O,P)).fold(()=>l("Invalid data URI"),s)}),mI=n=>Sr(n,"blob:")?Ele(n):Sr(n,"data:")?JT(n):Promise.reject("Unknown URI format"),eX=n=>new Promise((s,l)=>{const h=new FileReader;h.onloadend=()=>{s(h.result)},h.onerror=()=>{var O;l((O=h.error)===null||O===void 0?void 0:O.message)},h.readAsDataURL(n)});let tX=0;const _le=n=>(n||"blobid")+tX++,gI=(n,s,l)=>v5(n).bind(({data:h,type:O,base64Encoded:P})=>{if(s&&!P)return G.none();{const Z=P?h:btoa(h);return l(Z,O)}}),pI=(n,s,l)=>{const h=n.create(_le(),s,l);return n.add(h),h},nX=(n,s,l=!1)=>gI(s,l,(h,O)=>G.from(n.getByData(h,O)).orThunk(()=>g2(O,h).map(P=>pI(n,P,h)))),rX=(n,s)=>{const l=()=>Promise.reject("Invalid data URI");if(Sr(s,"blob:")){const h=n.getByUri(s);return B(h)?Promise.resolve(h):mI(s).then(O=>eX(O).then(P=>gI(P,!1,Z=>G.some(pI(n,O,Z))).getOrThunk(l)))}else return Sr(s,"data:")?nX(n,s).fold(l,h=>Promise.resolve(h)):Promise.reject("Unknown image data format")},vI=n=>B(n.attr("data-mce-bogus")),oX=n=>n.attr("src")===Dr.transparentSrc||B(n.attr("data-mce-placeholder")),yI=(n,s)=>{const{blob_cache:l}=s;if(l){const h=O=>{const P=O.attr("src");oX(O)||vI(O)||Q(P)||nX(l,P,!0).each(Z=>{O.attr("src",Z.blobUri())})};n.addAttributeFilter("src",O=>re(O,h))}},L8=(n,s)=>Sr(n,`${s}/`),y5=(n,s,l,h,O)=>{let P;U(n)?P="iframe":L8(n,"image")?P="img":L8(n,"video")?P="video":L8(n,"audio")?P="audio":P="iframe";const Z=new hu(P,1);return Z.attr(P==="audio"?{src:s}:{src:s,width:l,height:h}),(P==="audio"||P==="video")&&Z.attr("controls",""),P==="iframe"&&O&&Z.attr("sandbox",""),Z},bI=(n,s)=>{const l=n.schema;s.remove_trailing_brs&&$8(s,n,l),n.addAttributeFilter("href",O=>{let P=O.length;const Z=he=>he.split(" ").filter(Ge=>Ge.length>0).concat(["noopener"]).sort().join(" "),J=he=>{const _e=he?fr.trim(he):"";return/\b(noopener)\b/g.test(_e)?_e:Z(_e)};if(!s.allow_unsafe_link_target)for(;P--;){const he=O[P];he.name==="a"&&he.attr("target")==="_blank"&&he.attr("rel",J(he.attr("rel")))}}),s.allow_html_in_named_anchor||n.addAttributeFilter("id,name",O=>{let P=O.length,Z,J,he,_e;for(;P--;)if(_e=O[P],_e.name==="a"&&_e.firstChild&&!_e.attr("href"))for(he=_e.parent,Z=_e.lastChild;Z&&he;)J=Z.prev,he.insert(Z,_e),Z=J}),s.fix_list_elements&&n.addNodeFilter("ul,ol",O=>{let P=O.length,Z,J;for(;P--;)if(Z=O[P],J=Z.parent,J&&(J.name==="ul"||J.name==="ol"))if(Z.prev&&Z.prev.name==="li")Z.prev.append(Z);else{const he=new hu("li",1);he.attr("style","list-style-type: none"),Z.wrap(he)}});const h=l.getValidClasses();s.validate&&h&&n.addAttributeFilter("class",O=>{var P;let Z=O.length;for(;Z--;){const J=O[Z],he=(P=J.attr("class"))!==null&&P!==void 0?P:"",_e=fr.explode(he," ");let Ge="";for(let qe=0;qe<_e.length;qe++){const ot=_e[qe];let Et=!1,Vt=h["*"];Vt&&Vt[ot]&&(Et=!0),Vt=h[J.name],!Et&&Vt&&Vt[ot]&&(Et=!0),Et&&(Ge&&(Ge+=" "),Ge+=ot)}Ge.length||(Ge=null),J.attr("class",Ge)}}),yI(n,s),s.convert_unsafe_embeds&&n.addNodeFilter("object,embed",O=>re(O,P=>{P.replace(y5(P.attr("type"),P.name==="object"?P.attr("data"):P.attr("src"),P.attr("width"),P.attr("height"),s.sandbox_iframes))})),s.sandbox_iframes&&n.addNodeFilter("iframe",O=>re(O,P=>P.attr("sandbox","")))},{entries:gl,setPrototypeOf:sX,isFrozen:Rle,getPrototypeOf:Dle,getOwnPropertyDescriptor:$le}=Object;let{freeze:tl,seal:md,create:l1}=Object,{apply:rp,construct:I8}=typeof Reflect<"u"&&Reflect;rp||(rp=function(s,l,h){return s.apply(l,h)}),tl||(tl=function(s){return s}),md||(md=function(s){return s}),I8||(I8=function(s,l){return new s(...l)});const aX=Fh(Array.prototype.forEach),p2=Fh(Array.prototype.pop),op=Fh(Array.prototype.push),Tv=Fh(String.prototype.toLowerCase),b5=Fh(String.prototype.toString),N8=Fh(String.prototype.match),Qh=Fh(String.prototype.replace),OI=Fh(String.prototype.indexOf),iX=Fh(String.prototype.trim),qd=Fh(RegExp.prototype.test),v2=lX(TypeError);function Fh(n){return function(s){for(var l=arguments.length,h=new Array(l>1?l-1:0),O=1;O/gm),AI=md(/\${[\w\W]*}/gm),PI=md(/^data-[\-\w.\u00B7-\uFFFF]/),MI=md(/^aria-[\-\w]+$/),EI=md(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),cX=md(/^(?:\w+script|data):/i),uX=md(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),x5=md(/^html$/i);var b2=Object.freeze({__proto__:null,MUSTACHE_EXPR:CI,ERB_EXPR:kI,TMPLIT_EXPR:AI,DATA_ATTR:PI,ARIA_ATTR:MI,IS_ALLOWED_URI:EI,IS_SCRIPT_OR_DATA:cX,ATTR_WHITESPACE:uX,DOCTYPE_NAME:x5});const _I=()=>typeof window>"u"?null:window,RI=function(s,l){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let h=null;const O="data-tt-policy-suffix";l&&l.hasAttribute(O)&&(h=l.getAttribute(O));const P="dompurify"+(h?"#"+h:"");try{return s.createPolicy(P,{createHTML(Z){return Z},createScriptURL(Z){return Z}})}catch{return console.warn("TrustedTypes policy "+P+" could not be created."),null}};function t3(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_I();const s=ps=>t3(ps);if(s.version="3.0.5",s.removed=[],!n||!n.document||n.document.nodeType!==9)return s.isSupported=!1,s;const l=n.document,h=l.currentScript;let{document:O}=n;const{DocumentFragment:P,HTMLTemplateElement:Z,Node:J,Element:he,NodeFilter:_e,NamedNodeMap:Ge=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:qe,DOMParser:ot,trustedTypes:Et}=n,Vt=he.prototype,kt=O5(Vt,"cloneNode"),It=O5(Vt,"nextSibling"),cn=O5(Vt,"childNodes"),xn=O5(Vt,"parentNode");if(typeof Z=="function"){const ps=O.createElement("template");ps.content&&ps.content.ownerDocument&&(O=ps.content.ownerDocument)}let bn,$n="";const{implementation:rr,createNodeIterator:gr,createDocumentFragment:Qr,getElementsByTagName:zn}=O,{importNode:Bn}=l;let tr={};s.isSupported=typeof gl=="function"&&typeof xn=="function"&&rr&&rr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:eo,ERB_EXPR:po,TMPLIT_EXPR:ls,DATA_ATTR:ys,ARIA_ATTR:ma,IS_SCRIPT_OR_DATA:$s,ATTR_WHITESPACE:hi}=b2;let{IS_ALLOWED_URI:uc}=b2,ga=null;const Cr=xa({},[...B8,...Q8,...Qb,...F8,...wI]);let co=null;const Zs=xa({},[...V8,...z8,...TI,...e3]);let Ss=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ro=null,Lo=null,yr=!0,Bo=!0,Ls=!1,Aa=!0,Sa=!1,$l=!1,Xh=!1,zf=!1,$u=!1,sh=!1,Wo=!1,Hs=!0,Pa=!1;const oi="user-content-";let Ua=!0,gf=!1,Gh={},_v=null;const OP=xa({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let tC=null;const xP=xa({},["audio","video","img","source","image","track"]);let j2=null;const SP=xa({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),q2="http://www.w3.org/1998/Math/MathML",_1="http://www.w3.org/2000/svg",jh="http://www.w3.org/1999/xhtml";let jm=jh,K2=!1,oO=null;const nC=xa({},[q2,_1,jh],b5);let qm;const wP=["application/xhtml+xml","text/html"],rC="text/html";let Ic,sO=null;const kz=O.createElement("form"),TP=function(Qn){return Qn instanceof RegExp||Qn instanceof Function},oC=function(Qn){if(!(sO&&sO===Qn)){if((!Qn||typeof Qn!="object")&&(Qn={}),Qn=y2(Qn),qm=wP.indexOf(Qn.PARSER_MEDIA_TYPE)===-1?qm=rC:qm=Qn.PARSER_MEDIA_TYPE,Ic=qm==="application/xhtml+xml"?b5:Tv,ga="ALLOWED_TAGS"in Qn?xa({},Qn.ALLOWED_TAGS,Ic):Cr,co="ALLOWED_ATTR"in Qn?xa({},Qn.ALLOWED_ATTR,Ic):Zs,oO="ALLOWED_NAMESPACES"in Qn?xa({},Qn.ALLOWED_NAMESPACES,b5):nC,j2="ADD_URI_SAFE_ATTR"in Qn?xa(y2(SP),Qn.ADD_URI_SAFE_ATTR,Ic):SP,tC="ADD_DATA_URI_TAGS"in Qn?xa(y2(xP),Qn.ADD_DATA_URI_TAGS,Ic):xP,_v="FORBID_CONTENTS"in Qn?xa({},Qn.FORBID_CONTENTS,Ic):OP,ro="FORBID_TAGS"in Qn?xa({},Qn.FORBID_TAGS,Ic):{},Lo="FORBID_ATTR"in Qn?xa({},Qn.FORBID_ATTR,Ic):{},Gh="USE_PROFILES"in Qn?Qn.USE_PROFILES:!1,yr=Qn.ALLOW_ARIA_ATTR!==!1,Bo=Qn.ALLOW_DATA_ATTR!==!1,Ls=Qn.ALLOW_UNKNOWN_PROTOCOLS||!1,Aa=Qn.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Sa=Qn.SAFE_FOR_TEMPLATES||!1,$l=Qn.WHOLE_DOCUMENT||!1,$u=Qn.RETURN_DOM||!1,sh=Qn.RETURN_DOM_FRAGMENT||!1,Wo=Qn.RETURN_TRUSTED_TYPE||!1,zf=Qn.FORCE_BODY||!1,Hs=Qn.SANITIZE_DOM!==!1,Pa=Qn.SANITIZE_NAMED_PROPS||!1,Ua=Qn.KEEP_CONTENT!==!1,gf=Qn.IN_PLACE||!1,uc=Qn.ALLOWED_URI_REGEXP||EI,jm=Qn.NAMESPACE||jh,Ss=Qn.CUSTOM_ELEMENT_HANDLING||{},Qn.CUSTOM_ELEMENT_HANDLING&&TP(Qn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ss.tagNameCheck=Qn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Qn.CUSTOM_ELEMENT_HANDLING&&TP(Qn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ss.attributeNameCheck=Qn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Qn.CUSTOM_ELEMENT_HANDLING&&typeof Qn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ss.allowCustomizedBuiltInElements=Qn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Sa&&(Bo=!1),sh&&($u=!0),Gh&&(ga=xa({},[...wI]),co=[],Gh.html===!0&&(xa(ga,B8),xa(co,V8)),Gh.svg===!0&&(xa(ga,Q8),xa(co,z8),xa(co,e3)),Gh.svgFilters===!0&&(xa(ga,Qb),xa(co,z8),xa(co,e3)),Gh.mathMl===!0&&(xa(ga,F8),xa(co,TI),xa(co,e3))),Qn.ADD_TAGS&&(ga===Cr&&(ga=y2(ga)),xa(ga,Qn.ADD_TAGS,Ic)),Qn.ADD_ATTR&&(co===Zs&&(co=y2(co)),xa(co,Qn.ADD_ATTR,Ic)),Qn.ADD_URI_SAFE_ATTR&&xa(j2,Qn.ADD_URI_SAFE_ATTR,Ic),Qn.FORBID_CONTENTS&&(_v===OP&&(_v=y2(_v)),xa(_v,Qn.FORBID_CONTENTS,Ic)),Ua&&(ga["#text"]=!0),$l&&xa(ga,["html","head","body"]),ga.table&&(xa(ga,["tbody"]),delete ro.tbody),Qn.TRUSTED_TYPES_POLICY){if(typeof Qn.TRUSTED_TYPES_POLICY.createHTML!="function")throw v2('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Qn.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw v2('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');bn=Qn.TRUSTED_TYPES_POLICY,$n=bn.createHTML("")}else bn===void 0&&(bn=RI(Et,h)),bn!==null&&typeof $n=="string"&&($n=bn.createHTML(""));tl&&tl(Qn),sO=Qn}},hp=xa({},["mi","mo","mn","ms","mtext"]),J2=xa({},["foreignobject","desc","title","annotation-xml"]),Ln=xa({},["title","style","font","a","script"]),In=xa({},Q8);xa(In,Qb),xa(In,xI);const br=xa({},F8);xa(br,SI);const hr=function(Qn){let lo=xn(Qn);(!lo||!lo.tagName)&&(lo={namespaceURI:jm,tagName:"template"});const Eo=Tv(Qn.tagName),Qi=Tv(lo.tagName);return oO[Qn.namespaceURI]?Qn.namespaceURI===_1?lo.namespaceURI===jh?Eo==="svg":lo.namespaceURI===q2?Eo==="svg"&&(Qi==="annotation-xml"||hp[Qi]):!!In[Eo]:Qn.namespaceURI===q2?lo.namespaceURI===jh?Eo==="math":lo.namespaceURI===_1?Eo==="math"&&J2[Qi]:!!br[Eo]:Qn.namespaceURI===jh?lo.namespaceURI===_1&&!J2[Qi]||lo.namespaceURI===q2&&!hp[Qi]?!1:!br[Eo]&&(Ln[Eo]||!In[Eo]):!!(qm==="application/xhtml+xml"&&oO[Qn.namespaceURI]):!1},mo=function(Qn){op(s.removed,{element:Qn});try{Qn.parentNode.removeChild(Qn)}catch{Qn.remove()}},bs=function(Qn,lo){try{op(s.removed,{attribute:lo.getAttributeNode(Qn),from:lo})}catch{op(s.removed,{attribute:null,from:lo})}if(lo.removeAttribute(Qn),Qn==="is"&&!co[Qn])if($u||sh)try{mo(lo)}catch{}else try{lo.setAttribute(Qn,"")}catch{}},ja=function(Qn){let lo,Eo;if(zf)Qn=""+Qn;else{const xd=N8(Qn,/^[\r\n\t ]+/);Eo=xd&&xd[0]}qm==="application/xhtml+xml"&&jm===jh&&(Qn=''+Qn+"");const Qi=bn?bn.createHTML(Qn):Qn;if(jm===jh)try{lo=new ot().parseFromString(Qi,qm)}catch{}if(!lo||!lo.documentElement){lo=rr.createDocument(jm,"template",null);try{lo.documentElement.innerHTML=K2?$n:Qi}catch{}}const jc=lo.body||lo.documentElement;return Qn&&Eo&&jc.insertBefore(O.createTextNode(Eo),jc.childNodes[0]||null),jm===jh?zn.call(lo,$l?"html":"body")[0]:$l?lo.documentElement:jc},pf=function(Qn){return gr.call(Qn.ownerDocument||Qn,Qn,_e.SHOW_ELEMENT|_e.SHOW_COMMENT|_e.SHOW_TEXT,null,!1)},fc=function(Qn){return Qn instanceof qe&&(typeof Qn.nodeName!="string"||typeof Qn.textContent!="string"||typeof Qn.removeChild!="function"||!(Qn.attributes instanceof Ge)||typeof Qn.removeAttribute!="function"||typeof Qn.setAttribute!="function"||typeof Qn.namespaceURI!="string"||typeof Qn.insertBefore!="function"||typeof Qn.hasChildNodes!="function")},aO=function(Qn){return typeof J=="object"?Qn instanceof J:Qn&&typeof Qn=="object"&&typeof Qn.nodeType=="number"&&typeof Qn.nodeName=="string"},ah=function(Qn,lo,Eo){tr[Qn]&&aX(tr[Qn],Qi=>{Qi.call(s,lo,Eo,sO)})},Az=function(Qn){let lo;if(ah("beforeSanitizeElements",Qn,null),fc(Qn))return mo(Qn),!0;const Eo=Ic(Qn.nodeName);if(ah("uponSanitizeElement",Qn,{tagName:Eo,allowedTags:ga}),Qn.hasChildNodes()&&!aO(Qn.firstElementChild)&&(!aO(Qn.content)||!aO(Qn.content.firstElementChild))&&qd(/<[/\w]/g,Qn.innerHTML)&&qd(/<[/\w]/g,Qn.textContent))return mo(Qn),!0;if(!ga[Eo]||ro[Eo]){if(!ro[Eo]&&Mz(Eo)&&(Ss.tagNameCheck instanceof RegExp&&qd(Ss.tagNameCheck,Eo)||Ss.tagNameCheck instanceof Function&&Ss.tagNameCheck(Eo)))return!1;if(Ua&&!_v[Eo]){const Qi=xn(Qn)||Qn.parentNode,jc=cn(Qn)||Qn.childNodes;if(jc&&Qi){const xd=jc.length;for(let Ll=xd-1;Ll>=0;--Ll)Qi.insertBefore(kt(jc[Ll],!0),It(Qn))}}return mo(Qn),!0}return Qn instanceof he&&!hr(Qn)||(Eo==="noscript"||Eo==="noembed"||Eo==="noframes")&&qd(/<\/no(script|embed|frames)/i,Qn.innerHTML)?(mo(Qn),!0):(Sa&&Qn.nodeType===3&&(lo=Qn.textContent,lo=Qh(lo,eo," "),lo=Qh(lo,po," "),lo=Qh(lo,ls," "),Qn.textContent!==lo&&(op(s.removed,{element:Qn.cloneNode()}),Qn.textContent=lo)),ah("afterSanitizeElements",Qn,null),!1)},Pz=function(Qn,lo,Eo){if(Hs&&(lo==="id"||lo==="name")&&(Eo in O||Eo in kz))return!1;if(!(Bo&&!Lo[lo]&&qd(ys,lo))){if(!(yr&&qd(ma,lo))){if(!co[lo]||Lo[lo]){if(!(Mz(Qn)&&(Ss.tagNameCheck instanceof RegExp&&qd(Ss.tagNameCheck,Qn)||Ss.tagNameCheck instanceof Function&&Ss.tagNameCheck(Qn))&&(Ss.attributeNameCheck instanceof RegExp&&qd(Ss.attributeNameCheck,lo)||Ss.attributeNameCheck instanceof Function&&Ss.attributeNameCheck(lo))||lo==="is"&&Ss.allowCustomizedBuiltInElements&&(Ss.tagNameCheck instanceof RegExp&&qd(Ss.tagNameCheck,Eo)||Ss.tagNameCheck instanceof Function&&Ss.tagNameCheck(Eo))))return!1}else if(!j2[lo]){if(!qd(uc,Qh(Eo,hi,""))){if(!((lo==="src"||lo==="xlink:href"||lo==="href")&&Qn!=="script"&&OI(Eo,"data:")===0&&tC[Qn])){if(!(Ls&&!qd($s,Qh(Eo,hi,"")))){if(Eo)return!1}}}}}}return!0},Mz=function(Qn){return Qn.indexOf("-")>0},rD=function(Qn){let lo,Eo,Qi,jc;ah("beforeSanitizeAttributes",Qn,null);const{attributes:xd}=Qn;if(!xd)return;const Ll={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:co};for(jc=xd.length;jc--;){lo=xd[jc];const{name:qh,namespaceURI:CP}=lo;Eo=qh==="value"?lo.value:iX(lo.value);const Kne=Eo;if(Qi=Ic(qh),Ll.attrName=Qi,Ll.attrValue=Eo,Ll.keepAttr=!0,Ll.forceKeepAttr=void 0,ah("uponSanitizeAttribute",Qn,Ll),Eo=Ll.attrValue,Ll.forceKeepAttr)continue;if(!Ll.keepAttr){bs(qh,Qn);continue}if(!Aa&&qd(/\/>/i,Eo)){bs(qh,Qn);continue}Sa&&(Eo=Qh(Eo,eo," "),Eo=Qh(Eo,po," "),Eo=Qh(Eo,ls," "));const Ez=Ic(Qn.nodeName);if(!Pz(Ez,Qi,Eo)){bs(qh,Qn);continue}if(Pa&&(Qi==="id"||Qi==="name")&&(bs(qh,Qn),Eo=oi+Eo),bn&&typeof Et=="object"&&typeof Et.getAttributeType=="function"&&!CP)switch(Et.getAttributeType(Ez,Qi)){case"TrustedHTML":{Eo=bn.createHTML(Eo);break}case"TrustedScriptURL":{Eo=bn.createScriptURL(Eo);break}}if(Eo!==Kne)try{CP?Qn.setAttributeNS(CP,qh,Eo):Qn.setAttribute(qh,Eo)}catch{bs(qh,Qn)}}ah("afterSanitizeAttributes",Qn,null)},qne=function ps(Qn){let lo;const Eo=pf(Qn);for(ah("beforeSanitizeShadowDOM",Qn,null);lo=Eo.nextNode();)ah("uponSanitizeShadowNode",lo,null),!Az(lo)&&(lo.content instanceof P&&ps(lo.content),rD(lo));ah("afterSanitizeShadowDOM",Qn,null)};return s.sanitize=function(ps){let Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},lo,Eo,Qi,jc;if(K2=!ps,K2&&(ps=""),typeof ps!="string"&&!aO(ps))if(typeof ps.toString=="function"){if(ps=ps.toString(),typeof ps!="string")throw v2("dirty is not a string, aborting")}else throw v2("toString is not a function");if(!s.isSupported)return ps;if(Xh||oC(Qn),s.removed=[],typeof ps=="string"&&(gf=!1),gf){if(ps.nodeName){const qh=Ic(ps.nodeName);if(!ga[qh]||ro[qh])throw v2("root node is forbidden and cannot be sanitized in-place")}}else if(ps instanceof J)lo=ja(""),Eo=lo.ownerDocument.importNode(ps,!0),Eo.nodeType===1&&Eo.nodeName==="BODY"||Eo.nodeName==="HTML"?lo=Eo:lo.appendChild(Eo);else{if(!$u&&!Sa&&!$l&&ps.indexOf("<")===-1)return bn&&Wo?bn.createHTML(ps):ps;if(lo=ja(ps),!lo)return $u?null:Wo?$n:""}lo&&zf&&mo(lo.firstChild);const xd=pf(gf?ps:lo);for(;Qi=xd.nextNode();)Az(Qi)||(Qi.content instanceof P&&qne(Qi.content),rD(Qi));if(gf)return ps;if($u){if(sh)for(jc=Qr.call(lo.ownerDocument);lo.firstChild;)jc.appendChild(lo.firstChild);else jc=lo;return(co.shadowroot||co.shadowrootmode)&&(jc=Bn.call(l,jc,!0)),jc}let Ll=$l?lo.outerHTML:lo.innerHTML;return $l&&ga["!doctype"]&&lo.ownerDocument&&lo.ownerDocument.doctype&&lo.ownerDocument.doctype.name&&qd(x5,lo.ownerDocument.doctype.name)&&(Ll=" +`+Ll),Sa&&(Ll=Qh(Ll,eo," "),Ll=Qh(Ll,po," "),Ll=Qh(Ll,ls," ")),bn&&Wo?bn.createHTML(Ll):Ll},s.setConfig=function(ps){oC(ps),Xh=!0},s.clearConfig=function(){sO=null,Xh=!1},s.isValidAttribute=function(ps,Qn,lo){sO||oC({});const Eo=Ic(ps),Qi=Ic(Qn);return Pz(Eo,Qi,lo)},s.addHook=function(ps,Qn){typeof Qn=="function"&&(tr[ps]=tr[ps]||[],op(tr[ps],Qn))},s.removeHook=function(ps){if(tr[ps])return p2(tr[ps])},s.removeHooks=function(ps){tr[ps]&&(tr[ps]=[])},s.removeAllHooks=function(){tr={}},s}var DI=t3();const $I=fr.each,c1=fr.trim,Z8=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],LI={ftp:21,http:80,https:443,mailto:25},n3=["img","video"],II=(n,s)=>B(n)?!n:B(s)?!Ze(n3,s):!0,H8=n=>{try{return decodeURIComponent(n)}catch{return unescape(n)}},U8=(n,s,l)=>{const h=H8(s).replace(/\s/g,"");return n.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(h)?!0:n.allow_html_data_urls?!1:/^data:image\//i.test(h)?II(n.allow_svg_data_urls,l)&&/^data:image\/svg\+xml/i.test(h):/^data:/i.test(h)};class Kd{static parseDataUri(s){let l;const h=decodeURIComponent(s).split(","),O=/data:([^;]+)/.exec(h[0]);return O&&(l=O[1]),{type:l,data:h[1]}}static isDomSafe(s,l,h={}){if(h.allow_script_urls)return!0;{const O=Pg.decode(s).replace(/[\s\u0000-\u001F]+/g,"");return!U8(h,O,l)}}static getDocumentBaseUrl(s){var l;let h;return s.protocol.indexOf("http")!==0&&s.protocol!=="file:"?h=(l=s.href)!==null&&l!==void 0?l:"":h=s.protocol+"//"+s.host+s.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(h)&&(h=h.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(h)||(h+="/")),h}constructor(s,l={}){this.path="",this.directory="",s=c1(s),this.settings=l;const h=l.base_uri,O=this;if(/^([\w\-]+):([^\/]{2})/i.test(s)||/^\s*#/.test(s)){O.source=s;return}const P=s.indexOf("//")===0;if(s.indexOf("/")===0&&!P&&(s=(h&&h.protocol||"http")+"://mce_host"+s),!/^[\w\-]*:?\/\//.test(s)){const J=h?h.path:new Kd(document.location.href).directory;if((h==null?void 0:h.protocol)==="")s="//mce_host"+O.toAbsPath(J,s);else{const he=/([^#?]*)([#?]?.*)/.exec(s);he&&(s=(h&&h.protocol||"http")+"://mce_host"+O.toAbsPath(J,he[1])+he[2])}}s=s.replace(/@@/g,"(mce_at)");const Z=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(s);Z&&$I(Z8,(J,he)=>{let _e=Z[he];_e&&(_e=_e.replace(/\(mce_at\)/g,"@@")),O[J]=_e}),h&&(O.protocol||(O.protocol=h.protocol),O.userInfo||(O.userInfo=h.userInfo),!O.port&&O.host==="mce_host"&&(O.port=h.port),(!O.host||O.host==="mce_host")&&(O.host=h.host),O.source=""),P&&(O.protocol="")}setPath(s){const l=/^(.*?)\/?(\w+)?$/.exec(s);l&&(this.path=l[0],this.directory=l[1],this.file=l[2]),this.source="",this.getURI()}toRelative(s){if(s==="./")return s;const l=new Kd(s,{base_uri:this});if(l.host!=="mce_host"&&this.host!==l.host&&l.host||this.port!==l.port||this.protocol!==l.protocol&&l.protocol!=="")return l.getURI();const h=this.getURI(),O=l.getURI();if(h===O||h.charAt(h.length-1)==="/"&&h.substr(0,h.length-1)===O)return h;let P=this.toRelPath(this.path,l.path);return l.query&&(P+="?"+l.query),l.anchor&&(P+="#"+l.anchor),P}toAbsolute(s,l){const h=new Kd(s,{base_uri:this});return h.getURI(l&&this.isSameOrigin(h))}isSameOrigin(s){if(this.host==s.host&&this.protocol==s.protocol){if(this.port==s.port)return!0;const l=this.protocol?LI[this.protocol]:null;if(l&&(this.port||l)==(s.port||l))return!0}return!1}toRelPath(s,l){let h=0,O="",P,Z;const J=s.substring(0,s.lastIndexOf("/")).split("/"),he=l.split("/");if(J.length>=he.length){for(P=0,Z=J.length;P=he.length||J[P]!==he[P]){h=P+1;break}}if(J.length=J.length||J[P]!==he[P]){h=P+1;break}}if(h===1)return l;for(P=0,Z=J.length-(h-1);P{qe&&J.push(qe)});const he=[];for(let qe=Z.length-1;qe>=0;qe--)if(!(Z[qe].length===0||Z[qe]===".")){if(Z[qe]===".."){h++;continue}if(h>0){h--;continue}he.push(Z[qe])}const _e=J.length-h;let Ge;return _e<=0?Ge=ct(he).join("/"):Ge=J.slice(0,_e).join("/")+"/"+ct(he).join("/"),Ge.indexOf("/")!==0&&(Ge="/"+Ge),O&&Ge.lastIndexOf("/")!==Ge.length-1&&(Ge+=O),Ge}getURI(s=!1){let l;return(!this.source||s)&&(l="",s||(this.protocol?l+=this.protocol+"://":l+="//",this.userInfo&&(l+=this.userInfo+"@"),this.host&&(l+=this.host),this.port&&(l+=":"+this.port)),this.path&&(l+=this.path),this.query&&(l+="?"+this.query),this.anchor&&(l+="#"+this.anchor),this.source=l),this.source}}const fX=fr.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),W8="data-mce-type";let NI=0;const S5=(n,s,l,h,O)=>{var P,Z,J,he;const _e=s.validate,Ge=l.getSpecialElements();n.nodeType===Rd&&!s.allow_conditional_comments&&/^\[if/i.test((P=n.nodeValue)!==null&&P!==void 0?P:"")&&(n.nodeValue=" "+n.nodeValue);const qe=(Z=O==null?void 0:O.tagName)!==null&&Z!==void 0?Z:n.nodeName.toLowerCase();if(h!=="html"&&l.isValid(h)){B(O)&&(O.allowedTags[qe]=!0);return}if(n.nodeType!==mh||qe==="body")return;const ot=Yt.fromDom(n),Et=Cf(ot,W8),Vt=Al(ot,"data-mce-bogus");if(!Et&&M(Vt)){Vt==="all"?Ks(ot):Ef(ot);return}const kt=l.getElementRule(qe);if(_e&&!kt){it(Ge,qe)?Ks(ot):Ef(ot);return}else B(O)&&(O.allowedTags[qe]=!0);if(_e&&kt&&!Et){if(re((J=kt.attributesForced)!==null&&J!==void 0?J:[],It=>{Ra(ot,It.name,It.value==="{$uid}"?`mce_${NI++}`:It.value)}),re((he=kt.attributesDefault)!==null&&he!==void 0?he:[],It=>{Cf(ot,It.name)||Ra(ot,It.name,It.value==="{$uid}"?`mce_${NI++}`:It.value)}),kt.attributesRequired&&!De(kt.attributesRequired,It=>Cf(ot,It))){Ef(ot);return}if(kt.removeEmptyAttrs&&kf(ot)){Ef(ot);return}kt.outputName&&kt.outputName!==qe&&Vd(ot,kt.outputName)}},dX=(n,s,l,h,O)=>{const P=n.tagName.toLowerCase(),{attrName:Z,attrValue:J}=O;O.keepAttr=Y8(s,l,h,P,Z,J),O.keepAttr?(O.allowedAttributes[Z]=!0,QI(Z,l)&&(O.attrValue=Z),s.allow_svg_data_urls&&Sr(J,"data:image/svg+xml")&&(O.forceKeepAttr=!0)):BI(n,Z)&&(O.forceKeepAttr=!0)},Y8=(n,s,l,h,O,P)=>l!=="html"&&!Ac(h)?!0:!(O in fX&&U8(n,P,h))&&(!n.validate||s.isValid(h,O)||Sr(O,"data-")||Sr(O,"aria-")),BI=(n,s)=>n.hasAttribute(W8)&&(s==="id"||s==="class"||s==="style"),QI=(n,s)=>n in s.getBoolAttrs(),hX=(n,s,l,h)=>{const{attributes:O}=n;for(let P=O.length-1;P>=0;P--){const Z=O[P],J=Z.name,he=Z.value;!Y8(s,l,h,n.tagName.toLowerCase(),J,he)&&!BI(n,J)?n.removeAttribute(J):QI(J,l)&&n.setAttribute(J,J)}},mX=(n,s,l)=>{const h=DI();return h.addHook("uponSanitizeElement",(O,P)=>{S5(O,n,s,l.track(O),P)}),h.addHook("uponSanitizeAttribute",(O,P)=>{dX(O,n,s,l.current(),P)}),h},gX=(n,s)=>{const h={...{IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]}};return h.PARSER_MEDIA_TYPE=s,n.allow_script_urls?h.ALLOWED_URI_REGEXP=/.*/:n.allow_html_data_urls&&(h.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),h},pX=n=>{const s=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(h=>`xlink:${h}`),l={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:s};return DI().sanitize(n,l),n.innerHTML},vX=(n,s)=>{const l=Bd();if(n.sanitize){const h=mX(n,s,l);return{sanitizeHtmlElement:(P,Z)=>{h.sanitize(P,gX(n,Z)),h.removed=[],l.reset()},sanitizeNamespaceElement:pX}}else return{sanitizeHtmlElement:(P,Z)=>{const J=document.createNodeIterator(P,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let he;for(;he=J.nextNode();){const _e=l.track(he);S5(he,n,s,_e),Xr(he)&&hX(he,n,s,_e)}l.reset()},sanitizeNamespaceElement:ie}},FI=fr.makeMap,VI=fr.extend,r3=(n,s,l,h)=>{const O=n.name,P=O in l&&O!=="title"&&O!=="textarea",Z=s.childNodes;for(let J=0,he=Z.length;J{const h=[];for(let O=n,P=O;O;P=O,O=O.walk()){const Z=O;re(s,J=>J(Z)),Q(Z.parent)&&Z!==n?O=P:h.push(Z)}for(let O=h.length-1;O>=0;O--){const P=h[O];re(l,Z=>Z(P))}},yX=(n,s,l,h)=>{const O=l.validate,P=s.getNonEmptyElements(),Z=s.getWhitespaceElements(),J=VI(FI("script,style,head,html,body,title,meta,param"),s.getBlockElements()),he=nk(s),_e=/[ \t\r\n]+/g,Ge=/^[ \t\r\n]+/,qe=/[ \t\r\n]+$/,ot=xn=>{let bn=xn.parent;for(;B(bn);){if(bn.name in Z)return!0;bn=bn.parent}return!1},Et=xn=>{let bn=xn;for(;B(bn);){if(bn.name in he)return s2(s,P,Z,bn);bn=bn.parent}return!1},Vt=xn=>xn.name in J||xm(s,xn)||Ac(xn.name)&&xn.parent===n,kt=(xn,bn)=>{const $n=bn?xn.prev:xn.next;return B($n)||Q(xn.parent)?!1:Vt(xn.parent)&&(xn.parent!==n||h.isRootContent===!0)};return[xn=>{var bn;if(xn.type===3&&!ot(xn)){let $n=(bn=xn.value)!==null&&bn!==void 0?bn:"";$n=$n.replace(_e," "),(n8(xn.prev,Vt)||kt(xn,!0))&&($n=$n.replace(Ge,"")),$n.length===0?xn.remove():xn.value=$n}},xn=>{var bn;if(xn.type===1){const $n=s.getElementRule(xn.name);if(O&&$n){const rr=s2(s,P,Z,xn);$n.paddInEmptyBlock&&rr&&Et(xn)?JA(l,h,Vt,xn):$n.removeEmpty&&rr?Vt(xn)?xn.remove():xn.unwrap():$n.paddEmpty&&(rr||SL(xn))&&JA(l,h,Vt,xn)}}else if(xn.type===3&&!ot(xn)){let $n=(bn=xn.value)!==null&&bn!==void 0?bn:"";(xn.next&&Vt(xn.next)||kt(xn,!1))&&($n=$n.replace(qe,"")),$n.length===0?xn.remove():xn.value=$n}}]},w5=(n,s)=>{var l;const h=(l=s.forced_root_block)!==null&&l!==void 0?l:n.forced_root_block;return h===!1?"":h===!0?"p":h},Vh=(n={},s=Cm())=>{const l=hI(),h=hI(),O={validate:!0,root_name:"body",sanitize:!0,...n},P=new DOMParser,Z=vX(O,s),J=(bn,$n,rr="html")=>{const gr=rr==="xhtml"?"application/xhtml+xml":"text/html",Qr=it(s.getSpecialElements(),$n.toLowerCase()),zn=Qr?`<${$n}>${bn}`:bn,Bn=rr==="xhtml"?`${zn}`:`${zn}`,tr=P.parseFromString(Bn,gr).body;return Z.sanitizeHtmlElement(tr,gr),Qr?tr.firstChild:tr},he=l.addFilter,_e=l.getFilters,Ge=l.removeFilter,qe=h.addFilter,ot=h.getFilters,Et=h.removeFilter,Vt=(bn,$n)=>{n5(s,bn)&&$n.push(bn)},kt=(bn,$n)=>{const rr=M($n.attr(W8)),gr=$n.type===1&&!it(bn,$n.name)&&!xm(s,$n)&&!Ac($n.name);return $n.type===3||gr&&!rr},It=(bn,$n)=>{const rr=VI(FI("script,style,head,html,body,title,meta,param"),s.getBlockElements()),gr=/^[ \t\r\n]+/,Qr=/[ \t\r\n]+$/;let zn=bn.firstChild,Bn=null;const tr=eo=>{var po,ls;eo&&(zn=eo.firstChild,zn&&zn.type===3&&(zn.value=(po=zn.value)===null||po===void 0?void 0:po.replace(gr,"")),zn=eo.lastChild,zn&&zn.type===3&&(zn.value=(ls=zn.value)===null||ls===void 0?void 0:ls.replace(Qr,"")))};if(s.isValidChild(bn.name,$n.toLowerCase())){for(;zn;){const eo=zn.next;kt(rr,zn)?(Bn||(Bn=new hu($n,1),Bn.attr(O.forced_root_block_attrs),bn.insert(Bn,zn)),Bn.append(zn)):(tr(Bn),Bn=null),zn=eo}tr(Bn)}},xn={schema:s,addAttributeFilter:qe,getAttributeFilters:ot,removeAttributeFilter:Et,addNodeFilter:he,getNodeFilters:_e,removeNodeFilter:Ge,parse:(bn,$n={})=>{var rr;const gr=O.validate,Qr=(rr=$n.context)!==null&&rr!==void 0?rr:O.root_name,zn=J(bn,Qr,$n.format);My(s,zn);const Bn=new hu(Qr,11);r3(Bn,zn,s.getSpecialElements(),Z.sanitizeNamespaceElement),zn.innerHTML="";const[tr,eo]=yX(Bn,s,O,$n),po=[],ls=gr?hi=>Vt(hi,po):ie,ys={nodes:{},attributes:{}},ma=hi=>K_(_e(),ot(),hi,ys);if(gu(Bn,[tr,ma],[eo,ls]),po.reverse(),gr&&po.length>0)if($n.context){const{pass:hi,fail:uc}=te(po,ga=>ga.parent===Bn);t5(uc,s,Bn,ma),$n.invalid=hi.length>0}else t5(po,s,Bn,ma);const $s=w5(O,$n);return $s&&(Bn.name==="body"||$n.isRootContent)&&It(Bn,$s),$n.invalid||J_(ys,$n),Bn}};return bI(xn,O),D8(xn,O,s),xn},zI=n=>s5(n)?s1({validate:!1}).serialize(n):n,ff=(n,s,l)=>{const h=zI(n),O=s(h);if(O.isDefaultPrevented())return O;if(s5(n))if(O.content!==h){const P=Vh({validate:!1,forced_root_block:!1,...l}).parse(O.content,{context:n.name});return{...O,content:P}}else return{...O,content:n};else return O},u1=(n,s)=>{if(s.no_events)return iu.value(s);{const l=t_(n,s);return l.isDefaultPrevented()?iu.error(xs(n,{content:"",...l}).content):iu.value(l)}},X8=(n,s,l)=>l.no_events?s:ff(s,O=>xs(n,{...l,content:O}),{sanitize:L0(n),sandbox_iframes:Tx(n)}).content,G8=(n,s)=>{if(s.no_events)return iu.value(s);{const l=ff(s.content,h=>l9(n,{...s,content:h}),{sanitize:L0(n),sandbox_iframes:Tx(n)});return l.isDefaultPrevented()?(yA(n,l),iu.error(void 0)):iu.value(l)}},T5=(n,s,l)=>{l.no_events||yA(n,{...l,content:s})},j8=(n,s,l)=>({element:n,width:s,rows:l}),q8=(n,s)=>({element:n,cells:s}),o3=(n,s)=>({x:n,y:s}),C5=(n,s)=>bc(n,s).bind(Ft).getOr(1),bX=(n,s,l,h,O)=>{const P=C5(O,"rowspan"),Z=C5(O,"colspan"),J=n.rows;for(let he=l;he{const h=n.rows;return!!(h[l]?h[l].cells:[])[s]},OX=(n,s,l)=>{for(;ZI(n,s,l);)s++;return s},k5=n=>oe(n,(s,l)=>l.cells.length>s?l.cells.length:s,0),A5=(n,s)=>{const l=n.rows;for(let h=0;h{const P=[],Z=n.rows;for(let J=l;J<=O;J++){const he=Z[J].cells,_e=s{const h=s.x,O=s.y,P=l.x,Z=l.y,J=O{const l=Pu(n.element),h=Yt.fromTag("tbody");return Ta(h,s),Ci(l,h),l},K8=n=>Ie(n.rows,s=>{const l=Ie(s.cells,O=>{const P=ix(O);return ci(P,"colspan"),ci(P,"rowspan"),P}),h=Pu(s.element);return Ta(h,l),h}),SX=n=>{const s=j8(Pu(n),0,[]);return re(sl(n,"tr"),(l,h)=>{re(sl(l,"td,th"),(O,P)=>{bX(s,OX(s,P,h),h,l,O)})}),j8(s.element,k5(s.rows),s.rows)},P5=n=>sp(n,K8(n)),J8=(n,s,l)=>A5(n,s).bind(h=>A5(n,l).map(O=>xX(n,h,O))),UI=n=>le(n,s=>Vs(s)==="ul"||Vs(s)==="ol"),WI=(n,s)=>le(n,l=>Vs(l)==="li"&&aT(l,s)).fold(ae([]),l=>UI(n).map(h=>{const O=Yt.fromTag(Vs(h)),P=wn(Oy(h),(Z,J)=>Sr(J,"list-style"));return nc(O,P),[Yt.fromTag("li"),O]}).getOr([])),YI=(n,s)=>{const l=oe(s,(h,O)=>(Ci(O,h),O),n);return s.length>0?TT([l]):l},wX=n=>td(n)?ru(n).filter(Tc).fold(ae([]),s=>[n,s]):Tc(n)?[n]:[],TX=(n,s,l)=>{const h=Yt.fromDom(s.commonAncestorContainer),O=qg(h,n),P=se(O,he=>l.isWrapper(Vs(he))),Z=WI(O,s),J=P.concat(Z.length?Z:wX(h));return Ie(J,Pu)},XI=()=>TT([]),CX=(n,s,l)=>YI(Yt.fromDom(s.cloneContents()),TX(n,s,l)),kX=(n,s)=>Og(s,"table",ee(Gs,n)),GI=(n,s)=>kX(n,s[0]).bind(l=>{const h=s[0],O=s[s.length-1],P=SX(l);return J8(P,h,O).map(Z=>TT([P5(Z)]))}).getOrThunk(XI),AX=(n,s,l)=>s.length>0&&s[0].collapsed?XI():CX(n,s[0],l),PX=(n,s,l)=>{const h=UE(s,n);return h.length>0?GI(n,h):AX(n,s,l)},M5=(n,s)=>s>=0&&sPe(n.innerText),t6=n=>n.map(s=>s.nodeName).getOr("div").toLowerCase(),n6=n=>G.from(n.selection.getRng()).map(s=>{var l;const h=G.from(n.dom.getParent(s.commonAncestorContainer,n.dom.isBlock)),O=n.getBody(),P=t6(h),Z=Yt.fromDom(s.cloneContents());Jo(Z),C_(Z);const J=n.dom.add(O,P,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},Z.dom),he=e6(J),_e=Pe((l=J.textContent)!==null&&l!==void 0?l:"");if(n.dom.remove(J),M5(_e,0)||M5(_e,_e.length-1)){const Ge=h.getOr(O),qe=e6(Ge),ot=qe.indexOf(he);if(ot===-1)return he;{const Et=M5(qe,ot-1),Vt=M5(qe,ot+he.length);return(Et?" ":"")+he+(Vt?" ":"")}}else return he}).getOr(""),jI=(n,s)=>{const l=n.selection.getRng(),h=n.dom.create("body"),O=n.selection.getSel(),P=T_(n,$x(O)),Z=s.contextual?PX(Yt.fromDom(n.getBody()),P,n.schema).dom:l.cloneContents();return Z&&h.appendChild(Z),n.selection.serializer.serialize(h,s)},r6=(n,s)=>{if(s.format==="text")return n6(n);{const l=jI(n,s);return s.format==="tree"?l:n.selection.isCollapsed()?"":l}},qI=(n,s)=>({...n,format:s,get:!0,selection:!0,getInner:!0}),KI=(n,s,l={})=>{const h=qI(l,s);return u1(n,h).fold(q,O=>{const P=r6(n,O);return X8(n,P,O)})},s3=0,o6=1,s6=2,JI=(n,s)=>{const l=n.length+s.length+2,h=new Array(l),O=new Array(l),P=(Ge,qe,ot)=>({start:Ge,end:qe,diag:ot}),Z=(Ge,qe,ot,Et,Vt)=>{const kt=he(Ge,qe,ot,Et);if(kt===null||kt.start===qe&&kt.diag===qe-Et||kt.end===Ge&&kt.diag===Ge-ot){let It=Ge,cn=ot;for(;ItEt-ot?(Vt.push([s6,n[It]]),++It):(Vt.push([o6,s[cn]]),++cn)}else{Z(Ge,kt.start,ot,kt.start-kt.diag,Vt);for(let It=kt.start;It{let Vt=Ge;for(;Vt-qe{const Vt=qe-Ge,kt=Et-ot;if(Vt===0||kt===0)return null;const It=Vt-kt,cn=kt+Vt,xn=(cn%2===0?cn:cn+1)/2;h[1+xn]=Ge,O[1+xn]=qe+1;let bn,$n,rr,gr,Qr;for(bn=0;bn<=xn;++bn){for($n=-bn;$n<=bn;$n+=2){for(rr=$n+xn,$n===-bn||$n!==bn&&h[rr-1]=Ge&&Qr>=ot&&n[gr]===s[Qr];)O[rr]=gr--,Qr--;if(It%2===0&&-bn<=$n&&$n<=bn&&O[rr]<=h[rr+It])return J(O[rr],$n+Ge-ot,qe,Et)}}return null},_e=[];return Z(0,n.length,0,s.length,_e),_e},a6=n=>Xr(n)?n.outerHTML:lr(n)?Pg.encodeRaw(n.data,!1):Kf(n)?"":"",i6=n=>{let s;const l=document.createElement("div"),h=document.createDocumentFragment();for(n&&(l.innerHTML=n);s=l.firstChild;)h.appendChild(s);return h},MX=(n,s,l)=>{const h=i6(s);if(n.hasChildNodes()&&l{if(n.hasChildNodes()&&s{let l=0;re(n,h=>{h[0]===s3?l++:h[0]===o6?(MX(s,h[1],l),l++):h[0]===s6&&E5(s,l)})},_X=(n,s)=>se(Ie(tt(n.childNodes),s?L(Pe,a6):a6),l=>l.length>0),RX=(n,s)=>{const l=Ie(tt(s.childNodes),a6);return EX(JI(l,n),s),s},eN=Rt(()=>document.implementation.createHTMLDocument("undo")),tN=n=>n.querySelector("iframe")!==null,DX=n=>({type:"fragmented",fragments:n,content:"",bookmark:null,beforeBookmark:null}),$X=n=>({type:"complete",fragments:null,content:n,bookmark:null,beforeBookmark:null}),_5=n=>{const s=n.serializer.getTempAttrs(),l=$9(n.getBody(),s);return tN(l)?DX(_X(l,!0)):$X(Pe(l.innerHTML))},l6=(n,s,l)=>{const h=l?s.beforeBookmark:s.bookmark;s.type==="fragmented"?RX(s.fragments,n.getBody()):n.setContent(s.content,{format:"raw",no_selection:B(h)&&nA(h)?!h.isFakeCaret:!0}),h&&(n.selection.moveToBookmark(h),n.selection.scrollIntoView())},c6=n=>n.type==="fragmented"?n.fragments.join(""):n.content,u6=n=>{const s=Yt.fromTag("body",eN());return gm(s,c6(n)),re(sl(s,"*[data-mce-bogus]"),Ef),hs(s)},Lle=(n,s)=>c6(n)===c6(s),LX=(n,s)=>u6(n)===u6(s),f6=(n,s)=>!n||!s?!1:Lle(n,s)?!0:LX(n,s),d6=n=>n.get()===0,R5=(n,s,l)=>{d6(l)&&(n.typing=s)},nN=(n,s)=>{n.typing&&(R5(n,!1,s),n.add())},IX=n=>{n.typing&&(n.typing=!1,n.add())},NX=(n,s,l)=>{d6(s)&&l.set(P0(n.selection))},rN=(n,s,l,h,O,P,Z)=>{const J=_5(n),he=fr.extend(P||{},J);if(!d6(h)||n.removed)return null;const _e=s.data[l.get()];if(n.dispatch("BeforeAddUndo",{level:he,lastLevel:_e,originalEvent:Z}).isDefaultPrevented()||_e&&f6(_e,he))return null;s.data[l.get()]&&O.get().each(ot=>{s.data[l.get()].beforeBookmark=ot});const Ge=jy(n);if(Ge&&s.data.length>Ge){for(let ot=0;ot0?(n.setDirty(!0),n.dispatch("AddUndo",qe),n.dispatch("change",qe)):n.dispatch("AddUndo",qe),he},BX=(n,s,l)=>{s.data=[],l.set(0),s.typing=!1,n.dispatch("ClearUndos")},QX=(n,s,l,h,O)=>{if(s.transact(h)){const P=s.data[l.get()].bookmark,Z=s.data[l.get()-1];l6(n,Z,!0),s.transact(O)&&(s.data[l.get()-1].beforeBookmark=P)}},FX=(n,s,l)=>{let h;return s.get(){let O;return s.typing&&(s.add(),s.typing=!1,R5(s,!1,l)),h.get()>0&&(h.set(h.get()-1),O=s.data[h.get()],l6(n,O,!0),n.setDirty(!0),n.dispatch("Undo",{level:O})),O},zX=n=>{n.clear(),n.add()},Ile=(n,s,l)=>l.get()>0||s.typing&&s.data[0]&&!f6(_5(n),s.data[0]),Nle=(n,s)=>s.get()(nN(n,s),n.beforeChange(),n.ignore(l),n.add()),HX=(n,s)=>{try{n.set(n.get()+1),s()}finally{n.set(n.get()-1)}},Ble=(n,s)=>{const l=n.dom,h=B(s)?s:n.getBody();re(l.select("table,a",h),O=>{switch(O.nodeName){case"TABLE":const P=vE(n),Z=l.getAttrib(O,"border");(!Z||Z==="0")&&n.hasVisual?l.addClass(O,P):l.removeClass(O,P);break;case"A":if(!l.getAttrib(O,"href")){const J=l.getAttrib(O,"name")||O.id,he=Nk(n);J&&n.hasVisual?l.addClass(O,he):l.removeClass(O,he)}break}}),n.dispatch("VisualAid",{element:s,hasVisual:n.hasVisual})},oN=n=>({init:{bindEvents:ie},undoManager:{beforeChange:(s,l)=>NX(n,s,l),add:(s,l,h,O,P,Z)=>rN(n,s,l,h,O,P,Z),undo:(s,l,h)=>VX(n,s,l,h),redo:(s,l)=>FX(n,s,l),clear:(s,l)=>BX(n,s,l),reset:s=>zX(s),hasUndo:(s,l)=>Ile(n,s,l),hasRedo:(s,l)=>Nle(s,l),transact:(s,l,h)=>ZX(s,l,h),ignore:(s,l)=>HX(s,l),extra:(s,l,h,O)=>QX(n,s,l,h,O)},formatter:{match:(s,l,h,O)=>a5(n,s,l,h,O),matchAll:(s,l)=>EY(n,s,l),matchNode:(s,l,h,O)=>Jg(n,s,l,h,O),canApply:s=>QL(n,s),closest:s=>Ib(n,s),apply:(s,l,h)=>lI(n,s,l,h),remove:(s,l,h,O)=>oI(n,s,l,h,O),toggle:(s,l,h)=>GY(n,s,l,h),formatChanged:(s,l,h,O,P)=>XY(n,s,l,h,O,P)},editor:{getContent:s=>Ale(n,s),setContent:(s,l)=>IL(n,s,l),insertContent:(s,l)=>LL(n,s,l),addVisual:s=>Ble(n,s)},selection:{getContent:(s,l)=>KI(n,s,l)},autocompleter:{addDecoration:s=>yW(n,s),removeDecoration:()=>OW(n,Yt.fromDom(n.getBody()))},raw:{getModel:()=>G.none()}}),Mi=n=>{const s=_e=>I(_e)?_e:{},{init:l,undoManager:h,formatter:O,editor:P,selection:Z,autocompleter:J,raw:he}=n;return{init:{bindEvents:l.bindEvents},undoManager:{beforeChange:h.beforeChange,add:h.add,undo:h.undo,redo:h.redo,clear:h.clear,reset:h.reset,hasUndo:h.hasUndo,hasRedo:h.hasRedo,transact:(_e,Ge,qe)=>h.transact(qe),ignore:(_e,Ge)=>h.ignore(Ge),extra:(_e,Ge,qe,ot)=>h.extra(qe,ot)},formatter:{match:(_e,Ge,qe,ot)=>O.match(_e,s(Ge),ot),matchAll:O.matchAll,matchNode:O.matchNode,canApply:_e=>O.canApply(_e),closest:_e=>O.closest(_e),apply:(_e,Ge,qe)=>O.apply(_e,s(Ge)),remove:(_e,Ge,qe,ot)=>O.remove(_e,s(Ge)),toggle:(_e,Ge,qe)=>O.toggle(_e,s(Ge)),formatChanged:(_e,Ge,qe,ot,Et)=>O.formatChanged(Ge,qe,ot,Et)},editor:{getContent:_e=>P.getContent(_e),setContent:(_e,Ge)=>({content:P.setContent(_e,Ge),html:""}),insertContent:(_e,Ge)=>(P.insertContent(_e),""),addVisual:P.addVisual},selection:{getContent:(_e,Ge)=>Z.getContent(Ge)},autocompleter:{addDecoration:J.addDecoration,removeDecoration:J.removeDecoration},raw:{getModel:()=>G.some(he.getRawModel())}}},h6=()=>{const n=ae(null),s=ae("");return{init:{bindEvents:ie},undoManager:{beforeChange:ie,add:n,undo:n,redo:n,clear:ie,reset:ie,hasUndo:ne,hasRedo:ne,transact:n,ignore:ie,extra:ie},formatter:{match:ne,matchAll:ae([]),matchNode:ae(void 0),canApply:ne,closest:s,apply:ie,remove:ie,toggle:ie,formatChanged:ae({unbind:ie})},editor:{getContent:s,setContent:ae({content:"",html:""}),insertContent:ae(""),addVisual:ie},selection:{getContent:s},autocompleter:{addDecoration:ie,removeDecoration:ie},raw:{getModel:ae(G.none())}}},Cv=n=>it(n.plugins,"rtc"),UX=n=>Sn(n.plugins,"rtc").bind(s=>G.from(s.setup)),WX=n=>{const s=n;return UX(n).fold(()=>(s.rtcInstance=oN(n),G.none()),l=>(s.rtcInstance=h6(),G.some(()=>l().then(h=>(s.rtcInstance=Mi(h),h.rtc.isRemote)))))},f1=n=>n.rtcInstance?n.rtcInstance:oN(n),bl=n=>{const s=n.rtcInstance;if(s)return s;throw new Error("Failed to get RTC instance not yet initialized.")},Qle=(n,s,l)=>{bl(n).undoManager.beforeChange(s,l)},$c=(n,s,l,h,O,P,Z)=>bl(n).undoManager.add(s,l,h,O,P,Z),sN=(n,s,l,h)=>bl(n).undoManager.undo(s,l,h),aN=(n,s,l)=>bl(n).undoManager.redo(s,l),iN=(n,s,l)=>{bl(n).undoManager.clear(s,l)},YX=(n,s)=>{bl(n).undoManager.reset(s)},XX=(n,s,l)=>bl(n).undoManager.hasUndo(s,l),D5=(n,s,l)=>bl(n).undoManager.hasRedo(s,l),GX=(n,s,l,h)=>bl(n).undoManager.transact(s,l,h),m6=(n,s,l)=>{bl(n).undoManager.ignore(s,l)},jX=(n,s,l,h,O)=>{bl(n).undoManager.extra(s,l,h,O)},lN=(n,s,l,h,O)=>bl(n).formatter.match(s,l,h,O),cN=(n,s,l)=>bl(n).formatter.matchAll(s,l),g6=(n,s,l,h,O)=>bl(n).formatter.matchNode(s,l,h,O),uN=(n,s)=>bl(n).formatter.canApply(s),p6=(n,s)=>bl(n).formatter.closest(s),qX=(n,s,l,h)=>{bl(n).formatter.apply(s,l,h)},KX=(n,s,l,h,O)=>{bl(n).formatter.remove(s,l,h,O)},JX=(n,s,l,h)=>{bl(n).formatter.toggle(s,l,h)},Jd=(n,s,l,h,O,P)=>bl(n).formatter.formatChanged(s,l,h,O,P),eG=(n,s)=>f1(n).editor.getContent(s),tG=(n,s,l)=>f1(n).editor.setContent(s,l),nG=(n,s,l)=>f1(n).editor.insertContent(s,l),rG=(n,s,l)=>bl(n).selection.getContent(s,l),oG=(n,s)=>bl(n).editor.addVisual(s),v6=n=>bl(n).init.bindEvents(),sG=(n,s)=>bl(n).autocompleter.addDecoration(s),aG=n=>bl(n).autocompleter.removeDecoration(),iG=(n,s={})=>{const l=s.format?s.format:"html";return rG(n,l,s)},a3=n=>n.dom.length===0?(Ks(n),G.none()):G.some(n),lG=(n,s)=>n.filter(l=>mv.isBookmarkNode(l.dom)).bind(s?zp:Uu),cG=(n,s,l,h,O)=>{const P=n.dom,Z=s.dom,J=h?P.length:Z.length;h?(Dl(P,Z,O,!1,!h),l.setStart(Z,J)):(Dl(Z,P,O,!1,!h),l.setEnd(Z,J))},fN=(n,s,l)=>{ru(n).each(h=>{const O=n.dom;s&&e2(h,Nn(O,0),l)?_b(O,0,l):!s&&t2(h,Nn(O,O.length),l)&&rL(O,O.length,l)})},$5=(n,s,l,h,O)=>{n.bind(P=>((h?rL:_b)(P.dom,h?P.dom.length:0,O),s.filter(Zi).map(J=>cG(P,J,l,h,O)))).orThunk(()=>lG(s,h).or(s).filter(Zi).map(Z=>fN(Z,h,O)))},uG=(n,s,l)=>{const h=G.from(s.firstChild).map(Yt.fromDom),O=G.from(s.lastChild).map(Yt.fromDom);n.deleteContents(),n.insertNode(s);const P=h.bind(Uu).filter(Zi).bind(a3),Z=O.bind(zp).filter(Zi).bind(a3);$5(P,h,n,!0,l),$5(Z,O,n,!1,l),n.collapse(!1)},fG=(n,s)=>({format:"html",...n,set:!0,selection:!0,content:s}),Fle=(n,s)=>{if(s.format!=="raw"){const l=n.selection.getRng(),h=n.dom.getParent(l.commonAncestorContainer,n.dom.isBlock),O=h?{context:h.nodeName.toLowerCase()}:{},P=n.parser.parse(s.content,{forced_root_block:!1,...O,...s});return s1({validate:!1},n.schema).serialize(P)}else return s.content},dG=(n,s,l={})=>{const h=fG(l,s);G8(n,h).each(O=>{const P=Fle(n,O),Z=n.selection.getRng();uG(Z,Z.createContextualFragment(P),n.schema),n.selection.setRng(Z),Ab(n,Z),T5(n,P,O)})},dN=(n,s,l)=>{if(it(n,s)){const h=se(n[s],O=>O!==l);h.length===0?delete n[s]:n[s]=h}};var hN=(n,s)=>{let l,h;const O=(J,he)=>le(he,_e=>n.is(_e,J)),P=J=>n.getParents(J,void 0,n.getRoot()),Z=()=>{l={},h={},s.on("NodeChange",J=>{const he=J.element,_e=P(he),Ge={};Bt(l,(qe,ot)=>{O(ot,_e).each(Et=>{h[ot]||(re(qe,Vt=>{Vt(!0,{node:Et,selector:ot,parents:_e})}),h[ot]=qe),Ge[ot]=qe})}),Bt(h,(qe,ot)=>{Ge[ot]||(delete h[ot],re(qe,Et=>{Et(!1,{node:he,selector:ot,parents:_e})}))})})};return{selectorChangedWithUnbind:(J,he)=>(l||Z(),l[J]||(l[J]=[]),l[J].push(he),O(J,P(s.selection.getStart())).each(()=>{h[J]=l[J]}),{unbind:()=>{dN(l,J,he),dN(h,J,he)}})}};const y6=n=>!!(n&&n.ownerDocument)&&tc(Yt.fromDom(n.ownerDocument),Yt.fromDom(n)),hG=n=>n?y6(n.startContainer)&&y6(n.endContainer):!1,d1=(n,s,l,h)=>{let O,P;const{selectorChangedWithUnbind:Z}=hN(n,h),J=(Cr,co)=>{const Zs=n.createRng();B(Cr)&&B(co)?(Zs.setStart(Cr,co),Zs.setEnd(Cr,co),$n(Zs),cn(!1)):(iT(n,Zs,h.getBody(),!0),$n(Zs))},he=Cr=>iG(h,Cr),_e=(Cr,co)=>dG(h,Cr,co),Ge=Cr=>S_(h.getBody(),bn(),Cr),qe=Cr=>T9(h.getBody(),bn(),Cr),ot=(Cr,co)=>uc.getBookmark(Cr,co),Et=Cr=>uc.moveToBookmark(Cr),Vt=(Cr,co)=>(uW(n,Cr,co).each($n),Cr),kt=()=>{const Cr=bn(),co=xn();return!Cr||Cr.item?!1:Cr.compareEndPoints?Cr.compareEndPoints("StartToEnd",Cr)===0:!co||Cr.collapsed},It=()=>{const Cr=bn(),co=h.getBody().querySelectorAll('[data-mce-selected="1"]');return co.length>0?Xe(co,Zs=>n.isEditable(Zs.parentElement)):S9(n,Cr)},cn=Cr=>{const co=bn();co.collapse(!!Cr),$n(co)},xn=()=>s.getSelection?s.getSelection():s.document.selection,bn=()=>{let Cr;const co=(Ss,ro,Lo)=>{try{return ro.compareBoundaryPoints(Ss,Lo)}catch{return-1}},Zs=s.document;if(B(h.bookmark)&&!o1(h)){const Ss=y_(h);if(Ss.isSome())return Ss.map(ro=>T_(h,[ro])[0]).getOr(Zs.createRange())}try{const Ss=xn();Ss&&!Gu(Ss.anchorNode)&&(Ss.rangeCount>0?Cr=Ss.getRangeAt(0):Cr=Zs.createRange(),Cr=T_(h,[Cr])[0])}catch{}if(Cr||(Cr=Zs.createRange()),Tg(Cr.startContainer)&&Cr.collapsed){const Ss=n.getRoot();Cr.setStart(Ss,0),Cr.setEnd(Ss,0)}return O&&P&&(co(Cr.START_TO_START,Cr,O)===0&&co(Cr.END_TO_END,Cr,O)===0?Cr=P:(O=null,P=null)),Cr},$n=(Cr,co)=>{if(!hG(Cr))return;const Zs=xn();if(Cr=h.dispatch("SetSelectionRange",{range:Cr,forward:co}).range,Zs){P=Cr;try{Zs.removeAllRanges(),Zs.addRange(Cr)}catch{}co===!1&&Zs.extend&&(Zs.collapse(Cr.endContainer,Cr.endOffset),Zs.extend(Cr.startContainer,Cr.startOffset)),O=Zs.rangeCount>0?Zs.getRangeAt(0):null}if(!Cr.collapsed&&Cr.startContainer===Cr.endContainer&&(Zs!=null&&Zs.setBaseAndExtent)&&Cr.endOffset-Cr.startOffset<2&&Cr.startContainer.hasChildNodes()){const ro=Cr.startContainer.childNodes[Cr.startOffset];ro&&ro.nodeName==="IMG"&&(Zs.setBaseAndExtent(Cr.startContainer,Cr.startOffset,Cr.endContainer,Cr.endOffset),(Zs.anchorNode!==Cr.startContainer||Zs.focusNode!==Cr.endContainer)&&Zs.setBaseAndExtent(ro,0,ro,1))}h.dispatch("AfterSetSelectionRange",{range:Cr,forward:co})},rr=Cr=>(_e(n.getOuterHTML(Cr)),Cr),gr=()=>C9(h.getBody(),bn()),Qr=(Cr,co)=>cW(n,bn(),Cr,co),zn=()=>{const Cr=xn(),co=Cr==null?void 0:Cr.anchorNode,Zs=Cr==null?void 0:Cr.focusNode;if(!Cr||!co||!Zs||Gu(co)||Gu(Zs))return!0;const Ss=n.createRng(),ro=n.createRng();try{Ss.setStart(co,Cr.anchorOffset),Ss.collapse(!0),ro.setStart(Zs,Cr.focusOffset),ro.collapse(!0)}catch{return!0}return Ss.compareBoundaryPoints(Ss.START_TO_START,ro)<=0},hi={dom:n,win:s,serializer:l,editor:h,expand:(Cr={type:"word"})=>$n(Ot(n).expand(bn(),Cr)),collapse:cn,setCursorLocation:J,getContent:he,setContent:_e,getBookmark:ot,moveToBookmark:Et,select:Vt,isCollapsed:kt,isEditable:It,isForward:zn,setNode:rr,getNode:gr,getSel:xn,setRng:$n,getRng:bn,getStart:Ge,getEnd:qe,getSelectedBlocks:Qr,normalize:()=>{const Cr=bn(),co=xn();if(!hv(co)&&Ix(h)){const Zs=Me(n,Cr);return Zs.each(Ss=>{$n(Ss,zn())}),Zs.getOr(Cr)}return Cr},selectorChanged:(Cr,co)=>(Z(Cr,co),hi),selectorChangedWithUnbind:Z,getScrollContainer:()=>{let Cr,co=n.getRoot();for(;co&&co.nodeName!=="BODY";){if(co.scrollHeight>co.clientHeight){Cr=co;break}co=co.parentNode}return Cr},scrollIntoView:(Cr,co)=>{B(Cr)?cc(h,Cr,co):Ab(h,bn(),co)},placeCaretAt:(Cr,co)=>$n(cf(Cr,co,h.getDoc())),getBoundingClientRect:()=>{const Cr=bn();return Cr.collapsed?Nn.fromRangeStart(Cr).getClientRects()[0]:Cr.getBoundingClientRect()},destroy:()=>{s=O=P=null,ga.destroy()}},uc=mv(hi),ga=u9(hi,h);return hi.bookmarkManager=uc,hi.controlSelection=ga,hi},O2=(n,s,l)=>{n.addAttributeFilter("data-mce-tabindex",(h,O)=>{let P=h.length;for(;P--;){const Z=h[P];Z.attr("tabindex",Z.attr("data-mce-tabindex")),Z.attr(O,null)}}),n.addAttributeFilter("src,href,style",(h,O)=>{const P="data-mce-"+O,Z=s.url_converter,J=s.url_converter_scope;let he=h.length;for(;he--;){const _e=h[he];let Ge=_e.attr(P);Ge!==void 0?(_e.attr(O,Ge.length>0?Ge:null),_e.attr(P,null)):(Ge=_e.attr(O),O==="style"?Ge=l.serializeStyle(l.parseStyle(Ge),_e.name):Z&&(Ge=Z.call(J,Ge,O,_e.name)),_e.attr(O,Ge.length>0?Ge:null))}}),n.addAttributeFilter("class",h=>{let O=h.length;for(;O--;){const P=h[O];let Z=P.attr("class");Z&&(Z=Z.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),P.attr("class",Z.length>0?Z:null))}}),n.addAttributeFilter("data-mce-type",(h,O,P)=>{let Z=h.length;for(;Z--;){const J=h[Z];J.attr("data-mce-type")==="bookmark"&&!P.cleanup&&(G.from(J.firstChild).exists(_e=>{var Ge;return!we((Ge=_e.value)!==null&&Ge!==void 0?Ge:"")})?J.unwrap():J.remove())}}),n.addNodeFilter("noscript",h=>{var O;let P=h.length;for(;P--;){const Z=h[P].firstChild;Z&&(Z.value=Pg.decode((O=Z.value)!==null&&O!==void 0?O:""))}}),n.addNodeFilter("script,style",(h,O)=>{var P;const Z=he=>he.replace(/()/g,` +`).replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"");let J=h.length;for(;J--;){const he=h[J],_e=he.firstChild,Ge=(P=_e==null?void 0:_e.value)!==null&&P!==void 0?P:"";if(O==="script"){const qe=he.attr("type");qe&&he.attr("type",qe==="mce-no/type"?null:qe.replace(/^mce\-/,"")),s.element_format==="xhtml"&&_e&&Ge.length>0&&(_e.value=`// `)}else s.element_format==="xhtml"&&_e&&Ge.length>0&&(_e.value=``)}}),n.addNodeFilter("#comment",h=>{let O=h.length;for(;O--;){const P=h[O],Z=P.value;s.preserve_cdata&&(Z==null?void 0:Z.indexOf("[CDATA["))===0?(P.name="#cdata",P.type=4,P.value=l.decode(Z.replace(/^\[CDATA\[|\]\]$/g,""))):(Z==null?void 0:Z.indexOf("mce:protected "))===0&&(P.name="#text",P.type=3,P.raw=!0,P.value=unescape(Z).substr(14))}}),n.addNodeFilter("xml:namespace,input",(h,O)=>{let P=h.length;for(;P--;){const Z=h[P];Z.type===7?Z.remove():Z.type===1&&O==="input"&&!Z.attr("type")&&Z.attr("type","text")}}),n.addAttributeFilter("data-mce-type",h=>{re(h,O=>{O.attr("data-mce-type")==="format-caret"&&(O.isEmpty(n.schema.getNonEmptyElements())?O.remove():O.unwrap())})}),n.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(h,O)=>{let P=h.length;for(;P--;)h[P].attr(O,null)}),s.remove_trailing_brs&&$8(s,n,n.schema)},i3=n=>{const s=h=>(h==null?void 0:h.name)==="br",l=n.lastChild;if(s(l)){const h=l.prev;s(h)&&(l.remove(),h.remove())}},mN=(n,s,l)=>{let h;const O=n.dom;let P=s.cloneNode(!0);const Z=document.implementation;if(Z.createHTMLDocument){const J=Z.createHTMLDocument("");fr.each(P.nodeName==="BODY"?P.childNodes:[P],he=>{J.body.appendChild(J.importNode(he,!0))}),P.nodeName!=="BODY"?P=J.body.firstChild:P=J.body,h=O.doc,O.doc=J}return pT(n,{...l,node:P}),h&&(O.doc=h),P},gN=(n,s)=>B(n)&&n.hasEventListeners("PreProcess")&&!s.no_events,mG=(n,s,l)=>gN(n,l)?mN(n,s,l):s,pN=(n,s,l)=>{fr.inArray(s,l)===-1&&(n.addAttributeFilter(l,(h,O)=>{let P=h.length;for(;P--;)h[P].attr(O,null)}),s.push(l))},gG=(n,s,l)=>!s.no_events&&n?KE(n,{...s,content:l}).content:l,pG=(n,s,l)=>{const h=Pe(l.getInner?s.innerHTML:n.getOuterHTML(s));return l.selection||Wi(Yt.fromDom(s))?h:fr.trim(h)},vG=(n,s,l)=>{const h=l.selection?{forced_root_block:!1,...l}:l,O=n.parse(s,h);return i3(O),O},yG=(n,s,l)=>s1(n,s).serialize(l),vN=(n,s,l,h,O)=>{const P=yG(s,l,h);return gG(n,O,P)},bG=(n,s)=>{const l=["data-mce-selected"],h={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...n},O=s&&s.dom?s.dom:Da.DOM,P=s&&s.schema?s.schema:Cm(h),Z=Vh(h,P);O2(Z,h,O);const J=(he,_e={})=>{const Ge={format:"html",..._e},qe=mG(s,he,Ge),ot=pG(O,qe,Ge),Et=vG(Z,ot,Ge);return Ge.format==="tree"?Et:vN(s,h,P,Et,Ge)};return{schema:P,addNodeFilter:Z.addNodeFilter,addAttributeFilter:Z.addAttributeFilter,serialize:J,addRules:P.addValidElements,setRules:P.setValidElements,addTempAttr:ee(pN,Z,l),getTempAttrs:ae(l),getNodeFilters:Z.getNodeFilters,getAttributeFilters:Z.getAttributeFilters,removeNodeFilter:Z.removeNodeFilter,removeAttributeFilter:Z.removeAttributeFilter}},yN=(n,s)=>{const l=bG(n,s);return{schema:l.schema,addNodeFilter:l.addNodeFilter,addAttributeFilter:l.addAttributeFilter,serialize:l.serialize,addRules:l.addRules,setRules:l.setRules,addTempAttr:l.addTempAttr,getTempAttrs:l.getTempAttrs,getNodeFilters:l.getNodeFilters,getAttributeFilters:l.getAttributeFilters,removeNodeFilter:l.removeNodeFilter,removeAttributeFilter:l.removeAttributeFilter}},l3="html",bN=(n,s)=>({...n,format:s,get:!0,getInner:!0}),ON=(n,s={})=>{const l=s.format?s.format:l3,h=bN(s,l);return u1(n,h).fold(q,O=>{const P=eG(n,O);return X8(n,P,O)})},OG="html",xG=(n,s)=>({format:OG,...n,set:!0,content:s}),b6=(n,s,l={})=>{const h=xG(l,s);return G8(n,h).map(O=>{const P=tG(n,O.content,O);return T5(n,P.html,O),P.content}).getOr(s)},xN="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),SG="template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),wG="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),SN=[{name:"template",replacedWith:"Advanced Template"},{name:"rtc"}],wN=(n,s)=>{const l=se(s,h=>it(n,h));return je(l)},Vle=n=>{const s=wN(n,xN),l=n.forced_root_block;return(l===!1||l==="")&&s.push("forced_root_block (false only)"),je(s)},Um=n=>wN(n,SG),L5=(n,s)=>{const l=fr.makeMap(n.plugins," "),O=se(s,P=>it(l,P));return je(O)},TG=n=>L5(n,wG),CG=n=>L5(n,SN.map(s=>s.name)),kG=(n,s)=>{const l=Vle(n),h=TG(s),O=h.length>0,P=l.length>0,Z=s.theme==="mobile";if(O||P||Z){const J=` +- `,he=Z?` + +Themes:${J}mobile`:"",_e=O?` + +Plugins:${J}${h.join(J)}`:"",Ge=P?` + +Options:${J}${l.join(J)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 6.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/6/migration-from-5x/ for more information."+he+_e+Ge)}},AG=n=>le(SN,s=>s.name===n).fold(()=>n,s=>s.replacedWith?`${n}, replaced by ${s.replacedWith}`:n),la=(n,s)=>{const l=Um(n),h=CG(s),O=h.length>0,P=l.length>0;if(O||P){const Z=` +- `,J=O?` + +Plugins:${Z}${h.map(AG).join(Z)}`:"",he=P?` + +Options:${Z}${l.join(Z)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+J+he)}},zle=(n,s)=>{kG(n,s),la(n,s)},I5=Da.DOM,PG=n=>{I5.setStyle(n.id,"display",n.orgDisplay)},Ga=n=>G.from(n).each(s=>s.destroy()),MG=n=>{const s=n;s.contentAreaContainer=s.formElement=s.container=s.editorContainer=null,s.bodyElement=s.contentDocument=s.contentWindow=null,s.iframeElement=s.targetElm=null;const l=n.selection;if(l){const h=l.dom;s.selection=l.win=l.dom=h.doc=null}},c3=n=>{const s=n.formElement;s&&(s._mceOldSubmit&&(s.submit=s._mceOldSubmit,delete s._mceOldSubmit),I5.unbind(s,"submit reset",n.formEventDelegate))},EG=n=>{if(!n.removed){const{_selectionOverrides:s,editorUpload:l}=n,h=n.getBody(),O=n.getElement();h&&n.save({is_removing:!0}),n.removed=!0,n.unbindAllNativeEvents(),n.hasHiddenInput&&B(O==null?void 0:O.nextSibling)&&I5.remove(O.nextSibling),K0(n),n.editorManager.remove(n),!n.inline&&h&&PG(n),J0(n),I5.remove(n.getContainer()),Ga(s),Ga(l),n.destroy()}},_G=(n,s)=>{const{selection:l,dom:h}=n;if(!n.destroyed){if(!s&&!n.removed){n.remove();return}s||(n.editorManager.off("beforeunload",n._beforeUnload),n.theme&&n.theme.destroy&&n.theme.destroy(),Ga(l),Ga(h)),c3(n),MG(n),n.destroyed=!0}},u3=(()=>{const n={};return{add:(O,P)=>{n[O]=P},get:O=>n[O]?n[O]:{icons:{}},has:O=>it(n,O)}})(),eh=Pc.ModelManager,df=(n,s)=>s.dom[n],x2=(n,s)=>parseInt(wi(s,n),10),h1=ee(df,"clientWidth"),ap=ee(df,"clientHeight"),f3=ee(x2,"margin-top"),O6=ee(x2,"margin-left"),x6=n=>n.dom.getBoundingClientRect(),TN=(n,s,l)=>{const h=h1(n),O=ap(n);return s>=0&&l>=0&&s<=h&&l<=O},CN=(n,s,l,h)=>{const O=x6(s),P=n?O.left+s.dom.clientLeft+O6(s):0,Z=n?O.top+s.dom.clientTop+f3(s):0,J=l-P,he=h-Z;return{x:J,y:he}},RG=(n,s,l)=>{const h=Yt.fromDom(n.getBody()),O=n.inline?h:dy(h),P=CN(n.inline,O,s,l);return TN(O,P.x,P.y)},DG=n=>G.from(n).map(Yt.fromDom),kN=n=>{const s=n.inline?n.getBody():n.getContentAreaContainer();return DG(s).map(vh).getOr(!1)};var AN=()=>{const n=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:n,close:n,getArgs:n}};const S6=n=>{const s=[],l=()=>{const ot=n.theme;return ot&&ot.getNotificationManagerImpl?ot.getNotificationManagerImpl():AN()},h=()=>G.from(s[0]),O=(ot,Et)=>ot.type===Et.type&&ot.text===Et.text&&!ot.progressBar&&!ot.timeout&&!Et.progressBar&&!Et.timeout,P=()=>{re(s,ot=>{ot.reposition()})},Z=ot=>{s.push(ot)},J=ot=>{Ce(s,Et=>Et===ot).each(Et=>{s.splice(Et,1)})},he=(ot,Et=!0)=>n.removed||!kN(n)?{}:(Et&&n.dispatch("BeforeOpenNotification",{notification:ot}),le(s,Vt=>O(l().getArgs(Vt),ot)).getOrThunk(()=>{n.editorManager.setActive(n);const Vt=l().open(ot,()=>{J(Vt),P(),x9(n)&&h().fold(()=>n.focus(),kt=>AA(Yt.fromDom(kt.getEl())))});return Z(Vt),P(),n.dispatch("OpenNotification",{notification:{...Vt}}),Vt})),_e=()=>{h().each(ot=>{l().close(ot),J(ot),P()})},Ge=ae(s);return(ot=>{ot.on("SkinLoaded",()=>{const Et=dE(ot);Et&&he({text:Et,type:"warning",timeout:0},!1),P()}),ot.on("show ResizeEditor ResizeWindow NodeChange",()=>{requestAnimationFrame(P)}),ot.on("remove",()=>{re(s.slice(),Et=>{l().close(Et)})})})(n),{open:he,close:_e,getNotifications:Ge}},Fb=Pc.PluginManager,kv=Pc.ThemeManager;var Hle=()=>{const n=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:n,openUrl:n,alert:n,confirm:n,close:n}};const PN=n=>{let s=[];const l=()=>{const kt=n.theme;return kt&&kt.getWindowManagerImpl?kt.getWindowManagerImpl():Hle()},h=(kt,It)=>(...cn)=>It?It.apply(kt,cn):void 0,O=kt=>{n.dispatch("OpenWindow",{dialog:kt})},P=kt=>{n.dispatch("CloseWindow",{dialog:kt})},Z=kt=>{s.push(kt),O(kt)},J=kt=>{P(kt),s=se(s,It=>It!==kt),s.length===0&&n.focus()},he=()=>G.from(s[s.length-1]),_e=kt=>{n.editorManager.setActive(n),Kx(n),n.ui.show();const It=kt();return Z(It),It},Ge=(kt,It)=>_e(()=>l().open(kt,It,J)),qe=kt=>_e(()=>l().openUrl(kt,J)),ot=(kt,It,cn)=>{const xn=l();xn.alert(kt,h(cn||xn,It))},Et=(kt,It,cn)=>{const xn=l();xn.confirm(kt,h(cn||xn,It))},Vt=()=>{he().each(kt=>{l().close(kt),J(kt)})};return n.on("remove",()=>{re(s,kt=>{l().close(kt)})}),{open:Ge,openUrl:qe,alert:ot,confirm:Et,close:Vt}},$G=(n,s)=>{n.notificationManager.open({type:"error",text:s})},N5=(n,s)=>{n._skinLoaded?$G(n,s):n.on("SkinLoaded",()=>{$G(n,s)})},LG=(n,s)=>{N5(n,sd.translate(["Failed to upload image: {0}",s]))},gd=(n,s,l)=>{_u(n,s,{message:l}),console.error(l)},B5=(n,s,l)=>l?`Failed to load ${n}: ${l} from url ${s}`:`Failed to load ${n} url: ${s}`,Ule=(n,s,l)=>{gd(n,"PluginLoadError",B5("plugin",s,l))},IG=(n,s,l)=>{gd(n,"IconsLoadError",B5("icons",s,l))},d3=(n,s,l)=>{gd(n,"LanguageLoadError",B5("language",s,l))},NG=(n,s,l)=>{gd(n,"ThemeLoadError",B5("theme",s,l))},MN=(n,s,l)=>{gd(n,"ModelLoadError",B5("model",s,l))},EN=(n,s,l)=>{const h=sd.translate(["Failed to initialize plugin: {0}",s]);_u(n,"PluginLoadError",{message:h}),h3(h,l),N5(n,h)},h3=(n,...s)=>{const l=window.console;l&&(l.error?l.error(n,...s):l.log(n,...s))},BG=n=>/^[a-z0-9\-]+$/i.test(n),w6=n=>"content/"+n+"/content.css",m1=n=>tinymce.Resource.has(w6(n)),QG=n=>_N(n,$w(n)),FG=n=>_N(n,Ek(n)),_N=(n,s)=>{const l=n.editorManager.baseURL+"/skins/content",O=`content${n.editorManager.suffix}.css`;return Ie(s,P=>m1(P)?P:BG(P)&&!n.inline?`${l}/${P}/${O}`:n.documentBaseURI.toAbsolute(P))},VG=n=>{n.contentCSS=n.contentCSS.concat(QG(n),FG(n))},zG=n=>n?tt(n.getElementsByTagName("img")):[],ZG=(n,s)=>{const l={};return{findAll:(O,P=pe)=>{const Z=se(zG(O),he=>{const _e=he.src;return he.hasAttribute("data-mce-bogus")||he.hasAttribute("data-mce-placeholder")||!_e||_e===Dr.transparentSrc?!1:Sr(_e,"blob:")?!n.isUploaded(_e)&&P(he):Sr(_e,"data:")?P(he):!1}),J=Ie(Z,he=>{const _e=he.src;if(it(l,_e))return l[_e].then(Ge=>M(Ge)?Ge:{image:he,blobInfo:Ge.blobInfo});{const Ge=rX(s,_e).then(qe=>(delete l[_e],{image:he,blobInfo:qe})).catch(qe=>(delete l[_e],qe));return l[_e]=Ge,Ge}});return Promise.all(J)}}},RN=()=>{let l={};const h=(ot,Et)=>({status:ot,resultUri:Et}),O=ot=>ot in l;return{hasBlobUri:O,getResultUri:ot=>{const Et=l[ot];return Et?Et.resultUri:null},isPending:ot=>O(ot)?l[ot].status===1:!1,isUploaded:ot=>O(ot)?l[ot].status===2:!1,markPending:ot=>{l[ot]=h(1,null)},markUploaded:(ot,Et)=>{l[ot]=h(2,Et)},removeFailed:ot=>{delete l[ot]},destroy:()=>{l={}}}};let HG=0;const UG=()=>{const n=()=>Math.round(Math.random()*4294967295).toString(36);return"s"+new Date().getTime().toString(36)+n()+n()+n()},WG=n=>n+HG+++UG(),YG=()=>{let n=[];const s=qe=>({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"})[qe.toLowerCase()]||"dat",l=(qe,ot,Et,Vt,kt)=>{if(M(qe))return h({id:qe,name:Vt,filename:kt,blob:ot,base64:Et});if(I(qe))return h(qe);throw new Error("Unknown input type")},h=qe=>{if(!qe.blob||!qe.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const ot=qe.id||WG("blobid"),Et=qe.name||ot,Vt=qe.blob;return{id:ae(ot),name:ae(Et),filename:ae(qe.filename||Et+"."+s(Vt.type)),blob:ae(Vt),base64:ae(qe.base64),blobUri:ae(qe.blobUri||URL.createObjectURL(Vt)),uri:ae(qe.uri)}},O=qe=>{Z(qe.id())||n.push(qe)},P=qe=>le(n,qe).getOrUndefined(),Z=qe=>P(ot=>ot.id()===qe);return{create:l,add:O,get:Z,getByUri:qe=>P(ot=>ot.blobUri()===qe),getByData:(qe,ot)=>P(Et=>Et.base64()===qe&&Et.blob().type===ot),findFirst:P,removeByUri:qe=>{n=se(n,ot=>ot.blobUri()===qe?(URL.revokeObjectURL(ot.blobUri()),!1):!0)},destroy:()=>{re(n,qe=>{URL.revokeObjectURL(qe.blobUri())}),n=[]}}},Wle=(n,s)=>{const l={},h=(kt,It)=>kt?kt.replace(/\/$/,"")+"/"+It.replace(/^\//,""):It,O=(kt,It)=>new Promise((cn,xn)=>{const bn=new XMLHttpRequest;bn.open("POST",s.url),bn.withCredentials=s.credentials,bn.upload.onprogress=rr=>{It(rr.loaded/rr.total*100)},bn.onerror=()=>{xn("Image upload failed due to a XHR Transport error. Code: "+bn.status)},bn.onload=()=>{if(bn.status<200||bn.status>=300){xn("HTTP Error: "+bn.status);return}const rr=JSON.parse(bn.responseText);if(!rr||!M(rr.location)){xn("Invalid JSON: "+bn.responseText);return}cn(h(s.basePath,rr.location))};const $n=new FormData;$n.append("file",kt.blob(),kt.filename()),bn.send($n)}),P=E(s.handler)?s.handler:O,Z=()=>new Promise(kt=>{kt([])}),J=(kt,It)=>({url:It,blobInfo:kt,status:!0}),he=(kt,It)=>({url:"",blobInfo:kt,status:!1,error:It}),_e=(kt,It)=>{fr.each(l[kt],cn=>{cn(It)}),delete l[kt]},Ge=(kt,It,cn)=>(n.markPending(kt.blobUri()),new Promise(xn=>{let bn,$n;try{const rr=()=>{bn&&(bn.close(),$n=ie)},gr=zn=>{rr(),n.markUploaded(kt.blobUri(),zn),_e(kt.blobUri(),J(kt,zn)),xn(J(kt,zn))},Qr=zn=>{rr(),n.removeFailed(kt.blobUri()),_e(kt.blobUri(),he(kt,zn)),xn(he(kt,zn))};$n=zn=>{zn<0||zn>100||G.from(bn).orThunk(()=>G.from(cn).map(Be)).each(Bn=>{bn=Bn,Bn.progressBar.value(zn)})},It(kt,$n).then(gr,zn=>{Qr(M(zn)?{message:zn}:zn)})}catch(rr){xn(he(kt,rr))}})),qe=kt=>kt===O,ot=kt=>{const It=kt.blobUri();return new Promise(cn=>{l[It]=l[It]||[],l[It].push(cn)})},Et=(kt,It)=>(kt=fr.grep(kt,cn=>!n.isUploaded(cn.blobUri())),Promise.all(fr.map(kt,cn=>n.isPending(cn.blobUri())?ot(cn):Ge(cn,P,It))));return{upload:(kt,It)=>!s.url&&qe(P)?Z():Et(kt,It)}},S2=n=>()=>n.notificationManager.open({text:n.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),DN=(n,s)=>Wle(s,{url:iE(n),basePath:lE(n),credentials:_w(n),handler:cE(n)}),T6=n=>{const s=RN(),l=DN(n,s);return{upload:(h,O=!0)=>l.upload(h,O?S2(n):void 0)}},XG=(n,s)=>n.dom.isEmpty(s.dom)&&B(n.schema.getTextBlockElements()[Vs(s)]),GG=n=>s=>{XG(n,s)&&Ci(s,Yt.fromHtml('
    '))},jG=n=>{const s=YG();let l,h;const O=RN(),P=[],Z=bn=>$n=>n.selection?bn($n):[],J=bn=>bn+(bn.indexOf("?")===-1?"?":"&")+new Date().getTime(),he=(bn,$n,rr)=>{let gr=0;do gr=bn.indexOf($n,gr),gr!==-1&&(bn=bn.substring(0,gr)+rr+bn.substr(gr+$n.length),gr+=rr.length-$n.length+1);while(gr!==-1);return bn},_e=(bn,$n,rr)=>{const gr=`src="${rr}"${rr===Dr.transparentSrc?' data-mce-placeholder="1"':""}`;return bn=he(bn,`src="${$n}"`,gr),bn=he(bn,'data-mce-src="'+$n+'"','data-mce-src="'+rr+'"'),bn},Ge=(bn,$n)=>{re(n.undoManager.data,rr=>{rr.type==="fragmented"?rr.fragments=Ie(rr.fragments,gr=>_e(gr,bn,$n)):rr.content=_e(rr.content,bn,$n)})},qe=(bn,$n)=>{const rr=n.convertURL($n,"src");Ge(bn.src,$n),Su(Yt.fromDom(bn),{src:Xy(n)?J($n):$n,"data-mce-src":rr})},ot=()=>(l||(l=DN(n,O)),It().then(Z(bn=>{const $n=Ie(bn,rr=>rr.blobInfo);return l.upload($n,S2(n)).then(Z(rr=>{const gr=[];let Qr=!1;const zn=Ie(rr,(Bn,tr)=>{const{blobInfo:eo,image:po}=bn[tr];let ls=!1;return Bn.status&&Mk(n)?(Bn.url&&!sr(po.src,Bn.url)&&(Qr=!0),s.removeByUri(po.src),Cv(n)||qe(po,Bn.url)):Bn.error&&(Bn.error.remove&&(Ge(po.src,Dr.transparentSrc),gr.push(po),ls=!0),LG(n,Bn.error.message)),{element:po,status:Bn.status,uploadUri:Bn.url,blobInfo:eo,removed:ls}});return gr.length>0&&!Cv(n)?n.undoManager.transact(()=>{re(Wp(gr),Bn=>{const tr=ru(Bn);Ks(Bn),tr.each(GG(n)),s.removeByUri(Bn.dom.src)})}):Qr&&n.undoManager.dispatchChange(),zn}))}))),Et=()=>Pk(n)?ot():Promise.resolve([]),Vt=bn=>Xe(P,$n=>$n(bn)),kt=bn=>{P.push(bn)},It=()=>(h||(h=ZG(O,s)),h.findAll(n.getBody(),Vt).then(Z(bn=>{const $n=se(bn,rr=>M(rr)?(N5(n,rr),!1):rr.uriType!=="blob");return Cv(n)||re($n,rr=>{Ge(rr.image.src,rr.blobInfo.blobUri()),rr.image.src=rr.blobInfo.blobUri(),rr.image.removeAttribute("data-mce-src")}),$n}))),cn=()=>{s.destroy(),O.destroy(),h=l=null},xn=bn=>bn.replace(/src="(blob:[^"]+)"/g,($n,rr)=>{const gr=O.getResultUri(rr);if(gr)return'src="'+gr+'"';let Qr=s.getByUri(rr);return Qr||(Qr=oe(n.editorManager.get(),(zn,Bn)=>zn||Bn.editorUpload&&Bn.editorUpload.blobCache.getByUri(rr),void 0)),Qr?'src="data:'+Qr.blob().type+";base64,"+Qr.base64()+'"':$n});return n.on("SetContent",()=>{Pk(n)?Et():It()}),n.on("RawSaveContent",bn=>{bn.content=xn(bn.content)}),n.on("GetContent",bn=>{bn.source_view||bn.format==="raw"||bn.format==="tree"||(bn.content=xn(bn.content))}),n.on("PostRender",()=>{n.parser.addNodeFilter("img",bn=>{re(bn,$n=>{const rr=$n.attr("src");if(!rr||s.getByUri(rr))return;const gr=O.getResultUri(rr);gr&&$n.attr("src",gr)})})}),{blobCache:s,addFilter:kt,uploadImages:ot,uploadImagesAuto:Et,scanForImages:It,destroy:cn}},qG=n=>{const s=n.dom,l=n.schema.type,h={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:O=>{s.setStyle(O,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:O=>{s.setStyle(O,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const O={inline:"span",styles:{textDecoration:"line-through"},exact:!0},P={inline:"strike",remove:"all",preserve_attributes:["class","style"]},Z={inline:"s",remove:"all",preserve_attributes:["class","style"]};return l!=="html4"?[Z,O,P]:[O,Z,P]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(O,P,Z)=>Xr(O)&&O.hasAttribute("href"),onformat:(O,P,Z)=>{fr.each(Z,(J,he)=>{s.setAttrib(O,he,J)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":O=>{var P;return(P=O==null?void 0:O.customValue)!==null&&P!==void 0?P:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return fr.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),O=>{h[O]={block:O,remove:"all"}}),h},g1={remove_similar:!0,inherit:!1},zh={selector:"td,th",...g1},Q5={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...zh},tablecellverticalalign:{styles:{"vertical-align":"%value"},...zh},tablecellbordercolor:{styles:{borderColor:"%value"},...zh},tablecellclass:{classes:["%value"],...zh},tableclass:{selector:"table",classes:["%value"],...g1},tablecellborderstyle:{styles:{borderStyle:"%value"},...zh},tablecellborderwidth:{styles:{borderWidth:"%value"},...zh}},F5=ae(Q5),Vb=n=>{const s={},l=Z=>B(Z)?s[Z]:s,h=Z=>it(s,Z),O=(Z,J)=>{Z&&(M(Z)?(N(J)||(J=[J]),re(J,he=>{U(he.deep)&&(he.deep=!jl(he)),U(he.split)&&(he.split=!jl(he)||Xi(he)),U(he.remove)&&jl(he)&&!Xi(he)&&(he.remove="none"),jl(he)&&Xi(he)&&(he.mixed=!0,he.block_expand=!0),M(he.classes)&&(he.classes=he.classes.split(/\s+/))}),s[Z]=J):Bt(Z,(he,_e)=>{O(_e,he)}))},P=Z=>(Z&&s[Z]&&delete s[Z],s);return O(qG(n)),O(F5()),O(mE(n)),{get:l,has:h,register:O,unregister:P}},ip=fr.each,hf=Da.DOM,w2=n=>B(n)&&I(n),C6=(n,s)=>{const l=s&&s.schema||Cm({}),h=(he,_e)=>{_e.classes.length>0&&hf.addClass(he,_e.classes.join(" ")),hf.setAttribs(he,_e.attrs)},O=he=>{const _e=M(he)?{name:he,classes:[],attrs:{}}:he,Ge=hf.create(_e.name);return h(Ge,_e),Ge},P=(he,_e)=>{const Ge=l.getElementRule(he.nodeName.toLowerCase()),qe=Ge==null?void 0:Ge.parentsRequired;return qe&&qe.length?_e&&Ze(qe,_e)?_e:qe[0]:!1},Z=(he,_e,Ge)=>{let qe;const ot=_e[0],Et=w2(ot)?ot.name:void 0,Vt=P(he,Et);if(Vt)Et===Vt?(qe=ot,_e=_e.slice(1)):qe=Vt;else if(ot)qe=ot,_e=_e.slice(1);else if(!Ge)return he;const kt=qe?O(qe):hf.create("div");kt.appendChild(he),Ge&&fr.each(Ge,cn=>{const xn=O(cn);kt.insertBefore(xn,he)});const It=w2(qe)?qe.siblings:void 0;return Z(kt,_e,It)},J=hf.create("div");if(n.length>0){const he=n[0],_e=O(he),Ge=w2(he)?he.siblings:void 0;J.appendChild(Z(_e,n.slice(1),Ge))}return J},k6=n=>{n=fr.trim(n);let s="div";const l={name:s,classes:[],attrs:{},selector:n};return n!=="*"&&(s=n.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(h,O,P,Z,J)=>{switch(O){case"#":l.attrs.id=P;break;case".":l.classes.push(P);break;case":":fr.inArray("checked disabled enabled read-only required".split(" "),P)!==-1&&(l.attrs[P]=P);break}if(Z==="["){const he=J.match(/([\w\-]+)(?:\=\"([^\"]+))?/);he&&(l.attrs[he[1]]=he[2])}return""})),l.name=s||"div",l},A6=n=>M(n)?(n=n.split(/\s*,\s*/)[0],n=n.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),fr.map(n.split(/(?:>|\s+(?![^\[\]]+\]))/),s=>{const l=fr.map(s.split(/(?:~\+|~|\+)/),k6),h=l.pop();return l.length&&(h.siblings=l),h}).reverse()):[],$N=(n,s)=>{let l="",h=Dk(n);if(h==="")return"";const O=ot=>M(ot)?ot.replace(/%(\w+)/g,""):"",P=(ot,Et)=>hf.getStyle(Et??n.getBody(),ot,!0);if(M(s)){const ot=n.formatter.get(s);if(!ot)return"";s=ot[0]}if("preview"in s){const ot=s.preview;if(ot===!1)return"";h=ot||h}let Z=s.block||s.inline||"span",J;const he=A6(s.selector);he.length>0?(he[0].name||(he[0].name=Z),Z=s.selector,J=C6(he,n)):J=C6([Z],n);const _e=hf.select(Z,J)[0]||J.firstChild;ip(s.styles,(ot,Et)=>{const Vt=O(ot);Vt&&hf.setStyle(_e,Et,Vt)}),ip(s.attributes,(ot,Et)=>{const Vt=O(ot);Vt&&hf.setAttrib(_e,Et,Vt)}),ip(s.classes,ot=>{const Et=O(ot);hf.hasClass(_e,Et)||hf.addClass(_e,Et)}),n.dispatch("PreviewFormats"),hf.setStyles(J,{position:"absolute",left:-65535}),n.getBody().appendChild(J);const Ge=P("fontSize"),qe=/px$/.test(Ge)?parseInt(Ge,10):0;return ip(h.split(" "),ot=>{let Et=P(ot,_e);if(!(ot==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(Et)&&(Et=P(ot),d0(Et).toLowerCase()==="#ffffff"))&&!(ot==="color"&&d0(Et).toLowerCase()==="#000000")){if(ot==="font-size"&&/em|%$/.test(Et)){if(qe===0)return;Et=parseFloat(Et)/(/%$/.test(Et)?100:1)*qe+"px"}ot==="border"&&Et&&(l+="padding:0 2px;"),l+=ot+":"+Et+";"}}),n.dispatch("AfterPreviewFormats"),hf.remove(J),l},LN=n=>{n.addShortcut("meta+b","","Bold"),n.addShortcut("meta+i","","Italic"),n.addShortcut("meta+u","","Underline");for(let s=1;s<=6;s++)n.addShortcut("access+"+s,"",["FormatBlock",!1,"h"+s]);n.addShortcut("access+7","",["FormatBlock",!1,"p"]),n.addShortcut("access+8","",["FormatBlock",!1,"div"]),n.addShortcut("access+9","",["FormatBlock",!1,"address"])},zb=n=>{const s=Vb(n),l=ni({});return LN(n),DY(n),Cv(n)||UY(l,n),{get:s.get,has:s.has,register:s.register,unregister:s.unregister,apply:(h,O,P)=>{qX(n,h,O,P)},remove:(h,O,P,Z)=>{KX(n,h,O,P,Z)},toggle:(h,O,P)=>{JX(n,h,O,P)},match:(h,O,P,Z)=>lN(n,h,O,P,Z),closest:h=>p6(n,h),matchAll:(h,O)=>cN(n,h,O),matchNode:(h,O,P,Z)=>g6(n,h,O,P,Z),canApply:h=>uN(n,h),formatChanged:(h,O,P,Z)=>Jd(n,l,h,O,P,Z),getCssText:ee($N,n)}},P6=n=>{switch(n.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},IN=(n,s,l)=>{const h=ni(!1),O=he=>{R5(s,!1,l),s.add({},he)};n.on("init",()=>{s.add()}),n.on("BeforeExecCommand",he=>{const _e=he.command;P6(_e)||(nN(s,l),s.beforeChange())}),n.on("ExecCommand",he=>{const _e=he.command;P6(_e)||O(he)}),n.on("ObjectResizeStart cut",()=>{s.beforeChange()}),n.on("SaveContent ObjectResized blur",O),n.on("dragend",O),n.on("keyup",he=>{const _e=he.keyCode;if(he.isDefaultPrevented())return;const Ge=Dr.os.isMacOS()&&he.key==="Meta";(_e>=33&&_e<=36||_e>=37&&_e<=40||_e===45||he.ctrlKey||Ge)&&(O(),n.nodeChanged()),(_e===46||_e===8)&&n.nodeChanged(),h.get()&&s.typing&&!f6(_5(n),s.data[0])&&(n.isDirty()||n.setDirty(!0),n.dispatch("TypingUndo"),h.set(!1),n.nodeChanged())}),n.on("keydown",he=>{const _e=he.keyCode;if(he.isDefaultPrevented())return;if(_e>=33&&_e<=36||_e>=37&&_e<=40||_e===45){s.typing&&O(he);return}const Ge=he.ctrlKey&&!he.altKey||he.metaKey;if((_e<16||_e>20)&&_e!==224&&_e!==91&&!s.typing&&!Ge){s.beforeChange(),R5(s,!0,l),s.add({},he),h.set(!0);return}(Dr.os.isMacOS()?he.metaKey:he.ctrlKey&&!he.altKey)&&s.beforeChange()}),n.on("mousedown",he=>{s.typing&&O(he)});const P=he=>he.inputType==="insertReplacementText",Z=he=>he.inputType==="insertText"&&he.data===null,J=he=>he.inputType==="insertFromPaste"||he.inputType==="insertFromDrop";n.on("input",he=>{he.inputType&&(P(he)||Z(he)||J(he))&&O(he)}),n.on("AddUndo Undo Redo ClearUndos",he=>{he.isDefaultPrevented()||n.nodeChanged()})},NN=n=>{n.addShortcut("meta+z","","Undo"),n.addShortcut("meta+y,meta+shift+z","","Redo")},m3=n=>{const s=_g(),l=ni(0),h=ni(0),O={data:[],typing:!1,beforeChange:()=>{Qle(n,l,s)},add:(P,Z)=>$c(n,O,h,l,s,P,Z),dispatchChange:()=>{n.setDirty(!0);const P=_5(n);P.bookmark=P0(n.selection),n.dispatch("change",{level:P,lastLevel:et(O.data,h.get()).getOrUndefined()})},undo:()=>sN(n,O,l,h),redo:()=>aN(n,h,O.data),clear:()=>{iN(n,O,h)},reset:()=>{YX(n,O)},hasUndo:()=>XX(n,O,h),hasRedo:()=>D5(n,O,h),transact:P=>GX(n,O,l,P),ignore:P=>{m6(n,l,P)},extra:(P,Z)=>{jX(n,O,h,P,Z)}};return Cv(n)||IN(n,O,l),NN(n),O},BN=[9,27,Wr.HOME,Wr.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Wr.DOWN,Wr.UP,Wr.LEFT,Wr.RIGHT].concat(Dr.browser.isFirefox()?[224]:[]),M6="data-mce-placeholder",E6=n=>n.type==="keydown"||n.type==="keyup",_6=n=>{const s=n.keyCode;return s===Wr.BACKSPACE||s===Wr.DELETE},Av=n=>{if(E6(n)){const s=n.keyCode;return!_6(n)&&(Wr.metaKeyPressed(n)||n.altKey||s>=112&&s<=123||Ze(BN,s))}else return!1},p1=n=>E6(n)&&!(_6(n)||n.type==="keyup"&&n.keyCode===229),Zh=(n,s,l)=>{if(ta(Yt.fromDom(s),!1)){const h=s.firstElementChild;return h?n.getStyle(s.firstElementChild,"padding-left")||n.getStyle(s.firstElementChild,"padding-right")?!1:l===h.nodeName.toLowerCase():!0}else return!1},KG=n=>{var s;const l=n.dom,h=Ec(n),O=(s=n9(n))!==null&&s!==void 0?s:"",P=(Z,J)=>{if(Av(Z))return;const he=n.getBody(),_e=p1(Z)?!1:Zh(l,he,h);(l.getAttrib(he,M6)!==""!==_e||J)&&(l.setAttrib(he,M6,_e?O:null),l.setAttrib(he,"aria-placeholder",_e?O:null),e_(n,_e),n.on(_e?"keydown":"keyup",P),n.off(_e?"keyup":"keydown",P))};St(O)&&n.on("init",Z=>{P(Z,!0),n.on("change SetContent ExecCommand",P),n.on("paste",J=>fd.setEditorTimeout(n,()=>P(J)))})},JG=(n,s)=>({block:n,position:s}),ej=(n,s)=>({from:n,to:s}),R6=(n,s)=>{const l=Yt.fromDom(n),h=Yt.fromDom(s.container());return LT(l,h).map(O=>JG(O,s))},tj=n=>!Gs(n.from.block,n.to.block),QN=(n,s)=>wu(s,O=>Hc(O)||Zl(O.dom),O=>Gs(O,n)).filter(kl).getOr(n),nj=(n,s)=>{const l=Yt.fromDom(n);return Gs(QN(l,s.from.block),QN(l,s.to.block))},rj=n=>Os(n.from.block.dom)===!1&&Os(n.to.block.dom)===!1,oj=n=>{const s=l=>Mn(l)||ZO(l.dom);return s(n.from.block)&&s(n.to.block)},sj=(n,s,l)=>aa(l.position.getNode())&&!ta(l.block)?U0(!1,l.block.dom).bind(h=>h.isEqual(l.position)?Rl(s,n,h).bind(O=>R6(n,O)):G.some(l)).getOr(l):l,aj=(n,s,l)=>{const h=R6(n,Nn.fromRangeStart(l)),O=h.bind(P=>Rl(s,n,P.position).bind(Z=>R6(n,Z).map(J=>sj(n,s,J))));return Fa(h,O,ej).filter(P=>tj(P)&&nj(n,P)&&rj(P)&&oj(P))},ij=(n,s,l)=>l.collapsed?aj(n,s,l):G.none(),D6=(n,s)=>{const l=ol(n);return Ce(l,h=>s.isBlock(Vs(h))).fold(ae(l),h=>l.slice(0,h))},V5=(n,s)=>{const l=D6(n,s);return re(l,Ks),l},$6=(n,s)=>{const l=qg(s,n);return le(l.reverse(),h=>ta(h)).each(Ks)},lj=n=>se(my(n),s=>!ta(s)).length===0,cj=(n,s,l,h,O)=>{if(ta(l))return D(l),Xc(l.dom);lj(O)&&ta(s)&&Ui(O,Yt.fromTag("br"));const P=uu(l.dom,Nn.before(O.dom));return re(V5(s,h),Z=>{Ui(O,Z)}),$6(n,s),P},FN=(n,s)=>n.isInline(Vs(s)),VN=(n,s,l,h)=>{if(ta(l)){if(ta(s)){const Z=ue((J=>{const he=(_e,Ge)=>bg(_e).fold(()=>Ge,qe=>FN(h,qe)?he(qe,Ge.concat(Pu(qe))):Ge);return he(J,[])})(l),(J,he)=>(xg(J,he),he),Cc());bh(s),Ci(s,Z)}return Ks(l),Xc(s.dom)}const O=ld(l.dom);return re(V5(s,h),P=>{Ci(l,P)}),$6(n,s),O},L6=(n,s)=>{const l=qg(s,n);return G.from(l[l.length-1])},zN=(n,s)=>tc(s,n)?L6(s,n):G.none(),I6=(n,s)=>{U0(n,s.dom).bind(l=>G.from(l.getNode())).map(Yt.fromDom).filter(ed).each(Ks)},z5=(n,s,l,h)=>(I6(!0,s),I6(!1,l),zN(s,l).fold(ee(VN,n,s,l,h),ee(cj,n,s,l,h))),ZN=(n,s,l,h,O)=>s?z5(n,h,l,O):z5(n,l,h,O),N6=(n,s)=>{const l=Yt.fromDom(n.getBody());return ij(l.dom,s,n.selection.getRng()).map(O=>()=>{ZN(l,s,O.from.block,O.to.block,n.schema).each(P=>{n.selection.setRng(P.toRange())})})},lp=(n,s,l)=>{const h=s.getRng();return Fa(LT(n,Yt.fromDom(h.startContainer)),LT(n,Yt.fromDom(h.endContainer)),(O,P)=>Gs(O,P)?G.none():G.some(()=>{h.deleteContents(),ZN(n,!0,O,P,l).each(Z=>{s.setRng(Z.toRange())})})).getOr(G.none())},th=(n,s)=>{const l=Yt.fromDom(s),h=ee(Gs,n);return ui(l,Hc,h).isSome()},Z5=(n,s)=>th(n,s.startContainer)||th(n,s.endContainer),HN=(n,s)=>{const l=uu(n.dom,Nn.fromRangeStart(s)).isNone(),h=Rc(n.dom,Nn.fromRangeEnd(s)).isNone();return!Z5(n,s)&&l&&h},H5=n=>G.some(()=>{n.setContent(""),n.selection.setCursorLocation()}),UN=n=>{const s=Yt.fromDom(n.getBody()),l=n.selection.getRng();return HN(s,l)?H5(n):lp(s,n.selection,n.schema)},U5=(n,s)=>n.selection.isCollapsed()?G.none():UN(n),cp=(n,s,l,h,O)=>G.from(s._selectionOverrides.showCaret(n,l,h,O)),WN=n=>{const s=n.ownerDocument.createRange();return s.selectNode(n),s},T2=(n,s)=>n.dispatch("BeforeObjectSelected",{target:s}).isDefaultPrevented()?G.none():G.some(WN(s)),YN=(n,s,l)=>{const h=Jw(1,n.getBody(),s),O=Nn.fromRangeStart(h),P=O.getNode();if(Cx(P))return cp(1,n,P,!O.isAtEnd(),!1);const Z=O.getNode(!0);if(Cx(Z))return cp(1,n,Z,!1,!1);const J=Lb(n.dom.getRoot(),O.getNode());return Cx(J)?cp(1,n,J,!1,l):G.none()},C2=(n,s,l)=>s.collapsed?YN(n,s,l).getOr(s):s,B6=n=>bv(n)||MT(n),uj=n=>Vm(n)||Jx(n),fj=(n,s)=>{lr(s)&&s.data.length===0&&n.remove(s)},XN=(n,s,l,h,O,P)=>{cp(h,n,P.getNode(!O),O,!0).each(Z=>{if(s.collapsed){const J=s.cloneRange();O?J.setEnd(Z.startContainer,Z.startOffset):J.setStart(Z.endContainer,Z.endOffset),J.deleteContents()}else s.deleteContents();n.selection.setRng(Z)}),fj(n.dom,l)},dj=(n,s)=>{const l=n.selection.getRng();if(!lr(l.commonAncestorContainer))return G.none();const h=s?Pi.Forwards:Pi.Backwards,O=Ud(n.getBody()),P=ee(Jk,s?O.next:O.prev),Z=s?B6:uj,J=zg(h,n.getBody(),l),he=P(J),_e=he&&Ds(s,he);if(!_e||!eT(J,_e))return G.none();if(Z(_e))return G.some(()=>XN(n,l,J.getNode(),h,s,_e));const Ge=P(_e);return Ge&&Z(Ge)&&eT(_e,Ge)?G.some(()=>XN(n,l,J.getNode(),h,s,Ge)):G.none()},W5=(n,s)=>dj(n,s),Q6=(n,s)=>{const l=n.getBody();return s?Xc(l).filter(bv):ld(l).filter(Vm)},F6=n=>{const s=n.selection.getRng();return!s.collapsed&&(Q6(n,!0).exists(l=>l.isEqual(Nn.fromRangeStart(s)))||Q6(n,!1).exists(l=>l.isEqual(Nn.fromRangeEnd(s))))},V6=n=>B(n)&&(Hc(Yt.fromDom(n))||td(Yt.fromDom(n))),pd=Zd.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),hj=(n,s)=>{const l=s.getNode(!n),h=n?"after":"before";return Xr(l)&&l.getAttribute("data-mce-caret")===h},mj=(n,s,l,h,O)=>{const P=Z=>O.isInline(Z.nodeName.toLowerCase())&&!Hd(l,h,n);return Kk(!s,l).fold(()=>Kk(s,h).fold(ne,P),P)},GN=(n,s,l,h)=>{const O=h.getNode(!s);return LT(Yt.fromDom(n),Yt.fromDom(l.getNode())).map(P=>ta(P)?pd.remove(P.dom):pd.moveToElement(O)).orThunk(()=>G.some(pd.moveToElement(O)))},jN=(n,s,l,h)=>Rl(s,n,l).bind(O=>V6(O.getNode())||mj(n,s,l,O,h)?G.none():s&&Os(O.getNode())||!s&&Os(O.getNode(!0))?GN(n,s,l,O):s&&Vm(l)||!s&&bv(l)?G.some(pd.moveToPosition(O)):G.none()),gj=(n,s)=>Q(s)?G.none():n&&Os(s.nextSibling)?G.some(pd.moveToElement(s.nextSibling)):!n&&Os(s.previousSibling)?G.some(pd.moveToElement(s.previousSibling)):G.none(),pj=(n,s,l)=>l.fold(h=>G.some(pd.remove(h)),h=>G.some(pd.moveToElement(h)),h=>Hd(s,h,n)?G.none():G.some(pd.moveToPosition(h))),Y5=(n,s,l,h)=>hj(s,l)?gj(s,l.getNode(!s)).orThunk(()=>jN(n,s,l,h)):jN(n,s,l,h).bind(O=>pj(n,l,O)),z6=(n,s,l,h)=>{const O=Jw(s?1:-1,n,l),P=Nn.fromRangeStart(O),Z=Yt.fromDom(n);return!s&&Vm(P)?G.some(pd.remove(P.getNode(!0))):s&&bv(P)?G.some(pd.remove(P.getNode())):!s&&bv(P)&&_T(Z,P,h)?FW(Z,P,h).map(J=>pd.remove(J.getNode())):s&&Vm(P)&&ET(Z,P,h)?VW(Z,P,h).map(J=>pd.remove(J.getNode())):Y5(n,s,P,h)},vj=(n,s)=>l=>(n._selectionOverrides.hideFakeCaret(),xv(n,s,Yt.fromDom(l)),!0),yj=(n,s)=>l=>{const h=s?Nn.before(l):Nn.after(l);return n.selection.setRng(h.toRange()),!0},bj=n=>s=>(n.selection.setRng(s.toRange()),!0),qN=(n,s)=>G.from(Lb(n.getBody(),s)),KN=(n,s)=>{const l=n.selection.getNode();return qN(n,l).filter(Os).fold(()=>z6(n.getBody(),s,n.selection.getRng(),n.schema).map(h=>()=>h.fold(vj(n,s),yj(n,s),bj(n))),()=>G.some(ie))},Oj=n=>{re(sl(n,".mce-offscreen-selection"),Ks)},xj=(n,s)=>{const l=n.selection.getNode();return Os(l)&&!jp(l)?qN(n,l.parentNode).filter(Os).fold(()=>G.some(()=>{Oj(Yt.fromDom(n.getBody())),xv(n,s,Yt.fromDom(n.selection.getNode())),UA(n)}),()=>G.some(ie)):F6(n)?G.some(()=>{IT(n,n.selection.getRng(),Yt.fromDom(n.getBody()))}):G.none()},X5=n=>{const s=n.dom,l=n.selection,h=Lb(n.getBody(),l.getNode());if(Zl(h)&&s.isBlock(h)&&s.isEmpty(h)){const O=s.create("br",{"data-mce-bogus":"1"});s.setHTML(h,""),h.appendChild(O),l.setRng(Nn.before(O).toRange())}return!0},Z6=(n,s)=>n.selection.isCollapsed()?KN(n,s):xj(n,s),Sj=(n,s)=>{const l=Nn.fromRangeStart(n.selection.getRng());return Rl(s,n.getBody(),l).filter(h=>s?$W(h):LW(h)).bind(h=>rb(s?0:-1,h)).map(h=>()=>n.selection.select(h))},H6=(n,s)=>n.selection.isCollapsed()?Sj(n,s):G.none(),k2=lr,JN=n=>k2(n)&&n.data[0]===de,eB=n=>k2(n)&&n.data[n.data.length-1]===de,tB=n=>{var s;return((s=n.ownerDocument)!==null&&s!==void 0?s:document).createTextNode(de)},G5=n=>{var s;if(k2(n.previousSibling))return eB(n.previousSibling)||n.previousSibling.appendData(de),n.previousSibling;if(k2(n))return JN(n)||n.insertData(0,de),n;{const l=tB(n);return(s=n.parentNode)===null||s===void 0||s.insertBefore(l,n),l}},j5=n=>{var s,l;if(k2(n.nextSibling))return JN(n.nextSibling)||n.nextSibling.insertData(0,de),n.nextSibling;if(k2(n))return eB(n)||n.appendData(de),n;{const h=tB(n);return n.nextSibling?(s=n.parentNode)===null||s===void 0||s.insertBefore(h,n.nextSibling):(l=n.parentNode)===null||l===void 0||l.appendChild(h),h}},q5=(n,s)=>n?G5(s):j5(s),wj=ee(q5,!0),K5=ee(q5,!1),nB=(n,s)=>lr(n.container())?q5(s,n.container()):q5(s,n.getNode()),rB=(n,s)=>{const l=s.get();return l&&n.container()===l&&vt(l)},U6=(n,s)=>s.fold(l=>{hl(n.get());const h=wj(l);return n.set(h),G.some(Nn(h,h.length-1))},l=>Xc(l).map(h=>{if(rB(h,n)){const O=n.get();return Nn(O,1)}else{hl(n.get());const O=nB(h,!0);return n.set(O),Nn(O,1)}}),l=>ld(l).map(h=>{if(rB(h,n)){const O=n.get();return Nn(O,O.length-1)}else{hl(n.get());const O=nB(h,!1);return n.set(O),Nn(O,O.length-1)}}),l=>{hl(n.get());const h=K5(l);return n.set(h),G.some(Nn(h,1))}),oB=(n,s)=>{for(let l=0;l{const l=_m(s,n);return l||n},Tj=(n,s,l)=>{const h=Db(l),O=sB(s,h.container());return Ih(n,O,h).fold(()=>Rc(O,h).bind(ee(Ih,n,O)).map(P=>Du.before(P)),G.none)},Cj=(n,s)=>fv(n,s)===null,aB=(n,s,l)=>Ih(n,s,l).filter(ee(Cj,s)),kj=(n,s,l)=>{const h=DT(l);return aB(n,s,h).bind(O=>uu(O,h).isNone()?G.some(Du.start(O)):G.none())},Aj=(n,s,l)=>{const h=Db(l);return aB(n,s,h).bind(O=>Rc(O,h).isNone()?G.some(Du.end(O)):G.none())},Yle=(n,s,l)=>{const h=DT(l),O=sB(s,h.container());return Ih(n,O,h).fold(()=>uu(O,h).bind(ee(Ih,n,O)).map(P=>Du.after(P)),G.none)},nh=n=>!oL(J5(n)),Hh=(n,s,l)=>oB([Tj,kj,Aj,Yle],[n,s,l]).filter(nh),J5=n=>n.fold(q,q,q,q),W6=n=>n.fold(ae("before"),ae("start"),ae("end"),ae("after")),e4=n=>n.fold(Du.before,Du.before,Du.after,Du.after),t4=n=>n.fold(Du.start,Du.start,Du.end,Du.end),Pj=(n,s)=>W6(n)===W6(s)&&J5(n)===J5(s),iB=(n,s,l,h,O,P)=>Fa(Ih(s,l,h),Ih(s,l,O),(Z,J)=>Z!==J&&Nh(l,Z,J)?Du.after(n?Z:J):P).getOr(P),Mj=(n,s)=>n.fold(pe,l=>!Pj(l,s)),Ej=(n,s,l,h,O)=>{const P=Ds(n,O);return Rl(n,l,P).map(ee(Ds,n)).fold(()=>h.map(e4),he=>Hh(s,l,he).map(ee(iB,n,s,l,P,he)).filter(ee(Mj,h))).filter(nh)},_j=(n,s)=>n?s.fold(L(G.some,Du.start),G.none,L(G.some,Du.after),G.none):s.fold(G.none,L(G.some,Du.before),G.none,L(G.some,Du.end)),A2=(n,s,l,h)=>{const O=Ds(n,h),P=Hh(s,l,O);return Hh(s,l,O).bind(ee(_j,n)).orThunk(()=>Ej(n,s,l,P,h))},lB=n=>E(n.selection.getSel().modify),Y6=(n,s,l)=>{const h=n?1:-1;return s.setRng(Nn(l.container(),l.offset()+h).toRange()),s.getSel().modify("move",n?"forward":"backward","word"),!0},cB=(n,s)=>{const l=s.selection.getRng(),h=n?Nn.fromRangeEnd(l):Nn.fromRangeStart(l);return lB(s)?n&&gn(h)?Y6(!0,s.selection,h):!n&&An(h)?Y6(!1,s.selection,h):!1:!1};var Uh;(function(n){n[n.Br=0]="Br",n[n.Block=1]="Block",n[n.Wrap=2]="Wrap",n[n.Eol=3]="Eol"})(Uh||(Uh={}));const n4=(n,s)=>n===Pi.Backwards?ct(s):s,Rj=(n,s,l)=>n===Pi.Forwards?s.next(l):s.prev(l),Dj=(n,s,l,h)=>aa(h.getNode(s===Pi.Forwards))?Uh.Br:Hd(l,h)===!1?Uh.Block:Uh.Wrap,$j=(n,s,l,h)=>{const O=Ud(l);let P=h;const Z=[];for(;P;){const J=Rj(s,O,P);if(!J)break;if(aa(J.getNode(!1)))return s===Pi.Forwards?{positions:n4(s,Z).concat([J]),breakType:Uh.Br,breakAt:G.some(J)}:{positions:n4(s,Z),breakType:Uh.Br,breakAt:G.some(J)};if(!J.isVisible()){P=J;continue}if(n(P,J)){const he=Dj(l,s,P,J);return{positions:n4(s,Z),breakType:he,breakAt:G.some(J)}}Z.push(J),P=J}return{positions:n4(s,Z),breakType:Uh.Eol,breakAt:G.none()}},Lj=(n,s,l,h)=>s(l,h).breakAt.map(O=>{const P=s(l,O).positions;return n===Pi.Backwards?P.concat(O):[O].concat(P)}).getOr([]),uB=(n,s)=>oe(n,(l,h)=>l.fold(()=>G.some(h),O=>Fa(yt(O.getClientRects()),yt(h.getClientRects()),(P,Z)=>{const J=Math.abs(s-P.left);return Math.abs(s-Z.left)<=J?h:O}).or(l)),G.none()),Ff=(n,s)=>yt(s.getClientRects()).bind(l=>uB(n,l.left)),g3=ee($j,Nn.isAbove,-1),p3=ee($j,Nn.isBelow,1),v1=ee(Lj,-1,g3),X6=ee(Lj,1,p3),fB=(n,s)=>g3(n,s).breakAt.isNone(),v3=(n,s)=>p3(n,s).breakAt.isNone(),Ij=n=>Xc(n).map(s=>[s].concat(p3(n,s).positions)).getOr([]),Nj=n=>ld(n).map(s=>g3(n,s).positions.concat(s)).getOr([]),Bj=(n,s)=>Ff(v1(n,s),s),Qj=(n,s)=>Ff(X6(n,s),s),Fj=Os,dB=(n,s)=>Math.abs(n.left-s),up=(n,s)=>Math.abs(n.right-s),Vj=n=>ut(n,"node"),hB=(n,s)=>dn(n,(l,h)=>{const O=Math.min(dB(l,s),up(l,s)),P=Math.min(dB(h,s),up(h,s));return P===O&&Vj(h)&&Fj(h.node)||P{const s=l=>Ie(l,h=>{const O=ov(h);return O.node=n,O});if(Xr(n))return s(n.getClientRects());if(lr(n)){const l=n.ownerDocument.createRange();return l.setStart(n,0),l.setEnd(n,n.data.length),s(l.getClientRects())}else return[]},mB=n=>ze(n,zj);var y3;(function(n){n[n.Up=-1]="Up",n[n.Down=1]="Down"})(y3||(y3={}));const G6=(n,s,l,h)=>{let O=h;for(;O=Q0(O,n,ms,s);)if(l(O))return},r4=(n,s,l,h,O,P)=>{let Z=0;const J=[],he=qe=>{let ot=mB([qe]);n===-1&&(ot=ot.reverse());for(let Et=0;Et0&&s(Vt,Wt(J))&&Z++,Vt.line=Z,O(Vt))return!0;J.push(Vt)}}return!1},_e=Wt(P.getClientRects());if(!_e)return J;const Ge=P.getNode();return Ge&&(he(Ge),G6(n,h,he,Ge)),J},j6=(n,s)=>s.line>n,gB=(n,s)=>s.line===n,pB=ee(r4,y3.Up,Dg,av),vB=ee(r4,y3.Down,av,Dg),yB=n=>Wt(n.getClientRects()),b3=(n,s,l,h)=>{const O=Ud(s);let P,Z,J,he;const _e=[];let Ge=0;n===1?(P=O.next,Z=av,J=Dg,he=Nn.after(h)):(P=O.prev,Z=Dg,J=av,he=Nn.before(h));const qe=yB(he);do{if(!he.isVisible())continue;const ot=yB(he);if(J(ot,qe))continue;_e.length>0&&Z(ot,Wt(_e))&&Ge++;const Et=ov(ot);if(Et.position=he,Et.line=Ge,l(Et))return _e;_e.push(Et)}while(he=P(he));return _e},O3=n=>s=>j6(n,s),o4=n=>s=>gB(n,s),fp=(n,s)=>{n.selection.setRng(s),Ab(n,n.selection.getRng())},s4=(n,s,l)=>G.some(C2(n,s,l)),q6=(n,s,l,h,O,P)=>{const Z=s===Pi.Forwards,J=Ud(n.getBody()),he=ee(Jk,Z?J.next:J.prev),_e=Z?h:O;if(!l.collapsed){const Vt=uw(l);if(P(Vt))return cp(s,n,Vt,s===Pi.Backwards,!1);if(F6(n)){const kt=l.cloneRange();return kt.collapse(s===Pi.Backwards),G.from(kt)}}const Ge=zg(s,n.getBody(),l);if(_e(Ge))return T2(n,Ge.getNode(!Z));let qe=he(Ge);const ot=yn(l);if(qe)qe=Ds(Z,qe);else return ot?G.some(l):G.none();if(_e(qe))return cp(s,n,qe.getNode(!Z),Z,!1);const Et=he(qe);return Et&&_e(Et)&&eT(qe,Et)?cp(s,n,Et.getNode(!Z),Z,!1):ot?s4(n,qe.toRange(),!1):G.none()},x3=(n,s,l,h,O,P)=>{const Z=zg(s,n.getBody(),l),J=Wt(Z.getClientRects()),he=s===y3.Down,_e=n.getBody();if(!J)return G.none();if(F6(n)){const It=he?Nn.fromRangeEnd(l):Nn.fromRangeStart(l);return(he?Qj:Bj)(_e,It).orThunk(()=>G.from(It)).map(xn=>xn.toRange())}const qe=(he?vB:pB)(_e,O3(1),Z),ot=se(qe,o4(1)),Et=J.left,Vt=hB(ot,Et);if(Vt&&P(Vt.node)){const It=Math.abs(Et-Vt.left),cn=Math.abs(Et-Vt.right);return cp(s,n,Vt.node,ItC2(n,It.toRange(),!1)):G.none()},S3=(n,s)=>{const l=n.selection.getRng(),h=s?Nn.fromRangeEnd(l):Nn.fromRangeStart(l),O=qw(h.container(),n.getBody());if(s){const P=p3(O,h);return ft(P.positions)}else{const P=g3(O,h);return yt(P.positions)}},P2=(n,s,l)=>S3(n,s).filter(l).exists(h=>(n.selection.setRng(h.toRange()),!0)),a4=(n,s)=>{const l=n.dom.createRng();l.setStart(s.container(),s.offset()),l.setEnd(s.container(),s.offset()),n.selection.setRng(l)},K6=(n,s)=>{n?s.setAttribute("data-mce-selected","inline-boundary"):s.removeAttribute("data-mce-selected")},bB=(n,s,l)=>U6(s,l).map(h=>(a4(n,h),l)),Zj=(n,s,l)=>{const h=Nn.fromRangeStart(n);if(n.collapsed)return h;{const O=Nn.fromRangeEnd(n);return l?uu(s,O).getOr(O):Rc(s,h).getOr(h)}},OB=(n,s,l)=>{const h=n.getBody(),O=Zj(n.selection.getRng(),h,l),P=ee(Rb,n);return A2(l,P,h,O).bind(J=>bB(n,s,J))},Hj=(n,s,l)=>{const h=Ie(sl(Yt.fromDom(s.getRoot()),'*[data-mce-selected="inline-boundary"]'),Z=>Z.dom),O=se(h,n),P=se(l,n);re(pt(O,P),ee(K6,!1)),re(pt(P,O),ee(K6,!0))},xB=(n,s)=>{const l=s.get();if(n.selection.isCollapsed()&&!n.composing&&l){const h=Nn.fromRangeStart(n.selection.getRng());Nn.isTextPosition(h)&&!aY(h)&&(a4(n,Yk(l,h)),s.set(null))}},Xle=(n,s,l,h)=>{if(s.selection.isCollapsed()){const O=se(h,n);re(O,P=>{const Z=Nn.fromRangeStart(s.selection.getRng());Hh(n,s.getBody(),Z).bind(J=>bB(s,l,J))})}},SB=(n,s,l)=>lv(n)?OB(n,s,l).isSome():!1,wB=(n,s,l)=>lv(s)?cB(n,s):!1,Uj=n=>{const s=ni(null),l=ee(Rb,n);return n.on("NodeChange",h=>{lv(n)&&(Hj(l,n.dom,h.parents),xB(n,s),Xle(l,n,s,h.parents))}),s},Wj=ee(wB,!0),Yj=ee(wB,!1),i4=(n,s,l)=>{if(lv(n)){const h=S3(n,s).getOrThunk(()=>{const O=n.selection.getRng();return s?Nn.fromRangeEnd(O):Nn.fromRangeStart(O)});return Hh(ee(Rb,n),n.getBody(),h).exists(O=>{const P=e4(O);return U6(l,P).exists(Z=>(a4(n,Z),!0))})}else return!1},Xj=(n,s)=>{const l=document.createRange();return l.setStart(n.container(),n.offset()),l.setEnd(s.container(),s.offset()),l},Gj=n=>Fa(Xc(n),ld(n),(s,l)=>{const h=Ds(!0,s),O=Ds(!1,l);return Rc(n,h).forall(P=>P.isEqual(O))}).getOr(!0),J6=(n,s)=>l=>U6(s,l).map(h=>()=>a4(n,h)),TB=(n,s,l,h)=>{const O=n.getBody(),P=ee(Rb,n);n.undoManager.ignore(()=>{n.selection.setRng(Xj(l,h)),$T(n),Hh(P,O,Nn.fromRangeStart(n.selection.getRng())).map(t4).bind(J6(n,s)).each(ge)}),n.nodeChanged()},Zb=(n,s)=>{const l=_m(s,n);return l||n},CB=(n,s,l,h)=>{const O=Zb(n.getBody(),h.container()),P=ee(Rb,n),Z=Hh(P,O,h);return Z.bind(he=>l?he.fold(ae(G.some(t4(he))),G.none,ae(G.some(e4(he))),G.none):he.fold(G.none,ae(G.some(e4(he))),G.none,ae(G.some(t4(he))))).map(J6(n,s)).getOrThunk(()=>{const he=Dm(l,O,h),_e=he.bind(Ge=>Hh(P,O,Ge));return Fa(Z,_e,()=>Ih(P,O,h).bind(Ge=>Gj(Ge)?G.some(()=>{xv(n,l,Yt.fromDom(Ge))}):G.none())).getOrThunk(()=>_e.bind(()=>he.map(Ge=>()=>{l?TB(n,s,h,Ge):TB(n,s,Ge,h)})))})},w3=(n,s,l)=>{if(n.selection.isCollapsed()&&lv(n)){const h=Nn.fromRangeStart(n.selection.getRng());return CB(n,s,l,h)}return G.none()},kB=n=>Pl(n)>1,l4=(n,s)=>{const l=Yt.fromDom(n.getBody()),h=Yt.fromDom(n.selection.getStart()),O=qg(h,l);return Ce(O,s).fold(ae(O),P=>O.slice(0,P))},y1=n=>Pl(n)===1,AB=n=>l4(n,s=>n.schema.isBlock(Vs(s))||kB(s)),rh=n=>l4(n,s=>n.schema.isBlock(Vs(s))),b1=(n,s)=>{const l=ee(ep,n);return ze(s,h=>l(h)?[h.dom]:[])},c4=n=>{const s=rh(n);return b1(n,s)},jj=(n,s,l,h)=>{const O=b1(s,h);if(O.length===0)xv(s,n,l);else{const P=UL(l.dom,O);s.selection.setRng(P.toRange())}},PB=(n,s)=>{const l=se(AB(n),y1);return ft(l).bind(h=>{const O=Nn.fromRangeStart(n.selection.getRng());return WA(s,O,h.dom)&&!pb(h)?G.some(()=>jj(s,n,h,l)):G.none()})},qj=(n,s)=>{const l=s.parentElement;return aa(s)&&!F(l)&&n.dom.isEmpty(l)},Kj=n=>pb(Yt.fromDom(n)),MB=(n,s)=>{const l=n.selection.getStart(),h=qj(n,l)||Kj(l)?UL(l,s):u5(n.selection.getRng(),s);n.selection.setRng(h.toRange())},Jj=(n,s)=>{const l=pt(s,c4(n));l.length>0&&MB(n,l)},EB=n=>lr(n.startContainer),_B=n=>n.startOffset===0&&EB(n),eq=(n,s)=>{const l=s.startContainer.parentElement;return!F(l)&&ep(n,Yt.fromDom(l))},tq=n=>{const s=n.startContainer.parentNode,l=n.endContainer.parentNode;return!F(s)&&!F(l)&&s.isEqualNode(l)},M2=n=>{const s=n.endContainer;return n.endOffset===(lr(s)?s.length:s.childNodes.length)},e7=n=>tq(n)&&M2(n),RB=n=>!n.endContainer.isEqualNode(n.commonAncestorContainer),DB=n=>e7(n)||RB(n),t7=n=>{const s=n.selection.getRng();return _B(s)&&eq(n,s)&&DB(s)},nq=n=>{if(t7(n)){const s=c4(n);return G.some(()=>{$T(n),Jj(n,s)})}else return G.none()},n7=(n,s)=>n.selection.isCollapsed()?PB(n,s):nq(n),rq=(n,s)=>cY(n,l=>sf(l.dom),l=>s.isBlock(Vs(l))),oq=n=>rq(Yt.fromDom(n.selection.getStart()),n.schema),sq=n=>{const s=n.selection.getRng();return s.collapsed&&(EB(s)||n.dom.isEmpty(s.startContainer))&&!oq(n)},T3=n=>(sq(n)&&MB(n,[]),!0),r7=(n,s,l)=>B(l)?G.some(()=>{n._selectionOverrides.hideFakeCaret(),xv(n,s,Yt.fromDom(l))}):G.none(),$B=(n,s)=>{const l=s?MT:Jx,h=s?Pi.Forwards:Pi.Backwards,O=zg(h,n.getBody(),n.selection.getRng());return l(O)?r7(n,s,O.getNode(!s)):G.from(Ds(s,O)).filter(P=>l(P)&&eT(O,P)).bind(P=>r7(n,s,P.getNode(!s)))},aq=(n,s)=>{const l=n.selection.getNode();return ei(l)?r7(n,s,l):G.none()},o7=(n,s)=>n.selection.isCollapsed()?$B(n,s):aq(n,s),vd=n=>wu(n,s=>Zl(s.dom)||Os(s.dom)).exists(s=>Zl(s.dom)),s7=n=>Ft(n??"").getOr(0),u4=(n,s)=>{const l=n||wc(s)?"margin":"padding",h=wi(s,"direction")==="rtl"?"-right":"-left";return l+h},LB=(n,s,l,h,O,P)=>{const Z=u4(l,Yt.fromDom(P)),J=s7(n.getStyle(P,Z));if(s==="outdent"){const he=Math.max(0,J-h);n.setStyle(P,Z,he?he+O:"")}else{const he=J+h+O;n.setStyle(P,Z,he)}},a7=(n,s)=>Xe(s,l=>{const h=u4(vx(n),l),O=Hi(l,h).map(s7).getOr(0);return n.dom.getContentEditable(l.dom)!=="false"&&O>0}),IB=n=>{const s=BB(n);return!n.mode.isReadOnly()&&(s.length>1||a7(n,s))},NB=n=>Tc(n)||td(n),iq=n=>ru(n).exists(NB),BB=n=>se(Wp(n.selection.getSelectedBlocks()),s=>!NB(s)&&!iq(s)&&vd(s)),QB=(n,s)=>{var l,h;const{dom:O}=n,P=Dw(n),Z=(h=(l=/[a-z%]+$/i.exec(P))===null||l===void 0?void 0:l[0])!==null&&h!==void 0?h:"px",J=s7(P),he=vx(n);re(BB(n),_e=>{LB(O,s,he,J,Z,_e.dom)})},FB=n=>QB(n,"indent"),VB=n=>QB(n,"outdent"),zB=n=>{if(n.selection.isCollapsed()&&IB(n)){const s=n.dom,l=n.selection.getRng(),h=Nn.fromRangeStart(l),O=s.getParent(l.startContainer,s.isBlock);if(O!==null&&E_(Yt.fromDom(O),h,n.schema))return G.some(()=>VB(n))}return G.none()},E2=(n,s,l)=>wt([zB,Z6,W5,(h,O)=>w3(h,s,O),N6,ZT,H6,o7,U5,n7],h=>h(n,l)).filter(h=>n.selection.isEditable()),Pv=(n,s)=>{E2(n,s,!1).fold(()=>{n.selection.isEditable()&&($T(n),UA(n))},ge)},Hb=(n,s)=>{E2(n,s,!0).fold(()=>{n.selection.isEditable()&&iY(n)},ge)},f4=(n,s)=>{n.addCommand("delete",()=>{Pv(n,s)}),n.addCommand("forwardDelete",()=>{Hb(n,s)})},d4=5,i7=400,l7=n=>n.touches===void 0||n.touches.length!==1?G.none():G.some(n.touches[0]),lq=(n,s)=>{const l=Math.abs(n.clientX-s.x),h=Math.abs(n.clientY-s.y);return l>d4||h>d4},ZB=n=>{const s=_g(),l=ni(!1),h=rx(O=>{n.dispatch("longpress",{...O,type:"longpress"}),l.set(!0)},i7);n.on("touchstart",O=>{l7(O).each(P=>{h.cancel();const Z={x:P.clientX,y:P.clientY,target:O.target};h.throttle(O),l.set(!1),s.set(Z)})},!0),n.on("touchmove",O=>{h.cancel(),l7(O).each(P=>{s.on(Z=>{lq(P,Z)&&(s.clear(),l.set(!1),n.dispatch("longpresscancel"))})})},!0),n.on("touchend touchcancel",O=>{h.cancel(),O.type!=="touchcancel"&&s.get().filter(P=>P.target.isEqualNode(O.target)).each(()=>{l.get()?O.preventDefault():n.dispatch("tap",{...O,type:"tap"})})},!0)},h4=(n,s)=>it(n,s.nodeName),cq=(n,s)=>lr(s)?!0:Xr(s)?!h4(n.getBlockElements(),s)&&!af(s)&&!ks(n,s)&&!Nd(s):!1,uq=(n,s,l)=>De(P_(Yt.fromDom(l),Yt.fromDom(s)),h=>h4(n,h.dom)),fq=(n,s)=>{if(lr(s)){if(s.data.length===0)return!0;if(/^\s+$/.test(s.data))return!s.nextSibling||h4(n,s.nextSibling)||Nd(s.nextSibling)}return!1},HB=n=>n.dom.create(Ec(n),Yy(n)),dq=n=>{const s=n.dom,l=n.selection,h=n.schema,O=h.getBlockElements(),P=l.getStart(),Z=n.getBody();let J,he,_e=!1;const Ge=Ec(n);if(!P||!Xr(P))return;const qe=Z.nodeName.toLowerCase();if(!h.isValidChild(qe,Ge.toLowerCase())||uq(O,Z,P))return;const ot=l.getRng(),{startContainer:Et,startOffset:Vt,endContainer:kt,endOffset:It}=ot,cn=o1(n);let xn=Z.firstChild;for(;xn;)if(Xr(xn)&&zO(h,xn),cq(h,xn)){if(fq(O,xn)){he=xn,xn=xn.nextSibling,s.remove(he);continue}J||(J=HB(n),Z.insertBefore(J,xn),_e=!0),he=xn,xn=xn.nextSibling,J.appendChild(he)}else J=null,xn=xn.nextSibling;_e&&cn&&(ot.setStart(Et,Vt),ot.setEnd(kt,It),l.setRng(ot),n.nodeChanged())},UB=(n,s,l)=>{const h=Yt.fromDom(HB(n)),O=Cc();Ci(h,O),l(s,h);const P=document.createRange();return P.setStartBefore(O.dom),P.setEndBefore(O.dom),P},WB=n=>{n.on("NodeChange",ee(dq,n))},c7=n=>s=>(" "+s.attr("class")+" ").indexOf(n)!==-1,Gle=(n,s,l)=>function(h){const O=arguments,P=O[O.length-2],Z=P>0?s.charAt(P-1):"";if(Z==='"')return h;if(Z===">"){const J=s.lastIndexOf("<",P);if(J!==-1&&s.substring(J,P).indexOf('contenteditable="false"')!==-1)return h}return''+n.dom.encode(typeof O[1]=="string"?O[1]:O[0])+""},jle=(n,s,l)=>{let h=s.length,O=l.content;if(l.format!=="raw"){for(;h--;)O=O.replace(s[h],Gle(n,O,zw(n)));l.content=O}},qle=n=>{const s="contenteditable",l=" "+fr.trim(zk(n))+" ",h=" "+fr.trim(zw(n))+" ",O=c7(l),P=c7(h),Z=kE(n);Z.length>0&&n.on("BeforeSetContent",J=>{jle(n,Z,J)}),n.parser.addAttributeFilter("class",J=>{let he=J.length;for(;he--;){const _e=J[he];O(_e)?_e.attr(s,"true"):P(_e)&&_e.attr(s,"false")}}),n.serializer.addAttributeFilter(s,J=>{let he=J.length;for(;he--;){const _e=J[he];!O(_e)&&!P(_e)||(Z.length>0&&_e.attr("data-mce-content")?(_e.name="#text",_e.type=3,_e.raw=!0,_e.value=_e.attr("data-mce-content")):_e.attr(s,null))}})},hq=n=>Sc(Yt.fromDom(n.getBody()),"*[data-mce-caret]").map(s=>s.dom).getOrNull(),mq=(n,s)=>{s.hasAttribute("data-mce-caret")&&(Pn(s),n.selection.setRng(n.selection.getRng()),n.selection.scrollIntoView(s))},Kle=(n,s)=>{const l=hq(n);if(l){if(s.type==="compositionstart"){s.preventDefault(),s.stopPropagation(),mq(n,l);return}Zt(l)&&(mq(n,l),n.undoManager.add())}},gq=n=>{n.on("keyup compositionstart",ee(Kle,n))},YB=Os,Jle=(n,s,l)=>q6(s,n,l,bv,Vm,YB),pq=(n,s,l)=>x3(s,n,l,P=>bv(P)||F9(P),P=>Vm(P)||as(P),YB),Vf=n=>{const s=n.dom.create(Ec(n));return s.innerHTML='
    ',s},u7=(n,s,l)=>{const h=Ud(n.getBody()),O=ee(Jk,s===1?h.next:h.prev);if(l.collapsed){const P=n.dom.getParent(l.startContainer,"PRE");if(!P)return;if(!O(Nn.fromRangeStart(l))){const J=Yt.fromDom(Vf(n));s===1?Yu(Yt.fromDom(P),J):Ui(Yt.fromDom(P),J),n.selection.select(J.dom,!0),n.selection.collapse()}}},C3=(n,s)=>{const l=s?Pi.Forwards:Pi.Backwards,h=n.selection.getRng();return Jle(l,n,h).orThunk(()=>(u7(n,l,h),G.none()))},vq=(n,s)=>{const l=s?1:-1,h=n.selection.getRng();return pq(l,n,h).orThunk(()=>(u7(n,l,h),G.none()))},XB=(n,s)=>{const l=s?n.getEnd(!0):n.getStart(!0);return oL(l)?!s:s},f7=(n,s)=>C3(n,XB(n.selection,s)).exists(l=>(fp(n,l),!0)),m4=(n,s)=>vq(n,s).exists(l=>(fp(n,l),!0)),GB=(n,s)=>P2(n,s,s?Vm:bv),g4=(n,s)=>Q6(n,!s).map(l=>{const h=l.toRange(),O=n.selection.getRng();return s?h.setStart(O.startContainer,O.startOffset):h.setEnd(O.endContainer,O.endOffset),h}).exists(l=>(fp(n,l),!0)),jB=n=>Ze(["figcaption"],Vs(n)),yq=(n,s,l)=>{const h=ee(Gs,s);return wu(Yt.fromDom(n.container()),O=>l.isBlock(Vs(O)),h).filter(jB)},bq=(n,s,l)=>s?v3(n.dom,l):fB(n.dom,l),Oq=(n,s)=>{const l=Yt.fromDom(n.getBody()),h=Nn.fromRangeStart(n.selection.getRng());return yq(h,l,n.schema).exists(()=>{if(bq(l,s,h)){const P=UB(n,l,s?Ci:mm);return n.selection.setRng(P),!0}else return!1})},p4=(n,s)=>n.selection.isCollapsed()?Oq(n,s):!1,xq=(n,s,l)=>{const h=n.selection.getRng(),O=Nn.fromRangeStart(h);return n.getBody().firstChild===s&&fB(l,O)?(n.execCommand("InsertNewBlockBefore"),!0):!1},Sq=(n,s)=>{const l=n.selection.getRng(),h=Nn.fromRangeStart(l);return n.getBody().lastChild===s&&v3(s,h)?(n.execCommand("InsertNewBlockAfter"),!0):!1},ece=(n,s)=>s?G.from(n.dom.getParent(n.selection.getNode(),"details")).map(l=>Sq(n,l)).getOr(!1):G.from(n.dom.getParent(n.selection.getNode(),"summary")).bind(l=>G.from(n.dom.getParent(l,"details")).map(h=>xq(n,h,l))).getOr(!1),qB=(n,s)=>ece(n,s),d7={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},tce=n=>Ie(n,s=>({...d7,...s})),wq=n=>Ie(n,s=>({...d7,...s})),KB=(n,s)=>s.keyCode===n.keyCode&&s.shiftKey===n.shiftKey&&s.altKey===n.altKey&&s.ctrlKey===n.ctrlKey&&s.metaKey===n.metaKey,Tq=(n,s)=>ze(tce(n),l=>KB(l,s)?[l]:[]),h7=(n,s)=>ze(wq(n),l=>KB(l,s)?[l]:[]),Ro=(n,...s)=>()=>n.apply(null,s),_2=(n,s)=>le(Tq(n,s),l=>l.action()),m7=(n,s)=>wt(h7(n,s),l=>l.action()),JB=(n,s)=>{const l=s?Pi.Forwards:Pi.Backwards,h=n.selection.getRng();return q6(n,l,h,MT,Jx,ei).exists(O=>(fp(n,O),!0))},eQ=(n,s)=>{const l=s?1:-1,h=n.selection.getRng();return x3(n,l,h,MT,Jx,ei).exists(O=>(fp(n,O),!0))},v4=(n,s)=>P2(n,s,s?Jx:MT),tQ=Zd.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),k3={...tQ,none:n=>tQ.none(n)},Cq=(n,s)=>oh(n,s,pe),oh=(n,s,l)=>ze(ol(n),h=>Hu(h,s)?l(h)?[h]:[]:oh(h,s,l)),nQ=(n,s,l=ne)=>{if(l(s))return G.none();if(Ze(n,Vs(s)))return G.some(s);const h=O=>Hu(O,"table")||l(O);return Og(s,n.join(","),h)},rQ=(n,s)=>nQ(["td","th"],n,s),rce=n=>Cq(n,"th,td"),kq=(n,s)=>Mf(n,"table",s),oQ=(n,s,l,h,O=pe)=>{const P=h===1;if(!P&&l<=0)return k3.first(n[0]);if(P&&l>=n.length-1)return k3.last(n[n.length-1]);{const Z=l+h,J=n[Z];return O(J)?k3.middle(s,J):oQ(n,s,Z,h,O)}},Aq=(n,s)=>kq(n,s).bind(l=>{const h=rce(l);return Ce(h,P=>Gs(n,P)).map(P=>({index:P,all:h}))}),Pq=(n,s,l)=>Aq(n,l).fold(()=>k3.none(n),O=>oQ(O.all,n,O.index,1,s)),y4=(n,s,l)=>Aq(n,l).fold(()=>k3.none(),O=>oQ(O.all,n,O.index,-1,s)),Mq=(n,s)=>({left:n.left-s,top:n.top-s,right:n.right+s*2,bottom:n.bottom+s*2,width:n.width+s,height:n.height+s}),g7=(n,s)=>ze(s,l=>{const h=Mq(ov(l.getBoundingClientRect()),-1);return[{x:h.left,y:n(h),cell:l},{x:h.right,y:n(h),cell:l}]}),sQ=(n,s,l)=>oe(n,(h,O)=>h.fold(()=>G.some(O),P=>{const Z=Math.sqrt(Math.abs(P.x-s)+Math.abs(P.y-l)),J=Math.sqrt(Math.abs(O.x-s)+Math.abs(O.y-l));return G.some(J{const P=sl(Yt.fromDom(l),"td,th,caption").map(J=>J.dom),Z=se(g7(n,P),J=>s(J,O));return sQ(Z,h,O).map(J=>J.cell)},aQ=n=>n.bottom,Eq=n=>n.top,_q=(n,s)=>n.yn.y>s,Dq=ee(p7,aQ,_q),b4=ee(p7,Eq,Rq),$q=(n,s)=>yt(s.getClientRects()).bind(l=>Dq(n,l.left,l.top)).bind(l=>Ff(Nj(l),s)),Lq=(n,s)=>ft(s.getClientRects()).bind(l=>b4(n,l.left,l.top)).bind(l=>Ff(Ij(l),s)),Iq=(n,s,l)=>l.breakAt.exists(h=>n(s,h).breakAt.isSome()),v7=n=>n.breakType===Uh.Wrap&&n.positions.length===0,Nq=n=>n.breakType===Uh.Br&&n.positions.length===1,iQ=(n,s,l)=>{const h=n(s,l);return v7(h)||!aa(l.getNode())&&Nq(h)?!Iq(n,s,h):h.breakAt.isNone()},lQ=ee(iQ,g3),Bq=ee(iQ,p3),Qq=(n,s,l)=>{const h=Nn.fromRangeStart(s);return U0(!n,l).exists(O=>O.isEqual(h))},Fq=(n,s,l,h)=>{const O=n.selection.getRng(),P=s?1:-1;return tb()&&Qq(s,O,l)?(cp(P,n,l,!s,!1).each(Z=>{fp(n,Z)}),!0):!1},Vq=(n,s,l)=>$q(s,l).orThunk(()=>yt(l.getClientRects()).bind(h=>uB(v1(n,Nn.before(s)),h.left))).getOr(Nn.before(s)),zq=(n,s,l)=>Lq(s,l).orThunk(()=>yt(l.getClientRects()).bind(h=>uB(X6(n,Nn.after(s)),h.left))).getOr(Nn.after(s)),cQ=(n,s)=>{const l=s.getNode(n);return ju(l)?G.some(l):G.none()},y7=(n,s,l)=>{s.undoManager.transact(()=>{const h=n?Yu:Ui,O=UB(s,Yt.fromDom(l),h);fp(s,O)})},uQ=(n,s,l)=>{const h=cQ(!!s,l),O=s===!1;h.fold(()=>fp(n,l.toRange()),P=>U0(O,n.getBody()).filter(Z=>Z.isEqual(l)).fold(()=>fp(n,l.toRange()),Z=>y7(s,n,P)))},fQ=(n,s,l,h)=>{const O=n.selection.getRng(),P=Nn.fromRangeStart(O),Z=n.getBody();if(!s&&lQ(h,P)){const J=Vq(Z,l,P);return uQ(n,s,J),!0}else if(s&&Bq(h,P)){const J=zq(Z,l,P);return uQ(n,s,J),!0}else return!1},dQ=(n,s,l)=>G.from(n.dom.getParent(n.selection.getNode(),"td,th")).bind(h=>G.from(n.dom.getParent(h,"table")).map(O=>l(n,s,O,h))).getOr(!1),hQ=(n,s)=>dQ(n,s,Fq),b7=(n,s)=>dQ(n,s,fQ),Zq=n=>{const s=Fm.exact(n,0,n,0);return g_(s)},mQ=(n,s,l)=>l.fold(G.none,G.none,(h,O)=>gW(O).map(P=>Zq(P)),h=>(n.execCommand("mceTableInsertRowAfter"),gQ(n,s,h))),gQ=(n,s,l)=>mQ(n,s,Pq(l,jo)),Ol=(n,s,l)=>mQ(n,s,y4(l,jo)),pQ=(n,s)=>{const l=["table","li","dl"],h=Yt.fromDom(n.getBody()),O=J=>{const he=Vs(J);return Gs(J,h)||Ze(l,he)},P=n.selection.getRng(),Z=Yt.fromDom(s?P.endContainer:P.startContainer);return rQ(Z,O).map(J=>(kq(J,O).each(Ge=>{n.model.table.clearSelectedCells(Ge.dom)}),n.selection.collapse(!s),(s?gQ:Ol)(n,O,J).each(Ge=>{n.selection.setRng(Ge)}),!0)).getOr(!1)},Hq=(n,s,l)=>{const h=Dr.os.isMacOS()||Dr.os.isiOS();_2([{keyCode:Wr.RIGHT,action:Ro(f7,n,!0)},{keyCode:Wr.LEFT,action:Ro(f7,n,!1)},{keyCode:Wr.UP,action:Ro(m4,n,!1)},{keyCode:Wr.DOWN,action:Ro(m4,n,!0)},...h?[{keyCode:Wr.UP,action:Ro(g4,n,!1),metaKey:!0,shiftKey:!0},{keyCode:Wr.DOWN,action:Ro(g4,n,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:Wr.RIGHT,action:Ro(hQ,n,!0)},{keyCode:Wr.LEFT,action:Ro(hQ,n,!1)},{keyCode:Wr.UP,action:Ro(b7,n,!1)},{keyCode:Wr.DOWN,action:Ro(b7,n,!0)},{keyCode:Wr.UP,action:Ro(b7,n,!1)},{keyCode:Wr.UP,action:Ro(qB,n,!1)},{keyCode:Wr.DOWN,action:Ro(qB,n,!0)},{keyCode:Wr.RIGHT,action:Ro(JB,n,!0)},{keyCode:Wr.LEFT,action:Ro(JB,n,!1)},{keyCode:Wr.UP,action:Ro(eQ,n,!1)},{keyCode:Wr.DOWN,action:Ro(eQ,n,!0)},{keyCode:Wr.RIGHT,action:Ro(SB,n,s,!0)},{keyCode:Wr.LEFT,action:Ro(SB,n,s,!1)},{keyCode:Wr.RIGHT,ctrlKey:!h,altKey:h,action:Ro(Wj,n,s)},{keyCode:Wr.LEFT,ctrlKey:!h,altKey:h,action:Ro(Yj,n,s)},{keyCode:Wr.UP,action:Ro(p4,n,!1)},{keyCode:Wr.DOWN,action:Ro(p4,n,!0)}],l).each(O=>{l.preventDefault()})},Uq=(n,s)=>{n.on("keydown",l=>{l.isDefaultPrevented()||Hq(n,s,l)})},Wh=(n,s)=>({container:n,offset:s}),R2=Da.DOM,A3=n=>s=>n===s?-1:0,O1=n=>s=>n.isBlock(s)||Ze(["BR","IMG","HR","INPUT"],s.nodeName)||n.getContentEditable(s)==="false",P3=(n,s,l)=>{if(lr(n)&&s>=0)return G.some(Wh(n,s));{const h=Rg(R2);return G.from(h.backwards(n,s,A3(n),l)).map(O=>Wh(O.container,O.container.data.length))}},vQ=(n,s,l)=>{if(lr(n)&&s>=n.length)return G.some(Wh(n,s));{const h=Rg(R2);return G.from(h.forwards(n,s,A3(n),l)).map(O=>Wh(O.container,0))}},M3=(n,s,l)=>{if(!lr(n))return G.none();const h=n.data;if(s>=0&&s<=h.length)return G.some(Wh(n,s));{const O=Rg(R2);return G.from(O.backwards(n,s,A3(n),l)).bind(P=>{const Z=P.container.data;return M3(P.container,s+Z.length,l)})}},O4=(n,s,l)=>{if(!lr(n))return G.none();const h=n.data;if(s<=h.length)return G.some(Wh(n,s));{const O=Rg(R2);return G.from(O.forwards(n,s,A3(n),l)).bind(P=>O4(P.container,s-h.length,l))}},E3=(n,s,l,h,O)=>{const P=Rg(n,O1(n));return G.from(P.backwards(s,l,h,O))},yQ=n=>n.collapsed&&lr(n.startContainer),_3=n=>Pe(n.toString().replace(/\u00A0/g," ")),R3=n=>n!==""&&`  \f +\r \v`.indexOf(n)!==-1,Ub=(n,s)=>n.substring(s.length),D3=(n,s,l)=>{let h;const O=l.charAt(0);for(h=s-1;h>=0;h--){const P=n.charAt(h);if(R3(P))return G.none();if(O===P&&sr(n,l,h,s))break}return G.some(h)},Yh=(n,s,l,h=0)=>{if(!yQ(s))return G.none();const O={text:"",offset:0},P=(J,he,_e)=>(O.text=_e+O.text,O.offset+=he,D3(O.text,O.offset,l).getOr(he)),Z=n.getParent(s.startContainer,n.isBlock)||n.getRoot();return E3(n,s.startContainer,s.startOffset,P,Z).bind(J=>{const he=s.cloneRange();if(he.setStart(J.container,J.offset),he.setEnd(s.endContainer,s.endOffset),he.collapsed)return G.none();const _e=_3(he);return _e.lastIndexOf(l)!==0||Ub(_e,l).lengthbW(Yt.fromDom(s.startContainer)).fold(()=>Yh(n,s,l,h),O=>{const P=n.createRng();P.selectNode(O.dom);const Z=_3(P);return G.some({range:P,text:Ub(Z,l),trigger:l})}),bQ=n=>n.nodeType===lm,OQ=n=>n.nodeType===mh,xQ=n=>{if(bQ(n))return Wh(n,n.data.length);{const s=n.childNodes;return s.length>0?xQ(s[s.length-1]):Wh(n,s.length)}},O7=(n,s)=>{const l=n.childNodes;return l.length>0&&s0&&OQ(n)&&l.length===s?xQ(l[l.length-1]):Wh(n,s)},Wq=(n,s)=>{var l;const h=(l=n.getParent(s.container,n.isBlock))!==null&&l!==void 0?l:n.getRoot();return E3(n,s.container,s.offset,(O,P)=>P===0?-1:P,h).filter(O=>{const P=O.container.data.charAt(O.offset-1);return!R3(P)}).isSome()},Yq=n=>s=>{const l=O7(s.startContainer,s.startOffset);return!Wq(n,l)},$3=(n,s,l)=>wt(l.triggers,h=>D2(n,s,h)),Xq=(n,s)=>{const l=s(),h=n.selection.getRng();return $3(n.dom,h,l).bind(O=>SQ(n,s,O))},SQ=(n,s,l,h={})=>{var O;const P=s(),J=(O=n.selection.getRng().startContainer.nodeValue)!==null&&O!==void 0?O:"",he=se(P.lookupByTrigger(l.trigger),Ge=>l.text.length>=Ge.minChars&&Ge.matches.getOrThunk(()=>Yq(n.dom))(l.range,J,l.text));if(he.length===0)return G.none();const _e=Promise.all(Ie(he,Ge=>Ge.fetch(l.text,Ge.maxResults,h).then(ot=>({matchText:l.text,items:ot,columns:Ge.columns,onAction:Ge.onAction,highlightOn:Ge.highlightOn}))));return G.some({lookupData:_e,context:l})};var Wm;(function(n){n[n.Error=0]="Error",n[n.Value=1]="Value"})(Wm||(Wm={}));const x7=(n,s,l)=>n.stype===Wm.Error?s(n.serror):l(n.svalue),Gq=n=>{const s=[],l=[];return re(n,h=>{x7(h,O=>l.push(O),O=>s.push(O))}),{values:s,errors:l}},jq=(n,s)=>n.stype===Wm.Error?{stype:Wm.Error,serror:s(n.serror)}:n,qq=(n,s)=>n.stype===Wm.Value?{stype:Wm.Value,svalue:s(n.svalue)}:n,Kq=(n,s)=>n.stype===Wm.Value?s(n.svalue):n,Jq=(n,s)=>n.stype===Wm.Error?s(n.serror):n,wQ=n=>({stype:Wm.Value,svalue:n}),TQ=n=>({stype:Wm.Error,serror:n}),Lc={fromResult:n=>n.fold(TQ,wQ),toResult:n=>x7(n,iu.error,iu.value),svalue:wQ,partition:Gq,serror:TQ,bind:Kq,bindError:Jq,map:qq,mapError:jq,fold:x7},x4=n=>I(n)&&Gt(n).length>100?" removed due to size":JSON.stringify(n,null,2),CQ=n=>{const s=n.length>10?n.slice(0,10).concat([{path:[],getErrorInfo:ae("... (only showing first ten failures)")}]):n;return Ie(s,l=>"Failed path: ("+l.path.join(" > ")+`) +`+l.getErrorInfo())},L3=(n,s)=>Lc.serror([{path:n,getErrorInfo:s}]),eK=(n,s,l)=>L3(n,()=>'Could not find valid *required* value for "'+s+'" in '+x4(l)),tK=(n,s)=>L3(n,()=>'Choice schema did not contain choice key: "'+s+'"'),nK=(n,s,l)=>L3(n,()=>'The chosen schema: "'+l+'" did not exist in branches: '+x4(s)),rK=(n,s)=>L3(n,ae(s)),kQ=(n,s,l,h)=>Sn(l,h).fold(()=>nK(n,l,h),P=>P.extract(n.concat(["branch: "+h]),s)),oK=(n,s)=>({extract:(O,P)=>Sn(P,n).fold(()=>tK(O,n),J=>kQ(O,P,s,J)),toString:()=>"chooseOn("+n+"). Possible values: "+Gt(s)}),AQ=(n,s)=>s,sK=(n,s)=>V(n)&&V(s)?I3(n,s):s,S7=n=>(...s)=>{if(s.length===0)throw new Error("Can't merge zero objects");const l={};for(let h=0;h({tag:"required",process:{}}),iK=n=>({tag:"defaultedThunk",process:n}),w7=n=>iK(ae(n)),lK=()=>({tag:"option",process:{}}),cK=(n,s)=>n.length>0?Lc.svalue(I3(s,aK.apply(void 0,n))):Lc.svalue(s),T7=n=>L(Lc.serror,Qe)(n),MQ={consolidateObj:(n,s)=>{const l=Lc.partition(n);return l.errors.length>0?T7(l.errors):cK(l.values,s)},consolidateArr:n=>{const s=Lc.partition(n);return s.errors.length>0?T7(s.errors):Lc.svalue(s.values)}},uK=(n,s,l,h)=>({tag:"field",key:n,newKey:s,presence:l,prop:h}),fK=(n,s)=>({tag:"custom",newKey:n,instantiator:s}),EQ=(n,s,l)=>{switch(n.tag){case"field":return s(n.key,n.newKey,n.presence,n.prop);case"custom":return l(n.newKey,n.instantiator)}},S4=n=>{const s=(h,O)=>Lc.bindError(n(O),P=>rK(h,P)),l=ae("val");return{extract:s,toString:l}},_Q=S4(Lc.svalue),dK=(n,s,l,h)=>Sn(s,l).fold(()=>eK(n,l,s),h),RQ=(n,s,l,h)=>{const O=Sn(n,s).getOrThunk(()=>l(n));return h(O)},hK=(n,s,l)=>l(Sn(n,s)),mK=(n,s,l,h)=>{const O=Sn(n,s).map(P=>P===!0?l(n):P);return h(O)},gK=(n,s,l,h,O)=>{const P=J=>O.extract(s.concat([h]),J),Z=J=>J.fold(()=>Lc.svalue(G.none()),he=>{const _e=O.extract(s.concat([h]),he);return Lc.map(_e,G.some)});switch(n.tag){case"required":return dK(s,l,h,P);case"defaultedThunk":return RQ(l,h,n.process,P);case"option":return hK(l,h,Z);case"defaultedOptionThunk":return mK(l,h,n.process,Z);case"mergeWithThunk":return RQ(l,h,ae({}),J=>{const he=I3(n.process(l),J);return P(he)})}},pK=(n,s,l)=>{const h={},O=[];for(const P of l)EQ(P,(Z,J,he,_e)=>{const Ge=gK(he,n,s,Z,_e);Lc.fold(Ge,qe=>{O.push(...qe)},qe=>{h[J]=qe})},(Z,J)=>{h[Z]=J(s)});return O.length>0?Lc.serror(O):Lc.svalue(h)},C7=n=>({extract:(h,O)=>pK(h,O,n),toString:()=>`obj{ +`+Ie(n,O=>EQ(O,(P,Z,J,he)=>P+" -> "+he.toString(),(P,Z)=>"state("+P+")")).join(` +`)+"}"}),DQ=n=>({extract:(h,O)=>{const P=Ie(O,(Z,J)=>n.extract(h.concat(["["+J+"]"]),Z));return MQ.consolidateArr(P)},toString:()=>"array("+n.toString()+")"}),lce=n=>S4(s=>n(s).fold(Lc.serror,Lc.svalue)),vK=(n,s,l)=>{const h=s.extract([n],l);return Lc.mapError(h,O=>({input:l,errors:O}))},w4=(n,s,l)=>Lc.toResult(vK(n,s,l)),$Q=n=>`Errors: +`+CQ(n.errors).join(` +`)+` + +Input object: `+x4(n.input),k7=(n,s)=>oK(n,vn(s,C7)),yK=ae(_Q),N3=(n,s)=>S4(l=>{const h=typeof l;return n(l)?Lc.svalue(l):Lc.serror(`Expected type: ${s} but got: ${h}`)}),LQ=N3(W,"number"),T4=N3(M,"string"),bK=N3(z,"boolean"),A7=N3(E,"function"),$2=uK,IQ=fK,P7=n=>lce(s=>Ze(n,s)?iu.value(s):iu.error(`Unsupported value: "${s}", choose one of "${n.join(", ")}".`)),NQ=(n,s)=>$2(n,n,PQ(),s),BQ=n=>NQ(n,T4),QQ=n=>NQ(n,A7),FQ=(n,s)=>$2(n,n,PQ(),DQ(s)),M7=(n,s)=>$2(n,n,lK(),s),C4=n=>M7(n,T4),OK=n=>M7(n,A7),xK=(n,s)=>$2(n,n,w7(s),yK()),L2=(n,s,l)=>$2(n,n,w7(s),l),xl=(n,s)=>L2(n,s,LQ),dp=(n,s)=>L2(n,s,T4),VQ=(n,s,l)=>L2(n,s,P7(l)),zQ=(n,s)=>L2(n,s,bK),E7=(n,s)=>L2(n,s,A7),SK=(n,s,l)=>L2(n,s,DQ(l)),wK=BQ("type"),TK=QQ("fetch"),k4=QQ("onAction"),I2=E7("onSetup",()=>ie),cce=C4("text"),CK=C4("icon"),kK=C4("tooltip"),Ym=C4("label"),AK=zQ("active",!1),PK=zQ("enabled",!0),_7=zQ("primary",!1),MK=n=>xK("columns",n),Wb=n=>dp("type",n),ZQ=C7([wK,BQ("trigger"),xl("minChars",1),MK(1),xl("maxResults",10),OK("matches"),TK,k4,SK("highlightOn",[],T4)]),EK=n=>w4("Autocompleter",ZQ,{trigger:n.ch,...n}),R7=[PK,kK,CK,cce,I2],HQ=[AK].concat(R7),UQ=[E7("predicate",ne),VQ("scope","node",["node","editor"]),VQ("position","selection",["node","selection","line"])],WQ=R7.concat([Wb("contextformbutton"),_7,k4,IQ("original",q)]),D7=HQ.concat([Wb("contextformbutton"),_7,k4,IQ("original",q)]),$7=R7.concat([Wb("contextformbutton")]),L7=HQ.concat([Wb("contextformtogglebutton")]),_K=k7("type",{contextformbutton:WQ,contextformtogglebutton:D7});C7([Wb("contextform"),E7("initValue",ae("")),Ym,FQ("commands",_K),M7("launch",k7("type",{contextformbutton:$7,contextformtogglebutton:L7}))].concat(UQ));const RK=n=>{const s=n.ui.registry.getAll().popups,l=vn(s,Z=>EK(Z).fold(J=>{throw new Error($Q(J))},q)),h=gt(Xn(l,Z=>Z.trigger)),O=Un(l);return{dataset:l,triggers:h,lookupByTrigger:Z=>se(O,J=>J.trigger===Z)}},DK=(n,s)=>{const l=rx(s.load,50);n.on("keypress compositionend",h=>{h.which!==27&&l.throttle()}),n.on("keydown",h=>{const O=h.which;O===8?l.throttle():O===27&&s.cancelIfNecessary()}),n.on("remove",l.cancel)},$K=n=>{const s=_g(),l=ni(!1),h=s.isSet,O=()=>{h()&&(aG(n),OT(n),l.set(!1),s.clear())},P=_e=>{h()||(sG(n,_e.range),s.set({trigger:_e.trigger,matchLength:_e.text.length}))},Z=Rt(()=>RK(n)),J=_e=>s.get().map(Ge=>D2(n.dom,n.selection.getRng(),Ge.trigger).bind(qe=>SQ(n,Z,qe,_e))).getOrThunk(()=>Xq(n,Z)),he=_e=>{J(_e).fold(O,Ge=>{P(Ge.context),Ge.lookupData.then(qe=>{s.get().map(ot=>{const Et=Ge.context;ot.trigger===Et.trigger&&(Et.text.length-ot.matchLength>=10?O():(s.set({...ot,matchLength:Et.text.length}),l.get()?bA(n,{lookupData:qe}):(l.set(!0),bT(n,{lookupData:qe}))))})})})};n.addCommand("mceAutocompleterReload",(_e,Ge)=>{const qe=I(Ge)?Ge.fetchOptions:{};he(qe)}),n.addCommand("mceAutocompleterClose",O),DK(n,{cancelIfNecessary:O,load:he})},XQ=ii().browser.isSafari(),GQ=n=>D(Yt.fromDom(n)),I7=(n,s)=>{var l;return n.startOffset===0&&n.endOffset===((l=s.textContent)===null||l===void 0?void 0:l.length)},A4=(n,s)=>G.from(n.getParent(s.container(),"details")),P4=(n,s)=>A4(n,s).isSome(),LK=(n,s)=>{const l=G.from(n.getParent(s.startContainer,"details")),h=G.from(n.getParent(s.endContainer,"details"));if(l.isSome()||h.isSome()){const O=l.bind(P=>G.from(n.select("summary",P)[0]));return G.some({startSummary:O,startDetails:l,endDetails:h})}else return G.none()},IK=(n,s)=>Xc(s).exists(l=>l.isEqual(n)),NK=(n,s)=>ld(s).exists(l=>aa(l.getNode())&&uu(s,l).exists(h=>h.isEqual(n))||l.isEqual(n)),BK=(n,s)=>s.startSummary.exists(l=>IK(n,l)),QK=(n,s)=>s.startSummary.exists(l=>NK(n,l)),jQ=(n,s)=>s.startDetails.exists(l=>uu(l,n).forall(h=>s.startSummary.exists(O=>!O.contains(n.container())&&O.contains(h.container())))),N7=(n,s,l)=>l.startDetails.exists(h=>Rc(n,s).forall(O=>!h.contains(O.container()))),B7=(n,s)=>{const l=s.getNode();U(l)||n.selection.setCursorLocation(l,s.offset())},Q7=(n,s,l)=>{const h=n.dom.getParent(s.container(),"details");if(h&&!h.open){const O=n.dom.select("summary",h)[0];O&&(l?Xc(O):ld(O)).each(Z=>B7(n,Z))}else B7(n,s)},FK=(n,s)=>{const l=he=>he.contains(n.startContainer),h=he=>he.contains(n.endContainer),O=s.startSummary.exists(l),P=s.startSummary.exists(h),Z=s.startDetails.forall(he=>s.endDetails.forall(_e=>he!==_e));return(O||P)&&!(O&&P)||Z},qQ=(n,s,l)=>{const{dom:h,selection:O}=n,P=n.getBody();if(l==="character"){const Z=Nn.fromRangeStart(O.getRng()),J=h.getParent(Z.container(),h.isBlock),he=A4(h,Z),_e=J&&h.isEmpty(J),Ge=F(J==null?void 0:J.previousSibling),qe=F(J==null?void 0:J.nextSibling);return _e&&(s?qe:Ge)&&Dm(!s,P,Z).exists(Vt=>P4(h,Vt)&&!xi(he,A4(h,Vt)))?!0:Dm(s,P,Z).fold(ne,ot=>{const Et=A4(h,ot);if(P4(h,ot)&&!xi(he,Et)){if(s||Q7(n,ot,!1),J&&_e){if(s&&Ge)return!0;if(!s&&qe)return!0;Q7(n,ot,s),n.dom.remove(J)}return!0}else return!1})}else return!1},VK=(n,s,l,h)=>{const P=n.selection.getRng(),Z=Nn.fromRangeStart(P),J=n.getBody();return h==="selection"?FK(P,s):l?QK(Z,s)||N7(J,Z,s):BK(Z,s)||jQ(Z,s)},M4=(n,s,l)=>LK(n.dom,n.selection.getRng()).fold(()=>qQ(n,s,l),h=>VK(n,h,s,l)||qQ(n,s,l)),KQ=(n,s,l)=>{const h=n.selection,O=h.getNode(),P=h.getRng(),Z=Nn.fromRangeStart(P);return Zc(O)?(l==="selection"&&I7(P,O)||WA(s,Z,O)?GQ(O):n.undoManager.transact(()=>{const J=h.getSel();let{anchorNode:he,anchorOffset:_e,focusNode:Ge,focusOffset:qe}=J??{};const ot=()=>{B(he)&&B(_e)&&B(Ge)&&B(qe)&&(J==null||J.setBaseAndExtent(he,_e,Ge,qe))},Et=()=>{he=J==null?void 0:J.anchorNode,_e=J==null?void 0:J.anchorOffset,Ge=J==null?void 0:J.focusNode,qe=J==null?void 0:J.focusOffset},Vt=(It,cn)=>{re(It.childNodes,xn=>{ub(xn)&&cn.appendChild(xn)})},kt=n.dom.create("span",{"data-mce-bogus":"1"});Vt(O,kt),O.appendChild(kt),ot(),(l==="word"||l==="line")&&(J==null||J.modify("extend",s?"right":"left",l)),!h.isCollapsed()&&I7(h.getRng(),kt)?GQ(O):(n.execCommand(s?"ForwardDelete":"Delete"),Et(),Vt(kt,O),ot()),n.dom.remove(kt)}),!0):!1},x1=(n,s,l)=>M4(n,s,l)||XQ&&KQ(n,s,l)?G.some(ie):G.none(),JQ=n=>(s,l,h={})=>{const O=s.getBody(),P={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:O,currentTarget:O,eventPhase:Event.AT_TARGET,originalTarget:O,explicitOriginalTarget:O,isTrusted:!1,srcElement:O,cancelable:!1,preventDefault:ie,inputType:l},Z=h0(new InputEvent(n));return s.dispatch(n,{...Z,...P,...h})},B3=JQ("input"),F7=JQ("beforeinput"),zK=ii(),ZK=zK.os,eF=ZK.isMacOS()||ZK.isiOS(),HK=zK.browser.isFirefox(),UK=(n,s,l)=>{const h=l.keyCode===Wr.BACKSPACE?"deleteContentBackward":"deleteContentForward",O=n.selection.isCollapsed(),P=O?"character":"selection",Z=J=>O?J?"word":"line":"selection";m7([{keyCode:Wr.BACKSPACE,action:Ro(zB,n)},{keyCode:Wr.BACKSPACE,action:Ro(Z6,n,!1)},{keyCode:Wr.DELETE,action:Ro(Z6,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(W5,n,!1)},{keyCode:Wr.DELETE,action:Ro(W5,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(w3,n,s,!1)},{keyCode:Wr.DELETE,action:Ro(w3,n,s,!0)},{keyCode:Wr.BACKSPACE,action:Ro(ZT,n,!1)},{keyCode:Wr.DELETE,action:Ro(ZT,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(x1,n,!1,P)},{keyCode:Wr.DELETE,action:Ro(x1,n,!0,P)},...eF?[{keyCode:Wr.BACKSPACE,altKey:!0,action:Ro(x1,n,!1,Z(!0))},{keyCode:Wr.DELETE,altKey:!0,action:Ro(x1,n,!0,Z(!0))},{keyCode:Wr.BACKSPACE,metaKey:!0,action:Ro(x1,n,!1,Z(!1))}]:[{keyCode:Wr.BACKSPACE,ctrlKey:!0,action:Ro(x1,n,!1,Z(!0))},{keyCode:Wr.DELETE,ctrlKey:!0,action:Ro(x1,n,!0,Z(!0))}],{keyCode:Wr.BACKSPACE,action:Ro(H6,n,!1)},{keyCode:Wr.DELETE,action:Ro(H6,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(o7,n,!1)},{keyCode:Wr.DELETE,action:Ro(o7,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(U5,n,!1)},{keyCode:Wr.DELETE,action:Ro(U5,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(N6,n,!1)},{keyCode:Wr.DELETE,action:Ro(N6,n,!0)},{keyCode:Wr.BACKSPACE,action:Ro(n7,n,!1)},{keyCode:Wr.DELETE,action:Ro(n7,n,!0)}],l).filter(J=>n.selection.isEditable()).each(J=>{l.preventDefault(),F7(n,h).isDefaultPrevented()||(J(),B3(n,h))})},uce=(n,s,l)=>_2([{keyCode:Wr.BACKSPACE,action:Ro(X5,n)},{keyCode:Wr.DELETE,action:Ro(X5,n)},...eF?[{keyCode:Wr.BACKSPACE,altKey:!0,action:Ro(T3,n)},{keyCode:Wr.DELETE,altKey:!0,action:Ro(T3,n)},...l?[{keyCode:HK?224:91,action:Ro(T3,n)}]:[]]:[{keyCode:Wr.BACKSPACE,ctrlKey:!0,action:Ro(T3,n)},{keyCode:Wr.DELETE,ctrlKey:!0,action:Ro(T3,n)}]],s),WK=(n,s)=>{let l=!1;n.on("keydown",h=>{l=h.keyCode===Wr.BACKSPACE,h.isDefaultPrevented()||UK(n,s,h)}),n.on("keyup",h=>{h.isDefaultPrevented()||uce(n,h,l),l=!1})},Bi=n=>{for(;n;){if(Xr(n)||lr(n)&&n.data&&/[\r\n\s]/.test(n.data))return n;n=n.nextSibling}return null},S1=(n,s)=>{const l=n.dom,h=n.schema.getMoveCaretBeforeOnEnterElements();if(!s)return;if(/^(LI|DT|DD)$/.test(s.nodeName)){const P=Bi(s.firstChild);P&&/^(UL|OL|DL)$/.test(P.nodeName)&&s.insertBefore(l.doc.createTextNode(zs),s.firstChild)}const O=l.createRng();if(s.normalize(),s.hasChildNodes()){const P=new ca(s,s);let Z=s,J;for(;J=P.current();){if(lr(J)){O.setStart(J,0),O.setEnd(J,0);break}if(h[J.nodeName.toLowerCase()]){O.setStartBefore(J),O.setEndBefore(J);break}Z=J,J=P.next()}J||(O.setStart(Z,0),O.setEnd(Z,0))}else aa(s)?s.nextSibling&&l.isBlock(s.nextSibling)?(O.setStartBefore(s),O.setEndBefore(s)):(O.setStartAfter(s),O.setEndAfter(s)):(O.setStart(s,0),O.setEnd(s,0));n.selection.setRng(O),Ab(n,O)},yd=(n,s)=>{const l=n.getRoot();let h,O=s;for(;O!==l&&O&&n.getContentEditable(O)!=="false";){if(n.getContentEditable(O)==="true"){h=O;break}O=O.parentNode}return O!==l?h:l},E4=n=>G.from(n.dom.getParent(n.selection.getStart(!0),n.dom.isBlock)),tF=n=>E4(n).fold(ae(""),s=>s.nodeName.toUpperCase()),YK=n=>E4(n).filter(s=>td(Yt.fromDom(s))).isSome(),N2=n=>{n.innerHTML='
    '},V7=(n,s,l)=>{const h=n.dom;G.from(l.style).map(h.parseStyle).each(he=>{const Ge={...Oy(Yt.fromDom(s)),...he};h.setStyles(s,Ge)});const O=G.from(l.class).map(he=>he.split(/\s+/)),P=G.from(s.className).map(he=>se(he.split(/\s+/),_e=>_e!==""));Fa(O,P,(he,_e)=>{const Ge=se(_e,ot=>!Ze(he,ot)),qe=[...he,...Ge];h.setAttrib(s,"class",qe.join(" "))});const Z=["style","class"],J=wn(l,(he,_e)=>!Ze(Z,_e));h.setAttribs(s,J)},B2=(n,s)=>{if(Ec(n).toLowerCase()===s.tagName.toLowerCase()){const h=Yy(n);V7(n,s,h)}},z7=(n,s,l,h,O=!0,P,Z)=>{const J=n.dom,he=n.schema,_e=Ec(n),Ge=l?l.nodeName.toUpperCase():"";let qe=s;const ot=he.getTextInlineElements();let Et;P||Ge==="TABLE"||Ge==="HR"?Et=J.create(P||_e,Z||{}):Et=l.cloneNode(!1);let Vt=Et;if(!O)J.setAttrib(Et,"style",null),J.setAttrib(Et,"class",null);else do if(ot[qe.nodeName]){if(sf(qe)||af(qe))continue;const kt=qe.cloneNode(!1);J.setAttrib(kt,"id",""),Et.hasChildNodes()?(kt.appendChild(Et.firstChild),Et.appendChild(kt)):(Vt=kt,Et.appendChild(kt))}while((qe=qe.parentNode)&&qe!==h);return B2(n,Et),N2(Vt),Et},XK=(n,s)=>n.dom.getParent(s,er),GK=(n,s,l)=>{let h=s;for(;h&&h!==n&&F(h.nextSibling);){const O=h.parentElement;if(!O||!l(O))return er(O);h=O}return!1},jK=(n,s,l)=>!s&&l.nodeName.toLowerCase()===Ec(n)&&n.dom.isEmpty(l)&&GK(n.getBody(),l,h=>it(n.schema.getTextBlockElements(),h.nodeName.toLowerCase())),qK=(n,s,l)=>{var h,O,P;const Z=s(Ec(n)),J=XK(n,l);J&&(n.dom.insertAfter(Z,J),S1(n,Z),((P=(O=(h=l.parentElement)===null||h===void 0?void 0:h.childNodes)===null||O===void 0?void 0:O.length)!==null&&P!==void 0?P:0)>1&&n.dom.remove(l))},KK=(n,s)=>n.firstChild&&n.firstChild.nodeName===s,nF=n=>{var s;return((s=n.parentNode)===null||s===void 0?void 0:s.firstChild)===n},rF=(n,s)=>{const l=n==null?void 0:n.parentNode;return B(l)&&l.nodeName===s},oF=n=>B(n)&&/^(OL|UL|LI)$/.test(n.nodeName),Z7=n=>B(n)&&/^(LI|DT|DD)$/.test(n.nodeName),JK=n=>oF(n)&&oF(n.parentNode),_4=n=>{const s=n.parentNode;return Z7(s)?s:n},Q3=(n,s,l)=>{let h=n[l?"firstChild":"lastChild"];for(;h&&!Xr(h);)h=h[l?"nextSibling":"previousSibling"];return h===s},H7=n=>oe(Xn(Oy(Yt.fromDom(n)),(s,l)=>`${l}: ${s};`),(s,l)=>s+l,""),eJ=(n,s,l,h,O)=>{const P=n.dom,Z=n.selection.getRng(),J=l.parentNode;if(l===n.getBody()||!J)return;JK(l)&&(O="LI");const he=Z7(h)?H7(h):void 0;let _e=Z7(h)&&he?s(O,{style:H7(h)}):s(O);if(Q3(l,h,!0)&&Q3(l,h,!1))if(rF(l,"LI")){const Ge=_4(l);P.insertAfter(_e,Ge),nF(l)?P.remove(Ge):P.remove(l)}else P.replace(_e,l);else if(Q3(l,h,!0))rF(l,"LI")?(P.insertAfter(_e,_4(l)),_e.appendChild(P.doc.createTextNode(" ")),_e.appendChild(l)):J.insertBefore(_e,l),P.remove(h);else if(Q3(l,h,!1))P.insertAfter(_e,_4(l)),P.remove(h);else{l=_4(l);const Ge=Z.cloneRange();Ge.setStartAfter(h),Ge.setEndAfter(l);const qe=Ge.extractContents();if(O==="LI"&&KK(qe,"LI")){const ot=se(Ie(_e.children,Yt.fromDom),be(xu("br")));_e=qe.firstChild,P.insertAfter(qe,l),re(ot,Et=>mm(Yt.fromDom(_e),Et)),he&&_e.setAttribute("style",he)}else P.insertAfter(qe,l),P.insertAfter(_e,l);P.remove(h)}S1(n,_e)},tJ=n=>{re(r0(Yt.fromDom(n),Zi),s=>{const l=s.dom;l.nodeValue=Pe(l.data)})},fce=(n,s)=>{const l=n.dom.getParent(s,"ol,ul,dl");return l!==null&&n.dom.getContentEditableParent(l)==="false"},U7=(n,s)=>s&&s.nodeName==="A"&&n.isEmpty(s),W7=(n,s)=>n.nodeName===s||n.previousSibling&&n.previousSibling.nodeName===s,Y7=(n,s)=>B(s)&&n.isBlock(s)&&!/^(TD|TH|CAPTION|FORM)$/.test(s.nodeName)&&!/^(fixed|absolute)/i.test(s.style.position)&&n.isEditable(s.parentNode)&&n.getContentEditable(s)!=="false",nJ=(n,s,l)=>{var h;const O=[];if(!l)return;let P=l;for(;P=P.firstChild;){if(n.isBlock(P))return;Xr(P)&&!s[P.nodeName.toLowerCase()]&&O.push(P)}let Z=O.length;for(;Z--;)P=O[Z],(!P.hasChildNodes()||P.firstChild===P.lastChild&&((h=P.firstChild)===null||h===void 0?void 0:h.nodeValue)===""||U7(n,P))&&n.remove(P)},R4=(n,s,l)=>lr(s)?n?l===1&&s.data.charAt(l-1)===de?0:l:l===s.data.length-1&&s.data.charAt(l)===de?s.data.length:l:l,rJ=n=>{const s=n.cloneRange();return s.setStart(n.startContainer,R4(!0,n.startContainer,n.startOffset)),s.setEnd(n.endContainer,R4(!1,n.endContainer,n.endOffset)),s},sF=n=>{let s=n;do lr(s)&&(s.data=s.data.replace(/^[\r\n]+/,"")),s=s.firstChild;while(s)},oJ=(n,s,l,h,O)=>{var P,Z;const J=n.dom,he=(P=yd(J,h))!==null&&P!==void 0?P:J.getRoot();let _e=J.getParent(h,J.isBlock);if(!_e||!Y7(J,_e)){if(_e=_e||he,!_e.hasChildNodes()){const Et=J.create(s);return B2(n,Et),_e.appendChild(Et),l.setStart(Et,0),l.setEnd(Et,0),Et}let Ge=h;for(;Ge&&Ge.parentNode!==_e;)Ge=Ge.parentNode;let qe;for(;Ge&&!J.isBlock(Ge);)qe=Ge,Ge=Ge.previousSibling;const ot=(Z=qe==null?void 0:qe.parentElement)===null||Z===void 0?void 0:Z.nodeName;if(qe&&ot&&n.schema.isValidChild(ot,s.toLowerCase())){const Et=qe.parentNode,Vt=J.create(s);for(B2(n,Vt),Et.insertBefore(Vt,qe),Ge=qe;Ge&&!J.isBlock(Ge);){const kt=Ge.nextSibling;Vt.appendChild(Ge),Ge=kt}l.setStart(h,O),l.setEnd(h,O)}}return h},sJ=(n,s)=>{s.normalize();const l=s.lastChild;(!l||Xr(l)&&/^(left|right)$/gi.test(n.getStyle(l,"float",!0)))&&n.add(s,"br")},dce=(n,s)=>{const l=Ak(n);return Q(s)?!1:M(l)?Ze(fr.explode(l),s.nodeName.toLowerCase()):l},aF={insert:(n,s)=>{let l,h,O,P,Z=!1;const J=n.dom,he=n.schema,_e=he.getNonEmptyElements(),Ge=n.selection.getRng(),qe=Ec(n),ot=Yt.fromDom(Ge.startContainer),Et=ph(ot,Ge.startOffset),Vt=Et.exists(tr=>Ya(tr)&&!jo(tr)),kt=Ge.collapsed&&Vt,It=(tr,eo)=>z7(n,l,gr,rr,aE(n),tr,eo),cn=tr=>{const eo=R4(tr,l,h);if(lr(l)&&(tr?eo>0:eo{let tr;return/^(H[1-6]|PRE|FIGURE)$/.test(O)&&Qr!=="HGROUP"?tr=It(qe):tr=It(),dce(n,P)&&Y7(J,P)&&J.isEmpty(gr,void 0,{includeZwsp:!0})?tr=J.split(P,gr):J.insertAfter(tr,gr),S1(n,tr),tr};Me(J,Ge).each(tr=>{Ge.setStart(tr.startContainer,tr.startOffset),Ge.setEnd(tr.endContainer,tr.endOffset)}),l=Ge.startContainer,h=Ge.startOffset;const bn=!!(s&&s.shiftKey),$n=!!(s&&s.ctrlKey);Xr(l)&&l.hasChildNodes()&&!kt&&(Z=h>l.childNodes.length-1,l=l.childNodes[Math.min(h,l.childNodes.length-1)]||l,Z&&lr(l)?h=l.data.length:h=0);const rr=yd(J,l);if(!rr||fce(n,l))return;bn||(l=oJ(n,qe,Ge,l,h));let gr=J.getParent(l,J.isBlock)||J.getRoot();P=B(gr==null?void 0:gr.parentNode)?J.getParent(gr.parentNode,J.isBlock):null,O=gr?gr.nodeName.toUpperCase():"";const Qr=P?P.nodeName.toUpperCase():"";if(Qr==="LI"&&!$n){const tr=P;gr=tr,P=tr.parentNode,O=Qr}if(Xr(P)&&jK(n,bn,gr))return qK(n,It,gr);if(/^(LI|DT|DD)$/.test(O)&&Xr(P)&&J.isEmpty(gr)){eJ(n,It,P,gr,qe);return}if(!kt&&(gr===n.getBody()||!Y7(J,gr)))return;const zn=gr.parentNode;let Bn;if(kt)Bn=It(qe),Et.fold(()=>{Ci(ot,Yt.fromDom(Bn))},tr=>{Ui(tr,Yt.fromDom(Bn))}),n.selection.setCursorLocation(Bn,0);else if(rt(gr))Bn=Pn(gr),J.isEmpty(gr)&&N2(gr),B2(n,Bn),S1(n,Bn);else if(cn(!1))Bn=xn();else if(cn(!0)&&zn){Bn=zn.insertBefore(It(),gr);const tr=Wu(Yt.fromDom(Ge.startContainer))&&Ge.collapsed;S1(n,W7(gr,"HR")||tr?Bn:gr)}else{const tr=rJ(Ge).cloneRange();tr.setEndAfter(gr);const eo=tr.extractContents();tJ(eo),sF(eo),Bn=eo.firstChild,J.insertAfter(eo,gr),nJ(J,_e,Bn),sJ(J,gr),J.isEmpty(gr)&&N2(gr),Bn.normalize(),J.isEmpty(Bn)?(J.remove(Bn),xn()):(B2(n,Bn),S1(n,Bn))}J.setAttrib(Bn,"id",""),n.dispatch("NewBlock",{newBlock:Bn})},fakeEventName:"insertParagraph"},aJ=(n,s,l)=>{const h=new ca(s,l);let O;const P=n.getNonEmptyElements();for(;O=h.next();)if(P[O.nodeName.toLowerCase()]||lr(O)&&O.length>0)return!0;return!1},iF=(n,s,l)=>{const h=n.dom.createRng();l?(h.setStartBefore(s),h.setEndBefore(s)):(h.setStartAfter(s),h.setEndAfter(s)),n.selection.setRng(h),Ab(n,h)},iJ=(n,s)=>{const l=n.selection,h=n.dom,O=l.getRng();let P,Z=!1;Me(h,O).each(Et=>{O.setStart(Et.startContainer,Et.startOffset),O.setEnd(Et.endContainer,Et.endOffset)});let J=O.startOffset,he=O.startContainer;if(Xr(he)&&he.hasChildNodes()){const Et=J>he.childNodes.length-1;he=he.childNodes[Math.min(J,he.childNodes.length-1)]||he,Et&&lr(he)?J=he.data.length:J=0}let _e=h.getParent(he,h.isBlock);const Ge=_e&&_e.parentNode?h.getParent(_e.parentNode,h.isBlock):null,qe=Ge?Ge.nodeName.toUpperCase():"",ot=!!(s&&s.ctrlKey);qe==="LI"&&!ot&&(_e=Ge),lr(he)&&J>=he.data.length&&(aJ(n.schema,he,_e||h.getRoot())||(P=h.create("br"),O.insertNode(P),O.setStartAfter(P),O.setEndAfter(P),Z=!0)),P=h.create("br"),gw(h,O,P),iF(n,P,Z),n.undoManager.add()},lJ=(n,s)=>{const l=Yt.fromTag("br");Ui(Yt.fromDom(s),l),n.undoManager.add()},cJ=(n,s)=>{uJ(n.getBody(),s)||Yu(Yt.fromDom(s),Yt.fromTag("br"));const l=Yt.fromTag("br");Yu(Yt.fromDom(s),l),iF(n,l.dom,!1),n.undoManager.add()},D4=n=>aa(n.getNode()),uJ=(n,s)=>D4(Nn.after(s))?!0:Rc(n,Nn.after(s)).map(l=>aa(l.getNode())).getOr(!1),lF=n=>n&&n.nodeName==="A"&&"href"in n,X7=n=>n.fold(ne,lF,lF,ne),G7=n=>{const s=ee(Rb,n),l=Nn.fromRangeStart(n.selection.getRng());return Hh(s,n.getBody(),l).filter(X7)},fJ=(n,s)=>{s.fold(ie,ee(lJ,n),ee(cJ,n),ie)},dJ={insert:(n,s)=>{const l=G7(n);l.isSome()?l.each(ee(fJ,n)):iJ(n,s)},fakeEventName:"insertLineBreak"},cF=(n,s)=>E4(n).filter(l=>s.length>0&&Hu(Yt.fromDom(l),s)).isSome(),hJ=n=>cF(n,sE(n)),mce=n=>cF(n,Mw(n)),bd=Zd.generate([{br:[]},{block:[]},{none:[]}]),Xm=(n,s)=>mce(n),uF=n=>(s,l)=>YK(s)===n,j7=(n,s)=>(l,h)=>tF(l)===n.toUpperCase()===s,mJ=n=>{const s=yd(n.dom,n.selection.getStart());return Q(s)},F3=n=>j7("pre",n),gJ=()=>j7("summary",!0),$4=n=>(s,l)=>rE(s)===n,pJ=(n,s)=>hJ(n),L4=(n,s)=>s,vJ=n=>{const s=Ec(n),l=yd(n.dom,n.selection.getStart());return B(l)&&n.schema.isValidChild(l.nodeName,s)},q7=n=>{const s=n.selection.getRng(),l=Yt.fromDom(s.startContainer),O=ph(l,s.startOffset).map(P=>Ya(P)&&!jo(P));return s.collapsed&&O.getOr(!0)},Od=(n,s)=>(l,h)=>oe(n,(P,Z)=>P&&Z(l,h),!0)?G.some(s):G.none(),I4=(n,s)=>oB([Od([Xm],bd.none()),Od([F3(!0),mJ],bd.none()),Od([gJ()],bd.br()),Od([F3(!0),$4(!1),L4],bd.br()),Od([F3(!0),$4(!1)],bd.block()),Od([F3(!0),$4(!0),L4],bd.block()),Od([F3(!0),$4(!0)],bd.br()),Od([uF(!0),L4],bd.br()),Od([uF(!0)],bd.block()),Od([pJ],bd.br()),Od([L4],bd.br()),Od([vJ],bd.block()),Od([q7],bd.block())],[n,!!(s&&s.shiftKey)]).getOr(bd.none()),N4=(n,s,l)=>{s.selection.isCollapsed()||I_(s),!(B(l)&&F7(s,n.fakeEventName).isDefaultPrevented())&&(n.insert(s,l),B(l)&&B3(s,n.fakeEventName))},fF=(n,s)=>{const l=()=>N4(dJ,n,s),h=()=>N4(aF,n,s),O=I4(n,s);switch(oE(n)){case"linebreak":O.fold(l,l,ie);break;case"block":O.fold(h,h,ie);break;case"invert":O.fold(h,l,ie);break;default:O.fold(l,h,ie);break}},dF=ii(),yJ=dF.os.isiOS()&&dF.browser.isSafari(),hF=(n,s)=>{s.isDefaultPrevented()||(s.preventDefault(),IX(n.undoManager),n.undoManager.transact(()=>{fF(n,s)}))},mF=n=>{if(!n.collapsed)return!1;const s=n.startContainer;if(lr(s)){const l=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,h=s.data.charAt(n.startOffset-1);return l.test(h)}else return!1},bJ=n=>{let s=G.none();const l=O=>{s=G.some(O.selection.getBookmark()),O.undoManager.add()},h=(O,P)=>{O.undoManager.undo(),s.fold(ie,Z=>O.selection.moveToBookmark(Z)),hF(O,P),s=G.none()};n.on("keydown",O=>{O.keyCode===Wr.ENTER&&(yJ&&mF(n.selection.getRng())?l(n):hF(n,O))}),n.on("keyup",O=>{O.keyCode===Wr.ENTER&&s.each(()=>h(n,O))})},gF=(n,s,l)=>{const h=Dr.os.isMacOS()||Dr.os.isiOS();_2([{keyCode:Wr.END,action:Ro(GB,n,!0)},{keyCode:Wr.HOME,action:Ro(GB,n,!1)},...h?[]:[{keyCode:Wr.HOME,action:Ro(g4,n,!1),ctrlKey:!0,shiftKey:!0},{keyCode:Wr.END,action:Ro(g4,n,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:Wr.END,action:Ro(v4,n,!0)},{keyCode:Wr.HOME,action:Ro(v4,n,!1)},{keyCode:Wr.END,action:Ro(i4,n,!0,s)},{keyCode:Wr.HOME,action:Ro(i4,n,!1,s)}],l).each(O=>{l.preventDefault()})},pF=(n,s)=>{n.on("keydown",l=>{l.isDefaultPrevented()||gF(n,s,l)})},OJ=n=>{n.on("input",s=>{s.isComposing||jW(n)})},xJ=ii(),K7=(n,s,l)=>{_2([{keyCode:Wr.PAGE_UP,action:Ro(i4,n,!1,s)},{keyCode:Wr.PAGE_DOWN,action:Ro(i4,n,!0,s)}],l)},vF=n=>n.stopImmediatePropagation(),yF=n=>n.keyCode===Wr.PAGE_UP||n.keyCode===Wr.PAGE_DOWN,V3=(n,s,l)=>{l&&!n.get()?s.on("NodeChange",vF,!0):!l&&n.get()&&s.off("NodeChange",vF),n.set(l)},SJ=(n,s)=>{if(xJ.os.isMacOS())return;const l=ni(!1);n.on("keydown",h=>{yF(h)&&V3(l,n,!0)}),n.on("keyup",h=>{h.isDefaultPrevented()||K7(n,s,h),yF(h)&&l.get()&&(V3(l,n,!1),n.nodeChanged())})},J7=n=>{n.on("beforeinput",s=>{(!n.selection.isEditable()||De(s.getTargetRanges(),l=>!S9(n.dom,l)))&&s.preventDefault()})},B4=(n,s)=>{const l=s.container(),h=s.offset();return lr(l)?(l.insertData(h,n),G.some(Nn(l,h+n.length))):Ax(s).map(O=>{const P=Yt.fromText(n);return s.isAtEnd()?Yu(O,P):Ui(O,P),Nn(P.dom,n.length)})},eR=ee(B4,zs),bF=ee(B4," "),gce=(n,s,l)=>J9(n,s,l)?eR(s):bF(s),w1=n=>s=>s.fold(l=>uu(n.dom,Nn.before(l)),l=>Xc(l),l=>ld(l),l=>Rc(n.dom,Nn.after(l))),wJ=(n,s,l)=>h=>J9(n,h,l)?eR(s):bF(s),OF=n=>s=>{n.selection.setRng(s.toRange()),n.nodeChanged()},TJ=(n,s)=>n.isEditable(n.getParent(s,"summary")),Q4=n=>{const s=Nn.fromRangeStart(n.selection.getRng()),l=Yt.fromDom(n.getBody());if(n.selection.isCollapsed()){const h=ee(Rb,n),O=Nn.fromRangeStart(n.selection.getRng());return Hh(h,n.getBody(),O).bind(w1(l)).map(P=>()=>wJ(l,s,n.schema)(P).each(OF(n)))}else return G.none()},xF=n=>{const s=()=>{const l=Yt.fromDom(n.getBody());n.selection.isCollapsed()||n.getDoc().execCommand("Delete");const h=Nn.fromRangeStart(n.selection.getRng());gce(l,h,n.schema).each(OF(n))};return Zo(Dr.browser.isFirefox()&&n.selection.isEditable()&&TJ(n.dom,n.selection.getRng().startContainer),s)},SF=(n,s)=>{m7([{keyCode:Wr.SPACEBAR,action:Ro(Q4,n)},{keyCode:Wr.SPACEBAR,action:Ro(xF,n)}],s).each(l=>{s.preventDefault(),F7(n,"insertText",{data:" "}).isDefaultPrevented()||(l(),B3(n,"insertText",{data:" "}))})},CJ=n=>{n.on("keydown",s=>{s.isDefaultPrevented()||SF(n,s)})},wF=n=>RE(n)?[{keyCode:Wr.TAB,action:Ro(pQ,n,!0)},{keyCode:Wr.TAB,shiftKey:!0,action:Ro(pQ,n,!1)}]:[],kJ=(n,s)=>{_2([...wF(n)],s).each(l=>{s.preventDefault()})},AJ=n=>{n.on("keydown",s=>{s.isDefaultPrevented()||kJ(n,s)})},PJ=n=>{if(n.addShortcut("Meta+P","","mcePrint"),$K(n),Cv(n))return ni(null);{const s=Uj(n);return J7(n),gq(n),Uq(n,s),WK(n,s),bJ(n),CJ(n),OJ(n),AJ(n),pF(n,s),SJ(n,s),s}};class TF{constructor(s){this.lastPath=[],this.editor=s;let l;const h=this;"onselectionchange"in s.getDoc()||s.on("NodeChange click mouseup keyup focus",O=>{const P=s.selection.getRng(),Z={startContainer:P.startContainer,startOffset:P.startOffset,endContainer:P.endContainer,endOffset:P.endOffset};(O.type==="nodechange"||!Gg(Z,l))&&s.dispatch("SelectionChange"),l=Z}),s.on("contextmenu",()=>{s.dispatch("SelectionChange")}),s.on("SelectionChange",()=>{const O=s.selection.getStart(!0);O&&Ix(s)&&!h.isSameElementPath(O)&&s.dom.isChildOf(O,s.getBody())&&s.nodeChanged({selectionChange:!0})}),s.on("mouseup",O=>{!O.isDefaultPrevented()&&Ix(s)&&(s.selection.getNode().nodeName==="IMG"?fd.setEditorTimeout(s,()=>{s.nodeChanged()}):s.nodeChanged())})}nodeChanged(s={}){const l=this.editor.selection;let h;if(this.editor.initialized&&l&&!bx(this.editor)&&!this.editor.mode.isReadOnly()){const O=this.editor.getBody();h=l.getStart(!0)||O,(h.ownerDocument!==this.editor.getDoc()||!this.editor.dom.isChildOf(h,O))&&(h=O);const P=[];this.editor.dom.getParent(h,Z=>Z===O?!0:(P.push(Z),!1)),this.editor.dispatch("NodeChange",{...s,element:h,parents:P})}}isSameElementPath(s){let l;const h=this.editor,O=ct(h.dom.getParents(s,pe,h.getBody()));if(O.length===this.lastPath.length){for(l=O.length;l>=0&&O[l]===this.lastPath[l];l--);if(l===-1)return this.lastPath=O,!0}return this.lastPath=O,!1}}const F4=nv("image"),MJ=n=>{const s=n;return G.from(s[F4])},tR=(n,s)=>{const l=n;l[F4]=s},V4=nv("event"),z4=n=>{const s=n;return G.from(s[V4])},z3=n=>s=>{const l=s;l[V4]=n},CF=(n,s)=>z3(s)(n),kF=z3(0),EJ=z3(2),Z4=z3(1),RJ=(n=>s=>{const l=s;return G.from(l[V4]).exists(h=>h===n)})(0),DJ=()=>Object.freeze({length:0,item:n=>null}),H4=nv("mode"),$J=n=>{const s=n;return G.from(s[H4])},U4=n=>s=>{const l=s;l[H4]=n},AF=(n,s)=>U4(s)(n),PF=U4(0),nR=U4(2),MF=U4(1),EF=n=>s=>{const l=s;return G.from(l[H4]).exists(h=>h===n)},Yb=EF(0),_F=EF(1),LJ=(n,s)=>({...s,get length(){return s.length},add:(l,h)=>{if(Yb(n))if(M(l)){if(!U(h))return s.add(l,h)}else return s.add(l);return null},remove:l=>{Yb(n)&&s.remove(l)},clear:()=>{Yb(n)&&s.clear()}}),IJ=["none","copy","link","move"],NJ=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],rR=()=>{const n=new window.DataTransfer;let s="move",l="all";const h={get dropEffect(){return s},set dropEffect(O){Ze(IJ,O)&&(s=O)},get effectAllowed(){return l},set effectAllowed(O){RJ(h)&&Ze(NJ,O)&&(l=O)},get items(){return LJ(h,n.items)},get files(){return _F(h)?DJ():n.files},get types(){return n.types},setDragImage:(O,P,Z)=>{Yb(h)&&(tR(h,{image:O,x:P,y:Z}),n.setDragImage(O,P,Z))},getData:O=>_F(h)?"":n.getData(O),setData:(O,P)=>{Yb(h)&&n.setData(O,P)},clearData:O=>{Yb(h)&&n.clearData(O)}};return PF(h),h},Q2=n=>{const s=rR(),l=$J(n);return nR(n),kF(s),s.dropEffect=n.dropEffect,s.effectAllowed=n.effectAllowed,MJ(n).each(h=>s.setDragImage(h.image,h.x,h.y)),re(n.types,h=>{h!=="Files"&&s.setData(h,n.getData(h))}),re(n.files,h=>s.items.add(h)),z4(n).each(h=>{CF(s,h)}),l.each(h=>{AF(n,h),AF(s,h)}),s},BJ=n=>{const s=n.getData("text/html");return s===""?G.none():G.some(s)},RF=(n,s)=>n.setData("text/html",s),oR="x-tinymce/html",W4=ae(oR),sR="",QJ=n=>sR+n,DF=n=>n.replace(sR,""),$F=n=>n.indexOf(sR)!==-1,FJ=n=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(n),pce=(n,s)=>{let l="<"+n;const h=Xn(s,(O,P)=>P+'="'+Pg.encodeAllRaw(O)+'"');return h.length&&(l+=" "+h.join(" ")),l+">"},Y4=(n,s,l)=>{const h=n.split(/\n\n/),O=pce(s,l),P="",Z=Ie(h,he=>he.split(/\n/).join("
    ")),J=he=>O+he+P;return Z.length===1?Z[0]:Ie(Z,J).join("")},LF="%MCEPASTEBIN%",VJ=(n,s)=>{const{dom:l,selection:h}=n,O=n.getBody();s.set(h.getRng());const P=l.add(n.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},LF);Dr.browser.isFirefox()&&l.setStyle(P,"left",l.getStyle(O,"direction",!0)==="rtl"?65535:-65535),l.bind(P,"beforedeactivate focusin focusout",Z=>{Z.stopPropagation()}),P.focus(),h.select(P,!0)},zJ=(n,s)=>{const l=n.dom;if(aR(n)){let h;const O=s.get();for(;h=aR(n);)l.remove(h),l.unbind(h);O&&n.selection.setRng(O)}s.set(null)},aR=n=>n.dom.get("mcepastebin"),ZJ=n=>B(n)&&n.id==="mcepastebin",HJ=n=>{const s=n.dom,l=(Z,J)=>{Z.appendChild(J),s.remove(J,!0)},[h,...O]=se(n.getBody().childNodes,ZJ);re(O,Z=>{l(h,Z)});const P=s.select("div[id=mcepastebin]",h);for(let Z=P.length-1;Z>=0;Z--){const J=s.create("div");h.insertBefore(J,P[Z]),l(J,P[Z])}return h?h.innerHTML:""},IF=n=>n===LF,UJ=n=>{const s=ni(null);return{create:()=>VJ(n,s),remove:()=>zJ(n,s),getEl:()=>aR(n),getHtml:()=>HJ(n),getLastRng:s.get}},NF=(n,s)=>(fr.each(s,l=>{R(l,RegExp)?n=n.replace(l,""):n=n.replace(l[0],l[1])}),n),WJ=n=>{const s=Cm(),l=Vh({},s);let h="";const O=s.getVoidElements(),P=fr.makeMap("script noscript style textarea video audio iframe object"," "),Z=s.getBlockElements(),J=he=>{const _e=he.name,Ge=he;if(_e==="br"){h+=` +`;return}if(_e!=="wbr"){if(O[_e]&&(h+=" "),P[_e]){h+=" ";return}if(he.type===3&&(h+=he.value),!(he.name in s.getVoidElements())){let qe=he.firstChild;if(qe)do J(qe);while(qe=qe.next)}Z[_e]&&Ge.next&&(h+=` +`,_e==="p"&&(h+=` +`))}};return n=NF(n,[//g]),J(l.parse(n)),h},BF=n=>(n=NF(n,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/|/g,[/( ?)\u00a0<\/span>( ?)/g,(l,h,O)=>!h&&!O?" ":zs],/
    /g,/
    $/i]),n),YJ=n=>{let s=0;return()=>n+s++},XJ=n=>{const s=n.toLowerCase(),l={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return fr.hasOwn(l,s)?"image/"+l[s]:"image/"+s},$a=(n,s)=>{const l=Vh({sanitize:L0(n),sandbox_iframes:Tx(n)},n.schema);l.addNodeFilter("meta",O=>{fr.each(O,P=>{P.remove()})});const h=l.parse(s,{forced_root_block:!1,isRootContent:!0});return s1({validate:!0},n.schema).serialize(h)},QF=(n,s)=>({content:n,cancelled:s}),FF=(n,s,l)=>{const h=n.dom.create("div",{style:"display:none"},s),O=r_(n,h,l);return QF(O.node.innerHTML,O.isDefaultPrevented())},GJ=(n,s,l)=>{const h=n_(n,s,l),O=$a(n,h.content);return n.hasEventListeners("PastePostProcess")&&!h.isDefaultPrevented()?FF(n,O,l):QF(O,h.isDefaultPrevented())},iR=(n,s,l)=>GJ(n,s,l),X4=(n,s)=>(n.insertContent(s,{merge:Fw(n),paste:!0}),!0),lR=n=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(n),jJ=(n,s)=>lR(s)&&De(Zk(n),l=>ao(s.toLowerCase(),`.${l.toLowerCase()}`)),VF=(n,s,l)=>(n.undoManager.extra(()=>{l(n,s)},()=>{n.insertContent('')}),!0),cR=(n,s,l)=>(n.undoManager.extra(()=>{l(n,s)},()=>{n.execCommand("mceInsertLink",!1,s)}),!0),qJ=(n,s,l)=>!n.selection.isCollapsed()&&lR(s)?cR(n,s,l):!1,KJ=(n,s,l)=>jJ(n,s)?VF(n,s,l):!1,JJ=(n,s)=>{fr.each([qJ,KJ,X4],l=>!l(n,s,X4))},zF=(n,s,l)=>{l||!Vk(n)?X4(n,s):JJ(n,s)},eee=YJ("mceclip"),tee=n=>{const s=rR();return RF(s,n),nR(s),s},Xb=(n,s,l,h,O)=>{const P=iR(n,s,l);if(!P.cancelled){const Z=P.content,J=()=>zF(n,Z,h);O?F7(n,"insertFromPaste",{dataTransfer:tee(Z)}).isDefaultPrevented()||(J(),B3(n,"insertFromPaste")):J()}},G4=(n,s,l,h)=>{const O=l||$F(s);Xb(n,DF(s),O,!1,h)},T1=(n,s,l)=>{const h=n.dom.encode(s).replace(/\r\n/g,` +`),O=Ki(h,TE(n)),P=Y4(O,Ec(n),Yy(n));Xb(n,P,!1,!0,l)},F2=n=>{const s={};if(n&&n.types)for(let l=0;ls in n&&n[s].length>0,ZF=n=>C1(n,"text/html")||C1(n,"text/plain"),V2=(n,s)=>{const l=s.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return B(l)?n.dom.encode(l[1]):void 0},nee=(n,s,l,h)=>{const O=eee(),P=Xy(n)&&B(l.name),Z=P?V2(n,l.name):O,J=P?l.name:void 0,he=s.create(O,l,h,Z,J);return s.add(he),he},uR=(n,s)=>{v5(s.uri).each(({data:l,type:h,base64Encoded:O})=>{const P=O?l:btoa(l),Z=s.file,J=n.editorUpload.blobCache,he=J.getByData(P,h),_e=he??nee(n,J,Z,P);G4(n,``,!1,!0)})},fR=n=>n.type==="paste",HF=n=>Promise.all(Ie(n,s=>eX(s).then(l=>({file:s,uri:l})))),dR=n=>{const s=Zk(n);return l=>Sr(l.type,"image/")&&De(s,h=>XJ(h)===l.type)},UF=(n,s)=>{const l=s.items?ze(tt(s.items),O=>O.kind==="file"?[O.getAsFile()]:[]):[],h=s.files?tt(s.files):[];return se(l.length>0?l:h,dR(n))},WF=(n,s,l)=>{const h=fR(s)?s.clipboardData:s.dataTransfer;if(xx(n)&&h){const O=UF(n,h);if(O.length>0)return s.preventDefault(),HF(O).then(P=>{l&&n.selection.setRng(l),re(P,Z=>{uR(n,Z)})}),!0}return!1},ree=n=>{var s,l;return Dr.os.isAndroid()&&((l=(s=n.clipboardData)===null||s===void 0?void 0:s.items)===null||l===void 0?void 0:l.length)===0},YF=n=>Wr.metaKeyPressed(n)&&n.keyCode===86||n.shiftKey&&n.keyCode===45,Z3=(n,s,l,h,O)=>{let P=BF(l);const Z=C1(s,W4())||$F(l),J=!Z&&FJ(P),he=lR(P);(IF(P)||!P.length||J&&!he)&&(h=!0),(h||he)&&(C1(s,"text/plain")&&J?P=s["text/plain"]:P=WJ(P)),!IF(P)&&(h?T1(n,P,O):G4(n,P,Z,O))},hR=(n,s,l)=>{let h;const O=()=>s.getLastRng()||n.selection.getRng();n.on("keydown",P=>{YF(P)&&!P.isDefaultPrevented()&&(h=P.shiftKey&&P.keyCode===86)}),n.on("paste",P=>{if(P.isDefaultPrevented()||ree(P))return;const Z=l.get()==="text"||h;h=!1;const J=F2(P.clipboardData);!ZF(J)&&WF(n,P,O())||(C1(J,"text/html")?(P.preventDefault(),Z3(n,J,J["text/html"],Z,!0)):C1(J,"text/plain")&&C1(J,"text/uri-list")?(P.preventDefault(),Z3(n,J,J["text/plain"],Z,!0)):(s.create(),fd.setEditorTimeout(n,()=>{const he=s.getHtml();s.remove(),Z3(n,J,he,Z,!1)},0)))})},XF=n=>{const s=O=>Sr(O,"webkit-fake-url"),l=O=>Sr(O,"data:"),h=O=>{var P;return((P=O.data)===null||P===void 0?void 0:P.paste)===!0};n.parser.addNodeFilter("img",(O,P,Z)=>{if(!xx(n)&&h(Z))for(const J of O){const he=J.attr("src");M(he)&&!J.attr("data-mce-object")&&he!==Dr.transparentSrc&&(s(he)||!Sx(n)&&l(he))&&J.remove()}})},oee=(n,s,l)=>{hR(n,s,l),XF(n)},see=(n,s)=>{s.get()==="text"?(s.set("html"),OA(n,!1)):(s.set("text"),OA(n,!0)),n.focus()},mR=(n,s)=>{n.addCommand("mceTogglePlainTextPaste",()=>{see(n,s)}),n.addCommand("mceInsertClipboardContent",(l,h)=>{h.html&&G4(n,h.html,h.internal,!1),h.text&&T1(n,h.text,!1)})},gR=(n,s,l)=>{if(n)try{return n.clearData(),n.setData("text/html",s),n.setData("text/plain",l),n.setData(W4(),s),!0}catch{return!1}else return!1},GF=(n,s,l,h)=>{gR(n.clipboardData,s.html,s.text)?(n.preventDefault(),h()):l(s.html,h)},pR=n=>(s,l)=>{const{dom:h,selection:O}=n,P=h.create("div",{contenteditable:"false","data-mce-bogus":"all"}),Z=h.create("div",{contenteditable:"true"},s);h.setStyles(P,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),P.appendChild(Z),h.add(n.getBody(),P);const J=O.getRng();Z.focus();const he=h.createRng();he.selectNodeContents(Z),O.setRng(he),fd.setEditorTimeout(n,()=>{O.setRng(J),h.remove(P),l()},0)},vR=n=>({html:QJ(n.selection.getContent({contextual:!0})),text:n.selection.getContent({format:"text"})}),aee=n=>!!n.dom.getParent(n.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",n.getBody()),yR=n=>!n.selection.isCollapsed()||aee(n),iee=n=>s=>{!s.isDefaultPrevented()&&yR(n)&&n.selection.isEditable()&&GF(s,vR(n),pR(n),()=>{if(Dr.browser.isChromium()||Dr.browser.isFirefox()){const l=n.selection.getRng();fd.setEditorTimeout(n,()=>{n.selection.setRng(l),n.execCommand("Delete")},0)}else n.execCommand("Delete")})},lee=n=>s=>{!s.isDefaultPrevented()&&yR(n)&&GF(s,vR(n),pR(n),ie)},cee=n=>{n.on("cut",iee(n)),n.on("copy",lee(n))},jF=(n,s)=>{var l,h;return Ot.getCaretRangeFromPoint((l=s.clientX)!==null&&l!==void 0?l:0,(h=s.clientY)!==null&&h!==void 0?h:0,n.getDoc())},uee=n=>{const s=n["text/plain"];return s?s.indexOf("file://")===0:!1},H3=(n,s)=>{n.focus(),s&&n.selection.setRng(s)},fee=n=>De(n.files,s=>/^image\//.test(s.type)),qF=(n,s,l,h)=>{const O=n.getParent(l,Z=>ks(s,Z));if(!F(n.getParent(l,"summary")))return!0;if(O&&it(h,"text/html")){const Z=new DOMParser().parseFromString(h["text/html"],"text/html").body;return!F(Z.querySelector(O.nodeName.toLowerCase()))}else return!1},dee=n=>{n.on("input",s=>{const l=h=>F(h.querySelector("summary"));if(s.inputType==="deleteByDrag"){const h=se(n.dom.select("details"),l);re(h,O=>{aa(O.firstChild)&&O.firstChild.remove();const P=n.dom.create("summary");P.appendChild(Cc().dom),O.prepend(P)})}})},bR=(n,s)=>{SE(n)&&n.on("dragend dragover draggesture dragdrop drop drag",l=>{l.preventDefault(),l.stopPropagation()}),xx(n)||n.on("drop",l=>{const h=l.dataTransfer;h&&fee(h)&&l.preventDefault()}),n.on("drop",l=>{if(l.isDefaultPrevented())return;const h=jF(n,l);if(Q(h))return;const O=F2(l.dataTransfer),P=C1(O,W4());if((!ZF(O)||uee(O))&&WF(n,l,h))return;const Z=O[W4()],J=Z||O["text/html"]||O["text/plain"],he=qF(n.dom,n.schema,h.startContainer,O),_e=s.get();_e&&!he||J&&(l.preventDefault(),fd.setEditorTimeout(n,()=>{n.undoManager.transact(()=>{(Z||_e&&he)&&n.execCommand("Delete"),H3(n,h);const Ge=BF(J);O["text/html"]?G4(n,Ge,P,!0):T1(n,Ge,!0)})}))}),n.on("dragstart",l=>{s.set(!0)}),n.on("dragover dragend",l=>{xx(n)&&!s.get()&&(l.preventDefault(),H3(n,jF(n,l))),l.type==="dragend"&&s.set(!1)}),dee(n)},KF=n=>{const s=O=>P=>{O(n,P)},l=wE(n);E(l)&&n.on("PastePreProcess",s(l));const h=Fk(n);E(h)&&n.on("PastePostProcess",s(h))},hee=(n,s)=>{n.on("PastePreProcess",l=>{l.content=s(n,l.content,l.internal)})},mee=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,JF=n=>fr.trim(n).replace(mee,d0).toLowerCase(),gee=(n,s,l)=>{const h=Bw(n);if(l||h==="all"||!Qw(n))return s;const O=h?h.split(/[, ]/):[];if(O&&h!=="none"){const P=n.dom,Z=n.selection.getNode();s=s.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(J,he,_e,Ge)=>{const qe=P.parseStyle(P.decode(_e)),ot={};for(let Vt=0;Vt]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return s=s.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(P,Z,J,he)=>Z+' style="'+J+'"'+he),s},pee=n=>{(Dr.browser.isChromium()||Dr.browser.isSafari())&&hee(n,gee)},eV=n=>{const s=ni(!1),l=ni(Vw(n)?"text":"html"),h=UJ(n);pee(n),mR(n,l),KF(n),n.on("PreInit",()=>{cee(n),bR(n,s),oee(n,h,l)})},vee=n=>{n.on("click",s=>{n.dom.getParent(s.target,"details")&&s.preventDefault()})},yee=n=>{n.parser.addNodeFilter("details",s=>{const l=_l(n);re(s,h=>{l==="expanded"?h.attr("open","open"):l==="collapsed"&&h.attr("open",null)})}),n.serializer.addNodeFilter("details",s=>{const l=r9(n);re(s,h=>{l==="expanded"?h.attr("open","open"):l==="collapsed"&&h.attr("open",null)})})},bee=n=>{vee(n),yee(n)},Oee=aa,tV=lr,xee=n=>Os(n.dom),See=n=>Zl(n.dom),j4=n=>s=>Gs(Yt.fromDom(n),s),nV=(n,s,l)=>wu(Yt.fromDom(n),h=>See(h)||l.isBlock(Vs(h)),j4(s)).getOr(Yt.fromDom(s)).dom,rV=(n,s)=>wu(Yt.fromDom(n),xee,j4(s)),oV=(n,s,l)=>{const h=new ca(n,s),O=l?h.next.bind(h):h.prev.bind(h);let P=n;for(let Z=l?n:O();Z&&!Oee(Z);Z=O())go(Z)&&(P=Z);return P},wee=(n,s,l)=>{const O=Nn.fromRangeStart(n).getNode(),P=nV(O,s,l),Z=oV(O,P,!1),J=oV(O,P,!0),he=document.createRange();return rV(Z,P).fold(()=>{tV(Z)?he.setStart(Z,0):he.setStartBefore(Z)},_e=>he.setStartBefore(_e.dom)),rV(J,P).fold(()=>{tV(J)?he.setEnd(J,J.data.length):he.setEndAfter(J)},_e=>he.setEndAfter(_e.dom)),he},Tee=n=>{const s=wee(n.selection.getRng(),n.getBody(),n.schema);n.selection.setRng(a2(s))},Cee=n=>{n.on("mousedown",s=>{s.detail>=3&&(s.preventDefault(),Tee(n))})};var z2;(function(n){n.Before="before",n.After="after"})(z2||(z2={}));const kee=(n,s)=>Math.abs(n.left-s),q4=(n,s)=>Math.abs(n.right-s),sV=(n,s)=>n>=s.top&&n<=s.bottom,Aee=(n,s)=>n.tops.top,aV=(n,s)=>{const l=XM(n,s)/Math.min(n.height,s.height);return Aee(n,s)&&l>.5},iV=(n,s)=>{const l=se(n,h=>sV(s,h));return YM(l).fold(()=>[[],n],h=>{const{pass:O,fail:P}=te(n,Z=>aV(Z,h));return[O,P]})},OR=(n,s)=>({node:n.node,position:kee(n,s)s>n.left&&s{const h=Ge=>go(Ge.node)?G.some(Ge):Xr(Ge.node)?K4(tt(Ge.node.childNodes),s,l):G.none(),O=(Ge,qe)=>{if(Ge.length>=2){const ot=h(Ge[0]).getOr(Ge[0]),Et=h(Ge[1]).getOr(Ge[1]);if(Math.abs(qe(ot,s,l)-qe(Et,s,l))<2){if(lr(ot.node))return G.some(ot);if(lr(Et.node))return G.some(Et)}}return G.none()},P=(Ge,qe)=>{const ot=je(Ge,(Et,Vt)=>qe(Et,s,l)-qe(Vt,s,l));return O(ot,qe).orThunk(()=>wt(ot,h))},[Z,J]=iV(mB(n),l),{pass:he,fail:_e}=te(J,Ge=>Ge.topP(_e,cw)).orThunk(()=>P(he,cw))},Mee=(n,s,l,h)=>{const O=(P,Z)=>{const J=_e=>Xr(_e)&&_e.classList.contains("mce-drag-container"),he=se(P.dom.childNodes,be(J));return Z.fold(()=>K4(he,l,h),_e=>{const Ge=se(he,qe=>qe!==_e.dom);return K4(Ge,l,h)}).orThunk(()=>(Gs(P,n)?G.none():yg(P)).bind(Ge=>O(Ge,G.some(P))))};return O(s,G.none())},lV=(n,s,l)=>{const h=Yt.fromDom(n),O=qf(h),Z=Yt.fromPoint(O,s,l).filter(J=>tc(h,J)).getOr(h);return Mee(h,Z,s,l)},cV=(n,s,l)=>lV(n,s,l).filter(h=>B0(h.node)).map(h=>OR(h,s)),xR=n=>{var s,l;const h=n.getBoundingClientRect(),O=n.ownerDocument,P=O.documentElement,Z=O.defaultView;return{top:h.top+((s=Z==null?void 0:Z.scrollY)!==null&&s!==void 0?s:0)-P.clientTop,left:h.left+((l=Z==null?void 0:Z.scrollX)!==null&&l!==void 0?l:0)-P.clientLeft}},Eee=n=>n.inline?xR(n.getBody()):{left:0,top:0},_ee=n=>{const s=n.getBody();return n.inline?{left:s.scrollLeft,top:s.scrollTop}:{left:0,top:0}},Ree=n=>{const s=n.getBody(),l=n.getDoc().documentElement,h={left:s.scrollLeft,top:s.scrollTop},O={left:s.scrollLeft||l.scrollLeft,top:s.scrollTop||l.scrollTop};return n.inline?h:O},U3=(n,s)=>{if(s.target.ownerDocument!==n.getDoc()){const l=xR(n.getContentAreaContainer()),h=Ree(n);return{left:s.pageX-l.left+h.left,top:s.pageY-l.top+h.top}}return{left:s.pageX,top:s.pageY}},Dee=(n,s,l)=>({pageX:l.left-n.left+s.left,pageY:l.top-n.top+s.top}),$ee=(n,s)=>Dee(Eee(n),_ee(n),U3(n,s)),SR=n=>({target:n,srcElement:n}),Lee=(n,s,l,h)=>({...s,dataTransfer:h,type:n,...SR(l)}),Iee=(n,s,l)=>{const h=Te("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:n,composedPath:h,initEvent:h,preventDefault:ie,stopImmediatePropagation:ie,stopPropagation:ie,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:h,initMouseEvent:h,getModifierState:h,dataTransfer:l,...SR(s)}},Nee=(n,s)=>{const l=Q2(n);return s==="dragstart"?(kF(l),PF(l)):s==="drop"?(EJ(l),nR(l)):(Z4(l),MF(l)),l},Bee=(n,s,l,h)=>{const O=Nee(l,n);return U(h)?Iee(n,s,O):Lee(n,h,s,O)},J4=32,eP=100,W3=8,Y3=16,uV=Os,Qee=GM(uV,Zl),Fee=(n,s,l)=>uV(l)&&l!==s&&n.isEditable(l.parentElement),vce=(n,s,l)=>Q(s)||s===l||n.dom.isChildOf(s,l)?!1:n.dom.isEditable(s),Vee=(n,s,l,h)=>{const O=n.dom,P=s.cloneNode(!0);O.setStyles(P,{width:l,height:h}),O.setAttrib(P,"data-mce-selected",null);const Z=O.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return O.setStyles(Z,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:l,height:h}),O.setStyles(P,{margin:0,boxSizing:"border-box"}),Z.appendChild(P),Z},wR=(n,s)=>{n.parentNode!==s&&s.appendChild(n)},Z2=(n,s)=>l=>()=>{const h=n==="left"?l.scrollX:l.scrollY;l.scroll({[n]:h+s,behavior:"smooth"})},X3=Z2("left",-J4),fV=Z2("left",J4),dV=Z2("top",-J4),TR=Z2("top",J4),zee=(n,s,l,h,O,P,Z,J,he,_e,Ge,qe)=>{let ot=0,Et=0;n.style.left=s.pageX+"px",n.style.top=s.pageY+"px",s.pageX+l>O&&(ot=s.pageX+l-O),s.pageY+h>P&&(Et=s.pageY+h-P),n.style.width=l-ot+"px",n.style.height=h-Et+"px";const Vt=he.clientHeight,kt=he.clientWidth,It=Z+he.getBoundingClientRect().top,cn=J+he.getBoundingClientRect().left;Ge.on(xn=>{xn.intervalId.clear(),xn.dragging&&qe&&(Z+W3>=Vt?xn.intervalId.set(TR(_e)):Z-W3<=0?xn.intervalId.set(dV(_e)):J+W3>=kt?xn.intervalId.set(fV(_e)):J-W3<=0?xn.intervalId.set(X3(_e)):It+Y3>=window.innerHeight?xn.intervalId.set(TR(window)):It-Y3<=0?xn.intervalId.set(dV(window)):cn+Y3>=window.innerWidth?xn.intervalId.set(fV(window)):cn-Y3<=0&&xn.intervalId.set(X3(window)))})},tP=n=>{n&&n.parentNode&&n.parentNode.removeChild(n)},hV=(n,s)=>{const l=n.getParent(s.parentNode,n.isBlock);tP(s),l&&l!==n.getRoot()&&n.isEmpty(l)&&D(Yt.fromDom(l))},Zee=n=>n.button===0,Hee=(n,s)=>({pageX:s.pageX-n.relX,pageY:s.pageY+5}),mV=(n,s)=>l=>{if(Zee(l)){const h=le(s.dom.getParents(l.target),Qee).getOr(null);if(B(h)&&Fee(s.dom,s.getBody(),h)){const O=s.dom.getPos(h),P=s.getBody(),Z=s.getDoc().documentElement;n.set({element:h,dataTransfer:rR(),dragging:!1,screenX:l.screenX,screenY:l.screenY,maxX:(s.inline?P.scrollWidth:Z.offsetWidth)-2,maxY:(s.inline?P.scrollHeight:Z.offsetHeight)-2,relX:l.pageX-O.x,relY:l.pageY-O.y,width:h.offsetWidth,height:h.offsetHeight,ghost:Vee(s,h,h.offsetWidth,h.offsetHeight),intervalId:UM(eP)})}}},Uee=(n,s,l)=>{n._selectionOverrides.hideFakeCaret(),cV(n.getBody(),s,l).fold(()=>n.selection.placeCaretAt(s,l),h=>{const O=n._selectionOverrides.showCaret(1,h.node,h.position===z2.Before,!1);O?n.selection.setRng(O):n.selection.placeCaretAt(s,l)})},nP=(n,s,l,h,O)=>{s==="dragstart"&&RF(h,n.dom.getOuterHTML(l));const P=Bee(s,l,h,O);return n.dispatch(s,P)},Wee=(n,s)=>{const l=By((O,P)=>Uee(s,O,P),0);s.on("remove",l.cancel);const h=n;return O=>n.on(P=>{const Z=Math.max(Math.abs(O.screenX-P.screenX),Math.abs(O.screenY-P.screenY));if(!P.dragging&&Z>10){const J=nP(s,"dragstart",P.element,P.dataTransfer,O);if(B(J.dataTransfer)&&(P.dataTransfer=J.dataTransfer),J.isDefaultPrevented())return;P.dragging=!0,s.focus()}if(P.dragging){const J=O.currentTarget===s.getDoc().documentElement,he=Hee(P,$ee(s,O));wR(P.ghost,s.getBody()),zee(P.ghost,he,P.width,P.height,P.maxX,P.maxY,O.clientY,O.clientX,s.getContentAreaContainer(),s.getWin(),h,J),l.throttle(O.clientX,O.clientY)}})},Yee=n=>{const s=n.getSel();if(B(s)){const h=s.getRangeAt(0).startContainer;return lr(h)?h.parentNode:h}else return null},Xee=(n,s)=>l=>{n.on(h=>{var O;if(h.intervalId.clear(),h.dragging){if(vce(s,Yee(s.selection),h.element)){const P=(O=s.getDoc().elementFromPoint(l.clientX,l.clientY))!==null&&O!==void 0?O:s.getBody();nP(s,"drop",P,h.dataTransfer,l).isDefaultPrevented()||s.undoManager.transact(()=>{hV(s.dom,h.element),BJ(h.dataTransfer).each(J=>s.insertContent(J)),s._selectionOverrides.hideFakeCaret()})}nP(s,"dragend",s.getBody(),h.dataTransfer,l)}}),kR(n)},CR=(n,s,l)=>{n.on(h=>{h.intervalId.clear(),h.dragging&&l.fold(()=>nP(s,"dragend",h.element,h.dataTransfer),O=>nP(s,"dragend",h.element,h.dataTransfer,O))}),kR(n)},Gee=(n,s)=>l=>CR(n,s,G.some(l)),kR=n=>{n.on(s=>{s.intervalId.clear(),tP(s.ghost)}),n.clear()},jee=n=>{const s=_g(),l=Da.DOM,h=document,O=mV(s,n),P=Wee(s,n),Z=Xee(s,n),J=Gee(s,n);n.on("mousedown",O),n.on("mousemove",P),n.on("mouseup",Z),l.bind(h,"mousemove",P),l.bind(h,"mouseup",J),n.on("remove",()=>{l.unbind(h,"mousemove",P),l.unbind(h,"mouseup",J)}),n.on("keydown",he=>{he.keyCode===Wr.ESC&&CR(s,n,G.none())})},qee=n=>{const s=O=>{if(!O.isDefaultPrevented()){const P=O.dataTransfer;P&&(Ze(P.types,"Files")||P.files.length>0)&&(O.preventDefault(),O.type==="drop"&&N5(n,"Dropped file type is not supported"))}},l=O=>{$A(n,O.target)&&s(O)},h=()=>{const O=Da.DOM,P=n.dom,Z=document,J=n.inline?n.getBody():n.getDoc(),he=["drop","dragover"];re(he,_e=>{O.bind(Z,_e,l),P.bind(J,_e,s)}),n.on("remove",()=>{re(he,_e=>{O.unbind(Z,_e,l),P.unbind(J,_e,s)})})};n.on("init",()=>{fd.setEditorTimeout(n,h,0)})},Kee=n=>{jee(n),Ox(n)&&qee(n)},Jee=n=>{const s=By(()=>{if(!n.removed&&n.getBody().contains(document.activeElement)){const l=n.selection.getRng();if(l.collapsed){const h=C2(n,l,!1);n.selection.setRng(h)}}},0);n.on("focus",()=>{s.throttle()}),n.on("blur",()=>{s.cancel()})},ete=n=>{n.on("init",()=>{n.on("focusin",s=>{const l=s.target;if(ei(l)){const h=Lb(n.getBody(),l),O=Os(h)?h:l;n.selection.getNode()!==O&&T2(n,O).each(P=>n.selection.setRng(P))}})})},H2=Os,tte=(n,s)=>Lb(n.getBody(),s),nte=n=>{const s=n.selection,l=n.dom,h=n.getBody(),O=Xw(n,h,l.isBlock,()=>o1(n)),P="sel-"+l.uniqueId(),Z="data-mce-selected";let J;const he=Qr=>B(Qr)&&l.hasClass(Qr,"mce-offscreen-selection"),_e=Qr=>Qr!==h&&(H2(Qr)||ei(Qr))&&l.isChildOf(Qr,h)&&l.isEditable(Qr.parentNode),Ge=Qr=>{Qr&&s.setRng(Qr)},qe=(Qr,zn,Bn,tr=!0)=>n.dispatch("ShowCaret",{target:zn,direction:Qr,before:Bn}).isDefaultPrevented()?null:(tr&&s.scrollIntoView(zn,Qr===-1),O.show(Bn,zn)),ot=Qr=>{Qr.hasAttribute("data-mce-caret")&&(Pn(Qr),s.scrollIntoView(Qr))},Et=()=>{n.on("click",zn=>{l.isEditable(zn.target)||(zn.preventDefault(),n.focus())}),n.on("blur NewBlock",$n),n.on("ResizeWindow FullscreenStateChanged",O.reposition),n.on("tap",zn=>{const Bn=zn.target,tr=tte(n,Bn);H2(tr)?(zn.preventDefault(),T2(n,tr).each(bn)):_e(Bn)&&T2(n,Bn).each(bn)},!0),n.on("mousedown",zn=>{const Bn=zn.target;if(Bn!==h&&Bn.nodeName!=="HTML"&&!l.isChildOf(Bn,h)||!RG(n,zn.clientX,zn.clientY))return;$n(),gr();const tr=tte(n,Bn);H2(tr)?(zn.preventDefault(),T2(n,tr).each(bn)):cV(h,zn.clientX,zn.clientY).each(eo=>{zn.preventDefault();const po=qe(1,eo.node,eo.position===z2.Before,!1);Ge(po),zl(tr)?tr.focus():n.getBody().focus()})}),n.on("keypress",zn=>{Wr.modifierPressed(zn)||H2(s.getNode())&&zn.preventDefault()}),n.on("GetSelectionRange",zn=>{let Bn=zn.range;if(J){if(!J.parentNode){J=null;return}Bn=Bn.cloneRange(),Bn.selectNode(J),zn.range=Bn}}),n.on("SetSelectionRange",zn=>{zn.range=It(zn.range);const Bn=bn(zn.range,zn.forward);Bn&&(zn.range=Bn)});const Qr=zn=>Xr(zn)&&zn.id==="mcepastebin";n.on("AfterSetSelectionRange",zn=>{const Bn=zn.range,tr=Bn.startContainer.parentElement;!kt(Bn)&&!Qr(tr)&&gr(),he(tr)||$n()}),Kee(n),Jee(n),ete(n)},Vt=Qr=>bt(Qr)||tn(Qr)||hn(Qr),kt=Qr=>Vt(Qr.startContainer)||Vt(Qr.endContainer),It=Qr=>{const zn=n.schema.getVoidElements(),Bn=l.createRng(),tr=Qr.startContainer,eo=Qr.startOffset,po=Qr.endContainer,ls=Qr.endOffset;return it(zn,tr.nodeName.toLowerCase())?eo===0?Bn.setStartBefore(tr):Bn.setStartAfter(tr):Bn.setStart(tr,eo),it(zn,po.nodeName.toLowerCase())?ls===0?Bn.setEndBefore(po):Bn.setEndAfter(po):Bn.setEnd(po,ls),Bn},cn=(Qr,zn)=>{const Bn=Yt.fromDom(n.getBody()),tr=n.getDoc(),eo=Sc(Bn,"#"+P).getOrThunk(()=>{const ys=Yt.fromHtml('
    ',tr);return Ra(ys,"id",P),Ci(Bn,ys),ys}),po=l.createRng();bh(eo),Ta(eo,[Yt.fromText(zs,tr),Yt.fromDom(zn),Yt.fromText(zs,tr)]),po.setStart(eo.dom.firstChild,1),po.setEnd(eo.dom.lastChild,0),nc(eo,{top:l.getPos(Qr,n.getBody()).y+"px"}),AA(eo);const ls=s.getSel();return ls&&(ls.removeAllRanges(),ls.addRange(po)),po},xn=Qr=>{const zn=Qr.cloneNode(!0),Bn=n.dispatch("ObjectSelected",{target:Qr,targetClone:zn});if(Bn.isDefaultPrevented())return null;const tr=cn(Qr,Bn.targetClone),eo=Yt.fromDom(Qr);return re(sl(Yt.fromDom(n.getBody()),`*[${Z}]`),po=>{Gs(eo,po)||ci(po,Z)}),l.getAttrib(Qr,Z)||Qr.setAttribute(Z,"1"),J=Qr,gr(),tr},bn=(Qr,zn)=>{if(!Qr)return null;if(Qr.collapsed){if(!kt(Qr)){const po=zn?1:-1,ls=zg(po,h,Qr),ys=ls.getNode(!zn);if(B(ys)){if(B0(ys))return qe(po,ys,zn?!ls.isAtEnd():!1,!1);if(vt(ys)&&Os(ys.nextSibling)){const $s=l.createRng();return $s.setStart(ys,0),$s.setEnd(ys,0),$s}}const ma=ls.getNode(zn);if(B(ma)){if(B0(ma))return qe(po,ma,zn?!1:!ls.isAtEnd(),!1);if(vt(ma)&&Os(ma.previousSibling)){const $s=l.createRng();return $s.setStart(ma,1),$s.setEnd(ma,1),$s}}}return null}let Bn=Qr.startContainer,tr=Qr.startOffset;const eo=Qr.endOffset;if(lr(Bn)&&tr===0&&H2(Bn.parentNode)&&(Bn=Bn.parentNode,tr=l.nodeIndex(Bn),Bn=Bn.parentNode),!Xr(Bn))return null;if(eo===tr+1&&Bn===Qr.endContainer){const po=Bn.childNodes[tr];if(_e(po))return xn(po)}return null},$n=()=>{J&&J.removeAttribute(Z),Sc(Yt.fromDom(n.getBody()),"#"+P).each(Ks),J=null},rr=()=>{O.destroy(),J=null},gr=()=>{O.hide()};return Cv(n)||Et(),{showCaret:qe,showBlockCaretContainer:ot,hideFakeCaret:gr,destroy:rr}},gV=(n,s)=>{let l=s;for(let h=n.previousSibling;lr(h);h=h.previousSibling)l+=h.data.length;return l},pV=(n,s,l,h,O)=>{if(lr(l)&&(h<0||h>l.data.length))return[];const P=O&&lr(l)?[gV(l,h)]:[h];let Z=l;for(;Z!==s&&Z.parentNode;)P.push(n.nodeIndex(Z,O)),Z=Z.parentNode;return Z===s?P.reverse():[]},G3=(n,s,l,h,O,P,Z=!1)=>{const J=pV(n,s,l,h,Z),he=pV(n,s,O,P,Z);return{start:J,end:he}},vV=(n,s)=>{const l=s.slice(),h=l.pop();return W(h)?oe(l,(P,Z)=>P.bind(J=>G.from(J.childNodes[Z])),G.some(n)).bind(P=>lr(P)&&(h<0||h>P.data.length)?G.none():G.some({node:P,offset:h})):G.none()},yV=(n,s)=>vV(n,s.start).bind(({node:l,offset:h})=>vV(n,s.end).map(({node:O,offset:P})=>{const Z=document.createRange();return Z.setStart(l,h),Z.setEnd(O,P),Z})),rte=(n,s,l,h=!1)=>G3(n,s,l.startContainer,l.startOffset,l.endContainer,l.endOffset,h),Gb=(n,s,l)=>{if(s&&n.isEmpty(s)&&!l(s)){const h=s.parentNode;n.remove(s,lr(s.firstChild)&&Ba(s.firstChild.data)),Gb(n,h,l)}},jb=(n,s,l,h=!0)=>{const O=s.startContainer.parentNode,P=s.endContainer.parentNode;s.deleteContents(),h&&!l(s.startContainer)&&(lr(s.startContainer)&&s.startContainer.data.length===0&&n.remove(s.startContainer),lr(s.endContainer)&&s.endContainer.data.length===0&&n.remove(s.endContainer),Gb(n,O,l),O!==P&&Gb(n,P,l))},rP=(n,s)=>G.from(n.dom.getParent(s.startContainer,n.dom.isBlock)),AR=(n,s,l)=>{const h=n.dynamicPatternsLookup({text:l,block:s});return{...n,blockPatterns:px(h).concat(n.blockPatterns),inlinePatterns:Tw(h).concat(n.inlinePatterns)}},bV=(n,s,l,h)=>{const O=n.createRng();return O.setStart(s,0),O.setEnd(l,h),O.toString()},ote=n=>/^\s[^\s]/.test(n),PR=(n,s,l)=>{vQ(s,0,s).each(O=>{const P=O.container;O4(P,l.start.length,s).each(he=>{const _e=n.createRng();_e.setStart(P,0),_e.setEnd(he.container,he.offset),jb(n,_e,Ge=>Ge===s)});const Z=Yt.fromDom(P),J=su(Z);ote(J)&&rc(Z,J.slice(1))})},ste=(n,s)=>{const l=n.dom,h=s.pattern,O=yV(l.getRoot(),s.range).getOrDie("Unable to resolve path range"),P=(Z,J)=>{const he=J.get(Z);return N(he)&&yt(he).exists(_e=>it(_e,"block"))};return rP(n,O).each(Z=>{h.type==="block-format"?P(h.format,n.formatter)&&n.undoManager.transact(()=>{PR(n.dom,Z,h),n.formatter.apply(h.format)}):h.type==="block-command"&&n.undoManager.transact(()=>{PR(n.dom,Z,h),n.execCommand(h.cmd,!1,h.value)})}),!0},ate=n=>je(n,(s,l)=>l.start.length-s.start.length),ite=(n,s)=>{const l=ate(n),h=s.replace(zs," ");return le(l,O=>s.indexOf(O.start)===0||h.indexOf(O.start)===0)},MR=(n,s,l,h)=>{var O;const P=n.dom,Z=Ec(n);if(!P.is(s,Z))return[];const J=(O=s.textContent)!==null&&O!==void 0?O:"";return ite(l.blockPatterns,J).map(he=>fr.trim(J).length===he.start.length?[]:[{pattern:he,range:G3(P,P.getRoot(),s,0,s,0,h)}]).getOr([])},lte=(n,s)=>{if(s.length===0)return;const l=n.selection.getBookmark();re(s,h=>ste(n,h)),n.selection.moveToBookmark(l)},OV=(n,s)=>n.create("span",{"data-mce-type":"bookmark",id:s}),oP=(n,s)=>{const l=n.createRng();return l.setStartAfter(s.start),l.setEndBefore(s.end),l},xV=(n,s,l)=>{const h=yV(n.getRoot(),l).getOrDie("Unable to resolve path range"),O=h.startContainer,P=h.endContainer,Z=h.endOffset===0?P:P.splitText(h.endOffset),J=h.startOffset===0?O:O.splitText(h.startOffset),he=J.parentNode,_e=Z.parentNode;return{prefix:s,end:_e.insertBefore(OV(n,s+"-end"),Z),start:he.insertBefore(OV(n,s+"-start"),J)}},SV=(n,s,l)=>{Gb(n,n.get(s.prefix+"-end"),l),Gb(n,n.get(s.prefix+"-start"),l)},ER=n=>n.start.length===0,wV=n=>(s,l)=>{const O=s.data.substring(0,l),P=O.lastIndexOf(n.charAt(n.length-1)),Z=O.lastIndexOf(n);return Z!==-1?Z+n.length:P!==-1?P+1:-1},_R=(n,s,l,h)=>{const O=s.start;return E3(n,h.container,h.offset,wV(O),l).bind(Z=>{var J,he;const _e=(he=(J=l.textContent)===null||J===void 0?void 0:J.indexOf(O))!==null&&he!==void 0?he:-1;if(_e!==-1&&Z.offset>=_e+O.length){const qe=n.createRng();return qe.setStart(Z.container,Z.offset-O.length),qe.setEnd(Z.container,Z.offset),G.some(qe)}else{const qe=Z.offset-O.length;return M3(Z.container,qe,l).map(ot=>{const Et=n.createRng();return Et.setStart(ot.container,ot.offset),Et.setEnd(Z.container,Z.offset),Et}).filter(ot=>ot.toString()===O).orThunk(()=>_R(n,s,l,Wh(Z.container,0)))}})},RR=(n,s,l,h,O,P=!1)=>{if(s.start.length===0&&!P){const Z=n.createRng();return Z.setStart(l,h),Z.setEnd(l,h),G.some(Z)}return P3(l,h,O).bind(Z=>_R(n,s,O,Z).bind(he=>{var _e;if(P){if(he.endContainer===Z.container&&he.endOffset===Z.offset)return G.none();if(Z.offset===0&&((_e=he.endContainer.textContent)===null||_e===void 0?void 0:_e.length)===he.endOffset)return G.none()}return G.some(he)}))},DR=(n,s,l,h)=>{const O=n.dom,P=O.getRoot(),Z=l.pattern,J=l.position.container,he=l.position.offset;return M3(J,he-l.pattern.end.length,s).bind(_e=>{const Ge=G3(O,P,_e.container,_e.offset,J,he,h);if(ER(Z))return G.some({matches:[{pattern:Z,startRng:Ge,endRng:Ge}],position:_e});{const qe=sP(n,l.remainingPatterns,_e.container,_e.offset,s,h),ot=qe.getOr({matches:[],position:_e}),Et=ot.position;return RR(O,Z,Et.container,Et.offset,s,qe.isNone()).map(kt=>{const It=rte(O,P,kt,h);return{matches:ot.matches.concat([{pattern:Z,startRng:It,endRng:Ge}]),position:Wh(kt.startContainer,kt.startOffset)}})}})},sP=(n,s,l,h,O,P)=>{const Z=n.dom;return P3(l,h,Z.getRoot()).bind(J=>{const he=bV(Z,O,l,h);for(let _e=0;_e0)return sP(n,s,l,h-1,O,P);if(ot.isSome())return ot}return G.none()})},aP=(n,s,l)=>{n.selection.setRng(l),s.type==="inline-format"?re(s.format,h=>{n.formatter.apply(h)}):n.execCommand(s.cmd,!1,s.value)},cte=(n,s,l,h)=>{const O=oP(n.dom,l);jb(n.dom,O,h),aP(n,s,O)},ute=(n,s,l,h,O)=>{const P=n.dom,Z=oP(P,h),J=oP(P,l);jb(P,J,O),jb(P,Z,O);const he={prefix:l.prefix,start:l.end,end:h.start},_e=oP(P,he);aP(n,s,_e)},TV=(n,s)=>{const l=nv("mce_textpattern"),h=ue(s,(O,P)=>{const Z=xV(n,l+`_end${O.length}`,P.endRng);return O.concat([{...P,endMarker:Z}])},[]);return ue(h,(O,P)=>{const Z=h.length-O.length-1,J=ER(P.pattern)?P.endMarker:xV(n,l+`_start${Z}`,P.startRng);return O.concat([{...P,startMarker:J}])},[])},fte=n=>je(n,(s,l)=>l.end.length-s.end.length),dte=(n,s)=>{const l=Xe(n,h=>De(s,O=>h.pattern.start===O.pattern.start&&h.pattern.end===O.pattern.end));return n.length===s.length?l?n:s:n.length>s.length?n:s},CV=(n,s,l,h,O,P)=>{const Z=sP(n,O.inlinePatterns,l,h,s,P).fold(()=>[],he=>he.matches),J=sP(n,fte(O.inlinePatterns),l,h,s,P).fold(()=>[],he=>he.matches);return dte(Z,J)},kV=(n,s)=>{if(s.length===0)return;const l=n.dom,h=n.selection.getBookmark(),O=TV(l,s);re(O,P=>{const Z=l.getParent(P.startMarker.start,l.isBlock),J=he=>he===Z;ER(P.pattern)?cte(n,P.pattern,P.endMarker,J):ute(n,P.pattern,P.startMarker,P.endMarker,J),SV(l,P.endMarker,J),SV(l,P.startMarker,J)}),n.selection.moveToBookmark(h)},hte=(n,s)=>{const l=n.selection.getRng();return rP(n,l).map(h=>{var O;const P=Math.max(0,l.startOffset),Z=AR(s,h,(O=h.textContent)!==null&&O!==void 0?O:""),J=CV(n,h,l.startContainer,P,Z,!0),he=MR(n,h,Z,!0);return he.length>0||J.length>0?(n.undoManager.add(),n.undoManager.extra(()=>{n.execCommand("mceInsertNewLine")},()=>{Re(n),kV(n,J),lte(n,he);const _e=n.selection.getRng(),Ge=P3(_e.startContainer,_e.startOffset,n.dom.getRoot());n.execCommand("mceInsertNewLine"),Ge.each(qe=>{const ot=qe.container;ot.data.charAt(qe.offset-1)===Cg&&(ot.deleteData(qe.offset-1,1),Gb(n.dom,ot.parentNode,Et=>Et===n.dom.getRoot()))})}),!0):!1}).getOr(!1)},mte=(n,s)=>{const l=n.selection.getRng();rP(n,l).map(h=>{const O=Math.max(0,l.startOffset-1),P=bV(n.dom,h,l.startContainer,O),Z=AR(s,h,P),J=CV(n,h,l.startContainer,O,Z,!1);J.length>0&&n.undoManager.transact(()=>{kV(n,J)})})},AV=(n,s,l)=>{for(let h=0;hAV(n,s,(l,h)=>l===h.keyCode&&!Wr.modifierPressed(h)),gte=(n,s)=>AV(n,s,(l,h)=>l.charCodeAt(0)===h.charCode),$R=n=>{const s=[",",".",";",":","!","?"],l=[32],h=()=>lu(wx(n),CE(n)),O=()=>Hw(n);n.on("keydown",Z=>{if(Z.keyCode===13&&!Wr.modifierPressed(Z)&&n.selection.isCollapsed()){const J=h();(J.inlinePatterns.length>0||J.blockPatterns.length>0||O())&&hte(n,J)&&Z.preventDefault()}},!0);const P=()=>{if(n.selection.isCollapsed()){const Z=h();(Z.inlinePatterns.length>0||O())&&mte(n,Z)}};n.on("keyup",Z=>{PV(l,Z)&&P()}),n.on("keypress",Z=>{gte(s,Z)&&fd.setEditorTimeout(n,P)})},pte=n=>{$R(n)},vte=n=>{const s=fr.each,l=Wr.BACKSPACE,h=Wr.DELETE,O=n.dom,P=n.selection,Z=n.parser,J=Dr.browser,he=J.isFirefox(),_e=J.isChromium()||J.isSafari(),Ge=Dr.deviceType.isiPhone()||Dr.deviceType.isiPad(),qe=Dr.os.isMacOS()||Dr.os.isiOS(),ot=(ro,Lo)=>{try{n.getDoc().execCommand(ro,!1,String(Lo))}catch{}},Et=ro=>ro.isDefaultPrevented(),Vt=()=>{const ro=yr=>{const Bo=O.create("body"),Ls=yr.cloneContents();return Bo.appendChild(Ls),P.serializer.serialize(Bo,{format:"html"})},Lo=yr=>{const Bo=ro(yr),Ls=O.createRng();Ls.selectNode(n.getBody());const Aa=ro(Ls);return Bo===Aa};n.on("keydown",yr=>{const Bo=yr.keyCode;if(!Et(yr)&&(Bo===h||Bo===l)&&n.selection.isEditable()){const Ls=n.selection.isCollapsed(),Aa=n.getBody();if(Ls&&!ta(Yt.fromDom(Aa))||!Ls&&!Lo(n.selection.getRng()))return;yr.preventDefault(),n.setContent(""),Aa.firstChild&&O.isBlock(Aa.firstChild)?n.selection.setCursorLocation(Aa.firstChild,0):n.selection.setCursorLocation(Aa,0),n.nodeChanged()}})},kt=()=>{n.shortcuts.add("meta+a",null,"SelectAll")},It=()=>{n.inline||O.bind(n.getDoc(),"mousedown mouseup",ro=>{let Lo;if(ro.target===n.getDoc().documentElement)if(Lo=P.getRng(),n.getBody().focus(),ro.type==="mousedown"){if(bt(Lo.startContainer))return;P.placeCaretAt(ro.clientX,ro.clientY)}else P.setRng(Lo)})},cn=()=>{n.on("keydown",ro=>{if(!Et(ro)&&ro.keyCode===l){if(!n.getBody().getElementsByTagName("hr").length)return;if(P.isCollapsed()&&P.getRng().startOffset===0){const Lo=P.getNode(),yr=Lo.previousSibling;if(Lo.nodeName==="HR"){O.remove(Lo),ro.preventDefault();return}yr&&yr.nodeName&&yr.nodeName.toLowerCase()==="hr"&&(O.remove(yr),ro.preventDefault())}}})},xn=()=>{Range.prototype.getClientRects||n.on("mousedown",ro=>{if(!Et(ro)&&ro.target.nodeName==="HTML"){const Lo=n.getBody();Lo.blur(),fd.setEditorTimeout(n,()=>{Lo.focus()})}})},bn=()=>{const ro=Nk(n);n.on("click",Lo=>{const yr=Lo.target;/^(IMG|HR)$/.test(yr.nodeName)&&O.isEditable(yr)&&(Lo.preventDefault(),n.selection.select(yr),n.nodeChanged()),yr.nodeName==="A"&&O.hasClass(yr,ro)&&yr.childNodes.length===0&&O.isEditable(yr.parentNode)&&(Lo.preventDefault(),P.select(yr))})},$n=()=>{const ro=()=>{const yr=O.getAttribs(P.getStart().cloneNode(!1));return()=>{const Bo=P.getStart();Bo!==n.getBody()&&(O.setAttrib(Bo,"style",null),s(yr,Ls=>{Bo.setAttributeNode(Ls.cloneNode(!0))}))}},Lo=()=>!P.isCollapsed()&&O.getParent(P.getStart(),O.isBlock)!==O.getParent(P.getEnd(),O.isBlock);n.on("keypress",yr=>{let Bo;return!Et(yr)&&(yr.keyCode===8||yr.keyCode===46)&&Lo()?(Bo=ro(),n.getDoc().execCommand("delete",!1),Bo(),yr.preventDefault(),!1):!0}),O.bind(n.getDoc(),"cut",yr=>{if(!Et(yr)&&Lo()){const Bo=ro();fd.setEditorTimeout(n,()=>{Bo()})}})},rr=()=>{n.on("keydown",ro=>{if(!Et(ro)&&ro.keyCode===l&&P.isCollapsed()&&P.getRng().startOffset===0){const Lo=P.getNode().previousSibling;if(Lo&&Lo.nodeName&&Lo.nodeName.toLowerCase()==="table")return ro.preventDefault(),!1}return!0})},gr=()=>{n.on("keydown",ro=>{if(Et(ro)||ro.keyCode!==Wr.BACKSPACE)return;let Lo=P.getRng();const yr=Lo.startContainer,Bo=Lo.startOffset,Ls=O.getRoot();let Aa=yr;if(!(!Lo.collapsed||Bo!==0)){for(;Aa.parentNode&&Aa.parentNode.firstChild===Aa&&Aa.parentNode!==Ls;)Aa=Aa.parentNode;Aa.nodeName==="BLOCKQUOTE"&&(n.formatter.toggle("blockquote",void 0,Aa),Lo=O.createRng(),Lo.setStart(yr,0),Lo.setEnd(yr,0),P.setRng(Lo))}})},Qr=()=>{const ro=()=>{ot("StyleWithCSS",!1),ot("enableInlineTableEditing",!1),E0(n)||ot("enableObjectResizing",!1)};qy(n)||n.on("BeforeExecCommand mousedown",ro)},zn=()=>{const ro=()=>{s(O.select("a:not([data-mce-block])"),Lo=>{var yr;let Bo=Lo.parentNode;const Ls=O.getRoot();if((Bo==null?void 0:Bo.lastChild)===Lo){for(;Bo&&!O.isBlock(Bo);){if(((yr=Bo.parentNode)===null||yr===void 0?void 0:yr.lastChild)!==Bo||Bo===Ls)return;Bo=Bo.parentNode}O.add(Bo,"br",{"data-mce-bogus":1})}})};n.on("SetContent ExecCommand",Lo=>{(Lo.type==="setcontent"||Lo.command==="mceInsertLink")&&ro()})},Bn=()=>{n.on("init",()=>{ot("DefaultParagraphSeparator",Ec(n))})},tr=ro=>{const Lo=ro.getBody(),yr=ro.selection.getRng();return yr.startContainer===yr.endContainer&&yr.startContainer===Lo&&yr.startOffset===0&&yr.endOffset===Lo.childNodes.length},eo=()=>{n.on("keyup focusin mouseup",ro=>{!Wr.modifierPressed(ro)&&!tr(n)&&P.normalize()},!0)},po=()=>{n.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},ls=()=>{n.inline||n.on("keydown",()=>{document.activeElement===document.body&&n.getWin().focus()})},ys=()=>{n.inline||(n.contentStyles.push("body {min-height: 150px}"),n.on("click",ro=>{let Lo;ro.target.nodeName==="HTML"&&(Lo=n.selection.getRng(),n.getBody().focus(),n.selection.setRng(Lo),n.selection.normalize(),n.nodeChanged())}))},ma=()=>{qe&&n.on("keydown",ro=>{Wr.metaKeyPressed(ro)&&!ro.shiftKey&&(ro.keyCode===37||ro.keyCode===39)&&(ro.preventDefault(),n.selection.getSel().modify("move",ro.keyCode===37?"backward":"forward","lineboundary"))})},$s=()=>{n.on("click",ro=>{let Lo=ro.target;do if(Lo.tagName==="A"){ro.preventDefault();return}while(Lo=Lo.parentNode)}),n.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},hi=()=>{n.on("init",()=>{n.dom.bind(n.getBody(),"submit",ro=>{ro.preventDefault()})})},uc=()=>{Z.addNodeFilter("br",ro=>{let Lo=ro.length;for(;Lo--;)ro[Lo].attr("class")==="Apple-interchange-newline"&&ro[Lo].remove()})},ga=ie,Cr=()=>{if(!he||n.removed)return!1;const ro=n.selection.getSel();return!ro||!ro.rangeCount||ro.rangeCount===0},co=()=>{_e&&(It(),bn(),hi(),kt(),Ge&&(ls(),ys(),$s())),he&&(xn(),Qr(),po(),ma())},Zs=()=>{n.on("drop",ro=>{var Lo;const yr=(Lo=ro.dataTransfer)===null||Lo===void 0?void 0:Lo.getData("text/html");M(yr)&&/^]*>$/.test(yr)&&n.dispatch("dragend",new window.DragEvent("dragend",ro))})},Ss=()=>{gr(),Vt(),Dr.windowsPhone||eo(),_e&&(It(),bn(),Bn(),hi(),rr(),uc(),Ge?(ls(),ys(),$s()):kt()),he&&(cn(),xn(),$n(),Qr(),zn(),po(),ma(),rr(),Zs())};return Cv(n)?co():Ss(),{refreshContentEditable:ga,isHidden:Cr}},LR=Da.DOM,yte=(n,s)=>{const l=Yt.fromDom(n.getBody()),h=LO(Pf(l)),O=Yt.fromTag("style");Ra(O,"type","text/css"),Ci(O,Yt.fromText(s)),Ci(h,O),n.on("remove",()=>{Ks(O)})},bte=n=>n.inline?n.getElement().nodeName.toLowerCase():void 0,IR=n=>wn(n,s=>U(s)===!1),j3=n=>{const s=n.options.get,l=n.editorUpload.blobCache;return IR({allow_conditional_comments:s("allow_conditional_comments"),allow_html_data_urls:s("allow_html_data_urls"),allow_svg_data_urls:s("allow_svg_data_urls"),allow_html_in_named_anchor:s("allow_html_in_named_anchor"),allow_script_urls:s("allow_script_urls"),allow_unsafe_link_target:s("allow_unsafe_link_target"),convert_unsafe_embeds:s("convert_unsafe_embeds"),convert_fonts_to_spans:s("convert_fonts_to_spans"),fix_list_elements:s("fix_list_elements"),font_size_legacy_values:s("font_size_legacy_values"),forced_root_block:s("forced_root_block"),forced_root_block_attrs:s("forced_root_block_attrs"),preserve_cdata:s("preserve_cdata"),inline_styles:s("inline_styles"),root_name:bte(n),sandbox_iframes:s("sandbox_iframes"),sanitize:s("xss_sanitization"),validate:!0,blob_cache:l,document:n.getDoc()})},MV=n=>{const s=n.options.get;return IR({custom_elements:s("custom_elements"),extended_valid_elements:s("extended_valid_elements"),invalid_elements:s("invalid_elements"),invalid_styles:s("invalid_styles"),schema:s("schema"),valid_children:s("valid_children"),valid_classes:s("valid_classes"),valid_elements:s("valid_elements"),valid_styles:s("valid_styles"),verify_html:s("verify_html"),padd_empty_block_inline_children:s("format_empty_lines")})},Ote=n=>{const s=n.options.get;return{...j3(n),...MV(n),...IR({remove_trailing_brs:s("remove_trailing_brs"),pad_empty_with_br:s("pad_empty_with_br"),url_converter:s("url_converter"),url_converter_scope:s("url_converter_scope"),element_format:s("element_format"),entities:s("entities"),entity_encoding:s("entity_encoding"),indent:s("indent"),indent_after:s("indent_after"),indent_before:s("indent_before")})}},xte=n=>{const s=Vh(j3(n),n.schema);return s.addAttributeFilter("src,href,style,tabindex",(l,h)=>{const O=n.dom,P="data-mce-"+h;let Z=l.length;for(;Z--;){const J=l[Z];let he=J.attr(h);if(he&&!J.attr(P)){if(he.indexOf("data:")===0||he.indexOf("blob:")===0)continue;h==="style"?(he=O.serializeStyle(O.parseStyle(he),J.name),he.length||(he=null),J.attr(P,he),J.attr(h,he)):h==="tabindex"?(J.attr(P,he),J.attr(h,null)):J.attr(P,n.convertURL(he,h,J.name))}}}),s.addNodeFilter("script",l=>{let h=l.length;for(;h--;){const O=l[h],P=O.attr("type")||"no/type";P.indexOf("mce-")!==0&&O.attr("type","mce-"+P)}}),Zw(n)&&s.addNodeFilter("#cdata",l=>{var h;let O=l.length;for(;O--;){const P=l[O];P.type=8,P.name="#comment",P.value="[CDATA["+n.dom.encode((h=P.value)!==null&&h!==void 0?h:"")+"]]"}}),s.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",l=>{let h=l.length;const O=n.schema.getNonEmptyElements();for(;h--;){const P=l[h];P.isEmpty(O)&&P.getAll("br").length===0&&P.append(new hu("br",1))}}),s},Ste=n=>{const s=Bk(n);s&&fd.setEditorTimeout(n,()=>{let l;s===!0?l=n:l=n.editorManager.get(s),l&&!l.destroyed&&(l.focus(),l.selection.scrollIntoView())},100)},wte=n=>{const s=n.dom.getRoot();!n.inline&&(!Ix(n)||n.selection.getStart(!0)===s)&&Xc(s).each(l=>{const h=l.getNode(),O=ju(h)?Xc(h).getOr(l):l;n.selection.setRng(O.toRange())})},Tte=n=>{n.bindPendingEventDelegates(),n.initialized=!0,xb(n),n.focus(!0),wte(n),n.nodeChanged({initial:!0});const s=bE(n);E(s)&&s.call(n,n),Ste(n)},NR=n=>n.inline?n.ui.styleSheetLoader:n.dom.styleSheetLoader,Cte=(n,s,l)=>{const{pass:h,fail:O}=te(s,J=>tinymce.Resource.has(w6(J))),Z=[...h.map(J=>{const he=tinymce.Resource.get(w6(J));return M(he)?Promise.resolve(NR(n).loadRawCss(J,he)):Promise.resolve()}),NR(n).loadAll(O)];return n.inline?Z:Z.concat([n.ui.styleSheetLoader.loadAll(l)])},EV=n=>{const s=NR(n),l=Ek(n),h=n.contentCSS,O=()=>{s.unloadAll(h),n.inline||n.ui.styleSheetLoader.unloadAll(l)},P=()=>{n.removed?O():n.on("remove",O)};if(n.contentStyles.length>0){let he="";fr.each(n.contentStyles,_e=>{he+=_e+`\r +`}),n.dom.addStyle(he)}const Z=Promise.all(Cte(n,h,l)).then(P).catch(P),J=yx(n);return J&&yte(n,J),Z},_V=n=>{const s=n.getDoc(),l=n.getBody();Yg(n),xE(n)||(s.body.spellcheck=!1,LR.setAttrib(l,"spellcheck","false")),n.quirks=vte(n),JE(n);const h=uE(n);h!==void 0&&(l.dir=h);const O=Qk(n);O&&n.on("BeforeSetContent",P=>{fr.each(O,Z=>{P.content=P.content.replace(Z,J=>"")})}),n.on("SetContent",()=>{n.addVisual(n.getBody())}),n.on("compositionstart compositionend",P=>{n.composing=P.type==="compositionstart"})},kte=n=>{Cv(n)||n.load({initial:!0,format:"html"}),n.startContent=n.getContent({format:"raw"})},iP=n=>{n.removed!==!0&&(kte(n),Tte(n))},Ate=n=>{let s=!1;const l=setTimeout(()=>{s||n.setProgressState(!0)},500);return()=>{clearTimeout(l),s=!0,n.setProgressState(!1)}},RV=n=>{const s=n.getElement();let l=n.getDoc();n.inline&&(LR.addClass(s,"mce-content-body"),n.contentDocument=l=document,n.contentWindow=window,n.bodyElement=s,n.contentAreaContainer=s);const h=n.getBody();h.disabled=!0,n.readonly=qy(n),n._editableRoot=Lf(n),!n.readonly&&n.hasEditableRoot()&&(n.inline&&LR.getStyle(h,"position",!0)==="static"&&(h.style.position="relative"),h.contentEditable="true"),h.disabled=!1,n.editorUpload=jG(n),n.schema=Cm(MV(n)),n.dom=Da(l,{keep_values:!0,url_converter:n.convertURL,url_converter_scope:n,update_styles:!0,root_element:n.inline?n.getBody():null,collect:n.inline,schema:n.schema,contentCssCors:Em(n),referrerPolicy:gs(n),onSetAttrib:Z=>{n.dispatch("SetAttrib",Z)},force_hex_color:I0(n)}),n.parser=xte(n),n.serializer=yN(Ote(n),n),n.selection=d1(n.dom,n.getWin(),n.serializer,n),n.annotator=mT(n),n.formatter=zb(n),n.undoManager=m3(n),n._nodeChangeDispatcher=new TF(n),n._selectionOverrides=nte(n),ZB(n),bee(n),qle(n),Cv(n)||(Cee(n),pte(n));const O=PJ(n);f4(n,O),WB(n),KG(n),eV(n);const P=WX(n);_V(n),P.fold(()=>{const Z=Ate(n);EV(n).then(()=>{iP(n),Z()})},Z=>{n.setProgressState(!0),EV(n).then(()=>{Z().then(J=>{n.setProgressState(!1),iP(n),v6(n)},J=>{n.notificationManager.open({type:"error",text:String(J)}),iP(n),v6(n)})})})},DV=pe,q3=(n,s,l)=>pm(n,s,DV,l),BR=Da.DOM,$V=(n,s,l,h)=>{const O=Yt.fromTag("iframe");return h.each(P=>Ra(O,"tabindex",P)),Su(O,l),Su(O,{id:n+"_ifr",frameBorder:"0",allowTransparency:"true",title:s}),cm(O,"tox-edit-area__iframe"),O},Pte=n=>{let s=kk(n)+"";kw(n)!==n.documentBaseUrl&&(s+=''),s+='';const l=Aw(n),h=nE(n),O=n.translate(yE(n));return Pw(n)&&(s+=''),s+=`
    `,s},Mte=(n,s)=>{const l=n.translate("Rich Text Area"),h=bc(Yt.fromDom(n.getElement()),"tabindex").bind(Ft),O=$V(n.id,l,Cw(n),h).dom;O.onload=()=>{O.onload=null,n.dispatch("load")},n.contentAreaContainer=s.iframeContainer,n.iframeElement=O,n.iframeHTML=Pte(n),BR.add(s.iframeContainer,O)},Ete=n=>{const s=n.iframeElement,l=()=>{n.contentDocument=s.contentDocument,RV(n)};if(PE(n)||Dr.browser.isFirefox()){const h=n.getDoc();h.open(),h.write(n.iframeHTML),h.close(),l()}else{const h=q3(Yt.fromDom(s),"load",()=>{h.unbind(),l()});s.srcdoc=n.iframeHTML}},_te=(n,s)=>{Mte(n,s),s.editorContainer&&(s.editorContainer.style.display=n.orgDisplay,n.hidden=BR.isHidden(s.editorContainer)),n.getElement().style.display="none",BR.setAttrib(n.id,"aria-hidden","true"),n.getElement().style.visibility=n.orgVisibility,Ete(n)},QR=Da.DOM,Rte=(n,s,l)=>{const h=Fb.get(l),O=Fb.urls[l]||n.documentBaseUrl.replace(/\/$/,"");if(l=fr.trim(l),h&&fr.inArray(s,l)===-1){if(n.plugins[l])return;try{const P=h(n,O)||{};n.plugins[l]=P,E(P.init)&&(P.init(n,O),s.push(l))}catch(P){EN(n,l,P)}}},LV=n=>n.replace(/^\-/,""),Dte=n=>{const s=[];re(Ky(n),l=>{Rte(n,s,LV(l))})},$te=n=>{const s=fr.trim(Ew(n)),l=n.ui.registry.getAll().icons,h={...u3.get("default").icons,...u3.get(s).icons};Bt(h,(O,P)=>{it(l,P)||n.ui.registry.addIcon(P,O)})},Lte=n=>{const s=_0(n);if(M(s)){const l=kv.get(s);n.theme=l(n,kv.urls[s])||{},E(n.theme.init)&&n.theme.init(n,kv.urls[s]||n.documentBaseUrl.replace(/\/$/,""))}else n.theme={}},Ite=n=>{const s=Lw(n),l=eh.get(s);n.model=l(n,eh.urls[s])},Nte=n=>{const s=n.theme.renderUI;return s?s():NV(n)},Bte=n=>{const s=n.getElement(),h=_0(n)(n,s);return h.editorContainer.nodeType&&(h.editorContainer.id=h.editorContainer.id||n.id+"_parent"),h.iframeContainer&&h.iframeContainer.nodeType&&(h.iframeContainer.id=h.iframeContainer.id||n.id+"_iframecontainer"),h.height=h.iframeHeight?h.iframeHeight:s.offsetHeight,h},IV=(n,s)=>({editorContainer:n,iframeContainer:s,api:{}}),Qte=n=>{const s=QR.create("div");return QR.insertAfter(s,n),IV(s,s)},NV=n=>{const s=n.getElement();return n.inline?IV(null):Qte(s)},BV=n=>{const s=n.getElement();return n.orgDisplay=s.style.display,M(_0(n))?Nte(n):E(_0(n))?Bte(n):NV(n)},FR=(n,s)=>{const l={show:G.from(s.show).getOr(ie),hide:G.from(s.hide).getOr(ie),isEnabled:G.from(s.isEnabled).getOr(pe),setEnabled:h=>{n.mode.isReadOnly()||G.from(s.setEnabled).each(O=>O(h))}};n.ui={...n.ui,...l}},QV=async n=>{n.dispatch("ScriptsLoaded"),$te(n),Lte(n),Ite(n),Dte(n);const s=await BV(n);FR(n,G.from(s.api).getOr({})),n.editorContainer=s.editorContainer,VG(n),n.inline?RV(n):_te(n,{editorContainer:s.editorContainer,iframeContainer:s.iframeContainer})},k1=Da.DOM,FV=n=>n.charAt(0)==="-",Fte=(n,s)=>{const l=Rw(s),h=_c(s);if(!sd.hasCode(l)&&l!=="en"){const O=St(h)?h:`${s.editorManager.baseURL}/langs/${l}.js`;n.add(O).catch(()=>{d3(s,O,l)})}},Vte=(n,s)=>{const l=_0(n);if(M(l)&&!FV(l)&&!it(kv.urls,l)){const h=hE(n),O=h?n.documentBaseURI.toAbsolute(h):`themes/${l}/theme${s}.js`;kv.load(l,O).catch(()=>{NG(n,O,l)})}},VV=(n,s)=>{const l=Lw(n);if(l!=="plugin"&&!it(eh.urls,l)){const h=Rk(n),O=M(h)?n.documentBaseURI.toAbsolute(h):`models/${l}/model${s}.js`;eh.load(l,O).catch(()=>{MN(n,O,l)})}},zV=n=>G.from(iv(n)).filter(St).map(s=>({url:s,name:G.none()})),ZV=(n,s,l)=>G.from(s).filter(h=>St(h)&&!u3.has(h)).map(h=>({url:`${n.editorManager.baseURL}/icons/${h}/icons${l}.js`,name:G.some(h)})),zte=(n,s,l)=>{const h=ZV(s,"default",l),O=zV(s).orThunk(()=>ZV(s,Ew(s),""));re(za([h,O]),P=>{n.add(P.url).catch(()=>{IG(s,P.url,P.name.getOrUndefined())})})},VR=(n,s)=>{const l=(h,O)=>{Fb.load(h,O).catch(()=>{Ule(n,O,h)})};Bt(Ng(n),(h,O)=>{l(O,h),n.options.set("plugins",Ky(n).concat(O))}),re(Ky(n),h=>{h=fr.trim(h),h&&!Fb.urls[h]&&!FV(h)&&l(h,`plugins/${h}/plugin${s}.js`)})},lP=n=>{const s=_0(n);return!M(s)||B(kv.get(s))},cP=n=>{const s=Lw(n);return B(eh.get(s))},Mv=(n,s)=>{const l=Ji.ScriptLoader,h=()=>{!n.removed&&lP(n)&&cP(n)&&QV(n)};Vte(n,s),VV(n,s),Fte(l,n),zte(l,n,s),VR(n,s),l.loadQueue().then(h,h)},uP=(n,s)=>GS.forElement(n,{contentCssCors:D0(s),referrerPolicy:gs(s)}),U2=n=>{const s=n.id;sd.setCode(Rw(n));const l=()=>{k1.unbind(window,"ready",l),n.render()};if(!Au.Event.domLoaded){k1.bind(window,"ready",l);return}if(!n.getElement())return;const h=Yt.fromDom(n.getElement()),O=Bp(h);n.on("remove",()=>{ye(h.dom.attributes,Z=>ci(h,Z.name)),Su(h,O)}),n.ui.styleSheetLoader=uP(h,n),Iw(n)?n.inline=!0:(n.orgVisibility=n.getElement().style.visibility,n.getElement().style.visibility="hidden");const P=n.getElement().form||k1.getParent(s,"form");P&&(n.formElement=P,gE(n)&&!o0(n.getElement())&&(k1.insertAfter(k1.create("input",{type:"hidden",name:s}),s),n.hasHiddenInput=!0),n.formEventDelegate=Z=>{n.dispatch(Z.type,Z)},k1.bind(P,"submit reset",n.formEventDelegate),n.on("reset",()=>{n.resetContent()}),Ik(n)&&!P.submit.nodeType&&!P.submit.length&&!P._mceOldSubmit&&(P._mceOldSubmit=P.submit,P.submit=()=>(n.editorManager.triggerSave(),n.setDirty(!1),P._mceOldSubmit(P)))),n.windowManager=PN(n),n.notificationManager=S6(n),_E(n)&&n.on("GetContent",Z=>{Z.save&&(Z.content=k1.encode(Z.content))}),Eh(n)&&n.on("submit",()=>{n.initialized&&n.save()}),Gy(n)&&(n._beforeUnload=()=>{n.initialized&&!n.destroyed&&!n.isHidden()&&n.save({format:"raw",no_events:!0,set_dirty:!1})},n.editorManager.on("BeforeUnload",n._beforeUnload)),n.editorManager.add(n),Mv(n,n.suffix)},HV=(n,s)=>{n._editableRoot!==s&&(n._editableRoot=s,n.readonly||(n.getBody().contentEditable=String(n.hasEditableRoot()),n.nodeChanged()),o_(n,s))},Zte=n=>n._editableRoot,Hte=(n,s)=>({sections:ae(n),options:ae(s)}),zR=ii().deviceType,UV=zR.isPhone(),ZR=zR.isTablet(),A1=n=>{if(Q(n))return[];{const s=N(n)?n:n.split(/[ ,]/),l=Ie(s,wr);return se(l,St)}},P1=(n,s)=>{const l=an(s,(h,O)=>Ze(n,O));return Hte(l.t,l.f)},qb=(n,s,l={})=>{const h=n.sections(),O=Sn(h,s).getOr({});return fr.extend({},l,O)},fP=(n,s)=>it(n.sections(),s),Ute=(n,s)=>fP(n,s)?n.sections()[s]:{},Wte=(n,s)=>({...{table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:Sn(n,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1},...s?{menubar:!1}:{}}),Yte=(n,s)=>{var l;const h=(l=s.external_plugins)!==null&&l!==void 0?l:{};return n&&n.external_plugins?fr.extend({},n.external_plugins,h):h},Xte=(n,s)=>[...A1(n),...A1(s)],Gte=(n,s,l,h)=>n&&fP(s,"mobile")?h:l,jte=(n,s,l,h)=>{const O=A1(l.forced_plugins),P=A1(h.plugins),Z=Ute(s,"mobile"),J=Z.plugins?A1(Z.plugins):P,he=Gte(n,s,P,J),_e=Xte(O,he);return fr.extend(h,{forced_plugins:O,plugins:_e})},WV=(n,s)=>n&&fP(s,"mobile"),qte=(n,s,l,h,O)=>{var P;const Z=n?{mobile:Wte((P=O.mobile)!==null&&P!==void 0?P:{},s)}:{},J=P1(["mobile"],I3(Z,O)),he=fr.extend(l,h,J.options(),WV(n,J)?qb(J,"mobile"):{},{external_plugins:Yte(h,J.options())});return jte(n,J,h,he)},Kte=(n,s)=>qte(UV||ZR,UV,s,n,s),Jte=(n,s)=>oG(n,s),yce=n=>{const s=(h,O)=>{n.formatter.toggle(h,O),n.nodeChanged()},l=h=>()=>{re("left,center,right,justify".split(","),O=>{h!==O&&n.formatter.remove("align"+O)}),h!=="none"&&s("align"+h)};n.editorCommands.addCommands({JustifyLeft:l("left"),JustifyCenter:l("center"),JustifyRight:l("right"),JustifyFull:l("justify"),JustifyNone:l("none")})},ene=n=>{const s=l=>()=>{const h=n.selection,O=h.isCollapsed()?[n.dom.getParent(h.getNode(),n.dom.isBlock)]:h.getSelectedBlocks();return De(O,P=>B(n.formatter.matchNode(P,l)))};n.editorCommands.addCommands({JustifyLeft:s("alignleft"),JustifyCenter:s("aligncenter"),JustifyRight:s("alignright"),JustifyFull:s("alignjustify")},"state")},HR=n=>{yce(n),ene(n)},tne=n=>{n.editorCommands.addCommands({"Cut,Copy,Paste":s=>{const l=n.getDoc();let h;try{l.execCommand(s)}catch{h=!0}if(s==="paste"&&!l.queryCommandEnabled(s)&&(h=!0),h||!l.queryCommandSupported(s)){let O=n.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(Dr.os.isMacOS()||Dr.os.isiOS())&&(O=O.replace(/Ctrl\+/g,"⌘+")),n.notificationManager.open({text:O,type:"error"})}}})},nne=(n,s,l,h)=>{const O=Yt.fromDom(n.getRoot());return e2(O,Nn.fromRangeStart(s),h)?l=l.replace(/^ /," "):l=l.replace(/^ /," "),t2(O,Nn.fromRangeEnd(s),h)?l=l.replace(/( | )()?$/," "):l=l.replace(/ ()?$/," "),l},YV=n=>{if(typeof n!="string"){const s=fr.extend({paste:n.paste,data:{paste:n.paste}},n);return{content:n.content,details:s}}return{content:n,details:{}}},rne=(n,s)=>{const l=n.selection,h=n.dom;return/^ | $/.test(s)?nne(h,l.getRng(),s,n.schema):s},K3=(n,s)=>{if(n.selection.isEditable()){const{content:l,details:h}=YV(s);G8(n,{...h,content:rne(n,l),format:"html",set:!1,selection:!0}).each(O=>{const P=nG(n,O.content,h);T5(n,P,O),n.addVisual()})}},one=n=>{n.editorCommands.addCommands({mceCleanup:()=>{const s=n.selection.getBookmark();n.setContent(n.getContent()),n.selection.moveToBookmark(s)},insertImage:(s,l,h)=>{K3(n,n.dom.createHTML("img",{src:h}))},insertHorizontalRule:()=>{n.execCommand("mceInsertContent",!1,"
    ")},insertText:(s,l,h)=>{K3(n,n.dom.encode(h))},insertHTML:(s,l,h)=>{K3(n,h)},mceInsertContent:(s,l,h)=>{K3(n,h)},mceSetContent:(s,l,h)=>{n.setContent(h)},mceReplaceContent:(s,l,h)=>{n.execCommand("mceInsertContent",!1,h.replace(/\{\$selection\}/g,n.selection.getContent({format:"text"})))},mceNewDocument:()=>{n.setContent($0(n))}})},UR={"font-size":"size","font-family":"face"},sne=xu("font"),ane=(n,s,l)=>{const h=P=>Hi(P,n).orThunk(()=>sne(P)?Sn(UR,n).bind(Z=>bc(P,Z)):G.none()),O=P=>Gs(Yt.fromDom(s),P);return Sv(Yt.fromDom(l),P=>h(P),O)},ine=n=>n.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),lne=(n,s)=>G.from(Da.DOM.getStyle(s,n,!0)),WR=n=>(s,l)=>G.from(l).map(Yt.fromDom).filter(kl).bind(h=>ane(n,s,h.dom).or(lne(n,h.dom))).getOr(""),YR=WR("font-size"),XV=L(ine,WR("font-family")),XR=n=>Xc(n.getBody()).bind(s=>{const l=s.container();return G.from(lr(l)?l.parentNode:l)}),cne=n=>G.from(n.selection.getRng()).bind(s=>{const l=n.getBody();return s.startContainer===l&&s.startOffset===0?G.none():G.from(n.selection.getStart(!0))}),bce=(n,s)=>cne(n).orThunk(ee(XR,n)).map(Yt.fromDom).filter(kl).bind(s),GV=(n,s)=>bce(n,me(G.some,s)),jV=(n,s)=>{if(/^[0-9.]+$/.test(s)){const l=parseInt(s,10);if(l>=1&&l<=7){const h=ME(n),O=EE(n);return O.length>0?O[l-1]||s:h[l-1]||s}else return s}else return s},qV=n=>{const s=n.split(/\s*,\s*/);return Ie(s,l=>l.indexOf(" ")!==-1&&!(Sr(l,'"')||Sr(l,"'"))?`'${l}'`:l).join(",")},une=(n,s)=>{const l=jV(n,s);n.formatter.toggle("fontname",{value:qV(l)}),n.nodeChanged()},fne=n=>GV(n,s=>XV(n.getBody(),s.dom)).getOr(""),dne=(n,s)=>{n.formatter.toggle("fontsize",{value:jV(n,s)}),n.nodeChanged()},Oce=n=>GV(n,s=>YR(n.getBody(),s.dom)).getOr(""),xce=n=>GV(n,s=>{const l=Yt.fromDom(n.getBody()),h=Sv(s,P=>Hi(P,"line-height"),ee(Gs,l)),O=()=>{const P=parseFloat(wi(s,"line-height")),Z=parseFloat(wi(s,"font-size"));return String(P/Z)};return h.getOrThunk(O)}).getOr(""),KV=(n,s)=>{n.formatter.toggle("lineheight",{value:String(s)}),n.nodeChanged()},JV=n=>{const s=(l,h)=>{n.formatter.toggle(l,h),n.nodeChanged()};n.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":l=>{s(l)},"ForeColor,HiliteColor":(l,h,O)=>{s(l,{value:O})},BackColor:(l,h,O)=>{s("hilitecolor",{value:O})},FontName:(l,h,O)=>{une(n,O)},FontSize:(l,h,O)=>{dne(n,O)},LineHeight:(l,h,O)=>{KV(n,O)},Lang:(l,h,O)=>{var P;s(l,{value:O.code,customValue:(P=O.customCode)!==null&&P!==void 0?P:null})},RemoveFormat:l=>{n.formatter.remove(l)},mceBlockQuote:()=>{s("blockquote")},FormatBlock:(l,h,O)=>{s(M(O)?O:"p")},mceToggleFormat:(l,h,O)=>{s(O)}})},hne=n=>{const s=l=>n.formatter.match(l);n.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":l=>s(l),mceBlockQuote:()=>s("blockquote")},"state"),n.editorCommands.addQueryValueHandler("FontName",()=>fne(n)),n.editorCommands.addQueryValueHandler("FontSize",()=>Oce(n)),n.editorCommands.addQueryValueHandler("LineHeight",()=>xce(n))},mne=n=>{JV(n),hne(n)},gne=n=>{n.editorCommands.addCommands({mceAddUndoLevel:()=>{n.undoManager.add()},mceEndUndoLevel:()=>{n.undoManager.add()},Undo:()=>{n.undoManager.undo()},Redo:()=>{n.undoManager.redo()}})},Sce=n=>{n.editorCommands.addCommands({Indent:()=>{FB(n)},Outdent:()=>{VB(n)}}),n.editorCommands.addCommands({Outdent:()=>IB(n)},"state")},wce=n=>{const s=(l,h,O)=>{const P=M(O)?{href:O}:O,Z=n.dom.getParent(n.selection.getNode(),"a");I(P)&&M(P.href)&&(P.href=P.href.replace(/ /g,"%20"),(!Z||!P.href)&&n.formatter.remove("link"),P.href&&n.formatter.apply("link",P,Z))};n.editorCommands.addCommands({unlink:()=>{if(n.selection.isEditable()){if(n.selection.isCollapsed()){const l=n.dom.getParent(n.selection.getStart(),"a");l&&n.dom.remove(l,!0);return}n.formatter.remove("link")}},mceInsertLink:s,createLink:s})},Tce=n=>{n.editorCommands.addCommands({"InsertUnorderedList,InsertOrderedList":s=>{n.getDoc().execCommand(s);const l=n.dom.getParent(n.selection.getNode(),"ol,ul");if(l){const h=l.parentNode;if(h&&/^(H[1-6]|P|ADDRESS|PRE)$/.test(h.nodeName)){const O=n.selection.getBookmark();n.dom.split(h,l),n.selection.moveToBookmark(O)}}}})},pne=n=>{n.editorCommands.addCommands({"InsertUnorderedList,InsertOrderedList":s=>{const l=n.dom.getParent(n.selection.getNode(),"ul,ol");return l&&(s==="insertunorderedlist"&&l.tagName==="UL"||s==="insertorderedlist"&&l.tagName==="OL")}},"state")},Cce=n=>{Tce(n),pne(n)},vne=(n,s,l,h)=>{const O=n.dom,P=J=>O.isBlock(J)&&J.parentElement===l,Z=P(s)?s:O.getParent(h,P,l);return G.from(Z).map(Yt.fromDom)},M1=(n,s)=>{const l=n.dom,h=n.selection.getRng(),O=s?n.selection.getStart():n.selection.getEnd(),P=s?h.startContainer:h.endContainer,Z=yd(l,P);if(!Z||!Z.isContentEditable)return;const J=s?Ui:Yu,he=Ec(n);vne(n,O,Z,P).each(_e=>{const Ge=z7(n,P,_e.dom,Z,!1,he);J(_e,Yt.fromDom(Ge)),n.selection.setCursorLocation(Ge,0),n.dispatch("NewBlock",{newBlock:Ge}),B3(n,"insertParagraph")})},GR=n=>M1(n,!0),dP=n=>M1(n,!1),ez=n=>{n.editorCommands.addCommands({InsertNewBlockBefore:()=>{GR(n)},InsertNewBlockAfter:()=>{dP(n)}})},tz=n=>{n.editorCommands.addCommands({insertParagraph:()=>{N4(aF,n)},mceInsertNewLine:(s,l,h)=>{fF(n,h)},InsertLineBreak:(s,l,h)=>{N4(dJ,n)}})},nz=n=>{n.editorCommands.addCommands({mceSelectNodeDepth:(s,l,h)=>{let O=0;n.dom.getParent(n.selection.getNode(),P=>Xr(P)&&O++===h?(n.selection.select(P),!1):!0,n.getBody())},mceSelectNode:(s,l,h)=>{n.selection.select(h)},selectAll:()=>{const s=n.dom.getParent(n.selection.getStart(),Zl);if(s){const l=n.dom.createRng();l.selectNodeContents(s),n.selection.setRng(l)}}})},yne=n=>{n.editorCommands.addCommands({mceRemoveNode:(s,l,h)=>{const O=h??n.selection.getNode();if(O!==n.getBody()){const P=n.selection.getBookmark();n.dom.remove(O,!0),n.selection.moveToBookmark(P)}},mcePrint:()=>{n.getWin().print()},mceFocus:(s,l,h)=>{lW(n,h===!0)},mceToggleVisualAid:()=>{n.hasVisual=!n.hasVisual,n.addVisual()}})},bne=n=>{HR(n),tne(n),gne(n),nz(n),one(n),wce(n),Sce(n),ez(n),tz(n),Cce(n),mne(n),yne(n)},One=["toggleview"],rz=n=>Ze(One,n.toLowerCase());class Ev{constructor(s){this.commands={state:{},exec:{},value:{}},this.editor=s}execCommand(s,l=!1,h,O){const P=this.editor,Z=s.toLowerCase(),J=O==null?void 0:O.skip_focus;if(P.removed||(Z!=="mcefocus"&&(!/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(Z)&&!J?P.focus():XU(P)),P.dispatch("BeforeExecCommand",{command:s,ui:l,value:h}).isDefaultPrevented()))return!1;const _e=this.commands.exec[Z];return E(_e)?(_e(Z,l,h),P.dispatch("ExecCommand",{command:s,ui:l,value:h}),!0):!1}queryCommandState(s){if(!rz(s)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const l=s.toLowerCase(),h=this.commands.state[l];return E(h)?h(l):!1}queryCommandValue(s){if(!rz(s)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const l=s.toLowerCase(),h=this.commands.value[l];return E(h)?h(l):""}addCommands(s,l="exec"){const h=this.commands;Bt(s,(O,P)=>{re(P.toLowerCase().split(","),Z=>{h[l][Z]=O})})}addCommand(s,l,h){const O=s.toLowerCase();this.commands.exec[O]=(P,Z,J)=>l.call(h??this.editor,Z,J)}queryCommandSupported(s){const l=s.toLowerCase();return!!this.commands.exec[l]}addQueryStateHandler(s,l,h){this.commands.state[s.toLowerCase()]=()=>l.call(h??this.editor)}addQueryValueHandler(s,l,h){this.commands.value[s.toLowerCase()]=()=>l.call(h??this.editor)}}const Kb="data-mce-contenteditable",oz=(n,s,l)=>{gh(n,s)&&!l?um(n,s):l&&cm(n,s)},jR=(n,s,l)=>{try{n.getDoc().execCommand(s,!1,String(l))}catch{}},Jb=(n,s)=>{n.dom.contentEditable=s?"true":"false"},xne=n=>{re(sl(n,'*[contenteditable="true"]'),s=>{Ra(s,Kb,"true"),Jb(s,!1)})},Sne=n=>{re(sl(n,`*[${Kb}="true"]`),s=>{ci(s,Kb),Jb(s,!0)})},wne=n=>{G.from(n.selection.getNode()).each(s=>{s.removeAttribute("data-mce-selected")})},sz=n=>{n.selection.setRng(n.selection.getRng())},Tne=(n,s)=>{const l=Yt.fromDom(n.getBody());oz(l,"mce-content-readonly",s),s?(n.selection.controlSelection.hideResizeRect(),n._selectionOverrides.hideFakeCaret(),wne(n),n.readonly=!0,Jb(l,!1),xne(l)):(n.readonly=!1,n.hasEditableRoot()&&Jb(l,!0),Sne(l),jR(n,"StyleWithCSS",!1),jR(n,"enableInlineTableEditing",!1),jR(n,"enableObjectResizing",!1),x9(n)&&n.focus(),sz(n),n.nodeChanged())},eO=n=>n.readonly,az=n=>{n.parser.addAttributeFilter("contenteditable",s=>{eO(n)&&re(s,l=>{l.attr(Kb,l.attr("contenteditable")),l.attr("contenteditable","false")})}),n.serializer.addAttributeFilter(Kb,s=>{eO(n)&&re(s,l=>{l.attr("contenteditable",l.attr(Kb))})}),n.serializer.addTempAttr(Kb)},qR=n=>{n.serializer?az(n):n.on("PreInit",()=>{az(n)})},Cne=n=>n.type==="click",kne=["copy"],Sl=n=>Ze(kne,n.type),Ane=(n,s)=>Mf(s,"a",h=>Gs(h,Yt.fromDom(n.getBody()))).bind(h=>bc(h,"href")),Pne=(n,s)=>{if(Cne(s)&&!Wr.metaKeyPressed(s)){const l=Yt.fromDom(s.target);Ane(n,l).each(h=>{if(s.preventDefault(),/^#/.test(h)){const O=n.dom.select(`${h},[name="${xr(h,"#")}"]`);O.length&&n.selection.scrollIntoView(O[0],!0)}else window.open(h,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else Sl(s)&&n.dispatch(s.type,s)},KR=n=>{n.on("ShowCaret",s=>{eO(n)&&s.preventDefault()}),n.on("ObjectSelected",s=>{eO(n)&&s.preventDefault()})},iz=fr.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class J3{static isNative(s){return!!iz[s.toLowerCase()]}constructor(s){this.bindings={},this.settings=s||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||ne}fire(s,l){return this.dispatch(s,l)}dispatch(s,l){const h=s.toLowerCase(),O=m0(h,l??{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(O);const P=this.bindings[h];if(P)for(let Z=0,J=P.length;Z{this.toggleEvent(he,!1),delete this.bindings[he]}),this;if(Z){if(!l)Z.length=0;else{const J=te(Z,he=>he.func===l);Z=J.fail,this.bindings[P]=Z,re(J.pass,he=>{he.removed=!0})}Z.length||(this.toggleEvent(s,!1),delete this.bindings[P])}}}else Bt(this.bindings,(h,O)=>{this.toggleEvent(O,!1)}),this.bindings={};return this}once(s,l,h){return this.on(s,l,h,{once:!0})}has(s){s=s.toLowerCase();const l=this.bindings[s];return!(!l||l.length===0)}}const eC=n=>(n._eventDispatcher||(n._eventDispatcher=new J3({scope:n,toggleEvent:(s,l)=>{J3.isNative(s)&&n.toggleNativeEvent&&n.toggleNativeEvent(s,l)}})),n._eventDispatcher),JR={fire(n,s,l){return this.dispatch(n,s,l)},dispatch(n,s,l){const h=this;if(h.removed&&n!=="remove"&&n!=="detach")return m0(n.toLowerCase(),s??{},h);const O=eC(h).dispatch(n,s);if(l!==!1&&h.parent){let P=h.parent();for(;P&&!O.isPropagationStopped();)P.dispatch(n,O,!1),P=P.parent?P.parent():void 0}return O},on(n,s,l){return eC(this).on(n,s,l)},off(n,s){return eC(this).off(n,s)},once(n,s){return eC(this).once(n,s)},hasEventListeners(n){return eC(this).has(n)}},hP=Da.DOM;let tO;const mP=(n,s)=>{if(s==="selectionchange")return n.getDoc();if(!n.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(s))return n.getDoc().documentElement;const l=Ig(n);return l?(n.eventRoot||(n.eventRoot=hP.select(l)[0]),n.eventRoot):n.getBody()},Mne=n=>!n.hidden&&!eO(n),lz=(n,s,l)=>{Mne(n)?n.dispatch(s,l):eO(n)&&Pne(n,l)},cz=(n,s)=>{if(n.delegates||(n.delegates={}),n.delegates[s]||n.removed)return;const l=mP(n,s);if(Ig(n)){if(tO||(tO={},n.editorManager.on("removeEditor",()=>{n.editorManager.activeEditor||tO&&(Bt(tO,(O,P)=>{n.dom.unbind(mP(n,P))}),tO=null)})),tO[s])return;const h=O=>{const P=O.target,Z=n.editorManager.get();let J=Z.length;for(;J--;){const he=Z[J].getBody();(he===P||hP.isChildOf(P,he))&&lz(Z[J],s,O)}};tO[s]=h,hP.bind(l,s,h)}else{const h=O=>{lz(n,s,O)};hP.bind(l,s,h),n.delegates[s]=h}},nO={...JR,bindPendingEventDelegates(){const n=this;fr.each(n._pendingNativeEvents,s=>{cz(n,s)})},toggleNativeEvent(n,s){const l=this;n==="focus"||n==="blur"||l.removed||(s?l.initialized?cz(l,n):l._pendingNativeEvents?l._pendingNativeEvents.push(n):l._pendingNativeEvents=[n]:l.initialized&&l.delegates&&(l.dom.unbind(mP(l,n),n,l.delegates[n]),delete l.delegates[n]))},unbindAllNativeEvents(){const n=this,s=n.getBody(),l=n.dom;n.delegates&&(Bt(n.delegates,(h,O)=>{n.dom.unbind(mP(n,O),O,h)}),delete n.delegates),!n.inline&&s&&l&&(s.onload=null,l.unbind(n.getWin()),l.unbind(n.getDoc())),l&&(l.unbind(s),l.unbind(n.getContainer()))}},Gm=n=>M(n)?{value:n.split(/[ ,]/),valid:!0}:Y(n,M)?{value:n,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},Ene=n=>{const s=(()=>{switch(n){case"array":return N;case"boolean":return z;case"function":return E;case"number":return W;case"object":return I;case"string":return M;case"string[]":return Gm;case"object[]":return l=>Y(l,I);case"regexp":return l=>R(l,RegExp);default:return pe}})();return l=>eD(l,s,`The value must be a ${n}.`)},_ne=n=>M(n.processor),uz=(n,s)=>{const l=Ct(s.message)?"":`. ${s.message}`;return n+l},fz=n=>n.valid,eD=(n,s,l="")=>{const h=s(n);return z(h)?h?{value:n,valid:!0}:{valid:!1,message:l}:h},Rne=(n,s,l)=>{if(!U(s)){const h=eD(s,l);if(fz(h))return h.value;console.error(uz(`Invalid default value passed for the "${n}" option`,h))}},Dne=(n,s)=>{const l={},h={},O=(qe,ot,Et)=>{const Vt=eD(ot,Et);return fz(Vt)?(h[qe]=Vt.value,!0):(console.warn(uz(`Invalid value passed for the ${qe} option`,Vt)),!1)},P=(qe,ot)=>{const Et=_ne(ot)?Ene(ot.processor):ot.processor,Vt=Rne(qe,ot.default,Et);l[qe]={...ot,default:Vt,processor:Et},Sn(h,qe).orThunk(()=>Sn(s,qe)).each(It=>O(qe,It,Et))},Z=qe=>it(l,qe);return{register:P,isRegistered:Z,get:qe=>Sn(h,qe).orThunk(()=>Sn(l,qe).map(ot=>ot.default)).getOrUndefined(),set:(qe,ot)=>{if(Z(qe)){const Et=l[qe];return Et.immutable?(console.error(`"${qe}" is an immutable option and cannot be updated`),!1):O(qe,ot,Et.processor)}else return console.warn(`"${qe}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:qe=>{const ot=Z(qe);return ot&&delete h[qe],ot},isSet:qe=>it(h,qe)}},$ne=["design","readonly"],dz=(n,s,l,h)=>{const O=l[s.get()],P=l[h];try{P.activate()}catch(Z){console.error(`problem while activating editor mode ${h}:`,Z);return}O.deactivate(),O.editorReadOnly!==P.editorReadOnly&&Tne(n,P.editorReadOnly),s.set(h),vT(n,h)},kce=(n,s,l,h)=>{if(h!==l.get()){if(!it(s,h))throw new Error(`Editor mode '${h}' is invalid`);n.initialized?dz(n,l,s,h):n.on("init",()=>dz(n,l,s,h))}},Lne=(n,s,l)=>{if(Ze($ne,s))throw new Error(`Cannot override default mode ${s}`);return{...n,[s]:{...l,deactivate:()=>{try{l.deactivate()}catch(h){console.error(`problem while deactivating editor mode ${s}:`,h)}}}}},Ine=n=>{const s=ni("design"),l=ni({design:{activate:ie,deactivate:ie,editorReadOnly:!1},readonly:{activate:ie,deactivate:ie,editorReadOnly:!0}});return qR(n),KR(n),{isReadOnly:()=>eO(n),set:h=>kce(n,l.get(),s,h),get:()=>s.get(),register:(h,O)=>{l.set(Lne(l.get(),h,O))}}},tD=fr.each,nD=fr.explode,Nne={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},hz=fr.makeMap("alt,ctrl,shift,meta,access"),Ace=n=>n in hz,Bne=n=>{const s={},l=Dr.os.isMacOS()||Dr.os.isiOS();tD(nD(n.toLowerCase(),"+"),P=>{Ace(P)?s[P]=!0:/^[0-9]{2,}$/.test(P)?s.keyCode=parseInt(P,10):(s.charCode=P.charCodeAt(0),s.keyCode=Nne[P]||P.toUpperCase().charCodeAt(0))});const h=[s.keyCode];let O;for(O in hz)s[O]?h.push(O):s[O]=!1;return s.id=h.join(","),s.access&&(s.alt=!0,l?s.ctrl=!0:s.shift=!0),s.meta&&(l?s.meta=!0:(s.ctrl=!0,s.meta=!1)),s};class mz{constructor(s){this.shortcuts={},this.pendingPatterns=[],this.editor=s;const l=this;s.on("keyup keypress keydown",h=>{(l.hasModifier(h)||l.isFunctionKey(h))&&!h.isDefaultPrevented()&&(tD(l.shortcuts,O=>{l.matchShortcut(h,O)&&(l.pendingPatterns=O.subpatterns.slice(0),h.type==="keydown"&&l.executeShortcutAction(O))}),l.matchShortcut(h,l.pendingPatterns[0])&&(l.pendingPatterns.length===1&&h.type==="keydown"&&l.executeShortcutAction(l.pendingPatterns[0]),l.pendingPatterns.shift()))})}add(s,l,h,O){const P=this,Z=P.normalizeCommandFunc(h);return tD(nD(fr.trim(s)),J=>{const he=P.createShortcut(J,l,Z,O);P.shortcuts[he.id]=he}),!0}remove(s){const l=this.createShortcut(s);return this.shortcuts[l.id]?(delete this.shortcuts[l.id],!0):!1}normalizeCommandFunc(s){const l=this,h=s;return typeof h=="string"?()=>{l.editor.execCommand(h,!1,null)}:fr.isArray(h)?()=>{l.editor.execCommand(h[0],h[1],h[2])}:h}createShortcut(s,l,h,O){const P=fr.map(nD(s,">"),Bne);return P[P.length-1]=fr.extend(P[P.length-1],{func:h,scope:O||this.editor}),fr.extend(P[0],{desc:this.editor.translate(l),subpatterns:P.slice(1)})}hasModifier(s){return s.altKey||s.ctrlKey||s.metaKey}isFunctionKey(s){return s.type==="keydown"&&s.keyCode>=112&&s.keyCode<=123}matchShortcut(s,l){return!l||l.ctrl!==s.ctrlKey||l.meta!==s.metaKey||l.alt!==s.altKey||l.shift!==s.shiftKey?!1:s.keyCode===l.keyCode||s.charCode&&s.charCode===l.charCode?(s.preventDefault(),!0):!1}executeShortcutAction(s){return s.func?s.func.call(s.scope):null}}const Qne=()=>{const n={},s={},l={},h={},O={},P={},Z={},J={},he=(Ge,qe)=>(ot,Et)=>{Ge[ot.toLowerCase()]={...Et,type:qe}},_e=(Ge,qe)=>h[Ge.toLowerCase()]=qe;return{addButton:he(n,"button"),addGroupToolbarButton:he(n,"grouptoolbarbutton"),addToggleButton:he(n,"togglebutton"),addMenuButton:he(n,"menubutton"),addSplitButton:he(n,"splitbutton"),addMenuItem:he(s,"menuitem"),addNestedMenuItem:he(s,"nestedmenuitem"),addToggleMenuItem:he(s,"togglemenuitem"),addAutocompleter:he(l,"autocompleter"),addContextMenu:he(O,"contextmenu"),addContextToolbar:he(P,"contexttoolbar"),addContextForm:he(P,"contextform"),addSidebar:he(Z,"sidebar"),addView:he(J,"views"),addIcon:_e,getAll:()=>({buttons:n,menuItems:s,icons:h,popups:l,contextMenus:O,contextToolbars:P,sidebars:Z,views:J})}},Fne=()=>{const n=Qne();return{addAutocompleter:n.addAutocompleter,addButton:n.addButton,addContextForm:n.addContextForm,addContextMenu:n.addContextMenu,addContextToolbar:n.addContextToolbar,addIcon:n.addIcon,addMenuButton:n.addMenuButton,addMenuItem:n.addMenuItem,addNestedMenuItem:n.addNestedMenuItem,addSidebar:n.addSidebar,addSplitButton:n.addSplitButton,addToggleButton:n.addToggleButton,addGroupToolbarButton:n.addGroupToolbarButton,addToggleMenuItem:n.addToggleMenuItem,addView:n.addView,getAll:n.getAll}},rO=Da.DOM,gz=fr.extend,Vne=fr.each;class gP{constructor(s,l,h){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=h,this.documentBaseUrl=h.documentBaseURL,gz(this,nO);const O=this;this.id=s,this.hidden=!1;const P=Kte(h.defaultOptions,l);this.options=Dne(O,P),Ck(O);const Z=this.options.get;Z("deprecation_warnings")&&zle(l,P);const J=Z("suffix");J&&(h.suffix=J),this.suffix=h.suffix;const he=Z("base_url");he&&h._setBaseUrl(he),this.baseUri=h.baseURI;const _e=gs(O);_e&&(Ji.ScriptLoader._setReferrerPolicy(_e),Da.DOM.styleSheetLoader._setReferrerPolicy(_e));const Ge=D0(O);B(Ge)&&Da.DOM.styleSheetLoader._setContentCssCors(Ge),Pc.languageLoad=Z("language_load"),Pc.baseURL=h.baseURL,this.setDirty(!1),this.documentBaseURI=new Kd(kw(O),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=Iw(O),this.hasVisual=pE(O),this.shortcuts=new mz(this),this.editorCommands=new Ev(this),bne(this);const qe=Z("cache_suffix");qe&&(Dr.cacheSuffix=qe.replace(/^[\?\&]+/,"")),this.ui={registry:Fne(),styleSheetLoader:void 0,show:ie,hide:ie,setEnabled:ie,isEnabled:pe},this.mode=Ine(O),h.dispatch("SetupEditor",{editor:this});const ot=Nw(O);E(ot)&&ot.call(O,O)}render(){U2(this)}focus(s){this.execCommand("mceFocus",!1,s)}hasFocus(){return o1(this)}translate(s){return sd.translate(s)}getParam(s,l,h){const O=this.options;return O.isRegistered(s)||(B(h)?O.register(s,{processor:h,default:l}):O.register(s,{processor:pe,default:l})),!O.isSet(s)&&!U(l)?l:O.get(s)}hasPlugin(s,l){return Ze(Ky(this),s)?l?Fb.get(s)!==void 0:!0:!1}nodeChanged(s){this._nodeChangeDispatcher.nodeChanged(s)}addCommand(s,l,h){this.editorCommands.addCommand(s,l,h)}addQueryStateHandler(s,l,h){this.editorCommands.addQueryStateHandler(s,l,h)}addQueryValueHandler(s,l,h){this.editorCommands.addQueryValueHandler(s,l,h)}addShortcut(s,l,h,O){this.shortcuts.add(s,l,h,O)}execCommand(s,l,h,O){return this.editorCommands.execCommand(s,l,h,O)}queryCommandState(s){return this.editorCommands.queryCommandState(s)}queryCommandValue(s){return this.editorCommands.queryCommandValue(s)}queryCommandSupported(s){return this.editorCommands.queryCommandSupported(s)}show(){const s=this;s.hidden&&(s.hidden=!1,s.inline?s.getBody().contentEditable="true":(rO.show(s.getContainer()),rO.hide(s.id)),s.load(),s.dispatch("show"))}hide(){const s=this;s.hidden||(s.save(),s.inline?(s.getBody().contentEditable="false",s===s.editorManager.focusedEditor&&(s.editorManager.focusedEditor=null)):(rO.hide(s.getContainer()),rO.setStyle(s.id,"display",s.orgDisplay)),s.hidden=!0,s.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(s,l){this.dispatch("ProgressState",{state:s,time:l})}load(s={}){const l=this,h=l.getElement();if(l.removed)return"";if(h){const O={...s,load:!0},P=o0(h)?h.value:h.innerHTML,Z=l.setContent(P,O);return O.no_events||l.dispatch("LoadContent",{...O,element:h}),Z}else return""}save(s={}){const l=this;let h=l.getElement();if(!h||!l.initialized||l.removed)return"";const O={...s,save:!0,element:h};let P=l.getContent(O);const Z={...O,content:P};if(Z.no_events||l.dispatch("SaveContent",Z),Z.format==="raw"&&l.dispatch("RawSaveContent",Z),P=Z.content,o0(h))h.value=P;else{(s.is_removing||!l.inline)&&(h.innerHTML=P);const J=rO.getParent(l.id,"form");J&&Vne(J.elements,he=>he.name===l.id?(he.value=P,!1):!0)}return Z.element=O.element=h=null,Z.set_dirty!==!1&&l.setDirty(!1),P}setContent(s,l){return b6(this,s,l)}getContent(s){return ON(this,s)}insertContent(s,l){l&&(s=gz({content:s},l)),this.execCommand("mceInsertContent",!1,s)}resetContent(s){s===void 0?b6(this,this.startContent,{format:"raw"}):b6(this,s),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(s){const l=!this.isNotDirty;this.isNotDirty=!s,s&&s!==l&&this.dispatch("dirty")}getContainer(){const s=this;return s.container||(s.container=s.editorContainer||rO.get(s.id+"_parent")),s.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=rO.get(this.id)),this.targetElm}getWin(){const s=this;if(!s.contentWindow){const l=s.iframeElement;l&&(s.contentWindow=l.contentWindow)}return s.contentWindow}getDoc(){const s=this;if(!s.contentDocument){const l=s.getWin();l&&(s.contentDocument=l.document)}return s.contentDocument}getBody(){var s,l;const h=this.getDoc();return(l=(s=this.bodyElement)!==null&&s!==void 0?s:h==null?void 0:h.body)!==null&&l!==void 0?l:null}convertURL(s,l,h){const O=this,P=O.options.get,Z=OE(O);if(E(Z))return Z.call(O,s,h,!0,l);if(!P("convert_urls")||h==="link"||I(h)&&h.nodeName==="LINK"||s.indexOf("file:")===0||s.length===0)return s;const J=new Kd(s);return J.protocol!=="http"&&J.protocol!=="https"&&J.protocol!==""?s:P("relative_urls")?O.documentBaseURI.toRelative(s):(s=O.documentBaseURI.toAbsolute(s,P("remove_script_host")),s)}addVisual(s){Jte(this,s)}setEditableRoot(s){HV(this,s)}hasEditableRoot(){return Zte(this)}remove(){EG(this)}destroy(s){_G(this,s)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const W2=Da.DOM,pP=fr.each;let pz=!1,vP,mf=[];const yP=n=>{const s=n.type;pP(E1.get(),l=>{switch(s){case"scroll":l.dispatch("ScrollWindow",n);break;case"resize":l.dispatch("ResizeWindow",n);break}})},vz=n=>{if(n!==pz){const s=Da.DOM;n?(s.bind(window,"resize",yP),s.bind(window,"scroll",yP)):(s.unbind(window,"resize",yP),s.unbind(window,"scroll",yP)),pz=n}},yz=n=>{const s=mf;return mf=se(mf,l=>n!==l),E1.activeEditor===n&&(E1.activeEditor=mf.length>0?mf[0]:null),E1.focusedEditor===n&&(E1.focusedEditor=null),s.length!==mf.length},bz=n=>{n&&n.initialized&&!(n.getContainer()||n.getBody()).parentNode&&(yz(n),n.unbindAllNativeEvents(),n.destroy(!0),n.removed=!0)},zne=document.compatMode!=="CSS1Compat",E1={...JR,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"6",minorVersion:"8.0",releaseDate:"2023-11-22",i18n:sd,activeEditor:null,focusedEditor:null,setup(){const n=this;let s="",l="",h=Kd.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(h)&&(h=h.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(h)||(h+="/"));const O=window.tinymce||window.tinyMCEPreInit;if(O)s=O.base||O.baseURL,l=O.suffix;else{const P=document.getElementsByTagName("script");for(let Z=0;Z{Pc.PluginManager.urls[P]=O})},init(n){const s=this;let l;const h=fr.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),O=(Ge,qe)=>Ge.inline&&qe.tagName.toLowerCase()in h,P=Ge=>{let qe=Ge.id;return qe||(qe=Sn(Ge,"name").filter(ot=>!W2.get(ot)).getOrThunk(W2.uniqueId),Ge.setAttribute("id",qe)),qe},Z=Ge=>{const qe=n[Ge];if(qe)return qe.apply(s,[])},J=Ge=>Dr.browser.isIE()||Dr.browser.isEdge()?(h3("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/6/support/#supportedwebbrowsers"),[]):zne?(h3("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):M(Ge.selector)?W2.select(Ge.selector):B(Ge.target)?[Ge.target]:[];let he=Ge=>{l=Ge};const _e=()=>{let Ge=0;const qe=[];let ot;const Et=(Vt,kt,It)=>{const cn=new gP(Vt,kt,s);qe.push(cn),cn.on("init",()=>{++Ge===ot.length&&he(qe)}),cn.targetElm=cn.targetElm||It,cn.render()};W2.unbind(window,"ready",_e),Z("onpageload"),ot=Xt(J(n)),fr.each(ot,Vt=>{bz(s.get(Vt.id))}),ot=fr.grep(ot,Vt=>!s.get(Vt.id)),ot.length===0?he([]):pP(ot,Vt=>{O(n,Vt)?h3("Could not initialize inline editor on invalid inline target element",Vt):Et(P(Vt),n,Vt)})};return W2.bind(window,"ready",_e),new Promise(Ge=>{l?Ge(l):he=qe=>{Ge(qe)}})},get(n){return arguments.length===0?mf.slice(0):M(n)?le(mf,s=>s.id===n).getOr(null):W(n)&&mf[n]?mf[n]:null},add(n){const s=this,l=s.get(n.id);return l===n||(l===null&&mf.push(n),vz(!0),s.activeEditor=n,s.dispatch("AddEditor",{editor:n}),vP||(vP=h=>{const O=s.dispatch("BeforeUnload");if(O.returnValue)return h.preventDefault(),h.returnValue=O.returnValue,O.returnValue},window.addEventListener("beforeunload",vP))),n},createEditor(n,s){return this.add(new gP(n,s,this))},remove(n){const s=this;let l;if(!n){for(let h=mf.length-1;h>=0;h--)s.remove(mf[h]);return}if(M(n)){pP(W2.select(n),h=>{l=s.get(h.id),l&&s.remove(l)});return}return l=n,F(s.get(l.id))?null:(yz(l)&&s.dispatch("RemoveEditor",{editor:l}),mf.length===0&&window.removeEventListener("beforeunload",vP),l.remove(),vz(mf.length>0),l)},execCommand(n,s,l){var h;const O=this,P=I(l)?(h=l.id)!==null&&h!==void 0?h:l.index:l;switch(n){case"mceAddEditor":{if(!O.get(P)){const Z=l.options;new gP(P,Z,O).render()}return!0}case"mceRemoveEditor":{const Z=O.get(P);return Z&&Z.remove(),!0}case"mceToggleEditor":{const Z=O.get(P);return Z?(Z.isHidden()?Z.show():Z.hide(),!0):(O.execCommand("mceAddEditor",!1,l),!0)}}return O.activeEditor?O.activeEditor.execCommand(n,s,l):!1},triggerSave:()=>{pP(mf,n=>{n.save()})},addI18n:(n,s)=>{sd.add(n,s)},translate:n=>sd.translate(n),setActive(n){const s=this.activeEditor;this.activeEditor!==n&&(s&&s.dispatch("deactivate",{relatedTarget:n}),n.dispatch("activate",{relatedTarget:s})),this.activeEditor=n},_setBaseUrl(n){this.baseURL=new Kd(this.documentBaseURL).toAbsolute(n.replace(/\/+$/,"")),this.baseURI=new Kd(this.baseURL)}};E1.setup();const Zne=(()=>{const n=_g(),s=P=>({items:P,types:Gt(P),getType:Z=>Sn(P,Z).getOrUndefined()}),l=P=>{n.set(P)},h=()=>n.get().getOrUndefined(),O=n.clear;return{FakeClipboardItem:s,write:l,read:h,clear:O}})(),Oz=Math.min,Y2=Math.max,bP=Math.round,xz=(n,s,l)=>{let h=s.x,O=s.y;const P=n.w,Z=n.h,J=s.w,he=s.h,_e=(l||"").split("");return _e[0]==="b"&&(O+=he),_e[1]==="r"&&(h+=J),_e[0]==="c"&&(O+=bP(he/2)),_e[1]==="c"&&(h+=bP(J/2)),_e[3]==="b"&&(O-=Z),_e[4]==="r"&&(h-=P),_e[3]==="c"&&(O-=bP(Z/2)),_e[4]==="c"&&(h-=bP(P/2)),X2(h,O,P,Z)},Sz=(n,s,l,h)=>{for(let O=0;O=l.x&&P.x+P.w<=l.w+l.x&&P.y>=l.y&&P.y+P.h<=l.h+l.y)return h[O]}return null},Hne=(n,s,l)=>X2(n.x-s,n.y-l,n.w+s*2,n.h+l*2),Une=(n,s)=>{const l=Y2(n.x,s.x),h=Y2(n.y,s.y),O=Oz(n.x+n.w,s.x+s.w),P=Oz(n.y+n.h,s.y+s.h);return O-l<0||P-h<0?null:X2(l,h,O-l,P-h)},Wne=(n,s,l)=>{let h=n.x,O=n.y,P=n.x+n.w,Z=n.y+n.h;const J=s.x+s.w,he=s.y+s.h,_e=Y2(0,s.x-h),Ge=Y2(0,s.y-O),qe=Y2(0,P-J),ot=Y2(0,Z-he);return h+=_e,O+=Ge,l&&(P+=_e,Z+=Ge,h-=qe,O-=ot),P-=qe,Z-=ot,X2(h,O,P-h,Z-O)},X2=(n,s,l,h)=>({x:n,y:s,w:l,h}),Yne={inflate:Hne,relativePosition:xz,findBestRelativePosition:Sz,intersect:Une,clamp:Wne,create:X2,fromClientRect:n=>X2(n.left,n.top,n.width,n.height)},Xne=(n,s,l=1e3)=>{let h=!1,O=null;const P=_e=>(...Ge)=>{h||(h=!0,O!==null&&(clearTimeout(O),O=null),_e.apply(null,Ge))},Z=P(n),J=P(s);return{start:(..._e)=>{!h&&O===null&&(O=setTimeout(()=>J.apply(null,_e),l))},resolve:Z,reject:J}},wz=(()=>{const n={},s={},l={};return{load:(he,_e)=>{const Ge=`Script at URL "${_e}" failed to load`,qe=`Script at URL "${_e}" did not call \`tinymce.Resource.add('${he}', data)\` within 1 second`;if(n[he]!==void 0)return n[he];{const ot=new Promise((Et,Vt)=>{const kt=Xne(Et,Vt);s[he]=kt.resolve,Ji.ScriptLoader.loadScript(_e).then(()=>kt.start(qe),()=>kt.reject(Ge))});return n[he]=ot,ot}},add:(he,_e)=>{s[he]!==void 0&&(s[he](_e),delete s[he]),n[he]=Promise.resolve(_e),l[he]=_e},has:he=>he in l,get:he=>l[he],unload:he=>{delete n[he]}}})(),_ce=()=>(()=>{let n={},s=[];const l={getItem:h=>{const O=n[h];return O||null},setItem:(h,O)=>{s.push(h),n[h]=String(O)},key:h=>s[h],removeItem:h=>{s=s.filter(O=>O===h),delete n[h]},clear:()=>{s=[],n={}},length:0};return Object.defineProperty(l,"length",{get:()=>s.length,configurable:!1,enumerable:!1}),l})();let G2;try{const n="__storage_test__";G2=window.localStorage,G2.setItem(n,n),G2.removeItem(n)}catch{G2=_ce()}var Gne=G2;const Tz={geom:{Rect:Yne},util:{Delay:fd,Tools:fr,VK:Wr,URI:Kd,EventDispatcher:J3,Observable:JR,I18n:sd,LocalStorage:Gne,ImageUploader:T6},dom:{EventUtils:Au,TreeWalker:ca,TextSeeker:Rg,DOMUtils:Da,ScriptLoader:Ji,RangeUtils:Ot,Serializer:yN,StyleSheetLoader:YS,ControlSelection:u9,BookmarkManager:mv,Selection:d1,Event:Au.Event},html:{Styles:GO,Entities:Pg,Node:hu,Schema:Cm,DomParser:Vh,Writer:L9,Serializer:s1},Env:Dr,AddOnManager:Pc,Annotator:mT,Formatter:zb,UndoManager:m3,EditorCommands:Ev,WindowManager:PN,NotificationManager:S6,EditorObservable:nO,Shortcuts:mz,Editor:gP,FocusManager:g9,EditorManager:E1,DOM:Da.DOM,ScriptLoader:Ji.ScriptLoader,PluginManager:Fb,ThemeManager:kv,ModelManager:eh,IconManager:u3,Resource:wz,FakeClipboard:Zne,trim:fr.trim,isArray:fr.isArray,is:fr.is,toArray:fr.toArray,makeMap:fr.makeMap,each:fr.each,map:fr.map,grep:fr.grep,inArray:fr.inArray,extend:fr.extend,walk:fr.walk,resolve:fr.resolve,explode:fr.explode,_addCacheSuffix:fr._addCacheSuffix},Cz=fr.extend(E1,Tz),jne=n=>{try{t.exports=n}catch{}};(n=>{window.tinymce=n,window.tinyMCE=n})(Cz),jne(Cz)})()})(y$e);(function(){var t=tinymce.util.Tools.resolve("tinymce.ModelManager");const e=(A,$,j)=>{var ce;return j(A,$.prototype)?!0:((ce=A.constructor)===null||ce===void 0?void 0:ce.name)===$.name},r=A=>{const $=typeof A;return A===null?"null":$==="object"&&Array.isArray(A)?"array":$==="object"&&e(A,String,(j,ce)=>ce.isPrototypeOf(j))?"string":$},a=A=>$=>r($)===A,i=A=>$=>typeof $===A,d=A=>$=>A===$,f=a("string"),m=a("object"),u=a("array"),p=d(null),v=i("boolean"),y=d(void 0),b=A=>A==null,x=A=>!b(A),k=i("function"),C=i("number"),w=()=>{},T=(A,$)=>(...j)=>A($.apply(null,j)),R=(A,$)=>j=>A($(j)),M=A=>()=>A,I=A=>A,V=(A,$)=>A===$;function N(A,...$){return(...j)=>{const ce=$.concat(j);return A.apply(null,ce)}}const F=A=>$=>!A($),z=A=>()=>{throw new Error(A)},U=A=>A(),Q=M(!1),B=M(!0);class E{constructor($,j){this.tag=$,this.value=j}static some($){return new E(!0,$)}static none(){return E.singletonNone}fold($,j){return this.tag?j(this.value):$()}isSome(){return this.tag}isNone(){return!this.tag}map($){return this.tag?E.some($(this.value)):E.none()}bind($){return this.tag?$(this.value):E.none()}exists($){return this.tag&&$(this.value)}forall($){return!this.tag||$(this.value)}filter($){return!this.tag||$(this.value)?this:E.none()}getOr($){return this.tag?this.value:$}or($){return this.tag?this:$}getOrThunk($){return this.tag?this.value:$()}orThunk($){return this.tag?this:$()}getOrDie($){if(this.tag)return this.value;throw new Error($??"Called getOrDie on None")}static from($){return x($)?E.some($):E.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each($){this.tag&&$(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}E.singletonNone=new E(!1);const W=Array.prototype.slice,Y=Array.prototype.indexOf,ie=Array.prototype.push,L=(A,$)=>Y.call(A,$),me=(A,$)=>L(A,$)>-1,ae=(A,$)=>{for(let j=0,ce=A.length;j{const j=[];for(let ce=0;ce{const j=A.length,ce=new Array(j);for(let Me=0;Me{for(let j=0,ce=A.length;j{for(let j=A.length-1;j>=0;j--){const ce=A[j];$(ce,j)}},Te=(A,$)=>{const j=[],ce=[];for(let Me=0,Ve=A.length;Me{const j=[];for(let ce=0,Me=A.length;ce(be(A,(ce,Me)=>{j=$(j,ce,Me)}),j),ne=(A,$,j)=>(ee(A,(ce,Me)=>{j=$(j,ce,Me)}),j),pe=(A,$,j)=>{for(let ce=0,Me=A.length;cepe(A,$,Q),Oe=(A,$)=>{for(let j=0,ce=A.length;j{const $=[];for(let j=0,ce=A.length;jxe(fe(A,$)),ke=(A,$)=>{for(let j=0,ce=A.length;j{const $=W.call(A,0);return $.reverse(),$},Ze=(A,$)=>{const j={};for(let ce=0,Me=A.length;ce{const j=W.call(A,0);return j.sort($),j},Ie=(A,$)=>$>=0&&$Ie(A,0),ye=A=>Ie(A,A.length-1),te=(A,$)=>{for(let j=0;j{const j=se(A);for(let ce=0,Me=j.length;cele(A,(j,ce)=>({k:ce,v:$(j,ce)})),le=(A,$)=>{const j={};return oe(A,(ce,Me)=>{const Ve=$(ce,Me);j[Ve.k]=Ve.v}),j},Ce=A=>($,j)=>{A[j]=$},Qe=(A,$,j,ce)=>{oe(A,(Me,Ve)=>{($(Me,Ve)?j:ce)(Me,Ve)})},ze=(A,$)=>{const j={};return Qe(A,$,Ce(j),w),j},Xe=(A,$)=>{const j=[];return oe(A,(ce,Me)=>{j.push($(ce,Me))}),j},ct=A=>Xe(A,I),pt=(A,$)=>Ye(A,$)?E.from(A[$]):E.none(),Ye=(A,$)=>ue.call(A,$),je=(A,$)=>Ye(A,$)&&A[$]!==void 0&&A[$]!==null,et=A=>{for(const $ in A)if(ue.call(A,$))return!1;return!0},yt=typeof window<"u"?window:Function("return this;")(),ft=(A,$)=>{let j=$??yt;for(let ce=0;ce{const j=A.split(".");return ft(j,$)},wt=(A,$)=>tt(A,$),Xt=(A,$)=>{const j=wt(A,$);if(j==null)throw new Error(A+" not available on this browser");return j},Gt=Object.getPrototypeOf,Nt=A=>Xt("HTMLElement",A),Bt=A=>{const $=tt("ownerDocument.defaultView",A);return m(A)&&(Nt($).prototype.isPrototypeOf(A)||/^HTML\w*Element$/.test(Gt(A).constructor.name))},vn=8,En=9,ln=11,Yn=1,an=3,wn=A=>A.dom.nodeName.toLowerCase(),Xn=A=>A.dom.nodeType,Un=A=>$=>Xn($)===A,Sn=A=>Xn(A)===vn||wn(A)==="#comment",it=A=>ut(A)&&Bt(A.dom),ut=Un(Yn),xt=Un(an),gt=Un(En),Dt=Un(ln),He=A=>$=>ut($)&&wn($)===A,at=(A,$,j)=>{if(f(j)||v(j)||C(j))A.setAttribute($,j+"");else throw console.error("Invalid call to Attribute.set. Key ",$,":: Value ",j,":: Element ",A),new Error("Attribute value was not simple")},dt=(A,$,j)=>{at(A.dom,$,j)},mt=(A,$)=>{const j=A.dom;oe($,(ce,Me)=>{at(j,Me,ce)})},Tt=(A,$)=>{oe($,(j,ce)=>{j.fold(()=>{nn(A,ce)},Me=>{at(A.dom,ce,Me)})})},Pt=(A,$)=>{const j=A.dom.getAttribute($);return j===null?void 0:j},dn=(A,$)=>E.from(Pt(A,$)),nn=(A,$)=>{A.dom.removeAttribute($)},Wt=A=>ne(A.dom.attributes,($,j)=>($[j.name]=j.value,$),{}),Rt=(A,$)=>{const ce=($||document).createElement("div");if(ce.innerHTML=A,!ce.hasChildNodes()||ce.childNodes.length>1){const Me="HTML does not have a single root node";throw console.error(Me,A),new Error(Me)}return nr(ce.childNodes[0])},fn=(A,$)=>{const ce=($||document).createElement(A);return nr(ce)},Hn=(A,$)=>{const ce=($||document).createTextNode(A);return nr(ce)},nr=A=>{if(A==null)throw new Error("Node cannot be null or undefined");return{dom:A}},zt={fromHtml:Rt,fromTag:fn,fromText:Hn,fromDom:nr,fromPoint:(A,$,j)=>E.from(A.dom.elementFromPoint($,j)).map(nr)},vr=(A,$)=>{const j=A.dom;if(j.nodeType!==Yn)return!1;{const ce=j;if(ce.matches!==void 0)return ce.matches($);if(ce.msMatchesSelector!==void 0)return ce.msMatchesSelector($);if(ce.webkitMatchesSelector!==void 0)return ce.webkitMatchesSelector($);if(ce.mozMatchesSelector!==void 0)return ce.mozMatchesSelector($);throw new Error("Browser lacks native selectors")}},Wn=A=>A.nodeType!==Yn&&A.nodeType!==En&&A.nodeType!==ln||A.childElementCount===0,Br=(A,$)=>{const j=$===void 0?document:$.dom;return Wn(j)?[]:fe(j.querySelectorAll(A),zt.fromDom)},kr=(A,$)=>{const j=$===void 0?document:$.dom;return Wn(j)?E.none():E.from(j.querySelector(A)).map(zt.fromDom)},or=(A,$)=>A.dom===$.dom,jr=(A,$)=>{const j=A.dom,ce=$.dom;return j===ce?!1:j.contains(ce)},_r=vr,Rn=A=>zt.fromDom(A.dom.ownerDocument),xr=A=>gt(A)?A:Rn(A),sr=A=>zt.fromDom(xr(A).dom.documentElement),Sr=A=>zt.fromDom(xr(A).dom.defaultView),ao=A=>E.from(A.dom.parentNode).map(zt.fromDom),Oo=A=>E.from(A.dom.parentElement).map(zt.fromDom),wr=(A,$)=>{const j=k($)?$:Q;let ce=A.dom;const Me=[];for(;ce.parentNode!==null&&ce.parentNode!==void 0;){const Ve=ce.parentNode,nt=zt.fromDom(Ve);if(Me.push(nt),j(nt)===!0)break;ce=Ve}return Me},Fe=A=>E.from(A.dom.previousSibling).map(zt.fromDom),Ee=A=>E.from(A.dom.nextSibling).map(zt.fromDom),St=A=>fe(A.dom.childNodes,zt.fromDom),Ct=(A,$)=>{const j=A.dom.childNodes;return E.from(j[$]).map(zt.fromDom)},Lt=A=>Ct(A,0),Ft=(A,$)=>{ao(A).each(ce=>{ce.dom.insertBefore($.dom,A.dom)})},Ht=(A,$)=>{Ee(A).fold(()=>{ao(A).each(Me=>{Mt(Me,$)})},ce=>{Ft(ce,$)})},$t=(A,$)=>{Lt(A).fold(()=>{Mt(A,$)},ce=>{A.dom.insertBefore($.dom,ce.dom)})},Mt=(A,$)=>{A.dom.appendChild($.dom)},en=(A,$,j)=>{Ct(A,j).fold(()=>{Mt(A,$)},ce=>{Ft(ce,$)})},un=(A,$)=>{Ft(A,$),Mt($,A)},Jt=(A,$)=>{ee($,(j,ce)=>{const Me=ce===0?A:$[ce-1];Ht(Me,j)})},rn=(A,$)=>{ee($,j=>{Mt(A,j)})},Tn=A=>{A.dom.textContent="",ee(St(A),$=>{On($)})},On=A=>{const $=A.dom;$.parentNode!==null&&$.parentNode.removeChild($)},pn=A=>{const $=St(A);$.length>0&&Jt(A,$),On(A)},Jn=(A,$)=>zt.fromDom(A.dom.cloneNode($)),Fn=A=>Jn(A,!1),zr=A=>Jn(A,!0),dr=(A,$)=>{const j=zt.fromTag($),ce=Wt(A);return mt(j,ce),j},Hr=(A,$)=>{const j=dr(A,$),ce=St(zr(A));return rn(j,ce),j},ar=(A,$)=>{const j=dr(A,$);Ht(A,j);const ce=St(A);return rn(j,ce),On(A),j},ur=["tfoot","thead","tbody","colgroup"],qr=A=>me(ur,A),to=(A,$)=>({rows:A,columns:$}),ko=(A,$)=>({row:A,column:$}),Es=(A,$,j)=>({element:A,rowspan:$,colspan:j}),So=(A,$,j,ce)=>({element:A,rowspan:$,colspan:j,isNew:ce}),Ko=(A,$,j,ce,Me,Ve)=>({element:A,rowspan:$,colspan:j,row:ce,column:Me,isLocked:Ve}),ds=(A,$,j)=>({element:A,cells:$,section:j}),qs=(A,$,j,ce)=>({element:A,cells:$,section:j,isNew:ce}),es=(A,$,j)=>({element:A,isNew:$,isLocked:j}),Xs=(A,$,j,ce)=>({element:A,cells:$,section:j,isNew:ce}),Wa=(A,$,j,ce)=>({startRow:A,startCol:$,finishRow:j,finishCol:ce}),vc=(A,$,j)=>({element:A,colspan:$,column:j}),ii=(A,$)=>({element:A,columns:$}),tu=A=>Dt(A)&&x(A.dom.host),Na=k(Element.prototype.attachShadow)&&k(Node.prototype.getRootNode),Js=M(Na),ya=Na?A=>zt.fromDom(A.dom.getRootNode()):xr,ra=A=>{const $=ya(A);return tu($)?E.some($):E.none()},nu=A=>zt.fromDom(A.dom.host),Dr=A=>{if(Js()&&x(A.target)){const $=zt.fromDom(A.target);if(ut($)&&yc($)&&A.composed&&A.composedPath){const j=A.composedPath();if(j)return re(j)}}return E.from(A.target)},yc=A=>x(A.dom.shadowRoot),oa=A=>{const $=xt(A)?A.dom.parentNode:A.dom;if($==null||$.ownerDocument===null)return!1;const j=$.ownerDocument;return ra(zt.fromDom($)).fold(()=>j.body.contains($),R(oa,nu))},Ri=()=>Md(zt.fromDom(document)),Md=A=>{const $=A.dom.body;if($==null)throw new Error("Body is not available yet");return zt.fromDom($)},sa=(A,$,j)=>Be(wr(A,j),$),bu=(A,$)=>Be(St(A),$),Ed=(A,$)=>{let j=[];return ee(St(A),ce=>{$(ce)&&(j=j.concat([ce])),j=j.concat(Ed(ce,$))}),j},Ou=(A,$,j)=>sa(A,ce=>vr(ce,$),j),Po=(A,$)=>bu(A,j=>vr(j,$)),zi=(A,$)=>Br($,A);var fr=(A,$,j,ce,Me)=>A(j,ce)?E.some(j):k(Me)&&Me(j)?E.none():$(j,ce,Me);const Qa=(A,$,j)=>{let ce=A.dom;const Me=k(j)?j:Q;for(;ce.parentNode;){ce=ce.parentNode;const Ve=zt.fromDom(ce);if($(Ve))return E.some(Ve);if(Me(Ve))break}return E.none()},xi=(A,$,j)=>fr((Me,Ve)=>Ve(Me),Qa,A,$,j),za=(A,$)=>{const j=Me=>$(zt.fromDom(Me));return G(A.dom.childNodes,j).map(zt.fromDom)},Fa=(A,$)=>{const j=ce=>{for(let Me=0;MeQa(A,ce=>vr(ce,$),j),Zo=(A,$)=>za(A,j=>vr(j,$)),li=(A,$)=>kr($,A),Ka=(A,$,j)=>fr((Me,Ve)=>vr(Me,Ve),yl,A,$,j),Gf=(A,$,j=V)=>A.exists(ce=>j(ce,$)),Za=A=>{const $=[],j=ce=>{$.push(ce)};for(let ce=0;ceA!=null?$(A):E.none(),zu=(A,$)=>A?E.some($):E.none(),_d=(A,$,j)=>$===""||A.length>=$.length&&A.substr(j,j+$.length)===$,Is=(A,$,j=0,ce)=>{const Me=A.indexOf($,j);return Me!==-1?y(ce)?!0:Me+$.length<=ce:!1},Rd=(A,$)=>_d(A,$,0),Fc=(A,$)=>_d(A,$,A.length-$.length),mh=(A=>$=>$.replace(A,""))(/^\s+|\s+$/g),lm=A=>A.length>0,Vs=A=>{const $=parseFloat(A);return isNaN($)?E.none():E.some($)},Si=A=>A.style!==void 0&&k(A.style.getPropertyValue),Tf=(A,$,j)=>{if(!f(j))throw console.error("Invalid call to CSS.set. Property ",$,":: Value ",j,":: Element ",A),new Error("CSS value must be a string: "+j);Si(A)&&A.style.setProperty($,j)},QS=(A,$)=>{Si(A)&&A.style.removeProperty($)},Ya=(A,$,j)=>{const ce=A.dom;Tf(ce,$,j)},kl=(A,$)=>{const j=A.dom;oe($,(ce,Me)=>{Tf(j,Me,ce)})},Zi=(A,$)=>{const j=A.dom,Me=window.getComputedStyle(j).getPropertyValue($);return Me===""&&!oa(A)?PO(j,$):Me},PO=(A,$)=>Si(A)?A.style.getPropertyValue($):"",Np=(A,$)=>{const j=A.dom,ce=PO(j,$);return E.from(ce).filter(Me=>Me.length>0)},xu=(A,$)=>{const j=A.dom;QS(j,$),Gf(dn(A,"style").map(mh),"")&&nn(A,"style")},Zu=(A,$)=>{const j=A.dom,ce=$.dom;Si(j)&&Si(ce)&&(ce.style.cssText=j.style.cssText)},Ra=(A,$,j=0)=>dn(A,$).map(ce=>parseInt(ce,10)).getOr(j),Su=(A,$)=>Ra(A,$,1),Al=A=>He("col")(A)?Ra(A,"span",1)>1:Su(A,"colspan")>1,bc=A=>Su(A,"rowspan")>1,Cf=(A,$)=>parseInt(Zi(A,$),10),ci=M(10),kf=M(10),Bp=(A,$)=>Qp(A,$,B),Qp=(A,$,j)=>Le(St(A),ce=>vr(ce,$)?j(ce)?[ce]:[]:Qp(ce,$,j)),ly=(A,$,j=Q)=>{if(j($))return E.none();if(me(A,wn($)))return E.some($);const ce=Me=>vr(Me,"table")||j(Me);return yl($,A.join(","),ce)},Xv=(A,$)=>ly(["td","th"],A,$),Af=A=>Bp(A,"th,td"),Fp=A=>vr(A,"colgroup")?Po(A,"col"):Le(cy(A),$=>Po($,"col")),Oc=(A,$)=>Ka(A,"table",$),Gv=A=>Bp(A,"tr"),cy=A=>Oc(A).fold(M([]),$=>Po($,"colgroup")),cm=(A,$)=>fe(A,j=>{if(wn(j)==="colgroup"){const ce=fe(Fp(j),Me=>{const Ve=Ra(Me,"span",1);return Es(Me,1,Ve)});return ds(j,ce,"colgroup")}else{const ce=fe(Af(j),Me=>{const Ve=Ra(Me,"rowspan",1),nt=Ra(Me,"colspan",1);return Es(Me,Ve,nt)});return ds(j,ce,$(j))}}),uy=A=>ao(A).map($=>{const j=wn($);return qr(j)?j:"tbody"}).getOr("tbody"),um=A=>{const $=Gv(A),ce=[...cy(A),...$];return cm(ce,uy)},MO=(A,$)=>cm(A,()=>$),gh=A=>{let $=!1,j;return(...ce)=>($||($=!0,j=A.apply(null,ce)),j)},EO=(A,$,j,ce)=>{const Me=A.isiOS()&&/ipad/i.test(j)===!0,Ve=A.isiOS()&&!Me,nt=A.isiOS()||A.isAndroid(),Ot=nt||ce("(pointer:coarse)"),_t=Me||!Ve&&nt&&ce("(min-device-width:768px)"),Kt=Ve||nt&&!_t,Cn=$.isSafari()&&A.isiOS()&&/safari/i.test(j)===!1,ir=!Kt&&!_t&&!Cn;return{isiPad:M(Me),isiPhone:M(Ve),isTablet:M(_t),isPhone:M(Kt),isTouch:M(Ot),isAndroid:A.isAndroid,isiOS:A.isiOS,isWebView:M(Cn),isDesktop:M(ir)}},_O=(A,$)=>{for(let j=0;j{const j=_O(A,$);if(!j)return{major:0,minor:0};const ce=Me=>Number($.replace(j,"$"+Me));return Yt(ce(1),ce(2))},fm=(A,$)=>{const j=String($).toLowerCase();return A.length===0?fy():RO(A,j)},fy=()=>Yt(0,0),Yt=(A,$)=>({major:A,minor:$}),dm={nu:Yt,detect:fm,unknown:fy},Hu=(A,$)=>te($.brands,j=>{const ce=j.brand.toLowerCase();return G(A,Me=>{var Ve;return ce===((Ve=Me.brand)===null||Ve===void 0?void 0:Ve.toLowerCase())}).map(Me=>({current:Me.name,version:dm.nu(parseInt(j.version,10),0)}))}),jv=(A,$)=>{const j=String($).toLowerCase();return G(A,ce=>ce.search(j))},Vp=(A,$)=>jv(A,$).map(j=>{const ce=dm.detect(j.versionRegexes,$);return{current:j.name,version:ce}}),FS=(A,$)=>jv(A,$).map(j=>{const ce=dm.detect(j.versionRegexes,$);return{current:j.name,version:ce}}),Gs=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,tc=A=>$=>Is($,A),jf=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:A=>Is(A,"edge/")&&Is(A,"chrome")&&Is(A,"safari")&&Is(A,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Gs],search:A=>Is(A,"chrome")&&!Is(A,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:A=>Is(A,"msie")||Is(A,"trident")},{name:"Opera",versionRegexes:[Gs,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:tc("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:tc("firefox")},{name:"Safari",versionRegexes:[Gs,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:A=>(Is(A,"safari")||Is(A,"mobile/"))&&Is(A,"applewebkit")}],qf=[{name:"Windows",search:tc("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:A=>Is(A,"iphone")||Is(A,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:tc("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:tc("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:tc("linux"),versionRegexes:[]},{name:"Solaris",search:tc("sunos"),versionRegexes:[]},{name:"FreeBSD",search:tc("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:tc("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],dy={browsers:M(jf),oses:M(qf)},vg="Edge",ru="Chromium",yg="IE",hy="Opera",DO="Firefox",Uu="Safari",zp=()=>my({current:void 0,version:dm.unknown()}),my=A=>{const $=A.current,j=A.version,ce=Me=>()=>$===Me;return{current:$,version:j,isEdge:ce(vg),isChromium:ce(ru),isIE:ce(yg),isOpera:ce(hy),isFirefox:ce(DO),isSafari:ce(Uu)}},Vc={unknown:zp,nu:my,edge:M(vg),chromium:M(ru),ie:M(yg),opera:M(hy),firefox:M(DO),safari:M(Uu)},ol="Windows",ph="iOS",bg="Android",xc="Linux",Pl="macOS",Wu="Solaris",$O="FreeBSD",Zp="ChromeOS",gy=()=>qv({current:void 0,version:dm.unknown()}),qv=A=>{const $=A.current,j=A.version,ce=Me=>()=>$===Me;return{current:$,version:j,isWindows:ce(ol),isiOS:ce(ph),isAndroid:ce(bg),isMacOS:ce(Pl),isLinux:ce(xc),isSolaris:ce(Wu),isFreeBSD:ce($O),isChromeOS:ce(Zp)}},Pf={unknown:gy,nu:qv,windows:M(ol),ios:M(ph),android:M(bg),linux:M(xc),macos:M(Pl),solaris:M(Wu),freebsd:M($O),chromeos:M(Zp)},GC={detect:(A,$,j)=>{const ce=dy.browsers(),Me=dy.oses(),Ve=$.bind(_t=>Hu(ce,_t)).orThunk(()=>Vp(ce,A)).fold(Vc.unknown,Vc.nu),nt=FS(Me,A).fold(Pf.unknown,Pf.nu),Ot=EO(nt,Ve,A,j);return{browser:Ve,os:nt,deviceType:Ot}}},jC=A=>window.matchMedia(A).matches;let VS=gh(()=>GC.detect(navigator.userAgent,E.from(navigator.userAgentData),jC));const Hp=()=>VS(),Kv=(A,$)=>{const j=(Ot,_t)=>{if(!C(_t)&&!_t.match(/^[0-9]+$/))throw new Error(A+".set accepts only positive integer values. Value was "+_t);const Kt=Ot.dom;Si(Kt)&&(Kt.style[A]=_t+"px")},ce=Ot=>{const _t=$(Ot);if(_t<=0||_t===null){const Kt=Zi(Ot,A);return parseFloat(Kt)||0}return _t},Me=ce,Ve=(Ot,_t)=>ne(_t,(Kt,Cn)=>{const ir=Zi(Ot,Cn),$r=ir===void 0?0:parseInt(ir,10);return isNaN($r)?Kt:Kt+$r},0);return{set:j,get:ce,getOuter:Me,aggregate:Ve,max:(Ot,_t,Kt)=>{const Cn=Ve(Ot,Kt);return _t>Cn?_t-Cn:0}}},vh=(A,$)=>Vs(A).getOr($),Ja=(A,$,j)=>vh(Zi(A,$),j),ui=(A,$,j,ce)=>{const Me=Ja(A,`padding-${j}`,0),Ve=Ja(A,`padding-${ce}`,0),nt=Ja(A,`border-${j}-width`,0),Ot=Ja(A,`border-${ce}-width`,0);return $-Me-Ve-nt-Ot},wu=(A,$)=>{const j=A.dom,ce=j.getBoundingClientRect().width||j.offsetWidth;return $==="border-box"?ce:ui(A,ce,"left","right")},py=A=>Ja(A,"height",A.dom.offsetHeight),IO=A=>Ja(A,"width",A.dom.offsetWidth),Vl=A=>wu(A,"content-box"),Og=Kv("width",A=>A.dom.offsetWidth),Sc=A=>Og.get(A),Mf=A=>Og.getOuter(A),vy=Vl,jo=IO,zc=(A,$,j)=>{const ce=A.cells,Me=ce.slice(0,$),Ve=ce.slice($),nt=Me.concat(j).concat(Ve);return yy(A,nt)},yh=(A,$,j)=>zc(A,$,[j]),hm=(A,$,j)=>{const ce=A.cells;ce[$]=j},yy=(A,$)=>Xs(A.element,$,A.section,A.isNew),by=(A,$)=>{const j=A.cells,ce=fe(j,$);return Xs(A.element,ce,A.section,A.isNew)},nc=(A,$)=>A.cells[$],wi=(A,$)=>nc(A,$).element,ou=A=>A.cells.length,Hi=A=>{const $=Te(A,j=>j.section==="colgroup");return{rows:$.fail,cols:$.pass}},Oy=(A,$,j)=>{const ce=fe(A.cells,j);return Xs($(A.element),ce,A.section,!0)},Jv="data-snooker-locked-cols",Ti=A=>dn(A,Jv).bind($=>E.from($.match(/\d+/g))).map($=>Ze($,B)),Ui=A=>{const $=ne(Hi(A).rows,(ce,Me)=>(ee(Me.cells,(Ve,nt)=>{Ve.isLocked&&(ce[nt]=!0)}),ce),{}),j=Xe($,(ce,Me)=>parseInt(Me,10));return De(j)},Yu=(A,$)=>A+","+$,mm=(A,$,j)=>E.from(A.access[Yu($,j)]),Ci=(A,$,j)=>{const ce=xg(A,Me=>j($,Me.element));return ce.length>0?E.some(ce[0]):E.none()},xg=(A,$)=>{const j=Le(A.all,ce=>ce.cells);return Be(j,$)},Up=A=>{const $={};let j=0;return ee(A.cells,ce=>{const Me=ce.colspan;q(Me,Ve=>{const nt=j+Ve;$[nt]=vc(ce.element,Me,nt)}),j+=Me}),$},Ta=A=>{const $={},j=[],Me=re(A).map(Rr=>Rr.element).bind(Oc).bind(Ti).getOr({});let Ve=0,nt=0,Ot=0;const{pass:_t,fail:Kt}=Te(A,Rr=>Rr.section==="colgroup");ee(Kt,Rr=>{const Kn=[];ee(Rr.cells,Ir=>{let jn=0;for(;$[Yu(Ot,jn)]!==void 0;)jn++;const io=je(Me,jn.toString()),$o=Ko(Ir.element,Ir.rowspan,Ir.colspan,Ot,jn,io);for(let os=0;os{const Kn=Up(Rr);return{colgroups:[ii(Rr.element,ct(Kn))],columns:Kn}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:to(Ve,nt),access:$,all:j,columns:Cn,colgroups:ir}},hs={fromTable:A=>{const $=um(A);return Ta($)},generate:Ta,getAt:mm,findItem:Ci,filterItems:xg,justCells:A=>Le(A.all,$=>$.cells),justColumns:A=>ct(A.columns),hasColumns:A=>se(A.columns).length>0,getColumnAt:(A,$)=>E.from(A.columns[$])},gm=(A,$=B)=>{const j=A.grid,ce=q(j.columns,I),Me=q(j.rows,I);return fe(ce,Ve=>e0(()=>Le(Me,Kt=>hs.getAt(A,Kt,Ve).filter(Cn=>Cn.column===Ve).toArray()),Kt=>Kt.colspan===1&&$(Kt.element),()=>hs.getAt(A,0,Ve)))},e0=(A,$,j)=>{const ce=A();return G(ce,$).orThunk(()=>E.from(ce[0]).orThunk(j)).map(nt=>nt.element)},Yp=A=>{const $=A.grid,j=q($.rows,I),ce=q($.columns,I);return fe(j,Me=>e0(()=>Le(ce,_t=>hs.getAt(A,Me,_t).filter(Kt=>Kt.row===Me).fold(M([]),Kt=>[Kt])),_t=>_t.rowspan===1,()=>hs.getAt(A,Me,0)))},zS=(A,$)=>{if($<0||$>=A.length-1)return E.none();const j=A[$].fold(()=>{const Me=$e(A.slice(0,$));return te(Me,(Ve,nt)=>Ve.map(Ot=>({value:Ot,delta:nt+1})))},Me=>E.some({value:Me,delta:0})),ce=A[$+1].fold(()=>{const Me=A.slice($+1);return te(Me,(Ve,nt)=>Ve.map(Ot=>({value:Ot,delta:nt+1})))},Me=>E.some({value:Me,delta:1}));return j.bind(Me=>ce.map(Ve=>{const nt=Ve.delta+Me.delta;return Math.abs(Ve.value-Me.value)/nt}))},ZS=(A,$)=>j=>Sy(j)==="rtl"?$:A,Sy=A=>Zi(A,"direction")==="rtl"?"rtl":"ltr",pm=Kv("height",A=>{const $=A.dom;return oa(A)?$.getBoundingClientRect().height:$.offsetHeight}),t0=A=>pm.get(A),vm=A=>pm.getOuter(A),Sg=py,NO=(A,$)=>({left:A,top:$,translate:(ce,Me)=>NO(A+ce,$+Me)}),Xu=NO,BO=A=>{const $=A.getBoundingClientRect();return Xu($.left,$.top)},ym=(A,$)=>A!==void 0?A:$!==void 0?$:0,Tu=A=>{const $=A.dom.ownerDocument,j=$.body,ce=$.defaultView,Me=$.documentElement;if(j===A.dom)return Xu(j.offsetLeft,j.offsetTop);const Ve=ym(ce==null?void 0:ce.pageYOffset,Me.scrollTop),nt=ym(ce==null?void 0:ce.pageXOffset,Me.scrollLeft),Ot=ym(Me.clientTop,j.clientTop),_t=ym(Me.clientLeft,j.clientLeft);return n0(A).translate(nt-_t,Ve-Ot)},n0=A=>{const $=A.dom,ce=$.ownerDocument.body;return ce===$?Xu(ce.offsetLeft,ce.offsetTop):oa(A)?BO($):Xu(0,0)},wy=(A,$)=>({row:A,y:$}),wg=(A,$)=>({col:A,x:$}),Ty=A=>Tu(A).left+Mf(A),Cy=A=>Tu(A).left,ky=(A,$)=>wg(A,Cy($)),r0=(A,$)=>wg(A,Ty($)),sl=A=>Tu(A).top,Xp=(A,$)=>wy(A,sl($)),ca=(A,$)=>wy(A,sl($)+vm($)),uo=(A,$,j)=>{if(j.length===0)return[];const ce=fe(j.slice(1),(Ve,nt)=>Ve.map(Ot=>A(nt,Ot))),Me=j[j.length-1].map(Ve=>$(j.length-1,Ve));return ce.concat([Me])},Gu=A=>-A,Xr={delta:I,positions:A=>uo(Xp,ca,A),edge:sl},Dd=ZS({delta:I,edge:Cy,positions:A=>uo(ky,r0,A)},{delta:Gu,edge:Ty,positions:A=>uo(r0,ky,A)}),vi={delta:(A,$)=>Dd($).delta(A,$),positions:(A,$)=>Dd($).positions(A,$),edge:A=>Dd(A).edge(A)},$d={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Gp=(()=>{const A="[0-9]+",j="[eE]"+("[+-]?"+A),ce="\\.",Me=Ot=>`(?:${Ot})?`,nt=`[+-]?(?:${["Infinity",A+ce+Me(A)+Me(j),ce+A+Me(j),A+Me(j)].join("|")})`;return new RegExp(`^(${nt})(.*)$`)})(),al=(A,$)=>ae($,j=>ae($d[j],ce=>A===ce)),_f=(A,$)=>E.from(Gp.exec(A)).bind(ce=>{const Me=Number(ce[1]),Ve=ce[2];return al(Ve,$)?E.some({value:Me,unit:Ve}):E.none()}),bm=/(\d+(\.\d+)?)%/,ju=/(\d+(\.\d+)?)px|em/,Ay=He("col"),o0=(A,$,j)=>{const ce=Oo(A).getOrThunk(()=>Md(Rn(A)));return $(A)/j(ce)*100},lr=(A,$)=>{Ya(A,"width",$+"px")},QO=(A,$)=>{Ya(A,"width",$+"%")},Ml=(A,$)=>{Ya(A,"height",$+"px")},Kf=A=>Sg(A)+"px",Tg=(A,$,j,ce)=>{const Me=Oc(A).map(Ve=>{const nt=j(Ve);return Math.floor($/100*nt)}).getOr($);return ce(A,Me),Me},da=(A,$,j,ce)=>{const Me=parseFloat(A);return Fc(A,"%")&&wn($)!=="table"?Tg($,Me,j,ce):Me},aa=A=>{const $=Kf(A);return $?da($,A,t0,Ml):t0(A)},El=(A,$,j)=>{const ce=j(A),Me=Su(A,$);return ce/Me},Zl=(A,$)=>Np(A,$).orThunk(()=>dn(A,$).map(j=>j+"px")),Os=A=>Zl(A,"width"),jp=A=>Zl(A,"height"),il=A=>o0(A,Sc,vy),ei=A=>Ay(A)?Sc(A):jo(A),qp=A=>El(A,"rowspan",aa),er=A=>Os(A).bind(j=>_f(j,["fixed","relative","empty"])),Zc=(A,$,j)=>{Ya(A,"width",$+j)},Cg=A=>Sc(A)+"px",zs=A=>o0(A,Sc,vy)+"%",Rf=A=>Os(A).exists($=>bm.test($)),US=A=>Os(A).exists($=>ju.test($)),qu=A=>Os(A).isNone(),s0=M(bm),su=He("col"),a0=A=>Os(A).getOrThunk(()=>ei(A)+"px"),rc=A=>jp(A).getOrThunk(()=>qp(A)+"px"),Ws=A=>fe(hs.justColumns(A),$=>E.from($.element)),au=A=>{const $=Hp().browser,j=$.isChromium()||$.isFirefox();return su(A)?j:!0},fi=(A,$,j,ce,Me,Ve)=>A.filter(ce).fold(()=>Ve(zS(j,$)),nt=>Me(nt)),ll=(A,$,j,ce)=>{const Me=gm(A),Ve=hs.hasColumns(A)?Ws(A):Me,nt=[E.some(vi.edge($))].concat(fe(vi.positions(Me,$),_t=>_t.map(Kt=>Kt.x))),Ot=F(Al);return fe(Ve,(_t,Kt)=>fi(_t,Kt,nt,Ot,Cn=>{if(au(Cn))return j(Cn);{const ir=Vu(Me[Kt],I);return fi(ir,Kt,nt,Ot,$r=>ce(E.some(Sc($r))),ce)}},ce))},Ld=A=>A.map($=>$+"px").getOr(""),Jf=(A,$)=>ll(A,$,a0,Ld),Id=(A,$,j)=>ll(A,$,il,ce=>ce.fold(()=>j.minCellWidth(),Me=>Me/j.pixelWidth()*100)),wc=(A,$,j)=>ll(A,$,ei,ce=>ce.getOrThunk(j.minCellWidth)),ed=(A,$,j,ce,Me)=>{const Ve=Yp(A),nt=[E.some(j.edge($))].concat(fe(j.positions(Ve,$),Ot=>Ot.map(_t=>_t.y)));return fe(Ve,(Ot,_t)=>fi(Ot,_t,nt,F(bc),ce,Me))},Mn=(A,$,j)=>ed(A,$,j,qp,ce=>ce.getOrThunk(kf)),Tc=(A,$,j)=>ed(A,$,j,rc,Ld),td=(A,$)=>()=>oa(A)?$(A):parseFloat(Np(A,"width").getOr("0")),nd=A=>{const $=td(A,Sc),j=M(0);return{width:$,pixelWidth:$,getWidths:(Me,Ve)=>wc(Me,A,Ve),getCellDelta:j,singleColumnWidth:M([0]),minCellWidth:j,setElementWidth:w,adjustTableWidth:w,isRelative:!0,label:"none"}},Hc=A=>{const $=td(A,_t=>parseFloat(zs(_t))),j=td(A,Sc);return{width:$,pixelWidth:j,getWidths:(_t,Kt)=>Id(_t,A,Kt),getCellDelta:_t=>_t/j()*100,singleColumnWidth:(_t,Kt)=>[100-_t],minCellWidth:()=>ci()/j()*100,setElementWidth:QO,adjustTableWidth:_t=>{const Kt=$(),Cn=_t/100*Kt,ir=Kt+Cn;QO(A,ir)},isRelative:!0,label:"percent"}},Wi=A=>{const $=td(A,Sc);return{width:$,pixelWidth:$,getWidths:(nt,Ot)=>wc(nt,A,Ot),getCellDelta:I,singleColumnWidth:(nt,Ot)=>[Math.max(ci(),nt+Ot)-nt],minCellWidth:ci,setElementWidth:lr,adjustTableWidth:nt=>{const Ot=$()+nt;lr(A,Ot)},isRelative:!1,label:"pixel"}},Di=(A,$)=>s0().exec($)!==null?Hc(A):Wi(A),Cc={getTableSize:A=>Os(A).fold(()=>nd(A),j=>Di(A,j)),pixelSize:Wi,percentageSize:Hc,noneSize:nd},D=(A,$,j,ce,Me,Ve)=>({minRow:A,minCol:$,maxRow:j,maxCol:ce,allCells:Me,selectedCells:Ve}),X=(A,$)=>{const j=A.grid.columns;let Me=A.grid.rows,Ve=j,nt=0,Ot=0;const _t=[],Kt=[];return oe(A.access,Cn=>{if(_t.push(Cn),$(Cn)){Kt.push(Cn);const ir=Cn.row,$r=ir+Cn.rowspan-1,Rr=Cn.column,Kn=Rr+Cn.colspan-1;irnt&&(nt=$r),RrOt&&(Ot=Kn)}}),D(Me,Ve,nt,Ot,_t,Kt)},de=(A,$,j)=>{const ce=A[j].element,Me=zt.fromTag("td");Mt(Me,zt.fromTag("br")),($?Mt:$t)(ce,Me)},we=(A,$,j,ce)=>{const Me=Be(A,Ot=>Ot.section!=="colgroup"),Ve=$.grid.columns,nt=$.grid.rows;for(let Ot=0;Otj.maxRow||Ktj.maxCol||(hs.getAt($,Ot,Kt).filter(ce).isNone()?de(Me,_t,Ot):_t=!0)}},Pe=(A,$,j,ce)=>{oe(j.columns,nt=>{(nt.column<$.minCol||nt.column>$.maxCol)&&On(nt.element)});const Me=Be(Bp(A,"tr"),nt=>nt.dom.childElementCount===0);ee(Me,On),($.minCol===$.maxCol||$.minRow===$.maxRow)&&ee(Bp(A,"th,td"),nt=>{nn(nt,"rowspan"),nn(nt,"colspan")}),nn(A,Jv),nn(A,"data-snooker-col-series"),Cc.getTableSize(A).adjustTableWidth(ce)},Re=(A,$,j,ce)=>{if(ce.minCol===0&&$.grid.columns===ce.maxCol+1)return 0;const Me=wc($,A,j),Ve=ne(Me,(Kt,Cn)=>Kt+Cn,0),_t=ne(Me.slice(ce.minCol,ce.maxCol+1),(Kt,Cn)=>Kt+Cn,0)/Ve*j.pixelWidth()-j.pixelWidth();return j.getCellDelta(_t)},Ke=(A,$)=>{const j=$r=>vr($r.element,$),ce=zr(A),Me=um(ce),Ve=Cc.getTableSize(A),nt=hs.generate(Me),Ot=X(nt,j),_t="th:not("+$+"),td:not("+$+")",Kt=Qp(ce,"th,td",$r=>vr($r,_t));ee(Kt,On),we(Me,nt,Ot,j);const Cn=hs.fromTable(A),ir=Re(A,Cn,Ve,Ot);return Pe(ce,Ot,nt,ir),ce},We=" ",vt=((A,$)=>{const j=Ve=>{if(!A(Ve))throw new Error("Can only get "+$+" value of a "+$+" node");return ce(Ve).getOr("")},ce=Ve=>A(Ve)?E.from(Ve.dom.nodeValue):E.none();return{get:j,getOption:ce,set:(Ve,nt)=>{if(!A(Ve))throw new Error("Can only set raw "+$+" value of a "+$+" node");Ve.dom.nodeValue=nt}}})(xt,"text"),bt=A=>vt.get(A),Zt=A=>vt.getOption(A),Ut=(A,$)=>vt.set(A,$),gn=A=>wn(A)==="img"?1:Zt(A).fold(()=>St(A).length,$=>$.length),An=A=>Zt(A).filter($=>$.trim().length!==0||$.indexOf(We)>-1).isSome(),jt=A=>it(A)&&Pt(A,"contenteditable")==="false",tn=["img","br"],hn=A=>An(A)||me(tn,wn(A))||jt(A),_n=A=>Fa(A,hn),Pn=A=>yn(A,hn),yn=(A,$)=>{const j=ce=>{const Me=St(ce);for(let Ve=Me.length-1;Ve>=0;Ve--){const nt=Me[Ve];if($(nt))return E.some(nt);const Ot=j(nt);if(Ot.isSome())return Ot}return E.none()};return j(A)},cr={scope:["row","col"]},Zr=A=>()=>{const $=zt.fromTag("td",A.dom);return Mt($,zt.fromTag("br",A.dom)),$},Jr=A=>()=>zt.fromTag("col",A.dom),Ar=A=>()=>zt.fromTag("colgroup",A.dom),no=A=>()=>zt.fromTag("tr",A.dom),fo=(A,$,j)=>{const ce=Hr(A,$);return oe(j,(Me,Ve)=>{Me===null?nn(ce,Ve):dt(ce,Ve,Me)}),ce},ts=A=>A,xo=(A,$,j)=>_n(A).map(Me=>{const Ve=j.join(","),nt=Ou(Me,Ve,Ot=>or(Ot,A));return ge(nt,(Ot,_t)=>{const Kt=Fn(_t);return Mt(Ot,Kt),Kt},$)}).getOr($),go=(A,$)=>{oe(cr,(j,ce)=>dn(A,ce).filter(Me=>me(j,Me)).each(Me=>dt($,ce,Me)))},js=(A,$,j)=>{const ce=(nt,Ot)=>{Zu(nt.element,Ot),xu(Ot,"height"),nt.colspan!==1&&xu(Ot,"width")},Me=nt=>{const Ot=zt.fromTag(wn(nt.element),$.dom),_t=j.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),Kt=_t.length>0?xo(nt.element,Ot,_t):Ot;return Mt(Kt,zt.fromTag("br")),ce(nt,Ot),go(nt.element,Ot),A(nt.element,Ot),Ot};return{col:nt=>{const Ot=zt.fromTag(wn(nt.element),$.dom);return ce(nt,Ot),A(nt.element,Ot),Ot},colgroup:Ar($),row:no($),cell:Me,replace:fo,colGap:Jr($),gap:Zr($)}},ti=A=>({col:Jr(A),colgroup:Ar(A),row:no(A),cell:Zr(A),replace:ts,colGap:Jr(A),gap:Zr(A)}),ba=(A,$)=>{const ce=($||document).createElement("div");return ce.innerHTML=A,St(zt.fromDom(ce))},Lr=A=>fe(A,zt.fromDom),Do=A=>$=>$.options.get(A),ms="100%",_s=A=>{var $;const j=A.dom,ce=($=j.getParent(A.selection.getStart(),j.isBlock))!==null&&$!==void 0?$:A.getBody();return vy(zt.fromDom(ce))+"px"},Ba=(A,$)=>Li(A)||!Ii(A)?$:Ul(A)?{...$,width:_s(A)}:{...$,width:ms},di=(A,$)=>Li(A)||Ii(A)?$:Ul(A)?{...$,width:_s(A)}:{...$,width:ms},Yi=A=>{const $=A.options.register;$("table_clone_elements",{processor:"string[]"}),$("table_use_colgroups",{processor:"boolean",default:!0}),$("table_header_type",{processor:j=>{const ce=me(["section","cells","sectionCells","auto"],j);return ce?{value:j,valid:ce}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),$("table_sizing_mode",{processor:"string",default:"auto"}),$("table_default_attributes",{processor:"object",default:{border:"1"}}),$("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),$("table_column_resizing",{processor:j=>{const ce=me(["preservetable","resizetable"],j);return ce?{value:j,valid:ce}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),$("table_resize_bars",{processor:"boolean",default:!0}),$("table_style_by_css",{processor:"boolean",default:!0}),$("table_merge_content_on_paste",{processor:"boolean",default:!0})},$i=A=>E.from(A.options.get("table_clone_elements")),Uc=A=>{const $=A.options.get("object_resizing");return me($.split(","),"table")},Ki=Do("table_header_type"),kc=Do("table_column_resizing"),Hl=A=>kc(A)==="preservetable",ea=A=>kc(A)==="resizetable",Ku=Do("table_sizing_mode"),Df=A=>Ku(A)==="relative",Ul=A=>Ku(A)==="fixed",Li=A=>Ku(A)==="responsive",Wl=Do("table_resize_bars"),Ii=Do("table_style_by_css"),ta=Do("table_merge_content_on_paste"),Ac=A=>{const $=A.options,j=$.get("table_default_attributes");return $.isSet("table_default_attributes")?j:di(A,j)},Nd=A=>{const $=A.options,j=$.get("table_default_styles");return $.isSet("table_default_styles")?j:Ba(A,j)},Ju=Do("table_use_colgroups"),Om=A=>Ka(A,"[contenteditable]"),Bd=(A,$=!1)=>oa(A)?A.dom.isContentEditable:Om(A).fold(M($),j=>Py(j)==="true"),Py=A=>A.dom.contentEditable,FO=A=>zt.fromDom(A.getBody()),Oh=A=>$=>or($,FO(A)),Qd=A=>{nn(A,"data-mce-style");const $=j=>nn(j,"data-mce-style");ee(Af(A),$),ee(Fp(A),$),ee(Gv(A),$)},ef=A=>zt.fromDom(A.selection.getStart()),kg=A=>A.getBoundingClientRect().width,Ag=A=>A.getBoundingClientRect().height,KC=(A,$)=>{const j=A.dom.getStyle($,"width")||A.dom.getAttrib($,"width");return E.from(j).filter(lm)},VO=A=>/^(\d+(\.\d+)?)%$/.test(A),My=A=>/^(\d+(\.\d+)?)px$/.test(A),zO=A=>xi(A,He("table")).exists(Bd),JC=(A,$)=>{const j=$.column,ce=$.column+$.colspan-1,Me=$.row,Ve=$.row+$.rowspan-1;return j<=A.finishCol&&ce>=A.startCol&&Me<=A.finishRow&&Ve>=A.startRow},ZO=(A,$)=>$.column>=A.startCol&&$.column+$.colspan-1<=A.finishCol&&$.row>=A.startRow&&$.row+$.rowspan-1<=A.finishRow,Ey=(A,$)=>{let j=!0;const ce=N(ZO,$);for(let Me=$.startRow;Me<=$.finishRow;Me++)for(let Ve=$.startCol;Ve<=$.finishCol;Ve++)j=j&&hs.getAt(A,Me,Ve).exists(ce);return j?E.some($):E.none()},_y=(A,$)=>Wa(Math.min(A.row,$.row),Math.min(A.column,$.column),Math.max(A.row+A.rowspan-1,$.row+$.rowspan-1),Math.max(A.column+A.colspan-1,$.column+$.colspan-1)),ks=(A,$,j)=>{const ce=hs.findItem(A,$,or),Me=hs.findItem(A,j,or);return ce.bind(Ve=>Me.map(nt=>_y(Ve,nt)))},vo=(A,$,j)=>ks(A,$,j).bind(ce=>Ey(A,ce)),xm=(A,$,j,ce)=>hs.findItem(A,$,or).bind(Me=>{const Ve=j>0?Me.row+Me.rowspan-1:Me.row,nt=ce>0?Me.column+Me.colspan-1:Me.column;return hs.getAt(A,Ve+j,nt+ce).map(_t=>_t.element)}),HO=(A,$,j)=>ks(A,$,j).map(ce=>{const Me=hs.filterItems(A,N(JC,ce));return fe(Me,Ve=>Ve.element)}),Ry=(A,$)=>{const j=(ce,Me)=>jr(Me,ce);return hs.findItem(A,$,j).map(ce=>ce.element)},EM=(A,$,j)=>Oc(A).bind(ce=>{const Me=XS(ce);return xm(Me,A,$,j)}),WS=(A,$,j)=>{const ce=XS(A);return HO(ce,$,j)},Ea=(A,$,j,ce,Me)=>{const Ve=XS(A),nt=or(A,j)?E.some($):Ry(Ve,$),Ot=or(A,Me)?E.some(ce):Ry(Ve,ce);return nt.bind(_t=>Ot.bind(Kt=>HO(Ve,_t,Kt)))},YS=(A,$,j)=>{const ce=XS(A);return vo(ce,$,j)},XS=hs.fromTable;var GS=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],qn=()=>{const A=Kt=>zt.fromDom(Kt.dom.cloneNode(!1)),$=Kt=>xr(Kt).dom,j=Kt=>ut(Kt)?wn(Kt)==="body"?!0:me(GS,wn(Kt)):!1,ce=Kt=>ut(Kt)?me(["br","img","hr","input"],wn(Kt)):!1,Me=Kt=>ut(Kt)&&Pt(Kt,"contenteditable")==="false",Ve=(Kt,Cn)=>Kt.dom.compareDocumentPosition(Cn.dom),nt=(Kt,Cn)=>{const ir=Wt(Kt);mt(Cn,ir)},Ot=Kt=>{const Cn=wn(Kt);return me(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],Cn)},_t=Kt=>ut(Kt)?dn(Kt,"lang"):E.none();return{up:M({selector:yl,closest:Ka,predicate:Qa,all:wr}),down:M({selector:zi,predicate:Ed}),styles:M({get:Zi,getRaw:Np,set:Ya,remove:xu}),attrs:M({get:Pt,set:dt,remove:nn,copyTo:nt}),insert:M({before:Ft,after:Ht,afterAll:Jt,append:Mt,appendAll:rn,prepend:$t,wrap:un}),remove:M({unwrap:pn,remove:On}),create:M({nu:zt.fromTag,clone:A,text:zt.fromText}),query:M({comparePosition:Ve,prevSibling:Fe,nextSibling:Ee}),property:M({children:St,name:wn,parent:ao,document:$,isText:xt,isComment:Sn,isElement:ut,isSpecial:Ot,getLanguage:_t,getText:bt,setText:Ut,isBoundary:j,isEmptyTag:ce,isNonEditable:Me}),eq:or,is:_r}};const UO=(A,$,j,ce)=>{const Me=j[0],Ve=j.slice(1);return ce(A,$,Me,Ve)},_M=(A,$,j)=>j.length>0?UO(A,$,j,Dy):E.none(),Dy=(A,$,j,ce)=>{const Me=$(A,j);return ge(ce,(Ve,nt)=>{const Ot=$(A,nt);return RM(A,Ve,Ot)},Me)},RM=(A,$,j)=>$.bind(ce=>j.filter(N(A.eq,ce))),i0=(A,$)=>N(A.eq,$),jS=(A,$,j,ce=Q)=>{const Me=[$].concat(A.up().all($)),Ve=[j].concat(A.up().all(j)),nt=Cn=>Oe(Cn,ce).fold(()=>Cn,$r=>Cn.slice(0,$r+1)),Ot=nt(Me),_t=nt(Ve),Kt=G(Ot,Cn=>ae(_t,i0(A,Cn)));return{firstpath:Ot,secondpath:_t,shared:Kt}},Sm=_M,DM=jS,xh=qn(),Ca=(A,$)=>Sm(xh,(j,ce)=>A(ce),$),Sh=(A,$,j)=>DM(xh,A,$,j),qS=A=>yl(A,"table"),rd=(A,$,j)=>{const ce=Me=>Ve=>j!==void 0&&j(Ve)||or(Ve,Me);return or(A,$)?E.some({boxes:E.some([A]),start:A,finish:$}):qS(A).bind(Me=>qS($).bind(Ve=>{if(or(Me,Ve))return E.some({boxes:WS(Me,A,$),start:A,finish:$});if(jr(Me,Ve)){const nt=Ou($,"td,th",ce(Me)),Ot=nt.length>0?nt[nt.length-1]:$;return E.some({boxes:Ea(Me,A,Me,$,Ve),start:A,finish:Ot})}else if(jr(Ve,Me)){const nt=Ou(A,"td,th",ce(Ve)),Ot=nt.length>0?nt[nt.length-1]:A;return E.some({boxes:Ea(Ve,A,Me,$,Ve),start:A,finish:Ot})}else return Sh(A,$).shared.bind(nt=>Ka(nt,"table",j).bind(Ot=>{const _t=Ou($,"td,th",ce(Ot)),Kt=_t.length>0?_t[_t.length-1]:$,Cn=Ou(A,"td,th",ce(Ot)),ir=Cn.length>0?Cn[Cn.length-1]:A;return E.some({boxes:Ea(Ot,A,Me,$,Ve),start:ir,finish:Kt})}))}))},wm=(A,$)=>{const j=zi(A,$);return j.length>0?E.some(j):E.none()},KS=(A,$)=>G(A,j=>vr(j,$)),Kp=(A,$,j)=>li(A,$).bind(ce=>li(A,j).bind(Me=>Ca(qS,[ce,Me]).map(Ve=>({first:ce,last:Me,table:Ve})))),ek=(A,$)=>yl(A,"table").bind(j=>li(j,$).bind(ce=>rd(ce,A).bind(Me=>Me.boxes.map(Ve=>({boxes:Ve,start:Me.start,finish:Me.finish}))))),WO=(A,$,j,ce,Me)=>KS(A,Me).bind(Ve=>EM(Ve,$,j).bind(nt=>ek(nt,ce))),JS=(A,$)=>wm(A,$),$M=(A,$,j)=>Kp(A,$,j).bind(ce=>{const Me=_t=>or(A,_t),Ve="thead,tfoot,tbody,table",nt=yl(ce.first,Ve,Me),Ot=yl(ce.last,Ve,Me);return nt.bind(_t=>Ot.bind(Kt=>or(_t,Kt)?YS(ce.table,ce.first,ce.last):E.none()))}),ew=I,wh=A=>{const $=(ce,Me)=>dn(ce,Me).exists(Ve=>parseInt(Ve,10)>1),j=ce=>$(ce,"rowspan")||$(ce,"colspan");return A.length>0&&ke(A,j)?E.some(A):E.none()},j$=(A,$,j)=>$.length<=1?E.none():$M(A,j.firstSelectedSelector,j.lastSelectedSelector).map(ce=>({bounds:ce,cells:$})),tw="data-mce-selected",Pg="td["+tw+"],th["+tw+"]",Yl="["+tw+"]",Kr="data-mce-first-selected",LM="td["+Kr+"],th["+Kr+"]",nw="data-mce-last-selected",IM="td["+nw+"],th["+nw+"]",tk=Yl,Jp={selected:tw,selectedSelector:Pg,firstSelected:Kr,firstSelectedSelector:LM,lastSelected:nw,lastSelectedSelector:IM},l0=(A,$,j)=>({element:j,mergable:j$($,A,Jp),unmergable:wh(A),selection:ew(A)}),$y=(A,$,j)=>({element:A,clipboard:$,generators:j}),c0=(A,$,j,ce)=>({selection:ew(A),clipboard:j,generators:ce}),YO=A=>Oc(A).bind($=>JS($,Jp.firstSelectedSelector)).fold(M(A),$=>$[0]),Tm=A=>($,j)=>{const ce=wn($),Me=ce==="col"||ce==="colgroup"?YO($):$;return Ka(Me,A,j)},Fd=Tm("th,td,caption"),Ly=Tm("th,td"),$f=A=>Lr(A.model.table.getSelectedCells()),XO=A=>Be($f(A),$=>vr($,Jp.selectedSelector)),nk=A=>Oc(A[0]).map($=>{const j=Ke($,tk);return Qd(j),[j]}),u0=(A,$)=>fe($,j=>A.selection.serializer.serialize(j.dom,{})).join(""),Cm=A=>fe(A,$=>$.dom.innerText).join(""),NM=(A,$)=>{A.on("BeforeGetContent",j=>{const ce=Me=>{j.preventDefault(),nk(Me).each(Ve=>{j.content=j.format==="text"?Cm(Ve):u0(A,Ve)})};if(j.selection===!0){const Me=XO(A);Me.length>=1&&ce(Me)}}),A.on("BeforeSetContent",j=>{if(j.selection===!0&&j.paste===!0){const ce=$f(A);re(ce).each(Me=>{Oc(Me).each(Ve=>{const nt=Be(ba(j.content),_t=>wn(_t)!=="meta"),Ot=He("table");if(ta(A)&&nt.length===1&&Ot(nt[0])){j.preventDefault();const _t=zt.fromDom(A.getDoc()),Kt=ti(_t),Cn=$y(Me,nt[0],Kt);$.pasteCells(Ve,Cn).each(()=>{A.focus()})}})})}})},f0=(A,$)=>({element:A,offset:$}),ev=(A,$,j)=>A.property().isText($)&&A.property().getText($).trim().length===0||A.property().isComment($)?j($).bind(ce=>ev(A,ce,j).orThunk(()=>E.some(ce))):E.none(),od=(A,$)=>A.property().isText($)?A.property().getText($).length:A.property().children($).length,Cu=(A,$)=>{const j=ev(A,$,A.query().prevSibling).getOr($);if(A.property().isText(j))return f0(j,od(A,j));const ce=A.property().children(j);return ce.length>0?Cu(A,ce[ce.length-1]):f0(j,od(A,j))},BM=Cu,rk=qn(),ok=A=>BM(rk,A),rw=(A,$)=>{Al(A)||er(A).each(ce=>{const Me=ce.value/2;Zc(A,Me,ce.unit),Zc($,Me,ce.unit)})},ku=A=>fe(A,M(0)),d0=(A,$,j,ce,Me)=>Me(A.slice(0,$)).concat(ce).concat(Me(A.slice(j))),GO=A=>($,j,ce,Me)=>{if(A(ce)){const Ve=Math.max(Me,$[j]-Math.abs(ce)),nt=Math.abs(Ve-$[j]);return ce>=0?nt:-nt}else return ce},jO=GO(A=>A<0),QM=GO(B),sk=()=>{const A=(Ot,_t,Kt,Cn,ir)=>{const $r=jO(Ot,_t,Cn,ir);return d0(Ot,_t,Kt+1,[$r,0],ku)},$=(Ot,_t,Kt,Cn)=>{const ir=(100+Kt)/100,$r=Math.max(Cn,(Ot[_t]+Kt)/ir);return fe(Ot,(Rr,Kn)=>(Kn===_t?$r:Rr/ir)-Rr)},j=(Ot,_t,Kt,Cn,ir,$r)=>$r?$(Ot,_t,Cn,ir):A(Ot,_t,Kt,Cn,ir);return{resizeTable:(Ot,_t)=>Ot(_t),clampTableDelta:jO,calcLeftEdgeDeltas:j,calcMiddleDeltas:(Ot,_t,Kt,Cn,ir,$r,Rr)=>j(Ot,Kt,Cn,ir,$r,Rr),calcRightEdgeDeltas:(Ot,_t,Kt,Cn,ir,$r)=>{if($r)return $(Ot,Kt,Cn,ir);{const Rr=jO(Ot,Kt,Cn,ir);return ku(Ot.slice(0,Kt)).concat([Rr])}},calcRedestributedWidths:(Ot,_t,Kt,Cn)=>{if(Cn){const $r=(_t+Kt)/_t,Rr=fe(Ot,Kn=>Kn/$r);return{delta:$r*100-100,newSizes:Rr}}else return{delta:Kt,newSizes:Ot}}}},ow=()=>{const A=(nt,Ot,_t,Kt,Cn)=>{const ir=Kt>=0?_t:Ot,$r=QM(nt,ir,Kt,Cn);return d0(nt,Ot,_t+1,[$r,-$r],ku)};return{resizeTable:(nt,Ot,_t)=>{_t&&nt(Ot)},clampTableDelta:(nt,Ot,_t,Kt,Cn)=>{if(Cn){if(_t>=0)return _t;{const ir=ne(nt,($r,Rr)=>$r+Rr-Kt,0);return Math.max(-ir,_t)}}else return jO(nt,Ot,_t,Kt)},calcLeftEdgeDeltas:A,calcMiddleDeltas:(nt,Ot,_t,Kt,Cn,ir)=>A(nt,_t,Kt,Cn,ir),calcRightEdgeDeltas:(nt,Ot,_t,Kt,Cn,ir)=>{if(ir)return ku(nt);{const $r=Kt/nt.length;return fe(nt,M($r))}},calcRedestributedWidths:(nt,Ot,_t,Kt)=>({delta:0,newSizes:nt})}},h0=A=>hs.fromTable(A).grid,m0=He("th"),qO=A=>ke(A,$=>m0($.element)),FM=(A,$)=>A&&$?"sectionCells":A?"section":"cells",KO=A=>{const $=A.section==="thead",j=Gf(g0(A.cells),"th");return A.section==="tfoot"?{type:"footer"}:$||j?{type:"header",subType:FM($,j)}:{type:"body"}},g0=A=>{const $=Be(A,j=>m0(j.element));return $.length===0?E.some("td"):$.length===A.length?E.some("th"):E.none()},VM=A=>{const $=fe(A,Me=>KO(Me).type),j=me($,"header"),ce=me($,"footer");if(!j&&!ce)return E.some("body");{const Me=me($,"body");return j&&!Me&&!ce?E.some("header"):!j&&!Me&&ce?E.some("footer"):E.none()}},Iy=A=>te(A.all,$=>{const j=KO($);return j.type==="header"?E.from(j.subType):E.none()}),sw=(A,$,j)=>es(j(A.element,$),!0,A.isLocked),Au=(A,$)=>A.section!==$?Xs(A.element,A.cells,$,A.isNew):A,JO=()=>({transformRow:Au,transformCell:(A,$,j)=>{const ce=j(A.element,$),Me=wn(ce)!=="td"?ar(ce,"td"):ce;return es(Me,A.isNew,A.isLocked)}}),ak=()=>({transformRow:Au,transformCell:sw}),ex=()=>({transformRow:(A,$)=>Au(A,$==="thead"?"tbody":$),transformCell:sw}),Mg={getTableSectionType:(A,$)=>{const j=hs.fromTable(A);switch(Iy(j).getOr($)){case"section":return JO();case"sectionCells":return ak();case"cells":return ex()}},section:JO,sectionCells:ak,cells:ex,fallback:()=>({transformRow:I,transformCell:sw})},Th=(A,$,j,ce)=>{j===ce?nn(A,$):dt(A,$,j)},aw=(A,$,j)=>{ye(Po(A,$)).fold(()=>$t(A,j),ce=>Ht(ce,j))},p0=(A,$)=>{const j=Zo(A,$).getOrThunk(()=>{const ce=zt.fromTag($,Rn(A).dom);return $==="thead"?aw(A,"caption,colgroup",ce):$==="colgroup"?aw(A,"caption",ce):Mt(A,ce),ce});return Tn(j),j},nx=(A,$)=>{const j=[],ce=[],Me=Rr=>fe(Rr,Kn=>{Kn.isNew&&j.push(Kn.element);const Ir=Kn.element;return Tn(Ir),ee(Kn.cells,jn=>{jn.isNew&&ce.push(jn.element),Th(jn.element,"colspan",jn.colspan,1),Th(jn.element,"rowspan",jn.rowspan,1),Mt(Ir,jn.element)}),Ir}),Ve=Rr=>Le(Rr,Kn=>fe(Kn.cells,Ir=>(Th(Ir.element,"span",Ir.colspan,1),Ir.element))),nt=(Rr,Kn)=>{const Ir=p0(A,Kn),io=(Kn==="colgroup"?Ve:Me)(Rr);rn(Ir,io)},Ot=Rr=>{Zo(A,Rr).each(On)},_t=(Rr,Kn)=>{Rr.length>0?nt(Rr,Kn):Ot(Kn)},Kt=[],Cn=[],ir=[],$r=[];return ee($,Rr=>{switch(Rr.section){case"thead":Kt.push(Rr);break;case"tbody":Cn.push(Rr);break;case"tfoot":ir.push(Rr);break;case"colgroup":$r.push(Rr);break}}),_t($r,"colgroup"),_t(Kt,"thead"),_t(Cn,"tbody"),_t(ir,"tfoot"),{newRows:j,newCells:ce}},ik=A=>fe(A,$=>{const j=Fn($.element);return ee($.cells,ce=>{const Me=zr(ce.element);Th(Me,"colspan",ce.colspan,1),Th(Me,"rowspan",ce.rowspan,1),Mt(j,Me)}),j}),Da=(A,$)=>fe(A,j=>nc(j,$)),zM=(A,$)=>A[$],ki=(A,$)=>{if(A.length===0)return 0;const j=A[0];return Oe(A,Me=>!$(j.element,Me.element)).getOr(A.length)},lk=(A,$,j,ce)=>{const Me=zM(A,$),Ve=Me.section==="colgroup",nt=ki(Me.cells.slice(j),ce),Ot=Ve?1:ki(Da(A.slice($),j),ce);return{colspan:nt,rowspan:Ot}},Xa=(A,$)=>{const j=fe(A,Me=>fe(Me.cells,Q)),ce=(Me,Ve,nt,Ot)=>{for(let _t=Me;_t{const nt=Le(Me.cells,(Ot,_t)=>{if(j[Ve][_t]===!1){const Kt=lk(A,Ve,_t,$);return ce(Ve,_t,Kt.rowspan,Kt.colspan),[So(Ot.element,Kt.rowspan,Kt.colspan,Ot.isNew)]}else return[]});return qs(Me.element,nt,Me.section,Me.isNew)})},v0=(A,$,j)=>{const ce=[];ee(A.colgroups,Me=>{const Ve=[];for(let nt=0;ntes(_t.element,j,!1)).getOrThunk(()=>es($.colGap(),!0,!1));Ve.push(Ot)}ce.push(Xs(Me.element,Ve,"colgroup",j))});for(let Me=0;Mees(Cn.element,j,Cn.isLocked)).getOrThunk(()=>es($.gap(),!0,!1));Ve.push(Kt)}const nt=A.all[Me],Ot=Xs(nt.element,Ve,nt.section,j);ce.push(Ot)}return ce},Ji=(A,$)=>v0(A,$,!1),ni=A=>Xa(A,or),tf=(A,$)=>te(A.all,j=>G(j.cells,ce=>or($,ce.element))),iw=(A,$,j)=>{const ce=fe($.selection,Ve=>Xv(Ve).bind(nt=>tf(A,nt)).filter(j)),Me=Za(ce);return zu(Me.length>0,Me)},Xl=(A,$,j,ce,Me)=>(Ve,nt,Ot,_t)=>{const Kt=hs.fromTable(Ve),Cn=E.from(_t==null?void 0:_t.section).getOrThunk(Mg.fallback);return $(Kt,nt).map($r=>{const Rr=Ji(Kt,Ot),Kn=A(Rr,$r,or,Me(Ot),Cn),Ir=Ui(Kn.grid),jn=ni(Kn.grid);return{info:$r,grid:jn,cursor:Kn.cursor,lockedColumns:Ir}}).bind($r=>{const Rr=nx(Ve,$r.grid),Kn=E.from(_t==null?void 0:_t.sizing).getOrThunk(()=>Cc.getTableSize(Ve)),Ir=E.from(_t==null?void 0:_t.resize).getOrThunk(ow);return j(Ve,$r.grid,$r.info,{sizing:Kn,resize:Ir,section:Cn}),ce(Ve),nn(Ve,Jv),$r.lockedColumns.length>0&&dt(Ve,Jv,$r.lockedColumns.join(",")),E.some({cursor:$r.cursor,newRows:Rr.newRows,newCells:Rr.newCells})})},Ny=(A,$)=>Xv($.element).bind(j=>tf(A,j).map(ce=>({...ce,generators:$.generators,clipboard:$.clipboard}))),y0=(A,$)=>iw(A,$,B).map(j=>({cells:j,generators:$.generators,clipboard:$.clipboard})),Ch=(A,$)=>$.mergable,b0=(A,$)=>$.unmergable,Eg=(A,$)=>iw(A,$,B),km=(A,$)=>iw(A,$,j=>!j.isLocked),ZM=(A,$)=>tf(A,$).exists(j=>!j.isLocked),ck=(A,$)=>ke($,j=>ZM(A,j)),K$=(A,$)=>Ch(A,$).filter(j=>ck(A,j.cells)),J$=(A,$)=>b0(A,$).filter(j=>ck(A,j)),sd=(A,$,j,ce)=>{const Me=Hi(A).rows;if(Me.length===0)return A;for(let Ve=$.startRow;Ve<=$.finishRow;Ve++)for(let nt=$.startCol;nt<=$.finishCol;nt++){const Ot=Me[Ve],_t=nc(Ot,nt).isLocked;hm(Ot,nt,es(ce(),!1,_t))}return A},Pc=(A,$,j,ce)=>{const Me=Hi(A).rows;let Ve=!0;for(let nt=0;ntne(A,(j,ce)=>ae(j,Me=>$(Me.element,ce.element))?j:j.concat([ce]),[]),UM=(A,$,j,ce)=>($>0&&${const Ve=Me.cells[$-1];let nt=0;const Ot=ce();for(;Me.cells.length>$+nt&&j(Ve.element,Me.cells[$+nt].element);)hm(Me,$+nt,es(Ot,!0,Me.cells[$+nt].isLocked)),nt++}),A),_g=(A,$,j,ce)=>{const Me=Hi(A).rows;if($>0&&${let _t=E.none();for(let Kt=$;Kt{hm(ir,Cn,es(Kn,!0,$r.isLocked))}))}})}return A},By=A=>{const $=Ve=>Ve(A),j=M(A),ce=()=>Me,Me={tag:!0,inner:A,fold:(Ve,nt)=>nt(A),isValue:B,isError:Q,map:Ve=>kh.value(Ve(A)),mapError:ce,bind:$,exists:$,forall:$,getOr:j,or:ce,getOrThunk:j,orThunk:ce,getOrDie:j,each:Ve=>{Ve(A)},toOptional:()=>E.some(A)};return Me},rx=A=>{const $=()=>j,j={tag:!1,inner:A,fold:(ce,Me)=>ce(A),isValue:Q,isError:B,map:$,mapError:ce=>kh.error(ce(A)),bind:$,exists:Q,forall:B,getOr:I,or:I,getOrThunk:U,orThunk:U,getOrDie:z(String(A)),each:w,toOptional:E.none};return j},kh={value:By,error:rx,fromOption:(A,$)=>A.fold(()=>rx($),By)},O0=(A,$,j)=>{if(A.row>=$.length||A.column>ou($[0]))return kh.error("invalid start address out of table bounds, row: "+A.row+", column: "+A.column);const ce=$.slice(A.row),Me=ce[0].cells.slice(A.column),Ve=ou(j[0]),nt=j.length;return kh.value({rowDelta:ce.length-nt,colDelta:Me.length-Ve})},x0=(A,$)=>{const j=ou(A[0]),ce=ou($[0]);return{rowDelta:0,colDelta:j-ce}},S0=(A,$)=>{const j=A.length,ce=$.length;return{rowDelta:j-ce,colDelta:0}},tv=(A,$,j,ce)=>{const Me=$.section==="colgroup"?j.col:j.cell;return q(A,Ve=>es(Me(),!0,ce(Ve)))},uk=(A,$,j,ce)=>{const Me=A[A.length-1];return A.concat(q($,()=>{const Ve=Me.section==="colgroup"?j.colgroup:j.row,nt=Oy(Me,Ve,I),Ot=tv(nt.cells.length,nt,j,_t=>Ye(ce,_t.toString()));return yy(nt,Ot)}))},yi=(A,$,j,ce)=>fe(A,Me=>{const Ve=tv($,Me,j,Q);return zc(Me,ce,Ve)}),fk=(A,$,j)=>fe(A,ce=>ne(j,(Me,Ve)=>{const nt=tv(1,ce,$,B)[0];return yh(Me,Ve,nt)},ce)),w0=(A,$,j)=>{const ce=$.colDelta<0?yi:I,Me=$.rowDelta<0?uk:I,Ve=Ui(A),nt=ou(A[0]),Ot=ae(Ve,Cn=>Cn===nt-1),_t=ce(A,Math.abs($.colDelta),j,Ot?nt-1:nt),Kt=Ui(_t);return Me(_t,Math.abs($.rowDelta),j,Ze(Kt,B))},dk=(A,$,j,ce)=>{const Me=nc(A[$],j),Ve=N(ce,Me.element),nt=A[$];return A.length>1&&ou(nt)>1&&(j>0&&Ve(wi(nt,j-1))||j0&&Ve(wi(A[$-1],j))||${const nt=A.row,Ot=A.column,_t=j.length,Kt=ou(j[0]),Cn=nt+_t,ir=Ot+Kt+Ve.length,$r=Ze(Ve,B);for(let Rr=nt;Rr{const ce=ou($[0]),Me=Hi($).cols.length+A.row,Ve=q(ce-A.column,Ot=>Ot+A.column),nt=G(Ve,Ot=>ke(j,_t=>_t!==Ot)).getOr(ce-1);return{row:Me,column:nt}},nf=(A,$,j)=>Be(j,ce=>ce>=A.column&&ce<=ou($[0])+A.column),hk=(A,$,j,ce,Me)=>{const Ve=Ui($),nt=oc(A,$,Ve),Ot=Hi(j).rows,_t=nf(nt,Ot,Ve);return O0(nt,$,Ot).map(Cn=>{const ir={...Cn,colDelta:Cn.colDelta-_t.length},$r=w0($,ir,ce),Rr=Ui($r),Kn=nf(nt,Ot,Rr);return sx(nt,$r,Ot,ce,Me,Kn)})},ax=(A,$,j,ce,Me)=>{UM($,A,Me,ce.cell);const Ve=S0(j,$),nt=w0(j,Ve,ce),Ot=S0($,nt),_t=w0($,Ot,ce);return fe(_t,(Kt,Cn)=>zc(Kt,A,nt[Cn].cells))},nv=(A,$,j,ce,Me)=>{_g($,A,Me,ce.cell);const Ve=Ui($),nt=x0($,j),Ot={...nt,colDelta:nt.colDelta-Ve.length},_t=w0($,Ot,ce),{cols:Kt,rows:Cn}=Hi(_t),ir=Ui(_t),$r=x0(j,$),Rr={...$r,colDelta:$r.colDelta+ir.length},Kn=fk(j,ce,ir),Ir=w0(Kn,Rr,ce);return[...Kt,...Cn.slice(0,A),...Ir,...Cn.slice(A,Cn.length)]},WM=(A,$,j,ce)=>Oy(A,Me=>ce(Me,j),$),mk=(A,$,j,ce,Me)=>{const{rows:Ve,cols:nt}=Hi(A),Ot=Ve.slice(0,$),_t=Ve.slice($),Kt=WM(Ve[j],(Cn,ir)=>$>0&&${if(j==="colgroup"||!ce){const Ot=nc(A,Me);return es(nt(Ot.element,Ve),!0,!1)}else return nc(A,$)},Pu=(A,$,j,ce,Me)=>fe(A,Ve=>{const nt=$>0&&$Le(A,j=>{const ce=j.cells,Me=ge($,(Ve,nt)=>nt>=0&&nt0?[Xs(j.element,Me,j.section,j.isNew)]:[]}),Ai=(A,$,j)=>{const{rows:ce,cols:Me}=Hi(A);return[...Me,...ce.slice(0,$),...ce.slice(j+1)]},Vd=(A,$,j,ce)=>wi(A[$],j)!==void 0&&$>0&&ce(wi(A[$-1],j),wi(A[$],j)),T0=(A,$,j)=>$>0&&j(wi(A,$-1),wi(A,$)),Rg=(A,$,j,ce)=>Vd(A,$,j,ce)||T0(A[$],j,ce),rv=(A,$)=>ke($,I)&&qO(A.cells)?B:(ce,Me,Ve)=>!(wn(ce.element)==="th"&&$[Ve]),ov=(A,$)=>ke($,I)&&qO(A)?B:(ce,Me,Ve)=>!(wn(ce.element)==="th"&&$[Me]),Am=(A,$,j,ce)=>{const Me=nt=>nt==="row"?bc($):Al($),Ve=nt=>Me(nt)?`${nt}group`:nt;return A?m0($)?Ve(j):null:ce&&m0($)?Ve(j==="row"?"col":"row"):null},gk=(A,$)=>(j,ce,Me)=>E.some(Am(A,j.element,"col",$[Me])),sv=(A,$)=>(j,ce)=>E.some(Am(A,j.element,"row",$[ce])),Dg=(A,$,j)=>es(j(A.element,$),!0,A.isLocked),av=(A,$,j,ce,Me,Ve,nt)=>{const Ot=_t=>ae($,Kt=>j(_t.element,Kt.element));return fe(A,(_t,Kt)=>by(_t,(Cn,ir)=>{if(Ot(Cn)){const $r=nt(Cn,Kt,ir)?Me(Cn,j,ce):Cn;return Ve($r,Kt,ir).each(Rr=>{Tt($r.element,{scope:E.from(Rr)})}),$r}else return Cn}))},pk=(A,$,j)=>Le(A,(ce,Me)=>Rg(A,Me,$,j)?[]:[nc(ce,$)]),YM=(A,$,j)=>{const ce=A[$];return Le(ce.cells,(Me,Ve)=>Rg(A,$,Ve,j)?[]:[Me])},cw=(A,$,j,ce,Me)=>{const Ve=Hi(A).rows,nt=Le($,Cn=>pk(Ve,Cn,ce)),Ot=fe(Ve,Cn=>qO(Cn.cells)),_t=ov(nt,Ot),Kt=sv(j,Ot);return av(A,nt,ce,Me,Dg,Kt,_t)},XM=(A,$,j,ce,Me,Ve,nt)=>{const{cols:Ot,rows:_t}=Hi(A),Kt=_t[$[0]],Cn=Le($,jn=>YM(_t,jn,Me)),ir=fe(Kt.cells,(jn,io)=>qO(pk(_t,io,Me))),$r=[..._t];ee($,jn=>{$r[jn]=nt.transformRow(_t[jn],j)});const Rr=[...Ot,...$r],Kn=rv(Kt,ir),Ir=gk(ce,ir);return av(Rr,Cn,Me,Ve,nt.transformCell,Ir,Kn)},lx=(A,$,j,ce)=>{const Me=Hi(A).rows,Ve=fe($,nt=>nc(Me[nt.row],nt.column));return av(A,Ve,j,ce,Dg,E.none,B)},Mu={generate:A=>{if(!u(A))throw new Error("cases must be an array");if(A.length===0)throw new Error("there must be at least one case");const $=[],j={};return ee(A,(ce,Me)=>{const Ve=se(ce);if(Ve.length!==1)throw new Error("one and only one name per case");const nt=Ve[0],Ot=ce[nt];if(j[nt]!==void 0)throw new Error("duplicate key detected:"+nt);if(nt==="cata")throw new Error("cannot have a case named cata (sorry)");if(!u(Ot))throw new Error("case arguments must be an array");$.push(nt),j[nt]=(..._t)=>{const Kt=_t.length;if(Kt!==Ot.length)throw new Error("Wrong number of arguments to case "+nt+". Expected "+Ot.length+" ("+Ot+"), got "+Kt);return{fold:(...ir)=>{if(ir.length!==A.length)throw new Error("Wrong number of arguments to fold. Expected "+A.length+", got "+ir.length);return ir[Me].apply(null,_t)},match:ir=>{const $r=se(ir);if($.length!==$r.length)throw new Error("Wrong number of arguments to match. Expected: "+$.join(",")+` +Actual: `+$r.join(","));if(!ke($,Kn=>me($r,Kn)))throw new Error("Not all branches were specified when using match. Specified: "+$r.join(", ")+` +Required: `+$.join(", "));return ir[nt].apply(null,_t)},log:ir=>{console.log(ir,{constructors:$,constructor:nt,params:_t})}}}}),j}},C0={...Mu.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},yk=(A,$)=>A.length===0?C0.none():A.length===1?C0.only(0):$===0?C0.left(0,1):$===A.length-1?C0.right($-1,$):$>0&&${const Ve=A.slice(0),nt=yk(A,$),Ot=M(fe(Ve,M(0))),_t=$r=>ce.singleColumnWidth(Ve[$r],j),Kt=($r,Rr)=>Me.calcLeftEdgeDeltas(Ve,$r,Rr,j,ce.minCellWidth(),ce.isRelative),Cn=($r,Rr,Kn)=>Me.calcMiddleDeltas(Ve,$r,Rr,Kn,j,ce.minCellWidth(),ce.isRelative),ir=($r,Rr)=>Me.calcRightEdgeDeltas(Ve,$r,Rr,j,ce.minCellWidth(),ce.isRelative);return nt.fold(Ot,_t,Kt,Cn,ir)},Qy=(A,$,j)=>{let ce=0;for(let Me=A;Me<$;Me++)ce+=j[Me]!==void 0?j[Me]:0;return ce},$g=(A,$)=>{const j=hs.justCells(A);return fe(j,ce=>{const Me=Qy(ce.column,ce.column+ce.colspan,$);return{element:ce.element,width:Me,colspan:ce.colspan}})},cx=(A,$)=>{const j=hs.justColumns(A);return fe(j,(ce,Me)=>({element:ce.element,width:$[Me],colspan:ce.colspan}))},Rs=(A,$)=>{const j=hs.justCells(A);return fe(j,ce=>{const Me=Qy(ce.row,ce.row+ce.rowspan,$);return{element:ce.element,height:Me,rowspan:ce.rowspan}})},Eu=(A,$)=>fe(A.all,(j,ce)=>({element:j.element,height:$[ce]})),zd=A=>ge(A,($,j)=>$+j,0),fw=(A,$)=>hs.hasColumns(A)?cx(A,$):$g(A,$),ha=(A,$,j)=>{const ce=fw(A,$);ee(ce,Me=>{j.setElementWidth(Me.element,Me.width)})},Fy=(A,$,j,ce,Me)=>{const Ve=hs.fromTable(A),nt=Me.getCellDelta($),Ot=Me.getWidths(Ve,Me),_t=j===Ve.grid.columns-1,Kt=ce.clampTableDelta(Ot,j,nt,Me.minCellWidth(),_t),Cn=GM(Ot,j,Kt,Me,ce),ir=fe(Cn,($r,Rr)=>$r+Ot[Rr]);ha(Ve,ir,Me),ce.resizeTable(Me.adjustTableWidth,Kt,_t)},dw=(A,$,j,ce)=>{const Me=hs.fromTable(A),Ve=Mn(Me,A,ce),nt=fe(Ve,(Cn,ir)=>j===ir?Math.max($+Cn,kf()):Cn),Ot=Rs(Me,nt),_t=Eu(Me,nt);ee(_t,Cn=>{Ml(Cn.element,Cn.height)}),ee(Ot,Cn=>{Ml(Cn.element,Cn.height)});const Kt=zd(nt);Ml(A,Kt)},cl=(A,$,j,ce,Me)=>{const Ve=hs.generate($),nt=ce.getWidths(Ve,ce),Ot=ce.pixelWidth(),{newSizes:_t,delta:Kt}=Me.calcRedestributedWidths(nt,Ot,j.pixelDelta,ce.isRelative);ha(Ve,_t,ce),ce.adjustTableWidth(Kt)},Ah=(A,$,j,ce)=>{const Me=hs.generate($),Ve=ce.getWidths(Me,ce);ha(Me,Ve,ce)},Lg=A=>ne(A,(j,ce)=>ae(j,Ve=>Ve.column===ce.column)?j:j.concat([ce]),[]).sort((j,ce)=>j.column-ce.column),hw=He("col"),ux=He("colgroup"),Vy=A=>wn(A)==="tr"||ux(A),mw=A=>{const $=Ra(A,"colspan",1),j=Ra(A,"rowspan",1);return{element:A,colspan:$,rowspan:j}},fx=(A,$=mw)=>{const j=Ot=>hw(Ot.element)?A.col(Ot):A.cell(Ot),ce=Ot=>ux(Ot.element)?A.colgroup(Ot):A.row(Ot),Me=Ot=>{if(Vy(Ot))return ce({element:Ot});{const _t=Ot,Kt=j($(_t));return Ve=E.some({item:_t,replacement:Kt}),Kt}};let Ve=E.none();return{getOrInit:(Ot,_t)=>Ve.fold(()=>Me(Ot),Kt=>_t(Ot,Kt.item)?Kt.replacement:Me(Ot))}},Ph=A=>$=>{const j=[],ce=(nt,Ot)=>G(j,_t=>Ot(_t.item,nt)),Me=nt=>{const Ot=A==="td"?{scope:null}:{},_t=$.replace(nt,A,Ot);return j.push({item:nt,sub:_t}),_t};return{replaceOrInit:(nt,Ot)=>{if(Vy(nt)||hw(nt))return nt;{const _t=nt;return ce(_t,Ot).fold(()=>Me(_t),Kt=>Ot(nt,Kt.item)?Kt.sub:Me(_t))}}}},Pm=A=>dn(A,"scope").map($=>$.substr(0,3)),Nn={modification:fx,transform:Ph,merging:A=>({unmerge:ce=>{const Me=Pm(ce);return Me.each(Ve=>dt(ce,"scope",Ve)),()=>{const Ve=A.cell({element:ce,colspan:1,rowspan:1});return xu(Ve,"width"),xu(ce,"width"),Me.each(nt=>dt(Ve,"scope",nt)),Ve}},merge:ce=>{const Me=()=>{const Ve=Za(fe(ce,Pm));if(Ve.length===0)return E.none();{const nt=Ve[0],Ot=["row","col"];return ae(Ve,Kt=>Kt!==nt&&me(Ot,Kt))?E.none():E.from(nt)}};return xu(ce[0],"width"),Me().fold(()=>nn(ce[0],"scope"),Ve=>dt(ce[0],"scope",Ve+"group")),M(ce[0])}})},zy=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],k0=(A,$)=>{const j=A.property().name($);return me(["ol","ul"],j)},rf=(A,$)=>{const j=A.property().name($);return me(zy,j)},gw=(A,$)=>me(["br","img","hr","input"],A.property().name($)),Ha=qn(),dx=A=>rf(Ha,A),Mm=A=>k0(Ha,A),pw=A=>gw(Ha,A),hx=A=>{const $=He("br"),j=_t=>ke(_t,Kt=>$(Kt)||xt(Kt)&&bt(Kt).trim().length===0),ce=_t=>wn(_t)==="li"||Qa(_t,Mm).isSome(),Me=_t=>Ee(_t).map(Kt=>dx(Kt)?!0:pw(Kt)?wn(Kt)!=="img":!1).getOr(!1),Ve=_t=>Pn(_t).bind(Kt=>{const Cn=Me(Kt);return ao(Kt).map(ir=>Cn===!0||ce(ir)||$(Kt)||dx(ir)&&!or(_t,ir)?[]:[zt.fromTag("br")])}).getOr([]),Ot=(()=>{const _t=Le(A,Kt=>{const Cn=St(Kt);return j(Cn)?[]:Cn.concat(Ve(Kt))});return _t.length===0?[zt.fromTag("br")]:_t})();Tn(A[0]),rn(A[0],Ot)},vw=A=>Bd(A,!0),Zy=A=>{Af(A).length===0&&On(A)},A0=(A,$)=>({grid:A,cursor:$}),yw=A=>te(A,$=>te($.cells,j=>{const ce=j.element;return zu(vw(ce),ce)})),qM=(A,$,j)=>{var ce,Me;const Ve=Hi(A).rows;return E.from((Me=(ce=Ve[$])===null||ce===void 0?void 0:ce.cells[j])===null||Me===void 0?void 0:Me.element).filter(vw).orThunk(()=>yw(Ve))},Wc=(A,$,j)=>{const ce=qM(A,$,j);return A0(A,ce)},ul=A=>ne(A,(j,ce)=>ae(j,Ve=>Ve.row===ce.row)?j:j.concat([ce]),[]).sort((j,ce)=>j.row-ce.row),Gl=(A,$,j,ce)=>{const Me=$[0].row,Ve=ul($),nt=ge(Ve,(Ot,_t)=>({grid:mk(Ot.grid,Me,_t.row+Ot.delta,j,ce.getOrInit),delta:Ot.delta+1}),{grid:A,delta:0}).grid;return Wc(nt,Me,$[0].column)},Yc=(A,$,j,ce)=>{const Me=ul($),Ve=Me[Me.length-1],nt=Ve.row+Ve.rowspan,Ot=ge(Me,(_t,Kt)=>mk(_t,nt,Kt.row,j,ce.getOrInit),A);return Wc(Ot,nt,$[0].column)},sc=(A,$,j,ce)=>{const Me=$.details,Ve=Lg(Me),nt=Ve[0].column,Ot=ge(Ve,(_t,Kt)=>({grid:Pu(_t.grid,nt,Kt.column+_t.delta,j,ce.getOrInit),delta:_t.delta+1}),{grid:A,delta:0}).grid;return Wc(Ot,Me[0].row,nt)},Mc=(A,$,j,ce)=>{const Me=$.details,Ve=Me[Me.length-1],nt=Ve.column+Ve.colspan,Ot=Lg(Me),_t=ge(Ot,(Kt,Cn)=>Pu(Kt,nt,Cn.column,j,ce.getOrInit),A);return Wc(_t,Me[0].row,nt)},fl=(A,$,j,ce)=>{const Me=Lg($),Ve=fe(Me,Ot=>Ot.column),nt=cw(A,Ve,!0,j,ce.replaceOrInit);return Wc(nt,$[0].row,$[0].column)},bw=(A,$,j,ce)=>{const Me=lx(A,$,j,ce.replaceOrInit);return Wc(Me,$[0].row,$[0].column)},Hy=(A,$,j,ce)=>{const Me=Lg($),Ve=fe(Me,Ot=>Ot.column),nt=cw(A,Ve,!1,j,ce.replaceOrInit);return Wc(nt,$[0].row,$[0].column)},Ow=(A,$,j,ce)=>{const Me=lx(A,$,j,ce.replaceOrInit);return Wc(Me,$[0].row,$[0].column)},Uy=(A,$)=>(j,ce,Me,Ve,nt)=>{const Ot=ul(ce),_t=fe(Ot,Cn=>Cn.row),Kt=XM(j,_t,A,$,Me,Ve.replaceOrInit,nt);return Wc(Kt,ce[0].row,ce[0].column)},xw=Uy("thead",!0),bk=Uy("tbody",!1),mx=Uy("tfoot",!1),Sw=(A,$,j,ce)=>{const Me=Lg($.details),Ve=ix(A,fe(Me,Ot=>Ot.column)),nt=Ve.length>0?Ve[0].cells.length-1:0;return Wc(Ve,Me[0].row,Math.min(Me[0].column,nt))},KM=(A,$,j,ce)=>{const Me=ul($),Ve=Ai(A,Me[0].row,Me[Me.length-1].row),nt=Ve.length>0?Ve.length-1:0;return Wc(Ve,Math.min($[0].row,nt),$[0].column)},JM=(A,$,j,ce)=>{const Me=$.cells;hx(Me);const Ve=sd(A,$.bounds,j,ce.merge(Me));return A0(Ve,E.from(Me[0]))},Ok=(A,$,j,ce)=>{const Ve=ge($,(nt,Ot)=>Pc(nt,Ot,j,ce.unmerge(Ot)),A);return A0(Ve,E.from($[0]))},eE=(A,$,j,ce)=>{const Ve=((_t,Kt)=>{const Cn=hs.fromTable(_t);return v0(Cn,Kt,!0)})($.clipboard,$.generators),nt=ko($.row,$.column);return hk(nt,A,Ve,$.generators,j).fold(()=>A0(A,E.some($.element)),_t=>Wc(_t,$.row,$.column))},P0=(A,$,j)=>{const ce=MO(A,j.section),Me=hs.generate(ce);return v0(Me,$,!0)},gx=(A,$,j,ce)=>{const Me=Hi(A).rows,Ve=$.cells[0].column,nt=Me[$.cells[0].row],Ot=P0($.clipboard,$.generators,nt),_t=ax(Ve,A,Ot,$.generators,j);return Wc(_t,$.cells[0].row,$.cells[0].column)},xk=(A,$,j,ce)=>{const Me=Hi(A).rows,Ve=$.cells[$.cells.length-1].column+$.cells[$.cells.length-1].colspan,nt=Me[$.cells[0].row],Ot=P0($.clipboard,$.generators,nt),_t=ax(Ve,A,Ot,$.generators,j);return Wc(_t,$.cells[0].row,$.cells[0].column)},e9=(A,$,j,ce)=>{const Me=Hi(A).rows,Ve=$.cells[0].row,nt=Me[Ve],Ot=P0($.clipboard,$.generators,nt),_t=nv(Ve,A,Ot,$.generators,j);return Wc(_t,$.cells[0].row,$.cells[0].column)},iu=(A,$,j,ce)=>{const Me=Hi(A).rows,Ve=$.cells[$.cells.length-1].row+$.cells[$.cells.length-1].rowspan,nt=Me[$.cells[0].row],Ot=P0($.clipboard,$.generators,nt),_t=nv(Ve,A,Ot,$.generators,j);return Wc(_t,$.cells[0].row,$.cells[0].column)},t9=(A,$)=>{const j=hs.fromTable(A);return Eg(j,$).bind(Me=>{const Ve=Me[Me.length-1],nt=Me[0].column,Ot=Ve.column+Ve.colspan,_t=xe(fe(j.all,Kt=>Be(Kt.cells,Cn=>Cn.column>=nt&&Cn.column{const j=hs.fromTable(A);return Eg(j,$).bind(g0).getOr("")},pr=(A,$)=>{const j=hs.fromTable(A);return Eg(j,$).bind(Me=>{const Ve=Me[Me.length-1],nt=Me[0].row,Ot=Ve.row+Ve.rowspan,_t=j.all.slice(nt,Ot);return VM(_t)}).getOr("")},ww=(A,$,j,ce)=>Ah(A,$,j,ce.sizing),dl=(A,$,j,ce)=>cl(A,$,j,ce.sizing,ce.resize),Sk=(A,$)=>ae($,j=>j.column===0&&j.isLocked),px=(A,$)=>ae($,j=>j.column+j.colspan>=A.grid.columns&&j.isLocked),Tw=(A,$)=>{const j=gm(A),ce=Lg($);return ne(ce,(Me,Ve)=>{const Ot=j[Ve.column].map(Mf).getOr(0);return Me+Ot},0)},lu=A=>($,j)=>Eg($,j).filter(ce=>!(A?Sk:px)($,ce)).map(ce=>({details:ce,pixelDelta:Tw($,ce)})),tE=(A,$)=>km(A,$).map(j=>({details:j,pixelDelta:-Tw(A,j)})),wk=A=>($,j)=>y0($,j).filter(ce=>!(A?Sk:px)($,ce.cells)),cu=Nn.transform("th"),M0=Nn.transform("td"),Wy=Xl(Gl,Eg,w,w,Nn.modification),Mh=Xl(Yc,Eg,w,w,Nn.modification),ad=Xl(sc,lu(!0),dl,w,Nn.modification),Ur=Xl(Mc,lu(!1),dl,w,Nn.modification),of=Xl(Sw,tE,dl,Zy,Nn.modification),Tk=Xl(KM,Eg,w,Zy,Nn.modification),Ck=Xl(fl,km,w,w,cu),Cw=Xl(Hy,km,w,w,M0),kk=Xl(xw,km,w,w,cu),kw=Xl(bk,km,w,w,M0),Aw=Xl(mx,km,w,w,M0),nE=Xl(bw,km,w,w,cu),Pw=Xl(Ow,km,w,w,M0),rE=Xl(JM,K$,ww,w,Nn.merging),Ec=Xl(Ok,J$,ww,w,Nn.merging),Yy=Xl(eE,Ny,ww,w,Nn.modification),oE=Xl(gx,wk(!0),w,w,Nn.modification),sE=Xl(xk,wk(!1),w,w,Nn.modification),Mw=Xl(e9,y0,w,w,Nn.modification),aE=Xl(iu,y0,w,w,Nn.modification),Ak=t9,Pk=Zd,Xy=pr,Mk=(A,$)=>A.dispatch("NewRow",{node:$}),Ew=(A,$)=>A.dispatch("NewCell",{node:$}),iv=(A,$,j)=>{A.dispatch("TableModified",{...j,table:$})},iE=(A,$,j,ce,Me)=>{A.dispatch("TableSelectionChange",{cells:$,start:j,finish:ce,otherCells:Me})},lE=A=>{A.dispatch("TableSelectionClear")},_w=(A,$,j,ce,Me)=>{A.dispatch("ObjectResizeStart",{target:$,width:j,height:ce,origin:Me})},cE=(A,$,j,ce,Me)=>{A.dispatch("ObjectResized",{target:$,width:j,height:ce,origin:Me})},Em={structure:!1,style:!0},gs={structure:!0,style:!1},Rw={structure:!0,style:!0},_c=(A,$)=>Df(A)?Cc.percentageSize($):Ul(A)?Cc.pixelSize($):Cc.getTableSize($),vx=(A,$,j)=>{const ce=Gc=>wn(FO(Gc))==="table",Me=Gc=>!ce(A)||h0(Gc).rows>1,Ve=Gc=>!ce(A)||h0(Gc).columns>1,nt=$i(A),Ot=ea(A)?w:rw,_t=Gc=>{switch(Ki(A)){case"section":return Mg.section();case"sectionCells":return Mg.sectionCells();case"cells":return Mg.cells();default:return Mg.getTableSectionType(Gc,"section")}},Kt=(Gc,AT)=>AT.cursor.fold(()=>{const kb=Af(Gc);return re(kb).filter(oa).map(Lh=>{j.clearSelectedCells(Gc.dom);const cc=A.dom.createRng();return cc.selectNode(Lh.dom),A.selection.setRng(cc),dt(Lh,"data-mce-selected","1"),cc})},kb=>{const Lh=ok(kb),cc=A.dom.createRng();return cc.setStart(Lh.element.dom,Lh.offset),cc.setEnd(Lh.element.dom,Lh.offset),A.selection.setRng(cc),j.clearSelectedCells(Gc.dom),E.some(cc)}),Cn=(Gc,AT,kb,Lh)=>(cc,Ab,AA=!1)=>{Qd(cc);const PA=zt.fromDom(A.getDoc()),r1=js(kb,PA,nt),MA={sizing:_c(A,cc),resize:ea(A)?sk():ow(),section:_t(cc)};return AT(cc)?Gc(cc,Ab,r1,MA).bind(qx=>{$.refresh(cc.dom),ee(qx.newRows,yv=>{Mk(A,yv.dom)}),ee(qx.newCells,yv=>{Ew(A,yv.dom)});const EA=Kt(cc,qx);return oa(cc)&&(Qd(cc),AA||iv(A,cc.dom,Lh)),EA.map(yv=>({rng:yv,effect:Lh}))}):E.none()},ir=Cn(Tk,Me,w,gs),$r=Cn(of,Ve,w,gs),Rr=Cn(Wy,B,w,gs),Kn=Cn(Mh,B,w,gs),Ir=Cn(ad,B,Ot,gs),jn=Cn(Ur,B,Ot,gs),io=Cn(rE,B,w,gs),$o=Cn(Ec,B,w,gs),os=Cn(oE,B,w,gs),Va=Cn(sE,B,w,gs),ml=Cn(Mw,B,w,gs),bi=Cn(aE,B,w,gs),du=Cn(Yy,B,w,Rw),pv=Cn(nE,B,w,gs),vv=Cn(Pw,B,w,gs),kT=Cn(Ck,B,w,gs),jx=Cn(Cw,B,w,gs),Oa=Cn(kk,B,w,gs),Dc=Cn(kw,B,w,gs),ql=Cn(Aw,B,w,gs);return{deleteRow:ir,deleteColumn:$r,insertRowsBefore:Rr,insertRowsAfter:Kn,insertColumnsBefore:Ir,insertColumnsAfter:jn,mergeCells:io,unmergeCells:$o,pasteColsBefore:os,pasteColsAfter:Va,pasteRowsBefore:ml,pasteRowsAfter:bi,pasteCells:du,makeCellsHeader:pv,unmakeCellsHeader:vv,makeColumnsHeader:kT,unmakeColumnsHeader:jx,makeRowsHeader:Oa,makeRowsBody:Dc,makeRowsFooter:ql,getTableRowType:Xy,getTableCellType:Pk,getTableColType:Ak}},Dw=(A,$,j)=>{const ce=Ra(A,$,1);j===1||ce<=1?nn(A,$):dt(A,$,Math.min(j,ce))},$w=(A,$)=>j=>{const ce=j.column+j.colspan-1,Me=j.column;return ce>=A&&Me<$},yx=(A,$,j)=>{if(hs.hasColumns(A)){const ce=Be(hs.justColumns(A),$w($,j)),Me=fe(ce,nt=>{const Ot=zr(nt.element);return Dw(Ot,"span",j-$),Ot}),Ve=zt.fromTag("colgroup");return rn(Ve,Me),[Ve]}else return[]},Ek=(A,$,j)=>fe(A.all,ce=>{const Me=Be(ce.cells,$w($,j)),Ve=fe(Me,Ot=>{const _t=zr(Ot.element);return Dw(_t,"colspan",j-$),_t}),nt=zt.fromTag("tr");return rn(nt,Ve),nt}),uE=(A,$)=>{const j=hs.fromTable(A);return km(j,$).map(Me=>{const Ve=Me[Me.length-1],nt=Me[0].column,Ot=Ve.column+Ve.colspan,_t=yx(j,nt,Ot),Kt=Ek(j,nt,Ot);return[..._t,...Kt]})},fE=(A,$,j)=>{const ce=hs.fromTable(A);return Eg(ce,$).bind(Ve=>{const nt=v0(ce,j,!1),_t=Hi(nt).rows.slice(Ve[0].row,Ve[Ve.length-1].row+Ve[Ve.length-1].rowspan),Kt=Le(_t,ir=>{const $r=Be(ir.cells,Rr=>!Rr.isLocked);return $r.length>0?[{...ir,cells:$r}]:[]}),Cn=ni(Kt);return zu(Cn.length>0,Cn)}).map(Ve=>ik(Ve))},E0=Mu.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),_k=(A,$,j)=>{const ce=j.substring(0,j.length-A.length),Me=parseFloat(ce);return ce===Me.toString()?$(Me):E0.invalid(j)},Ig={...E0,from:A=>Fc(A,"%")?_k("%",E0.percent,A):Fc(A,"px")?_k("px",E0.pixels,A):E0.invalid(A)},dE=(A,$)=>fe(A,j=>Ig.from(j).fold(()=>j,Me=>Me/$*100+"%",Me=>Me+"%")),_0=(A,$,j)=>{const ce=j/$;return fe(A,Me=>Ig.from(Me).fold(()=>Me,nt=>nt*ce+"px",nt=>nt/100*j+"px"))},hE=(A,$)=>{const j=A.fold(()=>M(""),ce=>{const Me=ce/$;return M(Me+"px")},()=>{const ce=100/$;return M(ce+"%")});return q($,j)},Lw=(A,$,j)=>A.fold(()=>$,ce=>_0($,j,ce),ce=>dE($,j)),Rk=(A,$,j)=>{const ce=Ig.from(j),Me=ke(A,Ve=>Ve==="0px")?hE(ce,A.length):Lw(ce,A,$);return $k(Me)},lv=(A,$)=>A.length===0?$:ge(A,(j,ce)=>Ig.from(ce).fold(M(0),I,I)+j,0),mE=(A,$)=>{const j=Math.floor(A);return{value:j+$,remainder:A-j}},Dk=(A,$)=>Ig.from(A).fold(M(A),j=>j+$+"px",j=>j+$+"%"),$k=A=>{if(A.length===0)return A;const $=ge(A,(ce,Me)=>{const Ve=Ig.from(Me).fold(()=>({value:Me,remainder:0}),nt=>mE(nt,"px"),nt=>({value:nt+"%",remainder:0}));return{output:[Ve.value].concat(ce.output),remainder:ce.remainder+Ve.remainder}},{output:[],remainder:0}),j=$.output;return j.slice(0,j.length-1).concat([Dk(j[j.length-1],Math.round($.remainder))])},R0=Ig.from,Lk=(A,$,j)=>{ee($,ce=>{const Me=A.slice(ce.column,ce.colspan+ce.column),Ve=lv(Me,ci());Ya(ce.element,"width",Ve+j)})},Iw=(A,$,j)=>{ee($,(ce,Me)=>{const Ve=lv([A[Me]],ci());Ya(ce.element,"width",Ve+j)})},gE=(A,$,j,ce)=>{ee(j,Me=>{const Ve=A.slice(Me.row,Me.rowspan+Me.row),nt=lv(Ve,kf());Ya(Me.element,"height",nt+ce)}),ee($,(Me,Ve)=>{Ya(Me.element,"height",A[Ve])})},Ik=A=>R0(A).fold(M("px"),M("px"),M("%")),Eh=(A,$,j)=>{const ce=hs.fromTable(A),Me=ce.all,Ve=hs.justCells(ce),nt=hs.justColumns(ce);$.each(Ot=>{const _t=Ik(Ot),Kt=Sc(A),Cn=Jf(ce,A),ir=Rk(Cn,Kt,Ot);hs.hasColumns(ce)?Iw(ir,nt,_t):Lk(ir,Ve,_t),Ya(A,"width",Ot)}),j.each(Ot=>{const _t=Ik(Ot),Kt=t0(A),Cn=Tc(ce,A,Xr),ir=Rk(Cn,Kt,Ot);gE(ir,Me,Ve,_t),Ya(A,"height",Ot)})},Gy=Rf,jy=US,bx=qu,qy=A=>{nn(A,"width")},Lf=A=>{const $=zs(A);Eh(A,E.some($),E.none()),qy(A)},D0=A=>{const $=Cg(A);Eh(A,E.some($),E.none()),qy(A)},Ky=A=>{xu(A,"width");const $=Fp(A),j=$.length>0?$:Af(A);ee(j,ce=>{xu(ce,"width"),qy(ce)}),qy(A)},Ng={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},Ox=()=>zt.fromTag("th"),pE=()=>zt.fromTag("td"),vE=()=>zt.fromTag("col"),Nk=(A,$,j,ce)=>{const Me=zt.fromTag("tr");for(let Ve=0;Ve{const $=zt.fromTag("colgroup");return q(A,()=>Mt($,vE())),$},Nw=(A,$,j,ce)=>q(A,Me=>Nk($,j,ce,Me)),bE=(A,$,j,ce,Me,Ve=Ng)=>{const nt=zt.fromTag("table"),Ot=Me!=="cells";kl(nt,Ve.styles),mt(nt,Ve.attributes),Ve.colGroups&&Mt(nt,yE($));const _t=Math.min(A,j);if(Ot&&j>0){const Rr=zt.fromTag("thead");Mt(nt,Rr);const Ir=Nw(j,$,Me==="sectionCells"?_t:0,ce);rn(Rr,Ir)}const Kt=zt.fromTag("tbody");Mt(nt,Kt);const Cn=Ot?A-_t:A,$r=Nw(Cn,$,Ot?0:j,ce);return rn(Kt,$r),nt},OE=A=>A.dom.innerHTML,Bk=A=>{const $=zt.fromTag("div"),j=zt.fromDom(A.dom.cloneNode(!0));return Mt($,j),OE($)},xE=(A,$)=>{A.selection.select($.dom,!0),A.selection.collapse(!0)},Qk=(A,$)=>{li($,"td,th").each(N(xE,A))},SE=(A,$)=>{ee(zi($,"tr"),j=>{Mk(A,j.dom),ee(zi(j,"th,td"),ce=>{Ew(A,ce.dom)})})},xx=A=>f(A)&&A.indexOf("%")!==-1,wE=(A,$,j,ce,Me)=>{const Ve=Nd(A),nt={styles:Ve,attributes:Ac(A),colGroups:Ju(A)};return A.undoManager.ignore(()=>{const Ot=bE(j,$,Me,ce,Ki(A),nt);dt(Ot,"data-mce-id","__mce");const _t=Bk(Ot);A.insertContent(_t),A.addVisual()}),li(FO(A),'table[data-mce-id="__mce"]').map(Ot=>(Ul(A)?D0(Ot):Li(A)?Ky(Ot):(Df(A)||xx(Ve.width))&&Lf(Ot),Qd(Ot),nn(Ot,"data-mce-id"),SE(A,Ot),Qk(A,Ot),Ot.dom)).getOrNull()},Fk=(A,$,j,ce={})=>{const Me=Ve=>C(Ve)&&Ve>0;if(Me($)&&Me(j)){const Ve=ce.headerRows||0,nt=ce.headerColumns||0;return wE(A,j,$,nt,Ve)}else return console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table."),null};var $0=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const Bw="x-tinymce/dom-table-",Qw=Bw+"rows",Fw=Bw+"columns",Vk=A=>{const $=$0.FakeClipboardItem(A);$0.write([$])},Vw=A=>{var $;const j=($=$0.read())!==null&&$!==void 0?$:[];return te(j,ce=>E.from(ce.getType(A)))},TE=A=>{Vw(A).isSome()&&$0.clear()},Sx=A=>{A.fold(CE,$=>Vk({[Qw]:$}))},wx=()=>Vw(Qw),CE=()=>TE(Qw),zw=A=>{A.fold(kE,$=>Vk({[Fw]:$}))},zk=()=>Vw(Fw),kE=()=>TE(Fw),Zw=A=>Fd(ef(A),Oh(A)).filter(zO),AE=A=>Ly(ef(A),Oh(A)).filter(zO),L0=(A,$)=>{const j=Oh(A),ce=()=>Zw(A).each(jn=>{Oc(jn,j).filter(F(j)).each(io=>{const $o=zt.fromText("");if(Ht(io,$o),On(io),A.dom.isEmpty(A.getBody()))A.setContent(""),A.selection.setCursorLocation();else{const os=A.dom.createRng();os.setStart($o.dom,0),os.setEnd($o.dom,0),A.selection.setRng(os),A.nodeChanged()}})}),Me=jn=>Zw(A).each(io=>{Li(A)||Ul(A)||Df(A)||Oc(io,j).each(os=>{jn==="relative"&&!Gy(os)?Lf(os):jn==="fixed"&&!jy(os)?D0(os):jn==="responsive"&&!bx(os)&&Ky(os),Qd(os),iv(A,os.dom,gs)})}),Ve=jn=>Oc(jn,j),nt=jn=>AE(A).bind(io=>Ve(io).map($o=>jn($o,io))),Ot=(jn,io)=>{nt($o=>{A.formatter.toggle("tableclass",{value:io},$o.dom),iv(A,$o.dom,Em)})},_t=(jn,io)=>{nt($o=>{const os=$f(A),ml=ke(os,bi=>A.formatter.match("tablecellclass",{value:io},bi.dom))?A.formatter.remove:A.formatter.apply;ee(os,bi=>ml("tablecellclass",{value:io},bi.dom)),iv(A,$o.dom,Em)})},Kt=()=>{Zw(A).each(jn=>{Oc(jn,j).each(io=>{Zo(io,"caption").fold(()=>{const $o=zt.fromTag("caption");Mt($o,zt.fromText("Caption")),en(io,$o,0),A.selection.setCursorLocation($o.dom,0)},$o=>{He("caption")(jn)&&kr("td",io).each(os=>A.selection.setCursorLocation(os.dom,0)),On($o)}),iv(A,io.dom,gs)})})},Cn=jn=>{A.focus()},ir=(jn,io=!1)=>nt(($o,os)=>{const Va=l0($f(A),$o,os);jn($o,Va,io).each(Cn)}),$r=()=>nt((jn,io)=>{const $o=l0($f(A),jn,io),os=js(w,zt.fromDom(A.getDoc()),E.none());return fE(jn,$o,os)}),Rr=()=>nt((jn,io)=>{const $o=l0($f(A),jn,io);return uE(jn,$o)}),Kn=(jn,io)=>io().each($o=>{const os=fe($o,Va=>zr(Va));nt((Va,ml)=>{const bi=ti(zt.fromDom(A.getDoc())),du=c0($f(A),ml,os,bi);jn(Va,du).each(Cn)})}),Ir=jn=>(io,$o)=>pt($o,"type").each(os=>{ir(jn(os),$o.no_events)});oe({mceTableSplitCells:()=>ir($.unmergeCells),mceTableMergeCells:()=>ir($.mergeCells),mceTableInsertRowBefore:()=>ir($.insertRowsBefore),mceTableInsertRowAfter:()=>ir($.insertRowsAfter),mceTableInsertColBefore:()=>ir($.insertColumnsBefore),mceTableInsertColAfter:()=>ir($.insertColumnsAfter),mceTableDeleteCol:()=>ir($.deleteColumn),mceTableDeleteRow:()=>ir($.deleteRow),mceTableCutCol:()=>Rr().each(jn=>{zw(jn),ir($.deleteColumn)}),mceTableCutRow:()=>$r().each(jn=>{Sx(jn),ir($.deleteRow)}),mceTableCopyCol:()=>Rr().each(jn=>zw(jn)),mceTableCopyRow:()=>$r().each(jn=>Sx(jn)),mceTablePasteColBefore:()=>Kn($.pasteColsBefore,zk),mceTablePasteColAfter:()=>Kn($.pasteColsAfter,zk),mceTablePasteRowBefore:()=>Kn($.pasteRowsBefore,wx),mceTablePasteRowAfter:()=>Kn($.pasteRowsAfter,wx),mceTableDelete:ce,mceTableCellToggleClass:_t,mceTableToggleClass:Ot,mceTableToggleCaption:Kt,mceTableSizingMode:(jn,io)=>Me(io),mceTableCellType:Ir(jn=>jn==="th"?$.makeCellsHeader:$.unmakeCellsHeader),mceTableColType:Ir(jn=>jn==="th"?$.makeColumnsHeader:$.unmakeColumnsHeader),mceTableRowType:Ir(jn=>{switch(jn){case"header":return $.makeRowsHeader;case"footer":return $.makeRowsFooter;default:return $.makeRowsBody}})},(jn,io)=>A.addCommand(io,jn)),A.addCommand("mceInsertTable",(jn,io)=>{Fk(A,io.rows,io.columns,io.options)}),A.addCommand("mceTableApplyCellStyle",(jn,io)=>{const $o=ml=>"tablecell"+ml.toLowerCase().replace("-","");if(!m(io))return;const os=Be($f(A),zO);if(os.length===0)return;const Va=ze(io,(ml,bi)=>A.formatter.has($o(bi))&&f(ml));et(Va)||(oe(Va,(ml,bi)=>{const du=$o(bi);ee(os,pv=>{ml===""?A.formatter.remove(du,{value:null},pv.dom,!0):A.formatter.apply(du,{value:ml},pv.dom)})}),Ve(os[0]).each(ml=>iv(A,ml.dom,Em)))})},PE=(A,$)=>{const j=Oh(A),ce=Me=>Ly(ef(A)).bind(Ve=>Oc(Ve,j).map(nt=>{const Ot=l0($f(A),nt,Ve);return Me(nt,Ot)})).getOr("");oe({mceTableRowType:()=>ce($.getTableRowType),mceTableCellType:()=>ce($.getTableCellType),mceTableColType:()=>ce($.getTableColType)},(Me,Ve)=>A.addQueryValueHandler(Ve,Me))},Hw=Mu.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),ME=(A,$,j,ce)=>A.fold($,j,ce),EE=A=>A.fold(I,I,I),_E=Hw.before,Zk=Hw.on,RE=Hw.after,_l={before:_E,on:Zk,after:RE,cata:ME,getStart:EE},I0={create:(A,$)=>({selection:A,kill:$})},Tx=(A,$)=>{const j=A.document.createRange();return j.selectNode($.dom),j},Hk=(A,$)=>{const j=A.document.createRange();return Uw(j,$),j},Uw=(A,$)=>A.selectNodeContents($.dom),Uk=(A,$)=>{$.fold(j=>{A.setStartBefore(j.dom)},(j,ce)=>{A.setStart(j.dom,ce)},j=>{A.setStartAfter(j.dom)})},Wk=(A,$)=>{$.fold(j=>{A.setEndBefore(j.dom)},(j,ce)=>{A.setEnd(j.dom,ce)},j=>{A.setEndAfter(j.dom)})},cv=(A,$,j)=>{const ce=A.document.createRange();return Uk(ce,$),Wk(ce,j),ce},Jy=(A,$,j,ce,Me)=>{const Ve=A.document.createRange();return Ve.setStart($.dom,j),Ve.setEnd(ce.dom,Me),Ve},DE=A=>({left:A.left,top:A.top,right:A.right,bottom:A.bottom,width:A.width,height:A.height}),$E=A=>{const $=A.getClientRects(),j=$.length>0?$[0]:A.getBoundingClientRect();return j.width>0||j.height>0?E.some(j).map(DE):E.none()},eb=Mu.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Ww=(A,$,j)=>$(zt.fromDom(j.startContainer),j.startOffset,zt.fromDom(j.endContainer),j.endOffset),Yk=(A,$)=>$.match({domRange:j=>({ltr:M(j),rtl:E.none}),relative:(j,ce)=>({ltr:gh(()=>cv(A,j,ce)),rtl:gh(()=>E.some(cv(A,ce,j)))}),exact:(j,ce,Me,Ve)=>({ltr:gh(()=>Jy(A,j,ce,Me,Ve)),rtl:gh(()=>E.some(Jy(A,Me,Ve,j,ce)))})}),hl=(A,$)=>{const j=$.ltr();return j.collapsed?$.rtl().filter(Me=>Me.collapsed===!1).map(Me=>eb.rtl(zt.fromDom(Me.endContainer),Me.endOffset,zt.fromDom(Me.startContainer),Me.startOffset)).getOrThunk(()=>Ww(A,eb.ltr,j)):Ww(A,eb.ltr,j)},Xk=(A,$)=>{const j=Yk(A,$);return hl(A,j)},Yw=(A,$)=>Xk(A,$).match({ltr:(ce,Me,Ve,nt)=>{const Ot=A.document.createRange();return Ot.setStart(ce.dom,Me),Ot.setEnd(Ve.dom,nt),Ot},rtl:(ce,Me,Ve,nt)=>{const Ot=A.document.createRange();return Ot.setStart(Ve.dom,nt),Ot.setEnd(ce.dom,Me),Ot}});eb.ltr,eb.rtl;const N0={create:(A,$,j,ce)=>({start:A,soffset:$,finish:j,foffset:ce})},Gk={create:(A,$,j,ce)=>({start:_l.on(A,$),finish:_l.on(j,ce)})},Xw=(A,$)=>{const j=Yw(A,$);return N0.create(zt.fromDom(j.startContainer),j.startOffset,zt.fromDom(j.endContainer),j.endOffset)},tb=Gk.create,Cx=(A,$,j,ce,Me,Ve,nt)=>or(j,Me)&&ce===Ve?E.none():Ka(j,"td,th",$).bind(Ot=>Ka(Me,"td,th",$).bind(_t=>B0(A,$,Ot,_t,nt))),B0=(A,$,j,ce,Me)=>or(j,ce)?E.none():rd(j,ce,$).bind(Ve=>{const nt=Ve.boxes.getOr([]);return nt.length>1?(Me(A,nt,Ve.start,Ve.finish),E.some(I0.create(E.some(tb(j,0,j,gn(j))),!0))):E.none()}),IE=(A,$,j,ce,Me)=>{const Ve=nt=>(Me.clearBeforeUpdate(j),Me.selectRange(j,nt.boxes,nt.start,nt.finish),nt.boxes);return WO(ce,A,$,Me.firstSelectedSelector,Me.lastSelectedSelector).map(Ve)},Bg=(A,$)=>({item:A,mode:$}),jk=(A,$,j,ce=Qg)=>A.property().parent($).map(Me=>Bg(Me,ce)),Qg=(A,$,j,ce=Fg)=>j.sibling(A,$).map(Me=>Bg(Me,ce)),Fg=(A,$,j,ce=Fg)=>{const Me=A.property().children($);return j.first(Me).map(nt=>Bg(nt,ce))},Gw=[{current:jk,next:Qg,fallback:E.none()},{current:Qg,next:Fg,fallback:E.some(jk)},{current:Fg,next:Fg,fallback:E.some(Qg)}],qk=(A,$,j,ce,Me=Gw)=>G(Me,nt=>nt.current===j).bind(nt=>nt.current(A,$,ce,nt.next).orThunk(()=>nt.fallback.bind(Ot=>qk(A,$,Ot,ce)))),Vg={left:()=>({sibling:(j,ce)=>j.query().prevSibling(ce),first:j=>j.length>0?E.some(j[j.length-1]):E.none()}),right:()=>({sibling:(j,ce)=>j.query().nextSibling(ce),first:j=>j.length>0?E.some(j[0]):E.none()})},_h=(A,$,j,ce,Me,Ve)=>qk(A,$,ce,Me).bind(Ot=>Ve(Ot.item)?E.none():j(Ot.item)?E.some(Ot.item):_h(A,Ot.item,j,Ot.mode,Me,Ve)),nb=(A,$,j,ce)=>_h(A,$,j,Qg,Vg.left(),ce),Q0=(A,$,j,ce)=>_h(A,$,j,Qg,Vg.right(),ce),qw=A=>$=>A.property().children($).length===0,_m=(A,$,j)=>rb(A,$,qw(A),j),Hd=(A,$,j)=>kx(A,$,qw(A),j),rb=nb,kx=Q0,ob=qn(),Kw=(A,$)=>_m(ob,A,$),F0=(A,$)=>Hd(ob,A,$),sb=(A,$,j)=>rb(ob,A,$,j),Jw=(A,$,j)=>kx(ob,A,$,j),Kk=(A,$,j)=>Qa(A,$,j).isSome(),zg=Mu.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Ax=(A,$,j)=>{const ce=A.getRect($),Me=A.getRect(j);return Me.right>ce.left&&Me.leftKa(A,"tr"),Pi={...zg,verify:(A,$,j,ce,Me,Ve,nt)=>Ka(ce,"td,th",nt).bind(Ot=>Ka($,"td,th",nt).map(_t=>or(Ot,_t)?or(ce,Ot)&&gn(Ot)===Me?Ve(_t):zg.none("in same cell"):Ca(NE,[Ot,_t]).fold(()=>Ax(A,_t,Ot)?zg.success():Ve(_t),Kt=>Ve(_t)))).getOr(zg.none("default")),cata:(A,$,j,ce,Me)=>A.fold($,j,ce,Me)},a9=(A,$,j,ce)=>({parent:A,children:$,element:j,index:ce}),Rm=A=>ao(A).bind($=>{const j=St($);return eA(j,A).map(ce=>a9($,j,A,ce))}),eA=(A,$)=>Oe(A,N(or,$)),Px=He("br"),Zg=(A,$,j)=>$(A,j).bind(ce=>xt(ce)&&bt(ce).trim().length===0?Zg(ce,$,j):E.some(ce)),ac=(A,$,j)=>j.traverse($).orThunk(()=>Zg($,j.gather,A)).map(j.relative),V0=(A,$)=>Ct(A,$).filter(Px).orThunk(()=>Ct(A,$-1).filter(Px)),ab=(A,$,j,ce)=>V0($,j).bind(Me=>ce.traverse(Me).fold(()=>Zg(Me,ce.gather,A).map(ce.relative),Ve=>Rm(Ve).map(nt=>_l.on(nt.parent,nt.index)))),z0=(A,$,j,ce)=>(Px($)?ac(A,$,ce):ab(A,$,j,ce)).map(Ve=>({start:Ve,finish:Ve})),tT=A=>Pi.cata(A,$=>E.none(),()=>E.none(),$=>E.some(f0($,0)),$=>E.some(f0($,gn($)))),Z0=(A,$)=>({left:A.left,top:A.top+$,right:A.right,bottom:A.bottom+$}),uv=(A,$)=>({left:A.left,top:A.top-$,right:A.right,bottom:A.bottom-$}),Ud=(A,$,j)=>({left:A.left+$,top:A.top+j,right:A.right+$,bottom:A.bottom+j}),BE=A=>A.top,QE=A=>A.bottom,Hg=(A,$,j)=>j>=0&&j0?A.getRangedRect($,j-1,$,j):E.none(),H0=A=>({left:A.left,top:A.top,right:A.right,bottom:A.bottom}),Mx=(A,$)=>E.some(A.getRect($)),Rh=(A,$,j)=>ut($)?Mx(A,$).map(H0):xt($)?Hg(A,$,j).map(H0):E.none(),nT=(A,$)=>ut($)?Mx(A,$).map(H0):xt($)?A.getRangedRect($,0,$,gn($)).map(H0):E.none(),Rl=5,Dm=100,id=Mu.generate([{none:[]},{retry:["caret"]}]),U0=(A,$)=>A.left<$.left||Math.abs($.right-A.left)<1||A.left>$.right,Rc=(A,$,j)=>xi($,dx).fold(Q,ce=>nT(A,ce).exists(Me=>U0(j,Me))),uu=(A,$,j,ce,Me)=>{const Ve=Z0(Me,Rl);return Math.abs(j.bottom-ce.bottom)<1||j.top>Me.bottom?id.retry(Ve):j.top===Me.bottom?id.retry(Z0(Me,1)):Rc(A,$,Me)?id.retry(Ud(Ve,Rl,0)):id.none()},ld={point:BE,adjuster:(A,$,j,ce,Me)=>{const Ve=uv(Me,Rl);return Math.abs(j.top-ce.top)<1||j.bottomA.elementFromPoint($,j).filter(ce=>wn(ce)==="table").isSome(),fv=(A,$,j,ce,Me)=>rT(A,$,j,$.move(ce,Rl),Me),rT=(A,$,j,ce,Me)=>Me===0?E.some(ce):sf(A,ce.left,$.point(ce))?fv(A,$,j,ce,Me-1):A.situsFromPoint(ce.left,$.point(ce)).bind(Ve=>Ve.start.fold(E.none,nt=>nT(A,nt).bind(Ot=>$.adjuster(A,nt,Ot,j,ce).fold(E.none,_t=>rT(A,$,j,_t,Me-1))).orThunk(()=>E.some(ce)),E.none)),FE=(A,$,j)=>A.point($)>j.getInnerHeight()?E.some(A.point($)-j.getInnerHeight()):A.point($)<0?E.some(-A.point($)):E.none(),tA=(A,$,j)=>{const ce=A.move(j,Rl),Me=rT($,A,j,ce,Dm).getOr(ce);return FE(A,Me,$).fold(()=>$.situsFromPoint(Me.left,A.point(Me)),Ve=>($.scrollBy(0,Ve),$.situsFromPoint(Me.left,A.point(Me)-Ve)))},ib={tryUp:N(tA,ld),tryDown:N(tA,Ex),getJumpSize:M(Rl)},nA=20,lb=(A,$,j)=>A.getSelection().bind(ce=>z0($,ce.finish,ce.foffset,j).fold(()=>E.some(f0(ce.finish,ce.foffset)),Me=>{const Ve=A.fromSitus(Me),nt=Pi.verify(A,ce.finish,ce.foffset,Ve.finish,Ve.foffset,j.failure,$);return tT(nt)})),_x=(A,$,j,ce,Me,Ve)=>Ve===0?E.none():zE(A,$,j,ce,Me).bind(nt=>{const Ot=A.fromSitus(nt),_t=Pi.verify(A,j,ce,Ot.finish,Ot.foffset,Me.failure,$);return Pi.cata(_t,()=>E.none(),()=>E.some(nt),Kt=>or(j,Kt)&&ce===0?VE(A,j,ce,uv,Me):_x(A,$,Kt,0,Me,Ve-1),Kt=>or(j,Kt)&&ce===gn(Kt)?VE(A,j,ce,Z0,Me):_x(A,$,Kt,gn(Kt),Me,Ve-1))}),VE=(A,$,j,ce,Me)=>Rh(A,$,j).bind(Ve=>rA(A,Me,ce(Ve,ib.getJumpSize()))),rA=(A,$,j)=>{const ce=Hp().browser;return ce.isChromium()||ce.isSafari()||ce.isFirefox()?$.retry(A,j):E.none()},zE=(A,$,j,ce,Me)=>Rh(A,j,ce).bind(Ve=>rA(A,Me,Ve)),i9=(A,$,j)=>lb(A,$,j).bind(ce=>_x(A,$,ce.element,ce.offset,j,nA).map(A.fromSitus)),oA=(A,$)=>Kk(A,j=>ao(j).exists(ce=>or(ce,$))),As=(A,$,j,ce,Me)=>Ka(ce,"td,th",$).bind(Ve=>Ka(Ve,"table",$).bind(nt=>oA(Me,nt)?i9(A,$,j).bind(Ot=>Ka(Ot.finish,"td,th",$).map(_t=>({start:Ve,finish:_t,range:Ot}))):E.none())),Wd=(A,$,j,ce,Me,Ve)=>Ve(ce,$).orThunk(()=>As(A,$,j,ce,Me).map(nt=>{const Ot=nt.range;return I0.create(E.some(tb(Ot.start,Ot.soffset,Ot.finish,Ot.foffset)),!0)})),dv=(A,$)=>Ka(A,"tr",$).bind(j=>Ka(j,"table",$).bind(ce=>{const Me=zi(ce,"tr");return or(j,Me[0])?sb(ce,Ve=>Pn(Ve).isSome(),$).map(Ve=>{const nt=gn(Ve);return I0.create(E.some(tb(Ve,nt,Ve,nt)),!0)}):E.none()})),oT=(A,$)=>Ka(A,"tr",$).bind(j=>Ka(j,"table",$).bind(ce=>{const Me=zi(ce,"tr");return or(j,Me[Me.length-1])?Jw(ce,Ve=>_n(Ve).isSome(),$).map(Ve=>I0.create(E.some(tb(Ve,0,Ve,0)),!0)):E.none()})),sA=(A,$,j,ce,Me,Ve,nt)=>As(A,j,ce,Me,Ve).bind(Ot=>B0($,j,Ot.start,Ot.finish,nt)),cb=A=>{let $=A;return{get:()=>$,set:Me=>{$=Me}}},ZE=A=>{const $=cb(E.none()),j=()=>$.get().each(A);return{clear:()=>{j(),$.set(E.none())},isSet:()=>$.get().isSome(),get:()=>$.get(),set:Ot=>{j(),$.set(E.some(Ot))}}},W0=()=>{const A=ZE(w);return{...A,on:j=>A.get().each(j)}},Rx=(A,$)=>Ka(A,"td,th",$),af=A=>Oo(A).exists(Bd),zU=(A,$,j,ce)=>{const Me=W0(),Ve=Me.clear,nt=Cn=>{Me.on(ir=>{ce.clearBeforeUpdate($),Rx(Cn.target,j).each($r=>{rd(ir,$r,j).each(Rr=>{const Kn=Rr.boxes.getOr([]);if(Kn.length===1){const Ir=Kn[0],jn=Py(Ir)==="false",io=Gf(Om(Cn.target),Ir,or);jn&&io&&(ce.selectRange($,Kn,Ir,Ir),A.selectContents(Ir))}else Kn.length>1&&(ce.selectRange($,Kn,Rr.start,Rr.finish),A.selectContents($r))})})})};return{clearstate:Ve,mousedown:Cn=>{ce.clear($),Rx(Cn.target,j).filter(af).each(Me.set)},mouseover:Cn=>{nt(Cn)},mouseup:Cn=>{nt(Cn),Ve()}}},Dx={traverse:Ee,gather:F0,relative:_l.before,retry:ib.tryDown,failure:Pi.failedDown},Y0={traverse:Fe,gather:Kw,relative:_l.before,retry:ib.tryUp,failure:Pi.failedUp},Ug=A=>$=>$===A,$x=Ug(38),Lx=Ug(40),hv=A=>A>=37&&A<=40,HE={isBackward:Ug(37),isForward:Ug(39)},aA={isBackward:Ug(39),isForward:Ug(37)},UE=A=>{const $=A!==void 0?A.dom:document,j=$.body.scrollLeft||$.documentElement.scrollLeft,ce=$.body.scrollTop||$.documentElement.scrollTop;return Xu(j,ce)},X0=(A,$,j)=>{const Me=(j!==void 0?j.dom:document).defaultView;Me&&Me.scrollBy(A,$)},$m=Mu.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),WE=A=>$m.exact(A.start,A.soffset,A.finish,A.foffset),YE=A=>A.match({domRange:$=>zt.fromDom($.startContainer),relative:($,j)=>_l.getStart($),exact:($,j,ce,Me)=>$}),iA=$m.domRange,sT=$m.relative,aT=$m.exact,iT=A=>{const $=YE(A);return Sr($)},Ix=N0.create,Wg={domRange:iA,relative:sT,exact:aT,exactFromRange:WE,getWin:iT,range:Ix},lA=(A,$,j)=>{var ce,Me;return E.from((Me=(ce=A.dom).caretPositionFromPoint)===null||Me===void 0?void 0:Me.call(ce,$,j)).bind(Ve=>{if(Ve.offsetNode===null)return E.none();const nt=A.dom.createRange();return nt.setStart(Ve.offsetNode,Ve.offset),nt.collapse(),E.some(nt)})},ub=(A,$,j)=>{var ce,Me;return E.from((Me=(ce=A.dom).caretRangeFromPoint)===null||Me===void 0?void 0:Me.call(ce,$,j))},lT=(()=>document.caretPositionFromPoint?lA:document.caretRangeFromPoint?ub:E.none)(),XE=(A,$,j)=>{const ce=zt.fromDom(A.document);return lT(ce,$,j).map(Me=>N0.create(zt.fromDom(Me.startContainer),Me.startOffset,zt.fromDom(Me.endContainer),Me.endOffset))},fb=(A,$)=>{const j=wn(A);return j==="input"?_l.after(A):me(["br","img"],j)?$===0?_l.before(A):_l.after(A):_l.on(A,$)},GE=(A,$)=>{const j=A.fold(_l.before,fb,_l.after),ce=$.fold(_l.before,fb,_l.after);return Wg.relative(j,ce)},Fr=(A,$,j,ce)=>{const Me=fb(A,$),Ve=fb(j,ce);return Wg.relative(Me,Ve)},el=(A,$,j,ce)=>{const Ve=Rn(A).dom.createRange();return Ve.setStart(A.dom,$),Ve.setEnd(j.dom,ce),Ve},Lm=(A,$,j,ce)=>{const Me=el(A,$,j,ce),Ve=or(A,j)&&$===ce;return Me.collapsed&&!Ve},Ni=A=>E.from(A.getSelection()),If=(A,$)=>{Ni(A).each(j=>{j.removeAllRanges(),j.addRange($)})},Nx=(A,$,j,ce,Me)=>{const Ve=Jy(A,$,j,ce,Me);If(A,Ve)},db=(A,$,j,ce,Me,Ve)=>{$.collapse(j.dom,ce),$.extend(Me.dom,Ve)},Yd=(A,$)=>Xk(A,$).match({ltr:(j,ce,Me,Ve)=>{Nx(A,j,ce,Me,Ve)},rtl:(j,ce,Me,Ve)=>{Ni(A).each(nt=>{if(nt.setBaseAndExtent)nt.setBaseAndExtent(j.dom,ce,Me.dom,Ve);else if(nt.extend)try{db(A,nt,j,ce,Me,Ve)}catch{Nx(A,Me,Ve,j,ce)}else Nx(A,Me,Ve,j,ce)})}}),Bx=(A,$,j,ce,Me)=>{const Ve=Fr($,j,ce,Me);Yd(A,Ve)},Qx=(A,$,j)=>{const ce=GE($,j);Yd(A,ce)},G0=A=>{if(A.rangeCount>0){const $=A.getRangeAt(0),j=A.getRangeAt(A.rangeCount-1);return E.some(N0.create(zt.fromDom($.startContainer),$.startOffset,zt.fromDom(j.endContainer),j.endOffset))}else return E.none()},cA=A=>{if(A.anchorNode===null||A.focusNode===null)return G0(A);{const $=zt.fromDom(A.anchorNode),j=zt.fromDom(A.focusNode);return Lm($,A.anchorOffset,j,A.focusOffset)?E.some(N0.create($,A.anchorOffset,j,A.focusOffset)):G0(A)}},hb=(A,$,j=!0)=>{const Me=(j?Hk:Tx)(A,$);If(A,Me)},cT=A=>Ni(A).filter($=>$.rangeCount>0).bind(cA),uT=A=>cT(A).map($=>Wg.exact($.start,$.soffset,$.finish,$.foffset)),jE=(A,$)=>{const j=Yw(A,$);return $E(j)},Xd=(A,$,j)=>XE(A,$,j),Fx=A=>{Ni(A).each($=>$.removeAllRanges())},j0=A=>({elementFromPoint:(jn,io)=>zt.fromPoint(zt.fromDom(A.document),jn,io),getRect:jn=>jn.dom.getBoundingClientRect(),getRangedRect:(jn,io,$o,os)=>{const Va=Wg.exact(jn,io,$o,os);return jE(A,Va)},getSelection:()=>uT(A).map(jn=>Xw(A,jn)),fromSitus:jn=>{const io=Wg.relative(jn.start,jn.finish);return Xw(A,io)},situsFromPoint:(jn,io)=>Xd(A,jn,io).map($o=>Gk.create($o.start,$o.soffset,$o.finish,$o.foffset)),clearSelection:()=>{Fx(A)},collapseSelection:(jn=!1)=>{uT(A).each(io=>io.fold($o=>$o.collapse(jn),($o,os)=>{const Va=jn?$o:os;Qx(A,Va,Va)},($o,os,Va,ml)=>{const bi=jn?$o:Va,du=jn?os:ml;Bx(A,bi,du,bi,du)}))},setSelection:jn=>{Bx(A,jn.start,jn.soffset,jn.finish,jn.foffset)},setRelativeSelection:(jn,io)=>{Qx(A,jn,io)},selectNode:jn=>{hb(A,jn,!1)},selectContents:jn=>{hb(A,jn)},getInnerHeight:()=>A.innerHeight,getScrollY:()=>UE(zt.fromDom(A.document)).top,scrollBy:(jn,io)=>{X0(jn,io,zt.fromDom(A.document))}}),jl=(A,$)=>({rows:A,cols:$}),Xi=(A,$,j,ce)=>{const Me=j0(A),Ve=zU(Me,$,j,ce);return{clearstate:Ve.clearstate,mousedown:Ve.mousedown,mouseover:Ve.mouseover,mouseup:Ve.mouseup}},Vx=A=>xi(A,it).exists(Bd),mb=(A,$)=>Vx(A)||Vx($),zx=(A,$,j,ce)=>{const Me=j0(A),Ve=()=>(ce.clear($),E.none());return{keydown:(_t,Kt,Cn,ir,$r,Rr)=>{const Kn=_t.raw,Ir=Kn.which,jn=Kn.shiftKey===!0;return wm($,ce.selectedSelector).fold(()=>(hv(Ir)&&!jn&&ce.clearBeforeUpdate($),hv(Ir)&&jn&&!mb(Kt,ir)?E.none:Lx(Ir)&&jn?N(sA,Me,$,j,Dx,ir,Kt,ce.selectRange):$x(Ir)&&jn?N(sA,Me,$,j,Y0,ir,Kt,ce.selectRange):Lx(Ir)?N(Wd,Me,j,Dx,ir,Kt,oT):$x(Ir)?N(Wd,Me,j,Y0,ir,Kt,dv):E.none),$o=>{const os=Va=>()=>te(Va,bi=>IE(bi.rows,bi.cols,$,$o,ce)).fold(()=>Kp($,ce.firstSelectedSelector,ce.lastSelectedSelector).map(bi=>{const du=Lx(Ir)||Rr.isForward(Ir)?_l.after:_l.before;return Me.setRelativeSelection(_l.on(bi.first,0),du(bi.table)),ce.clear($),I0.create(E.none(),!0)}),bi=>E.some(I0.create(E.none(),!0)));return hv(Ir)&&jn&&!mb(Kt,ir)?E.none:Lx(Ir)&&jn?os([jl(1,0)]):$x(Ir)&&jn?os([jl(-1,0)]):Rr.isBackward(Ir)&&jn?os([jl(0,-1),jl(-1,0)]):Rr.isForward(Ir)&&jn?os([jl(0,1),jl(1,0)]):hv(Ir)&&!jn?Ve:E.none})()},keyup:(_t,Kt,Cn,ir,$r)=>wm($,ce.selectedSelector).fold(()=>{const Rr=_t.raw,Kn=Rr.which;return Rr.shiftKey===!0&&hv(Kn)&&mb(Kt,ir)?Cx($,j,Kt,Cn,ir,$r,ce.selectRange):E.none()},E.none)}},gb=(A,$,j,ce)=>{const Me=j0(A);return(Ve,nt)=>{ce.clearBeforeUpdate($),rd(Ve,nt,j).each(Ot=>{const _t=Ot.boxes.getOr([]);ce.selectRange($,_t,Ot.start,Ot.finish),Me.selectContents(nt),Me.collapseSelection()})}},pb=(A,$)=>{const j=Pt(A,$);return j===void 0||j===""?[]:j.split(" ")},q0=(A,$,j)=>{const Me=pb(A,$).concat([j]);return dt(A,$,Me.join(" ")),!0},uA=(A,$,j)=>{const ce=Be(pb(A,$),Me=>Me!==j);return ce.length>0?dt(A,$,ce.join(" ")):nn(A,$),!1},vb=A=>A.dom.classList!==void 0,fA=A=>pb(A,"class"),dA=(A,$)=>q0(A,"class",$),hA=(A,$)=>uA(A,"class",$),Nf=(A,$)=>{vb(A)?A.dom.classList.add($):dA(A,$)},ic=A=>{(vb(A)?A.dom.classList:fA(A)).length===0&&nn(A,"class")},cd=(A,$)=>{vb(A)?A.dom.classList.remove($):hA(A,$),ic(A)},fu=(A,$)=>vb(A)&&A.dom.classList.contains($),yb=(A,$)=>{ee($,j=>{cd(A,j)})},Zx=A=>$=>{Nf($,A)},mA=A=>$=>{yb($,A)},Im={byClass:A=>{const $=Zx(A.selected),j=mA([A.selected,A.lastSelected,A.firstSelected]),ce=Ve=>{const nt=zi(Ve,A.selectedSelector);ee(nt,j)};return{clearBeforeUpdate:ce,clear:ce,selectRange:(Ve,nt,Ot,_t)=>{ce(Ve),ee(nt,$),Nf(Ot,A.firstSelected),Nf(_t,A.lastSelected)},selectedSelector:A.selectedSelector,firstSelectedSelector:A.firstSelectedSelector,lastSelectedSelector:A.lastSelectedSelector}},byAttr:(A,$,j)=>{const ce=_t=>{nn(_t,A.selected),nn(_t,A.firstSelected),nn(_t,A.lastSelected)},Me=_t=>{dt(_t,A.selected,"1")},Ve=_t=>{nt(_t),j()},nt=_t=>{const Kt=zi(_t,`${A.selectedSelector},${A.firstSelectedSelector},${A.lastSelectedSelector}`);ee(Kt,ce)};return{clearBeforeUpdate:nt,clear:Ve,selectRange:(_t,Kt,Cn,ir)=>{Ve(_t),ee(Kt,Me),dt(Cn,A.firstSelected,"1"),dt(ir,A.lastSelected,"1"),$(Kt,Cn,ir)},selectedSelector:A.selectedSelector,firstSelectedSelector:A.firstSelectedSelector,lastSelectedSelector:A.lastSelectedSelector}}},Ob=(A,$,j,ce)=>{switch(A.tag){case"none":return $();case"single":return ce(A.element);case"multiple":return j(A.elements)}},fT=()=>({tag:"none"}),gA=A=>({tag:"multiple",elements:A}),pA=A=>({tag:"single",element:A}),dT=(A,$,j)=>({get:()=>JS(A(),j).fold(()=>$().fold(fT,pA),gA)}),Hx=(A,$)=>{const j=A.slice(0,$[$.length-1].row+1),ce=ni(j);return Le(ce,Me=>{const Ve=Me.cells.slice(0,$[$.length-1].column+1);return fe(Ve,nt=>nt.element)})},ka=(A,$)=>{const j=A.slice($[0].row+$[0].rowspan-1,A.length),ce=ni(j);return Le(ce,Me=>{const Ve=Me.cells.slice($[0].column+$[0].colspan-1,Me.cells.length);return fe(Ve,nt=>nt.element)})},Nm=(A,$,j)=>{const ce=hs.fromTable(A);return Eg(ce,$).map(Ve=>{const nt=v0(ce,j,!1),{rows:Ot}=Hi(nt),_t=Hx(Ot,Ve),Kt=ka(Ot,Ve);return{upOrLeftCells:_t,downOrRightCells:Kt}})},vA=(A,$,j,ce,Me,Ve,nt)=>({target:A,x:$,y:j,stop:ce,prevent:Me,kill:Ve,raw:nt}),hT=A=>{const $=zt.fromDom(Dr(A).getOr(A.target)),j=()=>A.stopPropagation(),ce=()=>A.preventDefault(),Me=T(ce,j);return vA($,A.clientX,A.clientY,j,ce,Me,A)},mT=(A,$)=>j=>{A(j)&&$(hT(j))},mv=(A,$,j,ce,Me)=>{const Ve=mT(j,ce);return A.dom.addEventListener($,Ve,Me),{unbind:N(pT,A,$,Ve,Me)}},gT=(A,$,j,ce)=>mv(A,$,j,ce,!1),pT=(A,$,j,ce)=>{A.dom.removeEventListener($,j,ce)},KE=B,K0=(A,$,j)=>gT(A,$,KE,j),J0=hT,vT=A=>!fu(zt.fromDom(A.target),"ephox-snooker-resizer-bar"),yT=(A,$)=>{const j=dT(()=>zt.fromDom(A.getBody()),()=>Ly(ef(A),Oh(A)),Jp.selectedSelector),ce=(_t,Kt,Cn)=>{Oc(Kt).each($r=>{const Rr=$i(A),Kn=js(w,zt.fromDom(A.getDoc()),Rr),Ir=$f(A),jn=Nm($r,{selection:Ir},Kn);iE(A,_t,Kt,Cn,jn)})},Me=()=>lE(A),Ve=Im.byAttr(Jp,ce,Me);return A.on("init",_t=>{const Kt=A.getWin(),Cn=FO(A),ir=Oh(A),$r=()=>{const Oa=A.selection,Dc=zt.fromDom(Oa.getStart()),ql=zt.fromDom(Oa.getEnd());Ca(Oc,[Dc,ql]).fold(()=>Ve.clear(Cn),w)},Rr=Xi(Kt,Cn,ir,Ve),Kn=zx(Kt,Cn,ir,Ve),Ir=gb(Kt,Cn,ir,Ve),jn=Oa=>Oa.raw.shiftKey===!0;A.on("TableSelectorChange",Oa=>Ir(Oa.start,Oa.finish));const io=(Oa,Dc)=>{jn(Oa)&&(Dc.kill&&Oa.kill(),Dc.selection.each(ql=>{const uf=Wg.relative(ql.start,ql.finish),Ru=Yw(Kt,uf);A.selection.setRng(Ru)}))},$o=Oa=>{const Dc=J0(Oa);if(Dc.raw.shiftKey&&hv(Dc.raw.which)){const ql=A.selection.getRng(),uf=zt.fromDom(ql.startContainer),Ru=zt.fromDom(ql.endContainer);Kn.keyup(Dc,uf,ql.startOffset,Ru,ql.endOffset).each(jg=>{io(Dc,jg)})}},os=Oa=>{const Dc=J0(Oa);$.hide();const ql=A.selection.getRng(),uf=zt.fromDom(ql.startContainer),Ru=zt.fromDom(ql.endContainer),jg=ZS(HE,aA)(zt.fromDom(A.selection.getStart()));Kn.keydown(Dc,uf,ql.startOffset,Ru,ql.endOffset,jg).each(Gc=>{io(Dc,Gc)}),$.show()},Va=Oa=>Oa.button===0,ml=Oa=>Oa.buttons===void 0?!0:(Oa.buttons&1)!==0,bi=Oa=>{Rr.clearstate()},du=Oa=>{Va(Oa)&&vT(Oa)&&Rr.mousedown(J0(Oa))},pv=Oa=>{ml(Oa)&&vT(Oa)&&Rr.mouseover(J0(Oa))},vv=Oa=>{Va(Oa)&&vT(Oa)&&Rr.mouseup(J0(Oa))},jx=(()=>{const Oa=cb(zt.fromDom(Cn)),Dc=cb(0);return{touchEnd:uf=>{const Ru=zt.fromDom(uf.target);if(He("td")(Ru)||He("th")(Ru)){const jg=Oa.get(),Gc=Dc.get();or(jg,Ru)&&uf.timeStamp-Gc<300&&(uf.preventDefault(),Ir(Ru,Ru))}Oa.set(Ru),Dc.set(uf.timeStamp)}}})();A.on("dragstart",bi),A.on("mousedown",du),A.on("mouseover",pv),A.on("mouseup",vv),A.on("touchend",jx.touchEnd),A.on("keyup",$o),A.on("keydown",os),A.on("NodeChange",$r)}),A.on("PreInit",()=>{A.serializer.addTempAttr(Jp.firstSelected),A.serializer.addTempAttr(Jp.lastSelected)}),{getSelectedCells:()=>Ob(j.get(),M([]),_t=>fe(_t,Kt=>Kt.dom),_t=>[_t.dom]),clearSelectedCells:_t=>Ve.clear(zt.fromDom(_t))}},ud=A=>{let $=[];return{bind:Ve=>{if(Ve===void 0)throw new Error("Event bind error: undefined handler");$.push(Ve)},unbind:Ve=>{$=Be($,nt=>nt!==Ve)},trigger:(...Ve)=>{const nt={};ee(A,(Ot,_t)=>{nt[Ot]=Ve[_t]}),ee($,Ot=>{Ot(nt)})}}},Yg=A=>{const $=Se(A,ce=>({bind:ce.bind,unbind:ce.unbind})),j=Se(A,ce=>ce.trigger);return{registry:$,trigger:j}},JE=(A,$)=>{let j=null;const ce=()=>{p(j)||(clearTimeout(j),j=null)};return{cancel:ce,throttle:(...Ve)=>{ce(),j=setTimeout(()=>{j=null,A.apply(null,Ve)},$)}}},xb=A=>A.slice(0).sort(),e_=(A,$)=>{throw new Error("All required keys ("+xb(A).join(", ")+") were not specified. Specified keys were: "+xb($).join(", ")+".")},_u=A=>{throw new Error("Unsupported keys for object: "+xb(A).join(", "))},lc=(A,$)=>{if(!u($))throw new Error("The "+A+" fields must be an array. Was: "+$+".");ee($,j=>{if(!f(j))throw new Error("The value "+j+" in the "+A+" fields was not a string.")})},gv=(A,$)=>{throw new Error("All values need to be of type: "+$+". Keys ("+xb(A).join(", ")+") were not.")},l9=A=>{const $=xb(A);G($,(ce,Me)=>Me<$.length-1&&ce===$[Me+1]).each(ce=>{throw new Error("The field: "+ce+" occurs more than once in the combined fields: ["+$.join(", ")+"].")})},yA=(A,$)=>t_(A,$,{validate:k,label:"function"}),t_=(A,$,j)=>{if($.length===0)throw new Error("You must specify at least one required field.");return lc("required",$),l9($),ce=>{const Me=se(ce);ke($,Ot=>me(Me,Ot))||e_($,Me),A($,Me);const nt=Be($,Ot=>!j.validate(ce[Ot],Ot));return nt.length>0&&gv(nt,j.label),ce}},xs=(A,$)=>{const j=Be($,ce=>!me(A,ce));j.length>0&&_u(j)},bT=A=>yA(xs,A),bA=bT(["compare","extract","mutate","sink"]),OT=bT(["element","start","stop","destroy"]),n_=bT(["forceDrop","drop","move","delayDrop"]),r_=()=>{let A=E.none();const $=()=>{A=E.none()},j=(Ve,nt)=>{const Ot=A.map(_t=>Ve.compare(_t,nt));return A=E.some(nt),Ot},ce=(Ve,nt)=>{nt.extract(Ve).each(_t=>{j(nt,_t).each(Cn=>{Me.trigger.move(Cn)})})},Me=Yg({move:ud(["info"])});return{onEvent:ce,reset:$,events:Me.registry}},OA=()=>{const A=Yg({move:ud(["info"])});return{onEvent:w,reset:w,events:A.registry}},o_=()=>{const A=OA(),$=r_();let j=A;return{on:()=>{j.reset(),j=$},off:()=>{j.reset(),j=A},isOn:()=>j===$,onEvent:(Ot,_t)=>{j.onEvent(Ot,_t)},events:$.events}},Wr=(A,$,j)=>{let ce=!1;const Me=Yg({start:ud([]),stop:ud([])}),Ve=o_(),nt=()=>{Kn.stop(),Ve.isOn()&&(Ve.off(),Me.trigger.stop())},Ot=JE(nt,200),_t=jn=>{Kn.start(jn),Ve.on(),Me.trigger.start()},Kt=jn=>{Ot.cancel(),Ve.onEvent(jn,$)};Ve.events.move.bind(jn=>{$.mutate(A,jn.info)});const Cn=()=>{ce=!0},ir=()=>{ce=!1},$r=()=>ce,Rr=jn=>(...io)=>{ce&&jn.apply(null,io)},Kn=$.sink(n_({forceDrop:nt,drop:Rr(nt),move:Rr(Kt),delayDrop:Rr(Ot.throttle)}),j),Ir=()=>{Kn.destroy()};return{element:Kn.element,go:_t,on:Cn,off:ir,isActive:$r,destroy:Ir,events:Me.registry}},Xg=A=>{const $=A.replace(/\./g,"-");return{resolve:ce=>$+"-"+ce}},Sb=Xg("ephox-dragster").resolve,wb=A=>{const $={layerClass:Sb("blocker"),...A},j=zt.fromTag("div");return dt(j,"role","presentation"),kl(j,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),Nf(j,Sb("blocker")),Nf(j,$.layerClass),{element:M(j),destroy:()=>{On(j)}}};var a_=bA({compare:(A,$)=>Xu($.left-A.left,$.top-A.top),extract:A=>E.some(Xu(A.x,A.y)),sink:(A,$)=>{const j=wb($),ce=K0(j.element(),"mousedown",A.forceDrop),Me=K0(j.element(),"mouseup",A.drop),Ve=K0(j.element(),"mousemove",A.move),nt=K0(j.element(),"mouseout",A.delayDrop),Ot=()=>{j.destroy(),Me.unbind(),Ve.unbind(),nt.unbind(),ce.unbind()},_t=Cn=>{Mt(Cn,j.element())},Kt=()=>{On(j.element())};return OT({element:j.element,start:_t,stop:Kt,destroy:Ot})},mutate:(A,$)=>{A.mutate($.left,$.top)}});const SA=(A,$={})=>{var j;const ce=(j=$.mode)!==null&&j!==void 0?j:a_;return Wr(A,ce,$)},Bm=Xg("ephox-snooker").resolve,wA=()=>{const A=Yg({drag:ud(["xDelta","yDelta"])});return{mutate:(j,ce)=>{A.trigger.drag(j,ce)},events:A.registry}},i_=()=>{const A=Yg({drag:ud(["xDelta","yDelta","target"])});let $=E.none();const j=wA();return j.events.drag.bind(Ve=>{$.each(nt=>{A.trigger.drag(Ve.xDelta,Ve.yDelta,nt)})}),{assign:Ve=>{$=E.some(Ve)},get:()=>$,mutate:j.mutate,events:A.registry}},Tb=(A,$,j,ce,Me)=>{const Ve=zt.fromTag("div");return kl(Ve,{position:"absolute",left:$-ce/2+"px",top:j+"px",height:Me+"px",width:ce+"px"}),mt(Ve,{"data-column":A,role:"presentation"}),Ve},l_=(A,$,j,ce,Me)=>{const Ve=zt.fromTag("div");return kl(Ve,{position:"absolute",left:$+"px",top:j-Me/2+"px",height:Me+"px",width:ce+"px"}),mt(Ve,{"data-row":A,role:"presentation"}),Ve},TA=Bm("resizer-bar"),xT=Bm("resizer-rows"),CA=Bm("resizer-cols"),Ux=7,c_=(A,$)=>Le(A.all,(j,ce)=>$(j.element)?[ce]:[]),u_=(A,$)=>{const j=[];return q(A.grid.columns,ce=>{hs.getColumnAt(A,ce).map(Ve=>Ve.element).forall($)&&j.push(ce)}),Be(j,ce=>{const Me=hs.filterItems(A,Ve=>Ve.column===ce);return ke(Me,Ve=>$(Ve.element))})},e1=A=>{const $=zi(A.parent(),"."+TA);ee($,On)},ST=(A,$,j)=>{const ce=A.origin();ee($,Me=>{Me.each(Ve=>{const nt=j(ce,Ve);Nf(nt,TA),Mt(A.parent(),nt)})})},kA=(A,$,j,ce)=>{ST(A,$,(Me,Ve)=>{const nt=Tb(Ve.col,Ve.x-Me.left,j.top-Me.top,Ux,ce);return Nf(nt,CA),nt})},f_=(A,$,j,ce)=>{ST(A,$,(Me,Ve)=>{const nt=l_(Ve.row,j.left-Me.left,Ve.y-Me.top,ce,Ux);return Nf(nt,xT),nt})},d_=(A,$,j,ce,Me)=>{const Ve=Tu(j),nt=$.isResizable,Ot=ce.length>0?Xr.positions(ce,j):[],_t=Ot.length>0?c_(A,nt):[],Kt=Be(Ot,(Rr,Kn)=>ae(_t,Ir=>Kn===Ir));f_($,Kt,Ve,Mf(j));const Cn=Me.length>0?vi.positions(Me,j):[],ir=Cn.length>0?u_(A,nt):[],$r=Be(Cn,(Rr,Kn)=>ae(ir,Ir=>Kn===Ir));kA($,$r,Ve,vm(j))},Wx=(A,$)=>{if(e1(A),A.isResizable($)){const j=hs.fromTable($),ce=Yp(j),Me=gm(j);d_(j,A,$,ce,Me)}},Dh=(A,$)=>{const j=zi(A.parent(),"."+TA);ee(j,$)},Yx=A=>{Dh(A,$=>{Ya($,"display","none")})},Ys=A=>{Dh(A,$=>{Ya($,"display","block")})},h_=A=>fu(A,xT),Qm=A=>fu(A,CA),$h=Bm("resizer-bar-dragging"),Xx=A=>{const $=i_(),j=SA($,{});let ce=E.none();const Me=(Kn,Ir)=>E.from(Pt(Kn,Ir));$.events.drag.bind(Kn=>{Me(Kn.target,"data-row").each(Ir=>{const jn=Cf(Kn.target,"top");Ya(Kn.target,"top",jn+Kn.yDelta+"px")}),Me(Kn.target,"data-column").each(Ir=>{const jn=Cf(Kn.target,"left");Ya(Kn.target,"left",jn+Kn.xDelta+"px")})});const Ve=(Kn,Ir)=>{const jn=Cf(Kn,Ir),io=Ra(Kn,"data-initial-"+Ir,0);return jn-io};j.events.stop.bind(()=>{$.get().each(Kn=>{ce.each(Ir=>{Me(Kn,"data-row").each(jn=>{const io=Ve(Kn,"top");nn(Kn,"data-initial-top"),Rr.trigger.adjustHeight(Ir,io,parseInt(jn,10))}),Me(Kn,"data-column").each(jn=>{const io=Ve(Kn,"left");nn(Kn,"data-initial-left"),Rr.trigger.adjustWidth(Ir,io,parseInt(jn,10))}),Wx(A,Ir)})})});const nt=(Kn,Ir)=>{Rr.trigger.startAdjust(),$.assign(Kn),dt(Kn,"data-initial-"+Ir,Cf(Kn,Ir)),Nf(Kn,$h),Ya(Kn,"opacity","0.2"),j.go(A.parent())},Ot=K0(A.parent(),"mousedown",Kn=>{h_(Kn.target)&&nt(Kn.target,"top"),Qm(Kn.target)&&nt(Kn.target,"left")}),_t=Kn=>or(Kn,A.view()),Kt=Kn=>Ka(Kn,"table",_t).filter(Bd),Cn=K0(A.view(),"mouseover",Kn=>{Kt(Kn.target).fold(()=>{oa(Kn.target)&&e1(A)},Ir=>{j.isActive()&&(ce=E.some(Ir),Wx(A,Ir))})}),ir=()=>{Ot.unbind(),Cn.unbind(),j.destroy(),e1(A)},$r=Kn=>{Wx(A,Kn)},Rr=Yg({adjustHeight:ud(["table","delta","row"]),adjustWidth:ud(["table","delta","column"]),startAdjust:ud([])});return{destroy:ir,refresh:$r,on:j.on,off:j.off,hideBars:N(Yx,A),showBars:N(Ys,A),events:Rr.registry}},Gx={create:(A,$,j)=>{const ce=Xr,Me=vi,Ve=Xx(A),nt=Yg({beforeResize:ud(["table","type"]),afterResize:ud(["table","type"]),startDrag:ud([])});return Ve.events.adjustHeight.bind(Ot=>{const _t=Ot.table;nt.trigger.beforeResize(_t,"row");const Kt=ce.delta(Ot.delta,_t);dw(_t,Kt,Ot.row,ce),nt.trigger.afterResize(_t,"row")}),Ve.events.startAdjust.bind(Ot=>{nt.trigger.startDrag()}),Ve.events.adjustWidth.bind(Ot=>{const _t=Ot.table;nt.trigger.beforeResize(_t,"col");const Kt=Me.delta(Ot.delta,_t),Cn=j(_t);Fy(_t,Kt,Ot.column,$,Cn),nt.trigger.afterResize(_t,"col")}),{on:Ve.on,off:Ve.off,refreshBars:Ve.refresh,hideBars:Ve.hideBars,showBars:Ve.showBars,destroy:Ve.destroy,events:nt.registry}}},wT={only:(A,$)=>{const j=gt(A)?sr(A):A;return{parent:M(j),view:M(A),origin:M(Xu(0,0)),isResizable:$}},detached:(A,$,j)=>{const ce=()=>Tu($);return{parent:M($),view:M(A),origin:ce,isResizable:j}},body:(A,$,j)=>({parent:M($),view:M(A),origin:M(Xu(0,0)),isResizable:j})},m_=()=>{const A=zt.fromTag("div");return kl(A,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Mt(Ri(),A),A},TT=(A,$)=>A.inline?wT.body(zt.fromDom(A.getBody()),m_(),$):wT.only(zt.fromDom(A.getDoc()),$),g_=(A,$)=>{A.inline&&On($.parent())},Ps=A=>x(A)&&A.nodeName==="TABLE",cf="bar-",Gg=A=>Pt(A,"data-mce-resize")!=="false",p_=A=>{const $=hs.fromTable(A);hs.hasColumns($)||ee(Af(A),j=>{const ce=Zi(j,"width");Ya(j,"width",ce),nn(j,"width")})},n1=A=>{const $=W0(),j=W0(),ce=W0();let Me,Ve;const nt=Kn=>_c(A,Kn),Ot=()=>Hl(A)?ow():sk(),_t=Kn=>h0(Kn).columns,Kt=(Kn,Ir,jn)=>{const io=Fc(Ir,"e");if(Ve===""&&Lf(Kn),jn!==Me&&Ve!==""){Ya(Kn,"width",Ve);const $o=Ot(),os=nt(Kn),Va=Hl(A)||io?_t(Kn)-1:0;Fy(Kn,jn-Me,Va,$o,os)}else if(VO(Ve)){const $o=parseFloat(Ve.replace("%","")),os=jn*$o/Me;Ya(Kn,"width",os+"%")}My(Ve)&&p_(Kn)},Cn=()=>{j.on(Kn=>{Kn.destroy()}),ce.on(Kn=>{g_(A,Kn)})};return A.on("init",()=>{const Kn=TT(A,Gg);if(ce.set(Kn),Uc(A)&&Wl(A)){const Ir=Ot(),jn=Gx.create(Kn,Ir,nt);jn.on(),jn.events.startDrag.bind(io=>{$.set(A.selection.getRng())}),jn.events.beforeResize.bind(io=>{const $o=io.table.dom;_w(A,$o,kg($o),Ag($o),cf+io.type)}),jn.events.afterResize.bind(io=>{const $o=io.table,os=$o.dom;Qd($o),$.on(Va=>{A.selection.setRng(Va),A.focus()}),cE(A,os,kg(os),Ag(os),cf+io.type),A.undoManager.add()}),j.set(jn)}}),A.on("ObjectResizeStart",Kn=>{const Ir=Kn.target;if(Ps(Ir)){const jn=zt.fromDom(Ir);ee(A.dom.select(".mce-clonedresizable"),io=>{A.dom.addClass(io,"mce-"+kc(A)+"-columns")}),!jy(jn)&&Ul(A)?D0(jn):!Gy(jn)&&Df(A)&&Lf(jn),bx(jn)&&Rd(Kn.origin,cf)&&Lf(jn),Me=Kn.width,Ve=Li(A)?"":KC(A,Ir).getOr("")}}),A.on("ObjectResized",Kn=>{const Ir=Kn.target;if(Ps(Ir)){const jn=zt.fromDom(Ir),io=Kn.origin;Rd(io,"corner-")&&Kt(jn,io,Kn.width),Qd(jn),iv(A,jn.dom,Em)}}),A.on("SwitchMode",()=>{j.on(Kn=>{A.mode.isReadOnly()?Kn.hideBars():Kn.showBars()})}),A.on("dragstart dragend",Kn=>{j.on(Ir=>{Kn.type==="dragstart"?(Ir.hideBars(),Ir.off()):(Ir.on(),Ir.showBars())})}),A.on("remove",()=>{Cn()}),{refresh:Kn=>{j.on(Ir=>Ir.refreshBars(zt.fromDom(Kn)))},hide:()=>{j.on(Kn=>Kn.hideBars())},show:()=>{j.on(Kn=>Kn.showBars())}}},Qs=A=>{Yi(A);const $=n1(A),j=yT(A,$),ce=vx(A,$,j);return L0(A,ce),PE(A,ce),NM(A,ce),{getSelectedCells:j.getSelectedCells,clearSelectedCells:j.clearSelectedCells}},v_=A=>({table:Qs(A)});var CT=()=>{t.add("dom",v_)};CT()})();(function(){const t=Object.getPrototypeOf,e=(o,c,g)=>{var S;return g(o,c.prototype)?!0:((S=o.constructor)===null||S===void 0?void 0:S.name)===c.name},r=o=>{const c=typeof o;return o===null?"null":c==="object"&&Array.isArray(o)?"array":c==="object"&&e(o,String,(g,S)=>S.isPrototypeOf(g))?"string":c},a=o=>c=>r(c)===o,i=o=>c=>typeof c===o,d=o=>c=>o===c,f=(o,c)=>u(o)&&e(o,c,(g,S)=>t(g)===S),m=a("string"),u=a("object"),p=o=>f(o,Object),v=a("array"),y=d(null),b=i("boolean"),x=d(void 0),k=o=>o==null,C=o=>!k(o),w=i("function"),T=i("number"),R=(o,c)=>{if(v(o)){for(let g=0,S=o.length;g{},I=o=>()=>o(),V=(o,c)=>(...g)=>o(c.apply(null,g)),N=(o,c)=>g=>o(c(g)),F=o=>()=>o,z=o=>o,U=(o,c)=>o===c;function Q(o,...c){return(...g)=>{const S=c.concat(g);return o.apply(null,S)}}const B=o=>c=>!o(c),E=o=>()=>{throw new Error(o)},W=o=>o(),Y=F(!1),ie=F(!0);class L{constructor(c,g){this.tag=c,this.value=g}static some(c){return new L(!0,c)}static none(){return L.singletonNone}fold(c,g){return this.tag?g(this.value):c()}isSome(){return this.tag}isNone(){return!this.tag}map(c){return this.tag?L.some(c(this.value)):L.none()}bind(c){return this.tag?c(this.value):L.none()}exists(c){return this.tag&&c(this.value)}forall(c){return!this.tag||c(this.value)}filter(c){return!this.tag||c(this.value)?this:L.none()}getOr(c){return this.tag?this.value:c}or(c){return this.tag?this:c}getOrThunk(c){return this.tag?this.value:c()}orThunk(c){return this.tag?this:c()}getOrDie(c){if(this.tag)return this.value;throw new Error(c??"Called getOrDie on None")}static from(c){return C(c)?L.some(c):L.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(c){this.tag&&c(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}L.singletonNone=new L(!1);const me=Array.prototype.slice,ae=Array.prototype.indexOf,q=Array.prototype.push,fe=(o,c)=>ae.call(o,c),ee=(o,c)=>{const g=fe(o,c);return g===-1?L.none():L.some(g)},be=(o,c)=>fe(o,c)>-1,Te=(o,c)=>{for(let g=0,S=o.length;g{const g=[];for(let S=0;S{const g=[];for(let S=0;S{const g=o.length,S=new Array(g);for(let _=0;_{for(let g=0,S=o.length;g{for(let g=o.length-1;g>=0;g--){const S=o[g];c(S,g)}},Oe=(o,c)=>{const g=[],S=[];for(let _=0,H=o.length;_{const g=[];for(let S=0,_=o.length;S<_;S++){const H=o[S];c(H,S)&&g.push(H)}return g},Le=(o,c,g)=>(G(o,(S,_)=>{g=c(g,S,_)}),g),ke=(o,c,g)=>(pe(o,(S,_)=>{g=c(g,S,_)}),g),$e=(o,c,g)=>{for(let S=0,_=o.length;S<_;S++){const H=o[S];if(c(H,S))return L.some(H);if(g(H,S))break}return L.none()},Ze=(o,c)=>$e(o,c,Y),De=(o,c)=>{for(let g=0,S=o.length;g{const c=[];for(let g=0,S=o.length;gIe(ne(o,c)),ye=(o,c)=>{for(let g=0,S=o.length;g{const c=me.call(o,0);return c.reverse(),c},se=(o,c)=>xe(o,g=>!be(c,g)),ue=(o,c)=>{const g={};for(let S=0,_=o.length;S<_;S++){const H=o[S];g[String(H)]=c(H,S)}return g},oe=o=>[o],Se=(o,c)=>{const g=me.call(o,0);return g.sort(c),g},le=(o,c)=>c>=0&&cle(o,0),Qe=o=>le(o,o.length-1),ze=w(Array.from)?Array.from:o=>me.call(o),Xe=(o,c)=>{for(let g=0;g{const g=ct(o);for(let S=0,_=g.length;S<_;S++){const H=g[S],K=o[H];c(K,H)}},je=(o,c)=>et(o,(g,S)=>({k:S,v:c(g,S)})),et=(o,c)=>{const g={};return Ye(o,(S,_)=>{const H=c(S,_);g[H.k]=H.v}),g},yt=o=>(c,g)=>{o[g]=c},ft=(o,c,g,S)=>{Ye(o,(_,H)=>{(c(_,H)?g:S)(_,H)})},tt=(o,c)=>{const g={},S={};return ft(o,c,yt(g),yt(S)),{t:g,f:S}},wt=(o,c)=>{const g={};return ft(o,c,yt(g),M),g},Xt=(o,c)=>{const g=[];return Ye(o,(S,_)=>{g.push(c(S,_))}),g},Gt=(o,c)=>{const g=ct(o);for(let S=0,_=g.length;S<_;S++){const H=g[S],K=o[H];if(c(K,H,o))return L.some(K)}return L.none()},Nt=o=>Xt(o,z),Bt=(o,c)=>vn(o,c)?L.from(o[c]):L.none(),vn=(o,c)=>pt.call(o,c),En=(o,c)=>vn(o,c)&&o[c]!==void 0&&o[c]!==null,ln=(o,c,g=U)=>o.exists(S=>g(S,c)),Yn=(o,c,g=U)=>Xn(o,c,g).getOr(o.isNone()&&c.isNone()),an=o=>{const c=[],g=S=>{c.push(S)};for(let S=0;S{const c=[];for(let g=0;go.isSome()&&c.isSome()?L.some(g(o.getOrDie(),c.getOrDie())):L.none(),Un=(o,c,g,S)=>o.isSome()&&c.isSome()&&g.isSome()?L.some(S(o.getOrDie(),c.getOrDie(),g.getOrDie())):L.none(),Sn=(o,c)=>o!=null?L.some(c(o)):L.none(),it=(o,c)=>o?L.some(c):L.none(),ut=(o,c)=>o+c,xt=(o,c)=>o.substring(c),gt=(o,c,g)=>c===""||o.length>=c.length&&o.substr(g,g+c.length)===c,Dt=(o,c)=>dt(o,c)?xt(o,c.length):o,He=(o,c)=>mt(o,c)?o:ut(o,c),at=(o,c,g=0,S)=>{const _=o.indexOf(c,g);return _!==-1?x(S)?!0:_+c.length<=S:!1},dt=(o,c)=>gt(o,c,0),mt=(o,c)=>gt(o,c,o.length-c.length),Pt=(o=>c=>c.replace(o,""))(/^\s+|\s+$/g),dn=o=>o.length>0,nn=o=>!dn(o),Wt=o=>o.style!==void 0&&w(o.style.getPropertyValue),Rt=(o,c)=>{const S=(c||document).createElement("div");if(S.innerHTML=o,!S.hasChildNodes()||S.childNodes.length>1){const _="HTML does not have a single root node";throw console.error(_,o),new Error(_)}return nr(S.childNodes[0])},fn=(o,c)=>{const S=(c||document).createElement(o);return nr(S)},Hn=(o,c)=>{const S=(c||document).createTextNode(o);return nr(S)},nr=o=>{if(o==null)throw new Error("Node cannot be null or undefined");return{dom:o}},zt={fromHtml:Rt,fromTag:fn,fromText:Hn,fromDom:nr,fromPoint:(o,c,g)=>L.from(o.dom.elementFromPoint(c,g)).map(nr)},vr=typeof window<"u"?window:Function("return this;")(),Wn=(o,c)=>{let g=c??vr;for(let S=0;S{const g=o.split(".");return Wn(g,c)},kr=(o,c)=>Br(o,c),or=(o,c)=>{const g=kr(o,c);if(g==null)throw new Error(o+" not available on this browser");return g},jr=Object.getPrototypeOf,_r=o=>or("HTMLElement",o),Rn=o=>{const c=Br("ownerDocument.defaultView",o);return u(o)&&(_r(c).prototype.isPrototypeOf(o)||/^HTML\w*Element$/.test(jr(o).constructor.name))},xr=9,sr=11,Sr=1,ao=3,Oo=o=>o.dom.nodeName.toLowerCase(),wr=o=>o.dom.nodeType,Fe=o=>c=>wr(c)===o,Ee=o=>St(o)&&Rn(o.dom),St=Fe(Sr),Ct=Fe(ao),Lt=Fe(xr),Ft=Fe(sr),Ht=o=>c=>St(c)&&Oo(c)===o,$t=(o,c)=>{const g=o.dom;if(g.nodeType!==Sr)return!1;{const S=g;if(S.matches!==void 0)return S.matches(c);if(S.msMatchesSelector!==void 0)return S.msMatchesSelector(c);if(S.webkitMatchesSelector!==void 0)return S.webkitMatchesSelector(c);if(S.mozMatchesSelector!==void 0)return S.mozMatchesSelector(c);throw new Error("Browser lacks native selectors")}},Mt=o=>o.nodeType!==Sr&&o.nodeType!==xr&&o.nodeType!==sr||o.childElementCount===0,en=(o,c)=>{const g=c===void 0?document:c.dom;return Mt(g)?[]:ne(g.querySelectorAll(o),zt.fromDom)},un=(o,c)=>{const g=c===void 0?document:c.dom;return Mt(g)?L.none():L.from(g.querySelector(o)).map(zt.fromDom)},Jt=(o,c)=>o.dom===c.dom,rn=(o,c)=>{const g=o.dom,S=c.dom;return g===S?!1:g.contains(S)},Tn=o=>zt.fromDom(o.dom.ownerDocument),On=o=>Lt(o)?o:Tn(o),pn=o=>zt.fromDom(On(o).dom.documentElement),Jn=o=>zt.fromDom(On(o).dom.defaultView),Fn=o=>L.from(o.dom.parentNode).map(zt.fromDom),zr=o=>Fn(o),dr=o=>L.from(o.dom.parentElement).map(zt.fromDom),Hr=(o,c)=>{const g=w(c)?c:Y;let S=o.dom;const _=[];for(;S.parentNode!==null&&S.parentNode!==void 0;){const H=S.parentNode,K=zt.fromDom(H);if(_.push(K),g(K)===!0)break;S=H}return _},ar=o=>L.from(o.dom.offsetParent).map(zt.fromDom),ur=o=>L.from(o.dom.nextSibling).map(zt.fromDom),qr=o=>ne(o.dom.childNodes,zt.fromDom),to=(o,c)=>{const g=o.dom.childNodes;return L.from(g[c]).map(zt.fromDom)},ko=o=>to(o,0),Es=(o,c)=>({element:o,offset:c}),So=(o,c)=>{const g=qr(o);return g.length>0&&cFt(o)&&C(o.dom.host),ds=w(Element.prototype.attachShadow)&&w(Node.prototype.getRootNode),qs=F(ds),es=ds?o=>zt.fromDom(o.dom.getRootNode()):On,Xs=o=>Ko(o)?o:zt.fromDom(On(o).dom.body),Wa=o=>vc(o).isSome(),vc=o=>{const c=es(o);return Ko(c)?L.some(c):L.none()},ii=o=>zt.fromDom(o.dom.host),tu=o=>{if(qs()&&C(o.target)){const c=zt.fromDom(o.target);if(St(c)&&Na(c)&&o.composed&&o.composedPath){const g=o.composedPath();if(g)return Ce(g)}}return L.from(o.target)},Na=o=>C(o.dom.shadowRoot),Js=o=>{const c=Ct(o)?o.dom.parentNode:o.dom;if(c==null||c.ownerDocument===null)return!1;const g=c.ownerDocument;return vc(zt.fromDom(c)).fold(()=>g.body.contains(c),N(Js,ii))},ya=()=>ra(zt.fromDom(document)),ra=o=>{const c=o.dom.body;if(c==null)throw new Error("Body is not available yet");return zt.fromDom(c)},nu=(o,c,g)=>{if(m(g)||b(g)||T(g))o.setAttribute(c,g+"");else throw console.error("Invalid call to Attribute.set. Key ",c,":: Value ",g,":: Element ",o),new Error("Attribute value was not simple")},Dr=(o,c,g)=>{nu(o.dom,c,g)},yc=(o,c)=>{const g=o.dom;Ye(c,(S,_)=>{nu(g,_,S)})},oa=(o,c)=>{const g=o.dom.getAttribute(c);return g===null?void 0:g},Ri=(o,c)=>L.from(oa(o,c)),Md=(o,c)=>{const g=o.dom;return g&&g.hasAttribute?g.hasAttribute(c):!1},sa=(o,c)=>{o.dom.removeAttribute(c)},bu=o=>ke(o.dom.attributes,(c,g)=>(c[g.name]=g.value,c),{}),Ed=(o,c,g)=>{if(!m(g))throw console.error("Invalid call to CSS.set. Property ",c,":: Value ",g,":: Element ",o),new Error("CSS value must be a string: "+g);Wt(o)&&o.style.setProperty(c,g)},Ou=(o,c)=>{Wt(o)&&o.style.removeProperty(c)},Po=(o,c,g)=>{const S=o.dom;Ed(S,c,g)},zi=(o,c)=>{const g=o.dom;Ye(c,(S,_)=>{Ed(g,_,S)})},fr=(o,c)=>{const g=o.dom;Ye(c,(S,_)=>{S.fold(()=>{Ou(g,_)},H=>{Ed(g,_,H)})})},Qa=(o,c)=>{const g=o.dom,_=window.getComputedStyle(g).getPropertyValue(c);return _===""&&!Js(o)?xi(g,c):_},xi=(o,c)=>Wt(o)?o.style.getPropertyValue(c):"",za=(o,c)=>{const g=o.dom,S=xi(g,c);return L.from(S).filter(_=>_.length>0)},Fa=o=>{const c={},g=o.dom;if(Wt(g))for(let S=0;S{const S=zt.fromTag(o);return Po(S,c,g),za(S,c).isSome()},Zo=(o,c)=>{const g=o.dom;Ou(g,c),ln(Ri(o,"style").map(Pt),"")&&sa(o,"style")},li=o=>o.dom.offsetWidth,Ka=(o,c)=>{const g=(ve,Ae)=>{if(!T(Ae)&&!Ae.match(/^[0-9]+$/))throw new Error(o+".set accepts only positive integer values. Value was "+Ae);const Ne=ve.dom;Wt(Ne)&&(Ne.style[o]=Ae+"px")},S=ve=>{const Ae=c(ve);if(Ae<=0||Ae===null){const Ne=Qa(ve,o);return parseFloat(Ne)||0}return Ae},_=S,H=(ve,Ae)=>ke(Ae,(Ne,Ue)=>{const Je=Qa(ve,Ue),st=Je===void 0?0:parseInt(Je,10);return isNaN(st)?Ne:Ne+st},0);return{set:g,get:S,getOuter:_,aggregate:H,max:(ve,Ae,Ne)=>{const Ue=H(ve,Ne);return Ae>Ue?Ae-Ue:0}}},Gf=Ka("height",o=>{const c=o.dom;return Js(o)?c.getBoundingClientRect().height:c.offsetHeight}),Za=o=>Gf.get(o),Vu=o=>Gf.getOuter(o),zu=(o,c)=>{const g=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],S=Gf.max(o,c,g);Po(o,"max-height",S+"px")},_d=(o,c)=>({left:o,top:c,translate:(S,_)=>_d(o+S,c+_)}),Is=_d,Rd=o=>{const c=o.getBoundingClientRect();return Is(c.left,c.top)},Fc=(o,c)=>o!==void 0?o:c!==void 0?c:0,Cl=o=>{const c=o.dom.ownerDocument,g=c.body,S=c.defaultView,_=c.documentElement;if(g===o.dom)return Is(g.offsetLeft,g.offsetTop);const H=Fc(S==null?void 0:S.pageYOffset,_.scrollTop),K=Fc(S==null?void 0:S.pageXOffset,_.scrollLeft),ve=Fc(_.clientTop,g.clientTop),Ae=Fc(_.clientLeft,g.clientLeft);return mh(o).translate(K-Ae,H-ve)},mh=o=>{const c=o.dom,S=c.ownerDocument.body;return S===c?Is(S.offsetLeft,S.offsetTop):Js(o)?Rd(c):Is(0,0)},lm=Ka("width",o=>o.dom.offsetWidth),Vs=(o,c)=>lm.set(o,c),Si=o=>lm.get(o),Tf=o=>lm.getOuter(o),QS=(o,c)=>{const g=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],S=lm.max(o,c,g);Po(o,"max-width",S+"px")},Ya=o=>{let c=!1,g;return(...S)=>(c||(c=!0,g=o.apply(null,S)),g)},kl=(o,c,g,S)=>{const _=o.isiOS()&&/ipad/i.test(g)===!0,H=o.isiOS()&&!_,K=o.isiOS()||o.isAndroid(),ve=K||S("(pointer:coarse)"),Ae=_||!H&&K&&S("(min-device-width:768px)"),Ne=H||K&&!Ae,Ue=c.isSafari()&&o.isiOS()&&/safari/i.test(g)===!1,Je=!Ne&&!Ae&&!Ue;return{isiPad:F(_),isiPhone:F(H),isTablet:F(Ae),isPhone:F(Ne),isTouch:F(ve),isAndroid:o.isAndroid,isiOS:o.isiOS,isWebView:F(Ue),isDesktop:F(Je)}},Zi=(o,c)=>{for(let g=0;g{const g=Zi(o,c);if(!g)return{major:0,minor:0};const S=_=>Number(c.replace(g,"$"+_));return Zu(S(1),S(2))},Np=(o,c)=>{const g=String(c).toLowerCase();return o.length===0?xu():PO(o,g)},xu=()=>Zu(0,0),Zu=(o,c)=>({major:o,minor:c}),Ra={nu:Zu,detect:Np,unknown:xu},Su=(o,c)=>Xe(c.brands,g=>{const S=g.brand.toLowerCase();return Ze(o,_=>{var H;return S===((H=_.brand)===null||H===void 0?void 0:H.toLowerCase())}).map(_=>({current:_.name,version:Ra.nu(parseInt(g.version,10),0)}))}),Al=(o,c)=>{const g=String(c).toLowerCase();return Ze(o,S=>S.search(g))},bc=(o,c)=>Al(o,c).map(g=>{const S=Ra.detect(g.versionRegexes,c);return{current:g.name,version:S}}),Cf=(o,c)=>Al(o,c).map(g=>{const S=Ra.detect(g.versionRegexes,c);return{current:g.name,version:S}}),ci=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,kf=o=>c=>at(c,o),Bp=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:o=>at(o,"edge/")&&at(o,"chrome")&&at(o,"safari")&&at(o,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,ci],search:o=>at(o,"chrome")&&!at(o,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:o=>at(o,"msie")||at(o,"trident")},{name:"Opera",versionRegexes:[ci,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:kf("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:kf("firefox")},{name:"Safari",versionRegexes:[ci,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:o=>(at(o,"safari")||at(o,"mobile/"))&&at(o,"applewebkit")}],Qp=[{name:"Windows",search:kf("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:o=>at(o,"iphone")||at(o,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:kf("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:kf("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:kf("linux"),versionRegexes:[]},{name:"Solaris",search:kf("sunos"),versionRegexes:[]},{name:"FreeBSD",search:kf("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:kf("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ly={browsers:F(Bp),oses:F(Qp)},Xv="Edge",Af="Chromium",Fp="IE",Oc="Opera",Gv="Firefox",cy="Safari",cm=()=>uy({current:void 0,version:Ra.unknown()}),uy=o=>{const c=o.current,g=o.version,S=_=>()=>c===_;return{current:c,version:g,isEdge:S(Xv),isChromium:S(Af),isIE:S(Fp),isOpera:S(Oc),isFirefox:S(Gv),isSafari:S(cy)}},um={unknown:cm,nu:uy,edge:F(Xv),chromium:F(Af),ie:F(Fp),opera:F(Oc),firefox:F(Gv),safari:F(cy)},MO="Windows",gh="iOS",EO="Android",_O="Linux",RO="macOS",fm="Solaris",fy="FreeBSD",Yt="ChromeOS",dm=()=>Hu({current:void 0,version:Ra.unknown()}),Hu=o=>{const c=o.current,g=o.version,S=_=>()=>c===_;return{current:c,version:g,isWindows:S(MO),isiOS:S(gh),isAndroid:S(EO),isMacOS:S(RO),isLinux:S(_O),isSolaris:S(fm),isFreeBSD:S(fy),isChromeOS:S(Yt)}},jv={unknown:dm,nu:Hu,windows:F(MO),ios:F(gh),android:F(EO),linux:F(_O),macos:F(RO),solaris:F(fm),freebsd:F(fy),chromeos:F(Yt)},FS={detect:(o,c,g)=>{const S=ly.browsers(),_=ly.oses(),H=c.bind(Ae=>Su(S,Ae)).orThunk(()=>bc(S,o)).fold(um.unknown,um.nu),K=Cf(_,o).fold(jv.unknown,jv.nu),ve=kl(K,H,o,g);return{browser:H,os:K,deviceType:ve}}},Gs=o=>window.matchMedia(o).matches;let tc=Ya(()=>FS.detect(navigator.userAgent,L.from(navigator.userAgentData),Gs));const jf=()=>tc(),qf=(o,c,g,S,_,H,K)=>({target:o,x:c,y:g,stop:S,prevent:_,kill:H,raw:K}),dy=o=>{const c=zt.fromDom(tu(o).getOr(o.target)),g=()=>o.stopPropagation(),S=()=>o.preventDefault(),_=V(S,g);return qf(c,o.clientX,o.clientY,g,S,_,o)},vg=(o,c)=>g=>{o(g)&&c(dy(g))},ru=(o,c,g,S,_)=>{const H=vg(g,S);return o.dom.addEventListener(c,H,_),{unbind:Q(DO,o,c,H,_)}},yg=(o,c,g,S)=>ru(o,c,g,S,!1),hy=(o,c,g,S)=>ru(o,c,g,S,!0),DO=(o,c,g,S)=>{o.dom.removeEventListener(c,g,S)},Uu=(o,c)=>{Fn(o).each(S=>{S.dom.insertBefore(c.dom,o.dom)})},zp=(o,c)=>{ur(o).fold(()=>{Fn(o).each(_=>{Vc(_,c)})},S=>{Uu(S,c)})},my=(o,c)=>{ko(o).fold(()=>{Vc(o,c)},S=>{o.dom.insertBefore(c.dom,S.dom)})},Vc=(o,c)=>{o.dom.appendChild(c.dom)},ol=(o,c,g)=>{to(o,g).fold(()=>{Vc(o,c)},S=>{Uu(S,c)})},ph=(o,c)=>{pe(c,g=>{Vc(o,g)})},bg=o=>{o.dom.textContent="",pe(qr(o),c=>{xc(c)})},xc=o=>{const c=o.dom;c.parentNode!==null&&c.parentNode.removeChild(c)},Pl=o=>{const c=o!==void 0?o.dom:document,g=c.body.scrollLeft||c.documentElement.scrollLeft,S=c.body.scrollTop||c.documentElement.scrollTop;return Is(g,S)},Wu=(o,c,g)=>{const _=(g!==void 0?g.dom:document).defaultView;_&&_.scrollTo(o,c)},$O=o=>{const c=o===void 0?window:o;return jf().browser.isFirefox()?L.none():L.from(c.visualViewport)},Zp=(o,c,g,S)=>({x:o,y:c,width:g,height:S,right:o+g,bottom:c+S}),gy=o=>{const c=o===void 0?window:o,g=c.document,S=Pl(zt.fromDom(g));return $O(c).fold(()=>{const _=c.document.documentElement,H=_.clientWidth,K=_.clientHeight;return Zp(S.left,S.top,H,K)},_=>Zp(Math.max(_.pageLeft,S.left),Math.max(_.pageTop,S.top),_.width,_.height))},qv=()=>zt.fromDom(document),Pf=(o,c)=>o.view(c).fold(F([]),S=>{const _=o.owner(S),H=Pf(o,_);return[S].concat(H)}),LO=(o,c)=>{const g=c.owner(o),S=Pf(c,g);return L.some(S)};var VS=Object.freeze({__proto__:null,view:o=>{var c;return(o.dom===document?L.none():L.from((c=o.dom.defaultView)===null||c===void 0?void 0:c.frameElement)).map(zt.fromDom)},owner:o=>Tn(o)});const Hp=o=>{const c=qv(),g=Pl(c);return LO(o,VS).fold(Q(Cl,o),_=>{const H=mh(o),K=Le(_,(ve,Ae)=>{const Ne=mh(Ae);return{left:ve.left+Ne.left,top:ve.top+Ne.top}},{left:0,top:0});return Is(K.left+H.left+g.left,K.top+H.top+g.top)})},Kv=(o,c,g)=>({point:o,width:c,height:g}),vh=(o,c,g,S)=>({x:o,y:c,width:g,height:S}),Ja=(o,c,g,S)=>({x:o,y:c,width:g,height:S,right:o+g,bottom:c+S}),ui=o=>{const c=Cl(o),g=Tf(o),S=Vu(o);return Ja(c.left,c.top,g,S)},wu=o=>{const c=Hp(o),g=Tf(o),S=Vu(o);return Ja(c.left,c.top,g,S)},py=(o,c)=>{const g=Math.max(o.x,c.x),S=Math.max(o.y,c.y),_=Math.min(o.right,c.right),H=Math.min(o.bottom,c.bottom),K=_-g,ve=H-S;return Ja(g,S,K,ve)},IO=(o,c)=>ke(c,(g,S)=>py(g,S),o),Vl=()=>gy(window);var Og=tinymce.util.Tools.resolve("tinymce.ThemeManager");const Sc=o=>{const c=H=>H(o),g=F(o),S=()=>_,_={tag:!0,inner:o,fold:(H,K)=>K(o),isValue:ie,isError:Y,map:H=>jo.value(H(o)),mapError:S,bind:c,exists:c,forall:c,getOr:g,or:S,getOrThunk:g,orThunk:S,getOrDie:g,each:H=>{H(o)},toOptional:()=>L.some(o)};return _},Mf=o=>{const c=()=>g,g={tag:!1,inner:o,fold:(S,_)=>S(o),isValue:Y,isError:ie,map:c,mapError:S=>jo.error(S(o)),bind:c,exists:Y,forall:ie,getOr:z,or:z,getOrThunk:W,orThunk:W,getOrDie:E(String(o)),each:M,toOptional:L.none};return g},jo={value:Sc,error:Mf,fromOption:(o,c)=>o.fold(()=>Mf(c),Sc)};var zc;(function(o){o[o.Error=0]="Error",o[o.Value=1]="Value"})(zc||(zc={}));const yh=(o,c,g)=>o.stype===zc.Error?c(o.serror):g(o.svalue),hm=o=>{const c=[],g=[];return pe(o,S=>{yh(S,_=>g.push(_),_=>c.push(_))}),{values:c,errors:g}},yy=(o,c)=>o.stype===zc.Error?{stype:zc.Error,serror:c(o.serror)}:o,by=(o,c)=>o.stype===zc.Value?{stype:zc.Value,svalue:c(o.svalue)}:o,nc=(o,c)=>o.stype===zc.Value?c(o.svalue):o,wi=(o,c)=>o.stype===zc.Error?c(o.serror):o,ou=o=>({stype:zc.Value,svalue:o}),Hi=o=>({stype:zc.Error,serror:o}),Ti={fromResult:o=>o.fold(Hi,ou),toResult:o=>yh(o,jo.error,jo.value),svalue:ou,partition:hm,serror:Hi,bind:nc,bindError:wi,map:by,mapError:yy,fold:yh},Ui=(o,c,g,S)=>({tag:"field",key:o,newKey:c,presence:g,prop:S}),Yu=(o,c)=>({tag:"custom",newKey:o,instantiator:c}),mm=(o,c,g)=>{switch(o.tag){case"field":return c(o.key,o.newKey,o.presence,o.prop);case"custom":return g(o.newKey,o.instantiator)}},Ci=(o,c)=>c,xg=(o,c)=>p(o)&&p(c)?Ta(o,c):c,Up=o=>(...c)=>{if(c.length===0)throw new Error("Can't merge zero objects");const g={};for(let S=0;S({tag:"required",process:{}}),Ef=o=>({tag:"defaultedThunk",process:o}),xy=o=>Ef(F(o)),Wp=()=>({tag:"option",process:{}}),hs=o=>({tag:"mergeWithThunk",process:o}),gm=o=>hs(F(o)),e0=(o,c)=>o.length>0?Ti.svalue(Ta(c,bh.apply(void 0,o))):Ti.svalue(c),Yp=o=>V(Ti.serror,Ie)(o),Sy={consolidateObj:(o,c)=>{const g=Ti.partition(o);return g.errors.length>0?Yp(g.errors):e0(g.values,c)},consolidateArr:o=>{const c=Ti.partition(o);return c.errors.length>0?Yp(c.errors):Ti.svalue(c.values)}},pm=o=>u(o)&&ct(o).length>100?" removed due to size":JSON.stringify(o,null,2),t0=o=>{const c=o.length>10?o.slice(0,10).concat([{path:[],getErrorInfo:F("... (only showing first ten failures)")}]):o;return ne(c,g=>"Failed path: ("+g.path.join(" > ")+`) +`+g.getErrorInfo())},vm=(o,c)=>Ti.serror([{path:o,getErrorInfo:c}]),Sg=(o,c,g)=>vm(o,()=>'Could not find valid *required* value for "'+c+'" in '+pm(g)),NO=(o,c)=>vm(o,()=>'Choice schema did not contain choice key: "'+c+'"'),Xu=(o,c,g)=>vm(o,()=>'The chosen schema: "'+g+'" did not exist in branches: '+pm(c)),BO=(o,c)=>vm(o,()=>"There are unsupported fields: ["+c.join(", ")+"] specified"),ym=(o,c)=>vm(o,F(c)),Tu=o=>{const c=(S,_)=>Ti.bindError(o(_),H=>ym(S,H)),g=F("val");return{extract:c,toString:g}},n0=Tu(Ti.svalue),wy=(o,c,g,S)=>Bt(c,g).fold(()=>Sg(o,g,c),S),wg=(o,c,g,S)=>{const _=Bt(o,c).getOrThunk(()=>g(o));return S(_)},Ty=(o,c,g)=>g(Bt(o,c)),Cy=(o,c,g,S)=>{const _=Bt(o,c).map(H=>H===!0?g(o):H);return S(_)},ky=(o,c,g,S,_)=>{const H=ve=>_.extract(c.concat([S]),ve),K=ve=>ve.fold(()=>Ti.svalue(L.none()),Ae=>{const Ne=_.extract(c.concat([S]),Ae);return Ti.map(Ne,L.some)});switch(o.tag){case"required":return wy(c,g,S,H);case"defaultedThunk":return wg(g,S,o.process,H);case"option":return Ty(g,S,K);case"defaultedOptionThunk":return Cy(g,S,o.process,K);case"mergeWithThunk":return wg(g,S,F({}),ve=>{const Ae=Ta(o.process(g),ve);return H(Ae)})}},r0=(o,c,g)=>{const S={},_=[];for(const H of g)mm(H,(K,ve,Ae,Ne)=>{const Ue=ky(Ae,o,c,K,Ne);Ti.fold(Ue,Je=>{_.push(...Je)},Je=>{S[ve]=Je})},(K,ve)=>{S[K]=ve(c)});return _.length>0?Ti.serror(_):Ti.svalue(S)},sl=o=>({extract:(S,_)=>o().extract(S,_),toString:()=>o().toString()}),Xp=o=>ct(wt(o,C)),ca=o=>{const c=uo(o),g=Le(o,(_,H)=>mm(H,K=>Ta(_,{[K]:!0}),F(_)),{});return{extract:(_,H)=>{const K=b(H)?[]:Xp(H),ve=xe(K,Ae=>!En(g,Ae));return ve.length===0?c.extract(_,H):BO(_,ve)},toString:c.toString}},uo=o=>({extract:(S,_)=>r0(S,_,o),toString:()=>`obj{ +`+ne(o,_=>mm(_,(H,K,ve,Ae)=>H+" -> "+Ae.toString(),(H,K)=>"state("+H+")")).join(` +`)+"}"}),Gu=o=>({extract:(S,_)=>{const H=ne(_,(K,ve)=>o.extract(S.concat(["["+ve+"]"]),K));return Sy.consolidateArr(H)},toString:()=>"array("+o.toString()+")"}),Xr=(o,c)=>{const g=c!==void 0?c:z;return{extract:(H,K)=>{const ve=[];for(const Ae of o){const Ne=Ae.extract(H,K);if(Ne.stype===zc.Value)return{stype:zc.Value,svalue:g(Ne.svalue)};ve.push(Ne)}return Sy.consolidateArr(ve)},toString:()=>"oneOf("+ne(o,H=>H.toString()).join(", ")+")"}},zl=(o,c)=>{const g=(H,K)=>Gu(Tu(o)).extract(H,K);return{extract:(H,K)=>{const ve=ct(K),Ae=g(H,ve);return Ti.bind(Ae,Ne=>{const Ue=ne(Ne,Je=>Ui(Je,Je,Ks(),c));return uo(Ue).extract(H,K)})},toString:()=>"setOf("+c.toString()+")"}},HS=(o,c)=>{const g=Ya(c);return{extract:(H,K)=>g().extract(H,K),toString:()=>g().toString()}},Dd=V(Gu,uo),vi=F(n0),$d=(o,c)=>Tu(g=>{const S=typeof g;return o(g)?Ti.svalue(g):Ti.serror(`Expected type: ${c} but got: ${S}`)}),Gp=$d(T,"number"),al=$d(m,"string"),_f=$d(b,"boolean"),bm=$d(w,"function"),ju=o=>{if(Object(o)!==o)return!0;switch({}.toString.call(o).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(o).every(c=>ju(o[c]));default:return!1}},Ay=Tu(o=>ju(o)?Ti.svalue(o):Ti.serror("Expected value to be acceptable for sending via postMessage")),o0=(o,c,g,S)=>Bt(g,S).fold(()=>Xu(o,g,S),H=>H.extract(o.concat(["branch: "+S]),c)),lr=(o,c)=>({extract:(_,H)=>Bt(H,o).fold(()=>NO(_,o),ve=>o0(_,H,c,ve)),toString:()=>"chooseOn("+o+"). Possible values: "+ct(c)}),QO=()=>Gu(n0),Ml=o=>Tu(c=>o(c).fold(Ti.serror,Ti.svalue)),Kf=(o,c)=>zl(g=>Ti.fromResult(o(g)),c),Tg=(o,c,g)=>{const S=c.extract([o],g);return Ti.mapError(S,_=>({input:g,errors:_}))},da=(o,c,g)=>Ti.toResult(Tg(o,c,g)),aa=o=>o.fold(c=>{throw new Error(Zl(c))},z),El=(o,c,g)=>aa(da(o,c,g)),Zl=o=>`Errors: +`+t0(o.errors).join(` +`)+` + +Input object: `+pm(o.input),Os=(o,c)=>lr(o,je(c,uo)),jp=(o,c)=>HS(o,c),il=Ui,ei=Yu,qp=o=>Ml(c=>be(o,c)?jo.value(c):jo.error(`Unsupported value: "${c}", choose one of "${o.join(", ")}".`)),er=o=>il(o,o,Ks(),vi()),Zc=(o,c)=>il(o,o,Ks(),c),Cg=o=>Zc(o,Gp),zs=o=>Zc(o,al),Rf=(o,c)=>il(o,o,Ks(),qp(c)),US=o=>Zc(o,_f),qu=o=>Zc(o,bm),s0=(o,c)=>il(o,o,Wp(),Tu(g=>Ti.serror("The field: "+o+" is forbidden. "+c))),su=(o,c)=>il(o,o,Ks(),uo(c)),a0=(o,c)=>il(o,o,Ks(),Dd(c)),rc=(o,c)=>il(o,o,Ks(),Gu(c)),Ws=o=>il(o,o,Wp(),vi()),au=(o,c)=>il(o,o,Wp(),c),fi=o=>au(o,Gp),ll=o=>au(o,al),Ld=(o,c)=>au(o,qp(c)),Jf=o=>au(o,bm),Id=(o,c)=>au(o,Gu(c)),wc=(o,c)=>au(o,uo(c)),ed=(o,c)=>au(o,ca(c)),Mn=(o,c)=>il(o,o,xy(c),vi()),Tc=(o,c,g)=>il(o,o,xy(c),g),td=(o,c)=>Tc(o,c,Gp),nd=(o,c)=>Tc(o,c,al),Hc=(o,c,g)=>Tc(o,c,qp(g)),Wi=(o,c)=>Tc(o,c,_f),Di=(o,c)=>Tc(o,c,bm),qC=(o,c)=>Tc(o,c,Ay),Cc=(o,c,g)=>Tc(o,c,Gu(g)),D=(o,c,g)=>Tc(o,c,uo(g)),X=o=>{let c=o;return{get:()=>c,set:_=>{c=_}}},we={generate:o=>{if(!v(o))throw new Error("cases must be an array");if(o.length===0)throw new Error("there must be at least one case");const c=[],g={};return pe(o,(S,_)=>{const H=ct(S);if(H.length!==1)throw new Error("one and only one name per case");const K=H[0],ve=S[K];if(g[K]!==void 0)throw new Error("duplicate key detected:"+K);if(K==="cata")throw new Error("cannot have a case named cata (sorry)");if(!v(ve))throw new Error("case arguments must be an array");c.push(K),g[K]=(...Ae)=>{const Ne=Ae.length;if(Ne!==ve.length)throw new Error("Wrong number of arguments to case "+K+". Expected "+ve.length+" ("+ve+"), got "+Ne);return{fold:(...Je)=>{if(Je.length!==o.length)throw new Error("Wrong number of arguments to fold. Expected "+o.length+", got "+Je.length);return Je[_].apply(null,Ae)},match:Je=>{const st=ct(Je);if(c.length!==st.length)throw new Error("Wrong number of arguments to match. Expected: "+c.join(",")+` +Actual: `+st.join(","));if(!ye(c,At=>be(st,At)))throw new Error("Not all branches were specified when using match. Specified: "+st.join(", ")+` +Required: `+c.join(", "));return Je[K].apply(null,Ae)},log:Je=>{console.log(Je,{constructors:c,constructor:K,params:Ae})}}}}),g}};we.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const Pe=o=>{const c=[],g=[];return pe(o,S=>{S.fold(_=>{c.push(_)},_=>{g.push(_)})}),{errors:c,values:g}},Re=(o,c)=>{const g={};return Ye(o,(S,_)=>{be(c,_)||(g[_]=S)}),g},Ke=(o,c)=>({[o]:c}),We=o=>{const c={};return pe(o,g=>{c[g.key]=g.value}),c},rt=(o,c)=>Re(o,c),vt=(o,c)=>Ke(o,c),bt=o=>We(o),Zt=(o,c)=>o.length===0?jo.value(c):jo.value(Ta(c,bh.apply(void 0,o))),Ut=o=>jo.error(Ie(o)),gn=(o,c)=>{const g=Pe(o);return g.errors.length>0?Ut(g.errors):Zt(g.values,c)},An=o=>w(o)?o:Y,jt=(o,c,g)=>{let S=o.dom;const _=An(g);for(;S.parentNode;){S=S.parentNode;const H=zt.fromDom(S),K=c(H);if(K.isSome())return K;if(_(H))break}return L.none()},tn=(o,c,g)=>{const S=c(o),_=An(g);return S.orThunk(()=>_(o)?L.none():jt(o,c,_))},hn=(o,c)=>Jt(o.element,c.event.target),_n={can:ie,abort:Y,run:M},Pn=o=>{if(!En(o,"can")&&!En(o,"abort")&&!En(o,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(o,null,2)+" does not have can, abort, or run!");return{..._n,...o}},yn=(o,c)=>(...g)=>ke(o,(S,_)=>S&&c(_).apply(void 0,g),!0),cr=(o,c)=>(...g)=>ke(o,(S,_)=>S||c(_).apply(void 0,g),!1),Zr=o=>w(o)?{can:ie,abort:Y,run:o}:o,Jr=o=>{const c=yn(o,_=>_.can),g=cr(o,_=>_.abort);return{can:c,abort:g,run:(..._)=>{pe(o,H=>{H.run.apply(void 0,_)})}}},Ar=F,no=Ar("touchstart"),fo=Ar("touchmove"),ts=Ar("touchend"),xo=Ar("touchcancel"),go=Ar("mousedown"),js=Ar("mousemove"),ti=Ar("mouseout"),ba=Ar("mouseup"),Lr=Ar("mouseover"),Do=Ar("focusin"),ms=Ar("focusout"),_s=Ar("keydown"),Ba=Ar("keyup"),di=Ar("input"),Yi=Ar("change"),$i=Ar("click"),Uc=Ar("transitioncancel"),Ki=Ar("transitionend"),kc=Ar("transitionstart"),Hl=Ar("selectstart"),ea=o=>F("alloy."+o),Ku={tap:ea("tap")},Df=ea("focus"),Ul=ea("blur.post"),Li=ea("paste.post"),Wl=ea("receive"),Ii=ea("execute"),ta=ea("focus.item"),Ac=Ku.tap,Nd=ea("longpress"),Ju=ea("sandbox.close"),Om=ea("typeahead.cancel"),Bd=ea("system.init"),Py=ea("system.touchmove"),FO=ea("system.touchend"),Oh=ea("system.scroll"),Qd=ea("system.resize"),ef=ea("system.attached"),kg=ea("system.detached"),Ag=ea("system.dismissRequested"),KC=ea("system.repositionRequested"),VO=ea("focusmanager.shifted"),My=ea("slotcontainer.visibility"),zO=ea("system.external.element.scroll"),JC=ea("change.tab"),ZO=ea("dismiss.tab"),Ey=ea("highlight"),_y=ea("dehighlight"),ks=(o,c)=>{Ry(o,o.element,c,{})},vo=(o,c,g)=>{Ry(o,o.element,c,g)},xm=o=>{ks(o,Ii())},HO=(o,c,g)=>{Ry(o,c,g,{})},Ry=(o,c,g,S)=>{const _={target:c,...S};o.getSystem().triggerEvent(g,c,_)},EM=(o,c,g,S)=>{const _={...S,target:c};o.getSystem().triggerEvent(g,c,_)},WS=(o,c,g,S)=>{o.getSystem().triggerEvent(g,c,S.event)},Ea=o=>bt(o),YS=(o,c)=>({key:o,value:Pn({abort:c})}),XS=(o,c)=>({key:o,value:Pn({can:c})}),GS=o=>({key:o,value:Pn({run:(c,g)=>{g.event.prevent()}})}),qn=(o,c)=>({key:o,value:Pn({run:c})}),UO=(o,c,g)=>({key:o,value:Pn({run:(S,_)=>{c.apply(void 0,[S,_].concat(g))}})}),_M=o=>c=>qn(o,c),Dy=o=>c=>({key:o,value:Pn({run:(g,S)=>{hn(g,S)&&c(g,S)}})}),RM=(o,c)=>qn(o,(g,S)=>{g.getSystem().getByUid(c).each(_=>{WS(_,_.element,o,S)})}),i0=(o,c,g)=>{const S=c.partUids[g];return RM(o,S)},jS=(o,c)=>qn(o,(g,S)=>{const _=S.event,H=g.getSystem().getByDom(_.target).getOrThunk(()=>tn(_.target,ve=>g.getSystem().getByDom(ve).toOptional(),Y).getOr(g));c(g,H,S)}),Sm=o=>qn(o,(c,g)=>{g.cut()}),DM=o=>qn(o,(c,g)=>{g.stop()}),xh=(o,c)=>Dy(o)(c),Ca=Dy(ef()),Sh=Dy(kg()),qS=Dy(Bd()),rd=_M(Ii()),wm=(o,c)=>{const S=(c||document).createElement("div");return S.innerHTML=o,qr(zt.fromDom(S))},KS=o=>o.dom.innerHTML,Kp=(o,c)=>{const S=Tn(o).dom,_=zt.fromDom(S.createDocumentFragment()),H=wm(c,S);ph(_,H),bg(o),Vc(o,_)},ek=o=>{const c=zt.fromTag("div"),g=zt.fromDom(o.dom.cloneNode(!0));return Vc(c,g),KS(c)},WO=(o,c)=>zt.fromDom(o.dom.cloneNode(c)),JS=o=>WO(o,!1),$M=o=>WO(o,!0),ew=o=>{if(Ko(o))return"#shadow-root";{const c=JS(o);return ek(c)}},wh=o=>ew(o),j$=(o,c,g)=>Jt(c,o.element)&&!Jt(c,g),tw=Ea([XS(Df(),(o,c)=>{const g=c.event,S=g.originator,_=g.target;return j$(o,S,_)?(console.warn(Df()+` did not get interpreted by the desired target. +Originator: `+wh(S)+` +Target: `+wh(_)+` +Check the `+Df()+" event handlers"),!1):!0})]);var Pg=Object.freeze({__proto__:null,events:tw});let Yl=0;const Kr=o=>{const g=new Date().getTime(),S=Math.floor(Math.random()*1e9);return Yl++,o+"_"+S+Yl+String(g)},LM=F("alloy-id-"),nw=F("data-alloy-id"),IM=LM(),tk=nw(),Jp=(o,c)=>{const g=Kr(IM+o);return l0(c,g),g},l0=(o,c)=>{Object.defineProperty(o.dom,tk,{value:c,writable:!0})},$y=o=>{const c=St(o)?o.dom[tk]:null;return L.from(c)},c0=o=>Kr(o),YO=z,Tm=o=>{const c=_=>`The component must be in a context to execute: ${_}`+(o?` +`+wh(o().element)+" is not in context.":""),g=_=>()=>{throw new Error(c(_))},S=_=>()=>{console.warn(c(_))};return{debugInfo:F("fake"),triggerEvent:S("triggerEvent"),triggerFocus:S("triggerFocus"),triggerEscape:S("triggerEscape"),broadcast:S("broadcast"),broadcastOn:S("broadcastOn"),broadcastEvent:S("broadcastEvent"),build:g("build"),buildOrPatch:g("buildOrPatch"),addToWorld:g("addToWorld"),removeFromWorld:g("removeFromWorld"),addToGui:g("addToGui"),removeFromGui:g("removeFromGui"),getByUid:g("getByUid"),getByDom:g("getByDom"),isConnected:Y}},Fd=Tm(),Ly=(o,c,g)=>{const S=g.toString(),_=S.indexOf(")")+1,H=S.indexOf("("),K=S.substring(H+1,_-1).split(/,\s*/);return o.toFunctionAnnotation=()=>({name:c,parameters:$f(K.slice(0,1).concat(K.slice(3)))}),o},$f=o=>ne(o,c=>mt(c,"/*")?c.substring(0,c.length-2):c),XO=(o,c)=>{const g=o.toString(),S=g.indexOf(")")+1,_=g.indexOf("("),H=g.substring(_+1,S-1).split(/,\s*/);return o.toFunctionAnnotation=()=>({name:c,parameters:$f(H)}),o},nk=(o,c)=>{const g=c.toString(),S=g.indexOf(")")+1,_=g.indexOf("("),H=g.substring(_+1,S-1).split(/,\s*/);return o.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:$f(H.slice(1))}),o},u0=Kr("alloy-premade"),Cm=o=>(Object.defineProperty(o.element.dom,u0,{value:o.uid,writable:!0}),vt(u0,o)),NM=o=>vn(o.dom,u0),f0=o=>Bt(o,u0),ev=o=>nk((c,...g)=>o(c.getApis(),c,...g),o),od={init:()=>Cu({readState:F("No State required")})},Cu=o=>o,BM=(o,c)=>{const g=ne(c,_=>wc(_.name(),[er("config"),Mn("state",od)])),S=da("component.behaviours",uo(g),o.behaviours).fold(_=>{throw new Error(Zl(_)+` +Complete spec: +`+JSON.stringify(o,null,2))},z);return{list:c,data:je(S,_=>{const H=_.map(K=>({config:K.config,state:K.state.init(K.config)}));return F(H)})}},rk=o=>o.list,ok=o=>o.data,rw=(o,c)=>{const g={};return Ye(o,(S,_)=>{Ye(S,(H,K)=>{const ve=Bt(g,K).getOr([]);g[K]=ve.concat([c(_,H)])})}),g},ku=o=>({classes:x(o.classes)?[]:o.classes,attributes:x(o.attributes)?{}:o.attributes,styles:x(o.styles)?{}:o.styles}),d0=(o,c)=>({...o,attributes:{...o.attributes,...c.attributes},styles:{...o.styles,...c.styles},classes:o.classes.concat(c.classes)}),GO=(o,c,g,S)=>{const _={...c};pe(g,Ue=>{_[Ue.name()]=Ue.exhibit(o,S)});const H=rw(_,(Ue,Je)=>({name:Ue,modification:Je})),K=Ue=>Le(Ue,(Je,st)=>({...st.modification,...Je}),{}),ve=Le(H.classes,(Ue,Je)=>Je.modification.concat(Ue),[]),Ae=K(H.attributes),Ne=K(H.styles);return ku({classes:ve,attributes:Ae,styles:Ne})},jO=(o,c,g,S)=>{try{const _=Se(g,(H,K)=>{const ve=H[c],Ae=K[c],Ne=S.indexOf(ve),Ue=S.indexOf(Ae);if(Ne===-1)throw new Error("The ordering for "+o+" does not have an entry for "+ve+`. +Order specified: `+JSON.stringify(S,null,2));if(Ue===-1)throw new Error("The ordering for "+o+" does not have an entry for "+Ae+`. +Order specified: `+JSON.stringify(S,null,2));return Ne({handler:o,purpose:c}),sk=(o,c)=>({cHandler:o,purpose:c}),ow=(o,c)=>sk(Q.apply(void 0,[o.handler].concat(c)),o.purpose),h0=o=>o.cHandler,m0=(o,c)=>({name:o,handler:c}),qO=(o,c)=>{const g={};return pe(o,S=>{g[S.name()]=S.handlers(c)}),g},FM=(o,c,g)=>{const S={...g,...qO(c,o)};return rw(S,m0)},KO=(o,c,g,S)=>{const _=FM(o,g,S);return sw(_,c)},g0=o=>{const c=Zr(o);return(g,S,..._)=>{const H=[g,S].concat(_);c.abort.apply(void 0,H)?S.stop():c.can.apply(void 0,H)&&c.run.apply(void 0,H)}},VM=(o,c)=>jo.error(["The event ("+o+`) has more than one behaviour that listens to it. +When this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]). +The behaviours that can trigger it are: `+JSON.stringify(ne(c,g=>g.name),null,2)]),Iy=(o,c,g)=>{const S=c[g];return S?jO("Event: "+g,"name",o,S).map(_=>{const H=ne(_,K=>K.handler);return Jr(H)}):VM(g,o)},sw=(o,c)=>{const g=Xt(o,(S,_)=>(S.length===1?jo.value(S[0].handler):Iy(S,c,_)).map(K=>{const ve=g0(K),Ae=S.length>1?xe(c[_],Ne=>Te(S,Ue=>Ue.name===Ne)).join(" > "):S[0].name;return vt(_,QM(ve,Ae))}));return gn(g,{})},Au="alloy.base.behaviour",JO=uo([il("dom","dom",Ks(),uo([er("tag"),Mn("styles",{}),Mn("classes",[]),Mn("attributes",{}),Ws("value"),Ws("innerHtml")])),er("components"),er("uid"),Mn("events",{}),Mn("apis",{}),il("eventOrder","eventOrder",gm({[Ii()]:["disabling",Au,"toggling","typeaheadevents"],[Df()]:[Au,"focusing","keying"],[Bd()]:[Au,"disabling","toggling","representing"],[di()]:[Au,"representing","streaming","invalidating"],[kg()]:[Au,"representing","item-events","tooltipping"],[go()]:["focusing",Au,"item-type-events"],[no()]:["focusing",Au,"item-type-events"],[Lr()]:["item-type-events","tooltipping"],[Wl()]:["receiving","reflecting","tooltipping"]}),vi()),Ws("domModification")]),ak=o=>da("custom.definition",JO,o),ex=o=>({...o.dom,uid:o.uid,domChildren:ne(o.components,c=>c.element)}),q$=o=>o.domModification.fold(()=>ku({}),ku),tx=o=>o.events,Mg=(o,c)=>{const g=oa(o,c);return g===void 0||g===""?[]:g.split(" ")},Th=(o,c,g)=>{const _=Mg(o,c).concat([g]);return Dr(o,c,_.join(" ")),!0},aw=(o,c,g)=>{const S=xe(Mg(o,c),_=>_!==g);return S.length>0?Dr(o,c,S.join(" ")):sa(o,c),!1},p0=o=>o.dom.classList!==void 0,nx=o=>Mg(o,"class"),ik=(o,c)=>Th(o,"class",c),Da=(o,c)=>aw(o,"class",c),zM=(o,c)=>be(nx(o),c)?Da(o,c):ik(o,c),ki=(o,c)=>{p0(o)?o.dom.classList.add(c):ik(o,c)},lk=o=>{(p0(o)?o.dom.classList:nx(o)).length===0&&sa(o,"class")},Xa=(o,c)=>{p0(o)?o.dom.classList.remove(c):Da(o,c),lk(o)},v0=(o,c)=>{const g=p0(o)?o.dom.classList.toggle(c):zM(o,c);return lk(o),g},Ji=(o,c)=>p0(o)&&o.dom.classList.contains(c),ni=(o,c)=>{pe(c,g=>{ki(o,g)})},tf=(o,c)=>{pe(c,g=>{Xa(o,g)})},iw=(o,c)=>{pe(c,g=>{v0(o,g)})},Xl=(o,c)=>ye(c,g=>Ji(o,g)),Ny=o=>{const c=o.dom.classList,g=new Array(c.length);for(let S=0;Sp0(o)?Ny(o):nx(o),Ch=o=>o.dom.value,b0=(o,c)=>{if(c===void 0)throw new Error("Value.set was undefined");o.dom.value=c},Eg=(o,c,g)=>to(o,c).map(_=>{if(g.exists(K=>!Jt(K,_))){const K=g.map(Oo).getOr("span"),ve=zt.fromTag(K);return Uu(_,ve),ve}else return _}),km=(o,c,g)=>{g.fold(()=>Vc(o,c),S=>{Jt(S,c)||(Uu(S,c),xc(S))})},ZM=(o,c,g)=>{const S=ne(c,g),_=qr(o);return pe(_.slice(S.length),xc),S},ck=(o,c,g,S)=>{const _=to(o,c),H=S(g,_),K=Eg(o,c,_);return km(o,H.element,K),H},K$=(o,c,g)=>ZM(o,c,(S,_)=>ck(o,_,S,g)),J$=(o,c)=>ZM(o,c,(g,S)=>{const _=to(o,S);return km(o,g,_),g}),sd=(o,c)=>{const g=ct(o),S=ct(c),_=se(S,g),H=tt(o,(K,ve)=>!vn(c,ve)||K!==c[ve]).t;return{toRemove:_,toSet:H}},Pc=(o,c)=>{const{class:g,style:S,..._}=bu(c),{toSet:H,toRemove:K}=sd(o.attributes,_),ve=()=>{pe(K,kn=>sa(c,kn)),yc(c,H)},Ae=Fa(c),{toSet:Ne,toRemove:Ue}=sd(o.styles,Ae),Je=()=>{pe(Ue,kn=>Zo(c,kn)),zi(c,Ne)},st=y0(c),ht=se(st,o.classes),At=se(o.classes,st),qt=()=>{ni(c,At),tf(c,ht)},Dn=kn=>{Kp(c,kn)},mn=()=>{const kn=o.domChildren;J$(c,kn)},on=()=>{const kn=c,Zn=o.value.getOrUndefined();Zn!==Ch(kn)&&b0(kn,Zn??"")};return ve(),qt(),Je(),o.innerHtml.fold(mn,Dn),on(),c},HM=o=>{const c=zt.fromTag(o.tag);yc(c,o.attributes),ni(c,o.classes),zi(c,o.styles),o.innerHtml.each(S=>Kp(c,S));const g=o.domChildren;return ph(c,g),o.value.each(S=>{b0(c,S)}),c},UM=(o,c)=>{try{const g=Pc(o,c);return L.some(g)}catch{return L.none()}},_g=o=>o.innerHtml.isSome()&&o.domChildren.length>0,By=(o,c)=>{const g=_=>Oo(_)===o.tag&&!_g(o)&&!NM(_),S=c.filter(g).bind(_=>UM(o,_)).getOrThunk(()=>HM(o));return l0(S,o.uid),S},rx=o=>{const c=Bt(o,"behaviours").getOr({});return re(ct(c),g=>{const S=c[g];return C(S)?[S.me]:[]})},ox=(o,c)=>BM(o,c),kh=o=>{const c=rx(o);return ox(o,c)},O0=(o,c,g)=>{const S=ex(o),_=q$(o),H={"alloy.base.modification":_},K=c.length>0?GO(g,H,c,S):_;return d0(S,K)},x0=(o,c,g)=>{const S={"alloy.base.behaviour":tx(o)};return KO(g,o.eventOrder,c,S).getOrDie()},S0=(o,c)=>{const g=()=>kn,S=X(Fd),_=aa(ak(o)),H=kh(o),K=rk(H),ve=ok(H),Ae=O0(_,K,ve),Ne=By(Ae,c),Ue=x0(_,K,ve),Je=X(_.components),st=Zn=>{S.set(Zn)},ht=()=>{S.set(Tm(g))},At=()=>{const Zn=qr(Ne),mr=re(Zn,Gn=>S.get().getByDom(Gn).fold(()=>[],oe));Je.set(mr)},qt=Zn=>{const mr=ve;return(w(mr[Zn.name()])?mr[Zn.name()]:()=>{throw new Error("Could not find "+Zn.name()+" in "+JSON.stringify(o,null,2))})()},Dn=Zn=>w(ve[Zn.name()]),mn=()=>_.apis,on=Zn=>ve[Zn]().map(mr=>mr.state.readState()).getOr("not enabled"),kn={uid:o.uid,getSystem:S.get,config:qt,hasConfigured:Dn,spec:o,readState:on,getApis:mn,connect:st,disconnect:ht,element:Ne,syncComponents:At,components:Je.get,events:Ue};return kn},tv=(o,c)=>{const g=Bt(o,"components").getOr([]);return c.fold(()=>ne(g,oc),S=>ne(g,(_,H)=>sx(_,to(S,H))))},uk=(o,c)=>{const{events:g,...S}=YO(o),_=tv(S,c),H={...S,events:{...Pg,...g},components:_};return jo.value(S0(H,c))},yi=o=>{const c=zt.fromText(o);return fk({element:c})},fk=o=>{const c=El("external.component",ca([er("element"),Ws("uid")]),o),g=X(Tm()),S=ve=>{g.set(ve)},_=()=>{g.set(Tm(()=>K))},H=c.uid.getOrThunk(()=>c0("external"));l0(c.element,H);const K={uid:H,getSystem:g.get,config:L.none,hasConfigured:Y,connect:S,disconnect:_,getApis:()=>({}),element:c.element,spec:o,readState:F("No state"),syncComponents:M,components:F([]),events:{}};return Cm(K)},w0=c0,dk=o=>vn(o,"uid"),sx=(o,c)=>f0(o).getOrThunk(()=>{const g=dk(o)?o:{uid:w0(""),...o};return uk(g,c).getOrDie()}),oc=o=>sx(o,L.none()),nf=Cm;var hk=(o,c,g,S,_)=>o(g,S)?L.some(g):w(_)&&_(g)?L.none():c(g,S,_);const ax=(o,c,g)=>{let S=o.dom;const _=w(g)?g:Y;for(;S.parentNode;){S=S.parentNode;const H=zt.fromDom(S);if(c(H))return L.some(H);if(_(H))break}return L.none()},nv=(o,c,g)=>hk((_,H)=>H(_),ax,o,c,g),WM=(o,c)=>{const g=_=>c(zt.fromDom(_));return Ze(o.dom.childNodes,g).map(zt.fromDom)},mk=(o,c)=>{const g=S=>{for(let _=0;_nv(o,c,g).isSome(),Pu=(o,c,g)=>ax(o,S=>$t(S,c),g),ix=(o,c)=>WM(o,g=>$t(g,c)),Ai=(o,c)=>un(c,o),Vd=(o,c,g)=>hk((_,H)=>$t(_,H),Pu,o,c,g),T0="aria-controls",Rg=o=>nv(o,g=>{if(!St(g))return!1;const S=oa(g,"id");return S!==void 0&&S.indexOf(T0)>-1}).bind(g=>{const S=oa(g,"id"),_=es(g);return Ai(_,`[${T0}="${S}"]`)}),rv=()=>{const o=Kr(T0);return{id:o,link:S=>{Dr(S,T0,o)},unlink:S=>{sa(S,T0)}}},ov=(o,c)=>Rg(c).exists(g=>Am(o,g)),Am=(o,c)=>lw(c,g=>Jt(g,o.element),Y)||ov(o,c),gk="unknown";var sv;(function(o){o[o.STOP=0]="STOP",o[o.NORMAL=1]="NORMAL",o[o.LOGGING=2]="LOGGING"})(sv||(sv={}));const Dg=X({}),av=(o,c)=>{const g=[],S=new Date().getTime();return{logEventCut:(_,H,K)=>{g.push({outcome:"cut",target:H,purpose:K})},logEventStopped:(_,H,K)=>{g.push({outcome:"stopped",target:H,purpose:K})},logNoParent:(_,H,K)=>{g.push({outcome:"no-parent",target:H,purpose:K})},logEventNoHandlers:(_,H)=>{g.push({outcome:"no-handlers-left",target:H})},logEventResponse:(_,H,K)=>{g.push({outcome:"response",purpose:K,target:H})},write:()=>{const _=new Date().getTime();be(["mousemove","mouseover","mouseout",Bd()],o)||console.log(o,{event:o,time:_-S,target:c.dom,sequence:ne(g,H=>be(["cut","stopped","response"],H.outcome)?"{"+H.purpose+"} "+H.outcome+" at ("+wh(H.target)+")":H.outcome)})}}},pk=(o,c,g)=>{switch(Bt(Dg.get(),o).orThunk(()=>{const _=ct(Dg.get());return Xe(_,H=>o.indexOf(H)>-1?L.some(Dg.get()[H]):L.none())}).getOr(sv.NORMAL)){case sv.NORMAL:return g(uw());case sv.LOGGING:{const _=av(o,c),H=g(_);return _.write(),H}case sv.STOP:return!0}},YM=["alloy/data/Fields","alloy/debugging/Debugging"],cw=()=>{const o=new Error;if(o.stack!==void 0){const c=o.stack.split(` +`);return Ze(c,g=>g.indexOf("alloy")>0&&!Te(YM,S=>g.indexOf(S)>-1)).getOr(gk)}else return gk},XM={logEventCut:M,logEventStopped:M,logNoParent:M,logEventNoHandlers:M,logEventResponse:M,write:M},lx=(o,c,g)=>pk(o,c,g),uw=F(XM),Mu=F([er("menu"),er("selectedMenu")]),vk=F([er("item"),er("selectedItem")]);F(uo(vk().concat(Mu())));const C0=F(uo(vk())),yk=su("initSize",[er("numColumns"),er("numRows")]),GM=()=>Zc("markers",C0()),Qy=()=>su("markers",[er("backgroundMenu")].concat(Mu()).concat(vk())),$g=o=>su("markers",ne(o,er)),cx=(o,c,g)=>(cw(),il(c,c,g,Ml(S=>jo.value((..._)=>S.apply(void 0,_))))),Rs=o=>cx("onHandler",o,xy(M)),Eu=o=>cx("onKeyboardHandler",o,xy(L.none)),zd=o=>cx("onHandler",o,Ks()),fw=o=>cx("onKeyboardHandler",o,Ks()),ha=(o,c)=>ei(o,F(c)),Fy=o=>ei(o,z),dw=F(yk),cl=(o,c,g,S,_,H,K,ve=!1)=>({x:o,y:c,bubble:g,direction:S,placement:_,restriction:H,label:`${K}-${_}`,alwaysFit:ve}),Ah=we.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Lg=(o,c,g,S,_,H,K,ve,Ae)=>o.fold(c,g,S,_,H,K,ve,Ae),hw=(o,c,g,S)=>o.fold(c,c,S,S,c,S,g,g),ux=(o,c,g,S)=>o.fold(c,S,c,S,g,g,c,S),Vy=Ah.southeast,mw=Ah.southwest,fx=Ah.northeast,Ph=Ah.northwest,Pm=Ah.south,jM=Ah.north,Nn=Ah.east,zy=Ah.west,k0=(o,c,g,S)=>{const _=o+c;return _>S?g:_Math.min(Math.max(o,c),g),gw=(o,c)=>{switch(c){case 1:return o.x;case 0:return o.x+o.width;case 2:return o.y;case 3:return o.y+o.height}},Ha=(o,c)=>ue(["left","right","top","bottom"],g=>Bt(c,g).map(S=>gw(o,S))),dx=(o,c,g)=>{const S=(Ae,Ne)=>c[Ae].map(Ue=>{const Je=Ae==="top"||Ae==="bottom",st=Je?g.top:g.left,At=(Ae==="left"||Ae==="top"?Math.max:Math.min)(Ue,Ne)+st;return Je?rf(At,o.y,o.bottom):rf(At,o.x,o.right)}).getOr(Ne),_=S("left",o.x),H=S("top",o.y),K=S("right",o.right),ve=S("bottom",o.bottom);return Ja(_,H,K-_,ve-H)},Mm="layout",pw=o=>o.x,hx=(o,c)=>o.x+o.width/2-c.width/2,vw=(o,c)=>o.x+o.width-c.width,Zy=(o,c)=>o.y-c.height,A0=o=>o.y+o.height,yw=(o,c)=>o.y+o.height/2-c.height/2,qM=o=>o.x+o.width,Wc=(o,c)=>o.x-c.width,ul=(o,c,g)=>cl(pw(o),A0(o),g.southeast(),Vy(),"southeast",Ha(o,{left:1,top:3}),Mm),Gl=(o,c,g)=>cl(vw(o,c),A0(o),g.southwest(),mw(),"southwest",Ha(o,{right:0,top:3}),Mm),Yc=(o,c,g)=>cl(pw(o),Zy(o,c),g.northeast(),fx(),"northeast",Ha(o,{left:1,bottom:2}),Mm),sc=(o,c,g)=>cl(vw(o,c),Zy(o,c),g.northwest(),Ph(),"northwest",Ha(o,{right:0,bottom:2}),Mm),Mc=(o,c,g)=>cl(hx(o,c),Zy(o,c),g.north(),jM(),"north",Ha(o,{bottom:2}),Mm),fl=(o,c,g)=>cl(hx(o,c),A0(o),g.south(),Pm(),"south",Ha(o,{top:3}),Mm),bw=(o,c,g)=>cl(qM(o),yw(o,c),g.east(),Nn(),"east",Ha(o,{left:0}),Mm),Hy=(o,c,g)=>cl(Wc(o,c),yw(o,c),g.west(),zy(),"west",Ha(o,{right:1}),Mm),Ow=()=>[ul,Gl,Yc,sc,fl,Mc,bw,Hy],Uy=()=>[Gl,ul,sc,Yc,fl,Mc,bw,Hy],xw=()=>[Yc,sc,ul,Gl,Mc,fl],bk=()=>[sc,Yc,Gl,ul,Mc,fl],mx=()=>[ul,Gl,Yc,sc,fl,Mc],Sw=()=>[Gl,ul,sc,Yc,fl,Mc],KM=(o,c)=>c.universal?o:xe(o,g=>be(c.channels,g));var Ok=Object.freeze({__proto__:null,events:o=>Ea([qn(Wl(),(c,g)=>{const S=o.channels,_=ct(S),H=g,K=KM(_,H);pe(K,ve=>{const Ae=S[ve],Ne=Ae.schema,Ue=El("channel["+ve+`] data +Receiver: `+wh(c.element),Ne,H.data);Ae.onReceive(c,Ue)})})])}),eE=[Zc("channels",Kf(jo.value,ca([zd("onReceive"),Mn("schema",vi())])))];const P0=(o,c,g)=>rd(S=>{g(S,o,c)}),gx=(o,c,g)=>qS((S,_)=>{g(S,o,c)}),xk=(o,c,g,S,_,H)=>{const K=ca(o),ve=wc(c,[ed("config",o)]);return Zd(K,ve,c,g,S,_,H)},e9=(o,c,g,S,_,H)=>{const K=o,ve=wc(c,[au("config",o)]);return Zd(K,ve,c,g,S,_,H)},iu=(o,c,g)=>Ly((_,...H)=>{const K=[_].concat(H);return _.config({name:F(o)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+o+". Using API: "+g)},ve=>{const Ae=Array.prototype.slice.call(K,1);return c.apply(void 0,[_,ve.config,ve.state].concat(Ae))})},g,c),t9=o=>({key:o,value:void 0}),Zd=(o,c,g,S,_,H,K)=>{const ve=Je=>En(Je,g)?Je[g]():L.none(),Ae=je(_,(Je,st)=>iu(g,Je,st)),Ue={...je(H,(Je,st)=>XO(Je,st)),...Ae,revoke:Q(t9,g),config:Je=>{const st=El(g+"-config",o,Je);return{key:g,value:{config:st,me:Ue,configAsRaw:Ya(()=>El(g+"-config",o,Je)),initialConfig:Je,state:K}}},schema:F(c),exhibit:(Je,st)=>Xn(ve(Je),Bt(S,"exhibit"),(ht,At)=>At(st,ht.config,ht.state)).getOrThunk(()=>ku({})),name:F(g),handlers:Je=>ve(Je).map(st=>Bt(S,"events").getOr(()=>({}))(st.config,st.state)).getOr({})};return Ue},pr=o=>bt(o),ww=ca([er("fields"),er("name"),Mn("active",{}),Mn("apis",{}),Mn("state",od),Mn("extra",{})]),dl=o=>{const c=El("Creating behaviour: "+o.name,ww,o);return xk(c.fields,c.name,c.active,c.apis,c.extra,c.state)},Sk=ca([er("branchKey"),er("branches"),er("name"),Mn("active",{}),Mn("apis",{}),Mn("state",od),Mn("extra",{})]),px=o=>{const c=El("Creating behaviour: "+o.name,Sk,o);return e9(Os(c.branchKey,c.branches),c.name,c.active,c.apis,c.extra,c.state)},Tw=F(void 0),lu=dl({fields:eE,name:"receiving",active:Ok});var wk=Object.freeze({__proto__:null,exhibit:(o,c)=>ku({classes:[],styles:c.useFixed()?{}:{position:"relative"}})});const cu=(o,c=!1)=>o.dom.focus({preventScroll:c}),M0=o=>o.dom.blur(),Wy=o=>{const c=es(o).dom;return o.dom===c.activeElement},Mh=(o=qv())=>L.from(o.dom.activeElement).map(zt.fromDom),ad=o=>Mh(es(o)).filter(c=>o.dom.contains(c.dom)),Ur=(o,c)=>{const g=es(c),S=Mh(g).bind(H=>{const K=ve=>Jt(H,ve);return K(c)?L.some(c):mk(c,K)}),_=o(c);return S.each(H=>{Mh(g).filter(K=>Jt(K,H)).fold(()=>{cu(H)},M)}),_},of=(o,c,g,S,_)=>{const H=K=>K+"px";return{position:o,left:c.map(H),top:g.map(H),right:S.map(H),bottom:_.map(H)}},Tk=o=>({...o,position:L.some(o.position)}),Ck=(o,c)=>{fr(o,Tk(c))},Cw=we.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),kk=(o,c,g,S,_,H)=>{const K=c.rect,ve=K.x-g,Ae=K.y-S,Ne=K.width,Ue=K.height,Je=_-(ve+Ne),st=H-(Ae+Ue),ht=L.some(ve),At=L.some(Ae),qt=L.some(Je),Dn=L.some(st),mn=L.none();return Lg(c.direction,()=>of(o,ht,At,mn,mn),()=>of(o,mn,At,qt,mn),()=>of(o,ht,mn,mn,Dn),()=>of(o,mn,mn,qt,Dn),()=>of(o,ht,At,mn,mn),()=>of(o,ht,mn,mn,Dn),()=>of(o,ht,At,mn,mn),()=>of(o,mn,At,qt,mn))},kw=(o,c)=>o.fold(()=>{const g=c.rect;return of("absolute",L.some(g.x),L.some(g.y),L.none(),L.none())},(g,S,_,H)=>kk("absolute",c,g,S,_,H),(g,S,_,H)=>kk("fixed",c,g,S,_,H)),Aw=(o,c)=>{const g=Q(Hp,c),S=o.fold(g,g,()=>{const K=Pl();return Hp(c).translate(-K.left,-K.top)}),_=Tf(c),H=Vu(c);return Ja(S.left,S.top,_,H)},nE=(o,c)=>c.fold(()=>o.fold(Vl,Vl,Ja),g=>o.fold(F(g),F(g),()=>{const S=Pw(o,g.x,g.y);return Ja(S.left,S.top,g.width,g.height)})),Pw=(o,c,g)=>{const S=Is(c,g),_=()=>{const H=Pl();return S.translate(-H.left,-H.top)};return o.fold(F(S),F(S),_)},rE=(o,c,g,S)=>o.fold(c,g,S);Cw.none;const Ec=Cw.relative,Yy=Cw.fixed,oE=(o,c)=>({anchorBox:o,origin:c}),sE=(o,c)=>oE(o,c),Mw="data-alloy-placement",aE=(o,c)=>{Dr(o,Mw,c)},Ak=o=>Ri(o,Mw),Pk=o=>sa(o,Mw),Xy=we.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),Mk=(o,c)=>{const{x:g,y:S,right:_,bottom:H}=c,{x:K,y:ve,right:Ae,bottom:Ne,width:Ue,height:Je}=o,st=K>=g&&K<=_,ht=ve>=S&&ve<=H,At=st&&ht,qt=Ae<=_&&Ae>=g,Dn=Ne<=H&&Ne>=S,mn=qt&&Dn,on=Math.min(Ue,K>=g?_-K:Ae-g),kn=Math.min(Je,ve>=S?H-ve:Ne-S);return{originInBounds:At,sizeInBounds:mn,visibleW:on,visibleH:kn}},Ew=(o,c)=>{const{x:g,y:S,right:_,bottom:H}=c,{x:K,y:ve,width:Ae,height:Ne}=o,Ue=Math.max(g,_-Ae),Je=Math.max(S,H-Ne),st=rf(K,g,Ue),ht=rf(ve,S,Je),At=Math.min(st+Ae,_)-st,qt=Math.min(ht+Ne,H)-ht;return Ja(st,ht,At,qt)},iv=(o,c,g)=>{const S=F(c.bottom-g.y),_=F(g.bottom-c.y),H=hw(o,_,_,S),K=F(c.right-g.x),ve=F(g.right-c.x);return{maxWidth:ux(o,ve,ve,K),maxHeight:H}},iE=(o,c,g,S)=>{const _=o.bubble,H=_.offset,K=dx(S,o.restriction,H),ve=o.x+H.left,Ae=o.y+H.top,Ne=Ja(ve,Ae,c,g),{originInBounds:Ue,sizeInBounds:Je,visibleW:st,visibleH:ht}=Mk(Ne,K),At=Ue&&Je,qt=At?Ne:Ew(Ne,K),Dn=qt.width>0&&qt.height>0,{maxWidth:mn,maxHeight:on}=iv(o.direction,qt,S),kn={rect:qt,maxHeight:on,maxWidth:mn,direction:o.direction,placement:o.placement,classes:{on:_.classesOn,off:_.classesOff},layout:o.label,testY:Ae};return At||o.alwaysFit?Xy.fit(kn):Xy.nofit(kn,st,ht,Dn)},lE=(o,c,g,S,_,H)=>{const K=S.width,ve=S.height,Ae=(Ue,Je,st,ht,At)=>{const qt=Ue(g,S,_,o,H),Dn=iE(qt,K,ve,H);return Dn.fold(F(Dn),(mn,on,kn,Zn)=>(At===Zn?kn>ht||on>st:!At&&Zn)?Dn:Xy.nofit(Je,st,ht,At))};return ke(c,(Ue,Je)=>{const st=Q(Ae,Je);return Ue.fold(F(Ue),st)},Xy.nofit({rect:g,maxHeight:S.height,maxWidth:S.width,direction:Vy(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:g.y},-1,-1,!1)).fold(z,z)},_w=o=>{const c=X(L.none()),g=()=>c.get().each(o);return{clear:()=>{g(),c.set(L.none())},isSet:()=>c.get().isSome(),get:()=>c.get(),set:ve=>{g(),c.set(L.some(ve))}}},cE=()=>_w(o=>o.destroy()),Em=()=>_w(o=>o.unbind()),gs=()=>{const o=_w(M);return{...o,on:g=>o.get().each(g)}},Rw=ie,_c=(o,c,g)=>yg(o,c,Rw,g),vx=(o,c,g)=>hy(o,c,Rw,g),Dw=dy,$w=["top","bottom","right","left"],yx="data-alloy-transition-timer",Ek=(o,c)=>Xl(o,c.classes),uE=(o,c,g)=>g.exists(S=>{const _=o.mode;return _==="all"?!0:S[_]!==c[_]}),fE=(o,c)=>{const g=S=>parseFloat(S).toFixed(3);return Gt(c,(S,_)=>{const H=o[_].map(g),K=S.map(g);return!Yn(H,K)}).isSome()},E0=o=>{const c=H=>{const ve=Qa(o,H).split(/\s*,\s*/);return xe(ve,dn)},g=H=>{if(m(H)&&/^[\d.]+/.test(H)){const K=parseFloat(H);return mt(H,"ms")?K:K*1e3}else return 0},S=c("transition-delay"),_=c("transition-duration");return ke(_,(H,K,ve)=>{const Ae=g(S[ve])+g(K);return Math.max(H,Ae)},0)},_k=(o,c)=>{const g=Em(),S=Em();let _;const H=Ne=>{var Ue;const Je=(Ue=Ne.raw.pseudoElement)!==null&&Ue!==void 0?Ue:"";return Jt(Ne.target,o)&&nn(Je)&&be($w,Ne.raw.propertyName)},K=Ne=>{if(k(Ne)||H(Ne)){g.clear(),S.clear();const Ue=Ne==null?void 0:Ne.raw.type;(k(Ue)||Ue===Ki())&&(clearTimeout(_),sa(o,yx),tf(o,c.classes))}},ve=_c(o,kc(),Ne=>{H(Ne)&&(ve.unbind(),g.set(_c(o,Ki(),K)),S.set(_c(o,Uc(),K)))}),Ae=E0(o);requestAnimationFrame(()=>{_=setTimeout(K,Ae+17),Dr(o,yx,_)})},n9=(o,c)=>{ni(o,c.classes),Ri(o,yx).each(g=>{clearTimeout(parseInt(g,10)),sa(o,yx)}),_k(o,c)},Ig=(o,c,g,S,_,H)=>{const K=uE(S,_,H);if(K||Ek(o,S)){Po(o,"position",g.position);const ve=Aw(c,o),Ae=kw(c,{..._,rect:ve}),Ne=ue($w,Ue=>Ae[Ue]);fE(g,Ne)&&(fr(o,Ne),K&&n9(o,S),li(o))}else tf(o,S.classes)},dE=o=>({width:Tf(o),height:Vu(o)}),_0=(o,c,g,S)=>{Zo(c,"max-height"),Zo(c,"max-width");const _=dE(c);return lE(c,S.preference,o,_,g,S.bounds)},hE=(o,c)=>{const g=c.classes;tf(o,g.off),ni(o,g.on)},Lw=(o,c,g)=>{const S=g.maxHeightFunction;S(o,c.maxHeight)},Rk=(o,c,g)=>{const S=g.maxWidthFunction;S(o,c.maxWidth)},lv=(o,c,g)=>{const S=kw(g.origin,c);g.transition.each(_=>{Ig(o,g.origin,S,_,c,g.lastPlacement)}),Ck(o,S)},mE=(o,c)=>{aE(o,c.placement)},Dk=(o,c)=>{zu(o,Math.floor(c))},$k=F((o,c)=>{Dk(o,c),zi(o,{"overflow-x":"hidden","overflow-y":"auto"})}),R0=F((o,c)=>{Dk(o,c)}),Lk=(o,c,g)=>o[c]===void 0?g:o[c],Iw=(o,c,g,S,_,H,K,ve)=>{const Ae=Lk(K,"maxHeightFunction",$k()),Ne=Lk(K,"maxWidthFunction",M),Ue=o.anchorBox,Je=o.origin,st={bounds:nE(Je,H),origin:Je,preference:S,maxHeightFunction:Ae,maxWidthFunction:Ne,lastPlacement:_,transition:ve};return gE(Ue,c,g,st)},gE=(o,c,g,S)=>{const _=_0(o,c,g,S);return lv(c,_,S),mE(c,_),hE(c,_),Lw(c,_,S),Rk(c,_,S),{layout:_.layout,placement:_.placement}},Ik=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Eh=(o,c,g,S=1)=>{const _=o*S,H=c*S,K=Ae=>Bt(g,Ae).getOr([]),ve=(Ae,Ne,Ue)=>{const Je=se(Ik,Ue);return{offset:Is(Ae,Ne),classesOn:re(Ue,K),classesOff:re(Je,K)}};return{southeast:()=>ve(-o,c,["top","alignLeft"]),southwest:()=>ve(o,c,["top","alignRight"]),south:()=>ve(-o/2,c,["top","alignCentre"]),northeast:()=>ve(-o,-c,["bottom","alignLeft"]),northwest:()=>ve(o,-c,["bottom","alignRight"]),north:()=>ve(-o/2,-c,["bottom","alignCentre"]),east:()=>ve(o,-c/2,["valignCentre","left"]),west:()=>ve(-o,-c/2,["valignCentre","right"]),insetNortheast:()=>ve(_,H,["top","alignLeft","inset"]),insetNorthwest:()=>ve(-_,H,["top","alignRight","inset"]),insetNorth:()=>ve(-_/2,H,["top","alignCentre","inset"]),insetSoutheast:()=>ve(_,-H,["bottom","alignLeft","inset"]),insetSouthwest:()=>ve(-_,-H,["bottom","alignRight","inset"]),insetSouth:()=>ve(-_/2,-H,["bottom","alignCentre","inset"]),insetEast:()=>ve(-_,-H/2,["valignCentre","right","inset"]),insetWest:()=>ve(_,-H/2,["valignCentre","left","inset"])}},Gy=()=>Eh(0,0,{}),jy=z,bx=(o,c)=>g=>qy(g)==="rtl"?c:o,qy=o=>Qa(o,"direction")==="rtl"?"rtl":"ltr";var Lf;(function(o){o.TopToBottom="toptobottom",o.BottomToTop="bottomtotop"})(Lf||(Lf={}));const D0="data-alloy-vertical-dir",Ky=o=>lw(o,c=>St(c)&&oa(c,"data-alloy-vertical-dir")===Lf.BottomToTop),Ng=()=>wc("layouts",[er("onLtr"),er("onRtl"),Ws("onBottomLtr"),Ws("onBottomRtl")]),Ox=(o,c,g,S,_,H,K)=>{const ve=K.map(Ky).getOr(!1),Ae=c.layouts.map(ht=>ht.onLtr(o)),Ne=c.layouts.map(ht=>ht.onRtl(o)),Ue=ve?c.layouts.bind(ht=>ht.onBottomLtr.map(At=>At(o))).or(Ae).getOr(_):Ae.getOr(g),Je=ve?c.layouts.bind(ht=>ht.onBottomRtl.map(At=>At(o))).or(Ne).getOr(H):Ne.getOr(S);return bx(Ue,Je)(o)},pE=(o,c,g)=>{const S=c.hotspot,_=Aw(g,S.element),H=Ox(o.element,c,mx(),Sw(),xw(),bk(),L.some(c.hotspot.element));return L.some(jy({anchorBox:_,bubble:c.bubble.getOr(Gy()),overrides:c.overrides,layouts:H}))};var vE=[er("hotspot"),Ws("bubble"),Mn("overrides",{}),Ng(),ha("placement",pE)];const Nk=(o,c,g)=>{const S=Pw(g,c.x,c.y),_=Ja(S.left,S.top,c.width,c.height),H=Ox(o.element,c,Ow(),Uy(),Ow(),Uy(),L.none());return L.some(jy({anchorBox:_,bubble:c.bubble,overrides:c.overrides,layouts:H}))};var yE=[er("x"),er("y"),Mn("height",0),Mn("width",0),Mn("bubble",Gy()),Mn("overrides",{}),Ng(),ha("placement",Nk)];const Nw=we.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),bE=o=>o.fold(z,(c,g,S)=>c.translate(-g,-S)),OE=o=>o.fold(z,z),Bk=o=>ke(o,(c,g)=>c.translate(g.left,g.top),Is(0,0)),xE=o=>{const c=ne(o,bE);return Bk(c)},Qk=o=>{const c=ne(o,OE);return Bk(c)},SE=Nw.screen,xx=Nw.absolute,wE=(o,c,g)=>{const S=Jn(g.root).dom,_=H=>{const K=Tn(H),ve=Tn(o.element);return Jt(K,ve)};return L.from(S.frameElement).map(zt.fromDom).filter(_).map(Cl)},Fk=(o,c,g)=>{const S=Tn(o.element),_=Pl(S),H=wE(o,c,g).getOr(_);return xx(H,_.left,_.top)},$0=(o,c,g,S)=>{const _=SE(Is(o,c));return L.some(Kv(_,g,S))},Bw=(o,c,g,S,_)=>o.map(H=>{const K=[c,H.point],ve=rE(S,()=>Qk(K),()=>Qk(K),()=>xE(K)),Ae=vh(ve.left,ve.top,H.width,H.height),Ne=g.showAbove?xw():mx(),Ue=g.showAbove?bk():Sw(),Je=Ox(_,g,Ne,Ue,Ne,Ue,L.none());return jy({anchorBox:Ae,bubble:g.bubble.getOr(Gy()),overrides:g.overrides,layouts:Je})}),Qw=(o,c,g)=>{const S=Fk(o,g,c);return c.node.filter(Js).bind(_=>{const H=_.dom.getBoundingClientRect(),K=$0(H.left,H.top,H.width,H.height),ve=c.node.getOr(o.element);return Bw(K,S,c,g,ve)})};var Fw=[er("node"),er("root"),Ws("bubble"),Ng(),Mn("overrides",{}),Mn("showAbove",!1),ha("placement",Qw)];const Vk="\uFEFF",Vw=" ",Sx={create:(o,c,g,S)=>({start:o,soffset:c,finish:g,foffset:S})},wx=we.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),CE=(o,c,g,S)=>o.fold(c,g,S),zw=o=>o.fold(z,z,z),zk=wx.before,kE=wx.on,Zw=wx.after,AE={before:zk,on:kE,after:Zw,cata:CE,getStart:zw},L0=we.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),PE=o=>L0.exact(o.start,o.soffset,o.finish,o.foffset),Hw=o=>o.match({domRange:c=>zt.fromDom(c.startContainer),relative:(c,g)=>AE.getStart(c),exact:(c,g,S,_)=>c}),ME=L0.domRange,EE=L0.relative,_E=L0.exact,Zk=o=>{const c=Hw(o);return Jn(c)},RE=Sx.create,_l={domRange:ME,relative:EE,exact:_E,exactFromRange:PE,getWin:Zk,range:RE},r9=(o,c)=>{c.fold(g=>{o.setStartBefore(g.dom)},(g,S)=>{o.setStart(g.dom,S)},g=>{o.setStartAfter(g.dom)})},I0=(o,c)=>{c.fold(g=>{o.setEndBefore(g.dom)},(g,S)=>{o.setEnd(g.dom,S)},g=>{o.setEndAfter(g.dom)})},Tx=(o,c,g)=>{const S=o.document.createRange();return r9(S,c),I0(S,g),S},Hk=(o,c,g,S,_)=>{const H=o.document.createRange();return H.setStart(c.dom,g),H.setEnd(S.dom,_),H},Uw=o=>({left:o.left,top:o.top,right:o.right,bottom:o.bottom,width:o.width,height:o.height}),Uk=o=>{const c=o.getClientRects(),g=c.length>0?c[0]:o.getBoundingClientRect();return g.width>0||g.height>0?L.some(g).map(Uw):L.none()},Wk=o=>{const c=o.getBoundingClientRect();return c.width>0||c.height>0?L.some(c).map(Uw):L.none()},cv=we.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Jy=(o,c,g)=>c(zt.fromDom(g.startContainer),g.startOffset,zt.fromDom(g.endContainer),g.endOffset),DE=(o,c)=>c.match({domRange:g=>({ltr:F(g),rtl:L.none}),relative:(g,S)=>({ltr:Ya(()=>Tx(o,g,S)),rtl:Ya(()=>L.some(Tx(o,S,g)))}),exact:(g,S,_,H)=>({ltr:Ya(()=>Hk(o,g,S,_,H)),rtl:Ya(()=>L.some(Hk(o,_,H,g,S)))})}),$E=(o,c)=>{const g=c.ltr();return g.collapsed?c.rtl().filter(_=>_.collapsed===!1).map(_=>cv.rtl(zt.fromDom(_.endContainer),_.endOffset,zt.fromDom(_.startContainer),_.startOffset)).getOrThunk(()=>Jy(o,cv.ltr,g)):Jy(o,cv.ltr,g)},eb=(o,c)=>{const g=DE(o,c);return $E(o,g)},Ww=(o,c)=>eb(o,c).match({ltr:(S,_,H,K)=>{const ve=o.document.createRange();return ve.setStart(S.dom,_),ve.setEnd(H.dom,K),ve},rtl:(S,_,H,K)=>{const ve=o.document.createRange();return ve.setStart(H.dom,K),ve.setEnd(S.dom,_),ve}});cv.ltr,cv.rtl;const Yk=(o,c,g)=>xe(Hr(o,g),c),hl=(o,c)=>en(c,o),Xk=(o,c,g,S)=>{const H=Tn(o).dom.createRange();return H.setStart(o.dom,c),H.setEnd(g.dom,S),H},Yw=(o,c,g,S)=>{const _=Xk(o,c,g,S),H=Jt(o,g)&&c===S;return _.collapsed&&!H},o9=o=>L.from(o.getSelection()),N0=o=>{if(o.rangeCount>0){const c=o.getRangeAt(0),g=o.getRangeAt(o.rangeCount-1);return L.some(Sx.create(zt.fromDom(c.startContainer),c.startOffset,zt.fromDom(g.endContainer),g.endOffset))}else return L.none()},LE=o=>{if(o.anchorNode===null||o.focusNode===null)return N0(o);{const c=zt.fromDom(o.anchorNode),g=zt.fromDom(o.focusNode);return Yw(c,o.anchorOffset,g,o.focusOffset)?L.some(Sx.create(c,o.anchorOffset,g,o.focusOffset)):N0(o)}},Gk=o=>o9(o).filter(c=>c.rangeCount>0).bind(LE),Xw=(o,c)=>{const g=Ww(o,c);return Uk(g)},tb=(o,c)=>{const g=Ww(o,c);return Wk(g)},B0=((o,c)=>{const g=H=>{if(!o(H))throw new Error("Can only get "+c+" value of a "+c+" node");return S(H).getOr("")},S=H=>o(H)?L.from(H.dom.nodeValue):L.none();return{get:g,getOption:S,set:(H,K)=>{if(!o(H))throw new Error("Can only set raw "+c+" value of a "+c+" node");H.dom.nodeValue=K}}})(Ct,"text"),IE=o=>B0.get(o),Bg=(o,c)=>({element:o,offset:c}),jk=(o,c)=>{const g=qr(o);if(g.length===0)return Bg(o,c);if(cCt(o)?Bg(o,c):jk(o,c),Fg=o=>o.foffset!==void 0,Gw=(o,c)=>c.getSelection.getOrThunk(()=>()=>Gk(o))().map(S=>{if(Fg(S)){const _=Qg(S.start,S.soffset),H=Qg(S.finish,S.foffset);return _l.range(_.element,_.offset,H.element,H.offset)}else return S}),qk=(o,c,g)=>{const S=Jn(c.root).dom,_=Fk(o,g,c),H=Gw(S,c).bind(Ae=>{if(Fg(Ae))return tb(S,_l.exactFromRange(Ae)).orThunk(()=>{const Ue=zt.fromText(Vk);Uu(Ae.start,Ue);const Je=Xw(S,_l.exact(Ue,0,Ue,1));return xc(Ue),Je}).bind(Ue=>$0(Ue.left,Ue.top,Ue.width,Ue.height));{const Ne=je(Ae,Je=>Je.dom.getBoundingClientRect()),Ue={left:Math.min(Ne.firstCell.left,Ne.lastCell.left),right:Math.max(Ne.firstCell.right,Ne.lastCell.right),top:Math.min(Ne.firstCell.top,Ne.lastCell.top),bottom:Math.max(Ne.firstCell.bottom,Ne.lastCell.bottom)};return $0(Ue.left,Ue.top,Ue.right-Ue.left,Ue.bottom-Ue.top)}}),ve=Gw(S,c).bind(Ae=>Fg(Ae)?St(Ae.start)?L.some(Ae.start):dr(Ae.start):L.some(Ae.firstCell)).getOr(o.element);return Bw(H,_,c,g,ve)};var s9=[Ws("getSelection"),er("root"),Ws("bubble"),Ng(),Mn("overrides",{}),Mn("showAbove",!1),ha("placement",qk)];const jw="link-layout",Vg=o=>o.x+o.width,_h=(o,c)=>o.x-c.width,nb=(o,c)=>o.y-c.height+o.height,Q0=o=>o.y,qw=(o,c,g)=>cl(Vg(o),Q0(o),g.southeast(),Vy(),"southeast",Ha(o,{left:0,top:2}),jw),_m=(o,c,g)=>cl(_h(o,c),Q0(o),g.southwest(),mw(),"southwest",Ha(o,{right:1,top:2}),jw),Hd=(o,c,g)=>cl(Vg(o),nb(o,c),g.northeast(),fx(),"northeast",Ha(o,{left:0,bottom:3}),jw),rb=(o,c,g)=>cl(_h(o,c),nb(o,c),g.northwest(),Ph(),"northwest",Ha(o,{right:1,bottom:3}),jw),kx=()=>[qw,_m,Hd,rb],ob=()=>[_m,qw,rb,Hd],Kw=(o,c,g)=>{const S=Aw(g,c.item.element),_=Ox(o.element,c,kx(),ob(),kx(),ob(),L.none());return L.some(jy({anchorBox:S,bubble:Gy(),overrides:c.overrides,layouts:_}))};var F0=[er("item"),Ng(),Mn("overrides",{}),ha("placement",Kw)],sb=Os("type",{selection:s9,node:Fw,hotspot:vE,submenu:F0,makeshift:yE});const Jw=[rc("classes",al),Hc("mode","all",["all","layout","placement"])],Kk=[Mn("useFixed",Y),Ws("getBounds")],zg=[Zc("anchor",sb),wc("transition",Jw)],Ax=()=>{const o=document.documentElement;return Yy(0,0,o.clientWidth,o.clientHeight)},NE=o=>{const c=Cl(o.element),g=o.element.dom.getBoundingClientRect();return Ec(c.left,c.top,g.width,g.height)},Jk=(o,c,g,S,_,H)=>{const K=sE(c.anchorBox,o);return Iw(K,S.element,c.bubble,c.layouts,_,g,c.overrides,H)},eT=(o,c,g,S,_)=>{const H=L.none();Pi(o,c,g,S,_,H)},Pi=(o,c,g,S,_,H)=>{const K=El("placement.info",uo(zg),_),ve=K.anchor,Ae=S.element,Ne=g.get(S.uid);Ur(()=>{Po(Ae,"position","fixed");const Ue=za(Ae,"visibility");Po(Ae,"visibility","hidden");const Je=c.useFixed()?Ax():NE(o);ve.placement(o,ve,Je).each(st=>{const ht=H.orThunk(()=>c.getBounds.map(W)),At=Jk(Je,st,ht,S,Ne,K.transition);g.set(S.uid,At)}),Ue.fold(()=>{Zo(Ae,"visibility")},st=>{Po(Ae,"visibility",st)}),za(Ae,"left").isNone()&&za(Ae,"top").isNone()&&za(Ae,"right").isNone()&&za(Ae,"bottom").isNone()&&ln(za(Ae,"position"),"fixed")&&Zo(Ae,"position")},Ae)};var eA=Object.freeze({__proto__:null,position:eT,positionWithinBounds:Pi,getMode:(o,c,g)=>c.useFixed()?"fixed":"absolute",reset:(o,c,g,S)=>{const _=S.element;pe(["position","left","right","top","bottom"],H=>Zo(_,H)),Pk(_),g.clear(S.uid)}}),Zg=Object.freeze({__proto__:null,init:()=>{let o={};return Cu({readState:()=>o,clear:_=>{C(_)?delete o[_]:o={}},set:(_,H)=>{o[_]=H},get:_=>Bt(o,_)})}});const ac=dl({fields:Kk,name:"positioning",active:wk,apis:eA,state:Zg}),V0=o=>o.getSystem().isConnected(),ab=o=>{ks(o,kg());const c=o.components();pe(c,ab)},z0=o=>{const c=o.components();pe(c,z0),ks(o,ef())},tT=(o,c)=>{o.getSystem().addToWorld(c),Js(o.element)&&z0(c)},Z0=o=>{ab(o),o.getSystem().removeFromWorld(o)},uv=(o,c)=>{Vc(o.element,c.element)},Ud=o=>{pe(o.components(),c=>xc(c.element)),bg(o.element),o.syncComponents()},BE=(o,c,g)=>{const S=o.components();Ud(o);const _=g(c),H=se(S,_);pe(H,K=>{ab(K),o.getSystem().removeFromWorld(K)}),pe(_,K=>{V0(K)?uv(o,K):(o.getSystem().addToWorld(K),uv(o,K),Js(o.element)&&z0(K))}),o.syncComponents()},QE=(o,c,g)=>{const S=o.components(),_=re(c,ve=>f0(ve).toArray());pe(S,ve=>{be(_,ve)||Z0(ve)});const H=g(c),K=se(S,H);pe(K,ve=>{V0(ve)&&Z0(ve)}),pe(H,ve=>{V0(ve)||tT(o,ve)}),o.syncComponents()},Hg=(o,c)=>{H0(o,c,Vc)},H0=(o,c,g)=>{o.getSystem().addToWorld(c),g(o.element,c.element),Js(o.element)&&z0(c),o.syncComponents()},Mx=o=>{ab(o),xc(o.element),o.getSystem().removeFromWorld(o)},Rh=o=>{const c=Fn(o.element).bind(g=>o.getSystem().getByDom(g).toOptional());Mx(o),c.each(g=>{g.syncComponents()})},nT=o=>{const c=o.components();pe(c,Mx),bg(o.element),o.syncComponents()},Rl=(o,c)=>{id(o,c,Vc)},Dm=(o,c)=>{id(o,c,zp)},id=(o,c,g)=>{g(o,c.element);const S=qr(c.element);pe(S,_=>{c.getByDom(_).each(z0)})},U0=o=>{const c=qr(o.element);pe(c,g=>{o.getByDom(g).each(ab)}),xc(o.element)},Rc=(o,c,g,S)=>{g.get().each(K=>{nT(o)});const _=c.getAttachPoint(o);Hg(_,o);const H=o.getSystem().build(S);return Hg(o,H),g.set(H),H},uu=(o,c,g,S)=>{const _=Rc(o,c,g,S);return c.onOpen(o,_),_},Xc=(o,c,g,S)=>g.get().map(()=>Rc(o,c,g,S)),ld=(o,c,g,S,_)=>{ib(o,c),uu(o,c,g,S),_(),lb(o,c)},Ex=(o,c,g)=>{g.get().each(S=>{nT(o),Rh(o),c.onClose(o,S),g.clear()})},sf=(o,c,g)=>g.isOpen(),fv=(o,c,g,S)=>sf(o,c,g)&&g.get().exists(_=>c.isPartOf(o,_,S)),rT=(o,c,g)=>g.get(),FE=(o,c,g,S)=>{za(o.element,c).fold(()=>{sa(o.element,g)},_=>{Dr(o.element,g,_)}),Po(o.element,c,S)},tA=(o,c,g)=>{Ri(o.element,g).fold(()=>Zo(o.element,c),S=>Po(o.element,c,S))},ib=(o,c,g)=>{const S=c.getAttachPoint(o);Po(o.element,"position",ac.getMode(S)),FE(o,"visibility",c.cloakVisibilityAttr,"hidden")},nA=o=>Te(["top","left","right","bottom"],c=>za(o,c).isSome()),lb=(o,c,g)=>{nA(o.element)||Zo(o.element,"position"),tA(o,"visibility",c.cloakVisibilityAttr)};var _x=Object.freeze({__proto__:null,cloak:ib,decloak:lb,open:uu,openWhileCloaked:ld,close:Ex,isOpen:sf,isPartOf:fv,getState:rT,setContent:Xc}),rA=Object.freeze({__proto__:null,events:(o,c)=>Ea([qn(Ju(),(g,S)=>{Ex(g,o,c)})])}),zE=[Rs("onOpen"),Rs("onClose"),er("isPartOf"),er("getAttachPoint"),Mn("cloakVisibilityAttr","data-precloak-visibility")],oA=Object.freeze({__proto__:null,init:()=>{const o=gs(),c=F("not-implemented");return Cu({readState:c,isOpen:o.isSet,clear:o.clear,set:o.set,get:o.get})}});const As=dl({fields:zE,name:"sandboxing",active:rA,apis:_x,state:oA}),Wd=F("dismiss.popups"),dv=F("reposition.popups"),oT=F("mouse.released"),sA=ca([Mn("isExtraPart",Y),wc("fireEventInstead",[Mn("event",Ag())])]),cb=o=>{const c=El("Dismissal",sA,o);return{[Wd()]:{schema:ca([er("target")]),onReceive:(g,S)=>{As.isOpen(g)&&(As.isPartOf(g,S.target)||c.isExtraPart(g,S.target)||c.fireEventInstead.fold(()=>As.close(g),H=>ks(g,H.event)))}}}},ZE=ca([wc("fireEventInstead",[Mn("event",KC())]),qu("doReposition")]),W0=o=>{const c=El("Reposition",ZE,o);return{[dv()]:{onReceive:g=>{As.isOpen(g)&&c.fireEventInstead.fold(()=>c.doReposition(g),S=>ks(g,S.event))}}}},Rx=(o,c,g)=>{c.store.manager.onLoad(o,c,g)},af=(o,c,g)=>{c.store.manager.onUnload(o,c,g)};var Ug=Object.freeze({__proto__:null,onLoad:Rx,onUnload:af,setValue:(o,c,g,S)=>{c.store.manager.setValue(o,c,g,S)},getValue:(o,c,g)=>c.store.manager.getValue(o,c,g),getState:(o,c,g)=>g}),Lx=Object.freeze({__proto__:null,events:(o,c)=>{const g=o.resetOnDom?[Ca((S,_)=>{Rx(S,o,c)}),Sh((S,_)=>{af(S,o,c)})]:[gx(o,c,Rx)];return Ea(g)}});const hv=()=>{const o=X(null),c=()=>({mode:"memory",value:o.get()}),g=()=>o.get()===null,S=()=>{o.set(null)};return Cu({set:o.set,get:o.get,isNotSet:g,clear:S,readState:c})},HE=()=>Cu({readState:M}),aA=()=>{const o=X({}),c=X({});return Cu({readState:()=>({mode:"dataset",dataByValue:o.get(),dataByText:c.get()}),lookup:K=>Bt(o.get(),K).orThunk(()=>Bt(c.get(),K)),update:K=>{const ve=o.get(),Ae=c.get(),Ne={},Ue={};pe(K,Je=>{Ne[Je.value]=Je,Bt(Je,"meta").each(st=>{Bt(st,"text").each(ht=>{Ue[ht]=Je})})}),o.set({...ve,...Ne}),c.set({...Ae,...Ue})},clear:()=>{o.set({}),c.set({})}})};var X0=Object.freeze({__proto__:null,memory:hv,dataset:aA,manual:HE,init:o=>o.store.manager.state(o)});const $m=(o,c,g,S)=>{const _=c.store;g.update([S]),_.setValue(o,S),c.onSetValue(o,S)},WE=(o,c,g)=>{const S=c.store,_=S.getDataKey(o);return g.lookup(_).getOrThunk(()=>S.getFallbackEntry(_))},YE=(o,c,g)=>{c.store.initialValue.each(_=>{$m(o,c,g,_)})},iA=(o,c,g)=>{g.clear()};var sT=[Ws("initialValue"),er("getFallbackEntry"),er("getDataKey"),er("setValue"),ha("manager",{setValue:$m,getValue:WE,onLoad:YE,onUnload:iA,state:aA})];const aT=(o,c,g)=>c.store.getValue(o),iT=(o,c,g,S)=>{c.store.setValue(o,S),c.onSetValue(o,S)},Ix=(o,c,g)=>{c.store.initialValue.each(S=>{c.store.setValue(o,S)})};var Wg=[er("getValue"),Mn("setValue",M),Ws("initialValue"),ha("manager",{setValue:iT,getValue:aT,onLoad:Ix,onUnload:M,state:od.init})];const lA=(o,c,g,S)=>{g.set(S),c.onSetValue(o,S)},ub=(o,c,g)=>g.get(),lT=(o,c,g)=>{c.store.initialValue.each(S=>{g.isNotSet()&&g.set(S)})},XE=(o,c,g)=>{g.clear()};var fb=[Ws("initialValue"),ha("manager",{setValue:lA,getValue:ub,onLoad:lT,onUnload:XE,state:hv})],GE=[Tc("store",{mode:"memory"},Os("mode",{memory:fb,manual:Wg,dataset:sT})),Rs("onSetValue"),Mn("resetOnDom",!1)];const Fr=dl({fields:GE,name:"representing",active:Lx,apis:Ug,extra:{setValueFrom:(o,c)=>{const g=Fr.getValue(c);Fr.setValue(o,g)}},state:X0}),el=(o,c)=>D(o,{},ne(c,g=>s0(g.name(),"Cannot configure "+g.name()+" for "+o)).concat([ei("dump",z)])),Lm=o=>o.dump,Ni=(o,c)=>({...pr(c),...o.dump}),If={field:el,augment:Ni,get:Lm},Nx="placeholder",db=we.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),Yd=o=>vn(o,"uiType"),Bx=(o,c,g,S)=>o.exists(_=>_!==g.owner)?db.single(!0,F(g)):Bt(S,g.name).fold(()=>{throw new Error("Unknown placeholder component: "+g.name+` +Known: [`+ct(S)+`] +Namespace: `+o.getOr("none")+` +Spec: `+JSON.stringify(g,null,2))},_=>_.replace()),Qx=(o,c,g,S)=>Yd(g)&&g.uiType===Nx?Bx(o,c,g,S):db.single(!1,F(g)),G0=(o,c,g,S)=>Qx(o,c,g,S).fold((H,K)=>{const ve=Yd(g)?K(c,g.config,g.validated):K(c),Ae=Bt(ve,"components").getOr([]),Ne=re(Ae,Ue=>G0(o,c,Ue,S));return[{...ve,components:Ne}]},(H,K)=>{if(Yd(g)){const ve=K(c,g.config,g.validated);return g.validated.preprocess.getOr(z)(ve)}else return K(c)}),cA=(o,c,g,S)=>re(g,_=>G0(o,c,_,S)),hb=(o,c)=>{let g=!1;const S=()=>g,_=()=>{if(g)throw new Error("Trying to use the same placeholder more than once: "+o);return g=!0,c},H=()=>c.fold((K,ve)=>K,(K,ve)=>K);return{name:F(o),required:H,used:S,replace:_}},cT=(o,c,g,S)=>{const _=je(S,(K,ve)=>hb(ve,K)),H=cA(o,c,g,_);return Ye(_,K=>{if(K.used()===!1&&K.required())throw new Error("Placeholder: "+K.name()+` was not found in components list +Namespace: `+o.getOr("none")+` +Components: `+JSON.stringify(c.components,null,2))}),H},uT=db.single,jE=db.multiple,Xd=F(Nx),Fx=we.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),j0=Mn("factory",{sketch:z}),jl=Mn("schema",[]),Xi=er("name"),Vx=il("pname","pname",Ef(o=>""),vi()),mb=ei("schema",()=>[Ws("preprocess")]),zx=Mn("defaults",F({})),gb=Mn("overrides",F({})),pb=uo([j0,jl,Xi,Vx,zx,gb]),q0=uo([j0,jl,Xi,zx,gb]),uA=uo([j0,jl,Xi,Vx,zx,gb]),vb=uo([j0,mb,Xi,er("unit"),Vx,zx,gb]),fA=o=>o.fold(L.some,L.none,L.some,L.some),dA=o=>{const c=g=>g.name;return o.fold(c,c,c,c)},hA=o=>o.fold(z,z,z,z),Nf=(o,c)=>g=>{const S=El("Converting part type",c,g);return o(S)},ic=Nf(Fx.required,pb),cd=Nf(Fx.external,q0),fu=Nf(Fx.optional,uA),yb=Nf(Fx.group,vb),Zx=F("entirety");var mA=Object.freeze({__proto__:null,required:ic,external:cd,optional:fu,group:yb,asNamedPart:fA,name:dA,asCommon:hA,original:Zx});const bb=(o,c,g,S)=>Ta(c.defaults(o,g,S),g,{uid:o.partUids[c.name]},c.overrides(o,g,S)),qE=(o,c,g)=>{const S={},_={};return pe(g,H=>{H.fold(K=>{S[K.pname]=uT(!0,(ve,Ae,Ne)=>K.factory.sketch(bb(ve,K,Ae,Ne)))},K=>{const ve=c.parts[K.name];_[K.name]=F(K.factory.sketch(bb(c,K,ve[Zx()]),ve))},K=>{S[K.pname]=uT(!1,(ve,Ae,Ne)=>K.factory.sketch(bb(ve,K,Ae,Ne)))},K=>{S[K.pname]=jE(!0,(ve,Ae,Ne)=>{const Ue=ve[K.name];return ne(Ue,Je=>K.factory.sketch(Ta(K.defaults(ve,Je,Ne),Je,K.overrides(ve,Je))))})})}),{internals:F(S),externals:F(_)}},Im=(o,c)=>{const g={};return pe(c,S=>{fA(S).each(_=>{const H=Ob(o,_.pname);g[_.name]=K=>{const ve=El("Part: "+_.name+" in "+o,uo(_.schema),K);return{...H,config:K,validated:ve}}})}),g},Ob=(o,c)=>({uiType:Xd(),owner:o,name:c}),fT=(o,c,g)=>({uiType:Xd(),owner:o,name:c,config:g,validated:{}}),gA=o=>re(o,c=>c.fold(L.none,L.some,L.none,L.none).map(g=>su(g.name,g.schema.concat([Fy(Zx())]))).toArray()),pA=o=>ne(o,dA),dT=(o,c,g)=>qE(o,c,g),Hx=(o,c,g)=>cT(L.some(o),c,c.components,g),ka=(o,c,g)=>{const S=c.partUids[g];return o.getSystem().getByUid(S).toOptional()},Nm=(o,c,g)=>ka(o,c,g).getOrDie("Could not find part: "+g),vA=(o,c,g)=>{const S={},_=c.partUids,H=o.getSystem();return pe(g,K=>{S[K]=F(H.getByUid(_[K]))}),S},hT=(o,c)=>{const g=o.getSystem();return je(c.partUids,(S,_)=>F(g.getByUid(S)))},mT=o=>ct(o.partUids),mv=(o,c,g)=>{const S={},_=c.partUids,H=o.getSystem();return pe(g,K=>{S[K]=F(H.getByUid(_[K]).getOrDie())}),S},gT=(o,c)=>{const g=pA(c);return bt(ne(g,S=>({key:S,value:o+"-"+S})))},pT=o=>il("partUids","partUids",hs(c=>gT(c.uid,o)),vi());var KE=Object.freeze({__proto__:null,generate:Im,generateOne:fT,schemas:gA,names:pA,substitutes:dT,components:Hx,defaultUids:gT,defaultUidsSchema:pT,getAllParts:hT,getAllPartNames:mT,getPart:ka,getPartOrDie:Nm,getParts:vA,getPartsOrDie:mv});const K0=(o,c)=>(o.length>0?[su("parts",o)]:[]).concat([er("uid"),Mn("dom",{}),Mn("components",[]),Fy("originalSpec"),Mn("debug.sketcher",{})]).concat(c),J0=(o,c,g,S,_)=>{const H=K0(S,_);return El(o+" [SpecSchema]",ca(H.concat(c)),g)},vT=(o,c,g,S)=>{const _=Yg(S),H=J0(o,c,_,[],[]);return g(H,_)},yT=(o,c,g,S,_)=>{const H=Yg(_),K=gA(g),ve=pT(g),Ae=J0(o,c,H,K,[ve]),Ne=dT(o,Ae,g),Ue=Hx(o,Ae,Ne.internals());return S(Ae,Ue,H,Ne.externals())},ud=o=>vn(o,"uid"),Yg=o=>ud(o)?o:{...o,uid:c0("uid")},JE=o=>o.uid!==void 0,xb=ca([er("name"),er("factory"),er("configFields"),Mn("apis",{}),Mn("extraApis",{})]),e_=ca([er("name"),er("factory"),er("configFields"),er("partFields"),Mn("apis",{}),Mn("extraApis",{})]),_u=o=>{const c=El("Sketcher for "+o.name,xb,o),g=H=>vT(c.name,c.configFields,c.factory,H),S=je(c.apis,ev),_=je(c.extraApis,(H,K)=>XO(H,K));return{name:c.name,configFields:c.configFields,sketch:g,...S,..._}},lc=o=>{const c=El("Sketcher for "+o.name,e_,o),g=K=>yT(c.name,c.configFields,c.partFields,c.factory,K),S=Im(c.name,c.partFields),_=je(c.apis,ev),H=je(c.extraApis,(K,ve)=>XO(K,ve));return{name:c.name,partFields:c.partFields,configFields:c.configFields,sketch:g,parts:S,..._,...H}},gv=o=>Ht("input")(o)&&oa(o,"type")!=="radio"||Ht("textarea")(o);var yA=Object.freeze({__proto__:null,getCurrent:(o,c,g)=>c.find(o)});const t_=[er("find")],xs=dl({fields:t_,name:"composing",apis:yA}),bT=["input","button","textarea","select"],bA=(o,c,g)=>{(c.disabled()?xA:Sb)(o,c)},OT=(o,c)=>c.useNative===!0&&be(bT,Oo(o.element)),n_=o=>Md(o.element,"disabled"),r_=o=>{Dr(o.element,"disabled","disabled")},OA=o=>{sa(o.element,"disabled")},o_=o=>oa(o.element,"aria-disabled")==="true",Wr=o=>{Dr(o.element,"aria-disabled","true")},Xg=o=>{Dr(o.element,"aria-disabled","false")},xA=(o,c,g)=>{c.disableClass.each(_=>{ki(o.element,_)}),(OT(o,c)?r_:Wr)(o),c.onDisabled(o)},Sb=(o,c,g)=>{c.disableClass.each(_=>{Xa(o.element,_)}),(OT(o,c)?OA:Xg)(o),c.onEnabled(o)},wb=(o,c)=>OT(o,c)?n_(o):o_(o);var c9=Object.freeze({__proto__:null,enable:Sb,disable:xA,isDisabled:wb,onLoad:bA,set:(o,c,g,S)=>{(S?xA:Sb)(o,c)}}),a_=Object.freeze({__proto__:null,exhibit:(o,c)=>ku({classes:c.disabled()?c.disableClass.toArray():[]}),events:(o,c)=>Ea([YS(Ii(),(g,S)=>wb(g,o)),gx(o,c,bA)])}),SA=[Di("disabled",Y),Mn("useNative",!0),Ws("disableClass"),Rs("onDisabled"),Rs("onEnabled")];const Co=dl({fields:SA,name:"disabling",active:a_,apis:c9}),Bm=(o,c,g,S)=>{const _=hl(o.element,"."+c.highlightClass);pe(_,H=>{Te(S,ve=>Jt(ve.element,H))||(Xa(H,c.highlightClass),o.getSystem().getByDom(H).each(ve=>{c.onDehighlight(o,ve),ks(ve,_y())}))})},wA=(o,c,g)=>Bm(o,c,g,[]),i_=(o,c,g,S)=>{Ux(o,c,g,S)&&(Xa(S.element,c.highlightClass),c.onDehighlight(o,S),ks(S,_y()))},Tb=(o,c,g,S)=>{Bm(o,c,g,[S]),Ux(o,c,g,S)||(ki(S.element,c.highlightClass),c.onHighlight(o,S),ks(S,Ey()))},l_=(o,c,g)=>{e1(o,c).each(S=>{Tb(o,c,g,S)})},TA=(o,c,g)=>{ST(o,c).each(S=>{Tb(o,c,g,S)})},xT=(o,c,g,S)=>{u_(o,c,g,S).fold(_=>{throw _},_=>{Tb(o,c,g,_)})},CA=(o,c,g,S)=>{const _=Wx(o,c);Ze(_,S).each(K=>{Tb(o,c,g,K)})},Ux=(o,c,g,S)=>Ji(S.element,c.highlightClass),c_=(o,c,g)=>Ai(o.element,"."+c.highlightClass).bind(S=>o.getSystem().getByDom(S).toOptional()),u_=(o,c,g,S)=>{const _=hl(o.element,"."+c.itemClass);return L.from(_[S]).fold(()=>jo.error(new Error("No element found with index "+S)),o.getSystem().getByDom)},e1=(o,c,g)=>Ai(o.element,"."+c.itemClass).bind(S=>o.getSystem().getByDom(S).toOptional()),ST=(o,c,g)=>{const S=hl(o.element,"."+c.itemClass);return(S.length>0?L.some(S[S.length-1]):L.none()).bind(H=>o.getSystem().getByDom(H).toOptional())},kA=(o,c,g,S)=>{const _=hl(o.element,"."+c.itemClass);return De(_,K=>Ji(K,c.highlightClass)).bind(K=>{const ve=k0(K,S,0,_.length-1);return o.getSystem().getByDom(_[ve]).toOptional()})},f_=(o,c,g)=>kA(o,c,g,-1),d_=(o,c,g)=>kA(o,c,g,1),Wx=(o,c,g)=>{const S=hl(o.element,"."+c.itemClass);return an(ne(S,_=>o.getSystem().getByDom(_).toOptional()))};var Dh=Object.freeze({__proto__:null,dehighlightAll:wA,dehighlight:i_,highlight:Tb,highlightFirst:l_,highlightLast:TA,highlightAt:xT,highlightBy:CA,isHighlighted:Ux,getHighlighted:c_,getFirst:e1,getLast:ST,getPrevious:f_,getNext:d_,getCandidates:Wx}),Yx=[er("highlightClass"),er("itemClass"),Rs("onHighlight"),Rs("onDehighlight")];const Ys=dl({fields:Yx,name:"highlighting",apis:Dh}),h_=[8],Qm=[9],$h=[13],Xx=[27],lf=[32],Gx=[37],Fm=[38],t1=[39],Cb=[40],wT=(o,c,g)=>{const S=te(o.slice(0,c)),_=te(o.slice(c+1));return Ze(S.concat(_),g)},m_=(o,c,g)=>{const S=te(o.slice(0,c));return Ze(S,g)},TT=(o,c,g)=>{const S=o.slice(0,c),_=o.slice(c+1);return Ze(_.concat(S),g)},g_=(o,c,g)=>{const S=o.slice(c+1);return Ze(S,g)},Ps=o=>c=>{const g=c.raw;return be(o,g.which)},cf=o=>c=>ye(o,g=>g(c)),Gg=o=>o.raw.shiftKey===!0,p_=o=>o.raw.ctrlKey===!0,n1=B(Gg),Qs=(o,c)=>({matches:o,classification:c}),v_=(o,c)=>Ze(o,S=>S.matches(c)).map(S=>S.classification),CT=(o,c,g)=>{c.exists(_=>g.exists(H=>Jt(H,_)))||vo(o,VO(),{prevFocus:c,newFocus:g})},A=()=>{const o=g=>ad(g.element);return{get:o,set:(g,S)=>{const _=o(g);g.getSystem().triggerFocus(S,g.element);const H=o(g);CT(g,_,H)}}},$=()=>{const o=g=>Ys.getHighlighted(g).map(S=>S.element);return{get:o,set:(g,S)=>{const _=o(g);g.getSystem().getByDom(S).fold(M,K=>{Ys.highlight(g,K)});const H=o(g);CT(g,_,H)}}};var j;(function(o){o.OnFocusMode="onFocus",o.OnEnterOrSpaceMode="onEnterOrSpace",o.OnApiMode="onApi"})(j||(j={}));const ce=(o,c,g,S,_)=>{const H=()=>o.concat([Mn("focusManager",A()),Tc("focusInside","onFocus",Ml(Ne=>be(["onFocus","onEnterOrSpace","onApi"],Ne)?jo.value(Ne):jo.error("Invalid value for focusInside"))),ha("handler",Ae),ha("state",c),ha("sendFocusIn",_)]),K=(Ne,Ue,Je,st,ht)=>{const At=Je(Ne,Ue,st,ht);return v_(At,Ue.event).bind(qt=>qt(Ne,Ue,st,ht))},Ae={schema:H,processKey:K,toEvents:(Ne,Ue)=>{const Je=Ne.focusInside!==j.OnFocusMode?L.none():_(Ne).map(At=>qn(Df(),(qt,Dn)=>{At(qt,Ne,Ue),Dn.stop()})),st=(At,qt)=>{const Dn=Ps(lf.concat($h))(qt.event);Ne.focusInside===j.OnEnterOrSpaceMode&&Dn&&hn(At,qt)&&_(Ne).each(mn=>{mn(At,Ne,Ue),qt.stop()})},ht=[qn(_s(),(At,qt)=>{K(At,qt,g,Ne,Ue).fold(()=>{st(At,qt)},Dn=>{qt.stop()})}),qn(Ba(),(At,qt)=>{K(At,qt,S,Ne,Ue).each(Dn=>{qt.stop()})})];return Ea(Je.toArray().concat(ht))}};return Ae},Me=o=>{const c=[Ws("onEscape"),Ws("onEnter"),Mn("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),Mn("firstTabstop",0),Mn("useTabstopAt",ie),Ws("visibilitySelector")].concat([o]),g=(mn,on)=>{const kn=mn.visibilitySelector.bind(Zn=>Vd(on,Zn)).getOr(on);return Za(kn)>0},S=(mn,on)=>{const kn=hl(mn.element,on.selector),Zn=xe(kn,mr=>g(on,mr));return L.from(Zn[on.firstTabstop])},_=(mn,on)=>on.focusManager.get(mn).bind(kn=>Vd(kn,on.selector)),H=(mn,on)=>g(mn,on)&&mn.useTabstopAt(on),K=(mn,on,kn)=>{S(mn,on).each(Zn=>{on.focusManager.set(mn,Zn)})},ve=(mn,on,kn,Zn,mr)=>mr(on,kn,Gn=>H(Zn,Gn)).fold(()=>Zn.cyclic?L.some(!0):L.none(),Gn=>(Zn.focusManager.set(mn,Gn),L.some(!0))),Ae=(mn,on,kn,Zn)=>{const mr=hl(mn.element,kn.selector);return _(mn,kn).bind(Gn=>De(mr,Q(Jt,Gn)).bind(Mr=>ve(mn,mr,Mr,kn,Zn)))},Ne=(mn,on,kn)=>{const Zn=kn.cyclic?wT:m_;return Ae(mn,on,kn,Zn)},Ue=(mn,on,kn)=>{const Zn=kn.cyclic?TT:g_;return Ae(mn,on,kn,Zn)},Je=mn=>zr(mn).bind(ko).exists(on=>Jt(on,mn)),st=(mn,on,kn)=>_(mn,kn).filter(Zn=>!kn.useTabstopAt(Zn)).bind(Zn=>(Je(Zn)?Ne:Ue)(mn,on,kn)),ht=(mn,on,kn)=>kn.onEnter.bind(Zn=>Zn(mn,on)),At=(mn,on,kn)=>kn.onEscape.bind(Zn=>Zn(mn,on)),qt=F([Qs(cf([Gg,Ps(Qm)]),Ne),Qs(Ps(Qm),Ue),Qs(cf([n1,Ps($h)]),ht)]),Dn=F([Qs(Ps(Xx),At),Qs(Ps(Qm),st)]);return ce(c,od.init,qt,Dn,()=>L.some(K))};var Ve=Me(ei("cyclic",Y)),nt=Me(ei("cyclic",ie));const Ot=(o,c,g)=>(HO(o,g,Ii()),L.some(!0)),_t=(o,c,g)=>gv(g)&&Ps(lf)(c.event)?L.none():Ot(o,c,g),Kt=(o,c)=>L.some(!0),Cn=[Mn("execute",_t),Mn("useSpace",!1),Mn("useEnter",!0),Mn("useControlEnter",!1),Mn("useDown",!1)],ir=(o,c,g)=>g.execute(o,c,o.element),$r=(o,c,g,S)=>{const _=g.useSpace&&!gv(o.element)?lf:[],H=g.useEnter?$h:[],K=g.useDown?Cb:[],ve=_.concat(H).concat(K);return[Qs(Ps(ve),ir)].concat(g.useControlEnter?[Qs(cf([p_,Ps($h)]),ir)]:[])},Rr=(o,c,g,S)=>g.useSpace&&!gv(o.element)?[Qs(Ps(lf),Kt)]:[];var Kn=ce(Cn,od.init,$r,Rr,()=>L.none());const Ir=()=>{const o=gs();return Cu({readState:()=>o.get().map(_=>({numRows:String(_.numRows),numColumns:String(_.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(_,H)=>{o.set({numRows:_,numColumns:H})},getNumRows:()=>o.get().map(_=>_.numRows),getNumColumns:()=>o.get().map(_=>_.numColumns)})};var io=Object.freeze({__proto__:null,flatgrid:Ir,init:o=>o.state(o)});const $o=o=>(c,g,S,_)=>{const H=o(c.element);return bi(H,c,g,S,_)},os=(o,c)=>{const g=bx(o,c);return $o(g)},Va=(o,c)=>{const g=bx(c,o);return $o(g)},ml=o=>(c,g,S,_)=>bi(o,c,g,S,_),bi=(o,c,g,S,_)=>S.focusManager.get(c).bind(K=>o(c.element,K,S,_)).map(K=>(S.focusManager.set(c,K),!0)),du=ml,pv=ml,vv=ml,kT=o=>o.offsetWidth<=0&&o.offsetHeight<=0,jx=o=>!kT(o.dom),Oa=(o,c)=>De(o,c).map(g=>({index:g,candidates:o})),Dc=(o,c,g)=>{const S=K=>Jt(K,c),_=hl(o,g),H=xe(_,jx);return Oa(H,S)},ql=(o,c)=>De(o,g=>Jt(c,g)),uf=(o,c,g,S)=>{const _=Math.floor(c/g),H=c%g;return S(_,H).bind(K=>{const ve=K.row*g+K.column;return ve>=0&&veuf(o,c,S,(H,K)=>{const Ae=H===g-1?o.length-H*S:S,Ne=k0(K,_,0,Ae-1);return L.some({row:H,column:Ne})}),jg=(o,c,g,S,_)=>uf(o,c,S,(H,K)=>{const ve=k0(H,_,0,g-1),Ne=ve===g-1?o.length-ve*S:S,Ue=rf(K,0,Ne-1);return L.some({row:ve,column:Ue})}),Gc=(o,c,g,S)=>Ru(o,c,g,S,1),AT=(o,c,g,S)=>Ru(o,c,g,S,-1),kb=(o,c,g,S)=>jg(o,c,g,S,-1),Lh=(o,c,g,S)=>jg(o,c,g,S,1),cc=[er("selector"),Mn("execute",_t),Eu("onEscape"),Mn("captureTab",!1),dw()],Ab=(o,c,g)=>{Ai(o.element,c.selector).each(S=>{c.focusManager.set(o,S)})},AA=(o,c)=>c.focusManager.get(o).bind(g=>Vd(g,c.selector)),PA=(o,c,g,S)=>AA(o,g).bind(_=>g.execute(o,c,_)),r1=o=>(c,g,S,_)=>Dc(c,g,S.selector).bind(H=>o(H.candidates,H.index,_.getNumRows().getOr(S.initSize.numRows),_.getNumColumns().getOr(S.initSize.numColumns))),MA=(o,c,g)=>g.captureTab?L.some(!0):L.none(),qx=(o,c,g)=>g.onEscape(o,c),EA=r1(AT),yv=r1(Gc),f9=r1(kb),HU=r1(Lh),UU=F([Qs(Ps(Gx),os(EA,yv)),Qs(Ps(t1),Va(EA,yv)),Qs(Ps(Fm),du(f9)),Qs(Ps(Cb),pv(HU)),Qs(cf([Gg,Ps(Qm)]),MA),Qs(cf([n1,Ps(Qm)]),MA),Qs(Ps(lf.concat($h)),PA)]),WU=F([Qs(Ps(Xx),qx),Qs(Ps(lf),Kt)]);var YU=ce(cc,Ir,UU,WU,()=>L.some(Ab));const d9=(o,c,g,S,_)=>{const H=ve=>Oo(ve)==="button"&&oa(ve,"disabled")==="disabled",K=(ve,Ae,Ne)=>_(ve,Ae,S,0,Ne.length-1,Ne[Ae],Ue=>H(Ne[Ue])?K(ve,Ue,Ne):L.from(Ne[Ue]));return Dc(o,g,c).bind(ve=>{const Ae=ve.index,Ne=ve.candidates;return K(Ae,Ae,Ne)})},h9=(o,c,g,S)=>d9(o,c,g,S,(_,H,K,ve,Ae,Ne,Ue)=>{const Je=rf(H+K,ve,Ae);return Je===_?L.from(Ne):Ue(Je)}),Kx=(o,c,g,S)=>d9(o,c,g,S,(_,H,K,ve,Ae,Ne,Ue)=>{const Je=k0(H,K,ve,Ae);return Je===_?L.none():Ue(Je)}),y_=[er("selector"),Mn("getInitial",L.none),Mn("execute",_t),Eu("onEscape"),Mn("executeOnMove",!1),Mn("allowVertical",!0),Mn("allowHorizontal",!0),Mn("cycles",!0)],XU=(o,c)=>c.focusManager.get(o).bind(g=>Vd(g,c.selector)),m9=(o,c,g)=>XU(o,g).bind(S=>g.execute(o,c,S)),g9=(o,c,g)=>{c.getInitial(o).orThunk(()=>Ai(o.element,c.selector)).each(S=>{c.focusManager.set(o,S)})},p9=(o,c,g)=>(g.cycles?Kx:h9)(o,g.selector,c,-1),v9=(o,c,g)=>(g.cycles?Kx:h9)(o,g.selector,c,1),fd=o=>(c,g,S,_)=>o(c,g,S,_).bind(()=>S.executeOnMove?m9(c,g,S):L.some(!0)),GU=(o,c,g)=>g.onEscape(o,c),jU=(o,c,g,S)=>{const _=[...g.allowHorizontal?Gx:[]].concat(g.allowVertical?Fm:[]),H=[...g.allowHorizontal?t1:[]].concat(g.allowVertical?Cb:[]);return[Qs(Ps(_),fd(os(p9,v9))),Qs(Ps(H),fd(Va(p9,v9))),Qs(Ps($h),m9),Qs(Ps(lf),m9)]},qU=F([Qs(Ps(lf),Kt),Qs(Ps(Xx),GU)]);var KU=ce(y_,od.init,jU,qU,()=>L.some(g9));const _A=(o,c,g)=>L.from(o[c]).bind(S=>L.from(S[g]).map(_=>({rowIndex:c,columnIndex:g,cell:_}))),Pb=(o,c,g,S)=>{const H=o[c].length,K=k0(g,S,0,H-1);return _A(o,c,K)},RA=(o,c,g,S)=>{const _=k0(g,S,0,o.length-1),H=o[_].length,K=rf(c,0,H-1);return _A(o,_,K)},y9=(o,c,g,S)=>{const H=o[c].length,K=rf(g+S,0,H-1);return _A(o,c,K)},DA=(o,c,g,S)=>{const _=rf(g+S,0,o.length-1),H=o[_].length,K=rf(c,0,H-1);return _A(o,_,K)},$A=(o,c,g)=>Pb(o,c,g,1),b_=(o,c,g)=>Pb(o,c,g,-1),JU=(o,c,g)=>RA(o,g,c,-1),eW=(o,c,g)=>RA(o,g,c,1),tW=(o,c,g)=>y9(o,c,g,-1),nW=(o,c,g)=>y9(o,c,g,1),rW=(o,c,g)=>DA(o,g,c,-1),oW=(o,c,g)=>DA(o,g,c,1),b9=[su("selectors",[er("row"),er("cell")]),Mn("cycles",!0),Mn("previousSelector",L.none),Mn("execute",_t)],O_=(o,c,g)=>{c.previousSelector(o).orThunk(()=>{const _=c.selectors;return Ai(o.element,_.cell)}).each(_=>{c.focusManager.set(o,_)})},sW=(o,c,g)=>ad(o.element).bind(S=>g.execute(o,c,S)),aW=(o,c)=>ne(o,g=>hl(g,c.selectors.cell)),LA=(o,c)=>(g,S,_)=>{const H=_.cycles?o:c;return Vd(S,_.selectors.row).bind(K=>{const ve=hl(K,_.selectors.cell);return ql(ve,S).bind(Ae=>{const Ne=hl(g,_.selectors.row);return ql(Ne,K).bind(Ue=>{const Je=aW(Ne,_);return H(Je,Ue,Ae).map(st=>st.cell)})})})},O9=LA(b_,tW),o1=LA($A,nW),x9=LA(JU,rW),iW=LA(eW,oW),x_=F([Qs(Ps(Gx),os(O9,o1)),Qs(Ps(t1),Va(O9,o1)),Qs(Ps(Fm),du(x9)),Qs(Ps(Cb),pv(iW)),Qs(Ps(lf.concat($h)),sW)]),lW=F([Qs(Ps(lf),Kt)]);var S9=ce(b9,od.init,x_,lW,()=>L.some(O_));const w9=[er("selector"),Mn("execute",_t),Mn("moveOnTab",!1)],S_=(o,c,g)=>g.focusManager.get(o).bind(S=>g.execute(o,c,S)),T9=(o,c,g)=>{Ai(o.element,c.selector).each(S=>{c.focusManager.set(o,S)})},w_=(o,c,g)=>Kx(o,g.selector,c,-1),C9=(o,c,g)=>Kx(o,g.selector,c,1),cW=(o,c,g,S)=>g.moveOnTab?vv(w_)(o,c,g,S):L.none(),uW=(o,c,g,S)=>g.moveOnTab?vv(C9)(o,c,g,S):L.none(),T_=F([Qs(Ps(Fm),vv(w_)),Qs(Ps(Cb),vv(C9)),Qs(cf([Gg,Ps(Qm)]),cW),Qs(cf([n1,Ps(Qm)]),uW),Qs(Ps($h),S_),Qs(Ps(lf),S_)]),fW=F([Qs(Ps(lf),Kt)]);var dW=ce(w9,od.init,T_,fW,()=>L.some(T9));const hW=[Eu("onSpace"),Eu("onEnter"),Eu("onShiftEnter"),Eu("onLeft"),Eu("onRight"),Eu("onTab"),Eu("onShiftTab"),Eu("onUp"),Eu("onDown"),Eu("onEscape"),Mn("stopSpaceKeyup",!1),Ws("focusIn")],mW=(o,c,g)=>[Qs(Ps(lf),g.onSpace),Qs(cf([n1,Ps($h)]),g.onEnter),Qs(cf([Gg,Ps($h)]),g.onShiftEnter),Qs(cf([Gg,Ps(Qm)]),g.onShiftTab),Qs(cf([n1,Ps(Qm)]),g.onTab),Qs(Ps(Fm),g.onUp),Qs(Ps(Cb),g.onDown),Qs(Ps(Gx),g.onLeft),Qs(Ps(t1),g.onRight),Qs(Ps(lf),g.onSpace)],k9=(o,c,g)=>[...g.stopSpaceKeyup?[Qs(Ps(lf),Kt)]:[],Qs(Ps(Xx),g.onEscape)];var gW=ce(hW,od.init,mW,k9,o=>o.focusIn);const pW=Ve.schema(),vW=nt.schema(),A9=KU.schema(),yW=YU.schema(),bW=S9.schema(),P9=Kn.schema(),OW=dW.schema(),xW=gW.schema();var IA=Object.freeze({__proto__:null,acyclic:pW,cyclic:vW,flow:A9,flatgrid:yW,matrix:bW,execution:P9,menu:OW,special:xW});const SW=o=>En(o,"setGridSize"),yo=px({branchKey:"mode",branches:IA,name:"keying",active:{events:(o,c)=>o.handler.toEvents(o,c)},apis:{focusIn:(o,c,g)=>{c.sendFocusIn(c).fold(()=>{o.getSystem().triggerFocus(o.element,o.element)},S=>{S(o,c,g)})},setGridSize:(o,c,g,S,_)=>{SW(g)?g.setGridSize(S,_):console.error("Layout does not support setGridSize")}},state:io}),hu=(o,c)=>{Ur(()=>{BE(o,c,()=>ne(c,o.getSystem().build))},o.element)},M9=(o,c)=>{Ur(()=>{QE(o,c,()=>K$(o.element,c,o.getSystem().buildOrPatch))},o.element)},E9=(o,c,g,S)=>{Z0(c);const _=ck(o.element,g,S,o.getSystem().buildOrPatch);tT(o,_),o.syncComponents()},NA=(o,c,g)=>{const S=o.getSystem().build(g);H0(o,S,c)},wW=(o,c,g,S)=>{Rh(c),NA(o,(_,H)=>ol(_,H,g),S)},_9=(o,c,g,S)=>(c.reuseDom?M9:hu)(o,S),R9=(o,c,g,S)=>{NA(o,Vc,S)},TW=(o,c,g,S)=>{NA(o,my,S)},CW=(o,c,g,S)=>{const _=BA(o);Ze(_,K=>Jt(S.element,K.element)).each(Rh)},BA=(o,c)=>o.components(),D9=(o,c,g,S,_)=>{const H=BA(o);return L.from(H[S]).map(K=>(_.fold(()=>Rh(K),ve=>{(c.reuseDom?E9:wW)(o,K,S,ve)}),K))};var AW=Object.freeze({__proto__:null,append:R9,prepend:TW,remove:CW,replaceAt:D9,replaceBy:(o,c,g,S,_)=>{const H=BA(o);return De(H,S).bind(K=>D9(o,c,g,K,_))},set:_9,contents:BA});const Uo=dl({fields:[Wi("reuseDom",!0)],name:"replacing",apis:AW}),$9=(o,c)=>{const g=Ea(c);return dl({fields:[er("enabled")],name:o,active:{events:F(g)}})},Jo=(o,c)=>{const g=$9(o,c);return{key:o,value:{config:{},me:g,configAsRaw:F({}),initialConfig:{},state:od}}},C_=(o,c)=>{c.ignore||(cu(o.element),c.onFocus(o))};var PW=Object.freeze({__proto__:null,focus:C_,blur:(o,c)=>{c.ignore||M0(o.element)},isFocused:o=>Wy(o.element)}),L9=Object.freeze({__proto__:null,exhibit:(o,c)=>{const g=c.ignore?{}:{attributes:{tabindex:"-1"}};return ku(g)},events:o=>Ea([qn(Df(),(c,g)=>{C_(c,o),g.stop()})].concat(o.stopMousedown?[qn(go(),(c,g)=>{g.event.prevent()})]:[]))}),s1=[Rs("onFocus"),Mn("stopMousedown",!1),Mn("ignore",!1)];const Mo=dl({fields:s1,name:"focusing",active:L9,apis:PW}),I9=o=>({init:()=>{const g=X(o);return{get:()=>g.get(),set:ve=>g.set(ve),clear:()=>g.set(o),readState:()=>g.get()}}}),k_=(o,c,g)=>{const S=c.aria;S.update(o,S,g.get())},EW=(o,c,g)=>{c.toggleClass.each(S=>{g.get()?ki(o.element,S):Xa(o.element,S)})},PT=(o,c,g,S)=>{const _=g.get();g.set(S),EW(o,c,g),k_(o,c,g),_!==S&&c.onToggled(o,S)},N9=(o,c,g)=>{PT(o,c,g,!g.get())},_W=(o,c,g)=>{PT(o,c,g,!0)},B9=(o,c,g)=>{PT(o,c,g,!1)},A_=(o,c,g)=>g.get(),QA=(o,c,g)=>{PT(o,c,g,c.selected)};var RW=Object.freeze({__proto__:null,onLoad:QA,toggle:N9,isOn:A_,on:_W,off:B9,set:PT}),Q9=Object.freeze({__proto__:null,exhibit:()=>ku({}),events:(o,c)=>{const g=P0(o,c,N9),S=gx(o,c,QA);return Ea(Ie([o.toggleOnExecute?[g]:[],[S]]))}});const $W=(o,c,g)=>{Dr(o.element,"aria-pressed",g),c.syncWithExpanded&&Jx(o,c,g)},LW=(o,c,g)=>{Dr(o.element,"aria-selected",g)},MT=(o,c,g)=>{Dr(o.element,"aria-checked",g)},Jx=(o,c,g)=>{Dr(o.element,"aria-expanded",g)};var F9=[Mn("selected",!1),Ws("toggleClass"),Mn("toggleOnExecute",!0),Rs("onToggled"),Tc("aria",{mode:"none"},Os("mode",{pressed:[Mn("syncWithExpanded",!1),ha("update",$W)],checked:[ha("update",MT)],expanded:[ha("update",Jx)],selected:[ha("update",LW)],none:[ha("update",M)]}))];const as=dl({fields:F9,name:"toggling",active:Q9,apis:RW,state:I9(!1)}),bv=()=>{const o=(c,g)=>{g.stop(),xm(c)};return[qn($i(),o),qn(Ac(),o),Sm(no()),Sm(go())]},Vm=o=>{const c=g=>rd((S,_)=>{g(S),_.stop()});return Ea(Ie([o.map(c).toArray(),bv()]))},V9="alloy.item-hover",z9="alloy.item-focus",P_="alloy.item-toggled",qg=o=>{(ad(o.element).isNone()||Mo.isFocused(o))&&(Mo.isFocused(o)||Mo.focus(o),vo(o,V9,{item:o}))},FA=o=>{vo(o,z9,{item:o})},IW=(o,c)=>{vo(o,P_,{item:o,state:c})},M_=F(V9),Z9=F(z9),H9=F(P_),E_=o=>o.toggling.map(c=>c.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),U9=o=>({aria:{mode:"checked"},...wt(o,(c,g)=>g!=="exclusive"),onToggled:(c,g)=>{w(o.onToggled)&&o.onToggled(c,g),IW(c,g)}}),NW=o=>({dom:o.dom,domModification:{...o.domModification,attributes:{role:E_(o),...o.domModification.attributes,"aria-haspopup":o.hasSubmenu,...o.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:If.augment(o.itemBehaviours,[o.toggling.fold(as.revoke,c=>as.config(U9(c))),Mo.config({ignore:o.ignoreFocus,stopMousedown:o.ignoreFocus,onFocus:c=>{FA(c)}}),yo.config({mode:"execution"}),Fr.config({store:{mode:"memory",initialValue:o.data}}),Jo("item-type-events",[...bv(),qn(Lr(),qg),qn(ta(),Mo.focus)])]),components:o.components,eventOrder:o.eventOrder}),BW=[er("data"),er("components"),er("dom"),Mn("hasSubmenu",!1),Ws("toggling"),If.field("itemBehaviours",[as,Mo,yo,Fr]),Mn("ignoreFocus",!1),Mn("domModification",{}),ha("builder",NW),Mn("eventOrder",{})],QW=o=>({dom:o.dom,components:o.components,events:Ea([DM(ta())])}),VA=[er("dom"),er("components"),ha("builder",QW)],ET=F("item-widget"),_T=F([ic({name:"widget",overrides:o=>({behaviours:pr([Fr.config({store:{mode:"manual",getValue:c=>o.data,setValue:M}})])})})]),FW=o=>{const c=dT(ET(),o,_T()),g=Hx(ET(),o,c.internals()),S=H=>ka(H,o,"widget").map(K=>(yo.focusIn(K),K)),_=(H,K)=>gv(K.event.target)?L.none():(()=>(o.autofocus&&K.setSource(H.element),L.none()))();return{dom:o.dom,components:g,domModification:o.domModification,events:Ea([rd((H,K)=>{S(H).each(ve=>{K.stop()})}),qn(Lr(),qg),qn(ta(),(H,K)=>{o.autofocus?S(H):Mo.focus(H)})]),behaviours:If.augment(o.widgetBehaviours,[Fr.config({store:{mode:"memory",initialValue:o.data}}),Mo.config({ignore:o.ignoreFocus,onFocus:H=>{FA(H)}}),yo.config({mode:"special",focusIn:o.autofocus?H=>{S(H)}:Tw(),onLeft:_,onRight:_,onEscape:(H,K)=>!Mo.isFocused(H)&&!o.autofocus?(Mo.focus(H),L.some(!0)):(o.autofocus&&K.setSource(H.element),L.none())})])}},VW=[er("uid"),er("data"),er("components"),er("dom"),Mn("autofocus",!1),Mn("ignoreFocus",!1),If.field("widgetBehaviours",[Fr,Mo,yo]),Mn("domModification",{}),pT(_T()),ha("builder",FW)],W9=Os("type",{widget:VW,item:BW,separator:VA}),Y9=(o,c)=>({mode:"flatgrid",selector:"."+o.markers.item,initSize:{numColumns:c.initSize.numColumns,numRows:c.initSize.numRows},focusManager:o.focusManager}),X9=(o,c)=>({mode:"matrix",selectors:{row:c.rowSelector,cell:"."+o.markers.item},previousSelector:c.previousSelector,focusManager:o.focusManager}),G9=(o,c)=>({mode:"menu",selector:"."+o.markers.item,moveOnTab:c.moveOnTab,focusManager:o.focusManager}),zW=F([yb({factory:{sketch:o=>{const c=El("menu.spec item",W9,o);return c.builder(c)}},name:"items",unit:"item",defaults:(o,c)=>vn(c,"uid")?c:{...c,uid:c0("item")},overrides:(o,c)=>({type:c.type,ignoreFocus:o.fakeFocus,domModification:{classes:[o.markers.item]}})})]),__=F([er("value"),er("items"),er("dom"),er("components"),Mn("eventOrder",{}),el("menuBehaviours",[Ys,Fr,xs,yo]),Tc("movement",{mode:"menu",moveOnTab:!0},Os("mode",{grid:[dw(),ha("config",Y9)],matrix:[ha("config",X9),er("rowSelector"),Mn("previousSelector",L.none)],menu:[Mn("moveOnTab",!0),ha("config",G9)]})),GM(),Mn("fakeFocus",!1),Mn("focusManager",A()),Rs("onHighlight"),Rs("onDehighlight")]),j9=F("alloy.menu-focus"),ZW=(o,c)=>{const g=hl(o.element,'[role="menuitemradio"][aria-checked="true"]');pe(g,S=>{Jt(S,c.element)||o.getSystem().getByDom(S).each(_=>{as.off(_)})})},HW=(o,c,g,S)=>({uid:o.uid,dom:o.dom,markers:o.markers,behaviours:Ni(o.menuBehaviours,[Ys.config({highlightClass:o.markers.selectedItem,itemClass:o.markers.item,onHighlight:o.onHighlight,onDehighlight:o.onDehighlight}),Fr.config({store:{mode:"memory",initialValue:o.value}}),xs.config({find:L.some}),yo.config(o.movement.config(o,o.movement))]),events:Ea([qn(Z9(),(_,H)=>{const K=H.event;_.getSystem().getByDom(K.target).each(ve=>{Ys.highlight(_,ve),H.stop(),vo(_,j9(),{menu:_,item:ve})})}),qn(M_(),(_,H)=>{const K=H.event.item;Ys.highlight(_,K)}),qn(H9(),(_,H)=>{const{item:K,state:ve}=H.event;ve&&oa(K.element,"role")==="menuitemradio"&&ZW(_,K)})]),components:c,eventOrder:o.eventOrder,domModification:{attributes:{role:"menu"}}}),Eb=lc({name:"Menu",configFields:__(),partFields:zW(),factory:HW}),q9=o=>et(o,(c,g)=>({k:c,v:g})),K9=(o,c,g,S)=>Bt(g,S).bind(_=>Bt(o,_).bind(H=>{const K=K9(o,c,g,H);return L.some([H].concat(K))})).getOr([]),UW=(o,c)=>{const g={};Ye(o,(K,ve)=>{pe(K,Ae=>{g[Ae]=ve})});const S=c,_=q9(c),H=je(_,(K,ve)=>[ve].concat(K9(g,S,_,ve)));return je(g,K=>Bt(H,K).getOr([K]))},J9=()=>{const o=X({}),c=X({}),g=X({}),S=gs(),_=X({}),H=()=>{o.set({}),c.set({}),g.set({}),S.clear()},K=()=>S.get().isNone(),ve=(mr,Gn)=>{c.set({...c.get(),[mr]:{type:"prepared",menu:Gn}})},Ae=(mr,Gn,Or,Mr)=>{S.set(mr),o.set(Or),c.set(Gn),_.set(Mr);const is=UW(Mr,Or);g.set(is)},Ne=mr=>Gt(o.get(),(Gn,Or)=>Gn===mr),Ue=(mr,Gn,Or)=>qt(mr).bind(Mr=>Ne(mr).bind(is=>Gn(is).map(Gr=>({triggeredMenu:Mr,triggeringItem:Gr,triggeringPath:Or})))),Je=(mr,Gn)=>{const Or=xe(mn(mr).toArray(),Mr=>qt(Mr).isSome());return Bt(g.get(),mr).bind(Mr=>{const is=te(Or.concat(Mr)),Gr=re(is,(Io,_o)=>Ue(Io,Gn,is.slice(0,_o+1)).fold(()=>ln(S.get(),Io)?[]:[L.none()],na=>[L.some(na)]));return wn(Gr)})},st=mr=>Bt(o.get(),mr).map(Gn=>{const Or=Bt(g.get(),mr).getOr([]);return[Gn].concat(Or)}),ht=mr=>Bt(g.get(),mr).bind(Gn=>Gn.length>1?L.some(Gn.slice(1)):L.none()),At=mr=>Bt(g.get(),mr),qt=mr=>Dn(mr).bind(e2),Dn=mr=>Bt(c.get(),mr),mn=mr=>Bt(o.get(),mr);return{setMenuBuilt:ve,setContents:Ae,expand:st,refresh:At,collapse:ht,lookupMenu:Dn,lookupItem:mn,otherMenus:mr=>{const Gn=_.get();return se(ct(Gn),mr)},getPrimary:()=>S.get().bind(qt),getMenus:()=>c.get(),clear:H,isClear:K,getTriggeringPath:Je}},e2=o=>o.type==="prepared"?L.some(o.menu):L.none(),eL={init:J9,extractPreparedMenu:e2},t2=Kr("tiered-menu-item-highlight"),zA=Kr("tiered-menu-item-dehighlight");var mu;(function(o){o[o.HighlightMenuAndItem=0]="HighlightMenuAndItem",o[o.HighlightJustMenu=1]="HighlightJustMenu",o[o.HighlightNone=2]="HighlightNone"})(mu||(mu={}));const tL=(o,c)=>{const g=gs(),S=(Pr,oo,No)=>je(No,(Qo,To)=>{const Yo=()=>Eb.sketch({...Qo,value:To,markers:o.markers,fakeFocus:o.fakeFocus,onHighlight:(Ma,Fs)=>{vo(Ma,t2,{menuComp:Ma,itemComp:Fs})},onDehighlight:(Ma,Fs)=>{vo(Ma,zA,{menuComp:Ma,itemComp:Fs})},focusManager:o.fakeFocus?$():A()});return To===oo?{type:"prepared",menu:Pr.getSystem().build(Yo())}:{type:"notbuilt",nbMenu:Yo}}),_=eL.init(),H=Pr=>{const oo=S(Pr,o.data.primary,o.data.menus),No=Ae();return _.setContents(o.data.primary,oo,o.data.expansions,No),_.getPrimary()},K=Pr=>Fr.getValue(Pr).value,ve=(Pr,oo,No)=>Xe(oo,Qo=>{if(!Qo.getSystem().isConnected())return L.none();const To=Ys.getCandidates(Qo);return Ze(To,Yo=>K(Yo)===No)}),Ae=Pr=>je(o.data.menus,(oo,No)=>re(oo.items,Qo=>Qo.type==="separator"?[]:[Qo.data.value])),Ne=Ys.highlight,Ue=(Pr,oo)=>{Ne(Pr,oo),Ys.getHighlighted(oo).orThunk(()=>Ys.getFirst(oo)).each(No=>{o.fakeFocus?Ys.highlight(oo,No):HO(Pr,No.element,ta())})},Je=(Pr,oo)=>an(ne(oo,No=>Pr.lookupMenu(No).bind(Qo=>Qo.type==="prepared"?L.some(Qo.menu):L.none()))),st=(Pr,oo,No)=>{const Qo=Je(oo,oo.otherMenus(No));pe(Qo,To=>{tf(To.element,[o.markers.backgroundMenu]),o.stayInDom||Uo.remove(Pr,To)})},ht=Pr=>g.get().getOrThunk(()=>{const oo={},No=hl(Pr.element,`.${o.markers.item}`),Qo=xe(No,To=>oa(To,"aria-haspopup")==="true");return pe(Qo,To=>{Pr.getSystem().getByDom(To).each(Yo=>{const Ma=K(Yo);oo[Ma]=Yo})}),g.set(oo),oo}),At=(Pr,oo)=>{const No=ht(Pr);Ye(No,(Qo,To)=>{const Yo=be(oo,To);Dr(Qo.element,"aria-expanded",Yo)})},qt=(Pr,oo,No)=>L.from(No[0]).bind(Qo=>oo.lookupMenu(Qo).bind(To=>{if(To.type==="notbuilt")return L.none();{const Yo=To.menu,Ma=Je(oo,No.slice(1));return pe(Ma,Fs=>{ki(Fs.element,o.markers.backgroundMenu)}),Js(Yo.element)||Uo.append(Pr,nf(Yo)),tf(Yo.element,[o.markers.backgroundMenu]),Ue(Pr,Yo),st(Pr,oo,No),L.some(Yo)}}));let Dn;(function(Pr){Pr[Pr.HighlightSubmenu=0]="HighlightSubmenu",Pr[Pr.HighlightParent=1]="HighlightParent"})(Dn||(Dn={}));const mn=(Pr,oo,No)=>{if(No.type==="notbuilt"){const Qo=Pr.getSystem().build(No.nbMenu());return _.setMenuBuilt(oo,Qo),Qo}else return No.menu},on=(Pr,oo,No=Dn.HighlightSubmenu)=>{if(oo.hasConfigured(Co)&&Co.isDisabled(oo))return L.some(oo);{const Qo=K(oo);return _.expand(Qo).bind(To=>(At(Pr,To),L.from(To[0]).bind(Yo=>_.lookupMenu(Yo).bind(Ma=>{const Fs=mn(Pr,Yo,Ma);return Js(Fs.element)||Uo.append(Pr,nf(Fs)),o.onOpenSubmenu(Pr,oo,Fs,te(To)),No===Dn.HighlightSubmenu?(Ys.highlightFirst(Fs),qt(Pr,_,To)):(Ys.dehighlightAll(Fs),L.some(oo))}))))}},kn=(Pr,oo)=>{const No=K(oo);return _.collapse(No).bind(Qo=>(At(Pr,Qo),qt(Pr,_,Qo).map(To=>(o.onCollapseMenu(Pr,oo,To),To))))},Zn=(Pr,oo)=>{const No=K(oo);return _.refresh(No).bind(Qo=>(At(Pr,Qo),qt(Pr,_,Qo)))},mr=(Pr,oo)=>gv(oo.element)?L.none():on(Pr,oo,Dn.HighlightSubmenu),Gn=(Pr,oo)=>gv(oo.element)?L.none():kn(Pr,oo),Or=(Pr,oo)=>kn(Pr,oo).orThunk(()=>o.onEscape(Pr,oo).map(()=>Pr)),Mr=Pr=>(oo,No)=>Vd(No.getSource(),`.${o.markers.item}`).bind(Qo=>oo.getSystem().getByDom(Qo).toOptional().bind(To=>Pr(oo,To).map(ie))),is=Ea([qn(j9(),(Pr,oo)=>{const No=oo.event.item;_.lookupItem(K(No)).each(()=>{const Qo=oo.event.menu;Ys.highlight(Pr,Qo);const To=K(oo.event.item);_.refresh(To).each(Yo=>st(Pr,_,Yo))})}),rd((Pr,oo)=>{const No=oo.event.target;Pr.getSystem().getByDom(No).each(Qo=>{K(Qo).indexOf("collapse-item")===0&&kn(Pr,Qo),on(Pr,Qo,Dn.HighlightSubmenu).fold(()=>{o.onExecute(Pr,Qo)},M)})}),Ca((Pr,oo)=>{H(Pr).each(No=>{Uo.append(Pr,nf(No)),o.onOpenMenu(Pr,No),o.highlightOnOpen===mu.HighlightMenuAndItem?Ue(Pr,No):o.highlightOnOpen===mu.HighlightJustMenu&&Ne(Pr,No)})}),qn(t2,(Pr,oo)=>{o.onHighlightItem(Pr,oo.event.menuComp,oo.event.itemComp)}),qn(zA,(Pr,oo)=>{o.onDehighlightItem(Pr,oo.event.menuComp,oo.event.itemComp)}),...o.navigateOnHover?[qn(M_(),(Pr,oo)=>{const No=oo.event.item;Zn(Pr,No),on(Pr,No,Dn.HighlightParent),o.onHover(Pr,No)})]:[]]),Gr=Pr=>Ys.getHighlighted(Pr).bind(Ys.getHighlighted),Io=Pr=>{Gr(Pr).each(oo=>{kn(Pr,oo)})},_o=Pr=>{_.getPrimary().each(oo=>{Ue(Pr,oo)})},na=Pr=>L.from(Pr.components()[0]).filter(oo=>oa(oo.element,"role")==="menu"),Ns={collapseMenu:Io,highlightPrimary:_o,repositionMenus:Pr=>{_.getPrimary().bind(No=>Gr(Pr).bind(Qo=>{const To=K(Qo),Yo=Nt(_.getMenus()),Ma=an(ne(Yo,eL.extractPreparedMenu));return _.getTriggeringPath(To,Fs=>ve(Pr,Ma,Fs))}).map(Qo=>({primary:No,triggeringPath:Qo}))).fold(()=>{na(Pr).each(No=>{o.onRepositionMenu(Pr,No,[])})},({primary:No,triggeringPath:Qo})=>{o.onRepositionMenu(Pr,No,Qo)})}};return{uid:o.uid,dom:o.dom,markers:o.markers,behaviours:Ni(o.tmenuBehaviours,[yo.config({mode:"special",onRight:Mr(mr),onLeft:Mr(Gn),onEscape:Mr(Or),focusIn:(Pr,oo)=>{_.getPrimary().each(No=>{HO(Pr,No.element,ta())})}}),Ys.config({highlightClass:o.markers.selectedMenu,itemClass:o.markers.menu}),xs.config({find:Pr=>Ys.getHighlighted(Pr)}),Uo.config({})]),eventOrder:o.eventOrder,apis:Ns,events:is}},WW=F("collapse-item"),YW=(o,c,g)=>({primary:o,menus:c,expansions:g}),nL=(o,c)=>({primary:o,menus:vt(o,c),expansions:{}}),XW=o=>({value:Kr(WW()),meta:{text:o}}),a1=_u({name:"TieredMenu",configFields:[fw("onExecute"),fw("onEscape"),zd("onOpenMenu"),zd("onOpenSubmenu"),Rs("onRepositionMenu"),Rs("onCollapseMenu"),Mn("highlightOnOpen",mu.HighlightMenuAndItem),su("data",[er("primary"),er("menus"),er("expansions")]),Mn("fakeFocus",!1),Rs("onHighlightItem"),Rs("onDehighlightItem"),Rs("onHover"),Qy(),er("dom"),Mn("navigateOnHover",!0),Mn("stayInDom",!1),el("tmenuBehaviours",[yo,Ys,xs,Uo]),Mn("eventOrder",{})],apis:{collapseMenu:(o,c)=>{o.collapseMenu(c)},highlightPrimary:(o,c)=>{o.highlightPrimary(c)},repositionMenus:(o,c)=>{o.repositionMenus(c)}},factory:tL,extraApis:{tieredData:YW,singleData:nL,collapseItem:XW}}),GW=(o,c,g,S,_)=>{const H=()=>o.lazySink(c),K=S.type==="horizontal"?{layouts:{onLtr:()=>mx(),onRtl:()=>Sw()}}:{},ve=Ne=>Ne.length===2,Ae=Ne=>ve(Ne)?K:{};return a1.sketch({dom:{tag:"div"},data:S.data,markers:S.menu.markers,highlightOnOpen:S.menu.highlightOnOpen,fakeFocus:S.menu.fakeFocus,onEscape:()=>(As.close(c),o.onEscape.map(Ne=>Ne(c)),L.some(!0)),onExecute:()=>L.some(!0),onOpenMenu:(Ne,Ue)=>{ac.positionWithinBounds(H().getOrDie(),Ue,g,_())},onOpenSubmenu:(Ne,Ue,Je,st)=>{const ht=H().getOrDie();ac.position(ht,Je,{anchor:{type:"submenu",item:Ue,...Ae(st)}})},onRepositionMenu:(Ne,Ue,Je)=>{const st=H().getOrDie();ac.positionWithinBounds(st,Ue,g,_()),pe(Je,ht=>{const At=Ae(ht.triggeringPath);ac.position(st,ht.triggeredMenu,{anchor:{type:"submenu",item:ht.triggeringItem,...At}})})}})},jW=(o,c)=>{const g=(st,ht)=>o.getRelated(st).exists(qt=>Am(qt,ht)),S=(st,ht)=>{As.setContent(st,ht)},_=(st,ht,At)=>{const qt=L.none;H(st,ht,At,qt)},H=(st,ht,At,qt)=>{const Dn=o.lazySink(st).getOrDie();As.openWhileCloaked(st,ht,()=>ac.positionWithinBounds(Dn,st,At,qt())),Fr.setValue(st,L.some({mode:"position",config:At,getBounds:qt}))},K=(st,ht,At)=>{ve(st,ht,At,L.none)},ve=(st,ht,At,qt)=>{const Dn=GW(o,st,ht,At,qt);As.open(st,Dn),Fr.setValue(st,L.some({mode:"menu",menu:Dn}))},Ae=st=>{As.isOpen(st)&&(Fr.setValue(st,L.none()),As.close(st))},Ne=st=>As.getState(st),Ue=st=>{As.isOpen(st)&&Fr.getValue(st).each(ht=>{switch(ht.mode){case"menu":As.getState(st).each(a1.repositionMenus);break;case"position":const At=o.lazySink(st).getOrDie();ac.positionWithinBounds(At,st,ht.config,ht.getBounds());break}})},Je={setContent:S,showAt:_,showWithinBounds:H,showMenuAt:K,showMenuWithinBounds:ve,hide:Ae,getContent:Ne,reposition:Ue,isOpen:As.isOpen};return{uid:o.uid,dom:o.dom,behaviours:Ni(o.inlineBehaviours,[As.config({isPartOf:(st,ht,At)=>Am(ht,At)||g(st,At),getAttachPoint:st=>o.lazySink(st).getOrDie(),onOpen:st=>{o.onShow(st)},onClose:st=>{o.onHide(st)}}),Fr.config({store:{mode:"memory",initialValue:L.none()}}),lu.config({channels:{...cb({isExtraPart:c.isExtraPart,...o.fireDismissalEventInstead.map(st=>({fireEventInstead:{event:st.event}})).getOr({})}),...W0({...o.fireRepositionEventInstead.map(st=>({fireEventInstead:{event:st.event}})).getOr({}),doReposition:Ue})}})]),eventOrder:o.eventOrder,apis:Je}},ri=_u({name:"InlineView",configFields:[er("lazySink"),Rs("onShow"),Rs("onHide"),Jf("onEscape"),el("inlineBehaviours",[As,Fr,lu]),wc("fireDismissalEventInstead",[Mn("event",Ag())]),wc("fireRepositionEventInstead",[Mn("event",KC())]),Mn("getRelated",L.none),Mn("isExtraPart",Y),Mn("eventOrder",L.none)],factory:jW,apis:{showAt:(o,c,g,S)=>{o.showAt(c,g,S)},showWithinBounds:(o,c,g,S,_)=>{o.showWithinBounds(c,g,S,_)},showMenuAt:(o,c,g,S)=>{o.showMenuAt(c,g,S)},showMenuWithinBounds:(o,c,g,S,_)=>{o.showMenuWithinBounds(c,g,S,_)},hide:(o,c)=>{o.hide(c)},isOpen:(o,c)=>o.isOpen(c),getContent:(o,c)=>o.getContent(c),setContent:(o,c,g)=>{o.setContent(c,g)},reposition:(o,c)=>{o.reposition(c)}}});var _b=tinymce.util.Tools.resolve("tinymce.util.Delay");const Dl=_u({name:"Button",factory:o=>{const c=Vm(o.action),g=o.dom.tag,S=H=>Bt(o.dom,"attributes").bind(K=>Bt(K,H)),_=()=>{if(g==="button"){const H=S("type").getOr("button"),K=S("role").map(ve=>({role:ve})).getOr({});return{type:H,...K}}else return{role:o.role.getOr(S("role").getOr("button"))}};return{uid:o.uid,dom:o.dom,components:o.components,events:c,behaviours:If.augment(o.buttonBehaviours,[Mo.config({}),yo.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:_()},eventOrder:o.eventOrder}},configFields:[Mn("uid",void 0),er("dom"),Mn("components",[]),If.field("buttonBehaviours",[Mo,yo]),Ws("action"),Ws("role"),Mn("eventOrder",{})]}),qW=o=>{const c=o.dom.attributes!==void 0?o.dom.attributes:[];return ke(c,(g,S)=>S.name==="class"?g:{...g,[S.name]:S.value},{})},KW=o=>Array.prototype.slice.call(o.dom.classList,0),Ov=o=>{const c=zt.fromHtml(o),g=qr(c),S=qW(c),_=KW(c),H=g.length===0?{}:{innerHtml:KS(c)};return{tag:Oo(c),classes:_,attributes:S,...H}},ia=o=>{const c=JE(o)&&En(o,"uid")?o.uid:c0("memento");return{get:H=>H.getSystem().getByUid(c).getOrDie(),getOpt:H=>H.getSystem().getByUid(c).toOptional(),asSpec:()=>({...o,uid:c})}},{entries:R_,setPrototypeOf:D_,isFrozen:JW,getPrototypeOf:eY,getOwnPropertyDescriptor:tY}=Object;let{freeze:Bf,seal:zm,create:nY}=Object,{apply:ZA,construct:$_}=typeof Reflect<"u"&&Reflect;ZA||(ZA=function(c,g,S){return c.apply(g,S)}),Bf||(Bf=function(c){return c}),zm||(zm=function(c){return c}),$_||($_=function(c,g){return new c(...g)});const rY=Nh(Array.prototype.forEach),oY=Nh(Array.prototype.pop),RT=Nh(Array.prototype.push),HA=Nh(String.prototype.toLowerCase),xv=Nh(String.prototype.toString),sY=Nh(String.prototype.match),Zm=Nh(String.prototype.replace),Rb=Nh(String.prototype.indexOf),oL=Nh(String.prototype.trim),Gd=Nh(RegExp.prototype.test),Ih=aY(TypeError);function Nh(o){return function(c){for(var g=arguments.length,S=new Array(g>1?g-1:0),_=1;_/gm),sL=zm(/\${[\w\W]*}/gm),fY=zm(/^data-[\-\w.\u00B7-\uFFFF]/),Q_=zm(/^aria-[\-\w]+$/),F_=zm(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),dY=zm(/^(?:\w+script|data):/i),hY=zm(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),aL=zm(/^html$/i);var YA=Object.freeze({__proto__:null,MUSTACHE_EXPR:cY,ERB_EXPR:uY,TMPLIT_EXPR:sL,DATA_ATTR:fY,ARIA_ATTR:Q_,IS_ALLOWED_URI:F_,IS_SCRIPT_OR_DATA:dY,ATTR_WHITESPACE:hY,DOCTYPE_NAME:aL});const mY=()=>typeof window>"u"?null:window,NT=function(c,g){if(typeof c!="object"||typeof c.createPolicy!="function")return null;let S=null;const _="data-tt-policy-suffix";g&&g.hasAttribute(_)&&(S=g.getAttribute(_));const H="dompurify"+(S?"#"+S:"");try{return c.createPolicy(H,{createHTML(K){return K},createScriptURL(K){return K}})}catch{return console.warn("TrustedTypes policy "+H+" could not be created."),null}};function BT(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mY();const c=ws=>BT(ws);if(c.version="3.0.5",c.removed=[],!o||!o.document||o.document.nodeType!==9)return c.isSupported=!1,c;const g=o.document,S=g.currentScript;let{document:_}=o;const{DocumentFragment:H,HTMLTemplateElement:K,Node:ve,Element:Ae,NodeFilter:Ne,NamedNodeMap:Ue=o.NamedNodeMap||o.MozNamedAttrMap,HTMLFormElement:Je,DOMParser:st,trustedTypes:ht}=o,At=Ae.prototype,qt=DT(At,"cloneNode"),Dn=DT(At,"nextSibling"),mn=DT(At,"childNodes"),on=DT(At,"parentNode");if(typeof K=="function"){const ws=_.createElement("template");ws.content&&ws.content.ownerDocument&&(_=ws.content.ownerDocument)}let kn,Zn="";const{implementation:mr,createNodeIterator:Gn,createDocumentFragment:Or,getElementsByTagName:Mr}=_,{importNode:is}=g;let Gr={};c.isSupported=typeof R_=="function"&&typeof on=="function"&&mr&&mr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Io,ERB_EXPR:_o,TMPLIT_EXPR:na,DATA_ATTR:wo,ARIA_ATTR:Ns,IS_SCRIPT_OR_DATA:Pr,ATTR_WHITESPACE:oo}=YA;let{IS_ALLOWED_URI:No}=YA,Qo=null;const To=Ds({},[...L_,...I_,...$T,...N_,...LT]);let Yo=null;const Ma=Ds({},[...UA,...WA,...B_,...IT]);let Fs=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Kl=null,vf=null,ih=!0,Kh=!0,R1=!1,iO=!0,Km=!1,Rv=!1,sC=!1,oD=!1,eS=!1,kP=!1,_z=!1,Ice=!0,Nce=!1;const cxe="user-content-";let Jne=!0,sD=!1,AP={},PP=null;const Bce=Ds({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qce=null;const Fce=Ds({},["audio","video","img","source","image","track"]);let ere=null;const Vce=Ds({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rz="http://www.w3.org/1998/Math/MathML",Dz="http://www.w3.org/2000/svg",lO="http://www.w3.org/1999/xhtml";let MP=lO,tre=!1,nre=null;const uxe=Ds({},[Rz,Dz,lO],xv);let aC;const fxe=["application/xhtml+xml","text/html"],dxe="text/html";let yf,EP=null;const hxe=_.createElement("form"),zce=function(Vn){return Vn instanceof RegExp||Vn instanceof Function},rre=function(Vn){if(!(EP&&EP===Vn)){if((!Vn||typeof Vn!="object")&&(Vn={}),Vn=Db(Vn),aC=fxe.indexOf(Vn.PARSER_MEDIA_TYPE)===-1?aC=dxe:aC=Vn.PARSER_MEDIA_TYPE,yf=aC==="application/xhtml+xml"?xv:HA,Qo="ALLOWED_TAGS"in Vn?Ds({},Vn.ALLOWED_TAGS,yf):To,Yo="ALLOWED_ATTR"in Vn?Ds({},Vn.ALLOWED_ATTR,yf):Ma,nre="ALLOWED_NAMESPACES"in Vn?Ds({},Vn.ALLOWED_NAMESPACES,xv):uxe,ere="ADD_URI_SAFE_ATTR"in Vn?Ds(Db(Vce),Vn.ADD_URI_SAFE_ATTR,yf):Vce,Qce="ADD_DATA_URI_TAGS"in Vn?Ds(Db(Fce),Vn.ADD_DATA_URI_TAGS,yf):Fce,PP="FORBID_CONTENTS"in Vn?Ds({},Vn.FORBID_CONTENTS,yf):Bce,Kl="FORBID_TAGS"in Vn?Ds({},Vn.FORBID_TAGS,yf):{},vf="FORBID_ATTR"in Vn?Ds({},Vn.FORBID_ATTR,yf):{},AP="USE_PROFILES"in Vn?Vn.USE_PROFILES:!1,ih=Vn.ALLOW_ARIA_ATTR!==!1,Kh=Vn.ALLOW_DATA_ATTR!==!1,R1=Vn.ALLOW_UNKNOWN_PROTOCOLS||!1,iO=Vn.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Km=Vn.SAFE_FOR_TEMPLATES||!1,Rv=Vn.WHOLE_DOCUMENT||!1,eS=Vn.RETURN_DOM||!1,kP=Vn.RETURN_DOM_FRAGMENT||!1,_z=Vn.RETURN_TRUSTED_TYPE||!1,oD=Vn.FORCE_BODY||!1,Ice=Vn.SANITIZE_DOM!==!1,Nce=Vn.SANITIZE_NAMED_PROPS||!1,Jne=Vn.KEEP_CONTENT!==!1,sD=Vn.IN_PLACE||!1,No=Vn.ALLOWED_URI_REGEXP||F_,MP=Vn.NAMESPACE||lO,Fs=Vn.CUSTOM_ELEMENT_HANDLING||{},Vn.CUSTOM_ELEMENT_HANDLING&&zce(Vn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Fs.tagNameCheck=Vn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Vn.CUSTOM_ELEMENT_HANDLING&&zce(Vn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Fs.attributeNameCheck=Vn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Vn.CUSTOM_ELEMENT_HANDLING&&typeof Vn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Fs.allowCustomizedBuiltInElements=Vn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Km&&(Kh=!1),kP&&(eS=!0),AP&&(Qo=Ds({},[...LT]),Yo=[],AP.html===!0&&(Ds(Qo,L_),Ds(Yo,UA)),AP.svg===!0&&(Ds(Qo,I_),Ds(Yo,WA),Ds(Yo,IT)),AP.svgFilters===!0&&(Ds(Qo,$T),Ds(Yo,WA),Ds(Yo,IT)),AP.mathMl===!0&&(Ds(Qo,N_),Ds(Yo,B_),Ds(Yo,IT))),Vn.ADD_TAGS&&(Qo===To&&(Qo=Db(Qo)),Ds(Qo,Vn.ADD_TAGS,yf)),Vn.ADD_ATTR&&(Yo===Ma&&(Yo=Db(Yo)),Ds(Yo,Vn.ADD_ATTR,yf)),Vn.ADD_URI_SAFE_ATTR&&Ds(ere,Vn.ADD_URI_SAFE_ATTR,yf),Vn.FORBID_CONTENTS&&(PP===Bce&&(PP=Db(PP)),Ds(PP,Vn.FORBID_CONTENTS,yf)),Jne&&(Qo["#text"]=!0),Rv&&Ds(Qo,["html","head","body"]),Qo.table&&(Ds(Qo,["tbody"]),delete Kl.tbody),Vn.TRUSTED_TYPES_POLICY){if(typeof Vn.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ih('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Vn.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ih('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');kn=Vn.TRUSTED_TYPES_POLICY,Zn=kn.createHTML("")}else kn===void 0&&(kn=NT(ht,S)),kn!==null&&typeof Zn=="string"&&(Zn=kn.createHTML(""));Bf&&Bf(Vn),EP=Vn}},Zce=Ds({},["mi","mo","mn","ms","mtext"]),Hce=Ds({},["foreignobject","desc","title","annotation-xml"]),mxe=Ds({},["title","style","font","a","script"]),$z=Ds({},I_);Ds($z,$T),Ds($z,iY);const ore=Ds({},N_);Ds(ore,lY);const gxe=function(Vn){let ho=on(Vn);(!ho||!ho.tagName)&&(ho={namespaceURI:MP,tagName:"template"});const Fo=HA(Vn.tagName),nl=HA(ho.tagName);return nre[Vn.namespaceURI]?Vn.namespaceURI===Dz?ho.namespaceURI===lO?Fo==="svg":ho.namespaceURI===Rz?Fo==="svg"&&(nl==="annotation-xml"||Zce[nl]):!!$z[Fo]:Vn.namespaceURI===Rz?ho.namespaceURI===lO?Fo==="math":ho.namespaceURI===Dz?Fo==="math"&&Hce[nl]:!!ore[Fo]:Vn.namespaceURI===lO?ho.namespaceURI===Dz&&!Hce[nl]||ho.namespaceURI===Rz&&!Zce[nl]?!1:!ore[Fo]&&(mxe[Fo]||!$z[Fo]):!!(aC==="application/xhtml+xml"&&nre[Vn.namespaceURI]):!1},iC=function(Vn){RT(c.removed,{element:Vn});try{Vn.parentNode.removeChild(Vn)}catch{Vn.remove()}},aD=function(Vn,ho){try{RT(c.removed,{attribute:ho.getAttributeNode(Vn),from:ho})}catch{RT(c.removed,{attribute:null,from:ho})}if(ho.removeAttribute(Vn),Vn==="is"&&!Yo[Vn])if(eS||kP)try{iC(ho)}catch{}else try{ho.setAttribute(Vn,"")}catch{}},Uce=function(Vn){let ho,Fo;if(oD)Vn=""+Vn;else{const mp=sY(Vn,/^[\r\n\t ]+/);Fo=mp&&mp[0]}aC==="application/xhtml+xml"&&MP===lO&&(Vn=''+Vn+"");const nl=kn?kn.createHTML(Vn):Vn;if(MP===lO)try{ho=new st().parseFromString(nl,aC)}catch{}if(!ho||!ho.documentElement){ho=mr.createDocument(MP,"template",null);try{ho.documentElement.innerHTML=tre?Zn:nl}catch{}}const bf=ho.body||ho.documentElement;return Vn&&Fo&&bf.insertBefore(_.createTextNode(Fo),bf.childNodes[0]||null),MP===lO?Mr.call(ho,Rv?"html":"body")[0]:Rv?ho.documentElement:bf},Wce=function(Vn){return Gn.call(Vn.ownerDocument||Vn,Vn,Ne.SHOW_ELEMENT|Ne.SHOW_COMMENT|Ne.SHOW_TEXT,null,!1)},pxe=function(Vn){return Vn instanceof Je&&(typeof Vn.nodeName!="string"||typeof Vn.textContent!="string"||typeof Vn.removeChild!="function"||!(Vn.attributes instanceof Ue)||typeof Vn.removeAttribute!="function"||typeof Vn.setAttribute!="function"||typeof Vn.namespaceURI!="string"||typeof Vn.insertBefore!="function"||typeof Vn.hasChildNodes!="function")},Lz=function(Vn){return typeof ve=="object"?Vn instanceof ve:Vn&&typeof Vn=="object"&&typeof Vn.nodeType=="number"&&typeof Vn.nodeName=="string"},cO=function(Vn,ho,Fo){Gr[Vn]&&rY(Gr[Vn],nl=>{nl.call(c,ho,Fo,EP)})},Yce=function(Vn){let ho;if(cO("beforeSanitizeElements",Vn,null),pxe(Vn))return iC(Vn),!0;const Fo=yf(Vn.nodeName);if(cO("uponSanitizeElement",Vn,{tagName:Fo,allowedTags:Qo}),Vn.hasChildNodes()&&!Lz(Vn.firstElementChild)&&(!Lz(Vn.content)||!Lz(Vn.content.firstElementChild))&&Gd(/<[/\w]/g,Vn.innerHTML)&&Gd(/<[/\w]/g,Vn.textContent))return iC(Vn),!0;if(!Qo[Fo]||Kl[Fo]){if(!Kl[Fo]&&Gce(Fo)&&(Fs.tagNameCheck instanceof RegExp&&Gd(Fs.tagNameCheck,Fo)||Fs.tagNameCheck instanceof Function&&Fs.tagNameCheck(Fo)))return!1;if(Jne&&!PP[Fo]){const nl=on(Vn)||Vn.parentNode,bf=mn(Vn)||Vn.childNodes;if(bf&&nl){const mp=bf.length;for(let dc=mp-1;dc>=0;--dc)nl.insertBefore(qt(bf[dc],!0),Dn(Vn))}}return iC(Vn),!0}return Vn instanceof Ae&&!gxe(Vn)||(Fo==="noscript"||Fo==="noembed"||Fo==="noframes")&&Gd(/<\/no(script|embed|frames)/i,Vn.innerHTML)?(iC(Vn),!0):(Km&&Vn.nodeType===3&&(ho=Vn.textContent,ho=Zm(ho,Io," "),ho=Zm(ho,_o," "),ho=Zm(ho,na," "),Vn.textContent!==ho&&(RT(c.removed,{element:Vn.cloneNode()}),Vn.textContent=ho)),cO("afterSanitizeElements",Vn,null),!1)},Xce=function(Vn,ho,Fo){if(Ice&&(ho==="id"||ho==="name")&&(Fo in _||Fo in hxe))return!1;if(!(Kh&&!vf[ho]&&Gd(wo,ho))){if(!(ih&&Gd(Ns,ho))){if(!Yo[ho]||vf[ho]){if(!(Gce(Vn)&&(Fs.tagNameCheck instanceof RegExp&&Gd(Fs.tagNameCheck,Vn)||Fs.tagNameCheck instanceof Function&&Fs.tagNameCheck(Vn))&&(Fs.attributeNameCheck instanceof RegExp&&Gd(Fs.attributeNameCheck,ho)||Fs.attributeNameCheck instanceof Function&&Fs.attributeNameCheck(ho))||ho==="is"&&Fs.allowCustomizedBuiltInElements&&(Fs.tagNameCheck instanceof RegExp&&Gd(Fs.tagNameCheck,Fo)||Fs.tagNameCheck instanceof Function&&Fs.tagNameCheck(Fo))))return!1}else if(!ere[ho]){if(!Gd(No,Zm(Fo,oo,""))){if(!((ho==="src"||ho==="xlink:href"||ho==="href")&&Vn!=="script"&&Rb(Fo,"data:")===0&&Qce[Vn])){if(!(R1&&!Gd(Pr,Zm(Fo,oo,"")))){if(Fo)return!1}}}}}}return!0},Gce=function(Vn){return Vn.indexOf("-")>0},jce=function(Vn){let ho,Fo,nl,bf;cO("beforeSanitizeAttributes",Vn,null);const{attributes:mp}=Vn;if(!mp)return;const dc={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Yo};for(bf=mp.length;bf--;){ho=mp[bf];const{name:gp,namespaceURI:sre}=ho;Fo=gp==="value"?ho.value:oL(ho.value);const yxe=Fo;if(nl=yf(gp),dc.attrName=nl,dc.attrValue=Fo,dc.keepAttr=!0,dc.forceKeepAttr=void 0,cO("uponSanitizeAttribute",Vn,dc),Fo=dc.attrValue,dc.forceKeepAttr)continue;if(!dc.keepAttr){aD(gp,Vn);continue}if(!iO&&Gd(/\/>/i,Fo)){aD(gp,Vn);continue}Km&&(Fo=Zm(Fo,Io," "),Fo=Zm(Fo,_o," "),Fo=Zm(Fo,na," "));const qce=yf(Vn.nodeName);if(!Xce(qce,nl,Fo)){aD(gp,Vn);continue}if(Nce&&(nl==="id"||nl==="name")&&(aD(gp,Vn),Fo=cxe+Fo),kn&&typeof ht=="object"&&typeof ht.getAttributeType=="function"&&!sre)switch(ht.getAttributeType(qce,nl)){case"TrustedHTML":{Fo=kn.createHTML(Fo);break}case"TrustedScriptURL":{Fo=kn.createScriptURL(Fo);break}}if(Fo!==yxe)try{sre?Vn.setAttributeNS(sre,gp,Fo):Vn.setAttribute(gp,Fo)}catch{aD(gp,Vn)}}cO("afterSanitizeAttributes",Vn,null)},vxe=function ws(Vn){let ho;const Fo=Wce(Vn);for(cO("beforeSanitizeShadowDOM",Vn,null);ho=Fo.nextNode();)cO("uponSanitizeShadowNode",ho,null),!Yce(ho)&&(ho.content instanceof H&&ws(ho.content),jce(ho));cO("afterSanitizeShadowDOM",Vn,null)};return c.sanitize=function(ws){let Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ho,Fo,nl,bf;if(tre=!ws,tre&&(ws=""),typeof ws!="string"&&!Lz(ws))if(typeof ws.toString=="function"){if(ws=ws.toString(),typeof ws!="string")throw Ih("dirty is not a string, aborting")}else throw Ih("toString is not a function");if(!c.isSupported)return ws;if(sC||rre(Vn),c.removed=[],typeof ws=="string"&&(sD=!1),sD){if(ws.nodeName){const gp=yf(ws.nodeName);if(!Qo[gp]||Kl[gp])throw Ih("root node is forbidden and cannot be sanitized in-place")}}else if(ws instanceof ve)ho=Uce(""),Fo=ho.ownerDocument.importNode(ws,!0),Fo.nodeType===1&&Fo.nodeName==="BODY"||Fo.nodeName==="HTML"?ho=Fo:ho.appendChild(Fo);else{if(!eS&&!Km&&!Rv&&ws.indexOf("<")===-1)return kn&&_z?kn.createHTML(ws):ws;if(ho=Uce(ws),!ho)return eS?null:_z?Zn:""}ho&&oD&&iC(ho.firstChild);const mp=Wce(sD?ws:ho);for(;nl=mp.nextNode();)Yce(nl)||(nl.content instanceof H&&vxe(nl.content),jce(nl));if(sD)return ws;if(eS){if(kP)for(bf=Or.call(ho.ownerDocument);ho.firstChild;)bf.appendChild(ho.firstChild);else bf=ho;return(Yo.shadowroot||Yo.shadowrootmode)&&(bf=is.call(g,bf,!0)),bf}let dc=Rv?ho.outerHTML:ho.innerHTML;return Rv&&Qo["!doctype"]&&ho.ownerDocument&&ho.ownerDocument.doctype&&ho.ownerDocument.doctype.name&&Gd(aL,ho.ownerDocument.doctype.name)&&(dc=" +`+dc),Km&&(dc=Zm(dc,Io," "),dc=Zm(dc,_o," "),dc=Zm(dc,na," ")),kn&&_z?kn.createHTML(dc):dc},c.setConfig=function(ws){rre(ws),sC=!0},c.clearConfig=function(){EP=null,sC=!1},c.isValidAttribute=function(ws,Vn,ho){EP||rre({});const Fo=yf(ws),nl=yf(Vn);return Xce(Fo,nl,ho)},c.addHook=function(ws,Vn){typeof Vn=="function"&&(Gr[ws]=Gr[ws]||[],RT(Gr[ws],Vn))},c.removeHook=function(ws){if(Gr[ws])return oY(Gr[ws])},c.removeHooks=function(ws){Gr[ws]&&(Gr[ws]=[])},c.removeAllHooks=function(){Gr={}},c}var iL=BT();const V_=o=>iL().sanitize(o);var dd=tinymce.util.Tools.resolve("tinymce.util.I18n");const gY={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},lL="temporary-placeholder",z_=o=>()=>Bt(o,lL).getOr("!not found!"),QT=(o,c)=>{const g=o.toLowerCase();if(dd.isRtl()){const S=He(g,"-rtl");return vn(c,S)?S:g}else return g},Z_=(o,c)=>Bt(c,QT(o,c)),H_=(o,c)=>{const g=c();return Z_(o,g).getOrThunk(z_(g))},U_=(o,c,g)=>{const S=c();return Z_(o,S).or(g).getOrThunk(z_(S))},pY=o=>dd.isRtl()?vn(gY,o):!1,XA=()=>Jo("add-focusable",[Ca(o=>{ix(o.element,"svg").each(c=>Dr(c,"focusable","false"))})]),cL=(o,c,g,S)=>{var _,H;const K=pY(c)?["tox-icon--flip"]:[],ve=Bt(g,QT(c,g)).or(S).getOrThunk(z_(g));return{dom:{tag:o.tag,attributes:(_=o.attributes)!==null&&_!==void 0?_:{},classes:o.classes.concat(K),innerHtml:ve},behaviours:pr([...(H=o.behaviours)!==null&&H!==void 0?H:[],XA()])}},Bh=(o,c,g,S=L.none())=>cL(c,o,g(),S),vY=(o,c,g)=>{const S=g(),_=Ze(o,H=>vn(S,QT(H,S)));return cL(c,_.getOr(lL),S,L.none())},uL={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},W_=_u({name:"Notification",factory:o=>{const c=ia({dom:Ov(`

    ${V_(o.translationProvider(o.text))}

    `),behaviours:pr([Uo.config({})])}),g=ht=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${ht}%`}}}),S=ht=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${ht}%`}}),_=ia({dom:{tag:"div",classes:o.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[g(0)]},S(0)],behaviours:pr([Uo.config({})])}),ve={updateProgress:(ht,At)=>{ht.getSystem().isConnected()&&_.getOpt(ht).each(qt=>{Uo.set(qt,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[g(At)]},S(At)])})},updateText:(ht,At)=>{if(ht.getSystem().isConnected()){const qt=c.get(ht);Uo.set(qt,[yi(At)])}}},Ae=Ie([o.icon.toArray(),o.level.toArray(),o.level.bind(ht=>L.from(uL[ht])).toArray()]),Ne=ia(Dl.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[Bh("close",{tag:"span",classes:["tox-icon"],attributes:{"aria-label":o.translationProvider("Close")}},o.iconProvider)],action:ht=>{o.onAction(ht)}})),Ue=vY(Ae,{tag:"div",classes:["tox-notification__icon"]},o.iconProvider),Je={dom:{tag:"div",classes:["tox-notification__body"]},components:[c.asSpec()],behaviours:pr([Uo.config({})])},st=[Ue,Je];return{uid:o.uid,dom:{tag:"div",attributes:{role:"alert"},classes:o.level.map(ht=>["tox-notification","tox-notification--in",`tox-notification--${ht}`]).getOr(["tox-notification","tox-notification--in"])},behaviours:pr([Mo.config({}),Jo("notification-events",[qn(Do(),ht=>{Ne.getOpt(ht).each(Mo.focus)})])]),components:st.concat(o.progress?[_.asSpec()]:[]).concat(o.closeButton?[Ne.asSpec()]:[]),apis:ve}},configFields:[Ws("level"),er("progress"),Ws("icon"),er("onAction"),er("text"),er("iconProvider"),er("translationProvider"),Wi("closeButton",!0)],apis:{updateProgress:(o,c,g)=>{o.updateProgress(c,g)},updateText:(o,c,g)=>{o.updateText(c,g)}}});var Y_=(o,c,g)=>{const S=c.backstage.shared,_=()=>{const Ae=ui(zt.fromDom(o.getContentAreaContainer())),Ne=Vl(),Ue=rf(Ne.x,Ae.x,Ae.right),Je=rf(Ne.y,Ae.y,Ae.bottom),st=Math.max(Ae.right,Ne.right),ht=Math.max(Ae.bottom,Ne.bottom);return L.some(Ja(Ue,Je,st-Ue,ht-Je))};return{open:(Ae,Ne)=>{const Ue=()=>{Ne(),ri.hide(st)},Je=oc(W_.sketch({text:Ae.text,level:be(["success","error","warning","warn","info"],Ae.type)?Ae.type:void 0,progress:Ae.progressBar===!0,icon:Ae.icon,closeButton:Ae.closeButton,onAction:Ue,iconProvider:S.providers.icons,translationProvider:S.providers.translate})),st=oc(ri.sketch({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:S.getSink,fireDismissalEventInstead:{},...S.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}}}));g.add(st),T(Ae.timeout)&&Ae.timeout>0&&_b.setEditorTimeout(o,()=>{Ue()},Ae.timeout);const At={close:Ue,reposition:()=>{const qt=nf(Je),Dn={maxHeightFunction:R0()},mn=o.notificationManager.getNotifications();if(mn[0]===At){const on={...S.anchors.banner(),overrides:Dn};ri.showWithinBounds(st,qt,{anchor:on},_)}else ee(mn,At).each(on=>{const kn=mn[on-1].getEl(),Zn={type:"node",root:ya(),node:L.some(zt.fromDom(kn)),overrides:Dn,layouts:{onRtl:()=>[fl],onLtr:()=>[fl]}};ri.showWithinBounds(st,qt,{anchor:Zn},_)})},text:qt=>{W_.updateText(Je,qt)},settings:Ae,getEl:()=>Je.element.dom,progressBar:{value:qt=>{W_.updateProgress(Je,qt)}}};return At},close:Ae=>{Ae.close()},getArgs:Ae=>Ae.settings}},$b=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),fL=tinymce.util.Tools.resolve("tinymce.EditorManager"),n2=tinymce.util.Tools.resolve("tinymce.Env"),Qf;(function(o){o.default="wrap",o.floating="floating",o.sliding="sliding",o.scrolling="scrolling"})(Qf||(Qf={}));var FT;(function(o){o.auto="auto",o.top="top",o.bottom="bottom"})(FT||(FT={}));const _a=o=>c=>c.options.get(o),VT=o=>c=>L.from(o(c)),dL=o=>{const c=n2.deviceType.isPhone(),g=n2.deviceType.isTablet()||c,S=o.options.register,_=K=>m(K)||K===!1,H=K=>m(K)||T(K);S("skin",{processor:K=>m(K)||K===!1,default:"oxide"}),S("skin_url",{processor:"string"}),S("height",{processor:H,default:Math.max(o.getElement().offsetHeight,400)}),S("width",{processor:H,default:$b.DOM.getStyle(o.getElement(),"width")}),S("min_height",{processor:"number",default:100}),S("min_width",{processor:"number"}),S("max_height",{processor:"number"}),S("max_width",{processor:"number"}),S("style_formats",{processor:"object[]"}),S("style_formats_merge",{processor:"boolean",default:!1}),S("style_formats_autohide",{processor:"boolean",default:!1}),S("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),S("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),S("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),S("font_size_input_default_unit",{processor:"string",default:"pt"}),S("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),S("content_langs",{processor:"object[]"}),S("removed_menuitems",{processor:"string",default:""}),S("menubar",{processor:K=>m(K)||b(K),default:!c}),S("menu",{processor:"object",default:{}}),S("toolbar",{processor:K=>b(K)||m(K)||v(K)?{value:K,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),Be(9,K=>{S("toolbar"+(K+1),{processor:"string"})}),S("toolbar_mode",{processor:"string",default:g?"scrolling":"floating"}),S("toolbar_groups",{processor:"object",default:{}}),S("toolbar_location",{processor:"string",default:FT.auto}),S("toolbar_persist",{processor:"boolean",default:!1}),S("toolbar_sticky",{processor:"boolean",default:o.inline}),S("toolbar_sticky_offset",{processor:"number",default:0}),S("fixed_toolbar_container",{processor:"string",default:""}),S("fixed_toolbar_container_target",{processor:"object"}),S("ui_mode",{processor:"string",default:"combined"}),S("file_picker_callback",{processor:"function"}),S("file_picker_validator_handler",{processor:"function"}),S("file_picker_types",{processor:"string"}),S("typeahead_urls",{processor:"boolean",default:!0}),S("anchor_top",{processor:_,default:"#top"}),S("anchor_bottom",{processor:_,default:"#bottom"}),S("draggable_modal",{processor:"boolean",default:!1}),S("statusbar",{processor:"boolean",default:!0}),S("elementpath",{processor:"boolean",default:!0}),S("branding",{processor:"boolean",default:!0}),S("promotion",{processor:"boolean",default:!0}),S("resize",{processor:K=>K==="both"||b(K),default:!n2.deviceType.isTouch()}),S("sidebar_show",{processor:"string"}),S("help_accessibility",{processor:"boolean",default:o.hasPlugin("help")}),S("default_font_stack",{processor:"string[]",default:[]})},hL=_a("readonly"),GA=_a("height"),zT=_a("width"),X_=VT(_a("min_width")),r2=VT(_a("min_height")),jA=VT(_a("max_width")),G_=VT(_a("max_height")),mL=VT(_a("style_formats")),gL=_a("style_formats_merge"),pL=_a("style_formats_autohide"),vL=_a("content_langs"),j_=_a("removed_menuitems"),o2=_a("toolbar_mode"),yL=_a("toolbar_groups"),ZT=_a("toolbar_location"),Lb=_a("fixed_toolbar_container"),yY=_a("fixed_toolbar_container_target"),bL=_a("toolbar_persist"),qA=_a("toolbar_sticky_offset"),q_=_a("menubar"),KA=_a("toolbar"),OL=_a("file_picker_callback"),K_=_a("file_picker_validator_handler"),xL=_a("font_size_input_default_unit"),J_=_a("file_picker_types"),e8=_a("typeahead_urls"),JA=_a("anchor_top"),SL=_a("anchor_bottom"),t8=_a("draggable_modal"),wL=_a("statusbar"),s2=_a("elementpath"),n8=_a("branding"),TL=_a("resize"),e5=_a("paste_as_text"),t5=_a("sidebar_show"),CL=_a("promotion"),n5=_a("help_accessibility"),kL=_a("default_font_stack"),r8=o=>o.options.get("skin")===!1,a2=o=>o.options.get("menubar")!==!1,r5=o=>{const c=o.options.get("skin_url");if(r8(o))return c;if(c)return o.documentBaseURI.toAbsolute(c);{const g=o.options.get("skin");return fL.baseURL+"/skins/ui/"+g}},o8=o=>L.from(o.options.get("skin_url")),AL=o=>o.options.get("line_height_formats").split(" "),o5=o=>{const c=KA(o),g=m(c),S=v(c)&&c.length>0;return!HT(o)&&(S||g||c===!0)},s8=o=>{const c=Be(9,S=>o.options.get("toolbar"+(S+1))),g=xe(c,m);return it(g.length>0,g)},HT=o=>s8(o).fold(()=>{const c=KA(o);return R(c,m)&&c.length>0},ie),a8=o=>ZT(o)===FT.bottom,PL=o=>{var c;if(!o.inline)return L.none();const g=(c=Lb(o))!==null&&c!==void 0?c:"";if(g.length>0)return Ai(ya(),g);const S=yY(o);return C(S)?L.some(zt.fromDom(S)):L.none()},i2=o=>o.inline&&PL(o).isSome(),i8=o=>PL(o).getOrThunk(()=>Xs(es(zt.fromDom(o.getElement())))),l8=o=>o.inline&&!a2(o)&&!o5(o)&&!HT(o),UT=o=>(o.options.get("toolbar_sticky")||o.inline)&&!i2(o)&&!l8(o),Kg=o=>!i2(o)&&o.options.get("ui_mode")==="split",ML=o=>{const c=o.options.get("menu");return je(c,g=>({...g,items:g.items}))};var bY=Object.freeze({__proto__:null,get ToolbarMode(){return Qf},get ToolbarLocation(){return FT},register:dL,getSkinUrl:r5,getSkinUrlOption:o8,isReadOnly:hL,isSkinDisabled:r8,getHeightOption:GA,getWidthOption:zT,getMinWidthOption:X_,getMinHeightOption:r2,getMaxWidthOption:jA,getMaxHeightOption:G_,getUserStyleFormats:mL,shouldMergeStyleFormats:gL,shouldAutoHideStyleFormats:pL,getLineHeightFormats:AL,getContentLanguages:vL,getRemovedMenuItems:j_,isMenubarEnabled:a2,isMultipleToolbars:HT,isToolbarEnabled:o5,isToolbarPersist:bL,getMultipleToolbarsOption:s8,getUiContainer:i8,useFixedContainer:i2,isSplitUiMode:Kg,getToolbarMode:o2,isDraggableModal:t8,isDistractionFree:l8,isStickyToolbar:UT,getStickyToolbarOffset:qA,getToolbarLocation:ZT,isToolbarLocationBottom:a8,getToolbarGroups:yL,getMenus:ML,getMenubar:q_,getToolbar:KA,getFilePickerCallback:OL,getFilePickerTypes:J_,useTypeaheadUrls:e8,getAnchorTop:JA,getAnchorBottom:SL,getFilePickerValidatorHandler:K_,getFontSizeInputDefaultUnit:xL,useStatusBar:wL,useElementPath:s2,promotionEnabled:CL,useBranding:n8,getResize:TL,getPasteAsText:e5,getSidebarShow:t5,useHelpAccessibility:n5,getDefaultFontStack:kL});const EL="[data-mce-autocompleter]",c8=o=>Vd(o,EL),OY=o=>Ai(o,EL),xY={setup:(o,c)=>{const g=(_,H)=>{vo(_,_s(),{raw:H})},S=()=>o.getMenu().bind(Ys.getHighlighted);c.on("keydown",_=>{const H=_.which;o.isActive()&&(o.isMenuOpen()?H===13?(S().each(xm),_.preventDefault()):H===40?(S().fold(()=>{o.getMenu().each(Ys.highlightFirst)},K=>{g(K,_)}),_.preventDefault(),_.stopImmediatePropagation()):(H===37||H===38||H===39)&&S().each(K=>{g(K,_),_.preventDefault(),_.stopImmediatePropagation()}):(H===13||H===38||H===40)&&o.cancelIfNecessary())}),c.on("NodeChange",_=>{o.isActive()&&!o.isProcessingAction()&&c8(zt.fromDom(_.element)).isNone()&&o.cancelIfNecessary()})}};var u8;(function(o){o[o.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",o[o.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(u8||(u8={}));var Hm=u8;const f8="tox-menu-nav__js",l2="tox-collection__item",d8="tox-swatch",SY={normal:f8,color:d8},_L="tox-collection__item--enabled",wY="tox-collection__group-heading",RL="tox-collection__item-icon",h8="tox-collection__item-label",TY="tox-collection__item-accessory",DL="tox-collection__item-caret",CY="tox-collection__item-checkmark",WT="tox-collection__item--active",$L="tox-collection__item-container",kY="tox-collection__item-container--column",LL="tox-collection__item-container--row",s5="tox-collection__item-container--align-right",AY="tox-collection__item-container--align-left",m8="tox-collection__item-container--valign-top",PY="tox-collection__item-container--valign-middle",MY="tox-collection__item-container--valign-bottom",IL=o=>Bt(SY,o).getOr(f8),NL=o=>o==="color"?"tox-swatches":"tox-menu",g8=o=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:NL(o),tieredMenu:"tox-tiered-menu"}),Sv=o=>{const c=g8(o);return{backgroundMenu:c.backgroundMenu,selectedMenu:c.selectedMenu,menu:c.menu,selectedItem:c.selectedItem,item:IL(o)}},p8=(o,c,g)=>{const S=g8(g);return{tag:"div",classes:Ie([[S.menu,`tox-menu-${c}-column`],o?[S.hasIcons]:[]])}},BL=[Eb.parts.items({})],c2=(o,c,g)=>{const S=g8(g);return{dom:{tag:"div",classes:Ie([[S.tieredMenu]])},markers:Sv(g)}},YT=F([Ws("data"),Mn("inputAttributes",{}),Mn("inputStyles",{}),Mn("tag","input"),Mn("inputClasses",[]),Rs("onSetValue"),Mn("styles",{}),Mn("eventOrder",{}),el("inputBehaviours",[Fr,Mo]),Mn("selectOnFocus",!0)]),v8=o=>pr([Mo.config({onFocus:o.selectOnFocus?c=>{const g=c.element,S=Ch(g);g.dom.setSelectionRange(0,S.length)}:M})]),Jg=o=>({...v8(o),...Ni(o.inputBehaviours,[Fr.config({store:{mode:"manual",...o.data.map(c=>({initialValue:c})).getOr({}),getValue:c=>Ch(c.element),setValue:(c,g)=>{Ch(c.element)!==g&&b0(c.element,g)}},onSetValue:o.onSetValue})])}),a5=o=>({tag:o.tag,attributes:{type:"text",...o.inputAttributes},styles:o.inputStyles,classes:o.inputClasses}),EY=(o,c)=>({uid:o.uid,dom:a5(o),components:[],behaviours:Jg(o),eventOrder:o.eventOrder}),Ib=_u({name:"Input",configFields:YT(),factory:EY}),QL=Kr("refetch-trigger-event"),FL=Kr("redirect-menu-item-interaction"),u2="tox-menu__searcher",i5=o=>Ai(o.element,`.${u2}`).bind(c=>o.getSystem().getByDom(c).toOptional()),y8=i5,b8=(o,c)=>{Fr.setValue(o,c.fetchPattern),o.element.dom.selectionStart=c.selectionStart,o.element.dom.selectionEnd=c.selectionEnd},VL=o=>{const c=Fr.getValue(o),g=o.element.dom.selectionStart,S=o.element.dom.selectionEnd;return{fetchPattern:c,selectionStart:g,selectionEnd:S}},O8=(o,c)=>{Ri(c.element,"id").each(g=>Dr(o.element,"aria-activedescendant",g))},x8=o=>{const c=(_,H)=>(H.cut(),L.none()),g=(_,H)=>{const K={interactionEvent:H.event,eventType:H.event.raw.type};return vo(_,FL,K),L.some(!0)},S="searcher-events";return{dom:{tag:"div",classes:[l2]},components:[Ib.sketch({inputClasses:[u2,"tox-textfield"],inputAttributes:{...o.placeholder.map(_=>({placeholder:o.i18n(_)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:pr([Jo(S,[qn(di(),_=>{ks(_,QL)}),qn(_s(),(_,H)=>{H.event.raw.key==="Escape"&&H.stop()})]),yo.config({mode:"special",onLeft:c,onRight:c,onSpace:c,onEnter:g,onEscape:g,onUp:g,onDown:g})]),eventOrder:{keydown:[S,yo.name()]}})]}},l5="tox-collection--results__js",S8=o=>{var c;return o.dom?{...o,dom:{...o.dom,attributes:{...(c=o.dom.attributes)!==null&&c!==void 0?c:{},id:Kr("aria-item-search-result-id"),"aria-selected":"false"}}}:o},c5=(o,c)=>g=>{const S=ge(g,c);return ne(S,_=>({dom:o,components:_}))},_Y=o=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[Eb.parts.items({preprocess:o!=="auto"?c5({tag:"div",classes:["tox-swatches__row"]},o):z})]}]}),RY=o=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[Eb.parts.items({preprocess:c5({tag:"div",classes:["tox-collection__group"]},o)})]}),zL=(o,c)=>{const g=[];let S=[];return pe(o,(_,H)=>{c(_,H)?(S.length>0&&g.push(S),S=[],(vn(_.dom,"innerHtml")||_.components&&_.components.length>0)&&S.push(_)):S.push(_)}),S.length>0&&g.push(S),ne(g,_=>({dom:{tag:"div",classes:["tox-collection__group"]},components:_}))},w8=(o,c,g)=>Eb.parts.items({preprocess:S=>{const _=ne(S,g);return o!=="auto"&&o>1?c5({tag:"div",classes:["tox-collection__group"]},o)(_):zL(_,(H,K)=>c[K].type==="separator")}}),ZL=(o,c,g=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(o===1?["tox-collection--list"]:["tox-collection--grid"])},components:[w8(o,c,z)]}),DY=(o,c,g=!0)=>{const S=Kr("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",l5].concat(o===1?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:S}},components:[w8(o,c,S8)]}},HL=(o,c,g)=>{const S=Kr("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(o===1?["tox-collection--list"]:["tox-collection--grid"])},components:[x8({i18n:dd.translate,placeholder:g.placeholder}),{dom:{tag:"div",classes:[...o===1?["tox-collection--list"]:["tox-collection--grid"],l5],attributes:{id:S}},components:[w8(o,c,S8)]}]}},UL=(o,c=!0)=>({dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[Eb.parts.items({preprocess:g=>zL(g,(S,_)=>o[_].type==="separator")})]}),u5=o=>Te(o,c=>"icon"in c&&c.icon!==void 0),ep=o=>(console.error(Zl(o)),console.log(o),L.none()),XT=(o,c,g,S,_)=>{const H=UL(g);return{value:o,dom:H.dom,components:H.components,items:g}},f5=(o,c,g,S,_)=>{const H=()=>_.menuType!=="searchable"?ZL(S,g):_.searchMode.searchMode==="search-with-field"?HL(S,g,_.searchMode):DY(S,g);if(_.menuType==="color"){const K=_Y(S);return{value:o,dom:K.dom,components:K.components,items:g}}else if(_.menuType==="normal"&&S==="auto"){const K=ZL(S,g);return{value:o,dom:K.dom,components:K.components,items:g}}else if(_.menuType==="normal"||_.menuType==="searchable"){const K=H();return{value:o,dom:K.dom,components:K.components,items:g}}else if(_.menuType==="listpreview"&&S!=="auto"){const K=RY(S);return{value:o,dom:K.dom,components:K.components,items:g}}else return{value:o,dom:p8(c,S,_.menuType),components:BL,items:g}},Gi=zs("type"),T8=zs("name"),d5=zs("label"),wv=zs("text"),WL=zs("title"),C8=zs("icon"),f2=zs("value"),YL=qu("fetch"),XL=qu("getSubmenuItems"),d2=qu("onAction"),$Y=qu("onItemAction"),i1=Di("onSetup",()=>M),k8=ll("name"),tp=ll("text"),hd=ll("icon"),GT=ll("tooltip"),h5=ll("label"),LY=ll("shortcut"),A8=Jf("select"),m5=Wi("active",!1),GL=Wi("borderless",!1),jd=Wi("enabled",!0),np=Wi("primary",!1),jL=o=>Mn("columns",o),jT=Mn("meta",{}),h2=Di("onAction",M),Nb=o=>nd("type",o),g5=o=>il("name","name",Ef(()=>Kr(`${o}-name`)),al),qL=o=>il("value","value",Ef(()=>Kr(`${o}-value`)),vi()),P8=uo([Gi,tp]),M8=o=>da("separatormenuitem",P8,o),KL=uo([Nb("autocompleteitem"),m5,jd,jT,f2,tp,hd]),IY=o=>da("Autocompleter.Separator",P8,o),JL=o=>da("Autocompleter.Item",KL,o),m2=[jd,GT,hd,tp,i1],eI=uo([Gi,d2].concat(m2)),E8=o=>da("toolbarbutton",eI,o),_8=[m5].concat(m2),tI=uo(_8.concat([Gi,d2])),nI=o=>da("ToggleButton",tI,o),rI=[Di("predicate",Y),Hc("scope","node",["node","editor"]),Hc("position","selection",["node","selection","line"])],NY=m2.concat([Nb("contextformbutton"),np,d2,ei("original",z)]),BY=_8.concat([Nb("contextformbutton"),np,d2,ei("original",z)]),oI=m2.concat([Nb("contextformbutton")]),qT=_8.concat([Nb("contextformtogglebutton")]),sI=Os("type",{contextformbutton:NY,contextformtogglebutton:BY}),QY=uo([Nb("contextform"),Di("initValue",F("")),h5,rc("commands",sI),au("launch",Os("type",{contextformbutton:oI,contextformtogglebutton:qT}))].concat(rI)),FY=o=>da("ContextForm",QY,o),VY=uo([Nb("contexttoolbar"),zs("items")].concat(rI)),zY=o=>da("ContextToolbar",VY,o),ZY=[Gi,zs("src"),ll("alt"),Cc("classes",[],al)],p5=uo(ZY),HY=[Gi,wv,k8,Cc("classes",["tox-collection__item-label"],al)],aI=uo(HY),iI=sl(()=>lr("type",{cardimage:p5,cardtext:aI,cardcontainer:lI})),lI=uo([Gi,nd("direction","horizontal"),nd("align","left"),nd("valign","middle"),rc("items",iI)]),Bb=[jd,tp,LY,qL("menuitem"),jT],UY=uo([Gi,h5,rc("items",iI),i1,h2].concat(Bb)),cI=o=>da("cardmenuitem",UY,o),uI=uo([Gi,m5,hd].concat(Bb)),fI=o=>da("choicemenuitem",uI,o),R8=[Gi,zs("fancytype"),h2],WY=[Mn("initData",{})].concat(R8),YY=[Jf("select"),D("initData",{},[Wi("allowCustomColors",!0),nd("storageKey","default"),Id("colors",vi())])].concat(R8),XY=Os("fancytype",{inserttable:WY,colorswatch:YY}),GY=o=>da("fancymenuitem",XY,o),dI=uo([Gi,i1,h2,hd].concat(Bb)),hI=o=>da("menuitem",dI,o),jY=uo([Gi,XL,i1,hd].concat(Bb)),qY=o=>da("nestedmenuitem",jY,o),KY=uo([Gi,hd,m5,i1,d2].concat(Bb)),JY=o=>da("togglemenuitem",KY,o),D8=(o,c,g)=>{const S=hl(o.element,"."+g);if(S.length>0){const _=De(S,H=>{const K=H.dom.getBoundingClientRect().top,ve=S[0].dom.getBoundingClientRect().top;return Math.abs(K-ve)>c}).getOr(S.length);return L.some({numColumns:_,numRows:Math.ceil(S.length/_)})}else return L.none()},$8=(o,c)=>pr([Jo(o,c)]),KT={namedEvents:$8,unnamedEvents:o=>$8(Kr("unnamed-events"),o)},v5=Kr("tooltip.exclusive"),g2=Kr("tooltip.show"),JT=Kr("tooltip.hide"),mI=(o,c,g)=>{o.getSystem().broadcastOn([v5],{})};var tX=Object.freeze({__proto__:null,hideAllExclusive:mI,setComponents:(o,c,g,S)=>{g.getTooltip().each(_=>{_.getSystem().isConnected()&&Uo.set(_,S)})}}),gI=Object.freeze({__proto__:null,events:(o,c)=>{const g=_=>{c.getTooltip().each(H=>{Rh(H),o.onHide(_,H),c.clearTooltip()}),c.clearTimer()},S=_=>{if(!c.isShowing()){mI(_);const H=o.lazySink(_).getOrDie(),K=_.getSystem().build({dom:o.tooltipDom,components:o.tooltipComponents,events:Ea(o.mode==="normal"?[qn(Lr(),ve=>{ks(_,g2)}),qn(ti(),ve=>{ks(_,JT)})]:[]),behaviours:pr([Uo.config({})])});c.setTooltip(K),Hg(H,K),o.onShow(_,K),ac.position(H,K,{anchor:o.anchor(_)})}};return Ea(Ie([[qn(g2,_=>{c.resetTimer(()=>{S(_)},o.delay)}),qn(JT,_=>{c.resetTimer(()=>{g(_)},o.delay)}),qn(Wl(),(_,H)=>{const K=H;K.universal||be(K.channels,v5)&&g(_)}),Sh(_=>{g(_)})],o.mode==="normal"?[qn(Do(),_=>{ks(_,g2)}),qn(Ul(),_=>{ks(_,JT)}),qn(Lr(),_=>{ks(_,g2)}),qn(ti(),_=>{ks(_,JT)})]:[qn(Ey(),(_,H)=>{ks(_,g2)}),qn(_y(),_=>{ks(_,JT)})]]))}}),pI=[er("lazySink"),er("tooltipDom"),Mn("exclusive",!0),Mn("tooltipComponents",[]),Mn("delay",300),Hc("mode","normal",["normal","follow-highlight"]),Mn("anchor",o=>({type:"hotspot",hotspot:o,layouts:{onLtr:F([fl,Mc,ul,Yc,Gl,sc]),onRtl:F([fl,Mc,ul,Yc,Gl,sc])}})),Rs("onHide"),Rs("onShow")],rX=Object.freeze({__proto__:null,init:()=>{const o=gs(),c=gs(),g=()=>{o.on(clearTimeout)},S=(H,K)=>{g(),o.set(setTimeout(H,K))},_=F("not-implemented");return Cu({getTooltip:c.get,isShowing:c.isSet,setTooltip:c.set,clearTooltip:c.clear,clearTimer:g,resetTimer:S,readState:_})}});const vI=dl({fields:pI,name:"tooltipping",active:gI,state:rX,apis:tX}),oX=o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),yI="silver.readonly",L8=uo([US("readonly")]),y5=(o,c)=>{const S=o.mainUi.outerContainer.element,_=[o.mainUi.mothership,...o.uiMotherships];c&&pe(_,H=>{H.broadcastOn([Wd()],{target:S})}),pe(_,H=>{H.broadcastOn([yI],{readonly:c})})},bI=(o,c)=>{o.on("init",()=>{o.mode.isReadOnly()&&y5(c,!0)}),o.on("SwitchMode",()=>y5(c,o.mode.isReadOnly())),hL(o)&&o.mode.set("readonly")},gl=()=>lu.config({channels:{[yI]:{schema:L8,onReceive:(o,c)=>{Co.set(o,c.readonly)}}}}),tl={item:o=>Co.config({disabled:o,disableClass:"tox-collection__item--state-disabled"}),button:o=>Co.config({disabled:o}),splitButton:o=>Co.config({disabled:o,disableClass:"tox-tbtn--disabled"}),toolbarButton:o=>Co.config({disabled:o,disableClass:"tox-tbtn--disabled",useNative:!1})},md=(o,c)=>{const g=o.getApi(c);return S=>{S(g)}},l1=(o,c)=>Ca(g=>{md(o,g)(_=>{const H=o.onSetup(_);w(H)&&c.set(H)})}),rp=(o,c)=>Sh(g=>md(o,g)(c.get())),I8=(o,c)=>rd((g,S)=>{md(o,g)(o.onAction),!o.triggersSubmenu&&c===Hm.CLOSE_ON_EXECUTE&&(g.getSystem().isConnected()&&ks(g,Ju()),S.stop())}),aX={[Ii()]:["disabling","alloy.base.behaviour","toggling","item-events"]},p2=an,op=(o,c,g,S)=>{const _=X(M);return{type:"item",dom:c.dom,components:p2(c.optComponents),data:o.data,eventOrder:aX,hasSubmenu:o.triggersSubmenu,itemBehaviours:pr([Jo("item-events",[I8(o,g),l1(o,_),rp(o,_)]),tl.item(()=>!o.enabled||S.isDisabled()),gl(),Uo.config({})].concat(o.itemBehaviours))}},Tv=o=>({value:o.value,meta:{text:o.text.getOr(""),...o.meta}}),b5=o=>{const c=n2.os.isMacOS()||n2.os.isiOS(),_=c?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},H=o.split("+"),K=ne(H,ve=>{const Ae=ve.toLowerCase().trim();return vn(_,Ae)?_[Ae]:ve});return c?K.join(""):K.join("+")},N8=(o,c,g=[RL])=>Bh(o,{tag:"div",classes:g},c),Qh=o=>({dom:{tag:"div",classes:[h8]},components:[yi(dd.translate(o))]}),OI=(o,c)=>({dom:{tag:"div",classes:c,innerHtml:o}}),iX=(o,c)=>({dom:{tag:"div",classes:[h8]},components:[{dom:{tag:o.tag,styles:o.styles},components:[yi(dd.translate(c))]}]}),qd=o=>({dom:{tag:"div",classes:[TY]},components:[yi(b5(o))]}),v2=o=>N8("checkmark",o,[CY]),Fh=o=>N8("chevron-right",o,[DL]),lX=o=>N8("chevron-down",o,[DL]),xa=(o,c)=>{const g=o.direction==="vertical"?kY:LL,S=o.align==="left"?AY:s5;return{dom:{tag:"div",classes:[$L,g,S,(()=>{switch(o.valign){case"top":return m8;case"middle":return PY;case"bottom":return MY}})()]},components:c}},y2=(o,c,g)=>({dom:{tag:"img",classes:c,attributes:{src:o,alt:g.getOr("")}}}),O5=(o,c,g)=>{const S="custom",_="remove",H=o.ariaLabel,K=o.value,ve=o.iconContent.map(Ne=>U_(Ne,c.icons,g));return{dom:(()=>{const Ne=d8,Ue=ve.getOr(""),st={tag:"div",attributes:H.map(ht=>({title:c.translate(ht)})).getOr({}),classes:[Ne]};return K===S?{...st,tag:"button",classes:[...st.classes,"tox-swatches__picker-btn"],innerHtml:Ue}:K===_?{...st,classes:[...st.classes,"tox-swatch--remove"],innerHtml:Ue}:C(K)?{...st,attributes:{...st.attributes,"data-mce-color":K},styles:{"background-color":K},innerHtml:Ue}:st})(),optComponents:[]}},B8=o=>{const c=o.map(g=>({attributes:{title:dd.translate(g),id:Kr("menu-item")}})).getOr({});return{tag:"div",classes:[f8,l2],...c}},Q8=(o,c,g,S)=>{const _={tag:"div",classes:[RL]},H=st=>Bh(st,_,c.icons,S),K=()=>L.some({dom:_}),ve=g?o.iconContent.map(H).orThunk(K):L.none(),Ae=o.checkMark,Ne=L.from(o.meta).fold(()=>Qh,st=>vn(st,"style")?Q(iX,st.style):Qh),Ue=o.htmlContent.fold(()=>o.textContent.map(Ne),st=>L.some(OI(st,[h8])));return{dom:B8(o.ariaLabel),optComponents:[ve,Ue,o.shortcutContent.map(qd),Ae,o.caret]}},Qb=(o,c,g,S=L.none())=>o.presets==="color"?O5(o,c,S):Q8(o,c,g,S),xI=(o,c)=>Bt(o,"tooltipWorker").map(g=>[vI.config({lazySink:c.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:S=>({type:"submenu",item:S,overrides:{maxHeightFunction:R0}}),mode:"follow-highlight",onShow:(S,_)=>{g(H=>{vI.setComponents(S,[fk({element:zt.fromDom(H)})])})}})]).getOr([]),F8=o=>$b.DOM.encode(o),SI=(o,c)=>{const g=dd.translate(o),S=F8(g);if(c.length>0){const _=new RegExp(oX(c),"gi");return S.replace(_,H=>`${H}`)}else return S},wI=(o,c,g,S,_,H,K,ve=!0)=>{const Ae=Qb({presets:S,textContent:L.none(),htmlContent:g?o.text.map(Ne=>SI(Ne,c)):L.none(),ariaLabel:o.text,iconContent:o.icon,shortcutContent:L.none(),checkMark:L.none(),caret:L.none(),value:o.value},K.providers,ve,o.icon);return op({data:Tv(o),enabled:o.enabled,getApi:F({}),onAction:Ne=>_(o.value,o.meta),onSetup:F(M),triggersSubmenu:!1,itemBehaviours:xI(o.meta,K)},Ae,H,K.providers)},V8=(o,c)=>ne(o,g=>{switch(g.type){case"cardcontainer":return xa(g,V8(g.items,c));case"cardimage":return y2(g.src,g.classes,g.alt);case"cardtext":const _=g.name.exists(H=>be(c.cardText.highlightOn,H))?L.from(c.cardText.matchText).getOr(""):"";return OI(SI(g.text,_),g.classes)}}),z8=(o,c,g,S)=>{const _=K=>({isEnabled:()=>!Co.isDisabled(K),setEnabled:ve=>{Co.set(K,!ve),pe(hl(K.element,"*"),Ae=>{K.getSystem().getByDom(Ae).each(Ne=>{Ne.hasConfigured(Co)&&Co.set(Ne,!ve)})})}}),H={dom:B8(o.label),optComponents:[L.some({dom:{tag:"div",classes:[$L,LL]},components:V8(o.items,S)})]};return op({data:Tv({text:L.none(),...o}),enabled:o.enabled,getApi:_,onAction:o.onAction,onSetup:o.onSetup,triggersSubmenu:!1,itemBehaviours:L.from(S.itemBehaviours).getOr([])},H,c,g.providers)},TI=(o,c,g,S,_,H,K,ve=!0)=>{const Ae=Ue=>({setActive:Je=>{as.set(Ue,Je)},isActive:()=>as.isOn(Ue),isEnabled:()=>!Co.isDisabled(Ue),setEnabled:Je=>Co.set(Ue,!Je)}),Ne=Qb({presets:g,textContent:c?o.text:L.none(),htmlContent:L.none(),ariaLabel:o.text,iconContent:o.icon,shortcutContent:c?o.shortcut:L.none(),checkMark:c?L.some(v2(K.icons)):L.none(),caret:L.none(),value:o.value},K,ve);return Ta(op({data:Tv(o),enabled:o.enabled,getApi:Ae,onAction:Ue=>S(o.value),onSetup:Ue=>(Ue.setActive(_),M),triggersSubmenu:!1,itemBehaviours:[]},Ne,H,K),{toggling:{toggleClass:_L,toggleOnExecute:!1,selected:o.active,exclusive:!0}})},e3=Im(ET(),_T()),CI=o=>({value:MI(o)}),kI=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,AI=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,PI=o=>kI.test(o)||AI.test(o),MI=o=>Dt(o,"#").toUpperCase(),EI=o=>PI(o)?L.some({value:MI(o)}):L.none(),cX=o=>({value:o.value.replace(kI,(g,S,_,H)=>S+S+_+_+H+H)}),uX=o=>{const c=cX(o),g=AI.exec(c.value);return g===null?["FFFFFF","FF","FF","FF"]:g},x5=o=>{const c=o.toString(16);return(c.length===1?"0"+c:c).toUpperCase()},b2=o=>{const c=x5(o.red)+x5(o.green)+x5(o.blue);return CI(c)},_I=Math.min,RI=Math.max,t3=Math.round,DI=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,$I=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,c1=(o,c,g,S)=>({red:o,green:c,blue:g,alpha:S}),Z8=o=>{const c=parseInt(o,10);return c.toString()===o&&c>=0&&c<=255},LI=o=>{let c,g,S;const _=(o.hue||0)%360;let H=o.saturation/100,K=o.value/100;if(H=RI(0,_I(H,1)),K=RI(0,_I(K,1)),H===0)return c=g=S=t3(255*K),c1(c,g,S,1);const ve=_/60,Ae=K*H,Ne=Ae*(1-Math.abs(ve%2-1)),Ue=K-Ae;switch(Math.floor(ve)){case 0:c=Ae,g=Ne,S=0;break;case 1:c=Ne,g=Ae,S=0;break;case 2:c=0,g=Ae,S=Ne;break;case 3:c=0,g=Ne,S=Ae;break;case 4:c=Ne,g=0,S=Ae;break;case 5:c=Ae,g=0,S=Ne;break;default:c=g=S=0}return c=t3(255*(c+Ue)),g=t3(255*(g+Ue)),S=t3(255*(S+Ue)),c1(c,g,S,1)},n3=o=>{const c=uX(o),g=parseInt(c[1],16),S=parseInt(c[2],16),_=parseInt(c[3],16);return c1(g,S,_,1)},II=(o,c,g,S)=>{const _=parseInt(o,10),H=parseInt(c,10),K=parseInt(g,10),ve=parseFloat(S);return c1(_,H,K,ve)},H8=o=>{if(o==="transparent")return L.some(c1(0,0,0,0));const c=DI.exec(o);if(c!==null)return L.some(II(c[1],c[2],c[3],"1"));const g=$I.exec(o);return g!==null?L.some(II(g[1],g[2],g[3],g[4])):L.none()},U8=o=>`rgba(${o.red},${o.green},${o.blue},${o.alpha})`,Kd=c1(255,0,0,1),fX=o=>{o.dispatch("SkinLoaded")},W8=(o,c)=>{o.dispatch("SkinLoadError",c)},NI=o=>{o.dispatch("ResizeEditor")},S5=(o,c)=>{o.dispatch("ResizeContent",c)},dX=(o,c)=>{o.dispatch("ScrollContent",c)},Y8=(o,c)=>{o.dispatch("TextColorChange",c)},BI=(o,c)=>{o.dispatch("AfterProgressState",{state:c})},QI=(o,c)=>o.dispatch("ResolveName",{name:c.nodeName.toLowerCase(),target:c}),hX=(o,c)=>{o.dispatch("ToggleToolbarDrawer",{state:c})},mX=(o,c)=>{o.dispatch("StylesTextUpdate",c)},gX=(o,c)=>{o.dispatch("AlignTextUpdate",c)},pX=(o,c)=>{o.dispatch("FontSizeTextUpdate",c)},vX=(o,c)=>{o.dispatch("FontSizeInputTextUpdate",c)},FI=(o,c)=>{o.dispatch("BlocksTextUpdate",c)},VI=(o,c)=>{o.dispatch("FontFamilyTextUpdate",c)},r3=(o,c)=>()=>{o(),c()},gu=o=>Vh(o,"NodeChange",c=>{c.setEnabled(o.selection.isEditable())}),yX=(o,c)=>g=>{const S=Em(),_=()=>{g.setActive(o.formatter.match(c));const H=o.formatter.formatChanged(c,g.setActive);S.set(H)};return o.initialized?_():o.once("init",_),()=>{o.off("init",_),S.clear()}},w5=(o,c)=>g=>{const S=gu(o)(g),_=yX(o,c)(g);return()=>{S(),_()}},Vh=(o,c,g)=>S=>{const _=()=>g(S),H=()=>{g(S),o.on(c,_)};return o.initialized?H():o.once("init",H),()=>{o.off("init",H),o.off(c,_)}},zI=o=>c=>()=>{o.undoManager.transact(()=>{o.focus(),o.execCommand("mceToggleFormat",!1,c.format)})},ff=(o,c)=>()=>o.execCommand(c);var u1=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const X8={},G8=(o,c=10)=>{const g=u1.getItem(o),S=m(g)?JSON.parse(g):[],H=(Ne=>c-Ne.length<0?Ne.slice(0,c):Ne)(S),K=Ne=>{ee(H,Ne).each(ve),H.unshift(Ne),H.length>c&&H.pop(),u1.setItem(o,JSON.stringify(H))},ve=Ne=>{H.splice(Ne,1)};return{add:K,state:()=>H.slice(0)}},T5=o=>Bt(X8,o).getOrThunk(()=>{const c=`tinymce-custom-colors-${o}`,g=u1.getItem(c);if(k(g)){const _=u1.getItem("tinymce-custom-colors");u1.setItem(c,C(_)?_:"[]")}const S=G8(c,10);return X8[o]=S,S}),j8=o=>ne(T5(o).state(),c=>({type:"choiceitem",text:c,icon:"checkmark",value:c})),q8=(o,c)=>{T5(o).add(c)},o3=(o,c,g)=>({hue:o,saturation:c,value:g}),C5=o=>{let c=0,g=0,S=0;const _=o.red/255,H=o.green/255,K=o.blue/255,ve=Math.min(_,Math.min(H,K)),Ae=Math.max(_,Math.max(H,K));if(ve===Ae)return S=ve,o3(0,0,S*100);const Ne=_===ve?H-K:K===ve?_-H:K-_;return c=_===ve?3:K===ve?1:5,c=60*(c-Ne/(Ae-ve)),g=(Ae-ve)/Ae,S=Ae,o3(Math.round(c),Math.round(g*100),Math.round(S*100))},bX=o=>C5(n3(o)),ZI=o=>b2(LI(o)),OX=o=>EI(o).orThunk(()=>H8(o).map(b2)).getOrThunk(()=>{const c=document.createElement("canvas");c.height=1,c.width=1;const g=c.getContext("2d");g.clearRect(0,0,c.width,c.height),g.fillStyle="#FFFFFF",g.fillStyle=o,g.fillRect(0,0,1,1);const S=g.getImageData(0,0,1,1).data,_=S[0],H=S[1],K=S[2],ve=S[3];return b2(c1(_,H,K,ve))}),k5="forecolor",A5="hilitecolor",HI=5,xX=o=>{const c=[];for(let g=0;gc=>c.options.get(o),K8="#000000",SX=o=>{const c=o.options.register,g=_=>R(_,m)?{value:xX(_),valid:!0}:{valid:!1,message:"Must be an array of strings."},S=_=>T(_)&&_>0?{value:_,valid:!0}:{valid:!1,message:"Must be a positive number."};c("color_map",{processor:g,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),c("color_map_background",{processor:g}),c("color_map_foreground",{processor:g}),c("color_cols",{processor:S,default:J8(o)}),c("color_cols_foreground",{processor:S,default:UI(o,k5)}),c("color_cols_background",{processor:S,default:UI(o,A5)}),c("custom_colors",{processor:"boolean",default:!0}),c("color_default_foreground",{processor:"string",default:K8}),c("color_default_background",{processor:"string",default:K8})},P5=(o,c)=>c===k5&&o.options.isSet("color_map_foreground")?sp("color_map_foreground")(o):c===A5&&o.options.isSet("color_map_background")?sp("color_map_background")(o):sp("color_map")(o),J8=(o,c="default")=>Math.max(HI,Math.ceil(Math.sqrt(P5(o,c).length))),UI=(o,c)=>{const g=sp("color_cols")(o),S=J8(o,c);return g===J8(o)?S:g},WI=(o,c="default")=>Math.round((()=>c===k5?sp("color_cols_foreground")(o):c===A5?sp("color_cols_background")(o):sp("color_cols")(o))()),YI=sp("custom_colors"),wX=sp("color_default_foreground"),TX=sp("color_default_background"),XI="rgba(0, 0, 0, 0)",CX=o=>H8(o).exists(c=>c.alpha!==0),kX=o=>tn(o,c=>{if(St(c)){const g=Qa(c,"background-color");return it(CX(g),g)}else return L.none()}).getOr(XI),GI=(o,c)=>{const g=zt.fromDom(o.selection.getStart()),S=c==="hilitecolor"?kX(g):Qa(g,"color");return H8(S).map(_=>"#"+b2(_).value)},AX=(o,c,g)=>{o.undoManager.transact(()=>{o.focus(),o.formatter.apply(c,{value:g}),o.nodeChanged()})},PX=(o,c)=>{o.undoManager.transact(()=>{o.focus(),o.formatter.remove(c,{value:null},void 0,!0),o.nodeChanged()})},M5=o=>{o.addCommand("mceApplyTextcolor",(c,g)=>{AX(o,c,g)}),o.addCommand("mceRemoveTextcolor",c=>{PX(o,c)})},e6=o=>{const c="choiceitem",g={type:c,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return o?[g,{type:c,text:"Custom color",icon:"color-picker",value:"custom"}]:[g]},t6=(o,c,g,S)=>{g==="custom"?JI(o)(H=>{H.each(K=>{q8(c,K),o.execCommand("mceApplyTextcolor",c,K),S(K)})},GI(o,c).getOr(K8)):g==="remove"?(S(""),o.execCommand("mceRemoveTextcolor",c)):(S(g),o.execCommand("mceApplyTextcolor",c,g))},n6=(o,c,g)=>o.concat(j8(c).concat(e6(g))),jI=(o,c,g)=>S=>{S(n6(o,c,g))},r6=(o,c,g)=>{const S=c==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";o.setIconFill(S,g)},qI=(o,c)=>{o.setTooltip(c)},KI=(o,c)=>g=>{const S=GI(o,c);return ln(S,g.toUpperCase())},s3=(o,c,g)=>{if(nn(g))return c==="forecolor"?"Text color":"Background color";const S=c==="forecolor"?"Text color {0}":"Background color {0}",_=n6(P5(o,c),c,!1),H=Ze(_,K=>K.value===g).getOr({text:""}).text;return o.translate([S,o.translate(H)])},o6=(o,c,g,S)=>{o.ui.registry.addSplitButton(c,{tooltip:s3(o,g,S.get()),presets:"color",icon:c==="forecolor"?"text-color":"highlight-bg-color",select:KI(o,g),columns:WI(o,g),fetch:jI(P5(o,g),g,YI(o)),onAction:_=>{t6(o,g,S.get(),M)},onItemAction:(_,H)=>{t6(o,g,H,K=>{S.set(K),Y8(o,{name:c,color:K})})},onSetup:_=>{r6(_,c,S.get());const H=K=>{K.name===c&&(r6(_,K.name,K.color),qI(_,s3(o,g,K.color)))};return o.on("TextColorChange",H),r3(gu(o)(_),()=>{o.off("TextColorChange",H)})}})},s6=(o,c,g,S,_)=>{o.ui.registry.addNestedMenuItem(c,{text:S,icon:c==="forecolor"?"text-color":"highlight-bg-color",onSetup:H=>(qI(H,s3(o,g,_.get())),r6(H,c,_.get()),gu(o)(H)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:KI(o,g),initData:{storageKey:g},onAction:H=>{t6(o,g,H.value,K=>{_.set(K),Y8(o,{name:c,color:K})})}}]})},JI=o=>(c,g)=>{let S=!1;const _=ve=>{const Ne=ve.getData().colorpicker;S?(c(L.from(Ne)),ve.close()):o.windowManager.alert(o.translate(["Invalid hex color code: {0}",Ne]))},H=(ve,Ae)=>{Ae.name==="hex-valid"&&(S=Ae.value)},K={colorpicker:g};o.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:K,onAction:H,onSubmit:_,onClose:M,onCancel:()=>{c(L.none())}})},a6=o=>{M5(o);const c=wX(o),g=TX(o),S=X(c),_=X(g);o6(o,"forecolor","forecolor",S),o6(o,"backcolor","hilitecolor",_),s6(o,"forecolor","forecolor","Text color",S),s6(o,"backcolor","hilitecolor","Background color",_)},i6=(o,c,g,S,_,H,K,ve)=>{const Ae=u5(c),Ue=MX(c,g,S,_!=="color"?"normal":"color",H,K,ve);return f5(o,Ae,Ue,S,{menuType:_})},MX=(o,c,g,S,_,H,K)=>an(ne(o,ve=>ve.type==="choiceitem"?fI(ve).fold(ep,Ae=>L.some(TI(Ae,g===1,S,c,H(Ae.value),_,K,u5(o)))):L.none())),E5=(o,c)=>{const g=Sv(c);return o===1?{mode:"menu",moveOnTab:!0}:o==="auto"?{mode:"grid",selector:"."+g.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+(c==="color"?"tox-swatches__row":"tox-collection__group"),previousSelector:_=>c==="color"?Ai(_.element,"[aria-checked=true]"):L.none()}},EX=(o,c)=>o===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:o==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:c==="color"?".tox-swatches__row":".tox-collection__group",cell:c==="color"?`.${d8}`:`.${l2}`}},_X=(o,c)=>{const g=RX(o,c),S=c.colorinput.getColorCols(o.initData.storageKey),_="color",K={...i6(Kr("menu-value"),g,ve=>{o.onAction({value:ve})},S,_,Hm.CLOSE_ON_EXECUTE,o.select.getOr(Y),c.shared.providers),markers:Sv(_),movement:E5(S,_)};return{type:"widget",data:{value:Kr("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[e3.widget(Eb.sketch(K))]}},RX=(o,c)=>{const g=o.initData.allowCustomColors&&c.colorinput.hasCustomColors();return o.initData.colors.fold(()=>n6(c.colorinput.getColors(o.initData.storageKey),o.initData.storageKey,g),S=>S.concat(e6(g)))},eN=Kr("cell-over"),tN=Kr("cell-execute"),DX=o=>(c,g)=>o.shared.providers.translate(`${g} columns, ${c} rows`),$X=(o,c,g)=>{const S=K=>vo(K,eN,{row:o,col:c}),_=K=>vo(K,tN,{row:o,col:c}),H=(K,ve)=>{ve.stop(),_(K)};return oc({dom:{tag:"div",attributes:{role:"button","aria-label":g}},behaviours:pr([Jo("insert-table-picker-cell",[qn(Lr(),Mo.focus),qn(Ii(),_),qn($i(),H),qn(Ac(),H)]),as.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),Mo.config({onFocus:S})])})},_5=(o,c,g)=>{const S=[];for(let _=0;_{for(let H=0;Hre(o,c=>ne(c,nf)),u6=(o,c)=>yi(`${c}x${o}`),LX={inserttable:(o,c)=>{const _=DX(c),H=_5(_,10,10),K=u6(0,0),ve=ia({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[K],behaviours:pr([Uo.config({})])});return{type:"widget",data:{value:Kr("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[e3.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:c6(H).concat(ve.asSpec()),behaviours:pr([Jo("insert-table-picker",[Ca(Ae=>{Uo.set(ve.get(Ae),[K])}),jS(eN,(Ae,Ne,Ue)=>{const{row:Je,col:st}=Ue.event;l6(H,Je,st,10,10),Uo.set(ve.get(Ae),[u6(Je+1,st+1)])}),jS(tN,(Ae,Ne,Ue)=>{const{row:Je,col:st}=Ue.event;o.onAction({numRows:Je+1,numColumns:st+1}),ks(Ae,Ju())})]),yo.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:_X},f6=(o,c)=>Bt(LX,o.fancytype).map(g=>g(o,c)),d6=(o,c,g,S=!0,_=!1)=>{const H=_?lX(g.icons):Fh(g.icons),K=Ae=>({isEnabled:()=>!Co.isDisabled(Ae),setEnabled:Ne=>Co.set(Ae,!Ne),setIconFill:(Ne,Ue)=>{Ai(Ae.element,`svg path[class="${Ne}"], rect[class="${Ne}"]`).each(Je=>{Dr(Je,"fill",Ue)})},setTooltip:Ne=>{const Ue=g.translate(Ne);yc(Ae.element,{"aria-label":Ue,title:Ue})}}),ve=Qb({presets:"normal",iconContent:o.icon,textContent:o.text,htmlContent:L.none(),ariaLabel:o.text,caret:L.some(H),checkMark:L.none(),shortcutContent:o.shortcut},g,S);return op({data:Tv(o),getApi:K,enabled:o.enabled,onAction:M,onSetup:o.onSetup,triggersSubmenu:!0,itemBehaviours:[]},ve,c,g)},R5=(o,c,g,S=!0)=>{const _=K=>({isEnabled:()=>!Co.isDisabled(K),setEnabled:ve=>Co.set(K,!ve)}),H=Qb({presets:"normal",iconContent:o.icon,textContent:o.text,htmlContent:L.none(),ariaLabel:o.text,caret:L.none(),checkMark:L.none(),shortcutContent:o.shortcut},g,S);return op({data:Tv(o),getApi:_,enabled:o.enabled,onAction:o.onAction,onSetup:o.onSetup,triggersSubmenu:!1,itemBehaviours:[]},H,c,g)},nN=o=>({type:"separator",dom:{tag:"div",classes:[l2,wY]},components:o.text.map(yi).toArray()}),IX=(o,c,g,S=!0)=>{const _=K=>({setActive:ve=>{as.set(K,ve)},isActive:()=>as.isOn(K),isEnabled:()=>!Co.isDisabled(K),setEnabled:ve=>Co.set(K,!ve)}),H=Qb({iconContent:o.icon,textContent:o.text,htmlContent:L.none(),ariaLabel:o.text,checkMark:L.some(v2(g.icons)),caret:L.none(),shortcutContent:o.shortcut,presets:"normal",meta:o.meta},g,S);return Ta(op({data:Tv(o),enabled:o.enabled,getApi:_,onAction:o.onAction,onSetup:o.onSetup,triggersSubmenu:!1,itemBehaviours:[]},H,c,g),{toggling:{toggleClass:_L,toggleOnExecute:!1,selected:o.active}})},NX=wI,rN=nN,BX=R5,QX=d6,FX=IX,VX=f6,zX=z8;var ZX=Object.freeze({__proto__:null,getCoupled:(o,c,g,S)=>g.getOrCreate(o,c,S),getExistingCoupled:(o,c,g,S)=>g.getExisting(o,c,S)}),HX=[Zc("others",Kf(jo.value,vi()))],oN=Object.freeze({__proto__:null,init:()=>{const o={},c=(H,K)=>{if(ct(H.others).length===0)throw new Error("Cannot find any known coupled components");return Bt(o,K)},g=(H,K,ve)=>c(K,ve).getOrThunk(()=>{const Ne=Bt(K.others,ve).getOrDie("No information found for coupled component: "+ve)(H),Ue=H.getSystem().build(Ne);return o[ve]=Ue,Ue}),S=(H,K,ve)=>c(K,ve).orThunk(()=>(Bt(K.others,ve).getOrDie("No information found for coupled component: "+ve),L.none())),_=F({});return Cu({readState:_,getExisting:S,getOrCreate:g})}});const Mi=dl({fields:HX,name:"coupling",apis:ZX,state:oN}),h6=o=>{let c=L.none(),g=[];const S=Ne=>h6(Ue=>{_(Je=>{Ue(Ne(Je))})}),_=Ne=>{K()?Ae(Ne):g.push(Ne)},H=Ne=>{K()||(c=L.some(Ne),ve(g),g=[])},K=()=>c.isSome(),ve=Ne=>{pe(Ne,Ae)},Ae=Ne=>{c.each(Ue=>{setTimeout(()=>{Ne(Ue)},0)})};return o(H),{get:_,map:S,isReady:K}},UX={nu:h6,pure:o=>h6(c=>{c(o)})},WX=o=>{setTimeout(()=>{throw o},0)},f1=o=>{const c=Ae=>{o().then(Ae,WX)};return{map:Ae=>f1(()=>o().then(Ae)),bind:Ae=>f1(()=>o().then(Ne=>Ae(Ne).toPromise())),anonBind:Ae=>f1(()=>o().then(()=>Ae.toPromise())),toLazy:()=>UX.nu(c),toCached:()=>{let Ae=null;return f1(()=>(Ae===null&&(Ae=o()),Ae))},toPromise:o,get:c}},$c={nu:o=>f1(()=>new Promise(o)),pure:o=>f1(()=>Promise.resolve(o))},sN=F("sink"),aN=F(fu({name:sN(),overrides:F({dom:{tag:"div"},behaviours:pr([ac.config({useFixed:ie})]),events:Ea([Sm(_s()),Sm(go()),Sm($i())])})})),iN=(o,c)=>{const g=o.getHotspot(c).getOr(c),S="hotspot",_=o.getAnchorOverrides();return o.layouts.fold(()=>({type:S,hotspot:g,overrides:_}),H=>({type:S,hotspot:g,overrides:_,layouts:H}))},YX=(o,c,g)=>{const S=o.fetch;return S(g).map(c)},XX=(o,c,g,S,_,H,K)=>{const ve=YX(o,c,S),Ae=lN(S,o);return ve.map(Ne=>Ne.bind(Ue=>L.from(a1.sketch({...H.menu(),uid:c0(""),data:Ue,highlightOnOpen:K,onOpenMenu:(Je,st)=>{const ht=Ae().getOrDie();ac.position(ht,st,{anchor:g}),As.decloak(_)},onOpenSubmenu:(Je,st,ht)=>{const At=Ae().getOrDie();ac.position(At,ht,{anchor:{type:"submenu",item:st}}),As.decloak(_)},onRepositionMenu:(Je,st,ht)=>{const At=Ae().getOrDie();ac.position(At,st,{anchor:g}),pe(ht,qt=>{ac.position(At,qt.triggeredMenu,{anchor:{type:"submenu",item:qt.triggeringItem}})})},onEscape:()=>(Mo.focus(S),As.close(_),L.some(!0))}))))},D5=(o,c,g,S,_,H,K)=>{const ve=iN(o,g);return XX(o,c,ve,g,S,_,K).map(Ne=>(Ne.fold(()=>{As.isOpen(S)&&As.close(S)},Ue=>{As.cloak(S),As.open(S,Ue),H(S)}),S))},GX=(o,c,g,S,_,H,K)=>(As.close(S),$c.pure(S)),m6=(o,c,g,S,_,H)=>{const K=Mi.getCoupled(g,"sandbox");return(As.isOpen(K)?GX:D5)(o,c,g,K,S,_,H)},jX=(o,c,g)=>{const S=xs.getCurrent(c).getOr(c),_=Si(o.element);g?Po(S.element,"min-width",_+"px"):Vs(S.element,_)},lN=(o,c)=>o.getSystem().getByUid(c.uid+"-"+sN()).map(g=>()=>jo.value(g)).getOrThunk(()=>c.lazySink.fold(()=>()=>jo.error(new Error("No internal sink is specified, nor could an external sink be found")),g=>()=>g(o))),cN=o=>{As.getState(o).each(c=>{a1.repositionMenus(c)})},g6=(o,c,g)=>{const S=rv(),_=(ve,Ae)=>{const Ne=iN(o,c);S.link(c.element),o.matchWidth&&jX(Ne.hotspot,Ae,o.useMinWidth),o.onOpen(Ne,ve,Ae),g!==void 0&&g.onOpen!==void 0&&g.onOpen(ve,Ae)},H=(ve,Ae)=>{S.unlink(c.element),g!==void 0&&g.onClose!==void 0&&g.onClose(ve,Ae)},K=lN(c,o);return{dom:{tag:"div",classes:o.sandboxClasses,attributes:{id:S.id,role:"listbox"}},behaviours:If.augment(o.sandboxBehaviours,[Fr.config({store:{mode:"memory",initialValue:c}}),As.config({onOpen:_,onClose:H,isPartOf:(ve,Ae,Ne)=>Am(Ae,Ne)||Am(c,Ne),getAttachPoint:()=>K().getOrDie()}),xs.config({find:ve=>As.getState(ve).bind(Ae=>xs.getCurrent(Ae))}),lu.config({channels:{...cb({isExtraPart:Y}),...W0({doReposition:cN})}})])}},uN=o=>{const c=Mi.getCoupled(o,"sandbox");cN(c)},p6=()=>[Mn("sandboxClasses",[]),If.field("sandboxBehaviours",[xs,lu,As,Fr])],qX=F([er("dom"),er("fetch"),Rs("onOpen"),Eu("onExecute"),Mn("getHotspot",L.some),Mn("getAnchorOverrides",F({})),Ng(),el("dropdownBehaviours",[as,Mi,yo,Mo]),er("toggleClass"),Mn("eventOrder",{}),Ws("lazySink"),Mn("matchWidth",!1),Mn("useMinWidth",!1),Ws("role")].concat(p6())),KX=F([cd({schema:[Qy(),Mn("fakeFocus",!1)],name:"menu",defaults:o=>({onExecute:o.onExecute})}),aN()]),JX=(o,c,g,S)=>{const _=Ue=>Bt(o.dom,"attributes").bind(Je=>Bt(Je,Ue)),H=Ue=>{As.getState(Ue).each(Je=>{a1.highlightPrimary(Je)})},K=(Ue,Je,st)=>m6(o,z,Ue,S,Je,st),ve=Ue=>{K(Ue,H,mu.HighlightMenuAndItem).get(M)},Ae={expand:Ue=>{as.isOn(Ue)||K(Ue,M,mu.HighlightNone).get(M)},open:Ue=>{as.isOn(Ue)||K(Ue,M,mu.HighlightMenuAndItem).get(M)},refetch:Ue=>Mi.getExistingCoupled(Ue,"sandbox").fold(()=>K(Ue,M,mu.HighlightMenuAndItem).map(M),st=>D5(o,z,Ue,st,S,M,mu.HighlightMenuAndItem).map(M)),isOpen:as.isOn,close:Ue=>{as.isOn(Ue)&&K(Ue,M,mu.HighlightMenuAndItem).get(M)},repositionMenus:Ue=>{as.isOn(Ue)&&uN(Ue)}},Ne=(Ue,Je)=>(xm(Ue),L.some(!0));return{uid:o.uid,dom:o.dom,components:c,behaviours:Ni(o.dropdownBehaviours,[as.config({toggleClass:o.toggleClass,aria:{mode:"expanded"}}),Mi.config({others:{sandbox:Ue=>g6(o,Ue,{onOpen:()=>as.on(Ue),onClose:()=>as.off(Ue)})}}),yo.config({mode:"special",onSpace:Ne,onEnter:Ne,onDown:(Ue,Je)=>{if(Jd.isOpen(Ue)){const st=Mi.getCoupled(Ue,"sandbox");H(st)}else Jd.open(Ue);return L.some(!0)},onEscape:(Ue,Je)=>Jd.isOpen(Ue)?(Jd.close(Ue),L.some(!0)):L.none()}),Mo.config({})]),events:Vm(L.some(ve)),eventOrder:{...o.eventOrder,[Ii()]:["disabling","toggling","alloy.base.behaviour"]},apis:Ae,domModification:{attributes:{"aria-haspopup":"true",...o.role.fold(()=>({}),Ue=>({role:Ue})),...o.dom.tag==="button"?{type:_("type").getOr("button")}:{}}}}},Jd=lc({name:"Dropdown",configFields:qX(),partFields:KX(),factory:JX,apis:{open:(o,c)=>o.open(c),refetch:(o,c)=>o.refetch(c),expand:(o,c)=>o.expand(c),close:(o,c)=>o.close(c),isOpen:(o,c)=>o.isOpen(c),repositionMenus:(o,c)=>o.repositionMenus(c)}}),eG=o=>{switch(o.searchMode){case"no-search":return{menuType:"normal"};default:return{menuType:"searchable",searchMode:o}}},tG=o=>{const c=Fr.getValue(o),g=i5(o).map(VL);Jd.refetch(c).get(()=>{const S=Mi.getCoupled(c,"sandbox");g.each(_=>i5(S).each(H=>b8(H,_)))})},nG=(o,c)=>{rG(o).each(g=>{EM(o,g.element,c.event.eventType,c.event.interactionEvent)})},rG=o=>As.getState(o).bind(Ys.getHighlighted).bind(Ys.getHighlighted),oG=o=>Ji(o.element,l5)?L.some(o.element):Ai(o.element,"."+l5),v6=(o,c,g)=>{y8(o).each(S=>{O8(S,g),oG(c).each(H=>{Ri(H,"id").each(K=>Dr(S.element,"aria-controls",K))})}),Dr(g.element,"aria-selected","true")},sG=(o,c,g)=>{Dr(g.element,"aria-selected","false")},aG=o=>{y8(o).each(c=>Mo.focus(c))},iG=o=>Mi.getExistingCoupled(o,"sandbox").bind(i5).map(VL).map(g=>g.fetchPattern).getOr("");var a3;(function(o){o[o.ContentFocus=0]="ContentFocus",o[o.UiFocus=1]="UiFocus"})(a3||(a3={}));const lG=(o,c,g,S,_)=>{const H=g.shared.providers,K=ve=>_?{...ve,shortcut:L.none(),icon:ve.text.isSome()?L.none():ve.icon}:ve;switch(o.type){case"menuitem":return hI(o).fold(ep,ve=>L.some(BX(K(ve),c,H,S)));case"nestedmenuitem":return qY(o).fold(ep,ve=>L.some(QX(K(ve),c,H,S,_)));case"togglemenuitem":return JY(o).fold(ep,ve=>L.some(FX(K(ve),c,H,S)));case"separator":return M8(o).fold(ep,ve=>L.some(rN(ve)));case"fancymenuitem":return GY(o).fold(ep,ve=>VX(ve,g));default:return console.error("Unknown item in general menu",o),L.none()}},cG=(o,c,g,S,_,H,K)=>{const ve=S===1,Ae=!ve||u5(o);return an(ne(o,Ne=>{switch(Ne.type){case"separator":return IY(Ne).fold(ep,Ue=>L.some(rN(Ue)));case"cardmenuitem":return cI(Ne).fold(ep,Ue=>L.some(zX({...Ue,onAction:Je=>{Ue.onAction(Je),g(Ue.value,Ue.meta)}},_,H,{itemBehaviours:xI(Ue.meta,H),cardText:{matchText:c,highlightOn:K}})));case"autocompleteitem":default:return JL(Ne).fold(ep,Ue=>L.some(NX(Ue,c,ve,"normal",g,_,H,Ae)))}}))},fN=(o,c,g,S,_,H)=>{const K=u5(c),ve=an(ne(c,Ue=>{const Je=ht=>_?!vn(ht,"text"):K,st=ht=>lG(ht,g,S,Je(ht),_);return Ue.type==="nestedmenuitem"&&Ue.getSubmenuItems().length<=0?st({...Ue,enabled:!1}):st(Ue)})),Ae=eG(H);return(_?XT:f5)(o,K,ve,1,Ae)},$5=o=>a1.singleData(o.value,o),uG=(o,c,g,S)=>{const _=E5(c,S),H=Sv(S);return{data:$5({...o,movement:_,menuBehaviours:KT.unnamedEvents(c!=="auto"?[]:[Ca((K,ve)=>{D8(K,4,H.item).each(({numColumns:Ae,numRows:Ne})=>{yo.setGridSize(K,Ne,Ae)})})])}),menu:{markers:Sv(S),fakeFocus:g===a3.ContentFocus}}},fG=(o,c)=>c8(zt.fromDom(c.startContainer)).map(g=>{const S=o.createRng();return S.selectNode(g.dom),S}),dG={register:(o,c)=>{const g=Kr("autocompleter"),S=X(!1),_=X(!1),H=oc(ri.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:g}},components:[],fireDismissalEventInstead:{},inlineBehaviours:pr([Jo("dismissAutocompleter",[qn(Ag(),()=>Ue()),qn(Ey(),(Dn,mn)=>{Ri(mn.event.target,"id").each(on=>Dr(zt.fromDom(o.getBody()),"aria-activedescendant",on))})])]),lazySink:c.getSink})),K=()=>ri.isOpen(H),ve=_.get,Ae=()=>{if(K()){ri.hide(H),o.dom.remove(g,!1);const Dn=zt.fromDom(o.getBody());Ri(Dn,"aria-owns").filter(mn=>mn===g).each(()=>{sa(Dn,"aria-owns"),sa(Dn,"aria-activedescendant")})}},Ne=()=>ri.getContent(H).bind(Dn=>le(Dn.components(),0)),Ue=()=>o.execCommand("mceAutocompleterClose"),Je=Dn=>{const mn=Xe(Dn,on=>L.from(on.columns)).getOr(1);return re(Dn,on=>{const kn=on.items;return cG(kn,on.matchText,(Zn,mr)=>{const Gn=o.selection.getRng();fG(o.dom,Gn).each(Or=>{const Mr={hide:()=>Ue(),reload:is=>{Ae(),o.execCommand("mceAutocompleterReload",!1,{fetchOptions:is})}};S.set(!0),on.onAction(Mr,Or,Zn,mr),S.set(!1)})},mn,Hm.BUBBLE_TO_SANDBOX,c,on.highlightOn)})},st=(Dn,mn)=>{OY(zt.fromDom(o.getBody())).each(on=>{const kn=Xe(Dn,Zn=>L.from(Zn.columns)).getOr(1);ri.showMenuAt(H,{anchor:{type:"node",root:zt.fromDom(o.getBody()),node:L.from(on)}},uG(f5("autocompleter-value",!0,mn,kn,{menuType:"normal"}),kn,a3.ContentFocus,"normal"))}),Ne().each(Ys.highlightFirst)},ht=Dn=>{const mn=Je(Dn);mn.length>0?(st(Dn,mn),Dr(zt.fromDom(o.getBody()),"aria-owns",g),o.inline||At()):Ae()},At=()=>{o.dom.get(g)&&o.dom.remove(g,!1);const Dn=o.getDoc().documentElement,mn=o.selection.getNode(),on=$M(H.element);zi(on,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${mn.offsetTop}px`,left:`${mn.offsetLeft}px`}),o.dom.add(Dn,on.dom),Ai(on,'[role="menu"]').each(kn=>{Zo(kn,"position"),Zo(kn,"max-height")})};o.on("AutocompleterStart",({lookupData:Dn})=>{_.set(!0),S.set(!1),ht(Dn)}),o.on("AutocompleterUpdate",({lookupData:Dn})=>ht(Dn)),o.on("AutocompleterEnd",()=>{Ae(),_.set(!1),S.set(!1)});const qt={cancelIfNecessary:Ue,isMenuOpen:K,isActive:ve,isProcessingAction:S.get,getMenu:Ne};xY.setup(qt,o)}},dN=["visible","hidden","clip"],hN=o=>Pt(o).length>0&&!be(dN,o),y6=o=>{if(Ee(o)){const c=Qa(o,"overflow-x"),g=Qa(o,"overflow-y");return hN(c)||hN(g)}else return!1},hG=o=>{const c=Yk(o,y6),g=c.length===0?vc(o).map(ii).map(S=>Yk(S,y6)).getOr([]):c;return Ce(g).map(S=>({element:S,others:g.slice(1)}))},d1=(o,c)=>Kg(o)?hG(c):L.none(),O2=o=>{const c=[...ne(o.others,ui),Vl()];return IO(ui(o.element),c)},i3=(o,c,g)=>Vd(o,c,g).isSome(),mN=(o,c)=>{let g=null;return{cancel:()=>{g!==null&&(clearTimeout(g),g=null)},schedule:(...H)=>{g=setTimeout(()=>{o.apply(null,H),g=null},c)}}},gN=5,mG=400,pN=o=>{const c=o.raw;return c.touches===void 0||c.touches.length!==1?L.none():L.some(c.touches[0])},gG=(o,c)=>{const g=Math.abs(o.clientX-c.x),S=Math.abs(o.clientY-c.y);return g>gN||S>gN},pG=o=>{const c=gs(),g=X(!1),S=mN(Ne=>{o.triggerEvent(Nd(),Ne),g.set(!0)},mG),_=Ne=>(pN(Ne).each(Ue=>{S.cancel();const Je={x:Ue.clientX,y:Ue.clientY,target:Ne.target};S.schedule(Ne),g.set(!1),c.set(Je)}),L.none()),H=Ne=>(S.cancel(),pN(Ne).each(Ue=>{c.on(Je=>{gG(Ue,Je)&&c.clear()})}),L.none()),K=Ne=>{S.cancel();const Ue=Je=>Jt(Je.target,Ne.target);return c.get().filter(Ue).map(Je=>g.get()?(Ne.prevent(),!1):o.triggerEvent(Ac(),Ne))},ve=bt([{key:no(),value:_},{key:fo(),value:H},{key:ts(),value:K}]);return{fireIfReady:(Ne,Ue)=>Bt(ve,Ue).bind(Je=>Je(Ne))}},vG=o=>o.raw.which===h_[0]&&!be(["input","textarea"],Oo(o.target))&&!i3(o.target,'[contenteditable="true"]'),yG=(o,c)=>{const g={stopBackspace:!0,...c},S=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],_=pG(g),H=ne(S.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),ht=>_c(o,ht,At=>{_.fireIfReady(At,ht).each(Dn=>{Dn&&At.kill()}),g.triggerEvent(ht,At)&&At.kill()})),K=gs(),ve=_c(o,"paste",ht=>{_.fireIfReady(ht,"paste").each(qt=>{qt&&ht.kill()}),g.triggerEvent("paste",ht)&&ht.kill(),K.set(setTimeout(()=>{g.triggerEvent(Li(),ht)},0))}),Ae=_c(o,"keydown",ht=>{g.triggerEvent("keydown",ht)?ht.kill():g.stopBackspace&&vG(ht)&&ht.prevent()}),Ne=_c(o,"focusin",ht=>{g.triggerEvent("focusin",ht)&&ht.kill()}),Ue=gs(),Je=_c(o,"focusout",ht=>{g.triggerEvent("focusout",ht)&&ht.kill(),Ue.set(setTimeout(()=>{g.triggerEvent(Ul(),ht)},0))});return{unbind:()=>{pe(H,ht=>{ht.unbind()}),Ae.unbind(),Ne.unbind(),Je.unbind(),ve.unbind(),K.on(clearTimeout),Ue.on(clearTimeout)}}},vN=(o,c)=>{const g=Bt(o,"target").getOr(c);return X(g)},bG=(o,c)=>{const g=X(!1),S=X(!1);return{stop:()=>{g.set(!0)},cut:()=>{S.set(!0)},isStopped:g.get,isCut:S.get,event:o,setSource:c.set,getSource:c.get}},yN=o=>{const c=X(!1);return{stop:()=>{c.set(!0)},cut:M,isStopped:c.get,isCut:Y,event:o,setSource:E("Cannot set source of a broadcasted event"),getSource:E("Cannot get source of a broadcasted event")}},l3=we.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),bN=(o,c,g,S,_,H)=>{const K=o(c,S),ve=bG(g,_);return K.fold(()=>(H.logEventNoHandlers(c,S),l3.complete()),Ae=>{const Ne=Ae.descHandler;return h0(Ne)(ve),ve.isStopped()?(H.logEventStopped(c,Ae.element,Ne.purpose),l3.stopped()):ve.isCut()?(H.logEventCut(c,Ae.element,Ne.purpose),l3.complete()):Fn(Ae.element).fold(()=>(H.logNoParent(c,Ae.element,Ne.purpose),l3.complete()),Je=>(H.logEventResponse(c,Ae.element,Ne.purpose),l3.resume(Je)))})},ON=(o,c,g,S,_,H)=>bN(o,c,g,S,_,H).fold(ie,K=>ON(o,c,g,K,_,H),Y),OG=(o,c,g,S,_)=>{const H=vN(g,S);return bN(o,c,g,S,H,_)},xG=(o,c,g)=>{const S=yN(c);return pe(o,_=>{const H=_.descHandler;h0(H)(S)}),S.isStopped()},b6=(o,c,g,S)=>xN(o,c,g,g.target,S),xN=(o,c,g,S,_)=>{const H=vN(g,S);return ON(o,c,g,S,H,_)},SG=(o,c)=>({element:o,descHandler:c}),wG=(o,c)=>({id:o,descHandler:c}),SN=()=>{const o={},c=(K,ve,Ae)=>{Ye(Ae,(Ne,Ue)=>{const Je=o[Ue]!==void 0?o[Ue]:{};Je[ve]=ow(Ne,K),o[Ue]=Je})},g=(K,ve)=>$y(ve).bind(Ae=>Bt(K,Ae)).map(Ae=>SG(ve,Ae));return{registerId:c,unregisterId:K=>{Ye(o,(ve,Ae)=>{vn(ve,K)&&delete ve[K]})},filterByType:K=>Bt(o,K).map(ve=>Xt(ve,(Ae,Ne)=>wG(Ne,Ae))).getOr([]),find:(K,ve,Ae)=>Bt(o,ve).bind(Ne=>tn(Ae,Ue=>g(Ne,Ue),K))}},wN=()=>{const o=SN(),c={},g=Ne=>{const Ue=Ne.element;return $y(Ue).getOrThunk(()=>Jp("uid-",Ne.element))},S=(Ne,Ue)=>{const Je=c[Ue];if(Je===Ne)H(Ne);else throw new Error('The tagId "'+Ue+'" is already used by: '+wh(Je.element)+` +Cannot use it for: `+wh(Ne.element)+` +The conflicting element is`+(Js(Je.element)?" ":" not ")+"already in the DOM")},_=Ne=>{const Ue=g(Ne);En(c,Ue)&&S(Ne,Ue);const Je=[Ne];o.registerId(Je,Ue,Ne.events),c[Ue]=Ne},H=Ne=>{$y(Ne.element).each(Ue=>{delete c[Ue],o.unregisterId(Ue)})};return{find:(Ne,Ue,Je)=>o.find(Ne,Ue,Je),filter:Ne=>o.filterByType(Ne),register:_,unregister:H,getById:Ne=>Bt(c,Ne)}},Um=_u({name:"Container",factory:o=>{const{attributes:c,...g}=o.dom;return{uid:o.uid,dom:{tag:"div",attributes:{role:"presentation",...c},...g},components:o.components,behaviours:Lm(o.containerBehaviours),events:o.events,domModification:o.domModification,eventOrder:o.eventOrder}},configFields:[Mn("components",[]),el("containerBehaviours",[]),Mn("events",{}),Mn("domModification",{}),Mn("eventOrder",{})]}),L5=o=>{const c=mn=>Fn(o.element).fold(ie,on=>Jt(mn,on)),g=wN(),S=(mn,on)=>g.find(c,mn,on),_=yG(o.element,{triggerEvent:(mn,on)=>lx(mn,on.target,kn=>b6(S,mn,on,kn))}),H={debugInfo:F("real"),triggerEvent:(mn,on,kn)=>{lx(mn,on,Zn=>xN(S,mn,kn,on,Zn))},triggerFocus:(mn,on)=>{$y(mn).fold(()=>{cu(mn)},kn=>{lx(Df(),mn,Zn=>(OG(S,Df(),{originator:on,kill:M,prevent:M,target:mn},mn,Zn),!1))})},triggerEscape:(mn,on)=>{H.triggerEvent("keydown",mn.element,on.event)},getByUid:mn=>qt(mn),getByDom:mn=>Dn(mn),build:oc,buildOrPatch:sx,addToGui:mn=>{Ae(mn)},removeFromGui:mn=>{Ne(mn)},addToWorld:mn=>{K(mn)},removeFromWorld:mn=>{ve(mn)},broadcast:mn=>{st(mn)},broadcastOn:(mn,on)=>{ht(mn,on)},broadcastEvent:(mn,on)=>{At(mn,on)},isConnected:ie},K=mn=>{mn.connect(H),Ct(mn.element)||(g.register(mn),pe(mn.components(),K),H.triggerEvent(Bd(),mn.element,{target:mn.element}))},ve=mn=>{Ct(mn.element)||(pe(mn.components(),ve),g.unregister(mn)),mn.disconnect()},Ae=mn=>{Hg(o,mn)},Ne=mn=>{Rh(mn)},Ue=()=>{_.unbind(),xc(o.element)},Je=mn=>{const on=g.filter(Wl());pe(on,kn=>{const Zn=kn.descHandler;h0(Zn)(mn)})},st=mn=>{Je({universal:!0,data:mn})},ht=(mn,on)=>{Je({universal:!1,channels:mn,data:on})},At=(mn,on)=>{const kn=g.filter(mn);return xG(kn,on)},qt=mn=>g.getById(mn).fold(()=>jo.error(new Error('Could not find component with uid: "'+mn+'" in system.')),jo.value),Dn=mn=>{const on=$y(mn).getOr("not found");return qt(on)};return K(o),{root:o,element:o.element,destroy:Ue,add:Ae,remove:Ne,getByUid:qt,getByDom:Dn,addToWorld:K,removeFromWorld:ve,broadcast:st,broadcastOn:ht,broadcastEvent:At}},TG=(o,c)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:ne(o.items,c.interpreter)}),CG=F([Mn("prefix","form-field"),el("fieldBehaviours",[xs,Fr])]),kG=F([fu({schema:[er("dom")],name:"label"}),fu({factory:{sketch:o=>({uid:o.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:o.text}})},schema:[er("text")],name:"aria-descriptor"}),ic({factory:{sketch:o=>{const c=rt(o,["factory"]);return o.factory.sketch(c)}},schema:[er("factory")],name:"field"})]),AG=(o,c,g,S)=>{const _=Ni(o.fieldBehaviours,[xs.config({find:ve=>ka(ve,o,"field")}),Fr.config({store:{mode:"manual",getValue:ve=>xs.getCurrent(ve).bind(Fr.getValue),setValue:(ve,Ae)=>{xs.getCurrent(ve).each(Ne=>{Fr.setValue(Ne,Ae)})}}})]),H=Ea([Ca((ve,Ae)=>{const Ne=vA(ve,o,["label","field","aria-descriptor"]);Ne.field().each(Ue=>{const Je=Kr(o.prefix);Ne.label().each(st=>{Dr(st.element,"for",Je),Dr(Ue.element,"id",Je)}),Ne["aria-descriptor"]().each(st=>{const ht=Kr(o.prefix);Dr(st.element,"id",ht),Dr(Ue.element,"aria-describedby",ht)})})})]),K={getField:ve=>ka(ve,o,"field"),getLabel:ve=>ka(ve,o,"label")};return{uid:o.uid,dom:o.dom,components:c,behaviours:_,events:H,apis:K}},la=lc({name:"FormField",configFields:CG(),partFields:kG(),factory:AG,apis:{getField:(o,c)=>o.getField(c),getLabel:(o,c)=>o.getLabel(c)}});var I5=Object.freeze({__proto__:null,exhibit:(o,c)=>ku({attributes:bt([{key:c.tabAttr,value:"true"}])})}),PG=[Mn("tabAttr","data-alloy-tabstop")];const Ga=dl({fields:PG,name:"tabstopping",active:I5});var MG=tinymce.util.Tools.resolve("tinymce.html.Entities");const c3=(o,c,g,S)=>{const _=_G(o,c,g,S);return la.sketch(_)},EG=(o,c)=>c3(o,c,[],[]),_G=(o,c,g,S)=>({dom:u3(g),components:o.toArray().concat([c]),fieldBehaviours:pr(S)}),Zle=()=>u3([]),u3=o=>({tag:"div",classes:["tox-form__group"].concat(o)}),eh=(o,c)=>la.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[yi(c.translate(o))]}),df=Kr("form-component-change"),x2=Kr("form-close"),h1=Kr("form-cancel"),ap=Kr("form-action"),f3=Kr("form-submit"),O6=Kr("form-block"),x6=Kr("form-unblock"),TN=Kr("form-tabchange"),CN=Kr("form-resize"),RG=(o,c,g)=>{const S=o.label.map(ht=>eh(ht,c)),_=c.icons(),H=ht=>{var At;return(At=_[ht])!==null&&At!==void 0?At:ht},K=ht=>(At,qt)=>{Vd(qt.event.target,"[data-collection-item-value]").each(Dn=>{ht(At,qt,Dn,oa(Dn,"data-collection-item-value"))})},ve=(ht,At)=>{const qt=ne(At,on=>{const kn=dd.translate(on.text),Zn=o.columns===1?`
    ${kn}
    `:"",mr=`
    ${H(on.icon)}
    `,Gn={_:" "," - ":" ","-":" "},Or=kn.replace(/\_| \- |\-/g,is=>Gn[is]);return`
    ${mr}${Zn}
    `}),Dn=o.columns!=="auto"&&o.columns>1?ge(qt,o.columns):[qt],mn=ne(Dn,on=>`
    ${on.join("")}
    `);Kp(ht.element,mn.join(""))},Ae=K((ht,At,qt,Dn)=>{At.stop(),c.isDisabled()||vo(ht,ap,{name:o.name,value:Dn})}),Ne=[qn(Lr(),K((ht,At,qt)=>{cu(qt)})),qn($i(),Ae),qn(Ac(),Ae),qn(Do(),K((ht,At,qt)=>{Ai(ht.element,"."+WT).each(Dn=>{Xa(Dn,WT)}),ki(qt,WT)})),qn(ms(),K(ht=>{Ai(ht.element,"."+WT).each(At=>{Xa(At,WT)})})),rd(K((ht,At,qt,Dn)=>{vo(ht,ap,{name:o.name,value:Dn})}))],Ue=(ht,At)=>ne(hl(ht.element,".tox-collection__item"),At),Je=la.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(o.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:z},behaviours:pr([Co.config({disabled:c.isDisabled,onDisabled:ht=>{Ue(ht,At=>{ki(At,"tox-collection__item--state-disabled"),Dr(At,"aria-disabled",!0)})},onEnabled:ht=>{Ue(ht,At=>{Xa(At,"tox-collection__item--state-disabled"),sa(At,"aria-disabled")})}}),gl(),Uo.config({}),Fr.config({store:{mode:"memory",initialValue:g.getOr([])},onSetValue:(ht,At)=>{ve(ht,At),o.columns==="auto"&&D8(ht,5,"tox-collection__item").each(({numRows:qt,numColumns:Dn})=>{yo.setGridSize(ht,qt,Dn)}),ks(ht,CN)}}),Ga.config({}),yo.config(EX(o.columns,"normal")),Jo("collection-events",Ne)]),eventOrder:{[Ii()]:["disabling","alloy.base.behaviour","collection-events"]}});return c3(S,Je,["tox-form__group--collection"],[])},DG=["input","textarea"],kN=o=>{const c=Oo(o);return be(DG,c)},AN=(o,c)=>{const g=c.getRoot(o).getOr(o.element);Xa(g,c.invalidClass),c.notify.each(S=>{kN(o.element)&&Dr(o.element,"aria-invalid",!1),S.getContainer(o).each(_=>{Kp(_,S.validHtml)}),S.onValid(o)})},S6=(o,c,g,S)=>{const _=c.getRoot(o).getOr(o.element);ki(_,c.invalidClass),c.notify.each(H=>{kN(o.element)&&Dr(o.element,"aria-invalid",!0),H.getContainer(o).each(K=>{Kp(K,S)}),H.onInvalid(o,S)})},Fb=(o,c,g)=>c.validator.fold(()=>$c.pure(jo.value(!0)),S=>S.validate(o)),kv=(o,c,g)=>(c.notify.each(S=>{S.onValidate(o)}),Fb(o,c).map(S=>o.getSystem().isConnected()?S.fold(_=>(S6(o,c,g,_),jo.error(_)),_=>(AN(o,c),jo.value(_))):jo.error("No longer in system")));var PN=Object.freeze({__proto__:null,markValid:AN,markInvalid:S6,query:Fb,run:kv,isInvalid:(o,c)=>{const g=c.getRoot(o).getOr(o.element);return Ji(g,c.invalidClass)}}),N5=Object.freeze({__proto__:null,events:(o,c)=>o.validator.map(g=>Ea([qn(g.onEvent,S=>{kv(S,o,c).get(z)})].concat(g.validateOnLoad?[Ca(S=>{kv(S,o,c).get(M)})]:[]))).getOr({})}),LG=[er("invalidClass"),Mn("getRoot",L.none),wc("notify",[Mn("aria","alert"),Mn("getContainer",L.none),Mn("validHtml",""),Rs("onValid"),Rs("onInvalid"),Rs("onValidate")]),wc("validator",[er("validate"),Mn("onEvent","input"),Mn("validateOnLoad",!0)])];const gd=dl({fields:LG,name:"invalidating",active:N5,apis:PN,extra:{validation:o=>c=>{const g=Fr.getValue(c);return $c.pure(o(g))}}});var IG=Object.freeze({__proto__:null,events:()=>Ea([YS(Hl(),ie)]),exhibit:()=>ku({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})});const d3=dl({fields:[],name:"unselecting",active:IG}),NG=(o,c)=>Jd.sketch({dom:o.dom,components:o.components,toggleClass:"mce-active",dropdownBehaviours:pr([tl.button(c.providers.isDisabled),gl(),d3.config({}),Ga.config({})]),layouts:o.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:c.getSink,fetch:g=>$c.nu(S=>o.fetch(S)).map(S=>L.from($5(Ta(i6(Kr("menu-value"),S,_=>{o.onItemAction(g,_)},o.columns,o.presets,Hm.CLOSE_ON_EXECUTE,Y,c.providers),{movement:E5(o.columns,o.presets)})))),parts:{menu:c2(!1,1,o.presets)}}),MN=Kr("color-input-change"),EN=Kr("color-swatch-change"),h3=Kr("color-picker-cancel"),BG=(o,c,g,S)=>{const _=la.parts.field({factory:Ib,inputClasses:["tox-textfield"],data:S,onSetValue:Ne=>gd.run(Ne).get(M),inputBehaviours:pr([Co.config({disabled:c.providers.isDisabled}),gl(),Ga.config({}),gd.config({invalidClass:"tox-textbox-field-invalid",getRoot:Ne=>dr(Ne.element),notify:{onValid:Ne=>{const Ue=Fr.getValue(Ne);vo(Ne,MN,{color:Ue})}},validator:{validateOnLoad:!1,validate:Ne=>{const Ue=Fr.getValue(Ne);if(Ue.length===0)return $c.pure(jo.value(!0));{const Je=zt.fromTag("span");Po(Je,"background-color",Ue);const st=za(Je,"background-color").fold(()=>jo.error("blah"),ht=>jo.value(Ue));return $c.pure(st)}}}})]),selectOnFocus:!1}),H=o.label.map(Ne=>eh(Ne,c.providers)),K=(Ne,Ue)=>{vo(Ne,EN,{value:Ue})},ve=(Ne,Ue)=>{Ae.getOpt(Ne).each(Je=>{Ue==="custom"?g.colorPicker(st=>{st.fold(()=>ks(Je,h3),ht=>{K(Je,ht),q8(o.storageKey,ht)})},"#ffffff"):Ue==="remove"?K(Je,""):K(Je,Ue)})},Ae=ia(NG({dom:{tag:"span",attributes:{"aria-label":c.providers.translate("Color swatch")}},layouts:{onRtl:()=>[Gl,ul,fl],onLtr:()=>[ul,Gl,fl]},components:[],fetch:jI(g.getColors(o.storageKey),o.storageKey,g.hasCustomColors()),columns:g.getColorCols(o.storageKey),presets:"color",onItemAction:ve},c));return la.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:H.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[_,Ae.asSpec()]}]),fieldBehaviours:pr([Jo("form-field-events",[qn(MN,(Ne,Ue)=>{Ae.getOpt(Ne).each(Je=>{Po(Je.element,"background-color",Ue.event.color)}),vo(Ne,df,{name:o.name})}),qn(EN,(Ne,Ue)=>{la.getField(Ne).each(Je=>{Fr.setValue(Je,Ue.event.value),xs.getCurrent(Ne).each(Mo.focus)})}),qn(h3,(Ne,Ue)=>{la.getField(Ne).each(Je=>{xs.getCurrent(Ne).each(Mo.focus)})})])])})},w6=fu({schema:[er("dom")],name:"label"}),m1=o=>fu({name:""+o+"-edge",overrides:c=>c.model.manager.edgeActions[o].fold(()=>({}),S=>({events:Ea([UO(no(),(_,H,K)=>S(_,K),[c]),UO(go(),(_,H,K)=>S(_,K),[c]),UO(js(),(_,H,K)=>{K.mouseIsDown.get()&&S(_,K)},[c])])}))}),QG=m1("top-left"),FG=m1("top"),_N=m1("top-right"),VG=m1("right"),zG=m1("bottom-right"),ZG=m1("bottom"),RN=m1("bottom-left"),HG=m1("left"),UG=ic({name:"thumb",defaults:F({dom:{styles:{position:"absolute"}}}),overrides:o=>({events:Ea([i0(no(),o,"spectrum"),i0(fo(),o,"spectrum"),i0(ts(),o,"spectrum"),i0(go(),o,"spectrum"),i0(js(),o,"spectrum"),i0(ba(),o,"spectrum")])})}),WG=ic({schema:[ei("mouseIsDown",()=>X(!1))],name:"spectrum",overrides:o=>{const g=o.model.manager,S=(_,H)=>g.getValueFromEvent(H).map(K=>g.setValueFrom(_,o,K));return{behaviours:pr([yo.config({mode:"special",onLeft:_=>g.onLeft(_,o),onRight:_=>g.onRight(_,o),onUp:_=>g.onUp(_,o),onDown:_=>g.onDown(_,o)}),Mo.config({})]),events:Ea([qn(no(),S),qn(fo(),S),qn(go(),S),qn(js(),(_,H)=>{o.mouseIsDown.get()&&S(_,H)})])}}});var YG=[w6,HG,VG,FG,ZG,QG,_N,RN,zG,UG,WG];const S2=F("slider.change.value"),DN=o=>o.type.indexOf("touch")!==-1,T6=o=>{const c=o.event.raw;if(DN(c)){const g=c;return g.touches!==void 0&&g.touches.length===1?L.some(g.touches[0]).map(S=>Is(S.clientX,S.clientY)):L.none()}else{const g=c;return g.clientX!==void 0?L.some(g).map(S=>Is(S.clientX,S.clientY)):L.none()}},XG="top",GG="right",jG="bottom",qG="left",g1=o=>o.model.minX,zh=o=>o.model.minY,Q5=o=>o.model.minX-1,F5=o=>o.model.minY-1,Vb=o=>o.model.maxX,ip=o=>o.model.maxY,hf=o=>o.model.maxX+1,w2=o=>o.model.maxY+1,C6=(o,c,g)=>c(o)-g(o),k6=o=>C6(o,Vb,g1),A6=o=>C6(o,ip,zh),$N=o=>k6(o)/2,LN=o=>A6(o)/2,zb=o=>o.stepSize,P6=o=>o.snapToGrid,IN=o=>o.snapStart,NN=o=>o.rounded,m3=(o,c)=>o[c+"-edge"]!==void 0,BN=o=>m3(o,qG),M6=o=>m3(o,GG),E6=o=>m3(o,XG),_6=o=>m3(o,jG),Av=o=>o.model.value.get(),p1=(o,c)=>({x:o,y:c}),Zh=(o,c)=>{vo(o,S2(),{value:c})},KG=(o,c)=>{Zh(o,p1(Q5(c),F5(c)))},JG=(o,c)=>{Zh(o,F5(c))},ej=(o,c)=>{Zh(o,p1($N(c),F5(c)))},R6=(o,c)=>{Zh(o,p1(hf(c),F5(c)))},tj=(o,c)=>{Zh(o,hf(c))},QN=(o,c)=>{Zh(o,p1(hf(c),LN(c)))},nj=(o,c)=>{Zh(o,p1(hf(c),w2(c)))},rj=(o,c)=>{Zh(o,w2(c))},oj=(o,c)=>{Zh(o,p1($N(c),w2(c)))},sj=(o,c)=>{Zh(o,p1(Q5(c),w2(c)))},aj=(o,c)=>{Zh(o,Q5(c))},ij=(o,c)=>{Zh(o,p1(Q5(c),LN(c)))},D6=(o,c,g,S)=>og?g:o===c?c-1:Math.max(c,o-S),V5=(o,c,g,S)=>o>g?o:oMath.max(c,Math.min(g,o)),lj=(o,c,g,S,_)=>_.fold(()=>{const H=o-c,K=Math.round(H/S)*S;return $6(c+K,c-1,g+1)},H=>{const K=(o-H)%S,ve=Math.round(K/S),Ae=Math.floor((o-H)/S),Ne=Math.floor((g-H)/S),Ue=Math.min(Ne,Ae+ve),Je=H+Ue*S;return Math.max(H,Je)}),cj=(o,c,g)=>Math.min(g,Math.max(o,c))-c,FN=o=>{const{min:c,max:g,range:S,value:_,step:H,snap:K,snapStart:ve,rounded:Ae,hasMinEdge:Ne,hasMaxEdge:Ue,minBound:Je,maxBound:st,screenRange:ht}=o,At=Ne?c-1:c,qt=Ue?g+1:g;if(_st)return qt;{const Dn=cj(_,Je,st),mn=$6(Dn/ht*S+c,At,qt);return K&&mn>=c&&mn<=g?lj(mn,c,g,H,ve):Ae?Math.round(mn):mn}},VN=o=>{const{min:c,max:g,range:S,value:_,hasMinEdge:H,hasMaxEdge:K,maxBound:ve,maxOffset:Ae,centerMinEdge:Ne,centerMaxEdge:Ue}=o;return _g?K?ve:Ue:(_-c)/S*Ae},L6="top",zN="right",I6="bottom",z5="left",ZN="width",N6="height",lp=o=>o.element.dom.getBoundingClientRect(),th=(o,c)=>o[c],Z5=o=>{const c=lp(o);return th(c,z5)},HN=o=>{const c=lp(o);return th(c,zN)},H5=o=>{const c=lp(o);return th(c,L6)},UN=o=>{const c=lp(o);return th(c,I6)},U5=o=>{const c=lp(o);return th(c,ZN)},cp=o=>{const c=lp(o);return th(c,N6)},WN=(o,c,g)=>(o+c)/2-g,T2=(o,c)=>{const g=lp(o),S=lp(c),_=th(g,z5),H=th(g,zN),K=th(S,z5);return WN(_,H,K)},YN=(o,c)=>{const g=lp(o),S=lp(c),_=th(g,L6),H=th(g,I6),K=th(S,L6);return WN(_,H,K)},C2=(o,c)=>{vo(o,S2(),{value:c})},B6=(o,c,g)=>{const S={min:g1(c),max:Vb(c),range:k6(c),value:g,step:zb(c),snap:P6(c),snapStart:IN(c),rounded:NN(c),hasMinEdge:BN(c),hasMaxEdge:M6(c),minBound:Z5(o),maxBound:HN(o),screenRange:U5(o)};return FN(S)},uj=(o,c,g)=>{const S=B6(o,c,g);return C2(o,S),S},fj=(o,c)=>{const g=g1(c);C2(o,g)},XN=(o,c)=>{const g=Vb(c);C2(o,g)},dj=(o,c,g)=>{const _=(o>0?V5:D6)(Av(g),g1(g),Vb(g),zb(g));return C2(c,_),L.some(_)},W5=o=>(c,g)=>dj(o,c,g).map(ie),Q6=o=>T6(o).map(g=>g.left),F6=(o,c,g,S,_)=>{const K=U5(o),ve=S.bind(Ue=>L.some(T2(Ue,o))).getOr(0),Ae=_.bind(Ue=>L.some(T2(Ue,o))).getOr(K),Ne={min:g1(c),max:Vb(c),range:k6(c),value:g,hasMinEdge:BN(c),hasMaxEdge:M6(c),minBound:Z5(o),minOffset:0,maxBound:HN(o),maxOffset:K,centerMinEdge:ve,centerMaxEdge:Ae};return VN(Ne)},V6=(o,c,g,S,_,H)=>{const K=F6(c,H,g,S,_);return Z5(c)-Z5(o)+K},pd=(o,c,g,S)=>{const _=Av(g),H=V6(o,S.getSpectrum(o),_,S.getLeftEdge(o),S.getRightEdge(o),g),K=Si(c.element)/2;Po(c.element,"left",H-K+"px")},hj=W5(-1),mj=W5(1),GN=L.none,jN=L.none,gj={"top-left":L.none(),top:L.none(),"top-right":L.none(),right:L.some(tj),"bottom-right":L.none(),bottom:L.none(),"bottom-left":L.none(),left:L.some(aj)};var pj=Object.freeze({__proto__:null,setValueFrom:uj,setToMin:fj,setToMax:XN,findValueOfOffset:B6,getValueFromEvent:Q6,findPositionOfValue:V6,setPositionFromValue:pd,onLeft:hj,onRight:mj,onUp:GN,onDown:jN,edgeActions:gj});const Y5=(o,c)=>{vo(o,S2(),{value:c})},z6=(o,c,g)=>{const S={min:zh(c),max:ip(c),range:A6(c),value:g,step:zb(c),snap:P6(c),snapStart:IN(c),rounded:NN(c),hasMinEdge:E6(c),hasMaxEdge:_6(c),minBound:H5(o),maxBound:UN(o),screenRange:cp(o)};return FN(S)},vj=(o,c,g)=>{const S=z6(o,c,g);return Y5(o,S),S},yj=(o,c)=>{const g=zh(c);Y5(o,g)},bj=(o,c)=>{const g=ip(c);Y5(o,g)},qN=(o,c,g)=>{const _=(o>0?V5:D6)(Av(g),zh(g),ip(g),zb(g));return Y5(c,_),L.some(_)},KN=o=>(c,g)=>qN(o,c,g).map(ie),Oj=o=>T6(o).map(g=>g.top),xj=(o,c,g,S,_)=>{const K=cp(o),ve=S.bind(Ue=>L.some(YN(Ue,o))).getOr(0),Ae=_.bind(Ue=>L.some(YN(Ue,o))).getOr(K),Ne={min:zh(c),max:ip(c),range:A6(c),value:g,hasMinEdge:E6(c),hasMaxEdge:_6(c),minBound:H5(o),minOffset:0,maxBound:UN(o),maxOffset:K,centerMinEdge:ve,centerMaxEdge:Ae};return VN(Ne)},X5=(o,c,g,S,_,H)=>{const K=xj(c,H,g,S,_);return H5(c)-H5(o)+K},Z6=(o,c,g,S)=>{const _=Av(g),H=X5(o,S.getSpectrum(o),_,S.getTopEdge(o),S.getBottomEdge(o),g),K=Za(c.element)/2;Po(c.element,"top",H-K+"px")},Sj=L.none,H6=L.none,k2=KN(-1),JN=KN(1),eB={"top-left":L.none(),top:L.some(JG),"top-right":L.none(),right:L.none(),"bottom-right":L.none(),bottom:L.some(rj),"bottom-left":L.none(),left:L.none()};var tB=Object.freeze({__proto__:null,setValueFrom:vj,setToMin:yj,setToMax:bj,findValueOfOffset:z6,getValueFromEvent:Oj,findPositionOfValue:X5,setPositionFromValue:Z6,onLeft:Sj,onRight:H6,onUp:k2,onDown:JN,edgeActions:eB});const G5=(o,c)=>{vo(o,S2(),{value:c})},j5=(o,c)=>({x:o,y:c}),q5=(o,c,g)=>{const S=B6(o,c,g.left),_=z6(o,c,g.top),H=j5(S,_);return G5(o,H),H},wj=(o,c,g,S)=>{const _=o>0?V5:D6,H=c?Av(S).x:_(Av(S).x,g1(S),Vb(S),zb(S)),K=c?_(Av(S).y,zh(S),ip(S),zb(S)):Av(S).y;return G5(g,j5(H,K)),L.some(H)},K5=(o,c)=>(g,S)=>wj(o,c,g,S).map(ie),nB=(o,c)=>{const g=g1(c),S=zh(c);G5(o,j5(g,S))},rB=(o,c)=>{const g=Vb(c),S=ip(c);G5(o,j5(g,S))},U6=o=>T6(o),oB=(o,c,g,S)=>{const _=Av(g),H=V6(o,S.getSpectrum(o),_.x,S.getLeftEdge(o),S.getRightEdge(o),g),K=X5(o,S.getSpectrum(o),_.y,S.getTopEdge(o),S.getBottomEdge(o),g),ve=Si(c.element)/2,Ae=Za(c.element)/2;Po(c.element,"left",H-ve+"px"),Po(c.element,"top",K-Ae+"px")},Du=K5(-1,!1),sB=K5(1,!1),Tj=K5(-1,!0),Cj=K5(1,!0),aB={"top-left":L.some(KG),top:L.some(ej),"top-right":L.some(R6),right:L.some(QN),"bottom-right":L.some(nj),bottom:L.some(oj),"bottom-left":L.some(sj),left:L.some(ij)};var kj=Object.freeze({__proto__:null,setValueFrom:q5,setToMin:nB,setToMax:rB,getValueFromEvent:U6,setPositionFromValue:oB,onLeft:Du,onRight:sB,onUp:Tj,onDown:Cj,edgeActions:aB});const Aj=[Mn("stepSize",1),Mn("onChange",M),Mn("onChoose",M),Mn("onInit",M),Mn("onDragStart",M),Mn("onDragEnd",M),Mn("snapToGrid",!1),Mn("rounded",!0),Ws("snapStart"),Zc("model",Os("mode",{x:[Mn("minX",0),Mn("maxX",100),ei("value",o=>X(o.mode.minX)),er("getInitialValue"),ha("manager",pj)],y:[Mn("minY",0),Mn("maxY",100),ei("value",o=>X(o.mode.minY)),er("getInitialValue"),ha("manager",tB)],xy:[Mn("minX",0),Mn("maxX",100),Mn("minY",0),Mn("maxY",100),ei("value",o=>X({x:o.mode.minX,y:o.mode.minY})),er("getInitialValue"),ha("manager",kj)]})),el("sliderBehaviours",[yo,Fr]),ei("mouseIsDown",()=>X(!1))],nh=lc({name:"Slider",configFields:Aj,partFields:YG,factory:(o,c,g,S)=>{const _=Zn=>Nm(Zn,o,"thumb"),H=Zn=>Nm(Zn,o,"spectrum"),K=Zn=>ka(Zn,o,"left-edge"),ve=Zn=>ka(Zn,o,"right-edge"),Ae=Zn=>ka(Zn,o,"top-edge"),Ne=Zn=>ka(Zn,o,"bottom-edge"),Ue=o.model,Je=Ue.manager,st=(Zn,mr)=>{Je.setPositionFromValue(Zn,mr,o,{getLeftEdge:K,getRightEdge:ve,getTopEdge:Ae,getBottomEdge:Ne,getSpectrum:H})},ht=(Zn,mr)=>{Ue.value.set(mr);const Gn=_(Zn);st(Zn,Gn)},At=(Zn,mr)=>{ht(Zn,mr);const Gn=_(Zn);return o.onChange(Zn,Gn,mr),L.some(!0)},qt=Zn=>{Je.setToMin(Zn,o)},Dn=Zn=>{Je.setToMax(Zn,o)},mn=Zn=>{const mr=()=>{ka(Zn,o,"thumb").each(Or=>{const Mr=Ue.value.get();o.onChoose(Zn,Or,Mr)})},Gn=o.mouseIsDown.get();o.mouseIsDown.set(!1),Gn&&mr()},on=(Zn,mr)=>{mr.stop(),o.mouseIsDown.set(!0),o.onDragStart(Zn,_(Zn))},kn=(Zn,mr)=>{mr.stop(),o.onDragEnd(Zn,_(Zn)),mn(Zn)};return{uid:o.uid,dom:o.dom,components:c,behaviours:Ni(o.sliderBehaviours,[yo.config({mode:"special",focusIn:Zn=>ka(Zn,o,"spectrum").map(yo.focusIn).map(ie)}),Fr.config({store:{mode:"manual",getValue:Zn=>Ue.value.get(),setValue:ht}}),lu.config({channels:{[oT()]:{onReceive:mn}}})]),events:Ea([qn(S2(),(Zn,mr)=>{At(Zn,mr.event.value)}),Ca((Zn,mr)=>{const Gn=Ue.getInitialValue();Ue.value.set(Gn);const Or=_(Zn);st(Zn,Or);const Mr=H(Zn);o.onInit(Zn,Or,Mr,Ue.value.get())}),qn(no(),on),qn(ts(),kn),qn(go(),on),qn(ba(),kn)]),apis:{resetToMin:qt,resetToMax:Dn,setValue:ht,refresh:st},domModification:{styles:{position:"relative"}}}},apis:{setValue:(o,c,g)=>{o.setValue(c,g)},resetToMin:(o,c)=>{o.resetToMin(c)},resetToMax:(o,c)=>{o.resetToMax(c)},refresh:(o,c)=>{o.refresh(c)}}}),Hh=Kr("rgb-hex-update"),J5=Kr("slider-update"),W6=Kr("palette-update"),e4=(o,c)=>{const g=nh.parts.spectrum({dom:{tag:"div",classes:[c("hue-slider-spectrum")],attributes:{role:"presentation"}}}),S=nh.parts.thumb({dom:{tag:"div",classes:[c("hue-slider-thumb")],attributes:{role:"presentation"}}});return nh.sketch({dom:{tag:"div",classes:[c("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:F(0)},components:[g,S],sliderBehaviours:pr([Mo.config({})]),onChange:(_,H,K)=>{vo(_,J5,{value:K})}})},t4="form",Pj=[el("formBehaviours",[Fr])],iB=o=>"",Mj=o=>{const c=(()=>{const H=[];return{field:(ve,Ae)=>(H.push(ve),fT(t4,iB(ve),Ae)),record:F(H)}})(),g=o(c),S=c.record(),_=ne(S,H=>ic({name:H,pname:iB(H)}));return yT(t4,Pj,_,_j,g)},Ej=(o,c)=>o.fold(()=>jo.error(c),jo.value),_j=(o,c)=>({uid:o.uid,dom:o.dom,components:c,behaviours:Ni(o.formBehaviours,[Fr.config({store:{mode:"manual",getValue:g=>{const S=hT(g,o);return je(S,(_,H)=>_().bind(K=>{const ve=xs.getCurrent(K);return Ej(ve,new Error(`Cannot find a current component to extract the value from for form part '${H}': `+wh(K.element)))}).map(Fr.getValue))},setValue:(g,S)=>{Ye(S,(_,H)=>{ka(g,o,H).each(K=>{xs.getCurrent(K).each(ve=>{Fr.setValue(ve,_)})})})}}})]),apis:{getField:(g,S)=>ka(g,o,S).bind(xs.getCurrent)}}),A2={getField:ev((o,c,g)=>o.getField(c,g)),sketch:Mj},lB=Kr("valid-input"),Y6=Kr("invalid-input"),cB=Kr("validating-input"),Uh="colorcustom.rgb.",n4=(o,c,g,S)=>{const _=(st,ht)=>gd.config({invalidClass:c("invalid"),notify:{onValidate:At=>{vo(At,cB,{type:st})},onValid:At=>{vo(At,lB,{type:st,value:Fr.getValue(At)})},onInvalid:At=>{vo(At,Y6,{type:st,value:Fr.getValue(At)})}},validator:{validate:At=>{const qt=Fr.getValue(At),Dn=ht(qt)?jo.value(!0):jo.error(o("aria.input.invalid"));return $c.pure(Dn)},validateOnLoad:!1}}),H=(st,ht,At,qt,Dn)=>{const mn=o(Uh+"range"),on=la.parts.label({dom:{tag:"label",attributes:{"aria-label":qt}},components:[yi(At)]}),kn=la.parts.field({data:Dn,factory:Ib,inputAttributes:{type:"text",...ht==="hex"?{"aria-live":"polite"}:{}},inputClasses:[c("textfield")],inputBehaviours:pr([_(ht,st),Ga.config({})]),onSetValue:Or=>{gd.isInvalid(Or)&&gd.run(Or).get(M)}}),Zn=[on,kn],mr=ht!=="hex"?[la.parts["aria-descriptor"]({text:mn})]:[],Gn=Zn.concat(mr);return{dom:{tag:"div",attributes:{role:"presentation"}},components:Gn}},K=(st,ht)=>{const At=b2(ht);return A2.getField(st,"hex").each(qt=>{Mo.isFocused(qt)||Fr.setValue(st,{hex:At.value})}),At},ve=(st,ht)=>{const At=ht.red,qt=ht.green,Dn=ht.blue;Fr.setValue(st,{red:At,green:qt,blue:Dn})},Ae=ia({dom:{tag:"div",classes:[c("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),Ne=(st,ht)=>{Ae.getOpt(st).each(At=>{Po(At.element,"background-color","#"+ht.value)})};return _u({factory:()=>{const st={red:X(L.some(255)),green:X(L.some(255)),blue:X(L.some(255)),hex:X(L.some("ffffff"))},ht=(_o,na)=>{const wo=n3(na);ve(_o,wo),mn(wo)},At=_o=>st[_o].get(),qt=(_o,na)=>{st[_o].set(na)},Dn=()=>At("red").bind(_o=>At("green").bind(na=>At("blue").map(wo=>c1(_o,na,wo,1)))),mn=_o=>{const na=_o.red,wo=_o.green,Ns=_o.blue;qt("red",L.some(na)),qt("green",L.some(wo)),qt("blue",L.some(Ns))},on=(_o,na)=>{const wo=na.event;wo.type!=="hex"?qt(wo.type,L.none()):S(_o)},kn=(_o,na)=>{g(_o);const wo=CI(na);qt("hex",L.some(wo.value));const Ns=n3(wo);ve(_o,Ns),mn(Ns),vo(_o,Hh,{hex:wo}),Ne(_o,wo)},Zn=(_o,na,wo)=>{const Ns=parseInt(wo,10);qt(na,L.some(Ns)),Dn().each(Pr=>{const oo=K(_o,Pr);vo(_o,Hh,{hex:oo}),Ne(_o,oo)})},mr=_o=>_o.type==="hex",Gn=(_o,na)=>{const wo=na.event;mr(wo)?kn(_o,wo.value):Zn(_o,wo.type,wo.value)},Or=_o=>({label:o(Uh+_o+".label"),description:o(Uh+_o+".description")}),Mr=Or("red"),is=Or("green"),Gr=Or("blue"),Io=Or("hex");return Ta(A2.sketch(_o=>({dom:{tag:"form",classes:[c("rgb-form")],attributes:{"aria-label":o("aria.color.picker")}},components:[_o.field("red",la.sketch(H(Z8,"red",Mr.label,Mr.description,255))),_o.field("green",la.sketch(H(Z8,"green",is.label,is.description,255))),_o.field("blue",la.sketch(H(Z8,"blue",Gr.label,Gr.description,255))),_o.field("hex",la.sketch(H(PI,"hex",Io.label,Io.description,"ffffff"))),Ae.asSpec()],formBehaviours:pr([gd.config({invalidClass:c("form-invalid")}),Jo("rgb-form-events",[qn(lB,Gn),qn(Y6,on),qn(cB,on)])])})),{apis:{updateHex:(_o,na)=>{Fr.setValue(_o,{hex:na.value}),ht(_o,na),Ne(_o,na)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(st,ht,At)=>{st.updateHex(ht,At)}},extraApis:{}})},Rj=(o,c)=>{const g=nh.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[c("sv-palette-spectrum")]}}),S=nh.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[c("sv-palette-thumb")],innerHtml:``}}),_=(Ne,Ue)=>{const{width:Je,height:st}=Ne,ht=Ne.getContext("2d");if(ht===null)return;ht.fillStyle=Ue,ht.fillRect(0,0,Je,st);const At=ht.createLinearGradient(0,0,Je,0);At.addColorStop(0,"rgba(255,255,255,1)"),At.addColorStop(1,"rgba(255,255,255,0)"),ht.fillStyle=At,ht.fillRect(0,0,Je,st);const qt=ht.createLinearGradient(0,0,0,st);qt.addColorStop(0,"rgba(0,0,0,0)"),qt.addColorStop(1,"rgba(0,0,0,1)"),ht.fillStyle=qt,ht.fillRect(0,0,Je,st)},H=(Ne,Ue)=>{const Je=Ne.components()[0].element.dom,st=o3(Ue,100,100),ht=LI(st);_(Je,U8(ht))},K=(Ne,Ue)=>{const Je=C5(n3(Ue));nh.setValue(Ne,{x:Je.saturation,y:100-Je.value})};return _u({factory:Ne=>{const Ue=F({x:0,y:0}),Je=(At,qt,Dn)=>{vo(At,W6,{value:Dn})},st=(At,qt,Dn,mn)=>{_(Dn.element.dom,U8(Kd))},ht=pr([xs.config({find:L.some}),Mo.config({})]);return nh.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[c("sv-palette")]},model:{mode:"xy",getInitialValue:Ue},rounded:!1,components:[g,S],onChange:Je,onInit:st,sliderBehaviours:ht})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(Ne,Ue,Je)=>{H(Ue,Je)},setThumb:(Ne,Ue,Je)=>{K(Ue,Je)}},extraApis:{}})},Dj=(o,c)=>{const g=_=>{const H=n4(o,c,_.onValidHex,_.onInvalidHex),K=Rj(o,c),ve=Gn=>(100-Gn)/100*360,Ae=Gn=>100-Gn/360*100,Ne={paletteRgba:X(Kd),paletteHue:X(0)},Ue=ia(e4(o,c)),Je=ia(K.sketch({})),st=ia(H.sketch({})),ht=(Gn,Or,Mr)=>{Je.getOpt(Gn).each(is=>{K.setHue(is,Mr)})},At=(Gn,Or)=>{st.getOpt(Gn).each(Mr=>{H.updateHex(Mr,Or)})},qt=(Gn,Or,Mr)=>{Ue.getOpt(Gn).each(is=>{nh.setValue(is,Ae(Mr))})},Dn=(Gn,Or)=>{Je.getOpt(Gn).each(Mr=>{K.setThumb(Mr,Or)})},mn=(Gn,Or)=>{const Mr=n3(Gn);Ne.paletteRgba.set(Mr),Ne.paletteHue.set(Or)},on=(Gn,Or,Mr,is)=>{mn(Or,Mr),pe(is,Gr=>{Gr(Gn,Or,Mr)})},kn=()=>{const Gn=[At];return(Or,Mr)=>{const is=Mr.event.value,Gr=Ne.paletteHue.get(),Io=o3(Gr,is.x,100-is.y),_o=ZI(Io);on(Or,_o,Gr,Gn)}},Zn=()=>{const Gn=[ht,At];return(Or,Mr)=>{const is=ve(Mr.event.value),Gr=Ne.paletteRgba.get(),Io=C5(Gr),_o=o3(is,Io.saturation,Io.value),na=ZI(_o);on(Or,na,is,Gn)}},mr=()=>{const Gn=[ht,qt,Dn];return(Or,Mr)=>{const is=Mr.event.hex,Gr=bX(is);on(Or,is,Gr.hue,Gn)}};return{uid:_.uid,dom:_.dom,components:[Je.asSpec(),Ue.asSpec(),st.asSpec()],behaviours:pr([Jo("colour-picker-events",[qn(Hh,mr()),qn(W6,kn()),qn(J5,Zn())]),xs.config({find:Gn=>st.getOpt(Gn)}),yo.config({mode:"acyclic"})])}};return _u({name:"ColourPicker",configFields:[er("dom"),Mn("onValidHex",M),Mn("onInvalidHex",M)],factory:g})},Ff={self:()=>xs.config({find:L.some}),memento:o=>xs.config({find:o.getOpt}),childAt:o=>xs.config({find:c=>to(c.element,o).bind(g=>c.getSystem().getByDom(g).toOptional())})},g3=uo([Mn("preprocess",z),Mn("postprocess",z)]),p3=(o,c)=>{const g=El("RepresentingConfigs.memento processors",g3,c);return Fr.config({store:{mode:"manual",getValue:S=>{const _=o.get(S),H=Fr.getValue(_);return g.postprocess(H)},setValue:(S,_)=>{const H=g.preprocess(_),K=o.get(S);Fr.setValue(K,H)}}})},v1=(o,c,g)=>Fr.config({store:{mode:"manual",...o.map(S=>({initialValue:S})).getOr({}),getValue:c,setValue:g}}),X6=(o,c,g)=>v1(o,S=>c(S.element),(S,_)=>g(S.element,_)),fB=o=>X6(o,KS,Kp),v3=o=>Fr.config({store:{mode:"memory",initialValue:o}}),Ij={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},Nj=o=>c=>o.translate(Ij[c]),Bj=(o,c,g)=>{const S=Ae=>"tox-"+Ae,_=Dj(Nj(c),S),H=Ae=>{vo(Ae,ap,{name:"hex-valid",value:!0})},K=Ae=>{vo(Ae,ap,{name:"hex-valid",value:!1})},ve=ia(_.sketch({dom:{tag:"div",classes:[S("color-picker-container")],attributes:{role:"presentation"}},onValidHex:H,onInvalidHex:K}));return{dom:{tag:"div"},components:[ve.asSpec()],behaviours:pr([v1(g,Ae=>{const Ne=ve.get(Ae);return xs.getCurrent(Ne).bind(st=>Fr.getValue(st).hex).map(st=>"#"+Dt(st,"#")).getOr("")},(Ae,Ne)=>{const Ue=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,Je=L.from(Ue.exec(Ne)).bind(At=>le(At,1)),st=ve.get(Ae);xs.getCurrent(st).fold(()=>{console.log("Can not find form")},At=>{Fr.setValue(At,{hex:Je.getOr("")}),A2.getField(At,"hex").each(qt=>{ks(qt,di())})})}),Ff.self()])}};var Qj=tinymce.util.Tools.resolve("tinymce.Resource");const Fj=o=>vn(o,"init"),dB=o=>{const c=gs(),g=ia({dom:{tag:o.tag}}),S=gs();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:pr([Jo("custom-editor-events",[Ca(_=>{g.getOpt(_).each(H=>{(Fj(o)?o.init(H.element.dom):Qj.load(o.scriptId,o.scriptUrl).then(K=>K(H.element.dom,o.settings))).then(K=>{S.on(ve=>{K.setValue(ve)}),S.clear(),c.set(K)})})})]),v1(L.none(),()=>c.get().fold(()=>S.get().getOr(""),_=>_.getValue()),(_,H)=>{c.get().fold(()=>S.set(H),K=>K.setValue(H))}),Ff.self()]),components:[g.asSpec()]}};var up=tinymce.util.Tools.resolve("tinymce.util.Tools");const Vj=(o,c)=>{const g=up.explode(c.getOption("images_file_types")),S=_=>Te(g,H=>mt(_.name.toLowerCase(),`.${H.toLowerCase()}`));return xe(ze(o),S)},hB=(o,c,g)=>{const S=(st,ht)=>{ht.stop()},_=st=>(ht,At)=>{pe(st,qt=>{qt(ht,At)})},H=(st,ht)=>{var At;if(!Co.isDisabled(st)){const qt=ht.event.raw;ve(st,(At=qt.dataTransfer)===null||At===void 0?void 0:At.files)}},K=(st,ht)=>{const At=ht.event.raw.target;ve(st,At.files)},ve=(st,ht)=>{ht&&(Fr.setValue(st,Vj(ht,c)),vo(st,df,{name:o.name}))},Ae=ia({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:pr([Jo("input-file-events",[Sm($i()),Sm(Ac())])])}),Ne=st=>({uid:st.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:pr([v3(g.getOr([])),Ff.self(),Co.config({}),as.config({toggleClass:"dragenter",toggleOnExecute:!1}),Jo("dropzone-events",[qn("dragenter",_([S,as.toggle])),qn("dragleave",_([S,as.toggle])),qn("dragover",S),qn("drop",_([S,H])),qn(Yi(),K)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[yi(c.translate("Drop an image here"))]},Dl.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[yi(c.translate("Browse for an image")),Ae.asSpec()],action:ht=>{Ae.get(ht).element.dom.click()},buttonBehaviours:pr([Ga.config({}),tl.button(c.isDisabled),gl()])})]}]}),Ue=o.label.map(st=>eh(st,c)),Je=la.parts.field({factory:{sketch:Ne}});return c3(Ue,Je,["tox-form__group--stretched"],[])},zj=(o,c)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${o.columns}col`]},components:ne(o.items,c.interpreter)}),mB=(o,c)=>{let g=null,S=null;return{cancel:()=>{y(g)||(clearTimeout(g),g=null,S=null)},throttle:(...K)=>{S=K,y(g)&&(g=setTimeout(()=>{const ve=S;g=null,S=null,o.apply(null,ve)},c))}}},y3=(o,c)=>{let g=null;return{cancel:()=>{y(g)||(clearTimeout(g),g=null)},throttle:(...H)=>{y(g)&&(g=setTimeout(()=>{g=null,o.apply(null,H)},c))}}},G6=(o,c)=>{let g=null;const S=()=>{y(g)||(clearTimeout(g),g=null)};return{cancel:S,throttle:(...H)=>{S(),g=setTimeout(()=>{g=null,o.apply(null,H)},c)}}},r4=Kr("alloy-fake-before-tabstop"),j6=Kr("alloy-fake-after-tabstop"),gB=o=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:o},behaviours:pr([Mo.config({ignore:!0}),Ga.config({})])}),pB=(o,c)=>({dom:{tag:"div",classes:["tox-navobj",...o.getOr([])]},components:[gB([r4]),c,gB([j6])],behaviours:pr([Ff.childAt(1)])}),vB=(o,c)=>{vo(o,_s(),{raw:{which:9,shiftKey:c}})},yB=(o,c)=>{const g=c.element;Ji(g,r4)?vB(o,!0):Ji(g,j6)&&vB(o,!1)},b3=o=>i3(o,["."+r4,"."+j6].join(","),Y),O3=Kr("update-dialog"),o4=Kr("update-title"),fp=Kr("update-body"),s4=Kr("update-footer"),q6=Kr("body-send-message"),x3=Kr("dialog-focus-shifted"),S3=jf().browser,P2=S3.isSafari(),a4=S3.isFirefox(),K6=P2||a4,bB=S3.isChromium(),Zj=({scrollTop:o,scrollHeight:c,clientHeight:g})=>Math.ceil(o)+g>=c,OB=(o,c)=>o.scrollTo(0,c==="bottom"?99999999:c),Hj=(o,c)=>{const g=o.body;return L.from(!/^1))?g:o.documentElement)},xB=(o,c,g)=>{const S=o.dom;L.from(S.contentDocument).fold(g,_=>{let H=0;const K=Hj(_,c).map(Ae=>(H=Ae.scrollTop,Ae)).forall(Zj),ve=()=>{const Ae=S.contentWindow;C(Ae)&&(K?OB(Ae,"bottom"):!K&&K6&&H!==0&&OB(Ae,H))};P2&&S.addEventListener("load",ve,{once:!0}),_.open(),_.write(c),_.close(),P2||ve()})},SB=it(K6,P2?500:200).map(o=>mB(xB,o)),wB=(o,c)=>{const g=X(o.getOr(""));return{getValue:S=>g.get(),setValue:(S,_)=>{if(g.get()!==_){const H=S.element,K=()=>Dr(H,"srcdoc",_);c?SB.fold(F(xB),ve=>ve.throttle)(H,_,K):K()}g.set(_)}}},Uj=(o,c,g)=>{const S="tox-dialog__iframe",_=o.transparent?[]:[`${S}--opaque`],H=o.border?["tox-navobj-bordered"]:[],K={...o.label.map(Je=>({title:Je})).getOr({}),...g.map(Je=>({srcdoc:Je})).getOr({}),...o.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},ve=wB(g,o.streamContent),Ae=o.label.map(Je=>eh(Je,c)),Ne=Je=>pB(L.from(H),{uid:Je.uid,dom:{tag:"iframe",attributes:K,classes:[S,..._]},behaviours:pr([Ga.config({}),Mo.config({}),v1(g,ve.getValue,ve.setValue),lu.config({channels:{[x3]:{onReceive:(st,ht)=>{ht.newFocus.each(At=>{dr(st.element).each(qt=>{(Jt(st.element,At)?ki:Xa)(qt,"tox-navobj-bordered-focus")})})}}}})])}),Ue=la.parts.field({factory:{sketch:Ne}});return c3(Ae,Ue,["tox-form__group--stretched"],[])},Wj=o=>new Promise((c,g)=>{const S=()=>{H(),c(o)},_=[_c(o,"load",S),_c(o,"error",()=>{H(),g("Unable to load data from image: "+o.dom.src)})],H=()=>pe(_,K=>K.unbind());o.dom.complete&&S()}),Yj=(o,c,g,S,_)=>{const H=g*_,K=S*_,ve=Math.max(0,o/2-H/2),Ae=Math.max(0,c/2-K/2);return{left:ve.toString()+"px",top:Ae.toString()+"px",width:H.toString()+"px",height:K.toString()+"px"}},i4=(o,c,g)=>{const S=Si(o),_=Za(o);return Math.min(S/c,_/g,1)},Xj=(o,c)=>{const g=X(c.getOr({url:""})),S=ia({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:c.map(Ae=>({src:Ae.url})).getOr({})}}),_=ia({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[S.asSpec()]}),H=(Ae,Ne)=>{const Ue={url:Ne.url};Ne.zoom.each(st=>Ue.zoom=st),Ne.cachedWidth.each(st=>Ue.cachedWidth=st),Ne.cachedHeight.each(st=>Ue.cachedHeight=st),g.set(Ue);const Je=()=>{const{cachedWidth:st,cachedHeight:ht,zoom:At}=Ue;if(!x(st)&&!x(ht)){if(x(At)){const Dn=i4(Ae.element,st,ht);Ue.zoom=Dn}const qt=Yj(Si(Ae.element),Za(Ae.element),st,ht,Ue.zoom);_.getOpt(Ae).each(Dn=>{zi(Dn.element,qt)})}};S.getOpt(Ae).each(st=>{const ht=st.element;Ne.url!==oa(ht,"src")&&(Dr(ht,"src",Ne.url),Xa(Ae.element,"tox-imagepreview__loaded")),Je(),Wj(ht).then(At=>{Ae.getSystem().isConnected()&&(ki(Ae.element,"tox-imagepreview__loaded"),Ue.cachedWidth=At.dom.naturalWidth,Ue.cachedHeight=At.dom.naturalHeight,Je())})})},K={};o.height.each(Ae=>K.height=Ae);const ve=c.map(Ae=>({url:Ae.url,zoom:L.from(Ae.zoom),cachedWidth:L.from(Ae.cachedWidth),cachedHeight:L.from(Ae.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:K,attributes:{role:"presentation"}},components:[_.asSpec()],behaviours:pr([Ff.self(),v1(ve,()=>g.get(),H)])}},Gj=(o,c)=>{const g="tox-label",S=o.align==="center"?[`${g}--center`]:[],_=o.align==="end"?[`${g}--end`]:[],H={dom:{tag:"label",classes:[g,...S,..._]},components:[yi(c.providers.translate(o.label))]},K=ne(o.items,c.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[H,...K],behaviours:pr([Ff.self(),Uo.config({}),fB(L.none()),yo.config({mode:"acyclic"})])}},J6=Kr("toolbar.button.execute"),TB=o=>rd((c,g)=>{md(o,c)(S=>{vo(c,J6,{buttonApi:S}),o.onAction(S)})}),Zb=Kr("common-button-display-events"),CB={[Ii()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],[ef()]:["toolbar-button-events",Zb],[go()]:["focusing","alloy.base.behaviour",Zb]},w3=o=>Po(o.element,"width",Qa(o.element,"width")),kB=(o,c,g)=>Bh(o,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:g},c),l4=(o,c)=>kB(o,c,[]),y1=(o,c)=>kB(o,c,[Uo.config({})]),AB=(o,c,g)=>({dom:{tag:"span",classes:[`${c}__select-label`]},components:[yi(g.translate(o))],behaviours:pr([Uo.config({})])}),rh=Kr("update-menu-text"),b1=Kr("update-menu-icon"),c4=(o,c,g)=>{const S=X(M),_=o.text.map(st=>ia(AB(st,c,g.providers))),H=o.icon.map(st=>ia(y1(st,g.providers.icons))),K=(st,ht)=>{const At=Fr.getValue(st);return Mo.focus(At),vo(At,"keydown",{raw:ht.event.raw}),Jd.close(At),L.some(!0)},ve=o.role.fold(()=>({}),st=>({role:st})),Ae=o.tooltip.fold(()=>({}),st=>{const ht=g.providers.translate(st);return{title:ht,"aria-label":ht}}),Ne=Bh("chevron-down",{tag:"div",classes:[`${c}__select-chevron`]},g.providers.icons),Ue=Kr("common-button-display-events");return ia(Jd.sketch({...o.uid?{uid:o.uid}:{},...ve,dom:{tag:"button",classes:[c,`${c}--select`].concat(ne(o.classes,st=>`${c}--${st}`)),attributes:{...Ae}},components:p2([H.map(st=>st.asSpec()),_.map(st=>st.asSpec()),L.some(Ne)]),matchWidth:!0,useMinWidth:!0,onOpen:(st,ht,At)=>{o.searchable&&aG(At)},dropdownBehaviours:pr([...o.dropdownBehaviours,tl.button(()=>o.disabled||g.providers.isDisabled()),gl(),d3.config({}),Uo.config({}),Jo("dropdown-events",[l1(o,S),rp(o,S)]),Jo(Ue,[Ca((st,ht)=>w3(st))]),Jo("menubutton-update-display-text",[qn(rh,(st,ht)=>{_.bind(At=>At.getOpt(st)).each(At=>{Uo.set(At,[yi(g.providers.translate(ht.event.text))])})}),qn(b1,(st,ht)=>{H.bind(At=>At.getOpt(st)).each(At=>{Uo.set(At,[y1(ht.event.icon,g.providers.icons)])})})])]),eventOrder:Ta(CB,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[ef()]:["toolbar-button-events","dropdown-events",Ue]}),sandboxBehaviours:pr([yo.config({mode:"special",onLeft:K,onRight:K}),Jo("dropdown-sandbox-events",[qn(QL,(st,ht)=>{tG(st),ht.stop()}),qn(FL,(st,ht)=>{nG(st,ht),ht.stop()})])]),lazySink:g.getSink,toggleClass:`${c}--active`,parts:{menu:{...c2(!1,o.columns,o.presets),fakeFocus:o.searchable,onHighlightItem:v6,onCollapseMenu:(st,ht,At)=>{Ys.getHighlighted(At).each(qt=>{v6(st,At,qt)})},onDehighlightItem:sG}},getAnchorOverrides:()=>({maxHeightFunction:(st,ht)=>{$k()(st,ht-10)}}),fetch:st=>$c.nu(Q(o.fetch,st))})).asSpec()},jj=o=>m(o),PB=o=>o.type==="separator",qj=o=>vn(o,"getSubmenuItems"),Kj={type:"separator"},MB=(o,c)=>{const g=ke(o,(S,_)=>jj(_)?_===""?S:_==="|"?S.length>0&&!PB(S[S.length-1])?S.concat([Kj]):S:vn(c,_.toLowerCase())?S.concat([c[_.toLowerCase()]]):S:S.concat([_]),[]);return g.length>0&&PB(g[g.length-1])&&g.pop(),g},Jj=(o,c)=>{const g=o.getSubmenuItems(),S=_B(g,c),_=Ta(S.menus,{[o.value]:S.items}),H=Ta(S.expansions,{[o.value]:o.value});return{item:o,menus:_,expansions:H}},EB=o=>{const c=Bt(o,"value").getOrThunk(()=>Kr("generated-menu-item"));return Ta({value:c},o)},_B=(o,c)=>{const g=MB(m(o)?o.split(" "):o,c);return Le(g,(S,_)=>{if(qj(_)){const H=EB(_),K=Jj(H,c);return{menus:Ta(S.menus,K.menus),items:[K.item,...S.items],expansions:Ta(S.expansions,K.expansions)}}else return{...S,items:[_,...S.items]}},{menus:{},expansions:{},items:[]})},eq=o=>o.search.fold(()=>({searchMode:"no-search"}),c=>({searchMode:"search-with-field",placeholder:c.placeholder})),tq=o=>o.search.fold(()=>({searchMode:"no-search"}),c=>({searchMode:"search-with-results"})),M2=(o,c,g,S)=>{const _=Kr("primary-menu"),H=_B(o,g.shared.providers.menuItems());if(H.items.length===0)return L.none();const K=eq(S),ve=fN(_,H.items,c,g,S.isHorizontalMenu,K),Ae=tq(S),Ne=je(H.menus,(Je,st)=>fN(st,Je,c,g,!1,Ae)),Ue=Ta(Ne,vt(_,ve));return L.from(a1.tieredData(_,Ue,H.expansions))},e7=o=>!vn(o,"items"),RB="data-value",DB=(o,c,g,S)=>ne(g,_=>e7(_)?{type:"togglemenuitem",text:_.text,value:_.value,active:_.value===S,onAction:()=>{Fr.setValue(o,_.value),vo(o,df,{name:c}),Mo.focus(o)}}:{type:"nestedmenuitem",text:_.text,getSubmenuItems:()=>DB(o,c,_.items,S)}),t7=(o,c)=>Xe(o,g=>e7(g)?it(g.value===c,g):t7(g.items,c)),nq=(o,c,g)=>{const S=c.shared.providers,_=g.bind(Ae=>t7(o.items,Ae)).orThunk(()=>Ce(o.items).filter(e7)),H=o.label.map(Ae=>eh(Ae,S)),K=la.parts.field({dom:{},factory:{sketch:Ae=>c4({uid:Ae.uid,text:_.map(Ne=>Ne.text),icon:L.none(),tooltip:o.label,role:L.none(),fetch:(Ne,Ue)=>{const Je=DB(Ne,o.name,o.items,Fr.getValue(Ne));Ue(M2(Je,Hm.CLOSE_ON_EXECUTE,c,{isHorizontalMenu:!1,search:L.none()}))},onSetup:F(M),getApi:F({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Ga.config({}),v1(_.map(Ne=>Ne.value),Ne=>oa(Ne.element,RB),(Ne,Ue)=>{t7(o.items,Ue).each(Je=>{Dr(Ne.element,RB,Je.value),vo(Ne,rh,{text:Je.text})})})]},"tox-listbox",c.shared)}}),ve={dom:{tag:"div",classes:["tox-listboxfield"]},components:[K]};return la.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Ie([H.toArray(),[ve]]),fieldBehaviours:pr([Co.config({disabled:F(!o.enabled),onDisabled:Ae=>{la.getField(Ae).each(Co.disable)},onEnabled:Ae=>{la.getField(Ae).each(Co.enable)}})])})},n7=(o,c)=>({dom:{tag:"div",classes:o.classes},components:ne(o.items,c.shared.interpreter)}),rq=(o,c)=>{const g=ne(o.options,_=>({dom:{tag:"option",value:_.value,innerHtml:_.text}})),S=o.data.map(_=>vt("initialValue",_)).getOr({});return{uid:o.uid,dom:{tag:"select",classes:o.selectClasses,attributes:o.selectAttributes},components:g,behaviours:Ni(o.selectBehaviours,[Mo.config({}),Fr.config({store:{mode:"manual",getValue:_=>Ch(_.element),setValue:(_,H)=>{const K=Ce(o.options);Ze(o.options,Ae=>Ae.value===H).isSome()?b0(_.element,H):_.element.dom.selectedIndex===-1&&H===""&&K.each(Ae=>b0(_.element,Ae.value))},...S}})])}},oq=_u({name:"HtmlSelect",configFields:[er("options"),el("selectBehaviours",[Mo,Fr]),Mn("selectClasses",[]),Mn("selectAttributes",{}),Ws("data")],factory:rq}),sq=(o,c,g)=>{const S=ne(o.items,Ae=>({text:c.translate(Ae.text),value:Ae.value})),_=o.label.map(Ae=>eh(Ae,c)),H=la.parts.field({dom:{},...g.map(Ae=>({data:Ae})).getOr({}),selectAttributes:{size:o.size},options:S,factory:oq,selectBehaviours:pr([Co.config({disabled:()=>!o.enabled||c.isDisabled()}),Ga.config({}),Jo("selectbox-change",[qn(Yi(),(Ae,Ne)=>{vo(Ae,df,{name:o.name})})])])}),K=o.size>1?L.none():L.some(Bh("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},c.icons)),ve={dom:{tag:"div",classes:["tox-selectfield"]},components:Ie([[H],K.toArray()])};return la.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Ie([_.toArray(),[ve]]),fieldBehaviours:pr([Co.config({disabled:()=>!o.enabled||c.isDisabled(),onDisabled:Ae=>{la.getField(Ae).each(Co.disable)},onEnabled:Ae=>{la.getField(Ae).each(Co.enable)}}),gl()])})},T3=F([Mn("field1Name","field1"),Mn("field2Name","field2"),zd("onLockedChange"),$g(["lockClass"]),Mn("locked",!1),If.field("coupledFieldBehaviours",[xs,Fr])]),r7=(o,c,g)=>ka(o,c,g).bind(xs.getCurrent),$B=(o,c)=>ic({factory:la,name:o,overrides:g=>({fieldBehaviours:pr([Jo("coupled-input-behaviour",[qn(di(),S=>{r7(S,g,c).each(_=>{ka(S,g,"lock").each(H=>{as.isOn(H)&&g.onLockedChange(S,_,H)})})})])])})}),aq=F([$B("field1","field2"),$B("field2","field1"),ic({factory:Dl,schema:[er("dom")],name:"lock",overrides:o=>({buttonBehaviours:pr([as.config({selected:o.locked,toggleClass:o.markers.lockClass,aria:{mode:"pressed"}})])})})]),o7=(o,c,g,S)=>({uid:o.uid,dom:o.dom,components:c,behaviours:If.augment(o.coupledFieldBehaviours,[xs.config({find:L.some}),Fr.config({store:{mode:"manual",getValue:_=>{const H=mv(_,o,["field1","field2"]);return{[o.field1Name]:Fr.getValue(H.field1()),[o.field2Name]:Fr.getValue(H.field2())}},setValue:(_,H)=>{const K=mv(_,o,["field1","field2"]);En(H,o.field1Name)&&Fr.setValue(K.field1(),H[o.field1Name]),En(H,o.field2Name)&&Fr.setValue(K.field2(),H[o.field2Name])}}})]),apis:{getField1:_=>ka(_,o,"field1"),getField2:_=>ka(_,o,"field2"),getLock:_=>ka(_,o,"lock")}}),vd=lc({name:"FormCoupledInputs",configFields:T3(),partFields:aq(),factory:o7,apis:{getField1:(o,c)=>o.getField1(c),getField2:(o,c)=>o.getField2(c),getLock:(o,c)=>o.getLock(c)}}),s7=o=>{const c={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},g=_=>_ in c?c[_]:1;let S=o.value.toFixed(g(o.unit));return S.indexOf(".")!==-1&&(S=S.replace(/\.?0*$/,"")),S+o.unit},u4=o=>{const g=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(o);if(g!==null){const S=parseFloat(g[1]),_=g[2];return jo.value({value:S,unit:_})}else return jo.error(o)},LB=(o,c)=>{const g={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},S=_=>vn(g,_);return o.unit===c?L.some(o.value):S(o.unit)&&S(c)?g[o.unit]===g[c]?L.some(o.value):L.some(o.value/g[o.unit]*g[c]):L.none()},a7=o=>L.none(),IB=(o,c)=>g=>LB(g,c).map(S=>({value:S*o,unit:c})),NB=(o,c)=>{const g=u4(o).toOptional(),S=u4(c).toOptional();return Xn(g,S,(_,H)=>LB(_,H.unit).map(K=>H.value/K).map(K=>IB(K,H.unit)).getOr(a7)).getOr(a7)},iq=(o,c)=>{let g=a7;const S=Kr("ratio-event"),_=Je=>Bh(Je,{tag:"span",classes:["tox-icon","tox-lock-icon__"+Je]},c.icons),H=vd.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:c.translate(o.label.getOr("Constrain proportions"))}},components:[_("lock"),_("unlock")],buttonBehaviours:pr([Co.config({disabled:()=>!o.enabled||c.isDisabled()}),gl(),Ga.config({})])}),K=Je=>({dom:{tag:"div",classes:["tox-form__group"]},components:Je}),ve=Je=>la.parts.field({factory:Ib,inputClasses:["tox-textfield"],inputBehaviours:pr([Co.config({disabled:()=>!o.enabled||c.isDisabled()}),gl(),Ga.config({}),Jo("size-input-events",[qn(Do(),(st,ht)=>{vo(st,S,{isField1:Je})}),qn(Yi(),(st,ht)=>{vo(st,df,{name:o.name})})])]),selectOnFocus:!1}),Ae=Je=>({dom:{tag:"label",classes:["tox-label"]},components:[yi(c.translate(Je))]}),Ne=vd.parts.field1(K([la.parts.label(Ae("Width")),ve(!0)])),Ue=vd.parts.field2(K([la.parts.label(Ae("Height")),ve(!1)]));return vd.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[Ne,Ue,K([Ae(Vw),H])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(Je,st,ht)=>{u4(Fr.getValue(Je)).each(At=>{g(At).each(qt=>{Fr.setValue(st,s7(qt))})})},coupledFieldBehaviours:pr([Co.config({disabled:()=>!o.enabled||c.isDisabled(),onDisabled:Je=>{vd.getField1(Je).bind(la.getField).each(Co.disable),vd.getField2(Je).bind(la.getField).each(Co.disable),vd.getLock(Je).each(Co.disable)},onEnabled:Je=>{vd.getField1(Je).bind(la.getField).each(Co.enable),vd.getField2(Je).bind(la.getField).each(Co.enable),vd.getLock(Je).each(Co.enable)}}),gl(),Jo("size-input-events2",[qn(S,(Je,st)=>{const ht=st.event.isField1,At=ht?vd.getField1(Je):vd.getField2(Je),qt=ht?vd.getField2(Je):vd.getField1(Je),Dn=At.map(Fr.getValue).getOr(""),mn=qt.map(Fr.getValue).getOr("");g=NB(Dn,mn)})])])})},BB=(o,c,g)=>{const S=nh.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[yi(c.translate(o.label))]}),_=nh.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),H=nh.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return nh.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:o.min,maxX:o.max,getInitialValue:F(g.getOrThunk(()=>(Math.abs(o.max)-Math.abs(o.min))/2))},components:[S,_,H],sliderBehaviours:pr([Ff.self(),Mo.config({})]),onChoose:(K,ve,Ae)=>{vo(K,df,{name:o.name,value:Ae})}})},QB=(o,c)=>{const g=ve=>({dom:{tag:"th",innerHtml:c.translate(ve)}}),S=ve=>({dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:ne(ve,g)}]}),_=ve=>({dom:{tag:"td",innerHtml:c.translate(ve)}}),H=ve=>({dom:{tag:"tr"},components:ne(ve,_)}),K=ve=>({dom:{tag:"tbody"},components:ne(ve,H)});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[S(o.header),K(o.cells)],behaviours:pr([Ga.config({}),Mo.config({})])}},FB=(o,c)=>{const g=o.label.map(ht=>eh(ht,c)),S=[Co.config({disabled:()=>o.disabled||c.isDisabled()}),gl(),yo.config({mode:"execution",useEnter:o.multiline!==!0,useControlEnter:o.multiline===!0,execute:ht=>(ks(ht,f3),L.some(!0))}),Jo("textfield-change",[qn(di(),(ht,At)=>{vo(ht,df,{name:o.name})}),qn(Li(),(ht,At)=>{vo(ht,df,{name:o.name})})]),Ga.config({})],_=o.validation.map(ht=>gd.config({getRoot:At=>dr(At.element),invalidClass:"tox-invalid",validator:{validate:At=>{const qt=Fr.getValue(At),Dn=ht.validator(qt);return $c.pure(Dn===!0?jo.value(qt):jo.error(Dn))},validateOnLoad:ht.validateOnLoad}})).toArray(),H=o.placeholder.fold(F({}),ht=>({placeholder:c.translate(ht)})),K=o.inputMode.fold(F({}),ht=>({inputmode:ht})),ve={...H,...K},Ae=la.parts.field({tag:o.multiline===!0?"textarea":"input",...o.data.map(ht=>({data:ht})).getOr({}),inputAttributes:ve,inputClasses:[o.classname],inputBehaviours:pr(Ie([S,_])),selectOnFocus:!1,factory:Ib}),Ne=o.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[Ae]}:Ae,Je=(o.flex?["tox-form__group--stretched"]:[]).concat(o.maximized?["tox-form-group--maximize"]:[]),st=[Co.config({disabled:()=>o.disabled||c.isDisabled(),onDisabled:ht=>{la.getField(ht).each(Co.disable)},onEnabled:ht=>{la.getField(ht).each(Co.enable)}}),gl()];return c3(g,Ne,Je,st)},VB=(o,c,g)=>FB({name:o.name,multiline:!1,label:o.label,inputMode:o.inputMode,placeholder:o.placeholder,flex:!1,disabled:!o.enabled,classname:"tox-textfield",validation:L.none(),maximized:o.maximized,data:g},c),zB=(o,c,g)=>FB({name:o.name,multiline:!0,label:o.label,inputMode:L.none(),placeholder:o.placeholder,flex:!0,disabled:!o.enabled,classname:"tox-textarea",validation:L.none(),maximized:o.maximized,data:g},c),E2=(o,c)=>c.getAnimationRoot.fold(()=>o.element,g=>g(o)),Pv=o=>o.dimension.property,Hb=(o,c)=>o.dimension.getDimension(c),f4=(o,c)=>{const g=E2(o,c);tf(g,[c.shrinkingClass,c.growingClass])},d4=(o,c)=>{Xa(o.element,c.openClass),ki(o.element,c.closedClass),Po(o.element,Pv(c),"0px"),li(o.element)},i7=(o,c)=>{Xa(o.element,c.closedClass),ki(o.element,c.openClass),Zo(o.element,Pv(c))},l7=(o,c,g,S)=>{g.setCollapsed(),Po(o.element,Pv(c),Hb(c,o.element)),f4(o,c),d4(o,c),c.onStartShrink(o),c.onShrunk(o)},lq=(o,c,g,S)=>{const _=S.getOrThunk(()=>Hb(c,o.element));g.setCollapsed(),Po(o.element,Pv(c),_),li(o.element);const H=E2(o,c);Xa(H,c.growingClass),ki(H,c.shrinkingClass),d4(o,c),c.onStartShrink(o)},ZB=(o,c,g)=>{const S=Hb(c,o.element);(S==="0px"?l7:lq)(o,c,g,L.some(S))},h4=(o,c,g)=>{const S=E2(o,c),_=Ji(S,c.shrinkingClass),H=Hb(c,o.element);i7(o,c);const K=Hb(c,o.element);(_?()=>{Po(o.element,Pv(c),H),li(o.element)}:()=>{d4(o,c)})(),Xa(S,c.shrinkingClass),ki(S,c.growingClass),i7(o,c),Po(o.element,Pv(c),K),g.setExpanded(),c.onStartGrow(o)},cq=(o,c,g)=>{if(g.isExpanded()){Zo(o.element,Pv(c));const S=Hb(c,o.element);Po(o.element,Pv(c),S)}},uq=(o,c,g)=>{g.isExpanded()||h4(o,c,g)},fq=(o,c,g)=>{g.isExpanded()&&ZB(o,c,g)},HB=(o,c,g)=>{g.isExpanded()&&l7(o,c,g)},dq=(o,c,g)=>g.isExpanded(),UB=(o,c,g)=>g.isCollapsed(),WB=(o,c,g)=>{const S=E2(o,c);return Ji(S,c.growingClass)===!0},c7=(o,c,g)=>{const S=E2(o,c);return Ji(S,c.shrinkingClass)===!0};var hq=Object.freeze({__proto__:null,refresh:cq,grow:uq,shrink:fq,immediateShrink:HB,hasGrown:dq,hasShrunk:UB,isGrowing:WB,isShrinking:c7,isTransitioning:(o,c,g)=>WB(o,c)||c7(o,c),toggleGrow:(o,c,g)=>{(g.isExpanded()?ZB:h4)(o,c,g)},disableTransitions:f4,immediateGrow:(o,c,g)=>{g.isExpanded()||(i7(o,c),Po(o.element,Pv(c),Hb(c,o.element)),f4(o,c),g.setExpanded(),c.onStartGrow(o),c.onGrown(o))}}),gq=Object.freeze({__proto__:null,exhibit:(o,c,g)=>{const S=c.expanded;return ku(S?{classes:[c.openClass],styles:{}}:{classes:[c.closedClass],styles:vt(c.dimension.property,"0px")})},events:(o,c)=>Ea([xh(Ki(),(g,S)=>{S.event.raw.propertyName===o.dimension.property&&(f4(g,o),c.isExpanded()&&Zo(g.element,o.dimension.property),(c.isExpanded()?o.onGrown:o.onShrunk)(g))})])}),YB=[er("closedClass"),er("openClass"),er("shrinkingClass"),er("growingClass"),Ws("getAnimationRoot"),Rs("onShrunk"),Rs("onStartShrink"),Rs("onGrown"),Rs("onStartGrow"),Mn("expanded",!1),Zc("dimension",Os("property",{width:[ha("property","width"),ha("getDimension",o=>Si(o)+"px")],height:[ha("property","height"),ha("getDimension",o=>Za(o)+"px")]}))],pq=Object.freeze({__proto__:null,init:o=>{const c=X(o.expanded),g=()=>"expanded: "+c.get();return Cu({isExpanded:()=>c.get()===!0,isCollapsed:()=>c.get()===!1,setCollapsed:Q(c.set,!1),setExpanded:Q(c.set,!0),readState:g})}});const Vf=dl({fields:YB,name:"sliding",active:gq,apis:hq,state:pq}),u7=o=>({isEnabled:()=>!Co.isDisabled(o),setEnabled:c=>Co.set(o,!c),setActive:c=>{const g=o.element;c?(ki(g,"tox-tbtn--enabled"),Dr(g,"aria-pressed",!0)):(Xa(g,"tox-tbtn--enabled"),sa(g,"aria-pressed"))},isActive:()=>Ji(o.element,"tox-tbtn--enabled"),setText:c=>{vo(o,rh,{text:c})},setIcon:c=>vo(o,b1,{icon:c})}),C3=(o,c,g,S,_=!0)=>c4({text:o.text,icon:o.icon,tooltip:o.tooltip,searchable:o.search.isSome(),role:S,fetch:(H,K)=>{const ve={pattern:o.search.isSome()?iG(H):""};o.fetch(Ae=>{K(M2(Ae,Hm.CLOSE_ON_EXECUTE,g,{isHorizontalMenu:!1,search:o.search}))},ve,u7(H))},onSetup:o.onSetup,getApi:u7,columns:1,presets:"normal",classes:[],dropdownBehaviours:[..._?[Ga.config({})]:[]]},c,g.shared),vq=(o,c,g)=>{const S=H=>K=>{const ve=!K.isActive();K.setActive(ve),H.storage.set(ve),g.shared.getSink().each(Ae=>{c().getOpt(Ae).each(Ne=>{cu(Ne.element),vo(Ne,ap,{name:H.name,value:H.storage.get()})})})},_=H=>K=>{K.setActive(H.storage.get())};return H=>{H(ne(o,K=>{const ve=K.text.fold(()=>({}),Ae=>({text:Ae}));return{type:K.type,active:!1,...ve,onAction:S(K),onSetup:_(K)}}))}},XB=o=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{title:o,"aria-label":o}},components:[yi(o)]}),f7=Kr("leaf-label-event-id"),m4=({leaf:o,onLeafAction:c,visible:g,treeId:S,selectedId:_,backstage:H})=>{const K=o.menu.map(Ae=>C3(Ae,"tox-mbtn",H,L.none(),g)),ve=[XB(o.title)];return K.each(Ae=>ve.push(Ae)),Dl.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(g?["tox-tree--leaf__label--visible"]:[])},components:ve,role:"treeitem",action:Ae=>{c(o.id),Ae.getSystem().broadcastOn([`update-active-item-${S}`],{value:o.id})},eventOrder:{[_s()]:[f7,"keying"]},buttonBehaviours:pr([...g?[Ga.config({})]:[],as.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),lu.config({channels:{[`update-active-item-${S}`]:{onReceive:(Ae,Ne)=>{(Ne.value===o.id?as.on:as.off)(Ae)}}}}),Jo(f7,[Ca((Ae,Ne)=>{_.each(Ue=>{(Ue===o.id?as.on:as.off)(Ae)})}),qn(_s(),(Ae,Ne)=>{const Ue=Ne.event.raw.code==="ArrowLeft",Je=Ne.event.raw.code==="ArrowRight";Ue?(Pu(Ae.element,".tox-tree--directory").each(st=>{Ae.getSystem().getByDom(st).each(ht=>{ix(st,".tox-tree--directory__label").each(At=>{ht.getSystem().getByDom(At).each(Mo.focus)})})}),Ne.stop()):Je&&Ne.stop()})])])})},GB=(o,c,g)=>Bh(o,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:g},c),g4=(o,c)=>GB(o,c,[]),jB=Kr("directory-label-event-id"),yq=({directory:o,visible:c,noChildren:g,backstage:S})=>{const _=o.menu.map(ve=>C3(ve,"tox-mbtn",S,L.none())),H=[{dom:{tag:"div",classes:["tox-chevron"]},components:[g4("chevron-right",S.shared.providers.icons)]},XB(o.title)];_.each(ve=>{H.push(ve)});const K=ve=>{Pu(ve.element,".tox-tree--directory").each(Ae=>{ve.getSystem().getByDom(Ae).each(Ne=>{const Ue=!as.isOn(Ne);as.toggle(Ne),vo(ve,"expand-tree-node",{expanded:Ue,node:o.id})})})};return Dl.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(c?["tox-tree--directory__label--visible"]:[])},components:H,action:K,eventOrder:{[_s()]:[jB,"keying"]},buttonBehaviours:pr([...c?[Ga.config({})]:[],Jo(jB,[qn(_s(),(ve,Ae)=>{const Ne=Ae.event.raw.code==="ArrowRight",Ue=Ae.event.raw.code==="ArrowLeft";Ne&&g&&Ae.stop(),(Ne||Ue)&&Pu(ve.element,".tox-tree--directory").each(Je=>{ve.getSystem().getByDom(Je).each(st=>{!as.isOn(st)&&Ne||as.isOn(st)&&Ue?(K(ve),Ae.stop()):Ue&&!as.isOn(st)&&(Pu(st.element,".tox-tree--directory").each(ht=>{ix(ht,".tox-tree--directory__label").each(At=>{st.getSystem().getByDom(At).each(Mo.focus)})}),Ae.stop())})})})])])})},bq=({children:o,onLeafAction:c,visible:g,treeId:S,expandedIds:_,selectedId:H,backstage:K})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:o.map(ve=>ve.type==="leaf"?m4({leaf:ve,selectedId:H,onLeafAction:c,visible:g,treeId:S,backstage:K}):p4({directory:ve,expandedIds:_,selectedId:H,onLeafAction:c,labelTabstopping:g,treeId:S,backstage:K})),behaviours:pr([Vf.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:g}),Uo.config({})])}),Oq=Kr("directory-event-id"),p4=({directory:o,onLeafAction:c,labelTabstopping:g,treeId:S,backstage:_,expandedIds:H,selectedId:K})=>{const{children:ve}=o,Ae=X(H),Ne=Je=>ve.map(st=>st.type==="leaf"?m4({leaf:st,selectedId:K,onLeafAction:c,visible:Je,treeId:S,backstage:_}):p4({directory:st,expandedIds:Ae.get(),selectedId:K,onLeafAction:c,labelTabstopping:Je,treeId:S,backstage:_})),Ue=H.includes(o.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[yq({directory:o,visible:g,noChildren:o.children.length===0,backstage:_}),bq({children:ve,expandedIds:H,selectedId:K,onLeafAction:c,visible:Ue,treeId:S,backstage:_})],behaviours:pr([Jo(Oq,[Ca((Je,st)=>{as.set(Je,Ue)}),qn("expand-tree-node",(Je,st)=>{const{expanded:ht,node:At}=st.event;Ae.set(ht?[...Ae.get(),At]:Ae.get().filter(qt=>qt!==At))})]),as.config({...o.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(Je,st)=>{const ht=Je.components()[1],At=Ne(st);st?Vf.grow(ht):Vf.shrink(ht),Uo.set(ht,At)}})])}},xq=Kr("tree-event-id"),Sq=(o,c)=>{const g=o.onLeafAction.getOr(M),S=o.onToggleExpand.getOr(M),_=o.defaultExpandedIds,H=X(_),K=X(o.defaultSelectedId),ve=Kr("tree-id"),Ae=(Ne,Ue)=>o.items.map(Je=>Je.type==="leaf"?m4({leaf:Je,selectedId:Ne,onLeafAction:g,visible:!0,treeId:ve,backstage:c}):p4({directory:Je,selectedId:Ne,onLeafAction:g,expandedIds:Ue,labelTabstopping:!0,treeId:ve,backstage:c}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:Ae(K.get(),H.get()),behaviours:pr([yo.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),Jo(xq,[qn("expand-tree-node",(Ne,Ue)=>{const{expanded:Je,node:st}=Ue.event;H.set(Je?[...H.get(),st]:H.get().filter(ht=>ht!==st)),S(H.get(),{expanded:Je,node:st})})]),lu.config({channels:{[`update-active-item-${ve}`]:{onReceive:(Ne,Ue)=>{K.set(L.some(Ue.value)),Uo.set(Ne,Ae(L.some(Ue.value),H.get()))}}}}),Uo.config({})])}};var qB=Object.freeze({__proto__:null,events:(o,c)=>{const S=o.stream.streams.setup(o,c);return Ea([qn(o.event,S),Sh(()=>c.cancel())].concat(o.cancelEvent.map(_=>[qn(_,()=>c.cancel())]).getOr([])))}});const d7=o=>{const c=X(null);return Cu({readState:()=>({timer:c.get()!==null?"set":"unset"}),setTimer:H=>{c.set(H)},cancel:()=>{const H=c.get();H!==null&&H.cancel()}})};var wq=Object.freeze({__proto__:null,throttle:d7,init:o=>o.stream.streams.state(o)});const KB=(o,c)=>{const g=o.stream,S=G6(o.onStream,g.delay);return c.setTimer(S),(_,H)=>{S.throttle(_,H),g.stopEvent&&H.stop()}};var Tq=[Zc("stream",Os("mode",{throttle:[er("delay"),Mn("stopEvent",!0),ha("streams",{setup:KB,state:d7})]})),Mn("event","input"),Ws("cancelEvent"),zd("onStream")];const h7=dl({fields:Tq,name:"streaming",active:qB,state:wq}),Ro=(o,c,g)=>{const S=Fr.getValue(g);Fr.setValue(c,S),m7(c)},_2=(o,c)=>{const g=o.element,S=Ch(g),_=g.dom;oa(g,"type")!=="number"&&c(_,S)},m7=o=>{_2(o,(c,g)=>c.setSelectionRange(g.length,g.length))},JB=(o,c)=>{_2(o,(g,S)=>g.setSelectionRange(c,S.length))},eQ=(o,c,g)=>{if(o.selectsOver){const S=Fr.getValue(c),_=o.getDisplayText(S),H=Fr.getValue(g);return o.getDisplayText(H).indexOf(_)===0?L.some(()=>{Ro(o,c,g),JB(c,_.length)}):L.none()}else return L.none()},v4=F("alloy.typeahead.itemexecute"),tQ=(o,c,g,S)=>{const _=(Je,st,ht)=>{o.previewing.set(!1);const At=Mi.getCoupled(Je,"sandbox");if(As.isOpen(At))xs.getCurrent(At).each(qt=>{Ys.getHighlighted(qt).fold(()=>{ht(qt)},()=>{WS(At,qt.element,"keydown",st)})});else{const qt=Dn=>{xs.getCurrent(Dn).each(ht)};D5(o,K(Je),Je,At,S,qt,mu.HighlightMenuAndItem).get(M)}},H=v8(o),K=Je=>st=>st.map(ht=>{const At=Nt(ht.menus),qt=re(At,mn=>xe(mn.items,on=>on.type==="item"));return Fr.getState(Je).update(ne(qt,mn=>mn.data)),ht}),ve=Je=>xs.getCurrent(Je),Ae="typeaheadevents",Ne=[Mo.config({}),Fr.config({onSetValue:o.onSetValue,store:{mode:"dataset",getDataKey:Je=>Ch(Je.element),getFallbackEntry:Je=>({value:Je,meta:{}}),setValue:(Je,st)=>{b0(Je.element,o.model.getDisplayText(st))},...o.initialData.map(Je=>vt("initialValue",Je)).getOr({})}}),h7.config({stream:{mode:"throttle",delay:o.responseTime,stopEvent:!1},onStream:(Je,st)=>{const ht=Mi.getCoupled(Je,"sandbox");if(Mo.isFocused(Je)&&Ch(Je.element).length>=o.minChars){const qt=ve(ht).bind(mn=>Ys.getHighlighted(mn).map(Fr.getValue));o.previewing.set(!0);const Dn=mn=>{ve(ht).each(on=>{qt.fold(()=>{o.model.selectsOver&&Ys.highlightFirst(on)},kn=>{Ys.highlightBy(on,Zn=>Fr.getValue(Zn).value===kn.value),Ys.getHighlighted(on).orThunk(()=>(Ys.highlightFirst(on),L.none()))})})};D5(o,K(Je),Je,ht,S,Dn,mu.HighlightJustMenu).get(M)}},cancelEvent:Om()}),yo.config({mode:"special",onDown:(Je,st)=>(_(Je,st,Ys.highlightFirst),L.some(!0)),onEscape:Je=>{const st=Mi.getCoupled(Je,"sandbox");return As.isOpen(st)?(As.close(st),L.some(!0)):L.none()},onUp:(Je,st)=>(_(Je,st,Ys.highlightLast),L.some(!0)),onEnter:Je=>{const st=Mi.getCoupled(Je,"sandbox"),ht=As.isOpen(st);if(ht&&!o.previewing.get())return ve(st).bind(At=>Ys.getHighlighted(At)).map(At=>(vo(Je,v4(),{item:At}),!0));{const At=Fr.getValue(Je);return ks(Je,Om()),o.onExecute(st,Je,At),ht&&As.close(st),L.some(!0)}}}),as.config({toggleClass:o.markers.openClass,aria:{mode:"expanded"}}),Mi.config({others:{sandbox:Je=>g6(o,Je,{onOpen:()=>as.on(Je),onClose:()=>{o.lazyTypeaheadComp.get().each(st=>sa(st.element,"aria-activedescendant")),as.off(Je)}})}}),Jo(Ae,[Ca(Je=>{o.lazyTypeaheadComp.set(L.some(Je))}),Sh(Je=>{o.lazyTypeaheadComp.set(L.none())}),rd(Je=>{const st=M;m6(o,K(Je),Je,S,st,mu.HighlightMenuAndItem).get(M)}),qn(v4(),(Je,st)=>{const ht=Mi.getCoupled(Je,"sandbox");Ro(o.model,Je,st.event.item),ks(Je,Om()),o.onItemExecute(Je,ht,st.event.item,Fr.getValue(Je)),As.close(ht),m7(Je)})].concat(o.dismissOnBlur?[qn(Ul(),Je=>{const st=Mi.getCoupled(Je,"sandbox");ad(st.element).isNone()&&As.close(st)})]:[]))],Ue={[kg()]:[Fr.name(),h7.name(),Ae],...o.eventOrder};return{uid:o.uid,dom:a5(Ta(o,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...H,...Ni(o.typeaheadBehaviours,Ne)},eventOrder:Ue}},nce=F([Ws("lazySink"),er("fetch"),Mn("minChars",5),Mn("responseTime",1e3),Rs("onOpen"),Mn("getHotspot",L.some),Mn("getAnchorOverrides",F({})),Mn("layouts",L.none()),Mn("eventOrder",{}),D("model",{},[Mn("getDisplayText",o=>o.meta!==void 0&&o.meta.text!==void 0?o.meta.text:o.value),Mn("selectsOver",!0),Mn("populateFromBrowse",!0)]),Rs("onSetValue"),Eu("onExecute"),Rs("onItemExecute"),Mn("inputClasses",[]),Mn("inputAttributes",{}),Mn("inputStyles",{}),Mn("matchWidth",!0),Mn("useMinWidth",!1),Mn("dismissOnBlur",!0),$g(["openClass"]),Ws("initialData"),el("typeaheadBehaviours",[Mo,Fr,h7,yo,as,Mi]),ei("lazyTypeaheadComp",()=>X(L.none)),ei("previewing",()=>X(!0))].concat(YT()).concat(p6())),k3=F([cd({schema:[Qy()],name:"menu",overrides:o=>({fakeFocus:!0,onHighlightItem:(c,g,S)=>{o.previewing.get()?o.lazyTypeaheadComp.get().each(_=>{eQ(o.model,_,S).fold(()=>{o.model.selectsOver?(Ys.dehighlight(g,S),o.previewing.set(!0)):o.previewing.set(!1)},H=>{H(),o.previewing.set(!1)})}):o.lazyTypeaheadComp.get().each(_=>{o.model.populateFromBrowse&&Ro(o.model,_,S),Ri(S.element,"id").each(H=>Dr(_.element,"aria-activedescendant",H))})},onExecute:(c,g)=>o.lazyTypeaheadComp.get().map(S=>(vo(S,v4(),{item:g}),!0)),onHover:(c,g)=>{o.previewing.set(!1),o.lazyTypeaheadComp.get().each(S=>{o.model.populateFromBrowse&&Ro(o.model,S,g)})}})})]),Cq=lc({name:"Typeahead",configFields:nce(),partFields:k3(),factory:tQ}),oh=o=>({...o,toCached:()=>oh(o.toCached()),bindFuture:Ae=>oh(o.bind(Ne=>Ne.fold(Ue=>$c.pure(jo.error(Ue)),Ue=>Ae(Ue)))),bindResult:Ae=>oh(o.map(Ne=>Ne.bind(Ae))),mapResult:Ae=>oh(o.map(Ne=>Ne.map(Ae))),mapError:Ae=>oh(o.map(Ne=>Ne.mapError(Ae))),foldResult:(Ae,Ne)=>o.map(Ue=>Ue.fold(Ae,Ne)),withTimeout:(Ae,Ne)=>oh($c.nu(Ue=>{let Je=!1;const st=setTimeout(()=>{Je=!0,Ue(jo.error(Ne()))},Ae);o.get(ht=>{Je||(clearTimeout(st),Ue(ht))})}))}),nQ=o=>oh($c.nu(o)),rQ=o=>oh($c.pure(jo.value(o))),Pq={nu:nQ,wrap:oh,pure:rQ,value:rQ,error:o=>oh($c.pure(jo.error(o))),fromResult:o=>oh($c.pure(o)),fromFuture:o=>oh(o.map(jo.value)),fromPromise:o=>nQ(c=>{o.then(g=>{c(jo.value(g))},g=>{c(jo.error(g))})})},y4=(o,c,g=[],S,_,H)=>{const K=c.fold(()=>({}),Ne=>({action:Ne})),ve={buttonBehaviours:pr([tl.button(()=>!o.enabled||H.isDisabled()),gl(),Ga.config({}),Jo("button press",[GS("click"),GS("mousedown")])].concat(g)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...K},Ae=Ta(ve,{dom:S});return Ta(Ae,{components:_})},Mq=(o,c,g,S=[])=>{const _=o.tooltip.map(Ae=>({"aria-label":g.translate(Ae),title:g.translate(Ae)})).getOr({}),H={tag:"button",classes:["tox-tbtn"],attributes:_},K=o.icon.map(Ae=>l4(Ae,g.icons)),ve=p2([K]);return y4(o,c,S,H,ve,g)},g7=o=>{switch(o){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];case"secondary":default:return["tox-button","tox-button--secondary"]}},sQ=(o,c,g,S=[],_=[])=>{const H=g.translate(o.text),K=o.icon.map(st=>l4(st,g.icons)),ve=[K.getOrThunk(()=>yi(H))],Ae=o.buttonType.getOr(!o.primary&&!o.borderless?"secondary":"primary"),Je={tag:"button",classes:[...g7(Ae),...K.isSome()?["tox-button--icon"]:[],...o.borderless?["tox-button--naked"]:[],..._],attributes:{title:H}};return y4(o,c,S,Je,ve,g)},p7=(o,c,g,S=[],_=[])=>{const H=sQ(o,L.some(c),g,S,_);return Dl.sketch(H)},aQ=(o,c)=>g=>{c==="custom"?vo(g,ap,{name:o,value:{}}):c==="submit"?ks(g,f3):c==="cancel"?ks(g,h1):console.error("Unknown button type: ",c)},Eq=(o,c)=>c==="menu",_q=(o,c)=>c==="custom"||c==="cancel"||c==="submit",Rq=(o,c)=>c==="togglebutton",Dq=(o,c)=>{var g,S;const _=o.icon.map(on=>y1(on,c.icons)).map(ia),H=on=>{vo(on,ap,{name:o.name,value:{setIcon:kn=>{_.map(Zn=>Zn.getOpt(on).each(mr=>{Uo.set(mr,[y1(kn,c.icons)])}))}}})},K=o.buttonType.getOr(o.primary?"primary":"secondary"),ve={...o,name:(g=o.name)!==null&&g!==void 0?g:"",primary:K==="primary",tooltip:L.from(o.tooltip),enabled:(S=o.enabled)!==null&&S!==void 0?S:!1,borderless:!1},Ae=ve.tooltip.map(on=>({"aria-label":c.translate(on),title:c.translate(on)})).getOr({}),Ne=g7(K??"secondary"),Ue=o.icon.isSome()&&o.text.isSome(),Je={tag:"button",classes:[...Ne.concat(o.icon.isSome()?["tox-button--icon"]:[]),...o.active?["tox-button--enabled"]:[],...Ue?["tox-button--icon-and-text"]:[]],attributes:Ae},st=[],ht=c.translate(o.text.getOr("")),At=yi(ht),Dn=[...p2([_.map(on=>on.asSpec())]),...o.text.isSome()?[At]:[]],mn=y4(ve,L.some(H),st,Je,Dn,c);return Dl.sketch(mn)},b4=(o,c,g)=>{if(Eq(o,c)){const S=()=>K,_=o,H={...o,type:"menubutton",search:L.none(),onSetup:ve=>(ve.setEnabled(o.enabled),M),fetch:vq(_.items,S,g)},K=ia(C3(H,"tox-tbtn",g,L.none()));return K.asSpec()}else if(_q(o,c)){const S=aQ(o.name,c),_={...o,borderless:!1};return p7(_,S,g.shared.providers,[])}else{if(Rq(o,c))return Dq(o,g.shared.providers);throw console.error("Unknown footer button type: ",c),new Error("Unknown footer button type")}},$q=(o,c)=>{const g=aQ(o.name,"custom");return EG(L.none(),la.parts.field({factory:Dl,...sQ(o,L.some(g),c,[v3(""),Ff.self()])}))},Lq={type:"separator"},Iq=o=>({type:"menuitem",value:o.url,text:o.title,meta:{attach:o.attach},onAction:M}),v7=(o,c)=>({type:"menuitem",value:c,text:o,meta:{attach:void 0},onAction:M}),Nq=o=>ne(o,Iq),iQ=(o,c)=>xe(c,g=>g.type===o),lQ=(o,c)=>Nq(iQ(o,c)),Bq=o=>lQ("header",o.targets),Qq=o=>lQ("anchor",o.targets),Fq=o=>L.from(o.anchorTop).map(c=>v7("",c)).toArray(),Vq=o=>L.from(o.anchorBottom).map(c=>v7("",c)).toArray(),zq=o=>ne(o,c=>v7(c,c)),cQ=o=>ke(o,(c,g)=>c.length===0||g.length===0?c.concat(g):c.concat(Lq,g),[]),y7=(o,c)=>{const g=o.toLowerCase();return xe(c,S=>{var _;const H=S.meta!==void 0&&S.meta.text!==void 0?S.meta.text:S.text,K=(_=S.value)!==null&&_!==void 0?_:"";return at(H.toLowerCase(),g)||at(K.toLowerCase(),g)})},uQ=(o,c,g)=>{var S,_;const H=Fr.getValue(c),K=(_=(S=H==null?void 0:H.meta)===null||S===void 0?void 0:S.text)!==null&&_!==void 0?_:H.value;return g.getLinkInformation().fold(()=>[],Ae=>{const Ne=y7(K,zq(g.getHistory(o)));return o==="file"?cQ([Ne,y7(K,Bq(Ae)),y7(K,Ie([Fq(Ae),Qq(Ae),Vq(Ae)]))]):Ne})},fQ=Kr("aria-invalid"),dQ=(o,c,g,S)=>{const _=c.shared.providers,H=on=>{const kn=Fr.getValue(on);g.addToHistory(kn.value,o.filetype)},K={...S.map(on=>({initialData:on})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":fQ,type:"url"},minChars:0,responseTime:0,fetch:on=>{const kn=uQ(o.filetype,on,g),Zn=M2(kn,Hm.BUBBLE_TO_SANDBOX,c,{isHorizontalMenu:!1,search:L.none()});return $c.pure(Zn)},getHotspot:on=>At.getOpt(on),onSetValue:(on,kn)=>{on.hasConfigured(gd)&&gd.run(on).get(M)},typeaheadBehaviours:pr([...g.getValidationHandler().map(on=>gd.config({getRoot:kn=>dr(kn.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(kn,Zn)=>{Ue.getOpt(kn).each(mr=>{Dr(mr.element,"title",_.translate(Zn))})}},validator:{validate:kn=>{const Zn=Fr.getValue(kn);return Pq.nu(mr=>{on({type:o.filetype,url:Zn.value},Gn=>{if(Gn.status==="invalid"){const Or=jo.error(Gn.message);mr(Or)}else{const Or=jo.value(Gn.message);mr(Or)}})})},validateOnLoad:!1}})).toArray(),Co.config({disabled:()=>!o.enabled||_.isDisabled()}),Ga.config({}),Jo("urlinput-events",[qn(di(),on=>{const kn=Ch(on.element),Zn=kn.trim();Zn!==kn&&b0(on.element,Zn),o.filetype==="file"&&vo(on,df,{name:o.name})}),qn(Yi(),on=>{vo(on,df,{name:o.name}),H(on)}),qn(Li(),on=>{vo(on,df,{name:o.name}),H(on)})])]),eventOrder:{[di()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:on=>on.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:c.shared.getSink,parts:{menu:c2(!1,1,"normal")},onExecute:(on,kn,Zn)=>{vo(kn,f3,{})},onItemExecute:(on,kn,Zn,mr)=>{H(on),vo(on,df,{name:o.name})}},ve=la.parts.field({...K,factory:Cq}),Ae=o.label.map(on=>eh(on,_)),Ue=ia(((on,kn,Zn=on,mr=on)=>Bh(Zn,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+on],attributes:{title:_.translate(mr),"aria-live":"polite",...kn.fold(()=>({}),Gn=>({id:Gn}))}},_.icons))("invalid",L.some(fQ),"warning")),Je=ia({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[Ue.asSpec()]}),st=g.getUrlPicker(o.filetype),ht=Kr("browser.url.event"),At=ia({dom:{tag:"div",classes:["tox-control-wrap"]},components:[ve,Je.asSpec()],behaviours:pr([Co.config({disabled:()=>!o.enabled||_.isDisabled()})])}),qt=ia(p7({name:o.name,icon:L.some("browse"),text:o.picker_text.or(o.label).getOr(""),enabled:o.enabled,primary:!1,buttonType:L.none(),borderless:!0},on=>ks(on,ht),_,[],["tox-browse-url"])),Dn=()=>({dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:Ie([[At.asSpec()],st.map(()=>qt.asSpec()).toArray()])}),mn=on=>{xs.getCurrent(on).each(kn=>{const Zn=Fr.getValue(kn),mr={fieldname:o.name,...Zn};st.each(Gn=>{Gn(mr).get(Or=>{Fr.setValue(kn,Or),vo(on,df,{name:o.name})})})})};return la.sketch({dom:Zle(),components:Ae.toArray().concat([Dn()]),fieldBehaviours:pr([Co.config({disabled:()=>!o.enabled||_.isDisabled(),onDisabled:on=>{la.getField(on).each(Co.disable),qt.getOpt(on).each(Co.disable)},onEnabled:on=>{la.getField(on).each(Co.enable),qt.getOpt(on).each(Co.enable)}}),gl(),Jo("url-input-events",[qn(ht,mn)])])})},hQ=(o,c)=>{const g=H_(o.icon,c.icons);return Um.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${o.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:o.url?void 0:g},components:o.url?[Dl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:g,attributes:{title:c.translate(o.iconTooltip)}},action:S=>vo(S,ap,{name:"alert-banner",value:o.url}),buttonBehaviours:pr([XA()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:c.translate(o.text)}}]})},b7=(o,c)=>{o.dom.checked=c},Zq=o=>o.dom.checked,mQ=(o,c,g)=>{const S=Ae=>(Ae.element.dom.click(),L.some(!0)),_=la.parts.field({factory:{sketch:z},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:pr([Ff.self(),Co.config({disabled:()=>!o.enabled||c.isDisabled(),onDisabled:Ae=>{dr(Ae.element).each(Ne=>ki(Ne,"tox-checkbox--disabled"))},onEnabled:Ae=>{dr(Ae.element).each(Ne=>Xa(Ne,"tox-checkbox--disabled"))}}),Ga.config({}),Mo.config({}),X6(g,Zq,b7),yo.config({mode:"special",onEnter:S,onSpace:S,stopSpaceKeyup:!0}),Jo("checkbox-events",[qn(Yi(),(Ae,Ne)=>{vo(Ae,df,{name:o.name})})])])}),H=la.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[yi(c.translate(o.label))],behaviours:pr([d3.config({})])}),K=Ae=>Bh(Ae==="checked"?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+Ae]},c.icons),ve=ia({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[K("checked"),K("unchecked")]});return la.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[_,ve.asSpec(),H],fieldBehaviours:pr([Co.config({disabled:()=>!o.enabled||c.isDisabled()}),gl()])})},gQ=o=>o.presets==="presentation"?Um.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:o.html}}):Um.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:o.html,attributes:{role:"document"}},containerBehaviours:pr([Ga.config({}),Mo.config({})])}),Ol=o=>(c,g,S,_)=>Bt(g,"name").fold(()=>o(g,_,L.none()),H=>c.field(H,o(g,_,Bt(S,H)))),pQ=o=>(c,g,S,_)=>{const H=Ta(g,{source:"dynamic"});return Ol(o)(c,H,S,_)},Hq={bar:Ol((o,c)=>TG(o,c.shared)),collection:Ol((o,c,g)=>RG(o,c.shared.providers,g)),alertbanner:Ol((o,c)=>hQ(o,c.shared.providers)),input:Ol((o,c,g)=>VB(o,c.shared.providers,g)),textarea:Ol((o,c,g)=>zB(o,c.shared.providers,g)),label:Ol((o,c)=>Gj(o,c.shared)),iframe:pQ((o,c,g)=>Uj(o,c.shared.providers,g)),button:Ol((o,c)=>$q(o,c.shared.providers)),checkbox:Ol((o,c,g)=>mQ(o,c.shared.providers,g)),colorinput:Ol((o,c,g)=>BG(o,c.shared,c.colorinput,g)),colorpicker:Ol((o,c,g)=>Bj(o,c.shared.providers,g)),dropzone:Ol((o,c,g)=>hB(o,c.shared.providers,g)),grid:Ol((o,c)=>zj(o,c.shared)),listbox:Ol((o,c,g)=>nq(o,c,g)),selectbox:Ol((o,c,g)=>sq(o,c.shared.providers,g)),sizeinput:Ol((o,c)=>iq(o,c.shared.providers)),slider:Ol((o,c,g)=>BB(o,c.shared.providers,g)),urlinput:Ol((o,c,g)=>dQ(o,c,c.urlinput,g)),customeditor:Ol(dB),htmlpanel:Ol(gQ),imagepreview:Ol((o,c,g)=>Xj(o,g)),table:Ol((o,c)=>QB(o,c.shared.providers)),tree:Ol((o,c)=>Sq(o,c)),panel:Ol((o,c)=>n7(o,c))},Uq={field:(o,c)=>c,record:F([])},Wh=(o,c,g,S)=>{const _=Ta(S,{shared:{interpreter:H=>R2(o,H,g,_)}});return R2(o,c,g,_)},R2=(o,c,g,S)=>Bt(Hq,c.type).fold(()=>(console.error(`Unknown factory type "${c.type}", defaulting to container: `,c),c),_=>_(o,c,g,S)),A3=(o,c,g)=>R2(Uq,o,c,g),O1="layout-inset",P3=o=>o.x,vQ=(o,c)=>o.x+o.width/2-c.width/2,M3=(o,c)=>o.x+o.width-c.width,O4=o=>o.y,E3=(o,c)=>o.y+o.height-c.height,yQ=(o,c)=>o.y+o.height/2-c.height/2,_3=(o,c,g)=>cl(M3(o,c),E3(o,c),g.insetSouthwest(),Ph(),"southwest",Ha(o,{right:0,bottom:3}),O1),R3=(o,c,g)=>cl(P3(o),E3(o,c),g.insetSoutheast(),fx(),"southeast",Ha(o,{left:1,bottom:3}),O1),Ub=(o,c,g)=>cl(M3(o,c),O4(o),g.insetNorthwest(),mw(),"northwest",Ha(o,{right:0,top:2}),O1),D3=(o,c,g)=>cl(P3(o),O4(o),g.insetNortheast(),Vy(),"northeast",Ha(o,{left:1,top:2}),O1),Yh=(o,c,g)=>cl(vQ(o,c),O4(o),g.insetNorth(),Pm(),"north",Ha(o,{top:2}),O1),D2=(o,c,g)=>cl(vQ(o,c),E3(o,c),g.insetSouth(),jM(),"south",Ha(o,{bottom:3}),O1),bQ=(o,c,g)=>cl(M3(o,c),yQ(o,c),g.insetEast(),zy(),"east",Ha(o,{right:0}),O1),OQ=(o,c,g)=>cl(P3(o),yQ(o,c),g.insetWest(),Nn(),"west",Ha(o,{left:1}),O1),xQ=o=>{switch(o){case"north":return Yh;case"northeast":return D3;case"northwest":return Ub;case"south":return D2;case"southeast":return R3;case"southwest":return _3;case"east":return bQ;case"west":return OQ}},O7=(o,c,g,S,_)=>Ak(S).map(xQ).getOr(Yh)(o,c,g,S,_),Wq=o=>{switch(o){case"north":return D2;case"northeast":return R3;case"northwest":return _3;case"south":return Yh;case"southeast":return D3;case"southwest":return Ub;case"east":return OQ;case"west":return bQ}},Yq=(o,c,g,S,_)=>Ak(S).map(Wq).getOr(Yh)(o,c,g,S,_),$3={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},Xq=(o,c,g)=>{const _={maxHeightFunction:R0()},H=()=>({type:"node",root:Xs(es(o())),node:L.from(o()),bubble:Eh(12,12,$3),layouts:{onRtl:()=>[D3],onLtr:()=>[Ub]},overrides:_}),K=()=>({type:"hotspot",hotspot:c(),bubble:Eh(-12,12,$3),layouts:{onRtl:()=>[ul,Gl,fl],onLtr:()=>[Gl,ul,fl]},overrides:_});return()=>g()?H():K()},SQ=(o,c,g,S)=>{const H={maxHeightFunction:R0()},K=()=>({type:"node",root:Xs(es(c())),node:L.from(c()),bubble:Eh(12,12,$3),layouts:{onRtl:()=>[Yh],onLtr:()=>[Yh]},overrides:H}),ve=()=>o?{type:"node",root:Xs(es(c())),node:L.from(c()),bubble:Eh(0,-Vu(c()),$3),layouts:{onRtl:()=>[Mc],onLtr:()=>[Mc]},overrides:H}:{type:"hotspot",hotspot:g(),bubble:Eh(0,0,$3),layouts:{onRtl:()=>[Mc],onLtr:()=>[Mc]},overrides:H};return()=>S()?K():ve()},Wm=(o,c,g)=>{const S=()=>({type:"node",root:Xs(es(o())),node:L.from(o()),layouts:{onRtl:()=>[Yh],onLtr:()=>[Yh]}}),_=()=>({type:"hotspot",hotspot:c(),layouts:{onRtl:()=>[fl],onLtr:()=>[fl]}});return()=>g()?S():_()},x7=(o,c)=>()=>({type:"selection",root:c(),getSelection:()=>{const g=o.selection.getRng(),S=o.model.table.getSelectedCells();if(S.length>1){const _=S[0],H=S[S.length-1],K={firstCell:zt.fromDom(_),lastCell:zt.fromDom(H)};return L.some(K)}return L.some(_l.range(zt.fromDom(g.startContainer),g.startOffset,zt.fromDom(g.endContainer),g.endOffset))}}),Gq=o=>c=>({type:"node",root:o(),node:c}),jq=(o,c,g,S)=>{const _=i2(o),H=()=>zt.fromDom(o.getBody()),K=()=>zt.fromDom(o.getContentAreaContainer()),ve=()=>_||!S();return{inlineDialog:Xq(K,c,ve),inlineBottomDialog:SQ(o.inline,K,g,ve),banner:Wm(K,c,ve),cursor:x7(o,H),node:Gq(H)}},qq=o=>(c,g)=>{JI(o)(c,g)},Kq=o=>()=>YI(o),Jq=o=>c=>P5(o,c),wQ=o=>c=>WI(o,c),TQ=o=>({colorPicker:qq(o),hasCustomColors:Kq(o),getColors:Jq(o),getColorCols:wQ(o)}),oce=o=>()=>t8(o),sce=o=>({isDraggableModal:oce(o)}),Lc=o=>{const c=X(a8(o)?"bottom":"top");return{isPositionedAtTop:()=>c.get()==="top",getDockingMode:c.get,setDockingMode:c.set}},x4=o=>En(o,"items"),CQ=o=>En(o,"format"),L3=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],eK=o=>vn(o,"items"),tK=o=>vn(o,"block"),nK=o=>vn(o,"inline"),rK=o=>vn(o,"selector"),kQ=o=>ke(o,(c,g)=>{if(eK(g)){const S=kQ(g.items);return{customFormats:c.customFormats.concat(S.customFormats),formats:c.formats.concat([{title:g.title,items:S.formats}])}}else if(nK(g)||tK(g)||rK(g)){const _=`custom-${m(g.name)?g.name:g.title.toLowerCase()}`;return{customFormats:c.customFormats.concat([{name:_,format:g}]),formats:c.formats.concat([{title:g.title,format:_,icon:g.icon}])}}else return{...c,formats:c.formats.concat(g)}},{customFormats:[],formats:[]}),oK=(o,c)=>{const g=kQ(c),S=_=>{pe(_,H=>{o.formatter.has(H.name)||o.formatter.register(H.name,H.format)})};return o.formatter?S(g.customFormats):o.on("init",()=>{S(g.customFormats)}),g.formats},AQ=o=>mL(o).map(c=>{const g=oK(o,c);return gL(o)?L3.concat(g):g}).getOr(L3),sK=o=>{const c=ct(o);return c.length===1&&be(c,"title")},S7=(o,c,g)=>({...o,type:"formatter",isSelected:c(o.format),getStylePreview:g(o.format)}),I3=(o,c,g,S)=>{const _=Ae=>S7(Ae,g,S),H=Ae=>{const Ne=ve(Ae.items);return{...Ae,type:"submenu",getStyleItems:F(Ne)}},K=Ae=>{const Ne=m(Ae.name)?Ae.name:Kr(Ae.title),Ue=`custom-${Ne}`,Je={...Ae,type:"formatter",format:Ue,isSelected:g(Ue),getStylePreview:S(Ue)};return o.formatter.register(Ne,Je),Je},ve=Ae=>ne(Ae,Ne=>x4(Ne)?H(Ne):CQ(Ne)?_(Ne):sK(Ne)?{...Ne,type:"separator"}:K(Ne));return ve(c)},aK=o=>{const c=ve=>()=>o.formatter.match(ve),g=ve=>()=>{const Ae=o.formatter.get(ve);return Ae!==void 0?L.some({tag:Ae.length>0&&(Ae[0].inline||Ae[0].block)||"div",styles:o.dom.parseStyle(o.formatter.getCssText(ve))}):L.none()},S=X([]),_=X([]),H=X(!1);return o.on("PreInit",ve=>{const Ae=AQ(o),Ne=I3(o,Ae,c,g);S.set(Ne)}),o.on("addStyleModifications",ve=>{const Ae=I3(o,ve.items,c,g);_.set(Ae),H.set(ve.replace)}),{getData:()=>{const ve=H.get()?[]:S.get(),Ae=_.get();return ve.concat(Ae)}}},PQ=o=>C(o)&&o.nodeType===1,iK=up.trim,w7=o=>c=>!!(PQ(c)&&(c.contentEditable===o||c.getAttribute("data-mce-contenteditable")===o)),lK=w7("true"),cK=w7("false"),T7=(o,c,g,S,_)=>({type:o,title:c,url:g,level:S,attach:_}),ace=o=>{let c=o;for(;c=c.parentNode;){const g=c.contentEditable;if(g&&g!=="inherit")return lK(c)}return!1},ice=(o,c)=>ne(hl(zt.fromDom(c),o),g=>g.dom),MQ=o=>o.innerText||o.textContent,uK=o=>o.id?o.id:Kr("h"),fK=o=>o&&o.nodeName==="A"&&(o.id||o.name)!==void 0,EQ=o=>fK(o)&&_Q(o),S4=o=>o&&/^(H[1-6])$/.test(o.nodeName),_Q=o=>ace(o)&&!cK(o),dK=o=>S4(o)&&_Q(o),RQ=o=>S4(o)?parseInt(o.nodeName.substr(1),10):0,hK=o=>{var c;const g=uK(o),S=()=>{o.id=g};return T7("header",(c=MQ(o))!==null&&c!==void 0?c:"","#"+g,RQ(o),S)},mK=o=>{const c=o.id||o.name,g=MQ(o);return T7("anchor",g||"#"+c,"#"+c,0,M)},gK=o=>ne(xe(o,dK),hK),pK=o=>ne(xe(o,EQ),mK),C7=o=>ice("h1,h2,h3,h4,h5,h6,a:not([href])",o),DQ=o=>iK(o.title).length>0,vK={find:o=>{const c=C7(o);return xe(gK(c).concat(pK(c)),DQ)}},w4="tinymce-url-history",$Q=5,k7=o=>m(o)&&/^https?/.test(o),yK=o=>v(o)&&o.length<=$Q&&ye(o,k7),N3=o=>u(o)&&Gt(o,c=>!yK(c)).isNone(),LQ=()=>{const o=u1.getItem(w4);if(o===null)return{};let c;try{c=JSON.parse(o)}catch(g){if(g instanceof SyntaxError)return console.log("Local storage "+w4+" was not valid JSON",g),{};throw g}return N3(c)?c:(console.log("Local storage "+w4+" was not valid format",c),{})},T4=o=>{if(!N3(o))throw new Error(`Bad format for history: +`+JSON.stringify(o));u1.setItem(w4,JSON.stringify(o))},bK=o=>{const c=LQ();return Bt(c,o).getOr([])},A7=(o,c)=>{if(!k7(o))return;const g=LQ(),S=Bt(g,c).getOr([]),_=xe(S,H=>H!==o);g[c]=[o].concat(_).slice(0,$Q),T4(g)},$2=o=>!!o,IQ=o=>je(up.makeMap(o,/[, ]/),$2),P7=o=>L.from(OL(o)),NQ=o=>{const c=L.from(J_(o)).filter($2).map(IQ);return P7(o).fold(Y,g=>c.fold(ie,S=>ct(S).length>0?S:!1))},BQ=(o,c)=>{const g=NQ(o);return b(g)?g?P7(o):L.none():g[c]?P7(o):L.none()},QQ=(o,c)=>BQ(o,c).map(g=>S=>$c.nu(_=>{const H=(ve,Ae)=>{if(!m(ve))throw new Error("Expected value to be string");if(Ae!==void 0&&!u(Ae))throw new Error("Expected meta to be a object");_({value:ve,meta:Ae})},K={filetype:c,fieldname:S.fieldname,...L.from(S.meta).getOr({})};g.call(o,H,S.value,K)})),FQ=o=>L.from(o).filter(m).getOrUndefined(),M7=o=>e8(o)?L.some({targets:vK.find(o.getBody()),anchorTop:FQ(JA(o)),anchorBottom:FQ(SL(o))}):L.none(),C4=o=>L.from(K_(o)),OK=o=>({getHistory:bK,addToHistory:A7,getLinkInformation:()=>M7(o),getValidationHandler:()=>C4(o),getUrlPicker:c=>QQ(o,c)}),xK=(o,c,g,S)=>{const _=X(!1),H=Lc(c),K={icons:()=>c.ui.registry.getAll().icons,menuItems:()=>c.ui.registry.getAll().menuItems,translate:dd.translate,isDisabled:()=>c.mode.isReadOnly()||!c.ui.isEnabled(),getOption:c.options.get},ve=OK(c),Ae=aK(c),Ne=TQ(c),Ue=sce(c),Je=()=>_.get(),st=Dn=>_.set(Dn),ht={shared:{providers:K,anchors:jq(c,g,S,H.isPositionedAtTop),header:H},urlinput:ve,styles:Ae,colorinput:Ne,dialog:Ue,isContextMenuOpen:Je,setContextMenuState:st},At={...ht,shared:{...ht.shared,interpreter:Dn=>A3(Dn,{},At),getSink:o.popup}},qt={...ht,shared:{...ht.shared,interpreter:Dn=>A3(Dn,{},qt),getSink:o.dialog}};return{popup:At,dialog:qt}},L2=(o,c,g)=>{const S=(Gn,Or)=>{pe([c,...g],Mr=>{Mr.broadcastEvent(Gn,Or)})},_=(Gn,Or)=>{pe([c,...g],Mr=>{Mr.broadcastOn([Gn],Or)})},H=Gn=>_(Wd(),{target:Gn.target}),K=qv(),ve=_c(K,"touchstart",H),Ae=_c(K,"touchmove",Gn=>S(Py(),Gn)),Ne=_c(K,"touchend",Gn=>S(FO(),Gn)),Ue=_c(K,"mousedown",H),Je=_c(K,"mouseup",Gn=>{Gn.raw.button===0&&_(oT(),{target:Gn.target})}),st=Gn=>_(Wd(),{target:zt.fromDom(Gn.target)}),ht=Gn=>{Gn.button===0&&_(oT(),{target:zt.fromDom(Gn.target)})},At=()=>{pe(o.editorManager.get(),Gn=>{o!==Gn&&Gn.dispatch("DismissPopups",{relatedTarget:o})})},qt=Gn=>S(Oh(),Dw(Gn)),Dn=Gn=>{_(dv(),{}),S(Qd(),Dw(Gn))},mn=es(zt.fromDom(o.getElement())),on=vx(mn,"scroll",Gn=>{requestAnimationFrame(()=>{const Or=o.getContainer();if(Or!=null){const is=d1(o,c.element).map(Gr=>[Gr.element,...Gr.others]).getOr([]);Te(is,Gr=>Jt(Gr,Gn.target))&&(o.dispatch("ElementScroll",{target:Gn.target.dom}),S(zO(),Gn))}})}),kn=()=>_(dv(),{}),Zn=Gn=>{Gn.state&&_(Wd(),{target:zt.fromDom(o.getContainer())})},mr=Gn=>{_(Wd(),{target:zt.fromDom(Gn.relatedTarget.getContainer())})};o.on("PostRender",()=>{o.on("click",st),o.on("tap",st),o.on("mouseup",ht),o.on("mousedown",At),o.on("ScrollWindow",qt),o.on("ResizeWindow",Dn),o.on("ResizeEditor",kn),o.on("AfterProgressState",Zn),o.on("DismissPopups",mr)}),o.on("remove",()=>{o.off("click",st),o.off("tap",st),o.off("mouseup",ht),o.off("mousedown",At),o.off("ScrollWindow",qt),o.off("ResizeWindow",Dn),o.off("ResizeEditor",kn),o.off("AfterProgressState",Zn),o.off("DismissPopups",mr),Ue.unbind(),ve.unbind(),Ae.unbind(),Ne.unbind(),Je.unbind(),on.unbind()}),o.on("detach",()=>{pe([c,...g],U0),pe([c,...g],Gn=>Gn.destroy())})},xl=KE,dp=mA,VQ=F([Mn("shell",!1),er("makeItem"),Mn("setupItem",M),If.field("listBehaviours",[Uo])]),E7=fu({name:"items",overrides:()=>({behaviours:pr([Uo.config({})])})}),SK=F([E7]),wK=F("CustomList"),TK=(o,c,g,S)=>{const _=(ve,Ae)=>{K(ve).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},Ne=>{const Ue=Uo.contents(Ne),Je=Ae.length,st=Je-Ue.length,ht=st>0?Be(st,()=>o.makeItem()):[],At=Ue.slice(Je);pe(At,Dn=>Uo.remove(Ne,Dn)),pe(ht,Dn=>Uo.append(Ne,Dn));const qt=Uo.contents(Ne);pe(qt,(Dn,mn)=>{o.setupItem(ve,Dn,Ae[mn],mn)})})},H=o.shell?{behaviours:[Uo.config({})],components:[]}:{behaviours:[],components:c},K=ve=>o.shell?L.some(ve):ka(ve,o,"items");return{uid:o.uid,dom:o.dom,components:H.components,behaviours:Ni(o.listBehaviours,H.behaviours),apis:{setItems:_}}},k4=lc({name:wK(),configFields:VQ(),partFields:SK(),factory:TK,apis:{setItems:(o,c,g)=>{o.setItems(c,g)}}}),I2=F([er("dom"),Mn("shell",!0),el("toolbarBehaviours",[Uo])]),CK=F([fu({name:"groups",overrides:()=>({behaviours:pr([Uo.config({})])})})]),kK=(o,c,g,S)=>{const _=(ve,Ae)=>{H(ve).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},Ne=>{Uo.set(Ne,Ae)})},H=ve=>o.shell?L.some(ve):ka(ve,o,"groups"),K=o.shell?{behaviours:[Uo.config({})],components:[]}:{behaviours:[],components:c};return{uid:o.uid,dom:o.dom,components:K.components,behaviours:Ni(o.toolbarBehaviours,K.behaviours),apis:{setGroups:_,refresh:M},domModification:{attributes:{role:"group"}}}},Ym=lc({name:"Toolbar",configFields:I2(),partFields:CK(),factory:kK,apis:{setGroups:(o,c,g)=>{o.setGroups(c,g)}}}),AK=M,PK=Y,_7=F([]);var MK=Object.freeze({__proto__:null,setup:AK,isDocked:PK,getBehaviours:_7});const Wb=o=>(ln(za(o,"position"),"fixed")?L.none():ar(o)).orThunk(()=>{const S=zt.fromTag("span");return Fn(o).bind(_=>{Vc(_,S);const H=ar(S);return xc(S),H})}),ZQ=o=>Wb(o).map(Cl).getOrThunk(()=>Is(0,0)),EK=(o,c)=>{const g=o.element;ki(g,c.transitionClass),Xa(g,c.fadeOutClass),ki(g,c.fadeInClass),c.onShow(o)},R7=(o,c)=>{const g=o.element;ki(g,c.transitionClass),Xa(g,c.fadeInClass),ki(g,c.fadeOutClass),c.onHide(o)},HQ=(o,c)=>o.yc.y,UQ=(o,c)=>o.y>=c.y,WQ=(o,c)=>o.bottom<=c.bottom,D7=(o,c,g)=>({location:"top",leftX:c,topY:g.bounds.y-o.y}),$7=(o,c,g)=>({location:"bottom",leftX:c,bottomY:o.bottom-g.bounds.bottom}),L7=o=>o.box.x-o.win.x,_K=(o,c,g)=>{const S=c.win,_=c.box,H=L7(c);return Xe(o,K=>{switch(K){case"bottom":return WQ(_,g.bounds)?L.none():L.some($7(S,H,g));case"top":return UQ(_,g.bounds)?L.none():L.some(D7(S,H,g));default:return L.none()}}).getOr({location:"no-dock"})},RK=(o,c,g)=>ye(o,S=>{switch(S){case"bottom":return WQ(c,g.bounds);case"top":return UQ(c,g.bounds)}}),DK=(o,c)=>{const g=c.optScrollEnv.fold(F(o.bounds.y),S=>S.scrollElmTop+(o.bounds.y-S.currentScrollTop));return Is(o.bounds.x,g)},$K=(o,c)=>{const g=c.optScrollEnv.fold(F(o.y),S=>o.y+S.currentScrollTop-S.scrollElmTop);return Is(o.x,g)},YQ=(o,c,g)=>g.getInitialPos().map(S=>{const _=DK(S,c);return{box:Ja(_.left,_.top,Si(o),Za(o)),location:S.location}}),XQ=(o,c,g,S,_)=>{const H=$K(c,g),K=Ja(H.left,H.top,c.width,c.height);S.setInitialPos({style:Fa(o),position:Qa(o,"position")||"static",bounds:K,location:_.location})},GQ=(o,c,g,S,_)=>{S.getInitialPos().fold(()=>XQ(o,c,g,S,_),()=>M)},I7=(o,c,g)=>g.getInitialPos().bind(S=>{var _;switch(g.clearInitialPos(),S.position){case"static":return L.some({morph:"static"});case"absolute":const H=Wb(o).getOr(ya()),K=ui(H),ve=(_=H.dom.scrollTop)!==null&&_!==void 0?_:0;return L.some({morph:"absolute",positionCss:of("absolute",Bt(S.style,"left").map(Ae=>c.x-K.x),Bt(S.style,"top").map(Ae=>c.y-K.y+ve),Bt(S.style,"right").map(Ae=>K.right-c.right),Bt(S.style,"bottom").map(Ae=>K.bottom-c.bottom))});default:return L.none()}}),A4=(o,c,g)=>YQ(o,c,g).filter(({box:S})=>RK(g.getModes(),S,c)).bind(({box:S})=>I7(o,S,g)),P4=o=>{switch(o.location){case"top":return L.some({morph:"fixed",positionCss:of("fixed",L.some(o.leftX),L.some(o.topY),L.none(),L.none())});case"bottom":return L.some({morph:"fixed",positionCss:of("fixed",L.some(o.leftX),L.none(),L.none(),L.some(o.bottomY))});default:return L.none()}},LK=(o,c,g)=>{const S=ui(o),_=Vl(),H=_K(g.getModes(),{win:_,box:S},c);return H.location==="top"||H.location==="bottom"?(XQ(o,S,c,g,H),P4(H)):L.none()},IK=(o,c,g)=>A4(o,c,g).orThunk(()=>c.optScrollEnv.bind(S=>YQ(o,c,g)).bind(({box:S,location:_})=>{const H=Vl(),K=L7({win:H,box:S}),ve=_==="top"?D7(H,K,c):$7(H,K,c);return P4(ve)})),NK=(o,c,g)=>{const S=o.element;return ln(za(S,"position"),"fixed")?IK(S,c,g):LK(S,c,g)},BK=(o,c,g)=>{const S=o.element;return YQ(S,c,g).bind(({box:_})=>I7(S,_,g))},QK=(o,c,g,S)=>{const _=ui(o),H=Vl(),K=L7({win:H,box:_}),ve=S(H,K,c);return ve.location==="bottom"||ve.location==="top"?(GQ(o,_,c,g,ve),P4(ve)):L.none()},jQ=(o,c,g)=>{g.setDocked(!1),pe(["left","right","top","bottom","position"],S=>Zo(o.element,S)),c.onUndocked(o)},N7=(o,c,g,S)=>{const _=S.position==="fixed";g.setDocked(_),Ck(o.element,S),(_?c.onDocked:c.onUndocked)(o)},B7=(o,c,g,S,_=!1)=>{c.contextual.each(H=>{H.lazyContext(o).each(K=>{const ve=HQ(K,S.bounds);ve!==g.isVisible()&&(g.setVisible(ve),_&&!ve?(ni(o.element,[H.fadeOutClass]),H.onHide(o)):(ve?EK:R7)(o,H))})})},Q7=(o,c,g,S,_)=>{B7(o,c,g,S,!0),N7(o,c,g,_.positionCss)},FK=(o,c,g,S,_)=>{switch(_.morph){case"static":return jQ(o,c,g);case"absolute":return N7(o,c,g,_.positionCss);case"fixed":return Q7(o,c,g,S,_)}},qQ=(o,c,g)=>{const S=c.lazyViewport(o);B7(o,c,g,S),NK(o,S,g).each(_=>{FK(o,c,g,S,_)})},VK=(o,c,g)=>{const S=o.element;g.setDocked(!1);const _=c.lazyViewport(o);BK(o,_,g).each(H=>{switch(H.morph){case"static":{jQ(o,c,g);break}case"absolute":{N7(o,c,g,H.positionCss);break}}}),g.setVisible(!0),c.contextual.each(H=>{tf(S,[H.fadeInClass,H.fadeOutClass,H.transitionClass]),H.onShow(o)}),M4(o,c,g)},M4=(o,c,g)=>{o.getSystem().isConnected()&&qQ(o,c,g)},KQ=(o,c,g)=>{g.isDocked()&&VK(o,c,g)},x1=o=>(c,g,S)=>{const _=g.lazyViewport(c);QK(c.element,_,S,o).each(K=>{Q7(c,g,S,_,K)})},JQ=x1(D7),B3=x1($7);var eF=Object.freeze({__proto__:null,refresh:M4,reset:KQ,isDocked:(o,c,g)=>g.isDocked(),getModes:(o,c,g)=>g.getModes(),setModes:(o,c,g,S)=>g.setModes(S),forceDockToTop:JQ,forceDockToBottom:B3}),HK=Object.freeze({__proto__:null,events:(o,c)=>Ea([xh(Ki(),(g,S)=>{o.contextual.each(_=>{Ji(g.element,_.transitionClass)&&(tf(g.element,[_.transitionClass,_.fadeInClass]),(c.isVisible()?_.onShown:_.onHidden)(g)),S.stop()})}),qn(Oh(),(g,S)=>{M4(g,o,c)}),qn(zO(),(g,S)=>{M4(g,o,c)}),qn(Qd(),(g,S)=>{KQ(g,o,c)})])}),UK=[wc("contextual",[zs("fadeInClass"),zs("fadeOutClass"),zs("transitionClass"),qu("lazyContext"),Rs("onShow"),Rs("onShown"),Rs("onHide"),Rs("onHidden")]),Di("lazyViewport",()=>({bounds:Vl(),optScrollEnv:L.none()})),Cc("modes",["top","bottom"],al),Rs("onDocked"),Rs("onUndocked")],WK=Object.freeze({__proto__:null,init:o=>{const c=X(!1),g=X(!0),S=gs(),_=X(o.modes),H=()=>`docked: ${c.get()}, visible: ${g.get()}, modes: ${_.get().join(",")}`;return Cu({isDocked:c.get,setDocked:c.set,getInitialPos:S.get,setInitialPos:S.set,clearInitialPos:S.clear,isVisible:g.get,setVisible:g.set,getModes:_.get,setModes:_.set,readState:H})}});const Bi=dl({fields:UK,name:"docking",active:HK,apis:eF,state:WK}),S1=F(Kr("toolbar-height-change")),yd={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},E4="tox-tinymce--toolbar-sticky-on",tF="tox-tinymce--toolbar-sticky-off",YK=(o,c)=>{const g=Tn(c),_=Jn(c).dom.innerHeight,H=Pl(g),K=zt.fromDom(o.elm),ve=wu(K),Ae=Za(K),Ne=ve.y,Ue=Ne+Ae,Je=Cl(c),st=Za(c),ht=Je.top,At=ht+st,qt=Math.abs(ht-H.top)<2,Dn=Math.abs(At-(H.top+_))<2;if(qt&&Neht){const mn=Ne-_+Ae+st;Wu(H.left,mn,g)}},N2=(o,c)=>be(Bi.getModes(o),c),V7=o=>{const c=S=>Vu(S)+(parseInt(Qa(S,"margin-top"),10)||0)+(parseInt(Qa(S,"margin-bottom"),10)||0),g=o.element;dr(g).each(S=>{const _="padding-"+Bi.getModes(o)[0];if(Bi.isDocked(o)){const H=Si(S);Po(g,"width",H+"px"),Po(S,_,c(g)+"px")}else Zo(g,"width"),Zo(S,_)})},B2=(o,c)=>{c?(Xa(o,yd.fadeOutClass),ni(o,[yd.transitionClass,yd.fadeInClass])):(Xa(o,yd.fadeInClass),ni(o,[yd.fadeOutClass,yd.transitionClass]))},z7=(o,c)=>{const g=zt.fromDom(o.getContainer());c?(ki(g,E4),Xa(g,tF)):(ki(g,tF),Xa(g,E4))},XK=(o,c)=>{const g=Tn(c);Mh(g).filter(S=>!Jt(c,S)).filter(S=>Jt(S,zt.fromDom(g.dom.body))||rn(o,S)).each(()=>cu(c))},GK=(o,c)=>ad(o).orThunk(()=>c().toOptional().bind(g=>ad(g.element))),jK=(o,c,g)=>{o.inline||(c.header.isPositionedAtTop()||o.on("ResizeEditor",()=>{g().each(Bi.reset)}),o.on("ResizeWindow ResizeEditor",()=>{g().each(V7)}),o.on("SkinLoaded",()=>{g().each(S=>{Bi.isDocked(S)?Bi.reset(S):Bi.refresh(S)})}),o.on("FullscreenStateChanged",()=>{g().each(Bi.reset)})),o.on("AfterScrollIntoView",S=>{g().each(_=>{Bi.refresh(_);const H=_.element;jx(H)&&YK(S,H)})}),o.on("PostRender",()=>{z7(o,!1)})},qK=o=>o().map(Bi.isDocked).getOr(!1),KK=()=>[lu.config({channels:{[S1()]:{onReceive:V7}}})],nF=(o,c)=>{const g=gs(),S=c.getSink,_=ve=>{S().each(Ae=>ve(Ae.element))},H=ve=>{o.inline||V7(ve),z7(o,Bi.isDocked(ve)),ve.getSystem().broadcastOn([dv()],{}),S().each(Ae=>Ae.getSystem().broadcastOn([dv()],{}))},K=o.inline?[]:KK();return[Mo.config({}),Bi.config({contextual:{lazyContext:ve=>{const Ae=Vu(ve.element),Ne=o.inline?o.getContentAreaContainer():o.getContainer();return L.from(Ne).map(Ue=>{const Je=ui(zt.fromDom(Ue));return d1(o,ve.element).fold(()=>{const ht=Je.height-Ae,At=Je.y+(N2(ve,"top")?0:Ae);return Ja(Je.x,At,Je.width,ht)},ht=>{const At=py(Je,O2(ht)),qt=N2(ve,"top")?At.y:At.y+Ae;return Ja(At.x,qt,At.width,At.height-Ae)})})},onShow:()=>{_(ve=>B2(ve,!0))},onShown:ve=>{_(Ae=>tf(Ae,[yd.transitionClass,yd.fadeInClass])),g.get().each(Ae=>{XK(ve.element,Ae),g.clear()})},onHide:ve=>{GK(ve.element,S).fold(g.clear,g.set),_(Ae=>B2(Ae,!1))},onHidden:()=>{_(ve=>tf(ve,[yd.transitionClass]))},...yd},lazyViewport:ve=>d1(o,ve.element).fold(()=>{const Ne=Vl(),Ue=qA(o),Je=Ne.y+(N2(ve,"top")?Ue:0),st=Ne.height-(N2(ve,"bottom")?Ue:0);return{bounds:Ja(Ne.x,Je,Ne.width,st),optScrollEnv:L.none()}},Ne=>({bounds:O2(Ne),optScrollEnv:L.some({currentScrollTop:Ne.element.dom.scrollTop,scrollElmTop:Cl(Ne.element).top})})),modes:[c.header.getDockingMode()],onDocked:H,onUndocked:H}),...K]};var rF=Object.freeze({__proto__:null,setup:jK,isDocked:qK,getBehaviours:nF});const oF=o=>{const c=o.editor,g=o.sticky?nF:_7;return{uid:o.uid,dom:o.dom,components:o.components,behaviours:pr(g(c,o.sharedBackstage))}},Z7=uo([Gi,Zc("items",Xr([Dd([T8,rc("items",al)]),al]))].concat(m2)),JK=o=>da("GroupToolbarButton",Z7,o),_4=[ll("text"),ll("tooltip"),ll("icon"),Tc("search",!1,Xr([_f,uo([ll("placeholder")])],o=>b(o)?o?L.some({placeholder:L.none()}):L.none():L.some(o))),qu("fetch"),Di("onSetup",()=>M)],Q3=uo([Gi,..._4]),H7=o=>da("menubutton",Q3,o),eJ=uo([Gi,GT,hd,tp,A8,YL,i1,Hc("presets","normal",["normal","color","listpreview"]),jL(1),d2,$Y]),tJ=o=>da("SplitButton",eJ,o);var U7=_u({factory:(o,c)=>{const g=(_,H)=>{const K=ne(H,ve=>{const Ae={type:"menubutton",text:ve.text,fetch:Ue=>{Ue(ve.getItems())}},Ne=H7(Ae).mapError(Ue=>Zl(Ue)).getOrDie();return C3(Ne,"tox-mbtn",c.backstage,L.some("menuitem"))});Uo.set(_,K)},S={focus:yo.focusIn,setMenus:g};return{uid:o.uid,dom:o.dom,components:[],behaviours:pr([Uo.config({}),Jo("menubar-events",[Ca(_=>{o.onSetup(_)}),qn(Lr(),(_,H)=>{Ai(_.element,".tox-mbtn--active").each(K=>{Vd(H.event.target,".tox-mbtn").each(ve=>{Jt(K,ve)||_.getSystem().getByDom(K).each(Ae=>{_.getSystem().getByDom(ve).each(Ne=>{Jd.expand(Ne),Jd.close(Ae),Mo.focus(Ne)})})})})}),qn(VO(),(_,H)=>{H.event.prevFocus.bind(K=>_.getSystem().getByDom(K).toOptional()).each(K=>{H.event.newFocus.bind(ve=>_.getSystem().getByDom(ve).toOptional()).each(ve=>{Jd.isOpen(K)&&(Jd.expand(ve),Jd.close(K))})})})]),yo.config({mode:"flow",selector:".tox-mbtn",onEscape:_=>(o.onEscape(_),L.some(!0))}),Ga.config({})]),apis:S,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[er("dom"),er("uid"),er("onEscape"),er("backstage"),Mn("onSetup",M)],apis:{focus:(o,c)=>{o.focus(c)},setMenus:(o,c,g)=>{o.setMenus(c,g)}}});const W7="⚡️Upgrade",Y7="https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_source=TinyMCE&utm_medium=SPAP&utm_campaign=SPAP&utm_id=editorreferral",nJ=o=>({uid:o.uid,dom:o.dom,components:[{dom:{tag:"a",attributes:{href:Y7,rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:W7}}]}),R4="container",rJ=[el("slotBehaviours",[])],sF=o=>"",oJ=o=>{const c=(()=>{const H=[];return{slot:(ve,Ae)=>(H.push(ve),fT(R4,sF(ve),Ae)),record:F(H)}})(),g=o(c),S=c.record(),_=ne(S,H=>ic({name:H,pname:sF(H)}));return yT(R4,rJ,_,sJ,g)},sJ=(o,c)=>{const g=qt=>mT(o),S=(qt,Dn)=>ka(qt,o,Dn),_=(qt,Dn)=>(mn,on)=>ka(mn,o,on).map(kn=>qt(kn,on)).getOr(Dn),H=qt=>(Dn,mn)=>{pe(mn,on=>qt(Dn,on))},K=(qt,Dn)=>oa(qt.element,"aria-hidden")!=="true",ve=(qt,Dn)=>{if(!K(qt)){const mn=qt.element;Zo(mn,"display"),sa(mn,"aria-hidden"),vo(qt,My(),{name:Dn,visible:!0})}},Ae=(qt,Dn)=>{if(K(qt)){const mn=qt.element;Po(mn,"display","none"),Dr(mn,"aria-hidden","true"),vo(qt,My(),{name:Dn,visible:!1})}},Ne=_(K,!1),Ue=_(Ae),Je=H(Ue),st=qt=>Je(qt,g()),ht=_(ve),At={getSlotNames:g,getSlot:S,isShowing:Ne,hideSlot:Ue,hideAllSlots:st,showSlot:ht};return{uid:o.uid,dom:o.dom,components:c,behaviours:Lm(o.slotBehaviours),apis:At}},pu={...je({getSlotNames:(o,c)=>o.getSlotNames(c),getSlot:(o,c,g)=>o.getSlot(c,g),isShowing:(o,c,g)=>o.isShowing(c,g),hideSlot:(o,c,g)=>o.hideSlot(c,g),hideAllSlots:(o,c)=>o.hideAllSlots(c),showSlot:(o,c,g)=>o.showSlot(c,g)},o=>ev(o)),sketch:oJ},hce=uo([hd,GT,Di("onShow",M),Di("onHide",M),i1]),aF=o=>da("sidebar",hce,o),aJ=o=>{const{sidebars:c}=o.ui.registry.getAll();pe(ct(c),g=>{const S=c[g],_=()=>ln(L.from(o.queryCommandValue("ToggleSidebar")),g);o.ui.registry.addToggleButton(g,{icon:S.icon,tooltip:S.tooltip,onAction:H=>{o.execCommand("ToggleSidebar",!1,g),H.setActive(_())},onSetup:H=>{H.setActive(_());const K=()=>H.setActive(_());return o.on("ToggleSidebar",K),()=>{o.off("ToggleSidebar",K)}}})})},iF=o=>({element:()=>o.element.dom}),iJ=(o,c)=>{const g=ne(ct(c),S=>{const _=c[S],H=aa(aF(_));return{name:S,getApi:iF,onSetup:H.onSetup,onShow:H.onShow,onHide:H.onHide}});return ne(g,S=>{const _=X(M);return o.slot(S.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:KT.unnamedEvents([l1(S,_),rp(S,_),qn(My(),(H,K)=>{const ve=K.event;Ze(g,Ne=>Ne.name===ve.name).each(Ne=>{(ve.visible?Ne.onShow:Ne.onHide)(Ne.getApi(H))})})])})})},lJ=o=>pu.sketch(c=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:iJ(c,o),slotBehaviours:KT.unnamedEvents([Ca(g=>pu.hideAllSlots(g))])})),cJ=(o,c,g)=>{xs.getCurrent(o).each(_=>{Uo.set(_,[lJ(c)]);const H=g==null?void 0:g.toLowerCase();m(H)&&vn(c,H)&&xs.getCurrent(_).each(K=>{pu.showSlot(K,H),Vf.immediateGrow(_),Zo(_.element,"width"),D4(o.element,"region")})})},D4=(o,c)=>{Dr(o,"role",c)},uJ=(o,c)=>{xs.getCurrent(o).each(S=>{xs.getCurrent(S).each(H=>{Vf.hasGrown(S)?pu.isShowing(H,c)?(Vf.shrink(S),D4(o.element,"presentation")):(pu.hideAllSlots(H),pu.showSlot(H,c),D4(o.element,"region")):(pu.hideAllSlots(H),pu.showSlot(H,c),Vf.grow(S),D4(o.element,"region"))})})},lF=o=>xs.getCurrent(o).bind(g=>Vf.isGrowing(g)||Vf.hasGrown(g)?xs.getCurrent(g).bind(H=>Ze(pu.getSlotNames(H),K=>pu.isShowing(H,K))):L.none()),X7=Kr("FixSizeEvent"),G7=Kr("AutoSizeEvent"),fJ=o=>({uid:o.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:pr([Ga.config({}),Mo.config({}),Vf.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:c=>{xs.getCurrent(c).each(pu.hideAllSlots),ks(c,G7)},onGrown:c=>{ks(c,G7)},onStartGrow:c=>{vo(c,X7,{width:za(c.element,"width").getOr("")})},onStartShrink:c=>{vo(c,X7,{width:Si(c.element)+"px"})}}),Uo.config({}),xs.config({find:c=>{const g=Uo.contents(c);return Ce(g)}})])}],behaviours:pr([Ff.childAt(0),Jo("sidebar-sliding-events",[qn(X7,(c,g)=>{Po(c.element,"width",g.event.width)}),qn(G7,(c,g)=>{Zo(c.element,"width")})])])});var cF=Object.freeze({__proto__:null,block:(o,c,g,S)=>{Dr(o.element,"aria-busy",!0);const _=c.getRoot(o).getOr(o),H=pr([yo.config({mode:"special",onTab:()=>L.some(!0),onShiftTab:()=>L.some(!0)}),Mo.config({})]),K=S(_,H),ve=_.getSystem().build(K);Uo.append(_,nf(ve)),ve.hasConfigured(yo)&&c.focus&&yo.focusIn(ve),g.isBlocked()||c.onBlock(o),g.blockWith(()=>Uo.remove(_,ve))},unblock:(o,c,g)=>{sa(o.element,"aria-busy"),g.isBlocked()&&c.onUnblock(o),g.clear()},isBlocked:(o,c,g)=>g.isBlocked()}),hJ=[Di("getRoot",L.none),Wi("focus",!0),Rs("onBlock"),Rs("onUnblock")],bd=Object.freeze({__proto__:null,init:()=>{const o=cE(),c=g=>{o.set({destroy:g})};return Cu({readState:o.isSet,blockWith:c,clear:o.clear,isBlocked:o.isSet})}});const Xm=dl({fields:hJ,name:"blocking",apis:cF,state:bd}),uF=o=>(c,g)=>({dom:{tag:"div",attributes:{"aria-label":o.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:Ov('
    ')}]}),j7=o=>xs.getCurrent(o).each(c=>cu(c.element,!0)),mJ=(o,c)=>{const g="tabindex",S=`data-mce-${g}`;L.from(o.iframeElement).map(zt.fromDom).each(_=>{c?(Ri(_,g).each(H=>Dr(_,S,H)),Dr(_,g,-1)):(sa(_,g),Ri(_,S).each(H=>{Dr(_,g,H),sa(_,S)}))})},F3=(o,c,g,S)=>{const _=c.element;if(mJ(o,g),g)Xm.block(c,uF(S)),Zo(_,"display"),sa(_,"aria-hidden"),o.hasFocus()&&j7(c);else{const H=xs.getCurrent(c).exists(K=>Wy(K.element));Xm.unblock(c),Po(_,"display","none"),Dr(_,"aria-hidden","true"),H&&o.focus()}},gJ=o=>({uid:o.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:pr([Uo.config({}),Xm.config({focus:!1}),xs.config({find:c=>Ce(c.components())})]),components:[]}),$4=o=>o.type==="focusin",pJ=o=>$4(o)?(o.composed?Ce(o.composedPath()):L.from(o.target)).map(zt.fromDom).filter(St).exists(g=>Ji(g,"mce-pastebin")):!1,L4=(o,c,g)=>{const S=X(!1),_=gs(),H=ve=>{S.get()&&!pJ(ve)&&(ve.preventDefault(),j7(c()),o.editorManager.setActive(o))};o.inline||o.on("PreInit",()=>{o.dom.bind(o.getWin(),"focusin",H),o.on("BeforeExecCommand",ve=>{ve.command.toLowerCase()==="mcefocus"&&ve.value!==!0&&H(ve)})});const K=ve=>{ve!==S.get()&&(S.set(ve),F3(o,c(),ve,g.providers),BI(o,ve))};o.on("ProgressState",ve=>{if(_.on(clearTimeout),T(ve.time)){const Ae=_b.setEditorTimeout(o,()=>K(ve.state),ve.time);_.set(Ae)}else K(ve.state),_.clear()})},vJ=(o,c)=>ke(o,(_,H)=>c(H,_.len).fold(F(_),ve=>({len:ve.finish,list:_.list.concat([ve])})),{len:0,list:[]}).list,q7=(o,c,g)=>({within:o,extra:c,withinWidth:g}),Od=(o,c,g)=>{const S=vJ(o,(ve,Ae)=>{const Ne=g(ve);return L.some({element:ve,start:Ae,finish:Ae+Ne,width:Ne})}),_=xe(S,ve=>ve.finish<=c),H=Le(_,(ve,Ae)=>ve+Ae.width,0),K=S.slice(_.length);return{within:_,extra:K,withinWidth:H}},I4=o=>ne(o,c=>c.element),N4=(o,c,g)=>{const S=I4(o.concat(c));return q7(S,[],g)},fF=(o,c,g,S)=>{const _=I4(o).concat([g]);return q7(_,I4(c),S)},dF=(o,c,g)=>q7(I4(o),[],g),yJ=(o,c,g)=>{const S=Od(c,o,g);return S.extra.length===0?L.some(S):L.none()},hF=(o,c,g,S)=>{const _=yJ(o,c,g).getOrThunk(()=>Od(c,o-g(S),g)),H=_.within,K=_.extra,ve=_.withinWidth;return K.length===1&&K[0].width<=g(S)?N4(H,K,ve):K.length>=1?fF(H,K,S,ve):dF(H,K,ve)},mF=(o,c)=>{const g=ne(c,S=>nf(S));Ym.setGroups(o,g)},bJ=o=>Xe(o,c=>ad(c.element).bind(g=>c.getSystem().getByDom(g).toOptional())),gF=(o,c,g)=>{const S=c.builtGroups.get();if(S.length===0)return;const _=Nm(o,c,"primary"),H=Mi.getCoupled(o,"overflowGroup");Po(_.element,"visibility","hidden");const K=S.concat([H]),ve=bJ(K);g([]),mF(_,K);const Ae=Si(_.element),Ne=hF(Ae,c.builtGroups.get(),Ue=>Si(Ue.element),H);Ne.extra.length===0?(Uo.remove(_,H),g([])):(mF(_,Ne.within),g(Ne.extra)),Zo(_.element,"visibility"),li(_.element),ve.each(Mo.focus)},pF=F([el("splitToolbarBehaviours",[Mi]),ei("builtGroups",()=>X([]))]),OJ=F([$g(["overflowToggledClass"]),Jf("getOverflowBounds"),er("lazySink"),ei("overflowGroups",()=>X([])),Rs("onOpened"),Rs("onClosed")].concat(pF())),xJ=F([ic({factory:Ym,schema:I2(),name:"primary"}),cd({schema:I2(),name:"overflow"}),cd({name:"overflow-button"}),cd({name:"overflow-group"})]),K7=F((o,c)=>{QS(o,Math.floor(c))}),vF=F([$g(["toggledClass"]),er("lazySink"),qu("fetch"),Jf("getBounds"),wc("fireDismissalEventInstead",[Mn("event",Ag())]),Ng(),Rs("onToggled")]),yF=F([cd({name:"button",overrides:o=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:pr([as.config({toggleClass:o.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:o.onToggled})])})}),cd({factory:Ym,schema:I2(),name:"toolbar",overrides:o=>({toolbarBehaviours:pr([yo.config({mode:"cyclic",onEscape:c=>(ka(c,o,"button").each(Mo.focus),L.none())})])})})]),V3=gs(),SJ=(o,c)=>{V3.set(!0),J7(o,c),V3.clear()},J7=(o,c)=>{const g=Mi.getCoupled(o,"toolbarSandbox");As.isOpen(g)?As.close(g):As.open(g,c.toolbar())},B4=(o,c,g,S)=>{const _=g.getBounds.map(K=>K()),H=g.lazySink(o).getOrDie();ac.positionWithinBounds(H,c,{anchor:{type:"hotspot",hotspot:o,layouts:S,overrides:{maxWidthFunction:K7()}}},_)},eR=(o,c,g,S,_)=>{Ym.setGroups(c,_),B4(o,c,g,S),as.on(o)},bF=(o,c,g)=>{const S=rv(),_=(K,ve)=>{const Ae=V3.get().getOr(!1);g.fetch().get(Ne=>{eR(o,ve,g,c.layouts,Ne),S.link(o.element),Ae||yo.focusIn(ve)})},H=()=>{as.off(o),V3.get().getOr(!1)||Mo.focus(o),S.unlink(o.element)};return{dom:{tag:"div",attributes:{id:S.id}},behaviours:pr([yo.config({mode:"special",onEscape:K=>(As.close(K),L.some(!0))}),As.config({onOpen:_,onClose:H,isPartOf:(K,ve,Ae)=>Am(ve,Ae)||Am(o,Ae),getAttachPoint:()=>g.lazySink(o).getOrDie()}),lu.config({channels:{...cb({isExtraPart:Y,...g.fireDismissalEventInstead.map(K=>({fireEventInstead:{event:K.event}})).getOr({})}),...W0({doReposition:()=>{As.getState(Mi.getCoupled(o,"toolbarSandbox")).each(K=>{B4(o,K,g,c.layouts)})}})}})])}},w1=lc({name:"FloatingToolbarButton",factory:(o,c,g,S)=>({...Dl.sketch({...S.button(),action:_=>{J7(_,S)},buttonBehaviours:If.augment({dump:S.button().buttonBehaviours},[Mi.config({others:{toolbarSandbox:_=>bF(_,g,o)}})])}),apis:{setGroups:(_,H)=>{As.getState(Mi.getCoupled(_,"toolbarSandbox")).each(K=>{eR(_,K,o,g.layouts,H)})},reposition:_=>{As.getState(Mi.getCoupled(_,"toolbarSandbox")).each(H=>{B4(_,H,o,g.layouts)})},toggle:_=>{J7(_,S)},toggleWithoutFocusing:_=>{SJ(_,S)},getToolbar:_=>As.getState(Mi.getCoupled(_,"toolbarSandbox")),isOpen:_=>As.isOpen(Mi.getCoupled(_,"toolbarSandbox"))}}),configFields:vF(),partFields:yF(),apis:{setGroups:(o,c,g)=>{o.setGroups(c,g)},reposition:(o,c)=>{o.reposition(c)},toggle:(o,c)=>{o.toggle(c)},toggleWithoutFocusing:(o,c)=>{o.toggleWithoutFocusing(c)},getToolbar:(o,c)=>o.getToolbar(c),isOpen:(o,c)=>o.isOpen(c)}}),wJ=F([er("items"),$g(["itemSelector"]),el("tgroupBehaviours",[yo])]),OF=F([yb({name:"items",unit:"item"})]),TJ=(o,c,g,S)=>({uid:o.uid,dom:o.dom,components:c,behaviours:Ni(o.tgroupBehaviours,[yo.config({mode:"flow",selector:o.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}),Q4=lc({name:"ToolbarGroup",configFields:wJ(),partFields:OF(),factory:TJ}),xF=o=>ne(o,c=>nf(c)),SF=(o,c,g)=>{gF(o,g,S=>{g.overflowGroups.set(S),c.getOpt(o).each(_=>{w1.setGroups(_,xF(S))})})},CJ=(o,c,g,S)=>{const _=ia(w1.sketch({fetch:()=>$c.nu(H=>{H(xF(o.overflowGroups.get()))}),layouts:{onLtr:()=>[Gl,ul],onRtl:()=>[ul,Gl],onBottomLtr:()=>[sc,Yc],onBottomRtl:()=>[Yc,sc]},getBounds:g.getOverflowBounds,lazySink:o.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:o.markers.overflowToggledClass},parts:{button:S["overflow-button"](),toolbar:S.overflow()},onToggled:(H,K)=>o[K?"onOpened":"onClosed"](H)}));return{uid:o.uid,dom:o.dom,components:c,behaviours:Ni(o.splitToolbarBehaviours,[Mi.config({others:{overflowGroup:()=>Q4.sketch({...S["overflow-group"](),items:[_.asSpec()]})}})]),apis:{setGroups:(H,K)=>{o.builtGroups.set(ne(K,H.getSystem().build)),SF(H,_,o)},refresh:H=>SF(H,_,o),toggle:H=>{_.getOpt(H).each(K=>{w1.toggle(K)})},toggleWithoutFocusing:H=>{_.getOpt(H).each(w1.toggleWithoutFocusing)},isOpen:H=>_.getOpt(H).map(w1.isOpen).getOr(!1),reposition:H=>{_.getOpt(H).each(K=>{w1.reposition(K)})},getOverflow:H=>_.getOpt(H).bind(w1.getToolbar)},domModification:{attributes:{role:"group"}}}},wF=lc({name:"SplitFloatingToolbar",configFields:OJ(),partFields:xJ(),factory:CJ,apis:{setGroups:(o,c,g)=>{o.setGroups(c,g)},refresh:(o,c)=>{o.refresh(c)},reposition:(o,c)=>{o.reposition(c)},toggle:(o,c)=>{o.toggle(c)},toggleWithoutFocusing:(o,c)=>{o.toggle(c)},isOpen:(o,c)=>o.isOpen(c),getOverflow:(o,c)=>o.getOverflow(c)}}),kJ=F([$g(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Rs("onOpened"),Rs("onClosed")].concat(pF())),AJ=F([ic({factory:Ym,schema:I2(),name:"primary"}),ic({factory:Ym,schema:I2(),name:"overflow",overrides:o=>({toolbarBehaviours:pr([Vf.config({dimension:{property:"height"},closedClass:o.markers.closedClass,openClass:o.markers.openClass,shrinkingClass:o.markers.shrinkingClass,growingClass:o.markers.growingClass,onShrunk:c=>{ka(c,o,"overflow-button").each(g=>{as.off(g),Mo.focus(g)}),o.onClosed(c)},onGrown:c=>{yo.focusIn(c),o.onOpened(c)},onStartGrow:c=>{ka(c,o,"overflow-button").each(as.on)}}),yo.config({mode:"acyclic",onEscape:c=>(ka(c,o,"overflow-button").each(Mo.focus),L.some(!0))})])})}),cd({name:"overflow-button",overrides:o=>({buttonBehaviours:pr([as.config({toggleClass:o.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])})}),cd({name:"overflow-group"})]),PJ=(o,c)=>ka(o,c,"overflow").map(Vf.hasGrown).getOr(!1),TF=(o,c)=>{ka(o,c,"overflow-button").bind(()=>ka(o,c,"overflow")).each(g=>{F4(o,c),Vf.toggleGrow(g)})},F4=(o,c)=>{ka(o,c,"overflow").each(g=>{gF(o,c,S=>{const _=ne(S,H=>nf(H));Ym.setGroups(g,_)}),ka(o,c,"overflow-button").each(S=>{Vf.hasGrown(g)&&as.on(S)}),Vf.refresh(g)})},MJ=(o,c,g,S)=>{const _="alloy.toolbar.toggle",H=(K,ve)=>{const Ae=ne(ve,K.getSystem().build);o.builtGroups.set(Ae)};return{uid:o.uid,dom:o.dom,components:c,behaviours:Ni(o.splitToolbarBehaviours,[Mi.config({others:{overflowGroup:K=>Q4.sketch({...S["overflow-group"](),items:[Dl.sketch({...S["overflow-button"](),action:ve=>{ks(K,_)}})]})}}),Jo("toolbar-toggle-events",[qn(_,K=>{TF(K,o)})])]),apis:{setGroups:(K,ve)=>{H(K,ve),F4(K,o)},refresh:K=>F4(K,o),toggle:K=>TF(K,o),isOpen:K=>PJ(K,o)},domModification:{attributes:{role:"group"}}}},tR=lc({name:"SplitSlidingToolbar",configFields:kJ(),partFields:AJ(),factory:MJ,apis:{setGroups:(o,c,g)=>{o.setGroups(c,g)},refresh:(o,c)=>{o.refresh(c)},toggle:(o,c)=>{o.toggle(c)},isOpen:(o,c)=>o.isOpen(c)}}),V4=o=>{const c=o.title.fold(()=>({}),g=>({attributes:{title:g}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...c},components:[Q4.parts.items({})],items:o.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:pr([Ga.config({}),Mo.config({})])}},z4=o=>Q4.sketch(V4(o)),z3=(o,c)=>{const g=Ca(S=>{const _=ne(o.initGroups,z4);Ym.setGroups(S,_)});return pr([tl.toolbarButton(o.providers.isDisabled),gl(),yo.config({mode:c,onEscape:o.onEscape,selector:".tox-toolbar__group"}),Jo("toolbar-events",[g])])},CF=o=>{const c=o.cyclicKeying?"cyclic":"acyclic";return{uid:o.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":V4({title:L.none(),items:[]}),"overflow-button":Mq({name:"more",icon:L.some("more-drawer"),enabled:!0,tooltip:L.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:L.none(),borderless:!1},L.none(),o.providers)},splitToolbarBehaviours:z3(o,c)}},kF=o=>{const c=CF(o),g=4,S=wF.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return wF.sketch({...c,lazySink:o.getSink,getOverflowBounds:()=>{const _=o.moreDrawerData.lazyHeader().element,H=wu(_),K=pn(_),ve=wu(K),Ae=Math.max(K.dom.scrollHeight,ve.height);return Ja(H.x+g,ve.y,H.width-g*2,Ae)},parts:{...c.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:o.attributes}}},components:[S],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:_=>o.onToggled(_,!0),onClosed:_=>o.onToggled(_,!1)})},EJ=o=>{const c=tR.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),g=tR.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),S=CF(o);return tR.sketch({...S,components:[c,g],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:_=>{_.getSystem().broadcastOn([S1()],{type:"opened"}),o.onToggled(_,!0)},onClosed:_=>{_.getSystem().broadcastOn([S1()],{type:"closed"}),o.onToggled(_,!1)}})},Z4=o=>{const c=o.cyclicKeying?"cyclic":"acyclic";return Ym.sketch({uid:o.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(o.type===Qf.scrolling?["tox-toolbar--scrolling"]:[])},components:[Ym.parts.groups({})],toolbarBehaviours:z3(o,c)})},_J=[tp,hd,ll("tooltip"),Hc("buttonType","secondary",["primary","secondary"]),Wi("borderless",!1),qu("onAction")],RJ=[..._J,wv,Rf("type",["button"])],DJ=[..._J,Wi("active",!1),Rf("type",["togglebutton"])],H4={button:RJ,togglebutton:DJ},$J=[Rf("type",["group"]),Cc("buttons",[],Os("type",H4))],U4=Os("type",{...H4,group:$J}),AF=uo([Cc("buttons",[],U4),qu("onShow"),qu("onHide")]),PF=o=>da("view",AF,o),nR=(o,c)=>{var g,S;const _=o.type==="togglebutton",H=o.icon.map(kn=>y1(kn,c.icons)).map(ia),ve=(()=>kn=>{const Zn=Or=>{H.map(Mr=>Mr.getOpt(kn).each(is=>{Uo.set(is,[y1(Or,c.icons)])}))},mr=Or=>{const Mr=kn.element;Or?(ki(Mr,"tox-button--enabled"),Dr(Mr,"aria-pressed",!0)):(Xa(Mr,"tox-button--enabled"),sa(Mr,"aria-pressed"))},Gn=()=>Ji(kn.element,"tox-button--enabled");if(_)return o.onAction({setIcon:Zn,setActive:mr,isActive:Gn});if(o.type==="button")return o.onAction({setIcon:Zn})})(),Ae={...o,name:_?o.text.getOr(o.icon.getOr("")):(g=o.text)!==null&&g!==void 0?g:o.icon.getOr(""),primary:o.buttonType==="primary",buttonType:L.from(o.buttonType),tooltip:o.tooltip,icon:o.icon,enabled:!0,borderless:o.borderless},Ne=g7((S=o.buttonType)!==null&&S!==void 0?S:"secondary"),Ue=_?o.text.map(c.translate):L.some(c.translate(o.text)),Je=Ue.map(yi),st=Ae.tooltip.or(Ue).map(kn=>({"aria-label":c.translate(kn),title:c.translate(kn)})).getOr({}),ht=H.map(kn=>kn.asSpec()),At=p2([ht,Je]),qt=o.icon.isSome()&&Je.isSome(),Dn={tag:"button",classes:Ne.concat(...o.icon.isSome()&&!qt?["tox-button--icon"]:[]).concat(...qt?["tox-button--icon-and-text"]:[]).concat(...o.borderless?["tox-button--naked"]:[]).concat(...o.type==="togglebutton"&&o.active?["tox-button--enabled"]:[]),attributes:st},mn=[],on=y4(Ae,L.some(ve),mn,Dn,At,c);return Dl.sketch(on)},MF=(o,c)=>nR(o,c),EF=(o,c)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:ne(o.buttons,g=>MF(g,c))}),Yb=jf().deviceType,_F=Yb.isPhone(),LJ=Yb.isTablet(),IJ=o=>{let c=!1;const g=ne(o.buttons,S=>S.type==="group"?(c=!0,EF(S,o.providers)):MF(S,o.providers));return{uid:o.uid,dom:{tag:"div",classes:[c?"tox-view__toolbar":"tox-view__header",..._F||LJ?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:pr([Mo.config({}),yo.config({mode:"flow",selector:"button, .tox-button",focusInside:j.OnEnterOrSpaceMode})]),components:c?g:[Um.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),Um.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:g})]}},NJ=o=>({uid:o.uid,dom:{tag:"div",classes:["tox-view__pane"]}}),rR=(o,c,g,S)=>{const _={getPane:H=>xl.getPart(H,o,"pane"),getOnShow:H=>o.viewConfig.onShow,getOnHide:H=>o.viewConfig.onHide};return{uid:o.uid,dom:o.dom,components:c,apis:_}};var Q2=lc({name:"silver.View",configFields:[er("viewConfig")],partFields:[fu({factory:{sketch:IJ},schema:[er("buttons"),er("providers")],name:"header"}),fu({factory:{sketch:NJ},schema:[],name:"pane"})],factory:rR,apis:{getPane:(o,c)=>o.getPane(c),getOnShow:(o,c)=>o.getOnShow(c),getOnHide:(o,c)=>o.getOnHide(c)}});const BJ=(o,c,g)=>Xt(c,(S,_)=>{const H=aa(PF(S));return o.slot(_,Q2.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:H,components:[...H.buttons.length>0?[Q2.parts.header({buttons:H.buttons,providers:g})]:[],Q2.parts.pane({})]}))}),RF=(o,c)=>pu.sketch(g=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:BJ(g,o,c),slotBehaviours:KT.unnamedEvents([Ca(S=>pu.hideAllSlots(S))])})),oR=o=>Ze(pu.getSlotNames(o),c=>pu.isShowing(o,c)),W4=o=>{const c=o.element;Po(c,"display","none"),Dr(c,"aria-hidden","true")},sR=o=>{const c=o.element;Zo(c,"display"),sa(c,"aria-hidden")},QJ=o=>({getContainer:F(o)}),DF=(o,c,g)=>{pu.getSlot(o,c).each(S=>{Q2.getPane(S).each(_=>{g(S)(QJ(_.element.dom))})})},$F=(o,c)=>DF(o,c,Q2.getOnShow),FJ=(o,c)=>DF(o,c,Q2.getOnHide);var Y4=_u({factory:(o,c)=>{const H={setViews:(K,ve)=>{Uo.set(K,[RF(ve,c.backstage.shared.providers)])},whichView:K=>xs.getCurrent(K).bind(oR),toggleView:(K,ve,Ae,Ne)=>xs.getCurrent(K).exists(Ue=>{const Je=oR(Ue),st=Je.exists(At=>Ne===At),ht=pu.getSlot(Ue,Ne).isSome();return ht&&(pu.hideAllSlots(Ue),st?(W4(K),ve()):(Ae(),sR(K),pu.showSlot(Ue,Ne),$F(Ue,Ne)),Je.each(At=>FJ(Ue,At))),ht})};return{uid:o.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:pr([Uo.config({}),xs.config({find:K=>{const ve=Uo.contents(K);return Ce(ve)}})]),apis:H}},name:"silver.ViewWrapper",configFields:[er("backstage")],apis:{setViews:(o,c,g)=>o.setViews(c,g),toggleView:(o,c,g,S,_)=>o.toggleView(c,g,S,_),whichView:(o,c)=>o.whichView(c)}});const LF=(o,c,g)=>{let S=!1;const _={getSocket:H=>xl.getPart(H,o,"socket"),setSidebar:(H,K,ve)=>{xl.getPart(H,o,"sidebar").each(Ae=>cJ(Ae,K,ve))},toggleSidebar:(H,K)=>{xl.getPart(H,o,"sidebar").each(ve=>uJ(ve,K))},whichSidebar:H=>xl.getPart(H,o,"sidebar").bind(lF).getOrNull(),getHeader:H=>xl.getPart(H,o,"header"),getToolbar:H=>xl.getPart(H,o,"toolbar"),setToolbar:(H,K)=>{xl.getPart(H,o,"toolbar").each(ve=>{const Ae=ne(K,z4);ve.getApis().setGroups(ve,Ae)})},setToolbars:(H,K)=>{xl.getPart(H,o,"multiple-toolbar").each(ve=>{const Ae=ne(K,Ne=>ne(Ne,z4));k4.setItems(ve,Ae)})},refreshToolbar:H=>{xl.getPart(H,o,"toolbar").each(ve=>ve.getApis().refresh(ve))},toggleToolbarDrawer:H=>{xl.getPart(H,o,"toolbar").each(K=>{Sn(K.getApis().toggle,ve=>ve(K))})},toggleToolbarDrawerWithoutFocusing:H=>{xl.getPart(H,o,"toolbar").each(K=>{Sn(K.getApis().toggleWithoutFocusing,ve=>ve(K))})},isToolbarDrawerToggled:H=>xl.getPart(H,o,"toolbar").bind(K=>L.from(K.getApis().isOpen).map(ve=>ve(K))).getOr(!1),getThrobber:H=>xl.getPart(H,o,"throbber"),focusToolbar:H=>{xl.getPart(H,o,"toolbar").orThunk(()=>xl.getPart(H,o,"multiple-toolbar")).each(ve=>{yo.focusIn(ve)})},setMenubar:(H,K)=>{xl.getPart(H,o,"menubar").each(ve=>{U7.setMenus(ve,K)})},focusMenubar:H=>{xl.getPart(H,o,"menubar").each(K=>{U7.focus(K)})},setViews:(H,K)=>{xl.getPart(H,o,"viewWrapper").each(ve=>{Y4.setViews(ve,K)})},toggleView:(H,K)=>xl.getPart(H,o,"viewWrapper").exists(ve=>Y4.toggleView(ve,()=>_.showMainView(H),()=>_.hideMainView(H),K)),whichView:H=>xl.getPart(H,o,"viewWrapper").bind(Y4.whichView).getOrNull(),hideMainView:H=>{S=_.isToolbarDrawerToggled(H),S&&_.toggleToolbarDrawer(H),xl.getPart(H,o,"editorContainer").each(K=>{const ve=K.element;Po(ve,"display","none"),Dr(ve,"aria-hidden","true")})},showMainView:H=>{S&&_.toggleToolbarDrawer(H),xl.getPart(H,o,"editorContainer").each(K=>{const ve=K.element;Zo(ve,"display"),sa(ve,"aria-hidden")})}};return{uid:o.uid,dom:o.dom,components:c,apis:_,behaviours:o.behaviours}},VJ=dp.optional({factory:U7,name:"menubar",schema:[er("backstage")]}),zJ=o=>o.type===Qf.sliding?EJ:o.type===Qf.floating?kF:Z4,aR=dp.optional({factory:{sketch:o=>k4.sketch({uid:o.uid,dom:o.dom,listBehaviours:pr([yo.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>Z4({type:o.type,uid:Kr("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:o.providers,onEscape:()=>(o.onEscape(),L.some(!0))}),setupItem:(c,g,S,_)=>{Ym.setGroups(g,S)},shell:!0})},name:"multiple-toolbar",schema:[er("dom"),er("onEscape")]}),ZJ=dp.optional({factory:{sketch:o=>{const c=zJ(o),g={type:o.type,uid:o.uid,onEscape:()=>(o.onEscape(),L.some(!0)),onToggled:(S,_)=>o.onToolbarToggled(_),cyclicKeying:!1,initGroups:[],getSink:o.getSink,providers:o.providers,moreDrawerData:{lazyToolbar:o.lazyToolbar,lazyMoreButton:o.lazyMoreButton,lazyHeader:o.lazyHeader},attributes:o.attributes};return c(g)}},name:"toolbar",schema:[er("dom"),er("onEscape"),er("getSink")]}),HJ=dp.optional({factory:{sketch:oF},name:"header",schema:[er("dom")]}),IF=dp.optional({factory:{sketch:nJ},name:"promotion",schema:[er("dom")]}),UJ=dp.optional({name:"socket",schema:[er("dom")]}),NF=dp.optional({factory:{sketch:fJ},name:"sidebar",schema:[er("dom")]}),WJ=dp.optional({factory:{sketch:gJ},name:"throbber",schema:[er("dom")]}),BF=dp.optional({factory:Y4,name:"viewWrapper",schema:[er("backstage")]}),YJ=o=>({uid:o.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:o.components}),XJ=dp.optional({factory:{sketch:YJ},name:"editorContainer",schema:[]});var $a=lc({name:"OuterContainer",factory:LF,configFields:[er("dom"),er("behaviours")],partFields:[HJ,VJ,ZJ,aR,UJ,NF,IF,WJ,BF,XJ],apis:{getSocket:(o,c)=>o.getSocket(c),setSidebar:(o,c,g,S)=>{o.setSidebar(c,g,S)},toggleSidebar:(o,c,g)=>{o.toggleSidebar(c,g)},whichSidebar:(o,c)=>o.whichSidebar(c),getHeader:(o,c)=>o.getHeader(c),getToolbar:(o,c)=>o.getToolbar(c),setToolbar:(o,c,g)=>{o.setToolbar(c,g)},setToolbars:(o,c,g)=>{o.setToolbars(c,g)},refreshToolbar:(o,c)=>o.refreshToolbar(c),toggleToolbarDrawer:(o,c)=>{o.toggleToolbarDrawer(c)},toggleToolbarDrawerWithoutFocusing:(o,c)=>{o.toggleToolbarDrawerWithoutFocusing(c)},isToolbarDrawerToggled:(o,c)=>o.isToolbarDrawerToggled(c),getThrobber:(o,c)=>o.getThrobber(c),setMenubar:(o,c,g)=>{o.setMenubar(c,g)},focusMenubar:(o,c)=>{o.focusMenubar(c)},focusToolbar:(o,c)=>{o.focusToolbar(c)},setViews:(o,c,g)=>{o.setViews(c,g)},toggleView:(o,c,g)=>o.toggleView(c,g),whichView:(o,c)=>o.whichView(c)}});const QF="file edit view insert format tools table help",FF={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template inserttemplate codesample inserttable accordion | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},GJ=(o,c,g)=>{const S=j_(g).split(/[ ,]/);return{text:o.title,getItems:()=>re(o.items,_=>{const H=_.toLowerCase();return H.trim().length===0?[]:Te(S,K=>K===H)?[]:H==="separator"||H==="|"?[{type:"separator"}]:c.menuItems[H]?[c.menuItems[H]]:[]})}},iR=o=>o.split(" "),X4=(o,c)=>{const g={...FF,...c.menus},S=ct(c.menus).length>0,_=c.menubar===void 0||c.menubar===!0?iR(QF):iR(c.menubar===!1?"":c.menubar),H=xe(_,ve=>{const Ae=vn(FF,ve);return S?Ae||Bt(c.menus,ve).exists(Ne=>vn(Ne,"items")):Ae}),K=ne(H,ve=>{const Ae=g[ve];return GJ({title:Ae.title,items:iR(Ae.items)},c,o)});return xe(K,ve=>{const Ae=Ne=>m(Ne)||Ne.type!=="separator";return ve.getItems().length>0&&Te(ve.getItems(),Ae)})},lR=o=>{const c=()=>{o._skinLoaded=!0,fX(o)};return()=>{o.initialized?c():o.on("init",c)}},jJ=(o,c)=>()=>W8(o,{message:c}),VF=(o,c,g)=>(o.on("remove",()=>g.unload(c)),g.load(c)),cR=(o,c,g,S)=>(o.on("remove",()=>S.unloadRawCss(c)),S.loadRawCss(c,g)),qJ=async(o,c)=>{const S="ui/"+o8(o).getOr("default")+"/skin.css",_=tinymce.Resource.get(S);if(m(_))return Promise.resolve(cR(o,S,_,o.ui.styleSheetLoader));{const H=c+"/skin.min.css";return VF(o,H,o.ui.styleSheetLoader)}},KJ=async(o,c)=>{if(Wa(zt.fromDom(o.getElement()))){const S=c+"/skin.shadowdom.css",_=tinymce.Resource.get(S);if(m(_))return cR(o,S,_,$b.DOM.styleSheetLoader),Promise.resolve();{const H=c+"/skin.shadowdom.min.css";return VF(o,H,$b.DOM.styleSheetLoader)}}},JJ=async(o,c)=>{o8(c).fold(()=>{const S=r5(c);S&&c.contentCSS.push(S+(o?"/content.inline":"/content")+".min.css")},S=>{const _="ui/"+S+(o?"/content.inline":"/content")+".css",H=tinymce.Resource.get(_);if(m(H))cR(c,_,H,c.ui.styleSheetLoader);else{const K=r5(c);K&&c.contentCSS.push(K+(o?"/content.inline":"/content")+".min.css")}});const g=r5(c);if(!r8(c)&&m(g))return Promise.all([qJ(c,g),KJ(c,g)]).then()},zF=(o,c)=>JJ(o,c).then(lR(c),jJ(c,"Skin could not be loaded")),eee=Q(zF,!1),tee=Q(zF,!0),Xb=(o,c,g)=>o.translate([`${c} {0}`,o.translate(g)]),G4=(o,c,g)=>{const S=(ve,Ae,Ne,Ue)=>{const Je=c.shared.providers.translate(ve.title);if(ve.type==="separator")return L.some({type:"separator",text:Je});if(ve.type==="submenu"){const st=re(ve.getStyleItems(),ht=>_(ht,Ae,Ue));return Ae===0&&st.length<=0?L.none():L.some({type:"nestedmenuitem",text:Je,enabled:st.length>0,getSubmenuItems:()=>re(ve.getStyleItems(),ht=>_(ht,Ae,Ue))})}else return L.some({type:"togglemenuitem",text:Je,icon:ve.icon,active:ve.isSelected(Ue),enabled:!Ne,onAction:g.onAction(ve),...ve.getStylePreview().fold(()=>({}),st=>({meta:{style:st}}))})},_=(ve,Ae,Ne)=>{const Ue=ve.type==="formatter"&&g.isInvalid(ve);return Ae===0?Ue?[]:S(ve,Ae,!1,Ne).toArray():S(ve,Ae,Ue,Ne).toArray()},H=ve=>{const Ae=g.getCurrentValue(),Ne=g.shouldHide?0:1;return re(ve,Ue=>_(Ue,Ne,Ae))};return{validateItems:H,getFetch:(ve,Ae)=>(Ne,Ue)=>{const Je=Ae(),st=H(Je),ht=M2(st,Hm.CLOSE_ON_EXECUTE,ve,{isHorizontalMenu:!1,search:L.none()});Ue(ht)}}},T1=(o,c,g)=>{const S=g.dataset,_=S.type==="basic"?()=>ne(S.data,H=>S7(H,g.isSelectedFor,g.getPreviewFor)):S.getData;return{items:G4(o,c,g),getStyleItems:_}},F2=(o,c,g,S,_)=>{const{items:H,getStyleItems:K}=T1(o,c,g),ve=Ne=>({getComponent:F(Ne),setTooltip:Ue=>{const Je=c.shared.providers.translate(Ue);yc(Ne.element,{"aria-label":Je,title:Je})}}),Ae=Ne=>{const Ue=Je=>Ne.setTooltip(Xb(o,S,Je.value));return o.on(_,Ue),r3(Vh(o,"NodeChange",Je=>{const st=Je.getComponent();g.updateText(st),Co.set(Je.getComponent(),!o.selection.isEditable())})(Ne),()=>o.off(_,Ue))};return c4({text:g.icon.isSome()?L.none():g.text,icon:g.icon,tooltip:L.from(g.tooltip),role:L.none(),fetch:H.getFetch(c,K),onSetup:Ae,getApi:ve,columns:1,presets:"normal",classes:g.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",c.shared)},C1=o=>ne(o,c=>{let g=c,S=c;const _=c.split("=");return _.length>1&&(g=_[0],S=_[1]),{title:g,format:S}}),ZF=o=>({type:"basic",data:o});var V2;(function(o){o[o.SemiColon=0]="SemiColon",o[o.Space=1]="Space"})(V2||(V2={}));const nee=(o,c)=>c===V2.SemiColon?o.replace(/;$/,"").split(";"):o.split(" "),uR=(o,c,g)=>{const S=o.options.get(c);return{type:"basic",data:C1(nee(S,g))}},fR="Align",HF="left",dR=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],UF=o=>{const c=()=>Ze(dR,ve=>o.formatter.match(ve.format)),g=ve=>()=>o.formatter.match(ve),S=ve=>L.none,_=ve=>{const Ne=c().fold(F(HF),Ue=>Ue.title.toLowerCase());vo(ve,b1,{icon:`align-${Ne}`}),gX(o,{value:Ne})},H=ZF(dR),K=ve=>()=>Ze(dR,Ae=>Ae.format===ve.format).each(Ae=>o.execCommand(Ae.command));return{tooltip:Xb(o,fR,HF),text:L.none(),icon:L.some("align-left"),isSelectedFor:g,getCurrentValue:L.none,getPreviewFor:S,onAction:K,updateText:_,dataset:H,shouldHide:!1,isInvalid:ve=>!o.formatter.canApply(ve.format)}},WF=(o,c)=>F2(o,c,UF(o),fR,"AlignTextUpdate"),ree=(o,c)=>{const g=T1(o,c,UF(o));o.ui.registry.addNestedMenuItem("align",{text:c.shared.providers.translate(fR),onSetup:gu(o),getSubmenuItems:()=>g.items.validateItems(g.getStyleItems())})},YF=(o,c)=>{const g=c(),S=ne(g,_=>_.format);return L.from(o.formatter.closest(S)).bind(_=>Ze(g,H=>H.format===_)).orThunk(()=>it(o.formatter.match("p"),{title:"Paragraph",format:"p"}))},Z3="Blocks",hR="Paragraph",XF=o=>{const c=H=>()=>o.formatter.match(H),g=H=>()=>{const K=o.formatter.get(H);return K?L.some({tag:K.length>0&&(K[0].inline||K[0].block)||"div",styles:o.dom.parseStyle(o.formatter.getCssText(H))}):L.none()},S=H=>{const ve=YF(o,()=>_.data).fold(F(hR),Ae=>Ae.title);vo(H,rh,{text:ve}),FI(o,{value:ve})},_=uR(o,"block_formats",V2.SemiColon);return{tooltip:Xb(o,Z3,hR),text:L.some(hR),icon:L.none(),isSelectedFor:c,getCurrentValue:L.none,getPreviewFor:g,onAction:zI(o),updateText:S,dataset:_,shouldHide:!1,isInvalid:H=>!o.formatter.canApply(H.format)}},oee=(o,c)=>F2(o,c,XF(o),Z3,"BlocksTextUpdate"),see=(o,c)=>{const g=T1(o,c,XF(o));o.ui.registry.addNestedMenuItem("blocks",{text:Z3,onSetup:gu(o),getSubmenuItems:()=>g.items.validateItems(g.getStyleItems())})},mR="Fonts",gR="System Font",GF=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],pR=o=>{const c=o.split(/\s*,\s*/);return ne(c,g=>g.replace(/^['"]+|['"]+$/g,""))},vR=(o,c)=>c.length>0&&ye(c,g=>o.indexOf(g.toLowerCase())>-1),aee=(o,c)=>{if(o.indexOf("-apple-system")===0||c.length>0){const g=pR(o.toLowerCase());return vR(g,GF)||vR(g,c)}else return!1},yR=o=>{const c=()=>{const Ae=At=>At?pR(At)[0]:"",Ne=o.queryCommandValue("FontName"),Ue=ve.data,Je=Ne?Ne.toLowerCase():"",st=kL(o);return{matchOpt:Ze(Ue,At=>{const qt=At.format;return qt.toLowerCase()===Je||Ae(qt).toLowerCase()===Ae(Je).toLowerCase()}).orThunk(()=>it(aee(Je,st),{title:gR,format:Je})),font:Ne}},g=Ae=>Ne=>Ne.exists(Ue=>Ue.format===Ae),S=()=>{const{matchOpt:Ae}=c();return Ae},_=Ae=>()=>L.some({tag:"div",styles:Ae.indexOf("dings")===-1?{"font-family":Ae}:{}}),H=Ae=>()=>{o.undoManager.transact(()=>{o.focus(),o.execCommand("FontName",!1,Ae.format)})},K=Ae=>{const{matchOpt:Ne,font:Ue}=c(),Je=Ne.fold(F(Ue),st=>st.title);vo(Ae,rh,{text:Je}),VI(o,{value:Je})},ve=uR(o,"font_family_formats",V2.SemiColon);return{tooltip:Xb(o,mR,gR),text:L.some(gR),icon:L.none(),isSelectedFor:g,getCurrentValue:S,getPreviewFor:_,onAction:H,updateText:K,dataset:ve,shouldHide:!1,isInvalid:Y}},iee=(o,c)=>F2(o,c,yR(o),mR,"FontFamilyTextUpdate"),lee=(o,c)=>{const g=T1(o,c,yR(o));o.ui.registry.addNestedMenuItem("fontfamily",{text:c.shared.providers.translate(mR),onSetup:gu(o),getSubmenuItems:()=>g.items.validateItems(g.getStyleItems())})},cee={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},jF=(()=>{const o="[0-9]+",g="[eE]"+("[+-]?"+o),S="\\.",_=ve=>`(?:${ve})?`,K=`[+-]?(?:${["Infinity",o+S+_(o)+_(g),S+o+_(g),o+_(g)].join("|")})`;return new RegExp(`^(${K})(.*)$`)})(),uee=(o,c)=>Te(c,g=>Te(cee[g],S=>o===S)),H3=(o,c)=>L.from(jF.exec(o)).bind(S=>{const _=Number(S[1]),H=S[2];return uee(H,c)?L.some({value:_,unit:H}):L.none()}),fee=(o,c)=>H3(o,c).map(({value:g,unit:S})=>g+S),qF={tab:F(9),escape:F(27),enter:F(13),backspace:F(8),delete:F(46),left:F(37),up:F(38),right:F(39),down:F(40),space:F(32),home:F(36),end:F(35),pageUp:F(33),pageDown:F(34)},dee=(o,c,g)=>{let S=L.none();const _=on=>on.map(kn=>Fr.getValue(kn)).getOr(""),H=Vh(o,"NodeChange SwitchMode",on=>{const kn=on.getComponent();S=L.some(kn),g.updateInputValue(kn),Co.set(kn,!o.selection.isEditable())}),K=on=>({getComponent:F(on)}),ve=X(M),Ae=Kr("custom-number-input-events"),Ne=(on,kn,Zn)=>{const mr=_(S),Gn=g.getNewValue(mr,on),Or=mr.length-`${Gn}`.length,Mr=S.map(Gr=>Gr.element.dom.selectionStart-Or),is=S.map(Gr=>Gr.element.dom.selectionEnd-Or);g.onAction(Gn,Zn),S.each(Gr=>{Fr.setValue(Gr,Gn),kn&&(Mr.each(Io=>Gr.element.dom.selectionStart=Io),is.each(Io=>Gr.element.dom.selectionEnd=Io))})},Ue=(on,kn)=>Ne((Zn,mr)=>Zn-mr,on,kn),Je=(on,kn)=>Ne((Zn,mr)=>Zn+mr,on,kn),st=on=>dr(on.element).fold(L.none,kn=>(cu(kn),L.some(!0))),ht=on=>Wy(on.element)?(ko(on.element).each(kn=>cu(kn)),L.some(!0)):L.none(),At=(on,kn,Zn,mr)=>{const Gn=X(M),Or=c.shared.providers.translate(Zn),Mr=Kr("altExecuting"),is=Vh(o,"NodeChange SwitchMode",Io=>{Co.set(Io.getComponent(),!o.selection.isEditable())}),Gr=Io=>{Co.isDisabled(Io)||on(!0)};return Dl.sketch({dom:{tag:"button",attributes:{title:Or,"aria-label":Or},classes:mr.concat(kn)},components:[l4(kn,c.shared.providers.icons)],buttonBehaviours:pr([Co.config({}),Jo(Mr,[l1({onSetup:is,getApi:K},Gn),rp({getApi:K},Gn),qn(_s(),(Io,_o)=>{(_o.event.raw.keyCode===qF.space()||_o.event.raw.keyCode===qF.enter())&&(Co.isDisabled(Io)||on(!1))}),qn($i(),Gr),qn(ts(),Gr)])]),eventOrder:{[_s()]:[Mr,"keying"],[$i()]:[Mr,"alloy.base.behaviour"],[ts()]:[Mr,"alloy.base.behaviour"]}})},qt=ia(At(on=>Ue(!1,on),"minus","Decrease font size",[])),Dn=ia(At(on=>Je(!1,on),"plus","Increase font size",[])),mn=ia({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[Ib.sketch({inputBehaviours:pr([Co.config({}),Jo(Ae,[l1({onSetup:H,getApi:K},ve),rp({getApi:K},ve)]),Jo("input-update-display-text",[qn(rh,(on,kn)=>{Fr.setValue(on,kn.event.text)}),qn(ms(),on=>{g.onAction(Fr.getValue(on))}),qn(Yi(),on=>{g.onAction(Fr.getValue(on))})]),yo.config({mode:"special",onEnter:on=>(Ne(z,!0,!0),L.some(!0)),onEscape:st,onUp:on=>(Je(!0,!1),L.some(!0)),onDown:on=>(Ue(!0,!1),L.some(!0)),onLeft:(on,kn)=>(kn.cut(),L.none()),onRight:(on,kn)=>(kn.cut(),L.none())})])})],behaviours:pr([Mo.config({}),yo.config({mode:"special",onEnter:ht,onSpace:ht,onEscape:st}),Jo("input-wrapper-events",[qn(Lr(),on=>{pe([qt,Dn],kn=>{const Zn=zt.fromDom(kn.get(on).element.dom);Wy(Zn)&&M0(Zn)})})])])});return{dom:{tag:"div",classes:["tox-number-input"]},components:[qt.asSpec(),mn.asSpec(),Dn.asSpec()],behaviours:pr([Mo.config({}),yo.config({mode:"flow",focusInside:j.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:on=>Wy(on.element)?L.none():(cu(on.element),L.some(!0))})])}},bR="Font sizes",KF="12pt",hee={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},mee={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},JF=(o,c)=>{const g=Math.pow(10,c);return Math.round(o*g)/g},gee=(o,c)=>/[0-9.]+px$/.test(o)?JF(parseInt(o,10)*72/96,c||0)+"pt":Bt(mee,o).getOr(o),pee=o=>Bt(hee,o).getOr(""),eV=o=>{const c=()=>{let Ae=L.none();const Ne=ve.data,Ue=o.queryCommandValue("FontSize");if(Ue)for(let Je=3;Ae.isNone()&&Je>=0;Je--){const st=gee(Ue,Je),ht=pee(st);Ae=Ze(Ne,At=>At.format===Ue||At.format===st||At.format===ht)}return{matchOpt:Ae,size:Ue}},g=Ae=>Ne=>Ne.exists(Ue=>Ue.format===Ae),S=()=>{const{matchOpt:Ae}=c();return Ae},_=F(L.none),H=Ae=>()=>{o.undoManager.transact(()=>{o.focus(),o.execCommand("FontSize",!1,Ae.format)})},K=Ae=>{const{matchOpt:Ne,size:Ue}=c(),Je=Ne.fold(F(Ue),st=>st.title);vo(Ae,rh,{text:Je}),pX(o,{value:Je})},ve=uR(o,"font_size_formats",V2.Space);return{tooltip:Xb(o,bR,KF),text:L.some(KF),icon:L.none(),isSelectedFor:g,getPreviewFor:_,getCurrentValue:S,onAction:H,updateText:K,dataset:ve,shouldHide:!1,isInvalid:Y}},vee=(o,c)=>F2(o,c,eV(o),bR,"FontSizeTextUpdate"),yee=o=>{var c;const g={step:1};return(c={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[o])!==null&&c!==void 0?c:g},bee=16,Oee=o=>o>=0,tV=o=>{const c=()=>o.queryCommandValue("FontSize");return{updateInputValue:S=>vo(S,rh,{text:c()}),onAction:(S,_)=>o.execCommand("FontSize",!1,S,{skip_focus:!_}),getNewValue:(S,_)=>{H3(S,["unsupportedLength","empty"]);const H=c(),K=H3(S,["unsupportedLength","empty"]).or(H3(H,["unsupportedLength","empty"])),ve=K.map(st=>st.value).getOr(bee),Ae=xL(o),Ne=K.map(st=>st.unit).filter(st=>st!=="").getOr(Ae),Ue=_(ve,yee(Ne).step),Je=`${Oee(Ue)?Ue:ve}${Ne}`;return Je!==H&&vX(o,{value:Je}),Je}}},xee=(o,c)=>dee(o,c,tV(o)),See=(o,c)=>{const g=T1(o,c,eV(o));o.ui.registry.addNestedMenuItem("fontsize",{text:bR,onSetup:gu(o),getSubmenuItems:()=>g.items.validateItems(g.getStyleItems())})},j4="Formats",nV=(o,c)=>{const g="Paragraph",S=K=>()=>o.formatter.match(K),_=K=>()=>{const ve=o.formatter.get(K);return ve!==void 0?L.some({tag:ve.length>0&&(ve[0].inline||ve[0].block)||"div",styles:o.dom.parseStyle(o.formatter.getCssText(K))}):L.none()},H=K=>{const ve=Je=>x4(Je)?re(Je.items,ve):CQ(Je)?[{title:Je.title,format:Je.format}]:[],Ae=re(AQ(o),ve),Ue=YF(o,F(Ae)).fold(F(g),Je=>Je.title);vo(K,rh,{text:Ue}),mX(o,{value:Ue})};return{tooltip:Xb(o,j4,g),text:L.some(g),icon:L.none(),isSelectedFor:S,getCurrentValue:L.none,getPreviewFor:_,onAction:zI(o),updateText:H,shouldHide:pL(o),isInvalid:K=>!o.formatter.canApply(K.format),dataset:c}},rV=(o,c)=>{const g={type:"advanced",...c.styles};return F2(o,c,nV(o,g),j4,"StylesTextUpdate")},oV=(o,c)=>{const g={type:"advanced",...c.styles},S=T1(o,c,nV(o,g));o.ui.registry.addNestedMenuItem("styles",{text:j4,onSetup:gu(o),getSubmenuItems:()=>S.items.validateItems(S.getStyleItems())})},wee=F([er("toggleClass"),er("fetch"),zd("onExecute"),Mn("getHotspot",L.some),Mn("getAnchorOverrides",F({})),Ng(),zd("onItemExecute"),Ws("lazySink"),er("dom"),Rs("onOpen"),el("splitDropdownBehaviours",[Mi,yo,Mo]),Mn("matchWidth",!1),Mn("useMinWidth",!1),Mn("eventOrder",{}),Ws("role")].concat(p6())),Tee=ic({factory:Dl,schema:[er("dom")],name:"arrow",defaults:()=>({buttonBehaviours:pr([Mo.revoke()])}),overrides:o=>({dom:{tag:"span",attributes:{role:"presentation"}},action:c=>{c.getSystem().getByUid(o.uid).each(xm)},buttonBehaviours:pr([as.config({toggleOnExecute:!1,toggleClass:o.toggleClass})])})}),Cee=ic({factory:Dl,schema:[er("dom")],name:"button",defaults:()=>({buttonBehaviours:pr([Mo.revoke()])}),overrides:o=>({dom:{tag:"span",attributes:{role:"presentation"}},action:c=>{c.getSystem().getByUid(o.uid).each(g=>{o.onExecute(g,c)})}})}),z2=F([Tee,Cee,fu({factory:{sketch:o=>({uid:o.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:o.text}})},schema:[er("text")],name:"aria-descriptor"}),cd({schema:[Qy()],name:"menu",defaults:o=>({onExecute:(c,g)=>{c.getSystem().getByUid(o.uid).each(S=>{o.onItemExecute(S,c,g)})}})}),aN()]),kee=(o,c,g,S)=>{const _=Ue=>{xs.getCurrent(Ue).each(Je=>{Ys.highlightFirst(Je),yo.focusIn(Je)})},H=Ue=>{m6(o,z,Ue,S,_,mu.HighlightMenuAndItem).get(M)},K=Ue=>(H(Ue),L.some(!0)),ve=Ue=>{const Je=Nm(Ue,o,"button");return xm(Je),L.some(!0)},Ae={...Ea([Ca((Ue,Je)=>{ka(Ue,o,"aria-descriptor").each(ht=>{const At=Kr("aria");Dr(ht.element,"id",At),Dr(Ue.element,"aria-describedby",At)})})]),...Vm(L.some(H))},Ne={repositionMenus:Ue=>{as.isOn(Ue)&&uN(Ue)}};return{uid:o.uid,dom:o.dom,components:c,apis:Ne,eventOrder:{...o.eventOrder,[Ii()]:["disabling","toggling","alloy.base.behaviour"]},events:Ae,behaviours:Ni(o.splitDropdownBehaviours,[Mi.config({others:{sandbox:Ue=>{const Je=Nm(Ue,o,"arrow");return g6(o,Ue,{onOpen:()=>{as.on(Je),as.on(Ue)},onClose:()=>{as.off(Je),as.off(Ue)}})}}}),yo.config({mode:"special",onSpace:ve,onEnter:ve,onDown:K}),Mo.config({}),as.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:o.role.getOr("button"),"aria-haspopup":!0}}}},q4=lc({name:"SplitDropdown",configFields:wee(),partFields:z2(),factory:kee,apis:{repositionMenus:(o,c)=>o.repositionMenus(c)}}),sV=o=>({isEnabled:()=>!Co.isDisabled(o),setEnabled:c=>Co.set(o,!c),setText:c=>vo(o,rh,{text:c}),setIcon:c=>vo(o,b1,{icon:c})}),Aee=o=>({setActive:c=>{as.set(o,c)},isActive:()=>as.isOn(o),isEnabled:()=>!Co.isDisabled(o),setEnabled:c=>Co.set(o,!c),setText:c=>vo(o,rh,{text:c}),setIcon:c=>vo(o,b1,{icon:c})}),aV=(o,c)=>o.map(g=>({"aria-label":c.translate(g),title:c.translate(g)})).getOr({}),iV=Kr("focus-button"),OR=(o,c,g,S,_)=>{const H=c.map(ve=>ia(AB(ve,"tox-tbtn",_))),K=o.map(ve=>ia(y1(ve,_.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(c.isSome()?["tox-tbtn--select"]:[]),attributes:aV(g,_)},components:p2([K.map(ve=>ve.asSpec()),H.map(ve=>ve.asSpec())]),eventOrder:{[go()]:["focusing","alloy.base.behaviour",Zb],[ef()]:[Zb,"toolbar-group-button-events"]},buttonBehaviours:pr([tl.toolbarButton(_.isDisabled),gl(),Jo(Zb,[Ca((ve,Ae)=>w3(ve)),qn(rh,(ve,Ae)=>{H.bind(Ne=>Ne.getOpt(ve)).each(Ne=>{Uo.set(Ne,[yi(_.translate(Ae.event.text))])})}),qn(b1,(ve,Ae)=>{K.bind(Ne=>Ne.getOpt(ve)).each(Ne=>{Uo.set(Ne,[y1(Ae.event.icon,_.icons)])})}),qn(go(),(ve,Ae)=>{Ae.event.prevent(),ks(ve,iV)})])].concat(S.getOr([])))}},Pee=(o,c,g,S)=>{const _=c.shared,H=X(M),K={toolbarButtonBehaviours:[],getApi:sV,onSetup:o.onSetup},ve=[Jo("toolbar-group-button-events",[l1(K,H),rp(K,H)])];return w1.sketch({lazySink:_.getSink,fetch:()=>$c.nu(Ae=>{Ae(ne(g(o.items),z4))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:OR(o.icon,o.text,o.tooltip,L.some(ve),_.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:S}}}})},K4=(o,c,g)=>{var S;const _=X(M),H=OR(o.icon,o.text,o.tooltip,L.none(),g);return Dl.sketch({dom:H.dom,components:H.components,eventOrder:CB,buttonBehaviours:{...pr([Jo("toolbar-button-events",[TB({onAction:o.onAction,getApi:c.getApi}),l1(c,_),rp(c,_)]),tl.toolbarButton(()=>!o.enabled||g.isDisabled()),gl()].concat(c.toolbarButtonBehaviours)),[Zb]:(S=H.buttonBehaviours)===null||S===void 0?void 0:S[Zb]}})},Mee=(o,c)=>lV(o,c,[]),lV=(o,c,g)=>K4(o,{toolbarButtonBehaviours:g.length>0?[Jo("toolbarButtonWith",g)]:[],getApi:sV,onSetup:o.onSetup},c),cV=(o,c)=>xR(o,c,[]),xR=(o,c,g)=>K4(o,{toolbarButtonBehaviours:[Uo.config({}),as.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(g.length>0?[Jo("toolbarToggleButtonWith",g)]:[]),getApi:Aee,onSetup:o.onSetup},c),Eee=(o,c,g)=>S=>$c.nu(_=>c.fetch(_)).map(_=>L.from($5(Ta(i6(Kr("menu-value"),_,H=>{c.onItemAction(o(S),H)},c.columns,c.presets,Hm.CLOSE_ON_EXECUTE,c.select.getOr(Y),g),{movement:E5(c.columns,c.presets),menuBehaviours:KT.unnamedEvents(c.columns!=="auto"?[]:[Ca((H,K)=>{D8(H,4,IL(c.presets)).each(({numRows:ve,numColumns:Ae})=>{yo.setGridSize(H,ve,Ae)})})])})))),_ee=(o,c)=>{const g=H=>({isEnabled:()=>!Co.isDisabled(H),setEnabled:K=>Co.set(H,!K),setIconFill:(K,ve)=>{Ai(H.element,`svg path[class="${K}"], rect[class="${K}"]`).each(Ae=>{Dr(Ae,"fill",ve)})},setActive:K=>{Dr(H.element,"aria-pressed",K),Ai(H.element,"span").each(ve=>{H.getSystem().getByDom(ve).each(Ae=>as.set(Ae,K))})},isActive:()=>Ai(H.element,"span").exists(K=>H.getSystem().getByDom(K).exists(as.isOn)),setText:K=>Ai(H.element,"span").each(ve=>H.getSystem().getByDom(ve).each(Ae=>vo(Ae,rh,{text:K}))),setIcon:K=>Ai(H.element,"span").each(ve=>H.getSystem().getByDom(ve).each(Ae=>vo(Ae,b1,{icon:K}))),setTooltip:K=>{const ve=c.providers.translate(K);yc(H.element,{"aria-label":ve,title:ve})}}),S=X(M),_={getApi:g,onSetup:o.onSetup};return q4.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...aV(o.tooltip,c.providers)}},onExecute:H=>{const K=g(H);K.isEnabled()&&o.onAction(K)},onItemExecute:(H,K,ve)=>{},splitDropdownBehaviours:pr([tl.splitButton(c.providers.isDisabled),gl(),Jo("split-dropdown-events",[Ca((H,K)=>w3(H)),qn(iV,Mo.focus),l1(_,S),rp(_,S)]),d3.config({})]),eventOrder:{[ef()]:["alloy.base.behaviour","split-dropdown-events"]},toggleClass:"tox-tbtn--enabled",lazySink:c.getSink,fetch:Eee(g,o,c.providers),parts:{menu:c2(!1,o.columns,o.presets)},components:[q4.parts.button(OR(o.icon,o.text,L.none(),L.some([as.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),c.providers)),q4.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:H_("chevron-down",c.providers.icons)},buttonBehaviours:pr([tl.splitButton(c.providers.isDisabled),gl(),XA()])}),q4.parts["aria-descriptor"]({text:c.providers.translate("To open the popup, press Shift+Enter")})]})},Ree=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],U3=(o,c)=>(g,S,_)=>{const H=o(g).mapError(K=>Zl(K)).getOrDie();return c(H,S,_)},Dee={button:U3(E8,(o,c)=>Mee(o,c.shared.providers)),togglebutton:U3(nI,(o,c)=>cV(o,c.shared.providers)),menubutton:U3(H7,(o,c)=>C3(o,"tox-tbtn",c,L.none(),!1)),splitbutton:U3(tJ,(o,c)=>_ee(o,c.shared)),grouptoolbarbutton:U3(JK,(o,c,g)=>{const S=g.ui.registry.getAll().buttons,_=K=>eP(g,{buttons:S,toolbar:K,allowToolbarGroups:!1},c,L.none()),H={[D0]:c.shared.header.isPositionedAtTop()?Lf.TopToBottom:Lf.BottomToTop};switch(o2(g)){case Qf.floating:return Pee(o,c,_,H);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})},$ee=(o,c,g)=>Bt(Dee,o.type).fold(()=>(console.error("skipping button defined by",o),L.none()),S=>L.some(S(o,c,g))),SR={styles:rV,fontsize:vee,fontsizeinput:xee,fontfamily:iee,blocks:oee,align:WF},Lee=o=>{const c=ne(Ree,g=>{const S=xe(g.items,_=>vn(o,_)||vn(SR,_));return{name:g.name,items:S}});return xe(c,g=>g.items.length>0)},Iee=o=>{const c=o.split("|");return ne(c,g=>({items:g.trim().split(" ")}))},Nee=o=>R(o,c=>vn(c,"name")&&vn(c,"items")),Bee=o=>{const c=o.toolbar,g=o.buttons;return c===!1?[]:c===void 0||c===!0?Lee(g):m(c)?Iee(c):Nee(c)?c:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},J4=(o,c,g,S,_,H)=>Bt(c,g.toLowerCase()).orThunk(()=>H.bind(K=>Xe(K,ve=>Bt(c,ve+g.toLowerCase())))).fold(()=>Bt(SR,g.toLowerCase()).map(K=>K(o,_)),K=>K.type==="grouptoolbarbutton"&&!S?(console.warn(`Ignoring the '${g}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),L.none()):$ee(K,_,o)),eP=(o,c,g,S)=>{const _=Bee(c),H=ne(_,K=>{const ve=re(K.items,Ae=>Ae.trim().length===0?[]:J4(o,c.buttons,Ae,c.allowToolbarGroups,g,S).toArray());return{title:L.from(o.translate(K.name)),items:ve}});return xe(H,K=>K.items.length>0)},W3=(o,c,g,S)=>{const _=c.mainUi.outerContainer,H=g.toolbar,K=g.buttons;if(R(H,m)){const ve=H.map(Ae=>{const Ne={toolbar:Ae,buttons:K,allowToolbarGroups:g.allowToolbarGroups};return eP(o,Ne,S,L.none())});$a.setToolbars(_,ve)}else $a.setToolbar(_,eP(o,g,S,L.none()))},Y3=jf(),uV=Y3.os.isiOS()&&Y3.os.version.major<=12,Qee=(o,c)=>{const{uiMotherships:g}=c,S=o.dom;let _=o.getWin();const H=o.getDoc().documentElement,K=X(Is(_.innerWidth,_.innerHeight)),ve=X(Is(H.offsetWidth,H.offsetHeight)),Ae=()=>{const st=K.get();(st.left!==_.innerWidth||st.top!==_.innerHeight)&&(K.set(Is(_.innerWidth,_.innerHeight)),S5(o))},Ne=()=>{const st=o.getDoc().documentElement,ht=ve.get();(ht.left!==st.offsetWidth||ht.top!==st.offsetHeight)&&(ve.set(Is(st.offsetWidth,st.offsetHeight)),S5(o))},Ue=st=>{dX(o,st)};S.bind(_,"resize",Ae),S.bind(_,"scroll",Ue);const Je=vx(zt.fromDom(o.getBody()),"load",Ne);o.on("hide",()=>{pe(g,st=>{Po(st.element,"display","none")})}),o.on("show",()=>{pe(g,st=>{Zo(st.element,"display")})}),o.on("NodeChange",Ne),o.on("remove",()=>{Je.unbind(),S.unbind(_,"resize",Ae),S.unbind(_,"scroll",Ue),_=null})},Fee=(o,c,g)=>{Kg(o)&&Dm(g.mainUi.mothership.element,g.popupUi.mothership),Rl(c,g.dialogUi.mothership)};var Vee=Object.freeze({__proto__:null,render:(o,c,g,S,_)=>{const{mainUi:H,uiMotherships:K}=c,ve=X(0),Ae=H.outerContainer;eee(o);const Ne=zt.fromDom(_.targetNode),Ue=Xs(es(Ne));Dm(Ne,H.mothership),Fee(o,Ue,c),o.on("SkinLoaded",()=>{$a.setSidebar(Ae,g.sidebar,t5(o)),W3(o,c,g,S),ve.set(o.getWin().innerWidth),$a.setMenubar(Ae,X4(o,g)),$a.setViews(Ae,g.views),Qee(o,c)});const Je=$a.getSocket(Ae).getOrDie("Could not find expected socket element");if(uV){zi(Je.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const qt=y3(()=>{o.dispatch("ScrollContent")},20),Dn=_c(Je.element,"scroll",qt.throttle);o.on("remove",Dn.unbind)}bI(o,c),o.addCommand("ToggleSidebar",(qt,Dn)=>{$a.toggleSidebar(Ae,Dn),o.dispatch("ToggleSidebar")}),o.addQueryValueHandler("ToggleSidebar",()=>{var qt;return(qt=$a.whichSidebar(Ae))!==null&&qt!==void 0?qt:""}),o.addCommand("ToggleView",(qt,Dn)=>{if($a.toggleView(Ae,Dn)){const mn=Ae.element;H.mothership.broadcastOn([Wd()],{target:mn}),pe(K,on=>{on.broadcastOn([Wd()],{target:mn})}),y($a.whichView(Ae))&&(o.focus(),o.nodeChanged(),$a.refreshToolbar(Ae))}}),o.addQueryValueHandler("ToggleView",()=>{var qt;return(qt=$a.whichView(Ae))!==null&&qt!==void 0?qt:""});const st=o2(o),ht=()=>{$a.refreshToolbar(c.mainUi.outerContainer)};(st===Qf.sliding||st===Qf.floating)&&o.on("ResizeWindow ResizeEditor ResizeContent",()=>{const qt=o.getWin().innerWidth;qt!==ve.get()&&(ht(),ve.set(qt))});const At={setEnabled:qt=>{y5(c,!qt)},isEnabled:()=>!Co.isDisabled(Ae)};return{iframeContainer:Je.element.dom,editorContainer:Ae.element.dom,api:At}}});const wR=o=>/^[0-9\.]+(|px)$/i.test(""+o)?L.some(parseInt(""+o,10)):L.none(),Z2=o=>T(o)?o+"px":o,X3=(o,c,g)=>{const S=c.filter(H=>oo>H);return S.or(_).getOr(o)},fV=o=>{const c=GA(o),g=r2(o),S=G_(o);return wR(c).map(_=>X3(_,g,S))},dV=o=>fV(o).getOr(GA(o)),TR=o=>{const c=zT(o),g=X_(o),S=jA(o);return wR(c).map(_=>X3(_,g,S))},zee=o=>TR(o).getOr(zT(o)),{ToolbarLocation:tP,ToolbarMode:hV}=bY,Zee=40,Hee=(o,c,g,S,_)=>{const{mainUi:H,uiMotherships:K}=g,ve=$b.DOM,Ae=i2(o),Ne=UT(o),Ue=jA(o).or(TR(o)),Je=S.shared.header,st=Je.isPositionedAtTop,ht=o2(o),At=ht===hV.sliding||ht===hV.floating,qt=X(!1),Dn=()=>qt.get()&&!o.removed,mn=wo=>At?wo.fold(F(0),Ns=>Ns.components().length>1?Za(Ns.components()[1].element):0):0,on=wo=>{switch(ZT(o)){case tP.auto:const Ns=$a.getToolbar(H.outerContainer),Pr=mn(Ns),oo=Za(wo.element)-Pr,No=ui(c);if(No.y>oo)return"top";{const To=pn(c),Yo=Math.max(To.dom.scrollHeight,Za(To));return No.bottom{_.on(Ns=>{Bi.setModes(Ns,[wo]),Je.setDockingMode(wo);const Pr=st()?Lf.TopToBottom:Lf.BottomToTop;Dr(Ns.element,D0,Pr)})},Zn=()=>{_.on(wo=>{const Ns=Ue.getOrThunk(()=>{const Pr=wR(Qa(ya(),"margin-left")).getOr(0);return Si(ya())-Cl(c).left+Pr});Po(wo.element,"max-width",Ns+"px")})},mr=wo=>{_.on(Ns=>{const Pr=$a.getToolbar(H.outerContainer),oo=mn(Pr),No=ui(c),{top:Qo,left:To}=Gn(o,H.outerContainer.element).fold(()=>({top:st()?Math.max(No.y-Za(Ns.element)+oo,0):No.bottom,left:No.x}),Fs=>{var Kl;const vf=ui(Fs),ih=(Kl=Fs.dom.scrollTop)!==null&&Kl!==void 0?Kl:0,Kh=Jt(Fs,ya()),R1=Kh?Math.max(No.y-Za(Ns.element)+oo,0):No.y-vf.y+ih-Za(Ns.element)+oo;return{top:st()?R1:No.bottom,left:Kh?No.x:No.x-vf.x}}),Yo={position:"absolute",left:Math.round(To)+"px",top:Math.round(Qo)+"px"},Ma=wo.map(Fs=>{const Kl=Pl(),vf=150,ih=window.innerWidth-(To-Kl.left);return{width:Math.max(Math.min(Fs,ih),vf)+"px"}}).getOr({});zi(H.outerContainer.element,{...Yo,...Ma})})},Gn=(wo,Ns)=>Kg(wo)?Wb(Ns):L.none(),Or=()=>{pe(K,wo=>{wo.broadcastOn([dv()],{})})},Mr=()=>{if(Ae)return L.none();if(Cl(H.outerContainer.element).left+Tf(H.outerContainer.element)>=window.innerWidth-Zee||za(H.outerContainer.element,"width").isSome()){Po(H.outerContainer.element,"position","absolute"),Po(H.outerContainer.element,"left","0px"),Zo(H.outerContainer.element,"width");const Ns=Tf(H.outerContainer.element);return L.some(Ns)}else return L.none()},is=wo=>{if(!Dn())return;Ae||Zn();const Ns=Ae?L.none():Mr();At&&$a.refreshToolbar(H.outerContainer),Ae||mr(Ns),Ne&&_.on(wo),Or()},Gr=()=>Ae||!Ne||!Dn()?!1:_.get().exists(wo=>{const Ns=Je.getDockingMode(),Pr=on(wo);return Pr!==Ns?(kn(Pr),!0):!1});return{isVisible:Dn,isPositionedAtTop:st,show:()=>{qt.set(!0),Po(H.outerContainer.element,"display","flex"),ve.addClass(o.getBody(),"mce-edit-focus"),pe(K,wo=>{Zo(wo.element,"display")}),Gr(),Kg(o)?is(wo=>Bi.isDocked(wo)?Bi.reset(wo):Bi.refresh(wo)):is(Bi.refresh)},hide:()=>{qt.set(!1),Po(H.outerContainer.element,"display","none"),ve.removeClass(o.getBody(),"mce-edit-focus"),pe(K,wo=>{Po(wo.element,"display","none")})},update:is,updateMode:()=>{Gr()&&is(Bi.reset)},repositionPopups:Or}},mV=(o,c)=>{const g=ui(o);return{pos:c?g.y:g.bottom,bounds:g}},Uee=(o,c,g,S)=>{const _=X(mV(c,g.isPositionedAtTop())),H=Ne=>{const{pos:Ue,bounds:Je}=mV(c,g.isPositionedAtTop()),{pos:st,bounds:ht}=_.get(),At=Je.height!==ht.height||Je.width!==ht.width;_.set({pos:Ue,bounds:Je}),At&&S5(o,Ne),g.isVisible()&&(st!==Ue?g.update(Bi.reset):At&&(g.updateMode(),g.repositionPopups()))};S||(o.on("activate",g.show),o.on("deactivate",g.hide)),o.on("SkinLoaded ResizeWindow",()=>g.update(Bi.reset)),o.on("NodeChange keydown",Ne=>{requestAnimationFrame(()=>H(Ne))});let K=0;const ve=G6(()=>g.update(Bi.refresh),33);o.on("ScrollWindow",()=>{const Ne=Pl().left;Ne!==K&&(K=Ne,ve.throttle()),g.updateMode()}),Kg(o)&&o.on("ElementScroll",Ne=>{g.update(Bi.refresh)});const Ae=Em();Ae.set(vx(zt.fromDom(o.getBody()),"load",Ne=>H(Ne.raw))),o.on("remove",()=>{Ae.clear()})};var Wee=Object.freeze({__proto__:null,render:(o,c,g,S,_)=>{const{mainUi:H}=c,K=gs(),ve=zt.fromDom(_.targetNode),Ae=Hee(o,ve,c,S,K),Ne=bL(o);tee(o);const Ue=()=>{if(K.isSet()){Ae.show();return}K.set($a.getHeader(H.outerContainer).getOrDie());const st=i8(o);Kg(o)?(Dm(ve,H.mothership),Dm(ve,c.popupUi.mothership)):Rl(st,H.mothership),Rl(st,c.dialogUi.mothership),W3(o,c,g,S),$a.setMenubar(H.outerContainer,X4(o,g)),Ae.show(),Uee(o,ve,Ae,Ne),o.nodeChanged()};o.on("show",Ue),o.on("hide",Ae.hide),Ne||(o.on("focus",Ue),o.on("blur",Ae.hide)),o.on("init",()=>{(o.hasFocus()||Ne)&&Ue()}),bI(o,c);const Je={show:Ue,hide:Ae.hide,setEnabled:st=>{y5(c,!st)},isEnabled:()=>!Co.isDisabled(H.outerContainer)};return{editorContainer:H.outerContainer.element.dom,api:Je}}});const Yee=()=>{const o=gs(),c=gs(),g=gs();return{dialogUi:o,popupUi:c,mainUi:g,getUiMotherships:()=>{const H=o.get().map(ve=>ve.mothership),K=c.get().map(ve=>ve.mothership);return H.fold(()=>K.toArray(),ve=>K.fold(()=>[ve],Ae=>Jt(ve.element,Ae.element)?[ve]:[ve,Ae]))},lazyGetInOuterOrDie:(H,K)=>()=>g.get().bind(ve=>K(ve.outerContainer)).getOrDie(`Could not find ${H} element in OuterContainer`)}},Xee="contexttoolbar-show",CR="contexttoolbar-hide",Gee=o=>({hide:()=>ks(o,Ju()),getValue:()=>Fr.getValue(o)}),kR=(o,c)=>qn(J6,(g,S)=>{const _=o.get(g),H=Gee(_);c.onAction(H,S.event.buttonApi)}),jee=(o,c,g)=>{const{primary:S,..._}=c.original,H=aa(E8({..._,type:"button",onAction:M}));return lV(H,g,[kR(o,c)])},qee=(o,c,g)=>{const{primary:S,..._}=c.original,H=aa(nI({..._,type:"togglebutton",onAction:M}));return xR(H,g,[kR(o,c)])},Kee=o=>o.type==="contextformtogglebutton",Jee=(o,c,g)=>Kee(c)?qee(o,c,g):jee(o,c,g),ete=(o,c,g)=>{const S=ne(c,K=>ia(Jee(o,K,g)));return{asSpecs:()=>ne(S,K=>K.asSpec()),findPrimary:K=>Xe(c,(ve,Ae)=>ve.primary?L.from(S[Ae]).bind(Ne=>Ne.getOpt(K)).filter(B(Co.isDisabled)):L.none())}},H2=(o,c)=>{const g=o.label.fold(()=>({}),H=>({"aria-label":H})),S=ia(Ib.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:o.initValue(),inputAttributes:g,selectOnFocus:!0,inputBehaviours:pr([yo.config({mode:"special",onEnter:H=>_.findPrimary(H).map(K=>(xm(K),!0)),onLeft:(H,K)=>(K.cut(),L.none()),onRight:(H,K)=>(K.cut(),L.none())})])})),_=ete(S,o.commands,c);return[{title:L.none(),items:[S.asSpec()]},{title:L.none(),items:_.asSpecs()}]},nte={renderContextForm:(o,c,g)=>Z4({type:o,uid:Kr("context-toolbar"),initGroups:H2(c,g),onEscape:L.none,cyclicKeying:!0,providers:g}),buildInitGroups:H2},gV=(o,c,g)=>c.bottom-o.y>=g&&o.bottom-c.y>=g,pV=o=>{const c=o.getBoundingClientRect();if(c.height<=0&&c.width<=0){const g=So(zt.fromDom(o.startContainer),o.startOffset).element;return(Ct(g)?Fn(g):L.some(g)).filter(St).map(_=>_.dom.getBoundingClientRect()).getOr(c)}else return c},G3=o=>{const c=o.selection.getRng(),g=pV(c);if(o.inline){const S=Pl();return Ja(S.left+g.left,S.top+g.top,g.width,g.height)}else{const S=wu(zt.fromDom(o.getBody()));return Ja(S.x+g.left,S.y+g.top,g.width,g.height)}},vV=(o,c)=>c.filter(g=>Js(g)&&Ee(g)).map(wu).getOrThunk(()=>G3(o)),yV=(o,c,g)=>{const S=Math.max(o.x+g,c.x),_=Math.min(o.right-g,c.right);return{x:S,width:_-S}},rte=(o,c,g,S,_,H)=>{const K=zt.fromDom(o.getContainer()),ve=Ai(K,".tox-editor-header").getOr(K),Ae=ui(ve),Ne=Ae.y>=c.bottom,Ue=S&&!Ne;if(o.inline&&Ue)return{y:Math.max(Ae.bottom+H,g.y),bottom:g.bottom};if(o.inline&&!Ue)return{y:g.y,bottom:Math.min(Ae.y-H,g.bottom)};const Je=_==="line"?ui(K):c;return Ue?{y:Math.max(Ae.bottom+H,g.y),bottom:Math.min(Je.bottom-H,g.bottom)}:{y:Math.max(Je.y+H,g.y),bottom:Math.min(Ae.y-H,g.bottom)}},Gb=(o,c,g,S=0)=>{const _=gy(window),H=ui(zt.fromDom(o.getContentAreaContainer())),K=a2(o)||o5(o)||HT(o),{x:ve,width:Ae}=yV(H,_,S);if(o.inline&&!K)return Ja(ve,_.y,Ae,_.height);{const Ne=c.header.isPositionedAtTop(),{y:Ue,bottom:Je}=rte(o,H,_,Ne,g,S);return Ja(ve,Ue,Ae,Je-Ue)}},jb=12,rP={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},AR={maxHeightFunction:R0(),maxWidthFunction:K7()},bV=(o,c)=>{const g=o.selection.getRng(),S=So(zt.fromDom(g.startContainer),g.startOffset);return g.startContainer===g.endContainer&&g.startOffset===g.endOffset-1&&Jt(S.element,c)},ote=(o,c,g)=>{const S=za(o,"position");Po(o,"position",c);const _=g(o);return S.each(H=>Po(o,"position",H)),_},PR=o=>o==="node",ste=(o,c,g,S,_)=>{const H=G3(o),K=S.lastElement().exists(ve=>Jt(g,ve));if(bV(o,g))return K?O7:Yh;if(K)return ote(c,S.getMode(),()=>gV(H,ui(c),-20)&&!S.isReposition()?Yq:O7);{const ve=S.getMode()==="fixed"?_.y+Pl().top:_.y,Ae=Za(c)+jb;return ve+Ae<=H.y?Yh:D2}},ate=(o,c,g,S)=>{const _=Ae=>(Ne,Ue,Je,st,ht)=>{const At=ste(o,st,Ae,g,ht),qt={...Ne,y:ht.y,height:ht.height};return{...At(qt,Ue,Je,st,ht),alwaysFit:!0}},H=Ae=>PR(S)?[_(Ae)]:[];return c?{onLtr:Ae=>[fl,ul,Gl,Yc,sc,Mc].concat(H(Ae)),onRtl:Ae=>[fl,Gl,ul,sc,Yc,Mc].concat(H(Ae))}:{onLtr:Ae=>[Mc,fl,Yc,ul,sc,Gl].concat(H(Ae)),onRtl:Ae=>[Mc,fl,sc,Gl,Yc,ul].concat(H(Ae))}},ite=(o,c,g,S)=>c==="line"?{bubble:Eh(jb,0,rP),layouts:{onLtr:()=>[bw],onRtl:()=>[Hy]},overrides:AR}:{bubble:Eh(0,jb,rP,1/jb),layouts:ate(o,g,S,c),overrides:AR},MR=(o,c)=>{const g=xe(c,H=>H.predicate(o.dom)),{pass:S,fail:_}=Oe(g,H=>H.type==="contexttoolbar");return{contextToolbars:S,contextForms:_}},lte=o=>{if(o.length<=1)return o;{const c=H=>Te(o,K=>K.position===H),g=H=>xe(o,K=>K.position===H),S=c("selection"),_=c("node");if(S||_)if(_&&S){const H=g("node"),K=ne(g("selection"),ve=>({...ve,position:"node"}));return H.concat(K)}else return g(S?"selection":"node");else return g("line")}},OV=o=>{if(o.length<=1)return o;{const c=S=>Ze(o,_=>_.position===S);return c("selection").orThunk(()=>c("node")).orThunk(()=>c("line")).map(S=>S.position).fold(()=>[],S=>xe(o,_=>_.position===S))}},oP=(o,c,g)=>{const S=MR(o,c);if(S.contextForms.length>0)return L.some({elem:o,toolbars:[S.contextForms[0]]});{const _=MR(o,g);if(_.contextForms.length>0)return L.some({elem:o,toolbars:[_.contextForms[0]]});if(S.contextToolbars.length>0||_.contextToolbars.length>0){const H=lte(S.contextToolbars.concat(_.contextToolbars));return L.some({elem:o,toolbars:H})}else return L.none()}},xV=(o,c,g)=>o(c)?L.none():jt(c,S=>{if(St(S)){const{contextToolbars:_,contextForms:H}=MR(S,g.inNodeScope),K=H.length>0?H:OV(_);return K.length>0?L.some({elem:S,toolbars:K}):L.none()}else return L.none()},o),SV=(o,c)=>{const g=zt.fromDom(c.getBody()),S=K=>Jt(K,g),_=K=>!S(K)&&!rn(g,K),H=zt.fromDom(c.selection.getNode());return _(H)?L.none():oP(H,o.inNodeScope,o.inEditorScope).orThunk(()=>xV(S,H,o))},ER=(o,c)=>{const g={},S=[],_=[],H={},K={},ve=(Ue,Je)=>{const st=aa(FY(Je));g[Ue]=st,st.launch.map(ht=>{H["form:"+Ue]={...Je.launch,type:ht.type==="contextformtogglebutton"?"togglebutton":"button",onAction:()=>{c(st)}}}),st.scope==="editor"?_.push(st):S.push(st),K[Ue]=st},Ae=(Ue,Je)=>{zY(Je).each(st=>{Je.scope==="editor"?_.push(st):S.push(st),K[Ue]=st})},Ne=ct(o);return pe(Ne,Ue=>{const Je=o[Ue];Je.type==="contextform"?ve(Ue,Je):Je.type==="contexttoolbar"&&Ae(Ue,Je)}),{forms:g,inNodeScope:S,inEditorScope:_,lookupTable:K,formNavigators:H}},wV=Kr("forward-slide"),_R=Kr("backward-slide"),RR=Kr("change-slide-event"),DR="tox-pop--resizing",sP=o=>{const c=X([]);return ri.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:g=>{c.set([]),ri.getContent(g).each(S=>{Zo(S.element,"visibility")}),Xa(g.element,DR),Zo(g.element,"width")},inlineBehaviours:pr([Jo("context-toolbar-events",[xh(Ki(),(g,S)=>{S.event.raw.propertyName==="width"&&(Xa(g.element,DR),Zo(g.element,"width"))}),qn(RR,(g,S)=>{const _=g.element;Zo(_,"width");const H=Si(_);ri.setContent(g,S.event.contents),ki(_,DR);const K=Si(_);Po(_,"width",H+"px"),ri.getContent(g).each(ve=>{S.event.focus.bind(Ae=>(cu(Ae),ad(_))).orThunk(()=>(yo.focusIn(ve),Mh(es(_))))}),setTimeout(()=>{Po(g.element,"width",K+"px")},0)}),qn(wV,(g,S)=>{ri.getContent(g).each(_=>{c.set(c.get().concat([{bar:_,focus:Mh(es(g.element))}]))}),vo(g,RR,{contents:S.event.forwardContents,focus:L.none()})}),qn(_R,(g,S)=>{Qe(c.get()).each(_=>{c.set(c.get().slice(0,c.get().length-1)),vo(g,RR,{contents:nf(_.bar),focus:_.focus})})})]),yo.config({mode:"special",onEscape:g=>Qe(c.get()).fold(()=>o.onEscape(),S=>(ks(g,_R),L.some(!0)))})]),lazySink:()=>jo.value(o.sink)})},aP="tox-pop--transition",cte=(o,c,g,S)=>{const _=S.backstage,H=_.shared,K=jf().deviceType.isTouch,ve=gs(),Ae=gs(),Ne=gs(),Ue=oc(sP({sink:g,onEscape:()=>(o.focus(),L.some(!0))})),Je=()=>{const Gr=Ne.get().getOr("node"),Io=PR(Gr)?1:0;return Gb(o,H,Gr,Io)},st=()=>!o.removed&&!(K()&&_.isContextMenuOpen()),ht=Gr=>ln(Xn(Gr,ve.get(),Jt),!0),At=()=>{if(st()){const Gr=Je(),Io=ln(Ne.get(),"node")?vV(o,ve.get()):G3(o);return Gr.height<=0||!gV(Io,Gr,.01)}else return!0},qt=()=>{ve.clear(),Ae.clear(),Ne.clear(),ri.hide(Ue)},Dn=()=>{if(ri.isOpen(Ue)){const Gr=Ue.element;Zo(Gr,"display"),At()?Po(Gr,"display","none"):(Ae.set(0),ri.reposition(Ue))}},mn=Gr=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[Gr],behaviours:pr([yo.config({mode:"acyclic"}),Jo("pop-dialog-wrap-events",[Ca(Io=>{o.shortcuts.add("ctrl+F9","focus statusbar",()=>yo.focusIn(Io))}),Sh(Io=>{o.shortcuts.remove("ctrl+F9")})])])}),on=Ya(()=>ER(c,Gr=>{const Io=mr([Gr]);vo(Ue,wV,{forwardContents:mn(Io)})})),kn=(Gr,Io)=>eP(o,{buttons:Gr,toolbar:Io.items,allowToolbarGroups:!1},S.backstage,L.some(["form:"])),Zn=(Gr,Io)=>nte.buildInitGroups(Gr,Io),mr=Gr=>{const{buttons:Io}=o.ui.registry.getAll(),_o=on(),na={...Io,..._o.formNavigators},wo=o2(o)===Qf.scrolling?Qf.scrolling:Qf.default,Ns=Ie(ne(Gr,Pr=>Pr.type==="contexttoolbar"?kn(na,Pr):Zn(Pr,H.providers)));return Z4({type:wo,uid:Kr("context-toolbar"),initGroups:Ns,onEscape:L.none,cyclicKeying:!0,providers:H.providers})},Gn=(Gr,Io)=>{const _o=Gr==="node"?H.anchors.node(Io):H.anchors.cursor(),na=ite(o,Gr,K(),{lastElement:ve.get,isReposition:()=>ln(Ae.get(),0),getMode:()=>ac.getMode(g)});return Ta(_o,na)},Or=(Gr,Io)=>{if(is.cancel(),!st())return;const _o=mr(Gr),na=Gr[0].position,wo=Gn(na,Io);Ne.set(na),Ae.set(1);const Ns=Ue.element;Zo(Ns,"display"),ht(Io)||(Xa(Ns,aP),ac.reset(g,Ue)),ri.showWithinBounds(Ue,mn(_o),{anchor:wo,transition:{classes:[aP],mode:"placement"}},()=>L.some(Je())),Io.fold(ve.clear,ve.set),At()&&Po(Ns,"display","none")};let Mr=!1;const is=G6(()=>{if(!(!o.hasFocus()||o.removed||Mr))if(Ji(Ue.element,aP))is.throttle();else{const Gr=on();SV(Gr,o).fold(qt,Io=>{Or(Io.toolbars,L.some(Io.elem))})}},17);o.on("init",()=>{o.on("remove",qt),o.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",Dn),o.on("click keyup focus SetContent",is.throttle),o.on(CR,qt),o.on(Xee,Gr=>{const Io=on();Bt(Io.lookupTable,Gr.toolbarKey).each(_o=>{Or([_o],it(Gr.target!==o,Gr.target)),ri.getContent(Ue).each(yo.focusIn)})}),o.on("focusout",Gr=>{_b.setEditorTimeout(o,()=>{ad(g.element).isNone()&&ad(Ue.element).isNone()&&qt()},0)}),o.on("SwitchMode",()=>{o.mode.isReadOnly()&&qt()}),o.on("AfterProgressState",Gr=>{Gr.state?qt():o.hasFocus()&&is.throttle()}),o.on("dragstart",()=>{Mr=!0}),o.on("dragend drop",()=>{Mr=!1}),o.on("NodeChange",Gr=>{ad(Ue.element).fold(is.throttle,M)})})},ute=o=>{pe([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],g=>{o.ui.registry.addToggleButton(g.name,{tooltip:g.text,icon:g.icon,onAction:ff(o,g.cmd),onSetup:w5(o,g.name)})}),o.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:gu(o),onAction:ff(o,"JustifyNone")})},TV=(o,c)=>{const g=()=>{const S=c.getOptions(o),_=c.getCurrent(o).map(c.hash),H=gs();return ne(S,K=>({type:"togglemenuitem",text:c.display(K),onSetup:ve=>{const Ae=Ue=>{Ue&&(H.on(Je=>Je.setActive(!1)),H.set(ve)),ve.setActive(Ue)};Ae(ln(_,c.hash(K)));const Ne=c.watcher(o,K,Ae);return()=>{H.clear(),Ne()}},onAction:()=>c.setCurrent(o,K)}))};o.ui.registry.addMenuButton(c.name,{tooltip:c.text,icon:c.icon,fetch:S=>S(g()),onSetup:c.onToolbarSetup}),o.ui.registry.addNestedMenuItem(c.name,{type:"nestedmenuitem",text:c.text,getSubmenuItems:g,onSetup:c.onMenuSetup})},fte=o=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:AL,hash:c=>fee(c,["fixed","relative","empty"]).getOr(c),display:z,watcher:(c,g,S)=>c.formatter.formatChanged("lineheight",S,!1,{value:g}).unbind,getCurrent:c=>L.from(c.queryCommandValue("LineHeight")),setCurrent:(c,g)=>c.execCommand("LineHeight",!1,g),onToolbarSetup:gu(o),onMenuSetup:gu(o)}),dte=o=>L.from(vL(o)).map(g=>({name:"language",text:"Language",icon:"language",getOptions:F(g),hash:S=>x(S.customCode)?S.code:`${S.code}/${S.customCode}`,display:S=>S.title,watcher:(S,_,H)=>{var K;return S.formatter.formatChanged("lang",H,!1,{value:_.code,customValue:(K=_.customCode)!==null&&K!==void 0?K:null}).unbind},getCurrent:S=>{const _=zt.fromDom(S.selection.getNode());return tn(_,H=>L.some(H).filter(St).bind(K=>Ri(K,"lang").map(Ae=>{const Ne=Ri(K,"data-mce-lang").getOrUndefined();return{code:Ae,customCode:Ne,title:""}})))},setCurrent:(S,_)=>S.execCommand("Lang",!1,_),onToolbarSetup:S=>{const _=Em();return S.setActive(o.formatter.match("lang",{},void 0,!0)),_.set(o.formatter.formatChanged("lang",S.setActive,!0)),r3(_.clear,gu(o)(S))},onMenuSetup:gu(o)})),CV=o=>{TV(o,fte(o)),dte(o).each(c=>TV(o,c))},kV=(o,c)=>{ree(o,c),lee(o,c),oV(o,c),see(o,c),See(o,c)},hte=o=>Vh(o,"NodeChange",c=>{c.setEnabled(o.queryCommandState("outdent")&&o.selection.isEditable())}),mte=o=>{o.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:hte(o),onAction:ff(o,"outdent")}),o.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:gu(o),onAction:ff(o,"indent")})},AV=o=>{mte(o)},PV=(o,c)=>g=>{g.setActive(c.get());const S=_=>{c.set(_.state),g.setActive(_.state)};return o.on("PastePlainTextToggle",S),r3(()=>o.off("PastePlainTextToggle",S),gu(o)(g))},gte=o=>{const c=X(e5(o)),g=()=>o.execCommand("mceTogglePlainTextPaste");o.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:g,onSetup:PV(o,c)}),o.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:g,onSetup:PV(o,c)})},$R=(o,c)=>()=>{o.execCommand("mceToggleFormat",!1,c)},pte=o=>{up.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(c,g)=>{o.ui.registry.addToggleButton(c.name,{tooltip:c.text,icon:c.icon,onSetup:w5(o,c.name),onAction:$R(o,c.name)})});for(let c=1;c<=6;c++){const g="h"+c;o.ui.registry.addToggleButton(g,{text:g.toUpperCase(),tooltip:"Heading "+c,onSetup:w5(o,g),onAction:$R(o,g)})}},vte=o=>{up.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print"}],c=>{o.ui.registry.addButton(c.name,{tooltip:c.text,icon:c.icon,onAction:ff(o,c.action)})}),up.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],c=>{o.ui.registry.addButton(c.name,{tooltip:c.text,icon:c.icon,onSetup:gu(o),onAction:ff(o,c.action)})})},LR=o=>{up.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],c=>{o.ui.registry.addToggleButton(c.name,{tooltip:c.text,icon:c.icon,onAction:ff(o,c.action),onSetup:w5(o,c.name)})})},yte=o=>{pte(o),vte(o),LR(o)},bte=o=>{up.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],c=>{o.ui.registry.addMenuItem(c.name,{text:c.text,icon:c.icon,shortcut:c.shortcut,onAction:ff(o,c.action)})}),up.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],c=>{o.ui.registry.addMenuItem(c.name,{text:c.text,icon:c.icon,shortcut:c.shortcut,onSetup:gu(o),onAction:ff(o,c.action)})}),o.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:gu(o),onAction:$R(o,"code")})},IR=o=>{yte(o),bte(o)},j3=(o,c)=>Vh(o,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",g=>{g.setEnabled(!o.mode.isReadOnly()&&o.undoManager[c]())}),MV=o=>{o.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:j3(o,"hasUndo"),onAction:ff(o,"undo")}),o.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:j3(o,"hasRedo"),onAction:ff(o,"redo")})},Ote=o=>{o.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:j3(o,"hasUndo"),onAction:ff(o,"undo")}),o.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:j3(o,"hasRedo"),onAction:ff(o,"redo")})},xte=o=>{MV(o),Ote(o)},Ste=o=>Vh(o,"VisualAid",c=>{c.setActive(o.hasVisual)}),wte=o=>{o.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:Ste(o),onAction:ff(o,"mceToggleVisualAid")})},Tte=o=>{o.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:ff(o,"mceToggleVisualAid")})},NR=o=>{Tte(o),wte(o)},Cte=(o,c)=>{ute(o),IR(o),kV(o,c),xte(o),a6(o),NR(o),AV(o),CV(o),gte(o)},EV=o=>m(o)?o.split(/[ ,]/):o,_V=o=>c=>c.options.get(o),kte=o=>{const c=o.options.register;c("contextmenu_avoid_overlap",{processor:"string",default:""}),c("contextmenu_never_use_native",{processor:"boolean",default:!1}),c("contextmenu",{processor:g=>g===!1?{value:[],valid:!0}:m(g)||R(g,m)?{value:EV(g),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})},iP=_V("contextmenu_never_use_native"),Ate=_V("contextmenu_avoid_overlap"),RV=o=>DV(o).length===0,DV=o=>{const c=o.ui.registry.getAll().contextMenus,g=o.options.get("contextmenu");return o.options.isSet("contextmenu")?g:xe(g,S=>vn(c,S))},q3=(o,c)=>({type:"makeshift",x:o,y:c}),BR=(o,c,g)=>q3(o.x+c,o.y+g),$V=o=>o.type==="longpress"||o.type.indexOf("touch")===0,Pte=o=>{if($V(o)){const c=o.touches[0];return q3(c.pageX,c.pageY)}else return q3(o.pageX,o.pageY)},Mte=o=>{if($V(o)){const c=o.touches[0];return q3(c.clientX,c.clientY)}else return q3(o.clientX,o.clientY)},Ete=(o,c)=>{const g=$b.DOM.getPos(o);return BR(c,g.x,g.y)},_te=(o,c)=>c.type==="contextmenu"||c.type==="longpress"?o.inline?Pte(c):Ete(o.getContentAreaContainer(),Mte(c)):QR(o),QR=o=>({type:"selection",root:zt.fromDom(o.selection.getNode())}),Rte=o=>({type:"node",node:L.some(zt.fromDom(o.selection.getNode())),root:zt.fromDom(o.getBody())}),LV=(o,c,g)=>{switch(g){case"node":return Rte(o);case"point":return _te(o,c);case"selection":return QR(o)}},Dte=(o,c,g,S,_,H)=>{const K=g(),ve=LV(o,c,H);M2(K,Hm.CLOSE_ON_EXECUTE,S,{isHorizontalMenu:!1,search:L.none()}).map(Ae=>{c.preventDefault(),ri.showMenuAt(_,{anchor:ve},{menu:{markers:Sv("normal")},data:Ae})})},$te={onLtr:()=>[fl,ul,Gl,Yc,sc,Mc,Yh,D2,D3,R3,Ub,_3],onRtl:()=>[fl,Gl,ul,sc,Yc,Mc,Yh,D2,Ub,_3,D3,R3]},Lte=12,Ite={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},Nte=(o,c)=>{const g=o.selection;if(g.isCollapsed()||c.touches.length<1)return!1;{const S=c.touches[0],_=g.getRng();return Xw(o.getWin(),_l.domRange(_)).exists(K=>K.left<=S.clientX&&K.right>=S.clientX&&K.top<=S.clientY&&K.bottom>=S.clientY)}},Bte=o=>{const c=o.selection.getRng(),g=()=>{_b.setEditorTimeout(o,()=>{o.selection.setRng(c)},10),H()};o.once("touchend",g);const S=K=>{K.preventDefault(),K.stopImmediatePropagation()};o.on("mousedown",S,!0);const _=()=>H();o.once("longpresscancel",_);const H=()=>{o.off("touchend",g),o.off("longpresscancel",_),o.off("mousedown",S)}},IV=(o,c,g)=>{const S=LV(o,c,g);return{bubble:Eh(0,g==="point"?Lte:0,Ite),layouts:$te,overrides:{maxWidthFunction:K7(),maxHeightFunction:R0()},...S}},Qte=(o,c,g,S,_,H,K)=>{const ve=IV(o,c,H);M2(g,Hm.CLOSE_ON_EXECUTE,S,{isHorizontalMenu:!0,search:L.none()}).map(Ae=>{c.preventDefault();const Ne=K?mu.HighlightMenuAndItem:mu.HighlightNone;ri.showMenuWithinBounds(_,{anchor:ve},{menu:{markers:Sv("normal"),highlightOnOpen:Ne},data:Ae,type:"horizontal"},()=>L.some(Gb(o,S.shared,H==="node"?"node":"selection"))),o.dispatch(CR)})},NV=(o,c,g,S,_,H)=>{const K=jf(),ve=K.os.isiOS(),Ae=K.os.isMacOS(),Ne=K.os.isAndroid(),Ue=K.deviceType.isTouch(),Je=()=>!(Ne||ve||Ae&&Ue),st=()=>{const ht=g();Qte(o,c,ht,S,_,H,Je())};if((Ae||ve)&&H!=="node"){const ht=()=>{Bte(o),st()};Nte(o,c)?ht():(o.once("selectionchange",ht),o.once("touchend",()=>o.off("selectionchange",ht)))}else st()},BV=o=>m(o)?o==="|":o.type==="separator",FR={type:"separator"},QV=o=>{const c=g=>({text:g.text,icon:g.icon,enabled:g.enabled,shortcut:g.shortcut});if(m(o))return o;switch(o.type){case"separator":return FR;case"submenu":return{type:"nestedmenuitem",...c(o),getSubmenuItems:()=>{const S=o.getSubmenuItems();return m(S)?S:ne(S,QV)}};default:const g=o;return{type:"menuitem",...c(g),onAction:I(g.onAction)}}},k1=(o,c)=>{if(c.length===0)return o;const S=Qe(o).filter(_=>!BV(_)).fold(()=>[],_=>[FR]);return o.concat(S).concat(c).concat([FR])},FV=(o,c,g)=>{const S=ke(c,(_,H)=>Bt(o,H.toLowerCase()).map(K=>{const ve=K.update(g);if(m(ve)&&dn(Pt(ve)))return k1(_,ve.split(" "));if(v(ve)&&ve.length>0){const Ae=ne(ve,QV);return k1(_,Ae)}else return _}).getOrThunk(()=>_.concat([H])),[]);return S.length>0&&BV(S[S.length-1])&&S.pop(),S},Fte=(o,c)=>c.ctrlKey&&!iP(o),Vte=o=>o.type==="longpress"||vn(o,"touches"),VV=(o,c)=>!Vte(c)&&(c.button!==2||c.target===o.getBody()&&c.pointerType===""),zV=(o,c)=>VV(o,c)?o.selection.getStart(!0):c.target,ZV=(o,c)=>{const g=Ate(o),S=VV(o,c)?"selection":"point";if(dn(g)){const _=zV(o,c);return i3(zt.fromDom(_),g)?"node":S}else return S},zte=(o,c,g)=>{const _=jf().deviceType.isTouch,H=oc(ri.sketch({dom:{tag:"div"},lazySink:c,onEscape:()=>o.focus(),onShow:()=>g.setContextMenuState(!0),onHide:()=>g.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:pr([Jo("dismissContextMenu",[qn(Ag(),(Ae,Ne)=>{As.close(Ae),o.focus()})])])})),K=()=>ri.hide(H),ve=Ae=>{if(iP(o)&&Ae.preventDefault(),Fte(o,Ae)||RV(o))return;const Ne=ZV(o,Ae),Ue=()=>{const st=zV(o,Ae),ht=o.ui.registry.getAll(),At=DV(o);return FV(ht.contextMenus,At,st)};(_()?NV:Dte)(o,Ae,Ue,g,H,Ne)};o.on("init",()=>{const Ae="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(_()?"":" ResizeWindow");o.on(Ae,K),o.on("longpress contextmenu",ve)})},VR=we.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),lP=o=>c=>c.translate(-o.left,-o.top),cP=o=>c=>c.translate(o.left,o.top),Mv=o=>(c,g)=>ke(o,(S,_)=>_(S),Is(c,g)),uP=(o,c,g)=>o.fold(Mv([cP(g),lP(c)]),Mv([lP(c)]),Mv([])),U2=(o,c,g)=>o.fold(Mv([cP(g)]),Mv([]),Mv([cP(c)])),HV=(o,c,g)=>o.fold(Mv([]),Mv([lP(g)]),Mv([cP(c),lP(g)])),Zte=(o,c,g,S,_,H)=>{const K=U2(o,_,H),ve=U2(c,_,H);return Math.abs(K.left-ve.left)<=g&&Math.abs(K.top-ve.top)<=S},Hte=(o,c,g,S,_,H)=>{const K=U2(o,_,H),ve=U2(c,_,H),Ae=Math.abs(K.left-ve.left),Ne=Math.abs(K.top-ve.top);return Is(Ae,Ne)},zR=(o,c,g)=>{const S=o.fold((_,H)=>({position:L.some("absolute"),left:L.some(_+"px"),top:L.some(H+"px")}),(_,H)=>({position:L.some("absolute"),left:L.some(_-g.left+"px"),top:L.some(H-g.top+"px")}),(_,H)=>({position:L.some("fixed"),left:L.some(_+"px"),top:L.some(H+"px")}));return{right:L.none(),bottom:L.none(),...S}},UV=(o,c,g)=>o.fold((S,_)=>A1(S+c,_+g),(S,_)=>P1(S+c,_+g),(S,_)=>qb(S+c,_+g)),ZR=(o,c,g,S)=>{const _=(H,K)=>(ve,Ae)=>{const Ne=H(c,g,S);return K(ve.getOr(Ne.left),Ae.getOr(Ne.top))};return o.fold(_(HV,A1),_(U2,P1),_(uP,qb))},A1=VR.offset,P1=VR.absolute,qb=VR.fixed,fP=(o,c)=>{const g=oa(o,c);return x(g)?NaN:parseInt(g,10)},Ute=(o,c)=>{const g=o.element,S=fP(g,c.leftAttr),_=fP(g,c.topAttr);return isNaN(S)||isNaN(_)?L.none():L.some(Is(S,_))},Wte=(o,c,g)=>{const S=o.element;Dr(S,c.leftAttr,g.left+"px"),Dr(S,c.topAttr,g.top+"px")},Yte=(o,c)=>{const g=o.element;sa(g,c.leftAttr),sa(g,c.topAttr)},Xte=(o,c,g,S)=>Ute(o,c).fold(()=>g,_=>qb(_.left+S.left,_.top+S.top)),Gte=(o,c,g,S,_,H)=>{const K=Xte(o,c,g,S),ve=c.mustSnap?qte(o,c,K,_,H):Kte(o,c,K,_,H),Ae=uP(K,_,H);return Wte(o,c,Ae),ve.fold(()=>({coord:qb(Ae.left,Ae.top),extra:L.none()}),Ne=>({coord:Ne.output,extra:Ne.extra}))},jte=(o,c)=>{Yte(o,c)},WV=(o,c,g,S)=>Xe(o,_=>{const H=_.sensor;return Zte(c,H,_.range.left,_.range.top,g,S)?L.some({output:ZR(_.output,c,g,S),extra:_.extra}):L.none()}),qte=(o,c,g,S,_)=>{const H=c.getSnapPoints(o);return WV(H,g,S,_).orThunk(()=>ke(H,(Ae,Ne)=>{const Ue=Ne.sensor,Je=Hte(g,Ue,Ne.range.left,Ne.range.top,S,_);return Ae.deltas.fold(()=>({deltas:L.some(Je),snap:L.some(Ne)}),st=>{const ht=(Je.left+Je.top)/2,At=(st.left+st.top)/2;return ht<=At?{deltas:L.some(Je),snap:L.some(Ne)}:Ae})},{deltas:L.none(),snap:L.none()}).snap.map(Ae=>({output:ZR(Ae.output,g,S,_),extra:Ae.extra})))},Kte=(o,c,g,S,_)=>{const H=c.getSnapPoints(o);return WV(H,g,S,_)},Jte=(o,c,g)=>({coord:ZR(o.output,o.output,c,g),extra:o.extra});var ene=Object.freeze({__proto__:null,snapTo:(o,c,g,S)=>{const _=c.getTarget(o.element);if(c.repositionTarget){const H=Tn(o.element),K=Pl(H),ve=ZQ(_),Ae=Jte(S,K,ve),Ne=zR(Ae.coord,K,ve);fr(_,Ne)}}});const HR="data-initial-z-index",tne=o=>{Fn(o.element).filter(St).each(c=>{Ri(c,HR).fold(()=>Zo(c,"z-index"),g=>Po(c,"z-index",g)),sa(c,HR)})},nne=o=>{Fn(o.element).filter(St).each(c=>{za(c,"z-index").each(g=>{Dr(c,HR,g)}),Po(c,"z-index",Qa(o.element,"z-index"))})},YV=(o,c)=>{o.getSystem().addToGui(c),nne(c)},rne=o=>{tne(o),o.getSystem().removeFromGui(o)},K3=(o,c,g)=>o.getSystem().build(Um.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[c]},events:g}));var one=wc("snaps",[er("getSnapPoints"),Rs("onSensor"),er("leftAttr"),er("topAttr"),Mn("lazyViewport",Vl),Mn("mustSnap",!1)]);const UR=[Mn("useFixed",Y),er("blockerClass"),Mn("getTarget",z),Mn("onDrag",M),Mn("repositionTarget",!0),Mn("onDrop",M),Di("getBounds",Vl),one],sne=o=>Un(za(o,"left"),za(o,"top"),za(o,"position"),(c,g,S)=>(S==="fixed"?qb:A1)(parseInt(c,10),parseInt(g,10))).getOrThunk(()=>{const c=Cl(o);return P1(c.left,c.top)}),ane=(o,c,g,S,_)=>{const H=_.bounds,K=U2(c,g,S),ve=rf(K.left,H.x,H.x+H.width-_.width),Ae=rf(K.top,H.y,H.y+H.height-_.height),Ne=P1(ve,Ae);return c.fold(()=>{const Ue=HV(Ne,g,S);return A1(Ue.left,Ue.top)},F(Ne),()=>{const Ue=uP(Ne,g,S);return qb(Ue.left,Ue.top)})},ine=(o,c,g,S,_,H,K)=>{const ve=c.fold(()=>{const Ae=UV(g,H.left,H.top),Ne=uP(Ae,S,_);return qb(Ne.left,Ne.top)},Ae=>{const Ne=Gte(o,Ae,g,H,S,_);return Ne.extra.each(Ue=>{Ae.onSensor(o,Ue)}),Ne.coord});return ane(o,ve,S,_,K)},lne=(o,c,g,S)=>{const _=c.getTarget(o.element);if(c.repositionTarget){const H=Tn(o.element),K=Pl(H),ve=ZQ(_),Ae=sne(_),Ne=ine(o,c.snaps,Ae,K,ve,S,g),Ue=zR(Ne,K,ve);fr(_,Ue)}c.onDrag(o,_,S)},WR=(o,c)=>({bounds:o.getBounds(),height:Vu(c.element),width:Tf(c.element)}),YR=(o,c,g,S,_)=>{const H=g.update(S,_),K=g.getStartData().getOrThunk(()=>WR(c,o));H.each(ve=>{lne(o,c,K,ve)})},XV=(o,c,g,S)=>{c.each(rne),g.snaps.each(H=>{jte(o,H)});const _=g.getTarget(o.element);S.reset(),g.onDrop(o,_)},XR=o=>(c,g)=>{const S=_=>{g.setStartData(WR(c,_))};return Ea([qn(Oh(),_=>{g.getStartData().each(()=>S(_))}),...o(c,g,S)])},cne=o=>Ea([qn(go(),o.forceDrop),qn(ba(),o.drop),qn(js(),(c,g)=>{o.move(g.event)}),qn(ti(),o.delayDrop)]);var jV=Object.freeze({__proto__:null,getData:o=>L.from(Is(o.x,o.y)),getDelta:(o,c)=>Is(c.left-o.left,c.top-o.top)});const qV=(o,c,g)=>[qn(go(),(S,_)=>{if(_.event.raw.button!==0)return;_.stop();const K=()=>XV(S,L.some(Ne),o,c),ve=mN(K,200),Ae={drop:K,delayDrop:ve.schedule,forceDrop:K,move:Je=>{ve.cancel(),YR(S,o,c,jV,Je)}},Ne=K3(S,o.blockerClass,cne(Ae));(()=>{g(S),YV(S,Ne)})()})],une=[...UR,ha("dragger",{handlers:XR(qV)})],fne=o=>Ea([qn(no(),o.forceDrop),qn(ts(),o.drop),qn(xo(),o.drop),qn(fo(),(c,g)=>{o.move(g.event)})]),dne=o=>{const c=o[0];return L.some(Is(c.clientX,c.clientY))};var KV=Object.freeze({__proto__:null,getData:o=>{const g=o.raw.touches;return g.length===1?dne(g):L.none()},getDelta:(o,c)=>Is(c.left-o.left,c.top-o.top)});const JV=(o,c,g)=>{const S=gs(),_=H=>{XV(H,S.get(),o,c),S.clear()};return[qn(no(),(H,K)=>{K.stop();const ve=()=>_(H),Ae={drop:ve,delayDrop:M,forceDrop:ve,move:Je=>{YR(H,o,c,KV,Je)}},Ne=K3(H,o.blockerClass,fne(Ae));S.set(Ne),(()=>{g(H),YV(H,Ne)})()}),qn(fo(),(H,K)=>{K.stop(),YR(H,o,c,KV,K.event)}),qn(ts(),(H,K)=>{K.stop(),_(H)}),qn(xo(),_)]},hne=[...UR,ha("dragger",{handlers:XR(JV)})],mne=(o,c,g)=>[...qV(o,c,g),...JV(o,c,g)],gne=[...UR,ha("dragger",{handlers:XR(mne)})];var pne=Object.freeze({__proto__:null,mouse:une,touch:hne,mouseOrTouch:gne}),vne=Object.freeze({__proto__:null,init:()=>{let o=L.none(),c=L.none();const g=()=>{o=L.none(),c=L.none()},S=(Ae,Ne)=>{const Ue=o.map(Je=>Ae.getDelta(Je,Ne));return o=L.some(Ne),Ue},_=(Ae,Ne)=>Ae.getData(Ne).bind(Ue=>S(Ae,Ue)),H=Ae=>{c=L.some(Ae)},K=()=>c,ve=F({});return Cu({readState:ve,reset:g,update:_,getStartData:K,setStartData:H})}});const M1=px({branchKey:"mode",branches:pne,name:"dragging",active:{events:(o,c)=>o.dragger.handlers(o,c)},extra:{snap:o=>({sensor:o.sensor,range:o.range,output:o.output,extra:L.from(o.extra)})},state:vne,apis:ene}),GR=40,dP=GR/2,ez=(o,c,g,S,_,H)=>o.fold(()=>M1.snap({sensor:P1(g-dP,S-dP),range:Is(_,H),output:P1(L.some(g),L.some(S)),extra:{td:c}}),K=>{const ve=g-dP,Ae=S-dP,Ne=GR,Ue=GR,Je=K.element.dom.getBoundingClientRect();return M1.snap({sensor:P1(ve,Ae),range:Is(Ne,Ue),output:P1(L.some(g-Je.width/2),L.some(S-Je.height/2)),extra:{td:c}})}),tz=(o,c,g)=>{const S=(_,H)=>_.exists(K=>Jt(K,H));return{getSnapPoints:o,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(_,H)=>{const K=H.td;S(c.get(),K)||(c.set(K),g(K))},mustSnap:!0}},nz=o=>ia(Dl.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:pr([M1.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:o}),d3.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),yne=(o,c)=>{const g=X([]),S=X([]),_=X(!1),H=gs(),K=gs(),ve=Or=>{const Mr=wu(Or);return ez(ht.getOpt(c),Or,Mr.x,Mr.y,Mr.width,Mr.height)},Ae=()=>ne(g.get(),Or=>ve(Or)),Ne=Or=>{const Mr=wu(Or);return ez(At.getOpt(c),Or,Mr.right,Mr.bottom,Mr.width,Mr.height)},Ue=()=>ne(S.get(),Or=>Ne(Or)),Je=tz(Ae,H,Or=>{K.get().each(Mr=>{o.dispatch("TableSelectorChange",{start:Or,finish:Mr})})}),st=tz(Ue,K,Or=>{H.get().each(Mr=>{o.dispatch("TableSelectorChange",{start:Mr,finish:Or})})}),ht=nz(Je),At=nz(st),qt=oc(ht.asSpec()),Dn=oc(At.asSpec()),mn=(Or,Mr,is,Gr)=>{const Io=Mr.dom.getBoundingClientRect();Zo(Or.element,"display");const _o=Jn(zt.fromDom(o.getBody())).dom.innerHeight,na=is(Io),wo=Gr(Io,_o);(na||wo)&&Po(Or.element,"display","none")},on=(Or,Mr,is,Gr)=>{const Io=is(Mr);M1.snapTo(Or,Io),mn(Or,Mr,wo=>wo[Gr]<0,(wo,Ns)=>wo[Gr]>Ns)},kn=Or=>on(qt,Or,ve,"top"),Zn=()=>H.get().each(kn),mr=Or=>on(Dn,Or,Ne,"bottom"),Gn=()=>K.get().each(mr);jf().deviceType.isTouch()&&(o.on("TableSelectionChange",Or=>{_.get()||(Hg(c,qt),Hg(c,Dn),_.set(!0)),H.set(Or.start),K.set(Or.finish),Or.otherCells.each(Mr=>{g.set(Mr.upOrLeftCells),S.set(Mr.downOrRightCells),kn(Or.start),mr(Or.finish)})}),o.on("ResizeEditor ResizeWindow ScrollContent",()=>{Zn(),Gn()}),o.on("TableSelectionClear",()=>{_.get()&&(Rh(qt),Rh(Dn),_.set(!1)),H.clear(),K.clear()}))};var bne=` + + +`;const One=o=>o.nodeName==="BR"||!!o.getAttribute("data-mce-bogus")||o.getAttribute("data-mce-type")==="bookmark",rz=(o,c,g)=>{var S;const _=(S=c.delimiter)!==null&&S!==void 0?S:"›",H=(Ne,Ue,Je)=>Dl.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":Je,"aria-level":Je+1}},components:[yi(Ne)],action:st=>{o.focus(),o.selection.select(Ue),o.nodeChanged()},buttonBehaviours:pr([tl.button(g.isDisabled),gl()])}),K=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[yi(` ${_} `)]}),ve=Ne=>ke(Ne,(Ue,Je,st)=>{const ht=H(Je.name,Je.element,st);return st===0?Ue.concat([ht]):Ue.concat([K(),ht])},[]),Ae=Ne=>{const Ue=[];let Je=Ne.length;for(;Je-- >0;){const st=Ne[Je];if(st.nodeType===1&&!One(st)){const ht=QI(o,st);if(ht.isDefaultPrevented()||Ue.push({name:ht.name,element:st}),ht.isPropagationStopped())break}}return Ue};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:pr([yo.config({mode:"flow",selector:"div[role=button]"}),Co.config({disabled:g.isDisabled}),gl(),Ga.config({}),Uo.config({}),Jo("elementPathEvents",[Ca((Ne,Ue)=>{o.shortcuts.add("alt+F11","focus statusbar elementpath",()=>yo.focusIn(Ne)),o.on("NodeChange",Je=>{const st=Ae(Je.parents),ht=st.length>0?ve(st):[];Uo.set(Ne,ht)})})])]),components:[]}};var Ev;(function(o){o[o.None=0]="None",o[o.Both=1]="Both",o[o.Vertical=2]="Vertical"})(Ev||(Ev={}));const Kb=(o,c,g,S,_)=>{const H={height:X3(S+c.top,r2(o),G_(o))};return g===Ev.Both&&(H.width=X3(_+c.left,X_(o),jA(o))),H},oz=(o,c,g)=>{const S=zt.fromDom(o.getContainer()),_=Kb(o,c,g,Za(S),Si(S));Ye(_,(H,K)=>{T(H)&&Po(S,K,Z2(H))}),NI(o)},jR=o=>{const c=TL(o);return c===!1?Ev.None:c==="both"?Ev.Both:Ev.Vertical},Jb=(o,c,g,S)=>{const H=Is(g*20,S*20);return oz(o,H,c),L.some(!0)},xne=(o,c)=>{const g=jR(o);if(g===Ev.None)return L.none();const S=g===Ev.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return L.some(Bh("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:c.translate("Resize"),"aria-label":c.translate(S)},behaviours:[M1.config({mode:"mouse",repositionTarget:!1,onDrag:(_,H,K)=>oz(o,K,g),blockerClass:"tox-blocker"}),yo.config({mode:"special",onLeft:()=>Jb(o,g,-1,0),onRight:()=>Jb(o,g,1,0),onUp:()=>Jb(o,g,0,-1),onDown:()=>Jb(o,g,0,1)}),Ga.config({}),Mo.config({})]},c.icons))},Sne=(o,c)=>{const g=(S,_,H)=>Uo.set(S,[yi(c.translate(["{0} "+H,_[H]]))]);return Dl.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:pr([tl.button(c.isDisabled),gl(),Ga.config({}),Uo.config({}),Fr.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),Jo("wordcount-events",[rd(S=>{const _=Fr.getValue(S),H=_.mode==="words"?"characters":"words";Fr.setValue(S,{mode:H,count:_.count}),g(S,_.count,H)}),Ca(S=>{o.on("wordCountUpdate",_=>{const{mode:H}=Fr.getValue(S);Fr.setValue(S,{mode:H,count:_.wordCount}),g(S,_.wordCount,H)})})])]),eventOrder:{[Ii()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},wne=(o,c)=>{const g=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=editor_referral&utm_medium=poweredby&utm_source=tinymce&utm_content=v6",rel:"noopener",target:"_blank","aria-label":dd.translate(["Powered by {0}","Tiny"])},innerHtml:bne.trim()},behaviours:pr([Mo.config({})])}]}),S=()=>{const ve=b5("Alt+0"),Ae="Press {0} for help";return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[yi(dd.translate([Ae,ve]))]}},_=()=>{const ve=[];return o.hasPlugin("wordcount")&&ve.push(Sne(o,c)),n8(o)&&ve.push(g()),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:ve}},H=()=>{const ve=[],Ae=n5(o),Ne=s2(o),Ue=n8(o)||o.hasPlugin("wordcount"),Je=()=>{const st="tox-statusbar__text-container--flex-start",ht="tox-statusbar__text-container--flex-end",At="tox-statusbar__text-container--space-around";if(Ae){const qt="tox-statusbar__text-container-3-cols";return!Ue&&!Ne?[qt,At]:Ue&&!Ne?[qt,ht]:[qt,st]}return[Ue&&!Ne?ht:st]};return Ne&&ve.push(rz(o,{},c)),Ae&&ve.push(S()),Ue&&ve.push(_()),ve.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...Je()]},components:ve}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const ve=H(),Ae=xne(o,c);return ve.concat(Ae.toArray())})()}},sz=(o,c)=>c.get().getOrDie(`UI for ${o} has not been rendered`),Tne=(o,c)=>{const g=o.inline,S=g?Wee:Vee,_=UT(o)?rF:MK,H=Yee(),K=gs(),ve=gs(),Ae=gs(),st=jf().deviceType.isTouch()?["tox-platform-touch"]:[],ht=a8(o),At=o2(o),qt=ia({dom:{tag:"div",classes:["tox-anchorbar"]}}),Dn=ia({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),mn=()=>H.mainUi.get().map(To=>To.outerContainer).bind($a.getHeader),on=()=>jo.fromOption(H.dialogUi.get().map(To=>To.sink),"UI has not been rendered"),kn=()=>jo.fromOption(H.popupUi.get().map(To=>To.sink),"(popup) UI has not been rendered"),Zn=H.lazyGetInOuterOrDie("anchor bar",qt.getOpt),mr=H.lazyGetInOuterOrDie("bottom anchor bar",Dn.getOpt),Gn=H.lazyGetInOuterOrDie("toolbar",$a.getToolbar),Or=H.lazyGetInOuterOrDie("throbber",$a.getThrobber),Mr=xK({popup:kn,dialog:on},o,Zn,mr),is=()=>{const To={attributes:{[D0]:ht?Lf.BottomToTop:Lf.TopToBottom}},Yo=$a.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:Mr.popup,onEscape:()=>{o.focus()}}),Ma=$a.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:Mr.popup.shared.getSink,providers:Mr.popup.shared.providers,onEscape:()=>{o.focus()},onToolbarToggled:sC=>{hX(o,sC)},type:At,lazyToolbar:Gn,lazyHeader:()=>mn().getOrDie("Could not find header element"),...To}),Fs=$a.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:Mr.popup.shared.providers,onEscape:()=>{o.focus()},type:At}),Kl=HT(o),vf=o5(o),ih=a2(o),Kh=CL(o),R1=Gr(),iO=Kl||vf||ih,Km=()=>Kl?[Fs]:vf?[Ma]:[],Rv=Kh?[R1,Yo]:[Yo];return $a.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(iO?[]:["tox-editor-header--empty"]),...To},components:Ie([ih?Rv:[],Km(),i2(o)?[]:[qt.asSpec()]]),sticky:UT(o),editor:o,sharedBackstage:Mr.popup.shared})},Gr=()=>$a.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),Io=()=>{const To=$a.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),Yo=$a.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}});return{dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[To,Yo]}},_o=()=>{const To=i8(o),Yo=Jt(ya(),To)&&Qa(To,"display")==="grid",Ma={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(st),attributes:{...dd.isRtl()?{dir:"rtl"}:{}}},behaviours:pr([ac.config({useFixed:()=>_.isDocked(mn)})])},Fs={dom:{styles:{width:document.body.clientWidth+"px"}},events:Ea([qn(Qd(),ih=>{Po(ih.element,"width",document.body.clientWidth+"px")})])},Kl=oc(Ta(Ma,Yo?Fs:{})),vf=L5(Kl);return ve.set(vf),{sink:Kl,mothership:vf}},na=()=>{const To={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(st),attributes:{...dd.isRtl()?{dir:"rtl"}:{}}},behaviours:pr([ac.config({useFixed:()=>_.isDocked(mn),getBounds:()=>c.getPopupSinkBounds()})])},Yo=oc(To),Ma=L5(Yo);return Ae.set(Ma),{sink:Yo,mothership:Ma}},wo=()=>{const To=is(),Yo=Io(),Ma=$a.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:Mr.popup}),Fs=$a.parts.viewWrapper({backstage:Mr.popup}),Kl=wL(o)&&!g?L.some(wne(o,Mr.popup.shared.providers)):L.none(),vf=Ie([ht?[]:[To],g?[]:[Yo],ht?[To]:[]]),ih=$a.parts.editorContainer({components:Ie([vf,g?[]:[Dn.asSpec(),...Kl.toArray()]])}),Kh=l8(o),R1={role:"application",...dd.isRtl()?{dir:"rtl"}:{},...Kh?{"aria-hidden":"true"}:{}},iO=oc($a.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(g?["tox-tinymce-inline"]:[]).concat(ht?["tox-tinymce--toolbar-bottom"]:[]).concat(st),styles:{visibility:"hidden",...Kh?{opacity:"0",border:"0"}:{}},attributes:R1},components:[ih,...g?[]:[Fs],Ma],behaviours:pr([gl(),Co.config({disableClass:"tox-tinymce--disabled"}),yo.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),Km=L5(iO);return K.set(Km),{mothership:Km,outerContainer:iO}},Ns=To=>{const Yo=Z2(dV(o)),Ma=Z2(zee(o));return o.inline||(yl("div","width",Ma)&&Po(To.element,"width",Ma),yl("div","height",Yo)?Po(To.element,"height",Yo):Po(To.element,"height","400px")),Yo},Pr=To=>{o.addShortcut("alt+F9","focus menubar",()=>{$a.focusMenubar(To)}),o.addShortcut("alt+F10","focus toolbar",()=>{$a.focusToolbar(To)}),o.addCommand("ToggleToolbarDrawer",(Yo,Ma)=>{Ma!=null&&Ma.skipFocus?$a.toggleToolbarDrawerWithoutFocusing(To):$a.toggleToolbarDrawer(To)}),o.addQueryStateHandler("ToggleToolbarDrawer",()=>$a.isToolbarDrawerToggled(To))},oo=To=>{const{mainUi:Yo,popupUi:Ma,uiMotherships:Fs}=To;je(yL(o),(eS,kP)=>{o.ui.registry.addGroupToolbarButton(kP,eS)});const{buttons:Kl,menuItems:vf,contextToolbars:ih,sidebars:Kh,views:R1}=o.ui.registry.getAll(),iO=s8(o),Km={menuItems:vf,menus:ML(o),menubar:q_(o),toolbar:iO.getOrThunk(()=>KA(o)),allowToolbarGroups:At===Qf.floating,buttons:Kl,sidebar:Kh,views:R1};Pr(Yo.outerContainer),L2(o,Yo.mothership,Fs),_.setup(o,Mr.popup.shared,mn),Cte(o,Mr.popup),zte(o,Mr.popup.shared.getSink,Mr.popup),aJ(o),L4(o,Or,Mr.popup.shared),cte(o,ih,Ma.sink,{backstage:Mr.popup}),yne(o,Ma.sink);const Rv=o.getElement(),sC=Ns(Yo.outerContainer),oD={targetNode:Rv,height:sC};return S.render(o,To,Km,Mr.popup,oD)},No=To=>(Ae.set(To.mothership),To),Qo=()=>{const To=wo(),Yo=_o(),Ma=Kg(o)?na():No(Yo);H.dialogUi.set(Yo),H.popupUi.set(Ma),H.mainUi.set(To);const Fs={popupUi:Ma,dialogUi:Yo,mainUi:To,uiMotherships:H.getUiMotherships()};return oo(Fs)};return{popups:{backstage:Mr.popup,getMothership:()=>sz("popups",Ae)},dialogs:{backstage:Mr.dialog,getMothership:()=>sz("dialogs",ve)},renderUI:Qo}},eO=(o,c)=>{const g=Ri(o,"id").fold(()=>{const S=Kr("dialog-label");return Dr(c,"id",S),S},z);Dr(o,"aria-labelledby",g)},az=F([er("lazySink"),Ws("dragBlockClass"),Di("getBounds",Vl),Mn("useTabstopAt",ie),Mn("firstTabstop",0),Mn("eventOrder",{}),el("modalBehaviours",[yo]),Eu("onExecute"),fw("onEscape")]),qR={sketch:z},Cne=F([fu({name:"draghandle",overrides:(o,c)=>({behaviours:pr([M1.config({mode:"mouse",getTarget:g=>Pu(g,'[role="dialog"]').getOr(g),blockerClass:o.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: +`+JSON.stringify(c,null,2)).message),getBounds:o.getDragBounds})])})}),ic({schema:[er("dom")],name:"title"}),ic({factory:qR,schema:[er("dom")],name:"close"}),ic({factory:qR,schema:[er("dom")],name:"body"}),fu({factory:qR,schema:[er("dom")],name:"footer"}),cd({factory:{sketch:(o,c)=>({...o,dom:c.dom,components:c.components})},schema:[Mn("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),Mn("components",[])],name:"blocker"})]),kne=(o,c,g,S)=>{const _=gs(),H=ht=>{_.set(ht);const At=o.lazySink(ht).getOrDie(),qt=S.blocker(),Dn=At.getSystem().build({...qt,components:qt.components.concat([nf(ht)]),behaviours:pr([Mo.config({}),Jo("dialog-blocker-events",[xh(Do(),()=>{Xm.isBlocked(ht)?M():yo.focusIn(ht)})])])});Hg(At,Dn),yo.focusIn(ht)},K=ht=>{_.clear(),Fn(ht.element).each(At=>{ht.getSystem().getByDom(At).each(qt=>{Rh(qt)})})},ve=ht=>Nm(ht,o,"body"),Ae=ht=>ka(ht,o,"footer"),Ne=(ht,At)=>{Xm.block(ht,At)},Ue=ht=>{Xm.unblock(ht)},Je=Kr("modal-events"),st={...o.eventOrder,[ef()]:[Je].concat(o.eventOrder["alloy.system.attached"]||[])};return{uid:o.uid,dom:o.dom,components:c,apis:{show:H,hide:K,getBody:ve,getFooter:Ae,setIdle:Ue,setBusy:Ne},eventOrder:st,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Ni(o.modalBehaviours,[Uo.config({}),yo.config({mode:"cyclic",onEnter:o.onExecute,onEscape:o.onEscape,useTabstopAt:o.useTabstopAt,firstTabstop:o.firstTabstop}),Xm.config({getRoot:_.get}),Jo(Je,[Ca(ht=>{eO(ht.element,Nm(ht,o,"title").element)})])])}},Sl=lc({name:"ModalDialog",configFields:az(),partFields:Cne(),factory:kne,apis:{show:(o,c)=>{o.show(c)},hide:(o,c)=>{o.hide(c)},getBody:(o,c)=>o.getBody(c),getFooter:(o,c)=>o.getFooter(c),setBusy:(o,c,g)=>{o.setBusy(c,g)},setIdle:(o,c)=>{o.setIdle(c)}}}),Ane=uo([Gi,T8].concat(Bb)),Pne=_f,KR=[g5("button"),hd,Hc("align","end",["start","end"]),np,jd,Ld("buttonType",["primary","secondary"])],iz=[...KR,wv],J3=[Rf("type",["submit","cancel","custom"]),...iz],eC=[Rf("type",["menu"]),tp,GT,hd,rc("items",Ane),...KR],JR=[...KR,Rf("type",["togglebutton"]),zs("tooltip"),hd,tp,Wi("active",!1)],hP=Os("type",{submit:J3,cancel:J3,custom:J3,menu:eC,togglebutton:JR}),tO=[Gi,wv,Rf("level",["info","warn","error","success"]),C8,Mn("url","")],mP=uo(tO),Mne=o=>[Gi,o],lz=[Gi,wv,jd,g5("button"),hd,GL,Ld("buttonType",["primary","secondary","toolbar"]),np],cz=uo(lz),nO=[Gi,T8],Gm=nO.concat([h5]),Ene=nO.concat([d5,jd]),_ne=uo(Ene),uz=_f,fz=Gm.concat([jL("auto")]),eD=uo(fz),Rne=Dd([f2,wv,C8]),Dne=Gm.concat([nd("storageKey","default")]),$ne=uo(Dne),dz=al,Lne=uo(Gm),Ine=al,tD=nO.concat([nd("tag","textarea"),zs("scriptId"),zs("scriptUrl"),qC("settings",void 0)]),nD=nO.concat([nd("tag","textarea"),qu("init")]),Nne=Ml(o=>da("customeditor.old",ca(nD),o).orThunk(()=>da("customeditor.new",ca(tD),o))),hz=al,Bne=uo(Gm),mz=QO(),Qne=o=>[Gi,Cg("columns"),o],Fne=[Gi,zs("html"),Hc("presets","presentation",["presentation","document"])],rO=uo(Fne),gz=Gm.concat([Wi("border",!1),Wi("sandboxed",!0),Wi("streamContent",!1),Wi("transparent",!0)]),Vne=uo(gz),gP=al,W2=uo(nO.concat([ll("height")])),pP=uo([zs("url"),fi("zoom"),fi("cachedWidth"),fi("cachedHeight")]),pz=Gm.concat([ll("inputMode"),ll("placeholder"),Wi("maximized",!1),jd]),vP=uo(pz),mf=al,yP=o=>[Gi,d5,o,Hc("align","start",["start","center","end"])],vz=[wv,f2],yz=[wv,rc("items",jp("items",()=>bz))],bz=Xr([uo(vz),uo(yz)]),zne=Gm.concat([rc("items",bz),jd]),E1=uo(zne),Pce=al,Zne=Gm.concat([a0("items",[wv,f2]),td("size",1),jd]),Oz=uo(Zne),Y2=al,bP=Gm.concat([Wi("constrain",!0),jd]),xz=uo(bP),Sz=uo([zs("width"),zs("height")]),Hne=nO.concat([d5,td("min",0),td("max",0)]),Une=uo(Hne),Wne=Gp,X2=[Gi,rc("header",al),rc("cells",Gu(al))],Mce=uo(X2),Yne=Gm.concat([ll("placeholder"),Wi("maximized",!1),jd]),Xne=uo(Yne),Ece=al,wz=[Rf("type",["directory","leaf"]),WL,zs("id"),au("menu",Q3)],G2=uo(wz),Gne=wz.concat([rc("children",jp("children",()=>lr("type",{directory:Tz,leaf:G2})))]),Tz=uo(Gne),Cz=lr("type",{directory:Tz,leaf:G2}),jne=[Gi,rc("items",Cz),Jf("onLeafAction"),Jf("onToggleExpand"),Cc("defaultExpandedIds",[],al),ll("defaultSelectedId")],Rce=uo(jne),n=Gm.concat([Hc("filetype","file",["image","media","file"]),jd,ll("picker_text")]),s=uo(n),l=uo([f2,jT]),h=o=>il("items","items",Ks(),Gu(Ml(c=>da(`Checking item of ${o}`,O,c).fold(g=>jo.error(Zl(g)),g=>jo.value(g))))),O=sl(()=>lr("type",{alertbanner:mP,bar:uo(Mne(h("bar"))),button:cz,checkbox:_ne,colorinput:$ne,colorpicker:Lne,dropzone:Bne,grid:uo(Qne(h("grid"))),iframe:Vne,input:vP,listbox:E1,selectbox:Oz,sizeinput:xz,slider:Une,textarea:Xne,urlinput:s,customeditor:Nne,htmlpanel:rO,imagepreview:W2,collection:eD,label:uo(yP(h("label"))),table:Mce,tree:Rce,panel:Z})),P=[Gi,Mn("classes",[]),rc("items",O)],Z=uo(P),J=[g5("tab"),WL,rc("items",O)],he=[Gi,a0("tabs",J)],_e=uo(he),Ge=iz,qe=hP,ot=uo([zs("title"),Zc("body",lr("type",{panel:Z,tabpanel:_e})),nd("size","normal"),Cc("buttons",[],qe),Mn("initialData",{}),Di("onAction",M),Di("onChange",M),Di("onSubmit",M),Di("onClose",M),Di("onCancel",M),Di("onTabChange",M)]),Et=o=>da("dialog",ot,o),Vt=uo([Rf("type",["cancel","custom"]),...Ge]),kt=uo([zs("title"),zs("url"),fi("height"),fi("width"),Id("buttons",Vt),Di("onAction",M),Di("onCancel",M),Di("onClose",M),Di("onMessage",M)]),It=o=>da("dialog",kt,o),cn=o=>u(o)?[o].concat(re(Nt(o),cn)):v(o)?re(o,cn):[],xn=o=>m(o.type)&&m(o.name),bn={checkbox:uz,colorinput:dz,colorpicker:Ine,dropzone:mz,input:mf,iframe:gP,imagepreview:pP,selectbox:Y2,sizeinput:Sz,slider:Wne,listbox:Pce,size:Sz,textarea:Ece,urlinput:l,customeditor:hz,collection:Rne,togglemenuitem:Pne},$n=o=>L.from(bn[o.type]),rr=o=>xe(cn(o),xn),gr=o=>{const c=rr(o),g=re(c,S=>$n(S).fold(()=>[],_=>[Zc(S.name,_)]));return uo(g)},Qr=o=>{var c;const g=aa(Et(o)),S=gr(o),_=(c=o.initialData)!==null&&c!==void 0?c:{};return{internalDialog:g,dataValidator:S,initialData:_}},zn={open:(o,c)=>{const g=Qr(c);return o(g.internalDialog,g.initialData,g.dataValidator)},openUrl:(o,c)=>{const g=aa(It(c));return o(g)},redial:o=>Qr(o)};var tr=Object.freeze({__proto__:null,events:(o,c)=>{const g=(S,_)=>{o.updateState.each(H=>{const K=H(S,_);c.set(K)}),o.renderComponents.each(H=>{const K=H(_,c.get());(o.reuseDom?M9:hu)(S,K)})};return Ea([qn(Wl(),(S,_)=>{const H=_;if(!H.universal){const K=o.channel;be(H.channels,K)&&g(S,H.data)}}),Ca((S,_)=>{o.initialData.each(H=>{g(S,H)})})])}}),po=Object.freeze({__proto__:null,getState:(o,c,g)=>g}),ls=[er("channel"),Ws("renderComponents"),Ws("updateState"),Ws("initialData"),Wi("reuseDom",!0)],ma=Object.freeze({__proto__:null,init:()=>{const o=X(L.none()),c=()=>o.set(L.none());return{readState:()=>o.get().getOr("none"),get:o.get,set:o.set,clear:c}}});const $s=dl({fields:ls,name:"reflecting",active:tr,apis:po,state:ma}),hi=o=>{const c=[],g={};return Ye(o,(S,_)=>{S.fold(()=>{c.push(_)},H=>{g[_]=H})}),c.length>0?jo.error(c):jo.value(g)},uc=(o,c,g)=>{const S=ia(A2.sketch(_=>({dom:{tag:"div",classes:["tox-form"].concat(o.classes)},components:ne(o.items,H=>Wh(_,H,c,g))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[S.asSpec()]}],behaviours:pr([yo.config({mode:"acyclic",useTabstopAt:B(b3)}),Ff.memento(S),p3(S,{postprocess:_=>hi(_).fold(H=>(console.error(H),{}),z)}),Jo("dialog-body-panel",[qn(Do(),(_,H)=>{_.getSystem().broadcastOn([x3],{newFocus:L.some(H.event.target)})})])])}},ga=(o,c)=>({uid:o.uid,dom:o.dom,components:o.components,events:Vm(o.action),behaviours:Ni(o.tabButtonBehaviours,[Mo.config({}),yo.config({mode:"execution",useSpace:!0,useEnter:!0}),Fr.config({store:{mode:"memory",initialValue:o.value}})]),domModification:o.domModification}),Cr=_u({name:"TabButton",configFields:[Mn("uid",void 0),er("value"),il("dom","dom",hs(()=>({attributes:{role:"tab",id:Kr("aria"),"aria-selected":"false"}})),vi()),Ws("action"),Mn("domModification",{}),el("tabButtonBehaviours",[Mo,yo,Fr]),er("view")],factory:ga}),co=F([er("tabs"),er("dom"),Mn("clickToDismiss",!1),el("tabbarBehaviours",[Ys,yo]),$g(["tabClass","selectedClass"])]),Zs=yb({factory:Cr,name:"tabs",unit:"tab",overrides:o=>{const c=(S,_)=>{Ys.dehighlight(S,_),vo(S,ZO(),{tabbar:S,button:_})},g=(S,_)=>{Ys.highlight(S,_),vo(S,JC(),{tabbar:S,button:_})};return{action:S=>{const _=S.getSystem().getByUid(o.uid).getOrDie(),H=Ys.isHighlighted(_,S);(()=>H&&o.clickToDismiss?c:H?M:g)()(_,S)},domModification:{classes:[o.markers.tabClass]}}}}),Ss=F([Zs]),ro=(o,c,g,S)=>({uid:o.uid,dom:o.dom,components:c,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Ni(o.tabbarBehaviours,[Ys.config({highlightClass:o.markers.selectedClass,itemClass:o.markers.tabClass,onHighlight:(_,H)=>{Dr(H.element,"aria-selected","true")},onDehighlight:(_,H)=>{Dr(H.element,"aria-selected","false")}}),yo.config({mode:"flow",getInitial:_=>Ys.getHighlighted(_).map(H=>H.element),selector:"."+o.markers.tabClass,executeOnMove:!0})])}),Lo=lc({name:"Tabbar",configFields:co(),partFields:Ss(),factory:ro}),yr=(o,c)=>({uid:o.uid,dom:o.dom,behaviours:Ni(o.tabviewBehaviours,[Uo.config({})]),domModification:{attributes:{role:"tabpanel"}}}),Bo=_u({name:"Tabview",configFields:[el("tabviewBehaviours",[Uo])],factory:yr}),Ls=F([Mn("selectFirst",!0),Rs("onChangeTab"),Rs("onDismissTab"),Mn("tabs",[]),el("tabSectionBehaviours",[])]),Aa=ic({factory:Lo,schema:[er("dom"),su("markers",[er("tabClass"),er("selectedClass")])],name:"tabbar",defaults:o=>({tabs:o.tabs})}),Sa=ic({factory:Bo,name:"tabview"}),$l=F([Aa,Sa]),Xh=(o,c,g,S)=>{const _=K=>{const ve=Fr.getValue(K);ka(K,o,"tabview").each(Ae=>{Ze(o.tabs,Ue=>Ue.value===ve).each(Ue=>{const Je=Ue.view();Ri(K.element,"id").each(st=>{Dr(Ae.element,"aria-labelledby",st)}),Uo.set(Ae,Je),o.onChangeTab(Ae,K,Je)})})},H=(K,ve)=>{ka(K,o,"tabbar").each(Ae=>{ve(Ae).each(xm)})};return{uid:o.uid,dom:o.dom,components:c,behaviours:Lm(o.tabSectionBehaviours),events:Ea(Ie([o.selectFirst?[Ca((K,ve)=>{H(K,Ys.getFirst)})]:[],[qn(JC(),(K,ve)=>{const Ae=ve.event.button;_(Ae)}),qn(ZO(),(K,ve)=>{const Ae=ve.event.button;o.onDismissTab(K,Ae)})]])),apis:{getViewItems:K=>ka(K,o,"tabview").map(ve=>Uo.contents(ve)).getOr([]),showTab:(K,ve)=>{H(K,Ne=>{const Ue=Ys.getCandidates(Ne);return Ze(Ue,st=>Fr.getValue(st)===ve).filter(st=>!Ys.isHighlighted(Ne,st))})}}}},zf=lc({name:"TabSection",configFields:Ls(),partFields:$l(),factory:Xh,apis:{getViewItems:(o,c)=>o.getViewItems(c),showTab:(o,c,g)=>{o.showTab(c,g)}}}),$u=(o,c,g)=>ne(o,(S,_)=>{Uo.set(g,o[_].view());const H=c.dom.getBoundingClientRect();return Uo.set(g,[]),H.height}),sh=o=>Ce(Se(o,(c,g)=>c>g?-1:c{const S=pn(o).dom,_=Pu(o,".tox-dialog-wrap").getOr(o),H=Qa(_,"position")==="fixed";let K;H?K=Math.max(S.clientHeight,window.innerHeight):K=Math.max(S.offsetHeight,S.scrollHeight);const ve=Za(c),Ne=c.dom.offsetLeft>=g.dom.offsetLeft+Si(g)?Math.max(Za(g),ve):ve,Ue=parseInt(Qa(o,"margin-top"),10)||0,Je=parseInt(Qa(o,"margin-bottom"),10)||0,ht=Za(o)+Ue+Je-Ne;return K-ht},Hs=(o,c)=>{Ce(o).each(g=>zf.showTab(c,g.value))},Pa=(o,c)=>{Po(o,"height",c+"px"),Po(o,"flex-basis",c+"px")},oi=(o,c,g)=>{Pu(o,'[role="dialog"]').each(S=>{Ai(S,'[role="tablist"]').each(_=>{g.get().map(H=>(Po(c,"height","0"),Po(c,"flex-basis","0"),Math.min(H,Wo(S,c,_)))).each(H=>{Pa(c,H)})})})},Ua=o=>Ai(o,'[role="tabpanel"]'),gf=o=>{const c=gs();return{extraEvents:[Ca(_=>{const H=_.element;Ua(H).each(K=>{Po(K,"visibility","hidden"),_.getSystem().getByDom(K).toOptional().each(ve=>{const Ae=$u(o,K,ve);sh(Ae).fold(c.clear,c.set)}),oi(H,K,c),Zo(K,"visibility"),Hs(o,_),requestAnimationFrame(()=>{oi(H,K,c)})})}),qn(Qd(),_=>{const H=_.element;Ua(H).each(K=>{oi(H,K,c)})}),qn(CN,(_,H)=>{const K=_.element;Ua(K).each(ve=>{const Ae=Mh(es(ve));Po(ve,"visibility","hidden");const Ne=za(ve,"height").map(st=>parseInt(st,10));Zo(ve,"height"),Zo(ve,"flex-basis");const Ue=ve.dom.getBoundingClientRect().height;Ne.forall(st=>Ue>st)?(c.set(Ue),oi(K,ve,c)):Ne.each(st=>{Pa(ve,st)}),Zo(ve,"visibility"),Ae.each(cu)})})],selectFirst:!1}},Gh="send-data-to-section",_v="send-data-to-view",OP=(o,c,g)=>{const S=X({}),_=Ne=>{const Ue=Fr.getValue(Ne),Je=hi(Ue).getOr({}),st=S.get(),ht=Ta(st,Je);S.set(ht)},H=Ne=>{const Ue=S.get();Fr.setValue(Ne,Ue)},K=X(null),ve=ne(o.tabs,Ne=>({value:Ne.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[yi(g.shared.providers.translate(Ne.title))],view:()=>[A2.sketch(Ue=>({dom:{tag:"div",classes:["tox-form"]},components:ne(Ne.items,Je=>Wh(Ue,Je,c,g)),formBehaviours:pr([yo.config({mode:"acyclic",useTabstopAt:B(b3)}),Jo("TabView.form.events",[Ca(H),Sh(_)]),lu.config({channels:bt([{key:Gh,value:{onReceive:_}},{key:_v,value:{onReceive:H}}])})])}))]})),Ae=gf(ve);return zf.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:(Ne,Ue,Je)=>{const st=Fr.getValue(Ue);vo(Ne,TN,{name:st,oldName:K.get()}),K.set(st)},tabs:ve,components:[zf.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[Lo.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:pr([Ga.config({})])}),zf.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:Ae.selectFirst,tabSectionBehaviours:pr([Jo("tabpanel",Ae.extraEvents),yo.config({mode:"acyclic"}),xs.config({find:Ne=>Ce(zf.getViewItems(Ne))}),v1(L.none(),Ne=>(Ne.getSystem().broadcastOn([Gh],{}),S.get()),(Ne,Ue)=>{S.set(Ue),Ne.getSystem().broadcastOn([_v],{})})])})},tC=(o,c,g,S,_)=>{const H=Ae=>{const Ne=Ae.body;switch(Ne.type){case"tabpanel":return[OP(Ne,Ae.initialData,S)];default:return[uc(Ne,Ae.initialData,S)]}},K=(Ae,Ne)=>L.some({isTabPanel:()=>Ne.body.type==="tabpanel"}),ve={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...g.map(Ae=>({id:Ae})).getOr({}),..._?ve:{}}},components:[],behaviours:pr([Ff.childAt(0),$s.config({channel:`${fp}-${c}`,updateState:K,renderComponents:H,initialData:o})])}},xP=(o,c,g,S,_)=>tC(o,c,L.some(g),S,_),j2=(o,c,g)=>{const S=tC(o,c,L.none(),g,!1);return Sl.parts.body(S)},SP=o=>{const c={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[pB(L.none(),{dom:{tag:"iframe",attributes:{src:o.url}},behaviours:pr([Ga.config({}),Mo.config({})])})]}],behaviours:pr([yo.config({mode:"acyclic",useTabstopAt:B(b3)})])};return Sl.parts.body(c)},q2=n2.deviceType.isTouch(),_1=(o,c)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[o,c]}),jh=(o,c)=>Sl.parts.close(Dl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":c.translate("Close")}},action:o,buttonBehaviours:pr([Ga.config({})])})),jm=()=>Sl.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),K2=(o,c)=>Sl.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:Ov(`

    ${V_(c.translate(o))}

    `)}]}]}),oO=o=>Sl.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:o}),nC=(o,c)=>[Um.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:o}),Um.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:c})],qm=o=>{const c="tox-dialog",g=c+"-wrap",S=g+"__backdrop",_=c+"__disable-scroll";return Sl.sketch({lazySink:o.lazySink,onEscape:H=>(o.onEscape(H),L.some(!0)),useTabstopAt:H=>!b3(H),firstTabstop:o.firstTabstop,dom:{tag:"div",classes:[c].concat(o.extraClasses),styles:{position:"relative",...o.extraStyles}},components:[o.header,o.body,...o.footer.toArray()],parts:{blocker:{dom:Ov(`
    `),components:[{dom:{tag:"div",classes:q2?[S,S+"--opaque"]:[S]}}]}},dragBlockClass:g,modalBehaviours:pr([Mo.config({}),Jo("dialog-events",o.dialogEvents.concat([xh(Do(),(H,K)=>{Xm.isBlocked(H)?M():yo.focusIn(H)}),qn(VO(),(H,K)=>{H.getSystem().broadcastOn([x3],{newFocus:K.event.newFocus})})])),Jo("scroll-lock",[Ca(()=>{ki(ya(),_)}),Sh(()=>{Xa(ya(),_)})]),...o.extraBehaviours]),eventOrder:{[Ii()]:["dialog-events"],[ef()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[kg()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...o.eventOrder}})},wP=o=>Dl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":o.translate("Close"),title:o.translate("Close")}},buttonBehaviours:pr([Ga.config({})]),components:[Bh("close",{tag:"span",classes:["tox-icon"]},o.icons)],action:c=>{ks(c,h1)}}),rC=(o,c,g,S)=>{const _=H=>[yi(S.translate(H.title))];return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:{...g.map(H=>({id:H})).getOr({})}},components:[],behaviours:pr([$s.config({channel:`${o4}-${c}`,initialData:o,renderComponents:_})])}},Ic=()=>({dom:Ov('
    ')}),sO=(o,c,g,S)=>Um.sketch({dom:Ov('
    '),components:[rC(o,c,L.some(g),S),Ic(),wP(S)],containerBehaviours:pr([M1.config({mode:"mouse",blockerClass:"blocker",getTarget:_=>Vd(_,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),kz=(o,c,g)=>{const S=Sl.parts.title(rC(o,c,L.none(),g)),_=Sl.parts.draghandle(Ic()),H=Sl.parts.close(wP(g)),K=[S].concat(o.draggable?[_]:[]).concat([H]);return Um.sketch({dom:Ov('
    '),components:K})},TP=(o,c,g)=>kz({title:g.shared.providers.translate(o),draggable:g.dialog.isDraggableModal()},c,g.shared.providers),oC=(o,c,g,S)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":g.translate(o)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${S.getOr(0)}px`,position:"absolute"}},behaviours:c,components:[{dom:Ov('
    ')}]}),hp=(o,c,g)=>({onClose:()=>g.closeWindow(),onBlock:S=>{const _=Ai(o().element,".tox-dialog__header").map(H=>Za(H));Sl.setBusy(o(),(H,K)=>oC(S.message,K,c,_))},onUnblock:()=>{Sl.setIdle(o())}}),J2="tox-dialog--fullscreen",Ln="tox-dialog--width-lg",In="tox-dialog--width-md",br=o=>{switch(o){case"large":return L.some(Ln);case"medium":return L.some(In);default:return L.none()}},hr=(o,c)=>{const g=zt.fromDom(c.element.dom);Ji(g,J2)||(tf(g,[Ln,In]),br(o).each(S=>ki(g,S)))},mo=(o,c)=>{const g=zt.fromDom(o.element.dom),S=y0(g),_=Ze(S,H=>H===Ln||H===In).or(br(c));iw(g,[J2,..._.toArray()])},bs=(o,c,g)=>oc(qm({...o,firstTabstop:1,lazySink:g.shared.getSink,extraBehaviours:[v3({}),...o.extraBehaviours],onEscape:S=>{ks(S,h1)},dialogEvents:c,eventOrder:{[Wl()]:[$s.name(),lu.name()],[ef()]:["scroll-lock",$s.name(),"messages","dialog-events","alloy.base.behaviour"],[kg()]:["alloy.base.behaviour","dialog-events","messages",$s.name(),"scroll-lock"]}})),ja=(o,c={})=>{const g=S=>{const _=ne(S.items,H=>{const K=Bt(c,H.name).getOr(X(!1));return{...H,storage:K}});return{...S,items:_}};return ne(o,S=>S.type==="menu"?g(S):S)},pf=o=>ke(o,(c,g)=>g.type==="menu"?ke(g.items,(_,H)=>(_[H.name]=H.storage,_),c):c,{}),fc=(o,c)=>[jS(Do(),yB),o(x2,(g,S,_,H)=>{Mh(es(H.element)).fold(M,M0),c.onClose(),S.onClose()}),o(h1,(g,S,_,H)=>{S.onCancel(g),ks(H,x2)}),qn(x6,(g,S)=>c.onUnblock()),qn(O6,(g,S)=>c.onBlock(S.event))],aO=(o,c)=>{const g=(_,H)=>qn(_,(K,ve)=>{S(K,(Ae,Ne)=>{H(o(),Ae,ve.event,K)})}),S=(_,H)=>{$s.getState(_).get().each(K=>{H(K,_)})};return[...fc(g,c),g(ap,(_,H,K)=>{H.onAction(_,{name:K.name})})]},ah=(o,c,g)=>{const S=(H,K)=>qn(H,(ve,Ae)=>{_(ve,(Ne,Ue)=>{K(o(),Ne,Ae.event,ve)})}),_=(H,K)=>{$s.getState(H).get().each(ve=>{K(ve.internalDialog,H)})};return[...fc(S,c),S(f3,(H,K)=>K.onSubmit(H)),S(df,(H,K,ve)=>{K.onChange(H,{name:ve.name})}),S(ap,(H,K,ve,Ae)=>{const Ne=()=>Ae.getSystem().isConnected()?yo.focusIn(Ae):void 0,Ue=ht=>Md(ht,"disabled")||Ri(ht,"aria-disabled").exists(At=>At==="true"),Je=es(Ae.element),st=Mh(Je);K.onAction(H,{name:ve.name,value:ve.value}),Mh(Je).fold(Ne,ht=>{Ue(ht)||st.exists(At=>rn(ht,At)&&Ue(At))?Ne():g().toOptional().filter(At=>!rn(At.element,ht)).each(Ne)})}),S(TN,(H,K,ve)=>{K.onTabChange(H,{newTabName:ve.name,oldTabName:ve.oldName})}),Sh(H=>{const K=o();Fr.setValue(H,K.getData())})]},Az=(o,c)=>b4(o,o.type,c),Pz=(o,c,g)=>Ze(c,S=>S.name===g).bind(S=>S.memento.getOpt(o)),Mz=(o,c)=>{const g=c.map(ve=>ve.footerButtons).getOr([]),S=Oe(g,ve=>ve.align==="start"),_=(ve,Ae)=>Um.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${ve}`]},components:ne(Ae,Ne=>Ne.memento.asSpec())}),H=_("start",S.pass),K=_("end",S.fail);return[H,K]},rD=(o,c,g)=>{const S=(_,H)=>{const K=ne(H.buttons,Ae=>{const Ne=ia(Az(Ae,g));return{name:Ae.name,align:Ae.align,memento:Ne}}),ve=Ae=>Pz(_,K,Ae);return L.some({lookupByName:ve,footerButtons:K})};return{dom:Ov(''),components:[],behaviours:pr([$s.config({channel:`${s4}-${c}`,initialData:o,updateState:S,renderComponents:Mz})])}},qne=(o,c,g)=>rD(o,c,g),ps=(o,c,g)=>Sl.parts.footer(rD(o,c,g)),Qn=(o,c)=>{if(o.getRoot().getSystem().isConnected()){const S=xs.getCurrent(o.getFormWrapper()).getOr(o.getFormWrapper());return A2.getField(S,c).orThunk(()=>o.getFooter().bind(K=>$s.getState(K).get()).bind(K=>K.lookupByName(c)))}else return L.none()},lo=(o,c)=>{const g=o.getRoot();return $s.getState(g).get().map(S=>aa(da("data",S.dataValidator,c))).getOr(c)},Eo=(o,c,g)=>{const S=At=>{const qt=o.getRoot();qt.getSystem().isConnected()&&At(qt)},ht={getData:()=>{const At=o.getRoot(),qt=At.getSystem().isConnected()?o.getFormWrapper():At,Dn=Fr.getValue(qt),mn=je(g,on=>on.get());return{...Dn,...mn}},setData:At=>{S(qt=>{const Dn=ht.getData(),mn=Ta(Dn,At),on=lo(o,mn),kn=o.getFormWrapper();Fr.setValue(kn,on),Ye(g,(Zn,mr)=>{vn(mn,mr)&&Zn.set(mn[mr])})})},setEnabled:(At,qt)=>{Qn(o,At).each(qt?Co.enable:Co.disable)},focus:At=>{Qn(o,At).each(Mo.focus)},block:At=>{if(!m(At))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");S(qt=>{vo(qt,O6,{message:At})})},unblock:()=>{S(At=>{ks(At,x6)})},showTab:At=>{S(qt=>{const Dn=o.getBody();$s.getState(Dn).get().exists(on=>on.isTabPanel())&&xs.getCurrent(Dn).each(on=>{zf.showTab(on,At)})})},redial:At=>{S(qt=>{const Dn=o.getId(),mn=c(At),on=ja(mn.internalDialog.buttons,g);qt.getSystem().broadcastOn([`${O3}-${Dn}`],mn),qt.getSystem().broadcastOn([`${o4}-${Dn}`],mn.internalDialog),qt.getSystem().broadcastOn([`${fp}-${Dn}`],mn.internalDialog),qt.getSystem().broadcastOn([`${s4}-${Dn}`],{...mn.internalDialog,buttons:on}),ht.setData(mn.initialData)})},close:()=>{S(At=>{ks(At,x2)})},toggleFullscreen:o.toggleFullscreen};return ht},Qi=(o,c,g)=>{const S=Kr("dialog"),_=o.internalDialog,H=TP(_.title,S,g),K=X(_.size),ve=br(K.get()).toArray(),Ae=(on,kn)=>(K.set(kn.internalDialog.size),hr(kn.internalDialog.size,on),L.some(kn)),Ne=j2({body:_.body,initialData:_.initialData},S,g),Ue=ja(_.buttons),Je=pf(Ue),st=it(Ue.length!==0,ps({buttons:Ue},S,g)),ht=ah(()=>mn,hp(()=>qt,g.shared.providers,c),g.shared.getSink),At={id:S,header:H,body:Ne,footer:st,extraClasses:ve,extraBehaviours:[$s.config({channel:`${O3}-${S}`,updateState:Ae,initialData:o})],extraStyles:{}},qt=bs(At,ht,g),Dn=(()=>{const on=()=>{const Zn=Sl.getBody(qt);return xs.getCurrent(Zn).getOr(Zn)},kn=()=>{mo(qt,K.get())};return{getId:F(S),getRoot:F(qt),getBody:()=>Sl.getBody(qt),getFooter:()=>Sl.getFooter(qt),getFormWrapper:on,toggleFullscreen:kn}})(),mn=Eo(Dn,c.redial,Je);return{dialog:qt,instanceApi:mn}},jc=(o,c,g,S=!1,_)=>{const H=Kr("dialog"),K=Kr("dialog-label"),ve=Kr("dialog-content"),Ae=o.internalDialog,Ne=X(Ae.size),Ue=br(Ne.get()).toArray(),Je=(Gn,Or)=>(Ne.set(Or.internalDialog.size),hr(Or.internalDialog.size,Gn),_(),L.some(Or)),st=ia(sO({title:Ae.title,draggable:!0},H,K,g.shared.providers)),ht=ia(xP({body:Ae.body,initialData:Ae.initialData},H,ve,g,S)),At=ja(Ae.buttons),qt=pf(At),Dn=it(At.length!==0,ia(qne({buttons:At},H,g))),mn=ah(()=>mr,{onBlock:Gn=>{Xm.block(kn,(Or,Mr)=>{const is=st.getOpt(kn).map(Gr=>Za(Gr.element));return oC(Gn.message,Mr,g.shared.providers,is)})},onUnblock:()=>{Xm.unblock(kn)},onClose:()=>c.closeWindow()},g.shared.getSink),kn=oc({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline",...Ue],attributes:{role:"dialog","aria-labelledby":K}},eventOrder:{[Wl()]:[$s.name(),lu.name()],[Ii()]:["execute-on-form"],[ef()]:["reflecting","execute-on-form"]},behaviours:pr([yo.config({mode:"cyclic",onEscape:Gn=>(ks(Gn,x2),L.some(!0)),useTabstopAt:Gn=>!b3(Gn)&&(Oo(Gn)!=="button"||oa(Gn,"disabled")!=="disabled"),firstTabstop:1}),$s.config({channel:`${O3}-${H}`,updateState:Je,initialData:o}),Mo.config({}),Jo("execute-on-form",mn.concat([xh(Do(),(Gn,Or)=>{yo.focusIn(Gn)}),qn(VO(),(Gn,Or)=>{Gn.getSystem().broadcastOn([x3],{newFocus:Or.event.newFocus})})])),Xm.config({getRoot:()=>L.some(kn)}),Uo.config({}),v3({})]),components:[st.asSpec(),ht.asSpec(),...Dn.map(Gn=>Gn.asSpec()).toArray()]}),Zn=()=>{mo(kn,Ne.get())},mr=Eo({getId:F(H),getRoot:F(kn),getFooter:()=>Dn.map(Gn=>Gn.get(kn)),getBody:()=>ht.get(kn),getFormWrapper:()=>{const Gn=ht.get(kn);return xs.getCurrent(Gn).getOr(Gn)},toggleFullscreen:Zn},c.redial,qt);return{dialog:kn,instanceApi:mr}};var xd=tinymce.util.Tools.resolve("tinymce.util.URI");const Ll=o=>{const c=K=>{o.getSystem().isConnected()&&K(o)};return{block:K=>{if(!m(K))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");c(ve=>{vo(ve,O6,{message:K})})},unblock:()=>{c(K=>{ks(K,x6)})},close:()=>{c(K=>{ks(K,x2)})},sendMessage:K=>{c(ve=>{ve.getSystem().broadcastOn([q6],K)})}}},qh=["insertContent","setContent","execCommand","close","block","unblock"],CP=o=>u(o)&&qh.indexOf(o.mceAction)!==-1,Kne=o=>!CP(o)&&u(o)&&vn(o,"mceAction"),Ez=(o,c,g)=>{switch(g.mceAction){case"insertContent":o.insertContent(g.content);break;case"setContent":o.setContent(g.content);break;case"execCommand":const S=b(g.ui)?g.ui:!1;o.execCommand(g.cmd,S,g.value);break;case"close":c.close();break;case"block":c.block(g.message);break;case"unblock":c.unblock();break}},Dce=(o,c,g,S)=>{const _=Kr("dialog"),H=TP(o.title,_,S),K=SP(o),ve=o.buttons.bind(kn=>kn.length===0?L.none():L.some(ps({buttons:kn},_,S))),Ae=aO(()=>on,hp(()=>mn,S.shared.providers,c)),Ne={...o.height.fold(()=>({}),kn=>({height:kn+"px","max-height":kn+"px"})),...o.width.fold(()=>({}),kn=>({width:kn+"px","max-width":kn+"px"}))},Ue=o.width.isNone()&&o.height.isNone()?["tox-dialog--width-lg"]:[],Je=new xd(o.url,{base_uri:new xd(window.location.href)}),st=`${Je.protocol}://${Je.host}${Je.port?":"+Je.port:""}`,ht=Em(),At=(kn,Zn)=>L.some(Zn),qt=[$s.config({channel:`${O3}-${_}`,updateState:At,initialData:o}),Jo("messages",[Ca(()=>{const kn=_c(zt.fromDom(window),"message",Zn=>{if(Je.isSameOrigin(new xd(Zn.raw.origin))){const mr=Zn.raw.data;CP(mr)?Ez(g,on,mr):Kne(mr)&&o.onMessage(on,mr)}});ht.set(kn)}),Sh(ht.clear)]),lu.config({channels:{[q6]:{onReceive:(kn,Zn)=>{Ai(kn.element,"iframe").each(mr=>{const Gn=mr.dom.contentWindow;C(Gn)&&Gn.postMessage(Zn,st)})}}}})],mn=bs({id:_,header:H,body:K,footer:ve,extraClasses:Ue,extraBehaviours:qt,extraStyles:Ne},Ae,S),on=Ll(mn);return{dialog:mn,instanceApi:on}},rxe=o=>{const c=o.shared;return{open:(S,_)=>{const H=()=>{Sl.hide(Ne),_()},K=ia(b4({name:"close-alert",text:"OK",primary:!0,buttonType:L.some("primary"),align:"end",enabled:!0,icon:L.none()},"cancel",o)),ve=jm(),Ae=jh(H,c.providers),Ne=oc(qm({lazySink:()=>c.getSink(),header:_1(ve,Ae),body:K2(S,c.providers),footer:L.some(oO(nC([],[K.asSpec()]))),onEscape:H,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[qn(h1,H)],eventOrder:{}}));Sl.show(Ne);const Ue=K.get(Ne);Mo.focus(Ue)}}},oxe=o=>{const c=o.shared;return{open:(S,_)=>{const H=st=>{Sl.hide(Ue),_(st)},K=ia(b4({name:"yes",text:"Yes",primary:!0,buttonType:L.some("primary"),align:"end",enabled:!0,icon:L.none()},"submit",o)),ve=b4({name:"no",text:"No",primary:!1,buttonType:L.some("secondary"),align:"end",enabled:!0,icon:L.none()},"cancel",o),Ae=jm(),Ne=jh(()=>H(!1),c.providers),Ue=oc(qm({lazySink:()=>c.getSink(),header:_1(Ae,Ne),body:K2(S,c.providers),footer:L.some(oO(nC([],[ve,K.asSpec()]))),onEscape:()=>H(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[qn(h1,()=>H(!1)),qn(f3,()=>H(!0))],eventOrder:{}}));Sl.show(Ue);const Je=K.get(Ue);Mo.focus(Je)}}},$ce=(o,c)=>aa(da("data",c,o)),Lce=o=>i3(o,".tox-alert-dialog")||i3(o,".tox-confirm-dialog"),sxe=(o,c,g)=>c&&g?[]:[Bi.config({contextual:{lazyContext:()=>L.some(ui(zt.fromDom(o.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:S=>d1(o,S.element).map(H=>({bounds:O2(H),optScrollEnv:L.some({currentScrollTop:H.element.dom.scrollTop,scrollElmTop:Cl(H.element).top})})).getOrThunk(()=>({bounds:Vl(),optScrollEnv:L.none()}))})],axe=o=>{const c=o.editor,g=UT(c),S=rxe(o.backstages.dialog),_=oxe(o.backstages.dialog),H=(At,qt,Dn)=>{if(!x(qt)){if(qt.inline==="toolbar")return Ne(At,o.backstages.popup.shared.anchors.inlineDialog(),Dn,qt);if(qt.inline==="bottom")return Ue(At,o.backstages.popup.shared.anchors.inlineBottomDialog(),Dn,qt);if(qt.inline==="cursor")return Ne(At,o.backstages.popup.shared.anchors.cursor(),Dn,qt)}return Ae(At,Dn)},K=(At,qt)=>ve(At,qt),ve=(At,qt)=>{const Dn=mn=>{const on=Dce(mn,{closeWindow:()=>{Sl.hide(on.dialog),qt(on.instanceApi)}},c,o.backstages.dialog);return Sl.show(on.dialog),on.instanceApi};return zn.openUrl(Dn,At)},Ae=(At,qt)=>{const Dn=(mn,on,kn)=>{const Zn=on,Gn=Qi({dataValidator:kn,initialData:Zn,internalDialog:mn},{redial:zn.redial,closeWindow:()=>{Sl.hide(Gn.dialog),qt(Gn.instanceApi)}},o.backstages.dialog);return Sl.show(Gn.dialog),Gn.instanceApi.setData(Zn),Gn.instanceApi};return zn.open(Dn,At)},Ne=(At,qt,Dn,mn)=>{const on=(kn,Zn,mr)=>{const Gn=$ce(Zn,mr),Or=gs(),Mr=o.backstages.popup.shared.header.isPositionedAtTop(),is={dataValidator:mr,initialData:Gn,internalDialog:kn},Gr=()=>Or.on(wo=>{ri.reposition(wo),(!g||!Mr)&&Bi.refresh(wo)}),Io=jc(is,{redial:zn.redial,closeWindow:()=>{Or.on(ri.hide),c.off("ResizeEditor",Gr),Or.clear(),Dn(Io.instanceApi)}},o.backstages.popup,mn.ariaAttrs,Gr),_o=oc(ri.sketch({lazySink:o.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:mn.persistent?{event:"doNotDismissYet"}:{},...Mr?{}:{fireRepositionEventInstead:{}},inlineBehaviours:pr([Jo("window-manager-inline-events",[qn(Ag(),(wo,Ns)=>{ks(Io.dialog,h1)})]),...sxe(c,g,Mr)]),isExtraPart:(wo,Ns)=>Lce(Ns)}));Or.set(_o);const na=()=>{const wo=c.inline?ya():zt.fromDom(c.getContainer()),Ns=ui(wo);return L.some(Ns)};return ri.showWithinBounds(_o,nf(Io.dialog),{anchor:qt},na),(!g||!Mr)&&(Bi.refresh(_o),c.on("ResizeEditor",Gr)),Io.instanceApi.setData(Gn),yo.focusIn(Io.dialog),Io.instanceApi};return zn.open(on,At)},Ue=(At,qt,Dn,mn)=>{const on=(kn,Zn,mr)=>{const Gn=$ce(Zn,mr),Or=gs(),Mr=o.backstages.popup.shared.header.isPositionedAtTop(),is={dataValidator:mr,initialData:Gn,internalDialog:kn},Gr=()=>Or.on(wo=>{ri.reposition(wo),Bi.refresh(wo)}),Io=jc(is,{redial:zn.redial,closeWindow:()=>{Or.on(ri.hide),c.off("ResizeEditor ScrollWindow ElementScroll",Gr),Or.clear(),Dn(Io.instanceApi)}},o.backstages.popup,mn.ariaAttrs,Gr),_o=oc(ri.sketch({lazySink:o.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:mn.persistent?{event:"doNotDismissYet"}:{},...Mr?{}:{fireRepositionEventInstead:{}},inlineBehaviours:pr([Jo("window-manager-inline-events",[qn(Ag(),(wo,Ns)=>{ks(Io.dialog,h1)})]),Bi.config({contextual:{lazyContext:()=>L.some(ui(zt.fromDom(c.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:wo=>d1(c,wo.element).map(Pr=>({bounds:O2(Pr),optScrollEnv:L.some({currentScrollTop:Pr.element.dom.scrollTop,scrollElmTop:Cl(Pr.element).top})})).getOrThunk(()=>({bounds:Vl(),optScrollEnv:L.none()}))})]),isExtraPart:(wo,Ns)=>Lce(Ns)}));Or.set(_o);const na=()=>o.backstages.popup.shared.getSink().toOptional().bind(wo=>{const Ns=d1(c,wo.element),Pr=15,oo=Ns.map(To=>O2(To)).getOr(Vl()),No=ui(zt.fromDom(c.getContentAreaContainer())),Qo=py(No,oo);return L.some(Ja(Qo.x,Qo.y,Qo.width,Qo.height-Pr))});return ri.showWithinBounds(_o,nf(Io.dialog),{anchor:qt},na),Bi.refresh(_o),c.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",Gr),Io.instanceApi.setData(Gn),yo.focusIn(Io.dialog),Io.instanceApi};return zn.open(on,At)};return{open:H,openUrl:K,alert:(At,qt)=>{S.open(At,qt)},close:At=>{At.close()},confirm:(At,qt)=>{_.open(At,qt)}}},ixe=o=>{dL(o),SX(o),kte(o)};var lxe=()=>{Og.add("silver",o=>{ixe(o);let c=()=>Vl();const{dialogs:g,popups:S,renderUI:_}=Tne(o,{getPopupSinkBounds:()=>c()}),H=()=>{const Ae=_();return d1(o,S.getMothership().element).each(Ue=>{c=()=>O2(Ue)}),Ae};dG.register(o,S.backstage.shared);const K=axe({editor:o,backstages:{popup:S.backstage,dialog:g.backstage}}),ve=()=>Y_(o,{backstage:S.backstage},S.getMothership());return{renderUI:H,getWindowManagerImpl:F(K),getNotificationManagerImpl:ve}})};lxe()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"accordion-toggle":'',accordion:'',"action-next":'',"action-prev":'',addtag:'',"ai-prompt":'',ai:'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',footnote:'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',minus:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',send:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',"template-add":'',template:'',"temporary-placeholder":'',"text-color":'',"text-size-decrease":'',"text-size-increase":'',toc:'',translate:'',typography:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}});(function(){const t=M=>{let I=M;return{get:()=>I,set:F=>{I=F}}};var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const r=M=>()=>M;var a=tinymce.util.Tools.resolve("tinymce.Env");const i=M=>M.dispatch("ResizeEditor"),d=M=>I=>I.options.get(M),f=M=>{const I=M.options.register;I("autoresize_overflow_padding",{processor:"number",default:1}),I("autoresize_bottom_margin",{processor:"number",default:50})},m=d("min_height"),u=d("max_height"),p=d("autoresize_overflow_padding"),v=d("autoresize_bottom_margin"),y=M=>M.plugins.fullscreen&&M.plugins.fullscreen.isFullscreen(),b=(M,I)=>{const V=M.getBody();V&&(V.style.overflowY=I?"":"hidden",I||(V.scrollTop=0))},x=(M,I,V,N)=>{var F;const z=parseInt((F=M.getStyle(I,V,N))!==null&&F!==void 0?F:"",10);return isNaN(z)?0:z},k=M=>{if((M==null?void 0:M.type.toLowerCase())==="setcontent"){const I=M;return I.selection===!0||I.paste===!0}else return!1},C=(M,I,V,N)=>{var F;const z=M.dom,U=M.getDoc();if(!U)return;if(y(M)){b(M,!0);return}const Q=U.documentElement,B=N?N():p(M),E=(F=m(M))!==null&&F!==void 0?F:M.getElement().offsetHeight;let W=E;const Y=x(z,Q,"margin-top",!0),ie=x(z,Q,"margin-bottom",!0);let L=Q.offsetHeight+Y+ie+B;L<0&&(L=0);const me=M.getContainer().offsetHeight,ae=M.getContentAreaContainer().offsetHeight,q=me-ae;L+q>E&&(W=L+q);const fe=u(M);if(fe&&W>fe?(W=fe,b(M,!0)):b(M,!1),W!==I.get()){const ee=W-I.get();if(z.setStyle(M.getContainer(),"height",W+"px"),I.set(W),i(M),a.browser.isSafari()&&(a.os.isMacOS()||a.os.isiOS())){const be=M.getWin();be.scrollTo(be.pageXOffset,be.pageYOffset)}M.hasFocus()&&k(V)&&M.selection.scrollIntoView(),(a.browser.isSafari()||a.browser.isChromium())&&ee<0&&C(M,I,V,N)}},w=(M,I)=>{let V=()=>v(M),N,F;M.on("init",z=>{N=0;const U=p(M),Q=M.dom;Q.setStyles(M.getDoc().documentElement,{height:"auto"}),a.browser.isEdge()||a.browser.isIE()?Q.setStyles(M.getBody(),{paddingLeft:U,paddingRight:U,"min-height":0}):Q.setStyles(M.getBody(),{paddingLeft:U,paddingRight:U}),C(M,I,z,V),N+=1}),M.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",z=>{if(N===1)F=M.getContainer().offsetHeight,C(M,I,z,V),N+=1;else if(N===2){const U=F{M.addCommand("mceAutoResize",()=>{C(M,I)})};var R=()=>{e.add("autoresize",M=>{if(f(M),M.options.isSet("resize")||M.options.set("resize",!1),!M.inline){const I=t(0);T(M,I),w(M,I)}})};R()})();var b$e=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],O$e=function(t){return b$e.map(function(e){return e.toLowerCase()}).indexOf(t.toLowerCase())!==-1},x$e=function(t,e,r){Object.keys(e).filter(O$e).forEach(function(a){var i=e[a];typeof i=="function"&&(a==="onInit"?i(t,r):r.on(a.substring(2),function(d){return i(d,r)}))})},S$e=function(t,e,r,a){var i=t.modelEvents?t.modelEvents:null,d=Array.isArray(i)?i.join(" "):i;Ho(a,function(f,m){r&&typeof f=="string"&&f!==m&&f!==r.getContent({format:t.outputFormat})&&r.setContent(f)}),r.on(d||"change input undo redo",function(){e.emit("update:modelValue",r.getContent({format:t.outputFormat}))})},w$e=function(t,e,r,a,i,d){a.setContent(d()),r.attrs["onUpdate:modelValue"]&&S$e(e,r,a,i),x$e(t,r.attrs,a)},Nme=0,ZOe=function(t){var e=Date.now(),r=Math.floor(Math.random()*1e9);return Nme++,t+"_"+r+Nme+String(e)},T$e=function(t){return t!==null&&t.tagName.toLowerCase()==="textarea"},Bme=function(t){return typeof t>"u"||t===""?[]:Array.isArray(t)?t:t.split(" ")},C$e=function(t,e){return Bme(t).concat(Bme(e))},k$e=function(t){return t==null},Qme=function(){return{listeners:[],scriptId:ZOe("tiny-script"),scriptLoaded:!1}},A$e=function(){var t=Qme(),e=function(i,d,f,m){var u=d.createElement("script");u.referrerPolicy="origin",u.type="application/javascript",u.id=i,u.src=f;var p=function(){u.removeEventListener("load",p),m()};u.addEventListener("load",p),d.head&&d.head.appendChild(u)},r=function(i,d,f){t.scriptLoaded?f():(t.listeners.push(f),i.getElementById(t.scriptId)||e(t.scriptId,i,d,function(){t.listeners.forEach(function(m){return m()}),t.scriptLoaded=!0}))},a=function(){t=Qme()};return{load:r,reinitialize:a}},P$e=A$e(),M$e=function(){return typeof window<"u"?window:global},mC=function(){var t=M$e();return t&&t.tinymce?t.tinymce:null},E$e={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return t==="html"||t==="text"}}},B1=globalThis&&globalThis.__assign||function(){return B1=Object.assign||function(t){for(var e,r=1,a=arguments.length;r[t.$devMode?(so(),Ts(cg,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:Yr(()=>[lt(Nv,{cols:11},{default:Yr(()=>[L$e]),_:1}),lt(Nv,{cols:1,class:"d-flex justify-end align-center py-0"},{default:Yr(()=>[lt(qa,{small:"",class:"mx-1",color:"primary",onClick:d.saveCell},{default:Yr(()=>[gi(" mdi-content-save ")]),_:1},8,["onClick"]),lt(qa,{small:"",class:"mx-1",color:"error",onClick:d.deleteCell},{default:Yr(()=>[gi(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):Nu("",!0),t.$devMode?(so(),Ts(f,{key:1,modelValue:r.cellData.code,"onUpdate:modelValue":e[0]||(e[0]=m=>r.cellData.code=m),init:t.init,onKeyUp:d.saveCell},null,8,["modelValue","init","onKeyUp"])):(so(),Ts(f,{key:2,modelValue:r.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=m=>r.cellData.code=m),init:t.init,disabled:!0},null,8,["modelValue","init"]))]),_:1}),t.$devMode?(so(),Ts(BS,{key:0,transition:"scale-transition"},{activator:Yr(({props:m})=>[lt(Nc,rs(m,{block:""}),{default:Yr(()=>[lt(cg,null,{default:Yr(()=>[lt(qa,{color:"primary"},{default:Yr(()=>[gi("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:Yr(()=>[lt(NS,null,{default:Yr(()=>[(so(!0),La(Go,null,Hf(t.items,(m,u)=>(so(),Ts(mg,{key:u},{default:Yr(()=>[lt(Nc,{block:"",onClick:p=>d.createCell(m.title)},{default:Yr(()=>[gi(yp(m.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})):Nu("",!0)],64)}const N$e=ny($$e,[["render",I$e]]),B$e=36,Fme=1,Q$e=2,SD=3,moe=4,F$e=5,V$e=6,z$e=7,Z$e=8,H$e=9,U$e=10,W$e=11,Y$e=12,X$e=13,G$e=14,j$e=15,q$e=16,K$e=17,Vme=18,J$e=19,HOe=20,UOe=21,zme=22,e9e=23,t9e=24;function tae(t){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57}function n9e(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function pC(t,e,r){for(let a=!1;;){if(t.next<0)return;if(t.next==e&&!a){t.advance();return}a=r&&!a&&t.next==92,t.advance()}}function r9e(t){for(;;){if(t.next<0||t.peek(1)<0)return;if(t.next==36&&t.peek(1)==36){t.advance(2);return}t.advance()}}function o9e(t,e){let r="[{<(".indexOf(String.fromCharCode(e)),a=r<0?e:"]}>)".charCodeAt(r);for(;;){if(t.next<0)return;if(t.next==a&&t.peek(1)==39){t.advance(2);return}t.advance()}}function WOe(t,e){for(;!(t.next!=95&&!tae(t.next));)e!=null&&(e+=String.fromCharCode(t.next)),t.advance();return e}function s9e(t){if(t.next==39||t.next==34||t.next==96){let e=t.next;t.advance(),pC(t,e,!1)}else WOe(t)}function Zme(t,e){for(;t.next==48||t.next==49;)t.advance();e&&t.next==e&&t.advance()}function Hme(t,e){for(;;){if(t.next==46){if(e)break;e=!0}else if(t.next<48||t.next>57)break;t.advance()}if(t.next==69||t.next==101)for(t.advance(),(t.next==43||t.next==45)&&t.advance();t.next>=48&&t.next<=57;)t.advance()}function Ume(t){for(;!(t.next<0||t.next==10);)t.advance()}function gC(t,e){for(let r=0;r!=&|~^/",specialVar:"?",identifierQuotes:'"',words:YOe(i9e,a9e)};function l9e(t,e,r,a){let i={};for(let d in nae)i[d]=(t.hasOwnProperty(d)?t:nae)[d];return e&&(i.words=YOe(e,r||"",a)),i}function XOe(t){return new hh(e=>{var r;let{next:a}=e;if(e.advance(),gC(a,goe)){for(;gC(e.next,goe);)e.advance();e.acceptToken(B$e)}else if(a==36&&e.next==36&&t.doubleDollarQuotedStrings)r9e(e),e.acceptToken(SD);else if(a==39||a==34&&t.doubleQuotedStrings)pC(e,a,t.backslashEscapes),e.acceptToken(SD);else if(a==35&&t.hashComments||a==47&&e.next==47&&t.slashComments)Ume(e),e.acceptToken(Fme);else if(a==45&&e.next==45&&(!t.spaceAfterDashes||e.peek(1)==32))Ume(e),e.acceptToken(Fme);else if(a==47&&e.next==42){e.advance();for(let i=1;;){let d=e.next;if(e.next<0)break;if(e.advance(),d==42&&e.next==47){if(i--,e.advance(),!i)break}else d==47&&e.next==42&&(i++,e.advance())}e.acceptToken(Q$e)}else if((a==101||a==69)&&e.next==39)e.advance(),pC(e,39,!0);else if((a==110||a==78)&&e.next==39&&t.charSetCasts)e.advance(),pC(e,39,t.backslashEscapes),e.acceptToken(SD);else if(a==95&&t.charSetCasts)for(let i=0;;i++){if(e.next==39&&i>1){e.advance(),pC(e,39,t.backslashEscapes),e.acceptToken(SD);break}if(!tae(e.next))break;e.advance()}else if(t.plsqlQuotingMechanism&&(a==113||a==81)&&e.next==39&&e.peek(1)>0&&!gC(e.peek(1),goe)){let i=e.peek(1);e.advance(2),o9e(e,i),e.acceptToken(SD)}else if(a==40)e.acceptToken(z$e);else if(a==41)e.acceptToken(Z$e);else if(a==123)e.acceptToken(H$e);else if(a==125)e.acceptToken(U$e);else if(a==91)e.acceptToken(W$e);else if(a==93)e.acceptToken(Y$e);else if(a==59)e.acceptToken(X$e);else if(t.unquotedBitLiterals&&a==48&&e.next==98)e.advance(),Zme(e),e.acceptToken(zme);else if((a==98||a==66)&&(e.next==39||e.next==34)){const i=e.next;e.advance(),t.treatBitsAsBytes?(pC(e,i,t.backslashEscapes),e.acceptToken(e9e)):(Zme(e,i),e.acceptToken(zme))}else if(a==48&&(e.next==120||e.next==88)||(a==120||a==88)&&e.next==39){let i=e.next==39;for(e.advance();n9e(e.next);)e.advance();i&&e.next==39&&e.advance(),e.acceptToken(moe)}else if(a==46&&e.next>=48&&e.next<=57)Hme(e,!0),e.acceptToken(moe);else if(a==46)e.acceptToken(G$e);else if(a>=48&&a<=57)Hme(e,!1),e.acceptToken(moe);else if(gC(a,t.operatorChars)){for(;gC(e.next,t.operatorChars);)e.advance();e.acceptToken(j$e)}else if(gC(a,t.specialVar))e.next==a&&e.advance(),s9e(e),e.acceptToken(K$e);else if(gC(a,t.identifierQuotes))pC(e,a,!1),e.acceptToken(J$e);else if(a==58||a==44)e.acceptToken(q$e);else if(tae(a)){let i=WOe(e,String.fromCharCode(a));e.acceptToken(e.next==46?Vme:(r=t.words[i.toLowerCase()])!==null&&r!==void 0?r:Vme)}})}const GOe=XOe(nae),c9e=AS.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,GOe],topRules:{Script:[0,25]},tokenPrec:0});function rae(t){let e=t.cursor().moveTo(t.from,-1);for(;/Comment/.test(e.name);)e.moveTo(e.from,-1);return e.node}function k$(t,e){let r=t.sliceString(e.from,e.to),a=/^([`'"])(.*)\1$/.exec(r);return a?a[2]:r}function WH(t){return t&&(t.name=="Identifier"||t.name=="QuotedIdentifier")}function u9e(t,e){if(e.name=="CompositeIdentifier"){let r=[];for(let a=e.firstChild;a;a=a.nextSibling)WH(a)&&r.push(k$(t,a));return r}return[k$(t,e)]}function Wme(t,e){for(let r=[];;){if(!e||e.name!=".")return r;let a=rae(e);if(!WH(a))return r;r.unshift(k$(t,a)),e=rae(a)}}function f9e(t,e){let r=rl(t).resolveInner(e,-1),a=h9e(t.doc,r);return r.name=="Identifier"||r.name=="QuotedIdentifier"||r.name=="Keyword"?{from:r.from,quoted:r.name=="QuotedIdentifier"?t.doc.sliceString(r.from,r.from+1):null,parents:Wme(t.doc,rae(r)),aliases:a}:r.name=="."?{from:e,quoted:null,parents:Wme(t.doc,r),aliases:a}:{from:e,quoted:null,parents:[],empty:!0,aliases:a}}const d9e=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function h9e(t,e){let r;for(let i=e;!r;i=i.parent){if(!i)return null;i.name=="Statement"&&(r=i)}let a=null;for(let i=r.firstChild,d=!1,f=null;i;i=i.nextSibling){let m=i.name=="Keyword"?t.sliceString(i.from,i.to).toLowerCase():null,u=null;if(!d)d=m=="from";else if(m=="as"&&f&&WH(i.nextSibling))u=k$(t,i.nextSibling);else{if(m&&d9e.has(m))break;f&&WH(i)&&(u=k$(t,i))}u&&(a||(a=Object.create(null)),a[u]=u9e(t,f)),f=/Identifier$/.test(i.name)?i:null}return a}function m9e(t,e){return t?e.map(r=>Object.assign(Object.assign({},r),{label:t+r.label+t,apply:void 0})):e}const g9e=/^\w*$/,p9e=/^[`'"]?\w*[`'"]?$/;class xle{constructor(){this.list=[],this.children=void 0}child(e,r){let a=this.children||(this.children=Object.create(null)),i=a[e];return i||(e&&this.list.push(jOe(e,"type",r)),a[e]=new xle)}addCompletions(e){for(let r of e){let a=this.list.findIndex(i=>i.label==r.label);a>-1?this.list[a]=r:this.list.push(r)}}}function jOe(t,e,r){return/[^\w\xb5-\uffff]/.test(t)?{label:t,type:e,apply:r+t+r}:{label:t,type:e}}function v9e(t,e,r,a,i,d){var f;let m=new xle,u=((f=d==null?void 0:d.spec.identifierQuotes)===null||f===void 0?void 0:f[0])||'"',p=m.child(i||"",u);for(let v in t){let y=v.replace(/\\?\./g,x=>x=="."?"\0":x).split("\0"),b=y.length==1?p:m;for(let x of y)b=b.child(x.replace(/\\\./g,"."),u);for(let x of t[v])x&&b.list.push(typeof x=="string"?jOe(x,"property",u):x)}return e&&p.addCompletions(e),r&&m.addCompletions(r),m.addCompletions(p.list),a&&m.addCompletions(p.child(a,u).list),v=>{let{parents:y,from:b,quoted:x,empty:k,aliases:C}=f9e(v.state,v.pos);if(k&&!v.explicit)return null;C&&y.length==1&&(y=C[y[0]]||y);let w=m;for(let M of y){for(;!w.children||!w.children[M];)if(w==m)w=p;else if(w==p&&a)w=w.child(a,u);else return null;w=w.child(M,u)}let T=x&&v.state.sliceDoc(v.pos,v.pos+1)==x,R=w.list;return w==m&&C&&(R=R.concat(Object.keys(C).map(M=>({label:M,type:"constant"})))),{from:b,to:T?v.pos+1:void 0,options:m9e(x,R),validFor:x?p9e:g9e}}}function y9e(t,e){let r=Object.keys(t).map(a=>({label:e?a.toUpperCase():a,type:t[a]==UOe?"type":t[a]==HOe?"keyword":"variable",boost:-1}));return pie(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],SU(r))}let b9e=c9e.configure({props:[BC.add({Statement:BD()}),DS.add({Statement(t){return{from:t.firstChild.to,to:t.to}},BlockComment(t){return{from:t.from+2,to:t.to-2}}}),RS({Keyword:Qt.keyword,Type:Qt.typeName,Builtin:Qt.standard(Qt.name),Bits:Qt.number,Bytes:Qt.string,Bool:Qt.bool,Null:Qt.null,Number:Qt.number,String:Qt.string,Identifier:Qt.name,QuotedIdentifier:Qt.special(Qt.string),SpecialVar:Qt.special(Qt.name),LineComment:Qt.lineComment,BlockComment:Qt.blockComment,Operator:Qt.operator,"Semi Punctuation":Qt.punctuation,"( )":Qt.paren,"{ }":Qt.brace,"[ ]":Qt.squareBracket})]});class Sle{constructor(e,r,a){this.dialect=e,this.language=r,this.spec=a}get extension(){return this.language.extension}static define(e){let r=l9e(e,e.keywords,e.types,e.builtin),a=CS.define({name:"sql",parser:b9e.configure({tokenizers:[{from:GOe,to:XOe(r)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new Sle(r,a,e)}}function O9e(t,e=!1){return y9e(t.dialect.words,e)}function x9e(t,e=!1){return t.language.data.of({autocomplete:O9e(t,e)})}function S9e(t){return t.schema?v9e(t.schema,t.tables,t.schemas,t.defaultTable,t.defaultSchema,t.dialect||wle):()=>null}function w9e(t){return t.schema?(t.dialect||wle).language.data.of({autocomplete:S9e(t)}):[]}function Yme(t={}){let e=t.dialect||wle;return new DC(e.language,[w9e(t),x9e(e,!!t.upperCaseKeywords)])}const wle=Sle.define({}),T9e={components:{codemirror:CU,"v-data-table":fle},computed:{extensions(){const t=()=>{this.runCode()},e=_S.of([{key:"Ctrl-Enter",run:()=>(t(),!0)}]);return this.$devMode?[Mp.highest(e),Yme(),cM,LC({override:[]})]:[Ia.readOnly.of(!0),Mp.highest(e),Yme(),cM,LC({override:[]})]}},data(){return{isFocused:!1,items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0}},setup(){const t=fs(null);return{view:t,handleReady:r=>{t.value=r.view}}},methods:{runCode(){this.$emit("runCode",this.cellData.id)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(t){this.$emit("createCell",this.cellData.id,t)},saveCell(){this.$devMode&&this.$emit("saveCell",this.cellData.id,this.cellData.code,"","")}}},C9e=kd("span",{class:"py-0 px-2"},".sql",-1),k9e={key:4},A9e=kd("p",{class:"text-caption text-disabled text-right"}," CTRL+Enter to run",-1),P9e=[A9e],M9e={class:"text-p"};function E9e(t,e,r,a,i,d){const f=q1("codemirror");return so(),La(Go,null,[lt(YC,{flat:"",color:"bluegrey"},{default:Yr(()=>[t.$devMode?(so(),Ts(cg,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:Yr(()=>[lt(Nv,{cols:11},{default:Yr(()=>[C9e]),_:1}),lt(Nv,{cols:1,class:"d-flex justify-end align-center py-0"},{default:Yr(()=>[lt(qa,{small:"",class:"mx-1",color:"primary",onClick:d.runCode},{default:Yr(()=>[gi(" mdi-play ")]),_:1},8,["onClick"]),lt(qa,{small:"",class:"mx-1",color:"error",onClick:d.deleteCell},{default:Yr(()=>[gi(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):Nu("",!0),t.$devMode?(so(),Ts(Zv,{key:1,modelValue:r.cellData.variable_name,"onUpdate:modelValue":e[0]||(e[0]=m=>r.cellData.variable_name=m),label:"Enter SQL variable name",density:"compact"},null,8,["modelValue"])):Nu("",!0),t.$devMode?(so(),Ts(f,{key:2,modelValue:r.cellData.code,"onUpdate:modelValue":e[1]||(e[1]=m=>r.cellData.code=m),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions,onKeyup:d.saveCell},null,8,["modelValue","extensions","onKeyup"])):(so(),Ts(Jye,{key:3},{default:Yr(()=>[lt(tbe,null,{default:Yr(()=>[lt(ile,{color:"bluegrey2"},{default:Yr(()=>[gi(" View Source Code ")]),_:1}),lt(ale,null,{default:Yr(()=>[t.$devMode?(so(),Ts(f,{key:0,modelValue:r.cellData.code,"onUpdate:modelValue":e[2]||(e[2]=m=>r.cellData.code=m),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])):Nu("",!0)]),_:1})]),_:1})]),_:1})),t.$devMode?(so(),La("div",k9e,P9e)):Nu("",!0),(so(!0),La(Go,null,Hf(r.cellData.components,m=>(so(),Ts(S$,{key:m.id},{default:Yr(()=>[(so(),Ts(sg(m.component),rs(m,{modelValue:m.value,"onUpdate:modelValue":u=>m.value=u},{[H1(m.triggerEvent)]:d.runCode}),null,16,["modelValue","onUpdate:modelValue"]))]),_:2},1024))),128)),kd("div",M9e,yp(r.cellData.output),1)]),_:1}),t.$devMode?(so(),Ts(BS,{key:0,transition:"scale-transition"},{activator:Yr(({props:m})=>[lt(Nc,rs(m,{block:""}),{default:Yr(()=>[lt(cg,null,{default:Yr(()=>[lt(qa,{color:"primary"},{default:Yr(()=>[gi("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:Yr(()=>[lt(NS,null,{default:Yr(()=>[(so(!0),La(Go,null,Hf(i.items,(m,u)=>(so(),Ts(mg,{key:u},{default:Yr(()=>[lt(Nc,{block:"",onClick:p=>d.createCell(m.title)},{default:Yr(()=>[gi(yp(m.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})):Nu("",!0)],64)}const _9e=ny(T9e,[["render",E9e]]),R9e={components:{codemirror:CU},data:()=>({updatingDependencies:!1}),props:{dependencies:{type:Object,required:!0}},computed:{extensions(){return[zOe(),cM,LC({override:[]})]}},methods:{async updateDependencies(){const t={dependencies:this.dependencies.value};await kZ.post("api/dependency_update",t),this.updatingDependencies=!1}}},D9e=kd("span",{class:"text-h5"},"Add Dependencies",-1);function $9e(t,e,r,a,i,d){const f=q1("codemirror");return so(),Ts(s6e,{modelValue:t.updatingDependencies,"onUpdate:modelValue":e[2]||(e[2]=m=>t.updatingDependencies=m),persistent:"",width:"1024"},{activator:Yr(({props:m})=>[lt(Nc,rs({color:"primary"},m,{icon:"mdi-graph"}),null,16)]),default:Yr(()=>[lt(YC,null,{default:Yr(()=>[lt(Wye,null,{default:Yr(()=>[D9e]),_:1}),t.$devMode?(so(),Ts(f,{key:0,modelValue:r.dependencies.value,"onUpdate:modelValue":e[0]||(e[0]=m=>r.dependencies.value=m),style:{height:"400px"},autofocus:!0,"indent-with-tab":!0,"tab-size":2,viewportMargin:1/0,extensions:d.extensions},null,8,["modelValue","extensions"])):Nu("",!0),lt(Uye,null,{default:Yr(()=>[lt(dbe),lt(Nc,{color:"blue-darken-1",variant:"text",onClick:e[1]||(e[1]=m=>t.updatingDependencies=!1)},{default:Yr(()=>[gi(" Close ")]),_:1}),lt(Nc,{color:"blue-darken-1",variant:"text",onClick:d.updateDependencies},{default:Yr(()=>[gi(" Update ")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const L9e=ny(R9e,[["render",$9e]]),I9e={components:{CodeComponent:x7e,MarkdownComponent:v$e,EditorComponent:N$e,SQLComponent:_9e,PackageComponent:L9e},data(){return{notebook:{},dependencies:{},completions:{},notebook_socket:null,save_socket:null,run_socket:null,stop_socket:null,timer:0,timerInterval:null,isCodeRunning:!1,requestQueue:[],componentChangeQueue:[],menu_items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},beforeMount(){window.addEventListener("beforeunload",this.clearState),window.addEventListener("unload",this.clearState)},beforeUnmount(){window.removeEventListener("beforeunload",this.clearState),window.removeEventListener("unload",this.clearState)},async mounted(){await this.initializeNotebookSocket(),await this.initializeRunSocket(),await this.initializeStopSocket(),this.$devMode&&await this.initializeSaveSocket(),this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send("")},methods:{startTimer(){this.timer=0,this.timerInterval=setInterval(()=>{this.timer++},1)},stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null)},async runCode(t){if(!t)return;const e=[],r={};for(let i in this.notebook.cells){const d={id:i,code:this.notebook.cells[i].code,variable_name:this.notebook.cells[i].variable_name||"",cellType:this.notebook.cells[i].cellType};for(const f of this.notebook.cells[i].components)r[f.id]=f.value;e.push(d)}const a={originId:t,cells:e,components:r};if(this.isCodeRunning){const i=this.requestQueue.findIndex(d=>d.originId===t);i!==-1?this.requestQueue[i]=a:this.requestQueue.push(a);return}this.sendRunCodeRequest(a)},sendRunCodeRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},initializeNotebookSocket(){return this.notebook_socket=new WebSocket("ws://localhost:1326/ws/notebook"),this.notebook_socket.onmessage=t=>{const e=JSON.parse(t.data);if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.complete)this.isCodeRunning=!1,this.stopTimer();else{const r=JSON.parse(e);if(r.notebook){this.notebook=r.notebook;for(let a in this.notebook.cells)if(this.notebook.cells[a].cellType==="code"){const i={completions:[]};this.completions[a]=i}this.dependencies=r.dependencies}else this.notebook.cells[r.id].components=r.components,this.notebook.cells[r.id].layout=r.layout}},new Promise((t,e)=>{this.notebook_socket.onopen=()=>{console.log("Notebook socket connected"),t()},this.notebook_socket.onerror=r=>{console.error("Notebook socket connection error:",r),e(r)}})},initializeRunSocket(){return this.run_socket=this.$devMode?new WebSocket("ws://localhost:1326/ws/run_code"):new WebSocket("ws://localhost:1326/ws/component_run"),this.run_socket.onmessage=t=>{const e=JSON.parse(t.data);if(!this.$devMode&&e.refresh)this.notebookRefresh();else if(e.cell_id)e.clear_output?this.notebook.cells[e.cell_id].output="":this.notebook.cells[e.cell_id].output=this.notebook.cells[e.cell_id].output.concat(e.output);else if(e.complete){if(this.isCodeRunning=!1,this.stopTimer(),this.$devMode&&this.requestQueue.length>0){const r=this.requestQueue.shift()||{};this.sendRunCodeRequest(r)}else if(!this.$devMode&&this.componentChangeQueue.length>0){const r=this.componentChangeQueue.shift()||{},a={originId:r.originId,components:r.components,userId:r.userId};this.sendComponentRequest(a)}}else{const r=JSON.parse(e);this.notebook.cells[r.id].components=r.components,this.notebook.cells[r.id].layout=r.layout}},new Promise((t,e)=>{this.run_socket.onopen=()=>{console.log("Run socket connected"),t()},this.run_socket.onerror=r=>{console.error("Run socket connection error:",r),e(r)}})},initializeSaveSocket(){return this.save_socket=new WebSocket("ws://localhost:1326/ws/save_text"),this.save_socket.onmessage=t=>{try{const e=JSON.parse(t.data);this.completions[e.cell_id]=Array.isArray(e.completions)?e.completions:[]}catch(e){console.error("Error parsing server message:",e)}},new Promise((t,e)=>{this.save_socket.onopen=()=>{console.log("Save socket connected"),t()},this.save_socket.onerror=r=>{console.error("Save socket connection error:",r),e(r)}})},initializeStopSocket(){return this.stop_socket=new WebSocket("ws://localhost:1326/ws/stop_execution"),new Promise((t,e)=>{this.stop_socket.onopen=()=>{console.log("Stop socket connected"),t()},this.stop_socket.onerror=r=>{console.error("Stop socket connection error:",r),e(r)}})},async componentValueChange(t,e,r){const a={};for(let f in this.notebook.cells)for(const m of this.notebook.cells[f].components)a[m.id]=m.value;const i={originId:t,componentId:e,components:a,userId:this.notebook.userId};if(this.isCodeRunning){const f=this.componentChangeQueue.findIndex(m=>m.componentId===e);f!==-1?this.componentChangeQueue[f]=i:this.componentChangeQueue.push(i);return}const d={originId:i.originId,components:i.components,userId:i.userId};this.sendComponentRequest(d)},sendComponentRequest(t){this.isCodeRunning=!0,this.startTimer(),this.run_socket.send(JSON.stringify(t))},async notebookRefresh(){this.isCodeRunning=!0,this.startTimer(),this.notebook_socket.send("start")},navigateToApp(){window.open("https://zero-true.com/")},clearState:function(){const e={userId:this.notebook.userId};kZ.post("api/clear_state",e)},async createCodeCell(t,e){const r={cellType:e.toLowerCase(),position_key:t},i=(await kZ.post("api/create_cell",r)).data;let d={};t||(d[i.id]=i);for(let f in this.notebook.cells)d[f]=this.notebook.cells[f],t===f&&(d[i.id]=i);i.cellType==="code"&&(this.completions[i.id]=[]),this.notebook.cells=d},async deleteCell(t){const e={cellId:t};await kZ.post("api/delete_cell",e),this.notebook.cells[t].cellType==="code"&&delete this.completions[t],delete this.notebook.cells[t]},async saveCell(t,e,r,a){const i={id:t,text:e,cellType:this.notebook.cells[t].cellType,line:r,column:a};this.save_socket.send(JSON.stringify(i))},async stopCodeExecution(){this.$devMode?(this.requestQueue=[],this.stop_socket.send("")):(this.componentChangeQueue=[],this.stop_socket.send(this.notebook.userId)),this.isCodeRunning=!1,this.stopTimer()},getComponent(t){switch(t){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${t}`)}}}};const N9e={key:0,class:"d-flex align-center"};function B9e(t,e,r,a,i,d){const f=q1("PackageComponent");return so(),Ts(FEe,{style:{"background-color":"#040607"}},{default:Yr(()=>[lt(t_e,{app:"",color:"bluegrey"},{default:Yr(()=>[lt(Nc,{size:"x-large",variant:"text",onClick:d.navigateToApp},{default:Yr(()=>[lt(qa,{start:"",size:"x-large",icon:"custom:ZTIcon"}),gi(" Zero-True ")]),_:1},8,["onClick"]),lt(dbe),i.isCodeRunning?(so(),La("div",N9e,[lt(uye,{indeterminate:"",color:"white",size:"24"}),lt(eM,{class:"ml-2",color:"white","text-color":"black"},{default:Yr(()=>[gi(yp(i.timer)+"ms ",1)]),_:1}),t.$devMode?(so(),Ts(eM,{key:0,class:"ml-2",color:"white","text-color":"black"},{default:Yr(()=>[gi(" Queue Length: "+yp(i.requestQueue.length),1)]),_:1})):(so(),Ts(eM,{key:1,class:"ml-2",color:"white","text-color":"black"},{default:Yr(()=>[gi(" Queue Length: "+yp(i.componentChangeQueue.length),1)]),_:1})),lt(qa,{large:"",color:"error",onClick:e[0]||(e[0]=m=>d.stopCodeExecution())},{default:Yr(()=>[gi(" mdi-stop ")]),_:1})])):Nu("",!0),t.$devMode?(so(),Ts(f,{key:1,dependencies:i.dependencies},null,8,["dependencies"])):Nu("",!0)]),_:1}),lt(x6e,null,{default:Yr(()=>[lt(S$,null,{default:Yr(()=>[t.$devMode?(so(),Ts(BS,{key:0,transition:"scale-transition"},{activator:Yr(({props:m})=>[lt(Nc,rs(m,{block:""}),{default:Yr(()=>[lt(cg,null,{default:Yr(()=>[lt(qa,{color:"primary"},{default:Yr(()=>[gi("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:Yr(()=>[lt(NS,null,{default:Yr(()=>[(so(!0),La(Go,null,Hf(i.menu_items,(m,u)=>(so(),Ts(mg,{key:u},{default:Yr(()=>[lt(Nc,{block:"",onClick:p=>d.createCodeCell("",m.title)},{default:Yr(()=>[gi(yp(m.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})):Nu("",!0)]),_:1}),(so(!0),La(Go,null,Hf(i.notebook.cells,m=>(so(),Ts(S$,null,{default:Yr(()=>[m.cellType==="code"?(so(),Ts(sg(d.getComponent(m.cellType)),{key:0,cellData:m,completions:i.completions[m.id],onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell},null,40,["cellData","completions","onRunCode","onSaveCell","onComponentChange","onDeleteCell","onCreateCell"])):(so(),Ts(sg(d.getComponent(m.cellType)),{key:1,cellData:m,onRunCode:d.runCode,onSaveCell:d.saveCell,onComponentChange:d.componentValueChange,onDeleteCell:d.deleteCell,onCreateCell:d.createCodeCell},null,40,["cellData","onRunCode","onSaveCell","onComponentChange","onDeleteCell","onCreateCell"]))]),_:2},1024))),256))]),_:1})]),_:1})}const Q9e=ny(I9e,[["render",B9e]]);const F9e="modulepreload",V9e=function(t,e){return new URL(t,e).href},Xme={},z9e=function(e,r,a){if(!r||r.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(r.map(d=>{if(d=V9e(d,a),d in Xme)return;Xme[d]=!0;const f=d.endsWith(".css"),m=f?'[rel="stylesheet"]':"";if(!!a)for(let v=i.length-1;v>=0;v--){const y=i[v];if(y.href===d&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${m}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":F9e,f||(p.as="script",p.crossOrigin=""),p.href=d,document.head.appendChild(p),f)return new Promise((v,y)=>{p.addEventListener("load",v),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${d}`)))})})).then(()=>e()).catch(d=>{const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=d,window.dispatchEvent(f),!f.defaultPrevented)throw d})};async function Z9e(){(await z9e(()=>import("./webfontloader-af111efa.js").then(e=>e.w),[],import.meta.url)).load({google:{families:["Pathway+Extreme:100,300,400,500,700,900&display=swap"]}})}const H9e={},U9e={id:"Capa_2","data-name":"Capa 2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 92.58 61.58"},W9e=kd("g",{id:"Capa_1-2","data-name":"Capa 1"},[kd("g",null,[kd("path",{class:"cls-1",d:"m77.14,15.44L61.7,0h-30.82l30.82,30.82v30.76l15.44-15.32,15.44-15.44-15.44-15.38Z"}),kd("path",{class:"cls-1",d:"m15.44,46.14l15.44,15.44h30.82l-30.82-30.82V0l-15.44,15.32L0,30.76l15.44,15.38Z"})])],-1),Y9e=[W9e];function X9e(t,e){return so(),La("svg",U9e,Y9e)}const G9e=ny(H9e,[["render",X9e]]),oae={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function j9e(t,e){const r=[];let a=[];const i=qOe(t),d=KOe(t),f=(i.getDay()-oae[e.slice(-2).toUpperCase()]+7)%7,m=(d.getDay()-oae[e.slice(-2).toUpperCase()]+7)%7;for(let u=0;u{const a=new Date(Gme);return a.setDate(Gme.getDate()+e+r),new Intl.DateTimeFormat(t,{weekday:"narrow"}).format(a)})}function tLe(t,e,r){const a=new Date(t);let i={};switch(e){case"fullDateWithWeekday":i={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"normalDateWithWeekday":i={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":i={};break;case"monthAndDate":i={month:"long",day:"numeric"};break;case"monthAndYear":i={month:"long",year:"numeric"};break;case"dayOfMonth":i={day:"numeric"};break;case"shortDate":i={year:"numeric"};break;default:i={timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(r,i).format(a)}function nLe(t,e){const r=new Date(t);return r.setDate(r.getDate()+e),r}function rLe(t,e){const r=new Date(t);return r.setMonth(r.getMonth()+e),r}function oLe(t){return t.getFullYear()}function sLe(t){return t.getMonth()}function aLe(t){return new Date(t.getFullYear(),0,1)}function iLe(t){return new Date(t.getFullYear(),11,31)}function lLe(t,e){return sae(t,e[0])&&uLe(t,e[1])}function cLe(t){if(!t||t==null)return!1;const e=new Date(t);return e instanceof Date&&!isNaN(e.getTime())}function sae(t,e){return t.getTime()>e.getTime()}function uLe(t,e){return t.getTime()0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:e,...r}=t,a=Sp(e,r),{aliases:i={},components:d={},directives:f={}}=a,m=pEe(a.defaults),u=T8e(a.display,a.ssr),p=BEe(a.theme),v=c_e(a.icons),y=LEe(a.locale),b=yLe(a.date);return{install:k=>{for(const C in f)k.directive(C,f[C]);for(const C in d)k.component(C,d[C]);for(const C in i)k.component(C,AM({...i[C],name:C,aliasName:i[C].name}));if(p.install(k),k.provide(hM,m),k.provide(zse,u),k.provide($H,p),k.provide(Lse,v),k.provide(DH,y),k.provide(qme,b),Fl&&a.ssr)if(k.$nuxt)k.$nuxt.hook("app:suspense:resolve",()=>{u.update()});else{const{mount:C}=k;k.mount=function(){const w=C(...arguments);return ec(()=>u.update()),k.mount=C,w}}Wv.reset(),k.mixin({computed:{$vuetify(){return tm({defaults:$P.call(this,hM),display:$P.call(this,zse),theme:$P.call(this,$H),icons:$P.call(this,Lse),locale:$P.call(this,DH),date:$P.call(this,qme)})}}})},defaults:m,display:u,theme:p,icons:v,locale:y,date:b}}const bLe="3.3.20";JOe.version=bLe;function $P(t){var a,i;const e=this.$,r=((a=e.parent)==null?void 0:a.provides)??((i=e.vnode.appContext)==null?void 0:i.provides);if(r&&t in r)return r[t]}const OLe={ZTIcon:G9e},xLe={component:t=>hg(t.tag,[hg(OLe[t.icon],{class:"v-icon__svg"})])},SLe=JOe({theme:{defaultTheme:"light",themes:{light:{dark:!0,colors:{primary:"#AE9FE8",secondary:"#424242",bluegrey:"#0E1B23",bluegrey2:"#1B2F3C",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E"}}}},icons:{defaultSet:"mdi",sets:{mdi:aye,custom:xLe}}});function wLe(t){Z9e(),t.use(SLe)}const Tle=mTe(Q9e);wLe(Tle);Tle.config.globalProperties.$devMode=!0;Tle.mount("#app");export{pTe as g}; diff --git a/zt_backend/dist_dev/assets/index-9d4f0e04.css b/zt_backend/dist_dev/assets/index-b4b3b1e9.css similarity index 56% rename from zt_backend/dist_dev/assets/index-9d4f0e04.css rename to zt_backend/dist_dev/assets/index-b4b3b1e9.css index f5299ac2..f9b6a270 100644 --- a/zt_backend/dist_dev/assets/index-9d4f0e04.css +++ b/zt_backend/dist_dev/assets/index-b4b3b1e9.css @@ -1,4 +1,4 @@ -.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-toolbar{align-items:flex-start;display:flex;flex:none;flex-direction:column;justify-content:space-between;max-width:100%;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom,box-shadow;width:100%;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:0;background:rgb(var(--v-theme-on-surface-variant));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-toolbar--border{border-width:thin;box-shadow:none}.v-toolbar--absolute{position:absolute}.v-toolbar--collapse{max-width:112px;overflow:hidden}.v-toolbar--collapse .v-toolbar-title{display:none}.v-locale--is-ltr.v-toolbar--collapse,.v-locale--is-ltr .v-toolbar--collapse{border-bottom-right-radius:24px}.v-locale--is-rtl.v-toolbar--collapse,.v-locale--is-rtl .v-toolbar--collapse{border-bottom-left-radius:24px}.v-toolbar--flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-toolbar--floating{display:inline-flex}.v-toolbar--rounded{border-radius:4px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;flex:0 0 auto;position:relative;transition:inherit;width:100%}.v-toolbar__content>.v-btn:first-child{margin-inline-start:10px}.v-toolbar__content>.v-btn:last-child{margin-inline-end:10px}.v-toolbar__content>.v-toolbar-title{margin-inline-start:16px}.v-toolbar--density-prominent .v-toolbar__content{align-items:flex-start}.v-toolbar__image{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;opacity:var(--v-toolbar-image-opacity, 1);transition-property:opacity}.v-toolbar__prepend,.v-toolbar__append{align-items:center;align-self:stretch;display:flex}.v-toolbar__prepend{margin-inline-start:10px;margin-inline-end:auto}.v-toolbar__append{margin-inline-start:auto;margin-inline-end:10px}.v-toolbar-title{flex:1 1;min-width:0;font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.75rem;text-transform:none}.v-toolbar--density-prominent .v-toolbar-title{align-self:flex-end;padding-bottom:6px;font-size:1.5rem;font-weight:400;letter-spacing:0;line-height:2.25rem;text-transform:none}.v-toolbar-title__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar-items{display:flex;height:inherit;align-self:stretch}.v-toolbar-items>.v-btn{border-radius:0}.v-img{--v-theme-overlay-multiplier: 3;z-index:0}.v-img--booting .v-responsive__sizer{transition:none}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%}.v-img__img--preload{filter:blur(4px)}.v-img__img--contain{object-fit:contain}.v-img__img--cover{object-fit:cover}.v-img__gradient{background-repeat:no-repeat}.v-responsive{display:flex;flex:1 0 auto;max-height:100%;max-width:100%;overflow:hidden;position:relative}.v-responsive--inline{display:inline-flex;flex:0 0 auto}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-responsive__sizer~.v-responsive__content{margin-inline-start:-100%}.v-responsive__sizer{flex:1 0 0px;transition:padding-bottom .2s cubic-bezier(.4,0,.2,1);pointer-events:none}.v-btn{align-items:center;border-radius:4px;display:inline-grid;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;font-weight:500;justify-content:center;letter-spacing:.0892857143em;line-height:normal;max-width:100%;outline:none;position:relative;text-decoration:none;text-indent:.0892857143em;text-transform:uppercase;transition-property:box-shadow,transform,opacity,background;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;vertical-align:middle;flex-shrink:0;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 20px;font-size:var(--v-btn-size);min-width:36px;padding:0 8px}.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 28px;font-size:var(--v-btn-size);min-width:50px;padding:0 12px}.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 36px;font-size:var(--v-btn-size);min-width:64px;padding:0 16px}.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 44px;font-size:var(--v-btn-size);min-width:78px;padding:0 20px}.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 52px;font-size:var(--v-btn-size);min-width:92px;padding:0 24px}.v-btn.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -8px)}.v-btn.v-btn--density-compact{height:calc(var(--v-btn-height) + -12px)}.v-btn--border{border-width:thin;box-shadow:none}.v-btn--absolute{position:absolute}.v-btn--fixed{position:fixed}.v-btn:hover>.v-btn__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-btn:focus-visible>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn:focus>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-btn--active>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn--active:hover>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn--active:focus-visible>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn--active:focus>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn--variant-plain,.v-btn--variant-outlined,.v-btn--variant-text,.v-btn--variant-tonal{background:transparent;color:inherit}.v-btn--variant-plain{opacity:.62}.v-btn--variant-plain:focus,.v-btn--variant-plain:hover{opacity:1}.v-btn--variant-plain .v-btn__overlay{display:none}.v-btn--variant-elevated,.v-btn--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn--variant-elevated{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-outlined{border:thin solid currentColor}.v-btn--variant-text .v-btn__overlay{background:currentColor}.v-btn--variant-tonal .v-btn__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}@supports selector(:focus-visible){.v-btn:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn:focus-visible:after{opacity:calc(.25 * var(--v-theme-overlay-multiplier))}}.v-btn--icon{border-radius:50%;min-width:0;padding:0}.v-btn--icon.v-btn--size-default{--v-btn-size: 1rem}.v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 12px)}.v-btn--icon.v-btn--density-comfortable{width:calc(var(--v-btn-height) + 0px);height:calc(var(--v-btn-height) + 0px)}.v-btn--icon.v-btn--density-compact{width:calc(var(--v-btn-height) + -8px);height:calc(var(--v-btn-height) + -8px)}.v-btn--elevated:hover,.v-btn--elevated:focus{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--elevated:active{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--flat{box-shadow:none}.v-btn--block{display:flex;flex:1 0 auto;min-width:100%}.v-btn--disabled{pointer-events:none;opacity:.26}.v-btn--disabled:hover{opacity:.26}.v-btn--disabled.v-btn--variant-elevated,.v-btn--disabled.v-btn--variant-flat{box-shadow:none;opacity:1;color:rgba(var(--v-theme-on-surface),.26);background:rgb(var(--v-theme-surface))}.v-btn--disabled.v-btn--variant-elevated .v-btn__overlay,.v-btn--disabled.v-btn--variant-flat .v-btn__overlay{opacity:.4615384615}.v-btn--loading{pointer-events:none}.v-btn--loading .v-btn__content,.v-btn--loading .v-btn__prepend,.v-btn--loading .v-btn__append{opacity:0}.v-btn--stacked{grid-template-areas:"prepend" "content" "append";grid-template-columns:auto;grid-template-rows:max-content max-content max-content;justify-items:center;align-content:center}.v-btn--stacked .v-btn__content{flex-direction:column;line-height:1.25}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--start,.v-btn--stacked .v-btn__content>.v-icon--end{margin-inline-start:0;margin-inline-end:0}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__content>.v-icon--start{margin-bottom:4px}.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--end{margin-top:4px}.v-btn--stacked.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 56px;font-size:var(--v-btn-size);min-width:56px;padding:0 12px}.v-btn--stacked.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 64px;font-size:var(--v-btn-size);min-width:64px;padding:0 14px}.v-btn--stacked.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 72px;font-size:var(--v-btn-size);min-width:72px;padding:0 16px}.v-btn--stacked.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 80px;font-size:var(--v-btn-size);min-width:80px;padding:0 18px}.v-btn--stacked.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 88px;font-size:var(--v-btn-size);min-width:88px;padding:0 20px}.v-btn--stacked.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn--stacked.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -16px)}.v-btn--stacked.v-btn--density-compact{height:calc(var(--v-btn-height) + -24px)}.v-btn--rounded{border-radius:24px}.v-btn--rounded.v-btn--icon{border-radius:4px}.v-btn .v-icon{--v-icon-size-multiplier: .8571428571}.v-btn--icon .v-icon{--v-icon-size-multiplier: 1}.v-btn--stacked .v-icon{--v-icon-size-multiplier: 1.1428571429}.v-btn__loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-btn__content,.v-btn__prepend,.v-btn__append{align-items:center;display:flex;transition:transform,opacity .2s cubic-bezier(.4,0,.2,1)}.v-btn__prepend{grid-area:prepend;margin-inline-start:calc(var(--v-btn-height) / -9);margin-inline-end:calc(var(--v-btn-height) / 4.5)}.v-btn__append{grid-area:append;margin-inline-start:calc(var(--v-btn-height) / 4.5);margin-inline-end:calc(var(--v-btn-height) / -9)}.v-btn__content{grid-area:content;justify-content:center;white-space:nowrap}.v-btn__content>.v-icon--start{margin-inline-start:calc(var(--v-btn-height) / -9);margin-inline-end:calc(var(--v-btn-height) / 4.5)}.v-btn__content>.v-icon--end{margin-inline-start:calc(var(--v-btn-height) / 4.5);margin-inline-end:calc(var(--v-btn-height) / -9)}.v-btn--stacked .v-btn__content{white-space:normal}.v-btn__overlay{background-color:currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn__overlay,.v-btn__underlay{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.v-card-actions .v-btn{padding:0 8px}.v-card-actions .v-btn~.v-btn:not(.v-btn-toggle .v-btn){margin-inline-start:.5rem}.v-banner-actions .v-btn{padding:0 8px}.v-pagination .v-btn{border-radius:4px}.v-btn__overlay{transition:none}.v-pagination__item--is-active .v-btn__overlay{opacity:var(--v-border-opacity)}.v-snackbar-actions .v-btn{padding:0 8px}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled)>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn-group{display:inline-flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow:hidden;vertical-align:middle;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px;background:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn-group--border{border-width:thin;box-shadow:none}.v-btn-group--density-default.v-btn-group{height:48px}.v-btn-group--density-comfortable.v-btn-group{height:40px}.v-btn-group--density-compact.v-btn-group{height:36px}.v-btn-group .v-btn{border-radius:0;border-color:inherit}.v-btn-group .v-btn:not(:last-child){border-inline-end:none}.v-btn-group .v-btn:not(:first-child){border-inline-start:none}.v-btn-group .v-btn:first-child{border-start-start-radius:inherit;border-end-start-radius:inherit}.v-btn-group .v-btn:last-child{border-start-end-radius:inherit;border-end-end-radius:inherit}.v-btn-group--divided .v-btn:not(:last-child){border-inline-end-width:thin;border-inline-end-style:solid;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-btn-group--tile{border-radius:0}.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}.v-progress-circular{align-items:center;display:inline-flex;justify-content:center;position:relative;vertical-align:middle}.v-progress-circular>svg{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:0}.v-progress-circular__content{align-items:center;display:flex;justify-content:center}.v-progress-circular__underlay{color:rgba(var(--v-border-color),var(--v-border-opacity));stroke:currentColor;z-index:1}.v-progress-circular__overlay{stroke:currentColor;transition:all .2s ease-in-out,stroke-width 0s;z-index:2}.v-progress-circular--size-x-small{height:16px;width:16px}.v-progress-circular--size-small{height:24px;width:24px}.v-progress-circular--size-default{height:32px;width:32px}.v-progress-circular--size-large{height:48px;width:48px}.v-progress-circular--size-x-large{height:64px;width:64px}.v-progress-circular--indeterminate>svg{animation:progress-circular-rotate 1.4s linear infinite;transform-origin:center center;transition:all .2s ease-in-out}.v-progress-circular--indeterminate .v-progress-circular__overlay{animation:progress-circular-dash 1.4s ease-in-out infinite,progress-circular-rotate 1.4s linear infinite;stroke-dasharray:25,200;stroke-dashoffset:0;stroke-linecap:round;transform-origin:center center;transform:rotate(-90deg)}.v-progress-circular--disable-shrink>svg{animation-duration:.7s}.v-progress-circular--disable-shrink .v-progress-circular__overlay{animation:none}.v-progress-circular--indeterminate:not(.v-progress-circular--visible)>svg,.v-progress-circular--indeterminate:not(.v-progress-circular--visible) .v-progress-circular__overlay{animation-play-state:paused!important}@keyframes progress-circular-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-rotate{to{transform:rotate(270deg)}}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);width:100%}.v-progress-linear__background{background:currentColor;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;top:0;transition-property:width,left,right;transition:inherit}.v-progress-linear__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%}.v-progress-linear__determinate,.v-progress-linear__indeterminate{background:currentColor}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear__indeterminate .long,.v-progress-linear__indeterminate .short{animation-play-state:paused;animation-duration:2.2s;animation-iteration-count:infinite;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto;will-change:left,right}.v-progress-linear__indeterminate .long{animation-name:indeterminate-ltr}.v-progress-linear__indeterminate .short{animation-name:indeterminate-short-ltr}.v-progress-linear__stream{animation:stream .25s infinite linear;animation-play-state:paused;bottom:0;left:auto;opacity:.3;pointer-events:none;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear--reverse .v-progress-linear__background,.v-progress-linear--reverse .v-progress-linear__determinate,.v-progress-linear--reverse .v-progress-linear__content,.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate .long{animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate .short{animation-name:indeterminate-short-rtl}.v-progress-linear--reverse .v-progress-linear__stream{right:auto}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--rounded{border-radius:9999px}.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__indeterminate{border-radius:inherit}.v-progress-linear--striped .v-progress-linear__determinate{animation:progress-linear-stripes 1s infinite linear;background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-repeat:repeat;background-size:var(--v-progress-linear-height)}.v-progress-linear--active .v-progress-linear__indeterminate .long,.v-progress-linear--active .v-progress-linear__indeterminate .short,.v-progress-linear--active .v-progress-linear__stream{animation-play-state:running}.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded-bar .v-progress-linear__indeterminate,.v-progress-linear--rounded-bar .v-progress-linear__stream+.v-progress-linear__background{border-radius:9999px}.v-locale--is-ltr.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-locale--is-ltr .v-progress-linear--rounded-bar .v-progress-linear__determinate{border-top-left-radius:0;border-bottom-left-radius:0}.v-locale--is-rtl.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-locale--is-rtl .v-progress-linear--rounded-bar .v-progress-linear__determinate{border-top-right-radius:0;border-bottom-right-radius:0}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes stream{to{transform:translate(var(--v-progress-linear-stream-to))}}@keyframes progress-linear-stripes{0%{background-position-x:var(--v-progress-linear-height)}}.v-ripple__container{color:inherit;border-radius:inherit;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;z-index:0;pointer-events:none;contain:strict}.v-ripple__animation{color:inherit;position:absolute;top:0;left:0;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;overflow:hidden;will-change:transform,opacity}.v-ripple__animation--enter{transition:none;opacity:0}.v-ripple__animation--in{transition:transform .25s cubic-bezier(0,0,.2,1),opacity .1s cubic-bezier(0,0,.2,1);opacity:calc(.25 * var(--v-theme-overlay-multiplier))}.v-ripple__animation--out{transition:opacity .3s cubic-bezier(0,0,.2,1);opacity:0}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{align-self:flex-start;flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-on-surface-variant))}.v-autocomplete__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:90%}.v-autocomplete__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single.v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline-start:inherit;padding-inline-end:inherit}.v-autocomplete--single .v-field--variant-outlined input{top:50%;transform:translateY(calc(-50% - (var(--v-input-chips-margin-top) + var(--v-input-chips-margin-bottom)) / 2))}.v-autocomplete--single .v-field--active input{transition:none}.v-autocomplete--single .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error .v-label,.v-selection-control--disabled .v-label{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-label{align-items:center;color:inherit;display:inline-flex;font-size:1rem;letter-spacing:.009375em;min-width:0;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-label--clickable{cursor:pointer}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap}.v-input{display:grid;flex:1 1 auto;font-size:1rem;font-weight:400;line-height:1.5;--v-input-chips-margin-top: 2px}.v-input--disabled{pointer-events:none}.v-input--density-default{--v-input-control-height: 56px;--v-input-padding-top: 15px}.v-input--density-comfortable{--v-input-control-height: 48px;--v-input-padding-top: 11px}.v-input--density-compact{--v-input-control-height: 40px;--v-input-padding-top: 7px}.v-input--density-default{--v-input-chips-margin-bottom: 0px}.v-input--density-comfortable{--v-input-chips-margin-bottom: 2px}.v-input--density-compact{--v-input-chips-margin-bottom: 4px}.v-input--vertical{grid-template-areas:"append" "control" "prepend";grid-template-rows:max-content auto max-content;grid-template-columns:min-content}.v-input--vertical .v-input__prepend{margin-block-start:16px}.v-input--vertical .v-input__append{margin-block-end:16px}.v-input--horizontal{grid-template-areas:"prepend control append" "a messages b";grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-rows:auto auto}.v-input--horizontal .v-input__prepend{margin-inline-end:16px}.v-input--horizontal .v-input__append{margin-inline-start:16px}.v-input__details{align-items:flex-end;display:flex;font-size:.75rem;font-weight:400;grid-area:messages;letter-spacing:.0333333333em;line-height:normal;min-height:22px;padding-top:6px;overflow:hidden;justify-content:space-between}.v-input__details>.v-icon,.v-input__prepend>.v-icon,.v-input__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-input--disabled .v-input__details>.v-icon,.v-input--disabled .v-input__details .v-messages,.v-input--error .v-input__details>.v-icon,.v-input--error .v-input__details .v-messages,.v-input--disabled .v-input__prepend>.v-icon,.v-input--disabled .v-input__prepend .v-messages,.v-input--error .v-input__prepend>.v-icon,.v-input--error .v-input__prepend .v-messages,.v-input--disabled .v-input__append>.v-icon,.v-input--disabled .v-input__append .v-messages,.v-input--error .v-input__append>.v-icon,.v-input--error .v-input__append .v-messages{opacity:1}.v-input--disabled .v-input__details,.v-input--disabled .v-input__prepend,.v-input--disabled .v-input__append{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-input__details>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__details .v-messages,.v-input--error:not(.v-input--disabled) .v-input__prepend>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__prepend .v-messages,.v-input--error:not(.v-input--disabled) .v-input__append>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__append .v-messages{color:rgb(var(--v-theme-error))}.v-input__prepend,.v-input__append{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top)}.v-input--center-affix .v-input__prepend,.v-input--center-affix .v-input__append{align-items:center;padding-top:0}.v-input__prepend{grid-area:prepend}.v-input__append{grid-area:append}.v-input__control{display:flex;grid-area:control}.v-messages{flex:1 1 auto;font-size:12px;min-height:14px;min-width:1px;opacity:var(--v-medium-emphasis-opacity);position:relative}.v-messages__message{line-height:12px;word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;transition-duration:.15s}.v-chip{align-items:center;cursor:default;display:inline-flex;font-weight:400;max-width:100%;min-width:0;overflow:hidden;position:relative;text-decoration:none;white-space:nowrap;vertical-align:middle;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;border-radius:9999px}.v-chip.v-chip--size-x-small{--v-chip-size: .625rem;--v-chip-height: 18px;font-size:.625rem;padding:0 7px}.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 12px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 18px}.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-4.9px;margin-inline-end:3.5px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-7px}.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-start:3.5px;margin-inline-end:-4.9px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-end:-7px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close{margin-inline-start:10.5px}.v-chip.v-chip--size-x-small .v-icon--start,.v-chip.v-chip--size-x-small .v-chip__filter{margin-inline-start:-3.5px;margin-inline-end:3.5px}.v-chip.v-chip--size-x-small .v-icon--end,.v-chip.v-chip--size-x-small .v-chip__close{margin-inline-start:3.5px;margin-inline-end:-3.5px}.v-chip.v-chip--size-x-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-chip__append+.v-chip__close{margin-inline-start:7px}.v-chip.v-chip--size-small{--v-chip-size: .75rem;--v-chip-height: 24px;font-size:.75rem;padding:0 9px}.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 18px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 24px}.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-6.3px;margin-inline-end:4.5px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-9px}.v-chip.v-chip--size-small .v-avatar--end{margin-inline-start:4.5px;margin-inline-end:-6.3px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end{margin-inline-end:-9px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close{margin-inline-start:13.5px}.v-chip.v-chip--size-small .v-icon--start,.v-chip.v-chip--size-small .v-chip__filter{margin-inline-start:-4.5px;margin-inline-end:4.5px}.v-chip.v-chip--size-small .v-icon--end,.v-chip.v-chip--size-small .v-chip__close{margin-inline-start:4.5px;margin-inline-end:-4.5px}.v-chip.v-chip--size-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-small .v-chip__append+.v-chip__close{margin-inline-start:9px}.v-chip.v-chip--size-default{--v-chip-size: .875rem;--v-chip-height: 30px;font-size:.875rem;padding:0 11px}.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 24px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 30px}.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-7.7px;margin-inline-end:5.5px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-11px}.v-chip.v-chip--size-default .v-avatar--end{margin-inline-start:5.5px;margin-inline-end:-7.7px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end{margin-inline-end:-11px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close{margin-inline-start:16.5px}.v-chip.v-chip--size-default .v-icon--start,.v-chip.v-chip--size-default .v-chip__filter{margin-inline-start:-5.5px;margin-inline-end:5.5px}.v-chip.v-chip--size-default .v-icon--end,.v-chip.v-chip--size-default .v-chip__close{margin-inline-start:5.5px;margin-inline-end:-5.5px}.v-chip.v-chip--size-default .v-icon--end+.v-chip__close,.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-default .v-chip__append+.v-chip__close{margin-inline-start:11px}.v-chip.v-chip--size-large{--v-chip-size: 1rem;--v-chip-height: 36px;font-size:1rem;padding:0 14px}.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 30px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 36px}.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-9.8px;margin-inline-end:7px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-14px}.v-chip.v-chip--size-large .v-avatar--end{margin-inline-start:7px;margin-inline-end:-9.8px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end{margin-inline-end:-14px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close{margin-inline-start:21px}.v-chip.v-chip--size-large .v-icon--start,.v-chip.v-chip--size-large .v-chip__filter{margin-inline-start:-7px;margin-inline-end:7px}.v-chip.v-chip--size-large .v-icon--end,.v-chip.v-chip--size-large .v-chip__close{margin-inline-start:7px;margin-inline-end:-7px}.v-chip.v-chip--size-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-large .v-chip__append+.v-chip__close{margin-inline-start:14px}.v-chip.v-chip--size-x-large{--v-chip-size: 1.125rem;--v-chip-height: 42px;font-size:1.125rem;padding:0 16px}.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 36px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 42px}.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-11.2px;margin-inline-end:8px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-16px}.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-start:8px;margin-inline-end:-11.2px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-end:-16px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close{margin-inline-start:24px}.v-chip.v-chip--size-x-large .v-icon--start,.v-chip.v-chip--size-x-large .v-chip__filter{margin-inline-start:-8px;margin-inline-end:8px}.v-chip.v-chip--size-x-large .v-icon--end,.v-chip.v-chip--size-x-large .v-chip__close{margin-inline-start:8px;margin-inline-end:-8px}.v-chip.v-chip--size-x-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-chip__append+.v-chip__close{margin-inline-start:16px}.v-chip.v-chip--density-default{height:calc(var(--v-chip-height) + 0px)}.v-chip.v-chip--density-comfortable{height:calc(var(--v-chip-height) + -8px)}.v-chip.v-chip--density-compact{height:calc(var(--v-chip-height) + -12px)}.v-chip:hover>.v-chip__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-chip:focus-visible>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip:focus>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-chip--active>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]>.v-chip__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-chip--active:hover>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:hover>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-chip--active:focus-visible>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip--active:focus>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-chip--variant-plain,.v-chip--variant-outlined,.v-chip--variant-text,.v-chip--variant-tonal{background:transparent;color:inherit}.v-chip--variant-plain{opacity:.26}.v-chip--variant-plain:focus,.v-chip--variant-plain:hover{opacity:1}.v-chip--variant-plain .v-chip__overlay{display:none}.v-chip--variant-elevated,.v-chip--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-chip--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-outlined{border:thin solid currentColor}.v-chip--variant-text .v-chip__overlay{background:currentColor}.v-chip--variant-tonal .v-chip__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-chip--border{border-width:thin}.v-chip--link{cursor:pointer}.v-chip--filter{-webkit-user-select:none;user-select:none}.v-chip__content{align-items:center;display:inline-flex}.v-autocomplete__selection .v-chip__content,.v-combobox__selection .v-chip__content,.v-select__selection .v-chip__content{overflow:hidden}.v-chip__filter,.v-chip__prepend,.v-chip__append,.v-chip__close{align-items:center;display:inline-flex}.v-chip__close{cursor:pointer;flex:0 1 auto;font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;user-select:none}.v-chip__close .v-icon{font-size:inherit}.v-chip__filter{transition:.15s cubic-bezier(.4,0,.2,1)}.v-chip__overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:currentColor;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-chip--disabled{opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none}.v-chip--label{border-radius:4px}.v-avatar{flex:none;align-items:center;display:inline-flex;justify-content:center;line-height:normal;overflow:hidden;position:relative;text-align:center;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:width,height;vertical-align:middle;border-radius:50%}.v-avatar.v-avatar--size-x-small{--v-avatar-height: 24px}.v-avatar.v-avatar--size-small{--v-avatar-height: 32px}.v-avatar.v-avatar--size-default{--v-avatar-height: 40px}.v-avatar.v-avatar--size-large{--v-avatar-height: 48px}.v-avatar.v-avatar--size-x-large{--v-avatar-height: 56px}.v-avatar.v-avatar--density-default{height:calc(var(--v-avatar-height) + 0px);width:calc(var(--v-avatar-height) + 0px)}.v-avatar.v-avatar--density-comfortable{height:calc(var(--v-avatar-height) + -4px);width:calc(var(--v-avatar-height) + -4px)}.v-avatar.v-avatar--density-compact{height:calc(var(--v-avatar-height) + -8px);width:calc(var(--v-avatar-height) + -8px)}.v-avatar--variant-plain,.v-avatar--variant-outlined,.v-avatar--variant-text,.v-avatar--variant-tonal{background:transparent;color:inherit}.v-avatar--variant-plain{opacity:.62}.v-avatar--variant-plain:focus,.v-avatar--variant-plain:hover{opacity:1}.v-avatar--variant-plain .v-avatar__overlay{display:none}.v-avatar--variant-elevated,.v-avatar--variant-flat{background:var(--v-theme-surface);color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-avatar--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-outlined{border:thin solid currentColor}.v-avatar--variant-text .v-avatar__overlay{background:currentColor}.v-avatar--variant-tonal .v-avatar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-avatar--rounded{border-radius:4px}.v-avatar .v-img{height:100%;width:100%}.v-chip-group{display:flex;max-width:100%;min-width:0;overflow-x:auto;padding:4px 0;flex-wrap:wrap}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip.v-chip--selected:not(.v-chip--disabled) .v-chip__overlay{opacity:var(--v-activated-opacity)}.v-chip-group--column{flex-wrap:wrap;white-space:normal}.v-list{overflow:auto;padding:8px 0;position:relative;outline:none;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:0;background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list--border{border-width:thin;box-shadow:none}.v-list--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-list--nav{padding-inline-start:8px;padding-inline-end:8px}.v-list--rounded{border-radius:4px}.v-list--subheader{padding-top:0}.v-list-img{border-radius:inherit;display:flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-list-subheader{align-items:center;background:inherit;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));display:flex;font-size:.875rem;font-weight:400;line-height:1.375rem;padding-inline-end:16px;min-height:40px;transition:.2s min-height cubic-bezier(.4,0,.2,1)}.v-list-subheader__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-list--density-default .v-list-subheader{min-height:40px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-comfortable .v-list-subheader{min-height:36px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-compact .v-list-subheader{min-height:32px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-subheader--inset{--indent-padding: 56px}.v-list--nav .v-list-subheader{font-size:.75rem}.v-list-subheader--sticky{background:inherit;left:0;position:sticky;top:0;z-index:1}.v-list__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content 1fr auto;outline:none;max-width:100%;padding:4px 16px;position:relative;text-decoration:none;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;border-radius:0}.v-list-item--border{border-width:thin;box-shadow:none}.v-list-item:hover>.v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item:focus-visible>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item:focus>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-list-item--active>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]>.v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--active:hover>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:hover>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-list-item--active:focus-visible>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item--active:focus>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-list-item--variant-plain,.v-list-item--variant-outlined,.v-list-item--variant-text,.v-list-item--variant-tonal{background:transparent;color:inherit}.v-list-item--variant-plain{opacity:.62}.v-list-item--variant-plain:focus,.v-list-item--variant-plain:hover{opacity:1}.v-list-item--variant-plain .v-list-item__overlay{display:none}.v-list-item--variant-elevated,.v-list-item--variant-flat{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list-item--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-outlined{border:thin solid currentColor}.v-list-item--variant-text .v-list-item__overlay{background:currentColor}.v-list-item--variant-tonal .v-list-item__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}@supports selector(:focus-visible){.v-list-item:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid currentColor;border-radius:4px;opacity:0;transition:opacity .2s ease-in-out}.v-list-item:focus-visible:after{opacity:calc(.15 * var(--v-theme-overlay-multiplier))}}.v-list-item__prepend>.v-badge .v-icon,.v-list-item__prepend>.v-icon,.v-list-item__append>.v-badge .v-icon,.v-list-item__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-list-item--active .v-list-item__prepend>.v-badge .v-icon,.v-list-item--active .v-list-item__prepend>.v-icon,.v-list-item--active .v-list-item__append>.v-badge .v-icon,.v-list-item--active .v-list-item__append>.v-icon{opacity:1}.v-list-item--rounded{border-radius:4px}.v-list-item--disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.6}.v-list-item--link{cursor:pointer}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item .v-avatar,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item .v-avatar{--v-avatar-height: 24px}.v-list-item__prepend{align-items:center;align-self:center;display:flex;grid-area:prepend}.v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item--three-line .v-list-item__prepend{align-self:start}.v-list-item__append{align-self:center;display:flex;align-items:center;grid-area:append;overflow:hidden}.v-list-item__append .v-list-item__spacer{order:-1;transition:.15s width cubic-bezier(.4,0,.2,1)}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item__append .v-list-item__spacer,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item__append .v-list-item__spacer{width:0}.v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item__append>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__append>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item--three-line .v-list-item__append{align-self:start}.v-list-item__content{align-self:center;grid-area:content;overflow:hidden}.v-list-item-action{align-self:center;display:flex;align-items:center;grid-area:prepend;flex:none;transition:inherit;transition-property:height,width}.v-list-item-action--start{margin-inline-end:12px}.v-list-item-action--end{margin-inline-start:12px}.v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-media--start{margin-inline-end:16px}.v-list-item-media--end{margin-inline-start:16px}.v-list-item--two-line .v-list-item-media{margin-top:-4px;margin-bottom:-4px}.v-list-item--three-line .v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-subtitle{-webkit-box-orient:vertical;display:-webkit-box;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;padding:0;text-overflow:ellipsis;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem;text-transform:none}.v-list-item--one-line .v-list-item-subtitle{-webkit-line-clamp:1}.v-list-item--two-line .v-list-item-subtitle{-webkit-line-clamp:2}.v-list-item--three-line .v-list-item-subtitle{-webkit-line-clamp:3}.v-list-item--nav .v-list-item-subtitle{font-size:.75rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem}.v-list-item-title{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:normal;overflow:hidden;padding:0;white-space:nowrap;text-overflow:ellipsis;word-break:normal;word-wrap:break-word;font-size:1rem;font-weight:400;letter-spacing:.009375em;line-height:1.5rem;text-transform:none}.v-list-item--nav .v-list-item-title{font-size:.8125rem;font-weight:500;letter-spacing:normal;line-height:1rem}.v-list-item--density-default{min-height:40px}.v-list-item--density-default.v-list-item--one-line{min-height:48px;padding-top:4px;padding-bottom:4px}.v-list-item--density-default.v-list-item--two-line{min-height:64px;padding-top:12px;padding-bottom:12px}.v-list-item--density-default.v-list-item--three-line{min-height:88px;padding-top:16px;padding-bottom:16px}.v-list-item--density-default.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-default.v-list-item--three-line .v-list-item__append{padding-top:8px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--one-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--two-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--three-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-comfortable{min-height:36px}.v-list-item--density-comfortable.v-list-item--one-line{min-height:44px}.v-list-item--density-comfortable.v-list-item--two-line{min-height:60px;padding-top:8px;padding-bottom:8px}.v-list-item--density-comfortable.v-list-item--three-line{min-height:84px;padding-top:12px;padding-bottom:12px}.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__append{padding-top:6px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--one-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--two-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--three-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-compact{min-height:32px}.v-list-item--density-compact.v-list-item--one-line{min-height:40px}.v-list-item--density-compact.v-list-item--two-line{min-height:56px;padding-top:4px;padding-bottom:4px}.v-list-item--density-compact.v-list-item--three-line{min-height:80px;padding-top:8px;padding-bottom:8px}.v-list-item--density-compact.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-compact.v-list-item--three-line .v-list-item__append{padding-top:4px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--one-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--two-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--three-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--nav{padding-inline-start:8px;padding-inline-end:8px}.v-list .v-list-item--nav:not(:only-child){margin-bottom:4px}.v-list-item__underlay{position:absolute}.v-list-item__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item--active.v-list-item--variant-elevated .v-list-item__overlay{--v-theme-overlay-multiplier: 0}.v-list{--indent-padding: 0px}.v-list--nav{--indent-padding: -8px}.v-list-group{--list-indent-size: 16px;--parent-padding: var(--indent-padding);--prepend-width: 40px}.v-list-group--fluid{--list-indent-size: 0px}.v-list-group--prepend{--parent-padding: calc(var(--indent-padding) + var(--prepend-width))}.v-list-group--fluid.v-list-group--prepend{--parent-padding: var(--indent-padding)}.v-list-group__items{--indent-padding: calc(var(--parent-padding) + var(--list-indent-size))}.v-list-group__items .v-list-item{padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-group__header.v-list-item--active:not(:focus-visible) .v-list-item__overlay{opacity:0}.v-list-group__header.v-list-item--active:hover .v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-divider{display:block;flex:1 1 100%;height:0px;max-height:0px;opacity:var(--v-border-opacity);transition:inherit;border-style:solid;border-width:thin 0 0 0}.v-divider--vertical{align-self:stretch;border-width:0 thin 0 0;display:inline-flex;height:inherit;margin-left:-1px;max-height:100%;max-width:0px;vertical-align:text-bottom;width:0px}.v-divider--inset:not(.v-divider--vertical){max-width:calc(100% - 72px);margin-inline-start:72px}.v-divider--inset.v-divider--vertical{margin-bottom:8px;margin-top:8px;max-height:calc(100% - 16px)}.v-menu>.v-overlay__content{display:flex;flex-direction:column;border-radius:4px}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{background:rgb(var(--v-theme-surface));border-radius:inherit;overflow:auto;height:100%;box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-overlay-container{contain:layout;left:0;pointer-events:none;position:absolute;top:0;display:contents}.v-overlay-scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-overlay-scroll-blocked:not(html){overflow-y:hidden!important}html.v-overlay-scroll-blocked{position:fixed;top:var(--v-body-scroll-y);left:var(--v-body-scroll-x);width:100%;height:100%}.v-overlay{border-radius:inherit;display:flex;left:0;pointer-events:none;position:fixed;top:0;bottom:0;right:0}.v-overlay__content{outline:none;position:absolute;pointer-events:auto;contain:layout}.v-overlay__scrim{pointer-events:auto;background:rgb(var(--v-theme-on-surface));border-radius:inherit;bottom:0;left:0;opacity:.32;position:fixed;right:0;top:0}.v-overlay--absolute,.v-overlay--contained .v-overlay__scrim{position:absolute}.v-overlay--scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-text-field input{color:inherit;opacity:0;flex:1;transition:.15s opacity cubic-bezier(.4,0,.2,1);min-width:0}.v-text-field input:focus,.v-text-field input:active{outline:none}.v-text-field input:invalid{box-shadow:none}.v-text-field .v-field{cursor:text}.v-text-field--prefixed.v-text-field .v-field__input{--v-field-padding-start: 6px}.v-text-field--suffixed.v-text-field .v-field__input{--v-field-padding-end: 0}.v-text-field .v-field__input input{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-text-field input.v-field__input{min-height:calc(max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom) + var(--v-input-chips-margin-bottom) + 2px) - var(--v-input-chips-margin-top) - var(--v-input-chips-margin-bottom));padding-top:calc(var(--v-input-chips-margin-top) + var(--v-field-input-padding-top));padding-bottom:calc(var(--v-input-chips-margin-bottom) + var(--v-field-input-padding-bottom))}.v-text-field .v-input__details{padding-inline-start:16px;padding-inline-end:16px}.v-text-field .v-field--no-label input,.v-text-field .v-field--active input{opacity:1}.v-text-field .v-field--single-line input{transition:none}.v-text-field__prefix,.v-text-field__suffix{align-items:center;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));cursor:default;display:flex;opacity:0;transition:inherit;white-space:nowrap;min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom) + var(--v-input-chips-margin-bottom) + 2px);padding-top:calc(var(--v-field-padding-top, 4px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 6px)}.v-text-field__prefix__text,.v-text-field__suffix__text{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-field--active .v-text-field__prefix,.v-field--active .v-text-field__suffix{opacity:1}.v-field--disabled .v-text-field__prefix,.v-field--disabled .v-text-field__suffix{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-text-field__prefix{padding-inline-start:var(--v-field-padding-start)}.v-text-field__suffix{padding-inline-end:var(--v-field-padding-end)}.v-text-field--plain-underlined{--v-field-padding-top--plain-underlined: 6px}.v-text-field--plain-underlined .v-input__details{padding:0}.v-text-field--plain-underlined .v-input__prepend,.v-text-field--plain-underlined .v-input__append{align-items:flex-start;padding-top:calc(var(--v-field-padding-top--plain-underlined) + var(--v-input-padding-top))}.v-counter{color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));flex:0 1 auto;font-size:12px;transition-duration:.15s}.v-field{display:grid;grid-template-areas:"prepend-inner field clear append-inner";grid-template-columns:min-content minmax(0,1fr) min-content min-content;font-size:16px;letter-spacing:.009375em;max-width:100%;border-radius:4px;contain:layout;flex:1 0;grid-area:control;position:relative;--v-field-padding-start: 16px;--v-field-padding-end: 16px;--v-field-padding-top: 10px;--v-field-padding-bottom: 5px;--v-field-input-padding-top: calc(var(--v-field-padding-top, 10px) + var(--v-input-padding-top, 0));--v-field-input-padding-bottom: var(--v-field-padding-bottom, 5px)}.v-field--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-field--prepended{padding-inline-start:12px}.v-field--appended{padding-inline-end:12px}.v-field--variant-solo,.v-field--variant-solo-filled,.v-field--variant-solo-inverted{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity));box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted.v-field--focused{color:rgb(var(--v-theme-on-surface-variant))}.v-field--variant-filled{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-input--density-default .v-field--variant-solo,.v-input--density-default .v-field--variant-solo-inverted,.v-input--density-default .v-field--variant-solo-filled,.v-input--density-default .v-field--variant-filled{--v-input-control-height: 56px;--v-field-padding-bottom: 5px}.v-input--density-comfortable .v-field--variant-solo,.v-input--density-comfortable .v-field--variant-solo-inverted,.v-input--density-comfortable .v-field--variant-solo-filled,.v-input--density-comfortable .v-field--variant-filled{--v-input-control-height: 48px;--v-field-padding-bottom: 1px}.v-input--density-compact .v-field--variant-solo,.v-input--density-compact .v-field--variant-solo-inverted,.v-input--density-compact .v-field--variant-solo-filled,.v-input--density-compact .v-field--variant-filled{--v-input-control-height: 40px;--v-field-padding-bottom: 0px}.v-field--variant-outlined,.v-field--single-line,.v-field--no-label{--v-field-padding-top: 0px}.v-input--density-default .v-field--variant-outlined,.v-input--density-default .v-field--single-line,.v-input--density-default .v-field--no-label{--v-field-padding-bottom: 15px}.v-input--density-comfortable .v-field--variant-outlined,.v-input--density-comfortable .v-field--single-line,.v-input--density-comfortable .v-field--no-label{--v-field-padding-bottom: 11px}.v-input--density-compact .v-field--variant-outlined,.v-input--density-compact .v-field--single-line,.v-input--density-compact .v-field--no-label{--v-field-padding-bottom: 7px}.v-field--variant-plain,.v-field--variant-underlined{border-radius:0;padding:0}.v-field--variant-plain.v-field,.v-field--variant-underlined.v-field{--v-field-padding-start: 0px;--v-field-padding-end: 0px;--v-field-padding-top: var(--v-field-padding-top--plain-underlined, 6px)}.v-input--density-default .v-field--variant-plain,.v-input--density-default .v-field--variant-underlined{--v-input-control-height: 48px;--v-field-padding-bottom: 5px}.v-input--density-comfortable .v-field--variant-plain,.v-input--density-comfortable .v-field--variant-underlined{--v-input-control-height: 40px;--v-field-padding-bottom: 1px}.v-input--density-compact .v-field--variant-plain,.v-input--density-compact .v-field--variant-underlined{--v-input-control-height: 32px;--v-field-padding-bottom: 0px}.v-field--flat{box-shadow:none}.v-field--rounded{border-radius:9999px}.v-field.v-field--prepended{--v-field-padding-start: 6px}.v-field.v-field--appended{--v-field-padding-end: 6px}.v-field__input{color:inherit;display:flex;flex-wrap:wrap;letter-spacing:.009375em;opacity:var(--v-high-emphasis-opacity);min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom) + var(--v-input-chips-margin-bottom) + 2px);min-width:0;padding-inline-start:var(--v-field-padding-start);padding-inline-end:var(--v-field-padding-end);padding-top:var(--v-field-input-padding-top);padding-bottom:var(--v-field-input-padding-bottom);position:relative;width:100%}.v-field__input input{letter-spacing:inherit}.v-field__input input::placeholder,input.v-field__input::placeholder,textarea.v-field__input::placeholder{color:currentColor;opacity:var(--v-disabled-opacity)}.v-field__input:focus,.v-field__input:active{outline:none}.v-field__input:invalid{box-shadow:none}.v-field__field{flex:1 0;grid-area:field;position:relative;align-items:flex-start;display:flex}.v-field__prepend-inner{grid-area:prepend-inner;padding-inline-end:var(--v-field-padding-after)}.v-field__clearable{grid-area:clear}.v-field__append-inner{grid-area:append-inner;padding-inline-start:var(--v-field-padding-after)}.v-field__append-inner,.v-field__clearable,.v-field__prepend-inner{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top, 10px)}.v-field--center-affix .v-field__append-inner,.v-field--center-affix .v-field__clearable,.v-field--center-affix .v-field__prepend-inner{align-items:center;padding-top:0}.v-field.v-field--variant-underlined .v-field__append-inner,.v-field.v-field--variant-underlined .v-field__clearable,.v-field.v-field--variant-underlined .v-field__prepend-inner,.v-field.v-field--variant-plain .v-field__append-inner,.v-field.v-field--variant-plain .v-field__clearable,.v-field.v-field--variant-plain .v-field__prepend-inner{align-items:flex-start;padding-top:calc(var(--v-field-padding-top, 10px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 5px)}.v-field--focused .v-field__prepend-inner,.v-field--focused .v-field__append-inner{opacity:1}.v-field__prepend-inner>.v-icon,.v-field__append-inner>.v-icon,.v-field__clearable>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-field--disabled .v-field__prepend-inner>.v-icon,.v-field--error .v-field__prepend-inner>.v-icon,.v-field--disabled .v-field__append-inner>.v-icon,.v-field--error .v-field__append-inner>.v-icon,.v-field--disabled .v-field__clearable>.v-icon,.v-field--error .v-field__clearable>.v-icon{opacity:1}.v-field--error:not(.v-field--disabled) .v-field__prepend-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__append-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__clearable>.v-icon{color:rgb(var(--v-theme-error))}.v-field__clearable{cursor:pointer;opacity:0;overflow:hidden;margin-inline-start:4px;margin-inline-end:4px;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,width}.v-field--focused .v-field__clearable,.v-field--persistent-clear .v-field__clearable{opacity:1}@media (hover: hover){.v-field:hover .v-field__clearable{opacity:1}}.v-label.v-field-label{contain:layout paint;margin-inline-start:var(--v-field-padding-start);margin-inline-end:var(--v-field-padding-end);max-width:calc(100% - var(--v-field-padding-start) - var(--v-field-padding-end));pointer-events:none;position:absolute;top:var(--v-input-padding-top);transform-origin:left center;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform;z-index:1}.v-field--variant-underlined .v-label.v-field-label,.v-field--variant-plain .v-label.v-field-label{top:calc(var(--v-input-padding-top) + var(--v-field-padding-top))}.v-field--center-affix .v-label.v-field-label{top:50%;transform:translateY(-50%)}.v-field--active .v-label.v-field-label{visibility:hidden}.v-field--focused .v-label.v-field-label,.v-field--error .v-label.v-field-label{opacity:1}.v-field--error:not(.v-field--disabled) .v-label.v-field-label{color:rgb(var(--v-theme-error))}.v-label.v-field-label--floating{--v-field-label-scale: .75em;font-size:var(--v-field-label-scale);visibility:hidden;max-width:100%}.v-field--center-affix .v-label.v-field-label--floating{transform:none}.v-field.v-field--active .v-label.v-field-label--floating{visibility:unset}.v-input--density-default .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-filled .v-label.v-field-label--floating{top:7px}.v-input--density-comfortable .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-filled .v-label.v-field-label--floating{top:5px}.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:3px}.v-field--variant-plain .v-label.v-field-label--floating,.v-field--variant-underlined .v-label.v-field-label--floating{transform:translateY(-16px);margin:0;top:var(--v-input-padding-top)}.v-field--variant-outlined .v-label.v-field-label--floating{transform:translateY(-50%);transform-origin:center;position:static;margin:0 4px}.v-field__outline{--v-field-border-width: 1px;--v-field-border-opacity: .38;align-items:stretch;contain:layout;display:flex;height:100%;left:0;pointer-events:none;position:absolute;right:0;width:100%}@media (hover: hover){.v-field:hover .v-field__outline{--v-field-border-opacity: var(--v-high-emphasis-opacity)}}.v-field--error:not(.v-field--disabled) .v-field__outline{color:rgb(var(--v-theme-error))}.v-field.v-field--focused .v-field__outline,.v-input.v-input--error .v-field__outline{--v-field-border-opacity: 1}.v-field--variant-outlined.v-field--focused .v-field__outline{--v-field-border-width: 2px}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{border-color:currentColor;border-style:solid;border-width:0 0 var(--v-field-border-width);opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1);content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{border-color:currentColor;border-style:solid;border-width:0 0 2px;transform:scaleX(0);transition:transform .15s cubic-bezier(.4,0,.2,1);content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--focused.v-field--variant-filled .v-field__outline:after,.v-field--focused.v-field--variant-underlined .v-field__outline:after{transform:scaleX(1)}.v-field--variant-outlined .v-field__outline{border-radius:inherit}.v-field--variant-outlined .v-field__outline__start,.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after,.v-field--variant-outlined .v-field__outline__end{border:0 solid currentColor;opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__start{flex:0 0 12px;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-start-width:var(--v-field-border-width)}.v-field--rounded.v-field--variant-outlined .v-field__outline__start,[class^=rounded-].v-field--variant-outlined .v-field__outline__start,[class*=" rounded-"].v-field--variant-outlined .v-field__outline__start{flex-basis:calc(var(--v-input-control-height) / 2 + 2px)}.v-locale--is-ltr.v-field--variant-outlined .v-field__outline__start,.v-locale--is-ltr .v-field--variant-outlined .v-field__outline__start{border-top-left-radius:inherit;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:inherit}.v-locale--is-rtl.v-field--variant-outlined .v-field__outline__start,.v-locale--is-rtl .v-field--variant-outlined .v-field__outline__start{border-top-left-radius:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:0}.v-field--variant-outlined .v-field__outline__notch{flex:none;position:relative}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1);content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-outlined .v-field__outline__notch:before{border-width:var(--v-field-border-width) 0 0}.v-field--variant-outlined .v-field__outline__notch:after{bottom:0;border-width:0 0 var(--v-field-border-width)}.v-field--active.v-field--variant-outlined .v-field__outline__notch:before{opacity:0}.v-field--variant-outlined .v-field__outline__end{flex:1;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-end-width:var(--v-field-border-width)}.v-locale--is-ltr.v-field--variant-outlined .v-field__outline__end,.v-locale--is-ltr .v-field--variant-outlined .v-field__outline__end{border-top-left-radius:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:0}.v-locale--is-rtl.v-field--variant-outlined .v-field__outline__end,.v-locale--is-rtl .v-field--variant-outlined .v-field__outline__end{border-top-left-radius:inherit;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:inherit}.v-field__loader{top:calc(100% - 2px);left:0;position:absolute;right:0;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden}.v-field--variant-outlined .v-field__loader{top:calc(100% - 3px)}.v-field__overlay{border-radius:inherit;pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}@media (hover: hover){.v-field--variant-solo-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-inverted .v-field__overlay{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-solo-inverted.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-solo-inverted:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-inverted.v-field--focused .v-field__overlay{background-color:rgb(var(--v-theme-surface-variant));opacity:1}.v-field--reverse .v-field__field,.v-field--reverse .v-field__input{flex-direction:row-reverse}.v-locale--is-ltr.v-field--reverse .v-field__input,.v-locale--is-ltr.v-field--reverse input,.v-locale--is-ltr .v-field--reverse .v-field__input,.v-locale--is-ltr .v-field--reverse input{text-align:right}.v-locale--is-rtl.v-field--reverse .v-field__input,.v-locale--is-rtl.v-field--reverse input,.v-locale--is-rtl .v-field--reverse .v-field__input,.v-locale--is-rtl .v-field--reverse input{text-align:left}.v-input--disabled .v-field--variant-filled .v-field__outline:before,.v-input--disabled .v-field--variant-underlined .v-field__outline:before{border-image:repeating-linear-gradient(to right,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 0px,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 2px,transparent 2px,transparent 4px) 1 repeat}.v-field--loading .v-field__outline:after,.v-field--loading .v-field__outline:before{opacity:0}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block}.v-card{display:block;overflow:hidden;overflow-wrap:break-word;position:relative;padding:0;text-decoration:none;transition-duration:.28s;transition-property:box-shadow,opacity,background;transition-timing-function:cubic-bezier(.4,0,.2,1);z-index:0;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;border-radius:4px}.v-card--border{border-width:thin;box-shadow:none}.v-card--absolute{position:absolute}.v-card--fixed{position:fixed}.v-card:hover>.v-card__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-card:focus-visible>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card:focus>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-card--active>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]>.v-card__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-card--active:hover>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:hover>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-card--active:focus-visible>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card--active:focus>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-card--variant-plain,.v-card--variant-outlined,.v-card--variant-text,.v-card--variant-tonal{background:transparent;color:inherit}.v-card--variant-plain{opacity:.62}.v-card--variant-plain:focus,.v-card--variant-plain:hover{opacity:1}.v-card--variant-plain .v-card__overlay{display:none}.v-card--variant-elevated,.v-card--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-card--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--variant-outlined{border:thin solid currentColor}.v-card--variant-text .v-card__overlay{background:currentColor}.v-card--variant-tonal .v-card__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-card--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__loader){opacity:.6}.v-card--flat{box-shadow:none}.v-card--hover{cursor:pointer;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--hover:before,.v-card--hover:after{border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transition:inherit}.v-card--hover:before{opacity:1;z-index:-1;box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--hover:after{z-index:1;opacity:0;box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--hover:hover:after{opacity:1}.v-card--hover:hover:before{opacity:0}.v-card--link{cursor:pointer}.v-card-actions{align-items:center;display:flex;flex:none;min-height:52px;padding:.5rem}.v-card-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;padding:.625rem 1rem}.v-card-item+.v-card-text{padding-top:0}.v-card-item__prepend{grid-area:prepend;padding-inline-end:1rem}.v-card-item__append{grid-area:append;padding-inline-start:1rem}.v-card-item__content{align-self:center;grid-area:content;overflow:hidden}.v-card-title{display:block;flex:none;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;min-width:0;overflow-wrap:normal;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;word-wrap:break-word}.v-card .v-card-title{line-height:2rem}.v-card--density-comfortable .v-card-title{line-height:1.75rem}.v-card--density-compact .v-card-title{line-height:1.55rem}.v-card-item .v-card-title{padding:0}.v-card-title+.v-card-text,.v-card-title+.v-card-actions{padding-top:0}.v-card-subtitle{display:block;flex:none;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;padding:0 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.v-card .v-card-subtitle{line-height:1.25rem}.v-card--density-comfortable .v-card-subtitle{line-height:1.125rem}.v-card--density-compact .v-card-subtitle{line-height:1rem}.v-card-item .v-card-subtitle{padding:0 0 .25rem}.v-card-text{flex:1 1 auto;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;padding:1rem;text-transform:none}.v-card .v-card-text{line-height:1.25rem}.v-card--density-comfortable .v-card-text{line-height:1.2rem}.v-card--density-compact .v-card-text{line-height:1.15rem}.v-card__image{display:flex;height:100%;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-card__content{border-radius:inherit;overflow:hidden;position:relative}.v-card__loader{bottom:auto;top:0;left:0;position:absolute;right:0;width:100%;z-index:1}.v-card__overlay{background-color:currentColor;border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-slider .v-slider__container input{cursor:default;padding:0;width:100%;display:none}.v-slider>.v-input__append,.v-slider>.v-input__prepend{padding:0}.v-slider__container{position:relative;min-height:inherit;width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}.v-input--disabled .v-slider__container{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-slider__container{color:rgb(var(--v-theme-error))}.v-slider.v-input--horizontal{align-items:center;margin-inline-start:8px;margin-inline-end:8px}.v-slider.v-input--horizontal>.v-input__control{min-height:32px;display:flex;align-items:center}.v-slider.v-input--vertical{justify-content:center;margin-top:12px;margin-bottom:12px}.v-slider.v-input--vertical>.v-input__control{min-height:300px}.v-slider.v-input--disabled{pointer-events:none}.v-slider--has-labels>.v-input__control{margin-bottom:4px}.v-slider__label{margin-inline-end:12px}.v-slider-thumb{touch-action:none;color:rgb(var(--v-theme-surface-variant))}.v-input--error:not(.v-input--disabled) .v-slider-thumb{color:inherit}.v-slider-thumb__label{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant))}.v-slider-thumb__label:before{color:rgba(var(--v-theme-surface-variant),.7)}.v-slider-thumb{outline:none;position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider-thumb__surface{cursor:pointer;width:var(--v-slider-thumb-size);height:var(--v-slider-thumb-size);border-radius:50%;-webkit-user-select:none;user-select:none;background-color:currentColor}.v-slider-thumb__surface:before{transition:.3s cubic-bezier(.4,0,.2,1);content:"";color:inherit;top:0;left:0;width:100%;height:100%;border-radius:50%;background:currentColor;position:absolute;pointer-events:none;opacity:0}.v-slider-thumb__surface:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.v-slider-thumb__label-container{position:absolute;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label{display:flex;align-items:center;justify-content:center;font-size:.75rem;min-width:35px;height:25px;border-radius:4px;padding:6px;position:absolute;-webkit-user-select:none;user-select:none;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label:before{content:"";width:0;height:0;position:absolute}.v-slider-thumb__ripple{position:absolute;left:calc(var(--v-slider-thumb-size) / -2);top:calc(var(--v-slider-thumb-size) / -2);width:calc(var(--v-slider-thumb-size) * 2);height:calc(var(--v-slider-thumb-size) * 2);background:inherit}.v-slider.v-input--horizontal .v-slider-thumb{top:50%;transform:translateY(-50%)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb{left:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2);right:unset}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb{left:unset;right:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--horizontal .v-slider-thumb__label-container{left:calc(var(--v-slider-thumb-size) / 2);top:0}.v-slider.v-input--horizontal .v-slider-thumb__label{bottom:calc(var(--v-slider-thumb-size) / 2)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-thumb__label:before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid currentColor;bottom:-6px}.v-slider.v-input--vertical .v-slider-thumb{top:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label-container{top:calc(var(--v-slider-thumb-size) / 2);right:0}.v-slider.v-input--vertical .v-slider-thumb__label{top:-12.5px;left:calc(var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label:before{border-right:6px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-6px}.v-slider-thumb--focused .v-slider-thumb__surface:before{transform:scale(2);opacity:var(--v-focus-opacity)}.v-slider-thumb--pressed{transition:none}.v-slider-thumb--pressed .v-slider-thumb__surface:before{opacity:var(--v-pressed-opacity)}@media (hover: hover){.v-slider-thumb:hover .v-slider-thumb__surface:before{transform:scale(2)}.v-slider-thumb:hover:not(.v-slider-thumb--focused) .v-slider-thumb__surface:before{opacity:var(--v-hover-opacity)}}.v-slider-track__background,.v-slider-track__fill,.v-slider-track__tick{background-color:rgb(var(--v-theme-surface-variant))}.v-slider-track__tick--filled{background-color:rgb(var(--v-theme-on-surface-variant))}.v-slider-track{border-radius:6px}.v-slider-track__background,.v-slider-track__fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:inherit}.v-slider--pressed .v-slider-track__background,.v-slider--pressed .v-slider-track__fill{transition:none}.v-input--error:not(.v-input--disabled) .v-slider-track__background,.v-input--error:not(.v-input--disabled) .v-slider-track__fill{background-color:currentColor}.v-slider-track__ticks{height:100%;width:100%;position:relative}.v-slider-track__tick{position:absolute;opacity:0;transition:.2s opacity cubic-bezier(.4,0,.2,1);border-radius:2px;width:var(--v-slider-tick-size);height:var(--v-slider-tick-size);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / -2))}.v-locale--is-ltr.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--first .v-slider-track__tick-label{transform:none}.v-locale--is-rtl.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(100%)}.v-locale--is-ltr.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--last .v-slider-track__tick-label{transform:none}.v-slider-track__tick-label{position:absolute;-webkit-user-select:none;user-select:none;white-space:nowrap}.v-slider.v-input--horizontal .v-slider-track{display:flex;align-items:center;width:100%;height:calc(var(--v-slider-track-size) + 2px);touch-action:pan-y}.v-slider.v-input--horizontal .v-slider-track__background{height:var(--v-slider-track-size)}.v-slider.v-input--horizontal .v-slider-track__fill{height:inherit}.v-slider.v-input--horizontal .v-slider-track__tick{margin-top:calc(calc(var(--v-slider-track-size) + 2px) / 2)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / -2))}.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{margin-top:calc(var(--v-slider-track-size) / 2 + 8px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-track__tick--first{margin-inline-start:calc(var(--v-slider-tick-size) + 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(0)}.v-slider.v-input--horizontal .v-slider-track__tick--last{margin-inline-start:calc(100% - var(--v-slider-tick-size) - 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(100%)}.v-slider.v-input--vertical .v-slider-track{height:100%;display:flex;justify-content:center;width:calc(var(--v-slider-track-size) + 2px);touch-action:pan-x}.v-slider.v-input--vertical .v-slider-track__background{width:var(--v-slider-track-size)}.v-slider.v-input--vertical .v-slider-track__fill{width:inherit}.v-slider.v-input--vertical .v-slider-track__ticks{height:100%}.v-slider.v-input--vertical .v-slider-track__tick{margin-inline-start:calc(calc(var(--v-slider-track-size) + 2px) / 2);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / 2))}.v-locale--is-rtl.v-slider.v-input--vertical .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--vertical .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / 2))}.v-slider.v-input--vertical .v-slider-track__tick--first{bottom:calc(0% + var(--v-slider-tick-size) + 1px)}.v-slider.v-input--vertical .v-slider-track__tick--last{bottom:calc(100% - var(--v-slider-tick-size) - 1px)}.v-slider.v-input--vertical .v-slider-track__tick .v-slider-track__tick-label{margin-inline-start:calc(var(--v-slider-track-size) / 2 + 12px);transform:translateY(-50%)}.v-slider-track__ticks--always-show .v-slider-track__tick,.v-slider--focused .v-slider-track__tick{opacity:1}.v-slider-track__background--opacity{opacity:.38}.v-combobox .v-field .v-text-field__prefix,.v-combobox .v-field .v-text-field__suffix,.v-combobox .v-field .v-field__input,.v-combobox .v-field.v-field{cursor:text}.v-combobox .v-field .v-field__input>input{align-self:flex-start;flex:1 1}.v-combobox .v-field input{min-width:64px}.v-combobox .v-field:not(.v-field--focused) input{min-width:0}.v-combobox .v-field--dirty .v-combobox__selection{margin-inline-end:2px}.v-combobox .v-combobox__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-combobox__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-combobox__mask{background:rgb(var(--v-theme-on-surface-variant))}.v-combobox__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:90%}.v-combobox__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-combobox__selection:first-child{margin-inline-start:0}.v-combobox--selecting-index .v-combobox__selection{opacity:var(--v-medium-emphasis-opacity)}.v-combobox--selecting-index .v-combobox__selection--selected{opacity:1}.v-combobox--selecting-index .v-field__input>input{caret-color:transparent}.v-combobox--single.v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline-start:inherit;padding-inline-end:inherit}.v-combobox--single .v-field--variant-outlined input{top:50%;transform:translateY(calc(-50% - (var(--v-input-chips-margin-top) + var(--v-input-chips-margin-bottom)) / 2))}.v-combobox--single .v-field--active input{transition:none}.v-combobox--single .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-combobox--single .v-field--focused .v-combobox__selection{opacity:0}.v-combobox__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-combobox--active-menu .v-combobox__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-dialog{align-items:center;justify-content:center;margin:auto}.v-dialog>.v-overlay__content{max-height:calc(100% - 48px);width:calc(100% - 48px);max-width:calc(100% - 48px);margin:24px;display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{--v-scrollbar-offset: 0px;border-radius:4px;overflow-y:auto;box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>form>.v-card{display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card>.v-card-item,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item{padding:14px 24px 0}.v-dialog>.v-overlay__content>.v-card>.v-card-item+.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item+.v-card-text{padding-top:10px}.v-dialog>.v-overlay__content>.v-card>.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-text{font-size:inherit;letter-spacing:.03125em;line-height:inherit;padding:16px 24px 10px}.v-dialog--fullscreen{--v-scrollbar-offset: 0px}.v-dialog--fullscreen>.v-overlay__content{border-radius:0;margin:0;padding:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-overlay__content>.v-card,.v-dialog--fullscreen>.v-overlay__content>.v-sheet,.v-dialog--fullscreen>.v-overlay__content>form>.v-card,.v-dialog--fullscreen>.v-overlay__content>form>.v-sheet{min-height:100%;min-width:100%;border-radius:0}.v-dialog--scrollable>.v-overlay__content,.v-dialog--scrollable>.v-overlay__content>form{display:flex;overflow:hidden}.v-dialog--scrollable>.v-overlay__content>.v-card,.v-dialog--scrollable>.v-overlay__content>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-overlay__content>.v-card>.v-card-text,.v-dialog--scrollable>.v-overlay__content>form>.v-card>.v-card-text{backface-visibility:hidden;overflow-y:auto}.v-expansion-panel{background-color:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-expansion-panel:not(:first-child):after{border-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-expansion-panel--disabled .v-expansion-panel-title{color:rgba(var(--v-theme-on-surface),.26)}.v-expansion-panel--disabled .v-expansion-panel-title .v-expansion-panel-title__overlay{opacity:.4615384615}.v-expansion-panels{display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;position:relative;z-index:1}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:first-child:not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:last-child:not(:first-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:first-child{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child{border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child .v-expansion-panel-title--active{border-bottom-left-radius:initial;border-bottom-right-radius:initial}.v-expansion-panels--variant-accordion>:not(:first-child):not(:last-child){border-radius:0!important}.v-expansion-panels--variant-accordion .v-expansion-panel-title__overlay{transition:.3s border-radius cubic-bezier(.4,0,.2,1)}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s all cubic-bezier(.4,0,.2,1);transition-property:margin-top,border-radius,border,max-width;border-radius:4px}.v-expansion-panel:not(:first-child):after{border-top-style:solid;border-top-width:thin;content:"";left:0;position:absolute;right:0;top:0;transition:.3s opacity cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-title{pointer-events:none}.v-expansion-panel--active:not(:first-child),.v-expansion-panel--active+.v-expansion-panel{margin-top:16px}.v-expansion-panel--active:not(:first-child):after,.v-expansion-panel--active+.v-expansion-panel:after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-title{border-bottom-left-radius:0;border-bottom-right-radius:0;min-height:64px}.v-expansion-panel__shadow{position:absolute;top:0;left:0;width:100%;height:100%;box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:inherit;z-index:-1}.v-expansion-panel-title{align-items:center;text-align:start;border-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:48px;outline:none;padding:16px 24px;position:relative;transition:.3s min-height cubic-bezier(.4,0,.2,1);width:100%;justify-content:space-between}.v-expansion-panel-title:hover>.v-expansion-panel-title__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title:focus-visible>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title:focus>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--active>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]>.v-expansion-panel-title__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--active:hover>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]:hover>.v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--active:focus-visible>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title--active:focus>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]:focus>.v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--active:before{opacity:.12}.v-expansion-panel-title__overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:currentColor;border-radius:inherit;opacity:0}.v-expansion-panel-title__icon{display:inline-flex;margin-bottom:-4px;margin-top:-4px;-webkit-user-select:none;user-select:none;margin-inline-start:auto}.v-expansion-panel-text{display:flex}.v-expansion-panel-text__wrapper{padding:8px 24px 16px;flex:1 1 auto;max-width:100%}.v-expansion-panels--variant-accordion>.v-expansion-panel{margin-top:0}.v-expansion-panels--variant-accordion>.v-expansion-panel:after{opacity:1}.v-expansion-panels--variant-popout>.v-expansion-panel{max-width:calc(100% - 32px)}.v-expansion-panels--variant-popout>.v-expansion-panel--active{max-width:calc(100% + 16px)}.v-expansion-panels--variant-inset>.v-expansion-panel{max-width:100%}.v-expansion-panels--variant-inset>.v-expansion-panel--active{max-width:calc(100% - 32px)}.v-container{width:100%;padding:16px;margin-right:auto;margin-left:auto}@media (min-width: 960px){.v-container{max-width:900px}}@media (min-width: 1280px){.v-container{max-width:1200px}}@media (min-width: 1920px){.v-container{max-width:1800px}}@media (min-width: 2560px){.v-container{max-width:2400px}}.v-container--fluid{max-width:100%}.v-container.fill-height{align-items:center;display:flex;flex-wrap:wrap}.v-row{display:flex;flex-wrap:wrap;flex:1 1 auto;margin:-12px}.v-row+.v-row{margin-top:12px}.v-row+.v-row--dense{margin-top:4px}.v-row--dense{margin:-4px}.v-row--dense>.v-col,.v-row--dense>[class*=v-col-]{padding:4px}.v-row.v-row--no-gutters{margin:0}.v-row.v-row--no-gutters>.v-col,.v-row.v-row--no-gutters>[class*=v-col-]{padding:0}.v-spacer{flex-grow:1}.v-col-xxl,.v-col-xxl-auto,.v-col-xxl-12,.v-col-xxl-11,.v-col-xxl-10,.v-col-xxl-9,.v-col-xxl-8,.v-col-xxl-7,.v-col-xxl-6,.v-col-xxl-5,.v-col-xxl-4,.v-col-xxl-3,.v-col-xxl-2,.v-col-xxl-1,.v-col-xl,.v-col-xl-auto,.v-col-xl-12,.v-col-xl-11,.v-col-xl-10,.v-col-xl-9,.v-col-xl-8,.v-col-xl-7,.v-col-xl-6,.v-col-xl-5,.v-col-xl-4,.v-col-xl-3,.v-col-xl-2,.v-col-xl-1,.v-col-lg,.v-col-lg-auto,.v-col-lg-12,.v-col-lg-11,.v-col-lg-10,.v-col-lg-9,.v-col-lg-8,.v-col-lg-7,.v-col-lg-6,.v-col-lg-5,.v-col-lg-4,.v-col-lg-3,.v-col-lg-2,.v-col-lg-1,.v-col-md,.v-col-md-auto,.v-col-md-12,.v-col-md-11,.v-col-md-10,.v-col-md-9,.v-col-md-8,.v-col-md-7,.v-col-md-6,.v-col-md-5,.v-col-md-4,.v-col-md-3,.v-col-md-2,.v-col-md-1,.v-col-sm,.v-col-sm-auto,.v-col-sm-12,.v-col-sm-11,.v-col-sm-10,.v-col-sm-9,.v-col-sm-8,.v-col-sm-7,.v-col-sm-6,.v-col-sm-5,.v-col-sm-4,.v-col-sm-3,.v-col-sm-2,.v-col-sm-1,.v-col,.v-col-auto,.v-col-12,.v-col-11,.v-col-10,.v-col-9,.v-col-8,.v-col-7,.v-col-6,.v-col-5,.v-col-4,.v-col-3,.v-col-2,.v-col-1{width:100%;padding:12px}.v-col{flex-basis:0;flex-grow:1;max-width:100%}.v-col-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-3{flex:0 0 25%;max-width:25%}.v-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-6{flex:0 0 50%;max-width:50%}.v-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-9{flex:0 0 75%;max-width:75%}.v-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-1,.v-locale--is-ltr .offset-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-1,.v-locale--is-rtl .offset-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-2,.v-locale--is-ltr .offset-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-2,.v-locale--is-rtl .offset-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-3,.v-locale--is-ltr .offset-3{margin-left:25%}.v-locale--is-rtl.offset-3,.v-locale--is-rtl .offset-3{margin-right:25%}.v-locale--is-ltr.offset-4,.v-locale--is-ltr .offset-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-4,.v-locale--is-rtl .offset-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-5,.v-locale--is-ltr .offset-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-5,.v-locale--is-rtl .offset-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-6,.v-locale--is-ltr .offset-6{margin-left:50%}.v-locale--is-rtl.offset-6,.v-locale--is-rtl .offset-6{margin-right:50%}.v-locale--is-ltr.offset-7,.v-locale--is-ltr .offset-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-7,.v-locale--is-rtl .offset-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-8,.v-locale--is-ltr .offset-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-8,.v-locale--is-rtl .offset-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-9,.v-locale--is-ltr .offset-9{margin-left:75%}.v-locale--is-rtl.offset-9,.v-locale--is-rtl .offset-9{margin-right:75%}.v-locale--is-ltr.offset-10,.v-locale--is-ltr .offset-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-10,.v-locale--is-rtl .offset-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-11,.v-locale--is-ltr .offset-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-11,.v-locale--is-rtl .offset-11{margin-right:91.6666666667%}@media (min-width: 600px){.v-col-sm{flex-basis:0;flex-grow:1;max-width:100%}.v-col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-sm-3{flex:0 0 25%;max-width:25%}.v-col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-sm-6{flex:0 0 50%;max-width:50%}.v-col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-sm-9{flex:0 0 75%;max-width:75%}.v-col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-sm-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-sm-0,.v-locale--is-ltr .offset-sm-0{margin-left:0}.v-locale--is-rtl.offset-sm-0,.v-locale--is-rtl .offset-sm-0{margin-right:0}.v-locale--is-ltr.offset-sm-1,.v-locale--is-ltr .offset-sm-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-sm-1,.v-locale--is-rtl .offset-sm-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-sm-2,.v-locale--is-ltr .offset-sm-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-sm-2,.v-locale--is-rtl .offset-sm-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-sm-3,.v-locale--is-ltr .offset-sm-3{margin-left:25%}.v-locale--is-rtl.offset-sm-3,.v-locale--is-rtl .offset-sm-3{margin-right:25%}.v-locale--is-ltr.offset-sm-4,.v-locale--is-ltr .offset-sm-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-sm-4,.v-locale--is-rtl .offset-sm-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-sm-5,.v-locale--is-ltr .offset-sm-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-sm-5,.v-locale--is-rtl .offset-sm-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-sm-6,.v-locale--is-ltr .offset-sm-6{margin-left:50%}.v-locale--is-rtl.offset-sm-6,.v-locale--is-rtl .offset-sm-6{margin-right:50%}.v-locale--is-ltr.offset-sm-7,.v-locale--is-ltr .offset-sm-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-sm-7,.v-locale--is-rtl .offset-sm-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-sm-8,.v-locale--is-ltr .offset-sm-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-sm-8,.v-locale--is-rtl .offset-sm-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-sm-9,.v-locale--is-ltr .offset-sm-9{margin-left:75%}.v-locale--is-rtl.offset-sm-9,.v-locale--is-rtl .offset-sm-9{margin-right:75%}.v-locale--is-ltr.offset-sm-10,.v-locale--is-ltr .offset-sm-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-sm-10,.v-locale--is-rtl .offset-sm-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-sm-11,.v-locale--is-ltr .offset-sm-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-sm-11,.v-locale--is-rtl .offset-sm-11{margin-right:91.6666666667%}}@media (min-width: 960px){.v-col-md{flex-basis:0;flex-grow:1;max-width:100%}.v-col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-md-3{flex:0 0 25%;max-width:25%}.v-col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-md-6{flex:0 0 50%;max-width:50%}.v-col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-md-9{flex:0 0 75%;max-width:75%}.v-col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-md-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-md-0,.v-locale--is-ltr .offset-md-0{margin-left:0}.v-locale--is-rtl.offset-md-0,.v-locale--is-rtl .offset-md-0{margin-right:0}.v-locale--is-ltr.offset-md-1,.v-locale--is-ltr .offset-md-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-md-1,.v-locale--is-rtl .offset-md-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-md-2,.v-locale--is-ltr .offset-md-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-md-2,.v-locale--is-rtl .offset-md-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-md-3,.v-locale--is-ltr .offset-md-3{margin-left:25%}.v-locale--is-rtl.offset-md-3,.v-locale--is-rtl .offset-md-3{margin-right:25%}.v-locale--is-ltr.offset-md-4,.v-locale--is-ltr .offset-md-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-md-4,.v-locale--is-rtl .offset-md-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-md-5,.v-locale--is-ltr .offset-md-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-md-5,.v-locale--is-rtl .offset-md-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-md-6,.v-locale--is-ltr .offset-md-6{margin-left:50%}.v-locale--is-rtl.offset-md-6,.v-locale--is-rtl .offset-md-6{margin-right:50%}.v-locale--is-ltr.offset-md-7,.v-locale--is-ltr .offset-md-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-md-7,.v-locale--is-rtl .offset-md-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-md-8,.v-locale--is-ltr .offset-md-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-md-8,.v-locale--is-rtl .offset-md-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-md-9,.v-locale--is-ltr .offset-md-9{margin-left:75%}.v-locale--is-rtl.offset-md-9,.v-locale--is-rtl .offset-md-9{margin-right:75%}.v-locale--is-ltr.offset-md-10,.v-locale--is-ltr .offset-md-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-md-10,.v-locale--is-rtl .offset-md-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-md-11,.v-locale--is-ltr .offset-md-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-md-11,.v-locale--is-rtl .offset-md-11{margin-right:91.6666666667%}}@media (min-width: 1280px){.v-col-lg{flex-basis:0;flex-grow:1;max-width:100%}.v-col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-lg-3{flex:0 0 25%;max-width:25%}.v-col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-lg-6{flex:0 0 50%;max-width:50%}.v-col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-lg-9{flex:0 0 75%;max-width:75%}.v-col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-lg-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-lg-0,.v-locale--is-ltr .offset-lg-0{margin-left:0}.v-locale--is-rtl.offset-lg-0,.v-locale--is-rtl .offset-lg-0{margin-right:0}.v-locale--is-ltr.offset-lg-1,.v-locale--is-ltr .offset-lg-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-lg-1,.v-locale--is-rtl .offset-lg-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-lg-2,.v-locale--is-ltr .offset-lg-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-lg-2,.v-locale--is-rtl .offset-lg-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-lg-3,.v-locale--is-ltr .offset-lg-3{margin-left:25%}.v-locale--is-rtl.offset-lg-3,.v-locale--is-rtl .offset-lg-3{margin-right:25%}.v-locale--is-ltr.offset-lg-4,.v-locale--is-ltr .offset-lg-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-lg-4,.v-locale--is-rtl .offset-lg-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-lg-5,.v-locale--is-ltr .offset-lg-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-lg-5,.v-locale--is-rtl .offset-lg-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-lg-6,.v-locale--is-ltr .offset-lg-6{margin-left:50%}.v-locale--is-rtl.offset-lg-6,.v-locale--is-rtl .offset-lg-6{margin-right:50%}.v-locale--is-ltr.offset-lg-7,.v-locale--is-ltr .offset-lg-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-lg-7,.v-locale--is-rtl .offset-lg-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-lg-8,.v-locale--is-ltr .offset-lg-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-lg-8,.v-locale--is-rtl .offset-lg-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-lg-9,.v-locale--is-ltr .offset-lg-9{margin-left:75%}.v-locale--is-rtl.offset-lg-9,.v-locale--is-rtl .offset-lg-9{margin-right:75%}.v-locale--is-ltr.offset-lg-10,.v-locale--is-ltr .offset-lg-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-lg-10,.v-locale--is-rtl .offset-lg-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-lg-11,.v-locale--is-ltr .offset-lg-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-lg-11,.v-locale--is-rtl .offset-lg-11{margin-right:91.6666666667%}}@media (min-width: 1920px){.v-col-xl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xl-3{flex:0 0 25%;max-width:25%}.v-col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xl-6{flex:0 0 50%;max-width:50%}.v-col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xl-9{flex:0 0 75%;max-width:75%}.v-col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xl-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-xl-0,.v-locale--is-ltr .offset-xl-0{margin-left:0}.v-locale--is-rtl.offset-xl-0,.v-locale--is-rtl .offset-xl-0{margin-right:0}.v-locale--is-ltr.offset-xl-1,.v-locale--is-ltr .offset-xl-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-xl-1,.v-locale--is-rtl .offset-xl-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-xl-2,.v-locale--is-ltr .offset-xl-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-xl-2,.v-locale--is-rtl .offset-xl-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-xl-3,.v-locale--is-ltr .offset-xl-3{margin-left:25%}.v-locale--is-rtl.offset-xl-3,.v-locale--is-rtl .offset-xl-3{margin-right:25%}.v-locale--is-ltr.offset-xl-4,.v-locale--is-ltr .offset-xl-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-xl-4,.v-locale--is-rtl .offset-xl-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-xl-5,.v-locale--is-ltr .offset-xl-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-xl-5,.v-locale--is-rtl .offset-xl-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-xl-6,.v-locale--is-ltr .offset-xl-6{margin-left:50%}.v-locale--is-rtl.offset-xl-6,.v-locale--is-rtl .offset-xl-6{margin-right:50%}.v-locale--is-ltr.offset-xl-7,.v-locale--is-ltr .offset-xl-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-xl-7,.v-locale--is-rtl .offset-xl-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-xl-8,.v-locale--is-ltr .offset-xl-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-xl-8,.v-locale--is-rtl .offset-xl-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-xl-9,.v-locale--is-ltr .offset-xl-9{margin-left:75%}.v-locale--is-rtl.offset-xl-9,.v-locale--is-rtl .offset-xl-9{margin-right:75%}.v-locale--is-ltr.offset-xl-10,.v-locale--is-ltr .offset-xl-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-xl-10,.v-locale--is-rtl .offset-xl-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-xl-11,.v-locale--is-ltr .offset-xl-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-xl-11,.v-locale--is-rtl .offset-xl-11{margin-right:91.6666666667%}}@media (min-width: 2560px){.v-col-xxl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xxl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xxl-3{flex:0 0 25%;max-width:25%}.v-col-xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xxl-6{flex:0 0 50%;max-width:50%}.v-col-xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xxl-9{flex:0 0 75%;max-width:75%}.v-col-xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xxl-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-xxl-0,.v-locale--is-ltr .offset-xxl-0{margin-left:0}.v-locale--is-rtl.offset-xxl-0,.v-locale--is-rtl .offset-xxl-0{margin-right:0}.v-locale--is-ltr.offset-xxl-1,.v-locale--is-ltr .offset-xxl-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-xxl-1,.v-locale--is-rtl .offset-xxl-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-xxl-2,.v-locale--is-ltr .offset-xxl-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-xxl-2,.v-locale--is-rtl .offset-xxl-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-xxl-3,.v-locale--is-ltr .offset-xxl-3{margin-left:25%}.v-locale--is-rtl.offset-xxl-3,.v-locale--is-rtl .offset-xxl-3{margin-right:25%}.v-locale--is-ltr.offset-xxl-4,.v-locale--is-ltr .offset-xxl-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-xxl-4,.v-locale--is-rtl .offset-xxl-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-xxl-5,.v-locale--is-ltr .offset-xxl-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-xxl-5,.v-locale--is-rtl .offset-xxl-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-xxl-6,.v-locale--is-ltr .offset-xxl-6{margin-left:50%}.v-locale--is-rtl.offset-xxl-6,.v-locale--is-rtl .offset-xxl-6{margin-right:50%}.v-locale--is-ltr.offset-xxl-7,.v-locale--is-ltr .offset-xxl-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-xxl-7,.v-locale--is-rtl .offset-xxl-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-xxl-8,.v-locale--is-ltr .offset-xxl-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-xxl-8,.v-locale--is-rtl .offset-xxl-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-xxl-9,.v-locale--is-ltr .offset-xxl-9{margin-left:75%}.v-locale--is-rtl.offset-xxl-9,.v-locale--is-rtl .offset-xxl-9{margin-right:75%}.v-locale--is-ltr.offset-xxl-10,.v-locale--is-ltr .offset-xxl-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-xxl-10,.v-locale--is-rtl .offset-xxl-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-xxl-11,.v-locale--is-ltr .offset-xxl-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-xxl-11,.v-locale--is-rtl .offset-xxl-11{margin-right:91.6666666667%}}.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex;position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity));transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity));color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover td{background:rgba(var(--v-border-color),var(--v-hover-opacity))}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px 0 rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px 0 rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{--v-table-header-height: 56px;border-radius:inherit;line-height:1.5;max-width:100%}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default>.v-table__wrapper>table>tbody>tr>th,.v-table--density-default>.v-table__wrapper>table>thead>tr>th,.v-table--density-default>.v-table__wrapper>table>tfoot>tr>th{height:calc(var(--v-table-header-height) + 0px)}.v-table--density-default>.v-table__wrapper>table>tbody>tr>td,.v-table--density-default>.v-table__wrapper>table>thead>tr>td,.v-table--density-default>.v-table__wrapper>table>tfoot>tr>td{height:calc(var(--v-table-row-height, 52px) + 0px)}.v-table--density-comfortable>.v-table__wrapper>table>tbody>tr>th,.v-table--density-comfortable>.v-table__wrapper>table>thead>tr>th,.v-table--density-comfortable>.v-table__wrapper>table>tfoot>tr>th{height:calc(var(--v-table-header-height) - 8px)}.v-table--density-comfortable>.v-table__wrapper>table>tbody>tr>td,.v-table--density-comfortable>.v-table__wrapper>table>thead>tr>td,.v-table--density-comfortable>.v-table__wrapper>table>tfoot>tr>td{height:calc(var(--v-table-row-height, 52px) - 8px)}.v-table--density-compact>.v-table__wrapper>table>tbody>tr>th,.v-table--density-compact>.v-table__wrapper>table>thead>tr>th,.v-table--density-compact>.v-table__wrapper>table>tfoot>tr>th{height:calc(var(--v-table-header-height) - 16px)}.v-table--density-compact>.v-table__wrapper>table>tbody>tr>td,.v-table--density-compact>.v-table__wrapper>table>thead>tr>td,.v-table--density-compact>.v-table__wrapper>table>tfoot>tr>td{height:calc(var(--v-table-row-height, 52px) - 16px)}.v-table__wrapper{border-radius:inherit;overflow:auto}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:1}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important}.v-textarea .v-field{--v-textarea-control-height: var(--v-input-control-height)}.v-textarea .v-field__field{--v-input-control-height: var(--v-textarea-control-height)}.v-textarea .v-field__input{flex:1 1 auto;outline:none;-webkit-mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px));mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px))}.v-textarea .v-field__input.v-textarea__sizer{visibility:hidden;position:absolute;top:0;left:0;height:0!important;min-height:0!important;pointer-events:none}.v-textarea--no-resize .v-field__input{resize:none}.v-textarea .v-field--no-label textarea,.v-textarea .v-field--active textarea{opacity:1}.v-textarea textarea{opacity:0;flex:1;min-width:0;transition:.15s opacity cubic-bezier(.4,0,.2,1)}.v-textarea textarea:focus,.v-textarea textarea:active{outline:none}.v-textarea textarea:invalid{box-shadow:none}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td,.v-data-table .v-table__wrapper>table>thead>tr th,.v-data-table .v-table__wrapper>table tbody>tr>td,.v-data-table .v-table__wrapper>table tbody>tr th{background:rgb(var(--v-theme-surface))}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table-column--fixed{position:sticky;z-index:2;left:0}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table-group-header-row td{background:lightgrey}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:.3}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table-footer{display:flex;align-items:center;flex-wrap:wrap;padding:0 8px;justify-content:flex-end}.v-data-table-footer__items-per-page{padding-inline-end:24px;display:flex;align-items:center;justify-content:space-between}.v-data-table-footer__items-per-page>span{padding-inline-end:24px}.v-data-table-footer__info{display:flex;padding-inline-end:24px}.v-data-table-footer__pagination{display:flex;align-items:center}.v-data-table-footer__page{padding:0 8px}.toolbar-bg{background-color:#4f4d4d}.markdown-content{font-family:Arial,sans-serif;line-height:1.6;color:#fff}.markdown-content h1,h2,h3,h4,h5,h6{margin-top:1.5em;margin-bottom:.5em;font-weight:700;line-height:1.3}.markdown-content p{margin-top:0;margin-bottom:1em}.markdown-content ul,ol{padding-left:20px;margin-top:.5em;margin-bottom:.5em}.markdown-content ul{list-style-type:disc}.markdown-content ol{list-style-type:decimal}.markdown-content li{margin-bottom:.25em}.markdown-content a{color:#007bff;text-decoration:none}.markdown-content a:hover{text-decoration:underline}.markdown-content img{max-width:100%;height:auto}.markdown-content blockquote{margin:0;padding-left:1em;color:#6a737d;border-left:.25em solid #dfe2e5}.tox{box-shadow:none;box-sizing:content-box;color:#2a3746;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){background:transparent;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #000000;border-radius:0;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:1px solid #000000;border-radius:0;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:1300}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:3px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#1e71aa66;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#207ab7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus{background-color:#1c6ca1}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#185d8c}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa50080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus{background-color:#f2d574;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc000080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus{background-color:#e9a4a4;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab4680;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#000;border-radius:0;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar,.tox .tox-bottom-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#207ab7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#207ab7;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;position:relative;text-align:center;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button:before{border-radius:3px;bottom:-1px;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #207ab7,0 0 0 3px #207ab740;content:"";left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#207ab7;background-image:none;border-color:#207ab7;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:focus-visible:not(:disabled):before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#114060;background-image:none;border-color:#114060;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:none;padding:4px 16px;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#264560;background-image:none;border-color:#264560;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:#3d546f;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--naked:hover:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:#2b3b4e;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:3px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#fff3}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#207ab7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#207ab7}.tox .tox-checkbox--disabled{color:#ffffff80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#ffffff80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:inset 0 0 0 1px #207ab7;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#1a1a1a;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#333;color:#fff;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--toolbar .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#4a5562;color:#fff}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:#ffffff80;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:#fff}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#ffffff80;cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:#ffffff80}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid #1a1a1a;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:3px 0 2px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #000000}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #000000}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#4a5562}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:3px;width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#ffffff80;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#2b3b4e;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#ffffff80}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar svg,.tox:not([dir=rtl]) .tox-user__avatar img{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg,.tox[dir=rtl] .tox-user__avatar img{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:#222f3ebf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #2a374626,0 0 40px 1px #2a374626;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 16px);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px}@media only screen and (min-width: 768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#ffffff80;display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:#207ab71a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #207ab7;color:#207ab7}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#207ab7;cursor:pointer;text-decoration:underline}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#114060;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #207ab7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#092335;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dd{padding-inline-start:2.5rem}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl{margin-bottom:16px}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dt{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:1px solid #000000;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#222f3ebf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered:before{border:1px solid #000000;border-radius:3px;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered-focus.tox-navobj-bordered:before{border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #000000;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#ffffff80;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area:before{border:2px solid #2D6ADF;border-radius:4px;content:"";top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area:before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #000000}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:none;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #000000;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:0 4px 4px -3px #00000040;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:none;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#2a374633;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#207ab7;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:3px;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#ffffff80;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#222f3e;color:#ffffffd9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#207ab7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#000;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:0 -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#207ab780;border-color:#207ab780}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}@media only screen and (min-width: 768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1 / -1;grid-row:1;padding:0 4px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:transparent;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;overflow:hidden;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn--active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification a{cursor:pointer;text-decoration:underline}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:#000;color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition:before,.tox .tox-pop--transition:after{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #000000;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;opacity:1;position:absolute;width:0}.tox .tox-pop.tox-pop--inset:before,.tox .tox-pop.tox-pop--inset:after{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#000000 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #000000 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #000000 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #000000;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #000000;border-radius:3px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#207ab7;border:2px solid #185d8c;border-radius:3px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#ffffff80;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid #000000;color:#fff;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}@media only screen and (min-width: 768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width: 767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#fff;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar__branding svg{fill:#fffc;height:1.14em;vertical-align:-.28em;width:3.6em}.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin-left:auto;margin-right:-8px;padding-bottom:3px;padding-left:1ch;padding-right:3px}.tox .tox-statusbar__resize-handle svg{display:block;fill:#ffffff80}.tox .tox-statusbar__resize-handle:focus svg{background-color:#4a5562;border-radius:1px 1px -4px;box-shadow:0 0 0 2px #4a5562}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#222f3e99;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:transparent;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:3px 0 2px;outline:none;overflow:hidden;padding:0;text-transform:none;width:34px}.tox .tox-tbtn svg{display:block;fill:#fff}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:#ffffff80}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*{transform:none}.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg{fill:#fff}.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg{fill:#ffffff80}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{border-radius:3px;display:flex;margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-number-input .tox-input-wrapper{background:transparent;display:flex;pointer-events:none;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background:#4a5562}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;width:60px}.tox .tox-number-input input:hover{background:#4a5562;color:#fff}.tox .tox-number-input input:focus{background:#fff;color:#2a3746}.tox .tox-number-input input:disabled{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button{background:transparent;color:#fff;height:34px;text-align:center;width:24px}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}.tox .tox-number-input button:focus{background:#4a5562}.tox .tox-number-input button:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:#ffffff80}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>button,.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper{background:#4a5562}.tox .tox-tbtn--select{margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#ffffff80}.tox .tox-tbtn--bespoke{background:transparent}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:0}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:3px 0 2px;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #4a5562 inset}.tox .tox-split-button:focus{background:#4a5562;box-shadow:none;color:#fff}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#ffffff80}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:transparent;box-shadow:none;color:#ffffff80}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(#000000 0px 1px,transparent 1px 39px);background-position:center top 39px;background-repeat:no-repeat;background-size:calc(100% - 8px) calc(100% - 39px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__primary,.tox .tox-toolbar-overlord>.tox-toolbar__overflow{background-position:center top 0px;background-size:calc(100% - 8px) calc(100% + -0px)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-toolbar-overlord,.tox .tox-anchorbar{grid-column:1 / -1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid #000000;margin-top:-1px;padding-bottom:0;padding-top:0}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 16px) calc(100% - 51px);border:none;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;overscroll-behavior:none;padding:4px 0}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 8px) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #000000}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #000000}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#3d546f;border-radius:3px;box-shadow:0 2px 4px #2a37464d;color:#ffffffbf;font-size:14px;font-style:normal;font-weight:400;padding:4px 8px;text-transform:none}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #3d546f;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #3d546f;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #3d546f;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #3d546f;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:transparent;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:none;overflow:hidden;padding:0 0 0 8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled>*,.tox .tox-tree .tox-trbtn--enabled:hover>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0;position:relative}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;padding:8px 8px 0}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-start,.tox .tox-view__header-end{display:flex}.tox .tox-view__pane{height:100%;padding:8px;width:100%}.tox .tox-view__pane_panel{border:1px solid #000000;border-radius:3px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-start>*,.tox[dir=rtl] .tox-view__header .tox-view__header-end>*{margin-right:8px}.tox .tox-well{border:1px solid #000000;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #000000;border-radius:3px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:none;padding:0}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce-inline .tox-editor-container{overflow:hidden}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:none;box-shadow:none}.tox.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:transparent;box-shadow:0 4px 4px -3px #00000040;padding:0}.tox.tox.tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-pop{box-shadow:none}.tox .tox-tbtn,.tox .tox-number-input,.tox .tox-tbtn--select,.tox .tox-split-button{margin:2px 0 3px}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0px #222f3e!important}.tox .tox-menubar+.tox-toolbar-overlord{border-top:none}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #000000;margin-top:-1px}.tox.tox-tinymce-aux .tox-toolbar__overflow{border:1px solid #000000;padding:0}.tox .tox-pop .tox-pop__dialog .tox-toolbar{padding:0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #000000}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary,.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child{border-top:1px solid #000000}.tox .tox-toolbar__group{padding:0 4px}.tox .tox-collection__item{border-radius:0;cursor:pointer}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;text-decoration:underline}.tox .tox-statusbar__branding svg{vertical-align:-.25em}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox .tox-statusbar__resize-handle{padding-bottom:0;padding-right:0}.tox .tox-button:before{display:none}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-color:#0e1b23!important}.editor{background-color:#1b2f3c;filter:none;height:300px;width:100%;margin-bottom:5px}.editor .ace_gutter{background:#1b2f3c}.editor .ace_active-line,.editor .ace_gutter-active-line{background:#0e1b23!important}@font-face{font-family:Material Design Icons;src:url(./materialdesignicons-webfont-5159a347.eot?v=7.3.67);src:url(./materialdesignicons-webfont-5159a347.eot?#iefix&v=7.3.67) format("embedded-opentype"),url(./materialdesignicons-webfont-31010194.woff2?v=7.3.67) format("woff2"),url(./materialdesignicons-webfont-28c8f97f.woff?v=7.3.67) format("woff"),url(./materialdesignicons-webfont-be825c12.ttf?v=7.3.67) format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"󰇉"}.mdi-abacus:before{content:"󱛠"}.mdi-abjad-arabic:before{content:"󱌨"}.mdi-abjad-hebrew:before{content:"󱌩"}.mdi-abugida-devanagari:before{content:"󱌪"}.mdi-abugida-thai:before{content:"󱌫"}.mdi-access-point:before{content:"󰀃"}.mdi-access-point-check:before{content:"󱔸"}.mdi-access-point-minus:before{content:"󱔹"}.mdi-access-point-network:before{content:"󰀂"}.mdi-access-point-network-off:before{content:"󰯡"}.mdi-access-point-off:before{content:"󱔑"}.mdi-access-point-plus:before{content:"󱔺"}.mdi-access-point-remove:before{content:"󱔻"}.mdi-account:before{content:"󰀄"}.mdi-account-alert:before{content:"󰀅"}.mdi-account-alert-outline:before{content:"󰭐"}.mdi-account-arrow-down:before{content:"󱡨"}.mdi-account-arrow-down-outline:before{content:"󱡩"}.mdi-account-arrow-left:before{content:"󰭑"}.mdi-account-arrow-left-outline:before{content:"󰭒"}.mdi-account-arrow-right:before{content:"󰭓"}.mdi-account-arrow-right-outline:before{content:"󰭔"}.mdi-account-arrow-up:before{content:"󱡧"}.mdi-account-arrow-up-outline:before{content:"󱡪"}.mdi-account-badge:before{content:"󱬊"}.mdi-account-badge-outline:before{content:"󱬋"}.mdi-account-box:before{content:"󰀆"}.mdi-account-box-multiple:before{content:"󰤴"}.mdi-account-box-multiple-outline:before{content:"󱀊"}.mdi-account-box-outline:before{content:"󰀇"}.mdi-account-cancel:before{content:"󱋟"}.mdi-account-cancel-outline:before{content:"󱋠"}.mdi-account-card:before{content:"󱮤"}.mdi-account-card-outline:before{content:"󱮥"}.mdi-account-cash:before{content:"󱂗"}.mdi-account-cash-outline:before{content:"󱂘"}.mdi-account-check:before{content:"󰀈"}.mdi-account-check-outline:before{content:"󰯢"}.mdi-account-child:before{content:"󰪉"}.mdi-account-child-circle:before{content:"󰪊"}.mdi-account-child-outline:before{content:"󱃈"}.mdi-account-circle:before{content:"󰀉"}.mdi-account-circle-outline:before{content:"󰭕"}.mdi-account-clock:before{content:"󰭖"}.mdi-account-clock-outline:before{content:"󰭗"}.mdi-account-cog:before{content:"󱍰"}.mdi-account-cog-outline:before{content:"󱍱"}.mdi-account-convert:before{content:"󰀊"}.mdi-account-convert-outline:before{content:"󱌁"}.mdi-account-cowboy-hat:before{content:"󰺛"}.mdi-account-cowboy-hat-outline:before{content:"󱟳"}.mdi-account-credit-card:before{content:"󱮦"}.mdi-account-credit-card-outline:before{content:"󱮧"}.mdi-account-details:before{content:"󰘱"}.mdi-account-details-outline:before{content:"󱍲"}.mdi-account-edit:before{content:"󰚼"}.mdi-account-edit-outline:before{content:"󰿻"}.mdi-account-eye:before{content:"󰐠"}.mdi-account-eye-outline:before{content:"󱉻"}.mdi-account-file:before{content:"󱲧"}.mdi-account-file-outline:before{content:"󱲨"}.mdi-account-file-text:before{content:"󱲩"}.mdi-account-file-text-outline:before{content:"󱲪"}.mdi-account-filter:before{content:"󰤶"}.mdi-account-filter-outline:before{content:"󰾝"}.mdi-account-group:before{content:"󰡉"}.mdi-account-group-outline:before{content:"󰭘"}.mdi-account-hard-hat:before{content:"󰖵"}.mdi-account-hard-hat-outline:before{content:"󱨟"}.mdi-account-heart:before{content:"󰢙"}.mdi-account-heart-outline:before{content:"󰯣"}.mdi-account-injury:before{content:"󱠕"}.mdi-account-injury-outline:before{content:"󱠖"}.mdi-account-key:before{content:"󰀋"}.mdi-account-key-outline:before{content:"󰯤"}.mdi-account-lock:before{content:"󱅞"}.mdi-account-lock-open:before{content:"󱥠"}.mdi-account-lock-open-outline:before{content:"󱥡"}.mdi-account-lock-outline:before{content:"󱅟"}.mdi-account-minus:before{content:"󰀍"}.mdi-account-minus-outline:before{content:"󰫬"}.mdi-account-multiple:before{content:"󰀎"}.mdi-account-multiple-check:before{content:"󰣅"}.mdi-account-multiple-check-outline:before{content:"󱇾"}.mdi-account-multiple-minus:before{content:"󰗓"}.mdi-account-multiple-minus-outline:before{content:"󰯥"}.mdi-account-multiple-outline:before{content:"󰀏"}.mdi-account-multiple-plus:before{content:"󰀐"}.mdi-account-multiple-plus-outline:before{content:"󰠀"}.mdi-account-multiple-remove:before{content:"󱈊"}.mdi-account-multiple-remove-outline:before{content:"󱈋"}.mdi-account-music:before{content:"󰠃"}.mdi-account-music-outline:before{content:"󰳩"}.mdi-account-network:before{content:"󰀑"}.mdi-account-network-off:before{content:"󱫱"}.mdi-account-network-off-outline:before{content:"󱫲"}.mdi-account-network-outline:before{content:"󰯦"}.mdi-account-off:before{content:"󰀒"}.mdi-account-off-outline:before{content:"󰯧"}.mdi-account-outline:before{content:"󰀓"}.mdi-account-plus:before{content:"󰀔"}.mdi-account-plus-outline:before{content:"󰠁"}.mdi-account-question:before{content:"󰭙"}.mdi-account-question-outline:before{content:"󰭚"}.mdi-account-reactivate:before{content:"󱔫"}.mdi-account-reactivate-outline:before{content:"󱔬"}.mdi-account-remove:before{content:"󰀕"}.mdi-account-remove-outline:before{content:"󰫭"}.mdi-account-school:before{content:"󱨠"}.mdi-account-school-outline:before{content:"󱨡"}.mdi-account-search:before{content:"󰀖"}.mdi-account-search-outline:before{content:"󰤵"}.mdi-account-settings:before{content:"󰘰"}.mdi-account-settings-outline:before{content:"󱃉"}.mdi-account-star:before{content:"󰀗"}.mdi-account-star-outline:before{content:"󰯨"}.mdi-account-supervisor:before{content:"󰪋"}.mdi-account-supervisor-circle:before{content:"󰪌"}.mdi-account-supervisor-circle-outline:before{content:"󱓬"}.mdi-account-supervisor-outline:before{content:"󱄭"}.mdi-account-switch:before{content:"󰀙"}.mdi-account-switch-outline:before{content:"󰓋"}.mdi-account-sync:before{content:"󱤛"}.mdi-account-sync-outline:before{content:"󱤜"}.mdi-account-tag:before{content:"󱰛"}.mdi-account-tag-outline:before{content:"󱰜"}.mdi-account-tie:before{content:"󰳣"}.mdi-account-tie-hat:before{content:"󱢘"}.mdi-account-tie-hat-outline:before{content:"󱢙"}.mdi-account-tie-outline:before{content:"󱃊"}.mdi-account-tie-voice:before{content:"󱌈"}.mdi-account-tie-voice-off:before{content:"󱌊"}.mdi-account-tie-voice-off-outline:before{content:"󱌋"}.mdi-account-tie-voice-outline:before{content:"󱌉"}.mdi-account-tie-woman:before{content:"󱪌"}.mdi-account-voice:before{content:"󰗋"}.mdi-account-voice-off:before{content:"󰻔"}.mdi-account-wrench:before{content:"󱢚"}.mdi-account-wrench-outline:before{content:"󱢛"}.mdi-adjust:before{content:"󰀚"}.mdi-advertisements:before{content:"󱤪"}.mdi-advertisements-off:before{content:"󱤫"}.mdi-air-conditioner:before{content:"󰀛"}.mdi-air-filter:before{content:"󰵃"}.mdi-air-horn:before{content:"󰶬"}.mdi-air-humidifier:before{content:"󱂙"}.mdi-air-humidifier-off:before{content:"󱑦"}.mdi-air-purifier:before{content:"󰵄"}.mdi-air-purifier-off:before{content:"󱭗"}.mdi-airbag:before{content:"󰯩"}.mdi-airballoon:before{content:"󰀜"}.mdi-airballoon-outline:before{content:"󱀋"}.mdi-airplane:before{content:"󰀝"}.mdi-airplane-alert:before{content:"󱡺"}.mdi-airplane-check:before{content:"󱡻"}.mdi-airplane-clock:before{content:"󱡼"}.mdi-airplane-cog:before{content:"󱡽"}.mdi-airplane-edit:before{content:"󱡾"}.mdi-airplane-landing:before{content:"󰗔"}.mdi-airplane-marker:before{content:"󱡿"}.mdi-airplane-minus:before{content:"󱢀"}.mdi-airplane-off:before{content:"󰀞"}.mdi-airplane-plus:before{content:"󱢁"}.mdi-airplane-remove:before{content:"󱢂"}.mdi-airplane-search:before{content:"󱢃"}.mdi-airplane-settings:before{content:"󱢄"}.mdi-airplane-takeoff:before{content:"󰗕"}.mdi-airport:before{content:"󰡋"}.mdi-alarm:before{content:"󰀠"}.mdi-alarm-bell:before{content:"󰞎"}.mdi-alarm-check:before{content:"󰀡"}.mdi-alarm-light:before{content:"󰞏"}.mdi-alarm-light-off:before{content:"󱜞"}.mdi-alarm-light-off-outline:before{content:"󱜟"}.mdi-alarm-light-outline:before{content:"󰯪"}.mdi-alarm-multiple:before{content:"󰀢"}.mdi-alarm-note:before{content:"󰹱"}.mdi-alarm-note-off:before{content:"󰹲"}.mdi-alarm-off:before{content:"󰀣"}.mdi-alarm-panel:before{content:"󱗄"}.mdi-alarm-panel-outline:before{content:"󱗅"}.mdi-alarm-plus:before{content:"󰀤"}.mdi-alarm-snooze:before{content:"󰚎"}.mdi-album:before{content:"󰀥"}.mdi-alert:before{content:"󰀦"}.mdi-alert-box:before{content:"󰀧"}.mdi-alert-box-outline:before{content:"󰳤"}.mdi-alert-circle:before{content:"󰀨"}.mdi-alert-circle-check:before{content:"󱇭"}.mdi-alert-circle-check-outline:before{content:"󱇮"}.mdi-alert-circle-outline:before{content:"󰗖"}.mdi-alert-decagram:before{content:"󰚽"}.mdi-alert-decagram-outline:before{content:"󰳥"}.mdi-alert-minus:before{content:"󱒻"}.mdi-alert-minus-outline:before{content:"󱒾"}.mdi-alert-octagon:before{content:"󰀩"}.mdi-alert-octagon-outline:before{content:"󰳦"}.mdi-alert-octagram:before{content:"󰝧"}.mdi-alert-octagram-outline:before{content:"󰳧"}.mdi-alert-outline:before{content:"󰀪"}.mdi-alert-plus:before{content:"󱒺"}.mdi-alert-plus-outline:before{content:"󱒽"}.mdi-alert-remove:before{content:"󱒼"}.mdi-alert-remove-outline:before{content:"󱒿"}.mdi-alert-rhombus:before{content:"󱇎"}.mdi-alert-rhombus-outline:before{content:"󱇏"}.mdi-alien:before{content:"󰢚"}.mdi-alien-outline:before{content:"󱃋"}.mdi-align-horizontal-center:before{content:"󱇃"}.mdi-align-horizontal-distribute:before{content:"󱥢"}.mdi-align-horizontal-left:before{content:"󱇂"}.mdi-align-horizontal-right:before{content:"󱇄"}.mdi-align-vertical-bottom:before{content:"󱇅"}.mdi-align-vertical-center:before{content:"󱇆"}.mdi-align-vertical-distribute:before{content:"󱥣"}.mdi-align-vertical-top:before{content:"󱇇"}.mdi-all-inclusive:before{content:"󰚾"}.mdi-all-inclusive-box:before{content:"󱢍"}.mdi-all-inclusive-box-outline:before{content:"󱢎"}.mdi-allergy:before{content:"󱉘"}.mdi-alpha:before{content:"󰀫"}.mdi-alpha-a:before{content:"󰫮"}.mdi-alpha-a-box:before{content:"󰬈"}.mdi-alpha-a-box-outline:before{content:"󰯫"}.mdi-alpha-a-circle:before{content:"󰯬"}.mdi-alpha-a-circle-outline:before{content:"󰯭"}.mdi-alpha-b:before{content:"󰫯"}.mdi-alpha-b-box:before{content:"󰬉"}.mdi-alpha-b-box-outline:before{content:"󰯮"}.mdi-alpha-b-circle:before{content:"󰯯"}.mdi-alpha-b-circle-outline:before{content:"󰯰"}.mdi-alpha-c:before{content:"󰫰"}.mdi-alpha-c-box:before{content:"󰬊"}.mdi-alpha-c-box-outline:before{content:"󰯱"}.mdi-alpha-c-circle:before{content:"󰯲"}.mdi-alpha-c-circle-outline:before{content:"󰯳"}.mdi-alpha-d:before{content:"󰫱"}.mdi-alpha-d-box:before{content:"󰬋"}.mdi-alpha-d-box-outline:before{content:"󰯴"}.mdi-alpha-d-circle:before{content:"󰯵"}.mdi-alpha-d-circle-outline:before{content:"󰯶"}.mdi-alpha-e:before{content:"󰫲"}.mdi-alpha-e-box:before{content:"󰬌"}.mdi-alpha-e-box-outline:before{content:"󰯷"}.mdi-alpha-e-circle:before{content:"󰯸"}.mdi-alpha-e-circle-outline:before{content:"󰯹"}.mdi-alpha-f:before{content:"󰫳"}.mdi-alpha-f-box:before{content:"󰬍"}.mdi-alpha-f-box-outline:before{content:"󰯺"}.mdi-alpha-f-circle:before{content:"󰯻"}.mdi-alpha-f-circle-outline:before{content:"󰯼"}.mdi-alpha-g:before{content:"󰫴"}.mdi-alpha-g-box:before{content:"󰬎"}.mdi-alpha-g-box-outline:before{content:"󰯽"}.mdi-alpha-g-circle:before{content:"󰯾"}.mdi-alpha-g-circle-outline:before{content:"󰯿"}.mdi-alpha-h:before{content:"󰫵"}.mdi-alpha-h-box:before{content:"󰬏"}.mdi-alpha-h-box-outline:before{content:"󰰀"}.mdi-alpha-h-circle:before{content:"󰰁"}.mdi-alpha-h-circle-outline:before{content:"󰰂"}.mdi-alpha-i:before{content:"󰫶"}.mdi-alpha-i-box:before{content:"󰬐"}.mdi-alpha-i-box-outline:before{content:"󰰃"}.mdi-alpha-i-circle:before{content:"󰰄"}.mdi-alpha-i-circle-outline:before{content:"󰰅"}.mdi-alpha-j:before{content:"󰫷"}.mdi-alpha-j-box:before{content:"󰬑"}.mdi-alpha-j-box-outline:before{content:"󰰆"}.mdi-alpha-j-circle:before{content:"󰰇"}.mdi-alpha-j-circle-outline:before{content:"󰰈"}.mdi-alpha-k:before{content:"󰫸"}.mdi-alpha-k-box:before{content:"󰬒"}.mdi-alpha-k-box-outline:before{content:"󰰉"}.mdi-alpha-k-circle:before{content:"󰰊"}.mdi-alpha-k-circle-outline:before{content:"󰰋"}.mdi-alpha-l:before{content:"󰫹"}.mdi-alpha-l-box:before{content:"󰬓"}.mdi-alpha-l-box-outline:before{content:"󰰌"}.mdi-alpha-l-circle:before{content:"󰰍"}.mdi-alpha-l-circle-outline:before{content:"󰰎"}.mdi-alpha-m:before{content:"󰫺"}.mdi-alpha-m-box:before{content:"󰬔"}.mdi-alpha-m-box-outline:before{content:"󰰏"}.mdi-alpha-m-circle:before{content:"󰰐"}.mdi-alpha-m-circle-outline:before{content:"󰰑"}.mdi-alpha-n:before{content:"󰫻"}.mdi-alpha-n-box:before{content:"󰬕"}.mdi-alpha-n-box-outline:before{content:"󰰒"}.mdi-alpha-n-circle:before{content:"󰰓"}.mdi-alpha-n-circle-outline:before{content:"󰰔"}.mdi-alpha-o:before{content:"󰫼"}.mdi-alpha-o-box:before{content:"󰬖"}.mdi-alpha-o-box-outline:before{content:"󰰕"}.mdi-alpha-o-circle:before{content:"󰰖"}.mdi-alpha-o-circle-outline:before{content:"󰰗"}.mdi-alpha-p:before{content:"󰫽"}.mdi-alpha-p-box:before{content:"󰬗"}.mdi-alpha-p-box-outline:before{content:"󰰘"}.mdi-alpha-p-circle:before{content:"󰰙"}.mdi-alpha-p-circle-outline:before{content:"󰰚"}.mdi-alpha-q:before{content:"󰫾"}.mdi-alpha-q-box:before{content:"󰬘"}.mdi-alpha-q-box-outline:before{content:"󰰛"}.mdi-alpha-q-circle:before{content:"󰰜"}.mdi-alpha-q-circle-outline:before{content:"󰰝"}.mdi-alpha-r:before{content:"󰫿"}.mdi-alpha-r-box:before{content:"󰬙"}.mdi-alpha-r-box-outline:before{content:"󰰞"}.mdi-alpha-r-circle:before{content:"󰰟"}.mdi-alpha-r-circle-outline:before{content:"󰰠"}.mdi-alpha-s:before{content:"󰬀"}.mdi-alpha-s-box:before{content:"󰬚"}.mdi-alpha-s-box-outline:before{content:"󰰡"}.mdi-alpha-s-circle:before{content:"󰰢"}.mdi-alpha-s-circle-outline:before{content:"󰰣"}.mdi-alpha-t:before{content:"󰬁"}.mdi-alpha-t-box:before{content:"󰬛"}.mdi-alpha-t-box-outline:before{content:"󰰤"}.mdi-alpha-t-circle:before{content:"󰰥"}.mdi-alpha-t-circle-outline:before{content:"󰰦"}.mdi-alpha-u:before{content:"󰬂"}.mdi-alpha-u-box:before{content:"󰬜"}.mdi-alpha-u-box-outline:before{content:"󰰧"}.mdi-alpha-u-circle:before{content:"󰰨"}.mdi-alpha-u-circle-outline:before{content:"󰰩"}.mdi-alpha-v:before{content:"󰬃"}.mdi-alpha-v-box:before{content:"󰬝"}.mdi-alpha-v-box-outline:before{content:"󰰪"}.mdi-alpha-v-circle:before{content:"󰰫"}.mdi-alpha-v-circle-outline:before{content:"󰰬"}.mdi-alpha-w:before{content:"󰬄"}.mdi-alpha-w-box:before{content:"󰬞"}.mdi-alpha-w-box-outline:before{content:"󰰭"}.mdi-alpha-w-circle:before{content:"󰰮"}.mdi-alpha-w-circle-outline:before{content:"󰰯"}.mdi-alpha-x:before{content:"󰬅"}.mdi-alpha-x-box:before{content:"󰬟"}.mdi-alpha-x-box-outline:before{content:"󰰰"}.mdi-alpha-x-circle:before{content:"󰰱"}.mdi-alpha-x-circle-outline:before{content:"󰰲"}.mdi-alpha-y:before{content:"󰬆"}.mdi-alpha-y-box:before{content:"󰬠"}.mdi-alpha-y-box-outline:before{content:"󰰳"}.mdi-alpha-y-circle:before{content:"󰰴"}.mdi-alpha-y-circle-outline:before{content:"󰰵"}.mdi-alpha-z:before{content:"󰬇"}.mdi-alpha-z-box:before{content:"󰬡"}.mdi-alpha-z-box-outline:before{content:"󰰶"}.mdi-alpha-z-circle:before{content:"󰰷"}.mdi-alpha-z-circle-outline:before{content:"󰰸"}.mdi-alphabet-aurebesh:before{content:"󱌬"}.mdi-alphabet-cyrillic:before{content:"󱌭"}.mdi-alphabet-greek:before{content:"󱌮"}.mdi-alphabet-latin:before{content:"󱌯"}.mdi-alphabet-piqad:before{content:"󱌰"}.mdi-alphabet-tengwar:before{content:"󱌷"}.mdi-alphabetical:before{content:"󰀬"}.mdi-alphabetical-off:before{content:"󱀌"}.mdi-alphabetical-variant:before{content:"󱀍"}.mdi-alphabetical-variant-off:before{content:"󱀎"}.mdi-altimeter:before{content:"󰗗"}.mdi-ambulance:before{content:"󰀯"}.mdi-ammunition:before{content:"󰳨"}.mdi-ampersand:before{content:"󰪍"}.mdi-amplifier:before{content:"󰀰"}.mdi-amplifier-off:before{content:"󱆵"}.mdi-anchor:before{content:"󰀱"}.mdi-android:before{content:"󰀲"}.mdi-android-studio:before{content:"󰀴"}.mdi-angle-acute:before{content:"󰤷"}.mdi-angle-obtuse:before{content:"󰤸"}.mdi-angle-right:before{content:"󰤹"}.mdi-angular:before{content:"󰚲"}.mdi-angularjs:before{content:"󰚿"}.mdi-animation:before{content:"󰗘"}.mdi-animation-outline:before{content:"󰪏"}.mdi-animation-play:before{content:"󰤺"}.mdi-animation-play-outline:before{content:"󰪐"}.mdi-ansible:before{content:"󱂚"}.mdi-antenna:before{content:"󱄙"}.mdi-anvil:before{content:"󰢛"}.mdi-apache-kafka:before{content:"󱀏"}.mdi-api:before{content:"󱂛"}.mdi-api-off:before{content:"󱉗"}.mdi-apple:before{content:"󰀵"}.mdi-apple-finder:before{content:"󰀶"}.mdi-apple-icloud:before{content:"󰀸"}.mdi-apple-ios:before{content:"󰀷"}.mdi-apple-keyboard-caps:before{content:"󰘲"}.mdi-apple-keyboard-command:before{content:"󰘳"}.mdi-apple-keyboard-control:before{content:"󰘴"}.mdi-apple-keyboard-option:before{content:"󰘵"}.mdi-apple-keyboard-shift:before{content:"󰘶"}.mdi-apple-safari:before{content:"󰀹"}.mdi-application:before{content:"󰣆"}.mdi-application-array:before{content:"󱃵"}.mdi-application-array-outline:before{content:"󱃶"}.mdi-application-braces:before{content:"󱃷"}.mdi-application-braces-outline:before{content:"󱃸"}.mdi-application-brackets:before{content:"󰲋"}.mdi-application-brackets-outline:before{content:"󰲌"}.mdi-application-cog:before{content:"󰙵"}.mdi-application-cog-outline:before{content:"󱕷"}.mdi-application-edit:before{content:"󰂮"}.mdi-application-edit-outline:before{content:"󰘙"}.mdi-application-export:before{content:"󰶭"}.mdi-application-import:before{content:"󰶮"}.mdi-application-outline:before{content:"󰘔"}.mdi-application-parentheses:before{content:"󱃹"}.mdi-application-parentheses-outline:before{content:"󱃺"}.mdi-application-settings:before{content:"󰭠"}.mdi-application-settings-outline:before{content:"󱕕"}.mdi-application-variable:before{content:"󱃻"}.mdi-application-variable-outline:before{content:"󱃼"}.mdi-approximately-equal:before{content:"󰾞"}.mdi-approximately-equal-box:before{content:"󰾟"}.mdi-apps:before{content:"󰀻"}.mdi-apps-box:before{content:"󰵆"}.mdi-arch:before{content:"󰣇"}.mdi-archive:before{content:"󰀼"}.mdi-archive-alert:before{content:"󱓽"}.mdi-archive-alert-outline:before{content:"󱓾"}.mdi-archive-arrow-down:before{content:"󱉙"}.mdi-archive-arrow-down-outline:before{content:"󱉚"}.mdi-archive-arrow-up:before{content:"󱉛"}.mdi-archive-arrow-up-outline:before{content:"󱉜"}.mdi-archive-cancel:before{content:"󱝋"}.mdi-archive-cancel-outline:before{content:"󱝌"}.mdi-archive-check:before{content:"󱝍"}.mdi-archive-check-outline:before{content:"󱝎"}.mdi-archive-clock:before{content:"󱝏"}.mdi-archive-clock-outline:before{content:"󱝐"}.mdi-archive-cog:before{content:"󱝑"}.mdi-archive-cog-outline:before{content:"󱝒"}.mdi-archive-edit:before{content:"󱝓"}.mdi-archive-edit-outline:before{content:"󱝔"}.mdi-archive-eye:before{content:"󱝕"}.mdi-archive-eye-outline:before{content:"󱝖"}.mdi-archive-lock:before{content:"󱝗"}.mdi-archive-lock-open:before{content:"󱝘"}.mdi-archive-lock-open-outline:before{content:"󱝙"}.mdi-archive-lock-outline:before{content:"󱝚"}.mdi-archive-marker:before{content:"󱝛"}.mdi-archive-marker-outline:before{content:"󱝜"}.mdi-archive-minus:before{content:"󱝝"}.mdi-archive-minus-outline:before{content:"󱝞"}.mdi-archive-music:before{content:"󱝟"}.mdi-archive-music-outline:before{content:"󱝠"}.mdi-archive-off:before{content:"󱝡"}.mdi-archive-off-outline:before{content:"󱝢"}.mdi-archive-outline:before{content:"󱈎"}.mdi-archive-plus:before{content:"󱝣"}.mdi-archive-plus-outline:before{content:"󱝤"}.mdi-archive-refresh:before{content:"󱝥"}.mdi-archive-refresh-outline:before{content:"󱝦"}.mdi-archive-remove:before{content:"󱝧"}.mdi-archive-remove-outline:before{content:"󱝨"}.mdi-archive-search:before{content:"󱝩"}.mdi-archive-search-outline:before{content:"󱝪"}.mdi-archive-settings:before{content:"󱝫"}.mdi-archive-settings-outline:before{content:"󱝬"}.mdi-archive-star:before{content:"󱝭"}.mdi-archive-star-outline:before{content:"󱝮"}.mdi-archive-sync:before{content:"󱝯"}.mdi-archive-sync-outline:before{content:"󱝰"}.mdi-arm-flex:before{content:"󰿗"}.mdi-arm-flex-outline:before{content:"󰿖"}.mdi-arrange-bring-forward:before{content:"󰀽"}.mdi-arrange-bring-to-front:before{content:"󰀾"}.mdi-arrange-send-backward:before{content:"󰀿"}.mdi-arrange-send-to-back:before{content:"󰁀"}.mdi-arrow-all:before{content:"󰁁"}.mdi-arrow-bottom-left:before{content:"󰁂"}.mdi-arrow-bottom-left-bold-box:before{content:"󱥤"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"󱥥"}.mdi-arrow-bottom-left-bold-outline:before{content:"󰦷"}.mdi-arrow-bottom-left-thick:before{content:"󰦸"}.mdi-arrow-bottom-left-thin:before{content:"󱦶"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"󱖖"}.mdi-arrow-bottom-right:before{content:"󰁃"}.mdi-arrow-bottom-right-bold-box:before{content:"󱥦"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"󱥧"}.mdi-arrow-bottom-right-bold-outline:before{content:"󰦹"}.mdi-arrow-bottom-right-thick:before{content:"󰦺"}.mdi-arrow-bottom-right-thin:before{content:"󱦷"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"󱖕"}.mdi-arrow-collapse:before{content:"󰘕"}.mdi-arrow-collapse-all:before{content:"󰁄"}.mdi-arrow-collapse-down:before{content:"󰞒"}.mdi-arrow-collapse-horizontal:before{content:"󰡌"}.mdi-arrow-collapse-left:before{content:"󰞓"}.mdi-arrow-collapse-right:before{content:"󰞔"}.mdi-arrow-collapse-up:before{content:"󰞕"}.mdi-arrow-collapse-vertical:before{content:"󰡍"}.mdi-arrow-decision:before{content:"󰦻"}.mdi-arrow-decision-auto:before{content:"󰦼"}.mdi-arrow-decision-auto-outline:before{content:"󰦽"}.mdi-arrow-decision-outline:before{content:"󰦾"}.mdi-arrow-down:before{content:"󰁅"}.mdi-arrow-down-bold:before{content:"󰜮"}.mdi-arrow-down-bold-box:before{content:"󰜯"}.mdi-arrow-down-bold-box-outline:before{content:"󰜰"}.mdi-arrow-down-bold-circle:before{content:"󰁇"}.mdi-arrow-down-bold-circle-outline:before{content:"󰁈"}.mdi-arrow-down-bold-hexagon-outline:before{content:"󰁉"}.mdi-arrow-down-bold-outline:before{content:"󰦿"}.mdi-arrow-down-box:before{content:"󰛀"}.mdi-arrow-down-circle:before{content:"󰳛"}.mdi-arrow-down-circle-outline:before{content:"󰳜"}.mdi-arrow-down-drop-circle:before{content:"󰁊"}.mdi-arrow-down-drop-circle-outline:before{content:"󰁋"}.mdi-arrow-down-left:before{content:"󱞡"}.mdi-arrow-down-left-bold:before{content:"󱞢"}.mdi-arrow-down-right:before{content:"󱞣"}.mdi-arrow-down-right-bold:before{content:"󱞤"}.mdi-arrow-down-thick:before{content:"󰁆"}.mdi-arrow-down-thin:before{content:"󱦳"}.mdi-arrow-down-thin-circle-outline:before{content:"󱖙"}.mdi-arrow-expand:before{content:"󰘖"}.mdi-arrow-expand-all:before{content:"󰁌"}.mdi-arrow-expand-down:before{content:"󰞖"}.mdi-arrow-expand-horizontal:before{content:"󰡎"}.mdi-arrow-expand-left:before{content:"󰞗"}.mdi-arrow-expand-right:before{content:"󰞘"}.mdi-arrow-expand-up:before{content:"󰞙"}.mdi-arrow-expand-vertical:before{content:"󰡏"}.mdi-arrow-horizontal-lock:before{content:"󱅛"}.mdi-arrow-left:before{content:"󰁍"}.mdi-arrow-left-bold:before{content:"󰜱"}.mdi-arrow-left-bold-box:before{content:"󰜲"}.mdi-arrow-left-bold-box-outline:before{content:"󰜳"}.mdi-arrow-left-bold-circle:before{content:"󰁏"}.mdi-arrow-left-bold-circle-outline:before{content:"󰁐"}.mdi-arrow-left-bold-hexagon-outline:before{content:"󰁑"}.mdi-arrow-left-bold-outline:before{content:"󰧀"}.mdi-arrow-left-bottom:before{content:"󱞥"}.mdi-arrow-left-bottom-bold:before{content:"󱞦"}.mdi-arrow-left-box:before{content:"󰛁"}.mdi-arrow-left-circle:before{content:"󰳝"}.mdi-arrow-left-circle-outline:before{content:"󰳞"}.mdi-arrow-left-drop-circle:before{content:"󰁒"}.mdi-arrow-left-drop-circle-outline:before{content:"󰁓"}.mdi-arrow-left-right:before{content:"󰹳"}.mdi-arrow-left-right-bold:before{content:"󰹴"}.mdi-arrow-left-right-bold-outline:before{content:"󰧁"}.mdi-arrow-left-thick:before{content:"󰁎"}.mdi-arrow-left-thin:before{content:"󱦱"}.mdi-arrow-left-thin-circle-outline:before{content:"󱖚"}.mdi-arrow-left-top:before{content:"󱞧"}.mdi-arrow-left-top-bold:before{content:"󱞨"}.mdi-arrow-oscillating:before{content:"󱲑"}.mdi-arrow-oscillating-off:before{content:"󱲒"}.mdi-arrow-projectile:before{content:"󱡀"}.mdi-arrow-projectile-multiple:before{content:"󱠿"}.mdi-arrow-right:before{content:"󰁔"}.mdi-arrow-right-bold:before{content:"󰜴"}.mdi-arrow-right-bold-box:before{content:"󰜵"}.mdi-arrow-right-bold-box-outline:before{content:"󰜶"}.mdi-arrow-right-bold-circle:before{content:"󰁖"}.mdi-arrow-right-bold-circle-outline:before{content:"󰁗"}.mdi-arrow-right-bold-hexagon-outline:before{content:"󰁘"}.mdi-arrow-right-bold-outline:before{content:"󰧂"}.mdi-arrow-right-bottom:before{content:"󱞩"}.mdi-arrow-right-bottom-bold:before{content:"󱞪"}.mdi-arrow-right-box:before{content:"󰛂"}.mdi-arrow-right-circle:before{content:"󰳟"}.mdi-arrow-right-circle-outline:before{content:"󰳠"}.mdi-arrow-right-drop-circle:before{content:"󰁙"}.mdi-arrow-right-drop-circle-outline:before{content:"󰁚"}.mdi-arrow-right-thick:before{content:"󰁕"}.mdi-arrow-right-thin:before{content:"󱦰"}.mdi-arrow-right-thin-circle-outline:before{content:"󱖘"}.mdi-arrow-right-top:before{content:"󱞫"}.mdi-arrow-right-top-bold:before{content:"󱞬"}.mdi-arrow-split-horizontal:before{content:"󰤻"}.mdi-arrow-split-vertical:before{content:"󰤼"}.mdi-arrow-top-left:before{content:"󰁛"}.mdi-arrow-top-left-bold-box:before{content:"󱥨"}.mdi-arrow-top-left-bold-box-outline:before{content:"󱥩"}.mdi-arrow-top-left-bold-outline:before{content:"󰧃"}.mdi-arrow-top-left-bottom-right:before{content:"󰹵"}.mdi-arrow-top-left-bottom-right-bold:before{content:"󰹶"}.mdi-arrow-top-left-thick:before{content:"󰧄"}.mdi-arrow-top-left-thin:before{content:"󱦵"}.mdi-arrow-top-left-thin-circle-outline:before{content:"󱖓"}.mdi-arrow-top-right:before{content:"󰁜"}.mdi-arrow-top-right-bold-box:before{content:"󱥪"}.mdi-arrow-top-right-bold-box-outline:before{content:"󱥫"}.mdi-arrow-top-right-bold-outline:before{content:"󰧅"}.mdi-arrow-top-right-bottom-left:before{content:"󰹷"}.mdi-arrow-top-right-bottom-left-bold:before{content:"󰹸"}.mdi-arrow-top-right-thick:before{content:"󰧆"}.mdi-arrow-top-right-thin:before{content:"󱦴"}.mdi-arrow-top-right-thin-circle-outline:before{content:"󱖔"}.mdi-arrow-u-down-left:before{content:"󱞭"}.mdi-arrow-u-down-left-bold:before{content:"󱞮"}.mdi-arrow-u-down-right:before{content:"󱞯"}.mdi-arrow-u-down-right-bold:before{content:"󱞰"}.mdi-arrow-u-left-bottom:before{content:"󱞱"}.mdi-arrow-u-left-bottom-bold:before{content:"󱞲"}.mdi-arrow-u-left-top:before{content:"󱞳"}.mdi-arrow-u-left-top-bold:before{content:"󱞴"}.mdi-arrow-u-right-bottom:before{content:"󱞵"}.mdi-arrow-u-right-bottom-bold:before{content:"󱞶"}.mdi-arrow-u-right-top:before{content:"󱞷"}.mdi-arrow-u-right-top-bold:before{content:"󱞸"}.mdi-arrow-u-up-left:before{content:"󱞹"}.mdi-arrow-u-up-left-bold:before{content:"󱞺"}.mdi-arrow-u-up-right:before{content:"󱞻"}.mdi-arrow-u-up-right-bold:before{content:"󱞼"}.mdi-arrow-up:before{content:"󰁝"}.mdi-arrow-up-bold:before{content:"󰜷"}.mdi-arrow-up-bold-box:before{content:"󰜸"}.mdi-arrow-up-bold-box-outline:before{content:"󰜹"}.mdi-arrow-up-bold-circle:before{content:"󰁟"}.mdi-arrow-up-bold-circle-outline:before{content:"󰁠"}.mdi-arrow-up-bold-hexagon-outline:before{content:"󰁡"}.mdi-arrow-up-bold-outline:before{content:"󰧇"}.mdi-arrow-up-box:before{content:"󰛃"}.mdi-arrow-up-circle:before{content:"󰳡"}.mdi-arrow-up-circle-outline:before{content:"󰳢"}.mdi-arrow-up-down:before{content:"󰹹"}.mdi-arrow-up-down-bold:before{content:"󰹺"}.mdi-arrow-up-down-bold-outline:before{content:"󰧈"}.mdi-arrow-up-drop-circle:before{content:"󰁢"}.mdi-arrow-up-drop-circle-outline:before{content:"󰁣"}.mdi-arrow-up-left:before{content:"󱞽"}.mdi-arrow-up-left-bold:before{content:"󱞾"}.mdi-arrow-up-right:before{content:"󱞿"}.mdi-arrow-up-right-bold:before{content:"󱟀"}.mdi-arrow-up-thick:before{content:"󰁞"}.mdi-arrow-up-thin:before{content:"󱦲"}.mdi-arrow-up-thin-circle-outline:before{content:"󱖗"}.mdi-arrow-vertical-lock:before{content:"󱅜"}.mdi-artboard:before{content:"󱮚"}.mdi-artstation:before{content:"󰭛"}.mdi-aspect-ratio:before{content:"󰨤"}.mdi-assistant:before{content:"󰁤"}.mdi-asterisk:before{content:"󰛄"}.mdi-asterisk-circle-outline:before{content:"󱨧"}.mdi-at:before{content:"󰁥"}.mdi-atlassian:before{content:"󰠄"}.mdi-atm:before{content:"󰵇"}.mdi-atom:before{content:"󰝨"}.mdi-atom-variant:before{content:"󰹻"}.mdi-attachment:before{content:"󰁦"}.mdi-attachment-check:before{content:"󱫁"}.mdi-attachment-lock:before{content:"󱧄"}.mdi-attachment-minus:before{content:"󱫂"}.mdi-attachment-off:before{content:"󱫃"}.mdi-attachment-plus:before{content:"󱫄"}.mdi-attachment-remove:before{content:"󱫅"}.mdi-atv:before{content:"󱭰"}.mdi-audio-input-rca:before{content:"󱡫"}.mdi-audio-input-stereo-minijack:before{content:"󱡬"}.mdi-audio-input-xlr:before{content:"󱡭"}.mdi-audio-video:before{content:"󰤽"}.mdi-audio-video-off:before{content:"󱆶"}.mdi-augmented-reality:before{content:"󰡐"}.mdi-aurora:before{content:"󱮹"}.mdi-auto-download:before{content:"󱍾"}.mdi-auto-fix:before{content:"󰁨"}.mdi-auto-mode:before{content:"󱰠"}.mdi-auto-upload:before{content:"󰁩"}.mdi-autorenew:before{content:"󰁪"}.mdi-autorenew-off:before{content:"󱧧"}.mdi-av-timer:before{content:"󰁫"}.mdi-awning:before{content:"󱮇"}.mdi-awning-outline:before{content:"󱮈"}.mdi-aws:before{content:"󰸏"}.mdi-axe:before{content:"󰣈"}.mdi-axe-battle:before{content:"󱡂"}.mdi-axis:before{content:"󰵈"}.mdi-axis-arrow:before{content:"󰵉"}.mdi-axis-arrow-info:before{content:"󱐎"}.mdi-axis-arrow-lock:before{content:"󰵊"}.mdi-axis-lock:before{content:"󰵋"}.mdi-axis-x-arrow:before{content:"󰵌"}.mdi-axis-x-arrow-lock:before{content:"󰵍"}.mdi-axis-x-rotate-clockwise:before{content:"󰵎"}.mdi-axis-x-rotate-counterclockwise:before{content:"󰵏"}.mdi-axis-x-y-arrow-lock:before{content:"󰵐"}.mdi-axis-y-arrow:before{content:"󰵑"}.mdi-axis-y-arrow-lock:before{content:"󰵒"}.mdi-axis-y-rotate-clockwise:before{content:"󰵓"}.mdi-axis-y-rotate-counterclockwise:before{content:"󰵔"}.mdi-axis-z-arrow:before{content:"󰵕"}.mdi-axis-z-arrow-lock:before{content:"󰵖"}.mdi-axis-z-rotate-clockwise:before{content:"󰵗"}.mdi-axis-z-rotate-counterclockwise:before{content:"󰵘"}.mdi-babel:before{content:"󰨥"}.mdi-baby:before{content:"󰁬"}.mdi-baby-bottle:before{content:"󰼹"}.mdi-baby-bottle-outline:before{content:"󰼺"}.mdi-baby-buggy:before{content:"󱏠"}.mdi-baby-buggy-off:before{content:"󱫳"}.mdi-baby-carriage:before{content:"󰚏"}.mdi-baby-carriage-off:before{content:"󰾠"}.mdi-baby-face:before{content:"󰹼"}.mdi-baby-face-outline:before{content:"󰹽"}.mdi-backburger:before{content:"󰁭"}.mdi-backspace:before{content:"󰁮"}.mdi-backspace-outline:before{content:"󰭜"}.mdi-backspace-reverse:before{content:"󰹾"}.mdi-backspace-reverse-outline:before{content:"󰹿"}.mdi-backup-restore:before{content:"󰁯"}.mdi-bacteria:before{content:"󰻕"}.mdi-bacteria-outline:before{content:"󰻖"}.mdi-badge-account:before{content:"󰶧"}.mdi-badge-account-alert:before{content:"󰶨"}.mdi-badge-account-alert-outline:before{content:"󰶩"}.mdi-badge-account-horizontal:before{content:"󰸍"}.mdi-badge-account-horizontal-outline:before{content:"󰸎"}.mdi-badge-account-outline:before{content:"󰶪"}.mdi-badminton:before{content:"󰡑"}.mdi-bag-carry-on:before{content:"󰼻"}.mdi-bag-carry-on-check:before{content:"󰵥"}.mdi-bag-carry-on-off:before{content:"󰼼"}.mdi-bag-checked:before{content:"󰼽"}.mdi-bag-personal:before{content:"󰸐"}.mdi-bag-personal-off:before{content:"󰸑"}.mdi-bag-personal-off-outline:before{content:"󰸒"}.mdi-bag-personal-outline:before{content:"󰸓"}.mdi-bag-personal-plus:before{content:"󱲤"}.mdi-bag-personal-plus-outline:before{content:"󱲥"}.mdi-bag-personal-tag:before{content:"󱬌"}.mdi-bag-personal-tag-outline:before{content:"󱬍"}.mdi-bag-suitcase:before{content:"󱖋"}.mdi-bag-suitcase-off:before{content:"󱖍"}.mdi-bag-suitcase-off-outline:before{content:"󱖎"}.mdi-bag-suitcase-outline:before{content:"󱖌"}.mdi-baguette:before{content:"󰼾"}.mdi-balcony:before{content:"󱠗"}.mdi-balloon:before{content:"󰨦"}.mdi-ballot:before{content:"󰧉"}.mdi-ballot-outline:before{content:"󰧊"}.mdi-ballot-recount:before{content:"󰰹"}.mdi-ballot-recount-outline:before{content:"󰰺"}.mdi-bandage:before{content:"󰶯"}.mdi-bank:before{content:"󰁰"}.mdi-bank-check:before{content:"󱙕"}.mdi-bank-circle:before{content:"󱰃"}.mdi-bank-circle-outline:before{content:"󱰄"}.mdi-bank-minus:before{content:"󰶰"}.mdi-bank-off:before{content:"󱙖"}.mdi-bank-off-outline:before{content:"󱙗"}.mdi-bank-outline:before{content:"󰺀"}.mdi-bank-plus:before{content:"󰶱"}.mdi-bank-remove:before{content:"󰶲"}.mdi-bank-transfer:before{content:"󰨧"}.mdi-bank-transfer-in:before{content:"󰨨"}.mdi-bank-transfer-out:before{content:"󰨩"}.mdi-barcode:before{content:"󰁱"}.mdi-barcode-off:before{content:"󱈶"}.mdi-barcode-scan:before{content:"󰁲"}.mdi-barley:before{content:"󰁳"}.mdi-barley-off:before{content:"󰭝"}.mdi-barn:before{content:"󰭞"}.mdi-barrel:before{content:"󰁴"}.mdi-barrel-outline:before{content:"󱨨"}.mdi-baseball:before{content:"󰡒"}.mdi-baseball-bat:before{content:"󰡓"}.mdi-baseball-diamond:before{content:"󱗬"}.mdi-baseball-diamond-outline:before{content:"󱗭"}.mdi-baseball-outline:before{content:"󱱚"}.mdi-bash:before{content:"󱆃"}.mdi-basket:before{content:"󰁶"}.mdi-basket-check:before{content:"󱣥"}.mdi-basket-check-outline:before{content:"󱣦"}.mdi-basket-fill:before{content:"󰁷"}.mdi-basket-minus:before{content:"󱔣"}.mdi-basket-minus-outline:before{content:"󱔤"}.mdi-basket-off:before{content:"󱔥"}.mdi-basket-off-outline:before{content:"󱔦"}.mdi-basket-outline:before{content:"󱆁"}.mdi-basket-plus:before{content:"󱔧"}.mdi-basket-plus-outline:before{content:"󱔨"}.mdi-basket-remove:before{content:"󱔩"}.mdi-basket-remove-outline:before{content:"󱔪"}.mdi-basket-unfill:before{content:"󰁸"}.mdi-basketball:before{content:"󰠆"}.mdi-basketball-hoop:before{content:"󰰻"}.mdi-basketball-hoop-outline:before{content:"󰰼"}.mdi-bat:before{content:"󰭟"}.mdi-bathtub:before{content:"󱠘"}.mdi-bathtub-outline:before{content:"󱠙"}.mdi-battery:before{content:"󰁹"}.mdi-battery-10:before{content:"󰁺"}.mdi-battery-10-bluetooth:before{content:"󰤾"}.mdi-battery-20:before{content:"󰁻"}.mdi-battery-20-bluetooth:before{content:"󰤿"}.mdi-battery-30:before{content:"󰁼"}.mdi-battery-30-bluetooth:before{content:"󰥀"}.mdi-battery-40:before{content:"󰁽"}.mdi-battery-40-bluetooth:before{content:"󰥁"}.mdi-battery-50:before{content:"󰁾"}.mdi-battery-50-bluetooth:before{content:"󰥂"}.mdi-battery-60:before{content:"󰁿"}.mdi-battery-60-bluetooth:before{content:"󰥃"}.mdi-battery-70:before{content:"󰂀"}.mdi-battery-70-bluetooth:before{content:"󰥄"}.mdi-battery-80:before{content:"󰂁"}.mdi-battery-80-bluetooth:before{content:"󰥅"}.mdi-battery-90:before{content:"󰂂"}.mdi-battery-90-bluetooth:before{content:"󰥆"}.mdi-battery-alert:before{content:"󰂃"}.mdi-battery-alert-bluetooth:before{content:"󰥇"}.mdi-battery-alert-variant:before{content:"󱃌"}.mdi-battery-alert-variant-outline:before{content:"󱃍"}.mdi-battery-arrow-down:before{content:"󱟞"}.mdi-battery-arrow-down-outline:before{content:"󱟟"}.mdi-battery-arrow-up:before{content:"󱟠"}.mdi-battery-arrow-up-outline:before{content:"󱟡"}.mdi-battery-bluetooth:before{content:"󰥈"}.mdi-battery-bluetooth-variant:before{content:"󰥉"}.mdi-battery-charging:before{content:"󰂄"}.mdi-battery-charging-10:before{content:"󰢜"}.mdi-battery-charging-100:before{content:"󰂅"}.mdi-battery-charging-20:before{content:"󰂆"}.mdi-battery-charging-30:before{content:"󰂇"}.mdi-battery-charging-40:before{content:"󰂈"}.mdi-battery-charging-50:before{content:"󰢝"}.mdi-battery-charging-60:before{content:"󰂉"}.mdi-battery-charging-70:before{content:"󰢞"}.mdi-battery-charging-80:before{content:"󰂊"}.mdi-battery-charging-90:before{content:"󰂋"}.mdi-battery-charging-high:before{content:"󱊦"}.mdi-battery-charging-low:before{content:"󱊤"}.mdi-battery-charging-medium:before{content:"󱊥"}.mdi-battery-charging-outline:before{content:"󰢟"}.mdi-battery-charging-wireless:before{content:"󰠇"}.mdi-battery-charging-wireless-10:before{content:"󰠈"}.mdi-battery-charging-wireless-20:before{content:"󰠉"}.mdi-battery-charging-wireless-30:before{content:"󰠊"}.mdi-battery-charging-wireless-40:before{content:"󰠋"}.mdi-battery-charging-wireless-50:before{content:"󰠌"}.mdi-battery-charging-wireless-60:before{content:"󰠍"}.mdi-battery-charging-wireless-70:before{content:"󰠎"}.mdi-battery-charging-wireless-80:before{content:"󰠏"}.mdi-battery-charging-wireless-90:before{content:"󰠐"}.mdi-battery-charging-wireless-alert:before{content:"󰠑"}.mdi-battery-charging-wireless-outline:before{content:"󰠒"}.mdi-battery-check:before{content:"󱟢"}.mdi-battery-check-outline:before{content:"󱟣"}.mdi-battery-clock:before{content:"󱧥"}.mdi-battery-clock-outline:before{content:"󱧦"}.mdi-battery-heart:before{content:"󱈏"}.mdi-battery-heart-outline:before{content:"󱈐"}.mdi-battery-heart-variant:before{content:"󱈑"}.mdi-battery-high:before{content:"󱊣"}.mdi-battery-lock:before{content:"󱞜"}.mdi-battery-lock-open:before{content:"󱞝"}.mdi-battery-low:before{content:"󱊡"}.mdi-battery-medium:before{content:"󱊢"}.mdi-battery-minus:before{content:"󱟤"}.mdi-battery-minus-outline:before{content:"󱟥"}.mdi-battery-minus-variant:before{content:"󰂌"}.mdi-battery-negative:before{content:"󰂍"}.mdi-battery-off:before{content:"󱉝"}.mdi-battery-off-outline:before{content:"󱉞"}.mdi-battery-outline:before{content:"󰂎"}.mdi-battery-plus:before{content:"󱟦"}.mdi-battery-plus-outline:before{content:"󱟧"}.mdi-battery-plus-variant:before{content:"󰂏"}.mdi-battery-positive:before{content:"󰂐"}.mdi-battery-remove:before{content:"󱟨"}.mdi-battery-remove-outline:before{content:"󱟩"}.mdi-battery-sync:before{content:"󱠴"}.mdi-battery-sync-outline:before{content:"󱠵"}.mdi-battery-unknown:before{content:"󰂑"}.mdi-battery-unknown-bluetooth:before{content:"󰥊"}.mdi-beach:before{content:"󰂒"}.mdi-beaker:before{content:"󰳪"}.mdi-beaker-alert:before{content:"󱈩"}.mdi-beaker-alert-outline:before{content:"󱈪"}.mdi-beaker-check:before{content:"󱈫"}.mdi-beaker-check-outline:before{content:"󱈬"}.mdi-beaker-minus:before{content:"󱈭"}.mdi-beaker-minus-outline:before{content:"󱈮"}.mdi-beaker-outline:before{content:"󰚐"}.mdi-beaker-plus:before{content:"󱈯"}.mdi-beaker-plus-outline:before{content:"󱈰"}.mdi-beaker-question:before{content:"󱈱"}.mdi-beaker-question-outline:before{content:"󱈲"}.mdi-beaker-remove:before{content:"󱈳"}.mdi-beaker-remove-outline:before{content:"󱈴"}.mdi-bed:before{content:"󰋣"}.mdi-bed-clock:before{content:"󱮔"}.mdi-bed-double:before{content:"󰿔"}.mdi-bed-double-outline:before{content:"󰿓"}.mdi-bed-empty:before{content:"󰢠"}.mdi-bed-king:before{content:"󰿒"}.mdi-bed-king-outline:before{content:"󰿑"}.mdi-bed-outline:before{content:"󰂙"}.mdi-bed-queen:before{content:"󰿐"}.mdi-bed-queen-outline:before{content:"󰿛"}.mdi-bed-single:before{content:"󱁭"}.mdi-bed-single-outline:before{content:"󱁮"}.mdi-bee:before{content:"󰾡"}.mdi-bee-flower:before{content:"󰾢"}.mdi-beehive-off-outline:before{content:"󱏭"}.mdi-beehive-outline:before{content:"󱃎"}.mdi-beekeeper:before{content:"󱓢"}.mdi-beer:before{content:"󰂘"}.mdi-beer-outline:before{content:"󱌌"}.mdi-bell:before{content:"󰂚"}.mdi-bell-alert:before{content:"󰵙"}.mdi-bell-alert-outline:before{content:"󰺁"}.mdi-bell-badge:before{content:"󱅫"}.mdi-bell-badge-outline:before{content:"󰅸"}.mdi-bell-cancel:before{content:"󱏧"}.mdi-bell-cancel-outline:before{content:"󱏨"}.mdi-bell-check:before{content:"󱇥"}.mdi-bell-check-outline:before{content:"󱇦"}.mdi-bell-circle:before{content:"󰵚"}.mdi-bell-circle-outline:before{content:"󰵛"}.mdi-bell-cog:before{content:"󱨩"}.mdi-bell-cog-outline:before{content:"󱨪"}.mdi-bell-minus:before{content:"󱏩"}.mdi-bell-minus-outline:before{content:"󱏪"}.mdi-bell-off:before{content:"󰂛"}.mdi-bell-off-outline:before{content:"󰪑"}.mdi-bell-outline:before{content:"󰂜"}.mdi-bell-plus:before{content:"󰂝"}.mdi-bell-plus-outline:before{content:"󰪒"}.mdi-bell-remove:before{content:"󱏫"}.mdi-bell-remove-outline:before{content:"󱏬"}.mdi-bell-ring:before{content:"󰂞"}.mdi-bell-ring-outline:before{content:"󰂟"}.mdi-bell-sleep:before{content:"󰂠"}.mdi-bell-sleep-outline:before{content:"󰪓"}.mdi-bench:before{content:"󱰡"}.mdi-bench-back:before{content:"󱰢"}.mdi-beta:before{content:"󰂡"}.mdi-betamax:before{content:"󰧋"}.mdi-biathlon:before{content:"󰸔"}.mdi-bicycle:before{content:"󱂜"}.mdi-bicycle-basket:before{content:"󱈵"}.mdi-bicycle-cargo:before{content:"󱢜"}.mdi-bicycle-electric:before{content:"󱖴"}.mdi-bicycle-penny-farthing:before{content:"󱗩"}.mdi-bike:before{content:"󰂣"}.mdi-bike-fast:before{content:"󱄟"}.mdi-bike-pedal:before{content:"󱰣"}.mdi-bike-pedal-clipless:before{content:"󱰤"}.mdi-bike-pedal-mountain:before{content:"󱰥"}.mdi-billboard:before{content:"󱀐"}.mdi-billiards:before{content:"󰭡"}.mdi-billiards-rack:before{content:"󰭢"}.mdi-binoculars:before{content:"󰂥"}.mdi-bio:before{content:"󰂦"}.mdi-biohazard:before{content:"󰂧"}.mdi-bird:before{content:"󱗆"}.mdi-bitbucket:before{content:"󰂨"}.mdi-bitcoin:before{content:"󰠓"}.mdi-black-mesa:before{content:"󰂩"}.mdi-blender:before{content:"󰳫"}.mdi-blender-outline:before{content:"󱠚"}.mdi-blender-software:before{content:"󰂫"}.mdi-blinds:before{content:"󰂬"}.mdi-blinds-horizontal:before{content:"󱨫"}.mdi-blinds-horizontal-closed:before{content:"󱨬"}.mdi-blinds-open:before{content:"󱀑"}.mdi-blinds-vertical:before{content:"󱨭"}.mdi-blinds-vertical-closed:before{content:"󱨮"}.mdi-block-helper:before{content:"󰂭"}.mdi-blood-bag:before{content:"󰳬"}.mdi-bluetooth:before{content:"󰂯"}.mdi-bluetooth-audio:before{content:"󰂰"}.mdi-bluetooth-connect:before{content:"󰂱"}.mdi-bluetooth-off:before{content:"󰂲"}.mdi-bluetooth-settings:before{content:"󰂳"}.mdi-bluetooth-transfer:before{content:"󰂴"}.mdi-blur:before{content:"󰂵"}.mdi-blur-linear:before{content:"󰂶"}.mdi-blur-off:before{content:"󰂷"}.mdi-blur-radial:before{content:"󰂸"}.mdi-bolt:before{content:"󰶳"}.mdi-bomb:before{content:"󰚑"}.mdi-bomb-off:before{content:"󰛅"}.mdi-bone:before{content:"󰂹"}.mdi-bone-off:before{content:"󱧠"}.mdi-book:before{content:"󰂺"}.mdi-book-account:before{content:"󱎭"}.mdi-book-account-outline:before{content:"󱎮"}.mdi-book-alert:before{content:"󱙼"}.mdi-book-alert-outline:before{content:"󱙽"}.mdi-book-alphabet:before{content:"󰘝"}.mdi-book-arrow-down:before{content:"󱙾"}.mdi-book-arrow-down-outline:before{content:"󱙿"}.mdi-book-arrow-left:before{content:"󱚀"}.mdi-book-arrow-left-outline:before{content:"󱚁"}.mdi-book-arrow-right:before{content:"󱚂"}.mdi-book-arrow-right-outline:before{content:"󱚃"}.mdi-book-arrow-up:before{content:"󱚄"}.mdi-book-arrow-up-outline:before{content:"󱚅"}.mdi-book-cancel:before{content:"󱚆"}.mdi-book-cancel-outline:before{content:"󱚇"}.mdi-book-check:before{content:"󱓳"}.mdi-book-check-outline:before{content:"󱓴"}.mdi-book-clock:before{content:"󱚈"}.mdi-book-clock-outline:before{content:"󱚉"}.mdi-book-cog:before{content:"󱚊"}.mdi-book-cog-outline:before{content:"󱚋"}.mdi-book-cross:before{content:"󰂢"}.mdi-book-edit:before{content:"󱚌"}.mdi-book-edit-outline:before{content:"󱚍"}.mdi-book-education:before{content:"󱛉"}.mdi-book-education-outline:before{content:"󱛊"}.mdi-book-heart:before{content:"󱨝"}.mdi-book-heart-outline:before{content:"󱨞"}.mdi-book-information-variant:before{content:"󱁯"}.mdi-book-lock:before{content:"󰞚"}.mdi-book-lock-open:before{content:"󰞛"}.mdi-book-lock-open-outline:before{content:"󱚎"}.mdi-book-lock-outline:before{content:"󱚏"}.mdi-book-marker:before{content:"󱚐"}.mdi-book-marker-outline:before{content:"󱚑"}.mdi-book-minus:before{content:"󰗙"}.mdi-book-minus-multiple:before{content:"󰪔"}.mdi-book-minus-multiple-outline:before{content:"󰤋"}.mdi-book-minus-outline:before{content:"󱚒"}.mdi-book-multiple:before{content:"󰂻"}.mdi-book-multiple-outline:before{content:"󰐶"}.mdi-book-music:before{content:"󰁧"}.mdi-book-music-outline:before{content:"󱚓"}.mdi-book-off:before{content:"󱚔"}.mdi-book-off-outline:before{content:"󱚕"}.mdi-book-open:before{content:"󰂽"}.mdi-book-open-blank-variant:before{content:"󰂾"}.mdi-book-open-outline:before{content:"󰭣"}.mdi-book-open-page-variant:before{content:"󰗚"}.mdi-book-open-page-variant-outline:before{content:"󱗖"}.mdi-book-open-variant:before{content:"󱓷"}.mdi-book-outline:before{content:"󰭤"}.mdi-book-play:before{content:"󰺂"}.mdi-book-play-outline:before{content:"󰺃"}.mdi-book-plus:before{content:"󰗛"}.mdi-book-plus-multiple:before{content:"󰪕"}.mdi-book-plus-multiple-outline:before{content:"󰫞"}.mdi-book-plus-outline:before{content:"󱚖"}.mdi-book-refresh:before{content:"󱚗"}.mdi-book-refresh-outline:before{content:"󱚘"}.mdi-book-remove:before{content:"󰪗"}.mdi-book-remove-multiple:before{content:"󰪖"}.mdi-book-remove-multiple-outline:before{content:"󰓊"}.mdi-book-remove-outline:before{content:"󱚙"}.mdi-book-search:before{content:"󰺄"}.mdi-book-search-outline:before{content:"󰺅"}.mdi-book-settings:before{content:"󱚚"}.mdi-book-settings-outline:before{content:"󱚛"}.mdi-book-sync:before{content:"󱚜"}.mdi-book-sync-outline:before{content:"󱛈"}.mdi-book-variant:before{content:"󰂿"}.mdi-bookmark:before{content:"󰃀"}.mdi-bookmark-box:before{content:"󱭵"}.mdi-bookmark-box-multiple:before{content:"󱥬"}.mdi-bookmark-box-multiple-outline:before{content:"󱥭"}.mdi-bookmark-box-outline:before{content:"󱭶"}.mdi-bookmark-check:before{content:"󰃁"}.mdi-bookmark-check-outline:before{content:"󱍻"}.mdi-bookmark-minus:before{content:"󰧌"}.mdi-bookmark-minus-outline:before{content:"󰧍"}.mdi-bookmark-multiple:before{content:"󰸕"}.mdi-bookmark-multiple-outline:before{content:"󰸖"}.mdi-bookmark-music:before{content:"󰃂"}.mdi-bookmark-music-outline:before{content:"󱍹"}.mdi-bookmark-off:before{content:"󰧎"}.mdi-bookmark-off-outline:before{content:"󰧏"}.mdi-bookmark-outline:before{content:"󰃃"}.mdi-bookmark-plus:before{content:"󰃅"}.mdi-bookmark-plus-outline:before{content:"󰃄"}.mdi-bookmark-remove:before{content:"󰃆"}.mdi-bookmark-remove-outline:before{content:"󱍺"}.mdi-bookshelf:before{content:"󱉟"}.mdi-boom-gate:before{content:"󰺆"}.mdi-boom-gate-alert:before{content:"󰺇"}.mdi-boom-gate-alert-outline:before{content:"󰺈"}.mdi-boom-gate-arrow-down:before{content:"󰺉"}.mdi-boom-gate-arrow-down-outline:before{content:"󰺊"}.mdi-boom-gate-arrow-up:before{content:"󰺌"}.mdi-boom-gate-arrow-up-outline:before{content:"󰺍"}.mdi-boom-gate-outline:before{content:"󰺋"}.mdi-boom-gate-up:before{content:"󱟹"}.mdi-boom-gate-up-outline:before{content:"󱟺"}.mdi-boombox:before{content:"󰗜"}.mdi-boomerang:before{content:"󱃏"}.mdi-bootstrap:before{content:"󰛆"}.mdi-border-all:before{content:"󰃇"}.mdi-border-all-variant:before{content:"󰢡"}.mdi-border-bottom:before{content:"󰃈"}.mdi-border-bottom-variant:before{content:"󰢢"}.mdi-border-color:before{content:"󰃉"}.mdi-border-horizontal:before{content:"󰃊"}.mdi-border-inside:before{content:"󰃋"}.mdi-border-left:before{content:"󰃌"}.mdi-border-left-variant:before{content:"󰢣"}.mdi-border-none:before{content:"󰃍"}.mdi-border-none-variant:before{content:"󰢤"}.mdi-border-outside:before{content:"󰃎"}.mdi-border-radius:before{content:"󱫴"}.mdi-border-right:before{content:"󰃏"}.mdi-border-right-variant:before{content:"󰢥"}.mdi-border-style:before{content:"󰃐"}.mdi-border-top:before{content:"󰃑"}.mdi-border-top-variant:before{content:"󰢦"}.mdi-border-vertical:before{content:"󰃒"}.mdi-bottle-soda:before{content:"󱁰"}.mdi-bottle-soda-classic:before{content:"󱁱"}.mdi-bottle-soda-classic-outline:before{content:"󱍣"}.mdi-bottle-soda-outline:before{content:"󱁲"}.mdi-bottle-tonic:before{content:"󱄮"}.mdi-bottle-tonic-outline:before{content:"󱄯"}.mdi-bottle-tonic-plus:before{content:"󱄰"}.mdi-bottle-tonic-plus-outline:before{content:"󱄱"}.mdi-bottle-tonic-skull:before{content:"󱄲"}.mdi-bottle-tonic-skull-outline:before{content:"󱄳"}.mdi-bottle-wine:before{content:"󰡔"}.mdi-bottle-wine-outline:before{content:"󱌐"}.mdi-bow-arrow:before{content:"󱡁"}.mdi-bow-tie:before{content:"󰙸"}.mdi-bowl:before{content:"󰊎"}.mdi-bowl-mix:before{content:"󰘗"}.mdi-bowl-mix-outline:before{content:"󰋤"}.mdi-bowl-outline:before{content:"󰊩"}.mdi-bowling:before{content:"󰃓"}.mdi-box:before{content:"󰃔"}.mdi-box-cutter:before{content:"󰃕"}.mdi-box-cutter-off:before{content:"󰭊"}.mdi-box-shadow:before{content:"󰘷"}.mdi-boxing-glove:before{content:"󰭥"}.mdi-braille:before{content:"󰧐"}.mdi-brain:before{content:"󰧑"}.mdi-bread-slice:before{content:"󰳮"}.mdi-bread-slice-outline:before{content:"󰳯"}.mdi-bridge:before{content:"󰘘"}.mdi-briefcase:before{content:"󰃖"}.mdi-briefcase-account:before{content:"󰳰"}.mdi-briefcase-account-outline:before{content:"󰳱"}.mdi-briefcase-arrow-left-right:before{content:"󱪍"}.mdi-briefcase-arrow-left-right-outline:before{content:"󱪎"}.mdi-briefcase-arrow-up-down:before{content:"󱪏"}.mdi-briefcase-arrow-up-down-outline:before{content:"󱪐"}.mdi-briefcase-check:before{content:"󰃗"}.mdi-briefcase-check-outline:before{content:"󱌞"}.mdi-briefcase-clock:before{content:"󱃐"}.mdi-briefcase-clock-outline:before{content:"󱃑"}.mdi-briefcase-download:before{content:"󰃘"}.mdi-briefcase-download-outline:before{content:"󰰽"}.mdi-briefcase-edit:before{content:"󰪘"}.mdi-briefcase-edit-outline:before{content:"󰰾"}.mdi-briefcase-eye:before{content:"󱟙"}.mdi-briefcase-eye-outline:before{content:"󱟚"}.mdi-briefcase-minus:before{content:"󰨪"}.mdi-briefcase-minus-outline:before{content:"󰰿"}.mdi-briefcase-off:before{content:"󱙘"}.mdi-briefcase-off-outline:before{content:"󱙙"}.mdi-briefcase-outline:before{content:"󰠔"}.mdi-briefcase-plus:before{content:"󰨫"}.mdi-briefcase-plus-outline:before{content:"󰱀"}.mdi-briefcase-remove:before{content:"󰨬"}.mdi-briefcase-remove-outline:before{content:"󰱁"}.mdi-briefcase-search:before{content:"󰨭"}.mdi-briefcase-search-outline:before{content:"󰱂"}.mdi-briefcase-upload:before{content:"󰃙"}.mdi-briefcase-upload-outline:before{content:"󰱃"}.mdi-briefcase-variant:before{content:"󱒔"}.mdi-briefcase-variant-off:before{content:"󱙚"}.mdi-briefcase-variant-off-outline:before{content:"󱙛"}.mdi-briefcase-variant-outline:before{content:"󱒕"}.mdi-brightness-1:before{content:"󰃚"}.mdi-brightness-2:before{content:"󰃛"}.mdi-brightness-3:before{content:"󰃜"}.mdi-brightness-4:before{content:"󰃝"}.mdi-brightness-5:before{content:"󰃞"}.mdi-brightness-6:before{content:"󰃟"}.mdi-brightness-7:before{content:"󰃠"}.mdi-brightness-auto:before{content:"󰃡"}.mdi-brightness-percent:before{content:"󰳲"}.mdi-broadcast:before{content:"󱜠"}.mdi-broadcast-off:before{content:"󱜡"}.mdi-broom:before{content:"󰃢"}.mdi-brush:before{content:"󰃣"}.mdi-brush-off:before{content:"󱝱"}.mdi-brush-outline:before{content:"󱨍"}.mdi-brush-variant:before{content:"󱠓"}.mdi-bucket:before{content:"󱐕"}.mdi-bucket-outline:before{content:"󱐖"}.mdi-buffet:before{content:"󰕸"}.mdi-bug:before{content:"󰃤"}.mdi-bug-check:before{content:"󰨮"}.mdi-bug-check-outline:before{content:"󰨯"}.mdi-bug-outline:before{content:"󰨰"}.mdi-bug-pause:before{content:"󱫵"}.mdi-bug-pause-outline:before{content:"󱫶"}.mdi-bug-play:before{content:"󱫷"}.mdi-bug-play-outline:before{content:"󱫸"}.mdi-bug-stop:before{content:"󱫹"}.mdi-bug-stop-outline:before{content:"󱫺"}.mdi-bugle:before{content:"󰶴"}.mdi-bulkhead-light:before{content:"󱨯"}.mdi-bulldozer:before{content:"󰬢"}.mdi-bullet:before{content:"󰳳"}.mdi-bulletin-board:before{content:"󰃥"}.mdi-bullhorn:before{content:"󰃦"}.mdi-bullhorn-outline:before{content:"󰬣"}.mdi-bullhorn-variant:before{content:"󱥮"}.mdi-bullhorn-variant-outline:before{content:"󱥯"}.mdi-bullseye:before{content:"󰗝"}.mdi-bullseye-arrow:before{content:"󰣉"}.mdi-bulma:before{content:"󱋧"}.mdi-bunk-bed:before{content:"󱌂"}.mdi-bunk-bed-outline:before{content:"󰂗"}.mdi-bus:before{content:"󰃧"}.mdi-bus-alert:before{content:"󰪙"}.mdi-bus-articulated-end:before{content:"󰞜"}.mdi-bus-articulated-front:before{content:"󰞝"}.mdi-bus-clock:before{content:"󰣊"}.mdi-bus-double-decker:before{content:"󰞞"}.mdi-bus-electric:before{content:"󱤝"}.mdi-bus-marker:before{content:"󱈒"}.mdi-bus-multiple:before{content:"󰼿"}.mdi-bus-school:before{content:"󰞟"}.mdi-bus-side:before{content:"󰞠"}.mdi-bus-sign:before{content:"󱳁"}.mdi-bus-stop:before{content:"󱀒"}.mdi-bus-stop-covered:before{content:"󱀓"}.mdi-bus-stop-uncovered:before{content:"󱀔"}.mdi-bus-wrench:before{content:"󱳂"}.mdi-butterfly:before{content:"󱖉"}.mdi-butterfly-outline:before{content:"󱖊"}.mdi-button-cursor:before{content:"󱭏"}.mdi-button-pointer:before{content:"󱭐"}.mdi-cabin-a-frame:before{content:"󱢌"}.mdi-cable-data:before{content:"󱎔"}.mdi-cached:before{content:"󰃨"}.mdi-cactus:before{content:"󰶵"}.mdi-cake:before{content:"󰃩"}.mdi-cake-layered:before{content:"󰃪"}.mdi-cake-variant:before{content:"󰃫"}.mdi-cake-variant-outline:before{content:"󱟰"}.mdi-calculator:before{content:"󰃬"}.mdi-calculator-variant:before{content:"󰪚"}.mdi-calculator-variant-outline:before{content:"󱖦"}.mdi-calendar:before{content:"󰃭"}.mdi-calendar-account:before{content:"󰻗"}.mdi-calendar-account-outline:before{content:"󰻘"}.mdi-calendar-alert:before{content:"󰨱"}.mdi-calendar-alert-outline:before{content:"󱭢"}.mdi-calendar-arrow-left:before{content:"󱄴"}.mdi-calendar-arrow-right:before{content:"󱄵"}.mdi-calendar-badge:before{content:"󱮝"}.mdi-calendar-badge-outline:before{content:"󱮞"}.mdi-calendar-blank:before{content:"󰃮"}.mdi-calendar-blank-multiple:before{content:"󱁳"}.mdi-calendar-blank-outline:before{content:"󰭦"}.mdi-calendar-check:before{content:"󰃯"}.mdi-calendar-check-outline:before{content:"󰱄"}.mdi-calendar-clock:before{content:"󰃰"}.mdi-calendar-clock-outline:before{content:"󱛡"}.mdi-calendar-collapse-horizontal:before{content:"󱢝"}.mdi-calendar-collapse-horizontal-outline:before{content:"󱭣"}.mdi-calendar-cursor:before{content:"󱕻"}.mdi-calendar-cursor-outline:before{content:"󱭤"}.mdi-calendar-edit:before{content:"󰢧"}.mdi-calendar-edit-outline:before{content:"󱭥"}.mdi-calendar-end:before{content:"󱙬"}.mdi-calendar-end-outline:before{content:"󱭦"}.mdi-calendar-expand-horizontal:before{content:"󱢞"}.mdi-calendar-expand-horizontal-outline:before{content:"󱭧"}.mdi-calendar-export:before{content:"󰬤"}.mdi-calendar-export-outline:before{content:"󱭨"}.mdi-calendar-filter:before{content:"󱨲"}.mdi-calendar-filter-outline:before{content:"󱨳"}.mdi-calendar-heart:before{content:"󰧒"}.mdi-calendar-heart-outline:before{content:"󱭩"}.mdi-calendar-import:before{content:"󰬥"}.mdi-calendar-import-outline:before{content:"󱭪"}.mdi-calendar-lock:before{content:"󱙁"}.mdi-calendar-lock-open:before{content:"󱭛"}.mdi-calendar-lock-open-outline:before{content:"󱭜"}.mdi-calendar-lock-outline:before{content:"󱙂"}.mdi-calendar-minus:before{content:"󰵜"}.mdi-calendar-minus-outline:before{content:"󱭫"}.mdi-calendar-month:before{content:"󰸗"}.mdi-calendar-month-outline:before{content:"󰸘"}.mdi-calendar-multiple:before{content:"󰃱"}.mdi-calendar-multiple-check:before{content:"󰃲"}.mdi-calendar-multiselect:before{content:"󰨲"}.mdi-calendar-multiselect-outline:before{content:"󱭕"}.mdi-calendar-outline:before{content:"󰭧"}.mdi-calendar-plus:before{content:"󰃳"}.mdi-calendar-plus-outline:before{content:"󱭬"}.mdi-calendar-question:before{content:"󰚒"}.mdi-calendar-question-outline:before{content:"󱭭"}.mdi-calendar-range:before{content:"󰙹"}.mdi-calendar-range-outline:before{content:"󰭨"}.mdi-calendar-refresh:before{content:"󰇡"}.mdi-calendar-refresh-outline:before{content:"󰈃"}.mdi-calendar-remove:before{content:"󰃴"}.mdi-calendar-remove-outline:before{content:"󰱅"}.mdi-calendar-search:before{content:"󰥌"}.mdi-calendar-search-outline:before{content:"󱭮"}.mdi-calendar-star:before{content:"󰧓"}.mdi-calendar-star-four-points:before{content:"󱰟"}.mdi-calendar-star-outline:before{content:"󱭓"}.mdi-calendar-start:before{content:"󱙭"}.mdi-calendar-start-outline:before{content:"󱭯"}.mdi-calendar-sync:before{content:"󰺎"}.mdi-calendar-sync-outline:before{content:"󰺏"}.mdi-calendar-text:before{content:"󰃵"}.mdi-calendar-text-outline:before{content:"󰱆"}.mdi-calendar-today:before{content:"󰃶"}.mdi-calendar-today-outline:before{content:"󱨰"}.mdi-calendar-week:before{content:"󰨳"}.mdi-calendar-week-begin:before{content:"󰨴"}.mdi-calendar-week-begin-outline:before{content:"󱨱"}.mdi-calendar-week-outline:before{content:"󱨴"}.mdi-calendar-weekend:before{content:"󰻙"}.mdi-calendar-weekend-outline:before{content:"󰻚"}.mdi-call-made:before{content:"󰃷"}.mdi-call-merge:before{content:"󰃸"}.mdi-call-missed:before{content:"󰃹"}.mdi-call-received:before{content:"󰃺"}.mdi-call-split:before{content:"󰃻"}.mdi-camcorder:before{content:"󰃼"}.mdi-camcorder-off:before{content:"󰃿"}.mdi-camera:before{content:"󰄀"}.mdi-camera-account:before{content:"󰣋"}.mdi-camera-burst:before{content:"󰚓"}.mdi-camera-control:before{content:"󰭩"}.mdi-camera-document:before{content:"󱡱"}.mdi-camera-document-off:before{content:"󱡲"}.mdi-camera-enhance:before{content:"󰄁"}.mdi-camera-enhance-outline:before{content:"󰭪"}.mdi-camera-flip:before{content:"󱗙"}.mdi-camera-flip-outline:before{content:"󱗚"}.mdi-camera-front:before{content:"󰄂"}.mdi-camera-front-variant:before{content:"󰄃"}.mdi-camera-gopro:before{content:"󰞡"}.mdi-camera-image:before{content:"󰣌"}.mdi-camera-iris:before{content:"󰄄"}.mdi-camera-lock:before{content:"󱨔"}.mdi-camera-lock-open:before{content:"󱰍"}.mdi-camera-lock-open-outline:before{content:"󱰎"}.mdi-camera-lock-outline:before{content:"󱨕"}.mdi-camera-marker:before{content:"󱦧"}.mdi-camera-marker-outline:before{content:"󱦨"}.mdi-camera-metering-center:before{content:"󰞢"}.mdi-camera-metering-matrix:before{content:"󰞣"}.mdi-camera-metering-partial:before{content:"󰞤"}.mdi-camera-metering-spot:before{content:"󰞥"}.mdi-camera-off:before{content:"󰗟"}.mdi-camera-off-outline:before{content:"󱦿"}.mdi-camera-outline:before{content:"󰵝"}.mdi-camera-party-mode:before{content:"󰄅"}.mdi-camera-plus:before{content:"󰻛"}.mdi-camera-plus-outline:before{content:"󰻜"}.mdi-camera-rear:before{content:"󰄆"}.mdi-camera-rear-variant:before{content:"󰄇"}.mdi-camera-retake:before{content:"󰸙"}.mdi-camera-retake-outline:before{content:"󰸚"}.mdi-camera-switch:before{content:"󰄈"}.mdi-camera-switch-outline:before{content:"󰡊"}.mdi-camera-timer:before{content:"󰄉"}.mdi-camera-wireless:before{content:"󰶶"}.mdi-camera-wireless-outline:before{content:"󰶷"}.mdi-campfire:before{content:"󰻝"}.mdi-cancel:before{content:"󰜺"}.mdi-candelabra:before{content:"󱟒"}.mdi-candelabra-fire:before{content:"󱟓"}.mdi-candle:before{content:"󰗢"}.mdi-candy:before{content:"󱥰"}.mdi-candy-off:before{content:"󱥱"}.mdi-candy-off-outline:before{content:"󱥲"}.mdi-candy-outline:before{content:"󱥳"}.mdi-candycane:before{content:"󰄊"}.mdi-cannabis:before{content:"󰞦"}.mdi-cannabis-off:before{content:"󱙮"}.mdi-caps-lock:before{content:"󰪛"}.mdi-car:before{content:"󰄋"}.mdi-car-2-plus:before{content:"󱀕"}.mdi-car-3-plus:before{content:"󱀖"}.mdi-car-arrow-left:before{content:"󱎲"}.mdi-car-arrow-right:before{content:"󱎳"}.mdi-car-back:before{content:"󰸛"}.mdi-car-battery:before{content:"󰄌"}.mdi-car-brake-abs:before{content:"󰱇"}.mdi-car-brake-alert:before{content:"󰱈"}.mdi-car-brake-fluid-level:before{content:"󱤉"}.mdi-car-brake-hold:before{content:"󰵞"}.mdi-car-brake-low-pressure:before{content:"󱤊"}.mdi-car-brake-parking:before{content:"󰵟"}.mdi-car-brake-retarder:before{content:"󱀗"}.mdi-car-brake-temperature:before{content:"󱤋"}.mdi-car-brake-worn-linings:before{content:"󱤌"}.mdi-car-child-seat:before{content:"󰾣"}.mdi-car-clock:before{content:"󱥴"}.mdi-car-clutch:before{content:"󱀘"}.mdi-car-cog:before{content:"󱏌"}.mdi-car-connected:before{content:"󰄍"}.mdi-car-convertible:before{content:"󰞧"}.mdi-car-coolant-level:before{content:"󱀙"}.mdi-car-cruise-control:before{content:"󰵠"}.mdi-car-defrost-front:before{content:"󰵡"}.mdi-car-defrost-rear:before{content:"󰵢"}.mdi-car-door:before{content:"󰭫"}.mdi-car-door-lock:before{content:"󱂝"}.mdi-car-door-lock-open:before{content:"󱲁"}.mdi-car-electric:before{content:"󰭬"}.mdi-car-electric-outline:before{content:"󱖵"}.mdi-car-emergency:before{content:"󱘏"}.mdi-car-esp:before{content:"󰱉"}.mdi-car-estate:before{content:"󰞨"}.mdi-car-hatchback:before{content:"󰞩"}.mdi-car-info:before{content:"󱆾"}.mdi-car-key:before{content:"󰭭"}.mdi-car-lifted-pickup:before{content:"󱔭"}.mdi-car-light-alert:before{content:"󱤍"}.mdi-car-light-dimmed:before{content:"󰱊"}.mdi-car-light-fog:before{content:"󰱋"}.mdi-car-light-high:before{content:"󰱌"}.mdi-car-limousine:before{content:"󰣍"}.mdi-car-multiple:before{content:"󰭮"}.mdi-car-off:before{content:"󰸜"}.mdi-car-outline:before{content:"󱓭"}.mdi-car-parking-lights:before{content:"󰵣"}.mdi-car-pickup:before{content:"󰞪"}.mdi-car-search:before{content:"󱮍"}.mdi-car-search-outline:before{content:"󱮎"}.mdi-car-seat:before{content:"󰾤"}.mdi-car-seat-cooler:before{content:"󰾥"}.mdi-car-seat-heater:before{content:"󰾦"}.mdi-car-select:before{content:"󱡹"}.mdi-car-settings:before{content:"󱏍"}.mdi-car-shift-pattern:before{content:"󰽀"}.mdi-car-side:before{content:"󰞫"}.mdi-car-speed-limiter:before{content:"󱤎"}.mdi-car-sports:before{content:"󰞬"}.mdi-car-tire-alert:before{content:"󰱍"}.mdi-car-traction-control:before{content:"󰵤"}.mdi-car-turbocharger:before{content:"󱀚"}.mdi-car-wash:before{content:"󰄎"}.mdi-car-windshield:before{content:"󱀛"}.mdi-car-windshield-outline:before{content:"󱀜"}.mdi-car-wireless:before{content:"󱡸"}.mdi-car-wrench:before{content:"󱠔"}.mdi-carabiner:before{content:"󱓀"}.mdi-caravan:before{content:"󰞭"}.mdi-card:before{content:"󰭯"}.mdi-card-account-details:before{content:"󰗒"}.mdi-card-account-details-outline:before{content:"󰶫"}.mdi-card-account-details-star:before{content:"󰊣"}.mdi-card-account-details-star-outline:before{content:"󰛛"}.mdi-card-account-mail:before{content:"󰆎"}.mdi-card-account-mail-outline:before{content:"󰺘"}.mdi-card-account-phone:before{content:"󰺙"}.mdi-card-account-phone-outline:before{content:"󰺚"}.mdi-card-bulleted:before{content:"󰭰"}.mdi-card-bulleted-off:before{content:"󰭱"}.mdi-card-bulleted-off-outline:before{content:"󰭲"}.mdi-card-bulleted-outline:before{content:"󰭳"}.mdi-card-bulleted-settings:before{content:"󰭴"}.mdi-card-bulleted-settings-outline:before{content:"󰭵"}.mdi-card-minus:before{content:"󱘀"}.mdi-card-minus-outline:before{content:"󱘁"}.mdi-card-multiple:before{content:"󱟱"}.mdi-card-multiple-outline:before{content:"󱟲"}.mdi-card-off:before{content:"󱘂"}.mdi-card-off-outline:before{content:"󱘃"}.mdi-card-outline:before{content:"󰭶"}.mdi-card-plus:before{content:"󱇿"}.mdi-card-plus-outline:before{content:"󱈀"}.mdi-card-remove:before{content:"󱘄"}.mdi-card-remove-outline:before{content:"󱘅"}.mdi-card-search:before{content:"󱁴"}.mdi-card-search-outline:before{content:"󱁵"}.mdi-card-text:before{content:"󰭷"}.mdi-card-text-outline:before{content:"󰭸"}.mdi-cards:before{content:"󰘸"}.mdi-cards-club:before{content:"󰣎"}.mdi-cards-club-outline:before{content:"󱢟"}.mdi-cards-diamond:before{content:"󰣏"}.mdi-cards-diamond-outline:before{content:"󱀝"}.mdi-cards-heart:before{content:"󰣐"}.mdi-cards-heart-outline:before{content:"󱢠"}.mdi-cards-outline:before{content:"󰘹"}.mdi-cards-playing:before{content:"󱢡"}.mdi-cards-playing-club:before{content:"󱢢"}.mdi-cards-playing-club-multiple:before{content:"󱢣"}.mdi-cards-playing-club-multiple-outline:before{content:"󱢤"}.mdi-cards-playing-club-outline:before{content:"󱢥"}.mdi-cards-playing-diamond:before{content:"󱢦"}.mdi-cards-playing-diamond-multiple:before{content:"󱢧"}.mdi-cards-playing-diamond-multiple-outline:before{content:"󱢨"}.mdi-cards-playing-diamond-outline:before{content:"󱢩"}.mdi-cards-playing-heart:before{content:"󱢪"}.mdi-cards-playing-heart-multiple:before{content:"󱢫"}.mdi-cards-playing-heart-multiple-outline:before{content:"󱢬"}.mdi-cards-playing-heart-outline:before{content:"󱢭"}.mdi-cards-playing-outline:before{content:"󰘺"}.mdi-cards-playing-spade:before{content:"󱢮"}.mdi-cards-playing-spade-multiple:before{content:"󱢯"}.mdi-cards-playing-spade-multiple-outline:before{content:"󱢰"}.mdi-cards-playing-spade-outline:before{content:"󱢱"}.mdi-cards-spade:before{content:"󰣑"}.mdi-cards-spade-outline:before{content:"󱢲"}.mdi-cards-variant:before{content:"󰛇"}.mdi-carrot:before{content:"󰄏"}.mdi-cart:before{content:"󰄐"}.mdi-cart-arrow-down:before{content:"󰵦"}.mdi-cart-arrow-right:before{content:"󰱎"}.mdi-cart-arrow-up:before{content:"󰵧"}.mdi-cart-check:before{content:"󱗪"}.mdi-cart-heart:before{content:"󱣠"}.mdi-cart-minus:before{content:"󰵨"}.mdi-cart-off:before{content:"󰙫"}.mdi-cart-outline:before{content:"󰄑"}.mdi-cart-percent:before{content:"󱮮"}.mdi-cart-plus:before{content:"󰄒"}.mdi-cart-remove:before{content:"󰵩"}.mdi-cart-variant:before{content:"󱗫"}.mdi-case-sensitive-alt:before{content:"󰄓"}.mdi-cash:before{content:"󰄔"}.mdi-cash-100:before{content:"󰄕"}.mdi-cash-check:before{content:"󱓮"}.mdi-cash-clock:before{content:"󱪑"}.mdi-cash-edit:before{content:"󱲫"}.mdi-cash-fast:before{content:"󱡜"}.mdi-cash-lock:before{content:"󱓪"}.mdi-cash-lock-open:before{content:"󱓫"}.mdi-cash-marker:before{content:"󰶸"}.mdi-cash-minus:before{content:"󱉠"}.mdi-cash-multiple:before{content:"󰄖"}.mdi-cash-off:before{content:"󱱹"}.mdi-cash-plus:before{content:"󱉡"}.mdi-cash-refund:before{content:"󰪜"}.mdi-cash-register:before{content:"󰳴"}.mdi-cash-remove:before{content:"󱉢"}.mdi-cash-sync:before{content:"󱪒"}.mdi-cassette:before{content:"󰧔"}.mdi-cast:before{content:"󰄘"}.mdi-cast-audio:before{content:"󱀞"}.mdi-cast-audio-variant:before{content:"󱝉"}.mdi-cast-connected:before{content:"󰄙"}.mdi-cast-education:before{content:"󰸝"}.mdi-cast-off:before{content:"󰞊"}.mdi-cast-variant:before{content:"󰀟"}.mdi-castle:before{content:"󰄚"}.mdi-cat:before{content:"󰄛"}.mdi-cctv:before{content:"󰞮"}.mdi-cctv-off:before{content:"󱡟"}.mdi-ceiling-fan:before{content:"󱞗"}.mdi-ceiling-fan-light:before{content:"󱞘"}.mdi-ceiling-light:before{content:"󰝩"}.mdi-ceiling-light-multiple:before{content:"󱣝"}.mdi-ceiling-light-multiple-outline:before{content:"󱣞"}.mdi-ceiling-light-outline:before{content:"󱟇"}.mdi-cellphone:before{content:"󰄜"}.mdi-cellphone-arrow-down:before{content:"󰧕"}.mdi-cellphone-arrow-down-variant:before{content:"󱧅"}.mdi-cellphone-basic:before{content:"󰄞"}.mdi-cellphone-charging:before{content:"󱎗"}.mdi-cellphone-check:before{content:"󱟽"}.mdi-cellphone-cog:before{content:"󰥑"}.mdi-cellphone-dock:before{content:"󰄟"}.mdi-cellphone-information:before{content:"󰽁"}.mdi-cellphone-key:before{content:"󰥎"}.mdi-cellphone-link:before{content:"󰄡"}.mdi-cellphone-link-off:before{content:"󰄢"}.mdi-cellphone-lock:before{content:"󰥏"}.mdi-cellphone-marker:before{content:"󱠺"}.mdi-cellphone-message:before{content:"󰣓"}.mdi-cellphone-message-off:before{content:"󱃒"}.mdi-cellphone-nfc:before{content:"󰺐"}.mdi-cellphone-nfc-off:before{content:"󱋘"}.mdi-cellphone-off:before{content:"󰥐"}.mdi-cellphone-play:before{content:"󱀟"}.mdi-cellphone-remove:before{content:"󰥍"}.mdi-cellphone-screenshot:before{content:"󰨵"}.mdi-cellphone-settings:before{content:"󰄣"}.mdi-cellphone-sound:before{content:"󰥒"}.mdi-cellphone-text:before{content:"󰣒"}.mdi-cellphone-wireless:before{content:"󰠕"}.mdi-centos:before{content:"󱄚"}.mdi-certificate:before{content:"󰄤"}.mdi-certificate-outline:before{content:"󱆈"}.mdi-chair-rolling:before{content:"󰽈"}.mdi-chair-school:before{content:"󰄥"}.mdi-chandelier:before{content:"󱞓"}.mdi-charity:before{content:"󰱏"}.mdi-charity-search:before{content:"󱲂"}.mdi-chart-arc:before{content:"󰄦"}.mdi-chart-areaspline:before{content:"󰄧"}.mdi-chart-areaspline-variant:before{content:"󰺑"}.mdi-chart-bar:before{content:"󰄨"}.mdi-chart-bar-stacked:before{content:"󰝪"}.mdi-chart-bell-curve:before{content:"󰱐"}.mdi-chart-bell-curve-cumulative:before{content:"󰾧"}.mdi-chart-box:before{content:"󱕍"}.mdi-chart-box-outline:before{content:"󱕎"}.mdi-chart-box-plus-outline:before{content:"󱕏"}.mdi-chart-bubble:before{content:"󰗣"}.mdi-chart-donut:before{content:"󰞯"}.mdi-chart-donut-variant:before{content:"󰞰"}.mdi-chart-gantt:before{content:"󰙬"}.mdi-chart-histogram:before{content:"󰄩"}.mdi-chart-line:before{content:"󰄪"}.mdi-chart-line-stacked:before{content:"󰝫"}.mdi-chart-line-variant:before{content:"󰞱"}.mdi-chart-multiline:before{content:"󰣔"}.mdi-chart-multiple:before{content:"󱈓"}.mdi-chart-pie:before{content:"󰄫"}.mdi-chart-pie-outline:before{content:"󱯟"}.mdi-chart-ppf:before{content:"󱎀"}.mdi-chart-sankey:before{content:"󱇟"}.mdi-chart-sankey-variant:before{content:"󱇠"}.mdi-chart-scatter-plot:before{content:"󰺒"}.mdi-chart-scatter-plot-hexbin:before{content:"󰙭"}.mdi-chart-timeline:before{content:"󰙮"}.mdi-chart-timeline-variant:before{content:"󰺓"}.mdi-chart-timeline-variant-shimmer:before{content:"󱖶"}.mdi-chart-tree:before{content:"󰺔"}.mdi-chart-waterfall:before{content:"󱤘"}.mdi-chat:before{content:"󰭹"}.mdi-chat-alert:before{content:"󰭺"}.mdi-chat-alert-outline:before{content:"󱋉"}.mdi-chat-minus:before{content:"󱐐"}.mdi-chat-minus-outline:before{content:"󱐓"}.mdi-chat-outline:before{content:"󰻞"}.mdi-chat-plus:before{content:"󱐏"}.mdi-chat-plus-outline:before{content:"󱐒"}.mdi-chat-processing:before{content:"󰭻"}.mdi-chat-processing-outline:before{content:"󱋊"}.mdi-chat-question:before{content:"󱜸"}.mdi-chat-question-outline:before{content:"󱜹"}.mdi-chat-remove:before{content:"󱐑"}.mdi-chat-remove-outline:before{content:"󱐔"}.mdi-chat-sleep:before{content:"󱋑"}.mdi-chat-sleep-outline:before{content:"󱋒"}.mdi-check:before{content:"󰄬"}.mdi-check-all:before{content:"󰄭"}.mdi-check-bold:before{content:"󰸞"}.mdi-check-circle:before{content:"󰗠"}.mdi-check-circle-outline:before{content:"󰗡"}.mdi-check-decagram:before{content:"󰞑"}.mdi-check-decagram-outline:before{content:"󱝀"}.mdi-check-network:before{content:"󰱓"}.mdi-check-network-outline:before{content:"󰱔"}.mdi-check-outline:before{content:"󰡕"}.mdi-check-underline:before{content:"󰸟"}.mdi-check-underline-circle:before{content:"󰸠"}.mdi-check-underline-circle-outline:before{content:"󰸡"}.mdi-checkbook:before{content:"󰪝"}.mdi-checkbook-arrow-left:before{content:"󱰝"}.mdi-checkbook-arrow-right:before{content:"󱰞"}.mdi-checkbox-blank:before{content:"󰄮"}.mdi-checkbox-blank-badge:before{content:"󱅶"}.mdi-checkbox-blank-badge-outline:before{content:"󰄗"}.mdi-checkbox-blank-circle:before{content:"󰄯"}.mdi-checkbox-blank-circle-outline:before{content:"󰄰"}.mdi-checkbox-blank-off:before{content:"󱋬"}.mdi-checkbox-blank-off-outline:before{content:"󱋭"}.mdi-checkbox-blank-outline:before{content:"󰄱"}.mdi-checkbox-intermediate:before{content:"󰡖"}.mdi-checkbox-intermediate-variant:before{content:"󱭔"}.mdi-checkbox-marked:before{content:"󰄲"}.mdi-checkbox-marked-circle:before{content:"󰄳"}.mdi-checkbox-marked-circle-auto-outline:before{content:"󱰦"}.mdi-checkbox-marked-circle-minus-outline:before{content:"󱰧"}.mdi-checkbox-marked-circle-outline:before{content:"󰄴"}.mdi-checkbox-marked-circle-plus-outline:before{content:"󱤧"}.mdi-checkbox-marked-outline:before{content:"󰄵"}.mdi-checkbox-multiple-blank:before{content:"󰄶"}.mdi-checkbox-multiple-blank-circle:before{content:"󰘻"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"󰘼"}.mdi-checkbox-multiple-blank-outline:before{content:"󰄷"}.mdi-checkbox-multiple-marked:before{content:"󰄸"}.mdi-checkbox-multiple-marked-circle:before{content:"󰘽"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"󰘾"}.mdi-checkbox-multiple-marked-outline:before{content:"󰄹"}.mdi-checkbox-multiple-outline:before{content:"󰱑"}.mdi-checkbox-outline:before{content:"󰱒"}.mdi-checkerboard:before{content:"󰄺"}.mdi-checkerboard-minus:before{content:"󱈂"}.mdi-checkerboard-plus:before{content:"󱈁"}.mdi-checkerboard-remove:before{content:"󱈃"}.mdi-cheese:before{content:"󱊹"}.mdi-cheese-off:before{content:"󱏮"}.mdi-chef-hat:before{content:"󰭼"}.mdi-chemical-weapon:before{content:"󰄻"}.mdi-chess-bishop:before{content:"󰡜"}.mdi-chess-king:before{content:"󰡗"}.mdi-chess-knight:before{content:"󰡘"}.mdi-chess-pawn:before{content:"󰡙"}.mdi-chess-queen:before{content:"󰡚"}.mdi-chess-rook:before{content:"󰡛"}.mdi-chevron-double-down:before{content:"󰄼"}.mdi-chevron-double-left:before{content:"󰄽"}.mdi-chevron-double-right:before{content:"󰄾"}.mdi-chevron-double-up:before{content:"󰄿"}.mdi-chevron-down:before{content:"󰅀"}.mdi-chevron-down-box:before{content:"󰧖"}.mdi-chevron-down-box-outline:before{content:"󰧗"}.mdi-chevron-down-circle:before{content:"󰬦"}.mdi-chevron-down-circle-outline:before{content:"󰬧"}.mdi-chevron-left:before{content:"󰅁"}.mdi-chevron-left-box:before{content:"󰧘"}.mdi-chevron-left-box-outline:before{content:"󰧙"}.mdi-chevron-left-circle:before{content:"󰬨"}.mdi-chevron-left-circle-outline:before{content:"󰬩"}.mdi-chevron-right:before{content:"󰅂"}.mdi-chevron-right-box:before{content:"󰧚"}.mdi-chevron-right-box-outline:before{content:"󰧛"}.mdi-chevron-right-circle:before{content:"󰬪"}.mdi-chevron-right-circle-outline:before{content:"󰬫"}.mdi-chevron-triple-down:before{content:"󰶹"}.mdi-chevron-triple-left:before{content:"󰶺"}.mdi-chevron-triple-right:before{content:"󰶻"}.mdi-chevron-triple-up:before{content:"󰶼"}.mdi-chevron-up:before{content:"󰅃"}.mdi-chevron-up-box:before{content:"󰧜"}.mdi-chevron-up-box-outline:before{content:"󰧝"}.mdi-chevron-up-circle:before{content:"󰬬"}.mdi-chevron-up-circle-outline:before{content:"󰬭"}.mdi-chili-alert:before{content:"󱟪"}.mdi-chili-alert-outline:before{content:"󱟫"}.mdi-chili-hot:before{content:"󰞲"}.mdi-chili-hot-outline:before{content:"󱟬"}.mdi-chili-medium:before{content:"󰞳"}.mdi-chili-medium-outline:before{content:"󱟭"}.mdi-chili-mild:before{content:"󰞴"}.mdi-chili-mild-outline:before{content:"󱟮"}.mdi-chili-off:before{content:"󱑧"}.mdi-chili-off-outline:before{content:"󱟯"}.mdi-chip:before{content:"󰘚"}.mdi-church:before{content:"󰅄"}.mdi-church-outline:before{content:"󱬂"}.mdi-cigar:before{content:"󱆉"}.mdi-cigar-off:before{content:"󱐛"}.mdi-circle:before{content:"󰝥"}.mdi-circle-box:before{content:"󱗜"}.mdi-circle-box-outline:before{content:"󱗝"}.mdi-circle-double:before{content:"󰺕"}.mdi-circle-edit-outline:before{content:"󰣕"}.mdi-circle-expand:before{content:"󰺖"}.mdi-circle-half:before{content:"󱎕"}.mdi-circle-half-full:before{content:"󱎖"}.mdi-circle-medium:before{content:"󰧞"}.mdi-circle-multiple:before{content:"󰬸"}.mdi-circle-multiple-outline:before{content:"󰚕"}.mdi-circle-off-outline:before{content:"󱃓"}.mdi-circle-opacity:before{content:"󱡓"}.mdi-circle-outline:before{content:"󰝦"}.mdi-circle-slice-1:before{content:"󰪞"}.mdi-circle-slice-2:before{content:"󰪟"}.mdi-circle-slice-3:before{content:"󰪠"}.mdi-circle-slice-4:before{content:"󰪡"}.mdi-circle-slice-5:before{content:"󰪢"}.mdi-circle-slice-6:before{content:"󰪣"}.mdi-circle-slice-7:before{content:"󰪤"}.mdi-circle-slice-8:before{content:"󰪥"}.mdi-circle-small:before{content:"󰧟"}.mdi-circular-saw:before{content:"󰸢"}.mdi-city:before{content:"󰅆"}.mdi-city-switch:before{content:"󱰨"}.mdi-city-variant:before{content:"󰨶"}.mdi-city-variant-outline:before{content:"󰨷"}.mdi-clipboard:before{content:"󰅇"}.mdi-clipboard-account:before{content:"󰅈"}.mdi-clipboard-account-outline:before{content:"󰱕"}.mdi-clipboard-alert:before{content:"󰅉"}.mdi-clipboard-alert-outline:before{content:"󰳷"}.mdi-clipboard-arrow-down:before{content:"󰅊"}.mdi-clipboard-arrow-down-outline:before{content:"󰱖"}.mdi-clipboard-arrow-left:before{content:"󰅋"}.mdi-clipboard-arrow-left-outline:before{content:"󰳸"}.mdi-clipboard-arrow-right:before{content:"󰳹"}.mdi-clipboard-arrow-right-outline:before{content:"󰳺"}.mdi-clipboard-arrow-up:before{content:"󰱗"}.mdi-clipboard-arrow-up-outline:before{content:"󰱘"}.mdi-clipboard-check:before{content:"󰅎"}.mdi-clipboard-check-multiple:before{content:"󱉣"}.mdi-clipboard-check-multiple-outline:before{content:"󱉤"}.mdi-clipboard-check-outline:before{content:"󰢨"}.mdi-clipboard-clock:before{content:"󱛢"}.mdi-clipboard-clock-outline:before{content:"󱛣"}.mdi-clipboard-edit:before{content:"󱓥"}.mdi-clipboard-edit-outline:before{content:"󱓦"}.mdi-clipboard-file:before{content:"󱉥"}.mdi-clipboard-file-outline:before{content:"󱉦"}.mdi-clipboard-flow:before{content:"󰛈"}.mdi-clipboard-flow-outline:before{content:"󱄗"}.mdi-clipboard-list:before{content:"󱃔"}.mdi-clipboard-list-outline:before{content:"󱃕"}.mdi-clipboard-minus:before{content:"󱘘"}.mdi-clipboard-minus-outline:before{content:"󱘙"}.mdi-clipboard-multiple:before{content:"󱉧"}.mdi-clipboard-multiple-outline:before{content:"󱉨"}.mdi-clipboard-off:before{content:"󱘚"}.mdi-clipboard-off-outline:before{content:"󱘛"}.mdi-clipboard-outline:before{content:"󰅌"}.mdi-clipboard-play:before{content:"󰱙"}.mdi-clipboard-play-multiple:before{content:"󱉩"}.mdi-clipboard-play-multiple-outline:before{content:"󱉪"}.mdi-clipboard-play-outline:before{content:"󰱚"}.mdi-clipboard-plus:before{content:"󰝑"}.mdi-clipboard-plus-outline:before{content:"󱌟"}.mdi-clipboard-pulse:before{content:"󰡝"}.mdi-clipboard-pulse-outline:before{content:"󰡞"}.mdi-clipboard-remove:before{content:"󱘜"}.mdi-clipboard-remove-outline:before{content:"󱘝"}.mdi-clipboard-search:before{content:"󱘞"}.mdi-clipboard-search-outline:before{content:"󱘟"}.mdi-clipboard-text:before{content:"󰅍"}.mdi-clipboard-text-clock:before{content:"󱣹"}.mdi-clipboard-text-clock-outline:before{content:"󱣺"}.mdi-clipboard-text-multiple:before{content:"󱉫"}.mdi-clipboard-text-multiple-outline:before{content:"󱉬"}.mdi-clipboard-text-off:before{content:"󱘠"}.mdi-clipboard-text-off-outline:before{content:"󱘡"}.mdi-clipboard-text-outline:before{content:"󰨸"}.mdi-clipboard-text-play:before{content:"󰱛"}.mdi-clipboard-text-play-outline:before{content:"󰱜"}.mdi-clipboard-text-search:before{content:"󱘢"}.mdi-clipboard-text-search-outline:before{content:"󱘣"}.mdi-clippy:before{content:"󰅏"}.mdi-clock:before{content:"󰥔"}.mdi-clock-alert:before{content:"󰥕"}.mdi-clock-alert-outline:before{content:"󰗎"}.mdi-clock-check:before{content:"󰾨"}.mdi-clock-check-outline:before{content:"󰾩"}.mdi-clock-digital:before{content:"󰺗"}.mdi-clock-edit:before{content:"󱦺"}.mdi-clock-edit-outline:before{content:"󱦻"}.mdi-clock-end:before{content:"󰅑"}.mdi-clock-fast:before{content:"󰅒"}.mdi-clock-in:before{content:"󰅓"}.mdi-clock-minus:before{content:"󱡣"}.mdi-clock-minus-outline:before{content:"󱡤"}.mdi-clock-out:before{content:"󰅔"}.mdi-clock-outline:before{content:"󰅐"}.mdi-clock-plus:before{content:"󱡡"}.mdi-clock-plus-outline:before{content:"󱡢"}.mdi-clock-remove:before{content:"󱡥"}.mdi-clock-remove-outline:before{content:"󱡦"}.mdi-clock-star-four-points:before{content:"󱰩"}.mdi-clock-star-four-points-outline:before{content:"󱰪"}.mdi-clock-start:before{content:"󰅕"}.mdi-clock-time-eight:before{content:"󱑆"}.mdi-clock-time-eight-outline:before{content:"󱑒"}.mdi-clock-time-eleven:before{content:"󱑉"}.mdi-clock-time-eleven-outline:before{content:"󱑕"}.mdi-clock-time-five:before{content:"󱑃"}.mdi-clock-time-five-outline:before{content:"󱑏"}.mdi-clock-time-four:before{content:"󱑂"}.mdi-clock-time-four-outline:before{content:"󱑎"}.mdi-clock-time-nine:before{content:"󱑇"}.mdi-clock-time-nine-outline:before{content:"󱑓"}.mdi-clock-time-one:before{content:"󱐿"}.mdi-clock-time-one-outline:before{content:"󱑋"}.mdi-clock-time-seven:before{content:"󱑅"}.mdi-clock-time-seven-outline:before{content:"󱑑"}.mdi-clock-time-six:before{content:"󱑄"}.mdi-clock-time-six-outline:before{content:"󱑐"}.mdi-clock-time-ten:before{content:"󱑈"}.mdi-clock-time-ten-outline:before{content:"󱑔"}.mdi-clock-time-three:before{content:"󱑁"}.mdi-clock-time-three-outline:before{content:"󱑍"}.mdi-clock-time-twelve:before{content:"󱑊"}.mdi-clock-time-twelve-outline:before{content:"󱑖"}.mdi-clock-time-two:before{content:"󱑀"}.mdi-clock-time-two-outline:before{content:"󱑌"}.mdi-close:before{content:"󰅖"}.mdi-close-box:before{content:"󰅗"}.mdi-close-box-multiple:before{content:"󰱝"}.mdi-close-box-multiple-outline:before{content:"󰱞"}.mdi-close-box-outline:before{content:"󰅘"}.mdi-close-circle:before{content:"󰅙"}.mdi-close-circle-multiple:before{content:"󰘪"}.mdi-close-circle-multiple-outline:before{content:"󰢃"}.mdi-close-circle-outline:before{content:"󰅚"}.mdi-close-network:before{content:"󰅛"}.mdi-close-network-outline:before{content:"󰱟"}.mdi-close-octagon:before{content:"󰅜"}.mdi-close-octagon-outline:before{content:"󰅝"}.mdi-close-outline:before{content:"󰛉"}.mdi-close-thick:before{content:"󱎘"}.mdi-closed-caption:before{content:"󰅞"}.mdi-closed-caption-outline:before{content:"󰶽"}.mdi-cloud:before{content:"󰅟"}.mdi-cloud-alert:before{content:"󰧠"}.mdi-cloud-alert-outline:before{content:"󱯠"}.mdi-cloud-arrow-down:before{content:"󱯡"}.mdi-cloud-arrow-down-outline:before{content:"󱯢"}.mdi-cloud-arrow-left:before{content:"󱯣"}.mdi-cloud-arrow-left-outline:before{content:"󱯤"}.mdi-cloud-arrow-right:before{content:"󱯥"}.mdi-cloud-arrow-right-outline:before{content:"󱯦"}.mdi-cloud-arrow-up:before{content:"󱯧"}.mdi-cloud-arrow-up-outline:before{content:"󱯨"}.mdi-cloud-braces:before{content:"󰞵"}.mdi-cloud-cancel:before{content:"󱯩"}.mdi-cloud-cancel-outline:before{content:"󱯪"}.mdi-cloud-check:before{content:"󱯫"}.mdi-cloud-check-outline:before{content:"󱯬"}.mdi-cloud-check-variant:before{content:"󰅠"}.mdi-cloud-check-variant-outline:before{content:"󱋌"}.mdi-cloud-circle:before{content:"󰅡"}.mdi-cloud-circle-outline:before{content:"󱯭"}.mdi-cloud-clock:before{content:"󱯮"}.mdi-cloud-clock-outline:before{content:"󱯯"}.mdi-cloud-cog:before{content:"󱯰"}.mdi-cloud-cog-outline:before{content:"󱯱"}.mdi-cloud-download:before{content:"󰅢"}.mdi-cloud-download-outline:before{content:"󰭽"}.mdi-cloud-key:before{content:"󱲡"}.mdi-cloud-key-outline:before{content:"󱲢"}.mdi-cloud-lock:before{content:"󱇱"}.mdi-cloud-lock-open:before{content:"󱯲"}.mdi-cloud-lock-open-outline:before{content:"󱯳"}.mdi-cloud-lock-outline:before{content:"󱇲"}.mdi-cloud-minus:before{content:"󱯴"}.mdi-cloud-minus-outline:before{content:"󱯵"}.mdi-cloud-off:before{content:"󱯶"}.mdi-cloud-off-outline:before{content:"󰅤"}.mdi-cloud-outline:before{content:"󰅣"}.mdi-cloud-percent:before{content:"󱨵"}.mdi-cloud-percent-outline:before{content:"󱨶"}.mdi-cloud-plus:before{content:"󱯷"}.mdi-cloud-plus-outline:before{content:"󱯸"}.mdi-cloud-print:before{content:"󰅥"}.mdi-cloud-print-outline:before{content:"󰅦"}.mdi-cloud-question:before{content:"󰨹"}.mdi-cloud-question-outline:before{content:"󱯹"}.mdi-cloud-refresh:before{content:"󱯺"}.mdi-cloud-refresh-outline:before{content:"󱯻"}.mdi-cloud-refresh-variant:before{content:"󰔪"}.mdi-cloud-refresh-variant-outline:before{content:"󱯼"}.mdi-cloud-remove:before{content:"󱯽"}.mdi-cloud-remove-outline:before{content:"󱯾"}.mdi-cloud-search:before{content:"󰥖"}.mdi-cloud-search-outline:before{content:"󰥗"}.mdi-cloud-sync:before{content:"󰘿"}.mdi-cloud-sync-outline:before{content:"󱋖"}.mdi-cloud-tags:before{content:"󰞶"}.mdi-cloud-upload:before{content:"󰅧"}.mdi-cloud-upload-outline:before{content:"󰭾"}.mdi-clouds:before{content:"󱮕"}.mdi-clover:before{content:"󰠖"}.mdi-clover-outline:before{content:"󱱢"}.mdi-coach-lamp:before{content:"󱀠"}.mdi-coach-lamp-variant:before{content:"󱨷"}.mdi-coat-rack:before{content:"󱂞"}.mdi-code-array:before{content:"󰅨"}.mdi-code-block-braces:before{content:"󱲃"}.mdi-code-block-brackets:before{content:"󱲄"}.mdi-code-block-parentheses:before{content:"󱲅"}.mdi-code-block-tags:before{content:"󱲆"}.mdi-code-braces:before{content:"󰅩"}.mdi-code-braces-box:before{content:"󱃖"}.mdi-code-brackets:before{content:"󰅪"}.mdi-code-equal:before{content:"󰅫"}.mdi-code-greater-than:before{content:"󰅬"}.mdi-code-greater-than-or-equal:before{content:"󰅭"}.mdi-code-json:before{content:"󰘦"}.mdi-code-less-than:before{content:"󰅮"}.mdi-code-less-than-or-equal:before{content:"󰅯"}.mdi-code-not-equal:before{content:"󰅰"}.mdi-code-not-equal-variant:before{content:"󰅱"}.mdi-code-parentheses:before{content:"󰅲"}.mdi-code-parentheses-box:before{content:"󱃗"}.mdi-code-string:before{content:"󰅳"}.mdi-code-tags:before{content:"󰅴"}.mdi-code-tags-check:before{content:"󰚔"}.mdi-codepen:before{content:"󰅵"}.mdi-coffee:before{content:"󰅶"}.mdi-coffee-maker:before{content:"󱂟"}.mdi-coffee-maker-check:before{content:"󱤱"}.mdi-coffee-maker-check-outline:before{content:"󱤲"}.mdi-coffee-maker-outline:before{content:"󱠛"}.mdi-coffee-off:before{content:"󰾪"}.mdi-coffee-off-outline:before{content:"󰾫"}.mdi-coffee-outline:before{content:"󰛊"}.mdi-coffee-to-go:before{content:"󰅷"}.mdi-coffee-to-go-outline:before{content:"󱌎"}.mdi-coffin:before{content:"󰭿"}.mdi-cog:before{content:"󰒓"}.mdi-cog-box:before{content:"󰒔"}.mdi-cog-clockwise:before{content:"󱇝"}.mdi-cog-counterclockwise:before{content:"󱇞"}.mdi-cog-off:before{content:"󱏎"}.mdi-cog-off-outline:before{content:"󱏏"}.mdi-cog-outline:before{content:"󰢻"}.mdi-cog-pause:before{content:"󱤳"}.mdi-cog-pause-outline:before{content:"󱤴"}.mdi-cog-play:before{content:"󱤵"}.mdi-cog-play-outline:before{content:"󱤶"}.mdi-cog-refresh:before{content:"󱑞"}.mdi-cog-refresh-outline:before{content:"󱑟"}.mdi-cog-stop:before{content:"󱤷"}.mdi-cog-stop-outline:before{content:"󱤸"}.mdi-cog-sync:before{content:"󱑠"}.mdi-cog-sync-outline:before{content:"󱑡"}.mdi-cog-transfer:before{content:"󱁛"}.mdi-cog-transfer-outline:before{content:"󱁜"}.mdi-cogs:before{content:"󰣖"}.mdi-collage:before{content:"󰙀"}.mdi-collapse-all:before{content:"󰪦"}.mdi-collapse-all-outline:before{content:"󰪧"}.mdi-color-helper:before{content:"󰅹"}.mdi-comma:before{content:"󰸣"}.mdi-comma-box:before{content:"󰸫"}.mdi-comma-box-outline:before{content:"󰸤"}.mdi-comma-circle:before{content:"󰸥"}.mdi-comma-circle-outline:before{content:"󰸦"}.mdi-comment:before{content:"󰅺"}.mdi-comment-account:before{content:"󰅻"}.mdi-comment-account-outline:before{content:"󰅼"}.mdi-comment-alert:before{content:"󰅽"}.mdi-comment-alert-outline:before{content:"󰅾"}.mdi-comment-arrow-left:before{content:"󰧡"}.mdi-comment-arrow-left-outline:before{content:"󰧢"}.mdi-comment-arrow-right:before{content:"󰧣"}.mdi-comment-arrow-right-outline:before{content:"󰧤"}.mdi-comment-bookmark:before{content:"󱖮"}.mdi-comment-bookmark-outline:before{content:"󱖯"}.mdi-comment-check:before{content:"󰅿"}.mdi-comment-check-outline:before{content:"󰆀"}.mdi-comment-edit:before{content:"󱆿"}.mdi-comment-edit-outline:before{content:"󱋄"}.mdi-comment-eye:before{content:"󰨺"}.mdi-comment-eye-outline:before{content:"󰨻"}.mdi-comment-flash:before{content:"󱖰"}.mdi-comment-flash-outline:before{content:"󱖱"}.mdi-comment-minus:before{content:"󱗟"}.mdi-comment-minus-outline:before{content:"󱗠"}.mdi-comment-multiple:before{content:"󰡟"}.mdi-comment-multiple-outline:before{content:"󰆁"}.mdi-comment-off:before{content:"󱗡"}.mdi-comment-off-outline:before{content:"󱗢"}.mdi-comment-outline:before{content:"󰆂"}.mdi-comment-plus:before{content:"󰧥"}.mdi-comment-plus-outline:before{content:"󰆃"}.mdi-comment-processing:before{content:"󰆄"}.mdi-comment-processing-outline:before{content:"󰆅"}.mdi-comment-question:before{content:"󰠗"}.mdi-comment-question-outline:before{content:"󰆆"}.mdi-comment-quote:before{content:"󱀡"}.mdi-comment-quote-outline:before{content:"󱀢"}.mdi-comment-remove:before{content:"󰗞"}.mdi-comment-remove-outline:before{content:"󰆇"}.mdi-comment-search:before{content:"󰨼"}.mdi-comment-search-outline:before{content:"󰨽"}.mdi-comment-text:before{content:"󰆈"}.mdi-comment-text-multiple:before{content:"󰡠"}.mdi-comment-text-multiple-outline:before{content:"󰡡"}.mdi-comment-text-outline:before{content:"󰆉"}.mdi-compare:before{content:"󰆊"}.mdi-compare-horizontal:before{content:"󱒒"}.mdi-compare-remove:before{content:"󱢳"}.mdi-compare-vertical:before{content:"󱒓"}.mdi-compass:before{content:"󰆋"}.mdi-compass-off:before{content:"󰮀"}.mdi-compass-off-outline:before{content:"󰮁"}.mdi-compass-outline:before{content:"󰆌"}.mdi-compass-rose:before{content:"󱎂"}.mdi-compost:before{content:"󱨸"}.mdi-cone:before{content:"󱥌"}.mdi-cone-off:before{content:"󱥍"}.mdi-connection:before{content:"󱘖"}.mdi-console:before{content:"󰆍"}.mdi-console-line:before{content:"󰞷"}.mdi-console-network:before{content:"󰢩"}.mdi-console-network-outline:before{content:"󰱠"}.mdi-consolidate:before{content:"󱃘"}.mdi-contactless-payment:before{content:"󰵪"}.mdi-contactless-payment-circle:before{content:"󰌡"}.mdi-contactless-payment-circle-outline:before{content:"󰐈"}.mdi-contacts:before{content:"󰛋"}.mdi-contacts-outline:before{content:"󰖸"}.mdi-contain:before{content:"󰨾"}.mdi-contain-end:before{content:"󰨿"}.mdi-contain-start:before{content:"󰩀"}.mdi-content-copy:before{content:"󰆏"}.mdi-content-cut:before{content:"󰆐"}.mdi-content-duplicate:before{content:"󰆑"}.mdi-content-paste:before{content:"󰆒"}.mdi-content-save:before{content:"󰆓"}.mdi-content-save-alert:before{content:"󰽂"}.mdi-content-save-alert-outline:before{content:"󰽃"}.mdi-content-save-all:before{content:"󰆔"}.mdi-content-save-all-outline:before{content:"󰽄"}.mdi-content-save-check:before{content:"󱣪"}.mdi-content-save-check-outline:before{content:"󱣫"}.mdi-content-save-cog:before{content:"󱑛"}.mdi-content-save-cog-outline:before{content:"󱑜"}.mdi-content-save-edit:before{content:"󰳻"}.mdi-content-save-edit-outline:before{content:"󰳼"}.mdi-content-save-minus:before{content:"󱭃"}.mdi-content-save-minus-outline:before{content:"󱭄"}.mdi-content-save-move:before{content:"󰸧"}.mdi-content-save-move-outline:before{content:"󰸨"}.mdi-content-save-off:before{content:"󱙃"}.mdi-content-save-off-outline:before{content:"󱙄"}.mdi-content-save-outline:before{content:"󰠘"}.mdi-content-save-plus:before{content:"󱭁"}.mdi-content-save-plus-outline:before{content:"󱭂"}.mdi-content-save-settings:before{content:"󰘛"}.mdi-content-save-settings-outline:before{content:"󰬮"}.mdi-contrast:before{content:"󰆕"}.mdi-contrast-box:before{content:"󰆖"}.mdi-contrast-circle:before{content:"󰆗"}.mdi-controller:before{content:"󰊴"}.mdi-controller-classic:before{content:"󰮂"}.mdi-controller-classic-outline:before{content:"󰮃"}.mdi-controller-off:before{content:"󰊵"}.mdi-cookie:before{content:"󰆘"}.mdi-cookie-alert:before{content:"󱛐"}.mdi-cookie-alert-outline:before{content:"󱛑"}.mdi-cookie-check:before{content:"󱛒"}.mdi-cookie-check-outline:before{content:"󱛓"}.mdi-cookie-clock:before{content:"󱛤"}.mdi-cookie-clock-outline:before{content:"󱛥"}.mdi-cookie-cog:before{content:"󱛔"}.mdi-cookie-cog-outline:before{content:"󱛕"}.mdi-cookie-edit:before{content:"󱛦"}.mdi-cookie-edit-outline:before{content:"󱛧"}.mdi-cookie-lock:before{content:"󱛨"}.mdi-cookie-lock-outline:before{content:"󱛩"}.mdi-cookie-minus:before{content:"󱛚"}.mdi-cookie-minus-outline:before{content:"󱛛"}.mdi-cookie-off:before{content:"󱛪"}.mdi-cookie-off-outline:before{content:"󱛫"}.mdi-cookie-outline:before{content:"󱛞"}.mdi-cookie-plus:before{content:"󱛖"}.mdi-cookie-plus-outline:before{content:"󱛗"}.mdi-cookie-refresh:before{content:"󱛬"}.mdi-cookie-refresh-outline:before{content:"󱛭"}.mdi-cookie-remove:before{content:"󱛘"}.mdi-cookie-remove-outline:before{content:"󱛙"}.mdi-cookie-settings:before{content:"󱛜"}.mdi-cookie-settings-outline:before{content:"󱛝"}.mdi-coolant-temperature:before{content:"󰏈"}.mdi-copyleft:before{content:"󱤹"}.mdi-copyright:before{content:"󰗦"}.mdi-cordova:before{content:"󰥘"}.mdi-corn:before{content:"󰞸"}.mdi-corn-off:before{content:"󱏯"}.mdi-cosine-wave:before{content:"󱑹"}.mdi-counter:before{content:"󰆙"}.mdi-countertop:before{content:"󱠜"}.mdi-countertop-outline:before{content:"󱠝"}.mdi-cow:before{content:"󰆚"}.mdi-cow-off:before{content:"󱣼"}.mdi-cpu-32-bit:before{content:"󰻟"}.mdi-cpu-64-bit:before{content:"󰻠"}.mdi-cradle:before{content:"󱦋"}.mdi-cradle-outline:before{content:"󱦑"}.mdi-crane:before{content:"󰡢"}.mdi-creation:before{content:"󰙴"}.mdi-creation-outline:before{content:"󱰫"}.mdi-creative-commons:before{content:"󰵫"}.mdi-credit-card:before{content:"󰿯"}.mdi-credit-card-check:before{content:"󱏐"}.mdi-credit-card-check-outline:before{content:"󱏑"}.mdi-credit-card-chip:before{content:"󱤏"}.mdi-credit-card-chip-outline:before{content:"󱤐"}.mdi-credit-card-clock:before{content:"󰻡"}.mdi-credit-card-clock-outline:before{content:"󰻢"}.mdi-credit-card-edit:before{content:"󱟗"}.mdi-credit-card-edit-outline:before{content:"󱟘"}.mdi-credit-card-fast:before{content:"󱤑"}.mdi-credit-card-fast-outline:before{content:"󱤒"}.mdi-credit-card-lock:before{content:"󱣧"}.mdi-credit-card-lock-outline:before{content:"󱣨"}.mdi-credit-card-marker:before{content:"󰚨"}.mdi-credit-card-marker-outline:before{content:"󰶾"}.mdi-credit-card-minus:before{content:"󰾬"}.mdi-credit-card-minus-outline:before{content:"󰾭"}.mdi-credit-card-multiple:before{content:"󰿰"}.mdi-credit-card-multiple-outline:before{content:"󰆜"}.mdi-credit-card-off:before{content:"󰿱"}.mdi-credit-card-off-outline:before{content:"󰗤"}.mdi-credit-card-outline:before{content:"󰆛"}.mdi-credit-card-plus:before{content:"󰿲"}.mdi-credit-card-plus-outline:before{content:"󰙶"}.mdi-credit-card-refresh:before{content:"󱙅"}.mdi-credit-card-refresh-outline:before{content:"󱙆"}.mdi-credit-card-refund:before{content:"󰿳"}.mdi-credit-card-refund-outline:before{content:"󰪨"}.mdi-credit-card-remove:before{content:"󰾮"}.mdi-credit-card-remove-outline:before{content:"󰾯"}.mdi-credit-card-scan:before{content:"󰿴"}.mdi-credit-card-scan-outline:before{content:"󰆝"}.mdi-credit-card-search:before{content:"󱙇"}.mdi-credit-card-search-outline:before{content:"󱙈"}.mdi-credit-card-settings:before{content:"󰿵"}.mdi-credit-card-settings-outline:before{content:"󰣗"}.mdi-credit-card-sync:before{content:"󱙉"}.mdi-credit-card-sync-outline:before{content:"󱙊"}.mdi-credit-card-wireless:before{content:"󰠂"}.mdi-credit-card-wireless-off:before{content:"󰕺"}.mdi-credit-card-wireless-off-outline:before{content:"󰕻"}.mdi-credit-card-wireless-outline:before{content:"󰵬"}.mdi-cricket:before{content:"󰵭"}.mdi-crop:before{content:"󰆞"}.mdi-crop-free:before{content:"󰆟"}.mdi-crop-landscape:before{content:"󰆠"}.mdi-crop-portrait:before{content:"󰆡"}.mdi-crop-rotate:before{content:"󰚖"}.mdi-crop-square:before{content:"󰆢"}.mdi-cross:before{content:"󰥓"}.mdi-cross-bolnisi:before{content:"󰳭"}.mdi-cross-celtic:before{content:"󰳵"}.mdi-cross-outline:before{content:"󰳶"}.mdi-crosshairs:before{content:"󰆣"}.mdi-crosshairs-gps:before{content:"󰆤"}.mdi-crosshairs-off:before{content:"󰽅"}.mdi-crosshairs-question:before{content:"󱄶"}.mdi-crowd:before{content:"󱥵"}.mdi-crown:before{content:"󰆥"}.mdi-crown-circle:before{content:"󱟜"}.mdi-crown-circle-outline:before{content:"󱟝"}.mdi-crown-outline:before{content:"󱇐"}.mdi-cryengine:before{content:"󰥙"}.mdi-crystal-ball:before{content:"󰬯"}.mdi-cube:before{content:"󰆦"}.mdi-cube-off:before{content:"󱐜"}.mdi-cube-off-outline:before{content:"󱐝"}.mdi-cube-outline:before{content:"󰆧"}.mdi-cube-scan:before{content:"󰮄"}.mdi-cube-send:before{content:"󰆨"}.mdi-cube-unfolded:before{content:"󰆩"}.mdi-cup:before{content:"󰆪"}.mdi-cup-off:before{content:"󰗥"}.mdi-cup-off-outline:before{content:"󱍽"}.mdi-cup-outline:before{content:"󱌏"}.mdi-cup-water:before{content:"󰆫"}.mdi-cupboard:before{content:"󰽆"}.mdi-cupboard-outline:before{content:"󰽇"}.mdi-cupcake:before{content:"󰥚"}.mdi-curling:before{content:"󰡣"}.mdi-currency-bdt:before{content:"󰡤"}.mdi-currency-brl:before{content:"󰮅"}.mdi-currency-btc:before{content:"󰆬"}.mdi-currency-cny:before{content:"󰞺"}.mdi-currency-eth:before{content:"󰞻"}.mdi-currency-eur:before{content:"󰆭"}.mdi-currency-eur-off:before{content:"󱌕"}.mdi-currency-fra:before{content:"󱨹"}.mdi-currency-gbp:before{content:"󰆮"}.mdi-currency-ils:before{content:"󰱡"}.mdi-currency-inr:before{content:"󰆯"}.mdi-currency-jpy:before{content:"󰞼"}.mdi-currency-krw:before{content:"󰞽"}.mdi-currency-kzt:before{content:"󰡥"}.mdi-currency-mnt:before{content:"󱔒"}.mdi-currency-ngn:before{content:"󰆰"}.mdi-currency-php:before{content:"󰧦"}.mdi-currency-rial:before{content:"󰺜"}.mdi-currency-rub:before{content:"󰆱"}.mdi-currency-rupee:before{content:"󱥶"}.mdi-currency-sign:before{content:"󰞾"}.mdi-currency-thb:before{content:"󱰅"}.mdi-currency-try:before{content:"󰆲"}.mdi-currency-twd:before{content:"󰞿"}.mdi-currency-uah:before{content:"󱮛"}.mdi-currency-usd:before{content:"󰇁"}.mdi-currency-usd-off:before{content:"󰙺"}.mdi-current-ac:before{content:"󱒀"}.mdi-current-dc:before{content:"󰥜"}.mdi-cursor-default:before{content:"󰇀"}.mdi-cursor-default-click:before{content:"󰳽"}.mdi-cursor-default-click-outline:before{content:"󰳾"}.mdi-cursor-default-gesture:before{content:"󱄧"}.mdi-cursor-default-gesture-outline:before{content:"󱄨"}.mdi-cursor-default-outline:before{content:"󰆿"}.mdi-cursor-move:before{content:"󰆾"}.mdi-cursor-pointer:before{content:"󰆽"}.mdi-cursor-text:before{content:"󰗧"}.mdi-curtains:before{content:"󱡆"}.mdi-curtains-closed:before{content:"󱡇"}.mdi-cylinder:before{content:"󱥎"}.mdi-cylinder-off:before{content:"󱥏"}.mdi-dance-ballroom:before{content:"󱗻"}.mdi-dance-pole:before{content:"󱕸"}.mdi-data-matrix:before{content:"󱔼"}.mdi-data-matrix-edit:before{content:"󱔽"}.mdi-data-matrix-minus:before{content:"󱔾"}.mdi-data-matrix-plus:before{content:"󱔿"}.mdi-data-matrix-remove:before{content:"󱕀"}.mdi-data-matrix-scan:before{content:"󱕁"}.mdi-database:before{content:"󰆼"}.mdi-database-alert:before{content:"󱘺"}.mdi-database-alert-outline:before{content:"󱘤"}.mdi-database-arrow-down:before{content:"󱘻"}.mdi-database-arrow-down-outline:before{content:"󱘥"}.mdi-database-arrow-left:before{content:"󱘼"}.mdi-database-arrow-left-outline:before{content:"󱘦"}.mdi-database-arrow-right:before{content:"󱘽"}.mdi-database-arrow-right-outline:before{content:"󱘧"}.mdi-database-arrow-up:before{content:"󱘾"}.mdi-database-arrow-up-outline:before{content:"󱘨"}.mdi-database-check:before{content:"󰪩"}.mdi-database-check-outline:before{content:"󱘩"}.mdi-database-clock:before{content:"󱘿"}.mdi-database-clock-outline:before{content:"󱘪"}.mdi-database-cog:before{content:"󱙋"}.mdi-database-cog-outline:before{content:"󱙌"}.mdi-database-edit:before{content:"󰮆"}.mdi-database-edit-outline:before{content:"󱘫"}.mdi-database-export:before{content:"󰥞"}.mdi-database-export-outline:before{content:"󱘬"}.mdi-database-eye:before{content:"󱤟"}.mdi-database-eye-off:before{content:"󱤠"}.mdi-database-eye-off-outline:before{content:"󱤡"}.mdi-database-eye-outline:before{content:"󱤢"}.mdi-database-import:before{content:"󰥝"}.mdi-database-import-outline:before{content:"󱘭"}.mdi-database-lock:before{content:"󰪪"}.mdi-database-lock-outline:before{content:"󱘮"}.mdi-database-marker:before{content:"󱋶"}.mdi-database-marker-outline:before{content:"󱘯"}.mdi-database-minus:before{content:"󰆻"}.mdi-database-minus-outline:before{content:"󱘰"}.mdi-database-off:before{content:"󱙀"}.mdi-database-off-outline:before{content:"󱘱"}.mdi-database-outline:before{content:"󱘲"}.mdi-database-plus:before{content:"󰆺"}.mdi-database-plus-outline:before{content:"󱘳"}.mdi-database-refresh:before{content:"󰗂"}.mdi-database-refresh-outline:before{content:"󱘴"}.mdi-database-remove:before{content:"󰴀"}.mdi-database-remove-outline:before{content:"󱘵"}.mdi-database-search:before{content:"󰡦"}.mdi-database-search-outline:before{content:"󱘶"}.mdi-database-settings:before{content:"󰴁"}.mdi-database-settings-outline:before{content:"󱘷"}.mdi-database-sync:before{content:"󰳿"}.mdi-database-sync-outline:before{content:"󱘸"}.mdi-death-star:before{content:"󰣘"}.mdi-death-star-variant:before{content:"󰣙"}.mdi-deathly-hallows:before{content:"󰮇"}.mdi-debian:before{content:"󰣚"}.mdi-debug-step-into:before{content:"󰆹"}.mdi-debug-step-out:before{content:"󰆸"}.mdi-debug-step-over:before{content:"󰆷"}.mdi-decagram:before{content:"󰝬"}.mdi-decagram-outline:before{content:"󰝭"}.mdi-decimal:before{content:"󱂡"}.mdi-decimal-comma:before{content:"󱂢"}.mdi-decimal-comma-decrease:before{content:"󱂣"}.mdi-decimal-comma-increase:before{content:"󱂤"}.mdi-decimal-decrease:before{content:"󰆶"}.mdi-decimal-increase:before{content:"󰆵"}.mdi-delete:before{content:"󰆴"}.mdi-delete-alert:before{content:"󱂥"}.mdi-delete-alert-outline:before{content:"󱂦"}.mdi-delete-circle:before{content:"󰚃"}.mdi-delete-circle-outline:before{content:"󰮈"}.mdi-delete-clock:before{content:"󱕖"}.mdi-delete-clock-outline:before{content:"󱕗"}.mdi-delete-empty:before{content:"󰛌"}.mdi-delete-empty-outline:before{content:"󰺝"}.mdi-delete-forever:before{content:"󰗨"}.mdi-delete-forever-outline:before{content:"󰮉"}.mdi-delete-off:before{content:"󱂧"}.mdi-delete-off-outline:before{content:"󱂨"}.mdi-delete-outline:before{content:"󰧧"}.mdi-delete-restore:before{content:"󰠙"}.mdi-delete-sweep:before{content:"󰗩"}.mdi-delete-sweep-outline:before{content:"󰱢"}.mdi-delete-variant:before{content:"󰆳"}.mdi-delta:before{content:"󰇂"}.mdi-desk:before{content:"󱈹"}.mdi-desk-lamp:before{content:"󰥟"}.mdi-desk-lamp-off:before{content:"󱬟"}.mdi-desk-lamp-on:before{content:"󱬠"}.mdi-deskphone:before{content:"󰇃"}.mdi-desktop-classic:before{content:"󰟀"}.mdi-desktop-tower:before{content:"󰇅"}.mdi-desktop-tower-monitor:before{content:"󰪫"}.mdi-details:before{content:"󰇆"}.mdi-dev-to:before{content:"󰵮"}.mdi-developer-board:before{content:"󰚗"}.mdi-deviantart:before{content:"󰇇"}.mdi-devices:before{content:"󰾰"}.mdi-dharmachakra:before{content:"󰥋"}.mdi-diabetes:before{content:"󱄦"}.mdi-dialpad:before{content:"󰘜"}.mdi-diameter:before{content:"󰱣"}.mdi-diameter-outline:before{content:"󰱤"}.mdi-diameter-variant:before{content:"󰱥"}.mdi-diamond:before{content:"󰮊"}.mdi-diamond-outline:before{content:"󰮋"}.mdi-diamond-stone:before{content:"󰇈"}.mdi-dice-1:before{content:"󰇊"}.mdi-dice-1-outline:before{content:"󱅊"}.mdi-dice-2:before{content:"󰇋"}.mdi-dice-2-outline:before{content:"󱅋"}.mdi-dice-3:before{content:"󰇌"}.mdi-dice-3-outline:before{content:"󱅌"}.mdi-dice-4:before{content:"󰇍"}.mdi-dice-4-outline:before{content:"󱅍"}.mdi-dice-5:before{content:"󰇎"}.mdi-dice-5-outline:before{content:"󱅎"}.mdi-dice-6:before{content:"󰇏"}.mdi-dice-6-outline:before{content:"󱅏"}.mdi-dice-d10:before{content:"󱅓"}.mdi-dice-d10-outline:before{content:"󰝯"}.mdi-dice-d12:before{content:"󱅔"}.mdi-dice-d12-outline:before{content:"󰡧"}.mdi-dice-d20:before{content:"󱅕"}.mdi-dice-d20-outline:before{content:"󰗪"}.mdi-dice-d4:before{content:"󱅐"}.mdi-dice-d4-outline:before{content:"󰗫"}.mdi-dice-d6:before{content:"󱅑"}.mdi-dice-d6-outline:before{content:"󰗭"}.mdi-dice-d8:before{content:"󱅒"}.mdi-dice-d8-outline:before{content:"󰗬"}.mdi-dice-multiple:before{content:"󰝮"}.mdi-dice-multiple-outline:before{content:"󱅖"}.mdi-digital-ocean:before{content:"󱈷"}.mdi-dip-switch:before{content:"󰟁"}.mdi-directions:before{content:"󰇐"}.mdi-directions-fork:before{content:"󰙁"}.mdi-disc:before{content:"󰗮"}.mdi-disc-alert:before{content:"󰇑"}.mdi-disc-player:before{content:"󰥠"}.mdi-dishwasher:before{content:"󰪬"}.mdi-dishwasher-alert:before{content:"󱆸"}.mdi-dishwasher-off:before{content:"󱆹"}.mdi-disqus:before{content:"󰇒"}.mdi-distribute-horizontal-center:before{content:"󱇉"}.mdi-distribute-horizontal-left:before{content:"󱇈"}.mdi-distribute-horizontal-right:before{content:"󱇊"}.mdi-distribute-vertical-bottom:before{content:"󱇋"}.mdi-distribute-vertical-center:before{content:"󱇌"}.mdi-distribute-vertical-top:before{content:"󱇍"}.mdi-diversify:before{content:"󱡷"}.mdi-diving:before{content:"󱥷"}.mdi-diving-flippers:before{content:"󰶿"}.mdi-diving-helmet:before{content:"󰷀"}.mdi-diving-scuba:before{content:"󱭷"}.mdi-diving-scuba-flag:before{content:"󰷂"}.mdi-diving-scuba-mask:before{content:"󰷁"}.mdi-diving-scuba-tank:before{content:"󰷃"}.mdi-diving-scuba-tank-multiple:before{content:"󰷄"}.mdi-diving-snorkel:before{content:"󰷅"}.mdi-division:before{content:"󰇔"}.mdi-division-box:before{content:"󰇕"}.mdi-dlna:before{content:"󰩁"}.mdi-dna:before{content:"󰚄"}.mdi-dns:before{content:"󰇖"}.mdi-dns-outline:before{content:"󰮌"}.mdi-dock-bottom:before{content:"󱂩"}.mdi-dock-left:before{content:"󱂪"}.mdi-dock-right:before{content:"󱂫"}.mdi-dock-top:before{content:"󱔓"}.mdi-dock-window:before{content:"󱂬"}.mdi-docker:before{content:"󰡨"}.mdi-doctor:before{content:"󰩂"}.mdi-dog:before{content:"󰩃"}.mdi-dog-service:before{content:"󰪭"}.mdi-dog-side:before{content:"󰩄"}.mdi-dog-side-off:before{content:"󱛮"}.mdi-dolby:before{content:"󰚳"}.mdi-dolly:before{content:"󰺞"}.mdi-dolphin:before{content:"󱢴"}.mdi-domain:before{content:"󰇗"}.mdi-domain-off:before{content:"󰵯"}.mdi-domain-plus:before{content:"󱂭"}.mdi-domain-remove:before{content:"󱂮"}.mdi-domain-switch:before{content:"󱰬"}.mdi-dome-light:before{content:"󱐞"}.mdi-domino-mask:before{content:"󱀣"}.mdi-donkey:before{content:"󰟂"}.mdi-door:before{content:"󰠚"}.mdi-door-closed:before{content:"󰠛"}.mdi-door-closed-cancel:before{content:"󱲓"}.mdi-door-closed-lock:before{content:"󱂯"}.mdi-door-open:before{content:"󰠜"}.mdi-door-sliding:before{content:"󱠞"}.mdi-door-sliding-lock:before{content:"󱠟"}.mdi-door-sliding-open:before{content:"󱠠"}.mdi-doorbell:before{content:"󱋦"}.mdi-doorbell-video:before{content:"󰡩"}.mdi-dot-net:before{content:"󰪮"}.mdi-dots-circle:before{content:"󱥸"}.mdi-dots-grid:before{content:"󱗼"}.mdi-dots-hexagon:before{content:"󱗿"}.mdi-dots-horizontal:before{content:"󰇘"}.mdi-dots-horizontal-circle:before{content:"󰟃"}.mdi-dots-horizontal-circle-outline:before{content:"󰮍"}.mdi-dots-square:before{content:"󱗽"}.mdi-dots-triangle:before{content:"󱗾"}.mdi-dots-vertical:before{content:"󰇙"}.mdi-dots-vertical-circle:before{content:"󰟄"}.mdi-dots-vertical-circle-outline:before{content:"󰮎"}.mdi-download:before{content:"󰇚"}.mdi-download-box:before{content:"󱑢"}.mdi-download-box-outline:before{content:"󱑣"}.mdi-download-circle:before{content:"󱑤"}.mdi-download-circle-outline:before{content:"󱑥"}.mdi-download-lock:before{content:"󱌠"}.mdi-download-lock-outline:before{content:"󱌡"}.mdi-download-multiple:before{content:"󰧩"}.mdi-download-network:before{content:"󰛴"}.mdi-download-network-outline:before{content:"󰱦"}.mdi-download-off:before{content:"󱂰"}.mdi-download-off-outline:before{content:"󱂱"}.mdi-download-outline:before{content:"󰮏"}.mdi-drag:before{content:"󰇛"}.mdi-drag-horizontal:before{content:"󰇜"}.mdi-drag-horizontal-variant:before{content:"󱋰"}.mdi-drag-variant:before{content:"󰮐"}.mdi-drag-vertical:before{content:"󰇝"}.mdi-drag-vertical-variant:before{content:"󱋱"}.mdi-drama-masks:before{content:"󰴂"}.mdi-draw:before{content:"󰽉"}.mdi-draw-pen:before{content:"󱦹"}.mdi-drawing:before{content:"󰇞"}.mdi-drawing-box:before{content:"󰇟"}.mdi-dresser:before{content:"󰽊"}.mdi-dresser-outline:before{content:"󰽋"}.mdi-drone:before{content:"󰇢"}.mdi-dropbox:before{content:"󰇣"}.mdi-drupal:before{content:"󰇤"}.mdi-duck:before{content:"󰇥"}.mdi-dumbbell:before{content:"󰇦"}.mdi-dump-truck:before{content:"󰱧"}.mdi-ear-hearing:before{content:"󰟅"}.mdi-ear-hearing-loop:before{content:"󱫮"}.mdi-ear-hearing-off:before{content:"󰩅"}.mdi-earbuds:before{content:"󱡏"}.mdi-earbuds-off:before{content:"󱡐"}.mdi-earbuds-off-outline:before{content:"󱡑"}.mdi-earbuds-outline:before{content:"󱡒"}.mdi-earth:before{content:"󰇧"}.mdi-earth-arrow-down:before{content:"󱲇"}.mdi-earth-arrow-left:before{content:"󱲈"}.mdi-earth-arrow-right:before{content:"󱌑"}.mdi-earth-arrow-up:before{content:"󱲉"}.mdi-earth-box:before{content:"󰛍"}.mdi-earth-box-minus:before{content:"󱐇"}.mdi-earth-box-off:before{content:"󰛎"}.mdi-earth-box-plus:before{content:"󱐆"}.mdi-earth-box-remove:before{content:"󱐈"}.mdi-earth-minus:before{content:"󱐄"}.mdi-earth-off:before{content:"󰇨"}.mdi-earth-plus:before{content:"󱐃"}.mdi-earth-remove:before{content:"󱐅"}.mdi-egg:before{content:"󰪯"}.mdi-egg-easter:before{content:"󰪰"}.mdi-egg-fried:before{content:"󱡊"}.mdi-egg-off:before{content:"󱏰"}.mdi-egg-off-outline:before{content:"󱏱"}.mdi-egg-outline:before{content:"󱏲"}.mdi-eiffel-tower:before{content:"󱕫"}.mdi-eight-track:before{content:"󰧪"}.mdi-eject:before{content:"󰇪"}.mdi-eject-circle:before{content:"󱬣"}.mdi-eject-circle-outline:before{content:"󱬤"}.mdi-eject-outline:before{content:"󰮑"}.mdi-electric-switch:before{content:"󰺟"}.mdi-electric-switch-closed:before{content:"󱃙"}.mdi-electron-framework:before{content:"󱀤"}.mdi-elephant:before{content:"󰟆"}.mdi-elevation-decline:before{content:"󰇫"}.mdi-elevation-rise:before{content:"󰇬"}.mdi-elevator:before{content:"󰇭"}.mdi-elevator-down:before{content:"󱋂"}.mdi-elevator-passenger:before{content:"󱎁"}.mdi-elevator-passenger-off:before{content:"󱥹"}.mdi-elevator-passenger-off-outline:before{content:"󱥺"}.mdi-elevator-passenger-outline:before{content:"󱥻"}.mdi-elevator-up:before{content:"󱋁"}.mdi-ellipse:before{content:"󰺠"}.mdi-ellipse-outline:before{content:"󰺡"}.mdi-email:before{content:"󰇮"}.mdi-email-alert:before{content:"󰛏"}.mdi-email-alert-outline:before{content:"󰵂"}.mdi-email-arrow-left:before{content:"󱃚"}.mdi-email-arrow-left-outline:before{content:"󱃛"}.mdi-email-arrow-right:before{content:"󱃜"}.mdi-email-arrow-right-outline:before{content:"󱃝"}.mdi-email-box:before{content:"󰴃"}.mdi-email-check:before{content:"󰪱"}.mdi-email-check-outline:before{content:"󰪲"}.mdi-email-edit:before{content:"󰻣"}.mdi-email-edit-outline:before{content:"󰻤"}.mdi-email-fast:before{content:"󱡯"}.mdi-email-fast-outline:before{content:"󱡰"}.mdi-email-heart-outline:before{content:"󱱛"}.mdi-email-lock:before{content:"󰇱"}.mdi-email-lock-outline:before{content:"󱭡"}.mdi-email-mark-as-unread:before{content:"󰮒"}.mdi-email-minus:before{content:"󰻥"}.mdi-email-minus-outline:before{content:"󰻦"}.mdi-email-multiple:before{content:"󰻧"}.mdi-email-multiple-outline:before{content:"󰻨"}.mdi-email-newsletter:before{content:"󰾱"}.mdi-email-off:before{content:"󱏣"}.mdi-email-off-outline:before{content:"󱏤"}.mdi-email-open:before{content:"󰇯"}.mdi-email-open-heart-outline:before{content:"󱱜"}.mdi-email-open-multiple:before{content:"󰻩"}.mdi-email-open-multiple-outline:before{content:"󰻪"}.mdi-email-open-outline:before{content:"󰗯"}.mdi-email-outline:before{content:"󰇰"}.mdi-email-plus:before{content:"󰧫"}.mdi-email-plus-outline:before{content:"󰧬"}.mdi-email-remove:before{content:"󱙡"}.mdi-email-remove-outline:before{content:"󱙢"}.mdi-email-seal:before{content:"󱥛"}.mdi-email-seal-outline:before{content:"󱥜"}.mdi-email-search:before{content:"󰥡"}.mdi-email-search-outline:before{content:"󰥢"}.mdi-email-sync:before{content:"󱋇"}.mdi-email-sync-outline:before{content:"󱋈"}.mdi-email-variant:before{content:"󰗰"}.mdi-ember:before{content:"󰬰"}.mdi-emby:before{content:"󰚴"}.mdi-emoticon:before{content:"󰱨"}.mdi-emoticon-angry:before{content:"󰱩"}.mdi-emoticon-angry-outline:before{content:"󰱪"}.mdi-emoticon-confused:before{content:"󱃞"}.mdi-emoticon-confused-outline:before{content:"󱃟"}.mdi-emoticon-cool:before{content:"󰱫"}.mdi-emoticon-cool-outline:before{content:"󰇳"}.mdi-emoticon-cry:before{content:"󰱬"}.mdi-emoticon-cry-outline:before{content:"󰱭"}.mdi-emoticon-dead:before{content:"󰱮"}.mdi-emoticon-dead-outline:before{content:"󰚛"}.mdi-emoticon-devil:before{content:"󰱯"}.mdi-emoticon-devil-outline:before{content:"󰇴"}.mdi-emoticon-excited:before{content:"󰱰"}.mdi-emoticon-excited-outline:before{content:"󰚜"}.mdi-emoticon-frown:before{content:"󰽌"}.mdi-emoticon-frown-outline:before{content:"󰽍"}.mdi-emoticon-happy:before{content:"󰱱"}.mdi-emoticon-happy-outline:before{content:"󰇵"}.mdi-emoticon-kiss:before{content:"󰱲"}.mdi-emoticon-kiss-outline:before{content:"󰱳"}.mdi-emoticon-lol:before{content:"󱈔"}.mdi-emoticon-lol-outline:before{content:"󱈕"}.mdi-emoticon-minus:before{content:"󱲲"}.mdi-emoticon-minus-outline:before{content:"󱲳"}.mdi-emoticon-neutral:before{content:"󰱴"}.mdi-emoticon-neutral-outline:before{content:"󰇶"}.mdi-emoticon-outline:before{content:"󰇲"}.mdi-emoticon-plus:before{content:"󱲴"}.mdi-emoticon-plus-outline:before{content:"󱲵"}.mdi-emoticon-poop:before{content:"󰇷"}.mdi-emoticon-poop-outline:before{content:"󰱵"}.mdi-emoticon-remove:before{content:"󱲶"}.mdi-emoticon-remove-outline:before{content:"󱲷"}.mdi-emoticon-sad:before{content:"󰱶"}.mdi-emoticon-sad-outline:before{content:"󰇸"}.mdi-emoticon-sick:before{content:"󱕼"}.mdi-emoticon-sick-outline:before{content:"󱕽"}.mdi-emoticon-tongue:before{content:"󰇹"}.mdi-emoticon-tongue-outline:before{content:"󰱷"}.mdi-emoticon-wink:before{content:"󰱸"}.mdi-emoticon-wink-outline:before{content:"󰱹"}.mdi-engine:before{content:"󰇺"}.mdi-engine-off:before{content:"󰩆"}.mdi-engine-off-outline:before{content:"󰩇"}.mdi-engine-outline:before{content:"󰇻"}.mdi-epsilon:before{content:"󱃠"}.mdi-equal:before{content:"󰇼"}.mdi-equal-box:before{content:"󰇽"}.mdi-equalizer:before{content:"󰺢"}.mdi-equalizer-outline:before{content:"󰺣"}.mdi-eraser:before{content:"󰇾"}.mdi-eraser-variant:before{content:"󰙂"}.mdi-escalator:before{content:"󰇿"}.mdi-escalator-box:before{content:"󱎙"}.mdi-escalator-down:before{content:"󱋀"}.mdi-escalator-up:before{content:"󱊿"}.mdi-eslint:before{content:"󰱺"}.mdi-et:before{content:"󰪳"}.mdi-ethereum:before{content:"󰡪"}.mdi-ethernet:before{content:"󰈀"}.mdi-ethernet-cable:before{content:"󰈁"}.mdi-ethernet-cable-off:before{content:"󰈂"}.mdi-ev-plug-ccs1:before{content:"󱔙"}.mdi-ev-plug-ccs2:before{content:"󱔚"}.mdi-ev-plug-chademo:before{content:"󱔛"}.mdi-ev-plug-tesla:before{content:"󱔜"}.mdi-ev-plug-type1:before{content:"󱔝"}.mdi-ev-plug-type2:before{content:"󱔞"}.mdi-ev-station:before{content:"󰗱"}.mdi-evernote:before{content:"󰈄"}.mdi-excavator:before{content:"󱀥"}.mdi-exclamation:before{content:"󰈅"}.mdi-exclamation-thick:before{content:"󱈸"}.mdi-exit-run:before{content:"󰩈"}.mdi-exit-to-app:before{content:"󰈆"}.mdi-expand-all:before{content:"󰪴"}.mdi-expand-all-outline:before{content:"󰪵"}.mdi-expansion-card:before{content:"󰢮"}.mdi-expansion-card-variant:before{content:"󰾲"}.mdi-exponent:before{content:"󰥣"}.mdi-exponent-box:before{content:"󰥤"}.mdi-export:before{content:"󰈇"}.mdi-export-variant:before{content:"󰮓"}.mdi-eye:before{content:"󰈈"}.mdi-eye-arrow-left:before{content:"󱣽"}.mdi-eye-arrow-left-outline:before{content:"󱣾"}.mdi-eye-arrow-right:before{content:"󱣿"}.mdi-eye-arrow-right-outline:before{content:"󱤀"}.mdi-eye-check:before{content:"󰴄"}.mdi-eye-check-outline:before{content:"󰴅"}.mdi-eye-circle:before{content:"󰮔"}.mdi-eye-circle-outline:before{content:"󰮕"}.mdi-eye-closed:before{content:"󱲣"}.mdi-eye-lock:before{content:"󱰆"}.mdi-eye-lock-open:before{content:"󱰇"}.mdi-eye-lock-open-outline:before{content:"󱰈"}.mdi-eye-lock-outline:before{content:"󱰉"}.mdi-eye-minus:before{content:"󱀦"}.mdi-eye-minus-outline:before{content:"󱀧"}.mdi-eye-off:before{content:"󰈉"}.mdi-eye-off-outline:before{content:"󰛑"}.mdi-eye-outline:before{content:"󰛐"}.mdi-eye-plus:before{content:"󰡫"}.mdi-eye-plus-outline:before{content:"󰡬"}.mdi-eye-refresh:before{content:"󱥼"}.mdi-eye-refresh-outline:before{content:"󱥽"}.mdi-eye-remove:before{content:"󱗣"}.mdi-eye-remove-outline:before{content:"󱗤"}.mdi-eye-settings:before{content:"󰡭"}.mdi-eye-settings-outline:before{content:"󰡮"}.mdi-eyedropper:before{content:"󰈊"}.mdi-eyedropper-minus:before{content:"󱏝"}.mdi-eyedropper-off:before{content:"󱏟"}.mdi-eyedropper-plus:before{content:"󱏜"}.mdi-eyedropper-remove:before{content:"󱏞"}.mdi-eyedropper-variant:before{content:"󰈋"}.mdi-face-agent:before{content:"󰵰"}.mdi-face-man:before{content:"󰙃"}.mdi-face-man-outline:before{content:"󰮖"}.mdi-face-man-profile:before{content:"󰙄"}.mdi-face-man-shimmer:before{content:"󱗌"}.mdi-face-man-shimmer-outline:before{content:"󱗍"}.mdi-face-mask:before{content:"󱖆"}.mdi-face-mask-outline:before{content:"󱖇"}.mdi-face-recognition:before{content:"󰱻"}.mdi-face-woman:before{content:"󱁷"}.mdi-face-woman-outline:before{content:"󱁸"}.mdi-face-woman-profile:before{content:"󱁶"}.mdi-face-woman-shimmer:before{content:"󱗎"}.mdi-face-woman-shimmer-outline:before{content:"󱗏"}.mdi-facebook:before{content:"󰈌"}.mdi-facebook-gaming:before{content:"󰟝"}.mdi-facebook-messenger:before{content:"󰈎"}.mdi-facebook-workplace:before{content:"󰬱"}.mdi-factory:before{content:"󰈏"}.mdi-family-tree:before{content:"󱘎"}.mdi-fan:before{content:"󰈐"}.mdi-fan-alert:before{content:"󱑬"}.mdi-fan-auto:before{content:"󱜝"}.mdi-fan-chevron-down:before{content:"󱑭"}.mdi-fan-chevron-up:before{content:"󱑮"}.mdi-fan-clock:before{content:"󱨺"}.mdi-fan-minus:before{content:"󱑰"}.mdi-fan-off:before{content:"󰠝"}.mdi-fan-plus:before{content:"󱑯"}.mdi-fan-remove:before{content:"󱑱"}.mdi-fan-speed-1:before{content:"󱑲"}.mdi-fan-speed-2:before{content:"󱑳"}.mdi-fan-speed-3:before{content:"󱑴"}.mdi-fast-forward:before{content:"󰈑"}.mdi-fast-forward-10:before{content:"󰵱"}.mdi-fast-forward-15:before{content:"󱤺"}.mdi-fast-forward-30:before{content:"󰴆"}.mdi-fast-forward-45:before{content:"󱬒"}.mdi-fast-forward-5:before{content:"󱇸"}.mdi-fast-forward-60:before{content:"󱘋"}.mdi-fast-forward-outline:before{content:"󰛒"}.mdi-faucet:before{content:"󱬩"}.mdi-faucet-variant:before{content:"󱬪"}.mdi-fax:before{content:"󰈒"}.mdi-feather:before{content:"󰛓"}.mdi-feature-search:before{content:"󰩉"}.mdi-feature-search-outline:before{content:"󰩊"}.mdi-fedora:before{content:"󰣛"}.mdi-fence:before{content:"󱞚"}.mdi-fence-electric:before{content:"󱟶"}.mdi-fencing:before{content:"󱓁"}.mdi-ferris-wheel:before{content:"󰺤"}.mdi-ferry:before{content:"󰈓"}.mdi-file:before{content:"󰈔"}.mdi-file-account:before{content:"󰜻"}.mdi-file-account-outline:before{content:"󱀨"}.mdi-file-alert:before{content:"󰩋"}.mdi-file-alert-outline:before{content:"󰩌"}.mdi-file-arrow-left-right:before{content:"󱪓"}.mdi-file-arrow-left-right-outline:before{content:"󱪔"}.mdi-file-arrow-up-down:before{content:"󱪕"}.mdi-file-arrow-up-down-outline:before{content:"󱪖"}.mdi-file-cabinet:before{content:"󰪶"}.mdi-file-cad:before{content:"󰻫"}.mdi-file-cad-box:before{content:"󰻬"}.mdi-file-cancel:before{content:"󰷆"}.mdi-file-cancel-outline:before{content:"󰷇"}.mdi-file-certificate:before{content:"󱆆"}.mdi-file-certificate-outline:before{content:"󱆇"}.mdi-file-chart:before{content:"󰈕"}.mdi-file-chart-check:before{content:"󱧆"}.mdi-file-chart-check-outline:before{content:"󱧇"}.mdi-file-chart-outline:before{content:"󱀩"}.mdi-file-check:before{content:"󰈖"}.mdi-file-check-outline:before{content:"󰸩"}.mdi-file-clock:before{content:"󱋡"}.mdi-file-clock-outline:before{content:"󱋢"}.mdi-file-cloud:before{content:"󰈗"}.mdi-file-cloud-outline:before{content:"󱀪"}.mdi-file-code:before{content:"󰈮"}.mdi-file-code-outline:before{content:"󱀫"}.mdi-file-cog:before{content:"󱁻"}.mdi-file-cog-outline:before{content:"󱁼"}.mdi-file-compare:before{content:"󰢪"}.mdi-file-delimited:before{content:"󰈘"}.mdi-file-delimited-outline:before{content:"󰺥"}.mdi-file-document:before{content:"󰈙"}.mdi-file-document-alert:before{content:"󱪗"}.mdi-file-document-alert-outline:before{content:"󱪘"}.mdi-file-document-arrow-right:before{content:"󱰏"}.mdi-file-document-arrow-right-outline:before{content:"󱰐"}.mdi-file-document-check:before{content:"󱪙"}.mdi-file-document-check-outline:before{content:"󱪚"}.mdi-file-document-edit:before{content:"󰷈"}.mdi-file-document-edit-outline:before{content:"󰷉"}.mdi-file-document-minus:before{content:"󱪛"}.mdi-file-document-minus-outline:before{content:"󱪜"}.mdi-file-document-multiple:before{content:"󱔗"}.mdi-file-document-multiple-outline:before{content:"󱔘"}.mdi-file-document-outline:before{content:"󰧮"}.mdi-file-document-plus:before{content:"󱪝"}.mdi-file-document-plus-outline:before{content:"󱪞"}.mdi-file-document-refresh:before{content:"󱱺"}.mdi-file-document-refresh-outline:before{content:"󱱻"}.mdi-file-document-remove:before{content:"󱪟"}.mdi-file-document-remove-outline:before{content:"󱪠"}.mdi-file-download:before{content:"󰥥"}.mdi-file-download-outline:before{content:"󰥦"}.mdi-file-edit:before{content:"󱇧"}.mdi-file-edit-outline:before{content:"󱇨"}.mdi-file-excel:before{content:"󰈛"}.mdi-file-excel-box:before{content:"󰈜"}.mdi-file-excel-box-outline:before{content:"󱀬"}.mdi-file-excel-outline:before{content:"󱀭"}.mdi-file-export:before{content:"󰈝"}.mdi-file-export-outline:before{content:"󱀮"}.mdi-file-eye:before{content:"󰷊"}.mdi-file-eye-outline:before{content:"󰷋"}.mdi-file-find:before{content:"󰈞"}.mdi-file-find-outline:before{content:"󰮗"}.mdi-file-gif-box:before{content:"󰵸"}.mdi-file-hidden:before{content:"󰘓"}.mdi-file-image:before{content:"󰈟"}.mdi-file-image-marker:before{content:"󱝲"}.mdi-file-image-marker-outline:before{content:"󱝳"}.mdi-file-image-minus:before{content:"󱤻"}.mdi-file-image-minus-outline:before{content:"󱤼"}.mdi-file-image-outline:before{content:"󰺰"}.mdi-file-image-plus:before{content:"󱤽"}.mdi-file-image-plus-outline:before{content:"󱤾"}.mdi-file-image-remove:before{content:"󱤿"}.mdi-file-image-remove-outline:before{content:"󱥀"}.mdi-file-import:before{content:"󰈠"}.mdi-file-import-outline:before{content:"󱀯"}.mdi-file-jpg-box:before{content:"󰈥"}.mdi-file-key:before{content:"󱆄"}.mdi-file-key-outline:before{content:"󱆅"}.mdi-file-link:before{content:"󱅷"}.mdi-file-link-outline:before{content:"󱅸"}.mdi-file-lock:before{content:"󰈡"}.mdi-file-lock-open:before{content:"󱧈"}.mdi-file-lock-open-outline:before{content:"󱧉"}.mdi-file-lock-outline:before{content:"󱀰"}.mdi-file-marker:before{content:"󱝴"}.mdi-file-marker-outline:before{content:"󱝵"}.mdi-file-minus:before{content:"󱪡"}.mdi-file-minus-outline:before{content:"󱪢"}.mdi-file-move:before{content:"󰪹"}.mdi-file-move-outline:before{content:"󱀱"}.mdi-file-multiple:before{content:"󰈢"}.mdi-file-multiple-outline:before{content:"󱀲"}.mdi-file-music:before{content:"󰈣"}.mdi-file-music-outline:before{content:"󰸪"}.mdi-file-outline:before{content:"󰈤"}.mdi-file-pdf-box:before{content:"󰈦"}.mdi-file-percent:before{content:"󰠞"}.mdi-file-percent-outline:before{content:"󱀳"}.mdi-file-phone:before{content:"󱅹"}.mdi-file-phone-outline:before{content:"󱅺"}.mdi-file-plus:before{content:"󰝒"}.mdi-file-plus-outline:before{content:"󰻭"}.mdi-file-png-box:before{content:"󰸭"}.mdi-file-powerpoint:before{content:"󰈧"}.mdi-file-powerpoint-box:before{content:"󰈨"}.mdi-file-powerpoint-box-outline:before{content:"󱀴"}.mdi-file-powerpoint-outline:before{content:"󱀵"}.mdi-file-presentation-box:before{content:"󰈩"}.mdi-file-question:before{content:"󰡯"}.mdi-file-question-outline:before{content:"󱀶"}.mdi-file-refresh:before{content:"󰤘"}.mdi-file-refresh-outline:before{content:"󰕁"}.mdi-file-remove:before{content:"󰮘"}.mdi-file-remove-outline:before{content:"󱀷"}.mdi-file-replace:before{content:"󰬲"}.mdi-file-replace-outline:before{content:"󰬳"}.mdi-file-restore:before{content:"󰙰"}.mdi-file-restore-outline:before{content:"󱀸"}.mdi-file-rotate-left:before{content:"󱨻"}.mdi-file-rotate-left-outline:before{content:"󱨼"}.mdi-file-rotate-right:before{content:"󱨽"}.mdi-file-rotate-right-outline:before{content:"󱨾"}.mdi-file-search:before{content:"󰱼"}.mdi-file-search-outline:before{content:"󰱽"}.mdi-file-send:before{content:"󰈪"}.mdi-file-send-outline:before{content:"󱀹"}.mdi-file-settings:before{content:"󱁹"}.mdi-file-settings-outline:before{content:"󱁺"}.mdi-file-sign:before{content:"󱧃"}.mdi-file-star:before{content:"󱀺"}.mdi-file-star-four-points:before{content:"󱰭"}.mdi-file-star-four-points-outline:before{content:"󱰮"}.mdi-file-star-outline:before{content:"󱀻"}.mdi-file-swap:before{content:"󰾴"}.mdi-file-swap-outline:before{content:"󰾵"}.mdi-file-sync:before{content:"󱈖"}.mdi-file-sync-outline:before{content:"󱈗"}.mdi-file-table:before{content:"󰱾"}.mdi-file-table-box:before{content:"󱃡"}.mdi-file-table-box-multiple:before{content:"󱃢"}.mdi-file-table-box-multiple-outline:before{content:"󱃣"}.mdi-file-table-box-outline:before{content:"󱃤"}.mdi-file-table-outline:before{content:"󰱿"}.mdi-file-tree:before{content:"󰙅"}.mdi-file-tree-outline:before{content:"󱏒"}.mdi-file-undo:before{content:"󰣜"}.mdi-file-undo-outline:before{content:"󱀼"}.mdi-file-upload:before{content:"󰩍"}.mdi-file-upload-outline:before{content:"󰩎"}.mdi-file-video:before{content:"󰈫"}.mdi-file-video-outline:before{content:"󰸬"}.mdi-file-word:before{content:"󰈬"}.mdi-file-word-box:before{content:"󰈭"}.mdi-file-word-box-outline:before{content:"󱀽"}.mdi-file-word-outline:before{content:"󱀾"}.mdi-file-xml-box:before{content:"󱭋"}.mdi-film:before{content:"󰈯"}.mdi-filmstrip:before{content:"󰈰"}.mdi-filmstrip-box:before{content:"󰌲"}.mdi-filmstrip-box-multiple:before{content:"󰴘"}.mdi-filmstrip-off:before{content:"󰈱"}.mdi-filter:before{content:"󰈲"}.mdi-filter-check:before{content:"󱣬"}.mdi-filter-check-outline:before{content:"󱣭"}.mdi-filter-cog:before{content:"󱪣"}.mdi-filter-cog-outline:before{content:"󱪤"}.mdi-filter-menu:before{content:"󱃥"}.mdi-filter-menu-outline:before{content:"󱃦"}.mdi-filter-minus:before{content:"󰻮"}.mdi-filter-minus-outline:before{content:"󰻯"}.mdi-filter-multiple:before{content:"󱨿"}.mdi-filter-multiple-outline:before{content:"󱩀"}.mdi-filter-off:before{content:"󱓯"}.mdi-filter-off-outline:before{content:"󱓰"}.mdi-filter-outline:before{content:"󰈳"}.mdi-filter-plus:before{content:"󰻰"}.mdi-filter-plus-outline:before{content:"󰻱"}.mdi-filter-remove:before{content:"󰈴"}.mdi-filter-remove-outline:before{content:"󰈵"}.mdi-filter-settings:before{content:"󱪥"}.mdi-filter-settings-outline:before{content:"󱪦"}.mdi-filter-variant:before{content:"󰈶"}.mdi-filter-variant-minus:before{content:"󱄒"}.mdi-filter-variant-plus:before{content:"󱄓"}.mdi-filter-variant-remove:before{content:"󱀿"}.mdi-finance:before{content:"󰠟"}.mdi-find-replace:before{content:"󰛔"}.mdi-fingerprint:before{content:"󰈷"}.mdi-fingerprint-off:before{content:"󰺱"}.mdi-fire:before{content:"󰈸"}.mdi-fire-alert:before{content:"󱗗"}.mdi-fire-circle:before{content:"󱠇"}.mdi-fire-extinguisher:before{content:"󰻲"}.mdi-fire-hydrant:before{content:"󱄷"}.mdi-fire-hydrant-alert:before{content:"󱄸"}.mdi-fire-hydrant-off:before{content:"󱄹"}.mdi-fire-off:before{content:"󱜢"}.mdi-fire-station:before{content:"󱳃"}.mdi-fire-truck:before{content:"󰢫"}.mdi-firebase:before{content:"󰥧"}.mdi-firefox:before{content:"󰈹"}.mdi-fireplace:before{content:"󰸮"}.mdi-fireplace-off:before{content:"󰸯"}.mdi-firewire:before{content:"󰖾"}.mdi-firework:before{content:"󰸰"}.mdi-firework-off:before{content:"󱜣"}.mdi-fish:before{content:"󰈺"}.mdi-fish-off:before{content:"󱏳"}.mdi-fishbowl:before{content:"󰻳"}.mdi-fishbowl-outline:before{content:"󰻴"}.mdi-fit-to-page:before{content:"󰻵"}.mdi-fit-to-page-outline:before{content:"󰻶"}.mdi-fit-to-screen:before{content:"󱣴"}.mdi-fit-to-screen-outline:before{content:"󱣵"}.mdi-flag:before{content:"󰈻"}.mdi-flag-checkered:before{content:"󰈼"}.mdi-flag-minus:before{content:"󰮙"}.mdi-flag-minus-outline:before{content:"󱂲"}.mdi-flag-off:before{content:"󱣮"}.mdi-flag-off-outline:before{content:"󱣯"}.mdi-flag-outline:before{content:"󰈽"}.mdi-flag-plus:before{content:"󰮚"}.mdi-flag-plus-outline:before{content:"󱂳"}.mdi-flag-remove:before{content:"󰮛"}.mdi-flag-remove-outline:before{content:"󱂴"}.mdi-flag-triangle:before{content:"󰈿"}.mdi-flag-variant:before{content:"󰉀"}.mdi-flag-variant-minus:before{content:"󱮴"}.mdi-flag-variant-minus-outline:before{content:"󱮵"}.mdi-flag-variant-off:before{content:"󱮰"}.mdi-flag-variant-off-outline:before{content:"󱮱"}.mdi-flag-variant-outline:before{content:"󰈾"}.mdi-flag-variant-plus:before{content:"󱮲"}.mdi-flag-variant-plus-outline:before{content:"󱮳"}.mdi-flag-variant-remove:before{content:"󱮶"}.mdi-flag-variant-remove-outline:before{content:"󱮷"}.mdi-flare:before{content:"󰵲"}.mdi-flash:before{content:"󰉁"}.mdi-flash-alert:before{content:"󰻷"}.mdi-flash-alert-outline:before{content:"󰻸"}.mdi-flash-auto:before{content:"󰉂"}.mdi-flash-off:before{content:"󰉃"}.mdi-flash-off-outline:before{content:"󱭅"}.mdi-flash-outline:before{content:"󰛕"}.mdi-flash-red-eye:before{content:"󰙻"}.mdi-flash-triangle:before{content:"󱬝"}.mdi-flash-triangle-outline:before{content:"󱬞"}.mdi-flashlight:before{content:"󰉄"}.mdi-flashlight-off:before{content:"󰉅"}.mdi-flask:before{content:"󰂓"}.mdi-flask-empty:before{content:"󰂔"}.mdi-flask-empty-minus:before{content:"󱈺"}.mdi-flask-empty-minus-outline:before{content:"󱈻"}.mdi-flask-empty-off:before{content:"󱏴"}.mdi-flask-empty-off-outline:before{content:"󱏵"}.mdi-flask-empty-outline:before{content:"󰂕"}.mdi-flask-empty-plus:before{content:"󱈼"}.mdi-flask-empty-plus-outline:before{content:"󱈽"}.mdi-flask-empty-remove:before{content:"󱈾"}.mdi-flask-empty-remove-outline:before{content:"󱈿"}.mdi-flask-minus:before{content:"󱉀"}.mdi-flask-minus-outline:before{content:"󱉁"}.mdi-flask-off:before{content:"󱏶"}.mdi-flask-off-outline:before{content:"󱏷"}.mdi-flask-outline:before{content:"󰂖"}.mdi-flask-plus:before{content:"󱉂"}.mdi-flask-plus-outline:before{content:"󱉃"}.mdi-flask-remove:before{content:"󱉄"}.mdi-flask-remove-outline:before{content:"󱉅"}.mdi-flask-round-bottom:before{content:"󱉋"}.mdi-flask-round-bottom-empty:before{content:"󱉌"}.mdi-flask-round-bottom-empty-outline:before{content:"󱉍"}.mdi-flask-round-bottom-outline:before{content:"󱉎"}.mdi-fleur-de-lis:before{content:"󱌃"}.mdi-flip-horizontal:before{content:"󱃧"}.mdi-flip-to-back:before{content:"󰉇"}.mdi-flip-to-front:before{content:"󰉈"}.mdi-flip-vertical:before{content:"󱃨"}.mdi-floor-lamp:before{content:"󰣝"}.mdi-floor-lamp-dual:before{content:"󱁀"}.mdi-floor-lamp-dual-outline:before{content:"󱟎"}.mdi-floor-lamp-outline:before{content:"󱟈"}.mdi-floor-lamp-torchiere:before{content:"󱝇"}.mdi-floor-lamp-torchiere-outline:before{content:"󱟖"}.mdi-floor-lamp-torchiere-variant:before{content:"󱁁"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"󱟏"}.mdi-floor-plan:before{content:"󰠡"}.mdi-floppy:before{content:"󰉉"}.mdi-floppy-variant:before{content:"󰧯"}.mdi-flower:before{content:"󰉊"}.mdi-flower-outline:before{content:"󰧰"}.mdi-flower-pollen:before{content:"󱢅"}.mdi-flower-pollen-outline:before{content:"󱢆"}.mdi-flower-poppy:before{content:"󰴈"}.mdi-flower-tulip:before{content:"󰧱"}.mdi-flower-tulip-outline:before{content:"󰧲"}.mdi-focus-auto:before{content:"󰽎"}.mdi-focus-field:before{content:"󰽏"}.mdi-focus-field-horizontal:before{content:"󰽐"}.mdi-focus-field-vertical:before{content:"󰽑"}.mdi-folder:before{content:"󰉋"}.mdi-folder-account:before{content:"󰉌"}.mdi-folder-account-outline:before{content:"󰮜"}.mdi-folder-alert:before{content:"󰷌"}.mdi-folder-alert-outline:before{content:"󰷍"}.mdi-folder-arrow-down:before{content:"󱧨"}.mdi-folder-arrow-down-outline:before{content:"󱧩"}.mdi-folder-arrow-left:before{content:"󱧪"}.mdi-folder-arrow-left-outline:before{content:"󱧫"}.mdi-folder-arrow-left-right:before{content:"󱧬"}.mdi-folder-arrow-left-right-outline:before{content:"󱧭"}.mdi-folder-arrow-right:before{content:"󱧮"}.mdi-folder-arrow-right-outline:before{content:"󱧯"}.mdi-folder-arrow-up:before{content:"󱧰"}.mdi-folder-arrow-up-down:before{content:"󱧱"}.mdi-folder-arrow-up-down-outline:before{content:"󱧲"}.mdi-folder-arrow-up-outline:before{content:"󱧳"}.mdi-folder-cancel:before{content:"󱧴"}.mdi-folder-cancel-outline:before{content:"󱧵"}.mdi-folder-check:before{content:"󱥾"}.mdi-folder-check-outline:before{content:"󱥿"}.mdi-folder-clock:before{content:"󰪺"}.mdi-folder-clock-outline:before{content:"󰪻"}.mdi-folder-cog:before{content:"󱁿"}.mdi-folder-cog-outline:before{content:"󱂀"}.mdi-folder-download:before{content:"󰉍"}.mdi-folder-download-outline:before{content:"󱃩"}.mdi-folder-edit:before{content:"󰣞"}.mdi-folder-edit-outline:before{content:"󰷎"}.mdi-folder-eye:before{content:"󱞊"}.mdi-folder-eye-outline:before{content:"󱞋"}.mdi-folder-file:before{content:"󱧶"}.mdi-folder-file-outline:before{content:"󱧷"}.mdi-folder-google-drive:before{content:"󰉎"}.mdi-folder-heart:before{content:"󱃪"}.mdi-folder-heart-outline:before{content:"󱃫"}.mdi-folder-hidden:before{content:"󱞞"}.mdi-folder-home:before{content:"󱂵"}.mdi-folder-home-outline:before{content:"󱂶"}.mdi-folder-image:before{content:"󰉏"}.mdi-folder-information:before{content:"󱂷"}.mdi-folder-information-outline:before{content:"󱂸"}.mdi-folder-key:before{content:"󰢬"}.mdi-folder-key-network:before{content:"󰢭"}.mdi-folder-key-network-outline:before{content:"󰲀"}.mdi-folder-key-outline:before{content:"󱃬"}.mdi-folder-lock:before{content:"󰉐"}.mdi-folder-lock-open:before{content:"󰉑"}.mdi-folder-lock-open-outline:before{content:"󱪧"}.mdi-folder-lock-outline:before{content:"󱪨"}.mdi-folder-marker:before{content:"󱉭"}.mdi-folder-marker-outline:before{content:"󱉮"}.mdi-folder-minus:before{content:"󱭉"}.mdi-folder-minus-outline:before{content:"󱭊"}.mdi-folder-move:before{content:"󰉒"}.mdi-folder-move-outline:before{content:"󱉆"}.mdi-folder-multiple:before{content:"󰉓"}.mdi-folder-multiple-image:before{content:"󰉔"}.mdi-folder-multiple-outline:before{content:"󰉕"}.mdi-folder-multiple-plus:before{content:"󱑾"}.mdi-folder-multiple-plus-outline:before{content:"󱑿"}.mdi-folder-music:before{content:"󱍙"}.mdi-folder-music-outline:before{content:"󱍚"}.mdi-folder-network:before{content:"󰡰"}.mdi-folder-network-outline:before{content:"󰲁"}.mdi-folder-off:before{content:"󱧸"}.mdi-folder-off-outline:before{content:"󱧹"}.mdi-folder-open:before{content:"󰝰"}.mdi-folder-open-outline:before{content:"󰷏"}.mdi-folder-outline:before{content:"󰉖"}.mdi-folder-play:before{content:"󱧺"}.mdi-folder-play-outline:before{content:"󱧻"}.mdi-folder-plus:before{content:"󰉗"}.mdi-folder-plus-outline:before{content:"󰮝"}.mdi-folder-pound:before{content:"󰴉"}.mdi-folder-pound-outline:before{content:"󰴊"}.mdi-folder-question:before{content:"󱧊"}.mdi-folder-question-outline:before{content:"󱧋"}.mdi-folder-refresh:before{content:"󰝉"}.mdi-folder-refresh-outline:before{content:"󰕂"}.mdi-folder-remove:before{content:"󰉘"}.mdi-folder-remove-outline:before{content:"󰮞"}.mdi-folder-search:before{content:"󰥨"}.mdi-folder-search-outline:before{content:"󰥩"}.mdi-folder-settings:before{content:"󱁽"}.mdi-folder-settings-outline:before{content:"󱁾"}.mdi-folder-star:before{content:"󰚝"}.mdi-folder-star-multiple:before{content:"󱏓"}.mdi-folder-star-multiple-outline:before{content:"󱏔"}.mdi-folder-star-outline:before{content:"󰮟"}.mdi-folder-swap:before{content:"󰾶"}.mdi-folder-swap-outline:before{content:"󰾷"}.mdi-folder-sync:before{content:"󰴋"}.mdi-folder-sync-outline:before{content:"󰴌"}.mdi-folder-table:before{content:"󱋣"}.mdi-folder-table-outline:before{content:"󱋤"}.mdi-folder-text:before{content:"󰲂"}.mdi-folder-text-outline:before{content:"󰲃"}.mdi-folder-upload:before{content:"󰉙"}.mdi-folder-upload-outline:before{content:"󱃭"}.mdi-folder-wrench:before{content:"󱧼"}.mdi-folder-wrench-outline:before{content:"󱧽"}.mdi-folder-zip:before{content:"󰛫"}.mdi-folder-zip-outline:before{content:"󰞹"}.mdi-font-awesome:before{content:"󰀺"}.mdi-food:before{content:"󰉚"}.mdi-food-apple:before{content:"󰉛"}.mdi-food-apple-outline:before{content:"󰲄"}.mdi-food-croissant:before{content:"󰟈"}.mdi-food-drumstick:before{content:"󱐟"}.mdi-food-drumstick-off:before{content:"󱑨"}.mdi-food-drumstick-off-outline:before{content:"󱑩"}.mdi-food-drumstick-outline:before{content:"󱐠"}.mdi-food-fork-drink:before{content:"󰗲"}.mdi-food-halal:before{content:"󱕲"}.mdi-food-hot-dog:before{content:"󱡋"}.mdi-food-kosher:before{content:"󱕳"}.mdi-food-off:before{content:"󰗳"}.mdi-food-off-outline:before{content:"󱤕"}.mdi-food-outline:before{content:"󱤖"}.mdi-food-steak:before{content:"󱑪"}.mdi-food-steak-off:before{content:"󱑫"}.mdi-food-takeout-box:before{content:"󱠶"}.mdi-food-takeout-box-outline:before{content:"󱠷"}.mdi-food-turkey:before{content:"󱜜"}.mdi-food-variant:before{content:"󰉜"}.mdi-food-variant-off:before{content:"󱏥"}.mdi-foot-print:before{content:"󰽒"}.mdi-football:before{content:"󰉝"}.mdi-football-australian:before{content:"󰉞"}.mdi-football-helmet:before{content:"󰉟"}.mdi-forest:before{content:"󱢗"}.mdi-forest-outline:before{content:"󱱣"}.mdi-forklift:before{content:"󰟉"}.mdi-form-dropdown:before{content:"󱐀"}.mdi-form-select:before{content:"󱐁"}.mdi-form-textarea:before{content:"󱂕"}.mdi-form-textbox:before{content:"󰘎"}.mdi-form-textbox-lock:before{content:"󱍝"}.mdi-form-textbox-password:before{content:"󰟵"}.mdi-format-align-bottom:before{content:"󰝓"}.mdi-format-align-center:before{content:"󰉠"}.mdi-format-align-justify:before{content:"󰉡"}.mdi-format-align-left:before{content:"󰉢"}.mdi-format-align-middle:before{content:"󰝔"}.mdi-format-align-right:before{content:"󰉣"}.mdi-format-align-top:before{content:"󰝕"}.mdi-format-annotation-minus:before{content:"󰪼"}.mdi-format-annotation-plus:before{content:"󰙆"}.mdi-format-bold:before{content:"󰉤"}.mdi-format-clear:before{content:"󰉥"}.mdi-format-color-fill:before{content:"󰉦"}.mdi-format-color-highlight:before{content:"󰸱"}.mdi-format-color-marker-cancel:before{content:"󱌓"}.mdi-format-color-text:before{content:"󰚞"}.mdi-format-columns:before{content:"󰣟"}.mdi-format-float-center:before{content:"󰉧"}.mdi-format-float-left:before{content:"󰉨"}.mdi-format-float-none:before{content:"󰉩"}.mdi-format-float-right:before{content:"󰉪"}.mdi-format-font:before{content:"󰛖"}.mdi-format-font-size-decrease:before{content:"󰧳"}.mdi-format-font-size-increase:before{content:"󰧴"}.mdi-format-header-1:before{content:"󰉫"}.mdi-format-header-2:before{content:"󰉬"}.mdi-format-header-3:before{content:"󰉭"}.mdi-format-header-4:before{content:"󰉮"}.mdi-format-header-5:before{content:"󰉯"}.mdi-format-header-6:before{content:"󰉰"}.mdi-format-header-decrease:before{content:"󰉱"}.mdi-format-header-equal:before{content:"󰉲"}.mdi-format-header-increase:before{content:"󰉳"}.mdi-format-header-pound:before{content:"󰉴"}.mdi-format-horizontal-align-center:before{content:"󰘞"}.mdi-format-horizontal-align-left:before{content:"󰘟"}.mdi-format-horizontal-align-right:before{content:"󰘠"}.mdi-format-indent-decrease:before{content:"󰉵"}.mdi-format-indent-increase:before{content:"󰉶"}.mdi-format-italic:before{content:"󰉷"}.mdi-format-letter-case:before{content:"󰬴"}.mdi-format-letter-case-lower:before{content:"󰬵"}.mdi-format-letter-case-upper:before{content:"󰬶"}.mdi-format-letter-ends-with:before{content:"󰾸"}.mdi-format-letter-matches:before{content:"󰾹"}.mdi-format-letter-spacing:before{content:"󱥖"}.mdi-format-letter-spacing-variant:before{content:"󱫻"}.mdi-format-letter-starts-with:before{content:"󰾺"}.mdi-format-line-height:before{content:"󱫼"}.mdi-format-line-spacing:before{content:"󰉸"}.mdi-format-line-style:before{content:"󰗈"}.mdi-format-line-weight:before{content:"󰗉"}.mdi-format-list-bulleted:before{content:"󰉹"}.mdi-format-list-bulleted-square:before{content:"󰷐"}.mdi-format-list-bulleted-triangle:before{content:"󰺲"}.mdi-format-list-bulleted-type:before{content:"󰉺"}.mdi-format-list-checkbox:before{content:"󰥪"}.mdi-format-list-checks:before{content:"󰝖"}.mdi-format-list-group:before{content:"󱡠"}.mdi-format-list-group-plus:before{content:"󱭖"}.mdi-format-list-numbered:before{content:"󰉻"}.mdi-format-list-numbered-rtl:before{content:"󰴍"}.mdi-format-list-text:before{content:"󱉯"}.mdi-format-overline:before{content:"󰺳"}.mdi-format-page-break:before{content:"󰛗"}.mdi-format-page-split:before{content:"󱤗"}.mdi-format-paint:before{content:"󰉼"}.mdi-format-paragraph:before{content:"󰉽"}.mdi-format-paragraph-spacing:before{content:"󱫽"}.mdi-format-pilcrow:before{content:"󰛘"}.mdi-format-pilcrow-arrow-left:before{content:"󰊆"}.mdi-format-pilcrow-arrow-right:before{content:"󰊅"}.mdi-format-quote-close:before{content:"󰉾"}.mdi-format-quote-close-outline:before{content:"󱆨"}.mdi-format-quote-open:before{content:"󰝗"}.mdi-format-quote-open-outline:before{content:"󱆧"}.mdi-format-rotate-90:before{content:"󰚪"}.mdi-format-section:before{content:"󰚟"}.mdi-format-size:before{content:"󰉿"}.mdi-format-strikethrough:before{content:"󰊀"}.mdi-format-strikethrough-variant:before{content:"󰊁"}.mdi-format-subscript:before{content:"󰊂"}.mdi-format-superscript:before{content:"󰊃"}.mdi-format-text:before{content:"󰊄"}.mdi-format-text-rotation-angle-down:before{content:"󰾻"}.mdi-format-text-rotation-angle-up:before{content:"󰾼"}.mdi-format-text-rotation-down:before{content:"󰵳"}.mdi-format-text-rotation-down-vertical:before{content:"󰾽"}.mdi-format-text-rotation-none:before{content:"󰵴"}.mdi-format-text-rotation-up:before{content:"󰾾"}.mdi-format-text-rotation-vertical:before{content:"󰾿"}.mdi-format-text-variant:before{content:"󰸲"}.mdi-format-text-variant-outline:before{content:"󱔏"}.mdi-format-text-wrapping-clip:before{content:"󰴎"}.mdi-format-text-wrapping-overflow:before{content:"󰴏"}.mdi-format-text-wrapping-wrap:before{content:"󰴐"}.mdi-format-textbox:before{content:"󰴑"}.mdi-format-title:before{content:"󰗴"}.mdi-format-underline:before{content:"󰊇"}.mdi-format-underline-wavy:before{content:"󱣩"}.mdi-format-vertical-align-bottom:before{content:"󰘡"}.mdi-format-vertical-align-center:before{content:"󰘢"}.mdi-format-vertical-align-top:before{content:"󰘣"}.mdi-format-wrap-inline:before{content:"󰊈"}.mdi-format-wrap-square:before{content:"󰊉"}.mdi-format-wrap-tight:before{content:"󰊊"}.mdi-format-wrap-top-bottom:before{content:"󰊋"}.mdi-forum:before{content:"󰊌"}.mdi-forum-minus:before{content:"󱪩"}.mdi-forum-minus-outline:before{content:"󱪪"}.mdi-forum-outline:before{content:"󰠢"}.mdi-forum-plus:before{content:"󱪫"}.mdi-forum-plus-outline:before{content:"󱪬"}.mdi-forum-remove:before{content:"󱪭"}.mdi-forum-remove-outline:before{content:"󱪮"}.mdi-forward:before{content:"󰊍"}.mdi-forwardburger:before{content:"󰵵"}.mdi-fountain:before{content:"󰥫"}.mdi-fountain-pen:before{content:"󰴒"}.mdi-fountain-pen-tip:before{content:"󰴓"}.mdi-fraction-one-half:before{content:"󱦒"}.mdi-freebsd:before{content:"󰣠"}.mdi-french-fries:before{content:"󱥗"}.mdi-frequently-asked-questions:before{content:"󰺴"}.mdi-fridge:before{content:"󰊐"}.mdi-fridge-alert:before{content:"󱆱"}.mdi-fridge-alert-outline:before{content:"󱆲"}.mdi-fridge-bottom:before{content:"󰊒"}.mdi-fridge-industrial:before{content:"󱗮"}.mdi-fridge-industrial-alert:before{content:"󱗯"}.mdi-fridge-industrial-alert-outline:before{content:"󱗰"}.mdi-fridge-industrial-off:before{content:"󱗱"}.mdi-fridge-industrial-off-outline:before{content:"󱗲"}.mdi-fridge-industrial-outline:before{content:"󱗳"}.mdi-fridge-off:before{content:"󱆯"}.mdi-fridge-off-outline:before{content:"󱆰"}.mdi-fridge-outline:before{content:"󰊏"}.mdi-fridge-top:before{content:"󰊑"}.mdi-fridge-variant:before{content:"󱗴"}.mdi-fridge-variant-alert:before{content:"󱗵"}.mdi-fridge-variant-alert-outline:before{content:"󱗶"}.mdi-fridge-variant-off:before{content:"󱗷"}.mdi-fridge-variant-off-outline:before{content:"󱗸"}.mdi-fridge-variant-outline:before{content:"󱗹"}.mdi-fruit-cherries:before{content:"󱁂"}.mdi-fruit-cherries-off:before{content:"󱏸"}.mdi-fruit-citrus:before{content:"󱁃"}.mdi-fruit-citrus-off:before{content:"󱏹"}.mdi-fruit-grapes:before{content:"󱁄"}.mdi-fruit-grapes-outline:before{content:"󱁅"}.mdi-fruit-pear:before{content:"󱨎"}.mdi-fruit-pineapple:before{content:"󱁆"}.mdi-fruit-watermelon:before{content:"󱁇"}.mdi-fuel:before{content:"󰟊"}.mdi-fuel-cell:before{content:"󱢵"}.mdi-fullscreen:before{content:"󰊓"}.mdi-fullscreen-exit:before{content:"󰊔"}.mdi-function:before{content:"󰊕"}.mdi-function-variant:before{content:"󰡱"}.mdi-furigana-horizontal:before{content:"󱂁"}.mdi-furigana-vertical:before{content:"󱂂"}.mdi-fuse:before{content:"󰲅"}.mdi-fuse-alert:before{content:"󱐭"}.mdi-fuse-blade:before{content:"󰲆"}.mdi-fuse-off:before{content:"󱐬"}.mdi-gamepad:before{content:"󰊖"}.mdi-gamepad-circle:before{content:"󰸳"}.mdi-gamepad-circle-down:before{content:"󰸴"}.mdi-gamepad-circle-left:before{content:"󰸵"}.mdi-gamepad-circle-outline:before{content:"󰸶"}.mdi-gamepad-circle-right:before{content:"󰸷"}.mdi-gamepad-circle-up:before{content:"󰸸"}.mdi-gamepad-down:before{content:"󰸹"}.mdi-gamepad-left:before{content:"󰸺"}.mdi-gamepad-outline:before{content:"󱤙"}.mdi-gamepad-right:before{content:"󰸻"}.mdi-gamepad-round:before{content:"󰸼"}.mdi-gamepad-round-down:before{content:"󰸽"}.mdi-gamepad-round-left:before{content:"󰸾"}.mdi-gamepad-round-outline:before{content:"󰸿"}.mdi-gamepad-round-right:before{content:"󰹀"}.mdi-gamepad-round-up:before{content:"󰹁"}.mdi-gamepad-square:before{content:"󰺵"}.mdi-gamepad-square-outline:before{content:"󰺶"}.mdi-gamepad-up:before{content:"󰹂"}.mdi-gamepad-variant:before{content:"󰊗"}.mdi-gamepad-variant-outline:before{content:"󰺷"}.mdi-gamma:before{content:"󱃮"}.mdi-gantry-crane:before{content:"󰷑"}.mdi-garage:before{content:"󰛙"}.mdi-garage-alert:before{content:"󰡲"}.mdi-garage-alert-variant:before{content:"󱋕"}.mdi-garage-lock:before{content:"󱟻"}.mdi-garage-open:before{content:"󰛚"}.mdi-garage-open-variant:before{content:"󱋔"}.mdi-garage-variant:before{content:"󱋓"}.mdi-garage-variant-lock:before{content:"󱟼"}.mdi-gas-burner:before{content:"󱨛"}.mdi-gas-cylinder:before{content:"󰙇"}.mdi-gas-station:before{content:"󰊘"}.mdi-gas-station-in-use:before{content:"󱳄"}.mdi-gas-station-in-use-outline:before{content:"󱳅"}.mdi-gas-station-off:before{content:"󱐉"}.mdi-gas-station-off-outline:before{content:"󱐊"}.mdi-gas-station-outline:before{content:"󰺸"}.mdi-gate:before{content:"󰊙"}.mdi-gate-alert:before{content:"󱟸"}.mdi-gate-and:before{content:"󰣡"}.mdi-gate-arrow-left:before{content:"󱟷"}.mdi-gate-arrow-right:before{content:"󱅩"}.mdi-gate-buffer:before{content:"󱫾"}.mdi-gate-nand:before{content:"󰣢"}.mdi-gate-nor:before{content:"󰣣"}.mdi-gate-not:before{content:"󰣤"}.mdi-gate-open:before{content:"󱅪"}.mdi-gate-or:before{content:"󰣥"}.mdi-gate-xnor:before{content:"󰣦"}.mdi-gate-xor:before{content:"󰣧"}.mdi-gatsby:before{content:"󰹃"}.mdi-gauge:before{content:"󰊚"}.mdi-gauge-empty:before{content:"󰡳"}.mdi-gauge-full:before{content:"󰡴"}.mdi-gauge-low:before{content:"󰡵"}.mdi-gavel:before{content:"󰊛"}.mdi-gender-female:before{content:"󰊜"}.mdi-gender-male:before{content:"󰊝"}.mdi-gender-male-female:before{content:"󰊞"}.mdi-gender-male-female-variant:before{content:"󱄿"}.mdi-gender-non-binary:before{content:"󱅀"}.mdi-gender-transgender:before{content:"󰊟"}.mdi-generator-mobile:before{content:"󱲊"}.mdi-generator-portable:before{content:"󱲋"}.mdi-generator-stationary:before{content:"󱲌"}.mdi-gentoo:before{content:"󰣨"}.mdi-gesture:before{content:"󰟋"}.mdi-gesture-double-tap:before{content:"󰜼"}.mdi-gesture-pinch:before{content:"󰪽"}.mdi-gesture-spread:before{content:"󰪾"}.mdi-gesture-swipe:before{content:"󰵶"}.mdi-gesture-swipe-down:before{content:"󰜽"}.mdi-gesture-swipe-horizontal:before{content:"󰪿"}.mdi-gesture-swipe-left:before{content:"󰜾"}.mdi-gesture-swipe-right:before{content:"󰜿"}.mdi-gesture-swipe-up:before{content:"󰝀"}.mdi-gesture-swipe-vertical:before{content:"󰫀"}.mdi-gesture-tap:before{content:"󰝁"}.mdi-gesture-tap-box:before{content:"󱊩"}.mdi-gesture-tap-button:before{content:"󱊨"}.mdi-gesture-tap-hold:before{content:"󰵷"}.mdi-gesture-two-double-tap:before{content:"󰝂"}.mdi-gesture-two-tap:before{content:"󰝃"}.mdi-ghost:before{content:"󰊠"}.mdi-ghost-off:before{content:"󰧵"}.mdi-ghost-off-outline:before{content:"󱙜"}.mdi-ghost-outline:before{content:"󱙝"}.mdi-gift:before{content:"󰹄"}.mdi-gift-off:before{content:"󱛯"}.mdi-gift-off-outline:before{content:"󱛰"}.mdi-gift-open:before{content:"󱛱"}.mdi-gift-open-outline:before{content:"󱛲"}.mdi-gift-outline:before{content:"󰊡"}.mdi-git:before{content:"󰊢"}.mdi-github:before{content:"󰊤"}.mdi-gitlab:before{content:"󰮠"}.mdi-glass-cocktail:before{content:"󰍖"}.mdi-glass-cocktail-off:before{content:"󱗦"}.mdi-glass-flute:before{content:"󰊥"}.mdi-glass-fragile:before{content:"󱡳"}.mdi-glass-mug:before{content:"󰊦"}.mdi-glass-mug-off:before{content:"󱗧"}.mdi-glass-mug-variant:before{content:"󱄖"}.mdi-glass-mug-variant-off:before{content:"󱗨"}.mdi-glass-pint-outline:before{content:"󱌍"}.mdi-glass-stange:before{content:"󰊧"}.mdi-glass-tulip:before{content:"󰊨"}.mdi-glass-wine:before{content:"󰡶"}.mdi-glasses:before{content:"󰊪"}.mdi-globe-light:before{content:"󰙯"}.mdi-globe-light-outline:before{content:"󱋗"}.mdi-globe-model:before{content:"󰣩"}.mdi-gmail:before{content:"󰊫"}.mdi-gnome:before{content:"󰊬"}.mdi-go-kart:before{content:"󰵹"}.mdi-go-kart-track:before{content:"󰵺"}.mdi-gog:before{content:"󰮡"}.mdi-gold:before{content:"󱉏"}.mdi-golf:before{content:"󰠣"}.mdi-golf-cart:before{content:"󱆤"}.mdi-golf-tee:before{content:"󱂃"}.mdi-gondola:before{content:"󰚆"}.mdi-goodreads:before{content:"󰵻"}.mdi-google:before{content:"󰊭"}.mdi-google-ads:before{content:"󰲇"}.mdi-google-analytics:before{content:"󰟌"}.mdi-google-assistant:before{content:"󰟍"}.mdi-google-cardboard:before{content:"󰊮"}.mdi-google-chrome:before{content:"󰊯"}.mdi-google-circles:before{content:"󰊰"}.mdi-google-circles-communities:before{content:"󰊱"}.mdi-google-circles-extended:before{content:"󰊲"}.mdi-google-circles-group:before{content:"󰊳"}.mdi-google-classroom:before{content:"󰋀"}.mdi-google-cloud:before{content:"󱇶"}.mdi-google-downasaur:before{content:"󱍢"}.mdi-google-drive:before{content:"󰊶"}.mdi-google-earth:before{content:"󰊷"}.mdi-google-fit:before{content:"󰥬"}.mdi-google-glass:before{content:"󰊸"}.mdi-google-hangouts:before{content:"󰋉"}.mdi-google-keep:before{content:"󰛜"}.mdi-google-lens:before{content:"󰧶"}.mdi-google-maps:before{content:"󰗵"}.mdi-google-my-business:before{content:"󱁈"}.mdi-google-nearby:before{content:"󰊹"}.mdi-google-play:before{content:"󰊼"}.mdi-google-plus:before{content:"󰊽"}.mdi-google-podcast:before{content:"󰺹"}.mdi-google-spreadsheet:before{content:"󰧷"}.mdi-google-street-view:before{content:"󰲈"}.mdi-google-translate:before{content:"󰊿"}.mdi-gradient-horizontal:before{content:"󱝊"}.mdi-gradient-vertical:before{content:"󰚠"}.mdi-grain:before{content:"󰵼"}.mdi-graph:before{content:"󱁉"}.mdi-graph-outline:before{content:"󱁊"}.mdi-graphql:before{content:"󰡷"}.mdi-grass:before{content:"󱔐"}.mdi-grave-stone:before{content:"󰮢"}.mdi-grease-pencil:before{content:"󰙈"}.mdi-greater-than:before{content:"󰥭"}.mdi-greater-than-or-equal:before{content:"󰥮"}.mdi-greenhouse:before{content:"󰀭"}.mdi-grid:before{content:"󰋁"}.mdi-grid-large:before{content:"󰝘"}.mdi-grid-off:before{content:"󰋂"}.mdi-grill:before{content:"󰹅"}.mdi-grill-outline:before{content:"󱆊"}.mdi-group:before{content:"󰋃"}.mdi-guitar-acoustic:before{content:"󰝱"}.mdi-guitar-electric:before{content:"󰋄"}.mdi-guitar-pick:before{content:"󰋅"}.mdi-guitar-pick-outline:before{content:"󰋆"}.mdi-guy-fawkes-mask:before{content:"󰠥"}.mdi-gymnastics:before{content:"󱩁"}.mdi-hail:before{content:"󰫁"}.mdi-hair-dryer:before{content:"󱃯"}.mdi-hair-dryer-outline:before{content:"󱃰"}.mdi-halloween:before{content:"󰮣"}.mdi-hamburger:before{content:"󰚅"}.mdi-hamburger-check:before{content:"󱝶"}.mdi-hamburger-minus:before{content:"󱝷"}.mdi-hamburger-off:before{content:"󱝸"}.mdi-hamburger-plus:before{content:"󱝹"}.mdi-hamburger-remove:before{content:"󱝺"}.mdi-hammer:before{content:"󰣪"}.mdi-hammer-screwdriver:before{content:"󱌢"}.mdi-hammer-sickle:before{content:"󱢇"}.mdi-hammer-wrench:before{content:"󱌣"}.mdi-hand-back-left:before{content:"󰹆"}.mdi-hand-back-left-off:before{content:"󱠰"}.mdi-hand-back-left-off-outline:before{content:"󱠲"}.mdi-hand-back-left-outline:before{content:"󱠬"}.mdi-hand-back-right:before{content:"󰹇"}.mdi-hand-back-right-off:before{content:"󱠱"}.mdi-hand-back-right-off-outline:before{content:"󱠳"}.mdi-hand-back-right-outline:before{content:"󱠭"}.mdi-hand-clap:before{content:"󱥋"}.mdi-hand-clap-off:before{content:"󱩂"}.mdi-hand-coin:before{content:"󱢏"}.mdi-hand-coin-outline:before{content:"󱢐"}.mdi-hand-cycle:before{content:"󱮜"}.mdi-hand-extended:before{content:"󱢶"}.mdi-hand-extended-outline:before{content:"󱢷"}.mdi-hand-front-left:before{content:"󱠫"}.mdi-hand-front-left-outline:before{content:"󱠮"}.mdi-hand-front-right:before{content:"󰩏"}.mdi-hand-front-right-outline:before{content:"󱠯"}.mdi-hand-heart:before{content:"󱃱"}.mdi-hand-heart-outline:before{content:"󱕾"}.mdi-hand-okay:before{content:"󰩐"}.mdi-hand-peace:before{content:"󰩑"}.mdi-hand-peace-variant:before{content:"󰩒"}.mdi-hand-pointing-down:before{content:"󰩓"}.mdi-hand-pointing-left:before{content:"󰩔"}.mdi-hand-pointing-right:before{content:"󰋇"}.mdi-hand-pointing-up:before{content:"󰩕"}.mdi-hand-saw:before{content:"󰹈"}.mdi-hand-wash:before{content:"󱕿"}.mdi-hand-wash-outline:before{content:"󱖀"}.mdi-hand-water:before{content:"󱎟"}.mdi-hand-wave:before{content:"󱠡"}.mdi-hand-wave-outline:before{content:"󱠢"}.mdi-handball:before{content:"󰽓"}.mdi-handcuffs:before{content:"󱄾"}.mdi-hands-pray:before{content:"󰕹"}.mdi-handshake:before{content:"󱈘"}.mdi-handshake-outline:before{content:"󱖡"}.mdi-hanger:before{content:"󰋈"}.mdi-hard-hat:before{content:"󰥯"}.mdi-harddisk:before{content:"󰋊"}.mdi-harddisk-plus:before{content:"󱁋"}.mdi-harddisk-remove:before{content:"󱁌"}.mdi-hat-fedora:before{content:"󰮤"}.mdi-hazard-lights:before{content:"󰲉"}.mdi-hdmi-port:before{content:"󱮸"}.mdi-hdr:before{content:"󰵽"}.mdi-hdr-off:before{content:"󰵾"}.mdi-head:before{content:"󱍞"}.mdi-head-alert:before{content:"󱌸"}.mdi-head-alert-outline:before{content:"󱌹"}.mdi-head-check:before{content:"󱌺"}.mdi-head-check-outline:before{content:"󱌻"}.mdi-head-cog:before{content:"󱌼"}.mdi-head-cog-outline:before{content:"󱌽"}.mdi-head-dots-horizontal:before{content:"󱌾"}.mdi-head-dots-horizontal-outline:before{content:"󱌿"}.mdi-head-flash:before{content:"󱍀"}.mdi-head-flash-outline:before{content:"󱍁"}.mdi-head-heart:before{content:"󱍂"}.mdi-head-heart-outline:before{content:"󱍃"}.mdi-head-lightbulb:before{content:"󱍄"}.mdi-head-lightbulb-outline:before{content:"󱍅"}.mdi-head-minus:before{content:"󱍆"}.mdi-head-minus-outline:before{content:"󱍇"}.mdi-head-outline:before{content:"󱍟"}.mdi-head-plus:before{content:"󱍈"}.mdi-head-plus-outline:before{content:"󱍉"}.mdi-head-question:before{content:"󱍊"}.mdi-head-question-outline:before{content:"󱍋"}.mdi-head-remove:before{content:"󱍌"}.mdi-head-remove-outline:before{content:"󱍍"}.mdi-head-snowflake:before{content:"󱍎"}.mdi-head-snowflake-outline:before{content:"󱍏"}.mdi-head-sync:before{content:"󱍐"}.mdi-head-sync-outline:before{content:"󱍑"}.mdi-headphones:before{content:"󰋋"}.mdi-headphones-bluetooth:before{content:"󰥰"}.mdi-headphones-box:before{content:"󰋌"}.mdi-headphones-off:before{content:"󰟎"}.mdi-headphones-settings:before{content:"󰋍"}.mdi-headset:before{content:"󰋎"}.mdi-headset-dock:before{content:"󰋏"}.mdi-headset-off:before{content:"󰋐"}.mdi-heart:before{content:"󰋑"}.mdi-heart-box:before{content:"󰋒"}.mdi-heart-box-outline:before{content:"󰋓"}.mdi-heart-broken:before{content:"󰋔"}.mdi-heart-broken-outline:before{content:"󰴔"}.mdi-heart-circle:before{content:"󰥱"}.mdi-heart-circle-outline:before{content:"󰥲"}.mdi-heart-cog:before{content:"󱙣"}.mdi-heart-cog-outline:before{content:"󱙤"}.mdi-heart-flash:before{content:"󰻹"}.mdi-heart-half:before{content:"󰛟"}.mdi-heart-half-full:before{content:"󰛞"}.mdi-heart-half-outline:before{content:"󰛠"}.mdi-heart-minus:before{content:"󱐯"}.mdi-heart-minus-outline:before{content:"󱐲"}.mdi-heart-multiple:before{content:"󰩖"}.mdi-heart-multiple-outline:before{content:"󰩗"}.mdi-heart-off:before{content:"󰝙"}.mdi-heart-off-outline:before{content:"󱐴"}.mdi-heart-outline:before{content:"󰋕"}.mdi-heart-plus:before{content:"󱐮"}.mdi-heart-plus-outline:before{content:"󱐱"}.mdi-heart-pulse:before{content:"󰗶"}.mdi-heart-remove:before{content:"󱐰"}.mdi-heart-remove-outline:before{content:"󱐳"}.mdi-heart-search:before{content:"󱲍"}.mdi-heart-settings:before{content:"󱙥"}.mdi-heart-settings-outline:before{content:"󱙦"}.mdi-heat-pump:before{content:"󱩃"}.mdi-heat-pump-outline:before{content:"󱩄"}.mdi-heat-wave:before{content:"󱩅"}.mdi-heating-coil:before{content:"󱪯"}.mdi-helicopter:before{content:"󰫂"}.mdi-help:before{content:"󰋖"}.mdi-help-box:before{content:"󰞋"}.mdi-help-box-multiple:before{content:"󱰊"}.mdi-help-box-multiple-outline:before{content:"󱰋"}.mdi-help-box-outline:before{content:"󱰌"}.mdi-help-circle:before{content:"󰋗"}.mdi-help-circle-outline:before{content:"󰘥"}.mdi-help-network:before{content:"󰛵"}.mdi-help-network-outline:before{content:"󰲊"}.mdi-help-rhombus:before{content:"󰮥"}.mdi-help-rhombus-outline:before{content:"󰮦"}.mdi-hexadecimal:before{content:"󱊧"}.mdi-hexagon:before{content:"󰋘"}.mdi-hexagon-multiple:before{content:"󰛡"}.mdi-hexagon-multiple-outline:before{content:"󱃲"}.mdi-hexagon-outline:before{content:"󰋙"}.mdi-hexagon-slice-1:before{content:"󰫃"}.mdi-hexagon-slice-2:before{content:"󰫄"}.mdi-hexagon-slice-3:before{content:"󰫅"}.mdi-hexagon-slice-4:before{content:"󰫆"}.mdi-hexagon-slice-5:before{content:"󰫇"}.mdi-hexagon-slice-6:before{content:"󰫈"}.mdi-hexagram:before{content:"󰫉"}.mdi-hexagram-outline:before{content:"󰫊"}.mdi-high-definition:before{content:"󰟏"}.mdi-high-definition-box:before{content:"󰡸"}.mdi-highway:before{content:"󰗷"}.mdi-hiking:before{content:"󰵿"}.mdi-history:before{content:"󰋚"}.mdi-hockey-puck:before{content:"󰡹"}.mdi-hockey-sticks:before{content:"󰡺"}.mdi-hololens:before{content:"󰋛"}.mdi-home:before{content:"󰋜"}.mdi-home-account:before{content:"󰠦"}.mdi-home-alert:before{content:"󰡻"}.mdi-home-alert-outline:before{content:"󱗐"}.mdi-home-analytics:before{content:"󰺺"}.mdi-home-assistant:before{content:"󰟐"}.mdi-home-automation:before{content:"󰟑"}.mdi-home-battery:before{content:"󱤁"}.mdi-home-battery-outline:before{content:"󱤂"}.mdi-home-circle:before{content:"󰟒"}.mdi-home-circle-outline:before{content:"󱁍"}.mdi-home-city:before{content:"󰴕"}.mdi-home-city-outline:before{content:"󰴖"}.mdi-home-clock:before{content:"󱨒"}.mdi-home-clock-outline:before{content:"󱨓"}.mdi-home-edit:before{content:"󱅙"}.mdi-home-edit-outline:before{content:"󱅚"}.mdi-home-export-outline:before{content:"󰾛"}.mdi-home-flood:before{content:"󰻺"}.mdi-home-floor-0:before{content:"󰷒"}.mdi-home-floor-1:before{content:"󰶀"}.mdi-home-floor-2:before{content:"󰶁"}.mdi-home-floor-3:before{content:"󰶂"}.mdi-home-floor-a:before{content:"󰶃"}.mdi-home-floor-b:before{content:"󰶄"}.mdi-home-floor-g:before{content:"󰶅"}.mdi-home-floor-l:before{content:"󰶆"}.mdi-home-floor-negative-1:before{content:"󰷓"}.mdi-home-group:before{content:"󰷔"}.mdi-home-group-minus:before{content:"󱧁"}.mdi-home-group-plus:before{content:"󱧀"}.mdi-home-group-remove:before{content:"󱧂"}.mdi-home-heart:before{content:"󰠧"}.mdi-home-import-outline:before{content:"󰾜"}.mdi-home-lightbulb:before{content:"󱉑"}.mdi-home-lightbulb-outline:before{content:"󱉒"}.mdi-home-lightning-bolt:before{content:"󱤃"}.mdi-home-lightning-bolt-outline:before{content:"󱤄"}.mdi-home-lock:before{content:"󰣫"}.mdi-home-lock-open:before{content:"󰣬"}.mdi-home-map-marker:before{content:"󰗸"}.mdi-home-minus:before{content:"󰥴"}.mdi-home-minus-outline:before{content:"󱏕"}.mdi-home-modern:before{content:"󰋝"}.mdi-home-off:before{content:"󱩆"}.mdi-home-off-outline:before{content:"󱩇"}.mdi-home-outline:before{content:"󰚡"}.mdi-home-percent:before{content:"󱱼"}.mdi-home-percent-outline:before{content:"󱱽"}.mdi-home-plus:before{content:"󰥵"}.mdi-home-plus-outline:before{content:"󱏖"}.mdi-home-remove:before{content:"󱉇"}.mdi-home-remove-outline:before{content:"󱏗"}.mdi-home-roof:before{content:"󱄫"}.mdi-home-search:before{content:"󱎰"}.mdi-home-search-outline:before{content:"󱎱"}.mdi-home-silo:before{content:"󱮠"}.mdi-home-silo-outline:before{content:"󱮡"}.mdi-home-sound-in:before{content:"󱰯"}.mdi-home-sound-in-outline:before{content:"󱰰"}.mdi-home-sound-out:before{content:"󱰱"}.mdi-home-sound-out-outline:before{content:"󱰲"}.mdi-home-switch:before{content:"󱞔"}.mdi-home-switch-outline:before{content:"󱞕"}.mdi-home-thermometer:before{content:"󰽔"}.mdi-home-thermometer-outline:before{content:"󰽕"}.mdi-home-variant:before{content:"󰋞"}.mdi-home-variant-outline:before{content:"󰮧"}.mdi-hook:before{content:"󰛢"}.mdi-hook-off:before{content:"󰛣"}.mdi-hoop-house:before{content:"󰹖"}.mdi-hops:before{content:"󰋟"}.mdi-horizontal-rotate-clockwise:before{content:"󱃳"}.mdi-horizontal-rotate-counterclockwise:before{content:"󱃴"}.mdi-horse:before{content:"󱖿"}.mdi-horse-human:before{content:"󱗀"}.mdi-horse-variant:before{content:"󱗁"}.mdi-horse-variant-fast:before{content:"󱡮"}.mdi-horseshoe:before{content:"󰩘"}.mdi-hospital:before{content:"󰿶"}.mdi-hospital-box:before{content:"󰋠"}.mdi-hospital-box-outline:before{content:"󰿷"}.mdi-hospital-building:before{content:"󰋡"}.mdi-hospital-marker:before{content:"󰋢"}.mdi-hot-tub:before{content:"󰠨"}.mdi-hours-12:before{content:"󱲔"}.mdi-hours-24:before{content:"󱑸"}.mdi-hub:before{content:"󱲕"}.mdi-hub-outline:before{content:"󱲖"}.mdi-hubspot:before{content:"󰴗"}.mdi-hulu:before{content:"󰠩"}.mdi-human:before{content:"󰋦"}.mdi-human-baby-changing-table:before{content:"󱎋"}.mdi-human-cane:before{content:"󱖁"}.mdi-human-capacity-decrease:before{content:"󱖛"}.mdi-human-capacity-increase:before{content:"󱖜"}.mdi-human-child:before{content:"󰋧"}.mdi-human-dolly:before{content:"󱦀"}.mdi-human-edit:before{content:"󱓨"}.mdi-human-female:before{content:"󰙉"}.mdi-human-female-boy:before{content:"󰩙"}.mdi-human-female-dance:before{content:"󱗉"}.mdi-human-female-female:before{content:"󰩚"}.mdi-human-female-female-child:before{content:"󱲎"}.mdi-human-female-girl:before{content:"󰩛"}.mdi-human-greeting:before{content:"󱟄"}.mdi-human-greeting-proximity:before{content:"󱖝"}.mdi-human-greeting-variant:before{content:"󰙊"}.mdi-human-handsdown:before{content:"󰙋"}.mdi-human-handsup:before{content:"󰙌"}.mdi-human-male:before{content:"󰙍"}.mdi-human-male-board:before{content:"󰢐"}.mdi-human-male-board-poll:before{content:"󰡆"}.mdi-human-male-boy:before{content:"󰩜"}.mdi-human-male-child:before{content:"󱎌"}.mdi-human-male-female:before{content:"󰋨"}.mdi-human-male-female-child:before{content:"󱠣"}.mdi-human-male-girl:before{content:"󰩝"}.mdi-human-male-height:before{content:"󰻻"}.mdi-human-male-height-variant:before{content:"󰻼"}.mdi-human-male-male:before{content:"󰩞"}.mdi-human-male-male-child:before{content:"󱲏"}.mdi-human-non-binary:before{content:"󱡈"}.mdi-human-pregnant:before{content:"󰗏"}.mdi-human-queue:before{content:"󱕱"}.mdi-human-scooter:before{content:"󱇩"}.mdi-human-walker:before{content:"󱭱"}.mdi-human-wheelchair:before{content:"󱎍"}.mdi-human-white-cane:before{content:"󱦁"}.mdi-humble-bundle:before{content:"󰝄"}.mdi-hvac:before{content:"󱍒"}.mdi-hvac-off:before{content:"󱖞"}.mdi-hydraulic-oil-level:before{content:"󱌤"}.mdi-hydraulic-oil-temperature:before{content:"󱌥"}.mdi-hydro-power:before{content:"󱋥"}.mdi-hydrogen-station:before{content:"󱢔"}.mdi-ice-cream:before{content:"󰠪"}.mdi-ice-cream-off:before{content:"󰹒"}.mdi-ice-pop:before{content:"󰻽"}.mdi-id-card:before{content:"󰿀"}.mdi-identifier:before{content:"󰻾"}.mdi-ideogram-cjk:before{content:"󱌱"}.mdi-ideogram-cjk-variant:before{content:"󱌲"}.mdi-image:before{content:"󰋩"}.mdi-image-album:before{content:"󰋪"}.mdi-image-area:before{content:"󰋫"}.mdi-image-area-close:before{content:"󰋬"}.mdi-image-auto-adjust:before{content:"󰿁"}.mdi-image-broken:before{content:"󰋭"}.mdi-image-broken-variant:before{content:"󰋮"}.mdi-image-check:before{content:"󱬥"}.mdi-image-check-outline:before{content:"󱬦"}.mdi-image-edit:before{content:"󱇣"}.mdi-image-edit-outline:before{content:"󱇤"}.mdi-image-filter-black-white:before{content:"󰋰"}.mdi-image-filter-center-focus:before{content:"󰋱"}.mdi-image-filter-center-focus-strong:before{content:"󰻿"}.mdi-image-filter-center-focus-strong-outline:before{content:"󰼀"}.mdi-image-filter-center-focus-weak:before{content:"󰋲"}.mdi-image-filter-drama:before{content:"󰋳"}.mdi-image-filter-drama-outline:before{content:"󱯿"}.mdi-image-filter-frames:before{content:"󰋴"}.mdi-image-filter-hdr:before{content:"󰋵"}.mdi-image-filter-hdr-outline:before{content:"󱱤"}.mdi-image-filter-none:before{content:"󰋶"}.mdi-image-filter-tilt-shift:before{content:"󰋷"}.mdi-image-filter-vintage:before{content:"󰋸"}.mdi-image-frame:before{content:"󰹉"}.mdi-image-lock:before{content:"󱪰"}.mdi-image-lock-outline:before{content:"󱪱"}.mdi-image-marker:before{content:"󱝻"}.mdi-image-marker-outline:before{content:"󱝼"}.mdi-image-minus:before{content:"󱐙"}.mdi-image-minus-outline:before{content:"󱭇"}.mdi-image-move:before{content:"󰧸"}.mdi-image-multiple:before{content:"󰋹"}.mdi-image-multiple-outline:before{content:"󰋯"}.mdi-image-off:before{content:"󰠫"}.mdi-image-off-outline:before{content:"󱇑"}.mdi-image-outline:before{content:"󰥶"}.mdi-image-plus:before{content:"󰡼"}.mdi-image-plus-outline:before{content:"󱭆"}.mdi-image-refresh:before{content:"󱧾"}.mdi-image-refresh-outline:before{content:"󱧿"}.mdi-image-remove:before{content:"󱐘"}.mdi-image-remove-outline:before{content:"󱭈"}.mdi-image-search:before{content:"󰥷"}.mdi-image-search-outline:before{content:"󰥸"}.mdi-image-size-select-actual:before{content:"󰲍"}.mdi-image-size-select-large:before{content:"󰲎"}.mdi-image-size-select-small:before{content:"󰲏"}.mdi-image-sync:before{content:"󱨀"}.mdi-image-sync-outline:before{content:"󱨁"}.mdi-image-text:before{content:"󱘍"}.mdi-import:before{content:"󰋺"}.mdi-inbox:before{content:"󰚇"}.mdi-inbox-arrow-down:before{content:"󰋻"}.mdi-inbox-arrow-down-outline:before{content:"󱉰"}.mdi-inbox-arrow-up:before{content:"󰏑"}.mdi-inbox-arrow-up-outline:before{content:"󱉱"}.mdi-inbox-full:before{content:"󱉲"}.mdi-inbox-full-outline:before{content:"󱉳"}.mdi-inbox-multiple:before{content:"󰢰"}.mdi-inbox-multiple-outline:before{content:"󰮨"}.mdi-inbox-outline:before{content:"󱉴"}.mdi-inbox-remove:before{content:"󱖟"}.mdi-inbox-remove-outline:before{content:"󱖠"}.mdi-incognito:before{content:"󰗹"}.mdi-incognito-circle:before{content:"󱐡"}.mdi-incognito-circle-off:before{content:"󱐢"}.mdi-incognito-off:before{content:"󰁵"}.mdi-induction:before{content:"󱡌"}.mdi-infinity:before{content:"󰛤"}.mdi-information:before{content:"󰋼"}.mdi-information-box:before{content:"󱱥"}.mdi-information-box-outline:before{content:"󱱦"}.mdi-information-off:before{content:"󱞌"}.mdi-information-off-outline:before{content:"󱞍"}.mdi-information-outline:before{content:"󰋽"}.mdi-information-slab-box:before{content:"󱱧"}.mdi-information-slab-box-outline:before{content:"󱱨"}.mdi-information-slab-circle:before{content:"󱱩"}.mdi-information-slab-circle-outline:before{content:"󱱪"}.mdi-information-slab-symbol:before{content:"󱱫"}.mdi-information-symbol:before{content:"󱱬"}.mdi-information-variant:before{content:"󰙎"}.mdi-information-variant-box:before{content:"󱱭"}.mdi-information-variant-box-outline:before{content:"󱱮"}.mdi-information-variant-circle:before{content:"󱱯"}.mdi-information-variant-circle-outline:before{content:"󱱰"}.mdi-instagram:before{content:"󰋾"}.mdi-instrument-triangle:before{content:"󱁎"}.mdi-integrated-circuit-chip:before{content:"󱤓"}.mdi-invert-colors:before{content:"󰌁"}.mdi-invert-colors-off:before{content:"󰹊"}.mdi-iobroker:before{content:"󱋨"}.mdi-ip:before{content:"󰩟"}.mdi-ip-network:before{content:"󰩠"}.mdi-ip-network-outline:before{content:"󰲐"}.mdi-ip-outline:before{content:"󱦂"}.mdi-ipod:before{content:"󰲑"}.mdi-iron:before{content:"󱠤"}.mdi-iron-board:before{content:"󱠸"}.mdi-iron-outline:before{content:"󱠥"}.mdi-island:before{content:"󱁏"}.mdi-island-variant:before{content:"󱳆"}.mdi-iv-bag:before{content:"󱂹"}.mdi-jabber:before{content:"󰷕"}.mdi-jeepney:before{content:"󰌂"}.mdi-jellyfish:before{content:"󰼁"}.mdi-jellyfish-outline:before{content:"󰼂"}.mdi-jira:before{content:"󰌃"}.mdi-jquery:before{content:"󰡽"}.mdi-jsfiddle:before{content:"󰌄"}.mdi-jump-rope:before{content:"󱋿"}.mdi-kabaddi:before{content:"󰶇"}.mdi-kangaroo:before{content:"󱕘"}.mdi-karate:before{content:"󰠬"}.mdi-kayaking:before{content:"󰢯"}.mdi-keg:before{content:"󰌅"}.mdi-kettle:before{content:"󰗺"}.mdi-kettle-alert:before{content:"󱌗"}.mdi-kettle-alert-outline:before{content:"󱌘"}.mdi-kettle-off:before{content:"󱌛"}.mdi-kettle-off-outline:before{content:"󱌜"}.mdi-kettle-outline:before{content:"󰽖"}.mdi-kettle-pour-over:before{content:"󱜼"}.mdi-kettle-steam:before{content:"󱌙"}.mdi-kettle-steam-outline:before{content:"󱌚"}.mdi-kettlebell:before{content:"󱌀"}.mdi-key:before{content:"󰌆"}.mdi-key-alert:before{content:"󱦃"}.mdi-key-alert-outline:before{content:"󱦄"}.mdi-key-arrow-right:before{content:"󱌒"}.mdi-key-chain:before{content:"󱕴"}.mdi-key-chain-variant:before{content:"󱕵"}.mdi-key-change:before{content:"󰌇"}.mdi-key-link:before{content:"󱆟"}.mdi-key-minus:before{content:"󰌈"}.mdi-key-outline:before{content:"󰷖"}.mdi-key-plus:before{content:"󰌉"}.mdi-key-remove:before{content:"󰌊"}.mdi-key-star:before{content:"󱆞"}.mdi-key-variant:before{content:"󰌋"}.mdi-key-wireless:before{content:"󰿂"}.mdi-keyboard:before{content:"󰌌"}.mdi-keyboard-backspace:before{content:"󰌍"}.mdi-keyboard-caps:before{content:"󰌎"}.mdi-keyboard-close:before{content:"󰌏"}.mdi-keyboard-close-outline:before{content:"󱰀"}.mdi-keyboard-esc:before{content:"󱊷"}.mdi-keyboard-f1:before{content:"󱊫"}.mdi-keyboard-f10:before{content:"󱊴"}.mdi-keyboard-f11:before{content:"󱊵"}.mdi-keyboard-f12:before{content:"󱊶"}.mdi-keyboard-f2:before{content:"󱊬"}.mdi-keyboard-f3:before{content:"󱊭"}.mdi-keyboard-f4:before{content:"󱊮"}.mdi-keyboard-f5:before{content:"󱊯"}.mdi-keyboard-f6:before{content:"󱊰"}.mdi-keyboard-f7:before{content:"󱊱"}.mdi-keyboard-f8:before{content:"󱊲"}.mdi-keyboard-f9:before{content:"󱊳"}.mdi-keyboard-off:before{content:"󰌐"}.mdi-keyboard-off-outline:before{content:"󰹋"}.mdi-keyboard-outline:before{content:"󰥻"}.mdi-keyboard-return:before{content:"󰌑"}.mdi-keyboard-settings:before{content:"󰧹"}.mdi-keyboard-settings-outline:before{content:"󰧺"}.mdi-keyboard-space:before{content:"󱁐"}.mdi-keyboard-tab:before{content:"󰌒"}.mdi-keyboard-tab-reverse:before{content:"󰌥"}.mdi-keyboard-variant:before{content:"󰌓"}.mdi-khanda:before{content:"󱃽"}.mdi-kickstarter:before{content:"󰝅"}.mdi-kite:before{content:"󱦅"}.mdi-kite-outline:before{content:"󱦆"}.mdi-kitesurfing:before{content:"󱝄"}.mdi-klingon:before{content:"󱍛"}.mdi-knife:before{content:"󰧻"}.mdi-knife-military:before{content:"󰧼"}.mdi-knob:before{content:"󱮖"}.mdi-koala:before{content:"󱜿"}.mdi-kodi:before{content:"󰌔"}.mdi-kubernetes:before{content:"󱃾"}.mdi-label:before{content:"󰌕"}.mdi-label-multiple:before{content:"󱍵"}.mdi-label-multiple-outline:before{content:"󱍶"}.mdi-label-off:before{content:"󰫋"}.mdi-label-off-outline:before{content:"󰫌"}.mdi-label-outline:before{content:"󰌖"}.mdi-label-percent:before{content:"󱋪"}.mdi-label-percent-outline:before{content:"󱋫"}.mdi-label-variant:before{content:"󰫍"}.mdi-label-variant-outline:before{content:"󰫎"}.mdi-ladder:before{content:"󱖢"}.mdi-ladybug:before{content:"󰠭"}.mdi-lambda:before{content:"󰘧"}.mdi-lamp:before{content:"󰚵"}.mdi-lamp-outline:before{content:"󱟐"}.mdi-lamps:before{content:"󱕶"}.mdi-lamps-outline:before{content:"󱟑"}.mdi-lan:before{content:"󰌗"}.mdi-lan-check:before{content:"󱊪"}.mdi-lan-connect:before{content:"󰌘"}.mdi-lan-disconnect:before{content:"󰌙"}.mdi-lan-pending:before{content:"󰌚"}.mdi-land-fields:before{content:"󱪲"}.mdi-land-plots:before{content:"󱪳"}.mdi-land-plots-circle:before{content:"󱪴"}.mdi-land-plots-circle-variant:before{content:"󱪵"}.mdi-land-plots-marker:before{content:"󱱝"}.mdi-land-rows-horizontal:before{content:"󱪶"}.mdi-land-rows-vertical:before{content:"󱪷"}.mdi-landslide:before{content:"󱩈"}.mdi-landslide-outline:before{content:"󱩉"}.mdi-language-c:before{content:"󰙱"}.mdi-language-cpp:before{content:"󰙲"}.mdi-language-csharp:before{content:"󰌛"}.mdi-language-css3:before{content:"󰌜"}.mdi-language-fortran:before{content:"󱈚"}.mdi-language-go:before{content:"󰟓"}.mdi-language-haskell:before{content:"󰲒"}.mdi-language-html5:before{content:"󰌝"}.mdi-language-java:before{content:"󰬷"}.mdi-language-javascript:before{content:"󰌞"}.mdi-language-kotlin:before{content:"󱈙"}.mdi-language-lua:before{content:"󰢱"}.mdi-language-markdown:before{content:"󰍔"}.mdi-language-markdown-outline:before{content:"󰽛"}.mdi-language-php:before{content:"󰌟"}.mdi-language-python:before{content:"󰌠"}.mdi-language-r:before{content:"󰟔"}.mdi-language-ruby:before{content:"󰴭"}.mdi-language-ruby-on-rails:before{content:"󰫏"}.mdi-language-rust:before{content:"󱘗"}.mdi-language-swift:before{content:"󰛥"}.mdi-language-typescript:before{content:"󰛦"}.mdi-language-xaml:before{content:"󰙳"}.mdi-laptop:before{content:"󰌢"}.mdi-laptop-account:before{content:"󱩊"}.mdi-laptop-off:before{content:"󰛧"}.mdi-laravel:before{content:"󰫐"}.mdi-laser-pointer:before{content:"󱒄"}.mdi-lasso:before{content:"󰼃"}.mdi-lastpass:before{content:"󰑆"}.mdi-latitude:before{content:"󰽗"}.mdi-launch:before{content:"󰌧"}.mdi-lava-lamp:before{content:"󰟕"}.mdi-layers:before{content:"󰌨"}.mdi-layers-edit:before{content:"󱢒"}.mdi-layers-minus:before{content:"󰹌"}.mdi-layers-off:before{content:"󰌩"}.mdi-layers-off-outline:before{content:"󰧽"}.mdi-layers-outline:before{content:"󰧾"}.mdi-layers-plus:before{content:"󰹍"}.mdi-layers-remove:before{content:"󰹎"}.mdi-layers-search:before{content:"󱈆"}.mdi-layers-search-outline:before{content:"󱈇"}.mdi-layers-triple:before{content:"󰽘"}.mdi-layers-triple-outline:before{content:"󰽙"}.mdi-lead-pencil:before{content:"󰙏"}.mdi-leaf:before{content:"󰌪"}.mdi-leaf-circle:before{content:"󱤅"}.mdi-leaf-circle-outline:before{content:"󱤆"}.mdi-leaf-maple:before{content:"󰲓"}.mdi-leaf-maple-off:before{content:"󱋚"}.mdi-leaf-off:before{content:"󱋙"}.mdi-leak:before{content:"󰷗"}.mdi-leak-off:before{content:"󰷘"}.mdi-lectern:before{content:"󱫰"}.mdi-led-off:before{content:"󰌫"}.mdi-led-on:before{content:"󰌬"}.mdi-led-outline:before{content:"󰌭"}.mdi-led-strip:before{content:"󰟖"}.mdi-led-strip-variant:before{content:"󱁑"}.mdi-led-strip-variant-off:before{content:"󱩋"}.mdi-led-variant-off:before{content:"󰌮"}.mdi-led-variant-on:before{content:"󰌯"}.mdi-led-variant-outline:before{content:"󰌰"}.mdi-leek:before{content:"󱅽"}.mdi-less-than:before{content:"󰥼"}.mdi-less-than-or-equal:before{content:"󰥽"}.mdi-library:before{content:"󰌱"}.mdi-library-outline:before{content:"󱨢"}.mdi-library-shelves:before{content:"󰮩"}.mdi-license:before{content:"󰿃"}.mdi-lifebuoy:before{content:"󰡾"}.mdi-light-flood-down:before{content:"󱦇"}.mdi-light-flood-up:before{content:"󱦈"}.mdi-light-recessed:before{content:"󱞛"}.mdi-light-switch:before{content:"󰥾"}.mdi-light-switch-off:before{content:"󱨤"}.mdi-lightbulb:before{content:"󰌵"}.mdi-lightbulb-alert:before{content:"󱧡"}.mdi-lightbulb-alert-outline:before{content:"󱧢"}.mdi-lightbulb-auto:before{content:"󱠀"}.mdi-lightbulb-auto-outline:before{content:"󱠁"}.mdi-lightbulb-cfl:before{content:"󱈈"}.mdi-lightbulb-cfl-off:before{content:"󱈉"}.mdi-lightbulb-cfl-spiral:before{content:"󱉵"}.mdi-lightbulb-cfl-spiral-off:before{content:"󱋃"}.mdi-lightbulb-fluorescent-tube:before{content:"󱠄"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"󱠅"}.mdi-lightbulb-group:before{content:"󱉓"}.mdi-lightbulb-group-off:before{content:"󱋍"}.mdi-lightbulb-group-off-outline:before{content:"󱋎"}.mdi-lightbulb-group-outline:before{content:"󱉔"}.mdi-lightbulb-multiple:before{content:"󱉕"}.mdi-lightbulb-multiple-off:before{content:"󱋏"}.mdi-lightbulb-multiple-off-outline:before{content:"󱋐"}.mdi-lightbulb-multiple-outline:before{content:"󱉖"}.mdi-lightbulb-night:before{content:"󱩌"}.mdi-lightbulb-night-outline:before{content:"󱩍"}.mdi-lightbulb-off:before{content:"󰹏"}.mdi-lightbulb-off-outline:before{content:"󰹐"}.mdi-lightbulb-on:before{content:"󰛨"}.mdi-lightbulb-on-10:before{content:"󱩎"}.mdi-lightbulb-on-20:before{content:"󱩏"}.mdi-lightbulb-on-30:before{content:"󱩐"}.mdi-lightbulb-on-40:before{content:"󱩑"}.mdi-lightbulb-on-50:before{content:"󱩒"}.mdi-lightbulb-on-60:before{content:"󱩓"}.mdi-lightbulb-on-70:before{content:"󱩔"}.mdi-lightbulb-on-80:before{content:"󱩕"}.mdi-lightbulb-on-90:before{content:"󱩖"}.mdi-lightbulb-on-outline:before{content:"󰛩"}.mdi-lightbulb-outline:before{content:"󰌶"}.mdi-lightbulb-question:before{content:"󱧣"}.mdi-lightbulb-question-outline:before{content:"󱧤"}.mdi-lightbulb-spot:before{content:"󱟴"}.mdi-lightbulb-spot-off:before{content:"󱟵"}.mdi-lightbulb-variant:before{content:"󱠂"}.mdi-lightbulb-variant-outline:before{content:"󱠃"}.mdi-lighthouse:before{content:"󰧿"}.mdi-lighthouse-on:before{content:"󰨀"}.mdi-lightning-bolt:before{content:"󱐋"}.mdi-lightning-bolt-circle:before{content:"󰠠"}.mdi-lightning-bolt-outline:before{content:"󱐌"}.mdi-line-scan:before{content:"󰘤"}.mdi-lingerie:before{content:"󱑶"}.mdi-link:before{content:"󰌷"}.mdi-link-box:before{content:"󰴚"}.mdi-link-box-outline:before{content:"󰴛"}.mdi-link-box-variant:before{content:"󰴜"}.mdi-link-box-variant-outline:before{content:"󰴝"}.mdi-link-circle:before{content:"󱲬"}.mdi-link-circle-outline:before{content:"󱲭"}.mdi-link-edit:before{content:"󱲮"}.mdi-link-lock:before{content:"󱂺"}.mdi-link-off:before{content:"󰌸"}.mdi-link-plus:before{content:"󰲔"}.mdi-link-variant:before{content:"󰌹"}.mdi-link-variant-minus:before{content:"󱃿"}.mdi-link-variant-off:before{content:"󰌺"}.mdi-link-variant-plus:before{content:"󱄀"}.mdi-link-variant-remove:before{content:"󱄁"}.mdi-linkedin:before{content:"󰌻"}.mdi-linux:before{content:"󰌽"}.mdi-linux-mint:before{content:"󰣭"}.mdi-lipstick:before{content:"󱎵"}.mdi-liquid-spot:before{content:"󱠦"}.mdi-liquor:before{content:"󱤞"}.mdi-list-box:before{content:"󱭻"}.mdi-list-box-outline:before{content:"󱭼"}.mdi-list-status:before{content:"󱖫"}.mdi-litecoin:before{content:"󰩡"}.mdi-loading:before{content:"󰝲"}.mdi-location-enter:before{content:"󰿄"}.mdi-location-exit:before{content:"󰿅"}.mdi-lock:before{content:"󰌾"}.mdi-lock-alert:before{content:"󰣮"}.mdi-lock-alert-outline:before{content:"󱗑"}.mdi-lock-check:before{content:"󱎚"}.mdi-lock-check-outline:before{content:"󱚨"}.mdi-lock-clock:before{content:"󰥿"}.mdi-lock-minus:before{content:"󱚩"}.mdi-lock-minus-outline:before{content:"󱚪"}.mdi-lock-off:before{content:"󱙱"}.mdi-lock-off-outline:before{content:"󱙲"}.mdi-lock-open:before{content:"󰌿"}.mdi-lock-open-alert:before{content:"󱎛"}.mdi-lock-open-alert-outline:before{content:"󱗒"}.mdi-lock-open-check:before{content:"󱎜"}.mdi-lock-open-check-outline:before{content:"󱚫"}.mdi-lock-open-minus:before{content:"󱚬"}.mdi-lock-open-minus-outline:before{content:"󱚭"}.mdi-lock-open-outline:before{content:"󰍀"}.mdi-lock-open-plus:before{content:"󱚮"}.mdi-lock-open-plus-outline:before{content:"󱚯"}.mdi-lock-open-remove:before{content:"󱚰"}.mdi-lock-open-remove-outline:before{content:"󱚱"}.mdi-lock-open-variant:before{content:"󰿆"}.mdi-lock-open-variant-outline:before{content:"󰿇"}.mdi-lock-outline:before{content:"󰍁"}.mdi-lock-pattern:before{content:"󰛪"}.mdi-lock-percent:before{content:"󱰒"}.mdi-lock-percent-open:before{content:"󱰓"}.mdi-lock-percent-open-outline:before{content:"󱰔"}.mdi-lock-percent-open-variant:before{content:"󱰕"}.mdi-lock-percent-open-variant-outline:before{content:"󱰖"}.mdi-lock-percent-outline:before{content:"󱰗"}.mdi-lock-plus:before{content:"󰗻"}.mdi-lock-plus-outline:before{content:"󱚲"}.mdi-lock-question:before{content:"󰣯"}.mdi-lock-remove:before{content:"󱚳"}.mdi-lock-remove-outline:before{content:"󱚴"}.mdi-lock-reset:before{content:"󰝳"}.mdi-lock-smart:before{content:"󰢲"}.mdi-locker:before{content:"󰟗"}.mdi-locker-multiple:before{content:"󰟘"}.mdi-login:before{content:"󰍂"}.mdi-login-variant:before{content:"󰗼"}.mdi-logout:before{content:"󰍃"}.mdi-logout-variant:before{content:"󰗽"}.mdi-longitude:before{content:"󰽚"}.mdi-looks:before{content:"󰍄"}.mdi-lotion:before{content:"󱖂"}.mdi-lotion-outline:before{content:"󱖃"}.mdi-lotion-plus:before{content:"󱖄"}.mdi-lotion-plus-outline:before{content:"󱖅"}.mdi-loupe:before{content:"󰍅"}.mdi-lumx:before{content:"󰍆"}.mdi-lungs:before{content:"󱂄"}.mdi-mace:before{content:"󱡃"}.mdi-magazine-pistol:before{content:"󰌤"}.mdi-magazine-rifle:before{content:"󰌣"}.mdi-magic-staff:before{content:"󱡄"}.mdi-magnet:before{content:"󰍇"}.mdi-magnet-on:before{content:"󰍈"}.mdi-magnify:before{content:"󰍉"}.mdi-magnify-close:before{content:"󰦀"}.mdi-magnify-expand:before{content:"󱡴"}.mdi-magnify-minus:before{content:"󰍊"}.mdi-magnify-minus-cursor:before{content:"󰩢"}.mdi-magnify-minus-outline:before{content:"󰛬"}.mdi-magnify-plus:before{content:"󰍋"}.mdi-magnify-plus-cursor:before{content:"󰩣"}.mdi-magnify-plus-outline:before{content:"󰛭"}.mdi-magnify-remove-cursor:before{content:"󱈌"}.mdi-magnify-remove-outline:before{content:"󱈍"}.mdi-magnify-scan:before{content:"󱉶"}.mdi-mail:before{content:"󰺻"}.mdi-mailbox:before{content:"󰛮"}.mdi-mailbox-open:before{content:"󰶈"}.mdi-mailbox-open-outline:before{content:"󰶉"}.mdi-mailbox-open-up:before{content:"󰶊"}.mdi-mailbox-open-up-outline:before{content:"󰶋"}.mdi-mailbox-outline:before{content:"󰶌"}.mdi-mailbox-up:before{content:"󰶍"}.mdi-mailbox-up-outline:before{content:"󰶎"}.mdi-manjaro:before{content:"󱘊"}.mdi-map:before{content:"󰍍"}.mdi-map-check:before{content:"󰺼"}.mdi-map-check-outline:before{content:"󰺽"}.mdi-map-clock:before{content:"󰴞"}.mdi-map-clock-outline:before{content:"󰴟"}.mdi-map-legend:before{content:"󰨁"}.mdi-map-marker:before{content:"󰍎"}.mdi-map-marker-account:before{content:"󱣣"}.mdi-map-marker-account-outline:before{content:"󱣤"}.mdi-map-marker-alert:before{content:"󰼅"}.mdi-map-marker-alert-outline:before{content:"󰼆"}.mdi-map-marker-check:before{content:"󰲕"}.mdi-map-marker-check-outline:before{content:"󱋻"}.mdi-map-marker-circle:before{content:"󰍏"}.mdi-map-marker-distance:before{content:"󰣰"}.mdi-map-marker-down:before{content:"󱄂"}.mdi-map-marker-left:before{content:"󱋛"}.mdi-map-marker-left-outline:before{content:"󱋝"}.mdi-map-marker-minus:before{content:"󰙐"}.mdi-map-marker-minus-outline:before{content:"󱋹"}.mdi-map-marker-multiple:before{content:"󰍐"}.mdi-map-marker-multiple-outline:before{content:"󱉷"}.mdi-map-marker-off:before{content:"󰍑"}.mdi-map-marker-off-outline:before{content:"󱋽"}.mdi-map-marker-outline:before{content:"󰟙"}.mdi-map-marker-path:before{content:"󰴠"}.mdi-map-marker-plus:before{content:"󰙑"}.mdi-map-marker-plus-outline:before{content:"󱋸"}.mdi-map-marker-question:before{content:"󰼇"}.mdi-map-marker-question-outline:before{content:"󰼈"}.mdi-map-marker-radius:before{content:"󰍒"}.mdi-map-marker-radius-outline:before{content:"󱋼"}.mdi-map-marker-remove:before{content:"󰼉"}.mdi-map-marker-remove-outline:before{content:"󱋺"}.mdi-map-marker-remove-variant:before{content:"󰼊"}.mdi-map-marker-right:before{content:"󱋜"}.mdi-map-marker-right-outline:before{content:"󱋞"}.mdi-map-marker-star:before{content:"󱘈"}.mdi-map-marker-star-outline:before{content:"󱘉"}.mdi-map-marker-up:before{content:"󱄃"}.mdi-map-minus:before{content:"󰦁"}.mdi-map-outline:before{content:"󰦂"}.mdi-map-plus:before{content:"󰦃"}.mdi-map-search:before{content:"󰦄"}.mdi-map-search-outline:before{content:"󰦅"}.mdi-mapbox:before{content:"󰮪"}.mdi-margin:before{content:"󰍓"}.mdi-marker:before{content:"󰙒"}.mdi-marker-cancel:before{content:"󰷙"}.mdi-marker-check:before{content:"󰍕"}.mdi-mastodon:before{content:"󰫑"}.mdi-material-design:before{content:"󰦆"}.mdi-material-ui:before{content:"󰍗"}.mdi-math-compass:before{content:"󰍘"}.mdi-math-cos:before{content:"󰲖"}.mdi-math-integral:before{content:"󰿈"}.mdi-math-integral-box:before{content:"󰿉"}.mdi-math-log:before{content:"󱂅"}.mdi-math-norm:before{content:"󰿊"}.mdi-math-norm-box:before{content:"󰿋"}.mdi-math-sin:before{content:"󰲗"}.mdi-math-tan:before{content:"󰲘"}.mdi-matrix:before{content:"󰘨"}.mdi-medal:before{content:"󰦇"}.mdi-medal-outline:before{content:"󱌦"}.mdi-medical-bag:before{content:"󰛯"}.mdi-medical-cotton-swab:before{content:"󱪸"}.mdi-medication:before{content:"󱬔"}.mdi-medication-outline:before{content:"󱬕"}.mdi-meditation:before{content:"󱅻"}.mdi-memory:before{content:"󰍛"}.mdi-memory-arrow-down:before{content:"󱲦"}.mdi-menorah:before{content:"󱟔"}.mdi-menorah-fire:before{content:"󱟕"}.mdi-menu:before{content:"󰍜"}.mdi-menu-close:before{content:"󱲐"}.mdi-menu-down:before{content:"󰍝"}.mdi-menu-down-outline:before{content:"󰚶"}.mdi-menu-left:before{content:"󰍞"}.mdi-menu-left-outline:before{content:"󰨂"}.mdi-menu-open:before{content:"󰮫"}.mdi-menu-right:before{content:"󰍟"}.mdi-menu-right-outline:before{content:"󰨃"}.mdi-menu-swap:before{content:"󰩤"}.mdi-menu-swap-outline:before{content:"󰩥"}.mdi-menu-up:before{content:"󰍠"}.mdi-menu-up-outline:before{content:"󰚷"}.mdi-merge:before{content:"󰽜"}.mdi-message:before{content:"󰍡"}.mdi-message-alert:before{content:"󰍢"}.mdi-message-alert-outline:before{content:"󰨄"}.mdi-message-arrow-left:before{content:"󱋲"}.mdi-message-arrow-left-outline:before{content:"󱋳"}.mdi-message-arrow-right:before{content:"󱋴"}.mdi-message-arrow-right-outline:before{content:"󱋵"}.mdi-message-badge:before{content:"󱥁"}.mdi-message-badge-outline:before{content:"󱥂"}.mdi-message-bookmark:before{content:"󱖬"}.mdi-message-bookmark-outline:before{content:"󱖭"}.mdi-message-bulleted:before{content:"󰚢"}.mdi-message-bulleted-off:before{content:"󰚣"}.mdi-message-check:before{content:"󱮊"}.mdi-message-check-outline:before{content:"󱮋"}.mdi-message-cog:before{content:"󰛱"}.mdi-message-cog-outline:before{content:"󱅲"}.mdi-message-draw:before{content:"󰍣"}.mdi-message-fast:before{content:"󱧌"}.mdi-message-fast-outline:before{content:"󱧍"}.mdi-message-flash:before{content:"󱖩"}.mdi-message-flash-outline:before{content:"󱖪"}.mdi-message-image:before{content:"󰍤"}.mdi-message-image-outline:before{content:"󱅬"}.mdi-message-lock:before{content:"󰿌"}.mdi-message-lock-outline:before{content:"󱅭"}.mdi-message-minus:before{content:"󱅮"}.mdi-message-minus-outline:before{content:"󱅯"}.mdi-message-off:before{content:"󱙍"}.mdi-message-off-outline:before{content:"󱙎"}.mdi-message-outline:before{content:"󰍥"}.mdi-message-plus:before{content:"󰙓"}.mdi-message-plus-outline:before{content:"󱂻"}.mdi-message-processing:before{content:"󰍦"}.mdi-message-processing-outline:before{content:"󱅰"}.mdi-message-question:before{content:"󱜺"}.mdi-message-question-outline:before{content:"󱜻"}.mdi-message-reply:before{content:"󰍧"}.mdi-message-reply-outline:before{content:"󱜽"}.mdi-message-reply-text:before{content:"󰍨"}.mdi-message-reply-text-outline:before{content:"󱜾"}.mdi-message-settings:before{content:"󰛰"}.mdi-message-settings-outline:before{content:"󱅱"}.mdi-message-star:before{content:"󰚚"}.mdi-message-star-outline:before{content:"󱉐"}.mdi-message-text:before{content:"󰍩"}.mdi-message-text-clock:before{content:"󱅳"}.mdi-message-text-clock-outline:before{content:"󱅴"}.mdi-message-text-fast:before{content:"󱧎"}.mdi-message-text-fast-outline:before{content:"󱧏"}.mdi-message-text-lock:before{content:"󰿍"}.mdi-message-text-lock-outline:before{content:"󱅵"}.mdi-message-text-outline:before{content:"󰍪"}.mdi-message-video:before{content:"󰍫"}.mdi-meteor:before{content:"󰘩"}.mdi-meter-electric:before{content:"󱩗"}.mdi-meter-electric-outline:before{content:"󱩘"}.mdi-meter-gas:before{content:"󱩙"}.mdi-meter-gas-outline:before{content:"󱩚"}.mdi-metronome:before{content:"󰟚"}.mdi-metronome-tick:before{content:"󰟛"}.mdi-micro-sd:before{content:"󰟜"}.mdi-microphone:before{content:"󰍬"}.mdi-microphone-message:before{content:"󰔊"}.mdi-microphone-message-off:before{content:"󰔋"}.mdi-microphone-minus:before{content:"󰢳"}.mdi-microphone-off:before{content:"󰍭"}.mdi-microphone-outline:before{content:"󰍮"}.mdi-microphone-plus:before{content:"󰢴"}.mdi-microphone-question:before{content:"󱦉"}.mdi-microphone-question-outline:before{content:"󱦊"}.mdi-microphone-settings:before{content:"󰍯"}.mdi-microphone-variant:before{content:"󰍰"}.mdi-microphone-variant-off:before{content:"󰍱"}.mdi-microscope:before{content:"󰙔"}.mdi-microsoft:before{content:"󰍲"}.mdi-microsoft-access:before{content:"󱎎"}.mdi-microsoft-azure:before{content:"󰠅"}.mdi-microsoft-azure-devops:before{content:"󰿕"}.mdi-microsoft-bing:before{content:"󰂤"}.mdi-microsoft-dynamics-365:before{content:"󰦈"}.mdi-microsoft-edge:before{content:"󰇩"}.mdi-microsoft-excel:before{content:"󱎏"}.mdi-microsoft-internet-explorer:before{content:"󰌀"}.mdi-microsoft-office:before{content:"󰏆"}.mdi-microsoft-onedrive:before{content:"󰏊"}.mdi-microsoft-onenote:before{content:"󰝇"}.mdi-microsoft-outlook:before{content:"󰴢"}.mdi-microsoft-powerpoint:before{content:"󱎐"}.mdi-microsoft-sharepoint:before{content:"󱎑"}.mdi-microsoft-teams:before{content:"󰊻"}.mdi-microsoft-visual-studio:before{content:"󰘐"}.mdi-microsoft-visual-studio-code:before{content:"󰨞"}.mdi-microsoft-windows:before{content:"󰖳"}.mdi-microsoft-windows-classic:before{content:"󰨡"}.mdi-microsoft-word:before{content:"󱎒"}.mdi-microsoft-xbox:before{content:"󰖹"}.mdi-microsoft-xbox-controller:before{content:"󰖺"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"󰝋"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"󰨢"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"󰝌"}.mdi-microsoft-xbox-controller-battery-full:before{content:"󰝍"}.mdi-microsoft-xbox-controller-battery-low:before{content:"󰝎"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"󰝏"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"󰝐"}.mdi-microsoft-xbox-controller-menu:before{content:"󰹯"}.mdi-microsoft-xbox-controller-off:before{content:"󰖻"}.mdi-microsoft-xbox-controller-view:before{content:"󰹰"}.mdi-microwave:before{content:"󰲙"}.mdi-microwave-off:before{content:"󱐣"}.mdi-middleware:before{content:"󰽝"}.mdi-middleware-outline:before{content:"󰽞"}.mdi-midi:before{content:"󰣱"}.mdi-midi-port:before{content:"󰣲"}.mdi-mine:before{content:"󰷚"}.mdi-minecraft:before{content:"󰍳"}.mdi-mini-sd:before{content:"󰨅"}.mdi-minidisc:before{content:"󰨆"}.mdi-minus:before{content:"󰍴"}.mdi-minus-box:before{content:"󰍵"}.mdi-minus-box-multiple:before{content:"󱅁"}.mdi-minus-box-multiple-outline:before{content:"󱅂"}.mdi-minus-box-outline:before{content:"󰛲"}.mdi-minus-circle:before{content:"󰍶"}.mdi-minus-circle-multiple:before{content:"󰍚"}.mdi-minus-circle-multiple-outline:before{content:"󰫓"}.mdi-minus-circle-off:before{content:"󱑙"}.mdi-minus-circle-off-outline:before{content:"󱑚"}.mdi-minus-circle-outline:before{content:"󰍷"}.mdi-minus-network:before{content:"󰍸"}.mdi-minus-network-outline:before{content:"󰲚"}.mdi-minus-thick:before{content:"󱘹"}.mdi-mirror:before{content:"󱇽"}.mdi-mirror-rectangle:before{content:"󱞟"}.mdi-mirror-variant:before{content:"󱞠"}.mdi-mixed-martial-arts:before{content:"󰶏"}.mdi-mixed-reality:before{content:"󰡿"}.mdi-molecule:before{content:"󰮬"}.mdi-molecule-co:before{content:"󱋾"}.mdi-molecule-co2:before{content:"󰟤"}.mdi-monitor:before{content:"󰍹"}.mdi-monitor-account:before{content:"󱩛"}.mdi-monitor-arrow-down:before{content:"󱧐"}.mdi-monitor-arrow-down-variant:before{content:"󱧑"}.mdi-monitor-cellphone:before{content:"󰦉"}.mdi-monitor-cellphone-star:before{content:"󰦊"}.mdi-monitor-dashboard:before{content:"󰨇"}.mdi-monitor-edit:before{content:"󱋆"}.mdi-monitor-eye:before{content:"󱎴"}.mdi-monitor-lock:before{content:"󰷛"}.mdi-monitor-multiple:before{content:"󰍺"}.mdi-monitor-off:before{content:"󰶐"}.mdi-monitor-screenshot:before{content:"󰹑"}.mdi-monitor-share:before{content:"󱒃"}.mdi-monitor-shimmer:before{content:"󱄄"}.mdi-monitor-small:before{content:"󱡶"}.mdi-monitor-speaker:before{content:"󰽟"}.mdi-monitor-speaker-off:before{content:"󰽠"}.mdi-monitor-star:before{content:"󰷜"}.mdi-monitor-vertical:before{content:"󱰳"}.mdi-moon-first-quarter:before{content:"󰽡"}.mdi-moon-full:before{content:"󰽢"}.mdi-moon-last-quarter:before{content:"󰽣"}.mdi-moon-new:before{content:"󰽤"}.mdi-moon-waning-crescent:before{content:"󰽥"}.mdi-moon-waning-gibbous:before{content:"󰽦"}.mdi-moon-waxing-crescent:before{content:"󰽧"}.mdi-moon-waxing-gibbous:before{content:"󰽨"}.mdi-moped:before{content:"󱂆"}.mdi-moped-electric:before{content:"󱖷"}.mdi-moped-electric-outline:before{content:"󱖸"}.mdi-moped-outline:before{content:"󱖹"}.mdi-more:before{content:"󰍻"}.mdi-mortar-pestle:before{content:"󱝈"}.mdi-mortar-pestle-plus:before{content:"󰏱"}.mdi-mosque:before{content:"󰵅"}.mdi-mosque-outline:before{content:"󱠧"}.mdi-mother-heart:before{content:"󱌔"}.mdi-mother-nurse:before{content:"󰴡"}.mdi-motion:before{content:"󱖲"}.mdi-motion-outline:before{content:"󱖳"}.mdi-motion-pause:before{content:"󱖐"}.mdi-motion-pause-outline:before{content:"󱖒"}.mdi-motion-play:before{content:"󱖏"}.mdi-motion-play-outline:before{content:"󱖑"}.mdi-motion-sensor:before{content:"󰶑"}.mdi-motion-sensor-off:before{content:"󱐵"}.mdi-motorbike:before{content:"󰍼"}.mdi-motorbike-electric:before{content:"󱖺"}.mdi-motorbike-off:before{content:"󱬖"}.mdi-mouse:before{content:"󰍽"}.mdi-mouse-bluetooth:before{content:"󰦋"}.mdi-mouse-move-down:before{content:"󱕐"}.mdi-mouse-move-up:before{content:"󱕑"}.mdi-mouse-move-vertical:before{content:"󱕒"}.mdi-mouse-off:before{content:"󰍾"}.mdi-mouse-variant:before{content:"󰍿"}.mdi-mouse-variant-off:before{content:"󰎀"}.mdi-move-resize:before{content:"󰙕"}.mdi-move-resize-variant:before{content:"󰙖"}.mdi-movie:before{content:"󰎁"}.mdi-movie-check:before{content:"󱛳"}.mdi-movie-check-outline:before{content:"󱛴"}.mdi-movie-cog:before{content:"󱛵"}.mdi-movie-cog-outline:before{content:"󱛶"}.mdi-movie-edit:before{content:"󱄢"}.mdi-movie-edit-outline:before{content:"󱄣"}.mdi-movie-filter:before{content:"󱄤"}.mdi-movie-filter-outline:before{content:"󱄥"}.mdi-movie-minus:before{content:"󱛷"}.mdi-movie-minus-outline:before{content:"󱛸"}.mdi-movie-off:before{content:"󱛹"}.mdi-movie-off-outline:before{content:"󱛺"}.mdi-movie-open:before{content:"󰿎"}.mdi-movie-open-check:before{content:"󱛻"}.mdi-movie-open-check-outline:before{content:"󱛼"}.mdi-movie-open-cog:before{content:"󱛽"}.mdi-movie-open-cog-outline:before{content:"󱛾"}.mdi-movie-open-edit:before{content:"󱛿"}.mdi-movie-open-edit-outline:before{content:"󱜀"}.mdi-movie-open-minus:before{content:"󱜁"}.mdi-movie-open-minus-outline:before{content:"󱜂"}.mdi-movie-open-off:before{content:"󱜃"}.mdi-movie-open-off-outline:before{content:"󱜄"}.mdi-movie-open-outline:before{content:"󰿏"}.mdi-movie-open-play:before{content:"󱜅"}.mdi-movie-open-play-outline:before{content:"󱜆"}.mdi-movie-open-plus:before{content:"󱜇"}.mdi-movie-open-plus-outline:before{content:"󱜈"}.mdi-movie-open-remove:before{content:"󱜉"}.mdi-movie-open-remove-outline:before{content:"󱜊"}.mdi-movie-open-settings:before{content:"󱜋"}.mdi-movie-open-settings-outline:before{content:"󱜌"}.mdi-movie-open-star:before{content:"󱜍"}.mdi-movie-open-star-outline:before{content:"󱜎"}.mdi-movie-outline:before{content:"󰷝"}.mdi-movie-play:before{content:"󱜏"}.mdi-movie-play-outline:before{content:"󱜐"}.mdi-movie-plus:before{content:"󱜑"}.mdi-movie-plus-outline:before{content:"󱜒"}.mdi-movie-remove:before{content:"󱜓"}.mdi-movie-remove-outline:before{content:"󱜔"}.mdi-movie-roll:before{content:"󰟞"}.mdi-movie-search:before{content:"󱇒"}.mdi-movie-search-outline:before{content:"󱇓"}.mdi-movie-settings:before{content:"󱜕"}.mdi-movie-settings-outline:before{content:"󱜖"}.mdi-movie-star:before{content:"󱜗"}.mdi-movie-star-outline:before{content:"󱜘"}.mdi-mower:before{content:"󱙯"}.mdi-mower-bag:before{content:"󱙰"}.mdi-mower-bag-on:before{content:"󱭠"}.mdi-mower-on:before{content:"󱭟"}.mdi-muffin:before{content:"󰦌"}.mdi-multicast:before{content:"󱢓"}.mdi-multimedia:before{content:"󱮗"}.mdi-multiplication:before{content:"󰎂"}.mdi-multiplication-box:before{content:"󰎃"}.mdi-mushroom:before{content:"󰟟"}.mdi-mushroom-off:before{content:"󱏺"}.mdi-mushroom-off-outline:before{content:"󱏻"}.mdi-mushroom-outline:before{content:"󰟠"}.mdi-music:before{content:"󰝚"}.mdi-music-accidental-double-flat:before{content:"󰽩"}.mdi-music-accidental-double-sharp:before{content:"󰽪"}.mdi-music-accidental-flat:before{content:"󰽫"}.mdi-music-accidental-natural:before{content:"󰽬"}.mdi-music-accidental-sharp:before{content:"󰽭"}.mdi-music-box:before{content:"󰎄"}.mdi-music-box-multiple:before{content:"󰌳"}.mdi-music-box-multiple-outline:before{content:"󰼄"}.mdi-music-box-outline:before{content:"󰎅"}.mdi-music-circle:before{content:"󰎆"}.mdi-music-circle-outline:before{content:"󰫔"}.mdi-music-clef-alto:before{content:"󰽮"}.mdi-music-clef-bass:before{content:"󰽯"}.mdi-music-clef-treble:before{content:"󰽰"}.mdi-music-note:before{content:"󰎇"}.mdi-music-note-bluetooth:before{content:"󰗾"}.mdi-music-note-bluetooth-off:before{content:"󰗿"}.mdi-music-note-eighth:before{content:"󰎈"}.mdi-music-note-eighth-dotted:before{content:"󰽱"}.mdi-music-note-half:before{content:"󰎉"}.mdi-music-note-half-dotted:before{content:"󰽲"}.mdi-music-note-minus:before{content:"󱮉"}.mdi-music-note-off:before{content:"󰎊"}.mdi-music-note-off-outline:before{content:"󰽳"}.mdi-music-note-outline:before{content:"󰽴"}.mdi-music-note-plus:before{content:"󰷞"}.mdi-music-note-quarter:before{content:"󰎋"}.mdi-music-note-quarter-dotted:before{content:"󰽵"}.mdi-music-note-sixteenth:before{content:"󰎌"}.mdi-music-note-sixteenth-dotted:before{content:"󰽶"}.mdi-music-note-whole:before{content:"󰎍"}.mdi-music-note-whole-dotted:before{content:"󰽷"}.mdi-music-off:before{content:"󰝛"}.mdi-music-rest-eighth:before{content:"󰽸"}.mdi-music-rest-half:before{content:"󰽹"}.mdi-music-rest-quarter:before{content:"󰽺"}.mdi-music-rest-sixteenth:before{content:"󰽻"}.mdi-music-rest-whole:before{content:"󰽼"}.mdi-mustache:before{content:"󱗞"}.mdi-nail:before{content:"󰷟"}.mdi-nas:before{content:"󰣳"}.mdi-nativescript:before{content:"󰢀"}.mdi-nature:before{content:"󰎎"}.mdi-nature-outline:before{content:"󱱱"}.mdi-nature-people:before{content:"󰎏"}.mdi-nature-people-outline:before{content:"󱱲"}.mdi-navigation:before{content:"󰎐"}.mdi-navigation-outline:before{content:"󱘇"}.mdi-navigation-variant:before{content:"󱣰"}.mdi-navigation-variant-outline:before{content:"󱣱"}.mdi-near-me:before{content:"󰗍"}.mdi-necklace:before{content:"󰼋"}.mdi-needle:before{content:"󰎑"}.mdi-needle-off:before{content:"󱧒"}.mdi-netflix:before{content:"󰝆"}.mdi-network:before{content:"󰛳"}.mdi-network-off:before{content:"󰲛"}.mdi-network-off-outline:before{content:"󰲜"}.mdi-network-outline:before{content:"󰲝"}.mdi-network-pos:before{content:"󱫋"}.mdi-network-strength-1:before{content:"󰣴"}.mdi-network-strength-1-alert:before{content:"󰣵"}.mdi-network-strength-2:before{content:"󰣶"}.mdi-network-strength-2-alert:before{content:"󰣷"}.mdi-network-strength-3:before{content:"󰣸"}.mdi-network-strength-3-alert:before{content:"󰣹"}.mdi-network-strength-4:before{content:"󰣺"}.mdi-network-strength-4-alert:before{content:"󰣻"}.mdi-network-strength-4-cog:before{content:"󱤚"}.mdi-network-strength-off:before{content:"󰣼"}.mdi-network-strength-off-outline:before{content:"󰣽"}.mdi-network-strength-outline:before{content:"󰣾"}.mdi-new-box:before{content:"󰎔"}.mdi-newspaper:before{content:"󰎕"}.mdi-newspaper-check:before{content:"󱥃"}.mdi-newspaper-minus:before{content:"󰼌"}.mdi-newspaper-plus:before{content:"󰼍"}.mdi-newspaper-remove:before{content:"󱥄"}.mdi-newspaper-variant:before{content:"󱀁"}.mdi-newspaper-variant-multiple:before{content:"󱀂"}.mdi-newspaper-variant-multiple-outline:before{content:"󱀃"}.mdi-newspaper-variant-outline:before{content:"󱀄"}.mdi-nfc:before{content:"󰎖"}.mdi-nfc-search-variant:before{content:"󰹓"}.mdi-nfc-tap:before{content:"󰎗"}.mdi-nfc-variant:before{content:"󰎘"}.mdi-nfc-variant-off:before{content:"󰹔"}.mdi-ninja:before{content:"󰝴"}.mdi-nintendo-game-boy:before{content:"󱎓"}.mdi-nintendo-switch:before{content:"󰟡"}.mdi-nintendo-wii:before{content:"󰖫"}.mdi-nintendo-wiiu:before{content:"󰜭"}.mdi-nix:before{content:"󱄅"}.mdi-nodejs:before{content:"󰎙"}.mdi-noodles:before{content:"󱅾"}.mdi-not-equal:before{content:"󰦍"}.mdi-not-equal-variant:before{content:"󰦎"}.mdi-note:before{content:"󰎚"}.mdi-note-alert:before{content:"󱝽"}.mdi-note-alert-outline:before{content:"󱝾"}.mdi-note-check:before{content:"󱝿"}.mdi-note-check-outline:before{content:"󱞀"}.mdi-note-edit:before{content:"󱞁"}.mdi-note-edit-outline:before{content:"󱞂"}.mdi-note-minus:before{content:"󱙏"}.mdi-note-minus-outline:before{content:"󱙐"}.mdi-note-multiple:before{content:"󰚸"}.mdi-note-multiple-outline:before{content:"󰚹"}.mdi-note-off:before{content:"󱞃"}.mdi-note-off-outline:before{content:"󱞄"}.mdi-note-outline:before{content:"󰎛"}.mdi-note-plus:before{content:"󰎜"}.mdi-note-plus-outline:before{content:"󰎝"}.mdi-note-remove:before{content:"󱙑"}.mdi-note-remove-outline:before{content:"󱙒"}.mdi-note-search:before{content:"󱙓"}.mdi-note-search-outline:before{content:"󱙔"}.mdi-note-text:before{content:"󰎞"}.mdi-note-text-outline:before{content:"󱇗"}.mdi-notebook:before{content:"󰠮"}.mdi-notebook-check:before{content:"󱓵"}.mdi-notebook-check-outline:before{content:"󱓶"}.mdi-notebook-edit:before{content:"󱓧"}.mdi-notebook-edit-outline:before{content:"󱓩"}.mdi-notebook-heart:before{content:"󱨋"}.mdi-notebook-heart-outline:before{content:"󱨌"}.mdi-notebook-minus:before{content:"󱘐"}.mdi-notebook-minus-outline:before{content:"󱘑"}.mdi-notebook-multiple:before{content:"󰹕"}.mdi-notebook-outline:before{content:"󰺿"}.mdi-notebook-plus:before{content:"󱘒"}.mdi-notebook-plus-outline:before{content:"󱘓"}.mdi-notebook-remove:before{content:"󱘔"}.mdi-notebook-remove-outline:before{content:"󱘕"}.mdi-notification-clear-all:before{content:"󰎟"}.mdi-npm:before{content:"󰛷"}.mdi-nuke:before{content:"󰚤"}.mdi-null:before{content:"󰟢"}.mdi-numeric:before{content:"󰎠"}.mdi-numeric-0:before{content:"󰬹"}.mdi-numeric-0-box:before{content:"󰎡"}.mdi-numeric-0-box-multiple:before{content:"󰼎"}.mdi-numeric-0-box-multiple-outline:before{content:"󰎢"}.mdi-numeric-0-box-outline:before{content:"󰎣"}.mdi-numeric-0-circle:before{content:"󰲞"}.mdi-numeric-0-circle-outline:before{content:"󰲟"}.mdi-numeric-1:before{content:"󰬺"}.mdi-numeric-1-box:before{content:"󰎤"}.mdi-numeric-1-box-multiple:before{content:"󰼏"}.mdi-numeric-1-box-multiple-outline:before{content:"󰎥"}.mdi-numeric-1-box-outline:before{content:"󰎦"}.mdi-numeric-1-circle:before{content:"󰲠"}.mdi-numeric-1-circle-outline:before{content:"󰲡"}.mdi-numeric-10:before{content:"󰿩"}.mdi-numeric-10-box:before{content:"󰽽"}.mdi-numeric-10-box-multiple:before{content:"󰿪"}.mdi-numeric-10-box-multiple-outline:before{content:"󰿫"}.mdi-numeric-10-box-outline:before{content:"󰽾"}.mdi-numeric-10-circle:before{content:"󰿬"}.mdi-numeric-10-circle-outline:before{content:"󰿭"}.mdi-numeric-2:before{content:"󰬻"}.mdi-numeric-2-box:before{content:"󰎧"}.mdi-numeric-2-box-multiple:before{content:"󰼐"}.mdi-numeric-2-box-multiple-outline:before{content:"󰎨"}.mdi-numeric-2-box-outline:before{content:"󰎩"}.mdi-numeric-2-circle:before{content:"󰲢"}.mdi-numeric-2-circle-outline:before{content:"󰲣"}.mdi-numeric-3:before{content:"󰬼"}.mdi-numeric-3-box:before{content:"󰎪"}.mdi-numeric-3-box-multiple:before{content:"󰼑"}.mdi-numeric-3-box-multiple-outline:before{content:"󰎫"}.mdi-numeric-3-box-outline:before{content:"󰎬"}.mdi-numeric-3-circle:before{content:"󰲤"}.mdi-numeric-3-circle-outline:before{content:"󰲥"}.mdi-numeric-4:before{content:"󰬽"}.mdi-numeric-4-box:before{content:"󰎭"}.mdi-numeric-4-box-multiple:before{content:"󰼒"}.mdi-numeric-4-box-multiple-outline:before{content:"󰎲"}.mdi-numeric-4-box-outline:before{content:"󰎮"}.mdi-numeric-4-circle:before{content:"󰲦"}.mdi-numeric-4-circle-outline:before{content:"󰲧"}.mdi-numeric-5:before{content:"󰬾"}.mdi-numeric-5-box:before{content:"󰎱"}.mdi-numeric-5-box-multiple:before{content:"󰼓"}.mdi-numeric-5-box-multiple-outline:before{content:"󰎯"}.mdi-numeric-5-box-outline:before{content:"󰎰"}.mdi-numeric-5-circle:before{content:"󰲨"}.mdi-numeric-5-circle-outline:before{content:"󰲩"}.mdi-numeric-6:before{content:"󰬿"}.mdi-numeric-6-box:before{content:"󰎳"}.mdi-numeric-6-box-multiple:before{content:"󰼔"}.mdi-numeric-6-box-multiple-outline:before{content:"󰎴"}.mdi-numeric-6-box-outline:before{content:"󰎵"}.mdi-numeric-6-circle:before{content:"󰲪"}.mdi-numeric-6-circle-outline:before{content:"󰲫"}.mdi-numeric-7:before{content:"󰭀"}.mdi-numeric-7-box:before{content:"󰎶"}.mdi-numeric-7-box-multiple:before{content:"󰼕"}.mdi-numeric-7-box-multiple-outline:before{content:"󰎷"}.mdi-numeric-7-box-outline:before{content:"󰎸"}.mdi-numeric-7-circle:before{content:"󰲬"}.mdi-numeric-7-circle-outline:before{content:"󰲭"}.mdi-numeric-8:before{content:"󰭁"}.mdi-numeric-8-box:before{content:"󰎹"}.mdi-numeric-8-box-multiple:before{content:"󰼖"}.mdi-numeric-8-box-multiple-outline:before{content:"󰎺"}.mdi-numeric-8-box-outline:before{content:"󰎻"}.mdi-numeric-8-circle:before{content:"󰲮"}.mdi-numeric-8-circle-outline:before{content:"󰲯"}.mdi-numeric-9:before{content:"󰭂"}.mdi-numeric-9-box:before{content:"󰎼"}.mdi-numeric-9-box-multiple:before{content:"󰼗"}.mdi-numeric-9-box-multiple-outline:before{content:"󰎽"}.mdi-numeric-9-box-outline:before{content:"󰎾"}.mdi-numeric-9-circle:before{content:"󰲰"}.mdi-numeric-9-circle-outline:before{content:"󰲱"}.mdi-numeric-9-plus:before{content:"󰿮"}.mdi-numeric-9-plus-box:before{content:"󰎿"}.mdi-numeric-9-plus-box-multiple:before{content:"󰼘"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"󰏀"}.mdi-numeric-9-plus-box-outline:before{content:"󰏁"}.mdi-numeric-9-plus-circle:before{content:"󰲲"}.mdi-numeric-9-plus-circle-outline:before{content:"󰲳"}.mdi-numeric-negative-1:before{content:"󱁒"}.mdi-numeric-off:before{content:"󱧓"}.mdi-numeric-positive-1:before{content:"󱗋"}.mdi-nut:before{content:"󰛸"}.mdi-nutrition:before{content:"󰏂"}.mdi-nuxt:before{content:"󱄆"}.mdi-oar:before{content:"󰙼"}.mdi-ocarina:before{content:"󰷠"}.mdi-oci:before{content:"󱋩"}.mdi-ocr:before{content:"󱄺"}.mdi-octagon:before{content:"󰏃"}.mdi-octagon-outline:before{content:"󰏄"}.mdi-octagram:before{content:"󰛹"}.mdi-octagram-edit:before{content:"󱰴"}.mdi-octagram-edit-outline:before{content:"󱰵"}.mdi-octagram-minus:before{content:"󱰶"}.mdi-octagram-minus-outline:before{content:"󱰷"}.mdi-octagram-outline:before{content:"󰝵"}.mdi-octagram-plus:before{content:"󱰸"}.mdi-octagram-plus-outline:before{content:"󱰹"}.mdi-octahedron:before{content:"󱥐"}.mdi-octahedron-off:before{content:"󱥑"}.mdi-odnoklassniki:before{content:"󰏅"}.mdi-offer:before{content:"󱈛"}.mdi-office-building:before{content:"󰦑"}.mdi-office-building-cog:before{content:"󱥉"}.mdi-office-building-cog-outline:before{content:"󱥊"}.mdi-office-building-marker:before{content:"󱔠"}.mdi-office-building-marker-outline:before{content:"󱔡"}.mdi-office-building-minus:before{content:"󱮪"}.mdi-office-building-minus-outline:before{content:"󱮫"}.mdi-office-building-outline:before{content:"󱔟"}.mdi-office-building-plus:before{content:"󱮨"}.mdi-office-building-plus-outline:before{content:"󱮩"}.mdi-office-building-remove:before{content:"󱮬"}.mdi-office-building-remove-outline:before{content:"󱮭"}.mdi-oil:before{content:"󰏇"}.mdi-oil-lamp:before{content:"󰼙"}.mdi-oil-level:before{content:"󱁓"}.mdi-oil-temperature:before{content:"󰿸"}.mdi-om:before{content:"󰥳"}.mdi-omega:before{content:"󰏉"}.mdi-one-up:before{content:"󰮭"}.mdi-onepassword:before{content:"󰢁"}.mdi-opacity:before{content:"󰗌"}.mdi-open-in-app:before{content:"󰏋"}.mdi-open-in-new:before{content:"󰏌"}.mdi-open-source-initiative:before{content:"󰮮"}.mdi-openid:before{content:"󰏍"}.mdi-opera:before{content:"󰏎"}.mdi-orbit:before{content:"󰀘"}.mdi-orbit-variant:before{content:"󱗛"}.mdi-order-alphabetical-ascending:before{content:"󰈍"}.mdi-order-alphabetical-descending:before{content:"󰴇"}.mdi-order-bool-ascending:before{content:"󰊾"}.mdi-order-bool-ascending-variant:before{content:"󰦏"}.mdi-order-bool-descending:before{content:"󱎄"}.mdi-order-bool-descending-variant:before{content:"󰦐"}.mdi-order-numeric-ascending:before{content:"󰕅"}.mdi-order-numeric-descending:before{content:"󰕆"}.mdi-origin:before{content:"󰭃"}.mdi-ornament:before{content:"󰏏"}.mdi-ornament-variant:before{content:"󰏐"}.mdi-outdoor-lamp:before{content:"󱁔"}.mdi-overscan:before{content:"󱀅"}.mdi-owl:before{content:"󰏒"}.mdi-pac-man:before{content:"󰮯"}.mdi-package:before{content:"󰏓"}.mdi-package-check:before{content:"󱭑"}.mdi-package-down:before{content:"󰏔"}.mdi-package-up:before{content:"󰏕"}.mdi-package-variant:before{content:"󰏖"}.mdi-package-variant-closed:before{content:"󰏗"}.mdi-package-variant-closed-check:before{content:"󱭒"}.mdi-package-variant-closed-minus:before{content:"󱧔"}.mdi-package-variant-closed-plus:before{content:"󱧕"}.mdi-package-variant-closed-remove:before{content:"󱧖"}.mdi-package-variant-minus:before{content:"󱧗"}.mdi-package-variant-plus:before{content:"󱧘"}.mdi-package-variant-remove:before{content:"󱧙"}.mdi-page-first:before{content:"󰘀"}.mdi-page-last:before{content:"󰘁"}.mdi-page-layout-body:before{content:"󰛺"}.mdi-page-layout-footer:before{content:"󰛻"}.mdi-page-layout-header:before{content:"󰛼"}.mdi-page-layout-header-footer:before{content:"󰽿"}.mdi-page-layout-sidebar-left:before{content:"󰛽"}.mdi-page-layout-sidebar-right:before{content:"󰛾"}.mdi-page-next:before{content:"󰮰"}.mdi-page-next-outline:before{content:"󰮱"}.mdi-page-previous:before{content:"󰮲"}.mdi-page-previous-outline:before{content:"󰮳"}.mdi-pail:before{content:"󱐗"}.mdi-pail-minus:before{content:"󱐷"}.mdi-pail-minus-outline:before{content:"󱐼"}.mdi-pail-off:before{content:"󱐹"}.mdi-pail-off-outline:before{content:"󱐾"}.mdi-pail-outline:before{content:"󱐺"}.mdi-pail-plus:before{content:"󱐶"}.mdi-pail-plus-outline:before{content:"󱐻"}.mdi-pail-remove:before{content:"󱐸"}.mdi-pail-remove-outline:before{content:"󱐽"}.mdi-palette:before{content:"󰏘"}.mdi-palette-advanced:before{content:"󰏙"}.mdi-palette-outline:before{content:"󰸌"}.mdi-palette-swatch:before{content:"󰢵"}.mdi-palette-swatch-outline:before{content:"󱍜"}.mdi-palette-swatch-variant:before{content:"󱥚"}.mdi-palm-tree:before{content:"󱁕"}.mdi-pan:before{content:"󰮴"}.mdi-pan-bottom-left:before{content:"󰮵"}.mdi-pan-bottom-right:before{content:"󰮶"}.mdi-pan-down:before{content:"󰮷"}.mdi-pan-horizontal:before{content:"󰮸"}.mdi-pan-left:before{content:"󰮹"}.mdi-pan-right:before{content:"󰮺"}.mdi-pan-top-left:before{content:"󰮻"}.mdi-pan-top-right:before{content:"󰮼"}.mdi-pan-up:before{content:"󰮽"}.mdi-pan-vertical:before{content:"󰮾"}.mdi-panda:before{content:"󰏚"}.mdi-pandora:before{content:"󰏛"}.mdi-panorama:before{content:"󰏜"}.mdi-panorama-fisheye:before{content:"󰏝"}.mdi-panorama-horizontal:before{content:"󱤨"}.mdi-panorama-horizontal-outline:before{content:"󰏞"}.mdi-panorama-outline:before{content:"󱦌"}.mdi-panorama-sphere:before{content:"󱦍"}.mdi-panorama-sphere-outline:before{content:"󱦎"}.mdi-panorama-variant:before{content:"󱦏"}.mdi-panorama-variant-outline:before{content:"󱦐"}.mdi-panorama-vertical:before{content:"󱤩"}.mdi-panorama-vertical-outline:before{content:"󰏟"}.mdi-panorama-wide-angle:before{content:"󱥟"}.mdi-panorama-wide-angle-outline:before{content:"󰏠"}.mdi-paper-cut-vertical:before{content:"󰏡"}.mdi-paper-roll:before{content:"󱅗"}.mdi-paper-roll-outline:before{content:"󱅘"}.mdi-paperclip:before{content:"󰏢"}.mdi-paperclip-check:before{content:"󱫆"}.mdi-paperclip-lock:before{content:"󱧚"}.mdi-paperclip-minus:before{content:"󱫇"}.mdi-paperclip-off:before{content:"󱫈"}.mdi-paperclip-plus:before{content:"󱫉"}.mdi-paperclip-remove:before{content:"󱫊"}.mdi-parachute:before{content:"󰲴"}.mdi-parachute-outline:before{content:"󰲵"}.mdi-paragliding:before{content:"󱝅"}.mdi-parking:before{content:"󰏣"}.mdi-party-popper:before{content:"󱁖"}.mdi-passport:before{content:"󰟣"}.mdi-passport-alert:before{content:"󱲸"}.mdi-passport-biometric:before{content:"󰷡"}.mdi-passport-cancel:before{content:"󱲹"}.mdi-passport-check:before{content:"󱲺"}.mdi-passport-minus:before{content:"󱲻"}.mdi-passport-plus:before{content:"󱲼"}.mdi-passport-remove:before{content:"󱲽"}.mdi-pasta:before{content:"󱅠"}.mdi-patio-heater:before{content:"󰾀"}.mdi-patreon:before{content:"󰢂"}.mdi-pause:before{content:"󰏤"}.mdi-pause-box:before{content:"󰂼"}.mdi-pause-box-outline:before{content:"󱭺"}.mdi-pause-circle:before{content:"󰏥"}.mdi-pause-circle-outline:before{content:"󰏦"}.mdi-pause-octagon:before{content:"󰏧"}.mdi-pause-octagon-outline:before{content:"󰏨"}.mdi-paw:before{content:"󰏩"}.mdi-paw-off:before{content:"󰙗"}.mdi-paw-off-outline:before{content:"󱙶"}.mdi-paw-outline:before{content:"󱙵"}.mdi-peace:before{content:"󰢄"}.mdi-peanut:before{content:"󰿼"}.mdi-peanut-off:before{content:"󰿽"}.mdi-peanut-off-outline:before{content:"󰿿"}.mdi-peanut-outline:before{content:"󰿾"}.mdi-pen:before{content:"󰏪"}.mdi-pen-lock:before{content:"󰷢"}.mdi-pen-minus:before{content:"󰷣"}.mdi-pen-off:before{content:"󰷤"}.mdi-pen-plus:before{content:"󰷥"}.mdi-pen-remove:before{content:"󰷦"}.mdi-pencil:before{content:"󰏫"}.mdi-pencil-box:before{content:"󰏬"}.mdi-pencil-box-multiple:before{content:"󱅄"}.mdi-pencil-box-multiple-outline:before{content:"󱅅"}.mdi-pencil-box-outline:before{content:"󰏭"}.mdi-pencil-circle:before{content:"󰛿"}.mdi-pencil-circle-outline:before{content:"󰝶"}.mdi-pencil-lock:before{content:"󰏮"}.mdi-pencil-lock-outline:before{content:"󰷧"}.mdi-pencil-minus:before{content:"󰷨"}.mdi-pencil-minus-outline:before{content:"󰷩"}.mdi-pencil-off:before{content:"󰏯"}.mdi-pencil-off-outline:before{content:"󰷪"}.mdi-pencil-outline:before{content:"󰲶"}.mdi-pencil-plus:before{content:"󰷫"}.mdi-pencil-plus-outline:before{content:"󰷬"}.mdi-pencil-remove:before{content:"󰷭"}.mdi-pencil-remove-outline:before{content:"󰷮"}.mdi-pencil-ruler:before{content:"󱍓"}.mdi-pencil-ruler-outline:before{content:"󱰑"}.mdi-penguin:before{content:"󰻀"}.mdi-pentagon:before{content:"󰜁"}.mdi-pentagon-outline:before{content:"󰜀"}.mdi-pentagram:before{content:"󱙧"}.mdi-percent:before{content:"󰏰"}.mdi-percent-box:before{content:"󱨂"}.mdi-percent-box-outline:before{content:"󱨃"}.mdi-percent-circle:before{content:"󱨄"}.mdi-percent-circle-outline:before{content:"󱨅"}.mdi-percent-outline:before{content:"󱉸"}.mdi-periodic-table:before{content:"󰢶"}.mdi-perspective-less:before{content:"󰴣"}.mdi-perspective-more:before{content:"󰴤"}.mdi-ph:before{content:"󱟅"}.mdi-phone:before{content:"󰏲"}.mdi-phone-alert:before{content:"󰼚"}.mdi-phone-alert-outline:before{content:"󱆎"}.mdi-phone-bluetooth:before{content:"󰏳"}.mdi-phone-bluetooth-outline:before{content:"󱆏"}.mdi-phone-cancel:before{content:"󱂼"}.mdi-phone-cancel-outline:before{content:"󱆐"}.mdi-phone-check:before{content:"󱆩"}.mdi-phone-check-outline:before{content:"󱆪"}.mdi-phone-classic:before{content:"󰘂"}.mdi-phone-classic-off:before{content:"󱉹"}.mdi-phone-clock:before{content:"󱧛"}.mdi-phone-dial:before{content:"󱕙"}.mdi-phone-dial-outline:before{content:"󱕚"}.mdi-phone-forward:before{content:"󰏴"}.mdi-phone-forward-outline:before{content:"󱆑"}.mdi-phone-hangup:before{content:"󰏵"}.mdi-phone-hangup-outline:before{content:"󱆒"}.mdi-phone-in-talk:before{content:"󰏶"}.mdi-phone-in-talk-outline:before{content:"󱆂"}.mdi-phone-incoming:before{content:"󰏷"}.mdi-phone-incoming-outgoing:before{content:"󱬿"}.mdi-phone-incoming-outgoing-outline:before{content:"󱭀"}.mdi-phone-incoming-outline:before{content:"󱆓"}.mdi-phone-lock:before{content:"󰏸"}.mdi-phone-lock-outline:before{content:"󱆔"}.mdi-phone-log:before{content:"󰏹"}.mdi-phone-log-outline:before{content:"󱆕"}.mdi-phone-message:before{content:"󱆖"}.mdi-phone-message-outline:before{content:"󱆗"}.mdi-phone-minus:before{content:"󰙘"}.mdi-phone-minus-outline:before{content:"󱆘"}.mdi-phone-missed:before{content:"󰏺"}.mdi-phone-missed-outline:before{content:"󱆥"}.mdi-phone-off:before{content:"󰷯"}.mdi-phone-off-outline:before{content:"󱆦"}.mdi-phone-outgoing:before{content:"󰏻"}.mdi-phone-outgoing-outline:before{content:"󱆙"}.mdi-phone-outline:before{content:"󰷰"}.mdi-phone-paused:before{content:"󰏼"}.mdi-phone-paused-outline:before{content:"󱆚"}.mdi-phone-plus:before{content:"󰙙"}.mdi-phone-plus-outline:before{content:"󱆛"}.mdi-phone-refresh:before{content:"󱦓"}.mdi-phone-refresh-outline:before{content:"󱦔"}.mdi-phone-remove:before{content:"󱔯"}.mdi-phone-remove-outline:before{content:"󱔰"}.mdi-phone-return:before{content:"󰠯"}.mdi-phone-return-outline:before{content:"󱆜"}.mdi-phone-ring:before{content:"󱆫"}.mdi-phone-ring-outline:before{content:"󱆬"}.mdi-phone-rotate-landscape:before{content:"󰢅"}.mdi-phone-rotate-portrait:before{content:"󰢆"}.mdi-phone-settings:before{content:"󰏽"}.mdi-phone-settings-outline:before{content:"󱆝"}.mdi-phone-sync:before{content:"󱦕"}.mdi-phone-sync-outline:before{content:"󱦖"}.mdi-phone-voip:before{content:"󰏾"}.mdi-pi:before{content:"󰏿"}.mdi-pi-box:before{content:"󰐀"}.mdi-pi-hole:before{content:"󰷱"}.mdi-piano:before{content:"󰙽"}.mdi-piano-off:before{content:"󰚘"}.mdi-pickaxe:before{content:"󰢷"}.mdi-picture-in-picture-bottom-right:before{content:"󰹗"}.mdi-picture-in-picture-bottom-right-outline:before{content:"󰹘"}.mdi-picture-in-picture-top-right:before{content:"󰹙"}.mdi-picture-in-picture-top-right-outline:before{content:"󰹚"}.mdi-pier:before{content:"󰢇"}.mdi-pier-crane:before{content:"󰢈"}.mdi-pig:before{content:"󰐁"}.mdi-pig-variant:before{content:"󱀆"}.mdi-pig-variant-outline:before{content:"󱙸"}.mdi-piggy-bank:before{content:"󱀇"}.mdi-piggy-bank-outline:before{content:"󱙹"}.mdi-pill:before{content:"󰐂"}.mdi-pill-multiple:before{content:"󱭌"}.mdi-pill-off:before{content:"󱩜"}.mdi-pillar:before{content:"󰜂"}.mdi-pin:before{content:"󰐃"}.mdi-pin-off:before{content:"󰐄"}.mdi-pin-off-outline:before{content:"󰤰"}.mdi-pin-outline:before{content:"󰤱"}.mdi-pine-tree:before{content:"󰐅"}.mdi-pine-tree-box:before{content:"󰐆"}.mdi-pine-tree-fire:before{content:"󱐚"}.mdi-pine-tree-variant:before{content:"󱱳"}.mdi-pine-tree-variant-outline:before{content:"󱱴"}.mdi-pinterest:before{content:"󰐇"}.mdi-pinwheel:before{content:"󰫕"}.mdi-pinwheel-outline:before{content:"󰫖"}.mdi-pipe:before{content:"󰟥"}.mdi-pipe-disconnected:before{content:"󰟦"}.mdi-pipe-leak:before{content:"󰢉"}.mdi-pipe-valve:before{content:"󱡍"}.mdi-pipe-wrench:before{content:"󱍔"}.mdi-pirate:before{content:"󰨈"}.mdi-pistol:before{content:"󰜃"}.mdi-piston:before{content:"󰢊"}.mdi-pitchfork:before{content:"󱕓"}.mdi-pizza:before{content:"󰐉"}.mdi-plane-car:before{content:"󱫿"}.mdi-plane-train:before{content:"󱬀"}.mdi-play:before{content:"󰐊"}.mdi-play-box:before{content:"󱉺"}.mdi-play-box-edit-outline:before{content:"󱰺"}.mdi-play-box-lock:before{content:"󱨖"}.mdi-play-box-lock-open:before{content:"󱨗"}.mdi-play-box-lock-open-outline:before{content:"󱨘"}.mdi-play-box-lock-outline:before{content:"󱨙"}.mdi-play-box-multiple:before{content:"󰴙"}.mdi-play-box-multiple-outline:before{content:"󱏦"}.mdi-play-box-outline:before{content:"󰐋"}.mdi-play-circle:before{content:"󰐌"}.mdi-play-circle-outline:before{content:"󰐍"}.mdi-play-network:before{content:"󰢋"}.mdi-play-network-outline:before{content:"󰲷"}.mdi-play-outline:before{content:"󰼛"}.mdi-play-pause:before{content:"󰐎"}.mdi-play-protected-content:before{content:"󰐏"}.mdi-play-speed:before{content:"󰣿"}.mdi-playlist-check:before{content:"󰗇"}.mdi-playlist-edit:before{content:"󰤀"}.mdi-playlist-minus:before{content:"󰐐"}.mdi-playlist-music:before{content:"󰲸"}.mdi-playlist-music-outline:before{content:"󰲹"}.mdi-playlist-play:before{content:"󰐑"}.mdi-playlist-plus:before{content:"󰐒"}.mdi-playlist-remove:before{content:"󰐓"}.mdi-playlist-star:before{content:"󰷲"}.mdi-plex:before{content:"󰚺"}.mdi-pliers:before{content:"󱦤"}.mdi-plus:before{content:"󰐕"}.mdi-plus-box:before{content:"󰐖"}.mdi-plus-box-multiple:before{content:"󰌴"}.mdi-plus-box-multiple-outline:before{content:"󱅃"}.mdi-plus-box-outline:before{content:"󰜄"}.mdi-plus-circle:before{content:"󰐗"}.mdi-plus-circle-multiple:before{content:"󰍌"}.mdi-plus-circle-multiple-outline:before{content:"󰐘"}.mdi-plus-circle-outline:before{content:"󰐙"}.mdi-plus-lock:before{content:"󱩝"}.mdi-plus-lock-open:before{content:"󱩞"}.mdi-plus-minus:before{content:"󰦒"}.mdi-plus-minus-box:before{content:"󰦓"}.mdi-plus-minus-variant:before{content:"󱓉"}.mdi-plus-network:before{content:"󰐚"}.mdi-plus-network-outline:before{content:"󰲺"}.mdi-plus-outline:before{content:"󰜅"}.mdi-plus-thick:before{content:"󱇬"}.mdi-pocket:before{content:"󱲾"}.mdi-podcast:before{content:"󰦔"}.mdi-podium:before{content:"󰴥"}.mdi-podium-bronze:before{content:"󰴦"}.mdi-podium-gold:before{content:"󰴧"}.mdi-podium-silver:before{content:"󰴨"}.mdi-point-of-sale:before{content:"󰶒"}.mdi-pokeball:before{content:"󰐝"}.mdi-pokemon-go:before{content:"󰨉"}.mdi-poker-chip:before{content:"󰠰"}.mdi-polaroid:before{content:"󰐞"}.mdi-police-badge:before{content:"󱅧"}.mdi-police-badge-outline:before{content:"󱅨"}.mdi-police-station:before{content:"󱠹"}.mdi-poll:before{content:"󰐟"}.mdi-polo:before{content:"󱓃"}.mdi-polymer:before{content:"󰐡"}.mdi-pool:before{content:"󰘆"}.mdi-pool-thermometer:before{content:"󱩟"}.mdi-popcorn:before{content:"󰐢"}.mdi-post:before{content:"󱀈"}.mdi-post-lamp:before{content:"󱩠"}.mdi-post-outline:before{content:"󱀉"}.mdi-postage-stamp:before{content:"󰲻"}.mdi-pot:before{content:"󰋥"}.mdi-pot-mix:before{content:"󰙛"}.mdi-pot-mix-outline:before{content:"󰙷"}.mdi-pot-outline:before{content:"󰋿"}.mdi-pot-steam:before{content:"󰙚"}.mdi-pot-steam-outline:before{content:"󰌦"}.mdi-pound:before{content:"󰐣"}.mdi-pound-box:before{content:"󰐤"}.mdi-pound-box-outline:before{content:"󱅿"}.mdi-power:before{content:"󰐥"}.mdi-power-cycle:before{content:"󰤁"}.mdi-power-off:before{content:"󰤂"}.mdi-power-on:before{content:"󰤃"}.mdi-power-plug:before{content:"󰚥"}.mdi-power-plug-battery:before{content:"󱰻"}.mdi-power-plug-battery-outline:before{content:"󱰼"}.mdi-power-plug-off:before{content:"󰚦"}.mdi-power-plug-off-outline:before{content:"󱐤"}.mdi-power-plug-outline:before{content:"󱐥"}.mdi-power-settings:before{content:"󰐦"}.mdi-power-sleep:before{content:"󰤄"}.mdi-power-socket:before{content:"󰐧"}.mdi-power-socket-au:before{content:"󰤅"}.mdi-power-socket-ch:before{content:"󰾳"}.mdi-power-socket-de:before{content:"󱄇"}.mdi-power-socket-eu:before{content:"󰟧"}.mdi-power-socket-fr:before{content:"󱄈"}.mdi-power-socket-it:before{content:"󱓿"}.mdi-power-socket-jp:before{content:"󱄉"}.mdi-power-socket-uk:before{content:"󰟨"}.mdi-power-socket-us:before{content:"󰟩"}.mdi-power-standby:before{content:"󰤆"}.mdi-powershell:before{content:"󰨊"}.mdi-prescription:before{content:"󰜆"}.mdi-presentation:before{content:"󰐨"}.mdi-presentation-play:before{content:"󰐩"}.mdi-pretzel:before{content:"󱕢"}.mdi-printer:before{content:"󰐪"}.mdi-printer-3d:before{content:"󰐫"}.mdi-printer-3d-nozzle:before{content:"󰹛"}.mdi-printer-3d-nozzle-alert:before{content:"󱇀"}.mdi-printer-3d-nozzle-alert-outline:before{content:"󱇁"}.mdi-printer-3d-nozzle-heat:before{content:"󱢸"}.mdi-printer-3d-nozzle-heat-outline:before{content:"󱢹"}.mdi-printer-3d-nozzle-off:before{content:"󱬙"}.mdi-printer-3d-nozzle-off-outline:before{content:"󱬚"}.mdi-printer-3d-nozzle-outline:before{content:"󰹜"}.mdi-printer-3d-off:before{content:"󱬎"}.mdi-printer-alert:before{content:"󰐬"}.mdi-printer-check:before{content:"󱅆"}.mdi-printer-eye:before{content:"󱑘"}.mdi-printer-off:before{content:"󰹝"}.mdi-printer-off-outline:before{content:"󱞅"}.mdi-printer-outline:before{content:"󱞆"}.mdi-printer-pos:before{content:"󱁗"}.mdi-printer-pos-alert:before{content:"󱮼"}.mdi-printer-pos-alert-outline:before{content:"󱮽"}.mdi-printer-pos-cancel:before{content:"󱮾"}.mdi-printer-pos-cancel-outline:before{content:"󱮿"}.mdi-printer-pos-check:before{content:"󱯀"}.mdi-printer-pos-check-outline:before{content:"󱯁"}.mdi-printer-pos-cog:before{content:"󱯂"}.mdi-printer-pos-cog-outline:before{content:"󱯃"}.mdi-printer-pos-edit:before{content:"󱯄"}.mdi-printer-pos-edit-outline:before{content:"󱯅"}.mdi-printer-pos-minus:before{content:"󱯆"}.mdi-printer-pos-minus-outline:before{content:"󱯇"}.mdi-printer-pos-network:before{content:"󱯈"}.mdi-printer-pos-network-outline:before{content:"󱯉"}.mdi-printer-pos-off:before{content:"󱯊"}.mdi-printer-pos-off-outline:before{content:"󱯋"}.mdi-printer-pos-outline:before{content:"󱯌"}.mdi-printer-pos-pause:before{content:"󱯍"}.mdi-printer-pos-pause-outline:before{content:"󱯎"}.mdi-printer-pos-play:before{content:"󱯏"}.mdi-printer-pos-play-outline:before{content:"󱯐"}.mdi-printer-pos-plus:before{content:"󱯑"}.mdi-printer-pos-plus-outline:before{content:"󱯒"}.mdi-printer-pos-refresh:before{content:"󱯓"}.mdi-printer-pos-refresh-outline:before{content:"󱯔"}.mdi-printer-pos-remove:before{content:"󱯕"}.mdi-printer-pos-remove-outline:before{content:"󱯖"}.mdi-printer-pos-star:before{content:"󱯗"}.mdi-printer-pos-star-outline:before{content:"󱯘"}.mdi-printer-pos-stop:before{content:"󱯙"}.mdi-printer-pos-stop-outline:before{content:"󱯚"}.mdi-printer-pos-sync:before{content:"󱯛"}.mdi-printer-pos-sync-outline:before{content:"󱯜"}.mdi-printer-pos-wrench:before{content:"󱯝"}.mdi-printer-pos-wrench-outline:before{content:"󱯞"}.mdi-printer-search:before{content:"󱑗"}.mdi-printer-settings:before{content:"󰜇"}.mdi-printer-wireless:before{content:"󰨋"}.mdi-priority-high:before{content:"󰘃"}.mdi-priority-low:before{content:"󰘄"}.mdi-professional-hexagon:before{content:"󰐭"}.mdi-progress-alert:before{content:"󰲼"}.mdi-progress-check:before{content:"󰦕"}.mdi-progress-clock:before{content:"󰦖"}.mdi-progress-close:before{content:"󱄊"}.mdi-progress-download:before{content:"󰦗"}.mdi-progress-helper:before{content:"󱮢"}.mdi-progress-pencil:before{content:"󱞇"}.mdi-progress-question:before{content:"󱔢"}.mdi-progress-star:before{content:"󱞈"}.mdi-progress-star-four-points:before{content:"󱰽"}.mdi-progress-upload:before{content:"󰦘"}.mdi-progress-wrench:before{content:"󰲽"}.mdi-projector:before{content:"󰐮"}.mdi-projector-off:before{content:"󱨣"}.mdi-projector-screen:before{content:"󰐯"}.mdi-projector-screen-off:before{content:"󱠍"}.mdi-projector-screen-off-outline:before{content:"󱠎"}.mdi-projector-screen-outline:before{content:"󱜤"}.mdi-projector-screen-variant:before{content:"󱠏"}.mdi-projector-screen-variant-off:before{content:"󱠐"}.mdi-projector-screen-variant-off-outline:before{content:"󱠑"}.mdi-projector-screen-variant-outline:before{content:"󱠒"}.mdi-propane-tank:before{content:"󱍗"}.mdi-propane-tank-outline:before{content:"󱍘"}.mdi-protocol:before{content:"󰿘"}.mdi-publish:before{content:"󰚧"}.mdi-publish-off:before{content:"󱥅"}.mdi-pulse:before{content:"󰐰"}.mdi-pump:before{content:"󱐂"}.mdi-pump-off:before{content:"󱬢"}.mdi-pumpkin:before{content:"󰮿"}.mdi-purse:before{content:"󰼜"}.mdi-purse-outline:before{content:"󰼝"}.mdi-puzzle:before{content:"󰐱"}.mdi-puzzle-check:before{content:"󱐦"}.mdi-puzzle-check-outline:before{content:"󱐧"}.mdi-puzzle-edit:before{content:"󱓓"}.mdi-puzzle-edit-outline:before{content:"󱓙"}.mdi-puzzle-heart:before{content:"󱓔"}.mdi-puzzle-heart-outline:before{content:"󱓚"}.mdi-puzzle-minus:before{content:"󱓑"}.mdi-puzzle-minus-outline:before{content:"󱓗"}.mdi-puzzle-outline:before{content:"󰩦"}.mdi-puzzle-plus:before{content:"󱓐"}.mdi-puzzle-plus-outline:before{content:"󱓖"}.mdi-puzzle-remove:before{content:"󱓒"}.mdi-puzzle-remove-outline:before{content:"󱓘"}.mdi-puzzle-star:before{content:"󱓕"}.mdi-puzzle-star-outline:before{content:"󱓛"}.mdi-pyramid:before{content:"󱥒"}.mdi-pyramid-off:before{content:"󱥓"}.mdi-qi:before{content:"󰦙"}.mdi-qqchat:before{content:"󰘅"}.mdi-qrcode:before{content:"󰐲"}.mdi-qrcode-edit:before{content:"󰢸"}.mdi-qrcode-minus:before{content:"󱆌"}.mdi-qrcode-plus:before{content:"󱆋"}.mdi-qrcode-remove:before{content:"󱆍"}.mdi-qrcode-scan:before{content:"󰐳"}.mdi-quadcopter:before{content:"󰐴"}.mdi-quality-high:before{content:"󰐵"}.mdi-quality-low:before{content:"󰨌"}.mdi-quality-medium:before{content:"󰨍"}.mdi-queue-first-in-last-out:before{content:"󱲯"}.mdi-quora:before{content:"󰴩"}.mdi-rabbit:before{content:"󰤇"}.mdi-rabbit-variant:before{content:"󱩡"}.mdi-rabbit-variant-outline:before{content:"󱩢"}.mdi-racing-helmet:before{content:"󰶓"}.mdi-racquetball:before{content:"󰶔"}.mdi-radar:before{content:"󰐷"}.mdi-radiator:before{content:"󰐸"}.mdi-radiator-disabled:before{content:"󰫗"}.mdi-radiator-off:before{content:"󰫘"}.mdi-radio:before{content:"󰐹"}.mdi-radio-am:before{content:"󰲾"}.mdi-radio-fm:before{content:"󰲿"}.mdi-radio-handheld:before{content:"󰐺"}.mdi-radio-off:before{content:"󱈜"}.mdi-radio-tower:before{content:"󰐻"}.mdi-radioactive:before{content:"󰐼"}.mdi-radioactive-circle:before{content:"󱡝"}.mdi-radioactive-circle-outline:before{content:"󱡞"}.mdi-radioactive-off:before{content:"󰻁"}.mdi-radiobox-blank:before{content:"󰐽"}.mdi-radiobox-indeterminate-variant:before{content:"󱱞"}.mdi-radiobox-marked:before{content:"󰐾"}.mdi-radiology-box:before{content:"󱓅"}.mdi-radiology-box-outline:before{content:"󱓆"}.mdi-radius:before{content:"󰳀"}.mdi-radius-outline:before{content:"󰳁"}.mdi-railroad-light:before{content:"󰼞"}.mdi-rake:before{content:"󱕄"}.mdi-raspberry-pi:before{content:"󰐿"}.mdi-raw:before{content:"󱨏"}.mdi-raw-off:before{content:"󱨐"}.mdi-ray-end:before{content:"󰑀"}.mdi-ray-end-arrow:before{content:"󰑁"}.mdi-ray-start:before{content:"󰑂"}.mdi-ray-start-arrow:before{content:"󰑃"}.mdi-ray-start-end:before{content:"󰑄"}.mdi-ray-start-vertex-end:before{content:"󱗘"}.mdi-ray-vertex:before{content:"󰑅"}.mdi-razor-double-edge:before{content:"󱦗"}.mdi-razor-single-edge:before{content:"󱦘"}.mdi-react:before{content:"󰜈"}.mdi-read:before{content:"󰑇"}.mdi-receipt:before{content:"󰠤"}.mdi-receipt-clock:before{content:"󱰾"}.mdi-receipt-clock-outline:before{content:"󱰿"}.mdi-receipt-outline:before{content:"󰓷"}.mdi-receipt-send:before{content:"󱱀"}.mdi-receipt-send-outline:before{content:"󱱁"}.mdi-receipt-text:before{content:"󰑉"}.mdi-receipt-text-arrow-left:before{content:"󱱂"}.mdi-receipt-text-arrow-left-outline:before{content:"󱱃"}.mdi-receipt-text-arrow-right:before{content:"󱱄"}.mdi-receipt-text-arrow-right-outline:before{content:"󱱅"}.mdi-receipt-text-check:before{content:"󱩣"}.mdi-receipt-text-check-outline:before{content:"󱩤"}.mdi-receipt-text-clock:before{content:"󱱆"}.mdi-receipt-text-clock-outline:before{content:"󱱇"}.mdi-receipt-text-edit:before{content:"󱱈"}.mdi-receipt-text-edit-outline:before{content:"󱱉"}.mdi-receipt-text-minus:before{content:"󱩥"}.mdi-receipt-text-minus-outline:before{content:"󱩦"}.mdi-receipt-text-outline:before{content:"󱧜"}.mdi-receipt-text-plus:before{content:"󱩧"}.mdi-receipt-text-plus-outline:before{content:"󱩨"}.mdi-receipt-text-remove:before{content:"󱩩"}.mdi-receipt-text-remove-outline:before{content:"󱩪"}.mdi-receipt-text-send:before{content:"󱱊"}.mdi-receipt-text-send-outline:before{content:"󱱋"}.mdi-record:before{content:"󰑊"}.mdi-record-circle:before{content:"󰻂"}.mdi-record-circle-outline:before{content:"󰻃"}.mdi-record-player:before{content:"󰦚"}.mdi-record-rec:before{content:"󰑋"}.mdi-rectangle:before{content:"󰹞"}.mdi-rectangle-outline:before{content:"󰹟"}.mdi-recycle:before{content:"󰑌"}.mdi-recycle-variant:before{content:"󱎝"}.mdi-reddit:before{content:"󰑍"}.mdi-redhat:before{content:"󱄛"}.mdi-redo:before{content:"󰑎"}.mdi-redo-variant:before{content:"󰑏"}.mdi-reflect-horizontal:before{content:"󰨎"}.mdi-reflect-vertical:before{content:"󰨏"}.mdi-refresh:before{content:"󰑐"}.mdi-refresh-auto:before{content:"󱣲"}.mdi-refresh-circle:before{content:"󱍷"}.mdi-regex:before{content:"󰑑"}.mdi-registered-trademark:before{content:"󰩧"}.mdi-reiterate:before{content:"󱖈"}.mdi-relation-many-to-many:before{content:"󱒖"}.mdi-relation-many-to-one:before{content:"󱒗"}.mdi-relation-many-to-one-or-many:before{content:"󱒘"}.mdi-relation-many-to-only-one:before{content:"󱒙"}.mdi-relation-many-to-zero-or-many:before{content:"󱒚"}.mdi-relation-many-to-zero-or-one:before{content:"󱒛"}.mdi-relation-one-or-many-to-many:before{content:"󱒜"}.mdi-relation-one-or-many-to-one:before{content:"󱒝"}.mdi-relation-one-or-many-to-one-or-many:before{content:"󱒞"}.mdi-relation-one-or-many-to-only-one:before{content:"󱒟"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"󱒠"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"󱒡"}.mdi-relation-one-to-many:before{content:"󱒢"}.mdi-relation-one-to-one:before{content:"󱒣"}.mdi-relation-one-to-one-or-many:before{content:"󱒤"}.mdi-relation-one-to-only-one:before{content:"󱒥"}.mdi-relation-one-to-zero-or-many:before{content:"󱒦"}.mdi-relation-one-to-zero-or-one:before{content:"󱒧"}.mdi-relation-only-one-to-many:before{content:"󱒨"}.mdi-relation-only-one-to-one:before{content:"󱒩"}.mdi-relation-only-one-to-one-or-many:before{content:"󱒪"}.mdi-relation-only-one-to-only-one:before{content:"󱒫"}.mdi-relation-only-one-to-zero-or-many:before{content:"󱒬"}.mdi-relation-only-one-to-zero-or-one:before{content:"󱒭"}.mdi-relation-zero-or-many-to-many:before{content:"󱒮"}.mdi-relation-zero-or-many-to-one:before{content:"󱒯"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"󱒰"}.mdi-relation-zero-or-many-to-only-one:before{content:"󱒱"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"󱒲"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"󱒳"}.mdi-relation-zero-or-one-to-many:before{content:"󱒴"}.mdi-relation-zero-or-one-to-one:before{content:"󱒵"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"󱒶"}.mdi-relation-zero-or-one-to-only-one:before{content:"󱒷"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"󱒸"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"󱒹"}.mdi-relative-scale:before{content:"󰑒"}.mdi-reload:before{content:"󰑓"}.mdi-reload-alert:before{content:"󱄋"}.mdi-reminder:before{content:"󰢌"}.mdi-remote:before{content:"󰑔"}.mdi-remote-desktop:before{content:"󰢹"}.mdi-remote-off:before{content:"󰻄"}.mdi-remote-tv:before{content:"󰻅"}.mdi-remote-tv-off:before{content:"󰻆"}.mdi-rename:before{content:"󱰘"}.mdi-rename-box:before{content:"󰑕"}.mdi-rename-box-outline:before{content:"󱰙"}.mdi-rename-outline:before{content:"󱰚"}.mdi-reorder-horizontal:before{content:"󰚈"}.mdi-reorder-vertical:before{content:"󰚉"}.mdi-repeat:before{content:"󰑖"}.mdi-repeat-off:before{content:"󰑗"}.mdi-repeat-once:before{content:"󰑘"}.mdi-repeat-variant:before{content:"󰕇"}.mdi-replay:before{content:"󰑙"}.mdi-reply:before{content:"󰑚"}.mdi-reply-all:before{content:"󰑛"}.mdi-reply-all-outline:before{content:"󰼟"}.mdi-reply-circle:before{content:"󱆮"}.mdi-reply-outline:before{content:"󰼠"}.mdi-reproduction:before{content:"󰑜"}.mdi-resistor:before{content:"󰭄"}.mdi-resistor-nodes:before{content:"󰭅"}.mdi-resize:before{content:"󰩨"}.mdi-resize-bottom-right:before{content:"󰑝"}.mdi-responsive:before{content:"󰑞"}.mdi-restart:before{content:"󰜉"}.mdi-restart-alert:before{content:"󱄌"}.mdi-restart-off:before{content:"󰶕"}.mdi-restore:before{content:"󰦛"}.mdi-restore-alert:before{content:"󱄍"}.mdi-rewind:before{content:"󰑟"}.mdi-rewind-10:before{content:"󰴪"}.mdi-rewind-15:before{content:"󱥆"}.mdi-rewind-30:before{content:"󰶖"}.mdi-rewind-45:before{content:"󱬓"}.mdi-rewind-5:before{content:"󱇹"}.mdi-rewind-60:before{content:"󱘌"}.mdi-rewind-outline:before{content:"󰜊"}.mdi-rhombus:before{content:"󰜋"}.mdi-rhombus-medium:before{content:"󰨐"}.mdi-rhombus-medium-outline:before{content:"󱓜"}.mdi-rhombus-outline:before{content:"󰜌"}.mdi-rhombus-split:before{content:"󰨑"}.mdi-rhombus-split-outline:before{content:"󱓝"}.mdi-ribbon:before{content:"󰑠"}.mdi-rice:before{content:"󰟪"}.mdi-rickshaw:before{content:"󱖻"}.mdi-rickshaw-electric:before{content:"󱖼"}.mdi-ring:before{content:"󰟫"}.mdi-rivet:before{content:"󰹠"}.mdi-road:before{content:"󰑡"}.mdi-road-variant:before{content:"󰑢"}.mdi-robber:before{content:"󱁘"}.mdi-robot:before{content:"󰚩"}.mdi-robot-angry:before{content:"󱚝"}.mdi-robot-angry-outline:before{content:"󱚞"}.mdi-robot-confused:before{content:"󱚟"}.mdi-robot-confused-outline:before{content:"󱚠"}.mdi-robot-dead:before{content:"󱚡"}.mdi-robot-dead-outline:before{content:"󱚢"}.mdi-robot-excited:before{content:"󱚣"}.mdi-robot-excited-outline:before{content:"󱚤"}.mdi-robot-happy:before{content:"󱜙"}.mdi-robot-happy-outline:before{content:"󱜚"}.mdi-robot-industrial:before{content:"󰭆"}.mdi-robot-industrial-outline:before{content:"󱨚"}.mdi-robot-love:before{content:"󱚥"}.mdi-robot-love-outline:before{content:"󱚦"}.mdi-robot-mower:before{content:"󱇷"}.mdi-robot-mower-outline:before{content:"󱇳"}.mdi-robot-off:before{content:"󱚧"}.mdi-robot-off-outline:before{content:"󱙻"}.mdi-robot-outline:before{content:"󱙺"}.mdi-robot-vacuum:before{content:"󰜍"}.mdi-robot-vacuum-alert:before{content:"󱭝"}.mdi-robot-vacuum-off:before{content:"󱰁"}.mdi-robot-vacuum-variant:before{content:"󰤈"}.mdi-robot-vacuum-variant-alert:before{content:"󱭞"}.mdi-robot-vacuum-variant-off:before{content:"󱰂"}.mdi-rocket:before{content:"󰑣"}.mdi-rocket-launch:before{content:"󱓞"}.mdi-rocket-launch-outline:before{content:"󱓟"}.mdi-rocket-outline:before{content:"󱎯"}.mdi-rodent:before{content:"󱌧"}.mdi-roller-shade:before{content:"󱩫"}.mdi-roller-shade-closed:before{content:"󱩬"}.mdi-roller-skate:before{content:"󰴫"}.mdi-roller-skate-off:before{content:"󰅅"}.mdi-rollerblade:before{content:"󰴬"}.mdi-rollerblade-off:before{content:"󰀮"}.mdi-rollupjs:before{content:"󰯀"}.mdi-rolodex:before{content:"󱪹"}.mdi-rolodex-outline:before{content:"󱪺"}.mdi-roman-numeral-1:before{content:"󱂈"}.mdi-roman-numeral-10:before{content:"󱂑"}.mdi-roman-numeral-2:before{content:"󱂉"}.mdi-roman-numeral-3:before{content:"󱂊"}.mdi-roman-numeral-4:before{content:"󱂋"}.mdi-roman-numeral-5:before{content:"󱂌"}.mdi-roman-numeral-6:before{content:"󱂍"}.mdi-roman-numeral-7:before{content:"󱂎"}.mdi-roman-numeral-8:before{content:"󱂏"}.mdi-roman-numeral-9:before{content:"󱂐"}.mdi-room-service:before{content:"󰢍"}.mdi-room-service-outline:before{content:"󰶗"}.mdi-rotate-360:before{content:"󱦙"}.mdi-rotate-3d:before{content:"󰻇"}.mdi-rotate-3d-variant:before{content:"󰑤"}.mdi-rotate-left:before{content:"󰑥"}.mdi-rotate-left-variant:before{content:"󰑦"}.mdi-rotate-orbit:before{content:"󰶘"}.mdi-rotate-right:before{content:"󰑧"}.mdi-rotate-right-variant:before{content:"󰑨"}.mdi-rounded-corner:before{content:"󰘇"}.mdi-router:before{content:"󱇢"}.mdi-router-network:before{content:"󱂇"}.mdi-router-network-wireless:before{content:"󱲗"}.mdi-router-wireless:before{content:"󰑩"}.mdi-router-wireless-off:before{content:"󱖣"}.mdi-router-wireless-settings:before{content:"󰩩"}.mdi-routes:before{content:"󰑪"}.mdi-routes-clock:before{content:"󱁙"}.mdi-rowing:before{content:"󰘈"}.mdi-rss:before{content:"󰑫"}.mdi-rss-box:before{content:"󰑬"}.mdi-rss-off:before{content:"󰼡"}.mdi-rug:before{content:"󱑵"}.mdi-rugby:before{content:"󰶙"}.mdi-ruler:before{content:"󰑭"}.mdi-ruler-square:before{content:"󰳂"}.mdi-ruler-square-compass:before{content:"󰺾"}.mdi-run:before{content:"󰜎"}.mdi-run-fast:before{content:"󰑮"}.mdi-rv-truck:before{content:"󱇔"}.mdi-sack:before{content:"󰴮"}.mdi-sack-outline:before{content:"󱱌"}.mdi-sack-percent:before{content:"󰴯"}.mdi-safe:before{content:"󰩪"}.mdi-safe-square:before{content:"󱉼"}.mdi-safe-square-outline:before{content:"󱉽"}.mdi-safety-goggles:before{content:"󰴰"}.mdi-sail-boat:before{content:"󰻈"}.mdi-sail-boat-sink:before{content:"󱫯"}.mdi-sale:before{content:"󰑯"}.mdi-sale-outline:before{content:"󱨆"}.mdi-salesforce:before{content:"󰢎"}.mdi-sass:before{content:"󰟬"}.mdi-satellite:before{content:"󰑰"}.mdi-satellite-uplink:before{content:"󰤉"}.mdi-satellite-variant:before{content:"󰑱"}.mdi-sausage:before{content:"󰢺"}.mdi-sausage-off:before{content:"󱞉"}.mdi-saw-blade:before{content:"󰹡"}.mdi-sawtooth-wave:before{content:"󱑺"}.mdi-saxophone:before{content:"󰘉"}.mdi-scale:before{content:"󰑲"}.mdi-scale-balance:before{content:"󰗑"}.mdi-scale-bathroom:before{content:"󰑳"}.mdi-scale-off:before{content:"󱁚"}.mdi-scale-unbalanced:before{content:"󱦸"}.mdi-scan-helper:before{content:"󱏘"}.mdi-scanner:before{content:"󰚫"}.mdi-scanner-off:before{content:"󰤊"}.mdi-scatter-plot:before{content:"󰻉"}.mdi-scatter-plot-outline:before{content:"󰻊"}.mdi-scent:before{content:"󱥘"}.mdi-scent-off:before{content:"󱥙"}.mdi-school:before{content:"󰑴"}.mdi-school-outline:before{content:"󱆀"}.mdi-scissors-cutting:before{content:"󰩫"}.mdi-scooter:before{content:"󱖽"}.mdi-scooter-electric:before{content:"󱖾"}.mdi-scoreboard:before{content:"󱉾"}.mdi-scoreboard-outline:before{content:"󱉿"}.mdi-screen-rotation:before{content:"󰑵"}.mdi-screen-rotation-lock:before{content:"󰑸"}.mdi-screw-flat-top:before{content:"󰷳"}.mdi-screw-lag:before{content:"󰷴"}.mdi-screw-machine-flat-top:before{content:"󰷵"}.mdi-screw-machine-round-top:before{content:"󰷶"}.mdi-screw-round-top:before{content:"󰷷"}.mdi-screwdriver:before{content:"󰑶"}.mdi-script:before{content:"󰯁"}.mdi-script-outline:before{content:"󰑷"}.mdi-script-text:before{content:"󰯂"}.mdi-script-text-key:before{content:"󱜥"}.mdi-script-text-key-outline:before{content:"󱜦"}.mdi-script-text-outline:before{content:"󰯃"}.mdi-script-text-play:before{content:"󱜧"}.mdi-script-text-play-outline:before{content:"󱜨"}.mdi-sd:before{content:"󰑹"}.mdi-seal:before{content:"󰑺"}.mdi-seal-variant:before{content:"󰿙"}.mdi-search-web:before{content:"󰜏"}.mdi-seat:before{content:"󰳃"}.mdi-seat-flat:before{content:"󰑻"}.mdi-seat-flat-angled:before{content:"󰑼"}.mdi-seat-individual-suite:before{content:"󰑽"}.mdi-seat-legroom-extra:before{content:"󰑾"}.mdi-seat-legroom-normal:before{content:"󰑿"}.mdi-seat-legroom-reduced:before{content:"󰒀"}.mdi-seat-outline:before{content:"󰳄"}.mdi-seat-passenger:before{content:"󱉉"}.mdi-seat-recline-extra:before{content:"󰒁"}.mdi-seat-recline-normal:before{content:"󰒂"}.mdi-seatbelt:before{content:"󰳅"}.mdi-security:before{content:"󰒃"}.mdi-security-network:before{content:"󰒄"}.mdi-seed:before{content:"󰹢"}.mdi-seed-off:before{content:"󱏽"}.mdi-seed-off-outline:before{content:"󱏾"}.mdi-seed-outline:before{content:"󰹣"}.mdi-seed-plus:before{content:"󱩭"}.mdi-seed-plus-outline:before{content:"󱩮"}.mdi-seesaw:before{content:"󱖤"}.mdi-segment:before{content:"󰻋"}.mdi-select:before{content:"󰒅"}.mdi-select-all:before{content:"󰒆"}.mdi-select-arrow-down:before{content:"󱭙"}.mdi-select-arrow-up:before{content:"󱭘"}.mdi-select-color:before{content:"󰴱"}.mdi-select-compare:before{content:"󰫙"}.mdi-select-drag:before{content:"󰩬"}.mdi-select-group:before{content:"󰾂"}.mdi-select-inverse:before{content:"󰒇"}.mdi-select-marker:before{content:"󱊀"}.mdi-select-multiple:before{content:"󱊁"}.mdi-select-multiple-marker:before{content:"󱊂"}.mdi-select-off:before{content:"󰒈"}.mdi-select-place:before{content:"󰿚"}.mdi-select-remove:before{content:"󱟁"}.mdi-select-search:before{content:"󱈄"}.mdi-selection:before{content:"󰒉"}.mdi-selection-drag:before{content:"󰩭"}.mdi-selection-ellipse:before{content:"󰴲"}.mdi-selection-ellipse-arrow-inside:before{content:"󰼢"}.mdi-selection-ellipse-remove:before{content:"󱟂"}.mdi-selection-marker:before{content:"󱊃"}.mdi-selection-multiple:before{content:"󱊅"}.mdi-selection-multiple-marker:before{content:"󱊄"}.mdi-selection-off:before{content:"󰝷"}.mdi-selection-remove:before{content:"󱟃"}.mdi-selection-search:before{content:"󱈅"}.mdi-semantic-web:before{content:"󱌖"}.mdi-send:before{content:"󰒊"}.mdi-send-check:before{content:"󱅡"}.mdi-send-check-outline:before{content:"󱅢"}.mdi-send-circle:before{content:"󰷸"}.mdi-send-circle-outline:before{content:"󰷹"}.mdi-send-clock:before{content:"󱅣"}.mdi-send-clock-outline:before{content:"󱅤"}.mdi-send-lock:before{content:"󰟭"}.mdi-send-lock-outline:before{content:"󱅦"}.mdi-send-outline:before{content:"󱅥"}.mdi-send-variant:before{content:"󱱍"}.mdi-send-variant-clock:before{content:"󱱾"}.mdi-send-variant-clock-outline:before{content:"󱱿"}.mdi-send-variant-outline:before{content:"󱱎"}.mdi-serial-port:before{content:"󰙜"}.mdi-server:before{content:"󰒋"}.mdi-server-minus:before{content:"󰒌"}.mdi-server-minus-outline:before{content:"󱲘"}.mdi-server-network:before{content:"󰒍"}.mdi-server-network-off:before{content:"󰒎"}.mdi-server-network-outline:before{content:"󱲙"}.mdi-server-off:before{content:"󰒏"}.mdi-server-outline:before{content:"󱲚"}.mdi-server-plus:before{content:"󰒐"}.mdi-server-plus-outline:before{content:"󱲛"}.mdi-server-remove:before{content:"󰒑"}.mdi-server-security:before{content:"󰒒"}.mdi-set-all:before{content:"󰝸"}.mdi-set-center:before{content:"󰝹"}.mdi-set-center-right:before{content:"󰝺"}.mdi-set-left:before{content:"󰝻"}.mdi-set-left-center:before{content:"󰝼"}.mdi-set-left-right:before{content:"󰝽"}.mdi-set-merge:before{content:"󱓠"}.mdi-set-none:before{content:"󰝾"}.mdi-set-right:before{content:"󰝿"}.mdi-set-split:before{content:"󱓡"}.mdi-set-square:before{content:"󱑝"}.mdi-set-top-box:before{content:"󰦟"}.mdi-settings-helper:before{content:"󰩮"}.mdi-shaker:before{content:"󱄎"}.mdi-shaker-outline:before{content:"󱄏"}.mdi-shape:before{content:"󰠱"}.mdi-shape-circle-plus:before{content:"󰙝"}.mdi-shape-outline:before{content:"󰠲"}.mdi-shape-oval-plus:before{content:"󱇺"}.mdi-shape-plus:before{content:"󰒕"}.mdi-shape-plus-outline:before{content:"󱱏"}.mdi-shape-polygon-plus:before{content:"󰙞"}.mdi-shape-rectangle-plus:before{content:"󰙟"}.mdi-shape-square-plus:before{content:"󰙠"}.mdi-shape-square-rounded-plus:before{content:"󱓺"}.mdi-share:before{content:"󰒖"}.mdi-share-all:before{content:"󱇴"}.mdi-share-all-outline:before{content:"󱇵"}.mdi-share-circle:before{content:"󱆭"}.mdi-share-off:before{content:"󰼣"}.mdi-share-off-outline:before{content:"󰼤"}.mdi-share-outline:before{content:"󰤲"}.mdi-share-variant:before{content:"󰒗"}.mdi-share-variant-outline:before{content:"󱔔"}.mdi-shark:before{content:"󱢺"}.mdi-shark-fin:before{content:"󱙳"}.mdi-shark-fin-outline:before{content:"󱙴"}.mdi-shark-off:before{content:"󱢻"}.mdi-sheep:before{content:"󰳆"}.mdi-shield:before{content:"󰒘"}.mdi-shield-account:before{content:"󰢏"}.mdi-shield-account-outline:before{content:"󰨒"}.mdi-shield-account-variant:before{content:"󱖧"}.mdi-shield-account-variant-outline:before{content:"󱖨"}.mdi-shield-airplane:before{content:"󰚻"}.mdi-shield-airplane-outline:before{content:"󰳇"}.mdi-shield-alert:before{content:"󰻌"}.mdi-shield-alert-outline:before{content:"󰻍"}.mdi-shield-bug:before{content:"󱏚"}.mdi-shield-bug-outline:before{content:"󱏛"}.mdi-shield-car:before{content:"󰾃"}.mdi-shield-check:before{content:"󰕥"}.mdi-shield-check-outline:before{content:"󰳈"}.mdi-shield-cross:before{content:"󰳉"}.mdi-shield-cross-outline:before{content:"󰳊"}.mdi-shield-crown:before{content:"󱢼"}.mdi-shield-crown-outline:before{content:"󱢽"}.mdi-shield-edit:before{content:"󱆠"}.mdi-shield-edit-outline:before{content:"󱆡"}.mdi-shield-half:before{content:"󱍠"}.mdi-shield-half-full:before{content:"󰞀"}.mdi-shield-home:before{content:"󰚊"}.mdi-shield-home-outline:before{content:"󰳋"}.mdi-shield-key:before{content:"󰯄"}.mdi-shield-key-outline:before{content:"󰯅"}.mdi-shield-link-variant:before{content:"󰴳"}.mdi-shield-link-variant-outline:before{content:"󰴴"}.mdi-shield-lock:before{content:"󰦝"}.mdi-shield-lock-open:before{content:"󱦚"}.mdi-shield-lock-open-outline:before{content:"󱦛"}.mdi-shield-lock-outline:before{content:"󰳌"}.mdi-shield-moon:before{content:"󱠨"}.mdi-shield-moon-outline:before{content:"󱠩"}.mdi-shield-off:before{content:"󰦞"}.mdi-shield-off-outline:before{content:"󰦜"}.mdi-shield-outline:before{content:"󰒙"}.mdi-shield-plus:before{content:"󰫚"}.mdi-shield-plus-outline:before{content:"󰫛"}.mdi-shield-refresh:before{content:"󰂪"}.mdi-shield-refresh-outline:before{content:"󰇠"}.mdi-shield-remove:before{content:"󰫜"}.mdi-shield-remove-outline:before{content:"󰫝"}.mdi-shield-search:before{content:"󰶚"}.mdi-shield-star:before{content:"󱄻"}.mdi-shield-star-outline:before{content:"󱄼"}.mdi-shield-sun:before{content:"󱁝"}.mdi-shield-sun-outline:before{content:"󱁞"}.mdi-shield-sword:before{content:"󱢾"}.mdi-shield-sword-outline:before{content:"󱢿"}.mdi-shield-sync:before{content:"󱆢"}.mdi-shield-sync-outline:before{content:"󱆣"}.mdi-shimmer:before{content:"󱕅"}.mdi-ship-wheel:before{content:"󰠳"}.mdi-shipping-pallet:before{content:"󱡎"}.mdi-shoe-ballet:before{content:"󱗊"}.mdi-shoe-cleat:before{content:"󱗇"}.mdi-shoe-formal:before{content:"󰭇"}.mdi-shoe-heel:before{content:"󰭈"}.mdi-shoe-print:before{content:"󰷺"}.mdi-shoe-sneaker:before{content:"󱗈"}.mdi-shopping:before{content:"󰒚"}.mdi-shopping-music:before{content:"󰒛"}.mdi-shopping-outline:before{content:"󱇕"}.mdi-shopping-search:before{content:"󰾄"}.mdi-shopping-search-outline:before{content:"󱩯"}.mdi-shore:before{content:"󱓹"}.mdi-shovel:before{content:"󰜐"}.mdi-shovel-off:before{content:"󰜑"}.mdi-shower:before{content:"󰦠"}.mdi-shower-head:before{content:"󰦡"}.mdi-shredder:before{content:"󰒜"}.mdi-shuffle:before{content:"󰒝"}.mdi-shuffle-disabled:before{content:"󰒞"}.mdi-shuffle-variant:before{content:"󰒟"}.mdi-shuriken:before{content:"󱍿"}.mdi-sickle:before{content:"󱣀"}.mdi-sigma:before{content:"󰒠"}.mdi-sigma-lower:before{content:"󰘫"}.mdi-sign-caution:before{content:"󰒡"}.mdi-sign-direction:before{content:"󰞁"}.mdi-sign-direction-minus:before{content:"󱀀"}.mdi-sign-direction-plus:before{content:"󰿜"}.mdi-sign-direction-remove:before{content:"󰿝"}.mdi-sign-language:before{content:"󱭍"}.mdi-sign-language-outline:before{content:"󱭎"}.mdi-sign-pole:before{content:"󱓸"}.mdi-sign-real-estate:before{content:"󱄘"}.mdi-sign-text:before{content:"󰞂"}.mdi-sign-yield:before{content:"󱮯"}.mdi-signal:before{content:"󰒢"}.mdi-signal-2g:before{content:"󰜒"}.mdi-signal-3g:before{content:"󰜓"}.mdi-signal-4g:before{content:"󰜔"}.mdi-signal-5g:before{content:"󰩯"}.mdi-signal-cellular-1:before{content:"󰢼"}.mdi-signal-cellular-2:before{content:"󰢽"}.mdi-signal-cellular-3:before{content:"󰢾"}.mdi-signal-cellular-outline:before{content:"󰢿"}.mdi-signal-distance-variant:before{content:"󰹤"}.mdi-signal-hspa:before{content:"󰜕"}.mdi-signal-hspa-plus:before{content:"󰜖"}.mdi-signal-off:before{content:"󰞃"}.mdi-signal-variant:before{content:"󰘊"}.mdi-signature:before{content:"󰷻"}.mdi-signature-freehand:before{content:"󰷼"}.mdi-signature-image:before{content:"󰷽"}.mdi-signature-text:before{content:"󰷾"}.mdi-silo:before{content:"󱮟"}.mdi-silo-outline:before{content:"󰭉"}.mdi-silverware:before{content:"󰒣"}.mdi-silverware-clean:before{content:"󰿞"}.mdi-silverware-fork:before{content:"󰒤"}.mdi-silverware-fork-knife:before{content:"󰩰"}.mdi-silverware-spoon:before{content:"󰒥"}.mdi-silverware-variant:before{content:"󰒦"}.mdi-sim:before{content:"󰒧"}.mdi-sim-alert:before{content:"󰒨"}.mdi-sim-alert-outline:before{content:"󱗓"}.mdi-sim-off:before{content:"󰒩"}.mdi-sim-off-outline:before{content:"󱗔"}.mdi-sim-outline:before{content:"󱗕"}.mdi-simple-icons:before{content:"󱌝"}.mdi-sina-weibo:before{content:"󰫟"}.mdi-sine-wave:before{content:"󰥛"}.mdi-sitemap:before{content:"󰒪"}.mdi-sitemap-outline:before{content:"󱦜"}.mdi-size-l:before{content:"󱎦"}.mdi-size-m:before{content:"󱎥"}.mdi-size-s:before{content:"󱎤"}.mdi-size-xl:before{content:"󱎧"}.mdi-size-xs:before{content:"󱎣"}.mdi-size-xxl:before{content:"󱎨"}.mdi-size-xxs:before{content:"󱎢"}.mdi-size-xxxl:before{content:"󱎩"}.mdi-skate:before{content:"󰴵"}.mdi-skate-off:before{content:"󰚙"}.mdi-skateboard:before{content:"󱓂"}.mdi-skateboarding:before{content:"󰔁"}.mdi-skew-less:before{content:"󰴶"}.mdi-skew-more:before{content:"󰴷"}.mdi-ski:before{content:"󱌄"}.mdi-ski-cross-country:before{content:"󱌅"}.mdi-ski-water:before{content:"󱌆"}.mdi-skip-backward:before{content:"󰒫"}.mdi-skip-backward-outline:before{content:"󰼥"}.mdi-skip-forward:before{content:"󰒬"}.mdi-skip-forward-outline:before{content:"󰼦"}.mdi-skip-next:before{content:"󰒭"}.mdi-skip-next-circle:before{content:"󰙡"}.mdi-skip-next-circle-outline:before{content:"󰙢"}.mdi-skip-next-outline:before{content:"󰼧"}.mdi-skip-previous:before{content:"󰒮"}.mdi-skip-previous-circle:before{content:"󰙣"}.mdi-skip-previous-circle-outline:before{content:"󰙤"}.mdi-skip-previous-outline:before{content:"󰼨"}.mdi-skull:before{content:"󰚌"}.mdi-skull-crossbones:before{content:"󰯆"}.mdi-skull-crossbones-outline:before{content:"󰯇"}.mdi-skull-outline:before{content:"󰯈"}.mdi-skull-scan:before{content:"󱓇"}.mdi-skull-scan-outline:before{content:"󱓈"}.mdi-skype:before{content:"󰒯"}.mdi-skype-business:before{content:"󰒰"}.mdi-slack:before{content:"󰒱"}.mdi-slash-forward:before{content:"󰿟"}.mdi-slash-forward-box:before{content:"󰿠"}.mdi-sledding:before{content:"󰐛"}.mdi-sleep:before{content:"󰒲"}.mdi-sleep-off:before{content:"󰒳"}.mdi-slide:before{content:"󱖥"}.mdi-slope-downhill:before{content:"󰷿"}.mdi-slope-uphill:before{content:"󰸀"}.mdi-slot-machine:before{content:"󱄔"}.mdi-slot-machine-outline:before{content:"󱄕"}.mdi-smart-card:before{content:"󱂽"}.mdi-smart-card-off:before{content:"󱣷"}.mdi-smart-card-off-outline:before{content:"󱣸"}.mdi-smart-card-outline:before{content:"󱂾"}.mdi-smart-card-reader:before{content:"󱂿"}.mdi-smart-card-reader-outline:before{content:"󱃀"}.mdi-smog:before{content:"󰩱"}.mdi-smoke:before{content:"󱞙"}.mdi-smoke-detector:before{content:"󰎒"}.mdi-smoke-detector-alert:before{content:"󱤮"}.mdi-smoke-detector-alert-outline:before{content:"󱤯"}.mdi-smoke-detector-off:before{content:"󱠉"}.mdi-smoke-detector-off-outline:before{content:"󱠊"}.mdi-smoke-detector-outline:before{content:"󱠈"}.mdi-smoke-detector-variant:before{content:"󱠋"}.mdi-smoke-detector-variant-alert:before{content:"󱤰"}.mdi-smoke-detector-variant-off:before{content:"󱠌"}.mdi-smoking:before{content:"󰒴"}.mdi-smoking-off:before{content:"󰒵"}.mdi-smoking-pipe:before{content:"󱐍"}.mdi-smoking-pipe-off:before{content:"󱐨"}.mdi-snail:before{content:"󱙷"}.mdi-snake:before{content:"󱔎"}.mdi-snapchat:before{content:"󰒶"}.mdi-snowboard:before{content:"󱌇"}.mdi-snowflake:before{content:"󰜗"}.mdi-snowflake-alert:before{content:"󰼩"}.mdi-snowflake-check:before{content:"󱩰"}.mdi-snowflake-melt:before{content:"󱋋"}.mdi-snowflake-off:before{content:"󱓣"}.mdi-snowflake-thermometer:before{content:"󱩱"}.mdi-snowflake-variant:before{content:"󰼪"}.mdi-snowman:before{content:"󰒷"}.mdi-snowmobile:before{content:"󰛝"}.mdi-snowshoeing:before{content:"󱩲"}.mdi-soccer:before{content:"󰒸"}.mdi-soccer-field:before{content:"󰠴"}.mdi-social-distance-2-meters:before{content:"󱕹"}.mdi-social-distance-6-feet:before{content:"󱕺"}.mdi-sofa:before{content:"󰒹"}.mdi-sofa-outline:before{content:"󱕭"}.mdi-sofa-single:before{content:"󱕮"}.mdi-sofa-single-outline:before{content:"󱕯"}.mdi-solar-panel:before{content:"󰶛"}.mdi-solar-panel-large:before{content:"󰶜"}.mdi-solar-power:before{content:"󰩲"}.mdi-solar-power-variant:before{content:"󱩳"}.mdi-solar-power-variant-outline:before{content:"󱩴"}.mdi-soldering-iron:before{content:"󱂒"}.mdi-solid:before{content:"󰚍"}.mdi-sony-playstation:before{content:"󰐔"}.mdi-sort:before{content:"󰒺"}.mdi-sort-alphabetical-ascending:before{content:"󰖽"}.mdi-sort-alphabetical-ascending-variant:before{content:"󱅈"}.mdi-sort-alphabetical-descending:before{content:"󰖿"}.mdi-sort-alphabetical-descending-variant:before{content:"󱅉"}.mdi-sort-alphabetical-variant:before{content:"󰒻"}.mdi-sort-ascending:before{content:"󰒼"}.mdi-sort-bool-ascending:before{content:"󱎅"}.mdi-sort-bool-ascending-variant:before{content:"󱎆"}.mdi-sort-bool-descending:before{content:"󱎇"}.mdi-sort-bool-descending-variant:before{content:"󱎈"}.mdi-sort-calendar-ascending:before{content:"󱕇"}.mdi-sort-calendar-descending:before{content:"󱕈"}.mdi-sort-clock-ascending:before{content:"󱕉"}.mdi-sort-clock-ascending-outline:before{content:"󱕊"}.mdi-sort-clock-descending:before{content:"󱕋"}.mdi-sort-clock-descending-outline:before{content:"󱕌"}.mdi-sort-descending:before{content:"󰒽"}.mdi-sort-numeric-ascending:before{content:"󱎉"}.mdi-sort-numeric-ascending-variant:before{content:"󰤍"}.mdi-sort-numeric-descending:before{content:"󱎊"}.mdi-sort-numeric-descending-variant:before{content:"󰫒"}.mdi-sort-numeric-variant:before{content:"󰒾"}.mdi-sort-reverse-variant:before{content:"󰌼"}.mdi-sort-variant:before{content:"󰒿"}.mdi-sort-variant-lock:before{content:"󰳍"}.mdi-sort-variant-lock-open:before{content:"󰳎"}.mdi-sort-variant-off:before{content:"󱪻"}.mdi-sort-variant-remove:before{content:"󱅇"}.mdi-soundbar:before{content:"󱟛"}.mdi-soundcloud:before{content:"󰓀"}.mdi-source-branch:before{content:"󰘬"}.mdi-source-branch-check:before{content:"󱓏"}.mdi-source-branch-minus:before{content:"󱓋"}.mdi-source-branch-plus:before{content:"󱓊"}.mdi-source-branch-refresh:before{content:"󱓍"}.mdi-source-branch-remove:before{content:"󱓌"}.mdi-source-branch-sync:before{content:"󱓎"}.mdi-source-commit:before{content:"󰜘"}.mdi-source-commit-end:before{content:"󰜙"}.mdi-source-commit-end-local:before{content:"󰜚"}.mdi-source-commit-local:before{content:"󰜛"}.mdi-source-commit-next-local:before{content:"󰜜"}.mdi-source-commit-start:before{content:"󰜝"}.mdi-source-commit-start-next-local:before{content:"󰜞"}.mdi-source-fork:before{content:"󰓁"}.mdi-source-merge:before{content:"󰘭"}.mdi-source-pull:before{content:"󰓂"}.mdi-source-repository:before{content:"󰳏"}.mdi-source-repository-multiple:before{content:"󰳐"}.mdi-soy-sauce:before{content:"󰟮"}.mdi-soy-sauce-off:before{content:"󱏼"}.mdi-spa:before{content:"󰳑"}.mdi-spa-outline:before{content:"󰳒"}.mdi-space-invaders:before{content:"󰯉"}.mdi-space-station:before{content:"󱎃"}.mdi-spade:before{content:"󰹥"}.mdi-speaker:before{content:"󰓃"}.mdi-speaker-bluetooth:before{content:"󰦢"}.mdi-speaker-message:before{content:"󱬑"}.mdi-speaker-multiple:before{content:"󰴸"}.mdi-speaker-off:before{content:"󰓄"}.mdi-speaker-pause:before{content:"󱭳"}.mdi-speaker-play:before{content:"󱭲"}.mdi-speaker-stop:before{content:"󱭴"}.mdi-speaker-wireless:before{content:"󰜟"}.mdi-spear:before{content:"󱡅"}.mdi-speedometer:before{content:"󰓅"}.mdi-speedometer-medium:before{content:"󰾅"}.mdi-speedometer-slow:before{content:"󰾆"}.mdi-spellcheck:before{content:"󰓆"}.mdi-sphere:before{content:"󱥔"}.mdi-sphere-off:before{content:"󱥕"}.mdi-spider:before{content:"󱇪"}.mdi-spider-outline:before{content:"󱱵"}.mdi-spider-thread:before{content:"󱇫"}.mdi-spider-web:before{content:"󰯊"}.mdi-spirit-level:before{content:"󱓱"}.mdi-spoon-sugar:before{content:"󱐩"}.mdi-spotify:before{content:"󰓇"}.mdi-spotlight:before{content:"󰓈"}.mdi-spotlight-beam:before{content:"󰓉"}.mdi-spray:before{content:"󰙥"}.mdi-spray-bottle:before{content:"󰫠"}.mdi-sprinkler:before{content:"󱁟"}.mdi-sprinkler-fire:before{content:"󱦝"}.mdi-sprinkler-variant:before{content:"󱁠"}.mdi-sprout:before{content:"󰹦"}.mdi-sprout-outline:before{content:"󰹧"}.mdi-square:before{content:"󰝤"}.mdi-square-circle:before{content:"󱔀"}.mdi-square-circle-outline:before{content:"󱱐"}.mdi-square-edit-outline:before{content:"󰤌"}.mdi-square-medium:before{content:"󰨓"}.mdi-square-medium-outline:before{content:"󰨔"}.mdi-square-off:before{content:"󱋮"}.mdi-square-off-outline:before{content:"󱋯"}.mdi-square-opacity:before{content:"󱡔"}.mdi-square-outline:before{content:"󰝣"}.mdi-square-root:before{content:"󰞄"}.mdi-square-root-box:before{content:"󰦣"}.mdi-square-rounded:before{content:"󱓻"}.mdi-square-rounded-badge:before{content:"󱨇"}.mdi-square-rounded-badge-outline:before{content:"󱨈"}.mdi-square-rounded-outline:before{content:"󱓼"}.mdi-square-small:before{content:"󰨕"}.mdi-square-wave:before{content:"󱑻"}.mdi-squeegee:before{content:"󰫡"}.mdi-ssh:before{content:"󰣀"}.mdi-stack-exchange:before{content:"󰘋"}.mdi-stack-overflow:before{content:"󰓌"}.mdi-stackpath:before{content:"󰍙"}.mdi-stadium:before{content:"󰿹"}.mdi-stadium-outline:before{content:"󱬃"}.mdi-stadium-variant:before{content:"󰜠"}.mdi-stairs:before{content:"󰓍"}.mdi-stairs-box:before{content:"󱎞"}.mdi-stairs-down:before{content:"󱊾"}.mdi-stairs-up:before{content:"󱊽"}.mdi-stamper:before{content:"󰴹"}.mdi-standard-definition:before{content:"󰟯"}.mdi-star:before{content:"󰓎"}.mdi-star-box:before{content:"󰩳"}.mdi-star-box-multiple:before{content:"󱊆"}.mdi-star-box-multiple-outline:before{content:"󱊇"}.mdi-star-box-outline:before{content:"󰩴"}.mdi-star-check:before{content:"󱕦"}.mdi-star-check-outline:before{content:"󱕪"}.mdi-star-circle:before{content:"󰓏"}.mdi-star-circle-outline:before{content:"󰦤"}.mdi-star-cog:before{content:"󱙨"}.mdi-star-cog-outline:before{content:"󱙩"}.mdi-star-crescent:before{content:"󰥹"}.mdi-star-david:before{content:"󰥺"}.mdi-star-face:before{content:"󰦥"}.mdi-star-four-points:before{content:"󰫢"}.mdi-star-four-points-box:before{content:"󱱑"}.mdi-star-four-points-box-outline:before{content:"󱱒"}.mdi-star-four-points-circle:before{content:"󱱓"}.mdi-star-four-points-circle-outline:before{content:"󱱔"}.mdi-star-four-points-outline:before{content:"󰫣"}.mdi-star-four-points-small:before{content:"󱱕"}.mdi-star-half:before{content:"󰉆"}.mdi-star-half-full:before{content:"󰓐"}.mdi-star-minus:before{content:"󱕤"}.mdi-star-minus-outline:before{content:"󱕨"}.mdi-star-off:before{content:"󰓑"}.mdi-star-off-outline:before{content:"󱕛"}.mdi-star-outline:before{content:"󰓒"}.mdi-star-plus:before{content:"󱕣"}.mdi-star-plus-outline:before{content:"󱕧"}.mdi-star-remove:before{content:"󱕥"}.mdi-star-remove-outline:before{content:"󱕩"}.mdi-star-settings:before{content:"󱙪"}.mdi-star-settings-outline:before{content:"󱙫"}.mdi-star-shooting:before{content:"󱝁"}.mdi-star-shooting-outline:before{content:"󱝂"}.mdi-star-three-points:before{content:"󰫤"}.mdi-star-three-points-outline:before{content:"󰫥"}.mdi-state-machine:before{content:"󱇯"}.mdi-steam:before{content:"󰓓"}.mdi-steering:before{content:"󰓔"}.mdi-steering-off:before{content:"󰤎"}.mdi-step-backward:before{content:"󰓕"}.mdi-step-backward-2:before{content:"󰓖"}.mdi-step-forward:before{content:"󰓗"}.mdi-step-forward-2:before{content:"󰓘"}.mdi-stethoscope:before{content:"󰓙"}.mdi-sticker:before{content:"󱍤"}.mdi-sticker-alert:before{content:"󱍥"}.mdi-sticker-alert-outline:before{content:"󱍦"}.mdi-sticker-check:before{content:"󱍧"}.mdi-sticker-check-outline:before{content:"󱍨"}.mdi-sticker-circle-outline:before{content:"󰗐"}.mdi-sticker-emoji:before{content:"󰞅"}.mdi-sticker-minus:before{content:"󱍩"}.mdi-sticker-minus-outline:before{content:"󱍪"}.mdi-sticker-outline:before{content:"󱍫"}.mdi-sticker-plus:before{content:"󱍬"}.mdi-sticker-plus-outline:before{content:"󱍭"}.mdi-sticker-remove:before{content:"󱍮"}.mdi-sticker-remove-outline:before{content:"󱍯"}.mdi-sticker-text:before{content:"󱞎"}.mdi-sticker-text-outline:before{content:"󱞏"}.mdi-stocking:before{content:"󰓚"}.mdi-stomach:before{content:"󱂓"}.mdi-stool:before{content:"󱥝"}.mdi-stool-outline:before{content:"󱥞"}.mdi-stop:before{content:"󰓛"}.mdi-stop-circle:before{content:"󰙦"}.mdi-stop-circle-outline:before{content:"󰙧"}.mdi-storage-tank:before{content:"󱩵"}.mdi-storage-tank-outline:before{content:"󱩶"}.mdi-store:before{content:"󰓜"}.mdi-store-24-hour:before{content:"󰓝"}.mdi-store-alert:before{content:"󱣁"}.mdi-store-alert-outline:before{content:"󱣂"}.mdi-store-check:before{content:"󱣃"}.mdi-store-check-outline:before{content:"󱣄"}.mdi-store-clock:before{content:"󱣅"}.mdi-store-clock-outline:before{content:"󱣆"}.mdi-store-cog:before{content:"󱣇"}.mdi-store-cog-outline:before{content:"󱣈"}.mdi-store-edit:before{content:"󱣉"}.mdi-store-edit-outline:before{content:"󱣊"}.mdi-store-marker:before{content:"󱣋"}.mdi-store-marker-outline:before{content:"󱣌"}.mdi-store-minus:before{content:"󱙞"}.mdi-store-minus-outline:before{content:"󱣍"}.mdi-store-off:before{content:"󱣎"}.mdi-store-off-outline:before{content:"󱣏"}.mdi-store-outline:before{content:"󱍡"}.mdi-store-plus:before{content:"󱙟"}.mdi-store-plus-outline:before{content:"󱣐"}.mdi-store-remove:before{content:"󱙠"}.mdi-store-remove-outline:before{content:"󱣑"}.mdi-store-search:before{content:"󱣒"}.mdi-store-search-outline:before{content:"󱣓"}.mdi-store-settings:before{content:"󱣔"}.mdi-store-settings-outline:before{content:"󱣕"}.mdi-storefront:before{content:"󰟇"}.mdi-storefront-check:before{content:"󱭽"}.mdi-storefront-check-outline:before{content:"󱭾"}.mdi-storefront-edit:before{content:"󱭿"}.mdi-storefront-edit-outline:before{content:"󱮀"}.mdi-storefront-minus:before{content:"󱮃"}.mdi-storefront-minus-outline:before{content:"󱮄"}.mdi-storefront-outline:before{content:"󱃁"}.mdi-storefront-plus:before{content:"󱮁"}.mdi-storefront-plus-outline:before{content:"󱮂"}.mdi-storefront-remove:before{content:"󱮅"}.mdi-storefront-remove-outline:before{content:"󱮆"}.mdi-stove:before{content:"󰓞"}.mdi-strategy:before{content:"󱇖"}.mdi-stretch-to-page:before{content:"󰼫"}.mdi-stretch-to-page-outline:before{content:"󰼬"}.mdi-string-lights:before{content:"󱊺"}.mdi-string-lights-off:before{content:"󱊻"}.mdi-subdirectory-arrow-left:before{content:"󰘌"}.mdi-subdirectory-arrow-right:before{content:"󰘍"}.mdi-submarine:before{content:"󱕬"}.mdi-subtitles:before{content:"󰨖"}.mdi-subtitles-outline:before{content:"󰨗"}.mdi-subway:before{content:"󰚬"}.mdi-subway-alert-variant:before{content:"󰶝"}.mdi-subway-variant:before{content:"󰓟"}.mdi-summit:before{content:"󰞆"}.mdi-sun-angle:before{content:"󱬧"}.mdi-sun-angle-outline:before{content:"󱬨"}.mdi-sun-clock:before{content:"󱩷"}.mdi-sun-clock-outline:before{content:"󱩸"}.mdi-sun-compass:before{content:"󱦥"}.mdi-sun-snowflake:before{content:"󱞖"}.mdi-sun-snowflake-variant:before{content:"󱩹"}.mdi-sun-thermometer:before{content:"󱣖"}.mdi-sun-thermometer-outline:before{content:"󱣗"}.mdi-sun-wireless:before{content:"󱟾"}.mdi-sun-wireless-outline:before{content:"󱟿"}.mdi-sunglasses:before{content:"󰓠"}.mdi-surfing:before{content:"󱝆"}.mdi-surround-sound:before{content:"󰗅"}.mdi-surround-sound-2-0:before{content:"󰟰"}.mdi-surround-sound-2-1:before{content:"󱜩"}.mdi-surround-sound-3-1:before{content:"󰟱"}.mdi-surround-sound-5-1:before{content:"󰟲"}.mdi-surround-sound-5-1-2:before{content:"󱜪"}.mdi-surround-sound-7-1:before{content:"󰟳"}.mdi-svg:before{content:"󰜡"}.mdi-swap-horizontal:before{content:"󰓡"}.mdi-swap-horizontal-bold:before{content:"󰯍"}.mdi-swap-horizontal-circle:before{content:"󰿡"}.mdi-swap-horizontal-circle-outline:before{content:"󰿢"}.mdi-swap-horizontal-variant:before{content:"󰣁"}.mdi-swap-vertical:before{content:"󰓢"}.mdi-swap-vertical-bold:before{content:"󰯎"}.mdi-swap-vertical-circle:before{content:"󰿣"}.mdi-swap-vertical-circle-outline:before{content:"󰿤"}.mdi-swap-vertical-variant:before{content:"󰣂"}.mdi-swim:before{content:"󰓣"}.mdi-switch:before{content:"󰓤"}.mdi-sword:before{content:"󰓥"}.mdi-sword-cross:before{content:"󰞇"}.mdi-syllabary-hangul:before{content:"󱌳"}.mdi-syllabary-hiragana:before{content:"󱌴"}.mdi-syllabary-katakana:before{content:"󱌵"}.mdi-syllabary-katakana-halfwidth:before{content:"󱌶"}.mdi-symbol:before{content:"󱔁"}.mdi-symfony:before{content:"󰫦"}.mdi-synagogue:before{content:"󱬄"}.mdi-synagogue-outline:before{content:"󱬅"}.mdi-sync:before{content:"󰓦"}.mdi-sync-alert:before{content:"󰓧"}.mdi-sync-circle:before{content:"󱍸"}.mdi-sync-off:before{content:"󰓨"}.mdi-tab:before{content:"󰓩"}.mdi-tab-minus:before{content:"󰭋"}.mdi-tab-plus:before{content:"󰝜"}.mdi-tab-remove:before{content:"󰭌"}.mdi-tab-search:before{content:"󱦞"}.mdi-tab-unselected:before{content:"󰓪"}.mdi-table:before{content:"󰓫"}.mdi-table-account:before{content:"󱎹"}.mdi-table-alert:before{content:"󱎺"}.mdi-table-arrow-down:before{content:"󱎻"}.mdi-table-arrow-left:before{content:"󱎼"}.mdi-table-arrow-right:before{content:"󱎽"}.mdi-table-arrow-up:before{content:"󱎾"}.mdi-table-border:before{content:"󰨘"}.mdi-table-cancel:before{content:"󱎿"}.mdi-table-chair:before{content:"󱁡"}.mdi-table-check:before{content:"󱏀"}.mdi-table-clock:before{content:"󱏁"}.mdi-table-cog:before{content:"󱏂"}.mdi-table-column:before{content:"󰠵"}.mdi-table-column-plus-after:before{content:"󰓬"}.mdi-table-column-plus-before:before{content:"󰓭"}.mdi-table-column-remove:before{content:"󰓮"}.mdi-table-column-width:before{content:"󰓯"}.mdi-table-edit:before{content:"󰓰"}.mdi-table-eye:before{content:"󱂔"}.mdi-table-eye-off:before{content:"󱏃"}.mdi-table-filter:before{content:"󱮌"}.mdi-table-furniture:before{content:"󰖼"}.mdi-table-headers-eye:before{content:"󱈝"}.mdi-table-headers-eye-off:before{content:"󱈞"}.mdi-table-heart:before{content:"󱏄"}.mdi-table-key:before{content:"󱏅"}.mdi-table-large:before{content:"󰓱"}.mdi-table-large-plus:before{content:"󰾇"}.mdi-table-large-remove:before{content:"󰾈"}.mdi-table-lock:before{content:"󱏆"}.mdi-table-merge-cells:before{content:"󰦦"}.mdi-table-minus:before{content:"󱏇"}.mdi-table-multiple:before{content:"󱏈"}.mdi-table-network:before{content:"󱏉"}.mdi-table-of-contents:before{content:"󰠶"}.mdi-table-off:before{content:"󱏊"}.mdi-table-picnic:before{content:"󱝃"}.mdi-table-pivot:before{content:"󱠼"}.mdi-table-plus:before{content:"󰩵"}.mdi-table-question:before{content:"󱬡"}.mdi-table-refresh:before{content:"󱎠"}.mdi-table-remove:before{content:"󰩶"}.mdi-table-row:before{content:"󰠷"}.mdi-table-row-height:before{content:"󰓲"}.mdi-table-row-plus-after:before{content:"󰓳"}.mdi-table-row-plus-before:before{content:"󰓴"}.mdi-table-row-remove:before{content:"󰓵"}.mdi-table-search:before{content:"󰤏"}.mdi-table-settings:before{content:"󰠸"}.mdi-table-split-cell:before{content:"󱐪"}.mdi-table-star:before{content:"󱏋"}.mdi-table-sync:before{content:"󱎡"}.mdi-table-tennis:before{content:"󰹨"}.mdi-tablet:before{content:"󰓶"}.mdi-tablet-cellphone:before{content:"󰦧"}.mdi-tablet-dashboard:before{content:"󰻎"}.mdi-taco:before{content:"󰝢"}.mdi-tag:before{content:"󰓹"}.mdi-tag-arrow-down:before{content:"󱜫"}.mdi-tag-arrow-down-outline:before{content:"󱜬"}.mdi-tag-arrow-left:before{content:"󱜭"}.mdi-tag-arrow-left-outline:before{content:"󱜮"}.mdi-tag-arrow-right:before{content:"󱜯"}.mdi-tag-arrow-right-outline:before{content:"󱜰"}.mdi-tag-arrow-up:before{content:"󱜱"}.mdi-tag-arrow-up-outline:before{content:"󱜲"}.mdi-tag-check:before{content:"󱩺"}.mdi-tag-check-outline:before{content:"󱩻"}.mdi-tag-edit:before{content:"󱲜"}.mdi-tag-edit-outline:before{content:"󱲝"}.mdi-tag-faces:before{content:"󰓺"}.mdi-tag-heart:before{content:"󰚋"}.mdi-tag-heart-outline:before{content:"󰯏"}.mdi-tag-hidden:before{content:"󱱶"}.mdi-tag-minus:before{content:"󰤐"}.mdi-tag-minus-outline:before{content:"󱈟"}.mdi-tag-multiple:before{content:"󰓻"}.mdi-tag-multiple-outline:before{content:"󱋷"}.mdi-tag-off:before{content:"󱈠"}.mdi-tag-off-outline:before{content:"󱈡"}.mdi-tag-outline:before{content:"󰓼"}.mdi-tag-plus:before{content:"󰜢"}.mdi-tag-plus-outline:before{content:"󱈢"}.mdi-tag-remove:before{content:"󰜣"}.mdi-tag-remove-outline:before{content:"󱈣"}.mdi-tag-search:before{content:"󱤇"}.mdi-tag-search-outline:before{content:"󱤈"}.mdi-tag-text:before{content:"󱈤"}.mdi-tag-text-outline:before{content:"󰓽"}.mdi-tailwind:before{content:"󱏿"}.mdi-tally-mark-1:before{content:"󱪼"}.mdi-tally-mark-2:before{content:"󱪽"}.mdi-tally-mark-3:before{content:"󱪾"}.mdi-tally-mark-4:before{content:"󱪿"}.mdi-tally-mark-5:before{content:"󱫀"}.mdi-tangram:before{content:"󰓸"}.mdi-tank:before{content:"󰴺"}.mdi-tanker-truck:before{content:"󰿥"}.mdi-tape-drive:before{content:"󱛟"}.mdi-tape-measure:before{content:"󰭍"}.mdi-target:before{content:"󰓾"}.mdi-target-account:before{content:"󰯐"}.mdi-target-variant:before{content:"󰩷"}.mdi-taxi:before{content:"󰓿"}.mdi-tea:before{content:"󰶞"}.mdi-tea-outline:before{content:"󰶟"}.mdi-teamviewer:before{content:"󰔀"}.mdi-teddy-bear:before{content:"󱣻"}.mdi-telescope:before{content:"󰭎"}.mdi-television:before{content:"󰔂"}.mdi-television-ambient-light:before{content:"󱍖"}.mdi-television-box:before{content:"󰠹"}.mdi-television-classic:before{content:"󰟴"}.mdi-television-classic-off:before{content:"󰠺"}.mdi-television-guide:before{content:"󰔃"}.mdi-television-off:before{content:"󰠻"}.mdi-television-pause:before{content:"󰾉"}.mdi-television-play:before{content:"󰻏"}.mdi-television-shimmer:before{content:"󱄐"}.mdi-television-speaker:before{content:"󱬛"}.mdi-television-speaker-off:before{content:"󱬜"}.mdi-television-stop:before{content:"󰾊"}.mdi-temperature-celsius:before{content:"󰔄"}.mdi-temperature-fahrenheit:before{content:"󰔅"}.mdi-temperature-kelvin:before{content:"󰔆"}.mdi-temple-buddhist:before{content:"󱬆"}.mdi-temple-buddhist-outline:before{content:"󱬇"}.mdi-temple-hindu:before{content:"󱬈"}.mdi-temple-hindu-outline:before{content:"󱬉"}.mdi-tennis:before{content:"󰶠"}.mdi-tennis-ball:before{content:"󰔇"}.mdi-tennis-ball-outline:before{content:"󱱟"}.mdi-tent:before{content:"󰔈"}.mdi-terraform:before{content:"󱁢"}.mdi-terrain:before{content:"󰔉"}.mdi-test-tube:before{content:"󰙨"}.mdi-test-tube-empty:before{content:"󰤑"}.mdi-test-tube-off:before{content:"󰤒"}.mdi-text:before{content:"󰦨"}.mdi-text-account:before{content:"󱕰"}.mdi-text-box:before{content:"󰈚"}.mdi-text-box-check:before{content:"󰺦"}.mdi-text-box-check-outline:before{content:"󰺧"}.mdi-text-box-edit:before{content:"󱩼"}.mdi-text-box-edit-outline:before{content:"󱩽"}.mdi-text-box-minus:before{content:"󰺨"}.mdi-text-box-minus-outline:before{content:"󰺩"}.mdi-text-box-multiple:before{content:"󰪷"}.mdi-text-box-multiple-outline:before{content:"󰪸"}.mdi-text-box-outline:before{content:"󰧭"}.mdi-text-box-plus:before{content:"󰺪"}.mdi-text-box-plus-outline:before{content:"󰺫"}.mdi-text-box-remove:before{content:"󰺬"}.mdi-text-box-remove-outline:before{content:"󰺭"}.mdi-text-box-search:before{content:"󰺮"}.mdi-text-box-search-outline:before{content:"󰺯"}.mdi-text-long:before{content:"󰦪"}.mdi-text-recognition:before{content:"󱄽"}.mdi-text-search:before{content:"󱎸"}.mdi-text-search-variant:before{content:"󱩾"}.mdi-text-shadow:before{content:"󰙩"}.mdi-text-short:before{content:"󰦩"}.mdi-texture:before{content:"󰔌"}.mdi-texture-box:before{content:"󰿦"}.mdi-theater:before{content:"󰔍"}.mdi-theme-light-dark:before{content:"󰔎"}.mdi-thermometer:before{content:"󰔏"}.mdi-thermometer-alert:before{content:"󰸁"}.mdi-thermometer-auto:before{content:"󱬏"}.mdi-thermometer-bluetooth:before{content:"󱢕"}.mdi-thermometer-check:before{content:"󱩿"}.mdi-thermometer-chevron-down:before{content:"󰸂"}.mdi-thermometer-chevron-up:before{content:"󰸃"}.mdi-thermometer-high:before{content:"󱃂"}.mdi-thermometer-lines:before{content:"󰔐"}.mdi-thermometer-low:before{content:"󱃃"}.mdi-thermometer-minus:before{content:"󰸄"}.mdi-thermometer-off:before{content:"󱔱"}.mdi-thermometer-plus:before{content:"󰸅"}.mdi-thermometer-probe:before{content:"󱬫"}.mdi-thermometer-probe-off:before{content:"󱬬"}.mdi-thermometer-water:before{content:"󱪀"}.mdi-thermostat:before{content:"󰎓"}.mdi-thermostat-auto:before{content:"󱬗"}.mdi-thermostat-box:before{content:"󰢑"}.mdi-thermostat-box-auto:before{content:"󱬘"}.mdi-thermostat-cog:before{content:"󱲀"}.mdi-thought-bubble:before{content:"󰟶"}.mdi-thought-bubble-outline:before{content:"󰟷"}.mdi-thumb-down:before{content:"󰔑"}.mdi-thumb-down-outline:before{content:"󰔒"}.mdi-thumb-up:before{content:"󰔓"}.mdi-thumb-up-outline:before{content:"󰔔"}.mdi-thumbs-up-down:before{content:"󰔕"}.mdi-thumbs-up-down-outline:before{content:"󱤔"}.mdi-ticket:before{content:"󰔖"}.mdi-ticket-account:before{content:"󰔗"}.mdi-ticket-confirmation:before{content:"󰔘"}.mdi-ticket-confirmation-outline:before{content:"󱎪"}.mdi-ticket-outline:before{content:"󰤓"}.mdi-ticket-percent:before{content:"󰜤"}.mdi-ticket-percent-outline:before{content:"󱐫"}.mdi-tie:before{content:"󰔙"}.mdi-tilde:before{content:"󰜥"}.mdi-tilde-off:before{content:"󱣳"}.mdi-timelapse:before{content:"󰔚"}.mdi-timeline:before{content:"󰯑"}.mdi-timeline-alert:before{content:"󰾕"}.mdi-timeline-alert-outline:before{content:"󰾘"}.mdi-timeline-check:before{content:"󱔲"}.mdi-timeline-check-outline:before{content:"󱔳"}.mdi-timeline-clock:before{content:"󱇻"}.mdi-timeline-clock-outline:before{content:"󱇼"}.mdi-timeline-minus:before{content:"󱔴"}.mdi-timeline-minus-outline:before{content:"󱔵"}.mdi-timeline-outline:before{content:"󰯒"}.mdi-timeline-plus:before{content:"󰾖"}.mdi-timeline-plus-outline:before{content:"󰾗"}.mdi-timeline-question:before{content:"󰾙"}.mdi-timeline-question-outline:before{content:"󰾚"}.mdi-timeline-remove:before{content:"󱔶"}.mdi-timeline-remove-outline:before{content:"󱔷"}.mdi-timeline-text:before{content:"󰯓"}.mdi-timeline-text-outline:before{content:"󰯔"}.mdi-timer:before{content:"󱎫"}.mdi-timer-10:before{content:"󰔜"}.mdi-timer-3:before{content:"󰔝"}.mdi-timer-alert:before{content:"󱫌"}.mdi-timer-alert-outline:before{content:"󱫍"}.mdi-timer-cancel:before{content:"󱫎"}.mdi-timer-cancel-outline:before{content:"󱫏"}.mdi-timer-check:before{content:"󱫐"}.mdi-timer-check-outline:before{content:"󱫑"}.mdi-timer-cog:before{content:"󱤥"}.mdi-timer-cog-outline:before{content:"󱤦"}.mdi-timer-edit:before{content:"󱫒"}.mdi-timer-edit-outline:before{content:"󱫓"}.mdi-timer-lock:before{content:"󱫔"}.mdi-timer-lock-open:before{content:"󱫕"}.mdi-timer-lock-open-outline:before{content:"󱫖"}.mdi-timer-lock-outline:before{content:"󱫗"}.mdi-timer-marker:before{content:"󱫘"}.mdi-timer-marker-outline:before{content:"󱫙"}.mdi-timer-minus:before{content:"󱫚"}.mdi-timer-minus-outline:before{content:"󱫛"}.mdi-timer-music:before{content:"󱫜"}.mdi-timer-music-outline:before{content:"󱫝"}.mdi-timer-off:before{content:"󱎬"}.mdi-timer-off-outline:before{content:"󰔞"}.mdi-timer-outline:before{content:"󰔛"}.mdi-timer-pause:before{content:"󱫞"}.mdi-timer-pause-outline:before{content:"󱫟"}.mdi-timer-play:before{content:"󱫠"}.mdi-timer-play-outline:before{content:"󱫡"}.mdi-timer-plus:before{content:"󱫢"}.mdi-timer-plus-outline:before{content:"󱫣"}.mdi-timer-refresh:before{content:"󱫤"}.mdi-timer-refresh-outline:before{content:"󱫥"}.mdi-timer-remove:before{content:"󱫦"}.mdi-timer-remove-outline:before{content:"󱫧"}.mdi-timer-sand:before{content:"󰔟"}.mdi-timer-sand-complete:before{content:"󱦟"}.mdi-timer-sand-empty:before{content:"󰚭"}.mdi-timer-sand-full:before{content:"󰞌"}.mdi-timer-sand-paused:before{content:"󱦠"}.mdi-timer-settings:before{content:"󱤣"}.mdi-timer-settings-outline:before{content:"󱤤"}.mdi-timer-star:before{content:"󱫨"}.mdi-timer-star-outline:before{content:"󱫩"}.mdi-timer-stop:before{content:"󱫪"}.mdi-timer-stop-outline:before{content:"󱫫"}.mdi-timer-sync:before{content:"󱫬"}.mdi-timer-sync-outline:before{content:"󱫭"}.mdi-timetable:before{content:"󰔠"}.mdi-tire:before{content:"󱢖"}.mdi-toaster:before{content:"󱁣"}.mdi-toaster-off:before{content:"󱆷"}.mdi-toaster-oven:before{content:"󰳓"}.mdi-toggle-switch:before{content:"󰔡"}.mdi-toggle-switch-off:before{content:"󰔢"}.mdi-toggle-switch-off-outline:before{content:"󰨙"}.mdi-toggle-switch-outline:before{content:"󰨚"}.mdi-toggle-switch-variant:before{content:"󱨥"}.mdi-toggle-switch-variant-off:before{content:"󱨦"}.mdi-toilet:before{content:"󰦫"}.mdi-toolbox:before{content:"󰦬"}.mdi-toolbox-outline:before{content:"󰦭"}.mdi-tools:before{content:"󱁤"}.mdi-tooltip:before{content:"󰔣"}.mdi-tooltip-account:before{content:"󰀌"}.mdi-tooltip-cellphone:before{content:"󱠻"}.mdi-tooltip-check:before{content:"󱕜"}.mdi-tooltip-check-outline:before{content:"󱕝"}.mdi-tooltip-edit:before{content:"󰔤"}.mdi-tooltip-edit-outline:before{content:"󱋅"}.mdi-tooltip-image:before{content:"󰔥"}.mdi-tooltip-image-outline:before{content:"󰯕"}.mdi-tooltip-minus:before{content:"󱕞"}.mdi-tooltip-minus-outline:before{content:"󱕟"}.mdi-tooltip-outline:before{content:"󰔦"}.mdi-tooltip-plus:before{content:"󰯖"}.mdi-tooltip-plus-outline:before{content:"󰔧"}.mdi-tooltip-question:before{content:"󱮺"}.mdi-tooltip-question-outline:before{content:"󱮻"}.mdi-tooltip-remove:before{content:"󱕠"}.mdi-tooltip-remove-outline:before{content:"󱕡"}.mdi-tooltip-text:before{content:"󰔨"}.mdi-tooltip-text-outline:before{content:"󰯗"}.mdi-tooth:before{content:"󰣃"}.mdi-tooth-outline:before{content:"󰔩"}.mdi-toothbrush:before{content:"󱄩"}.mdi-toothbrush-electric:before{content:"󱄬"}.mdi-toothbrush-paste:before{content:"󱄪"}.mdi-torch:before{content:"󱘆"}.mdi-tortoise:before{content:"󰴻"}.mdi-toslink:before{content:"󱊸"}.mdi-touch-text-outline:before{content:"󱱠"}.mdi-tournament:before{content:"󰦮"}.mdi-tow-truck:before{content:"󰠼"}.mdi-tower-beach:before{content:"󰚁"}.mdi-tower-fire:before{content:"󰚂"}.mdi-town-hall:before{content:"󱡵"}.mdi-toy-brick:before{content:"󱊈"}.mdi-toy-brick-marker:before{content:"󱊉"}.mdi-toy-brick-marker-outline:before{content:"󱊊"}.mdi-toy-brick-minus:before{content:"󱊋"}.mdi-toy-brick-minus-outline:before{content:"󱊌"}.mdi-toy-brick-outline:before{content:"󱊍"}.mdi-toy-brick-plus:before{content:"󱊎"}.mdi-toy-brick-plus-outline:before{content:"󱊏"}.mdi-toy-brick-remove:before{content:"󱊐"}.mdi-toy-brick-remove-outline:before{content:"󱊑"}.mdi-toy-brick-search:before{content:"󱊒"}.mdi-toy-brick-search-outline:before{content:"󱊓"}.mdi-track-light:before{content:"󰤔"}.mdi-track-light-off:before{content:"󱬁"}.mdi-trackpad:before{content:"󰟸"}.mdi-trackpad-lock:before{content:"󰤳"}.mdi-tractor:before{content:"󰢒"}.mdi-tractor-variant:before{content:"󱓄"}.mdi-trademark:before{content:"󰩸"}.mdi-traffic-cone:before{content:"󱍼"}.mdi-traffic-light:before{content:"󰔫"}.mdi-traffic-light-outline:before{content:"󱠪"}.mdi-train:before{content:"󰔬"}.mdi-train-bus:before{content:"󱳇"}.mdi-train-car:before{content:"󰯘"}.mdi-train-car-autorack:before{content:"󱬭"}.mdi-train-car-box:before{content:"󱬮"}.mdi-train-car-box-full:before{content:"󱬯"}.mdi-train-car-box-open:before{content:"󱬰"}.mdi-train-car-caboose:before{content:"󱬱"}.mdi-train-car-centerbeam:before{content:"󱬲"}.mdi-train-car-centerbeam-full:before{content:"󱬳"}.mdi-train-car-container:before{content:"󱬴"}.mdi-train-car-flatbed:before{content:"󱬵"}.mdi-train-car-flatbed-car:before{content:"󱬶"}.mdi-train-car-flatbed-tank:before{content:"󱬷"}.mdi-train-car-gondola:before{content:"󱬸"}.mdi-train-car-gondola-full:before{content:"󱬹"}.mdi-train-car-hopper:before{content:"󱬺"}.mdi-train-car-hopper-covered:before{content:"󱬻"}.mdi-train-car-hopper-full:before{content:"󱬼"}.mdi-train-car-intermodal:before{content:"󱬽"}.mdi-train-car-passenger:before{content:"󱜳"}.mdi-train-car-passenger-door:before{content:"󱜴"}.mdi-train-car-passenger-door-open:before{content:"󱜵"}.mdi-train-car-passenger-variant:before{content:"󱜶"}.mdi-train-car-tank:before{content:"󱬾"}.mdi-train-variant:before{content:"󰣄"}.mdi-tram:before{content:"󰔭"}.mdi-tram-side:before{content:"󰿧"}.mdi-transcribe:before{content:"󰔮"}.mdi-transcribe-close:before{content:"󰔯"}.mdi-transfer:before{content:"󱁥"}.mdi-transfer-down:before{content:"󰶡"}.mdi-transfer-left:before{content:"󰶢"}.mdi-transfer-right:before{content:"󰔰"}.mdi-transfer-up:before{content:"󰶣"}.mdi-transit-connection:before{content:"󰴼"}.mdi-transit-connection-horizontal:before{content:"󱕆"}.mdi-transit-connection-variant:before{content:"󰴽"}.mdi-transit-detour:before{content:"󰾋"}.mdi-transit-skip:before{content:"󱔕"}.mdi-transit-transfer:before{content:"󰚮"}.mdi-transition:before{content:"󰤕"}.mdi-transition-masked:before{content:"󰤖"}.mdi-translate:before{content:"󰗊"}.mdi-translate-off:before{content:"󰸆"}.mdi-translate-variant:before{content:"󱮙"}.mdi-transmission-tower:before{content:"󰴾"}.mdi-transmission-tower-export:before{content:"󱤬"}.mdi-transmission-tower-import:before{content:"󱤭"}.mdi-transmission-tower-off:before{content:"󱧝"}.mdi-trash-can:before{content:"󰩹"}.mdi-trash-can-outline:before{content:"󰩺"}.mdi-tray:before{content:"󱊔"}.mdi-tray-alert:before{content:"󱊕"}.mdi-tray-arrow-down:before{content:"󰄠"}.mdi-tray-arrow-up:before{content:"󰄝"}.mdi-tray-full:before{content:"󱊖"}.mdi-tray-minus:before{content:"󱊗"}.mdi-tray-plus:before{content:"󱊘"}.mdi-tray-remove:before{content:"󱊙"}.mdi-treasure-chest:before{content:"󰜦"}.mdi-treasure-chest-outline:before{content:"󱱷"}.mdi-tree:before{content:"󰔱"}.mdi-tree-outline:before{content:"󰹩"}.mdi-trello:before{content:"󰔲"}.mdi-trending-down:before{content:"󰔳"}.mdi-trending-neutral:before{content:"󰔴"}.mdi-trending-up:before{content:"󰔵"}.mdi-triangle:before{content:"󰔶"}.mdi-triangle-down:before{content:"󱱖"}.mdi-triangle-down-outline:before{content:"󱱗"}.mdi-triangle-outline:before{content:"󰔷"}.mdi-triangle-small-down:before{content:"󱨉"}.mdi-triangle-small-up:before{content:"󱨊"}.mdi-triangle-wave:before{content:"󱑼"}.mdi-triforce:before{content:"󰯙"}.mdi-trophy:before{content:"󰔸"}.mdi-trophy-award:before{content:"󰔹"}.mdi-trophy-broken:before{content:"󰶤"}.mdi-trophy-outline:before{content:"󰔺"}.mdi-trophy-variant:before{content:"󰔻"}.mdi-trophy-variant-outline:before{content:"󰔼"}.mdi-truck:before{content:"󰔽"}.mdi-truck-alert:before{content:"󱧞"}.mdi-truck-alert-outline:before{content:"󱧟"}.mdi-truck-cargo-container:before{content:"󱣘"}.mdi-truck-check:before{content:"󰳔"}.mdi-truck-check-outline:before{content:"󱊚"}.mdi-truck-delivery:before{content:"󰔾"}.mdi-truck-delivery-outline:before{content:"󱊛"}.mdi-truck-fast:before{content:"󰞈"}.mdi-truck-fast-outline:before{content:"󱊜"}.mdi-truck-flatbed:before{content:"󱢑"}.mdi-truck-minus:before{content:"󱦮"}.mdi-truck-minus-outline:before{content:"󱦽"}.mdi-truck-off-road:before{content:"󱲞"}.mdi-truck-off-road-off:before{content:"󱲟"}.mdi-truck-outline:before{content:"󱊝"}.mdi-truck-plus:before{content:"󱦭"}.mdi-truck-plus-outline:before{content:"󱦼"}.mdi-truck-remove:before{content:"󱦯"}.mdi-truck-remove-outline:before{content:"󱦾"}.mdi-truck-snowflake:before{content:"󱦦"}.mdi-truck-trailer:before{content:"󰜧"}.mdi-trumpet:before{content:"󱂖"}.mdi-tshirt-crew:before{content:"󰩻"}.mdi-tshirt-crew-outline:before{content:"󰔿"}.mdi-tshirt-v:before{content:"󰩼"}.mdi-tshirt-v-outline:before{content:"󰕀"}.mdi-tsunami:before{content:"󱪁"}.mdi-tumble-dryer:before{content:"󰤗"}.mdi-tumble-dryer-alert:before{content:"󱆺"}.mdi-tumble-dryer-off:before{content:"󱆻"}.mdi-tune:before{content:"󰘮"}.mdi-tune-variant:before{content:"󱕂"}.mdi-tune-vertical:before{content:"󰙪"}.mdi-tune-vertical-variant:before{content:"󱕃"}.mdi-tunnel:before{content:"󱠽"}.mdi-tunnel-outline:before{content:"󱠾"}.mdi-turbine:before{content:"󱪂"}.mdi-turkey:before{content:"󱜛"}.mdi-turnstile:before{content:"󰳕"}.mdi-turnstile-outline:before{content:"󰳖"}.mdi-turtle:before{content:"󰳗"}.mdi-twitch:before{content:"󰕃"}.mdi-twitter:before{content:"󰕄"}.mdi-two-factor-authentication:before{content:"󰦯"}.mdi-typewriter:before{content:"󰼭"}.mdi-ubisoft:before{content:"󰯚"}.mdi-ubuntu:before{content:"󰕈"}.mdi-ufo:before{content:"󱃄"}.mdi-ufo-outline:before{content:"󱃅"}.mdi-ultra-high-definition:before{content:"󰟹"}.mdi-umbraco:before{content:"󰕉"}.mdi-umbrella:before{content:"󰕊"}.mdi-umbrella-beach:before{content:"󱢊"}.mdi-umbrella-beach-outline:before{content:"󱢋"}.mdi-umbrella-closed:before{content:"󰦰"}.mdi-umbrella-closed-outline:before{content:"󱏢"}.mdi-umbrella-closed-variant:before{content:"󱏡"}.mdi-umbrella-outline:before{content:"󰕋"}.mdi-undo:before{content:"󰕌"}.mdi-undo-variant:before{content:"󰕍"}.mdi-unfold-less-horizontal:before{content:"󰕎"}.mdi-unfold-less-vertical:before{content:"󰝠"}.mdi-unfold-more-horizontal:before{content:"󰕏"}.mdi-unfold-more-vertical:before{content:"󰝡"}.mdi-ungroup:before{content:"󰕐"}.mdi-unicode:before{content:"󰻐"}.mdi-unicorn:before{content:"󱗂"}.mdi-unicorn-variant:before{content:"󱗃"}.mdi-unicycle:before{content:"󱗥"}.mdi-unity:before{content:"󰚯"}.mdi-unreal:before{content:"󰦱"}.mdi-update:before{content:"󰚰"}.mdi-upload:before{content:"󰕒"}.mdi-upload-lock:before{content:"󱍳"}.mdi-upload-lock-outline:before{content:"󱍴"}.mdi-upload-multiple:before{content:"󰠽"}.mdi-upload-network:before{content:"󰛶"}.mdi-upload-network-outline:before{content:"󰳘"}.mdi-upload-off:before{content:"󱃆"}.mdi-upload-off-outline:before{content:"󱃇"}.mdi-upload-outline:before{content:"󰸇"}.mdi-usb:before{content:"󰕓"}.mdi-usb-c-port:before{content:"󱲿"}.mdi-usb-flash-drive:before{content:"󱊞"}.mdi-usb-flash-drive-outline:before{content:"󱊟"}.mdi-usb-port:before{content:"󱇰"}.mdi-vacuum:before{content:"󱦡"}.mdi-vacuum-outline:before{content:"󱦢"}.mdi-valve:before{content:"󱁦"}.mdi-valve-closed:before{content:"󱁧"}.mdi-valve-open:before{content:"󱁨"}.mdi-van-passenger:before{content:"󰟺"}.mdi-van-utility:before{content:"󰟻"}.mdi-vanish:before{content:"󰟼"}.mdi-vanish-quarter:before{content:"󱕔"}.mdi-vanity-light:before{content:"󱇡"}.mdi-variable:before{content:"󰫧"}.mdi-variable-box:before{content:"󱄑"}.mdi-vector-arrange-above:before{content:"󰕔"}.mdi-vector-arrange-below:before{content:"󰕕"}.mdi-vector-bezier:before{content:"󰫨"}.mdi-vector-circle:before{content:"󰕖"}.mdi-vector-circle-variant:before{content:"󰕗"}.mdi-vector-combine:before{content:"󰕘"}.mdi-vector-curve:before{content:"󰕙"}.mdi-vector-difference:before{content:"󰕚"}.mdi-vector-difference-ab:before{content:"󰕛"}.mdi-vector-difference-ba:before{content:"󰕜"}.mdi-vector-ellipse:before{content:"󰢓"}.mdi-vector-intersection:before{content:"󰕝"}.mdi-vector-line:before{content:"󰕞"}.mdi-vector-link:before{content:"󰿨"}.mdi-vector-point:before{content:"󰇄"}.mdi-vector-point-edit:before{content:"󰧨"}.mdi-vector-point-minus:before{content:"󱭸"}.mdi-vector-point-plus:before{content:"󱭹"}.mdi-vector-point-select:before{content:"󰕟"}.mdi-vector-polygon:before{content:"󰕠"}.mdi-vector-polygon-variant:before{content:"󱡖"}.mdi-vector-polyline:before{content:"󰕡"}.mdi-vector-polyline-edit:before{content:"󱈥"}.mdi-vector-polyline-minus:before{content:"󱈦"}.mdi-vector-polyline-plus:before{content:"󱈧"}.mdi-vector-polyline-remove:before{content:"󱈨"}.mdi-vector-radius:before{content:"󰝊"}.mdi-vector-rectangle:before{content:"󰗆"}.mdi-vector-selection:before{content:"󰕢"}.mdi-vector-square:before{content:"󰀁"}.mdi-vector-square-close:before{content:"󱡗"}.mdi-vector-square-edit:before{content:"󱣙"}.mdi-vector-square-minus:before{content:"󱣚"}.mdi-vector-square-open:before{content:"󱡘"}.mdi-vector-square-plus:before{content:"󱣛"}.mdi-vector-square-remove:before{content:"󱣜"}.mdi-vector-triangle:before{content:"󰕣"}.mdi-vector-union:before{content:"󰕤"}.mdi-vhs:before{content:"󰨛"}.mdi-vibrate:before{content:"󰕦"}.mdi-vibrate-off:before{content:"󰳙"}.mdi-video:before{content:"󰕧"}.mdi-video-2d:before{content:"󱨜"}.mdi-video-3d:before{content:"󰟽"}.mdi-video-3d-off:before{content:"󱏙"}.mdi-video-3d-variant:before{content:"󰻑"}.mdi-video-4k-box:before{content:"󰠾"}.mdi-video-account:before{content:"󰤙"}.mdi-video-box:before{content:"󰃽"}.mdi-video-box-off:before{content:"󰃾"}.mdi-video-check:before{content:"󱁩"}.mdi-video-check-outline:before{content:"󱁪"}.mdi-video-high-definition:before{content:"󱔮"}.mdi-video-image:before{content:"󰤚"}.mdi-video-input-antenna:before{content:"󰠿"}.mdi-video-input-component:before{content:"󰡀"}.mdi-video-input-hdmi:before{content:"󰡁"}.mdi-video-input-scart:before{content:"󰾌"}.mdi-video-input-svideo:before{content:"󰡂"}.mdi-video-marker:before{content:"󱦩"}.mdi-video-marker-outline:before{content:"󱦪"}.mdi-video-minus:before{content:"󰦲"}.mdi-video-minus-outline:before{content:"󰊺"}.mdi-video-off:before{content:"󰕨"}.mdi-video-off-outline:before{content:"󰯛"}.mdi-video-outline:before{content:"󰯜"}.mdi-video-plus:before{content:"󰦳"}.mdi-video-plus-outline:before{content:"󰇓"}.mdi-video-stabilization:before{content:"󰤛"}.mdi-video-standard-definition:before{content:"󱲠"}.mdi-video-switch:before{content:"󰕩"}.mdi-video-switch-outline:before{content:"󰞐"}.mdi-video-vintage:before{content:"󰨜"}.mdi-video-wireless:before{content:"󰻒"}.mdi-video-wireless-outline:before{content:"󰻓"}.mdi-view-agenda:before{content:"󰕪"}.mdi-view-agenda-outline:before{content:"󱇘"}.mdi-view-array:before{content:"󰕫"}.mdi-view-array-outline:before{content:"󱒅"}.mdi-view-carousel:before{content:"󰕬"}.mdi-view-carousel-outline:before{content:"󱒆"}.mdi-view-column:before{content:"󰕭"}.mdi-view-column-outline:before{content:"󱒇"}.mdi-view-comfy:before{content:"󰹪"}.mdi-view-comfy-outline:before{content:"󱒈"}.mdi-view-compact:before{content:"󰹫"}.mdi-view-compact-outline:before{content:"󰹬"}.mdi-view-dashboard:before{content:"󰕮"}.mdi-view-dashboard-edit:before{content:"󱥇"}.mdi-view-dashboard-edit-outline:before{content:"󱥈"}.mdi-view-dashboard-outline:before{content:"󰨝"}.mdi-view-dashboard-variant:before{content:"󰡃"}.mdi-view-dashboard-variant-outline:before{content:"󱒉"}.mdi-view-day:before{content:"󰕯"}.mdi-view-day-outline:before{content:"󱒊"}.mdi-view-gallery:before{content:"󱢈"}.mdi-view-gallery-outline:before{content:"󱢉"}.mdi-view-grid:before{content:"󰕰"}.mdi-view-grid-compact:before{content:"󱱡"}.mdi-view-grid-outline:before{content:"󱇙"}.mdi-view-grid-plus:before{content:"󰾍"}.mdi-view-grid-plus-outline:before{content:"󱇚"}.mdi-view-headline:before{content:"󰕱"}.mdi-view-list:before{content:"󰕲"}.mdi-view-list-outline:before{content:"󱒋"}.mdi-view-module:before{content:"󰕳"}.mdi-view-module-outline:before{content:"󱒌"}.mdi-view-parallel:before{content:"󰜨"}.mdi-view-parallel-outline:before{content:"󱒍"}.mdi-view-quilt:before{content:"󰕴"}.mdi-view-quilt-outline:before{content:"󱒎"}.mdi-view-sequential:before{content:"󰜩"}.mdi-view-sequential-outline:before{content:"󱒏"}.mdi-view-split-horizontal:before{content:"󰯋"}.mdi-view-split-vertical:before{content:"󰯌"}.mdi-view-stream:before{content:"󰕵"}.mdi-view-stream-outline:before{content:"󱒐"}.mdi-view-week:before{content:"󰕶"}.mdi-view-week-outline:before{content:"󱒑"}.mdi-vimeo:before{content:"󰕷"}.mdi-violin:before{content:"󰘏"}.mdi-virtual-reality:before{content:"󰢔"}.mdi-virus:before{content:"󱎶"}.mdi-virus-off:before{content:"󱣡"}.mdi-virus-off-outline:before{content:"󱣢"}.mdi-virus-outline:before{content:"󱎷"}.mdi-vlc:before{content:"󰕼"}.mdi-voicemail:before{content:"󰕽"}.mdi-volcano:before{content:"󱪃"}.mdi-volcano-outline:before{content:"󱪄"}.mdi-volleyball:before{content:"󰦴"}.mdi-volume-equal:before{content:"󱬐"}.mdi-volume-high:before{content:"󰕾"}.mdi-volume-low:before{content:"󰕿"}.mdi-volume-medium:before{content:"󰖀"}.mdi-volume-minus:before{content:"󰝞"}.mdi-volume-mute:before{content:"󰝟"}.mdi-volume-off:before{content:"󰖁"}.mdi-volume-plus:before{content:"󰝝"}.mdi-volume-source:before{content:"󱄠"}.mdi-volume-variant-off:before{content:"󰸈"}.mdi-volume-vibrate:before{content:"󱄡"}.mdi-vote:before{content:"󰨟"}.mdi-vote-outline:before{content:"󰨠"}.mdi-vpn:before{content:"󰖂"}.mdi-vuejs:before{content:"󰡄"}.mdi-vuetify:before{content:"󰹭"}.mdi-walk:before{content:"󰖃"}.mdi-wall:before{content:"󰟾"}.mdi-wall-fire:before{content:"󱨑"}.mdi-wall-sconce:before{content:"󰤜"}.mdi-wall-sconce-flat:before{content:"󰤝"}.mdi-wall-sconce-flat-outline:before{content:"󱟉"}.mdi-wall-sconce-flat-variant:before{content:"󰐜"}.mdi-wall-sconce-flat-variant-outline:before{content:"󱟊"}.mdi-wall-sconce-outline:before{content:"󱟋"}.mdi-wall-sconce-round:before{content:"󰝈"}.mdi-wall-sconce-round-outline:before{content:"󱟌"}.mdi-wall-sconce-round-variant:before{content:"󰤞"}.mdi-wall-sconce-round-variant-outline:before{content:"󱟍"}.mdi-wallet:before{content:"󰖄"}.mdi-wallet-bifold:before{content:"󱱘"}.mdi-wallet-bifold-outline:before{content:"󱱙"}.mdi-wallet-giftcard:before{content:"󰖅"}.mdi-wallet-membership:before{content:"󰖆"}.mdi-wallet-outline:before{content:"󰯝"}.mdi-wallet-plus:before{content:"󰾎"}.mdi-wallet-plus-outline:before{content:"󰾏"}.mdi-wallet-travel:before{content:"󰖇"}.mdi-wallpaper:before{content:"󰸉"}.mdi-wan:before{content:"󰖈"}.mdi-wardrobe:before{content:"󰾐"}.mdi-wardrobe-outline:before{content:"󰾑"}.mdi-warehouse:before{content:"󰾁"}.mdi-washing-machine:before{content:"󰜪"}.mdi-washing-machine-alert:before{content:"󱆼"}.mdi-washing-machine-off:before{content:"󱆽"}.mdi-watch:before{content:"󰖉"}.mdi-watch-export:before{content:"󰖊"}.mdi-watch-export-variant:before{content:"󰢕"}.mdi-watch-import:before{content:"󰖋"}.mdi-watch-import-variant:before{content:"󰢖"}.mdi-watch-variant:before{content:"󰢗"}.mdi-watch-vibrate:before{content:"󰚱"}.mdi-watch-vibrate-off:before{content:"󰳚"}.mdi-water:before{content:"󰖌"}.mdi-water-alert:before{content:"󱔂"}.mdi-water-alert-outline:before{content:"󱔃"}.mdi-water-boiler:before{content:"󰾒"}.mdi-water-boiler-alert:before{content:"󱆳"}.mdi-water-boiler-auto:before{content:"󱮘"}.mdi-water-boiler-off:before{content:"󱆴"}.mdi-water-check:before{content:"󱔄"}.mdi-water-check-outline:before{content:"󱔅"}.mdi-water-circle:before{content:"󱠆"}.mdi-water-minus:before{content:"󱔆"}.mdi-water-minus-outline:before{content:"󱔇"}.mdi-water-off:before{content:"󰖍"}.mdi-water-off-outline:before{content:"󱔈"}.mdi-water-opacity:before{content:"󱡕"}.mdi-water-outline:before{content:"󰸊"}.mdi-water-percent:before{content:"󰖎"}.mdi-water-percent-alert:before{content:"󱔉"}.mdi-water-plus:before{content:"󱔊"}.mdi-water-plus-outline:before{content:"󱔋"}.mdi-water-polo:before{content:"󱊠"}.mdi-water-pump:before{content:"󰖏"}.mdi-water-pump-off:before{content:"󰾓"}.mdi-water-remove:before{content:"󱔌"}.mdi-water-remove-outline:before{content:"󱔍"}.mdi-water-sync:before{content:"󱟆"}.mdi-water-thermometer:before{content:"󱪅"}.mdi-water-thermometer-outline:before{content:"󱪆"}.mdi-water-well:before{content:"󱁫"}.mdi-water-well-outline:before{content:"󱁬"}.mdi-waterfall:before{content:"󱡉"}.mdi-watering-can:before{content:"󱒁"}.mdi-watering-can-outline:before{content:"󱒂"}.mdi-watermark:before{content:"󰘒"}.mdi-wave:before{content:"󰼮"}.mdi-wave-arrow-down:before{content:"󱲰"}.mdi-wave-arrow-up:before{content:"󱲱"}.mdi-wave-undercurrent:before{content:"󱳀"}.mdi-waveform:before{content:"󱑽"}.mdi-waves:before{content:"󰞍"}.mdi-waves-arrow-left:before{content:"󱡙"}.mdi-waves-arrow-right:before{content:"󱡚"}.mdi-waves-arrow-up:before{content:"󱡛"}.mdi-waze:before{content:"󰯞"}.mdi-weather-cloudy:before{content:"󰖐"}.mdi-weather-cloudy-alert:before{content:"󰼯"}.mdi-weather-cloudy-arrow-right:before{content:"󰹮"}.mdi-weather-cloudy-clock:before{content:"󱣶"}.mdi-weather-dust:before{content:"󱭚"}.mdi-weather-fog:before{content:"󰖑"}.mdi-weather-hail:before{content:"󰖒"}.mdi-weather-hazy:before{content:"󰼰"}.mdi-weather-hurricane:before{content:"󰢘"}.mdi-weather-hurricane-outline:before{content:"󱱸"}.mdi-weather-lightning:before{content:"󰖓"}.mdi-weather-lightning-rainy:before{content:"󰙾"}.mdi-weather-night:before{content:"󰖔"}.mdi-weather-night-partly-cloudy:before{content:"󰼱"}.mdi-weather-partly-cloudy:before{content:"󰖕"}.mdi-weather-partly-lightning:before{content:"󰼲"}.mdi-weather-partly-rainy:before{content:"󰼳"}.mdi-weather-partly-snowy:before{content:"󰼴"}.mdi-weather-partly-snowy-rainy:before{content:"󰼵"}.mdi-weather-pouring:before{content:"󰖖"}.mdi-weather-rainy:before{content:"󰖗"}.mdi-weather-snowy:before{content:"󰖘"}.mdi-weather-snowy-heavy:before{content:"󰼶"}.mdi-weather-snowy-rainy:before{content:"󰙿"}.mdi-weather-sunny:before{content:"󰖙"}.mdi-weather-sunny-alert:before{content:"󰼷"}.mdi-weather-sunny-off:before{content:"󱓤"}.mdi-weather-sunset:before{content:"󰖚"}.mdi-weather-sunset-down:before{content:"󰖛"}.mdi-weather-sunset-up:before{content:"󰖜"}.mdi-weather-tornado:before{content:"󰼸"}.mdi-weather-windy:before{content:"󰖝"}.mdi-weather-windy-variant:before{content:"󰖞"}.mdi-web:before{content:"󰖟"}.mdi-web-box:before{content:"󰾔"}.mdi-web-cancel:before{content:"󱞐"}.mdi-web-check:before{content:"󰞉"}.mdi-web-clock:before{content:"󱉊"}.mdi-web-minus:before{content:"󱂠"}.mdi-web-off:before{content:"󰪎"}.mdi-web-plus:before{content:"󰀳"}.mdi-web-refresh:before{content:"󱞑"}.mdi-web-remove:before{content:"󰕑"}.mdi-web-sync:before{content:"󱞒"}.mdi-webcam:before{content:"󰖠"}.mdi-webcam-off:before{content:"󱜷"}.mdi-webhook:before{content:"󰘯"}.mdi-webpack:before{content:"󰜫"}.mdi-webrtc:before{content:"󱉈"}.mdi-wechat:before{content:"󰘑"}.mdi-weight:before{content:"󰖡"}.mdi-weight-gram:before{content:"󰴿"}.mdi-weight-kilogram:before{content:"󰖢"}.mdi-weight-lifter:before{content:"󱅝"}.mdi-weight-pound:before{content:"󰦵"}.mdi-whatsapp:before{content:"󰖣"}.mdi-wheel-barrow:before{content:"󱓲"}.mdi-wheelchair:before{content:"󱪇"}.mdi-wheelchair-accessibility:before{content:"󰖤"}.mdi-whistle:before{content:"󰦶"}.mdi-whistle-outline:before{content:"󱊼"}.mdi-white-balance-auto:before{content:"󰖥"}.mdi-white-balance-incandescent:before{content:"󰖦"}.mdi-white-balance-iridescent:before{content:"󰖧"}.mdi-white-balance-sunny:before{content:"󰖨"}.mdi-widgets:before{content:"󰜬"}.mdi-widgets-outline:before{content:"󱍕"}.mdi-wifi:before{content:"󰖩"}.mdi-wifi-alert:before{content:"󱚵"}.mdi-wifi-arrow-down:before{content:"󱚶"}.mdi-wifi-arrow-left:before{content:"󱚷"}.mdi-wifi-arrow-left-right:before{content:"󱚸"}.mdi-wifi-arrow-right:before{content:"󱚹"}.mdi-wifi-arrow-up:before{content:"󱚺"}.mdi-wifi-arrow-up-down:before{content:"󱚻"}.mdi-wifi-cancel:before{content:"󱚼"}.mdi-wifi-check:before{content:"󱚽"}.mdi-wifi-cog:before{content:"󱚾"}.mdi-wifi-lock:before{content:"󱚿"}.mdi-wifi-lock-open:before{content:"󱛀"}.mdi-wifi-marker:before{content:"󱛁"}.mdi-wifi-minus:before{content:"󱛂"}.mdi-wifi-off:before{content:"󰖪"}.mdi-wifi-plus:before{content:"󱛃"}.mdi-wifi-refresh:before{content:"󱛄"}.mdi-wifi-remove:before{content:"󱛅"}.mdi-wifi-settings:before{content:"󱛆"}.mdi-wifi-star:before{content:"󰸋"}.mdi-wifi-strength-1:before{content:"󰤟"}.mdi-wifi-strength-1-alert:before{content:"󰤠"}.mdi-wifi-strength-1-lock:before{content:"󰤡"}.mdi-wifi-strength-1-lock-open:before{content:"󱛋"}.mdi-wifi-strength-2:before{content:"󰤢"}.mdi-wifi-strength-2-alert:before{content:"󰤣"}.mdi-wifi-strength-2-lock:before{content:"󰤤"}.mdi-wifi-strength-2-lock-open:before{content:"󱛌"}.mdi-wifi-strength-3:before{content:"󰤥"}.mdi-wifi-strength-3-alert:before{content:"󰤦"}.mdi-wifi-strength-3-lock:before{content:"󰤧"}.mdi-wifi-strength-3-lock-open:before{content:"󱛍"}.mdi-wifi-strength-4:before{content:"󰤨"}.mdi-wifi-strength-4-alert:before{content:"󰤩"}.mdi-wifi-strength-4-lock:before{content:"󰤪"}.mdi-wifi-strength-4-lock-open:before{content:"󱛎"}.mdi-wifi-strength-alert-outline:before{content:"󰤫"}.mdi-wifi-strength-lock-open-outline:before{content:"󱛏"}.mdi-wifi-strength-lock-outline:before{content:"󰤬"}.mdi-wifi-strength-off:before{content:"󰤭"}.mdi-wifi-strength-off-outline:before{content:"󰤮"}.mdi-wifi-strength-outline:before{content:"󰤯"}.mdi-wifi-sync:before{content:"󱛇"}.mdi-wikipedia:before{content:"󰖬"}.mdi-wind-power:before{content:"󱪈"}.mdi-wind-power-outline:before{content:"󱪉"}.mdi-wind-turbine:before{content:"󰶥"}.mdi-wind-turbine-alert:before{content:"󱦫"}.mdi-wind-turbine-check:before{content:"󱦬"}.mdi-window-close:before{content:"󰖭"}.mdi-window-closed:before{content:"󰖮"}.mdi-window-closed-variant:before{content:"󱇛"}.mdi-window-maximize:before{content:"󰖯"}.mdi-window-minimize:before{content:"󰖰"}.mdi-window-open:before{content:"󰖱"}.mdi-window-open-variant:before{content:"󱇜"}.mdi-window-restore:before{content:"󰖲"}.mdi-window-shutter:before{content:"󱄜"}.mdi-window-shutter-alert:before{content:"󱄝"}.mdi-window-shutter-auto:before{content:"󱮣"}.mdi-window-shutter-cog:before{content:"󱪊"}.mdi-window-shutter-open:before{content:"󱄞"}.mdi-window-shutter-settings:before{content:"󱪋"}.mdi-windsock:before{content:"󱗺"}.mdi-wiper:before{content:"󰫩"}.mdi-wiper-wash:before{content:"󰶦"}.mdi-wiper-wash-alert:before{content:"󱣟"}.mdi-wizard-hat:before{content:"󱑷"}.mdi-wordpress:before{content:"󰖴"}.mdi-wrap:before{content:"󰖶"}.mdi-wrap-disabled:before{content:"󰯟"}.mdi-wrench:before{content:"󰖷"}.mdi-wrench-check:before{content:"󱮏"}.mdi-wrench-check-outline:before{content:"󱮐"}.mdi-wrench-clock:before{content:"󱦣"}.mdi-wrench-clock-outline:before{content:"󱮓"}.mdi-wrench-cog:before{content:"󱮑"}.mdi-wrench-cog-outline:before{content:"󱮒"}.mdi-wrench-outline:before{content:"󰯠"}.mdi-xamarin:before{content:"󰡅"}.mdi-xml:before{content:"󰗀"}.mdi-xmpp:before{content:"󰟿"}.mdi-yahoo:before{content:"󰭏"}.mdi-yeast:before{content:"󰗁"}.mdi-yin-yang:before{content:"󰚀"}.mdi-yoga:before{content:"󱅼"}.mdi-youtube:before{content:"󰗃"}.mdi-youtube-gaming:before{content:"󰡈"}.mdi-youtube-studio:before{content:"󰡇"}.mdi-youtube-subscription:before{content:"󰵀"}.mdi-youtube-tv:before{content:"󰑈"}.mdi-yurt:before{content:"󱔖"}.mdi-z-wave:before{content:"󰫪"}.mdi-zend:before{content:"󰫫"}.mdi-zigbee:before{content:"󰵁"}.mdi-zip-box:before{content:"󰗄"}.mdi-zip-box-outline:before{content:"󰿺"}.mdi-zip-disk:before{content:"󰨣"}.mdi-zodiac-aquarius:before{content:"󰩽"}.mdi-zodiac-aries:before{content:"󰩾"}.mdi-zodiac-cancer:before{content:"󰩿"}.mdi-zodiac-capricorn:before{content:"󰪀"}.mdi-zodiac-gemini:before{content:"󰪁"}.mdi-zodiac-leo:before{content:"󰪂"}.mdi-zodiac-libra:before{content:"󰪃"}.mdi-zodiac-pisces:before{content:"󰪄"}.mdi-zodiac-sagittarius:before{content:"󰪅"}.mdi-zodiac-scorpio:before{content:"󰪆"}.mdi-zodiac-taurus:before{content:"󰪇"}.mdi-zodiac-virgo:before{content:"󰪈"}.mdi-blank:before{content:"";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes v-shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.bg-black{background-color:#000!important;color:#fff!important}.bg-white{background-color:#fff!important;color:#000!important}.bg-transparent{background-color:transparent!important;color:currentColor!important}.bg-red{background-color:#f44336!important;color:#fff!important}.bg-red-lighten-5{background-color:#ffebee!important;color:#000!important}.bg-red-lighten-4{background-color:#ffcdd2!important;color:#000!important}.bg-red-lighten-3{background-color:#ef9a9a!important;color:#000!important}.bg-red-lighten-2{background-color:#e57373!important;color:#fff!important}.bg-red-lighten-1{background-color:#ef5350!important;color:#fff!important}.bg-red-darken-1{background-color:#e53935!important;color:#fff!important}.bg-red-darken-2{background-color:#d32f2f!important;color:#fff!important}.bg-red-darken-3{background-color:#c62828!important;color:#fff!important}.bg-red-darken-4{background-color:#b71c1c!important;color:#fff!important}.bg-red-accent-1{background-color:#ff8a80!important;color:#000!important}.bg-red-accent-2{background-color:#ff5252!important;color:#fff!important}.bg-red-accent-3{background-color:#ff1744!important;color:#fff!important}.bg-red-accent-4{background-color:#d50000!important;color:#fff!important}.bg-pink{background-color:#e91e63!important;color:#fff!important}.bg-pink-lighten-5{background-color:#fce4ec!important;color:#000!important}.bg-pink-lighten-4{background-color:#f8bbd0!important;color:#000!important}.bg-pink-lighten-3{background-color:#f48fb1!important;color:#000!important}.bg-pink-lighten-2{background-color:#f06292!important;color:#fff!important}.bg-pink-lighten-1{background-color:#ec407a!important;color:#fff!important}.bg-pink-darken-1{background-color:#d81b60!important;color:#fff!important}.bg-pink-darken-2{background-color:#c2185b!important;color:#fff!important}.bg-pink-darken-3{background-color:#ad1457!important;color:#fff!important}.bg-pink-darken-4{background-color:#880e4f!important;color:#fff!important}.bg-pink-accent-1{background-color:#ff80ab!important;color:#fff!important}.bg-pink-accent-2{background-color:#ff4081!important;color:#fff!important}.bg-pink-accent-3{background-color:#f50057!important;color:#fff!important}.bg-pink-accent-4{background-color:#c51162!important;color:#fff!important}.bg-purple{background-color:#9c27b0!important;color:#fff!important}.bg-purple-lighten-5{background-color:#f3e5f5!important;color:#000!important}.bg-purple-lighten-4{background-color:#e1bee7!important;color:#000!important}.bg-purple-lighten-3{background-color:#ce93d8!important;color:#fff!important}.bg-purple-lighten-2{background-color:#ba68c8!important;color:#fff!important}.bg-purple-lighten-1{background-color:#ab47bc!important;color:#fff!important}.bg-purple-darken-1{background-color:#8e24aa!important;color:#fff!important}.bg-purple-darken-2{background-color:#7b1fa2!important;color:#fff!important}.bg-purple-darken-3{background-color:#6a1b9a!important;color:#fff!important}.bg-purple-darken-4{background-color:#4a148c!important;color:#fff!important}.bg-purple-accent-1{background-color:#ea80fc!important;color:#fff!important}.bg-purple-accent-2{background-color:#e040fb!important;color:#fff!important}.bg-purple-accent-3{background-color:#d500f9!important;color:#fff!important}.bg-purple-accent-4{background-color:#a0f!important;color:#fff!important}.bg-deep-purple{background-color:#673ab7!important;color:#fff!important}.bg-deep-purple-lighten-5{background-color:#ede7f6!important;color:#000!important}.bg-deep-purple-lighten-4{background-color:#d1c4e9!important;color:#000!important}.bg-deep-purple-lighten-3{background-color:#b39ddb!important;color:#fff!important}.bg-deep-purple-lighten-2{background-color:#9575cd!important;color:#fff!important}.bg-deep-purple-lighten-1{background-color:#7e57c2!important;color:#fff!important}.bg-deep-purple-darken-1{background-color:#5e35b1!important;color:#fff!important}.bg-deep-purple-darken-2{background-color:#512da8!important;color:#fff!important}.bg-deep-purple-darken-3{background-color:#4527a0!important;color:#fff!important}.bg-deep-purple-darken-4{background-color:#311b92!important;color:#fff!important}.bg-deep-purple-accent-1{background-color:#b388ff!important;color:#fff!important}.bg-deep-purple-accent-2{background-color:#7c4dff!important;color:#fff!important}.bg-deep-purple-accent-3{background-color:#651fff!important;color:#fff!important}.bg-deep-purple-accent-4{background-color:#6200ea!important;color:#fff!important}.bg-indigo{background-color:#3f51b5!important;color:#fff!important}.bg-indigo-lighten-5{background-color:#e8eaf6!important;color:#000!important}.bg-indigo-lighten-4{background-color:#c5cae9!important;color:#000!important}.bg-indigo-lighten-3{background-color:#9fa8da!important;color:#fff!important}.bg-indigo-lighten-2{background-color:#7986cb!important;color:#fff!important}.bg-indigo-lighten-1{background-color:#5c6bc0!important;color:#fff!important}.bg-indigo-darken-1{background-color:#3949ab!important;color:#fff!important}.bg-indigo-darken-2{background-color:#303f9f!important;color:#fff!important}.bg-indigo-darken-3{background-color:#283593!important;color:#fff!important}.bg-indigo-darken-4{background-color:#1a237e!important;color:#fff!important}.bg-indigo-accent-1{background-color:#8c9eff!important;color:#fff!important}.bg-indigo-accent-2{background-color:#536dfe!important;color:#fff!important}.bg-indigo-accent-3{background-color:#3d5afe!important;color:#fff!important}.bg-indigo-accent-4{background-color:#304ffe!important;color:#fff!important}.bg-blue{background-color:#2196f3!important;color:#fff!important}.bg-blue-lighten-5{background-color:#e3f2fd!important;color:#000!important}.bg-blue-lighten-4{background-color:#bbdefb!important;color:#000!important}.bg-blue-lighten-3{background-color:#90caf9!important;color:#000!important}.bg-blue-lighten-2{background-color:#64b5f6!important;color:#000!important}.bg-blue-lighten-1{background-color:#42a5f5!important;color:#fff!important}.bg-blue-darken-1{background-color:#1e88e5!important;color:#fff!important}.bg-blue-darken-2{background-color:#1976d2!important;color:#fff!important}.bg-blue-darken-3{background-color:#1565c0!important;color:#fff!important}.bg-blue-darken-4{background-color:#0d47a1!important;color:#fff!important}.bg-blue-accent-1{background-color:#82b1ff!important;color:#000!important}.bg-blue-accent-2{background-color:#448aff!important;color:#fff!important}.bg-blue-accent-3{background-color:#2979ff!important;color:#fff!important}.bg-blue-accent-4{background-color:#2962ff!important;color:#fff!important}.bg-light-blue{background-color:#03a9f4!important;color:#fff!important}.bg-light-blue-lighten-5{background-color:#e1f5fe!important;color:#000!important}.bg-light-blue-lighten-4{background-color:#b3e5fc!important;color:#000!important}.bg-light-blue-lighten-3{background-color:#81d4fa!important;color:#000!important}.bg-light-blue-lighten-2{background-color:#4fc3f7!important;color:#000!important}.bg-light-blue-lighten-1{background-color:#29b6f6!important;color:#000!important}.bg-light-blue-darken-1{background-color:#039be5!important;color:#fff!important}.bg-light-blue-darken-2{background-color:#0288d1!important;color:#fff!important}.bg-light-blue-darken-3{background-color:#0277bd!important;color:#fff!important}.bg-light-blue-darken-4{background-color:#01579b!important;color:#fff!important}.bg-light-blue-accent-1{background-color:#80d8ff!important;color:#000!important}.bg-light-blue-accent-2{background-color:#40c4ff!important;color:#000!important}.bg-light-blue-accent-3{background-color:#00b0ff!important;color:#fff!important}.bg-light-blue-accent-4{background-color:#0091ea!important;color:#fff!important}.bg-cyan{background-color:#00bcd4!important;color:#000!important}.bg-cyan-lighten-5{background-color:#e0f7fa!important;color:#000!important}.bg-cyan-lighten-4{background-color:#b2ebf2!important;color:#000!important}.bg-cyan-lighten-3{background-color:#80deea!important;color:#000!important}.bg-cyan-lighten-2{background-color:#4dd0e1!important;color:#000!important}.bg-cyan-lighten-1{background-color:#26c6da!important;color:#000!important}.bg-cyan-darken-1{background-color:#00acc1!important;color:#fff!important}.bg-cyan-darken-2{background-color:#0097a7!important;color:#fff!important}.bg-cyan-darken-3{background-color:#00838f!important;color:#fff!important}.bg-cyan-darken-4{background-color:#006064!important;color:#fff!important}.bg-cyan-accent-1{background-color:#84ffff!important;color:#000!important}.bg-cyan-accent-2{background-color:#18ffff!important;color:#000!important}.bg-cyan-accent-3{background-color:#00e5ff!important;color:#000!important}.bg-cyan-accent-4{background-color:#00b8d4!important;color:#fff!important}.bg-teal{background-color:#009688!important;color:#fff!important}.bg-teal-lighten-5{background-color:#e0f2f1!important;color:#000!important}.bg-teal-lighten-4{background-color:#b2dfdb!important;color:#000!important}.bg-teal-lighten-3{background-color:#80cbc4!important;color:#000!important}.bg-teal-lighten-2{background-color:#4db6ac!important;color:#fff!important}.bg-teal-lighten-1{background-color:#26a69a!important;color:#fff!important}.bg-teal-darken-1{background-color:#00897b!important;color:#fff!important}.bg-teal-darken-2{background-color:#00796b!important;color:#fff!important}.bg-teal-darken-3{background-color:#00695c!important;color:#fff!important}.bg-teal-darken-4{background-color:#004d40!important;color:#fff!important}.bg-teal-accent-1{background-color:#a7ffeb!important;color:#000!important}.bg-teal-accent-2{background-color:#64ffda!important;color:#000!important}.bg-teal-accent-3{background-color:#1de9b6!important;color:#000!important}.bg-teal-accent-4{background-color:#00bfa5!important;color:#fff!important}.bg-green{background-color:#4caf50!important;color:#fff!important}.bg-green-lighten-5{background-color:#e8f5e9!important;color:#000!important}.bg-green-lighten-4{background-color:#c8e6c9!important;color:#000!important}.bg-green-lighten-3{background-color:#a5d6a7!important;color:#000!important}.bg-green-lighten-2{background-color:#81c784!important;color:#000!important}.bg-green-lighten-1{background-color:#66bb6a!important;color:#fff!important}.bg-green-darken-1{background-color:#43a047!important;color:#fff!important}.bg-green-darken-2{background-color:#388e3c!important;color:#fff!important}.bg-green-darken-3{background-color:#2e7d32!important;color:#fff!important}.bg-green-darken-4{background-color:#1b5e20!important;color:#fff!important}.bg-green-accent-1{background-color:#b9f6ca!important;color:#000!important}.bg-green-accent-2{background-color:#69f0ae!important;color:#000!important}.bg-green-accent-3{background-color:#00e676!important;color:#000!important}.bg-green-accent-4{background-color:#00c853!important;color:#000!important}.bg-light-green{background-color:#8bc34a!important;color:#000!important}.bg-light-green-lighten-5{background-color:#f1f8e9!important;color:#000!important}.bg-light-green-lighten-4{background-color:#dcedc8!important;color:#000!important}.bg-light-green-lighten-3{background-color:#c5e1a5!important;color:#000!important}.bg-light-green-lighten-2{background-color:#aed581!important;color:#000!important}.bg-light-green-lighten-1{background-color:#9ccc65!important;color:#000!important}.bg-light-green-darken-1{background-color:#7cb342!important;color:#fff!important}.bg-light-green-darken-2{background-color:#689f38!important;color:#fff!important}.bg-light-green-darken-3{background-color:#558b2f!important;color:#fff!important}.bg-light-green-darken-4{background-color:#33691e!important;color:#fff!important}.bg-light-green-accent-1{background-color:#ccff90!important;color:#000!important}.bg-light-green-accent-2{background-color:#b2ff59!important;color:#000!important}.bg-light-green-accent-3{background-color:#76ff03!important;color:#000!important}.bg-light-green-accent-4{background-color:#64dd17!important;color:#000!important}.bg-lime{background-color:#cddc39!important;color:#000!important}.bg-lime-lighten-5{background-color:#f9fbe7!important;color:#000!important}.bg-lime-lighten-4{background-color:#f0f4c3!important;color:#000!important}.bg-lime-lighten-3{background-color:#e6ee9c!important;color:#000!important}.bg-lime-lighten-2{background-color:#dce775!important;color:#000!important}.bg-lime-lighten-1{background-color:#d4e157!important;color:#000!important}.bg-lime-darken-1{background-color:#c0ca33!important;color:#000!important}.bg-lime-darken-2{background-color:#afb42b!important;color:#000!important}.bg-lime-darken-3{background-color:#9e9d24!important;color:#fff!important}.bg-lime-darken-4{background-color:#827717!important;color:#fff!important}.bg-lime-accent-1{background-color:#f4ff81!important;color:#000!important}.bg-lime-accent-2{background-color:#eeff41!important;color:#000!important}.bg-lime-accent-3{background-color:#c6ff00!important;color:#000!important}.bg-lime-accent-4{background-color:#aeea00!important;color:#000!important}.bg-yellow{background-color:#ffeb3b!important;color:#000!important}.bg-yellow-lighten-5{background-color:#fffde7!important;color:#000!important}.bg-yellow-lighten-4{background-color:#fff9c4!important;color:#000!important}.bg-yellow-lighten-3{background-color:#fff59d!important;color:#000!important}.bg-yellow-lighten-2{background-color:#fff176!important;color:#000!important}.bg-yellow-lighten-1{background-color:#ffee58!important;color:#000!important}.bg-yellow-darken-1{background-color:#fdd835!important;color:#000!important}.bg-yellow-darken-2{background-color:#fbc02d!important;color:#000!important}.bg-yellow-darken-3{background-color:#f9a825!important;color:#000!important}.bg-yellow-darken-4{background-color:#f57f17!important;color:#fff!important}.bg-yellow-accent-1{background-color:#ffff8d!important;color:#000!important}.bg-yellow-accent-2{background-color:#ff0!important;color:#000!important}.bg-yellow-accent-3{background-color:#ffea00!important;color:#000!important}.bg-yellow-accent-4{background-color:#ffd600!important;color:#000!important}.bg-amber{background-color:#ffc107!important;color:#000!important}.bg-amber-lighten-5{background-color:#fff8e1!important;color:#000!important}.bg-amber-lighten-4{background-color:#ffecb3!important;color:#000!important}.bg-amber-lighten-3{background-color:#ffe082!important;color:#000!important}.bg-amber-lighten-2{background-color:#ffd54f!important;color:#000!important}.bg-amber-lighten-1{background-color:#ffca28!important;color:#000!important}.bg-amber-darken-1{background-color:#ffb300!important;color:#000!important}.bg-amber-darken-2{background-color:#ffa000!important;color:#000!important}.bg-amber-darken-3{background-color:#ff8f00!important;color:#000!important}.bg-amber-darken-4{background-color:#ff6f00!important;color:#fff!important}.bg-amber-accent-1{background-color:#ffe57f!important;color:#000!important}.bg-amber-accent-2{background-color:#ffd740!important;color:#000!important}.bg-amber-accent-3{background-color:#ffc400!important;color:#000!important}.bg-amber-accent-4{background-color:#ffab00!important;color:#000!important}.bg-orange{background-color:#ff9800!important;color:#000!important}.bg-orange-lighten-5{background-color:#fff3e0!important;color:#000!important}.bg-orange-lighten-4{background-color:#ffe0b2!important;color:#000!important}.bg-orange-lighten-3{background-color:#ffcc80!important;color:#000!important}.bg-orange-lighten-2{background-color:#ffb74d!important;color:#000!important}.bg-orange-lighten-1{background-color:#ffa726!important;color:#000!important}.bg-orange-darken-1{background-color:#fb8c00!important;color:#fff!important}.bg-orange-darken-2{background-color:#f57c00!important;color:#fff!important}.bg-orange-darken-3{background-color:#ef6c00!important;color:#fff!important}.bg-orange-darken-4{background-color:#e65100!important;color:#fff!important}.bg-orange-accent-1{background-color:#ffd180!important;color:#000!important}.bg-orange-accent-2{background-color:#ffab40!important;color:#000!important}.bg-orange-accent-3{background-color:#ff9100!important;color:#000!important}.bg-orange-accent-4{background-color:#ff6d00!important;color:#fff!important}.bg-deep-orange{background-color:#ff5722!important;color:#fff!important}.bg-deep-orange-lighten-5{background-color:#fbe9e7!important;color:#000!important}.bg-deep-orange-lighten-4{background-color:#ffccbc!important;color:#000!important}.bg-deep-orange-lighten-3{background-color:#ffab91!important;color:#000!important}.bg-deep-orange-lighten-2{background-color:#ff8a65!important;color:#000!important}.bg-deep-orange-lighten-1{background-color:#ff7043!important;color:#fff!important}.bg-deep-orange-darken-1{background-color:#f4511e!important;color:#fff!important}.bg-deep-orange-darken-2{background-color:#e64a19!important;color:#fff!important}.bg-deep-orange-darken-3{background-color:#d84315!important;color:#fff!important}.bg-deep-orange-darken-4{background-color:#bf360c!important;color:#fff!important}.bg-deep-orange-accent-1{background-color:#ff9e80!important;color:#000!important}.bg-deep-orange-accent-2{background-color:#ff6e40!important;color:#fff!important}.bg-deep-orange-accent-3{background-color:#ff3d00!important;color:#fff!important}.bg-deep-orange-accent-4{background-color:#dd2c00!important;color:#fff!important}.bg-brown{background-color:#795548!important;color:#fff!important}.bg-brown-lighten-5{background-color:#efebe9!important;color:#000!important}.bg-brown-lighten-4{background-color:#d7ccc8!important;color:#000!important}.bg-brown-lighten-3{background-color:#bcaaa4!important;color:#000!important}.bg-brown-lighten-2{background-color:#a1887f!important;color:#fff!important}.bg-brown-lighten-1{background-color:#8d6e63!important;color:#fff!important}.bg-brown-darken-1{background-color:#6d4c41!important;color:#fff!important}.bg-brown-darken-2{background-color:#5d4037!important;color:#fff!important}.bg-brown-darken-3{background-color:#4e342e!important;color:#fff!important}.bg-brown-darken-4{background-color:#3e2723!important;color:#fff!important}.bg-blue-grey{background-color:#607d8b!important;color:#fff!important}.bg-blue-grey-lighten-5{background-color:#eceff1!important;color:#000!important}.bg-blue-grey-lighten-4{background-color:#cfd8dc!important;color:#000!important}.bg-blue-grey-lighten-3{background-color:#b0bec5!important;color:#000!important}.bg-blue-grey-lighten-2{background-color:#90a4ae!important;color:#fff!important}.bg-blue-grey-lighten-1{background-color:#78909c!important;color:#fff!important}.bg-blue-grey-darken-1{background-color:#546e7a!important;color:#fff!important}.bg-blue-grey-darken-2{background-color:#455a64!important;color:#fff!important}.bg-blue-grey-darken-3{background-color:#37474f!important;color:#fff!important}.bg-blue-grey-darken-4{background-color:#263238!important;color:#fff!important}.bg-grey{background-color:#9e9e9e!important;color:#fff!important}.bg-grey-lighten-5{background-color:#fafafa!important;color:#000!important}.bg-grey-lighten-4{background-color:#f5f5f5!important;color:#000!important}.bg-grey-lighten-3{background-color:#eee!important;color:#000!important}.bg-grey-lighten-2{background-color:#e0e0e0!important;color:#000!important}.bg-grey-lighten-1{background-color:#bdbdbd!important;color:#000!important}.bg-grey-darken-1{background-color:#757575!important;color:#fff!important}.bg-grey-darken-2{background-color:#616161!important;color:#fff!important}.bg-grey-darken-3{background-color:#424242!important;color:#fff!important}.bg-grey-darken-4{background-color:#212121!important;color:#fff!important}.bg-shades-black{background-color:#000!important;color:#fff!important}.bg-shades-white{background-color:#fff!important;color:#000!important}.bg-shades-transparent{background-color:transparent!important;color:currentColor!important}.text-black{color:#000!important}.text-white{color:#fff!important}.text-transparent{color:transparent!important}.text-red{color:#f44336!important}.text-red-lighten-5{color:#ffebee!important}.text-red-lighten-4{color:#ffcdd2!important}.text-red-lighten-3{color:#ef9a9a!important}.text-red-lighten-2{color:#e57373!important}.text-red-lighten-1{color:#ef5350!important}.text-red-darken-1{color:#e53935!important}.text-red-darken-2{color:#d32f2f!important}.text-red-darken-3{color:#c62828!important}.text-red-darken-4{color:#b71c1c!important}.text-red-accent-1{color:#ff8a80!important}.text-red-accent-2{color:#ff5252!important}.text-red-accent-3{color:#ff1744!important}.text-red-accent-4{color:#d50000!important}.text-pink{color:#e91e63!important}.text-pink-lighten-5{color:#fce4ec!important}.text-pink-lighten-4{color:#f8bbd0!important}.text-pink-lighten-3{color:#f48fb1!important}.text-pink-lighten-2{color:#f06292!important}.text-pink-lighten-1{color:#ec407a!important}.text-pink-darken-1{color:#d81b60!important}.text-pink-darken-2{color:#c2185b!important}.text-pink-darken-3{color:#ad1457!important}.text-pink-darken-4{color:#880e4f!important}.text-pink-accent-1{color:#ff80ab!important}.text-pink-accent-2{color:#ff4081!important}.text-pink-accent-3{color:#f50057!important}.text-pink-accent-4{color:#c51162!important}.text-purple{color:#9c27b0!important}.text-purple-lighten-5{color:#f3e5f5!important}.text-purple-lighten-4{color:#e1bee7!important}.text-purple-lighten-3{color:#ce93d8!important}.text-purple-lighten-2{color:#ba68c8!important}.text-purple-lighten-1{color:#ab47bc!important}.text-purple-darken-1{color:#8e24aa!important}.text-purple-darken-2{color:#7b1fa2!important}.text-purple-darken-3{color:#6a1b9a!important}.text-purple-darken-4{color:#4a148c!important}.text-purple-accent-1{color:#ea80fc!important}.text-purple-accent-2{color:#e040fb!important}.text-purple-accent-3{color:#d500f9!important}.text-purple-accent-4{color:#a0f!important}.text-deep-purple{color:#673ab7!important}.text-deep-purple-lighten-5{color:#ede7f6!important}.text-deep-purple-lighten-4{color:#d1c4e9!important}.text-deep-purple-lighten-3{color:#b39ddb!important}.text-deep-purple-lighten-2{color:#9575cd!important}.text-deep-purple-lighten-1{color:#7e57c2!important}.text-deep-purple-darken-1{color:#5e35b1!important}.text-deep-purple-darken-2{color:#512da8!important}.text-deep-purple-darken-3{color:#4527a0!important}.text-deep-purple-darken-4{color:#311b92!important}.text-deep-purple-accent-1{color:#b388ff!important}.text-deep-purple-accent-2{color:#7c4dff!important}.text-deep-purple-accent-3{color:#651fff!important}.text-deep-purple-accent-4{color:#6200ea!important}.text-indigo{color:#3f51b5!important}.text-indigo-lighten-5{color:#e8eaf6!important}.text-indigo-lighten-4{color:#c5cae9!important}.text-indigo-lighten-3{color:#9fa8da!important}.text-indigo-lighten-2{color:#7986cb!important}.text-indigo-lighten-1{color:#5c6bc0!important}.text-indigo-darken-1{color:#3949ab!important}.text-indigo-darken-2{color:#303f9f!important}.text-indigo-darken-3{color:#283593!important}.text-indigo-darken-4{color:#1a237e!important}.text-indigo-accent-1{color:#8c9eff!important}.text-indigo-accent-2{color:#536dfe!important}.text-indigo-accent-3{color:#3d5afe!important}.text-indigo-accent-4{color:#304ffe!important}.text-blue{color:#2196f3!important}.text-blue-lighten-5{color:#e3f2fd!important}.text-blue-lighten-4{color:#bbdefb!important}.text-blue-lighten-3{color:#90caf9!important}.text-blue-lighten-2{color:#64b5f6!important}.text-blue-lighten-1{color:#42a5f5!important}.text-blue-darken-1{color:#1e88e5!important}.text-blue-darken-2{color:#1976d2!important}.text-blue-darken-3{color:#1565c0!important}.text-blue-darken-4{color:#0d47a1!important}.text-blue-accent-1{color:#82b1ff!important}.text-blue-accent-2{color:#448aff!important}.text-blue-accent-3{color:#2979ff!important}.text-blue-accent-4{color:#2962ff!important}.text-light-blue{color:#03a9f4!important}.text-light-blue-lighten-5{color:#e1f5fe!important}.text-light-blue-lighten-4{color:#b3e5fc!important}.text-light-blue-lighten-3{color:#81d4fa!important}.text-light-blue-lighten-2{color:#4fc3f7!important}.text-light-blue-lighten-1{color:#29b6f6!important}.text-light-blue-darken-1{color:#039be5!important}.text-light-blue-darken-2{color:#0288d1!important}.text-light-blue-darken-3{color:#0277bd!important}.text-light-blue-darken-4{color:#01579b!important}.text-light-blue-accent-1{color:#80d8ff!important}.text-light-blue-accent-2{color:#40c4ff!important}.text-light-blue-accent-3{color:#00b0ff!important}.text-light-blue-accent-4{color:#0091ea!important}.text-cyan{color:#00bcd4!important}.text-cyan-lighten-5{color:#e0f7fa!important}.text-cyan-lighten-4{color:#b2ebf2!important}.text-cyan-lighten-3{color:#80deea!important}.text-cyan-lighten-2{color:#4dd0e1!important}.text-cyan-lighten-1{color:#26c6da!important}.text-cyan-darken-1{color:#00acc1!important}.text-cyan-darken-2{color:#0097a7!important}.text-cyan-darken-3{color:#00838f!important}.text-cyan-darken-4{color:#006064!important}.text-cyan-accent-1{color:#84ffff!important}.text-cyan-accent-2{color:#18ffff!important}.text-cyan-accent-3{color:#00e5ff!important}.text-cyan-accent-4{color:#00b8d4!important}.text-teal{color:#009688!important}.text-teal-lighten-5{color:#e0f2f1!important}.text-teal-lighten-4{color:#b2dfdb!important}.text-teal-lighten-3{color:#80cbc4!important}.text-teal-lighten-2{color:#4db6ac!important}.text-teal-lighten-1{color:#26a69a!important}.text-teal-darken-1{color:#00897b!important}.text-teal-darken-2{color:#00796b!important}.text-teal-darken-3{color:#00695c!important}.text-teal-darken-4{color:#004d40!important}.text-teal-accent-1{color:#a7ffeb!important}.text-teal-accent-2{color:#64ffda!important}.text-teal-accent-3{color:#1de9b6!important}.text-teal-accent-4{color:#00bfa5!important}.text-green{color:#4caf50!important}.text-green-lighten-5{color:#e8f5e9!important}.text-green-lighten-4{color:#c8e6c9!important}.text-green-lighten-3{color:#a5d6a7!important}.text-green-lighten-2{color:#81c784!important}.text-green-lighten-1{color:#66bb6a!important}.text-green-darken-1{color:#43a047!important}.text-green-darken-2{color:#388e3c!important}.text-green-darken-3{color:#2e7d32!important}.text-green-darken-4{color:#1b5e20!important}.text-green-accent-1{color:#b9f6ca!important}.text-green-accent-2{color:#69f0ae!important}.text-green-accent-3{color:#00e676!important}.text-green-accent-4{color:#00c853!important}.text-light-green{color:#8bc34a!important}.text-light-green-lighten-5{color:#f1f8e9!important}.text-light-green-lighten-4{color:#dcedc8!important}.text-light-green-lighten-3{color:#c5e1a5!important}.text-light-green-lighten-2{color:#aed581!important}.text-light-green-lighten-1{color:#9ccc65!important}.text-light-green-darken-1{color:#7cb342!important}.text-light-green-darken-2{color:#689f38!important}.text-light-green-darken-3{color:#558b2f!important}.text-light-green-darken-4{color:#33691e!important}.text-light-green-accent-1{color:#ccff90!important}.text-light-green-accent-2{color:#b2ff59!important}.text-light-green-accent-3{color:#76ff03!important}.text-light-green-accent-4{color:#64dd17!important}.text-lime{color:#cddc39!important}.text-lime-lighten-5{color:#f9fbe7!important}.text-lime-lighten-4{color:#f0f4c3!important}.text-lime-lighten-3{color:#e6ee9c!important}.text-lime-lighten-2{color:#dce775!important}.text-lime-lighten-1{color:#d4e157!important}.text-lime-darken-1{color:#c0ca33!important}.text-lime-darken-2{color:#afb42b!important}.text-lime-darken-3{color:#9e9d24!important}.text-lime-darken-4{color:#827717!important}.text-lime-accent-1{color:#f4ff81!important}.text-lime-accent-2{color:#eeff41!important}.text-lime-accent-3{color:#c6ff00!important}.text-lime-accent-4{color:#aeea00!important}.text-yellow{color:#ffeb3b!important}.text-yellow-lighten-5{color:#fffde7!important}.text-yellow-lighten-4{color:#fff9c4!important}.text-yellow-lighten-3{color:#fff59d!important}.text-yellow-lighten-2{color:#fff176!important}.text-yellow-lighten-1{color:#ffee58!important}.text-yellow-darken-1{color:#fdd835!important}.text-yellow-darken-2{color:#fbc02d!important}.text-yellow-darken-3{color:#f9a825!important}.text-yellow-darken-4{color:#f57f17!important}.text-yellow-accent-1{color:#ffff8d!important}.text-yellow-accent-2{color:#ff0!important}.text-yellow-accent-3{color:#ffea00!important}.text-yellow-accent-4{color:#ffd600!important}.text-amber{color:#ffc107!important}.text-amber-lighten-5{color:#fff8e1!important}.text-amber-lighten-4{color:#ffecb3!important}.text-amber-lighten-3{color:#ffe082!important}.text-amber-lighten-2{color:#ffd54f!important}.text-amber-lighten-1{color:#ffca28!important}.text-amber-darken-1{color:#ffb300!important}.text-amber-darken-2{color:#ffa000!important}.text-amber-darken-3{color:#ff8f00!important}.text-amber-darken-4{color:#ff6f00!important}.text-amber-accent-1{color:#ffe57f!important}.text-amber-accent-2{color:#ffd740!important}.text-amber-accent-3{color:#ffc400!important}.text-amber-accent-4{color:#ffab00!important}.text-orange{color:#ff9800!important}.text-orange-lighten-5{color:#fff3e0!important}.text-orange-lighten-4{color:#ffe0b2!important}.text-orange-lighten-3{color:#ffcc80!important}.text-orange-lighten-2{color:#ffb74d!important}.text-orange-lighten-1{color:#ffa726!important}.text-orange-darken-1{color:#fb8c00!important}.text-orange-darken-2{color:#f57c00!important}.text-orange-darken-3{color:#ef6c00!important}.text-orange-darken-4{color:#e65100!important}.text-orange-accent-1{color:#ffd180!important}.text-orange-accent-2{color:#ffab40!important}.text-orange-accent-3{color:#ff9100!important}.text-orange-accent-4{color:#ff6d00!important}.text-deep-orange{color:#ff5722!important}.text-deep-orange-lighten-5{color:#fbe9e7!important}.text-deep-orange-lighten-4{color:#ffccbc!important}.text-deep-orange-lighten-3{color:#ffab91!important}.text-deep-orange-lighten-2{color:#ff8a65!important}.text-deep-orange-lighten-1{color:#ff7043!important}.text-deep-orange-darken-1{color:#f4511e!important}.text-deep-orange-darken-2{color:#e64a19!important}.text-deep-orange-darken-3{color:#d84315!important}.text-deep-orange-darken-4{color:#bf360c!important}.text-deep-orange-accent-1{color:#ff9e80!important}.text-deep-orange-accent-2{color:#ff6e40!important}.text-deep-orange-accent-3{color:#ff3d00!important}.text-deep-orange-accent-4{color:#dd2c00!important}.text-brown{color:#795548!important}.text-brown-lighten-5{color:#efebe9!important}.text-brown-lighten-4{color:#d7ccc8!important}.text-brown-lighten-3{color:#bcaaa4!important}.text-brown-lighten-2{color:#a1887f!important}.text-brown-lighten-1{color:#8d6e63!important}.text-brown-darken-1{color:#6d4c41!important}.text-brown-darken-2{color:#5d4037!important}.text-brown-darken-3{color:#4e342e!important}.text-brown-darken-4{color:#3e2723!important}.text-blue-grey{color:#607d8b!important}.text-blue-grey-lighten-5{color:#eceff1!important}.text-blue-grey-lighten-4{color:#cfd8dc!important}.text-blue-grey-lighten-3{color:#b0bec5!important}.text-blue-grey-lighten-2{color:#90a4ae!important}.text-blue-grey-lighten-1{color:#78909c!important}.text-blue-grey-darken-1{color:#546e7a!important}.text-blue-grey-darken-2{color:#455a64!important}.text-blue-grey-darken-3{color:#37474f!important}.text-blue-grey-darken-4{color:#263238!important}.text-grey{color:#9e9e9e!important}.text-grey-lighten-5{color:#fafafa!important}.text-grey-lighten-4{color:#f5f5f5!important}.text-grey-lighten-3{color:#eee!important}.text-grey-lighten-2{color:#e0e0e0!important}.text-grey-lighten-1{color:#bdbdbd!important}.text-grey-darken-1{color:#757575!important}.text-grey-darken-2{color:#616161!important}.text-grey-darken-3{color:#424242!important}.text-grey-darken-4{color:#212121!important}.text-shades-black{color:#000!important}.text-shades-white{color:#fff!important}.text-shades-transparent{color:transparent!important}/*! +.v-application{display:flex;background:rgb(var(--v-theme-background));color:rgba(var(--v-theme-on-background),var(--v-high-emphasis-opacity))}.v-application__wrap{backface-visibility:hidden;display:flex;flex-direction:column;flex:1 1 auto;max-width:100%;min-height:100vh;min-height:100dvh;position:relative}.v-app-bar{display:flex}.v-app-bar.v-toolbar{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-app-bar.v-toolbar:not(.v-toolbar--flat){box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-app-bar:not(.v-toolbar--absolute){padding-inline-end:var(--v-scrollbar-offset)}.v-toolbar{align-items:flex-start;display:flex;flex:none;flex-direction:column;justify-content:space-between;max-width:100%;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:height,width,transform,max-width,left,right,top,bottom,box-shadow;width:100%;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:0;background:rgb(var(--v-theme-on-surface-variant));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-toolbar--border{border-width:thin;box-shadow:none}.v-toolbar--absolute{position:absolute}.v-toolbar--collapse{max-width:112px;overflow:hidden}.v-toolbar--collapse .v-toolbar-title{display:none}.v-locale--is-ltr.v-toolbar--collapse,.v-locale--is-ltr .v-toolbar--collapse{border-bottom-right-radius:24px}.v-locale--is-rtl.v-toolbar--collapse,.v-locale--is-rtl .v-toolbar--collapse{border-bottom-left-radius:24px}.v-toolbar--flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-toolbar--floating{display:inline-flex}.v-toolbar--rounded{border-radius:4px}.v-toolbar__content,.v-toolbar__extension{align-items:center;display:flex;flex:0 0 auto;position:relative;transition:inherit;width:100%}.v-toolbar__content>.v-btn:first-child{margin-inline-start:10px}.v-toolbar__content>.v-btn:last-child{margin-inline-end:10px}.v-toolbar__content>.v-toolbar-title{margin-inline-start:16px}.v-toolbar--density-prominent .v-toolbar__content{align-items:flex-start}.v-toolbar__image{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;opacity:var(--v-toolbar-image-opacity, 1);transition-property:opacity}.v-toolbar__prepend,.v-toolbar__append{align-items:center;align-self:stretch;display:flex}.v-toolbar__prepend{margin-inline-start:10px;margin-inline-end:auto}.v-toolbar__append{margin-inline-start:auto;margin-inline-end:10px}.v-toolbar-title{flex:1 1;min-width:0;font-size:1.25rem;font-weight:400;letter-spacing:0;line-height:1.75rem;text-transform:none}.v-toolbar--density-prominent .v-toolbar-title{align-self:flex-end;padding-bottom:6px;font-size:1.5rem;font-weight:400;letter-spacing:0;line-height:2.25rem;text-transform:none}.v-toolbar-title__placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-toolbar-items{display:flex;height:inherit;align-self:stretch}.v-toolbar-items>.v-btn{border-radius:0}.v-img{--v-theme-overlay-multiplier: 3;z-index:0}.v-img--booting .v-responsive__sizer{transition:none}.v-img__img,.v-img__picture,.v-img__gradient,.v-img__placeholder,.v-img__error{z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%}.v-img__img--preload{filter:blur(4px)}.v-img__img--contain{object-fit:contain}.v-img__img--cover{object-fit:cover}.v-img__gradient{background-repeat:no-repeat}.v-responsive{display:flex;flex:1 0 auto;max-height:100%;max-width:100%;overflow:hidden;position:relative}.v-responsive--inline{display:inline-flex;flex:0 0 auto}.v-responsive__content{flex:1 0 0px;max-width:100%}.v-responsive__sizer~.v-responsive__content{margin-inline-start:-100%}.v-responsive__sizer{flex:1 0 0px;transition:padding-bottom .2s cubic-bezier(.4,0,.2,1);pointer-events:none}.v-btn{align-items:center;border-radius:4px;display:inline-grid;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;font-weight:500;justify-content:center;letter-spacing:.0892857143em;line-height:normal;max-width:100%;outline:none;position:relative;text-decoration:none;text-indent:.0892857143em;text-transform:uppercase;transition-property:box-shadow,transform,opacity,background;transition-duration:.28s;transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-user-select:none;user-select:none;vertical-align:middle;flex-shrink:0;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0}.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 20px;font-size:var(--v-btn-size);min-width:36px;padding:0 8px}.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 28px;font-size:var(--v-btn-size);min-width:50px;padding:0 12px}.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 36px;font-size:var(--v-btn-size);min-width:64px;padding:0 16px}.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 44px;font-size:var(--v-btn-size);min-width:78px;padding:0 20px}.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 52px;font-size:var(--v-btn-size);min-width:92px;padding:0 24px}.v-btn.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -8px)}.v-btn.v-btn--density-compact{height:calc(var(--v-btn-height) + -12px)}.v-btn--border{border-width:thin;box-shadow:none}.v-btn--absolute{position:absolute}.v-btn--fixed{position:fixed}.v-btn:hover>.v-btn__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-btn:focus-visible>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn:focus>.v-btn__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-btn--active>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn--active:hover>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn--active:focus-visible>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn--active:focus>.v-btn__overlay,.v-btn[aria-haspopup=menu][aria-expanded=true]:focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn--variant-plain,.v-btn--variant-outlined,.v-btn--variant-text,.v-btn--variant-tonal{background:transparent;color:inherit}.v-btn--variant-plain{opacity:.62}.v-btn--variant-plain:focus,.v-btn--variant-plain:hover{opacity:1}.v-btn--variant-plain .v-btn__overlay{display:none}.v-btn--variant-elevated,.v-btn--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn--variant-elevated{box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--variant-outlined{border:thin solid currentColor}.v-btn--variant-text .v-btn__overlay{background:currentColor}.v-btn--variant-tonal .v-btn__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}@supports selector(:focus-visible){.v-btn:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn:focus-visible:after{opacity:calc(.25 * var(--v-theme-overlay-multiplier))}}.v-btn--icon{border-radius:50%;min-width:0;padding:0}.v-btn--icon.v-btn--size-default{--v-btn-size: 1rem}.v-btn--icon.v-btn--density-default{width:calc(var(--v-btn-height) + 12px);height:calc(var(--v-btn-height) + 12px)}.v-btn--icon.v-btn--density-comfortable{width:calc(var(--v-btn-height) + 0px);height:calc(var(--v-btn-height) + 0px)}.v-btn--icon.v-btn--density-compact{width:calc(var(--v-btn-height) + -8px);height:calc(var(--v-btn-height) + -8px)}.v-btn--elevated:hover,.v-btn--elevated:focus{box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--elevated:active{box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-btn--flat{box-shadow:none}.v-btn--block{display:flex;flex:1 0 auto;min-width:100%}.v-btn--disabled{pointer-events:none;opacity:.26}.v-btn--disabled:hover{opacity:.26}.v-btn--disabled.v-btn--variant-elevated,.v-btn--disabled.v-btn--variant-flat{box-shadow:none;opacity:1;color:rgba(var(--v-theme-on-surface),.26);background:rgb(var(--v-theme-surface))}.v-btn--disabled.v-btn--variant-elevated .v-btn__overlay,.v-btn--disabled.v-btn--variant-flat .v-btn__overlay{opacity:.4615384615}.v-btn--loading{pointer-events:none}.v-btn--loading .v-btn__content,.v-btn--loading .v-btn__prepend,.v-btn--loading .v-btn__append{opacity:0}.v-btn--stacked{grid-template-areas:"prepend" "content" "append";grid-template-columns:auto;grid-template-rows:max-content max-content max-content;justify-items:center;align-content:center}.v-btn--stacked .v-btn__content{flex-direction:column;line-height:1.25}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--start,.v-btn--stacked .v-btn__content>.v-icon--end{margin-inline-start:0;margin-inline-end:0}.v-btn--stacked .v-btn__prepend,.v-btn--stacked .v-btn__content>.v-icon--start{margin-bottom:4px}.v-btn--stacked .v-btn__append,.v-btn--stacked .v-btn__content>.v-icon--end{margin-top:4px}.v-btn--stacked.v-btn--size-x-small{--v-btn-size: .625rem;--v-btn-height: 56px;font-size:var(--v-btn-size);min-width:56px;padding:0 12px}.v-btn--stacked.v-btn--size-small{--v-btn-size: .75rem;--v-btn-height: 64px;font-size:var(--v-btn-size);min-width:64px;padding:0 14px}.v-btn--stacked.v-btn--size-default{--v-btn-size: .875rem;--v-btn-height: 72px;font-size:var(--v-btn-size);min-width:72px;padding:0 16px}.v-btn--stacked.v-btn--size-large{--v-btn-size: 1rem;--v-btn-height: 80px;font-size:var(--v-btn-size);min-width:80px;padding:0 18px}.v-btn--stacked.v-btn--size-x-large{--v-btn-size: 1.125rem;--v-btn-height: 88px;font-size:var(--v-btn-size);min-width:88px;padding:0 20px}.v-btn--stacked.v-btn--density-default{height:calc(var(--v-btn-height) + 0px)}.v-btn--stacked.v-btn--density-comfortable{height:calc(var(--v-btn-height) + -16px)}.v-btn--stacked.v-btn--density-compact{height:calc(var(--v-btn-height) + -24px)}.v-btn--rounded{border-radius:24px}.v-btn--rounded.v-btn--icon{border-radius:4px}.v-btn .v-icon{--v-icon-size-multiplier: .8571428571}.v-btn--icon .v-icon{--v-icon-size-multiplier: 1}.v-btn--stacked .v-icon{--v-icon-size-multiplier: 1.1428571429}.v-btn__loader{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.v-btn__content,.v-btn__prepend,.v-btn__append{align-items:center;display:flex;transition:transform,opacity .2s cubic-bezier(.4,0,.2,1)}.v-btn__prepend{grid-area:prepend;margin-inline-start:calc(var(--v-btn-height) / -9);margin-inline-end:calc(var(--v-btn-height) / 4.5)}.v-btn__append{grid-area:append;margin-inline-start:calc(var(--v-btn-height) / 4.5);margin-inline-end:calc(var(--v-btn-height) / -9)}.v-btn__content{grid-area:content;justify-content:center;white-space:nowrap}.v-btn__content>.v-icon--start{margin-inline-start:calc(var(--v-btn-height) / -9);margin-inline-end:calc(var(--v-btn-height) / 4.5)}.v-btn__content>.v-icon--end{margin-inline-start:calc(var(--v-btn-height) / 4.5);margin-inline-end:calc(var(--v-btn-height) / -9)}.v-btn--stacked .v-btn__content{white-space:normal}.v-btn__overlay{background-color:currentColor;border-radius:inherit;opacity:0;transition:opacity .2s ease-in-out}.v-btn__overlay,.v-btn__underlay{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.v-card-actions .v-btn{padding:0 8px}.v-card-actions .v-btn~.v-btn:not(.v-btn-toggle .v-btn){margin-inline-start:.5rem}.v-banner-actions .v-btn{padding:0 8px}.v-pagination .v-btn{border-radius:4px}.v-btn__overlay{transition:none}.v-pagination__item--is-active .v-btn__overlay{opacity:var(--v-border-opacity)}.v-snackbar-actions .v-btn{padding:0 8px}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled)>.v-btn__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):hover>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus-visible>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-btn-toggle>.v-btn.v-btn--active:not(.v-btn--disabled):focus>.v-btn__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-btn-group{display:inline-flex;flex-wrap:nowrap;max-width:100%;min-width:0;overflow:hidden;vertical-align:middle;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px;background:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-btn-group--border{border-width:thin;box-shadow:none}.v-btn-group--density-default.v-btn-group{height:48px}.v-btn-group--density-comfortable.v-btn-group{height:40px}.v-btn-group--density-compact.v-btn-group{height:36px}.v-btn-group .v-btn{border-radius:0;border-color:inherit}.v-btn-group .v-btn:not(:last-child){border-inline-end:none}.v-btn-group .v-btn:not(:first-child){border-inline-start:none}.v-btn-group .v-btn:first-child{border-start-start-radius:inherit;border-end-start-radius:inherit}.v-btn-group .v-btn:last-child{border-start-end-radius:inherit;border-end-end-radius:inherit}.v-btn-group--divided .v-btn:not(:last-child){border-inline-end-width:thin;border-inline-end-style:solid;border-inline-end-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-btn-group--tile{border-radius:0}.v-icon{--v-icon-size-multiplier: 1;align-items:center;display:inline-flex;font-feature-settings:"liga";height:1em;justify-content:center;letter-spacing:normal;line-height:1;position:relative;text-indent:0;text-align:center;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1em;min-width:1em}.v-icon--clickable{cursor:pointer}.v-icon--size-x-small{font-size:calc(var(--v-icon-size-multiplier) * 1em)}.v-icon--size-small{font-size:calc(var(--v-icon-size-multiplier) * 1.25em)}.v-icon--size-default{font-size:calc(var(--v-icon-size-multiplier) * 1.5em)}.v-icon--size-large{font-size:calc(var(--v-icon-size-multiplier) * 1.75em)}.v-icon--size-x-large{font-size:calc(var(--v-icon-size-multiplier) * 2em)}.v-icon__svg{fill:currentColor;width:100%;height:100%}.v-icon--start{margin-inline-end:8px}.v-icon--end{margin-inline-start:8px}.v-progress-circular{align-items:center;display:inline-flex;justify-content:center;position:relative;vertical-align:middle}.v-progress-circular>svg{width:100%;height:100%;margin:auto;position:absolute;top:0;bottom:0;left:0;right:0;z-index:0}.v-progress-circular__content{align-items:center;display:flex;justify-content:center}.v-progress-circular__underlay{color:rgba(var(--v-border-color),var(--v-border-opacity));stroke:currentColor;z-index:1}.v-progress-circular__overlay{stroke:currentColor;transition:all .2s ease-in-out,stroke-width 0s;z-index:2}.v-progress-circular--size-x-small{height:16px;width:16px}.v-progress-circular--size-small{height:24px;width:24px}.v-progress-circular--size-default{height:32px;width:32px}.v-progress-circular--size-large{height:48px;width:48px}.v-progress-circular--size-x-large{height:64px;width:64px}.v-progress-circular--indeterminate>svg{animation:progress-circular-rotate 1.4s linear infinite;transform-origin:center center;transition:all .2s ease-in-out}.v-progress-circular--indeterminate .v-progress-circular__overlay{animation:progress-circular-dash 1.4s ease-in-out infinite,progress-circular-rotate 1.4s linear infinite;stroke-dasharray:25,200;stroke-dashoffset:0;stroke-linecap:round;transform-origin:center center;transform:rotate(-90deg)}.v-progress-circular--disable-shrink>svg{animation-duration:.7s}.v-progress-circular--disable-shrink .v-progress-circular__overlay{animation:none}.v-progress-circular--indeterminate:not(.v-progress-circular--visible)>svg,.v-progress-circular--indeterminate:not(.v-progress-circular--visible) .v-progress-circular__overlay{animation-play-state:paused!important}@keyframes progress-circular-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0px}50%{stroke-dasharray:100,200;stroke-dashoffset:-15px}to{stroke-dasharray:100,200;stroke-dashoffset:-124px}}@keyframes progress-circular-rotate{to{transform:rotate(270deg)}}.v-progress-linear{background:transparent;overflow:hidden;position:relative;transition:.2s cubic-bezier(.4,0,.2,1);width:100%}.v-progress-linear__background{background:currentColor;bottom:0;left:0;opacity:var(--v-border-opacity);position:absolute;top:0;transition-property:width,left,right;transition:inherit}.v-progress-linear__content{align-items:center;display:flex;height:100%;justify-content:center;left:0;pointer-events:none;position:absolute;top:0;width:100%}.v-progress-linear__determinate,.v-progress-linear__indeterminate{background:currentColor}.v-progress-linear__determinate{height:inherit;left:0;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear__indeterminate .long,.v-progress-linear__indeterminate .short{animation-play-state:paused;animation-duration:2.2s;animation-iteration-count:infinite;bottom:0;height:inherit;left:0;position:absolute;right:auto;top:0;width:auto;will-change:left,right}.v-progress-linear__indeterminate .long{animation-name:indeterminate-ltr}.v-progress-linear__indeterminate .short{animation-name:indeterminate-short-ltr}.v-progress-linear__stream{animation:stream .25s infinite linear;animation-play-state:paused;bottom:0;left:auto;opacity:.3;pointer-events:none;position:absolute;transition:inherit;transition-property:width,left,right}.v-progress-linear--reverse .v-progress-linear__background,.v-progress-linear--reverse .v-progress-linear__determinate,.v-progress-linear--reverse .v-progress-linear__content,.v-progress-linear--reverse .v-progress-linear__indeterminate .long,.v-progress-linear--reverse .v-progress-linear__indeterminate .short{left:auto;right:0}.v-progress-linear--reverse .v-progress-linear__indeterminate .long{animation-name:indeterminate-rtl}.v-progress-linear--reverse .v-progress-linear__indeterminate .short{animation-name:indeterminate-short-rtl}.v-progress-linear--reverse .v-progress-linear__stream{right:auto}.v-progress-linear--absolute,.v-progress-linear--fixed{left:0;z-index:1}.v-progress-linear--absolute{position:absolute}.v-progress-linear--fixed{position:fixed}.v-progress-linear--rounded{border-radius:9999px}.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded.v-progress-linear--rounded-bar .v-progress-linear__indeterminate{border-radius:inherit}.v-progress-linear--striped .v-progress-linear__determinate{animation:progress-linear-stripes 1s infinite linear;background-image:linear-gradient(135deg,hsla(0,0%,100%,.25) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.25) 0,hsla(0,0%,100%,.25) 75%,transparent 0,transparent);background-repeat:repeat;background-size:var(--v-progress-linear-height)}.v-progress-linear--active .v-progress-linear__indeterminate .long,.v-progress-linear--active .v-progress-linear__indeterminate .short,.v-progress-linear--active .v-progress-linear__stream{animation-play-state:running}.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-progress-linear--rounded-bar .v-progress-linear__indeterminate,.v-progress-linear--rounded-bar .v-progress-linear__stream+.v-progress-linear__background{border-radius:9999px}.v-locale--is-ltr.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-locale--is-ltr .v-progress-linear--rounded-bar .v-progress-linear__determinate{border-top-left-radius:0;border-bottom-left-radius:0}.v-locale--is-rtl.v-progress-linear--rounded-bar .v-progress-linear__determinate,.v-locale--is-rtl .v-progress-linear--rounded-bar .v-progress-linear__determinate{border-top-right-radius:0;border-bottom-right-radius:0}@keyframes indeterminate-ltr{0%{left:-90%;right:100%}60%{left:-90%;right:100%}to{left:100%;right:-35%}}@keyframes indeterminate-rtl{0%{left:100%;right:-90%}60%{left:100%;right:-90%}to{left:-35%;right:100%}}@keyframes indeterminate-short-ltr{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes indeterminate-short-rtl{0%{left:100%;right:-200%}60%{left:-8%;right:107%}to{left:-8%;right:107%}}@keyframes stream{to{transform:translate(var(--v-progress-linear-stream-to))}}@keyframes progress-linear-stripes{0%{background-position-x:var(--v-progress-linear-height)}}.v-ripple__container{color:inherit;border-radius:inherit;position:absolute;width:100%;height:100%;left:0;top:0;overflow:hidden;z-index:0;pointer-events:none;contain:strict}.v-ripple__animation{color:inherit;position:absolute;top:0;left:0;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;overflow:hidden;will-change:transform,opacity}.v-ripple__animation--enter{transition:none;opacity:0}.v-ripple__animation--in{transition:transform .25s cubic-bezier(0,0,.2,1),opacity .1s cubic-bezier(0,0,.2,1);opacity:calc(.25 * var(--v-theme-overlay-multiplier))}.v-ripple__animation--out{transition:opacity .3s cubic-bezier(0,0,.2,1);opacity:0}.v-autocomplete .v-field .v-text-field__prefix,.v-autocomplete .v-field .v-text-field__suffix,.v-autocomplete .v-field .v-field__input,.v-autocomplete .v-field.v-field{cursor:text}.v-autocomplete .v-field .v-field__input>input{align-self:flex-start;flex:1 1}.v-autocomplete .v-field input{min-width:64px}.v-autocomplete .v-field:not(.v-field--focused) input{min-width:0}.v-autocomplete .v-field--dirty .v-autocomplete__selection{margin-inline-end:2px}.v-autocomplete .v-autocomplete__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-autocomplete__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-autocomplete__mask{background:rgb(var(--v-theme-on-surface-variant))}.v-autocomplete__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:90%}.v-autocomplete__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-autocomplete__selection:first-child{margin-inline-start:0}.v-autocomplete--selecting-index .v-autocomplete__selection{opacity:var(--v-medium-emphasis-opacity)}.v-autocomplete--selecting-index .v-autocomplete__selection--selected{opacity:1}.v-autocomplete--selecting-index .v-field__input>input{caret-color:transparent}.v-autocomplete--single.v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline-start:inherit;padding-inline-end:inherit}.v-autocomplete--single .v-field--variant-outlined input{top:50%;transform:translateY(calc(-50% - (var(--v-input-chips-margin-top) + var(--v-input-chips-margin-bottom)) / 2))}.v-autocomplete--single .v-field--active input{transition:none}.v-autocomplete--single .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-autocomplete--single .v-field--focused .v-autocomplete__selection{opacity:0}.v-autocomplete__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-autocomplete--active-menu .v-autocomplete__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-selection-control{align-items:center;contain:layout;display:flex;flex:1 0;grid-area:control;position:relative;-webkit-user-select:none;user-select:none}.v-selection-control .v-label{white-space:normal;word-break:break-word;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error .v-label,.v-selection-control--disabled .v-label{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{display:inline-flex;flex:0 0 auto;min-width:0;max-width:100%}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size: 40px}.v-selection-control--density-comfortable{--v-selection-control-size: 36px}.v-selection-control--density-compact{--v-selection-control-size: 28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);display:inline-flex;align-items:center;position:relative;justify-content:center;flex:none}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);align-items:center;display:flex;flex:none;justify-content:center;position:relative;border-radius:50%}.v-selection-control__input input{cursor:pointer;position:absolute;left:0;top:0;width:100%;height:100%;opacity:0}.v-selection-control__input:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:100%;background-color:currentColor;opacity:0;pointer-events:none}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-label{align-items:center;color:inherit;display:inline-flex;font-size:1rem;letter-spacing:.009375em;min-width:0;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-label--clickable{cursor:pointer}.v-selection-control-group{grid-area:control;display:flex;flex-direction:column}.v-selection-control-group--inline{flex-direction:row;flex-wrap:wrap}.v-input{display:grid;flex:1 1 auto;font-size:1rem;font-weight:400;line-height:1.5;--v-input-chips-margin-top: 2px}.v-input--disabled{pointer-events:none}.v-input--density-default{--v-input-control-height: 56px;--v-input-padding-top: 15px}.v-input--density-comfortable{--v-input-control-height: 48px;--v-input-padding-top: 11px}.v-input--density-compact{--v-input-control-height: 40px;--v-input-padding-top: 7px}.v-input--density-default{--v-input-chips-margin-bottom: 0px}.v-input--density-comfortable{--v-input-chips-margin-bottom: 2px}.v-input--density-compact{--v-input-chips-margin-bottom: 4px}.v-input--vertical{grid-template-areas:"append" "control" "prepend";grid-template-rows:max-content auto max-content;grid-template-columns:min-content}.v-input--vertical .v-input__prepend{margin-block-start:16px}.v-input--vertical .v-input__append{margin-block-end:16px}.v-input--horizontal{grid-template-areas:"prepend control append" "a messages b";grid-template-columns:max-content minmax(0,1fr) max-content;grid-template-rows:auto auto}.v-input--horizontal .v-input__prepend{margin-inline-end:16px}.v-input--horizontal .v-input__append{margin-inline-start:16px}.v-input__details{align-items:flex-end;display:flex;font-size:.75rem;font-weight:400;grid-area:messages;letter-spacing:.0333333333em;line-height:normal;min-height:22px;padding-top:6px;overflow:hidden;justify-content:space-between}.v-input__details>.v-icon,.v-input__prepend>.v-icon,.v-input__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-input--disabled .v-input__details>.v-icon,.v-input--disabled .v-input__details .v-messages,.v-input--error .v-input__details>.v-icon,.v-input--error .v-input__details .v-messages,.v-input--disabled .v-input__prepend>.v-icon,.v-input--disabled .v-input__prepend .v-messages,.v-input--error .v-input__prepend>.v-icon,.v-input--error .v-input__prepend .v-messages,.v-input--disabled .v-input__append>.v-icon,.v-input--disabled .v-input__append .v-messages,.v-input--error .v-input__append>.v-icon,.v-input--error .v-input__append .v-messages{opacity:1}.v-input--disabled .v-input__details,.v-input--disabled .v-input__prepend,.v-input--disabled .v-input__append{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-input__details>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__details .v-messages,.v-input--error:not(.v-input--disabled) .v-input__prepend>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__prepend .v-messages,.v-input--error:not(.v-input--disabled) .v-input__append>.v-icon,.v-input--error:not(.v-input--disabled) .v-input__append .v-messages{color:rgb(var(--v-theme-error))}.v-input__prepend,.v-input__append{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top)}.v-input--center-affix .v-input__prepend,.v-input--center-affix .v-input__append{align-items:center;padding-top:0}.v-input__prepend{grid-area:prepend}.v-input__append{grid-area:append}.v-input__control{display:flex;grid-area:control}.v-messages{flex:1 1 auto;font-size:12px;min-height:14px;min-width:1px;opacity:var(--v-medium-emphasis-opacity);position:relative}.v-messages__message{line-height:12px;word-break:break-word;overflow-wrap:break-word;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto;transition-duration:.15s}.v-chip{align-items:center;cursor:default;display:inline-flex;font-weight:400;max-width:100%;min-width:0;overflow:hidden;position:relative;text-decoration:none;white-space:nowrap;vertical-align:middle;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;border-radius:9999px}.v-chip.v-chip--size-x-small{--v-chip-size: .625rem;--v-chip-height: 18px;font-size:.625rem;padding:0 7px}.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 12px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar{--v-avatar-height: 18px}.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-4.9px;margin-inline-end:3.5px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--start{margin-inline-start:-7px}.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-start:3.5px;margin-inline-end:-4.9px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end{margin-inline-end:-7px}.v-chip--pill.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close{margin-inline-start:10.5px}.v-chip.v-chip--size-x-small .v-icon--start,.v-chip.v-chip--size-x-small .v-chip__filter{margin-inline-start:-3.5px;margin-inline-end:3.5px}.v-chip.v-chip--size-x-small .v-icon--end,.v-chip.v-chip--size-x-small .v-chip__close{margin-inline-start:3.5px;margin-inline-end:-3.5px}.v-chip.v-chip--size-x-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-small .v-chip__append+.v-chip__close{margin-inline-start:7px}.v-chip.v-chip--size-small{--v-chip-size: .75rem;--v-chip-height: 24px;font-size:.75rem;padding:0 9px}.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 18px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar{--v-avatar-height: 24px}.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-6.3px;margin-inline-end:4.5px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--start{margin-inline-start:-9px}.v-chip.v-chip--size-small .v-avatar--end{margin-inline-start:4.5px;margin-inline-end:-6.3px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end{margin-inline-end:-9px}.v-chip--pill.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close{margin-inline-start:13.5px}.v-chip.v-chip--size-small .v-icon--start,.v-chip.v-chip--size-small .v-chip__filter{margin-inline-start:-4.5px;margin-inline-end:4.5px}.v-chip.v-chip--size-small .v-icon--end,.v-chip.v-chip--size-small .v-chip__close{margin-inline-start:4.5px;margin-inline-end:-4.5px}.v-chip.v-chip--size-small .v-icon--end+.v-chip__close,.v-chip.v-chip--size-small .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-small .v-chip__append+.v-chip__close{margin-inline-start:9px}.v-chip.v-chip--size-default{--v-chip-size: .875rem;--v-chip-height: 30px;font-size:.875rem;padding:0 11px}.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 24px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar{--v-avatar-height: 30px}.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-7.7px;margin-inline-end:5.5px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--start{margin-inline-start:-11px}.v-chip.v-chip--size-default .v-avatar--end{margin-inline-start:5.5px;margin-inline-end:-7.7px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end{margin-inline-end:-11px}.v-chip--pill.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close{margin-inline-start:16.5px}.v-chip.v-chip--size-default .v-icon--start,.v-chip.v-chip--size-default .v-chip__filter{margin-inline-start:-5.5px;margin-inline-end:5.5px}.v-chip.v-chip--size-default .v-icon--end,.v-chip.v-chip--size-default .v-chip__close{margin-inline-start:5.5px;margin-inline-end:-5.5px}.v-chip.v-chip--size-default .v-icon--end+.v-chip__close,.v-chip.v-chip--size-default .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-default .v-chip__append+.v-chip__close{margin-inline-start:11px}.v-chip.v-chip--size-large{--v-chip-size: 1rem;--v-chip-height: 36px;font-size:1rem;padding:0 14px}.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 30px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar{--v-avatar-height: 36px}.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-9.8px;margin-inline-end:7px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--start{margin-inline-start:-14px}.v-chip.v-chip--size-large .v-avatar--end{margin-inline-start:7px;margin-inline-end:-9.8px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end{margin-inline-end:-14px}.v-chip--pill.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close{margin-inline-start:21px}.v-chip.v-chip--size-large .v-icon--start,.v-chip.v-chip--size-large .v-chip__filter{margin-inline-start:-7px;margin-inline-end:7px}.v-chip.v-chip--size-large .v-icon--end,.v-chip.v-chip--size-large .v-chip__close{margin-inline-start:7px;margin-inline-end:-7px}.v-chip.v-chip--size-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-large .v-chip__append+.v-chip__close{margin-inline-start:14px}.v-chip.v-chip--size-x-large{--v-chip-size: 1.125rem;--v-chip-height: 42px;font-size:1.125rem;padding:0 16px}.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 36px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar{--v-avatar-height: 42px}.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-11.2px;margin-inline-end:8px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--start{margin-inline-start:-16px}.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-start:8px;margin-inline-end:-11.2px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end{margin-inline-end:-16px}.v-chip--pill.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close{margin-inline-start:24px}.v-chip.v-chip--size-x-large .v-icon--start,.v-chip.v-chip--size-x-large .v-chip__filter{margin-inline-start:-8px;margin-inline-end:8px}.v-chip.v-chip--size-x-large .v-icon--end,.v-chip.v-chip--size-x-large .v-chip__close{margin-inline-start:8px;margin-inline-end:-8px}.v-chip.v-chip--size-x-large .v-icon--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-avatar--end+.v-chip__close,.v-chip.v-chip--size-x-large .v-chip__append+.v-chip__close{margin-inline-start:16px}.v-chip.v-chip--density-default{height:calc(var(--v-chip-height) + 0px)}.v-chip.v-chip--density-comfortable{height:calc(var(--v-chip-height) + -8px)}.v-chip.v-chip--density-compact{height:calc(var(--v-chip-height) + -12px)}.v-chip:hover>.v-chip__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-chip:focus-visible>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip:focus>.v-chip__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-chip--active>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]>.v-chip__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-chip--active:hover>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:hover>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-chip--active:focus-visible>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-chip--active:focus>.v-chip__overlay,.v-chip[aria-haspopup=menu][aria-expanded=true]:focus>.v-chip__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-chip--variant-plain,.v-chip--variant-outlined,.v-chip--variant-text,.v-chip--variant-tonal{background:transparent;color:inherit}.v-chip--variant-plain{opacity:.26}.v-chip--variant-plain:focus,.v-chip--variant-plain:hover{opacity:1}.v-chip--variant-plain .v-chip__overlay{display:none}.v-chip--variant-elevated,.v-chip--variant-flat{background:rgb(var(--v-theme-surface-variant));color:rgb(var(--v-theme-on-surface-variant))}.v-chip--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-chip--variant-outlined{border:thin solid currentColor}.v-chip--variant-text .v-chip__overlay{background:currentColor}.v-chip--variant-tonal .v-chip__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-chip--border{border-width:thin}.v-chip--link{cursor:pointer}.v-chip--filter{-webkit-user-select:none;user-select:none}.v-chip__content{align-items:center;display:inline-flex}.v-autocomplete__selection .v-chip__content,.v-combobox__selection .v-chip__content,.v-select__selection .v-chip__content{overflow:hidden}.v-chip__filter,.v-chip__prepend,.v-chip__append,.v-chip__close{align-items:center;display:inline-flex}.v-chip__close{cursor:pointer;flex:0 1 auto;font-size:18px;max-height:18px;max-width:18px;-webkit-user-select:none;user-select:none}.v-chip__close .v-icon{font-size:inherit}.v-chip__filter{transition:.15s cubic-bezier(.4,0,.2,1)}.v-chip__overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:currentColor;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-chip--disabled{opacity:.3;pointer-events:none;-webkit-user-select:none;user-select:none}.v-chip--label{border-radius:4px}.v-avatar{flex:none;align-items:center;display:inline-flex;justify-content:center;line-height:normal;overflow:hidden;position:relative;text-align:center;transition:.2s cubic-bezier(.4,0,.2,1);transition-property:width,height;vertical-align:middle;border-radius:50%}.v-avatar.v-avatar--size-x-small{--v-avatar-height: 24px}.v-avatar.v-avatar--size-small{--v-avatar-height: 32px}.v-avatar.v-avatar--size-default{--v-avatar-height: 40px}.v-avatar.v-avatar--size-large{--v-avatar-height: 48px}.v-avatar.v-avatar--size-x-large{--v-avatar-height: 56px}.v-avatar.v-avatar--density-default{height:calc(var(--v-avatar-height) + 0px);width:calc(var(--v-avatar-height) + 0px)}.v-avatar.v-avatar--density-comfortable{height:calc(var(--v-avatar-height) + -4px);width:calc(var(--v-avatar-height) + -4px)}.v-avatar.v-avatar--density-compact{height:calc(var(--v-avatar-height) + -8px);width:calc(var(--v-avatar-height) + -8px)}.v-avatar--variant-plain,.v-avatar--variant-outlined,.v-avatar--variant-text,.v-avatar--variant-tonal{background:transparent;color:inherit}.v-avatar--variant-plain{opacity:.62}.v-avatar--variant-plain:focus,.v-avatar--variant-plain:hover{opacity:1}.v-avatar--variant-plain .v-avatar__overlay{display:none}.v-avatar--variant-elevated,.v-avatar--variant-flat{background:var(--v-theme-surface);color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-avatar--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-avatar--variant-outlined{border:thin solid currentColor}.v-avatar--variant-text .v-avatar__overlay{background:currentColor}.v-avatar--variant-tonal .v-avatar__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-avatar--rounded{border-radius:4px}.v-avatar .v-img{height:100%;width:100%}.v-chip-group{display:flex;max-width:100%;min-width:0;overflow-x:auto;padding:4px 0;flex-wrap:wrap}.v-chip-group .v-chip{margin:4px 8px 4px 0}.v-chip-group .v-chip.v-chip--selected:not(.v-chip--disabled) .v-chip__overlay{opacity:var(--v-activated-opacity)}.v-chip-group--column{flex-wrap:wrap;white-space:normal}.v-list{overflow:auto;padding:8px 0;position:relative;outline:none;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:0;background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list--border{border-width:thin;box-shadow:none}.v-list--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-list--nav{padding-inline-start:8px;padding-inline-end:8px}.v-list--rounded{border-radius:4px}.v-list--subheader{padding-top:0}.v-list-img{border-radius:inherit;display:flex;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-list-subheader{align-items:center;background:inherit;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));display:flex;font-size:.875rem;font-weight:400;line-height:1.375rem;padding-inline-end:16px;min-height:40px;transition:.2s min-height cubic-bezier(.4,0,.2,1)}.v-list-subheader__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-list--density-default .v-list-subheader{min-height:40px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-comfortable .v-list-subheader{min-height:36px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list--density-compact .v-list-subheader{min-height:32px;padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-subheader--inset{--indent-padding: 56px}.v-list--nav .v-list-subheader{font-size:.75rem}.v-list-subheader--sticky{background:inherit;left:0;position:sticky;top:0;z-index:1}.v-list__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content 1fr auto;outline:none;max-width:100%;padding:4px 16px;position:relative;text-decoration:none;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;border-radius:0}.v-list-item--border{border-width:thin;box-shadow:none}.v-list-item:hover>.v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item:focus-visible>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item:focus>.v-list-item__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-list-item--active>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]>.v-list-item__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-list-item--active:hover>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:hover>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-list-item--active:focus-visible>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-list-item--active:focus>.v-list-item__overlay,.v-list-item[aria-haspopup=menu][aria-expanded=true]:focus>.v-list-item__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-list-item--variant-plain,.v-list-item--variant-outlined,.v-list-item--variant-text,.v-list-item--variant-tonal{background:transparent;color:inherit}.v-list-item--variant-plain{opacity:.62}.v-list-item--variant-plain:focus,.v-list-item--variant-plain:hover{opacity:1}.v-list-item--variant-plain .v-list-item__overlay{display:none}.v-list-item--variant-elevated,.v-list-item--variant-flat{background:rgba(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-list-item--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-list-item--variant-outlined{border:thin solid currentColor}.v-list-item--variant-text .v-list-item__overlay{background:currentColor}.v-list-item--variant-tonal .v-list-item__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}@supports selector(:focus-visible){.v-list-item:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;border:2px solid currentColor;border-radius:4px;opacity:0;transition:opacity .2s ease-in-out}.v-list-item:focus-visible:after{opacity:calc(.15 * var(--v-theme-overlay-multiplier))}}.v-list-item__prepend>.v-badge .v-icon,.v-list-item__prepend>.v-icon,.v-list-item__append>.v-badge .v-icon,.v-list-item__append>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-list-item--active .v-list-item__prepend>.v-badge .v-icon,.v-list-item--active .v-list-item__prepend>.v-icon,.v-list-item--active .v-list-item__append>.v-badge .v-icon,.v-list-item--active .v-list-item__append>.v-icon{opacity:1}.v-list-item--rounded{border-radius:4px}.v-list-item--disabled{pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.6}.v-list-item--link{cursor:pointer}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item .v-avatar,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item .v-avatar{--v-avatar-height: 24px}.v-list-item__prepend{align-items:center;align-self:center;display:flex;grid-area:prepend}.v-list-item__prepend>.v-badge~.v-list-item__spacer,.v-list-item__prepend>.v-icon~.v-list-item__spacer,.v-list-item__prepend>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__prepend>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item--three-line .v-list-item__prepend{align-self:start}.v-list-item__append{align-self:center;display:flex;align-items:center;grid-area:append;overflow:hidden}.v-list-item__append .v-list-item__spacer{order:-1;transition:.15s width cubic-bezier(.4,0,.2,1)}.v-navigation-drawer--rail:not(.v-navigation-drawer--expand-on-hover) .v-list-item__append .v-list-item__spacer,.v-navigation-drawer--rail.v-navigation-drawer--expand-on-hover:not(.v-navigation-drawer--is-hovering) .v-list-item__append .v-list-item__spacer{width:0}.v-list-item__append>.v-badge~.v-list-item__spacer,.v-list-item__append>.v-icon~.v-list-item__spacer,.v-list-item__append>.v-tooltip~.v-list-item__spacer{width:32px}.v-list-item__append>.v-avatar~.v-list-item__spacer{width:16px}.v-list-item--three-line .v-list-item__append{align-self:start}.v-list-item__content{align-self:center;grid-area:content;overflow:hidden}.v-list-item-action{align-self:center;display:flex;align-items:center;grid-area:prepend;flex:none;transition:inherit;transition-property:height,width}.v-list-item-action--start{margin-inline-end:12px}.v-list-item-action--end{margin-inline-start:12px}.v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-media--start{margin-inline-end:16px}.v-list-item-media--end{margin-inline-start:16px}.v-list-item--two-line .v-list-item-media{margin-top:-4px;margin-bottom:-4px}.v-list-item--three-line .v-list-item-media{margin-top:0;margin-bottom:0}.v-list-item-subtitle{-webkit-box-orient:vertical;display:-webkit-box;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;padding:0;text-overflow:ellipsis;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem;text-transform:none}.v-list-item--one-line .v-list-item-subtitle{-webkit-line-clamp:1}.v-list-item--two-line .v-list-item-subtitle{-webkit-line-clamp:2}.v-list-item--three-line .v-list-item-subtitle{-webkit-line-clamp:3}.v-list-item--nav .v-list-item-subtitle{font-size:.75rem;font-weight:400;letter-spacing:.0178571429em;line-height:1rem}.v-list-item-title{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:normal;overflow:hidden;padding:0;white-space:nowrap;text-overflow:ellipsis;word-break:normal;word-wrap:break-word;font-size:1rem;font-weight:400;letter-spacing:.009375em;line-height:1.5rem;text-transform:none}.v-list-item--nav .v-list-item-title{font-size:.8125rem;font-weight:500;letter-spacing:normal;line-height:1rem}.v-list-item--density-default{min-height:40px}.v-list-item--density-default.v-list-item--one-line{min-height:48px;padding-top:4px;padding-bottom:4px}.v-list-item--density-default.v-list-item--two-line{min-height:64px;padding-top:12px;padding-bottom:12px}.v-list-item--density-default.v-list-item--three-line{min-height:88px;padding-top:16px;padding-bottom:16px}.v-list-item--density-default.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-default.v-list-item--three-line .v-list-item__append{padding-top:8px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--one-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--two-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-default:not(.v-list-item--nav).v-list-item--three-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-comfortable{min-height:36px}.v-list-item--density-comfortable.v-list-item--one-line{min-height:44px}.v-list-item--density-comfortable.v-list-item--two-line{min-height:60px;padding-top:8px;padding-bottom:8px}.v-list-item--density-comfortable.v-list-item--three-line{min-height:84px;padding-top:12px;padding-bottom:12px}.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-comfortable.v-list-item--three-line .v-list-item__append{padding-top:6px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--one-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--two-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-comfortable:not(.v-list-item--nav).v-list-item--three-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-compact{min-height:32px}.v-list-item--density-compact.v-list-item--one-line{min-height:40px}.v-list-item--density-compact.v-list-item--two-line{min-height:56px;padding-top:4px;padding-bottom:4px}.v-list-item--density-compact.v-list-item--three-line{min-height:80px;padding-top:8px;padding-bottom:8px}.v-list-item--density-compact.v-list-item--three-line .v-list-item__prepend,.v-list-item--density-compact.v-list-item--three-line .v-list-item__append{padding-top:4px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--one-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--two-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--density-compact:not(.v-list-item--nav).v-list-item--three-line{padding-inline-start:16px;padding-inline-end:16px}.v-list-item--nav{padding-inline-start:8px;padding-inline-end:8px}.v-list .v-list-item--nav:not(:only-child){margin-bottom:4px}.v-list-item__underlay{position:absolute}.v-list-item__overlay{background-color:currentColor;border-radius:inherit;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-in-out}.v-list-item--active.v-list-item--variant-elevated .v-list-item__overlay{--v-theme-overlay-multiplier: 0}.v-list{--indent-padding: 0px}.v-list--nav{--indent-padding: -8px}.v-list-group{--list-indent-size: 16px;--parent-padding: var(--indent-padding);--prepend-width: 40px}.v-list-group--fluid{--list-indent-size: 0px}.v-list-group--prepend{--parent-padding: calc(var(--indent-padding) + var(--prepend-width))}.v-list-group--fluid.v-list-group--prepend{--parent-padding: var(--indent-padding)}.v-list-group__items{--indent-padding: calc(var(--parent-padding) + var(--list-indent-size))}.v-list-group__items .v-list-item{padding-inline-start:calc(16px + var(--indent-padding))!important}.v-list-group__header.v-list-item--active:not(:focus-visible) .v-list-item__overlay{opacity:0}.v-list-group__header.v-list-item--active:hover .v-list-item__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-divider{display:block;flex:1 1 100%;height:0px;max-height:0px;opacity:var(--v-border-opacity);transition:inherit;border-style:solid;border-width:thin 0 0 0}.v-divider--vertical{align-self:stretch;border-width:0 thin 0 0;display:inline-flex;height:inherit;margin-left:-1px;max-height:100%;max-width:0px;vertical-align:text-bottom;width:0px}.v-divider--inset:not(.v-divider--vertical){max-width:calc(100% - 72px);margin-inline-start:72px}.v-divider--inset.v-divider--vertical{margin-bottom:8px;margin-top:8px;max-height:calc(100% - 16px)}.v-menu>.v-overlay__content{display:flex;flex-direction:column;border-radius:4px}.v-menu>.v-overlay__content>.v-card,.v-menu>.v-overlay__content>.v-sheet,.v-menu>.v-overlay__content>.v-list{background:rgb(var(--v-theme-surface));border-radius:inherit;overflow:auto;height:100%;box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-overlay-container{contain:layout;left:0;pointer-events:none;position:absolute;top:0;display:contents}.v-overlay-scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-overlay-scroll-blocked:not(html){overflow-y:hidden!important}html.v-overlay-scroll-blocked{position:fixed;top:var(--v-body-scroll-y);left:var(--v-body-scroll-x);width:100%;height:100%}.v-overlay{border-radius:inherit;display:flex;left:0;pointer-events:none;position:fixed;top:0;bottom:0;right:0}.v-overlay__content{outline:none;position:absolute;pointer-events:auto;contain:layout}.v-overlay__scrim{pointer-events:auto;background:rgb(var(--v-theme-on-surface));border-radius:inherit;bottom:0;left:0;opacity:.32;position:fixed;right:0;top:0}.v-overlay--absolute,.v-overlay--contained .v-overlay__scrim{position:absolute}.v-overlay--scroll-blocked{padding-inline-end:var(--v-scrollbar-offset)}.v-select .v-field .v-text-field__prefix,.v-select .v-field .v-text-field__suffix,.v-select .v-field .v-field__input,.v-select .v-field.v-field{cursor:pointer}.v-select .v-field .v-field__input>input{align-self:flex-start;opacity:1;flex:0 0;position:absolute;width:100%;transition:none;pointer-events:none;caret-color:transparent}.v-select .v-field--dirty .v-select__selection{margin-inline-end:2px}.v-select .v-select__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-select__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-select__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:100%}.v-select .v-select__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-select .v-select__selection:first-child{margin-inline-start:0}.v-select--selected .v-field .v-field__input>input{opacity:0}.v-select__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-select--active-menu .v-select__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-text-field input{color:inherit;opacity:0;flex:1;transition:.15s opacity cubic-bezier(.4,0,.2,1);min-width:0}.v-text-field input:focus,.v-text-field input:active{outline:none}.v-text-field input:invalid{box-shadow:none}.v-text-field .v-field{cursor:text}.v-text-field--prefixed.v-text-field .v-field__input{--v-field-padding-start: 6px}.v-text-field--suffixed.v-text-field .v-field__input{--v-field-padding-end: 0}.v-text-field .v-field__input input{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-text-field input.v-field__input{min-height:calc(max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom) + var(--v-input-chips-margin-bottom) + 2px) - var(--v-input-chips-margin-top) - var(--v-input-chips-margin-bottom));padding-top:calc(var(--v-input-chips-margin-top) + var(--v-field-input-padding-top));padding-bottom:calc(var(--v-input-chips-margin-bottom) + var(--v-field-input-padding-bottom))}.v-text-field .v-input__details{padding-inline-start:16px;padding-inline-end:16px}.v-text-field .v-field--no-label input,.v-text-field .v-field--active input{opacity:1}.v-text-field .v-field--single-line input{transition:none}.v-text-field__prefix,.v-text-field__suffix{align-items:center;color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));cursor:default;display:flex;opacity:0;transition:inherit;white-space:nowrap;min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom) + var(--v-input-chips-margin-bottom) + 2px);padding-top:calc(var(--v-field-padding-top, 4px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 6px)}.v-text-field__prefix__text,.v-text-field__suffix__text{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-field--active .v-text-field__prefix,.v-field--active .v-text-field__suffix{opacity:1}.v-field--disabled .v-text-field__prefix,.v-field--disabled .v-text-field__suffix{color:rgba(var(--v-theme-on-surface),var(--v-disabled-opacity))}.v-text-field__prefix{padding-inline-start:var(--v-field-padding-start)}.v-text-field__suffix{padding-inline-end:var(--v-field-padding-end)}.v-text-field--plain-underlined{--v-field-padding-top--plain-underlined: 6px}.v-text-field--plain-underlined .v-input__details{padding:0}.v-text-field--plain-underlined .v-input__prepend,.v-text-field--plain-underlined .v-input__append{align-items:flex-start;padding-top:calc(var(--v-field-padding-top--plain-underlined) + var(--v-input-padding-top))}.v-counter{color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity));flex:0 1 auto;font-size:12px;transition-duration:.15s}.v-field{display:grid;grid-template-areas:"prepend-inner field clear append-inner";grid-template-columns:min-content minmax(0,1fr) min-content min-content;font-size:16px;letter-spacing:.009375em;max-width:100%;border-radius:4px;contain:layout;flex:1 0;grid-area:control;position:relative;--v-field-padding-start: 16px;--v-field-padding-end: 16px;--v-field-padding-top: 10px;--v-field-padding-bottom: 5px;--v-field-input-padding-top: calc(var(--v-field-padding-top, 10px) + var(--v-input-padding-top, 0));--v-field-input-padding-bottom: var(--v-field-padding-bottom, 5px)}.v-field--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-field--prepended{padding-inline-start:12px}.v-field--appended{padding-inline-end:12px}.v-field--variant-solo,.v-field--variant-solo-filled,.v-field--variant-solo-inverted{background:rgb(var(--v-theme-surface));border-color:transparent;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity));box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-field--variant-solo-inverted.v-field--focused{color:rgb(var(--v-theme-on-surface-variant))}.v-field--variant-filled{border-bottom-left-radius:0;border-bottom-right-radius:0}.v-input--density-default .v-field--variant-solo,.v-input--density-default .v-field--variant-solo-inverted,.v-input--density-default .v-field--variant-solo-filled,.v-input--density-default .v-field--variant-filled{--v-input-control-height: 56px;--v-field-padding-bottom: 5px}.v-input--density-comfortable .v-field--variant-solo,.v-input--density-comfortable .v-field--variant-solo-inverted,.v-input--density-comfortable .v-field--variant-solo-filled,.v-input--density-comfortable .v-field--variant-filled{--v-input-control-height: 48px;--v-field-padding-bottom: 1px}.v-input--density-compact .v-field--variant-solo,.v-input--density-compact .v-field--variant-solo-inverted,.v-input--density-compact .v-field--variant-solo-filled,.v-input--density-compact .v-field--variant-filled{--v-input-control-height: 40px;--v-field-padding-bottom: 0px}.v-field--variant-outlined,.v-field--single-line,.v-field--no-label{--v-field-padding-top: 0px}.v-input--density-default .v-field--variant-outlined,.v-input--density-default .v-field--single-line,.v-input--density-default .v-field--no-label{--v-field-padding-bottom: 15px}.v-input--density-comfortable .v-field--variant-outlined,.v-input--density-comfortable .v-field--single-line,.v-input--density-comfortable .v-field--no-label{--v-field-padding-bottom: 11px}.v-input--density-compact .v-field--variant-outlined,.v-input--density-compact .v-field--single-line,.v-input--density-compact .v-field--no-label{--v-field-padding-bottom: 7px}.v-field--variant-plain,.v-field--variant-underlined{border-radius:0;padding:0}.v-field--variant-plain.v-field,.v-field--variant-underlined.v-field{--v-field-padding-start: 0px;--v-field-padding-end: 0px;--v-field-padding-top: var(--v-field-padding-top--plain-underlined, 6px)}.v-input--density-default .v-field--variant-plain,.v-input--density-default .v-field--variant-underlined{--v-input-control-height: 48px;--v-field-padding-bottom: 5px}.v-input--density-comfortable .v-field--variant-plain,.v-input--density-comfortable .v-field--variant-underlined{--v-input-control-height: 40px;--v-field-padding-bottom: 1px}.v-input--density-compact .v-field--variant-plain,.v-input--density-compact .v-field--variant-underlined{--v-input-control-height: 32px;--v-field-padding-bottom: 0px}.v-field--flat{box-shadow:none}.v-field--rounded{border-radius:9999px}.v-field.v-field--prepended{--v-field-padding-start: 6px}.v-field.v-field--appended{--v-field-padding-end: 6px}.v-field__input{color:inherit;display:flex;flex-wrap:wrap;letter-spacing:.009375em;opacity:var(--v-high-emphasis-opacity);min-height:max(var(--v-input-control-height, 56px),1.5rem + var(--v-field-input-padding-top) + var(--v-field-input-padding-bottom) + var(--v-input-chips-margin-bottom) + 2px);min-width:0;padding-inline-start:var(--v-field-padding-start);padding-inline-end:var(--v-field-padding-end);padding-top:var(--v-field-input-padding-top);padding-bottom:var(--v-field-input-padding-bottom);position:relative;width:100%}.v-field__input input{letter-spacing:inherit}.v-field__input input::placeholder,input.v-field__input::placeholder,textarea.v-field__input::placeholder{color:currentColor;opacity:var(--v-disabled-opacity)}.v-field__input:focus,.v-field__input:active{outline:none}.v-field__input:invalid{box-shadow:none}.v-field__field{flex:1 0;grid-area:field;position:relative;align-items:flex-start;display:flex}.v-field__prepend-inner{grid-area:prepend-inner;padding-inline-end:var(--v-field-padding-after)}.v-field__clearable{grid-area:clear}.v-field__append-inner{grid-area:append-inner;padding-inline-start:var(--v-field-padding-after)}.v-field__append-inner,.v-field__clearable,.v-field__prepend-inner{display:flex;align-items:flex-start;padding-top:var(--v-input-padding-top, 10px)}.v-field--center-affix .v-field__append-inner,.v-field--center-affix .v-field__clearable,.v-field--center-affix .v-field__prepend-inner{align-items:center;padding-top:0}.v-field.v-field--variant-underlined .v-field__append-inner,.v-field.v-field--variant-underlined .v-field__clearable,.v-field.v-field--variant-underlined .v-field__prepend-inner,.v-field.v-field--variant-plain .v-field__append-inner,.v-field.v-field--variant-plain .v-field__clearable,.v-field.v-field--variant-plain .v-field__prepend-inner{align-items:flex-start;padding-top:calc(var(--v-field-padding-top, 10px) + var(--v-input-padding-top, 0));padding-bottom:var(--v-field-padding-bottom, 5px)}.v-field--focused .v-field__prepend-inner,.v-field--focused .v-field__append-inner{opacity:1}.v-field__prepend-inner>.v-icon,.v-field__append-inner>.v-icon,.v-field__clearable>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-field--disabled .v-field__prepend-inner>.v-icon,.v-field--error .v-field__prepend-inner>.v-icon,.v-field--disabled .v-field__append-inner>.v-icon,.v-field--error .v-field__append-inner>.v-icon,.v-field--disabled .v-field__clearable>.v-icon,.v-field--error .v-field__clearable>.v-icon{opacity:1}.v-field--error:not(.v-field--disabled) .v-field__prepend-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__append-inner>.v-icon,.v-field--error:not(.v-field--disabled) .v-field__clearable>.v-icon{color:rgb(var(--v-theme-error))}.v-field__clearable{cursor:pointer;opacity:0;overflow:hidden;margin-inline-start:4px;margin-inline-end:4px;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform,width}.v-field--focused .v-field__clearable,.v-field--persistent-clear .v-field__clearable{opacity:1}@media (hover: hover){.v-field:hover .v-field__clearable{opacity:1}}.v-label.v-field-label{contain:layout paint;margin-inline-start:var(--v-field-padding-start);margin-inline-end:var(--v-field-padding-end);max-width:calc(100% - var(--v-field-padding-start) - var(--v-field-padding-end));pointer-events:none;position:absolute;top:var(--v-input-padding-top);transform-origin:left center;transition:.15s cubic-bezier(.4,0,.2,1);transition-property:opacity,transform;z-index:1}.v-field--variant-underlined .v-label.v-field-label,.v-field--variant-plain .v-label.v-field-label{top:calc(var(--v-input-padding-top) + var(--v-field-padding-top))}.v-field--center-affix .v-label.v-field-label{top:50%;transform:translateY(-50%)}.v-field--active .v-label.v-field-label{visibility:hidden}.v-field--focused .v-label.v-field-label,.v-field--error .v-label.v-field-label{opacity:1}.v-field--error:not(.v-field--disabled) .v-label.v-field-label{color:rgb(var(--v-theme-error))}.v-label.v-field-label--floating{--v-field-label-scale: .75em;font-size:var(--v-field-label-scale);visibility:hidden;max-width:100%}.v-field--center-affix .v-label.v-field-label--floating{transform:none}.v-field.v-field--active .v-label.v-field-label--floating{visibility:unset}.v-input--density-default .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-default .v-field--variant-solo-filled .v-label.v-field-label--floating{top:7px}.v-input--density-comfortable .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-comfortable .v-field--variant-solo-filled .v-label.v-field-label--floating{top:5px}.v-input--density-compact .v-field--variant-solo .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-inverted .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-filled .v-label.v-field-label--floating,.v-input--density-compact .v-field--variant-solo-filled .v-label.v-field-label--floating{top:3px}.v-field--variant-plain .v-label.v-field-label--floating,.v-field--variant-underlined .v-label.v-field-label--floating{transform:translateY(-16px);margin:0;top:var(--v-input-padding-top)}.v-field--variant-outlined .v-label.v-field-label--floating{transform:translateY(-50%);transform-origin:center;position:static;margin:0 4px}.v-field__outline{--v-field-border-width: 1px;--v-field-border-opacity: .38;align-items:stretch;contain:layout;display:flex;height:100%;left:0;pointer-events:none;position:absolute;right:0;width:100%}@media (hover: hover){.v-field:hover .v-field__outline{--v-field-border-opacity: var(--v-high-emphasis-opacity)}}.v-field--error:not(.v-field--disabled) .v-field__outline{color:rgb(var(--v-theme-error))}.v-field.v-field--focused .v-field__outline,.v-input.v-input--error .v-field__outline{--v-field-border-opacity: 1}.v-field--variant-outlined.v-field--focused .v-field__outline{--v-field-border-width: 2px}.v-field--variant-filled .v-field__outline:before,.v-field--variant-underlined .v-field__outline:before{border-color:currentColor;border-style:solid;border-width:0 0 var(--v-field-border-width);opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1);content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__outline:after,.v-field--variant-underlined .v-field__outline:after{border-color:currentColor;border-style:solid;border-width:0 0 2px;transform:scaleX(0);transition:transform .15s cubic-bezier(.4,0,.2,1);content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--focused.v-field--variant-filled .v-field__outline:after,.v-field--focused.v-field--variant-underlined .v-field__outline:after{transform:scaleX(1)}.v-field--variant-outlined .v-field__outline{border-radius:inherit}.v-field--variant-outlined .v-field__outline__start,.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after,.v-field--variant-outlined .v-field__outline__end{border:0 solid currentColor;opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-outlined .v-field__outline__start{flex:0 0 12px;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-start-width:var(--v-field-border-width)}.v-field--rounded.v-field--variant-outlined .v-field__outline__start,[class^=rounded-].v-field--variant-outlined .v-field__outline__start,[class*=" rounded-"].v-field--variant-outlined .v-field__outline__start{flex-basis:calc(var(--v-input-control-height) / 2 + 2px)}.v-locale--is-ltr.v-field--variant-outlined .v-field__outline__start,.v-locale--is-ltr .v-field--variant-outlined .v-field__outline__start{border-top-left-radius:inherit;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:inherit}.v-locale--is-rtl.v-field--variant-outlined .v-field__outline__start,.v-locale--is-rtl .v-field--variant-outlined .v-field__outline__start{border-top-left-radius:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:0}.v-field--variant-outlined .v-field__outline__notch{flex:none;position:relative}.v-field--variant-outlined .v-field__outline__notch:before,.v-field--variant-outlined .v-field__outline__notch:after{opacity:var(--v-field-border-opacity);transition:opacity .25s cubic-bezier(.4,0,.2,1);content:"";position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-outlined .v-field__outline__notch:before{border-width:var(--v-field-border-width) 0 0}.v-field--variant-outlined .v-field__outline__notch:after{bottom:0;border-width:0 0 var(--v-field-border-width)}.v-field--active.v-field--variant-outlined .v-field__outline__notch:before{opacity:0}.v-field--variant-outlined .v-field__outline__end{flex:1;border-top-width:var(--v-field-border-width);border-bottom-width:var(--v-field-border-width);border-inline-end-width:var(--v-field-border-width)}.v-locale--is-ltr.v-field--variant-outlined .v-field__outline__end,.v-locale--is-ltr .v-field--variant-outlined .v-field__outline__end{border-top-left-radius:0;border-top-right-radius:inherit;border-bottom-right-radius:inherit;border-bottom-left-radius:0}.v-locale--is-rtl.v-field--variant-outlined .v-field__outline__end,.v-locale--is-rtl .v-field--variant-outlined .v-field__outline__end{border-top-left-radius:inherit;border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:inherit}.v-field__loader{top:calc(100% - 2px);left:0;position:absolute;right:0;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;overflow:hidden}.v-field--variant-outlined .v-field__loader{top:calc(100% - 3px)}.v-field__overlay{border-radius:inherit;pointer-events:none;position:absolute;top:0;left:0;width:100%;height:100%}.v-field--variant-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-filled.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-filled .v-field__overlay{background-color:currentColor;opacity:.04;transition:opacity .25s cubic-bezier(.4,0,.2,1)}@media (hover: hover){.v-field--variant-solo-filled:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-filled.v-field--focused .v-field__overlay{opacity:calc((.04 + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}.v-field--variant-solo-inverted .v-field__overlay{transition:opacity .25s cubic-bezier(.4,0,.2,1)}.v-field--variant-solo-inverted.v-field--has-background .v-field__overlay{opacity:0}@media (hover: hover){.v-field--variant-solo-inverted:hover .v-field__overlay{opacity:calc((.04 + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}}.v-field--variant-solo-inverted.v-field--focused .v-field__overlay{background-color:rgb(var(--v-theme-surface-variant));opacity:1}.v-field--reverse .v-field__field,.v-field--reverse .v-field__input{flex-direction:row-reverse}.v-locale--is-ltr.v-field--reverse .v-field__input,.v-locale--is-ltr.v-field--reverse input,.v-locale--is-ltr .v-field--reverse .v-field__input,.v-locale--is-ltr .v-field--reverse input{text-align:right}.v-locale--is-rtl.v-field--reverse .v-field__input,.v-locale--is-rtl.v-field--reverse input,.v-locale--is-rtl .v-field--reverse .v-field__input,.v-locale--is-rtl .v-field--reverse input{text-align:left}.v-input--disabled .v-field--variant-filled .v-field__outline:before,.v-input--disabled .v-field--variant-underlined .v-field__outline:before{border-image:repeating-linear-gradient(to right,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 0px,rgba(var(--v-theme-on-surface),var(--v-disabled-opacity)) 2px,transparent 2px,transparent 4px) 1 repeat}.v-field--loading .v-field__outline:after,.v-field--loading .v-field__outline:before{opacity:0}.v-virtual-scroll{display:block;flex:1 1 auto;max-width:100%;overflow:auto;position:relative}.v-virtual-scroll__container{display:block}.v-card{display:block;overflow:hidden;overflow-wrap:break-word;position:relative;padding:0;text-decoration:none;transition-duration:.28s;transition-property:box-shadow,opacity,background;transition-timing-function:cubic-bezier(.4,0,.2,1);z-index:0;border-color:rgba(var(--v-border-color),var(--v-border-opacity));border-style:solid;border-width:0;border-radius:4px}.v-card--border{border-width:thin;box-shadow:none}.v-card--absolute{position:absolute}.v-card--fixed{position:fixed}.v-card:hover>.v-card__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-card:focus-visible>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card:focus>.v-card__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-card--active>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]>.v-card__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-card--active:hover>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:hover>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-card--active:focus-visible>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-card--active:focus>.v-card__overlay,.v-card[aria-haspopup=menu][aria-expanded=true]:focus>.v-card__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-card--variant-plain,.v-card--variant-outlined,.v-card--variant-text,.v-card--variant-tonal{background:transparent;color:inherit}.v-card--variant-plain{opacity:.62}.v-card--variant-plain:focus,.v-card--variant-plain:hover{opacity:1}.v-card--variant-plain .v-card__overlay{display:none}.v-card--variant-elevated,.v-card--variant-flat{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-card--variant-elevated{box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--variant-flat{box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--variant-outlined{border:thin solid currentColor}.v-card--variant-text .v-card__overlay{background:currentColor}.v-card--variant-tonal .v-card__underlay{background:currentColor;opacity:var(--v-activated-opacity);border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.v-card--disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.v-card--disabled>:not(.v-card__loader){opacity:.6}.v-card--flat{box-shadow:none}.v-card--hover{cursor:pointer;box-shadow:0 0 0 0 var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 0 0 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--hover:before,.v-card--hover:after{border-radius:inherit;bottom:0;content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0;transition:inherit}.v-card--hover:before{opacity:1;z-index:-1;box-shadow:0 2px 1px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 1px 1px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 3px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--hover:after{z-index:1;opacity:0;box-shadow:0 5px 5px -3px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 8px 10px 1px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 3px 14px 2px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-card--hover:hover:after{opacity:1}.v-card--hover:hover:before{opacity:0}.v-card--link{cursor:pointer}.v-card-actions{align-items:center;display:flex;flex:none;min-height:52px;padding:.5rem}.v-card-item{align-items:center;display:grid;flex:none;grid-template-areas:"prepend content append";grid-template-columns:max-content auto max-content;padding:.625rem 1rem}.v-card-item+.v-card-text{padding-top:0}.v-card-item__prepend{grid-area:prepend;padding-inline-end:1rem}.v-card-item__append{grid-area:append;padding-inline-start:1rem}.v-card-item__content{align-self:center;grid-area:content;overflow:hidden}.v-card-title{display:block;flex:none;font-size:1.25rem;font-weight:500;-webkit-hyphens:auto;hyphens:auto;letter-spacing:.0125em;min-width:0;overflow-wrap:normal;overflow:hidden;padding:.5rem 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap;word-break:normal;word-wrap:break-word}.v-card .v-card-title{line-height:2rem}.v-card--density-comfortable .v-card-title{line-height:1.75rem}.v-card--density-compact .v-card-title{line-height:1.55rem}.v-card-item .v-card-title{padding:0}.v-card-title+.v-card-text,.v-card-title+.v-card-actions{padding-top:0}.v-card-subtitle{display:block;flex:none;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;opacity:var(--v-medium-emphasis-opacity);overflow:hidden;padding:0 1rem;text-overflow:ellipsis;text-transform:none;white-space:nowrap}.v-card .v-card-subtitle{line-height:1.25rem}.v-card--density-comfortable .v-card-subtitle{line-height:1.125rem}.v-card--density-compact .v-card-subtitle{line-height:1rem}.v-card-item .v-card-subtitle{padding:0 0 .25rem}.v-card-text{flex:1 1 auto;font-size:.875rem;font-weight:400;letter-spacing:.0178571429em;padding:1rem;text-transform:none}.v-card .v-card-text{line-height:1.25rem}.v-card--density-comfortable .v-card-text{line-height:1.2rem}.v-card--density-compact .v-card-text{line-height:1.15rem}.v-card__image{display:flex;height:100%;flex:1 1 auto;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:-1}.v-card__content{border-radius:inherit;overflow:hidden;position:relative}.v-card__loader{bottom:auto;top:0;left:0;position:absolute;right:0;width:100%;z-index:1}.v-card__overlay{background-color:currentColor;border-radius:inherit;position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .2s ease-in-out}.v-slider .v-slider__container input{cursor:default;padding:0;width:100%;display:none}.v-slider>.v-input__append,.v-slider>.v-input__prepend{padding:0}.v-slider__container{position:relative;min-height:inherit;width:100%;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}.v-input--disabled .v-slider__container{opacity:var(--v-disabled-opacity)}.v-input--error:not(.v-input--disabled) .v-slider__container{color:rgb(var(--v-theme-error))}.v-slider.v-input--horizontal{align-items:center;margin-inline-start:8px;margin-inline-end:8px}.v-slider.v-input--horizontal>.v-input__control{min-height:32px;display:flex;align-items:center}.v-slider.v-input--vertical{justify-content:center;margin-top:12px;margin-bottom:12px}.v-slider.v-input--vertical>.v-input__control{min-height:300px}.v-slider.v-input--disabled{pointer-events:none}.v-slider--has-labels>.v-input__control{margin-bottom:4px}.v-slider__label{margin-inline-end:12px}.v-slider-thumb{touch-action:none;color:rgb(var(--v-theme-surface-variant))}.v-input--error:not(.v-input--disabled) .v-slider-thumb{color:inherit}.v-slider-thumb__label{background:rgba(var(--v-theme-surface-variant),.7);color:rgb(var(--v-theme-on-surface-variant))}.v-slider-thumb__label:before{color:rgba(var(--v-theme-surface-variant),.7)}.v-slider-thumb{outline:none;position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1)}.v-slider-thumb__surface{cursor:pointer;width:var(--v-slider-thumb-size);height:var(--v-slider-thumb-size);border-radius:50%;-webkit-user-select:none;user-select:none;background-color:currentColor}.v-slider-thumb__surface:before{transition:.3s cubic-bezier(.4,0,.2,1);content:"";color:inherit;top:0;left:0;width:100%;height:100%;border-radius:50%;background:currentColor;position:absolute;pointer-events:none;opacity:0}.v-slider-thumb__surface:after{content:"";width:42px;height:42px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.v-slider-thumb__label-container{position:absolute;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label{display:flex;align-items:center;justify-content:center;font-size:.75rem;min-width:35px;height:25px;border-radius:4px;padding:6px;position:absolute;-webkit-user-select:none;user-select:none;transition:.2s cubic-bezier(.4,0,1,1)}.v-slider-thumb__label:before{content:"";width:0;height:0;position:absolute}.v-slider-thumb__ripple{position:absolute;left:calc(var(--v-slider-thumb-size) / -2);top:calc(var(--v-slider-thumb-size) / -2);width:calc(var(--v-slider-thumb-size) * 2);height:calc(var(--v-slider-thumb-size) * 2);background:inherit}.v-slider.v-input--horizontal .v-slider-thumb{top:50%;transform:translateY(-50%)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb{left:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2);right:unset}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb{left:unset;right:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--horizontal .v-slider-thumb__label-container{left:calc(var(--v-slider-thumb-size) / 2);top:0}.v-slider.v-input--horizontal .v-slider-thumb__label{bottom:calc(var(--v-slider-thumb-size) / 2)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-thumb__label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-thumb__label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-thumb__label:before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid currentColor;bottom:-6px}.v-slider.v-input--vertical .v-slider-thumb{top:calc(var(--v-slider-thumb-position) - var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label-container{top:calc(var(--v-slider-thumb-size) / 2);right:0}.v-slider.v-input--vertical .v-slider-thumb__label{top:-12.5px;left:calc(var(--v-slider-thumb-size) / 2)}.v-slider.v-input--vertical .v-slider-thumb__label:before{border-right:6px solid currentColor;border-top:6px solid transparent;border-bottom:6px solid transparent;left:-6px}.v-slider-thumb--focused .v-slider-thumb__surface:before{transform:scale(2);opacity:var(--v-focus-opacity)}.v-slider-thumb--pressed{transition:none}.v-slider-thumb--pressed .v-slider-thumb__surface:before{opacity:var(--v-pressed-opacity)}@media (hover: hover){.v-slider-thumb:hover .v-slider-thumb__surface:before{transform:scale(2)}.v-slider-thumb:hover:not(.v-slider-thumb--focused) .v-slider-thumb__surface:before{opacity:var(--v-hover-opacity)}}.v-slider-track__background,.v-slider-track__fill,.v-slider-track__tick{background-color:rgb(var(--v-theme-surface-variant))}.v-slider-track__tick--filled{background-color:rgb(var(--v-theme-on-surface-variant))}.v-slider-track{border-radius:6px}.v-slider-track__background,.v-slider-track__fill{position:absolute;transition:.3s cubic-bezier(.25,.8,.5,1);border-radius:inherit}.v-slider--pressed .v-slider-track__background,.v-slider--pressed .v-slider-track__fill{transition:none}.v-input--error:not(.v-input--disabled) .v-slider-track__background,.v-input--error:not(.v-input--disabled) .v-slider-track__fill{background-color:currentColor}.v-slider-track__ticks{height:100%;width:100%;position:relative}.v-slider-track__tick{position:absolute;opacity:0;transition:.2s opacity cubic-bezier(.4,0,.2,1);border-radius:2px;width:var(--v-slider-tick-size);height:var(--v-slider-tick-size);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / -2))}.v-locale--is-ltr.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--first .v-slider-track__tick-label{transform:none}.v-locale--is-rtl.v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(100%)}.v-locale--is-ltr.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider-track__tick--last .v-slider-track__tick-label{transform:none}.v-slider-track__tick-label{position:absolute;-webkit-user-select:none;user-select:none;white-space:nowrap}.v-slider.v-input--horizontal .v-slider-track{display:flex;align-items:center;width:100%;height:calc(var(--v-slider-track-size) + 2px);touch-action:pan-y}.v-slider.v-input--horizontal .v-slider-track__background{height:var(--v-slider-track-size)}.v-slider.v-input--horizontal .v-slider-track__fill{height:inherit}.v-slider.v-input--horizontal .v-slider-track__tick{margin-top:calc(calc(var(--v-slider-track-size) + 2px) / 2)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / -2))}.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{margin-top:calc(var(--v-slider-track-size) / 2 + 8px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(-50%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick .v-slider-track__tick-label{transform:translate(50%)}.v-slider.v-input--horizontal .v-slider-track__tick--first{margin-inline-start:calc(var(--v-slider-tick-size) + 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--first .v-slider-track__tick-label{transform:translate(0)}.v-slider.v-input--horizontal .v-slider-track__tick--last{margin-inline-start:calc(100% - var(--v-slider-tick-size) - 1px)}.v-locale--is-ltr.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-ltr .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(-100%)}.v-locale--is-rtl.v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label,.v-locale--is-rtl .v-slider.v-input--horizontal .v-slider-track__tick--last .v-slider-track__tick-label{transform:translate(100%)}.v-slider.v-input--vertical .v-slider-track{height:100%;display:flex;justify-content:center;width:calc(var(--v-slider-track-size) + 2px);touch-action:pan-x}.v-slider.v-input--vertical .v-slider-track__background{width:var(--v-slider-track-size)}.v-slider.v-input--vertical .v-slider-track__fill{width:inherit}.v-slider.v-input--vertical .v-slider-track__ticks{height:100%}.v-slider.v-input--vertical .v-slider-track__tick{margin-inline-start:calc(calc(var(--v-slider-track-size) + 2px) / 2);transform:translate(calc(var(--v-slider-tick-size) / -2),calc(var(--v-slider-tick-size) / 2))}.v-locale--is-rtl.v-slider.v-input--vertical .v-slider-track__tick,.v-locale--is-rtl .v-slider.v-input--vertical .v-slider-track__tick{transform:translate(calc(var(--v-slider-tick-size) / 2),calc(var(--v-slider-tick-size) / 2))}.v-slider.v-input--vertical .v-slider-track__tick--first{bottom:calc(0% + var(--v-slider-tick-size) + 1px)}.v-slider.v-input--vertical .v-slider-track__tick--last{bottom:calc(100% - var(--v-slider-tick-size) - 1px)}.v-slider.v-input--vertical .v-slider-track__tick .v-slider-track__tick-label{margin-inline-start:calc(var(--v-slider-track-size) / 2 + 12px);transform:translateY(-50%)}.v-slider-track__ticks--always-show .v-slider-track__tick,.v-slider--focused .v-slider-track__tick{opacity:1}.v-slider-track__background--opacity{opacity:.38}.v-combobox .v-field .v-text-field__prefix,.v-combobox .v-field .v-text-field__suffix,.v-combobox .v-field .v-field__input,.v-combobox .v-field.v-field{cursor:text}.v-combobox .v-field .v-field__input>input{align-self:flex-start;flex:1 1}.v-combobox .v-field input{min-width:64px}.v-combobox .v-field:not(.v-field--focused) input{min-width:0}.v-combobox .v-field--dirty .v-combobox__selection{margin-inline-end:2px}.v-combobox .v-combobox__selection-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-combobox__content{overflow:hidden;box-shadow:0 2px 4px -1px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 4px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 10px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:4px}.v-combobox__mask{background:rgb(var(--v-theme-on-surface-variant))}.v-combobox__selection{display:inline-flex;align-items:center;letter-spacing:inherit;line-height:inherit;max-width:90%}.v-combobox__selection{margin-top:var(--v-input-chips-margin-top);margin-bottom:var(--v-input-chips-margin-bottom)}.v-combobox__selection:first-child{margin-inline-start:0}.v-combobox--selecting-index .v-combobox__selection{opacity:var(--v-medium-emphasis-opacity)}.v-combobox--selecting-index .v-combobox__selection--selected{opacity:1}.v-combobox--selecting-index .v-field__input>input{caret-color:transparent}.v-combobox--single.v-text-field input{flex:1 1;position:absolute;left:0;right:0;width:100%;padding-inline-start:inherit;padding-inline-end:inherit}.v-combobox--single .v-field--variant-outlined input{top:50%;transform:translateY(calc(-50% - (var(--v-input-chips-margin-top) + var(--v-input-chips-margin-bottom)) / 2))}.v-combobox--single .v-field--active input{transition:none}.v-combobox--single .v-field--dirty:not(.v-field--focused) input{opacity:0}.v-combobox--single .v-field--focused .v-combobox__selection{opacity:0}.v-combobox__menu-icon{margin-inline-start:4px;transition:.2s cubic-bezier(.4,0,.2,1)}.v-combobox--active-menu .v-combobox__menu-icon{opacity:var(--v-high-emphasis-opacity);transform:rotate(180deg)}.v-dialog{align-items:center;justify-content:center;margin:auto}.v-dialog>.v-overlay__content{max-height:calc(100% - 48px);width:calc(100% - 48px);max-width:calc(100% - 48px);margin:24px;display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>.v-sheet,.v-dialog>.v-overlay__content>form>.v-card,.v-dialog>.v-overlay__content>form>.v-sheet{--v-scrollbar-offset: 0px;border-radius:4px;overflow-y:auto;box-shadow:0 11px 15px -7px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 24px 38px 3px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 9px 46px 8px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12))}.v-dialog>.v-overlay__content>.v-card,.v-dialog>.v-overlay__content>form>.v-card{display:flex;flex-direction:column}.v-dialog>.v-overlay__content>.v-card>.v-card-item,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item{padding:14px 24px 0}.v-dialog>.v-overlay__content>.v-card>.v-card-item+.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-item+.v-card-text{padding-top:10px}.v-dialog>.v-overlay__content>.v-card>.v-card-text,.v-dialog>.v-overlay__content>form>.v-card>.v-card-text{font-size:inherit;letter-spacing:.03125em;line-height:inherit;padding:16px 24px 10px}.v-dialog--fullscreen{--v-scrollbar-offset: 0px}.v-dialog--fullscreen>.v-overlay__content{border-radius:0;margin:0;padding:0;width:100%;height:100%;max-width:100%;max-height:100%;overflow-y:auto;top:0;left:0}.v-dialog--fullscreen>.v-overlay__content>.v-card,.v-dialog--fullscreen>.v-overlay__content>.v-sheet,.v-dialog--fullscreen>.v-overlay__content>form>.v-card,.v-dialog--fullscreen>.v-overlay__content>form>.v-sheet{min-height:100%;min-width:100%;border-radius:0}.v-dialog--scrollable>.v-overlay__content,.v-dialog--scrollable>.v-overlay__content>form{display:flex;overflow:hidden}.v-dialog--scrollable>.v-overlay__content>.v-card,.v-dialog--scrollable>.v-overlay__content>form>.v-card{display:flex;flex:1 1 100%;flex-direction:column;max-height:100%;max-width:100%}.v-dialog--scrollable>.v-overlay__content>.v-card>.v-card-text,.v-dialog--scrollable>.v-overlay__content>form>.v-card>.v-card-text{backface-visibility:hidden;overflow-y:auto}.v-expansion-panel{background-color:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-expansion-panel:not(:first-child):after{border-color:rgba(var(--v-border-color),var(--v-border-opacity))}.v-expansion-panel--disabled .v-expansion-panel-title{color:rgba(var(--v-theme-on-surface),.26)}.v-expansion-panel--disabled .v-expansion-panel-title .v-expansion-panel-title__overlay{opacity:.4615384615}.v-expansion-panels{display:flex;flex-wrap:wrap;justify-content:center;list-style-type:none;padding:0;width:100%;position:relative;z-index:1}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:not(:first-child):not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:first-child:not(:last-child):not(.v-expansion-panel--active):not(.v-expansion-panel--before-active){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels:not(.v-expansion-panels--variant-accordion)>:last-child:not(:first-child):not(.v-expansion-panel--active):not(.v-expansion-panel--after-active){border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:first-child{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child{border-top-left-radius:0!important;border-top-right-radius:0!important}.v-expansion-panels--variant-accordion>:last-child .v-expansion-panel-title--active{border-bottom-left-radius:initial;border-bottom-right-radius:initial}.v-expansion-panels--variant-accordion>:not(:first-child):not(:last-child){border-radius:0!important}.v-expansion-panels--variant-accordion .v-expansion-panel-title__overlay{transition:.3s border-radius cubic-bezier(.4,0,.2,1)}.v-expansion-panel{flex:1 0 100%;max-width:100%;position:relative;transition:.3s all cubic-bezier(.4,0,.2,1);transition-property:margin-top,border-radius,border,max-width;border-radius:4px}.v-expansion-panel:not(:first-child):after{border-top-style:solid;border-top-width:thin;content:"";left:0;position:absolute;right:0;top:0;transition:.3s opacity cubic-bezier(.4,0,.2,1)}.v-expansion-panel--disabled .v-expansion-panel-title{pointer-events:none}.v-expansion-panel--active:not(:first-child),.v-expansion-panel--active+.v-expansion-panel{margin-top:16px}.v-expansion-panel--active:not(:first-child):after,.v-expansion-panel--active+.v-expansion-panel:after{opacity:0}.v-expansion-panel--active>.v-expansion-panel-title{border-bottom-left-radius:0;border-bottom-right-radius:0;min-height:64px}.v-expansion-panel__shadow{position:absolute;top:0;left:0;width:100%;height:100%;box-shadow:0 3px 1px -2px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, .2)),0 2px 2px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .14)),0 1px 5px 0 var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, .12));border-radius:inherit;z-index:-1}.v-expansion-panel-title{align-items:center;text-align:start;border-radius:inherit;display:flex;font-size:.9375rem;line-height:1;min-height:48px;outline:none;padding:16px 24px;position:relative;transition:.3s min-height cubic-bezier(.4,0,.2,1);width:100%;justify-content:space-between}.v-expansion-panel-title:hover>.v-expansion-panel-title__overlay{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title:focus-visible>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title:focus>.v-expansion-panel-title__overlay{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--active>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]>.v-expansion-panel-title__overlay{opacity:calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--active:hover>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]:hover>.v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier))}.v-expansion-panel-title--active:focus-visible>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]:focus-visible>.v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}@supports not selector(:focus-visible){.v-expansion-panel-title--active:focus>.v-expansion-panel-title__overlay,.v-expansion-panel-title[aria-haspopup=menu][aria-expanded=true]:focus>.v-expansion-panel-title__overlay{opacity:calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier))}}.v-expansion-panel-title--active:before{opacity:.12}.v-expansion-panel-title__overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:currentColor;border-radius:inherit;opacity:0}.v-expansion-panel-title__icon{display:inline-flex;margin-bottom:-4px;margin-top:-4px;-webkit-user-select:none;user-select:none;margin-inline-start:auto}.v-expansion-panel-text{display:flex}.v-expansion-panel-text__wrapper{padding:8px 24px 16px;flex:1 1 auto;max-width:100%}.v-expansion-panels--variant-accordion>.v-expansion-panel{margin-top:0}.v-expansion-panels--variant-accordion>.v-expansion-panel:after{opacity:1}.v-expansion-panels--variant-popout>.v-expansion-panel{max-width:calc(100% - 32px)}.v-expansion-panels--variant-popout>.v-expansion-panel--active{max-width:calc(100% + 16px)}.v-expansion-panels--variant-inset>.v-expansion-panel{max-width:100%}.v-expansion-panels--variant-inset>.v-expansion-panel--active{max-width:calc(100% - 32px)}.v-container{width:100%;padding:16px;margin-right:auto;margin-left:auto}@media (min-width: 960px){.v-container{max-width:900px}}@media (min-width: 1280px){.v-container{max-width:1200px}}@media (min-width: 1920px){.v-container{max-width:1800px}}@media (min-width: 2560px){.v-container{max-width:2400px}}.v-container--fluid{max-width:100%}.v-container.fill-height{align-items:center;display:flex;flex-wrap:wrap}.v-row{display:flex;flex-wrap:wrap;flex:1 1 auto;margin:-12px}.v-row+.v-row{margin-top:12px}.v-row+.v-row--dense{margin-top:4px}.v-row--dense{margin:-4px}.v-row--dense>.v-col,.v-row--dense>[class*=v-col-]{padding:4px}.v-row.v-row--no-gutters{margin:0}.v-row.v-row--no-gutters>.v-col,.v-row.v-row--no-gutters>[class*=v-col-]{padding:0}.v-spacer{flex-grow:1}.v-col-xxl,.v-col-xxl-auto,.v-col-xxl-12,.v-col-xxl-11,.v-col-xxl-10,.v-col-xxl-9,.v-col-xxl-8,.v-col-xxl-7,.v-col-xxl-6,.v-col-xxl-5,.v-col-xxl-4,.v-col-xxl-3,.v-col-xxl-2,.v-col-xxl-1,.v-col-xl,.v-col-xl-auto,.v-col-xl-12,.v-col-xl-11,.v-col-xl-10,.v-col-xl-9,.v-col-xl-8,.v-col-xl-7,.v-col-xl-6,.v-col-xl-5,.v-col-xl-4,.v-col-xl-3,.v-col-xl-2,.v-col-xl-1,.v-col-lg,.v-col-lg-auto,.v-col-lg-12,.v-col-lg-11,.v-col-lg-10,.v-col-lg-9,.v-col-lg-8,.v-col-lg-7,.v-col-lg-6,.v-col-lg-5,.v-col-lg-4,.v-col-lg-3,.v-col-lg-2,.v-col-lg-1,.v-col-md,.v-col-md-auto,.v-col-md-12,.v-col-md-11,.v-col-md-10,.v-col-md-9,.v-col-md-8,.v-col-md-7,.v-col-md-6,.v-col-md-5,.v-col-md-4,.v-col-md-3,.v-col-md-2,.v-col-md-1,.v-col-sm,.v-col-sm-auto,.v-col-sm-12,.v-col-sm-11,.v-col-sm-10,.v-col-sm-9,.v-col-sm-8,.v-col-sm-7,.v-col-sm-6,.v-col-sm-5,.v-col-sm-4,.v-col-sm-3,.v-col-sm-2,.v-col-sm-1,.v-col,.v-col-auto,.v-col-12,.v-col-11,.v-col-10,.v-col-9,.v-col-8,.v-col-7,.v-col-6,.v-col-5,.v-col-4,.v-col-3,.v-col-2,.v-col-1{width:100%;padding:12px}.v-col{flex-basis:0;flex-grow:1;max-width:100%}.v-col-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-3{flex:0 0 25%;max-width:25%}.v-col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-6{flex:0 0 50%;max-width:50%}.v-col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-9{flex:0 0 75%;max-width:75%}.v-col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-1,.v-locale--is-ltr .offset-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-1,.v-locale--is-rtl .offset-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-2,.v-locale--is-ltr .offset-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-2,.v-locale--is-rtl .offset-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-3,.v-locale--is-ltr .offset-3{margin-left:25%}.v-locale--is-rtl.offset-3,.v-locale--is-rtl .offset-3{margin-right:25%}.v-locale--is-ltr.offset-4,.v-locale--is-ltr .offset-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-4,.v-locale--is-rtl .offset-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-5,.v-locale--is-ltr .offset-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-5,.v-locale--is-rtl .offset-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-6,.v-locale--is-ltr .offset-6{margin-left:50%}.v-locale--is-rtl.offset-6,.v-locale--is-rtl .offset-6{margin-right:50%}.v-locale--is-ltr.offset-7,.v-locale--is-ltr .offset-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-7,.v-locale--is-rtl .offset-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-8,.v-locale--is-ltr .offset-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-8,.v-locale--is-rtl .offset-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-9,.v-locale--is-ltr .offset-9{margin-left:75%}.v-locale--is-rtl.offset-9,.v-locale--is-rtl .offset-9{margin-right:75%}.v-locale--is-ltr.offset-10,.v-locale--is-ltr .offset-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-10,.v-locale--is-rtl .offset-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-11,.v-locale--is-ltr .offset-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-11,.v-locale--is-rtl .offset-11{margin-right:91.6666666667%}@media (min-width: 600px){.v-col-sm{flex-basis:0;flex-grow:1;max-width:100%}.v-col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-sm-3{flex:0 0 25%;max-width:25%}.v-col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-sm-6{flex:0 0 50%;max-width:50%}.v-col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-sm-9{flex:0 0 75%;max-width:75%}.v-col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-sm-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-sm-0,.v-locale--is-ltr .offset-sm-0{margin-left:0}.v-locale--is-rtl.offset-sm-0,.v-locale--is-rtl .offset-sm-0{margin-right:0}.v-locale--is-ltr.offset-sm-1,.v-locale--is-ltr .offset-sm-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-sm-1,.v-locale--is-rtl .offset-sm-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-sm-2,.v-locale--is-ltr .offset-sm-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-sm-2,.v-locale--is-rtl .offset-sm-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-sm-3,.v-locale--is-ltr .offset-sm-3{margin-left:25%}.v-locale--is-rtl.offset-sm-3,.v-locale--is-rtl .offset-sm-3{margin-right:25%}.v-locale--is-ltr.offset-sm-4,.v-locale--is-ltr .offset-sm-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-sm-4,.v-locale--is-rtl .offset-sm-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-sm-5,.v-locale--is-ltr .offset-sm-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-sm-5,.v-locale--is-rtl .offset-sm-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-sm-6,.v-locale--is-ltr .offset-sm-6{margin-left:50%}.v-locale--is-rtl.offset-sm-6,.v-locale--is-rtl .offset-sm-6{margin-right:50%}.v-locale--is-ltr.offset-sm-7,.v-locale--is-ltr .offset-sm-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-sm-7,.v-locale--is-rtl .offset-sm-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-sm-8,.v-locale--is-ltr .offset-sm-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-sm-8,.v-locale--is-rtl .offset-sm-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-sm-9,.v-locale--is-ltr .offset-sm-9{margin-left:75%}.v-locale--is-rtl.offset-sm-9,.v-locale--is-rtl .offset-sm-9{margin-right:75%}.v-locale--is-ltr.offset-sm-10,.v-locale--is-ltr .offset-sm-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-sm-10,.v-locale--is-rtl .offset-sm-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-sm-11,.v-locale--is-ltr .offset-sm-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-sm-11,.v-locale--is-rtl .offset-sm-11{margin-right:91.6666666667%}}@media (min-width: 960px){.v-col-md{flex-basis:0;flex-grow:1;max-width:100%}.v-col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-md-3{flex:0 0 25%;max-width:25%}.v-col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-md-6{flex:0 0 50%;max-width:50%}.v-col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-md-9{flex:0 0 75%;max-width:75%}.v-col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-md-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-md-0,.v-locale--is-ltr .offset-md-0{margin-left:0}.v-locale--is-rtl.offset-md-0,.v-locale--is-rtl .offset-md-0{margin-right:0}.v-locale--is-ltr.offset-md-1,.v-locale--is-ltr .offset-md-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-md-1,.v-locale--is-rtl .offset-md-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-md-2,.v-locale--is-ltr .offset-md-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-md-2,.v-locale--is-rtl .offset-md-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-md-3,.v-locale--is-ltr .offset-md-3{margin-left:25%}.v-locale--is-rtl.offset-md-3,.v-locale--is-rtl .offset-md-3{margin-right:25%}.v-locale--is-ltr.offset-md-4,.v-locale--is-ltr .offset-md-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-md-4,.v-locale--is-rtl .offset-md-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-md-5,.v-locale--is-ltr .offset-md-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-md-5,.v-locale--is-rtl .offset-md-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-md-6,.v-locale--is-ltr .offset-md-6{margin-left:50%}.v-locale--is-rtl.offset-md-6,.v-locale--is-rtl .offset-md-6{margin-right:50%}.v-locale--is-ltr.offset-md-7,.v-locale--is-ltr .offset-md-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-md-7,.v-locale--is-rtl .offset-md-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-md-8,.v-locale--is-ltr .offset-md-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-md-8,.v-locale--is-rtl .offset-md-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-md-9,.v-locale--is-ltr .offset-md-9{margin-left:75%}.v-locale--is-rtl.offset-md-9,.v-locale--is-rtl .offset-md-9{margin-right:75%}.v-locale--is-ltr.offset-md-10,.v-locale--is-ltr .offset-md-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-md-10,.v-locale--is-rtl .offset-md-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-md-11,.v-locale--is-ltr .offset-md-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-md-11,.v-locale--is-rtl .offset-md-11{margin-right:91.6666666667%}}@media (min-width: 1280px){.v-col-lg{flex-basis:0;flex-grow:1;max-width:100%}.v-col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-lg-3{flex:0 0 25%;max-width:25%}.v-col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-lg-6{flex:0 0 50%;max-width:50%}.v-col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-lg-9{flex:0 0 75%;max-width:75%}.v-col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-lg-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-lg-0,.v-locale--is-ltr .offset-lg-0{margin-left:0}.v-locale--is-rtl.offset-lg-0,.v-locale--is-rtl .offset-lg-0{margin-right:0}.v-locale--is-ltr.offset-lg-1,.v-locale--is-ltr .offset-lg-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-lg-1,.v-locale--is-rtl .offset-lg-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-lg-2,.v-locale--is-ltr .offset-lg-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-lg-2,.v-locale--is-rtl .offset-lg-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-lg-3,.v-locale--is-ltr .offset-lg-3{margin-left:25%}.v-locale--is-rtl.offset-lg-3,.v-locale--is-rtl .offset-lg-3{margin-right:25%}.v-locale--is-ltr.offset-lg-4,.v-locale--is-ltr .offset-lg-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-lg-4,.v-locale--is-rtl .offset-lg-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-lg-5,.v-locale--is-ltr .offset-lg-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-lg-5,.v-locale--is-rtl .offset-lg-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-lg-6,.v-locale--is-ltr .offset-lg-6{margin-left:50%}.v-locale--is-rtl.offset-lg-6,.v-locale--is-rtl .offset-lg-6{margin-right:50%}.v-locale--is-ltr.offset-lg-7,.v-locale--is-ltr .offset-lg-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-lg-7,.v-locale--is-rtl .offset-lg-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-lg-8,.v-locale--is-ltr .offset-lg-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-lg-8,.v-locale--is-rtl .offset-lg-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-lg-9,.v-locale--is-ltr .offset-lg-9{margin-left:75%}.v-locale--is-rtl.offset-lg-9,.v-locale--is-rtl .offset-lg-9{margin-right:75%}.v-locale--is-ltr.offset-lg-10,.v-locale--is-ltr .offset-lg-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-lg-10,.v-locale--is-rtl .offset-lg-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-lg-11,.v-locale--is-ltr .offset-lg-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-lg-11,.v-locale--is-rtl .offset-lg-11{margin-right:91.6666666667%}}@media (min-width: 1920px){.v-col-xl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xl-3{flex:0 0 25%;max-width:25%}.v-col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xl-6{flex:0 0 50%;max-width:50%}.v-col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xl-9{flex:0 0 75%;max-width:75%}.v-col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xl-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-xl-0,.v-locale--is-ltr .offset-xl-0{margin-left:0}.v-locale--is-rtl.offset-xl-0,.v-locale--is-rtl .offset-xl-0{margin-right:0}.v-locale--is-ltr.offset-xl-1,.v-locale--is-ltr .offset-xl-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-xl-1,.v-locale--is-rtl .offset-xl-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-xl-2,.v-locale--is-ltr .offset-xl-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-xl-2,.v-locale--is-rtl .offset-xl-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-xl-3,.v-locale--is-ltr .offset-xl-3{margin-left:25%}.v-locale--is-rtl.offset-xl-3,.v-locale--is-rtl .offset-xl-3{margin-right:25%}.v-locale--is-ltr.offset-xl-4,.v-locale--is-ltr .offset-xl-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-xl-4,.v-locale--is-rtl .offset-xl-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-xl-5,.v-locale--is-ltr .offset-xl-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-xl-5,.v-locale--is-rtl .offset-xl-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-xl-6,.v-locale--is-ltr .offset-xl-6{margin-left:50%}.v-locale--is-rtl.offset-xl-6,.v-locale--is-rtl .offset-xl-6{margin-right:50%}.v-locale--is-ltr.offset-xl-7,.v-locale--is-ltr .offset-xl-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-xl-7,.v-locale--is-rtl .offset-xl-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-xl-8,.v-locale--is-ltr .offset-xl-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-xl-8,.v-locale--is-rtl .offset-xl-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-xl-9,.v-locale--is-ltr .offset-xl-9{margin-left:75%}.v-locale--is-rtl.offset-xl-9,.v-locale--is-rtl .offset-xl-9{margin-right:75%}.v-locale--is-ltr.offset-xl-10,.v-locale--is-ltr .offset-xl-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-xl-10,.v-locale--is-rtl .offset-xl-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-xl-11,.v-locale--is-ltr .offset-xl-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-xl-11,.v-locale--is-rtl .offset-xl-11{margin-right:91.6666666667%}}@media (min-width: 2560px){.v-col-xxl{flex-basis:0;flex-grow:1;max-width:100%}.v-col-xxl-auto{flex:0 0 auto;width:auto;max-width:100%}.v-col-xxl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.v-col-xxl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.v-col-xxl-3{flex:0 0 25%;max-width:25%}.v-col-xxl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.v-col-xxl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.v-col-xxl-6{flex:0 0 50%;max-width:50%}.v-col-xxl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.v-col-xxl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.v-col-xxl-9{flex:0 0 75%;max-width:75%}.v-col-xxl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.v-col-xxl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.v-col-xxl-12{flex:0 0 100%;max-width:100%}.v-locale--is-ltr.offset-xxl-0,.v-locale--is-ltr .offset-xxl-0{margin-left:0}.v-locale--is-rtl.offset-xxl-0,.v-locale--is-rtl .offset-xxl-0{margin-right:0}.v-locale--is-ltr.offset-xxl-1,.v-locale--is-ltr .offset-xxl-1{margin-left:8.3333333333%}.v-locale--is-rtl.offset-xxl-1,.v-locale--is-rtl .offset-xxl-1{margin-right:8.3333333333%}.v-locale--is-ltr.offset-xxl-2,.v-locale--is-ltr .offset-xxl-2{margin-left:16.6666666667%}.v-locale--is-rtl.offset-xxl-2,.v-locale--is-rtl .offset-xxl-2{margin-right:16.6666666667%}.v-locale--is-ltr.offset-xxl-3,.v-locale--is-ltr .offset-xxl-3{margin-left:25%}.v-locale--is-rtl.offset-xxl-3,.v-locale--is-rtl .offset-xxl-3{margin-right:25%}.v-locale--is-ltr.offset-xxl-4,.v-locale--is-ltr .offset-xxl-4{margin-left:33.3333333333%}.v-locale--is-rtl.offset-xxl-4,.v-locale--is-rtl .offset-xxl-4{margin-right:33.3333333333%}.v-locale--is-ltr.offset-xxl-5,.v-locale--is-ltr .offset-xxl-5{margin-left:41.6666666667%}.v-locale--is-rtl.offset-xxl-5,.v-locale--is-rtl .offset-xxl-5{margin-right:41.6666666667%}.v-locale--is-ltr.offset-xxl-6,.v-locale--is-ltr .offset-xxl-6{margin-left:50%}.v-locale--is-rtl.offset-xxl-6,.v-locale--is-rtl .offset-xxl-6{margin-right:50%}.v-locale--is-ltr.offset-xxl-7,.v-locale--is-ltr .offset-xxl-7{margin-left:58.3333333333%}.v-locale--is-rtl.offset-xxl-7,.v-locale--is-rtl .offset-xxl-7{margin-right:58.3333333333%}.v-locale--is-ltr.offset-xxl-8,.v-locale--is-ltr .offset-xxl-8{margin-left:66.6666666667%}.v-locale--is-rtl.offset-xxl-8,.v-locale--is-rtl .offset-xxl-8{margin-right:66.6666666667%}.v-locale--is-ltr.offset-xxl-9,.v-locale--is-ltr .offset-xxl-9{margin-left:75%}.v-locale--is-rtl.offset-xxl-9,.v-locale--is-rtl .offset-xxl-9{margin-right:75%}.v-locale--is-ltr.offset-xxl-10,.v-locale--is-ltr .offset-xxl-10{margin-left:83.3333333333%}.v-locale--is-rtl.offset-xxl-10,.v-locale--is-rtl .offset-xxl-10{margin-right:83.3333333333%}.v-locale--is-ltr.offset-xxl-11,.v-locale--is-ltr .offset-xxl-11{margin-left:91.6666666667%}.v-locale--is-rtl.offset-xxl-11,.v-locale--is-rtl .offset-xxl-11{margin-right:91.6666666667%}}.v-main{flex:1 0 auto;max-width:100%;transition:.2s cubic-bezier(.4,0,.2,1);padding-left:var(--v-layout-left);padding-right:var(--v-layout-right);padding-top:var(--v-layout-top);padding-bottom:var(--v-layout-bottom)}.v-main__scroller{max-width:100%;position:relative}.v-main--scrollable{display:flex;position:absolute;top:0;left:0;width:100%;height:100%}.v-main--scrollable>.v-main__scroller{flex:1 1 auto;overflow-y:auto;--v-layout-left: 0px;--v-layout-right: 0px;--v-layout-top: 0px;--v-layout-bottom: 0px}.v-table{background:rgb(var(--v-theme-surface));color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity));transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table .v-table-divider{border-right:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>thead>tr>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity));color:rgba(var(--v-theme-on-surface),var(--v-medium-emphasis-opacity))}.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>td,.v-table .v-table__wrapper>table>tbody>tr:not(:last-child)>th{border-bottom:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table .v-table__wrapper>table>tfoot>tr>td,.v-table .v-table__wrapper>table>tfoot>tr>th{border-top:thin solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-table.v-table--hover>.v-table__wrapper>table>tbody>tr:hover td{background:rgba(var(--v-border-color),var(--v-hover-opacity))}.v-table.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{background:rgb(var(--v-theme-surface));box-shadow:inset 0 -1px 0 rgba(var(--v-border-color),var(--v-border-opacity));z-index:1}.v-table.v-table--fixed-footer>tfoot>tr>th,.v-table.v-table--fixed-footer>tfoot>tr>td{background:rgb(var(--v-theme-surface));box-shadow:inset 0 1px 0 rgba(var(--v-border-color),var(--v-border-opacity))}.v-table{--v-table-header-height: 56px;border-radius:inherit;line-height:1.5;max-width:100%}.v-table>.v-table__wrapper>table{width:100%;border-spacing:0}.v-table>.v-table__wrapper>table>tbody>tr>td,.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>td,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>td,.v-table>.v-table__wrapper>table>tfoot>tr>th{padding:0 16px;transition-duration:.28s;transition-property:box-shadow,opacity,background,height;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-table>.v-table__wrapper>table>tbody>tr>th,.v-table>.v-table__wrapper>table>thead>tr>th,.v-table>.v-table__wrapper>table>tfoot>tr>th{font-weight:500;-webkit-user-select:none;user-select:none;text-align:start}.v-table--density-default>.v-table__wrapper>table>tbody>tr>th,.v-table--density-default>.v-table__wrapper>table>thead>tr>th,.v-table--density-default>.v-table__wrapper>table>tfoot>tr>th{height:calc(var(--v-table-header-height) + 0px)}.v-table--density-default>.v-table__wrapper>table>tbody>tr>td,.v-table--density-default>.v-table__wrapper>table>thead>tr>td,.v-table--density-default>.v-table__wrapper>table>tfoot>tr>td{height:calc(var(--v-table-row-height, 52px) + 0px)}.v-table--density-comfortable>.v-table__wrapper>table>tbody>tr>th,.v-table--density-comfortable>.v-table__wrapper>table>thead>tr>th,.v-table--density-comfortable>.v-table__wrapper>table>tfoot>tr>th{height:calc(var(--v-table-header-height) - 8px)}.v-table--density-comfortable>.v-table__wrapper>table>tbody>tr>td,.v-table--density-comfortable>.v-table__wrapper>table>thead>tr>td,.v-table--density-comfortable>.v-table__wrapper>table>tfoot>tr>td{height:calc(var(--v-table-row-height, 52px) - 8px)}.v-table--density-compact>.v-table__wrapper>table>tbody>tr>th,.v-table--density-compact>.v-table__wrapper>table>thead>tr>th,.v-table--density-compact>.v-table__wrapper>table>tfoot>tr>th{height:calc(var(--v-table-header-height) - 16px)}.v-table--density-compact>.v-table__wrapper>table>tbody>tr>td,.v-table--density-compact>.v-table__wrapper>table>thead>tr>td,.v-table--density-compact>.v-table__wrapper>table>tfoot>tr>td{height:calc(var(--v-table-row-height, 52px) - 16px)}.v-table__wrapper{border-radius:inherit;overflow:auto}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:first-child{border-top-left-radius:0}.v-table--has-top>.v-table__wrapper>table>tbody>tr:first-child:hover>td:last-child{border-top-right-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:first-child{border-bottom-left-radius:0}.v-table--has-bottom>.v-table__wrapper>table>tbody>tr:last-child:hover>td:last-child{border-bottom-right-radius:0}.v-table--fixed-height>.v-table__wrapper{overflow-y:auto}.v-table--fixed-header>.v-table__wrapper>table>thead{position:sticky;top:0;z-index:1}.v-table--fixed-header>.v-table__wrapper>table>thead>tr>th{border-bottom:0px!important}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr{position:sticky;bottom:0;z-index:1}.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>td,.v-table--fixed-footer>.v-table__wrapper>table>tfoot>tr>th{border-top:0px!important}.v-textarea .v-field{--v-textarea-control-height: var(--v-input-control-height)}.v-textarea .v-field__field{--v-input-control-height: var(--v-textarea-control-height)}.v-textarea .v-field__input{flex:1 1 auto;outline:none;-webkit-mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px));mask-image:linear-gradient(to bottom,transparent,transparent calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) - 6px),black calc(var(--v-field-padding-top, 0) + var(--v-input-padding-top, 0) + 4px))}.v-textarea .v-field__input.v-textarea__sizer{visibility:hidden;position:absolute;top:0;left:0;height:0!important;min-height:0!important;pointer-events:none}.v-textarea--no-resize .v-field__input{resize:none}.v-textarea .v-field--no-label textarea,.v-textarea .v-field--active textarea{opacity:1}.v-textarea textarea{opacity:0;flex:1;min-width:0;transition:.15s opacity cubic-bezier(.4,0,.2,1)}.v-textarea textarea:focus,.v-textarea textarea:active{outline:none}.v-textarea textarea:invalid{box-shadow:none}.v-data-table{width:100%}.v-data-table__table{width:100%;border-collapse:separate;border-spacing:0}.v-data-table__tr--focus{border:1px dotted black}.v-data-table__tr--clickable{cursor:pointer}.v-data-table .v-table__wrapper>table>thead>tr>td,.v-data-table .v-table__wrapper>table>thead>tr th,.v-data-table .v-table__wrapper>table tbody>tr>td,.v-data-table .v-table__wrapper>table tbody>tr th{background:rgb(var(--v-theme-surface))}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end{text-align:end}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-end .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-end .v-data-table-header__content{flex-direction:row-reverse}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center{text-align:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--align-center .v-data-table-header__content,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--align-center .v-data-table-header__content{justify-content:center}.v-data-table .v-table__wrapper>table>thead>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table>thead>tr th.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr>td.v-data-table-column--no-padding,.v-data-table .v-table__wrapper>table tbody>tr th.v-data-table-column--no-padding{padding:0 8px}.v-data-table .v-table__wrapper>table>thead>tr>th,.v-data-table .v-table__wrapper>table tbody>tr>th{align-items:center}.v-data-table .v-table__wrapper>table>thead>tr>th.v-data-table__th--sortable:hover,.v-data-table .v-table__wrapper>table tbody>tr>th.v-data-table__th--sortable:hover{cursor:pointer;color:rgba(var(--v-theme-on-surface),var(--v-high-emphasis-opacity))}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted) .v-data-table-header__sort-icon{opacity:0}.v-data-table .v-table__wrapper>table>thead>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon,.v-data-table .v-table__wrapper>table tbody>tr>th:not(.v-data-table__th--sorted):hover .v-data-table-header__sort-icon{opacity:.5}.v-data-table-column--fixed{position:sticky;z-index:2;left:0}.v-data-table-column--last-fixed{border-right:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.v-data-table-group-header-row td{background:lightgrey}.v-data-table-group-header-row td>span{padding-left:5px}.v-data-table--loading .v-data-table__td{opacity:.3}.v-data-table-group-header-row__column{padding-left:calc(var(--v-data-table-group-header-row-depth) * 16px)!important}.v-data-table-header__content{display:flex;align-items:center}.v-data-table-header__sort-badge{display:inline-flex;justify-content:center;align-items:center;font-size:.875rem;padding:4px;border-radius:50%;background:rgba(var(--v-border-color),var(--v-border-opacity));min-width:20px;min-height:20px;width:20px;height:20px}.v-data-table-progress>th{border:none!important;height:auto!important;padding:0!important}.v-data-table-rows-loading,.v-data-table-rows-no-data{text-align:center}.v-data-table-footer{display:flex;align-items:center;flex-wrap:wrap;padding:0 8px;justify-content:flex-end}.v-data-table-footer__items-per-page{padding-inline-end:24px;display:flex;align-items:center;justify-content:space-between}.v-data-table-footer__items-per-page>span{padding-inline-end:24px}.v-data-table-footer__info{display:flex;padding-inline-end:24px}.v-data-table-footer__pagination{display:flex;align-items:center}.v-data-table-footer__page{padding:0 8px}.toolbar-bg{background-color:#4f4d4d}.markdown-content{font-family:Arial,sans-serif;line-height:1.6;color:#fff}.markdown-content h1,h2,h3,h4,h5,h6{margin-top:1.5em;margin-bottom:.5em;font-weight:700;line-height:1.3}.markdown-content p{margin-top:0;margin-bottom:1em}.markdown-content ul,ol{padding-left:20px;margin-top:.5em;margin-bottom:.5em}.markdown-content ul{list-style-type:disc}.markdown-content ol{list-style-type:decimal}.markdown-content li{margin-bottom:.25em}.markdown-content a{color:#007bff;text-decoration:none}.markdown-content a:hover{text-decoration:underline}.markdown-content img{max-width:100%;height:auto}.markdown-content blockquote{margin:0;padding-left:1em;color:#6a737d;border-left:.25em solid #dfe2e5}.tox{box-shadow:none;box-sizing:content-box;color:#2a3746;cursor:auto;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-style:normal;font-weight:400;line-height:normal;-webkit-tap-highlight-color:transparent;text-decoration:none;text-shadow:none;text-transform:none;vertical-align:initial;white-space:normal}.tox *:not(svg):not(rect){box-sizing:inherit;color:inherit;cursor:inherit;direction:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;line-height:inherit;-webkit-tap-highlight-color:inherit;text-align:inherit;text-decoration:inherit;text-shadow:inherit;text-transform:inherit;vertical-align:inherit;white-space:inherit}.tox *:not(svg):not(rect){background:transparent;border:0;box-shadow:none;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.tox:not([dir=rtl]){direction:ltr;text-align:left}.tox[dir=rtl]{direction:rtl;text-align:right}.tox-tinymce{border:1px solid #000000;border-radius:0;box-shadow:none;box-sizing:border-box;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;overflow:hidden;position:relative;visibility:inherit!important}.tox.tox-tinymce-inline{border:none;box-shadow:none;overflow:initial}.tox.tox-tinymce-inline .tox-editor-container{overflow:initial}.tox.tox-tinymce-inline .tox-editor-header{background-color:#222f3e;border:1px solid #000000;border-radius:0;box-shadow:none;overflow:hidden}.tox-tinymce-aux{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;z-index:1300}.tox-tinymce *:focus,.tox-tinymce-aux *:focus{outline:none}button::-moz-focus-inner{border:0}.tox[dir=rtl] .tox-icon--flip svg{transform:rotateY(180deg)}.tox .accessibility-issue__header{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description{align-items:stretch;border-radius:3px;display:flex;justify-content:space-between}.tox .accessibility-issue__description>div{padding-bottom:4px}.tox .accessibility-issue__description>div>div{align-items:center;display:flex;margin-bottom:4px}.tox .accessibility-issue__description>div>div .tox-icon svg{display:block}.tox .accessibility-issue__repair{margin-top:16px}.tox .tox-dialog__body-content .accessibility-issue--info .accessibility-issue__description{background-color:#1e71aa66;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon{background-color:#207ab7;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:focus{background-color:#1c6ca1}.tox .tox-dialog__body-content .accessibility-issue--info a.tox-button--naked.tox-button--icon:active{background-color:#185d8c}.tox .tox-dialog__body-content .accessibility-issue--warn .accessibility-issue__description{background-color:#ffa50080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon{background-color:#ffe89d;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:focus{background-color:#f2d574;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--warn a.tox-button--naked.tox-button--icon:active{background-color:#e8c657;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error .accessibility-issue__description{background-color:#cc000080;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--error .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon{background-color:#f2bfbf;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:hover,.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:focus{background-color:#e9a4a4;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--error a.tox-button--naked.tox-button--icon:active{background-color:#ee9494;color:#2a3746}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description{background-color:#78ab4680;color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .accessibility-issue__description>*:last-child{display:none}.tox .tox-dialog__body-content .accessibility-issue--success .tox-form__group h2{color:#fff}.tox .tox-dialog__body-content .accessibility-issue--success .tox-icon svg{fill:#fff}.tox .tox-dialog__body-content .accessibility-issue__header .tox-form__group h1,.tox .tox-dialog__body-content .tox-form__group .accessibility-issue__description h2{font-size:14px;margin-top:0}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-left:4px}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-left:auto}.tox:not([dir=rtl]) .tox-dialog__body-content .accessibility-issue__description{padding:4px 4px 4px 8px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header .tox-button{margin-right:4px}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__header>*:nth-last-child(2){margin-right:auto}.tox[dir=rtl] .tox-dialog__body-content .accessibility-issue__description{padding:4px 8px 4px 4px}.tox .tox-advtemplate .tox-form__grid{flex:1}.tox .tox-advtemplate .tox-form__grid>div:first-child{display:flex;flex-direction:column;width:30%}.tox .tox-advtemplate .tox-form__grid>div:first-child>div:nth-child(2){flex-basis:0;flex-grow:1;overflow:auto}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-advtemplate .tox-form__grid>div:first-child{width:100%}}.tox .tox-advtemplate iframe{border-color:#000;border-radius:0;border-style:solid;border-width:1px;margin:0 10px}.tox .tox-anchorbar,.tox .tox-bottom-anchorbar,.tox .tox-bar{display:flex;flex:0 0 auto}.tox .tox-button{background-color:#207ab7;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#207ab7;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;line-height:24px;margin:0;outline:none;padding:4px 16px;position:relative;text-align:center;text-decoration:none;text-transform:none;white-space:nowrap}.tox .tox-button:before{border-radius:3px;bottom:-1px;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #207ab7,0 0 0 3px #207ab740;content:"";left:-1px;opacity:0;pointer-events:none;position:absolute;right:-1px;top:-1px}.tox .tox-button[disabled]{background-color:#207ab7;background-image:none;border-color:#207ab7;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button:focus:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:focus-visible:not(:disabled):before{opacity:1}.tox .tox-button:hover:not(:disabled){background-color:#1c6ca1;background-image:none;border-color:#1c6ca1;box-shadow:none;color:#fff}.tox .tox-button:active:not(:disabled){background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled[disabled]{background-color:#185d8c;background-image:none;border-color:#185d8c;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-button.tox-button--enabled:focus:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:hover:not(:disabled){background-color:#154f76;background-image:none;border-color:#154f76;box-shadow:none;color:#fff}.tox .tox-button.tox-button--enabled:active:not(:disabled){background-color:#114060;background-image:none;border-color:#114060;box-shadow:none;color:#fff}.tox .tox-button--icon-and-text,.tox .tox-button.tox-button--icon-and-text,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text{display:flex;padding:5px 4px}.tox .tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--icon-and-text .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon-and-text .tox-icon svg{display:block;fill:currentColor}.tox .tox-button--secondary{background-color:#3d546f;background-image:none;background-position:0 0;background-repeat:repeat;border-color:#3d546f;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;color:#fff;font-size:14px;font-style:normal;font-weight:700;letter-spacing:normal;outline:none;padding:4px 16px;text-decoration:none;text-transform:none}.tox .tox-button--secondary[disabled]{background-color:#3d546f;background-image:none;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary:focus:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:hover:not(:disabled){background-color:#34485f;background-image:none;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--secondary:active:not(:disabled){background-color:#2b3b4e;background-image:none;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled[disabled]{background-color:#346085;background-image:none;border-color:#346085;box-shadow:none;color:#ffffff80}.tox .tox-button--secondary.tox-button--enabled:focus:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:hover:not(:disabled){background-color:#2d5373;background-image:none;border-color:#2d5373;box-shadow:none;color:#fff}.tox .tox-button--secondary.tox-button--enabled:active:not(:disabled){background-color:#264560;background-image:none;border-color:#264560;box-shadow:none;color:#fff}.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding:4px}.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display:block;fill:currentColor}.tox .tox-button-link{background:0;border:none;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;font-weight:400;line-height:1.3;margin:0;padding:0;white-space:nowrap}.tox .tox-button-link--sm{font-size:14px}.tox .tox-button--naked{background-color:transparent;border-color:transparent;box-shadow:unset;color:#fff}.tox .tox-button--naked[disabled]{background-color:#3d546f;border-color:#3d546f;box-shadow:none;color:#ffffff80}.tox .tox-button--naked:hover:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:focus:not(:disabled){background-color:#34485f;border-color:#34485f;box-shadow:none;color:#fff}.tox .tox-button--naked:active:not(:disabled){background-color:#2b3b4e;border-color:#2b3b4e;box-shadow:none;color:#fff}.tox .tox-button--naked .tox-icon svg{fill:currentColor}.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color:#fff}.tox .tox-checkbox{align-items:center;border-radius:3px;cursor:pointer;display:flex;height:36px;min-width:36px}.tox .tox-checkbox__input{height:1px;overflow:hidden;position:absolute;top:auto;width:1px}.tox .tox-checkbox__icons{align-items:center;border-radius:3px;box-shadow:0 0 0 2px transparent;box-sizing:content-box;display:flex;height:24px;justify-content:center;padding:3px;width:24px}.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:block;fill:#fff3}.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:none;fill:#207ab7}.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display:none;fill:#207ab7}.tox .tox-checkbox--disabled{color:#ffffff80;cursor:not-allowed}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__checked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{fill:#ffffff80}.tox .tox-checkbox--disabled .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{fill:#ffffff80}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display:block}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display:none}.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display:block}.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{border-radius:3px;box-shadow:inset 0 0 0 1px #207ab7;padding:3px}.tox:not([dir=rtl]) .tox-checkbox__label{margin-left:4px}.tox:not([dir=rtl]) .tox-checkbox__input{left:-10000px}.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left:4px}.tox[dir=rtl] .tox-checkbox__label{margin-right:4px}.tox[dir=rtl] .tox-checkbox__input{right:-10000px}.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right:4px}.tox .tox-collection--toolbar .tox-collection__group{display:flex;padding:0}.tox .tox-collection--grid .tox-collection__group{display:flex;flex-wrap:wrap;max-height:208px;overflow-x:hidden;overflow-y:auto;padding:0}.tox .tox-collection--list .tox-collection__group{border-bottom-width:0;border-color:#1a1a1a;border-left-width:0;border-right-width:0;border-style:solid;border-top-width:1px;padding:4px 0}.tox .tox-collection--list .tox-collection__group:first-child{border-top-width:0}.tox .tox-collection__group-heading{background-color:#333;color:#fff;cursor:default;font-size:12px;font-style:normal;font-weight:400;margin-bottom:4px;margin-top:-4px;padding:4px 8px;text-transform:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection__item{align-items:center;border-radius:3px;color:#fff;display:flex;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.tox .tox-collection--list .tox-collection__item{padding:4px 8px}.tox .tox-collection--toolbar .tox-collection__item,.tox .tox-collection--grid .tox-collection__item{border-radius:3px;padding:4px}.tox .tox-collection--list .tox-collection__item--enabled{background-color:#2b3b4e;color:#fff}.tox .tox-collection--list .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--toolbar .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active{background-color:#4a5562}.tox .tox-collection--grid .tox-collection__item--enabled{background-color:#757d87;color:#fff}.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){background-color:#4a5562;color:#fff}.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color:#fff}.tox .tox-collection__item-icon,.tox .tox-collection__item-checkmark{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.tox .tox-collection__item-icon svg,.tox .tox-collection__item-checkmark svg{fill:currentColor}.tox .tox-collection--toolbar-lg .tox-collection__item-icon{height:48px;width:48px}.tox .tox-collection__item-label{color:currentColor;display:inline-block;flex:1;font-size:14px;font-style:normal;font-weight:400;line-height:24px;max-width:100%;text-transform:none;word-break:break-all}.tox .tox-collection__item-accessory{color:#ffffff80;display:inline-block;font-size:14px;height:24px;line-height:24px;text-transform:none}.tox .tox-collection__item-caret{align-items:center;display:flex;min-height:24px}.tox .tox-collection__item-caret:after{content:"";font-size:0;min-height:inherit}.tox .tox-collection__item-caret svg{fill:#fff}.tox .tox-collection__item--state-disabled{background-color:transparent;color:#ffffff80;cursor:not-allowed}.tox .tox-collection__item--state-disabled .tox-collection__item-caret svg{fill:#ffffff80}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display:none}.tox .tox-collection--list .tox-collection__item:not(.tox-collection__item--enabled) .tox-collection__item-accessory+.tox-collection__item-checkmark{display:none}.tox .tox-collection--horizontal{background-color:#2b3b4e;border:1px solid #1a1a1a;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:nowrap;margin-bottom:0;overflow-x:auto;padding:0}.tox .tox-collection--horizontal .tox-collection__group{align-items:center;display:flex;flex-wrap:nowrap;margin:0;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item{height:34px;margin:3px 0 2px;padding:0 4px}.tox .tox-collection--horizontal .tox-collection__item-label{white-space:nowrap}.tox .tox-collection--horizontal .tox-collection__item-caret{margin-left:4px}.tox .tox-collection__item-container{display:flex}.tox .tox-collection__item-container--row{align-items:center;flex:1 1 auto;flex-direction:row}.tox .tox-collection__item-container--row.tox-collection__item-container--align-left{margin-right:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--align-right{justify-content:flex-end;margin-left:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top{align-items:flex-start;margin-bottom:auto}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle{align-items:center}.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom{align-items:flex-end;margin-top:auto}.tox .tox-collection__item-container--column{align-self:center;flex:1 1 auto;flex-direction:column}.tox .tox-collection__item-container--column.tox-collection__item-container--align-left{align-items:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--align-right{align-items:flex-end}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top{align-self:flex-start}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle{align-self:center}.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom{align-self:flex-end}.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-right:1px solid #000000}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>*:not(:first-child){margin-left:8px}.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-left:4px}.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left:16px;text-align:right}.tox:not([dir=rtl]) .tox-collection .tox-collection__item-caret{margin-left:16px}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__group:not(:last-of-type){border-left:1px solid #000000}.tox[dir=rtl] .tox-collection--list .tox-collection__item>*:not(:first-child){margin-right:8px}.tox[dir=rtl] .tox-collection--list .tox-collection__item>.tox-collection__item-label:first-child{margin-right:4px}.tox[dir=rtl] .tox-collection__item-accessory{margin-right:16px;text-align:left}.tox[dir=rtl] .tox-collection .tox-collection__item-caret{margin-right:16px;transform:rotateY(180deg)}.tox[dir=rtl] .tox-collection--horizontal .tox-collection__item-caret{margin-right:4px}.tox .tox-color-picker-container{display:flex;flex-direction:row;height:225px;margin:0}.tox .tox-sv-palette{box-sizing:border-box;display:flex;height:100%}.tox .tox-sv-palette-spectrum{height:100%}.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width:225px}.tox .tox-sv-palette-thumb{background:none;border:1px solid black;border-radius:50%;box-sizing:content-box;height:12px;position:absolute;width:12px}.tox .tox-sv-palette-inner-thumb{border:1px solid white;border-radius:50%;height:10px;position:absolute;width:10px}.tox .tox-hue-slider{box-sizing:border-box;height:100%;width:25px}.tox .tox-hue-slider-spectrum{background:linear-gradient(to bottom,#f00,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,#f00);height:100%;width:100%}.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width:20px}.tox .tox-hue-slider-thumb{background:white;border:1px solid black;box-sizing:content-box;height:4px;width:100%}.tox .tox-rgb-form{display:flex;flex-direction:column;justify-content:space-between}.tox .tox-rgb-form div{align-items:center;display:flex;justify-content:space-between;margin-bottom:5px;width:inherit}.tox .tox-rgb-form input{width:6em}.tox .tox-rgb-form input.tox-invalid{border:1px solid red!important}.tox .tox-rgb-form .tox-rgba-preview{border:1px solid black;flex-grow:2;margin-bottom:0}.tox:not([dir=rtl]) .tox-sv-palette{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider{margin-right:15px}.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left:-1px}.tox:not([dir=rtl]) .tox-rgb-form label{margin-right:.5em}.tox[dir=rtl] .tox-sv-palette,.tox[dir=rtl] .tox-hue-slider{margin-left:15px}.tox[dir=rtl] .tox-hue-slider-thumb{margin-right:-1px}.tox[dir=rtl] .tox-rgb-form label{margin-left:.5em}.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__primary .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches{margin:2px 0 3px 4px}.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{border:0;margin:-4px 0}.tox .tox-swatches__row{display:flex}.tox .tox-swatch{height:30px;transition:transform .15s,box-shadow .15s;width:30px}.tox .tox-swatch:hover,.tox .tox-swatch:focus{box-shadow:0 0 0 1px #7f7f7f4d inset;transform:scale(.8)}.tox .tox-swatch--remove{align-items:center;display:flex;justify-content:center}.tox .tox-swatch--remove svg path{stroke:#e74c3c}.tox .tox-swatches__picker-btn{align-items:center;background-color:transparent;border:0;cursor:pointer;display:flex;height:30px;justify-content:center;outline:none;padding:0;width:30px}.tox .tox-swatches__picker-btn svg{fill:#fff;height:24px;width:24px}.tox .tox-swatches__picker-btn:hover{background:#4a5562}.tox div.tox-swatch:not(.tox-swatch--remove) svg{display:none;fill:#fff;height:24px;margin:3px;width:24px}.tox div.tox-swatch:not(.tox-swatch--remove) svg path{fill:#fff;paint-order:stroke;stroke:#222f3e;stroke-width:2px}.tox div.tox-swatch:not(.tox-swatch--remove).tox-collection__item--enabled svg{display:block}.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left:auto}.tox[dir=rtl] .tox-swatches__picker-btn{margin-right:auto}.tox .tox-comment-thread{background:#2b3b4e;position:relative}.tox .tox-comment-thread>*:not(:first-child){margin-top:8px}.tox .tox-comment{background:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;padding:8px 8px 16px;position:relative}.tox .tox-comment__header{align-items:center;color:#fff;display:flex;justify-content:space-between}.tox .tox-comment__date{color:#fff;font-size:12px;line-height:18px}.tox .tox-comment__body{color:#fff;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;margin-top:8px;position:relative;text-transform:initial}.tox .tox-comment__body textarea{resize:none;white-space:normal;width:100%}.tox .tox-comment__expander{padding-top:8px}.tox .tox-comment__expander p{color:#ffffff80;font-size:14px;font-style:normal}.tox .tox-comment__body p{margin:0}.tox .tox-comment__buttonspacing{padding-top:16px;text-align:center}.tox .tox-comment-thread__overlay:after{background:#2b3b4e;bottom:0;content:"";display:flex;left:0;opacity:.9;position:absolute;right:0;top:0;z-index:5}.tox .tox-comment__reply{display:flex;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end;margin-top:8px}.tox .tox-comment__reply>*:first-child{margin-bottom:8px;width:100%}.tox .tox-comment__edit{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:16px}.tox .tox-comment__gradient:after{background:linear-gradient(rgba(43,59,78,0),#2b3b4e);bottom:0;content:"";display:block;height:5em;margin-top:-40px;position:absolute;width:100%}.tox .tox-comment__overlay{background:#2b3b4e;bottom:0;display:flex;flex-direction:column;flex-grow:1;left:0;opacity:.9;position:absolute;right:0;text-align:center;top:0;z-index:5}.tox .tox-comment__loading-text{align-items:center;color:#fff;display:flex;flex-direction:column;position:relative}.tox .tox-comment__loading-text>div{padding-bottom:16px}.tox .tox-comment__overlaytext{bottom:0;flex-direction:column;font-size:14px;left:0;padding:1em;position:absolute;right:0;top:0;z-index:10}.tox .tox-comment__overlaytext p{background-color:#2b3b4e;box-shadow:0 0 8px 8px #2b3b4e;color:#fff;text-align:center}.tox .tox-comment__overlaytext div:nth-of-type(2){font-size:.8em}.tox .tox-comment__busy-spinner{align-items:center;background-color:#2b3b4e;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:20}.tox .tox-comment__scroll{display:flex;flex-direction:column;flex-shrink:1;overflow:auto}.tox .tox-conversations{margin:8px}.tox:not([dir=rtl]) .tox-comment__edit{margin-left:8px}.tox:not([dir=rtl]) .tox-comment__buttonspacing>*:last-child,.tox:not([dir=rtl]) .tox-comment__edit>*:last-child,.tox:not([dir=rtl]) .tox-comment__reply>*:last-child{margin-left:8px}.tox[dir=rtl] .tox-comment__edit{margin-right:8px}.tox[dir=rtl] .tox-comment__buttonspacing>*:last-child,.tox[dir=rtl] .tox-comment__edit>*:last-child,.tox[dir=rtl] .tox-comment__reply>*:last-child{margin-right:8px}.tox .tox-user{align-items:center;display:flex}.tox .tox-user__avatar svg{fill:#ffffff80}.tox .tox-user__avatar img{border-radius:50%;height:36px;object-fit:cover;vertical-align:middle;width:36px}.tox .tox-user__name{color:#fff;font-size:14px;font-style:normal;font-weight:700;line-height:18px;text-transform:none}.tox:not([dir=rtl]) .tox-user__avatar svg,.tox:not([dir=rtl]) .tox-user__avatar img{margin-right:8px}.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left:8px}.tox[dir=rtl] .tox-user__avatar svg,.tox[dir=rtl] .tox-user__avatar img{margin-left:8px}.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right:8px}.tox .tox-dialog-wrap{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1100}.tox .tox-dialog-wrap__backdrop{background-color:#222f3ebf;bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.tox .tox-dialog-wrap__backdrop--opaque{background-color:#222f3e}.tox .tox-dialog{background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:0 16px 16px -10px #2a374626,0 0 40px 1px #2a374626;display:flex;flex-direction:column;max-height:100%;max-width:480px;overflow:hidden;position:relative;width:95vw;z-index:2}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog{align-self:flex-start;margin:8px auto;max-height:calc(100vh - 16px);width:calc(100vw - 16px)}}.tox .tox-dialog-inline{z-index:1100}.tox .tox-dialog__header{align-items:center;background-color:#2b3b4e;border-bottom:none;color:#fff;display:flex;font-size:16px;justify-content:space-between;padding:8px 16px 0;position:relative}.tox .tox-dialog__header .tox-button{z-index:1}.tox .tox-dialog__draghandle{cursor:grab;height:100%;left:0;position:absolute;top:0;width:100%}.tox .tox-dialog__draghandle:active{cursor:grabbing}.tox .tox-dialog__dismiss{margin-left:auto}.tox .tox-dialog__title{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:20px;font-style:normal;font-weight:400;line-height:1.3;margin:0;text-transform:none}.tox .tox-dialog__body{color:#fff;display:flex;flex:1;font-size:16px;font-style:normal;font-weight:400;line-height:1.3;min-width:0;text-align:left;text-transform:none}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body{flex-direction:column}}.tox .tox-dialog__body-nav{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:16px}@media only screen and (min-width: 768px){.tox .tox-dialog__body-nav{max-width:11em}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox .tox-dialog__body-nav{flex-direction:row;-webkit-overflow-scrolling:touch;overflow-x:auto;padding-bottom:0}}.tox .tox-dialog__body-nav-item{border-bottom:2px solid transparent;color:#ffffff80;display:inline-block;flex-shrink:0;font-size:14px;line-height:1.3;margin-bottom:8px;max-width:13em;text-decoration:none}.tox .tox-dialog__body-nav-item:focus{background-color:#207ab71a}.tox .tox-dialog__body-nav-item--active{border-bottom:2px solid #207ab7;color:#207ab7}.tox .tox-dialog__body-content{box-sizing:border-box;display:flex;flex:1;flex-direction:column;max-height:min(650px,calc(100vh - 110px));overflow:auto;-webkit-overflow-scrolling:touch;padding:16px}.tox .tox-dialog__body-content>*{margin-bottom:0;margin-top:16px}.tox .tox-dialog__body-content>*:first-child{margin-top:0}.tox .tox-dialog__body-content>*:last-child{margin-bottom:0}.tox .tox-dialog__body-content>*:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content a{color:#207ab7;cursor:pointer;text-decoration:underline}.tox .tox-dialog__body-content a:hover,.tox .tox-dialog__body-content a:focus{color:#114060;text-decoration:underline}.tox .tox-dialog__body-content a:focus-visible{border-radius:1px;outline:2px solid #207ab7;outline-offset:2px}.tox .tox-dialog__body-content a:active{color:#092335;text-decoration:underline}.tox .tox-dialog__body-content svg{fill:#fff}.tox .tox-dialog__body-content strong{font-weight:700}.tox .tox-dialog__body-content ul{list-style-type:disc}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dd{padding-inline-start:2.5rem}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl{margin-bottom:16px}.tox .tox-dialog__body-content ul,.tox .tox-dialog__body-content ol,.tox .tox-dialog__body-content dl,.tox .tox-dialog__body-content dd,.tox .tox-dialog__body-content dt{display:block;margin-inline-end:0;margin-inline-start:0}.tox .tox-dialog__body-content .tox-form__group h1{color:#fff;font-size:20px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group h2{color:#fff;font-size:16px;font-style:normal;font-weight:700;letter-spacing:normal;margin-bottom:16px;margin-top:2rem;text-transform:none}.tox .tox-dialog__body-content .tox-form__group p{margin-bottom:16px}.tox .tox-dialog__body-content .tox-form__group h1:first-child,.tox .tox-dialog__body-content .tox-form__group h2:first-child,.tox .tox-dialog__body-content .tox-form__group p:first-child{margin-top:0}.tox .tox-dialog__body-content .tox-form__group h1:last-child,.tox .tox-dialog__body-content .tox-form__group h2:last-child,.tox .tox-dialog__body-content .tox-form__group p:last-child{margin-bottom:0}.tox .tox-dialog__body-content .tox-form__group h1:only-child,.tox .tox-dialog__body-content .tox-form__group h2:only-child,.tox .tox-dialog__body-content .tox-form__group p:only-child{margin-bottom:0;margin-top:0}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--center{text-align:center}.tox .tox-dialog__body-content .tox-form__group .tox-label.tox-label--end{text-align:end}.tox .tox-dialog--width-lg{height:650px;max-width:1200px}.tox .tox-dialog--fullscreen{height:100%;max-width:100%}.tox .tox-dialog--fullscreen .tox-dialog__body-content{max-height:100%}.tox .tox-dialog--width-md{max-width:800px}.tox .tox-dialog--width-md .tox-dialog__body-content{overflow:auto}.tox .tox-dialog__body-content--centered{text-align:center}.tox .tox-dialog__footer{align-items:center;background-color:#2b3b4e;border-top:1px solid #000000;display:flex;justify-content:space-between;padding:8px 16px}.tox .tox-dialog__footer-start,.tox .tox-dialog__footer-end{display:flex}.tox .tox-dialog__busy-spinner{align-items:center;background-color:#222f3ebf;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:3}.tox .tox-dialog__table{border-collapse:collapse;width:100%}.tox .tox-dialog__table thead th{font-weight:700;padding-bottom:8px}.tox .tox-dialog__table thead th:first-child{padding-right:8px}.tox .tox-dialog__table tbody tr{border-bottom:1px solid #000000}.tox .tox-dialog__table tbody tr:last-child{border-bottom:none}.tox .tox-dialog__table td{padding-bottom:8px;padding-top:8px}.tox .tox-dialog__table td:first-child{padding-right:8px}.tox .tox-dialog__iframe{min-height:200px}.tox .tox-dialog__iframe.tox-dialog__iframe--opaque{background:#fff}.tox .tox-navobj-bordered{position:relative}.tox .tox-navobj-bordered:before{border:1px solid #000000;border-radius:3px;content:"";top:0;right:0;bottom:0;left:0;opacity:1;pointer-events:none;position:absolute;z-index:1}.tox .tox-navobj-bordered-focus.tox-navobj-bordered:before{border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-dialog__popups{position:absolute;width:100%;z-index:1100}.tox .tox-dialog__body-iframe{display:flex;flex:1;flex-direction:column}.tox .tox-dialog__body-iframe .tox-navobj{display:flex;flex:1}.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex:1;height:100%}.tox .tox-dialog-dock-fadeout{opacity:0;visibility:hidden}.tox .tox-dialog-dock-fadein{opacity:1;visibility:visible}.tox .tox-dialog-dock-transition{transition:visibility 0s linear .3s,opacity .3s ease}.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein{transition-delay:0s}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox:not([dir=rtl]) .tox-dialog__body-nav-item:not(:first-child){margin-left:8px}}.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*{margin-left:8px}.tox[dir=rtl] .tox-dialog__body{text-align:right}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav{margin-left:0}}@media only screen and (max-width: 767px){body:not(.tox-force-desktop) .tox[dir=rtl] .tox-dialog__body-nav-item:not(:first-child){margin-right:8px}}.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*{margin-right:8px}body.tox-dialog__disable-scroll{overflow:hidden}.tox .tox-dropzone-container{display:flex;flex:1}.tox .tox-dropzone{align-items:center;background:#fff;border:2px dashed #000000;box-sizing:border-box;display:flex;flex-direction:column;flex-grow:1;justify-content:center;min-height:100px;padding:10px}.tox .tox-dropzone p{color:#ffffff80;margin:0 0 16px}.tox .tox-edit-area{display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-edit-area:before{border:2px solid #2D6ADF;border-radius:4px;content:"";top:0;right:0;bottom:0;left:0;opacity:0;pointer-events:none;position:absolute;transition:opacity .15s;z-index:1}.tox .tox-edit-area__iframe{background-color:#fff;border:0;box-sizing:border-box;flex:1;height:100%;position:absolute;width:100%}.tox.tox-edit-focus .tox-edit-area:before{opacity:1}.tox.tox-inline-edit-area{border:1px dotted #000000}.tox .tox-editor-container{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-editor-header{display:grid;grid-template-columns:1fr min-content;z-index:2}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:#222f3e;border-bottom:none;box-shadow:none;padding:4px 0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(.tox-editor-dock-transition){transition:box-shadow .5s}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:1px solid #000000;box-shadow:none}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:#222f3e;box-shadow:0 4px 4px -3px #00000040;padding:4px 0}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox.tox:not(.tox-tinymce-inline) .tox-editor-header.tox-editor-header--empty{background:none;border:none;box-shadow:none;padding:0}.tox-editor-dock-fadeout{opacity:0;visibility:hidden}.tox-editor-dock-fadein{opacity:1;visibility:visible}.tox-editor-dock-transition{transition:visibility 0s linear .25s,opacity .25s ease}.tox-editor-dock-transition.tox-editor-dock-fadein{transition-delay:0s}.tox .tox-control-wrap{flex:1;position:relative}.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display:none}.tox .tox-control-wrap svg{display:block}.tox .tox-control-wrap__status-icon-wrap{position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-control-wrap__status-icon-invalid svg{fill:#c00}.tox .tox-control-wrap__status-icon-unknown svg{fill:orange}.tox .tox-control-wrap__status-icon-valid svg{fill:green}.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right:32px}.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right:4px}.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left:32px}.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left:4px}.tox .tox-autocompleter{max-width:25em}.tox .tox-autocompleter .tox-menu{box-sizing:border-box;max-width:25em}.tox .tox-autocompleter .tox-autocompleter-highlight{font-weight:700}.tox .tox-color-input{display:flex;position:relative;z-index:1}.tox .tox-color-input .tox-textfield{z-index:-1}.tox .tox-color-input span{border-color:#2a374633;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;height:24px;position:absolute;top:6px;width:24px}.tox .tox-color-input span:hover:not([aria-disabled=true]),.tox .tox-color-input span:focus:not([aria-disabled=true]){border-color:#207ab7;cursor:pointer}.tox .tox-color-input span:before{background-image:linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.25) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(255,255,255,.25) 75%),linear-gradient(-45deg,transparent 75%,rgba(255,255,255,.25) 75%);background-position:0 0,0 6px,6px -6px,-6px 0;background-size:12px 12px;border:1px solid #2b3b4e;border-radius:3px;box-sizing:border-box;content:"";height:24px;left:-1px;position:absolute;top:-1px;width:24px;z-index:-1}.tox .tox-color-input span[aria-disabled=true]{cursor:not-allowed}.tox:not([dir=rtl]) .tox-color-input .tox-textfield{padding-left:36px}.tox:not([dir=rtl]) .tox-color-input span{left:6px}.tox[dir=rtl] .tox-color-input .tox-textfield{padding-right:36px}.tox[dir=rtl] .tox-color-input span{right:6px}.tox .tox-label,.tox .tox-toolbar-label{color:#ffffff80;display:block;font-size:14px;font-style:normal;font-weight:400;line-height:1.3;padding:0 8px 0 0;text-transform:none;white-space:nowrap}.tox .tox-toolbar-label{padding:0 8px}.tox[dir=rtl] .tox-label{padding:0 0 0 8px}.tox .tox-form{display:flex;flex:1;flex-direction:column}.tox .tox-form__group{box-sizing:border-box;margin-bottom:4px}.tox .tox-form-group--maximize{flex:1}.tox .tox-form__group--error{color:#c00}.tox .tox-form__group--collection{display:flex}.tox .tox-form__grid{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between}.tox .tox-form__grid--2col>.tox-form__group{width:calc(50% - 4px)}.tox .tox-form__grid--3col>.tox-form__group{width:calc(100% / 3 - (8px / 2))}.tox .tox-form__grid--4col>.tox-form__group{width:calc(25% - 4px)}.tox .tox-form__controls-h-stack,.tox .tox-form__group--inline{align-items:center;display:flex}.tox .tox-form__group--stretched{display:flex;flex:1;flex-direction:column}.tox .tox-form__group--stretched .tox-textarea{flex:1}.tox .tox-form__group--stretched .tox-navobj{display:flex;flex:1}.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex:1;height:100%}.tox:not([dir=rtl]) .tox-form__controls-h-stack>*:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-form__controls-h-stack>*:not(:first-child){margin-right:4px}.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display:none}.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox .tox-listboxfield .tox-listbox--select,.tox .tox-textarea,.tox .tox-textarea-wrap .tox-textarea:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-textfield[disabled],.tox .tox-textarea[disabled]{background-color:#222f3e;color:#ffffffd9;cursor:not-allowed}.tox .tox-textfield:focus,.tox .tox-listboxfield .tox-listbox--select:focus,.tox .tox-textarea-wrap:focus-within,.tox .tox-textarea:focus,.tox .tox-custom-editor:focus-within{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-toolbar-textfield{border-width:0;margin-bottom:3px;margin-top:2px;max-width:250px}.tox .tox-naked-btn{background-color:transparent;border:0;border-color:transparent;box-shadow:unset;color:#207ab7;cursor:pointer;display:block;margin:0;padding:0}.tox .tox-naked-btn svg{display:block;fill:#fff}.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left:4px}.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right:4px}.tox .tox-listboxfield{cursor:pointer;position:relative}.tox .tox-listboxfield .tox-listbox--select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-listbox__select-label{cursor:default;flex:1;margin:0 4px}.tox .tox-listbox__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-listbox__select-chevron svg{fill:#fff}.tox .tox-listboxfield .tox-listbox--select{align-items:center;display:flex}.tox:not([dir=rtl]) .tox-listboxfield svg{right:8px}.tox[dir=rtl] .tox-listboxfield svg{left:8px}.tox .tox-selectfield{cursor:pointer;position:relative}.tox .tox-selectfield select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#2b3b4e;border-color:#000;border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:24px;margin:0;min-height:34px;outline:none;padding:5px 4.75px;resize:none;width:100%}.tox .tox-selectfield select[disabled]{background-color:#19232e;color:#ffffffd9;cursor:not-allowed}.tox .tox-selectfield select::-ms-expand{display:none}.tox .tox-selectfield select:focus{background-color:#2b3b4e;border-color:#207ab7;box-shadow:none;outline:2px solid rgba(32,122,183,.25)}.tox .tox-selectfield svg{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%)}.tox:not([dir=rtl]) .tox-selectfield select[size="0"],.tox:not([dir=rtl]) .tox-selectfield select[size="1"]{padding-right:24px}.tox:not([dir=rtl]) .tox-selectfield svg{right:8px}.tox[dir=rtl] .tox-selectfield select[size="0"],.tox[dir=rtl] .tox-selectfield select[size="1"]{padding-left:24px}.tox[dir=rtl] .tox-selectfield svg{left:8px}.tox .tox-textarea-wrap{border-color:#000;border-radius:3px;border-style:solid;border-width:1px;display:flex;flex:1;overflow:hidden}.tox .tox-textarea{-webkit-appearance:textarea;-moz-appearance:textarea;appearance:textarea;white-space:pre-wrap}.tox .tox-textarea-wrap .tox-textarea{border:none}.tox .tox-textarea-wrap .tox-textarea:focus{border:none}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen,.tox-shadowhost.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}.tox .tox-help__more-link{list-style:none;margin-top:1em}.tox .tox-imagepreview{background-color:#666;height:380px;overflow:hidden;position:relative;width:100%}.tox .tox-imagepreview.tox-imagepreview__loaded{overflow:auto}.tox .tox-imagepreview__container{display:flex;left:100vw;position:absolute;top:100vw}.tox .tox-imagepreview__image{background:url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==)}.tox .tox-image-tools .tox-spacer{flex:1}.tox .tox-image-tools .tox-bar{align-items:center;display:flex;height:60px;justify-content:center}.tox .tox-image-tools .tox-imagepreview,.tox .tox-image-tools .tox-imagepreview+.tox-bar{margin-top:8px}.tox .tox-image-tools .tox-croprect-block{background:black;filter:alpha(opacity=50);opacity:.5;position:absolute;zoom:1}.tox .tox-image-tools .tox-croprect-handle{border:2px solid white;height:20px;left:0;position:absolute;top:0;width:20px}.tox .tox-image-tools .tox-croprect-handle-move{border:0;cursor:move;position:absolute}.tox .tox-image-tools .tox-croprect-handle-nw{border-width:2px 0 0 2px;cursor:nw-resize;left:100px;margin:-2px 0 0 -2px;top:100px}.tox .tox-image-tools .tox-croprect-handle-ne{border-width:2px 2px 0 0;cursor:ne-resize;left:200px;margin:-2px 0 0 -20px;top:100px}.tox .tox-image-tools .tox-croprect-handle-sw{border-width:0 0 2px 2px;cursor:sw-resize;left:100px;margin:-20px 2px 0 -2px;top:200px}.tox .tox-image-tools .tox-croprect-handle-se{border-width:0 2px 2px 0;cursor:se-resize;left:200px;margin:-20px 0 0 -20px;top:200px}.tox .tox-insert-table-picker{display:flex;flex-wrap:wrap;width:170px}.tox .tox-insert-table-picker>div{border-color:#000;border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;height:17px;width:17px}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:0 -4px}.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color:#207ab780;border-color:#207ab780}.tox .tox-insert-table-picker__label{color:#fff;display:block;font-size:14px;padding:4px;text-align:center;width:100%}.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right:0}.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right:0}.tox .tox-menu{background-color:#2b3b4e;border:1px solid #000000;border-radius:3px;box-shadow:0 4px 8px #2a37461a;display:inline-block;overflow:hidden;vertical-align:top;z-index:1150}.tox .tox-menu.tox-collection.tox-collection--toolbar,.tox .tox-menu.tox-collection.tox-collection--grid{padding:4px}@media only screen and (min-width: 768px){.tox .tox-menu .tox-collection__item-label{overflow-wrap:break-word;word-break:normal}.tox .tox-dialog__popups .tox-menu .tox-collection__item-label{word-break:break-all}}.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p,.tox .tox-menu__label blockquote,.tox .tox-menu__label code{margin:0}.tox .tox-menubar{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;grid-column:1 / -1;grid-row:1;padding:0 4px}.tox .tox-promotion+.tox-menubar{grid-column:1}.tox .tox-promotion{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color:#222f3e;grid-column:2;grid-row:1;padding-inline-end:8px;padding-inline-start:4px;padding-top:5px}.tox .tox-promotion-link{align-items:unsafe center;background-color:#e8f1f8;border-radius:5px;color:#086be6;cursor:pointer;display:flex;font-size:14px;height:26.6px;padding:4px 8px;white-space:nowrap}.tox .tox-promotion-link:hover{background-color:#b4d7ff}.tox .tox-promotion-link:focus{background-color:#d9edf7}.tox .tox-mbtn{align-items:center;background:transparent;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:2px 0 3px;outline:none;overflow:hidden;padding:0 4px;text-transform:none;width:auto}.tox .tox-mbtn[disabled]{background-color:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-mbtn:focus:not(:disabled){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn--active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn:hover:not(:disabled):not(.tox-mbtn--active){background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-mbtn__select-label{cursor:default;font-weight:400;margin:0 4px}.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor:not-allowed}.tox .tox-mbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px;display:none}.tox .tox-notification{border-radius:3px;border-style:solid;border-width:1px;box-shadow:none;box-sizing:border-box;display:grid;font-size:14px;font-weight:400;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);margin-top:4px;opacity:0;padding:4px;transition:transform .1s ease-in,opacity .15s ease-in}.tox .tox-notification p{font-size:14px;font-weight:400}.tox .tox-notification a{cursor:pointer;text-decoration:underline}.tox .tox-notification--in{opacity:1}.tox .tox-notification--success{background-color:#334840;border-color:#3c5440;color:#fff}.tox .tox-notification--success p{color:#fff}.tox .tox-notification--success a{color:#b5d199}.tox .tox-notification--success svg{fill:#fff}.tox .tox-notification--error{background-color:#442632;border-color:#55212b;color:#fff}.tox .tox-notification--error p{color:#fff}.tox .tox-notification--error a{color:#e68080}.tox .tox-notification--error svg{fill:#fff}.tox .tox-notification--warn,.tox .tox-notification--warning{background-color:#222f3e;border-color:#000;color:#fff0b3}.tox .tox-notification--warn p,.tox .tox-notification--warning p{color:#fff0b3}.tox .tox-notification--warn a,.tox .tox-notification--warning a{color:#fc0}.tox .tox-notification--warn svg,.tox .tox-notification--warning svg{fill:#fff0b3}.tox .tox-notification--info{background-color:#254161;border-color:#264972;color:#fff}.tox .tox-notification--info p{color:#fff}.tox .tox-notification--info a{color:#83b7f3}.tox .tox-notification--info svg{fill:#fff}.tox .tox-notification__body{align-self:center;color:#fff;font-size:14px;grid-column-end:3;grid-column-start:2;grid-row-end:2;grid-row-start:1;text-align:center;white-space:normal;word-break:break-all;word-break:break-word}.tox .tox-notification__body>*{margin:0}.tox .tox-notification__body>*+*{margin-top:1rem}.tox .tox-notification__icon{align-self:center;grid-column-end:2;grid-column-start:1;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification__icon svg{display:block}.tox .tox-notification__dismiss{align-self:start;grid-column-end:4;grid-column-start:3;grid-row-end:2;grid-row-start:1;justify-self:end}.tox .tox-notification .tox-progress-bar{grid-column-end:4;grid-column-start:1;grid-row-end:3;grid-row-start:2;justify-self:center}.tox .tox-pop{display:inline-block;position:relative}.tox .tox-pop--resizing{transition:width .1s ease}.tox .tox-pop--resizing .tox-toolbar,.tox .tox-pop--resizing .tox-toolbar__group{flex-wrap:nowrap}.tox .tox-pop--transition{transition:.15s ease;transition-property:left,right,top,bottom}.tox .tox-pop--transition:before,.tox .tox-pop--transition:after{transition:all .15s,visibility 0s,opacity 75ms ease 75ms}.tox .tox-pop__dialog{background-color:#222f3e;border:1px solid #000000;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;min-width:0;overflow:hidden}.tox .tox-pop__dialog>*:not(.tox-toolbar){margin:4px 4px 4px 8px}.tox .tox-pop__dialog .tox-toolbar{background-color:transparent;margin-bottom:-1px}.tox .tox-pop:before,.tox .tox-pop:after{border-style:solid;content:"";display:block;height:0;opacity:1;position:absolute;width:0}.tox .tox-pop.tox-pop--inset:before,.tox .tox-pop.tox-pop--inset:after{opacity:0;transition:all 0s .15s,visibility 0s,opacity 75ms ease}.tox .tox-pop.tox-pop--bottom:before,.tox .tox-pop.tox-pop--bottom:after{left:50%;top:100%}.tox .tox-pop.tox-pop--bottom:after{border-color:#222f3e transparent transparent transparent;border-width:8px;margin-left:-8px;margin-top:-1px}.tox .tox-pop.tox-pop--bottom:before{border-color:#000000 transparent transparent transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--top:before,.tox .tox-pop.tox-pop--top:after{left:50%;top:0;transform:translateY(-100%)}.tox .tox-pop.tox-pop--top:after{border-color:transparent transparent #222f3e transparent;border-width:8px;margin-left:-8px;margin-top:1px}.tox .tox-pop.tox-pop--top:before{border-color:transparent transparent #000000 transparent;border-width:9px;margin-left:-9px}.tox .tox-pop.tox-pop--left:before,.tox .tox-pop.tox-pop--left:after{left:0;top:calc(50% - 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--left:after{border-color:transparent #222f3e transparent transparent;border-width:8px;margin-left:-15px}.tox .tox-pop.tox-pop--left:before{border-color:transparent #000000 transparent transparent;border-width:10px;margin-left:-19px}.tox .tox-pop.tox-pop--right:before,.tox .tox-pop.tox-pop--right:after{left:100%;top:calc(50% + 1px);transform:translateY(-50%)}.tox .tox-pop.tox-pop--right:after{border-color:transparent transparent transparent #222f3e;border-width:8px;margin-left:-1px}.tox .tox-pop.tox-pop--right:before{border-color:transparent transparent transparent #000000;border-width:10px;margin-left:-1px}.tox .tox-pop.tox-pop--align-left:before,.tox .tox-pop.tox-pop--align-left:after{left:20px}.tox .tox-pop.tox-pop--align-right:before,.tox .tox-pop.tox-pop--align-right:after{left:calc(100% - 20px)}.tox .tox-sidebar-wrap{display:flex;flex-direction:row;flex-grow:1;min-height:0}.tox .tox-sidebar{background-color:#222f3e;display:flex;flex-direction:row;justify-content:flex-end}.tox .tox-sidebar__slider{display:flex;overflow:hidden}.tox .tox-sidebar__pane-container,.tox .tox-sidebar__pane{display:flex}.tox .tox-sidebar--sliding-closed{opacity:0}.tox .tox-sidebar--sliding-open{opacity:1}.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition:width .5s ease,opacity .5s ease}.tox .tox-selector{background-color:#4099ff;border-color:#4099ff;border-style:solid;border-width:1px;box-sizing:border-box;display:inline-block;height:10px;position:absolute;width:10px}.tox.tox-platform-touch .tox-selector{height:12px;width:12px}.tox .tox-slider{align-items:center;display:flex;flex:1;height:24px;justify-content:center;position:relative}.tox .tox-slider__rail{background-color:transparent;border:1px solid #000000;border-radius:3px;height:10px;min-width:120px;width:100%}.tox .tox-slider__handle{background-color:#207ab7;border:2px solid #185d8c;border-radius:3px;box-shadow:none;height:24px;left:50%;position:absolute;top:50%;transform:translate(-50%) translateY(-50%);width:14px}.tox .tox-form__controls-h-stack>.tox-slider:not(:first-of-type){margin-inline-start:8px}.tox .tox-form__controls-h-stack>.tox-form__group+.tox-slider{margin-inline-start:32px}.tox .tox-form__controls-h-stack>.tox-slider+.tox-form__group{margin-inline-start:32px}.tox .tox-source-code{overflow:auto}.tox .tox-spinner{display:flex}.tox .tox-spinner>div{animation:tam-bouncing-dots 1.5s ease-in-out 0s infinite both;background-color:#ffffff80;border-radius:100%;height:8px;width:8px}.tox .tox-spinner>div:nth-child(1){animation-delay:-.32s}.tox .tox-spinner>div:nth-child(2){animation-delay:-.16s}@keyframes tam-bouncing-dots{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left:4px}.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right:4px}.tox .tox-statusbar{align-items:center;background-color:#222f3e;border-top:1px solid #000000;color:#fff;display:flex;flex:0 0 auto;font-size:12px;font-weight:400;height:18px;overflow:hidden;padding:0 8px;position:relative;text-transform:uppercase}.tox .tox-statusbar__path{display:flex;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-statusbar__right-container{display:flex;justify-content:flex-end;white-space:nowrap}.tox .tox-statusbar__help-text{text-align:center}.tox .tox-statusbar__text-container{display:flex;flex:1 1 auto;justify-content:space-between;overflow:hidden}@media only screen and (min-width: 768px){.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__help-text,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__right-container,.tox .tox-statusbar__text-container.tox-statusbar__text-container-3-cols>.tox-statusbar__path{flex:0 0 calc(100% / 3)}}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-end{justify-content:flex-end}.tox .tox-statusbar__text-container.tox-statusbar__text-container--flex-start{justify-content:flex-start}.tox .tox-statusbar__text-container.tox-statusbar__text-container--space-around{justify-content:space-around}.tox .tox-statusbar__path>*{display:inline;white-space:nowrap}.tox .tox-statusbar__wordcount{flex:0 0 auto;margin-left:1ch}@media only screen and (max-width: 767px){.tox .tox-statusbar__text-container .tox-statusbar__help-text{display:none}.tox .tox-statusbar__text-container .tox-statusbar__help-text:only-child{display:block}}.tox .tox-statusbar a,.tox .tox-statusbar__path-item,.tox .tox-statusbar__wordcount{color:#fff;text-decoration:none}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;cursor:pointer}.tox .tox-statusbar__branding svg{fill:#fffc;height:1.14em;vertical-align:-.28em;width:3.6em}.tox .tox-statusbar__branding a:hover:not(:disabled):not([aria-disabled=true]) svg,.tox .tox-statusbar__branding a:focus:not(:disabled):not([aria-disabled=true]) svg{fill:#fff}.tox .tox-statusbar__resize-handle{align-items:flex-end;align-self:stretch;cursor:nwse-resize;display:flex;flex:0 0 auto;justify-content:flex-end;margin-left:auto;margin-right:-8px;padding-bottom:3px;padding-left:1ch;padding-right:3px}.tox .tox-statusbar__resize-handle svg{display:block;fill:#ffffff80}.tox .tox-statusbar__resize-handle:focus svg{background-color:#4a5562;border-radius:1px 1px -4px;box-shadow:0 0 0 2px #4a5562}.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right:4px}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:2ch}.tox[dir=rtl] .tox-statusbar{flex-direction:row-reverse}.tox[dir=rtl] .tox-statusbar__path>*{margin-left:4px}.tox .tox-throbber{z-index:1299}.tox .tox-throbber__busy-spinner{align-items:center;background-color:#222f3e99;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.tox .tox-tbtn{align-items:center;background:transparent;border:0;border-radius:3px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:34px;justify-content:center;margin:3px 0 2px;outline:none;overflow:hidden;padding:0;text-transform:none;width:34px}.tox .tox-tbtn svg{display:block;fill:#fff}.tox .tox-tbtn.tox-tbtn-more{padding-left:5px;padding-right:5px;width:inherit}.tox .tox-tbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:hover svg{fill:#fff}.tox .tox-tbtn:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn:active svg{fill:#fff}.tox .tox-tbtn--disabled .tox-tbtn--enabled svg{fill:#ffffff80}.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tbtn--enabled,.tox .tox-tbtn--enabled:hover{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-tbtn--enabled>*,.tox .tox-tbtn--enabled:hover>*{transform:none}.tox .tox-tbtn--enabled svg,.tox .tox-tbtn--enabled:hover svg{fill:#fff}.tox .tox-tbtn--enabled.tox-tbtn--disabled svg,.tox .tox-tbtn--enabled:hover.tox-tbtn--disabled svg{fill:#ffffff80}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled){color:#fff}.tox .tox-tbtn:focus:not(.tox-tbtn--disabled) svg{fill:#fff}.tox .tox-tbtn:active>*{transform:none}.tox .tox-tbtn--md{height:51px;width:51px}.tox .tox-tbtn--lg{flex-direction:column;height:68px;width:68px}.tox .tox-tbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tbtn--labeled{padding:0 4px;width:unset}.tox .tox-tbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-number-input{border-radius:3px;display:flex;margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-number-input .tox-input-wrapper{background:transparent;display:flex;pointer-events:none;text-align:center}.tox .tox-number-input .tox-input-wrapper:focus{background:#4a5562}.tox .tox-number-input input{border-radius:3px;color:#fff;font-size:14px;margin:2px 0;pointer-events:all;width:60px}.tox .tox-number-input input:hover{background:#4a5562;color:#fff}.tox .tox-number-input input:focus{background:#fff;color:#2a3746}.tox .tox-number-input input:disabled{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button{background:transparent;color:#fff;height:34px;text-align:center;width:24px}.tox .tox-number-input button svg{display:block;fill:#fff;margin:0 auto;transform:scale(.67)}.tox .tox-number-input button:focus{background:#4a5562}.tox .tox-number-input button:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:hover svg{fill:#fff}.tox .tox-number-input button:active{background:#757d87;border:0;box-shadow:none;color:#fff}.tox .tox-number-input button:active svg{fill:#fff}.tox .tox-number-input button:disabled{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-number-input button:disabled svg{fill:#ffffff80}.tox .tox-number-input button.minus{border-radius:3px 0 0 3px}.tox .tox-number-input button.plus{border-radius:0 3px 3px 0}.tox .tox-number-input:focus:not(:active)>button,.tox .tox-number-input:focus:not(:active)>.tox-input-wrapper{background:#4a5562}.tox .tox-tbtn--select{margin:3px 0 2px;padding:0 4px;width:auto}.tox .tox-tbtn__select-label{cursor:default;font-weight:400;height:initial;margin:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tbtn__select-chevron{align-items:center;display:flex;justify-content:center;width:16px}.tox .tox-tbtn__select-chevron svg{fill:#ffffff80}.tox .tox-tbtn--bespoke{background:transparent}.tox .tox-tbtn--bespoke+.tox-tbtn--bespoke{margin-inline-start:0}.tox .tox-tbtn--bespoke .tox-tbtn__select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:7em}.tox .tox-tbtn--disabled .tox-tbtn__select-label,.tox .tox-tbtn--select:disabled .tox-tbtn__select-label{cursor:not-allowed}.tox .tox-split-button{border:0;border-radius:3px;box-sizing:border-box;display:flex;margin:3px 0 2px;overflow:hidden}.tox .tox-split-button:hover{box-shadow:0 0 0 1px #4a5562 inset}.tox .tox-split-button:focus{background:#4a5562;box-shadow:none;color:#fff}.tox .tox-split-button>*{border-radius:0}.tox .tox-split-button__chevron{width:16px}.tox .tox-split-button__chevron svg{fill:#ffffff80}.tox .tox-split-button .tox-tbtn{margin:0}.tox .tox-split-button.tox-tbtn--disabled:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus{background:transparent;box-shadow:none;color:#ffffff80}.tox.tox-platform-touch .tox-split-button .tox-tbtn--select{padding:0}.tox.tox-platform-touch .tox-split-button .tox-tbtn:not(.tox-tbtn--select):first-child{width:30px}.tox.tox-platform-touch .tox-split-button__chevron{width:20px}.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-text-color__color,.tox .tox-split-button.tox-tbtn--disabled svg #tox-icon-highlight-bg-color__color{opacity:.6}.tox .tox-toolbar-overlord{background-color:#222f3e}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-attachment:local;background-color:#222f3e;background-image:repeating-linear-gradient(#000000 0px 1px,transparent 1px 39px);background-position:center top 39px;background-repeat:no-repeat;background-size:calc(100% - 8px) calc(100% - 39px);display:flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;padding:0;transform:perspective(1px)}.tox .tox-toolbar-overlord>.tox-toolbar,.tox .tox-toolbar-overlord>.tox-toolbar__primary,.tox .tox-toolbar-overlord>.tox-toolbar__overflow{background-position:center top 0px;background-size:calc(100% - 8px) calc(100% + -0px)}.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height:0;opacity:0;padding-bottom:0;padding-top:0;visibility:hidden}.tox .tox-toolbar__overflow--growing{transition:height .3s ease,opacity .2s linear .1s}.tox .tox-toolbar__overflow--shrinking{transition:opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s}.tox .tox-toolbar-overlord,.tox .tox-anchorbar{grid-column:1 / -1}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord{border-top:1px solid #000000;margin-top:-1px;padding-bottom:0;padding-top:0}.tox .tox-toolbar--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-pop .tox-toolbar{border-width:0}.tox .tox-toolbar--no-divider{background-image:none}.tox .tox-toolbar-overlord .tox-toolbar:not(.tox-toolbar--scrolling):first-child,.tox .tox-toolbar-overlord .tox-toolbar__primary{background-position:center top 39px}.tox .tox-editor-header>.tox-toolbar--scrolling,.tox .tox-toolbar-overlord .tox-toolbar--scrolling:first-child{background-image:none}.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color:#222f3e;background-position:center top 43px;background-size:calc(100% - 16px) calc(100% - 51px);border:none;border-radius:3px;box-shadow:0 0 2px #2a374633,0 4px 8px #2a374626;overscroll-behavior:none;padding:4px 0}.tox-pop .tox-pop__dialog .tox-toolbar{background-position:center top 43px;background-size:calc(100% - 8px) calc(100% - 51px);padding:4px 0}.tox .tox-toolbar__group{align-items:center;display:flex;flex-wrap:wrap;margin:0;padding:0 4px}.tox .tox-toolbar__group--pull-right{margin-left:auto}.tox .tox-toolbar--scrolling .tox-toolbar__group{flex-shrink:0;flex-wrap:nowrap}.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right:1px solid #000000}.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left:1px solid #000000}.tox .tox-tooltip{display:inline-block;padding:8px;position:relative}.tox .tox-tooltip__body{background-color:#3d546f;border-radius:3px;box-shadow:0 2px 4px #2a37464d;color:#ffffffbf;font-size:14px;font-style:normal;font-weight:400;padding:4px 8px;text-transform:none}.tox .tox-tooltip__arrow{position:absolute}.tox .tox-tooltip--down .tox-tooltip__arrow{border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #3d546f;bottom:0;left:50%;position:absolute;transform:translate(-50%)}.tox .tox-tooltip--up .tox-tooltip__arrow{border-bottom:8px solid #3d546f;border-left:8px solid transparent;border-right:8px solid transparent;left:50%;position:absolute;top:0;transform:translate(-50%)}.tox .tox-tooltip--right .tox-tooltip__arrow{border-bottom:8px solid transparent;border-left:8px solid #3d546f;border-top:8px solid transparent;position:absolute;right:0;top:50%;transform:translateY(-50%)}.tox .tox-tooltip--left .tox-tooltip__arrow{border-bottom:8px solid transparent;border-right:8px solid #3d546f;border-top:8px solid transparent;left:0;position:absolute;top:50%;transform:translateY(-50%)}.tox .tox-tree{display:flex;flex-direction:column}.tox .tox-tree .tox-trbtn{align-items:center;background:transparent;border:0;border-radius:4px;box-shadow:none;color:#fff;display:flex;flex:0 0 auto;font-size:14px;font-style:normal;font-weight:400;height:28px;margin-bottom:4px;margin-top:4px;outline:none;overflow:hidden;padding:0 0 0 8px;text-transform:none}.tox .tox-tree .tox-trbtn .tox-tree__label{cursor:default;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tox .tox-tree .tox-trbtn svg{display:block;fill:#fff}.tox .tox-tree .tox-trbtn:focus{background:#4a5562;border:0;box-shadow:none}.tox .tox-tree .tox-trbtn:hover{background:#4a5562;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:active{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn:active svg{fill:#fff}.tox .tox-tree .tox-trbtn--disabled,.tox .tox-tree .tox-trbtn--disabled:hover,.tox .tox-tree .tox-trbtn:disabled,.tox .tox-tree .tox-trbtn:disabled:hover{background:transparent;border:0;box-shadow:none;color:#ffffff80;cursor:not-allowed}.tox .tox-tree .tox-trbtn--disabled svg,.tox .tox-tree .tox-trbtn--disabled:hover svg,.tox .tox-tree .tox-trbtn:disabled svg,.tox .tox-tree .tox-trbtn:disabled:hover svg{fill:#ffffff80}.tox .tox-tree .tox-trbtn--enabled,.tox .tox-tree .tox-trbtn--enabled:hover{background:#6ea9d0;border:0;box-shadow:none;color:#fff}.tox .tox-tree .tox-trbtn--enabled>*,.tox .tox-tree .tox-trbtn--enabled:hover>*{transform:none}.tox .tox-tree .tox-trbtn--enabled svg,.tox .tox-tree .tox-trbtn--enabled:hover svg{fill:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled){color:#fff}.tox .tox-tree .tox-trbtn:focus:not(.tox-trbtn--disabled) svg{fill:#fff}.tox .tox-tree .tox-trbtn:active>*{transform:none}.tox .tox-tree .tox-trbtn--return{align-self:stretch;height:unset;width:16px}.tox .tox-tree .tox-trbtn--labeled{padding:0 4px;width:unset}.tox .tox-tree .tox-trbtn__vlabel{display:block;font-size:10px;font-weight:400;letter-spacing:-.025em;margin-bottom:4px;white-space:nowrap}.tox .tox-tree .tox-tree--directory{display:flex;flex-direction:column}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label{font-weight:700}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover .tox-mbtn svg,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:focus .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label .tox-chevron{margin-right:6px}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--shrinking) .tox-chevron{transition:transform .5s ease-in-out}.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--growing) .tox-chevron,.tox .tox-tree .tox-tree--directory .tox-tree--directory__label:has(+.tox-tree--directory__children--open) .tox-chevron{transform:rotate(90deg)}.tox .tox-tree .tox-tree--leaf__label{font-weight:400}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn{margin-left:auto}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn svg{fill:transparent}.tox .tox-tree .tox-tree--leaf__label .tox-mbtn.tox-mbtn--active svg,.tox .tox-tree .tox-tree--leaf__label .tox-mbtn:focus svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover .tox-mbtn svg{fill:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover){background-color:transparent;color:#fff}.tox .tox-tree .tox-tree--leaf__label:hover:has(.tox-mbtn:hover) .tox-chevron svg{fill:#fff}.tox .tox-tree .tox-tree--directory__children{overflow:hidden;padding-left:16px}.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--growing,.tox .tox-tree .tox-tree--directory__children.tox-tree--directory__children--shrinking{transition:height .5s ease-in-out}.tox .tox-tree .tox-trbtn.tox-tree--leaf__label{display:flex;justify-content:space-between}.tox .tox-view-wrap,.tox .tox-view-wrap__slot-container{background-color:#222f3e;display:flex;flex:1;flex-direction:column}.tox .tox-view{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.tox .tox-view__header{align-items:center;display:flex;font-size:16px;justify-content:space-between;padding:8px 8px 0;position:relative}.tox .tox-view--mobile.tox-view__header,.tox .tox-view--mobile.tox-view__toolbar{padding:8px}.tox .tox-view--scrolling{flex-wrap:nowrap;overflow-x:auto}.tox .tox-view__toolbar{display:flex;flex-direction:row;gap:8px;justify-content:space-between;padding:8px 8px 0}.tox .tox-view__toolbar__group{display:flex;flex-direction:row;gap:12px}.tox .tox-view__header-start,.tox .tox-view__header-end{display:flex}.tox .tox-view__pane{height:100%;padding:8px;width:100%}.tox .tox-view__pane_panel{border:1px solid #000000;border-radius:3px}.tox:not([dir=rtl]) .tox-view__header .tox-view__header-start>*,.tox:not([dir=rtl]) .tox-view__header .tox-view__header-end>*{margin-left:8px}.tox[dir=rtl] .tox-view__header .tox-view__header-start>*,.tox[dir=rtl] .tox-view__header .tox-view__header-end>*{margin-right:8px}.tox .tox-well{border:1px solid #000000;border-radius:3px;padding:8px;width:100%}.tox .tox-well>*:first-child{margin-top:0}.tox .tox-well>*:last-child{margin-bottom:0}.tox .tox-well>*:only-child{margin:0}.tox .tox-custom-editor{border:1px solid #000000;border-radius:3px;display:flex;flex:1;overflow:hidden;position:relative}.tox .tox-dialog-loading:before{background-color:#00000080;content:"";height:100%;position:absolute;width:100%;z-index:1000}.tox .tox-tab{cursor:pointer}.tox .tox-dialog__content-js,.tox .tox-dialog__body-content .tox-collection{display:flex;flex:1}.tox:not(.tox-tinymce-inline) .tox-editor-header{background-color:none;padding:0}.tox.tox-tinymce--toolbar-bottom .tox-editor-header,.tox.tox-tinymce-inline .tox-editor-header{margin-bottom:-1px}.tox.tox-tinymce-inline .tox-editor-container{overflow:hidden}.tox:not(.tox-tinymce-inline).tox-tinymce--toolbar-bottom .tox-editor-header{border-top:none;box-shadow:none}.tox.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header{background-color:transparent;box-shadow:0 4px 4px -3px #00000040;padding:0}.tox.tox.tox-tinymce--toolbar-sticky-on.tox-tinymce--toolbar-bottom .tox-editor-header{box-shadow:0 4px 4px -3px #00000040}.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin:-4px 0}.tox .tox-menu.tox-collection.tox-collection--list{padding:0}.tox .tox-pop{box-shadow:none}.tox .tox-tbtn,.tox .tox-number-input,.tox .tox-tbtn--select,.tox .tox-split-button{margin:2px 0 3px}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background:url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0px #222f3e!important}.tox .tox-menubar+.tox-toolbar-overlord{border-top:none}.tox .tox-menubar+.tox-toolbar,.tox .tox-menubar+.tox-toolbar-overlord .tox-toolbar__primary{border-top:1px solid #000000;margin-top:-1px}.tox.tox-tinymce-aux .tox-toolbar__overflow{border:1px solid #000000;padding:0}.tox .tox-pop .tox-pop__dialog .tox-toolbar{padding:0}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-menubar{border-top:1px solid #000000}.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar-overlord:first-child .tox-toolbar__primary,.tox:not(.tox-tinymce-inline) .tox-editor-header:not(:first-child) .tox-toolbar:first-child{border-top:1px solid #000000}.tox .tox-toolbar__group{padding:0 4px}.tox .tox-collection__item{border-radius:0;cursor:pointer}.tox .tox-statusbar a:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:hover:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar a:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__path-item:focus:not(:disabled):not([aria-disabled=true]),.tox .tox-statusbar__wordcount:focus:not(:disabled):not([aria-disabled=true]){color:#fff;text-decoration:underline}.tox .tox-statusbar__branding svg{vertical-align:-.25em}.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left:1ch}.tox .tox-statusbar__resize-handle{padding-bottom:0;padding-right:0}.tox .tox-button:before{display:none}.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar__overflow{background-color:#0e1b23!important}.cm-editor{height:auto!important}@font-face{font-family:Material Design Icons;src:url(./materialdesignicons-webfont-5159a347.eot?v=7.3.67);src:url(./materialdesignicons-webfont-5159a347.eot?#iefix&v=7.3.67) format("embedded-opentype"),url(./materialdesignicons-webfont-31010194.woff2?v=7.3.67) format("woff2"),url(./materialdesignicons-webfont-28c8f97f.woff?v=7.3.67) format("woff"),url(./materialdesignicons-webfont-be825c12.ttf?v=7.3.67) format("truetype");font-weight:400;font-style:normal}.mdi:before,.mdi-set{display:inline-block;font: 24px/1 Material Design Icons;font-size:inherit;text-rendering:auto;line-height:inherit;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mdi-ab-testing:before{content:"󰇉"}.mdi-abacus:before{content:"󱛠"}.mdi-abjad-arabic:before{content:"󱌨"}.mdi-abjad-hebrew:before{content:"󱌩"}.mdi-abugida-devanagari:before{content:"󱌪"}.mdi-abugida-thai:before{content:"󱌫"}.mdi-access-point:before{content:"󰀃"}.mdi-access-point-check:before{content:"󱔸"}.mdi-access-point-minus:before{content:"󱔹"}.mdi-access-point-network:before{content:"󰀂"}.mdi-access-point-network-off:before{content:"󰯡"}.mdi-access-point-off:before{content:"󱔑"}.mdi-access-point-plus:before{content:"󱔺"}.mdi-access-point-remove:before{content:"󱔻"}.mdi-account:before{content:"󰀄"}.mdi-account-alert:before{content:"󰀅"}.mdi-account-alert-outline:before{content:"󰭐"}.mdi-account-arrow-down:before{content:"󱡨"}.mdi-account-arrow-down-outline:before{content:"󱡩"}.mdi-account-arrow-left:before{content:"󰭑"}.mdi-account-arrow-left-outline:before{content:"󰭒"}.mdi-account-arrow-right:before{content:"󰭓"}.mdi-account-arrow-right-outline:before{content:"󰭔"}.mdi-account-arrow-up:before{content:"󱡧"}.mdi-account-arrow-up-outline:before{content:"󱡪"}.mdi-account-badge:before{content:"󱬊"}.mdi-account-badge-outline:before{content:"󱬋"}.mdi-account-box:before{content:"󰀆"}.mdi-account-box-multiple:before{content:"󰤴"}.mdi-account-box-multiple-outline:before{content:"󱀊"}.mdi-account-box-outline:before{content:"󰀇"}.mdi-account-cancel:before{content:"󱋟"}.mdi-account-cancel-outline:before{content:"󱋠"}.mdi-account-card:before{content:"󱮤"}.mdi-account-card-outline:before{content:"󱮥"}.mdi-account-cash:before{content:"󱂗"}.mdi-account-cash-outline:before{content:"󱂘"}.mdi-account-check:before{content:"󰀈"}.mdi-account-check-outline:before{content:"󰯢"}.mdi-account-child:before{content:"󰪉"}.mdi-account-child-circle:before{content:"󰪊"}.mdi-account-child-outline:before{content:"󱃈"}.mdi-account-circle:before{content:"󰀉"}.mdi-account-circle-outline:before{content:"󰭕"}.mdi-account-clock:before{content:"󰭖"}.mdi-account-clock-outline:before{content:"󰭗"}.mdi-account-cog:before{content:"󱍰"}.mdi-account-cog-outline:before{content:"󱍱"}.mdi-account-convert:before{content:"󰀊"}.mdi-account-convert-outline:before{content:"󱌁"}.mdi-account-cowboy-hat:before{content:"󰺛"}.mdi-account-cowboy-hat-outline:before{content:"󱟳"}.mdi-account-credit-card:before{content:"󱮦"}.mdi-account-credit-card-outline:before{content:"󱮧"}.mdi-account-details:before{content:"󰘱"}.mdi-account-details-outline:before{content:"󱍲"}.mdi-account-edit:before{content:"󰚼"}.mdi-account-edit-outline:before{content:"󰿻"}.mdi-account-eye:before{content:"󰐠"}.mdi-account-eye-outline:before{content:"󱉻"}.mdi-account-file:before{content:"󱲧"}.mdi-account-file-outline:before{content:"󱲨"}.mdi-account-file-text:before{content:"󱲩"}.mdi-account-file-text-outline:before{content:"󱲪"}.mdi-account-filter:before{content:"󰤶"}.mdi-account-filter-outline:before{content:"󰾝"}.mdi-account-group:before{content:"󰡉"}.mdi-account-group-outline:before{content:"󰭘"}.mdi-account-hard-hat:before{content:"󰖵"}.mdi-account-hard-hat-outline:before{content:"󱨟"}.mdi-account-heart:before{content:"󰢙"}.mdi-account-heart-outline:before{content:"󰯣"}.mdi-account-injury:before{content:"󱠕"}.mdi-account-injury-outline:before{content:"󱠖"}.mdi-account-key:before{content:"󰀋"}.mdi-account-key-outline:before{content:"󰯤"}.mdi-account-lock:before{content:"󱅞"}.mdi-account-lock-open:before{content:"󱥠"}.mdi-account-lock-open-outline:before{content:"󱥡"}.mdi-account-lock-outline:before{content:"󱅟"}.mdi-account-minus:before{content:"󰀍"}.mdi-account-minus-outline:before{content:"󰫬"}.mdi-account-multiple:before{content:"󰀎"}.mdi-account-multiple-check:before{content:"󰣅"}.mdi-account-multiple-check-outline:before{content:"󱇾"}.mdi-account-multiple-minus:before{content:"󰗓"}.mdi-account-multiple-minus-outline:before{content:"󰯥"}.mdi-account-multiple-outline:before{content:"󰀏"}.mdi-account-multiple-plus:before{content:"󰀐"}.mdi-account-multiple-plus-outline:before{content:"󰠀"}.mdi-account-multiple-remove:before{content:"󱈊"}.mdi-account-multiple-remove-outline:before{content:"󱈋"}.mdi-account-music:before{content:"󰠃"}.mdi-account-music-outline:before{content:"󰳩"}.mdi-account-network:before{content:"󰀑"}.mdi-account-network-off:before{content:"󱫱"}.mdi-account-network-off-outline:before{content:"󱫲"}.mdi-account-network-outline:before{content:"󰯦"}.mdi-account-off:before{content:"󰀒"}.mdi-account-off-outline:before{content:"󰯧"}.mdi-account-outline:before{content:"󰀓"}.mdi-account-plus:before{content:"󰀔"}.mdi-account-plus-outline:before{content:"󰠁"}.mdi-account-question:before{content:"󰭙"}.mdi-account-question-outline:before{content:"󰭚"}.mdi-account-reactivate:before{content:"󱔫"}.mdi-account-reactivate-outline:before{content:"󱔬"}.mdi-account-remove:before{content:"󰀕"}.mdi-account-remove-outline:before{content:"󰫭"}.mdi-account-school:before{content:"󱨠"}.mdi-account-school-outline:before{content:"󱨡"}.mdi-account-search:before{content:"󰀖"}.mdi-account-search-outline:before{content:"󰤵"}.mdi-account-settings:before{content:"󰘰"}.mdi-account-settings-outline:before{content:"󱃉"}.mdi-account-star:before{content:"󰀗"}.mdi-account-star-outline:before{content:"󰯨"}.mdi-account-supervisor:before{content:"󰪋"}.mdi-account-supervisor-circle:before{content:"󰪌"}.mdi-account-supervisor-circle-outline:before{content:"󱓬"}.mdi-account-supervisor-outline:before{content:"󱄭"}.mdi-account-switch:before{content:"󰀙"}.mdi-account-switch-outline:before{content:"󰓋"}.mdi-account-sync:before{content:"󱤛"}.mdi-account-sync-outline:before{content:"󱤜"}.mdi-account-tag:before{content:"󱰛"}.mdi-account-tag-outline:before{content:"󱰜"}.mdi-account-tie:before{content:"󰳣"}.mdi-account-tie-hat:before{content:"󱢘"}.mdi-account-tie-hat-outline:before{content:"󱢙"}.mdi-account-tie-outline:before{content:"󱃊"}.mdi-account-tie-voice:before{content:"󱌈"}.mdi-account-tie-voice-off:before{content:"󱌊"}.mdi-account-tie-voice-off-outline:before{content:"󱌋"}.mdi-account-tie-voice-outline:before{content:"󱌉"}.mdi-account-tie-woman:before{content:"󱪌"}.mdi-account-voice:before{content:"󰗋"}.mdi-account-voice-off:before{content:"󰻔"}.mdi-account-wrench:before{content:"󱢚"}.mdi-account-wrench-outline:before{content:"󱢛"}.mdi-adjust:before{content:"󰀚"}.mdi-advertisements:before{content:"󱤪"}.mdi-advertisements-off:before{content:"󱤫"}.mdi-air-conditioner:before{content:"󰀛"}.mdi-air-filter:before{content:"󰵃"}.mdi-air-horn:before{content:"󰶬"}.mdi-air-humidifier:before{content:"󱂙"}.mdi-air-humidifier-off:before{content:"󱑦"}.mdi-air-purifier:before{content:"󰵄"}.mdi-air-purifier-off:before{content:"󱭗"}.mdi-airbag:before{content:"󰯩"}.mdi-airballoon:before{content:"󰀜"}.mdi-airballoon-outline:before{content:"󱀋"}.mdi-airplane:before{content:"󰀝"}.mdi-airplane-alert:before{content:"󱡺"}.mdi-airplane-check:before{content:"󱡻"}.mdi-airplane-clock:before{content:"󱡼"}.mdi-airplane-cog:before{content:"󱡽"}.mdi-airplane-edit:before{content:"󱡾"}.mdi-airplane-landing:before{content:"󰗔"}.mdi-airplane-marker:before{content:"󱡿"}.mdi-airplane-minus:before{content:"󱢀"}.mdi-airplane-off:before{content:"󰀞"}.mdi-airplane-plus:before{content:"󱢁"}.mdi-airplane-remove:before{content:"󱢂"}.mdi-airplane-search:before{content:"󱢃"}.mdi-airplane-settings:before{content:"󱢄"}.mdi-airplane-takeoff:before{content:"󰗕"}.mdi-airport:before{content:"󰡋"}.mdi-alarm:before{content:"󰀠"}.mdi-alarm-bell:before{content:"󰞎"}.mdi-alarm-check:before{content:"󰀡"}.mdi-alarm-light:before{content:"󰞏"}.mdi-alarm-light-off:before{content:"󱜞"}.mdi-alarm-light-off-outline:before{content:"󱜟"}.mdi-alarm-light-outline:before{content:"󰯪"}.mdi-alarm-multiple:before{content:"󰀢"}.mdi-alarm-note:before{content:"󰹱"}.mdi-alarm-note-off:before{content:"󰹲"}.mdi-alarm-off:before{content:"󰀣"}.mdi-alarm-panel:before{content:"󱗄"}.mdi-alarm-panel-outline:before{content:"󱗅"}.mdi-alarm-plus:before{content:"󰀤"}.mdi-alarm-snooze:before{content:"󰚎"}.mdi-album:before{content:"󰀥"}.mdi-alert:before{content:"󰀦"}.mdi-alert-box:before{content:"󰀧"}.mdi-alert-box-outline:before{content:"󰳤"}.mdi-alert-circle:before{content:"󰀨"}.mdi-alert-circle-check:before{content:"󱇭"}.mdi-alert-circle-check-outline:before{content:"󱇮"}.mdi-alert-circle-outline:before{content:"󰗖"}.mdi-alert-decagram:before{content:"󰚽"}.mdi-alert-decagram-outline:before{content:"󰳥"}.mdi-alert-minus:before{content:"󱒻"}.mdi-alert-minus-outline:before{content:"󱒾"}.mdi-alert-octagon:before{content:"󰀩"}.mdi-alert-octagon-outline:before{content:"󰳦"}.mdi-alert-octagram:before{content:"󰝧"}.mdi-alert-octagram-outline:before{content:"󰳧"}.mdi-alert-outline:before{content:"󰀪"}.mdi-alert-plus:before{content:"󱒺"}.mdi-alert-plus-outline:before{content:"󱒽"}.mdi-alert-remove:before{content:"󱒼"}.mdi-alert-remove-outline:before{content:"󱒿"}.mdi-alert-rhombus:before{content:"󱇎"}.mdi-alert-rhombus-outline:before{content:"󱇏"}.mdi-alien:before{content:"󰢚"}.mdi-alien-outline:before{content:"󱃋"}.mdi-align-horizontal-center:before{content:"󱇃"}.mdi-align-horizontal-distribute:before{content:"󱥢"}.mdi-align-horizontal-left:before{content:"󱇂"}.mdi-align-horizontal-right:before{content:"󱇄"}.mdi-align-vertical-bottom:before{content:"󱇅"}.mdi-align-vertical-center:before{content:"󱇆"}.mdi-align-vertical-distribute:before{content:"󱥣"}.mdi-align-vertical-top:before{content:"󱇇"}.mdi-all-inclusive:before{content:"󰚾"}.mdi-all-inclusive-box:before{content:"󱢍"}.mdi-all-inclusive-box-outline:before{content:"󱢎"}.mdi-allergy:before{content:"󱉘"}.mdi-alpha:before{content:"󰀫"}.mdi-alpha-a:before{content:"󰫮"}.mdi-alpha-a-box:before{content:"󰬈"}.mdi-alpha-a-box-outline:before{content:"󰯫"}.mdi-alpha-a-circle:before{content:"󰯬"}.mdi-alpha-a-circle-outline:before{content:"󰯭"}.mdi-alpha-b:before{content:"󰫯"}.mdi-alpha-b-box:before{content:"󰬉"}.mdi-alpha-b-box-outline:before{content:"󰯮"}.mdi-alpha-b-circle:before{content:"󰯯"}.mdi-alpha-b-circle-outline:before{content:"󰯰"}.mdi-alpha-c:before{content:"󰫰"}.mdi-alpha-c-box:before{content:"󰬊"}.mdi-alpha-c-box-outline:before{content:"󰯱"}.mdi-alpha-c-circle:before{content:"󰯲"}.mdi-alpha-c-circle-outline:before{content:"󰯳"}.mdi-alpha-d:before{content:"󰫱"}.mdi-alpha-d-box:before{content:"󰬋"}.mdi-alpha-d-box-outline:before{content:"󰯴"}.mdi-alpha-d-circle:before{content:"󰯵"}.mdi-alpha-d-circle-outline:before{content:"󰯶"}.mdi-alpha-e:before{content:"󰫲"}.mdi-alpha-e-box:before{content:"󰬌"}.mdi-alpha-e-box-outline:before{content:"󰯷"}.mdi-alpha-e-circle:before{content:"󰯸"}.mdi-alpha-e-circle-outline:before{content:"󰯹"}.mdi-alpha-f:before{content:"󰫳"}.mdi-alpha-f-box:before{content:"󰬍"}.mdi-alpha-f-box-outline:before{content:"󰯺"}.mdi-alpha-f-circle:before{content:"󰯻"}.mdi-alpha-f-circle-outline:before{content:"󰯼"}.mdi-alpha-g:before{content:"󰫴"}.mdi-alpha-g-box:before{content:"󰬎"}.mdi-alpha-g-box-outline:before{content:"󰯽"}.mdi-alpha-g-circle:before{content:"󰯾"}.mdi-alpha-g-circle-outline:before{content:"󰯿"}.mdi-alpha-h:before{content:"󰫵"}.mdi-alpha-h-box:before{content:"󰬏"}.mdi-alpha-h-box-outline:before{content:"󰰀"}.mdi-alpha-h-circle:before{content:"󰰁"}.mdi-alpha-h-circle-outline:before{content:"󰰂"}.mdi-alpha-i:before{content:"󰫶"}.mdi-alpha-i-box:before{content:"󰬐"}.mdi-alpha-i-box-outline:before{content:"󰰃"}.mdi-alpha-i-circle:before{content:"󰰄"}.mdi-alpha-i-circle-outline:before{content:"󰰅"}.mdi-alpha-j:before{content:"󰫷"}.mdi-alpha-j-box:before{content:"󰬑"}.mdi-alpha-j-box-outline:before{content:"󰰆"}.mdi-alpha-j-circle:before{content:"󰰇"}.mdi-alpha-j-circle-outline:before{content:"󰰈"}.mdi-alpha-k:before{content:"󰫸"}.mdi-alpha-k-box:before{content:"󰬒"}.mdi-alpha-k-box-outline:before{content:"󰰉"}.mdi-alpha-k-circle:before{content:"󰰊"}.mdi-alpha-k-circle-outline:before{content:"󰰋"}.mdi-alpha-l:before{content:"󰫹"}.mdi-alpha-l-box:before{content:"󰬓"}.mdi-alpha-l-box-outline:before{content:"󰰌"}.mdi-alpha-l-circle:before{content:"󰰍"}.mdi-alpha-l-circle-outline:before{content:"󰰎"}.mdi-alpha-m:before{content:"󰫺"}.mdi-alpha-m-box:before{content:"󰬔"}.mdi-alpha-m-box-outline:before{content:"󰰏"}.mdi-alpha-m-circle:before{content:"󰰐"}.mdi-alpha-m-circle-outline:before{content:"󰰑"}.mdi-alpha-n:before{content:"󰫻"}.mdi-alpha-n-box:before{content:"󰬕"}.mdi-alpha-n-box-outline:before{content:"󰰒"}.mdi-alpha-n-circle:before{content:"󰰓"}.mdi-alpha-n-circle-outline:before{content:"󰰔"}.mdi-alpha-o:before{content:"󰫼"}.mdi-alpha-o-box:before{content:"󰬖"}.mdi-alpha-o-box-outline:before{content:"󰰕"}.mdi-alpha-o-circle:before{content:"󰰖"}.mdi-alpha-o-circle-outline:before{content:"󰰗"}.mdi-alpha-p:before{content:"󰫽"}.mdi-alpha-p-box:before{content:"󰬗"}.mdi-alpha-p-box-outline:before{content:"󰰘"}.mdi-alpha-p-circle:before{content:"󰰙"}.mdi-alpha-p-circle-outline:before{content:"󰰚"}.mdi-alpha-q:before{content:"󰫾"}.mdi-alpha-q-box:before{content:"󰬘"}.mdi-alpha-q-box-outline:before{content:"󰰛"}.mdi-alpha-q-circle:before{content:"󰰜"}.mdi-alpha-q-circle-outline:before{content:"󰰝"}.mdi-alpha-r:before{content:"󰫿"}.mdi-alpha-r-box:before{content:"󰬙"}.mdi-alpha-r-box-outline:before{content:"󰰞"}.mdi-alpha-r-circle:before{content:"󰰟"}.mdi-alpha-r-circle-outline:before{content:"󰰠"}.mdi-alpha-s:before{content:"󰬀"}.mdi-alpha-s-box:before{content:"󰬚"}.mdi-alpha-s-box-outline:before{content:"󰰡"}.mdi-alpha-s-circle:before{content:"󰰢"}.mdi-alpha-s-circle-outline:before{content:"󰰣"}.mdi-alpha-t:before{content:"󰬁"}.mdi-alpha-t-box:before{content:"󰬛"}.mdi-alpha-t-box-outline:before{content:"󰰤"}.mdi-alpha-t-circle:before{content:"󰰥"}.mdi-alpha-t-circle-outline:before{content:"󰰦"}.mdi-alpha-u:before{content:"󰬂"}.mdi-alpha-u-box:before{content:"󰬜"}.mdi-alpha-u-box-outline:before{content:"󰰧"}.mdi-alpha-u-circle:before{content:"󰰨"}.mdi-alpha-u-circle-outline:before{content:"󰰩"}.mdi-alpha-v:before{content:"󰬃"}.mdi-alpha-v-box:before{content:"󰬝"}.mdi-alpha-v-box-outline:before{content:"󰰪"}.mdi-alpha-v-circle:before{content:"󰰫"}.mdi-alpha-v-circle-outline:before{content:"󰰬"}.mdi-alpha-w:before{content:"󰬄"}.mdi-alpha-w-box:before{content:"󰬞"}.mdi-alpha-w-box-outline:before{content:"󰰭"}.mdi-alpha-w-circle:before{content:"󰰮"}.mdi-alpha-w-circle-outline:before{content:"󰰯"}.mdi-alpha-x:before{content:"󰬅"}.mdi-alpha-x-box:before{content:"󰬟"}.mdi-alpha-x-box-outline:before{content:"󰰰"}.mdi-alpha-x-circle:before{content:"󰰱"}.mdi-alpha-x-circle-outline:before{content:"󰰲"}.mdi-alpha-y:before{content:"󰬆"}.mdi-alpha-y-box:before{content:"󰬠"}.mdi-alpha-y-box-outline:before{content:"󰰳"}.mdi-alpha-y-circle:before{content:"󰰴"}.mdi-alpha-y-circle-outline:before{content:"󰰵"}.mdi-alpha-z:before{content:"󰬇"}.mdi-alpha-z-box:before{content:"󰬡"}.mdi-alpha-z-box-outline:before{content:"󰰶"}.mdi-alpha-z-circle:before{content:"󰰷"}.mdi-alpha-z-circle-outline:before{content:"󰰸"}.mdi-alphabet-aurebesh:before{content:"󱌬"}.mdi-alphabet-cyrillic:before{content:"󱌭"}.mdi-alphabet-greek:before{content:"󱌮"}.mdi-alphabet-latin:before{content:"󱌯"}.mdi-alphabet-piqad:before{content:"󱌰"}.mdi-alphabet-tengwar:before{content:"󱌷"}.mdi-alphabetical:before{content:"󰀬"}.mdi-alphabetical-off:before{content:"󱀌"}.mdi-alphabetical-variant:before{content:"󱀍"}.mdi-alphabetical-variant-off:before{content:"󱀎"}.mdi-altimeter:before{content:"󰗗"}.mdi-ambulance:before{content:"󰀯"}.mdi-ammunition:before{content:"󰳨"}.mdi-ampersand:before{content:"󰪍"}.mdi-amplifier:before{content:"󰀰"}.mdi-amplifier-off:before{content:"󱆵"}.mdi-anchor:before{content:"󰀱"}.mdi-android:before{content:"󰀲"}.mdi-android-studio:before{content:"󰀴"}.mdi-angle-acute:before{content:"󰤷"}.mdi-angle-obtuse:before{content:"󰤸"}.mdi-angle-right:before{content:"󰤹"}.mdi-angular:before{content:"󰚲"}.mdi-angularjs:before{content:"󰚿"}.mdi-animation:before{content:"󰗘"}.mdi-animation-outline:before{content:"󰪏"}.mdi-animation-play:before{content:"󰤺"}.mdi-animation-play-outline:before{content:"󰪐"}.mdi-ansible:before{content:"󱂚"}.mdi-antenna:before{content:"󱄙"}.mdi-anvil:before{content:"󰢛"}.mdi-apache-kafka:before{content:"󱀏"}.mdi-api:before{content:"󱂛"}.mdi-api-off:before{content:"󱉗"}.mdi-apple:before{content:"󰀵"}.mdi-apple-finder:before{content:"󰀶"}.mdi-apple-icloud:before{content:"󰀸"}.mdi-apple-ios:before{content:"󰀷"}.mdi-apple-keyboard-caps:before{content:"󰘲"}.mdi-apple-keyboard-command:before{content:"󰘳"}.mdi-apple-keyboard-control:before{content:"󰘴"}.mdi-apple-keyboard-option:before{content:"󰘵"}.mdi-apple-keyboard-shift:before{content:"󰘶"}.mdi-apple-safari:before{content:"󰀹"}.mdi-application:before{content:"󰣆"}.mdi-application-array:before{content:"󱃵"}.mdi-application-array-outline:before{content:"󱃶"}.mdi-application-braces:before{content:"󱃷"}.mdi-application-braces-outline:before{content:"󱃸"}.mdi-application-brackets:before{content:"󰲋"}.mdi-application-brackets-outline:before{content:"󰲌"}.mdi-application-cog:before{content:"󰙵"}.mdi-application-cog-outline:before{content:"󱕷"}.mdi-application-edit:before{content:"󰂮"}.mdi-application-edit-outline:before{content:"󰘙"}.mdi-application-export:before{content:"󰶭"}.mdi-application-import:before{content:"󰶮"}.mdi-application-outline:before{content:"󰘔"}.mdi-application-parentheses:before{content:"󱃹"}.mdi-application-parentheses-outline:before{content:"󱃺"}.mdi-application-settings:before{content:"󰭠"}.mdi-application-settings-outline:before{content:"󱕕"}.mdi-application-variable:before{content:"󱃻"}.mdi-application-variable-outline:before{content:"󱃼"}.mdi-approximately-equal:before{content:"󰾞"}.mdi-approximately-equal-box:before{content:"󰾟"}.mdi-apps:before{content:"󰀻"}.mdi-apps-box:before{content:"󰵆"}.mdi-arch:before{content:"󰣇"}.mdi-archive:before{content:"󰀼"}.mdi-archive-alert:before{content:"󱓽"}.mdi-archive-alert-outline:before{content:"󱓾"}.mdi-archive-arrow-down:before{content:"󱉙"}.mdi-archive-arrow-down-outline:before{content:"󱉚"}.mdi-archive-arrow-up:before{content:"󱉛"}.mdi-archive-arrow-up-outline:before{content:"󱉜"}.mdi-archive-cancel:before{content:"󱝋"}.mdi-archive-cancel-outline:before{content:"󱝌"}.mdi-archive-check:before{content:"󱝍"}.mdi-archive-check-outline:before{content:"󱝎"}.mdi-archive-clock:before{content:"󱝏"}.mdi-archive-clock-outline:before{content:"󱝐"}.mdi-archive-cog:before{content:"󱝑"}.mdi-archive-cog-outline:before{content:"󱝒"}.mdi-archive-edit:before{content:"󱝓"}.mdi-archive-edit-outline:before{content:"󱝔"}.mdi-archive-eye:before{content:"󱝕"}.mdi-archive-eye-outline:before{content:"󱝖"}.mdi-archive-lock:before{content:"󱝗"}.mdi-archive-lock-open:before{content:"󱝘"}.mdi-archive-lock-open-outline:before{content:"󱝙"}.mdi-archive-lock-outline:before{content:"󱝚"}.mdi-archive-marker:before{content:"󱝛"}.mdi-archive-marker-outline:before{content:"󱝜"}.mdi-archive-minus:before{content:"󱝝"}.mdi-archive-minus-outline:before{content:"󱝞"}.mdi-archive-music:before{content:"󱝟"}.mdi-archive-music-outline:before{content:"󱝠"}.mdi-archive-off:before{content:"󱝡"}.mdi-archive-off-outline:before{content:"󱝢"}.mdi-archive-outline:before{content:"󱈎"}.mdi-archive-plus:before{content:"󱝣"}.mdi-archive-plus-outline:before{content:"󱝤"}.mdi-archive-refresh:before{content:"󱝥"}.mdi-archive-refresh-outline:before{content:"󱝦"}.mdi-archive-remove:before{content:"󱝧"}.mdi-archive-remove-outline:before{content:"󱝨"}.mdi-archive-search:before{content:"󱝩"}.mdi-archive-search-outline:before{content:"󱝪"}.mdi-archive-settings:before{content:"󱝫"}.mdi-archive-settings-outline:before{content:"󱝬"}.mdi-archive-star:before{content:"󱝭"}.mdi-archive-star-outline:before{content:"󱝮"}.mdi-archive-sync:before{content:"󱝯"}.mdi-archive-sync-outline:before{content:"󱝰"}.mdi-arm-flex:before{content:"󰿗"}.mdi-arm-flex-outline:before{content:"󰿖"}.mdi-arrange-bring-forward:before{content:"󰀽"}.mdi-arrange-bring-to-front:before{content:"󰀾"}.mdi-arrange-send-backward:before{content:"󰀿"}.mdi-arrange-send-to-back:before{content:"󰁀"}.mdi-arrow-all:before{content:"󰁁"}.mdi-arrow-bottom-left:before{content:"󰁂"}.mdi-arrow-bottom-left-bold-box:before{content:"󱥤"}.mdi-arrow-bottom-left-bold-box-outline:before{content:"󱥥"}.mdi-arrow-bottom-left-bold-outline:before{content:"󰦷"}.mdi-arrow-bottom-left-thick:before{content:"󰦸"}.mdi-arrow-bottom-left-thin:before{content:"󱦶"}.mdi-arrow-bottom-left-thin-circle-outline:before{content:"󱖖"}.mdi-arrow-bottom-right:before{content:"󰁃"}.mdi-arrow-bottom-right-bold-box:before{content:"󱥦"}.mdi-arrow-bottom-right-bold-box-outline:before{content:"󱥧"}.mdi-arrow-bottom-right-bold-outline:before{content:"󰦹"}.mdi-arrow-bottom-right-thick:before{content:"󰦺"}.mdi-arrow-bottom-right-thin:before{content:"󱦷"}.mdi-arrow-bottom-right-thin-circle-outline:before{content:"󱖕"}.mdi-arrow-collapse:before{content:"󰘕"}.mdi-arrow-collapse-all:before{content:"󰁄"}.mdi-arrow-collapse-down:before{content:"󰞒"}.mdi-arrow-collapse-horizontal:before{content:"󰡌"}.mdi-arrow-collapse-left:before{content:"󰞓"}.mdi-arrow-collapse-right:before{content:"󰞔"}.mdi-arrow-collapse-up:before{content:"󰞕"}.mdi-arrow-collapse-vertical:before{content:"󰡍"}.mdi-arrow-decision:before{content:"󰦻"}.mdi-arrow-decision-auto:before{content:"󰦼"}.mdi-arrow-decision-auto-outline:before{content:"󰦽"}.mdi-arrow-decision-outline:before{content:"󰦾"}.mdi-arrow-down:before{content:"󰁅"}.mdi-arrow-down-bold:before{content:"󰜮"}.mdi-arrow-down-bold-box:before{content:"󰜯"}.mdi-arrow-down-bold-box-outline:before{content:"󰜰"}.mdi-arrow-down-bold-circle:before{content:"󰁇"}.mdi-arrow-down-bold-circle-outline:before{content:"󰁈"}.mdi-arrow-down-bold-hexagon-outline:before{content:"󰁉"}.mdi-arrow-down-bold-outline:before{content:"󰦿"}.mdi-arrow-down-box:before{content:"󰛀"}.mdi-arrow-down-circle:before{content:"󰳛"}.mdi-arrow-down-circle-outline:before{content:"󰳜"}.mdi-arrow-down-drop-circle:before{content:"󰁊"}.mdi-arrow-down-drop-circle-outline:before{content:"󰁋"}.mdi-arrow-down-left:before{content:"󱞡"}.mdi-arrow-down-left-bold:before{content:"󱞢"}.mdi-arrow-down-right:before{content:"󱞣"}.mdi-arrow-down-right-bold:before{content:"󱞤"}.mdi-arrow-down-thick:before{content:"󰁆"}.mdi-arrow-down-thin:before{content:"󱦳"}.mdi-arrow-down-thin-circle-outline:before{content:"󱖙"}.mdi-arrow-expand:before{content:"󰘖"}.mdi-arrow-expand-all:before{content:"󰁌"}.mdi-arrow-expand-down:before{content:"󰞖"}.mdi-arrow-expand-horizontal:before{content:"󰡎"}.mdi-arrow-expand-left:before{content:"󰞗"}.mdi-arrow-expand-right:before{content:"󰞘"}.mdi-arrow-expand-up:before{content:"󰞙"}.mdi-arrow-expand-vertical:before{content:"󰡏"}.mdi-arrow-horizontal-lock:before{content:"󱅛"}.mdi-arrow-left:before{content:"󰁍"}.mdi-arrow-left-bold:before{content:"󰜱"}.mdi-arrow-left-bold-box:before{content:"󰜲"}.mdi-arrow-left-bold-box-outline:before{content:"󰜳"}.mdi-arrow-left-bold-circle:before{content:"󰁏"}.mdi-arrow-left-bold-circle-outline:before{content:"󰁐"}.mdi-arrow-left-bold-hexagon-outline:before{content:"󰁑"}.mdi-arrow-left-bold-outline:before{content:"󰧀"}.mdi-arrow-left-bottom:before{content:"󱞥"}.mdi-arrow-left-bottom-bold:before{content:"󱞦"}.mdi-arrow-left-box:before{content:"󰛁"}.mdi-arrow-left-circle:before{content:"󰳝"}.mdi-arrow-left-circle-outline:before{content:"󰳞"}.mdi-arrow-left-drop-circle:before{content:"󰁒"}.mdi-arrow-left-drop-circle-outline:before{content:"󰁓"}.mdi-arrow-left-right:before{content:"󰹳"}.mdi-arrow-left-right-bold:before{content:"󰹴"}.mdi-arrow-left-right-bold-outline:before{content:"󰧁"}.mdi-arrow-left-thick:before{content:"󰁎"}.mdi-arrow-left-thin:before{content:"󱦱"}.mdi-arrow-left-thin-circle-outline:before{content:"󱖚"}.mdi-arrow-left-top:before{content:"󱞧"}.mdi-arrow-left-top-bold:before{content:"󱞨"}.mdi-arrow-oscillating:before{content:"󱲑"}.mdi-arrow-oscillating-off:before{content:"󱲒"}.mdi-arrow-projectile:before{content:"󱡀"}.mdi-arrow-projectile-multiple:before{content:"󱠿"}.mdi-arrow-right:before{content:"󰁔"}.mdi-arrow-right-bold:before{content:"󰜴"}.mdi-arrow-right-bold-box:before{content:"󰜵"}.mdi-arrow-right-bold-box-outline:before{content:"󰜶"}.mdi-arrow-right-bold-circle:before{content:"󰁖"}.mdi-arrow-right-bold-circle-outline:before{content:"󰁗"}.mdi-arrow-right-bold-hexagon-outline:before{content:"󰁘"}.mdi-arrow-right-bold-outline:before{content:"󰧂"}.mdi-arrow-right-bottom:before{content:"󱞩"}.mdi-arrow-right-bottom-bold:before{content:"󱞪"}.mdi-arrow-right-box:before{content:"󰛂"}.mdi-arrow-right-circle:before{content:"󰳟"}.mdi-arrow-right-circle-outline:before{content:"󰳠"}.mdi-arrow-right-drop-circle:before{content:"󰁙"}.mdi-arrow-right-drop-circle-outline:before{content:"󰁚"}.mdi-arrow-right-thick:before{content:"󰁕"}.mdi-arrow-right-thin:before{content:"󱦰"}.mdi-arrow-right-thin-circle-outline:before{content:"󱖘"}.mdi-arrow-right-top:before{content:"󱞫"}.mdi-arrow-right-top-bold:before{content:"󱞬"}.mdi-arrow-split-horizontal:before{content:"󰤻"}.mdi-arrow-split-vertical:before{content:"󰤼"}.mdi-arrow-top-left:before{content:"󰁛"}.mdi-arrow-top-left-bold-box:before{content:"󱥨"}.mdi-arrow-top-left-bold-box-outline:before{content:"󱥩"}.mdi-arrow-top-left-bold-outline:before{content:"󰧃"}.mdi-arrow-top-left-bottom-right:before{content:"󰹵"}.mdi-arrow-top-left-bottom-right-bold:before{content:"󰹶"}.mdi-arrow-top-left-thick:before{content:"󰧄"}.mdi-arrow-top-left-thin:before{content:"󱦵"}.mdi-arrow-top-left-thin-circle-outline:before{content:"󱖓"}.mdi-arrow-top-right:before{content:"󰁜"}.mdi-arrow-top-right-bold-box:before{content:"󱥪"}.mdi-arrow-top-right-bold-box-outline:before{content:"󱥫"}.mdi-arrow-top-right-bold-outline:before{content:"󰧅"}.mdi-arrow-top-right-bottom-left:before{content:"󰹷"}.mdi-arrow-top-right-bottom-left-bold:before{content:"󰹸"}.mdi-arrow-top-right-thick:before{content:"󰧆"}.mdi-arrow-top-right-thin:before{content:"󱦴"}.mdi-arrow-top-right-thin-circle-outline:before{content:"󱖔"}.mdi-arrow-u-down-left:before{content:"󱞭"}.mdi-arrow-u-down-left-bold:before{content:"󱞮"}.mdi-arrow-u-down-right:before{content:"󱞯"}.mdi-arrow-u-down-right-bold:before{content:"󱞰"}.mdi-arrow-u-left-bottom:before{content:"󱞱"}.mdi-arrow-u-left-bottom-bold:before{content:"󱞲"}.mdi-arrow-u-left-top:before{content:"󱞳"}.mdi-arrow-u-left-top-bold:before{content:"󱞴"}.mdi-arrow-u-right-bottom:before{content:"󱞵"}.mdi-arrow-u-right-bottom-bold:before{content:"󱞶"}.mdi-arrow-u-right-top:before{content:"󱞷"}.mdi-arrow-u-right-top-bold:before{content:"󱞸"}.mdi-arrow-u-up-left:before{content:"󱞹"}.mdi-arrow-u-up-left-bold:before{content:"󱞺"}.mdi-arrow-u-up-right:before{content:"󱞻"}.mdi-arrow-u-up-right-bold:before{content:"󱞼"}.mdi-arrow-up:before{content:"󰁝"}.mdi-arrow-up-bold:before{content:"󰜷"}.mdi-arrow-up-bold-box:before{content:"󰜸"}.mdi-arrow-up-bold-box-outline:before{content:"󰜹"}.mdi-arrow-up-bold-circle:before{content:"󰁟"}.mdi-arrow-up-bold-circle-outline:before{content:"󰁠"}.mdi-arrow-up-bold-hexagon-outline:before{content:"󰁡"}.mdi-arrow-up-bold-outline:before{content:"󰧇"}.mdi-arrow-up-box:before{content:"󰛃"}.mdi-arrow-up-circle:before{content:"󰳡"}.mdi-arrow-up-circle-outline:before{content:"󰳢"}.mdi-arrow-up-down:before{content:"󰹹"}.mdi-arrow-up-down-bold:before{content:"󰹺"}.mdi-arrow-up-down-bold-outline:before{content:"󰧈"}.mdi-arrow-up-drop-circle:before{content:"󰁢"}.mdi-arrow-up-drop-circle-outline:before{content:"󰁣"}.mdi-arrow-up-left:before{content:"󱞽"}.mdi-arrow-up-left-bold:before{content:"󱞾"}.mdi-arrow-up-right:before{content:"󱞿"}.mdi-arrow-up-right-bold:before{content:"󱟀"}.mdi-arrow-up-thick:before{content:"󰁞"}.mdi-arrow-up-thin:before{content:"󱦲"}.mdi-arrow-up-thin-circle-outline:before{content:"󱖗"}.mdi-arrow-vertical-lock:before{content:"󱅜"}.mdi-artboard:before{content:"󱮚"}.mdi-artstation:before{content:"󰭛"}.mdi-aspect-ratio:before{content:"󰨤"}.mdi-assistant:before{content:"󰁤"}.mdi-asterisk:before{content:"󰛄"}.mdi-asterisk-circle-outline:before{content:"󱨧"}.mdi-at:before{content:"󰁥"}.mdi-atlassian:before{content:"󰠄"}.mdi-atm:before{content:"󰵇"}.mdi-atom:before{content:"󰝨"}.mdi-atom-variant:before{content:"󰹻"}.mdi-attachment:before{content:"󰁦"}.mdi-attachment-check:before{content:"󱫁"}.mdi-attachment-lock:before{content:"󱧄"}.mdi-attachment-minus:before{content:"󱫂"}.mdi-attachment-off:before{content:"󱫃"}.mdi-attachment-plus:before{content:"󱫄"}.mdi-attachment-remove:before{content:"󱫅"}.mdi-atv:before{content:"󱭰"}.mdi-audio-input-rca:before{content:"󱡫"}.mdi-audio-input-stereo-minijack:before{content:"󱡬"}.mdi-audio-input-xlr:before{content:"󱡭"}.mdi-audio-video:before{content:"󰤽"}.mdi-audio-video-off:before{content:"󱆶"}.mdi-augmented-reality:before{content:"󰡐"}.mdi-aurora:before{content:"󱮹"}.mdi-auto-download:before{content:"󱍾"}.mdi-auto-fix:before{content:"󰁨"}.mdi-auto-mode:before{content:"󱰠"}.mdi-auto-upload:before{content:"󰁩"}.mdi-autorenew:before{content:"󰁪"}.mdi-autorenew-off:before{content:"󱧧"}.mdi-av-timer:before{content:"󰁫"}.mdi-awning:before{content:"󱮇"}.mdi-awning-outline:before{content:"󱮈"}.mdi-aws:before{content:"󰸏"}.mdi-axe:before{content:"󰣈"}.mdi-axe-battle:before{content:"󱡂"}.mdi-axis:before{content:"󰵈"}.mdi-axis-arrow:before{content:"󰵉"}.mdi-axis-arrow-info:before{content:"󱐎"}.mdi-axis-arrow-lock:before{content:"󰵊"}.mdi-axis-lock:before{content:"󰵋"}.mdi-axis-x-arrow:before{content:"󰵌"}.mdi-axis-x-arrow-lock:before{content:"󰵍"}.mdi-axis-x-rotate-clockwise:before{content:"󰵎"}.mdi-axis-x-rotate-counterclockwise:before{content:"󰵏"}.mdi-axis-x-y-arrow-lock:before{content:"󰵐"}.mdi-axis-y-arrow:before{content:"󰵑"}.mdi-axis-y-arrow-lock:before{content:"󰵒"}.mdi-axis-y-rotate-clockwise:before{content:"󰵓"}.mdi-axis-y-rotate-counterclockwise:before{content:"󰵔"}.mdi-axis-z-arrow:before{content:"󰵕"}.mdi-axis-z-arrow-lock:before{content:"󰵖"}.mdi-axis-z-rotate-clockwise:before{content:"󰵗"}.mdi-axis-z-rotate-counterclockwise:before{content:"󰵘"}.mdi-babel:before{content:"󰨥"}.mdi-baby:before{content:"󰁬"}.mdi-baby-bottle:before{content:"󰼹"}.mdi-baby-bottle-outline:before{content:"󰼺"}.mdi-baby-buggy:before{content:"󱏠"}.mdi-baby-buggy-off:before{content:"󱫳"}.mdi-baby-carriage:before{content:"󰚏"}.mdi-baby-carriage-off:before{content:"󰾠"}.mdi-baby-face:before{content:"󰹼"}.mdi-baby-face-outline:before{content:"󰹽"}.mdi-backburger:before{content:"󰁭"}.mdi-backspace:before{content:"󰁮"}.mdi-backspace-outline:before{content:"󰭜"}.mdi-backspace-reverse:before{content:"󰹾"}.mdi-backspace-reverse-outline:before{content:"󰹿"}.mdi-backup-restore:before{content:"󰁯"}.mdi-bacteria:before{content:"󰻕"}.mdi-bacteria-outline:before{content:"󰻖"}.mdi-badge-account:before{content:"󰶧"}.mdi-badge-account-alert:before{content:"󰶨"}.mdi-badge-account-alert-outline:before{content:"󰶩"}.mdi-badge-account-horizontal:before{content:"󰸍"}.mdi-badge-account-horizontal-outline:before{content:"󰸎"}.mdi-badge-account-outline:before{content:"󰶪"}.mdi-badminton:before{content:"󰡑"}.mdi-bag-carry-on:before{content:"󰼻"}.mdi-bag-carry-on-check:before{content:"󰵥"}.mdi-bag-carry-on-off:before{content:"󰼼"}.mdi-bag-checked:before{content:"󰼽"}.mdi-bag-personal:before{content:"󰸐"}.mdi-bag-personal-off:before{content:"󰸑"}.mdi-bag-personal-off-outline:before{content:"󰸒"}.mdi-bag-personal-outline:before{content:"󰸓"}.mdi-bag-personal-plus:before{content:"󱲤"}.mdi-bag-personal-plus-outline:before{content:"󱲥"}.mdi-bag-personal-tag:before{content:"󱬌"}.mdi-bag-personal-tag-outline:before{content:"󱬍"}.mdi-bag-suitcase:before{content:"󱖋"}.mdi-bag-suitcase-off:before{content:"󱖍"}.mdi-bag-suitcase-off-outline:before{content:"󱖎"}.mdi-bag-suitcase-outline:before{content:"󱖌"}.mdi-baguette:before{content:"󰼾"}.mdi-balcony:before{content:"󱠗"}.mdi-balloon:before{content:"󰨦"}.mdi-ballot:before{content:"󰧉"}.mdi-ballot-outline:before{content:"󰧊"}.mdi-ballot-recount:before{content:"󰰹"}.mdi-ballot-recount-outline:before{content:"󰰺"}.mdi-bandage:before{content:"󰶯"}.mdi-bank:before{content:"󰁰"}.mdi-bank-check:before{content:"󱙕"}.mdi-bank-circle:before{content:"󱰃"}.mdi-bank-circle-outline:before{content:"󱰄"}.mdi-bank-minus:before{content:"󰶰"}.mdi-bank-off:before{content:"󱙖"}.mdi-bank-off-outline:before{content:"󱙗"}.mdi-bank-outline:before{content:"󰺀"}.mdi-bank-plus:before{content:"󰶱"}.mdi-bank-remove:before{content:"󰶲"}.mdi-bank-transfer:before{content:"󰨧"}.mdi-bank-transfer-in:before{content:"󰨨"}.mdi-bank-transfer-out:before{content:"󰨩"}.mdi-barcode:before{content:"󰁱"}.mdi-barcode-off:before{content:"󱈶"}.mdi-barcode-scan:before{content:"󰁲"}.mdi-barley:before{content:"󰁳"}.mdi-barley-off:before{content:"󰭝"}.mdi-barn:before{content:"󰭞"}.mdi-barrel:before{content:"󰁴"}.mdi-barrel-outline:before{content:"󱨨"}.mdi-baseball:before{content:"󰡒"}.mdi-baseball-bat:before{content:"󰡓"}.mdi-baseball-diamond:before{content:"󱗬"}.mdi-baseball-diamond-outline:before{content:"󱗭"}.mdi-baseball-outline:before{content:"󱱚"}.mdi-bash:before{content:"󱆃"}.mdi-basket:before{content:"󰁶"}.mdi-basket-check:before{content:"󱣥"}.mdi-basket-check-outline:before{content:"󱣦"}.mdi-basket-fill:before{content:"󰁷"}.mdi-basket-minus:before{content:"󱔣"}.mdi-basket-minus-outline:before{content:"󱔤"}.mdi-basket-off:before{content:"󱔥"}.mdi-basket-off-outline:before{content:"󱔦"}.mdi-basket-outline:before{content:"󱆁"}.mdi-basket-plus:before{content:"󱔧"}.mdi-basket-plus-outline:before{content:"󱔨"}.mdi-basket-remove:before{content:"󱔩"}.mdi-basket-remove-outline:before{content:"󱔪"}.mdi-basket-unfill:before{content:"󰁸"}.mdi-basketball:before{content:"󰠆"}.mdi-basketball-hoop:before{content:"󰰻"}.mdi-basketball-hoop-outline:before{content:"󰰼"}.mdi-bat:before{content:"󰭟"}.mdi-bathtub:before{content:"󱠘"}.mdi-bathtub-outline:before{content:"󱠙"}.mdi-battery:before{content:"󰁹"}.mdi-battery-10:before{content:"󰁺"}.mdi-battery-10-bluetooth:before{content:"󰤾"}.mdi-battery-20:before{content:"󰁻"}.mdi-battery-20-bluetooth:before{content:"󰤿"}.mdi-battery-30:before{content:"󰁼"}.mdi-battery-30-bluetooth:before{content:"󰥀"}.mdi-battery-40:before{content:"󰁽"}.mdi-battery-40-bluetooth:before{content:"󰥁"}.mdi-battery-50:before{content:"󰁾"}.mdi-battery-50-bluetooth:before{content:"󰥂"}.mdi-battery-60:before{content:"󰁿"}.mdi-battery-60-bluetooth:before{content:"󰥃"}.mdi-battery-70:before{content:"󰂀"}.mdi-battery-70-bluetooth:before{content:"󰥄"}.mdi-battery-80:before{content:"󰂁"}.mdi-battery-80-bluetooth:before{content:"󰥅"}.mdi-battery-90:before{content:"󰂂"}.mdi-battery-90-bluetooth:before{content:"󰥆"}.mdi-battery-alert:before{content:"󰂃"}.mdi-battery-alert-bluetooth:before{content:"󰥇"}.mdi-battery-alert-variant:before{content:"󱃌"}.mdi-battery-alert-variant-outline:before{content:"󱃍"}.mdi-battery-arrow-down:before{content:"󱟞"}.mdi-battery-arrow-down-outline:before{content:"󱟟"}.mdi-battery-arrow-up:before{content:"󱟠"}.mdi-battery-arrow-up-outline:before{content:"󱟡"}.mdi-battery-bluetooth:before{content:"󰥈"}.mdi-battery-bluetooth-variant:before{content:"󰥉"}.mdi-battery-charging:before{content:"󰂄"}.mdi-battery-charging-10:before{content:"󰢜"}.mdi-battery-charging-100:before{content:"󰂅"}.mdi-battery-charging-20:before{content:"󰂆"}.mdi-battery-charging-30:before{content:"󰂇"}.mdi-battery-charging-40:before{content:"󰂈"}.mdi-battery-charging-50:before{content:"󰢝"}.mdi-battery-charging-60:before{content:"󰂉"}.mdi-battery-charging-70:before{content:"󰢞"}.mdi-battery-charging-80:before{content:"󰂊"}.mdi-battery-charging-90:before{content:"󰂋"}.mdi-battery-charging-high:before{content:"󱊦"}.mdi-battery-charging-low:before{content:"󱊤"}.mdi-battery-charging-medium:before{content:"󱊥"}.mdi-battery-charging-outline:before{content:"󰢟"}.mdi-battery-charging-wireless:before{content:"󰠇"}.mdi-battery-charging-wireless-10:before{content:"󰠈"}.mdi-battery-charging-wireless-20:before{content:"󰠉"}.mdi-battery-charging-wireless-30:before{content:"󰠊"}.mdi-battery-charging-wireless-40:before{content:"󰠋"}.mdi-battery-charging-wireless-50:before{content:"󰠌"}.mdi-battery-charging-wireless-60:before{content:"󰠍"}.mdi-battery-charging-wireless-70:before{content:"󰠎"}.mdi-battery-charging-wireless-80:before{content:"󰠏"}.mdi-battery-charging-wireless-90:before{content:"󰠐"}.mdi-battery-charging-wireless-alert:before{content:"󰠑"}.mdi-battery-charging-wireless-outline:before{content:"󰠒"}.mdi-battery-check:before{content:"󱟢"}.mdi-battery-check-outline:before{content:"󱟣"}.mdi-battery-clock:before{content:"󱧥"}.mdi-battery-clock-outline:before{content:"󱧦"}.mdi-battery-heart:before{content:"󱈏"}.mdi-battery-heart-outline:before{content:"󱈐"}.mdi-battery-heart-variant:before{content:"󱈑"}.mdi-battery-high:before{content:"󱊣"}.mdi-battery-lock:before{content:"󱞜"}.mdi-battery-lock-open:before{content:"󱞝"}.mdi-battery-low:before{content:"󱊡"}.mdi-battery-medium:before{content:"󱊢"}.mdi-battery-minus:before{content:"󱟤"}.mdi-battery-minus-outline:before{content:"󱟥"}.mdi-battery-minus-variant:before{content:"󰂌"}.mdi-battery-negative:before{content:"󰂍"}.mdi-battery-off:before{content:"󱉝"}.mdi-battery-off-outline:before{content:"󱉞"}.mdi-battery-outline:before{content:"󰂎"}.mdi-battery-plus:before{content:"󱟦"}.mdi-battery-plus-outline:before{content:"󱟧"}.mdi-battery-plus-variant:before{content:"󰂏"}.mdi-battery-positive:before{content:"󰂐"}.mdi-battery-remove:before{content:"󱟨"}.mdi-battery-remove-outline:before{content:"󱟩"}.mdi-battery-sync:before{content:"󱠴"}.mdi-battery-sync-outline:before{content:"󱠵"}.mdi-battery-unknown:before{content:"󰂑"}.mdi-battery-unknown-bluetooth:before{content:"󰥊"}.mdi-beach:before{content:"󰂒"}.mdi-beaker:before{content:"󰳪"}.mdi-beaker-alert:before{content:"󱈩"}.mdi-beaker-alert-outline:before{content:"󱈪"}.mdi-beaker-check:before{content:"󱈫"}.mdi-beaker-check-outline:before{content:"󱈬"}.mdi-beaker-minus:before{content:"󱈭"}.mdi-beaker-minus-outline:before{content:"󱈮"}.mdi-beaker-outline:before{content:"󰚐"}.mdi-beaker-plus:before{content:"󱈯"}.mdi-beaker-plus-outline:before{content:"󱈰"}.mdi-beaker-question:before{content:"󱈱"}.mdi-beaker-question-outline:before{content:"󱈲"}.mdi-beaker-remove:before{content:"󱈳"}.mdi-beaker-remove-outline:before{content:"󱈴"}.mdi-bed:before{content:"󰋣"}.mdi-bed-clock:before{content:"󱮔"}.mdi-bed-double:before{content:"󰿔"}.mdi-bed-double-outline:before{content:"󰿓"}.mdi-bed-empty:before{content:"󰢠"}.mdi-bed-king:before{content:"󰿒"}.mdi-bed-king-outline:before{content:"󰿑"}.mdi-bed-outline:before{content:"󰂙"}.mdi-bed-queen:before{content:"󰿐"}.mdi-bed-queen-outline:before{content:"󰿛"}.mdi-bed-single:before{content:"󱁭"}.mdi-bed-single-outline:before{content:"󱁮"}.mdi-bee:before{content:"󰾡"}.mdi-bee-flower:before{content:"󰾢"}.mdi-beehive-off-outline:before{content:"󱏭"}.mdi-beehive-outline:before{content:"󱃎"}.mdi-beekeeper:before{content:"󱓢"}.mdi-beer:before{content:"󰂘"}.mdi-beer-outline:before{content:"󱌌"}.mdi-bell:before{content:"󰂚"}.mdi-bell-alert:before{content:"󰵙"}.mdi-bell-alert-outline:before{content:"󰺁"}.mdi-bell-badge:before{content:"󱅫"}.mdi-bell-badge-outline:before{content:"󰅸"}.mdi-bell-cancel:before{content:"󱏧"}.mdi-bell-cancel-outline:before{content:"󱏨"}.mdi-bell-check:before{content:"󱇥"}.mdi-bell-check-outline:before{content:"󱇦"}.mdi-bell-circle:before{content:"󰵚"}.mdi-bell-circle-outline:before{content:"󰵛"}.mdi-bell-cog:before{content:"󱨩"}.mdi-bell-cog-outline:before{content:"󱨪"}.mdi-bell-minus:before{content:"󱏩"}.mdi-bell-minus-outline:before{content:"󱏪"}.mdi-bell-off:before{content:"󰂛"}.mdi-bell-off-outline:before{content:"󰪑"}.mdi-bell-outline:before{content:"󰂜"}.mdi-bell-plus:before{content:"󰂝"}.mdi-bell-plus-outline:before{content:"󰪒"}.mdi-bell-remove:before{content:"󱏫"}.mdi-bell-remove-outline:before{content:"󱏬"}.mdi-bell-ring:before{content:"󰂞"}.mdi-bell-ring-outline:before{content:"󰂟"}.mdi-bell-sleep:before{content:"󰂠"}.mdi-bell-sleep-outline:before{content:"󰪓"}.mdi-bench:before{content:"󱰡"}.mdi-bench-back:before{content:"󱰢"}.mdi-beta:before{content:"󰂡"}.mdi-betamax:before{content:"󰧋"}.mdi-biathlon:before{content:"󰸔"}.mdi-bicycle:before{content:"󱂜"}.mdi-bicycle-basket:before{content:"󱈵"}.mdi-bicycle-cargo:before{content:"󱢜"}.mdi-bicycle-electric:before{content:"󱖴"}.mdi-bicycle-penny-farthing:before{content:"󱗩"}.mdi-bike:before{content:"󰂣"}.mdi-bike-fast:before{content:"󱄟"}.mdi-bike-pedal:before{content:"󱰣"}.mdi-bike-pedal-clipless:before{content:"󱰤"}.mdi-bike-pedal-mountain:before{content:"󱰥"}.mdi-billboard:before{content:"󱀐"}.mdi-billiards:before{content:"󰭡"}.mdi-billiards-rack:before{content:"󰭢"}.mdi-binoculars:before{content:"󰂥"}.mdi-bio:before{content:"󰂦"}.mdi-biohazard:before{content:"󰂧"}.mdi-bird:before{content:"󱗆"}.mdi-bitbucket:before{content:"󰂨"}.mdi-bitcoin:before{content:"󰠓"}.mdi-black-mesa:before{content:"󰂩"}.mdi-blender:before{content:"󰳫"}.mdi-blender-outline:before{content:"󱠚"}.mdi-blender-software:before{content:"󰂫"}.mdi-blinds:before{content:"󰂬"}.mdi-blinds-horizontal:before{content:"󱨫"}.mdi-blinds-horizontal-closed:before{content:"󱨬"}.mdi-blinds-open:before{content:"󱀑"}.mdi-blinds-vertical:before{content:"󱨭"}.mdi-blinds-vertical-closed:before{content:"󱨮"}.mdi-block-helper:before{content:"󰂭"}.mdi-blood-bag:before{content:"󰳬"}.mdi-bluetooth:before{content:"󰂯"}.mdi-bluetooth-audio:before{content:"󰂰"}.mdi-bluetooth-connect:before{content:"󰂱"}.mdi-bluetooth-off:before{content:"󰂲"}.mdi-bluetooth-settings:before{content:"󰂳"}.mdi-bluetooth-transfer:before{content:"󰂴"}.mdi-blur:before{content:"󰂵"}.mdi-blur-linear:before{content:"󰂶"}.mdi-blur-off:before{content:"󰂷"}.mdi-blur-radial:before{content:"󰂸"}.mdi-bolt:before{content:"󰶳"}.mdi-bomb:before{content:"󰚑"}.mdi-bomb-off:before{content:"󰛅"}.mdi-bone:before{content:"󰂹"}.mdi-bone-off:before{content:"󱧠"}.mdi-book:before{content:"󰂺"}.mdi-book-account:before{content:"󱎭"}.mdi-book-account-outline:before{content:"󱎮"}.mdi-book-alert:before{content:"󱙼"}.mdi-book-alert-outline:before{content:"󱙽"}.mdi-book-alphabet:before{content:"󰘝"}.mdi-book-arrow-down:before{content:"󱙾"}.mdi-book-arrow-down-outline:before{content:"󱙿"}.mdi-book-arrow-left:before{content:"󱚀"}.mdi-book-arrow-left-outline:before{content:"󱚁"}.mdi-book-arrow-right:before{content:"󱚂"}.mdi-book-arrow-right-outline:before{content:"󱚃"}.mdi-book-arrow-up:before{content:"󱚄"}.mdi-book-arrow-up-outline:before{content:"󱚅"}.mdi-book-cancel:before{content:"󱚆"}.mdi-book-cancel-outline:before{content:"󱚇"}.mdi-book-check:before{content:"󱓳"}.mdi-book-check-outline:before{content:"󱓴"}.mdi-book-clock:before{content:"󱚈"}.mdi-book-clock-outline:before{content:"󱚉"}.mdi-book-cog:before{content:"󱚊"}.mdi-book-cog-outline:before{content:"󱚋"}.mdi-book-cross:before{content:"󰂢"}.mdi-book-edit:before{content:"󱚌"}.mdi-book-edit-outline:before{content:"󱚍"}.mdi-book-education:before{content:"󱛉"}.mdi-book-education-outline:before{content:"󱛊"}.mdi-book-heart:before{content:"󱨝"}.mdi-book-heart-outline:before{content:"󱨞"}.mdi-book-information-variant:before{content:"󱁯"}.mdi-book-lock:before{content:"󰞚"}.mdi-book-lock-open:before{content:"󰞛"}.mdi-book-lock-open-outline:before{content:"󱚎"}.mdi-book-lock-outline:before{content:"󱚏"}.mdi-book-marker:before{content:"󱚐"}.mdi-book-marker-outline:before{content:"󱚑"}.mdi-book-minus:before{content:"󰗙"}.mdi-book-minus-multiple:before{content:"󰪔"}.mdi-book-minus-multiple-outline:before{content:"󰤋"}.mdi-book-minus-outline:before{content:"󱚒"}.mdi-book-multiple:before{content:"󰂻"}.mdi-book-multiple-outline:before{content:"󰐶"}.mdi-book-music:before{content:"󰁧"}.mdi-book-music-outline:before{content:"󱚓"}.mdi-book-off:before{content:"󱚔"}.mdi-book-off-outline:before{content:"󱚕"}.mdi-book-open:before{content:"󰂽"}.mdi-book-open-blank-variant:before{content:"󰂾"}.mdi-book-open-outline:before{content:"󰭣"}.mdi-book-open-page-variant:before{content:"󰗚"}.mdi-book-open-page-variant-outline:before{content:"󱗖"}.mdi-book-open-variant:before{content:"󱓷"}.mdi-book-outline:before{content:"󰭤"}.mdi-book-play:before{content:"󰺂"}.mdi-book-play-outline:before{content:"󰺃"}.mdi-book-plus:before{content:"󰗛"}.mdi-book-plus-multiple:before{content:"󰪕"}.mdi-book-plus-multiple-outline:before{content:"󰫞"}.mdi-book-plus-outline:before{content:"󱚖"}.mdi-book-refresh:before{content:"󱚗"}.mdi-book-refresh-outline:before{content:"󱚘"}.mdi-book-remove:before{content:"󰪗"}.mdi-book-remove-multiple:before{content:"󰪖"}.mdi-book-remove-multiple-outline:before{content:"󰓊"}.mdi-book-remove-outline:before{content:"󱚙"}.mdi-book-search:before{content:"󰺄"}.mdi-book-search-outline:before{content:"󰺅"}.mdi-book-settings:before{content:"󱚚"}.mdi-book-settings-outline:before{content:"󱚛"}.mdi-book-sync:before{content:"󱚜"}.mdi-book-sync-outline:before{content:"󱛈"}.mdi-book-variant:before{content:"󰂿"}.mdi-bookmark:before{content:"󰃀"}.mdi-bookmark-box:before{content:"󱭵"}.mdi-bookmark-box-multiple:before{content:"󱥬"}.mdi-bookmark-box-multiple-outline:before{content:"󱥭"}.mdi-bookmark-box-outline:before{content:"󱭶"}.mdi-bookmark-check:before{content:"󰃁"}.mdi-bookmark-check-outline:before{content:"󱍻"}.mdi-bookmark-minus:before{content:"󰧌"}.mdi-bookmark-minus-outline:before{content:"󰧍"}.mdi-bookmark-multiple:before{content:"󰸕"}.mdi-bookmark-multiple-outline:before{content:"󰸖"}.mdi-bookmark-music:before{content:"󰃂"}.mdi-bookmark-music-outline:before{content:"󱍹"}.mdi-bookmark-off:before{content:"󰧎"}.mdi-bookmark-off-outline:before{content:"󰧏"}.mdi-bookmark-outline:before{content:"󰃃"}.mdi-bookmark-plus:before{content:"󰃅"}.mdi-bookmark-plus-outline:before{content:"󰃄"}.mdi-bookmark-remove:before{content:"󰃆"}.mdi-bookmark-remove-outline:before{content:"󱍺"}.mdi-bookshelf:before{content:"󱉟"}.mdi-boom-gate:before{content:"󰺆"}.mdi-boom-gate-alert:before{content:"󰺇"}.mdi-boom-gate-alert-outline:before{content:"󰺈"}.mdi-boom-gate-arrow-down:before{content:"󰺉"}.mdi-boom-gate-arrow-down-outline:before{content:"󰺊"}.mdi-boom-gate-arrow-up:before{content:"󰺌"}.mdi-boom-gate-arrow-up-outline:before{content:"󰺍"}.mdi-boom-gate-outline:before{content:"󰺋"}.mdi-boom-gate-up:before{content:"󱟹"}.mdi-boom-gate-up-outline:before{content:"󱟺"}.mdi-boombox:before{content:"󰗜"}.mdi-boomerang:before{content:"󱃏"}.mdi-bootstrap:before{content:"󰛆"}.mdi-border-all:before{content:"󰃇"}.mdi-border-all-variant:before{content:"󰢡"}.mdi-border-bottom:before{content:"󰃈"}.mdi-border-bottom-variant:before{content:"󰢢"}.mdi-border-color:before{content:"󰃉"}.mdi-border-horizontal:before{content:"󰃊"}.mdi-border-inside:before{content:"󰃋"}.mdi-border-left:before{content:"󰃌"}.mdi-border-left-variant:before{content:"󰢣"}.mdi-border-none:before{content:"󰃍"}.mdi-border-none-variant:before{content:"󰢤"}.mdi-border-outside:before{content:"󰃎"}.mdi-border-radius:before{content:"󱫴"}.mdi-border-right:before{content:"󰃏"}.mdi-border-right-variant:before{content:"󰢥"}.mdi-border-style:before{content:"󰃐"}.mdi-border-top:before{content:"󰃑"}.mdi-border-top-variant:before{content:"󰢦"}.mdi-border-vertical:before{content:"󰃒"}.mdi-bottle-soda:before{content:"󱁰"}.mdi-bottle-soda-classic:before{content:"󱁱"}.mdi-bottle-soda-classic-outline:before{content:"󱍣"}.mdi-bottle-soda-outline:before{content:"󱁲"}.mdi-bottle-tonic:before{content:"󱄮"}.mdi-bottle-tonic-outline:before{content:"󱄯"}.mdi-bottle-tonic-plus:before{content:"󱄰"}.mdi-bottle-tonic-plus-outline:before{content:"󱄱"}.mdi-bottle-tonic-skull:before{content:"󱄲"}.mdi-bottle-tonic-skull-outline:before{content:"󱄳"}.mdi-bottle-wine:before{content:"󰡔"}.mdi-bottle-wine-outline:before{content:"󱌐"}.mdi-bow-arrow:before{content:"󱡁"}.mdi-bow-tie:before{content:"󰙸"}.mdi-bowl:before{content:"󰊎"}.mdi-bowl-mix:before{content:"󰘗"}.mdi-bowl-mix-outline:before{content:"󰋤"}.mdi-bowl-outline:before{content:"󰊩"}.mdi-bowling:before{content:"󰃓"}.mdi-box:before{content:"󰃔"}.mdi-box-cutter:before{content:"󰃕"}.mdi-box-cutter-off:before{content:"󰭊"}.mdi-box-shadow:before{content:"󰘷"}.mdi-boxing-glove:before{content:"󰭥"}.mdi-braille:before{content:"󰧐"}.mdi-brain:before{content:"󰧑"}.mdi-bread-slice:before{content:"󰳮"}.mdi-bread-slice-outline:before{content:"󰳯"}.mdi-bridge:before{content:"󰘘"}.mdi-briefcase:before{content:"󰃖"}.mdi-briefcase-account:before{content:"󰳰"}.mdi-briefcase-account-outline:before{content:"󰳱"}.mdi-briefcase-arrow-left-right:before{content:"󱪍"}.mdi-briefcase-arrow-left-right-outline:before{content:"󱪎"}.mdi-briefcase-arrow-up-down:before{content:"󱪏"}.mdi-briefcase-arrow-up-down-outline:before{content:"󱪐"}.mdi-briefcase-check:before{content:"󰃗"}.mdi-briefcase-check-outline:before{content:"󱌞"}.mdi-briefcase-clock:before{content:"󱃐"}.mdi-briefcase-clock-outline:before{content:"󱃑"}.mdi-briefcase-download:before{content:"󰃘"}.mdi-briefcase-download-outline:before{content:"󰰽"}.mdi-briefcase-edit:before{content:"󰪘"}.mdi-briefcase-edit-outline:before{content:"󰰾"}.mdi-briefcase-eye:before{content:"󱟙"}.mdi-briefcase-eye-outline:before{content:"󱟚"}.mdi-briefcase-minus:before{content:"󰨪"}.mdi-briefcase-minus-outline:before{content:"󰰿"}.mdi-briefcase-off:before{content:"󱙘"}.mdi-briefcase-off-outline:before{content:"󱙙"}.mdi-briefcase-outline:before{content:"󰠔"}.mdi-briefcase-plus:before{content:"󰨫"}.mdi-briefcase-plus-outline:before{content:"󰱀"}.mdi-briefcase-remove:before{content:"󰨬"}.mdi-briefcase-remove-outline:before{content:"󰱁"}.mdi-briefcase-search:before{content:"󰨭"}.mdi-briefcase-search-outline:before{content:"󰱂"}.mdi-briefcase-upload:before{content:"󰃙"}.mdi-briefcase-upload-outline:before{content:"󰱃"}.mdi-briefcase-variant:before{content:"󱒔"}.mdi-briefcase-variant-off:before{content:"󱙚"}.mdi-briefcase-variant-off-outline:before{content:"󱙛"}.mdi-briefcase-variant-outline:before{content:"󱒕"}.mdi-brightness-1:before{content:"󰃚"}.mdi-brightness-2:before{content:"󰃛"}.mdi-brightness-3:before{content:"󰃜"}.mdi-brightness-4:before{content:"󰃝"}.mdi-brightness-5:before{content:"󰃞"}.mdi-brightness-6:before{content:"󰃟"}.mdi-brightness-7:before{content:"󰃠"}.mdi-brightness-auto:before{content:"󰃡"}.mdi-brightness-percent:before{content:"󰳲"}.mdi-broadcast:before{content:"󱜠"}.mdi-broadcast-off:before{content:"󱜡"}.mdi-broom:before{content:"󰃢"}.mdi-brush:before{content:"󰃣"}.mdi-brush-off:before{content:"󱝱"}.mdi-brush-outline:before{content:"󱨍"}.mdi-brush-variant:before{content:"󱠓"}.mdi-bucket:before{content:"󱐕"}.mdi-bucket-outline:before{content:"󱐖"}.mdi-buffet:before{content:"󰕸"}.mdi-bug:before{content:"󰃤"}.mdi-bug-check:before{content:"󰨮"}.mdi-bug-check-outline:before{content:"󰨯"}.mdi-bug-outline:before{content:"󰨰"}.mdi-bug-pause:before{content:"󱫵"}.mdi-bug-pause-outline:before{content:"󱫶"}.mdi-bug-play:before{content:"󱫷"}.mdi-bug-play-outline:before{content:"󱫸"}.mdi-bug-stop:before{content:"󱫹"}.mdi-bug-stop-outline:before{content:"󱫺"}.mdi-bugle:before{content:"󰶴"}.mdi-bulkhead-light:before{content:"󱨯"}.mdi-bulldozer:before{content:"󰬢"}.mdi-bullet:before{content:"󰳳"}.mdi-bulletin-board:before{content:"󰃥"}.mdi-bullhorn:before{content:"󰃦"}.mdi-bullhorn-outline:before{content:"󰬣"}.mdi-bullhorn-variant:before{content:"󱥮"}.mdi-bullhorn-variant-outline:before{content:"󱥯"}.mdi-bullseye:before{content:"󰗝"}.mdi-bullseye-arrow:before{content:"󰣉"}.mdi-bulma:before{content:"󱋧"}.mdi-bunk-bed:before{content:"󱌂"}.mdi-bunk-bed-outline:before{content:"󰂗"}.mdi-bus:before{content:"󰃧"}.mdi-bus-alert:before{content:"󰪙"}.mdi-bus-articulated-end:before{content:"󰞜"}.mdi-bus-articulated-front:before{content:"󰞝"}.mdi-bus-clock:before{content:"󰣊"}.mdi-bus-double-decker:before{content:"󰞞"}.mdi-bus-electric:before{content:"󱤝"}.mdi-bus-marker:before{content:"󱈒"}.mdi-bus-multiple:before{content:"󰼿"}.mdi-bus-school:before{content:"󰞟"}.mdi-bus-side:before{content:"󰞠"}.mdi-bus-sign:before{content:"󱳁"}.mdi-bus-stop:before{content:"󱀒"}.mdi-bus-stop-covered:before{content:"󱀓"}.mdi-bus-stop-uncovered:before{content:"󱀔"}.mdi-bus-wrench:before{content:"󱳂"}.mdi-butterfly:before{content:"󱖉"}.mdi-butterfly-outline:before{content:"󱖊"}.mdi-button-cursor:before{content:"󱭏"}.mdi-button-pointer:before{content:"󱭐"}.mdi-cabin-a-frame:before{content:"󱢌"}.mdi-cable-data:before{content:"󱎔"}.mdi-cached:before{content:"󰃨"}.mdi-cactus:before{content:"󰶵"}.mdi-cake:before{content:"󰃩"}.mdi-cake-layered:before{content:"󰃪"}.mdi-cake-variant:before{content:"󰃫"}.mdi-cake-variant-outline:before{content:"󱟰"}.mdi-calculator:before{content:"󰃬"}.mdi-calculator-variant:before{content:"󰪚"}.mdi-calculator-variant-outline:before{content:"󱖦"}.mdi-calendar:before{content:"󰃭"}.mdi-calendar-account:before{content:"󰻗"}.mdi-calendar-account-outline:before{content:"󰻘"}.mdi-calendar-alert:before{content:"󰨱"}.mdi-calendar-alert-outline:before{content:"󱭢"}.mdi-calendar-arrow-left:before{content:"󱄴"}.mdi-calendar-arrow-right:before{content:"󱄵"}.mdi-calendar-badge:before{content:"󱮝"}.mdi-calendar-badge-outline:before{content:"󱮞"}.mdi-calendar-blank:before{content:"󰃮"}.mdi-calendar-blank-multiple:before{content:"󱁳"}.mdi-calendar-blank-outline:before{content:"󰭦"}.mdi-calendar-check:before{content:"󰃯"}.mdi-calendar-check-outline:before{content:"󰱄"}.mdi-calendar-clock:before{content:"󰃰"}.mdi-calendar-clock-outline:before{content:"󱛡"}.mdi-calendar-collapse-horizontal:before{content:"󱢝"}.mdi-calendar-collapse-horizontal-outline:before{content:"󱭣"}.mdi-calendar-cursor:before{content:"󱕻"}.mdi-calendar-cursor-outline:before{content:"󱭤"}.mdi-calendar-edit:before{content:"󰢧"}.mdi-calendar-edit-outline:before{content:"󱭥"}.mdi-calendar-end:before{content:"󱙬"}.mdi-calendar-end-outline:before{content:"󱭦"}.mdi-calendar-expand-horizontal:before{content:"󱢞"}.mdi-calendar-expand-horizontal-outline:before{content:"󱭧"}.mdi-calendar-export:before{content:"󰬤"}.mdi-calendar-export-outline:before{content:"󱭨"}.mdi-calendar-filter:before{content:"󱨲"}.mdi-calendar-filter-outline:before{content:"󱨳"}.mdi-calendar-heart:before{content:"󰧒"}.mdi-calendar-heart-outline:before{content:"󱭩"}.mdi-calendar-import:before{content:"󰬥"}.mdi-calendar-import-outline:before{content:"󱭪"}.mdi-calendar-lock:before{content:"󱙁"}.mdi-calendar-lock-open:before{content:"󱭛"}.mdi-calendar-lock-open-outline:before{content:"󱭜"}.mdi-calendar-lock-outline:before{content:"󱙂"}.mdi-calendar-minus:before{content:"󰵜"}.mdi-calendar-minus-outline:before{content:"󱭫"}.mdi-calendar-month:before{content:"󰸗"}.mdi-calendar-month-outline:before{content:"󰸘"}.mdi-calendar-multiple:before{content:"󰃱"}.mdi-calendar-multiple-check:before{content:"󰃲"}.mdi-calendar-multiselect:before{content:"󰨲"}.mdi-calendar-multiselect-outline:before{content:"󱭕"}.mdi-calendar-outline:before{content:"󰭧"}.mdi-calendar-plus:before{content:"󰃳"}.mdi-calendar-plus-outline:before{content:"󱭬"}.mdi-calendar-question:before{content:"󰚒"}.mdi-calendar-question-outline:before{content:"󱭭"}.mdi-calendar-range:before{content:"󰙹"}.mdi-calendar-range-outline:before{content:"󰭨"}.mdi-calendar-refresh:before{content:"󰇡"}.mdi-calendar-refresh-outline:before{content:"󰈃"}.mdi-calendar-remove:before{content:"󰃴"}.mdi-calendar-remove-outline:before{content:"󰱅"}.mdi-calendar-search:before{content:"󰥌"}.mdi-calendar-search-outline:before{content:"󱭮"}.mdi-calendar-star:before{content:"󰧓"}.mdi-calendar-star-four-points:before{content:"󱰟"}.mdi-calendar-star-outline:before{content:"󱭓"}.mdi-calendar-start:before{content:"󱙭"}.mdi-calendar-start-outline:before{content:"󱭯"}.mdi-calendar-sync:before{content:"󰺎"}.mdi-calendar-sync-outline:before{content:"󰺏"}.mdi-calendar-text:before{content:"󰃵"}.mdi-calendar-text-outline:before{content:"󰱆"}.mdi-calendar-today:before{content:"󰃶"}.mdi-calendar-today-outline:before{content:"󱨰"}.mdi-calendar-week:before{content:"󰨳"}.mdi-calendar-week-begin:before{content:"󰨴"}.mdi-calendar-week-begin-outline:before{content:"󱨱"}.mdi-calendar-week-outline:before{content:"󱨴"}.mdi-calendar-weekend:before{content:"󰻙"}.mdi-calendar-weekend-outline:before{content:"󰻚"}.mdi-call-made:before{content:"󰃷"}.mdi-call-merge:before{content:"󰃸"}.mdi-call-missed:before{content:"󰃹"}.mdi-call-received:before{content:"󰃺"}.mdi-call-split:before{content:"󰃻"}.mdi-camcorder:before{content:"󰃼"}.mdi-camcorder-off:before{content:"󰃿"}.mdi-camera:before{content:"󰄀"}.mdi-camera-account:before{content:"󰣋"}.mdi-camera-burst:before{content:"󰚓"}.mdi-camera-control:before{content:"󰭩"}.mdi-camera-document:before{content:"󱡱"}.mdi-camera-document-off:before{content:"󱡲"}.mdi-camera-enhance:before{content:"󰄁"}.mdi-camera-enhance-outline:before{content:"󰭪"}.mdi-camera-flip:before{content:"󱗙"}.mdi-camera-flip-outline:before{content:"󱗚"}.mdi-camera-front:before{content:"󰄂"}.mdi-camera-front-variant:before{content:"󰄃"}.mdi-camera-gopro:before{content:"󰞡"}.mdi-camera-image:before{content:"󰣌"}.mdi-camera-iris:before{content:"󰄄"}.mdi-camera-lock:before{content:"󱨔"}.mdi-camera-lock-open:before{content:"󱰍"}.mdi-camera-lock-open-outline:before{content:"󱰎"}.mdi-camera-lock-outline:before{content:"󱨕"}.mdi-camera-marker:before{content:"󱦧"}.mdi-camera-marker-outline:before{content:"󱦨"}.mdi-camera-metering-center:before{content:"󰞢"}.mdi-camera-metering-matrix:before{content:"󰞣"}.mdi-camera-metering-partial:before{content:"󰞤"}.mdi-camera-metering-spot:before{content:"󰞥"}.mdi-camera-off:before{content:"󰗟"}.mdi-camera-off-outline:before{content:"󱦿"}.mdi-camera-outline:before{content:"󰵝"}.mdi-camera-party-mode:before{content:"󰄅"}.mdi-camera-plus:before{content:"󰻛"}.mdi-camera-plus-outline:before{content:"󰻜"}.mdi-camera-rear:before{content:"󰄆"}.mdi-camera-rear-variant:before{content:"󰄇"}.mdi-camera-retake:before{content:"󰸙"}.mdi-camera-retake-outline:before{content:"󰸚"}.mdi-camera-switch:before{content:"󰄈"}.mdi-camera-switch-outline:before{content:"󰡊"}.mdi-camera-timer:before{content:"󰄉"}.mdi-camera-wireless:before{content:"󰶶"}.mdi-camera-wireless-outline:before{content:"󰶷"}.mdi-campfire:before{content:"󰻝"}.mdi-cancel:before{content:"󰜺"}.mdi-candelabra:before{content:"󱟒"}.mdi-candelabra-fire:before{content:"󱟓"}.mdi-candle:before{content:"󰗢"}.mdi-candy:before{content:"󱥰"}.mdi-candy-off:before{content:"󱥱"}.mdi-candy-off-outline:before{content:"󱥲"}.mdi-candy-outline:before{content:"󱥳"}.mdi-candycane:before{content:"󰄊"}.mdi-cannabis:before{content:"󰞦"}.mdi-cannabis-off:before{content:"󱙮"}.mdi-caps-lock:before{content:"󰪛"}.mdi-car:before{content:"󰄋"}.mdi-car-2-plus:before{content:"󱀕"}.mdi-car-3-plus:before{content:"󱀖"}.mdi-car-arrow-left:before{content:"󱎲"}.mdi-car-arrow-right:before{content:"󱎳"}.mdi-car-back:before{content:"󰸛"}.mdi-car-battery:before{content:"󰄌"}.mdi-car-brake-abs:before{content:"󰱇"}.mdi-car-brake-alert:before{content:"󰱈"}.mdi-car-brake-fluid-level:before{content:"󱤉"}.mdi-car-brake-hold:before{content:"󰵞"}.mdi-car-brake-low-pressure:before{content:"󱤊"}.mdi-car-brake-parking:before{content:"󰵟"}.mdi-car-brake-retarder:before{content:"󱀗"}.mdi-car-brake-temperature:before{content:"󱤋"}.mdi-car-brake-worn-linings:before{content:"󱤌"}.mdi-car-child-seat:before{content:"󰾣"}.mdi-car-clock:before{content:"󱥴"}.mdi-car-clutch:before{content:"󱀘"}.mdi-car-cog:before{content:"󱏌"}.mdi-car-connected:before{content:"󰄍"}.mdi-car-convertible:before{content:"󰞧"}.mdi-car-coolant-level:before{content:"󱀙"}.mdi-car-cruise-control:before{content:"󰵠"}.mdi-car-defrost-front:before{content:"󰵡"}.mdi-car-defrost-rear:before{content:"󰵢"}.mdi-car-door:before{content:"󰭫"}.mdi-car-door-lock:before{content:"󱂝"}.mdi-car-door-lock-open:before{content:"󱲁"}.mdi-car-electric:before{content:"󰭬"}.mdi-car-electric-outline:before{content:"󱖵"}.mdi-car-emergency:before{content:"󱘏"}.mdi-car-esp:before{content:"󰱉"}.mdi-car-estate:before{content:"󰞨"}.mdi-car-hatchback:before{content:"󰞩"}.mdi-car-info:before{content:"󱆾"}.mdi-car-key:before{content:"󰭭"}.mdi-car-lifted-pickup:before{content:"󱔭"}.mdi-car-light-alert:before{content:"󱤍"}.mdi-car-light-dimmed:before{content:"󰱊"}.mdi-car-light-fog:before{content:"󰱋"}.mdi-car-light-high:before{content:"󰱌"}.mdi-car-limousine:before{content:"󰣍"}.mdi-car-multiple:before{content:"󰭮"}.mdi-car-off:before{content:"󰸜"}.mdi-car-outline:before{content:"󱓭"}.mdi-car-parking-lights:before{content:"󰵣"}.mdi-car-pickup:before{content:"󰞪"}.mdi-car-search:before{content:"󱮍"}.mdi-car-search-outline:before{content:"󱮎"}.mdi-car-seat:before{content:"󰾤"}.mdi-car-seat-cooler:before{content:"󰾥"}.mdi-car-seat-heater:before{content:"󰾦"}.mdi-car-select:before{content:"󱡹"}.mdi-car-settings:before{content:"󱏍"}.mdi-car-shift-pattern:before{content:"󰽀"}.mdi-car-side:before{content:"󰞫"}.mdi-car-speed-limiter:before{content:"󱤎"}.mdi-car-sports:before{content:"󰞬"}.mdi-car-tire-alert:before{content:"󰱍"}.mdi-car-traction-control:before{content:"󰵤"}.mdi-car-turbocharger:before{content:"󱀚"}.mdi-car-wash:before{content:"󰄎"}.mdi-car-windshield:before{content:"󱀛"}.mdi-car-windshield-outline:before{content:"󱀜"}.mdi-car-wireless:before{content:"󱡸"}.mdi-car-wrench:before{content:"󱠔"}.mdi-carabiner:before{content:"󱓀"}.mdi-caravan:before{content:"󰞭"}.mdi-card:before{content:"󰭯"}.mdi-card-account-details:before{content:"󰗒"}.mdi-card-account-details-outline:before{content:"󰶫"}.mdi-card-account-details-star:before{content:"󰊣"}.mdi-card-account-details-star-outline:before{content:"󰛛"}.mdi-card-account-mail:before{content:"󰆎"}.mdi-card-account-mail-outline:before{content:"󰺘"}.mdi-card-account-phone:before{content:"󰺙"}.mdi-card-account-phone-outline:before{content:"󰺚"}.mdi-card-bulleted:before{content:"󰭰"}.mdi-card-bulleted-off:before{content:"󰭱"}.mdi-card-bulleted-off-outline:before{content:"󰭲"}.mdi-card-bulleted-outline:before{content:"󰭳"}.mdi-card-bulleted-settings:before{content:"󰭴"}.mdi-card-bulleted-settings-outline:before{content:"󰭵"}.mdi-card-minus:before{content:"󱘀"}.mdi-card-minus-outline:before{content:"󱘁"}.mdi-card-multiple:before{content:"󱟱"}.mdi-card-multiple-outline:before{content:"󱟲"}.mdi-card-off:before{content:"󱘂"}.mdi-card-off-outline:before{content:"󱘃"}.mdi-card-outline:before{content:"󰭶"}.mdi-card-plus:before{content:"󱇿"}.mdi-card-plus-outline:before{content:"󱈀"}.mdi-card-remove:before{content:"󱘄"}.mdi-card-remove-outline:before{content:"󱘅"}.mdi-card-search:before{content:"󱁴"}.mdi-card-search-outline:before{content:"󱁵"}.mdi-card-text:before{content:"󰭷"}.mdi-card-text-outline:before{content:"󰭸"}.mdi-cards:before{content:"󰘸"}.mdi-cards-club:before{content:"󰣎"}.mdi-cards-club-outline:before{content:"󱢟"}.mdi-cards-diamond:before{content:"󰣏"}.mdi-cards-diamond-outline:before{content:"󱀝"}.mdi-cards-heart:before{content:"󰣐"}.mdi-cards-heart-outline:before{content:"󱢠"}.mdi-cards-outline:before{content:"󰘹"}.mdi-cards-playing:before{content:"󱢡"}.mdi-cards-playing-club:before{content:"󱢢"}.mdi-cards-playing-club-multiple:before{content:"󱢣"}.mdi-cards-playing-club-multiple-outline:before{content:"󱢤"}.mdi-cards-playing-club-outline:before{content:"󱢥"}.mdi-cards-playing-diamond:before{content:"󱢦"}.mdi-cards-playing-diamond-multiple:before{content:"󱢧"}.mdi-cards-playing-diamond-multiple-outline:before{content:"󱢨"}.mdi-cards-playing-diamond-outline:before{content:"󱢩"}.mdi-cards-playing-heart:before{content:"󱢪"}.mdi-cards-playing-heart-multiple:before{content:"󱢫"}.mdi-cards-playing-heart-multiple-outline:before{content:"󱢬"}.mdi-cards-playing-heart-outline:before{content:"󱢭"}.mdi-cards-playing-outline:before{content:"󰘺"}.mdi-cards-playing-spade:before{content:"󱢮"}.mdi-cards-playing-spade-multiple:before{content:"󱢯"}.mdi-cards-playing-spade-multiple-outline:before{content:"󱢰"}.mdi-cards-playing-spade-outline:before{content:"󱢱"}.mdi-cards-spade:before{content:"󰣑"}.mdi-cards-spade-outline:before{content:"󱢲"}.mdi-cards-variant:before{content:"󰛇"}.mdi-carrot:before{content:"󰄏"}.mdi-cart:before{content:"󰄐"}.mdi-cart-arrow-down:before{content:"󰵦"}.mdi-cart-arrow-right:before{content:"󰱎"}.mdi-cart-arrow-up:before{content:"󰵧"}.mdi-cart-check:before{content:"󱗪"}.mdi-cart-heart:before{content:"󱣠"}.mdi-cart-minus:before{content:"󰵨"}.mdi-cart-off:before{content:"󰙫"}.mdi-cart-outline:before{content:"󰄑"}.mdi-cart-percent:before{content:"󱮮"}.mdi-cart-plus:before{content:"󰄒"}.mdi-cart-remove:before{content:"󰵩"}.mdi-cart-variant:before{content:"󱗫"}.mdi-case-sensitive-alt:before{content:"󰄓"}.mdi-cash:before{content:"󰄔"}.mdi-cash-100:before{content:"󰄕"}.mdi-cash-check:before{content:"󱓮"}.mdi-cash-clock:before{content:"󱪑"}.mdi-cash-edit:before{content:"󱲫"}.mdi-cash-fast:before{content:"󱡜"}.mdi-cash-lock:before{content:"󱓪"}.mdi-cash-lock-open:before{content:"󱓫"}.mdi-cash-marker:before{content:"󰶸"}.mdi-cash-minus:before{content:"󱉠"}.mdi-cash-multiple:before{content:"󰄖"}.mdi-cash-off:before{content:"󱱹"}.mdi-cash-plus:before{content:"󱉡"}.mdi-cash-refund:before{content:"󰪜"}.mdi-cash-register:before{content:"󰳴"}.mdi-cash-remove:before{content:"󱉢"}.mdi-cash-sync:before{content:"󱪒"}.mdi-cassette:before{content:"󰧔"}.mdi-cast:before{content:"󰄘"}.mdi-cast-audio:before{content:"󱀞"}.mdi-cast-audio-variant:before{content:"󱝉"}.mdi-cast-connected:before{content:"󰄙"}.mdi-cast-education:before{content:"󰸝"}.mdi-cast-off:before{content:"󰞊"}.mdi-cast-variant:before{content:"󰀟"}.mdi-castle:before{content:"󰄚"}.mdi-cat:before{content:"󰄛"}.mdi-cctv:before{content:"󰞮"}.mdi-cctv-off:before{content:"󱡟"}.mdi-ceiling-fan:before{content:"󱞗"}.mdi-ceiling-fan-light:before{content:"󱞘"}.mdi-ceiling-light:before{content:"󰝩"}.mdi-ceiling-light-multiple:before{content:"󱣝"}.mdi-ceiling-light-multiple-outline:before{content:"󱣞"}.mdi-ceiling-light-outline:before{content:"󱟇"}.mdi-cellphone:before{content:"󰄜"}.mdi-cellphone-arrow-down:before{content:"󰧕"}.mdi-cellphone-arrow-down-variant:before{content:"󱧅"}.mdi-cellphone-basic:before{content:"󰄞"}.mdi-cellphone-charging:before{content:"󱎗"}.mdi-cellphone-check:before{content:"󱟽"}.mdi-cellphone-cog:before{content:"󰥑"}.mdi-cellphone-dock:before{content:"󰄟"}.mdi-cellphone-information:before{content:"󰽁"}.mdi-cellphone-key:before{content:"󰥎"}.mdi-cellphone-link:before{content:"󰄡"}.mdi-cellphone-link-off:before{content:"󰄢"}.mdi-cellphone-lock:before{content:"󰥏"}.mdi-cellphone-marker:before{content:"󱠺"}.mdi-cellphone-message:before{content:"󰣓"}.mdi-cellphone-message-off:before{content:"󱃒"}.mdi-cellphone-nfc:before{content:"󰺐"}.mdi-cellphone-nfc-off:before{content:"󱋘"}.mdi-cellphone-off:before{content:"󰥐"}.mdi-cellphone-play:before{content:"󱀟"}.mdi-cellphone-remove:before{content:"󰥍"}.mdi-cellphone-screenshot:before{content:"󰨵"}.mdi-cellphone-settings:before{content:"󰄣"}.mdi-cellphone-sound:before{content:"󰥒"}.mdi-cellphone-text:before{content:"󰣒"}.mdi-cellphone-wireless:before{content:"󰠕"}.mdi-centos:before{content:"󱄚"}.mdi-certificate:before{content:"󰄤"}.mdi-certificate-outline:before{content:"󱆈"}.mdi-chair-rolling:before{content:"󰽈"}.mdi-chair-school:before{content:"󰄥"}.mdi-chandelier:before{content:"󱞓"}.mdi-charity:before{content:"󰱏"}.mdi-charity-search:before{content:"󱲂"}.mdi-chart-arc:before{content:"󰄦"}.mdi-chart-areaspline:before{content:"󰄧"}.mdi-chart-areaspline-variant:before{content:"󰺑"}.mdi-chart-bar:before{content:"󰄨"}.mdi-chart-bar-stacked:before{content:"󰝪"}.mdi-chart-bell-curve:before{content:"󰱐"}.mdi-chart-bell-curve-cumulative:before{content:"󰾧"}.mdi-chart-box:before{content:"󱕍"}.mdi-chart-box-outline:before{content:"󱕎"}.mdi-chart-box-plus-outline:before{content:"󱕏"}.mdi-chart-bubble:before{content:"󰗣"}.mdi-chart-donut:before{content:"󰞯"}.mdi-chart-donut-variant:before{content:"󰞰"}.mdi-chart-gantt:before{content:"󰙬"}.mdi-chart-histogram:before{content:"󰄩"}.mdi-chart-line:before{content:"󰄪"}.mdi-chart-line-stacked:before{content:"󰝫"}.mdi-chart-line-variant:before{content:"󰞱"}.mdi-chart-multiline:before{content:"󰣔"}.mdi-chart-multiple:before{content:"󱈓"}.mdi-chart-pie:before{content:"󰄫"}.mdi-chart-pie-outline:before{content:"󱯟"}.mdi-chart-ppf:before{content:"󱎀"}.mdi-chart-sankey:before{content:"󱇟"}.mdi-chart-sankey-variant:before{content:"󱇠"}.mdi-chart-scatter-plot:before{content:"󰺒"}.mdi-chart-scatter-plot-hexbin:before{content:"󰙭"}.mdi-chart-timeline:before{content:"󰙮"}.mdi-chart-timeline-variant:before{content:"󰺓"}.mdi-chart-timeline-variant-shimmer:before{content:"󱖶"}.mdi-chart-tree:before{content:"󰺔"}.mdi-chart-waterfall:before{content:"󱤘"}.mdi-chat:before{content:"󰭹"}.mdi-chat-alert:before{content:"󰭺"}.mdi-chat-alert-outline:before{content:"󱋉"}.mdi-chat-minus:before{content:"󱐐"}.mdi-chat-minus-outline:before{content:"󱐓"}.mdi-chat-outline:before{content:"󰻞"}.mdi-chat-plus:before{content:"󱐏"}.mdi-chat-plus-outline:before{content:"󱐒"}.mdi-chat-processing:before{content:"󰭻"}.mdi-chat-processing-outline:before{content:"󱋊"}.mdi-chat-question:before{content:"󱜸"}.mdi-chat-question-outline:before{content:"󱜹"}.mdi-chat-remove:before{content:"󱐑"}.mdi-chat-remove-outline:before{content:"󱐔"}.mdi-chat-sleep:before{content:"󱋑"}.mdi-chat-sleep-outline:before{content:"󱋒"}.mdi-check:before{content:"󰄬"}.mdi-check-all:before{content:"󰄭"}.mdi-check-bold:before{content:"󰸞"}.mdi-check-circle:before{content:"󰗠"}.mdi-check-circle-outline:before{content:"󰗡"}.mdi-check-decagram:before{content:"󰞑"}.mdi-check-decagram-outline:before{content:"󱝀"}.mdi-check-network:before{content:"󰱓"}.mdi-check-network-outline:before{content:"󰱔"}.mdi-check-outline:before{content:"󰡕"}.mdi-check-underline:before{content:"󰸟"}.mdi-check-underline-circle:before{content:"󰸠"}.mdi-check-underline-circle-outline:before{content:"󰸡"}.mdi-checkbook:before{content:"󰪝"}.mdi-checkbook-arrow-left:before{content:"󱰝"}.mdi-checkbook-arrow-right:before{content:"󱰞"}.mdi-checkbox-blank:before{content:"󰄮"}.mdi-checkbox-blank-badge:before{content:"󱅶"}.mdi-checkbox-blank-badge-outline:before{content:"󰄗"}.mdi-checkbox-blank-circle:before{content:"󰄯"}.mdi-checkbox-blank-circle-outline:before{content:"󰄰"}.mdi-checkbox-blank-off:before{content:"󱋬"}.mdi-checkbox-blank-off-outline:before{content:"󱋭"}.mdi-checkbox-blank-outline:before{content:"󰄱"}.mdi-checkbox-intermediate:before{content:"󰡖"}.mdi-checkbox-intermediate-variant:before{content:"󱭔"}.mdi-checkbox-marked:before{content:"󰄲"}.mdi-checkbox-marked-circle:before{content:"󰄳"}.mdi-checkbox-marked-circle-auto-outline:before{content:"󱰦"}.mdi-checkbox-marked-circle-minus-outline:before{content:"󱰧"}.mdi-checkbox-marked-circle-outline:before{content:"󰄴"}.mdi-checkbox-marked-circle-plus-outline:before{content:"󱤧"}.mdi-checkbox-marked-outline:before{content:"󰄵"}.mdi-checkbox-multiple-blank:before{content:"󰄶"}.mdi-checkbox-multiple-blank-circle:before{content:"󰘻"}.mdi-checkbox-multiple-blank-circle-outline:before{content:"󰘼"}.mdi-checkbox-multiple-blank-outline:before{content:"󰄷"}.mdi-checkbox-multiple-marked:before{content:"󰄸"}.mdi-checkbox-multiple-marked-circle:before{content:"󰘽"}.mdi-checkbox-multiple-marked-circle-outline:before{content:"󰘾"}.mdi-checkbox-multiple-marked-outline:before{content:"󰄹"}.mdi-checkbox-multiple-outline:before{content:"󰱑"}.mdi-checkbox-outline:before{content:"󰱒"}.mdi-checkerboard:before{content:"󰄺"}.mdi-checkerboard-minus:before{content:"󱈂"}.mdi-checkerboard-plus:before{content:"󱈁"}.mdi-checkerboard-remove:before{content:"󱈃"}.mdi-cheese:before{content:"󱊹"}.mdi-cheese-off:before{content:"󱏮"}.mdi-chef-hat:before{content:"󰭼"}.mdi-chemical-weapon:before{content:"󰄻"}.mdi-chess-bishop:before{content:"󰡜"}.mdi-chess-king:before{content:"󰡗"}.mdi-chess-knight:before{content:"󰡘"}.mdi-chess-pawn:before{content:"󰡙"}.mdi-chess-queen:before{content:"󰡚"}.mdi-chess-rook:before{content:"󰡛"}.mdi-chevron-double-down:before{content:"󰄼"}.mdi-chevron-double-left:before{content:"󰄽"}.mdi-chevron-double-right:before{content:"󰄾"}.mdi-chevron-double-up:before{content:"󰄿"}.mdi-chevron-down:before{content:"󰅀"}.mdi-chevron-down-box:before{content:"󰧖"}.mdi-chevron-down-box-outline:before{content:"󰧗"}.mdi-chevron-down-circle:before{content:"󰬦"}.mdi-chevron-down-circle-outline:before{content:"󰬧"}.mdi-chevron-left:before{content:"󰅁"}.mdi-chevron-left-box:before{content:"󰧘"}.mdi-chevron-left-box-outline:before{content:"󰧙"}.mdi-chevron-left-circle:before{content:"󰬨"}.mdi-chevron-left-circle-outline:before{content:"󰬩"}.mdi-chevron-right:before{content:"󰅂"}.mdi-chevron-right-box:before{content:"󰧚"}.mdi-chevron-right-box-outline:before{content:"󰧛"}.mdi-chevron-right-circle:before{content:"󰬪"}.mdi-chevron-right-circle-outline:before{content:"󰬫"}.mdi-chevron-triple-down:before{content:"󰶹"}.mdi-chevron-triple-left:before{content:"󰶺"}.mdi-chevron-triple-right:before{content:"󰶻"}.mdi-chevron-triple-up:before{content:"󰶼"}.mdi-chevron-up:before{content:"󰅃"}.mdi-chevron-up-box:before{content:"󰧜"}.mdi-chevron-up-box-outline:before{content:"󰧝"}.mdi-chevron-up-circle:before{content:"󰬬"}.mdi-chevron-up-circle-outline:before{content:"󰬭"}.mdi-chili-alert:before{content:"󱟪"}.mdi-chili-alert-outline:before{content:"󱟫"}.mdi-chili-hot:before{content:"󰞲"}.mdi-chili-hot-outline:before{content:"󱟬"}.mdi-chili-medium:before{content:"󰞳"}.mdi-chili-medium-outline:before{content:"󱟭"}.mdi-chili-mild:before{content:"󰞴"}.mdi-chili-mild-outline:before{content:"󱟮"}.mdi-chili-off:before{content:"󱑧"}.mdi-chili-off-outline:before{content:"󱟯"}.mdi-chip:before{content:"󰘚"}.mdi-church:before{content:"󰅄"}.mdi-church-outline:before{content:"󱬂"}.mdi-cigar:before{content:"󱆉"}.mdi-cigar-off:before{content:"󱐛"}.mdi-circle:before{content:"󰝥"}.mdi-circle-box:before{content:"󱗜"}.mdi-circle-box-outline:before{content:"󱗝"}.mdi-circle-double:before{content:"󰺕"}.mdi-circle-edit-outline:before{content:"󰣕"}.mdi-circle-expand:before{content:"󰺖"}.mdi-circle-half:before{content:"󱎕"}.mdi-circle-half-full:before{content:"󱎖"}.mdi-circle-medium:before{content:"󰧞"}.mdi-circle-multiple:before{content:"󰬸"}.mdi-circle-multiple-outline:before{content:"󰚕"}.mdi-circle-off-outline:before{content:"󱃓"}.mdi-circle-opacity:before{content:"󱡓"}.mdi-circle-outline:before{content:"󰝦"}.mdi-circle-slice-1:before{content:"󰪞"}.mdi-circle-slice-2:before{content:"󰪟"}.mdi-circle-slice-3:before{content:"󰪠"}.mdi-circle-slice-4:before{content:"󰪡"}.mdi-circle-slice-5:before{content:"󰪢"}.mdi-circle-slice-6:before{content:"󰪣"}.mdi-circle-slice-7:before{content:"󰪤"}.mdi-circle-slice-8:before{content:"󰪥"}.mdi-circle-small:before{content:"󰧟"}.mdi-circular-saw:before{content:"󰸢"}.mdi-city:before{content:"󰅆"}.mdi-city-switch:before{content:"󱰨"}.mdi-city-variant:before{content:"󰨶"}.mdi-city-variant-outline:before{content:"󰨷"}.mdi-clipboard:before{content:"󰅇"}.mdi-clipboard-account:before{content:"󰅈"}.mdi-clipboard-account-outline:before{content:"󰱕"}.mdi-clipboard-alert:before{content:"󰅉"}.mdi-clipboard-alert-outline:before{content:"󰳷"}.mdi-clipboard-arrow-down:before{content:"󰅊"}.mdi-clipboard-arrow-down-outline:before{content:"󰱖"}.mdi-clipboard-arrow-left:before{content:"󰅋"}.mdi-clipboard-arrow-left-outline:before{content:"󰳸"}.mdi-clipboard-arrow-right:before{content:"󰳹"}.mdi-clipboard-arrow-right-outline:before{content:"󰳺"}.mdi-clipboard-arrow-up:before{content:"󰱗"}.mdi-clipboard-arrow-up-outline:before{content:"󰱘"}.mdi-clipboard-check:before{content:"󰅎"}.mdi-clipboard-check-multiple:before{content:"󱉣"}.mdi-clipboard-check-multiple-outline:before{content:"󱉤"}.mdi-clipboard-check-outline:before{content:"󰢨"}.mdi-clipboard-clock:before{content:"󱛢"}.mdi-clipboard-clock-outline:before{content:"󱛣"}.mdi-clipboard-edit:before{content:"󱓥"}.mdi-clipboard-edit-outline:before{content:"󱓦"}.mdi-clipboard-file:before{content:"󱉥"}.mdi-clipboard-file-outline:before{content:"󱉦"}.mdi-clipboard-flow:before{content:"󰛈"}.mdi-clipboard-flow-outline:before{content:"󱄗"}.mdi-clipboard-list:before{content:"󱃔"}.mdi-clipboard-list-outline:before{content:"󱃕"}.mdi-clipboard-minus:before{content:"󱘘"}.mdi-clipboard-minus-outline:before{content:"󱘙"}.mdi-clipboard-multiple:before{content:"󱉧"}.mdi-clipboard-multiple-outline:before{content:"󱉨"}.mdi-clipboard-off:before{content:"󱘚"}.mdi-clipboard-off-outline:before{content:"󱘛"}.mdi-clipboard-outline:before{content:"󰅌"}.mdi-clipboard-play:before{content:"󰱙"}.mdi-clipboard-play-multiple:before{content:"󱉩"}.mdi-clipboard-play-multiple-outline:before{content:"󱉪"}.mdi-clipboard-play-outline:before{content:"󰱚"}.mdi-clipboard-plus:before{content:"󰝑"}.mdi-clipboard-plus-outline:before{content:"󱌟"}.mdi-clipboard-pulse:before{content:"󰡝"}.mdi-clipboard-pulse-outline:before{content:"󰡞"}.mdi-clipboard-remove:before{content:"󱘜"}.mdi-clipboard-remove-outline:before{content:"󱘝"}.mdi-clipboard-search:before{content:"󱘞"}.mdi-clipboard-search-outline:before{content:"󱘟"}.mdi-clipboard-text:before{content:"󰅍"}.mdi-clipboard-text-clock:before{content:"󱣹"}.mdi-clipboard-text-clock-outline:before{content:"󱣺"}.mdi-clipboard-text-multiple:before{content:"󱉫"}.mdi-clipboard-text-multiple-outline:before{content:"󱉬"}.mdi-clipboard-text-off:before{content:"󱘠"}.mdi-clipboard-text-off-outline:before{content:"󱘡"}.mdi-clipboard-text-outline:before{content:"󰨸"}.mdi-clipboard-text-play:before{content:"󰱛"}.mdi-clipboard-text-play-outline:before{content:"󰱜"}.mdi-clipboard-text-search:before{content:"󱘢"}.mdi-clipboard-text-search-outline:before{content:"󱘣"}.mdi-clippy:before{content:"󰅏"}.mdi-clock:before{content:"󰥔"}.mdi-clock-alert:before{content:"󰥕"}.mdi-clock-alert-outline:before{content:"󰗎"}.mdi-clock-check:before{content:"󰾨"}.mdi-clock-check-outline:before{content:"󰾩"}.mdi-clock-digital:before{content:"󰺗"}.mdi-clock-edit:before{content:"󱦺"}.mdi-clock-edit-outline:before{content:"󱦻"}.mdi-clock-end:before{content:"󰅑"}.mdi-clock-fast:before{content:"󰅒"}.mdi-clock-in:before{content:"󰅓"}.mdi-clock-minus:before{content:"󱡣"}.mdi-clock-minus-outline:before{content:"󱡤"}.mdi-clock-out:before{content:"󰅔"}.mdi-clock-outline:before{content:"󰅐"}.mdi-clock-plus:before{content:"󱡡"}.mdi-clock-plus-outline:before{content:"󱡢"}.mdi-clock-remove:before{content:"󱡥"}.mdi-clock-remove-outline:before{content:"󱡦"}.mdi-clock-star-four-points:before{content:"󱰩"}.mdi-clock-star-four-points-outline:before{content:"󱰪"}.mdi-clock-start:before{content:"󰅕"}.mdi-clock-time-eight:before{content:"󱑆"}.mdi-clock-time-eight-outline:before{content:"󱑒"}.mdi-clock-time-eleven:before{content:"󱑉"}.mdi-clock-time-eleven-outline:before{content:"󱑕"}.mdi-clock-time-five:before{content:"󱑃"}.mdi-clock-time-five-outline:before{content:"󱑏"}.mdi-clock-time-four:before{content:"󱑂"}.mdi-clock-time-four-outline:before{content:"󱑎"}.mdi-clock-time-nine:before{content:"󱑇"}.mdi-clock-time-nine-outline:before{content:"󱑓"}.mdi-clock-time-one:before{content:"󱐿"}.mdi-clock-time-one-outline:before{content:"󱑋"}.mdi-clock-time-seven:before{content:"󱑅"}.mdi-clock-time-seven-outline:before{content:"󱑑"}.mdi-clock-time-six:before{content:"󱑄"}.mdi-clock-time-six-outline:before{content:"󱑐"}.mdi-clock-time-ten:before{content:"󱑈"}.mdi-clock-time-ten-outline:before{content:"󱑔"}.mdi-clock-time-three:before{content:"󱑁"}.mdi-clock-time-three-outline:before{content:"󱑍"}.mdi-clock-time-twelve:before{content:"󱑊"}.mdi-clock-time-twelve-outline:before{content:"󱑖"}.mdi-clock-time-two:before{content:"󱑀"}.mdi-clock-time-two-outline:before{content:"󱑌"}.mdi-close:before{content:"󰅖"}.mdi-close-box:before{content:"󰅗"}.mdi-close-box-multiple:before{content:"󰱝"}.mdi-close-box-multiple-outline:before{content:"󰱞"}.mdi-close-box-outline:before{content:"󰅘"}.mdi-close-circle:before{content:"󰅙"}.mdi-close-circle-multiple:before{content:"󰘪"}.mdi-close-circle-multiple-outline:before{content:"󰢃"}.mdi-close-circle-outline:before{content:"󰅚"}.mdi-close-network:before{content:"󰅛"}.mdi-close-network-outline:before{content:"󰱟"}.mdi-close-octagon:before{content:"󰅜"}.mdi-close-octagon-outline:before{content:"󰅝"}.mdi-close-outline:before{content:"󰛉"}.mdi-close-thick:before{content:"󱎘"}.mdi-closed-caption:before{content:"󰅞"}.mdi-closed-caption-outline:before{content:"󰶽"}.mdi-cloud:before{content:"󰅟"}.mdi-cloud-alert:before{content:"󰧠"}.mdi-cloud-alert-outline:before{content:"󱯠"}.mdi-cloud-arrow-down:before{content:"󱯡"}.mdi-cloud-arrow-down-outline:before{content:"󱯢"}.mdi-cloud-arrow-left:before{content:"󱯣"}.mdi-cloud-arrow-left-outline:before{content:"󱯤"}.mdi-cloud-arrow-right:before{content:"󱯥"}.mdi-cloud-arrow-right-outline:before{content:"󱯦"}.mdi-cloud-arrow-up:before{content:"󱯧"}.mdi-cloud-arrow-up-outline:before{content:"󱯨"}.mdi-cloud-braces:before{content:"󰞵"}.mdi-cloud-cancel:before{content:"󱯩"}.mdi-cloud-cancel-outline:before{content:"󱯪"}.mdi-cloud-check:before{content:"󱯫"}.mdi-cloud-check-outline:before{content:"󱯬"}.mdi-cloud-check-variant:before{content:"󰅠"}.mdi-cloud-check-variant-outline:before{content:"󱋌"}.mdi-cloud-circle:before{content:"󰅡"}.mdi-cloud-circle-outline:before{content:"󱯭"}.mdi-cloud-clock:before{content:"󱯮"}.mdi-cloud-clock-outline:before{content:"󱯯"}.mdi-cloud-cog:before{content:"󱯰"}.mdi-cloud-cog-outline:before{content:"󱯱"}.mdi-cloud-download:before{content:"󰅢"}.mdi-cloud-download-outline:before{content:"󰭽"}.mdi-cloud-key:before{content:"󱲡"}.mdi-cloud-key-outline:before{content:"󱲢"}.mdi-cloud-lock:before{content:"󱇱"}.mdi-cloud-lock-open:before{content:"󱯲"}.mdi-cloud-lock-open-outline:before{content:"󱯳"}.mdi-cloud-lock-outline:before{content:"󱇲"}.mdi-cloud-minus:before{content:"󱯴"}.mdi-cloud-minus-outline:before{content:"󱯵"}.mdi-cloud-off:before{content:"󱯶"}.mdi-cloud-off-outline:before{content:"󰅤"}.mdi-cloud-outline:before{content:"󰅣"}.mdi-cloud-percent:before{content:"󱨵"}.mdi-cloud-percent-outline:before{content:"󱨶"}.mdi-cloud-plus:before{content:"󱯷"}.mdi-cloud-plus-outline:before{content:"󱯸"}.mdi-cloud-print:before{content:"󰅥"}.mdi-cloud-print-outline:before{content:"󰅦"}.mdi-cloud-question:before{content:"󰨹"}.mdi-cloud-question-outline:before{content:"󱯹"}.mdi-cloud-refresh:before{content:"󱯺"}.mdi-cloud-refresh-outline:before{content:"󱯻"}.mdi-cloud-refresh-variant:before{content:"󰔪"}.mdi-cloud-refresh-variant-outline:before{content:"󱯼"}.mdi-cloud-remove:before{content:"󱯽"}.mdi-cloud-remove-outline:before{content:"󱯾"}.mdi-cloud-search:before{content:"󰥖"}.mdi-cloud-search-outline:before{content:"󰥗"}.mdi-cloud-sync:before{content:"󰘿"}.mdi-cloud-sync-outline:before{content:"󱋖"}.mdi-cloud-tags:before{content:"󰞶"}.mdi-cloud-upload:before{content:"󰅧"}.mdi-cloud-upload-outline:before{content:"󰭾"}.mdi-clouds:before{content:"󱮕"}.mdi-clover:before{content:"󰠖"}.mdi-clover-outline:before{content:"󱱢"}.mdi-coach-lamp:before{content:"󱀠"}.mdi-coach-lamp-variant:before{content:"󱨷"}.mdi-coat-rack:before{content:"󱂞"}.mdi-code-array:before{content:"󰅨"}.mdi-code-block-braces:before{content:"󱲃"}.mdi-code-block-brackets:before{content:"󱲄"}.mdi-code-block-parentheses:before{content:"󱲅"}.mdi-code-block-tags:before{content:"󱲆"}.mdi-code-braces:before{content:"󰅩"}.mdi-code-braces-box:before{content:"󱃖"}.mdi-code-brackets:before{content:"󰅪"}.mdi-code-equal:before{content:"󰅫"}.mdi-code-greater-than:before{content:"󰅬"}.mdi-code-greater-than-or-equal:before{content:"󰅭"}.mdi-code-json:before{content:"󰘦"}.mdi-code-less-than:before{content:"󰅮"}.mdi-code-less-than-or-equal:before{content:"󰅯"}.mdi-code-not-equal:before{content:"󰅰"}.mdi-code-not-equal-variant:before{content:"󰅱"}.mdi-code-parentheses:before{content:"󰅲"}.mdi-code-parentheses-box:before{content:"󱃗"}.mdi-code-string:before{content:"󰅳"}.mdi-code-tags:before{content:"󰅴"}.mdi-code-tags-check:before{content:"󰚔"}.mdi-codepen:before{content:"󰅵"}.mdi-coffee:before{content:"󰅶"}.mdi-coffee-maker:before{content:"󱂟"}.mdi-coffee-maker-check:before{content:"󱤱"}.mdi-coffee-maker-check-outline:before{content:"󱤲"}.mdi-coffee-maker-outline:before{content:"󱠛"}.mdi-coffee-off:before{content:"󰾪"}.mdi-coffee-off-outline:before{content:"󰾫"}.mdi-coffee-outline:before{content:"󰛊"}.mdi-coffee-to-go:before{content:"󰅷"}.mdi-coffee-to-go-outline:before{content:"󱌎"}.mdi-coffin:before{content:"󰭿"}.mdi-cog:before{content:"󰒓"}.mdi-cog-box:before{content:"󰒔"}.mdi-cog-clockwise:before{content:"󱇝"}.mdi-cog-counterclockwise:before{content:"󱇞"}.mdi-cog-off:before{content:"󱏎"}.mdi-cog-off-outline:before{content:"󱏏"}.mdi-cog-outline:before{content:"󰢻"}.mdi-cog-pause:before{content:"󱤳"}.mdi-cog-pause-outline:before{content:"󱤴"}.mdi-cog-play:before{content:"󱤵"}.mdi-cog-play-outline:before{content:"󱤶"}.mdi-cog-refresh:before{content:"󱑞"}.mdi-cog-refresh-outline:before{content:"󱑟"}.mdi-cog-stop:before{content:"󱤷"}.mdi-cog-stop-outline:before{content:"󱤸"}.mdi-cog-sync:before{content:"󱑠"}.mdi-cog-sync-outline:before{content:"󱑡"}.mdi-cog-transfer:before{content:"󱁛"}.mdi-cog-transfer-outline:before{content:"󱁜"}.mdi-cogs:before{content:"󰣖"}.mdi-collage:before{content:"󰙀"}.mdi-collapse-all:before{content:"󰪦"}.mdi-collapse-all-outline:before{content:"󰪧"}.mdi-color-helper:before{content:"󰅹"}.mdi-comma:before{content:"󰸣"}.mdi-comma-box:before{content:"󰸫"}.mdi-comma-box-outline:before{content:"󰸤"}.mdi-comma-circle:before{content:"󰸥"}.mdi-comma-circle-outline:before{content:"󰸦"}.mdi-comment:before{content:"󰅺"}.mdi-comment-account:before{content:"󰅻"}.mdi-comment-account-outline:before{content:"󰅼"}.mdi-comment-alert:before{content:"󰅽"}.mdi-comment-alert-outline:before{content:"󰅾"}.mdi-comment-arrow-left:before{content:"󰧡"}.mdi-comment-arrow-left-outline:before{content:"󰧢"}.mdi-comment-arrow-right:before{content:"󰧣"}.mdi-comment-arrow-right-outline:before{content:"󰧤"}.mdi-comment-bookmark:before{content:"󱖮"}.mdi-comment-bookmark-outline:before{content:"󱖯"}.mdi-comment-check:before{content:"󰅿"}.mdi-comment-check-outline:before{content:"󰆀"}.mdi-comment-edit:before{content:"󱆿"}.mdi-comment-edit-outline:before{content:"󱋄"}.mdi-comment-eye:before{content:"󰨺"}.mdi-comment-eye-outline:before{content:"󰨻"}.mdi-comment-flash:before{content:"󱖰"}.mdi-comment-flash-outline:before{content:"󱖱"}.mdi-comment-minus:before{content:"󱗟"}.mdi-comment-minus-outline:before{content:"󱗠"}.mdi-comment-multiple:before{content:"󰡟"}.mdi-comment-multiple-outline:before{content:"󰆁"}.mdi-comment-off:before{content:"󱗡"}.mdi-comment-off-outline:before{content:"󱗢"}.mdi-comment-outline:before{content:"󰆂"}.mdi-comment-plus:before{content:"󰧥"}.mdi-comment-plus-outline:before{content:"󰆃"}.mdi-comment-processing:before{content:"󰆄"}.mdi-comment-processing-outline:before{content:"󰆅"}.mdi-comment-question:before{content:"󰠗"}.mdi-comment-question-outline:before{content:"󰆆"}.mdi-comment-quote:before{content:"󱀡"}.mdi-comment-quote-outline:before{content:"󱀢"}.mdi-comment-remove:before{content:"󰗞"}.mdi-comment-remove-outline:before{content:"󰆇"}.mdi-comment-search:before{content:"󰨼"}.mdi-comment-search-outline:before{content:"󰨽"}.mdi-comment-text:before{content:"󰆈"}.mdi-comment-text-multiple:before{content:"󰡠"}.mdi-comment-text-multiple-outline:before{content:"󰡡"}.mdi-comment-text-outline:before{content:"󰆉"}.mdi-compare:before{content:"󰆊"}.mdi-compare-horizontal:before{content:"󱒒"}.mdi-compare-remove:before{content:"󱢳"}.mdi-compare-vertical:before{content:"󱒓"}.mdi-compass:before{content:"󰆋"}.mdi-compass-off:before{content:"󰮀"}.mdi-compass-off-outline:before{content:"󰮁"}.mdi-compass-outline:before{content:"󰆌"}.mdi-compass-rose:before{content:"󱎂"}.mdi-compost:before{content:"󱨸"}.mdi-cone:before{content:"󱥌"}.mdi-cone-off:before{content:"󱥍"}.mdi-connection:before{content:"󱘖"}.mdi-console:before{content:"󰆍"}.mdi-console-line:before{content:"󰞷"}.mdi-console-network:before{content:"󰢩"}.mdi-console-network-outline:before{content:"󰱠"}.mdi-consolidate:before{content:"󱃘"}.mdi-contactless-payment:before{content:"󰵪"}.mdi-contactless-payment-circle:before{content:"󰌡"}.mdi-contactless-payment-circle-outline:before{content:"󰐈"}.mdi-contacts:before{content:"󰛋"}.mdi-contacts-outline:before{content:"󰖸"}.mdi-contain:before{content:"󰨾"}.mdi-contain-end:before{content:"󰨿"}.mdi-contain-start:before{content:"󰩀"}.mdi-content-copy:before{content:"󰆏"}.mdi-content-cut:before{content:"󰆐"}.mdi-content-duplicate:before{content:"󰆑"}.mdi-content-paste:before{content:"󰆒"}.mdi-content-save:before{content:"󰆓"}.mdi-content-save-alert:before{content:"󰽂"}.mdi-content-save-alert-outline:before{content:"󰽃"}.mdi-content-save-all:before{content:"󰆔"}.mdi-content-save-all-outline:before{content:"󰽄"}.mdi-content-save-check:before{content:"󱣪"}.mdi-content-save-check-outline:before{content:"󱣫"}.mdi-content-save-cog:before{content:"󱑛"}.mdi-content-save-cog-outline:before{content:"󱑜"}.mdi-content-save-edit:before{content:"󰳻"}.mdi-content-save-edit-outline:before{content:"󰳼"}.mdi-content-save-minus:before{content:"󱭃"}.mdi-content-save-minus-outline:before{content:"󱭄"}.mdi-content-save-move:before{content:"󰸧"}.mdi-content-save-move-outline:before{content:"󰸨"}.mdi-content-save-off:before{content:"󱙃"}.mdi-content-save-off-outline:before{content:"󱙄"}.mdi-content-save-outline:before{content:"󰠘"}.mdi-content-save-plus:before{content:"󱭁"}.mdi-content-save-plus-outline:before{content:"󱭂"}.mdi-content-save-settings:before{content:"󰘛"}.mdi-content-save-settings-outline:before{content:"󰬮"}.mdi-contrast:before{content:"󰆕"}.mdi-contrast-box:before{content:"󰆖"}.mdi-contrast-circle:before{content:"󰆗"}.mdi-controller:before{content:"󰊴"}.mdi-controller-classic:before{content:"󰮂"}.mdi-controller-classic-outline:before{content:"󰮃"}.mdi-controller-off:before{content:"󰊵"}.mdi-cookie:before{content:"󰆘"}.mdi-cookie-alert:before{content:"󱛐"}.mdi-cookie-alert-outline:before{content:"󱛑"}.mdi-cookie-check:before{content:"󱛒"}.mdi-cookie-check-outline:before{content:"󱛓"}.mdi-cookie-clock:before{content:"󱛤"}.mdi-cookie-clock-outline:before{content:"󱛥"}.mdi-cookie-cog:before{content:"󱛔"}.mdi-cookie-cog-outline:before{content:"󱛕"}.mdi-cookie-edit:before{content:"󱛦"}.mdi-cookie-edit-outline:before{content:"󱛧"}.mdi-cookie-lock:before{content:"󱛨"}.mdi-cookie-lock-outline:before{content:"󱛩"}.mdi-cookie-minus:before{content:"󱛚"}.mdi-cookie-minus-outline:before{content:"󱛛"}.mdi-cookie-off:before{content:"󱛪"}.mdi-cookie-off-outline:before{content:"󱛫"}.mdi-cookie-outline:before{content:"󱛞"}.mdi-cookie-plus:before{content:"󱛖"}.mdi-cookie-plus-outline:before{content:"󱛗"}.mdi-cookie-refresh:before{content:"󱛬"}.mdi-cookie-refresh-outline:before{content:"󱛭"}.mdi-cookie-remove:before{content:"󱛘"}.mdi-cookie-remove-outline:before{content:"󱛙"}.mdi-cookie-settings:before{content:"󱛜"}.mdi-cookie-settings-outline:before{content:"󱛝"}.mdi-coolant-temperature:before{content:"󰏈"}.mdi-copyleft:before{content:"󱤹"}.mdi-copyright:before{content:"󰗦"}.mdi-cordova:before{content:"󰥘"}.mdi-corn:before{content:"󰞸"}.mdi-corn-off:before{content:"󱏯"}.mdi-cosine-wave:before{content:"󱑹"}.mdi-counter:before{content:"󰆙"}.mdi-countertop:before{content:"󱠜"}.mdi-countertop-outline:before{content:"󱠝"}.mdi-cow:before{content:"󰆚"}.mdi-cow-off:before{content:"󱣼"}.mdi-cpu-32-bit:before{content:"󰻟"}.mdi-cpu-64-bit:before{content:"󰻠"}.mdi-cradle:before{content:"󱦋"}.mdi-cradle-outline:before{content:"󱦑"}.mdi-crane:before{content:"󰡢"}.mdi-creation:before{content:"󰙴"}.mdi-creation-outline:before{content:"󱰫"}.mdi-creative-commons:before{content:"󰵫"}.mdi-credit-card:before{content:"󰿯"}.mdi-credit-card-check:before{content:"󱏐"}.mdi-credit-card-check-outline:before{content:"󱏑"}.mdi-credit-card-chip:before{content:"󱤏"}.mdi-credit-card-chip-outline:before{content:"󱤐"}.mdi-credit-card-clock:before{content:"󰻡"}.mdi-credit-card-clock-outline:before{content:"󰻢"}.mdi-credit-card-edit:before{content:"󱟗"}.mdi-credit-card-edit-outline:before{content:"󱟘"}.mdi-credit-card-fast:before{content:"󱤑"}.mdi-credit-card-fast-outline:before{content:"󱤒"}.mdi-credit-card-lock:before{content:"󱣧"}.mdi-credit-card-lock-outline:before{content:"󱣨"}.mdi-credit-card-marker:before{content:"󰚨"}.mdi-credit-card-marker-outline:before{content:"󰶾"}.mdi-credit-card-minus:before{content:"󰾬"}.mdi-credit-card-minus-outline:before{content:"󰾭"}.mdi-credit-card-multiple:before{content:"󰿰"}.mdi-credit-card-multiple-outline:before{content:"󰆜"}.mdi-credit-card-off:before{content:"󰿱"}.mdi-credit-card-off-outline:before{content:"󰗤"}.mdi-credit-card-outline:before{content:"󰆛"}.mdi-credit-card-plus:before{content:"󰿲"}.mdi-credit-card-plus-outline:before{content:"󰙶"}.mdi-credit-card-refresh:before{content:"󱙅"}.mdi-credit-card-refresh-outline:before{content:"󱙆"}.mdi-credit-card-refund:before{content:"󰿳"}.mdi-credit-card-refund-outline:before{content:"󰪨"}.mdi-credit-card-remove:before{content:"󰾮"}.mdi-credit-card-remove-outline:before{content:"󰾯"}.mdi-credit-card-scan:before{content:"󰿴"}.mdi-credit-card-scan-outline:before{content:"󰆝"}.mdi-credit-card-search:before{content:"󱙇"}.mdi-credit-card-search-outline:before{content:"󱙈"}.mdi-credit-card-settings:before{content:"󰿵"}.mdi-credit-card-settings-outline:before{content:"󰣗"}.mdi-credit-card-sync:before{content:"󱙉"}.mdi-credit-card-sync-outline:before{content:"󱙊"}.mdi-credit-card-wireless:before{content:"󰠂"}.mdi-credit-card-wireless-off:before{content:"󰕺"}.mdi-credit-card-wireless-off-outline:before{content:"󰕻"}.mdi-credit-card-wireless-outline:before{content:"󰵬"}.mdi-cricket:before{content:"󰵭"}.mdi-crop:before{content:"󰆞"}.mdi-crop-free:before{content:"󰆟"}.mdi-crop-landscape:before{content:"󰆠"}.mdi-crop-portrait:before{content:"󰆡"}.mdi-crop-rotate:before{content:"󰚖"}.mdi-crop-square:before{content:"󰆢"}.mdi-cross:before{content:"󰥓"}.mdi-cross-bolnisi:before{content:"󰳭"}.mdi-cross-celtic:before{content:"󰳵"}.mdi-cross-outline:before{content:"󰳶"}.mdi-crosshairs:before{content:"󰆣"}.mdi-crosshairs-gps:before{content:"󰆤"}.mdi-crosshairs-off:before{content:"󰽅"}.mdi-crosshairs-question:before{content:"󱄶"}.mdi-crowd:before{content:"󱥵"}.mdi-crown:before{content:"󰆥"}.mdi-crown-circle:before{content:"󱟜"}.mdi-crown-circle-outline:before{content:"󱟝"}.mdi-crown-outline:before{content:"󱇐"}.mdi-cryengine:before{content:"󰥙"}.mdi-crystal-ball:before{content:"󰬯"}.mdi-cube:before{content:"󰆦"}.mdi-cube-off:before{content:"󱐜"}.mdi-cube-off-outline:before{content:"󱐝"}.mdi-cube-outline:before{content:"󰆧"}.mdi-cube-scan:before{content:"󰮄"}.mdi-cube-send:before{content:"󰆨"}.mdi-cube-unfolded:before{content:"󰆩"}.mdi-cup:before{content:"󰆪"}.mdi-cup-off:before{content:"󰗥"}.mdi-cup-off-outline:before{content:"󱍽"}.mdi-cup-outline:before{content:"󱌏"}.mdi-cup-water:before{content:"󰆫"}.mdi-cupboard:before{content:"󰽆"}.mdi-cupboard-outline:before{content:"󰽇"}.mdi-cupcake:before{content:"󰥚"}.mdi-curling:before{content:"󰡣"}.mdi-currency-bdt:before{content:"󰡤"}.mdi-currency-brl:before{content:"󰮅"}.mdi-currency-btc:before{content:"󰆬"}.mdi-currency-cny:before{content:"󰞺"}.mdi-currency-eth:before{content:"󰞻"}.mdi-currency-eur:before{content:"󰆭"}.mdi-currency-eur-off:before{content:"󱌕"}.mdi-currency-fra:before{content:"󱨹"}.mdi-currency-gbp:before{content:"󰆮"}.mdi-currency-ils:before{content:"󰱡"}.mdi-currency-inr:before{content:"󰆯"}.mdi-currency-jpy:before{content:"󰞼"}.mdi-currency-krw:before{content:"󰞽"}.mdi-currency-kzt:before{content:"󰡥"}.mdi-currency-mnt:before{content:"󱔒"}.mdi-currency-ngn:before{content:"󰆰"}.mdi-currency-php:before{content:"󰧦"}.mdi-currency-rial:before{content:"󰺜"}.mdi-currency-rub:before{content:"󰆱"}.mdi-currency-rupee:before{content:"󱥶"}.mdi-currency-sign:before{content:"󰞾"}.mdi-currency-thb:before{content:"󱰅"}.mdi-currency-try:before{content:"󰆲"}.mdi-currency-twd:before{content:"󰞿"}.mdi-currency-uah:before{content:"󱮛"}.mdi-currency-usd:before{content:"󰇁"}.mdi-currency-usd-off:before{content:"󰙺"}.mdi-current-ac:before{content:"󱒀"}.mdi-current-dc:before{content:"󰥜"}.mdi-cursor-default:before{content:"󰇀"}.mdi-cursor-default-click:before{content:"󰳽"}.mdi-cursor-default-click-outline:before{content:"󰳾"}.mdi-cursor-default-gesture:before{content:"󱄧"}.mdi-cursor-default-gesture-outline:before{content:"󱄨"}.mdi-cursor-default-outline:before{content:"󰆿"}.mdi-cursor-move:before{content:"󰆾"}.mdi-cursor-pointer:before{content:"󰆽"}.mdi-cursor-text:before{content:"󰗧"}.mdi-curtains:before{content:"󱡆"}.mdi-curtains-closed:before{content:"󱡇"}.mdi-cylinder:before{content:"󱥎"}.mdi-cylinder-off:before{content:"󱥏"}.mdi-dance-ballroom:before{content:"󱗻"}.mdi-dance-pole:before{content:"󱕸"}.mdi-data-matrix:before{content:"󱔼"}.mdi-data-matrix-edit:before{content:"󱔽"}.mdi-data-matrix-minus:before{content:"󱔾"}.mdi-data-matrix-plus:before{content:"󱔿"}.mdi-data-matrix-remove:before{content:"󱕀"}.mdi-data-matrix-scan:before{content:"󱕁"}.mdi-database:before{content:"󰆼"}.mdi-database-alert:before{content:"󱘺"}.mdi-database-alert-outline:before{content:"󱘤"}.mdi-database-arrow-down:before{content:"󱘻"}.mdi-database-arrow-down-outline:before{content:"󱘥"}.mdi-database-arrow-left:before{content:"󱘼"}.mdi-database-arrow-left-outline:before{content:"󱘦"}.mdi-database-arrow-right:before{content:"󱘽"}.mdi-database-arrow-right-outline:before{content:"󱘧"}.mdi-database-arrow-up:before{content:"󱘾"}.mdi-database-arrow-up-outline:before{content:"󱘨"}.mdi-database-check:before{content:"󰪩"}.mdi-database-check-outline:before{content:"󱘩"}.mdi-database-clock:before{content:"󱘿"}.mdi-database-clock-outline:before{content:"󱘪"}.mdi-database-cog:before{content:"󱙋"}.mdi-database-cog-outline:before{content:"󱙌"}.mdi-database-edit:before{content:"󰮆"}.mdi-database-edit-outline:before{content:"󱘫"}.mdi-database-export:before{content:"󰥞"}.mdi-database-export-outline:before{content:"󱘬"}.mdi-database-eye:before{content:"󱤟"}.mdi-database-eye-off:before{content:"󱤠"}.mdi-database-eye-off-outline:before{content:"󱤡"}.mdi-database-eye-outline:before{content:"󱤢"}.mdi-database-import:before{content:"󰥝"}.mdi-database-import-outline:before{content:"󱘭"}.mdi-database-lock:before{content:"󰪪"}.mdi-database-lock-outline:before{content:"󱘮"}.mdi-database-marker:before{content:"󱋶"}.mdi-database-marker-outline:before{content:"󱘯"}.mdi-database-minus:before{content:"󰆻"}.mdi-database-minus-outline:before{content:"󱘰"}.mdi-database-off:before{content:"󱙀"}.mdi-database-off-outline:before{content:"󱘱"}.mdi-database-outline:before{content:"󱘲"}.mdi-database-plus:before{content:"󰆺"}.mdi-database-plus-outline:before{content:"󱘳"}.mdi-database-refresh:before{content:"󰗂"}.mdi-database-refresh-outline:before{content:"󱘴"}.mdi-database-remove:before{content:"󰴀"}.mdi-database-remove-outline:before{content:"󱘵"}.mdi-database-search:before{content:"󰡦"}.mdi-database-search-outline:before{content:"󱘶"}.mdi-database-settings:before{content:"󰴁"}.mdi-database-settings-outline:before{content:"󱘷"}.mdi-database-sync:before{content:"󰳿"}.mdi-database-sync-outline:before{content:"󱘸"}.mdi-death-star:before{content:"󰣘"}.mdi-death-star-variant:before{content:"󰣙"}.mdi-deathly-hallows:before{content:"󰮇"}.mdi-debian:before{content:"󰣚"}.mdi-debug-step-into:before{content:"󰆹"}.mdi-debug-step-out:before{content:"󰆸"}.mdi-debug-step-over:before{content:"󰆷"}.mdi-decagram:before{content:"󰝬"}.mdi-decagram-outline:before{content:"󰝭"}.mdi-decimal:before{content:"󱂡"}.mdi-decimal-comma:before{content:"󱂢"}.mdi-decimal-comma-decrease:before{content:"󱂣"}.mdi-decimal-comma-increase:before{content:"󱂤"}.mdi-decimal-decrease:before{content:"󰆶"}.mdi-decimal-increase:before{content:"󰆵"}.mdi-delete:before{content:"󰆴"}.mdi-delete-alert:before{content:"󱂥"}.mdi-delete-alert-outline:before{content:"󱂦"}.mdi-delete-circle:before{content:"󰚃"}.mdi-delete-circle-outline:before{content:"󰮈"}.mdi-delete-clock:before{content:"󱕖"}.mdi-delete-clock-outline:before{content:"󱕗"}.mdi-delete-empty:before{content:"󰛌"}.mdi-delete-empty-outline:before{content:"󰺝"}.mdi-delete-forever:before{content:"󰗨"}.mdi-delete-forever-outline:before{content:"󰮉"}.mdi-delete-off:before{content:"󱂧"}.mdi-delete-off-outline:before{content:"󱂨"}.mdi-delete-outline:before{content:"󰧧"}.mdi-delete-restore:before{content:"󰠙"}.mdi-delete-sweep:before{content:"󰗩"}.mdi-delete-sweep-outline:before{content:"󰱢"}.mdi-delete-variant:before{content:"󰆳"}.mdi-delta:before{content:"󰇂"}.mdi-desk:before{content:"󱈹"}.mdi-desk-lamp:before{content:"󰥟"}.mdi-desk-lamp-off:before{content:"󱬟"}.mdi-desk-lamp-on:before{content:"󱬠"}.mdi-deskphone:before{content:"󰇃"}.mdi-desktop-classic:before{content:"󰟀"}.mdi-desktop-tower:before{content:"󰇅"}.mdi-desktop-tower-monitor:before{content:"󰪫"}.mdi-details:before{content:"󰇆"}.mdi-dev-to:before{content:"󰵮"}.mdi-developer-board:before{content:"󰚗"}.mdi-deviantart:before{content:"󰇇"}.mdi-devices:before{content:"󰾰"}.mdi-dharmachakra:before{content:"󰥋"}.mdi-diabetes:before{content:"󱄦"}.mdi-dialpad:before{content:"󰘜"}.mdi-diameter:before{content:"󰱣"}.mdi-diameter-outline:before{content:"󰱤"}.mdi-diameter-variant:before{content:"󰱥"}.mdi-diamond:before{content:"󰮊"}.mdi-diamond-outline:before{content:"󰮋"}.mdi-diamond-stone:before{content:"󰇈"}.mdi-dice-1:before{content:"󰇊"}.mdi-dice-1-outline:before{content:"󱅊"}.mdi-dice-2:before{content:"󰇋"}.mdi-dice-2-outline:before{content:"󱅋"}.mdi-dice-3:before{content:"󰇌"}.mdi-dice-3-outline:before{content:"󱅌"}.mdi-dice-4:before{content:"󰇍"}.mdi-dice-4-outline:before{content:"󱅍"}.mdi-dice-5:before{content:"󰇎"}.mdi-dice-5-outline:before{content:"󱅎"}.mdi-dice-6:before{content:"󰇏"}.mdi-dice-6-outline:before{content:"󱅏"}.mdi-dice-d10:before{content:"󱅓"}.mdi-dice-d10-outline:before{content:"󰝯"}.mdi-dice-d12:before{content:"󱅔"}.mdi-dice-d12-outline:before{content:"󰡧"}.mdi-dice-d20:before{content:"󱅕"}.mdi-dice-d20-outline:before{content:"󰗪"}.mdi-dice-d4:before{content:"󱅐"}.mdi-dice-d4-outline:before{content:"󰗫"}.mdi-dice-d6:before{content:"󱅑"}.mdi-dice-d6-outline:before{content:"󰗭"}.mdi-dice-d8:before{content:"󱅒"}.mdi-dice-d8-outline:before{content:"󰗬"}.mdi-dice-multiple:before{content:"󰝮"}.mdi-dice-multiple-outline:before{content:"󱅖"}.mdi-digital-ocean:before{content:"󱈷"}.mdi-dip-switch:before{content:"󰟁"}.mdi-directions:before{content:"󰇐"}.mdi-directions-fork:before{content:"󰙁"}.mdi-disc:before{content:"󰗮"}.mdi-disc-alert:before{content:"󰇑"}.mdi-disc-player:before{content:"󰥠"}.mdi-dishwasher:before{content:"󰪬"}.mdi-dishwasher-alert:before{content:"󱆸"}.mdi-dishwasher-off:before{content:"󱆹"}.mdi-disqus:before{content:"󰇒"}.mdi-distribute-horizontal-center:before{content:"󱇉"}.mdi-distribute-horizontal-left:before{content:"󱇈"}.mdi-distribute-horizontal-right:before{content:"󱇊"}.mdi-distribute-vertical-bottom:before{content:"󱇋"}.mdi-distribute-vertical-center:before{content:"󱇌"}.mdi-distribute-vertical-top:before{content:"󱇍"}.mdi-diversify:before{content:"󱡷"}.mdi-diving:before{content:"󱥷"}.mdi-diving-flippers:before{content:"󰶿"}.mdi-diving-helmet:before{content:"󰷀"}.mdi-diving-scuba:before{content:"󱭷"}.mdi-diving-scuba-flag:before{content:"󰷂"}.mdi-diving-scuba-mask:before{content:"󰷁"}.mdi-diving-scuba-tank:before{content:"󰷃"}.mdi-diving-scuba-tank-multiple:before{content:"󰷄"}.mdi-diving-snorkel:before{content:"󰷅"}.mdi-division:before{content:"󰇔"}.mdi-division-box:before{content:"󰇕"}.mdi-dlna:before{content:"󰩁"}.mdi-dna:before{content:"󰚄"}.mdi-dns:before{content:"󰇖"}.mdi-dns-outline:before{content:"󰮌"}.mdi-dock-bottom:before{content:"󱂩"}.mdi-dock-left:before{content:"󱂪"}.mdi-dock-right:before{content:"󱂫"}.mdi-dock-top:before{content:"󱔓"}.mdi-dock-window:before{content:"󱂬"}.mdi-docker:before{content:"󰡨"}.mdi-doctor:before{content:"󰩂"}.mdi-dog:before{content:"󰩃"}.mdi-dog-service:before{content:"󰪭"}.mdi-dog-side:before{content:"󰩄"}.mdi-dog-side-off:before{content:"󱛮"}.mdi-dolby:before{content:"󰚳"}.mdi-dolly:before{content:"󰺞"}.mdi-dolphin:before{content:"󱢴"}.mdi-domain:before{content:"󰇗"}.mdi-domain-off:before{content:"󰵯"}.mdi-domain-plus:before{content:"󱂭"}.mdi-domain-remove:before{content:"󱂮"}.mdi-domain-switch:before{content:"󱰬"}.mdi-dome-light:before{content:"󱐞"}.mdi-domino-mask:before{content:"󱀣"}.mdi-donkey:before{content:"󰟂"}.mdi-door:before{content:"󰠚"}.mdi-door-closed:before{content:"󰠛"}.mdi-door-closed-cancel:before{content:"󱲓"}.mdi-door-closed-lock:before{content:"󱂯"}.mdi-door-open:before{content:"󰠜"}.mdi-door-sliding:before{content:"󱠞"}.mdi-door-sliding-lock:before{content:"󱠟"}.mdi-door-sliding-open:before{content:"󱠠"}.mdi-doorbell:before{content:"󱋦"}.mdi-doorbell-video:before{content:"󰡩"}.mdi-dot-net:before{content:"󰪮"}.mdi-dots-circle:before{content:"󱥸"}.mdi-dots-grid:before{content:"󱗼"}.mdi-dots-hexagon:before{content:"󱗿"}.mdi-dots-horizontal:before{content:"󰇘"}.mdi-dots-horizontal-circle:before{content:"󰟃"}.mdi-dots-horizontal-circle-outline:before{content:"󰮍"}.mdi-dots-square:before{content:"󱗽"}.mdi-dots-triangle:before{content:"󱗾"}.mdi-dots-vertical:before{content:"󰇙"}.mdi-dots-vertical-circle:before{content:"󰟄"}.mdi-dots-vertical-circle-outline:before{content:"󰮎"}.mdi-download:before{content:"󰇚"}.mdi-download-box:before{content:"󱑢"}.mdi-download-box-outline:before{content:"󱑣"}.mdi-download-circle:before{content:"󱑤"}.mdi-download-circle-outline:before{content:"󱑥"}.mdi-download-lock:before{content:"󱌠"}.mdi-download-lock-outline:before{content:"󱌡"}.mdi-download-multiple:before{content:"󰧩"}.mdi-download-network:before{content:"󰛴"}.mdi-download-network-outline:before{content:"󰱦"}.mdi-download-off:before{content:"󱂰"}.mdi-download-off-outline:before{content:"󱂱"}.mdi-download-outline:before{content:"󰮏"}.mdi-drag:before{content:"󰇛"}.mdi-drag-horizontal:before{content:"󰇜"}.mdi-drag-horizontal-variant:before{content:"󱋰"}.mdi-drag-variant:before{content:"󰮐"}.mdi-drag-vertical:before{content:"󰇝"}.mdi-drag-vertical-variant:before{content:"󱋱"}.mdi-drama-masks:before{content:"󰴂"}.mdi-draw:before{content:"󰽉"}.mdi-draw-pen:before{content:"󱦹"}.mdi-drawing:before{content:"󰇞"}.mdi-drawing-box:before{content:"󰇟"}.mdi-dresser:before{content:"󰽊"}.mdi-dresser-outline:before{content:"󰽋"}.mdi-drone:before{content:"󰇢"}.mdi-dropbox:before{content:"󰇣"}.mdi-drupal:before{content:"󰇤"}.mdi-duck:before{content:"󰇥"}.mdi-dumbbell:before{content:"󰇦"}.mdi-dump-truck:before{content:"󰱧"}.mdi-ear-hearing:before{content:"󰟅"}.mdi-ear-hearing-loop:before{content:"󱫮"}.mdi-ear-hearing-off:before{content:"󰩅"}.mdi-earbuds:before{content:"󱡏"}.mdi-earbuds-off:before{content:"󱡐"}.mdi-earbuds-off-outline:before{content:"󱡑"}.mdi-earbuds-outline:before{content:"󱡒"}.mdi-earth:before{content:"󰇧"}.mdi-earth-arrow-down:before{content:"󱲇"}.mdi-earth-arrow-left:before{content:"󱲈"}.mdi-earth-arrow-right:before{content:"󱌑"}.mdi-earth-arrow-up:before{content:"󱲉"}.mdi-earth-box:before{content:"󰛍"}.mdi-earth-box-minus:before{content:"󱐇"}.mdi-earth-box-off:before{content:"󰛎"}.mdi-earth-box-plus:before{content:"󱐆"}.mdi-earth-box-remove:before{content:"󱐈"}.mdi-earth-minus:before{content:"󱐄"}.mdi-earth-off:before{content:"󰇨"}.mdi-earth-plus:before{content:"󱐃"}.mdi-earth-remove:before{content:"󱐅"}.mdi-egg:before{content:"󰪯"}.mdi-egg-easter:before{content:"󰪰"}.mdi-egg-fried:before{content:"󱡊"}.mdi-egg-off:before{content:"󱏰"}.mdi-egg-off-outline:before{content:"󱏱"}.mdi-egg-outline:before{content:"󱏲"}.mdi-eiffel-tower:before{content:"󱕫"}.mdi-eight-track:before{content:"󰧪"}.mdi-eject:before{content:"󰇪"}.mdi-eject-circle:before{content:"󱬣"}.mdi-eject-circle-outline:before{content:"󱬤"}.mdi-eject-outline:before{content:"󰮑"}.mdi-electric-switch:before{content:"󰺟"}.mdi-electric-switch-closed:before{content:"󱃙"}.mdi-electron-framework:before{content:"󱀤"}.mdi-elephant:before{content:"󰟆"}.mdi-elevation-decline:before{content:"󰇫"}.mdi-elevation-rise:before{content:"󰇬"}.mdi-elevator:before{content:"󰇭"}.mdi-elevator-down:before{content:"󱋂"}.mdi-elevator-passenger:before{content:"󱎁"}.mdi-elevator-passenger-off:before{content:"󱥹"}.mdi-elevator-passenger-off-outline:before{content:"󱥺"}.mdi-elevator-passenger-outline:before{content:"󱥻"}.mdi-elevator-up:before{content:"󱋁"}.mdi-ellipse:before{content:"󰺠"}.mdi-ellipse-outline:before{content:"󰺡"}.mdi-email:before{content:"󰇮"}.mdi-email-alert:before{content:"󰛏"}.mdi-email-alert-outline:before{content:"󰵂"}.mdi-email-arrow-left:before{content:"󱃚"}.mdi-email-arrow-left-outline:before{content:"󱃛"}.mdi-email-arrow-right:before{content:"󱃜"}.mdi-email-arrow-right-outline:before{content:"󱃝"}.mdi-email-box:before{content:"󰴃"}.mdi-email-check:before{content:"󰪱"}.mdi-email-check-outline:before{content:"󰪲"}.mdi-email-edit:before{content:"󰻣"}.mdi-email-edit-outline:before{content:"󰻤"}.mdi-email-fast:before{content:"󱡯"}.mdi-email-fast-outline:before{content:"󱡰"}.mdi-email-heart-outline:before{content:"󱱛"}.mdi-email-lock:before{content:"󰇱"}.mdi-email-lock-outline:before{content:"󱭡"}.mdi-email-mark-as-unread:before{content:"󰮒"}.mdi-email-minus:before{content:"󰻥"}.mdi-email-minus-outline:before{content:"󰻦"}.mdi-email-multiple:before{content:"󰻧"}.mdi-email-multiple-outline:before{content:"󰻨"}.mdi-email-newsletter:before{content:"󰾱"}.mdi-email-off:before{content:"󱏣"}.mdi-email-off-outline:before{content:"󱏤"}.mdi-email-open:before{content:"󰇯"}.mdi-email-open-heart-outline:before{content:"󱱜"}.mdi-email-open-multiple:before{content:"󰻩"}.mdi-email-open-multiple-outline:before{content:"󰻪"}.mdi-email-open-outline:before{content:"󰗯"}.mdi-email-outline:before{content:"󰇰"}.mdi-email-plus:before{content:"󰧫"}.mdi-email-plus-outline:before{content:"󰧬"}.mdi-email-remove:before{content:"󱙡"}.mdi-email-remove-outline:before{content:"󱙢"}.mdi-email-seal:before{content:"󱥛"}.mdi-email-seal-outline:before{content:"󱥜"}.mdi-email-search:before{content:"󰥡"}.mdi-email-search-outline:before{content:"󰥢"}.mdi-email-sync:before{content:"󱋇"}.mdi-email-sync-outline:before{content:"󱋈"}.mdi-email-variant:before{content:"󰗰"}.mdi-ember:before{content:"󰬰"}.mdi-emby:before{content:"󰚴"}.mdi-emoticon:before{content:"󰱨"}.mdi-emoticon-angry:before{content:"󰱩"}.mdi-emoticon-angry-outline:before{content:"󰱪"}.mdi-emoticon-confused:before{content:"󱃞"}.mdi-emoticon-confused-outline:before{content:"󱃟"}.mdi-emoticon-cool:before{content:"󰱫"}.mdi-emoticon-cool-outline:before{content:"󰇳"}.mdi-emoticon-cry:before{content:"󰱬"}.mdi-emoticon-cry-outline:before{content:"󰱭"}.mdi-emoticon-dead:before{content:"󰱮"}.mdi-emoticon-dead-outline:before{content:"󰚛"}.mdi-emoticon-devil:before{content:"󰱯"}.mdi-emoticon-devil-outline:before{content:"󰇴"}.mdi-emoticon-excited:before{content:"󰱰"}.mdi-emoticon-excited-outline:before{content:"󰚜"}.mdi-emoticon-frown:before{content:"󰽌"}.mdi-emoticon-frown-outline:before{content:"󰽍"}.mdi-emoticon-happy:before{content:"󰱱"}.mdi-emoticon-happy-outline:before{content:"󰇵"}.mdi-emoticon-kiss:before{content:"󰱲"}.mdi-emoticon-kiss-outline:before{content:"󰱳"}.mdi-emoticon-lol:before{content:"󱈔"}.mdi-emoticon-lol-outline:before{content:"󱈕"}.mdi-emoticon-minus:before{content:"󱲲"}.mdi-emoticon-minus-outline:before{content:"󱲳"}.mdi-emoticon-neutral:before{content:"󰱴"}.mdi-emoticon-neutral-outline:before{content:"󰇶"}.mdi-emoticon-outline:before{content:"󰇲"}.mdi-emoticon-plus:before{content:"󱲴"}.mdi-emoticon-plus-outline:before{content:"󱲵"}.mdi-emoticon-poop:before{content:"󰇷"}.mdi-emoticon-poop-outline:before{content:"󰱵"}.mdi-emoticon-remove:before{content:"󱲶"}.mdi-emoticon-remove-outline:before{content:"󱲷"}.mdi-emoticon-sad:before{content:"󰱶"}.mdi-emoticon-sad-outline:before{content:"󰇸"}.mdi-emoticon-sick:before{content:"󱕼"}.mdi-emoticon-sick-outline:before{content:"󱕽"}.mdi-emoticon-tongue:before{content:"󰇹"}.mdi-emoticon-tongue-outline:before{content:"󰱷"}.mdi-emoticon-wink:before{content:"󰱸"}.mdi-emoticon-wink-outline:before{content:"󰱹"}.mdi-engine:before{content:"󰇺"}.mdi-engine-off:before{content:"󰩆"}.mdi-engine-off-outline:before{content:"󰩇"}.mdi-engine-outline:before{content:"󰇻"}.mdi-epsilon:before{content:"󱃠"}.mdi-equal:before{content:"󰇼"}.mdi-equal-box:before{content:"󰇽"}.mdi-equalizer:before{content:"󰺢"}.mdi-equalizer-outline:before{content:"󰺣"}.mdi-eraser:before{content:"󰇾"}.mdi-eraser-variant:before{content:"󰙂"}.mdi-escalator:before{content:"󰇿"}.mdi-escalator-box:before{content:"󱎙"}.mdi-escalator-down:before{content:"󱋀"}.mdi-escalator-up:before{content:"󱊿"}.mdi-eslint:before{content:"󰱺"}.mdi-et:before{content:"󰪳"}.mdi-ethereum:before{content:"󰡪"}.mdi-ethernet:before{content:"󰈀"}.mdi-ethernet-cable:before{content:"󰈁"}.mdi-ethernet-cable-off:before{content:"󰈂"}.mdi-ev-plug-ccs1:before{content:"󱔙"}.mdi-ev-plug-ccs2:before{content:"󱔚"}.mdi-ev-plug-chademo:before{content:"󱔛"}.mdi-ev-plug-tesla:before{content:"󱔜"}.mdi-ev-plug-type1:before{content:"󱔝"}.mdi-ev-plug-type2:before{content:"󱔞"}.mdi-ev-station:before{content:"󰗱"}.mdi-evernote:before{content:"󰈄"}.mdi-excavator:before{content:"󱀥"}.mdi-exclamation:before{content:"󰈅"}.mdi-exclamation-thick:before{content:"󱈸"}.mdi-exit-run:before{content:"󰩈"}.mdi-exit-to-app:before{content:"󰈆"}.mdi-expand-all:before{content:"󰪴"}.mdi-expand-all-outline:before{content:"󰪵"}.mdi-expansion-card:before{content:"󰢮"}.mdi-expansion-card-variant:before{content:"󰾲"}.mdi-exponent:before{content:"󰥣"}.mdi-exponent-box:before{content:"󰥤"}.mdi-export:before{content:"󰈇"}.mdi-export-variant:before{content:"󰮓"}.mdi-eye:before{content:"󰈈"}.mdi-eye-arrow-left:before{content:"󱣽"}.mdi-eye-arrow-left-outline:before{content:"󱣾"}.mdi-eye-arrow-right:before{content:"󱣿"}.mdi-eye-arrow-right-outline:before{content:"󱤀"}.mdi-eye-check:before{content:"󰴄"}.mdi-eye-check-outline:before{content:"󰴅"}.mdi-eye-circle:before{content:"󰮔"}.mdi-eye-circle-outline:before{content:"󰮕"}.mdi-eye-closed:before{content:"󱲣"}.mdi-eye-lock:before{content:"󱰆"}.mdi-eye-lock-open:before{content:"󱰇"}.mdi-eye-lock-open-outline:before{content:"󱰈"}.mdi-eye-lock-outline:before{content:"󱰉"}.mdi-eye-minus:before{content:"󱀦"}.mdi-eye-minus-outline:before{content:"󱀧"}.mdi-eye-off:before{content:"󰈉"}.mdi-eye-off-outline:before{content:"󰛑"}.mdi-eye-outline:before{content:"󰛐"}.mdi-eye-plus:before{content:"󰡫"}.mdi-eye-plus-outline:before{content:"󰡬"}.mdi-eye-refresh:before{content:"󱥼"}.mdi-eye-refresh-outline:before{content:"󱥽"}.mdi-eye-remove:before{content:"󱗣"}.mdi-eye-remove-outline:before{content:"󱗤"}.mdi-eye-settings:before{content:"󰡭"}.mdi-eye-settings-outline:before{content:"󰡮"}.mdi-eyedropper:before{content:"󰈊"}.mdi-eyedropper-minus:before{content:"󱏝"}.mdi-eyedropper-off:before{content:"󱏟"}.mdi-eyedropper-plus:before{content:"󱏜"}.mdi-eyedropper-remove:before{content:"󱏞"}.mdi-eyedropper-variant:before{content:"󰈋"}.mdi-face-agent:before{content:"󰵰"}.mdi-face-man:before{content:"󰙃"}.mdi-face-man-outline:before{content:"󰮖"}.mdi-face-man-profile:before{content:"󰙄"}.mdi-face-man-shimmer:before{content:"󱗌"}.mdi-face-man-shimmer-outline:before{content:"󱗍"}.mdi-face-mask:before{content:"󱖆"}.mdi-face-mask-outline:before{content:"󱖇"}.mdi-face-recognition:before{content:"󰱻"}.mdi-face-woman:before{content:"󱁷"}.mdi-face-woman-outline:before{content:"󱁸"}.mdi-face-woman-profile:before{content:"󱁶"}.mdi-face-woman-shimmer:before{content:"󱗎"}.mdi-face-woman-shimmer-outline:before{content:"󱗏"}.mdi-facebook:before{content:"󰈌"}.mdi-facebook-gaming:before{content:"󰟝"}.mdi-facebook-messenger:before{content:"󰈎"}.mdi-facebook-workplace:before{content:"󰬱"}.mdi-factory:before{content:"󰈏"}.mdi-family-tree:before{content:"󱘎"}.mdi-fan:before{content:"󰈐"}.mdi-fan-alert:before{content:"󱑬"}.mdi-fan-auto:before{content:"󱜝"}.mdi-fan-chevron-down:before{content:"󱑭"}.mdi-fan-chevron-up:before{content:"󱑮"}.mdi-fan-clock:before{content:"󱨺"}.mdi-fan-minus:before{content:"󱑰"}.mdi-fan-off:before{content:"󰠝"}.mdi-fan-plus:before{content:"󱑯"}.mdi-fan-remove:before{content:"󱑱"}.mdi-fan-speed-1:before{content:"󱑲"}.mdi-fan-speed-2:before{content:"󱑳"}.mdi-fan-speed-3:before{content:"󱑴"}.mdi-fast-forward:before{content:"󰈑"}.mdi-fast-forward-10:before{content:"󰵱"}.mdi-fast-forward-15:before{content:"󱤺"}.mdi-fast-forward-30:before{content:"󰴆"}.mdi-fast-forward-45:before{content:"󱬒"}.mdi-fast-forward-5:before{content:"󱇸"}.mdi-fast-forward-60:before{content:"󱘋"}.mdi-fast-forward-outline:before{content:"󰛒"}.mdi-faucet:before{content:"󱬩"}.mdi-faucet-variant:before{content:"󱬪"}.mdi-fax:before{content:"󰈒"}.mdi-feather:before{content:"󰛓"}.mdi-feature-search:before{content:"󰩉"}.mdi-feature-search-outline:before{content:"󰩊"}.mdi-fedora:before{content:"󰣛"}.mdi-fence:before{content:"󱞚"}.mdi-fence-electric:before{content:"󱟶"}.mdi-fencing:before{content:"󱓁"}.mdi-ferris-wheel:before{content:"󰺤"}.mdi-ferry:before{content:"󰈓"}.mdi-file:before{content:"󰈔"}.mdi-file-account:before{content:"󰜻"}.mdi-file-account-outline:before{content:"󱀨"}.mdi-file-alert:before{content:"󰩋"}.mdi-file-alert-outline:before{content:"󰩌"}.mdi-file-arrow-left-right:before{content:"󱪓"}.mdi-file-arrow-left-right-outline:before{content:"󱪔"}.mdi-file-arrow-up-down:before{content:"󱪕"}.mdi-file-arrow-up-down-outline:before{content:"󱪖"}.mdi-file-cabinet:before{content:"󰪶"}.mdi-file-cad:before{content:"󰻫"}.mdi-file-cad-box:before{content:"󰻬"}.mdi-file-cancel:before{content:"󰷆"}.mdi-file-cancel-outline:before{content:"󰷇"}.mdi-file-certificate:before{content:"󱆆"}.mdi-file-certificate-outline:before{content:"󱆇"}.mdi-file-chart:before{content:"󰈕"}.mdi-file-chart-check:before{content:"󱧆"}.mdi-file-chart-check-outline:before{content:"󱧇"}.mdi-file-chart-outline:before{content:"󱀩"}.mdi-file-check:before{content:"󰈖"}.mdi-file-check-outline:before{content:"󰸩"}.mdi-file-clock:before{content:"󱋡"}.mdi-file-clock-outline:before{content:"󱋢"}.mdi-file-cloud:before{content:"󰈗"}.mdi-file-cloud-outline:before{content:"󱀪"}.mdi-file-code:before{content:"󰈮"}.mdi-file-code-outline:before{content:"󱀫"}.mdi-file-cog:before{content:"󱁻"}.mdi-file-cog-outline:before{content:"󱁼"}.mdi-file-compare:before{content:"󰢪"}.mdi-file-delimited:before{content:"󰈘"}.mdi-file-delimited-outline:before{content:"󰺥"}.mdi-file-document:before{content:"󰈙"}.mdi-file-document-alert:before{content:"󱪗"}.mdi-file-document-alert-outline:before{content:"󱪘"}.mdi-file-document-arrow-right:before{content:"󱰏"}.mdi-file-document-arrow-right-outline:before{content:"󱰐"}.mdi-file-document-check:before{content:"󱪙"}.mdi-file-document-check-outline:before{content:"󱪚"}.mdi-file-document-edit:before{content:"󰷈"}.mdi-file-document-edit-outline:before{content:"󰷉"}.mdi-file-document-minus:before{content:"󱪛"}.mdi-file-document-minus-outline:before{content:"󱪜"}.mdi-file-document-multiple:before{content:"󱔗"}.mdi-file-document-multiple-outline:before{content:"󱔘"}.mdi-file-document-outline:before{content:"󰧮"}.mdi-file-document-plus:before{content:"󱪝"}.mdi-file-document-plus-outline:before{content:"󱪞"}.mdi-file-document-refresh:before{content:"󱱺"}.mdi-file-document-refresh-outline:before{content:"󱱻"}.mdi-file-document-remove:before{content:"󱪟"}.mdi-file-document-remove-outline:before{content:"󱪠"}.mdi-file-download:before{content:"󰥥"}.mdi-file-download-outline:before{content:"󰥦"}.mdi-file-edit:before{content:"󱇧"}.mdi-file-edit-outline:before{content:"󱇨"}.mdi-file-excel:before{content:"󰈛"}.mdi-file-excel-box:before{content:"󰈜"}.mdi-file-excel-box-outline:before{content:"󱀬"}.mdi-file-excel-outline:before{content:"󱀭"}.mdi-file-export:before{content:"󰈝"}.mdi-file-export-outline:before{content:"󱀮"}.mdi-file-eye:before{content:"󰷊"}.mdi-file-eye-outline:before{content:"󰷋"}.mdi-file-find:before{content:"󰈞"}.mdi-file-find-outline:before{content:"󰮗"}.mdi-file-gif-box:before{content:"󰵸"}.mdi-file-hidden:before{content:"󰘓"}.mdi-file-image:before{content:"󰈟"}.mdi-file-image-marker:before{content:"󱝲"}.mdi-file-image-marker-outline:before{content:"󱝳"}.mdi-file-image-minus:before{content:"󱤻"}.mdi-file-image-minus-outline:before{content:"󱤼"}.mdi-file-image-outline:before{content:"󰺰"}.mdi-file-image-plus:before{content:"󱤽"}.mdi-file-image-plus-outline:before{content:"󱤾"}.mdi-file-image-remove:before{content:"󱤿"}.mdi-file-image-remove-outline:before{content:"󱥀"}.mdi-file-import:before{content:"󰈠"}.mdi-file-import-outline:before{content:"󱀯"}.mdi-file-jpg-box:before{content:"󰈥"}.mdi-file-key:before{content:"󱆄"}.mdi-file-key-outline:before{content:"󱆅"}.mdi-file-link:before{content:"󱅷"}.mdi-file-link-outline:before{content:"󱅸"}.mdi-file-lock:before{content:"󰈡"}.mdi-file-lock-open:before{content:"󱧈"}.mdi-file-lock-open-outline:before{content:"󱧉"}.mdi-file-lock-outline:before{content:"󱀰"}.mdi-file-marker:before{content:"󱝴"}.mdi-file-marker-outline:before{content:"󱝵"}.mdi-file-minus:before{content:"󱪡"}.mdi-file-minus-outline:before{content:"󱪢"}.mdi-file-move:before{content:"󰪹"}.mdi-file-move-outline:before{content:"󱀱"}.mdi-file-multiple:before{content:"󰈢"}.mdi-file-multiple-outline:before{content:"󱀲"}.mdi-file-music:before{content:"󰈣"}.mdi-file-music-outline:before{content:"󰸪"}.mdi-file-outline:before{content:"󰈤"}.mdi-file-pdf-box:before{content:"󰈦"}.mdi-file-percent:before{content:"󰠞"}.mdi-file-percent-outline:before{content:"󱀳"}.mdi-file-phone:before{content:"󱅹"}.mdi-file-phone-outline:before{content:"󱅺"}.mdi-file-plus:before{content:"󰝒"}.mdi-file-plus-outline:before{content:"󰻭"}.mdi-file-png-box:before{content:"󰸭"}.mdi-file-powerpoint:before{content:"󰈧"}.mdi-file-powerpoint-box:before{content:"󰈨"}.mdi-file-powerpoint-box-outline:before{content:"󱀴"}.mdi-file-powerpoint-outline:before{content:"󱀵"}.mdi-file-presentation-box:before{content:"󰈩"}.mdi-file-question:before{content:"󰡯"}.mdi-file-question-outline:before{content:"󱀶"}.mdi-file-refresh:before{content:"󰤘"}.mdi-file-refresh-outline:before{content:"󰕁"}.mdi-file-remove:before{content:"󰮘"}.mdi-file-remove-outline:before{content:"󱀷"}.mdi-file-replace:before{content:"󰬲"}.mdi-file-replace-outline:before{content:"󰬳"}.mdi-file-restore:before{content:"󰙰"}.mdi-file-restore-outline:before{content:"󱀸"}.mdi-file-rotate-left:before{content:"󱨻"}.mdi-file-rotate-left-outline:before{content:"󱨼"}.mdi-file-rotate-right:before{content:"󱨽"}.mdi-file-rotate-right-outline:before{content:"󱨾"}.mdi-file-search:before{content:"󰱼"}.mdi-file-search-outline:before{content:"󰱽"}.mdi-file-send:before{content:"󰈪"}.mdi-file-send-outline:before{content:"󱀹"}.mdi-file-settings:before{content:"󱁹"}.mdi-file-settings-outline:before{content:"󱁺"}.mdi-file-sign:before{content:"󱧃"}.mdi-file-star:before{content:"󱀺"}.mdi-file-star-four-points:before{content:"󱰭"}.mdi-file-star-four-points-outline:before{content:"󱰮"}.mdi-file-star-outline:before{content:"󱀻"}.mdi-file-swap:before{content:"󰾴"}.mdi-file-swap-outline:before{content:"󰾵"}.mdi-file-sync:before{content:"󱈖"}.mdi-file-sync-outline:before{content:"󱈗"}.mdi-file-table:before{content:"󰱾"}.mdi-file-table-box:before{content:"󱃡"}.mdi-file-table-box-multiple:before{content:"󱃢"}.mdi-file-table-box-multiple-outline:before{content:"󱃣"}.mdi-file-table-box-outline:before{content:"󱃤"}.mdi-file-table-outline:before{content:"󰱿"}.mdi-file-tree:before{content:"󰙅"}.mdi-file-tree-outline:before{content:"󱏒"}.mdi-file-undo:before{content:"󰣜"}.mdi-file-undo-outline:before{content:"󱀼"}.mdi-file-upload:before{content:"󰩍"}.mdi-file-upload-outline:before{content:"󰩎"}.mdi-file-video:before{content:"󰈫"}.mdi-file-video-outline:before{content:"󰸬"}.mdi-file-word:before{content:"󰈬"}.mdi-file-word-box:before{content:"󰈭"}.mdi-file-word-box-outline:before{content:"󱀽"}.mdi-file-word-outline:before{content:"󱀾"}.mdi-file-xml-box:before{content:"󱭋"}.mdi-film:before{content:"󰈯"}.mdi-filmstrip:before{content:"󰈰"}.mdi-filmstrip-box:before{content:"󰌲"}.mdi-filmstrip-box-multiple:before{content:"󰴘"}.mdi-filmstrip-off:before{content:"󰈱"}.mdi-filter:before{content:"󰈲"}.mdi-filter-check:before{content:"󱣬"}.mdi-filter-check-outline:before{content:"󱣭"}.mdi-filter-cog:before{content:"󱪣"}.mdi-filter-cog-outline:before{content:"󱪤"}.mdi-filter-menu:before{content:"󱃥"}.mdi-filter-menu-outline:before{content:"󱃦"}.mdi-filter-minus:before{content:"󰻮"}.mdi-filter-minus-outline:before{content:"󰻯"}.mdi-filter-multiple:before{content:"󱨿"}.mdi-filter-multiple-outline:before{content:"󱩀"}.mdi-filter-off:before{content:"󱓯"}.mdi-filter-off-outline:before{content:"󱓰"}.mdi-filter-outline:before{content:"󰈳"}.mdi-filter-plus:before{content:"󰻰"}.mdi-filter-plus-outline:before{content:"󰻱"}.mdi-filter-remove:before{content:"󰈴"}.mdi-filter-remove-outline:before{content:"󰈵"}.mdi-filter-settings:before{content:"󱪥"}.mdi-filter-settings-outline:before{content:"󱪦"}.mdi-filter-variant:before{content:"󰈶"}.mdi-filter-variant-minus:before{content:"󱄒"}.mdi-filter-variant-plus:before{content:"󱄓"}.mdi-filter-variant-remove:before{content:"󱀿"}.mdi-finance:before{content:"󰠟"}.mdi-find-replace:before{content:"󰛔"}.mdi-fingerprint:before{content:"󰈷"}.mdi-fingerprint-off:before{content:"󰺱"}.mdi-fire:before{content:"󰈸"}.mdi-fire-alert:before{content:"󱗗"}.mdi-fire-circle:before{content:"󱠇"}.mdi-fire-extinguisher:before{content:"󰻲"}.mdi-fire-hydrant:before{content:"󱄷"}.mdi-fire-hydrant-alert:before{content:"󱄸"}.mdi-fire-hydrant-off:before{content:"󱄹"}.mdi-fire-off:before{content:"󱜢"}.mdi-fire-station:before{content:"󱳃"}.mdi-fire-truck:before{content:"󰢫"}.mdi-firebase:before{content:"󰥧"}.mdi-firefox:before{content:"󰈹"}.mdi-fireplace:before{content:"󰸮"}.mdi-fireplace-off:before{content:"󰸯"}.mdi-firewire:before{content:"󰖾"}.mdi-firework:before{content:"󰸰"}.mdi-firework-off:before{content:"󱜣"}.mdi-fish:before{content:"󰈺"}.mdi-fish-off:before{content:"󱏳"}.mdi-fishbowl:before{content:"󰻳"}.mdi-fishbowl-outline:before{content:"󰻴"}.mdi-fit-to-page:before{content:"󰻵"}.mdi-fit-to-page-outline:before{content:"󰻶"}.mdi-fit-to-screen:before{content:"󱣴"}.mdi-fit-to-screen-outline:before{content:"󱣵"}.mdi-flag:before{content:"󰈻"}.mdi-flag-checkered:before{content:"󰈼"}.mdi-flag-minus:before{content:"󰮙"}.mdi-flag-minus-outline:before{content:"󱂲"}.mdi-flag-off:before{content:"󱣮"}.mdi-flag-off-outline:before{content:"󱣯"}.mdi-flag-outline:before{content:"󰈽"}.mdi-flag-plus:before{content:"󰮚"}.mdi-flag-plus-outline:before{content:"󱂳"}.mdi-flag-remove:before{content:"󰮛"}.mdi-flag-remove-outline:before{content:"󱂴"}.mdi-flag-triangle:before{content:"󰈿"}.mdi-flag-variant:before{content:"󰉀"}.mdi-flag-variant-minus:before{content:"󱮴"}.mdi-flag-variant-minus-outline:before{content:"󱮵"}.mdi-flag-variant-off:before{content:"󱮰"}.mdi-flag-variant-off-outline:before{content:"󱮱"}.mdi-flag-variant-outline:before{content:"󰈾"}.mdi-flag-variant-plus:before{content:"󱮲"}.mdi-flag-variant-plus-outline:before{content:"󱮳"}.mdi-flag-variant-remove:before{content:"󱮶"}.mdi-flag-variant-remove-outline:before{content:"󱮷"}.mdi-flare:before{content:"󰵲"}.mdi-flash:before{content:"󰉁"}.mdi-flash-alert:before{content:"󰻷"}.mdi-flash-alert-outline:before{content:"󰻸"}.mdi-flash-auto:before{content:"󰉂"}.mdi-flash-off:before{content:"󰉃"}.mdi-flash-off-outline:before{content:"󱭅"}.mdi-flash-outline:before{content:"󰛕"}.mdi-flash-red-eye:before{content:"󰙻"}.mdi-flash-triangle:before{content:"󱬝"}.mdi-flash-triangle-outline:before{content:"󱬞"}.mdi-flashlight:before{content:"󰉄"}.mdi-flashlight-off:before{content:"󰉅"}.mdi-flask:before{content:"󰂓"}.mdi-flask-empty:before{content:"󰂔"}.mdi-flask-empty-minus:before{content:"󱈺"}.mdi-flask-empty-minus-outline:before{content:"󱈻"}.mdi-flask-empty-off:before{content:"󱏴"}.mdi-flask-empty-off-outline:before{content:"󱏵"}.mdi-flask-empty-outline:before{content:"󰂕"}.mdi-flask-empty-plus:before{content:"󱈼"}.mdi-flask-empty-plus-outline:before{content:"󱈽"}.mdi-flask-empty-remove:before{content:"󱈾"}.mdi-flask-empty-remove-outline:before{content:"󱈿"}.mdi-flask-minus:before{content:"󱉀"}.mdi-flask-minus-outline:before{content:"󱉁"}.mdi-flask-off:before{content:"󱏶"}.mdi-flask-off-outline:before{content:"󱏷"}.mdi-flask-outline:before{content:"󰂖"}.mdi-flask-plus:before{content:"󱉂"}.mdi-flask-plus-outline:before{content:"󱉃"}.mdi-flask-remove:before{content:"󱉄"}.mdi-flask-remove-outline:before{content:"󱉅"}.mdi-flask-round-bottom:before{content:"󱉋"}.mdi-flask-round-bottom-empty:before{content:"󱉌"}.mdi-flask-round-bottom-empty-outline:before{content:"󱉍"}.mdi-flask-round-bottom-outline:before{content:"󱉎"}.mdi-fleur-de-lis:before{content:"󱌃"}.mdi-flip-horizontal:before{content:"󱃧"}.mdi-flip-to-back:before{content:"󰉇"}.mdi-flip-to-front:before{content:"󰉈"}.mdi-flip-vertical:before{content:"󱃨"}.mdi-floor-lamp:before{content:"󰣝"}.mdi-floor-lamp-dual:before{content:"󱁀"}.mdi-floor-lamp-dual-outline:before{content:"󱟎"}.mdi-floor-lamp-outline:before{content:"󱟈"}.mdi-floor-lamp-torchiere:before{content:"󱝇"}.mdi-floor-lamp-torchiere-outline:before{content:"󱟖"}.mdi-floor-lamp-torchiere-variant:before{content:"󱁁"}.mdi-floor-lamp-torchiere-variant-outline:before{content:"󱟏"}.mdi-floor-plan:before{content:"󰠡"}.mdi-floppy:before{content:"󰉉"}.mdi-floppy-variant:before{content:"󰧯"}.mdi-flower:before{content:"󰉊"}.mdi-flower-outline:before{content:"󰧰"}.mdi-flower-pollen:before{content:"󱢅"}.mdi-flower-pollen-outline:before{content:"󱢆"}.mdi-flower-poppy:before{content:"󰴈"}.mdi-flower-tulip:before{content:"󰧱"}.mdi-flower-tulip-outline:before{content:"󰧲"}.mdi-focus-auto:before{content:"󰽎"}.mdi-focus-field:before{content:"󰽏"}.mdi-focus-field-horizontal:before{content:"󰽐"}.mdi-focus-field-vertical:before{content:"󰽑"}.mdi-folder:before{content:"󰉋"}.mdi-folder-account:before{content:"󰉌"}.mdi-folder-account-outline:before{content:"󰮜"}.mdi-folder-alert:before{content:"󰷌"}.mdi-folder-alert-outline:before{content:"󰷍"}.mdi-folder-arrow-down:before{content:"󱧨"}.mdi-folder-arrow-down-outline:before{content:"󱧩"}.mdi-folder-arrow-left:before{content:"󱧪"}.mdi-folder-arrow-left-outline:before{content:"󱧫"}.mdi-folder-arrow-left-right:before{content:"󱧬"}.mdi-folder-arrow-left-right-outline:before{content:"󱧭"}.mdi-folder-arrow-right:before{content:"󱧮"}.mdi-folder-arrow-right-outline:before{content:"󱧯"}.mdi-folder-arrow-up:before{content:"󱧰"}.mdi-folder-arrow-up-down:before{content:"󱧱"}.mdi-folder-arrow-up-down-outline:before{content:"󱧲"}.mdi-folder-arrow-up-outline:before{content:"󱧳"}.mdi-folder-cancel:before{content:"󱧴"}.mdi-folder-cancel-outline:before{content:"󱧵"}.mdi-folder-check:before{content:"󱥾"}.mdi-folder-check-outline:before{content:"󱥿"}.mdi-folder-clock:before{content:"󰪺"}.mdi-folder-clock-outline:before{content:"󰪻"}.mdi-folder-cog:before{content:"󱁿"}.mdi-folder-cog-outline:before{content:"󱂀"}.mdi-folder-download:before{content:"󰉍"}.mdi-folder-download-outline:before{content:"󱃩"}.mdi-folder-edit:before{content:"󰣞"}.mdi-folder-edit-outline:before{content:"󰷎"}.mdi-folder-eye:before{content:"󱞊"}.mdi-folder-eye-outline:before{content:"󱞋"}.mdi-folder-file:before{content:"󱧶"}.mdi-folder-file-outline:before{content:"󱧷"}.mdi-folder-google-drive:before{content:"󰉎"}.mdi-folder-heart:before{content:"󱃪"}.mdi-folder-heart-outline:before{content:"󱃫"}.mdi-folder-hidden:before{content:"󱞞"}.mdi-folder-home:before{content:"󱂵"}.mdi-folder-home-outline:before{content:"󱂶"}.mdi-folder-image:before{content:"󰉏"}.mdi-folder-information:before{content:"󱂷"}.mdi-folder-information-outline:before{content:"󱂸"}.mdi-folder-key:before{content:"󰢬"}.mdi-folder-key-network:before{content:"󰢭"}.mdi-folder-key-network-outline:before{content:"󰲀"}.mdi-folder-key-outline:before{content:"󱃬"}.mdi-folder-lock:before{content:"󰉐"}.mdi-folder-lock-open:before{content:"󰉑"}.mdi-folder-lock-open-outline:before{content:"󱪧"}.mdi-folder-lock-outline:before{content:"󱪨"}.mdi-folder-marker:before{content:"󱉭"}.mdi-folder-marker-outline:before{content:"󱉮"}.mdi-folder-minus:before{content:"󱭉"}.mdi-folder-minus-outline:before{content:"󱭊"}.mdi-folder-move:before{content:"󰉒"}.mdi-folder-move-outline:before{content:"󱉆"}.mdi-folder-multiple:before{content:"󰉓"}.mdi-folder-multiple-image:before{content:"󰉔"}.mdi-folder-multiple-outline:before{content:"󰉕"}.mdi-folder-multiple-plus:before{content:"󱑾"}.mdi-folder-multiple-plus-outline:before{content:"󱑿"}.mdi-folder-music:before{content:"󱍙"}.mdi-folder-music-outline:before{content:"󱍚"}.mdi-folder-network:before{content:"󰡰"}.mdi-folder-network-outline:before{content:"󰲁"}.mdi-folder-off:before{content:"󱧸"}.mdi-folder-off-outline:before{content:"󱧹"}.mdi-folder-open:before{content:"󰝰"}.mdi-folder-open-outline:before{content:"󰷏"}.mdi-folder-outline:before{content:"󰉖"}.mdi-folder-play:before{content:"󱧺"}.mdi-folder-play-outline:before{content:"󱧻"}.mdi-folder-plus:before{content:"󰉗"}.mdi-folder-plus-outline:before{content:"󰮝"}.mdi-folder-pound:before{content:"󰴉"}.mdi-folder-pound-outline:before{content:"󰴊"}.mdi-folder-question:before{content:"󱧊"}.mdi-folder-question-outline:before{content:"󱧋"}.mdi-folder-refresh:before{content:"󰝉"}.mdi-folder-refresh-outline:before{content:"󰕂"}.mdi-folder-remove:before{content:"󰉘"}.mdi-folder-remove-outline:before{content:"󰮞"}.mdi-folder-search:before{content:"󰥨"}.mdi-folder-search-outline:before{content:"󰥩"}.mdi-folder-settings:before{content:"󱁽"}.mdi-folder-settings-outline:before{content:"󱁾"}.mdi-folder-star:before{content:"󰚝"}.mdi-folder-star-multiple:before{content:"󱏓"}.mdi-folder-star-multiple-outline:before{content:"󱏔"}.mdi-folder-star-outline:before{content:"󰮟"}.mdi-folder-swap:before{content:"󰾶"}.mdi-folder-swap-outline:before{content:"󰾷"}.mdi-folder-sync:before{content:"󰴋"}.mdi-folder-sync-outline:before{content:"󰴌"}.mdi-folder-table:before{content:"󱋣"}.mdi-folder-table-outline:before{content:"󱋤"}.mdi-folder-text:before{content:"󰲂"}.mdi-folder-text-outline:before{content:"󰲃"}.mdi-folder-upload:before{content:"󰉙"}.mdi-folder-upload-outline:before{content:"󱃭"}.mdi-folder-wrench:before{content:"󱧼"}.mdi-folder-wrench-outline:before{content:"󱧽"}.mdi-folder-zip:before{content:"󰛫"}.mdi-folder-zip-outline:before{content:"󰞹"}.mdi-font-awesome:before{content:"󰀺"}.mdi-food:before{content:"󰉚"}.mdi-food-apple:before{content:"󰉛"}.mdi-food-apple-outline:before{content:"󰲄"}.mdi-food-croissant:before{content:"󰟈"}.mdi-food-drumstick:before{content:"󱐟"}.mdi-food-drumstick-off:before{content:"󱑨"}.mdi-food-drumstick-off-outline:before{content:"󱑩"}.mdi-food-drumstick-outline:before{content:"󱐠"}.mdi-food-fork-drink:before{content:"󰗲"}.mdi-food-halal:before{content:"󱕲"}.mdi-food-hot-dog:before{content:"󱡋"}.mdi-food-kosher:before{content:"󱕳"}.mdi-food-off:before{content:"󰗳"}.mdi-food-off-outline:before{content:"󱤕"}.mdi-food-outline:before{content:"󱤖"}.mdi-food-steak:before{content:"󱑪"}.mdi-food-steak-off:before{content:"󱑫"}.mdi-food-takeout-box:before{content:"󱠶"}.mdi-food-takeout-box-outline:before{content:"󱠷"}.mdi-food-turkey:before{content:"󱜜"}.mdi-food-variant:before{content:"󰉜"}.mdi-food-variant-off:before{content:"󱏥"}.mdi-foot-print:before{content:"󰽒"}.mdi-football:before{content:"󰉝"}.mdi-football-australian:before{content:"󰉞"}.mdi-football-helmet:before{content:"󰉟"}.mdi-forest:before{content:"󱢗"}.mdi-forest-outline:before{content:"󱱣"}.mdi-forklift:before{content:"󰟉"}.mdi-form-dropdown:before{content:"󱐀"}.mdi-form-select:before{content:"󱐁"}.mdi-form-textarea:before{content:"󱂕"}.mdi-form-textbox:before{content:"󰘎"}.mdi-form-textbox-lock:before{content:"󱍝"}.mdi-form-textbox-password:before{content:"󰟵"}.mdi-format-align-bottom:before{content:"󰝓"}.mdi-format-align-center:before{content:"󰉠"}.mdi-format-align-justify:before{content:"󰉡"}.mdi-format-align-left:before{content:"󰉢"}.mdi-format-align-middle:before{content:"󰝔"}.mdi-format-align-right:before{content:"󰉣"}.mdi-format-align-top:before{content:"󰝕"}.mdi-format-annotation-minus:before{content:"󰪼"}.mdi-format-annotation-plus:before{content:"󰙆"}.mdi-format-bold:before{content:"󰉤"}.mdi-format-clear:before{content:"󰉥"}.mdi-format-color-fill:before{content:"󰉦"}.mdi-format-color-highlight:before{content:"󰸱"}.mdi-format-color-marker-cancel:before{content:"󱌓"}.mdi-format-color-text:before{content:"󰚞"}.mdi-format-columns:before{content:"󰣟"}.mdi-format-float-center:before{content:"󰉧"}.mdi-format-float-left:before{content:"󰉨"}.mdi-format-float-none:before{content:"󰉩"}.mdi-format-float-right:before{content:"󰉪"}.mdi-format-font:before{content:"󰛖"}.mdi-format-font-size-decrease:before{content:"󰧳"}.mdi-format-font-size-increase:before{content:"󰧴"}.mdi-format-header-1:before{content:"󰉫"}.mdi-format-header-2:before{content:"󰉬"}.mdi-format-header-3:before{content:"󰉭"}.mdi-format-header-4:before{content:"󰉮"}.mdi-format-header-5:before{content:"󰉯"}.mdi-format-header-6:before{content:"󰉰"}.mdi-format-header-decrease:before{content:"󰉱"}.mdi-format-header-equal:before{content:"󰉲"}.mdi-format-header-increase:before{content:"󰉳"}.mdi-format-header-pound:before{content:"󰉴"}.mdi-format-horizontal-align-center:before{content:"󰘞"}.mdi-format-horizontal-align-left:before{content:"󰘟"}.mdi-format-horizontal-align-right:before{content:"󰘠"}.mdi-format-indent-decrease:before{content:"󰉵"}.mdi-format-indent-increase:before{content:"󰉶"}.mdi-format-italic:before{content:"󰉷"}.mdi-format-letter-case:before{content:"󰬴"}.mdi-format-letter-case-lower:before{content:"󰬵"}.mdi-format-letter-case-upper:before{content:"󰬶"}.mdi-format-letter-ends-with:before{content:"󰾸"}.mdi-format-letter-matches:before{content:"󰾹"}.mdi-format-letter-spacing:before{content:"󱥖"}.mdi-format-letter-spacing-variant:before{content:"󱫻"}.mdi-format-letter-starts-with:before{content:"󰾺"}.mdi-format-line-height:before{content:"󱫼"}.mdi-format-line-spacing:before{content:"󰉸"}.mdi-format-line-style:before{content:"󰗈"}.mdi-format-line-weight:before{content:"󰗉"}.mdi-format-list-bulleted:before{content:"󰉹"}.mdi-format-list-bulleted-square:before{content:"󰷐"}.mdi-format-list-bulleted-triangle:before{content:"󰺲"}.mdi-format-list-bulleted-type:before{content:"󰉺"}.mdi-format-list-checkbox:before{content:"󰥪"}.mdi-format-list-checks:before{content:"󰝖"}.mdi-format-list-group:before{content:"󱡠"}.mdi-format-list-group-plus:before{content:"󱭖"}.mdi-format-list-numbered:before{content:"󰉻"}.mdi-format-list-numbered-rtl:before{content:"󰴍"}.mdi-format-list-text:before{content:"󱉯"}.mdi-format-overline:before{content:"󰺳"}.mdi-format-page-break:before{content:"󰛗"}.mdi-format-page-split:before{content:"󱤗"}.mdi-format-paint:before{content:"󰉼"}.mdi-format-paragraph:before{content:"󰉽"}.mdi-format-paragraph-spacing:before{content:"󱫽"}.mdi-format-pilcrow:before{content:"󰛘"}.mdi-format-pilcrow-arrow-left:before{content:"󰊆"}.mdi-format-pilcrow-arrow-right:before{content:"󰊅"}.mdi-format-quote-close:before{content:"󰉾"}.mdi-format-quote-close-outline:before{content:"󱆨"}.mdi-format-quote-open:before{content:"󰝗"}.mdi-format-quote-open-outline:before{content:"󱆧"}.mdi-format-rotate-90:before{content:"󰚪"}.mdi-format-section:before{content:"󰚟"}.mdi-format-size:before{content:"󰉿"}.mdi-format-strikethrough:before{content:"󰊀"}.mdi-format-strikethrough-variant:before{content:"󰊁"}.mdi-format-subscript:before{content:"󰊂"}.mdi-format-superscript:before{content:"󰊃"}.mdi-format-text:before{content:"󰊄"}.mdi-format-text-rotation-angle-down:before{content:"󰾻"}.mdi-format-text-rotation-angle-up:before{content:"󰾼"}.mdi-format-text-rotation-down:before{content:"󰵳"}.mdi-format-text-rotation-down-vertical:before{content:"󰾽"}.mdi-format-text-rotation-none:before{content:"󰵴"}.mdi-format-text-rotation-up:before{content:"󰾾"}.mdi-format-text-rotation-vertical:before{content:"󰾿"}.mdi-format-text-variant:before{content:"󰸲"}.mdi-format-text-variant-outline:before{content:"󱔏"}.mdi-format-text-wrapping-clip:before{content:"󰴎"}.mdi-format-text-wrapping-overflow:before{content:"󰴏"}.mdi-format-text-wrapping-wrap:before{content:"󰴐"}.mdi-format-textbox:before{content:"󰴑"}.mdi-format-title:before{content:"󰗴"}.mdi-format-underline:before{content:"󰊇"}.mdi-format-underline-wavy:before{content:"󱣩"}.mdi-format-vertical-align-bottom:before{content:"󰘡"}.mdi-format-vertical-align-center:before{content:"󰘢"}.mdi-format-vertical-align-top:before{content:"󰘣"}.mdi-format-wrap-inline:before{content:"󰊈"}.mdi-format-wrap-square:before{content:"󰊉"}.mdi-format-wrap-tight:before{content:"󰊊"}.mdi-format-wrap-top-bottom:before{content:"󰊋"}.mdi-forum:before{content:"󰊌"}.mdi-forum-minus:before{content:"󱪩"}.mdi-forum-minus-outline:before{content:"󱪪"}.mdi-forum-outline:before{content:"󰠢"}.mdi-forum-plus:before{content:"󱪫"}.mdi-forum-plus-outline:before{content:"󱪬"}.mdi-forum-remove:before{content:"󱪭"}.mdi-forum-remove-outline:before{content:"󱪮"}.mdi-forward:before{content:"󰊍"}.mdi-forwardburger:before{content:"󰵵"}.mdi-fountain:before{content:"󰥫"}.mdi-fountain-pen:before{content:"󰴒"}.mdi-fountain-pen-tip:before{content:"󰴓"}.mdi-fraction-one-half:before{content:"󱦒"}.mdi-freebsd:before{content:"󰣠"}.mdi-french-fries:before{content:"󱥗"}.mdi-frequently-asked-questions:before{content:"󰺴"}.mdi-fridge:before{content:"󰊐"}.mdi-fridge-alert:before{content:"󱆱"}.mdi-fridge-alert-outline:before{content:"󱆲"}.mdi-fridge-bottom:before{content:"󰊒"}.mdi-fridge-industrial:before{content:"󱗮"}.mdi-fridge-industrial-alert:before{content:"󱗯"}.mdi-fridge-industrial-alert-outline:before{content:"󱗰"}.mdi-fridge-industrial-off:before{content:"󱗱"}.mdi-fridge-industrial-off-outline:before{content:"󱗲"}.mdi-fridge-industrial-outline:before{content:"󱗳"}.mdi-fridge-off:before{content:"󱆯"}.mdi-fridge-off-outline:before{content:"󱆰"}.mdi-fridge-outline:before{content:"󰊏"}.mdi-fridge-top:before{content:"󰊑"}.mdi-fridge-variant:before{content:"󱗴"}.mdi-fridge-variant-alert:before{content:"󱗵"}.mdi-fridge-variant-alert-outline:before{content:"󱗶"}.mdi-fridge-variant-off:before{content:"󱗷"}.mdi-fridge-variant-off-outline:before{content:"󱗸"}.mdi-fridge-variant-outline:before{content:"󱗹"}.mdi-fruit-cherries:before{content:"󱁂"}.mdi-fruit-cherries-off:before{content:"󱏸"}.mdi-fruit-citrus:before{content:"󱁃"}.mdi-fruit-citrus-off:before{content:"󱏹"}.mdi-fruit-grapes:before{content:"󱁄"}.mdi-fruit-grapes-outline:before{content:"󱁅"}.mdi-fruit-pear:before{content:"󱨎"}.mdi-fruit-pineapple:before{content:"󱁆"}.mdi-fruit-watermelon:before{content:"󱁇"}.mdi-fuel:before{content:"󰟊"}.mdi-fuel-cell:before{content:"󱢵"}.mdi-fullscreen:before{content:"󰊓"}.mdi-fullscreen-exit:before{content:"󰊔"}.mdi-function:before{content:"󰊕"}.mdi-function-variant:before{content:"󰡱"}.mdi-furigana-horizontal:before{content:"󱂁"}.mdi-furigana-vertical:before{content:"󱂂"}.mdi-fuse:before{content:"󰲅"}.mdi-fuse-alert:before{content:"󱐭"}.mdi-fuse-blade:before{content:"󰲆"}.mdi-fuse-off:before{content:"󱐬"}.mdi-gamepad:before{content:"󰊖"}.mdi-gamepad-circle:before{content:"󰸳"}.mdi-gamepad-circle-down:before{content:"󰸴"}.mdi-gamepad-circle-left:before{content:"󰸵"}.mdi-gamepad-circle-outline:before{content:"󰸶"}.mdi-gamepad-circle-right:before{content:"󰸷"}.mdi-gamepad-circle-up:before{content:"󰸸"}.mdi-gamepad-down:before{content:"󰸹"}.mdi-gamepad-left:before{content:"󰸺"}.mdi-gamepad-outline:before{content:"󱤙"}.mdi-gamepad-right:before{content:"󰸻"}.mdi-gamepad-round:before{content:"󰸼"}.mdi-gamepad-round-down:before{content:"󰸽"}.mdi-gamepad-round-left:before{content:"󰸾"}.mdi-gamepad-round-outline:before{content:"󰸿"}.mdi-gamepad-round-right:before{content:"󰹀"}.mdi-gamepad-round-up:before{content:"󰹁"}.mdi-gamepad-square:before{content:"󰺵"}.mdi-gamepad-square-outline:before{content:"󰺶"}.mdi-gamepad-up:before{content:"󰹂"}.mdi-gamepad-variant:before{content:"󰊗"}.mdi-gamepad-variant-outline:before{content:"󰺷"}.mdi-gamma:before{content:"󱃮"}.mdi-gantry-crane:before{content:"󰷑"}.mdi-garage:before{content:"󰛙"}.mdi-garage-alert:before{content:"󰡲"}.mdi-garage-alert-variant:before{content:"󱋕"}.mdi-garage-lock:before{content:"󱟻"}.mdi-garage-open:before{content:"󰛚"}.mdi-garage-open-variant:before{content:"󱋔"}.mdi-garage-variant:before{content:"󱋓"}.mdi-garage-variant-lock:before{content:"󱟼"}.mdi-gas-burner:before{content:"󱨛"}.mdi-gas-cylinder:before{content:"󰙇"}.mdi-gas-station:before{content:"󰊘"}.mdi-gas-station-in-use:before{content:"󱳄"}.mdi-gas-station-in-use-outline:before{content:"󱳅"}.mdi-gas-station-off:before{content:"󱐉"}.mdi-gas-station-off-outline:before{content:"󱐊"}.mdi-gas-station-outline:before{content:"󰺸"}.mdi-gate:before{content:"󰊙"}.mdi-gate-alert:before{content:"󱟸"}.mdi-gate-and:before{content:"󰣡"}.mdi-gate-arrow-left:before{content:"󱟷"}.mdi-gate-arrow-right:before{content:"󱅩"}.mdi-gate-buffer:before{content:"󱫾"}.mdi-gate-nand:before{content:"󰣢"}.mdi-gate-nor:before{content:"󰣣"}.mdi-gate-not:before{content:"󰣤"}.mdi-gate-open:before{content:"󱅪"}.mdi-gate-or:before{content:"󰣥"}.mdi-gate-xnor:before{content:"󰣦"}.mdi-gate-xor:before{content:"󰣧"}.mdi-gatsby:before{content:"󰹃"}.mdi-gauge:before{content:"󰊚"}.mdi-gauge-empty:before{content:"󰡳"}.mdi-gauge-full:before{content:"󰡴"}.mdi-gauge-low:before{content:"󰡵"}.mdi-gavel:before{content:"󰊛"}.mdi-gender-female:before{content:"󰊜"}.mdi-gender-male:before{content:"󰊝"}.mdi-gender-male-female:before{content:"󰊞"}.mdi-gender-male-female-variant:before{content:"󱄿"}.mdi-gender-non-binary:before{content:"󱅀"}.mdi-gender-transgender:before{content:"󰊟"}.mdi-generator-mobile:before{content:"󱲊"}.mdi-generator-portable:before{content:"󱲋"}.mdi-generator-stationary:before{content:"󱲌"}.mdi-gentoo:before{content:"󰣨"}.mdi-gesture:before{content:"󰟋"}.mdi-gesture-double-tap:before{content:"󰜼"}.mdi-gesture-pinch:before{content:"󰪽"}.mdi-gesture-spread:before{content:"󰪾"}.mdi-gesture-swipe:before{content:"󰵶"}.mdi-gesture-swipe-down:before{content:"󰜽"}.mdi-gesture-swipe-horizontal:before{content:"󰪿"}.mdi-gesture-swipe-left:before{content:"󰜾"}.mdi-gesture-swipe-right:before{content:"󰜿"}.mdi-gesture-swipe-up:before{content:"󰝀"}.mdi-gesture-swipe-vertical:before{content:"󰫀"}.mdi-gesture-tap:before{content:"󰝁"}.mdi-gesture-tap-box:before{content:"󱊩"}.mdi-gesture-tap-button:before{content:"󱊨"}.mdi-gesture-tap-hold:before{content:"󰵷"}.mdi-gesture-two-double-tap:before{content:"󰝂"}.mdi-gesture-two-tap:before{content:"󰝃"}.mdi-ghost:before{content:"󰊠"}.mdi-ghost-off:before{content:"󰧵"}.mdi-ghost-off-outline:before{content:"󱙜"}.mdi-ghost-outline:before{content:"󱙝"}.mdi-gift:before{content:"󰹄"}.mdi-gift-off:before{content:"󱛯"}.mdi-gift-off-outline:before{content:"󱛰"}.mdi-gift-open:before{content:"󱛱"}.mdi-gift-open-outline:before{content:"󱛲"}.mdi-gift-outline:before{content:"󰊡"}.mdi-git:before{content:"󰊢"}.mdi-github:before{content:"󰊤"}.mdi-gitlab:before{content:"󰮠"}.mdi-glass-cocktail:before{content:"󰍖"}.mdi-glass-cocktail-off:before{content:"󱗦"}.mdi-glass-flute:before{content:"󰊥"}.mdi-glass-fragile:before{content:"󱡳"}.mdi-glass-mug:before{content:"󰊦"}.mdi-glass-mug-off:before{content:"󱗧"}.mdi-glass-mug-variant:before{content:"󱄖"}.mdi-glass-mug-variant-off:before{content:"󱗨"}.mdi-glass-pint-outline:before{content:"󱌍"}.mdi-glass-stange:before{content:"󰊧"}.mdi-glass-tulip:before{content:"󰊨"}.mdi-glass-wine:before{content:"󰡶"}.mdi-glasses:before{content:"󰊪"}.mdi-globe-light:before{content:"󰙯"}.mdi-globe-light-outline:before{content:"󱋗"}.mdi-globe-model:before{content:"󰣩"}.mdi-gmail:before{content:"󰊫"}.mdi-gnome:before{content:"󰊬"}.mdi-go-kart:before{content:"󰵹"}.mdi-go-kart-track:before{content:"󰵺"}.mdi-gog:before{content:"󰮡"}.mdi-gold:before{content:"󱉏"}.mdi-golf:before{content:"󰠣"}.mdi-golf-cart:before{content:"󱆤"}.mdi-golf-tee:before{content:"󱂃"}.mdi-gondola:before{content:"󰚆"}.mdi-goodreads:before{content:"󰵻"}.mdi-google:before{content:"󰊭"}.mdi-google-ads:before{content:"󰲇"}.mdi-google-analytics:before{content:"󰟌"}.mdi-google-assistant:before{content:"󰟍"}.mdi-google-cardboard:before{content:"󰊮"}.mdi-google-chrome:before{content:"󰊯"}.mdi-google-circles:before{content:"󰊰"}.mdi-google-circles-communities:before{content:"󰊱"}.mdi-google-circles-extended:before{content:"󰊲"}.mdi-google-circles-group:before{content:"󰊳"}.mdi-google-classroom:before{content:"󰋀"}.mdi-google-cloud:before{content:"󱇶"}.mdi-google-downasaur:before{content:"󱍢"}.mdi-google-drive:before{content:"󰊶"}.mdi-google-earth:before{content:"󰊷"}.mdi-google-fit:before{content:"󰥬"}.mdi-google-glass:before{content:"󰊸"}.mdi-google-hangouts:before{content:"󰋉"}.mdi-google-keep:before{content:"󰛜"}.mdi-google-lens:before{content:"󰧶"}.mdi-google-maps:before{content:"󰗵"}.mdi-google-my-business:before{content:"󱁈"}.mdi-google-nearby:before{content:"󰊹"}.mdi-google-play:before{content:"󰊼"}.mdi-google-plus:before{content:"󰊽"}.mdi-google-podcast:before{content:"󰺹"}.mdi-google-spreadsheet:before{content:"󰧷"}.mdi-google-street-view:before{content:"󰲈"}.mdi-google-translate:before{content:"󰊿"}.mdi-gradient-horizontal:before{content:"󱝊"}.mdi-gradient-vertical:before{content:"󰚠"}.mdi-grain:before{content:"󰵼"}.mdi-graph:before{content:"󱁉"}.mdi-graph-outline:before{content:"󱁊"}.mdi-graphql:before{content:"󰡷"}.mdi-grass:before{content:"󱔐"}.mdi-grave-stone:before{content:"󰮢"}.mdi-grease-pencil:before{content:"󰙈"}.mdi-greater-than:before{content:"󰥭"}.mdi-greater-than-or-equal:before{content:"󰥮"}.mdi-greenhouse:before{content:"󰀭"}.mdi-grid:before{content:"󰋁"}.mdi-grid-large:before{content:"󰝘"}.mdi-grid-off:before{content:"󰋂"}.mdi-grill:before{content:"󰹅"}.mdi-grill-outline:before{content:"󱆊"}.mdi-group:before{content:"󰋃"}.mdi-guitar-acoustic:before{content:"󰝱"}.mdi-guitar-electric:before{content:"󰋄"}.mdi-guitar-pick:before{content:"󰋅"}.mdi-guitar-pick-outline:before{content:"󰋆"}.mdi-guy-fawkes-mask:before{content:"󰠥"}.mdi-gymnastics:before{content:"󱩁"}.mdi-hail:before{content:"󰫁"}.mdi-hair-dryer:before{content:"󱃯"}.mdi-hair-dryer-outline:before{content:"󱃰"}.mdi-halloween:before{content:"󰮣"}.mdi-hamburger:before{content:"󰚅"}.mdi-hamburger-check:before{content:"󱝶"}.mdi-hamburger-minus:before{content:"󱝷"}.mdi-hamburger-off:before{content:"󱝸"}.mdi-hamburger-plus:before{content:"󱝹"}.mdi-hamburger-remove:before{content:"󱝺"}.mdi-hammer:before{content:"󰣪"}.mdi-hammer-screwdriver:before{content:"󱌢"}.mdi-hammer-sickle:before{content:"󱢇"}.mdi-hammer-wrench:before{content:"󱌣"}.mdi-hand-back-left:before{content:"󰹆"}.mdi-hand-back-left-off:before{content:"󱠰"}.mdi-hand-back-left-off-outline:before{content:"󱠲"}.mdi-hand-back-left-outline:before{content:"󱠬"}.mdi-hand-back-right:before{content:"󰹇"}.mdi-hand-back-right-off:before{content:"󱠱"}.mdi-hand-back-right-off-outline:before{content:"󱠳"}.mdi-hand-back-right-outline:before{content:"󱠭"}.mdi-hand-clap:before{content:"󱥋"}.mdi-hand-clap-off:before{content:"󱩂"}.mdi-hand-coin:before{content:"󱢏"}.mdi-hand-coin-outline:before{content:"󱢐"}.mdi-hand-cycle:before{content:"󱮜"}.mdi-hand-extended:before{content:"󱢶"}.mdi-hand-extended-outline:before{content:"󱢷"}.mdi-hand-front-left:before{content:"󱠫"}.mdi-hand-front-left-outline:before{content:"󱠮"}.mdi-hand-front-right:before{content:"󰩏"}.mdi-hand-front-right-outline:before{content:"󱠯"}.mdi-hand-heart:before{content:"󱃱"}.mdi-hand-heart-outline:before{content:"󱕾"}.mdi-hand-okay:before{content:"󰩐"}.mdi-hand-peace:before{content:"󰩑"}.mdi-hand-peace-variant:before{content:"󰩒"}.mdi-hand-pointing-down:before{content:"󰩓"}.mdi-hand-pointing-left:before{content:"󰩔"}.mdi-hand-pointing-right:before{content:"󰋇"}.mdi-hand-pointing-up:before{content:"󰩕"}.mdi-hand-saw:before{content:"󰹈"}.mdi-hand-wash:before{content:"󱕿"}.mdi-hand-wash-outline:before{content:"󱖀"}.mdi-hand-water:before{content:"󱎟"}.mdi-hand-wave:before{content:"󱠡"}.mdi-hand-wave-outline:before{content:"󱠢"}.mdi-handball:before{content:"󰽓"}.mdi-handcuffs:before{content:"󱄾"}.mdi-hands-pray:before{content:"󰕹"}.mdi-handshake:before{content:"󱈘"}.mdi-handshake-outline:before{content:"󱖡"}.mdi-hanger:before{content:"󰋈"}.mdi-hard-hat:before{content:"󰥯"}.mdi-harddisk:before{content:"󰋊"}.mdi-harddisk-plus:before{content:"󱁋"}.mdi-harddisk-remove:before{content:"󱁌"}.mdi-hat-fedora:before{content:"󰮤"}.mdi-hazard-lights:before{content:"󰲉"}.mdi-hdmi-port:before{content:"󱮸"}.mdi-hdr:before{content:"󰵽"}.mdi-hdr-off:before{content:"󰵾"}.mdi-head:before{content:"󱍞"}.mdi-head-alert:before{content:"󱌸"}.mdi-head-alert-outline:before{content:"󱌹"}.mdi-head-check:before{content:"󱌺"}.mdi-head-check-outline:before{content:"󱌻"}.mdi-head-cog:before{content:"󱌼"}.mdi-head-cog-outline:before{content:"󱌽"}.mdi-head-dots-horizontal:before{content:"󱌾"}.mdi-head-dots-horizontal-outline:before{content:"󱌿"}.mdi-head-flash:before{content:"󱍀"}.mdi-head-flash-outline:before{content:"󱍁"}.mdi-head-heart:before{content:"󱍂"}.mdi-head-heart-outline:before{content:"󱍃"}.mdi-head-lightbulb:before{content:"󱍄"}.mdi-head-lightbulb-outline:before{content:"󱍅"}.mdi-head-minus:before{content:"󱍆"}.mdi-head-minus-outline:before{content:"󱍇"}.mdi-head-outline:before{content:"󱍟"}.mdi-head-plus:before{content:"󱍈"}.mdi-head-plus-outline:before{content:"󱍉"}.mdi-head-question:before{content:"󱍊"}.mdi-head-question-outline:before{content:"󱍋"}.mdi-head-remove:before{content:"󱍌"}.mdi-head-remove-outline:before{content:"󱍍"}.mdi-head-snowflake:before{content:"󱍎"}.mdi-head-snowflake-outline:before{content:"󱍏"}.mdi-head-sync:before{content:"󱍐"}.mdi-head-sync-outline:before{content:"󱍑"}.mdi-headphones:before{content:"󰋋"}.mdi-headphones-bluetooth:before{content:"󰥰"}.mdi-headphones-box:before{content:"󰋌"}.mdi-headphones-off:before{content:"󰟎"}.mdi-headphones-settings:before{content:"󰋍"}.mdi-headset:before{content:"󰋎"}.mdi-headset-dock:before{content:"󰋏"}.mdi-headset-off:before{content:"󰋐"}.mdi-heart:before{content:"󰋑"}.mdi-heart-box:before{content:"󰋒"}.mdi-heart-box-outline:before{content:"󰋓"}.mdi-heart-broken:before{content:"󰋔"}.mdi-heart-broken-outline:before{content:"󰴔"}.mdi-heart-circle:before{content:"󰥱"}.mdi-heart-circle-outline:before{content:"󰥲"}.mdi-heart-cog:before{content:"󱙣"}.mdi-heart-cog-outline:before{content:"󱙤"}.mdi-heart-flash:before{content:"󰻹"}.mdi-heart-half:before{content:"󰛟"}.mdi-heart-half-full:before{content:"󰛞"}.mdi-heart-half-outline:before{content:"󰛠"}.mdi-heart-minus:before{content:"󱐯"}.mdi-heart-minus-outline:before{content:"󱐲"}.mdi-heart-multiple:before{content:"󰩖"}.mdi-heart-multiple-outline:before{content:"󰩗"}.mdi-heart-off:before{content:"󰝙"}.mdi-heart-off-outline:before{content:"󱐴"}.mdi-heart-outline:before{content:"󰋕"}.mdi-heart-plus:before{content:"󱐮"}.mdi-heart-plus-outline:before{content:"󱐱"}.mdi-heart-pulse:before{content:"󰗶"}.mdi-heart-remove:before{content:"󱐰"}.mdi-heart-remove-outline:before{content:"󱐳"}.mdi-heart-search:before{content:"󱲍"}.mdi-heart-settings:before{content:"󱙥"}.mdi-heart-settings-outline:before{content:"󱙦"}.mdi-heat-pump:before{content:"󱩃"}.mdi-heat-pump-outline:before{content:"󱩄"}.mdi-heat-wave:before{content:"󱩅"}.mdi-heating-coil:before{content:"󱪯"}.mdi-helicopter:before{content:"󰫂"}.mdi-help:before{content:"󰋖"}.mdi-help-box:before{content:"󰞋"}.mdi-help-box-multiple:before{content:"󱰊"}.mdi-help-box-multiple-outline:before{content:"󱰋"}.mdi-help-box-outline:before{content:"󱰌"}.mdi-help-circle:before{content:"󰋗"}.mdi-help-circle-outline:before{content:"󰘥"}.mdi-help-network:before{content:"󰛵"}.mdi-help-network-outline:before{content:"󰲊"}.mdi-help-rhombus:before{content:"󰮥"}.mdi-help-rhombus-outline:before{content:"󰮦"}.mdi-hexadecimal:before{content:"󱊧"}.mdi-hexagon:before{content:"󰋘"}.mdi-hexagon-multiple:before{content:"󰛡"}.mdi-hexagon-multiple-outline:before{content:"󱃲"}.mdi-hexagon-outline:before{content:"󰋙"}.mdi-hexagon-slice-1:before{content:"󰫃"}.mdi-hexagon-slice-2:before{content:"󰫄"}.mdi-hexagon-slice-3:before{content:"󰫅"}.mdi-hexagon-slice-4:before{content:"󰫆"}.mdi-hexagon-slice-5:before{content:"󰫇"}.mdi-hexagon-slice-6:before{content:"󰫈"}.mdi-hexagram:before{content:"󰫉"}.mdi-hexagram-outline:before{content:"󰫊"}.mdi-high-definition:before{content:"󰟏"}.mdi-high-definition-box:before{content:"󰡸"}.mdi-highway:before{content:"󰗷"}.mdi-hiking:before{content:"󰵿"}.mdi-history:before{content:"󰋚"}.mdi-hockey-puck:before{content:"󰡹"}.mdi-hockey-sticks:before{content:"󰡺"}.mdi-hololens:before{content:"󰋛"}.mdi-home:before{content:"󰋜"}.mdi-home-account:before{content:"󰠦"}.mdi-home-alert:before{content:"󰡻"}.mdi-home-alert-outline:before{content:"󱗐"}.mdi-home-analytics:before{content:"󰺺"}.mdi-home-assistant:before{content:"󰟐"}.mdi-home-automation:before{content:"󰟑"}.mdi-home-battery:before{content:"󱤁"}.mdi-home-battery-outline:before{content:"󱤂"}.mdi-home-circle:before{content:"󰟒"}.mdi-home-circle-outline:before{content:"󱁍"}.mdi-home-city:before{content:"󰴕"}.mdi-home-city-outline:before{content:"󰴖"}.mdi-home-clock:before{content:"󱨒"}.mdi-home-clock-outline:before{content:"󱨓"}.mdi-home-edit:before{content:"󱅙"}.mdi-home-edit-outline:before{content:"󱅚"}.mdi-home-export-outline:before{content:"󰾛"}.mdi-home-flood:before{content:"󰻺"}.mdi-home-floor-0:before{content:"󰷒"}.mdi-home-floor-1:before{content:"󰶀"}.mdi-home-floor-2:before{content:"󰶁"}.mdi-home-floor-3:before{content:"󰶂"}.mdi-home-floor-a:before{content:"󰶃"}.mdi-home-floor-b:before{content:"󰶄"}.mdi-home-floor-g:before{content:"󰶅"}.mdi-home-floor-l:before{content:"󰶆"}.mdi-home-floor-negative-1:before{content:"󰷓"}.mdi-home-group:before{content:"󰷔"}.mdi-home-group-minus:before{content:"󱧁"}.mdi-home-group-plus:before{content:"󱧀"}.mdi-home-group-remove:before{content:"󱧂"}.mdi-home-heart:before{content:"󰠧"}.mdi-home-import-outline:before{content:"󰾜"}.mdi-home-lightbulb:before{content:"󱉑"}.mdi-home-lightbulb-outline:before{content:"󱉒"}.mdi-home-lightning-bolt:before{content:"󱤃"}.mdi-home-lightning-bolt-outline:before{content:"󱤄"}.mdi-home-lock:before{content:"󰣫"}.mdi-home-lock-open:before{content:"󰣬"}.mdi-home-map-marker:before{content:"󰗸"}.mdi-home-minus:before{content:"󰥴"}.mdi-home-minus-outline:before{content:"󱏕"}.mdi-home-modern:before{content:"󰋝"}.mdi-home-off:before{content:"󱩆"}.mdi-home-off-outline:before{content:"󱩇"}.mdi-home-outline:before{content:"󰚡"}.mdi-home-percent:before{content:"󱱼"}.mdi-home-percent-outline:before{content:"󱱽"}.mdi-home-plus:before{content:"󰥵"}.mdi-home-plus-outline:before{content:"󱏖"}.mdi-home-remove:before{content:"󱉇"}.mdi-home-remove-outline:before{content:"󱏗"}.mdi-home-roof:before{content:"󱄫"}.mdi-home-search:before{content:"󱎰"}.mdi-home-search-outline:before{content:"󱎱"}.mdi-home-silo:before{content:"󱮠"}.mdi-home-silo-outline:before{content:"󱮡"}.mdi-home-sound-in:before{content:"󱰯"}.mdi-home-sound-in-outline:before{content:"󱰰"}.mdi-home-sound-out:before{content:"󱰱"}.mdi-home-sound-out-outline:before{content:"󱰲"}.mdi-home-switch:before{content:"󱞔"}.mdi-home-switch-outline:before{content:"󱞕"}.mdi-home-thermometer:before{content:"󰽔"}.mdi-home-thermometer-outline:before{content:"󰽕"}.mdi-home-variant:before{content:"󰋞"}.mdi-home-variant-outline:before{content:"󰮧"}.mdi-hook:before{content:"󰛢"}.mdi-hook-off:before{content:"󰛣"}.mdi-hoop-house:before{content:"󰹖"}.mdi-hops:before{content:"󰋟"}.mdi-horizontal-rotate-clockwise:before{content:"󱃳"}.mdi-horizontal-rotate-counterclockwise:before{content:"󱃴"}.mdi-horse:before{content:"󱖿"}.mdi-horse-human:before{content:"󱗀"}.mdi-horse-variant:before{content:"󱗁"}.mdi-horse-variant-fast:before{content:"󱡮"}.mdi-horseshoe:before{content:"󰩘"}.mdi-hospital:before{content:"󰿶"}.mdi-hospital-box:before{content:"󰋠"}.mdi-hospital-box-outline:before{content:"󰿷"}.mdi-hospital-building:before{content:"󰋡"}.mdi-hospital-marker:before{content:"󰋢"}.mdi-hot-tub:before{content:"󰠨"}.mdi-hours-12:before{content:"󱲔"}.mdi-hours-24:before{content:"󱑸"}.mdi-hub:before{content:"󱲕"}.mdi-hub-outline:before{content:"󱲖"}.mdi-hubspot:before{content:"󰴗"}.mdi-hulu:before{content:"󰠩"}.mdi-human:before{content:"󰋦"}.mdi-human-baby-changing-table:before{content:"󱎋"}.mdi-human-cane:before{content:"󱖁"}.mdi-human-capacity-decrease:before{content:"󱖛"}.mdi-human-capacity-increase:before{content:"󱖜"}.mdi-human-child:before{content:"󰋧"}.mdi-human-dolly:before{content:"󱦀"}.mdi-human-edit:before{content:"󱓨"}.mdi-human-female:before{content:"󰙉"}.mdi-human-female-boy:before{content:"󰩙"}.mdi-human-female-dance:before{content:"󱗉"}.mdi-human-female-female:before{content:"󰩚"}.mdi-human-female-female-child:before{content:"󱲎"}.mdi-human-female-girl:before{content:"󰩛"}.mdi-human-greeting:before{content:"󱟄"}.mdi-human-greeting-proximity:before{content:"󱖝"}.mdi-human-greeting-variant:before{content:"󰙊"}.mdi-human-handsdown:before{content:"󰙋"}.mdi-human-handsup:before{content:"󰙌"}.mdi-human-male:before{content:"󰙍"}.mdi-human-male-board:before{content:"󰢐"}.mdi-human-male-board-poll:before{content:"󰡆"}.mdi-human-male-boy:before{content:"󰩜"}.mdi-human-male-child:before{content:"󱎌"}.mdi-human-male-female:before{content:"󰋨"}.mdi-human-male-female-child:before{content:"󱠣"}.mdi-human-male-girl:before{content:"󰩝"}.mdi-human-male-height:before{content:"󰻻"}.mdi-human-male-height-variant:before{content:"󰻼"}.mdi-human-male-male:before{content:"󰩞"}.mdi-human-male-male-child:before{content:"󱲏"}.mdi-human-non-binary:before{content:"󱡈"}.mdi-human-pregnant:before{content:"󰗏"}.mdi-human-queue:before{content:"󱕱"}.mdi-human-scooter:before{content:"󱇩"}.mdi-human-walker:before{content:"󱭱"}.mdi-human-wheelchair:before{content:"󱎍"}.mdi-human-white-cane:before{content:"󱦁"}.mdi-humble-bundle:before{content:"󰝄"}.mdi-hvac:before{content:"󱍒"}.mdi-hvac-off:before{content:"󱖞"}.mdi-hydraulic-oil-level:before{content:"󱌤"}.mdi-hydraulic-oil-temperature:before{content:"󱌥"}.mdi-hydro-power:before{content:"󱋥"}.mdi-hydrogen-station:before{content:"󱢔"}.mdi-ice-cream:before{content:"󰠪"}.mdi-ice-cream-off:before{content:"󰹒"}.mdi-ice-pop:before{content:"󰻽"}.mdi-id-card:before{content:"󰿀"}.mdi-identifier:before{content:"󰻾"}.mdi-ideogram-cjk:before{content:"󱌱"}.mdi-ideogram-cjk-variant:before{content:"󱌲"}.mdi-image:before{content:"󰋩"}.mdi-image-album:before{content:"󰋪"}.mdi-image-area:before{content:"󰋫"}.mdi-image-area-close:before{content:"󰋬"}.mdi-image-auto-adjust:before{content:"󰿁"}.mdi-image-broken:before{content:"󰋭"}.mdi-image-broken-variant:before{content:"󰋮"}.mdi-image-check:before{content:"󱬥"}.mdi-image-check-outline:before{content:"󱬦"}.mdi-image-edit:before{content:"󱇣"}.mdi-image-edit-outline:before{content:"󱇤"}.mdi-image-filter-black-white:before{content:"󰋰"}.mdi-image-filter-center-focus:before{content:"󰋱"}.mdi-image-filter-center-focus-strong:before{content:"󰻿"}.mdi-image-filter-center-focus-strong-outline:before{content:"󰼀"}.mdi-image-filter-center-focus-weak:before{content:"󰋲"}.mdi-image-filter-drama:before{content:"󰋳"}.mdi-image-filter-drama-outline:before{content:"󱯿"}.mdi-image-filter-frames:before{content:"󰋴"}.mdi-image-filter-hdr:before{content:"󰋵"}.mdi-image-filter-hdr-outline:before{content:"󱱤"}.mdi-image-filter-none:before{content:"󰋶"}.mdi-image-filter-tilt-shift:before{content:"󰋷"}.mdi-image-filter-vintage:before{content:"󰋸"}.mdi-image-frame:before{content:"󰹉"}.mdi-image-lock:before{content:"󱪰"}.mdi-image-lock-outline:before{content:"󱪱"}.mdi-image-marker:before{content:"󱝻"}.mdi-image-marker-outline:before{content:"󱝼"}.mdi-image-minus:before{content:"󱐙"}.mdi-image-minus-outline:before{content:"󱭇"}.mdi-image-move:before{content:"󰧸"}.mdi-image-multiple:before{content:"󰋹"}.mdi-image-multiple-outline:before{content:"󰋯"}.mdi-image-off:before{content:"󰠫"}.mdi-image-off-outline:before{content:"󱇑"}.mdi-image-outline:before{content:"󰥶"}.mdi-image-plus:before{content:"󰡼"}.mdi-image-plus-outline:before{content:"󱭆"}.mdi-image-refresh:before{content:"󱧾"}.mdi-image-refresh-outline:before{content:"󱧿"}.mdi-image-remove:before{content:"󱐘"}.mdi-image-remove-outline:before{content:"󱭈"}.mdi-image-search:before{content:"󰥷"}.mdi-image-search-outline:before{content:"󰥸"}.mdi-image-size-select-actual:before{content:"󰲍"}.mdi-image-size-select-large:before{content:"󰲎"}.mdi-image-size-select-small:before{content:"󰲏"}.mdi-image-sync:before{content:"󱨀"}.mdi-image-sync-outline:before{content:"󱨁"}.mdi-image-text:before{content:"󱘍"}.mdi-import:before{content:"󰋺"}.mdi-inbox:before{content:"󰚇"}.mdi-inbox-arrow-down:before{content:"󰋻"}.mdi-inbox-arrow-down-outline:before{content:"󱉰"}.mdi-inbox-arrow-up:before{content:"󰏑"}.mdi-inbox-arrow-up-outline:before{content:"󱉱"}.mdi-inbox-full:before{content:"󱉲"}.mdi-inbox-full-outline:before{content:"󱉳"}.mdi-inbox-multiple:before{content:"󰢰"}.mdi-inbox-multiple-outline:before{content:"󰮨"}.mdi-inbox-outline:before{content:"󱉴"}.mdi-inbox-remove:before{content:"󱖟"}.mdi-inbox-remove-outline:before{content:"󱖠"}.mdi-incognito:before{content:"󰗹"}.mdi-incognito-circle:before{content:"󱐡"}.mdi-incognito-circle-off:before{content:"󱐢"}.mdi-incognito-off:before{content:"󰁵"}.mdi-induction:before{content:"󱡌"}.mdi-infinity:before{content:"󰛤"}.mdi-information:before{content:"󰋼"}.mdi-information-box:before{content:"󱱥"}.mdi-information-box-outline:before{content:"󱱦"}.mdi-information-off:before{content:"󱞌"}.mdi-information-off-outline:before{content:"󱞍"}.mdi-information-outline:before{content:"󰋽"}.mdi-information-slab-box:before{content:"󱱧"}.mdi-information-slab-box-outline:before{content:"󱱨"}.mdi-information-slab-circle:before{content:"󱱩"}.mdi-information-slab-circle-outline:before{content:"󱱪"}.mdi-information-slab-symbol:before{content:"󱱫"}.mdi-information-symbol:before{content:"󱱬"}.mdi-information-variant:before{content:"󰙎"}.mdi-information-variant-box:before{content:"󱱭"}.mdi-information-variant-box-outline:before{content:"󱱮"}.mdi-information-variant-circle:before{content:"󱱯"}.mdi-information-variant-circle-outline:before{content:"󱱰"}.mdi-instagram:before{content:"󰋾"}.mdi-instrument-triangle:before{content:"󱁎"}.mdi-integrated-circuit-chip:before{content:"󱤓"}.mdi-invert-colors:before{content:"󰌁"}.mdi-invert-colors-off:before{content:"󰹊"}.mdi-iobroker:before{content:"󱋨"}.mdi-ip:before{content:"󰩟"}.mdi-ip-network:before{content:"󰩠"}.mdi-ip-network-outline:before{content:"󰲐"}.mdi-ip-outline:before{content:"󱦂"}.mdi-ipod:before{content:"󰲑"}.mdi-iron:before{content:"󱠤"}.mdi-iron-board:before{content:"󱠸"}.mdi-iron-outline:before{content:"󱠥"}.mdi-island:before{content:"󱁏"}.mdi-island-variant:before{content:"󱳆"}.mdi-iv-bag:before{content:"󱂹"}.mdi-jabber:before{content:"󰷕"}.mdi-jeepney:before{content:"󰌂"}.mdi-jellyfish:before{content:"󰼁"}.mdi-jellyfish-outline:before{content:"󰼂"}.mdi-jira:before{content:"󰌃"}.mdi-jquery:before{content:"󰡽"}.mdi-jsfiddle:before{content:"󰌄"}.mdi-jump-rope:before{content:"󱋿"}.mdi-kabaddi:before{content:"󰶇"}.mdi-kangaroo:before{content:"󱕘"}.mdi-karate:before{content:"󰠬"}.mdi-kayaking:before{content:"󰢯"}.mdi-keg:before{content:"󰌅"}.mdi-kettle:before{content:"󰗺"}.mdi-kettle-alert:before{content:"󱌗"}.mdi-kettle-alert-outline:before{content:"󱌘"}.mdi-kettle-off:before{content:"󱌛"}.mdi-kettle-off-outline:before{content:"󱌜"}.mdi-kettle-outline:before{content:"󰽖"}.mdi-kettle-pour-over:before{content:"󱜼"}.mdi-kettle-steam:before{content:"󱌙"}.mdi-kettle-steam-outline:before{content:"󱌚"}.mdi-kettlebell:before{content:"󱌀"}.mdi-key:before{content:"󰌆"}.mdi-key-alert:before{content:"󱦃"}.mdi-key-alert-outline:before{content:"󱦄"}.mdi-key-arrow-right:before{content:"󱌒"}.mdi-key-chain:before{content:"󱕴"}.mdi-key-chain-variant:before{content:"󱕵"}.mdi-key-change:before{content:"󰌇"}.mdi-key-link:before{content:"󱆟"}.mdi-key-minus:before{content:"󰌈"}.mdi-key-outline:before{content:"󰷖"}.mdi-key-plus:before{content:"󰌉"}.mdi-key-remove:before{content:"󰌊"}.mdi-key-star:before{content:"󱆞"}.mdi-key-variant:before{content:"󰌋"}.mdi-key-wireless:before{content:"󰿂"}.mdi-keyboard:before{content:"󰌌"}.mdi-keyboard-backspace:before{content:"󰌍"}.mdi-keyboard-caps:before{content:"󰌎"}.mdi-keyboard-close:before{content:"󰌏"}.mdi-keyboard-close-outline:before{content:"󱰀"}.mdi-keyboard-esc:before{content:"󱊷"}.mdi-keyboard-f1:before{content:"󱊫"}.mdi-keyboard-f10:before{content:"󱊴"}.mdi-keyboard-f11:before{content:"󱊵"}.mdi-keyboard-f12:before{content:"󱊶"}.mdi-keyboard-f2:before{content:"󱊬"}.mdi-keyboard-f3:before{content:"󱊭"}.mdi-keyboard-f4:before{content:"󱊮"}.mdi-keyboard-f5:before{content:"󱊯"}.mdi-keyboard-f6:before{content:"󱊰"}.mdi-keyboard-f7:before{content:"󱊱"}.mdi-keyboard-f8:before{content:"󱊲"}.mdi-keyboard-f9:before{content:"󱊳"}.mdi-keyboard-off:before{content:"󰌐"}.mdi-keyboard-off-outline:before{content:"󰹋"}.mdi-keyboard-outline:before{content:"󰥻"}.mdi-keyboard-return:before{content:"󰌑"}.mdi-keyboard-settings:before{content:"󰧹"}.mdi-keyboard-settings-outline:before{content:"󰧺"}.mdi-keyboard-space:before{content:"󱁐"}.mdi-keyboard-tab:before{content:"󰌒"}.mdi-keyboard-tab-reverse:before{content:"󰌥"}.mdi-keyboard-variant:before{content:"󰌓"}.mdi-khanda:before{content:"󱃽"}.mdi-kickstarter:before{content:"󰝅"}.mdi-kite:before{content:"󱦅"}.mdi-kite-outline:before{content:"󱦆"}.mdi-kitesurfing:before{content:"󱝄"}.mdi-klingon:before{content:"󱍛"}.mdi-knife:before{content:"󰧻"}.mdi-knife-military:before{content:"󰧼"}.mdi-knob:before{content:"󱮖"}.mdi-koala:before{content:"󱜿"}.mdi-kodi:before{content:"󰌔"}.mdi-kubernetes:before{content:"󱃾"}.mdi-label:before{content:"󰌕"}.mdi-label-multiple:before{content:"󱍵"}.mdi-label-multiple-outline:before{content:"󱍶"}.mdi-label-off:before{content:"󰫋"}.mdi-label-off-outline:before{content:"󰫌"}.mdi-label-outline:before{content:"󰌖"}.mdi-label-percent:before{content:"󱋪"}.mdi-label-percent-outline:before{content:"󱋫"}.mdi-label-variant:before{content:"󰫍"}.mdi-label-variant-outline:before{content:"󰫎"}.mdi-ladder:before{content:"󱖢"}.mdi-ladybug:before{content:"󰠭"}.mdi-lambda:before{content:"󰘧"}.mdi-lamp:before{content:"󰚵"}.mdi-lamp-outline:before{content:"󱟐"}.mdi-lamps:before{content:"󱕶"}.mdi-lamps-outline:before{content:"󱟑"}.mdi-lan:before{content:"󰌗"}.mdi-lan-check:before{content:"󱊪"}.mdi-lan-connect:before{content:"󰌘"}.mdi-lan-disconnect:before{content:"󰌙"}.mdi-lan-pending:before{content:"󰌚"}.mdi-land-fields:before{content:"󱪲"}.mdi-land-plots:before{content:"󱪳"}.mdi-land-plots-circle:before{content:"󱪴"}.mdi-land-plots-circle-variant:before{content:"󱪵"}.mdi-land-plots-marker:before{content:"󱱝"}.mdi-land-rows-horizontal:before{content:"󱪶"}.mdi-land-rows-vertical:before{content:"󱪷"}.mdi-landslide:before{content:"󱩈"}.mdi-landslide-outline:before{content:"󱩉"}.mdi-language-c:before{content:"󰙱"}.mdi-language-cpp:before{content:"󰙲"}.mdi-language-csharp:before{content:"󰌛"}.mdi-language-css3:before{content:"󰌜"}.mdi-language-fortran:before{content:"󱈚"}.mdi-language-go:before{content:"󰟓"}.mdi-language-haskell:before{content:"󰲒"}.mdi-language-html5:before{content:"󰌝"}.mdi-language-java:before{content:"󰬷"}.mdi-language-javascript:before{content:"󰌞"}.mdi-language-kotlin:before{content:"󱈙"}.mdi-language-lua:before{content:"󰢱"}.mdi-language-markdown:before{content:"󰍔"}.mdi-language-markdown-outline:before{content:"󰽛"}.mdi-language-php:before{content:"󰌟"}.mdi-language-python:before{content:"󰌠"}.mdi-language-r:before{content:"󰟔"}.mdi-language-ruby:before{content:"󰴭"}.mdi-language-ruby-on-rails:before{content:"󰫏"}.mdi-language-rust:before{content:"󱘗"}.mdi-language-swift:before{content:"󰛥"}.mdi-language-typescript:before{content:"󰛦"}.mdi-language-xaml:before{content:"󰙳"}.mdi-laptop:before{content:"󰌢"}.mdi-laptop-account:before{content:"󱩊"}.mdi-laptop-off:before{content:"󰛧"}.mdi-laravel:before{content:"󰫐"}.mdi-laser-pointer:before{content:"󱒄"}.mdi-lasso:before{content:"󰼃"}.mdi-lastpass:before{content:"󰑆"}.mdi-latitude:before{content:"󰽗"}.mdi-launch:before{content:"󰌧"}.mdi-lava-lamp:before{content:"󰟕"}.mdi-layers:before{content:"󰌨"}.mdi-layers-edit:before{content:"󱢒"}.mdi-layers-minus:before{content:"󰹌"}.mdi-layers-off:before{content:"󰌩"}.mdi-layers-off-outline:before{content:"󰧽"}.mdi-layers-outline:before{content:"󰧾"}.mdi-layers-plus:before{content:"󰹍"}.mdi-layers-remove:before{content:"󰹎"}.mdi-layers-search:before{content:"󱈆"}.mdi-layers-search-outline:before{content:"󱈇"}.mdi-layers-triple:before{content:"󰽘"}.mdi-layers-triple-outline:before{content:"󰽙"}.mdi-lead-pencil:before{content:"󰙏"}.mdi-leaf:before{content:"󰌪"}.mdi-leaf-circle:before{content:"󱤅"}.mdi-leaf-circle-outline:before{content:"󱤆"}.mdi-leaf-maple:before{content:"󰲓"}.mdi-leaf-maple-off:before{content:"󱋚"}.mdi-leaf-off:before{content:"󱋙"}.mdi-leak:before{content:"󰷗"}.mdi-leak-off:before{content:"󰷘"}.mdi-lectern:before{content:"󱫰"}.mdi-led-off:before{content:"󰌫"}.mdi-led-on:before{content:"󰌬"}.mdi-led-outline:before{content:"󰌭"}.mdi-led-strip:before{content:"󰟖"}.mdi-led-strip-variant:before{content:"󱁑"}.mdi-led-strip-variant-off:before{content:"󱩋"}.mdi-led-variant-off:before{content:"󰌮"}.mdi-led-variant-on:before{content:"󰌯"}.mdi-led-variant-outline:before{content:"󰌰"}.mdi-leek:before{content:"󱅽"}.mdi-less-than:before{content:"󰥼"}.mdi-less-than-or-equal:before{content:"󰥽"}.mdi-library:before{content:"󰌱"}.mdi-library-outline:before{content:"󱨢"}.mdi-library-shelves:before{content:"󰮩"}.mdi-license:before{content:"󰿃"}.mdi-lifebuoy:before{content:"󰡾"}.mdi-light-flood-down:before{content:"󱦇"}.mdi-light-flood-up:before{content:"󱦈"}.mdi-light-recessed:before{content:"󱞛"}.mdi-light-switch:before{content:"󰥾"}.mdi-light-switch-off:before{content:"󱨤"}.mdi-lightbulb:before{content:"󰌵"}.mdi-lightbulb-alert:before{content:"󱧡"}.mdi-lightbulb-alert-outline:before{content:"󱧢"}.mdi-lightbulb-auto:before{content:"󱠀"}.mdi-lightbulb-auto-outline:before{content:"󱠁"}.mdi-lightbulb-cfl:before{content:"󱈈"}.mdi-lightbulb-cfl-off:before{content:"󱈉"}.mdi-lightbulb-cfl-spiral:before{content:"󱉵"}.mdi-lightbulb-cfl-spiral-off:before{content:"󱋃"}.mdi-lightbulb-fluorescent-tube:before{content:"󱠄"}.mdi-lightbulb-fluorescent-tube-outline:before{content:"󱠅"}.mdi-lightbulb-group:before{content:"󱉓"}.mdi-lightbulb-group-off:before{content:"󱋍"}.mdi-lightbulb-group-off-outline:before{content:"󱋎"}.mdi-lightbulb-group-outline:before{content:"󱉔"}.mdi-lightbulb-multiple:before{content:"󱉕"}.mdi-lightbulb-multiple-off:before{content:"󱋏"}.mdi-lightbulb-multiple-off-outline:before{content:"󱋐"}.mdi-lightbulb-multiple-outline:before{content:"󱉖"}.mdi-lightbulb-night:before{content:"󱩌"}.mdi-lightbulb-night-outline:before{content:"󱩍"}.mdi-lightbulb-off:before{content:"󰹏"}.mdi-lightbulb-off-outline:before{content:"󰹐"}.mdi-lightbulb-on:before{content:"󰛨"}.mdi-lightbulb-on-10:before{content:"󱩎"}.mdi-lightbulb-on-20:before{content:"󱩏"}.mdi-lightbulb-on-30:before{content:"󱩐"}.mdi-lightbulb-on-40:before{content:"󱩑"}.mdi-lightbulb-on-50:before{content:"󱩒"}.mdi-lightbulb-on-60:before{content:"󱩓"}.mdi-lightbulb-on-70:before{content:"󱩔"}.mdi-lightbulb-on-80:before{content:"󱩕"}.mdi-lightbulb-on-90:before{content:"󱩖"}.mdi-lightbulb-on-outline:before{content:"󰛩"}.mdi-lightbulb-outline:before{content:"󰌶"}.mdi-lightbulb-question:before{content:"󱧣"}.mdi-lightbulb-question-outline:before{content:"󱧤"}.mdi-lightbulb-spot:before{content:"󱟴"}.mdi-lightbulb-spot-off:before{content:"󱟵"}.mdi-lightbulb-variant:before{content:"󱠂"}.mdi-lightbulb-variant-outline:before{content:"󱠃"}.mdi-lighthouse:before{content:"󰧿"}.mdi-lighthouse-on:before{content:"󰨀"}.mdi-lightning-bolt:before{content:"󱐋"}.mdi-lightning-bolt-circle:before{content:"󰠠"}.mdi-lightning-bolt-outline:before{content:"󱐌"}.mdi-line-scan:before{content:"󰘤"}.mdi-lingerie:before{content:"󱑶"}.mdi-link:before{content:"󰌷"}.mdi-link-box:before{content:"󰴚"}.mdi-link-box-outline:before{content:"󰴛"}.mdi-link-box-variant:before{content:"󰴜"}.mdi-link-box-variant-outline:before{content:"󰴝"}.mdi-link-circle:before{content:"󱲬"}.mdi-link-circle-outline:before{content:"󱲭"}.mdi-link-edit:before{content:"󱲮"}.mdi-link-lock:before{content:"󱂺"}.mdi-link-off:before{content:"󰌸"}.mdi-link-plus:before{content:"󰲔"}.mdi-link-variant:before{content:"󰌹"}.mdi-link-variant-minus:before{content:"󱃿"}.mdi-link-variant-off:before{content:"󰌺"}.mdi-link-variant-plus:before{content:"󱄀"}.mdi-link-variant-remove:before{content:"󱄁"}.mdi-linkedin:before{content:"󰌻"}.mdi-linux:before{content:"󰌽"}.mdi-linux-mint:before{content:"󰣭"}.mdi-lipstick:before{content:"󱎵"}.mdi-liquid-spot:before{content:"󱠦"}.mdi-liquor:before{content:"󱤞"}.mdi-list-box:before{content:"󱭻"}.mdi-list-box-outline:before{content:"󱭼"}.mdi-list-status:before{content:"󱖫"}.mdi-litecoin:before{content:"󰩡"}.mdi-loading:before{content:"󰝲"}.mdi-location-enter:before{content:"󰿄"}.mdi-location-exit:before{content:"󰿅"}.mdi-lock:before{content:"󰌾"}.mdi-lock-alert:before{content:"󰣮"}.mdi-lock-alert-outline:before{content:"󱗑"}.mdi-lock-check:before{content:"󱎚"}.mdi-lock-check-outline:before{content:"󱚨"}.mdi-lock-clock:before{content:"󰥿"}.mdi-lock-minus:before{content:"󱚩"}.mdi-lock-minus-outline:before{content:"󱚪"}.mdi-lock-off:before{content:"󱙱"}.mdi-lock-off-outline:before{content:"󱙲"}.mdi-lock-open:before{content:"󰌿"}.mdi-lock-open-alert:before{content:"󱎛"}.mdi-lock-open-alert-outline:before{content:"󱗒"}.mdi-lock-open-check:before{content:"󱎜"}.mdi-lock-open-check-outline:before{content:"󱚫"}.mdi-lock-open-minus:before{content:"󱚬"}.mdi-lock-open-minus-outline:before{content:"󱚭"}.mdi-lock-open-outline:before{content:"󰍀"}.mdi-lock-open-plus:before{content:"󱚮"}.mdi-lock-open-plus-outline:before{content:"󱚯"}.mdi-lock-open-remove:before{content:"󱚰"}.mdi-lock-open-remove-outline:before{content:"󱚱"}.mdi-lock-open-variant:before{content:"󰿆"}.mdi-lock-open-variant-outline:before{content:"󰿇"}.mdi-lock-outline:before{content:"󰍁"}.mdi-lock-pattern:before{content:"󰛪"}.mdi-lock-percent:before{content:"󱰒"}.mdi-lock-percent-open:before{content:"󱰓"}.mdi-lock-percent-open-outline:before{content:"󱰔"}.mdi-lock-percent-open-variant:before{content:"󱰕"}.mdi-lock-percent-open-variant-outline:before{content:"󱰖"}.mdi-lock-percent-outline:before{content:"󱰗"}.mdi-lock-plus:before{content:"󰗻"}.mdi-lock-plus-outline:before{content:"󱚲"}.mdi-lock-question:before{content:"󰣯"}.mdi-lock-remove:before{content:"󱚳"}.mdi-lock-remove-outline:before{content:"󱚴"}.mdi-lock-reset:before{content:"󰝳"}.mdi-lock-smart:before{content:"󰢲"}.mdi-locker:before{content:"󰟗"}.mdi-locker-multiple:before{content:"󰟘"}.mdi-login:before{content:"󰍂"}.mdi-login-variant:before{content:"󰗼"}.mdi-logout:before{content:"󰍃"}.mdi-logout-variant:before{content:"󰗽"}.mdi-longitude:before{content:"󰽚"}.mdi-looks:before{content:"󰍄"}.mdi-lotion:before{content:"󱖂"}.mdi-lotion-outline:before{content:"󱖃"}.mdi-lotion-plus:before{content:"󱖄"}.mdi-lotion-plus-outline:before{content:"󱖅"}.mdi-loupe:before{content:"󰍅"}.mdi-lumx:before{content:"󰍆"}.mdi-lungs:before{content:"󱂄"}.mdi-mace:before{content:"󱡃"}.mdi-magazine-pistol:before{content:"󰌤"}.mdi-magazine-rifle:before{content:"󰌣"}.mdi-magic-staff:before{content:"󱡄"}.mdi-magnet:before{content:"󰍇"}.mdi-magnet-on:before{content:"󰍈"}.mdi-magnify:before{content:"󰍉"}.mdi-magnify-close:before{content:"󰦀"}.mdi-magnify-expand:before{content:"󱡴"}.mdi-magnify-minus:before{content:"󰍊"}.mdi-magnify-minus-cursor:before{content:"󰩢"}.mdi-magnify-minus-outline:before{content:"󰛬"}.mdi-magnify-plus:before{content:"󰍋"}.mdi-magnify-plus-cursor:before{content:"󰩣"}.mdi-magnify-plus-outline:before{content:"󰛭"}.mdi-magnify-remove-cursor:before{content:"󱈌"}.mdi-magnify-remove-outline:before{content:"󱈍"}.mdi-magnify-scan:before{content:"󱉶"}.mdi-mail:before{content:"󰺻"}.mdi-mailbox:before{content:"󰛮"}.mdi-mailbox-open:before{content:"󰶈"}.mdi-mailbox-open-outline:before{content:"󰶉"}.mdi-mailbox-open-up:before{content:"󰶊"}.mdi-mailbox-open-up-outline:before{content:"󰶋"}.mdi-mailbox-outline:before{content:"󰶌"}.mdi-mailbox-up:before{content:"󰶍"}.mdi-mailbox-up-outline:before{content:"󰶎"}.mdi-manjaro:before{content:"󱘊"}.mdi-map:before{content:"󰍍"}.mdi-map-check:before{content:"󰺼"}.mdi-map-check-outline:before{content:"󰺽"}.mdi-map-clock:before{content:"󰴞"}.mdi-map-clock-outline:before{content:"󰴟"}.mdi-map-legend:before{content:"󰨁"}.mdi-map-marker:before{content:"󰍎"}.mdi-map-marker-account:before{content:"󱣣"}.mdi-map-marker-account-outline:before{content:"󱣤"}.mdi-map-marker-alert:before{content:"󰼅"}.mdi-map-marker-alert-outline:before{content:"󰼆"}.mdi-map-marker-check:before{content:"󰲕"}.mdi-map-marker-check-outline:before{content:"󱋻"}.mdi-map-marker-circle:before{content:"󰍏"}.mdi-map-marker-distance:before{content:"󰣰"}.mdi-map-marker-down:before{content:"󱄂"}.mdi-map-marker-left:before{content:"󱋛"}.mdi-map-marker-left-outline:before{content:"󱋝"}.mdi-map-marker-minus:before{content:"󰙐"}.mdi-map-marker-minus-outline:before{content:"󱋹"}.mdi-map-marker-multiple:before{content:"󰍐"}.mdi-map-marker-multiple-outline:before{content:"󱉷"}.mdi-map-marker-off:before{content:"󰍑"}.mdi-map-marker-off-outline:before{content:"󱋽"}.mdi-map-marker-outline:before{content:"󰟙"}.mdi-map-marker-path:before{content:"󰴠"}.mdi-map-marker-plus:before{content:"󰙑"}.mdi-map-marker-plus-outline:before{content:"󱋸"}.mdi-map-marker-question:before{content:"󰼇"}.mdi-map-marker-question-outline:before{content:"󰼈"}.mdi-map-marker-radius:before{content:"󰍒"}.mdi-map-marker-radius-outline:before{content:"󱋼"}.mdi-map-marker-remove:before{content:"󰼉"}.mdi-map-marker-remove-outline:before{content:"󱋺"}.mdi-map-marker-remove-variant:before{content:"󰼊"}.mdi-map-marker-right:before{content:"󱋜"}.mdi-map-marker-right-outline:before{content:"󱋞"}.mdi-map-marker-star:before{content:"󱘈"}.mdi-map-marker-star-outline:before{content:"󱘉"}.mdi-map-marker-up:before{content:"󱄃"}.mdi-map-minus:before{content:"󰦁"}.mdi-map-outline:before{content:"󰦂"}.mdi-map-plus:before{content:"󰦃"}.mdi-map-search:before{content:"󰦄"}.mdi-map-search-outline:before{content:"󰦅"}.mdi-mapbox:before{content:"󰮪"}.mdi-margin:before{content:"󰍓"}.mdi-marker:before{content:"󰙒"}.mdi-marker-cancel:before{content:"󰷙"}.mdi-marker-check:before{content:"󰍕"}.mdi-mastodon:before{content:"󰫑"}.mdi-material-design:before{content:"󰦆"}.mdi-material-ui:before{content:"󰍗"}.mdi-math-compass:before{content:"󰍘"}.mdi-math-cos:before{content:"󰲖"}.mdi-math-integral:before{content:"󰿈"}.mdi-math-integral-box:before{content:"󰿉"}.mdi-math-log:before{content:"󱂅"}.mdi-math-norm:before{content:"󰿊"}.mdi-math-norm-box:before{content:"󰿋"}.mdi-math-sin:before{content:"󰲗"}.mdi-math-tan:before{content:"󰲘"}.mdi-matrix:before{content:"󰘨"}.mdi-medal:before{content:"󰦇"}.mdi-medal-outline:before{content:"󱌦"}.mdi-medical-bag:before{content:"󰛯"}.mdi-medical-cotton-swab:before{content:"󱪸"}.mdi-medication:before{content:"󱬔"}.mdi-medication-outline:before{content:"󱬕"}.mdi-meditation:before{content:"󱅻"}.mdi-memory:before{content:"󰍛"}.mdi-memory-arrow-down:before{content:"󱲦"}.mdi-menorah:before{content:"󱟔"}.mdi-menorah-fire:before{content:"󱟕"}.mdi-menu:before{content:"󰍜"}.mdi-menu-close:before{content:"󱲐"}.mdi-menu-down:before{content:"󰍝"}.mdi-menu-down-outline:before{content:"󰚶"}.mdi-menu-left:before{content:"󰍞"}.mdi-menu-left-outline:before{content:"󰨂"}.mdi-menu-open:before{content:"󰮫"}.mdi-menu-right:before{content:"󰍟"}.mdi-menu-right-outline:before{content:"󰨃"}.mdi-menu-swap:before{content:"󰩤"}.mdi-menu-swap-outline:before{content:"󰩥"}.mdi-menu-up:before{content:"󰍠"}.mdi-menu-up-outline:before{content:"󰚷"}.mdi-merge:before{content:"󰽜"}.mdi-message:before{content:"󰍡"}.mdi-message-alert:before{content:"󰍢"}.mdi-message-alert-outline:before{content:"󰨄"}.mdi-message-arrow-left:before{content:"󱋲"}.mdi-message-arrow-left-outline:before{content:"󱋳"}.mdi-message-arrow-right:before{content:"󱋴"}.mdi-message-arrow-right-outline:before{content:"󱋵"}.mdi-message-badge:before{content:"󱥁"}.mdi-message-badge-outline:before{content:"󱥂"}.mdi-message-bookmark:before{content:"󱖬"}.mdi-message-bookmark-outline:before{content:"󱖭"}.mdi-message-bulleted:before{content:"󰚢"}.mdi-message-bulleted-off:before{content:"󰚣"}.mdi-message-check:before{content:"󱮊"}.mdi-message-check-outline:before{content:"󱮋"}.mdi-message-cog:before{content:"󰛱"}.mdi-message-cog-outline:before{content:"󱅲"}.mdi-message-draw:before{content:"󰍣"}.mdi-message-fast:before{content:"󱧌"}.mdi-message-fast-outline:before{content:"󱧍"}.mdi-message-flash:before{content:"󱖩"}.mdi-message-flash-outline:before{content:"󱖪"}.mdi-message-image:before{content:"󰍤"}.mdi-message-image-outline:before{content:"󱅬"}.mdi-message-lock:before{content:"󰿌"}.mdi-message-lock-outline:before{content:"󱅭"}.mdi-message-minus:before{content:"󱅮"}.mdi-message-minus-outline:before{content:"󱅯"}.mdi-message-off:before{content:"󱙍"}.mdi-message-off-outline:before{content:"󱙎"}.mdi-message-outline:before{content:"󰍥"}.mdi-message-plus:before{content:"󰙓"}.mdi-message-plus-outline:before{content:"󱂻"}.mdi-message-processing:before{content:"󰍦"}.mdi-message-processing-outline:before{content:"󱅰"}.mdi-message-question:before{content:"󱜺"}.mdi-message-question-outline:before{content:"󱜻"}.mdi-message-reply:before{content:"󰍧"}.mdi-message-reply-outline:before{content:"󱜽"}.mdi-message-reply-text:before{content:"󰍨"}.mdi-message-reply-text-outline:before{content:"󱜾"}.mdi-message-settings:before{content:"󰛰"}.mdi-message-settings-outline:before{content:"󱅱"}.mdi-message-star:before{content:"󰚚"}.mdi-message-star-outline:before{content:"󱉐"}.mdi-message-text:before{content:"󰍩"}.mdi-message-text-clock:before{content:"󱅳"}.mdi-message-text-clock-outline:before{content:"󱅴"}.mdi-message-text-fast:before{content:"󱧎"}.mdi-message-text-fast-outline:before{content:"󱧏"}.mdi-message-text-lock:before{content:"󰿍"}.mdi-message-text-lock-outline:before{content:"󱅵"}.mdi-message-text-outline:before{content:"󰍪"}.mdi-message-video:before{content:"󰍫"}.mdi-meteor:before{content:"󰘩"}.mdi-meter-electric:before{content:"󱩗"}.mdi-meter-electric-outline:before{content:"󱩘"}.mdi-meter-gas:before{content:"󱩙"}.mdi-meter-gas-outline:before{content:"󱩚"}.mdi-metronome:before{content:"󰟚"}.mdi-metronome-tick:before{content:"󰟛"}.mdi-micro-sd:before{content:"󰟜"}.mdi-microphone:before{content:"󰍬"}.mdi-microphone-message:before{content:"󰔊"}.mdi-microphone-message-off:before{content:"󰔋"}.mdi-microphone-minus:before{content:"󰢳"}.mdi-microphone-off:before{content:"󰍭"}.mdi-microphone-outline:before{content:"󰍮"}.mdi-microphone-plus:before{content:"󰢴"}.mdi-microphone-question:before{content:"󱦉"}.mdi-microphone-question-outline:before{content:"󱦊"}.mdi-microphone-settings:before{content:"󰍯"}.mdi-microphone-variant:before{content:"󰍰"}.mdi-microphone-variant-off:before{content:"󰍱"}.mdi-microscope:before{content:"󰙔"}.mdi-microsoft:before{content:"󰍲"}.mdi-microsoft-access:before{content:"󱎎"}.mdi-microsoft-azure:before{content:"󰠅"}.mdi-microsoft-azure-devops:before{content:"󰿕"}.mdi-microsoft-bing:before{content:"󰂤"}.mdi-microsoft-dynamics-365:before{content:"󰦈"}.mdi-microsoft-edge:before{content:"󰇩"}.mdi-microsoft-excel:before{content:"󱎏"}.mdi-microsoft-internet-explorer:before{content:"󰌀"}.mdi-microsoft-office:before{content:"󰏆"}.mdi-microsoft-onedrive:before{content:"󰏊"}.mdi-microsoft-onenote:before{content:"󰝇"}.mdi-microsoft-outlook:before{content:"󰴢"}.mdi-microsoft-powerpoint:before{content:"󱎐"}.mdi-microsoft-sharepoint:before{content:"󱎑"}.mdi-microsoft-teams:before{content:"󰊻"}.mdi-microsoft-visual-studio:before{content:"󰘐"}.mdi-microsoft-visual-studio-code:before{content:"󰨞"}.mdi-microsoft-windows:before{content:"󰖳"}.mdi-microsoft-windows-classic:before{content:"󰨡"}.mdi-microsoft-word:before{content:"󱎒"}.mdi-microsoft-xbox:before{content:"󰖹"}.mdi-microsoft-xbox-controller:before{content:"󰖺"}.mdi-microsoft-xbox-controller-battery-alert:before{content:"󰝋"}.mdi-microsoft-xbox-controller-battery-charging:before{content:"󰨢"}.mdi-microsoft-xbox-controller-battery-empty:before{content:"󰝌"}.mdi-microsoft-xbox-controller-battery-full:before{content:"󰝍"}.mdi-microsoft-xbox-controller-battery-low:before{content:"󰝎"}.mdi-microsoft-xbox-controller-battery-medium:before{content:"󰝏"}.mdi-microsoft-xbox-controller-battery-unknown:before{content:"󰝐"}.mdi-microsoft-xbox-controller-menu:before{content:"󰹯"}.mdi-microsoft-xbox-controller-off:before{content:"󰖻"}.mdi-microsoft-xbox-controller-view:before{content:"󰹰"}.mdi-microwave:before{content:"󰲙"}.mdi-microwave-off:before{content:"󱐣"}.mdi-middleware:before{content:"󰽝"}.mdi-middleware-outline:before{content:"󰽞"}.mdi-midi:before{content:"󰣱"}.mdi-midi-port:before{content:"󰣲"}.mdi-mine:before{content:"󰷚"}.mdi-minecraft:before{content:"󰍳"}.mdi-mini-sd:before{content:"󰨅"}.mdi-minidisc:before{content:"󰨆"}.mdi-minus:before{content:"󰍴"}.mdi-minus-box:before{content:"󰍵"}.mdi-minus-box-multiple:before{content:"󱅁"}.mdi-minus-box-multiple-outline:before{content:"󱅂"}.mdi-minus-box-outline:before{content:"󰛲"}.mdi-minus-circle:before{content:"󰍶"}.mdi-minus-circle-multiple:before{content:"󰍚"}.mdi-minus-circle-multiple-outline:before{content:"󰫓"}.mdi-minus-circle-off:before{content:"󱑙"}.mdi-minus-circle-off-outline:before{content:"󱑚"}.mdi-minus-circle-outline:before{content:"󰍷"}.mdi-minus-network:before{content:"󰍸"}.mdi-minus-network-outline:before{content:"󰲚"}.mdi-minus-thick:before{content:"󱘹"}.mdi-mirror:before{content:"󱇽"}.mdi-mirror-rectangle:before{content:"󱞟"}.mdi-mirror-variant:before{content:"󱞠"}.mdi-mixed-martial-arts:before{content:"󰶏"}.mdi-mixed-reality:before{content:"󰡿"}.mdi-molecule:before{content:"󰮬"}.mdi-molecule-co:before{content:"󱋾"}.mdi-molecule-co2:before{content:"󰟤"}.mdi-monitor:before{content:"󰍹"}.mdi-monitor-account:before{content:"󱩛"}.mdi-monitor-arrow-down:before{content:"󱧐"}.mdi-monitor-arrow-down-variant:before{content:"󱧑"}.mdi-monitor-cellphone:before{content:"󰦉"}.mdi-monitor-cellphone-star:before{content:"󰦊"}.mdi-monitor-dashboard:before{content:"󰨇"}.mdi-monitor-edit:before{content:"󱋆"}.mdi-monitor-eye:before{content:"󱎴"}.mdi-monitor-lock:before{content:"󰷛"}.mdi-monitor-multiple:before{content:"󰍺"}.mdi-monitor-off:before{content:"󰶐"}.mdi-monitor-screenshot:before{content:"󰹑"}.mdi-monitor-share:before{content:"󱒃"}.mdi-monitor-shimmer:before{content:"󱄄"}.mdi-monitor-small:before{content:"󱡶"}.mdi-monitor-speaker:before{content:"󰽟"}.mdi-monitor-speaker-off:before{content:"󰽠"}.mdi-monitor-star:before{content:"󰷜"}.mdi-monitor-vertical:before{content:"󱰳"}.mdi-moon-first-quarter:before{content:"󰽡"}.mdi-moon-full:before{content:"󰽢"}.mdi-moon-last-quarter:before{content:"󰽣"}.mdi-moon-new:before{content:"󰽤"}.mdi-moon-waning-crescent:before{content:"󰽥"}.mdi-moon-waning-gibbous:before{content:"󰽦"}.mdi-moon-waxing-crescent:before{content:"󰽧"}.mdi-moon-waxing-gibbous:before{content:"󰽨"}.mdi-moped:before{content:"󱂆"}.mdi-moped-electric:before{content:"󱖷"}.mdi-moped-electric-outline:before{content:"󱖸"}.mdi-moped-outline:before{content:"󱖹"}.mdi-more:before{content:"󰍻"}.mdi-mortar-pestle:before{content:"󱝈"}.mdi-mortar-pestle-plus:before{content:"󰏱"}.mdi-mosque:before{content:"󰵅"}.mdi-mosque-outline:before{content:"󱠧"}.mdi-mother-heart:before{content:"󱌔"}.mdi-mother-nurse:before{content:"󰴡"}.mdi-motion:before{content:"󱖲"}.mdi-motion-outline:before{content:"󱖳"}.mdi-motion-pause:before{content:"󱖐"}.mdi-motion-pause-outline:before{content:"󱖒"}.mdi-motion-play:before{content:"󱖏"}.mdi-motion-play-outline:before{content:"󱖑"}.mdi-motion-sensor:before{content:"󰶑"}.mdi-motion-sensor-off:before{content:"󱐵"}.mdi-motorbike:before{content:"󰍼"}.mdi-motorbike-electric:before{content:"󱖺"}.mdi-motorbike-off:before{content:"󱬖"}.mdi-mouse:before{content:"󰍽"}.mdi-mouse-bluetooth:before{content:"󰦋"}.mdi-mouse-move-down:before{content:"󱕐"}.mdi-mouse-move-up:before{content:"󱕑"}.mdi-mouse-move-vertical:before{content:"󱕒"}.mdi-mouse-off:before{content:"󰍾"}.mdi-mouse-variant:before{content:"󰍿"}.mdi-mouse-variant-off:before{content:"󰎀"}.mdi-move-resize:before{content:"󰙕"}.mdi-move-resize-variant:before{content:"󰙖"}.mdi-movie:before{content:"󰎁"}.mdi-movie-check:before{content:"󱛳"}.mdi-movie-check-outline:before{content:"󱛴"}.mdi-movie-cog:before{content:"󱛵"}.mdi-movie-cog-outline:before{content:"󱛶"}.mdi-movie-edit:before{content:"󱄢"}.mdi-movie-edit-outline:before{content:"󱄣"}.mdi-movie-filter:before{content:"󱄤"}.mdi-movie-filter-outline:before{content:"󱄥"}.mdi-movie-minus:before{content:"󱛷"}.mdi-movie-minus-outline:before{content:"󱛸"}.mdi-movie-off:before{content:"󱛹"}.mdi-movie-off-outline:before{content:"󱛺"}.mdi-movie-open:before{content:"󰿎"}.mdi-movie-open-check:before{content:"󱛻"}.mdi-movie-open-check-outline:before{content:"󱛼"}.mdi-movie-open-cog:before{content:"󱛽"}.mdi-movie-open-cog-outline:before{content:"󱛾"}.mdi-movie-open-edit:before{content:"󱛿"}.mdi-movie-open-edit-outline:before{content:"󱜀"}.mdi-movie-open-minus:before{content:"󱜁"}.mdi-movie-open-minus-outline:before{content:"󱜂"}.mdi-movie-open-off:before{content:"󱜃"}.mdi-movie-open-off-outline:before{content:"󱜄"}.mdi-movie-open-outline:before{content:"󰿏"}.mdi-movie-open-play:before{content:"󱜅"}.mdi-movie-open-play-outline:before{content:"󱜆"}.mdi-movie-open-plus:before{content:"󱜇"}.mdi-movie-open-plus-outline:before{content:"󱜈"}.mdi-movie-open-remove:before{content:"󱜉"}.mdi-movie-open-remove-outline:before{content:"󱜊"}.mdi-movie-open-settings:before{content:"󱜋"}.mdi-movie-open-settings-outline:before{content:"󱜌"}.mdi-movie-open-star:before{content:"󱜍"}.mdi-movie-open-star-outline:before{content:"󱜎"}.mdi-movie-outline:before{content:"󰷝"}.mdi-movie-play:before{content:"󱜏"}.mdi-movie-play-outline:before{content:"󱜐"}.mdi-movie-plus:before{content:"󱜑"}.mdi-movie-plus-outline:before{content:"󱜒"}.mdi-movie-remove:before{content:"󱜓"}.mdi-movie-remove-outline:before{content:"󱜔"}.mdi-movie-roll:before{content:"󰟞"}.mdi-movie-search:before{content:"󱇒"}.mdi-movie-search-outline:before{content:"󱇓"}.mdi-movie-settings:before{content:"󱜕"}.mdi-movie-settings-outline:before{content:"󱜖"}.mdi-movie-star:before{content:"󱜗"}.mdi-movie-star-outline:before{content:"󱜘"}.mdi-mower:before{content:"󱙯"}.mdi-mower-bag:before{content:"󱙰"}.mdi-mower-bag-on:before{content:"󱭠"}.mdi-mower-on:before{content:"󱭟"}.mdi-muffin:before{content:"󰦌"}.mdi-multicast:before{content:"󱢓"}.mdi-multimedia:before{content:"󱮗"}.mdi-multiplication:before{content:"󰎂"}.mdi-multiplication-box:before{content:"󰎃"}.mdi-mushroom:before{content:"󰟟"}.mdi-mushroom-off:before{content:"󱏺"}.mdi-mushroom-off-outline:before{content:"󱏻"}.mdi-mushroom-outline:before{content:"󰟠"}.mdi-music:before{content:"󰝚"}.mdi-music-accidental-double-flat:before{content:"󰽩"}.mdi-music-accidental-double-sharp:before{content:"󰽪"}.mdi-music-accidental-flat:before{content:"󰽫"}.mdi-music-accidental-natural:before{content:"󰽬"}.mdi-music-accidental-sharp:before{content:"󰽭"}.mdi-music-box:before{content:"󰎄"}.mdi-music-box-multiple:before{content:"󰌳"}.mdi-music-box-multiple-outline:before{content:"󰼄"}.mdi-music-box-outline:before{content:"󰎅"}.mdi-music-circle:before{content:"󰎆"}.mdi-music-circle-outline:before{content:"󰫔"}.mdi-music-clef-alto:before{content:"󰽮"}.mdi-music-clef-bass:before{content:"󰽯"}.mdi-music-clef-treble:before{content:"󰽰"}.mdi-music-note:before{content:"󰎇"}.mdi-music-note-bluetooth:before{content:"󰗾"}.mdi-music-note-bluetooth-off:before{content:"󰗿"}.mdi-music-note-eighth:before{content:"󰎈"}.mdi-music-note-eighth-dotted:before{content:"󰽱"}.mdi-music-note-half:before{content:"󰎉"}.mdi-music-note-half-dotted:before{content:"󰽲"}.mdi-music-note-minus:before{content:"󱮉"}.mdi-music-note-off:before{content:"󰎊"}.mdi-music-note-off-outline:before{content:"󰽳"}.mdi-music-note-outline:before{content:"󰽴"}.mdi-music-note-plus:before{content:"󰷞"}.mdi-music-note-quarter:before{content:"󰎋"}.mdi-music-note-quarter-dotted:before{content:"󰽵"}.mdi-music-note-sixteenth:before{content:"󰎌"}.mdi-music-note-sixteenth-dotted:before{content:"󰽶"}.mdi-music-note-whole:before{content:"󰎍"}.mdi-music-note-whole-dotted:before{content:"󰽷"}.mdi-music-off:before{content:"󰝛"}.mdi-music-rest-eighth:before{content:"󰽸"}.mdi-music-rest-half:before{content:"󰽹"}.mdi-music-rest-quarter:before{content:"󰽺"}.mdi-music-rest-sixteenth:before{content:"󰽻"}.mdi-music-rest-whole:before{content:"󰽼"}.mdi-mustache:before{content:"󱗞"}.mdi-nail:before{content:"󰷟"}.mdi-nas:before{content:"󰣳"}.mdi-nativescript:before{content:"󰢀"}.mdi-nature:before{content:"󰎎"}.mdi-nature-outline:before{content:"󱱱"}.mdi-nature-people:before{content:"󰎏"}.mdi-nature-people-outline:before{content:"󱱲"}.mdi-navigation:before{content:"󰎐"}.mdi-navigation-outline:before{content:"󱘇"}.mdi-navigation-variant:before{content:"󱣰"}.mdi-navigation-variant-outline:before{content:"󱣱"}.mdi-near-me:before{content:"󰗍"}.mdi-necklace:before{content:"󰼋"}.mdi-needle:before{content:"󰎑"}.mdi-needle-off:before{content:"󱧒"}.mdi-netflix:before{content:"󰝆"}.mdi-network:before{content:"󰛳"}.mdi-network-off:before{content:"󰲛"}.mdi-network-off-outline:before{content:"󰲜"}.mdi-network-outline:before{content:"󰲝"}.mdi-network-pos:before{content:"󱫋"}.mdi-network-strength-1:before{content:"󰣴"}.mdi-network-strength-1-alert:before{content:"󰣵"}.mdi-network-strength-2:before{content:"󰣶"}.mdi-network-strength-2-alert:before{content:"󰣷"}.mdi-network-strength-3:before{content:"󰣸"}.mdi-network-strength-3-alert:before{content:"󰣹"}.mdi-network-strength-4:before{content:"󰣺"}.mdi-network-strength-4-alert:before{content:"󰣻"}.mdi-network-strength-4-cog:before{content:"󱤚"}.mdi-network-strength-off:before{content:"󰣼"}.mdi-network-strength-off-outline:before{content:"󰣽"}.mdi-network-strength-outline:before{content:"󰣾"}.mdi-new-box:before{content:"󰎔"}.mdi-newspaper:before{content:"󰎕"}.mdi-newspaper-check:before{content:"󱥃"}.mdi-newspaper-minus:before{content:"󰼌"}.mdi-newspaper-plus:before{content:"󰼍"}.mdi-newspaper-remove:before{content:"󱥄"}.mdi-newspaper-variant:before{content:"󱀁"}.mdi-newspaper-variant-multiple:before{content:"󱀂"}.mdi-newspaper-variant-multiple-outline:before{content:"󱀃"}.mdi-newspaper-variant-outline:before{content:"󱀄"}.mdi-nfc:before{content:"󰎖"}.mdi-nfc-search-variant:before{content:"󰹓"}.mdi-nfc-tap:before{content:"󰎗"}.mdi-nfc-variant:before{content:"󰎘"}.mdi-nfc-variant-off:before{content:"󰹔"}.mdi-ninja:before{content:"󰝴"}.mdi-nintendo-game-boy:before{content:"󱎓"}.mdi-nintendo-switch:before{content:"󰟡"}.mdi-nintendo-wii:before{content:"󰖫"}.mdi-nintendo-wiiu:before{content:"󰜭"}.mdi-nix:before{content:"󱄅"}.mdi-nodejs:before{content:"󰎙"}.mdi-noodles:before{content:"󱅾"}.mdi-not-equal:before{content:"󰦍"}.mdi-not-equal-variant:before{content:"󰦎"}.mdi-note:before{content:"󰎚"}.mdi-note-alert:before{content:"󱝽"}.mdi-note-alert-outline:before{content:"󱝾"}.mdi-note-check:before{content:"󱝿"}.mdi-note-check-outline:before{content:"󱞀"}.mdi-note-edit:before{content:"󱞁"}.mdi-note-edit-outline:before{content:"󱞂"}.mdi-note-minus:before{content:"󱙏"}.mdi-note-minus-outline:before{content:"󱙐"}.mdi-note-multiple:before{content:"󰚸"}.mdi-note-multiple-outline:before{content:"󰚹"}.mdi-note-off:before{content:"󱞃"}.mdi-note-off-outline:before{content:"󱞄"}.mdi-note-outline:before{content:"󰎛"}.mdi-note-plus:before{content:"󰎜"}.mdi-note-plus-outline:before{content:"󰎝"}.mdi-note-remove:before{content:"󱙑"}.mdi-note-remove-outline:before{content:"󱙒"}.mdi-note-search:before{content:"󱙓"}.mdi-note-search-outline:before{content:"󱙔"}.mdi-note-text:before{content:"󰎞"}.mdi-note-text-outline:before{content:"󱇗"}.mdi-notebook:before{content:"󰠮"}.mdi-notebook-check:before{content:"󱓵"}.mdi-notebook-check-outline:before{content:"󱓶"}.mdi-notebook-edit:before{content:"󱓧"}.mdi-notebook-edit-outline:before{content:"󱓩"}.mdi-notebook-heart:before{content:"󱨋"}.mdi-notebook-heart-outline:before{content:"󱨌"}.mdi-notebook-minus:before{content:"󱘐"}.mdi-notebook-minus-outline:before{content:"󱘑"}.mdi-notebook-multiple:before{content:"󰹕"}.mdi-notebook-outline:before{content:"󰺿"}.mdi-notebook-plus:before{content:"󱘒"}.mdi-notebook-plus-outline:before{content:"󱘓"}.mdi-notebook-remove:before{content:"󱘔"}.mdi-notebook-remove-outline:before{content:"󱘕"}.mdi-notification-clear-all:before{content:"󰎟"}.mdi-npm:before{content:"󰛷"}.mdi-nuke:before{content:"󰚤"}.mdi-null:before{content:"󰟢"}.mdi-numeric:before{content:"󰎠"}.mdi-numeric-0:before{content:"󰬹"}.mdi-numeric-0-box:before{content:"󰎡"}.mdi-numeric-0-box-multiple:before{content:"󰼎"}.mdi-numeric-0-box-multiple-outline:before{content:"󰎢"}.mdi-numeric-0-box-outline:before{content:"󰎣"}.mdi-numeric-0-circle:before{content:"󰲞"}.mdi-numeric-0-circle-outline:before{content:"󰲟"}.mdi-numeric-1:before{content:"󰬺"}.mdi-numeric-1-box:before{content:"󰎤"}.mdi-numeric-1-box-multiple:before{content:"󰼏"}.mdi-numeric-1-box-multiple-outline:before{content:"󰎥"}.mdi-numeric-1-box-outline:before{content:"󰎦"}.mdi-numeric-1-circle:before{content:"󰲠"}.mdi-numeric-1-circle-outline:before{content:"󰲡"}.mdi-numeric-10:before{content:"󰿩"}.mdi-numeric-10-box:before{content:"󰽽"}.mdi-numeric-10-box-multiple:before{content:"󰿪"}.mdi-numeric-10-box-multiple-outline:before{content:"󰿫"}.mdi-numeric-10-box-outline:before{content:"󰽾"}.mdi-numeric-10-circle:before{content:"󰿬"}.mdi-numeric-10-circle-outline:before{content:"󰿭"}.mdi-numeric-2:before{content:"󰬻"}.mdi-numeric-2-box:before{content:"󰎧"}.mdi-numeric-2-box-multiple:before{content:"󰼐"}.mdi-numeric-2-box-multiple-outline:before{content:"󰎨"}.mdi-numeric-2-box-outline:before{content:"󰎩"}.mdi-numeric-2-circle:before{content:"󰲢"}.mdi-numeric-2-circle-outline:before{content:"󰲣"}.mdi-numeric-3:before{content:"󰬼"}.mdi-numeric-3-box:before{content:"󰎪"}.mdi-numeric-3-box-multiple:before{content:"󰼑"}.mdi-numeric-3-box-multiple-outline:before{content:"󰎫"}.mdi-numeric-3-box-outline:before{content:"󰎬"}.mdi-numeric-3-circle:before{content:"󰲤"}.mdi-numeric-3-circle-outline:before{content:"󰲥"}.mdi-numeric-4:before{content:"󰬽"}.mdi-numeric-4-box:before{content:"󰎭"}.mdi-numeric-4-box-multiple:before{content:"󰼒"}.mdi-numeric-4-box-multiple-outline:before{content:"󰎲"}.mdi-numeric-4-box-outline:before{content:"󰎮"}.mdi-numeric-4-circle:before{content:"󰲦"}.mdi-numeric-4-circle-outline:before{content:"󰲧"}.mdi-numeric-5:before{content:"󰬾"}.mdi-numeric-5-box:before{content:"󰎱"}.mdi-numeric-5-box-multiple:before{content:"󰼓"}.mdi-numeric-5-box-multiple-outline:before{content:"󰎯"}.mdi-numeric-5-box-outline:before{content:"󰎰"}.mdi-numeric-5-circle:before{content:"󰲨"}.mdi-numeric-5-circle-outline:before{content:"󰲩"}.mdi-numeric-6:before{content:"󰬿"}.mdi-numeric-6-box:before{content:"󰎳"}.mdi-numeric-6-box-multiple:before{content:"󰼔"}.mdi-numeric-6-box-multiple-outline:before{content:"󰎴"}.mdi-numeric-6-box-outline:before{content:"󰎵"}.mdi-numeric-6-circle:before{content:"󰲪"}.mdi-numeric-6-circle-outline:before{content:"󰲫"}.mdi-numeric-7:before{content:"󰭀"}.mdi-numeric-7-box:before{content:"󰎶"}.mdi-numeric-7-box-multiple:before{content:"󰼕"}.mdi-numeric-7-box-multiple-outline:before{content:"󰎷"}.mdi-numeric-7-box-outline:before{content:"󰎸"}.mdi-numeric-7-circle:before{content:"󰲬"}.mdi-numeric-7-circle-outline:before{content:"󰲭"}.mdi-numeric-8:before{content:"󰭁"}.mdi-numeric-8-box:before{content:"󰎹"}.mdi-numeric-8-box-multiple:before{content:"󰼖"}.mdi-numeric-8-box-multiple-outline:before{content:"󰎺"}.mdi-numeric-8-box-outline:before{content:"󰎻"}.mdi-numeric-8-circle:before{content:"󰲮"}.mdi-numeric-8-circle-outline:before{content:"󰲯"}.mdi-numeric-9:before{content:"󰭂"}.mdi-numeric-9-box:before{content:"󰎼"}.mdi-numeric-9-box-multiple:before{content:"󰼗"}.mdi-numeric-9-box-multiple-outline:before{content:"󰎽"}.mdi-numeric-9-box-outline:before{content:"󰎾"}.mdi-numeric-9-circle:before{content:"󰲰"}.mdi-numeric-9-circle-outline:before{content:"󰲱"}.mdi-numeric-9-plus:before{content:"󰿮"}.mdi-numeric-9-plus-box:before{content:"󰎿"}.mdi-numeric-9-plus-box-multiple:before{content:"󰼘"}.mdi-numeric-9-plus-box-multiple-outline:before{content:"󰏀"}.mdi-numeric-9-plus-box-outline:before{content:"󰏁"}.mdi-numeric-9-plus-circle:before{content:"󰲲"}.mdi-numeric-9-plus-circle-outline:before{content:"󰲳"}.mdi-numeric-negative-1:before{content:"󱁒"}.mdi-numeric-off:before{content:"󱧓"}.mdi-numeric-positive-1:before{content:"󱗋"}.mdi-nut:before{content:"󰛸"}.mdi-nutrition:before{content:"󰏂"}.mdi-nuxt:before{content:"󱄆"}.mdi-oar:before{content:"󰙼"}.mdi-ocarina:before{content:"󰷠"}.mdi-oci:before{content:"󱋩"}.mdi-ocr:before{content:"󱄺"}.mdi-octagon:before{content:"󰏃"}.mdi-octagon-outline:before{content:"󰏄"}.mdi-octagram:before{content:"󰛹"}.mdi-octagram-edit:before{content:"󱰴"}.mdi-octagram-edit-outline:before{content:"󱰵"}.mdi-octagram-minus:before{content:"󱰶"}.mdi-octagram-minus-outline:before{content:"󱰷"}.mdi-octagram-outline:before{content:"󰝵"}.mdi-octagram-plus:before{content:"󱰸"}.mdi-octagram-plus-outline:before{content:"󱰹"}.mdi-octahedron:before{content:"󱥐"}.mdi-octahedron-off:before{content:"󱥑"}.mdi-odnoklassniki:before{content:"󰏅"}.mdi-offer:before{content:"󱈛"}.mdi-office-building:before{content:"󰦑"}.mdi-office-building-cog:before{content:"󱥉"}.mdi-office-building-cog-outline:before{content:"󱥊"}.mdi-office-building-marker:before{content:"󱔠"}.mdi-office-building-marker-outline:before{content:"󱔡"}.mdi-office-building-minus:before{content:"󱮪"}.mdi-office-building-minus-outline:before{content:"󱮫"}.mdi-office-building-outline:before{content:"󱔟"}.mdi-office-building-plus:before{content:"󱮨"}.mdi-office-building-plus-outline:before{content:"󱮩"}.mdi-office-building-remove:before{content:"󱮬"}.mdi-office-building-remove-outline:before{content:"󱮭"}.mdi-oil:before{content:"󰏇"}.mdi-oil-lamp:before{content:"󰼙"}.mdi-oil-level:before{content:"󱁓"}.mdi-oil-temperature:before{content:"󰿸"}.mdi-om:before{content:"󰥳"}.mdi-omega:before{content:"󰏉"}.mdi-one-up:before{content:"󰮭"}.mdi-onepassword:before{content:"󰢁"}.mdi-opacity:before{content:"󰗌"}.mdi-open-in-app:before{content:"󰏋"}.mdi-open-in-new:before{content:"󰏌"}.mdi-open-source-initiative:before{content:"󰮮"}.mdi-openid:before{content:"󰏍"}.mdi-opera:before{content:"󰏎"}.mdi-orbit:before{content:"󰀘"}.mdi-orbit-variant:before{content:"󱗛"}.mdi-order-alphabetical-ascending:before{content:"󰈍"}.mdi-order-alphabetical-descending:before{content:"󰴇"}.mdi-order-bool-ascending:before{content:"󰊾"}.mdi-order-bool-ascending-variant:before{content:"󰦏"}.mdi-order-bool-descending:before{content:"󱎄"}.mdi-order-bool-descending-variant:before{content:"󰦐"}.mdi-order-numeric-ascending:before{content:"󰕅"}.mdi-order-numeric-descending:before{content:"󰕆"}.mdi-origin:before{content:"󰭃"}.mdi-ornament:before{content:"󰏏"}.mdi-ornament-variant:before{content:"󰏐"}.mdi-outdoor-lamp:before{content:"󱁔"}.mdi-overscan:before{content:"󱀅"}.mdi-owl:before{content:"󰏒"}.mdi-pac-man:before{content:"󰮯"}.mdi-package:before{content:"󰏓"}.mdi-package-check:before{content:"󱭑"}.mdi-package-down:before{content:"󰏔"}.mdi-package-up:before{content:"󰏕"}.mdi-package-variant:before{content:"󰏖"}.mdi-package-variant-closed:before{content:"󰏗"}.mdi-package-variant-closed-check:before{content:"󱭒"}.mdi-package-variant-closed-minus:before{content:"󱧔"}.mdi-package-variant-closed-plus:before{content:"󱧕"}.mdi-package-variant-closed-remove:before{content:"󱧖"}.mdi-package-variant-minus:before{content:"󱧗"}.mdi-package-variant-plus:before{content:"󱧘"}.mdi-package-variant-remove:before{content:"󱧙"}.mdi-page-first:before{content:"󰘀"}.mdi-page-last:before{content:"󰘁"}.mdi-page-layout-body:before{content:"󰛺"}.mdi-page-layout-footer:before{content:"󰛻"}.mdi-page-layout-header:before{content:"󰛼"}.mdi-page-layout-header-footer:before{content:"󰽿"}.mdi-page-layout-sidebar-left:before{content:"󰛽"}.mdi-page-layout-sidebar-right:before{content:"󰛾"}.mdi-page-next:before{content:"󰮰"}.mdi-page-next-outline:before{content:"󰮱"}.mdi-page-previous:before{content:"󰮲"}.mdi-page-previous-outline:before{content:"󰮳"}.mdi-pail:before{content:"󱐗"}.mdi-pail-minus:before{content:"󱐷"}.mdi-pail-minus-outline:before{content:"󱐼"}.mdi-pail-off:before{content:"󱐹"}.mdi-pail-off-outline:before{content:"󱐾"}.mdi-pail-outline:before{content:"󱐺"}.mdi-pail-plus:before{content:"󱐶"}.mdi-pail-plus-outline:before{content:"󱐻"}.mdi-pail-remove:before{content:"󱐸"}.mdi-pail-remove-outline:before{content:"󱐽"}.mdi-palette:before{content:"󰏘"}.mdi-palette-advanced:before{content:"󰏙"}.mdi-palette-outline:before{content:"󰸌"}.mdi-palette-swatch:before{content:"󰢵"}.mdi-palette-swatch-outline:before{content:"󱍜"}.mdi-palette-swatch-variant:before{content:"󱥚"}.mdi-palm-tree:before{content:"󱁕"}.mdi-pan:before{content:"󰮴"}.mdi-pan-bottom-left:before{content:"󰮵"}.mdi-pan-bottom-right:before{content:"󰮶"}.mdi-pan-down:before{content:"󰮷"}.mdi-pan-horizontal:before{content:"󰮸"}.mdi-pan-left:before{content:"󰮹"}.mdi-pan-right:before{content:"󰮺"}.mdi-pan-top-left:before{content:"󰮻"}.mdi-pan-top-right:before{content:"󰮼"}.mdi-pan-up:before{content:"󰮽"}.mdi-pan-vertical:before{content:"󰮾"}.mdi-panda:before{content:"󰏚"}.mdi-pandora:before{content:"󰏛"}.mdi-panorama:before{content:"󰏜"}.mdi-panorama-fisheye:before{content:"󰏝"}.mdi-panorama-horizontal:before{content:"󱤨"}.mdi-panorama-horizontal-outline:before{content:"󰏞"}.mdi-panorama-outline:before{content:"󱦌"}.mdi-panorama-sphere:before{content:"󱦍"}.mdi-panorama-sphere-outline:before{content:"󱦎"}.mdi-panorama-variant:before{content:"󱦏"}.mdi-panorama-variant-outline:before{content:"󱦐"}.mdi-panorama-vertical:before{content:"󱤩"}.mdi-panorama-vertical-outline:before{content:"󰏟"}.mdi-panorama-wide-angle:before{content:"󱥟"}.mdi-panorama-wide-angle-outline:before{content:"󰏠"}.mdi-paper-cut-vertical:before{content:"󰏡"}.mdi-paper-roll:before{content:"󱅗"}.mdi-paper-roll-outline:before{content:"󱅘"}.mdi-paperclip:before{content:"󰏢"}.mdi-paperclip-check:before{content:"󱫆"}.mdi-paperclip-lock:before{content:"󱧚"}.mdi-paperclip-minus:before{content:"󱫇"}.mdi-paperclip-off:before{content:"󱫈"}.mdi-paperclip-plus:before{content:"󱫉"}.mdi-paperclip-remove:before{content:"󱫊"}.mdi-parachute:before{content:"󰲴"}.mdi-parachute-outline:before{content:"󰲵"}.mdi-paragliding:before{content:"󱝅"}.mdi-parking:before{content:"󰏣"}.mdi-party-popper:before{content:"󱁖"}.mdi-passport:before{content:"󰟣"}.mdi-passport-alert:before{content:"󱲸"}.mdi-passport-biometric:before{content:"󰷡"}.mdi-passport-cancel:before{content:"󱲹"}.mdi-passport-check:before{content:"󱲺"}.mdi-passport-minus:before{content:"󱲻"}.mdi-passport-plus:before{content:"󱲼"}.mdi-passport-remove:before{content:"󱲽"}.mdi-pasta:before{content:"󱅠"}.mdi-patio-heater:before{content:"󰾀"}.mdi-patreon:before{content:"󰢂"}.mdi-pause:before{content:"󰏤"}.mdi-pause-box:before{content:"󰂼"}.mdi-pause-box-outline:before{content:"󱭺"}.mdi-pause-circle:before{content:"󰏥"}.mdi-pause-circle-outline:before{content:"󰏦"}.mdi-pause-octagon:before{content:"󰏧"}.mdi-pause-octagon-outline:before{content:"󰏨"}.mdi-paw:before{content:"󰏩"}.mdi-paw-off:before{content:"󰙗"}.mdi-paw-off-outline:before{content:"󱙶"}.mdi-paw-outline:before{content:"󱙵"}.mdi-peace:before{content:"󰢄"}.mdi-peanut:before{content:"󰿼"}.mdi-peanut-off:before{content:"󰿽"}.mdi-peanut-off-outline:before{content:"󰿿"}.mdi-peanut-outline:before{content:"󰿾"}.mdi-pen:before{content:"󰏪"}.mdi-pen-lock:before{content:"󰷢"}.mdi-pen-minus:before{content:"󰷣"}.mdi-pen-off:before{content:"󰷤"}.mdi-pen-plus:before{content:"󰷥"}.mdi-pen-remove:before{content:"󰷦"}.mdi-pencil:before{content:"󰏫"}.mdi-pencil-box:before{content:"󰏬"}.mdi-pencil-box-multiple:before{content:"󱅄"}.mdi-pencil-box-multiple-outline:before{content:"󱅅"}.mdi-pencil-box-outline:before{content:"󰏭"}.mdi-pencil-circle:before{content:"󰛿"}.mdi-pencil-circle-outline:before{content:"󰝶"}.mdi-pencil-lock:before{content:"󰏮"}.mdi-pencil-lock-outline:before{content:"󰷧"}.mdi-pencil-minus:before{content:"󰷨"}.mdi-pencil-minus-outline:before{content:"󰷩"}.mdi-pencil-off:before{content:"󰏯"}.mdi-pencil-off-outline:before{content:"󰷪"}.mdi-pencil-outline:before{content:"󰲶"}.mdi-pencil-plus:before{content:"󰷫"}.mdi-pencil-plus-outline:before{content:"󰷬"}.mdi-pencil-remove:before{content:"󰷭"}.mdi-pencil-remove-outline:before{content:"󰷮"}.mdi-pencil-ruler:before{content:"󱍓"}.mdi-pencil-ruler-outline:before{content:"󱰑"}.mdi-penguin:before{content:"󰻀"}.mdi-pentagon:before{content:"󰜁"}.mdi-pentagon-outline:before{content:"󰜀"}.mdi-pentagram:before{content:"󱙧"}.mdi-percent:before{content:"󰏰"}.mdi-percent-box:before{content:"󱨂"}.mdi-percent-box-outline:before{content:"󱨃"}.mdi-percent-circle:before{content:"󱨄"}.mdi-percent-circle-outline:before{content:"󱨅"}.mdi-percent-outline:before{content:"󱉸"}.mdi-periodic-table:before{content:"󰢶"}.mdi-perspective-less:before{content:"󰴣"}.mdi-perspective-more:before{content:"󰴤"}.mdi-ph:before{content:"󱟅"}.mdi-phone:before{content:"󰏲"}.mdi-phone-alert:before{content:"󰼚"}.mdi-phone-alert-outline:before{content:"󱆎"}.mdi-phone-bluetooth:before{content:"󰏳"}.mdi-phone-bluetooth-outline:before{content:"󱆏"}.mdi-phone-cancel:before{content:"󱂼"}.mdi-phone-cancel-outline:before{content:"󱆐"}.mdi-phone-check:before{content:"󱆩"}.mdi-phone-check-outline:before{content:"󱆪"}.mdi-phone-classic:before{content:"󰘂"}.mdi-phone-classic-off:before{content:"󱉹"}.mdi-phone-clock:before{content:"󱧛"}.mdi-phone-dial:before{content:"󱕙"}.mdi-phone-dial-outline:before{content:"󱕚"}.mdi-phone-forward:before{content:"󰏴"}.mdi-phone-forward-outline:before{content:"󱆑"}.mdi-phone-hangup:before{content:"󰏵"}.mdi-phone-hangup-outline:before{content:"󱆒"}.mdi-phone-in-talk:before{content:"󰏶"}.mdi-phone-in-talk-outline:before{content:"󱆂"}.mdi-phone-incoming:before{content:"󰏷"}.mdi-phone-incoming-outgoing:before{content:"󱬿"}.mdi-phone-incoming-outgoing-outline:before{content:"󱭀"}.mdi-phone-incoming-outline:before{content:"󱆓"}.mdi-phone-lock:before{content:"󰏸"}.mdi-phone-lock-outline:before{content:"󱆔"}.mdi-phone-log:before{content:"󰏹"}.mdi-phone-log-outline:before{content:"󱆕"}.mdi-phone-message:before{content:"󱆖"}.mdi-phone-message-outline:before{content:"󱆗"}.mdi-phone-minus:before{content:"󰙘"}.mdi-phone-minus-outline:before{content:"󱆘"}.mdi-phone-missed:before{content:"󰏺"}.mdi-phone-missed-outline:before{content:"󱆥"}.mdi-phone-off:before{content:"󰷯"}.mdi-phone-off-outline:before{content:"󱆦"}.mdi-phone-outgoing:before{content:"󰏻"}.mdi-phone-outgoing-outline:before{content:"󱆙"}.mdi-phone-outline:before{content:"󰷰"}.mdi-phone-paused:before{content:"󰏼"}.mdi-phone-paused-outline:before{content:"󱆚"}.mdi-phone-plus:before{content:"󰙙"}.mdi-phone-plus-outline:before{content:"󱆛"}.mdi-phone-refresh:before{content:"󱦓"}.mdi-phone-refresh-outline:before{content:"󱦔"}.mdi-phone-remove:before{content:"󱔯"}.mdi-phone-remove-outline:before{content:"󱔰"}.mdi-phone-return:before{content:"󰠯"}.mdi-phone-return-outline:before{content:"󱆜"}.mdi-phone-ring:before{content:"󱆫"}.mdi-phone-ring-outline:before{content:"󱆬"}.mdi-phone-rotate-landscape:before{content:"󰢅"}.mdi-phone-rotate-portrait:before{content:"󰢆"}.mdi-phone-settings:before{content:"󰏽"}.mdi-phone-settings-outline:before{content:"󱆝"}.mdi-phone-sync:before{content:"󱦕"}.mdi-phone-sync-outline:before{content:"󱦖"}.mdi-phone-voip:before{content:"󰏾"}.mdi-pi:before{content:"󰏿"}.mdi-pi-box:before{content:"󰐀"}.mdi-pi-hole:before{content:"󰷱"}.mdi-piano:before{content:"󰙽"}.mdi-piano-off:before{content:"󰚘"}.mdi-pickaxe:before{content:"󰢷"}.mdi-picture-in-picture-bottom-right:before{content:"󰹗"}.mdi-picture-in-picture-bottom-right-outline:before{content:"󰹘"}.mdi-picture-in-picture-top-right:before{content:"󰹙"}.mdi-picture-in-picture-top-right-outline:before{content:"󰹚"}.mdi-pier:before{content:"󰢇"}.mdi-pier-crane:before{content:"󰢈"}.mdi-pig:before{content:"󰐁"}.mdi-pig-variant:before{content:"󱀆"}.mdi-pig-variant-outline:before{content:"󱙸"}.mdi-piggy-bank:before{content:"󱀇"}.mdi-piggy-bank-outline:before{content:"󱙹"}.mdi-pill:before{content:"󰐂"}.mdi-pill-multiple:before{content:"󱭌"}.mdi-pill-off:before{content:"󱩜"}.mdi-pillar:before{content:"󰜂"}.mdi-pin:before{content:"󰐃"}.mdi-pin-off:before{content:"󰐄"}.mdi-pin-off-outline:before{content:"󰤰"}.mdi-pin-outline:before{content:"󰤱"}.mdi-pine-tree:before{content:"󰐅"}.mdi-pine-tree-box:before{content:"󰐆"}.mdi-pine-tree-fire:before{content:"󱐚"}.mdi-pine-tree-variant:before{content:"󱱳"}.mdi-pine-tree-variant-outline:before{content:"󱱴"}.mdi-pinterest:before{content:"󰐇"}.mdi-pinwheel:before{content:"󰫕"}.mdi-pinwheel-outline:before{content:"󰫖"}.mdi-pipe:before{content:"󰟥"}.mdi-pipe-disconnected:before{content:"󰟦"}.mdi-pipe-leak:before{content:"󰢉"}.mdi-pipe-valve:before{content:"󱡍"}.mdi-pipe-wrench:before{content:"󱍔"}.mdi-pirate:before{content:"󰨈"}.mdi-pistol:before{content:"󰜃"}.mdi-piston:before{content:"󰢊"}.mdi-pitchfork:before{content:"󱕓"}.mdi-pizza:before{content:"󰐉"}.mdi-plane-car:before{content:"󱫿"}.mdi-plane-train:before{content:"󱬀"}.mdi-play:before{content:"󰐊"}.mdi-play-box:before{content:"󱉺"}.mdi-play-box-edit-outline:before{content:"󱰺"}.mdi-play-box-lock:before{content:"󱨖"}.mdi-play-box-lock-open:before{content:"󱨗"}.mdi-play-box-lock-open-outline:before{content:"󱨘"}.mdi-play-box-lock-outline:before{content:"󱨙"}.mdi-play-box-multiple:before{content:"󰴙"}.mdi-play-box-multiple-outline:before{content:"󱏦"}.mdi-play-box-outline:before{content:"󰐋"}.mdi-play-circle:before{content:"󰐌"}.mdi-play-circle-outline:before{content:"󰐍"}.mdi-play-network:before{content:"󰢋"}.mdi-play-network-outline:before{content:"󰲷"}.mdi-play-outline:before{content:"󰼛"}.mdi-play-pause:before{content:"󰐎"}.mdi-play-protected-content:before{content:"󰐏"}.mdi-play-speed:before{content:"󰣿"}.mdi-playlist-check:before{content:"󰗇"}.mdi-playlist-edit:before{content:"󰤀"}.mdi-playlist-minus:before{content:"󰐐"}.mdi-playlist-music:before{content:"󰲸"}.mdi-playlist-music-outline:before{content:"󰲹"}.mdi-playlist-play:before{content:"󰐑"}.mdi-playlist-plus:before{content:"󰐒"}.mdi-playlist-remove:before{content:"󰐓"}.mdi-playlist-star:before{content:"󰷲"}.mdi-plex:before{content:"󰚺"}.mdi-pliers:before{content:"󱦤"}.mdi-plus:before{content:"󰐕"}.mdi-plus-box:before{content:"󰐖"}.mdi-plus-box-multiple:before{content:"󰌴"}.mdi-plus-box-multiple-outline:before{content:"󱅃"}.mdi-plus-box-outline:before{content:"󰜄"}.mdi-plus-circle:before{content:"󰐗"}.mdi-plus-circle-multiple:before{content:"󰍌"}.mdi-plus-circle-multiple-outline:before{content:"󰐘"}.mdi-plus-circle-outline:before{content:"󰐙"}.mdi-plus-lock:before{content:"󱩝"}.mdi-plus-lock-open:before{content:"󱩞"}.mdi-plus-minus:before{content:"󰦒"}.mdi-plus-minus-box:before{content:"󰦓"}.mdi-plus-minus-variant:before{content:"󱓉"}.mdi-plus-network:before{content:"󰐚"}.mdi-plus-network-outline:before{content:"󰲺"}.mdi-plus-outline:before{content:"󰜅"}.mdi-plus-thick:before{content:"󱇬"}.mdi-pocket:before{content:"󱲾"}.mdi-podcast:before{content:"󰦔"}.mdi-podium:before{content:"󰴥"}.mdi-podium-bronze:before{content:"󰴦"}.mdi-podium-gold:before{content:"󰴧"}.mdi-podium-silver:before{content:"󰴨"}.mdi-point-of-sale:before{content:"󰶒"}.mdi-pokeball:before{content:"󰐝"}.mdi-pokemon-go:before{content:"󰨉"}.mdi-poker-chip:before{content:"󰠰"}.mdi-polaroid:before{content:"󰐞"}.mdi-police-badge:before{content:"󱅧"}.mdi-police-badge-outline:before{content:"󱅨"}.mdi-police-station:before{content:"󱠹"}.mdi-poll:before{content:"󰐟"}.mdi-polo:before{content:"󱓃"}.mdi-polymer:before{content:"󰐡"}.mdi-pool:before{content:"󰘆"}.mdi-pool-thermometer:before{content:"󱩟"}.mdi-popcorn:before{content:"󰐢"}.mdi-post:before{content:"󱀈"}.mdi-post-lamp:before{content:"󱩠"}.mdi-post-outline:before{content:"󱀉"}.mdi-postage-stamp:before{content:"󰲻"}.mdi-pot:before{content:"󰋥"}.mdi-pot-mix:before{content:"󰙛"}.mdi-pot-mix-outline:before{content:"󰙷"}.mdi-pot-outline:before{content:"󰋿"}.mdi-pot-steam:before{content:"󰙚"}.mdi-pot-steam-outline:before{content:"󰌦"}.mdi-pound:before{content:"󰐣"}.mdi-pound-box:before{content:"󰐤"}.mdi-pound-box-outline:before{content:"󱅿"}.mdi-power:before{content:"󰐥"}.mdi-power-cycle:before{content:"󰤁"}.mdi-power-off:before{content:"󰤂"}.mdi-power-on:before{content:"󰤃"}.mdi-power-plug:before{content:"󰚥"}.mdi-power-plug-battery:before{content:"󱰻"}.mdi-power-plug-battery-outline:before{content:"󱰼"}.mdi-power-plug-off:before{content:"󰚦"}.mdi-power-plug-off-outline:before{content:"󱐤"}.mdi-power-plug-outline:before{content:"󱐥"}.mdi-power-settings:before{content:"󰐦"}.mdi-power-sleep:before{content:"󰤄"}.mdi-power-socket:before{content:"󰐧"}.mdi-power-socket-au:before{content:"󰤅"}.mdi-power-socket-ch:before{content:"󰾳"}.mdi-power-socket-de:before{content:"󱄇"}.mdi-power-socket-eu:before{content:"󰟧"}.mdi-power-socket-fr:before{content:"󱄈"}.mdi-power-socket-it:before{content:"󱓿"}.mdi-power-socket-jp:before{content:"󱄉"}.mdi-power-socket-uk:before{content:"󰟨"}.mdi-power-socket-us:before{content:"󰟩"}.mdi-power-standby:before{content:"󰤆"}.mdi-powershell:before{content:"󰨊"}.mdi-prescription:before{content:"󰜆"}.mdi-presentation:before{content:"󰐨"}.mdi-presentation-play:before{content:"󰐩"}.mdi-pretzel:before{content:"󱕢"}.mdi-printer:before{content:"󰐪"}.mdi-printer-3d:before{content:"󰐫"}.mdi-printer-3d-nozzle:before{content:"󰹛"}.mdi-printer-3d-nozzle-alert:before{content:"󱇀"}.mdi-printer-3d-nozzle-alert-outline:before{content:"󱇁"}.mdi-printer-3d-nozzle-heat:before{content:"󱢸"}.mdi-printer-3d-nozzle-heat-outline:before{content:"󱢹"}.mdi-printer-3d-nozzle-off:before{content:"󱬙"}.mdi-printer-3d-nozzle-off-outline:before{content:"󱬚"}.mdi-printer-3d-nozzle-outline:before{content:"󰹜"}.mdi-printer-3d-off:before{content:"󱬎"}.mdi-printer-alert:before{content:"󰐬"}.mdi-printer-check:before{content:"󱅆"}.mdi-printer-eye:before{content:"󱑘"}.mdi-printer-off:before{content:"󰹝"}.mdi-printer-off-outline:before{content:"󱞅"}.mdi-printer-outline:before{content:"󱞆"}.mdi-printer-pos:before{content:"󱁗"}.mdi-printer-pos-alert:before{content:"󱮼"}.mdi-printer-pos-alert-outline:before{content:"󱮽"}.mdi-printer-pos-cancel:before{content:"󱮾"}.mdi-printer-pos-cancel-outline:before{content:"󱮿"}.mdi-printer-pos-check:before{content:"󱯀"}.mdi-printer-pos-check-outline:before{content:"󱯁"}.mdi-printer-pos-cog:before{content:"󱯂"}.mdi-printer-pos-cog-outline:before{content:"󱯃"}.mdi-printer-pos-edit:before{content:"󱯄"}.mdi-printer-pos-edit-outline:before{content:"󱯅"}.mdi-printer-pos-minus:before{content:"󱯆"}.mdi-printer-pos-minus-outline:before{content:"󱯇"}.mdi-printer-pos-network:before{content:"󱯈"}.mdi-printer-pos-network-outline:before{content:"󱯉"}.mdi-printer-pos-off:before{content:"󱯊"}.mdi-printer-pos-off-outline:before{content:"󱯋"}.mdi-printer-pos-outline:before{content:"󱯌"}.mdi-printer-pos-pause:before{content:"󱯍"}.mdi-printer-pos-pause-outline:before{content:"󱯎"}.mdi-printer-pos-play:before{content:"󱯏"}.mdi-printer-pos-play-outline:before{content:"󱯐"}.mdi-printer-pos-plus:before{content:"󱯑"}.mdi-printer-pos-plus-outline:before{content:"󱯒"}.mdi-printer-pos-refresh:before{content:"󱯓"}.mdi-printer-pos-refresh-outline:before{content:"󱯔"}.mdi-printer-pos-remove:before{content:"󱯕"}.mdi-printer-pos-remove-outline:before{content:"󱯖"}.mdi-printer-pos-star:before{content:"󱯗"}.mdi-printer-pos-star-outline:before{content:"󱯘"}.mdi-printer-pos-stop:before{content:"󱯙"}.mdi-printer-pos-stop-outline:before{content:"󱯚"}.mdi-printer-pos-sync:before{content:"󱯛"}.mdi-printer-pos-sync-outline:before{content:"󱯜"}.mdi-printer-pos-wrench:before{content:"󱯝"}.mdi-printer-pos-wrench-outline:before{content:"󱯞"}.mdi-printer-search:before{content:"󱑗"}.mdi-printer-settings:before{content:"󰜇"}.mdi-printer-wireless:before{content:"󰨋"}.mdi-priority-high:before{content:"󰘃"}.mdi-priority-low:before{content:"󰘄"}.mdi-professional-hexagon:before{content:"󰐭"}.mdi-progress-alert:before{content:"󰲼"}.mdi-progress-check:before{content:"󰦕"}.mdi-progress-clock:before{content:"󰦖"}.mdi-progress-close:before{content:"󱄊"}.mdi-progress-download:before{content:"󰦗"}.mdi-progress-helper:before{content:"󱮢"}.mdi-progress-pencil:before{content:"󱞇"}.mdi-progress-question:before{content:"󱔢"}.mdi-progress-star:before{content:"󱞈"}.mdi-progress-star-four-points:before{content:"󱰽"}.mdi-progress-upload:before{content:"󰦘"}.mdi-progress-wrench:before{content:"󰲽"}.mdi-projector:before{content:"󰐮"}.mdi-projector-off:before{content:"󱨣"}.mdi-projector-screen:before{content:"󰐯"}.mdi-projector-screen-off:before{content:"󱠍"}.mdi-projector-screen-off-outline:before{content:"󱠎"}.mdi-projector-screen-outline:before{content:"󱜤"}.mdi-projector-screen-variant:before{content:"󱠏"}.mdi-projector-screen-variant-off:before{content:"󱠐"}.mdi-projector-screen-variant-off-outline:before{content:"󱠑"}.mdi-projector-screen-variant-outline:before{content:"󱠒"}.mdi-propane-tank:before{content:"󱍗"}.mdi-propane-tank-outline:before{content:"󱍘"}.mdi-protocol:before{content:"󰿘"}.mdi-publish:before{content:"󰚧"}.mdi-publish-off:before{content:"󱥅"}.mdi-pulse:before{content:"󰐰"}.mdi-pump:before{content:"󱐂"}.mdi-pump-off:before{content:"󱬢"}.mdi-pumpkin:before{content:"󰮿"}.mdi-purse:before{content:"󰼜"}.mdi-purse-outline:before{content:"󰼝"}.mdi-puzzle:before{content:"󰐱"}.mdi-puzzle-check:before{content:"󱐦"}.mdi-puzzle-check-outline:before{content:"󱐧"}.mdi-puzzle-edit:before{content:"󱓓"}.mdi-puzzle-edit-outline:before{content:"󱓙"}.mdi-puzzle-heart:before{content:"󱓔"}.mdi-puzzle-heart-outline:before{content:"󱓚"}.mdi-puzzle-minus:before{content:"󱓑"}.mdi-puzzle-minus-outline:before{content:"󱓗"}.mdi-puzzle-outline:before{content:"󰩦"}.mdi-puzzle-plus:before{content:"󱓐"}.mdi-puzzle-plus-outline:before{content:"󱓖"}.mdi-puzzle-remove:before{content:"󱓒"}.mdi-puzzle-remove-outline:before{content:"󱓘"}.mdi-puzzle-star:before{content:"󱓕"}.mdi-puzzle-star-outline:before{content:"󱓛"}.mdi-pyramid:before{content:"󱥒"}.mdi-pyramid-off:before{content:"󱥓"}.mdi-qi:before{content:"󰦙"}.mdi-qqchat:before{content:"󰘅"}.mdi-qrcode:before{content:"󰐲"}.mdi-qrcode-edit:before{content:"󰢸"}.mdi-qrcode-minus:before{content:"󱆌"}.mdi-qrcode-plus:before{content:"󱆋"}.mdi-qrcode-remove:before{content:"󱆍"}.mdi-qrcode-scan:before{content:"󰐳"}.mdi-quadcopter:before{content:"󰐴"}.mdi-quality-high:before{content:"󰐵"}.mdi-quality-low:before{content:"󰨌"}.mdi-quality-medium:before{content:"󰨍"}.mdi-queue-first-in-last-out:before{content:"󱲯"}.mdi-quora:before{content:"󰴩"}.mdi-rabbit:before{content:"󰤇"}.mdi-rabbit-variant:before{content:"󱩡"}.mdi-rabbit-variant-outline:before{content:"󱩢"}.mdi-racing-helmet:before{content:"󰶓"}.mdi-racquetball:before{content:"󰶔"}.mdi-radar:before{content:"󰐷"}.mdi-radiator:before{content:"󰐸"}.mdi-radiator-disabled:before{content:"󰫗"}.mdi-radiator-off:before{content:"󰫘"}.mdi-radio:before{content:"󰐹"}.mdi-radio-am:before{content:"󰲾"}.mdi-radio-fm:before{content:"󰲿"}.mdi-radio-handheld:before{content:"󰐺"}.mdi-radio-off:before{content:"󱈜"}.mdi-radio-tower:before{content:"󰐻"}.mdi-radioactive:before{content:"󰐼"}.mdi-radioactive-circle:before{content:"󱡝"}.mdi-radioactive-circle-outline:before{content:"󱡞"}.mdi-radioactive-off:before{content:"󰻁"}.mdi-radiobox-blank:before{content:"󰐽"}.mdi-radiobox-indeterminate-variant:before{content:"󱱞"}.mdi-radiobox-marked:before{content:"󰐾"}.mdi-radiology-box:before{content:"󱓅"}.mdi-radiology-box-outline:before{content:"󱓆"}.mdi-radius:before{content:"󰳀"}.mdi-radius-outline:before{content:"󰳁"}.mdi-railroad-light:before{content:"󰼞"}.mdi-rake:before{content:"󱕄"}.mdi-raspberry-pi:before{content:"󰐿"}.mdi-raw:before{content:"󱨏"}.mdi-raw-off:before{content:"󱨐"}.mdi-ray-end:before{content:"󰑀"}.mdi-ray-end-arrow:before{content:"󰑁"}.mdi-ray-start:before{content:"󰑂"}.mdi-ray-start-arrow:before{content:"󰑃"}.mdi-ray-start-end:before{content:"󰑄"}.mdi-ray-start-vertex-end:before{content:"󱗘"}.mdi-ray-vertex:before{content:"󰑅"}.mdi-razor-double-edge:before{content:"󱦗"}.mdi-razor-single-edge:before{content:"󱦘"}.mdi-react:before{content:"󰜈"}.mdi-read:before{content:"󰑇"}.mdi-receipt:before{content:"󰠤"}.mdi-receipt-clock:before{content:"󱰾"}.mdi-receipt-clock-outline:before{content:"󱰿"}.mdi-receipt-outline:before{content:"󰓷"}.mdi-receipt-send:before{content:"󱱀"}.mdi-receipt-send-outline:before{content:"󱱁"}.mdi-receipt-text:before{content:"󰑉"}.mdi-receipt-text-arrow-left:before{content:"󱱂"}.mdi-receipt-text-arrow-left-outline:before{content:"󱱃"}.mdi-receipt-text-arrow-right:before{content:"󱱄"}.mdi-receipt-text-arrow-right-outline:before{content:"󱱅"}.mdi-receipt-text-check:before{content:"󱩣"}.mdi-receipt-text-check-outline:before{content:"󱩤"}.mdi-receipt-text-clock:before{content:"󱱆"}.mdi-receipt-text-clock-outline:before{content:"󱱇"}.mdi-receipt-text-edit:before{content:"󱱈"}.mdi-receipt-text-edit-outline:before{content:"󱱉"}.mdi-receipt-text-minus:before{content:"󱩥"}.mdi-receipt-text-minus-outline:before{content:"󱩦"}.mdi-receipt-text-outline:before{content:"󱧜"}.mdi-receipt-text-plus:before{content:"󱩧"}.mdi-receipt-text-plus-outline:before{content:"󱩨"}.mdi-receipt-text-remove:before{content:"󱩩"}.mdi-receipt-text-remove-outline:before{content:"󱩪"}.mdi-receipt-text-send:before{content:"󱱊"}.mdi-receipt-text-send-outline:before{content:"󱱋"}.mdi-record:before{content:"󰑊"}.mdi-record-circle:before{content:"󰻂"}.mdi-record-circle-outline:before{content:"󰻃"}.mdi-record-player:before{content:"󰦚"}.mdi-record-rec:before{content:"󰑋"}.mdi-rectangle:before{content:"󰹞"}.mdi-rectangle-outline:before{content:"󰹟"}.mdi-recycle:before{content:"󰑌"}.mdi-recycle-variant:before{content:"󱎝"}.mdi-reddit:before{content:"󰑍"}.mdi-redhat:before{content:"󱄛"}.mdi-redo:before{content:"󰑎"}.mdi-redo-variant:before{content:"󰑏"}.mdi-reflect-horizontal:before{content:"󰨎"}.mdi-reflect-vertical:before{content:"󰨏"}.mdi-refresh:before{content:"󰑐"}.mdi-refresh-auto:before{content:"󱣲"}.mdi-refresh-circle:before{content:"󱍷"}.mdi-regex:before{content:"󰑑"}.mdi-registered-trademark:before{content:"󰩧"}.mdi-reiterate:before{content:"󱖈"}.mdi-relation-many-to-many:before{content:"󱒖"}.mdi-relation-many-to-one:before{content:"󱒗"}.mdi-relation-many-to-one-or-many:before{content:"󱒘"}.mdi-relation-many-to-only-one:before{content:"󱒙"}.mdi-relation-many-to-zero-or-many:before{content:"󱒚"}.mdi-relation-many-to-zero-or-one:before{content:"󱒛"}.mdi-relation-one-or-many-to-many:before{content:"󱒜"}.mdi-relation-one-or-many-to-one:before{content:"󱒝"}.mdi-relation-one-or-many-to-one-or-many:before{content:"󱒞"}.mdi-relation-one-or-many-to-only-one:before{content:"󱒟"}.mdi-relation-one-or-many-to-zero-or-many:before{content:"󱒠"}.mdi-relation-one-or-many-to-zero-or-one:before{content:"󱒡"}.mdi-relation-one-to-many:before{content:"󱒢"}.mdi-relation-one-to-one:before{content:"󱒣"}.mdi-relation-one-to-one-or-many:before{content:"󱒤"}.mdi-relation-one-to-only-one:before{content:"󱒥"}.mdi-relation-one-to-zero-or-many:before{content:"󱒦"}.mdi-relation-one-to-zero-or-one:before{content:"󱒧"}.mdi-relation-only-one-to-many:before{content:"󱒨"}.mdi-relation-only-one-to-one:before{content:"󱒩"}.mdi-relation-only-one-to-one-or-many:before{content:"󱒪"}.mdi-relation-only-one-to-only-one:before{content:"󱒫"}.mdi-relation-only-one-to-zero-or-many:before{content:"󱒬"}.mdi-relation-only-one-to-zero-or-one:before{content:"󱒭"}.mdi-relation-zero-or-many-to-many:before{content:"󱒮"}.mdi-relation-zero-or-many-to-one:before{content:"󱒯"}.mdi-relation-zero-or-many-to-one-or-many:before{content:"󱒰"}.mdi-relation-zero-or-many-to-only-one:before{content:"󱒱"}.mdi-relation-zero-or-many-to-zero-or-many:before{content:"󱒲"}.mdi-relation-zero-or-many-to-zero-or-one:before{content:"󱒳"}.mdi-relation-zero-or-one-to-many:before{content:"󱒴"}.mdi-relation-zero-or-one-to-one:before{content:"󱒵"}.mdi-relation-zero-or-one-to-one-or-many:before{content:"󱒶"}.mdi-relation-zero-or-one-to-only-one:before{content:"󱒷"}.mdi-relation-zero-or-one-to-zero-or-many:before{content:"󱒸"}.mdi-relation-zero-or-one-to-zero-or-one:before{content:"󱒹"}.mdi-relative-scale:before{content:"󰑒"}.mdi-reload:before{content:"󰑓"}.mdi-reload-alert:before{content:"󱄋"}.mdi-reminder:before{content:"󰢌"}.mdi-remote:before{content:"󰑔"}.mdi-remote-desktop:before{content:"󰢹"}.mdi-remote-off:before{content:"󰻄"}.mdi-remote-tv:before{content:"󰻅"}.mdi-remote-tv-off:before{content:"󰻆"}.mdi-rename:before{content:"󱰘"}.mdi-rename-box:before{content:"󰑕"}.mdi-rename-box-outline:before{content:"󱰙"}.mdi-rename-outline:before{content:"󱰚"}.mdi-reorder-horizontal:before{content:"󰚈"}.mdi-reorder-vertical:before{content:"󰚉"}.mdi-repeat:before{content:"󰑖"}.mdi-repeat-off:before{content:"󰑗"}.mdi-repeat-once:before{content:"󰑘"}.mdi-repeat-variant:before{content:"󰕇"}.mdi-replay:before{content:"󰑙"}.mdi-reply:before{content:"󰑚"}.mdi-reply-all:before{content:"󰑛"}.mdi-reply-all-outline:before{content:"󰼟"}.mdi-reply-circle:before{content:"󱆮"}.mdi-reply-outline:before{content:"󰼠"}.mdi-reproduction:before{content:"󰑜"}.mdi-resistor:before{content:"󰭄"}.mdi-resistor-nodes:before{content:"󰭅"}.mdi-resize:before{content:"󰩨"}.mdi-resize-bottom-right:before{content:"󰑝"}.mdi-responsive:before{content:"󰑞"}.mdi-restart:before{content:"󰜉"}.mdi-restart-alert:before{content:"󱄌"}.mdi-restart-off:before{content:"󰶕"}.mdi-restore:before{content:"󰦛"}.mdi-restore-alert:before{content:"󱄍"}.mdi-rewind:before{content:"󰑟"}.mdi-rewind-10:before{content:"󰴪"}.mdi-rewind-15:before{content:"󱥆"}.mdi-rewind-30:before{content:"󰶖"}.mdi-rewind-45:before{content:"󱬓"}.mdi-rewind-5:before{content:"󱇹"}.mdi-rewind-60:before{content:"󱘌"}.mdi-rewind-outline:before{content:"󰜊"}.mdi-rhombus:before{content:"󰜋"}.mdi-rhombus-medium:before{content:"󰨐"}.mdi-rhombus-medium-outline:before{content:"󱓜"}.mdi-rhombus-outline:before{content:"󰜌"}.mdi-rhombus-split:before{content:"󰨑"}.mdi-rhombus-split-outline:before{content:"󱓝"}.mdi-ribbon:before{content:"󰑠"}.mdi-rice:before{content:"󰟪"}.mdi-rickshaw:before{content:"󱖻"}.mdi-rickshaw-electric:before{content:"󱖼"}.mdi-ring:before{content:"󰟫"}.mdi-rivet:before{content:"󰹠"}.mdi-road:before{content:"󰑡"}.mdi-road-variant:before{content:"󰑢"}.mdi-robber:before{content:"󱁘"}.mdi-robot:before{content:"󰚩"}.mdi-robot-angry:before{content:"󱚝"}.mdi-robot-angry-outline:before{content:"󱚞"}.mdi-robot-confused:before{content:"󱚟"}.mdi-robot-confused-outline:before{content:"󱚠"}.mdi-robot-dead:before{content:"󱚡"}.mdi-robot-dead-outline:before{content:"󱚢"}.mdi-robot-excited:before{content:"󱚣"}.mdi-robot-excited-outline:before{content:"󱚤"}.mdi-robot-happy:before{content:"󱜙"}.mdi-robot-happy-outline:before{content:"󱜚"}.mdi-robot-industrial:before{content:"󰭆"}.mdi-robot-industrial-outline:before{content:"󱨚"}.mdi-robot-love:before{content:"󱚥"}.mdi-robot-love-outline:before{content:"󱚦"}.mdi-robot-mower:before{content:"󱇷"}.mdi-robot-mower-outline:before{content:"󱇳"}.mdi-robot-off:before{content:"󱚧"}.mdi-robot-off-outline:before{content:"󱙻"}.mdi-robot-outline:before{content:"󱙺"}.mdi-robot-vacuum:before{content:"󰜍"}.mdi-robot-vacuum-alert:before{content:"󱭝"}.mdi-robot-vacuum-off:before{content:"󱰁"}.mdi-robot-vacuum-variant:before{content:"󰤈"}.mdi-robot-vacuum-variant-alert:before{content:"󱭞"}.mdi-robot-vacuum-variant-off:before{content:"󱰂"}.mdi-rocket:before{content:"󰑣"}.mdi-rocket-launch:before{content:"󱓞"}.mdi-rocket-launch-outline:before{content:"󱓟"}.mdi-rocket-outline:before{content:"󱎯"}.mdi-rodent:before{content:"󱌧"}.mdi-roller-shade:before{content:"󱩫"}.mdi-roller-shade-closed:before{content:"󱩬"}.mdi-roller-skate:before{content:"󰴫"}.mdi-roller-skate-off:before{content:"󰅅"}.mdi-rollerblade:before{content:"󰴬"}.mdi-rollerblade-off:before{content:"󰀮"}.mdi-rollupjs:before{content:"󰯀"}.mdi-rolodex:before{content:"󱪹"}.mdi-rolodex-outline:before{content:"󱪺"}.mdi-roman-numeral-1:before{content:"󱂈"}.mdi-roman-numeral-10:before{content:"󱂑"}.mdi-roman-numeral-2:before{content:"󱂉"}.mdi-roman-numeral-3:before{content:"󱂊"}.mdi-roman-numeral-4:before{content:"󱂋"}.mdi-roman-numeral-5:before{content:"󱂌"}.mdi-roman-numeral-6:before{content:"󱂍"}.mdi-roman-numeral-7:before{content:"󱂎"}.mdi-roman-numeral-8:before{content:"󱂏"}.mdi-roman-numeral-9:before{content:"󱂐"}.mdi-room-service:before{content:"󰢍"}.mdi-room-service-outline:before{content:"󰶗"}.mdi-rotate-360:before{content:"󱦙"}.mdi-rotate-3d:before{content:"󰻇"}.mdi-rotate-3d-variant:before{content:"󰑤"}.mdi-rotate-left:before{content:"󰑥"}.mdi-rotate-left-variant:before{content:"󰑦"}.mdi-rotate-orbit:before{content:"󰶘"}.mdi-rotate-right:before{content:"󰑧"}.mdi-rotate-right-variant:before{content:"󰑨"}.mdi-rounded-corner:before{content:"󰘇"}.mdi-router:before{content:"󱇢"}.mdi-router-network:before{content:"󱂇"}.mdi-router-network-wireless:before{content:"󱲗"}.mdi-router-wireless:before{content:"󰑩"}.mdi-router-wireless-off:before{content:"󱖣"}.mdi-router-wireless-settings:before{content:"󰩩"}.mdi-routes:before{content:"󰑪"}.mdi-routes-clock:before{content:"󱁙"}.mdi-rowing:before{content:"󰘈"}.mdi-rss:before{content:"󰑫"}.mdi-rss-box:before{content:"󰑬"}.mdi-rss-off:before{content:"󰼡"}.mdi-rug:before{content:"󱑵"}.mdi-rugby:before{content:"󰶙"}.mdi-ruler:before{content:"󰑭"}.mdi-ruler-square:before{content:"󰳂"}.mdi-ruler-square-compass:before{content:"󰺾"}.mdi-run:before{content:"󰜎"}.mdi-run-fast:before{content:"󰑮"}.mdi-rv-truck:before{content:"󱇔"}.mdi-sack:before{content:"󰴮"}.mdi-sack-outline:before{content:"󱱌"}.mdi-sack-percent:before{content:"󰴯"}.mdi-safe:before{content:"󰩪"}.mdi-safe-square:before{content:"󱉼"}.mdi-safe-square-outline:before{content:"󱉽"}.mdi-safety-goggles:before{content:"󰴰"}.mdi-sail-boat:before{content:"󰻈"}.mdi-sail-boat-sink:before{content:"󱫯"}.mdi-sale:before{content:"󰑯"}.mdi-sale-outline:before{content:"󱨆"}.mdi-salesforce:before{content:"󰢎"}.mdi-sass:before{content:"󰟬"}.mdi-satellite:before{content:"󰑰"}.mdi-satellite-uplink:before{content:"󰤉"}.mdi-satellite-variant:before{content:"󰑱"}.mdi-sausage:before{content:"󰢺"}.mdi-sausage-off:before{content:"󱞉"}.mdi-saw-blade:before{content:"󰹡"}.mdi-sawtooth-wave:before{content:"󱑺"}.mdi-saxophone:before{content:"󰘉"}.mdi-scale:before{content:"󰑲"}.mdi-scale-balance:before{content:"󰗑"}.mdi-scale-bathroom:before{content:"󰑳"}.mdi-scale-off:before{content:"󱁚"}.mdi-scale-unbalanced:before{content:"󱦸"}.mdi-scan-helper:before{content:"󱏘"}.mdi-scanner:before{content:"󰚫"}.mdi-scanner-off:before{content:"󰤊"}.mdi-scatter-plot:before{content:"󰻉"}.mdi-scatter-plot-outline:before{content:"󰻊"}.mdi-scent:before{content:"󱥘"}.mdi-scent-off:before{content:"󱥙"}.mdi-school:before{content:"󰑴"}.mdi-school-outline:before{content:"󱆀"}.mdi-scissors-cutting:before{content:"󰩫"}.mdi-scooter:before{content:"󱖽"}.mdi-scooter-electric:before{content:"󱖾"}.mdi-scoreboard:before{content:"󱉾"}.mdi-scoreboard-outline:before{content:"󱉿"}.mdi-screen-rotation:before{content:"󰑵"}.mdi-screen-rotation-lock:before{content:"󰑸"}.mdi-screw-flat-top:before{content:"󰷳"}.mdi-screw-lag:before{content:"󰷴"}.mdi-screw-machine-flat-top:before{content:"󰷵"}.mdi-screw-machine-round-top:before{content:"󰷶"}.mdi-screw-round-top:before{content:"󰷷"}.mdi-screwdriver:before{content:"󰑶"}.mdi-script:before{content:"󰯁"}.mdi-script-outline:before{content:"󰑷"}.mdi-script-text:before{content:"󰯂"}.mdi-script-text-key:before{content:"󱜥"}.mdi-script-text-key-outline:before{content:"󱜦"}.mdi-script-text-outline:before{content:"󰯃"}.mdi-script-text-play:before{content:"󱜧"}.mdi-script-text-play-outline:before{content:"󱜨"}.mdi-sd:before{content:"󰑹"}.mdi-seal:before{content:"󰑺"}.mdi-seal-variant:before{content:"󰿙"}.mdi-search-web:before{content:"󰜏"}.mdi-seat:before{content:"󰳃"}.mdi-seat-flat:before{content:"󰑻"}.mdi-seat-flat-angled:before{content:"󰑼"}.mdi-seat-individual-suite:before{content:"󰑽"}.mdi-seat-legroom-extra:before{content:"󰑾"}.mdi-seat-legroom-normal:before{content:"󰑿"}.mdi-seat-legroom-reduced:before{content:"󰒀"}.mdi-seat-outline:before{content:"󰳄"}.mdi-seat-passenger:before{content:"󱉉"}.mdi-seat-recline-extra:before{content:"󰒁"}.mdi-seat-recline-normal:before{content:"󰒂"}.mdi-seatbelt:before{content:"󰳅"}.mdi-security:before{content:"󰒃"}.mdi-security-network:before{content:"󰒄"}.mdi-seed:before{content:"󰹢"}.mdi-seed-off:before{content:"󱏽"}.mdi-seed-off-outline:before{content:"󱏾"}.mdi-seed-outline:before{content:"󰹣"}.mdi-seed-plus:before{content:"󱩭"}.mdi-seed-plus-outline:before{content:"󱩮"}.mdi-seesaw:before{content:"󱖤"}.mdi-segment:before{content:"󰻋"}.mdi-select:before{content:"󰒅"}.mdi-select-all:before{content:"󰒆"}.mdi-select-arrow-down:before{content:"󱭙"}.mdi-select-arrow-up:before{content:"󱭘"}.mdi-select-color:before{content:"󰴱"}.mdi-select-compare:before{content:"󰫙"}.mdi-select-drag:before{content:"󰩬"}.mdi-select-group:before{content:"󰾂"}.mdi-select-inverse:before{content:"󰒇"}.mdi-select-marker:before{content:"󱊀"}.mdi-select-multiple:before{content:"󱊁"}.mdi-select-multiple-marker:before{content:"󱊂"}.mdi-select-off:before{content:"󰒈"}.mdi-select-place:before{content:"󰿚"}.mdi-select-remove:before{content:"󱟁"}.mdi-select-search:before{content:"󱈄"}.mdi-selection:before{content:"󰒉"}.mdi-selection-drag:before{content:"󰩭"}.mdi-selection-ellipse:before{content:"󰴲"}.mdi-selection-ellipse-arrow-inside:before{content:"󰼢"}.mdi-selection-ellipse-remove:before{content:"󱟂"}.mdi-selection-marker:before{content:"󱊃"}.mdi-selection-multiple:before{content:"󱊅"}.mdi-selection-multiple-marker:before{content:"󱊄"}.mdi-selection-off:before{content:"󰝷"}.mdi-selection-remove:before{content:"󱟃"}.mdi-selection-search:before{content:"󱈅"}.mdi-semantic-web:before{content:"󱌖"}.mdi-send:before{content:"󰒊"}.mdi-send-check:before{content:"󱅡"}.mdi-send-check-outline:before{content:"󱅢"}.mdi-send-circle:before{content:"󰷸"}.mdi-send-circle-outline:before{content:"󰷹"}.mdi-send-clock:before{content:"󱅣"}.mdi-send-clock-outline:before{content:"󱅤"}.mdi-send-lock:before{content:"󰟭"}.mdi-send-lock-outline:before{content:"󱅦"}.mdi-send-outline:before{content:"󱅥"}.mdi-send-variant:before{content:"󱱍"}.mdi-send-variant-clock:before{content:"󱱾"}.mdi-send-variant-clock-outline:before{content:"󱱿"}.mdi-send-variant-outline:before{content:"󱱎"}.mdi-serial-port:before{content:"󰙜"}.mdi-server:before{content:"󰒋"}.mdi-server-minus:before{content:"󰒌"}.mdi-server-minus-outline:before{content:"󱲘"}.mdi-server-network:before{content:"󰒍"}.mdi-server-network-off:before{content:"󰒎"}.mdi-server-network-outline:before{content:"󱲙"}.mdi-server-off:before{content:"󰒏"}.mdi-server-outline:before{content:"󱲚"}.mdi-server-plus:before{content:"󰒐"}.mdi-server-plus-outline:before{content:"󱲛"}.mdi-server-remove:before{content:"󰒑"}.mdi-server-security:before{content:"󰒒"}.mdi-set-all:before{content:"󰝸"}.mdi-set-center:before{content:"󰝹"}.mdi-set-center-right:before{content:"󰝺"}.mdi-set-left:before{content:"󰝻"}.mdi-set-left-center:before{content:"󰝼"}.mdi-set-left-right:before{content:"󰝽"}.mdi-set-merge:before{content:"󱓠"}.mdi-set-none:before{content:"󰝾"}.mdi-set-right:before{content:"󰝿"}.mdi-set-split:before{content:"󱓡"}.mdi-set-square:before{content:"󱑝"}.mdi-set-top-box:before{content:"󰦟"}.mdi-settings-helper:before{content:"󰩮"}.mdi-shaker:before{content:"󱄎"}.mdi-shaker-outline:before{content:"󱄏"}.mdi-shape:before{content:"󰠱"}.mdi-shape-circle-plus:before{content:"󰙝"}.mdi-shape-outline:before{content:"󰠲"}.mdi-shape-oval-plus:before{content:"󱇺"}.mdi-shape-plus:before{content:"󰒕"}.mdi-shape-plus-outline:before{content:"󱱏"}.mdi-shape-polygon-plus:before{content:"󰙞"}.mdi-shape-rectangle-plus:before{content:"󰙟"}.mdi-shape-square-plus:before{content:"󰙠"}.mdi-shape-square-rounded-plus:before{content:"󱓺"}.mdi-share:before{content:"󰒖"}.mdi-share-all:before{content:"󱇴"}.mdi-share-all-outline:before{content:"󱇵"}.mdi-share-circle:before{content:"󱆭"}.mdi-share-off:before{content:"󰼣"}.mdi-share-off-outline:before{content:"󰼤"}.mdi-share-outline:before{content:"󰤲"}.mdi-share-variant:before{content:"󰒗"}.mdi-share-variant-outline:before{content:"󱔔"}.mdi-shark:before{content:"󱢺"}.mdi-shark-fin:before{content:"󱙳"}.mdi-shark-fin-outline:before{content:"󱙴"}.mdi-shark-off:before{content:"󱢻"}.mdi-sheep:before{content:"󰳆"}.mdi-shield:before{content:"󰒘"}.mdi-shield-account:before{content:"󰢏"}.mdi-shield-account-outline:before{content:"󰨒"}.mdi-shield-account-variant:before{content:"󱖧"}.mdi-shield-account-variant-outline:before{content:"󱖨"}.mdi-shield-airplane:before{content:"󰚻"}.mdi-shield-airplane-outline:before{content:"󰳇"}.mdi-shield-alert:before{content:"󰻌"}.mdi-shield-alert-outline:before{content:"󰻍"}.mdi-shield-bug:before{content:"󱏚"}.mdi-shield-bug-outline:before{content:"󱏛"}.mdi-shield-car:before{content:"󰾃"}.mdi-shield-check:before{content:"󰕥"}.mdi-shield-check-outline:before{content:"󰳈"}.mdi-shield-cross:before{content:"󰳉"}.mdi-shield-cross-outline:before{content:"󰳊"}.mdi-shield-crown:before{content:"󱢼"}.mdi-shield-crown-outline:before{content:"󱢽"}.mdi-shield-edit:before{content:"󱆠"}.mdi-shield-edit-outline:before{content:"󱆡"}.mdi-shield-half:before{content:"󱍠"}.mdi-shield-half-full:before{content:"󰞀"}.mdi-shield-home:before{content:"󰚊"}.mdi-shield-home-outline:before{content:"󰳋"}.mdi-shield-key:before{content:"󰯄"}.mdi-shield-key-outline:before{content:"󰯅"}.mdi-shield-link-variant:before{content:"󰴳"}.mdi-shield-link-variant-outline:before{content:"󰴴"}.mdi-shield-lock:before{content:"󰦝"}.mdi-shield-lock-open:before{content:"󱦚"}.mdi-shield-lock-open-outline:before{content:"󱦛"}.mdi-shield-lock-outline:before{content:"󰳌"}.mdi-shield-moon:before{content:"󱠨"}.mdi-shield-moon-outline:before{content:"󱠩"}.mdi-shield-off:before{content:"󰦞"}.mdi-shield-off-outline:before{content:"󰦜"}.mdi-shield-outline:before{content:"󰒙"}.mdi-shield-plus:before{content:"󰫚"}.mdi-shield-plus-outline:before{content:"󰫛"}.mdi-shield-refresh:before{content:"󰂪"}.mdi-shield-refresh-outline:before{content:"󰇠"}.mdi-shield-remove:before{content:"󰫜"}.mdi-shield-remove-outline:before{content:"󰫝"}.mdi-shield-search:before{content:"󰶚"}.mdi-shield-star:before{content:"󱄻"}.mdi-shield-star-outline:before{content:"󱄼"}.mdi-shield-sun:before{content:"󱁝"}.mdi-shield-sun-outline:before{content:"󱁞"}.mdi-shield-sword:before{content:"󱢾"}.mdi-shield-sword-outline:before{content:"󱢿"}.mdi-shield-sync:before{content:"󱆢"}.mdi-shield-sync-outline:before{content:"󱆣"}.mdi-shimmer:before{content:"󱕅"}.mdi-ship-wheel:before{content:"󰠳"}.mdi-shipping-pallet:before{content:"󱡎"}.mdi-shoe-ballet:before{content:"󱗊"}.mdi-shoe-cleat:before{content:"󱗇"}.mdi-shoe-formal:before{content:"󰭇"}.mdi-shoe-heel:before{content:"󰭈"}.mdi-shoe-print:before{content:"󰷺"}.mdi-shoe-sneaker:before{content:"󱗈"}.mdi-shopping:before{content:"󰒚"}.mdi-shopping-music:before{content:"󰒛"}.mdi-shopping-outline:before{content:"󱇕"}.mdi-shopping-search:before{content:"󰾄"}.mdi-shopping-search-outline:before{content:"󱩯"}.mdi-shore:before{content:"󱓹"}.mdi-shovel:before{content:"󰜐"}.mdi-shovel-off:before{content:"󰜑"}.mdi-shower:before{content:"󰦠"}.mdi-shower-head:before{content:"󰦡"}.mdi-shredder:before{content:"󰒜"}.mdi-shuffle:before{content:"󰒝"}.mdi-shuffle-disabled:before{content:"󰒞"}.mdi-shuffle-variant:before{content:"󰒟"}.mdi-shuriken:before{content:"󱍿"}.mdi-sickle:before{content:"󱣀"}.mdi-sigma:before{content:"󰒠"}.mdi-sigma-lower:before{content:"󰘫"}.mdi-sign-caution:before{content:"󰒡"}.mdi-sign-direction:before{content:"󰞁"}.mdi-sign-direction-minus:before{content:"󱀀"}.mdi-sign-direction-plus:before{content:"󰿜"}.mdi-sign-direction-remove:before{content:"󰿝"}.mdi-sign-language:before{content:"󱭍"}.mdi-sign-language-outline:before{content:"󱭎"}.mdi-sign-pole:before{content:"󱓸"}.mdi-sign-real-estate:before{content:"󱄘"}.mdi-sign-text:before{content:"󰞂"}.mdi-sign-yield:before{content:"󱮯"}.mdi-signal:before{content:"󰒢"}.mdi-signal-2g:before{content:"󰜒"}.mdi-signal-3g:before{content:"󰜓"}.mdi-signal-4g:before{content:"󰜔"}.mdi-signal-5g:before{content:"󰩯"}.mdi-signal-cellular-1:before{content:"󰢼"}.mdi-signal-cellular-2:before{content:"󰢽"}.mdi-signal-cellular-3:before{content:"󰢾"}.mdi-signal-cellular-outline:before{content:"󰢿"}.mdi-signal-distance-variant:before{content:"󰹤"}.mdi-signal-hspa:before{content:"󰜕"}.mdi-signal-hspa-plus:before{content:"󰜖"}.mdi-signal-off:before{content:"󰞃"}.mdi-signal-variant:before{content:"󰘊"}.mdi-signature:before{content:"󰷻"}.mdi-signature-freehand:before{content:"󰷼"}.mdi-signature-image:before{content:"󰷽"}.mdi-signature-text:before{content:"󰷾"}.mdi-silo:before{content:"󱮟"}.mdi-silo-outline:before{content:"󰭉"}.mdi-silverware:before{content:"󰒣"}.mdi-silverware-clean:before{content:"󰿞"}.mdi-silverware-fork:before{content:"󰒤"}.mdi-silverware-fork-knife:before{content:"󰩰"}.mdi-silverware-spoon:before{content:"󰒥"}.mdi-silverware-variant:before{content:"󰒦"}.mdi-sim:before{content:"󰒧"}.mdi-sim-alert:before{content:"󰒨"}.mdi-sim-alert-outline:before{content:"󱗓"}.mdi-sim-off:before{content:"󰒩"}.mdi-sim-off-outline:before{content:"󱗔"}.mdi-sim-outline:before{content:"󱗕"}.mdi-simple-icons:before{content:"󱌝"}.mdi-sina-weibo:before{content:"󰫟"}.mdi-sine-wave:before{content:"󰥛"}.mdi-sitemap:before{content:"󰒪"}.mdi-sitemap-outline:before{content:"󱦜"}.mdi-size-l:before{content:"󱎦"}.mdi-size-m:before{content:"󱎥"}.mdi-size-s:before{content:"󱎤"}.mdi-size-xl:before{content:"󱎧"}.mdi-size-xs:before{content:"󱎣"}.mdi-size-xxl:before{content:"󱎨"}.mdi-size-xxs:before{content:"󱎢"}.mdi-size-xxxl:before{content:"󱎩"}.mdi-skate:before{content:"󰴵"}.mdi-skate-off:before{content:"󰚙"}.mdi-skateboard:before{content:"󱓂"}.mdi-skateboarding:before{content:"󰔁"}.mdi-skew-less:before{content:"󰴶"}.mdi-skew-more:before{content:"󰴷"}.mdi-ski:before{content:"󱌄"}.mdi-ski-cross-country:before{content:"󱌅"}.mdi-ski-water:before{content:"󱌆"}.mdi-skip-backward:before{content:"󰒫"}.mdi-skip-backward-outline:before{content:"󰼥"}.mdi-skip-forward:before{content:"󰒬"}.mdi-skip-forward-outline:before{content:"󰼦"}.mdi-skip-next:before{content:"󰒭"}.mdi-skip-next-circle:before{content:"󰙡"}.mdi-skip-next-circle-outline:before{content:"󰙢"}.mdi-skip-next-outline:before{content:"󰼧"}.mdi-skip-previous:before{content:"󰒮"}.mdi-skip-previous-circle:before{content:"󰙣"}.mdi-skip-previous-circle-outline:before{content:"󰙤"}.mdi-skip-previous-outline:before{content:"󰼨"}.mdi-skull:before{content:"󰚌"}.mdi-skull-crossbones:before{content:"󰯆"}.mdi-skull-crossbones-outline:before{content:"󰯇"}.mdi-skull-outline:before{content:"󰯈"}.mdi-skull-scan:before{content:"󱓇"}.mdi-skull-scan-outline:before{content:"󱓈"}.mdi-skype:before{content:"󰒯"}.mdi-skype-business:before{content:"󰒰"}.mdi-slack:before{content:"󰒱"}.mdi-slash-forward:before{content:"󰿟"}.mdi-slash-forward-box:before{content:"󰿠"}.mdi-sledding:before{content:"󰐛"}.mdi-sleep:before{content:"󰒲"}.mdi-sleep-off:before{content:"󰒳"}.mdi-slide:before{content:"󱖥"}.mdi-slope-downhill:before{content:"󰷿"}.mdi-slope-uphill:before{content:"󰸀"}.mdi-slot-machine:before{content:"󱄔"}.mdi-slot-machine-outline:before{content:"󱄕"}.mdi-smart-card:before{content:"󱂽"}.mdi-smart-card-off:before{content:"󱣷"}.mdi-smart-card-off-outline:before{content:"󱣸"}.mdi-smart-card-outline:before{content:"󱂾"}.mdi-smart-card-reader:before{content:"󱂿"}.mdi-smart-card-reader-outline:before{content:"󱃀"}.mdi-smog:before{content:"󰩱"}.mdi-smoke:before{content:"󱞙"}.mdi-smoke-detector:before{content:"󰎒"}.mdi-smoke-detector-alert:before{content:"󱤮"}.mdi-smoke-detector-alert-outline:before{content:"󱤯"}.mdi-smoke-detector-off:before{content:"󱠉"}.mdi-smoke-detector-off-outline:before{content:"󱠊"}.mdi-smoke-detector-outline:before{content:"󱠈"}.mdi-smoke-detector-variant:before{content:"󱠋"}.mdi-smoke-detector-variant-alert:before{content:"󱤰"}.mdi-smoke-detector-variant-off:before{content:"󱠌"}.mdi-smoking:before{content:"󰒴"}.mdi-smoking-off:before{content:"󰒵"}.mdi-smoking-pipe:before{content:"󱐍"}.mdi-smoking-pipe-off:before{content:"󱐨"}.mdi-snail:before{content:"󱙷"}.mdi-snake:before{content:"󱔎"}.mdi-snapchat:before{content:"󰒶"}.mdi-snowboard:before{content:"󱌇"}.mdi-snowflake:before{content:"󰜗"}.mdi-snowflake-alert:before{content:"󰼩"}.mdi-snowflake-check:before{content:"󱩰"}.mdi-snowflake-melt:before{content:"󱋋"}.mdi-snowflake-off:before{content:"󱓣"}.mdi-snowflake-thermometer:before{content:"󱩱"}.mdi-snowflake-variant:before{content:"󰼪"}.mdi-snowman:before{content:"󰒷"}.mdi-snowmobile:before{content:"󰛝"}.mdi-snowshoeing:before{content:"󱩲"}.mdi-soccer:before{content:"󰒸"}.mdi-soccer-field:before{content:"󰠴"}.mdi-social-distance-2-meters:before{content:"󱕹"}.mdi-social-distance-6-feet:before{content:"󱕺"}.mdi-sofa:before{content:"󰒹"}.mdi-sofa-outline:before{content:"󱕭"}.mdi-sofa-single:before{content:"󱕮"}.mdi-sofa-single-outline:before{content:"󱕯"}.mdi-solar-panel:before{content:"󰶛"}.mdi-solar-panel-large:before{content:"󰶜"}.mdi-solar-power:before{content:"󰩲"}.mdi-solar-power-variant:before{content:"󱩳"}.mdi-solar-power-variant-outline:before{content:"󱩴"}.mdi-soldering-iron:before{content:"󱂒"}.mdi-solid:before{content:"󰚍"}.mdi-sony-playstation:before{content:"󰐔"}.mdi-sort:before{content:"󰒺"}.mdi-sort-alphabetical-ascending:before{content:"󰖽"}.mdi-sort-alphabetical-ascending-variant:before{content:"󱅈"}.mdi-sort-alphabetical-descending:before{content:"󰖿"}.mdi-sort-alphabetical-descending-variant:before{content:"󱅉"}.mdi-sort-alphabetical-variant:before{content:"󰒻"}.mdi-sort-ascending:before{content:"󰒼"}.mdi-sort-bool-ascending:before{content:"󱎅"}.mdi-sort-bool-ascending-variant:before{content:"󱎆"}.mdi-sort-bool-descending:before{content:"󱎇"}.mdi-sort-bool-descending-variant:before{content:"󱎈"}.mdi-sort-calendar-ascending:before{content:"󱕇"}.mdi-sort-calendar-descending:before{content:"󱕈"}.mdi-sort-clock-ascending:before{content:"󱕉"}.mdi-sort-clock-ascending-outline:before{content:"󱕊"}.mdi-sort-clock-descending:before{content:"󱕋"}.mdi-sort-clock-descending-outline:before{content:"󱕌"}.mdi-sort-descending:before{content:"󰒽"}.mdi-sort-numeric-ascending:before{content:"󱎉"}.mdi-sort-numeric-ascending-variant:before{content:"󰤍"}.mdi-sort-numeric-descending:before{content:"󱎊"}.mdi-sort-numeric-descending-variant:before{content:"󰫒"}.mdi-sort-numeric-variant:before{content:"󰒾"}.mdi-sort-reverse-variant:before{content:"󰌼"}.mdi-sort-variant:before{content:"󰒿"}.mdi-sort-variant-lock:before{content:"󰳍"}.mdi-sort-variant-lock-open:before{content:"󰳎"}.mdi-sort-variant-off:before{content:"󱪻"}.mdi-sort-variant-remove:before{content:"󱅇"}.mdi-soundbar:before{content:"󱟛"}.mdi-soundcloud:before{content:"󰓀"}.mdi-source-branch:before{content:"󰘬"}.mdi-source-branch-check:before{content:"󱓏"}.mdi-source-branch-minus:before{content:"󱓋"}.mdi-source-branch-plus:before{content:"󱓊"}.mdi-source-branch-refresh:before{content:"󱓍"}.mdi-source-branch-remove:before{content:"󱓌"}.mdi-source-branch-sync:before{content:"󱓎"}.mdi-source-commit:before{content:"󰜘"}.mdi-source-commit-end:before{content:"󰜙"}.mdi-source-commit-end-local:before{content:"󰜚"}.mdi-source-commit-local:before{content:"󰜛"}.mdi-source-commit-next-local:before{content:"󰜜"}.mdi-source-commit-start:before{content:"󰜝"}.mdi-source-commit-start-next-local:before{content:"󰜞"}.mdi-source-fork:before{content:"󰓁"}.mdi-source-merge:before{content:"󰘭"}.mdi-source-pull:before{content:"󰓂"}.mdi-source-repository:before{content:"󰳏"}.mdi-source-repository-multiple:before{content:"󰳐"}.mdi-soy-sauce:before{content:"󰟮"}.mdi-soy-sauce-off:before{content:"󱏼"}.mdi-spa:before{content:"󰳑"}.mdi-spa-outline:before{content:"󰳒"}.mdi-space-invaders:before{content:"󰯉"}.mdi-space-station:before{content:"󱎃"}.mdi-spade:before{content:"󰹥"}.mdi-speaker:before{content:"󰓃"}.mdi-speaker-bluetooth:before{content:"󰦢"}.mdi-speaker-message:before{content:"󱬑"}.mdi-speaker-multiple:before{content:"󰴸"}.mdi-speaker-off:before{content:"󰓄"}.mdi-speaker-pause:before{content:"󱭳"}.mdi-speaker-play:before{content:"󱭲"}.mdi-speaker-stop:before{content:"󱭴"}.mdi-speaker-wireless:before{content:"󰜟"}.mdi-spear:before{content:"󱡅"}.mdi-speedometer:before{content:"󰓅"}.mdi-speedometer-medium:before{content:"󰾅"}.mdi-speedometer-slow:before{content:"󰾆"}.mdi-spellcheck:before{content:"󰓆"}.mdi-sphere:before{content:"󱥔"}.mdi-sphere-off:before{content:"󱥕"}.mdi-spider:before{content:"󱇪"}.mdi-spider-outline:before{content:"󱱵"}.mdi-spider-thread:before{content:"󱇫"}.mdi-spider-web:before{content:"󰯊"}.mdi-spirit-level:before{content:"󱓱"}.mdi-spoon-sugar:before{content:"󱐩"}.mdi-spotify:before{content:"󰓇"}.mdi-spotlight:before{content:"󰓈"}.mdi-spotlight-beam:before{content:"󰓉"}.mdi-spray:before{content:"󰙥"}.mdi-spray-bottle:before{content:"󰫠"}.mdi-sprinkler:before{content:"󱁟"}.mdi-sprinkler-fire:before{content:"󱦝"}.mdi-sprinkler-variant:before{content:"󱁠"}.mdi-sprout:before{content:"󰹦"}.mdi-sprout-outline:before{content:"󰹧"}.mdi-square:before{content:"󰝤"}.mdi-square-circle:before{content:"󱔀"}.mdi-square-circle-outline:before{content:"󱱐"}.mdi-square-edit-outline:before{content:"󰤌"}.mdi-square-medium:before{content:"󰨓"}.mdi-square-medium-outline:before{content:"󰨔"}.mdi-square-off:before{content:"󱋮"}.mdi-square-off-outline:before{content:"󱋯"}.mdi-square-opacity:before{content:"󱡔"}.mdi-square-outline:before{content:"󰝣"}.mdi-square-root:before{content:"󰞄"}.mdi-square-root-box:before{content:"󰦣"}.mdi-square-rounded:before{content:"󱓻"}.mdi-square-rounded-badge:before{content:"󱨇"}.mdi-square-rounded-badge-outline:before{content:"󱨈"}.mdi-square-rounded-outline:before{content:"󱓼"}.mdi-square-small:before{content:"󰨕"}.mdi-square-wave:before{content:"󱑻"}.mdi-squeegee:before{content:"󰫡"}.mdi-ssh:before{content:"󰣀"}.mdi-stack-exchange:before{content:"󰘋"}.mdi-stack-overflow:before{content:"󰓌"}.mdi-stackpath:before{content:"󰍙"}.mdi-stadium:before{content:"󰿹"}.mdi-stadium-outline:before{content:"󱬃"}.mdi-stadium-variant:before{content:"󰜠"}.mdi-stairs:before{content:"󰓍"}.mdi-stairs-box:before{content:"󱎞"}.mdi-stairs-down:before{content:"󱊾"}.mdi-stairs-up:before{content:"󱊽"}.mdi-stamper:before{content:"󰴹"}.mdi-standard-definition:before{content:"󰟯"}.mdi-star:before{content:"󰓎"}.mdi-star-box:before{content:"󰩳"}.mdi-star-box-multiple:before{content:"󱊆"}.mdi-star-box-multiple-outline:before{content:"󱊇"}.mdi-star-box-outline:before{content:"󰩴"}.mdi-star-check:before{content:"󱕦"}.mdi-star-check-outline:before{content:"󱕪"}.mdi-star-circle:before{content:"󰓏"}.mdi-star-circle-outline:before{content:"󰦤"}.mdi-star-cog:before{content:"󱙨"}.mdi-star-cog-outline:before{content:"󱙩"}.mdi-star-crescent:before{content:"󰥹"}.mdi-star-david:before{content:"󰥺"}.mdi-star-face:before{content:"󰦥"}.mdi-star-four-points:before{content:"󰫢"}.mdi-star-four-points-box:before{content:"󱱑"}.mdi-star-four-points-box-outline:before{content:"󱱒"}.mdi-star-four-points-circle:before{content:"󱱓"}.mdi-star-four-points-circle-outline:before{content:"󱱔"}.mdi-star-four-points-outline:before{content:"󰫣"}.mdi-star-four-points-small:before{content:"󱱕"}.mdi-star-half:before{content:"󰉆"}.mdi-star-half-full:before{content:"󰓐"}.mdi-star-minus:before{content:"󱕤"}.mdi-star-minus-outline:before{content:"󱕨"}.mdi-star-off:before{content:"󰓑"}.mdi-star-off-outline:before{content:"󱕛"}.mdi-star-outline:before{content:"󰓒"}.mdi-star-plus:before{content:"󱕣"}.mdi-star-plus-outline:before{content:"󱕧"}.mdi-star-remove:before{content:"󱕥"}.mdi-star-remove-outline:before{content:"󱕩"}.mdi-star-settings:before{content:"󱙪"}.mdi-star-settings-outline:before{content:"󱙫"}.mdi-star-shooting:before{content:"󱝁"}.mdi-star-shooting-outline:before{content:"󱝂"}.mdi-star-three-points:before{content:"󰫤"}.mdi-star-three-points-outline:before{content:"󰫥"}.mdi-state-machine:before{content:"󱇯"}.mdi-steam:before{content:"󰓓"}.mdi-steering:before{content:"󰓔"}.mdi-steering-off:before{content:"󰤎"}.mdi-step-backward:before{content:"󰓕"}.mdi-step-backward-2:before{content:"󰓖"}.mdi-step-forward:before{content:"󰓗"}.mdi-step-forward-2:before{content:"󰓘"}.mdi-stethoscope:before{content:"󰓙"}.mdi-sticker:before{content:"󱍤"}.mdi-sticker-alert:before{content:"󱍥"}.mdi-sticker-alert-outline:before{content:"󱍦"}.mdi-sticker-check:before{content:"󱍧"}.mdi-sticker-check-outline:before{content:"󱍨"}.mdi-sticker-circle-outline:before{content:"󰗐"}.mdi-sticker-emoji:before{content:"󰞅"}.mdi-sticker-minus:before{content:"󱍩"}.mdi-sticker-minus-outline:before{content:"󱍪"}.mdi-sticker-outline:before{content:"󱍫"}.mdi-sticker-plus:before{content:"󱍬"}.mdi-sticker-plus-outline:before{content:"󱍭"}.mdi-sticker-remove:before{content:"󱍮"}.mdi-sticker-remove-outline:before{content:"󱍯"}.mdi-sticker-text:before{content:"󱞎"}.mdi-sticker-text-outline:before{content:"󱞏"}.mdi-stocking:before{content:"󰓚"}.mdi-stomach:before{content:"󱂓"}.mdi-stool:before{content:"󱥝"}.mdi-stool-outline:before{content:"󱥞"}.mdi-stop:before{content:"󰓛"}.mdi-stop-circle:before{content:"󰙦"}.mdi-stop-circle-outline:before{content:"󰙧"}.mdi-storage-tank:before{content:"󱩵"}.mdi-storage-tank-outline:before{content:"󱩶"}.mdi-store:before{content:"󰓜"}.mdi-store-24-hour:before{content:"󰓝"}.mdi-store-alert:before{content:"󱣁"}.mdi-store-alert-outline:before{content:"󱣂"}.mdi-store-check:before{content:"󱣃"}.mdi-store-check-outline:before{content:"󱣄"}.mdi-store-clock:before{content:"󱣅"}.mdi-store-clock-outline:before{content:"󱣆"}.mdi-store-cog:before{content:"󱣇"}.mdi-store-cog-outline:before{content:"󱣈"}.mdi-store-edit:before{content:"󱣉"}.mdi-store-edit-outline:before{content:"󱣊"}.mdi-store-marker:before{content:"󱣋"}.mdi-store-marker-outline:before{content:"󱣌"}.mdi-store-minus:before{content:"󱙞"}.mdi-store-minus-outline:before{content:"󱣍"}.mdi-store-off:before{content:"󱣎"}.mdi-store-off-outline:before{content:"󱣏"}.mdi-store-outline:before{content:"󱍡"}.mdi-store-plus:before{content:"󱙟"}.mdi-store-plus-outline:before{content:"󱣐"}.mdi-store-remove:before{content:"󱙠"}.mdi-store-remove-outline:before{content:"󱣑"}.mdi-store-search:before{content:"󱣒"}.mdi-store-search-outline:before{content:"󱣓"}.mdi-store-settings:before{content:"󱣔"}.mdi-store-settings-outline:before{content:"󱣕"}.mdi-storefront:before{content:"󰟇"}.mdi-storefront-check:before{content:"󱭽"}.mdi-storefront-check-outline:before{content:"󱭾"}.mdi-storefront-edit:before{content:"󱭿"}.mdi-storefront-edit-outline:before{content:"󱮀"}.mdi-storefront-minus:before{content:"󱮃"}.mdi-storefront-minus-outline:before{content:"󱮄"}.mdi-storefront-outline:before{content:"󱃁"}.mdi-storefront-plus:before{content:"󱮁"}.mdi-storefront-plus-outline:before{content:"󱮂"}.mdi-storefront-remove:before{content:"󱮅"}.mdi-storefront-remove-outline:before{content:"󱮆"}.mdi-stove:before{content:"󰓞"}.mdi-strategy:before{content:"󱇖"}.mdi-stretch-to-page:before{content:"󰼫"}.mdi-stretch-to-page-outline:before{content:"󰼬"}.mdi-string-lights:before{content:"󱊺"}.mdi-string-lights-off:before{content:"󱊻"}.mdi-subdirectory-arrow-left:before{content:"󰘌"}.mdi-subdirectory-arrow-right:before{content:"󰘍"}.mdi-submarine:before{content:"󱕬"}.mdi-subtitles:before{content:"󰨖"}.mdi-subtitles-outline:before{content:"󰨗"}.mdi-subway:before{content:"󰚬"}.mdi-subway-alert-variant:before{content:"󰶝"}.mdi-subway-variant:before{content:"󰓟"}.mdi-summit:before{content:"󰞆"}.mdi-sun-angle:before{content:"󱬧"}.mdi-sun-angle-outline:before{content:"󱬨"}.mdi-sun-clock:before{content:"󱩷"}.mdi-sun-clock-outline:before{content:"󱩸"}.mdi-sun-compass:before{content:"󱦥"}.mdi-sun-snowflake:before{content:"󱞖"}.mdi-sun-snowflake-variant:before{content:"󱩹"}.mdi-sun-thermometer:before{content:"󱣖"}.mdi-sun-thermometer-outline:before{content:"󱣗"}.mdi-sun-wireless:before{content:"󱟾"}.mdi-sun-wireless-outline:before{content:"󱟿"}.mdi-sunglasses:before{content:"󰓠"}.mdi-surfing:before{content:"󱝆"}.mdi-surround-sound:before{content:"󰗅"}.mdi-surround-sound-2-0:before{content:"󰟰"}.mdi-surround-sound-2-1:before{content:"󱜩"}.mdi-surround-sound-3-1:before{content:"󰟱"}.mdi-surround-sound-5-1:before{content:"󰟲"}.mdi-surround-sound-5-1-2:before{content:"󱜪"}.mdi-surround-sound-7-1:before{content:"󰟳"}.mdi-svg:before{content:"󰜡"}.mdi-swap-horizontal:before{content:"󰓡"}.mdi-swap-horizontal-bold:before{content:"󰯍"}.mdi-swap-horizontal-circle:before{content:"󰿡"}.mdi-swap-horizontal-circle-outline:before{content:"󰿢"}.mdi-swap-horizontal-variant:before{content:"󰣁"}.mdi-swap-vertical:before{content:"󰓢"}.mdi-swap-vertical-bold:before{content:"󰯎"}.mdi-swap-vertical-circle:before{content:"󰿣"}.mdi-swap-vertical-circle-outline:before{content:"󰿤"}.mdi-swap-vertical-variant:before{content:"󰣂"}.mdi-swim:before{content:"󰓣"}.mdi-switch:before{content:"󰓤"}.mdi-sword:before{content:"󰓥"}.mdi-sword-cross:before{content:"󰞇"}.mdi-syllabary-hangul:before{content:"󱌳"}.mdi-syllabary-hiragana:before{content:"󱌴"}.mdi-syllabary-katakana:before{content:"󱌵"}.mdi-syllabary-katakana-halfwidth:before{content:"󱌶"}.mdi-symbol:before{content:"󱔁"}.mdi-symfony:before{content:"󰫦"}.mdi-synagogue:before{content:"󱬄"}.mdi-synagogue-outline:before{content:"󱬅"}.mdi-sync:before{content:"󰓦"}.mdi-sync-alert:before{content:"󰓧"}.mdi-sync-circle:before{content:"󱍸"}.mdi-sync-off:before{content:"󰓨"}.mdi-tab:before{content:"󰓩"}.mdi-tab-minus:before{content:"󰭋"}.mdi-tab-plus:before{content:"󰝜"}.mdi-tab-remove:before{content:"󰭌"}.mdi-tab-search:before{content:"󱦞"}.mdi-tab-unselected:before{content:"󰓪"}.mdi-table:before{content:"󰓫"}.mdi-table-account:before{content:"󱎹"}.mdi-table-alert:before{content:"󱎺"}.mdi-table-arrow-down:before{content:"󱎻"}.mdi-table-arrow-left:before{content:"󱎼"}.mdi-table-arrow-right:before{content:"󱎽"}.mdi-table-arrow-up:before{content:"󱎾"}.mdi-table-border:before{content:"󰨘"}.mdi-table-cancel:before{content:"󱎿"}.mdi-table-chair:before{content:"󱁡"}.mdi-table-check:before{content:"󱏀"}.mdi-table-clock:before{content:"󱏁"}.mdi-table-cog:before{content:"󱏂"}.mdi-table-column:before{content:"󰠵"}.mdi-table-column-plus-after:before{content:"󰓬"}.mdi-table-column-plus-before:before{content:"󰓭"}.mdi-table-column-remove:before{content:"󰓮"}.mdi-table-column-width:before{content:"󰓯"}.mdi-table-edit:before{content:"󰓰"}.mdi-table-eye:before{content:"󱂔"}.mdi-table-eye-off:before{content:"󱏃"}.mdi-table-filter:before{content:"󱮌"}.mdi-table-furniture:before{content:"󰖼"}.mdi-table-headers-eye:before{content:"󱈝"}.mdi-table-headers-eye-off:before{content:"󱈞"}.mdi-table-heart:before{content:"󱏄"}.mdi-table-key:before{content:"󱏅"}.mdi-table-large:before{content:"󰓱"}.mdi-table-large-plus:before{content:"󰾇"}.mdi-table-large-remove:before{content:"󰾈"}.mdi-table-lock:before{content:"󱏆"}.mdi-table-merge-cells:before{content:"󰦦"}.mdi-table-minus:before{content:"󱏇"}.mdi-table-multiple:before{content:"󱏈"}.mdi-table-network:before{content:"󱏉"}.mdi-table-of-contents:before{content:"󰠶"}.mdi-table-off:before{content:"󱏊"}.mdi-table-picnic:before{content:"󱝃"}.mdi-table-pivot:before{content:"󱠼"}.mdi-table-plus:before{content:"󰩵"}.mdi-table-question:before{content:"󱬡"}.mdi-table-refresh:before{content:"󱎠"}.mdi-table-remove:before{content:"󰩶"}.mdi-table-row:before{content:"󰠷"}.mdi-table-row-height:before{content:"󰓲"}.mdi-table-row-plus-after:before{content:"󰓳"}.mdi-table-row-plus-before:before{content:"󰓴"}.mdi-table-row-remove:before{content:"󰓵"}.mdi-table-search:before{content:"󰤏"}.mdi-table-settings:before{content:"󰠸"}.mdi-table-split-cell:before{content:"󱐪"}.mdi-table-star:before{content:"󱏋"}.mdi-table-sync:before{content:"󱎡"}.mdi-table-tennis:before{content:"󰹨"}.mdi-tablet:before{content:"󰓶"}.mdi-tablet-cellphone:before{content:"󰦧"}.mdi-tablet-dashboard:before{content:"󰻎"}.mdi-taco:before{content:"󰝢"}.mdi-tag:before{content:"󰓹"}.mdi-tag-arrow-down:before{content:"󱜫"}.mdi-tag-arrow-down-outline:before{content:"󱜬"}.mdi-tag-arrow-left:before{content:"󱜭"}.mdi-tag-arrow-left-outline:before{content:"󱜮"}.mdi-tag-arrow-right:before{content:"󱜯"}.mdi-tag-arrow-right-outline:before{content:"󱜰"}.mdi-tag-arrow-up:before{content:"󱜱"}.mdi-tag-arrow-up-outline:before{content:"󱜲"}.mdi-tag-check:before{content:"󱩺"}.mdi-tag-check-outline:before{content:"󱩻"}.mdi-tag-edit:before{content:"󱲜"}.mdi-tag-edit-outline:before{content:"󱲝"}.mdi-tag-faces:before{content:"󰓺"}.mdi-tag-heart:before{content:"󰚋"}.mdi-tag-heart-outline:before{content:"󰯏"}.mdi-tag-hidden:before{content:"󱱶"}.mdi-tag-minus:before{content:"󰤐"}.mdi-tag-minus-outline:before{content:"󱈟"}.mdi-tag-multiple:before{content:"󰓻"}.mdi-tag-multiple-outline:before{content:"󱋷"}.mdi-tag-off:before{content:"󱈠"}.mdi-tag-off-outline:before{content:"󱈡"}.mdi-tag-outline:before{content:"󰓼"}.mdi-tag-plus:before{content:"󰜢"}.mdi-tag-plus-outline:before{content:"󱈢"}.mdi-tag-remove:before{content:"󰜣"}.mdi-tag-remove-outline:before{content:"󱈣"}.mdi-tag-search:before{content:"󱤇"}.mdi-tag-search-outline:before{content:"󱤈"}.mdi-tag-text:before{content:"󱈤"}.mdi-tag-text-outline:before{content:"󰓽"}.mdi-tailwind:before{content:"󱏿"}.mdi-tally-mark-1:before{content:"󱪼"}.mdi-tally-mark-2:before{content:"󱪽"}.mdi-tally-mark-3:before{content:"󱪾"}.mdi-tally-mark-4:before{content:"󱪿"}.mdi-tally-mark-5:before{content:"󱫀"}.mdi-tangram:before{content:"󰓸"}.mdi-tank:before{content:"󰴺"}.mdi-tanker-truck:before{content:"󰿥"}.mdi-tape-drive:before{content:"󱛟"}.mdi-tape-measure:before{content:"󰭍"}.mdi-target:before{content:"󰓾"}.mdi-target-account:before{content:"󰯐"}.mdi-target-variant:before{content:"󰩷"}.mdi-taxi:before{content:"󰓿"}.mdi-tea:before{content:"󰶞"}.mdi-tea-outline:before{content:"󰶟"}.mdi-teamviewer:before{content:"󰔀"}.mdi-teddy-bear:before{content:"󱣻"}.mdi-telescope:before{content:"󰭎"}.mdi-television:before{content:"󰔂"}.mdi-television-ambient-light:before{content:"󱍖"}.mdi-television-box:before{content:"󰠹"}.mdi-television-classic:before{content:"󰟴"}.mdi-television-classic-off:before{content:"󰠺"}.mdi-television-guide:before{content:"󰔃"}.mdi-television-off:before{content:"󰠻"}.mdi-television-pause:before{content:"󰾉"}.mdi-television-play:before{content:"󰻏"}.mdi-television-shimmer:before{content:"󱄐"}.mdi-television-speaker:before{content:"󱬛"}.mdi-television-speaker-off:before{content:"󱬜"}.mdi-television-stop:before{content:"󰾊"}.mdi-temperature-celsius:before{content:"󰔄"}.mdi-temperature-fahrenheit:before{content:"󰔅"}.mdi-temperature-kelvin:before{content:"󰔆"}.mdi-temple-buddhist:before{content:"󱬆"}.mdi-temple-buddhist-outline:before{content:"󱬇"}.mdi-temple-hindu:before{content:"󱬈"}.mdi-temple-hindu-outline:before{content:"󱬉"}.mdi-tennis:before{content:"󰶠"}.mdi-tennis-ball:before{content:"󰔇"}.mdi-tennis-ball-outline:before{content:"󱱟"}.mdi-tent:before{content:"󰔈"}.mdi-terraform:before{content:"󱁢"}.mdi-terrain:before{content:"󰔉"}.mdi-test-tube:before{content:"󰙨"}.mdi-test-tube-empty:before{content:"󰤑"}.mdi-test-tube-off:before{content:"󰤒"}.mdi-text:before{content:"󰦨"}.mdi-text-account:before{content:"󱕰"}.mdi-text-box:before{content:"󰈚"}.mdi-text-box-check:before{content:"󰺦"}.mdi-text-box-check-outline:before{content:"󰺧"}.mdi-text-box-edit:before{content:"󱩼"}.mdi-text-box-edit-outline:before{content:"󱩽"}.mdi-text-box-minus:before{content:"󰺨"}.mdi-text-box-minus-outline:before{content:"󰺩"}.mdi-text-box-multiple:before{content:"󰪷"}.mdi-text-box-multiple-outline:before{content:"󰪸"}.mdi-text-box-outline:before{content:"󰧭"}.mdi-text-box-plus:before{content:"󰺪"}.mdi-text-box-plus-outline:before{content:"󰺫"}.mdi-text-box-remove:before{content:"󰺬"}.mdi-text-box-remove-outline:before{content:"󰺭"}.mdi-text-box-search:before{content:"󰺮"}.mdi-text-box-search-outline:before{content:"󰺯"}.mdi-text-long:before{content:"󰦪"}.mdi-text-recognition:before{content:"󱄽"}.mdi-text-search:before{content:"󱎸"}.mdi-text-search-variant:before{content:"󱩾"}.mdi-text-shadow:before{content:"󰙩"}.mdi-text-short:before{content:"󰦩"}.mdi-texture:before{content:"󰔌"}.mdi-texture-box:before{content:"󰿦"}.mdi-theater:before{content:"󰔍"}.mdi-theme-light-dark:before{content:"󰔎"}.mdi-thermometer:before{content:"󰔏"}.mdi-thermometer-alert:before{content:"󰸁"}.mdi-thermometer-auto:before{content:"󱬏"}.mdi-thermometer-bluetooth:before{content:"󱢕"}.mdi-thermometer-check:before{content:"󱩿"}.mdi-thermometer-chevron-down:before{content:"󰸂"}.mdi-thermometer-chevron-up:before{content:"󰸃"}.mdi-thermometer-high:before{content:"󱃂"}.mdi-thermometer-lines:before{content:"󰔐"}.mdi-thermometer-low:before{content:"󱃃"}.mdi-thermometer-minus:before{content:"󰸄"}.mdi-thermometer-off:before{content:"󱔱"}.mdi-thermometer-plus:before{content:"󰸅"}.mdi-thermometer-probe:before{content:"󱬫"}.mdi-thermometer-probe-off:before{content:"󱬬"}.mdi-thermometer-water:before{content:"󱪀"}.mdi-thermostat:before{content:"󰎓"}.mdi-thermostat-auto:before{content:"󱬗"}.mdi-thermostat-box:before{content:"󰢑"}.mdi-thermostat-box-auto:before{content:"󱬘"}.mdi-thermostat-cog:before{content:"󱲀"}.mdi-thought-bubble:before{content:"󰟶"}.mdi-thought-bubble-outline:before{content:"󰟷"}.mdi-thumb-down:before{content:"󰔑"}.mdi-thumb-down-outline:before{content:"󰔒"}.mdi-thumb-up:before{content:"󰔓"}.mdi-thumb-up-outline:before{content:"󰔔"}.mdi-thumbs-up-down:before{content:"󰔕"}.mdi-thumbs-up-down-outline:before{content:"󱤔"}.mdi-ticket:before{content:"󰔖"}.mdi-ticket-account:before{content:"󰔗"}.mdi-ticket-confirmation:before{content:"󰔘"}.mdi-ticket-confirmation-outline:before{content:"󱎪"}.mdi-ticket-outline:before{content:"󰤓"}.mdi-ticket-percent:before{content:"󰜤"}.mdi-ticket-percent-outline:before{content:"󱐫"}.mdi-tie:before{content:"󰔙"}.mdi-tilde:before{content:"󰜥"}.mdi-tilde-off:before{content:"󱣳"}.mdi-timelapse:before{content:"󰔚"}.mdi-timeline:before{content:"󰯑"}.mdi-timeline-alert:before{content:"󰾕"}.mdi-timeline-alert-outline:before{content:"󰾘"}.mdi-timeline-check:before{content:"󱔲"}.mdi-timeline-check-outline:before{content:"󱔳"}.mdi-timeline-clock:before{content:"󱇻"}.mdi-timeline-clock-outline:before{content:"󱇼"}.mdi-timeline-minus:before{content:"󱔴"}.mdi-timeline-minus-outline:before{content:"󱔵"}.mdi-timeline-outline:before{content:"󰯒"}.mdi-timeline-plus:before{content:"󰾖"}.mdi-timeline-plus-outline:before{content:"󰾗"}.mdi-timeline-question:before{content:"󰾙"}.mdi-timeline-question-outline:before{content:"󰾚"}.mdi-timeline-remove:before{content:"󱔶"}.mdi-timeline-remove-outline:before{content:"󱔷"}.mdi-timeline-text:before{content:"󰯓"}.mdi-timeline-text-outline:before{content:"󰯔"}.mdi-timer:before{content:"󱎫"}.mdi-timer-10:before{content:"󰔜"}.mdi-timer-3:before{content:"󰔝"}.mdi-timer-alert:before{content:"󱫌"}.mdi-timer-alert-outline:before{content:"󱫍"}.mdi-timer-cancel:before{content:"󱫎"}.mdi-timer-cancel-outline:before{content:"󱫏"}.mdi-timer-check:before{content:"󱫐"}.mdi-timer-check-outline:before{content:"󱫑"}.mdi-timer-cog:before{content:"󱤥"}.mdi-timer-cog-outline:before{content:"󱤦"}.mdi-timer-edit:before{content:"󱫒"}.mdi-timer-edit-outline:before{content:"󱫓"}.mdi-timer-lock:before{content:"󱫔"}.mdi-timer-lock-open:before{content:"󱫕"}.mdi-timer-lock-open-outline:before{content:"󱫖"}.mdi-timer-lock-outline:before{content:"󱫗"}.mdi-timer-marker:before{content:"󱫘"}.mdi-timer-marker-outline:before{content:"󱫙"}.mdi-timer-minus:before{content:"󱫚"}.mdi-timer-minus-outline:before{content:"󱫛"}.mdi-timer-music:before{content:"󱫜"}.mdi-timer-music-outline:before{content:"󱫝"}.mdi-timer-off:before{content:"󱎬"}.mdi-timer-off-outline:before{content:"󰔞"}.mdi-timer-outline:before{content:"󰔛"}.mdi-timer-pause:before{content:"󱫞"}.mdi-timer-pause-outline:before{content:"󱫟"}.mdi-timer-play:before{content:"󱫠"}.mdi-timer-play-outline:before{content:"󱫡"}.mdi-timer-plus:before{content:"󱫢"}.mdi-timer-plus-outline:before{content:"󱫣"}.mdi-timer-refresh:before{content:"󱫤"}.mdi-timer-refresh-outline:before{content:"󱫥"}.mdi-timer-remove:before{content:"󱫦"}.mdi-timer-remove-outline:before{content:"󱫧"}.mdi-timer-sand:before{content:"󰔟"}.mdi-timer-sand-complete:before{content:"󱦟"}.mdi-timer-sand-empty:before{content:"󰚭"}.mdi-timer-sand-full:before{content:"󰞌"}.mdi-timer-sand-paused:before{content:"󱦠"}.mdi-timer-settings:before{content:"󱤣"}.mdi-timer-settings-outline:before{content:"󱤤"}.mdi-timer-star:before{content:"󱫨"}.mdi-timer-star-outline:before{content:"󱫩"}.mdi-timer-stop:before{content:"󱫪"}.mdi-timer-stop-outline:before{content:"󱫫"}.mdi-timer-sync:before{content:"󱫬"}.mdi-timer-sync-outline:before{content:"󱫭"}.mdi-timetable:before{content:"󰔠"}.mdi-tire:before{content:"󱢖"}.mdi-toaster:before{content:"󱁣"}.mdi-toaster-off:before{content:"󱆷"}.mdi-toaster-oven:before{content:"󰳓"}.mdi-toggle-switch:before{content:"󰔡"}.mdi-toggle-switch-off:before{content:"󰔢"}.mdi-toggle-switch-off-outline:before{content:"󰨙"}.mdi-toggle-switch-outline:before{content:"󰨚"}.mdi-toggle-switch-variant:before{content:"󱨥"}.mdi-toggle-switch-variant-off:before{content:"󱨦"}.mdi-toilet:before{content:"󰦫"}.mdi-toolbox:before{content:"󰦬"}.mdi-toolbox-outline:before{content:"󰦭"}.mdi-tools:before{content:"󱁤"}.mdi-tooltip:before{content:"󰔣"}.mdi-tooltip-account:before{content:"󰀌"}.mdi-tooltip-cellphone:before{content:"󱠻"}.mdi-tooltip-check:before{content:"󱕜"}.mdi-tooltip-check-outline:before{content:"󱕝"}.mdi-tooltip-edit:before{content:"󰔤"}.mdi-tooltip-edit-outline:before{content:"󱋅"}.mdi-tooltip-image:before{content:"󰔥"}.mdi-tooltip-image-outline:before{content:"󰯕"}.mdi-tooltip-minus:before{content:"󱕞"}.mdi-tooltip-minus-outline:before{content:"󱕟"}.mdi-tooltip-outline:before{content:"󰔦"}.mdi-tooltip-plus:before{content:"󰯖"}.mdi-tooltip-plus-outline:before{content:"󰔧"}.mdi-tooltip-question:before{content:"󱮺"}.mdi-tooltip-question-outline:before{content:"󱮻"}.mdi-tooltip-remove:before{content:"󱕠"}.mdi-tooltip-remove-outline:before{content:"󱕡"}.mdi-tooltip-text:before{content:"󰔨"}.mdi-tooltip-text-outline:before{content:"󰯗"}.mdi-tooth:before{content:"󰣃"}.mdi-tooth-outline:before{content:"󰔩"}.mdi-toothbrush:before{content:"󱄩"}.mdi-toothbrush-electric:before{content:"󱄬"}.mdi-toothbrush-paste:before{content:"󱄪"}.mdi-torch:before{content:"󱘆"}.mdi-tortoise:before{content:"󰴻"}.mdi-toslink:before{content:"󱊸"}.mdi-touch-text-outline:before{content:"󱱠"}.mdi-tournament:before{content:"󰦮"}.mdi-tow-truck:before{content:"󰠼"}.mdi-tower-beach:before{content:"󰚁"}.mdi-tower-fire:before{content:"󰚂"}.mdi-town-hall:before{content:"󱡵"}.mdi-toy-brick:before{content:"󱊈"}.mdi-toy-brick-marker:before{content:"󱊉"}.mdi-toy-brick-marker-outline:before{content:"󱊊"}.mdi-toy-brick-minus:before{content:"󱊋"}.mdi-toy-brick-minus-outline:before{content:"󱊌"}.mdi-toy-brick-outline:before{content:"󱊍"}.mdi-toy-brick-plus:before{content:"󱊎"}.mdi-toy-brick-plus-outline:before{content:"󱊏"}.mdi-toy-brick-remove:before{content:"󱊐"}.mdi-toy-brick-remove-outline:before{content:"󱊑"}.mdi-toy-brick-search:before{content:"󱊒"}.mdi-toy-brick-search-outline:before{content:"󱊓"}.mdi-track-light:before{content:"󰤔"}.mdi-track-light-off:before{content:"󱬁"}.mdi-trackpad:before{content:"󰟸"}.mdi-trackpad-lock:before{content:"󰤳"}.mdi-tractor:before{content:"󰢒"}.mdi-tractor-variant:before{content:"󱓄"}.mdi-trademark:before{content:"󰩸"}.mdi-traffic-cone:before{content:"󱍼"}.mdi-traffic-light:before{content:"󰔫"}.mdi-traffic-light-outline:before{content:"󱠪"}.mdi-train:before{content:"󰔬"}.mdi-train-bus:before{content:"󱳇"}.mdi-train-car:before{content:"󰯘"}.mdi-train-car-autorack:before{content:"󱬭"}.mdi-train-car-box:before{content:"󱬮"}.mdi-train-car-box-full:before{content:"󱬯"}.mdi-train-car-box-open:before{content:"󱬰"}.mdi-train-car-caboose:before{content:"󱬱"}.mdi-train-car-centerbeam:before{content:"󱬲"}.mdi-train-car-centerbeam-full:before{content:"󱬳"}.mdi-train-car-container:before{content:"󱬴"}.mdi-train-car-flatbed:before{content:"󱬵"}.mdi-train-car-flatbed-car:before{content:"󱬶"}.mdi-train-car-flatbed-tank:before{content:"󱬷"}.mdi-train-car-gondola:before{content:"󱬸"}.mdi-train-car-gondola-full:before{content:"󱬹"}.mdi-train-car-hopper:before{content:"󱬺"}.mdi-train-car-hopper-covered:before{content:"󱬻"}.mdi-train-car-hopper-full:before{content:"󱬼"}.mdi-train-car-intermodal:before{content:"󱬽"}.mdi-train-car-passenger:before{content:"󱜳"}.mdi-train-car-passenger-door:before{content:"󱜴"}.mdi-train-car-passenger-door-open:before{content:"󱜵"}.mdi-train-car-passenger-variant:before{content:"󱜶"}.mdi-train-car-tank:before{content:"󱬾"}.mdi-train-variant:before{content:"󰣄"}.mdi-tram:before{content:"󰔭"}.mdi-tram-side:before{content:"󰿧"}.mdi-transcribe:before{content:"󰔮"}.mdi-transcribe-close:before{content:"󰔯"}.mdi-transfer:before{content:"󱁥"}.mdi-transfer-down:before{content:"󰶡"}.mdi-transfer-left:before{content:"󰶢"}.mdi-transfer-right:before{content:"󰔰"}.mdi-transfer-up:before{content:"󰶣"}.mdi-transit-connection:before{content:"󰴼"}.mdi-transit-connection-horizontal:before{content:"󱕆"}.mdi-transit-connection-variant:before{content:"󰴽"}.mdi-transit-detour:before{content:"󰾋"}.mdi-transit-skip:before{content:"󱔕"}.mdi-transit-transfer:before{content:"󰚮"}.mdi-transition:before{content:"󰤕"}.mdi-transition-masked:before{content:"󰤖"}.mdi-translate:before{content:"󰗊"}.mdi-translate-off:before{content:"󰸆"}.mdi-translate-variant:before{content:"󱮙"}.mdi-transmission-tower:before{content:"󰴾"}.mdi-transmission-tower-export:before{content:"󱤬"}.mdi-transmission-tower-import:before{content:"󱤭"}.mdi-transmission-tower-off:before{content:"󱧝"}.mdi-trash-can:before{content:"󰩹"}.mdi-trash-can-outline:before{content:"󰩺"}.mdi-tray:before{content:"󱊔"}.mdi-tray-alert:before{content:"󱊕"}.mdi-tray-arrow-down:before{content:"󰄠"}.mdi-tray-arrow-up:before{content:"󰄝"}.mdi-tray-full:before{content:"󱊖"}.mdi-tray-minus:before{content:"󱊗"}.mdi-tray-plus:before{content:"󱊘"}.mdi-tray-remove:before{content:"󱊙"}.mdi-treasure-chest:before{content:"󰜦"}.mdi-treasure-chest-outline:before{content:"󱱷"}.mdi-tree:before{content:"󰔱"}.mdi-tree-outline:before{content:"󰹩"}.mdi-trello:before{content:"󰔲"}.mdi-trending-down:before{content:"󰔳"}.mdi-trending-neutral:before{content:"󰔴"}.mdi-trending-up:before{content:"󰔵"}.mdi-triangle:before{content:"󰔶"}.mdi-triangle-down:before{content:"󱱖"}.mdi-triangle-down-outline:before{content:"󱱗"}.mdi-triangle-outline:before{content:"󰔷"}.mdi-triangle-small-down:before{content:"󱨉"}.mdi-triangle-small-up:before{content:"󱨊"}.mdi-triangle-wave:before{content:"󱑼"}.mdi-triforce:before{content:"󰯙"}.mdi-trophy:before{content:"󰔸"}.mdi-trophy-award:before{content:"󰔹"}.mdi-trophy-broken:before{content:"󰶤"}.mdi-trophy-outline:before{content:"󰔺"}.mdi-trophy-variant:before{content:"󰔻"}.mdi-trophy-variant-outline:before{content:"󰔼"}.mdi-truck:before{content:"󰔽"}.mdi-truck-alert:before{content:"󱧞"}.mdi-truck-alert-outline:before{content:"󱧟"}.mdi-truck-cargo-container:before{content:"󱣘"}.mdi-truck-check:before{content:"󰳔"}.mdi-truck-check-outline:before{content:"󱊚"}.mdi-truck-delivery:before{content:"󰔾"}.mdi-truck-delivery-outline:before{content:"󱊛"}.mdi-truck-fast:before{content:"󰞈"}.mdi-truck-fast-outline:before{content:"󱊜"}.mdi-truck-flatbed:before{content:"󱢑"}.mdi-truck-minus:before{content:"󱦮"}.mdi-truck-minus-outline:before{content:"󱦽"}.mdi-truck-off-road:before{content:"󱲞"}.mdi-truck-off-road-off:before{content:"󱲟"}.mdi-truck-outline:before{content:"󱊝"}.mdi-truck-plus:before{content:"󱦭"}.mdi-truck-plus-outline:before{content:"󱦼"}.mdi-truck-remove:before{content:"󱦯"}.mdi-truck-remove-outline:before{content:"󱦾"}.mdi-truck-snowflake:before{content:"󱦦"}.mdi-truck-trailer:before{content:"󰜧"}.mdi-trumpet:before{content:"󱂖"}.mdi-tshirt-crew:before{content:"󰩻"}.mdi-tshirt-crew-outline:before{content:"󰔿"}.mdi-tshirt-v:before{content:"󰩼"}.mdi-tshirt-v-outline:before{content:"󰕀"}.mdi-tsunami:before{content:"󱪁"}.mdi-tumble-dryer:before{content:"󰤗"}.mdi-tumble-dryer-alert:before{content:"󱆺"}.mdi-tumble-dryer-off:before{content:"󱆻"}.mdi-tune:before{content:"󰘮"}.mdi-tune-variant:before{content:"󱕂"}.mdi-tune-vertical:before{content:"󰙪"}.mdi-tune-vertical-variant:before{content:"󱕃"}.mdi-tunnel:before{content:"󱠽"}.mdi-tunnel-outline:before{content:"󱠾"}.mdi-turbine:before{content:"󱪂"}.mdi-turkey:before{content:"󱜛"}.mdi-turnstile:before{content:"󰳕"}.mdi-turnstile-outline:before{content:"󰳖"}.mdi-turtle:before{content:"󰳗"}.mdi-twitch:before{content:"󰕃"}.mdi-twitter:before{content:"󰕄"}.mdi-two-factor-authentication:before{content:"󰦯"}.mdi-typewriter:before{content:"󰼭"}.mdi-ubisoft:before{content:"󰯚"}.mdi-ubuntu:before{content:"󰕈"}.mdi-ufo:before{content:"󱃄"}.mdi-ufo-outline:before{content:"󱃅"}.mdi-ultra-high-definition:before{content:"󰟹"}.mdi-umbraco:before{content:"󰕉"}.mdi-umbrella:before{content:"󰕊"}.mdi-umbrella-beach:before{content:"󱢊"}.mdi-umbrella-beach-outline:before{content:"󱢋"}.mdi-umbrella-closed:before{content:"󰦰"}.mdi-umbrella-closed-outline:before{content:"󱏢"}.mdi-umbrella-closed-variant:before{content:"󱏡"}.mdi-umbrella-outline:before{content:"󰕋"}.mdi-undo:before{content:"󰕌"}.mdi-undo-variant:before{content:"󰕍"}.mdi-unfold-less-horizontal:before{content:"󰕎"}.mdi-unfold-less-vertical:before{content:"󰝠"}.mdi-unfold-more-horizontal:before{content:"󰕏"}.mdi-unfold-more-vertical:before{content:"󰝡"}.mdi-ungroup:before{content:"󰕐"}.mdi-unicode:before{content:"󰻐"}.mdi-unicorn:before{content:"󱗂"}.mdi-unicorn-variant:before{content:"󱗃"}.mdi-unicycle:before{content:"󱗥"}.mdi-unity:before{content:"󰚯"}.mdi-unreal:before{content:"󰦱"}.mdi-update:before{content:"󰚰"}.mdi-upload:before{content:"󰕒"}.mdi-upload-lock:before{content:"󱍳"}.mdi-upload-lock-outline:before{content:"󱍴"}.mdi-upload-multiple:before{content:"󰠽"}.mdi-upload-network:before{content:"󰛶"}.mdi-upload-network-outline:before{content:"󰳘"}.mdi-upload-off:before{content:"󱃆"}.mdi-upload-off-outline:before{content:"󱃇"}.mdi-upload-outline:before{content:"󰸇"}.mdi-usb:before{content:"󰕓"}.mdi-usb-c-port:before{content:"󱲿"}.mdi-usb-flash-drive:before{content:"󱊞"}.mdi-usb-flash-drive-outline:before{content:"󱊟"}.mdi-usb-port:before{content:"󱇰"}.mdi-vacuum:before{content:"󱦡"}.mdi-vacuum-outline:before{content:"󱦢"}.mdi-valve:before{content:"󱁦"}.mdi-valve-closed:before{content:"󱁧"}.mdi-valve-open:before{content:"󱁨"}.mdi-van-passenger:before{content:"󰟺"}.mdi-van-utility:before{content:"󰟻"}.mdi-vanish:before{content:"󰟼"}.mdi-vanish-quarter:before{content:"󱕔"}.mdi-vanity-light:before{content:"󱇡"}.mdi-variable:before{content:"󰫧"}.mdi-variable-box:before{content:"󱄑"}.mdi-vector-arrange-above:before{content:"󰕔"}.mdi-vector-arrange-below:before{content:"󰕕"}.mdi-vector-bezier:before{content:"󰫨"}.mdi-vector-circle:before{content:"󰕖"}.mdi-vector-circle-variant:before{content:"󰕗"}.mdi-vector-combine:before{content:"󰕘"}.mdi-vector-curve:before{content:"󰕙"}.mdi-vector-difference:before{content:"󰕚"}.mdi-vector-difference-ab:before{content:"󰕛"}.mdi-vector-difference-ba:before{content:"󰕜"}.mdi-vector-ellipse:before{content:"󰢓"}.mdi-vector-intersection:before{content:"󰕝"}.mdi-vector-line:before{content:"󰕞"}.mdi-vector-link:before{content:"󰿨"}.mdi-vector-point:before{content:"󰇄"}.mdi-vector-point-edit:before{content:"󰧨"}.mdi-vector-point-minus:before{content:"󱭸"}.mdi-vector-point-plus:before{content:"󱭹"}.mdi-vector-point-select:before{content:"󰕟"}.mdi-vector-polygon:before{content:"󰕠"}.mdi-vector-polygon-variant:before{content:"󱡖"}.mdi-vector-polyline:before{content:"󰕡"}.mdi-vector-polyline-edit:before{content:"󱈥"}.mdi-vector-polyline-minus:before{content:"󱈦"}.mdi-vector-polyline-plus:before{content:"󱈧"}.mdi-vector-polyline-remove:before{content:"󱈨"}.mdi-vector-radius:before{content:"󰝊"}.mdi-vector-rectangle:before{content:"󰗆"}.mdi-vector-selection:before{content:"󰕢"}.mdi-vector-square:before{content:"󰀁"}.mdi-vector-square-close:before{content:"󱡗"}.mdi-vector-square-edit:before{content:"󱣙"}.mdi-vector-square-minus:before{content:"󱣚"}.mdi-vector-square-open:before{content:"󱡘"}.mdi-vector-square-plus:before{content:"󱣛"}.mdi-vector-square-remove:before{content:"󱣜"}.mdi-vector-triangle:before{content:"󰕣"}.mdi-vector-union:before{content:"󰕤"}.mdi-vhs:before{content:"󰨛"}.mdi-vibrate:before{content:"󰕦"}.mdi-vibrate-off:before{content:"󰳙"}.mdi-video:before{content:"󰕧"}.mdi-video-2d:before{content:"󱨜"}.mdi-video-3d:before{content:"󰟽"}.mdi-video-3d-off:before{content:"󱏙"}.mdi-video-3d-variant:before{content:"󰻑"}.mdi-video-4k-box:before{content:"󰠾"}.mdi-video-account:before{content:"󰤙"}.mdi-video-box:before{content:"󰃽"}.mdi-video-box-off:before{content:"󰃾"}.mdi-video-check:before{content:"󱁩"}.mdi-video-check-outline:before{content:"󱁪"}.mdi-video-high-definition:before{content:"󱔮"}.mdi-video-image:before{content:"󰤚"}.mdi-video-input-antenna:before{content:"󰠿"}.mdi-video-input-component:before{content:"󰡀"}.mdi-video-input-hdmi:before{content:"󰡁"}.mdi-video-input-scart:before{content:"󰾌"}.mdi-video-input-svideo:before{content:"󰡂"}.mdi-video-marker:before{content:"󱦩"}.mdi-video-marker-outline:before{content:"󱦪"}.mdi-video-minus:before{content:"󰦲"}.mdi-video-minus-outline:before{content:"󰊺"}.mdi-video-off:before{content:"󰕨"}.mdi-video-off-outline:before{content:"󰯛"}.mdi-video-outline:before{content:"󰯜"}.mdi-video-plus:before{content:"󰦳"}.mdi-video-plus-outline:before{content:"󰇓"}.mdi-video-stabilization:before{content:"󰤛"}.mdi-video-standard-definition:before{content:"󱲠"}.mdi-video-switch:before{content:"󰕩"}.mdi-video-switch-outline:before{content:"󰞐"}.mdi-video-vintage:before{content:"󰨜"}.mdi-video-wireless:before{content:"󰻒"}.mdi-video-wireless-outline:before{content:"󰻓"}.mdi-view-agenda:before{content:"󰕪"}.mdi-view-agenda-outline:before{content:"󱇘"}.mdi-view-array:before{content:"󰕫"}.mdi-view-array-outline:before{content:"󱒅"}.mdi-view-carousel:before{content:"󰕬"}.mdi-view-carousel-outline:before{content:"󱒆"}.mdi-view-column:before{content:"󰕭"}.mdi-view-column-outline:before{content:"󱒇"}.mdi-view-comfy:before{content:"󰹪"}.mdi-view-comfy-outline:before{content:"󱒈"}.mdi-view-compact:before{content:"󰹫"}.mdi-view-compact-outline:before{content:"󰹬"}.mdi-view-dashboard:before{content:"󰕮"}.mdi-view-dashboard-edit:before{content:"󱥇"}.mdi-view-dashboard-edit-outline:before{content:"󱥈"}.mdi-view-dashboard-outline:before{content:"󰨝"}.mdi-view-dashboard-variant:before{content:"󰡃"}.mdi-view-dashboard-variant-outline:before{content:"󱒉"}.mdi-view-day:before{content:"󰕯"}.mdi-view-day-outline:before{content:"󱒊"}.mdi-view-gallery:before{content:"󱢈"}.mdi-view-gallery-outline:before{content:"󱢉"}.mdi-view-grid:before{content:"󰕰"}.mdi-view-grid-compact:before{content:"󱱡"}.mdi-view-grid-outline:before{content:"󱇙"}.mdi-view-grid-plus:before{content:"󰾍"}.mdi-view-grid-plus-outline:before{content:"󱇚"}.mdi-view-headline:before{content:"󰕱"}.mdi-view-list:before{content:"󰕲"}.mdi-view-list-outline:before{content:"󱒋"}.mdi-view-module:before{content:"󰕳"}.mdi-view-module-outline:before{content:"󱒌"}.mdi-view-parallel:before{content:"󰜨"}.mdi-view-parallel-outline:before{content:"󱒍"}.mdi-view-quilt:before{content:"󰕴"}.mdi-view-quilt-outline:before{content:"󱒎"}.mdi-view-sequential:before{content:"󰜩"}.mdi-view-sequential-outline:before{content:"󱒏"}.mdi-view-split-horizontal:before{content:"󰯋"}.mdi-view-split-vertical:before{content:"󰯌"}.mdi-view-stream:before{content:"󰕵"}.mdi-view-stream-outline:before{content:"󱒐"}.mdi-view-week:before{content:"󰕶"}.mdi-view-week-outline:before{content:"󱒑"}.mdi-vimeo:before{content:"󰕷"}.mdi-violin:before{content:"󰘏"}.mdi-virtual-reality:before{content:"󰢔"}.mdi-virus:before{content:"󱎶"}.mdi-virus-off:before{content:"󱣡"}.mdi-virus-off-outline:before{content:"󱣢"}.mdi-virus-outline:before{content:"󱎷"}.mdi-vlc:before{content:"󰕼"}.mdi-voicemail:before{content:"󰕽"}.mdi-volcano:before{content:"󱪃"}.mdi-volcano-outline:before{content:"󱪄"}.mdi-volleyball:before{content:"󰦴"}.mdi-volume-equal:before{content:"󱬐"}.mdi-volume-high:before{content:"󰕾"}.mdi-volume-low:before{content:"󰕿"}.mdi-volume-medium:before{content:"󰖀"}.mdi-volume-minus:before{content:"󰝞"}.mdi-volume-mute:before{content:"󰝟"}.mdi-volume-off:before{content:"󰖁"}.mdi-volume-plus:before{content:"󰝝"}.mdi-volume-source:before{content:"󱄠"}.mdi-volume-variant-off:before{content:"󰸈"}.mdi-volume-vibrate:before{content:"󱄡"}.mdi-vote:before{content:"󰨟"}.mdi-vote-outline:before{content:"󰨠"}.mdi-vpn:before{content:"󰖂"}.mdi-vuejs:before{content:"󰡄"}.mdi-vuetify:before{content:"󰹭"}.mdi-walk:before{content:"󰖃"}.mdi-wall:before{content:"󰟾"}.mdi-wall-fire:before{content:"󱨑"}.mdi-wall-sconce:before{content:"󰤜"}.mdi-wall-sconce-flat:before{content:"󰤝"}.mdi-wall-sconce-flat-outline:before{content:"󱟉"}.mdi-wall-sconce-flat-variant:before{content:"󰐜"}.mdi-wall-sconce-flat-variant-outline:before{content:"󱟊"}.mdi-wall-sconce-outline:before{content:"󱟋"}.mdi-wall-sconce-round:before{content:"󰝈"}.mdi-wall-sconce-round-outline:before{content:"󱟌"}.mdi-wall-sconce-round-variant:before{content:"󰤞"}.mdi-wall-sconce-round-variant-outline:before{content:"󱟍"}.mdi-wallet:before{content:"󰖄"}.mdi-wallet-bifold:before{content:"󱱘"}.mdi-wallet-bifold-outline:before{content:"󱱙"}.mdi-wallet-giftcard:before{content:"󰖅"}.mdi-wallet-membership:before{content:"󰖆"}.mdi-wallet-outline:before{content:"󰯝"}.mdi-wallet-plus:before{content:"󰾎"}.mdi-wallet-plus-outline:before{content:"󰾏"}.mdi-wallet-travel:before{content:"󰖇"}.mdi-wallpaper:before{content:"󰸉"}.mdi-wan:before{content:"󰖈"}.mdi-wardrobe:before{content:"󰾐"}.mdi-wardrobe-outline:before{content:"󰾑"}.mdi-warehouse:before{content:"󰾁"}.mdi-washing-machine:before{content:"󰜪"}.mdi-washing-machine-alert:before{content:"󱆼"}.mdi-washing-machine-off:before{content:"󱆽"}.mdi-watch:before{content:"󰖉"}.mdi-watch-export:before{content:"󰖊"}.mdi-watch-export-variant:before{content:"󰢕"}.mdi-watch-import:before{content:"󰖋"}.mdi-watch-import-variant:before{content:"󰢖"}.mdi-watch-variant:before{content:"󰢗"}.mdi-watch-vibrate:before{content:"󰚱"}.mdi-watch-vibrate-off:before{content:"󰳚"}.mdi-water:before{content:"󰖌"}.mdi-water-alert:before{content:"󱔂"}.mdi-water-alert-outline:before{content:"󱔃"}.mdi-water-boiler:before{content:"󰾒"}.mdi-water-boiler-alert:before{content:"󱆳"}.mdi-water-boiler-auto:before{content:"󱮘"}.mdi-water-boiler-off:before{content:"󱆴"}.mdi-water-check:before{content:"󱔄"}.mdi-water-check-outline:before{content:"󱔅"}.mdi-water-circle:before{content:"󱠆"}.mdi-water-minus:before{content:"󱔆"}.mdi-water-minus-outline:before{content:"󱔇"}.mdi-water-off:before{content:"󰖍"}.mdi-water-off-outline:before{content:"󱔈"}.mdi-water-opacity:before{content:"󱡕"}.mdi-water-outline:before{content:"󰸊"}.mdi-water-percent:before{content:"󰖎"}.mdi-water-percent-alert:before{content:"󱔉"}.mdi-water-plus:before{content:"󱔊"}.mdi-water-plus-outline:before{content:"󱔋"}.mdi-water-polo:before{content:"󱊠"}.mdi-water-pump:before{content:"󰖏"}.mdi-water-pump-off:before{content:"󰾓"}.mdi-water-remove:before{content:"󱔌"}.mdi-water-remove-outline:before{content:"󱔍"}.mdi-water-sync:before{content:"󱟆"}.mdi-water-thermometer:before{content:"󱪅"}.mdi-water-thermometer-outline:before{content:"󱪆"}.mdi-water-well:before{content:"󱁫"}.mdi-water-well-outline:before{content:"󱁬"}.mdi-waterfall:before{content:"󱡉"}.mdi-watering-can:before{content:"󱒁"}.mdi-watering-can-outline:before{content:"󱒂"}.mdi-watermark:before{content:"󰘒"}.mdi-wave:before{content:"󰼮"}.mdi-wave-arrow-down:before{content:"󱲰"}.mdi-wave-arrow-up:before{content:"󱲱"}.mdi-wave-undercurrent:before{content:"󱳀"}.mdi-waveform:before{content:"󱑽"}.mdi-waves:before{content:"󰞍"}.mdi-waves-arrow-left:before{content:"󱡙"}.mdi-waves-arrow-right:before{content:"󱡚"}.mdi-waves-arrow-up:before{content:"󱡛"}.mdi-waze:before{content:"󰯞"}.mdi-weather-cloudy:before{content:"󰖐"}.mdi-weather-cloudy-alert:before{content:"󰼯"}.mdi-weather-cloudy-arrow-right:before{content:"󰹮"}.mdi-weather-cloudy-clock:before{content:"󱣶"}.mdi-weather-dust:before{content:"󱭚"}.mdi-weather-fog:before{content:"󰖑"}.mdi-weather-hail:before{content:"󰖒"}.mdi-weather-hazy:before{content:"󰼰"}.mdi-weather-hurricane:before{content:"󰢘"}.mdi-weather-hurricane-outline:before{content:"󱱸"}.mdi-weather-lightning:before{content:"󰖓"}.mdi-weather-lightning-rainy:before{content:"󰙾"}.mdi-weather-night:before{content:"󰖔"}.mdi-weather-night-partly-cloudy:before{content:"󰼱"}.mdi-weather-partly-cloudy:before{content:"󰖕"}.mdi-weather-partly-lightning:before{content:"󰼲"}.mdi-weather-partly-rainy:before{content:"󰼳"}.mdi-weather-partly-snowy:before{content:"󰼴"}.mdi-weather-partly-snowy-rainy:before{content:"󰼵"}.mdi-weather-pouring:before{content:"󰖖"}.mdi-weather-rainy:before{content:"󰖗"}.mdi-weather-snowy:before{content:"󰖘"}.mdi-weather-snowy-heavy:before{content:"󰼶"}.mdi-weather-snowy-rainy:before{content:"󰙿"}.mdi-weather-sunny:before{content:"󰖙"}.mdi-weather-sunny-alert:before{content:"󰼷"}.mdi-weather-sunny-off:before{content:"󱓤"}.mdi-weather-sunset:before{content:"󰖚"}.mdi-weather-sunset-down:before{content:"󰖛"}.mdi-weather-sunset-up:before{content:"󰖜"}.mdi-weather-tornado:before{content:"󰼸"}.mdi-weather-windy:before{content:"󰖝"}.mdi-weather-windy-variant:before{content:"󰖞"}.mdi-web:before{content:"󰖟"}.mdi-web-box:before{content:"󰾔"}.mdi-web-cancel:before{content:"󱞐"}.mdi-web-check:before{content:"󰞉"}.mdi-web-clock:before{content:"󱉊"}.mdi-web-minus:before{content:"󱂠"}.mdi-web-off:before{content:"󰪎"}.mdi-web-plus:before{content:"󰀳"}.mdi-web-refresh:before{content:"󱞑"}.mdi-web-remove:before{content:"󰕑"}.mdi-web-sync:before{content:"󱞒"}.mdi-webcam:before{content:"󰖠"}.mdi-webcam-off:before{content:"󱜷"}.mdi-webhook:before{content:"󰘯"}.mdi-webpack:before{content:"󰜫"}.mdi-webrtc:before{content:"󱉈"}.mdi-wechat:before{content:"󰘑"}.mdi-weight:before{content:"󰖡"}.mdi-weight-gram:before{content:"󰴿"}.mdi-weight-kilogram:before{content:"󰖢"}.mdi-weight-lifter:before{content:"󱅝"}.mdi-weight-pound:before{content:"󰦵"}.mdi-whatsapp:before{content:"󰖣"}.mdi-wheel-barrow:before{content:"󱓲"}.mdi-wheelchair:before{content:"󱪇"}.mdi-wheelchair-accessibility:before{content:"󰖤"}.mdi-whistle:before{content:"󰦶"}.mdi-whistle-outline:before{content:"󱊼"}.mdi-white-balance-auto:before{content:"󰖥"}.mdi-white-balance-incandescent:before{content:"󰖦"}.mdi-white-balance-iridescent:before{content:"󰖧"}.mdi-white-balance-sunny:before{content:"󰖨"}.mdi-widgets:before{content:"󰜬"}.mdi-widgets-outline:before{content:"󱍕"}.mdi-wifi:before{content:"󰖩"}.mdi-wifi-alert:before{content:"󱚵"}.mdi-wifi-arrow-down:before{content:"󱚶"}.mdi-wifi-arrow-left:before{content:"󱚷"}.mdi-wifi-arrow-left-right:before{content:"󱚸"}.mdi-wifi-arrow-right:before{content:"󱚹"}.mdi-wifi-arrow-up:before{content:"󱚺"}.mdi-wifi-arrow-up-down:before{content:"󱚻"}.mdi-wifi-cancel:before{content:"󱚼"}.mdi-wifi-check:before{content:"󱚽"}.mdi-wifi-cog:before{content:"󱚾"}.mdi-wifi-lock:before{content:"󱚿"}.mdi-wifi-lock-open:before{content:"󱛀"}.mdi-wifi-marker:before{content:"󱛁"}.mdi-wifi-minus:before{content:"󱛂"}.mdi-wifi-off:before{content:"󰖪"}.mdi-wifi-plus:before{content:"󱛃"}.mdi-wifi-refresh:before{content:"󱛄"}.mdi-wifi-remove:before{content:"󱛅"}.mdi-wifi-settings:before{content:"󱛆"}.mdi-wifi-star:before{content:"󰸋"}.mdi-wifi-strength-1:before{content:"󰤟"}.mdi-wifi-strength-1-alert:before{content:"󰤠"}.mdi-wifi-strength-1-lock:before{content:"󰤡"}.mdi-wifi-strength-1-lock-open:before{content:"󱛋"}.mdi-wifi-strength-2:before{content:"󰤢"}.mdi-wifi-strength-2-alert:before{content:"󰤣"}.mdi-wifi-strength-2-lock:before{content:"󰤤"}.mdi-wifi-strength-2-lock-open:before{content:"󱛌"}.mdi-wifi-strength-3:before{content:"󰤥"}.mdi-wifi-strength-3-alert:before{content:"󰤦"}.mdi-wifi-strength-3-lock:before{content:"󰤧"}.mdi-wifi-strength-3-lock-open:before{content:"󱛍"}.mdi-wifi-strength-4:before{content:"󰤨"}.mdi-wifi-strength-4-alert:before{content:"󰤩"}.mdi-wifi-strength-4-lock:before{content:"󰤪"}.mdi-wifi-strength-4-lock-open:before{content:"󱛎"}.mdi-wifi-strength-alert-outline:before{content:"󰤫"}.mdi-wifi-strength-lock-open-outline:before{content:"󱛏"}.mdi-wifi-strength-lock-outline:before{content:"󰤬"}.mdi-wifi-strength-off:before{content:"󰤭"}.mdi-wifi-strength-off-outline:before{content:"󰤮"}.mdi-wifi-strength-outline:before{content:"󰤯"}.mdi-wifi-sync:before{content:"󱛇"}.mdi-wikipedia:before{content:"󰖬"}.mdi-wind-power:before{content:"󱪈"}.mdi-wind-power-outline:before{content:"󱪉"}.mdi-wind-turbine:before{content:"󰶥"}.mdi-wind-turbine-alert:before{content:"󱦫"}.mdi-wind-turbine-check:before{content:"󱦬"}.mdi-window-close:before{content:"󰖭"}.mdi-window-closed:before{content:"󰖮"}.mdi-window-closed-variant:before{content:"󱇛"}.mdi-window-maximize:before{content:"󰖯"}.mdi-window-minimize:before{content:"󰖰"}.mdi-window-open:before{content:"󰖱"}.mdi-window-open-variant:before{content:"󱇜"}.mdi-window-restore:before{content:"󰖲"}.mdi-window-shutter:before{content:"󱄜"}.mdi-window-shutter-alert:before{content:"󱄝"}.mdi-window-shutter-auto:before{content:"󱮣"}.mdi-window-shutter-cog:before{content:"󱪊"}.mdi-window-shutter-open:before{content:"󱄞"}.mdi-window-shutter-settings:before{content:"󱪋"}.mdi-windsock:before{content:"󱗺"}.mdi-wiper:before{content:"󰫩"}.mdi-wiper-wash:before{content:"󰶦"}.mdi-wiper-wash-alert:before{content:"󱣟"}.mdi-wizard-hat:before{content:"󱑷"}.mdi-wordpress:before{content:"󰖴"}.mdi-wrap:before{content:"󰖶"}.mdi-wrap-disabled:before{content:"󰯟"}.mdi-wrench:before{content:"󰖷"}.mdi-wrench-check:before{content:"󱮏"}.mdi-wrench-check-outline:before{content:"󱮐"}.mdi-wrench-clock:before{content:"󱦣"}.mdi-wrench-clock-outline:before{content:"󱮓"}.mdi-wrench-cog:before{content:"󱮑"}.mdi-wrench-cog-outline:before{content:"󱮒"}.mdi-wrench-outline:before{content:"󰯠"}.mdi-xamarin:before{content:"󰡅"}.mdi-xml:before{content:"󰗀"}.mdi-xmpp:before{content:"󰟿"}.mdi-yahoo:before{content:"󰭏"}.mdi-yeast:before{content:"󰗁"}.mdi-yin-yang:before{content:"󰚀"}.mdi-yoga:before{content:"󱅼"}.mdi-youtube:before{content:"󰗃"}.mdi-youtube-gaming:before{content:"󰡈"}.mdi-youtube-studio:before{content:"󰡇"}.mdi-youtube-subscription:before{content:"󰵀"}.mdi-youtube-tv:before{content:"󰑈"}.mdi-yurt:before{content:"󱔖"}.mdi-z-wave:before{content:"󰫪"}.mdi-zend:before{content:"󰫫"}.mdi-zigbee:before{content:"󰵁"}.mdi-zip-box:before{content:"󰗄"}.mdi-zip-box-outline:before{content:"󰿺"}.mdi-zip-disk:before{content:"󰨣"}.mdi-zodiac-aquarius:before{content:"󰩽"}.mdi-zodiac-aries:before{content:"󰩾"}.mdi-zodiac-cancer:before{content:"󰩿"}.mdi-zodiac-capricorn:before{content:"󰪀"}.mdi-zodiac-gemini:before{content:"󰪁"}.mdi-zodiac-leo:before{content:"󰪂"}.mdi-zodiac-libra:before{content:"󰪃"}.mdi-zodiac-pisces:before{content:"󰪄"}.mdi-zodiac-sagittarius:before{content:"󰪅"}.mdi-zodiac-scorpio:before{content:"󰪆"}.mdi-zodiac-taurus:before{content:"󰪇"}.mdi-zodiac-virgo:before{content:"󰪈"}.mdi-blank:before{content:"";visibility:hidden}.mdi-18px.mdi-set,.mdi-18px.mdi:before{font-size:18px}.mdi-24px.mdi-set,.mdi-24px.mdi:before{font-size:24px}.mdi-36px.mdi-set,.mdi-36px.mdi:before{font-size:36px}.mdi-48px.mdi-set,.mdi-48px.mdi:before{font-size:48px}.mdi-dark:before{color:#0000008a}.mdi-dark.mdi-inactive:before{color:#00000042}.mdi-light:before{color:#fff}.mdi-light.mdi-inactive:before{color:#ffffff4d}.mdi-rotate-45:before{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.mdi-rotate-90:before{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.mdi-rotate-135:before{-webkit-transform:rotate(135deg);-ms-transform:rotate(135deg);transform:rotate(135deg)}.mdi-rotate-180:before{-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.mdi-rotate-225:before{-webkit-transform:rotate(225deg);-ms-transform:rotate(225deg);transform:rotate(225deg)}.mdi-rotate-270:before{-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.mdi-rotate-315:before{-webkit-transform:rotate(315deg);-ms-transform:rotate(315deg);transform:rotate(315deg)}.mdi-flip-h:before{-webkit-transform:scaleX(-1);transform:scaleX(-1);filter:FlipH;-ms-filter:"FlipH"}.mdi-flip-v:before{-webkit-transform:scaleY(-1);transform:scaleY(-1);filter:FlipV;-ms-filter:"FlipV"}.mdi-spin:before{-webkit-animation:mdi-spin 2s infinite linear;animation:mdi-spin 2s infinite linear}@-webkit-keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes mdi-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes v-shake{59%{margin-left:0}60%,80%{margin-left:2px}70%,90%{margin-left:-2px}}.bg-black{background-color:#000!important;color:#fff!important}.bg-white{background-color:#fff!important;color:#000!important}.bg-transparent{background-color:transparent!important;color:currentColor!important}.bg-red{background-color:#f44336!important;color:#fff!important}.bg-red-lighten-5{background-color:#ffebee!important;color:#000!important}.bg-red-lighten-4{background-color:#ffcdd2!important;color:#000!important}.bg-red-lighten-3{background-color:#ef9a9a!important;color:#000!important}.bg-red-lighten-2{background-color:#e57373!important;color:#fff!important}.bg-red-lighten-1{background-color:#ef5350!important;color:#fff!important}.bg-red-darken-1{background-color:#e53935!important;color:#fff!important}.bg-red-darken-2{background-color:#d32f2f!important;color:#fff!important}.bg-red-darken-3{background-color:#c62828!important;color:#fff!important}.bg-red-darken-4{background-color:#b71c1c!important;color:#fff!important}.bg-red-accent-1{background-color:#ff8a80!important;color:#000!important}.bg-red-accent-2{background-color:#ff5252!important;color:#fff!important}.bg-red-accent-3{background-color:#ff1744!important;color:#fff!important}.bg-red-accent-4{background-color:#d50000!important;color:#fff!important}.bg-pink{background-color:#e91e63!important;color:#fff!important}.bg-pink-lighten-5{background-color:#fce4ec!important;color:#000!important}.bg-pink-lighten-4{background-color:#f8bbd0!important;color:#000!important}.bg-pink-lighten-3{background-color:#f48fb1!important;color:#000!important}.bg-pink-lighten-2{background-color:#f06292!important;color:#fff!important}.bg-pink-lighten-1{background-color:#ec407a!important;color:#fff!important}.bg-pink-darken-1{background-color:#d81b60!important;color:#fff!important}.bg-pink-darken-2{background-color:#c2185b!important;color:#fff!important}.bg-pink-darken-3{background-color:#ad1457!important;color:#fff!important}.bg-pink-darken-4{background-color:#880e4f!important;color:#fff!important}.bg-pink-accent-1{background-color:#ff80ab!important;color:#fff!important}.bg-pink-accent-2{background-color:#ff4081!important;color:#fff!important}.bg-pink-accent-3{background-color:#f50057!important;color:#fff!important}.bg-pink-accent-4{background-color:#c51162!important;color:#fff!important}.bg-purple{background-color:#9c27b0!important;color:#fff!important}.bg-purple-lighten-5{background-color:#f3e5f5!important;color:#000!important}.bg-purple-lighten-4{background-color:#e1bee7!important;color:#000!important}.bg-purple-lighten-3{background-color:#ce93d8!important;color:#fff!important}.bg-purple-lighten-2{background-color:#ba68c8!important;color:#fff!important}.bg-purple-lighten-1{background-color:#ab47bc!important;color:#fff!important}.bg-purple-darken-1{background-color:#8e24aa!important;color:#fff!important}.bg-purple-darken-2{background-color:#7b1fa2!important;color:#fff!important}.bg-purple-darken-3{background-color:#6a1b9a!important;color:#fff!important}.bg-purple-darken-4{background-color:#4a148c!important;color:#fff!important}.bg-purple-accent-1{background-color:#ea80fc!important;color:#fff!important}.bg-purple-accent-2{background-color:#e040fb!important;color:#fff!important}.bg-purple-accent-3{background-color:#d500f9!important;color:#fff!important}.bg-purple-accent-4{background-color:#a0f!important;color:#fff!important}.bg-deep-purple{background-color:#673ab7!important;color:#fff!important}.bg-deep-purple-lighten-5{background-color:#ede7f6!important;color:#000!important}.bg-deep-purple-lighten-4{background-color:#d1c4e9!important;color:#000!important}.bg-deep-purple-lighten-3{background-color:#b39ddb!important;color:#fff!important}.bg-deep-purple-lighten-2{background-color:#9575cd!important;color:#fff!important}.bg-deep-purple-lighten-1{background-color:#7e57c2!important;color:#fff!important}.bg-deep-purple-darken-1{background-color:#5e35b1!important;color:#fff!important}.bg-deep-purple-darken-2{background-color:#512da8!important;color:#fff!important}.bg-deep-purple-darken-3{background-color:#4527a0!important;color:#fff!important}.bg-deep-purple-darken-4{background-color:#311b92!important;color:#fff!important}.bg-deep-purple-accent-1{background-color:#b388ff!important;color:#fff!important}.bg-deep-purple-accent-2{background-color:#7c4dff!important;color:#fff!important}.bg-deep-purple-accent-3{background-color:#651fff!important;color:#fff!important}.bg-deep-purple-accent-4{background-color:#6200ea!important;color:#fff!important}.bg-indigo{background-color:#3f51b5!important;color:#fff!important}.bg-indigo-lighten-5{background-color:#e8eaf6!important;color:#000!important}.bg-indigo-lighten-4{background-color:#c5cae9!important;color:#000!important}.bg-indigo-lighten-3{background-color:#9fa8da!important;color:#fff!important}.bg-indigo-lighten-2{background-color:#7986cb!important;color:#fff!important}.bg-indigo-lighten-1{background-color:#5c6bc0!important;color:#fff!important}.bg-indigo-darken-1{background-color:#3949ab!important;color:#fff!important}.bg-indigo-darken-2{background-color:#303f9f!important;color:#fff!important}.bg-indigo-darken-3{background-color:#283593!important;color:#fff!important}.bg-indigo-darken-4{background-color:#1a237e!important;color:#fff!important}.bg-indigo-accent-1{background-color:#8c9eff!important;color:#fff!important}.bg-indigo-accent-2{background-color:#536dfe!important;color:#fff!important}.bg-indigo-accent-3{background-color:#3d5afe!important;color:#fff!important}.bg-indigo-accent-4{background-color:#304ffe!important;color:#fff!important}.bg-blue{background-color:#2196f3!important;color:#fff!important}.bg-blue-lighten-5{background-color:#e3f2fd!important;color:#000!important}.bg-blue-lighten-4{background-color:#bbdefb!important;color:#000!important}.bg-blue-lighten-3{background-color:#90caf9!important;color:#000!important}.bg-blue-lighten-2{background-color:#64b5f6!important;color:#000!important}.bg-blue-lighten-1{background-color:#42a5f5!important;color:#fff!important}.bg-blue-darken-1{background-color:#1e88e5!important;color:#fff!important}.bg-blue-darken-2{background-color:#1976d2!important;color:#fff!important}.bg-blue-darken-3{background-color:#1565c0!important;color:#fff!important}.bg-blue-darken-4{background-color:#0d47a1!important;color:#fff!important}.bg-blue-accent-1{background-color:#82b1ff!important;color:#000!important}.bg-blue-accent-2{background-color:#448aff!important;color:#fff!important}.bg-blue-accent-3{background-color:#2979ff!important;color:#fff!important}.bg-blue-accent-4{background-color:#2962ff!important;color:#fff!important}.bg-light-blue{background-color:#03a9f4!important;color:#fff!important}.bg-light-blue-lighten-5{background-color:#e1f5fe!important;color:#000!important}.bg-light-blue-lighten-4{background-color:#b3e5fc!important;color:#000!important}.bg-light-blue-lighten-3{background-color:#81d4fa!important;color:#000!important}.bg-light-blue-lighten-2{background-color:#4fc3f7!important;color:#000!important}.bg-light-blue-lighten-1{background-color:#29b6f6!important;color:#000!important}.bg-light-blue-darken-1{background-color:#039be5!important;color:#fff!important}.bg-light-blue-darken-2{background-color:#0288d1!important;color:#fff!important}.bg-light-blue-darken-3{background-color:#0277bd!important;color:#fff!important}.bg-light-blue-darken-4{background-color:#01579b!important;color:#fff!important}.bg-light-blue-accent-1{background-color:#80d8ff!important;color:#000!important}.bg-light-blue-accent-2{background-color:#40c4ff!important;color:#000!important}.bg-light-blue-accent-3{background-color:#00b0ff!important;color:#fff!important}.bg-light-blue-accent-4{background-color:#0091ea!important;color:#fff!important}.bg-cyan{background-color:#00bcd4!important;color:#000!important}.bg-cyan-lighten-5{background-color:#e0f7fa!important;color:#000!important}.bg-cyan-lighten-4{background-color:#b2ebf2!important;color:#000!important}.bg-cyan-lighten-3{background-color:#80deea!important;color:#000!important}.bg-cyan-lighten-2{background-color:#4dd0e1!important;color:#000!important}.bg-cyan-lighten-1{background-color:#26c6da!important;color:#000!important}.bg-cyan-darken-1{background-color:#00acc1!important;color:#fff!important}.bg-cyan-darken-2{background-color:#0097a7!important;color:#fff!important}.bg-cyan-darken-3{background-color:#00838f!important;color:#fff!important}.bg-cyan-darken-4{background-color:#006064!important;color:#fff!important}.bg-cyan-accent-1{background-color:#84ffff!important;color:#000!important}.bg-cyan-accent-2{background-color:#18ffff!important;color:#000!important}.bg-cyan-accent-3{background-color:#00e5ff!important;color:#000!important}.bg-cyan-accent-4{background-color:#00b8d4!important;color:#fff!important}.bg-teal{background-color:#009688!important;color:#fff!important}.bg-teal-lighten-5{background-color:#e0f2f1!important;color:#000!important}.bg-teal-lighten-4{background-color:#b2dfdb!important;color:#000!important}.bg-teal-lighten-3{background-color:#80cbc4!important;color:#000!important}.bg-teal-lighten-2{background-color:#4db6ac!important;color:#fff!important}.bg-teal-lighten-1{background-color:#26a69a!important;color:#fff!important}.bg-teal-darken-1{background-color:#00897b!important;color:#fff!important}.bg-teal-darken-2{background-color:#00796b!important;color:#fff!important}.bg-teal-darken-3{background-color:#00695c!important;color:#fff!important}.bg-teal-darken-4{background-color:#004d40!important;color:#fff!important}.bg-teal-accent-1{background-color:#a7ffeb!important;color:#000!important}.bg-teal-accent-2{background-color:#64ffda!important;color:#000!important}.bg-teal-accent-3{background-color:#1de9b6!important;color:#000!important}.bg-teal-accent-4{background-color:#00bfa5!important;color:#fff!important}.bg-green{background-color:#4caf50!important;color:#fff!important}.bg-green-lighten-5{background-color:#e8f5e9!important;color:#000!important}.bg-green-lighten-4{background-color:#c8e6c9!important;color:#000!important}.bg-green-lighten-3{background-color:#a5d6a7!important;color:#000!important}.bg-green-lighten-2{background-color:#81c784!important;color:#000!important}.bg-green-lighten-1{background-color:#66bb6a!important;color:#fff!important}.bg-green-darken-1{background-color:#43a047!important;color:#fff!important}.bg-green-darken-2{background-color:#388e3c!important;color:#fff!important}.bg-green-darken-3{background-color:#2e7d32!important;color:#fff!important}.bg-green-darken-4{background-color:#1b5e20!important;color:#fff!important}.bg-green-accent-1{background-color:#b9f6ca!important;color:#000!important}.bg-green-accent-2{background-color:#69f0ae!important;color:#000!important}.bg-green-accent-3{background-color:#00e676!important;color:#000!important}.bg-green-accent-4{background-color:#00c853!important;color:#000!important}.bg-light-green{background-color:#8bc34a!important;color:#000!important}.bg-light-green-lighten-5{background-color:#f1f8e9!important;color:#000!important}.bg-light-green-lighten-4{background-color:#dcedc8!important;color:#000!important}.bg-light-green-lighten-3{background-color:#c5e1a5!important;color:#000!important}.bg-light-green-lighten-2{background-color:#aed581!important;color:#000!important}.bg-light-green-lighten-1{background-color:#9ccc65!important;color:#000!important}.bg-light-green-darken-1{background-color:#7cb342!important;color:#fff!important}.bg-light-green-darken-2{background-color:#689f38!important;color:#fff!important}.bg-light-green-darken-3{background-color:#558b2f!important;color:#fff!important}.bg-light-green-darken-4{background-color:#33691e!important;color:#fff!important}.bg-light-green-accent-1{background-color:#ccff90!important;color:#000!important}.bg-light-green-accent-2{background-color:#b2ff59!important;color:#000!important}.bg-light-green-accent-3{background-color:#76ff03!important;color:#000!important}.bg-light-green-accent-4{background-color:#64dd17!important;color:#000!important}.bg-lime{background-color:#cddc39!important;color:#000!important}.bg-lime-lighten-5{background-color:#f9fbe7!important;color:#000!important}.bg-lime-lighten-4{background-color:#f0f4c3!important;color:#000!important}.bg-lime-lighten-3{background-color:#e6ee9c!important;color:#000!important}.bg-lime-lighten-2{background-color:#dce775!important;color:#000!important}.bg-lime-lighten-1{background-color:#d4e157!important;color:#000!important}.bg-lime-darken-1{background-color:#c0ca33!important;color:#000!important}.bg-lime-darken-2{background-color:#afb42b!important;color:#000!important}.bg-lime-darken-3{background-color:#9e9d24!important;color:#fff!important}.bg-lime-darken-4{background-color:#827717!important;color:#fff!important}.bg-lime-accent-1{background-color:#f4ff81!important;color:#000!important}.bg-lime-accent-2{background-color:#eeff41!important;color:#000!important}.bg-lime-accent-3{background-color:#c6ff00!important;color:#000!important}.bg-lime-accent-4{background-color:#aeea00!important;color:#000!important}.bg-yellow{background-color:#ffeb3b!important;color:#000!important}.bg-yellow-lighten-5{background-color:#fffde7!important;color:#000!important}.bg-yellow-lighten-4{background-color:#fff9c4!important;color:#000!important}.bg-yellow-lighten-3{background-color:#fff59d!important;color:#000!important}.bg-yellow-lighten-2{background-color:#fff176!important;color:#000!important}.bg-yellow-lighten-1{background-color:#ffee58!important;color:#000!important}.bg-yellow-darken-1{background-color:#fdd835!important;color:#000!important}.bg-yellow-darken-2{background-color:#fbc02d!important;color:#000!important}.bg-yellow-darken-3{background-color:#f9a825!important;color:#000!important}.bg-yellow-darken-4{background-color:#f57f17!important;color:#fff!important}.bg-yellow-accent-1{background-color:#ffff8d!important;color:#000!important}.bg-yellow-accent-2{background-color:#ff0!important;color:#000!important}.bg-yellow-accent-3{background-color:#ffea00!important;color:#000!important}.bg-yellow-accent-4{background-color:#ffd600!important;color:#000!important}.bg-amber{background-color:#ffc107!important;color:#000!important}.bg-amber-lighten-5{background-color:#fff8e1!important;color:#000!important}.bg-amber-lighten-4{background-color:#ffecb3!important;color:#000!important}.bg-amber-lighten-3{background-color:#ffe082!important;color:#000!important}.bg-amber-lighten-2{background-color:#ffd54f!important;color:#000!important}.bg-amber-lighten-1{background-color:#ffca28!important;color:#000!important}.bg-amber-darken-1{background-color:#ffb300!important;color:#000!important}.bg-amber-darken-2{background-color:#ffa000!important;color:#000!important}.bg-amber-darken-3{background-color:#ff8f00!important;color:#000!important}.bg-amber-darken-4{background-color:#ff6f00!important;color:#fff!important}.bg-amber-accent-1{background-color:#ffe57f!important;color:#000!important}.bg-amber-accent-2{background-color:#ffd740!important;color:#000!important}.bg-amber-accent-3{background-color:#ffc400!important;color:#000!important}.bg-amber-accent-4{background-color:#ffab00!important;color:#000!important}.bg-orange{background-color:#ff9800!important;color:#000!important}.bg-orange-lighten-5{background-color:#fff3e0!important;color:#000!important}.bg-orange-lighten-4{background-color:#ffe0b2!important;color:#000!important}.bg-orange-lighten-3{background-color:#ffcc80!important;color:#000!important}.bg-orange-lighten-2{background-color:#ffb74d!important;color:#000!important}.bg-orange-lighten-1{background-color:#ffa726!important;color:#000!important}.bg-orange-darken-1{background-color:#fb8c00!important;color:#fff!important}.bg-orange-darken-2{background-color:#f57c00!important;color:#fff!important}.bg-orange-darken-3{background-color:#ef6c00!important;color:#fff!important}.bg-orange-darken-4{background-color:#e65100!important;color:#fff!important}.bg-orange-accent-1{background-color:#ffd180!important;color:#000!important}.bg-orange-accent-2{background-color:#ffab40!important;color:#000!important}.bg-orange-accent-3{background-color:#ff9100!important;color:#000!important}.bg-orange-accent-4{background-color:#ff6d00!important;color:#fff!important}.bg-deep-orange{background-color:#ff5722!important;color:#fff!important}.bg-deep-orange-lighten-5{background-color:#fbe9e7!important;color:#000!important}.bg-deep-orange-lighten-4{background-color:#ffccbc!important;color:#000!important}.bg-deep-orange-lighten-3{background-color:#ffab91!important;color:#000!important}.bg-deep-orange-lighten-2{background-color:#ff8a65!important;color:#000!important}.bg-deep-orange-lighten-1{background-color:#ff7043!important;color:#fff!important}.bg-deep-orange-darken-1{background-color:#f4511e!important;color:#fff!important}.bg-deep-orange-darken-2{background-color:#e64a19!important;color:#fff!important}.bg-deep-orange-darken-3{background-color:#d84315!important;color:#fff!important}.bg-deep-orange-darken-4{background-color:#bf360c!important;color:#fff!important}.bg-deep-orange-accent-1{background-color:#ff9e80!important;color:#000!important}.bg-deep-orange-accent-2{background-color:#ff6e40!important;color:#fff!important}.bg-deep-orange-accent-3{background-color:#ff3d00!important;color:#fff!important}.bg-deep-orange-accent-4{background-color:#dd2c00!important;color:#fff!important}.bg-brown{background-color:#795548!important;color:#fff!important}.bg-brown-lighten-5{background-color:#efebe9!important;color:#000!important}.bg-brown-lighten-4{background-color:#d7ccc8!important;color:#000!important}.bg-brown-lighten-3{background-color:#bcaaa4!important;color:#000!important}.bg-brown-lighten-2{background-color:#a1887f!important;color:#fff!important}.bg-brown-lighten-1{background-color:#8d6e63!important;color:#fff!important}.bg-brown-darken-1{background-color:#6d4c41!important;color:#fff!important}.bg-brown-darken-2{background-color:#5d4037!important;color:#fff!important}.bg-brown-darken-3{background-color:#4e342e!important;color:#fff!important}.bg-brown-darken-4{background-color:#3e2723!important;color:#fff!important}.bg-blue-grey{background-color:#607d8b!important;color:#fff!important}.bg-blue-grey-lighten-5{background-color:#eceff1!important;color:#000!important}.bg-blue-grey-lighten-4{background-color:#cfd8dc!important;color:#000!important}.bg-blue-grey-lighten-3{background-color:#b0bec5!important;color:#000!important}.bg-blue-grey-lighten-2{background-color:#90a4ae!important;color:#fff!important}.bg-blue-grey-lighten-1{background-color:#78909c!important;color:#fff!important}.bg-blue-grey-darken-1{background-color:#546e7a!important;color:#fff!important}.bg-blue-grey-darken-2{background-color:#455a64!important;color:#fff!important}.bg-blue-grey-darken-3{background-color:#37474f!important;color:#fff!important}.bg-blue-grey-darken-4{background-color:#263238!important;color:#fff!important}.bg-grey{background-color:#9e9e9e!important;color:#fff!important}.bg-grey-lighten-5{background-color:#fafafa!important;color:#000!important}.bg-grey-lighten-4{background-color:#f5f5f5!important;color:#000!important}.bg-grey-lighten-3{background-color:#eee!important;color:#000!important}.bg-grey-lighten-2{background-color:#e0e0e0!important;color:#000!important}.bg-grey-lighten-1{background-color:#bdbdbd!important;color:#000!important}.bg-grey-darken-1{background-color:#757575!important;color:#fff!important}.bg-grey-darken-2{background-color:#616161!important;color:#fff!important}.bg-grey-darken-3{background-color:#424242!important;color:#fff!important}.bg-grey-darken-4{background-color:#212121!important;color:#fff!important}.bg-shades-black{background-color:#000!important;color:#fff!important}.bg-shades-white{background-color:#fff!important;color:#000!important}.bg-shades-transparent{background-color:transparent!important;color:currentColor!important}.text-black{color:#000!important}.text-white{color:#fff!important}.text-transparent{color:transparent!important}.text-red{color:#f44336!important}.text-red-lighten-5{color:#ffebee!important}.text-red-lighten-4{color:#ffcdd2!important}.text-red-lighten-3{color:#ef9a9a!important}.text-red-lighten-2{color:#e57373!important}.text-red-lighten-1{color:#ef5350!important}.text-red-darken-1{color:#e53935!important}.text-red-darken-2{color:#d32f2f!important}.text-red-darken-3{color:#c62828!important}.text-red-darken-4{color:#b71c1c!important}.text-red-accent-1{color:#ff8a80!important}.text-red-accent-2{color:#ff5252!important}.text-red-accent-3{color:#ff1744!important}.text-red-accent-4{color:#d50000!important}.text-pink{color:#e91e63!important}.text-pink-lighten-5{color:#fce4ec!important}.text-pink-lighten-4{color:#f8bbd0!important}.text-pink-lighten-3{color:#f48fb1!important}.text-pink-lighten-2{color:#f06292!important}.text-pink-lighten-1{color:#ec407a!important}.text-pink-darken-1{color:#d81b60!important}.text-pink-darken-2{color:#c2185b!important}.text-pink-darken-3{color:#ad1457!important}.text-pink-darken-4{color:#880e4f!important}.text-pink-accent-1{color:#ff80ab!important}.text-pink-accent-2{color:#ff4081!important}.text-pink-accent-3{color:#f50057!important}.text-pink-accent-4{color:#c51162!important}.text-purple{color:#9c27b0!important}.text-purple-lighten-5{color:#f3e5f5!important}.text-purple-lighten-4{color:#e1bee7!important}.text-purple-lighten-3{color:#ce93d8!important}.text-purple-lighten-2{color:#ba68c8!important}.text-purple-lighten-1{color:#ab47bc!important}.text-purple-darken-1{color:#8e24aa!important}.text-purple-darken-2{color:#7b1fa2!important}.text-purple-darken-3{color:#6a1b9a!important}.text-purple-darken-4{color:#4a148c!important}.text-purple-accent-1{color:#ea80fc!important}.text-purple-accent-2{color:#e040fb!important}.text-purple-accent-3{color:#d500f9!important}.text-purple-accent-4{color:#a0f!important}.text-deep-purple{color:#673ab7!important}.text-deep-purple-lighten-5{color:#ede7f6!important}.text-deep-purple-lighten-4{color:#d1c4e9!important}.text-deep-purple-lighten-3{color:#b39ddb!important}.text-deep-purple-lighten-2{color:#9575cd!important}.text-deep-purple-lighten-1{color:#7e57c2!important}.text-deep-purple-darken-1{color:#5e35b1!important}.text-deep-purple-darken-2{color:#512da8!important}.text-deep-purple-darken-3{color:#4527a0!important}.text-deep-purple-darken-4{color:#311b92!important}.text-deep-purple-accent-1{color:#b388ff!important}.text-deep-purple-accent-2{color:#7c4dff!important}.text-deep-purple-accent-3{color:#651fff!important}.text-deep-purple-accent-4{color:#6200ea!important}.text-indigo{color:#3f51b5!important}.text-indigo-lighten-5{color:#e8eaf6!important}.text-indigo-lighten-4{color:#c5cae9!important}.text-indigo-lighten-3{color:#9fa8da!important}.text-indigo-lighten-2{color:#7986cb!important}.text-indigo-lighten-1{color:#5c6bc0!important}.text-indigo-darken-1{color:#3949ab!important}.text-indigo-darken-2{color:#303f9f!important}.text-indigo-darken-3{color:#283593!important}.text-indigo-darken-4{color:#1a237e!important}.text-indigo-accent-1{color:#8c9eff!important}.text-indigo-accent-2{color:#536dfe!important}.text-indigo-accent-3{color:#3d5afe!important}.text-indigo-accent-4{color:#304ffe!important}.text-blue{color:#2196f3!important}.text-blue-lighten-5{color:#e3f2fd!important}.text-blue-lighten-4{color:#bbdefb!important}.text-blue-lighten-3{color:#90caf9!important}.text-blue-lighten-2{color:#64b5f6!important}.text-blue-lighten-1{color:#42a5f5!important}.text-blue-darken-1{color:#1e88e5!important}.text-blue-darken-2{color:#1976d2!important}.text-blue-darken-3{color:#1565c0!important}.text-blue-darken-4{color:#0d47a1!important}.text-blue-accent-1{color:#82b1ff!important}.text-blue-accent-2{color:#448aff!important}.text-blue-accent-3{color:#2979ff!important}.text-blue-accent-4{color:#2962ff!important}.text-light-blue{color:#03a9f4!important}.text-light-blue-lighten-5{color:#e1f5fe!important}.text-light-blue-lighten-4{color:#b3e5fc!important}.text-light-blue-lighten-3{color:#81d4fa!important}.text-light-blue-lighten-2{color:#4fc3f7!important}.text-light-blue-lighten-1{color:#29b6f6!important}.text-light-blue-darken-1{color:#039be5!important}.text-light-blue-darken-2{color:#0288d1!important}.text-light-blue-darken-3{color:#0277bd!important}.text-light-blue-darken-4{color:#01579b!important}.text-light-blue-accent-1{color:#80d8ff!important}.text-light-blue-accent-2{color:#40c4ff!important}.text-light-blue-accent-3{color:#00b0ff!important}.text-light-blue-accent-4{color:#0091ea!important}.text-cyan{color:#00bcd4!important}.text-cyan-lighten-5{color:#e0f7fa!important}.text-cyan-lighten-4{color:#b2ebf2!important}.text-cyan-lighten-3{color:#80deea!important}.text-cyan-lighten-2{color:#4dd0e1!important}.text-cyan-lighten-1{color:#26c6da!important}.text-cyan-darken-1{color:#00acc1!important}.text-cyan-darken-2{color:#0097a7!important}.text-cyan-darken-3{color:#00838f!important}.text-cyan-darken-4{color:#006064!important}.text-cyan-accent-1{color:#84ffff!important}.text-cyan-accent-2{color:#18ffff!important}.text-cyan-accent-3{color:#00e5ff!important}.text-cyan-accent-4{color:#00b8d4!important}.text-teal{color:#009688!important}.text-teal-lighten-5{color:#e0f2f1!important}.text-teal-lighten-4{color:#b2dfdb!important}.text-teal-lighten-3{color:#80cbc4!important}.text-teal-lighten-2{color:#4db6ac!important}.text-teal-lighten-1{color:#26a69a!important}.text-teal-darken-1{color:#00897b!important}.text-teal-darken-2{color:#00796b!important}.text-teal-darken-3{color:#00695c!important}.text-teal-darken-4{color:#004d40!important}.text-teal-accent-1{color:#a7ffeb!important}.text-teal-accent-2{color:#64ffda!important}.text-teal-accent-3{color:#1de9b6!important}.text-teal-accent-4{color:#00bfa5!important}.text-green{color:#4caf50!important}.text-green-lighten-5{color:#e8f5e9!important}.text-green-lighten-4{color:#c8e6c9!important}.text-green-lighten-3{color:#a5d6a7!important}.text-green-lighten-2{color:#81c784!important}.text-green-lighten-1{color:#66bb6a!important}.text-green-darken-1{color:#43a047!important}.text-green-darken-2{color:#388e3c!important}.text-green-darken-3{color:#2e7d32!important}.text-green-darken-4{color:#1b5e20!important}.text-green-accent-1{color:#b9f6ca!important}.text-green-accent-2{color:#69f0ae!important}.text-green-accent-3{color:#00e676!important}.text-green-accent-4{color:#00c853!important}.text-light-green{color:#8bc34a!important}.text-light-green-lighten-5{color:#f1f8e9!important}.text-light-green-lighten-4{color:#dcedc8!important}.text-light-green-lighten-3{color:#c5e1a5!important}.text-light-green-lighten-2{color:#aed581!important}.text-light-green-lighten-1{color:#9ccc65!important}.text-light-green-darken-1{color:#7cb342!important}.text-light-green-darken-2{color:#689f38!important}.text-light-green-darken-3{color:#558b2f!important}.text-light-green-darken-4{color:#33691e!important}.text-light-green-accent-1{color:#ccff90!important}.text-light-green-accent-2{color:#b2ff59!important}.text-light-green-accent-3{color:#76ff03!important}.text-light-green-accent-4{color:#64dd17!important}.text-lime{color:#cddc39!important}.text-lime-lighten-5{color:#f9fbe7!important}.text-lime-lighten-4{color:#f0f4c3!important}.text-lime-lighten-3{color:#e6ee9c!important}.text-lime-lighten-2{color:#dce775!important}.text-lime-lighten-1{color:#d4e157!important}.text-lime-darken-1{color:#c0ca33!important}.text-lime-darken-2{color:#afb42b!important}.text-lime-darken-3{color:#9e9d24!important}.text-lime-darken-4{color:#827717!important}.text-lime-accent-1{color:#f4ff81!important}.text-lime-accent-2{color:#eeff41!important}.text-lime-accent-3{color:#c6ff00!important}.text-lime-accent-4{color:#aeea00!important}.text-yellow{color:#ffeb3b!important}.text-yellow-lighten-5{color:#fffde7!important}.text-yellow-lighten-4{color:#fff9c4!important}.text-yellow-lighten-3{color:#fff59d!important}.text-yellow-lighten-2{color:#fff176!important}.text-yellow-lighten-1{color:#ffee58!important}.text-yellow-darken-1{color:#fdd835!important}.text-yellow-darken-2{color:#fbc02d!important}.text-yellow-darken-3{color:#f9a825!important}.text-yellow-darken-4{color:#f57f17!important}.text-yellow-accent-1{color:#ffff8d!important}.text-yellow-accent-2{color:#ff0!important}.text-yellow-accent-3{color:#ffea00!important}.text-yellow-accent-4{color:#ffd600!important}.text-amber{color:#ffc107!important}.text-amber-lighten-5{color:#fff8e1!important}.text-amber-lighten-4{color:#ffecb3!important}.text-amber-lighten-3{color:#ffe082!important}.text-amber-lighten-2{color:#ffd54f!important}.text-amber-lighten-1{color:#ffca28!important}.text-amber-darken-1{color:#ffb300!important}.text-amber-darken-2{color:#ffa000!important}.text-amber-darken-3{color:#ff8f00!important}.text-amber-darken-4{color:#ff6f00!important}.text-amber-accent-1{color:#ffe57f!important}.text-amber-accent-2{color:#ffd740!important}.text-amber-accent-3{color:#ffc400!important}.text-amber-accent-4{color:#ffab00!important}.text-orange{color:#ff9800!important}.text-orange-lighten-5{color:#fff3e0!important}.text-orange-lighten-4{color:#ffe0b2!important}.text-orange-lighten-3{color:#ffcc80!important}.text-orange-lighten-2{color:#ffb74d!important}.text-orange-lighten-1{color:#ffa726!important}.text-orange-darken-1{color:#fb8c00!important}.text-orange-darken-2{color:#f57c00!important}.text-orange-darken-3{color:#ef6c00!important}.text-orange-darken-4{color:#e65100!important}.text-orange-accent-1{color:#ffd180!important}.text-orange-accent-2{color:#ffab40!important}.text-orange-accent-3{color:#ff9100!important}.text-orange-accent-4{color:#ff6d00!important}.text-deep-orange{color:#ff5722!important}.text-deep-orange-lighten-5{color:#fbe9e7!important}.text-deep-orange-lighten-4{color:#ffccbc!important}.text-deep-orange-lighten-3{color:#ffab91!important}.text-deep-orange-lighten-2{color:#ff8a65!important}.text-deep-orange-lighten-1{color:#ff7043!important}.text-deep-orange-darken-1{color:#f4511e!important}.text-deep-orange-darken-2{color:#e64a19!important}.text-deep-orange-darken-3{color:#d84315!important}.text-deep-orange-darken-4{color:#bf360c!important}.text-deep-orange-accent-1{color:#ff9e80!important}.text-deep-orange-accent-2{color:#ff6e40!important}.text-deep-orange-accent-3{color:#ff3d00!important}.text-deep-orange-accent-4{color:#dd2c00!important}.text-brown{color:#795548!important}.text-brown-lighten-5{color:#efebe9!important}.text-brown-lighten-4{color:#d7ccc8!important}.text-brown-lighten-3{color:#bcaaa4!important}.text-brown-lighten-2{color:#a1887f!important}.text-brown-lighten-1{color:#8d6e63!important}.text-brown-darken-1{color:#6d4c41!important}.text-brown-darken-2{color:#5d4037!important}.text-brown-darken-3{color:#4e342e!important}.text-brown-darken-4{color:#3e2723!important}.text-blue-grey{color:#607d8b!important}.text-blue-grey-lighten-5{color:#eceff1!important}.text-blue-grey-lighten-4{color:#cfd8dc!important}.text-blue-grey-lighten-3{color:#b0bec5!important}.text-blue-grey-lighten-2{color:#90a4ae!important}.text-blue-grey-lighten-1{color:#78909c!important}.text-blue-grey-darken-1{color:#546e7a!important}.text-blue-grey-darken-2{color:#455a64!important}.text-blue-grey-darken-3{color:#37474f!important}.text-blue-grey-darken-4{color:#263238!important}.text-grey{color:#9e9e9e!important}.text-grey-lighten-5{color:#fafafa!important}.text-grey-lighten-4{color:#f5f5f5!important}.text-grey-lighten-3{color:#eee!important}.text-grey-lighten-2{color:#e0e0e0!important}.text-grey-lighten-1{color:#bdbdbd!important}.text-grey-darken-1{color:#757575!important}.text-grey-darken-2{color:#616161!important}.text-grey-darken-3{color:#424242!important}.text-grey-darken-4{color:#212121!important}.text-shades-black{color:#000!important}.text-shades-white{color:#fff!important}.text-shades-transparent{color:transparent!important}/*! * ress.css • v2.0.4 * MIT License * github.com/filipelinhares/ress diff --git a/zt_backend/dist_dev/assets/index-f89dedf6.js b/zt_backend/dist_dev/assets/index-f89dedf6.js deleted file mode 100644 index 43a3b6d7..00000000 --- a/zt_backend/dist_dev/assets/index-f89dedf6.js +++ /dev/null @@ -1,1608 +0,0 @@ -var Kie=Object.defineProperty;var Xie=(o,b,y)=>b in o?Kie(o,b,{enumerable:!0,configurable:!0,writable:!0,value:y}):o[b]=y;var pl=(o,b,y)=>(Xie(o,typeof b!="symbol"?b+"":b,y),y),Jie=(o,b,y)=>{if(!b.has(o))throw TypeError("Cannot "+y)};var DJ=(o,b,y)=>{if(b.has(o))throw TypeError("Cannot add the same private member more than once");b instanceof WeakSet?b.add(o):b.set(o,y)};var zF=(o,b,y)=>(Jie(o,b,"access private method"),y);(function(){const b=document.createElement("link").relList;if(b&&b.supports&&b.supports("modulepreload"))return;for(const G of document.querySelectorAll('link[rel="modulepreload"]'))T(G);new MutationObserver(G=>{for(const V of G)if(V.type==="childList")for(const L of V.addedNodes)L.tagName==="LINK"&&L.rel==="modulepreload"&&T(L)}).observe(document,{childList:!0,subtree:!0});function y(G){const V={};return G.integrity&&(V.integrity=G.integrity),G.referrerPolicy&&(V.referrerPolicy=G.referrerPolicy),G.crossOrigin==="use-credentials"?V.credentials="include":G.crossOrigin==="anonymous"?V.credentials="omit":V.credentials="same-origin",V}function T(G){if(G.ep)return;G.ep=!0;const V=y(G);fetch(G.href,V)}})();function Ure(o,b){return function(){return o.apply(b,arguments)}}const{toString:Qie}=Object.prototype,{getPrototypeOf:NQ}=Object,IB=(o=>b=>{const y=Qie.call(b);return o[y]||(o[y]=y.slice(8,-1).toLowerCase())})(Object.create(null)),E0=o=>(o=o.toLowerCase(),b=>IB(b)===o),NB=o=>b=>typeof b===o,{isArray:LE}=Array,E6=NB("undefined");function qie(o){return o!==null&&!E6(o)&&o.constructor!==null&&!E6(o.constructor)&&pg(o.constructor.isBuffer)&&o.constructor.isBuffer(o)}const Wre=E0("ArrayBuffer");function ele(o){let b;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?b=ArrayBuffer.isView(o):b=o&&o.buffer&&Wre(o.buffer),b}const tle=NB("string"),pg=NB("function"),Gre=NB("number"),FB=o=>o!==null&&typeof o=="object",nle=o=>o===!0||o===!1,tB=o=>{if(IB(o)!=="object")return!1;const b=NQ(o);return(b===null||b===Object.prototype||Object.getPrototypeOf(b)===null)&&!(Symbol.toStringTag in o)&&!(Symbol.iterator in o)},rle=E0("Date"),ole=E0("File"),ale=E0("Blob"),sle=E0("FileList"),ile=o=>FB(o)&&pg(o.pipe),lle=o=>{let b;return o&&(typeof FormData=="function"&&o instanceof FormData||pg(o.append)&&((b=IB(o))==="formdata"||b==="object"&&pg(o.toString)&&o.toString()==="[object FormData]"))},cle=E0("URLSearchParams"),ule=o=>o.trim?o.trim():o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function W6(o,b,{allOwnKeys:y=!1}={}){if(o===null||typeof o>"u")return;let T,G;if(typeof o!="object"&&(o=[o]),LE(o))for(T=0,G=o.length;T0;)if(G=y[T],b===G.toLowerCase())return G;return null}const jre=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Yre=o=>!E6(o)&&o!==jre;function tQ(){const{caseless:o}=Yre(this)&&this||{},b={},y=(T,G)=>{const V=o&&Zre(b,G)||G;tB(b[V])&&tB(T)?b[V]=tQ(b[V],T):tB(T)?b[V]=tQ({},T):LE(T)?b[V]=T.slice():b[V]=T};for(let T=0,G=arguments.length;T(W6(b,(G,V)=>{y&&pg(G)?o[V]=Ure(G,y):o[V]=G},{allOwnKeys:T}),o),dle=o=>(o.charCodeAt(0)===65279&&(o=o.slice(1)),o),hle=(o,b,y,T)=>{o.prototype=Object.create(b.prototype,T),o.prototype.constructor=o,Object.defineProperty(o,"super",{value:b.prototype}),y&&Object.assign(o.prototype,y)},mle=(o,b,y,T)=>{let G,V,L;const A={};if(b=b||{},o==null)return b;do{for(G=Object.getOwnPropertyNames(o),V=G.length;V-- >0;)L=G[V],(!T||T(L,o,b))&&!A[L]&&(b[L]=o[L],A[L]=!0);o=y!==!1&&NQ(o)}while(o&&(!y||y(o,b))&&o!==Object.prototype);return b},gle=(o,b,y)=>{o=String(o),(y===void 0||y>o.length)&&(y=o.length),y-=b.length;const T=o.indexOf(b,y);return T!==-1&&T===y},ple=o=>{if(!o)return null;if(LE(o))return o;let b=o.length;if(!Gre(b))return null;const y=new Array(b);for(;b-- >0;)y[b]=o[b];return y},vle=(o=>b=>o&&b instanceof o)(typeof Uint8Array<"u"&&NQ(Uint8Array)),yle=(o,b)=>{const T=(o&&o[Symbol.iterator]).call(o);let G;for(;(G=T.next())&&!G.done;){const V=G.value;b.call(o,V[0],V[1])}},ble=(o,b)=>{let y;const T=[];for(;(y=o.exec(b))!==null;)T.push(y);return T},xle=E0("HTMLFormElement"),wle=o=>o.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(y,T,G){return T.toUpperCase()+G}),Ite=(({hasOwnProperty:o})=>(b,y)=>o.call(b,y))(Object.prototype),Cle=E0("RegExp"),Kre=(o,b)=>{const y=Object.getOwnPropertyDescriptors(o),T={};W6(y,(G,V)=>{let L;(L=b(G,V,o))!==!1&&(T[V]=L||G)}),Object.defineProperties(o,T)},Sle=o=>{Kre(o,(b,y)=>{if(pg(o)&&["arguments","caller","callee"].indexOf(y)!==-1)return!1;const T=o[y];if(pg(T)){if(b.enumerable=!1,"writable"in b){b.writable=!1;return}b.set||(b.set=()=>{throw Error("Can not rewrite read-only method '"+y+"'")})}})},Tle=(o,b)=>{const y={},T=G=>{G.forEach(V=>{y[V]=!0})};return LE(o)?T(o):T(String(o).split(b)),y},kle=()=>{},Ale=(o,b)=>(o=+o,Number.isFinite(o)?o:b),$J="abcdefghijklmnopqrstuvwxyz",Nte="0123456789",Xre={DIGIT:Nte,ALPHA:$J,ALPHA_DIGIT:$J+$J.toUpperCase()+Nte},Mle=(o=16,b=Xre.ALPHA_DIGIT)=>{let y="";const{length:T}=b;for(;o--;)y+=b[Math.random()*T|0];return y};function Ele(o){return!!(o&&pg(o.append)&&o[Symbol.toStringTag]==="FormData"&&o[Symbol.iterator])}const _le=o=>{const b=new Array(10),y=(T,G)=>{if(FB(T)){if(b.indexOf(T)>=0)return;if(!("toJSON"in T)){b[G]=T;const V=LE(T)?[]:{};return W6(T,(L,A)=>{const s=y(L,G+1);!E6(s)&&(V[A]=s)}),b[G]=void 0,V}}return T};return y(o,0)},Rle=E0("AsyncFunction"),Lle=o=>o&&(FB(o)||pg(o))&&pg(o.then)&&pg(o.catch),Pr={isArray:LE,isArrayBuffer:Wre,isBuffer:qie,isFormData:lle,isArrayBufferView:ele,isString:tle,isNumber:Gre,isBoolean:nle,isObject:FB,isPlainObject:tB,isUndefined:E6,isDate:rle,isFile:ole,isBlob:ale,isRegExp:Cle,isFunction:pg,isStream:ile,isURLSearchParams:cle,isTypedArray:vle,isFileList:sle,forEach:W6,merge:tQ,extend:fle,trim:ule,stripBOM:dle,inherits:hle,toFlatObject:mle,kindOf:IB,kindOfTest:E0,endsWith:gle,toArray:ple,forEachEntry:yle,matchAll:ble,isHTMLForm:xle,hasOwnProperty:Ite,hasOwnProp:Ite,reduceDescriptors:Kre,freezeMethods:Sle,toObjectSet:Tle,toCamelCase:wle,noop:kle,toFiniteNumber:Ale,findKey:Zre,global:jre,isContextDefined:Yre,ALPHABET:Xre,generateString:Mle,isSpecCompliantForm:Ele,toJSONObject:_le,isAsyncFn:Rle,isThenable:Lle};function Zs(o,b,y,T,G){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",b&&(this.code=b),y&&(this.config=y),T&&(this.request=T),G&&(this.response=G)}Pr.inherits(Zs,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Pr.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Jre=Zs.prototype,Qre={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(o=>{Qre[o]={value:o}});Object.defineProperties(Zs,Qre);Object.defineProperty(Jre,"isAxiosError",{value:!0});Zs.from=(o,b,y,T,G,V)=>{const L=Object.create(Jre);return Pr.toFlatObject(o,L,function(s){return s!==Error.prototype},A=>A!=="isAxiosError"),Zs.call(L,o.message,b,y,T,G),L.cause=o,L.name=o.name,V&&Object.assign(L,V),L};const Dle=null;function nQ(o){return Pr.isPlainObject(o)||Pr.isArray(o)}function qre(o){return Pr.endsWith(o,"[]")?o.slice(0,-2):o}function Fte(o,b,y){return o?o.concat(b).map(function(G,V){return G=qre(G),!y&&V?"["+G+"]":G}).join(y?".":""):b}function $le(o){return Pr.isArray(o)&&!o.some(nQ)}const Ole=Pr.toFlatObject(Pr,{},null,function(b){return/^is[A-Z]/.test(b)});function BB(o,b,y){if(!Pr.isObject(o))throw new TypeError("target must be an object");b=b||new FormData,y=Pr.toFlatObject(y,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,g){return!Pr.isUndefined(g[d])});const T=y.metaTokens,G=y.visitor||h,V=y.dots,L=y.indexes,s=(y.Blob||typeof Blob<"u"&&Blob)&&Pr.isSpecCompliantForm(b);if(!Pr.isFunction(G))throw new TypeError("visitor must be a function");function m(u){if(u===null)return"";if(Pr.isDate(u))return u.toISOString();if(!s&&Pr.isBlob(u))throw new Zs("Blob is not supported. Use a Buffer instead.");return Pr.isArrayBuffer(u)||Pr.isTypedArray(u)?s&&typeof Blob=="function"?new Blob([u]):Buffer.from(u):u}function h(u,d,g){let v=u;if(u&&!g&&typeof u=="object"){if(Pr.endsWith(d,"{}"))d=T?d:d.slice(0,-2),u=JSON.stringify(u);else if(Pr.isArray(u)&&$le(u)||(Pr.isFileList(u)||Pr.endsWith(d,"[]"))&&(v=Pr.toArray(u)))return d=qre(d),v.forEach(function(C,_){!(Pr.isUndefined(C)||C===null)&&b.append(L===!0?Fte([d],_,V):L===null?d:d+"[]",m(C))}),!1}return nQ(u)?!0:(b.append(Fte(g,d,V),m(u)),!1)}const l=[],c=Object.assign(Ole,{defaultVisitor:h,convertValue:m,isVisitable:nQ});function i(u,d){if(!Pr.isUndefined(u)){if(l.indexOf(u)!==-1)throw Error("Circular reference detected in "+d.join("."));l.push(u),Pr.forEach(u,function(v,x){(!(Pr.isUndefined(v)||v===null)&&G.call(b,v,Pr.isString(x)?x.trim():x,d,c))===!0&&i(v,d?d.concat(x):[x])}),l.pop()}}if(!Pr.isObject(o))throw new TypeError("data must be an object");return i(o),b}function Bte(o){const b={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'()~]|%20|%00/g,function(T){return b[T]})}function FQ(o,b){this._pairs=[],o&&BB(o,this,b)}const eoe=FQ.prototype;eoe.append=function(b,y){this._pairs.push([b,y])};eoe.toString=function(b){const y=b?function(T){return b.call(this,T,Bte)}:Bte;return this._pairs.map(function(G){return y(G[0])+"="+y(G[1])},"").join("&")};function Ple(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function toe(o,b,y){if(!b)return o;const T=y&&y.encode||Ple,G=y&&y.serialize;let V;if(G?V=G(b,y):V=Pr.isURLSearchParams(b)?b.toString():new FQ(b,y).toString(T),V){const L=o.indexOf("#");L!==-1&&(o=o.slice(0,L)),o+=(o.indexOf("?")===-1?"?":"&")+V}return o}class Ile{constructor(){this.handlers=[]}use(b,y,T){return this.handlers.push({fulfilled:b,rejected:y,synchronous:T?T.synchronous:!1,runWhen:T?T.runWhen:null}),this.handlers.length-1}eject(b){this.handlers[b]&&(this.handlers[b]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(b){Pr.forEach(this.handlers,function(T){T!==null&&b(T)})}}const Hte=Ile,noe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nle=typeof URLSearchParams<"u"?URLSearchParams:FQ,Fle=typeof FormData<"u"?FormData:null,Ble=typeof Blob<"u"?Blob:null,Hle={isBrowser:!0,classes:{URLSearchParams:Nle,FormData:Fle,Blob:Ble},protocols:["http","https","file","blob","url","data"]},roe=typeof window<"u"&&typeof document<"u",zle=(o=>roe&&["ReactNative","NativeScript","NS"].indexOf(o)<0)(typeof navigator<"u"&&navigator.product),Vle=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ule=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:roe,hasStandardBrowserEnv:zle,hasStandardBrowserWebWorkerEnv:Vle},Symbol.toStringTag,{value:"Module"})),w0={...Ule,...Hle};function Wle(o,b){return BB(o,new w0.classes.URLSearchParams,Object.assign({visitor:function(y,T,G,V){return w0.isNode&&Pr.isBuffer(y)?(this.append(T,y.toString("base64")),!1):V.defaultVisitor.apply(this,arguments)}},b))}function Gle(o){return Pr.matchAll(/\w+|\[(\w*)]/g,o).map(b=>b[0]==="[]"?"":b[1]||b[0])}function Zle(o){const b={},y=Object.keys(o);let T;const G=y.length;let V;for(T=0;T=y.length;return L=!L&&Pr.isArray(G)?G.length:L,s?(Pr.hasOwnProp(G,L)?G[L]=[G[L],T]:G[L]=T,!A):((!G[L]||!Pr.isObject(G[L]))&&(G[L]=[]),b(y,T,G[L],V)&&Pr.isArray(G[L])&&(G[L]=Zle(G[L])),!A)}if(Pr.isFormData(o)&&Pr.isFunction(o.entries)){const y={};return Pr.forEachEntry(o,(T,G)=>{b(Gle(T),G,y,0)}),y}return null}function jle(o,b,y){if(Pr.isString(o))try{return(b||JSON.parse)(o),Pr.trim(o)}catch(T){if(T.name!=="SyntaxError")throw T}return(y||JSON.stringify)(o)}const BQ={transitional:noe,adapter:["xhr","http"],transformRequest:[function(b,y){const T=y.getContentType()||"",G=T.indexOf("application/json")>-1,V=Pr.isObject(b);if(V&&Pr.isHTMLForm(b)&&(b=new FormData(b)),Pr.isFormData(b))return G&&G?JSON.stringify(ooe(b)):b;if(Pr.isArrayBuffer(b)||Pr.isBuffer(b)||Pr.isStream(b)||Pr.isFile(b)||Pr.isBlob(b))return b;if(Pr.isArrayBufferView(b))return b.buffer;if(Pr.isURLSearchParams(b))return y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),b.toString();let A;if(V){if(T.indexOf("application/x-www-form-urlencoded")>-1)return Wle(b,this.formSerializer).toString();if((A=Pr.isFileList(b))||T.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return BB(A?{"files[]":b}:b,s&&new s,this.formSerializer)}}return V||G?(y.setContentType("application/json",!1),jle(b)):b}],transformResponse:[function(b){const y=this.transitional||BQ.transitional,T=y&&y.forcedJSONParsing,G=this.responseType==="json";if(b&&Pr.isString(b)&&(T&&!this.responseType||G)){const L=!(y&&y.silentJSONParsing)&&G;try{return JSON.parse(b)}catch(A){if(L)throw A.name==="SyntaxError"?Zs.from(A,Zs.ERR_BAD_RESPONSE,this,null,this.response):A}}return b}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:w0.classes.FormData,Blob:w0.classes.Blob},validateStatus:function(b){return b>=200&&b<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Pr.forEach(["delete","get","head","post","put","patch"],o=>{BQ.headers[o]={}});const HQ=BQ,Yle=Pr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kle=o=>{const b={};let y,T,G;return o&&o.split(` -`).forEach(function(L){G=L.indexOf(":"),y=L.substring(0,G).trim().toLowerCase(),T=L.substring(G+1).trim(),!(!y||b[y]&&Yle[y])&&(y==="set-cookie"?b[y]?b[y].push(T):b[y]=[T]:b[y]=b[y]?b[y]+", "+T:T)}),b},zte=Symbol("internals");function p6(o){return o&&String(o).trim().toLowerCase()}function nB(o){return o===!1||o==null?o:Pr.isArray(o)?o.map(nB):String(o)}function Xle(o){const b=Object.create(null),y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let T;for(;T=y.exec(o);)b[T[1]]=T[2];return b}const Jle=o=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());function OJ(o,b,y,T,G){if(Pr.isFunction(T))return T.call(this,b,y);if(G&&(b=y),!!Pr.isString(b)){if(Pr.isString(T))return b.indexOf(T)!==-1;if(Pr.isRegExp(T))return T.test(b)}}function Qle(o){return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(b,y,T)=>y.toUpperCase()+T)}function qle(o,b){const y=Pr.toCamelCase(" "+b);["get","set","has"].forEach(T=>{Object.defineProperty(o,T+y,{value:function(G,V,L){return this[T].call(this,b,G,V,L)},configurable:!0})})}class HB{constructor(b){b&&this.set(b)}set(b,y,T){const G=this;function V(A,s,m){const h=p6(s);if(!h)throw new Error("header name must be a non-empty string");const l=Pr.findKey(G,h);(!l||G[l]===void 0||m===!0||m===void 0&&G[l]!==!1)&&(G[l||s]=nB(A))}const L=(A,s)=>Pr.forEach(A,(m,h)=>V(m,h,s));return Pr.isPlainObject(b)||b instanceof this.constructor?L(b,y):Pr.isString(b)&&(b=b.trim())&&!Jle(b)?L(Kle(b),y):b!=null&&V(y,b,T),this}get(b,y){if(b=p6(b),b){const T=Pr.findKey(this,b);if(T){const G=this[T];if(!y)return G;if(y===!0)return Xle(G);if(Pr.isFunction(y))return y.call(this,G,T);if(Pr.isRegExp(y))return y.exec(G);throw new TypeError("parser must be boolean|regexp|function")}}}has(b,y){if(b=p6(b),b){const T=Pr.findKey(this,b);return!!(T&&this[T]!==void 0&&(!y||OJ(this,this[T],T,y)))}return!1}delete(b,y){const T=this;let G=!1;function V(L){if(L=p6(L),L){const A=Pr.findKey(T,L);A&&(!y||OJ(T,T[A],A,y))&&(delete T[A],G=!0)}}return Pr.isArray(b)?b.forEach(V):V(b),G}clear(b){const y=Object.keys(this);let T=y.length,G=!1;for(;T--;){const V=y[T];(!b||OJ(this,this[V],V,b,!0))&&(delete this[V],G=!0)}return G}normalize(b){const y=this,T={};return Pr.forEach(this,(G,V)=>{const L=Pr.findKey(T,V);if(L){y[L]=nB(G),delete y[V];return}const A=b?Qle(V):String(V).trim();A!==V&&delete y[V],y[A]=nB(G),T[A]=!0}),this}concat(...b){return this.constructor.concat(this,...b)}toJSON(b){const y=Object.create(null);return Pr.forEach(this,(T,G)=>{T!=null&&T!==!1&&(y[G]=b&&Pr.isArray(T)?T.join(", "):T)}),y}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([b,y])=>b+": "+y).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(b){return b instanceof this?b:new this(b)}static concat(b,...y){const T=new this(b);return y.forEach(G=>T.set(G)),T}static accessor(b){const T=(this[zte]=this[zte]={accessors:{}}).accessors,G=this.prototype;function V(L){const A=p6(L);T[A]||(qle(G,L),T[A]=!0)}return Pr.isArray(b)?b.forEach(V):V(b),this}}HB.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Pr.reduceDescriptors(HB.prototype,({value:o},b)=>{let y=b[0].toUpperCase()+b.slice(1);return{get:()=>o,set(T){this[y]=T}}});Pr.freezeMethods(HB);const Ny=HB;function PJ(o,b){const y=this||HQ,T=b||y,G=Ny.from(T.headers);let V=T.data;return Pr.forEach(o,function(A){V=A.call(y,V,G.normalize(),b?b.status:void 0)}),G.normalize(),V}function aoe(o){return!!(o&&o.__CANCEL__)}function G6(o,b,y){Zs.call(this,o??"canceled",Zs.ERR_CANCELED,b,y),this.name="CanceledError"}Pr.inherits(G6,Zs,{__CANCEL__:!0});function ece(o,b,y){const T=y.config.validateStatus;!y.status||!T||T(y.status)?o(y):b(new Zs("Request failed with status code "+y.status,[Zs.ERR_BAD_REQUEST,Zs.ERR_BAD_RESPONSE][Math.floor(y.status/100)-4],y.config,y.request,y))}const tce=w0.hasStandardBrowserEnv?{write(o,b,y,T,G,V){const L=[o+"="+encodeURIComponent(b)];Pr.isNumber(y)&&L.push("expires="+new Date(y).toGMTString()),Pr.isString(T)&&L.push("path="+T),Pr.isString(G)&&L.push("domain="+G),V===!0&&L.push("secure"),document.cookie=L.join("; ")},read(o){const b=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return b?decodeURIComponent(b[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function nce(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function rce(o,b){return b?o.replace(/\/+$/,"")+"/"+b.replace(/^\/+/,""):o}function soe(o,b){return o&&!nce(b)?rce(o,b):b}const oce=w0.hasStandardBrowserEnv?function(){const b=/(msie|trident)/i.test(navigator.userAgent),y=document.createElement("a");let T;function G(V){let L=V;return b&&(y.setAttribute("href",L),L=y.href),y.setAttribute("href",L),{href:y.href,protocol:y.protocol?y.protocol.replace(/:$/,""):"",host:y.host,search:y.search?y.search.replace(/^\?/,""):"",hash:y.hash?y.hash.replace(/^#/,""):"",hostname:y.hostname,port:y.port,pathname:y.pathname.charAt(0)==="/"?y.pathname:"/"+y.pathname}}return T=G(window.location.href),function(L){const A=Pr.isString(L)?G(L):L;return A.protocol===T.protocol&&A.host===T.host}}():function(){return function(){return!0}}();function sce(o){const b=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return b&&b[1]||""}function ice(o,b){o=o||10;const y=new Array(o),T=new Array(o);let G=0,V=0,L;return b=b!==void 0?b:1e3,function(s){const m=Date.now(),h=T[V];L||(L=m),y[G]=s,T[G]=m;let l=V,c=0;for(;l!==G;)c+=y[l++],l=l%o;if(G=(G+1)%o,G===V&&(V=(V+1)%o),m-L{const V=G.loaded,L=G.lengthComputable?G.total:void 0,A=V-y,s=T(A),m=V<=L;y=V;const h={loaded:V,total:L,progress:L?V/L:void 0,bytes:A,rate:s||void 0,estimated:s&&L&&m?(L-V)/s:void 0,event:G};h[b?"download":"upload"]=!0,o(h)}}const lce=typeof XMLHttpRequest<"u",cce=lce&&function(o){return new Promise(function(y,T){let G=o.data;const V=Ny.from(o.headers).normalize();let{responseType:L,withXSRFToken:A}=o,s;function m(){o.cancelToken&&o.cancelToken.unsubscribe(s),o.signal&&o.signal.removeEventListener("abort",s)}let h;if(Pr.isFormData(G)){if(w0.hasStandardBrowserEnv||w0.hasStandardBrowserWebWorkerEnv)V.setContentType(!1);else if((h=V.getContentType())!==!1){const[d,...g]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];V.setContentType([d||"multipart/form-data",...g].join("; "))}}let l=new XMLHttpRequest;if(o.auth){const d=o.auth.username||"",g=o.auth.password?unescape(encodeURIComponent(o.auth.password)):"";V.set("Authorization","Basic "+btoa(d+":"+g))}const c=soe(o.baseURL,o.url);l.open(o.method.toUpperCase(),toe(c,o.params,o.paramsSerializer),!0),l.timeout=o.timeout;function i(){if(!l)return;const d=Ny.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),v={data:!L||L==="text"||L==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:d,config:o,request:l};ece(function(C){y(C),m()},function(C){T(C),m()},v),l=null}if("onloadend"in l?l.onloadend=i:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(i)},l.onabort=function(){l&&(T(new Zs("Request aborted",Zs.ECONNABORTED,o,l)),l=null)},l.onerror=function(){T(new Zs("Network Error",Zs.ERR_NETWORK,o,l)),l=null},l.ontimeout=function(){let g=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const v=o.transitional||noe;o.timeoutErrorMessage&&(g=o.timeoutErrorMessage),T(new Zs(g,v.clarifyTimeoutError?Zs.ETIMEDOUT:Zs.ECONNABORTED,o,l)),l=null},w0.hasStandardBrowserEnv&&(A&&Pr.isFunction(A)&&(A=A(o)),A||A!==!1&&oce(c))){const d=o.xsrfHeaderName&&o.xsrfCookieName&&tce.read(o.xsrfCookieName);d&&V.set(o.xsrfHeaderName,d)}G===void 0&&V.setContentType(null),"setRequestHeader"in l&&Pr.forEach(V.toJSON(),function(g,v){l.setRequestHeader(v,g)}),Pr.isUndefined(o.withCredentials)||(l.withCredentials=!!o.withCredentials),L&&L!=="json"&&(l.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&l.addEventListener("progress",Vte(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Vte(o.onUploadProgress)),(o.cancelToken||o.signal)&&(s=d=>{l&&(T(!d||d.type?new G6(null,o,l):d),l.abort(),l=null)},o.cancelToken&&o.cancelToken.subscribe(s),o.signal&&(o.signal.aborted?s():o.signal.addEventListener("abort",s)));const u=sce(c);if(u&&w0.protocols.indexOf(u)===-1){T(new Zs("Unsupported protocol "+u+":",Zs.ERR_BAD_REQUEST,o));return}l.send(G||null)})},rQ={http:Dle,xhr:cce};Pr.forEach(rQ,(o,b)=>{if(o){try{Object.defineProperty(o,"name",{value:b})}catch{}Object.defineProperty(o,"adapterName",{value:b})}});const Ute=o=>`- ${o}`,uce=o=>Pr.isFunction(o)||o===null||o===!1,ioe={getAdapter:o=>{o=Pr.isArray(o)?o:[o];const{length:b}=o;let y,T;const G={};for(let V=0;V`adapter ${A} `+(s===!1?"is not supported by the environment":"is not available in the build"));let L=b?V.length>1?`since : -`+V.map(Ute).join(` -`):" "+Ute(V[0]):"as no adapter specified";throw new Zs("There is no suitable adapter to dispatch the request "+L,"ERR_NOT_SUPPORT")}return T},adapters:rQ};function IJ(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new G6(null,o)}function Wte(o){return IJ(o),o.headers=Ny.from(o.headers),o.data=PJ.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),ioe.getAdapter(o.adapter||HQ.adapter)(o).then(function(T){return IJ(o),T.data=PJ.call(o,o.transformResponse,T),T.headers=Ny.from(T.headers),T},function(T){return aoe(T)||(IJ(o),T&&T.response&&(T.response.data=PJ.call(o,o.transformResponse,T.response),T.response.headers=Ny.from(T.response.headers))),Promise.reject(T)})}const Gte=o=>o instanceof Ny?o.toJSON():o;function CE(o,b){b=b||{};const y={};function T(m,h,l){return Pr.isPlainObject(m)&&Pr.isPlainObject(h)?Pr.merge.call({caseless:l},m,h):Pr.isPlainObject(h)?Pr.merge({},h):Pr.isArray(h)?h.slice():h}function G(m,h,l){if(Pr.isUndefined(h)){if(!Pr.isUndefined(m))return T(void 0,m,l)}else return T(m,h,l)}function V(m,h){if(!Pr.isUndefined(h))return T(void 0,h)}function L(m,h){if(Pr.isUndefined(h)){if(!Pr.isUndefined(m))return T(void 0,m)}else return T(void 0,h)}function A(m,h,l){if(l in b)return T(m,h);if(l in o)return T(void 0,m)}const s={url:V,method:V,data:V,baseURL:L,transformRequest:L,transformResponse:L,paramsSerializer:L,timeout:L,timeoutMessage:L,withCredentials:L,withXSRFToken:L,adapter:L,responseType:L,xsrfCookieName:L,xsrfHeaderName:L,onUploadProgress:L,onDownloadProgress:L,decompress:L,maxContentLength:L,maxBodyLength:L,beforeRedirect:L,transport:L,httpAgent:L,httpsAgent:L,cancelToken:L,socketPath:L,responseEncoding:L,validateStatus:A,headers:(m,h)=>G(Gte(m),Gte(h),!0)};return Pr.forEach(Object.keys(Object.assign({},o,b)),function(h){const l=s[h]||G,c=l(o[h],b[h],h);Pr.isUndefined(c)&&l!==A||(y[h]=c)}),y}const loe="1.6.2",zQ={};["object","boolean","number","function","string","symbol"].forEach((o,b)=>{zQ[o]=function(T){return typeof T===o||"a"+(b<1?"n ":" ")+o}});const Zte={};zQ.transitional=function(b,y,T){function G(V,L){return"[Axios v"+loe+"] Transitional option '"+V+"'"+L+(T?". "+T:"")}return(V,L,A)=>{if(b===!1)throw new Zs(G(L," has been removed"+(y?" in "+y:"")),Zs.ERR_DEPRECATED);return y&&!Zte[L]&&(Zte[L]=!0,console.warn(G(L," has been deprecated since v"+y+" and will be removed in the near future"))),b?b(V,L,A):!0}};function fce(o,b,y){if(typeof o!="object")throw new Zs("options must be an object",Zs.ERR_BAD_OPTION_VALUE);const T=Object.keys(o);let G=T.length;for(;G-- >0;){const V=T[G],L=b[V];if(L){const A=o[V],s=A===void 0||L(A,V,o);if(s!==!0)throw new Zs("option "+V+" must be "+s,Zs.ERR_BAD_OPTION_VALUE);continue}if(y!==!0)throw new Zs("Unknown option "+V,Zs.ERR_BAD_OPTION)}}const oQ={assertOptions:fce,validators:zQ},b2=oQ.validators;class fB{constructor(b){this.defaults=b,this.interceptors={request:new Hte,response:new Hte}}request(b,y){typeof b=="string"?(y=y||{},y.url=b):y=b||{},y=CE(this.defaults,y);const{transitional:T,paramsSerializer:G,headers:V}=y;T!==void 0&&oQ.assertOptions(T,{silentJSONParsing:b2.transitional(b2.boolean),forcedJSONParsing:b2.transitional(b2.boolean),clarifyTimeoutError:b2.transitional(b2.boolean)},!1),G!=null&&(Pr.isFunction(G)?y.paramsSerializer={serialize:G}:oQ.assertOptions(G,{encode:b2.function,serialize:b2.function},!0)),y.method=(y.method||this.defaults.method||"get").toLowerCase();let L=V&&Pr.merge(V.common,V[y.method]);V&&Pr.forEach(["delete","get","head","post","put","patch","common"],u=>{delete V[u]}),y.headers=Ny.concat(L,V);const A=[];let s=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(y)===!1||(s=s&&d.synchronous,A.unshift(d.fulfilled,d.rejected))});const m=[];this.interceptors.response.forEach(function(d){m.push(d.fulfilled,d.rejected)});let h,l=0,c;if(!s){const u=[Wte.bind(this),void 0];for(u.unshift.apply(u,A),u.push.apply(u,m),c=u.length,h=Promise.resolve(y);l{if(!T._listeners)return;let V=T._listeners.length;for(;V-- >0;)T._listeners[V](G);T._listeners=null}),this.promise.then=G=>{let V;const L=new Promise(A=>{T.subscribe(A),V=A}).then(G);return L.cancel=function(){T.unsubscribe(V)},L},b(function(V,L,A){T.reason||(T.reason=new G6(V,L,A),y(T.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(b){if(this.reason){b(this.reason);return}this._listeners?this._listeners.push(b):this._listeners=[b]}unsubscribe(b){if(!this._listeners)return;const y=this._listeners.indexOf(b);y!==-1&&this._listeners.splice(y,1)}static source(){let b;return{token:new VQ(function(G){b=G}),cancel:b}}}const dce=VQ;function hce(o){return function(y){return o.apply(null,y)}}function mce(o){return Pr.isObject(o)&&o.isAxiosError===!0}const aQ={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(aQ).forEach(([o,b])=>{aQ[b]=o});const gce=aQ;function coe(o){const b=new rB(o),y=Ure(rB.prototype.request,b);return Pr.extend(y,rB.prototype,b,{allOwnKeys:!0}),Pr.extend(y,b,null,{allOwnKeys:!0}),y.create=function(G){return coe(CE(o,G))},y}const Wc=coe(HQ);Wc.Axios=rB;Wc.CanceledError=G6;Wc.CancelToken=dce;Wc.isCancel=aoe;Wc.VERSION=loe;Wc.toFormData=BB;Wc.AxiosError=Zs;Wc.Cancel=Wc.CanceledError;Wc.all=function(b){return Promise.all(b)};Wc.spread=hce;Wc.isAxiosError=mce;Wc.mergeConfig=CE;Wc.AxiosHeaders=Ny;Wc.formToJSON=o=>ooe(Pr.isHTMLForm(o)?new FormData(o):o);Wc.getAdapter=ioe.getAdapter;Wc.HttpStatusCode=gce;Wc.default=Wc;const Oy=Wc;function UQ(o,b){const y=Object.create(null),T=o.split(",");for(let G=0;G!!y[G.toLowerCase()]:G=>!!y[G]}const vl={},pE=[],Ap=()=>{},pce=()=>!1,vce=/^on[^a-z]/,zB=o=>vce.test(o),WQ=o=>o.startsWith("onUpdate:"),Mc=Object.assign,GQ=(o,b)=>{const y=o.indexOf(b);y>-1&&o.splice(y,1)},yce=Object.prototype.hasOwnProperty,ti=(o,b)=>yce.call(o,b),Pa=Array.isArray,vE=o=>VB(o)==="[object Map]",uoe=o=>VB(o)==="[object Set]",fs=o=>typeof o=="function",hc=o=>typeof o=="string",ZQ=o=>typeof o=="symbol",ol=o=>o!==null&&typeof o=="object",foe=o=>ol(o)&&fs(o.then)&&fs(o.catch),doe=Object.prototype.toString,VB=o=>doe.call(o),bce=o=>VB(o).slice(8,-1),hoe=o=>VB(o)==="[object Object]",jQ=o=>hc(o)&&o!=="NaN"&&o[0]!=="-"&&""+parseInt(o,10)===o,oB=UQ(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),UB=o=>{const b=Object.create(null);return y=>b[y]||(b[y]=o(y))},xce=/-(\w)/g,bg=UB(o=>o.replace(xce,(b,y)=>y?y.toUpperCase():"")),wce=/\B([A-Z])/g,DE=UB(o=>o.replace(wce,"-$1").toLowerCase()),_0=UB(o=>o.charAt(0).toUpperCase()+o.slice(1)),C0=UB(o=>o?`on${_0(o)}`:""),_6=(o,b)=>!Object.is(o,b),aB=(o,b)=>{for(let y=0;y{Object.defineProperty(o,b,{configurable:!0,enumerable:!1,value:y})},sQ=o=>{const b=parseFloat(o);return isNaN(b)?o:b},Cce=o=>{const b=hc(o)?Number(o):NaN;return isNaN(b)?o:b};let jte;const iQ=()=>jte||(jte=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function YQ(o){if(Pa(o)){const b={};for(let y=0;y{if(y){const T=y.split(Tce);T.length>1&&(b[T[0].trim()]=T[1].trim())}}),b}function KQ(o){let b="";if(hc(o))b=o;else if(Pa(o))for(let y=0;yhc(o)?o:o==null?"":Pa(o)||ol(o)&&(o.toString===doe||!fs(o.toString))?JSON.stringify(o,goe,2):String(o),goe=(o,b)=>b&&b.__v_isRef?goe(o,b.value):vE(b)?{[`Map(${b.size})`]:[...b.entries()].reduce((y,[T,G])=>(y[`${T} =>`]=G,y),{})}:uoe(b)?{[`Set(${b.size})`]:[...b.values()]}:ol(b)&&!Pa(b)&&!hoe(b)?String(b):b;let rm;class poe{constructor(b=!1){this.detached=b,this._active=!0,this.effects=[],this.cleanups=[],this.parent=rm,!b&&rm&&(this.index=(rm.scopes||(rm.scopes=[])).push(this)-1)}get active(){return this._active}run(b){if(this._active){const y=rm;try{return rm=this,b()}finally{rm=y}}}on(){rm=this}off(){rm=this.parent}stop(b){if(this._active){let y,T;for(y=0,T=this.effects.length;y{const b=new Set(o);return b.w=0,b.n=0,b},voe=o=>(o.w&M2)>0,yoe=o=>(o.n&M2)>0,Lce=({deps:o})=>{if(o.length)for(let b=0;b{const{deps:b}=o;if(b.length){let y=0;for(let T=0;T{(h==="length"||h>=s)&&A.push(m)})}else switch(y!==void 0&&A.push(L.get(y)),b){case"add":Pa(o)?jQ(y)&&A.push(L.get("length")):(A.push(L.get(m3)),vE(o)&&A.push(L.get(cQ)));break;case"delete":Pa(o)||(A.push(L.get(m3)),vE(o)&&A.push(L.get(cQ)));break;case"set":vE(o)&&A.push(L.get(m3));break}if(A.length===1)A[0]&&uQ(A[0]);else{const s=[];for(const m of A)m&&s.push(...m);uQ(JQ(s))}}function uQ(o,b){const y=Pa(o)?o:[...o];for(const T of y)T.computed&&Kte(T);for(const T of y)T.computed||Kte(T)}function Kte(o,b){(o!==Cp||o.allowRecurse)&&(o.scheduler?o.scheduler():o.run())}function $ce(o,b){var y;return(y=hB.get(o))==null?void 0:y.get(b)}const Oce=UQ("__proto__,__v_isRef,__isVue"),woe=new Set(Object.getOwnPropertyNames(Symbol).filter(o=>o!=="arguments"&&o!=="caller").map(o=>Symbol[o]).filter(ZQ)),Pce=qQ(),Ice=qQ(!1,!0),Nce=qQ(!0),Xte=Fce();function Fce(){const o={};return["includes","indexOf","lastIndexOf"].forEach(b=>{o[b]=function(...y){const T=ds(this);for(let V=0,L=this.length;V{o[b]=function(...y){$E();const T=ds(this)[b].apply(this,y);return OE(),T}}),o}function Bce(o){const b=ds(this);return uh(b,"has",o),b.hasOwnProperty(o)}function qQ(o=!1,b=!1){return function(T,G,V){if(G==="__v_isReactive")return!o;if(G==="__v_isReadonly")return o;if(G==="__v_isShallow")return b;if(G==="__v_raw"&&V===(o?b?tue:Aoe:b?koe:Toe).get(T))return T;const L=Pa(T);if(!o){if(L&&ti(Xte,G))return Reflect.get(Xte,G,V);if(G==="hasOwnProperty")return Bce}const A=Reflect.get(T,G,V);return(ZQ(G)?woe.has(G):Oce(G))||(o||uh(T,"get",G),b)?A:Wl(A)?L&&jQ(G)?A:A.value:ol(A)?o?Z6(A):ih(A):A}}const Hce=Coe(),zce=Coe(!0);function Coe(o=!1){return function(y,T,G,V){let L=y[T];if(SE(L)&&Wl(L)&&!Wl(G))return!1;if(!o&&(!mB(G)&&!SE(G)&&(L=ds(L),G=ds(G)),!Pa(y)&&Wl(L)&&!Wl(G)))return L.value=G,!0;const A=Pa(y)&&jQ(T)?Number(T)o,WB=o=>Reflect.getPrototypeOf(o);function VF(o,b,y=!1,T=!1){o=o.__v_raw;const G=ds(o),V=ds(b);y||(b!==V&&uh(G,"get",b),uh(G,"get",V));const{has:L}=WB(G),A=T?eq:y?oq:R6;if(L.call(G,b))return A(o.get(b));if(L.call(G,V))return A(o.get(V));o!==G&&o.get(b)}function UF(o,b=!1){const y=this.__v_raw,T=ds(y),G=ds(o);return b||(o!==G&&uh(T,"has",o),uh(T,"has",G)),o===G?y.has(o):y.has(o)||y.has(G)}function WF(o,b=!1){return o=o.__v_raw,!b&&uh(ds(o),"iterate",m3),Reflect.get(o,"size",o)}function Jte(o){o=ds(o);const b=ds(this);return WB(b).has.call(b,o)||(b.add(o),Fy(b,"add",o,o)),this}function Qte(o,b){b=ds(b);const y=ds(this),{has:T,get:G}=WB(y);let V=T.call(y,o);V||(o=ds(o),V=T.call(y,o));const L=G.call(y,o);return y.set(o,b),V?_6(b,L)&&Fy(y,"set",o,b):Fy(y,"add",o,b),this}function qte(o){const b=ds(this),{has:y,get:T}=WB(b);let G=y.call(b,o);G||(o=ds(o),G=y.call(b,o)),T&&T.call(b,o);const V=b.delete(o);return G&&Fy(b,"delete",o,void 0),V}function ene(){const o=ds(this),b=o.size!==0,y=o.clear();return b&&Fy(o,"clear",void 0,void 0),y}function GF(o,b){return function(T,G){const V=this,L=V.__v_raw,A=ds(L),s=b?eq:o?oq:R6;return!o&&uh(A,"iterate",m3),L.forEach((m,h)=>T.call(G,s(m),s(h),V))}}function ZF(o,b,y){return function(...T){const G=this.__v_raw,V=ds(G),L=vE(V),A=o==="entries"||o===Symbol.iterator&&L,s=o==="keys"&&L,m=G[o](...T),h=y?eq:b?oq:R6;return!b&&uh(V,"iterate",s?cQ:m3),{next(){const{value:l,done:c}=m.next();return c?{value:l,done:c}:{value:A?[h(l[0]),h(l[1])]:h(l),done:c}},[Symbol.iterator](){return this}}}}function x2(o){return function(...b){return o==="delete"?!1:this}}function jce(){const o={get(V){return VF(this,V)},get size(){return WF(this)},has:UF,add:Jte,set:Qte,delete:qte,clear:ene,forEach:GF(!1,!1)},b={get(V){return VF(this,V,!1,!0)},get size(){return WF(this)},has:UF,add:Jte,set:Qte,delete:qte,clear:ene,forEach:GF(!1,!0)},y={get(V){return VF(this,V,!0)},get size(){return WF(this,!0)},has(V){return UF.call(this,V,!0)},add:x2("add"),set:x2("set"),delete:x2("delete"),clear:x2("clear"),forEach:GF(!0,!1)},T={get(V){return VF(this,V,!0,!0)},get size(){return WF(this,!0)},has(V){return UF.call(this,V,!0)},add:x2("add"),set:x2("set"),delete:x2("delete"),clear:x2("clear"),forEach:GF(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(V=>{o[V]=ZF(V,!1,!1),y[V]=ZF(V,!0,!1),b[V]=ZF(V,!1,!0),T[V]=ZF(V,!0,!0)}),[o,y,b,T]}const[Yce,Kce,Xce,Jce]=jce();function tq(o,b){const y=b?o?Jce:Xce:o?Kce:Yce;return(T,G,V)=>G==="__v_isReactive"?!o:G==="__v_isReadonly"?o:G==="__v_raw"?T:Reflect.get(ti(y,G)&&G in T?y:T,G,V)}const Qce={get:tq(!1,!1)},qce={get:tq(!1,!0)},eue={get:tq(!0,!1)},Toe=new WeakMap,koe=new WeakMap,Aoe=new WeakMap,tue=new WeakMap;function nue(o){switch(o){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rue(o){return o.__v_skip||!Object.isExtensible(o)?0:nue(bce(o))}function ih(o){return SE(o)?o:nq(o,!1,Soe,Qce,Toe)}function oue(o){return nq(o,!1,Zce,qce,koe)}function Z6(o){return nq(o,!0,Gce,eue,Aoe)}function nq(o,b,y,T,G){if(!ol(o)||o.__v_raw&&!(b&&o.__v_isReactive))return o;const V=G.get(o);if(V)return V;const L=rue(o);if(L===0)return o;const A=new Proxy(o,L===2?T:y);return G.set(o,A),A}function yE(o){return SE(o)?yE(o.__v_raw):!!(o&&o.__v_isReactive)}function SE(o){return!!(o&&o.__v_isReadonly)}function mB(o){return!!(o&&o.__v_isShallow)}function Moe(o){return yE(o)||SE(o)}function ds(o){const b=o&&o.__v_raw;return b?ds(b):o}function rq(o){return dB(o,"__v_skip",!0),o}const R6=o=>ol(o)?ih(o):o,oq=o=>ol(o)?Z6(o):o;function Eoe(o){k2&&Cp&&(o=ds(o),xoe(o.dep||(o.dep=JQ())))}function _oe(o,b){o=ds(o);const y=o.dep;y&&uQ(y)}function Wl(o){return!!(o&&o.__v_isRef===!0)}function No(o){return Roe(o,!1)}function xa(o){return Roe(o,!0)}function Roe(o,b){return Wl(o)?o:new aue(o,b)}class aue{constructor(b,y){this.__v_isShallow=y,this.dep=void 0,this.__v_isRef=!0,this._rawValue=y?b:ds(b),this._value=y?b:R6(b)}get value(){return Eoe(this),this._value}set value(b){const y=this.__v_isShallow||mB(b)||SE(b);b=y?b:ds(b),_6(b,this._rawValue)&&(this._rawValue=b,this._value=y?b:R6(b),_oe(this))}}function im(o){return Wl(o)?o.value:o}const sue={get:(o,b,y)=>im(Reflect.get(o,b,y)),set:(o,b,y,T)=>{const G=o[b];return Wl(G)&&!Wl(y)?(G.value=y,!0):Reflect.set(o,b,y,T)}};function Loe(o){return yE(o)?o:new Proxy(o,sue)}function GB(o){const b=Pa(o)?new Array(o.length):{};for(const y in o)b[y]=Doe(o,y);return b}class iue{constructor(b,y,T){this._object=b,this._key=y,this._defaultValue=T,this.__v_isRef=!0}get value(){const b=this._object[this._key];return b===void 0?this._defaultValue:b}set value(b){this._object[this._key]=b}get dep(){return $ce(ds(this._object),this._key)}}class lue{constructor(b){this._getter=b,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Xo(o,b,y){return Wl(o)?o:fs(o)?new lue(o):ol(o)&&arguments.length>1?Doe(o,b,y):No(o)}function Doe(o,b,y){const T=o[b];return Wl(T)?T:new iue(o,b,y)}class cue{constructor(b,y,T,G){this._setter=y,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new QQ(b,()=>{this._dirty||(this._dirty=!0,_oe(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!G,this.__v_isReadonly=T}get value(){const b=ds(this);return Eoe(b),(b._dirty||!b._cacheable)&&(b._dirty=!1,b._value=b.effect.run()),b._value}set value(b){this._setter(b)}}function uue(o,b,y=!1){let T,G;const V=fs(o);return V?(T=o,G=Ap):(T=o.get,G=o.set),new cue(T,G,V||!G,y)}function A2(o,b,y,T){let G;try{G=T?o(...T):o()}catch(V){ZB(V,b,y)}return G}function vg(o,b,y,T){if(fs(o)){const V=A2(o,b,y,T);return V&&foe(V)&&V.catch(L=>{ZB(L,b,y)}),V}const G=[];for(let V=0;V>>1;D6(Bf[T])x0&&Bf.splice(b,1)}function mue(o){Pa(o)?bE.push(...o):(!Iy||!Iy.includes(o,o.allowRecurse?c3+1:c3))&&bE.push(o),Ooe()}function tne(o,b=L6?x0+1:0){for(;bD6(y)-D6(T)),c3=0;c3o.id==null?1/0:o.id,gue=(o,b)=>{const y=D6(o)-D6(b);if(y===0){if(o.pre&&!b.pre)return-1;if(b.pre&&!o.pre)return 1}return y};function Ioe(o){fQ=!1,L6=!0,Bf.sort(gue);const b=Ap;try{for(x0=0;x0hc(i)?i.trim():i)),l&&(G=y.map(sQ))}let A,s=T[A=C0(b)]||T[A=C0(bg(b))];!s&&V&&(s=T[A=C0(DE(b))]),s&&vg(s,o,6,G);const m=T[A+"Once"];if(m){if(!o.emitted)o.emitted={};else if(o.emitted[A])return;o.emitted[A]=!0,vg(m,o,6,G)}}function Noe(o,b,y=!1){const T=b.emitsCache,G=T.get(o);if(G!==void 0)return G;const V=o.emits;let L={},A=!1;if(!fs(o)){const s=m=>{const h=Noe(m,b,!0);h&&(A=!0,Mc(L,h))};!y&&b.mixins.length&&b.mixins.forEach(s),o.extends&&s(o.extends),o.mixins&&o.mixins.forEach(s)}return!V&&!A?(ol(o)&&T.set(o,null),null):(Pa(V)?V.forEach(s=>L[s]=null):Mc(L,V),ol(o)&&T.set(o,L),L)}function jB(o,b){return!o||!zB(b)?!1:(b=b.slice(2).replace(/Once$/,""),ti(o,b[0].toLowerCase()+b.slice(1))||ti(o,DE(b))||ti(o,b))}let lm=null,Foe=null;function gB(o){const b=lm;return lm=o,Foe=o&&o.type.__scopeId||null,b}function jr(o,b=lm,y){if(!b||o._n)return o;const T=(...G)=>{T._d&&mne(-1);const V=gB(b);let L;try{L=o(...G)}finally{gB(V),T._d&&mne(1)}return L};return T._n=!0,T._c=!0,T._d=!0,T}function NJ(o){const{type:b,vnode:y,proxy:T,withProxy:G,props:V,propsOptions:[L],slots:A,attrs:s,emit:m,render:h,renderCache:l,data:c,setupState:i,ctx:u,inheritAttrs:d}=o;let g,v;const x=gB(o);try{if(y.shapeFlag&4){const _=G||T;g=b0(h.call(_,_,l,V,i,c,u)),v=s}else{const _=b;g=b0(_.length>1?_(V,{attrs:s,slots:A,emit:m}):_(V,null)),v=b.props?s:vue(s)}}catch(_){k6.length=0,ZB(_,o,1),g=ct(Mp)}let C=g;if(v&&d!==!1){const _=Object.keys(v),{shapeFlag:$}=C;_.length&&$&7&&(L&&_.some(WQ)&&(v=yue(v,L)),C=By(C,v))}return y.dirs&&(C=By(C),C.dirs=C.dirs?C.dirs.concat(y.dirs):y.dirs),y.transition&&(C.transition=y.transition),g=C,gB(x),g}const vue=o=>{let b;for(const y in o)(y==="class"||y==="style"||zB(y))&&((b||(b={}))[y]=o[y]);return b},yue=(o,b)=>{const y={};for(const T in o)(!WQ(T)||!(T.slice(9)in b))&&(y[T]=o[T]);return y};function bue(o,b,y){const{props:T,children:G,component:V}=o,{props:L,children:A,patchFlag:s}=b,m=V.emitsOptions;if(b.dirs||b.transition)return!0;if(y&&s>=0){if(s&1024)return!0;if(s&16)return T?nne(T,L,m):!!L;if(s&8){const h=b.dynamicProps;for(let l=0;lo.__isSuspense;function Cue(o,b){b&&b.pendingBranch?Pa(o)?b.effects.push(...o):b.effects.push(o):mue(o)}function fh(o,b){return iq(o,null,b)}const jF={};function ta(o,b,y){return iq(o,b,y)}function iq(o,b,{immediate:y,deep:T,flush:G,onTrack:V,onTrigger:L}=vl){var A;const s=Rce()===((A=zu)==null?void 0:A.scope)?zu:null;let m,h=!1,l=!1;if(Wl(o)?(m=()=>o.value,h=mB(o)):yE(o)?(m=()=>o,T=!0):Pa(o)?(l=!0,h=o.some(_=>yE(_)||mB(_)),m=()=>o.map(_=>{if(Wl(_))return _.value;if(yE(_))return d3(_);if(fs(_))return A2(_,s,2)})):fs(o)?b?m=()=>A2(o,s,2):m=()=>{if(!(s&&s.isUnmounted))return c&&c(),vg(o,s,3,[i])}:m=Ap,b&&T){const _=m;m=()=>d3(_())}let c,i=_=>{c=x.onStop=()=>{A2(_,s,4)}},u;if(I6)if(i=Ap,b?y&&vg(b,s,3,[m(),l?[]:void 0,i]):m(),G==="sync"){const _=dfe();u=_.__watcherHandles||(_.__watcherHandles=[])}else return Ap;let d=l?new Array(o.length).fill(jF):jF;const g=()=>{if(x.active)if(b){const _=x.run();(T||h||(l?_.some(($,S)=>_6($,d[S])):_6(_,d)))&&(c&&c(),vg(b,s,3,[_,d===jF?void 0:l&&d[0]===jF?[]:d,i]),d=_)}else x.run()};g.allowRecurse=!!b;let v;G==="sync"?v=g:G==="post"?v=()=>sh(g,s&&s.suspense):(g.pre=!0,s&&(g.id=s.uid),v=()=>sq(g));const x=new QQ(m,v);b?y?g():d=x.run():G==="post"?sh(x.run.bind(x),s&&s.suspense):x.run();const C=()=>{x.stop(),s&&s.scope&&GQ(s.scope.effects,x)};return u&&u.push(C),C}function Sue(o,b,y){const T=this.proxy,G=hc(o)?o.includes(".")?Boe(T,o):()=>T[o]:o.bind(T,T);let V;fs(b)?V=b:(V=b.handler,y=b);const L=zu;TE(this);const A=iq(G,V.bind(T),y);return L?TE(L):g3(),A}function Boe(o,b){const y=b.split(".");return()=>{let T=o;for(let G=0;G{d3(y,b)});else if(hoe(o))for(const y in o)d3(o[y],b);return o}function lu(o,b){const y=lm;if(y===null)return o;const T=QB(y)||y.proxy,G=o.dirs||(o.dirs=[]);for(let V=0;V{o.isMounted=!0}),dm(()=>{o.isUnmounting=!0}),o}const hg=[Function,Array],zoe={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:hg,onEnter:hg,onAfterEnter:hg,onEnterCancelled:hg,onBeforeLeave:hg,onLeave:hg,onAfterLeave:hg,onLeaveCancelled:hg,onBeforeAppear:hg,onAppear:hg,onAfterAppear:hg,onAppearCancelled:hg},Tue={name:"BaseTransition",props:zoe,setup(o,{slots:b}){const y=yq(),T=Hoe();let G;return()=>{const V=b.default&&lq(b.default(),!0);if(!V||!V.length)return;let L=V[0];if(V.length>1){for(const d of V)if(d.type!==Mp){L=d;break}}const A=ds(o),{mode:s}=A;if(T.isLeaving)return FJ(L);const m=rne(L);if(!m)return FJ(L);const h=$6(m,A,T,y);O6(m,h);const l=y.subTree,c=l&&rne(l);let i=!1;const{getTransitionKey:u}=m.type;if(u){const d=u();G===void 0?G=d:d!==G&&(G=d,i=!0)}if(c&&c.type!==Mp&&(!u3(m,c)||i)){const d=$6(c,A,T,y);if(O6(c,d),s==="out-in")return T.isLeaving=!0,d.afterLeave=()=>{T.isLeaving=!1,y.update.active!==!1&&y.update()},FJ(L);s==="in-out"&&m.type!==Mp&&(d.delayLeave=(g,v,x)=>{const C=Voe(T,c);C[String(c.key)]=c,g._leaveCb=()=>{v(),g._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=x})}return L}}},kue=Tue;function Voe(o,b){const{leavingVNodes:y}=o;let T=y.get(b.type);return T||(T=Object.create(null),y.set(b.type,T)),T}function $6(o,b,y,T){const{appear:G,mode:V,persisted:L=!1,onBeforeEnter:A,onEnter:s,onAfterEnter:m,onEnterCancelled:h,onBeforeLeave:l,onLeave:c,onAfterLeave:i,onLeaveCancelled:u,onBeforeAppear:d,onAppear:g,onAfterAppear:v,onAppearCancelled:x}=b,C=String(o.key),_=Voe(y,o),$=(D,N)=>{D&&vg(D,T,9,N)},S=(D,N)=>{const M=N[1];$(D,N),Pa(D)?D.every(k=>k.length<=1)&&M():D.length<=1&&M()},O={mode:V,persisted:L,beforeEnter(D){let N=A;if(!y.isMounted)if(G)N=d||A;else return;D._leaveCb&&D._leaveCb(!0);const M=_[C];M&&u3(o,M)&&M.el._leaveCb&&M.el._leaveCb(),$(N,[D])},enter(D){let N=s,M=m,k=h;if(!y.isMounted)if(G)N=g||s,M=v||m,k=x||h;else return;let R=!1;const F=D._enterCb=H=>{R||(R=!0,H?$(k,[D]):$(M,[D]),O.delayedLeave&&O.delayedLeave(),D._enterCb=void 0)};N?S(N,[D,F]):F()},leave(D,N){const M=String(o.key);if(D._enterCb&&D._enterCb(!0),y.isUnmounting)return N();$(l,[D]);let k=!1;const R=D._leaveCb=F=>{k||(k=!0,N(),F?$(u,[D]):$(i,[D]),D._leaveCb=void 0,_[M]===o&&delete _[M])};_[M]=o,c?S(c,[D,R]):R()},clone(D){return $6(D,b,y,T)}};return O}function FJ(o){if(KB(o))return o=By(o),o.children=null,o}function rne(o){return KB(o)?o.children?o.children[0]:void 0:o}function O6(o,b){o.shapeFlag&6&&o.component?O6(o.component.subTree,b):o.shapeFlag&128?(o.ssContent.transition=b.clone(o.ssContent),o.ssFallback.transition=b.clone(o.ssFallback)):o.transition=b}function lq(o,b=!1,y){let T=[],G=0;for(let V=0;V1)for(let V=0;VMc({name:o.name},b,{setup:o}))():o}const sB=o=>!!o.type.__asyncLoader,KB=o=>o.type.__isKeepAlive;function cq(o,b){Uoe(o,"a",b)}function uq(o,b){Uoe(o,"da",b)}function Uoe(o,b,y=zu){const T=o.__wdc||(o.__wdc=()=>{let G=y;for(;G;){if(G.isDeactivated)return;G=G.parent}return o()});if(XB(b,T,y),y){let G=y.parent;for(;G&&G.parent;)KB(G.parent.vnode)&&Aue(T,b,y,G),G=G.parent}}function Aue(o,b,y,T){const G=XB(b,o,T,!0);Goe(()=>{GQ(T[b],G)},y)}function XB(o,b,y=zu,T=!1){if(y){const G=y[o]||(y[o]=[]),V=b.__weh||(b.__weh=(...L)=>{if(y.isUnmounted)return;$E(),TE(y);const A=vg(b,y,o,L);return g3(),OE(),A});return T?G.unshift(V):G.push(V),V}}const zy=o=>(b,y=zu)=>(!I6||o==="sp")&&XB(o,(...T)=>b(...T),y),fq=zy("bm"),Cg=zy("m"),Mue=zy("bu"),Woe=zy("u"),dm=zy("bum"),Goe=zy("um"),Eue=zy("sp"),_ue=zy("rtg"),Rue=zy("rtc");function Lue(o,b=zu){XB("ec",o,b)}const dq="components",Due="directives";function A0(o,b){return hq(dq,o,!0,b)||o}const Zoe=Symbol.for("v-ndc");function mg(o){return hc(o)?hq(dq,o,!1)||o:o||Zoe}function _p(o){return hq(Due,o)}function hq(o,b,y=!0,T=!1){const G=lm||zu;if(G){const V=G.type;if(o===dq){const A=cfe(V,!1);if(A&&(A===b||A===bg(b)||A===_0(bg(b))))return V}const L=one(G[o]||V[o],b)||one(G.appContext[o],b);return!L&&T?V:L}}function one(o,b){return o&&(o[b]||o[bg(b)]||o[_0(bg(b))])}function uf(o,b,y,T){let G;const V=y&&y[T];if(Pa(o)||hc(o)){G=new Array(o.length);for(let L=0,A=o.length;Lb(L,A,void 0,V&&V[A]));else{const L=Object.keys(o);G=new Array(L.length);for(let A=0,s=L.length;Ao?rae(o)?QB(o)||o.proxy:dQ(o.parent):null,S6=Mc(Object.create(null),{$:o=>o,$el:o=>o.vnode.el,$data:o=>o.data,$props:o=>o.props,$attrs:o=>o.attrs,$slots:o=>o.slots,$refs:o=>o.refs,$parent:o=>dQ(o.parent),$root:o=>dQ(o.root),$emit:o=>o.emit,$options:o=>mq(o),$forceUpdate:o=>o.f||(o.f=()=>sq(o.update)),$nextTick:o=>o.n||(o.n=Ll.bind(o.proxy)),$watch:o=>Sue.bind(o)}),BJ=(o,b)=>o!==vl&&!o.__isScriptSetup&&ti(o,b),$ue={get({_:o},b){const{ctx:y,setupState:T,data:G,props:V,accessCache:L,type:A,appContext:s}=o;let m;if(b[0]!=="$"){const i=L[b];if(i!==void 0)switch(i){case 1:return T[b];case 2:return G[b];case 4:return y[b];case 3:return V[b]}else{if(BJ(T,b))return L[b]=1,T[b];if(G!==vl&&ti(G,b))return L[b]=2,G[b];if((m=o.propsOptions[0])&&ti(m,b))return L[b]=3,V[b];if(y!==vl&&ti(y,b))return L[b]=4,y[b];hQ&&(L[b]=0)}}const h=S6[b];let l,c;if(h)return b==="$attrs"&&uh(o,"get",b),h(o);if((l=A.__cssModules)&&(l=l[b]))return l;if(y!==vl&&ti(y,b))return L[b]=4,y[b];if(c=s.config.globalProperties,ti(c,b))return c[b]},set({_:o},b,y){const{data:T,setupState:G,ctx:V}=o;return BJ(G,b)?(G[b]=y,!0):T!==vl&&ti(T,b)?(T[b]=y,!0):ti(o.props,b)||b[0]==="$"&&b.slice(1)in o?!1:(V[b]=y,!0)},has({_:{data:o,setupState:b,accessCache:y,ctx:T,appContext:G,propsOptions:V}},L){let A;return!!y[L]||o!==vl&&ti(o,L)||BJ(b,L)||(A=V[0])&&ti(A,L)||ti(T,L)||ti(S6,L)||ti(G.config.globalProperties,L)},defineProperty(o,b,y){return y.get!=null?o._.accessCache[b]=0:ti(y,"value")&&this.set(o,b,y.value,null),Reflect.defineProperty(o,b,y)}};function ane(o){return Pa(o)?o.reduce((b,y)=>(b[y]=null,b),{}):o}let hQ=!0;function Oue(o){const b=mq(o),y=o.proxy,T=o.ctx;hQ=!1,b.beforeCreate&&sne(b.beforeCreate,o,"bc");const{data:G,computed:V,methods:L,watch:A,provide:s,inject:m,created:h,beforeMount:l,mounted:c,beforeUpdate:i,updated:u,activated:d,deactivated:g,beforeDestroy:v,beforeUnmount:x,destroyed:C,unmounted:_,render:$,renderTracked:S,renderTriggered:O,errorCaptured:D,serverPrefetch:N,expose:M,inheritAttrs:k,components:R,directives:F,filters:H}=b;if(m&&Pue(m,T,null),L)for(const ee in L){const J=L[ee];fs(J)&&(T[ee]=J.bind(y))}if(G){const ee=G.call(y,y);ol(ee)&&(o.data=ih(ee))}if(hQ=!0,V)for(const ee in V){const J=V[ee],K=fs(J)?J.bind(y,y):fs(J.get)?J.get.bind(y,y):Ap,ae=!fs(J)&&fs(J.set)?J.set.bind(y):Ap,Q=on({get:K,set:ae});Object.defineProperty(T,ee,{enumerable:!0,configurable:!0,get:()=>Q.value,set:he=>Q.value=he})}if(A)for(const ee in A)joe(A[ee],T,y,ee);if(s){const ee=fs(s)?s.call(y):s;Reflect.ownKeys(ee).forEach(J=>{Gl(J,ee[J])})}h&&sne(h,o,"c");function P(ee,J){Pa(J)?J.forEach(K=>ee(K.bind(y))):J&&ee(J.bind(y))}if(P(fq,l),P(Cg,c),P(Mue,i),P(Woe,u),P(cq,d),P(uq,g),P(Lue,D),P(Rue,S),P(_ue,O),P(dm,x),P(Goe,_),P(Eue,N),Pa(M))if(M.length){const ee=o.exposed||(o.exposed={});M.forEach(J=>{Object.defineProperty(ee,J,{get:()=>y[J],set:K=>y[J]=K})})}else o.exposed||(o.exposed={});$&&o.render===Ap&&(o.render=$),k!=null&&(o.inheritAttrs=k),R&&(o.components=R),F&&(o.directives=F)}function Pue(o,b,y=Ap){Pa(o)&&(o=mQ(o));for(const T in o){const G=o[T];let V;ol(G)?"default"in G?V=ni(G.from||T,G.default,!0):V=ni(G.from||T):V=ni(G),Wl(V)?Object.defineProperty(b,T,{enumerable:!0,configurable:!0,get:()=>V.value,set:L=>V.value=L}):b[T]=V}}function sne(o,b,y){vg(Pa(o)?o.map(T=>T.bind(b.proxy)):o.bind(b.proxy),b,y)}function joe(o,b,y,T){const G=T.includes(".")?Boe(y,T):()=>y[T];if(hc(o)){const V=b[o];fs(V)&&ta(G,V)}else if(fs(o))ta(G,o.bind(y));else if(ol(o))if(Pa(o))o.forEach(V=>joe(V,b,y,T));else{const V=fs(o.handler)?o.handler.bind(y):b[o.handler];fs(V)&&ta(G,V,o)}}function mq(o){const b=o.type,{mixins:y,extends:T}=b,{mixins:G,optionsCache:V,config:{optionMergeStrategies:L}}=o.appContext,A=V.get(b);let s;return A?s=A:!G.length&&!y&&!T?s=b:(s={},G.length&&G.forEach(m=>pB(s,m,L,!0)),pB(s,b,L)),ol(b)&&V.set(b,s),s}function pB(o,b,y,T=!1){const{mixins:G,extends:V}=b;V&&pB(o,V,y,!0),G&&G.forEach(L=>pB(o,L,y,!0));for(const L in b)if(!(T&&L==="expose")){const A=Iue[L]||y&&y[L];o[L]=A?A(o[L],b[L]):b[L]}return o}const Iue={data:ine,props:lne,emits:lne,methods:C6,computed:C6,beforeCreate:bd,created:bd,beforeMount:bd,mounted:bd,beforeUpdate:bd,updated:bd,beforeDestroy:bd,beforeUnmount:bd,destroyed:bd,unmounted:bd,activated:bd,deactivated:bd,errorCaptured:bd,serverPrefetch:bd,components:C6,directives:C6,watch:Fue,provide:ine,inject:Nue};function ine(o,b){return b?o?function(){return Mc(fs(o)?o.call(this,this):o,fs(b)?b.call(this,this):b)}:b:o}function Nue(o,b){return C6(mQ(o),mQ(b))}function mQ(o){if(Pa(o)){const b={};for(let y=0;y1)return y&&fs(b)?b.call(T&&T.proxy):b}}function zue(o,b,y,T=!1){const G={},V={};dB(V,JB,1),o.propsDefaults=Object.create(null),Koe(o,b,G,V);for(const L in o.propsOptions[0])L in G||(G[L]=void 0);y?o.props=T?G:oue(G):o.type.props?o.props=G:o.props=V,o.attrs=V}function Vue(o,b,y,T){const{props:G,attrs:V,vnode:{patchFlag:L}}=o,A=ds(G),[s]=o.propsOptions;let m=!1;if((T||L>0)&&!(L&16)){if(L&8){const h=o.vnode.dynamicProps;for(let l=0;l{s=!0;const[c,i]=Xoe(l,b,!0);Mc(L,c),i&&A.push(...i)};!y&&b.mixins.length&&b.mixins.forEach(h),o.extends&&h(o.extends),o.mixins&&o.mixins.forEach(h)}if(!V&&!s)return ol(o)&&T.set(o,pE),pE;if(Pa(V))for(let h=0;h-1,i[1]=d<0||u-1||ti(i,"default"))&&A.push(l)}}}const m=[L,A];return ol(o)&&T.set(o,m),m}function cne(o){return o[0]!=="$"}function une(o){const b=o&&o.toString().match(/^\s*(function|class) (\w+)/);return b?b[2]:o===null?"null":""}function fne(o,b){return une(o)===une(b)}function dne(o,b){return Pa(b)?b.findIndex(y=>fne(y,o)):fs(b)&&fne(b,o)?0:-1}const Joe=o=>o[0]==="_"||o==="$stable",gq=o=>Pa(o)?o.map(b0):[b0(o)],Uue=(o,b,y)=>{if(b._n)return b;const T=jr((...G)=>gq(b(...G)),y);return T._c=!1,T},Qoe=(o,b,y)=>{const T=o._ctx;for(const G in o){if(Joe(G))continue;const V=o[G];if(fs(V))b[G]=Uue(G,V,T);else if(V!=null){const L=gq(V);b[G]=()=>L}}},qoe=(o,b)=>{const y=gq(b);o.slots.default=()=>y},Wue=(o,b)=>{if(o.vnode.shapeFlag&32){const y=b._;y?(o.slots=ds(b),dB(b,"_",y)):Qoe(b,o.slots={})}else o.slots={},b&&qoe(o,b);dB(o.slots,JB,1)},Gue=(o,b,y)=>{const{vnode:T,slots:G}=o;let V=!0,L=vl;if(T.shapeFlag&32){const A=b._;A?y&&A===1?V=!1:(Mc(G,b),!y&&A===1&&delete G._):(V=!b.$stable,Qoe(b,G)),L=b}else b&&(qoe(o,b),L={default:1});if(V)for(const A in G)!Joe(A)&&!(A in L)&&delete G[A]};function pQ(o,b,y,T,G=!1){if(Pa(o)){o.forEach((c,i)=>pQ(c,b&&(Pa(b)?b[i]:b),y,T,G));return}if(sB(T)&&!G)return;const V=T.shapeFlag&4?QB(T.component)||T.component.proxy:T.el,L=G?null:V,{i:A,r:s}=o,m=b&&b.r,h=A.refs===vl?A.refs={}:A.refs,l=A.setupState;if(m!=null&&m!==s&&(hc(m)?(h[m]=null,ti(l,m)&&(l[m]=null)):Wl(m)&&(m.value=null)),fs(s))A2(s,A,12,[L,h]);else{const c=hc(s),i=Wl(s);if(c||i){const u=()=>{if(o.f){const d=c?ti(l,s)?l[s]:h[s]:s.value;G?Pa(d)&&GQ(d,V):Pa(d)?d.includes(V)||d.push(V):c?(h[s]=[V],ti(l,s)&&(l[s]=h[s])):(s.value=[V],o.k&&(h[o.k]=s.value))}else c?(h[s]=L,ti(l,s)&&(l[s]=L)):i&&(s.value=L,o.k&&(h[o.k]=L))};L?(u.id=-1,sh(u,y)):u()}}}const sh=Cue;function Zue(o){return jue(o)}function jue(o,b){const y=iQ();y.__VUE__=!0;const{insert:T,remove:G,patchProp:V,createElement:L,createText:A,createComment:s,setText:m,setElementText:h,parentNode:l,nextSibling:c,setScopeId:i=Ap,insertStaticContent:u}=o,d=(ke,Ne,Ve,Oe=null,Fe=null,ie=null,we=!1,se=null,ue=!!Ne.dynamicChildren)=>{if(ke===Ne)return;ke&&!u3(ke,Ne)&&(Oe=fe(ke),he(ke,Fe,ie,!0),ke=null),Ne.patchFlag===-2&&(ue=!1,Ne.dynamicChildren=null);const{type:pe,ref:le,shapeFlag:Te}=Ne;switch(pe){case j6:g(ke,Ne,Ve,Oe);break;case Mp:v(ke,Ne,Ve,Oe);break;case HJ:ke==null&&x(Ne,Ve,Oe,we);break;case Uo:R(ke,Ne,Ve,Oe,Fe,ie,we,se,ue);break;default:Te&1?$(ke,Ne,Ve,Oe,Fe,ie,we,se,ue):Te&6?F(ke,Ne,Ve,Oe,Fe,ie,we,se,ue):(Te&64||Te&128)&&pe.process(ke,Ne,Ve,Oe,Fe,ie,we,se,ue,ye)}le!=null&&Fe&&pQ(le,ke&&ke.ref,ie,Ne||ke,!Ne)},g=(ke,Ne,Ve,Oe)=>{if(ke==null)T(Ne.el=A(Ne.children),Ve,Oe);else{const Fe=Ne.el=ke.el;Ne.children!==ke.children&&m(Fe,Ne.children)}},v=(ke,Ne,Ve,Oe)=>{ke==null?T(Ne.el=s(Ne.children||""),Ve,Oe):Ne.el=ke.el},x=(ke,Ne,Ve,Oe)=>{[ke.el,ke.anchor]=u(ke.children,Ne,Ve,Oe,ke.el,ke.anchor)},C=({el:ke,anchor:Ne},Ve,Oe)=>{let Fe;for(;ke&&ke!==Ne;)Fe=c(ke),T(ke,Ve,Oe),ke=Fe;T(Ne,Ve,Oe)},_=({el:ke,anchor:Ne})=>{let Ve;for(;ke&&ke!==Ne;)Ve=c(ke),G(ke),ke=Ve;G(Ne)},$=(ke,Ne,Ve,Oe,Fe,ie,we,se,ue)=>{we=we||Ne.type==="svg",ke==null?S(Ne,Ve,Oe,Fe,ie,we,se,ue):N(ke,Ne,Fe,ie,we,se,ue)},S=(ke,Ne,Ve,Oe,Fe,ie,we,se)=>{let ue,pe;const{type:le,props:Te,shapeFlag:de,transition:Me,dirs:Re}=ke;if(ue=ke.el=L(ke.type,ie,Te&&Te.is,Te),de&8?h(ue,ke.children):de&16&&D(ke.children,ue,null,Oe,Fe,ie&&le!=="foreignObject",we,se),Re&&o3(ke,null,Oe,"created"),O(ue,ke,ke.scopeId,we,Oe),Te){for(const We in Te)We!=="value"&&!oB(We)&&V(ue,We,null,Te[We],ie,ke.children,Oe,Fe,ne);"value"in Te&&V(ue,"value",null,Te.value),(pe=Te.onVnodeBeforeMount)&&v0(pe,Oe,ke)}Re&&o3(ke,null,Oe,"beforeMount");const ze=(!Fe||Fe&&!Fe.pendingBranch)&&Me&&!Me.persisted;ze&&Me.beforeEnter(ue),T(ue,Ne,Ve),((pe=Te&&Te.onVnodeMounted)||ze||Re)&&sh(()=>{pe&&v0(pe,Oe,ke),ze&&Me.enter(ue),Re&&o3(ke,null,Oe,"mounted")},Fe)},O=(ke,Ne,Ve,Oe,Fe)=>{if(Ve&&i(ke,Ve),Oe)for(let ie=0;ie{for(let pe=ue;pe{const se=Ne.el=ke.el;let{patchFlag:ue,dynamicChildren:pe,dirs:le}=Ne;ue|=ke.patchFlag&16;const Te=ke.props||vl,de=Ne.props||vl;let Me;Ve&&a3(Ve,!1),(Me=de.onVnodeBeforeUpdate)&&v0(Me,Ve,Ne,ke),le&&o3(Ne,ke,Ve,"beforeUpdate"),Ve&&a3(Ve,!0);const Re=Fe&&Ne.type!=="foreignObject";if(pe?M(ke.dynamicChildren,pe,se,Ve,Oe,Re,ie):we||J(ke,Ne,se,null,Ve,Oe,Re,ie,!1),ue>0){if(ue&16)k(se,Ne,Te,de,Ve,Oe,Fe);else if(ue&2&&Te.class!==de.class&&V(se,"class",null,de.class,Fe),ue&4&&V(se,"style",Te.style,de.style,Fe),ue&8){const ze=Ne.dynamicProps;for(let We=0;We{Me&&v0(Me,Ve,Ne,ke),le&&o3(Ne,ke,Ve,"updated")},Oe)},M=(ke,Ne,Ve,Oe,Fe,ie,we)=>{for(let se=0;se{if(Ve!==Oe){if(Ve!==vl)for(const se in Ve)!oB(se)&&!(se in Oe)&&V(ke,se,Ve[se],null,we,Ne.children,Fe,ie,ne);for(const se in Oe){if(oB(se))continue;const ue=Oe[se],pe=Ve[se];ue!==pe&&se!=="value"&&V(ke,se,pe,ue,we,Ne.children,Fe,ie,ne)}"value"in Oe&&V(ke,"value",Ve.value,Oe.value)}},R=(ke,Ne,Ve,Oe,Fe,ie,we,se,ue)=>{const pe=Ne.el=ke?ke.el:A(""),le=Ne.anchor=ke?ke.anchor:A("");let{patchFlag:Te,dynamicChildren:de,slotScopeIds:Me}=Ne;Me&&(se=se?se.concat(Me):Me),ke==null?(T(pe,Ve,Oe),T(le,Ve,Oe),D(Ne.children,Ve,le,Fe,ie,we,se,ue)):Te>0&&Te&64&&de&&ke.dynamicChildren?(M(ke.dynamicChildren,de,Ve,Fe,ie,we,se),(Ne.key!=null||Fe&&Ne===Fe.subTree)&&pq(ke,Ne,!0)):J(ke,Ne,Ve,le,Fe,ie,we,se,ue)},F=(ke,Ne,Ve,Oe,Fe,ie,we,se,ue)=>{Ne.slotScopeIds=se,ke==null?Ne.shapeFlag&512?Fe.ctx.activate(Ne,Ve,Oe,we,ue):H(Ne,Ve,Oe,Fe,ie,we,ue):j(ke,Ne,ue)},H=(ke,Ne,Ve,Oe,Fe,ie,we)=>{const se=ke.component=ofe(ke,Oe,Fe);if(KB(ke)&&(se.ctx.renderer=ye),afe(se),se.asyncDep){if(Fe&&Fe.registerDep(se,P),!ke.el){const ue=se.subTree=ct(Mp);v(null,ue,Ne,Ve)}return}P(se,ke,Ne,Ve,Fe,ie,we)},j=(ke,Ne,Ve)=>{const Oe=Ne.component=ke.component;if(bue(ke,Ne,Ve))if(Oe.asyncDep&&!Oe.asyncResolved){ee(Oe,Ne,Ve);return}else Oe.next=Ne,hue(Oe.update),Oe.update();else Ne.el=ke.el,Oe.vnode=Ne},P=(ke,Ne,Ve,Oe,Fe,ie,we)=>{const se=()=>{if(ke.isMounted){let{next:le,bu:Te,u:de,parent:Me,vnode:Re}=ke,ze=le,We;a3(ke,!1),le?(le.el=Re.el,ee(ke,le,we)):le=Re,Te&&aB(Te),(We=le.props&&le.props.onVnodeBeforeUpdate)&&v0(We,Me,le,Re),a3(ke,!0);const ot=NJ(ke),dt=ke.subTree;ke.subTree=ot,d(dt,ot,l(dt.el),fe(dt),ke,Fe,ie),le.el=ot.el,ze===null&&xue(ke,ot.el),de&&sh(de,Fe),(We=le.props&&le.props.onVnodeUpdated)&&sh(()=>v0(We,Me,le,Re),Fe)}else{let le;const{el:Te,props:de}=Ne,{bm:Me,m:Re,parent:ze}=ke,We=sB(Ne);if(a3(ke,!1),Me&&aB(Me),!We&&(le=de&&de.onVnodeBeforeMount)&&v0(le,ze,Ne),a3(ke,!0),Te&&$e){const ot=()=>{ke.subTree=NJ(ke),$e(Te,ke.subTree,ke,Fe,null)};We?Ne.type.__asyncLoader().then(()=>!ke.isUnmounted&&ot()):ot()}else{const ot=ke.subTree=NJ(ke);d(null,ot,Ve,Oe,ke,Fe,ie),Ne.el=ot.el}if(Re&&sh(Re,Fe),!We&&(le=de&&de.onVnodeMounted)){const ot=Ne;sh(()=>v0(le,ze,ot),Fe)}(Ne.shapeFlag&256||ze&&sB(ze.vnode)&&ze.vnode.shapeFlag&256)&&ke.a&&sh(ke.a,Fe),ke.isMounted=!0,Ne=Ve=Oe=null}},ue=ke.effect=new QQ(se,()=>sq(pe),ke.scope),pe=ke.update=()=>ue.run();pe.id=ke.uid,a3(ke,!0),pe()},ee=(ke,Ne,Ve)=>{Ne.component=ke;const Oe=ke.vnode.props;ke.vnode=Ne,ke.next=null,Vue(ke,Ne.props,Oe,Ve),Gue(ke,Ne.children,Ve),$E(),tne(),OE()},J=(ke,Ne,Ve,Oe,Fe,ie,we,se,ue=!1)=>{const pe=ke&&ke.children,le=ke?ke.shapeFlag:0,Te=Ne.children,{patchFlag:de,shapeFlag:Me}=Ne;if(de>0){if(de&128){ae(pe,Te,Ve,Oe,Fe,ie,we,se,ue);return}else if(de&256){K(pe,Te,Ve,Oe,Fe,ie,we,se,ue);return}}Me&8?(le&16&&ne(pe,Fe,ie),Te!==pe&&h(Ve,Te)):le&16?Me&16?ae(pe,Te,Ve,Oe,Fe,ie,we,se,ue):ne(pe,Fe,ie,!0):(le&8&&h(Ve,""),Me&16&&D(Te,Ve,Oe,Fe,ie,we,se,ue))},K=(ke,Ne,Ve,Oe,Fe,ie,we,se,ue)=>{ke=ke||pE,Ne=Ne||pE;const pe=ke.length,le=Ne.length,Te=Math.min(pe,le);let de;for(de=0;dele?ne(ke,Fe,ie,!0,!1,Te):D(Ne,Ve,Oe,Fe,ie,we,se,ue,Te)},ae=(ke,Ne,Ve,Oe,Fe,ie,we,se,ue)=>{let pe=0;const le=Ne.length;let Te=ke.length-1,de=le-1;for(;pe<=Te&&pe<=de;){const Me=ke[pe],Re=Ne[pe]=ue?S2(Ne[pe]):b0(Ne[pe]);if(u3(Me,Re))d(Me,Re,Ve,null,Fe,ie,we,se,ue);else break;pe++}for(;pe<=Te&&pe<=de;){const Me=ke[Te],Re=Ne[de]=ue?S2(Ne[de]):b0(Ne[de]);if(u3(Me,Re))d(Me,Re,Ve,null,Fe,ie,we,se,ue);else break;Te--,de--}if(pe>Te){if(pe<=de){const Me=de+1,Re=Mede)for(;pe<=Te;)he(ke[pe],Fe,ie,!0),pe++;else{const Me=pe,Re=pe,ze=new Map;for(pe=Re;pe<=de;pe++){const ut=Ne[pe]=ue?S2(Ne[pe]):b0(Ne[pe]);ut.key!=null&&ze.set(ut.key,pe)}let We,ot=0;const dt=de-Re+1;let Ge=!1,Xe=0;const qe=new Array(dt);for(pe=0;pe=dt){he(ut,Fe,ie,!0);continue}let tt;if(ut.key!=null)tt=ze.get(ut.key);else for(We=Re;We<=de;We++)if(qe[We-Re]===0&&u3(ut,Ne[We])){tt=We;break}tt===void 0?he(ut,Fe,ie,!0):(qe[tt-Re]=pe+1,tt>=Xe?Xe=tt:Ge=!0,d(ut,Ne[tt],Ve,null,Fe,ie,we,se,ue),ot++)}const gt=Ge?Yue(qe):pE;for(We=gt.length-1,pe=dt-1;pe>=0;pe--){const ut=Re+pe,tt=Ne[ut],Ct=ut+1{const{el:ie,type:we,transition:se,children:ue,shapeFlag:pe}=ke;if(pe&6){Q(ke.component.subTree,Ne,Ve,Oe);return}if(pe&128){ke.suspense.move(Ne,Ve,Oe);return}if(pe&64){we.move(ke,Ne,Ve,ye);return}if(we===Uo){T(ie,Ne,Ve);for(let Te=0;Tese.enter(ie),Fe);else{const{leave:Te,delayLeave:de,afterLeave:Me}=se,Re=()=>T(ie,Ne,Ve),ze=()=>{Te(ie,()=>{Re(),Me&&Me()})};de?de(ie,Re,ze):ze()}else T(ie,Ne,Ve)},he=(ke,Ne,Ve,Oe=!1,Fe=!1)=>{const{type:ie,props:we,ref:se,children:ue,dynamicChildren:pe,shapeFlag:le,patchFlag:Te,dirs:de}=ke;if(se!=null&&pQ(se,null,Ve,ke,!0),le&256){Ne.ctx.deactivate(ke);return}const Me=le&1&&de,Re=!sB(ke);let ze;if(Re&&(ze=we&&we.onVnodeBeforeUnmount)&&v0(ze,Ne,ke),le&6)ce(ke.component,Ve,Oe);else{if(le&128){ke.suspense.unmount(Ve,Oe);return}Me&&o3(ke,null,Ne,"beforeUnmount"),le&64?ke.type.remove(ke,Ne,Ve,Fe,ye,Oe):pe&&(ie!==Uo||Te>0&&Te&64)?ne(pe,Ne,Ve,!1,!0):(ie===Uo&&Te&384||!Fe&&le&16)&&ne(ue,Ne,Ve),Oe&&ge(ke)}(Re&&(ze=we&&we.onVnodeUnmounted)||Me)&&sh(()=>{ze&&v0(ze,Ne,ke),Me&&o3(ke,null,Ne,"unmounted")},Ve)},ge=ke=>{const{type:Ne,el:Ve,anchor:Oe,transition:Fe}=ke;if(Ne===Uo){Se(Ve,Oe);return}if(Ne===HJ){_(ke);return}const ie=()=>{G(Ve),Fe&&!Fe.persisted&&Fe.afterLeave&&Fe.afterLeave()};if(ke.shapeFlag&1&&Fe&&!Fe.persisted){const{leave:we,delayLeave:se}=Fe,ue=()=>we(Ve,ie);se?se(ke.el,ie,ue):ue()}else ie()},Se=(ke,Ne)=>{let Ve;for(;ke!==Ne;)Ve=c(ke),G(ke),ke=Ve;G(Ne)},ce=(ke,Ne,Ve)=>{const{bum:Oe,scope:Fe,update:ie,subTree:we,um:se}=ke;Oe&&aB(Oe),Fe.stop(),ie&&(ie.active=!1,he(we,ke,Ne,Ve)),se&&sh(se,Ne),sh(()=>{ke.isUnmounted=!0},Ne),Ne&&Ne.pendingBranch&&!Ne.isUnmounted&&ke.asyncDep&&!ke.asyncResolved&&ke.suspenseId===Ne.pendingId&&(Ne.deps--,Ne.deps===0&&Ne.resolve())},ne=(ke,Ne,Ve,Oe=!1,Fe=!1,ie=0)=>{for(let we=ie;weke.shapeFlag&6?fe(ke.component.subTree):ke.shapeFlag&128?ke.suspense.next():c(ke.anchor||ke.el),X=(ke,Ne,Ve)=>{ke==null?Ne._vnode&&he(Ne._vnode,null,null,!0):d(Ne._vnode||null,ke,Ne,null,null,null,Ve),tne(),Poe(),Ne._vnode=ke},ye={p:d,um:he,m:Q,r:ge,mt:H,mc:D,pc:J,pbc:M,n:fe,o};let Ce,$e;return b&&([Ce,$e]=b(ye)),{render:X,hydrate:Ce,createApp:Hue(X,Ce)}}function a3({effect:o,update:b},y){o.allowRecurse=b.allowRecurse=y}function pq(o,b,y=!1){const T=o.children,G=b.children;if(Pa(T)&&Pa(G))for(let V=0;V>1,o[y[A]]0&&(b[T]=y[V-1]),y[V]=T)}}for(V=y.length,L=y[V-1];V-- >0;)y[V]=L,L=b[L];return y}const Kue=o=>o.__isTeleport,T6=o=>o&&(o.disabled||o.disabled===""),hne=o=>typeof SVGElement<"u"&&o instanceof SVGElement,vQ=(o,b)=>{const y=o&&o.to;return hc(y)?b?b(y):null:y},Xue={__isTeleport:!0,process(o,b,y,T,G,V,L,A,s,m){const{mc:h,pc:l,pbc:c,o:{insert:i,querySelector:u,createText:d,createComment:g}}=m,v=T6(b.props);let{shapeFlag:x,children:C,dynamicChildren:_}=b;if(o==null){const $=b.el=d(""),S=b.anchor=d("");i($,y,T),i(S,y,T);const O=b.target=vQ(b.props,u),D=b.targetAnchor=d("");O&&(i(D,O),L=L||hne(O));const N=(M,k)=>{x&16&&h(C,M,k,G,V,L,A,s)};v?N(y,S):O&&N(O,D)}else{b.el=o.el;const $=b.anchor=o.anchor,S=b.target=o.target,O=b.targetAnchor=o.targetAnchor,D=T6(o.props),N=D?y:S,M=D?$:O;if(L=L||hne(S),_?(c(o.dynamicChildren,_,N,G,V,L,A),pq(o,b,!0)):s||l(o,b,N,M,G,V,L,A,!1),v)D||YF(b,y,$,m,1);else if((b.props&&b.props.to)!==(o.props&&o.props.to)){const k=b.target=vQ(b.props,u);k&&YF(b,k,null,m,0)}else D&&YF(b,S,O,m,1)}eae(b)},remove(o,b,y,T,{um:G,o:{remove:V}},L){const{shapeFlag:A,children:s,anchor:m,targetAnchor:h,target:l,props:c}=o;if(l&&V(h),(L||!T6(c))&&(V(m),A&16))for(let i=0;i0?Tp||pE:null,que(),P6>0&&Tp&&Tp.push(o),o}function Ts(o,b,y,T,G,V){return tae(ff(o,b,y,T,G,V,!0))}function za(o,b,y,T,G){return tae(ct(o,b,y,T,G,!0))}function yQ(o){return o?o.__v_isVNode===!0:!1}function u3(o,b){return o.type===b.type&&o.key===b.key}const JB="__vInternal",nae=({key:o})=>o??null,iB=({ref:o,ref_key:b,ref_for:y})=>(typeof o=="number"&&(o=""+o),o!=null?hc(o)||Wl(o)||fs(o)?{i:lm,r:o,k:b,f:!!y}:o:null);function ff(o,b=null,y=null,T=0,G=null,V=o===Uo?0:1,L=!1,A=!1){const s={__v_isVNode:!0,__v_skip:!0,type:o,props:b,key:b&&nae(b),ref:b&&iB(b),scopeId:Foe,slotScopeIds:null,children:y,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:V,patchFlag:T,dynamicProps:G,dynamicChildren:null,appContext:null,ctx:lm};return A?(vq(s,y),V&128&&o.normalize(s)):y&&(s.shapeFlag|=hc(y)?8:16),P6>0&&!L&&Tp&&(s.patchFlag>0||V&6)&&s.patchFlag!==32&&Tp.push(s),s}const ct=efe;function efe(o,b=null,y=null,T=0,G=null,V=!1){if((!o||o===Zoe)&&(o=Mp),yQ(o)){const A=By(o,b,!0);return y&&vq(A,y),P6>0&&!V&&Tp&&(A.shapeFlag&6?Tp[Tp.indexOf(o)]=A:Tp.push(A)),A.patchFlag|=-2,A}if(ufe(o)&&(o=o.__vccOpts),b){b=tfe(b);let{class:A,style:s}=b;A&&!hc(A)&&(b.class=KQ(A)),ol(s)&&(Moe(s)&&!Pa(s)&&(s=Mc({},s)),b.style=YQ(s))}const L=hc(o)?1:wue(o)?128:Kue(o)?64:ol(o)?4:fs(o)?2:0;return ff(o,b,y,T,G,L,V,!0)}function tfe(o){return o?Moe(o)||JB in o?Mc({},o):o:null}function By(o,b,y=!1){const{props:T,ref:G,patchFlag:V,children:L}=o,A=b?Jo(T||{},b):T;return{__v_isVNode:!0,__v_skip:!0,type:o.type,props:A,key:A&&nae(A),ref:b&&b.ref?y&&G?Pa(G)?G.concat(iB(b)):[G,iB(b)]:iB(b):G,scopeId:o.scopeId,slotScopeIds:o.slotScopeIds,children:L,target:o.target,targetAnchor:o.targetAnchor,staticCount:o.staticCount,shapeFlag:o.shapeFlag,patchFlag:b&&o.type!==Uo?V===-1?16:V|16:V,dynamicProps:o.dynamicProps,dynamicChildren:o.dynamicChildren,appContext:o.appContext,dirs:o.dirs,transition:o.transition,component:o.component,suspense:o.suspense,ssContent:o.ssContent&&By(o.ssContent),ssFallback:o.ssFallback&&By(o.ssFallback),el:o.el,anchor:o.anchor,ctx:o.ctx,ce:o.ce}}function ii(o=" ",b=0){return ct(j6,null,o,b)}function cm(o="",b=!1){return b?(mo(),za(Mp,null,o)):ct(Mp,null,o)}function b0(o){return o==null||typeof o=="boolean"?ct(Mp):Pa(o)?ct(Uo,null,o.slice()):typeof o=="object"?S2(o):ct(j6,null,String(o))}function S2(o){return o.el===null&&o.patchFlag!==-1||o.memo?o:By(o)}function vq(o,b){let y=0;const{shapeFlag:T}=o;if(b==null)b=null;else if(Pa(b))y=16;else if(typeof b=="object")if(T&65){const G=b.default;G&&(G._c&&(G._d=!1),vq(o,G()),G._c&&(G._d=!0));return}else{y=32;const G=b._;!G&&!(JB in b)?b._ctx=lm:G===3&&lm&&(lm.slots._===1?b._=1:(b._=2,o.patchFlag|=1024))}else fs(b)?(b={default:b,_ctx:lm},y=32):(b=String(b),T&64?(y=16,b=[ii(b)]):y=8);o.children=b,o.shapeFlag|=y}function Jo(...o){const b={};for(let y=0;yzu||lm;let bq,fE,gne="__VUE_INSTANCE_SETTERS__";(fE=iQ()[gne])||(fE=iQ()[gne]=[]),fE.push(o=>zu=o),bq=o=>{fE.length>1?fE.forEach(b=>b(o)):fE[0](o)};const TE=o=>{bq(o),o.scope.on()},g3=()=>{zu&&zu.scope.off(),bq(null)};function rae(o){return o.vnode.shapeFlag&4}let I6=!1;function afe(o,b=!1){I6=b;const{props:y,children:T}=o.vnode,G=rae(o);zue(o,y,G,b),Wue(o,T);const V=G?sfe(o,b):void 0;return I6=!1,V}function sfe(o,b){const y=o.type;o.accessCache=Object.create(null),o.proxy=rq(new Proxy(o.ctx,$ue));const{setup:T}=y;if(T){const G=o.setupContext=T.length>1?lfe(o):null;TE(o),$E();const V=A2(T,o,0,[o.props,G]);if(OE(),g3(),foe(V)){if(V.then(g3,g3),b)return V.then(L=>{pne(o,L,b)}).catch(L=>{ZB(L,o,0)});o.asyncDep=V}else pne(o,V,b)}else oae(o,b)}function pne(o,b,y){fs(b)?o.type.__ssrInlineRender?o.ssrRender=b:o.render=b:ol(b)&&(o.setupState=Loe(b)),oae(o,y)}let vne;function oae(o,b,y){const T=o.type;if(!o.render){if(!b&&vne&&!T.render){const G=T.template||mq(o).template;if(G){const{isCustomElement:V,compilerOptions:L}=o.appContext.config,{delimiters:A,compilerOptions:s}=T,m=Mc(Mc({isCustomElement:V,delimiters:A},L),s);T.render=vne(G,m)}}o.render=T.render||Ap}TE(o),$E(),Oue(o),OE(),g3()}function ife(o){return o.attrsProxy||(o.attrsProxy=new Proxy(o.attrs,{get(b,y){return uh(o,"get","$attrs"),b[y]}}))}function lfe(o){const b=y=>{o.exposed=y||{}};return{get attrs(){return ife(o)},slots:o.slots,emit:o.emit,expose:b}}function QB(o){if(o.exposed)return o.exposeProxy||(o.exposeProxy=new Proxy(Loe(rq(o.exposed)),{get(b,y){if(y in b)return b[y];if(y in S6)return S6[y](o)},has(b,y){return y in b||y in S6}}))}function cfe(o,b=!0){return fs(o)?o.displayName||o.name:o.name||b&&o.__name}function ufe(o){return fs(o)&&"__vccOpts"in o}const on=(o,b)=>uue(o,b,I6);function um(o,b,y){const T=arguments.length;return T===2?ol(b)&&!Pa(b)?yQ(b)?ct(o,null,[b]):ct(o,b):ct(o,null,b):(T>3?y=Array.prototype.slice.call(arguments,2):T===3&&yQ(y)&&(y=[y]),ct(o,b,y))}const ffe=Symbol.for("v-scx"),dfe=()=>ni(ffe),hfe="3.3.4",mfe="http://www.w3.org/2000/svg",f3=typeof document<"u"?document:null,yne=f3&&f3.createElement("template"),gfe={insert:(o,b,y)=>{b.insertBefore(o,y||null)},remove:o=>{const b=o.parentNode;b&&b.removeChild(o)},createElement:(o,b,y,T)=>{const G=b?f3.createElementNS(mfe,o):f3.createElement(o,y?{is:y}:void 0);return o==="select"&&T&&T.multiple!=null&&G.setAttribute("multiple",T.multiple),G},createText:o=>f3.createTextNode(o),createComment:o=>f3.createComment(o),setText:(o,b)=>{o.nodeValue=b},setElementText:(o,b)=>{o.textContent=b},parentNode:o=>o.parentNode,nextSibling:o=>o.nextSibling,querySelector:o=>f3.querySelector(o),setScopeId(o,b){o.setAttribute(b,"")},insertStaticContent(o,b,y,T,G,V){const L=y?y.previousSibling:b.lastChild;if(G&&(G===V||G.nextSibling))for(;b.insertBefore(G.cloneNode(!0),y),!(G===V||!(G=G.nextSibling)););else{yne.innerHTML=T?`${o}`:o;const A=yne.content;if(T){const s=A.firstChild;for(;s.firstChild;)A.appendChild(s.firstChild);A.removeChild(s)}b.insertBefore(A,y)}return[L?L.nextSibling:b.firstChild,y?y.previousSibling:b.lastChild]}};function pfe(o,b,y){const T=o._vtc;T&&(b=(b?[b,...T]:[...T]).join(" ")),b==null?o.removeAttribute("class"):y?o.setAttribute("class",b):o.className=b}function vfe(o,b,y){const T=o.style,G=hc(y);if(y&&!G){if(b&&!hc(b))for(const V in b)y[V]==null&&bQ(T,V,"");for(const V in y)bQ(T,V,y[V])}else{const V=T.display;G?b!==y&&(T.cssText=y):b&&o.removeAttribute("style"),"_vod"in o&&(T.display=V)}}const bne=/\s*!important$/;function bQ(o,b,y){if(Pa(y))y.forEach(T=>bQ(o,b,T));else if(y==null&&(y=""),b.startsWith("--"))o.setProperty(b,y);else{const T=yfe(o,b);bne.test(y)?o.setProperty(DE(T),y.replace(bne,""),"important"):o[T]=y}}const xne=["Webkit","Moz","ms"],zJ={};function yfe(o,b){const y=zJ[b];if(y)return y;let T=bg(b);if(T!=="filter"&&T in o)return zJ[b]=T;T=_0(T);for(let G=0;GVJ||(Tfe.then(()=>VJ=0),VJ=Date.now());function Afe(o,b){const y=T=>{if(!T._vts)T._vts=Date.now();else if(T._vts<=y.attached)return;vg(Mfe(T,y.value),b,5,[T])};return y.value=o,y.attached=kfe(),y}function Mfe(o,b){if(Pa(b)){const y=o.stopImmediatePropagation;return o.stopImmediatePropagation=()=>{y.call(o),o._stopped=!0},b.map(T=>G=>!G._stopped&&T&&T(G))}else return b}const Sne=/^on[a-z]/,Efe=(o,b,y,T,G=!1,V,L,A,s)=>{b==="class"?pfe(o,T,G):b==="style"?vfe(o,y,T):zB(b)?WQ(b)||Cfe(o,b,y,T,L):(b[0]==="."?(b=b.slice(1),!0):b[0]==="^"?(b=b.slice(1),!1):_fe(o,b,T,G))?xfe(o,b,T,V,L,A,s):(b==="true-value"?o._trueValue=T:b==="false-value"&&(o._falseValue=T),bfe(o,b,T,G))};function _fe(o,b,y,T){return T?!!(b==="innerHTML"||b==="textContent"||b in o&&Sne.test(b)&&fs(y)):b==="spellcheck"||b==="draggable"||b==="translate"||b==="form"||b==="list"&&o.tagName==="INPUT"||b==="type"&&o.tagName==="TEXTAREA"||Sne.test(b)&&hc(y)?!1:b in o}const w2="transition",v6="animation",Hy=(o,{slots:b})=>um(kue,sae(o),b);Hy.displayName="Transition";const aae={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Rfe=Hy.props=Mc({},zoe,aae),s3=(o,b=[])=>{Pa(o)?o.forEach(y=>y(...b)):o&&o(...b)},Tne=o=>o?Pa(o)?o.some(b=>b.length>1):o.length>1:!1;function sae(o){const b={};for(const R in o)R in aae||(b[R]=o[R]);if(o.css===!1)return b;const{name:y="v",type:T,duration:G,enterFromClass:V=`${y}-enter-from`,enterActiveClass:L=`${y}-enter-active`,enterToClass:A=`${y}-enter-to`,appearFromClass:s=V,appearActiveClass:m=L,appearToClass:h=A,leaveFromClass:l=`${y}-leave-from`,leaveActiveClass:c=`${y}-leave-active`,leaveToClass:i=`${y}-leave-to`}=o,u=Lfe(G),d=u&&u[0],g=u&&u[1],{onBeforeEnter:v,onEnter:x,onEnterCancelled:C,onLeave:_,onLeaveCancelled:$,onBeforeAppear:S=v,onAppear:O=x,onAppearCancelled:D=C}=b,N=(R,F,H)=>{C2(R,F?h:A),C2(R,F?m:L),H&&H()},M=(R,F)=>{R._isLeaving=!1,C2(R,l),C2(R,i),C2(R,c),F&&F()},k=R=>(F,H)=>{const j=R?O:x,P=()=>N(F,R,H);s3(j,[F,P]),kne(()=>{C2(F,R?s:V),Py(F,R?h:A),Tne(j)||Ane(F,T,d,P)})};return Mc(b,{onBeforeEnter(R){s3(v,[R]),Py(R,V),Py(R,L)},onBeforeAppear(R){s3(S,[R]),Py(R,s),Py(R,m)},onEnter:k(!1),onAppear:k(!0),onLeave(R,F){R._isLeaving=!0;const H=()=>M(R,F);Py(R,l),lae(),Py(R,c),kne(()=>{R._isLeaving&&(C2(R,l),Py(R,i),Tne(_)||Ane(R,T,g,H))}),s3(_,[R,H])},onEnterCancelled(R){N(R,!1),s3(C,[R])},onAppearCancelled(R){N(R,!0),s3(D,[R])},onLeaveCancelled(R){M(R),s3($,[R])}})}function Lfe(o){if(o==null)return null;if(ol(o))return[UJ(o.enter),UJ(o.leave)];{const b=UJ(o);return[b,b]}}function UJ(o){return Cce(o)}function Py(o,b){b.split(/\s+/).forEach(y=>y&&o.classList.add(y)),(o._vtc||(o._vtc=new Set)).add(b)}function C2(o,b){b.split(/\s+/).forEach(T=>T&&o.classList.remove(T));const{_vtc:y}=o;y&&(y.delete(b),y.size||(o._vtc=void 0))}function kne(o){requestAnimationFrame(()=>{requestAnimationFrame(o)})}let Dfe=0;function Ane(o,b,y,T){const G=o._endId=++Dfe,V=()=>{G===o._endId&&T()};if(y)return setTimeout(V,y);const{type:L,timeout:A,propCount:s}=iae(o,b);if(!L)return T();const m=L+"end";let h=0;const l=()=>{o.removeEventListener(m,c),V()},c=i=>{i.target===o&&++h>=s&&l()};setTimeout(()=>{h(y[u]||"").split(", "),G=T(`${w2}Delay`),V=T(`${w2}Duration`),L=Mne(G,V),A=T(`${v6}Delay`),s=T(`${v6}Duration`),m=Mne(A,s);let h=null,l=0,c=0;b===w2?L>0&&(h=w2,l=L,c=V.length):b===v6?m>0&&(h=v6,l=m,c=s.length):(l=Math.max(L,m),h=l>0?L>m?w2:v6:null,c=h?h===w2?V.length:s.length:0);const i=h===w2&&/\b(transform|all)(,|$)/.test(T(`${w2}Property`).toString());return{type:h,timeout:l,propCount:c,hasTransform:i}}function Mne(o,b){for(;o.lengthEne(y)+Ene(o[T])))}function Ene(o){return Number(o.slice(0,-1).replace(",","."))*1e3}function lae(){return document.body.offsetHeight}const cae=new WeakMap,uae=new WeakMap,fae={name:"TransitionGroup",props:Mc({},Rfe,{tag:String,moveClass:String}),setup(o,{slots:b}){const y=yq(),T=Hoe();let G,V;return Woe(()=>{if(!G.length)return;const L=o.moveClass||`${o.name||"v"}-move`;if(!Ffe(G[0].el,y.vnode.el,L))return;G.forEach(Pfe),G.forEach(Ife);const A=G.filter(Nfe);lae(),A.forEach(s=>{const m=s.el,h=m.style;Py(m,L),h.transform=h.webkitTransform=h.transitionDuration="";const l=m._moveCb=c=>{c&&c.target!==m||(!c||/transform$/.test(c.propertyName))&&(m.removeEventListener("transitionend",l),m._moveCb=null,C2(m,L))};m.addEventListener("transitionend",l)})}),()=>{const L=ds(o),A=sae(L);let s=L.tag||Uo;G=V,V=b.default?lq(b.default()):[];for(let m=0;mdelete o.mode;fae.props;const Ofe=fae;function Pfe(o){const b=o.el;b._moveCb&&b._moveCb(),b._enterCb&&b._enterCb()}function Ife(o){uae.set(o,o.el.getBoundingClientRect())}function Nfe(o){const b=cae.get(o),y=uae.get(o),T=b.left-y.left,G=b.top-y.top;if(T||G){const V=o.el.style;return V.transform=V.webkitTransform=`translate(${T}px,${G}px)`,V.transitionDuration="0s",o}}function Ffe(o,b,y){const T=o.cloneNode();o._vtc&&o._vtc.forEach(L=>{L.split(/\s+/).forEach(A=>A&&T.classList.remove(A))}),y.split(/\s+/).forEach(L=>L&&T.classList.add(L)),T.style.display="none";const G=b.nodeType===1?b:b.parentNode;G.appendChild(T);const{hasTransform:V}=iae(T);return G.removeChild(T),V}const _ne=o=>{const b=o.props["onUpdate:modelValue"]||!1;return Pa(b)?y=>aB(b,y):b};function Bfe(o){o.target.composing=!0}function Rne(o){const b=o.target;b.composing&&(b.composing=!1,b.dispatchEvent(new Event("input")))}const Hfe={created(o,{modifiers:{lazy:b,trim:y,number:T}},G){o._assign=_ne(G);const V=T||G.props&&G.props.type==="number";mE(o,b?"change":"input",L=>{if(L.target.composing)return;let A=o.value;y&&(A=A.trim()),V&&(A=sQ(A)),o._assign(A)}),y&&mE(o,"change",()=>{o.value=o.value.trim()}),b||(mE(o,"compositionstart",Bfe),mE(o,"compositionend",Rne),mE(o,"change",Rne))},mounted(o,{value:b}){o.value=b??""},beforeUpdate(o,{value:b,modifiers:{lazy:y,trim:T,number:G}},V){if(o._assign=_ne(V),o.composing||document.activeElement===o&&o.type!=="range"&&(y||T&&o.value.trim()===b||(G||o.type==="number")&&sQ(o.value)===b))return;const L=b??"";o.value!==L&&(o.value=L)}},zfe=["ctrl","shift","alt","meta"],Vfe={stop:o=>o.stopPropagation(),prevent:o=>o.preventDefault(),self:o=>o.target!==o.currentTarget,ctrl:o=>!o.ctrlKey,shift:o=>!o.shiftKey,alt:o=>!o.altKey,meta:o=>!o.metaKey,left:o=>"button"in o&&o.button!==0,middle:o=>"button"in o&&o.button!==1,right:o=>"button"in o&&o.button!==2,exact:(o,b)=>zfe.some(y=>o[`${y}Key`]&&!b.includes(y))},Lne=(o,b)=>(y,...T)=>{for(let G=0;G{y6(o,!1)}):y6(o,b))},beforeUnmount(o,{value:b}){y6(o,b)}};function y6(o,b){o.style.display=b?o._vod:"none"}const Ufe=Mc({patchProp:Efe},gfe);let Dne;function Wfe(){return Dne||(Dne=Zue(Ufe))}const Gfe=(...o)=>{const b=Wfe().createApp(...o),{mount:y}=b;return b.mount=T=>{const G=Zfe(T);if(!G)return;const V=b._component;!fs(V)&&!V.render&&!V.template&&(V.template=G.innerHTML),G.innerHTML="";const L=y(G,!1,G instanceof SVGElement);return G instanceof Element&&(G.removeAttribute("v-cloak"),G.setAttribute("data-v-app","")),L},b};function Zfe(o){return hc(o)?document.querySelector(o):o}function dae(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var hae={exports:{}};(function(o,b){(function(T,G){o.exports=G()})(self,function(){return function(){var y={8847:function(L,A,s){var m=s(1828),h={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var l in h){var c=l.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");m.addStyleRule(c,h[l])}},8222:function(L,A,s){L.exports=s(2887)},7206:function(L,A,s){L.exports=s(822)},9509:function(L,A,s){L.exports=s(2201)},9548:function(L,A,s){L.exports=s(8729)},1039:function(L,A,s){L.exports=s(4382)},4296:function(L,A,s){L.exports=s(3102)},2576:function(L,A,s){var m=s(9548);m.register([s(7206),s(4201),s(8222),s(1039),s(4296),s(6398),s(9509)]),L.exports=m},4201:function(L,A,s){L.exports=s(8810)},6398:function(L,A,s){L.exports=s(2275)},2884:function(L){L.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},215:function(L,A,s){var m=s(2884),h=s(1940),l=s(5555),c=s(4467).templatedArray;s(4695),L.exports=c("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:h({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:m.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:m.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",l.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",l.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",l.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",l.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:h({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},3749:function(L,A,s){var m=s(1828),h=s(9298),l=s(2605).draw;L.exports=function(d){var g=d._fullLayout,v=m.filterVisible(g.annotations);if(v.length&&d._fullData.length)return m.syncOrAsync([l,c],d)};function c(u){var d=u._fullLayout;m.filterVisible(d.annotations).forEach(function(g){var v=h.getFromId(u,g.xref),x=h.getFromId(u,g.yref),C=h.getRefType(g.xref),_=h.getRefType(g.yref);g._extremes={},C==="range"&&i(g,v),_==="range"&&i(g,x)})}function i(u,d){var g=d._id,v=g.charAt(0),x=u[v],C=u["a"+v],_=u[v+"ref"],$=u["a"+v+"ref"],S=u["_"+v+"padplus"],O=u["_"+v+"padminus"],D={x:1,y:-1}[v]*u[v+"shift"],N=3*u.arrowsize*u.arrowwidth||0,M=N+D,k=N-D,R=3*u.startarrowsize*u.arrowwidth||0,F=R+D,H=R-D,j;if($===_){var P=h.findExtremes(d,[d.r2c(x)],{ppadplus:M,ppadminus:k}),ee=h.findExtremes(d,[d.r2c(C)],{ppadplus:Math.max(S,F),ppadminus:Math.max(O,H)});j={min:[P.min[0],ee.min[0]],max:[P.max[0],ee.max[0]]}}else F=C?F+C:F,H=C?H-C:H,j=h.findExtremes(d,[d.r2c(x)],{ppadplus:Math.max(S,M,F),ppadminus:Math.max(O,k,H)});u._extremes[g]=j}},4317:function(L,A,s){var m=s(1828),h=s(3972),l=s(4467).arrayEditor;L.exports={hasClickToShow:c,onClick:i};function c(g,v){var x=u(g,v);return x.on.length>0||x.explicitOff.length>0}function i(g,v){var x=u(g,v),C=x.on,_=x.off.concat(x.explicitOff),$={},S=g._fullLayout.annotations,O,D;if(C.length||_.length){for(O=0;O.6666666666666666?Gn="right":Gn="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Gn]}for(var Gt=!1,Yt=["x","y"],Nt=0;Nt1)&&(_n===pn?(ht=sn.r2fraction(R["a"+Ft]),(ht<0||ht>1)&&(Gt=!0)):Gt=!0),ft=sn._offset+sn.r2p(R[Ft]),$t=.5}else{var pt=it==="domain";Ft==="x"?(vt=R[Ft],ft=pt?sn._offset+sn._length*vt:ft=J.l+J.w*vt):(vt=1-R[Ft],ft=pt?sn._offset+sn._length*vt:ft=J.t+J.h*vt),$t=R.showarrow?.5:vt}if(R.showarrow){lt.head=ft;var Tt=R["a"+Ft];if(Ze=an*Ct(.5,R.xanchor)-Cn*Ct(.5,R.yanchor),_n===pn){var Et=u.getRefType(_n);Et==="domain"?(Ft==="y"&&(Tt=1-Tt),lt.tail=sn._offset+sn._length*Tt):Et==="paper"?Ft==="y"?(Tt=1-Tt,lt.tail=J.t+J.h*Tt):lt.tail=J.l+J.w*Tt:lt.tail=sn._offset+sn.r2p(Tt),wt=Ze}else lt.tail=ft+Tt,wt=Ze+Tt;lt.text=lt.tail+Ze;var fn=ee[Ft==="x"?"width":"height"];if(pn==="paper"&&(lt.head=c.constrain(lt.head,1,fn-1)),_n==="pixel"){var tn=-Math.max(lt.tail-3,lt.text),Zt=Math.min(lt.tail+3,lt.text)-fn;tn>0?(lt.tail+=tn,lt.text+=tn):Zt>0&&(lt.tail-=Zt,lt.text-=Zt)}lt.tail+=wn,lt.head+=wn}else Ze=jn*Ct($t,Wn),wt=Ze,lt.text=ft+Ze;lt.text+=wn,Ze+=wn,wt+=wn,R["_"+Ft+"padplus"]=jn/2+wt,R["_"+Ft+"padminus"]=jn/2-wt,R["_"+Ft+"size"]=jn,R["_"+Ft+"shift"]=Ze}if(Gt){Ve.remove();return}var Dt=0,un=0;if(R.align!=="left"&&(Dt=(qe-Ge)*(R.align==="center"?.5:1)),R.valign!=="top"&&(un=(gt-Xe)*(R.valign==="middle"?.5:1)),ot)We.select("svg").attr({x:ie+Dt-1,y:ie+un}).call(g.setClipUrl,se?ne:null,k);else{var Un=ie+un-dt.top,tr=ie+Dt-dt.left;Te.call(x.positionText,tr,Un).call(g.setClipUrl,se?ne:null,k)}ue.select("rect").call(g.setRect,ie,ie,qe,gt),we.call(g.setRect,Oe/2,Oe/2,ut-Oe,tt-Oe),Ve.call(g.setTranslate,Math.round(fe.x.text-ut/2),Math.round(fe.y.text-tt/2)),Ce.attr({transform:"rotate("+X+","+fe.x.text+","+fe.y.text+")"});var Er=function(pr,Gn){ye.selectAll(".annotation-arrow-g").remove();var Ir=fe.x.head,Tr=fe.y.head,rr=fe.x.tail+pr,Yr=fe.y.tail+Gn,_r=fe.x.text+pr,Ln=fe.y.text+Gn,xr=c.rotationXYMatrix(X,_r,Ln),or=c.apply2DTransform(xr),wr=c.apply2DTransform2(xr),ro=+we.attr("width"),vo=+we.attr("height"),Cr=_r-.5*ro,He=Cr+ro,De=Ln-.5*vo,St=De+vo,kt=[[Cr,De,Cr,St],[Cr,St,He,St],[He,St,He,De],[He,De,Cr,De]].map(wr);if(!kt.reduce(function(gn,Qn){return gn^!!c.segmentsIntersect(Ir,Tr,Ir+1e6,Tr+1e6,Qn[0],Qn[1],Qn[2],Qn[3])},!1)){kt.forEach(function(gn){var Qn=c.segmentsIntersect(rr,Yr,Ir,Tr,gn[0],gn[1],gn[2],gn[3]);Qn&&(rr=Qn.x,Yr=Qn.y)});var Pt=R.arrowwidth,Bt=R.arrowcolor,Ut=R.arrowside,Ot=ye.append("g").style({opacity:d.opacity(Bt)}).classed("annotation-arrow-g",!0),_t=Ot.append("path").attr("d","M"+rr+","+Yr+"L"+Ir+","+Tr).style("stroke-width",Pt+"px").call(d.stroke,d.rgb(Bt));if(S(_t,Ut,R),K.annotationPosition&&_t.node().parentNode&&!H){var qt=Ir,cn=Tr;if(R.standoff){var Qt=Math.sqrt(Math.pow(Ir-rr,2)+Math.pow(Tr-Yr,2));qt+=R.standoff*(rr-Ir)/Qt,cn+=R.standoff*(Yr-Tr)/Qt}var nn=Ot.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(rr-qt)+","+(Yr-cn),transform:i(qt,cn)}).style("stroke-width",Pt+6+"px").call(d.stroke,"rgba(0,0,0,0)").call(d.fill,"rgba(0,0,0,0)"),Sn,bn;_.init({element:nn.node(),gd:k,prepFn:function(){var gn=g.getTranslate(Ve);Sn=gn.x,bn=gn.y,j&&j.autorange&&ge(j._name+".autorange",!0),P&&P.autorange&&ge(P._name+".autorange",!0)},moveFn:function(gn,Qn){var Bn=or(Sn,bn),Hr=Bn[0]+gn,fr=Bn[1]+Qn;Ve.call(g.setTranslate,Hr,fr),Se("x",N(j,gn,"x",J,R)),Se("y",N(P,Qn,"y",J,R)),R.axref===R.xref&&Se("ax",N(j,gn,"ax",J,R)),R.ayref===R.yref&&Se("ay",N(P,Qn,"ay",J,R)),Ot.attr("transform",i(gn,Qn)),Ce.attr({transform:"rotate("+X+","+Hr+","+fr+")"})},doneFn:function(){h.call("_guiRelayout",k,ce());var gn=document.querySelector(".js-notes-box-panel");gn&&gn.redraw(gn.selectedObj)}})}}};if(R.showarrow&&Er(0,0),$e){var zt;_.init({element:Ve.node(),gd:k,prepFn:function(){zt=Ce.attr("transform")},moveFn:function(pr,Gn){var Ir="pointer";if(R.showarrow)R.axref===R.xref?Se("ax",N(j,pr,"ax",J,R)):Se("ax",R.ax+pr),R.ayref===R.yref?Se("ay",N(P,Gn,"ay",J.w,R)):Se("ay",R.ay+Gn),Er(pr,Gn);else{if(H)return;var Tr,rr;if(j)Tr=N(j,pr,"x",J,R);else{var Yr=R._xsize/J.w,_r=R.x+(R._xshift-R.xshift)/J.w-Yr/2;Tr=_.align(_r+pr/J.w,Yr,0,1,R.xanchor)}if(P)rr=N(P,Gn,"y",J,R);else{var Ln=R._ysize/J.h,xr=R.y-(R._yshift+R.yshift)/J.h-Ln/2;rr=_.align(xr-Gn/J.h,Ln,0,1,R.yanchor)}Se("x",Tr),Se("y",rr),(!j||!P)&&(Ir=_.getCursor(j?.5:Tr,P?.5:rr,R.xanchor,R.yanchor))}Ce.attr({transform:i(pr,Gn)+zt}),C(Ve,Ir)},clickFn:function(pr,Gn){R.captureevents&&k.emit("plotly_clickannotation",Ne(Gn))},doneFn:function(){C(Ve),h.call("_guiRelayout",k,ce());var pr=document.querySelector(".js-notes-box-panel");pr&&pr.redraw(pr.selectedObj)}})}}K.annotationText?Te.call(x.makeEditable,{delegate:Ve,gd:k}).call(de).on("edit",function(Re){R.text=Re,this.call(de),Se("text",Re),j&&j.autorange&&ge(j._name+".autorange",!0),P&&P.autorange&&ge(P._name+".autorange",!0),h.call("_guiRelayout",k,ce())}):Te.call(de)}},3011:function(L,A,s){var m=s(9898),h=s(7901),l=s(2884),c=s(1828),i=c.strScale,u=c.strRotate,d=c.strTranslate;L.exports=function(v,x,C){var _=v.node(),$=l[C.arrowhead||0],S=l[C.startarrowhead||0],O=(C.arrowwidth||1)*(C.arrowsize||1),D=(C.arrowwidth||1)*(C.startarrowsize||1),N=x.indexOf("start")>=0,M=x.indexOf("end")>=0,k=$.backoff*O+C.standoff,R=S.backoff*D+C.startstandoff,F,H,j,P;if(_.nodeName==="line"){F={x:+v.attr("x1"),y:+v.attr("y1")},H={x:+v.attr("x2"),y:+v.attr("y2")};var ee=F.x-H.x,J=F.y-H.y;if(j=Math.atan2(J,ee),P=j+Math.PI,k&&R&&k+R>Math.sqrt(ee*ee+J*J)){Ce();return}if(k){if(k*k>ee*ee+J*J){Ce();return}var K=k*Math.cos(j),ae=k*Math.sin(j);H.x+=K,H.y+=ae,v.attr({x2:H.x,y2:H.y})}if(R){if(R*R>ee*ee+J*J){Ce();return}var Q=R*Math.cos(j),he=R*Math.sin(j);F.x-=Q,F.y-=he,v.attr({x1:F.x,y1:F.y})}}else if(_.nodeName==="path"){var ge=_.getTotalLength(),Se="";if(ge1){C=!0;break}}C?i.fullLayout._infolayer.select(".annotation-"+i.id+'[data-index="'+v+'"]').remove():(x._pdata=h(i.glplot.cameraParams,[u.xaxis.r2l(x.x)*d[0],u.yaxis.r2l(x.y)*d[1],u.zaxis.r2l(x.z)*d[2]]),m(i.graphDiv,x,v,i.id,x._xa,x._ya))}}},2468:function(L,A,s){var m=s(3972),h=s(1828);L.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:s(6997)}}},layoutAttributes:s(6997),handleDefaults:s(226),includeBasePlot:l,convert:s(5485),draw:s(2188)};function l(c,i){var u=m.subplotsRegistry.gl3d;if(u)for(var d=u.attrRegex,g=Object.keys(c),v=0;v=0)))return v;if(S===3)_[S]>1&&(_[S]=1);else if(_[S]>=1)return v}var O=Math.round(_[0]*255)+", "+Math.round(_[1]*255)+", "+Math.round(_[2]*255);return $?"rgba("+O+", "+_[3]+")":"rgb("+O+")"}},3583:function(L,A,s){var m=s(3838),h=s(1940),l=s(1426).extendFlat,c=s(962).overrideAll;L.exports=c({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:m.linecolor,outlinewidth:m.linewidth,bordercolor:m.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:m.minor.tickmode,nticks:m.nticks,tick0:m.tick0,dtick:m.dtick,tickvals:m.tickvals,ticktext:m.ticktext,ticks:l({},m.ticks,{dflt:""}),ticklabeloverflow:l({},m.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:m.ticklen,tickwidth:m.tickwidth,tickcolor:m.tickcolor,ticklabelstep:m.ticklabelstep,showticklabels:m.showticklabels,labelalias:m.labelalias,tickfont:h({}),tickangle:m.tickangle,tickformat:m.tickformat,tickformatstops:m.tickformatstops,tickprefix:m.tickprefix,showtickprefix:m.showtickprefix,ticksuffix:m.ticksuffix,showticksuffix:m.showticksuffix,separatethousands:m.separatethousands,exponentformat:m.exponentformat,minexponent:m.minexponent,showexponent:m.showexponent,title:{text:{valType:"string"},font:h({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:h({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},939:function(L){L.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},2499:function(L,A,s){var m=s(1828),h=s(4467),l=s(6218),c=s(8701),i=s(6115),u=s(9426),d=s(3583);L.exports=function(v,x,C){var _=h.newContainer(x,"colorbar"),$=v.colorbar||{};function S(fe,X){return m.coerce($,_,d,fe,X)}var O=C.margin||{t:0,b:0,l:0,r:0},D=C.width-O.l-O.r,N=C.height-O.t-O.b,M=S("orientation"),k=M==="v",R=S("thicknessmode");S("thickness",R==="fraction"?30/(k?D:N):30);var F=S("lenmode");S("len",F==="fraction"?1:k?N:D);var H=S("yref"),j=S("xref"),P=H==="paper",ee=j==="paper",J,K,ae,Q="left";k?(ae="middle",Q=ee?"left":"right",J=ee?1.02:1,K=.5):(ae=P?"bottom":"top",Q="center",J=.5,K=P?1.02:1),m.coerce($,_,{x:{valType:"number",min:ee?-2:0,max:ee?3:1,dflt:J}},"x"),m.coerce($,_,{y:{valType:"number",min:P?-2:0,max:P?3:1,dflt:K}},"y"),S("xanchor",Q),S("xpad"),S("yanchor",ae),S("ypad"),m.noneOrAll($,_,["x","y"]),S("outlinecolor"),S("outlinewidth"),S("bordercolor"),S("borderwidth"),S("bgcolor");var he=m.coerce($,_,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:k?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");S("ticklabeloverflow",he.indexOf("inside")!==-1?"hide past domain":"hide past div"),l($,_,S,"linear");var ge=C.font,Se={outerTicks:!1,font:ge};he.indexOf("inside")!==-1&&(Se.bgColor="black"),u($,_,S,"linear",Se),i($,_,S,"linear",Se),c($,_,S,"linear",Se),S("title.text",C._dfltTitle.colorbar);var ce=_.showticklabels?_.tickfont:ge,ne=m.extendFlat({},ce,{color:ge.color,size:m.bigFont(ce.size)});m.coerceFont(S,"title.font",ne),S("title.side",k?"top":"right")}},8981:function(L,A,s){var m=s(9898),h=s(4267),l=s(4875),c=s(3972),i=s(9298),u=s(8569),d=s(1828),g=d.strTranslate,v=s(1426).extendFlat,x=s(6964),C=s(1424),_=s(7901),$=s(2998),S=s(3893),O=s(2869).flipScale,D=s(1453),N=s(2830),M=s(3838),k=s(8783),R=k.LINE_SPACING,F=k.FROM_TL,H=k.FROM_BR,j=s(939).cn;function P(he){var ge=he._fullLayout,Se=ge._infolayer.selectAll("g."+j.colorbar).data(ee(he),function(ce){return ce._id});Se.enter().append("g").attr("class",function(ce){return ce._id}).classed(j.colorbar,!0),Se.each(function(ce){var ne=m.select(this);d.ensureSingle(ne,"rect",j.cbbg),d.ensureSingle(ne,"g",j.cbfills),d.ensureSingle(ne,"g",j.cblines),d.ensureSingle(ne,"g",j.cbaxis,function(X){X.classed(j.crisp,!0)}),d.ensureSingle(ne,"g",j.cbtitleunshift,function(X){X.append("g").classed(j.cbtitle,!0)}),d.ensureSingle(ne,"rect",j.cboutline);var fe=J(ne,ce,he);fe&&fe.then&&(he._promises||[]).push(fe),he._context.edits.colorbarPosition&&K(ne,ce,he)}),Se.exit().each(function(ce){l.autoMargin(he,ce._id)}).remove(),Se.order()}function ee(he){var ge=he._fullLayout,Se=he.calcdata,ce=[],ne,fe,X,ye;function Ce(pe){return v(pe,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function $e(){typeof ye.calc=="function"?ye.calc(he,X,ne):(ne._fillgradient=fe.reversescale?O(fe.colorscale):fe.colorscale,ne._zrange=[fe[ye.min],fe[ye.max]])}for(var ke=0;ke1){var lt=Math.pow(10,Math.floor(Math.log(wn)/Math.LN10));jn*=lt*d.roundUp(wn/lt,[2,5,10]),(Math.abs(dt.start)/dt.size+1e-6)%1<2e-6&&(an.tick0=0)}an.dtick=jn}an.domain=ce?[sn+Fe/le.h,sn+Ct-Fe/le.h]:[sn+Oe/le.w,sn+Ct-Oe/le.w],an.setScale(),he.attr("transform",g(Math.round(le.l),Math.round(le.t)));var ft=he.select("."+j.cbtitleunshift).attr("transform",g(-Math.round(le.l),-Math.round(le.t))),wt=an.ticklabelposition,vt=an.title.font.size,$t=he.select("."+j.cbaxis),Ze,it=0,ht=0;function pt(Zt,Dt){var un={propContainer:an,propName:ge._propPrefix+"title",traceIndex:ge._traceIndex,_meta:ge._meta,placeholder:pe._dfltTitle.colorbar,containerGroup:he.select("."+j.cbtitle)},Un=Zt.charAt(0)==="h"?Zt.substr(1):"h"+Zt;he.selectAll("."+Un+",."+Un+"-math-group").remove(),$.draw(Se,Zt,v(un,Dt||{}))}function Tt(){if(ce&&Cn||!ce&&!Cn){var Zt,Dt;Re==="top"&&(Zt=Oe+le.l+Gt*ie,Dt=Fe+le.t+Yt*(1-sn-Ct)+3+vt*.75),Re==="bottom"&&(Zt=Oe+le.l+Gt*ie,Dt=Fe+le.t+Yt*(1-sn)-3-vt*.25),Re==="right"&&(Dt=Fe+le.t+Yt*we+3+vt*.75,Zt=Oe+le.l+Gt*sn),pt(an._id+"title",{attributes:{x:Zt,y:Dt,"text-anchor":ce?"start":"middle"}})}}function Et(){if(ce&&!Cn||!ce&&Cn){var Zt=an.position||0,Dt=an._offset+an._length/2,un,Un;if(Re==="right")Un=Dt,un=le.l+Gt*Zt+10+vt*(an.showticklabels?1:.5);else if(un=Dt,Re==="bottom"&&(Un=le.t+Yt*Zt+10+(wt.indexOf("inside")===-1?an.tickfont.size:0)+(an.ticks!=="intside"&&ge.ticklen||0)),Re==="top"){var tr=Me.text.split("
    ").length;Un=le.t+Yt*Zt+10-gt-R*vt*tr}pt((ce?"h":"v")+an._id+"title",{avoid:{selection:m.select(Se).selectAll("g."+an._id+"tick"),side:Re,offsetTop:ce?0:le.t,offsetLeft:ce?le.l:0,maxShift:ce?pe.width:pe.height},attributes:{x:un,y:Un,"text-anchor":"middle"},transform:{rotate:ce?-90:0,offset:0}})}}function fn(){if(!ce&&!Cn||ce&&Cn){var Zt=he.select("."+j.cbtitle),Dt=Zt.select("text"),un=[-Ce/2,Ce/2],Un=Zt.select(".h"+an._id+"title-math-group").node(),tr=15.6;Dt.node()&&(tr=parseInt(Dt.node().style.fontSize,10)*R);var Er;if(Un?(Er=C.bBox(Un),ht=Er.width,it=Er.height,it>tr&&(un[1]-=(it-tr)/2)):Dt.node()&&!Dt.classed(j.jsPlaceholder)&&(Er=C.bBox(Dt.node()),ht=Er.width,it=Er.height),ce){if(it){if(it+=5,Re==="top")an.domain[1]-=it/le.h,un[1]*=-1;else{an.domain[0]+=it/le.h;var zt=S.lineCount(Dt);un[1]+=(1-zt)*tr}Zt.attr("transform",g(un[0],un[1])),an.setScale()}}else ht&&(Re==="right"&&(an.domain[0]+=(ht+vt/2)/le.w),Zt.attr("transform",g(un[0],un[1])),an.setScale())}he.selectAll("."+j.cbfills+",."+j.cblines).attr("transform",ce?g(0,Math.round(le.h*(1-an.domain[1]))):g(Math.round(le.w*an.domain[0]),0)),$t.attr("transform",ce?g(0,Math.round(-le.t)):g(Math.round(-le.l),0));var pr=he.select("."+j.cbfills).selectAll("rect."+j.cbfill).attr("style","").data(Xe);pr.enter().append("rect").classed(j.cbfill,!0).attr("style",""),pr.exit().remove();var Gn=ze.map(an.c2p).map(Math.round).sort(function(_r,Ln){return _r-Ln});pr.each(function(_r,Ln){var xr=[Ln===0?ze[0]:(Xe[Ln]+Xe[Ln-1])/2,Ln===Xe.length-1?ze[1]:(Xe[Ln]+Xe[Ln+1])/2].map(an.c2p).map(Math.round);ce&&(xr[1]=d.constrain(xr[1]+(xr[1]>xr[0])?1:-1,Gn[0],Gn[1]));var or=m.select(this).attr(ce?"x":"y",Nt).attr(ce?"y":"x",m.min(xr)).attr(ce?"width":"height",Math.max(gt,2)).attr(ce?"height":"width",Math.max(m.max(xr)-m.min(xr),2));if(ge._fillgradient)C.gradient(or,Se,ge._id,ce?"vertical":"horizontalreversed",ge._fillgradient,"fill");else{var wr=ot(_r).replace("e-","");or.attr("fill",h(wr).toHexString())}});var Ir=he.select("."+j.cblines).selectAll("path."+j.cbline).data(de.color&&de.width?qe:[]);Ir.enter().append("path").classed(j.cbline,!0),Ir.exit().remove(),Ir.each(function(_r){var Ln=Nt,xr=Math.round(an.c2p(_r))+de.width/2%1;m.select(this).attr("d","M"+(ce?Ln+","+xr:xr+","+Ln)+(ce?"h":"v")+gt).call(C.lineGroupStyle,de.width,We(_r),de.dash)}),$t.selectAll("g."+an._id+"tick,path").remove();var Tr=Nt+gt+(Ce||0)/2-(ge.ticks==="outside"?1:0),rr=i.calcTicks(an),Yr=i.getTickSigns(an)[2];return i.drawTicks(Se,an,{vals:an.ticks==="inside"?i.clipEnds(an,rr):rr,layer:$t,path:i.makeTickPath(an,Tr,Yr),transFn:i.makeTransTickFn(an)}),i.drawLabels(Se,an,{vals:rr,layer:$t,transFn:i.makeTransTickLabelFn(an),labelFns:i.makeLabelFns(an,Tr)})}function tn(){var Zt,Dt=gt+Ce/2;wt.indexOf("inside")===-1&&(Zt=C.bBox($t.node()),Dt+=ce?Zt.width:Zt.height),Ze=ft.select("text");var un=0,Un=ce&&Re==="top",tr=!ce&&Re==="right",Er=0;if(Ze.node()&&!Ze.classed(j.jsPlaceholder)){var zt,pr=ft.select(".h"+an._id+"title-math-group").node();pr&&(ce&&Cn||!ce&&!Cn)?(Zt=C.bBox(pr),un=Zt.width,zt=Zt.height):(Zt=C.bBox(ft.node()),un=Zt.right-le.l-(ce?Nt:Zn),zt=Zt.bottom-le.t-(ce?Zn:Nt),!ce&&Re==="top"&&(Dt+=Zt.height,Er=Zt.height)),tr&&(Ze.attr("transform",g(un/2+vt/2,0)),un*=2),Dt=Math.max(Dt,ce?un:zt)}var Gn=(ce?Oe:Fe)*2+Dt+$e+Ce/2,Ir=0;!ce&&Me.text&&Ve==="bottom"&&we<=0&&(Ir=Gn/2,Gn+=Ir,Er+=Ir),pe._hColorbarMoveTitle=Ir,pe._hColorbarMoveCBTitle=Er;var Tr=$e+Ce,rr=(ce?Nt:Zn)-Tr/2-(ce?Oe:0),Yr=(ce?Zn:Nt)-(ce?tt:Fe+Er-Ir);he.select("."+j.cbbg).attr("x",rr).attr("y",Yr).attr(ce?"width":"height",Math.max(Gn-Ir,2)).attr(ce?"height":"width",Math.max(tt+Tr,2)).call(_.fill,ke).call(_.stroke,ge.bordercolor).style("stroke-width",$e);var _r=tr?Math.max(un-10,0):0;he.selectAll("."+j.cboutline).attr("x",(ce?Nt:Zn+Oe)+_r).attr("y",(ce?Zn+Fe-tt:Nt)+(Un?it:0)).attr(ce?"width":"height",Math.max(gt,2)).attr(ce?"height":"width",Math.max(tt-(ce?2*Fe+it:2*Oe+_r),2)).call(_.stroke,ge.outlinecolor).style({fill:"none","stroke-width":Ce});var Ln=ce?Ft*Gn:0,xr=ce?0:(1-pn)*Gn-Er;if(Ln=ue?le.l-Ln:-Ln,xr=se?le.t-xr:-xr,he.attr("transform",g(Ln,xr)),!ce&&($e||h(ke).getAlpha()&&!h.equals(pe.paper_bgcolor,ke))){var or=$t.selectAll("text"),wr=or[0].length,ro=he.select("."+j.cbbg).node(),vo=C.bBox(ro),Cr=C.getTranslate(he),He=2;or.each(function(cn,Qt){var nn=0,Sn=wr-1;if(Qt===nn||Qt===Sn){var bn=C.bBox(this),gn=C.getTranslate(this),Qn;if(Qt===Sn){var Bn=bn.right+gn.x,Hr=vo.right+Cr.x+Zn-$e-He+ie;Qn=Hr-Bn,Qn>0&&(Qn=0)}else if(Qt===nn){var fr=bn.left+gn.x,Vr=vo.left+Cr.x+Zn+$e+He;Qn=Vr-fr,Qn<0&&(Qn=0)}Qn&&(wr<3?this.setAttribute("transform","translate("+Qn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var De={},St=F[Ne],kt=H[Ne],Pt=F[Ve],Bt=H[Ve],Ut=Gn-gt;ce?(fe==="pixels"?(De.y=we,De.t=tt*Pt,De.b=tt*Bt):(De.t=De.b=0,De.yt=we+ne*Pt,De.yb=we-ne*Bt),ye==="pixels"?(De.x=ie,De.l=Gn*St,De.r=Gn*kt):(De.l=Ut*St,De.r=Ut*kt,De.xl=ie-X*St,De.xr=ie+X*kt)):(fe==="pixels"?(De.x=ie,De.l=tt*St,De.r=tt*kt):(De.l=De.r=0,De.xl=ie+ne*St,De.xr=ie-ne*kt),ye==="pixels"?(De.y=1-we,De.t=Gn*Pt,De.b=Gn*Bt):(De.t=Ut*Pt,De.b=Ut*Bt,De.yt=we-X*Pt,De.yb=we+X*Bt));var Ot=ge.y<.5?"b":"t",_t=ge.x<.5?"l":"r";Se._fullLayout._reservedMargin[ge._id]={};var qt={r:pe.width-rr-Ln,l:rr+De.r,b:pe.height-Yr-xr,t:Yr+De.b};ue&&se?l.autoMargin(Se,ge._id,De):ue?Se._fullLayout._reservedMargin[ge._id][Ot]=qt[Ot]:se||ce?Se._fullLayout._reservedMargin[ge._id][_t]=qt[_t]:Se._fullLayout._reservedMargin[ge._id][Ot]=qt[Ot]}return d.syncOrAsync([l.previousPromises,Tt,fn,Et,l.previousPromises,tn],Se)}function K(he,ge,Se){var ce=ge.orientation==="v",ne=Se._fullLayout,fe=ne._size,X,ye,Ce;u.init({element:he.node(),gd:Se,prepFn:function(){X=he.attr("transform"),x(he)},moveFn:function($e,ke){he.attr("transform",X+g($e,ke)),ye=u.align((ce?ge._uFrac:ge._vFrac)+$e/fe.w,ce?ge._thickFrac:ge._lenFrac,0,1,ge.xanchor),Ce=u.align((ce?ge._vFrac:1-ge._uFrac)-ke/fe.h,ce?ge._lenFrac:ge._thickFrac,0,1,ge.yanchor);var Ne=u.getCursor(ye,Ce,ge.xanchor,ge.yanchor);x(he,Ne)},doneFn:function(){if(x(he),ye!==void 0&&Ce!==void 0){var $e={};$e[ge._propPrefix+"x"]=ye,$e[ge._propPrefix+"y"]=Ce,ge._traceIndex!==void 0?c.call("_guiRestyle",Se,$e,ge._traceIndex):c.call("_guiRelayout",Se,$e)}}})}function ae(he,ge,Se){var ce=ge._levels,ne=[],fe=[],X,ye,Ce=ce.end+ce.size/100,$e=ce.size,ke=1.001*Se[0]-.001*Se[1],Ne=1.001*Se[1]-.001*Se[0];for(ye=0;ye<1e5&&(X=ce.start+ye*$e,!($e>0?X>=Ce:X<=Ce));ye++)X>ke&&X0?X>=Ce:X<=Ce));ye++)X>Se[0]&&XD-S?S=D-(O-D):O-D=0?k=g.colorscale.sequential:k=g.colorscale.sequentialminus,_._sync("colorscale",k)}}},3046:function(L,A,s){var m=s(1828),h=s(2869).hasColorscale,l=s(2869).extractOpts;L.exports=function(i,u){function d(S,O){var D=S["_"+O];D!==void 0&&(S[O]=D)}function g(S,O){var D=O.container?m.nestedProperty(S,O.container).get():S;if(D)if(D.coloraxis)D._colorAx=u[D.coloraxis];else{var N=l(D),M=N.auto;(M||N.min===void 0)&&d(D,O.min),(M||N.max===void 0)&&d(D,O.max),N.autocolorscale&&d(D,"colorscale")}}for(var v=0;v=0;k--,R++){var F=D[k];M[R]=[1-F[0],F[1]]}return M}function $(D,N){N=N||{};for(var M=D.domain,k=D.range,R=k.length,F=new Array(R),H=0;H1.3333333333333333-d?u:d}},461:function(L,A,s){var m=s(1828),h=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];L.exports=function(c,i,u,d){return u==="left"?c=0:u==="center"?c=1:u==="right"?c=2:c=m.constrain(Math.floor(c*3),0,2),d==="bottom"?i=0:d==="middle"?i=1:d==="top"?i=2:i=m.constrain(Math.floor(i*3),0,2),h[i][c]}},4505:function(L,A){A.selectMode=function(s){return s==="lasso"||s==="select"},A.drawMode=function(s){return s==="drawclosedpath"||s==="drawopenpath"||s==="drawline"||s==="drawrect"||s==="drawcircle"},A.openMode=function(s){return s==="drawline"||s==="drawopenpath"},A.rectMode=function(s){return s==="select"||s==="drawline"||s==="drawrect"||s==="drawcircle"},A.freeMode=function(s){return s==="lasso"||s==="drawclosedpath"||s==="drawopenpath"},A.selectingOrDrawing=function(s){return A.freeMode(s)||A.rectMode(s)}},8569:function(L,A,s){var m=s(8956),h=s(7035),l=s(8520),c=s(1828).removeElement,i=s(5555),u=L.exports={};u.align=s(2807),u.getCursor=s(461);var d=s(6041);u.unhover=d.wrapped,u.unhoverRaw=d.raw,u.init=function(C){var _=C.gd,$=1,S=_._context.doubleClickDelay,O=C.element,D,N,M,k,R,F,H,j;_._mouseDownTime||(_._mouseDownTime=0),O.style.pointerEvents="all",O.onmousedown=J,l?(O._ontouchstart&&O.removeEventListener("touchstart",O._ontouchstart),O._ontouchstart=J,O.addEventListener("touchstart",J,{passive:!1})):O.ontouchstart=J;function P(Q,he,ge){return Math.abs(Q)"u"&&typeof Q.clientY>"u"&&(Q.clientX=D,Q.clientY=N),M=new Date().getTime(),M-_._mouseDownTimeS&&($=Math.max($-1,1)),_._dragged)C.doneFn&&C.doneFn();else if(C.clickFn&&C.clickFn($,F),!j){var he;try{he=new MouseEvent("click",Q)}catch{var ge=v(Q);he=document.createEvent("MouseEvents"),he.initMouseEvent("click",Q.bubbles,Q.cancelable,Q.view,Q.detail,Q.screenX,Q.screenY,ge[0],ge[1],Q.ctrlKey,Q.altKey,Q.shiftKey,Q.metaKey,Q.button,Q.relatedTarget)}H.dispatchEvent(he)}_._dragging=!1,_._dragged=!1}};function g(){var x=document.createElement("div");x.className="dragcover";var C=x.style;return C.position="fixed",C.left=0,C.right=0,C.top=0,C.bottom=0,C.zIndex=999999999,C.background="none",document.body.appendChild(x),x}u.coverSlip=g;function v(x){return m(x.changedTouches?x.changedTouches[0]:x,document.body)}},6041:function(L,A,s){var m=s(1086),h=s(9990),l=s(4401).getGraphDiv,c=s(6675),i=L.exports={};i.wrapped=function(u,d,g){u=l(u),u._fullLayout&&h.clear(u._fullLayout._uid+c.HOVERID),i.raw(u,d,g)},i.raw=function(d,g){var v=d._fullLayout,x=d._hoverdata;g||(g={}),!(g.target&&!d._dragged&&m.triggerHandler(d,"plotly_beforehover",g)===!1)&&(v._hoverlayer.selectAll("g").remove(),v._hoverlayer.selectAll("line").remove(),v._hoverlayer.selectAll("circle").remove(),d._hoverdata=void 0,g.target&&x&&d.emit("plotly_unhover",{event:g,points:x}))}},9952:function(L,A){A.P={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},A.u={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},1424:function(L,A,s){var m=s(9898),h=s(1828),l=h.numberFormat,c=s(2770),i=s(4267),u=s(3972),d=s(7901),g=s(1081),v=h.strTranslate,x=s(3893),C=s(7922),_=s(8783),$=_.LINE_SPACING,S=s(7822).DESELECTDIM,O=s(4098),D=s(9984),N=s(3469).appendArrayPointValue,M=L.exports={};M.font=function(Ge,Xe,qe,gt){h.isPlainObject(Xe)&&(gt=Xe.color,qe=Xe.size,Xe=Xe.family),Xe&&Ge.style("font-family",Xe),qe+1&&Ge.style("font-size",qe+"px"),gt&&Ge.call(d.fill,gt)},M.setPosition=function(Ge,Xe,qe){Ge.attr("x",Xe).attr("y",qe)},M.setSize=function(Ge,Xe,qe){Ge.attr("width",Xe).attr("height",qe)},M.setRect=function(Ge,Xe,qe,gt,ut){Ge.call(M.setPosition,Xe,qe).call(M.setSize,gt,ut)},M.translatePoint=function(Ge,Xe,qe,gt){var ut=qe.c2p(Ge.x),tt=gt.c2p(Ge.y);if(c(ut)&&c(tt)&&Xe.node())Xe.node().nodeName==="text"?Xe.attr("x",ut).attr("y",tt):Xe.attr("transform",v(ut,tt));else return!1;return!0},M.translatePoints=function(Ge,Xe,qe){Ge.each(function(gt){var ut=m.select(this);M.translatePoint(gt,ut,Xe,qe)})},M.hideOutsideRangePoint=function(Ge,Xe,qe,gt,ut,tt){Xe.attr("display",qe.isPtWithinRange(Ge,ut)&>.isPtWithinRange(Ge,tt)?null:"none")},M.hideOutsideRangePoints=function(Ge,Xe){if(Xe._hasClipOnAxisFalse){var qe=Xe.xaxis,gt=Xe.yaxis;Ge.each(function(ut){var tt=ut[0].trace,Ct=tt.xcalendar,Gt=tt.ycalendar,Yt=u.traceIs(tt,"bar-like")?".bartext":".point,.textpoint";Ge.selectAll(Yt).each(function(Nt){M.hideOutsideRangePoint(Nt,m.select(this),qe,gt,Ct,Gt)})})}},M.crispRound=function(Ge,Xe,qe){return!Xe||!c(Xe)?qe||0:Ge._context.staticPlot?Xe:Xe<1?1:Math.round(Xe)},M.singleLineStyle=function(Ge,Xe,qe,gt,ut){Xe.style("fill","none");var tt=(((Ge||[])[0]||{}).trace||{}).line||{},Ct=qe||tt.width||0,Gt=ut||tt.dash||"";d.stroke(Xe,gt||tt.color),M.dashLine(Xe,Gt,Ct)},M.lineGroupStyle=function(Ge,Xe,qe,gt){Ge.style("fill","none").each(function(ut){var tt=(((ut||[])[0]||{}).trace||{}).line||{},Ct=Xe||tt.width||0,Gt=gt||tt.dash||"";m.select(this).call(d.stroke,qe||tt.color).call(M.dashLine,Gt,Ct)})},M.dashLine=function(Ge,Xe,qe){qe=+qe||0,Xe=M.dashStyle(Xe,qe),Ge.style({"stroke-dasharray":Xe,"stroke-width":qe+"px"})},M.dashStyle=function(Ge,Xe){Xe=+Xe||1;var qe=Math.max(Xe,3);return Ge==="solid"?Ge="":Ge==="dot"?Ge=qe+"px,"+qe+"px":Ge==="dash"?Ge=3*qe+"px,"+3*qe+"px":Ge==="longdash"?Ge=5*qe+"px,"+5*qe+"px":Ge==="dashdot"?Ge=3*qe+"px,"+qe+"px,"+qe+"px,"+qe+"px":Ge==="longdashdot"&&(Ge=5*qe+"px,"+2*qe+"px,"+qe+"px,"+2*qe+"px"),Ge};function k(Ge,Xe,qe){var gt=Xe.fillpattern,ut=gt&&M.getPatternAttr(gt.shape,0,"");if(ut){var tt=M.getPatternAttr(gt.bgcolor,0,null),Ct=M.getPatternAttr(gt.fgcolor,0,null),Gt=gt.fgopacity,Yt=M.getPatternAttr(gt.size,0,8),Nt=M.getPatternAttr(gt.solidity,0,.3),Ft=Xe.uid;M.pattern(Ge,"point",qe,Ft,ut,Yt,Nt,void 0,gt.fillmode,tt,Ct,Gt)}else Xe.fillcolor&&Ge.call(d.fill,Xe.fillcolor)}M.singleFillStyle=function(Ge,Xe){var qe=m.select(Ge.node()),gt=qe.data(),ut=((gt[0]||[])[0]||{}).trace||{};k(Ge,ut,Xe)},M.fillGroupStyle=function(Ge,Xe){Ge.style("stroke-width",0).each(function(qe){var gt=m.select(this);qe[0].trace&&k(gt,qe[0].trace,Xe)})};var R=s(998);M.symbolNames=[],M.symbolFuncs=[],M.symbolBackOffs=[],M.symbolNeedLines={},M.symbolNoDot={},M.symbolNoFill={},M.symbolList=[],Object.keys(R).forEach(function(Ge){var Xe=R[Ge],qe=Xe.n;M.symbolList.push(qe,String(qe),Ge,qe+100,String(qe+100),Ge+"-open"),M.symbolNames[qe]=Ge,M.symbolFuncs[qe]=Xe.f,M.symbolBackOffs[qe]=Xe.backoff||0,Xe.needLine&&(M.symbolNeedLines[qe]=!0),Xe.noDot?M.symbolNoDot[qe]=!0:M.symbolList.push(qe+200,String(qe+200),Ge+"-dot",qe+300,String(qe+300),Ge+"-open-dot"),Xe.noFill&&(M.symbolNoFill[qe]=!0)});var F=M.symbolNames.length,H="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";M.symbolNumber=function(Ge){if(c(Ge))Ge=+Ge;else if(typeof Ge=="string"){var Xe=0;Ge.indexOf("-open")>0&&(Xe=100,Ge=Ge.replace("-open","")),Ge.indexOf("-dot")>0&&(Xe+=200,Ge=Ge.replace("-dot","")),Ge=M.symbolNames.indexOf(Ge),Ge>=0&&(Ge+=Xe)}return Ge%100>=F||Ge>=400?0:Math.floor(Math.max(Ge,0))};function j(Ge,Xe,qe,gt){var ut=Ge%100;return M.symbolFuncs[ut](Xe,qe,gt)+(Ge>=200?H:"")}var P={x1:1,x2:0,y1:0,y2:0},ee={x1:0,x2:0,y1:1,y2:0},J=l("~f"),K={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:P},horizontalreversed:{node:"linearGradient",attrs:P,reversed:!0},vertical:{node:"linearGradient",attrs:ee},verticalreversed:{node:"linearGradient",attrs:ee,reversed:!0}};M.gradient=function(Ge,Xe,qe,gt,ut,tt){for(var Ct=ut.length,Gt=K[gt],Yt=new Array(Ct),Nt=0;Nt=0&&Ge.i===void 0&&(Ge.i=tt.i),Xe.style("opacity",gt.selectedOpacityFn?gt.selectedOpacityFn(Ge):Ge.mo===void 0?Ct.opacity:Ge.mo),gt.ms2mrc){var Yt;Ge.ms==="various"||Ct.size==="various"?Yt=3:Yt=gt.ms2mrc(Ge.ms),Ge.mrc=Yt,gt.selectedSizeFn&&(Yt=Ge.mrc=gt.selectedSizeFn(Ge));var Nt=M.symbolNumber(Ge.mx||Ct.symbol)||0;Ge.om=Nt%200>=100;var Ft=dt(Ge,qe),pn=se(Ge,qe);Xe.attr("d",j(Nt,Yt,Ft,pn))}var _n=!1,sn,Zn,an;if(Ge.so)an=Gt.outlierwidth,Zn=Gt.outliercolor,sn=Ct.outliercolor;else{var Cn=(Gt||{}).width;an=(Ge.mlw+1||Cn+1||(Ge.trace?(Ge.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in Ge?Zn=Ge.mlcc=gt.lineScale(Ge.mlc):h.isArrayOrTypedArray(Gt.color)?Zn=d.defaultLine:Zn=Gt.color,h.isArrayOrTypedArray(Ct.color)&&(sn=d.defaultLine,_n=!0),"mc"in Ge?sn=Ge.mcc=gt.markerScale(Ge.mc):sn=Ct.color||Ct.colors||"rgba(0,0,0,0)",gt.selectedColorFn&&(sn=gt.selectedColorFn(Ge))}if(Ge.om)Xe.call(d.stroke,sn).style({"stroke-width":(an||1)+"px",fill:"none"});else{Xe.style("stroke-width",(Ge.isBlank?0:an)+"px");var jn=Ct.gradient,Wn=Ge.mgt;Wn?_n=!0:Wn=jn&&jn.type,h.isArrayOrTypedArray(Wn)&&(Wn=Wn[0],K[Wn]||(Wn=0));var wn=Ct.pattern,lt=wn&&M.getPatternAttr(wn.shape,Ge.i,"");if(Wn&&Wn!=="none"){var ft=Ge.mgc;ft?_n=!0:ft=jn.color;var wt=qe.uid;_n&&(wt+="-"+Ge.i),M.gradient(Xe,ut,wt,Wn,[[0,ft],[1,sn]],"fill")}else if(lt){var vt=!1,$t=wn.fgcolor;!$t&&tt&&tt.color&&($t=tt.color,vt=!0);var Ze=M.getPatternAttr($t,Ge.i,tt&&tt.color||null),it=M.getPatternAttr(wn.bgcolor,Ge.i,null),ht=wn.fgopacity,pt=M.getPatternAttr(wn.size,Ge.i,8),Tt=M.getPatternAttr(wn.solidity,Ge.i,.3);vt=vt||Ge.mcc||h.isArrayOrTypedArray(wn.shape)||h.isArrayOrTypedArray(wn.bgcolor)||h.isArrayOrTypedArray(wn.fgcolor)||h.isArrayOrTypedArray(wn.size)||h.isArrayOrTypedArray(wn.solidity);var Et=qe.uid;vt&&(Et+="-"+Ge.i),M.pattern(Xe,"point",ut,Et,lt,pt,Tt,Ge.mcc,wn.fillmode,it,Ze,ht)}else h.isArrayOrTypedArray(sn)?d.fill(Xe,sn[Ge.i]):d.fill(Xe,sn);an&&d.stroke(Xe,Zn)}},M.makePointStyleFns=function(Ge){var Xe={},qe=Ge.marker;return Xe.markerScale=M.tryColorscale(qe,""),Xe.lineScale=M.tryColorscale(qe,"line"),u.traceIs(Ge,"symbols")&&(Xe.ms2mrc=O.isBubble(Ge)?D(Ge):function(){return(qe.size||6)/2}),Ge.selectedpoints&&h.extendFlat(Xe,M.makeSelectedPointStyleFns(Ge)),Xe},M.makeSelectedPointStyleFns=function(Ge){var Xe={},qe=Ge.selected||{},gt=Ge.unselected||{},ut=Ge.marker||{},tt=qe.marker||{},Ct=gt.marker||{},Gt=ut.opacity,Yt=tt.opacity,Nt=Ct.opacity,Ft=Yt!==void 0,pn=Nt!==void 0;(h.isArrayOrTypedArray(Gt)||Ft||pn)&&(Xe.selectedOpacityFn=function(lt){var ft=lt.mo===void 0?ut.opacity:lt.mo;return lt.selected?Ft?Yt:ft:pn?Nt:S*ft});var _n=ut.color,sn=tt.color,Zn=Ct.color;(sn||Zn)&&(Xe.selectedColorFn=function(lt){var ft=lt.mcc||_n;return lt.selected?sn||ft:Zn||ft});var an=ut.size,Cn=tt.size,jn=Ct.size,Wn=Cn!==void 0,wn=jn!==void 0;return u.traceIs(Ge,"symbols")&&(Wn||wn)&&(Xe.selectedSizeFn=function(lt){var ft=lt.mrc||an/2;return lt.selected?Wn?Cn/2:ft:wn?jn/2:ft}),Xe},M.makeSelectedTextStyleFns=function(Ge){var Xe={},qe=Ge.selected||{},gt=Ge.unselected||{},ut=Ge.textfont||{},tt=qe.textfont||{},Ct=gt.textfont||{},Gt=ut.color,Yt=tt.color,Nt=Ct.color;return Xe.selectedTextColorFn=function(Ft){var pn=Ft.tc||Gt;return Ft.selected?Yt||pn:Nt||(Yt?pn:d.addOpacity(pn,S))},Xe},M.selectedPointStyle=function(Ge,Xe){if(!(!Ge.size()||!Xe.selectedpoints)){var qe=M.makeSelectedPointStyleFns(Xe),gt=Xe.marker||{},ut=[];qe.selectedOpacityFn&&ut.push(function(tt,Ct){tt.style("opacity",qe.selectedOpacityFn(Ct))}),qe.selectedColorFn&&ut.push(function(tt,Ct){d.fill(tt,qe.selectedColorFn(Ct))}),qe.selectedSizeFn&&ut.push(function(tt,Ct){var Gt=Ct.mx||gt.symbol||0,Yt=qe.selectedSizeFn(Ct);tt.attr("d",j(M.symbolNumber(Gt),Yt,dt(Ct,Xe),se(Ct,Xe))),Ct.mrc2=Yt}),ut.length&&Ge.each(function(tt){for(var Ct=m.select(this),Gt=0;Gt0?qe:0}M.textPointStyle=function(Ge,Xe,qe){if(Ge.size()){var gt;if(Xe.selectedpoints){var ut=M.makeSelectedTextStyleFns(Xe);gt=ut.selectedTextColorFn}var tt=Xe.texttemplate,Ct=qe._fullLayout;Ge.each(function(Gt){var Yt=m.select(this),Nt=tt?h.extractOption(Gt,Xe,"txt","texttemplate"):h.extractOption(Gt,Xe,"tx","text");if(!Nt&&Nt!==0){Yt.remove();return}if(tt){var Ft=Xe._module.formatLabels,pn=Ft?Ft(Gt,Xe,Ct):{},_n={};N(_n,Xe,Gt.i);var sn=Xe._meta||{};Nt=h.texttemplateString(Nt,pn,Ct._d3locale,_n,Gt,sn)}var Zn=Gt.tp||Xe.textposition,an=he(Gt,Xe),Cn=gt?gt(Gt):Gt.tc||Xe.textfont.color;Yt.call(M.font,Gt.tf||Xe.textfont.family,an,Cn).text(Nt).call(x.convertToTspans,qe).call(Q,Zn,an,Gt.mrc)})}},M.selectedTextStyle=function(Ge,Xe){if(!(!Ge.size()||!Xe.selectedpoints)){var qe=M.makeSelectedTextStyleFns(Xe);Ge.each(function(gt){var ut=m.select(this),tt=qe.selectedTextColorFn(gt),Ct=gt.tp||Xe.textposition,Gt=he(gt,Xe);d.fill(ut,tt);var Yt=u.traceIs(Xe,"bar-like");Q(ut,Ct,Gt,gt.mrc2||gt.mrc,Yt)})}};var ge=.5;M.smoothopen=function(Ge,Xe){if(Ge.length<3)return"M"+Ge.join("L");var qe="M"+Ge[0],gt=[],ut;for(ut=1;ut=Yt||lt>=Ft&<<=Yt)&&(ft<=pn&&ft>=Nt||ft>=pn&&ft<=Nt)&&(Ge=[lt,ft])}return Ge}M.applyBackoff=ke,M.makeTester=function(){var Ge=h.ensureSingleById(m.select("body"),"svg","js-plotly-tester",function(qe){qe.attr(C.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),Xe=h.ensureSingle(Ge,"path","js-reference-point",function(qe){qe.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});M.tester=Ge,M.testref=Xe},M.savedBBoxes={};var Ne=0,Ve=1e4;M.bBox=function(Ge,Xe,qe){qe||(qe=Oe(Ge));var gt;if(qe){if(gt=M.savedBBoxes[qe],gt)return h.extendFlat({},gt)}else if(Ge.childNodes.length===1){var ut=Ge.childNodes[0];if(qe=Oe(ut),qe){var tt=+ut.getAttribute("x")||0,Ct=+ut.getAttribute("y")||0,Gt=ut.getAttribute("transform");if(!Gt){var Yt=M.bBox(ut,!1,qe);return tt&&(Yt.left+=tt,Yt.right+=tt),Ct&&(Yt.top+=Ct,Yt.bottom+=Ct),Yt}if(qe+="~"+tt+"~"+Ct+"~"+Gt,gt=M.savedBBoxes[qe],gt)return h.extendFlat({},gt)}}var Nt,Ft;Xe?Nt=Ge:(Ft=M.tester.node(),Nt=Ge.cloneNode(!0),Ft.appendChild(Nt)),m.select(Nt).attr("transform",null).call(x.positionText,0,0);var pn=Nt.getBoundingClientRect(),_n=M.testref.node().getBoundingClientRect();Xe||Ft.removeChild(Nt);var sn={height:pn.height,width:pn.width,left:pn.left-_n.left,top:pn.top-_n.top,right:pn.right-_n.left,bottom:pn.bottom-_n.top};return Ne>=Ve&&(M.savedBBoxes={},Ne=0),qe&&(M.savedBBoxes[qe]=sn),Ne++,h.extendFlat({},sn)};function Oe(Ge){var Xe=Ge.getAttribute("data-unformatted");if(Xe!==null)return Xe+Ge.getAttribute("data-math")+Ge.getAttribute("text-anchor")+Ge.getAttribute("style")}M.setClipUrl=function(Ge,Xe,qe){Ge.attr("clip-path",Fe(Xe,qe))};function Fe(Ge,Xe){if(!Ge)return null;var qe=Xe._context,gt=qe._exportedPlot?"":qe._baseUrl||"";return gt?"url('"+gt+"#"+Ge+"')":"url(#"+Ge+")"}M.getTranslate=function(Ge){var Xe=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,qe=Ge.attr?"attr":"getAttribute",gt=Ge[qe]("transform")||"",ut=gt.replace(Xe,function(tt,Ct,Gt){return[Ct,Gt].join(" ")}).split(" ");return{x:+ut[0]||0,y:+ut[1]||0}},M.setTranslate=function(Ge,Xe,qe){var gt=/(\btranslate\(.*?\);?)/,ut=Ge.attr?"attr":"getAttribute",tt=Ge.attr?"attr":"setAttribute",Ct=Ge[ut]("transform")||"";return Xe=Xe||0,qe=qe||0,Ct=Ct.replace(gt,"").trim(),Ct+=v(Xe,qe),Ct=Ct.trim(),Ge[tt]("transform",Ct),Ct},M.getScale=function(Ge){var Xe=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,qe=Ge.attr?"attr":"getAttribute",gt=Ge[qe]("transform")||"",ut=gt.replace(Xe,function(tt,Ct,Gt){return[Ct,Gt].join(" ")}).split(" ");return{x:+ut[0]||1,y:+ut[1]||1}},M.setScale=function(Ge,Xe,qe){var gt=/(\bscale\(.*?\);?)/,ut=Ge.attr?"attr":"getAttribute",tt=Ge.attr?"attr":"setAttribute",Ct=Ge[ut]("transform")||"";return Xe=Xe||1,qe=qe||1,Ct=Ct.replace(gt,"").trim(),Ct+="scale("+Xe+","+qe+")",Ct=Ct.trim(),Ge[tt]("transform",Ct),Ct};var ie=/\s*sc.*/;M.setPointGroupScale=function(Ge,Xe,qe){if(Xe=Xe||1,qe=qe||1,!!Ge){var gt=Xe===1&&qe===1?"":"scale("+Xe+","+qe+")";Ge.each(function(){var ut=(this.getAttribute("transform")||"").replace(ie,"");ut+=gt,ut=ut.trim(),this.setAttribute("transform",ut)})}};var we=/translate\([^)]*\)\s*$/;M.setTextPointsScale=function(Ge,Xe,qe){Ge&&Ge.each(function(){var gt,ut=m.select(this),tt=ut.select("text");if(tt.node()){var Ct=parseFloat(tt.attr("x")||0),Gt=parseFloat(tt.attr("y")||0),Yt=(ut.attr("transform")||"").match(we);Xe===1&&qe===1?gt=[]:gt=[v(Ct,Gt),"scale("+Xe+","+qe+")",v(-Ct,-Gt)],Yt&>.push(Yt),ut.attr("transform",gt.join(""))}})};function se(Ge,Xe){var qe;return Ge&&(qe=Ge.mf),qe===void 0&&(qe=Xe.marker&&Xe.marker.standoff||0),!Xe._geo&&!Xe._xA?-qe:qe}M.getMarkerStandoff=se;var ue=Math.atan2,pe=Math.cos,le=Math.sin;function Te(Ge,Xe){var qe=Xe[0],gt=Xe[1];return[qe*pe(Ge)-gt*le(Ge),qe*le(Ge)+gt*pe(Ge)]}var de,Me,Re,ze,We,ot;function dt(Ge,Xe){var qe=Ge.ma;qe===void 0&&(qe=Xe.marker.angle||0);var gt,ut,tt=Xe.marker.angleref;if(tt==="previous"||tt==="north"){if(Xe._geo){var Ct=Xe._geo.project(Ge.lonlat);gt=Ct[0],ut=Ct[1]}else{var Gt=Xe._xA,Yt=Xe._yA;if(Gt&&Yt)gt=Gt.c2p(Ge.x),ut=Yt.c2p(Ge.y);else return 90}if(Xe._geo){var Nt=Ge.lonlat[0],Ft=Ge.lonlat[1],pn=Xe._geo.project([Nt,Ft+1e-5]),_n=Xe._geo.project([Nt+1e-5,Ft]),sn=ue(_n[1]-ut,_n[0]-gt),Zn=ue(pn[1]-ut,pn[0]-gt),an;if(tt==="north")an=qe/180*Math.PI;else if(tt==="previous"){var Cn=Nt/180*Math.PI,jn=Ft/180*Math.PI,Wn=de/180*Math.PI,wn=Me/180*Math.PI,lt=Wn-Cn,ft=pe(wn)*le(lt),wt=le(wn)*pe(jn)-pe(wn)*le(jn)*pe(lt);an=-ue(ft,wt)-Math.PI,de=Nt,Me=Ft}var vt=Te(sn,[pe(an),0]),$t=Te(Zn,[le(an),0]);qe=ue(vt[1]+$t[1],vt[0]+$t[0])/Math.PI*180,tt==="previous"&&!(ot===Xe.uid&&Ge.i===We+1)&&(qe=null)}if(tt==="previous"&&!Xe._geo)if(ot===Xe.uid&&Ge.i===We+1&&c(gt)&&c(ut)){var Ze=gt-Re,it=ut-ze,ht=Xe.line&&Xe.line.shape||"",pt=ht.slice(ht.length-1);pt==="h"&&(it=0),pt==="v"&&(Ze=0),qe+=ue(it,Ze)/Math.PI*180+90}else qe=null}return Re=gt,ze=ut,We=Ge.i,ot=Xe.uid,qe}M.getMarkerAngle=dt},998:function(L,A,s){var m=s(5616),h=s(9898).round,l="M0,0Z",c=Math.sqrt(2),i=Math.sqrt(3),u=Math.PI,d=Math.cos,g=Math.sin;L.exports={circle:{n:0,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k="M"+M+",0A"+M+","+M+" 0 1,1 0,-"+M+"A"+M+","+M+" 0 0,1 "+M+",0Z";return N?S(D,N,k):k}},square:{n:1,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+","+M+"H-"+M+"V-"+M+"H"+M+"Z")}},diamond:{n:2,f:function(O,D,N){if(v(D))return l;var M=h(O*1.3,2);return S(D,N,"M"+M+",0L0,"+M+"L-"+M+",0L0,-"+M+"Z")}},cross:{n:3,f:function(O,D,N){if(v(D))return l;var M=h(O*.4,2),k=h(O*1.2,2);return S(D,N,"M"+k+","+M+"H"+M+"V"+k+"H-"+M+"V"+M+"H-"+k+"V-"+M+"H-"+M+"V-"+k+"H"+M+"V-"+M+"H"+k+"Z")}},x:{n:4,f:function(O,D,N){if(v(D))return l;var M=h(O*.8/c,2),k="l"+M+","+M,R="l"+M+",-"+M,F="l-"+M+",-"+M,H="l-"+M+","+M;return S(D,N,"M0,"+M+k+R+F+R+F+H+F+H+k+H+k+"Z")}},"triangle-up":{n:5,f:function(O,D,N){if(v(D))return l;var M=h(O*2/i,2),k=h(O/2,2),R=h(O,2);return S(D,N,"M-"+M+","+k+"H"+M+"L0,-"+R+"Z")}},"triangle-down":{n:6,f:function(O,D,N){if(v(D))return l;var M=h(O*2/i,2),k=h(O/2,2),R=h(O,2);return S(D,N,"M-"+M+",-"+k+"H"+M+"L0,"+R+"Z")}},"triangle-left":{n:7,f:function(O,D,N){if(v(D))return l;var M=h(O*2/i,2),k=h(O/2,2),R=h(O,2);return S(D,N,"M"+k+",-"+M+"V"+M+"L-"+R+",0Z")}},"triangle-right":{n:8,f:function(O,D,N){if(v(D))return l;var M=h(O*2/i,2),k=h(O/2,2),R=h(O,2);return S(D,N,"M-"+k+",-"+M+"V"+M+"L"+R+",0Z")}},"triangle-ne":{n:9,f:function(O,D,N){if(v(D))return l;var M=h(O*.6,2),k=h(O*1.2,2);return S(D,N,"M-"+k+",-"+M+"H"+M+"V"+k+"Z")}},"triangle-se":{n:10,f:function(O,D,N){if(v(D))return l;var M=h(O*.6,2),k=h(O*1.2,2);return S(D,N,"M"+M+",-"+k+"V"+M+"H-"+k+"Z")}},"triangle-sw":{n:11,f:function(O,D,N){if(v(D))return l;var M=h(O*.6,2),k=h(O*1.2,2);return S(D,N,"M"+k+","+M+"H-"+M+"V-"+k+"Z")}},"triangle-nw":{n:12,f:function(O,D,N){if(v(D))return l;var M=h(O*.6,2),k=h(O*1.2,2);return S(D,N,"M-"+M+","+k+"V-"+M+"H"+k+"Z")}},pentagon:{n:13,f:function(O,D,N){if(v(D))return l;var M=h(O*.951,2),k=h(O*.588,2),R=h(-O,2),F=h(O*-.309,2),H=h(O*.809,2);return S(D,N,"M"+M+","+F+"L"+k+","+H+"H-"+k+"L-"+M+","+F+"L0,"+R+"Z")}},hexagon:{n:14,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O/2,2),R=h(O*i/2,2);return S(D,N,"M"+R+",-"+k+"V"+k+"L0,"+M+"L-"+R+","+k+"V-"+k+"L0,-"+M+"Z")}},hexagon2:{n:15,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O/2,2),R=h(O*i/2,2);return S(D,N,"M-"+k+","+R+"H"+k+"L"+M+",0L"+k+",-"+R+"H-"+k+"L-"+M+",0Z")}},octagon:{n:16,f:function(O,D,N){if(v(D))return l;var M=h(O*.924,2),k=h(O*.383,2);return S(D,N,"M-"+k+",-"+M+"H"+k+"L"+M+",-"+k+"V"+k+"L"+k+","+M+"H-"+k+"L-"+M+","+k+"V-"+k+"Z")}},star:{n:17,f:function(O,D,N){if(v(D))return l;var M=O*1.4,k=h(M*.225,2),R=h(M*.951,2),F=h(M*.363,2),H=h(M*.588,2),j=h(-M,2),P=h(M*-.309,2),ee=h(M*.118,2),J=h(M*.809,2),K=h(M*.382,2);return S(D,N,"M"+k+","+P+"H"+R+"L"+F+","+ee+"L"+H+","+J+"L0,"+K+"L-"+H+","+J+"L-"+F+","+ee+"L-"+R+","+P+"H-"+k+"L0,"+j+"Z")}},hexagram:{n:18,f:function(O,D,N){if(v(D))return l;var M=h(O*.66,2),k=h(O*.38,2),R=h(O*.76,2);return S(D,N,"M-"+R+",0l-"+k+",-"+M+"h"+R+"l"+k+",-"+M+"l"+k+","+M+"h"+R+"l-"+k+","+M+"l"+k+","+M+"h-"+R+"l-"+k+","+M+"l-"+k+",-"+M+"h-"+R+"Z")}},"star-triangle-up":{n:19,f:function(O,D,N){if(v(D))return l;var M=h(O*i*.8,2),k=h(O*.8,2),R=h(O*1.6,2),F=h(O*4,2),H="A "+F+","+F+" 0 0 1 ";return S(D,N,"M-"+M+","+k+H+M+","+k+H+"0,-"+R+H+"-"+M+","+k+"Z")}},"star-triangle-down":{n:20,f:function(O,D,N){if(v(D))return l;var M=h(O*i*.8,2),k=h(O*.8,2),R=h(O*1.6,2),F=h(O*4,2),H="A "+F+","+F+" 0 0 1 ";return S(D,N,"M"+M+",-"+k+H+"-"+M+",-"+k+H+"0,"+R+H+M+",-"+k+"Z")}},"star-square":{n:21,f:function(O,D,N){if(v(D))return l;var M=h(O*1.1,2),k=h(O*2,2),R="A "+k+","+k+" 0 0 1 ";return S(D,N,"M-"+M+",-"+M+R+"-"+M+","+M+R+M+","+M+R+M+",-"+M+R+"-"+M+",-"+M+"Z")}},"star-diamond":{n:22,f:function(O,D,N){if(v(D))return l;var M=h(O*1.4,2),k=h(O*1.9,2),R="A "+k+","+k+" 0 0 1 ";return S(D,N,"M-"+M+",0"+R+"0,"+M+R+M+",0"+R+"0,-"+M+R+"-"+M+",0Z")}},"diamond-tall":{n:23,f:function(O,D,N){if(v(D))return l;var M=h(O*.7,2),k=h(O*1.4,2);return S(D,N,"M0,"+k+"L"+M+",0L0,-"+k+"L-"+M+",0Z")}},"diamond-wide":{n:24,f:function(O,D,N){if(v(D))return l;var M=h(O*1.4,2),k=h(O*.7,2);return S(D,N,"M0,"+k+"L"+M+",0L0,-"+k+"L-"+M+",0Z")}},hourglass:{n:25,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+","+M+"H-"+M+"L"+M+",-"+M+"H-"+M+"Z")},noDot:!0},bowtie:{n:26,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+","+M+"V-"+M+"L-"+M+","+M+"V-"+M+"Z")},noDot:!0},"circle-cross":{n:27,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M0,"+M+"V-"+M+"M"+M+",0H-"+M+"M"+M+",0A"+M+","+M+" 0 1,1 0,-"+M+"A"+M+","+M+" 0 0,1 "+M+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O/c,2);return S(D,N,"M"+k+","+k+"L-"+k+",-"+k+"M"+k+",-"+k+"L-"+k+","+k+"M"+M+",0A"+M+","+M+" 0 1,1 0,-"+M+"A"+M+","+M+" 0 0,1 "+M+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M0,"+M+"V-"+M+"M"+M+",0H-"+M+"M"+M+","+M+"H-"+M+"V-"+M+"H"+M+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+","+M+"L-"+M+",-"+M+"M"+M+",-"+M+"L-"+M+","+M+"M"+M+","+M+"H-"+M+"V-"+M+"H"+M+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(O,D,N){if(v(D))return l;var M=h(O*1.3,2);return S(D,N,"M"+M+",0L0,"+M+"L-"+M+",0L0,-"+M+"ZM0,-"+M+"V"+M+"M-"+M+",0H"+M)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(O,D,N){if(v(D))return l;var M=h(O*1.3,2),k=h(O*.65,2);return S(D,N,"M"+M+",0L0,"+M+"L-"+M+",0L0,-"+M+"ZM-"+k+",-"+k+"L"+k+","+k+"M-"+k+","+k+"L"+k+",-"+k)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(O,D,N){if(v(D))return l;var M=h(O*1.4,2);return S(D,N,"M0,"+M+"V-"+M+"M"+M+",0H-"+M)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+","+M+"L-"+M+",-"+M+"M"+M+",-"+M+"L-"+M+","+M)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(O,D,N){if(v(D))return l;var M=h(O*1.2,2),k=h(O*.85,2);return S(D,N,"M0,"+M+"V-"+M+"M"+M+",0H-"+M+"M"+k+","+k+"L-"+k+",-"+k+"M"+k+",-"+k+"L-"+k+","+k)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(O,D,N){if(v(D))return l;var M=h(O/2,2),k=h(O,2);return S(D,N,"M"+M+","+k+"V-"+k+"M"+(M-k)+",-"+k+"V"+k+"M"+k+","+M+"H-"+k+"M-"+k+","+(M-k)+"H"+k)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(O,D,N){if(v(D))return l;var M=h(O*1.2,2),k=h(O*1.6,2),R=h(O*.8,2);return S(D,N,"M-"+M+","+R+"L0,0M"+M+","+R+"L0,0M0,-"+k+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(O,D,N){if(v(D))return l;var M=h(O*1.2,2),k=h(O*1.6,2),R=h(O*.8,2);return S(D,N,"M-"+M+",-"+R+"L0,0M"+M+",-"+R+"L0,0M0,"+k+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(O,D,N){if(v(D))return l;var M=h(O*1.2,2),k=h(O*1.6,2),R=h(O*.8,2);return S(D,N,"M"+R+","+M+"L0,0M"+R+",-"+M+"L0,0M-"+k+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(O,D,N){if(v(D))return l;var M=h(O*1.2,2),k=h(O*1.6,2),R=h(O*.8,2);return S(D,N,"M-"+R+","+M+"L0,0M-"+R+",-"+M+"L0,0M"+k+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(O,D,N){if(v(D))return l;var M=h(O*1.4,2);return S(D,N,"M"+M+",0H-"+M)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(O,D,N){if(v(D))return l;var M=h(O*1.4,2);return S(D,N,"M0,"+M+"V-"+M)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+",-"+M+"L-"+M+","+M)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(O,D,N){if(v(D))return l;var M=h(O,2);return S(D,N,"M"+M+","+M+"L-"+M+",-"+M)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O*2,2);return S(D,N,"M0,0L-"+M+","+k+"H"+M+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O*2,2);return S(D,N,"M0,0L-"+M+",-"+k+"H"+M+"Z")},noDot:!0},"arrow-left":{n:47,f:function(O,D,N){if(v(D))return l;var M=h(O*2,2),k=h(O,2);return S(D,N,"M0,0L"+M+",-"+k+"V"+k+"Z")},noDot:!0},"arrow-right":{n:48,f:function(O,D,N){if(v(D))return l;var M=h(O*2,2),k=h(O,2);return S(D,N,"M0,0L-"+M+",-"+k+"V"+k+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O*2,2);return S(D,N,"M-"+M+",0H"+M+"M0,0L-"+M+","+k+"H"+M+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(O,D,N){if(v(D))return l;var M=h(O,2),k=h(O*2,2);return S(D,N,"M-"+M+",0H"+M+"M0,0L-"+M+",-"+k+"H"+M+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(O,D,N){if(v(D))return l;var M=h(O*2,2),k=h(O,2);return S(D,N,"M0,-"+k+"V"+k+"M0,0L"+M+",-"+k+"V"+k+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(O,D,N){if(v(D))return l;var M=h(O*2,2),k=h(O,2);return S(D,N,"M0,-"+k+"V"+k+"M0,0L-"+M+",-"+k+"V"+k+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(O,D,N){if(v(D))return l;var M=u/2.5,k=2*O*d(M),R=2*O*g(M);return S(D,N,"M0,0L"+-k+","+R+"L"+k+","+R+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(O,D,N){if(v(D))return l;var M=u/4,k=2*O*d(M),R=2*O*g(M);return S(D,N,"M0,0L"+-k+","+R+"A "+2*O+","+2*O+" 0 0 1 "+k+","+R+"Z")},backoff:.4,noDot:!0}};function v(O){return O===null}var x,C,_,$;function S(O,D,N){if((!O||O%360===0)&&!D)return N;if(_===O&&$===D&&x===N)return C;_=O,$=D,x=N;function M(ge,Se){var ce=d(ge),ne=g(ge),fe=Se[0],X=Se[1]+(D||0);return[fe*ce-X*ne,fe*ne+X*ce]}for(var k=O/180*u,R=0,F=0,H=m(N),j="",P=0;P0,O=d._context.staticPlot;g.each(function(D){var N=D[0].trace,M=N.error_x||{},k=N.error_y||{},R;N.ids&&(R=function(P){return P.id});var F=c.hasMarkers(N)&&N.marker.maxdisplayed>0;!k.visible&&!M.visible&&(D=[]);var H=m.select(this).selectAll("g.errorbar").data(D,R);if(H.exit().remove(),!!D.length){M.visible||H.selectAll("path.xerror").remove(),k.visible||H.selectAll("path.yerror").remove(),H.style("opacity",1);var j=H.enter().append("g").classed("errorbar",!0);S&&j.style("opacity",0).transition().duration(x.duration).style("opacity",1),l.setClipUrl(H,v.layerClipId,d),H.each(function(P){var ee=m.select(this),J=i(P,_,$);if(!(F&&!P.vis)){var K,ae=ee.select("path.yerror");if(k.visible&&h(J.x)&&h(J.yh)&&h(J.ys)){var Q=k.width;K="M"+(J.x-Q)+","+J.yh+"h"+2*Q+"m-"+Q+",0V"+J.ys,J.noYS||(K+="m-"+Q+",0h"+2*Q),C=!ae.size(),C?ae=ee.append("path").style("vector-effect",O?"none":"non-scaling-stroke").classed("yerror",!0):S&&(ae=ae.transition().duration(x.duration).ease(x.easing)),ae.attr("d",K)}else ae.remove();var he=ee.select("path.xerror");if(M.visible&&h(J.y)&&h(J.xh)&&h(J.xs)){var ge=(M.copy_ystyle?k:M).width;K="M"+J.xh+","+(J.y-ge)+"v"+2*ge+"m0,-"+ge+"H"+J.xs,J.noXS||(K+="m0,-"+ge+"v"+2*ge),C=!he.size(),C?he=ee.append("path").style("vector-effect",O?"none":"non-scaling-stroke").classed("xerror",!0):S&&(he=he.transition().duration(x.duration).ease(x.easing)),he.attr("d",K)}else he.remove()}})}})};function i(u,d,g){var v={x:d.c2p(u.x),y:g.c2p(u.y)};return u.yh!==void 0&&(v.yh=g.c2p(u.yh),v.ys=g.c2p(u.ys),h(v.ys)||(v.noYS=!0,v.ys=g.c2p(u.ys,!0))),u.xh!==void 0&&(v.xh=d.c2p(u.xh),v.xs=d.c2p(u.xs),h(v.xs)||(v.noXS=!0,v.xs=d.c2p(u.xs,!0))),v}},2662:function(L,A,s){var m=s(9898),h=s(7901);L.exports=function(c){c.each(function(i){var u=i[0].trace,d=u.error_y||{},g=u.error_x||{},v=m.select(this);v.selectAll("path.yerror").style("stroke-width",d.thickness+"px").call(h.stroke,d.color),g.copy_ystyle&&(g=d),v.selectAll("path.xerror").style("stroke-width",g.thickness+"px").call(h.stroke,g.color)})}},7914:function(L,A,s){var m=s(1940),h=s(528).hoverlabel,l=s(1426).extendFlat;L.exports={hoverlabel:{bgcolor:l({},h.bgcolor,{arrayOk:!0}),bordercolor:l({},h.bordercolor,{arrayOk:!0}),font:m({arrayOk:!0,editType:"none"}),align:l({},h.align,{arrayOk:!0}),namelength:l({},h.namelength,{arrayOk:!0}),editType:"none"}}},732:function(L,A,s){var m=s(1828),h=s(3972);L.exports=function(i){var u=i.calcdata,d=i._fullLayout;function g($){return function(S){return m.coerceHoverinfo({hoverinfo:S},{_module:$._module},d)}}for(var v=0;v=0&&v.indexGe[0]._length||pt<0||pt>Xe[0]._length)return _.unhoverRaw(se,ue)}if(ue.pointerX=ht+Ge[0]._offset,ue.pointerY=pt+Xe[0]._offset,"xval"in ue?pn=O.flat(de,ue.xval):pn=O.p2c(Ge,ht),"yval"in ue?_n=O.flat(de,ue.yval):_n=O.p2c(Xe,pt),!h(pn[0])||!h(_n[0]))return c.warn("Fx.hover failed",ue,se),_.unhoverRaw(se,ue)}var fn=1/0;function tn(ar,cr){for(Zn=0;Znvt&&(Nt.splice(0,vt),fn=Nt[0].distance),We&&Yt!==0&&Nt.length===0){wt.distance=Yt,wt.index=!1;var bo=Cn._module.hoverPoints(wt,lt,ft,"closest",{hoverLayer:Me._hoverlayer});if(bo&&(bo=bo.filter(function(Os){return Os.spikeDistance<=Yt})),bo&&bo.length){var Zo,oa=bo.filter(function(Os){return Os.xa.showspikes&&Os.xa.spikesnap!=="hovered data"});if(oa.length){var Va=oa[0];h(Va.x0)&&h(Va.y0)&&(Zo=Dt(Va),(!$t.vLinePoint||$t.vLinePoint.spikeDistance>Zo.spikeDistance)&&($t.vLinePoint=Zo))}var Yo=bo.filter(function(Os){return Os.ya.showspikes&&Os.ya.spikesnap!=="hovered data"});if(Yo.length){var Fa=Yo[0];h(Fa.x0)&&h(Fa.y0)&&(Zo=Dt(Fa),(!$t.hLinePoint||$t.hLinePoint.spikeDistance>Zo.spikeDistance)&&($t.hLinePoint=Zo))}}}}}tn();function Zt(ar,cr,Kr){for(var qr=null,So=1/0,wa,bo=0;bo0&&Math.abs(ar.distance)Ln-1;He--)Cr(Nt[He]);Nt=wr,Er()}var De=se._hoverdata,St=[],kt=Fe(se),Pt=ie(se);for(sn=0;sn1||Nt.length>1)||Ct==="closest"&&Ze&&Nt.length>1,Bn=C.combine(Me.plot_bgcolor||C.background,Me.paper_bgcolor),Hr=ge(Nt,{gd:se,hovermode:Ct,rotateLabels:Qn,bgColor:Bn,container:Me._hoverlayer,outerContainer:Me._paper.node(),commonLabelOpts:Me.hoverlabel,hoverdistance:Me.hoverdistance}),fr=Hr.hoverLabels;if(O.isUnifiedHover(Ct)||(ce(fr,Qn,Me,Hr.commonLabelBoundingBox),X(fr,Qn,Me._invScaleX,Me._invScaleY)),Te&&Te.tagName){var Vr=S.getComponentMethod("annotations","hasClickToShow")(se,St);v(m.select(Te),Vr?"pointer":"")}!Te||le||!$e(se,ue,De)||(De&&se.emit("plotly_unhover",{event:ue,points:De}),se.emit("plotly_hover",{event:ue,points:se._hoverdata,xaxes:Ge,yaxes:Xe,xvals:pn,yvals:_n}))}function Q(se){return[se.trace.index,se.index,se.x0,se.y0,se.name,se.attr,se.xa?se.xa._id:"",se.ya?se.ya._id:""].join(",")}var he=/([\s\S]*)<\/extra>/;function ge(se,ue){var pe=ue.gd,le=pe._fullLayout,Te=ue.hovermode,de=ue.rotateLabels,Me=ue.bgColor,Re=ue.container,ze=ue.outerContainer,We=ue.commonLabelOpts||{};if(se.length===0)return[[]];var ot=ue.fontFamily||D.HOVERFONT,dt=ue.fontSize||D.HOVERFONTSIZE,Ge=se[0],Xe=Ge.xa,qe=Ge.ya,gt=Te.charAt(0),ut=gt+"Label",tt=Ge[ut];if(tt===void 0&&Xe.type==="multicategory")for(var Ct=0;Ctle.width-Pt?(De=le.width-Pt,xr.attr("d","M"+(Pt-P)+",0L"+Pt+","+kt+P+"v"+kt+(ee*2+He.height)+"H-"+Pt+"V"+kt+P+"H"+(Pt-P*2)+"Z")):xr.attr("d","M0,0L"+P+","+kt+P+"H"+Pt+"v"+kt+(ee*2+He.height)+"H-"+Pt+"V"+kt+P+"H-"+P+"Z"),jn.minX=De-Pt,jn.maxX=De+Pt,Xe.side==="top"?(jn.minY=St-(ee*2+He.height),jn.maxY=St-ee):(jn.minY=St+ee,jn.maxY=St+(ee*2+He.height))}else{var Bt,Ut,Ot;qe.side==="right"?(Bt="start",Ut=1,Ot="",De=Xe._offset+Xe._length):(Bt="end",Ut=-1,Ot="-",De=Xe._offset),St=qe._offset+(Ge.y0+Ge.y1)/2,or.attr("text-anchor",Bt),xr.attr("d","M0,0L"+Ot+P+","+P+"V"+(ee+He.height/2)+"h"+Ot+(ee*2+He.width)+"V-"+(ee+He.height/2)+"H"+Ot+P+"V-"+P+"Z"),jn.minY=St-(ee+He.height/2),jn.maxY=St+(ee+He.height/2),qe.side==="right"?(jn.minX=De+P,jn.maxX=De+P+(ee*2+He.width)):(jn.minX=De-P-(ee*2+He.width),jn.maxX=De-P);var _t=He.height/2,qt=Yt-He.top-_t,cn="clip"+le._uid+"commonlabel"+qe._id,Qt;if(De=0?rr=pr:Gn+tn=0?rr=Gn:Ir+tn=0?Yr=Er:zt+Zt=0?Yr=zt:Tr+Zt=0,(Ln.idealAlign==="top"||!Qn)&&Bn?(qt-=Qt/2,Ln.anchor="end"):Qn?(qt+=Qt/2,Ln.anchor="start"):Ln.anchor="middle",Ln.crossPos=qt;else{if(Ln.pos=qt,Qn=_t+cn/2+gn<=Nt,Bn=_t-cn/2-gn>=0,(Ln.idealAlign==="left"||!Qn)&&Bn)_t-=cn/2,Ln.anchor="end";else if(Qn)_t+=cn/2,Ln.anchor="start";else{Ln.anchor="middle";var Hr=gn/2,fr=_t+Hr-Nt,Vr=_t-Hr;fr>0&&(_t-=fr),Vr<0&&(_t+=-Vr)}Ln.crossPos=_t}kt.attr("text-anchor",Ln.anchor),Bt&&Pt.attr("text-anchor",Ln.anchor),xr.attr("transform",i(_t,qt)+(de?u(k):""))}),{hoverLabels:_r,commonLabelBoundingBox:jn}}function Se(se,ue,pe,le,Te,de){var Me="",Re="";se.nameOverride!==void 0&&(se.name=se.nameOverride),se.name&&(se.trace._meta&&(se.name=c.templateString(se.name,se.trace._meta)),Me=Ne(se.name,se.nameLength));var ze=pe.charAt(0),We=ze==="x"?"y":"x";se.zLabel!==void 0?(se.xLabel!==void 0&&(Re+="x: "+se.xLabel+"
    "),se.yLabel!==void 0&&(Re+="y: "+se.yLabel+"
    "),se.trace.type!=="choropleth"&&se.trace.type!=="choroplethmapbox"&&(Re+=(Re?"z: ":"")+se.zLabel)):ue&&se[ze+"Label"]===Te?Re=se[We+"Label"]||"":se.xLabel===void 0?se.yLabel!==void 0&&se.trace.type!=="scattercarpet"&&(Re=se.yLabel):se.yLabel===void 0?Re=se.xLabel:Re="("+se.xLabel+", "+se.yLabel+")",(se.text||se.text===0)&&!Array.isArray(se.text)&&(Re+=(Re?"
    ":"")+se.text),se.extraText!==void 0&&(Re+=(Re?"
    ":"")+se.extraText),de&&Re===""&&!se.hovertemplate&&(Me===""&&de.remove(),Re=Me);var ot=se.hovertemplate||!1;if(ot){var dt=se.hovertemplateLabels||se;se[ze+"Label"]!==Te&&(dt[ze+"other"]=dt[ze+"Val"],dt[ze+"otherLabel"]=dt[ze+"Label"]),Re=c.hovertemplateString(ot,dt,le._d3locale,se.eventData[0]||{},se.trace._meta),Re=Re.replace(he,function(Ge,Xe){return Me=Ne(Xe,se.nameLength),""})}return[Re,Me]}function ce(se,ue,pe,le){var Te=ue?"xa":"ya",de=ue?"ya":"xa",Me=0,Re=1,ze=se.size(),We=new Array(ze),ot=0,dt=le.minX,Ge=le.maxX,Xe=le.minY,qe=le.maxY,gt=function(lt){return lt*pe._invScaleX},ut=function(lt){return lt*pe._invScaleY};se.each(function(lt){var ft=lt[Te],wt=lt[de],vt=ft._id.charAt(0)==="x",$t=ft.range;ot===0&&$t&&$t[0]>$t[1]!==vt&&(Re=-1);var Ze=0,it=vt?pe.width:pe.height;if(pe.hovermode==="x"||pe.hovermode==="y"){var ht=ne(lt,ue),pt=lt.anchor,Tt=pt==="end"?-1:1,Et,fn;if(pt==="middle")Et=lt.crossPos+(vt?ut(ht.y-lt.by/2):gt(lt.bx/2+lt.tx2width/2)),fn=Et+(vt?ut(lt.by):gt(lt.bx));else if(vt)Et=lt.crossPos+ut(P+ht.y)-ut(lt.by/2-P),fn=Et+ut(lt.by);else{var tn=gt(Tt*P+ht.x),Zt=tn+gt(Tt*lt.bx);Et=lt.crossPos+Math.min(tn,Zt),fn=lt.crossPos+Math.max(tn,Zt)}vt?Xe!==void 0&&qe!==void 0&&Math.min(fn,qe)-Math.max(Et,Xe)>1&&(wt.side==="left"?(Ze=wt._mainLinePosition,it=pe.width):it=wt._mainLinePosition):dt!==void 0&&Ge!==void 0&&Math.min(fn,Ge)-Math.max(Et,dt)>1&&(wt.side==="top"?(Ze=wt._mainLinePosition,it=pe.height):it=wt._mainLinePosition)}We[ot++]=[{datum:lt,traceIndex:lt.trace.index,dp:0,pos:lt.pos,posref:lt.posref,size:lt.by*(vt?F:1)/2,pmin:Ze,pmax:it}]}),We.sort(function(lt,ft){return lt[0].posref-ft[0].posref||Re*(ft[0].traceIndex-lt[0].traceIndex)});var tt,Ct,Gt,Yt,Nt,Ft,pn;function _n(lt){var ft=lt[0],wt=lt[lt.length-1];if(Ct=ft.pmin-ft.pos-ft.dp+ft.size,Gt=wt.pos+wt.dp+wt.size-ft.pmax,Ct>.01){for(Nt=lt.length-1;Nt>=0;Nt--)lt[Nt].dp+=Ct;tt=!1}if(!(Gt<.01)){if(Ct<-.01){for(Nt=lt.length-1;Nt>=0;Nt--)lt[Nt].dp-=Gt;tt=!1}if(tt){var vt=0;for(Yt=0;Ytft.pmax&&vt++;for(Yt=lt.length-1;Yt>=0&&!(vt<=0);Yt--)Ft=lt[Yt],Ft.pos>ft.pmax-1&&(Ft.del=!0,vt--);for(Yt=0;Yt=0;Nt--)lt[Nt].dp-=Gt;for(Yt=lt.length-1;Yt>=0&&!(vt<=0);Yt--)Ft=lt[Yt],Ft.pos+Ft.dp+Ft.size>ft.pmax&&(Ft.del=!0,vt--)}}}for(;!tt&&Me<=ze;){for(Me++,tt=!0,Yt=0;Yt.01&&an.pmin===Cn.pmin&&an.pmax===Cn.pmax){for(Nt=Zn.length-1;Nt>=0;Nt--)Zn[Nt].dp+=Ct;for(sn.push.apply(sn,Zn),We.splice(Yt+1,1),pn=0,Nt=sn.length-1;Nt>=0;Nt--)pn+=sn[Nt].dp;for(Gt=pn/sn.length,Nt=sn.length-1;Nt>=0;Nt--)sn[Nt].dp-=Gt;tt=!1}else Yt++}We.forEach(_n)}for(Yt=We.length-1;Yt>=0;Yt--){var jn=We[Yt];for(Nt=jn.length-1;Nt>=0;Nt--){var Wn=jn[Nt],wn=Wn.datum;wn.offset=Wn.dp,wn.del=Wn.del}}}function ne(se,ue){var pe=0,le=se.offset;return ue&&(le*=-j,pe=se.offset*H),{x:pe,y:le}}function fe(se){var ue={start:1,end:-1,middle:0}[se.anchor],pe=ue*(P+ee),le=pe+ue*(se.txwidth+ee),Te=se.anchor==="middle";return Te&&(pe-=se.tx2width/2,le+=se.txwidth/2+ee),{alignShift:ue,textShiftX:pe,text2ShiftX:le}}function X(se,ue,pe,le){var Te=function(Me){return Me*pe},de=function(Me){return Me*le};se.each(function(Me){var Re=m.select(this);if(Me.del)return Re.remove();var ze=Re.select("text.nums"),We=Me.anchor,ot=We==="end"?-1:1,dt=fe(Me),Ge=ne(Me,ue),Xe=Ge.x,qe=Ge.y,gt=We==="middle";Re.select("path").attr("d",gt?"M-"+Te(Me.bx/2+Me.tx2width/2)+","+de(qe-Me.by/2)+"h"+Te(Me.bx)+"v"+de(Me.by)+"h-"+Te(Me.bx)+"Z":"M0,0L"+Te(ot*P+Xe)+","+de(P+qe)+"v"+de(Me.by/2-P)+"h"+Te(ot*Me.bx)+"v-"+de(Me.by)+"H"+Te(ot*P+Xe)+"V"+de(qe-P)+"Z");var ut=Xe+dt.textShiftX,tt=qe+Me.ty0-Me.by/2+ee,Ct=Me.textAlign||"auto";Ct!=="auto"&&(Ct==="left"&&We!=="start"?(ze.attr("text-anchor","start"),ut=gt?-Me.bx/2-Me.tx2width/2+ee:-Me.bx-ee):Ct==="right"&&We!=="end"&&(ze.attr("text-anchor","end"),ut=gt?Me.bx/2-Me.tx2width/2-ee:Me.bx+ee)),ze.call(g.positionText,Te(ut),de(tt)),Me.tx2width&&(Re.select("text.name").call(g.positionText,Te(dt.text2ShiftX+dt.alignShift*ee+Xe),de(qe+Me.ty0-Me.by/2+ee)),Re.select("rect").call(x.setRect,Te(dt.text2ShiftX+(dt.alignShift-1)*Me.tx2width/2+Xe),de(qe-Me.by/2-1),Te(Me.tx2width),de(Me.by+2)))})}function ye(se,ue){var pe=se.index,le=se.trace||{},Te=se.cd[0],de=se.cd[pe]||{};function Me(Ge){return Ge||h(Ge)&&Ge===0}var Re=Array.isArray(pe)?function(Ge,Xe){var qe=c.castOption(Te,pe,Ge);return Me(qe)?qe:c.extractOption({},le,"",Xe)}:function(Ge,Xe){return c.extractOption(de,le,Ge,Xe)};function ze(Ge,Xe,qe){var gt=Re(Xe,qe);Me(gt)&&(se[Ge]=gt)}if(ze("hoverinfo","hi","hoverinfo"),ze("bgcolor","hbg","hoverlabel.bgcolor"),ze("borderColor","hbc","hoverlabel.bordercolor"),ze("fontFamily","htf","hoverlabel.font.family"),ze("fontSize","hts","hoverlabel.font.size"),ze("fontColor","htc","hoverlabel.font.color"),ze("nameLength","hnl","hoverlabel.namelength"),ze("textAlign","hta","hoverlabel.align"),se.posref=ue==="y"||ue==="closest"&&le.orientation==="h"?se.xa._offset+(se.x0+se.x1)/2:se.ya._offset+(se.y0+se.y1)/2,se.x0=c.constrain(se.x0,0,se.xa._length),se.x1=c.constrain(se.x1,0,se.xa._length),se.y0=c.constrain(se.y0,0,se.ya._length),se.y1=c.constrain(se.y1,0,se.ya._length),se.xLabelVal!==void 0&&(se.xLabel="xLabel"in se?se.xLabel:$.hoverLabelText(se.xa,se.xLabelVal,le.xhoverformat),se.xVal=se.xa.c2d(se.xLabelVal)),se.yLabelVal!==void 0&&(se.yLabel="yLabel"in se?se.yLabel:$.hoverLabelText(se.ya,se.yLabelVal,le.yhoverformat),se.yVal=se.ya.c2d(se.yLabelVal)),se.zLabelVal!==void 0&&se.zLabel===void 0&&(se.zLabel=String(se.zLabelVal)),!isNaN(se.xerr)&&!(se.xa.type==="log"&&se.xerr<=0)){var We=$.tickText(se.xa,se.xa.c2l(se.xerr),"hover").text;se.xerrneg!==void 0?se.xLabel+=" +"+We+" / -"+$.tickText(se.xa,se.xa.c2l(se.xerrneg),"hover").text:se.xLabel+=" ± "+We,ue==="x"&&(se.distance+=1)}if(!isNaN(se.yerr)&&!(se.ya.type==="log"&&se.yerr<=0)){var ot=$.tickText(se.ya,se.ya.c2l(se.yerr),"hover").text;se.yerrneg!==void 0?se.yLabel+=" +"+ot+" / -"+$.tickText(se.ya,se.ya.c2l(se.yerrneg),"hover").text:se.yLabel+=" ± "+ot,ue==="y"&&(se.distance+=1)}var dt=se.hoverinfo||se.trace.hoverinfo;return dt&&dt!=="all"&&(dt=Array.isArray(dt)?dt:dt.split("+"),dt.indexOf("x")===-1&&(se.xLabel=void 0),dt.indexOf("y")===-1&&(se.yLabel=void 0),dt.indexOf("z")===-1&&(se.zLabel=void 0),dt.indexOf("text")===-1&&(se.text=void 0),dt.indexOf("name")===-1&&(se.name=void 0)),se}function Ce(se,ue,pe){var le=pe.container,Te=pe.fullLayout,de=Te._size,Me=pe.event,Re=!!ue.hLinePoint,ze=!!ue.vLinePoint,We,ot;if(le.selectAll(".spikeline").remove(),!!(ze||Re)){var dt=C.combine(Te.plot_bgcolor,Te.paper_bgcolor);if(Re){var Ge=ue.hLinePoint,Xe,qe;We=Ge&&Ge.xa,ot=Ge&&Ge.ya;var gt=ot.spikesnap;gt==="cursor"?(Xe=Me.pointerX,qe=Me.pointerY):(Xe=We._offset+Ge.x,qe=ot._offset+Ge.y);var ut=l.readability(Ge.color,dt)<1.5?C.contrast(dt):Ge.color,tt=ot.spikemode,Ct=ot.spikethickness,Gt=ot.spikecolor||ut,Yt=$.getPxPosition(se,ot),Nt,Ft;if(tt.indexOf("toaxis")!==-1||tt.indexOf("across")!==-1){if(tt.indexOf("toaxis")!==-1&&(Nt=Yt,Ft=Xe),tt.indexOf("across")!==-1){var pn=ot._counterDomainMin,_n=ot._counterDomainMax;ot.anchor==="free"&&(pn=Math.min(pn,ot.position),_n=Math.max(_n,ot.position)),Nt=de.l+pn*de.w,Ft=de.l+_n*de.w}le.insert("line",":first-child").attr({x1:Nt,x2:Ft,y1:qe,y2:qe,"stroke-width":Ct,stroke:Gt,"stroke-dasharray":x.dashStyle(ot.spikedash,Ct)}).classed("spikeline",!0).classed("crisp",!0),le.insert("line",":first-child").attr({x1:Nt,x2:Ft,y1:qe,y2:qe,"stroke-width":Ct+2,stroke:dt}).classed("spikeline",!0).classed("crisp",!0)}tt.indexOf("marker")!==-1&&le.insert("circle",":first-child").attr({cx:Yt+(ot.side!=="right"?Ct:-Ct),cy:qe,r:Ct,fill:Gt}).classed("spikeline",!0)}if(ze){var sn=ue.vLinePoint,Zn,an;We=sn&&sn.xa,ot=sn&&sn.ya;var Cn=We.spikesnap;Cn==="cursor"?(Zn=Me.pointerX,an=Me.pointerY):(Zn=We._offset+sn.x,an=ot._offset+sn.y);var jn=l.readability(sn.color,dt)<1.5?C.contrast(dt):sn.color,Wn=We.spikemode,wn=We.spikethickness,lt=We.spikecolor||jn,ft=$.getPxPosition(se,We),wt,vt;if(Wn.indexOf("toaxis")!==-1||Wn.indexOf("across")!==-1){if(Wn.indexOf("toaxis")!==-1&&(wt=ft,vt=an),Wn.indexOf("across")!==-1){var $t=We._counterDomainMin,Ze=We._counterDomainMax;We.anchor==="free"&&($t=Math.min($t,We.position),Ze=Math.max(Ze,We.position)),wt=de.t+(1-Ze)*de.h,vt=de.t+(1-$t)*de.h}le.insert("line",":first-child").attr({x1:Zn,x2:Zn,y1:wt,y2:vt,"stroke-width":wn,stroke:lt,"stroke-dasharray":x.dashStyle(We.spikedash,wn)}).classed("spikeline",!0).classed("crisp",!0),le.insert("line",":first-child").attr({x1:Zn,x2:Zn,y1:wt,y2:vt,"stroke-width":wn+2,stroke:dt}).classed("spikeline",!0).classed("crisp",!0)}Wn.indexOf("marker")!==-1&&le.insert("circle",":first-child").attr({cx:Zn,cy:ft-(We.side!=="top"?wn:-wn),r:wn,fill:lt}).classed("spikeline",!0)}}}function $e(se,ue,pe){if(!pe||pe.length!==se._hoverdata.length)return!0;for(var le=pe.length-1;le>=0;le--){var Te=pe[le],de=se._hoverdata[le];if(Te.curveNumber!==de.curveNumber||String(Te.pointNumber)!==String(de.pointNumber)||String(Te.pointNumbers)!==String(de.pointNumbers))return!0}return!1}function ke(se,ue){return!ue||ue.vLinePoint!==se._spikepoints.vLinePoint||ue.hLinePoint!==se._spikepoints.hLinePoint}function Ne(se,ue){return g.plainText(se||"",{len:ue,allowedTags:["br","sub","sup","b","i","em"]})}function Ve(se,ue){for(var pe=ue.charAt(0),le=[],Te=[],de=[],Me=0;Me1)){delete $.grid;return}if(!N&&!M&&!k){var K=P("pattern")==="independent";K&&(N=!0)}j._hasSubplotGrid=N;var ae=P("roworder"),Q=ae==="top to bottom",he=N?.2:.1,ge=N?.3:.1,Se,ce;R&&$._splomGridDflt&&(Se=$._splomGridDflt.xside,ce=$._splomGridDflt.yside),j._domains={x:v("x",P,he,Se,J),y:v("y",P,ge,ce,ee,Q)}}function v(_,$,S,O,D,N){var M=$(_+"gap",S),k=$("domain."+_);$(_+"side",O);for(var R=new Array(D),F=k[0],H=(k[1]-F)/(D-M),j=H*(1-M),P=0;P(v==="legend"?1:0));if(Q===!1&&(C[v]=void 0),!(Q===!1&&!$.uirevision)&&(O("uirevision",C.uirevision),Q!==!1)){O("borderwidth");var he=O("orientation"),ge=O("yref"),Se=O("xref"),ce=he==="h",ne=ge==="paper",fe=Se==="paper",X,ye,Ce,$e="left";ce?(X=0,m.getComponentMethod("rangeslider","isVisible")(x.xaxis)?ne?(ye=1.1,Ce="bottom"):(ye=1,Ce="top"):ne?(ye=-.1,Ce="top"):(ye=0,Ce="bottom")):(ye=1,Ce="auto",fe?X=1.02:(X=1,$e="right")),h.coerce($,S,{x:{valType:"number",editType:"legend",min:fe?-2:0,max:fe?3:1,dflt:X}},"x"),h.coerce($,S,{y:{valType:"number",editType:"legend",min:ne?-2:0,max:ne?3:1,dflt:ye}},"y"),O("traceorder",P),d.isGrouped(C[v])&&O("tracegroupgap"),O("entrywidth"),O("entrywidthmode"),O("itemsizing"),O("itemwidth"),O("itemclick"),O("itemdoubleclick"),O("groupclick"),O("xanchor",$e),O("yanchor",Ce),O("valign"),h.noneOrAll($,S,["x","y"]);var ke=O("title.text");if(ke){O("title.side",ce?"left":"top");var Ne=h.extendFlat({},D,{size:h.bigFont(D.size)});h.coerceFont(O,"title.font",Ne)}}}}L.exports=function(x,C,_){var $,S=_.slice(),O=C.shapes;if(O)for($=0;$1)}var le=$e.hiddenlabels||[];if(!Oe&&(!$e.showlegend||!Fe.length))return Ve.selectAll("."+ke).remove(),$e._topdefs.select("#"+Ne).remove(),l.autoMargin(X,ke);var Te=h.ensureSingle(Ve,"g",ke,function(Xe){Oe||Xe.attr("pointer-events","all")}),de=h.ensureSingleById($e._topdefs,"clipPath",Ne,function(Xe){Xe.append("rect")}),Me=h.ensureSingle(Te,"rect","bg",function(Xe){Xe.attr("shape-rendering","crispEdges")});Me.call(g.stroke,Ce.bordercolor).call(g.fill,Ce.bgcolor).style("stroke-width",Ce.borderwidth+"px");var Re=h.ensureSingle(Te,"g","scrollbox"),ze=Ce.title;Ce._titleWidth=0,Ce._titleHeight=0;var We;ze.text?(We=h.ensureSingle(Re,"text",ke+"titletext"),We.attr("text-anchor","start").call(d.font,ze.font).text(ze.text),ae(We,Re,X,Ce,k)):Re.selectAll("."+ke+"titletext").remove();var ot=h.ensureSingle(Te,"rect","scrollbar",function(Xe){Xe.attr(C.scrollBarEnterAttrs).call(g.fill,C.scrollBarColor)}),dt=Re.selectAll("g.groups").data(Fe);dt.enter().append("g").attr("class","groups"),dt.exit().remove();var Ge=dt.selectAll("g.traces").data(h.identity);Ge.enter().append("g").attr("class","traces"),Ge.exit().remove(),Ge.style("opacity",function(Xe){var qe=Xe[0].trace;return c.traceIs(qe,"pie-like")?le.indexOf(Xe[0].label)!==-1?.5:1:qe.visible==="legendonly"?.5:1}).each(function(){m.select(this).call(ee,X,Ce)}).call(N,X,Ce).each(function(){Oe||m.select(this).call(K,X,ke)}),h.syncOrAsync([l.previousPromises,function(){return ge(X,dt,Ge,Ce)},function(){var Xe=$e._size,qe=Ce.borderwidth,gt=Ce.xref==="paper",ut=Ce.yref==="paper";if(ze.text&&F(We,Ce,qe),!Oe){var tt,Ct;gt?tt=Xe.l+Xe.w*Ce.x-S[ce(Ce)]*Ce._width:tt=$e.width*Ce.x-S[ce(Ce)]*Ce._width,ut?Ct=Xe.t+Xe.h*(1-Ce.y)-S[ne(Ce)]*Ce._effHeight:Ct=$e.height*(1-Ce.y)-S[ne(Ce)]*Ce._effHeight;var Gt=Se(X,ke,tt,Ct);if(Gt)return;if($e.margin.autoexpand){var Yt=tt,Nt=Ct;tt=gt?h.constrain(tt,0,$e.width-Ce._width):Yt,Ct=ut?h.constrain(Ct,0,$e.height-Ce._effHeight):Nt,tt!==Yt&&h.log("Constrain "+ke+".x to make legend fit inside graph"),Ct!==Nt&&h.log("Constrain "+ke+".y to make legend fit inside graph")}d.setTranslate(Te,tt,Ct)}if(ot.on(".drag",null),Te.on("wheel",null),Oe||Ce._height<=Ce._maxHeight||X._context.staticPlot){var Ft=Ce._effHeight;Oe&&(Ft=Ce._height),Me.attr({width:Ce._width-qe,height:Ft-qe,x:qe/2,y:qe/2}),d.setTranslate(Re,0,0),de.select("rect").attr({width:Ce._width-2*qe,height:Ft-2*qe,x:qe,y:qe}),d.setClipUrl(Re,Ne,X),d.setRect(ot,0,0,0,0),delete Ce._scrollY}else{var pn=Math.max(C.scrollBarMinHeight,Ce._effHeight*Ce._effHeight/Ce._height),_n=Ce._effHeight-pn-2*C.scrollBarMargin,sn=Ce._height-Ce._effHeight,Zn=_n/sn,an=Math.min(Ce._scrollY||0,sn);Me.attr({width:Ce._width-2*qe+C.scrollBarWidth+C.scrollBarMargin,height:Ce._effHeight-qe,x:qe/2,y:qe/2}),de.select("rect").attr({width:Ce._width-2*qe+C.scrollBarWidth+C.scrollBarMargin,height:Ce._effHeight-2*qe,x:qe,y:qe+an}),d.setClipUrl(Re,Ne,X),vt(an,pn,Zn),Te.on("wheel",function(){an=h.constrain(Ce._scrollY+m.event.deltaY/_n*sn,0,sn),vt(an,pn,Zn),an!==0&&an!==sn&&m.event.preventDefault()});var Cn,jn,Wn,wn=function(pt,Tt,Et){var fn=(Et-Tt)/Zn+pt;return h.constrain(fn,0,sn)},lt=function(pt,Tt,Et){var fn=(Tt-Et)/Zn+pt;return h.constrain(fn,0,sn)},ft=m.behavior.drag().on("dragstart",function(){var pt=m.event.sourceEvent;pt.type==="touchstart"?Cn=pt.changedTouches[0].clientY:Cn=pt.clientY,Wn=an}).on("drag",function(){var pt=m.event.sourceEvent;pt.buttons===2||pt.ctrlKey||(pt.type==="touchmove"?jn=pt.changedTouches[0].clientY:jn=pt.clientY,an=wn(Wn,Cn,jn),vt(an,pn,Zn))});ot.call(ft);var wt=m.behavior.drag().on("dragstart",function(){var pt=m.event.sourceEvent;pt.type==="touchstart"&&(Cn=pt.changedTouches[0].clientY,Wn=an)}).on("drag",function(){var pt=m.event.sourceEvent;pt.type==="touchmove"&&(jn=pt.changedTouches[0].clientY,an=lt(Wn,Cn,jn),vt(an,pn,Zn))});Re.call(wt)}function vt(pt,Tt,Et){Ce._scrollY=X._fullLayout[ke]._scrollY=pt,d.setTranslate(Re,0,-pt),d.setRect(ot,Ce._width,C.scrollBarMargin+pt*Et,C.scrollBarWidth,Tt),de.select("rect").attr("y",qe+pt)}if(X._context.edits.legendPosition){var $t,Ze,it,ht;Te.classed("cursor-move",!0),u.init({element:Te.node(),gd:X,prepFn:function(){var pt=d.getTranslate(Te);it=pt.x,ht=pt.y},moveFn:function(pt,Tt){var Et=it+pt,fn=ht+Tt;d.setTranslate(Te,Et,fn),$t=u.align(Et,Ce._width,Xe.l,Xe.l+Xe.w,Ce.xanchor),Ze=u.align(fn+Ce._height,-Ce._height,Xe.t+Xe.h,Xe.t,Ce.yanchor)},doneFn:function(){if($t!==void 0&&Ze!==void 0){var pt={};pt[ke+".x"]=$t,pt[ke+".y"]=Ze,c.call("_guiRelayout",X,pt)}},clickFn:function(pt,Tt){var Et=Ve.selectAll("g.traces").filter(function(){var fn=this.getBoundingClientRect();return Tt.clientX>=fn.left&&Tt.clientX<=fn.right&&Tt.clientY>=fn.top&&Tt.clientY<=fn.bottom});Et.size()>0&&P(X,Te,Et,pt,Tt)}})}}],X)}}function j(X,ye,Ce){var $e=X[0],ke=$e.width,Ne=ye.entrywidthmode,Ve=$e.trace.legendwidth||ye.entrywidth;return Ne==="fraction"?ye._maxWidth*Ve:Ce+(Ve||ke)}function P(X,ye,Ce,$e,ke){var Ne=Ce.data()[0][0].trace,Ve={event:ke,node:Ce.node(),curveNumber:Ne.index,expandedIndex:Ne._expandedIndex,data:X.data,layout:X.layout,frames:X._transitionData._frames,config:X._context,fullData:X._fullData,fullLayout:X._fullLayout};Ne._group&&(Ve.group=Ne._group),c.traceIs(Ne,"pie-like")&&(Ve.label=Ce.datum()[0].label);var Oe=i.triggerHandler(X,"plotly_legendclick",Ve);if($e===1){if(Oe===!1)return;ye._clickTimeout=setTimeout(function(){X._fullLayout&&x(Ce,X,$e)},X._context.doubleClickDelay)}else if($e===2){ye._clickTimeout&&clearTimeout(ye._clickTimeout),X._legendMouseDownTime=0;var Fe=i.triggerHandler(X,"plotly_legenddoubleclick",Ve);Fe!==!1&&Oe!==!1&&x(Ce,X,$e)}}function ee(X,ye,Ce){var $e=fe(Ce),ke=X.data()[0][0],Ne=ke.trace,Ve=c.traceIs(Ne,"pie-like"),Oe=!Ce._inHover&&ye._context.edits.legendText&&!Ve,Fe=Ce._maxNameLength,ie,we;ke.groupTitle?(ie=ke.groupTitle.text,we=ke.groupTitle.font):(we=Ce.font,Ce.entries?ie=ke.text:(ie=Ve?ke.label:Ne.name,Ne._meta&&(ie=h.templateString(ie,Ne._meta))));var se=h.ensureSingle(X,"text",$e+"text");se.attr("text-anchor","start").call(d.font,we).text(Oe?J(ie,Fe):ie);var ue=Ce.itemwidth+C.itemGap*2;v.positionText(se,ue,0),Oe?se.call(v.makeEditable,{gd:ye,text:ie}).call(ae,X,ye,Ce).on("edit",function(pe){this.text(J(pe,Fe)).call(ae,X,ye,Ce);var le=ke.trace._fullInput||{},Te={};if(c.hasTransform(le,"groupby")){var de=c.getTransformIndices(le,"groupby"),Me=de[de.length-1],Re=h.keyedContainer(le,"transforms["+Me+"].styles","target","value.name");Re.set(ke.trace._group,pe),Te=Re.constructUpdate()}else Te.name=pe;return le._isShape?c.call("_guiRelayout",ye,"shapes["+Ne.index+"].name",Te.name):c.call("_guiRestyle",ye,Te,Ne.index)}):ae(se,X,ye,Ce)}function J(X,ye){var Ce=Math.max(4,ye);if(X&&X.trim().length>=Ce/2)return X;X=X||"";for(var $e=Ce-X.length;$e>0;$e--)X+=" ";return X}function K(X,ye,Ce){var $e=ye._context.doubleClickDelay,ke,Ne=1,Ve=h.ensureSingle(X,"rect",Ce+"toggle",function(Oe){ye._context.staticPlot||Oe.style("cursor","pointer").attr("pointer-events","all"),Oe.call(g.fill,"rgba(0,0,0,0)")});ye._context.staticPlot||(Ve.on("mousedown",function(){ke=new Date().getTime(),ke-ye._legendMouseDownTime<$e?Ne+=1:(Ne=1,ye._legendMouseDownTime=ke)}),Ve.on("mouseup",function(){if(!(ye._dragged||ye._editing)){var Oe=ye._fullLayout[Ce];new Date().getTime()-ye._legendMouseDownTime>$e&&(Ne=Math.max(Ne-1,1)),P(ye,Oe,X,Ne,m.event)}}))}function ae(X,ye,Ce,$e,ke){$e._inHover&&X.attr("data-notex",!0),v.convertToTspans(X,Ce,function(){Q(ye,Ce,$e,ke)})}function Q(X,ye,Ce,$e){var ke=X.data()[0][0];if(!Ce._inHover&&ke&&!ke.trace.showlegend){X.remove();return}var Ne=X.select("g[class*=math-group]"),Ve=Ne.node(),Oe=fe(Ce);Ce||(Ce=ye._fullLayout[Oe]);var Fe=Ce.borderwidth,ie;$e===k?ie=Ce.title.font:ke.groupTitle?ie=ke.groupTitle.font:ie=Ce.font;var we=ie.size*$,se,ue;if(Ve){var pe=d.bBox(Ve);se=pe.height,ue=pe.width,$e===k?d.setTranslate(Ne,Fe,Fe+se*.75):d.setTranslate(Ne,0,se*.25)}else{var le="."+Oe+($e===k?"title":"")+"text",Te=X.select(le),de=v.lineCount(Te),Me=Te.node();if(se=we*de,ue=Me?d.bBox(Me).width:0,$e===k)Ce.title.side==="left"&&(ue+=C.itemGap*2),v.positionText(Te,Fe+C.titlePad,Fe+we);else{var Re=C.itemGap*2+Ce.itemwidth;ke.groupTitle&&(Re=C.itemGap,ue-=Ce.itemwidth),v.positionText(Te,Re,-we*((de-1)/2-.3))}}$e===k?(Ce._titleWidth=ue,Ce._titleHeight=se):(ke.lineHeight=we,ke.height=Math.max(se,16)+3,ke.width=ue)}function he(X){var ye=0,Ce=0,$e=X.title.side;return $e&&($e.indexOf("left")!==-1&&(ye=X._titleWidth),$e.indexOf("top")!==-1&&(Ce=X._titleHeight)),[ye,Ce]}function ge(X,ye,Ce,$e){var ke=X._fullLayout,Ne=fe($e);$e||($e=ke[Ne]);var Ve=ke._size,Oe=M.isVertical($e),Fe=M.isGrouped($e),ie=$e.entrywidthmode==="fraction",we=$e.borderwidth,se=2*we,ue=C.itemGap,pe=$e.itemwidth+ue*2,le=2*(we+ue),Te=ne($e),de=$e.y<0||$e.y===0&&Te==="top",Me=$e.y>1||$e.y===1&&Te==="bottom",Re=$e.tracegroupgap,ze={};$e._maxHeight=Math.max(de||Me?ke.height/2:Ve.h,30);var We=0;$e._width=0,$e._height=0;var ot=he($e);if(Oe)Ce.each(function(Wn){var wn=Wn[0].height;d.setTranslate(this,we+ot[0],we+ot[1]+$e._height+wn/2+ue),$e._height+=wn,$e._width=Math.max($e._width,Wn[0].width)}),We=pe+$e._width,$e._width+=ue+pe+se,$e._height+=le,Fe&&(ye.each(function(Wn,wn){d.setTranslate(this,0,wn*$e.tracegroupgap)}),$e._height+=($e._lgroupsLength-1)*$e.tracegroupgap);else{var dt=ce($e),Ge=$e.x<0||$e.x===0&&dt==="right",Xe=$e.x>1||$e.x===1&&dt==="left",qe=Me||de,gt=ke.width/2;$e._maxWidth=Math.max(Ge?qe&&dt==="left"?Ve.l+Ve.w:gt:Xe?qe&&dt==="right"?Ve.r+Ve.w:gt:Ve.w,2*pe);var ut=0,tt=0;Ce.each(function(Wn){var wn=j(Wn,$e,pe);ut=Math.max(ut,wn),tt+=wn}),We=null;var Ct=0;if(Fe){var Gt=0,Yt=0,Nt=0;ye.each(function(){var Wn=0,wn=0;m.select(this).selectAll("g.traces").each(function(ft){var wt=j(ft,$e,pe),vt=ft[0].height;d.setTranslate(this,ot[0],ot[1]+we+ue+vt/2+wn),wn+=vt,Wn=Math.max(Wn,wt),ze[ft[0].trace.legendgroup]=Wn});var lt=Wn+ue;Yt>0&<+we+Yt>$e._maxWidth?(Ct=Math.max(Ct,Yt),Yt=0,Nt+=Gt+Re,Gt=wn):Gt=Math.max(Gt,wn),d.setTranslate(this,Yt,Nt),Yt+=lt}),$e._width=Math.max(Ct,Yt)+we,$e._height=Nt+Gt+le}else{var Ft=Ce.size(),pn=tt+se+(Ft-1)*ue<$e._maxWidth,_n=0,sn=0,Zn=0,an=0;Ce.each(function(Wn){var wn=Wn[0].height,lt=j(Wn,$e,pe),ft=pn?lt:ut;ie||(ft+=ue),ft+we+sn-ue>=$e._maxWidth&&(Ct=Math.max(Ct,an),sn=0,Zn+=_n,$e._height+=_n,_n=0),d.setTranslate(this,ot[0]+we+sn,ot[1]+we+Zn+wn/2+ue),an=sn+lt+ue,sn+=ft,_n=Math.max(_n,wn)}),pn?($e._width=sn+se,$e._height=_n+le):($e._width=Math.max(Ct,an)+se,$e._height+=_n+le)}}$e._width=Math.ceil(Math.max($e._width+ot[0],$e._titleWidth+2*(we+C.titlePad))),$e._height=Math.ceil(Math.max($e._height+ot[1],$e._titleHeight+2*(we+C.itemGap))),$e._effHeight=Math.min($e._height,$e._maxHeight);var Cn=X._context.edits,jn=Cn.legendText||Cn.legendPosition;Ce.each(function(Wn){var wn=m.select(this).select("."+Ne+"toggle"),lt=Wn[0].height,ft=Wn[0].trace.legendgroup,wt=j(Wn,$e,pe);Fe&&ft!==""&&(wt=ze[ft]);var vt=jn?pe:We||wt;!Oe&&!ie&&(vt+=ue/2),d.setRect(wn,0,-lt/2,vt,lt)})}function Se(X,ye,Ce,$e){var ke=X._fullLayout,Ne=ke[ye],Ve=ce(Ne),Oe=ne(Ne),Fe=Ne.xref==="paper",ie=Ne.yref==="paper";X._fullLayout._reservedMargin[ye]={};var we=Ne.y<.5?"b":"t",se=Ne.x<.5?"l":"r",ue={r:ke.width-Ce,l:Ce+Ne._width,b:ke.height-$e,t:$e+Ne._effHeight};if(Fe&&ie)return l.autoMargin(X,ye,{x:Ne.x,y:Ne.y,l:Ne._width*S[Ve],r:Ne._width*O[Ve],b:Ne._effHeight*O[Oe],t:Ne._effHeight*S[Oe]});Fe?X._fullLayout._reservedMargin[ye][we]=ue[we]:ie||Ne.orientation==="v"?X._fullLayout._reservedMargin[ye][se]=ue[se]:X._fullLayout._reservedMargin[ye][we]=ue[we]}function ce(X){return h.isRightAnchor(X)?"right":h.isCenterAnchor(X)?"center":"left"}function ne(X){return h.isBottomAnchor(X)?"bottom":h.isMiddleAnchor(X)?"middle":"top"}function fe(X){return X._id||"legend"}},2424:function(L,A,s){var m=s(3972),h=s(130);L.exports=function(c,i,u){var d=i._inHover,g=h.isGrouped(i),v=h.isReversed(i),x={},C=[],_=!1,$={},S=0,O=0,D,N;function M(X,ye,Ce){if(i.visible!==!1&&!(u&&X!==i._id))if(ye===""||!h.isGrouped(i)){var $e="~~i"+S;C.push($e),x[$e]=[Ce],S++}else C.indexOf(ye)===-1?(C.push(ye),_=!0,x[ye]=[Ce]):x[ye].push(Ce)}for(D=0;DQ&&(ae=Q)}J[D][0]._groupMinRank=ae,J[D][0]._preGroupSort=D}var he=function(X,ye){return X[0]._groupMinRank-ye[0]._groupMinRank||X[0]._preGroupSort-ye[0]._preGroupSort},ge=function(X,ye){return X.trace.legendrank-ye.trace.legendrank||X._preSort-ye._preSort};for(J.forEach(function(X,ye){X[0]._preGroupSort=ye}),J.sort(he),D=0;D0)se=Fe.width;else return 0;return ee?we:Math.min(se,ie)};F.each(function(Oe){var Fe=m.select(this),ie=l.ensureSingle(Fe,"g","layers");ie.style("opacity",Oe[0].trace.opacity);var we=j.valign,se=Oe[0].lineHeight,ue=Oe[0].height;if(we==="middle"||!se||!ue)ie.attr("transform",null);else{var pe={top:1,bottom:-1}[we],le=pe*(.5*(se-ue+3));ie.attr("transform",c(0,le))}var Te=ie.selectAll("g.legendfill").data([Oe]);Te.enter().append("g").classed("legendfill",!0);var de=ie.selectAll("g.legendlines").data([Oe]);de.enter().append("g").classed("legendlines",!0);var Me=ie.selectAll("g.legendsymbols").data([Oe]);Me.enter().append("g").classed("legendsymbols",!0),Me.selectAll("g.legendpoints").data([Oe]).enter().append("g").classed("legendpoints",!0)}).each(Ve).each(Se).each(ne).each(ce).each(X).each(ke).each($e).each(he).each(ge).each(ye).each(Ce);function he(Oe){var Fe=M(Oe),ie=Fe.showFill,we=Fe.showLine,se=Fe.showGradientLine,ue=Fe.showGradientFill,pe=Fe.anyFill,le=Fe.anyLine,Te=Oe[0],de=Te.trace,Me,Re,ze=d(de),We=ze.colorscale,ot=ze.reversescale,dt=function(Ct){if(Ct.size())if(ie)i.fillGroupStyle(Ct,H);else{var Gt="legendfill-"+de.uid;i.gradient(Ct,H,Gt,N(ot),We,"fill")}},Ge=function(Ct){if(Ct.size()){var Gt="legendline-"+de.uid;i.lineGroupStyle(Ct),i.gradient(Ct,H,Gt,N(ot),We,"stroke")}},Xe=g.hasMarkers(de)||!pe?"M5,0":le?"M5,-2":"M5,-3",qe=m.select(this),gt=qe.select(".legendfill").selectAll("path").data(ie||ue?[Oe]:[]);if(gt.enter().append("path").classed("js-fill",!0),gt.exit().remove(),gt.attr("d",Xe+"h"+J+"v6h-"+J+"z").call(dt),we||se){var ut=Q(void 0,de.line,O,$);Re=l.minExtend(de,{line:{width:ut}}),Me=[l.minExtend(Te,{trace:Re})]}var tt=qe.select(".legendlines").selectAll("path").data(we||se?[Me]:[]);tt.enter().append("path").classed("js-line",!0),tt.exit().remove(),tt.attr("d",Xe+(se?"l"+J+",0.0001":"h"+J)).call(we?i.lineGroupStyle:Ge)}function ge(Oe){var Fe=M(Oe),ie=Fe.anyFill,we=Fe.anyLine,se=Fe.showLine,ue=Fe.showMarker,pe=Oe[0],le=pe.trace,Te=!ue&&!we&&!ie&&g.hasText(le),de,Me;function Re(gt,ut,tt,Ct){var Gt=l.nestedProperty(le,gt).get(),Yt=l.isArrayOrTypedArray(Gt)&&ut?ut(Gt):Gt;if(ee&&Yt&&Ct!==void 0&&(Yt=Ct),tt){if(Yttt[1])return tt[1]}return Yt}function ze(gt){return pe._distinct&&pe.index&>[pe.index]?gt[pe.index]:gt[0]}if(ue||Te||se){var We={},ot={};if(ue){We.mc=Re("marker.color",ze),We.mx=Re("marker.symbol",ze),We.mo=Re("marker.opacity",l.mean,[.2,1]),We.mlc=Re("marker.line.color",ze),We.mlw=Re("marker.line.width",l.mean,[0,5],S),ot.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var dt=Re("marker.size",l.mean,[2,16],_);We.ms=dt,ot.marker.size=dt}se&&(ot.line={width:Re("line.width",ze,[0,10],$)}),Te&&(We.tx="Aa",We.tp=Re("textposition",ze),We.ts=10,We.tc=Re("textfont.color",ze),We.tf=Re("textfont.family",ze)),de=[l.minExtend(pe,We)],Me=l.minExtend(le,ot),Me.selectedpoints=null,Me.texttemplate=null}var Ge=m.select(this).select("g.legendpoints"),Xe=Ge.selectAll("path.scatterpts").data(ue?de:[]);Xe.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",ae),Xe.exit().remove(),Xe.call(i.pointStyle,Me,H),ue&&(de[0].mrc=3);var qe=Ge.selectAll("g.pointtext").data(Te?de:[]);qe.enter().append("g").classed("pointtext",!0).append("text").attr("transform",ae),qe.exit().remove(),qe.selectAll("text").call(i.textPointStyle,Me,H)}function Se(Oe){var Fe=Oe[0].trace,ie=Fe.type==="waterfall";if(Oe[0]._distinct&&ie){var we=Oe[0].trace[Oe[0].dir].marker;return Oe[0].mc=we.color,Oe[0].mlw=we.line.width,Oe[0].mlc=we.line.color,fe(Oe,this,"waterfall")}var se=[];Fe.visible&&ie&&(se=Oe[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var ue=m.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(se);ue.enter().append("path").classed("legendwaterfall",!0).attr("transform",ae).style("stroke-miterlimit",1),ue.exit().remove(),ue.each(function(pe){var le=m.select(this),Te=Fe[pe[0]].marker,de=Q(void 0,Te.line,D,S);le.attr("d",pe[1]).style("stroke-width",de+"px").call(u.fill,Te.color),de&&le.call(u.stroke,Te.line.color)})}function ce(Oe){fe(Oe,this)}function ne(Oe){fe(Oe,this,"funnel")}function fe(Oe,Fe,ie){var we=Oe[0].trace,se=we.marker||{},ue=se.line||{},pe=ie?we.visible&&we.type===ie:h.traceIs(we,"bar"),le=m.select(Fe).select("g.legendpoints").selectAll("path.legend"+ie).data(pe?[Oe]:[]);le.enter().append("path").classed("legend"+ie,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",ae),le.exit().remove(),le.each(function(Te){var de=m.select(this),Me=Te[0],Re=Q(Me.mlw,se.line,D,S);de.style("stroke-width",Re+"px");var ze=Me.mcc;if(!j._inHover&&"mc"in Me){var We=d(se),ot=We.mid;ot===void 0&&(ot=(We.max+We.min)/2),ze=i.tryColorscale(se,"")(ot)}var dt=ze||Me.mc||se.color,Ge=se.pattern,Xe=Ge&&i.getPatternAttr(Ge.shape,0,"");if(Xe){var qe=i.getPatternAttr(Ge.bgcolor,0,null),gt=i.getPatternAttr(Ge.fgcolor,0,null),ut=Ge.fgopacity,tt=k(Ge.size,8,10),Ct=k(Ge.solidity,.5,1),Gt="legend-"+we.uid;de.call(i.pattern,"legend",H,Gt,Xe,tt,Ct,ze,Ge.fillmode,qe,gt,ut)}else de.call(u.fill,dt);Re&&u.stroke(de,Me.mlc||ue.color)})}function X(Oe){var Fe=Oe[0].trace,ie=m.select(this).select("g.legendpoints").selectAll("path.legendbox").data(Fe.visible&&h.traceIs(Fe,"box-violin")?[Oe]:[]);ie.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",ae),ie.exit().remove(),ie.each(function(){var we=m.select(this);if((Fe.boxpoints==="all"||Fe.points==="all")&&u.opacity(Fe.fillcolor)===0&&u.opacity((Fe.line||{}).color)===0){var se=l.minExtend(Fe,{marker:{size:ee?_:l.constrain(Fe.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});ie.call(i.pointStyle,se,H)}else{var ue=Q(void 0,Fe.line,D,S);we.style("stroke-width",ue+"px").call(u.fill,Fe.fillcolor),ue&&u.stroke(we,Fe.line.color)}})}function ye(Oe){var Fe=Oe[0].trace,ie=m.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(Fe.visible&&Fe.type==="candlestick"?[Oe,Oe]:[]);ie.enter().append("path").classed("legendcandle",!0).attr("d",function(we,se){return se?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",ae).style("stroke-miterlimit",1),ie.exit().remove(),ie.each(function(we,se){var ue=m.select(this),pe=Fe[se?"increasing":"decreasing"],le=Q(void 0,pe.line,D,S);ue.style("stroke-width",le+"px").call(u.fill,pe.fillcolor),le&&u.stroke(ue,pe.line.color)})}function Ce(Oe){var Fe=Oe[0].trace,ie=m.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(Fe.visible&&Fe.type==="ohlc"?[Oe,Oe]:[]);ie.enter().append("path").classed("legendohlc",!0).attr("d",function(we,se){return se?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",ae).style("stroke-miterlimit",1),ie.exit().remove(),ie.each(function(we,se){var ue=m.select(this),pe=Fe[se?"increasing":"decreasing"],le=Q(void 0,pe.line,D,S);ue.style("fill","none").call(i.dashLine,pe.line.dash,le),le&&u.stroke(ue,pe.line.color)})}function $e(Oe){Ne(Oe,this,"pie")}function ke(Oe){Ne(Oe,this,"funnelarea")}function Ne(Oe,Fe,ie){var we=Oe[0],se=we.trace,ue=ie?se.visible&&se.type===ie:h.traceIs(se,ie),pe=m.select(Fe).select("g.legendpoints").selectAll("path.legend"+ie).data(ue?[Oe]:[]);if(pe.enter().append("path").classed("legend"+ie,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",ae),pe.exit().remove(),pe.size()){var le=se.marker||{},Te=Q(x(le.line.width,we.pts),le.line,D,S),de="pieLike",Me=l.minExtend(se,{marker:{line:{width:Te}}},de),Re=l.minExtend(we,{trace:Me},de);v(pe,Re,Me,H)}}function Ve(Oe){var Fe=Oe[0].trace,ie,we=[];if(Fe.visible)switch(Fe.type){case"histogram2d":case"heatmap":we=[["M-15,-2V4H15V-2Z"]],ie=!0;break;case"choropleth":case"choroplethmapbox":we=[["M-6,-6V6H6V-6Z"]],ie=!0;break;case"densitymapbox":we=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],ie="radial";break;case"cone":we=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],ie=!1;break;case"streamtube":we=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],ie=!1;break;case"surface":we=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],ie=!0;break;case"mesh3d":we=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ie=!1;break;case"volume":we=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ie=!0;break;case"isosurface":we=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],ie=!1;break}var se=m.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(we);se.enter().append("path").classed("legend3dandfriends",!0).attr("transform",ae).style("stroke-miterlimit",1),se.exit().remove(),se.each(function(ue,pe){var le=m.select(this),Te=d(Fe),de=Te.colorscale,Me=Te.reversescale,Re=function(dt){if(dt.size()){var Ge="legendfill-"+Fe.uid;i.gradient(dt,H,Ge,N(Me,ie==="radial"),de,"fill")}},ze;if(de){if(!ie){var ot=de.length;ze=pe===0?de[Me?ot-1:0][1]:pe===1?de[Me?0:ot-1][1]:de[Math.floor((ot-1)/2)][1]}}else{var We=Fe.vertexcolor||Fe.facecolor||Fe.color;ze=l.isArrayOrTypedArray(We)?We[pe]||We[0]:We}le.attr("d",ue[0]),ze?le.call(u.fill,ze):le.call(Re)})}};function N(R,F){var H=F?"radial":"horizontal";return H+(R?"":"reversed")}function M(R){var F=R[0].trace,H=F.contours,j=g.hasLines(F),P=g.hasMarkers(F),ee=F.visible&&F.fill&&F.fill!=="none",J=!1,K=!1;if(H){var ae=H.coloring;ae==="lines"?J=!0:j=ae==="none"||ae==="heatmap"||H.showlines,H.type==="constraint"?ee=H._operation!=="=":(ae==="fill"||ae==="heatmap")&&(K=!0)}return{showMarker:P,showLine:j,showFill:ee,showGradientLine:J,showGradientFill:K,anyLine:j||J,anyFill:ee||K}}function k(R,F,H){return R&&l.isArrayOrTypedArray(R)?F:R>H?H:R}},2068:function(L,A,s){s(3348),L.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},6023:function(L,A,s){var m=s(3972),h=s(4875),l=s(1675),c=s(4255),i=s(4031).eraseActiveShape,u=s(1828),d=u._,g=L.exports={};g.toImage={name:"toImage",title:function(R){var F=R._context.toImageButtonOptions||{},H=F.format||"png";return H==="png"?d(R,"Download plot as a png"):d(R,"Download plot")},icon:c.camera,click:function(R){var F=R._context.toImageButtonOptions,H={format:F.format||"png"};u.notifier(d(R,"Taking snapshot - this may take a few seconds"),"long"),H.format!=="svg"&&u.isIE()&&(u.notifier(d(R,"IE only supports svg. Changing format to svg."),"long"),H.format="svg"),["filename","width","height","scale"].forEach(function(j){j in F&&(H[j]=F[j])}),m.call("downloadImage",R,H).then(function(j){u.notifier(d(R,"Snapshot succeeded")+" - "+j,"long")}).catch(function(){u.notifier(d(R,"Sorry, there was a problem downloading your snapshot!"),"long")})}},g.sendDataToCloud={name:"sendDataToCloud",title:function(R){return d(R,"Edit in Chart Studio")},icon:c.disk,click:function(R){h.sendDataToCloud(R)}},g.editInChartStudio={name:"editInChartStudio",title:function(R){return d(R,"Edit in Chart Studio")},icon:c.pencil,click:function(R){h.sendDataToCloud(R)}},g.zoom2d={name:"zoom2d",_cat:"zoom",title:function(R){return d(R,"Zoom")},attr:"dragmode",val:"zoom",icon:c.zoombox,click:v},g.pan2d={name:"pan2d",_cat:"pan",title:function(R){return d(R,"Pan")},attr:"dragmode",val:"pan",icon:c.pan,click:v},g.select2d={name:"select2d",_cat:"select",title:function(R){return d(R,"Box Select")},attr:"dragmode",val:"select",icon:c.selectbox,click:v},g.lasso2d={name:"lasso2d",_cat:"lasso",title:function(R){return d(R,"Lasso Select")},attr:"dragmode",val:"lasso",icon:c.lasso,click:v},g.drawclosedpath={name:"drawclosedpath",title:function(R){return d(R,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:c.drawclosedpath,click:v},g.drawopenpath={name:"drawopenpath",title:function(R){return d(R,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:c.drawopenpath,click:v},g.drawline={name:"drawline",title:function(R){return d(R,"Draw line")},attr:"dragmode",val:"drawline",icon:c.drawline,click:v},g.drawrect={name:"drawrect",title:function(R){return d(R,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:c.drawrect,click:v},g.drawcircle={name:"drawcircle",title:function(R){return d(R,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:c.drawcircle,click:v},g.eraseshape={name:"eraseshape",title:function(R){return d(R,"Erase active shape")},icon:c.eraseshape,click:i},g.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(R){return d(R,"Zoom in")},attr:"zoom",val:"in",icon:c.zoom_plus,click:v},g.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(R){return d(R,"Zoom out")},attr:"zoom",val:"out",icon:c.zoom_minus,click:v},g.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(R){return d(R,"Autoscale")},attr:"zoom",val:"auto",icon:c.autoscale,click:v},g.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(R){return d(R,"Reset axes")},attr:"zoom",val:"reset",icon:c.home,click:v},g.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(R){return d(R,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:c.tooltip_basic,gravity:"ne",click:v},g.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(R){return d(R,"Compare data on hover")},attr:"hovermode",val:function(R){return R._fullLayout._isHoriz?"y":"x"},icon:c.tooltip_compare,gravity:"ne",click:v};function v(R,F){var H=F.currentTarget,j=H.getAttribute("data-attr"),P=H.getAttribute("data-val")||!0,ee=R._fullLayout,J={},K=l.list(R,null,!0),ae=ee._cartesianSpikesEnabled,Q,he;if(j==="zoom"){var ge=P==="in"?.5:2,Se=(1+ge)/2,ce=(1-ge)/2,ne;for(he=0;he1?(Ne=["toggleHover"],Ve=["resetViews"]):J?(ke=["zoomInGeo","zoomOutGeo"],Ne=["hoverClosestGeo"],Ve=["resetGeo"]):ee?(Ne=["hoverClosest3d"],Ve=["resetCameraDefault3d","resetCameraLastSave3d"]):ge?(ke=["zoomInMapbox","zoomOutMapbox"],Ne=["toggleHover"],Ve=["resetViewMapbox"]):Q?Ne=["hoverClosestGl2d"]:K?Ne=["hoverClosestPie"]:ne?(Ne=["hoverClosestCartesian","hoverCompareCartesian"],Ve=["resetViewSankey"]):Ne=["toggleHover"],P&&(Ne=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(_(N)||X)&&(Ne=[]),(P||Q)&&!fe&&(ke=["zoomIn2d","zoomOut2d","autoScale2d"],Ve[0]!=="resetViews"&&(Ve=["resetScale2d"])),ee?Oe=["zoom3d","pan3d","orbitRotation","tableRotation"]:(P||Q)&&!fe||he?Oe=["zoom2d","pan2d"]:ge||J?Oe=["pan2d"]:Se&&(Oe=["zoom2d"]),C(N)&&Oe.push("select2d","lasso2d");var Fe=[],ie=function(pe){Fe.indexOf(pe)===-1&&Ne.indexOf(pe)!==-1&&Fe.push(pe)};if(Array.isArray(H)){for(var we=[],se=0;se0);if(k){var R=g(C,_,$);N("x",R[0]),N("y",R[1]),m.noneOrAll(x,C,["x","y"]),N("xanchor"),N("yanchor"),m.coerceFont(N,"font",_.font);var F=N("bgcolor");N("activecolor",h.contrast(F,u.lightAmount,u.darkAmount)),N("bordercolor"),N("borderwidth")}};function d(v,x,C,_){var $=_.calendar;function S(N,M){return m.coerce(v,x,i.buttons,N,M)}var O=S("visible");if(O){var D=S("step");D!=="all"&&($&&$!=="gregorian"&&(D==="month"||D==="year")?x.stepmode="backward":S("stepmode"),S("count")),S("label")}}function g(v,x,C){for(var _=C.filter(function(D){return x[D].anchor===v._id}),$=0,S=0;S<_.length;S++){var O=x[_[S]].domain;O&&($=Math.max(O[1],$))}return[v.domain[0],$+u.yPad]}},1598:function(L,A,s){var m=s(9898),h=s(3972),l=s(4875),c=s(7901),i=s(1424),u=s(1828),d=u.strTranslate,g=s(3893),v=s(1675),x=s(8783),C=x.LINE_SPACING,_=x.FROM_TL,$=x.FROM_BR,S=s(9573),O=s(7917);L.exports=function(ee){var J=ee._fullLayout,K=J._infolayer.selectAll(".rangeselector").data(D(ee),N);K.enter().append("g").classed("rangeselector",!0),K.exit().remove(),K.style({cursor:"pointer","pointer-events":"all"}),K.each(function(ae){var Q=m.select(this),he=ae,ge=he.rangeselector,Se=Q.selectAll("g.button").data(u.filterVisible(ge.buttons));Se.enter().append("g").classed("button",!0),Se.exit().remove(),Se.each(function(ce){var ne=m.select(this),fe=O(he,ce);ce._isActive=M(he,ce,fe),ne.call(k,ge,ce),ne.call(F,ge,ce,ee),ne.on("click",function(){ee._dragged||h.call("_guiRelayout",ee,fe)}),ne.on("mouseover",function(){ce._isHovered=!0,ne.call(k,ge,ce)}),ne.on("mouseout",function(){ce._isHovered=!1,ne.call(k,ge,ce)})}),j(ee,Se,ge,he._name,Q)})};function D(P){for(var ee=v.list(P,"x",!0),J=[],K=0;K=dt.max)We=Te[ot+1];else if(ze=dt.pmax)We=Te[ot+1];else if(zeJ._length||ye+Oe<0)return;Fe=X+Oe,ie=ye+Oe;break;case Q:if(we="col-resize",X+Oe>J._length)return;Fe=X+Oe,ie=ye;break;case he:if(we="col-resize",ye+Oe<0)return;Fe=X,ie=ye+Oe;break;default:we="ew-resize",Fe=fe,ie=fe+Oe;break}if(ie=0;Se--){var ce=H.append("path").attr(P).style("opacity",Se?.1:ee).call(c.stroke,K).call(c.fill,J).call(i.dashLine,Se?"solid":Q,Se?4+ae:ae);if(_(ce,D,k),he){var ne=u(D.layout,"selections",k);ce.style({cursor:"move"});var fe={element:ce.node(),plotinfo:R,gd:D,editHelpers:ne,isActiveSelection:!0},X=m(j,D);h(X,ce,fe)}else ce.style("pointer-events",Se?"all":"none");ge[Se]=ce}var ye=ge[0],Ce=ge[1];Ce.node().addEventListener("click",function(){return $(D,ye)})}}function _(D,N,M){var k=M.xref+M.yref;i.setClipUrl(D,"clip"+N._fullLayout._uid+k,N)}function $(D,N){if(x(D)){var M=N.node(),k=+M.getAttribute("data-index");if(k>=0){if(k===D._fullLayout._activeSelectionIndex){O(D);return}D._fullLayout._activeSelectionIndex=k,D._fullLayout._deactivateSelection=O,v(D)}}}function S(D){if(x(D)){var N=D._fullLayout.selections.length-1;D._fullLayout._activeSelectionIndex=N,D._fullLayout._deactivateSelection=O,v(D)}}function O(D){if(x(D)){var N=D._fullLayout._activeSelectionIndex;N>=0&&(l(D),delete D._fullLayout._activeSelectionIndex,v(D))}}},3777:function(L,A,s){var m=s(9952).P,h=s(1426).extendFlat;L.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:h({},m,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},849:function(L){L.exports=function(s,m,h){h("newselection.mode");var l=h("newselection.line.width");l&&(h("newselection.line.color"),h("newselection.line.dash")),h("activeselection.fillcolor"),h("activeselection.opacity")}},5855:function(L,A,s){var m=s(4505),h=m.selectMode,l=s(1873),c=l.clearOutline,i=s(165),u=i.readPaths,d=i.writePaths,g=i.fixDatesForPaths;L.exports=function(x,C){if(x.length){var _=x[0][0];if(_){var $=_.getAttribute("d"),S=C.gd,O=S._fullLayout.newselection,D=C.plotinfo,N=D.xaxis,M=D.yaxis,k=C.isActiveSelection,R=C.dragmode,F=(S.layout||{}).selections||[];if(!h(R)&&k!==void 0){var H=S._fullLayout._activeSelectionIndex;if(H=0){Dt._fullLayout._deactivateShape(Dt);return}if(!Tt){var fr=un.clickmode;K.done(Sn).then(function(){if(K.clear(Sn),Bn===2){for(Ot.remove(),Pt=0;Pt-1&&Ne(Hr,Dt,vt.xaxes,vt.yaxes,vt.subplot,vt,Ot),fr==="event"&&Wn(Dt,void 0);u.click(Dt,Hr,zt.id)}).catch(P.error)}},vt.doneFn=function(){Qt.remove(),K.done(Sn).then(function(){K.clear(Sn),!Un&&kt&&vt.selectionDefs&&(kt.subtract=Cr,vt.selectionDefs.push(kt),vt.mergedPolygons.length=0,[].push.apply(vt.mergedPolygons,St)),(Un||Tt)&&pe(vt,Un),vt.doneFnCompleted&&vt.doneFnCompleted(bn),Et&&Wn(Dt,Ut)}).catch(P.error)}}function Ne(lt,ft,wt,vt,$t,Ze,it){var ht=ft._hoverdata,pt=ft._fullLayout,Tt=pt.clickmode,Et=Tt.indexOf("event")>-1,fn=[],tn,Zt,Dt,un,Un,tr,Er,zt,pr,Gn;if(Me(ht)){we(lt,ft,Ze),tn=Te(ft,wt,vt,$t);var Ir=Re(ht,tn),Tr=Ir.pointNumbers.length>0;if(Tr?We(tn,Ir):ot(tn)&&(Er=ze(Ir))){for(it&&it.remove(),Gn=0;Gn=0}function ue(lt){return lt._fullLayout._activeSelectionIndex>=0}function pe(lt,ft){var wt=lt.dragmode,vt=lt.plotinfo,$t=lt.gd;se($t)&&$t._fullLayout._deactivateShape($t),ue($t)&&$t._fullLayout._deactivateSelection($t);var Ze=$t._fullLayout,it=Ze._zoomlayer,ht=C(wt),pt=$(wt);if(ht||pt){var Tt=it.selectAll(".select-outline-"+vt.id);if(Tt&&$t._fullLayout._outlining){var Et;ht&&(Et=F(Tt,lt)),Et&&l.call("_guiRelayout",$t,{shapes:Et});var fn;pt&&!$e(lt)&&(fn=H(Tt,lt)),fn&&($t._fullLayout._noEmitSelectedAtStart=!0,l.call("_guiRelayout",$t,{selections:fn}).then(function(){ft&&j($t)})),$t._fullLayout._outlining=!1}}vt.selection={},vt.selection.selectionDefs=lt.selectionDefs=[],vt.selection.mergedPolygons=lt.mergedPolygons=[]}function le(lt){return lt._id}function Te(lt,ft,wt,vt){if(!lt.calcdata)return[];var $t=[],Ze=ft.map(le),it=wt.map(le),ht,pt,Tt;for(Tt=0;Tt0,Ze=$t?vt[0]:wt;return ft.selectedpoints?ft.selectedpoints.indexOf(Ze)>-1:!1}function We(lt,ft){var wt=[],vt,$t,Ze,it;for(it=0;it0&&wt.push(vt);if(wt.length===1&&(Ze=wt[0]===ft.searchInfo,Ze&&($t=ft.searchInfo.cd[0].trace,$t.selectedpoints.length===ft.pointNumbers.length))){for(it=0;it1||(ft+=vt.selectedpoints.length,ft>1)))return!1;return ft===1}function dt(lt,ft,wt){var vt;for(vt=0;vt-1&&ft;if(!it&&ft){var Bn=Ft(lt,!0);if(Bn.length){var Hr=Bn[0].xref,fr=Bn[0].yref;if(Hr&&fr){var Vr=sn(Bn),ar=an([ae(lt,Hr,"x"),ae(lt,fr,"y")]);ar(bn,Vr)}}lt._fullLayout._noEmitSelectedAtStart?lt._fullLayout._noEmitSelectedAtStart=!1:Qn&&Wn(lt,bn),tn._reselect=!1}if(!it&&tn._deselect){var cr=tn._deselect;ht=cr.xref,pt=cr.yref,Gt(ht,pt,Et)||Yt(lt,ht,pt,vt),Qn&&(bn.points.length?Wn(lt,bn):wn(lt)),tn._deselect=!1}return{eventData:bn,selectionTesters:wt}}function Ct(lt){var ft=lt.calcdata;if(ft)for(var wt=0;wt0?M+O:O;return{ppad:O,ppadplus:D?R:F,ppadminus:D?F:R}}else return{ppad:O}}function g(v,x,C,_,$){var S=v.type==="category"||v.type==="multicategory"?v.r2c:v.d2c;if(x!==void 0)return[S(x),S(C)];if(_){var O=1/0,D=-1/0,N=_.match(l.segmentRE),M,k,R,F,H;for(v.type==="date"&&(S=c.decodeDate(S)),M=0;MD&&(D=H)));if(D>=O)return[O,D]}}},1459:function(L){L.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},4726:function(L,A,s){var m=s(1828),h=s(9298),l=s(5501),c=s(9827),i=s(477);L.exports=function(v,x){l(v,x,{name:"shapes",handleItemDefaults:d})};function u(g,v){return g?"bottom":v.indexOf("top")!==-1?"top":v.indexOf("bottom")!==-1?"bottom":"middle"}function d(g,v,x){function C(Oe,Fe){return m.coerce(g,v,c,Oe,Fe)}v._isShape=!0;var _=C("visible");if(_){var $=C("showlegend");$&&(C("legend"),C("legendwidth"),C("legendgroup"),C("legendgrouptitle.text"),m.coerceFont(C,"legendgrouptitle.font"),C("legendrank"));var S=C("path"),O=S?"path":"rect",D=C("type",O),N=D!=="path";N&&delete v.path,C("editable"),C("layer"),C("opacity"),C("fillcolor"),C("fillrule");var M=C("line.width");M&&(C("line.color"),C("line.dash"));for(var k=C("xsizemode"),R=C("ysizemode"),F=["x","y"],H=0;H<2;H++){var j=F[H],P=j+"anchor",ee=j==="x"?k:R,J={_fullLayout:x},K,ae,Q,he=h.coerceRef(g,v,J,j,void 0,"paper"),ge=h.getRefType(he);if(ge==="range"?(K=h.getFromId(J,he),K._shapeIndices.push(v._index),Q=i.rangeToShapePosition(K),ae=i.shapePositionToRange(K)):ae=Q=m.identity,N){var Se=.25,ce=.75,ne=j+"0",fe=j+"1",X=g[ne],ye=g[fe];g[ne]=ae(g[ne],!0),g[fe]=ae(g[fe],!0),ee==="pixel"?(C(ne,0),C(fe,10)):(h.coercePosition(v,J,C,he,ne,Se),h.coercePosition(v,J,C,he,fe,ce)),v[ne]=Q(v[ne]),v[fe]=Q(v[fe]),g[ne]=X,g[fe]=ye}if(ee==="pixel"){var Ce=g[P];g[P]=ae(g[P],!0),h.coercePosition(v,J,C,he,P,.25),v[P]=Q(v[P]),g[P]=Ce}}N&&m.noneOrAll(g,v,["x0","x1","y0","y1"]);var $e=D==="line",ke,Ne;if(N&&(ke=C("label.texttemplate")),ke||(Ne=C("label.text")),Ne||ke){C("label.textangle");var Ve=C("label.textposition",$e?"middle":"middle center");C("label.xanchor"),C("label.yanchor",u($e,Ve)),C("label.padding"),m.coerceFont(C,"label.font",x.font)}}}},8100:function(L,A,s){var m=s(1828),h=s(9298),l=s(3893),c=s(1424),i=s(165).readPaths,u=s(477),d=u.getPathString,g=s(7281),v=s(8783).FROM_TL;L.exports=function($,S,O,D){if(D.selectAll(".shape-label").remove(),!!(O.label.text||O.label.texttemplate)){var N;if(O.label.texttemplate){var M={};if(O.type!=="path"){var k=h.getFromId($,O.xref),R=h.getFromId($,O.yref);for(var F in g){var H=g[F](O,k,R);H!==void 0&&(M[F]=H)}}N=m.texttemplateStringForShapes(O.label.texttemplate,{},$._fullLayout._d3locale,M)}else N=O.label.text;var j={"data-index":S},P=O.label.font,ee={"data-notex":1},J=D.append("g").attr(j).classed("shape-label",!0),K=J.append("text").attr(ee).classed("shape-label-text",!0).text(N),ae,Q,he,ge;if(O.path){var Se=d($,O),ce=i(Se,$);ae=1/0,he=1/0,Q=-1/0,ge=-1/0;for(var ne=0;ne=_?D=$-O:D=O-$,-180/Math.PI*Math.atan2(D,N)}function C(_,$,S,O,D,N,M){var k=D.label.textposition,R=D.label.textangle,F=D.label.padding,H=D.type,j=Math.PI/180*N,P=Math.sin(j),ee=Math.cos(j),J=D.label.xanchor,K=D.label.yanchor,ae,Q,he,ge;if(H==="line"){k==="start"?(ae=_,Q=$):k==="end"?(ae=S,Q=O):(ae=(_+S)/2,Q=($+O)/2),J==="auto"&&(k==="start"?R==="auto"?S>_?J="left":S<_?J="right":J="center":S>_?J="right":S<_?J="left":J="center":k==="end"?R==="auto"?S>_?J="right":S<_?J="left":J="center":S>_?J="left":S<_?J="right":J="center":J="center");var Se={left:1,center:0,right:-1},ce={bottom:-1,middle:0,top:1};if(R==="auto"){var ne=ce[K];he=-F*P*ne,ge=F*ee*ne}else{var fe=Se[J],X=ce[K];he=F*fe,ge=F*X}ae=ae+he,Q=Q+ge}else he=F+3,k.indexOf("right")!==-1?(ae=Math.max(_,S)-he,J==="auto"&&(J="right")):k.indexOf("left")!==-1?(ae=Math.min(_,S)+he,J==="auto"&&(J="left")):(ae=(_+S)/2,J==="auto"&&(J="center")),k.indexOf("top")!==-1?Q=Math.min($,O):k.indexOf("bottom")!==-1?Q=Math.max($,O):Q=($+O)/2,ge=F,K==="bottom"?Q=Q-ge:K==="top"&&(Q=Q+ge);var ye=v[K],Ce=D.label.font.size,$e=M.height,ke=($e*ye-Ce)*P,Ne=-($e*ye-Ce)*ee;return{textx:ae+ke,texty:Q+Ne,xanchor:J}}},2359:function(L,A,s){var m=s(1828),h=m.strTranslate,l=s(8569),c=s(4505),i=c.drawMode,u=c.selectMode,d=s(3972),g=s(7901),v=s(9995),x=v.i000,C=v.i090,_=v.i180,$=v.i270,S=s(1873),O=S.clearOutlineControllers,D=s(165),N=D.pointsOnRectangle,M=D.pointsOnEllipse,k=D.writePaths,R=s(551).newShapes,F=s(551).createShapeObj,H=s(5855),j=s(8100);L.exports=function K(ae,Q,he,ge){ge||(ge=0);var Se=he.gd;function ce(){K(ae,Q,he,ge++),(M(ae[0])||he.hasText)&&ne({redrawing:!0})}function ne(Xe){var qe={};he.isActiveShape!==void 0&&(he.isActiveShape=!1,qe=R(Q,he)),he.isActiveSelection!==void 0&&(he.isActiveSelection=!1,qe=H(Q,he),Se._fullLayout._reselect=!0),Object.keys(qe).length&&d.call((Xe||{}).redrawing?"relayout":"_guiRelayout",Se,qe)}var fe=Se._fullLayout,X=fe._zoomlayer,ye=he.dragmode,Ce=i(ye),$e=u(ye);(Ce||$e)&&(Se._fullLayout._outlining=!0),O(Se),Q.attr("d",k(ae));var ke,Ne,Ve,Oe,Fe;if(!ge&&(he.isActiveShape||he.isActiveSelection)){Fe=P([],ae);var ie=X.append("g").attr("class","outline-controllers");Me(ie),Ge()}if(Ce&&he.hasText){var we=X.select(".label-temp"),se=F(Q,he,he.dragmode);j(Se,"label-temp",se,we)}function ue(Xe){Ve=+Xe.srcElement.getAttribute("data-i"),Oe=+Xe.srcElement.getAttribute("data-j"),ke[Ve][Oe].moveFn=pe}function pe(Xe,qe){if(ae.length){var gt=Fe[Ve][Oe][1],ut=Fe[Ve][Oe][2],tt=ae[Ve],Ct=tt.length;if(N(tt)){var Gt=Xe,Yt=qe;if(he.isActiveSelection){var Nt=ee(tt,Oe);Nt[1]===tt[Oe][1]?Yt=0:Gt=0}for(var Ft=0;Ft1&&!(Xe.length===2&&Xe[1][0]==="Z")&&(Oe===0&&(Xe[0][0]="M"),ae[Ve]=Xe,ce(),ne())}}function de(Xe,qe){if(Xe===2){Ve=+qe.srcElement.getAttribute("data-i"),Oe=+qe.srcElement.getAttribute("data-j");var gt=ae[Ve];!N(gt)&&!M(gt)&&Te()}}function Me(Xe){ke=[];for(var qe=0;qece&&wt>ne&&!wn.shiftKey?_.getCursor(vt/ft,1-$t/wt):"move";$(ae,Ze),Gt=Ze.split("-")[0]}}function pn(wn){M(K)||(fe&&(Fe=Xe(Q.xanchor)),X&&(ie=qe(Q.yanchor)),Q.type==="path"?Re=Q.path:(ke=fe?Q.x0:Xe(Q.x0),Ne=X?Q.y0:qe(Q.y0),Ve=fe?Q.x1:Xe(Q.x1),Oe=X?Q.y1:qe(Q.y1)),keOe?(we=Ne,le="y0",se=Oe,Te="y1"):(we=Oe,le="y1",se=Ne,Te="y0"),Ft(wn),Cn(ge,Q),Wn(ae,Q,K),Ct.moveFn=Gt==="move"?Zn:an,Ct.altKey=wn.altKey)}function _n(){M(K)||($(ae),jn(ge),F(ae,K,Q),h.call("_guiRelayout",K,Se.getUpdateObj()))}function sn(){M(K)||jn(ge)}function Zn(wn,lt){if(Q.type==="path"){var ft=function($t){return $t},wt=ft,vt=ft;fe?$e("xanchor",Q.xanchor=gt(Fe+wn)):(wt=function(Ze){return gt(Xe(Ze)+wn)},We&&We.type==="date"&&(wt=O.encodeDate(wt))),X?$e("yanchor",Q.yanchor=ut(ie+lt)):(vt=function(Ze){return ut(qe(Ze)+lt)},dt&&dt.type==="date"&&(vt=O.encodeDate(vt))),$e("path",Q.path=j(Re,wt,vt))}else fe?$e("xanchor",Q.xanchor=gt(Fe+wn)):($e("x0",Q.x0=gt(ke+wn)),$e("x1",Q.x1=gt(Ve+wn))),X?$e("yanchor",Q.yanchor=ut(ie+lt)):($e("y0",Q.y0=ut(Ne+lt)),$e("y1",Q.y1=ut(Oe+lt)));ae.attr("d",D(K,Q)),Cn(ge,Q),d(K,he,Q,ze)}function an(wn,lt){if(Ce){var ft=function(tr){return tr},wt=ft,vt=ft;fe?$e("xanchor",Q.xanchor=gt(Fe+wn)):(wt=function(Er){return gt(Xe(Er)+wn)},We&&We.type==="date"&&(wt=O.encodeDate(wt))),X?$e("yanchor",Q.yanchor=ut(ie+lt)):(vt=function(Er){return ut(qe(Er)+lt)},dt&&dt.type==="date"&&(vt=O.encodeDate(vt))),$e("path",Q.path=j(Re,wt,vt))}else if(ye){if(Gt==="resize-over-start-point"){var $t=ke+wn,Ze=X?Ne-lt:Ne+lt;$e("x0",Q.x0=fe?$t:gt($t)),$e("y0",Q.y0=X?Ze:ut(Ze))}else if(Gt==="resize-over-end-point"){var it=Ve+wn,ht=X?Oe-lt:Oe+lt;$e("x1",Q.x1=fe?it:gt(it)),$e("y1",Q.y1=X?ht:ut(ht))}}else{var pt=function(tr){return Gt.indexOf(tr)!==-1},Tt=pt("n"),Et=pt("s"),fn=pt("w"),tn=pt("e"),Zt=Tt?we+lt:we,Dt=Et?se+lt:se,un=fn?ue+wn:ue,Un=tn?pe+wn:pe;X&&(Tt&&(Zt=we-lt),Et&&(Dt=se-lt)),(!X&&Dt-Zt>ne||X&&Zt-Dt>ne)&&($e(le,Q[le]=X?Zt:ut(Zt)),$e(Te,Q[Te]=X?Dt:ut(Dt))),Un-un>ce&&($e(de,Q[de]=fe?un:gt(un)),$e(Me,Q[Me]=fe?Un:gt(Un)))}ae.attr("d",D(K,Q)),Cn(ge,Q),d(K,he,Q,ze)}function Cn(wn,lt){(fe||X)&&ft();function ft(){var wt=lt.type!=="path",vt=wn.selectAll(".visual-cue").data([0]),$t=1;vt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":$t}).classed("visual-cue",!0);var Ze=Xe(fe?lt.xanchor:l.midRange(wt?[lt.x0,lt.x1]:O.extractPathCoords(lt.path,S.paramIsX))),it=qe(X?lt.yanchor:l.midRange(wt?[lt.y0,lt.y1]:O.extractPathCoords(lt.path,S.paramIsY)));if(Ze=O.roundPositionForSharpStrokeRendering(Ze,$t),it=O.roundPositionForSharpStrokeRendering(it,$t),fe&&X){var ht="M"+(Ze-1-$t)+","+(it-1-$t)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";vt.attr("d",ht)}else if(fe){var pt="M"+(Ze-1-$t)+","+(it-9-$t)+"v18 h2 v-18 Z";vt.attr("d",pt)}else{var Tt="M"+(Ze-9-$t)+","+(it-1-$t)+"h18 v2 h-18 Z";vt.attr("d",Tt)}}}function jn(wn){wn.selectAll(".visual-cue").remove()}function Wn(wn,lt,ft){var wt=lt.xref,vt=lt.yref,$t=c.getFromId(ft,wt),Ze=c.getFromId(ft,vt),it="";wt!=="paper"&&!$t.autorange&&(it+=wt),vt!=="paper"&&!Ze.autorange&&(it+=vt),x.setClipUrl(wn,it?"clip"+ft._fullLayout._uid+it:null,ft)}}function j(K,ae,Q){return K.replace(S.segmentRE,function(he){var ge=0,Se=he.charAt(0),ce=S.paramIsX[Se],ne=S.paramIsY[Se],fe=S.numParams[Se],X=he.substr(1).replace(S.paramRE,function(ye){return ge>=fe||(ce[ge]?ye=ae(ye):ne[ge]&&(ye=Q(ye)),ge++),ye});return Se+X})}function P(K,ae){if(k(K)){var Q=ae.node(),he=+Q.getAttribute("data-index");if(he>=0){if(he===K._fullLayout._activeShapeIndex){ee(K);return}K._fullLayout._activeShapeIndex=he,K._fullLayout._deactivateShape=ee,N(K)}}}function ee(K){if(k(K)){var ae=K._fullLayout._activeShapeIndex;ae>=0&&(g(K),delete K._fullLayout._activeShapeIndex,N(K))}}function J(K){if(k(K)){g(K);var ae=K._fullLayout._activeShapeIndex,Q=(K.layout||{}).shapes||[];if(ae0&&RM&&(R="X"),R});return S>M&&(k=k.replace(/[\s,]*X.*/,""),h.log("Ignoring extra params in segment "+$)),O+k})}},9853:function(L,A,s){var m=s(4031);L.exports={moduleType:"component",name:"shapes",layoutAttributes:s(9827),supplyLayoutDefaults:s(4726),supplyDrawNewShapeDefaults:s(5547),includeBasePlot:s(6325)("shapes"),calcAutorange:s(5627),draw:m.draw,drawOne:m.drawOne}},7281:function(L){function A($,S){return S?S.d2l($):$}function s($,S){return S?S.l2d($):$}function m($){return $.x0}function h($){return $.x1}function l($){return $.y0}function c($){return $.y1}function i($,S){return A($.x1,S)-A($.x0,S)}function u($,S,O){return A($.y1,O)-A($.y0,O)}function d($,S){return Math.abs(i($,S))}function g($,S,O){return Math.abs(u($,S,O))}function v($,S,O){return $.type!=="line"?void 0:Math.sqrt(Math.pow(i($,S),2)+Math.pow(u($,S,O),2))}function x($,S){return s((A($.x1,S)+A($.x0,S))/2,S)}function C($,S,O){return s((A($.y1,O)+A($.y0,O))/2,O)}function _($,S,O){return $.type!=="line"?void 0:u($,S,O)/i($,S)}L.exports={x0:m,x1:h,y0:l,y1:c,slope:_,dx:i,dy:u,width:d,height:g,length:v,xcenter:x,ycenter:C}},5067:function(L,A,s){var m=s(1940),h=s(5025),l=s(1426).extendDeepAll,c=s(962).overrideAll,i=s(5594),u=s(4467).templatedArray,d=s(8292),g=u("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});L.exports=c(u("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:g,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:l(h({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:i.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:m({})},font:m({}),activebgcolor:{valType:"color",dflt:d.gripBgActiveColor},bgcolor:{valType:"color",dflt:d.railBgColor},bordercolor:{valType:"color",dflt:d.railBorderColor},borderwidth:{valType:"number",min:0,dflt:d.railBorderWidth},ticklen:{valType:"number",min:0,dflt:d.tickLength},tickcolor:{valType:"color",dflt:d.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:d.minorTickLength}}),"arraydraw","from-root")},8292:function(L){L.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},2343:function(L,A,s){var m=s(1828),h=s(5501),l=s(5067),c=s(8292),i=c.name,u=l.steps;L.exports=function(x,C){h(x,C,{name:i,handleItemDefaults:d})};function d(v,x,C){function _(R,F){return m.coerce(v,x,l,R,F)}for(var $=h(v,x,{name:"steps",handleItemDefaults:g}),S=0,O=0;O<$.length;O++)$[O].visible&&S++;var D;if(S<2?D=x.visible=!1:D=_("visible"),!!D){x._stepCount=S;var N=x._visibleSteps=m.filterVisible($),M=_("active");($[M]||{}).visible||(x.active=N[0]._index),_("x"),_("y"),m.noneOrAll(v,x,["x","y"]),_("xanchor"),_("yanchor"),_("len"),_("lenmode"),_("pad.t"),_("pad.r"),_("pad.b"),_("pad.l"),m.coerceFont(_,"font",C.font);var k=_("currentvalue.visible");k&&(_("currentvalue.xanchor"),_("currentvalue.prefix"),_("currentvalue.suffix"),_("currentvalue.offset"),m.coerceFont(_,"currentvalue.font",x.font)),_("transition.duration"),_("transition.easing"),_("bgcolor"),_("activebgcolor"),_("bordercolor"),_("borderwidth"),_("ticklen"),_("tickwidth"),_("tickcolor"),_("minorticklen")}}function g(v,x){function C(S,O){return m.coerce(v,x,u,S,O)}var _;if(v.method!=="skip"&&!Array.isArray(v.args)?_=x.visible=!1:_=C("visible"),_){C("method"),C("args");var $=C("label","step-"+x._index);C("value",$),C("execute")}}},4504:function(L,A,s){var m=s(9898),h=s(4875),l=s(7901),c=s(1424),i=s(1828),u=i.strTranslate,d=s(3893),g=s(4467).arrayEditor,v=s(8292),x=s(8783),C=x.LINE_SPACING,_=x.FROM_TL,$=x.FROM_BR;L.exports=function(ne){var fe=ne._context.staticPlot,X=ne._fullLayout,ye=O(X,ne),Ce=X._infolayer.selectAll("g."+v.containerClassName).data(ye.length>0?[0]:[]);Ce.enter().append("g").classed(v.containerClassName,!0).style("cursor",fe?null:"ew-resize");function $e(Oe){Oe._commandObserver&&(Oe._commandObserver.remove(),delete Oe._commandObserver),h.autoMargin(ne,S(Oe))}if(Ce.exit().each(function(){m.select(this).selectAll("g."+v.groupClassName).each($e)}).remove(),ye.length!==0){var ke=Ce.selectAll("g."+v.groupClassName).data(ye,D);ke.enter().append("g").classed(v.groupClassName,!0),ke.exit().each($e).remove();for(var Ne=0;Ne0&&(ke=ke.transition().duration(ne.transition.duration).ease(ne.transition.easing)),ke.attr("transform",u($e-v.gripWidth*.5,ne._dims.currentValueTotalHeight))}}function Q(ce,ne){var fe=ce._dims;return fe.inputAreaStart+v.stepInset+(fe.inputAreaLength-2*v.stepInset)*Math.min(1,Math.max(0,ne))}function he(ce,ne){var fe=ce._dims;return Math.min(1,Math.max(0,(ne-v.stepInset-fe.inputAreaStart)/(fe.inputAreaLength-2*v.stepInset-2*fe.inputAreaStart)))}function ge(ce,ne,fe){var X=fe._dims,ye=i.ensureSingle(ce,"rect",v.railTouchRectClass,function(Ce){Ce.call(ee,ne,ce,fe).style("pointer-events","all")});ye.attr({width:X.inputAreaLength,height:Math.max(X.inputAreaWidth,v.tickOffset+fe.ticklen+X.labelHeight)}).call(l.fill,fe.bgcolor).attr("opacity",0),c.setTranslate(ye,0,X.currentValueTotalHeight)}function Se(ce,ne){var fe=ne._dims,X=fe.inputAreaLength-v.railInset*2,ye=i.ensureSingle(ce,"rect",v.railRectClass);ye.attr({width:X,height:v.railWidth,rx:v.railRadius,ry:v.railRadius,"shape-rendering":"crispEdges"}).call(l.stroke,ne.bordercolor).call(l.fill,ne.bgcolor).style("stroke-width",ne.borderwidth+"px"),c.setTranslate(ye,v.railInset,(fe.inputAreaWidth-v.railWidth)*.5+fe.currentValueTotalHeight)}},3243:function(L,A,s){var m=s(8292);L.exports={moduleType:"component",name:m.name,layoutAttributes:s(5067),supplyLayoutDefaults:s(2343),draw:s(4504)}},2998:function(L,A,s){var m=s(9898),h=s(2770),l=s(4875),c=s(3972),i=s(1828),u=i.strTranslate,d=s(1424),g=s(7901),v=s(3893),x=s(7822),C=s(8783).OPPOSITE_SIDE,_=/ [XY][0-9]* /;function $(S,O,D){var N=D.propContainer,M=D.propName,k=D.placeholder,R=D.traceIndex,F=D.avoid||{},H=D.attributes,j=D.transform,P=D.containerGroup,ee=S._fullLayout,J=1,K=!1,ae=N.title,Q=(ae&&ae.text?ae.text:"").trim(),he=ae&&ae.font?ae.font:{},ge=he.family,Se=he.size,ce=he.color,ne;M==="title.text"?ne="titleText":M.indexOf("axis")!==-1?ne="axisTitleText":M.indexOf("colorbar"!==-1)&&(ne="colorbarTitleText");var fe=S._context.edits[ne];Q===""?J=0:Q.replace(_," % ")===k.replace(_," % ")&&(J=.2,K=!0,fe||(Q="")),D._meta?Q=i.templateString(Q,D._meta):ee._meta&&(Q=i.templateString(Q,ee._meta));var X=Q||fe,ye;P||(P=i.ensureSingle(ee._infolayer,"g","g-"+O),ye=ee._hColorbarMoveTitle);var Ce=P.selectAll("text").data(X?[0]:[]);if(Ce.enter().append("text"),Ce.text(Q).attr("class",O),Ce.exit().remove(),!X)return P;function $e(Oe){i.syncOrAsync([ke,Ne],Oe)}function ke(Oe){var Fe;return!j&&ye&&(j={}),j?(Fe="",j.rotate&&(Fe+="rotate("+[j.rotate,H.x,H.y]+")"),(j.offset||ye)&&(Fe+=u(0,(j.offset||0)-(ye||0)))):Fe=null,Oe.attr("transform",Fe),Oe.style({"font-family":ge,"font-size":m.round(Se,2)+"px",fill:g.rgb(ce),opacity:J*g.opacity(ce),"font-weight":l.fontWeight}).attr(H).call(v.convertToTspans,S),l.previousPromises(S)}function Ne(Oe){var Fe=m.select(Oe.node().parentNode);if(F&&F.selection&&F.side&&Q){Fe.attr("transform",null);var ie=C[F.side],we=F.side==="left"||F.side==="top"?-1:1,se=h(F.pad)?F.pad:2,ue=d.bBox(Fe.node()),pe={t:0,b:0,l:0,r:0},le=S._fullLayout._reservedMargin;for(var Te in le)for(var de in le[Te]){var Me=le[Te][de];pe[de]=Math.max(pe[de],Me)}var Re={left:pe.l,top:pe.t,right:ee.width-pe.r,bottom:ee.height-pe.b},ze=F.maxShift||we*(Re[F.side]-ue[F.side]),We=0;if(ze<0)We=ze;else{var ot=F.offsetLeft||0,dt=F.offsetTop||0;ue.left-=ot,ue.right-=ot,ue.top-=dt,ue.bottom-=dt,F.selection.each(function(){var Xe=d.bBox(this);i.bBoxIntersect(ue,Xe,se)&&(We=Math.max(We,we*(Xe[F.side]-ue[ie])+se))}),We=Math.min(ze,We),N._titleScoot=Math.abs(We)}if(We>0||ze<0){var Ge={left:[-We,0],right:[We,0],top:[0,-We],bottom:[0,We]}[F.side];Fe.attr("transform",u(Ge[0],Ge[1]))}}}Ce.call($e);function Ve(){J=0,K=!0,Ce.text(k).on("mouseover.opacity",function(){m.select(this).transition().duration(x.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){m.select(this).transition().duration(x.HIDE_PLACEHOLDER).style("opacity",0)})}return fe&&(Q?Ce.on(".opacity",null):Ve(),Ce.call(v.makeEditable,{gd:S}).on("edit",function(Oe){R!==void 0?c.call("_guiRestyle",S,M,Oe,R):c.call("_guiRelayout",S,M,Oe)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call($e)}).on("input",function(Oe){this.text(Oe||" ").call(v.positionText,H.x,H.y)})),Ce.classed("js-placeholder",K),P}L.exports={draw:$}},7163:function(L,A,s){var m=s(1940),h=s(2399),l=s(1426).extendFlat,c=s(962).overrideAll,i=s(5025),u=s(4467).templatedArray,d=u("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});L.exports=c(u("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:d,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:l(i({editType:"arraydraw"}),{}),font:m({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:h.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},5909:function(L){L.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},4897:function(L,A,s){var m=s(1828),h=s(5501),l=s(7163),c=s(5909),i=c.name,u=l.buttons;L.exports=function(x,C){var _={name:i,handleItemDefaults:d};h(x,C,_)};function d(v,x,C){function _(O,D){return m.coerce(v,x,l,O,D)}var $=h(v,x,{name:"buttons",handleItemDefaults:g}),S=_("visible",$.length>0);S&&(_("active"),_("direction"),_("type"),_("showactive"),_("x"),_("y"),m.noneOrAll(v,x,["x","y"]),_("xanchor"),_("yanchor"),_("pad.t"),_("pad.r"),_("pad.b"),_("pad.l"),m.coerceFont(_,"font",C.font),_("bgcolor",C.paper_bgcolor),_("bordercolor"),_("borderwidth"))}function g(v,x){function C($,S){return m.coerce(v,x,u,$,S)}var _=C("visible",v.method==="skip"||Array.isArray(v.args));_&&(C("method"),C("args"),C("args2"),C("label"),C("execute"))}},3689:function(L,A,s){var m=s(9898),h=s(4875),l=s(7901),c=s(1424),i=s(1828),u=s(3893),d=s(4467).arrayEditor,g=s(8783).LINE_SPACING,v=s(5909),x=s(5849);L.exports=function(he){var ge=he._fullLayout,Se=i.filterVisible(ge[v.name]);function ce(Ne){h.autoMargin(he,J(Ne))}var ne=ge._menulayer.selectAll("g."+v.containerClassName).data(Se.length>0?[0]:[]);if(ne.enter().append("g").classed(v.containerClassName,!0).style("cursor","pointer"),ne.exit().each(function(){m.select(this).selectAll("g."+v.headerGroupClassName).each(ce)}).remove(),Se.length!==0){var fe=ne.selectAll("g."+v.headerGroupClassName).data(Se,C);fe.enter().append("g").classed(v.headerGroupClassName,!0);for(var X=i.ensureSingle(ne,"g",v.dropdownButtonGroupClassName,function(Ne){Ne.style("pointer-events","all")}),ye=0;yeH,he=i.barLength+2*i.barPad,ge=i.barWidth+2*i.barPad,Se=$,ce=O+D;ce+ge>_&&(ce=_-ge);var ne=this.container.selectAll("rect.scrollbar-horizontal").data(Q?[0]:[]);ne.exit().on(".drag",null).remove(),ne.enter().append("rect").classed("scrollbar-horizontal",!0).call(h.fill,i.barColor),Q?(this.hbar=ne.attr({rx:i.barRadius,ry:i.barRadius,x:Se,y:ce,width:he,height:ge}),this._hbarXMin=Se+he/2,this._hbarTranslateMax=H-he):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var fe=D>j,X=i.barWidth+2*i.barPad,ye=i.barLength+2*i.barPad,Ce=$+S,$e=O;Ce+X>C&&(Ce=C-X);var ke=this.container.selectAll("rect.scrollbar-vertical").data(fe?[0]:[]);ke.exit().on(".drag",null).remove(),ke.enter().append("rect").classed("scrollbar-vertical",!0).call(h.fill,i.barColor),fe?(this.vbar=ke.attr({rx:i.barRadius,ry:i.barRadius,x:Ce,y:$e,width:X,height:ye}),this._vbarYMin=$e+ye/2,this._vbarTranslateMax=j-ye):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var Ne=this.id,Ve=P-.5,Oe=fe?ee+X+.5:ee+.5,Fe=J-.5,ie=Q?K+ge+.5:K+.5,we=x._topdefs.selectAll("#"+Ne).data(Q||fe?[0]:[]);if(we.exit().remove(),we.enter().append("clipPath").attr("id",Ne).append("rect"),Q||fe?(this._clipRect=we.select("rect").attr({x:Math.floor(Ve),y:Math.floor(Fe),width:Math.ceil(Oe)-Math.floor(Ve),height:Math.ceil(ie)-Math.floor(Fe)}),this.container.call(l.setClipUrl,Ne,this.gd),this.bg.attr({x:$,y:O,width:S,height:D})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(l.setClipUrl,null),delete this._clipRect),Q||fe){var se=m.behavior.drag().on("dragstart",function(){m.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(se);var ue=m.behavior.drag().on("dragstart",function(){m.event.sourceEvent.preventDefault(),m.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));Q&&this.hbar.on(".drag",null).call(ue),fe&&this.vbar.on(".drag",null).call(ue)}this.setTranslate(g,v)},i.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(l.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},i.prototype._onBoxDrag=function(){var d=this.translateX,g=this.translateY;this.hbar&&(d-=m.event.dx),this.vbar&&(g-=m.event.dy),this.setTranslate(d,g)},i.prototype._onBoxWheel=function(){var d=this.translateX,g=this.translateY;this.hbar&&(d+=m.event.deltaY),this.vbar&&(g+=m.event.deltaY),this.setTranslate(d,g)},i.prototype._onBarDrag=function(){var d=this.translateX,g=this.translateY;if(this.hbar){var v=d+this._hbarXMin,x=v+this._hbarTranslateMax,C=c.constrain(m.event.x,v,x),_=(C-v)/(x-v),$=this.position.w-this._box.w;d=_*$}if(this.vbar){var S=g+this._vbarYMin,O=S+this._vbarTranslateMax,D=c.constrain(m.event.y,S,O),N=(D-S)/(O-S),M=this.position.h-this._box.h;g=N*M}this.setTranslate(d,g)},i.prototype.setTranslate=function(d,g){var v=this.position.w-this._box.w,x=this.position.h-this._box.h;if(d=c.constrain(d||0,0,v),g=c.constrain(g||0,0,x),this.translateX=d,this.translateY=g,this.container.call(l.setTranslate,this._box.l-this.position.l-d,this._box.t-this.position.t-g),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+d-.5),y:Math.floor(this.position.t+g-.5)}),this.hbar){var C=d/v;this.hbar.call(l.setTranslate,d+C*this._hbarTranslateMax,g)}if(this.vbar){var _=g/x;this.vbar.call(l.setTranslate,d,g+_*this._vbarTranslateMax)}}},8783:function(L){L.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},4695:function(L){L.exports={axisRefDescription:function(A,s,m){return["If set to a",A,"axis id (e.g. *"+A+"* or","*"+A+"2*), the `"+A+"` position refers to a",A,"coordinate. If set to *paper*, the `"+A+"`","position refers to the distance from the",s,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",s,"("+m+"). If set to a",A,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",s,"of the domain of that axis: e.g.,","*"+A+"2 domain* refers to the domain of the second",A," axis and a",A,"position of 0.5 refers to the","point between the",s,"and the",m,"of the domain of the","second",A,"axis."].join(" ")}}},1562:function(L){L.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},4808:function(L){L.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},7822:function(L){L.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},606:function(L){L.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},7922:function(L,A){A.xmlns="http://www.w3.org/2000/xmlns/",A.svg="http://www.w3.org/2000/svg",A.xlink="http://www.w3.org/1999/xlink",A.svgAttrs={xmlns:A.svg,"xmlns:xlink":A.xlink}},8729:function(L,A,s){A.version=s(1506).version,s(7417),s(8847);for(var m=s(3972),h=A.register=m.register,l=s(641),c=Object.keys(l),i=0;i",""," ",""," plotly-logomark"," "," "," "," "," "," "," "," "," "," "," "," "," ",""].join("")}}},9863:function(L,A){A.isLeftAnchor=function(m){return m.xanchor==="left"||m.xanchor==="auto"&&m.x<=.3333333333333333},A.isCenterAnchor=function(m){return m.xanchor==="center"||m.xanchor==="auto"&&m.x>.3333333333333333&&m.x<.6666666666666666},A.isRightAnchor=function(m){return m.xanchor==="right"||m.xanchor==="auto"&&m.x>=.6666666666666666},A.isTopAnchor=function(m){return m.yanchor==="top"||m.yanchor==="auto"&&m.y>=.6666666666666666},A.isMiddleAnchor=function(m){return m.yanchor==="middle"||m.yanchor==="auto"&&m.y>.3333333333333333&&m.y<.6666666666666666},A.isBottomAnchor=function(m){return m.yanchor==="bottom"||m.yanchor==="auto"&&m.y<=.3333333333333333}},6348:function(L,A,s){var m=s(4872),h=m.mod,l=m.modHalf,c=Math.PI,i=2*c;function u(N){return N/180*c}function d(N){return N/c*180}function g(N){return Math.abs(N[1]-N[0])>i-1e-14}function v(N,M){return l(M-N,i)}function x(N,M){return Math.abs(v(N,M))}function C(N,M){if(g(M))return!0;var k,R;M[0]R&&(R+=i);var F=h(N,i),H=F+i;return F>=k&&F<=R||H>=k&&H<=R}function _(N,M,k,R){if(!C(M,R))return!1;var F,H;return k[0]=F&&N<=H}function $(N,M,k,R,F,H,j){F=F||0,H=H||0;var P=g([k,R]),ee,J,K,ae,Q;P?(ee=0,J=c,K=i):kO.max?$.set(S):$.set(+_)}},integer:{coerceFunction:function(_,$,S,O){_%1||!m(_)||O.min!==void 0&&_O.max?$.set(S):$.set(+_)}},string:{coerceFunction:function(_,$,S,O){if(typeof _!="string"){var D=typeof _=="number";O.strict===!0||!D?$.set(S):$.set(String(_))}else O.noBlank&&!_?$.set(S):$.set(_)}},color:{coerceFunction:function(_,$,S){h(_).isValid()?$.set(_):$.set(S)}},colorlist:{coerceFunction:function(_,$,S){function O(D){return h(D).isValid()}!Array.isArray(_)||!_.length?$.set(S):_.every(O)?$.set(_):$.set(S)}},colorscale:{coerceFunction:function(_,$,S){$.set(c.get(_,S))}},angle:{coerceFunction:function(_,$,S){_==="auto"?$.set("auto"):m(_)?$.set(v(+_,360)):$.set(S)}},subplotid:{coerceFunction:function(_,$,S,O){var D=O.regex||g(S);if(typeof _=="string"&&D.test(_)){$.set(_);return}$.set(S)},validateFunction:function(_,$){var S=$.dflt;return _===S?!0:typeof _!="string"?!1:!!g(S).test(_)}},flaglist:{coerceFunction:function(_,$,S,O){if((O.extras||[]).indexOf(_)!==-1){$.set(_);return}if(typeof _!="string"){$.set(S);return}for(var D=_.split("+"),N=0;N=k&&ce<=R?ce:u}if(typeof ce!="string"&&typeof ce!="number")return u;ce=String(ce);var Ce=N(ne),$e=ce.charAt(0);Ce&&($e==="G"||$e==="g")&&(ce=ce.substr(1),ne="");var ke=Ce&&ne.substr(0,7)==="chinese",Ne=ce.match(ke?O:S);if(!Ne)return u;var Ve=Ne[1],Oe=Ne[3]||"1",Fe=Number(Ne[5]||1),ie=Number(Ne[7]||0),we=Number(Ne[9]||0),se=Number(Ne[11]||0);if(Ce){if(Ve.length===2)return u;Ve=Number(Ve);var ue;try{var pe=_.getComponentMethod("calendars","getCal")(ne);if(ke){var le=Oe.charAt(Oe.length-1)==="i";Oe=parseInt(Oe,10),ue=pe.newDate(Ve,pe.toMonthIndex(Ve,Oe,le),Fe)}else ue=pe.newDate(Ve,Number(Oe),Fe)}catch{return u}return ue?(ue.toJD()-C)*d+ie*g+we*v+se*x:u}Ve.length===2?Ve=(Number(Ve)+2e3-D)%100+D:Ve=Number(Ve),Oe-=1;var Te=new Date(Date.UTC(2e3,Oe,Fe,ie,we));return Te.setUTCFullYear(Ve),Te.getUTCMonth()!==Oe||Te.getUTCDate()!==Fe?u:Te.getTime()+se*x},k=A.MIN_MS=A.dateTime2ms("-9999"),R=A.MAX_MS=A.dateTime2ms("9999-12-31 23:59:59.9999"),A.isDateTime=function(ce,ne){return A.dateTime2ms(ce,ne)!==u};function F(ce,ne){return String(ce+Math.pow(10,ne)).substr(1)}var H=90*d,j=3*g,P=5*v;A.ms2DateTime=function(ce,ne,fe){if(typeof ce!="number"||!(ce>=k&&ce<=R))return u;ne||(ne=0);var X=Math.floor(c(ce+.05,1)*10),ye=Math.round(ce-X/10),Ce,$e,ke,Ne,Ve,Oe;if(N(fe)){var Fe=Math.floor(ye/d)+C,ie=Math.floor(c(ce,d));try{Ce=_.getComponentMethod("calendars","getCal")(fe).fromJD(Fe).formatDate("yyyy-mm-dd")}catch{Ce=$("G%Y-%m-%d")(new Date(ye))}if(Ce.charAt(0)==="-")for(;Ce.length<11;)Ce="-0"+Ce.substr(1);else for(;Ce.length<10;)Ce="0"+Ce;$e=ne=k+d&&ce<=R-d))return u;var ne=Math.floor(c(ce+.05,1)*10),fe=new Date(Math.round(ce-ne/10)),X=m("%Y-%m-%d")(fe),ye=fe.getHours(),Ce=fe.getMinutes(),$e=fe.getSeconds(),ke=fe.getUTCMilliseconds()*10+ne;return ee(X,ye,Ce,$e,ke)};function ee(ce,ne,fe,X,ye){if((ne||fe||X||ye)&&(ce+=" "+F(ne,2)+":"+F(fe,2),(X||ye)&&(ce+=":"+F(X,2),ye))){for(var Ce=4;ye%10===0;)Ce-=1,ye/=10;ce+="."+F(ye,Ce)}return ce}A.cleanDate=function(ce,ne,fe){if(ce===u)return ne;if(A.isJSDate(ce)||typeof ce=="number"&&isFinite(ce)){if(N(fe))return l.error("JS Dates and milliseconds are incompatible with world calendars",ce),ne;if(ce=A.ms2DateTimeLocal(+ce),!ce&&ne!==void 0)return ne}else if(!A.isDateTime(ce,fe))return l.error("unrecognized date",ce),ne;return ce};var J=/%\d?f/g,K=/%h/g,ae={1:"1",2:"1",3:"2",4:"2"};function Q(ce,ne,fe,X){ce=ce.replace(J,function(Ce){var $e=Math.min(+Ce.charAt(1)||6,6),ke=(ne/1e3%1+2).toFixed($e).substr(2).replace(/0+$/,"")||"0";return ke});var ye=new Date(Math.floor(ne+.05));if(ce=ce.replace(K,function(){return ae[fe("%q")(ye)]}),N(X))try{ce=_.getComponentMethod("calendars","worldCalFmt")(ce,ne,X)}catch{return"Invalid"}return fe(ce)(ye)}var he=[59,59.9,59.99,59.999,59.9999];function ge(ce,ne){var fe=c(ce+.05,d),X=F(Math.floor(fe/g),2)+":"+F(c(Math.floor(fe/v),60),2);if(ne!=="M"){h(ne)||(ne=0);var ye=Math.min(c(ce/x,60),he[ne]),Ce=(100+ye).toFixed(ne).substr(1);ne>0&&(Ce=Ce.replace(/0+$/,"").replace(/[\.]$/,"")),X+=":"+Ce}return X}A.formatDate=function(ce,ne,fe,X,ye,Ce){if(ye=N(ye)&&ye,!ne)if(fe==="y")ne=Ce.year;else if(fe==="m")ne=Ce.month;else if(fe==="d")ne=Ce.dayMonth+` -`+Ce.year;else return ge(ce,fe)+` -`+Q(Ce.dayMonthYear,ce,X,ye);return Q(ne,ce,X,ye)};var Se=3*d;A.incrementMonth=function(ce,ne,fe){fe=N(fe)&&fe;var X=c(ce,d);if(ce=Math.round(ce-X),fe)try{var ye=Math.round(ce/d)+C,Ce=_.getComponentMethod("calendars","getCal")(fe),$e=Ce.fromJD(ye);return ne%12?Ce.add($e,ne,"m"):Ce.add($e,ne/12,"y"),($e.toJD()-C)*d+X}catch{l.error("invalid ms "+ce+" in calendar "+fe)}var ke=new Date(ce+Se);return ke.setUTCMonth(ke.getUTCMonth()+ne)+X-Se},A.findExactDates=function(ce,ne){for(var fe=0,X=0,ye=0,Ce=0,$e,ke,Ne=N(ne)&&_.getComponentMethod("calendars","getCal")(ne),Ve=0;Ve1||H<0||H>1?null:{x:d+O*H,y:g+M*H}}A.segmentDistance=function(g,v,x,C,_,$,S,O){if(h(g,v,x,C,_,$,S,O))return 0;var D=x-g,N=C-v,M=S-_,k=O-$,R=D*D+N*N,F=M*M+k*k,H=Math.min(l(D,N,R,_-g,$-v),l(D,N,R,S-g,O-v),l(M,k,F,g-_,v-$),l(M,k,F,x-_,C-$));return Math.sqrt(H)};function l(d,g,v,x,C){var _=x*d+C*g;if(_<0)return x*x+C*C;if(_>v){var $=x-d,S=C-g;return $*$+S*S}else{var O=x*g-C*d;return O*O/v}}var c,i,u;A.getTextLocation=function(g,v,x,C){if((g!==i||C!==u)&&(c={},i=g,u=C),c[x])return c[x];var _=g.getPointAtLength(m(x-C/2,v)),$=g.getPointAtLength(m(x+C/2,v)),S=Math.atan(($.y-_.y)/($.x-_.x)),O=g.getPointAtLength(m(x,v)),D=(O.x*4+_.x+$.x)/6,N=(O.y*4+_.y+$.y)/6,M={x:D,y:N,theta:S};return c[x]=M,M},A.clearLocationCache=function(){i=null},A.getVisibleSegment=function(g,v,x){var C=v.left,_=v.right,$=v.top,S=v.bottom,O=0,D=g.getTotalLength(),N=D,M,k;function R(H){var j=g.getPointAtLength(H);H===0?M=j:H===D&&(k=j);var P=j.x_?j.x-_:0,ee=j.y<$?$-j.y:j.y>S?j.y-S:0;return Math.sqrt(P*P+ee*ee)}for(var F=R(O);F;){if(O+=F+x,O>N)return;F=R(O)}for(F=R(N);F;){if(N-=F+x,O>N)return;F=R(N)}return{min:O,max:N,len:N-O,total:D,isClosed:O===0&&N===D&&Math.abs(M.x-k.x)<.1&&Math.abs(M.y-k.y)<.1}},A.findPointOnPath=function(g,v,x,C){C=C||{};for(var _=C.pathLength||g.getTotalLength(),$=C.tolerance||.001,S=C.iterationLimit||30,O=g.getPointAtLength(0)[x]>g.getPointAtLength(_)[x]?-1:1,D=0,N=0,M=_,k,R,F;D0?M=k:N=k,D++}return R}},3389:function(L){L.exports=function(s){return s}},9240:function(L){L.exports=function(s,m){if(!m)return s;var h=1/Math.abs(m),l=h>1?(h*s+h*m)/h:s+m,c=String(l).length;if(c>16){var i=String(m).length,u=String(s).length;if(c>=u+i){var d=parseFloat(l).toPrecision(12);d.indexOf("e+")===-1&&(l=+d)}}return l}},1828:function(L,A,s){var m=s(9898),h=s(4096).g0,l=s(721).WU,c=s(2770),i=s(606),u=i.FP_SAFE,d=-u,g=i.BADNUM,v=L.exports={};v.adjustFormat=function(ue){return!ue||/^\d[.]\df/.test(ue)||/[.]\d%/.test(ue)?ue:ue==="0.f"?"~f":/^\d%/.test(ue)?"~%":/^\ds/.test(ue)?"~s":!/^[~,.0$]/.test(ue)&&/[&fps]/.test(ue)?"~"+ue:ue};var x={};v.warnBadFormat=function(se){var ue=String(se);x[ue]||(x[ue]=1,v.warn('encountered bad format: "'+ue+'"'))},v.noFormat=function(se){return String(se)},v.numberFormat=function(se){var ue;try{ue=l(v.adjustFormat(se))}catch{return v.warnBadFormat(se),v.noFormat}return ue},v.nestedProperty=s(5487),v.keyedContainer=s(6636),v.relativeAttr=s(6962),v.isPlainObject=s(1965),v.toLogRange=s(8163),v.relinkPrivateKeys=s(1332);var C=s(3627);v.isTypedArray=C.isTypedArray,v.isArrayOrTypedArray=C.isArrayOrTypedArray,v.isArray1D=C.isArray1D,v.ensureArray=C.ensureArray,v.concat=C.concat,v.maxRowLength=C.maxRowLength,v.minRowLength=C.minRowLength;var _=s(4872);v.mod=_.mod,v.modHalf=_.modHalf;var $=s(6554);v.valObjectMeta=$.valObjectMeta,v.coerce=$.coerce,v.coerce2=$.coerce2,v.coerceFont=$.coerceFont,v.coercePattern=$.coercePattern,v.coerceHoverinfo=$.coerceHoverinfo,v.coerceSelectionMarkerOpacity=$.coerceSelectionMarkerOpacity,v.validate=$.validate;var S=s(1631);v.dateTime2ms=S.dateTime2ms,v.isDateTime=S.isDateTime,v.ms2DateTime=S.ms2DateTime,v.ms2DateTimeLocal=S.ms2DateTimeLocal,v.cleanDate=S.cleanDate,v.isJSDate=S.isJSDate,v.formatDate=S.formatDate,v.incrementMonth=S.incrementMonth,v.dateTick0=S.dateTick0,v.dfltRange=S.dfltRange,v.findExactDates=S.findExactDates,v.MIN_MS=S.MIN_MS,v.MAX_MS=S.MAX_MS;var O=s(5888);v.findBin=O.findBin,v.sorterAsc=O.sorterAsc,v.sorterDes=O.sorterDes,v.distinctVals=O.distinctVals,v.roundUp=O.roundUp,v.sort=O.sort,v.findIndexOfMin=O.findIndexOfMin,v.sortObjectKeys=s(8607);var D=s(38);v.aggNums=D.aggNums,v.len=D.len,v.mean=D.mean,v.median=D.median,v.midRange=D.midRange,v.variance=D.variance,v.stdev=D.stdev,v.interp=D.interp;var N=s(5657);v.init2dArray=N.init2dArray,v.transposeRagged=N.transposeRagged,v.dot=N.dot,v.translationMatrix=N.translationMatrix,v.rotationMatrix=N.rotationMatrix,v.rotationXYMatrix=N.rotationXYMatrix,v.apply3DTransform=N.apply3DTransform,v.apply2DTransform=N.apply2DTransform,v.apply2DTransform2=N.apply2DTransform2,v.convertCssMatrix=N.convertCssMatrix,v.inverseTransformMatrix=N.inverseTransformMatrix;var M=s(6348);v.deg2rad=M.deg2rad,v.rad2deg=M.rad2deg,v.angleDelta=M.angleDelta,v.angleDist=M.angleDist,v.isFullCircle=M.isFullCircle,v.isAngleInsideSector=M.isAngleInsideSector,v.isPtInsideSector=M.isPtInsideSector,v.pathArc=M.pathArc,v.pathSector=M.pathSector,v.pathAnnulus=M.pathAnnulus;var k=s(9863);v.isLeftAnchor=k.isLeftAnchor,v.isCenterAnchor=k.isCenterAnchor,v.isRightAnchor=k.isRightAnchor,v.isTopAnchor=k.isTopAnchor,v.isMiddleAnchor=k.isMiddleAnchor,v.isBottomAnchor=k.isBottomAnchor;var R=s(7642);v.segmentsIntersect=R.segmentsIntersect,v.segmentDistance=R.segmentDistance,v.getTextLocation=R.getTextLocation,v.clearLocationCache=R.clearLocationCache,v.getVisibleSegment=R.getVisibleSegment,v.findPointOnPath=R.findPointOnPath;var F=s(1426);v.extendFlat=F.extendFlat,v.extendDeep=F.extendDeep,v.extendDeepAll=F.extendDeepAll,v.extendDeepNoArrays=F.extendDeepNoArrays;var H=s(7769);v.log=H.log,v.warn=H.warn,v.error=H.error;var j=s(587);v.counterRegex=j.counter;var P=s(9990);v.throttle=P.throttle,v.throttleDone=P.done,v.clearThrottle=P.clear;var ee=s(4401);v.getGraphDiv=ee.getGraphDiv,v.isPlotDiv=ee.isPlotDiv,v.removeElement=ee.removeElement,v.addStyleRule=ee.addStyleRule,v.addRelatedStyleRule=ee.addRelatedStyleRule,v.deleteRelatedStyleRule=ee.deleteRelatedStyleRule,v.getFullTransformMatrix=ee.getFullTransformMatrix,v.getElementTransformMatrix=ee.getElementTransformMatrix,v.getElementAndAncestors=ee.getElementAndAncestors,v.equalDomRects=ee.equalDomRects,v.clearResponsive=s(6367),v.preserveDrawingBuffer=s(5142),v.makeTraceGroups=s(7310),v._=s(5867),v.notifier=s(5046),v.filterUnique=s(5744),v.filterVisible=s(6756),v.pushUnique=s(5138),v.increment=s(9240),v.cleanNumber=s(5218),v.ensureNumber=function(ue){return c(ue)?(ue=Number(ue),ue>u||ue=ue?!1:c(se)&&se>=0&&se%1===0},v.noop=s(4213),v.identity=s(3389),v.repeat=function(se,ue){for(var pe=new Array(ue),le=0;lepe?Math.max(pe,Math.min(ue,se)):Math.max(ue,Math.min(pe,se))},v.bBoxIntersect=function(se,ue,pe){return pe=pe||0,se.left<=ue.right+pe&&ue.left<=se.right+pe&&se.top<=ue.bottom+pe&&ue.top<=se.bottom+pe},v.simpleMap=function(se,ue,pe,le,Te){for(var de=se.length,Me=new Array(de),Re=0;Re=Math.pow(2,pe)?Te>10?(v.warn("randstr failed uniqueness"),Me):se(ue,pe,le,(Te||0)+1):Me},v.OptionControl=function(se,ue){se||(se={}),ue||(ue="opt");var pe={};return pe.optionList=[],pe._newoption=function(le){le[ue]=se,pe[le.name]=le,pe.optionList.push(le)},pe["_"+ue]=se,pe},v.smooth=function(se,ue){if(ue=Math.round(ue)||0,ue<2)return se;var pe=se.length,le=2*pe,Te=2*ue-1,de=new Array(Te),Me=new Array(pe),Re,ze,We,ot;for(Re=0;Re=le&&(We-=le*Math.floor(We/le)),We<0?We=-1-We:We>=pe&&(We=le-1-We),ot+=se[We]*de[ze];Me[Re]=ot}return Me},v.syncOrAsync=function(se,ue,pe){var le,Te;function de(){return v.syncOrAsync(se,ue,pe)}for(;se.length;)if(Te=se.splice(0,1)[0],le=Te(ue),le&&le.then)return le.then(de);return pe&&pe(ue)},v.stripTrailingSlash=function(se){return se.substr(-1)==="/"?se.substr(0,se.length-1):se},v.noneOrAll=function(se,ue,pe){if(se){var le=!1,Te=!0,de,Me;for(de=0;de0?Te:0})},v.fillArray=function(se,ue,pe,le){if(le=le||v.identity,v.isArrayOrTypedArray(se))for(var Te=0;Te1?Te+Me[1]:"";if(de&&(Me.length>1||Re.length>4||pe))for(;le.test(Re);)Re=Re.replace(le,"$1"+de+"$2");return Re+ze},v.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var ne=/^\w*$/;v.templateString=function(se,ue){var pe={};return se.replace(v.TEMPLATE_STRING_REGEX,function(le,Te){var de;return ne.test(Te)?de=ue[Te]:(pe[Te]=pe[Te]||v.nestedProperty(ue,Te).get,de=pe[Te]()),v.isValidTextValue(de)?de:""})};var fe={max:10,count:0,name:"hovertemplate"};v.hovertemplateString=function(){return Ne.apply(fe,arguments)};var X={max:10,count:0,name:"texttemplate"};v.texttemplateString=function(){return Ne.apply(X,arguments)};var ye=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Ce(se){var ue=se.match(ye);return ue?{key:ue[1],op:ue[2],number:Number(ue[3])}:{key:se,op:null,number:null}}var $e={max:10,count:0,name:"texttemplate",parseMultDiv:!0};v.texttemplateStringForShapes=function(){return Ne.apply($e,arguments)};var ke=/^[:|\|]/;function Ne(se,ue,pe){var le=this,Te=arguments;ue||(ue={});var de={};return se.replace(v.TEMPLATE_STRING_REGEX,function(Me,Re,ze){var We=Re==="xother"||Re==="yother",ot=Re==="_xother"||Re==="_yother",dt=Re==="_xother_"||Re==="_yother_",Ge=Re==="xother_"||Re==="yother_",Xe=We||ot||Ge||dt,qe=Re;(ot||dt)&&(qe=qe.substring(1)),(Ge||dt)&&(qe=qe.substring(0,qe.length-1));var gt=null,ut=null;if(le.parseMultDiv){var tt=Ce(qe);qe=tt.key,gt=tt.op,ut=tt.number}var Ct;if(Xe){if(Ct=ue[qe],Ct===void 0)return""}else{var Gt,Yt;for(Yt=3;Yt=Ve&&Me<=Oe,We=Re>=Ve&&Re<=Oe;if(ze&&(le=10*le+Me-Ve),We&&(Te=10*Te+Re-Ve),!ze||!We){if(le!==Te)return le-Te;if(Me!==Re)return Me-Re}}return Te-le};var Fe=2e9;v.seedPseudoRandom=function(){Fe=2e9},v.pseudoRandom=function(){var se=Fe;return Fe=(69069*Fe+1)%4294967296,Math.abs(Fe-se)<429496729?v.pseudoRandom():Fe/4294967296},v.fillText=function(se,ue,pe){var le=Array.isArray(pe)?function(Me){pe.push(Me)}:function(Me){pe.text=Me},Te=v.extractOption(se,ue,"htx","hovertext");if(v.isValidTextValue(Te))return le(Te);var de=v.extractOption(se,ue,"tx","text");if(v.isValidTextValue(de))return le(de)},v.isValidTextValue=function(se){return se||se===0},v.formatPercent=function(se,ue){ue=ue||0;for(var pe=(Math.round(100*se*Math.pow(10,ue))*Math.pow(.1,ue)).toFixed(ue)+"%",le=0;le1&&(We=1):We=0,v.strTranslate(Te-We*(pe+Me),de-We*(le+Re))+v.strScale(We)+(ze?"rotate("+ze+(ue?"":" "+pe+" "+le)+")":"")},v.setTransormAndDisplay=function(se,ue){se.attr("transform",v.getTextTransform(ue)),se.style("display",ue.scale?null:"none")},v.ensureUniformFontSize=function(se,ue){var pe=v.extendFlat({},ue);return pe.size=Math.max(ue.size,se._fullLayout.uniformtext.minsize||0),pe},v.join2=function(se,ue,pe){var le=se.length;return le>1?se.slice(0,-1).join(ue)+pe+se[le-1]:se.join(ue)},v.bigFont=function(se){return Math.round(1.2*se)};var ie=v.getFirefoxVersion(),we=ie!==null&&ie<86;v.getPositionFromD3Event=function(){return we?[m.event.layerX,m.event.layerY]:[m.event.offsetX,m.event.offsetY]}},1965:function(L){L.exports=function(s){return window&&window.process&&window.process.versions?Object.prototype.toString.call(s)==="[object Object]":Object.prototype.toString.call(s)==="[object Object]"&&Object.getPrototypeOf(s).hasOwnProperty("hasOwnProperty")}},6636:function(L,A,s){var m=s(5487),h=/^\w*$/,l=0,c=1,i=2,u=3,d=4;L.exports=function(v,x,C,_){C=C||"name",_=_||"value";var $,S,O,D={};x&&x.length?(O=m(v,x),S=O.get()):S=v,x=x||"";var N={};if(S)for($=0;$2)return D[F]=D[F]|i,k.set(R,null);if(M){for($=F;$1){var i=["LOG:"];for(c=0;c1){var u=[];for(c=0;c"),"long")}},l.warn=function(){var c;if(m.logging>0){var i=["WARN:"];for(c=0;c0){var u=[];for(c=0;c"),"stick")}},l.error=function(){var c;if(m.logging>0){var i=["ERROR:"];for(c=0;c0){var u=[];for(c=0;c"),"stick")}}},7310:function(L,A,s){var m=s(9898);L.exports=function(l,c,i){var u=l.selectAll("g."+i.replace(/\s/g,".")).data(c,function(g){return g[0].trace.uid});u.exit().remove(),u.enter().append("g").attr("class",i),u.order();var d=l.classed("rangeplot")?"nodeRangePlot3":"node3";return u.each(function(g){g[0][d]=m.select(this)}),u}},5657:function(L,A,s){var m=s(9576);A.init2dArray=function(h,l){for(var c=new Array(h),i=0;ih/2?m-Math.round(m/h)*h:m}L.exports={mod:A,modHalf:s}},5487:function(L,A,s){var m=s(2770),h=s(3627).isArrayOrTypedArray;L.exports=function(_,$){if(m($))$=String($);else if(typeof $!="string"||$.substr($.length-4)==="[-1]")throw"bad property string";var S=$.split("."),O,D,N,M;for(M=0;M/g),S=0;S<$.length;S++)S&&_.append("br"),_.append("span").text($[S]);i==="stick"?C.transition().duration(350).style("opacity",1):C.transition().duration(700).style("opacity",1).transition().delay(u).call(v)})}},9918:function(L,A,s){var m=s(6964),h="data-savedcursor",l="!!";L.exports=function(i,u){var d=i.attr(h);if(u){if(!d){for(var g=(i.attr("class")||"").split(" "),v=0;vg||F===h||Fx||k&&$(M))}function O(M,k){var R=M[0],F=M[1];if(R===h||Rg||F===h||Fx)return!1;var H=u.length,j=u[0][0],P=u[0][1],ee=0,J,K,ae,Q,he;for(J=1;JMath.max(K,j)||F>Math.max(ae,P)))if(FC||Math.abs(m(O,$))>g)return!0;return!1},l.filter=function(i,u){var d=[i[0]],g=0,v=0;function x(_){i.push(_);var $=d.length,S=g;d.splice(v+1);for(var O=S+1;O1){var C=i.pop();x(C)}return{addPt:x,raw:i,filtered:d}}},5142:function(L,A,s){var m=s(2770),h=s(5791);L.exports=function(i){var u;if(i&&i.hasOwnProperty("userAgent")?u=i.userAgent:u=l(),typeof u!="string")return!0;var d=h({ua:{headers:{"user-agent":u}},tablet:!0,featureDetect:!1});if(!d)for(var g=u.split(" "),v=1;v-1;C--){var _=g[C];if(_.substr(0,8)==="Version/"){var $=_.substr(8).split(".")[0];if(m($)&&($=+$),$>=13)return!0}}}return d};function l(){var c;return typeof navigator<"u"&&(c=navigator.userAgent),c&&c.headers&&typeof c.headers["user-agent"]=="string"&&(c=c.headers["user-agent"]),c}},5138:function(L){L.exports=function(s,m){if(m instanceof RegExp){for(var h=m.toString(),l=0;lh.queueLength&&(i.undoQueue.queue.shift(),i.undoQueue.index--)},c.startSequence=function(i){i.undoQueue=i.undoQueue||{index:0,queue:[],sequence:!1},i.undoQueue.sequence=!0,i.undoQueue.beginSequence=!0},c.stopSequence=function(i){i.undoQueue=i.undoQueue||{index:0,queue:[],sequence:!1},i.undoQueue.sequence=!1,i.undoQueue.beginSequence=!1},c.undo=function(u){var d,g;if(!(u.undoQueue===void 0||isNaN(u.undoQueue.index)||u.undoQueue.index<=0)){for(u.undoQueue.index--,d=u.undoQueue.queue[u.undoQueue.index],u.undoQueue.inSequence=!0,g=0;g=u.undoQueue.queue.length)){for(d=u.undoQueue.queue[u.undoQueue.index],u.undoQueue.inSequence=!0,g=0;g1?(C[S-1]-C[0])/(S-1):1,N,M;for(D>=0?M=_?u:d:M=_?v:g,x+=D*i*(_?-1:1)*(D>=0?1:-1);$90&&h.log("Long binary search..."),$-1};function u(x,C){return xC}function v(x,C){return x>=C}A.sorterAsc=function(x,C){return x-C},A.sorterDes=function(x,C){return C-x},A.distinctVals=function(x){var C=x.slice();C.sort(A.sorterAsc);var _;for(_=C.length-1;_>-1&&C[_]===c;_--);for(var $=C[_]-C[0]||1,S=$/(_||1)/1e4,O=[],D,N=0;N<=_;N++){var M=C[N],k=M-D;D===void 0?(O.push(M),D=M):k>S&&($=Math.min($,k),O.push(M),D=M)}return{vals:O,minDiff:$}},A.roundUp=function(x,C,_){for(var $=0,S=C.length-1,O,D=0,N=_?0:1,M=_?1:0,k=_?Math.ceil:Math.floor;$0&&($=1),_&&$)return x.sort(C)}return $?x:x.reverse()},A.findIndexOfMin=function(x,C){C=C||l;for(var _=1/0,$,S=0;Si.length)&&(u=i.length),m(c)||(c=!1),h(i[0])){for(g=new Array(u),d=0;dl.length-1)return l[l.length-1];var i=c%1;return i*l[Math.ceil(c)]+(1-i)*l[Math.floor(c)]}},3893:function(L,A,s){var m=s(9898),h=s(1828),l=h.strTranslate,c=s(7922),i=s(8783).LINE_SPACING,u=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;A.convertToTspans=function(fe,X,ye){var Ce=fe.text(),$e=!fe.attr("data-notex")&&X&&X._context.typesetMath&&typeof MathJax<"u"&&Ce.match(u),ke=m.select(fe.node().parentNode);if(ke.empty())return;var Ne=fe.attr("class")?fe.attr("class").split(" ")[0]:"text";Ne+="-math",ke.selectAll("svg."+Ne).remove(),ke.selectAll("g."+Ne+"-group").remove(),fe.style("display",null).attr({"data-unformatted":Ce,"data-math":"N"});function Ve(){ke.empty()||(Ne=fe.attr("class")+"-math",ke.select("svg."+Ne).remove()),fe.text("").style("white-space","pre");var Oe=ge(fe.node(),Ce);Oe&&fe.style("pointer-events","all"),A.positionText(fe),ye&&ye.call(fe)}return $e?(X&&X._promises||[]).push(new Promise(function(Oe){fe.style("display","none");var Fe=parseInt(fe.node().style.fontSize,10),ie={fontSize:Fe};C($e[2],ie,function(we,se,ue){ke.selectAll("svg."+Ne).remove(),ke.selectAll("g."+Ne+"-group").remove();var pe=we&&we.select("svg");if(!pe||!pe.node()){Ve(),Oe();return}var le=ke.append("g").classed(Ne+"-group",!0).attr({"pointer-events":"none","data-unformatted":Ce,"data-math":"Y"});le.node().appendChild(pe.node()),se&&se.node()&&pe.node().insertBefore(se.node().cloneNode(!0),pe.node().firstChild);var Te=ue.width,de=ue.height;pe.attr({class:Ne,height:de,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var Me=fe.node().style.fill||"black",Re=pe.select("g");Re.attr({fill:Me,stroke:Me});var ze=Re.node().getBoundingClientRect(),We=ze.width,ot=ze.height;(We>Te||ot>de)&&(pe.style("overflow","hidden"),ze=pe.node().getBoundingClientRect(),We=ze.width,ot=ze.height);var dt=+fe.attr("x"),Ge=+fe.attr("y"),Xe=Fe||fe.node().getBoundingClientRect().height,qe=-Xe/4;if(Ne[0]==="y")le.attr({transform:"rotate("+[-90,dt,Ge]+")"+l(-We/2,qe-ot/2)});else if(Ne[0]==="l")Ge=qe-ot/2;else if(Ne[0]==="a"&&Ne.indexOf("atitle")!==0)dt=0,Ge=qe;else{var gt=fe.attr("text-anchor");dt=dt-We*(gt==="middle"?.5:gt==="end"?1:0),Ge=Ge+qe-ot/2}pe.attr({x:dt,y:Ge}),ye&&ye.call(fe,le),Oe(le)})})):Ve(),fe};var d=/(<|<|<)/g,g=/(>|>|>)/g;function v(fe){return fe.replace(d,"\\lt ").replace(g,"\\gt ")}var x=[["$","$"],["\\(","\\)"]];function C(fe,X,ye){var Ce=parseInt((MathJax.version||"").split(".")[0]);if(Ce!==2&&Ce!==3){h.warn("No MathJax version:",MathJax.version);return}var $e,ke,Ne,Ve,Oe=function(){return ke=h.extendDeepAll({},MathJax.Hub.config),Ne=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:x},displayAlign:"left"})},Fe=function(){ke=h.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=x},ie=function(){if($e=MathJax.Hub.config.menuSettings.renderer,$e!=="SVG")return MathJax.Hub.setRenderer("SVG")},we=function(){$e=MathJax.config.startup.output,$e!=="svg"&&(MathJax.config.startup.output="svg")},se=function(){var Me="math-output-"+h.randstr({},64);Ve=m.select("body").append("div").attr({id:Me}).style({visibility:"hidden",position:"absolute","font-size":X.fontSize+"px"}).text(v(fe));var Re=Ve.node();return Ce===2?MathJax.Hub.Typeset(Re):MathJax.typeset([Re])},ue=function(){var Me=Ve.select(Ce===2?".MathJax_SVG":".MathJax"),Re=!Me.empty()&&Ve.select("svg").node();if(!Re)h.log("There was an error in the tex syntax.",fe),ye();else{var ze=Re.getBoundingClientRect(),We;Ce===2?We=m.select("body").select("#MathJax_SVG_glyphs"):We=Me.select("defs"),ye(Me,We,ze)}Ve.remove()},pe=function(){if($e!=="SVG")return MathJax.Hub.setRenderer($e)},le=function(){$e!=="svg"&&(MathJax.config.startup.output=$e)},Te=function(){return Ne!==void 0&&(MathJax.Hub.processSectionDelay=Ne),MathJax.Hub.Config(ke)},de=function(){MathJax.config=ke};Ce===2?MathJax.Hub.Queue(Oe,ie,se,ue,pe,Te):Ce===3&&(Fe(),we(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){se(),ue(),le(),de()}))}var _={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},$={sub:"0.3em",sup:"-0.6em"},S={sub:"-0.21em",sup:"0.42em"},O="​",D=["http:","https:","mailto:","",void 0,":"],N=A.NEWLINES=/(\r\n?|\n)/g,M=/(<[^<>]*>)/,k=/<(\/?)([^ >]*)(\s+(.*))?>/i,R=//i;A.BR_TAG_ALL=//gi;var F=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,H=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,j=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,P=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function ee(fe,X){if(!fe)return null;var ye=fe.match(X),Ce=ye&&(ye[3]||ye[4]);return Ce&&Q(Ce)}var J=/(^|;)\s*color:/;A.plainText=function(fe,X){X=X||{};for(var ye=X.len!==void 0&&X.len!==-1?X.len:1/0,Ce=X.allowedTags!==void 0?X.allowedTags:["br"],$e="...",ke=$e.length,Ne=fe.split(M),Ve=[],Oe="",Fe=0,ie=0;ieke?Ve.push(we.substr(0,le-ke)+$e):Ve.push(we.substr(0,le));break}Oe=""}}return Ve.join("")};var K={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},ae=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function Q(fe){return fe.replace(ae,function(X,ye){var Ce;return ye.charAt(0)==="#"?Ce=he(ye.charAt(1)==="x"?parseInt(ye.substr(2),16):parseInt(ye.substr(1),10)):Ce=K[ye],Ce||X})}A.convertEntities=Q;function he(fe){if(!(fe>1114111)){var X=String.fromCodePoint;if(X)return X(fe);var ye=String.fromCharCode;return fe<=65535?ye(fe):ye((fe>>10)+55232,fe%1024+56320)}}function ge(fe,X){X=X.replace(N," ");var ye=!1,Ce=[],$e,ke=-1;function Ne(){ke++;var ot=document.createElementNS(c.svg,"tspan");m.select(ot).attr({class:"line",dy:ke*i+"em"}),fe.appendChild(ot),$e=ot;var dt=Ce;if(Ce=[{node:ot}],dt.length>1)for(var Ge=1;Ge.",X);return}var dt=Ce.pop();ot!==dt.type&&h.log("Start tag <"+dt.type+"> doesnt match end tag <"+ot+">. Pretending it did match.",X),$e=Ce[Ce.length-1].node}var ie=R.test(X);ie?Ne():($e=fe,Ce=[{node:fe}]);for(var we=X.split(M),se=0;seu.ts+c){v();return}u.timer=setTimeout(function(){v(),u.timer=null},c)},A.done=function(h){var l=s[h];return!l||!l.timer?Promise.resolve():new Promise(function(c){var i=l.onDone;l.onDone=function(){i&&i(),c(),l.onDone=null}})},A.clear=function(h){if(h)m(s[h]),delete s[h];else for(var l in s)A.clear(l)};function m(h){h&&h.timer!==null&&(clearTimeout(h.timer),h.timer=null)}},8163:function(L,A,s){var m=s(2770);L.exports=function(l,c){if(l>0)return Math.log(l)/Math.LN10;var i=Math.log(Math.min(c[0],c[1]))/Math.LN10;return m(i)||(i=Math.log(Math.max(c[0],c[1]))/Math.LN10-6),i}},7815:function(L){L.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},2177:function(L){L.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},4458:function(L,A,s){var m=s(3972);L.exports=function(l){for(var c=m.layoutArrayContainers,i=m.layoutArrayRegexes,u=l.split("[")[0],d,g,v=0;v0&&c.log("Clearing previous rejected promises from queue."),R._promises=[]},A.cleanLayout=function(R){var F,H;R||(R={}),R.xaxis1&&(R.xaxis||(R.xaxis=R.xaxis1),delete R.xaxis1),R.yaxis1&&(R.yaxis||(R.yaxis=R.yaxis1),delete R.yaxis1),R.scene1&&(R.scene||(R.scene=R.scene1),delete R.scene1);var j=(i.subplotsRegistry.cartesian||{}).attrRegex,P=(i.subplotsRegistry.polar||{}).attrRegex,ee=(i.subplotsRegistry.ternary||{}).attrRegex,J=(i.subplotsRegistry.gl3d||{}).attrRegex,K=Object.keys(R);for(F=0;F3?(ie.x=1.02,ie.xanchor="left"):ie.x<-2&&(ie.x=-.02,ie.xanchor="right"),ie.y>3?(ie.y=1.02,ie.yanchor="bottom"):ie.y<-2&&(ie.y=-.02,ie.yanchor="top")),_(R),R.dragmode==="rotate"&&(R.dragmode="orbit"),d.clean(R),R.template&&R.template.layout&&A.cleanLayout(R.template.layout),R};function C(R,F){var H=R[F],j=F.charAt(0);H&&H!=="paper"&&(R[F]=g(H,j,!0))}function _(R){R&&((typeof R.title=="string"||typeof R.title=="number")&&(R.title={text:R.title}),F("titlefont","font"),F("titleposition","position"),F("titleside","side"),F("titleoffset","offset"));function F(H,j){var P=R[H],ee=R.title&&R.title[j];P&&!ee&&(R.title||(R.title={}),R.title[j]=R[H],delete R[H])}}A.cleanData=function(R){for(var F=0;F0)return R.substr(0,F)}A.hasParent=function(R,F){for(var H=M(F);H;){if(H in R)return!0;H=M(H)}return!1};var k=["x","y","z"];A.clearAxisTypes=function(R,F,H){for(var j=0;j1&&l.warn("Full array edits are incompatible with other edits",S);var F=C[""][""];if(d(F))x.set(null);else if(Array.isArray(F))x.set(F);else return l.warn("Unrecognized full array edit value",S,F),!0;return M?!1:(O(k,R),D(v),!0)}var H=Object.keys(C).map(Number).sort(c),j=x.get(),P=j||[],ee=$(R,S).get(),J=[],K=-1,ae=P.length,Q,he,ge,Se,ce,ne,fe,X;for(Q=0;QP.length-(fe?0:1)){l.warn("index out of range",S,ge);continue}if(ne!==void 0)ce.length>1&&l.warn("Insertion & removal are incompatible with edits to the same index.",S,ge),d(ne)?J.push(ge):fe?(ne==="add"&&(ne={}),P.splice(ge,0,ne),ee&&ee.splice(ge,0,{})):l.warn("Unrecognized full object edit value",S,ge,ne),K===-1&&(K=ge);else for(he=0;he=0;Q--)P.splice(J[Q],1),ee&&ee.splice(J[Q],1);if(P.length?j||x.set(P):x.set(null),M)return!1;if(O(k,R),N!==h){var ye;if(K===-1)ye=H;else{for(ae=Math.max(P.length,ae),ye=[],Q=0;Q=K));Q++)ye.push(ge);for(Q=K;Q=Ze.data.length||Tt<-Ze.data.length)throw new Error(ht+" must be valid indices for gd.data.");if(it.indexOf(Tt,pt+1)>-1||Tt>=0&&it.indexOf(-Ze.data.length+Tt)>-1||Tt<0&&it.indexOf(Ze.data.length+Tt)>-1)throw new Error("each index in "+ht+" must be unique.")}}function ye(Ze,it,ht){if(!Array.isArray(Ze.data))throw new Error("gd.data must be an array.");if(typeof it>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(it)||(it=[it]),X(Ze,it,"currentIndices"),typeof ht<"u"&&!Array.isArray(ht)&&(ht=[ht]),typeof ht<"u"&&X(Ze,ht,"newIndices"),typeof ht<"u"&&it.length!==ht.length)throw new Error("current and new indices must be of equal length.")}function Ce(Ze,it,ht){var pt,Tt;if(!Array.isArray(Ze.data))throw new Error("gd.data must be an array.");if(typeof it>"u")throw new Error("traces must be defined.");for(Array.isArray(it)||(it=[it]),pt=0;pt"u")throw new Error("indices must be an integer or array of integers");X(Ze,ht,"indices");for(var Et in it){if(!Array.isArray(it[Et])||it[Et].length!==ht.length)throw new Error("attribute "+Et+" must be an array of length equal to indices array length");if(Tt&&(!(Et in pt)||!Array.isArray(pt[Et])||pt[Et].length!==it[Et].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function ke(Ze,it,ht,pt){var Tt=c.isPlainObject(pt),Et=[],fn,tn,Zt,Dt,un;Array.isArray(ht)||(ht=[ht]),ht=fe(ht,Ze.data.length-1);for(var Un in it)for(var tr=0;tr=0&&un=0&&un"u")return Dt=A.redraw(Ze),d.add(Ze,Tt,fn,Et,tn),Dt;Array.isArray(ht)||(ht=[ht]);try{ye(Ze,pt,ht)}catch(un){throw Ze.data.splice(Ze.data.length-it.length,it.length),un}return d.startSequence(Ze),d.add(Ze,Tt,fn,Et,tn),Dt=A.moveTraces(Ze,pt,ht),d.stopSequence(Ze),Dt}function we(Ze,it){Ze=c.getGraphDiv(Ze);var ht=[],pt=A.addTraces,Tt=we,Et=[Ze,ht,it],fn=[Ze,it],tn,Zt;if(typeof it>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(it)||(it=[it]),X(Ze,it,"indices"),it=fe(it,Ze.data.length-1),it.sort(c.sorterDes),tn=0;tn"u")for(ht=[],Dt=0;Dt-1&&Et.indexOf("grouptitlefont")===-1?tn(Et,Et.replace("titlefont","title.font")):Et.indexOf("titleposition")>-1?tn(Et,Et.replace("titleposition","title.position")):Et.indexOf("titleside")>-1?tn(Et,Et.replace("titleside","title.side")):Et.indexOf("titleoffset")>-1&&tn(Et,Et.replace("titleoffset","title.offset"));function tn(Zt,Dt){Ze[Dt]=Ze[Zt],delete Ze[Zt]}}function ze(Ze,it,ht){Ze=c.getGraphDiv(Ze),F.clearPromiseQueue(Ze);var pt={};if(typeof it=="string")pt[it]=ht;else if(c.isPlainObject(it))pt=c.extendFlat({},it);else return c.warn("Relayout fail.",it,ht),Promise.reject();Object.keys(pt).length&&(Ze.changed=!0);var Tt=qe(Ze,pt),Et=Tt.flags;Et.calc&&(Ze.calcdata=void 0);var fn=[x.previousPromises];Et.layoutReplot?fn.push(H.layoutReplot):Object.keys(pt).length&&(We(Ze,Et,Tt)||x.supplyDefaults(Ze),Et.legend&&fn.push(H.doLegend),Et.layoutstyle&&fn.push(H.layoutStyles),Et.axrange&&ot(fn,Tt.rangesAltered),Et.ticks&&fn.push(H.doTicksRelayout),Et.modebar&&fn.push(H.doModeBar),Et.camera&&fn.push(H.doCamera),Et.colorbars&&fn.push(H.doColorBars),fn.push(ae)),fn.push(x.rehover,x.redrag,x.reselect),d.add(Ze,ze,[Ze,Tt.undoit],ze,[Ze,Tt.redoit]);var tn=c.syncOrAsync(fn,Ze);return(!tn||!tn.then)&&(tn=Promise.resolve(Ze)),tn.then(function(){return Ze.emit("plotly_relayout",Tt.eventData),Ze})}function We(Ze,it,ht){var pt=Ze._fullLayout;if(!it.axrange)return!1;for(var Tt in it)if(Tt!=="axrange"&&it[Tt])return!1;var Et,fn,tn=function(Er,zt){return c.coerce(Et,fn,$,Er,zt)},Zt={};for(var Dt in ht.rangesAltered){var un=C.id2name(Dt);if(Et=Ze.layout[un],fn=pt[un],_(Et,fn,tn,Zt),fn._matchGroup){for(var Un in fn._matchGroup)if(Un!==Dt){var tr=pt[C.id2name(Un)];tr.autorange=fn.autorange,tr.range=fn.range.slice(),tr._input.range=fn.range.slice()}}}return!0}function ot(Ze,it){var ht=it?function(pt){var Tt=[],Et=!0;for(var fn in it){var tn=C.getFromId(pt,fn);if(Tt.push(fn),(tn.ticklabelposition||"").indexOf("inside")!==-1&&tn._anchorAxis&&Tt.push(tn._anchorAxis._id),tn._matchGroup)for(var Zt in tn._matchGroup)it[Zt]||Tt.push(Zt)}return C.draw(pt,Tt,{skipTitle:Et})}:function(pt){return C.draw(pt,"redraw")};Ze.push(M,H.doAutoRangeAndConstraints,ht,H.drawData,H.finalDraw)}var dt=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Ge=/^[xyz]axis[0-9]*\.autorange$/,Xe=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function qe(Ze,it){var ht=Ze.layout,pt=Ze._fullLayout,Tt=pt._guiEditing,Et=le(pt._preGUI,Tt),fn=Object.keys(it),tn=C.list(Ze),Zt=c.extendDeepAll({},it),Dt={},un,Un,tr;for(Re(it),fn=Object.keys(it),Un=0;Un0&&typeof or.parts[vo]!="string";)vo--;var Cr=or.parts[vo],He=or.parts[vo-1]+"."+Cr,De=or.parts.slice(0,vo).join("."),St=i(Ze.layout,De).get(),kt=i(pt,De).get(),Pt=or.get();if(wr!==void 0){Ir[xr]=wr,Tr[xr]=Cr==="reverse"?wr:pe(Pt);var Bt=v.getLayoutValObject(pt,or.parts);if(Bt&&Bt.impliedEdits&&wr!==null)for(var Ut in Bt.impliedEdits)rr(c.relativeAttr(xr,Ut),Bt.impliedEdits[Ut]);if(["width","height"].indexOf(xr)!==-1)if(wr){rr("autosize",null);var Ot=xr==="height"?"width":"height";rr(Ot,pt[Ot])}else pt[xr]=Ze._initialAutoSize[xr];else if(xr==="autosize")rr("width",wr?null:pt.width),rr("height",wr?null:pt.height);else if(He.match(dt))Ln(He),i(pt,De+"._inputRange").set(null);else if(He.match(Ge)){Ln(He),i(pt,De+"._inputRange").set(null);var _t=i(pt,De).get();_t._inputDomain&&(_t._input.domain=_t._inputDomain.slice())}else He.match(Xe)&&i(pt,De+"._inputDomain").set(null);if(Cr==="type"){_r=St;var qt=kt.type==="linear"&&wr==="log",cn=kt.type==="log"&&wr==="linear";if(qt||cn){if(!_r||!_r.range)rr(De+".autorange",!0);else if(kt.autorange)qt&&(_r.range=_r.range[1]>_r.range[0]?[1,2]:[2,1]);else{var Qt=_r.range[0],nn=_r.range[1];qt?(Qt<=0&&nn<=0&&rr(De+".autorange",!0),Qt<=0?Qt=nn/1e6:nn<=0&&(nn=Qt/1e6),rr(De+".range[0]",Math.log(Qt)/Math.LN10),rr(De+".range[1]",Math.log(nn)/Math.LN10)):(rr(De+".range[0]",Math.pow(10,Qt)),rr(De+".range[1]",Math.pow(10,nn)))}Array.isArray(pt._subplots.polar)&&pt._subplots.polar.length&&pt[or.parts[0]]&&or.parts[1]==="radialaxis"&&delete pt[or.parts[0]]._subplot.viewInitial["radialaxis.range"],g.getComponentMethod("annotations","convertCoords")(Ze,kt,wr,rr),g.getComponentMethod("images","convertCoords")(Ze,kt,wr,rr)}else rr(De+".autorange",!0),rr(De+".range",null);i(pt,De+"._inputRange").set(null)}else if(Cr.match(P)){var Sn=i(pt,xr).get(),bn=(wr||{}).type;(!bn||bn==="-")&&(bn="linear"),g.getComponentMethod("annotations","convertCoords")(Ze,Sn,bn,rr),g.getComponentMethod("images","convertCoords")(Ze,Sn,bn,rr)}var gn=R.containerArrayMatch(xr);if(gn){un=gn.array,Un=gn.index;var Qn=gn.property,Bn=Bt||{editType:"calc"};Un!==""&&Qn===""&&(R.isAddVal(wr)?Tr[xr]=null:R.isRemoveVal(wr)?Tr[xr]=(i(ht,un).get()||[])[Un]:c.warn("unrecognized full object value",it)),j.update(Gn,Bn),Dt[un]||(Dt[un]={});var Hr=Dt[un][Un];Hr||(Hr=Dt[un][Un]={}),Hr[Qn]=wr,delete it[xr]}else Cr==="reverse"?(St.range?St.range.reverse():(rr(De+".autorange",!0),St.range=[1,0]),kt.autorange?Gn.calc=!0:Gn.plot=!0):(xr==="dragmode"&&(wr===!1&&Pt!==!1||wr!==!1&&Pt===!1)||pt._has("scatter-like")&&pt._has("regl")&&xr==="dragmode"&&(wr==="lasso"||wr==="select")&&!(Pt==="lasso"||Pt==="select")||pt._has("gl2d")?Gn.plot=!0:Bt?j.update(Gn,Bt):Gn.calc=!0,or.set(wr))}}for(un in Dt){var fr=R.applyContainerArrayChanges(Ze,Et(ht,un),Dt[un],Gn,Et);fr||(Gn.plot=!0)}for(var Vr in Yr){_r=C.getFromId(Ze,Vr);var ar=_r&&_r._constraintGroup;if(ar){Gn.calc=!0;for(var cr in ar)Yr[cr]||(C.getFromId(Ze,cr)._constraintShrinkable=!0)}}(gt(Ze)||it.height||it.width)&&(Gn.plot=!0);var Kr=pt.shapes;for(Un=0;Un1;)if(pt.pop(),ht=i(it,pt.join(".")+".uirevision").get(),ht!==void 0)return ht;return it.uirevision}function Ft(Ze,it){for(var ht=0;ht=Tt.length?Tt[0]:Tt[Dt]:Tt}function tn(Dt){return Array.isArray(Et)?Dt>=Et.length?Et[0]:Et[Dt]:Et}function Zt(Dt,un){var Un=0;return function(){if(Dt&&++Un===un)return Dt()}}return new Promise(function(Dt,un){function Un(){if(pt._frameQueue.length!==0){for(;pt._frameQueue.length;){var Cr=pt._frameQueue.pop();Cr.onInterrupt&&Cr.onInterrupt()}Ze.emit("plotly_animationinterrupted",[])}}function tr(Cr){if(Cr.length!==0){for(var He=0;Hept._timeToNext&&zt()};Cr()}var Gn=0;function Ir(Cr){return Array.isArray(Tt)?Gn>=Tt.length?Cr.transitionOpts=Tt[Gn]:Cr.transitionOpts=Tt[0]:Cr.transitionOpts=Tt,Gn++,Cr}var Tr,rr,Yr=[],_r=it==null,Ln=Array.isArray(it),xr=!_r&&!Ln&&c.isPlainObject(it);if(xr)Yr.push({type:"object",data:Ir(c.extendFlat({},it))});else if(_r||["string","number"].indexOf(typeof it)!==-1)for(Tr=0;Tr0&&roro)&&vo.push(rr);Yr=vo}}Yr.length>0?tr(Yr):(Ze.emit("plotly_animated"),Dt())})}function lt(Ze,it,ht){if(Ze=c.getGraphDiv(Ze),it==null)return Promise.resolve();if(!c.isPlotDiv(Ze))throw new Error("This element is not a Plotly plot: "+Ze+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var pt,Tt,Et,fn,tn=Ze._transitionData._frames,Zt=Ze._transitionData._frameHash;if(!Array.isArray(it))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+it);var Dt=tn.length+it.length*2,un=[],Un={};for(pt=it.length-1;pt>=0;pt--)if(c.isPlainObject(it[pt])){var tr=it[pt].name,Er=(Zt[tr]||Un[tr]||{}).name,zt=it[pt].name,pr=Zt[Er]||Un[Er];Er&&zt&&typeof zt=="number"&&pr&&eeor.index?-1:xr.index=0;pt--){if(Tt=un[pt].frame,typeof Tt.name=="number"&&c.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Tt.name)for(;Zt[Tt.name="frame "+Ze._transitionData._counter++];);if(Zt[Tt.name]){for(Et=0;Et=0;ht--)pt=it[ht],Et.push({type:"delete",index:pt}),fn.unshift({type:"insert",index:pt,value:Tt[pt]});var tn=x.modifyFrames,Zt=x.modifyFrames,Dt=[Ze,fn],un=[Ze,Et];return d&&d.add(Ze,tn,Dt,Zt,un),x.modifyFrames(Ze,Et)}function wt(Ze){Ze=c.getGraphDiv(Ze);var it=Ze._fullLayout||{},ht=Ze._fullData||[];return x.cleanPlot([],{},ht,it),x.purge(Ze),u.purge(Ze),it._container&&it._container.remove(),delete Ze._context,Ze}function vt(Ze){var it=Ze._fullLayout,ht=Ze.getBoundingClientRect();if(!c.equalDomRects(ht,it._lastBBox)){var pt=it._invTransform=c.inverseTransformMatrix(c.getFullTransformMatrix(Ze));it._invScaleX=Math.sqrt(pt[0][0]*pt[0][0]+pt[0][1]*pt[0][1]+pt[0][2]*pt[0][2]),it._invScaleY=Math.sqrt(pt[1][0]*pt[1][0]+pt[1][1]*pt[1][1]+pt[1][2]*pt[1][2]),it._lastBBox=ht}}function $t(Ze){var it=m.select(Ze),ht=Ze._fullLayout;if(ht._calcInverseTransform=vt,ht._calcInverseTransform(Ze),ht._container=it.selectAll(".plot-container").data([0]),ht._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),ht._paperdiv=ht._container.selectAll(".svg-container").data([0]),ht._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),ht._glcontainer=ht._paperdiv.selectAll(".gl-container").data([{}]),ht._glcontainer.enter().append("div").classed("gl-container",!0),ht._paperdiv.selectAll(".main-svg").remove(),ht._paperdiv.select(".modebar-container").remove(),ht._paper=ht._paperdiv.insert("svg",":first-child").classed("main-svg",!0),ht._toppaper=ht._paperdiv.append("svg").classed("main-svg",!0),ht._modebardiv=ht._paperdiv.append("div"),delete ht._modeBar,ht._hoverpaper=ht._paperdiv.append("svg").classed("main-svg",!0),!ht._uid){var pt={};m.selectAll("defs").each(function(){this.id&&(pt[this.id.split("-")[1]]=1)}),ht._uid=c.randstr(pt)}ht._paperdiv.selectAll(".main-svg").attr(N.svgAttrs),ht._defs=ht._paper.append("defs").attr("id","defs-"+ht._uid),ht._clips=ht._defs.append("g").classed("clips",!0),ht._topdefs=ht._toppaper.append("defs").attr("id","topdefs-"+ht._uid),ht._topclips=ht._topdefs.append("g").classed("clips",!0),ht._bgLayer=ht._paper.append("g").classed("bglayer",!0),ht._draggers=ht._paper.append("g").classed("draglayer",!0);var Tt=ht._paper.append("g").classed("layer-below",!0);ht._imageLowerLayer=Tt.append("g").classed("imagelayer",!0),ht._shapeLowerLayer=Tt.append("g").classed("shapelayer",!0),ht._cartesianlayer=ht._paper.append("g").classed("cartesianlayer",!0),ht._polarlayer=ht._paper.append("g").classed("polarlayer",!0),ht._smithlayer=ht._paper.append("g").classed("smithlayer",!0),ht._ternarylayer=ht._paper.append("g").classed("ternarylayer",!0),ht._geolayer=ht._paper.append("g").classed("geolayer",!0),ht._funnelarealayer=ht._paper.append("g").classed("funnelarealayer",!0),ht._pielayer=ht._paper.append("g").classed("pielayer",!0),ht._iciclelayer=ht._paper.append("g").classed("iciclelayer",!0),ht._treemaplayer=ht._paper.append("g").classed("treemaplayer",!0),ht._sunburstlayer=ht._paper.append("g").classed("sunburstlayer",!0),ht._indicatorlayer=ht._toppaper.append("g").classed("indicatorlayer",!0),ht._glimages=ht._paper.append("g").classed("glimages",!0);var Et=ht._toppaper.append("g").classed("layer-above",!0);ht._imageUpperLayer=Et.append("g").classed("imagelayer",!0),ht._shapeUpperLayer=Et.append("g").classed("shapelayer",!0),ht._selectionLayer=ht._toppaper.append("g").classed("selectionlayer",!0),ht._infolayer=ht._toppaper.append("g").classed("infolayer",!0),ht._menulayer=ht._toppaper.append("g").classed("menulayer",!0),ht._zoomlayer=ht._toppaper.append("g").classed("zoomlayer",!0),ht._hoverlayer=ht._hoverpaper.append("g").classed("hoverlayer",!0),ht._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),Ze.emit("plotly_framework")}A.animate=wn,A.addFrames=lt,A.deleteFrames=ft,A.addTraces=ie,A.deleteTraces=we,A.extendTraces=Oe,A.moveTraces=se,A.prependTraces=Fe,A.newPlot=ne,A._doPlot=K,A.purge=wt,A.react=Zn,A.redraw=ce,A.relayout=ze,A.restyle=ue,A.setPlotConfig=Q,A.update=ut,A._guiRelayout=tt(ze),A._guiRestyle=tt(ue),A._guiUpdate=tt(ut),A._storeDirectGUIEdit=de},2075:function(L){var A={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},s={};function m(h,l){for(var c in h){var i=h[c];i.valType?l[c]=i.dflt:(l[c]||(l[c]={}),m(i,l[c]))}}m(A,s),L.exports={configAttributes:A,dfltConfig:s}},6281:function(L,A,s){var m=s(3972),h=s(1828),l=s(9012),c=s(820),i=s(1391),u=s(5594),d=s(2075).configAttributes,g=s(962),v=h.extendDeepAll,x=h.isPlainObject,C=h.isArrayOrTypedArray,_=h.nestedProperty,$=h.valObjectMeta,S="_isSubplotObj",O="_isLinkedToArray",D="_arrayAttrRegexps",N="_deprecated",M=[S,O,D,N];A.IS_SUBPLOT_OBJ=S,A.IS_LINKED_TO_ARRAY=O,A.DEPRECATED=N,A.UNDERSCORE_ATTRS=M,A.get=function(){var Se={};m.allTypes.forEach(function(ne){Se[ne]=H(ne)});var ce={};return Object.keys(m.transformsRegistry).forEach(function(ne){ce[ne]=P(ne)}),{defs:{valObjects:$,metaKeys:M.concat(["description","role","editType","impliedEdits"]),editType:{traces:g.traces,layout:g.layout},impliedEdits:{}},traces:Se,layout:j(),transforms:ce,frames:ee(),animation:J(u),config:J(d)}},A.crawl=function(Se,ce,ne,fe){var X=ne||0;fe=fe||"",Object.keys(Se).forEach(function(ye){var Ce=Se[ye];if(M.indexOf(ye)===-1){var $e=(fe?fe+".":"")+ye;ce(Ce,ye,Se,X,$e),!A.isValObject(Ce)&&x(Ce)&&ye!=="impliedEdits"&&A.crawl(Ce,ce,X+1,$e)}})},A.isValObject=function(Se){return Se&&Se.valType!==void 0},A.findArrayAttributes=function(Se){var ce=[],ne=[],fe=[],X,ye;function Ce(Fe,ie,we,se){ne=ne.slice(0,se).concat([ie]),fe=fe.slice(0,se).concat([Fe&&Fe._isLinkedToArray]);var ue=Fe&&(Fe.valType==="data_array"||Fe.arrayOk===!0)&&!(ne[se-1]==="colorbar"&&(ie==="ticktext"||ie==="tickvals"));ue&&$e(X,0,"")}function $e(Fe,ie,we){var se=Fe[ne[ie]],ue=we+ne[ie];if(ie===ne.length-1)C(se)&&ce.push(ye+ue);else if(fe[ie]){if(Array.isArray(se))for(var pe=0;pe=Ce.length)return!1;X=(m.transformsRegistry[Ce[$e].type]||{}).attributes,ye=X&&X[ce[2]],fe=3}else{var ke=Se._module;if(ke||(ke=(m.modules[Se.type||l.type.dflt]||{})._module),!ke)return!1;if(X=ke.attributes,ye=X&&X[ne],!ye){var Ne=ke.basePlotModule;Ne&&Ne.attributes&&(ye=Ne.attributes[ne])}ye||(ye=l[ne])}return R(ye,ce,fe)},A.getLayoutValObject=function(Se,ce){var ne=k(Se,ce[0]);return R(ne,ce,1)};function k(Se,ce){var ne,fe,X,ye,Ce=Se._basePlotModules;if(Ce){var $e;for(ne=0;ne=ye.length)return!1;if(Se.dimensions===2){if(ne++,ce.length===ne)return Se;var Ce=ce[ne];if(!F(Ce))return!1;Se=ye[X][Ce]}else Se=ye[X]}else Se=ye}}return Se}function F(Se){return Se===Math.round(Se)&&Se>=0}function H(Se){var ce,ne;ce=m.modules[Se]._module,ne=ce.basePlotModule;var fe={};fe.type=null;var X=v({},l),ye=v({},ce.attributes);A.crawl(ye,function(ke,Ne,Ve,Oe,Fe){_(X,Fe).set(void 0),ke===void 0&&_(ye,Fe).set(void 0)}),v(fe,X),m.traceIs(Se,"noOpacity")&&delete fe.opacity,m.traceIs(Se,"showLegend")||(delete fe.showlegend,delete fe.legendgroup),m.traceIs(Se,"noHover")&&(delete fe.hoverinfo,delete fe.hoverlabel),ce.selectPoints||delete fe.selectedpoints,v(fe,ye),ne.attributes&&v(fe,ne.attributes),fe.type=Se;var Ce={meta:ce.meta||{},categories:ce.categories||{},animatable:!!ce.animatable,type:Se,attributes:J(fe)};if(ce.layoutAttributes){var $e={};v($e,ce.layoutAttributes),Ce.layoutAttributes=J($e)}return ce.animatable||A.crawl(Ce,function(ke){A.isValObject(ke)&&"anim"in ke&&delete ke.anim}),Ce}function j(){var Se={},ce,ne;v(Se,c);for(ce in m.subplotsRegistry)if(ne=m.subplotsRegistry[ce],!!ne.layoutAttributes)if(Array.isArray(ne.attr))for(var fe=0;fe=x&&(v._input||{})._templateitemname;_&&(C=x);var $=g+"["+C+"]",S;function O(){S={},_&&(S[$]={},S[$][l]=_)}O();function D(R,F){S[R]=F}function N(R,F){_?m.nestedProperty(S[$],R).set(F):S[$+"."+R]=F}function M(){var R=S;return O(),R}function k(R,F){R&&N(R,F);var H=M();for(var j in H)m.nestedProperty(d,j).set(H[j])}return{modifyBase:D,modifyItem:N,getUpdateObj:M,applyUpdate:k}}},1549:function(L,A,s){var m=s(9898),h=s(3972),l=s(4875),c=s(1828),i=s(3893),u=s(3306),d=s(7901),g=s(1424),v=s(2998),x=s(4168),C=s(9298),_=s(8783),$=s(9082),S=$.enforce,O=$.clean,D=s(1739).doAutoRange,N="start",M="middle",k="end";A.layoutStyles=function(ne){return c.syncOrAsync([l.doAutoMargin,F],ne)};function R(ne,fe,X){for(var ye=0;ye=ne[1]||Ce[1]<=ne[0])&&$e[0]fe[0])return!0}return!1}function F(ne){var fe=ne._fullLayout,X=fe._size,ye=X.p,Ce=C.list(ne,"",!0),$e,ke,Ne,Ve,Oe,Fe;if(fe._paperdiv.style({width:ne._context.responsive&&fe.autosize&&!ne._context._hasZeroWidth&&!ne.layout.width?"100%":fe.width+"px",height:ne._context.responsive&&fe.autosize&&!ne._context._hasZeroHeight&&!ne.layout.height?"100%":fe.height+"px"}).selectAll(".main-svg").call(g.setSize,fe.width,fe.height),ne._context.setBackground(ne,fe.paper_bgcolor),A.drawMainTitle(ne),x.manage(ne),!fe._has("cartesian"))return l.previousPromises(ne);function ie(wt,vt,$t){var Ze=wt._lw/2;if(wt._id.charAt(0)==="x"){if(vt){if($t==="top")return vt._offset-ye-Ze}else return X.t+X.h*(1-(wt.position||0))+Ze%1;return vt._offset+vt._length+ye+Ze}if(vt){if($t==="right")return vt._offset+vt._length+ye+Ze}else return X.l+X.w*(wt.position||0)+Ze%1;return vt._offset-ye-Ze}for($e=0;$e0&&(ae(ne,$e,Oe,Ve),Ne.attr({x:ke,y:$e,"text-anchor":ye,dy:ge(fe.yanchor)}).call(i.positionText,ke,$e))}};function ee(ne,fe,X,ye,Ce){var $e=fe.yref==="paper"?ne._fullLayout._size.h:ne._fullLayout.height,ke=c.isTopAnchor(fe)?ye:ye-Ce,Ne=X==="b"?$e-ke:ke;return c.isTopAnchor(fe)&&X==="t"||c.isBottomAnchor(fe)&&X==="b"?!1:Ne.5?"t":"b",ke=ne._fullLayout.margin[$e],Ne=0;return fe.yref==="paper"?Ne=X+fe.pad.t+fe.pad.b:fe.yref==="container"&&(Ne=J($e,ye,Ce,ne._fullLayout.height,X)+fe.pad.t+fe.pad.b),Ne>ke?Ne:0}function ae(ne,fe,X,ye){var Ce="title.automargin",$e=ne._fullLayout.title,ke=$e.y>.5?"t":"b",Ne={x:$e.x,y:$e.y,t:0,b:0},Ve={};$e.yref==="paper"&&ee(ne,$e,ke,fe,ye)?Ne[ke]=X:$e.yref==="container"&&(Ve[ke]=X,ne._fullLayout._reservedMargin[Ce]=Ve),l.allowAutoMargin(ne,Ce),l.autoMargin(ne,Ce,Ne)}function Q(ne,fe){var X=ne.title,ye=ne._size,Ce=0;switch(fe===N?Ce=X.pad.l:fe===k&&(Ce=-X.pad.r),X.xref){case"paper":return ye.l+ye.w*X.x+Ce;case"container":default:return ne.width*X.x+Ce}}function he(ne,fe){var X=ne.title,ye=ne._size,Ce=0;if(fe==="0em"||!fe?Ce=-X.pad.b:fe===_.CAP_SHIFT+"em"&&(Ce=X.pad.t),X.y==="auto")return ye.t/2;switch(X.yref){case"paper":return ye.t+ye.h-ye.h*X.y+Ce;case"container":default:return ne.height-ne.height*X.y+Ce}}function ge(ne){return ne==="top"?_.CAP_SHIFT+.3+"em":ne==="bottom"?"-0.3em":_.MID_SHIFT+"em"}function Se(ne){var fe=ne.title,X=M;return c.isRightAnchor(fe)?X=k:c.isLeftAnchor(fe)&&(X=N),X}function ce(ne){var fe=ne.title,X="0em";return c.isTopAnchor(fe)?X=_.CAP_SHIFT+"em":c.isMiddleAnchor(fe)&&(X=_.MID_SHIFT+"em"),X}A.doTraceStyle=function(ne){var fe=ne.calcdata,X=[],ye;for(ye=0;yece?H.push({code:"unused",traceType:Q,templateCount:Se,dataCount:ce}):ce>Se&&H.push({code:"reused",traceType:Q,templateCount:Se,dataCount:ce})}}function ne(fe,X){for(var ye in fe)if(ye.charAt(0)!=="_"){var Ce=fe[ye],$e=$(fe,ye,X);h(Ce)?(Array.isArray(fe)&&Ce._template===!1&&Ce.templateitemname&&H.push({code:"missing",path:$e,templateitemname:Ce.templateitemname}),ne(Ce,$e)):Array.isArray(Ce)&&S(Ce)&&ne(Ce,$e)}}if(ne({data:P,layout:j},""),H.length)return H.map(O)};function S(D){for(var N=0;N1&&H.push(_("object","layout"))),h.supplyDefaults(j);for(var J=j._fullData,K=P.length,ae=0;aeQ.length&&F.push(_("unused",H,K.concat(Q.length)));var fe=Q.length,X=Array.isArray(ne);X&&(fe=Math.min(fe,ne.length));var ye,Ce,$e,ke,Ne;if(he.dimensions===2)for(Ce=0;CeQ[Ce].length&&F.push(_("unused",H,K.concat(Ce,Q[Ce].length)));var Ve=Q[Ce].length;for(ye=0;ye<(X?Math.min(Ve,ne[Ce].length):Ve);ye++)$e=X?ne[Ce][ye]:ne,ke=ae[Ce][ye],Ne=Q[Ce][ye],m.validate(ke,$e)?Ne!==ke&&Ne!==+ke&&F.push(_("dynamic",H,K.concat(Ce,ye),ke,Ne)):F.push(_("value",H,K.concat(Ce,ye),ke))}else F.push(_("array",H,K.concat(Ce),ae[Ce]));else for(Ce=0;Ce0&&Math.round(O)===O)S=O;else return{vals:C}}for(var D=v.calendar,N=_==="start",M=_==="end",k=g[x+"period0"],R=l(k,D)||0,F=[],H=[],j=[],P=C.length,ee=0;eeJ;)Q=c(Q,-S,D);for(;Q<=J;)Q=c(Q,S,D);ae=c(Q,-S,D)}else{for(K=Math.round((J-R)/$),Q=R+K*$;Q>J;)Q-=$;for(;Q<=J;)Q+=$;ae=Q-$}F[ee]=N?ae:M?Q:(ae+Q)/2,H[ee]=ae,j[ee]=Q}return{vals:F,starts:H,ends:j}}},9502:function(L){L.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},1739:function(L,A,s){var m=s(9898),h=s(2770),l=s(1828),c=s(606).FP_SAFE,i=s(3972),u=s(1424),d=s(1675),g=d.getFromId,v=d.isLinked;L.exports={applyAutorangeOptions:K,getAutoRange:x,makePadFn:_,doAutoRange:D,findExtremes:N,concatExtremes:O};function x(ae,Q){var he,ge,Se=[],ce=ae._fullLayout,ne=_(ce,Q,0),fe=_(ce,Q,1),X=O(ae,Q),ye=X.min,Ce=X.max;if(ye.length===0||Ce.length===0)return l.simpleMap(Q.range,Q.r2l);var $e=ye[0].val,ke=Ce[0].val;for(he=1;he0&&(Re=se-ne(le)-fe(Te),Re>ue?ze/Re>pe&&(de=le,Me=Te,pe=ze/Re):ze/se>pe&&(de={val:le.val,nopad:1},Me={val:Te.val,nopad:1},pe=ze/se));function We(qe,gt){return Math.max(qe,fe(gt))}if($e===ke){var ot=$e-1,dt=$e+1;if(ie)if($e===0)Se=[0,1];else{var Ge=($e>0?Ce:ye).reduce(We,0),Xe=$e/(1-Math.min(.5,Ge/se));Se=$e>0?[0,Xe]:[Xe,0]}else we?Se=[Math.max(0,ot),Math.max(1,dt)]:Se=[ot,dt]}else ie?(de.val>=0&&(de={val:0,nopad:1}),Me.val<=0&&(Me={val:0,nopad:1})):we&&(de.val-pe*ne(de)<0&&(de={val:0,nopad:1}),Me.val<=0&&(Me={val:1,nopad:1})),pe=(Me.val-de.val-C(Q,le.val,Te.val))/(se-ne(de)-fe(Me)),Se=[de.val-pe*ne(de),Me.val+pe*fe(Me)];return Se=K(Se,Q),Q.limitRange&&Q.limitRange(),Ve&&Se.reverse(),l.simpleMap(Se,Q.l2r||Number)}function C(ae,Q,he){var ge=0;if(ae.rangebreaks)for(var Se=ae.locateBreaks(Q,he),ce=0;ce0?he.ppadplus:he.ppadminus)||he.ppad||0),le=ue((ae._m>0?he.ppadminus:he.ppadplus)||he.ppad||0),Te=ue(he.vpadplus||he.vpad),de=ue(he.vpadminus||he.vpad);if(!ye){if(we=1/0,se=-1/0,X)for($e=0;$e0&&(we=ke),ke>se&&ke-c&&(we=ke),ke>se&&ke=ze;$e--)Re($e);return{min:ge,max:Se,opts:he}}function M(ae,Q,he,ge){R(ae,Q,he,ge,H)}function k(ae,Q,he,ge){R(ae,Q,he,ge,j)}function R(ae,Q,he,ge,Se){for(var ce=ge.tozero,ne=ge.extrapad,fe=!0,X=0;X=he&&(ye.extrapad||!ne)){fe=!1;break}else Se(Q,ye.val)&&ye.pad<=he&&(ne||!ye.extrapad)&&(ae.splice(X,1),X--)}if(fe){var Ce=ce&&Q===0;ae.push({val:Q,pad:Ce?0:he,extrapad:Ce?!1:ne})}}function F(ae){return h(ae)&&Math.abs(ae)=Q}function P(ae,Q){var he=Q.autorangeoptions;return he&&he.minallowed!==void 0&&J(Q,he.minallowed,he.maxallowed)?he.minallowed:he&&he.clipmin!==void 0&&J(Q,he.clipmin,he.clipmax)?Math.max(ae,Q.d2l(he.clipmin)):ae}function ee(ae,Q){var he=Q.autorangeoptions;return he&&he.maxallowed!==void 0&&J(Q,he.minallowed,he.maxallowed)?he.maxallowed:he&&he.clipmax!==void 0&&J(Q,he.clipmin,he.clipmax)?Math.min(ae,Q.d2l(he.clipmax)):ae}function J(ae,Q,he){return Q!==void 0&&he!==void 0?(Q=ae.d2l(Q),he=ae.d2l(he),Q=X&&(ce=X,he=X),ne<=X&&(ne=X,ge=X)}}return he=P(he,Q),ge=ee(ge,Q),[he,ge]}},3074:function(L){L.exports=function(s,m,h){var l,c;if(h){var i=m==="reversed"||m==="min reversed"||m==="max reversed";l=h[i?1:0],c=h[i?0:1]}var u=s("autorangeoptions.minallowed",c===null?l:void 0),d=s("autorangeoptions.maxallowed",l===null?c:void 0);u===void 0&&s("autorangeoptions.clipmin"),d===void 0&&s("autorangeoptions.clipmax"),s("autorangeoptions.include")}},9298:function(L,A,s){var m=s(9898),h=s(2770),l=s(4875),c=s(3972),i=s(1828),u=i.strTranslate,d=s(3893),g=s(2998),v=s(7901),x=s(1424),C=s(3838),_=s(6287),$=s(606),S=$.ONEMAXYEAR,O=$.ONEAVGYEAR,D=$.ONEMINYEAR,N=$.ONEMAXQUARTER,M=$.ONEAVGQUARTER,k=$.ONEMINQUARTER,R=$.ONEMAXMONTH,F=$.ONEAVGMONTH,H=$.ONEMINMONTH,j=$.ONEWEEK,P=$.ONEDAY,ee=P/2,J=$.ONEHOUR,K=$.ONEMIN,ae=$.ONESEC,Q=$.MINUS_SIGN,he=$.BADNUM,ge={K:"zeroline"},Se={K:"gridline",L:"path"},ce={K:"minor-gridline",L:"path"},ne={K:"tick",L:"path"},fe={K:"tick",L:"text"},X={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},ye=s(8783),Ce=ye.MID_SHIFT,$e=ye.CAP_SHIFT,ke=ye.LINE_SPACING,Ne=ye.OPPOSITE_SIDE,Ve=3,Oe=L.exports={};Oe.setConvert=s(1994);var Fe=s(4322),ie=s(1675),we=ie.idSort,se=ie.isLinked;Oe.id2name=ie.id2name,Oe.name2id=ie.name2id,Oe.cleanId=ie.cleanId,Oe.list=ie.list,Oe.listIds=ie.listIds,Oe.getFromId=ie.getFromId,Oe.getFromTrace=ie.getFromTrace;var ue=s(1739);Oe.getAutoRange=ue.getAutoRange,Oe.findExtremes=ue.findExtremes;var pe=1e-4;function le(He){var De=(He[1]-He[0])*pe;return[He[0]-De,He[1]+De]}Oe.coerceRef=function(He,De,St,kt,Pt,Bt){var Ut=kt.charAt(kt.length-1),Ot=St._fullLayout._subplots[Ut+"axis"],_t=kt+"ref",qt={};return Pt||(Pt=Ot[0]||(typeof Bt=="string"?Bt:Bt[0])),Bt||(Bt=Pt),Ot=Ot.concat(Ot.map(function(cn){return cn+" domain"})),qt[_t]={valType:"enumerated",values:Ot.concat(Bt?typeof Bt=="string"?[Bt]:Bt:[]),dflt:Pt},i.coerce(He,De,qt,_t)},Oe.getRefType=function(He){return He===void 0?He:He==="paper"?"paper":He==="pixel"?"pixel":/( domain)$/.test(He)?"domain":"range"},Oe.coercePosition=function(He,De,St,kt,Pt,Bt){var Ut,Ot,_t=Oe.getRefType(kt);if(_t!=="range")Ut=i.ensureNumber,Ot=St(Pt,Bt);else{var qt=Oe.getFromId(De,kt);Bt=qt.fraction2r(Bt),Ot=St(Pt,Bt),Ut=qt.cleanPos}He[Pt]=Ut(Ot)},Oe.cleanPosition=function(He,De,St){var kt=St==="paper"||St==="pixel"?i.ensureNumber:Oe.getFromId(De,St).cleanPos;return kt(He)},Oe.redrawComponents=function(He,De){De=De||Oe.listIds(He);var St=He._fullLayout;function kt(Pt,Bt,Ut,Ot){for(var _t=c.getComponentMethod(Pt,Bt),qt={},cn=0;cn2e-6||((St-He._forceTick0)/He._minDtick%1+1.000001)%1>2e-6)&&(He._minDtick=0))},Oe.saveRangeInitial=function(He,De){for(var St=Oe.list(He,"",!0),kt=!1,Pt=0;PtQt*.3||qt(kt)||qt(Pt))){var nn=St.dtick/2;He+=He+nnUt){var Ot=Number(St.substr(1));Bt.exactYears>Ut&&Ot%12===0?He=Oe.tickIncrement(He,"M6","reverse")+P*1.5:Bt.exactMonths>Ut?He=Oe.tickIncrement(He,"M1","reverse")+P*15.5:He-=ee;var _t=Oe.tickIncrement(He,St);if(_t<=kt)return _t}return He}Oe.prepMinorTicks=function(He,De,St){if(!De.minor.dtick){delete He.dtick;var kt=De.dtick&&h(De._tmin),Pt;if(kt){var Bt=Oe.tickIncrement(De._tmin,De.dtick,!0);Pt=[De._tmin,Bt*.99+De._tmin*.01]}else{var Ut=i.simpleMap(De.range,De.r2l);Pt=[Ut[0],.8*Ut[0]+.2*Ut[1]]}if(He.range=i.simpleMap(Pt,De.l2r),He._isMinor=!0,Oe.prepTicks(He,St),kt){var Ot=h(De.dtick),_t=h(He.dtick),qt=Ot?De.dtick:+De.dtick.substring(1),cn=_t?He.dtick:+He.dtick.substring(1);Ot&&_t?We(qt,cn)?qt===2*j&&cn===2*P&&(He.dtick=j):qt===2*j&&cn===3*P?He.dtick=j:qt===j&&!(De._input.minor||{}).nticks?He.dtick=P:ot(qt/cn,2.5)?He.dtick=qt/2:He.dtick=qt:String(De.dtick).charAt(0)==="M"?_t?He.dtick="M1":We(qt,cn)?qt>=12&&cn===2&&(He.dtick="M3"):He.dtick=De.dtick:String(He.dtick).charAt(0)==="L"?String(De.dtick).charAt(0)==="L"?We(qt,cn)||(He.dtick=ot(qt/cn,2.5)?De.dtick/2:De.dtick):He.dtick="D1":He.dtick==="D2"&&+De.dtick>1&&(He.dtick=1)}He.range=De.range}De.minor._tick0Init===void 0&&(He.tick0=De.tick0)};function We(He,De){return Math.abs((He/De+.5)%1-.5)<.001}function ot(He,De){return Math.abs(He/De-1)<.001}Oe.prepTicks=function(He,De){var St=i.simpleMap(He.range,He.r2l,void 0,void 0,De);if(He.tickmode==="auto"||!He.dtick){var kt=He.nticks,Pt;kt||(He.type==="category"||He.type==="multicategory"?(Pt=He.tickfont?i.bigFont(He.tickfont.size||12):15,kt=He._length/Pt):(Pt=He._id.charAt(0)==="y"?40:80,kt=i.constrain(He._length/Pt,4,9)+1),He._name==="radialaxis"&&(kt*=2)),He.minor&&He.minor.tickmode!=="array"||He.tickmode==="array"&&(kt*=100),He._roughDTick=Math.abs(St[1]-St[0])/kt,Oe.autoTicks(He,He._roughDTick),He._minDtick>0&&He.dtick0?(Bt=kt-1,Ut=kt):(Bt=kt,Ut=kt);var Ot=He[Bt].value,_t=He[Ut].value,qt=Math.abs(_t-Ot),cn=St||qt,Qt=0;cn>=D?qt>=D&&qt<=S?Qt=qt:Qt=O:St===M&&cn>=k?qt>=k&&qt<=N?Qt=qt:Qt=M:cn>=H?qt>=H&&qt<=R?Qt=qt:Qt=F:St===j&&cn>=j?Qt=j:cn>=P?Qt=P:St===ee&&cn>=ee?Qt=ee:St===J&&cn>=J&&(Qt=J);var nn;Qt>=qt&&(Qt=qt,nn=!0);var Sn=Pt+Qt;if(De.rangebreaks&&Qt>0){for(var bn=84,gn=0,Qn=0;Qnj&&(Qt=qt)}(Qt>0||kt===0)&&(He[kt].periodX=Pt+Qt/2)}}Oe.calcTicks=function(De,St){for(var kt=De.type,Pt=De.calendar,Bt=De.ticklabelstep,Ut=De.ticklabelmode==="period",Ot=i.simpleMap(De.range,De.r2l,void 0,void 0,St),_t=Ot[1]=(Qn?0:1);Bn--){var Hr=!Bn;Bn?(De._dtickInit=De.dtick,De._tick0Init=De.tick0):(De.minor._dtickInit=De.minor.dtick,De.minor._tick0Init=De.minor.tick0);var fr=Bn?De:i.extendFlat({},De,De.minor);if(Hr?Oe.prepMinorTicks(fr,De,St):Oe.prepTicks(fr,St),fr.tickmode==="array"){Bn?(bn=[],nn=ut(De)):(gn=[],Sn=ut(De));continue}if(fr.tickmode==="sync"){bn=[],nn=gt(De);continue}var Vr=le(Ot),ar=Vr[0],cr=Vr[1],Kr=h(fr.dtick),qr=kt==="log"&&!(Kr||fr.dtick.charAt(0)==="L"),So=Oe.tickFirst(fr,St);if(Bn){if(De._tmin=So,So=cr:bo<=cr;bo=Oe.tickIncrement(bo,Va,_t,Pt)){if(Bn&&Zo++,fr.rangebreaks&&!_t){if(bo=cn)break}if(bn.length>Qt||bo===wa)break;wa=bo;var Yo={value:bo};Bn?(qr&&bo!==(bo|0)&&(Yo.simpleLabel=!0),Bt>1&&Zo%Bt&&(Yo.skipLabel=!0),bn.push(Yo)):(Yo.minor=!0,gn.push(Yo))}}if(Qn){var Fa=De.minor.ticks==="inside"&&De.ticks==="outside"||De.minor.ticks==="outside"&&De.ticks==="inside";if(!Fa){for(var Os=bn.map(function(To){return To.value}),Zl=[],Ys=0;Ys-1;Ya--){if(bn[Ya].drop){bn.splice(Ya,1);continue}bn[Ya].value=or(bn[Ya].value,De);var Ka=De.c2p(bn[Ya].value);(_c?jl>Ka-Lr:jlcn||Zccn&&(Xa.periodX=cn),Zckt&&QtO)De/=O,kt=Pt(10),He.dtick="M"+12*_n(De,kt,tt);else if(Bt>F)De/=F,He.dtick="M"+_n(De,1,Ct);else if(Bt>P){if(He.dtick=_n(De,P,He._hasDayOfWeekBreaks?[1,2,7,14]:Yt),!St){var Ut=Oe.getTickFormat(He),Ot=He.ticklabelmode==="period";Ot&&(He._rawTick0=He.tick0),/%[uVW]/.test(Ut)?He.tick0=i.dateTick0(He.calendar,2):He.tick0=i.dateTick0(He.calendar,1),Ot&&(He._dowTick0=He.tick0)}}else Bt>J?He.dtick=_n(De,J,Ct):Bt>K?He.dtick=_n(De,K,Gt):Bt>ae?He.dtick=_n(De,ae,Gt):(kt=Pt(10),He.dtick=_n(De,kt,tt))}else if(He.type==="log"){He.tick0=0;var _t=i.simpleMap(He.range,He.r2l);if(He._isMinor&&(De*=1.5),De>.7)He.dtick=Math.ceil(De);else if(Math.abs(_t[1]-_t[0])<1){var qt=1.5*Math.abs((_t[1]-_t[0])/De);De=Math.abs(Math.pow(10,_t[1])-Math.pow(10,_t[0]))/qt,kt=Pt(10),He.dtick="L"+_n(De,kt,tt)}else He.dtick=De>.3?"D2":"D1"}else He.type==="category"||He.type==="multicategory"?(He.tick0=0,He.dtick=Math.ceil(Math.max(De,1))):xr(He)?(He.tick0=0,kt=1,He.dtick=_n(De,kt,pn)):(He.tick0=0,kt=Pt(10),He.dtick=_n(De,kt,tt));if(He.dtick===0&&(He.dtick=1),!h(He.dtick)&&typeof He.dtick!="string"){var cn=He.dtick;throw He.dtick=1,"ax.dtick error: "+String(cn)}};function sn(He){var De=He.dtick;if(He._tickexponent=0,!h(De)&&typeof De!="string"&&(De=1),(He.type==="category"||He.type==="multicategory")&&(He._tickround=null),He.type==="date"){var St=He.r2l(He.tick0),kt=He.l2r(St).replace(/(^-|i)/g,""),Pt=kt.length;if(String(De).charAt(0)==="M")Pt>10||kt.substr(5)!=="01-01"?He._tickround="d":He._tickround=+De.substr(1)%12===0?"y":"m";else if(De>=P&&Pt<=10||De>=P*15)He._tickround="d";else if(De>=K&&Pt<=16||De>=J)He._tickround="M";else if(De>=ae&&Pt<=19||De>=K)He._tickround="S";else{var Bt=He.l2r(St+De).replace(/^-/,"").length;He._tickround=Math.max(Pt,Bt)-20,He._tickround<0&&(He._tickround=4)}}else if(h(De)||De.charAt(0)==="L"){var Ut=He.range.map(He.r2d||Number);h(De)||(De=Number(De.substr(1))),He._tickround=2-Math.floor(Math.log(De)/Math.LN10+.01);var Ot=Math.max(Math.abs(Ut[0]),Math.abs(Ut[1])),_t=Math.floor(Math.log(Ot)/Math.LN10+.01),qt=He.minexponent===void 0?3:He.minexponent;Math.abs(_t)>qt&&(vt(He.exponentformat)&&!$t(_t)?He._tickexponent=3*Math.round((_t-1)/3):He._tickexponent=_t)}else He._tickround=null}Oe.tickIncrement=function(He,De,St,kt){var Pt=St?-1:1;if(h(De))return i.increment(He,Pt*De);var Bt=De.charAt(0),Ut=Pt*Number(De.substr(1));if(Bt==="M")return i.incrementMonth(He,Ut,kt);if(Bt==="L")return Math.log(Math.pow(10,He)+Ut)/Math.LN10;if(Bt==="D"){var Ot=De==="D2"?Ft:Nt,_t=He+Pt*.01,qt=i.roundUp(i.mod(_t,1),Ot,St);return Math.floor(_t)+Math.log(m.round(Math.pow(10,qt),1))/Math.LN10}throw"unrecognized dtick "+String(De)},Oe.tickFirst=function(He,De){var St=He.r2l||Number,kt=i.simpleMap(He.range,St,void 0,void 0,De),Pt=kt[1]=0&&Bn<=He._length?Qn:null};Pt.xbnd=[gn(Pt.x-.5),gn(Pt.x+He.dtick-.5)]}return Pt},Oe.hoverLabelText=function(He,De,St){St&&(He=i.extendFlat({},He,{hoverformat:St}));var kt=Array.isArray(De)?De[0]:De,Pt=Array.isArray(De)?De[1]:void 0;if(Pt!==void 0&&Pt!==kt)return Oe.hoverLabelText(He,kt,St)+" - "+Oe.hoverLabelText(He,Pt,St);var Bt=He.type==="log"&&kt<=0,Ut=Oe.tickText(He,He.c2l(Bt?-kt:kt),"hover").text;return Bt?kt===0?"0":Q+Ut:Ut};function Zn(He,De,St){var kt=He.tickfont||{};return{x:De,dx:0,dy:0,text:St||"",fontSize:kt.size,font:kt.family,fontColor:kt.color}}function an(He,De,St,kt){var Pt=He._tickround,Bt=St&&He.hoverformat||Oe.getTickFormat(He);kt&&(h(Pt)?Pt=4:Pt={y:"m",m:"d",d:"M",M:"S",S:4}[Pt]);var Ut=i.formatDate(De.x,Bt,Pt,He._dateFormat,He.calendar,He._extraFormat),Ot,_t=Ut.indexOf(` -`);if(_t!==-1&&(Ot=Ut.substr(_t+1),Ut=Ut.substr(0,_t)),kt&&(Ut==="00:00:00"||Ut==="00:00"?(Ut=Ot,Ot=""):Ut.length===8&&(Ut=Ut.replace(/:00$/,""))),Ot)if(St)Pt==="d"?Ut+=", "+Ot:Ut=Ot+(Ut?", "+Ut:"");else if(!He._inCalcTicks||He._prevDateHead!==Ot)He._prevDateHead=Ot,Ut+="
    "+Ot;else{var qt=wr(He),cn=He._trueSide||He.side;(!qt&&cn==="top"||qt&&cn==="bottom")&&(Ut+="
    ")}De.text=Ut}function Cn(He,De,St,kt,Pt){var Bt=He.dtick,Ut=De.x,Ot=He.tickformat,_t=typeof Bt=="string"&&Bt.charAt(0);if(Pt==="never"&&(Pt=""),kt&&_t!=="L"&&(Bt="L3",_t="L"),Ot||_t==="L")De.text=Ze(Math.pow(10,Ut),He,Pt,kt);else if(h(Bt)||_t==="D"&&i.mod(Ut+.01,1)<.1){var qt=Math.round(Ut),cn=Math.abs(qt),Qt=He.exponentformat;Qt==="power"||vt(Qt)&&$t(qt)?(qt===0?De.text=1:qt===1?De.text="10":De.text="10"+(qt>1?"":Q)+cn+"",De.fontSize*=1.25):(Qt==="e"||Qt==="E")&&cn>2?De.text="1"+Qt+(qt>0?"+":Q)+cn:(De.text=Ze(Math.pow(10,Ut),He,"","fakehover"),Bt==="D1"&&He._id.charAt(0)==="y"&&(De.dy-=De.fontSize/6))}else if(_t==="D")De.text=String(Math.round(Math.pow(10,i.mod(Ut,1)))),De.fontSize*=.75;else throw"unrecognized dtick "+String(Bt);if(He.dtick==="D1"){var nn=String(De.text).charAt(0);(nn==="0"||nn==="1")&&(He._id.charAt(0)==="y"?De.dx-=De.fontSize/4:(De.dy+=De.fontSize/2,De.dx+=(He.range[1]>He.range[0]?1:-1)*De.fontSize*(Ut<0?.5:.25)))}}function jn(He,De){var St=He._categories[Math.round(De.x)];St===void 0&&(St=""),De.text=String(St)}function Wn(He,De,St){var kt=Math.round(De.x),Pt=He._categories[kt]||[],Bt=Pt[1]===void 0?"":String(Pt[1]),Ut=Pt[0]===void 0?"":String(Pt[0]);St?De.text=Ut+" - "+Bt:(De.text=Bt,De.text2=Ut)}function wn(He,De,St,kt,Pt){Pt==="never"?Pt="":He.showexponent==="all"&&Math.abs(De.x/He.dtick)<1e-6&&(Pt="hide"),De.text=Ze(De.x,He,Pt,kt)}function lt(He,De,St,kt,Pt){if(He.thetaunit==="radians"&&!St){var Bt=De.x/180;if(Bt===0)De.text="0";else{var Ut=ft(Bt);if(Ut[1]>=100)De.text=Ze(i.deg2rad(De.x),He,Pt,kt);else{var Ot=De.x<0;Ut[1]===1?Ut[0]===1?De.text="π":De.text=Ut[0]+"π":De.text=["",Ut[0],"","⁄","",Ut[1],"","π"].join(""),Ot&&(De.text=Q+De.text)}}}else De.text=Ze(De.x,He,Pt,kt)}function ft(He){function De(Ot,_t){return Math.abs(Ot-_t)<=1e-6}function St(Ot,_t){return De(_t,0)?Ot:St(_t,Ot%_t)}function kt(Ot){for(var _t=1;!De(Math.round(Ot*_t)/_t,Ot);)_t*=10;return _t}var Pt=kt(He),Bt=He*Pt,Ut=Math.abs(St(Bt,Pt));return[Math.round(Bt/Ut),Math.round(Pt/Ut)]}var wt=["f","p","n","μ","m","","k","M","G","T"];function vt(He){return He==="SI"||He==="B"}function $t(He){return He>14||He<-15}function Ze(He,De,St,kt){var Pt=He<0,Bt=De._tickround,Ut=St||De.exponentformat||"B",Ot=De._tickexponent,_t=Oe.getTickFormat(De),qt=De.separatethousands;if(kt){var cn={exponentformat:Ut,minexponent:De.minexponent,dtick:De.showexponent==="none"?De.dtick:h(He)&&Math.abs(He)||1,range:De.showexponent==="none"?De.range.map(De.r2d):[0,He||1]};sn(cn),Bt=(Number(cn._tickround)||0)+4,Ot=cn._tickexponent,De.hoverformat&&(_t=De.hoverformat)}if(_t)return De._numFormat(_t)(He).replace(/-/g,Q);var Qt=Math.pow(10,-Bt)/2;if(Ut==="none"&&(Ot=0),He=Math.abs(He),He"+bn+"":Ut==="B"&&Ot===9?He+="B":vt(Ut)&&(He+=wt[Ot/3+5])}return Pt?Q+He:He}Oe.getTickFormat=function(He){var De;function St(_t){return typeof _t!="string"?_t:Number(_t.replace("M",""))*F}function kt(_t,qt){var cn=["L","D"];if(typeof _t==typeof qt){if(typeof _t=="number")return _t-qt;var Qt=cn.indexOf(_t.charAt(0)),nn=cn.indexOf(qt.charAt(0));return Qt===nn?Number(_t.replace(/(L|D)/g,""))-Number(qt.replace(/(L|D)/g,"")):Qt-nn}else return typeof _t=="number"?1:-1}function Pt(_t,qt,cn){var Qt=cn||function(bn){return bn},nn=qt[0],Sn=qt[1];return(!nn&&typeof nn!="number"||Qt(nn)<=Qt(_t))&&(!Sn&&typeof Sn!="number"||Qt(Sn)>=Qt(_t))}function Bt(_t,qt){var cn=qt[0]===null,Qt=qt[1]===null,nn=kt(_t,qt[0])>=0,Sn=kt(_t,qt[1])<=0;return(cn||nn)&&(Qt||Sn)}var Ut,Ot;if(He.tickformatstops&&He.tickformatstops.length>0)switch(He.type){case"date":case"linear":{for(De=0;De=0&&Pt.unshift(Pt.splice(cn,1).shift())}});var Ot={false:{left:0,right:0}};return i.syncOrAsync(Pt.map(function(_t){return function(){if(_t){var qt=Oe.getFromId(He,_t);St||(St={}),St.axShifts=Ot,St.overlayingShiftedAx=Ut;var cn=Oe.drawOne(He,qt,St);return qt._shiftPusher&&vo(qt,qt._fullDepth||0,Ot,!0),qt._r=qt.range.slice(),qt._rl=i.simpleMap(qt._r,qt.r2l),cn}}}))},Oe.drawOne=function(He,De,St){St=St||{};var kt=St.axShifts||{},Pt=St.overlayingShiftedAx||[],Bt,Ut,Ot;De.setScale();var _t=He._fullLayout,qt=De._id,cn=qt.charAt(0),Qt=Oe.counterLetter(qt),nn=_t._plots[De._mainSubplot];if(!nn)return;if(De._shiftPusher=De.autoshift||Pt.indexOf(De._id)!==-1||Pt.indexOf(De.overlaying)!==-1,De._shiftPusher&De.anchor==="free"){var Sn=De.linewidth/2||0;De.ticks==="inside"&&(Sn+=De.ticklen),vo(De,Sn,kt,!0),vo(De,De.shift||0,kt,!1)}(St.skipTitle!==!0||De._shift===void 0)&&(De._shift=Cr(De,kt));var bn=nn[cn+"axislayer"],gn=De._mainLinePosition,Qn=gn+=De._shift,Bn=De._mainMirrorPosition,Hr=De._vals=Oe.calcTicks(De),fr=[De.mirror,Qn,Bn].join("_");for(Bt=0;Bt0?Bo.bottom-Es:0,qi))));var Ls=0,cu=0;if(De._shiftPusher&&(Ls=Math.max(qi,Bo.height>0?li==="l"?Es-Bo.left:Bo.right-Es:0),De.title.text!==_t._dfltTitle[cn]&&(cu=(De._titleStandoff||0)+(De._titleScoot||0),li==="l"&&(cu+=un(De))),De._fullDepth=Math.max(Ls,cu)),De.automargin){Ks={x:0,y:0,r:0,l:0,t:0,b:0};var uu=[0,1],Vf=typeof De._shift=="number"?De._shift:0;if(cn==="x"){if(li==="b"?Ks[li]=De._depth:(Ks[li]=De._depth=Math.max(Bo.width>0?Es-Bo.top:0,qi),uu.reverse()),Bo.width>0){var Ma=Bo.right-(De._offset+De._length);Ma>0&&(Ks.xr=1,Ks.r=Ma);var Uf=De._offset-Bo.left;Uf>0&&(Ks.xl=0,Ks.l=Uf)}}else if(li==="l"?(De._depth=Math.max(Bo.height>0?Es-Bo.left:0,qi),Ks[li]=De._depth-Vf):(De._depth=Math.max(Bo.height>0?Bo.right-Es:0,qi),Ks[li]=De._depth+Vf,uu.reverse()),Bo.height>0){var gc=Bo.bottom-(De._offset+De._length);gc>0&&(Ks.yb=0,Ks.b=gc);var al=De._offset-Bo.top;al>0&&(Ks.yt=1,Ks.t=al)}Ks[Qt]=De.anchor==="free"?De.position:De._anchorAxis.domain[uu[0]],De.title.text!==_t._dfltTitle[cn]&&(Ks[li]+=un(De)+(De.title.standoff||0)),De.mirror&&De.anchor!=="free"&&(Bs={x:0,y:0,r:0,l:0,t:0,b:0},Bs[Rs]=De.linewidth,De.mirror&&De.mirror!==!0&&(Bs[Rs]+=qi),De.mirror===!0||De.mirror==="ticks"?Bs[Qt]=De._anchorAxis.domain[uu[1]]:(De.mirror==="all"||De.mirror==="allticks")&&(Bs[Qt]=[De._counterDomainMin,De._counterDomainMax][uu[1]]))}Ms&&(df=c.getComponentMethod("rangeslider","autoMarginOpts")(He,De)),typeof De.automargin=="string"&&(it(Ks,De.automargin),it(Bs,De.automargin)),l.autoMargin(He,Gn(De),Ks),l.autoMargin(He,Ir(De),Bs),l.autoMargin(He,Tr(De),df)}),i.syncOrAsync(Mi)}};function it(He,De){if(He){var St=Object.keys(X).reduce(function(kt,Pt){return De.indexOf(Pt)!==-1&&X[Pt].forEach(function(Bt){kt[Bt]=1}),kt},{});Object.keys(He).forEach(function(kt){St[kt]||(kt.length===1?He[kt]=0:delete He[kt])})}}function ht(He,De){var St=[],kt,Pt=function(Bt,Ut){var Ot=Bt.xbnd[Ut];Ot!==null&&St.push(i.extendFlat({},Bt,{x:Ot}))};if(De.length){for(kt=0;kt60?-.5*Va:He.side==="top"!==cn?-Va:0};else if(Kr==="y"){if(So=!cn&&cr==="left"||cn&&cr==="right",Vr=So?1:-1,cn&&(Vr*=-1),Bn=nn,Hr=Sn*Vr,fr=0,!cn&&Math.abs(qr)===90&&(qr===-90&&cr==="left"||qr===90&&cr==="right"?fr=$e:fr=.5),cn){var wa=h(qr)?+qr:0;if(wa!==0){var bo=i.deg2rad(wa);ar=Math.abs(Math.sin(bo))*$e*Vr,fr=0}}Qn.xFn=function(Zo){return Zo.dx+De-(Bn+Zo.fontSize*fr)*Vr+ar*Zo.fontSize},Qn.yFn=function(Zo){return Zo.dy+Hr+Zo.fontSize*Ce},Qn.anchorFn=function(Zo,oa){return h(oa)&&Math.abs(oa)===90?"middle":So?"end":"start"},Qn.heightFn=function(Zo,oa,Va){return He.side==="right"&&(oa*=-1),oa<-30?-Va:oa<30?-.5*Va:0}}return Qn};function Zt(He){return[He.text,He.x,He.axInfo,He.font,He.fontSize,He.fontColor].join("_")}Oe.drawTicks=function(He,De,St){St=St||{};var kt=De._id+"tick",Pt=[].concat(De.minor&&De.minor.ticks?St.vals.filter(function(Ut){return Ut.minor&&!Ut.noTick}):[]).concat(De.ticks?St.vals.filter(function(Ut){return!Ut.minor&&!Ut.noTick}):[]),Bt=St.layer.selectAll("path."+kt).data(Pt,Zt);Bt.exit().remove(),Bt.enter().append("path").classed(kt,1).classed("ticks",1).classed("crisp",St.crisp!==!1).each(function(Ut){return v.stroke(m.select(this),Ut.minor?De.minor.tickcolor:De.tickcolor)}).style("stroke-width",function(Ut){return x.crispRound(He,Ut.minor?De.minor.tickwidth:De.tickwidth,1)+"px"}).attr("d",St.path).style("display",null),ro(De,[ne]),Bt.attr("transform",St.transFn)},Oe.drawGrid=function(He,De,St){if(St=St||{},De.tickmode!=="sync"){var kt=De._id+"grid",Pt=De.minor&&De.minor.showgrid,Bt=Pt?St.vals.filter(function(Bn){return Bn.minor}):[],Ut=De.showgrid?St.vals.filter(function(Bn){return!Bn.minor}):[],Ot=St.counterAxis;if(Ot&&Oe.shouldShowZeroLine(He,De,Ot))for(var _t=De.tickmode==="array",qt=0;qt=0;bn--){var gn=bn?nn:Sn;if(gn){var Qn=gn.selectAll("path."+kt).data(bn?Ut:Bt,Zt);Qn.exit().remove(),Qn.enter().append("path").classed(kt,1).classed("crisp",St.crisp!==!1),Qn.attr("transform",St.transFn).attr("d",St.path).each(function(Bn){return v.stroke(m.select(this),Bn.minor?De.minor.gridcolor:De.gridcolor||"#ddd")}).style("stroke-dasharray",function(Bn){return x.dashStyle(Bn.minor?De.minor.griddash:De.griddash,Bn.minor?De.minor.gridwidth:De.gridwidth)}).style("stroke-width",function(Bn){return(Bn.minor?Qt:De._gw)+"px"}).style("display",null),typeof St.path=="function"&&Qn.attr("d",St.path)}}ro(De,[Se,ce])}},Oe.drawZeroLine=function(He,De,St){St=St||St;var kt=De._id+"zl",Pt=Oe.shouldShowZeroLine(He,De,St.counterAxis),Bt=St.layer.selectAll("path."+kt).data(Pt?[{x:0,id:De._id}]:[]);Bt.exit().remove(),Bt.enter().append("path").classed(kt,1).classed("zl",1).classed("crisp",St.crisp!==!1).each(function(){St.layer.selectAll("path").sort(function(Ut,Ot){return we(Ut.id,Ot.id)})}),Bt.attr("transform",St.transFn).attr("d",St.path).call(v.stroke,De.zerolinecolor||v.defaultLine).style("stroke-width",x.crispRound(He,De.zerolinewidth,De._gw||1)+"px").style("display",null),ro(De,[ge])},Oe.drawLabels=function(He,De,St){St=St||{};var kt=He._fullLayout,Pt=De._id,Bt=Pt.charAt(0),Ut=St.cls||Pt+"tick",Ot=St.vals.filter(function(Vr){return Vr.text}),_t=St.labelFns,qt=St.secondary?0:De.tickangle,cn=(De._prevTickAngles||{})[Ut],Qt=St.layer.selectAll("g."+Ut).data(De.showticklabels?Ot:[],Zt),nn=[];Qt.enter().append("g").classed(Ut,1).append("text").attr("text-anchor","middle").each(function(Vr){var ar=m.select(this),cr=He._promises.length;ar.call(d.positionText,_t.xFn(Vr),_t.yFn(Vr)).call(x.font,Vr.font,Vr.fontSize,Vr.fontColor).text(Vr.text).call(d.convertToTspans,He),He._promises[cr]?nn.push(He._promises.pop().then(function(){Sn(ar,qt)})):Sn(ar,qt)}),ro(De,[fe]),Qt.exit().remove(),St.repositionOnUpdate&&Qt.each(function(Vr){m.select(this).select("text").call(d.positionText,_t.xFn(Vr),_t.yFn(Vr))});function Sn(Vr,ar){Vr.each(function(cr){var Kr=m.select(this),qr=Kr.select(".text-math-group"),So=_t.anchorFn(cr,ar),wa=St.transFn.call(Kr.node(),cr)+(h(ar)&&+ar!=0?" rotate("+ar+","+_t.xFn(cr)+","+(_t.yFn(cr)-cr.fontSize/2)+")":""),bo=d.lineCount(Kr),Zo=ke*cr.fontSize,oa=_t.heightFn(cr,h(ar)?+ar:0,(bo-1)*Zo);if(oa&&(wa+=u(0,oa)),qr.empty()){var Va=Kr.select("text");Va.attr({transform:wa,"text-anchor":So}),Va.style("opacity",1),De._adjustTickLabelsOverflow&&De._adjustTickLabelsOverflow()}else{var Yo=x.bBox(qr.node()).width,Fa=Yo*{end:-.5,start:.5}[So];qr.attr("transform",wa+u(Fa,0))}})}De._adjustTickLabelsOverflow=function(){var Vr=De.ticklabeloverflow;if(!(!Vr||Vr==="allow")){var ar=Vr.indexOf("hide")!==-1,cr=De._id.charAt(0)==="x",Kr=0,qr=cr?He._fullLayout.width:He._fullLayout.height;if(Vr.indexOf("domain")!==-1){var So=i.simpleMap(De.range,De.r2l);Kr=De.l2p(So[0])+De._offset,qr=De.l2p(So[1])+De._offset}var wa=Math.min(Kr,qr),bo=Math.max(Kr,qr),Zo=De.side,oa=1/0,Va=-1/0;Qt.each(function(Zl){var Ys=m.select(this),Ec=Ys.select(".text-math-group");if(Ec.empty()){var ks=x.bBox(Ys.node()),Wa=0;cr?(ks.right>bo||ks.leftbo||ks.top+(De.tickangle?0:Zl.fontSize/4)De["_visibleLabelMin_"+So._id]?Zl.style("display","none"):bo.K==="tick"&&!wa&&Zl.style("display",null)})})})})},Sn(Qt,cn+1?cn:qt);function bn(){return nn.length&&Promise.all(nn)}var gn=null;function Qn(){if(Sn(Qt,qt),Ot.length&&Bt==="x"&&!h(qt)&&(De.type!=="log"||String(De.dtick).charAt(0)!=="D")){gn=0;var Vr=0,ar=[],cr;if(Qt.each(function(ks){Vr=Math.max(Vr,ks.fontSize);var Wa=De.l2p(ks.x),ss=pr(this),Ya=x.bBox(ss.node());ar.push({top:0,bottom:10,height:10,left:Wa-Ya.width/2,right:Wa+Ya.width/2+2,width:Ya.width+2})}),(De.tickson==="boundaries"||De.showdividers)&&!St.secondary){var Kr=2;for(De.ticks&&(Kr+=De.tickwidth/2),cr=0;cr1&&St1)for(Pt=1;Pt=Pt.min&&Hek*2}function C(S){return Math.max(1,(S-1)/1e3)}function _(S,O){for(var D=S.length,N=C(D),M=0,k=0,R={},F=0;FM*2}function $(S){return c(S[0])&&c(S[1])}},1453:function(L,A,s){var m=s(2770),h=s(3972),l=s(1828),c=s(4467),i=s(5501),u=s(3838),d=s(6218),g=s(8701),v=s(6115),x=s(9426),C=s(5258),_=s(2128),$=s(3608),S=s(1994),O=s(5555).WEEKDAY_PATTERN,D=s(5555).HOUR_PATTERN;L.exports=function(F,H,j,P,ee){var J=P.letter,K=P.font||{},ae=P.splomStash||{},Q=j("visible",!P.visibleDflt),he=H._template||{},ge=H.type||he.type||"-",Se;if(ge==="date"){var ce=h.getComponentMethod("calendars","handleDefaults");ce(F,H,"calendar",P.calendar),P.noTicklabelmode||(Se=j("ticklabelmode"))}var ne="";(!P.noTicklabelposition||ge==="multicategory")&&(ne=l.coerce(F,H,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:Se==="period"?["outside","inside"]:J==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),P.noTicklabeloverflow||j("ticklabeloverflow",ne.indexOf("inside")!==-1?"hide past domain":ge==="category"||ge==="multicategory"?"allow":"hide past div"),S(H,ee),$(F,H,j,P),C(F,H,j,P),ge!=="category"&&!P.noHover&&j("hoverformat");var fe=j("color"),X=fe!==u.color.dflt?fe:K.color,ye=ae.label||ee._dfltTitle[J];if(x(F,H,j,ge,P),!Q)return H;j("title.text",ye),l.coerceFont(j,"title.font",{family:K.family,size:l.bigFont(K.size),color:X}),d(F,H,j,ge);var Ce=P.hasMinor;if(Ce&&(c.newContainer(H,"minor"),d(F,H,j,ge,{isMinor:!0})),v(F,H,j,ge,P),g(F,H,j,P),Ce){var $e=P.isMinor;P.isMinor=!0,g(F,H,j,P),P.isMinor=$e}_(F,H,j,{dfltColor:fe,bgColor:P.bgColor,showGrid:P.showGrid,hasMinor:Ce,attributes:u}),Ce&&!H.minor.ticks&&!H.minor.showgrid&&delete H.minor,(H.showline||H.ticks)&&j("mirror");var ke=ge==="multicategory";if(!P.noTickson&&(ge==="category"||ke)&&(H.ticks||H.showgrid)){var Ne;ke&&(Ne="boundaries");var Ve=j("tickson",Ne);Ve==="boundaries"&&delete H.ticklabelposition}if(ke){var Oe=j("showdividers");Oe&&(j("dividercolor"),j("dividerwidth"))}if(ge==="date")if(i(F,H,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:N}),!H.rangebreaks.length)delete H.rangebreaks;else{for(var Fe=0;Fe=2){var J="",K,ae;if(ee.length===2){for(K=0;K<2;K++)if(ae=k(ee[K]),ae){J=O;break}}var Q=j("pattern",J);if(Q===O)for(K=0;K<2;K++)ae=k(ee[K]),ae&&(F.bounds[K]=ee[K]=ae-1);if(Q)for(K=0;K<2;K++)switch(ae=ee[K],Q){case O:if(!m(ae)){F.enabled=!1;return}if(ae=+ae,ae!==Math.floor(ae)||ae<0||ae>=7){F.enabled=!1;return}F.bounds[K]=ee[K]=ae;break;case D:if(!m(ae)){F.enabled=!1;return}if(ae=+ae,ae<0||ae>24){F.enabled=!1;return}F.bounds[K]=ee[K]=ae;break}if(H.autorange===!1){var he=H.range;if(he[0]he[1]){F.enabled=!1;return}}else if(ee[0]>he[0]&&ee[1]d?1:-1:+(c.substr(1)||1)-+(i.substr(1)||1)},A.ref2id=function(c){return/^[xyz]/.test(c)?c.split(" ")[0]:!1};function l(c,i){if(i&&i.length){for(var u=0;u0,d;u&&(d="array");var g=l("categoryorder",d),v;g==="array"&&(v=l("categoryarray")),!u&&g==="array"&&(g=h.categoryorder="trace"),g==="trace"?h._initialCategories=[]:g==="array"?h._initialCategories=v.slice():(v=A(h,c).sort(),g==="category ascending"?h._initialCategories=v:g==="category descending"&&(h._initialCategories=v.reverse()))}}},6287:function(L,A,s){var m=s(2770),h=s(1828),l=s(606),c=l.ONEDAY,i=l.ONEWEEK;A.dtick=function(u,d){var g=d==="log",v=d==="date",x=d==="category",C=v?c:1;if(!u)return C;if(m(u))return u=Number(u),u<=0?C:x?Math.max(1,Math.round(u)):v?Math.max(.1,u):u;if(typeof u!="string"||!(v||g))return C;var _=u.charAt(0),$=u.substr(1);return $=m($)?Number($):0,$<=0||!(v&&_==="M"&&$===Math.round($)||g&&_==="L"||g&&_==="D"&&($===1||$===2))?C:u},A.tick0=function(u,d,g,v){if(d==="date")return h.cleanDate(u,h.dateTick0(g,v%i===0?1:0));if(!(v==="D1"||v==="D2"))return m(u)?Number(u):0}},5555:function(L,A,s){var m=s(587).counter;L.exports={idRegex:{x:m("x","( domain)?"),y:m("y","( domain)?")},attrRegex:m("[xy]axis"),xAxisMatch:m("xaxis"),yAxisMatch:m("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},9082:function(L,A,s){var m=s(1828),h=s(1739),l=s(1675).id2name,c=s(3838),i=s(2449),u=s(1994),d=s(606).ALMOST_EQUAL,g=s(8783).FROM_BL;A.handleDefaults=function(D,N,M){var k=M.axIds,R=M.axHasImage,F=N._axisConstraintGroups=[],H=N._axisMatchGroups=[],j,P,ee,J,K,ae,Q,he;for(j=0;jF?M.substr(F):k.substr(R))+H}function S(D,N){for(var M=N._size,k=M.h/M.w,R={},F=Object.keys(D),H=0;Hd*he&&!ne)){for(F=0;FFe&&deVe&&(Ve=de);var Re=(Ve-Ne)/(2*Oe);K/=Re,Ne=P.l2r(Ne),Ve=P.l2r(Ve),P.range=P._input.range=Ce<$e?[Ne,Ve]:[Ve,Ne]}O(P,K)}}}},A.getAxisGroup=function(N,M){for(var k=N._axisMatchGroups,R=0;R=0){qt._fullLayout._deactivateShape(qt);return}var cn=qt._fullLayout.clickmode;if(Fe(qt),Ot===2&&!gt&&De(),qe)cn.indexOf("select")>-1&&ee(_t,qt,Yt,Nt,Me.id,Et),cn.indexOf("event")>-1&&C.click(qt,_t,Me.id);else if(Ot===1&>){var Qt=dt?tt:ut,nn=dt==="s"||Ge==="w"?0:1,Sn=Qt._name+".range["+nn+"]",bn=fe(Qt,nn),gn="left",Qn="middle";if(Qt.fixedrange)return;dt?(Qn=dt==="n"?"top":"bottom",Qt.side==="right"&&(gn="right")):Ge==="e"&&(gn="right"),qt._context.showAxisRangeEntryBoxes&&m.select(Tt).call(g.makeEditable,{gd:qt,immediate:!0,background:qt._fullLayout.paper_bgcolor,text:String(bn),fill:Qt.tickfont?Qt.tickfont.color:"#444",horizontalAlign:gn,verticalAlign:Qn}).on("edit",function(Bn){var Hr=Qt.d2r(Bn);Hr!==void 0&&u.call("_guiRelayout",qt,Sn,Hr)})}}S.init(Et);var Zt,Dt,un,Un,tr,Er,zt,pr,Gn,Ir;function Tr(Ot,_t,qt){var cn=Tt.getBoundingClientRect();Zt=_t-cn.left,Dt=qt-cn.top,de._fullLayout._calcInverseTransform(de);var Qt=h.apply3DTransform(de._fullLayout._invTransform)(Zt,Dt);Zt=Qt[0],Dt=Qt[1],un={l:Zt,r:Zt,w:0,t:Dt,b:Dt,h:0},Un=de._hmpixcount?de._hmlumcount/de._hmpixcount:c(de._fullLayout.plot_bgcolor).getLuminance(),tr="M0,0H"+_n+"V"+sn+"H0V0",Er=!1,zt="xy",Ir=!1,pr=ke(Xe,Un,Ft,pn,tr),Gn=Ne(Xe,Ft,pn)}function rr(Ot,_t){if(de._transitioningWithDuration)return!1;var qt=Math.max(0,Math.min(_n,Ze*Ot+Zt)),cn=Math.max(0,Math.min(sn,it*_t+Dt)),Qt=Math.abs(qt-Zt),nn=Math.abs(cn-Dt);un.l=Math.min(Zt,qt),un.r=Math.max(Zt,qt),un.t=Math.min(Dt,cn),un.b=Math.max(Dt,cn);function Sn(){zt="",un.r=un.l,un.t=un.b,Gn.attr("d","M0,0Z")}if(Zn.isSubplotConstrained)Qt>Q||nn>Q?(zt="xy",Qt/_n>nn/sn?(nn=Qt*sn/_n,Dt>cn?un.t=Dt-nn:un.b=Dt+nn):(Qt=nn*_n/sn,Zt>qt?un.l=Zt-Qt:un.r=Zt+Qt),Gn.attr("d",ue(un))):Sn();else if(an.isSubplotConstrained)if(Qt>Q||nn>Q){zt="xy";var bn=Math.min(un.l/_n,(sn-un.b)/sn),gn=Math.max(un.r/_n,(sn-un.t)/sn);un.l=bn*_n,un.r=gn*_n,un.b=(1-bn)*sn,un.t=(1-gn)*sn,Gn.attr("d",ue(un))}else Sn();else!jn||nn0){var Bn;if(an.isSubplotConstrained||!Cn&&jn.length===1){for(Bn=0;Bn1&&(Sn.maxallowed!==void 0&&wn===(Sn.range[0]1&&(bn.maxallowed!==void 0&<===(bn.range[0]=0?Math.min(de,.9):1/(1/Math.max(de,-.3)+3.222))}function $e(de,Me,Re){return de?de==="nsew"?Re?"":Me==="pan"?"move":"crosshair":de.toLowerCase()+"-resize":"pointer"}function ke(de,Me,Re,ze,We){return de.append("path").attr("class","zoombox").style({fill:Me>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",d(Re,ze)).attr("d",We+"Z")}function Ne(de,Me,Re){return de.append("path").attr("class","zoombox-corners").style({fill:v.background,stroke:v.defaultLine,"stroke-width":1,opacity:0}).attr("transform",d(Me,Re)).attr("d","M0,0Z")}function Ve(de,Me,Re,ze,We,ot){de.attr("d",ze+"M"+Re.l+","+Re.t+"v"+Re.h+"h"+Re.w+"v-"+Re.h+"h-"+Re.w+"Z"),Oe(de,Me,We,ot)}function Oe(de,Me,Re,ze){Re||(de.transition().style("fill",ze>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),Me.transition().style("opacity",1).duration(200))}function Fe(de){m.select(de).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ie(de){he&&de.data&&de._context.showTips&&(h.notifier(h._(de,"Double-click to zoom back out"),"long"),he=!1)}function we(de,Me){return"M"+(de.l-.5)+","+(Me-Q-.5)+"h-3v"+(2*Q+1)+"h3ZM"+(de.r+.5)+","+(Me-Q-.5)+"h3v"+(2*Q+1)+"h-3Z"}function se(de,Me){return"M"+(Me-Q-.5)+","+(de.t-.5)+"v-3h"+(2*Q+1)+"v3ZM"+(Me-Q-.5)+","+(de.b+.5)+"v3h"+(2*Q+1)+"v-3Z"}function ue(de){var Me=Math.floor(Math.min(de.b-de.t,de.r-de.l,Q)/2);return"M"+(de.l-3.5)+","+(de.t-.5+Me)+"h3v"+-Me+"h"+Me+"v-3h-"+(Me+3)+"ZM"+(de.r+3.5)+","+(de.t-.5+Me)+"h-3v"+-Me+"h"+-Me+"v-3h"+(Me+3)+"ZM"+(de.r+3.5)+","+(de.b+.5-Me)+"h-3v"+Me+"h"+-Me+"v3h"+(Me+3)+"ZM"+(de.l-3.5)+","+(de.b+.5-Me)+"h3v"+Me+"h"+Me+"v3h-"+(Me+3)+"Z"}function pe(de,Me,Re,ze,We){for(var ot=!1,dt={},Ge={},Xe,qe,gt,ut,tt=(We||{}).xaHash,Ct=(We||{}).yaHash,Gt=0;Gtj[1]-.000244140625&&(i.domain=S),h.noneOrAll(c.domain,i.domain,S),i.tickmode==="sync"&&(i.tickmode="auto")}return u("layer"),i}},9426:function(L,A,s){var m=s(9652);L.exports=function(l,c,i,u,d){d||(d={});var g=d.tickSuffixDflt,v=m(l),x=i("tickprefix");x&&i("showtickprefix",v);var C=i("ticksuffix",g);C&&i("showticksuffix",v)}},3608:function(L,A,s){var m=s(3074);L.exports=function(l,c,i,u){var d=c._template||{},g=c.type||d.type||"-";i("minallowed"),i("maxallowed");var v=i("range"),x=c.getAutorangeDflt(v,u),C=i("autorange",x),_;v&&(v[0]===null&&v[1]===null||(v[0]===null||v[1]===null)&&(C==="reversed"||C===!0)||v[0]!==null&&(C==="min"||C==="max reversed")||v[1]!==null&&(C==="max"||C==="min reversed"))&&(v=void 0,delete c.range,c.autorange=!0,_=!0),_||(x=c.getAutorangeDflt(v,u),C=i("autorange",x)),C&&(m(i,C,v),(g==="linear"||g==="-")&&i("rangemode")),c.cleanRange()}},2449:function(L,A,s){var m=s(8783).FROM_BL;L.exports=function(l,c,i){i===void 0&&(i=m[l.constraintoward||"center"]);var u=[l.r2l(l.range[0]),l.r2l(l.range[1])],d=u[0]+(u[1]-u[0])*i;l.range=l._input.range=[l.l2r(d+(u[0]-d)*c),l.l2r(d+(u[1]-d)*c)],l.setScale()}},1994:function(L,A,s){var m=s(9898),h=s(4096).g0,l=s(1828),c=l.numberFormat,i=s(2770),u=l.cleanNumber,d=l.ms2DateTime,g=l.dateTime2ms,v=l.ensureNumber,x=l.isArrayOrTypedArray,C=s(606),_=C.FP_SAFE,$=C.BADNUM,S=C.LOG_CLIP,O=C.ONEWEEK,D=C.ONEDAY,N=C.ONEHOUR,M=C.ONEMIN,k=C.ONESEC,R=s(1675),F=s(5555),H=F.HOUR_PATTERN,j=F.WEEKDAY_PATTERN;function P(J){return Math.pow(10,J)}function ee(J){return J!=null}L.exports=function(K,ae){ae=ae||{};var Q=K._id||"x",he=Q.charAt(0);function ge(we,se){if(we>0)return Math.log(we)/Math.LN10;if(we<=0&&se&&K.range&&K.range.length===2){var ue=K.range[0],pe=K.range[1];return .5*(ue+pe-2*S*Math.abs(ue-pe))}else return $}function Se(we,se,ue,pe){if((pe||{}).msUTC&&i(we))return+we;var le=g(we,ue||K.calendar);if(le===$)if(i(we)){we=+we;var Te=Math.floor(l.mod(we+.05,1)*10),de=Math.round(we-Te/10);le=g(new Date(de))+Te/10}else return $;return le}function ce(we,se,ue){return d(we,se,ue||K.calendar)}function ne(we){return K._categories[Math.round(we)]}function fe(we){if(ee(we)){if(K._categoriesMap===void 0&&(K._categoriesMap={}),K._categoriesMap[we]!==void 0)return K._categoriesMap[we];K._categories.push(typeof we=="number"?String(we):we);var se=K._categories.length-1;return K._categoriesMap[we]=se,se}return $}function X(we,se){for(var ue=new Array(se),pe=0;peK.range[1]&&(ue=!ue);for(var pe=ue?-1:1,le=pe*we,Te=0,de=0;deRe)Te=de+1;else{Te=le<(Me+Re)/2?de:de+1;break}}var ze=K._B[Te]||0;return isFinite(ze)?ke(we,K._m2,ze):0},Oe=function(we){var se=K._rangebreaks.length;if(!se)return Ne(we,K._m,K._b);for(var ue=0,pe=0;peK._rangebreaks[pe].pmax&&(ue=pe+1);return Ne(we,K._m2,K._B[ue])}}K.c2l=K.type==="log"?ge:v,K.l2c=K.type==="log"?P:v,K.l2p=Ve,K.p2l=Oe,K.c2p=K.type==="log"?function(we,se){return Ve(ge(we,se))}:Ve,K.p2c=K.type==="log"?function(we){return P(Oe(we))}:Oe,["linear","-"].indexOf(K.type)!==-1?(K.d2r=K.r2d=K.d2c=K.r2c=K.d2l=K.r2l=u,K.c2d=K.c2r=K.l2d=K.l2r=v,K.d2p=K.r2p=function(we){return K.l2p(u(we))},K.p2d=K.p2r=Oe,K.cleanPos=v):K.type==="log"?(K.d2r=K.d2l=function(we,se){return ge(u(we),se)},K.r2d=K.r2c=function(we){return P(u(we))},K.d2c=K.r2l=u,K.c2d=K.l2r=v,K.c2r=ge,K.l2d=P,K.d2p=function(we,se){return K.l2p(K.d2r(we,se))},K.p2d=function(we){return P(Oe(we))},K.r2p=function(we){return K.l2p(u(we))},K.p2r=Oe,K.cleanPos=v):K.type==="date"?(K.d2r=K.r2d=l.identity,K.d2c=K.r2c=K.d2l=K.r2l=Se,K.c2d=K.c2r=K.l2d=K.l2r=ce,K.d2p=K.r2p=function(we,se,ue){return K.l2p(Se(we,0,ue))},K.p2d=K.p2r=function(we,se,ue){return ce(Oe(we),se,ue)},K.cleanPos=function(we){return l.cleanDate(we,$,K.calendar)}):K.type==="category"?(K.d2c=K.d2l=fe,K.r2d=K.c2d=K.l2d=ne,K.d2r=K.d2l_noadd=Ce,K.r2c=function(we){var se=$e(we);return se!==void 0?se:K.fraction2r(.5)},K.l2r=K.c2r=v,K.r2l=$e,K.d2p=function(we){return K.l2p(K.r2c(we))},K.p2d=function(we){return ne(Oe(we))},K.r2p=K.d2p,K.p2r=Oe,K.cleanPos=function(we){return typeof we=="string"&&we!==""?we:v(we)}):K.type==="multicategory"&&(K.r2d=K.c2d=K.l2d=ne,K.d2r=K.d2l_noadd=Ce,K.r2c=function(we){var se=Ce(we);return se!==void 0?se:K.fraction2r(.5)},K.r2c_just_indices=ye,K.l2r=K.c2r=v,K.r2l=Ce,K.d2p=function(we){return K.l2p(K.r2c(we))},K.p2d=function(we){return ne(Oe(we))},K.r2p=K.d2p,K.p2r=Oe,K.cleanPos=function(we){return Array.isArray(we)||typeof we=="string"&&we!==""?we:v(we)},K.setupMultiCategory=function(we){var se=K._traceIndices,ue,pe,le=K._matchGroup;if(le&&K._categories.length===0){for(var Te in le)if(Te!==Q){var de=ae[R.id2name(Te)];se=se.concat(de._traceIndices)}}var Me=[[0,{}],[0,{}]],Re=[];for(ue=0;uede[1]&&(pe[Te?0:1]=ue)}},K.cleanRange=function(we,se){K._cleanRange(we,se),K.limitRange(we)},K._cleanRange=function(we,se){se||(se={}),we||(we="range");var ue=l.nestedProperty(K,we).get(),pe,le;if(K.type==="date"?le=l.dfltRange(K.calendar):he==="y"?le=F.DFLTRANGEY:K._name==="realaxis"?le=[0,1]:le=se.dfltRange||F.DFLTRANGEX,le=le.slice(),(K.rangemode==="tozero"||K.rangemode==="nonnegative")&&(le[0]=0),!ue||ue.length!==2){l.nestedProperty(K,we).set(le);return}var Te=ue[0]===null,de=ue[1]===null;for(K.type==="date"&&!K.autorange&&(ue[0]=l.cleanDate(ue[0],$,K.calendar),ue[1]=l.cleanDate(ue[1],$,K.calendar)),pe=0;pe<2;pe++)if(K.type==="date"){if(!l.isDateTime(ue[pe],K.calendar)){K[we]=le;break}if(K.r2l(ue[0])===K.r2l(ue[1])){var Me=l.constrain(K.r2l(ue[0]),l.MIN_MS+1e3,l.MAX_MS-1e3);ue[0]=K.l2r(Me-1e3),ue[1]=K.l2r(Me+1e3);break}}else{if(!i(ue[pe]))if(!(Te||de)&&i(ue[1-pe]))ue[pe]=ue[1-pe]*(pe?10:.1);else{K[we]=le;break}if(ue[pe]<-_?ue[pe]=-_:ue[pe]>_&&(ue[pe]=_),ue[0]===ue[1]){var Re=Math.max(1,Math.abs(ue[0]*1e-6));ue[0]-=Re,ue[1]+=Re}}},K.setScale=function(we){var se=ae._size;if(K.overlaying){var ue=R.getFromId({_fullLayout:ae},K.overlaying);K.domain=ue.domain}var pe=we&&K._r?"_r":"range",le=K.calendar;K.cleanRange(pe);var Te=K.r2l(K[pe][0],le),de=K.r2l(K[pe][1],le),Me=he==="y";if(Me?(K._offset=se.t+(1-K.domain[1])*se.h,K._length=se.h*(K.domain[1]-K.domain[0]),K._m=K._length/(Te-de),K._b=-K._m*de):(K._offset=se.l+K.domain[0]*se.w,K._length=se.w*(K.domain[1]-K.domain[0]),K._m=K._length/(de-Te),K._b=-K._m*Te),K._rangebreaks=[],K._lBreaks=0,K._m2=0,K._B=[],K.rangebreaks){var Re,ze;if(K._rangebreaks=K.locateBreaks(Math.min(Te,de),Math.max(Te,de)),K._rangebreaks.length){for(Re=0;Rede&&(We=!We),We&&K._rangebreaks.reverse();var ot=We?-1:1;for(K._m2=ot*K._length/(Math.abs(de-Te)-K._lBreaks),K._B.push(-K._m2*(Me?de:Te)),Re=0;Rele&&(le+=7,Tele&&(le+=24,Te=pe&&Te=pe&&we=Nt.min&&(ttNt.max&&(Nt.max=Ct),Gt=!1)}Gt&&de.push({min:tt,max:Ct})}};for(ue=0;ue rect").call(c.setTranslate,0,0).call(c.setScale,1,1),H.plot.call(c.setTranslate,j._offset,P._offset).call(c.setScale,1,1);var ee=H.plot.selectAll(".scatterlayer .trace");ee.selectAll(".point").call(c.setPointGroupScale,1,1),ee.selectAll(".textpoint").call(c.setTextPointsScale,1,1),ee.call(c.hideOutsideRangePoints,H)}function $(H,j){var P=H.plotinfo,ee=P.xaxis,J=P.yaxis,K=ee._length,ae=J._length,Q=!!H.xr1,he=!!H.yr1,ge=[];if(Q){var Se=l.simpleMap(H.xr0,ee.r2l),ce=l.simpleMap(H.xr1,ee.r2l),ne=Se[1]-Se[0],fe=ce[1]-ce[0];ge[0]=(Se[0]*(1-j)+j*ce[0]-Se[0])/(Se[1]-Se[0])*K,ge[2]=K*(1-j+j*fe/ne),ee.range[0]=ee.l2r(Se[0]*(1-j)+j*ce[0]),ee.range[1]=ee.l2r(Se[1]*(1-j)+j*ce[1])}else ge[0]=0,ge[2]=K;if(he){var X=l.simpleMap(H.yr0,J.r2l),ye=l.simpleMap(H.yr1,J.r2l),Ce=X[1]-X[0],$e=ye[1]-ye[0];ge[1]=(X[1]*(1-j)+j*ye[1]-X[1])/(X[0]-X[1])*ae,ge[3]=ae*(1-j+j*$e/Ce),J.range[0]=ee.l2r(X[0]*(1-j)+j*ye[0]),J.range[1]=J.l2r(X[1]*(1-j)+j*ye[1])}else ge[1]=0,ge[3]=ae;i.drawOne(d,ee,{skipTitle:!0}),i.drawOne(d,J,{skipTitle:!0}),i.redrawComponents(d,[ee._id,J._id]);var ke=Q?K/ge[2]:1,Ne=he?ae/ge[3]:1,Ve=Q?ge[0]:0,Oe=he?ge[1]:0,Fe=Q?ge[0]/ge[2]*K:0,ie=he?ge[1]/ge[3]*ae:0,we=ee._offset-Fe,se=J._offset-ie;P.clipRect.call(c.setTranslate,Ve,Oe).call(c.setScale,1/ke,1/Ne),P.plot.call(c.setTranslate,we,se).call(c.setScale,ke,Ne),c.setPointGroupScale(P.zoomScalePts,1/ke,1/Ne),c.setTextPointsScale(P.zoomScaleTxt,1/ke,1/Ne)}var S;x&&(S=x());function O(){for(var H={},j=0;jv.duration?(O(),k=window.cancelAnimationFrame(F)):k=window.requestAnimationFrame(F)}return N=Date.now(),k=window.requestAnimationFrame(F),Promise.resolve()}},951:function(L,A,s){var m=s(3972).traceIs,h=s(4322);L.exports=function(g,v,x,C){x("autotypenumbers",C.autotypenumbersDflt);var _=x("type",(C.splomStash||{}).type);_==="-"&&(l(v,C.data),v.type==="-"?v.type="linear":g.type=v.type)};function l(d,g){if(d.type==="-"){var v=d._id,x=v.charAt(0),C;v.indexOf("scene")!==-1&&(v=x);var _=c(g,v,x);if(_){if(_.type==="histogram"&&x==={v:"y",h:"x"}[_.orientation||"v"]){d.type="linear";return}var $=x+"calendar",S=_[$],O={noMultiCategory:!m(_,"cartesian")||m(_,"noMultiCategory")};if(_.type==="box"&&_._hasPreCompStats&&x==={h:"x",v:"y"}[_.orientation||"v"]&&(O.noMultiCategory=!0),O.autotypenumbers=d.autotypenumbers,u(_,x)){var D=i(_),N=[];for(C=0;C0&&(C["_"+v+"axes"]||{})[g])return C;if((C[v+"axis"]||v)===g){if(u(C,v))return C;if((C[v]||[]).length||C[v+"0"])return C}}}function i(d){return{v:"x",h:"y"}[d.orientation||"v"]}function u(d,g){var v=i(d),x=m(d,"box-violin"),C=m(d._fullInput||{},"candlestick");return x&&!C&&g===v&&d[v]===void 0&&d[v+"0"]===void 0}},1137:function(L,A,s){var m=s(3972),h=s(1828);A.manageCommandObserver=function(g,v,x,C){var _={},$=!0;v&&v._commandObserver&&(_=v._commandObserver),_.cache||(_.cache={}),_.lookupTable={};var S=A.hasSimpleAPICommandBindings(g,x,_.lookupTable);if(v&&v._commandObserver){if(S)return _;if(v._commandObserver.remove)return v._commandObserver.remove(),v._commandObserver=null,_}if(S){l(g,S,_.cache),_.check=function(){if($){var M=l(g,S,_.cache);return M.changed&&C&&_.lookupTable[M.value]!==void 0&&(_.disable(),Promise.resolve(C({value:M.value,type:S.type,prop:S.prop,traces:S.traces,index:_.lookupTable[M.value]})).then(_.enable,_.enable)),M.changed}};for(var O=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],D=0;D0?".":"")+_;h.isPlainObject($)?d($,v,S,C+1):v(S,_,$)}})}},7670:function(L,A,s){var m=s(1426).extendFlat;A.Y=function(h,l){h=h||{},l=l||{};var c={valType:"info_array",editType:h.editType,items:[{valType:"number",min:0,max:1,editType:h.editType},{valType:"number",min:0,max:1,editType:h.editType}],dflt:[0,1]};h.name&&h.name+"",h.trace,l.description&&""+l.description;var i={x:m({},c,{}),y:m({},c,{}),editType:h.editType};return h.noGridCell||(i.row={valType:"integer",min:0,dflt:0,editType:h.editType},i.column={valType:"integer",min:0,dflt:0,editType:h.editType}),i},A.c=function(h,l,c,i){var u=i&&i.x||[0,1],d=i&&i.y||[0,1],g=l.grid;if(g){var v=c("domain.column");v!==void 0&&(v=we.width-20?(pe["text-anchor"]="start",pe.x=5):(pe["text-anchor"]="end",pe.x=we._paper.attr("width")-7),se.attr(pe);var le=se.select(".js-link-to-tool"),Te=se.select(".js-link-spacer"),de=se.select(".js-sourcelinks");ie._context.showSources&&ie._context.showSources(ie),ie._context.showLink&&H(ie,le),Te.text(le.text()&&de.text()?" - ":"")}};function H(ie,we){we.text("");var se=we.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(ie._context.linkText+" "+String.fromCharCode(187));if(ie._context.sendData)se.on("click",function(){k.sendDataToCloud(ie)});else{var ue=window.location.pathname.split("/"),pe=window.location.search;se.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+ue[2].split(".")[0]+"/"+ue[1]+pe})}}k.sendDataToCloud=function(ie){var we=(window.PLOTLYENV||{}).BASE_URL||ie._context.plotlyServerURL;if(we){ie.emit("plotly_beforeexport");var se=m.select(ie).append("div").attr("id","hiddenform").style("display","none"),ue=se.append("form").attr({action:we+"/external",method:"post",target:"_blank"}),pe=ue.append("input").attr({type:"text",name:"data"});return pe.node().value=k.graphJson(ie,!1,"keepdata"),ue.node().submit(),se.remove(),ie.emit("plotly_afterexport"),!1}};var j=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],P=["year","month","dayMonth","dayMonthYear"];k.supplyDefaults=function(ie,we){var se=we&&we.skipUpdateCalc,ue=ie._fullLayout||{};if(ue._skipDefaults){delete ue._skipDefaults;return}var pe=ie._fullLayout={},le=ie.layout||{},Te=ie._fullData||[],de=ie._fullData=[],Me=ie.data||[],Re=ie.calcdata||[],ze=ie._context||{},We;ie._transitionData||k.createTransitionData(ie),pe._dfltTitle={plot:M(ie,"Click to enter Plot title"),x:M(ie,"Click to enter X axis title"),y:M(ie,"Click to enter Y axis title"),colorbar:M(ie,"Click to enter Colorscale title"),annotation:M(ie,"new text")},pe._traceWord=M(ie,"trace");var ot=K(ie,j);if(pe._mapboxAccessToken=ze.mapboxAccessToken,ue._initialAutoSizeIsDone){var dt=ue.width,Ge=ue.height;k.supplyLayoutGlobalDefaults(le,pe,ot),le.width||(pe.width=dt),le.height||(pe.height=Ge),k.sanitizeMargins(pe)}else{k.supplyLayoutGlobalDefaults(le,pe,ot);var Xe=!le.width||!le.height,qe=pe.autosize,gt=ze.autosizable,ut=Xe&&(qe||gt);ut?k.plotAutoSize(ie,le,pe):Xe&&k.sanitizeMargins(pe),!qe&&Xe&&(le.width=pe.width,le.height=pe.height)}pe._d3locale=ae(ot,pe.separators),pe._extraFormat=K(ie,P),pe._initialAutoSizeIsDone=!0,pe._dataLength=Me.length,pe._modules=[],pe._visibleModules=[],pe._basePlotModules=[];var tt=pe._subplots=J(),Ct=pe._splomAxes={x:{},y:{}},Gt=pe._splomSubplots={};pe._splomGridDflt={},pe._scatterStackOpts={},pe._firstScatter={},pe._alignmentOpts={},pe._colorAxes={},pe._requestRangeslider={},pe._traceUids=ee(Te,Me),pe._globalTransforms=(ie._context||{}).globalTransforms,k.supplyDataDefaults(Me,de,le,pe);var Yt=Object.keys(Ct.x),Nt=Object.keys(Ct.y);if(Yt.length>1&&Nt.length>1){for(i.getComponentMethod("grid","sizeDefaults")(le,pe),We=0;We15&&Nt.length>15&&pe.shapes.length===0&&pe.images.length===0,k.linkSubplots(de,pe,Te,ue),k.cleanPlot(de,pe,Te,ue);var Zn=!!(ue._has&&ue._has("gl2d")),an=!!(pe._has&&pe._has("gl2d")),Cn=!!(ue._has&&ue._has("cartesian")),jn=!!(pe._has&&pe._has("cartesian")),Wn=Cn||Zn,wn=jn||an;Wn&&!wn?ue._bgLayer.remove():wn&&!Wn&&(pe._shouldCreateBgLayer=!0),ue._zoomlayer&&!ie._dragging&&_({_fullLayout:ue}),Q(de,pe),N(pe,ue),i.getComponentMethod("colorscale","crossTraceDefaults")(de,pe),pe._preGUI||(pe._preGUI={}),pe._tracePreGUI||(pe._tracePreGUI={});var lt=pe._tracePreGUI,ft={},wt;for(wt in lt)ft[wt]="old";for(We=0;We0){var ze=1-2*le;Te=Math.round(ze*Te),de=Math.round(ze*de)}}var We=k.layoutAttributes.width.min,ot=k.layoutAttributes.height.min;Te1,Ge=!se.height&&Math.abs(ue.height-de)>1;(Ge||dt)&&(dt&&(ue.width=Te),Ge&&(ue.height=de)),we._initialAutoSize||(we._initialAutoSize={width:Te,height:de}),k.sanitizeMargins(ue)},k.supplyLayoutModuleDefaults=function(ie,we,se,ue){var pe=i.componentsRegistry,le=we._basePlotModules,Te,de,Me,Re=i.subplotsRegistry.cartesian;for(Te in pe)Me=pe[Te],Me.includeBasePlot&&Me.includeBasePlot(ie,we);le.length||le.push(Re),we._has("cartesian")&&(i.getComponentMethod("grid","contentDefaults")(ie,we),Re.finalizeSubplots(ie,we));for(var ze in we._subplots)we._subplots[ze].sort(g.subplotSort);for(de=0;de1&&(se.l/=qe,se.r/=qe)}if(ot){var gt=(se.t+se.b)/ot;gt>1&&(se.t/=gt,se.b/=gt)}var ut=se.xl!==void 0?se.xl:se.x,tt=se.xr!==void 0?se.xr:se.x,Ct=se.yt!==void 0?se.yt:se.y,Gt=se.yb!==void 0?se.yb:se.y;dt[we]={l:{val:ut,size:se.l+Xe},r:{val:tt,size:se.r+Xe},b:{val:Gt,size:se.b+Xe},t:{val:Ct,size:se.t+Xe}},Ge[we]=1}if(!ue._replotting)return k.doAutoMargin(ie)}};function ye(ie){if("_redrawFromAutoMarginCount"in ie._fullLayout)return!1;var we=C.list(ie,"",!0);for(var se in we)if(we[se].autoshift||we[se].shift)return!0;return!1}k.doAutoMargin=function(ie){var we=ie._fullLayout,se=we.width,ue=we.height;we._size||(we._size={}),ne(we);var pe=we._size,le=we.margin,Te={t:0,b:0,l:0,r:0},de=g.extendFlat({},pe),Me=le.l,Re=le.r,ze=le.t,We=le.b,ot=we._pushmargin,dt=we._pushmarginIds,Ge=we.minreducedwidth,Xe=we.minreducedheight;if(le.autoexpand!==!1){for(var qe in ot)dt[qe]||delete ot[qe];var gt=ie._fullLayout._reservedMargin;for(var ut in gt)for(var tt in gt[ut]){var Ct=gt[ut][tt];Te[tt]=Math.max(Te[tt],Ct)}ot.base={l:{val:0,size:Me},r:{val:1,size:Re},t:{val:1,size:ze},b:{val:0,size:We}};for(var Gt in Te){var Yt=0;for(var Nt in ot)Nt!=="base"&&c(ot[Nt][Gt].size)&&(Yt=ot[Nt][Gt].size>Yt?ot[Nt][Gt].size:Yt);var Ft=Math.max(0,le[Gt]-Yt);Te[Gt]=Math.max(0,Te[Gt]-Ft)}for(var pn in ot){var _n=ot[pn].l||{},sn=ot[pn].b||{},Zn=_n.val,an=_n.size,Cn=sn.val,jn=sn.size,Wn=se-Te.r-Te.l,wn=ue-Te.t-Te.b;for(var lt in ot){if(c(an)&&ot[lt].r){var ft=ot[lt].r.val,wt=ot[lt].r.size;if(ft>Zn){var vt=(an*ft+(wt-Wn)*Zn)/(ft-Zn),$t=(wt*(1-Zn)+(an-Wn)*(1-ft))/(ft-Zn);vt+$t>Me+Re&&(Me=vt,Re=$t)}}if(c(jn)&&ot[lt].t){var Ze=ot[lt].t.val,it=ot[lt].t.size;if(Ze>Cn){var ht=(jn*Ze+(it-wn)*Cn)/(Ze-Cn),pt=(it*(1-Cn)+(jn-wn)*(1-Ze))/(Ze-Cn);ht+pt>We+ze&&(We=ht,ze=pt)}}}}}var Tt=g.constrain(se-le.l-le.r,fe,Ge),Et=g.constrain(ue-le.t-le.b,X,Xe),fn=Math.max(0,se-Tt),tn=Math.max(0,ue-Et);if(fn){var Zt=(Me+Re)/fn;Zt>1&&(Me/=Zt,Re/=Zt)}if(tn){var Dt=(We+ze)/tn;Dt>1&&(We/=Dt,ze/=Dt)}if(pe.l=Math.round(Me)+Te.l,pe.r=Math.round(Re)+Te.r,pe.t=Math.round(ze)+Te.t,pe.b=Math.round(We)+Te.b,pe.p=Math.round(le.pad),pe.w=Math.round(se)-pe.l-pe.r,pe.h=Math.round(ue)-pe.t-pe.b,!we._replotting&&(k.didMarginChange(de,pe)||ye(ie))){"_redrawFromAutoMarginCount"in we?we._redrawFromAutoMarginCount++:we._redrawFromAutoMarginCount=1;var un=3*(1+Object.keys(dt).length);if(we._redrawFromAutoMarginCount1)return!0}return!1},k.graphJson=function(ie,we,se,ue,pe,le){(pe&&we&&!ie._fullData||pe&&!we&&!ie._fullLayout)&&k.supplyDefaults(ie);var Te=pe?ie._fullData:ie.data,de=pe?ie._fullLayout:ie.layout,Me=(ie._transitionData||{})._frames;function Re(ot,dt){if(typeof ot=="function")return dt?"_function_":null;if(g.isPlainObject(ot)){var Ge={},Xe;return Object.keys(ot).sort().forEach(function(qe){if(["_","["].indexOf(qe.charAt(0))===-1){if(typeof ot[qe]=="function"){dt&&(Ge[qe]="_function");return}if(se==="keepdata"){if(qe.substr(qe.length-3)==="src")return}else if(se==="keepstream"){if(Xe=ot[qe+"src"],typeof Xe=="string"&&Xe.indexOf(":")>0&&!g.isPlainObject(ot.stream))return}else if(se!=="keepall"&&(Xe=ot[qe+"src"],typeof Xe=="string"&&Xe.indexOf(":")>0))return;Ge[qe]=Re(ot[qe],dt)}}),Ge}return Array.isArray(ot)?ot.map(function(qe){return Re(qe,dt)}):g.isTypedArray(ot)?g.simpleMap(ot,g.identity):g.isJSDate(ot)?g.ms2DateTimeLocal(+ot):ot}var ze={data:(Te||[]).map(function(ot){var dt=Re(ot);return we&&delete dt.fit,dt})};if(!we&&(ze.layout=Re(de),pe)){var We=de._size;ze.layout.computed={margin:{b:We.b,l:We.l,r:We.r,t:We.t}}}return Me&&(ze.frames=Re(Me)),le&&(ze.config=Re(ie._context,!0)),ue==="object"?ze:JSON.stringify(ze)},k.modifyFrames=function(ie,we){var se,ue,pe,le=ie._transitionData._frames,Te=ie._transitionData._frameHash;for(se=0;se0&&(ie._transitioningWithDuration=!0),ie._transitionData._interruptCallbacks.push(function(){ue=!0}),se.redraw&&ie._transitionData._interruptCallbacks.push(function(){return i.call("redraw",ie)}),ie._transitionData._interruptCallbacks.push(function(){ie.emit("plotly_transitioninterrupted",[])});var ot=0,dt=0;function Ge(){return ot++,function(){dt++,!ue&&dt===ot&&de(We)}}se.runFn(Ge),setTimeout(Ge())})}function de(We){if(ie._transitionData)return le(ie._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(se.redraw)return i.call("redraw",ie)}).then(function(){ie._transitioning=!1,ie._transitioningWithDuration=!1,ie.emit("plotly_transitioned",[])}).then(We)}function Me(){if(ie._transitionData)return ie._transitioning=!1,pe(ie._transitionData._interruptCallbacks)}var Re=[k.previousPromises,Me,se.prepareFn,k.rehover,k.reselect,Te],ze=g.syncOrAsync(Re,ie);return(!ze||!ze.then)&&(ze=Promise.resolve()),ze.then(function(){return ie})}k.doCalcdata=function(ie,we){var se=C.list(ie),ue=ie._fullData,pe=ie._fullLayout,le,Te,de,Me,Re=new Array(ue.length),ze=(ie.calcdata||[]).slice();for(ie.calcdata=Re,pe._numBoxes=0,pe._numViolins=0,pe._violinScaleGroupStats={},ie._hmpixcount=0,ie._hmlumcount=0,pe._piecolormap={},pe._sunburstcolormap={},pe._treemapcolormap={},pe._iciclecolormap={},pe._funnelareacolormap={},de=0;de=0;Me--)if(Gt[Me].enabled){le._indexToPoints=Gt[Me]._indexToPoints;break}Te&&Te.calc&&(Ct=Te.calc(ie,le))}(!Array.isArray(Ct)||!Ct[0])&&(Ct=[{x,y:x}]),Ct[0].t||(Ct[0].t={}),Ct[0].trace=le,Re[ut]=Ct}}for(Oe(se,ue,pe),de=0;de0){for(var u=[],d=0;d-1}L.exports=function(g,v){var x,C=g.data,_=g.layout,$=c([],C),S=c({},_,i(v.tileClass)),O=g._context||{};if(v.width&&(S.width=v.width),v.height&&(S.height=v.height),v.tileClass==="thumbnail"||v.tileClass==="themes__thumb"){S.annotations=[];var D=Object.keys(S);for(x=0;x")!==-1?"":_.html(S).text()});return _.remove(),$}function x(C){return C.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")}L.exports=function(_,$,S){var O=_._fullLayout,D=O._paper,N=O._toppaper,M=O.width,k=O.height,R;D.insert("rect",":first-child").call(l.setRect,0,0,M,k).call(c.fill,O.paper_bgcolor);var F=O._basePlotModules||[];for(R=0;Rne+Se||!m(ce))}for(var X=0;Xg;if(!v)return i}return u!==void 0?u:c.dflt},A.coerceColor=function(c,i,u){return h(i).isValid()?i:u!==void 0?u:c.dflt},A.coerceEnumerated=function(c,i,u){return c.coerceNumber&&(i=+i),c.values.indexOf(i)!==-1?i:u!==void 0?u:c.dflt},A.getValue=function(c,i){var u;return Array.isArray(c)?i0?Re+=ze:P<0&&(Re-=ze)}return Re}function Ve(Me){var Re=P,ze=Me.b,We=Ne(Me);return m.inbox(ze-Re,We-Re,F+(We-Re)/(We-ze)-1)}function Oe(Me){var Re=P,ze=Me.b,We=Ne(Me);return m.inbox(ze-Re,We-Re,H+(We-Re)/(We-ze)-1)}var Fe=C[ee+"a"],ie=C[J+"a"];Q=Math.abs(Fe.r2c(Fe.range[1])-Fe.r2c(Fe.range[0]));function we(Me){return(K(Me)+ae(Me))/2}var se=m.getDistanceFunction(S,K,ae,we);if(m.getClosest(D,se,C),C.index!==!1&&D[C.index].p!==d){ge||(X=function(Me){return Math.min(Se(Me),Me.p-M.bargroupwidth/2)},ye=function(Me){return Math.max(ce(Me),Me.p+M.bargroupwidth/2)});var ue=C.index,pe=D[ue],le=N.base?pe.b+pe.s:pe.s;C[J+"0"]=C[J+"1"]=ie.c2p(pe[J],!0),C[J+"LabelVal"]=le;var Te=M.extents[M.extents.round(pe.p)];C[ee+"0"]=Fe.c2p(k?X(pe):Te[0],!0),C[ee+"1"]=Fe.c2p(k?ye(pe):Te[1],!0);var de=pe.orig_p!==void 0;return C[ee+"LabelVal"]=de?pe.orig_p:pe.p,C.labelLabel=u(Fe,C[ee+"LabelVal"],N[ee+"hoverformat"]),C.valueLabel=u(ie,C[J+"LabelVal"],N[J+"hoverformat"]),C.baseLabel=u(ie,pe.b,N[J+"hoverformat"]),C.spikeDistance=(Oe(pe)+ke(pe))/2,C[ee+"Spike"]=Fe.c2p(pe.p,!0),c(pe,N,C),C.hovertemplate=N.hovertemplate,C}}function x(C,_){var $=_.mcc||C.marker.color,S=_.mlcc||C.marker.line.color,O=i(C,_);if(l.opacity($))return $;if(l.opacity(S)&&O)return S}L.exports={hoverPoints:g,hoverOnBars:v,getTraceColor:x}},822:function(L,A,s){L.exports={attributes:s(1486),layoutAttributes:s(3641),supplyDefaults:s(769).supplyDefaults,crossTraceDefaults:s(769).crossTraceDefaults,supplyLayoutDefaults:s(3957),calc:s(2290),crossTraceCalc:s(1661).crossTraceCalc,colorbar:s(4898),arraysToCalcdata:s(5341),plot:s(7295).plot,style:s(6688).style,styleOnSelect:s(6688).styleOnSelect,hoverPoints:s(5423).hoverPoints,eventData:s(8065),selectPoints:s(1974),moduleType:"trace",name:"bar",basePlotModule:s(3612),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},3641:function(L){L.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},3957:function(L,A,s){var m=s(3972),h=s(9298),l=s(1828),c=s(3641);L.exports=function(i,u,d){function g(M,k){return l.coerce(i,u,c,M,k)}for(var v=!1,x=!1,C=!1,_={},$=g("barmode"),S=0;S0}function J(X,ye,Ce,$e,ke,Ne){var Ve=ye.xaxis,Oe=ye.yaxis,Fe=X._fullLayout,ie=X._context.staticPlot;ke||(ke={mode:Fe.barmode,norm:Fe.barmode,gap:Fe.bargap,groupgap:Fe.bargroupgap},C("bar",Fe));var we=l.makeTraceGroups($e,Ce,"trace bars").each(function(se){var ue=m.select(this),pe=se[0].trace,le=pe.type==="waterfall",Te=pe.type==="funnel",de=pe.type==="bar",Me=de||Te,Re=0;le&&pe.connector.visible&&pe.connector.mode==="between"&&(Re=pe.connector.line.width/2);var ze=pe.orientation==="h",We=ee(ke),ot=l.ensureSingle(ue,"g","points"),dt=F(pe),Ge=ot.selectAll("g.point").data(l.identity,dt);Ge.enter().append("g").classed("point",!0),Ge.exit().remove(),Ge.each(function(qe,gt){var ut=m.select(this),tt=j(qe,Ve,Oe,ze),Ct=tt[0][0],Gt=tt[0][1],Yt=tt[1][0],Nt=tt[1][1],Ft=(ze?Gt-Ct:Nt-Yt)===0;Ft&&Me&&$.getLineWidth(pe,qe)&&(Ft=!1),Ft||(Ft=!h(Ct)||!h(Gt)||!h(Yt)||!h(Nt)),qe.isBlank=Ft,Ft&&(ze?Gt=Ct:Nt=Yt),Re&&!Ft&&(ze?(Ct-=H(Ct,Gt)*Re,Gt+=H(Ct,Gt)*Re):(Yt-=H(Yt,Nt)*Re,Nt+=H(Yt,Nt)*Re));var pn,_n;if(pe.type==="waterfall"){if(!Ft){var sn=pe[qe.dir].marker;pn=sn.line.width,_n=sn.color}}else pn=$.getLineWidth(pe,qe),_n=qe.mc||pe.marker.color;function Zn(lt){var ft=m.round(pn/2%1,2);return ke.gap===0&&ke.groupgap===0?m.round(Math.round(lt)-ft,2):lt}function an(lt,ft,wt){return wt&<===ft?lt:Math.abs(lt-ft)>=2?Zn(lt):lt>ft?Math.ceil(lt):Math.floor(lt)}if(!X._context.staticPlot){var Cn=i.opacity(_n),jn=Cn<1||pn>.01?Zn:an;Ct=jn(Ct,Gt,ze),Gt=jn(Gt,Ct,ze),Yt=jn(Yt,Nt,!ze),Nt=jn(Nt,Yt,!ze)}var Wn=P(l.ensureSingle(ut,"path"),Fe,ke,Ne);if(Wn.style("vector-effect",ie?"none":"non-scaling-stroke").attr("d",isNaN((Gt-Ct)*(Nt-Yt))||Ft&&X._context.staticPlot?"M0,0Z":"M"+Ct+","+Yt+"V"+Nt+"H"+Gt+"V"+Yt+"Z").call(u.setClipUrl,ye.layerClipId,X),!Fe.uniformtext.mode&&We){var wn=u.makePointStyleFns(pe);u.singlePointStyle(qe,Wn,pe,wn,X)}K(X,ye,ut,se,gt,Ct,Gt,Yt,Nt,ke,Ne),ye.layerClipId&&u.hideOutsideRangePoint(qe,ut.select("text"),Ve,Oe,pe.xcalendar,pe.ycalendar)});var Xe=pe.cliponaxis===!1;u.setClipUrl(ue,Xe?null:ye.layerClipId,X)});d.getComponentMethod("errorbars","plot")(X,we,ye,ke)}function K(X,ye,Ce,$e,ke,Ne,Ve,Oe,Fe,ie,we){var se=ye.xaxis,ue=ye.yaxis,pe=X._fullLayout,le;function Te(lt,ft,wt){var vt=l.ensureSingle(lt,"text").text(ft).attr({class:"bartext bartext-"+le,"text-anchor":"middle","data-notex":1}).call(u.font,wt).call(c.convertToTspans,X);return vt}var de=$e[0].trace,Me=de.orientation==="h",Re=Se(pe,$e,ke,se,ue);le=ce(de,ke);var ze=ie.mode==="stack"||ie.mode==="relative",We=$e[ke],ot=!ze||We._outmost;if(!Re||le==="none"||(We.isBlank||Ne===Ve||Oe===Fe)&&(le==="auto"||le==="inside")){Ce.select("text").remove();return}var dt=pe.font,Ge=_.getBarColor($e[ke],de),Xe=_.getInsideTextFont(de,ke,dt,Ge),qe=_.getOutsideTextFont(de,ke,dt),gt=Ce.datum();Me?se.type==="log"&>.s0<=0&&(se.range[0]0&&Nt>0,_n=Yt<=ut&&Nt<=tt,sn=Yt<=tt&&Nt<=ut,Zn=Me?ut>=Yt*(tt/Nt):tt>=Nt*(ut/Yt);pn&&(_n||sn||Zn)?le="inside":(le="outside",Ct.remove(),Ct=null)}else le="inside";if(!Ct){Ft=l.ensureUniformFontSize(X,le==="outside"?qe:Xe),Ct=Te(Ce,Re,Ft);var an=Ct.attr("transform");if(Ct.attr("transform",""),Gt=u.bBox(Ct.node()),Yt=Gt.width,Nt=Gt.height,Ct.attr("transform",an),Yt<=0||Nt<=0){Ct.remove();return}}var Cn=de.textangle,jn,Wn;le==="outside"?(Wn=de.constraintext==="both"||de.constraintext==="outside",jn=ge(Ne,Ve,Oe,Fe,Gt,{isHorizontal:Me,constrained:Wn,angle:Cn})):(Wn=de.constraintext==="both"||de.constraintext==="inside",jn=he(Ne,Ve,Oe,Fe,Gt,{isHorizontal:Me,constrained:Wn,angle:Cn,anchor:de.insidetextanchor})),jn.fontSize=Ft.size,x(de.type==="histogram"?"bar":de.type,jn,pe),We.transform=jn;var wn=P(Ct,pe,ie,we);l.setTransormAndDisplay(wn,jn)}function ae(X){return X==="auto"?0:X}function Q(X,ye){var Ce=Math.PI/180*ye,$e=Math.abs(Math.sin(Ce)),ke=Math.abs(Math.cos(Ce));return{x:X.width*ke+X.height*$e,y:X.width*$e+X.height*ke}}function he(X,ye,Ce,$e,ke,Ne){var Ve=!!Ne.isHorizontal,Oe=!!Ne.constrained,Fe=Ne.angle||0,ie=Ne.anchor||"end",we=ie==="end",se=ie==="start",ue=Ne.leftToRight||0,pe=(ue+1)/2,le=1-pe,Te=ke.width,de=ke.height,Me=Math.abs(ye-X),Re=Math.abs($e-Ce),ze=Me>2*k&&Re>2*k?k:0;Me-=2*ze,Re-=2*ze;var We=ae(Fe);Fe==="auto"&&!(Te<=Me&&de<=Re)&&(Te>Me||de>Re)&&(!(Te>Re||de>Me)||Te2*k?k:0:pe=se>2*k?k:0;var le=1;Oe&&(le=Ve?Math.min(1,ue/we):Math.min(1,se/ie));var Te=ae(Fe),de=Q(ke,Te),Me=(Ve?de.x:de.y)/2,Re=(ke.left+ke.right)/2,ze=(ke.top+ke.bottom)/2,We=(X+ye)/2,ot=(Ce+$e)/2,dt=0,Ge=0,Xe=Ve?H(ye,X):H(Ce,$e);return Ve?(We=ye-Xe*pe,dt=Xe*Me):(ot=$e+Xe*pe,Ge=-Xe*Me),{textX:Re,textY:ze,targetX:We,targetY:ot,anchorX:dt,anchorY:Ge,scale:le,rotate:Te}}function Se(X,ye,Ce,$e,ke){var Ne=ye[0].trace,Ve=Ne.texttemplate,Oe;return Ve?Oe=ne(X,ye,Ce,$e,ke):Ne.textinfo?Oe=fe(ye,Ce,$e,ke):Oe=$.getValue(Ne.text,Ce),$.coerceString(D,Oe)}function ce(X,ye){var Ce=$.getValue(X.textposition,ye);return $.coerceEnumerated(N,Ce)}function ne(X,ye,Ce,$e,ke){var Ne=ye[0].trace,Ve=l.castOption(Ne,Ce,"texttemplate");if(!Ve)return"";var Oe=Ne.type==="histogram",Fe=Ne.type==="waterfall",ie=Ne.type==="funnel",we=Ne.orientation==="h",se,ue,pe,le;we?(se="y",ue=ke,pe="x",le=$e):(se="x",ue=$e,pe="y",le=ke);function Te(dt){return g(ue,ue.c2l(dt),!0).text}function de(dt){return g(le,le.c2l(dt),!0).text}var Me=ye[Ce],Re={};Re.label=Me.p,Re.labelLabel=Re[se+"Label"]=Te(Me.p);var ze=l.castOption(Ne,Me.i,"text");(ze===0||ze)&&(Re.text=ze),Re.value=Me.s,Re.valueLabel=Re[pe+"Label"]=de(Me.s);var We={};M(We,Ne,Me.i),(Oe||We.x===void 0)&&(We.x=we?Re.value:Re.label),(Oe||We.y===void 0)&&(We.y=we?Re.label:Re.value),(Oe||We.xLabel===void 0)&&(We.xLabel=we?Re.valueLabel:Re.labelLabel),(Oe||We.yLabel===void 0)&&(We.yLabel=we?Re.labelLabel:Re.valueLabel),Fe&&(Re.delta=+Me.rawS||Me.s,Re.deltaLabel=de(Re.delta),Re.final=Me.v,Re.finalLabel=de(Re.final),Re.initial=Re.final-Re.delta,Re.initialLabel=de(Re.initial)),ie&&(Re.value=Me.s,Re.valueLabel=de(Re.value),Re.percentInitial=Me.begR,Re.percentInitialLabel=l.formatPercent(Me.begR),Re.percentPrevious=Me.difR,Re.percentPreviousLabel=l.formatPercent(Me.difR),Re.percentTotal=Me.sumR,Re.percenTotalLabel=l.formatPercent(Me.sumR));var ot=l.castOption(Ne,Me.i,"customdata");return ot&&(Re.customdata=ot),l.texttemplateString(Ve,Re,X._d3locale,We,Re,Ne._meta||{})}function fe(X,ye,Ce,$e){var ke=X[0].trace,Ne=ke.orientation==="h",Ve=ke.type==="waterfall",Oe=ke.type==="funnel";function Fe(ot){var dt=Ne?$e:Ce;return g(dt,ot,!0).text}function ie(ot){var dt=Ne?Ce:$e;return g(dt,+ot,!0).text}var we=ke.textinfo,se=X[ye],ue=we.split("+"),pe=[],le,Te=function(ot){return ue.indexOf(ot)!==-1};if(Te("label")&&pe.push(Fe(X[ye].p)),Te("text")&&(le=l.castOption(ke,se.i,"text"),(le===0||le)&&pe.push(le)),Ve){var de=+se.rawS||se.s,Me=se.v,Re=Me-de;Te("initial")&&pe.push(ie(Re)),Te("delta")&&pe.push(ie(de)),Te("final")&&pe.push(ie(Me))}if(Oe){Te("value")&&pe.push(ie(se.s));var ze=0;Te("percent initial")&&ze++,Te("percent previous")&&ze++,Te("percent total")&&ze++;var We=ze>1;Te("percent initial")&&(le=l.formatPercent(se.begR),We&&(le+=" of initial"),pe.push(le)),Te("percent previous")&&(le=l.formatPercent(se.difR),We&&(le+=" of previous"),pe.push(le)),Te("percent total")&&(le=l.formatPercent(se.sumR),We&&(le+=" of total"),pe.push(le))}return pe.join("
    ")}L.exports={plot:J,toMoveInsideBar:he}},1974:function(L){L.exports=function(m,h){var l=m.cd,c=m.xaxis,i=m.yaxis,u=l[0].trace,d=u.type==="funnel",g=u.orientation==="h",v=[],x;if(h===!1)for(x=0;x1||K.bargap===0&&K.bargroupgap===0&&!ae[0].trace.marker.line.width)&&m.select(this).attr("shape-rendering","crispEdges")}),ee.selectAll("g.points").each(function(ae){var Q=m.select(this),he=ae[0].trace;$(Q,he,P)}),i.getComponentMethod("errorbars","style")(ee)}function $(P,ee,J){l.pointStyle(P.selectAll("path"),ee,J),S(P,ee,J)}function S(P,ee,J){P.selectAll("text").each(function(K){var ae=m.select(this),Q=c.ensureUniformFontSize(J,M(ae,K,ee,J));l.font(ae,Q)})}function O(P,ee,J){var K=ee[0].trace;K.selectedpoints?D(J,K,P):($(J,K,P),i.getComponentMethod("errorbars","style")(J))}function D(P,ee,J){l.selectedPointStyle(P.selectAll("path"),ee),N(P.selectAll("text"),ee,J)}function N(P,ee,J){P.each(function(K){var ae=m.select(this),Q;if(K.selected){Q=c.ensureUniformFontSize(J,M(ae,K,ee,J));var he=ee.selected.textfont&&ee.selected.textfont.color;he&&(Q.color=he),l.font(ae,Q)}else l.selectedTextStyle(ae,ee)})}function M(P,ee,J,K){var ae=K._fullLayout.font,Q=J.textfont;if(P.classed("bartext-inside")){var he=j(ee,J);Q=R(J,ee.i,ae,he)}else P.classed("bartext-outside")&&(Q=F(J,ee.i,ae));return Q}function k(P,ee,J){return H(g,P.textfont,ee,J)}function R(P,ee,J,K){var ae=k(P,ee,J),Q=P._input.textfont===void 0||P._input.textfont.color===void 0||Array.isArray(P.textfont.color)&&P.textfont.color[ee]===void 0;return Q&&(ae={color:h.contrast(K),family:ae.family,size:ae.size}),H(v,P.insidetextfont,ee,ae)}function F(P,ee,J){var K=k(P,ee,J);return H(x,P.outsidetextfont,ee,K)}function H(P,ee,J,K){ee=ee||{};var ae=C.getValue(ee.family,J),Q=C.getValue(ee.size,J),he=C.getValue(ee.color,J);return{family:C.coerceString(P.family,ae,K.family),size:C.coerceNumber(P.size,Q,K.size),color:C.coerceColor(P.color,he,K.color)}}function j(P,ee){return ee.type==="waterfall"?ee[P.dir].marker.color:P.mcc||P.mc||ee.marker.color}L.exports={style:_,styleTextPoints:S,styleOnSelect:O,getInsideTextFont:R,getOutsideTextFont:F,getBarColor:j,resizeText:u}},8340:function(L,A,s){var m=s(7901),h=s(2869).hasColorscale,l=s(1586),c=s(1828).coercePattern;L.exports=function(u,d,g,v,x){var C=g("marker.color",v),_=h(u,"marker");_&&l(u,d,x,g,{prefix:"marker.",cLetter:"c"}),g("marker.line.color",m.defaultLine),h(u,"marker.line")&&l(u,d,x,g,{prefix:"marker.line.",cLetter:"c"}),g("marker.line.width"),g("marker.opacity"),c(g,"marker.pattern",C,_),g("selected.marker.color"),g("unselected.marker.color")}},2597:function(L,A,s){var m=s(9898),h=s(1828);function l(d,g,v){var x=d._fullLayout,C=x["_"+v+"Text_minsize"];if(C){var _=x.uniformtext.mode==="hide",$;switch(v){case"funnelarea":case"pie":case"sunburst":$="g.slice";break;case"treemap":case"icicle":$="g.slice, g.pathbar";break;default:$="g.points > g.point"}g.selectAll($).each(function(S){var O=S.transform;if(O){O.scale=_&&O.hide?0:C/O.fontSize;var D=m.select(this).select("text");h.setTransormAndDisplay(D,O)}})}}function c(d,g,v){if(v.uniformtext.mode){var x=u(d),C=v.uniformtext.minsize,_=g.scale*g.fontSize;g.hide=_=0});var Q=x.type==="funnelarea"?P:x.sort;return Q&&C.sort(function(he,ge){return ge.v-he.v}),C[0]&&(C[0].vTotal=j),C}function u(v){return function(C,_){return!C||(C=h(C),!C.isValid())?!1:(C=l.addOpacity(C,C.getAlpha()),v[_]||(v[_]=C),C)}}function d(v,x){var C=(x||{}).type;C||(C="pie");var _=v._fullLayout,$=v.calcdata,S=_[C+"colorway"],O=_["_"+C+"colormap"];_["extend"+C+"colors"]&&(S=g(S,c));for(var D=0,N=0;N<$.length;N++){var M=$[N],k=M[0].trace.type;if(k===C)for(var R=0;R0){O=!0;break}}O||(S=0)}return{hasLabels:_,hasValues:$,len:S}}function g(x,C,_,$,S){var O=$("marker.line.width");O&&$("marker.line.color",S?void 0:_.paper_bgcolor);var D=$("marker.colors");u($,"marker.pattern",D),x.marker&&!C.marker.pattern.fgcolor&&(C.marker.pattern.fgcolor=x.marker.colors),C.marker.pattern.bgcolor||(C.marker.pattern.bgcolor=_.paper_bgcolor)}function v(x,C,_,$){function S(ae,Q){return h.coerce(x,C,l,ae,Q)}var O=S("labels"),D=S("values"),N=d(O,D),M=N.len;if(C._hasLabels=N.hasLabels,C._hasValues=N.hasValues,!C._hasLabels&&C._hasValues&&(S("label0"),S("dlabel")),!M){C.visible=!1;return}C._length=M,g(x,C,$,S,!0),S("scalegroup");var k=S("text"),R=S("texttemplate"),F;if(R||(F=S("textinfo",Array.isArray(k)?"text+percent":"percent")),S("hovertext"),S("hovertemplate"),R||F&&F!=="none"){var H=S("textposition");i(x,C,$,S,H,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var j=Array.isArray(H)||H==="auto",P=j||H==="outside";P&&S("automargin"),(H==="inside"||H==="auto"||Array.isArray(H))&&S("insidetextorientation")}c(C,$,S);var ee=S("hole"),J=S("title.text");if(J){var K=S("title.position",ee?"middle center":"top center");!ee&&K==="middle center"&&(C.title.position="top center"),h.coerceFont(S,"title.font",$.font)}S("sort"),S("direction"),S("rotation"),S("pull")}L.exports={handleLabelsAndValues:d,handleMarkerDefaults:g,supplyDefaults:v}},7:function(L,A,s){var m=s(3469).appendArrayMultiPointValues;L.exports=function(l,c){var i={curveNumber:c.index,pointNumbers:l.pts,data:c._input,fullData:c,label:l.label,color:l.color,value:l.v,percent:l.percent,text:l.text,bbox:l.bbox,v:l.v};return l.pts.length===1&&(i.pointNumber=i.i=l.pts[0]),m(i,c,l.pts),c.type==="funnelarea"&&(delete i.v,delete i.i),i}},2209:function(L,A,s){var m=s(1424),h=s(7901);L.exports=function(c,i,u,d){var g=u.marker.pattern;g&&g.shape?m.pointStyle(c,u,d,i):h.fill(c,i.color)}},3581:function(L,A,s){var m=s(1828);function h(l){return l.indexOf("e")!==-1?l.replace(/[.]?0+e/,"e"):l.indexOf(".")!==-1?l.replace(/[.]?0+$/,""):l}A.formatPiePercent=function(c,i){var u=h((c*100).toPrecision(3));return m.numSeparate(u,i)+"%"},A.formatPieValue=function(c,i){var u=h(c.toPrecision(10));return m.numSeparate(u,i)},A.getFirstFilled=function(c,i){if(Array.isArray(c))for(var u=0;u0&&(Gt+=pn*tt.pxmid[0],Yt+=pn*tt.pxmid[1])}tt.cxFinal=Gt,tt.cyFinal=Yt;function _n(wn,lt,ft,wt){var vt=wt*(lt[0]-wn[0]),$t=wt*(lt[1]-wn[1]);return"a"+wt*de.r+","+wt*de.r+" 0 "+tt.largeArc+(ft?" 1 ":" 0 ")+vt+","+$t}var sn=Me.hole;if(tt.v===de.vTotal){var Zn="M"+(Gt+tt.px0[0])+","+(Yt+tt.px0[1])+_n(tt.px0,tt.pxmid,!0,1)+_n(tt.pxmid,tt.px0,!0,1)+"Z";sn?Ft.attr("d","M"+(Gt+sn*tt.px0[0])+","+(Yt+sn*tt.px0[1])+_n(tt.px0,tt.pxmid,!1,sn)+_n(tt.pxmid,tt.px0,!1,sn)+"Z"+Zn):Ft.attr("d",Zn)}else{var an=_n(tt.px0,tt.px1,!0,1);if(sn){var Cn=1-sn;Ft.attr("d","M"+(Gt+sn*tt.px1[0])+","+(Yt+sn*tt.px1[1])+_n(tt.px1,tt.px0,!1,sn)+"l"+Cn*tt.px0[0]+","+Cn*tt.px0[1]+an+"Z")}else Ft.attr("d","M"+Gt+","+Yt+"l"+tt.px0[0]+","+tt.px0[1]+an+"Z")}Ve(Fe,tt,de);var jn=S.castOption(Me.textposition,tt.pts),Wn=Nt.selectAll("g.slicetext").data(tt.text&&jn!=="none"?[0]:[]);Wn.enter().append("g").classed("slicetext",!0),Wn.exit().remove(),Wn.each(function(){var wn=u.ensureSingle(m.select(this),"text","",function(ht){ht.attr("data-notex",1)}),lt=u.ensureUniformFontSize(Fe,jn==="outside"?R(Me,tt,se.font):F(Me,tt,se.font));wn.text(tt.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(i.font,lt).call(v.convertToTspans,Fe);var ft=i.bBox(wn.node()),wt;if(jn==="outside")wt=ge(ft,tt);else if(wt=j(ft,tt,de),jn==="auto"&&wt.scale<1){var vt=u.ensureUniformFontSize(Fe,Me.outsidetextfont);wn.call(i.font,vt),ft=i.bBox(wn.node()),wt=ge(ft,tt)}var $t=wt.textPosAngle,Ze=$t===void 0?tt.pxmid:Ne(de.r,$t);if(wt.targetX=Gt+Ze[0]*wt.rCenter+(wt.x||0),wt.targetY=Yt+Ze[1]*wt.rCenter+(wt.y||0),Oe(wt,ft),wt.outside){var it=wt.targetY;tt.yLabelMin=it-ft.height/2,tt.yLabelMid=it,tt.yLabelMax=it+ft.height/2,tt.labelExtraX=0,tt.labelExtraY=0,We=!0}wt.fontSize=lt.size,C(Me.type,wt,se),le[Ct].transform=wt,u.setTransormAndDisplay(wn,wt)})});var ot=m.select(this).selectAll("g.titletext").data(Me.title.text?[0]:[]);if(ot.enter().append("g").classed("titletext",!0),ot.exit().remove(),ot.each(function(){var tt=u.ensureSingle(m.select(this),"text","",function(Yt){Yt.attr("data-notex",1)}),Ct=Me.title.text;Me._meta&&(Ct=u.templateString(Ct,Me._meta)),tt.text(Ct).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(i.font,Me.title.font).call(v.convertToTspans,Fe);var Gt;Me.title.position==="middle center"?Gt=Se(de):Gt=ce(de,ue),tt.attr("transform",g(Gt.x,Gt.y)+d(Math.min(1,Gt.scale))+g(Gt.tx,Gt.ty))}),We&&ye(ze,Me),M(Re,Me),We&&Me.automargin){var dt=i.bBox(Te.node()),Ge=Me.domain,Xe=ue.w*(Ge.x[1]-Ge.x[0]),qe=ue.h*(Ge.y[1]-Ge.y[0]),gt=(.5*Xe-de.r)/ue.w,ut=(.5*qe-de.r)/ue.h;h.autoMargin(Fe,"pie."+Me.uid+".automargin",{xl:Ge.x[0]-gt,xr:Ge.x[1]+gt,yb:Ge.y[0]-ut,yt:Ge.y[1]+ut,l:Math.max(de.cx-de.r-dt.left,0),r:Math.max(dt.right-(de.cx+de.r),0),b:Math.max(dt.bottom-(de.cy+de.r),0),t:Math.max(de.cy-de.r-dt.top,0),pad:5})}})});setTimeout(function(){pe.selectAll("tspan").each(function(){var le=m.select(this);le.attr("dy")&&le.attr("dy",le.attr("dy"))})},0)}function M(Fe,ie){Fe.each(function(we){var se=m.select(this);if(!we.labelExtraX&&!we.labelExtraY){se.select("path.textline").remove();return}var ue=se.select("g.slicetext text");we.transform.targetX+=we.labelExtraX,we.transform.targetY+=we.labelExtraY,u.setTransormAndDisplay(ue,we.transform);var pe=we.cxFinal+we.pxmid[0],le=we.cyFinal+we.pxmid[1],Te="M"+pe+","+le,de=(we.yLabelMax-we.yLabelMin)*(we.pxmid[0]<0?-1:1)/4;if(we.labelExtraX){var Me=we.labelExtraX*we.pxmid[1]/we.pxmid[0],Re=we.yLabelMid+we.labelExtraY-(we.cyFinal+we.pxmid[1]);Math.abs(Me)>Math.abs(Re)?Te+="l"+Re*we.pxmid[0]/we.pxmid[1]+","+Re+"H"+(pe+we.labelExtraX+de):Te+="l"+we.labelExtraX+","+Me+"v"+(Re-Me)+"h"+de}else Te+="V"+(we.yLabelMid+we.labelExtraY)+"h"+de;u.ensureSingle(se,"path","textline").call(c.stroke,ie.outsidetextfont.color).attr({"stroke-width":Math.min(2,ie.outsidetextfont.size/8),d:Te,fill:"none"})})}function k(Fe,ie,we){var se=we[0],ue=se.cx,pe=se.cy,le=se.trace,Te=le.type==="funnelarea";"_hasHoverLabel"in le||(le._hasHoverLabel=!1),"_hasHoverEvent"in le||(le._hasHoverEvent=!1),Fe.on("mouseover",function(de){var Me=ie._fullLayout,Re=ie._fullData[le.index];if(!(ie._dragging||Me.hovermode===!1)){var ze=Re.hoverinfo;if(Array.isArray(ze)&&(ze=l.castHoverinfo({hoverinfo:[S.castOption(ze,de.pts)],_module:le._module},Me,0)),ze==="all"&&(ze="label+text+value+percent+name"),Re.hovertemplate||ze!=="none"&&ze!=="skip"&&ze){var We=de.rInscribed||0,ot=ue+de.pxmid[0]*(1-We),dt=pe+de.pxmid[1]*(1-We),Ge=Me.separators,Xe=[];if(ze&&ze.indexOf("label")!==-1&&Xe.push(de.label),de.text=S.castOption(Re.hovertext||Re.text,de.pts),ze&&ze.indexOf("text")!==-1){var qe=de.text;u.isValidTextValue(qe)&&Xe.push(qe)}de.value=de.v,de.valueLabel=S.formatPieValue(de.v,Ge),ze&&ze.indexOf("value")!==-1&&Xe.push(de.valueLabel),de.percent=de.v/se.vTotal,de.percentLabel=S.formatPiePercent(de.percent,Ge),ze&&ze.indexOf("percent")!==-1&&Xe.push(de.percentLabel);var gt=Re.hoverlabel,ut=gt.font,tt=[];l.loneHover({trace:le,x0:ot-We*se.r,x1:ot+We*se.r,y:dt,_x0:Te?ue+de.TL[0]:ot-We*se.r,_x1:Te?ue+de.TR[0]:ot+We*se.r,_y0:Te?pe+de.TL[1]:dt-We*se.r,_y1:Te?pe+de.BL[1]:dt+We*se.r,text:Xe.join("
    "),name:Re.hovertemplate||ze.indexOf("name")!==-1?Re.name:void 0,idealAlign:de.pxmid[0]<0?"left":"right",color:S.castOption(gt.bgcolor,de.pts)||de.color,borderColor:S.castOption(gt.bordercolor,de.pts),fontFamily:S.castOption(ut.family,de.pts),fontSize:S.castOption(ut.size,de.pts),fontColor:S.castOption(ut.color,de.pts),nameLength:S.castOption(gt.namelength,de.pts),textAlign:S.castOption(gt.align,de.pts),hovertemplate:S.castOption(Re.hovertemplate,de.pts),hovertemplateLabels:de,eventData:[O(de,Re)]},{container:Me._hoverlayer.node(),outerContainer:Me._paper.node(),gd:ie,inOut_bbox:tt}),de.bbox=tt[0],le._hasHoverLabel=!0}le._hasHoverEvent=!0,ie.emit("plotly_hover",{points:[O(de,Re)],event:m.event})}}),Fe.on("mouseout",function(de){var Me=ie._fullLayout,Re=ie._fullData[le.index],ze=m.select(this).datum();le._hasHoverEvent&&(de.originalEvent=m.event,ie.emit("plotly_unhover",{points:[O(ze,Re)],event:m.event}),le._hasHoverEvent=!1),le._hasHoverLabel&&(l.loneUnhover(Me._hoverlayer.node()),le._hasHoverLabel=!1)}),Fe.on("click",function(de){var Me=ie._fullLayout,Re=ie._fullData[le.index];ie._dragging||Me.hovermode===!1||(ie._hoverdata=[O(de,Re)],l.click(ie,m.event))})}function R(Fe,ie,we){var se=S.castOption(Fe.outsidetextfont.color,ie.pts)||S.castOption(Fe.textfont.color,ie.pts)||we.color,ue=S.castOption(Fe.outsidetextfont.family,ie.pts)||S.castOption(Fe.textfont.family,ie.pts)||we.family,pe=S.castOption(Fe.outsidetextfont.size,ie.pts)||S.castOption(Fe.textfont.size,ie.pts)||we.size;return{color:se,family:ue,size:pe}}function F(Fe,ie,we){var se=S.castOption(Fe.insidetextfont.color,ie.pts);!se&&Fe._input.textfont&&(se=S.castOption(Fe._input.textfont.color,ie.pts));var ue=S.castOption(Fe.insidetextfont.family,ie.pts)||S.castOption(Fe.textfont.family,ie.pts)||we.family,pe=S.castOption(Fe.insidetextfont.size,ie.pts)||S.castOption(Fe.textfont.size,ie.pts)||we.size;return{color:se||c.contrast(ie.color),family:ue,size:pe}}function H(Fe,ie){for(var we,se,ue=0;ue=-4;gt-=2)qe(Math.PI*gt,"tan");for(gt=4;gt>=-4;gt-=2)qe(Math.PI*(gt+1),"tan")}if(ze||ot){for(gt=4;gt>=-4;gt-=2)qe(Math.PI*(gt+1.5),"rad");for(gt=4;gt>=-4;gt-=2)qe(Math.PI*(gt+.5),"rad")}}if(Te||dt||ze){var ut=Math.sqrt(Fe.width*Fe.width+Fe.height*Fe.height);if(Xe={scale:ue*se*2/ut,rCenter:1-ue,rotate:0},Xe.textPosAngle=(ie.startangle+ie.stopangle)/2,Xe.scale>=1)return Xe;Ge.push(Xe)}(dt||ot)&&(Xe=ee(Fe,se,le,de,Me),Xe.textPosAngle=(ie.startangle+ie.stopangle)/2,Ge.push(Xe)),(dt||We)&&(Xe=J(Fe,se,le,de,Me),Xe.textPosAngle=(ie.startangle+ie.stopangle)/2,Ge.push(Xe));for(var tt=0,Ct=0,Gt=0;Gt=1)break}return Ge[tt]}function P(Fe,ie){var we=Fe.startangle,se=Fe.stopangle;return we>ie&&ie>se||we0?1:-1)/2,y:pe/(1+we*we/(se*se)),outside:!0}}function Se(Fe){var ie=Math.sqrt(Fe.titleBox.width*Fe.titleBox.width+Fe.titleBox.height*Fe.titleBox.height);return{x:Fe.cx,y:Fe.cy,scale:Fe.trace.hole*Fe.r*2/ie,tx:0,ty:-Fe.titleBox.height/2+Fe.trace.title.font.size}}function ce(Fe,ie){var we=1,se=1,ue,pe=Fe.trace,le={x:Fe.cx,y:Fe.cy},Te={tx:0,ty:0};Te.ty+=pe.title.font.size,ue=X(pe),pe.title.position.indexOf("top")!==-1?(le.y-=(1+ue)*Fe.r,Te.ty-=Fe.titleBox.height):pe.title.position.indexOf("bottom")!==-1&&(le.y+=(1+ue)*Fe.r);var de=ne(Fe.r,Fe.trace.aspectratio),Me=ie.w*(pe.domain.x[1]-pe.domain.x[0])/2;return pe.title.position.indexOf("left")!==-1?(Me=Me+de,le.x-=(1+ue)*de,Te.tx+=Fe.titleBox.width/2):pe.title.position.indexOf("center")!==-1?Me*=2:pe.title.position.indexOf("right")!==-1&&(Me=Me+de,le.x+=(1+ue)*de,Te.tx-=Fe.titleBox.width/2),we=Me/Fe.titleBox.width,se=fe(Fe,ie)/Fe.titleBox.height,{x:le.x,y:le.y,scale:Math.min(we,se),tx:Te.tx,ty:Te.ty}}function ne(Fe,ie){return Fe/(ie===void 0?1:ie)}function fe(Fe,ie){var we=Fe.trace,se=ie.h*(we.domain.y[1]-we.domain.y[0]);return Math.min(Fe.titleBox.height,se/2)}function X(Fe){var ie=Fe.pull;if(!ie)return 0;var we;if(Array.isArray(ie))for(ie=0,we=0;weie&&(ie=Fe.pull[we]);return ie}function ye(Fe,ie){var we,se,ue,pe,le,Te,de,Me,Re,ze,We,ot,dt;function Ge(ut,tt){return ut.pxmid[1]-tt.pxmid[1]}function Xe(ut,tt){return tt.pxmid[1]-ut.pxmid[1]}function qe(ut,tt){tt||(tt={});var Ct=tt.labelExtraY+(se?tt.yLabelMax:tt.yLabelMin),Gt=se?ut.yLabelMin:ut.yLabelMax,Yt=se?ut.yLabelMax:ut.yLabelMin,Nt=ut.cyFinal+le(ut.px0[1],ut.px1[1]),Ft=Ct-Gt,pn,_n,sn,Zn,an,Cn;if(Ft*de>0&&(ut.labelExtraY=Ft),!!Array.isArray(ie.pull))for(_n=0;_n=(S.castOption(ie.pull,sn.pts)||0))&&((ut.pxmid[1]-sn.pxmid[1])*de>0?(Zn=sn.cyFinal+le(sn.px0[1],sn.px1[1]),Ft=Zn-Gt-ut.labelExtraY,Ft*de>0&&(ut.labelExtraY+=Ft)):(Yt+ut.labelExtraY-Nt)*de>0&&(pn=3*Te*Math.abs(_n-ze.indexOf(ut)),an=sn.cxFinal+pe(sn.px0[0],sn.px1[0]),Cn=an+pn-(ut.cxFinal+ut.pxmid[0])-ut.labelExtraX,Cn*Te>0&&(ut.labelExtraX+=Cn)))}for(se=0;se<2;se++)for(ue=se?Ge:Xe,le=se?Math.max:Math.min,de=se?1:-1,we=0;we<2;we++){for(pe=we?Math.max:Math.min,Te=we?1:-1,Me=Fe[se][we],Me.sort(ue),Re=Fe[1-se][we],ze=Re.concat(Me),ot=[],We=0;We1?(Me=we.r,Re=Me/ue.aspectratio):(Re=we.r,Me=Re*ue.aspectratio),Me*=(1+ue.baseratio)/2,de=Me*Re}le=Math.min(le,de/we.vTotal)}for(se=0;seie.vTotal/2?1:0,Me.halfangle=Math.PI*Math.min(Me.v/ie.vTotal,.5),Me.ring=1-se.hole,Me.rInscribed=he(Me,ie))}function Ne(Fe,ie){return[Fe*Math.sin(ie),-Fe*Math.cos(ie)]}function Ve(Fe,ie,we){var se=Fe._fullLayout,ue=we.trace,pe=ue.texttemplate,le=ue.textinfo;if(!pe&&le&&le!=="none"){var Te=le.split("+"),de=function(tt){return Te.indexOf(tt)!==-1},Me=de("label"),Re=de("text"),ze=de("value"),We=de("percent"),ot=se.separators,dt;if(dt=Me?[ie.label]:[],Re){var Ge=S.getFirstFilled(ue.text,ie.pts);D(Ge)&&dt.push(Ge)}ze&&dt.push(S.formatPieValue(ie.v,ot)),We&&dt.push(S.formatPiePercent(ie.v/we.vTotal,ot)),ie.text=dt.join("
    ")}function Xe(tt){return{label:tt.label,value:tt.v,valueLabel:S.formatPieValue(tt.v,se.separators),percent:tt.v/we.vTotal,percentLabel:S.formatPiePercent(tt.v/we.vTotal,se.separators),color:tt.color,text:tt.text,customdata:u.castOption(ue,tt.i,"customdata")}}if(pe){var qe=u.castOption(ue,ie.i,"texttemplate");if(!qe)ie.text="";else{var gt=Xe(ie),ut=S.getFirstFilled(ue.text,ie.pts);(D(ut)||ut==="")&&(gt.text=ut),ie.text=u.texttemplateString(qe,gt,Fe._fullLayout._d3locale,gt,ue._meta||{})}}}function Oe(Fe,ie){var we=Fe.rotate*Math.PI/180,se=Math.cos(we),ue=Math.sin(we),pe=(ie.left+ie.right)/2,le=(ie.top+ie.bottom)/2;Fe.textX=pe*se-le*ue,Fe.textY=pe*ue+le*se,Fe.noCenter=!0}L.exports={plot:N,formatSliceLabel:Ve,transformInsideText:j,determineInsideTextFont:F,positionTitleOutside:ce,prerenderTitles:H,layoutAreas:Ce,attachFxHandlers:k,computeTransform:Oe}},8357:function(L,A,s){var m=s(9898),h=s(3463),l=s(2597).resizeText;L.exports=function(i){var u=i._fullLayout._pielayer.selectAll(".trace");l(i,u,"pie"),u.each(function(d){var g=d[0],v=g.trace,x=m.select(this);x.style({opacity:v.opacity}),x.selectAll("path.surface").each(function(C){m.select(this).call(h,C,v,i)})})}},3463:function(L,A,s){var m=s(7901),h=s(3581).castOption,l=s(2209);L.exports=function(i,u,d,g){var v=d.marker.line,x=h(v.color,u.pts)||m.defaultLine,C=h(v.width,u.pts)||0;i.call(l,u,d,g).style("stroke-width",C).call(m.stroke,x)}},5225:function(L,A,s){var m=s(1828);L.exports=function(l,c){for(var i=0;ice&&ae[fe].gap;)fe--;for(ye=ae[fe].s,ne=ae.length-1;ne>fe;ne--)ae[ne].s=ye;for(;cege[D]&&D=0;$--){var S=i[$];if(S.type==="scatter"&&S.xaxis===C.xaxis&&S.yaxis===C.yaxis){S.opacity=void 0;break}}}}}},7438:function(L,A,s){var m=s(1828),h=s(3972),l=s(2196),c=s(7581),i=s(4098),u=s(7513),d=s(3927),g=s(565),v=s(9508),x=s(1058),C=s(4039),_=s(2410),$=s(8908),S=s(1828).coercePattern;L.exports=function(D,N,M,k){function R(ae,Q){return m.coerce(D,N,l,ae,Q)}var F=u(D,N,k,R);if(F||(N.visible=!1),!!N.visible){d(D,N,k,R),R("xhoverformat"),R("yhoverformat");var H=g(D,N,k,R);k.scattermode==="group"&&N.orientation===void 0&&R("orientation","v");var j=!H&&F=Math.min(Re,ze)&&D<=Math.max(Re,ze)?0:1/0}var We=Math.max(3,Me.mrc||0),ot=1-1/We,dt=Math.abs(S.c2p(Me.x)-D);return dt=Math.min(Re,ze)&&N<=Math.max(Re,ze)?0:1/0}var We=Math.max(3,Me.mrc||0),ot=1-1/We,dt=Math.abs(O.c2p(Me.y)-N);return dtTe!=le>=Te&&(se=ie[Oe-1][0],ue=ie[Oe][0],le-pe&&(we=se+(ue-se)*(Te-pe)/(le-pe),Ce=Math.min(Ce,we),$e=Math.max($e,we)));Ce=Math.max(Ce,0),$e=Math.min($e,S._length);var de=i.defaultLine;return i.opacity($.fillcolor)?de=$.fillcolor:i.opacity(($.line||{}).color)&&(de=$.line.color),m.extendFlat(g,{distance:g.maxHoverDistance,x0:Ce,x1:$e,y0:Te,y1:Te,color:de,hovertemplate:!1}),delete g.index,$.text&&!Array.isArray($.text)?g.text=String($.text):g.text=$.name,[g]}}}},7368:function(L,A,s){var m=s(4098);L.exports={hasLines:m.hasLines,hasMarkers:m.hasMarkers,hasText:m.hasText,isBubble:m.isBubble,attributes:s(2196),layoutAttributes:s(1479),supplyDefaults:s(7438),crossTraceDefaults:s(462),supplyLayoutDefaults:s(9334),calc:s(7761).calc,crossTraceCalc:s(2626),arraysToCalcdata:s(5225),plot:s(7399),colorbar:s(4898),formatLabels:s(8225),style:s(6296).style,styleOnSelect:s(6296).styleOnSelect,hoverPoints:s(3720),selectPoints:s(8002),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:s(3612),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},1479:function(L){L.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}},9334:function(L,A,s){var m=s(1828),h=s(1479);L.exports=function(l,c){function i(d,g){return m.coerce(l,c,h,d,g)}var u=c.barmode==="group";c.scattermode==="group"&&i("scattergap",u?c.bargap:.2)}},1058:function(L,A,s){var m=s(1828).isArrayOrTypedArray,h=s(2869).hasColorscale,l=s(1586);L.exports=function(i,u,d,g,v,x){x||(x={});var C=(i.marker||{}).color;if(v("line.color",d),h(i,"line"))l(i,u,g,v,{prefix:"line.",cLetter:"c"});else{var _=(m(C)?!1:C)||d;v("line.color",_)}v("line.width"),x.noDash||v("line.dash"),x.backoff&&v("line.backoff")}},4621:function(L,A,s){var m=s(1424),h=s(606),l=h.BADNUM,c=h.LOG_CLIP,i=c+.5,u=c-.5,d=s(1828),g=d.segmentsIntersect,v=d.constrain,x=s(7581);L.exports=function(_,$){var S=$.trace||{},O=$.xaxis,D=$.yaxis,N=O.type==="log",M=D.type==="log",k=O._length,R=D._length,F=$.backoff,H=S.marker,j=$.connectGaps,P=$.baseTolerance,ee=$.shape,J=ee==="linear",K=S.fill&&S.fill!=="none",ae=[],Q=x.minTolerance,he=_.length,ge=new Array(he),Se=0,ce,ne,fe,X,ye,Ce,$e,ke,Ne,Ve,Oe,Fe,ie,we,se,ue;function pe(Tt){var Et=_[Tt];if(!Et)return!1;var fn=$.linearized?O.l2p(Et.x):O.c2p(Et.x),tn=$.linearized?D.l2p(Et.y):D.c2p(Et.y);if(fn===l){if(N&&(fn=O.c2p(Et.x,!0)),fn===l)return!1;M&&tn===l&&(fn*=Math.abs(O._m*R*(O._m>0?i:u)/(D._m*k*(D._m>0?i:u)))),fn*=1e3}if(tn===l){if(M&&(tn=D.c2p(Et.y,!0)),tn===l)return!1;tn*=1e3}return[fn,tn]}function le(Tt,Et,fn,tn){var Zt=fn-Tt,Dt=tn-Et,un=.5-Tt,Un=.5-Et,tr=Zt*Zt+Dt*Dt,Er=Zt*un+Dt*Un;if(Er>0&&Er1||Math.abs(un.y-fn[0][1])>1)&&(un=[un.x,un.y],tn&&Re(un,Tt)ot||Tt[1]Ge)return[v(Tt[0],We,ot),v(Tt[1],dt,Ge)]}function Ft(Tt,Et){if(Tt[0]===Et[0]&&(Tt[0]===We||Tt[0]===ot)||Tt[1]===Et[1]&&(Tt[1]===dt||Tt[1]===Ge))return!0}function pn(Tt,Et){var fn=[],tn=Nt(Tt),Zt=Nt(Et);return tn&&Zt&&Ft(tn,Zt)||(tn&&fn.push(tn),Zt&&fn.push(Zt)),fn}function _n(Tt,Et,fn){return function(tn,Zt){var Dt=Nt(tn),un=Nt(Zt),Un=[];if(Dt&&un&&Ft(Dt,un))return Un;Dt&&Un.push(Dt),un&&Un.push(un);var tr=2*d.constrain((tn[Tt]+Zt[Tt])/2,Et,fn)-((Dt||tn)[Tt]+(un||Zt)[Tt]);if(tr){var Er;Dt&&un?Er=tr>0==Dt[Tt]>un[Tt]?Dt:un:Er=Dt||un,Er[Tt]+=tr}return Un}}var sn;ee==="linear"||ee==="spline"?sn=Yt:ee==="hv"||ee==="vh"?sn=pn:ee==="hvh"?sn=_n(0,We,ot):ee==="vhv"&&(sn=_n(1,dt,Ge));function Zn(Tt,Et){var fn=Et[0]-Tt[0],tn=(Et[1]-Tt[1])/fn,Zt=(Tt[1]*Et[0]-Et[1]*Tt[0])/fn;return Zt>0?[tn>0?We:ot,Ge]:[tn>0?ot:We,dt]}function an(Tt){var Et=Tt[0],fn=Tt[1],tn=Et===ge[Se-1][0],Zt=fn===ge[Se-1][1];if(!(tn&&Zt))if(Se>1){var Dt=Et===ge[Se-2][0],un=fn===ge[Se-2][1];tn&&(Et===We||Et===ot)&&Dt?un?Se--:ge[Se-1]=Tt:Zt&&(fn===dt||fn===Ge)&&un?Dt?Se--:ge[Se-1]=Tt:ge[Se++]=Tt}else ge[Se++]=Tt}function Cn(Tt){ge[Se-1][0]!==Tt[0]&&ge[Se-1][1]!==Tt[1]&&an([ut,tt]),an(Tt),Ct=null,ut=tt=0}var jn=d.isArrayOrTypedArray(H);function Wn(Tt){if(Tt&&F&&(Tt.i=ce,Tt.d=_,Tt.trace=S,Tt.marker=jn?H[Tt.i]:H,Tt.backoff=F),Te=Tt[0]/k,de=Tt[1]/R,qe=Tt[0]ot?ot:0,gt=Tt[1]Ge?Ge:0,qe||gt){if(!Se)ge[Se++]=[qe||Tt[0],gt||Tt[1]];else if(Ct){var Et=sn(Ct,Tt);Et.length>1&&(Cn(Et[0]),ge[Se++]=Et[1])}else Gt=sn(ge[Se-1],Tt)[0],ge[Se++]=Gt;var fn=ge[Se-1];qe&>&&(fn[0]!==qe||fn[1]!==gt)?(Ct&&(ut!==qe&&tt!==gt?an(ut&&tt?Zn(Ct,Tt):[ut||qe,tt||gt]):ut&&tt&&an([ut,tt])),an([qe,gt])):ut-qe&&tt-gt&&an([qe||ut,gt||tt]),Ct=Tt,ut=qe,tt=gt}else Ct&&Cn(sn(Ct,Tt)[0]),ge[Se++]=Tt}for(ce=0;ceMe(Ce,wn))break;fe=Ce,ie=Ne[0]*ke[0]+Ne[1]*ke[1],ie>Oe?(Oe=ie,X=Ce,$e=!1):ie=_.length||!Ce)break;Wn(Ce),ne=Ce}}Ct&&an([ut||Ct[0],tt||Ct[1]]),ae.push(ge.slice(0,Se))}var lt=ee.slice(ee.length-1);if(F&<!=="h"&<!=="v"){for(var ft=!1,wt=-1,vt=[],$t=0;$t=0?g=$:(g=$=_,_++),g0?Math.max(x,d):0}}},4898:function(L){L.exports={container:"marker",min:"cmin",max:"cmax"}},9508:function(L,A,s){var m=s(7901),h=s(2869).hasColorscale,l=s(1586),c=s(4098);L.exports=function(u,d,g,v,x,C){var _=c.isBubble(u),$=(u.line||{}).color,S;if(C=C||{},$&&(g=$),x("marker.symbol"),x("marker.opacity",_?.7:1),x("marker.size"),C.noAngle||(x("marker.angle"),C.noAngleRef||x("marker.angleref"),C.noStandOff||x("marker.standoff")),x("marker.color",g),h(u,"marker")&&l(u,d,v,x,{prefix:"marker.",cLetter:"c"}),C.noSelect||(x("selected.marker.color"),x("unselected.marker.color"),x("selected.marker.size"),x("unselected.marker.size")),C.noLine||($&&!Array.isArray($)&&d.marker.color!==$?S=$:_?S=m.background:S=m.defaultLine,x("marker.line.color",S),h(u,"marker.line")&&l(u,d,v,x,{prefix:"marker.line.",cLetter:"c"}),x("marker.line.width",_?1:0)),_&&(x("marker.sizeref"),x("marker.sizemin"),x("marker.sizemode")),C.gradient){var O=x("marker.gradient.type");O!=="none"&&x("marker.gradient.color")}}},3927:function(L,A,s){var m=s(1828).dateTick0,h=s(606),l=h.ONEWEEK;function c(i,u){return i%l===0?m(u,1):m(u,0)}L.exports=function(u,d,g,v,x){if(x||(x={x:!0,y:!0}),x.x){var C=v("xperiod");C&&(v("xperiod0",c(C,d.xcalendar)),v("xperiodalignment"))}if(x.y){var _=v("yperiod");_&&(v("yperiod0",c(_,d.ycalendar)),v("yperiodalignment"))}}},7399:function(L,A,s){var m=s(9898),h=s(3972),l=s(1828),c=l.ensureSingle,i=l.identity,u=s(1424),d=s(4098),g=s(4621),v=s(8687),x=s(1082).tester;L.exports=function(O,D,N,M,k,R){var F,H,j=!k,P=!!k&&k.duration>0,ee=v(O,D,N);if(F=M.selectAll("g.trace").data(ee,function(K){return K[0].trace.uid}),F.enter().append("g").attr("class",function(K){return"trace scatter trace"+K[0].trace.uid}).style("stroke-miterlimit",2),F.order(),C(O,F,D),P){R&&(H=R());var J=m.transition().duration(k.duration).ease(k.easing).each("end",function(){H&&H()}).each("interrupt",function(){H&&H()});J.each(function(){M.selectAll("g.trace").each(function(K,ae){_(O,ae,D,K,ee,this,k)})})}else F.each(function(K,ae){_(O,ae,D,K,ee,this,k)});j&&F.exit().remove(),M.selectAll("path:not([d])").remove()};function C(S,O,D){O.each(function(N){var M=c(m.select(this),"g","fills");u.setClipUrl(M,D.layerClipId,S);var k=N[0].trace,R=[];k._ownfill&&R.push("_ownFill"),k._nexttrace&&R.push("_nextFill");var F=M.selectAll("g").data(R,i);F.enter().append("g"),F.exit().each(function(H){k[H]=null}).remove(),F.order().each(function(H){k[H]=c(m.select(this),"path","js-fill")})})}function _(S,O,D,N,M,k,R){var F=S._context.staticPlot,H;$(S,O,D,N,M);var j=!!R&&R.duration>0;function P(tt){return j?tt.transition():tt}var ee=D.xaxis,J=D.yaxis,K=N[0].trace,ae=K.line,Q=m.select(k),he=c(Q,"g","errorbars"),ge=c(Q,"g","lines"),Se=c(Q,"g","points"),ce=c(Q,"g","text");if(h.getComponentMethod("errorbars","plot")(S,he,D,R),K.visible!==!0)return;P(Q).style("opacity",K.opacity);var ne,fe,X=K.fill.charAt(K.fill.length-1);X!=="x"&&X!=="y"&&(X=""),N[0][D.isRangePlot?"nodeRangePlot3":"node3"]=Q;var ye="",Ce=[],$e=K._prevtrace;$e&&(ye=$e._prevRevpath||"",fe=$e._nextFill,Ce=$e._polygons);var ke,Ne,Ve="",Oe="",Fe,ie,we,se,ue,pe,le,Te=[],de=l.noop;if(ne=K._ownFill,d.hasLines(K)||K.fill!=="none"){for(fe&&fe.datum(N),["hv","vh","hvh","vhv"].indexOf(ae.shape)!==-1?(Fe=u.steps(ae.shape),ie=u.steps(ae.shape.split("").reverse().join(""))):ae.shape==="spline"?Fe=ie=function(tt){var Ct=tt[tt.length-1];return tt.length>1&&tt[0][0]===Ct[0]&&tt[0][1]===Ct[1]?u.smoothclosed(tt.slice(1),ae.smoothing):u.smoothopen(tt,ae.smoothing)}:Fe=ie=function(tt){return"M"+tt.join("L")},we=function(tt){return ie(tt.reverse())},Te=g(N,{xaxis:ee,yaxis:J,trace:K,connectGaps:K.connectgaps,baseTolerance:Math.max(ae.width||1,3)/4,shape:ae.shape,backoff:ae.backoff,simplify:ae.simplify,fill:K.fill}),le=K._polygons=new Array(Te.length),H=0;H=F[0]&&Q.x<=F[1]&&Q.y>=H[0]&&Q.y<=H[1]}),J=Math.ceil(ee.length/P),K=0;M.forEach(function(Q,he){var ge=Q[0].trace;d.hasMarkers(ge)&&ge.marker.maxdisplayed>0&&heF&&(F=ee,H=P)}}return F?N(H):i};case"rms":return function(M,k){for(var R=0,F=0,H=0;H":return function(R){return M(R)>k};case">=":return function(R){return M(R)>=k};case"[]":return function(R){var F=M(R);return F>=k[0]&&F<=k[1]};case"()":return function(R){var F=M(R);return F>k[0]&&F=k[0]&&Fk[0]&&F<=k[1]};case"][":return function(R){var F=M(R);return F<=k[0]||F>=k[1]};case")(":return function(R){var F=M(R);return Fk[1]};case"](":return function(R){var F=M(R);return F<=k[0]||F>k[1]};case")[":return function(R){var F=M(R);return F=k[1]};case"{}":return function(R){return k.indexOf(M(R))!==-1};case"}{":return function(R){return k.indexOf(M(R))===-1}}}},3102:function(L,A,s){var m=s(1828),h=s(6281),l=s(4875),c=s(9344).p;A.moduleType="transform",A.name="groupby",A.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"data_array",dflt:[],editType:"calc"},nameformat:{valType:"string",editType:"calc"},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc"},value:{valType:"any",dflt:{},editType:"calc",_compareAsJSON:!0},editType:"calc"},editType:"calc"},A.supplyDefaults=function(u,d,g){var v,x={};function C(N,M){return m.coerce(u,x,A.attributes,N,M)}var _=C("enabled");if(!_)return x;C("groups"),C("nameformat",g._dataLength>1?"%{group} (%{trace})":"%{group}");var $=u.styles,S=x.styles=[];if($)for(v=0;v<$.length;v++){var O=S[v]={};m.coerce($[v],S[v],A.attributes.styles,"target");var D=m.coerce($[v],S[v],A.attributes.styles,"value");m.isPlainObject(D)?O.value=m.extendDeep({},D):D&&delete O.value}return x},A.transform=function(u,d){var g,v,x,C=[];for(v=0;v1&&c.indexOf("Macintosh")!==-1&&c.indexOf("Safari")!==-1&&(i=!0),i}},9898:function(L,A,s){var m,h;(function(){var l={version:"3.8.0"},c=[].slice,i=function(U){return c.call(U)},u=self.document;function d(U){return U&&(U.ownerDocument||U.document||U).documentElement}function g(U){return U&&(U.ownerDocument&&U.ownerDocument.defaultView||U.document&&U||U.defaultView)}if(u)try{i(u.documentElement.childNodes)[0].nodeType}catch{i=function(q){for(var ve=q.length,Ae=new Array(ve);ve--;)Ae[ve]=q[ve];return Ae}}if(Date.now||(Date.now=function(){return+new Date}),u)try{u.createElement("DIV").style.setProperty("opacity",0,"")}catch{var v=this.Element.prototype,x=v.setAttribute,C=v.setAttributeNS,_=this.CSSStyleDeclaration.prototype,$=_.setProperty;v.setAttribute=function(q,ve){x.call(this,q,ve+"")},v.setAttributeNS=function(q,ve,Ae){C.call(this,q,ve,Ae+"")},_.setProperty=function(q,ve,Ae){$.call(this,q,ve+"",Ae)}}l.ascending=S;function S(U,q){return Uq?1:U>=q?0:NaN}l.descending=function(U,q){return qU?1:q>=U?0:NaN},l.min=function(U,q){var ve=-1,Ae=U.length,_e,Ie;if(arguments.length===1){for(;++ve=Ie){_e=Ie;break}for(;++veIe&&(_e=Ie)}else{for(;++ve=Ie){_e=Ie;break}for(;++veIe&&(_e=Ie)}return _e},l.max=function(U,q){var ve=-1,Ae=U.length,_e,Ie;if(arguments.length===1){for(;++ve=Ie){_e=Ie;break}for(;++ve_e&&(_e=Ie)}else{for(;++ve=Ie){_e=Ie;break}for(;++ve_e&&(_e=Ie)}return _e},l.extent=function(U,q){var ve=-1,Ae=U.length,_e,Ie,Qe;if(arguments.length===1){for(;++ve=Ie){_e=Qe=Ie;break}for(;++veIe&&(_e=Ie),Qe=Ie){_e=Qe=Ie;break}for(;++veIe&&(_e=Ie),Qe1)return Qe/(rt-1)},l.deviation=function(){var U=l.variance.apply(this,arguments);return U&&Math.sqrt(U)};function N(U){return{left:function(q,ve,Ae,_e){for(arguments.length<3&&(Ae=0),arguments.length<4&&(_e=q.length);Ae<_e;){var Ie=Ae+_e>>>1;U(q[Ie],ve)<0?Ae=Ie+1:_e=Ie}return Ae},right:function(q,ve,Ae,_e){for(arguments.length<3&&(Ae=0),arguments.length<4&&(_e=q.length);Ae<_e;){var Ie=Ae+_e>>>1;U(q[Ie],ve)>0?_e=Ie:Ae=Ie+1}return Ae}}}var M=N(S);l.bisectLeft=M.left,l.bisect=l.bisectRight=M.right,l.bisector=function(U){return N(U.length===1?function(q,ve){return S(U(q),ve)}:U)},l.shuffle=function(U,q,ve){(Ae=arguments.length)<3&&(ve=U.length,Ae<2&&(q=0));for(var Ae=ve-q,_e,Ie;Ae;)Ie=Math.random()*Ae--|0,_e=U[Ae+q],U[Ae+q]=U[Ie+q],U[Ie+q]=_e;return U},l.permute=function(U,q){for(var ve=q.length,Ae=new Array(ve);ve--;)Ae[ve]=U[q[ve]];return Ae},l.pairs=function(U){for(var q=0,ve=U.length-1,Ae=U[0],_e=new Array(ve<0?0:ve);q=0;)for(Qe=U[q],ve=Qe.length;--ve>=0;)Ie[--_e]=Qe[ve];return Ie};var R=Math.abs;l.range=function(U,q,ve){if(arguments.length<3&&(ve=1,arguments.length<2&&(q=U,U=0)),(q-U)/ve===1/0)throw new Error("infinite range");var Ae=[],_e=F(R(ve)),Ie=-1,Qe;if(U*=_e,q*=_e,ve*=_e,ve<0)for(;(Qe=U+ve*++Ie)>q;)Ae.push(Qe/_e);else for(;(Qe=U+ve*++Ie)=q.length)return _e?_e.call(U,rt):Ae?rt.sort(Ae):rt;for(var bt=-1,Vt=rt.length,Wt=q[yt++],mn,An,Kt,en=new j,dn;++bt=q.length)return Ye;var yt=[],bt=ve[rt++];return Ye.forEach(function(Vt,Wt){yt.push({key:Vt,values:Qe(Wt,rt)})}),bt?yt.sort(function(Vt,Wt){return bt(Vt.key,Wt.key)}):yt}return U.map=function(Ye,rt){return Ie(rt,Ye,0)},U.entries=function(Ye){return Qe(Ie(l.map,Ye,0),0)},U.key=function(Ye){return q.push(Ye),U},U.sortKeys=function(Ye){return ve[q.length-1]=Ye,U},U.sortValues=function(Ye){return Ae=Ye,U},U.rollup=function(Ye){return _e=Ye,U},U},l.set=function(U){var q=new ce;if(U)for(var ve=0,Ae=U.length;ve=0&&(Ae=U.slice(ve+1),U=U.slice(0,ve)),U)return arguments.length<2?this[U].on(Ae):this[U].on(Ae,q);if(arguments.length===2){if(q==null)for(U in this)this.hasOwnProperty(U)&&this[U].on(Ae,null);return this}};function ke(U){var q=[],ve=new j;function Ae(){for(var _e=q,Ie=-1,Qe=_e.length,Ye;++Ie=0&&(ve=U.slice(0,q))!=="xmlns"&&(U=U.slice(q+1)),Re.hasOwnProperty(ve)?{space:Re[ve],local:U}:U}},le.attr=function(U,q){if(arguments.length<2){if(typeof U=="string"){var ve=this.node();return U=l.ns.qualify(U),U.local?ve.getAttributeNS(U.space,U.local):ve.getAttribute(U)}for(q in U)this.each(ze(q,U[q]));return this}return this.each(ze(U,q))};function ze(U,q){U=l.ns.qualify(U);function ve(){this.removeAttribute(U)}function Ae(){this.removeAttributeNS(U.space,U.local)}function _e(){this.setAttribute(U,q)}function Ie(){this.setAttributeNS(U.space,U.local,q)}function Qe(){var rt=q.apply(this,arguments);rt==null?this.removeAttribute(U):this.setAttribute(U,rt)}function Ye(){var rt=q.apply(this,arguments);rt==null?this.removeAttributeNS(U.space,U.local):this.setAttributeNS(U.space,U.local,rt)}return q==null?U.local?Ae:ve:typeof q=="function"?U.local?Ye:Qe:U.local?Ie:_e}function We(U){return U.trim().replace(/\s+/g," ")}le.classed=function(U,q){if(arguments.length<2){if(typeof U=="string"){var ve=this.node(),Ae=(U=dt(U)).length,_e=-1;if(q=ve.classList){for(;++_e=0;)(Ie=ve[Ae])&&(_e&&_e!==Ie.nextSibling&&_e.parentNode.insertBefore(Ie,_e),_e=Ie);return this},le.sort=function(U){U=Yt.apply(this,arguments);for(var q=-1,ve=this.length;++q=q&&(q=_e+1);!(rt=Qe[q])&&++q0&&(U=U.slice(0,_e));var Qe=Zn.get(U);Qe&&(U=Qe,Ie=Cn);function Ye(){var bt=this[Ae];bt&&(this.removeEventListener(U,bt,bt.$),delete this[Ae])}function rt(){var bt=Ie(q,i(arguments));Ye.call(this),this.addEventListener(U,this[Ae]=bt,bt.$=ve),bt._=q}function yt(){var bt=new RegExp("^__on([^.]+)"+l.requote(U)+"$"),Vt;for(var Wt in this)if(Vt=Wt.match(bt)){var mn=this[Wt];this.removeEventListener(Vt[1],mn,mn.$),delete this[Wt]}}return _e?q?rt:Ye:q?Ce:yt}var Zn=l.map({mouseenter:"mouseover",mouseleave:"mouseout"});u&&Zn.forEach(function(U){"on"+U in u&&Zn.remove(U)});function an(U,q){return function(ve){var Ae=l.event;l.event=ve,q[0]=this.__data__;try{U.apply(this,q)}finally{l.event=Ae}}}function Cn(U,q){var ve=an(U,q);return function(Ae){var _e=this,Ie=Ae.relatedTarget;(!Ie||Ie!==_e&&!(Ie.compareDocumentPosition(_e)&8))&&ve.call(_e,Ae)}}var jn,Wn=0;function wn(U){var q=".dragsuppress-"+ ++Wn,ve="click"+q,Ae=l.select(g(U)).on("touchmove"+q,Ne).on("dragstart"+q,Ne).on("selectstart"+q,Ne);if(jn==null&&(jn="onselectstart"in U?!1:X(U.style,"userSelect")),jn){var _e=d(U).style,Ie=_e[jn];_e[jn]="none"}return function(Qe){if(Ae.on(q,null),jn&&(_e[jn]=Ie),Qe){var Ye=function(){Ae.on(ve,null)};Ae.on(ve,function(){Ne(),Ye()},!0),setTimeout(Ye,0)}}}l.mouse=function(U){return ft(U,Ve())};var lt=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ft(U,q){q.changedTouches&&(q=q.changedTouches[0]);var ve=U.ownerSVGElement||U;if(ve.createSVGPoint){var Ae=ve.createSVGPoint();if(lt<0){var _e=g(U);if(_e.scrollX||_e.scrollY){ve=l.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var Ie=ve[0][0].getScreenCTM();lt=!(Ie.f||Ie.e),ve.remove()}}return lt?(Ae.x=q.pageX,Ae.y=q.pageY):(Ae.x=q.clientX,Ae.y=q.clientY),Ae=Ae.matrixTransform(U.getScreenCTM().inverse()),[Ae.x,Ae.y]}var Qe=U.getBoundingClientRect();return[q.clientX-Qe.left-U.clientLeft,q.clientY-Qe.top-U.clientTop]}l.touch=function(U,q,ve){if(arguments.length<3&&(ve=q,q=Ve().changedTouches),q){for(var Ae=0,_e=q.length,Ie;Ae<_e;++Ae)if((Ie=q[Ae]).identifier===ve)return ft(U,Ie)}},l.behavior.drag=function(){var U=Oe(_e,"drag","dragstart","dragend"),q=null,ve=Ie(Ce,l.mouse,g,"mousemove","mouseup"),Ae=Ie(wt,l.touch,ne,"touchmove","touchend");function _e(){this.on("mousedown.drag",ve).on("touchstart.drag",Ae)}function Ie(Qe,Ye,rt,yt,bt){return function(){var Vt=this,Wt=l.event.target.correspondingElement||l.event.target,mn=Vt.parentNode,An=U.of(Vt,arguments),Kt=0,en=Qe(),dn=".drag"+(en==null?"":"-"+en),Rn,Mn=l.select(rt(Wt)).on(yt+dn,zr).on(bt+dn,Jr),vn=wn(Wt),lr=Ye(mn,en);q?(Rn=q.apply(Vt,arguments),Rn=[Rn.x-lr[0],Rn.y-lr[1]]):Rn=[0,0],An({type:"dragstart"});function zr(){var kr=Ye(mn,en),eo,lo;kr&&(eo=kr[0]-lr[0],lo=kr[1]-lr[1],Kt|=eo|lo,lr=kr,An({type:"drag",x:kr[0]+Rn[0],y:kr[1]+Rn[1],dx:eo,dy:lo}))}function Jr(){Ye(mn,en)&&(Mn.on(yt+dn,null).on(bt+dn,null),vn(Kt),An({type:"dragend"}))}}}return _e.origin=function(Qe){return arguments.length?(q=Qe,_e):q},l.rebind(_e,U,"on")};function wt(){return l.event.changedTouches[0].identifier}l.touches=function(U,q){return arguments.length<2&&(q=Ve().touches),q?i(q).map(function(ve){var Ae=ft(U,ve);return Ae.identifier=ve.identifier,Ae}):[]};var vt=1e-6,$t=vt*vt,Ze=Math.PI,it=2*Ze,ht=it-vt,pt=Ze/2,Tt=Ze/180,Et=180/Ze;function fn(U,q,ve){return(q[0]-U[0])*(ve[1]-U[1])-(q[1]-U[1])*(ve[0]-U[0])}function tn(U){return U>1?pt:U<-1?-pt:Math.asin(U)}function Zt(U){return((U=Math.exp(U))-1/U)/2}function Dt(U){return((U=Math.exp(U))+1/U)/2}function un(U){return((U=Math.exp(2*U))-1)/(U+1)}var Un=Math.SQRT2,tr=2,Er=4;l.interpolateZoom=function(U,q){var ve=U[0],Ae=U[1],_e=U[2],Ie=q[0],Qe=q[1],Ye=q[2],rt=Ie-ve,yt=Qe-Ae,bt=rt*rt+yt*yt,Vt,Wt;if(bt<$t)Wt=Math.log(Ye/_e)/Un,Vt=function(Rn){return[ve+Rn*rt,Ae+Rn*yt,_e*Math.exp(Un*Rn*Wt)]};else{var mn=Math.sqrt(bt),An=(Ye*Ye-_e*_e+Er*bt)/(2*_e*tr*mn),Kt=(Ye*Ye-_e*_e-Er*bt)/(2*Ye*tr*mn),en=Math.log(Math.sqrt(An*An+1)-An),dn=Math.log(Math.sqrt(Kt*Kt+1)-Kt);Wt=(dn-en)/Un,Vt=function(Rn){var Mn=Rn*Wt,vn=Dt(en),lr=_e/(tr*mn)*(vn*un(Un*Mn+en)-Zt(en));return[ve+lr*rt,Ae+lr*yt,_e*vn/Dt(Un*Mn+en)]}}return Vt.duration=Wt*1e3,Vt},l.behavior.zoom=function(){var U={x:0,y:0,k:1},q,ve,Ae,_e=[960,500],Ie=zt,Qe=250,Ye=0,rt="mousedown.zoom",yt="mousemove.zoom",bt="mouseup.zoom",Vt,Wt="touchstart.zoom",mn,An=Oe(Mn,"zoomstart","zoom","zoomend"),Kt,en,dn,Rn;Gn||(Gn="onwheel"in u?(pr=function(){return-l.event.deltaY*(l.event.deltaMode?120:1)},"wheel"):"onmousewheel"in u?(pr=function(){return l.event.wheelDelta},"mousewheel"):(pr=function(){return-l.event.detail},"MozMousePixelScroll"));function Mn($r){$r.on(rt,fo).on(Gn+".zoom",Vs).on("dblclick.zoom",is).on(Wt,Ha)}Mn.event=function($r){$r.each(function(){var _o=An.of(this,arguments),sa=U;Zf?l.select(this).transition().each("start.zoom",function(){U=this.__chart__||{x:0,y:0,k:1},lo(_o)}).tween("zoom:zoom",function(){var Ca=_e[0],As=_e[1],qs=ve?ve[0]:Ca/2,Di=ve?ve[1]:As/2,xi=l.interpolateZoom([(qs-U.x)/U.k,(Di-U.y)/U.k,Ca/U.k],[(qs-sa.x)/sa.k,(Di-sa.y)/sa.k,Ca/sa.k]);return function(xc){var Ii=xi(xc),tc=Ca/Ii[2];this.__chart__=U={x:qs-Ii[0]*tc,y:Di-Ii[1]*tc,k:tc},Ko(_o)}}).each("interrupt.zoom",function(){yo(_o)}).each("end.zoom",function(){yo(_o)}):(this.__chart__=U,lo(_o),Ko(_o),yo(_o))})},Mn.translate=function($r){return arguments.length?(U={x:+$r[0],y:+$r[1],k:U.k},eo(),Mn):[U.x,U.y]},Mn.scale=function($r){return arguments.length?(U={x:U.x,y:U.y,k:null},zr(+$r),eo(),Mn):U.k},Mn.scaleExtent=function($r){return arguments.length?(Ie=$r==null?zt:[+$r[0],+$r[1]],Mn):Ie},Mn.center=function($r){return arguments.length?(Ae=$r&&[+$r[0],+$r[1]],Mn):Ae},Mn.size=function($r){return arguments.length?(_e=$r&&[+$r[0],+$r[1]],Mn):_e},Mn.duration=function($r){return arguments.length?(Qe=+$r,Mn):Qe},Mn.x=function($r){return arguments.length?(en=$r,Kt=$r.copy(),U={x:0,y:0,k:1},Mn):en},Mn.y=function($r){return arguments.length?(Rn=$r,dn=$r.copy(),U={x:0,y:0,k:1},Mn):Rn};function vn($r){return[($r[0]-U.x)/U.k,($r[1]-U.y)/U.k]}function lr($r){return[$r[0]*U.k+U.x,$r[1]*U.k+U.y]}function zr($r){U.k=Math.max(Ie[0],Math.min(Ie[1],$r))}function Jr($r,_o){_o=lr(_o),U.x+=$r[0]-_o[0],U.y+=$r[1]-_o[1]}function kr($r,_o,sa,Ca){$r.__chart__={x:U.x,y:U.y,k:U.k},zr(Math.pow(2,Ca)),Jr(ve=_o,sa),$r=l.select($r),Qe>0&&($r=$r.transition().duration(Qe)),$r.call(Mn.event)}function eo(){en&&en.domain(Kt.range().map(function($r){return($r-U.x)/U.k}).map(Kt.invert)),Rn&&Rn.domain(dn.range().map(function($r){return($r-U.y)/U.k}).map(dn.invert))}function lo($r){Ye++||$r({type:"zoomstart"})}function Ko($r){eo(),$r({type:"zoom",scale:U.k,translate:[U.x,U.y]})}function yo($r){--Ye||($r({type:"zoomend"}),ve=null)}function fo(){var $r=this,_o=An.of($r,arguments),sa=0,Ca=l.select(g($r)).on(yt,Di).on(bt,xi),As=vn(l.mouse($r)),qs=wn($r);Ol.call($r),lo(_o);function Di(){sa=1,Jr(l.mouse($r),As),Ko(_o)}function xi(){Ca.on(yt,null).on(bt,null),qs(sa),yo(_o)}}function Ha(){var $r=this,_o=An.of($r,arguments),sa={},Ca=0,As,qs=".zoom-"+l.event.changedTouches[0].identifier,Di="touchmove"+qs,xi="touchend"+qs,xc=[],Ii=l.select($r),tc=wn($r);Ga(),lo(_o),Ii.on(rt,null).on(Wt,Ga);function Cl(){var Sl=l.touches($r);return As=U.k,Sl.forEach(function(wi){wi.identifier in sa&&(sa[wi.identifier]=vn(wi))}),Sl}function Ga(){var Sl=l.event.target;l.select(Sl).on(Di,xu).on(xi,qu),xc.push(Sl);for(var wi=l.event.changedTouches,Tl=0,Ci=wi.length;Tl1){var Yf=Za[0],wu=Za[1],Th=Yf[0]-wu[0],Kf=Yf[1]-wu[1];Ca=Th*Th+Kf*Kf}}function xu(){var Sl=l.touches($r),wi,Tl,Ci,Za;Ol.call($r);for(var nc=0,Yf=Sl.length;nc1?1:q,ve=ve<0?0:ve>1?1:ve,_e=ve<=.5?ve*(1+q):ve+q-ve*q,Ae=2*ve-_e;function Ie(Ye){return Ye>360?Ye-=360:Ye<0&&(Ye+=360),Ye<60?Ae+(_e-Ae)*Ye/60:Ye<180?_e:Ye<240?Ae+(_e-Ae)*(240-Ye)/60:Ae}function Qe(Ye){return Math.round(Ie(Ye)*255)}return new Ut(Qe(U+120),Qe(U),Qe(U-120))}l.hcl=_r;function _r(U,q,ve){return this instanceof _r?(this.h=+U,this.c=+q,void(this.l=+ve)):arguments.length<2?U instanceof _r?new _r(U.h,U.c,U.l):U instanceof or?St(U.l,U.a,U.b):St((U=Sn((U=l.rgb(U)).r,U.g,U.b)).l,U.a,U.b):new _r(U,q,ve)}var Ln=_r.prototype=new Ir;Ln.brighter=function(U){return new _r(this.h,this.c,Math.min(100,this.l+wr*(arguments.length?U:1)))},Ln.darker=function(U){return new _r(this.h,this.c,Math.max(0,this.l-wr*(arguments.length?U:1)))},Ln.rgb=function(){return xr(this.h,this.c,this.l).rgb()};function xr(U,q,ve){return isNaN(U)&&(U=0),isNaN(q)&&(q=0),new or(ve,Math.cos(U*=Tt)*q,Math.sin(U)*q)}l.lab=or;function or(U,q,ve){return this instanceof or?(this.l=+U,this.a=+q,void(this.b=+ve)):arguments.length<2?U instanceof or?new or(U.l,U.a,U.b):U instanceof _r?xr(U.h,U.c,U.l):Sn((U=Ut(U)).r,U.g,U.b):new or(U,q,ve)}var wr=18,ro=.95047,vo=1,Cr=1.08883,He=or.prototype=new Ir;He.brighter=function(U){return new or(Math.min(100,this.l+wr*(arguments.length?U:1)),this.a,this.b)},He.darker=function(U){return new or(Math.max(0,this.l-wr*(arguments.length?U:1)),this.a,this.b)},He.rgb=function(){return De(this.l,this.a,this.b)};function De(U,q,ve){var Ae=(U+16)/116,_e=Ae+q/500,Ie=Ae-ve/200;return _e=kt(_e)*ro,Ae=kt(Ae)*vo,Ie=kt(Ie)*Cr,new Ut(Bt(3.2404542*_e-1.5371385*Ae-.4985314*Ie),Bt(-.969266*_e+1.8760108*Ae+.041556*Ie),Bt(.0556434*_e-.2040259*Ae+1.0572252*Ie))}function St(U,q,ve){return U>0?new _r(Math.atan2(ve,q)*Et,Math.sqrt(q*q+ve*ve),U):new _r(NaN,NaN,U)}function kt(U){return U>.206893034?U*U*U:(U-.13793103448275862)/7.787037}function Pt(U){return U>.008856?Math.pow(U,.3333333333333333):7.787037*U+.13793103448275862}function Bt(U){return Math.round(255*(U<=.00304?12.92*U:1.055*Math.pow(U,.4166666666666667)-.055))}l.rgb=Ut;function Ut(U,q,ve){return this instanceof Ut?(this.r=~~U,this.g=~~q,void(this.b=~~ve)):arguments.length<2?U instanceof Ut?new Ut(U.r,U.g,U.b):Qt(""+U,Ut,Yr):new Ut(U,q,ve)}function Ot(U){return new Ut(U>>16,U>>8&255,U&255)}function _t(U){return Ot(U)+""}var qt=Ut.prototype=new Ir;qt.brighter=function(U){U=Math.pow(.7,arguments.length?U:1);var q=this.r,ve=this.g,Ae=this.b,_e=30;return!q&&!ve&&!Ae?new Ut(_e,_e,_e):(q&&q<_e&&(q=_e),ve&&ve<_e&&(ve=_e),Ae&&Ae<_e&&(Ae=_e),new Ut(Math.min(255,q/U),Math.min(255,ve/U),Math.min(255,Ae/U)))},qt.darker=function(U){return U=Math.pow(.7,arguments.length?U:1),new Ut(U*this.r,U*this.g,U*this.b)},qt.hsl=function(){return nn(this.r,this.g,this.b)},qt.toString=function(){return"#"+cn(this.r)+cn(this.g)+cn(this.b)};function cn(U){return U<16?"0"+Math.max(0,U).toString(16):Math.min(255,U).toString(16)}function Qt(U,q,ve){var Ae=0,_e=0,Ie=0,Qe,Ye,rt;if(Qe=/([a-z]+)\((.*)\)/.exec(U=U.toLowerCase()),Qe)switch(Ye=Qe[2].split(","),Qe[1]){case"hsl":return ve(parseFloat(Ye[0]),parseFloat(Ye[1])/100,parseFloat(Ye[2])/100);case"rgb":return q(gn(Ye[0]),gn(Ye[1]),gn(Ye[2]))}return(rt=Qn.get(U))?q(rt.r,rt.g,rt.b):(U!=null&&U.charAt(0)==="#"&&!isNaN(rt=parseInt(U.slice(1),16))&&(U.length===4?(Ae=(rt&3840)>>4,Ae=Ae>>4|Ae,_e=rt&240,_e=_e>>4|_e,Ie=rt&15,Ie=Ie<<4|Ie):U.length===7&&(Ae=(rt&16711680)>>16,_e=(rt&65280)>>8,Ie=rt&255)),q(Ae,_e,Ie))}function nn(U,q,ve){var Ae=Math.min(U/=255,q/=255,ve/=255),_e=Math.max(U,q,ve),Ie=_e-Ae,Qe,Ye,rt=(_e+Ae)/2;return Ie?(Ye=rt<.5?Ie/(_e+Ae):Ie/(2-_e-Ae),U==_e?Qe=(q-ve)/Ie+(q0&&rt<1?0:Qe),new Tr(Qe,Ye,rt)}function Sn(U,q,ve){U=bn(U),q=bn(q),ve=bn(ve);var Ae=Pt((.4124564*U+.3575761*q+.1804375*ve)/ro),_e=Pt((.2126729*U+.7151522*q+.072175*ve)/vo),Ie=Pt((.0193339*U+.119192*q+.9503041*ve)/Cr);return or(116*_e-16,500*(Ae-_e),200*(_e-Ie))}function bn(U){return(U/=255)<=.04045?U/12.92:Math.pow((U+.055)/1.055,2.4)}function gn(U){var q=parseFloat(U);return U.charAt(U.length-1)==="%"?Math.round(q*2.55):q}var Qn=l.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});Qn.forEach(function(U,q){Qn.set(U,Ot(q))});function Bn(U){return typeof U=="function"?U:function(){return U}}l.functor=Bn,l.xhr=Hr(ne);function Hr(U){return function(q,ve,Ae){return arguments.length===2&&typeof ve=="function"&&(Ae=ve,ve=null),fr(q,ve,U,Ae)}}function fr(U,q,ve,Ae){var _e={},Ie=l.dispatch("beforesend","progress","load","error"),Qe={},Ye=new XMLHttpRequest,rt=null;self.XDomainRequest&&!("withCredentials"in Ye)&&/^(http(s)?:)?\/\//.test(U)&&(Ye=new XDomainRequest),"onload"in Ye?Ye.onload=Ye.onerror=yt:Ye.onreadystatechange=function(){Ye.readyState>3&&yt()};function yt(){var bt=Ye.status,Vt;if(!bt&&ar(Ye)||bt>=200&&bt<300||bt===304){try{Vt=ve.call(_e,Ye)}catch(Wt){Ie.error.call(_e,Wt);return}Ie.load.call(_e,Vt)}else Ie.error.call(_e,Ye)}return Ye.onprogress=function(bt){var Vt=l.event;l.event=bt;try{Ie.progress.call(_e,Ye)}finally{l.event=Vt}},_e.header=function(bt,Vt){return bt=(bt+"").toLowerCase(),arguments.length<2?Qe[bt]:(Vt==null?delete Qe[bt]:Qe[bt]=Vt+"",_e)},_e.mimeType=function(bt){return arguments.length?(q=bt==null?null:bt+"",_e):q},_e.responseType=function(bt){return arguments.length?(rt=bt,_e):rt},_e.response=function(bt){return ve=bt,_e},["get","post"].forEach(function(bt){_e[bt]=function(){return _e.send.apply(_e,[bt].concat(i(arguments)))}}),_e.send=function(bt,Vt,Wt){if(arguments.length===2&&typeof Vt=="function"&&(Wt=Vt,Vt=null),Ye.open(bt,U,!0),q!=null&&!("accept"in Qe)&&(Qe.accept=q+",*/*"),Ye.setRequestHeader)for(var mn in Qe)Ye.setRequestHeader(mn,Qe[mn]);return q!=null&&Ye.overrideMimeType&&Ye.overrideMimeType(q),rt!=null&&(Ye.responseType=rt),Wt!=null&&_e.on("error",Wt).on("load",function(An){Wt(null,An)}),Ie.beforesend.call(_e,Ye),Ye.send(Vt??null),_e},_e.abort=function(){return Ye.abort(),_e},l.rebind(_e,Ie,"on"),Ae==null?_e:_e.get(Vr(Ae))}function Vr(U){return U.length===1?function(q,ve){U(q==null?ve:null)}:U}function ar(U){var q=U.responseType;return q&&q!=="text"?U.response:U.responseText}l.dsv=function(U,q){var ve=new RegExp('["'+U+` -]`),Ae=U.charCodeAt(0);function _e(yt,bt,Vt){arguments.length<3&&(Vt=bt,bt=null);var Wt=fr(yt,q,bt==null?Ie:Qe(bt),Vt);return Wt.row=function(mn){return arguments.length?Wt.response((bt=mn)==null?Ie:Qe(mn)):bt},Wt}function Ie(yt){return _e.parse(yt.responseText)}function Qe(yt){return function(bt){return _e.parse(bt.responseText,yt)}}_e.parse=function(yt,bt){var Vt;return _e.parseRows(yt,function(Wt,mn){if(Vt)return Vt(Wt,mn-1);var An=function(Kt){for(var en={},dn=Wt.length,Rn=0;Rn=An)return Wt;if(Rn)return Rn=!1,Vt;var lr=Kt;if(yt.charCodeAt(lr)===34){for(var zr=lr;zr++24?(isFinite(q)&&(clearTimeout(So),So=setTimeout(Zo,q)),qr=0):(qr=1,wa(Zo))}l.timer.flush=function(){oa(),Va()};function oa(){for(var U=Date.now(),q=cr;q;)U>=q.t&&q.c(U-q.t)&&(q.c=null),q=q.n;return U}function Va(){for(var U,q=cr,ve=1/0;q;)q.c?(q.t=0;--Ye)Kt.push(_e[yt[Vt[Ye]][2]]);for(Ye=+mn;Ye1&&fn(U[ve[Ae-2]],U[ve[Ae-1]],U[_e])<=0;)--Ae;ve[Ae++]=_e}return ve.slice(0,Ae)}function Zl(U,q){return U[0]-q[0]||U[1]-q[1]}l.geom.polygon=function(U){return ie(U,Ys),U};var Ys=l.geom.polygon.prototype=[];Ys.area=function(){for(var U=-1,q=this.length,ve,Ae=this[q-1],_e=0;++Uvt)Ye=Ye.L;else if(Qe=q-Mi(Ye,ve),Qe>vt){if(!Ye.R){Ae=Ye;break}Ye=Ye.R}else{Ie>-vt?(Ae=Ye.P,_e=Ye):Qe>-vt?(Ae=Ye,_e=Ye.N):Ae=_e=Ye;break}var rt=Xa(U);if(_c.insert(Ae,rt),!(!Ae&&!_e)){if(Ae===_e){qi(Ae),_e=Xa(Ae.site),_c.insert(rt,_e),rt.edge=_e.edge=Ls(Ae.site,rt.site),Es(Ae),Es(_e);return}if(!_e){rt.edge=Ls(Ae.site,rt.site);return}qi(Ae),qi(_e);var yt=Ae.site,bt=yt.x,Vt=yt.y,Wt=U.x-bt,mn=U.y-Vt,An=_e.site,Kt=An.x-bt,en=An.y-Vt,dn=2*(Wt*en-mn*Kt),Rn=Wt*Wt+mn*mn,Mn=Kt*Kt+en*en,vn={x:(en*Rn-mn*Mn)/dn+bt,y:(Wt*Mn-Kt*Rn)/dn+Vt};uu(_e.edge,yt,An,vn),rt.edge=Ls(yt,U,null,vn),_e.edge=Ls(U,An,null,vn),Es(Ae),Es(_e)}}function To(U,q){var ve=U.site,Ae=ve.x,_e=ve.y,Ie=_e-q;if(!Ie)return Ae;var Qe=U.P;if(!Qe)return-1/0;ve=Qe.site;var Ye=ve.x,rt=ve.y,yt=rt-q;if(!yt)return Ye;var bt=Ye-Ae,Vt=1/Ie-1/yt,Wt=bt/yt;return Vt?(-Wt+Math.sqrt(Wt*Wt-2*Vt*(bt*bt/(-2*yt)-rt+yt/2+_e-Ie/2)))/Vt+Ae:(Ae+Ye)/2}function Mi(U,q){var ve=U.N;if(ve)return To(ve,q);var Ae=U.site;return Ae.y===q?Ae.x:1/0}function ur(U){this.site=U,this.edges=[]}ur.prototype.prepare=function(){for(var U=this.edges,q=U.length,ve;q--;)ve=U[q].edge,(!ve.b||!ve.a)&&U.splice(q,1);return U.sort(li),U.length};function Ms(U){for(var q=U[0][0],ve=U[1][0],Ae=U[0][1],_e=U[1][1],Ie,Qe,Ye,rt,yt=Ya,bt=yt.length,Vt,Wt,mn,An,Kt,en;bt--;)if(Vt=yt[bt],!(!Vt||!Vt.prepare()))for(mn=Vt.edges,An=mn.length,Wt=0;Wtvt||R(rt-Qe)>vt)&&(mn.splice(Wt,0,new Vf(cu(Vt.site,en,R(Ye-q)vt?{x:q,y:R(Ie-q)vt?{x:R(Qe-_e)vt?{x:ve,y:R(Ie-ve)vt?{x:R(Qe-Ae)=-$t)){var Wt=rt*rt+yt*yt,mn=bt*bt+en*en,An=(en*Wt-yt*mn)/Vt,Kt=(rt*mn-bt*Wt)/Vt,en=Kt+Ye,dn=yi.pop()||new Rs;dn.arc=U,dn.site=_e,dn.x=An+Qe,dn.y=en+Math.sqrt(An*An+Kt*Kt),dn.cy=en,U.circle=dn;for(var Rn=null,Mn=Ka._;Mn;)if(dn.y0)){if(Kt/=mn,mn<0){if(Kt0){if(Kt>Wt)return;Kt>Vt&&(Vt=Kt)}if(Kt=ve-Ye,!(!mn&&Kt<0)){if(Kt/=mn,mn<0){if(Kt>Wt)return;Kt>Vt&&(Vt=Kt)}else if(mn>0){if(Kt0)){if(Kt/=An,An<0){if(Kt0){if(Kt>Wt)return;Kt>Vt&&(Vt=Kt)}if(Kt=Ae-rt,!(!An&&Kt<0)){if(Kt/=An,An<0){if(Kt>Wt)return;Kt>Vt&&(Vt=Kt)}else if(An>0){if(Kt0&&(_e.a={x:Ye+Vt*mn,y:rt+Vt*An}),Wt<1&&(_e.b={x:Ye+Wt*mn,y:rt+Wt*An}),_e}}}}}}function Ks(U){for(var q=ss,ve=Bo(U[0][0],U[0][1],U[1][0],U[1][1]),Ae=q.length,_e;Ae--;)_e=q[Ae],(!Bs(_e,U)||!ve(_e)||R(_e.a.x-_e.b.x)=Ie)return;if(bt>Wt){if(!Ae)Ae={x:An,y:Qe};else if(Ae.y>=Ye)return;ve={x:An,y:Ye}}else{if(!Ae)Ae={x:An,y:Ye};else if(Ae.y1)if(bt>Wt){if(!Ae)Ae={x:(Qe-dn)/en,y:Qe};else if(Ae.y>=Ye)return;ve={x:(Ye-dn)/en,y:Ye}}else{if(!Ae)Ae={x:(Ye-dn)/en,y:Ye};else if(Ae.y=Ie)return;ve={x:Ie,y:en*Ie+dn}}else{if(!Ae)Ae={x:Ie,y:en*Ie+dn};else if(Ae.x<_e)return;ve={x:_e,y:en*_e+dn}}return U.a=Ae,U.b=ve,!0}function df(U,q){this.l=U,this.r=q,this.a=this.b=null}function Ls(U,q,ve,Ae){var _e=new df(U,q);return ss.push(_e),ve&&uu(_e,U,q,ve),Ae&&uu(_e,q,U,Ae),Ya[U.i].edges.push(new Vf(_e,U,q)),Ya[q.i].edges.push(new Vf(_e,q,U)),_e}function cu(U,q,ve){var Ae=new df(U,null);return Ae.a=q,Ae.b=ve,ss.push(Ae),Ae}function uu(U,q,ve,Ae){!U.a&&!U.b?(U.a=Ae,U.l=q,U.r=ve):U.l===ve?U.b=Ae:U.a=Ae}function Vf(U,q,ve){var Ae=U.a,_e=U.b;this.edge=U,this.site=q,this.angle=ve?Math.atan2(ve.y-q.y,ve.x-q.x):U.l===q?Math.atan2(_e.x-Ae.x,Ae.y-_e.y):Math.atan2(Ae.x-_e.x,_e.y-Ae.y)}Vf.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function Ma(){this._=null}function Uf(U){U.U=U.C=U.L=U.R=U.P=U.N=null}Ma.prototype={insert:function(U,q){var ve,Ae,_e;if(U){if(q.P=U,q.N=U.N,U.N&&(U.N.P=q),U.N=q,U.R){for(U=U.R;U.L;)U=U.L;U.L=q}else U.R=q;ve=U}else this._?(U=wd(this._),q.P=null,q.N=U,U.P=U.L=q,ve=U):(q.P=q.N=null,this._=q,ve=null);for(q.L=q.R=null,q.U=ve,q.C=!0,U=q;ve&&ve.C;)Ae=ve.U,ve===Ae.L?(_e=Ae.R,_e&&_e.C?(ve.C=_e.C=!1,Ae.C=!0,U=Ae):(U===ve.R&&(gc(this,ve),U=ve,ve=U.U),ve.C=!1,Ae.C=!0,al(this,Ae))):(_e=Ae.L,_e&&_e.C?(ve.C=_e.C=!1,Ae.C=!0,U=Ae):(U===ve.L&&(al(this,ve),U=ve,ve=U.U),ve.C=!1,Ae.C=!0,gc(this,Ae))),ve=U.U;this._.C=!1},remove:function(U){U.N&&(U.N.P=U.P),U.P&&(U.P.N=U.N),U.N=U.P=null;var q=U.U,ve,Ae=U.L,_e=U.R,Ie,Qe;if(Ae?_e?Ie=wd(_e):Ie=Ae:Ie=_e,q?q.L===U?q.L=Ie:q.R=Ie:this._=Ie,Ae&&_e?(Qe=Ie.C,Ie.C=U.C,Ie.L=Ae,Ae.U=Ie,Ie!==_e?(q=Ie.U,Ie.U=U.U,U=Ie.R,q.L=U,Ie.R=_e,_e.U=Ie):(Ie.U=q,q=Ie,U=Ie.R)):(Qe=U.C,U=Ie),U&&(U.U=q),!Qe){if(U&&U.C){U.C=!1;return}do{if(U===this._)break;if(U===q.L){if(ve=q.R,ve.C&&(ve.C=!1,q.C=!0,gc(this,q),ve=q.R),ve.L&&ve.L.C||ve.R&&ve.R.C){(!ve.R||!ve.R.C)&&(ve.L.C=!1,ve.C=!0,al(this,ve),ve=q.R),ve.C=q.C,q.C=ve.R.C=!1,gc(this,q),U=this._;break}}else if(ve=q.L,ve.C&&(ve.C=!1,q.C=!0,al(this,q),ve=q.L),ve.L&&ve.L.C||ve.R&&ve.R.C){(!ve.L||!ve.L.C)&&(ve.R.C=!1,ve.C=!0,gc(this,ve),ve=q.L),ve.C=q.C,q.C=ve.L.C=!1,al(this,q),U=this._;break}ve.C=!0,U=q,q=q.U}while(!U.C);U&&(U.C=!1)}}};function gc(U,q){var ve=q,Ae=q.R,_e=ve.U;_e?_e.L===ve?_e.L=Ae:_e.R=Ae:U._=Ae,Ae.U=_e,ve.U=Ae,ve.R=Ae.L,ve.R&&(ve.R.U=ve),Ae.L=ve}function al(U,q){var ve=q,Ae=q.L,_e=ve.U;_e?_e.L===ve?_e.L=Ae:_e.R=Ae:U._=Ae,Ae.U=_e,ve.U=Ae,ve.L=Ae.R,ve.L&&(ve.L.U=ve),Ae.R=ve}function wd(U){for(;U.L;)U=U.L;return U}function dh(U,q){var ve=U.sort(La).pop(),Ae,_e,Ie;for(ss=[],Ya=new Array(U.length),_c=new Ma,Ka=new Ma;;)if(Ie=jl,ve&&(!Ie||ve.y=bt&&dn.x<=Wt&&dn.y>=Vt&&dn.y<=mn?[[bt,mn],[Wt,mn],[Wt,Vt],[bt,Vt]]:[];Rn.point=rt[Kt]}),yt}function Ye(rt){return rt.map(function(yt,bt){return{x:Math.round(Ae(yt,bt)/vt)*vt,y:Math.round(_e(yt,bt)/vt)*vt,i:bt}})}return Qe.links=function(rt){return dh(Ye(rt)).edges.filter(function(yt){return yt.l&&yt.r}).map(function(yt){return{source:rt[yt.l.i],target:rt[yt.r.i]}})},Qe.triangles=function(rt){var yt=[];return dh(Ye(rt)).cells.forEach(function(bt,Vt){for(var Wt=bt.site,mn=bt.edges.sort(li),An=-1,Kt=mn.length,en,dn=mn[Kt-1].edge,Rn=dn.l===Wt?dn.r:dn.l;++AnMn&&(Mn=bt.x),bt.y>vn&&(vn=bt.y),mn.push(bt.x),An.push(bt.y);else for(Kt=0;KtMn&&(Mn=lr),zr>vn&&(vn=zr),mn.push(lr),An.push(zr)}var Jr=Mn-dn,kr=vn-Rn;Jr>kr?vn=Rn+Jr:Mn=dn+kr;function eo(yo,fo,Ha,Vs,is,$r,_o,sa){if(!(isNaN(Ha)||isNaN(Vs)))if(yo.leaf){var Ca=yo.x,As=yo.y;if(Ca!=null)if(R(Ca-Ha)+R(As-Vs)<.01)lo(yo,fo,Ha,Vs,is,$r,_o,sa);else{var qs=yo.point;yo.x=yo.y=yo.point=null,lo(yo,qs,Ca,As,is,$r,_o,sa),lo(yo,fo,Ha,Vs,is,$r,_o,sa)}else yo.x=Ha,yo.y=Vs,yo.point=fo}else lo(yo,fo,Ha,Vs,is,$r,_o,sa)}function lo(yo,fo,Ha,Vs,is,$r,_o,sa){var Ca=(is+_o)*.5,As=($r+sa)*.5,qs=Ha>=Ca,Di=Vs>=As,xi=Di<<1|qs;yo.leaf=!1,yo=yo.nodes[xi]||(yo.nodes[xi]=sl()),qs?is=Ca:_o=Ca,Di?$r=As:sa=As,eo(yo,fo,Ha,Vs,is,$r,_o,sa)}var Ko=sl();if(Ko.add=function(yo){eo(Ko,yo,+Vt(yo,++Kt),+Wt(yo,Kt),dn,Rn,Mn,vn)},Ko.visit=function(yo){Ei(yo,Ko,dn,Rn,Mn,vn)},Ko.find=function(yo){return Zy(Ko,yo[0],yo[1],dn,Rn,Mn,vn)},Kt=-1,q==null){for(;++KtIe||Wt>Qe||mn=lr,kr=ve>=zr,eo=kr<<1|Jr,lo=eo+4;eove&&(Ie=q.slice(ve,Ie),Ye[Qe]?Ye[Qe]+=Ie:Ye[++Qe]=Ie),(Ae=Ae[0])===(_e=_e[0])?Ye[Qe]?Ye[Qe]+=_e:Ye[++Qe]=_e:(Ye[++Qe]=null,rt.push({i:Qe,x:fu(Ae,_e)})),ve=il.lastIndex;return ve=0&&!(Ae=l.interpolators[ve](U,q)););return Ae}l.interpolators=[function(U,q){var ve=typeof q;return(ve==="string"?Qn.has(q.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(q)?Ag:ws:q instanceof Ir?Ag:Array.isArray(q)?Gu:ve==="object"&&isNaN(q)?Yc:fu)(U,q)}],l.interpolateArray=Gu;function Gu(U,q){var ve=[],Ae=[],_e=U.length,Ie=q.length,Qe=Math.min(U.length,q.length),Ye;for(Ye=0;Ye=0?U.slice(0,q):U,Ae=q>=0?U.slice(q+1):"in";return ve=Zu.get(ve)||Xs,Ae=Mg.get(Ae)||ne,Eg(Ae(ve.apply(null,c.call(arguments,1))))};function Eg(U){return function(q){return q<=0?0:q>=1?1:U(q)}}function D0(U){return function(q){return 1-U(1-q)}}function Dp(U){return function(q){return .5*(q<.5?U(2*q):2-U(2-2*q))}}function ju(U){return U*U}function _g(U){return U*U*U}function Kl(U){if(U<=0)return 0;if(U>=1)return 1;var q=U*U,ve=q*U;return 4*(U<.5?ve:3*(U-q)+ve-.75)}function $p(U){return function(q){return Math.pow(q,U)}}function $0(U){return 1-Math.cos(U*pt)}function hh(U){return Math.pow(2,10*(U-1))}function O0(U){return 1-Math.sqrt(1-U*U)}function mh(U,q){var ve;return arguments.length<2&&(q=.45),arguments.length?ve=q/it*Math.asin(1/U):(U=1,ve=q/4),function(Ae){return 1+U*Math.pow(2,-10*Ae)*Math.sin((Ae-ve)*it/q)}}function jy(U){return U||(U=1.70158),function(q){return q*q*((U+1)*q-U)}}function Cd(U){return U<.36363636363636365?7.5625*U*U:U<.7272727272727273?7.5625*(U-=.5454545454545454)*U+.75:U<.9090909090909091?7.5625*(U-=.8181818181818182)*U+.9375:7.5625*(U-=.9545454545454546)*U+.984375}l.interpolateHcl=Yy;function Yy(U,q){U=l.hcl(U),q=l.hcl(q);var ve=U.h,Ae=U.c,_e=U.l,Ie=q.h-ve,Qe=q.c-Ae,Ye=q.l-_e;return isNaN(Qe)&&(Qe=0,Ae=isNaN(Ae)?q.c:Ae),isNaN(Ie)?(Ie=0,ve=isNaN(ve)?q.h:ve):Ie>180?Ie-=360:Ie<-180&&(Ie+=360),function(rt){return xr(ve+Ie*rt,Ae+Qe*rt,_e+Ye*rt)+""}}l.interpolateHsl=Ky;function Ky(U,q){U=l.hsl(U),q=l.hsl(q);var ve=U.h,Ae=U.s,_e=U.l,Ie=q.h-ve,Qe=q.s-Ae,Ye=q.l-_e;return isNaN(Qe)&&(Qe=0,Ae=isNaN(Ae)?q.s:Ae),isNaN(Ie)?(Ie=0,ve=isNaN(ve)?q.h:ve):Ie>180?Ie-=360:Ie<-180&&(Ie+=360),function(rt){return Yr(ve+Ie*rt,Ae+Qe*rt,_e+Ye*rt)+""}}l.interpolateLab=Xy;function Xy(U,q){U=l.lab(U),q=l.lab(q);var ve=U.l,Ae=U.a,_e=U.b,Ie=q.l-ve,Qe=q.a-Ae,Ye=q.b-_e;return function(rt){return De(ve+Ie*rt,Ae+Qe*rt,_e+Ye*rt)+""}}l.interpolateRound=gh;function gh(U,q){return q-=U,function(ve){return Math.round(U+q*ve)}}l.transform=function(U){var q=u.createElementNS(l.ns.prefix.svg,"g");return(l.transform=function(ve){if(ve!=null){q.setAttribute("transform",ve);var Ae=q.transform.baseVal.consolidate()}return new P0(Ae?Ae.matrix:Op)})(U)};function P0(U){var q=[U.a,U.b],ve=[U.c,U.d],Ae=ph(q),_e=jt(q,ve),Ie=ph(du(ve,q,-_e))||0;q[0]*ve[1]180?q+=360:q-U>180&&(U+=360),Ae.push({i:ve.push(Rg(ve)+"rotate(",null,")")-2,x:fu(U,q)})):q&&ve.push(Rg(ve)+"rotate("+q+")")}function Dl(U,q,ve,Ae){U!==q?Ae.push({i:ve.push(Rg(ve)+"skewX(",null,")")-2,x:fu(U,q)}):q&&ve.push(Rg(ve)+"skewX("+q+")")}function hf(U,q,ve,Ae){if(U[0]!==q[0]||U[1]!==q[1]){var _e=ve.push(Rg(ve)+"scale(",null,",",null,")");Ae.push({i:_e-4,x:fu(U[0],q[0])},{i:_e-2,x:fu(U[1],q[1])})}else(q[0]!==1||q[1]!==1)&&ve.push(Rg(ve)+"scale("+q+")")}function mf(U,q){var ve=[],Ae=[];return U=l.transform(U),q=l.transform(q),I2(U.translate,q.translate,ve,Ae),Ba(U.rotate,q.rotate,ve,Ae),Dl(U.skew,q.skew,ve,Ae),hf(U.scale,q.scale,ve,Ae),U=q=null,function(_e){for(var Ie=-1,Qe=Ae.length,Ye;++Ie0?Ie=vn:(ve.c=null,ve.t=NaN,ve=null,q.end({type:"end",alpha:Ie=0})):vn>0&&(q.start({type:"start",alpha:Ie=vn}),ve=bo(U.tick)),U):Ie},U.start=function(){var vn,lr=mn.length,zr=An.length,Jr=Ae[0],kr=Ae[1],eo,lo;for(vn=0;vn=0;)Ie.push(bt=yt[rt]),bt.parent=Ye,bt.depth=Ye.depth+1;ve&&(Ye.value=0),Ye.children=yt}else ve&&(Ye.value=+ve.call(Ae,Ye,Ye.depth)||0),delete Ye.children;return mu(_e,function(Vt){var Wt,mn;U&&(Wt=Vt.children)&&Wt.sort(U),ve&&(mn=Vt.parent)&&(mn.value+=Vt.value)}),Qe}return Ae.sort=function(_e){return arguments.length?(U=_e,Ae):U},Ae.children=function(_e){return arguments.length?(q=_e,Ae):q},Ae.value=function(_e){return arguments.length?(ve=_e,Ae):ve},Ae.revalue=function(_e){return ve&&(ll(_e,function(Ie){Ie.children&&(Ie.value=0)}),mu(_e,function(Ie){var Qe;Ie.children||(Ie.value=+ve.call(Ae,Ie,Ie.depth)||0),(Qe=Ie.parent)&&(Qe.value+=Ie.value)})),_e},Ae};function Xl(U,q){return l.rebind(U,q,"sort","children","value"),U.nodes=U,U.links=Pp,U}function ll(U,q){for(var ve=[U];(U=ve.pop())!=null;)if(q(U),(_e=U.children)&&(Ae=_e.length))for(var Ae,_e;--Ae>=0;)ve.push(_e[Ae])}function mu(U,q){for(var ve=[U],Ae=[];(U=ve.pop())!=null;)if(Ae.push(U),(Qe=U.children)&&(Ie=Qe.length))for(var _e=-1,Ie,Qe;++_e_e&&(_e=Ye),Ae.push(Ye)}for(Qe=0;QeAe&&(ve=q,Ae=_e);return ve}function Js(U){return U.reduce(Xc,0)}function Xc(U,q){return U+q[1]}l.layout.histogram=function(){var U=!0,q=Number,ve=bl,Ae=H0;function _e(Ie,Wt){for(var Ye=[],rt=Ie.map(q,this),yt=ve.call(this,rt,Wt),bt=Ae.call(this,yt,rt,Wt),Vt,Wt=-1,mn=rt.length,An=bt.length-1,Kt=U?1:1/mn,en;++Wt0)for(Wt=-1;++Wt=yt[0]&&en<=yt[1]&&(Vt=Ye[l.bisect(bt,en,1,An)-1],Vt.y+=Kt,Vt.push(Ie[Wt]));return Ye}return _e.value=function(Ie){return arguments.length?(q=Ie,_e):q},_e.range=function(Ie){return arguments.length?(ve=Bn(Ie),_e):ve},_e.bins=function(Ie){return arguments.length?(Ae=typeof Ie=="number"?function(Qe){return eb(Qe,Ie)}:Bn(Ie),_e):Ae},_e.frequency=function(Ie){return arguments.length?(U=!!Ie,_e):U},_e};function H0(U,q){return eb(U,Math.ceil(Math.log(q.length)/Math.LN2+1))}function eb(U,q){for(var ve=-1,Ae=+U[0],_e=(U[1]-Ae)/q,Ie=[];++ve<=q;)Ie[ve]=_e*ve+Ae;return Ie}function bl(U){return[l.min(U),l.max(U)]}l.layout.pack=function(){var U=l.layout.hierarchy().sort(vm),q=0,ve=[1,1],Ae;function _e(Ie,Qe){var Ye=U.call(this,Ie,Qe),rt=Ye[0],yt=ve[0],bt=ve[1],Vt=Ae==null?Math.sqrt:typeof Ae=="function"?Ae:function(){return Ae};if(rt.x=rt.y=0,mu(rt,function(mn){mn.r=+Vt(mn.value)}),mu(rt,Wo),q){var Wt=q*(Ae?1:Math.max(2*rt.r/yt,2*rt.r/bt))/2;mu(rt,function(mn){mn.r+=Wt}),mu(rt,Wo),mu(rt,function(mn){mn.r-=Wt})}return vh(rt,yt/2,bt/2,Ae?1:1/Math.max(2*rt.r/yt,2*rt.r/bt)),Ye}return _e.size=function(Ie){return arguments.length?(ve=Ie,_e):ve},_e.radius=function(Ie){return arguments.length?(Ae=Ie==null||typeof Ie=="function"?Ie:+Ie,_e):Ae},_e.padding=function(Ie){return arguments.length?(q=+Ie,_e):q},Xl(_e,U)};function vm(U,q){return U.value-q.value}function Jl(U,q){var ve=U._pack_next;U._pack_next=q,q._pack_prev=U,q._pack_next=ve,ve._pack_prev=q}function Ku(U,q){U._pack_next=q,q._pack_prev=U}function z0(U,q){var ve=q.x-U.x,Ae=q.y-U.y,_e=U.r+q.r;return .999*_e*_e>ve*ve+Ae*Ae}function Wo(U){if(!(q=U.children)||!(Wt=q.length))return;var q,ve=1/0,Ae=-1/0,_e=1/0,Ie=-1/0,Qe,Ye,rt,yt,bt,Vt,Wt;function mn(vn){ve=Math.min(vn.x-vn.r,ve),Ae=Math.max(vn.x+vn.r,Ae),_e=Math.min(vn.y-vn.r,_e),Ie=Math.max(vn.y+vn.r,Ie)}if(q.forEach(vc),Qe=q[0],Qe.x=-Qe.r,Qe.y=0,mn(Qe),Wt>1&&(Ye=q[1],Ye.x=Ye.r,Ye.y=0,mn(Ye),Wt>2))for(rt=q[2],V0(Qe,Ye,rt),mn(rt),Jl(Qe,rt),Qe._pack_prev=rt,Jl(rt,Ye),Ye=Qe._pack_next,yt=3;yten.x&&(en=lr),lr.depth>dn.depth&&(dn=lr)});var Rn=q(Kt,en)/2-Kt.x,Mn=ve[0]/(en.x+q(en,Kt)/2+Rn),vn=ve[1]/(dn.depth||1);ll(mn,function(lr){lr.x=(lr.x+Rn)*Mn,lr.y=lr.depth*vn})}return Wt}function Ie(bt){for(var Vt={A:null,children:[bt]},Wt=[Vt],mn;(mn=Wt.pop())!=null;)for(var An=mn.children,Kt,en=0,dn=An.length;en0&&(Lc(W0(Kt,bt,Wt),bt,lr),dn+=lr,Rn+=lr),Mn+=Kt.m,dn+=mn.m,vn+=en.m,Rn+=An.m;Kt&&!ui(An)&&(An.t=Kt,An.m+=Mn-Rn),mn&&!$l(en)&&(en.t=mn,en.m+=dn-vn,Wt=bt)}return Wt}function yt(bt){bt.x*=ve[0],bt.y=bt.depth*ve[1]}return _e.separation=function(bt){return arguments.length?(q=bt,_e):q},_e.size=function(bt){return arguments.length?(Ae=(ve=bt)==null?yt:null,_e):Ae?null:ve},_e.nodeSize=function(bt){return arguments.length?(Ae=(ve=bt)==null?null:yt,_e):Ae?ve:null},Xl(_e,U)};function U0(U,q){return U.parent==q.parent?1:2}function $l(U){var q=U.children;return q.length?q[0]:U.t}function ui(U){var q=U.children,ve;return(ve=q.length)?q[ve-1]:U.t}function Lc(U,q,ve){var Ae=ve/(q.i-U.i);q.c-=Ae,q.s+=ve,U.c+=Ae,q.z+=ve,q.m+=ve}function _i(U){for(var q=0,ve=0,Ae=U.children,_e=Ae.length,Ie;--_e>=0;)Ie=Ae[_e],Ie.z+=q,Ie.m+=q,q+=Ie.s+(ve+=Ie.c)}function W0(U,q,ve){return U.a.parent===q.parent?U.a:ve}l.layout.cluster=function(){var U=l.layout.hierarchy().sort(null).value(null),q=U0,ve=[1,1],Ae=!1;function _e(Ie,Qe){var Ye=U.call(this,Ie,Qe),rt=Ye[0],yt,bt=0;mu(rt,function(Kt){var en=Kt.children;en&&en.length?(Kt.x=fi(en),Kt.y=Np(en)):(Kt.x=yt?bt+=q(Kt,yt):0,Kt.y=0,yt=Kt)});var Vt=Ri(rt),Wt=gu(rt),mn=Vt.x-q(Vt,Wt)/2,An=Wt.x+q(Wt,Vt)/2;return mu(rt,Ae?function(Kt){Kt.x=(Kt.x-rt.x)*ve[0],Kt.y=(rt.y-Kt.y)*ve[1]}:function(Kt){Kt.x=(Kt.x-mn)/(An-mn)*ve[0],Kt.y=(1-(rt.y?Kt.y/rt.y:1))*ve[1]}),Ye}return _e.separation=function(Ie){return arguments.length?(q=Ie,_e):q},_e.size=function(Ie){return arguments.length?(Ae=(ve=Ie)==null,_e):Ae?null:ve},_e.nodeSize=function(Ie){return arguments.length?(Ae=(ve=Ie)!=null,_e):Ae?ve:null},Xl(_e,U)};function Np(U){return 1+l.max(U,function(q){return q.y})}function fi(U){return U.reduce(function(q,ve){return q+ve.x},0)/U.length}function Ri(U){var q=U.children;return q&&q.length?Ri(q[0]):U}function gu(U){var q=U.children,ve;return q&&(ve=q.length)?gu(q[ve-1]):U}l.layout.treemap=function(){var U=l.layout.hierarchy(),q=Math.round,ve=[1,1],Ae=null,_e=yh,Ie=!1,Qe,Ye="squarify",rt=.5*(1+Math.sqrt(5));function yt(Kt,en){for(var dn=-1,Rn=Kt.length,Mn,vn;++dn0;)Rn.push(vn=Mn[kr-1]),Rn.area+=vn.area,Ye!=="squarify"||(zr=Wt(Rn,Jr))<=lr?(Mn.pop(),lr=zr):(Rn.area-=Rn.pop().area,mn(Rn,Jr,dn,!1),Jr=Math.min(dn.dx,dn.dy),Rn.length=Rn.area=0,lr=1/0);Rn.length&&(mn(Rn,Jr,dn,!0),Rn.length=Rn.area=0),en.forEach(bt)}}function Vt(Kt){var en=Kt.children;if(en&&en.length){var dn=_e(Kt),Rn=en.slice(),Mn,vn=[];for(yt(Rn,dn.dx*dn.dy/Kt.value),vn.area=0;Mn=Rn.pop();)vn.push(Mn),vn.area+=Mn.area,Mn.z!=null&&(mn(vn,Mn.z?dn.dx:dn.dy,dn,!Rn.length),vn.length=vn.area=0);en.forEach(Vt)}}function Wt(Kt,en){for(var dn=Kt.area,Rn,Mn=0,vn=1/0,lr=-1,zr=Kt.length;++lrMn&&(Mn=Rn));return dn*=dn,en*=en,dn?Math.max(en*Mn*rt/dn,dn/(en*vn*rt)):1/0}function mn(Kt,en,dn,Rn){var Mn=-1,vn=Kt.length,lr=dn.x,zr=dn.y,Jr=en?q(Kt.area/en):0,kr;if(en==dn.dx){for((Rn||Jr>dn.dy)&&(Jr=dn.dy);++Mndn.dx)&&(Jr=dn.dx);++Mn1);return U+q*Ae*Math.sqrt(-2*Math.log(Ie)/Ie)}},logNormal:function(){var U=l.random.normal.apply(l,arguments);return function(){return Math.exp(U())}},bates:function(U){var q=l.random.irwinHall(U);return function(){return q()/U}},irwinHall:function(U){return function(){for(var q=0,ve=0;ve2?G0:hs,yt=Ae?mm:I0;return _e=rt(U,q,yt,ve),Ie=rt(q,U,yt,Yl),Ye}function Ye(rt){return _e(rt)}return Ye.invert=function(rt){return Ie(rt)},Ye.domain=function(rt){return arguments.length?(U=rt.map(Number),Qe()):U},Ye.range=function(rt){return arguments.length?(q=rt,Qe()):q},Ye.rangeRound=function(rt){return Ye.range(rt).interpolate(gh)},Ye.clamp=function(rt){return arguments.length?(Ae=rt,Qe()):Ae},Ye.interpolate=function(rt){return arguments.length?(ve=rt,Qe()):ve},Ye.ticks=function(rt){return Ig(U,rt)},Ye.tickFormat=function(rt,yt){return d3_scale_linearTickFormat(U,rt,yt)},Ye.nice=function(rt){return bh(U,rt),Qe()},Ye.copy=function(){return Pg(U,q,ve,Ae)},Qe()}function aa(U,q){return l.rebind(U,q,"range","rangeRound","interpolate","clamp")}function bh(U,q){return Ad(U,Ua(Fp(U,q)[2])),Ad(U,Ua(Fp(U,q)[2])),U}function Fp(U,q){q==null&&(q=10);var ve=ym(U),Ae=ve[1]-ve[0],_e=Math.pow(10,Math.floor(Math.log(Ae/q)/Math.LN10)),Ie=q/Ae*_e;return Ie<=.15?_e*=10:Ie<=.35?_e*=5:Ie<=.75&&(_e*=2),ve[0]=Math.ceil(ve[0]/_e)*_e,ve[1]=Math.floor(ve[1]/_e)*_e+_e*.5,ve[2]=_e,ve}function Ig(U,q){return l.range.apply(l,Fp(U,q))}l.scale.log=function(){return F2(l.scale.linear().domain([0,1]),10,!0,[1,10])};function F2(U,q,ve,Ae){function _e(Ye){return(ve?Math.log(Ye<0?0:Ye):-Math.log(Ye>0?0:-Ye))/Math.log(q)}function Ie(Ye){return ve?Math.pow(q,Ye):-Math.pow(q,-Ye)}function Qe(Ye){return U(_e(Ye))}return Qe.invert=function(Ye){return Ie(U.invert(Ye))},Qe.domain=function(Ye){return arguments.length?(ve=Ye[0]>=0,U.domain((Ae=Ye.map(Number)).map(_e)),Qe):Ae},Qe.base=function(Ye){return arguments.length?(q=+Ye,U.domain(Ae.map(_e)),Qe):q},Qe.nice=function(){var Ye=Ad(Ae.map(_e),ve?Math:B2);return U.domain(Ye),Ae=Ye.map(Ie),Qe},Qe.ticks=function(){var Ye=ym(Ae),rt=[],yt=Ye[0],bt=Ye[1],Vt=Math.floor(_e(yt)),Wt=Math.ceil(_e(bt)),mn=q%1?2:q;if(isFinite(Wt-Vt)){if(ve){for(;Vt0;An--)rt.push(Ie(Vt)*An);for(Vt=0;rt[Vt]bt;Wt--);rt=rt.slice(Vt,Wt)}return rt},Qe.copy=function(){return F2(U.copy(),q,ve,Ae)},aa(Qe,U)}var B2={floor:function(U){return-Math.ceil(-U)},ceil:function(U){return-Math.floor(-U)}};l.scale.pow=function(){return Z0(l.scale.linear(),1,[0,1])};function Z0(U,q,ve){var Ae=xh(q),_e=xh(1/q);function Ie(Qe){return U(Ae(Qe))}return Ie.invert=function(Qe){return _e(U.invert(Qe))},Ie.domain=function(Qe){return arguments.length?(U.domain((ve=Qe.map(Number)).map(Ae)),Ie):ve},Ie.ticks=function(Qe){return Ig(ve,Qe)},Ie.tickFormat=function(Qe,Ye){return d3_scale_linearTickFormat(ve,Qe,Ye)},Ie.nice=function(Qe){return Ie.domain(bh(ve,Qe))},Ie.exponent=function(Qe){return arguments.length?(Ae=xh(q=Qe),_e=xh(1/q),U.domain(ve.map(Ae)),Ie):q},Ie.copy=function(){return Z0(U.copy(),q,ve)},aa(Ie,U)}function xh(U){return function(q){return q<0?-Math.pow(-q,U):Math.pow(q,U)}}l.scale.sqrt=function(){return l.scale.pow().exponent(.5)},l.scale.ordinal=function(){return Bp([],{t:"range",a:[[]]})};function Bp(U,q){var ve,Ae,_e;function Ie(Ye){return Ae[((ve.get(Ye)||(q.t==="range"?ve.set(Ye,U.push(Ye)):NaN))-1)%Ae.length]}function Qe(Ye,rt){return l.range(U.length).map(function(yt){return Ye+rt*yt})}return Ie.domain=function(Ye){if(!arguments.length)return U;U=[],ve=new j;for(var rt=-1,yt=Ye.length,bt;++rt0?ve[Ie-1]:U[0],IeWt?0:1;if(bt=ht)return rt(bt,An)+(yt?rt(yt,1-An):"")+"Z";var Kt,en,dn,Rn,Mn=0,vn=0,lr,zr,Jr,kr,eo,lo,Ko,yo,fo=[];if((Rn=(+Qe.apply(this,arguments)||0)/2)&&(dn=Ae===xm?Math.sqrt(yt*yt+bt*bt):+Ae.apply(this,arguments),An||(vn*=-1),bt&&(vn=tn(dn/bt*Math.sin(Rn))),yt&&(Mn=tn(dn/yt*Math.sin(Rn)))),bt){lr=bt*Math.cos(Vt+vn),zr=bt*Math.sin(Vt+vn),Jr=bt*Math.cos(Wt-vn),kr=bt*Math.sin(Wt-vn);var Ha=Math.abs(Wt-Vt-2*vn)<=Ze?0:1;if(vn&&Ng(lr,zr,Jr,kr)===An^Ha){var Vs=(Vt+Wt)/2;lr=bt*Math.cos(Vs),zr=bt*Math.sin(Vs),Jr=kr=null}}else lr=zr=0;if(yt){eo=yt*Math.cos(Wt-Mn),lo=yt*Math.sin(Wt-Mn),Ko=yt*Math.cos(Vt+Mn),yo=yt*Math.sin(Vt+Mn);var is=Math.abs(Vt-Wt+2*Mn)<=Ze?0:1;if(Mn&&Ng(eo,lo,Ko,yo)===1-An^is){var $r=(Vt+Wt)/2;eo=yt*Math.cos($r),lo=yt*Math.sin($r),Ko=yo=null}}else eo=lo=0;if(mn>vt&&(Kt=Math.min(Math.abs(bt-yt)/2,+ve.apply(this,arguments)))>.001){en=yt0?0:1}function es(U,q,ve,Ae,_e){var Ie=U[0]-q[0],Qe=U[1]-q[1],Ye=(_e?Ae:-Ae)/Math.sqrt(Ie*Ie+Qe*Qe),rt=Ye*Qe,yt=-Ye*Ie,bt=U[0]+rt,Vt=U[1]+yt,Wt=q[0]+rt,mn=q[1]+yt,An=(bt+Wt)/2,Kt=(Vt+mn)/2,en=Wt-bt,dn=mn-Vt,Rn=en*en+dn*dn,Mn=ve-Ae,vn=bt*mn-Wt*Vt,lr=(dn<0?-1:1)*Math.sqrt(Math.max(0,Mn*Mn*Rn-vn*vn)),zr=(vn*dn-en*lr)/Rn,Jr=(-vn*en-dn*lr)/Rn,kr=(vn*dn+en*lr)/Rn,eo=(-vn*en+dn*lr)/Rn,lo=zr-An,Ko=Jr-Kt,yo=kr-An,fo=eo-Kt;return lo*lo+Ko*Ko>yo*yo+fo*fo&&(zr=kr,Jr=eo),[[zr-rt,Jr-yt],[zr*ve/Mn,Jr*ve/Mn]]}function io(){return!0}function vu(U){var q=Yo,ve=Fa,Ae=io,_e=xl,Ie=_e.key,Qe=.7;function Ye(rt){var yt=[],bt=[],Vt=-1,Wt=rt.length,mn,An=Bn(q),Kt=Bn(ve);function en(){yt.push("M",_e(U(bt),Qe))}for(;++Vt1?U.join("L"):U+"Z"}function H2(U){return U.join("L")+"Z"}function Wf(U){for(var q=0,ve=U.length,Ae=U[0],_e=[Ae[0],",",Ae[1]];++q1&&_e.push("H",Ae[0]),_e.join("")}function oi(U){for(var q=0,ve=U.length,Ae=U[0],_e=[Ae[0],",",Ae[1]];++q1){Ye=q[1],Ie=U[rt],rt++,Ae+="C"+(_e[0]+Qe[0])+","+(_e[1]+Qe[1])+","+(Ie[0]-Ye[0])+","+(Ie[1]-Ye[1])+","+Ie[0]+","+Ie[1];for(var yt=2;yt9&&(Ie=ve*3/Math.sqrt(Ie),Qe[Ye]=Ie*Ae,Qe[Ye+1]=Ie*_e));for(Ye=-1;++Ye<=rt;)Ie=(U[Math.min(rt,Ye+1)][0]-U[Math.max(0,Ye-1)][0])/(6*(1+Qe[Ye]*Qe[Ye])),q.push([Ie||0,Qe[Ye]*Ie||0]);return q}function Bg(U){return U.length<3?xl(U):U[0]+Sh(U,fa(U))}l.svg.line.radial=function(){var U=vu(Wi);return U.radius=U.x,delete U.x,U.angle=U.y,delete U.y,U};function Wi(U){for(var q,ve=-1,Ae=U.length,_e,Ie;++veZe)+",1 "+Vt}function yt(bt,Vt,Wt,mn){return"Q 0,0 "+mn}return Ie.radius=function(bt){return arguments.length?(ve=Bn(bt),Ie):ve},Ie.source=function(bt){return arguments.length?(U=Bn(bt),Ie):U},Ie.target=function(bt){return arguments.length?(q=Bn(bt),Ie):q},Ie.startAngle=function(bt){return arguments.length?(Ae=Bn(bt),Ie):Ae},Ie.endAngle=function(bt){return arguments.length?(_e=Bn(bt),Ie):_e},Ie};function yc(U){return U.radius}l.svg.diagonal=function(){var U=Hg,q=qn,ve=Cm;function Ae(_e,Ie){var Qe=U.call(this,_e,Ie),Ye=q.call(this,_e,Ie),rt=(Qe.y+Ye.y)/2,yt=[Qe,{x:Qe.x,y:rt},{x:Ye.x,y:rt},Ye];return yt=yt.map(ve),"M"+yt[0]+"C"+yt[1]+" "+yt[2]+" "+yt[3]}return Ae.source=function(_e){return arguments.length?(U=Bn(_e),Ae):U},Ae.target=function(_e){return arguments.length?(q=Bn(_e),Ae):q},Ae.projection=function(_e){return arguments.length?(ve=_e,Ae):ve},Ae};function Cm(U){return[U.x,U.y]}l.svg.diagonal.radial=function(){var U=l.svg.diagonal(),q=Cm,ve=U.projection;return U.projection=function(Ae){return arguments.length?ve(Da(q=Ae)):q},U};function Da(U){return function(){var q=U.apply(this,arguments),ve=q[0],Ae=q[1]-pt;return[ve*Math.cos(Ae),ve*Math.sin(Ae)]}}l.svg.symbol=function(){var U=z2,q=Qu;function ve(Ae,_e){return(Up.get(U.call(this,Ae,_e))||bu)(q.call(this,Ae,_e))}return ve.type=function(Ae){return arguments.length?(U=Bn(Ae),ve):U},ve.size=function(Ae){return arguments.length?(q=Bn(Ae),ve):q},ve};function Qu(){return 64}function z2(){return"circle"}function bu(U){var q=Math.sqrt(U/Ze);return"M0,"+q+"A"+q+","+q+" 0 1,1 0,"+-q+"A"+q+","+q+" 0 1,1 0,"+q+"Z"}var Up=l.map({circle:bu,cross:function(U){var q=Math.sqrt(U/5)/2;return"M"+-3*q+","+-q+"H"+-q+"V"+-3*q+"H"+q+"V"+-q+"H"+3*q+"V"+q+"H"+q+"V"+3*q+"H"+-q+"V"+q+"H"+-3*q+"Z"},diamond:function(U){var q=Math.sqrt(U/(2*Wp)),ve=q*Wp;return"M0,"+-q+"L"+ve+",0 0,"+q+" "+-ve+",0Z"},square:function(U){var q=Math.sqrt(U)/2;return"M"+-q+","+-q+"L"+q+","+-q+" "+q+","+q+" "+-q+","+q+"Z"},"triangle-down":function(U){var q=Math.sqrt(U/Dc),ve=q*Dc/2;return"M0,"+ve+"L"+q+","+-ve+" "+-q+","+-ve+"Z"},"triangle-up":function(U){var q=Math.sqrt(U/Dc),ve=q*Dc/2;return"M0,"+-ve+"L"+q+","+ve+" "+-q+","+ve+"Z"}});l.svg.symbolTypes=Up.keys();var Dc=Math.sqrt(3),Wp=Math.tan(30*Tt);le.transition=function(U){for(var q=Zf||++Gi,ve=vf(U),Ae=[],_e,Ie,Qe=pf||{time:Date.now(),ease:Kl,delay:0,duration:250},Ye=-1,rt=this.length;++Ye0;)Vt[--Rn].call(U,dn);if(en>=1)return Qe.event&&Qe.event.end.call(U,U.__data__,q),--Ie.count?delete Ie[Ae]:delete U[ve],1}Qe||(Ye=_e.time,rt=bo(Wt,0,Ye),Qe=Ie[Ae]={tween:new j,time:Ye,timer:rt,delay:_e.delay,duration:_e.duration,ease:_e.ease,index:q},_e=null,++Ie.count)}l.svg.axis=function(){var U=l.scale.linear(),q=ql,ve=6,Ae=6,_e=3,Ie=[10],Qe=null,Ye;function rt(yt){yt.each(function(){var bt=l.select(this),Vt=this.__chart__||U,Wt=this.__chart__=U.copy(),mn=Qe??(Wt.ticks?Wt.ticks.apply(Wt,Ie):Wt.domain()),An=Ye??(Wt.tickFormat?Wt.tickFormat.apply(Wt,Ie):ne),Kt=bt.selectAll(".tick").data(mn,Wt),en=Kt.enter().insert("g",".domain").attr("class","tick").style("opacity",vt),dn=l.transition(Kt.exit()).style("opacity",vt).remove(),Rn=l.transition(Kt.order()).style("opacity",1),Mn=Math.max(ve,0)+_e,vn,lr=Og(Wt),zr=bt.selectAll(".domain").data([0]),Jr=(zr.enter().append("path").attr("class","domain"),l.transition(zr));en.append("line"),en.append("text");var kr=en.select("line"),eo=Rn.select("line"),lo=Kt.select("text").text(An),Ko=en.select("text"),yo=Rn.select("text"),fo=q==="top"||q==="left"?-1:1,Ha,Vs,is,$r;if(q==="bottom"||q==="top"?(vn=bf,Ha="x",is="y",Vs="x2",$r="y2",lo.attr("dy",fo<0?"0em":".71em").style("text-anchor","middle"),Jr.attr("d","M"+lr[0]+","+fo*Ae+"V0H"+lr[1]+"V"+fo*Ae)):(vn=bc,Ha="y",is="x",Vs="y2",$r="x2",lo.attr("dy",".32em").style("text-anchor",fo<0?"end":"start"),Jr.attr("d","M"+fo*Ae+","+lr[0]+"H0V"+lr[1]+"H"+fo*Ae)),kr.attr($r,fo*ve),Ko.attr(is,fo*Mn),eo.attr(Vs,0).attr($r,fo*ve),yo.attr(Ha,0).attr(is,fo*Mn),Wt.rangeBand){var _o=Wt,sa=_o.rangeBand()/2;Vt=Wt=function(Ca){return _o(Ca)+sa}}else Vt.rangeBand?Vt=Wt:dn.call(vn,Wt,Vt);en.call(vn,Vt,Wt),Rn.call(vn,Wt,Wt)})}return rt.scale=function(yt){return arguments.length?(U=yt,rt):U},rt.orient=function(yt){return arguments.length?(q=yt in yf?yt+"":ql,rt):q},rt.ticks=function(){return arguments.length?(Ie=i(arguments),rt):Ie},rt.tickValues=function(yt){return arguments.length?(Qe=yt,rt):Qe},rt.tickFormat=function(yt){return arguments.length?(Ye=yt,rt):Ye},rt.tickSize=function(yt){var bt=arguments.length;return bt?(ve=+yt,Ae=+arguments[bt-1],rt):ve},rt.innerTickSize=function(yt){return arguments.length?(ve=+yt,rt):ve},rt.outerTickSize=function(yt){return arguments.length?(Ae=+yt,rt):Ae},rt.tickPadding=function(yt){return arguments.length?(_e=+yt,rt):_e},rt.tickSubdivide=function(){return arguments.length&&rt},rt};var ql="bottom",yf={top:1,right:1,bottom:1,left:1};function bf(U,q,ve){U.attr("transform",function(Ae){var _e=q(Ae);return"translate("+(isFinite(_e)?_e:ve(Ae))+",0)"})}function bc(U,q,ve){U.attr("transform",function(Ae){var _e=q(Ae);return"translate(0,"+(isFinite(_e)?_e:ve(Ae))+")"})}l.svg.brush=function(){var U=Oe(bt,"brushstart","brush","brushend"),q=null,ve=null,Ae=[0,0],_e=[0,0],Ie,Qe,Ye=!0,rt=!0,yt=bi[0];function bt(Kt){Kt.each(function(){var en=l.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",An).on("touchstart.brush",An),dn=en.selectAll(".background").data([0]);dn.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),en.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Rn=en.selectAll(".resize").data(yt,ne);Rn.exit().remove(),Rn.enter().append("g").attr("class",function(zr){return"resize "+zr}).style("cursor",function(zr){return Li[zr]}).append("rect").attr("x",function(zr){return/[ew]$/.test(zr)?-3:null}).attr("y",function(zr){return/^[ns]/.test(zr)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Rn.style("display",bt.empty()?"none":null);var Mn=l.transition(en),vn=l.transition(dn),lr;q&&(lr=Og(q),vn.attr("x",lr[0]).attr("width",lr[1]-lr[0]),Wt(Mn)),ve&&(lr=Og(ve),vn.attr("y",lr[0]).attr("height",lr[1]-lr[0]),mn(Mn)),Vt(Mn)})}bt.event=function(Kt){Kt.each(function(){var en=U.of(this,arguments),dn={x:Ae,y:_e,i:Ie,j:Qe},Rn=this.__chart__||dn;this.__chart__=dn,Zf?l.select(this).transition().each("start.brush",function(){Ie=Rn.i,Qe=Rn.j,Ae=Rn.x,_e=Rn.y,en({type:"brushstart"})}).tween("brush:brush",function(){var Mn=Gu(Ae,dn.x),vn=Gu(_e,dn.y);return Ie=Qe=null,function(lr){Ae=dn.x=Mn(lr),_e=dn.y=vn(lr),en({type:"brush",mode:"resize"})}}).each("end.brush",function(){Ie=dn.i,Qe=dn.j,en({type:"brush",mode:"resize"}),en({type:"brushend"})}):(en({type:"brushstart"}),en({type:"brush",mode:"resize"}),en({type:"brushend"}))})};function Vt(Kt){Kt.selectAll(".resize").attr("transform",function(en){return"translate("+Ae[+/e$/.test(en)]+","+_e[+/^s/.test(en)]+")"})}function Wt(Kt){Kt.select(".extent").attr("x",Ae[0]),Kt.selectAll(".extent,.n>rect,.s>rect").attr("width",Ae[1]-Ae[0])}function mn(Kt){Kt.select(".extent").attr("y",_e[0]),Kt.selectAll(".extent,.e>rect,.w>rect").attr("height",_e[1]-_e[0])}function An(){var Kt=this,en=l.select(l.event.target),dn=U.of(Kt,arguments),Rn=l.select(Kt),Mn=en.datum(),vn=!/^(n|s)$/.test(Mn)&&q,lr=!/^(e|w)$/.test(Mn)&&ve,zr=en.classed("extent"),Jr=wn(Kt),kr,eo=l.mouse(Kt),lo,Ko=l.select(g(Kt)).on("keydown.brush",Ha).on("keyup.brush",Vs);if(l.event.changedTouches?Ko.on("touchmove.brush",is).on("touchend.brush",_o):Ko.on("mousemove.brush",is).on("mouseup.brush",_o),Rn.interrupt().selectAll("*").interrupt(),zr)eo[0]=Ae[0]-eo[0],eo[1]=_e[0]-eo[1];else if(Mn){var yo=+/w$/.test(Mn),fo=+/^n/.test(Mn);lo=[Ae[1-yo]-eo[0],_e[1-fo]-eo[1]],eo[0]=Ae[yo],eo[1]=_e[fo]}else l.event.altKey&&(kr=eo.slice());Rn.style("pointer-events","none").selectAll(".resize").style("display",null),l.select("body").style("cursor",en.style("cursor")),dn({type:"brushstart"}),is();function Ha(){l.event.keyCode==32&&(zr||(kr=null,eo[0]-=Ae[1],eo[1]-=_e[1],zr=2),Ne())}function Vs(){l.event.keyCode==32&&zr==2&&(eo[0]+=Ae[1],eo[1]+=_e[1],zr=0,Ne())}function is(){var sa=l.mouse(Kt),Ca=!1;lo&&(sa[0]+=lo[0],sa[1]+=lo[1]),zr||(l.event.altKey?(kr||(kr=[(Ae[0]+Ae[1])/2,(_e[0]+_e[1])/2]),eo[0]=Ae[+(sa[0]=1e21?F.toLocaleString("en").replace(/,/g,""):F.toString(10)}function h(F,H){if((j=(F=H?F.toExponential(H-1):F.toExponential()).indexOf("e"))<0)return null;var j,P=F.slice(0,j);return[P.length>1?P[0]+P.slice(2):P,+F.slice(j+1)]}function l(F){return F=h(Math.abs(F)),F?F[1]:NaN}function c(F,H){return function(j,P){for(var ee=j.length,J=[],K=0,ae=F[0],Q=0;ee>0&&ae>0&&(Q+ae+1>P&&(ae=Math.max(1,P-Q)),J.push(j.substring(ee-=ae,ee+ae)),!((Q+=ae+1)>P));)ae=F[K=(K+1)%F.length];return J.reverse().join(H)}}function i(F){return function(H){return H.replace(/[0-9]/g,function(j){return F[+j]})}}var u=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function d(F){if(!(H=u.exec(F)))throw new Error("invalid format: "+F);var H;return new g({fill:H[1],align:H[2],sign:H[3],symbol:H[4],zero:H[5],width:H[6],comma:H[7],precision:H[8]&&H[8].slice(1),trim:H[9],type:H[10]})}d.prototype=g.prototype;function g(F){this.fill=F.fill===void 0?" ":F.fill+"",this.align=F.align===void 0?">":F.align+"",this.sign=F.sign===void 0?"-":F.sign+"",this.symbol=F.symbol===void 0?"":F.symbol+"",this.zero=!!F.zero,this.width=F.width===void 0?void 0:+F.width,this.comma=!!F.comma,this.precision=F.precision===void 0?void 0:+F.precision,this.trim=!!F.trim,this.type=F.type===void 0?"":F.type+""}g.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function v(F){e:for(var H=F.length,j=1,P=-1,ee;j0&&(P=0);break}return P>0?F.slice(0,P)+F.slice(ee+1):F}var x;function C(F,H){var j=h(F,H);if(!j)return F+"";var P=j[0],ee=j[1],J=ee-(x=Math.max(-8,Math.min(8,Math.floor(ee/3)))*3)+1,K=P.length;return J===K?P:J>K?P+new Array(J-K+1).join("0"):J>0?P.slice(0,J)+"."+P.slice(J):"0."+new Array(1-J).join("0")+h(F,Math.max(0,H+J-1))[0]}function _(F,H){var j=h(F,H);if(!j)return F+"";var P=j[0],ee=j[1];return ee<0?"0."+new Array(-ee).join("0")+P:P.length>ee+1?P.slice(0,ee+1)+"."+P.slice(ee+1):P+new Array(ee-P.length+2).join("0")}var $={"%":function(F,H){return(F*100).toFixed(H)},b:function(F){return Math.round(F).toString(2)},c:function(F){return F+""},d:m,e:function(F,H){return F.toExponential(H)},f:function(F,H){return F.toFixed(H)},g:function(F,H){return F.toPrecision(H)},o:function(F){return Math.round(F).toString(8)},p:function(F,H){return _(F*100,H)},r:_,s:C,X:function(F){return Math.round(F).toString(16).toUpperCase()},x:function(F){return Math.round(F).toString(16)}};function S(F){return F}var O=Array.prototype.map,D=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function N(F){var H=F.grouping===void 0||F.thousands===void 0?S:c(O.call(F.grouping,Number),F.thousands+""),j=F.currency===void 0?"":F.currency[0]+"",P=F.currency===void 0?"":F.currency[1]+"",ee=F.decimal===void 0?".":F.decimal+"",J=F.numerals===void 0?S:i(O.call(F.numerals,String)),K=F.percent===void 0?"%":F.percent+"",ae=F.minus===void 0?"-":F.minus+"",Q=F.nan===void 0?"NaN":F.nan+"";function he(Se){Se=d(Se);var ce=Se.fill,ne=Se.align,fe=Se.sign,X=Se.symbol,ye=Se.zero,Ce=Se.width,$e=Se.comma,ke=Se.precision,Ne=Se.trim,Ve=Se.type;Ve==="n"?($e=!0,Ve="g"):$[Ve]||(ke===void 0&&(ke=12),Ne=!0,Ve="g"),(ye||ce==="0"&&ne==="=")&&(ye=!0,ce="0",ne="=");var Oe=X==="$"?j:X==="#"&&/[boxX]/.test(Ve)?"0"+Ve.toLowerCase():"",Fe=X==="$"?P:/[%p]/.test(Ve)?K:"",ie=$[Ve],we=/[defgprs%]/.test(Ve);ke=ke===void 0?6:/[gprs]/.test(Ve)?Math.max(1,Math.min(21,ke)):Math.max(0,Math.min(20,ke));function se(ue){var pe=Oe,le=Fe,Te,de,Me;if(Ve==="c")le=ie(ue)+le,ue="";else{ue=+ue;var Re=ue<0||1/ue<0;if(ue=isNaN(ue)?Q:ie(Math.abs(ue),ke),Ne&&(ue=v(ue)),Re&&+ue==0&&fe!=="+"&&(Re=!1),pe=(Re?fe==="("?fe:ae:fe==="-"||fe==="("?"":fe)+pe,le=(Ve==="s"?D[8+x/3]:"")+le+(Re&&fe==="("?")":""),we){for(Te=-1,de=ue.length;++TeMe||Me>57){le=(Me===46?ee+ue.slice(Te+1):ue.slice(Te))+le,ue=ue.slice(0,Te);break}}}$e&&!ye&&(ue=H(ue,1/0));var ze=pe.length+ue.length+le.length,We=ze>1)+pe+ue+le+We.slice(ze);break;default:ue=We+pe+ue+le;break}return J(ue)}return se.toString=function(){return Se+""},se}function ge(Se,ce){var ne=he((Se=d(Se),Se.type="f",Se)),fe=Math.max(-8,Math.min(8,Math.floor(l(ce)/3)))*3,X=Math.pow(10,-fe),ye=D[8+fe/3];return function(Ce){return ne(X*Ce)+ye}}return{format:he,formatPrefix:ge}}var M,k;R({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function R(F){return M=N(F),k=M.format,M.formatPrefix,M}},4096:function(L,A,s){s.d(A,{i$:function(){return Wn},Dq:function(){return x},g0:function(){return wn}});var m=s(8176),h=s(8480),l=s(9879),c=s(2301),i=s(4823),u=s(9791);function d(ft){if(0<=ft.y&&ft.y<100){var wt=new Date(-1,ft.m,ft.d,ft.H,ft.M,ft.S,ft.L);return wt.setFullYear(ft.y),wt}return new Date(ft.y,ft.m,ft.d,ft.H,ft.M,ft.S,ft.L)}function g(ft){if(0<=ft.y&&ft.y<100){var wt=new Date(Date.UTC(-1,ft.m,ft.d,ft.H,ft.M,ft.S,ft.L));return wt.setUTCFullYear(ft.y),wt}return new Date(Date.UTC(ft.y,ft.m,ft.d,ft.H,ft.M,ft.S,ft.L))}function v(ft,wt,vt){return{y:ft,m:wt,d:vt,H:0,M:0,S:0,L:0}}function x(ft){var wt=ft.dateTime,vt=ft.date,$t=ft.time,Ze=ft.periods,it=ft.days,ht=ft.shortDays,pt=ft.months,Tt=ft.shortMonths,Et=N(Ze),fn=M(Ze),tn=N(it),Zt=M(it),Dt=N(ht),un=M(ht),Un=N(pt),tr=M(pt),Er=N(Tt),zt=M(Tt),pr={a:He,A:De,b:St,B:kt,c:null,d:$e,e:$e,f:Fe,H:ke,I:Ne,j:Ve,L:Oe,m:ie,M:we,p:Pt,q:Bt,Q:an,s:Cn,S:se,u:ue,U:pe,V:le,w:Te,W:de,x:null,X:null,y:Me,Y:Re,Z:ze,"%":Zn},Gn={a:Ut,A:Ot,b:_t,B:qt,c:null,d:We,e:We,f:qe,H:ot,I:dt,j:Ge,L:Xe,m:gt,M:ut,p:cn,q:Qt,Q:an,s:Cn,S:tt,u:Ct,U:Gt,V:Yt,w:Nt,W:Ft,x:null,X:null,y:pn,Y:_n,Z:sn,"%":Zn},Ir={a:Ln,A:xr,b:or,B:wr,c:ro,d:Q,e:Q,f:fe,H:ge,I:ge,j:he,L:ne,m:ae,M:Se,p:_r,q:K,Q:ye,s:Ce,S:ce,u:R,U:F,V:H,w:k,W:j,x:vo,X:Cr,y:ee,Y:P,Z:J,"%":X};pr.x=Tr(vt,pr),pr.X=Tr($t,pr),pr.c=Tr(wt,pr),Gn.x=Tr(vt,Gn),Gn.X=Tr($t,Gn),Gn.c=Tr(wt,Gn);function Tr(nn,Sn){return function(bn){var gn=[],Qn=-1,Bn=0,Hr=nn.length,fr,Vr,ar;for(bn instanceof Date||(bn=new Date(+bn));++Qn53)return null;"w"in gn||(gn.w=1),"Z"in gn?(Bn=g(v(gn.y,0,1)),Hr=Bn.getUTCDay(),Bn=Hr>4||Hr===0?m.l6.ceil(Bn):(0,m.l6)(Bn),Bn=h.Z.offset(Bn,(gn.V-1)*7),gn.y=Bn.getUTCFullYear(),gn.m=Bn.getUTCMonth(),gn.d=Bn.getUTCDate()+(gn.w+6)%7):(Bn=d(v(gn.y,0,1)),Hr=Bn.getDay(),Bn=Hr>4||Hr===0?l.wA.ceil(Bn):(0,l.wA)(Bn),Bn=c.Z.offset(Bn,(gn.V-1)*7),gn.y=Bn.getFullYear(),gn.m=Bn.getMonth(),gn.d=Bn.getDate()+(gn.w+6)%7)}else("W"in gn||"U"in gn)&&("w"in gn||(gn.w="u"in gn?gn.u%7:"W"in gn?1:0),Hr="Z"in gn?g(v(gn.y,0,1)).getUTCDay():d(v(gn.y,0,1)).getDay(),gn.m=0,gn.d="W"in gn?(gn.w+6)%7+gn.W*7-(Hr+5)%7:gn.w+gn.U*7-(Hr+6)%7);return"Z"in gn?(gn.H+=gn.Z/100|0,gn.M+=gn.Z%100,g(gn)):d(gn)}}function Yr(nn,Sn,bn,gn){for(var Qn=0,Bn=Sn.length,Hr=bn.length,fr,Vr;Qn=Hr)return-1;if(fr=Sn.charCodeAt(Qn++),fr===37){if(fr=Sn.charAt(Qn++),Vr=Ir[fr in C?Sn.charAt(Qn++):fr],!Vr||(gn=Vr(nn,bn,gn))<0)return-1}else if(fr!=bn.charCodeAt(gn++))return-1}return gn}function _r(nn,Sn,bn){var gn=Et.exec(Sn.slice(bn));return gn?(nn.p=fn[gn[0].toLowerCase()],bn+gn[0].length):-1}function Ln(nn,Sn,bn){var gn=Dt.exec(Sn.slice(bn));return gn?(nn.w=un[gn[0].toLowerCase()],bn+gn[0].length):-1}function xr(nn,Sn,bn){var gn=tn.exec(Sn.slice(bn));return gn?(nn.w=Zt[gn[0].toLowerCase()],bn+gn[0].length):-1}function or(nn,Sn,bn){var gn=Er.exec(Sn.slice(bn));return gn?(nn.m=zt[gn[0].toLowerCase()],bn+gn[0].length):-1}function wr(nn,Sn,bn){var gn=Un.exec(Sn.slice(bn));return gn?(nn.m=tr[gn[0].toLowerCase()],bn+gn[0].length):-1}function ro(nn,Sn,bn){return Yr(nn,wt,Sn,bn)}function vo(nn,Sn,bn){return Yr(nn,vt,Sn,bn)}function Cr(nn,Sn,bn){return Yr(nn,$t,Sn,bn)}function He(nn){return ht[nn.getDay()]}function De(nn){return it[nn.getDay()]}function St(nn){return Tt[nn.getMonth()]}function kt(nn){return pt[nn.getMonth()]}function Pt(nn){return Ze[+(nn.getHours()>=12)]}function Bt(nn){return 1+~~(nn.getMonth()/3)}function Ut(nn){return ht[nn.getUTCDay()]}function Ot(nn){return it[nn.getUTCDay()]}function _t(nn){return Tt[nn.getUTCMonth()]}function qt(nn){return pt[nn.getUTCMonth()]}function cn(nn){return Ze[+(nn.getUTCHours()>=12)]}function Qt(nn){return 1+~~(nn.getUTCMonth()/3)}return{format:function(nn){var Sn=Tr(nn+="",pr);return Sn.toString=function(){return nn},Sn},parse:function(nn){var Sn=rr(nn+="",!1);return Sn.toString=function(){return nn},Sn},utcFormat:function(nn){var Sn=Tr(nn+="",Gn);return Sn.toString=function(){return nn},Sn},utcParse:function(nn){var Sn=rr(nn+="",!0);return Sn.toString=function(){return nn},Sn}}}var C={"-":"",_:" ",0:"0"},_=/^\s*\d+/,$=/^%/,S=/[\\^$*+?|[\]().{}]/g;function O(ft,wt,vt){var $t=ft<0?"-":"",Ze=($t?-ft:ft)+"",it=Ze.length;return $t+(it68?1900:2e3),vt+$t[0].length):-1}function J(ft,wt,vt){var $t=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(wt.slice(vt,vt+6));return $t?(ft.Z=$t[1]?0:-($t[2]+($t[3]||"00")),vt+$t[0].length):-1}function K(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+1));return $t?(ft.q=$t[0]*3-3,vt+$t[0].length):-1}function ae(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+2));return $t?(ft.m=$t[0]-1,vt+$t[0].length):-1}function Q(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+2));return $t?(ft.d=+$t[0],vt+$t[0].length):-1}function he(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+3));return $t?(ft.m=0,ft.d=+$t[0],vt+$t[0].length):-1}function ge(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+2));return $t?(ft.H=+$t[0],vt+$t[0].length):-1}function Se(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+2));return $t?(ft.M=+$t[0],vt+$t[0].length):-1}function ce(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+2));return $t?(ft.S=+$t[0],vt+$t[0].length):-1}function ne(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+3));return $t?(ft.L=+$t[0],vt+$t[0].length):-1}function fe(ft,wt,vt){var $t=_.exec(wt.slice(vt,vt+6));return $t?(ft.L=Math.floor($t[0]/1e3),vt+$t[0].length):-1}function X(ft,wt,vt){var $t=$.exec(wt.slice(vt,vt+1));return $t?vt+$t[0].length:-1}function ye(ft,wt,vt){var $t=_.exec(wt.slice(vt));return $t?(ft.Q=+$t[0],vt+$t[0].length):-1}function Ce(ft,wt,vt){var $t=_.exec(wt.slice(vt));return $t?(ft.s=+$t[0],vt+$t[0].length):-1}function $e(ft,wt){return O(ft.getDate(),wt,2)}function ke(ft,wt){return O(ft.getHours(),wt,2)}function Ne(ft,wt){return O(ft.getHours()%12||12,wt,2)}function Ve(ft,wt){return O(1+c.Z.count((0,i.Z)(ft),ft),wt,3)}function Oe(ft,wt){return O(ft.getMilliseconds(),wt,3)}function Fe(ft,wt){return Oe(ft,wt)+"000"}function ie(ft,wt){return O(ft.getMonth()+1,wt,2)}function we(ft,wt){return O(ft.getMinutes(),wt,2)}function se(ft,wt){return O(ft.getSeconds(),wt,2)}function ue(ft){var wt=ft.getDay();return wt===0?7:wt}function pe(ft,wt){return O(l.OM.count((0,i.Z)(ft)-1,ft),wt,2)}function le(ft,wt){var vt=ft.getDay();return ft=vt>=4||vt===0?(0,l.bL)(ft):l.bL.ceil(ft),O(l.bL.count((0,i.Z)(ft),ft)+((0,i.Z)(ft).getDay()===4),wt,2)}function Te(ft){return ft.getDay()}function de(ft,wt){return O(l.wA.count((0,i.Z)(ft)-1,ft),wt,2)}function Me(ft,wt){return O(ft.getFullYear()%100,wt,2)}function Re(ft,wt){return O(ft.getFullYear()%1e4,wt,4)}function ze(ft){var wt=ft.getTimezoneOffset();return(wt>0?"-":(wt*=-1,"+"))+O(wt/60|0,"0",2)+O(wt%60,"0",2)}function We(ft,wt){return O(ft.getUTCDate(),wt,2)}function ot(ft,wt){return O(ft.getUTCHours(),wt,2)}function dt(ft,wt){return O(ft.getUTCHours()%12||12,wt,2)}function Ge(ft,wt){return O(1+h.Z.count((0,u.Z)(ft),ft),wt,3)}function Xe(ft,wt){return O(ft.getUTCMilliseconds(),wt,3)}function qe(ft,wt){return Xe(ft,wt)+"000"}function gt(ft,wt){return O(ft.getUTCMonth()+1,wt,2)}function ut(ft,wt){return O(ft.getUTCMinutes(),wt,2)}function tt(ft,wt){return O(ft.getUTCSeconds(),wt,2)}function Ct(ft){var wt=ft.getUTCDay();return wt===0?7:wt}function Gt(ft,wt){return O(m.Ox.count((0,u.Z)(ft)-1,ft),wt,2)}function Yt(ft,wt){var vt=ft.getUTCDay();return ft=vt>=4||vt===0?(0,m.hB)(ft):m.hB.ceil(ft),O(m.hB.count((0,u.Z)(ft),ft)+((0,u.Z)(ft).getUTCDay()===4),wt,2)}function Nt(ft){return ft.getUTCDay()}function Ft(ft,wt){return O(m.l6.count((0,u.Z)(ft)-1,ft),wt,2)}function pn(ft,wt){return O(ft.getUTCFullYear()%100,wt,2)}function _n(ft,wt){return O(ft.getUTCFullYear()%1e4,wt,4)}function sn(){return"+0000"}function Zn(){return"%"}function an(ft){return+ft}function Cn(ft){return Math.floor(+ft/1e3)}var jn,Wn,wn;lt({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function lt(ft){return jn=x(ft),Wn=jn.format,jn.parse,wn=jn.utcFormat,jn.utcParse,jn}},2301:function(L,A,s){s.d(A,{a:function(){return c}});var m=s(52),h=s(4263),l=(0,m.Z)(function(i){i.setHours(0,0,0,0)},function(i,u){i.setDate(i.getDate()+u)},function(i,u){return(u-i-(u.getTimezoneOffset()-i.getTimezoneOffset())*h.yB)/h.UD},function(i){return i.getDate()-1});A.Z=l;var c=l.range},4263:function(L,A,s){s.d(A,{UD:function(){return c},Y2:function(){return l},Ym:function(){return m},iM:function(){return i},yB:function(){return h}});var m=1e3,h=6e4,l=36e5,c=864e5,i=6048e5},1041:function(L,A,s){s.r(A),s.d(A,{timeDay:function(){return O.Z},timeDays:function(){return O.a},timeFriday:function(){return D.mC},timeFridays:function(){return D.b$},timeHour:function(){return $},timeHours:function(){return S},timeInterval:function(){return m.Z},timeMillisecond:function(){return l},timeMilliseconds:function(){return c},timeMinute:function(){return x},timeMinutes:function(){return C},timeMonday:function(){return D.wA},timeMondays:function(){return D.bJ},timeMonth:function(){return M},timeMonths:function(){return k},timeSaturday:function(){return D.EY},timeSaturdays:function(){return D.Ff},timeSecond:function(){return d},timeSeconds:function(){return g},timeSunday:function(){return D.OM},timeSundays:function(){return D.vm},timeThursday:function(){return D.bL},timeThursdays:function(){return D.$t},timeTuesday:function(){return D.sy},timeTuesdays:function(){return D.aU},timeWednesday:function(){return D.zg},timeWednesdays:function(){return D.Ld},timeWeek:function(){return D.OM},timeWeeks:function(){return D.vm},timeYear:function(){return R.Z},timeYears:function(){return R.g},utcDay:function(){return K.Z},utcDays:function(){return K.y},utcFriday:function(){return ae.QQ},utcFridays:function(){return ae.fz},utcHour:function(){return ee},utcHours:function(){return J},utcMillisecond:function(){return l},utcMilliseconds:function(){return c},utcMinute:function(){return H},utcMinutes:function(){return j},utcMonday:function(){return ae.l6},utcMondays:function(){return ae.$3},utcMonth:function(){return he},utcMonths:function(){return ge},utcSaturday:function(){return ae.g4},utcSaturdays:function(){return ae.Q_},utcSecond:function(){return d},utcSeconds:function(){return g},utcSunday:function(){return ae.Ox},utcSundays:function(){return ae.SU},utcThursday:function(){return ae.hB},utcThursdays:function(){return ae.xj},utcTuesday:function(){return ae.J1},utcTuesdays:function(){return ae.DK},utcWednesday:function(){return ae.b3},utcWednesdays:function(){return ae.uy},utcWeek:function(){return ae.Ox},utcWeeks:function(){return ae.SU},utcYear:function(){return Se.Z},utcYears:function(){return Se.D}});var m=s(52),h=(0,m.Z)(function(){},function(ce,ne){ce.setTime(+ce+ne)},function(ce,ne){return ne-ce});h.every=function(ce){return ce=Math.floor(ce),!isFinite(ce)||!(ce>0)?null:ce>1?(0,m.Z)(function(ne){ne.setTime(Math.floor(ne/ce)*ce)},function(ne,fe){ne.setTime(+ne+fe*ce)},function(ne,fe){return(fe-ne)/ce}):h};var l=h,c=h.range,i=s(4263),u=(0,m.Z)(function(ce){ce.setTime(ce-ce.getMilliseconds())},function(ce,ne){ce.setTime(+ce+ne*i.Ym)},function(ce,ne){return(ne-ce)/i.Ym},function(ce){return ce.getUTCSeconds()}),d=u,g=u.range,v=(0,m.Z)(function(ce){ce.setTime(ce-ce.getMilliseconds()-ce.getSeconds()*i.Ym)},function(ce,ne){ce.setTime(+ce+ne*i.yB)},function(ce,ne){return(ne-ce)/i.yB},function(ce){return ce.getMinutes()}),x=v,C=v.range,_=(0,m.Z)(function(ce){ce.setTime(ce-ce.getMilliseconds()-ce.getSeconds()*i.Ym-ce.getMinutes()*i.yB)},function(ce,ne){ce.setTime(+ce+ne*i.Y2)},function(ce,ne){return(ne-ce)/i.Y2},function(ce){return ce.getHours()}),$=_,S=_.range,O=s(2301),D=s(9879),N=(0,m.Z)(function(ce){ce.setDate(1),ce.setHours(0,0,0,0)},function(ce,ne){ce.setMonth(ce.getMonth()+ne)},function(ce,ne){return ne.getMonth()-ce.getMonth()+(ne.getFullYear()-ce.getFullYear())*12},function(ce){return ce.getMonth()}),M=N,k=N.range,R=s(4823),F=(0,m.Z)(function(ce){ce.setUTCSeconds(0,0)},function(ce,ne){ce.setTime(+ce+ne*i.yB)},function(ce,ne){return(ne-ce)/i.yB},function(ce){return ce.getUTCMinutes()}),H=F,j=F.range,P=(0,m.Z)(function(ce){ce.setUTCMinutes(0,0,0)},function(ce,ne){ce.setTime(+ce+ne*i.Y2)},function(ce,ne){return(ne-ce)/i.Y2},function(ce){return ce.getUTCHours()}),ee=P,J=P.range,K=s(8480),ae=s(8176),Q=(0,m.Z)(function(ce){ce.setUTCDate(1),ce.setUTCHours(0,0,0,0)},function(ce,ne){ce.setUTCMonth(ce.getUTCMonth()+ne)},function(ce,ne){return ne.getUTCMonth()-ce.getUTCMonth()+(ne.getUTCFullYear()-ce.getUTCFullYear())*12},function(ce){return ce.getUTCMonth()}),he=Q,ge=Q.range,Se=s(9791)},52:function(L,A,s){s.d(A,{Z:function(){return l}});var m=new Date,h=new Date;function l(c,i,u,d){function g(v){return c(v=arguments.length===0?new Date:new Date(+v)),v}return g.floor=function(v){return c(v=new Date(+v)),v},g.ceil=function(v){return c(v=new Date(v-1)),i(v,1),c(v),v},g.round=function(v){var x=g(v),C=g.ceil(v);return v-x0))return _;do _.push($=new Date(+v)),i(v,C),c(v);while($=x)for(;c(x),!v(x);)x.setTime(x-1)},function(x,C){if(x>=x)if(C<0)for(;++C<=0;)for(;i(x,-1),!v(x););else for(;--C>=0;)for(;i(x,1),!v(x););})},u&&(g.count=function(v,x){return m.setTime(+v),h.setTime(+x),c(m),c(h),Math.floor(u(m,h))},g.every=function(v){return v=Math.floor(v),!isFinite(v)||!(v>0)?null:v>1?g.filter(d?function(x){return d(x)%v===0}:function(x){return g.count(0,x)%v===0}):g}),g}},8480:function(L,A,s){s.d(A,{y:function(){return c}});var m=s(52),h=s(4263),l=(0,m.Z)(function(i){i.setUTCHours(0,0,0,0)},function(i,u){i.setUTCDate(i.getUTCDate()+u)},function(i,u){return(u-i)/h.UD},function(i){return i.getUTCDate()-1});A.Z=l;var c=l.range},8176:function(L,A,s){s.d(A,{$3:function(){return _},DK:function(){return $},J1:function(){return u},Ox:function(){return c},QQ:function(){return v},Q_:function(){return N},SU:function(){return C},b3:function(){return d},fz:function(){return D},g4:function(){return x},hB:function(){return g},l6:function(){return i},uy:function(){return S},xj:function(){return O}});var m=s(52),h=s(4263);function l(M){return(0,m.Z)(function(k){k.setUTCDate(k.getUTCDate()-(k.getUTCDay()+7-M)%7),k.setUTCHours(0,0,0,0)},function(k,R){k.setUTCDate(k.getUTCDate()+R*7)},function(k,R){return(R-k)/h.iM})}var c=l(0),i=l(1),u=l(2),d=l(3),g=l(4),v=l(5),x=l(6),C=c.range,_=i.range,$=u.range,S=d.range,O=g.range,D=v.range,N=x.range},9791:function(L,A,s){s.d(A,{D:function(){return l}});var m=s(52),h=(0,m.Z)(function(c){c.setUTCMonth(0,1),c.setUTCHours(0,0,0,0)},function(c,i){c.setUTCFullYear(c.getUTCFullYear()+i)},function(c,i){return i.getUTCFullYear()-c.getUTCFullYear()},function(c){return c.getUTCFullYear()});h.every=function(c){return!isFinite(c=Math.floor(c))||!(c>0)?null:(0,m.Z)(function(i){i.setUTCFullYear(Math.floor(i.getUTCFullYear()/c)*c),i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,u){i.setUTCFullYear(i.getUTCFullYear()+u*c)})},A.Z=h;var l=h.range},9879:function(L,A,s){s.d(A,{$t:function(){return O},EY:function(){return x},Ff:function(){return N},Ld:function(){return S},OM:function(){return c},aU:function(){return $},b$:function(){return D},bJ:function(){return _},bL:function(){return g},mC:function(){return v},sy:function(){return u},vm:function(){return C},wA:function(){return i},zg:function(){return d}});var m=s(52),h=s(4263);function l(M){return(0,m.Z)(function(k){k.setDate(k.getDate()-(k.getDay()+7-M)%7),k.setHours(0,0,0,0)},function(k,R){k.setDate(k.getDate()+R*7)},function(k,R){return(R-k-(R.getTimezoneOffset()-k.getTimezoneOffset())*h.yB)/h.iM})}var c=l(0),i=l(1),u=l(2),d=l(3),g=l(4),v=l(5),x=l(6),C=c.range,_=i.range,$=u.range,S=d.range,O=g.range,D=v.range,N=x.range},4823:function(L,A,s){s.d(A,{g:function(){return l}});var m=s(52),h=(0,m.Z)(function(c){c.setMonth(0,1),c.setHours(0,0,0,0)},function(c,i){c.setFullYear(c.getFullYear()+i)},function(c,i){return i.getFullYear()-c.getFullYear()},function(c){return c.getFullYear()});h.every=function(c){return!isFinite(c=Math.floor(c))||!(c>0)?null:(0,m.Z)(function(i){i.setFullYear(Math.floor(i.getFullYear()/c)*c),i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,u){i.setFullYear(i.getFullYear()+u*c)})},A.Z=h;var l=h.range},5398:function(L){var A=typeof Reflect=="object"?Reflect:null,s=A&&typeof A.apply=="function"?A.apply:function(R,F,H){return Function.prototype.apply.call(R,F,H)},m;A&&typeof A.ownKeys=="function"?m=A.ownKeys:Object.getOwnPropertySymbols?m=function(R){return Object.getOwnPropertyNames(R).concat(Object.getOwnPropertySymbols(R))}:m=function(R){return Object.getOwnPropertyNames(R)};function h(k){console&&console.warn&&console.warn(k)}var l=Number.isNaN||function(R){return R!==R};function c(){c.init.call(this)}L.exports=c,L.exports.once=D,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var i=10;function u(k){if(typeof k!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof k)}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(k){if(typeof k!="number"||k<0||l(k))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+k+".");i=k}}),c.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(R){if(typeof R!="number"||R<0||l(R))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+R+".");return this._maxListeners=R,this};function d(k){return k._maxListeners===void 0?c.defaultMaxListeners:k._maxListeners}c.prototype.getMaxListeners=function(){return d(this)},c.prototype.emit=function(R){for(var F=[],H=1;H0&&(ee=F[0]),ee instanceof Error)throw ee;var J=new Error("Unhandled error."+(ee?" ("+ee.message+")":""));throw J.context=ee,J}var K=P[R];if(K===void 0)return!1;if(typeof K=="function")s(K,this,F);else for(var ae=K.length,Q=$(K,ae),H=0;H0&&ee.length>j&&!ee.warned){ee.warned=!0;var J=new Error("Possible EventEmitter memory leak detected. "+ee.length+" "+String(R)+" listeners added. Use emitter.setMaxListeners() to increase limit");J.name="MaxListenersExceededWarning",J.emitter=k,J.type=R,J.count=ee.length,h(J)}return k}c.prototype.addListener=function(R,F){return g(this,R,F,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(R,F){return g(this,R,F,!0)};function v(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function x(k,R,F){var H={fired:!1,wrapFn:void 0,target:k,type:R,listener:F},j=v.bind(H);return j.listener=F,H.wrapFn=j,j}c.prototype.once=function(R,F){return u(F),this.on(R,x(this,R,F)),this},c.prototype.prependOnceListener=function(R,F){return u(F),this.prependListener(R,x(this,R,F)),this},c.prototype.removeListener=function(R,F){var H,j,P,ee,J;if(u(F),j=this._events,j===void 0)return this;if(H=j[R],H===void 0)return this;if(H===F||H.listener===F)--this._eventsCount===0?this._events=Object.create(null):(delete j[R],j.removeListener&&this.emit("removeListener",R,H.listener||F));else if(typeof H!="function"){for(P=-1,ee=H.length-1;ee>=0;ee--)if(H[ee]===F||H[ee].listener===F){J=H[ee].listener,P=ee;break}if(P<0)return this;P===0?H.shift():S(H,P),H.length===1&&(j[R]=H[0]),j.removeListener!==void 0&&this.emit("removeListener",R,J||F)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(R){var F,H,j;if(H=this._events,H===void 0)return this;if(H.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):H[R]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete H[R]),this;if(arguments.length===0){var P=Object.keys(H),ee;for(j=0;j=0;j--)this.removeListener(R,F[j]);return this};function C(k,R,F){var H=k._events;if(H===void 0)return[];var j=H[R];return j===void 0?[]:typeof j=="function"?F?[j.listener||j]:[j]:F?O(j):$(j,j.length)}c.prototype.listeners=function(R){return C(this,R,!0)},c.prototype.rawListeners=function(R){return C(this,R,!1)},c.listenerCount=function(k,R){return typeof k.listenerCount=="function"?k.listenerCount(R):_.call(k,R)},c.prototype.listenerCount=_;function _(k){var R=this._events;if(R!==void 0){var F=R[k];if(typeof F=="function")return 1;if(F!==void 0)return F.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?m(this._events):[]};function $(k,R){for(var F=new Array(R),H=0;H13)&&m!==32&&m!==133&&m!==160&&m!==5760&&m!==6158&&(m<8192||m>8205)&&m!==8232&&m!==8233&&m!==8239&&m!==8287&&m!==8288&&m!==12288&&m!==65279)return!1;return!0}},8956:function(L){var A={left:0,top:0};L.exports=s;function s(h,l,c){l=l||h.currentTarget||h.srcElement,Array.isArray(c)||(c=[0,0]);var i=h.clientX||0,u=h.clientY||0,d=m(l);return c[0]=i-d.left,c[1]=u-d.top,c}function m(h){return h===window||h===document||h===document.body?A:h.getBoundingClientRect()}},7417:function(L,A,s){var m;/*! Native Promise Only - v0.8.1 (c) Kyle Simpson - MIT License: http://getify.mit-license.org -*/(function(l,c,i){c[l]=c[l]||i(),L.exports?L.exports=c[l]:(m=(function(){return c[l]}).call(A,s,A,L),m!==void 0&&(L.exports=m))})("Promise",typeof s.g<"u"?s.g:this,function(){var l,c,i,u=Object.prototype.toString,d=typeof setImmediate<"u"?function(R){return setImmediate(R)}:setTimeout;try{Object.defineProperty({},"x",{}),l=function(R,F,H,j){return Object.defineProperty(R,F,{value:H,writable:!0,configurable:j!==!1})}}catch{l=function(F,H,j){return F[H]=j,F}}i=function(){var R,F,H;function j(P,ee){this.fn=P,this.self=ee,this.next=void 0}return{add:function(ee,J){H=new j(ee,J),F?F.next=H:R=H,F=H,H=void 0},drain:function(){var ee=R;for(R=F=c=void 0;ee;)ee.fn.call(ee.self),ee=ee.next}}}();function g(k,R){i.add(k,R),c||(c=d(i.drain))}function v(k){var R,F=typeof k;return k!=null&&(F=="object"||F=="function")&&(R=k.then),typeof R=="function"?R:!1}function x(){for(var k=0;k0&&g(x,F))}catch(H){$.call(new O(F),H)}}}function $(k){var R=this;R.triggered||(R.triggered=!0,R.def&&(R=R.def),R.msg=k,R.state=2,R.chain.length>0&&g(x,R))}function S(k,R,F,H){for(var j=0;j2&&(i.push([d].concat(g.splice(0,2))),v="l",d=d=="m"?"l":"L");;){if(g.length==A[v])return g.unshift(d),i.push(g);if(g.lengthi!=$>i&&c<(_-x)*(i-C)/($-C)+x;S&&(u=!u)}return u}},2142:function(L,A,s){/* - * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc - * @license MIT - * @preserve Project Home: https://github.com/voidqk/polybooljs - */var m=s(9444),h=s(9023),l=s(7263),c=s(1328),i=s(5968),u=s(670),d=!1,g=h(),v;v={buildLog:function(C){return C===!0?d=m():C===!1&&(d=!1),d===!1?!1:d.list},epsilon:function(C){return g.epsilon(C)},segments:function(C){var _=l(!0,g,d);return C.regions.forEach(_.addRegion),{segments:_.calculate(C.inverted),inverted:C.inverted}},combine:function(C,_){var $=l(!1,g,d);return{combined:$.calculate(C.segments,C.inverted,_.segments,_.inverted),inverted1:C.inverted,inverted2:_.inverted}},selectUnion:function(C){return{segments:i.union(C.combined,d),inverted:C.inverted1||C.inverted2}},selectIntersect:function(C){return{segments:i.intersect(C.combined,d),inverted:C.inverted1&&C.inverted2}},selectDifference:function(C){return{segments:i.difference(C.combined,d),inverted:C.inverted1&&!C.inverted2}},selectDifferenceRev:function(C){return{segments:i.differenceRev(C.combined,d),inverted:!C.inverted1&&C.inverted2}},selectXor:function(C){return{segments:i.xor(C.combined,d),inverted:C.inverted1!==C.inverted2}},polygon:function(C){return{regions:c(C.segments,g,d),inverted:C.inverted}},polygonFromGeoJSON:function(C){return u.toPolygon(v,C)},polygonToGeoJSON:function(C){return u.fromPolygon(v,g,C)},union:function(C,_){return x(C,_,v.selectUnion)},intersect:function(C,_){return x(C,_,v.selectIntersect)},difference:function(C,_){return x(C,_,v.selectDifference)},differenceRev:function(C,_){return x(C,_,v.selectDifferenceRev)},xor:function(C,_){return x(C,_,v.selectXor)}};function x(C,_,$){var S=v.segments(C),O=v.segments(_),D=v.combine(S,O),N=$(D);return v.polygon(N)}typeof window=="object"&&(window.PolyBool=v),L.exports=v},9444:function(L){function A(){var s,m=0,h=!1;function l(c,i){return s.list.push({type:c,data:i?JSON.parse(JSON.stringify(i)):void 0}),s}return s={list:[],segmentId:function(){return m++},checkIntersection:function(c,i){return l("check",{seg1:c,seg2:i})},segmentChop:function(c,i){return l("div_seg",{seg:c,pt:i}),l("chop",{seg:c,pt:i})},statusRemove:function(c){return l("pop_seg",{seg:c})},segmentUpdate:function(c){return l("seg_update",{seg:c})},segmentNew:function(c,i){return l("new_seg",{seg:c,primary:i})},segmentRemove:function(c){return l("rem_seg",{seg:c})},tempStatus:function(c,i,u){return l("temp_status",{seg:c,above:i,below:u})},rewind:function(c){return l("rewind",{seg:c})},status:function(c,i,u){return l("status",{seg:c,above:i,below:u})},vert:function(c){return c===h?s:(h=c,l("vert",{x:c}))},log:function(c){return typeof c!="string"&&(c=JSON.stringify(c,!1," ")),l("log",{txt:c})},reset:function(){return l("reset")},selected:function(c){return l("selected",{segs:c})},chainStart:function(c){return l("chain_start",{seg:c})},chainRemoveHead:function(c,i){return l("chain_rem_head",{index:c,pt:i})},chainRemoveTail:function(c,i){return l("chain_rem_tail",{index:c,pt:i})},chainNew:function(c,i){return l("chain_new",{pt1:c,pt2:i})},chainMatch:function(c){return l("chain_match",{index:c})},chainClose:function(c){return l("chain_close",{index:c})},chainAddHead:function(c,i){return l("chain_add_head",{index:c,pt:i})},chainAddTail:function(c,i){return l("chain_add_tail",{index:c,pt:i})},chainConnect:function(c,i){return l("chain_con",{index1:c,index2:i})},chainReverse:function(c){return l("chain_rev",{index:c})},chainJoin:function(c,i){return l("chain_join",{index1:c,index2:i})},done:function(){return l("done")}},s}L.exports=A},9023:function(L){function A(s){typeof s!="number"&&(s=1e-10);var m={epsilon:function(h){return typeof h=="number"&&(s=h),s},pointAboveOrOnLine:function(h,l,c){var i=l[0],u=l[1],d=c[0],g=c[1],v=h[0],x=h[1];return(d-i)*(x-u)-(g-u)*(v-i)>=-s},pointBetween:function(h,l,c){var i=h[1]-l[1],u=c[0]-l[0],d=h[0]-l[0],g=c[1]-l[1],v=d*u+i*g;if(v-s)},pointsSameX:function(h,l){return Math.abs(h[0]-l[0])s!=d-i>s&&(u-x)*(i-C)/(d-C)+x-c>s&&(g=!g),u=x,d=C}return g}};return m}L.exports=A},670:function(L){var A={toPolygon:function(s,m){function h(i){if(i.length<=0)return s.segments({inverted:!1,regions:[]});function u(v){var x=v.slice(0,v.length-1);return s.segments({inverted:!1,regions:[x]})}for(var d=u(i[0]),g=1;g0})}function H(ce,ne){var fe=ce.seg,X=ne.seg,ye=fe.start,Ce=fe.end,$e=X.start,ke=X.end;i&&i.checkIntersection(fe,X);var Ne=c.linesIntersect(ye,Ce,$e,ke);if(Ne===!1){if(!c.pointsCollinear(ye,Ce,$e)||c.pointsSame(ye,ke)||c.pointsSame(Ce,$e))return!1;var Ve=c.pointsSame(ye,$e),Oe=c.pointsSame(Ce,ke);if(Ve&&Oe)return ne;var Fe=!Ve&&c.pointBetween(ye,$e,ke),ie=!Oe&&c.pointBetween(Ce,$e,ke);if(Ve)return ie?O(ne,Ce):O(ce,ke),ne;Fe&&(Oe||(ie?O(ne,Ce):O(ce,ke)),O(ne,ye))}else Ne.alongA===0&&(Ne.alongB===-1?O(ce,$e):Ne.alongB===0?O(ce,Ne.pt):Ne.alongB===1&&O(ce,ke)),Ne.alongB===0&&(Ne.alongA===-1?O(ne,ye):Ne.alongA===0?O(ne,Ne.pt):Ne.alongA===1&&O(ne,Ce));return!1}for(var j=[];!g.isEmpty();){var P=g.getHead();if(i&&i.vert(P.pt[0]),P.isStart){let ce=function(){if(J){var ne=H(P,J);if(ne)return ne}return K?H(P,K):!1};i&&i.segmentNew(P.seg,P.primary);var ee=F(P),J=ee.before?ee.before.ev:null,K=ee.after?ee.after.ev:null;i&&i.tempStatus(P.seg,J?J.seg:!1,K?K.seg:!1);var ae=ce();if(ae){if(l){var Q;P.seg.myFill.below===null?Q=!0:Q=P.seg.myFill.above!==P.seg.myFill.below,Q&&(ae.seg.myFill.above=!ae.seg.myFill.above)}else ae.seg.otherFill=P.seg.myFill;i&&i.segmentUpdate(ae.seg),P.other.remove(),P.remove()}if(g.getHead()!==P){i&&i.rewind(P.seg);continue}if(l){var Q;P.seg.myFill.below===null?Q=!0:Q=P.seg.myFill.above!==P.seg.myFill.below,K?P.seg.myFill.below=K.seg.myFill.above:P.seg.myFill.below=N,Q?P.seg.myFill.above=!P.seg.myFill.below:P.seg.myFill.above=P.seg.myFill.below}else if(P.seg.otherFill===null){var he;K?P.primary===K.primary?he=K.seg.otherFill.above:he=K.seg.myFill.above:he=P.primary?M:N,P.seg.otherFill={above:he,below:he}}i&&i.status(P.seg,J?J.seg:!1,K?K.seg:!1),P.other.status=ee.insert(m.node({ev:P}))}else{var ge=P.status;if(ge===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(k.exists(ge.prev)&&k.exists(ge.next)&&H(ge.prev.ev,ge.next.ev),i&&i.statusRemove(ge.ev.seg),ge.remove(),!P.primary){var Se=P.seg.myFill;P.seg.myFill=P.seg.otherFill,P.seg.otherFill=Se}j.push(P.seg)}g.getHead().remove()}return i&&i.done(),j}return l?{addRegion:function(N){for(var M,k=N[N.length-1],R=0;R=0,Re=!Te&&Me&&(le==="hex"||le==="hex6"||le==="hex3"||le==="hex4"||le==="hex8"||le==="name");return Re?le==="name"&&this._a===0?this.toName():this.toRgbString():(le==="rgb"&&(de=this.toRgbString()),le==="prgb"&&(de=this.toPercentageRgbString()),(le==="hex"||le==="hex6")&&(de=this.toHexString()),le==="hex3"&&(de=this.toHexString(!0)),le==="hex4"&&(de=this.toHex8String(!0)),le==="hex8"&&(de=this.toHex8String()),le==="name"&&(de=this.toName()),le==="hsl"&&(de=this.toHslString()),le==="hsv"&&(de=this.toHsvString()),de||this.toHexString())},clone:function(){return x(this.toString())},_applyModification:function(le,Te){var de=le.apply(null,[this].concat([].slice.call(Te)));return this._r=de._r,this._g=de._g,this._b=de._b,this.setAlpha(de._a),this},lighten:function(){return this._applyModification(j,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(ee,arguments)},desaturate:function(){return this._applyModification(R,arguments)},saturate:function(){return this._applyModification(F,arguments)},greyscale:function(){return this._applyModification(H,arguments)},spin:function(){return this._applyModification(J,arguments)},_applyCombination:function(le,Te){return le.apply(null,[this].concat([].slice.call(Te)))},analogous:function(){return this._applyCombination(ge,arguments)},complement:function(){return this._applyCombination(K,arguments)},monochromatic:function(){return this._applyCombination(Se,arguments)},splitcomplement:function(){return this._applyCombination(he,arguments)},triad:function(){return this._applyCombination(ae,arguments)},tetrad:function(){return this._applyCombination(Q,arguments)}},x.fromRatio=function(le,Te){if(typeof le=="object"){var de={};for(var Me in le)le.hasOwnProperty(Me)&&(Me==="a"?de[Me]=le[Me]:de[Me]=Oe(le[Me]));le=de}return x(le,Te)};function C(le){var Te={r:0,g:0,b:0},de=1,Me=null,Re=null,ze=null,We=!1,ot=!1;return typeof le=="string"&&(le=ue(le)),typeof le=="object"&&(se(le.r)&&se(le.g)&&se(le.b)?(Te=_(le.r,le.g,le.b),We=!0,ot=String(le.r).substr(-1)==="%"?"prgb":"rgb"):se(le.h)&&se(le.s)&&se(le.v)?(Me=Oe(le.s),Re=Oe(le.v),Te=D(le.h,Me,Re),We=!0,ot="hsv"):se(le.h)&&se(le.s)&&se(le.l)&&(Me=Oe(le.s),ze=Oe(le.l),Te=S(le.h,Me,ze),We=!0,ot="hsl"),le.hasOwnProperty("a")&&(de=le.a)),de=X(de),{ok:We,format:le.format||ot,r:d(255,g(Te.r,0)),g:d(255,g(Te.g,0)),b:d(255,g(Te.b,0)),a:de}}function _(le,Te,de){return{r:ye(le,255)*255,g:ye(Te,255)*255,b:ye(de,255)*255}}function $(le,Te,de){le=ye(le,255),Te=ye(Te,255),de=ye(de,255);var Me=g(le,Te,de),Re=d(le,Te,de),ze,We,ot=(Me+Re)/2;if(Me==Re)ze=We=0;else{var dt=Me-Re;switch(We=ot>.5?dt/(2-Me-Re):dt/(Me+Re),Me){case le:ze=(Te-de)/dt+(Te1&&(qe-=1),qe<.16666666666666666?Ge+(Xe-Ge)*6*qe:qe<.5?Xe:qe<.6666666666666666?Ge+(Xe-Ge)*(.6666666666666666-qe)*6:Ge}if(Te===0)Me=Re=ze=de;else{var ot=de<.5?de*(1+Te):de+Te-de*Te,dt=2*de-ot;Me=We(dt,ot,le+.3333333333333333),Re=We(dt,ot,le),ze=We(dt,ot,le-.3333333333333333)}return{r:Me*255,g:Re*255,b:ze*255}}function O(le,Te,de){le=ye(le,255),Te=ye(Te,255),de=ye(de,255);var Me=g(le,Te,de),Re=d(le,Te,de),ze,We,ot=Me,dt=Me-Re;if(We=Me===0?0:dt/Me,Me==Re)ze=0;else{switch(Me){case le:ze=(Te-de)/dt+(Te>1)+720)%360;--Te;)Me.h=(Me.h+Re)%360,ze.push(x(Me));return ze}function Se(le,Te){Te=Te||6;for(var de=x(le).toHsv(),Me=de.h,Re=de.s,ze=de.v,We=[],ot=1/Te;Te--;)We.push(x({h:Me,s:Re,v:ze})),ze=(ze+ot)%1;return We}x.mix=function(le,Te,de){de=de===0?0:de||50;var Me=x(le).toRgb(),Re=x(Te).toRgb(),ze=de/100,We={r:(Re.r-Me.r)*ze+Me.r,g:(Re.g-Me.g)*ze+Me.g,b:(Re.b-Me.b)*ze+Me.b,a:(Re.a-Me.a)*ze+Me.a};return x(We)},x.readability=function(le,Te){var de=x(le),Me=x(Te);return(h.max(de.getLuminance(),Me.getLuminance())+.05)/(h.min(de.getLuminance(),Me.getLuminance())+.05)},x.isReadable=function(le,Te,de){var Me=x.readability(le,Te),Re,ze;switch(ze=!1,Re=pe(de),Re.level+Re.size){case"AAsmall":case"AAAlarge":ze=Me>=4.5;break;case"AAlarge":ze=Me>=3;break;case"AAAsmall":ze=Me>=7;break}return ze},x.mostReadable=function(le,Te,de){var Me=null,Re=0,ze,We,ot,dt;de=de||{},We=de.includeFallbackColors,ot=de.level,dt=de.size;for(var Ge=0;GeRe&&(Re=ze,Me=x(Te[Ge]));return x.isReadable(le,Me,{level:ot,size:dt})||!We?Me:(de.includeFallbackColors=!1,x.mostReadable(le,["#fff","#000"],de))};var ce=x.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ne=x.hexNames=fe(ce);function fe(le){var Te={};for(var de in le)le.hasOwnProperty(de)&&(Te[le[de]]=de);return Te}function X(le){return le=parseFloat(le),(isNaN(le)||le<0||le>1)&&(le=1),le}function ye(le,Te){ke(le)&&(le="100%");var de=Ne(le);return le=d(Te,g(0,parseFloat(le))),de&&(le=parseInt(le*Te,10)/100),h.abs(le-Te)<1e-6?1:le%Te/parseFloat(Te)}function Ce(le){return d(1,g(0,le))}function $e(le){return parseInt(le,16)}function ke(le){return typeof le=="string"&&le.indexOf(".")!=-1&&parseFloat(le)===1}function Ne(le){return typeof le=="string"&&le.indexOf("%")!=-1}function Ve(le){return le.length==1?"0"+le:""+le}function Oe(le){return le<=1&&(le=le*100+"%"),le}function Fe(le){return h.round(parseFloat(le)*255).toString(16)}function ie(le){return $e(le)/255}var we=function(){var le="[-\\+]?\\d+%?",Te="[-\\+]?\\d*\\.\\d+%?",de="(?:"+Te+")|(?:"+le+")",Me="[\\s|\\(]+("+de+")[,|\\s]+("+de+")[,|\\s]+("+de+")\\s*\\)?",Re="[\\s|\\(]+("+de+")[,|\\s]+("+de+")[,|\\s]+("+de+")[,|\\s]+("+de+")\\s*\\)?";return{CSS_UNIT:new RegExp(de),rgb:new RegExp("rgb"+Me),rgba:new RegExp("rgba"+Re),hsl:new RegExp("hsl"+Me),hsla:new RegExp("hsla"+Re),hsv:new RegExp("hsv"+Me),hsva:new RegExp("hsva"+Re),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function se(le){return!!we.CSS_UNIT.exec(le)}function ue(le){le=le.replace(l,"").replace(c,"").toLowerCase();var Te=!1;if(ce[le])le=ce[le],Te=!0;else if(le=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var de;return(de=we.rgb.exec(le))?{r:de[1],g:de[2],b:de[3]}:(de=we.rgba.exec(le))?{r:de[1],g:de[2],b:de[3],a:de[4]}:(de=we.hsl.exec(le))?{h:de[1],s:de[2],l:de[3]}:(de=we.hsla.exec(le))?{h:de[1],s:de[2],l:de[3],a:de[4]}:(de=we.hsv.exec(le))?{h:de[1],s:de[2],v:de[3]}:(de=we.hsva.exec(le))?{h:de[1],s:de[2],v:de[3],a:de[4]}:(de=we.hex8.exec(le))?{r:$e(de[1]),g:$e(de[2]),b:$e(de[3]),a:ie(de[4]),format:Te?"name":"hex8"}:(de=we.hex6.exec(le))?{r:$e(de[1]),g:$e(de[2]),b:$e(de[3]),format:Te?"name":"hex"}:(de=we.hex4.exec(le))?{r:$e(de[1]+""+de[1]),g:$e(de[2]+""+de[2]),b:$e(de[3]+""+de[3]),a:ie(de[4]+""+de[4]),format:Te?"name":"hex8"}:(de=we.hex3.exec(le))?{r:$e(de[1]+""+de[1]),g:$e(de[2]+""+de[2]),b:$e(de[3]+""+de[3]),format:Te?"name":"hex"}:!1}function pe(le){var Te,de;return le=le||{level:"AA",size:"small"},Te=(le.level||"AA").toUpperCase(),de=(le.size||"small").toLowerCase(),Te!=="AA"&&Te!=="AAA"&&(Te="AA"),de!=="small"&&de!=="large"&&(de="small"),{level:Te,size:de}}L.exports?L.exports=x:(m=(function(){return x}).call(A,s,A,L),m!==void 0&&(L.exports=m))})(Math)},3961:function(L,A,s){var m=s(3489),h=s(6131),l=m.instance();function c($){this.local=this.regionalOptions[$||""]||this.regionalOptions[""]}c.prototype=new m.baseCalendar,h(c.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function($,S){if(typeof $=="string"){var O=$.match(u);return O?O[0]:""}var D=this._validateYear($),N=$.month(),M=""+this.toChineseMonth(D,N);return S&&M.length<2&&(M="0"+M),this.isIntercalaryMonth(D,N)&&(M+="i"),M},monthNames:function($){if(typeof $=="string"){var S=$.match(d);return S?S[0]:""}var O=this._validateYear($),D=$.month(),N=this.toChineseMonth(O,D),M=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][N-1];return this.isIntercalaryMonth(O,D)&&(M="闰"+M),M},monthNamesShort:function($){if(typeof $=="string"){var S=$.match(g);return S?S[0]:""}var O=this._validateYear($),D=$.month(),N=this.toChineseMonth(O,D),M=["一","二","三","四","五","六","七","八","九","十","十一","十二"][N-1];return this.isIntercalaryMonth(O,D)&&(M="闰"+M),M},parseMonth:function($,S){$=this._validateYear($);var O=parseInt(S),D;if(isNaN(O))S[0]==="闰"&&(D=!0,S=S.substring(1)),S[S.length-1]==="月"&&(S=S.substring(0,S.length-1)),O=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(S);else{var N=S[S.length-1];D=N==="i"||N==="I"}var M=this.toMonthIndex($,O,D);return M},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function($,S){if($.year&&($=$.year()),typeof $!="number"||$<1888||$>2111)throw S.replace(/\{0\}/,this.local.name);return $},toMonthIndex:function($,S,O){var D=this.intercalaryMonth($),N=O&&S!==D;if(N||S<1||S>12)throw m.local.invalidMonth.replace(/\{0\}/,this.local.name);var M;return D?!O&&S<=D?M=S-1:M=S:M=S-1,M},toChineseMonth:function($,S){$.year&&($=$.year(),S=$.month());var O=this.intercalaryMonth($),D=O?12:11;if(S<0||S>D)throw m.local.invalidMonth.replace(/\{0\}/,this.local.name);var N;return O?S>13;return O},isIntercalaryMonth:function($,S){$.year&&($=$.year(),S=$.month());var O=this.intercalaryMonth($);return!!O&&O===S},leapYear:function($){return this.intercalaryMonth($)!==0},weekOfYear:function($,S,O){var D=this._validateYear($,m.local.invalidyear),N=x[D-x[0]],M=N>>9&4095,k=N>>5&15,R=N&31,F;F=l.newDate(M,k,R),F.add(4-(F.dayOfWeek()||7),"d");var H=this.toJD($,S,O)-F.toJD();return 1+Math.floor(H/7)},monthsInYear:function($){return this.leapYear($)?13:12},daysInMonth:function($,S){$.year&&(S=$.month(),$=$.year()),$=this._validateYear($);var O=v[$-v[0]],D=O>>13,N=D?12:11;if(S>N)throw m.local.invalidMonth.replace(/\{0\}/,this.local.name);var M=O&1<<12-S?30:29;return M},weekDay:function($,S,O){return(this.dayOfWeek($,S,O)||7)<6},toJD:function($,S,O){var D=this._validate($,M,O,m.local.invalidDate);$=this._validateYear(D.year()),S=D.month(),O=D.day();var N=this.isIntercalaryMonth($,S),M=this.toChineseMonth($,S),k=_($,M,O,N);return l.toJD(k.year,k.month,k.day)},fromJD:function($){var S=l.fromJD($),O=C(S.year(),S.month(),S.day()),D=this.toMonthIndex(O.year,O.month,O.isIntercalary);return this.newDate(O.year,D,O.day)},fromString:function($){var S=$.match(i),O=this._validateYear(+S[1]),D=+S[2],N=!!S[3],M=this.toMonthIndex(O,D,N),k=+S[4];return this.newDate(O,M,k)},add:function($,S,O){var D=$.year(),N=$.month(),M=this.isIntercalaryMonth(D,N),k=this.toChineseMonth(D,N),R=Object.getPrototypeOf(c.prototype).add.call(this,$,S,O);if(O==="y"){var F=R.year(),H=R.month(),j=this.isIntercalaryMonth(F,k),P=M&&j?this.toMonthIndex(F,k,!0):this.toMonthIndex(F,k,!1);P!==H&&R.month(P)}return R}});var i=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,u=/^\d?\d[iI]?/m,d=/^闰?十?[一二三四五六七八九]?月/m,g=/^闰?十?[一二三四五六七八九]?/m;m.calendars.chinese=c;var v=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],x=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function C($,S,O,D){var N,M;if(typeof $=="object")N=$,M=S||{};else{var k=typeof $=="number"&&$>=1888&&$<=2111;if(!k)throw new Error("Solar year outside range 1888-2111");var R=typeof S=="number"&&S>=1&&S<=12;if(!R)throw new Error("Solar month outside range 1 - 12");var F=typeof O=="number"&&O>=1&&O<=31;if(!F)throw new Error("Solar day outside range 1 - 31");N={year:$,month:S,day:O},M=D||{}}var H=x[N.year-x[0]],j=N.year<<9|N.month<<5|N.day;M.year=j>=H?N.year:N.year-1,H=x[M.year-x[0]];var P=H>>9&4095,ee=H>>5&15,J=H&31,K,ae=new Date(P,ee-1,J),Q=new Date(N.year,N.month-1,N.day);K=Math.round((Q-ae)/864e5);var he=v[M.year-v[0]],ge;for(ge=0;ge<13;ge++){var Se=he&1<<12-ge?30:29;if(K>13;return!ce||ge=1888&&$<=2111;if(!R)throw new Error("Lunar year outside range 1888-2111");var F=typeof S=="number"&&S>=1&&S<=12;if(!F)throw new Error("Lunar month outside range 1 - 12");var H=typeof O=="number"&&O>=1&&O<=30;if(!H)throw new Error("Lunar day outside range 1 - 30");var j;typeof D=="object"?(j=!1,M=D):(j=!!D,M=N||{}),k={year:$,month:S,day:O,isIntercalary:j}}var P;P=k.day-1;var ee=v[k.year-v[0]],J=ee>>13,K;J&&(k.month>J||k.isIntercalary)?K=k.month:K=k.month-1;for(var ae=0;ae>9&4095,Se=he>>5&15,ce=he&31,ne=new Date(ge,Se-1,ce+P);return M.year=ne.getFullYear(),M.month=1+ne.getMonth(),M.day=ne.getDate(),M}},8751:function(L,A,s){var m=s(3489),h=s(6131);function l(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var i=this._validate(u,this.minMonth,this.minDay,m.local.invalidYear),u=i.year()+(i.year()<0?1:0);return u%4===3||u%4===-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),13},weekOfYear:function(c,i,u){var d=this.newDate(c,i,u);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInMonth:function(c,i){var u=this._validate(c,i,this.minDay,m.local.invalidMonth);return this.daysPerMonth[u.month()-1]+(u.month()===13&&this.leapYear(u.year())?1:0)},weekDay:function(c,i,u){return(this.dayOfWeek(c,i,u)||7)<6},toJD:function(c,i,u){var d=this._validate(c,i,u,m.local.invalidDate);return c=d.year(),c<0&&c++,d.day()+(d.month()-1)*30+(c-1)*365+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var i=Math.floor(c)+.5-this.jdEpoch,u=Math.floor((i-Math.floor((i+366)/1461))/365)+1;u<=0&&u--,i=Math.floor(c)+.5-this.newDate(u,1,1).toJD();var d=Math.floor(i/30)+1,g=i-(d-1)*30+1;return this.newDate(u,d,g)}}),m.calendars.coptic=l},6825:function(L,A,s){var m=s(3489),h=s(6131);function l(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(i){return this._validate(i,this.minMonth,this.minDay,m.local.invalidYear),!1},monthsInYear:function(i){return this._validate(i,this.minMonth,this.minDay,m.local.invalidYear),13},daysInYear:function(i){return this._validate(i,this.minMonth,this.minDay,m.local.invalidYear),400},weekOfYear:function(i,u,d){var g=this.newDate(i,u,d);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/8)+1},daysInMonth:function(i,u){var d=this._validate(i,u,this.minDay,m.local.invalidMonth);return this.daysPerMonth[d.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate);return(g.day()+1)%8},weekDay:function(i,u,d){var g=this.dayOfWeek(i,u,d);return g>=2&&g<=6},extraInfo:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate);return{century:c[Math.floor((g.year()-1)/100)+1]||""}},toJD:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate);return i=g.year()+(g.year()<0?1:0),u=g.month(),d=g.day(),d+(u>1?16:0)+(u>2?(u-2)*32:0)+(i-1)*400+this.jdEpoch-1},fromJD:function(i){i=Math.floor(i+.5)-Math.floor(this.jdEpoch)-1;var u=Math.floor(i/400)+1;i-=(u-1)*400,i+=i>15?16:0;var d=Math.floor(i/32)+1,g=i-(d-1)*32+1;return this.newDate(u<=0?u-1:u,d,g)}});var c={20:"Fruitbat",21:"Anchovy"};m.calendars.discworld=l},7715:function(L,A,s){var m=s(3489),h=s(6131);function l(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var i=this._validate(u,this.minMonth,this.minDay,m.local.invalidYear),u=i.year()+(i.year()<0?1:0);return u%4===3||u%4===-1},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear),13},weekOfYear:function(c,i,u){var d=this.newDate(c,i,u);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInMonth:function(c,i){var u=this._validate(c,i,this.minDay,m.local.invalidMonth);return this.daysPerMonth[u.month()-1]+(u.month()===13&&this.leapYear(u.year())?1:0)},weekDay:function(c,i,u){return(this.dayOfWeek(c,i,u)||7)<6},toJD:function(c,i,u){var d=this._validate(c,i,u,m.local.invalidDate);return c=d.year(),c<0&&c++,d.day()+(d.month()-1)*30+(c-1)*365+Math.floor(c/4)+this.jdEpoch-1},fromJD:function(c){var i=Math.floor(c)+.5-this.jdEpoch,u=Math.floor((i-Math.floor((i+366)/1461))/365)+1;u<=0&&u--,i=Math.floor(c)+.5-this.newDate(u,1,1).toJD();var d=Math.floor(i/30)+1,g=i-(d-1)*30+1;return this.newDate(u,d,g)}}),m.calendars.ethiopian=l},9384:function(L,A,s){var m=s(3489),h=s(6131);function l(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(i){var u=this._validate(i,this.minMonth,this.minDay,m.local.invalidYear);return this._leapYear(u.year())},_leapYear:function(i){return i=i<0?i+1:i,c(i*7+1,19)<7},monthsInYear:function(i){return this._validate(i,this.minMonth,this.minDay,m.local.invalidYear),this._leapYear(i.year?i.year():i)?13:12},weekOfYear:function(i,u,d){var g=this.newDate(i,u,d);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(i){var u=this._validate(i,this.minMonth,this.minDay,m.local.invalidYear);return i=u.year(),this.toJD(i===-1?1:i+1,7,1)-this.toJD(i,7,1)},daysInMonth:function(i,u){return i.year&&(u=i.month(),i=i.year()),this._validate(i,u,this.minDay,m.local.invalidMonth),u===12&&this.leapYear(i)||u===8&&c(this.daysInYear(i),10)===5?30:u===9&&c(this.daysInYear(i),10)===3?29:this.daysPerMonth[u-1]},weekDay:function(i,u,d){return this.dayOfWeek(i,u,d)!==6},extraInfo:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate);return{yearType:(this.leapYear(g)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(g)%10-3]}},toJD:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate);i=g.year(),u=g.month(),d=g.day();var v=i<=0?i+1:i,x=this.jdEpoch+this._delay1(v)+this._delay2(v)+d+1;if(u<7){for(var C=7;C<=this.monthsInYear(i);C++)x+=this.daysInMonth(i,C);for(var C=1;C=this.toJD(u===-1?1:u+1,7,1);)u++;for(var d=ithis.toJD(u,d,this.daysInMonth(u,d));)d++;var g=i-this.toJD(u,d,1)+1;return this.newDate(u,d,g)}});function c(i,u){return i-u*Math.floor(i/u)}m.calendars.hebrew=l},3805:function(L,A,s){var m=s(3489),h=s(6131);function l(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(c){var i=this._validate(c,this.minMonth,this.minDay,m.local.invalidYear);return(i.year()*11+14)%30<11},weekOfYear:function(c,i,u){var d=this.newDate(c,i,u);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInYear:function(c){return this.leapYear(c)?355:354},daysInMonth:function(c,i){var u=this._validate(c,i,this.minDay,m.local.invalidMonth);return this.daysPerMonth[u.month()-1]+(u.month()===12&&this.leapYear(u.year())?1:0)},weekDay:function(c,i,u){return this.dayOfWeek(c,i,u)!==5},toJD:function(c,i,u){var d=this._validate(c,i,u,m.local.invalidDate);return c=d.year(),i=d.month(),u=d.day(),c=c<=0?c+1:c,u+Math.ceil(29.5*(i-1))+(c-1)*354+Math.floor((3+11*c)/30)+this.jdEpoch-1},fromJD:function(c){c=Math.floor(c)+.5;var i=Math.floor((30*(c-this.jdEpoch)+10646)/10631);i=i<=0?i-1:i;var u=Math.min(12,Math.ceil((c-29-this.toJD(i,1,1))/29.5)+1),d=c-this.toJD(i,u,1)+1;return this.newDate(i,u,d)}}),m.calendars.islamic=l},8874:function(L,A,s){var m=s(3489),h=s(6131);function l(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(u){var i=this._validate(u,this.minMonth,this.minDay,m.local.invalidYear),u=i.year()<0?i.year()+1:i.year();return u%4===0},weekOfYear:function(c,i,u){var d=this.newDate(c,i,u);return d.add(4-(d.dayOfWeek()||7),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInMonth:function(c,i){var u=this._validate(c,i,this.minDay,m.local.invalidMonth);return this.daysPerMonth[u.month()-1]+(u.month()===2&&this.leapYear(u.year())?1:0)},weekDay:function(c,i,u){return(this.dayOfWeek(c,i,u)||7)<6},toJD:function(c,i,u){var d=this._validate(c,i,u,m.local.invalidDate);return c=d.year(),i=d.month(),u=d.day(),c<0&&c++,i<=2&&(c--,i+=12),Math.floor(365.25*(c+4716))+Math.floor(30.6001*(i+1))+u-1524.5},fromJD:function(c){var i=Math.floor(c+.5),u=i+1524,d=Math.floor((u-122.1)/365.25),g=Math.floor(365.25*d),v=Math.floor((u-g)/30.6001),x=v-Math.floor(v<14?1:13),C=d-Math.floor(x>2?4716:4715),_=u-g-Math.floor(30.6001*v);return C<=0&&C--,this.newDate(C,x,_)}}),m.calendars.julian=l},3290:function(L,A,s){var m=s(3489),h=s(6131);function l(u){this.local=this.regionalOptions[u||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(u){return this._validate(u,this.minMonth,this.minDay,m.local.invalidYear),!1},formatYear:function(u){var d=this._validate(u,this.minMonth,this.minDay,m.local.invalidYear);u=d.year();var g=Math.floor(u/400);u=u%400,u+=u<0?400:0;var v=Math.floor(u/20);return g+"."+v+"."+u%20},forYear:function(u){if(u=u.split("."),u.length<3)throw"Invalid Mayan year";for(var d=0,g=0;g19||g>0&&v<0)throw"Invalid Mayan year";d=d*20+v}return d},monthsInYear:function(u){return this._validate(u,this.minMonth,this.minDay,m.local.invalidYear),18},weekOfYear:function(u,d,g){return this._validate(u,d,g,m.local.invalidDate),0},daysInYear:function(u){return this._validate(u,this.minMonth,this.minDay,m.local.invalidYear),360},daysInMonth:function(u,d){return this._validate(u,d,this.minDay,m.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(u,d,g){var v=this._validate(u,d,g,m.local.invalidDate);return v.day()},weekDay:function(u,d,g){return this._validate(u,d,g,m.local.invalidDate),!0},extraInfo:function(u,d,g){var v=this._validate(u,d,g,m.local.invalidDate),x=v.toJD(),C=this._toHaab(x),_=this._toTzolkin(x);return{haabMonthName:this.local.haabMonths[C[0]-1],haabMonth:C[0],haabDay:C[1],tzolkinDayName:this.local.tzolkinMonths[_[0]-1],tzolkinDay:_[0],tzolkinTrecena:_[1]}},_toHaab:function(u){u-=this.jdEpoch;var d=c(u+8+(18-1)*20,365);return[Math.floor(d/20)+1,c(d,20)]},_toTzolkin:function(u){return u-=this.jdEpoch,[i(u+20,20),i(u+4,13)]},toJD:function(u,d,g){var v=this._validate(u,d,g,m.local.invalidDate);return v.day()+v.month()*20+v.year()*360+this.jdEpoch},fromJD:function(u){u=Math.floor(u)+.5-this.jdEpoch;var d=Math.floor(u/360);u=u%360,u+=u<0?360:0;var g=Math.floor(u/20),v=u%20;return this.newDate(d,g,v)}});function c(u,d){return u-d*Math.floor(u/d)}function i(u,d){return c(u-1,d)+1}m.calendars.mayan=l},9108:function(L,A,s){var m=s(3489),h=s(6131);function l(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar;var c=m.instance("gregorian");h(l.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(i){var u=this._validate(i,this.minMonth,this.minDay,m.local.invalidYear||m.regionalOptions[""].invalidYear);return c.leapYear(u.year()+(u.year()<1?1:0)+1469)},weekOfYear:function(i,u,d){var g=this.newDate(i,u,d);return g.add(1-(g.dayOfWeek()||7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(i,u){var d=this._validate(i,u,this.minDay,m.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===12&&this.leapYear(d.year())?1:0)},weekDay:function(i,u,d){return(this.dayOfWeek(i,u,d)||7)<6},toJD:function(v,u,d){var g=this._validate(v,u,d,m.local.invalidMonth),v=g.year();v<0&&v++;for(var x=g.day(),C=1;C=this.toJD(u+1,1,1);)u++;for(var d=i-Math.floor(this.toJD(u,1,1)+.5)+1,g=1;d>this.daysInMonth(u,g);)d-=this.daysInMonth(u,g),g++;return this.newDate(u,g,d)}}),m.calendars.nanakshahi=l},5422:function(L,A,s){var m=s(3489),h=s(6131);function l(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(c){return this.daysInYear(c)!==this.daysPerYear},weekOfYear:function(c,i,u){var d=this.newDate(c,i,u);return d.add(-d.dayOfWeek(),"d"),Math.floor((d.dayOfYear()-1)/7)+1},daysInYear:function(c){var i=this._validate(c,this.minMonth,this.minDay,m.local.invalidYear);if(c=i.year(),typeof this.NEPALI_CALENDAR_DATA[c]>"u")return this.daysPerYear;for(var u=0,d=this.minMonth;d<=12;d++)u+=this.NEPALI_CALENDAR_DATA[c][d];return u},daysInMonth:function(c,i){return c.year&&(i=c.month(),c=c.year()),this._validate(c,i,this.minDay,m.local.invalidMonth),typeof this.NEPALI_CALENDAR_DATA[c]>"u"?this.daysPerMonth[i-1]:this.NEPALI_CALENDAR_DATA[c][i]},weekDay:function(c,i,u){return this.dayOfWeek(c,i,u)!==6},toJD:function(c,i,u){var d=this._validate(c,i,u,m.local.invalidDate);c=d.year(),i=d.month(),u=d.day();var g=m.instance(),v=0,x=i,C=c;this._createMissingCalendarData(c);var _=c-(x>9||x===9&&u>=this.NEPALI_CALENDAR_DATA[C][0]?56:57);for(i!==9&&(v=u,x--);x!==9;)x<=0&&(x=12,C--),v+=this.NEPALI_CALENDAR_DATA[C][x],x--;return i===9?(v+=u-this.NEPALI_CALENDAR_DATA[C][0],v<0&&(v+=g.daysInYear(_))):v+=this.NEPALI_CALENDAR_DATA[C][9]-this.NEPALI_CALENDAR_DATA[C][0],g.newDate(_,1,1).add(v,"d").toJD()},fromJD:function(c){var i=m.instance(),u=i.fromJD(c),d=u.year(),g=u.dayOfYear(),v=d+56;this._createMissingCalendarData(v);for(var x=9,C=this.NEPALI_CALENDAR_DATA[v][0],_=this.NEPALI_CALENDAR_DATA[v][x]-C+1;g>_;)x++,x>12&&(x=1,v++),_+=this.NEPALI_CALENDAR_DATA[v][x];var $=this.NEPALI_CALENDAR_DATA[v][x]-(_-g);return this.newDate(v,x,$)},_createMissingCalendarData:function(c){var i=this.daysPerMonth.slice(0);i.unshift(17);for(var u=c-1;u"u"&&(this.NEPALI_CALENDAR_DATA[u]=i)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),m.calendars.nepali=l},4320:function(L,A,s){var m=s(3489),h=s(6131);function l(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(i){var u=this._validate(i,this.minMonth,this.minDay,m.local.invalidYear);return((u.year()-(u.year()>0?474:473))%2820+474+38)*682%2816<682},weekOfYear:function(i,u,d){var g=this.newDate(i,u,d);return g.add(-((g.dayOfWeek()+1)%7),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInMonth:function(i,u){var d=this._validate(i,u,this.minDay,m.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===12&&this.leapYear(d.year())?1:0)},weekDay:function(i,u,d){return this.dayOfWeek(i,u,d)!==5},toJD:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate);i=g.year(),u=g.month(),d=g.day();var v=i-(i>=0?474:473),x=474+c(v,2820);return d+(u<=7?(u-1)*31:(u-1)*30+6)+Math.floor((x*682-110)/2816)+(x-1)*365+Math.floor(v/2820)*1029983+this.jdEpoch-1},fromJD:function(i){i=Math.floor(i)+.5;var u=i-this.toJD(475,1,1),d=Math.floor(u/1029983),g=c(u,1029983),v=2820;if(g!==1029982){var x=Math.floor(g/366),C=c(g,366);v=Math.floor((2134*x+2816*C+2815)/1028522)+x+1}var _=v+2820*d+474;_=_<=0?_-1:_;var $=i-this.toJD(_,1,1)+1,S=$<=186?Math.ceil($/31):Math.ceil(($-6)/30),O=i-this.toJD(_,S,1)+1;return this.newDate(_,S,O)}});function c(i,u){return i-u*Math.floor(i/u)}m.calendars.persian=l,m.calendars.jalali=l},1320:function(L,A,s){var m=s(3489),h=s(6131),l=m.instance();function c(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}c.prototype=new m.baseCalendar,h(c.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(d){var u=this._validate(d,this.minMonth,this.minDay,m.local.invalidYear),d=this._t2gYear(u.year());return l.leapYear(d)},weekOfYear:function(v,u,d){var g=this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),v=this._t2gYear(g.year());return l.weekOfYear(v,g.month(),g.day())},daysInMonth:function(i,u){var d=this._validate(i,u,this.minDay,m.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===2&&this.leapYear(d.year())?1:0)},weekDay:function(i,u,d){return(this.dayOfWeek(i,u,d)||7)<6},toJD:function(v,u,d){var g=this._validate(v,u,d,m.local.invalidDate),v=this._t2gYear(g.year());return l.toJD(v,g.month(),g.day())},fromJD:function(i){var u=l.fromJD(i),d=this._g2tYear(u.year());return this.newDate(d,u.month(),u.day())},_t2gYear:function(i){return i+this.yearsOffset+(i>=-this.yearsOffset&&i<=-1?1:0)},_g2tYear:function(i){return i-this.yearsOffset-(i>=1&&i<=this.yearsOffset?1:0)}}),m.calendars.taiwan=c},1367:function(L,A,s){var m=s(3489),h=s(6131),l=m.instance();function c(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}c.prototype=new m.baseCalendar,h(c.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(d){var u=this._validate(d,this.minMonth,this.minDay,m.local.invalidYear),d=this._t2gYear(u.year());return l.leapYear(d)},weekOfYear:function(v,u,d){var g=this._validate(v,this.minMonth,this.minDay,m.local.invalidYear),v=this._t2gYear(g.year());return l.weekOfYear(v,g.month(),g.day())},daysInMonth:function(i,u){var d=this._validate(i,u,this.minDay,m.local.invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===2&&this.leapYear(d.year())?1:0)},weekDay:function(i,u,d){return(this.dayOfWeek(i,u,d)||7)<6},toJD:function(v,u,d){var g=this._validate(v,u,d,m.local.invalidDate),v=this._t2gYear(g.year());return l.toJD(v,g.month(),g.day())},fromJD:function(i){var u=l.fromJD(i),d=this._g2tYear(u.year());return this.newDate(d,u.month(),u.day())},_t2gYear:function(i){return i-this.yearsOffset-(i>=1&&i<=this.yearsOffset?1:0)},_g2tYear:function(i){return i+this.yearsOffset+(i>=-this.yearsOffset&&i<=-1?1:0)}}),m.calendars.thai=c},1457:function(L,A,s){var m=s(3489),h=s(6131);function l(i){this.local=this.regionalOptions[i||""]||this.regionalOptions[""]}l.prototype=new m.baseCalendar,h(l.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(i){var u=this._validate(i,this.minMonth,this.minDay,m.local.invalidYear);return this.daysInYear(u.year())===355},weekOfYear:function(i,u,d){var g=this.newDate(i,u,d);return g.add(-g.dayOfWeek(),"d"),Math.floor((g.dayOfYear()-1)/7)+1},daysInYear:function(i){for(var u=0,d=1;d<=12;d++)u+=this.daysInMonth(i,d);return u},daysInMonth:function(i,u){for(var d=this._validate(i,u,this.minDay,m.local.invalidMonth),g=d.toJD()-24e5+.5,v=0,x=0;xg)return c[v]-c[v-1];v++}return 30},weekDay:function(i,u,d){return this.dayOfWeek(i,u,d)!==5},toJD:function(i,u,d){var g=this._validate(i,u,d,m.local.invalidDate),v=12*(g.year()-1)+g.month()-15292,x=g.day()+c[v-1]-1;return x+24e5-.5},fromJD:function(i){for(var u=i-24e5+.5,d=0,g=0;gu);g++)d++;var v=d+15292,x=Math.floor((v-1)/12),C=x+1,_=v-12*x,$=u-c[d-1]+1;return this.newDate(C,_,$)},isValid:function(i,u,d){var g=m.baseCalendar.prototype.isValid.apply(this,arguments);return g&&(i=i.year!=null?i.year:i,g=i>=1276&&i<=1500),g},_validate:function(i,u,d,g){var v=m.baseCalendar.prototype._validate.apply(this,arguments);if(v.year<1276||v.year>1500)throw g.replace(/\{0\}/,this.local.name);return v}}),m.calendars.ummalqura=l;var c=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},3489:function(L,A,s){var m=s(6131);function h(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}m(h.prototype,{instance:function(g,v){g=(g||"gregorian").toLowerCase(),v=v||"";var x=this._localCals[g+"-"+v];if(!x&&this.calendars[g]&&(x=new this.calendars[g](v),this._localCals[g+"-"+v]=x),!x)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,g);return x},newDate:function(g,v,x,C,_){return C=(g!=null&&g.year?g.calendar():typeof C=="string"?this.instance(C,_):C)||this.instance(),C.newDate(g,v,x)},substituteDigits:function(g){return function(v){return(v+"").replace(/[0-9]/g,function(x){return g[x]})}},substituteChineseDigits:function(g,v){return function(x){for(var C="",_=0;x>0;){var $=x%10;C=($===0?"":g[$]+v[_])+C,_++,x=Math.floor(x/10)}return C.indexOf(g[1]+v[1])===0&&(C=C.substr(1)),C||g[0]}}});function l(g,v,x,C){if(this._calendar=g,this._year=v,this._month=x,this._day=C,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(d.local.invalidDate||d.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function c(g,v){return g=""+g,"000000".substring(0,v-g.length)+g}m(l.prototype,{newDate:function(g,v,x){return this._calendar.newDate(g??this,v,x)},year:function(g){return arguments.length===0?this._year:this.set(g,"y")},month:function(g){return arguments.length===0?this._month:this.set(g,"m")},day:function(g){return arguments.length===0?this._day:this.set(g,"d")},date:function(g,v,x){if(!this._calendar.isValid(g,v,x))throw(d.local.invalidDate||d.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=g,this._month=v,this._day=x,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(g,v){return this._calendar.add(this,g,v)},set:function(g,v){return this._calendar.set(this,g,v)},compareTo:function(g){if(this._calendar.name!==g._calendar.name)throw(d.local.differentCalendars||d.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,g._calendar.local.name);var v=this._year!==g._year?this._year-g._year:this._month!==g._month?this.monthOfYear()-g.monthOfYear():this._day-g._day;return v===0?0:v<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(g){return this._calendar.fromJD(g)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(g){return this._calendar.fromJSDate(g)},toString:function(){return(this.year()<0?"-":"")+c(Math.abs(this.year()),4)+"-"+c(this.month(),2)+"-"+c(this.day(),2)}});function i(){this.shortYearCutoff="+10"}m(i.prototype,{_validateLevel:0,newDate:function(g,v,x){return g==null?this.today():(g.year&&(this._validate(g,v,x,d.local.invalidDate||d.regionalOptions[""].invalidDate),x=g.day(),v=g.month(),g=g.year()),new l(this,g,v,x))},today:function(){return this.fromJSDate(new Date)},epoch:function(g){var v=this._validate(g,this.minMonth,this.minDay,d.local.invalidYear||d.regionalOptions[""].invalidYear);return v.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(g){var v=this._validate(g,this.minMonth,this.minDay,d.local.invalidYear||d.regionalOptions[""].invalidYear);return(v.year()<0?"-":"")+c(Math.abs(v.year()),4)},monthsInYear:function(g){return this._validate(g,this.minMonth,this.minDay,d.local.invalidYear||d.regionalOptions[""].invalidYear),12},monthOfYear:function(g,v){var x=this._validate(g,v,this.minDay,d.local.invalidMonth||d.regionalOptions[""].invalidMonth);return(x.month()+this.monthsInYear(x)-this.firstMonth)%this.monthsInYear(x)+this.minMonth},fromMonthOfYear:function(g,v){var x=(v+this.firstMonth-2*this.minMonth)%this.monthsInYear(g)+this.minMonth;return this._validate(g,x,this.minDay,d.local.invalidMonth||d.regionalOptions[""].invalidMonth),x},daysInYear:function(g){var v=this._validate(g,this.minMonth,this.minDay,d.local.invalidYear||d.regionalOptions[""].invalidYear);return this.leapYear(v)?366:365},dayOfYear:function(g,v,x){var C=this._validate(g,v,x,d.local.invalidDate||d.regionalOptions[""].invalidDate);return C.toJD()-this.newDate(C.year(),this.fromMonthOfYear(C.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(g,v,x){var C=this._validate(g,v,x,d.local.invalidDate||d.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(C))+2)%this.daysInWeek()},extraInfo:function(g,v,x){return this._validate(g,v,x,d.local.invalidDate||d.regionalOptions[""].invalidDate),{}},add:function(g,v,x){return this._validate(g,this.minMonth,this.minDay,d.local.invalidDate||d.regionalOptions[""].invalidDate),this._correctAdd(g,this._add(g,v,x),v,x)},_add:function(g,v,x){if(this._validateLevel++,x==="d"||x==="w"){var C=g.toJD()+v*(x==="w"?this.daysInWeek():1),_=g.calendar().fromJD(C);return this._validateLevel--,[_.year(),_.month(),_.day()]}try{var $=g.year()+(x==="y"?v:0),S=g.monthOfYear()+(x==="m"?v:0),_=g.day(),O=function(M){for(;Sk-1+M.minMonth;)$++,S-=k,k=M.monthsInYear($)};x==="y"?(g.month()!==this.fromMonthOfYear($,S)&&(S=this.newDate($,g.month(),this.minDay).monthOfYear()),S=Math.min(S,this.monthsInYear($)),_=Math.min(_,this.daysInMonth($,this.fromMonthOfYear($,S)))):x==="m"&&(O(this),_=Math.min(_,this.daysInMonth($,this.fromMonthOfYear($,S))));var D=[$,this.fromMonthOfYear($,S),_];return this._validateLevel--,D}catch(N){throw this._validateLevel--,N}},_correctAdd:function(g,v,x,C){if(!this.hasYearZero&&(C==="y"||C==="m")&&(v[0]===0||g.year()>0!=v[0]>0)){var _={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[C],$=x<0?-1:1;v=this._add(g,x*_[0]+$*_[1],_[2])}return g.date(v[0],v[1],v[2])},set:function(g,v,x){this._validate(g,this.minMonth,this.minDay,d.local.invalidDate||d.regionalOptions[""].invalidDate);var C=x==="y"?v:g.year(),_=x==="m"?v:g.month(),$=x==="d"?v:g.day();return(x==="y"||x==="m")&&($=Math.min($,this.daysInMonth(C,_))),g.date(C,_,$)},isValid:function(g,v,x){this._validateLevel++;var C=this.hasYearZero||g!==0;if(C){var _=this.newDate(g,v,this.minDay);C=v>=this.minMonth&&v-this.minMonth=this.minDay&&x-this.minDay13.5?13:1),N=_-(D>2.5?4716:4715);return N<=0&&N--,this.newDate(N,D,O)},toJSDate:function(g,v,x){var C=this._validate(g,v,x,d.local.invalidDate||d.regionalOptions[""].invalidDate),_=new Date(C.year(),C.month()-1,C.day());return _.setHours(0),_.setMinutes(0),_.setSeconds(0),_.setMilliseconds(0),_.setHours(_.getHours()>12?_.getHours()+2:0),_},fromJSDate:function(g){return this.newDate(g.getFullYear(),g.getMonth()+1,g.getDate())}});var d=L.exports=new h;d.cdate=l,d.baseCalendar=i,d.calendars.gregorian=u},4338:function(L,A,s){var m=s(6131),h=s(3489);m(h.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),h.local=h.regionalOptions[""],m(h.cdate.prototype,{formatDate:function(l,c){return typeof l!="string"&&(c=l,l=""),this._calendar.formatDate(l||"",this,c)}}),m(h.baseCalendar.prototype,{UNIX_EPOCH:h.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:h.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(l,c,i){if(typeof l!="string"&&(i=c,c=l,l=""),!c)return"";if(c.calendar()!==this)throw h.local.invalidFormat||h.regionalOptions[""].invalidFormat;l=l||this.local.dateFormat,i=i||{};var u=i.dayNamesShort||this.local.dayNamesShort,d=i.dayNames||this.local.dayNames,g=i.monthNumbers||this.local.monthNumbers,v=i.monthNamesShort||this.local.monthNamesShort,x=i.monthNames||this.local.monthNames;i.calculateWeek||this.local.calculateWeek;for(var C=function(H,j){for(var P=1;F+P1},_=function(H,j,P,ee){var J=""+j;if(C(H,ee))for(;J.length1},F=function(ge,Se){var ce=R(ge,Se),ne=[2,3,ce?4:2,ce?4:2,10,11,20]["oyYJ@!".indexOf(ge)+1],fe=new RegExp("^-?\\d{1,"+ne+"}"),X=c.substring(K).match(fe);if(!X)throw(h.local.missingNumberAt||h.regionalOptions[""].missingNumberAt).replace(/\{0\}/,K);return K+=X[0].length,parseInt(X[0],10)},H=this,j=function(){if(typeof x=="function"){R("m");var ge=x.call(H,c.substring(K));return K+=ge.length,ge}return F("m")},P=function(ge,Se,ce,ne){for(var fe=R(ge,ne)?ce:Se,X=0;X-1){O=1,D=N;for(var he=this.daysInMonth(S,O);D>he;he=this.daysInMonth(S,O))O++,D-=he}return $>-1?this.fromJD($):this.newDate(S,O,D)},determineDate:function(l,c,i,u,d){i&&typeof i!="object"&&(d=u,u=i,i=null),typeof u!="string"&&(d=u,u="");var g=this,v=function(x){try{return g.parseDate(u,x,d)}catch{}x=x.toLowerCase();for(var C=(x.match(/^c/)&&i?i.newDate():null)||g.today(),_=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,$=_.exec(x);$;)C.add(parseInt($[1],10),$[2]||"d"),$=_.exec(x);return C};return c=c?c.newDate():null,l=l==null?c:typeof l=="string"?v(l):typeof l=="number"?isNaN(l)||l===1/0||l===-1/0?c:g.today().add(l,"d"):g.newDate(l),l}})}},T={};function G(L){var A=T[L];if(A!==void 0)return A.exports;var s=T[L]={exports:{}};return y[L].call(s.exports,s,s.exports,G),s.exports}(function(){G.d=function(L,A){for(var s in A)G.o(A,s)&&!G.o(L,s)&&Object.defineProperty(L,s,{enumerable:!0,get:A[s]})}})(),function(){G.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()}(),function(){G.o=function(L,A){return Object.prototype.hasOwnProperty.call(L,A)}}(),function(){G.r=function(L){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(L,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(L,"__esModule",{value:!0})}}();var V=G(2576);return V}()})})(hae);var jfe=hae.exports;const WJ=dae(jfe),Yfe=YB({props:{figure:{type:Object,required:!0},layout:{type:Object,required:!0},id:{type:String,required:!0}},setup(o){Cg(()=>{WJ.newPlot(o.id,o.figure.data,o.layout)}),ta(()=>o.figure,(b,y)=>{b!==y&&WJ.newPlot(o.id,b.data,o.layout)},{deep:!0}),ta(()=>o.layout,(b,y)=>{b!==y&&WJ.newPlot(o.id,o.figure.data,b)},{deep:!0})}}),Vy=(o,b)=>{const y=o.__vccOpts||o;for(const[T,G]of b)y[T]=G;return y},Kfe=["id"];function Xfe(o,b,y,T,G,V){return mo(),Ts("div",{id:o.id,style:{height:"100%",width:"100%"}},null,8,Kfe)}const mae=Vy(Yfe,[["render",Xfe]]);var gae={exports:{}};(function(o,b){(function(){var y="ace",T=function(){return this}();!T&&typeof window<"u"&&(T=window);var G=function(h,l,c){if(typeof h!="string"){G.original?G.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(c=l),G.modules[h]||(G.payloads[h]=c,G.modules[h]=null)};G.modules={},G.payloads={};var V=function(h,l,c){if(typeof l=="string"){var i=s(h,l);if(i!=null)return c&&c(),i}else if(Object.prototype.toString.call(l)==="[object Array]"){for(var u=[],d=0,g=l.length;ds.length)&&(A=s.length),A-=L.length;var m=s.indexOf(L,A);return m!==-1&&m===A}),String.prototype.repeat||V(String.prototype,"repeat",function(L){for(var A="",s=this;L>0;)L&1&&(A+=s),(L>>=1)&&(s+=s);return A}),String.prototype.includes||V(String.prototype,"includes",function(L,A){return this.indexOf(L,A)!=-1}),Object.assign||(Object.assign=function(L){if(L==null)throw new TypeError("Cannot convert undefined or null to object");for(var A=Object(L),s=1;s>>0,m=arguments[1],h=m>>0,l=h<0?Math.max(s+h,0):Math.min(h,s),c=arguments[2],i=c===void 0?s:c>>0,u=i<0?Math.max(s+i,0):Math.min(i,s);l0;)s&1&&(m+=A),(s>>=1)&&(A+=A);return m};var V=/^\s\s*/,L=/\s\s*$/;T.stringTrimLeft=function(A){return A.replace(V,"")},T.stringTrimRight=function(A){return A.replace(L,"")},T.copyObject=function(A){var s={};for(var m in A)s[m]=A[m];return s},T.copyArray=function(A){for(var s=[],m=0,h=A.length;m=0?parseFloat((A.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((A.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),T.isOldIE=T.isIE&&T.isIE<9,T.isGecko=T.isMozilla=A.match(/ Gecko\/\d+/),T.isOpera=typeof opera=="object"&&Object.prototype.toString.call(window.opera)=="[object Opera]",T.isWebKit=parseFloat(A.split("WebKit/")[1])||void 0,T.isChrome=parseFloat(A.split(" Chrome/")[1])||void 0,T.isEdge=parseFloat(A.split(" Edge/")[1])||void 0,T.isAIR=A.indexOf("AdobeAIR")>=0,T.isAndroid=A.indexOf("Android")>=0,T.isChromeOS=A.indexOf(" CrOS ")>=0,T.isIOS=/iPad|iPhone|iPod/.test(A)&&!window.MSStream,T.isIOS&&(T.isMac=!0),T.isMobile=T.isIOS||T.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(y,T,G){var V=y("./useragent"),L="http://www.w3.org/1999/xhtml";T.buildDom=function c(i,u,d){if(typeof i=="string"&&i){var g=document.createTextNode(i);return u&&u.appendChild(g),g}if(!Array.isArray(i))return i&&i.appendChild&&u&&u.appendChild(i),i;if(typeof i[0]!="string"||!i[0]){for(var v=[],x=0;x"u")){if(s){if(u)m();else if(u===!1)return s.push([c,i])}if(!A){var d=u;!u||!u.getRootNode?d=document:(d=u.getRootNode(),(!d||d==u)&&(d=document));var g=d.ownerDocument||d;if(i&&T.hasCssString(i,d))return null;i&&(c+=` -/*# sourceURL=ace/css/`+i+" */");var v=T.createElement("style");v.appendChild(g.createTextNode(c)),i&&(v.id=i),d==g&&(d=T.getDocumentHead(g)),d.insertBefore(v,d.firstChild)}}}if(T.importCssString=h,T.importCssStylsheet=function(c,i){T.buildDom(["link",{rel:"stylesheet",href:c}],T.getDocumentHead(i))},T.scrollbarWidth=function(c){var i=T.createElement("ace_inner");i.style.width="100%",i.style.minWidth="0px",i.style.height="200px",i.style.display="block";var u=T.createElement("ace_outer"),d=u.style;d.position="absolute",d.left="-10000px",d.overflow="hidden",d.width="200px",d.minWidth="0px",d.height="150px",d.display="block",u.appendChild(i);var g=c&&c.documentElement||document&&document.documentElement;if(!g)return 0;g.appendChild(u);var v=i.offsetWidth;d.overflow="scroll";var x=i.offsetWidth;return v===x&&(x=u.clientWidth),g.removeChild(u),v-x},T.computedStyle=function(c,i){return window.getComputedStyle(c,"")||{}},T.setStyle=function(c,i,u){c[i]!==u&&(c[i]=u)},T.HAS_CSS_ANIMATION=!1,T.HAS_CSS_TRANSFORMS=!1,T.HI_DPI=V.isWin?typeof window<"u"&&window.devicePixelRatio>=1.5:!0,V.isChromeOS&&(T.HI_DPI=!1),typeof document<"u"){var l=document.createElement("div");T.HI_DPI&&l.style.transform!==void 0&&(T.HAS_CSS_TRANSFORMS=!0),!V.isEdge&&typeof l.style.animationName<"u"&&(T.HAS_CSS_ANIMATION=!0),l=null}T.HAS_CSS_TRANSFORMS?T.translate=function(c,i,u){c.style.transform="translate("+Math.round(i)+"px, "+Math.round(u)+"px)"}:T.translate=function(c,i,u){c.style.top=Math.round(u)+"px",c.style.left=Math.round(i)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(y,T,G){/* -* based on code from: -* -* @license RequireJS text 0.25.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved. -* Available via the MIT or new BSD license. -* see: http://github.com/jrburke/requirejs for details -*/var V=y("./dom");T.get=function(L,A){var s=new XMLHttpRequest;s.open("GET",L,!0),s.onreadystatechange=function(){s.readyState===4&&A(s.responseText)},s.send(null)},T.loadScript=function(L,A){var s=V.getDocumentHead(),m=document.createElement("script");m.src=L,s.appendChild(m),m.onload=m.onreadystatechange=function(h,l){(l||!m.readyState||m.readyState=="loaded"||m.readyState=="complete")&&(m=m.onload=m.onreadystatechange=null,l||A())}},T.qualifyURL=function(L){var A=document.createElement("a");return A.href=L,A.href}}),ace.define("ace/lib/oop",["require","exports","module"],function(y,T,G){T.inherits=function(V,L){V.super_=L,V.prototype=Object.create(L.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}})},T.mixin=function(V,L){for(var A in L)V[A]=L[A];return V},T.implement=function(V,L){T.mixin(V,L)}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(y,T,G){var V={},L=function(){this.propagationStopped=!0},A=function(){this.defaultPrevented=!0};V._emit=V._dispatchEvent=function(s,m){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var h=this._eventRegistry[s]||[],l=this._defaultHandlers[s];if(!(!h.length&&!l)){(typeof m!="object"||!m)&&(m={}),m.type||(m.type=s),m.stopPropagation||(m.stopPropagation=L),m.preventDefault||(m.preventDefault=A),h=h.slice();for(var c=0;c1&&(v=d[d.length-2]);var C=m[u+"Path"];return C==null?C=m.basePath:g=="/"&&(u=g=""),C&&C.slice(-1)!="/"&&(C+="/"),C+u+g+v+this.get("suffix")},T.setModuleUrl=function(i,u){return m.$moduleUrls[i]=u};var h=function(i,u){if(i==="ace/theme/textmate"||i==="./theme/textmate")return u(null,y("./theme/textmate"));if(l)return l(i,u);console.error("loader is not configured")},l;T.setLoader=function(i){l=i},T.dynamicModules=Object.create(null),T.$loading={},T.$loaded={},T.loadModule=function(i,u){var d,g;Array.isArray(i)&&(g=i[0],i=i[1]);var v=function(x){if(x&&!T.$loading[i])return u&&u(x);if(T.$loading[i]||(T.$loading[i]=[]),T.$loading[i].push(u),!(T.$loading[i].length>1)){var C=function(){h(i,function(_,$){$&&(T.$loaded[i]=$),T._emit("load.module",{name:i,module:$});var S=T.$loading[i];T.$loading[i]=null,S.forEach(function(O){O&&O($)})})};if(!T.get("packaged"))return C();L.loadScript(T.moduleUrl(i,g),C),c()}};if(T.dynamicModules[i])T.dynamicModules[i]().then(function(x){x.default?v(x.default):v(x)});else{try{d=this.$require(i)}catch{}v(d||T.$loaded[i])}},T.$require=function(i){if(typeof G.require=="function"){var u="require";return G[u](i)}},T.setModuleLoader=function(i,u){T.dynamicModules[i]=u};var c=function(){!m.basePath&&!m.workerPath&&!m.modePath&&!m.themePath&&!Object.keys(m.$moduleUrls).length&&(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),c=function(){})};T.version="1.28.0"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(y,T,G){y("./lib/fixoldbrowsers");var V=y("./config");V.setLoader(function(m,h){y([m],function(l){h(null,l)})});var L=function(){return this||typeof window<"u"&&window}();G.exports=function(m){V.init=A,V.$require=y,m.require=y},A(!0);function A(m){if(!(!L||!L.document)){V.set("packaged",m||y.packaged||G.packaged||L.define&&(void 0).packaged);var h={},l="",c=document.currentScript||document._currentScript,i=c&&c.ownerDocument||document;c&&c.src&&(l=c.src.split(/[?#]/)[0].split("/").slice(0,-1).join("/")||"");for(var u=i.getElementsByTagName("script"),d=0;d ["+this.end.row+"/"+this.end.column+"]"},A.prototype.contains=function(s,m){return this.compare(s,m)==0},A.prototype.compareRange=function(s){var m,h=s.end,l=s.start;return m=this.compare(h.row,h.column),m==1?(m=this.compare(l.row,l.column),m==1?2:m==0?1:0):m==-1?-2:(m=this.compare(l.row,l.column),m==-1?-1:m==1?42:0)},A.prototype.comparePoint=function(s){return this.compare(s.row,s.column)},A.prototype.containsRange=function(s){return this.comparePoint(s.start)==0&&this.comparePoint(s.end)==0},A.prototype.intersects=function(s){var m=this.compareRange(s);return m==-1||m==0||m==1},A.prototype.isEnd=function(s,m){return this.end.row==s&&this.end.column==m},A.prototype.isStart=function(s,m){return this.start.row==s&&this.start.column==m},A.prototype.setStart=function(s,m){typeof s=="object"?(this.start.column=s.column,this.start.row=s.row):(this.start.row=s,this.start.column=m)},A.prototype.setEnd=function(s,m){typeof s=="object"?(this.end.column=s.column,this.end.row=s.row):(this.end.row=s,this.end.column=m)},A.prototype.inside=function(s,m){return this.compare(s,m)==0?!(this.isEnd(s,m)||this.isStart(s,m)):!1},A.prototype.insideStart=function(s,m){return this.compare(s,m)==0?!this.isEnd(s,m):!1},A.prototype.insideEnd=function(s,m){return this.compare(s,m)==0?!this.isStart(s,m):!1},A.prototype.compare=function(s,m){return!this.isMultiLine()&&s===this.start.row?mthis.end.column?1:0:sthis.end.row?1:this.start.row===s?m>=this.start.column?0:-1:this.end.row===s?m<=this.end.column?0:1:0},A.prototype.compareStart=function(s,m){return this.start.row==s&&this.start.column==m?-1:this.compare(s,m)},A.prototype.compareEnd=function(s,m){return this.end.row==s&&this.end.column==m?1:this.compare(s,m)},A.prototype.compareInside=function(s,m){return this.end.row==s&&this.end.column==m?1:this.start.row==s&&this.start.column==m?-1:this.compare(s,m)},A.prototype.clipRows=function(s,m){if(this.end.row>m)var h={row:m+1,column:0};else if(this.end.rowm)var l={row:m+1,column:0};else if(this.start.row1?(D++,D>4&&(D=1)):D=1,L.isIE){var j=Math.abs(H.clientX-N)>5||Math.abs(H.clientY-M)>5;(!k||j)&&(D=1),k&&clearTimeout(k),k=setTimeout(function(){k=null},_[D-1]||600),D==1&&(N=H.clientX,M=H.clientY)}if(H._clicks=D,$[S]("mousedown",H),D>4)D=0;else if(D>1)return $[S](R[D],H)}Array.isArray(C)||(C=[C]),C.forEach(function(H){i(H,"mousedown",F,O)})};var d=function(C){return 0|(C.ctrlKey?1:0)|(C.altKey?2:0)|(C.shiftKey?4:0)|(C.metaKey?8:0)};T.getModifierString=function(C){return V.KEY_MODS[d(C)]};function g(C,_,$){var S=d(_);if(!L.isMac&&A){if(_.getModifierState&&(_.getModifierState("OS")||_.getModifierState("Win"))&&(S|=8),A.altGr)if((3&S)!=3)A.altGr=0;else return;if($===18||$===17){var O="location"in _?_.location:_.keyLocation;if($===17&&O===1)A[$]==1&&(s=_.timeStamp);else if($===18&&S===3&&O===2){var D=_.timeStamp-s;D<50&&(A.altGr=!0)}}}if($ in V.MODIFIER_KEYS&&($=-1),!S&&$===13){var O="location"in _?_.location:_.keyLocation;if(O===3&&(C(_,S,-$),_.defaultPrevented))return}if(L.isChromeOS&&S&8){if(C(_,S,$),_.defaultPrevented)return;S&=-9}return!S&&!($ in V.FUNCTION_KEYS)&&!($ in V.PRINTABLE_KEYS)?!1:C(_,S,$)}T.addCommandKeyListener=function(C,_,$){if(L.isOldGecko||L.isOpera&&!("KeyboardEvent"in window)){var S=null;i(C,"keydown",function(D){S=D.keyCode},$),i(C,"keypress",function(D){return g(_,D,S)},$)}else{var O=null;i(C,"keydown",function(D){A[D.keyCode]=(A[D.keyCode]||0)+1;var N=g(_,D,D.keyCode);return O=D.defaultPrevented,N},$),i(C,"keypress",function(D){O&&(D.ctrlKey||D.altKey||D.shiftKey||D.metaKey)&&(T.stopEvent(D),O=null)},$),i(C,"keyup",function(D){A[D.keyCode]=null},$),A||(v(),i(window,"focus",v))}};function v(){A=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!L.isOldIE){var x=1;T.nextTick=function(C,_){_=_||window;var $="zero-timeout-message-"+x++,S=function(O){O.data==$&&(T.stopPropagation(O),u(_,"message",S),C())};i(_,"message",S),_.postMessage($,"*")}}T.$idleBlocked=!1,T.onIdle=function(C,_){return setTimeout(function $(){T.$idleBlocked?setTimeout($,100):C()},_)},T.$idleBlockId=null,T.blockIdle=function(C){T.$idleBlockId&&clearTimeout(T.$idleBlockId),T.$idleBlocked=!0,T.$idleBlockId=setTimeout(function(){T.$idleBlocked=!1},C||100)},T.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),T.nextFrame?T.nextFrame=T.nextFrame.bind(window):T.nextFrame=function(C){setTimeout(C,17)}}),ace.define("ace/clipboard",["require","exports","module"],function(y,T,G){var V;G.exports={lineMode:!1,pasteCancelled:function(){return V&&V>Date.now()-50?!0:V=!1},cancel:function(){V=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/config","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(y,T,G){var V=y("../lib/event"),L=y("../config").nls,A=y("../lib/useragent"),s=y("../lib/dom"),m=y("../lib/lang"),h=y("../clipboard"),l=A.isChrome<18,c=A.isIE,i=A.isChrome>63,u=400,d=y("../lib/keys"),g=d.KEY_MODS,v=A.isIOS,x=v?/\s/:/\n/,C=A.isMobile,_=function($,S){var O=s.createElement("textarea");O.className="ace_text-input",O.setAttribute("wrap","off"),O.setAttribute("autocorrect","off"),O.setAttribute("autocapitalize","off"),O.setAttribute("spellcheck",!1),O.style.opacity="0",$.insertBefore(O,$.firstChild);var D=!1,N=!1,M=!1,k=!1,R="";C||(O.style.fontSize="1px");var F=!1,H=!1,j="",P=0,ee=0,J=0,K=Number.MAX_SAFE_INTEGER,ae=Number.MIN_SAFE_INTEGER,Q=0;try{var he=document.activeElement===O}catch{}this.setNumberOfExtraLines=function(Re){if(K=Number.MAX_SAFE_INTEGER,ae=Number.MIN_SAFE_INTEGER,Re<0){Q=0;return}Q=Re},this.setAriaOptions=function(Re){if(Re.activeDescendant?(O.setAttribute("aria-haspopup","true"),O.setAttribute("aria-autocomplete",Re.inline?"both":"list"),O.setAttribute("aria-activedescendant",Re.activeDescendant)):(O.setAttribute("aria-haspopup","false"),O.setAttribute("aria-autocomplete","both"),O.removeAttribute("aria-activedescendant")),Re.role&&O.setAttribute("role",Re.role),Re.setLabel&&(O.setAttribute("aria-roledescription",L("editor")),S.session)){var ze=S.session.selection.cursor.row;O.setAttribute("aria-label",L("Cursor at row $0",[ze+1]))}},this.setAriaOptions({role:"textbox"}),V.addListener(O,"blur",function(Re){H||(S.onBlur(Re),he=!1)},S),V.addListener(O,"focus",function(Re){if(!H){if(he=!0,A.isEdge)try{if(!document.hasFocus())return}catch{}S.onFocus(Re),A.isEdge?setTimeout(Se):Se()}},S),this.$focusScroll=!1,this.focus=function(){if(this.setAriaOptions({setLabel:S.renderer.enableKeyboardAccessibility}),R||i||this.$focusScroll=="browser")return O.focus({preventScroll:!0});var Re=O.style.top;O.style.position="fixed",O.style.top="0px";try{var ze=O.getBoundingClientRect().top!=0}catch{return}var We=[];if(ze)for(var ot=O.parentElement;ot&&ot.nodeType==1;)We.push(ot),ot.setAttribute("ace_nocontext",!0),!ot.parentElement&&ot.getRootNode?ot=ot.getRootNode().host:ot=ot.parentElement;O.focus({preventScroll:!0}),ze&&We.forEach(function(dt){dt.removeAttribute("ace_nocontext")}),setTimeout(function(){O.style.position="",O.style.top=="0px"&&(O.style.top=Re)},0)},this.blur=function(){O.blur()},this.isFocused=function(){return he},S.on("beforeEndOperation",function(){var Re=S.curOp,ze=Re&&Re.command&&Re.command.name;if(ze!="insertstring"){var We=ze&&(Re.docChanged||Re.selectionChanged);M&&We&&(j=O.value="",we()),Se()}});var ge=function(Re,ze){for(var We=ze,ot=1;ot<=Re-K&&ot<2*Q+1;ot++)We+=S.session.getLine(Re-ot).length+1;return We},Se=v?function(Re){if(!(!he||D&&!Re||k)){Re||(Re="");var ze=` - ab`+Re+`cde fg -`;ze!=O.value&&(O.value=j=ze);var We=4,ot=4+(Re.length||(S.selection.isEmpty()?0:1));(P!=We||ee!=ot)&&O.setSelectionRange(We,ot),P=We,ee=ot}}:function(){if(!(M||k)&&!(!he&&!X)){M=!0;var Re=0,ze=0,We="";if(S.session){var ot=S.selection,dt=ot.getRange(),Ge=ot.cursor.row;Ge===ae+1?(K=ae+1,ae=K+2*Q):Ge===K-1?(ae=K-1,K=ae-2*Q):(Geae+1)&&(K=Ge>Q?Ge-Q:0,ae=Ge>Q?Ge+Q:2*Q);for(var Xe=[],qe=K;qe<=ae;qe++)Xe.push(S.session.getLine(qe));if(We=Xe.join(` -`),Re=ge(dt.start.row,dt.start.column),ze=ge(dt.end.row,dt.end.column),dt.start.rowae){var ut=S.session.getLine(ae+1);ze=dt.end.row>ae+1?ut.length:dt.end.column,ze+=We.length+1,We=We+` -`+ut}else C&&Ge>0&&(We=` -`+We,ze+=1,Re+=1);We.length>u&&(Re=j.length&&Re.value===j&&j&&Re.selectionEnd!==ee},ne=function(Re){M||(D?D=!1:ce(O)?(S.selectAll(),Se()):C&&O.selectionStart!=P&&Se())},fe=null;this.setInputHandler=function(Re){fe=Re},this.getInputHandler=function(){return fe};var X=!1,ye=function(Re,ze){if(X&&(X=!1),N)return Se(),Re&&S.onPaste(Re),N=!1,"";for(var We=O.selectionStart,ot=O.selectionEnd,dt=P,Ge=j.length-ee,Xe=Re,qe=Re.length-We,gt=Re.length-ot,ut=0;dt>0&&j[ut]==Re[ut];)ut++,dt--;for(Xe=Xe.slice(ut),ut=1;Ge>0&&j.length-ut>P-1&&j[j.length-ut]==Re[Re.length-ut];)ut++,Ge--;qe-=ut-1,gt-=ut-1;var tt=Xe.length-ut+1;if(tt<0&&(dt=-tt,tt=0),Xe=Xe.slice(0,tt),!ze&&!Xe&&!qe&&!dt&&!Ge&&!gt)return"";k=!0;var Ct=!1;return A.isAndroid&&Xe==". "&&(Xe=" ",Ct=!0),Xe&&!dt&&!Ge&&!qe&&!gt||F?S.onTextInput(Xe):S.onTextInput(Xe,{extendLeft:dt,extendRight:Ge,restoreStart:qe,restoreEnd:gt}),k=!1,j=Re,P=We,ee=ot,J=gt,Ct?` -`:Xe},Ce=function(Re){if(M)return ie();if(Re&&Re.inputType){if(Re.inputType=="historyUndo")return S.execCommand("undo");if(Re.inputType=="historyRedo")return S.execCommand("redo")}var ze=O.value,We=ye(ze,!0);(ze.length>u+100||x.test(We)||C&&P<1&&P==ee)&&Se()},$e=function(Re,ze,We){var ot=Re.clipboardData||window.clipboardData;if(!(!ot||l)){var dt=c||We?"Text":"text/plain";try{return ze?ot.setData(dt,ze)!==!1:ot.getData(dt)}catch(Ge){if(!We)return $e(Ge,ze,!0)}}},ke=function(Re,ze){var We=S.getCopyText();if(!We)return V.preventDefault(Re);$e(Re,We)?(v&&(Se(We),D=We,setTimeout(function(){D=!1},10)),ze?S.onCut():S.onCopy(),V.preventDefault(Re)):(D=!0,O.value=We,O.select(),setTimeout(function(){D=!1,Se(),ze?S.onCut():S.onCopy()}))},Ne=function(Re){ke(Re,!0)},Ve=function(Re){ke(Re,!1)},Oe=function(Re){var ze=$e(Re);h.pasteCancelled()||(typeof ze=="string"?(ze&&S.onPaste(ze,Re),A.isIE&&setTimeout(Se),V.preventDefault(Re)):(O.value="",N=!0))};V.addCommandKeyListener(O,S.onCommandKey.bind(S),S),V.addListener(O,"select",ne,S),V.addListener(O,"input",Ce,S),V.addListener(O,"cut",Ne,S),V.addListener(O,"copy",Ve,S),V.addListener(O,"paste",Oe,S),(!("oncut"in O)||!("oncopy"in O)||!("onpaste"in O))&&V.addListener($,"keydown",function(Re){if(!(A.isMac&&!Re.metaKey||!Re.ctrlKey))switch(Re.keyCode){case 67:Ve(Re);break;case 86:Oe(Re);break;case 88:Ne(Re);break}},S);var Fe=function(Re){if(!(M||!S.onCompositionStart||S.$readOnly)&&(M={},!F)){Re.data&&(M.useTextareaForIME=!1),setTimeout(ie,0),S._signal("compositionStart"),S.on("mousedown",se);var ze=S.getSelectionRange();ze.end.row=ze.start.row,ze.end.column=ze.start.column,M.markerRange=ze,M.selectionStart=P,S.onCompositionStart(M),M.useTextareaForIME?(j=O.value="",P=0,ee=0):(O.msGetInputContext&&(M.context=O.msGetInputContext()),O.getInputContext&&(M.context=O.getInputContext()))}},ie=function(){if(!(!M||!S.onCompositionUpdate||S.$readOnly)){if(F)return se();if(M.useTextareaForIME)S.onCompositionUpdate(O.value);else{var Re=O.value;ye(Re),M.markerRange&&(M.context&&(M.markerRange.start.column=M.selectionStart=M.context.compositionStartOffset),M.markerRange.end.column=M.markerRange.start.column+ee-M.selectionStart+J)}}},we=function(Re){!S.onCompositionEnd||S.$readOnly||(M=!1,S.onCompositionEnd(),S.off("mousedown",se),Re&&Ce())};function se(){H=!0,O.blur(),O.focus(),H=!1}var ue=m.delayedCall(ie,50).schedule.bind(null,null);function pe(Re){Re.keyCode==27&&O.value.lengthee&&j[gt]==` -`?ut=d.end:qeee&&j.slice(0,gt).split(` -`).length>2?ut=d.down:gt>ee&&j[gt-1]==" "?(ut=d.right,tt=g.option):(gt>ee||gt==ee&&ee!=P&&qe==gt)&&(ut=d.right),qe!==gt&&(tt|=g.shift),ut){var Ct=ze.onCommandKey({},tt,ut);if(!Ct&&ze.commands){ut=d.keyCodeToString(ut);var Gt=ze.commands.findKeyCommand(tt,ut);Gt&&ze.execCommand(Gt)}P=qe,ee=gt,Se("")}}};document.addEventListener("selectionchange",Ge),ze.on("destroy",function(){document.removeEventListener("selectionchange",Ge)})}this.destroy=function(){O.parentElement&&O.parentElement.removeChild(O)}};T.TextInput=_,T.$setUserAgentForTests=function($,S){C=$,v=S}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(y,T,G){var V=y("../lib/useragent"),L=0,A=550,s=function(){function l(c){c.$clickSelection=null;var i=c.editor;i.setDefaultHandler("mousedown",this.onMouseDown.bind(c)),i.setDefaultHandler("dblclick",this.onDoubleClick.bind(c)),i.setDefaultHandler("tripleclick",this.onTripleClick.bind(c)),i.setDefaultHandler("quadclick",this.onQuadClick.bind(c)),i.setDefaultHandler("mousewheel",this.onMouseWheel.bind(c));var u=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];u.forEach(function(d){c[d]=this[d]},this),c.selectByLines=this.extendSelectionBy.bind(c,"getLineRange"),c.selectByWords=this.extendSelectionBy.bind(c,"getWordRange")}return l.prototype.onMouseDown=function(c){var i=c.inSelection(),u=c.getDocumentPosition();this.mousedownEvent=c;var d=this.editor,g=c.getButton();if(g!==0){var v=d.getSelectionRange(),x=v.isEmpty();(x||g==1)&&d.selection.moveToPosition(u),g==2&&(d.textInput.onContextMenu(c.domEvent),V.isMozilla||c.preventDefault());return}if(this.mousedownEvent.time=Date.now(),i&&!d.isFocused()&&(d.focus(),this.$focusTimeout&&!this.$clickSelection&&!d.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(c);return}return this.captureMouse(c),this.startSelect(u,c.domEvent._clicks>1),c.preventDefault()},l.prototype.startSelect=function(c,i){c=c||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var u=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?u.selection.selectToPosition(c):i||u.selection.moveToPosition(c),i||this.select(),u.setStyle("ace_selecting"),this.setState("select"))},l.prototype.select=function(){var c,i=this.editor,u=i.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var d=this.$clickSelection.comparePoint(u);if(d==-1)c=this.$clickSelection.end;else if(d==1)c=this.$clickSelection.start;else{var g=h(this.$clickSelection,u);u=g.cursor,c=g.anchor}i.selection.setSelectionAnchor(c.row,c.column)}i.selection.selectToPosition(u),i.renderer.scrollCursorIntoView()},l.prototype.extendSelectionBy=function(c){var i,u=this.editor,d=u.renderer.screenToTextCoordinates(this.x,this.y),g=u.selection[c](d.row,d.column);if(this.$clickSelection){var v=this.$clickSelection.comparePoint(g.start),x=this.$clickSelection.comparePoint(g.end);if(v==-1&&x<=0)i=this.$clickSelection.end,(g.end.row!=d.row||g.end.column!=d.column)&&(d=g.start);else if(x==1&&v>=0)i=this.$clickSelection.start,(g.start.row!=d.row||g.start.column!=d.column)&&(d=g.end);else if(v==-1&&x==1)d=g.end,i=g.start;else{var C=h(this.$clickSelection,d);d=C.cursor,i=C.anchor}u.selection.setSelectionAnchor(i.row,i.column)}u.selection.selectToPosition(d),u.renderer.scrollCursorIntoView()},l.prototype.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting")},l.prototype.focusWait=function(){var c=m(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),i=Date.now();(c>L||i-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},l.prototype.onDoubleClick=function(c){var i=c.getDocumentPosition(),u=this.editor,d=u.session,g=d.getBracketRange(i);g?(g.isEmpty()&&(g.start.column--,g.end.column++),this.setState("select")):(g=u.selection.getWordRange(i.row,i.column),this.setState("selectByWords")),this.$clickSelection=g,this.select()},l.prototype.onTripleClick=function(c){var i=c.getDocumentPosition(),u=this.editor;this.setState("selectByLines");var d=u.getSelectionRange();d.isMultiLine()&&d.contains(i.row,i.column)?(this.$clickSelection=u.selection.getLineRange(d.start.row),this.$clickSelection.end=u.selection.getLineRange(d.end.row).end):this.$clickSelection=u.selection.getLineRange(i.row),this.select()},l.prototype.onQuadClick=function(c){var i=this.editor;i.selectAll(),this.$clickSelection=i.getSelectionRange(),this.setState("selectAll")},l.prototype.onMouseWheel=function(c){if(!c.getAccelKey()){c.getShiftKey()&&c.wheelY&&!c.wheelX&&(c.wheelX=c.wheelY,c.wheelY=0);var i=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var u=this.$lastScroll,d=c.domEvent.timeStamp,g=d-u.t,v=g?c.wheelX/g:u.vx,x=g?c.wheelY/g:u.vy;g=1&&i.renderer.isScrollableBy(c.wheelX*c.speed,0)&&(_=!0),C<=1&&i.renderer.isScrollableBy(0,c.wheelY*c.speed)&&(_=!0),_)u.allowed=d;else if(d-u.allowed=u.length&&(u=void 0),{value:u&&u[v++],done:!u}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},A=y("./lib/dom"),s=y("./range").Range,m="ace_tooltip",h=function(){function u(d){this.isOpen=!1,this.$element=null,this.$parentNode=d}return u.prototype.$init=function(){return this.$element=A.createElement("div"),this.$element.className=m,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},u.prototype.getElement=function(){return this.$element||this.$init()},u.prototype.setText=function(d){this.getElement().textContent=d},u.prototype.setHtml=function(d){this.getElement().innerHTML=d},u.prototype.setPosition=function(d,g){this.getElement().style.left=d+"px",this.getElement().style.top=g+"px"},u.prototype.setClassName=function(d){A.addCssClass(this.getElement(),d)},u.prototype.setTheme=function(d){this.$element.className=m+" "+(d.isDark?"ace_dark ":"")+(d.cssClass||"")},u.prototype.show=function(d,g,v){d!=null&&this.setText(d),g!=null&&v!=null&&this.setPosition(g,v),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},u.prototype.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=m,this.isOpen=!1)},u.prototype.getHeight=function(){return this.getElement().offsetHeight},u.prototype.getWidth=function(){return this.getElement().offsetWidth},u.prototype.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)},u}(),l=function(){function u(){this.popups=[]}return u.prototype.addPopup=function(d){this.popups.push(d),this.updatePopups()},u.prototype.removePopup=function(d){var g=this.popups.indexOf(d);g!==-1&&(this.popups.splice(g,1),this.updatePopups())},u.prototype.updatePopups=function(){var d,g,v,x;this.popups.sort(function(k,R){return R.priority-k.priority});var C=[];try{for(var _=L(this.popups),$=_.next();!$.done;$=_.next()){var S=$.value,O=!0;try{for(var D=(v=void 0,L(C)),N=D.next();!N.done;N=D.next()){var M=N.value;if(this.doPopupsOverlap(M,S)){O=!1;break}}}catch(k){v={error:k}}finally{try{N&&!N.done&&(x=D.return)&&x.call(D)}finally{if(v)throw v.error}}O?C.push(S):S.hide()}}catch(k){d={error:k}}finally{try{$&&!$.done&&(g=_.return)&&g.call(_)}finally{if(d)throw d.error}}},u.prototype.doPopupsOverlap=function(d,g){var v=d.getElement().getBoundingClientRect(),x=g.getElement().getBoundingClientRect();return v.leftx.left&&v.topx.top},u}(),c=new l;T.popupManager=c,T.Tooltip=h;var i=function(u){V(d,u);function d(g){g===void 0&&(g=document.body);var v=u.call(this,g)||this;v.timeout=void 0,v.lastT=0,v.idleTime=350,v.lastEvent=void 0,v.onMouseOut=v.onMouseOut.bind(v),v.onMouseMove=v.onMouseMove.bind(v),v.waitForHover=v.waitForHover.bind(v),v.hide=v.hide.bind(v);var x=v.getElement();return x.style.whiteSpace="pre-wrap",x.style.pointerEvents="auto",x.addEventListener("mouseout",v.onMouseOut),x.tabIndex=-1,x.addEventListener("blur",(function(){x.contains(document.activeElement)||this.hide()}).bind(v)),v}return d.prototype.addToEditor=function(g){g.on("mousemove",this.onMouseMove),g.on("mousedown",this.hide),g.renderer.getMouseEventTarget().addEventListener("mouseout",this.onMouseOut,!0)},d.prototype.removeFromEditor=function(g){g.off("mousemove",this.onMouseMove),g.off("mousedown",this.hide),g.renderer.getMouseEventTarget().removeEventListener("mouseout",this.onMouseOut,!0),this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},d.prototype.onMouseMove=function(g,v){this.lastEvent=g,this.lastT=Date.now();var x=v.$mouseHandler.isMousePressed;if(this.isOpen){var C=this.lastEvent&&this.lastEvent.getDocumentPosition();(!this.range||!this.range.contains(C.row,C.column)||x||this.isOutsideOfText(this.lastEvent))&&this.hide()}this.timeout||x||(this.lastEvent=g,this.timeout=setTimeout(this.waitForHover,this.idleTime))},d.prototype.waitForHover=function(){this.timeout&&clearTimeout(this.timeout);var g=Date.now()-this.lastT;if(this.idleTime-g>10){this.timeout=setTimeout(this.waitForHover,this.idleTime-g);return}this.timeout=null,this.lastEvent&&!this.isOutsideOfText(this.lastEvent)&&this.$gatherData(this.lastEvent,this.lastEvent.editor)},d.prototype.isOutsideOfText=function(g){var v=g.editor,x=g.getDocumentPosition(),C=v.session.getLine(x.row);if(x.column==C.length){var _=v.renderer.pixelToScreenCoordinates(g.clientX,g.clientY),$=v.session.documentToScreenPosition(x.row,x.column);if($.column!=_.column||$.row!=_.row)return!0}return!1},d.prototype.setDataProvider=function(g){this.$gatherData=g},d.prototype.showForRange=function(g,v,x,C){if(!(C&&C!=this.lastEvent)&&!(this.isOpen&&document.activeElement==this.getElement())){var _=g.renderer;this.isOpen||(c.addPopup(this),this.$registerCloseEvents(),this.setTheme(_.theme)),this.isOpen=!0,this.addMarker(v,g.session),this.range=s.fromPoints(v.start,v.end);var $=this.getElement();$.innerHTML="",$.appendChild(x),$.style.display="block";var S=_.textToScreenCoordinates(v.start.row,v.start.column),O=$.clientHeight,D=_.scroller.getBoundingClientRect(),N=!0;S.pageY-O<0&&(N=!1),N?S.pageY-=O:S.pageY+=_.lineHeight,$.style.maxWidth=D.width-(S.pageX-D.left)+"px",this.setPosition(S.pageX,S.pageY)}},d.prototype.addMarker=function(g,v){this.marker&&this.$markerSession.removeMarker(this.marker),this.$markerSession=v,this.marker=v&&v.addMarker(g,"ace_highlight-marker","text")},d.prototype.hide=function(g){!g&&document.activeElement==this.getElement()||g&&g.target&&(g.type!="keydown"||g.ctrlKey||g.metaKey)&&this.$element.contains(g.target)||(this.lastEvent=null,this.timeout&&clearTimeout(this.timeout),this.timeout=null,this.addMarker(null),this.isOpen&&(this.$removeCloseEvents(),this.getElement().style.display="none",this.isOpen=!1,c.removePopup(this)))},d.prototype.$registerCloseEvents=function(){window.addEventListener("keydown",this.hide,!0),window.addEventListener("mousewheel",this.hide,!0),window.addEventListener("mousedown",this.hide,!0)},d.prototype.$removeCloseEvents=function(){window.removeEventListener("keydown",this.hide,!0),window.removeEventListener("mousewheel",this.hide,!0),window.removeEventListener("mousedown",this.hide,!0)},d.prototype.onMouseOut=function(g){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.lastEvent=null,this.isOpen&&(!g.relatedTarget||g.relatedTarget==this.getElement()||g&&g.currentTarget.contains(g.relatedTarget)||g.relatedTarget.classList.contains("ace_content")||this.hide())},d}(h);T.HoverTooltip=i}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/tooltip","ace/config"],function(y,T,G){var V=this&&this.__extends||function(){var i=function(u,d){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var x in v)Object.prototype.hasOwnProperty.call(v,x)&&(g[x]=v[x])},i(u,d)};return function(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");i(u,d);function g(){this.constructor=u}u.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)}}(),L=this&&this.__values||function(i){var u=typeof Symbol=="function"&&Symbol.iterator,d=u&&i[u],g=0;if(d)return d.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&g>=i.length&&(i=void 0),{value:i&&i[g++],done:!i}}};throw new TypeError(u?"Object is not iterable.":"Symbol.iterator is not defined.")},A=y("../lib/dom"),s=y("../lib/event"),m=y("../tooltip").Tooltip,h=y("../config").nls;function l(i){var u=i.editor,d=u.renderer.$gutterLayer,g=new c(u);i.editor.setDefaultHandler("guttermousedown",function(S){if(!(!u.isFocused()||S.getButton()!=0)){var O=d.getRegion(S);if(O!="foldWidgets"){var D=S.getDocumentPosition().row,N=u.session.selection;if(S.getShiftKey())N.selectTo(D,0);else{if(S.domEvent.detail==2)return u.selectAll(),S.preventDefault();i.$clickSelection=u.selection.getLineRange(D)}return i.setState("selectByLines"),i.captureMouse(S),S.preventDefault()}}});var v,x;function C(){var S=x.getDocumentPosition().row,O=u.session.getLength();if(S==O){var D=u.renderer.pixelToScreenCoordinates(0,x.y).row,N=x.$pos;if(D>u.session.documentToScreenRow(N.row,N.column))return _()}if(g.showTooltip(S),!!g.isOpen)if(u.on("mousewheel",_),i.$tooltipFollowsMouse)$(x);else{var M=x.getGutterRow(),k=d.$lines.get(M);if(k){var R=k.element.querySelector(".ace_gutter_annotation"),F=R.getBoundingClientRect(),H=g.getElement().style;H.left=F.right+"px",H.top=F.bottom+"px"}else $(x)}}function _(){v&&(v=clearTimeout(v)),g.isOpen&&(g.hideTooltip(),u.off("mousewheel",_))}function $(S){g.setPosition(S.x,S.y)}i.editor.setDefaultHandler("guttermousemove",function(S){var O=S.domEvent.target||S.domEvent.srcElement;if(A.hasCssClass(O,"ace_fold-widget"))return _();g.isOpen&&i.$tooltipFollowsMouse&&$(S),x=S,!v&&(v=setTimeout(function(){v=null,x&&!i.isMousePressed?C():_()},50))}),s.addListener(u.renderer.$gutter,"mouseout",function(S){x=null,!(!g.isOpen||v)&&(v=setTimeout(function(){v=null,_()},50))},u),u.on("changeSession",_),u.on("input",_)}T.GutterHandler=l;var c=function(i){V(u,i);function u(d){var g=i.call(this,d.container)||this;return g.editor=d,g}return u.prototype.setPosition=function(d,g){var v=window.innerWidth||document.documentElement.clientWidth,x=window.innerHeight||document.documentElement.clientHeight,C=this.getWidth(),_=this.getHeight();d+=15,g+=15,d+C>v&&(d-=d+C-v),g+_>x&&(g-=20+_),m.prototype.setPosition.call(this,d,g)},Object.defineProperty(u,"annotationLabels",{get:function(){return{error:{singular:h("error"),plural:h("errors")},warning:{singular:h("warning"),plural:h("warnings")},info:{singular:h("information message"),plural:h("information messages")}}},enumerable:!1,configurable:!0}),u.prototype.showTooltip=function(d){var g=this.editor.renderer.$gutterLayer,v=g.$annotations[d],x;v?x={text:Array.from(v.text),type:Array.from(v.type)}:x={text:[],type:[]};var C=g.session.getFoldLine(d);if(C&&g.$showFoldedAnnotations){for(var _={error:[],warning:[],info:[]},$,S=d+1;S<=C.end.row;S++)if(g.$annotations[S])for(var O=0;O
    ").concat(x.text[S]);M[x.type[S].replace("_fold","")].push(R)}var F=[].concat(M.error,M.warning,M.info).join("
    ");this.setHtml(F),this.$element.setAttribute("aria-live","polite"),this.isOpen||(this.setTheme(this.editor.renderer.theme),this.setClassName("ace_gutter-tooltip")),this.show(),this.editor._signal("showGutterTooltip",this)},u.prototype.hideTooltip=function(){this.$element.removeAttribute("aria-live"),this.hide(),this.editor._signal("hideGutterTooltip",this)},u.annotationsToSummaryString=function(d){var g,v,x=[],C=["error","warning","info"];try{for(var _=L(C),$=_.next();!$.done;$=_.next()){var S=$.value;if(d[S].length){var O=d[S].length===1?u.annotationLabels[S].singular:u.annotationLabels[S].plural;x.push("".concat(d[S].length," ").concat(O))}}}catch(D){g={error:D}}finally{try{$&&!$.done&&(v=_.return)&&v.call(_)}finally{if(g)throw g.error}}return x.join(", ")},u}(m);T.GutterTooltip=c}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(y,T,G){var V=y("../lib/event"),L=y("../lib/useragent"),A=function(){function s(m,h){this.domEvent=m,this.editor=h,this.x=this.clientX=m.clientX,this.y=this.clientY=m.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}return s.prototype.stopPropagation=function(){V.stopPropagation(this.domEvent),this.propagationStopped=!0},s.prototype.preventDefault=function(){V.preventDefault(this.domEvent),this.defaultPrevented=!0},s.prototype.stop=function(){this.stopPropagation(),this.preventDefault()},s.prototype.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},s.prototype.getGutterRow=function(){var m=this.getDocumentPosition().row,h=this.editor.session.documentToScreenRow(m,0),l=this.editor.session.documentToScreenRow(this.editor.renderer.$gutterLayer.$lines.get(0).row,0);return h-l},s.prototype.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var m=this.editor,h=m.getSelectionRange();if(h.isEmpty())this.$inSelection=!1;else{var l=this.getDocumentPosition();this.$inSelection=h.contains(l.row,l.column)}return this.$inSelection},s.prototype.getButton=function(){return V.getButton(this.domEvent)},s.prototype.getShiftKey=function(){return this.domEvent.shiftKey},s.prototype.getAccelKey=function(){return L.isMac?this.domEvent.metaKey:this.domEvent.ctrlKey},s}();T.MouseEvent=A}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(y,T,G){var V=y("../lib/dom"),L=y("../lib/event"),A=y("../lib/useragent"),s=200,m=200,h=5;function l(i){var u=i.editor,d=V.createElement("div");d.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",d.textContent=" ";var g=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];g.forEach(function(ge){i[ge]=this[ge]},this),u.on("mousedown",this.onMouseDown.bind(i));var v=u.container,x,C,_,$,S,O,D=0,N,M,k,R,F;this.onDragStart=function(ge){if(this.cancelDrag||!v.draggable){var Se=this;return setTimeout(function(){Se.startSelect(),Se.captureMouse(ge)},0),ge.preventDefault()}S=u.getSelectionRange();var ce=ge.dataTransfer;ce.effectAllowed=u.getReadOnly()?"copy":"copyMove",u.container.appendChild(d),ce.setDragImage&&ce.setDragImage(d,0,0),setTimeout(function(){u.container.removeChild(d)}),ce.clearData(),ce.setData("Text",u.session.getTextRange()),M=!0,this.setState("drag")},this.onDragEnd=function(ge){if(v.draggable=!1,M=!1,this.setState(null),!u.getReadOnly()){var Se=ge.dataTransfer.dropEffect;!N&&Se=="move"&&u.session.remove(u.getSelectionRange()),u.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(ge){if(!(u.getReadOnly()||!Q(ge.dataTransfer)))return C=ge.clientX,_=ge.clientY,x||ee(),D++,ge.dataTransfer.dropEffect=N=he(ge),L.preventDefault(ge)},this.onDragOver=function(ge){if(!(u.getReadOnly()||!Q(ge.dataTransfer)))return C=ge.clientX,_=ge.clientY,x||(ee(),D++),K!==null&&(K=null),ge.dataTransfer.dropEffect=N=he(ge),L.preventDefault(ge)},this.onDragLeave=function(ge){if(D--,D<=0&&x)return J(),N=null,L.preventDefault(ge)},this.onDrop=function(ge){if(O){var Se=ge.dataTransfer;if(M)switch(N){case"move":S.contains(O.row,O.column)?S={start:O,end:O}:S=u.moveText(S,O);break;case"copy":S=u.moveText(S,O,!0);break}else{var ce=Se.getData("Text");S={start:O,end:u.session.insert(O,ce)},u.focus(),N=null}return J(),L.preventDefault(ge)}},L.addListener(v,"dragstart",this.onDragStart.bind(i),u),L.addListener(v,"dragend",this.onDragEnd.bind(i),u),L.addListener(v,"dragenter",this.onDragEnter.bind(i),u),L.addListener(v,"dragover",this.onDragOver.bind(i),u),L.addListener(v,"dragleave",this.onDragLeave.bind(i),u),L.addListener(v,"drop",this.onDrop.bind(i),u);function H(ge,Se){var ce=Date.now(),ne=!Se||ge.row!=Se.row,fe=!Se||ge.column!=Se.column;if(!R||ne||fe)u.moveCursorToPosition(ge),R=ce,F={x:C,y:_};else{var X=c(F.x,F.y,C,_);X>h?R=null:ce-R>=m&&(u.renderer.scrollCursorIntoView(),R=null)}}function j(ge,Se){var ce=Date.now(),ne=u.renderer.layerConfig.lineHeight,fe=u.renderer.layerConfig.characterWidth,X=u.renderer.scroller.getBoundingClientRect(),ye={x:{left:C-X.left,right:X.right-C},y:{top:_-X.top,bottom:X.bottom-_}},Ce=Math.min(ye.x.left,ye.x.right),$e=Math.min(ye.y.top,ye.y.bottom),ke={row:ge.row,column:ge.column};Ce/fe<=2&&(ke.column+=ye.x.left=s&&u.renderer.scrollCursorIntoView(ke):k=ce:k=null}function P(){var ge=O;O=u.renderer.screenToTextCoordinates(C,_),H(O,ge),j(O,ge)}function ee(){S=u.selection.toOrientedRange(),x=u.session.addMarker(S,"ace_selection",u.getSelectionStyle()),u.clearSelection(),u.isFocused()&&u.renderer.$cursorLayer.setBlinking(!1),clearInterval($),P(),$=setInterval(P,20),D=0,L.addListener(document,"mousemove",ae)}function J(){clearInterval($),u.session.removeMarker(x),x=null,u.selection.fromOrientedRange(S),u.isFocused()&&!M&&u.$resetCursorStyle(),S=null,O=null,D=0,k=null,R=null,L.removeListener(document,"mousemove",ae)}var K=null;function ae(){K==null&&(K=setTimeout(function(){K!=null&&x&&J()},20))}function Q(ge){var Se=ge.types;return!Se||Array.prototype.some.call(Se,function(ce){return ce=="text/plain"||ce=="Text"})}function he(ge){var Se=["copy","copymove","all","uninitialized"],ce=["move","copymove","linkmove","all","uninitialized"],ne=A.isMac?ge.altKey:ge.ctrlKey,fe="uninitialized";try{fe=ge.dataTransfer.effectAllowed.toLowerCase()}catch{}var X="none";return ne&&Se.indexOf(fe)>=0?X="copy":ce.indexOf(fe)>=0?X="move":Se.indexOf(fe)>=0&&(X="copy"),X}}(function(){this.dragWait=function(){var i=Date.now()-this.mousedownEvent.time;i>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var i=this.editor.container;i.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(i){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var i=this.editor,u=i.container;u.draggable=!0,i.renderer.$cursorLayer.setBlinking(!1),i.setStyle("ace_dragging");var d=A.isWin?"default":"move";i.renderer.setCursorStyle(d),this.setState("dragReady")},this.onMouseDrag=function(i){var u=this.editor.container;if(A.isIE&&this.state=="dragReady"){var d=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>3&&u.dragDrop()}if(this.state==="dragWait"){var d=c(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);d>0&&(u.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(i){if(this.$dragEnabled){this.mousedownEvent=i;var u=this.editor,d=i.inSelection(),g=i.getButton(),v=i.domEvent.detail||1;if(v===1&&g===0&&d){if(i.editor.inMultiSelectMode&&(i.getAccelKey()||i.getShiftKey()))return;this.mousedownEvent.time=Date.now();var x=i.domEvent.target||i.domEvent.srcElement;if("unselectable"in x&&(x.unselectable="on"),u.getDragDelay()){if(A.isWebKit){this.cancelDrag=!0;var C=u.container;C.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(i,this.onMouseDrag.bind(this)),i.defaultPrevented=!0}}}}).call(l.prototype);function c(i,u,d,g){return Math.sqrt(Math.pow(d-i,2)+Math.pow(g-u,2))}T.DragdropHandler=l}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(y,T,G){var V=y("./mouse_event").MouseEvent,L=y("../lib/event"),A=y("../lib/dom");T.addTouchListeners=function(s,m){var h="scroll",l,c,i,u,d,g,v=0,x,C=0,_=0,$=0,S,O;function D(){var H=window.navigator&&window.navigator.clipboard,j=!1,P=function(){var J=m.getCopyText(),K=m.session.getUndoManager().hasUndo();O.replaceChild(A.buildDom(j?["span",!J&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],J&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],J&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],H&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],K&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),O.firstChild)},ee=function(J){var K=J.target.getAttribute("action");if(K=="more"||!j)return j=!j,P();K=="paste"?H.readText().then(function(ae){m.execCommand(K,ae)}):K&&((K=="cut"||K=="copy")&&(H?H.writeText(m.getCopyText()):document.execCommand("copy")),m.execCommand(K)),O.firstChild.style.display="none",j=!1,K!="openCommandPallete"&&m.focus()};O=A.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(J){h="menu",J.stopPropagation(),J.preventDefault(),m.textInput.focus()},ontouchend:function(J){J.stopPropagation(),J.preventDefault(),ee(J)},onclick:ee},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],m.container)}function N(){O||D();var H=m.selection.cursor,j=m.renderer.textToScreenCoordinates(H.row,H.column),P=m.renderer.textToScreenCoordinates(0,0).pageX,ee=m.renderer.scrollLeft,J=m.container.getBoundingClientRect();O.style.top=j.pageY-J.top-3+"px",j.pageX-J.left=2?m.selection.getLineRange(x.row):m.session.getBracketRange(x);H&&!H.isEmpty()?m.selection.setRange(H):m.selection.selectWord(),h="wait"}L.addListener(s,"contextmenu",function(H){if(S){var j=m.textInput.getElement();j.focus()}},m),L.addListener(s,"touchstart",function(H){var j=H.touches;if(d||j.length>1){clearTimeout(d),d=null,i=-1,h="zoom";return}S=m.$mouseHandler.isMousePressed=!0;var P=m.renderer.layerConfig.lineHeight,ee=m.renderer.layerConfig.lineHeight,J=H.timeStamp;u=J;var K=j[0],ae=K.clientX,Q=K.clientY;Math.abs(l-ae)+Math.abs(c-Q)>P&&(i=-1),l=H.clientX=ae,c=H.clientY=Q,_=$=0;var he=new V(H,m);if(x=he.getDocumentPosition(),J-i<500&&j.length==1&&!v)C++,H.preventDefault(),H.button=0,R();else{C=0;var ge=m.selection.cursor,Se=m.selection.isEmpty()?ge:m.selection.anchor,ce=m.renderer.$cursorLayer.getPixelPosition(ge,!0),ne=m.renderer.$cursorLayer.getPixelPosition(Se,!0),fe=m.renderer.scroller.getBoundingClientRect(),X=m.renderer.layerConfig.offset,ye=m.renderer.scrollLeft,Ce=function(Ne,Ve){return Ne=Ne/ee,Ve=Ve/P-.75,Ne*Ne+Ve*Ve};if(H.clientXke?"cursor":"anchor"),ke<3.5?h="anchor":$e<3.5?h="cursor":h="scroll",d=setTimeout(k,450)}i=J},m),L.addListener(s,"touchend",function(H){S=m.$mouseHandler.isMousePressed=!1,g&&clearInterval(g),h=="zoom"?(h="",v=0):d?(m.selection.moveToPosition(x),v=0,N()):h=="scroll"?(F(),M()):N(),clearTimeout(d),d=null},m),L.addListener(s,"touchmove",function(H){d&&(clearTimeout(d),d=null);var j=H.touches;if(!(j.length>1||h=="zoom")){var P=j[0],ee=l-P.clientX,J=c-P.clientY;if(h=="wait")if(ee*ee+J*J>4)h="cursor";else return H.preventDefault();l=P.clientX,c=P.clientY,H.clientX=P.clientX,H.clientY=P.clientY;var K=H.timeStamp,ae=K-u;if(u=K,h=="scroll"){var Q=new V(H,m);Q.speed=1,Q.wheelX=ee,Q.wheelY=J,10*Math.abs(ee)0)if(ke==16){for(Oe=Ve;Oe-1){for(Oe=Ve;Oe=0&&ne[we]==S;we--)Se[we]=V}}}function ae(ge,Se,ce){if(!(L=ge){for(X=fe+1;X=ge;)X++;for(ye=fe,Ce=X-1;ye=Se.length||(X=ce[ne-1])!=g&&X!=v||(ye=Se[ne+1])!=g&&ye!=v?x:(A&&(ye=v),ye==X?ye:x);case D:return X=ne>0?ce[ne-1]:C,X==g&&ne+10&&ce[ne-1]==g)return g;if(A)return x;for($e=ne+1,Ce=Se.length;$e=1425&&ke<=2303||ke==64286;if(X=Se[$e],Ne&&(X==d||X==$))return d}return ne<1||(X=Se[ne-1])==C?x:ce[ne-1];case C:return A=!1,s=!0,V;case _:return m=!0,x;case k:case R:case H:case j:case F:A=!1;case P:return x}}function he(ge){var Se=ge.charCodeAt(0),ce=Se>>8;return ce==0?Se>191?u:ee[Se]:ce==5?/[\u0591-\u05f4]/.test(ge)?d:u:ce==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(ge)?M:/[\u0660-\u0669\u066b-\u066c]/.test(ge)?v:Se==1642?N:/[\u06f0-\u06f9]/.test(ge)?g:$:ce==32&&Se<=8287?J[Se&255]:ce==254&&Se>=65136?$:x}T.L=u,T.R=d,T.EN=g,T.ON_R=3,T.AN=4,T.R_H=5,T.B=6,T.RLE=7,T.DOT="·",T.doBidiReorder=function(ge,Se,ce){if(ge.length<2)return{};var ne=ge.split(""),fe=new Array(ne.length),X=new Array(ne.length),ye=[];V=ce?i:c,K(ne,ye,ne.length,Se);for(var Ce=0;Ce$&&Se[Ce]0&&ne[Ce-1]==="ل"&&/\u0622|\u0623|\u0625|\u0627/.test(ne[Ce])&&(ye[Ce-1]=ye[Ce]=T.R_H,Ce++);ne[ne.length-1]===T.DOT&&(ye[ne.length-1]=T.B),ne[0]==="‫"&&(ye[0]=T.RLE);for(var Ce=0;Ce=0&&(h=this.session.$docRowCache[c])}return h},m.prototype.getSplitIndex=function(){var h=0,l=this.session.$screenRowCache;if(l.length)for(var c,i=this.session.$getRowCacheIndex(l,this.currentRow);this.currentRow-h>0&&(c=this.session.$getRowCacheIndex(l,this.currentRow-h-1),c===i);)i=c,h++;else h=this.currentRow;return h},m.prototype.updateRowLine=function(h,l){h===void 0&&(h=this.getDocumentRow());var c=h===this.session.getLength()-1,i=c?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(h),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var u=this.session.$wrapData[h];u&&(l===void 0&&(l=this.getSplitIndex()),l>0&&u.length?(this.wrapIndent=u.indent,this.wrapOffset=this.wrapIndent*this.charWidths[V.L],this.line=ll?this.session.getOverwrite()?h:h-1:l,i=V.getVisualFromLogicalIdx(c,this.bidiMap),u=this.bidiMap.bidiLevels,d=0;!this.session.getOverwrite()&&h<=l&&u[i]%2!==0&&i++;for(var g=0;gl&&u[i]%2===0&&(d+=this.charWidths[u[i]]),this.wrapIndent&&(d+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(d+=this.rtlLineOffset),d},m.prototype.getSelections=function(h,l){var c=this.bidiMap,i=c.bidiLevels,u,d=[],g=0,v=Math.min(h,l)-this.wrapIndent,x=Math.max(h,l)-this.wrapIndent,C=!1,_=!1,$=0;this.wrapIndent&&(g+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var S,O=0;O=v&&Si+g/2;){if(i+=g,u===d.length-1){g=0;break}g=this.charWidths[d[++u]]}return u>0&&d[u-1]%2!==0&&d[u]%2===0?(c0&&d[u-1]%2===0&&d[u]%2!==0?l=1+(c>i?this.bidiMap.logicalFromVisual[u]:this.bidiMap.logicalFromVisual[u-1]):this.isRtlDir&&u===d.length-1&&g===0&&d[u-1]%2===0||!this.isRtlDir&&u===0&&d[u]%2!==0?l=1+this.bidiMap.logicalFromVisual[u]:(u>0&&d[u-1]%2!==0&&g!==0&&u--,l=this.bidiMap.logicalFromVisual[u]),l===0&&this.isRtlDir&&l++,l+this.wrapIndent},m}();T.BidiHandler=s}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(y,T,G){var V=y("./lib/oop"),L=y("./lib/lang"),A=y("./lib/event_emitter").EventEmitter,s=y("./range").Range,m=function(){function h(l){this.session=l,this.doc=l.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var c=this;this.cursor.on("change",function(i){c.$cursorChanged=!0,c.$silent||c._emit("changeCursor"),!c.$isEmpty&&!c.$silent&&c._emit("changeSelection"),!c.$keepDesiredColumnOnChange&&i.old.column!=i.value.column&&(c.$desiredColumn=null)}),this.anchor.on("change",function(){c.$anchorChanged=!0,!c.$isEmpty&&!c.$silent&&c._emit("changeSelection")})}return h.prototype.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},h.prototype.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},h.prototype.getCursor=function(){return this.lead.getPosition()},h.prototype.setAnchor=function(l,c){this.$isEmpty=!1,this.anchor.setPosition(l,c)},h.prototype.getAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},h.prototype.getSelectionLead=function(){return this.lead.getPosition()},h.prototype.isBackwards=function(){var l=this.anchor,c=this.lead;return l.row>c.row||l.row==c.row&&l.column>c.column},h.prototype.getRange=function(){var l=this.anchor,c=this.lead;return this.$isEmpty?s.fromPoints(c,c):this.isBackwards()?s.fromPoints(c,l):s.fromPoints(l,c)},h.prototype.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},h.prototype.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},h.prototype.setRange=function(l,c){var i=c?l.end:l.start,u=c?l.start:l.end;this.$setSelection(i.row,i.column,u.row,u.column)},h.prototype.$setSelection=function(l,c,i,u){if(!this.$silent){var d=this.$isEmpty,g=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(l,c),this.cursor.setPosition(i,u),this.$isEmpty=!s.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||d!=this.$isEmpty||g)&&this._emit("changeSelection")}},h.prototype.$moveSelection=function(l){var c=this.lead;this.$isEmpty&&this.setSelectionAnchor(c.row,c.column),l.call(this)},h.prototype.selectTo=function(l,c){this.$moveSelection(function(){this.moveCursorTo(l,c)})},h.prototype.selectToPosition=function(l){this.$moveSelection(function(){this.moveCursorToPosition(l)})},h.prototype.moveTo=function(l,c){this.clearSelection(),this.moveCursorTo(l,c)},h.prototype.moveToPosition=function(l){this.clearSelection(),this.moveCursorToPosition(l)},h.prototype.selectUp=function(){this.$moveSelection(this.moveCursorUp)},h.prototype.selectDown=function(){this.$moveSelection(this.moveCursorDown)},h.prototype.selectRight=function(){this.$moveSelection(this.moveCursorRight)},h.prototype.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},h.prototype.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},h.prototype.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},h.prototype.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},h.prototype.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},h.prototype.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},h.prototype.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},h.prototype.getWordRange=function(l,c){if(typeof c>"u"){var i=l||this.lead;l=i.row,c=i.column}return this.session.getWordRange(l,c)},h.prototype.selectWord=function(){this.setSelectionRange(this.getWordRange())},h.prototype.selectAWord=function(){var l=this.getCursor(),c=this.session.getAWordRange(l.row,l.column);this.setSelectionRange(c)},h.prototype.getLineRange=function(l,c){var i=typeof l=="number"?l:this.lead.row,u,d=this.session.getFoldLine(i);return d?(i=d.start.row,u=d.end.row):u=i,c===!0?new s(i,0,u,this.session.getLine(u).length):new s(i,0,u+1,0)},h.prototype.selectLine=function(){this.setSelectionRange(this.getLineRange())},h.prototype.moveCursorUp=function(){this.moveCursorBy(-1,0)},h.prototype.moveCursorDown=function(){this.moveCursorBy(1,0)},h.prototype.wouldMoveIntoSoftTab=function(l,c,i){var u=l.column,d=l.column+c;return i<0&&(u=l.column-c,d=l.column),this.session.isTabStop(l)&&this.doc.getLine(l.row).slice(u,d).split(" ").length-1==c},h.prototype.moveCursorLeft=function(){var l=this.lead.getPosition(),c;if(c=this.session.getFoldAt(l.row,l.column,-1))this.moveCursorTo(c.start.row,c.start.column);else if(l.column===0)l.row>0&&this.moveCursorTo(l.row-1,this.doc.getLine(l.row-1).length);else{var i=this.session.getTabSize();this.wouldMoveIntoSoftTab(l,i,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-i):this.moveCursorBy(0,-1)}},h.prototype.moveCursorRight=function(){var l=this.lead.getPosition(),c;if(c=this.session.getFoldAt(l.row,l.column,1))this.moveCursorTo(c.end.row,c.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(c.column=u)}}this.moveCursorTo(c.row,c.column)},h.prototype.moveCursorFileEnd=function(){var l=this.doc.getLength()-1,c=this.doc.getLine(l).length;this.moveCursorTo(l,c)},h.prototype.moveCursorFileStart=function(){this.moveCursorTo(0,0)},h.prototype.moveCursorLongWordRight=function(){var l=this.lead.row,c=this.lead.column,i=this.doc.getLine(l),u=i.substring(c);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var d=this.session.getFoldAt(l,c,1);if(d){this.moveCursorTo(d.end.row,d.end.column);return}if(this.session.nonTokenRe.exec(u)&&(c+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,u=i.substring(c)),c>=i.length){this.moveCursorTo(l,i.length),this.moveCursorRight(),l0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(d)&&(c-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(l,c)},h.prototype.$shortWordEndIndex=function(l){var c=0,i,u=/\s/,d=this.session.tokenRe;if(d.lastIndex=0,this.session.tokenRe.exec(l))c=this.session.tokenRe.lastIndex;else{for(;(i=l[c])&&u.test(i);)c++;if(c<1){for(d.lastIndex=0;(i=l[c])&&!d.test(i);)if(d.lastIndex=0,c++,u.test(i))if(c>2){c--;break}else{for(;(i=l[c])&&u.test(i);)c++;if(c>2)break}}}return d.lastIndex=0,c},h.prototype.moveCursorShortWordRight=function(){var l=this.lead.row,c=this.lead.column,i=this.doc.getLine(l),u=i.substring(c),d=this.session.getFoldAt(l,c,1);if(d)return this.moveCursorTo(d.end.row,d.end.column);if(c==i.length){var g=this.doc.getLength();do l++,u=this.doc.getLine(l);while(l0&&/^\s*$/.test(u));c=u.length,/\s+$/.test(u)||(u="")}var d=L.stringReverse(u),g=this.$shortWordEndIndex(d);return this.moveCursorTo(l,c-g)},h.prototype.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},h.prototype.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},h.prototype.moveCursorBy=function(l,c){var i=this.session.documentToScreenPosition(this.lead.row,this.lead.column),u;if(c===0&&(l!==0&&(this.session.$bidiHandler.isBidiRow(i.row,this.lead.row)?(u=this.session.$bidiHandler.getPosLeft(i.column),i.column=Math.round(u/this.session.$bidiHandler.charWidths[0])):u=i.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column),l!=0&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var d=this.session.lineWidgets[this.lead.row];l<0?l-=d.rowsAbove||0:l>0&&(l+=d.rowCount-(d.rowsAbove||0))}var g=this.session.screenToDocumentPosition(i.row+l,i.column,u);l!==0&&c===0&&g.row===this.lead.row&&(g.column,this.lead.column),this.moveCursorTo(g.row,g.column+c,c===0)},h.prototype.moveCursorToPosition=function(l){this.moveCursorTo(l.row,l.column)},h.prototype.moveCursorTo=function(l,c,i){var u=this.session.getFoldAt(l,c,1);u&&(l=u.start.row,c=u.start.column),this.$keepDesiredColumnOnChange=!0;var d=this.session.getLine(l);/[\uDC00-\uDFFF]/.test(d.charAt(c))&&d.charAt(c-1)&&(this.lead.row==l&&this.lead.column==c+1?c=c-1:c=c+1),this.lead.setPosition(l,c),this.$keepDesiredColumnOnChange=!1,i||(this.$desiredColumn=null)},h.prototype.moveCursorToScreen=function(l,c,i){var u=this.session.screenToDocumentPosition(l,c);this.moveCursorTo(u.row,u.column,i)},h.prototype.detach=function(){this.lead.detach(),this.anchor.detach()},h.prototype.fromOrientedRange=function(l){this.setSelectionRange(l,l.cursor==l.start),this.$desiredColumn=l.desiredColumn||this.$desiredColumn},h.prototype.toOrientedRange=function(l){var c=this.getRange();return l?(l.start.column=c.start.column,l.start.row=c.start.row,l.end.column=c.end.column,l.end.row=c.end.row):l=c,l.cursor=this.isBackwards()?l.start:l.end,l.desiredColumn=this.$desiredColumn,l},h.prototype.getRangeOfMovements=function(l){var c=this.getCursor();try{l(this);var i=this.getCursor();return s.fromPoints(c,i)}catch{return s.fromPoints(c,c)}finally{this.moveCursorToPosition(c)}},h.prototype.toJSON=function(){if(this.rangeCount)var l=this.ranges.map(function(c){var i=c.clone();return i.isBackwards=c.cursor==c.start,i});else{var l=this.getRange();l.isBackwards=this.isBackwards()}return l},h.prototype.fromJSON=function(l){if(l.start==null)if(this.rangeList&&l.length>1){this.toSingleRange(l[0]);for(var c=l.length;c--;){var i=s.fromPoints(l[c].start,l[c].end);l[c].isBackwards&&(i.cursor=i.start),this.addRange(i,!0)}return}else l=l[0];this.rangeList&&this.toSingleRange(l),this.setSelectionRange(l,l.isBackwards)},h.prototype.isEqual=function(l){if((l.length||this.rangeCount)&&l.length!=this.rangeCount)return!1;if(!l.length||!this.ranges)return this.getRange().isEqual(l);for(var c=this.ranges.length;c--;)if(!this.ranges[c].isEqual(l[c]))return!1;return!0},h}();m.prototype.setSelectionAnchor=m.prototype.setAnchor,m.prototype.getSelectionAnchor=m.prototype.getAnchor,m.prototype.setSelectionRange=m.prototype.setRange,V.implement(m.prototype,A),T.Selection=m}),ace.define("ace/tokenizer",["require","exports","module","ace/lib/report_error"],function(y,T,G){var V=y("./lib/report_error").reportError,L=2e3,A=function(){function s(m){this.states=m,this.regExps={},this.matchMappings={};for(var h in this.states){for(var l=this.states[h],c=[],i=0,u=this.matchMappings[h]={defaultToken:"text"},d="g",g=[],v=0;v1?x.onMatch=this.$applyToken:x.onMatch=x.token),_>1&&(/\\\d/.test(x.regex)?C=x.regex.replace(/\\([0-9]+)/g,function($,S){return"\\"+(parseInt(S,10)+i+1)}):(_=1,C=this.removeCapturingGroups(x.regex)),!x.splitRegex&&typeof x.token!="string"&&g.push(x)),u[i]=v,i+=_,c.push(C),x.onMatch||(x.onMatch=null)}}c.length||(u[0]=0,c.push("$")),g.forEach(function($){$.splitRegex=this.createSplitterRegexp($.regex,d)},this),this.regExps[h]=new RegExp("("+c.join(")|(")+")|($)",d)}}return s.prototype.$setMaxTokenCount=function(m){L=m|0},s.prototype.$applyToken=function(m){var h=this.splitRegex.exec(m).slice(1),l=this.token.apply(this,h);if(typeof l=="string")return[{type:l,value:m}];for(var c=[],i=0,u=l.length;ix){var N=m.substring(x,D-O.length);_.type==$?_.value+=N:(_.type&&v.push(_),_={type:$,value:N})}for(var M=0;ML){for(C>2*m.length&&this.reportError("infinite loop with in ace tokenizer",{startState:h,line:m});x1&&l[0]!==c&&l.unshift("#tmp",c),{tokens:v,state:l.length?l:c}},s}();A.prototype.reportError=V,T.Tokenizer=A}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/deep_copy"],function(y,T,G){var V=y("../lib/deep_copy").deepCopy,L=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(m,h){if(!h){for(var l in m)this.$rules[l]=m[l];return}for(var l in m){for(var c=m[l],i=0;i=this.$rowTokens.length;){if(this.$row+=1,s||(s=this.$session.getLength()),this.$row>=s)return this.$row=s-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},A.prototype.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},A.prototype.getCurrentTokenRow=function(){return this.$row},A.prototype.getCurrentTokenColumn=function(){var s=this.$rowTokens,m=this.$tokenIndex,h=s[m].start;if(h!==void 0)return h;for(h=0;m>0;)m-=1,h+=s[m].value.length;return h},A.prototype.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},A.prototype.getCurrentTokenRange=function(){var s=this.$rowTokens[this.$tokenIndex],m=this.getCurrentTokenColumn();return new V(this.$row,m,this.$row,m+s.value.length)},A}();T.TokenIterator=L}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(y,T,G){var V=y("../../lib/oop"),L=y("../behaviour").Behaviour,A=y("../../token_iterator").TokenIterator,s=y("../../lib/lang"),m=["text","paren.rparen","rparen","paren","punctuation.operator"],h=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],l,c={},i={'"':'"',"'":"'"},u=function(v){var x=-1;if(v.multiSelect&&(x=v.selection.index,c.rangeCount!=v.multiSelect.rangeCount&&(c={rangeCount:v.multiSelect.rangeCount})),c[x])return l=c[x];l=c[x]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(v,x,C,_){var $=v.end.row-v.start.row;return{text:C+x+_,selection:[0,v.start.column+1,$,v.end.column+($?0:1)]}},g=function(v){v=v||{},this.add("braces","insertion",function(x,C,_,$,S){var O=_.getCursorPosition(),D=$.doc.getLine(O.row);if(S=="{"){u(_);var N=_.getSelectionRange(),M=$.doc.getTextRange(N);if(M!==""&&M!=="{"&&_.getWrapBehavioursEnabled())return d(N,M,"{","}");if(g.isSaneInsertion(_,$))return/[\]\}\)]/.test(D[O.column])||_.inMultiSelectMode||v.braces?(g.recordAutoInsert(_,$,"}"),{text:"{}",selection:[1,1]}):(g.recordMaybeInsert(_,$,"{"),{text:"{",selection:[1,1]})}else if(S=="}"){u(_);var k=D.substring(O.column,O.column+1);if(k=="}"){var R=$.$findOpeningBracket("}",{column:O.column+1,row:O.row});if(R!==null&&g.isAutoInsertedClosing(O,D,S))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(S==` -`||S==`\r -`){u(_);var F="";g.isMaybeInsertedClosing(O,D)&&(F=s.stringRepeat("}",l.maybeInsertedBrackets),g.clearMaybeInsertedClosing());var k=D.substring(O.column,O.column+1);if(k==="}"){var H=$.findMatchingBracket({row:O.row,column:O.column+1},"}");if(!H)return null;var j=this.$getIndent($.getLine(H.row))}else if(F)var j=this.$getIndent(D);else{g.clearMaybeInsertedClosing();return}var P=j+$.getTabString();return{text:` -`+P+` -`+j+F,selection:[1,P.length,1,P.length]}}else g.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(x,C,_,$,S){var O=$.doc.getTextRange(S);if(!S.isMultiLine()&&O=="{"){u(_);var D=$.doc.getLine(S.start.row),N=D.substring(S.end.column,S.end.column+1);if(N=="}")return S.end.column++,S;l.maybeInsertedBrackets--}}),this.add("parens","insertion",function(x,C,_,$,S){if(S=="("){u(_);var O=_.getSelectionRange(),D=$.doc.getTextRange(O);if(D!==""&&_.getWrapBehavioursEnabled())return d(O,D,"(",")");if(g.isSaneInsertion(_,$))return g.recordAutoInsert(_,$,")"),{text:"()",selection:[1,1]}}else if(S==")"){u(_);var N=_.getCursorPosition(),M=$.doc.getLine(N.row),k=M.substring(N.column,N.column+1);if(k==")"){var R=$.$findOpeningBracket(")",{column:N.column+1,row:N.row});if(R!==null&&g.isAutoInsertedClosing(N,M,S))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(x,C,_,$,S){var O=$.doc.getTextRange(S);if(!S.isMultiLine()&&O=="("){u(_);var D=$.doc.getLine(S.start.row),N=D.substring(S.start.column+1,S.start.column+2);if(N==")")return S.end.column++,S}}),this.add("brackets","insertion",function(x,C,_,$,S){if(S=="["){u(_);var O=_.getSelectionRange(),D=$.doc.getTextRange(O);if(D!==""&&_.getWrapBehavioursEnabled())return d(O,D,"[","]");if(g.isSaneInsertion(_,$))return g.recordAutoInsert(_,$,"]"),{text:"[]",selection:[1,1]}}else if(S=="]"){u(_);var N=_.getCursorPosition(),M=$.doc.getLine(N.row),k=M.substring(N.column,N.column+1);if(k=="]"){var R=$.$findOpeningBracket("]",{column:N.column+1,row:N.row});if(R!==null&&g.isAutoInsertedClosing(N,M,S))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(x,C,_,$,S){var O=$.doc.getTextRange(S);if(!S.isMultiLine()&&O=="["){u(_);var D=$.doc.getLine(S.start.row),N=D.substring(S.start.column+1,S.start.column+2);if(N=="]")return S.end.column++,S}}),this.add("string_dquotes","insertion",function(x,C,_,$,S){var O=$.$mode.$quotes||i;if(S.length==1&&O[S]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(S)!=-1)return;u(_);var D=S,N=_.getSelectionRange(),M=$.doc.getTextRange(N);if(M!==""&&(M.length!=1||!O[M])&&_.getWrapBehavioursEnabled())return d(N,M,D,D);if(!M){var k=_.getCursorPosition(),R=$.doc.getLine(k.row),F=R.substring(k.column-1,k.column),H=R.substring(k.column,k.column+1),j=$.getTokenAt(k.row,k.column),P=$.getTokenAt(k.row,k.column+1);if(F=="\\"&&j&&/escape/.test(j.type))return null;var ee=j&&/string|escape/.test(j.type),J=!P||/string|escape/.test(P.type),K;if(H==D)K=ee!==J,K&&/string\.end/.test(P.type)&&(K=!1);else{if(ee&&!J||ee&&J)return null;var ae=$.$mode.tokenRe;ae.lastIndex=0;var Q=ae.test(F);ae.lastIndex=0;var he=ae.test(H),ge=$.$mode.$pairQuotesAfter,Se=ge&&ge[D]&&ge[D].test(F);if(!Se&&Q||he||H&&!/[\s;,.})\]\\]/.test(H))return null;var ce=R[k.column-2];if(F==D&&(ce==D||ae.test(ce)))return null;K=!0}return{text:K?D+D:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(x,C,_,$,S){var O=$.$mode.$quotes||i,D=$.doc.getTextRange(S);if(!S.isMultiLine()&&O.hasOwnProperty(D)){u(_);var N=$.doc.getLine(S.start.row),M=N.substring(S.start.column+1,S.start.column+2);if(M==D)return S.end.column++,S}}),v.closeDocComment!==!1&&this.add("doc comment end","insertion",function(x,C,_,$,S){if(x==="doc-start"&&(S===` -`||S===`\r -`)&&_.selection.isEmpty()){var O=_.getCursorPosition(),D=$.doc.getLine(O.row),N=$.doc.getLine(O.row+1),M=this.$getIndent(D);if(/\s*\*/.test(N))return/^\s*\*/.test(D)?{text:S+M+"* ",selection:[1,3+M.length,1,3+M.length]}:{text:S+M+" * ",selection:[1,3+M.length,1,3+M.length]};if(/\/\*\*/.test(D.substring(0,O.column)))return{text:S+M+" * "+S+" "+M+"*/",selection:[1,4+M.length,1,4+M.length]}}})};g.isSaneInsertion=function(v,x){var C=v.getCursorPosition(),_=new A(x,C.row,C.column);if(!this.$matchTokenType(_.getCurrentToken()||"text",m)){if(/[)}\]]/.test(v.session.getLine(C.row)[C.column]))return!0;var $=new A(x,C.row,C.column+1);if(!this.$matchTokenType($.getCurrentToken()||"text",m))return!1}return _.stepForward(),_.getCurrentTokenRow()!==C.row||this.$matchTokenType(_.getCurrentToken()||"text",h)},g.$matchTokenType=function(v,x){return x.indexOf(v.type||v)>-1},g.recordAutoInsert=function(v,x,C){var _=v.getCursorPosition(),$=x.doc.getLine(_.row);this.isAutoInsertedClosing(_,$,l.autoInsertedLineEnd[0])||(l.autoInsertedBrackets=0),l.autoInsertedRow=_.row,l.autoInsertedLineEnd=C+$.substr(_.column),l.autoInsertedBrackets++},g.recordMaybeInsert=function(v,x,C){var _=v.getCursorPosition(),$=x.doc.getLine(_.row);this.isMaybeInsertedClosing(_,$)||(l.maybeInsertedBrackets=0),l.maybeInsertedRow=_.row,l.maybeInsertedLineStart=$.substr(0,_.column)+C,l.maybeInsertedLineEnd=$.substr(_.column),l.maybeInsertedBrackets++},g.isAutoInsertedClosing=function(v,x,C){return l.autoInsertedBrackets>0&&v.row===l.autoInsertedRow&&C===l.autoInsertedLineEnd[0]&&x.substr(v.column)===l.autoInsertedLineEnd},g.isMaybeInsertedClosing=function(v,x){return l.maybeInsertedBrackets>0&&v.row===l.maybeInsertedRow&&x.substr(v.column)===l.maybeInsertedLineEnd&&x.substr(0,v.column)==l.maybeInsertedLineStart},g.popAutoInsertedClosing=function(){l.autoInsertedLineEnd=l.autoInsertedLineEnd.substr(1),l.autoInsertedBrackets--},g.clearMaybeInsertedClosing=function(){l&&(l.maybeInsertedBrackets=0,l.maybeInsertedRow=-1)},V.inherits(g,L),T.CstyleBehaviour=g}),ace.define("ace/unicode",["require","exports","module"],function(y,T,G){for(var V=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],L=0,A=[],s=0;s2?ce%S!=S-1:ce%S==0}}else{if(!this.blockComment)return!1;var D=this.blockComment.start,N=this.blockComment.end,M=new RegExp("^(\\s*)(?:"+h.escapeRegExp(D)+")"),k=new RegExp("(?:"+h.escapeRegExp(N)+")\\s*$"),R=function(K,ae){H(K,ae)||(!C||/\S/.test(K))&&(x.insertInLine({row:ae,column:K.length},N),x.insertInLine({row:ae,column:$},D))},F=function(K,ae){var Q;(Q=K.match(k))&&x.removeInLine(ae,K.length-Q[0].length,K.length),(Q=K.match(M))&&x.removeInLine(ae,Q[1].length,Q[0].length)},H=function(K,ae){if(M.test(K))return!0;for(var Q=d.getTokens(ae),he=0;heK.length&&(J=K.length)}),$==1/0&&($=J,C=!1,_=!1),O&&$%S!=0&&($=Math.floor($/S)*S),ee(_?F:R)},this.toggleBlockComment=function(u,d,g,v){var x=this.blockComment;if(x){!x.start&&x[0]&&(x=x[0]);var C=new l(d,v.row,v.column),_=C.getCurrentToken();d.selection;var $=d.selection.toOrientedRange(),S,O;if(_&&/comment/.test(_.type)){for(var D,N;_&&/comment/.test(_.type);){var M=_.value.indexOf(x.start);if(M!=-1){var k=C.getCurrentTokenRow(),R=C.getCurrentTokenColumn()+M;D=new c(k,R,k,R+x.start.length);break}_=C.stepBackward()}for(var C=new l(d,v.row,v.column),_=C.getCurrentToken();_&&/comment/.test(_.type);){var M=_.value.indexOf(x.end);if(M!=-1){var k=C.getCurrentTokenRow(),R=C.getCurrentTokenColumn()+M;N=new c(k,R,k,R+x.end.length);break}_=C.stepForward()}N&&d.remove(N),D&&(d.remove(D),S=D.start.row,O=-x.start.length)}else O=x.start.length,S=g.start.row,d.insert(g.end,x.end),d.insert(g.start,x.start);$.start.row==S&&($.start.column+=O),$.end.row==S&&($.end.column+=O),d.selection.fromOrientedRange($)}},this.getNextLineIndent=function(u,d,g){return this.$getIndent(d)},this.checkOutdent=function(u,d,g){return!1},this.autoOutdent=function(u,d,g){},this.$getIndent=function(u){return u.match(/^\s*/)[0]},this.createWorker=function(u){return null},this.createModeDelegates=function(u){this.$embeds=[],this.$modes={};for(var d in u)if(u[d]){var g=u[d],v=g.prototype.$id,x=V.$modes[v];x||(V.$modes[v]=x=new g),V.$modes[d]||(V.$modes[d]=x),this.$embeds.push(d),this.$modes[d]=x}for(var C=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],d=0;d"u"?this.setPosition(c.row,c.column):this.setPosition(c,i)}return h.prototype.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},h.prototype.getDocument=function(){return this.document},h.prototype.onChange=function(l){if(!(l.start.row==l.end.row&&l.start.row!=this.row)&&!(l.start.row>this.row)){var c=m(l,{row:this.row,column:this.column},this.$insertRight);this.setPosition(c.row,c.column,!0)}},h.prototype.setPosition=function(l,c,i){var u;if(i?u={row:l,column:c}:u=this.$clipPositionToDocument(l,c),!(this.row==u.row&&this.column==u.column)){var d={row:this.row,column:this.column};this.row=u.row,this.column=u.column,this._signal("change",{old:d,value:u})}},h.prototype.detach=function(){this.document.off("change",this.$onChange)},h.prototype.attach=function(l){this.document=l||this.document,this.document.on("change",this.$onChange)},h.prototype.$clipPositionToDocument=function(l,c){var i={};return l>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):l<0?(i.row=0,i.column=0):(i.row=l,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,c))),c<0&&(i.column=0),i},h}();A.prototype.$insertRight=!1,V.implement(A.prototype,L);function s(h,l,c){var i=c?h.column<=l.column:h.column=u&&(c=u-1,i=void 0);var d=this.getLine(c);return i==null&&(i=d.length),i=Math.min(Math.max(i,0),d.length),{row:c,column:i}},l.prototype.clonePos=function(c){return{row:c.row,column:c.column}},l.prototype.pos=function(c,i){return{row:c,column:i}},l.prototype.$clipPosition=function(c){var i=this.getLength();return c.row>=i?(c.row=Math.max(0,i-1),c.column=this.getLine(i-1).length):(c.row=Math.max(0,c.row),c.column=Math.min(Math.max(c.column,0),this.getLine(c.row).length)),c},l.prototype.insertFullLines=function(c,i){c=Math.min(Math.max(c,0),this.getLength());var u=0;c0,d=i=0&&this.applyDelta({start:this.pos(c,this.getLine(c).length),end:this.pos(c+1,0),action:"remove",lines:["",""]})},l.prototype.replace=function(c,i){if(c instanceof s||(c=s.fromPoints(c.start,c.end)),i.length===0&&c.isEmpty())return c.start;if(i==this.getTextRange(c))return c.end;this.remove(c);var u;return i?u=this.insert(c.start,i):u=c.start,u},l.prototype.applyDeltas=function(c){for(var i=0;i=0;i--)this.revertDelta(c[i])},l.prototype.applyDelta=function(c,i){var u=c.action=="insert";(u?c.lines.length<=1&&!c.lines[0]:!s.comparePoints(c.start,c.end))||(u&&c.lines.length>2e4?this.$splitAndapplyLargeDelta(c,2e4):(L(this.$lines,c,i),this._signal("change",c)))},l.prototype.$safeApplyDelta=function(c){var i=this.$lines.length;(c.action=="remove"&&c.start.row20){l.running=setTimeout(l.$worker,20);break}}l.currentLine=i,u==-1&&(u=i),g<=u&&l.fireUpdateEvent(g,u)}}}return s.prototype.setTokenizer=function(m){this.tokenizer=m,this.lines=[],this.states=[],this.start(0)},s.prototype.setDocument=function(m){this.doc=m,this.lines=[],this.states=[],this.stop()},s.prototype.fireUpdateEvent=function(m,h){var l={first:m,last:h};this._signal("update",{data:l})},s.prototype.start=function(m){this.currentLine=Math.min(m||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},s.prototype.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},s.prototype.$updateOnChange=function(m){var h=m.start.row,l=m.end.row-h;if(l===0)this.lines[h]=null;else if(m.action=="remove")this.lines.splice(h,l+1,null),this.states.splice(h,l+1,null);else{var c=Array(l+1);c.unshift(h,1),this.lines.splice.apply(this.lines,c),this.states.splice.apply(this.states,c)}this.currentLine=Math.min(h,this.currentLine,this.doc.getLength()),this.stop()},s.prototype.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},s.prototype.getTokens=function(m){return this.lines[m]||this.$tokenizeRow(m)},s.prototype.getState=function(m){return this.currentLine==m&&this.$tokenizeRow(m),this.states[m]||"start"},s.prototype.$tokenizeRow=function(m){var h=this.doc.getLine(m),l=this.states[m-1],c=this.tokenizer.getLineTokens(h,l,m);return this.states[m]+""!=c.state+""?(this.states[m]=c.state,this.lines[m+1]=null,this.currentLine>m+1&&(this.currentLine=m+1)):this.currentLine==m&&(this.currentLine=m+1),this.lines[m]=c.tokens},s.prototype.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()},s}();V.implement(A.prototype,L),T.BackgroundTokenizer=A}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/range"],function(y,T,G){var V=y("./lib/lang"),L=y("./range").Range,A=function(){function s(m,h,l){l===void 0&&(l="text"),this.setRegexp(m),this.clazz=h,this.type=l}return s.prototype.setRegexp=function(m){this.regExp+""!=m+""&&(this.regExp=m,this.cache=[])},s.prototype.update=function(m,h,l,c){if(this.regExp)for(var i=c.firstRow,u=c.lastRow,d={},g=i;g<=u;g++){var v=this.cache[g];v==null&&(v=V.getMatchOffsets(l.getLine(g),this.regExp),v.length>this.MAX_RANGES&&(v=v.slice(0,this.MAX_RANGES)),v=v.map(function($){return new L(g,$.offset,g,$.offset+$.length)}),this.cache[g]=v.length?v:"");for(var x=v.length;x--;){var C=v[x].toScreenRange(l),_=C.toString();d[_]||(d[_]=!0,h.drawSingleLineMarker(m,C,this.clazz,c))}}},s}();A.prototype.MAX_RANGES=500,T.SearchHighlight=A}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(y,T,G){var V=y("../range").Range,L=function(){function A(s,m){this.foldData=s,Array.isArray(m)?this.folds=m:m=this.folds=[m];var h=m[m.length-1];this.range=new V(m[0].start.row,m[0].start.column,h.end.row,h.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(l){l.setFoldLine(this)},this)}return A.prototype.shiftRow=function(s){this.start.row+=s,this.end.row+=s,this.folds.forEach(function(m){m.start.row+=s,m.end.row+=s})},A.prototype.addFold=function(s){if(s.sameRow){if(s.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(s),this.folds.sort(function(m,h){return-m.range.compareEnd(h.start.row,h.start.column)}),this.range.compareEnd(s.start.row,s.start.column)>0?(this.end.row=s.end.row,this.end.column=s.end.column):this.range.compareStart(s.end.row,s.end.column)<0&&(this.start.row=s.start.row,this.start.column=s.start.column)}else if(s.start.row==this.end.row)this.folds.push(s),this.end.row=s.end.row,this.end.column=s.end.column;else if(s.end.row==this.start.row)this.folds.unshift(s),this.start.row=s.start.row,this.start.column=s.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");s.foldLine=this},A.prototype.containsRow=function(s){return s>=this.start.row&&s<=this.end.row},A.prototype.walk=function(s,m,h){var l=0,c=this.folds,i,u,d,g=!0;m==null&&(m=this.end.row,h=this.end.column);for(var v=0;v0)){var g=L(m,u.start);return d===0?h&&g!==0?-i-2:i:g>0||g===0&&!h?i:-i-1}}return-i-1},s.prototype.add=function(m){var h=!m.isEmpty(),l=this.pointIndex(m.start,h);l<0&&(l=-l-1);var c=this.pointIndex(m.end,h,l);return c<0?c=-c-1:c++,this.ranges.splice(l,c-l,m)},s.prototype.addList=function(m){for(var h=[],l=m.length;l--;)h.push.apply(h,this.add(m[l]));return h},s.prototype.substractPoint=function(m){var h=this.pointIndex(m);if(h>=0)return this.ranges.splice(h,1)},s.prototype.merge=function(){var m=[],h=this.ranges;h=h.sort(function(d,g){return L(d.start,g.start)});for(var l=h[0],c,i=1;i=0},s.prototype.containsPoint=function(m){return this.pointIndex(m)>=0},s.prototype.rangeAtPoint=function(m){var h=this.pointIndex(m);if(h>=0)return this.ranges[h]},s.prototype.clipRows=function(m,h){var l=this.ranges;if(l[0].start.row>h||l[l.length-1].start.row=c)break}if(m.action=="insert")for(var x=i-c,C=-h.column+l.column;dc)break;if(v.start.row==c&&v.start.column>=h.column&&(v.start.column==h.column&&this.$bias<=0||(v.start.column+=C,v.start.row+=x)),v.end.row==c&&v.end.column>=h.column){if(v.end.column==h.column&&this.$bias<0)continue;v.end.column==h.column&&C>0&&dv.start.column&&v.end.column==u[d+1].start.column&&(v.end.column-=C),v.end.column+=C,v.end.row+=x}}else for(var x=c-i,C=h.column-l.column;di)break;v.end.rowh.column)&&(v.end.column=h.column,v.end.row=h.row):(v.end.column+=C,v.end.row+=x):v.end.row>i&&(v.end.row+=x),v.start.rowh.column)&&(v.start.column=h.column,v.start.row=h.row):(v.start.column+=C,v.start.row+=x):v.start.row>i&&(v.start.row+=x)}if(x!=0&&d=l)return d;if(d.end.row>l)return null}return null},this.getNextFoldLine=function(l,c){var i=this.$foldData,u=0;for(c&&(u=i.indexOf(c)),u==-1&&(u=0),u;u=l)return d}return null},this.getFoldedRowCount=function(l,c){for(var i=this.$foldData,u=c-l+1,d=0;d=c){x=l?u-=c-x:u=0);break}else v>=l&&(x>=l?u-=v-x:u-=v-l+1)}return u},this.$addFoldLine=function(l){return this.$foldData.push(l),this.$foldData.sort(function(c,i){return c.start.row-i.start.row}),l},this.addFold=function(l,c){var i=this.$foldData,u=!1,d;l instanceof A?d=l:(d=new A(c,l),d.collapseChildren=c.collapseChildren),this.$clipRangeToDocument(d.range);var g=d.start.row,v=d.start.column,x=d.end.row,C=d.end.column,_=this.getFoldAt(g,v,1),$=this.getFoldAt(x,C,-1);if(_&&$==_)return _.addSubFold(d);_&&!_.range.isStart(g,v)&&this.removeFold(_),$&&!$.range.isEnd(x,C)&&this.removeFold($);var S=this.getFoldsInRange(d.range);S.length>0&&(this.removeFolds(S),d.collapseChildren||S.forEach(function(M){d.addSubFold(M)}));for(var O=0;O0&&this.foldAll(l.start.row+1,l.end.row,l.collapseChildren-1),l.subFolds=[]},this.expandFolds=function(l){l.forEach(function(c){this.expandFold(c)},this)},this.unfold=function(l,c){var i,u;if(l==null)i=new V(0,0,this.getLength(),0),c==null&&(c=!0);else if(typeof l=="number")i=new V(l,0,l,this.getLine(l).length);else if("row"in l)i=V.fromPoints(l,l);else{if(Array.isArray(l))return u=[],l.forEach(function(g){u=u.concat(this.unfold(g))},this),u;i=l}u=this.getFoldsInRangeList(i);for(var d=u;u.length==1&&V.comparePoints(u[0].start,i.start)<0&&V.comparePoints(u[0].end,i.end)>0;)this.expandFolds(u),u=this.getFoldsInRangeList(i);if(c!=!1?this.removeFolds(u):this.expandFolds(u),d.length)return d},this.isRowFolded=function(l,c){return!!this.getFoldLine(l,c)},this.getRowFoldEnd=function(l,c){var i=this.getFoldLine(l,c);return i?i.end.row:l},this.getRowFoldStart=function(l,c){var i=this.getFoldLine(l,c);return i?i.start.row:l},this.getFoldDisplayLine=function(l,c,i,u,d){u==null&&(u=l.start.row),d==null&&(d=0),c==null&&(c=l.end.row),i==null&&(i=this.getLine(c).length);var g=this.doc,v="";return l.walk(function(x,C,_,$){if(!(CC)break;while(d&&v.test(d.type)&&!/^comment.start/.test(d.type));d=u.stepBackward()}else d=u.getCurrentToken();return x.end.row=u.getCurrentTokenRow(),x.end.column=u.getCurrentTokenColumn(),/^comment.end/.test(d.type)||(x.end.column+=d.value.length-2),x}},this.foldAll=function(l,c,i,u){i==null&&(i=1e5);var d=this.foldWidgets;if(d){c=c||this.getLength(),l=l||0;for(var g=l;g=l&&(g=v.end.row,v.collapseChildren=i,this.addFold("...",v))}}},this.foldToLevel=function(l){for(this.foldAll();l-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var l=this;this.foldAll(null,null,null,function(c){for(var i=l.getTokens(c),u=0;u=0;){var g=i[u];if(g==null&&(g=i[u]=this.getFoldWidget(u)),g=="start"){var v=this.getFoldWidgetRange(u);if(d||(d=v),v&&v.end.row>=l)break}u--}return{range:u!==-1&&v,firstRange:d}},this.onFoldWidgetClick=function(l,c){c instanceof m&&(c=c.domEvent);var i={children:c.shiftKey,all:c.ctrlKey||c.metaKey,siblings:c.altKey},u=this.$toggleFoldWidget(l,i);if(!u){var d=c.target||c.srcElement;d&&/ace_fold-widget/.test(d.className)&&(d.className+=" ace_invalid")}},this.$toggleFoldWidget=function(l,c){if(this.getFoldWidget){var i=this.getFoldWidget(l),u=this.getLine(l),d=i==="end"?-1:1,g=this.getFoldAt(l,d===-1?0:u.length,d);if(g)return c.children||c.all?this.removeFold(g):this.expandFold(g),g;var v=this.getFoldWidgetRange(l,!0);if(v&&!v.isMultiLine()&&(g=this.getFoldAt(v.start.row,v.start.column,1),g&&v.isEqual(g.range)))return this.removeFold(g),g;if(c.siblings){var x=this.getParentFoldRangeData(l);if(x.range)var C=x.range.start.row+1,_=x.range.end.row;this.foldAll(C,_,c.all?1e4:0)}else c.children?(_=v?v.end.row:this.getLength(),this.foldAll(l+1,_,c.all?1e4:0)):v&&(c.all&&(v.collapseChildren=1e4),this.addFold("...",v));return v}},this.toggleFoldWidget=function(l){var c=this.selection.getCursor().row;c=this.getRowFoldStart(c);var i=this.$toggleFoldWidget(c,{});if(!i){var u=this.getParentFoldRangeData(c,!0);if(i=u.range||u.firstRange,i){c=i.start.row;var d=this.getFoldAt(c,this.getLine(c).length,1);d?this.removeFold(d):this.addFold("...",i)}}},this.updateFoldWidgets=function(l){var c=l.start.row,i=l.end.row-c;if(i===0)this.foldWidgets[c]=null;else if(l.action=="remove")this.foldWidgets.splice(c,i+1,null);else{var u=Array(i+1);u.unshift(c,1),this.foldWidgets.splice.apply(this.foldWidgets,u)}},this.tokenizerUpdateFoldWidgets=function(l){var c=l.data;c.first!=c.last&&this.foldWidgets.length>c.first&&this.foldWidgets.splice(c.first,this.foldWidgets.length)}}T.Folding=h}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(y,T,G){var V=y("../token_iterator").TokenIterator,L=y("../range").Range;function A(){this.findMatchingBracket=function(s,m){if(s.column==0)return null;var h=m||this.getLine(s.row).charAt(s.column-1);if(h=="")return null;var l=h.match(/([\(\[\{])|([\)\]\}])/);return l?l[1]?this.$findClosingBracket(l[1],s):this.$findOpeningBracket(l[2],s):null},this.getBracketRange=function(s){var m=this.getLine(s.row),h=!0,l,c=m.charAt(s.column-1),i=c&&c.match(/([\(\[\{])|([\)\]\}])/);if(i||(c=m.charAt(s.column),s={row:s.row,column:s.column+1},i=c&&c.match(/([\(\[\{])|([\)\]\}])/),h=!1),!i)return null;if(i[1]){var u=this.$findClosingBracket(i[1],s);if(!u)return null;l=L.fromPoints(s,u),h||(l.end.column++,l.start.column--),l.cursor=l.end}else{var u=this.$findOpeningBracket(i[2],s);if(!u)return null;l=L.fromPoints(u,s),h||(l.start.column++,l.end.column--),l.cursor=l.start}return l},this.getMatchingBracketRanges=function(s,m){var h=this.getLine(s.row),l=/([\(\[\{])|([\)\]\}])/,c=!m&&h.charAt(s.column-1),i=c&&c.match(l);if(i||(c=(m===void 0||m)&&h.charAt(s.column),s={row:s.row,column:s.column+1},i=c&&c.match(l)),!i)return null;var u=new L(s.row,s.column-1,s.row,s.column),d=i[1]?this.$findClosingBracket(i[1],s):this.$findOpeningBracket(i[2],s);if(!d)return[u];var g=new L(d.row,d.column,d.row,d.column+1);return[u,g]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(s,m,h){var l=this.$brackets[s],c=1,i=new V(this,m.row,m.column),u=i.getCurrentToken();if(u||(u=i.stepForward()),!!u){h||(h=new RegExp("(\\.?"+u.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)").replace(/-close\b/,"-(close|open)")+")+"));for(var d=m.column-i.getCurrentTokenColumn()-2,g=u.value;;){for(;d>=0;){var v=g.charAt(d);if(v==l){if(c-=1,c==0)return{row:i.getCurrentTokenRow(),column:d+i.getCurrentTokenColumn()}}else v==s&&(c+=1);d-=1}do u=i.stepBackward();while(u&&!h.test(u.type));if(u==null)break;g=u.value,d=g.length-1}return null}},this.$findClosingBracket=function(s,m,h){var l=this.$brackets[s],c=1,i=new V(this,m.row,m.column),u=i.getCurrentToken();if(u||(u=i.stepForward()),!!u){h||(h=new RegExp("(\\.?"+u.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)").replace(/-open\b/,"-(close|open)")+")+"));for(var d=m.column-i.getCurrentTokenColumn();;){for(var g=u.value,v=g.length;d"?l=!0:m.type.indexOf("tag-name")!==-1&&(h=!0));while(m&&!h);return m},this.$findClosingTag=function(s,m){var h,l=m.value,c=m.value,i=0,u=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);m=s.stepForward();var d=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+m.value.length),g=!1;do if(h=m,m=s.stepForward(),m){if(m.value===">"&&!g){var v=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);g=!0}if(m.type.indexOf("tag-name")!==-1){if(l=m.value,c===l){if(h.value==="<")i++;else if(h.value==="")var _=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);else return}}}else if(c===l&&m.value==="/>"&&(i--,i<0))var x=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+2),C=x,_=C,v=new L(d.end.row,d.end.column,d.end.row,d.end.column+1)}while(m&&i>=0);if(u&&v&&x&&_&&d&&C)return{openTag:new L(u.start.row,u.start.column,v.end.row,v.end.column),closeTag:new L(x.start.row,x.start.column,_.end.row,_.end.column),openTagName:d,closeTagName:C}},this.$findOpeningTag=function(s,m){var h=s.getCurrentToken(),l=m.value,c=0,i=s.getCurrentTokenRow(),u=s.getCurrentTokenColumn(),d=u+2,g=new L(i,u,i,d);s.stepForward();var v=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+m.value.length);if(m=s.stepForward(),!(!m||m.value!==">")){var x=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);s.stepBackward(),s.stepBackward();do if(m=h,i=s.getCurrentTokenRow(),u=s.getCurrentTokenColumn(),d=u+m.value.length,h=s.stepBackward(),m){if(m.type.indexOf("tag-name")!==-1){if(l===m.value)if(h.value==="<"){if(c++,c>0){var C=new L(i,u,i,d),_=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1);do m=s.stepForward();while(m&&m.value!==">");var $=new L(s.getCurrentTokenRow(),s.getCurrentTokenColumn(),s.getCurrentTokenRow(),s.getCurrentTokenColumn()+1)}}else h.value===""){for(var S=0,O=h;O;){if(O.type.indexOf("tag-name")!==-1&&O.value===l){c--;break}else if(O.value==="<")break;O=s.stepBackward(),S++}for(var D=0;DF&&(this.$docRowCache.splice(F,R),this.$screenRowCache.splice(F,R))},M.prototype.$getRowCacheIndex=function(k,R){for(var F=0,H=k.length-1;F<=H;){var j=F+H>>1,P=k[j];if(R>P)F=j+1;else if(R=R));P++);return H=F[P],H?(H.index=P,H.start=j-H.value.length,H):null},M.prototype.setUndoManager=function(k){if(this.$undoManager=k,this.$informUndoManager&&this.$informUndoManager.cancel(),k){var R=this;k.addSession(this),this.$syncInformUndoManager=function(){R.$informUndoManager.cancel(),R.mergeUndoDeltas=!1},this.$informUndoManager=L.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},M.prototype.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},M.prototype.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},M.prototype.getTabString=function(){return this.getUseSoftTabs()?L.stringRepeat(" ",this.getTabSize()):" "},M.prototype.setUseSoftTabs=function(k){this.setOption("useSoftTabs",k)},M.prototype.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},M.prototype.setTabSize=function(k){this.setOption("tabSize",k)},M.prototype.getTabSize=function(){return this.$tabSize},M.prototype.isTabStop=function(k){return this.$useSoftTabs&&k.column%this.$tabSize===0},M.prototype.setNavigateWithinSoftTabs=function(k){this.setOption("navigateWithinSoftTabs",k)},M.prototype.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},M.prototype.setOverwrite=function(k){this.setOption("overwrite",k)},M.prototype.getOverwrite=function(){return this.$overwrite},M.prototype.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},M.prototype.addGutterDecoration=function(k,R){this.$decorations[k]||(this.$decorations[k]=""),this.$decorations[k]+=" "+R,this._signal("changeBreakpoint",{})},M.prototype.removeGutterDecoration=function(k,R){this.$decorations[k]=(this.$decorations[k]||"").replace(" "+R,""),this._signal("changeBreakpoint",{})},M.prototype.getBreakpoints=function(){return this.$breakpoints},M.prototype.setBreakpoints=function(k){this.$breakpoints=[];for(var R=0;R0&&(H=!!F.charAt(R-1).match(this.tokenRe)),H||(H=!!F.charAt(R).match(this.tokenRe)),H)var j=this.tokenRe;else if(/^\s+$/.test(F.slice(R-1,R+1)))var j=/\s/;else var j=this.nonTokenRe;var P=R;if(P>0){do P--;while(P>=0&&F.charAt(P).match(j));P++}for(var ee=R;eek&&(k=R.screenWidth)}),this.lineWidgetWidth=k},M.prototype.$computeWidth=function(k){if(this.$modified||k){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var R=this.doc.getAllLines(),F=this.$rowLengthCache,H=0,j=0,P=this.$foldData[j],ee=P?P.start.row:1/0,J=R.length,K=0;Kee){if(K=P.end.row+1,K>=J)break;P=this.$foldData[j++],ee=P?P.start.row:1/0}F[K]==null&&(F[K]=this.$getStringScreenWidth(R[K])[0]),F[K]>H&&(H=F[K])}this.screenWidth=H}},M.prototype.getLine=function(k){return this.doc.getLine(k)},M.prototype.getLines=function(k,R){return this.doc.getLines(k,R)},M.prototype.getLength=function(){return this.doc.getLength()},M.prototype.getTextRange=function(k){return this.doc.getTextRange(k||this.selection.getRange())},M.prototype.insert=function(k,R){return this.doc.insert(k,R)},M.prototype.remove=function(k){return this.doc.remove(k)},M.prototype.removeFullLines=function(k,R){return this.doc.removeFullLines(k,R)},M.prototype.undoChanges=function(k,R){if(k.length){this.$fromUndo=!0;for(var F=k.length-1;F!=-1;F--){var H=k[F];H.action=="insert"||H.action=="remove"?this.doc.revertDelta(H):H.folds&&this.addFolds(H.folds)}!R&&this.$undoSelect&&(k.selectionBefore?this.selection.fromJSON(k.selectionBefore):this.selection.setRange(this.$getUndoSelection(k,!0))),this.$fromUndo=!1}},M.prototype.redoChanges=function(k,R){if(k.length){this.$fromUndo=!0;for(var F=0;Fk.end.column&&(P.start.column+=J),P.end.row==k.end.row&&P.end.column>k.end.column&&(P.end.column+=J)),ee&&P.start.row>=k.end.row&&(P.start.row+=ee,P.end.row+=ee)}if(P.end=this.insert(P.start,H),j.length){var K=k.start,ae=P.start,ee=ae.row-K.row,J=ae.column-K.column;this.addFolds(j.map(function(ge){return ge=ge.clone(),ge.start.row==K.row&&(ge.start.column+=J),ge.end.row==K.row&&(ge.end.column+=J),ge.start.row+=ee,ge.end.row+=ee,ge}))}return P},M.prototype.indentRows=function(k,R,F){F=F.replace(/\t/g,this.getTabString());for(var H=k;H<=R;H++)this.doc.insertInLine({row:H,column:0},F)},M.prototype.outdentRows=function(k){for(var R=k.collapseRows(),F=new c(0,0,0,0),H=this.getTabSize(),j=R.start.row;j<=R.end.row;++j){var P=this.getLine(j);F.start.row=j,F.end.row=j;for(var ee=0;ee0){var H=this.getRowFoldEnd(R+F);if(H>this.doc.getLength()-1)return 0;var j=H-R}else{k=this.$clipRowToDocument(k),R=this.$clipRowToDocument(R);var j=R-k+1}var P=new c(k,0,R,Number.MAX_VALUE),ee=this.getFoldsInRange(P).map(function(K){return K=K.clone(),K.start.row+=j,K.end.row+=j,K}),J=F==0?this.doc.getLines(k,R):this.doc.removeFullLines(k,R);return this.doc.insertFullLines(k+j,J),ee.length&&this.addFolds(ee),j},M.prototype.moveLinesUp=function(k,R){return this.$moveLines(k,R,-1)},M.prototype.moveLinesDown=function(k,R){return this.$moveLines(k,R,1)},M.prototype.duplicateLines=function(k,R){return this.$moveLines(k,R,0)},M.prototype.$clipRowToDocument=function(k){return Math.max(0,Math.min(k,this.doc.getLength()-1))},M.prototype.$clipColumnToRow=function(k,R){return R<0?0:Math.min(this.doc.getLine(k).length,R)},M.prototype.$clipPositionToDocument=function(k,R){if(R=Math.max(0,R),k<0)k=0,R=0;else{var F=this.doc.getLength();k>=F?(k=F-1,R=this.doc.getLine(F-1).length):R=Math.min(this.doc.getLine(k).length,R)}return{row:k,column:R}},M.prototype.$clipRangeToDocument=function(k){k.start.row<0?(k.start.row=0,k.start.column=0):k.start.column=this.$clipColumnToRow(k.start.row,k.start.column);var R=this.doc.getLength()-1;return k.end.row>R?(k.end.row=R,k.end.column=this.doc.getLine(R).length):k.end.column=this.$clipColumnToRow(k.end.row,k.end.column),k},M.prototype.setUseWrapMode=function(k){if(k!=this.$useWrapMode){if(this.$useWrapMode=k,this.$modified=!0,this.$resetRowCache(0),k){var R=this.getLength();this.$wrapData=Array(R),this.$updateWrapData(0,R-1)}this._signal("changeWrapMode")}},M.prototype.getUseWrapMode=function(){return this.$useWrapMode},M.prototype.setWrapLimitRange=function(k,R){(this.$wrapLimitRange.min!==k||this.$wrapLimitRange.max!==R)&&(this.$wrapLimitRange={min:k,max:R},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},M.prototype.adjustWrapLimit=function(k,R){var F=this.$wrapLimitRange;F.max<0&&(F={min:R,max:R});var H=this.$constrainWrapLimit(k,F.min,F.max);return H!=this.$wrapLimit&&H>1?(this.$wrapLimit=H,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},M.prototype.$constrainWrapLimit=function(k,R,F){return R&&(k=Math.max(R,k)),F&&(k=Math.min(F,k)),k},M.prototype.getWrapLimit=function(){return this.$wrapLimit},M.prototype.setWrapLimit=function(k){this.setWrapLimitRange(k,k)},M.prototype.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},M.prototype.$updateInternalDataOnChange=function(k){var R=this.$useWrapMode,F=k.action,H=k.start,j=k.end,P=H.row,ee=j.row,J=ee-P,K=null;if(this.$updating=!0,J!=0)if(F==="remove"){this[R?"$wrapData":"$rowLengthCache"].splice(P,J);var ae=this.$foldData;K=this.getFoldsInRange(k),this.removeFolds(K);var Q=this.getFoldLine(j.row),he=0;if(Q){Q.addRemoveChars(j.row,j.column,H.column-j.column),Q.shiftRow(-J);var ge=this.getFoldLine(P);ge&&ge!==Q&&(ge.merge(Q),Q=ge),he=ae.indexOf(Q)+1}for(he;he=j.row&&Q.shiftRow(-J)}ee=P}else{var Se=Array(J);Se.unshift(P,0);var ce=R?this.$wrapData:this.$rowLengthCache;ce.splice.apply(ce,Se);var ae=this.$foldData,Q=this.getFoldLine(P),he=0;if(Q){var ne=Q.range.compareInside(H.row,H.column);ne==0?(Q=Q.split(H.row,H.column),Q&&(Q.shiftRow(J),Q.addRemoveChars(ee,0,j.column-H.column))):ne==-1&&(Q.addRemoveChars(P,0,j.column-H.column),Q.shiftRow(J)),he=ae.indexOf(Q)+1}for(he;he=P&&Q.shiftRow(J)}}else{J=Math.abs(k.start.column-k.end.column),F==="remove"&&(K=this.getFoldsInRange(k),this.removeFolds(K),J=-J);var Q=this.getFoldLine(P);Q&&Q.addRemoveChars(P,H.column,J)}return R&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,R?this.$updateWrapData(P,ee):this.$updateRowLengthCache(P,ee),K},M.prototype.$updateRowLengthCache=function(k,R,F){this.$rowLengthCache[k]=null,this.$rowLengthCache[R]=null},M.prototype.$updateWrapData=function(k,R){var F=this.doc.getAllLines(),H=this.getTabSize(),j=this.$wrapData,P=this.$wrapLimit,ee,J,K=k;for(R=Math.min(R,F.length-1);K<=R;)J=this.getFoldLine(K,J),J?(ee=[],J.walk((function(ae,Q,he,ge){var Se;if(ae!=null){Se=this.$getDisplayTokens(ae,ee.length),Se[0]=C;for(var ce=1;ceR-ge;){var Se=P+R-ge;if(k[Se-1]>=S&&k[Se]>=S){he(Se);continue}if(k[Se]==C||k[Se]==_){for(Se;Se!=P-1&&k[Se]!=C;Se--);if(Se>P){he(Se);continue}for(Se=P+R,Se;Se>2)),P-1);Se>ce&&k[Se]ce&&k[Se]ce&&k[Se]==$;)Se--}else for(;Se>ce&&k[Se]ce){he(++Se);continue}Se=P+R,k[Se]==x&&Se--,he(Se-ge)}return H},M.prototype.$getDisplayTokens=function(k,R){var F=[],H;R=R||0;for(var j=0;j39&&P<48||P>57&&P<64?F.push($):P>=4352&&N(P)?F.push(v,x):F.push(v)}return F},M.prototype.$getStringScreenWidth=function(k,R,F){if(R==0)return[0,0];R==null&&(R=1/0),F=F||0;var H,j;for(j=0;j=4352&&N(H)?F+=2:F+=1,!(F>R));j++);return[F,j]},M.prototype.getRowLength=function(k){var R=1;return this.lineWidgets&&(R+=this.lineWidgets[k]&&this.lineWidgets[k].rowCount||0),!this.$useWrapMode||!this.$wrapData[k]?R:this.$wrapData[k].length+R},M.prototype.getRowLineCount=function(k){return!this.$useWrapMode||!this.$wrapData[k]?1:this.$wrapData[k].length+1},M.prototype.getRowWrapIndent=function(k){if(this.$useWrapMode){var R=this.screenToDocumentPosition(k,Number.MAX_VALUE),F=this.$wrapData[R.row];return F.length&&F[0]=0)var J=ae[Q],j=this.$docRowCache[Q],ge=k>ae[he-1];else var ge=!he;for(var Se=this.getLength()-1,ce=this.getNextFoldLine(j),ne=ce?ce.start.row:1/0;J<=k&&(K=this.getRowLength(j),!(J+K>k||j>=Se));)J+=K,j++,j>ne&&(j=ce.end.row+1,ce=this.getNextFoldLine(j,ce),ne=ce?ce.start.row:1/0),ge&&(this.$docRowCache.push(j),this.$screenRowCache.push(J));if(ce&&ce.start.row<=j)H=this.getFoldDisplayLine(ce),j=ce.start.row;else{if(J+K<=k||j>Se)return{row:Se,column:this.getLine(Se).length};H=this.getLine(j),ce=null}var fe=0,X=Math.floor(k-J);if(this.$useWrapMode){var ye=this.$wrapData[j];ye&&(ee=ye[X],X>0&&ye.length&&(fe=ye.indent,P=ye[X-1]||ye[ye.length-1],H=H.substring(P)))}return F!==void 0&&this.$bidiHandler.isBidiRow(J+X,j,X)&&(R=this.$bidiHandler.offsetToCol(F)),P+=this.$getStringScreenWidth(H,R-fe)[1],this.$useWrapMode&&P>=ee&&(P=ee-1),ce?ce.idxToPosition(P):{row:j,column:P}},M.prototype.documentToScreenPosition=function(k,R){if(typeof R>"u")var F=this.$clipPositionToDocument(k.row,k.column);else F=this.$clipPositionToDocument(k,R);k=F.row,R=F.column;var H=0,j=null,P=null;P=this.getFoldAt(k,R,1),P&&(k=P.start.row,R=P.start.column);var ee,J=0,K=this.$docRowCache,ae=this.$getRowCacheIndex(K,k),Q=K.length;if(Q&&ae>=0)var J=K[ae],H=this.$screenRowCache[ae],he=k>K[Q-1];else var he=!Q;for(var ge=this.getNextFoldLine(J),Se=ge?ge.start.row:1/0;J=Se){if(ee=ge.end.row+1,ee>k)break;ge=this.getNextFoldLine(ee,ge),Se=ge?ge.start.row:1/0}else ee=J+1;H+=this.getRowLength(J),J=ee,he&&(this.$docRowCache.push(J),this.$screenRowCache.push(H))}var ce="";ge&&J>=Se?(ce=this.getFoldDisplayLine(ge,k,R),j=ge.start.row):(ce=this.getLine(k).substring(0,R),j=k);var ne=0;if(this.$useWrapMode){var fe=this.$wrapData[j];if(fe){for(var X=0;ce.length>=fe[X];)H++,X++;ce=ce.substring(fe[X-1]||0,ce.length),ne=X>0?fe.indent:0}}return this.lineWidgets&&this.lineWidgets[J]&&this.lineWidgets[J].rowsAbove&&(H+=this.lineWidgets[J].rowsAbove),{row:H,column:ne+this.$getStringScreenWidth(ce)[0]}},M.prototype.documentToScreenColumn=function(k,R){return this.documentToScreenPosition(k,R).column},M.prototype.documentToScreenRow=function(k,R){return this.documentToScreenPosition(k,R).row},M.prototype.getScreenLength=function(){var k=0,R=null;if(this.$useWrapMode)for(var j=this.$wrapData.length,P=0,H=0,R=this.$foldData[H++],ee=R?R.start.row:1/0;Pee&&(P=R.end.row+1,R=this.$foldData[H++],ee=R?R.start.row:1/0)}else{k=this.getLength();for(var F=this.$foldData,H=0;HF));P++);return[H,P]})},M.prototype.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},M}();g.$uid=0,g.prototype.$modes=s.$modes,g.prototype.getValue=g.prototype.toString,g.prototype.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},g.prototype.$overwrite=!1,g.prototype.$mode=null,g.prototype.$modeId=null,g.prototype.$scrollTop=0,g.prototype.$scrollLeft=0,g.prototype.$wrapLimit=80,g.prototype.$useWrapMode=!1,g.prototype.$wrapLimitRange={min:null,max:null},g.prototype.lineWidgets=null,g.prototype.isFullWidth=N,V.implement(g.prototype,m);var v=1,x=2,C=3,_=4,$=9,S=10,O=11,D=12;function N(M){return M<4352?!1:M>=4352&&M<=4447||M>=4515&&M<=4519||M>=4602&&M<=4607||M>=9001&&M<=9002||M>=11904&&M<=11929||M>=11931&&M<=12019||M>=12032&&M<=12245||M>=12272&&M<=12283||M>=12288&&M<=12350||M>=12353&&M<=12438||M>=12441&&M<=12543||M>=12549&&M<=12589||M>=12593&&M<=12686||M>=12688&&M<=12730||M>=12736&&M<=12771||M>=12784&&M<=12830||M>=12832&&M<=12871||M>=12880&&M<=13054||M>=13056&&M<=19903||M>=19968&&M<=42124||M>=42128&&M<=42182||M>=43360&&M<=43388||M>=44032&&M<=55203||M>=55216&&M<=55238||M>=55243&&M<=55291||M>=63744&&M<=64255||M>=65040&&M<=65049||M>=65072&&M<=65106||M>=65108&&M<=65126||M>=65128&&M<=65131||M>=65281&&M<=65376||M>=65504&&M<=65510}y("./edit_session/folding").Folding.call(g.prototype),y("./edit_session/bracket_match").BracketMatch.call(g.prototype),s.defineOptions(g.prototype,"session",{wrap:{set:function(M){if(!M||M=="off"?M=!1:M=="free"?M=!0:M=="printMargin"?M=-1:typeof M=="string"&&(M=parseInt(M,10)||!1),this.$wrap!=M)if(this.$wrap=M,!M)this.setUseWrapMode(!1);else{var k=typeof M=="number"?M:null;this.setWrapLimitRange(k,k),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(M){M=M=="auto"?this.$mode.type!="text":M!="text",M!=this.$wrapAsCode&&(this.$wrapAsCode=M,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(M){this.$useWorker=M,this.$stopWorker(),M&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(M){M=parseInt(M),M>0&&this.$tabSize!==M&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=M,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(M){this.setFoldStyle(M)},handlesSet:!0},overwrite:{set:function(M){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(M){this.doc.setNewLineMode(M)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(M){this.setMode(M)},get:function(){return this.$modeId},handlesSet:!0}}),T.EditSession=g}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(y,T,G){var V=y("./lib/lang"),L=y("./lib/oop"),A=y("./range").Range,s=function(){function h(){this.$options={}}return h.prototype.set=function(l){return L.mixin(this.$options,l),this},h.prototype.getOptions=function(){return V.copyObject(this.$options)},h.prototype.setOptions=function(l){this.$options=l},h.prototype.find=function(l){var c=this.$options,i=this.$matchIterator(l,c);if(!i)return!1;var u=null;return i.forEach(function(d,g,v,x){return u=new A(d,g,v,x),g==x&&c.start&&c.start.start&&c.skipCurrent!=!1&&u.isEqual(c.start)?(u=null,!1):!0}),u},h.prototype.findAll=function(l){var c=this.$options;if(!c.needle)return[];this.$assembleRegExp(c);var i=c.range,u=i?l.getLines(i.start.row,i.end.row):l.doc.getAllLines(),d=[],g=c.re;if(c.$isMultiLine){var v=g.length,x=u.length-v,C;e:for(var _=g.offset||0;_<=x;_++){for(var $=0;$D||(d.push(C=new A(_,D,_+v-1,N)),v>2&&(_=_+v-2))}}else for(var M=0;MH&&d[$].end.row==j;)$--;for(d=d.slice(M,$+1),M=0,$=d.length;M<$;M++)d[M].start.row+=i.start.row,d[M].end.row+=i.start.row}return d},h.prototype.replace=function(l,c){var i=this.$options,u=this.$assembleRegExp(i);if(i.$isMultiLine)return c;if(u){var d=u.exec(l);if(!d||d[0].length!=l.length)return null;if(c=l.replace(u,c),i.preserveCase){c=c.split("");for(var g=Math.min(l.length,l.length);g--;){var v=l[g];v&&v.toLowerCase()!=v?c[g]=c[g].toUpperCase():c[g]=c[g].toLowerCase()}c=c.join("")}return c}},h.prototype.$assembleRegExp=function(l,c){if(l.needle instanceof RegExp)return l.re=l.needle;var i=l.needle;if(!l.needle)return l.re=!1;l.$supportsUnicodeFlag===void 0&&(l.$supportsUnicodeFlag=V.supportsUnicodeFlag());try{new RegExp(i,"u")}catch{l.$supportsUnicodeFlag=!1}l.regExp||(i=V.escapeRegExp(i)),l.wholeWord&&(i=m(i,l));var u=l.caseSensitive?"gm":"gmi";if(l.$supportsUnicodeFlag&&(u+="u"),l.$isMultiLine=!c&&/[\n\r]/.test(i),l.$isMultiLine)return l.re=this.$assembleMultilineRegExp(i,u);try{var d=new RegExp(i,u)}catch{d=!1}return l.re=d},h.prototype.$assembleMultilineRegExp=function(l,c){for(var i=l.replace(/\r\n|\r|\n/g,`$ -^`).split(` -`),u=[],d=0;d=x;D--)if(S(D,Number.MAX_VALUE,O))return;if(c.wrap!=!1){for(D=C,x=v.row;D>=x;D--)if(S(D,Number.MAX_VALUE,O))return}}};else var _=function(D){var N=v.row;if(!S(N,v.column,D)){for(N=N+1;N<=C;N++)if(S(N,0,D))return;if(c.wrap!=!1){for(N=x,C=v.row;N<=C;N++)if(S(N,0,D))return}}};if(c.$isMultiLine)var $=i.length,S=function(O,D,N){var M=u?O-$+1:O;if(!(M<0||M+$>l.getLength())){var k=l.getLine(M),R=k.search(i[0]);if(!(!u&&RD)&&N(M,R,M+$-1,H))return!0}}};else if(u)var S=function(D,N,M){var k=l.getLine(D),R=[],F,H=0;for(i.lastIndex=0;F=i.exec(k);){var j=F[0].length;if(H=F.index,!j){if(H>=k.length)break;i.lastIndex=H+=1}if(F.index+j>N)break;R.push(F.index,j)}for(var P=R.length-1;P>=0;P-=2){var ee=R[P-1],j=R[P];if(M(D,ee,D,ee+j))return!0}};else var S=function(D,N,M){var k=l.getLine(D),R,F;for(i.lastIndex=N;F=i.exec(k);){var H=F[0].length;if(R=F.index,M(D,R,D,R+H))return!0;if(!H&&(i.lastIndex=R+=1,R>=k.length))return!1}};return{forEach:_}},h}();function m(h,l){var c=V.supportsLookbehind();function i(v,x){x===void 0&&(x=!0);var C=c&&l.$supportsUnicodeFlag?new RegExp("[\\p{L}\\p{N}_]","u"):new RegExp("\\w");return C.test(v)||l.regExp?c&&l.$supportsUnicodeFlag?x?"(?<=^|[^\\p{L}\\p{N}_])":"(?=[^\\p{L}\\p{N}_]|$)":"\\b":""}var u=Array.from(h),d=u[0],g=u[u.length-1];return i(d)+h+i(g,!1)}T.Search=s}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(y,T,G){var V=this&&this.__extends||function(){var c=function(i,u){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&(d[v]=g[v])},c(i,u)};return function(i,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");c(i,u);function d(){this.constructor=i}i.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}}(),L=y("../lib/keys"),A=y("../lib/useragent"),s=L.KEY_MODS,m=function(){function c(i,u){this.$init(i,u,!1)}return c.prototype.$init=function(i,u,d){this.platform=u||(A.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(i),this.$singleCommand=d},c.prototype.addCommand=function(i){this.commands[i.name]&&this.removeCommand(i),this.commands[i.name]=i,i.bindKey&&this._buildKeyHash(i)},c.prototype.removeCommand=function(i,u){var d=i&&(typeof i=="string"?i:i.name);i=this.commands[d],u||delete this.commands[d];var g=this.commandKeyBinding;for(var v in g){var x=g[v];if(x==i)delete g[v];else if(Array.isArray(x)){var C=x.indexOf(i);C!=-1&&(x.splice(C,1),x.length==1&&(g[v]=x[0]))}}},c.prototype.bindKey=function(i,u,d){if(typeof i=="object"&&i&&(d==null&&(d=i.position),i=i[this.platform]),!!i){if(typeof u=="function")return this.addCommand({exec:u,bindKey:i,name:u.name||i});i.split("|").forEach(function(g){var v="";if(g.indexOf(" ")!=-1){var x=g.split(/\s+/);g=x.pop(),x.forEach(function($){var S=this.parseKeys($),O=s[S.hashId]+S.key;v+=(v?" ":"")+O,this._addCommandToBinding(v,"chainKeys")},this),v+=" "}var C=this.parseKeys(g),_=s[C.hashId]+C.key;this._addCommandToBinding(v+_,u,d)},this)}},c.prototype._addCommandToBinding=function(i,u,d){var g=this.commandKeyBinding,v;if(!u)delete g[i];else if(!g[i]||this.$singleCommand)g[i]=u;else{Array.isArray(g[i])?(v=g[i].indexOf(u))!=-1&&g[i].splice(v,1):g[i]=[g[i]],typeof d!="number"&&(d=h(u));var x=g[i];for(v=0;vd)break}x.splice(v,0,u)}},c.prototype.addCommands=function(i){i&&Object.keys(i).forEach(function(u){var d=i[u];if(d){if(typeof d=="string")return this.bindKey(d,u);typeof d=="function"&&(d={exec:d}),typeof d=="object"&&(d.name||(d.name=u),this.addCommand(d))}},this)},c.prototype.removeCommands=function(i){Object.keys(i).forEach(function(u){this.removeCommand(i[u])},this)},c.prototype.bindKeys=function(i){Object.keys(i).forEach(function(u){this.bindKey(u,i[u])},this)},c.prototype._buildKeyHash=function(i){this.bindKey(i.bindKey,i)},c.prototype.parseKeys=function(i){var u=i.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(_){return _}),d=u.pop(),g=L[d];if(L.FUNCTION_KEYS[g])d=L.FUNCTION_KEYS[g].toLowerCase();else if(u.length){if(u.length==1&&u[0]=="shift")return{key:d.toUpperCase(),hashId:-1}}else return{key:d,hashId:-1};for(var v=0,x=u.length;x--;){var C=L.KEY_MODS[u[x]];if(C==null)return typeof console<"u"&&console.error("invalid modifier "+u[x]+" in "+i),!1;v|=C}return{key:d,hashId:v}},c.prototype.findKeyCommand=function(i,u){var d=s[i]+u;return this.commandKeyBinding[d]},c.prototype.handleKeyboard=function(i,u,d,g){if(!(g<0)){var v=s[u]+d,x=this.commandKeyBinding[v];return i.$keyChain&&(i.$keyChain+=" "+v,x=this.commandKeyBinding[i.$keyChain]||x),x&&(x=="chainKeys"||x[x.length-1]=="chainKeys")?(i.$keyChain=i.$keyChain||v,{command:"null"}):(i.$keyChain&&((!u||u==4)&&d.length==1?i.$keyChain=i.$keyChain.slice(0,-v.length-1):(u==-1||g>0)&&(i.$keyChain="")),{command:x})}},c.prototype.getStatusText=function(i,u){return u.$keyChain||""},c}();function h(c){return typeof c=="object"&&c.bindKey&&c.bindKey.position||(c.isDefault?-100:0)}var l=function(c){V(i,c);function i(u,d){var g=c.call(this,u,d)||this;return g.$singleCommand=!0,g}return i}(m);l.call=function(c,i,u){m.prototype.$init.call(c,i,u,!0)},m.call=function(c,i,u){m.prototype.$init.call(c,i,u,!1)},T.HashHandler=l,T.MultiHashHandler=m}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(y,T,G){var V=this&&this.__extends||function(){var h=function(l,c){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,u){i.__proto__=u}||function(i,u){for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(i[d]=u[d])},h(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");h(l,c);function i(){this.constructor=l}l.prototype=c===null?Object.create(c):(i.prototype=c.prototype,new i)}}(),L=y("../lib/oop"),A=y("../keyboard/hash_handler").MultiHashHandler,s=y("../lib/event_emitter").EventEmitter,m=function(h){V(l,h);function l(c,i){var u=h.call(this,i,c)||this;return u.byName=u.commands,u.setDefaultHandler("exec",function(d){return d.args?d.command.exec(d.editor,d.args,d.event,!1):d.command.exec(d.editor,{},d.event,!0)}),u}return l.prototype.exec=function(c,i,u){if(Array.isArray(c)){for(var d=c.length;d--;)if(this.exec(c[d],i,u))return!0;return!1}if(typeof c=="string"&&(c=this.commands[c]),!c||i&&i.$readOnly&&!c.readOnly||this.$checkCommandState!=!1&&c.isAvailable&&!c.isAvailable(i))return!1;var g={editor:i,command:c,args:u};return g.returnValue=this._emit("exec",g),this._signal("afterExec",g),g.returnValue!==!1},l.prototype.toggleRecording=function(c){if(!this.$inReplay)return c&&c._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(i){this.macro.push([i.command,i.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},l.prototype.replay=function(c){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(c);try{this.$inReplay=!0,this.macro.forEach(function(i){typeof i=="string"?this.exec(i,c):this.exec(i[0],c,i[1])},this)}finally{this.$inReplay=!1}}},l.prototype.trimMacro=function(c){return c.map(function(i){return typeof i[0]!="string"&&(i[0]=i[0].name),i[1]||(i=i[0]),i})},l}(A);L.implement(m.prototype,s),T.CommandManager=m}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(y,T,G){var V=y("../lib/lang"),L=y("../config"),A=y("../range").Range;function s(h,l){return{win:h,mac:l}}T.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:s("Ctrl-,","Command-,"),exec:function(h){L.loadModule("ace/ext/settings_menu",function(l){l.init(h),h.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:s("Alt-E","F4"),exec:function(h){L.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(h,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:s("Alt-Shift-E","Shift-F4"),exec:function(h){L.loadModule("ace/ext/error_marker",function(l){l.showErrorMarker(h,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:s("Ctrl-A","Command-A"),exec:function(h){h.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:s(null,"Ctrl-L"),exec:function(h){h.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:s("Ctrl-L","Command-L"),exec:function(h,l){typeof l=="number"&&!isNaN(l)&&h.gotoLine(l),h.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:s("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(h){h.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:s("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(h){h.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:s("F2","F2"),exec:function(h){h.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:s("Alt-F2","Alt-F2"),exec:function(h){h.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(h){h.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:s(null,"Ctrl-Command-Option-0"),exec:function(h){h.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:s("Alt-0","Command-Option-0"),exec:function(h){h.session.foldAll(),h.session.unfold(h.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:s("Alt-Shift-0","Command-Option-Shift-0"),exec:function(h){h.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:s("Ctrl-K","Command-G"),exec:function(h){h.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:s("Ctrl-Shift-K","Command-Shift-G"),exec:function(h){h.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:s("Alt-K","Ctrl-G"),exec:function(h){h.selection.isEmpty()?h.selection.selectWord():h.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:s("Alt-Shift-K","Ctrl-Shift-G"),exec:function(h){h.selection.isEmpty()?h.selection.selectWord():h.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:s("Ctrl-F","Command-F"),exec:function(h){L.loadModule("ace/ext/searchbox",function(l){l.Search(h)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(h){h.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:s("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(h){h.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:s("Ctrl-Home","Command-Home|Command-Up"),exec:function(h){h.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:s("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(h){h.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:s("Up","Up|Ctrl-P"),exec:function(h,l){h.navigateUp(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:s("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(h){h.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:s("Ctrl-End","Command-End|Command-Down"),exec:function(h){h.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:s("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(h){h.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:s("Down","Down|Ctrl-N"),exec:function(h,l){h.navigateDown(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:s("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(h){h.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:s("Ctrl-Left","Option-Left"),exec:function(h){h.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:s("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(h){h.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:s("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(h){h.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:s("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(h){h.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:s("Left","Left|Ctrl-B"),exec:function(h,l){h.navigateLeft(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:s("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(h){h.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:s("Ctrl-Right","Option-Right"),exec:function(h){h.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:s("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(h){h.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:s("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(h){h.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:s("Shift-Right","Shift-Right"),exec:function(h){h.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:s("Right","Right|Ctrl-F"),exec:function(h,l){h.navigateRight(l.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(h){h.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:s(null,"Option-PageDown"),exec:function(h){h.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:s("PageDown","PageDown|Ctrl-V"),exec:function(h){h.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(h){h.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:s(null,"Option-PageUp"),exec:function(h){h.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(h){h.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:s("Ctrl-Up",null),exec:function(h){h.renderer.scrollBy(0,-2*h.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:s("Ctrl-Down",null),exec:function(h){h.renderer.scrollBy(0,2*h.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(h){h.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(h){h.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:s("Ctrl-Alt-E","Command-Option-E"),exec:function(h){h.commands.toggleRecording(h)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:s("Ctrl-Shift-E","Command-Shift-E"),exec:function(h){h.commands.replay(h)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:s("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(h){h.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:s("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(h){h.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:s("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(h){h.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:s(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(h){},readOnly:!0},{name:"cut",description:"Cut",exec:function(h){var l=h.$copyWithEmptySelection&&h.selection.isEmpty(),c=l?h.selection.getLineRange():h.selection.getRange();h._emit("cut",c),c.isEmpty()||h.session.remove(c),h.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(h,l){h.$handlePaste(l)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:s("Ctrl-D","Command-D"),exec:function(h){h.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:s("Ctrl-Shift-D","Command-Shift-D"),exec:function(h){h.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:s("Ctrl-Alt-S","Command-Alt-S"),exec:function(h){h.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:s("Ctrl-/","Command-/"),exec:function(h){h.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:s("Ctrl-Shift-/","Command-Shift-/"),exec:function(h){h.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:s("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(h){h.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:s("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(h){h.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:s("Ctrl-H","Command-Option-F"),exec:function(h){L.loadModule("ace/ext/searchbox",function(l){l.Search(h,!0)})}},{name:"undo",description:"Undo",bindKey:s("Ctrl-Z","Command-Z"),exec:function(h){h.undo()}},{name:"redo",description:"Redo",bindKey:s("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(h){h.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:s("Alt-Shift-Up","Command-Option-Up"),exec:function(h){h.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:s("Alt-Up","Option-Up"),exec:function(h){h.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:s("Alt-Shift-Down","Command-Option-Down"),exec:function(h){h.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:s("Alt-Down","Option-Down"),exec:function(h){h.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:s("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(h){h.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:s("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(h){h.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:s("Shift-Delete",null),exec:function(h){if(h.selection.isEmpty())h.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:s("Alt-Backspace","Command-Backspace"),exec:function(h){h.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:s("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(h){h.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:s("Ctrl-Shift-Backspace",null),exec:function(h){var l=h.selection.getRange();l.start.column=0,h.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:s("Ctrl-Shift-Delete",null),exec:function(h){var l=h.selection.getRange();l.end.column=Number.MAX_VALUE,h.session.remove(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:s("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(h){h.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:s("Ctrl-Delete","Alt-Delete"),exec:function(h){h.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:s("Shift-Tab","Shift-Tab"),exec:function(h){h.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:s("Tab","Tab"),exec:function(h){h.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:s("Ctrl-[","Ctrl-["),exec:function(h){h.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:s("Ctrl-]","Ctrl-]"),exec:function(h){h.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(h,l){h.insert(l)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(h,l){h.insert(V.stringRepeat(l.text||"",l.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:s(null,"Ctrl-O"),exec:function(h){h.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:s("Alt-Shift-X","Ctrl-T"),exec:function(h){h.transposeLetters()},multiSelectAction:function(h){h.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:s("Ctrl-U","Ctrl-U"),exec:function(h){h.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:s("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(h){h.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:s(null,null),exec:function(h){h.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:s("Ctrl-Shift-L","Command-Shift-L"),exec:function(h){var l=h.selection.getRange();l.start.column=l.end.column=0,l.end.row++,h.selection.setRange(l,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:s("Ctrl+F3","F3"),exec:function(h){h.openLink()}},{name:"joinlines",description:"Join lines",bindKey:s(null,null),exec:function(h){for(var l=h.selection.isBackwards(),c=l?h.selection.getSelectionLead():h.selection.getSelectionAnchor(),i=l?h.selection.getSelectionAnchor():h.selection.getSelectionLead(),u=h.session.doc.getLine(c.row).length,d=h.session.doc.getTextRange(h.selection.getRange()),g=d.replace(/\n\s*/," ").length,v=h.session.doc.getLine(c.row),x=c.row+1;x<=i.row+1;x++){var C=V.stringTrimLeft(V.stringTrimRight(h.session.doc.getLine(x)));C.length!==0&&(C=" "+C),v+=C}i.row+10?(h.selection.moveCursorTo(c.row,c.column),h.selection.selectTo(c.row,c.column+g)):(u=h.session.doc.getLine(c.row).length>u?u+1:u,h.selection.moveCursorTo(c.row,u))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:s(null,null),exec:function(h){var l=h.session.doc.getLength()-1,c=h.session.doc.getLine(l).length,i=h.selection.rangeList.ranges,u=[];i.length<1&&(i=[h.selection.getRange()]);for(var d=0;dm[h].column&&h++,i.unshift(h,0),m.splice.apply(m,i),this.$updateRows()}}},A.prototype.$updateRows=function(){var s=this.session.lineWidgets;if(s){var m=!0;s.forEach(function(h,l){if(h)for(m=!1,h.row=l;h.$oldWidget;)h.$oldWidget.row=l,h=h.$oldWidget}),m&&(this.session.lineWidgets=null)}},A.prototype.$registerLineWidget=function(s){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var m=this.session.lineWidgets[s.row];return m&&(s.$oldWidget=m,m.el&&m.el.parentNode&&(m.el.parentNode.removeChild(m.el),m._inDocument=!1)),this.session.lineWidgets[s.row]=s,s},A.prototype.addLineWidget=function(s){if(this.$registerLineWidget(s),s.session=this.session,!this.editor)return s;var m=this.editor.renderer;s.html&&!s.el&&(s.el=V.createElement("div"),s.el.innerHTML=s.html),s.text&&!s.el&&(s.el=V.createElement("div"),s.el.textContent=s.text),s.el&&(V.addCssClass(s.el,"ace_lineWidgetContainer"),s.className&&V.addCssClass(s.el,s.className),s.el.style.position="absolute",s.el.style.zIndex=5,m.container.appendChild(s.el),s._inDocument=!0,s.coverGutter||(s.el.style.zIndex=3),s.pixelHeight==null&&(s.pixelHeight=s.el.offsetHeight)),s.rowCount==null&&(s.rowCount=s.pixelHeight/m.layerConfig.lineHeight);var h=this.session.getFoldAt(s.row,0);if(s.$fold=h,h){var l=this.session.lineWidgets;s.row==h.end.row&&!l[h.start.row]?l[h.start.row]=s:s.hidden=!0}return this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows(),this.renderWidgets(null,m),this.onWidgetChanged(s),s},A.prototype.removeLineWidget=function(s){if(s._inDocument=!1,s.session=null,s.el&&s.el.parentNode&&s.el.parentNode.removeChild(s.el),s.editor&&s.editor.destroy)try{s.editor.destroy()}catch{}if(this.session.lineWidgets){var m=this.session.lineWidgets[s.row];if(m==s)this.session.lineWidgets[s.row]=s.$oldWidget,s.$oldWidget&&this.onWidgetChanged(s.$oldWidget);else for(;m;){if(m.$oldWidget==s){m.$oldWidget=s.$oldWidget;break}m=m.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:s.row}}}),this.$updateRows()},A.prototype.getWidgetsAtRow=function(s){for(var m=this.session.lineWidgets,h=m&&m[s],l=[];h;)l.push(h),h=h.$oldWidget;return l},A.prototype.onWidgetChanged=function(s){this.session._changedWidgets.push(s),this.editor&&this.editor.renderer.updateFull()},A.prototype.measureWidgets=function(s,m){var h=this.session._changedWidgets,l=m.layerConfig;if(!(!h||!h.length)){for(var c=1/0,i=0;i0&&!l[c];)c--;this.firstRow=h.firstRow,this.lastRow=h.lastRow,m.$cursorLayer.config=h;for(var u=c;u<=i;u++){var d=l[u];if(!(!d||!d.el)){if(d.hidden){d.el.style.top=-100-(d.pixelHeight||0)+"px";continue}d._inDocument||(d._inDocument=!0,m.container.appendChild(d.el));var g=m.$cursorLayer.getPixelPosition({row:u,column:0},!0).top;d.coverLine||(g+=h.lineHeight*this.session.getRowLineCount(d.row)),d.el.style.top=g-h.offset+"px";var v=d.coverGutter?0:m.gutterWidth;d.fixedWidth||(v-=m.scrollLeft),d.el.style.left=v+"px",d.fullWidth&&d.screenWidth&&(d.el.style.minWidth=h.width+2*h.padding+"px"),d.fixedWidth?d.el.style.right=m.scrollBar.getWidth()+"px":d.el.style.right=""}}}},A}();T.LineWidgets=L}),ace.define("ace/keyboard/gutter_handler",["require","exports","module","ace/lib/keys","ace/mouse/default_gutter_handler"],function(y,T,G){var V=y("../lib/keys"),L=y("../mouse/default_gutter_handler").GutterTooltip,A=function(){function m(h){this.editor=h,this.gutterLayer=h.renderer.$gutterLayer,this.element=h.renderer.$gutter,this.lines=h.renderer.$gutterLayer.$lines,this.activeRowIndex=null,this.activeLane=null,this.annotationTooltip=new L(this.editor)}return m.prototype.addListener=function(){this.element.addEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.addEventListener("focusout",this.$blurGutter.bind(this)),this.editor.on("mousewheel",this.$blurGutter.bind(this))},m.prototype.removeListener=function(){this.element.removeEventListener("keydown",this.$onGutterKeyDown.bind(this)),this.element.removeEventListener("focusout",this.$blurGutter.bind(this)),this.editor.off("mousewheel",this.$blurGutter.bind(this))},m.prototype.$onGutterKeyDown=function(h){if(this.annotationTooltip.isOpen){h.preventDefault(),h.keyCode===V.escape&&this.annotationTooltip.hideTooltip();return}if(h.target===this.element){if(h.keyCode!=V.enter)return;h.preventDefault();var l=this.editor.getCursorPosition().row;this.editor.isRowVisible(l)||this.editor.scrollToLine(l,!0,!0),setTimeout((function(){var c=this.$rowToRowIndex(this.gutterLayer.$cursorCell.row),i=this.$findNearestFoldWidget(c),u=this.$findNearestAnnotation(c);if(!(i===null&&u===null)){if(i===null&&u!==null){this.activeRowIndex=u,this.activeLane="annotation",this.$focusAnnotation(this.activeRowIndex);return}if(i!==null&&u===null){this.activeRowIndex=i,this.activeLane="fold",this.$focusFoldWidget(this.activeRowIndex);return}if(Math.abs(u-c)0||h+l=0&&this.$isFoldWidgetVisible(h-l))return h-l;if(h+l<=this.lines.getLength()-1&&this.$isFoldWidgetVisible(h+l))return h+l}return null},m.prototype.$findNearestAnnotation=function(h){if(this.$isAnnotationVisible(h))return h;for(var l=0;h-l>0||h+l=0&&this.$isAnnotationVisible(h-l))return h-l;if(h+l<=this.lines.getLength()-1&&this.$isAnnotationVisible(h+l))return h+l}return null},m.prototype.$focusFoldWidget=function(h){if(h!=null){var l=this.$getFoldWidget(h);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},m.prototype.$focusAnnotation=function(h){if(h!=null){var l=this.$getAnnotation(h);l.classList.add(this.editor.renderer.keyboardFocusClassName),l.focus()}},m.prototype.$blurFoldWidget=function(h){var l=this.$getFoldWidget(h);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},m.prototype.$blurAnnotation=function(h){var l=this.$getAnnotation(h);l.classList.remove(this.editor.renderer.keyboardFocusClassName),l.blur()},m.prototype.$moveFoldWidgetUp=function(){for(var h=this.activeRowIndex;h>0;)if(h--,this.$isFoldWidgetVisible(h)){this.$blurFoldWidget(this.activeRowIndex),this.activeRowIndex=h,this.$focusFoldWidget(this.activeRowIndex);return}},m.prototype.$moveFoldWidgetDown=function(){for(var h=this.activeRowIndex;h0;)if(h--,this.$isAnnotationVisible(h)){this.$blurAnnotation(this.activeRowIndex),this.activeRowIndex=h,this.$focusAnnotation(this.activeRowIndex);return}},m.prototype.$moveAnnotationDown=function(){for(var h=this.activeRowIndex;h=F.length&&(F=void 0),{value:F&&F[P++],done:!F}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")},L=y("./lib/oop"),A=y("./lib/dom"),s=y("./lib/lang"),m=y("./lib/useragent"),h=y("./keyboard/textinput").TextInput,l=y("./mouse/mouse_handler").MouseHandler,c=y("./mouse/fold_handler").FoldHandler,i=y("./keyboard/keybinding").KeyBinding,u=y("./edit_session").EditSession,d=y("./search").Search,g=y("./range").Range,v=y("./lib/event_emitter").EventEmitter,x=y("./commands/command_manager").CommandManager,C=y("./commands/default_commands").commands,_=y("./config"),$=y("./token_iterator").TokenIterator,S=y("./line_widgets").LineWidgets,O=y("./keyboard/gutter_handler").GutterKeyboardHandler,D=y("./config").nls,N=y("./clipboard"),M=y("./lib/keys"),k=function(){function F(H,j,P){this.$toDestroy=[];var ee=H.getContainerElement();this.container=ee,this.renderer=H,this.id="editor"+ ++F.$uid,this.commands=new x(m.isMac?"mac":"win",C),typeof document=="object"&&(this.textInput=new h(H.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new l(this),new c(this)),this.keyBinding=new i(this),this.$search=new d().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=s.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(J,K){K._$emitInputEvent.schedule(31)}),this.setSession(j||P&&P.session||new u("")),_.resetOptions(this),P&&this.setOptions(P),_._signal("editor",this)}return F.prototype.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=s.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},F.prototype.startOperation=function(H){if(this.curOp){if(!H||this.curOp.command)return;this.prevOp=this.curOp}H||(this.previousCommand=null,H={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:H.command||{},args:H.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},F.prototype.endOperation=function(H){if(this.curOp&&this.session){if(H&&H.returnValue===!1||!this.session)return this.curOp=null;if(H==!0&&this.curOp.command&&this.curOp.command.name=="mouse"||(this._signal("beforeEndOperation"),!this.curOp))return;var j=this.curOp.command,P=j&&j.scrollIntoView;if(P){switch(P){case"center-animate":P="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var ee=this.selection.getRange(),J=this.renderer.layerConfig;(ee.start.row>=J.lastRow||ee.end.row<=J.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break}P=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}var K=this.selection.toJSON();this.curOp.selectionAfter=K,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(K),this.prevOp=this.curOp,this.curOp=null}},F.prototype.$historyTracker=function(H){if(this.$mergeUndoDeltas){var j=this.prevOp,P=this.$mergeableCommands,ee=j.command&&H.command.name==j.command.name;if(H.command.name=="insertstring"){var J=H.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),ee=ee&&this.mergeNextCommand&&(!/\s/.test(J)||/\s/.test(j.args)),this.mergeNextCommand=!0}else ee=ee&&P.indexOf(H.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(ee=!1),ee?this.session.mergeUndoDeltas=!0:P.indexOf(H.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},F.prototype.setKeyboardHandler=function(H,j){if(H&&typeof H=="string"&&H!="ace"){this.$keybindingId=H;var P=this;_.loadModule(["keybinding",H],function(ee){P.$keybindingId==H&&P.keyBinding.setKeyboardHandler(ee&&ee.handler),j&&j()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(H),j&&j()},F.prototype.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},F.prototype.setSession=function(H){if(this.session!=H){this.curOp&&this.endOperation(),this.curOp={};var j=this.session;if(j){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var P=this.session.getSelection();P.off("changeCursor",this.$onCursorChange),P.off("changeSelection",this.$onSelectionChange)}this.session=H,H?(this.$onDocumentChange=this.onDocumentChange.bind(this),H.on("change",this.$onDocumentChange),this.renderer.setSession(H),this.$onChangeMode=this.onChangeMode.bind(this),H.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),H.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),H.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),H.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),H.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),H.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=H.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(H)),this._signal("changeSession",{session:H,oldSession:j}),this.curOp=null,j&&j._signal("changeEditor",{oldEditor:this}),H&&H._signal("changeEditor",{editor:this}),H&&!H.destroyed&&H.bgTokenizer.scheduleStart()}},F.prototype.getSession=function(){return this.session},F.prototype.setValue=function(H,j){return this.session.doc.setValue(H),j?j==1?this.navigateFileEnd():j==-1&&this.navigateFileStart():this.selectAll(),H},F.prototype.getValue=function(){return this.session.getValue()},F.prototype.getSelection=function(){return this.selection},F.prototype.resize=function(H){this.renderer.onResize(H)},F.prototype.setTheme=function(H,j){this.renderer.setTheme(H,j)},F.prototype.getTheme=function(){return this.renderer.getTheme()},F.prototype.setStyle=function(H){this.renderer.setStyle(H)},F.prototype.unsetStyle=function(H){this.renderer.unsetStyle(H)},F.prototype.getFontSize=function(){return this.getOption("fontSize")||A.computedStyle(this.container).fontSize},F.prototype.setFontSize=function(H){this.setOption("fontSize",H)},F.prototype.$highlightBrackets=function(){if(!this.$highlightPending){var H=this;this.$highlightPending=!0,setTimeout(function(){H.$highlightPending=!1;var j=H.session;if(!(!j||j.destroyed)){j.$bracketHighlight&&(j.$bracketHighlight.markerIds.forEach(function(Se){j.removeMarker(Se)}),j.$bracketHighlight=null);var P=H.getCursorPosition(),ee=H.getKeyboardHandler(),J=ee&&ee.$getDirectionForHighlight&&ee.$getDirectionForHighlight(H),K=j.getMatchingBracketRanges(P,J);if(!K){var ae=new $(j,P.row,P.column),Q=ae.getCurrentToken();if(Q&&/\b(?:tag-open|tag-name)/.test(Q.type)){var he=j.getMatchingTags(P);he&&(K=[he.openTagName,he.closeTagName])}}if(!K&&j.$mode.getMatching&&(K=j.$mode.getMatching(H.session)),!K){H.getHighlightIndentGuides()&&H.renderer.$textLayer.$highlightIndentGuide();return}var ge="ace_bracket";Array.isArray(K)?K.length==1&&(ge="ace_error_bracket"):K=[K],K.length==2&&(g.comparePoints(K[0].end,K[1].start)==0?K=[g.fromPoints(K[0].start,K[1].end)]:g.comparePoints(K[0].start,K[1].end)==0&&(K=[g.fromPoints(K[1].start,K[0].end)])),j.$bracketHighlight={ranges:K,markerIds:K.map(function(Se){return j.addMarker(Se,ge,"text")})},H.getHighlightIndentGuides()&&H.renderer.$textLayer.$highlightIndentGuide()}},50)}},F.prototype.focus=function(){this.textInput.focus()},F.prototype.isFocused=function(){return this.textInput.isFocused()},F.prototype.blur=function(){this.textInput.blur()},F.prototype.onFocus=function(H){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",H))},F.prototype.onBlur=function(H){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",H))},F.prototype.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},F.prototype.onDocumentChange=function(H){var j=this.session.$useWrapMode,P=H.start.row==H.end.row?H.end.row:1/0;this.renderer.updateLines(H.start.row,P,j),this._signal("change",H),this.$cursorChange()},F.prototype.onTokenizerUpdate=function(H){var j=H.data;this.renderer.updateLines(j.first,j.last)},F.prototype.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},F.prototype.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},F.prototype.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},F.prototype.$updateHighlightActiveLine=function(){var H=this.getSession(),j;if(this.$highlightActiveLine&&((this.$selectionStyle!="line"||!this.selection.isMultiLine())&&(j=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(j=!1),this.renderer.$maxLines&&this.session.getLength()===1&&!(this.renderer.$minLines>1)&&(j=!1)),H.$highlightLineMarker&&!j)H.removeMarker(H.$highlightLineMarker.id),H.$highlightLineMarker=null;else if(!H.$highlightLineMarker&&j){var P=new g(j.row,j.column,j.row,1/0);P.id=H.addMarker(P,"ace_active-line","screenLine"),H.$highlightLineMarker=P}else j&&(H.$highlightLineMarker.start.row=j.row,H.$highlightLineMarker.end.row=j.row,H.$highlightLineMarker.start.column=j.column,H._signal("changeBackMarker"))},F.prototype.onSelectionChange=function(H){var j=this.session;if(j.$selectionMarker&&j.removeMarker(j.$selectionMarker),j.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var P=this.selection.getRange(),ee=this.getSelectionStyle();j.$selectionMarker=j.addMarker(P,"ace_selection",ee)}var J=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(J),this._signal("changeSelection")},F.prototype.$getSelectionHighLightRegexp=function(){var H=this.session,j=this.getSelectionRange();if(!(j.isEmpty()||j.isMultiLine())){var P=j.start.column,ee=j.end.column,J=H.getLine(j.start.row),K=J.substring(P,ee);if(!(K.length>5e3||!/[\w\d]/.test(K))){var ae=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:K}),Q=J.substring(P-1,ee+1);if(ae.test(Q))return ae}}},F.prototype.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},F.prototype.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},F.prototype.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},F.prototype.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},F.prototype.onChangeMode=function(H){this.renderer.updateText(),this._emit("changeMode",H)},F.prototype.onChangeWrapLimit=function(){this.renderer.updateFull()},F.prototype.onChangeWrapMode=function(){this.renderer.onResize(!0)},F.prototype.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},F.prototype.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},F.prototype.getCopyText=function(){var H=this.getSelectedText(),j=this.session.doc.getNewLineCharacter(),P=!1;if(!H&&this.$copyWithEmptySelection){P=!0;for(var ee=this.selection.getAllRanges(),J=0;JSe.search(/\S|$/)){var Q=Se.substr(J.column).search(/\S|$/);P.doc.removeInLine(J.row,J.column,J.column+Q)}}this.clearSelection();var he=J.column,ge=P.getState(J.row),Se=P.getLine(J.row),ce=ee.checkOutdent(ge,Se,H);if(P.insert(J,H),K&&K.selection&&(K.selection.length==2?this.selection.setSelectionRange(new g(J.row,he+K.selection[0],J.row,he+K.selection[1])):this.selection.setSelectionRange(new g(J.row+K.selection[0],K.selection[1],J.row+K.selection[2],K.selection[3]))),this.$enableAutoIndent){if(P.getDocument().isNewLine(H)){var ne=ee.getNextLineIndent(ge,Se.slice(0,J.column),P.getTabString());P.insert({row:J.row+1,column:0},ne)}ce&&ee.autoOutdent(ge,P,J.row)}},F.prototype.autoIndent=function(){var H=this.session,j=H.getMode(),P,ee;if(this.selection.isEmpty())P=0,ee=H.doc.getLength()-1;else{var J=this.getSelectionRange();P=J.start.row,ee=J.end.row}for(var K="",ae="",Q="",he,ge,Se,ce=H.getTabString(),ne=P;ne<=ee;ne++)ne>0&&(K=H.getState(ne-1),ae=H.getLine(ne-1),Q=j.getNextLineIndent(K,ae,ce)),he=H.getLine(ne),ge=j.$getIndent(he),Q!==ge&&(ge.length>0&&(Se=new g(ne,0,ne,ge.length),H.remove(Se)),Q.length>0&&H.insert({row:ne,column:0},Q)),j.autoOutdent(K,H,ne)},F.prototype.onTextInput=function(H,j){if(!j)return this.keyBinding.onTextInput(H);this.startOperation({command:{name:"insertstring"}});var P=this.applyComposition.bind(this,H,j);this.selection.rangeCount?this.forEachSelection(P):P(),this.endOperation()},F.prototype.applyComposition=function(H,j){if(j.extendLeft||j.extendRight){var P=this.selection.getRange();P.start.column-=j.extendLeft,P.end.column+=j.extendRight,P.start.column<0&&(P.start.row--,P.start.column+=this.session.getLine(P.start.row).length+1),this.selection.setRange(P),!H&&!P.isEmpty()&&this.remove()}if((H||!this.selection.isEmpty())&&this.insert(H,!0),j.restoreStart||j.restoreEnd){var P=this.selection.getRange();P.start.column-=j.restoreStart,P.end.column-=j.restoreEnd,this.selection.setRange(P)}},F.prototype.onCommandKey=function(H,j,P){return this.keyBinding.onCommandKey(H,j,P)},F.prototype.setOverwrite=function(H){this.session.setOverwrite(H)},F.prototype.getOverwrite=function(){return this.session.getOverwrite()},F.prototype.toggleOverwrite=function(){this.session.toggleOverwrite()},F.prototype.setScrollSpeed=function(H){this.setOption("scrollSpeed",H)},F.prototype.getScrollSpeed=function(){return this.getOption("scrollSpeed")},F.prototype.setDragDelay=function(H){this.setOption("dragDelay",H)},F.prototype.getDragDelay=function(){return this.getOption("dragDelay")},F.prototype.setSelectionStyle=function(H){this.setOption("selectionStyle",H)},F.prototype.getSelectionStyle=function(){return this.getOption("selectionStyle")},F.prototype.setHighlightActiveLine=function(H){this.setOption("highlightActiveLine",H)},F.prototype.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},F.prototype.setHighlightGutterLine=function(H){this.setOption("highlightGutterLine",H)},F.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},F.prototype.setHighlightSelectedWord=function(H){this.setOption("highlightSelectedWord",H)},F.prototype.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},F.prototype.setAnimatedScroll=function(H){this.renderer.setAnimatedScroll(H)},F.prototype.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},F.prototype.setShowInvisibles=function(H){this.renderer.setShowInvisibles(H)},F.prototype.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},F.prototype.setDisplayIndentGuides=function(H){this.renderer.setDisplayIndentGuides(H)},F.prototype.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},F.prototype.setHighlightIndentGuides=function(H){this.renderer.setHighlightIndentGuides(H)},F.prototype.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},F.prototype.setShowPrintMargin=function(H){this.renderer.setShowPrintMargin(H)},F.prototype.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},F.prototype.setPrintMarginColumn=function(H){this.renderer.setPrintMarginColumn(H)},F.prototype.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},F.prototype.setReadOnly=function(H){this.setOption("readOnly",H)},F.prototype.getReadOnly=function(){return this.getOption("readOnly")},F.prototype.setBehavioursEnabled=function(H){this.setOption("behavioursEnabled",H)},F.prototype.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},F.prototype.setWrapBehavioursEnabled=function(H){this.setOption("wrapBehavioursEnabled",H)},F.prototype.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},F.prototype.setShowFoldWidgets=function(H){this.setOption("showFoldWidgets",H)},F.prototype.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},F.prototype.setFadeFoldWidgets=function(H){this.setOption("fadeFoldWidgets",H)},F.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},F.prototype.remove=function(H){this.selection.isEmpty()&&(H=="left"?this.selection.selectLeft():this.selection.selectRight());var j=this.getSelectionRange();if(this.getBehavioursEnabled()){var P=this.session,ee=P.getState(j.start.row),J=P.getMode().transformAction(ee,"deletion",this,P,j);if(j.end.column===0){var K=P.getTextRange(j);if(K[K.length-1]==` -`){var ae=P.getLine(j.end.row);/^\s+$/.test(ae)&&(j.end.column=ae.length)}}J&&(j=J)}this.session.remove(j),this.clearSelection()},F.prototype.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},F.prototype.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},F.prototype.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},F.prototype.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var H=this.getSelectionRange();H.start.column==H.end.column&&H.start.row==H.end.row&&(H.end.column=0,H.end.row++),this.session.remove(H),this.clearSelection()},F.prototype.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var H=this.getCursorPosition();this.insert(` -`),this.moveCursorToPosition(H)},F.prototype.setGhostText=function(H,j){this.session.widgetManager||(this.session.widgetManager=new S(this.session),this.session.widgetManager.attach(this)),this.renderer.setGhostText(H,j)},F.prototype.removeGhostText=function(){this.session.widgetManager&&this.renderer.removeGhostText()},F.prototype.transposeLetters=function(){if(this.selection.isEmpty()){var H=this.getCursorPosition(),j=H.column;if(j!==0){var P=this.session.getLine(H.row),ee,J;jQ.toLowerCase()?1:0});for(var J=new g(0,0,0,0),ee=H.first;ee<=H.last;ee++){var K=j.getLine(ee);J.start.row=ee,J.end.row=ee,J.end.column=K.length,j.replace(J,P[ee-H.first])}},F.prototype.toggleCommentLines=function(){var H=this.session.getState(this.getCursorPosition().row),j=this.$getSelectedRows();this.session.getMode().toggleCommentLines(H,this.session,j.first,j.last)},F.prototype.toggleBlockComment=function(){var H=this.getCursorPosition(),j=this.session.getState(H.row),P=this.getSelectionRange();this.session.getMode().toggleBlockComment(j,this.session,P,H)},F.prototype.getNumberAt=function(H,j){var P=/[\-]?[0-9]+(?:\.[0-9]+)?/g;P.lastIndex=0;for(var ee=this.session.getLine(H);P.lastIndex=j){var K={value:J[0],start:J.index,end:J.index+J[0].length};return K}}return null},F.prototype.modifyNumber=function(H){var j=this.selection.getCursor().row,P=this.selection.getCursor().column,ee=new g(j,P-1,j,P),J=this.session.getTextRange(ee);if(!isNaN(parseFloat(J))&&isFinite(J)){var K=this.getNumberAt(j,P);if(K){var ae=K.value.indexOf(".")>=0?K.start+K.value.indexOf(".")+1:K.end,Q=K.start+K.value.length-ae,he=parseFloat(K.value);he*=Math.pow(10,Q),ae!==K.end&&P=ae&&K<=Q&&(P=$e,he.selection.clearSelection(),he.moveCursorTo(H,ae+ee),he.selection.selectTo(H,Q+ee)),ae=Q});for(var ge=this.$toggleWordPairs,Se,ce=0;ce=Q&&ae<=he&&ne.match(/((?:https?|ftp):\/\/[\S]+)/)){ge=ne.replace(/[\s:.,'";}\]]+$/,"");break}Q=he}}catch(fe){P={error:fe}}finally{try{ce&&!ce.done&&(ee=Se.return)&&ee.call(Se)}finally{if(P)throw P.error}}return ge},F.prototype.openLink=function(){var H=this.selection.getCursor(),j=this.findLinkAt(H.row,H.column);return j&&window.open(j,"_blank"),j!=null},F.prototype.removeLines=function(){var H=this.$getSelectedRows();this.session.removeFullLines(H.first,H.last),this.clearSelection()},F.prototype.duplicateSelection=function(){var H=this.selection,j=this.session,P=H.getRange(),ee=H.isBackwards();if(P.isEmpty()){var J=P.start.row;j.duplicateLines(J,J)}else{var K=ee?P.start:P.end,ae=j.insert(K,j.getTextRange(P),!1);P.start=K,P.end=ae,H.setSelectionRange(P,ee)}},F.prototype.moveLinesDown=function(){this.$moveLines(1,!1)},F.prototype.moveLinesUp=function(){this.$moveLines(-1,!1)},F.prototype.moveText=function(H,j,P){return this.session.moveText(H,j,P)},F.prototype.copyLinesUp=function(){this.$moveLines(-1,!0)},F.prototype.copyLinesDown=function(){this.$moveLines(1,!0)},F.prototype.$moveLines=function(H,j){var P,ee,J=this.selection;if(!J.inMultiSelectMode||this.inVirtualSelectionMode){var K=J.toOrientedRange();P=this.$getSelectedRows(K),ee=this.session.$moveLines(P.first,P.last,j?0:H),j&&H==-1&&(ee=0),K.moveBy(ee,0),J.fromOrientedRange(K)}else{var ae=J.rangeList.ranges;J.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var Q=0,he=0,ge=ae.length,Se=0;Sefe+1)break;fe=X.last}for(Se--,Q=this.session.$moveLines(ne,fe,j?0:H),j&&H==-1&&(ce=Se+1);ce<=Se;)ae[ce].moveBy(Q,0),ce++;j||(Q=0),he+=Q}J.fromOrientedRange(J.ranges[0]),J.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},F.prototype.$getSelectedRows=function(H){return H=(H||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(H.start.row),last:this.session.getRowFoldEnd(H.end.row)}},F.prototype.onCompositionStart=function(H){this.renderer.showComposition(H)},F.prototype.onCompositionUpdate=function(H){this.renderer.setCompositionText(H)},F.prototype.onCompositionEnd=function(){this.renderer.hideComposition()},F.prototype.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},F.prototype.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},F.prototype.isRowVisible=function(H){return H>=this.getFirstVisibleRow()&&H<=this.getLastVisibleRow()},F.prototype.isRowFullyVisible=function(H){return H>=this.renderer.getFirstFullyVisibleRow()&&H<=this.renderer.getLastFullyVisibleRow()},F.prototype.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},F.prototype.$moveByPage=function(H,j){var P=this.renderer,ee=this.renderer.layerConfig,J=H*Math.floor(ee.height/ee.lineHeight);j===!0?this.selection.$moveSelection(function(){this.moveCursorBy(J,0)}):j===!1&&(this.selection.moveCursorBy(J,0),this.selection.clearSelection());var K=P.scrollTop;P.scrollBy(0,J*ee.lineHeight),j!=null&&P.scrollCursorIntoView(null,.5),P.animateScrolling(K)},F.prototype.selectPageDown=function(){this.$moveByPage(1,!0)},F.prototype.selectPageUp=function(){this.$moveByPage(-1,!0)},F.prototype.gotoPageDown=function(){this.$moveByPage(1,!1)},F.prototype.gotoPageUp=function(){this.$moveByPage(-1,!1)},F.prototype.scrollPageDown=function(){this.$moveByPage(1)},F.prototype.scrollPageUp=function(){this.$moveByPage(-1)},F.prototype.scrollToRow=function(H){this.renderer.scrollToRow(H)},F.prototype.scrollToLine=function(H,j,P,ee){this.renderer.scrollToLine(H,j,P,ee)},F.prototype.centerSelection=function(){var H=this.getSelectionRange(),j={row:Math.floor(H.start.row+(H.end.row-H.start.row)/2),column:Math.floor(H.start.column+(H.end.column-H.start.column)/2)};this.renderer.alignCursor(j,.5)},F.prototype.getCursorPosition=function(){return this.selection.getCursor()},F.prototype.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},F.prototype.getSelectionRange=function(){return this.selection.getRange()},F.prototype.selectAll=function(){this.selection.selectAll()},F.prototype.clearSelection=function(){this.selection.clearSelection()},F.prototype.moveCursorTo=function(H,j){this.selection.moveCursorTo(H,j)},F.prototype.moveCursorToPosition=function(H){this.selection.moveCursorToPosition(H)},F.prototype.jumpToMatching=function(H,j){var P=this.getCursorPosition(),ee=new $(this.session,P.row,P.column),J=ee.getCurrentToken(),K=0;J&&J.type.indexOf("tag-name")!==-1&&(J=ee.stepBackward());var ae=J||ee.stepForward();if(ae){var Q,he=!1,ge={},Se=P.column-ae.start,ce,ne={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(ae.value.match(/[{}()\[\]]/g)){for(;Se1?ge[ae.value]++:J.value==="=0;--K)this.$tryReplace(P[K],H)&&ee++;return this.selection.setSelectionRange(J),ee},F.prototype.$tryReplace=function(H,j){var P=this.session.getTextRange(H);return j=this.$search.replace(P,j),j!==null?(H.end=this.session.replace(H,j),H):null},F.prototype.getLastSearchOptions=function(){return this.$search.getOptions()},F.prototype.find=function(H,j,P){j||(j={}),typeof H=="string"||H instanceof RegExp?j.needle=H:typeof H=="object"&&L.mixin(j,H);var ee=this.selection.getRange();j.needle==null&&(H=this.session.getTextRange(ee)||this.$search.$options.needle,H||(ee=this.session.getWordRange(ee.start.row,ee.start.column),H=this.session.getTextRange(ee)),this.$search.set({needle:H})),this.$search.set(j),j.start||this.$search.set({start:ee});var J=this.$search.find(this.session);if(j.preventScroll)return J;if(J)return this.revealRange(J,P),J;j.backwards?ee.start=ee.end:ee.end=ee.start,this.selection.setRange(ee)},F.prototype.findNext=function(H,j){this.find({skipCurrent:!0,backwards:!1},H,j)},F.prototype.findPrevious=function(H,j){this.find(H,{skipCurrent:!0,backwards:!0},j)},F.prototype.revealRange=function(H,j){this.session.unfold(H),this.selection.setSelectionRange(H);var P=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(H.start,H.end,.5),j!==!1&&this.renderer.animateScrolling(P)},F.prototype.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},F.prototype.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},F.prototype.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(H){H.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},F.prototype.setAutoScrollEditorIntoView=function(H){if(H){var j,P=this,ee=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var J=this.$scrollAnchor;J.style.cssText="position:absolute",this.container.insertBefore(J,this.container.firstChild);var K=this.on("changeSelection",function(){ee=!0}),ae=this.renderer.on("beforeRender",function(){ee&&(j=P.renderer.container.getBoundingClientRect())}),Q=this.renderer.on("afterRender",function(){if(ee&&j&&(P.isFocused()||P.searchBox&&P.searchBox.isFocused())){var he=P.renderer,ge=he.$cursorLayer.$pixelPos,Se=he.layerConfig,ce=ge.top-Se.offset;ge.top>=0&&ce+j.top<0?ee=!0:ge.topwindow.innerHeight?ee=!1:ee=null,ee!=null&&(J.style.top=ce+"px",J.style.left=ge.left+"px",J.style.height=Se.lineHeight+"px",J.scrollIntoView(ee)),ee=j=null}});this.setAutoScrollEditorIntoView=function(he){he||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",K),this.renderer.off("afterRender",Q),this.renderer.off("beforeRender",ae))}}},F.prototype.$resetCursorStyle=function(){var H=this.$cursorStyle||"ace",j=this.renderer.$cursorLayer;j&&(j.setSmoothBlinking(/smooth/.test(H)),j.isBlinking=!this.$readOnly&&H!="wide",A.setCssClass(j.element,"ace_slim-cursors",/slim/.test(H)))},F.prototype.prompt=function(H,j,P){var ee=this;_.loadModule("ace/ext/prompt",function(J){J.prompt(ee,H,j,P)})},F}();k.$uid=0,k.prototype.curOp=null,k.prototype.prevOp={},k.prototype.$mergeableCommands=["backspace","del","insertstring"],k.prototype.$toggleWordPairs=[["first","last"],["true","false"],["yes","no"],["width","height"],["top","bottom"],["right","left"],["on","off"],["x","y"],["get","set"],["max","min"],["horizontal","vertical"],["show","hide"],["add","remove"],["up","down"],["before","after"],["even","odd"],["in","out"],["inside","outside"],["next","previous"],["increase","decrease"],["attach","detach"],["&&","||"],["==","!="]],L.implement(k.prototype,v),_.defineOptions(k.prototype,"editor",{selectionStyle:{set:function(F){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:F})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(F){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(F){this.textInput.setReadOnly(F),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(F){this.textInput.setCopyWithEmptySelection(F)},initialValue:!1},cursorStyle:{set:function(F){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(F){this.setAutoScrollEditorIntoView(F)}},keyboardHandler:{set:function(F){this.setKeyboardHandler(F)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(F){this.session.setValue(F)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(F){this.setSession(F)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(F){this.renderer.$gutterLayer.setShowLineNumbers(F),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),F&&this.$relativeLineNumbers?R.attach(this):R.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(F){this.$showLineNumbers&&F?R.attach(this):R.detach(this)}},placeholder:{set:function(F){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var H=this.session&&(this.renderer.$composition||this.session.getLength()>1||this.session.getLine(0).length>0);if(H&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),A.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(!H&&!this.renderer.placeholderNode){this.renderer.on("afterRender",this.$updatePlaceholder),A.addCssClass(this.container,"ace_hasPlaceholder");var j=A.createElement("div");j.className="ace_placeholder",j.textContent=this.$placeholder||"",this.renderer.placeholderNode=j,this.renderer.content.appendChild(this.renderer.placeholderNode)}else!H&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"")}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},enableKeyboardAccessibility:{set:function(F){var H={name:"blurTextInput",description:"Set focus to the editor content div to allow tabbing through the page",bindKey:"Esc",exec:function(ee){ee.blur(),ee.renderer.scroller.focus()},readOnly:!0},j=function(ee){if(ee.target==this.renderer.scroller&&ee.keyCode===M.enter){ee.preventDefault();var J=this.getCursorPosition().row;this.isRowVisible(J)||this.scrollToLine(J,!0,!0),this.focus()}},P;F?(this.renderer.enableKeyboardAccessibility=!0,this.renderer.keyboardFocusClassName="ace_keyboard-focus",this.textInput.getElement().setAttribute("tabindex",-1),this.textInput.setNumberOfExtraLines(m.isWin?3:0),this.renderer.scroller.setAttribute("tabindex",0),this.renderer.scroller.setAttribute("role","group"),this.renderer.scroller.setAttribute("aria-roledescription",D("editor")),this.renderer.scroller.classList.add(this.renderer.keyboardFocusClassName),this.renderer.scroller.setAttribute("aria-label",D("Editor content, press Enter to start editing, press Escape to exit")),this.renderer.scroller.addEventListener("keyup",j.bind(this)),this.commands.addCommand(H),this.renderer.$gutter.setAttribute("tabindex",0),this.renderer.$gutter.setAttribute("aria-hidden",!1),this.renderer.$gutter.setAttribute("role","group"),this.renderer.$gutter.setAttribute("aria-roledescription",D("editor")),this.renderer.$gutter.setAttribute("aria-label",D("Editor gutter, press Enter to interact with controls using arrow keys, press Escape to exit")),this.renderer.$gutter.classList.add(this.renderer.keyboardFocusClassName),this.renderer.content.setAttribute("aria-hidden",!0),P||(P=new O(this)),P.addListener()):(this.renderer.enableKeyboardAccessibility=!1,this.textInput.getElement().setAttribute("tabindex",0),this.textInput.setNumberOfExtraLines(0),this.renderer.scroller.setAttribute("tabindex",-1),this.renderer.scroller.removeAttribute("role"),this.renderer.scroller.removeAttribute("aria-roledescription"),this.renderer.scroller.classList.remove(this.renderer.keyboardFocusClassName),this.renderer.scroller.removeAttribute("aria-label"),this.renderer.scroller.removeEventListener("keyup",j.bind(this)),this.commands.removeCommand(H),this.renderer.content.removeAttribute("aria-hidden"),this.renderer.$gutter.setAttribute("tabindex",-1),this.renderer.$gutter.setAttribute("aria-hidden",!0),this.renderer.$gutter.removeAttribute("role"),this.renderer.$gutter.removeAttribute("aria-roledescription"),this.renderer.$gutter.removeAttribute("aria-label"),this.renderer.$gutter.classList.remove(this.renderer.keyboardFocusClassName),P&&P.removeListener())},initialValue:!1},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",useResizeObserver:"renderer",useSvgGutterIcons:"renderer",showFoldedAnnotations:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var R={getText:function(F,H){return(Math.abs(F.selection.lead.row-H)||H+1+(H<9?"·":""))+""},getWidth:function(F,H,j){return Math.max(H.toString().length,(j.lastRow+1).toString().length,2)*j.characterWidth},update:function(F,H){H.renderer.$loop.schedule(H.renderer.CHANGE_GUTTER)},attach:function(F){F.renderer.$gutterLayer.$renderer=this,F.on("changeSelection",this.update),this.update(null,F)},detach:function(F){F.renderer.$gutterLayer.$renderer==this&&(F.renderer.$gutterLayer.$renderer=null),F.off("changeSelection",this.update),this.update(null,F)}};T.Editor=k}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(y,T,G){var V=function(){function $(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()}return $.prototype.addSession=function(S){this.$session=S},$.prototype.add=function(S,O,D){if(!this.$fromUndo&&S!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),O===!1||!this.lastDeltas){this.lastDeltas=[];var N=this.$undoStack.length;N>this.$undoDepth-1&&this.$undoStack.splice(0,N-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),S.id=this.$rev=++this.$maxRev}(S.action=="remove"||S.action=="insert")&&(this.$lastDelta=S),this.lastDeltas.push(S)}},$.prototype.addSelection=function(S,O){this.selections.push({value:S,rev:O||this.$rev})},$.prototype.startNewGroup=function(){return this.lastDeltas=null,this.$rev},$.prototype.markIgnored=function(S,O){O==null&&(O=this.$rev+1);for(var D=this.$undoStack,N=D.length;N--;){var M=D[N][0];if(M.id<=S)break;M.id0},$.prototype.canRedo=function(){return this.$redoStack.length>0},$.prototype.bookmark=function(S){S==null&&(S=this.$rev),this.mark=S},$.prototype.isAtBookmark=function(){return this.$rev===this.mark},$.prototype.toJSON=function(){},$.prototype.fromJSON=function(){},$.prototype.$prettyPrint=function(S){return S?l(S):l(this.$undoStack)+` ---- -`+l(this.$redoStack)},$}();V.prototype.hasUndo=V.prototype.canUndo,V.prototype.hasRedo=V.prototype.canRedo,V.prototype.isClean=V.prototype.isAtBookmark,V.prototype.markClean=V.prototype.bookmark;function L($,S){for(var O=S;O--;){var D=$[O];if(D&&!D[0].ignore){for(;O"+$.end.row+":"+$.end.column}function i($,S){var O=$.action=="insert",D=S.action=="insert";if(O&&D)if(s(S.start,$.end)>=0)g(S,$,-1);else if(s(S.start,$.start)<=0)g($,S,1);else return null;else if(O&&!D)if(s(S.start,$.end)>=0)g(S,$,-1);else if(s(S.end,$.start)<=0)g($,S,-1);else return null;else if(!O&&D)if(s(S.start,$.start)>=0)g(S,$,1);else if(s(S.start,$.start)<=0)g($,S,1);else return null;else if(!O&&!D)if(s(S.start,$.start)>=0)g(S,$,1);else if(s(S.end,$.start)<=0)g($,S,-1);else return null;return[S,$]}function u($,S){for(var O=$.length;O--;)for(var D=0;D=0?g($,S,-1):(s($.start,S.start)<=0||g($,A.fromPoints(S.start,$.start),-1),g(S,$,1));else if(!O&&D)s(S.start,$.end)>=0?g(S,$,-1):(s(S.start,$.start)<=0||g(S,A.fromPoints($.start,S.start),-1),g($,S,1));else if(!O&&!D)if(s(S.start,$.end)>=0)g(S,$,-1);else if(s(S.end,$.start)<=0)g($,S,-1);else{var N,M;return s($.start,S.start)<0&&(N=$,$=x($,S.start)),s($.end,S.end)>0&&(M=x($,S.end)),v(S.end,$.start,$.end,-1),M&&!N&&($.lines=M.lines,$.start=M.start,$.end=M.end,M=$),[S,N,M].filter(Boolean)}return[S,$]}function g($,S,O){v($.start,S.start,S.end,O),v($.end,S.start,S.end,O)}function v($,S,O,D){$.row==(D==1?S:O).row&&($.column+=D*(O.column-S.column)),$.row+=D*(O.row-S.row)}function x($,S){var O=$.lines,D=$.end;$.end=m(S);var N=$.end.row-$.start.row,M=O.splice(N,O.length),k=N?S.column:S.column-$.start.column;O.push(M[0].substring(0,k)),M[0]=M[0].substr(k);var R={start:m(S),end:D,lines:M,action:$.action};return R}function C($,S){S=h(S);for(var O=$.length;O--;){for(var D=$[O],N=0;NC&&(S=x.end.row+1,x=d.getNextFoldLine(S,x),C=x?x.start.row:1/0),S>v){for(;this.$lines.getLength()>$+1;)this.$lines.pop();break}_=this.$lines.get(++$),_?_.row=S:(_=this.$lines.createCell(S,u,this.session,c),this.$lines.push(_)),this.$renderCell(_,u,x,S),S++}this._signal("afterRender"),this.$updateGutterWidth(u)},i.prototype.$updateGutterWidth=function(u){var d=this.session,g=d.gutterRenderer||this.$renderer,v=d.$firstLineNumber,x=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||d.$useWrapMode)&&(x=d.getLength()+v-1);var C=g?g.getWidth(d,x,u):x.toString().length*u.characterWidth,_=this.$padding||this.$computePadding();C+=_.left+_.right,C!==this.gutterWidth&&!isNaN(C)&&(this.gutterWidth=C,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",C))},i.prototype.$updateCursorRow=function(){if(this.$highlightGutterLine){var u=this.session.selection.getCursor();this.$cursorRow!==u.row&&(this.$cursorRow=u.row)}},i.prototype.updateLineHighlight=function(){if(this.$highlightGutterLine){var u=this.session.selection.cursor.row;if(this.$cursorRow=u,!(this.$cursorCell&&this.$cursorCell.row==u)){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var d=this.$lines.cells;this.$cursorCell=null;for(var g=0;g=this.$cursorRow){if(v.row>this.$cursorRow){var x=this.session.getFoldLine(this.$cursorRow);if(g>0&&x&&x.start.row==d[g-1].row)v=d[g-1];else break}v.element.className="ace_gutter-active-line "+v.element.className,this.$cursorCell=v;break}}}}},i.prototype.scrollLines=function(u){var d=this.config;if(this.config=u,this.$updateCursorRow(),this.$lines.pageChanged(d,u))return this.update(u);this.$lines.moveContainer(u);var g=Math.min(u.lastRow+u.gutterOffset,this.session.getLength()-1),v=this.oldLastRow;if(this.oldLastRow=g,!d||v0;x--)this.$lines.shift();if(v>g)for(var x=this.session.getFoldedRowCount(g+1,v);x>0;x--)this.$lines.pop();u.firstRowv&&this.$lines.push(this.$renderLines(u,v+1,g)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(u)},i.prototype.$renderLines=function(u,d,g){for(var v=[],x=d,C=this.session.getNextFoldLine(x),_=C?C.start.row:1/0;x>_&&(x=C.end.row+1,C=this.session.getNextFoldLine(x,C),_=C?C.start.row:1/0),!(x>g);){var $=this.$lines.createCell(x,u,this.session,c);this.$renderCell($,u,C,x),v.push($),x++}return v},i.prototype.$renderCell=function(u,d,g,v){var x=u.element,C=this.session,_=x.childNodes[0],$=x.childNodes[1],S=x.childNodes[2],O=S.firstChild,D=C.$firstLineNumber,N=C.$breakpoints,M=C.$decorations,k=C.gutterRenderer||this.$renderer,R=this.$showFoldWidgets&&C.foldWidgets,F=g?g.start.row:Number.MAX_VALUE,H=d.lineHeight+"px",j=this.$useSvgGutterIcons?"ace_gutter-cell_svg-icons ":"ace_gutter-cell ",P=this.$useSvgGutterIcons?"ace_icon_svg":"ace_icon",ee=(k?k.getText(C,v):v+D).toString();if(this.$highlightGutterLine&&(v==this.$cursorRow||g&&v=F&&this.$cursorRow<=g.end.row)&&(j+="ace_gutter-active-line ",this.$cursorCell!=u&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=u)),N[v]&&(j+=N[v]),M[v]&&(j+=M[v]),this.$annotations[v]&&v!==F&&(j+=this.$annotations[v].className),R){var J=R[v];J==null&&(J=R[v]=C.getFoldWidget(v))}if(J){var K="ace_fold-widget ace_"+J,ae=J=="start"&&v==F&&vg.right-d.right)return"foldWidgets"},i}();l.prototype.$fixedWidth=!1,l.prototype.$highlightGutterLine=!0,l.prototype.$renderer="",l.prototype.$showLineNumbers=!0,l.prototype.$showFoldWidgets=!0,L.implement(l.prototype,s);function c(i){var u=document.createTextNode("");i.appendChild(u);var d=V.createElement("span");i.appendChild(d);var g=V.createElement("span");i.appendChild(g);var v=V.createElement("span");return g.appendChild(v),i}T.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(y,T,G){var V=y("../range").Range,L=y("../lib/dom"),A=function(){function m(h){this.element=L.createElement("div"),this.element.className="ace_layer ace_marker-layer",h.appendChild(this.element)}return m.prototype.setPadding=function(h){this.$padding=h},m.prototype.setSession=function(h){this.session=h},m.prototype.setMarkers=function(h){this.markers=h},m.prototype.elt=function(h,l){var c=this.i!=-1&&this.element.childNodes[this.i];c?this.i++:(c=document.createElement("div"),this.element.appendChild(c),this.i=-1),c.style.cssText=l,c.className=h},m.prototype.update=function(h){if(h){this.config=h,this.i=0;var l;for(var c in this.markers){var i=this.markers[c];if(!i.range){i.update(l,this,this.session,h);continue}var u=i.range.clipRows(h.firstRow,h.lastRow);if(!u.isEmpty())if(u=u.toScreenRange(this.session),i.renderer){var d=this.$getTop(u.start.row,h),g=this.$padding+u.start.column*h.characterWidth;i.renderer(l,u,g,d,h)}else i.type=="fullLine"?this.drawFullLineMarker(l,u,i.clazz,h):i.type=="screenLine"?this.drawScreenLineMarker(l,u,i.clazz,h):u.isMultiLine()?i.type=="text"?this.drawTextMarker(l,u,i.clazz,h):this.drawMultiLineMarker(l,u,i.clazz,h):this.drawSingleLineMarker(l,u,i.clazz+" ace_start ace_br15",h)}if(this.i!=-1)for(;this.i$,x==v),i,x==v?0:1,u)},m.prototype.drawMultiLineMarker=function(h,l,c,i,u){var d=this.$padding,g=i.lineHeight,v=this.$getTop(l.start.row,i),x=d+l.start.column*i.characterWidth;if(u=u||"",this.session.$bidiHandler.isBidiRow(l.start.row)){var C=l.clone();C.end.row=C.start.row,C.end.column=this.session.getLine(C.start.row).length,this.drawBidiSingleLineMarker(h,C,c+" ace_br1 ace_start",i,null,u)}else this.elt(c+" ace_br1 ace_start","height:"+g+"px;right:0;top:"+v+"px;left:"+x+"px;"+(u||""));if(this.session.$bidiHandler.isBidiRow(l.end.row)){var C=l.clone();C.start.row=C.end.row,C.start.column=0,this.drawBidiSingleLineMarker(h,C,c+" ace_br12",i,null,u)}else{v=this.$getTop(l.end.row,i);var _=l.end.column*i.characterWidth;this.elt(c+" ace_br12","height:"+g+"px;width:"+_+"px;top:"+v+"px;left:"+d+"px;"+(u||""))}if(g=(l.end.row-l.start.row-1)*i.lineHeight,!(g<=0)){v=this.$getTop(l.start.row+1,i);var $=(l.start.column?1:0)|(l.end.column?0:8);this.elt(c+($?" ace_br"+$:""),"height:"+g+"px;right:0;top:"+v+"px;left:"+d+"px;"+(u||""))}},m.prototype.drawSingleLineMarker=function(h,l,c,i,u,d){if(this.session.$bidiHandler.isBidiRow(l.start.row))return this.drawBidiSingleLineMarker(h,l,c,i,u,d);var g=i.lineHeight,v=(l.end.column+(u||0)-l.start.column)*i.characterWidth,x=this.$getTop(l.start.row,i),C=this.$padding+l.start.column*i.characterWidth;this.elt(c,"height:"+g+"px;width:"+v+"px;top:"+x+"px;left:"+C+"px;"+(d||""))},m.prototype.drawBidiSingleLineMarker=function(h,l,c,i,u,d){var g=i.lineHeight,v=this.$getTop(l.start.row,i),x=this.$padding,C=this.session.$bidiHandler.getSelections(l.start.column,l.end.column);C.forEach(function(_){this.elt(c,"height:"+g+"px;width:"+(_.width+(u||0))+"px;top:"+v+"px;left:"+(x+_.left)+"px;"+(d||""))},this)},m.prototype.drawFullLineMarker=function(h,l,c,i,u){var d=this.$getTop(l.start.row,i),g=i.lineHeight;l.start.row!=l.end.row&&(g+=this.$getTop(l.end.row,i)-d),this.elt(c,"height:"+g+"px;top:"+d+"px;left:0;right:0;"+(u||""))},m.prototype.drawScreenLineMarker=function(h,l,c,i,u){var d=this.$getTop(l.start.row,i),g=i.lineHeight;this.elt(c,"height:"+g+"px;top:"+d+"px;left:0;right:0;"+(u||""))},m}();A.prototype.$padding=0;function s(m,h,l,c){return(m?1:0)|(h?2:0)|(l?4:0)|(c?8:0)}T.Marker=A}),ace.define("ace/layer/text_util",["require","exports","module"],function(y,T,G){var V=new Set(["text","rparen","lparen"]);T.isTextToken=function(L){return V.has(L)}}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter","ace/config","ace/layer/text_util"],function(y,T,G){var V=y("../lib/oop"),L=y("../lib/dom"),A=y("../lib/lang"),s=y("./lines").Lines,m=y("../lib/event_emitter").EventEmitter,h=y("../config").nls,l=y("./text_util").isTextToken,c=function(){function i(u){this.dom=L,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",u.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new s(this.element)}return i.prototype.$updateEolChar=function(){var u=this.session.doc,d=u.getNewLineCharacter()==` -`&&u.getNewLineMode()!="windows",g=d?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=g)return this.EOL_CHAR=g,!0},i.prototype.setPadding=function(u){this.$padding=u,this.element.style.margin="0 "+u+"px"},i.prototype.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},i.prototype.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},i.prototype.$setFontMetrics=function(u){this.$fontMetrics=u,this.$fontMetrics.on("changeCharacterSize",(function(d){this._signal("changeCharacterSize",d)}).bind(this)),this.$pollSizeChanges()},i.prototype.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},i.prototype.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},i.prototype.setSession=function(u){this.session=u,u&&this.$computeTabString()},i.prototype.setShowInvisibles=function(u){return this.showInvisibles==u?!1:(this.showInvisibles=u,typeof u=="string"?(this.showSpaces=/tab/i.test(u),this.showTabs=/space/i.test(u),this.showEOL=/eol/i.test(u)):this.showSpaces=this.showTabs=this.showEOL=u,this.$computeTabString(),!0)},i.prototype.setDisplayIndentGuides=function(u){return this.displayIndentGuides==u?!1:(this.displayIndentGuides=u,this.$computeTabString(),!0)},i.prototype.setHighlightIndentGuides=function(u){return this.$highlightIndentGuides===u?!1:(this.$highlightIndentGuides=u,u)},i.prototype.$computeTabString=function(){var u=this.session.getTabSize();this.tabSize=u;for(var d=this.$tabStrings=[0],g=1;gD&&(S=O.end.row+1,O=this.session.getNextFoldLine(S,O),D=O?O.start.row:1/0),!(S>x);){var N=C[_++];if(N){this.dom.removeChildren(N),this.$renderLine(N,S,S==D?O:!1),$&&(N.style.top=this.$lines.computeLineTop(S,u,this.session)+"px");var M=u.lineHeight*this.session.getRowLength(S)+"px";N.style.height!=M&&($=!0,N.style.height=M)}S++}if($)for(;_0;x--)this.$lines.shift();if(d.lastRow>u.lastRow)for(var x=this.session.getFoldedRowCount(u.lastRow+1,d.lastRow);x>0;x--)this.$lines.pop();u.firstRowd.lastRow&&this.$lines.push(this.$renderLinesFragment(u,d.lastRow+1,u.lastRow)),this.$highlightIndentGuide()},i.prototype.$renderLinesFragment=function(u,d,g){for(var v=[],x=d,C=this.session.getNextFoldLine(x),_=C?C.start.row:1/0;x>_&&(x=C.end.row+1,C=this.session.getNextFoldLine(x,C),_=C?C.start.row:1/0),!(x>g);){var $=this.$lines.createCell(x,u,this.session),S=$.element;this.dom.removeChildren(S),L.setStyle(S.style,"height",this.$lines.computeLineHeight(x,u,this.session)+"px"),L.setStyle(S.style,"top",this.$lines.computeLineTop(x,u,this.session)+"px"),this.$renderLine(S,x,x==_?C:!1),this.$useLineGroups()?S.className="ace_line_group":S.className="ace_line",v.push($),x++}return v},i.prototype.update=function(u){this.$lines.moveContainer(u),this.config=u;for(var d=u.firstRow,g=u.lastRow,v=this.$lines;v.getLength();)v.pop();v.push(this.$renderLinesFragment(u,d,g))},i.prototype.$renderToken=function(u,d,g,v){for(var x=this,C=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,_=this.dom.createFragment(this.element),$,S=0;$=C.exec(v);){var O=$[1],D=$[2],N=$[3],M=$[4],k=$[5];if(!(!x.showSpaces&&D)){var R=S!=$.index?v.slice(S,$.index):"";if(S=$.index+$[0].length,R&&_.appendChild(this.dom.createTextNode(R,this.element)),O){var F=x.session.getScreenTabSize(d+$.index);_.appendChild(x.$tabStrings[F].cloneNode(!0)),d+=F-1}else if(D)if(x.showSpaces){var H=this.dom.createElement("span");H.className="ace_invisible ace_invisible_space",H.textContent=A.stringRepeat(x.SPACE_CHAR,D.length),_.appendChild(H)}else _.appendChild(this.dom.createTextNode(D,this.element));else if(N){var H=this.dom.createElement("span");H.className="ace_invisible ace_invisible_space ace_invalid",H.textContent=A.stringRepeat(x.SPACE_CHAR,N.length),_.appendChild(H)}else if(M){d+=1;var H=this.dom.createElement("span");H.style.width=x.config.characterWidth*2+"px",H.className=x.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",H.textContent=x.showSpaces?x.SPACE_CHAR:M,_.appendChild(H)}else if(k){d+=1;var H=this.dom.createElement("span");H.style.width=x.config.characterWidth*2+"px",H.className="ace_cjk",H.textContent=k,_.appendChild(H)}}}if(_.appendChild(this.dom.createTextNode(S?v.slice(S):v,this.element)),l(g.type))u.appendChild(_);else{var j="ace_"+g.type.replace(/\./g," ace_"),H=this.dom.createElement("span");g.type=="fold"&&(H.style.width=g.value.length*this.config.characterWidth+"px",H.setAttribute("title",h("Unfold code"))),H.className=j,H.appendChild(_),u.appendChild(H)}return d+v.length},i.prototype.renderIndentGuide=function(u,d,g){var v=d.search(this.$indentGuideRe);if(v<=0||v>=g)return d;if(d[0]==" "){v-=v%this.tabSize;for(var x=v/this.tabSize,C=0;CC[_].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&u[d.row]!==""&&d.column===u[d.row].length){this.$highlightIndentGuideMarker.dir=1;for(var _=d.row+1;_0){for(var x=0;x=this.$highlightIndentGuideMarker.start+1){if(v.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(v,d)}}else for(var g=u.length-1;g>=0;g--){var v=u[g];if(this.$highlightIndentGuideMarker.end&&v.row=C;)_=this.$renderToken($,_,O,D.substring(0,C-v)),D=D.substring(C-v),v=C,$=this.$createLineElement(),u.appendChild($),$.appendChild(this.dom.createTextNode(A.stringRepeat(" ",g.indent),this.element)),x++,_=0,C=g[x]||Number.MAX_VALUE;D.length!=0&&(v+=D.length,_=this.$renderToken($,_,O,D))}}g[g.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage($,_,null,"",!0)},i.prototype.$renderSimpleLine=function(u,d){for(var g=0,v=0;vthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(u,g,x,C);g=this.$renderToken(u,g,x,C)}}},i.prototype.$renderOverflowMessage=function(u,d,g,v,x){g&&this.$renderToken(u,d,g,v.slice(0,this.MAX_LINE_LENGTH-d));var C=this.dom.createElement("span");C.className="ace_inline_button ace_keyword ace_toggle_wrap",C.textContent=x?"":"",u.appendChild(C)},i.prototype.$renderLine=function(u,d,g){if(!g&&g!=!1&&(g=this.session.getFoldLine(d)),g)var v=this.$getFoldLineTokens(d,g);else var v=this.session.getTokens(d);var x=u;if(v.length){var C=this.session.getRowSplitData(d);if(C&&C.length){this.$renderWrappedLine(u,v,C);var x=u.lastChild}else{var x=u;this.$useLineGroups()&&(x=this.$createLineElement(),u.appendChild(x)),this.$renderSimpleLine(x,v)}}else this.$useLineGroups()&&(x=this.$createLineElement(),u.appendChild(x));if(this.showEOL&&x){g&&(d=g.end.row);var _=this.dom.createElement("span");_.className="ace_invisible ace_invisible_eol",_.textContent=d==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,x.appendChild(_)}},i.prototype.$getFoldLineTokens=function(u,d){var g=this.session,v=[];function x(_,$,S){for(var O=0,D=0;D+_[O].value.length<$;)if(D+=_[O].value.length,O++,O==_.length)return;if(D!=$){var N=_[O].value.substring($-D);N.length>S-$&&(N=N.substring(0,S-$)),v.push({type:_[O].type,value:N}),D=$+N.length,O+=1}for(;DS?v.push({type:_[O].type,value:N.substring(0,S-D)}):v.push(_[O]),D+=N.length,O+=1}}var C=g.getTokens(u);return d.walk(function(_,$,S,O,D){_!=null?v.push({type:"fold",value:_}):(D&&(C=g.getTokens($)),C.length&&x(C,O,S))},d.end.row,this.session.getLine(d.end.row).length),v},i.prototype.$useLineGroups=function(){return this.session.getUseWrapMode()},i}();c.prototype.EOF_CHAR="¶",c.prototype.EOL_CHAR_LF="¬",c.prototype.EOL_CHAR_CRLF="¤",c.prototype.EOL_CHAR=c.prototype.EOL_CHAR_LF,c.prototype.TAB_CHAR="—",c.prototype.SPACE_CHAR="·",c.prototype.$padding=0,c.prototype.MAX_LINE_LENGTH=1e4,c.prototype.showInvisibles=!1,c.prototype.showSpaces=!1,c.prototype.showTabs=!1,c.prototype.showEOL=!1,c.prototype.displayIndentGuides=!0,c.prototype.$highlightIndentGuides=!0,c.prototype.$tabStrings=[],c.prototype.destroy={},c.prototype.onChangeTabSize=c.prototype.$computeTabString,V.implement(c.prototype,m),T.Text=c}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(y,T,G){var V=y("../lib/dom"),L=function(){function A(s){this.element=V.createElement("div"),this.element.className="ace_layer ace_cursor-layer",s.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),V.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}return A.prototype.$updateOpacity=function(s){for(var m=this.cursors,h=m.length;h--;)V.setStyle(m[h].style,"opacity",s?"":"0")},A.prototype.$startCssAnimation=function(){for(var s=this.cursors,m=s.length;m--;)s[m].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&V.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},A.prototype.$stopCssAnimation=function(){this.$isAnimating=!1,V.removeCssClass(this.element,"ace_animate-blinking")},A.prototype.setPadding=function(s){this.$padding=s},A.prototype.setSession=function(s){this.session=s},A.prototype.setBlinking=function(s){s!=this.isBlinking&&(this.isBlinking=s,this.restartTimer())},A.prototype.setBlinkInterval=function(s){s!=this.blinkInterval&&(this.blinkInterval=s,this.restartTimer())},A.prototype.setSmoothBlinking=function(s){s!=this.smoothBlinking&&(this.smoothBlinking=s,V.setCssClass(this.element,"ace_smooth-blinking",s),this.$updateCursors(!0),this.restartTimer())},A.prototype.addCursor=function(){var s=V.createElement("div");return s.className="ace_cursor",this.element.appendChild(s),this.cursors.push(s),s},A.prototype.removeCursor=function(){if(this.cursors.length>1){var s=this.cursors.pop();return s.parentNode.removeChild(s),s}},A.prototype.hideCursor=function(){this.isVisible=!1,V.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},A.prototype.showCursor=function(){this.isVisible=!0,V.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},A.prototype.restartTimer=function(){var s=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,V.removeCssClass(this.element,"ace_smooth-blinking")),s(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&V.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),V.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var m=(function(){this.timeoutId=setTimeout(function(){s(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){s(!0),m()},this.blinkInterval),m()}},A.prototype.getPixelPosition=function(s,m){if(!this.config||!this.session)return{left:0,top:0};s||(s=this.session.selection.getCursor());var h=this.session.documentToScreenPosition(s),l=this.$padding+(this.session.$bidiHandler.isBidiRow(h.row,s.row)?this.session.$bidiHandler.getPosLeft(h.column):h.column*this.config.characterWidth),c=(h.row-(m?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:l,top:c}},A.prototype.isCursorInView=function(s,m){return s.top>=0&&s.tops.height+s.offset||i.top<0)&&h>1)){var u=this.cursors[l++]||this.addCursor(),d=u.style;this.drawCursor?this.drawCursor(u,i,s,m[h],this.session):this.isCursorInView(i,s)?(V.setStyle(d,"display","block"),V.translate(u,i.left,i.top),V.setStyle(d,"width",Math.round(s.characterWidth)+"px"),V.setStyle(d,"height",s.lineHeight+"px")):V.setStyle(d,"display","none")}}for(;this.cursors.length>l;)this.removeCursor();var g=this.session.getOverwrite();this.$setOverwrite(g),this.$pixelPos=i,this.restartTimer()},A.prototype.$setOverwrite=function(s){s!=this.overwrite&&(this.overwrite=s,s?V.addCssClass(this.element,"ace_overwrite-cursors"):V.removeCssClass(this.element,"ace_overwrite-cursors"))},A.prototype.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)},A}();L.prototype.$padding=0,L.prototype.drawCursor=null,T.Cursor=L}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(y,T,G){var V=this&&this.__extends||function(){var u=function(d,g){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var C in x)Object.prototype.hasOwnProperty.call(x,C)&&(v[C]=x[C])},u(d,g)};return function(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");u(d,g);function v(){this.constructor=d}d.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}}(),L=y("./lib/oop"),A=y("./lib/dom"),s=y("./lib/event"),m=y("./lib/event_emitter").EventEmitter,h=32768,l=function(){function u(d,g){this.element=A.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+g,this.inner=A.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),d.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addListener(this.element,"scroll",this.onScroll.bind(this)),s.addListener(this.element,"mousedown",s.preventDefault)}return u.prototype.setVisible=function(d){this.element.style.display=d?"":"none",this.isVisible=d,this.coeff=1},u}();L.implement(l.prototype,m);var c=function(u){V(d,u);function d(g,v){var x=u.call(this,g,"-v")||this;return x.scrollTop=0,x.scrollHeight=0,v.$scrollbarWidth=x.width=A.scrollbarWidth(g.ownerDocument),x.inner.style.width=x.element.style.width=(x.width||15)+5+"px",x.$minWidth=0,x}return d.prototype.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var g=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-g)/(this.coeff-g)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},d.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},d.prototype.setHeight=function(g){this.element.style.height=g+"px"},d.prototype.setScrollHeight=function(g){this.scrollHeight=g,g>h?(this.coeff=h/g,g=h):this.coeff!=1&&(this.coeff=1),this.inner.style.height=g+"px"},d.prototype.setScrollTop=function(g){this.scrollTop!=g&&(this.skipEvent=!0,this.scrollTop=g,this.element.scrollTop=g*this.coeff)},d}(l);c.prototype.setInnerHeight=c.prototype.setScrollHeight;var i=function(u){V(d,u);function d(g,v){var x=u.call(this,g,"-h")||this;return x.scrollLeft=0,x.height=v.$scrollbarWidth,x.inner.style.height=x.element.style.height=(x.height||15)+5+"px",x}return d.prototype.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},d.prototype.getHeight=function(){return this.isVisible?this.height:0},d.prototype.setWidth=function(g){this.element.style.width=g+"px"},d.prototype.setInnerWidth=function(g){this.inner.style.width=g+"px"},d.prototype.setScrollWidth=function(g){this.inner.style.width=g+"px"},d.prototype.setScrollLeft=function(g){this.scrollLeft!=g&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=g)},d}(l);T.ScrollBar=c,T.ScrollBarV=c,T.ScrollBarH=i,T.VScrollBar=c,T.HScrollBar=i}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(y,T,G){var V=this&&this.__extends||function(){var i=function(u,d){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var x in v)Object.prototype.hasOwnProperty.call(v,x)&&(g[x]=v[x])},i(u,d)};return function(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");i(u,d);function g(){this.constructor=u}u.prototype=d===null?Object.create(d):(g.prototype=d.prototype,new g)}}(),L=y("./lib/oop"),A=y("./lib/dom"),s=y("./lib/event"),m=y("./lib/event_emitter").EventEmitter;A.importCssString(`.ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{ - position: absolute; - background: rgba(128, 128, 128, 0.6); - -moz-box-sizing: border-box; - box-sizing: border-box; - border: 1px solid #bbb; - border-radius: 2px; - z-index: 8; -} -.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h { - position: absolute; - z-index: 6; - background: none; - overflow: hidden!important; -} -.ace_editor>.ace_sb-v { - z-index: 6; - right: 0; - top: 0; - width: 12px; -} -.ace_editor>.ace_sb-v div { - z-index: 8; - right: 0; - width: 100%; -} -.ace_editor>.ace_sb-h { - bottom: 0; - left: 0; - height: 12px; -} -.ace_editor>.ace_sb-h div { - bottom: 0; - height: 100%; -} -.ace_editor>.ace_sb_grabbed { - z-index: 8; - background: #000; -}`,"ace_scrollbar.css",!1);var h=function(){function i(u,d){this.element=A.createElement("div"),this.element.className="ace_sb"+d,this.inner=A.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,u.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,s.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")}return i.prototype.setVisible=function(u){this.element.style.display=u?"":"none",this.isVisible=u,this.coeff=1},i}();L.implement(h.prototype,m);var l=function(i){V(u,i);function u(d,g){var v=i.call(this,d,"-v")||this;return v.scrollTop=0,v.scrollHeight=0,v.parent=d,v.width=v.VScrollWidth,v.renderer=g,v.inner.style.width=v.element.style.width=(v.width||15)+"px",v.$minWidth=0,v}return u.prototype.onMouseDown=function(d,g){if(d==="mousedown"&&!(s.getButton(g)!==0||g.detail===2)){if(g.target===this.inner){var v=this,x=g.clientY,C=function(M){x=M.clientY},_=function(){clearInterval(D)},$=g.clientY,S=this.thumbTop,O=function(){if(x!==void 0){var M=v.scrollTopFromThumbTop(S+x-$);M!==v.scrollTop&&v._emit("scroll",{data:M})}};s.capture(this.inner,C,_);var D=setInterval(O,20);return s.preventDefault(g)}var N=g.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(N)}),s.preventDefault(g)}},u.prototype.getHeight=function(){return this.height},u.prototype.scrollTopFromThumbTop=function(d){var g=d*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return g=g>>0,g<0?g=0:g>this.pageHeight-this.viewHeight&&(g=this.pageHeight-this.viewHeight),g},u.prototype.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},u.prototype.setHeight=function(d){this.height=Math.max(0,d),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},u.prototype.setScrollHeight=function(d,g){this.pageHeight===d&&!g||(this.pageHeight=d,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},u.prototype.setScrollTop=function(d){this.scrollTop=d,d<0&&(d=0),this.thumbTop=d*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"},u}(h);l.prototype.setInnerHeight=l.prototype.setScrollHeight;var c=function(i){V(u,i);function u(d,g){var v=i.call(this,d,"-h")||this;return v.scrollLeft=0,v.scrollWidth=0,v.height=v.HScrollHeight,v.inner.style.height=v.element.style.height=(v.height||12)+"px",v.renderer=g,v}return u.prototype.onMouseDown=function(d,g){if(d==="mousedown"&&!(s.getButton(g)!==0||g.detail===2)){if(g.target===this.inner){var v=this,x=g.clientX,C=function(M){x=M.clientX},_=function(){clearInterval(D)},$=g.clientX,S=this.thumbLeft,O=function(){if(x!==void 0){var M=v.scrollLeftFromThumbLeft(S+x-$);M!==v.scrollLeft&&v._emit("scroll",{data:M})}};s.capture(this.inner,C,_);var D=setInterval(O,20);return s.preventDefault(g)}var N=g.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(N)}),s.preventDefault(g)}},u.prototype.getHeight=function(){return this.isVisible?this.height:0},u.prototype.scrollLeftFromThumbLeft=function(d){var g=d*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return g=g>>0,g<0?g=0:g>this.pageWidth-this.viewWidth&&(g=this.pageWidth-this.viewWidth),g},u.prototype.setWidth=function(d){this.width=Math.max(0,d),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},u.prototype.setScrollWidth=function(d,g){this.pageWidth===d&&!g||(this.pageWidth=d,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},u.prototype.setScrollLeft=function(d){this.scrollLeft=d,d<0&&(d=0),this.thumbLeft=d*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"},u}(h);c.prototype.setInnerWidth=c.prototype.setScrollWidth,T.ScrollBar=l,T.ScrollBarV=l,T.ScrollBarH=c,T.VScrollBar=l,T.HScrollBar=c}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(y,T,G){var V=y("./lib/event"),L=function(){function A(s,m){this.onRender=s,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=m||window;var h=this;this._flush=function(l){h.pending=!1;var c=h.changes;if(c&&(V.blockIdle(100),h.changes=0,h.onRender(c)),h.changes){if(h.$recursionLimit--<0)return;h.schedule()}else h.$recursionLimit=2}}return A.prototype.schedule=function(s){this.changes=this.changes|s,this.changes&&!this.pending&&(V.nextFrame(this._flush),this.pending=!0)},A.prototype.clear=function(s){var m=this.changes;return this.changes=0,m},A}();T.RenderLoop=L}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(y,T,G){var V=y("../lib/oop"),L=y("../lib/dom"),A=y("../lib/lang"),s=y("../lib/event"),m=y("../lib/useragent"),h=y("../lib/event_emitter").EventEmitter,l=512,c=typeof ResizeObserver=="function",i=200,u=function(){function d(g){this.el=L.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=L.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=L.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),g.appendChild(this.el),this.$measureNode.textContent=A.stringRepeat("X",l),this.$characterSize={width:0,height:0},c?this.$addObserver():this.checkForSizeChanges()}return d.prototype.$setMeasureNodeStyles=function(g,v){g.width=g.height="auto",g.left=g.top="0px",g.visibility="hidden",g.position="absolute",g.whiteSpace="pre",m.isIE<8?g["font-family"]="inherit":g.font="inherit",g.overflow=v?"hidden":"visible"},d.prototype.checkForSizeChanges=function(g){if(g===void 0&&(g=this.$measureSizes()),g&&(this.$characterSize.width!==g.width||this.$characterSize.height!==g.height)){this.$measureNode.style.fontWeight="bold";var v=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=g,this.charSizes=Object.create(null),this.allowBoldFonts=v&&v.width===g.width&&v.height===g.height,this._emit("changeCharacterSize",{data:g})}},d.prototype.$addObserver=function(){var g=this;this.$observer=new window.ResizeObserver(function(v){g.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},d.prototype.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var g=this;return this.$pollSizeChangesTimer=s.onIdle(function v(){g.checkForSizeChanges(),s.onIdle(v,500)},500)},d.prototype.setPolling=function(g){g?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},d.prototype.$measureSizes=function(g){var v={height:(g||this.$measureNode).clientHeight,width:(g||this.$measureNode).clientWidth/l};return v.width===0||v.height===0?null:v},d.prototype.$measureCharWidth=function(g){this.$main.textContent=A.stringRepeat(g,l);var v=this.$main.getBoundingClientRect();return v.width/l},d.prototype.getCharacterWidth=function(g){var v=this.charSizes[g];return v===void 0&&(v=this.charSizes[g]=this.$measureCharWidth(g)/this.$characterSize.width),v},d.prototype.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},d.prototype.$getZoom=function(g){return!g||!g.parentElement?1:(window.getComputedStyle(g).zoom||1)*this.$getZoom(g.parentElement)},d.prototype.$initTransformMeasureNodes=function(){var g=function(v,x){return["div",{style:"position: absolute;top:"+v+"px;left:"+x+"px;"}]};this.els=L.buildDom([g(0,0),g(i,0),g(0,i),g(i,i)],this.el)},d.prototype.transformCoordinates=function(g,v){if(g){var x=this.$getZoom(this.el);g=S(1/x,g)}function C(ae,Q,he){var ge=ae[1]*Q[0]-ae[0]*Q[1];return[(-Q[1]*he[0]+Q[0]*he[1])/ge,(+ae[1]*he[0]-ae[0]*he[1])/ge]}function _(ae,Q){return[ae[0]-Q[0],ae[1]-Q[1]]}function $(ae,Q){return[ae[0]+Q[0],ae[1]+Q[1]]}function S(ae,Q){return[ae*Q[0],ae*Q[1]]}this.els||this.$initTransformMeasureNodes();function O(ae){var Q=ae.getBoundingClientRect();return[Q.left,Q.top]}var D=O(this.els[0]),N=O(this.els[1]),M=O(this.els[2]),k=O(this.els[3]),R=C(_(k,N),_(k,M),_($(N,M),$(k,D))),F=S(1+R[0],_(N,D)),H=S(1+R[1],_(M,D));if(v){var j=v,P=R[0]*j[0]/i+R[1]*j[1]/i+1,ee=$(S(j[0],F),S(j[1],H));return $(S(1/P/i,ee),D)}var J=_(g,D),K=C(_(F,S(R[0],J)),_(H,S(R[1],J)),J);return S(i,K)},d}();u.prototype.$characterSize={width:0,height:0},V.implement(u.prototype,h),T.FontMetrics=u}),ace.define("ace/css/editor-css",["require","exports","module"],function(y,T,G){G.exports=` -.ace_br1 {border-top-left-radius : 3px;} -.ace_br2 {border-top-right-radius : 3px;} -.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;} -.ace_br4 {border-bottom-right-radius: 3px;} -.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;} -.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;} -.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;} -.ace_br8 {border-bottom-left-radius : 3px;} -.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;} -.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;} -.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} -.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;} - - -.ace_editor { - position: relative; - overflow: hidden; - padding: 0; - font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Source Code Pro', 'source-code-pro', monospace; - direction: ltr; - text-align: left; - -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -} - -.ace_scroller { - position: absolute; - overflow: hidden; - top: 0; - bottom: 0; - background-color: inherit; - -ms-user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; - cursor: text; -} - -.ace_content { - position: absolute; - box-sizing: border-box; - min-width: 100%; - contain: style size layout; - font-variant-ligatures: no-common-ligatures; -} - -.ace_keyboard-focus:focus { - box-shadow: inset 0 0 0 2px #5E9ED6; - outline: none; -} - -.ace_dragging .ace_scroller:before{ - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - content: ''; - background: rgba(250, 250, 250, 0.01); - z-index: 1000; -} -.ace_dragging.ace_dark .ace_scroller:before{ - background: rgba(0, 0, 0, 0.01); -} - -.ace_gutter { - position: absolute; - overflow : hidden; - width: auto; - top: 0; - bottom: 0; - left: 0; - cursor: default; - z-index: 4; - -ms-user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; - contain: style size layout; -} - -.ace_gutter-active-line { - position: absolute; - left: 0; - right: 0; -} - -.ace_scroller.ace_scroll-left:after { - content: ""; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset; - pointer-events: none; -} - -.ace_gutter-cell, .ace_gutter-cell_svg-icons { - position: absolute; - top: 0; - left: 0; - right: 0; - padding-left: 19px; - padding-right: 6px; - background-repeat: no-repeat; -} - -.ace_gutter-cell_svg-icons .ace_gutter_annotation { - margin-left: -14px; - float: left; -} - -.ace_gutter-cell .ace_gutter_annotation { - margin-left: -19px; - float: left; -} - -.ace_gutter-cell.ace_error, .ace_icon.ace_error, .ace_icon.ace_error_fold { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg=="); - background-repeat: no-repeat; - background-position: 2px center; -} - -.ace_gutter-cell.ace_warning, .ace_icon.ace_warning, .ace_icon.ace_warning_fold { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg=="); - background-repeat: no-repeat; - background-position: 2px center; -} - -.ace_gutter-cell.ace_info, .ace_icon.ace_info { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII="); - background-repeat: no-repeat; - background-position: 2px center; -} -.ace_dark .ace_gutter-cell.ace_info, .ace_dark .ace_icon.ace_info { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC"); -} - -.ace_icon_svg.ace_error { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJyZWQiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIj4KPGNpcmNsZSBmaWxsPSJub25lIiBjeD0iOCIgY3k9IjgiIHI9IjciIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPGxpbmUgeDE9IjExIiB5MT0iNSIgeDI9IjUiIHkyPSIxMSIvPgo8bGluZSB4MT0iMTEiIHkxPSIxMSIgeDI9IjUiIHkyPSI1Ii8+CjwvZz4KPC9zdmc+"); - background-color: crimson; -} -.ace_icon_svg.ace_warning { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJkYXJrb3JhbmdlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+Cjxwb2x5Z29uIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGZpbGw9Im5vbmUiIHBvaW50cz0iOCAxIDE1IDE1IDEgMTUgOCAxIi8+CjxyZWN0IHg9IjgiIHk9IjEyIiB3aWR0aD0iMC4wMSIgaGVpZ2h0PSIwLjAxIi8+CjxsaW5lIHgxPSI4IiB5MT0iNiIgeDI9IjgiIHkyPSIxMCIvPgo8L2c+Cjwvc3ZnPg=="); - background-color: darkorange; -} -.ace_icon_svg.ace_info { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiI+CjxnIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlPSJibHVlIiBzaGFwZS1yZW5kZXJpbmc9Imdlb21ldHJpY1ByZWNpc2lvbiI+CjxjaXJjbGUgZmlsbD0ibm9uZSIgY3g9IjgiIGN5PSI4IiByPSI3IiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjxwb2x5bGluZSBwb2ludHM9IjggMTEgOCA4Ii8+Cjxwb2x5bGluZSBwb2ludHM9IjkgOCA2IDgiLz4KPGxpbmUgeDE9IjEwIiB5MT0iMTEiIHgyPSI2IiB5Mj0iMTEiLz4KPHJlY3QgeD0iOCIgeT0iNSIgd2lkdGg9IjAuMDEiIGhlaWdodD0iMC4wMSIvPgo8L2c+Cjwvc3ZnPg=="); - background-color: royalblue; -} - -.ace_icon_svg.ace_error_fold { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSI+CiAgPHBhdGggZD0ibSAxOC45Mjk4NTEsNy44Mjk4MDc2IGMgMC4xNDYzNTMsNi4zMzc0NjA0IC02LjMyMzE0Nyw3Ljc3Nzg0NDQgLTcuNDc3OTEyLDcuNzc3ODQ0NCAtMi4xMDcyNzI2LC0wLjEyODc1IDUuMTE3Njc4LDAuMzU2MjQ5IDUuMDUxNjk4LC03Ljg3MDA2MTggLTAuNjA0NjcyLC04LjAwMzk3MzQ5IC03LjA3NzI3MDYsLTcuNTYzMTE4OSAtNC44NTczLC03LjQzMDM5NTU2IDEuNjA2LC0wLjExNTE0MjI1IDYuODk3NDg1LDEuMjYyNTQ1OTYgNy4yODM1MTQsNy41MjI2MTI5NiB6IiBmaWxsPSJjcmltc29uIiBzdHJva2Utd2lkdGg9IjIiLz4KICA8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0ibSA4LjExNDc1NjIsMi4wNTI5ODI4IGMgMy4zNDkxNjk4LDAgNi4wNjQxMzI4LDIuNjc2ODYyNyA2LjA2NDEzMjgsNS45Nzg5NTMgMCwzLjMwMjExMjIgLTIuNzE0OTYzLDUuOTc4OTIwMiAtNi4wNjQxMzI4LDUuOTc4OTIwMiAtMy4zNDkxNDczLDAgLTYuMDY0MTc3MiwtMi42NzY4MDggLTYuMDY0MTc3MiwtNS45Nzg5MjAyIDAuMDA1MzksLTMuMjk5ODg2MSAyLjcxNzI2NTYsLTUuOTczNjQwOCA2LjA2NDE3NzIsLTUuOTc4OTUzIHogbSAwLC0xLjczNTgyNzE5IGMgLTQuMzIxNDgzNiwwIC03LjgyNDc0MDM4LDMuNDU0MDE4NDkgLTcuODI0NzQwMzgsNy43MTQ3ODAxOSAwLDQuMjYwNzI4MiAzLjUwMzI1Njc4LDcuNzE0NzQ1MiA3LjgyNDc0MDM4LDcuNzE0NzQ1MiA0LjMyMTQ0OTgsMCA3LjgyNDY5OTgsLTMuNDU0MDE3IDcuODI0Njk5OCwtNy43MTQ3NDUyIDAsLTIuMDQ2MDkxNCAtMC44MjQzOTIsLTQuMDA4MzY3MiAtMi4yOTE3NTYsLTUuNDU1MTc0NiBDIDEyLjE4MDIyNSwxLjEyOTk2NDggMTAuMTkwMDEzLDAuMzE3MTU1NjEgOC4xMTQ3NTYyLDAuMzE3MTU1NjEgWiBNIDYuOTM3NDU2Myw4LjI0MDU5ODUgNC42NzE4Njg1LDEwLjQ4NTg1MiA2LjAwODY4MTQsMTEuODc2NzI4IDguMzE3MDAzNSw5LjYwMDc5MTEgMTAuNjI1MzM3LDExLjg3NjcyOCAxMS45NjIxMzgsMTAuNDg1ODUyIDkuNjk2NTUwOCw4LjI0MDU5ODUgMTEuOTYyMTM4LDYuMDA2ODA2NiAxMC41NzMyNDYsNC42Mzc0MzM1IDguMzE3MDAzNSw2Ljg3MzQyOTcgNi4wNjA3NjA3LDQuNjM3NDMzNSA0LjY3MTg2ODUsNi4wMDY4MDY2IFoiIGZpbGw9ImNyaW1zb24iIHN0cm9rZS13aWR0aD0iMiIvPgo8L3N2Zz4="); - background-color: crimson; -} -.ace_icon_svg.ace_warning_fold { - -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC43NzY5IDE0LjczMzdMOC42NTE5MiAyLjQ4MzY5QzguMzI5NDYgMS44Mzg3NyA3LjQwOTEzIDEuODM4NzcgNy4wODY2NyAyLjQ4MzY5TDAuOTYxNjY5IDE0LjczMzdDMC42NzA3NzUgMTUuMzE1NSAxLjA5MzgzIDE2IDEuNzQ0MjkgMTZIMTMuOTk0M0MxNC42NDQ4IDE2IDE1LjA2NzggMTUuMzE1NSAxNC43NzY5IDE0LjczMzdaTTMuMTYwMDcgMTQuMjVMNy44NjkyOSA0LjgzMTU2TDEyLjU3ODUgMTQuMjVIMy4xNjAwN1pNOC43NDQyOSAxMS42MjVWMTMuMzc1SDYuOTk0MjlWMTEuNjI1SDguNzQ0MjlaTTYuOTk0MjkgMTAuNzVWNy4yNUg4Ljc0NDI5VjEwLjc1SDYuOTk0MjlaIiBmaWxsPSIjRUM3MjExIi8+CjxwYXRoIGQ9Ik0xMS4xOTkxIDIuOTUyMzhDMTAuODgwOSAyLjMxNDY3IDEwLjM1MzcgMS44MDUyNiA5LjcwNTUgMS41MDlMMTEuMDQxIDEuMDY5NzhDMTEuNjg4MyAwLjk0OTgxNCAxMi4zMzcgMS4yNzI2MyAxMi42MzE3IDEuODYxNDFMMTcuNjEzNiAxMS44MTYxQzE4LjM1MjcgMTMuMjkyOSAxNy41OTM4IDE1LjA4MDQgMTYuMDE4IDE1LjU3NDVDMTYuNDA0NCAxNC40NTA3IDE2LjMyMzEgMTMuMjE4OCAxNS43OTI0IDEyLjE1NTVMMTEuMTk5MSAyLjk1MjM4WiIgZmlsbD0iI0VDNzIxMSIvPgo8L3N2Zz4="); - background-color: darkorange; -} - -.ace_scrollbar { - contain: strict; - position: absolute; - right: 0; - bottom: 0; - z-index: 6; -} - -.ace_scrollbar-inner { - position: absolute; - cursor: text; - left: 0; - top: 0; -} - -.ace_scrollbar-v{ - overflow-x: hidden; - overflow-y: scroll; - top: 0; -} - -.ace_scrollbar-h { - overflow-x: scroll; - overflow-y: hidden; - left: 0; -} - -.ace_print-margin { - position: absolute; - height: 100%; -} - -.ace_text-input { - position: absolute; - z-index: 0; - width: 0.5em; - height: 1em; - opacity: 0; - background: transparent; - -moz-appearance: none; - appearance: none; - border: none; - resize: none; - outline: none; - overflow: hidden; - font: inherit; - padding: 0 1px; - margin: 0 -1px; - contain: strict; - -ms-user-select: text; - -moz-user-select: text; - -webkit-user-select: text; - user-select: text; - /*with \`pre-line\` chrome inserts   instead of space*/ - white-space: pre!important; -} -.ace_text-input.ace_composition { - background: transparent; - color: inherit; - z-index: 1000; - opacity: 1; -} -.ace_composition_placeholder { color: transparent } -.ace_composition_marker { - border-bottom: 1px solid; - position: absolute; - border-radius: 0; - margin-top: 1px; -} - -[ace_nocontext=true] { - transform: none!important; - filter: none!important; - clip-path: none!important; - mask : none!important; - contain: none!important; - perspective: none!important; - mix-blend-mode: initial!important; - z-index: auto; -} - -.ace_layer { - z-index: 1; - position: absolute; - overflow: hidden; - /* workaround for chrome bug https://github.com/ajaxorg/ace/issues/2312*/ - word-wrap: normal; - white-space: pre; - height: 100%; - width: 100%; - box-sizing: border-box; - /* setting pointer-events: auto; on node under the mouse, which changes - during scroll, will break mouse wheel scrolling in Safari */ - pointer-events: none; -} - -.ace_gutter-layer { - position: relative; - width: auto; - text-align: right; - pointer-events: auto; - height: 1000000px; - contain: style size layout; -} - -.ace_text-layer { - font: inherit !important; - position: absolute; - height: 1000000px; - width: 1000000px; - contain: style size layout; -} - -.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group { - contain: style size layout; - position: absolute; - top: 0; - left: 0; - right: 0; -} - -.ace_hidpi .ace_text-layer, -.ace_hidpi .ace_gutter-layer, -.ace_hidpi .ace_content, -.ace_hidpi .ace_gutter { - contain: strict; -} -.ace_hidpi .ace_text-layer > .ace_line, -.ace_hidpi .ace_text-layer > .ace_line_group { - contain: strict; -} - -.ace_cjk { - display: inline-block; - text-align: center; -} - -.ace_cursor-layer { - z-index: 4; -} - -.ace_cursor { - z-index: 4; - position: absolute; - box-sizing: border-box; - border-left: 2px solid; - /* workaround for smooth cursor repaintng whole screen in chrome */ - transform: translatez(0); -} - -.ace_multiselect .ace_cursor { - border-left-width: 1px; -} - -.ace_slim-cursors .ace_cursor { - border-left-width: 1px; -} - -.ace_overwrite-cursors .ace_cursor { - border-left-width: 0; - border-bottom: 1px solid; -} - -.ace_hidden-cursors .ace_cursor { - opacity: 0.2; -} - -.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor { - opacity: 0; -} - -.ace_smooth-blinking .ace_cursor { - transition: opacity 0.18s; -} - -.ace_animate-blinking .ace_cursor { - animation-duration: 1000ms; - animation-timing-function: step-end; - animation-name: blink-ace-animate; - animation-iteration-count: infinite; -} - -.ace_animate-blinking.ace_smooth-blinking .ace_cursor { - animation-duration: 1000ms; - animation-timing-function: ease-in-out; - animation-name: blink-ace-animate-smooth; -} - -@keyframes blink-ace-animate { - from, to { opacity: 1; } - 60% { opacity: 0; } -} - -@keyframes blink-ace-animate-smooth { - from, to { opacity: 1; } - 45% { opacity: 1; } - 60% { opacity: 0; } - 85% { opacity: 0; } -} - -.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack { - position: absolute; - z-index: 3; -} - -.ace_marker-layer .ace_selection { - position: absolute; - z-index: 5; -} - -.ace_marker-layer .ace_bracket { - position: absolute; - z-index: 6; -} - -.ace_marker-layer .ace_error_bracket { - position: absolute; - border-bottom: 1px solid #DE5555; - border-radius: 0; -} - -.ace_marker-layer .ace_active-line { - position: absolute; - z-index: 2; -} - -.ace_marker-layer .ace_selected-word { - position: absolute; - z-index: 4; - box-sizing: border-box; -} - -.ace_line .ace_fold { - box-sizing: border-box; - - display: inline-block; - height: 11px; - margin-top: -2px; - vertical-align: middle; - - background-image: - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII="); - background-repeat: no-repeat, repeat-x; - background-position: center center, top left; - color: transparent; - - border: 1px solid black; - border-radius: 2px; - - cursor: pointer; - pointer-events: auto; -} - -.ace_dark .ace_fold { -} - -.ace_fold:hover{ - background-image: - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="), - url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC"); -} - -.ace_tooltip { - background-color: #f5f5f5; - border: 1px solid gray; - border-radius: 1px; - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); - color: black; - max-width: 100%; - padding: 3px 4px; - position: fixed; - z-index: 999999; - box-sizing: border-box; - cursor: default; - white-space: pre; - word-wrap: break-word; - line-height: normal; - font-style: normal; - font-weight: normal; - letter-spacing: normal; - pointer-events: none; -} - -.ace_tooltip.ace_dark { - background-color: #636363; - color: #fff; -} - -.ace_tooltip:focus { - outline: 1px solid #5E9ED6; -} - -.ace_icon { - display: inline-block; - width: 18px; - vertical-align: top; -} - -.ace_icon_svg { - display: inline-block; - width: 12px; - vertical-align: top; - -webkit-mask-repeat: no-repeat; - -webkit-mask-size: 12px; - -webkit-mask-position: center; -} - -.ace_folding-enabled > .ace_gutter-cell, .ace_folding-enabled > .ace_gutter-cell_svg-icons { - padding-right: 13px; -} - -.ace_fold-widget { - box-sizing: border-box; - - margin: 0 -12px 0 1px; - display: none; - width: 11px; - vertical-align: top; - - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg=="); - background-repeat: no-repeat; - background-position: center; - - border-radius: 3px; - - border: 1px solid transparent; - cursor: pointer; -} - -.ace_folding-enabled .ace_fold-widget { - display: inline-block; -} - -.ace_fold-widget.ace_end { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg=="); -} - -.ace_fold-widget.ace_closed { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA=="); -} - -.ace_fold-widget:hover { - border: 1px solid rgba(0, 0, 0, 0.3); - background-color: rgba(255, 255, 255, 0.2); - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7); -} - -.ace_fold-widget:active { - border: 1px solid rgba(0, 0, 0, 0.4); - background-color: rgba(0, 0, 0, 0.05); - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8); -} -/** - * Dark version for fold widgets - */ -.ace_dark .ace_fold-widget { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC"); -} -.ace_dark .ace_fold-widget.ace_end { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg=="); -} -.ace_dark .ace_fold-widget.ace_closed { - background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg=="); -} -.ace_dark .ace_fold-widget:hover { - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); - background-color: rgba(255, 255, 255, 0.1); -} -.ace_dark .ace_fold-widget:active { - box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2); -} - -.ace_inline_button { - border: 1px solid lightgray; - display: inline-block; - margin: -1px 8px; - padding: 0 5px; - pointer-events: auto; - cursor: pointer; -} -.ace_inline_button:hover { - border-color: gray; - background: rgba(200,200,200,0.2); - display: inline-block; - pointer-events: auto; -} - -.ace_fold-widget.ace_invalid { - background-color: #FFB4B4; - border-color: #DE5555; -} - -.ace_fade-fold-widgets .ace_fold-widget { - transition: opacity 0.4s ease 0.05s; - opacity: 0; -} - -.ace_fade-fold-widgets:hover .ace_fold-widget { - transition: opacity 0.05s ease 0.05s; - opacity:1; -} - -.ace_underline { - text-decoration: underline; -} - -.ace_bold { - font-weight: bold; -} - -.ace_nobold .ace_bold { - font-weight: normal; -} - -.ace_italic { - font-style: italic; -} - - -.ace_error-marker { - background-color: rgba(255, 0, 0,0.2); - position: absolute; - z-index: 9; -} - -.ace_highlight-marker { - background-color: rgba(255, 255, 0,0.2); - position: absolute; - z-index: 8; -} - -.ace_mobile-menu { - position: absolute; - line-height: 1.5; - border-radius: 4px; - -ms-user-select: none; - -moz-user-select: none; - -webkit-user-select: none; - user-select: none; - background: white; - box-shadow: 1px 3px 2px grey; - border: 1px solid #dcdcdc; - color: black; -} -.ace_dark > .ace_mobile-menu { - background: #333; - color: #ccc; - box-shadow: 1px 3px 2px grey; - border: 1px solid #444; - -} -.ace_mobile-button { - padding: 2px; - cursor: pointer; - overflow: hidden; -} -.ace_mobile-button:hover { - background-color: #eee; - opacity:1; -} -.ace_mobile-button:active { - background-color: #ddd; -} - -.ace_placeholder { - font-family: arial; - transform: scale(0.9); - transform-origin: left; - white-space: pre; - opacity: 0.7; - margin: 0 10px; -} - -.ace_ghost_text { - opacity: 0.5; - font-style: italic; - white-space: pre; -}`}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(y,T,G){var V=y("../lib/dom"),L=y("../lib/oop"),A=y("../lib/event_emitter").EventEmitter,s=function(){function m(h,l){this.canvas=V.createElement("canvas"),this.renderer=l,this.pixelRatio=1,this.maxHeight=l.layerConfig.maxHeight,this.lineHeight=l.layerConfig.lineHeight,this.canvasHeight=h.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=h.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},h.element.appendChild(this.canvas)}return m.prototype.$updateDecorators=function(h){var l=this.renderer.theme.isDark===!0?this.colors.dark:this.colors.light;if(h){this.maxHeight=h.maxHeight,this.lineHeight=h.lineHeight,this.canvasHeight=h.height;var c=(h.lastRow+1)*this.lineHeight;cR.priority?1:0}var d=this.renderer.session.$annotations;if(i.clearRect(0,0,this.canvas.width,this.canvas.height),d){var g={info:1,warning:2,error:3};d.forEach(function(k){k.priority=g[k.type]||null}),d=d.sort(u);for(var v=this.renderer.session.$foldData,x=0;xthis.canvasHeight&&(N=this.canvasHeight-this.halfMinDecorationHeight),S=Math.round(N-this.halfMinDecorationHeight),O=Math.round(N+this.halfMinDecorationHeight)}i.fillStyle=l[d[x].type]||null,i.fillRect(0,$,this.canvasWidth,O-S)}}var M=this.renderer.session.selection.getCursor();if(M){var _=this.compensateFoldRows(M.row,v),$=Math.round((M.row-_)*this.lineHeight*this.heightRatio);i.fillStyle="rgba(0, 0, 0, 0.5)",i.fillRect(0,$,this.canvasWidth,2)}},m.prototype.compensateFoldRows=function(h,l){var c=0;if(l&&l.length>0)for(var i=0;il[i].start.row&&h=l[i].end.row&&(c+=l[i].end.row-l[i].start.row);return c},m}();L.implement(s.prototype,A),T.Decorator=s}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor-css","ace/layer/decorators","ace/lib/useragent"],function(y,T,G){var V=y("./lib/oop"),L=y("./lib/dom"),A=y("./lib/lang"),s=y("./config"),m=y("./layer/gutter").Gutter,h=y("./layer/marker").Marker,l=y("./layer/text").Text,c=y("./layer/cursor").Cursor,i=y("./scrollbar").HScrollBar,u=y("./scrollbar").VScrollBar,d=y("./scrollbar_custom").HScrollBar,g=y("./scrollbar_custom").VScrollBar,v=y("./renderloop").RenderLoop,x=y("./layer/font_metrics").FontMetrics,C=y("./lib/event_emitter").EventEmitter,_=y("./css/editor-css"),$=y("./layer/decorators").Decorator,S=y("./lib/useragent");L.importCssString(_,"ace_editor.css",!1);var O=function(){function D(N,M){var k=this;this.container=N||L.createElement("div"),L.addCssClass(this.container,"ace_editor"),L.HI_DPI&&L.addCssClass(this.container,"ace_hidpi"),this.setTheme(M),s.get("useStrictCSP")==null&&s.set("useStrictCSP",!1),this.$gutter=L.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=L.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=L.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new m(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new h(this.content);var R=this.$textLayer=new l(this.content);this.canvas=R.element,this.$markerFront=new h(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new u(this.container,this),this.scrollBarH=new i(this.container,this),this.scrollBarV.on("scroll",function(F){k.$scrollAnimation||k.session.setScrollTop(F.data-k.scrollMargin.top)}),this.scrollBarH.on("scroll",function(F){k.$scrollAnimation||k.session.setScrollLeft(F.data-k.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new x(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(F){k.updateCharacterSize(),k.onResize(!0,k.gutterWidth,k.$size.width,k.$size.height),k._signal("changeCharacterSize",F)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!S.isIOS,this.$loop=new v(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),this.$addResizeObserver(),s.resetOptions(this),s._signal("renderer",this)}return D.prototype.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),L.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},D.prototype.setSession=function(N){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=N,N&&this.scrollMargin.top&&N.getScrollTop()<=0&&N.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(N),this.$markerBack.setSession(N),this.$markerFront.setSession(N),this.$gutterLayer.setSession(N),this.$textLayer.setSession(N),N&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},D.prototype.updateLines=function(N,M,k){if(M===void 0&&(M=1/0),this.$changedLines?(this.$changedLines.firstRow>N&&(this.$changedLines.firstRow=N),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},D.prototype.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},D.prototype.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},D.prototype.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},D.prototype.updateFull=function(N){N?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},D.prototype.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},D.prototype.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},D.prototype.onResize=function(N,M,k,R){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=N?1:0;var F=this.container;R||(R=F.clientHeight||F.scrollHeight),k||(k=F.clientWidth||F.scrollWidth);var H=this.$updateCachedSize(N,M,k,R);if(this.$resizeTimer&&this.$resizeTimer.cancel(),!this.$size.scrollerHeight||!k&&!R)return this.resizing=0;N&&(this.$gutterLayer.$padding=null),N?this.$renderChanges(H|this.$changes,!0):this.$loop.schedule(H|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},D.prototype.$updateCachedSize=function(N,M,k,R){R-=this.$extraHeight||0;var F=0,H=this.$size,j={width:H.width,height:H.height,scrollerHeight:H.scrollerHeight,scrollerWidth:H.scrollerWidth};if(R&&(N||H.height!=R)&&(H.height=R,F|=this.CHANGE_SIZE,H.scrollerHeight=H.height,this.$horizScroll&&(H.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(H.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",F=F|this.CHANGE_SCROLL),k&&(N||H.width!=k)){F|=this.CHANGE_SIZE,H.width=k,M==null&&(M=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=M,L.setStyle(this.scrollBarH.element.style,"left",M+"px"),L.setStyle(this.scroller.style,"left",M+this.margin.left+"px"),H.scrollerWidth=Math.max(0,k-M-this.scrollBarV.getWidth()-this.margin.h),L.setStyle(this.$gutter.style,"left",this.margin.left+"px");var P=this.scrollBarV.getWidth()+"px";L.setStyle(this.scrollBarH.element.style,"right",P),L.setStyle(this.scroller.style,"right",P),L.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(H.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||N)&&(F|=this.CHANGE_FULL)}return H.$dirty=!k||!R,F&&this._signal("resize",j),F},D.prototype.onGutterResize=function(N){var M=this.$showGutter?N:0;M!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,M,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},D.prototype.adjustWrapLimit=function(){var N=this.$size.scrollerWidth-this.$padding*2,M=Math.floor(N/this.characterWidth);return this.session.adjustWrapLimit(M,this.$showPrintMargin&&this.$printMarginColumn)},D.prototype.setAnimatedScroll=function(N){this.setOption("animatedScroll",N)},D.prototype.getAnimatedScroll=function(){return this.$animatedScroll},D.prototype.setShowInvisibles=function(N){this.setOption("showInvisibles",N),this.session.$bidiHandler.setShowInvisibles(N)},D.prototype.getShowInvisibles=function(){return this.getOption("showInvisibles")},D.prototype.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},D.prototype.setDisplayIndentGuides=function(N){this.setOption("displayIndentGuides",N)},D.prototype.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},D.prototype.setHighlightIndentGuides=function(N){this.setOption("highlightIndentGuides",N)},D.prototype.setShowPrintMargin=function(N){this.setOption("showPrintMargin",N)},D.prototype.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},D.prototype.setPrintMarginColumn=function(N){this.setOption("printMarginColumn",N)},D.prototype.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},D.prototype.getShowGutter=function(){return this.getOption("showGutter")},D.prototype.setShowGutter=function(N){return this.setOption("showGutter",N)},D.prototype.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},D.prototype.setFadeFoldWidgets=function(N){this.setOption("fadeFoldWidgets",N)},D.prototype.setHighlightGutterLine=function(N){this.setOption("highlightGutterLine",N)},D.prototype.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},D.prototype.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var N=L.createElement("div");N.className="ace_layer ace_print-margin-layer",this.$printMarginEl=L.createElement("div"),this.$printMarginEl.className="ace_print-margin",N.appendChild(this.$printMarginEl),this.content.insertBefore(N,this.content.firstChild)}var M=this.$printMarginEl.style;M.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",M.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},D.prototype.getContainerElement=function(){return this.container},D.prototype.getMouseEventTarget=function(){return this.scroller},D.prototype.getTextAreaContainer=function(){return this.container},D.prototype.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var N=this.textarea.style,M=this.$composition;if(!this.$keepTextAreaAtCursor&&!M){L.translate(this.textarea,-100,0);return}var k=this.$cursorLayer.$pixelPos;if(k){M&&M.markerRange&&(k=this.$cursorLayer.getPixelPosition(M.markerRange.start,!0));var R=this.layerConfig,F=k.top,H=k.left;F-=R.offset;var j=M&&M.useTextareaForIME||S.isMobile?this.lineHeight:1;if(F<0||F>R.height-j){L.translate(this.textarea,0,0);return}var P=1,ee=this.$size.height-j;if(!M)F+=this.lineHeight;else if(M.useTextareaForIME){var J=this.textarea.value;P=this.characterWidth*this.session.$getStringScreenWidth(J)[0]}else F+=this.lineHeight+2;H-=this.scrollLeft,H>this.$size.scrollerWidth-P&&(H=this.$size.scrollerWidth-P),H+=this.gutterWidth+this.margin.left,L.setStyle(N,"height",j+"px"),L.setStyle(N,"width",P+"px"),L.translate(this.textarea,Math.min(H,this.$size.scrollerWidth-P),Math.min(F,ee))}}},D.prototype.getFirstVisibleRow=function(){return this.layerConfig.firstRow},D.prototype.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},D.prototype.getLastFullyVisibleRow=function(){var N=this.layerConfig,M=N.lastRow,k=this.session.documentToScreenRow(M,0)*N.lineHeight;return k-this.session.getScrollTop()>N.height-N.lineHeight?M-1:M},D.prototype.getLastVisibleRow=function(){return this.layerConfig.lastRow},D.prototype.setPadding=function(N){this.$padding=N,this.$textLayer.setPadding(N),this.$cursorLayer.setPadding(N),this.$markerFront.setPadding(N),this.$markerBack.setPadding(N),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},D.prototype.setScrollMargin=function(N,M,k,R){var F=this.scrollMargin;F.top=N|0,F.bottom=M|0,F.right=R|0,F.left=k|0,F.v=F.top+F.bottom,F.h=F.left+F.right,F.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-F.top),this.updateFull()},D.prototype.setMargin=function(N,M,k,R){var F=this.margin;F.top=N|0,F.bottom=M|0,F.right=R|0,F.left=k|0,F.v=F.top+F.bottom,F.h=F.left+F.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},D.prototype.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},D.prototype.setHScrollBarAlwaysVisible=function(N){this.setOption("hScrollBarAlwaysVisible",N)},D.prototype.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},D.prototype.setVScrollBarAlwaysVisible=function(N){this.setOption("vScrollBarAlwaysVisible",N)},D.prototype.$updateScrollBarV=function(){var N=this.layerConfig.maxHeight,M=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(N-=(M-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>N-M&&(N=this.scrollTop+M,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(N+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},D.prototype.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},D.prototype.freeze=function(){this.$frozen=!0},D.prototype.unfreeze=function(){this.$frozen=!1},D.prototype.$renderChanges=function(N,M){if(this.$changes&&(N|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!N&&!M){this.$changes|=N;return}if(this.$size.$dirty)return this.$changes|=N,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",N),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var k=this.layerConfig;if(N&this.CHANGE_FULL||N&this.CHANGE_SIZE||N&this.CHANGE_TEXT||N&this.CHANGE_LINES||N&this.CHANGE_SCROLL||N&this.CHANGE_H_SCROLL){if(N|=this.$computeLayerConfig()|this.$loop.clear(),k.firstRow!=this.layerConfig.firstRow&&k.firstRowScreen==this.layerConfig.firstRowScreen){var R=this.scrollTop+(k.firstRow-Math.max(this.layerConfig.firstRow,0))*this.lineHeight;R>0&&(this.scrollTop=R,N=N|this.CHANGE_SCROLL,N|=this.$computeLayerConfig()|this.$loop.clear())}k=this.layerConfig,this.$updateScrollBarV(),N&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),L.translate(this.content,-this.scrollLeft,-k.offset);var F=k.width+2*this.$padding+"px",H=k.minHeight+"px";L.setStyle(this.content.style,"width",F),L.setStyle(this.content.style,"height",H)}if(N&this.CHANGE_H_SCROLL&&(L.translate(this.content,-this.scrollLeft,-k.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller ":"ace_scroller ace_scroll-left ",this.enableKeyboardAccessibility&&(this.scroller.className+=this.keyboardFocusClassName)),N&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(k),this.$showGutter&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k),this.$markerBack.update(k),this.$markerFront.update(k),this.$cursorLayer.update(k),this.$moveTextAreaToCursor(),this._signal("afterRender",N);return}if(N&this.CHANGE_SCROLL){this.$changedLines=null,N&this.CHANGE_TEXT||N&this.CHANGE_LINES?this.$textLayer.update(k):this.$textLayer.scrollLines(k),this.$showGutter&&(N&this.CHANGE_GUTTER||N&this.CHANGE_LINES?this.$gutterLayer.update(k):this.$gutterLayer.scrollLines(k)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k),this.$markerBack.update(k),this.$markerFront.update(k),this.$cursorLayer.update(k),this.$moveTextAreaToCursor(),this._signal("afterRender",N);return}N&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(k),this.$showGutter&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)):N&this.CHANGE_LINES?((this.$updateLines()||N&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)):N&this.CHANGE_TEXT||N&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)):N&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(k),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(k)),N&this.CHANGE_CURSOR&&(this.$cursorLayer.update(k),this.$moveTextAreaToCursor()),N&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(k),N&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(k),this._signal("afterRender",N)},D.prototype.$autosize=function(){var N=this.session.getScreenLength()*this.lineHeight,M=this.$maxLines*this.lineHeight,k=Math.min(M,Math.max((this.$minLines||1)*this.lineHeight,N))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(k+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&k>this.$maxPixelHeight&&(k=this.$maxPixelHeight);var R=k<=2*this.lineHeight,F=!R&&N>M;if(k!=this.desiredHeight||this.$size.height!=this.desiredHeight||F!=this.$vScroll){F!=this.$vScroll&&(this.$vScroll=F,this.scrollBarV.setVisible(F));var H=this.container.clientWidth;this.container.style.height=k+"px",this.$updateCachedSize(!0,this.$gutterWidth,H,k),this.desiredHeight=k,this._signal("autosize")}},D.prototype.$computeLayerConfig=function(){var N=this.session,M=this.$size,k=M.height<=2*this.lineHeight,R=this.session.getScreenLength(),F=R*this.lineHeight,H=this.$getLongestLine(),j=!k&&(this.$hScrollBarAlwaysVisible||M.scrollerWidth-H-2*this.$padding<0),P=this.$horizScroll!==j;P&&(this.$horizScroll=j,this.scrollBarH.setVisible(j));var ee=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var J=M.scrollerHeight+this.lineHeight,K=!this.$maxLines&&this.$scrollPastEnd?(M.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;F+=K;var ae=this.scrollMargin;this.session.setScrollTop(Math.max(-ae.top,Math.min(this.scrollTop,F-M.scrollerHeight+ae.bottom))),this.session.setScrollLeft(Math.max(-ae.left,Math.min(this.scrollLeft,H+2*this.$padding-M.scrollerWidth+ae.right)));var Q=!k&&(this.$vScrollBarAlwaysVisible||M.scrollerHeight-F+K<0||this.scrollTop>ae.top),he=ee!==Q;he&&(this.$vScroll=Q,this.scrollBarV.setVisible(Q));var ge=this.scrollTop%this.lineHeight,Se=Math.ceil(J/this.lineHeight)-1,ce=Math.max(0,Math.round((this.scrollTop-ge)/this.lineHeight)),ne=ce+Se,fe,X,ye=this.lineHeight;ce=N.screenToDocumentRow(ce,0);var Ce=N.getFoldLine(ce);Ce&&(ce=Ce.start.row),fe=N.documentToScreenRow(ce,0),X=N.getRowLength(ce)*ye,ne=Math.min(N.screenToDocumentRow(ne,0),N.getLength()-1),J=M.scrollerHeight+N.getRowLength(ne)*ye+X,ge=this.scrollTop-fe*ye;var $e=0;return(this.layerConfig.width!=H||P)&&($e=this.CHANGE_H_SCROLL),(P||he)&&($e|=this.$updateCachedSize(!0,this.gutterWidth,M.width,M.height),this._signal("scrollbarVisibilityChanged"),he&&(H=this.$getLongestLine())),this.layerConfig={width:H,padding:this.$padding,firstRow:ce,firstRowScreen:fe,lastRow:ne,lineHeight:ye,characterWidth:this.characterWidth,minHeight:J,maxHeight:F,offset:ge,gutterOffset:ye?Math.max(0,Math.ceil((ge+M.height-M.scrollerHeight)/ye)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(H-this.$padding),$e},D.prototype.$updateLines=function(){if(this.$changedLines){var N=this.$changedLines.firstRow,M=this.$changedLines.lastRow;this.$changedLines=null;var k=this.layerConfig;if(!(N>k.lastRow+1)&&!(Mthis.$textLayer.MAX_LINE_LENGTH&&(N=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(N*this.characterWidth))},D.prototype.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},D.prototype.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},D.prototype.addGutterDecoration=function(N,M){this.$gutterLayer.addGutterDecoration(N,M)},D.prototype.removeGutterDecoration=function(N,M){this.$gutterLayer.removeGutterDecoration(N,M)},D.prototype.updateBreakpoints=function(N){this.$loop.schedule(this.CHANGE_GUTTER)},D.prototype.setAnnotations=function(N){this.$gutterLayer.setAnnotations(N),this.$loop.schedule(this.CHANGE_GUTTER)},D.prototype.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},D.prototype.hideCursor=function(){this.$cursorLayer.hideCursor()},D.prototype.showCursor=function(){this.$cursorLayer.showCursor()},D.prototype.scrollSelectionIntoView=function(N,M,k){this.scrollCursorIntoView(N,k),this.scrollCursorIntoView(M,k)},D.prototype.scrollCursorIntoView=function(N,M,k){if(this.$size.scrollerHeight!==0){var R=this.$cursorLayer.getPixelPosition(N),F=R.left,H=R.top,j=k&&k.top||0,P=k&&k.bottom||0;this.$scrollAnimation&&(this.$stopAnimation=!0);var ee=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;ee+j>H?(M&&ee+j>H+this.lineHeight&&(H-=M*this.$size.scrollerHeight),H===0&&(H=-this.scrollMargin.top),this.session.setScrollTop(H)):ee+this.$size.scrollerHeight-P=1-this.scrollMargin.top||M>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||N<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||N>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},D.prototype.pixelToScreenCoordinates=function(N,M){var k;if(this.$hasCssTransforms){k={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([N,M]);N=R[1]-this.gutterWidth-this.margin.left,M=R[0]}else k=this.scroller.getBoundingClientRect();var F=N+this.scrollLeft-k.left-this.$padding,H=F/this.characterWidth,j=Math.floor((M+this.scrollTop-k.top)/this.lineHeight),P=this.$blockCursor?Math.floor(H):Math.round(H);return{row:j,column:P,side:H-P>0?1:-1,offsetX:F}},D.prototype.screenToTextCoordinates=function(N,M){var k;if(this.$hasCssTransforms){k={top:0,left:0};var R=this.$fontMetrics.transformCoordinates([N,M]);N=R[1]-this.gutterWidth-this.margin.left,M=R[0]}else k=this.scroller.getBoundingClientRect();var F=N+this.scrollLeft-k.left-this.$padding,H=F/this.characterWidth,j=this.$blockCursor?Math.floor(H):Math.round(H),P=Math.floor((M+this.scrollTop-k.top)/this.lineHeight);return this.session.screenToDocumentPosition(P,Math.max(j,0),F)},D.prototype.textToScreenCoordinates=function(N,M){var k=this.scroller.getBoundingClientRect(),R=this.session.documentToScreenPosition(N,M),F=this.$padding+(this.session.$bidiHandler.isBidiRow(R.row,N)?this.session.$bidiHandler.getPosLeft(R.column):Math.round(R.column*this.characterWidth)),H=R.row*this.lineHeight;return{pageX:k.left+F-this.scrollLeft,pageY:k.top+H-this.scrollTop}},D.prototype.visualizeFocus=function(){L.addCssClass(this.container,"ace_focus")},D.prototype.visualizeBlur=function(){L.removeCssClass(this.container,"ace_focus")},D.prototype.showComposition=function(N){this.$composition=N,N.cssText||(N.cssText=this.textarea.style.cssText),N.useTextareaForIME==null&&(N.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(L.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):N.markerId=this.session.addMarker(N.markerRange,"ace_composition_marker","text")},D.prototype.setCompositionText=function(N){var M=this.session.selection.cursor;this.addToken(N,"composition_placeholder",M.row,M.column),this.$moveTextAreaToCursor()},D.prototype.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),L.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var N=this.session.selection.cursor;this.removeExtraToken(N.row,N.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},D.prototype.setGhostText=function(N,M){var k=this.session.selection.cursor,R=M||{row:k.row,column:k.column};this.removeGhostText();var F=N.split(` -`);this.addToken(F[0],"ghost_text",R.row,R.column),this.$ghostText={text:N,position:{row:R.row,column:R.column}},F.length>1&&(this.$ghostTextWidget={text:F.slice(1).join(` -`),row:R.row,column:R.column,className:"ace_ghost_text"},this.session.widgetManager.addLineWidget(this.$ghostTextWidget))},D.prototype.removeGhostText=function(){if(this.$ghostText){var N=this.$ghostText.position;this.removeExtraToken(N.row,N.column),this.$ghostTextWidget&&(this.session.widgetManager.removeLineWidget(this.$ghostTextWidget),this.$ghostTextWidget=null),this.$ghostText=null}},D.prototype.addToken=function(N,M,k,R){var F=this.session;F.bgTokenizer.lines[k]=null;var H={type:M,value:N},j=F.getTokens(k);if(R==null||!j.length)j.push(H);else for(var P=0,ee=0;ee1||Math.abs(N.$size.height-R)>1?N.$resizeTimer.delay():N.$resizeTimer.cancel()}),this.$resizeObserver.observe(this.container)}},D}();O.prototype.CHANGE_CURSOR=1,O.prototype.CHANGE_MARKER=2,O.prototype.CHANGE_GUTTER=4,O.prototype.CHANGE_SCROLL=8,O.prototype.CHANGE_LINES=16,O.prototype.CHANGE_TEXT=32,O.prototype.CHANGE_SIZE=64,O.prototype.CHANGE_MARKER_BACK=128,O.prototype.CHANGE_MARKER_FRONT=256,O.prototype.CHANGE_FULL=512,O.prototype.CHANGE_H_SCROLL=1024,O.prototype.$changes=0,O.prototype.$padding=null,O.prototype.$frozen=!1,O.prototype.STEPS=8,V.implement(O.prototype,C),s.defineOptions(O.prototype,"renderer",{useResizeObserver:{set:function(D){!D&&this.$resizeObserver?(this.$resizeObserver.disconnect(),this.$resizeTimer.cancel(),this.$resizeTimer=this.$resizeObserver=null):D&&!this.$resizeObserver&&this.$addResizeObserver()}},animatedScroll:{initialValue:!1},showInvisibles:{set:function(D){this.$textLayer.setShowInvisibles(D)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(D){typeof D=="number"&&(this.$printMarginColumn=D),this.$showPrintMargin=!!D,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(D){this.$gutter.style.display=D?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},useSvgGutterIcons:{set:function(D){this.$gutterLayer.$useSvgGutterIcons=D},initialValue:!1},showFoldedAnnotations:{set:function(D){this.$gutterLayer.$showFoldedAnnotations=D},initialValue:!1},fadeFoldWidgets:{set:function(D){L.setCssClass(this.$gutter,"ace_fade-fold-widgets",D)},initialValue:!1},showFoldWidgets:{set:function(D){this.$gutterLayer.setShowFoldWidgets(D),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(D){this.$textLayer.setDisplayIndentGuides(D)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightIndentGuides:{set:function(D){this.$textLayer.setHighlightIndentGuides(D)==!0?this.$textLayer.$highlightIndentGuide():this.$textLayer.$clearActiveIndentGuide(this.$textLayer.$lines.cells)},initialValue:!0},highlightGutterLine:{set:function(D){this.$gutterLayer.setHighlightGutterLine(D),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},hScrollBarAlwaysVisible:{set:function(D){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(D){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(D){typeof D=="number"&&(D=D+"px"),this.container.style.fontSize=D,this.updateFontSize()},initialValue:12},fontFamily:{set:function(D){this.container.style.fontFamily=D,this.updateFontSize()}},maxLines:{set:function(D){this.updateFull()}},minLines:{set:function(D){this.$minLines<562949953421311||(this.$minLines=0),this.updateFull()}},maxPixelHeight:{set:function(D){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(D){D=+D||0,this.$scrollPastEnd!=D&&(this.$scrollPastEnd=D,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(D){this.$gutterLayer.$fixedWidth=!!D,this.$loop.schedule(this.CHANGE_GUTTER)}},customScrollbar:{set:function(D){this.$updateCustomScrollbar(D)},initialValue:!1},theme:{set:function(D){this.setTheme(D)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0},hasCssTransforms:{},useTextareaForIME:{initialValue:!S.isMobile&&!S.isIE}}),T.VirtualRenderer=O}),ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(y,T,G){var V=y("../lib/oop"),L=y("../lib/net"),A=y("../lib/event_emitter").EventEmitter,s=y("../config");function m(i){var u="importScripts('"+L.qualifyURL(i)+"');";try{return new Blob([u],{type:"application/javascript"})}catch{var d=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,g=new d;return g.append(u),g.getBlob("application/javascript")}}function h(i){if(typeof Worker>"u")return{postMessage:function(){},terminate:function(){}};if(s.get("loadWorkerFromBlob")){var u=m(i),d=window.URL||window.webkitURL,g=d.createObjectURL(u);return new Worker(g)}return new Worker(i)}var l=function(i){i.postMessage||(i=this.$createWorkerFromOldConfig.apply(this,arguments)),this.$worker=i,this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){V.implement(this,A),this.$createWorkerFromOldConfig=function(i,u,d,g,v){if(y.nameToUrl&&!y.toUrl&&(y.toUrl=y.nameToUrl),s.get("packaged")||!y.toUrl)g=g||s.moduleUrl(u,"worker");else{var x=this.$normalizePath;g=g||x(y.toUrl("ace/worker/worker.js",null,"_"));var C={};i.forEach(function(_){C[_]=x(y.toUrl(_,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}return this.$worker=h(g),v&&this.send("importScripts",v),this.$worker.postMessage({init:!0,tlns:C,module:u,classname:d}),this.$worker},this.onMessage=function(i){var u=i.data;switch(u.type){case"event":this._signal(u.name,{data:u.data});break;case"call":var d=this.callbacks[u.id];d&&(d(u.data),delete this.callbacks[u.id]);break;case"error":this.reportError(u.data);break;case"log":window.console&&console.log&&console.log.apply(console,u.data);break}},this.reportError=function(i){window.console&&console.error&&console.error(i)},this.$normalizePath=function(i){return L.qualifyURL(i)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker.onerror=function(i){i.preventDefault()},this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(i,u){this.$worker.postMessage({command:i,args:u})},this.call=function(i,u,d){if(d){var g=this.callbackId++;this.callbacks[g]=d,u.push(g)}this.send(i,u)},this.emit=function(i,u){try{u.data&&u.data.err&&(u.data.err={message:u.data.err.message,stack:u.data.err.stack,code:u.data.err.code}),this.$worker&&this.$worker.postMessage({event:i,data:{data:u.data}})}catch(d){console.error(d.stack)}},this.attachToDocument=function(i){this.$doc&&this.terminate(),this.$doc=i,this.call("setValue",[i.getValue()]),i.on("change",this.changeListener,!0)},this.changeListener=function(i){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),i.action=="insert"?this.deltaQueue.push(i.start,i.lines):this.deltaQueue.push(i.start,i.end)},this.$sendDeltaQueue=function(){var i=this.deltaQueue;i&&(this.deltaQueue=null,i.length>50&&i.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:i}))}}).call(l.prototype);var c=function(i,u,d){var g=null,v=!1,x=Object.create(A),C=[],_=new l({messageBuffer:C,terminate:function(){},postMessage:function(S){C.push(S),g&&(v?setTimeout($):$())}});_.setEmitSync=function(S){v=S};var $=function(){var S=C.shift();S.command?g[S.command].apply(g,S.args):S.event&&x._signal(S.event,S.data)};return x.postMessage=function(S){_.onMessage({data:S})},x.callback=function(S,O){this.postMessage({type:"call",id:O,data:S})},x.emit=function(S,O){this.postMessage({type:"event",name:S,data:O})},s.loadModule(["worker",u],function(S){for(g=new S[d](x);C.length;)$()}),_};T.UIWorkerClient=c,T.WorkerClient=l,T.createWorker=h}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(y,T,G){var V=y("./range").Range,L=y("./lib/event_emitter").EventEmitter,A=y("./lib/oop"),s=function(){function m(h,l,c,i,u,d){var g=this;this.length=l,this.session=h,this.doc=h.getDocument(),this.mainClass=u,this.othersClass=d,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=i,this.$onCursorChange=function(){setTimeout(function(){g.onCursorChange()})},this.$pos=c;var v=h.getUndoManager().$undoStack||h.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=v.length,this.setup(),h.selection.on("changeCursor",this.$onCursorChange)}return m.prototype.setup=function(){var h=this,l=this.doc,c=this.session;this.selectionBefore=c.selection.toJSON(),c.selection.inMultiSelectMode&&c.selection.toSingleRange(),this.pos=l.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=c.addMarker(new V(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(u){var d=l.createAnchor(u.row,u.column);d.$insertRight=!0,d.detach(),h.others.push(d)}),c.setUndoSelect(!1)},m.prototype.showOtherMarkers=function(){if(!this.othersActive){var h=this.session,l=this;this.othersActive=!0,this.others.forEach(function(c){c.markerId=h.addMarker(new V(c.row,c.column,c.row,c.column+l.length),l.othersClass,null,!1)})}},m.prototype.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var h=0;h=this.pos.column&&l.start.column<=this.pos.column+this.length+1,u=l.start.column-this.pos.column;if(this.updateAnchors(h),i&&(this.length+=c),i&&!this.session.$fromUndo){if(h.action==="insert")for(var d=this.others.length-1;d>=0;d--){var g=this.others[d],v={row:g.row,column:g.column+u};this.doc.insertMergedLines(v,h.lines)}else if(h.action==="remove")for(var d=this.others.length-1;d>=0;d--){var g=this.others[d],v={row:g.row,column:g.column+u};this.doc.remove(new V(v.row,v.column,v.row,v.column-c))}}this.$updating=!1,this.updateMarkers()}},m.prototype.updateAnchors=function(h){this.pos.onChange(h);for(var l=this.others.length;l--;)this.others[l].onChange(h);this.updateMarkers()},m.prototype.updateMarkers=function(){if(!this.$updating){var h=this,l=this.session,c=function(u,d){l.removeMarker(u.markerId),u.markerId=l.addMarker(new V(u.row,u.column,u.row,u.column+h.length),d,null,!1)};c(this.pos,this.mainClass);for(var i=this.others.length;i--;)c(this.others[i],this.othersClass)}},m.prototype.onCursorChange=function(h){if(!(this.$updating||!this.session)){var l=this.session.selection.getCursor();l.row===this.pos.row&&l.column>=this.pos.column&&l.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",h)):(this.hideOtherMarkers(),this._emit("cursorLeave",h))}},m.prototype.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},m.prototype.cancel=function(){if(this.$undoStackDepth!==-1){for(var h=this.session.getUndoManager(),l=(h.$undoStack||h.$undostack).length-this.$undoStackDepth,c=0;c1?L.multiSelect.joinSelections():L.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(L){L.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(L){L.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(L){L.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],T.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(L){L.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(L){return L&&L.inMultiSelectMode}}];var V=y("../keyboard/hash_handler").HashHandler;T.keyboardHandler=new V(T.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(y,T,G){var V=y("./range_list").RangeList,L=y("./range").Range,A=y("./selection").Selection,s=y("./mouse/multi_select_handler").onMouseDown,m=y("./lib/event"),h=y("./lib/lang"),l=y("./commands/multi_select_commands");T.commands=l.defaultCommands.concat(l.multiSelectCommands);var c=y("./search").Search,i=new c;function u(_,$,S){return i.$options.wrap=!0,i.$options.needle=$,i.$options.backwards=S==-1,i.find(_)}var d=y("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(_,$){if(_){if(!this.inMultiSelectMode&&this.rangeCount===0){var S=this.toOrientedRange();if(this.rangeList.add(S),this.rangeList.add(_),this.rangeList.ranges.length!=2)return this.rangeList.removeAll(),$||this.fromOrientedRange(_);this.rangeList.removeAll(),this.rangeList.add(S),this.$onAddRange(S)}_.cursor||(_.cursor=_.end);var O=this.rangeList.add(_);return this.$onAddRange(_),O.length&&this.$onRemoveRange(O),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),$||this.fromOrientedRange(_)}},this.toSingleRange=function(_){_=_||this.ranges[0];var $=this.rangeList.removeAll();$.length&&this.$onRemoveRange($),_&&this.fromOrientedRange(_)},this.substractPoint=function(_){var $=this.rangeList.substractPoint(_);if($)return this.$onRemoveRange($),$[0]},this.mergeOverlappingRanges=function(){var _=this.rangeList.merge();_.length&&this.$onRemoveRange(_)},this.$onAddRange=function(_){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(_),this._signal("addRange",{range:_})},this.$onRemoveRange=function(_){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var $=this.rangeList.ranges.pop();_.push($),this.rangeCount=0}for(var S=_.length;S--;){var O=this.ranges.indexOf(_[S]);this.ranges.splice(O,1)}this._signal("removeRange",{ranges:_}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),$=$||this.ranges[0],$&&!$.isEqual(this.getRange())&&this.fromOrientedRange($)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new V,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var _=this.ranges.length?this.ranges:[this.getRange()],$=[],S=0;S<_.length;S++){var O=_[S],D=O.start.row,N=O.end.row;if(D===N)$.push(O.clone());else{for($.push(new L(D,O.start.column,D,this.session.getLine(D).length));++D1){var _=this.rangeList.ranges,$=_[_.length-1],S=L.fromPoints(_[0].start,$.end);this.toSingleRange(),this.setSelectionRange(S,$.cursor==$.start)}else{var O=this.session.documentToScreenPosition(this.cursor),D=this.session.documentToScreenPosition(this.anchor),N=this.rectangularRangeBlock(O,D);N.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(_,$,S){var O=[],D=_.column<$.column;if(D)var N=_.column,M=$.column,k=_.offsetX,R=$.offsetX;else var N=$.column,M=_.column,k=$.offsetX,R=_.offsetX;var F=_.row<$.row;if(F)var H=_.row,j=$.row;else var H=$.row,j=_.row;N<0&&(N=0),H<0&&(H=0),H==j&&(S=!0);for(var P,ee=H;ee<=j;ee++){var J=L.fromPoints(this.session.screenToDocumentPosition(ee,N,k),this.session.screenToDocumentPosition(ee,M,R));if(J.isEmpty()){if(P&&v(J.end,P))break;P=J.end}J.cursor=D?J.start:J.end,O.push(J)}if(F&&O.reverse(),!S){for(var K=O.length-1;O[K].isEmpty()&&K>0;)K--;if(K>0)for(var ae=0;O[ae].isEmpty();)ae++;for(var Q=K;Q>=ae;Q--)O[Q].isEmpty()&&O.splice(Q,1)}return O}}).call(A.prototype);var g=y("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(_){_.cursor||(_.cursor=_.end);var $=this.getSelectionStyle();return _.marker=this.session.addMarker(_,"ace_selection",$),this.session.$selectionMarkers.push(_),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,_},this.removeSelectionMarker=function(_){if(_.marker){this.session.removeMarker(_.marker);var $=this.session.$selectionMarkers.indexOf(_);$!=-1&&this.session.$selectionMarkers.splice($,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(_){for(var $=this.session.$selectionMarkers,S=_.length;S--;){var O=_[S];if(O.marker){this.session.removeMarker(O.marker);var D=$.indexOf(O);D!=-1&&$.splice(D,1)}}this.session.selectionMarkerCount=$.length},this.$onAddRange=function(_){this.addSelectionMarker(_.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(_){this.removeSelectionMarkers(_.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(_){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(l.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(_){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(l.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(_){var $=_.command,S=_.editor;if(S.multiSelect){if($.multiSelectAction)$.multiSelectAction=="forEach"?O=S.forEachSelection($,_.args):$.multiSelectAction=="forEachLine"?O=S.forEachSelection($,_.args,!0):$.multiSelectAction=="single"?(S.exitMultiSelectMode(),O=$.exec(S,_.args||{})):O=$.multiSelectAction(S,_.args||{});else{var O=$.exec(S,_.args||{});S.multiSelect.addRange(S.multiSelect.toOrientedRange()),S.multiSelect.mergeOverlappingRanges()}return O}},this.forEachSelection=function(_,$,S){if(!this.inVirtualSelectionMode){var O=S&&S.keepOrder,D=S==!0||S&&S.$byLines,N=this.session,M=this.selection,k=M.rangeList,R=(O?M:k).ranges,F;if(!R.length)return _.exec?_.exec(this,$||{}):_(this,$||{});var H=M._eventRegistry;M._eventRegistry={};var j=new A(N);this.inVirtualSelectionMode=!0;for(var P=R.length;P--;){if(D)for(;P>0&&R[P].start.row==R[P-1].end.row;)P--;j.fromOrientedRange(R[P]),j.index=P,this.selection=N.selection=j;var ee=_.exec?_.exec(this,$||{}):_(this,$||{});!F&&ee!==void 0&&(F=ee),j.toOrientedRange(R[P])}j.detach(),this.selection=N.selection=M,this.inVirtualSelectionMode=!1,M._eventRegistry=H,M.mergeOverlappingRanges(),M.ranges[0]&&M.fromOrientedRange(M.ranges[0]);var J=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),J&&J.from==J.to&&this.renderer.animateScrolling(J.from),F}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var _="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var $=this.multiSelect.rangeList.ranges,S=[],O=0;O<$.length;O++)S.push(this.session.getTextRange($[O]));var D=this.session.getDocument().getNewLineCharacter();_=S.join(D),_.length==(S.length-1)*D.length&&(_="")}else this.selection.isEmpty()||(_=this.session.getTextRange(this.getSelectionRange()));return _},this.$checkMultiselectChange=function(_,$){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var S=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&$==this.multiSelect.anchor)return;var O=$==this.multiSelect.anchor?S.cursor==S.start?S.end:S.start:S.cursor;O.row!=$.row||this.session.$clipPositionToDocument(O.row,O.column).column!=$.column?this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange()):this.multiSelect.mergeOverlappingRanges()}},this.findAll=function(_,$,S){if($=$||{},$.needle=_||$.needle,$.needle==null){var O=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();$.needle=this.session.getTextRange(O)}this.$search.set($);var D=this.$search.findAll(this.session);if(!D.length)return 0;var N=this.multiSelect;S||N.toSingleRange(D[0]);for(var M=D.length;M--;)N.addRange(D[M],!0);return O&&N.rangeList.rangeAtPoint(O.start)&&N.addRange(O,!0),D.length},this.selectMoreLines=function(_,$){var S=this.selection.toOrientedRange(),O=S.cursor==S.end,D=this.session.documentToScreenPosition(S.cursor);this.selection.$desiredColumn&&(D.column=this.selection.$desiredColumn);var N=this.session.screenToDocumentPosition(D.row+_,D.column);if(S.isEmpty())var k=N;else var M=this.session.documentToScreenPosition(O?S.end:S.start),k=this.session.screenToDocumentPosition(M.row+_,M.column);if(O){var R=L.fromPoints(N,k);R.cursor=R.start}else{var R=L.fromPoints(k,N);R.cursor=R.end}if(R.desiredColumn=D.column,!this.selection.inMultiSelectMode)this.selection.addRange(S);else if($)var F=S.cursor;this.selection.addRange(R),F&&this.selection.substractPoint(F)},this.transposeSelections=function(_){for(var $=this.session,S=$.multiSelect,O=S.ranges,D=O.length;D--;){var N=O[D];if(N.isEmpty()){var M=$.getWordRange(N.start.row,N.start.column);N.start.row=M.start.row,N.start.column=M.start.column,N.end.row=M.end.row,N.end.column=M.end.column}}S.mergeOverlappingRanges();for(var k=[],D=O.length;D--;){var N=O[D];k.unshift($.getTextRange(N))}_<0?k.unshift(k.pop()):k.push(k.shift());for(var D=O.length;D--;){var N=O[D],M=N.clone();$.replace(N,k[D]),N.start.row=M.start.row,N.start.column=M.start.column}S.fromOrientedRange(S.ranges[0])},this.selectMore=function(_,$,S){var O=this.session,D=O.multiSelect,N=D.toOrientedRange();if(!(N.isEmpty()&&(N=O.getWordRange(N.start.row,N.start.column),N.cursor=_==-1?N.start:N.end,this.multiSelect.addRange(N),S))){var M=O.getTextRange(N),k=u(O,M,_);k&&(k.cursor=_==-1?k.start:k.end,this.session.unfold(k),this.multiSelect.addRange(k),this.renderer.scrollCursorIntoView(null,.5)),$&&this.multiSelect.substractPoint(N.cursor)}},this.alignCursors=function(){var _=this.session,$=_.multiSelect,S=$.ranges,O=-1,D=S.filter(function(K){if(K.cursor.row==O)return!0;O=K.cursor.row});if(!S.length||D.length==S.length-1){var N=this.selection.getRange(),M=N.start.row,k=N.end.row,R=M==k;if(R){var F=this.session.getLength(),H;do H=this.session.getLine(k);while(/[=:]/.test(H)&&++k0);M<0&&(M=0),k>=F&&(k=F-1)}var j=this.session.removeFullLines(M,k);j=this.$reAlignText(j,R),this.session.insert({row:M,column:0},j.join(` -`)+` -`),R||(N.start.column=0,N.end.column=j[j.length-1].length),this.selection.setRange(N)}else{D.forEach(function(K){$.substractPoint(K.cursor)});var P=0,ee=1/0,J=S.map(function(K){var ae=K.cursor,Q=_.getLine(ae.row),he=Q.substr(ae.column).search(/\S/g);return he==-1&&(he=0),ae.column>P&&(P=ae.column),hege?_.insert(Q,h.stringRepeat(" ",he-ge)):_.remove(new L(Q.row,Q.column,Q.row,Q.column-he+ge)),K.start.column=K.end.column=P,K.start.row=K.end.row=Q.row,K.cursor=K.end}),$.fromOrientedRange(S[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(_,$){var S=!0,O=!0,D,N,M;return _.map(function(j){var P=j.match(/(\s*)(.*?)(\s*)([=:].*)/);return P?D==null?(D=P[1].length,N=P[2].length,M=P[3].length,P):(D+N+M!=P[1].length+P[2].length+P[3].length&&(O=!1),D!=P[1].length&&(S=!1),D>P[1].length&&(D=P[1].length),NP[3].length&&(M=P[3].length),P):[j]}).map($?R:S?O?F:R:H);function k(j){return h.stringRepeat(" ",j)}function R(j){return j[2]?k(D)+j[2]+k(N-j[2].length+M)+j[4].replace(/^([=:])\s+/,"$1 "):j[0]}function F(j){return j[2]?k(D+N-j[2].length)+j[2]+k(M)+j[4].replace(/^([=:])\s+/,"$1 "):j[0]}function H(j){return j[2]?k(D)+j[2]+k(M)+j[4].replace(/^([=:])\s+/,"$1 "):j[0]}}}).call(g.prototype);function v(_,$){return _.row==$.row&&_.column==$.column}T.onSessionChange=function(_){var $=_.session;$&&!$.multiSelect&&($.$selectionMarkers=[],$.selection.$initRangeList(),$.multiSelect=$.selection),this.multiSelect=$&&$.multiSelect;var S=_.oldSession;S&&(S.multiSelect.off("addRange",this.$onAddRange),S.multiSelect.off("removeRange",this.$onRemoveRange),S.multiSelect.off("multiSelect",this.$onMultiSelect),S.multiSelect.off("singleSelect",this.$onSingleSelect),S.multiSelect.lead.off("change",this.$checkMultiselectChange),S.multiSelect.anchor.off("change",this.$checkMultiselectChange)),$&&($.multiSelect.on("addRange",this.$onAddRange),$.multiSelect.on("removeRange",this.$onRemoveRange),$.multiSelect.on("multiSelect",this.$onMultiSelect),$.multiSelect.on("singleSelect",this.$onSingleSelect),$.multiSelect.lead.on("change",this.$checkMultiselectChange),$.multiSelect.anchor.on("change",this.$checkMultiselectChange)),$&&this.inMultiSelectMode!=$.selection.inMultiSelectMode&&($.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function x(_){_.$multiselectOnSessionChange||(_.$onAddRange=_.$onAddRange.bind(_),_.$onRemoveRange=_.$onRemoveRange.bind(_),_.$onMultiSelect=_.$onMultiSelect.bind(_),_.$onSingleSelect=_.$onSingleSelect.bind(_),_.$multiselectOnSessionChange=T.onSessionChange.bind(_),_.$checkMultiselectChange=_.$checkMultiselectChange.bind(_),_.$multiselectOnSessionChange(_),_.on("changeSession",_.$multiselectOnSessionChange),_.on("mousedown",s),_.commands.addCommands(l.defaultCommands),C(_))}function C(_){if(!_.textInput)return;var $=_.textInput.getElement(),S=!1;m.addListener($,"keydown",function(D){var N=D.keyCode==18&&!(D.ctrlKey||D.shiftKey||D.metaKey);_.$blockSelectEnabled&&N?S||(_.renderer.setMouseCursor("crosshair"),S=!0):S&&O()},_),m.addListener($,"keyup",O,_),m.addListener($,"blur",O,_);function O(D){S&&(_.renderer.setMouseCursor(""),S=!1)}}T.MultiSelect=x,y("./config").defineOptions(g.prototype,"editor",{enableMultiselect:{set:function(_){x(this),_?this.on("mousedown",s):this.off("mousedown",s)},value:!0},enableBlockSelect:{set:function(_){this.$blockSelectEnabled=_},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(y,T,G){var V=y("../../range").Range,L=T.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(A,s,m){var h=A.getLine(m);return this.foldingStartMarker.test(h)?"start":s=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(h)?"end":""},this.getFoldWidgetRange=function(A,s,m){return null},this.indentationBlock=function(A,s,m){var h=/\S/,l=A.getLine(s),c=l.search(h);if(c!=-1){for(var i=m||l.length,u=A.getLength(),d=s,g=s;++sd){var C=A.getLine(g).length;return new V(d,i,g,C)}}},this.openingBracketBlock=function(A,s,m,h,l){var c={row:m,column:h+1},i=A.$findClosingBracket(s,c,l);if(i){var u=A.foldWidgets[i.row];return u==null&&(u=A.getFoldWidget(i.row)),u=="start"&&i.row>c.row&&(i.row--,i.column=A.getLine(i.row).length),V.fromPoints(c,i)}},this.closingBracketBlock=function(A,s,m,h,l){var c={row:m,column:h},i=A.$findOpeningBracket(s,c);if(i)return i.column++,c.column--,V.fromPoints(i,c)}}).call(L.prototype)}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range","ace/config"],function(y,T,G){var V=y("../line_widgets").LineWidgets,L=y("../lib/dom"),A=y("../range").Range,s=y("../config").nls;function m(l,c,i){for(var u=0,d=l.length-1;u<=d;){var g=u+d>>1,v=i(c,l[g]);if(v>0)u=g+1;else if(v<0)d=g-1;else return g}return-(u+1)}function h(l,c,i){var u=l.getAnnotations().sort(A.comparePoints);if(u.length){var d=m(u,{row:c,column:-1},A.comparePoints);d<0&&(d=-d-1),d>=u.length?d=i>0?0:u.length-1:d===0&&i<0&&(d=u.length-1);var g=u[d];if(!(!g||!i)){if(g.row===c){do g=u[d+=i];while(g&&g.row===c);if(!g)return u.slice()}var v=[];c=g.row;do v[i<0?"unshift":"push"](g),g=u[d+=i];while(g&&g.row==c);return v.length&&v}}}T.showErrorMarker=function(l,c){var i=l.session;i.widgetManager||(i.widgetManager=new V(i),i.widgetManager.attach(l));var u=l.getCursorPosition(),d=u.row,g=i.widgetManager.getWidgetsAtRow(d).filter(function(N){return N.type=="errorMarker"})[0];g?g.destroy():d-=c;var v=h(i,d,c),x;if(v){var C=v[0];u.column=(C.pos&&typeof C.column!="number"?C.pos.sc:C.column)||0,u.row=C.row,x=l.renderer.$gutterLayer.$annotations[u.row]}else{if(g)return;x={text:[s("Looks good!")],className:"ace_ok"}}l.session.unfold(u.row),l.selection.moveToPosition(u);var _={row:u.row,fixedWidth:!0,coverGutter:!0,el:L.createElement("div"),type:"errorMarker"},$=_.el.appendChild(L.createElement("div")),S=_.el.appendChild(L.createElement("div"));S.className="error_widget_arrow "+x.className;var O=l.renderer.$cursorLayer.getPixelPosition(u).left;S.style.left=O+l.renderer.gutterWidth-5+"px",_.el.className="error_widget_wrapper",$.className="error_widget "+x.className,$.innerHTML=x.text.join("
    "),$.appendChild(L.createElement("div"));var D=function(N,M,k){if(M===0&&(k==="esc"||k==="return"))return _.destroy(),{command:"null"}};_.destroy=function(){l.$mouseHandler.isMousePressed||(l.keyBinding.removeKeyboardHandler(D),i.widgetManager.removeLineWidget(_),l.off("changeSelection",_.destroy),l.off("changeSession",_.destroy),l.off("mouseup",_.destroy),l.off("change",_.destroy))},l.keyBinding.addKeyboardHandler(D),l.on("changeSelection",_.destroy),l.on("changeSession",_.destroy),l.on("mouseup",_.destroy),l.on("change",_.destroy),l.session.widgetManager.addLineWidget(_),_.el.onmousedown=l.focus.bind(l),l.renderer.scrollCursorIntoView(null,.5,{bottom:_.el.offsetHeight})},L.importCssString(` - .error_widget_wrapper { - background: inherit; - color: inherit; - border:none - } - .error_widget { - border-top: solid 2px; - border-bottom: solid 2px; - margin: 5px 0; - padding: 10px 40px; - white-space: pre-wrap; - } - .error_widget.ace_error, .error_widget_arrow.ace_error{ - border-color: #ff5a5a - } - .error_widget.ace_warning, .error_widget_arrow.ace_warning{ - border-color: #F1D817 - } - .error_widget.ace_info, .error_widget_arrow.ace_info{ - border-color: #5a5a5a - } - .error_widget.ace_ok, .error_widget_arrow.ace_ok{ - border-color: #5aaa5a - } - .error_widget_arrow { - position: absolute; - border: solid 5px; - border-top-color: transparent!important; - border-right-color: transparent!important; - border-left-color: transparent!important; - top: -5px; - } -`,"error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(y,T,G){y("./loader_build")(T);var V=y("./lib/dom"),L=y("./range").Range,A=y("./editor").Editor,s=y("./edit_session").EditSession,m=y("./undomanager").UndoManager,h=y("./virtual_renderer").VirtualRenderer;y("./worker/worker_client"),y("./keyboard/hash_handler"),y("./placeholder"),y("./multi_select"),y("./mode/folding/fold_mode"),y("./theme/textmate"),y("./ext/error_marker"),T.config=y("./config"),T.edit=function(l,c){if(typeof l=="string"){var i=l;if(l=document.getElementById(i),!l)throw new Error("ace.edit can't find div #"+i)}if(l&&l.env&&l.env.editor instanceof A)return l.env.editor;var u="";if(l&&/input|textarea/i.test(l.tagName)){var d=l;u=d.value,l=V.createElement("pre"),d.parentNode.replaceChild(l,d)}else l&&(u=l.textContent,l.innerHTML="");var g=T.createEditSession(u),v=new A(new h(l),g,c),x={document:g,editor:v,onResize:v.resize.bind(v,null)};return d&&(x.textarea=d),v.on("destroy",function(){x.editor.container.env=null}),v.container.env=v.env=x,v},T.createEditSession=function(l,c){var i=new s(l,c);return i.setUndoManager(new m),i},T.Range=L,T.Editor=A,T.EditSession=s,T.UndoManager=m,T.VirtualRenderer=h,T.version=T.config.version}),function(){ace.require(["ace/ace"],function(y){y&&(y.config.init(!0),y.define=ace.define);var T=function(){return this}();!T&&typeof window<"u"&&(T=window),!T&&typeof self<"u"&&(T=self),T.ace||(T.ace=y);for(var G in y)y.hasOwnProperty(G)&&(T.ace[G]=y[G]);T.ace.default=T.ace,o&&(o.exports=T.ace)})}()})(gae);var Jfe=gae.exports;const Qfe=dae(Jfe);var pae=function(){if(typeof Map<"u")return Map;function o(b,y){var T=-1;return b.some(function(G,V){return G[0]===y?(T=V,!0):!1}),T}return function(){function b(){this.__entries__=[]}return Object.defineProperty(b.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),b.prototype.get=function(y){var T=o(this.__entries__,y),G=this.__entries__[T];return G&&G[1]},b.prototype.set=function(y,T){var G=o(this.__entries__,y);~G?this.__entries__[G][1]=T:this.__entries__.push([y,T])},b.prototype.delete=function(y){var T=this.__entries__,G=o(T,y);~G&&T.splice(G,1)},b.prototype.has=function(y){return!!~o(this.__entries__,y)},b.prototype.clear=function(){this.__entries__.splice(0)},b.prototype.forEach=function(y,T){T===void 0&&(T=null);for(var G=0,V=this.__entries__;G0},o.prototype.connect_=function(){!xQ||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ode?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},o.prototype.disconnect_=function(){!xQ||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},o.prototype.onTransitionEnd_=function(b){var y=b.propertyName,T=y===void 0?"":y,G=rde.some(function(V){return!!~T.indexOf(V)});G&&this.refresh()},o.getInstance=function(){return this.instance_||(this.instance_=new o),this.instance_},o.instance_=null,o}(),vae=function(o,b){for(var y=0,T=Object.keys(b);y"u"||!(Element instanceof Object))){if(!(b instanceof kE(b).Element))throw new TypeError('parameter 1 is not of type "Element".');var y=this.observations_;y.has(b)||(y.set(b,new hde(b)),this.controller_.addObserver(this),this.controller_.refresh())}},o.prototype.unobserve=function(b){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(b instanceof kE(b).Element))throw new TypeError('parameter 1 is not of type "Element".');var y=this.observations_;y.has(b)&&(y.delete(b),y.size||this.controller_.removeObserver(this))}},o.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},o.prototype.gatherActive=function(){var b=this;this.clearActive(),this.observations_.forEach(function(y){y.isActive()&&b.activeObservations_.push(y)})},o.prototype.broadcastActive=function(){if(this.hasActive()){var b=this.callbackCtx_,y=this.activeObservations_.map(function(T){return new mde(T.target,T.broadcastRect())});this.callback_.call(b,y,b),this.clearActive()}},o.prototype.clearActive=function(){this.activeObservations_.splice(0)},o.prototype.hasActive=function(){return this.activeObservations_.length>0},o}(),bae=typeof WeakMap<"u"?new WeakMap:new pae,xae=function(){function o(b){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var y=ade.getInstance(),T=new gde(b,y,this);bae.set(this,T)}return o}();["observe","unobserve","disconnect"].forEach(function(o){xae.prototype[o]=function(){var b;return(b=bae.get(this))[o].apply(b,arguments)}});var pde=function(){return typeof yB.ResizeObserver<"u"?yB.ResizeObserver:xae}();const One=["blur","input","change","changeSelectionStyle","changeSession","copy","focus","paste"],eH=YB({props:{value:{type:String,required:!0},lang:{type:String,default:"text"},theme:{type:String,default:"chrome"},options:Object,placeholder:String,readonly:Boolean,wrap:Boolean,printMargin:{type:[Boolean,Number],default:!0},minLines:Number,maxLines:Number},emits:["update:value","init",...One],render(){return um("div")},mounted(){const o=this._editor=rq(Qfe.edit(this.$el,{placeholder:this.placeholder,readOnly:this.readonly,value:this.value,mode:"ace/mode/"+this.lang,theme:"ace/theme/"+this.theme,wrap:this.wrap,printMargin:this.printMargin,useWorker:!1,minLines:this.minLines,maxLines:this.maxLines,...this.options}));this._contentBackup=this.value,this._isSettingContent=!1,o.on("change",()=>{if(this._isSettingContent)return;const b=o.getValue();this._contentBackup=b,this.$emit("update:value",b)}),One.forEach(b=>{const y="on"+_0(b);typeof this.$.vnode.props[y]=="function"&&o.on(b,this.$emit.bind(this,b))}),this._ro=new pde(()=>o.resize()),this._ro.observe(this.$el),this.$emit("init",o)},beforeUnmount(){var o,b;(o=this._ro)===null||o===void 0||o.disconnect(),(b=this._editor)===null||b===void 0||b.destroy()},methods:{focus(){this._editor.focus()},blur(){this._editor.blur()},selectAll(){this._editor.selectAll()}},watch:{value(o){if(this._contentBackup!==o){try{this._isSettingContent=!0,this._editor.setValue(o,1)}finally{this._isSettingContent=!1}this._contentBackup=o}},theme(o){this._editor.setTheme("ace/theme/"+o)},options(o){this._editor.setOptions(o)},readonly(o){this._editor.setReadOnly(o)},placeholder(o){this._editor.setOption("placeholder",o)},wrap(o){this._editor.setWrapBehavioursEnabled(o)},printMargin(o){this._editor.setOption("printMargin",o)},lang(o){this._editor.setOption("mode","ace/mode/"+o)},minLines(o){this._editor.setOption("minLines",o)},maxLines(o){this._editor.setOption("maxLines",o)}}});var vde={exports:{}};(function(o,b){ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("./text_highlight_rules").TextHighlightRules,A=function(){var s="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield|async|await|nonlocal",m="True|False|None|NotImplemented|Ellipsis|__debug__",h="abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|binfile|bin|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|apply|delattr|help|next|setattr|set|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern|ascii|breakpoint|bytes",l=this.createKeywordMapper({"invalid.deprecated":"debugger","support.function":h,"variable.language":"self|cls","constant.language":m,keyword:s},"identifier"),c="[uU]?",i="[rR]",u="[fF]",d="(?:[rR][fF]|[fF][rR])",g="(?:(?:[1-9]\\d*)|(?:0))",v="(?:0[oO]?[0-7]+)",x="(?:0[xX][\\dA-Fa-f]+)",C="(?:0[bB][01]+)",_="(?:"+g+"|"+v+"|"+x+"|"+C+")",$="(?:[eE][+-]?\\d+)",S="(?:\\.\\d+)",O="(?:\\d+)",D="(?:(?:"+O+"?"+S+")|(?:"+O+"\\.))",N="(?:(?:"+D+"|"+O+")"+$+")",M="(?:"+N+"|"+D+")",k=`\\\\(x[0-9A-Fa-f]{2}|[0-7]{3}|[\\\\abfnrtv'"]|U[0-9A-Fa-f]{8}|u[0-9A-Fa-f]{4})`;this.$rules={start:[{token:"comment",regex:"#.*$"},{token:"string",regex:c+'"{3}',next:"qqstring3"},{token:"string",regex:c+'"(?=.)',next:"qqstring"},{token:"string",regex:c+"'{3}",next:"qstring3"},{token:"string",regex:c+"'(?=.)",next:"qstring"},{token:"string",regex:i+'"{3}',next:"rawqqstring3"},{token:"string",regex:i+'"(?=.)',next:"rawqqstring"},{token:"string",regex:i+"'{3}",next:"rawqstring3"},{token:"string",regex:i+"'(?=.)",next:"rawqstring"},{token:"string",regex:u+'"{3}',next:"fqqstring3"},{token:"string",regex:u+'"(?=.)',next:"fqqstring"},{token:"string",regex:u+"'{3}",next:"fqstring3"},{token:"string",regex:u+"'(?=.)",next:"fqstring"},{token:"string",regex:d+'"{3}',next:"rfqqstring3"},{token:"string",regex:d+'"(?=.)',next:"rfqqstring"},{token:"string",regex:d+"'{3}",next:"rfqstring3"},{token:"string",regex:d+"'(?=.)",next:"rfqstring"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|%|@|<<|>>|&|\\||\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"punctuation",regex:",|:|;|\\->|\\+=|\\-=|\\*=|\\/=|\\/\\/=|%=|@=|&=|\\|=|^=|>>=|<<=|\\*\\*="},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]\\)\\}]"},{token:["keyword","text","entity.name.function"],regex:"(def|class)(\\s+)([\\u00BF-\\u1FFF\\u2C00-\\uD7FF\\w]+)"},{token:"text",regex:"\\s+"},{include:"constants"}],qqstring3:[{token:"constant.language.escape",regex:k},{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],qstring3:[{token:"constant.language.escape",regex:k},{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],qqstring:[{token:"constant.language.escape",regex:k},{token:"string",regex:"\\\\$",next:"qqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:k},{token:"string",regex:"\\\\$",next:"qstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],rawqqstring3:[{token:"string",regex:'"{3}',next:"start"},{defaultToken:"string"}],rawqstring3:[{token:"string",regex:"'{3}",next:"start"},{defaultToken:"string"}],rawqqstring:[{token:"string",regex:"\\\\$",next:"rawqqstring"},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],rawqstring:[{token:"string",regex:"\\\\$",next:"rawqstring"},{token:"string",regex:"'|$",next:"start"},{defaultToken:"string"}],fqqstring3:[{token:"constant.language.escape",regex:k},{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring3:[{token:"constant.language.escape",regex:k},{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqqstring:[{token:"constant.language.escape",regex:k},{token:"string",regex:"\\\\$",next:"fqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstring:[{token:"constant.language.escape",regex:k},{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring3:[{token:"string",regex:'"{3}',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring3:[{token:"string",regex:"'{3}",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqqstring:[{token:"string",regex:"\\\\$",next:"rfqqstring"},{token:"string",regex:'"|$',next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],rfqstring:[{token:"string",regex:"'|$",next:"start"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"},{defaultToken:"string"}],fqstringParRules:[{token:"paren.lparen",regex:"[\\[\\(]"},{token:"paren.rparen",regex:"[\\]\\)]"},{token:"string",regex:"\\s+"},{token:"string",regex:"'[^']*'"},{token:"string",regex:'"[^"]*"'},{token:"function.support",regex:"(!s|!r|!a)"},{include:"constants"},{token:"paren.rparen",regex:"}",next:"pop"},{token:"paren.lparen",regex:"{",push:"fqstringParRules"}],constants:[{token:"constant.numeric",regex:"(?:"+M+"|\\d+)[jJ]\\b"},{token:"constant.numeric",regex:M},{token:"constant.numeric",regex:_+"[lL]\\b"},{token:"constant.numeric",regex:_+"\\b"},{token:["punctuation","function.support"],regex:"(\\.)([a-zA-Z_]+)\\b"},{token:l,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]},this.normalizeRules()};V.inherits(A,L),T.PythonHighlightRules=A}),ace.define("ace/mode/folding/pythonic",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode"],function(y,T,G){var V=y("../../lib/oop"),L=y("./fold_mode").FoldMode,A=T.FoldMode=function(s){this.foldingStartMarker=new RegExp("([\\[{])(?:\\s*)$|("+s+")(?:\\s*)(?:#.*)?$")};V.inherits(A,L),(function(){this.getFoldWidgetRange=function(s,m,h){var l=s.getLine(h),c=l.match(this.foldingStartMarker);if(c)return c[1]?this.openingBracketBlock(s,c[1],h,c.index):c[2]?this.indentationBlock(s,h,c.index+c[2].length):this.indentationBlock(s,h)}}).call(A.prototype)}),ace.define("ace/mode/python",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/python_highlight_rules","ace/mode/folding/pythonic","ace/range"],function(y,T,G){var V=y("../lib/oop"),L=y("./text").Mode,A=y("./python_highlight_rules").PythonHighlightRules,s=y("./folding/pythonic").FoldMode,m=y("../range").Range,h=function(){this.HighlightRules=A,this.foldingRules=new s("\\:"),this.$behaviour=this.$defaultBehaviour};V.inherits(h,L),(function(){this.lineCommentStart="#",this.$pairQuotesAfter={"'":/[ruf]/i,'"':/[ruf]/i},this.getNextLineIndent=function(c,i,u){var d=this.$getIndent(i),g=this.getTokenizer().getLineTokens(i,c),v=g.tokens;if(v.length&&v[v.length-1].type=="comment")return d;if(c=="start"){var x=i.match(/^.*[\{\(\[:]\s*$/);x&&(d+=u)}return d};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(c,i,u){if(u!==`\r -`&&u!=="\r"&&u!==` -`)return!1;var d=this.getTokenizer().getLineTokens(i.trim(),c).tokens;if(!d)return!1;do var g=d.pop();while(g&&(g.type=="comment"||g.type=="text"&&g.value.match(/^\s+$/)));return g?g.type=="keyword"&&l[g.value]:!1},this.autoOutdent=function(c,i,u){u+=1;var d=this.$getIndent(i.getLine(u)),g=i.getTabString();d.slice(-g.length)==g&&i.remove(new m(u,d.length-g.length,u,d.length))},this.$id="ace/mode/python",this.snippetFileId="ace/snippets/python"}).call(h.prototype),T.Mode=h}),function(){ace.require(["ace/mode/python"],function(y){o&&(o.exports=y)})}()})(vde);var yde={exports:{}};(function(o,b){ace.define("ace/snippets/python.snippets",["require","exports","module"],function(y,T,G){G.exports=`snippet #! - #!/usr/bin/env python -snippet imp - import \${1:module} -snippet from - from \${1:package} import \${2:module} -# Module Docstring -snippet docs - ''' - File: \${1:FILENAME:file_name} - Author: \${2:author} - Description: \${3} - ''' -snippet wh - while \${1:condition}: - \${2:# TODO: write code...} -# dowh - does the same as do...while in other languages -snippet dowh - while True: - \${1:# TODO: write code...} - if \${2:condition}: - break -snippet with - with \${1:expr} as \${2:var}: - \${3:# TODO: write code...} -# New Class -snippet cl - class \${1:ClassName}(\${2:object}): - """\${3:docstring for $1}""" - def __init__(self, \${4:arg}): - \${5:super($1, self).__init__()} - self.$4 = $4 - \${6} -# New Function -snippet def - def \${1:fname}(\${2:\`indent('.') ? 'self' : ''\`}): - """\${3:docstring for $1}""" - \${4:# TODO: write code...} -snippet deff - def \${1:fname}(\${2:\`indent('.') ? 'self' : ''\`}): - \${3:# TODO: write code...} -# New Method -snippet defs - def \${1:mname}(self, \${2:arg}): - \${3:# TODO: write code...} -# New Property -snippet property - def \${1:foo}(): - doc = "\${2:The $1 property.}" - def fget(self): - \${3:return self._$1} - def fset(self, value): - \${4:self._$1 = value} -# Ifs -snippet if - if \${1:condition}: - \${2:# TODO: write code...} -snippet el - else: - \${1:# TODO: write code...} -snippet ei - elif \${1:condition}: - \${2:# TODO: write code...} -# For -snippet for - for \${1:item} in \${2:items}: - \${3:# TODO: write code...} -# Encodes -snippet cutf8 - # -*- coding: utf-8 -*- -snippet clatin1 - # -*- coding: latin-1 -*- -snippet cascii - # -*- coding: ascii -*- -# Lambda -snippet ld - \${1:var} = lambda \${2:vars} : \${3:action} -snippet . - self. -snippet try Try/Except - try: - \${1:# TODO: write code...} - except \${2:Exception}, \${3:e}: - \${4:raise $3} -snippet try Try/Except/Else - try: - \${1:# TODO: write code...} - except \${2:Exception}, \${3:e}: - \${4:raise $3} - else: - \${5:# TODO: write code...} -snippet try Try/Except/Finally - try: - \${1:# TODO: write code...} - except \${2:Exception}, \${3:e}: - \${4:raise $3} - finally: - \${5:# TODO: write code...} -snippet try Try/Except/Else/Finally - try: - \${1:# TODO: write code...} - except \${2:Exception}, \${3:e}: - \${4:raise $3} - else: - \${5:# TODO: write code...} - finally: - \${6:# TODO: write code...} -# if __name__ == '__main__': -snippet ifmain - if __name__ == '__main__': - \${1:main()} -# __magic__ -snippet _ - __\${1:init}__\${2} -# python debugger (pdb) -snippet pdb - import pdb; pdb.set_trace() -# ipython debugger (ipdb) -snippet ipdb - import ipdb; ipdb.set_trace() -# ipython debugger (pdbbb) -snippet pdbbb - import pdbpp; pdbpp.set_trace() -snippet pprint - import pprint; pprint.pprint(\${1})\${2} -snippet " - """ - \${1:doc} - """ -# test function/method -snippet test - def test_\${1:description}(\${2:self}): - \${3:# TODO: write code...} -# test case -snippet testcase - class \${1:ExampleCase}(unittest.TestCase): - - def test_\${2:description}(self): - \${3:# TODO: write code...} -snippet fut - from __future__ import \${1} -#getopt -snippet getopt - try: - # Short option syntax: "hv:" - # Long option syntax: "help" or "verbose=" - opts, args = getopt.getopt(sys.argv[1:], "\${1:short_options}", [\${2:long_options}]) - - except getopt.GetoptError, err: - # Print debug info - print str(err) - \${3:error_action} - - for option, argument in opts: - if option in ("-h", "--help"): - \${4} - elif option in ("-v", "--verbose"): - verbose = argument -`}),ace.define("ace/snippets/python",["require","exports","module","ace/snippets/python.snippets"],function(y,T,G){T.snippetText=y("./python.snippets"),T.scope="python"}),function(){ace.require(["ace/snippets/python"],function(y){o&&(o.exports=y)})}()})(yde);var bde={exports:{}};(function(o,b){ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(y,T,G){var V=y("./lib/dom"),L=y("./lib/oop"),A=y("./lib/event_emitter").EventEmitter,s=y("./lib/lang"),m=y("./range").Range,h=y("./range_list").RangeList,l=y("./keyboard/hash_handler").HashHandler,c=y("./tokenizer").Tokenizer,i=y("./clipboard"),u={CURRENT_WORD:function(S){return S.session.getTextRange(S.session.getWordRange())},SELECTION:function(S,O,D){var N=S.session.getTextRange();return D?N.replace(/\n\r?([ \t]*\S)/g,` -`+D+"$1"):N},CURRENT_LINE:function(S){return S.session.getLine(S.getCursorPosition().row)},PREV_LINE:function(S){return S.session.getLine(S.getCursorPosition().row-1)},LINE_INDEX:function(S){return S.getCursorPosition().row},LINE_NUMBER:function(S){return S.getCursorPosition().row+1},SOFT_TABS:function(S){return S.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(S){return S.session.getTabSize()},CLIPBOARD:function(S){return i.getText&&i.getText()},FILENAME:function(S){return/[^/\\]*$/.exec(this.FILEPATH(S))[0]},FILENAME_BASE:function(S){return/[^/\\]*$/.exec(this.FILEPATH(S))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(S){return this.FILEPATH(S).replace(/[^/\\]*$/,"")},FILEPATH:function(S){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(S){var O=S.session.$mode||{};return O.blockComment&&O.blockComment.start||""},BLOCK_COMMENT_END:function(S){var O=S.session.$mode||{};return O.blockComment&&O.blockComment.end||""},LINE_COMMENT:function(S){var O=S.session.$mode||{};return O.lineCommentStart||""},CURRENT_YEAR:d.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:d.bind(null,{year:"2-digit"}),CURRENT_MONTH:d.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:d.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:d.bind(null,{month:"short"}),CURRENT_DATE:d.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:d.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:d.bind(null,{weekday:"short"}),CURRENT_HOUR:d.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:d.bind(null,{minute:"2-digit"}),CURRENT_SECOND:d.bind(null,{second:"2-digit"})};u.SELECTED_TEXT=u.SELECTION;function d(S){var O=new Date().toLocaleString("en-us",S);return O.length==1?"0"+O:O}var g=function(){function S(){this.snippetMap={},this.snippetNameMap={},this.variables=u}return S.prototype.getTokenizer=function(){return S.$tokenizer||this.createTokenizer()},S.prototype.createTokenizer=function(){function O(M){return M=M.substr(1),/^\d+$/.test(M)?[{tabstopId:parseInt(M,10)}]:[{text:M}]}function D(M){return"(?:[^\\\\"+M+"]|\\\\.)"}var N={regex:"/("+D("/")+"+)/",onMatch:function(M,k,R){var F=R[0];return F.fmtString=!0,F.guard=M.slice(1,-1),F.flag="",""},next:"formatString"};return S.$tokenizer=new c({start:[{regex:/\\./,onMatch:function(M,k,R){var F=M[1];return(F=="}"&&R.length||"`$\\".indexOf(F)!=-1)&&(M=F),[M]}},{regex:/}/,onMatch:function(M,k,R){return[R.length?R.shift():M]}},{regex:/\$(?:\d+|\w+)/,onMatch:O},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(M,k,R){var F=O(M.substr(1));return R.unshift(F[0]),F},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+D("\\|")+"*\\|",onMatch:function(M,k,R){var F=M.slice(1,-1).replace(/\\[,|\\]|,/g,function(H){return H.length==2?H[1]:"\0"}).split("\0").map(function(H){return{value:H}});return R[0].choices=F,[F[0]]},next:"start"},N,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(M,k,R){return R.length&&R[0].expectElse?(R[0].expectElse=!1,R[0].ifEnd={elseEnd:R[0]},[R[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(M,k,R){var F=M[1];return F=="}"&&R.length||"`$\\".indexOf(F)!=-1?M=F:F=="n"?M=` -`:F=="t"?M=" ":"ulULE".indexOf(F)!=-1&&(M={changeCase:F,local:F>"a"}),[M]}},{regex:"/\\w*}",onMatch:function(M,k,R){var F=R.shift();return F&&(F.flag=M.slice(1,-1)),this.next=F&&F.tabstopId?"start":"",[F||M]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(M,k,R){return[{text:M.slice(1)}]}},{regex:/\${\w+/,onMatch:function(M,k,R){var F={text:M.slice(2)};return R.unshift(F),[F]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(M,k,R){var F=R.shift();return this.next=F&&F.tabstopId?"start":"",[F||M]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(M,k,R){var F=R[0];return F.formatFunction=M.slice(2,-1),[R.shift()]},next:"formatString"},N,{regex:/:[\?\-+]?/,onMatch:function(M,k,R){M[1]=="+"&&(R[0].ifEnd=R[0]),M[1]=="?"&&(R[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),S.$tokenizer},S.prototype.tokenizeTmSnippet=function(O,D){return this.getTokenizer().getLineTokens(O,D).tokens.map(function(N){return N.value||N})},S.prototype.getVariableValue=function(O,D,N){if(/^\d+$/.test(D))return(this.variables.__||{})[D]||"";if(/^[A-Z]\d+$/.test(D))return(this.variables[D[0]+"__"]||{})[D.substr(1)]||"";if(D=D.replace(/^TM_/,""),!this.variables.hasOwnProperty(D))return"";var M=this.variables[D];return typeof M=="function"&&(M=this.variables[D](O,D,N)),M??""},S.prototype.tmStrFormat=function(O,D,N){if(!D.fmt)return O;var M=D.flag||"",k=D.guard;k=new RegExp(k,M.replace(/[^gim]/g,""));var R=typeof D.fmt=="string"?this.tokenizeTmSnippet(D.fmt,"formatString"):D.fmt,F=this,H=O.replace(k,function(){var j=F.variables.__;F.variables.__=[].slice.call(arguments);for(var P=F.resolveVariables(R,N),ee="E",J=0;J=0&&H.splice(j,1)}}O.content?k(O):Array.isArray(O)&&O.forEach(k)},S.prototype.parseSnippetFile=function(O){O=O.replace(/\r/g,"");for(var D=[],N={},M=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm,k;k=M.exec(O);){if(k[1])try{N=JSON.parse(k[1]),D.push(N)}catch{}if(k[4])N.content=k[4].replace(/^\t/gm,""),D.push(N),N={};else{var R=k[2],F=k[3];if(R=="regex"){var H=/\/((?:[^\/\\]|\\.)*)|$/g;N.guard=H.exec(F)[1],N.trigger=H.exec(F)[1],N.endTrigger=H.exec(F)[1],N.endGuard=H.exec(F)[1]}else R=="snippet"?(N.tabTrigger=F.match(/^\S*/)[0],N.name||(N.name=F)):R&&(N[R]=F)}}return D},S.prototype.getSnippetByName=function(O,D){var N=this.snippetNameMap,M;return this.getActiveScopes(D).some(function(k){var R=N[k];return R&&(M=R[O]),!!M},this),M},S}();L.implement(g.prototype,A);var v=function(S,O,D){D===void 0&&(D={});var N=S.getCursorPosition(),M=S.session.getLine(N.row),k=S.session.getTabString(),R=M.match(/^\s*/)[0];N.column1?(Se=fe[fe.length-1].length,ge+=fe.length-1):Se+=ne.length,ce+=ne}else ne&&(ne.start?ne.end={row:ge,column:Se}:ne.start={row:ge,column:Se})}),{text:ce,tabstops:H,tokens:F}},x=function(){function S(O){if(this.index=0,this.ranges=[],this.tabstops=[],O.tabstopManager)return O.tabstopManager;O.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(O)}return S.prototype.attach=function(O){this.$openTabstops=null,this.selectedTabstop=null,this.editor=O,this.session=O.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},S.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},S.prototype.onChange=function(O){for(var D=O.action[0]=="r",N=this.selectedTabstop||{},M=N.parents||{},k=this.tabstops.slice(),R=0;R2&&(this.tabstops.length&&F.push(F.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,F))},S.prototype.addTabstopMarkers=function(O){var D=this.session;O.forEach(function(N){N.markerId||(N.markerId=D.addMarker(N,"ace_snippet-marker","text"))})},S.prototype.removeTabstopMarkers=function(O){var D=this.session;O.forEach(function(N){D.removeMarker(N.markerId),N.markerId=null})},S.prototype.removeRange=function(O){var D=O.tabstop.indexOf(O);D!=-1&&O.tabstop.splice(D,1),D=this.ranges.indexOf(O),D!=-1&&this.ranges.splice(D,1),D=O.tabstop.rangeList.ranges.indexOf(O),D!=-1&&O.tabstop.splice(D,1),this.session.removeMarker(O.markerId),O.tabstop.length||(D=this.tabstops.indexOf(O.tabstop),D!=-1&&this.tabstops.splice(D,1),this.tabstops.length||this.detach())},S}();x.prototype.keyboardHandler=new l,x.prototype.keyboardHandler.bindKeys({Tab:function(S){T.snippetManager&&T.snippetManager.expandWithTab(S)||(S.tabstopManager.tabNext(1),S.renderer.scrollCursorIntoView())},"Shift-Tab":function(S){S.tabstopManager.tabNext(-1),S.renderer.scrollCursorIntoView()},Esc:function(S){S.tabstopManager.detach()}});var C=function(S,O){S.row==0&&(S.column+=O.column),S.row+=O.row},_=function(S,O){S.row==O.row&&(S.column-=O.column),S.row-=O.row};V.importCssString(` -.ace_snippet-marker { - -moz-box-sizing: border-box; - box-sizing: border-box; - background: rgba(194, 193, 208, 0.09); - border: 1px dotted rgba(211, 208, 235, 0.62); - position: absolute; -}`,"snippets.css",!1),T.snippetManager=new g;var $=y("./editor").Editor;(function(){this.insertSnippet=function(S,O){return T.snippetManager.insertSnippet(this,S,O)},this.expandSnippet=function(S){return T.snippetManager.expandWithTab(this,S)}}).call($.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config"],function(y,T,G){var V=y("../virtual_renderer").VirtualRenderer,L=y("../editor").Editor,A=y("../range").Range,s=y("../lib/event"),m=y("../lib/lang"),h=y("../lib/dom"),l=y("../config").nls,c=function(d){return"suggest-aria-id:".concat(d)},i=function(d){var g=new V(d);g.$maxLines=4;var v=new L(g);return v.setHighlightActiveLine(!1),v.setShowPrintMargin(!1),v.renderer.setShowGutter(!1),v.renderer.setHighlightGutterLine(!1),v.$mouseHandler.$focusTimeout=0,v.$highlightTagPending=!0,v},u=function(){function d(g){var v=h.createElement("div"),x=new i(v);g&&g.appendChild(v),v.style.display="none",x.renderer.content.style.cursor="default",x.renderer.setStyle("ace_autocomplete"),x.renderer.$textLayer.element.setAttribute("role","listbox"),x.renderer.$textLayer.element.setAttribute("aria-label",l("Autocomplete suggestions")),x.renderer.textarea.setAttribute("aria-hidden","true"),x.setOption("displayIndentGuides",!1),x.setOption("dragDelay",150);var C=function(){};x.focus=C,x.$isFocused=!0,x.renderer.$cursorLayer.restartTimer=C,x.renderer.$cursorLayer.element.style.opacity=0,x.renderer.$maxLines=8,x.renderer.$keepTextAreaAtCursor=!1,x.setHighlightActiveLine(!1),x.session.highlight(""),x.session.$searchHighlight.clazz="ace_highlight-marker",x.on("mousedown",function(M){var k=M.getDocumentPosition();x.selection.moveToPosition(k),S.start.row=S.end.row=k.row,M.stop()});var _,$=new A(-1,0,-1,1/0),S=new A(-1,0,-1,1/0);S.id=x.session.addMarker(S,"ace_active-line","fullLine"),x.setSelectOnHover=function(M){M?$.id&&(x.session.removeMarker($.id),$.id=null):$.id=x.session.addMarker($,"ace_line-hover","fullLine")},x.setSelectOnHover(!1),x.on("mousemove",function(M){if(!_){_=M;return}if(!(_.x==M.x&&_.y==M.y)){_=M,_.scrollTop=x.renderer.scrollTop;var k=_.getDocumentPosition().row;$.start.row!=k&&($.id||x.setRow(k),D(k))}}),x.renderer.on("beforeRender",function(){if(_&&$.start.row!=-1){_.$pos=null;var M=_.getDocumentPosition().row;$.id||x.setRow(M),D(M,!0)}}),x.renderer.on("afterRender",function(){var M=x.getRow(),k=x.renderer.$textLayer,R=k.element.childNodes[M-k.config.firstRow],F=document.activeElement;if(R!==k.selectedNode&&k.selectedNode&&(h.removeCssClass(k.selectedNode,"ace_selected"),F.removeAttribute("aria-activedescendant"),k.selectedNode.removeAttribute("id")),k.selectedNode=R,R){h.addCssClass(R,"ace_selected");var H=c(M);R.id=H,k.element.setAttribute("aria-activedescendant",H),F.setAttribute("aria-activedescendant",H),R.setAttribute("role","option"),R.setAttribute("aria-label",x.getData(M).value),R.setAttribute("aria-setsize",x.data.length),R.setAttribute("aria-posinset",M+1),R.setAttribute("aria-describedby","doc-tooltip")}});var O=function(){D(-1)},D=function(M,k){M!==$.start.row&&($.start.row=$.end.row=M,k||x.session._emit("changeBackMarker"),x._emit("changeHoverMarker"))};x.getHoveredRow=function(){return $.start.row},s.addListener(x.container,"mouseout",O),x.on("hide",O),x.on("changeSelection",O),x.session.doc.getLength=function(){return x.data.length},x.session.doc.getLine=function(M){var k=x.data[M];return typeof k=="string"?k:k&&k.value||""};var N=x.session.bgTokenizer;return N.$tokenizeRow=function(M){var k=x.data[M],R=[];if(!k)return R;typeof k=="string"&&(k={value:k});var F=k.caption||k.value||k.name;function H(he,ge){he&&R.push({type:(k.className||"")+(ge||""),value:he})}for(var j=F.toLowerCase(),P=(x.filterText||"").toLowerCase(),ee=0,J=0,K=0;K<=P.length;K++)if(K!=J&&(k.matchMask&1<=J?R="bottom":R="top"),R==="top"?(K.bottom=M.top-this.$borderSize,K.top=K.bottom-J):R==="bottom"&&(K.top=M.top+k+this.$borderSize,K.bottom=K.top+J);var he=K.top>=0&&K.bottom<=j;if(!F&&!he)return!1;he?ee.$maxPixelHeight=null:R==="top"?ee.$maxPixelHeight=Q:ee.$maxPixelHeight=ae,R==="top"?(H.style.top="",H.style.bottom=j-K.bottom+"px",x.isTopdown=!1):(H.style.top=K.top+"px",H.style.bottom="",x.isTopdown=!0),H.style.display="";var ge=M.left;return ge+H.offsetWidth>P&&(ge=P-H.offsetWidth),H.style.left=ge+"px",H.style.right="",x.isOpen||(x.isOpen=!0,this._signal("show"),_=null),x.anchorPos=M,x.anchor=R,!0},x.show=function(M,k,R){this.tryShow(M,k,R?"bottom":void 0,!0)},x.goTo=function(M){var k=this.getRow(),R=this.session.getLength()-1;switch(M){case"up":k=k<=0?R:k-1;break;case"down":k=k>=R?-1:k+1;break;case"start":k=0;break;case"end":k=R;break}this.setRow(k)},x.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},x.$imageSize=0,x.$borderSize=1,x}return d}();h.importCssString(` -.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { - background-color: #CAD6FA; - z-index: 1; -} -.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line { - background-color: #3a674e; -} -.ace_editor.ace_autocomplete .ace_line-hover { - border: 1px solid #abbffe; - margin-top: -1px; - background: rgba(233,233,253,0.4); - position: absolute; - z-index: 2; -} -.ace_dark.ace_editor.ace_autocomplete .ace_line-hover { - border: 1px solid rgba(109, 150, 13, 0.8); - background: rgba(58, 103, 78, 0.62); -} -.ace_completion-meta { - opacity: 0.5; - margin-left: 0.9em; -} -.ace_completion-message { - color: blue; -} -.ace_editor.ace_autocomplete .ace_completion-highlight{ - color: #2d69c7; -} -.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{ - color: #93ca12; -} -.ace_editor.ace_autocomplete { - width: 300px; - z-index: 200000; - border: 1px lightgray solid; - position: fixed; - box-shadow: 2px 3px 5px rgba(0,0,0,.2); - line-height: 1.4; - background: #fefefe; - color: #111; -} -.ace_dark.ace_editor.ace_autocomplete { - border: 1px #484747 solid; - box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51); - line-height: 1.4; - background: #25282c; - color: #c1c1c1; -} -.ace_autocomplete .ace_text-layer { - width: calc(100% - 8px); -} -.ace_autocomplete .ace_line { - display: flex; - align-items: center; -} -.ace_autocomplete .ace_line > * { - min-width: 0; - flex: 0 0 auto; -} -.ace_autocomplete .ace_line .ace_ { - flex: 0 1 auto; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; -} -.ace_autocomplete .ace_completion-spacer { - flex: 1; -} -`,"autocompletion.css",!1),T.AcePopup=u,T.$singleLineEditor=i,T.getAriaId=c}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets"],function(y,T,G){var V=y("../snippets").snippetManager,L=function(){function A(){this.editor=null}return A.prototype.show=function(s,m,h){if(h=h||"",s&&this.editor&&this.editor!==s&&(this.hide(),this.editor=null),!s||!m)return!1;var l=m.snippet?V.getDisplayTextForSnippet(s,m.snippet):m.value;return m.hideInlinePreview||!l||!l.startsWith(h)?!1:(this.editor=s,l=l.slice(h.length),l===""?s.removeGhostText():s.setGhostText(l),!0)},A.prototype.isOpen=function(){return this.editor?!!this.editor.renderer.$ghostText:!1},A.prototype.hide=function(){return this.editor?(this.editor.removeGhostText(),!0):!1},A.prototype.destroy=function(){this.hide(),this.editor=null},A}();T.AceInline=L}),ace.define("ace/autocomplete/util",["require","exports","module"],function(y,T,G){T.parForEach=function(L,A,s){var m=0,h=L.length;h===0&&s();for(var l=0;l=0&&s.test(L[h]);h--)m.push(L[h]);return m.reverse().join("")},T.retrieveFollowingIdentifier=function(L,A,s){s=s||V;for(var m=[],h=A;h=0&&this.stickySelectionTimer.schedule(this.stickySelectionDelay)},x.prototype.observeLayoutChanges=function(){if(!(this.$elements||!this.editor)){window.addEventListener("resize",this.onLayoutChange,{passive:!0}),window.addEventListener("wheel",this.mousewheelListener);for(var C=this.editor.container.parentNode,_=[];C;)_.push(C),C.addEventListener("scroll",this.onLayoutChange,{passive:!0}),C=C.parentNode;this.$elements=_}},x.prototype.unObserveLayoutChanges=function(){var C=this;window.removeEventListener("resize",this.onLayoutChange,{passive:!0}),window.removeEventListener("wheel",this.mousewheelListener),this.$elements&&this.$elements.forEach(function(_){_.removeEventListener("scroll",C.onLayoutChange,{passive:!0})}),this.$elements=null},x.prototype.onLayoutChange=function(){if(!this.popup.isOpen)return this.unObserveLayoutChanges();this.$updatePopupPosition(),this.updateDocTooltip()},x.prototype.$updatePopupPosition=function(){var C=this.editor,_=C.renderer,$=_.layerConfig.lineHeight,S=_.$cursorLayer.getPixelPosition(this.base,!0);S.left-=this.popup.getTextLeftOffset();var O=C.container.getBoundingClientRect();S.top+=O.top-_.layerConfig.offset,S.left+=O.left-C.renderer.scrollLeft,S.left+=_.gutterWidth;var D={top:S.top,left:S.left};_.$ghostText&&_.$ghostTextWidget&&this.base.row===_.$ghostText.position.row&&(D.top+=_.$ghostTextWidget.el.offsetHeight),!this.popup.tryShow(D,$,"bottom")&&(this.popup.tryShow(S,$,"top")||this.popup.show(S,$))},x.prototype.openPopup=function(C,_,$){this.popup||this.$init(),this.inlineEnabled&&!this.inlineRenderer&&this.$initInline(),this.popup.autoSelect=this.autoSelect,this.popup.setSelectOnHover(this.setSelectOnHover);var S=this.popup.data[this.popup.getRow()];this.popup.setData(this.completions.filtered,this.completions.filterText),this.editor.textInput.setAriaOptions&&this.editor.textInput.setAriaOptions({activeDescendant:s(this.popup.getRow()),inline:this.inlineEnabled}),C.keyBinding.addKeyboardHandler(this.keyboardHandler);var O=this.popup.data.indexOf(S);O&&this.stickySelection?this.popup.setRow(this.autoSelect?O:-1):this.popup.setRow(this.autoSelect?0:-1),$?$&&!_&&this.detach():(this.popup.setTheme(C.getTheme()),this.popup.setFontSize(C.getFontSize()),this.$updatePopupPosition(),this.tooltipNode&&this.updateDocTooltip()),this.changeTimer.cancel(),this.observeLayoutChanges()},x.prototype.detach=function(){this.editor&&(this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.off("changeSelection",this.changeListener),this.editor.off("blur",this.blurListener),this.editor.off("mousedown",this.mousedownListener),this.editor.off("mousewheel",this.mousewheelListener)),this.changeTimer.cancel(),this.hideDocTooltip(),this.completionProvider&&this.completionProvider.detach(),this.popup&&this.popup.isOpen&&this.popup.hide(),this.base&&this.base.detach(),this.activated=!1,this.completionProvider=this.completions=this.base=null,this.unObserveLayoutChanges()},x.prototype.changeListener=function(C){var _=this.editor.selection.lead;(_.row!=this.base.row||_.columnthis.filterText&&C.lastIndexOf(this.filterText,0)===0)var _=this.filtered;else var _=this.all;this.filterText=C,_=this.filterCompletions(_,this.filterText),_=_.sort(function(S,O){return O.exactMatch-S.exactMatch||O.$score-S.$score||(S.caption||S.value).localeCompare(O.caption||O.value)});var $=null;_=_.filter(function(S){var O=S.snippet||S.caption||S.value;return O===$?!1:($=O,!0)}),this.filtered=_},x.prototype.filterCompletions=function(C,_){var $=[],S=_.toUpperCase(),O=_.toLowerCase();e:for(var D=0,N;N=C[D];D++){var M=!this.ignoreCaption&&N.caption||N.value||N.snippet;if(M){var k=-1,R=0,F=0,H,j;if(this.exactMatch){if(_!==M.substr(0,_.length))continue e}else{var P=M.toLowerCase().indexOf(O);if(P>-1)F=P;else for(var ee=0;ee<_.length;ee++){var J=M.indexOf(O[ee],k+1),K=M.indexOf(S[ee],k+1);if(H=J>=0&&(K<0||J0&&(k===-1&&(F+=10),F+=j,R=R|1<",s.escapeHTML(D.caption),"","
    ",s.escapeHTML(c(D.snippet))].join(""))},id:"snippetCompleter"},u=[i,h,l];T.setCompleters=function(D){u.length=0,D&&u.push.apply(u,D)},T.addCompleter=function(D){u.push(D)},T.textCompleter=h,T.keyWordCompleter=l,T.snippetCompleter=i;var d={name:"expandSnippet",exec:function(D){return V.expandWithTab(D)},bindKey:"Tab"},g=function(D,N){v(N.session.$mode)},v=function(D){typeof D=="string"&&(D=A.$modes[D]),D&&(V.files||(V.files={}),x(D.$id,D.snippetFileId),D.modes&&D.modes.forEach(v))},x=function(D,N){!N||!D||V.files[D]||(V.files[D]={},A.loadModule(N,function(M){M&&(V.files[D]=M,!M.snippets&&M.snippetText&&(M.snippets=V.parseSnippetFile(M.snippetText)),V.register(M.snippets||[],M.scope),M.includeScopes&&(V.snippetMap[M.scope].includeScopes=M.includeScopes,M.includeScopes.forEach(function(k){v("ace/mode/"+k)})))}))},C=function(D){var N=D.editor,M=N.completer&&N.completer.activated;if(D.command.name==="backspace")M&&!m.getCompletionPrefix(N)&&N.completer.detach();else if(D.command.name==="insertstring"&&!M){_=D;var k=D.editor.$liveAutocompletionDelay;k?$.delay(k):S(D)}},_,$=s.delayedCall(function(){S(_)},0),S=function(D){var N=D.editor,M=m.getCompletionPrefix(N),k=m.triggerAutocomplete(N);if(M&&M.length>=N.$liveAutocompletionThreshold||k){var R=L.for(N);R.autoShown=!0,R.showPopup(N)}},O=y("../editor").Editor;y("../config").defineOptions(O.prototype,"editor",{enableBasicAutocompletion:{set:function(D){D?(this.completers||(this.completers=Array.isArray(D)?D:u),this.commands.addCommand(L.startCommand)):this.commands.removeCommand(L.startCommand)},value:!1},enableLiveAutocompletion:{set:function(D){D?(this.completers||(this.completers=Array.isArray(D)?D:u),this.commands.on("afterExec",C)):this.commands.off("afterExec",C)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(D){D?(this.commands.addCommand(d),this.on("changeMode",g),g(null,this)):(this.commands.removeCommand(d),this.off("changeMode",g))},value:!1}})}),function(){ace.require(["ace/ext/language_tools"],function(y){o&&(o.exports=y)})}()})(bde);var xde={exports:{}};(function(o,b){ace.define("ace/theme/dracula-css",["require","exports","module"],function(y,T,G){G.exports=`/* - * Copyright © 2017 Zeno Rocha - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - */ - -.ace-dracula .ace_gutter { - background: #282a36; - color: rgb(144,145,148) -} - -.ace-dracula .ace_print-margin { - width: 1px; - background: #44475a -} - -.ace-dracula { - background-color: #282a36; - color: #f8f8f2 -} - -.ace-dracula .ace_cursor { - color: #f8f8f0 -} - -.ace-dracula .ace_marker-layer .ace_selection { - background: #44475a -} - -.ace-dracula.ace_multiselect .ace_selection.ace_start { - box-shadow: 0 0 3px 0px #282a36; - border-radius: 2px -} - -.ace-dracula .ace_marker-layer .ace_step { - background: rgb(198, 219, 174) -} - -.ace-dracula .ace_marker-layer .ace_bracket { - margin: -1px 0 0 -1px; - border: 1px solid #a29709 -} - -.ace-dracula .ace_marker-layer .ace_active-line { - background: #44475a -} - -.ace-dracula .ace_gutter-active-line { - background-color: #44475a -} - -.ace-dracula .ace_marker-layer .ace_selected-word { - box-shadow: 0px 0px 0px 1px #a29709; - border-radius: 3px; -} - -.ace-dracula .ace_fold { - background-color: #50fa7b; - border-color: #f8f8f2 -} - -.ace-dracula .ace_keyword { - color: #ff79c6 -} - -.ace-dracula .ace_constant.ace_language { - color: #bd93f9 -} - -.ace-dracula .ace_constant.ace_numeric { - color: #bd93f9 -} - -.ace-dracula .ace_constant.ace_character { - color: #bd93f9 -} - -.ace-dracula .ace_constant.ace_character.ace_escape { - color: #ff79c6 -} - -.ace-dracula .ace_constant.ace_other { - color: #bd93f9 -} - -.ace-dracula .ace_support.ace_function { - color: #8be9fd -} - -.ace-dracula .ace_support.ace_constant { - color: #6be5fd -} - -.ace-dracula .ace_support.ace_class { - font-style: italic; - color: #66d9ef -} - -.ace-dracula .ace_support.ace_type { - font-style: italic; - color: #66d9ef -} - -.ace-dracula .ace_storage { - color: #ff79c6 -} - -.ace-dracula .ace_storage.ace_type { - font-style: italic; - color: #8be9fd -} - -.ace-dracula .ace_invalid { - color: #F8F8F0; - background-color: #ff79c6 -} - -.ace-dracula .ace_invalid.ace_deprecated { - color: #F8F8F0; - background-color: #bd93f9 -} - -.ace-dracula .ace_string { - color: #f1fa8c -} - -.ace-dracula .ace_comment { - color: #6272a4 -} - -.ace-dracula .ace_variable { - color: #50fa7b -} - -.ace-dracula .ace_variable.ace_parameter { - font-style: italic; - color: #ffb86c -} - -.ace-dracula .ace_entity.ace_other.ace_attribute-name { - color: #50fa7b -} - -.ace-dracula .ace_entity.ace_name.ace_function { - color: #50fa7b -} - -.ace-dracula .ace_entity.ace_name.ace_tag { - color: #ff79c6 -} -.ace-dracula .ace_invisible { - color: #626680; -} - -.ace-dracula .ace_indent-guide { - background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWNgYGBgYHB3d/8PAAOIAdULw8qMAAAAAElFTkSuQmCC) right repeat-y -} - -.ace-dracula .ace_indent-guide-active { - background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACAQMAAACjTyRkAAAABlBMVEUAAADCwsK76u2xAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjYGBoAAAAhACBGFbxzQAAAABJRU5ErkJggg==") right repeat-y; -} -`}),ace.define("ace/theme/dracula",["require","exports","module","ace/theme/dracula-css","ace/lib/dom"],function(y,T,G){T.isDark=!0,T.cssClass="ace-dracula",T.cssText=y("./dracula-css"),T.$selectionColorConflict=!0;var V=y("../lib/dom");V.importCssString(T.cssText,T.cssClass,!1)}),function(){ace.require(["ace/theme/dracula"],function(y){o&&(o.exports=y)})}()})(xde);function Br(o,b){return y=>Object.keys(o).reduce((T,G)=>{const L=typeof o[G]=="object"&&o[G]!=null&&!Array.isArray(o[G])?o[G]:{type:o[G]};return y&&G in y?T[G]={...L,default:y[G]}:T[G]=L,b&&!T[G].source&&(T[G].source=b),T},{})}const ts=Br({class:[String,Array],style:{type:[String,Array,Object],default:null}},"component"),yl=typeof window<"u",xq=yl&&"IntersectionObserver"in window,wde=yl&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function wae(o,b,y){const T=b.length-1;if(T<0)return o===void 0?y:o;for(let G=0;Gb3(o[T],b[T]))}function v3(o,b,y){return o==null||!b||typeof b!="string"?y:o[b]!==void 0?o[b]:(b=b.replace(/\[(\w+)\]/g,".$1"),b=b.replace(/^\./,""),wae(o,b.split("."),y))}function lh(o,b,y){if(b===!0)return o===void 0?y:o;if(b==null||typeof b=="boolean")return y;if(o!==Object(o)){if(typeof b!="function")return y;const G=b(o,y);return typeof G>"u"?y:G}if(typeof b=="string")return v3(o,b,y);if(Array.isArray(b))return wae(o,b,y);if(typeof b!="function")return y;const T=b(o,y);return typeof T>"u"?y:T}function AE(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:o},(y,T)=>b+T)}function ra(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(o==null||o===""))return isNaN(+o)?String(o):isFinite(+o)?`${Number(o)}${b}`:void 0}function wQ(o){return o!==null&&typeof o=="object"&&!Array.isArray(o)}function CQ(o){return o&&"$el"in o?o.$el:o}const Pne=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),Cde=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function GJ(o,b){return b.every(y=>o.hasOwnProperty(y))}function ME(o,b,y){const T=Object.create(null),G=Object.create(null);for(const V in o)b.some(L=>L instanceof RegExp?L.test(V):L===V)&&!(y!=null&&y.some(L=>L===V))?T[V]=o[V]:G[V]=o[V];return[T,G]}function PE(o,b){const y={...o};return b.forEach(T=>delete y[T]),y}const Cae=/^on[^a-z]/,wq=o=>Cae.test(o),Sde=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function Cq(o){const[b,y]=ME(o,[Cae]),T=PE(b,Sde),[G,V]=ME(y,["class","style","id",/^data-/]);return Object.assign(G,b),Object.assign(V,T),[G,V]}function xd(o){return o==null?[]:Array.isArray(o)?o:[o]}function yg(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(b,Math.min(y,o))}function Ine(o){const b=o.toString().trim();return b.includes(".")?b.length-b.indexOf(".")-1:0}function Nne(o,b){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return o+y.repeat(Math.max(0,b-o.length))}function Tde(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const y=[];let T=0;for(;T0&&arguments[0]!==void 0?arguments[0]:{},b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=arguments.length>2?arguments[2]:void 0;const T={};for(const G in o)T[G]=o[G];for(const G in b){const V=o[G],L=b[G];if(wQ(V)&&wQ(L)){T[G]=gg(V,L,y);continue}if(Array.isArray(V)&&Array.isArray(L)&&y){T[G]=y(V,L);continue}T[G]=L}return T}function Sae(o){return o.map(b=>b.type===Uo?Sae(b.children):b).flat()}function p3(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(p3.cache.has(o))return p3.cache.get(o);const b=o.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return p3.cache.set(o,b),b}p3.cache=new Map;function A6(o,b){if(!b||typeof b!="object")return[];if(Array.isArray(b))return b.map(y=>A6(o,y)).flat(1);if(Array.isArray(b.children))return b.children.map(y=>A6(o,y)).flat(1);if(b.component){if(Object.getOwnPropertySymbols(b.component.provides).includes(o))return[b.component];if(b.component.subTree)return A6(o,b.component.subTree).flat(1)}return[]}function Sq(o){const b=ih({}),y=on(o);return fh(()=>{for(const T in y.value)b[T]=y.value[T]},{flush:"sync"}),GB(b)}function xB(o,b){return o.includes(b)}function Tae(o){return o[2].toLowerCase()+o.slice(3)}const M0=()=>[Function,Array];function Fne(o,b){return b="on"+_0(b),!!(o[b]||o[`${b}Once`]||o[`${b}Capture`]||o[`${b}OnceCapture`]||o[`${b}CaptureOnce`])}function kae(o){for(var b=arguments.length,y=new Array(b>1?b-1:0),T=1;T1&&arguments[1]!==void 0?arguments[1]:!0;const y=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(T=>`${T}${b?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...o.querySelectorAll(y)]}function Aae(o,b,y){let T,G=o.indexOf(document.activeElement);const V=b==="next"?1:-1;do G+=V,T=o[G];while((!T||T.offsetParent==null||!((y==null?void 0:y(T))??!0))&&G=0);return T}function CB(o,b){var T,G,V,L;const y=wB(o);if(!b)(o===document.activeElement||!o.contains(document.activeElement))&&((T=y[0])==null||T.focus());else if(b==="first")(G=y[0])==null||G.focus();else if(b==="last")(V=y.at(-1))==null||V.focus();else if(typeof b=="number")(L=y[b])==null||L.focus();else{const A=Aae(y,b);A?A.focus():CB(o,b==="next"?"first":"last")}}function KF(o){return o==null||typeof o=="string"&&o.trim()===""}function Mae(){}function EE(o,b){if(!(yl&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${b})`)))return null;try{return!!o&&o.matches(b)}catch{return null}}const Eae=["top","bottom"],kde=["start","end","left","right"];function SQ(o,b){let[y,T]=o.split(" ");return T||(T=xB(Eae,y)?"start":xB(kde,y)?"top":"center"),{side:Bne(y,b),align:Bne(T,b)}}function Bne(o,b){return o==="start"?b?"right":"left":o==="end"?b?"left":"right":o}function ZJ(o){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[o.side],align:o.align}}function jJ(o){return{side:o.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[o.align]}}function Hne(o){return{side:o.align,align:o.side}}function zne(o){return xB(Eae,o.side)?"y":"x"}class xE{constructor(b){let{x:y,y:T,width:G,height:V}=b;this.x=y,this.y=T,this.width=G,this.height=V}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Vne(o,b){return{x:{before:Math.max(0,b.left-o.left),after:Math.max(0,o.right-b.right)},y:{before:Math.max(0,b.top-o.top),after:Math.max(0,o.bottom-b.bottom)}}}function Tq(o){const b=o.getBoundingClientRect(),y=getComputedStyle(o),T=y.transform;if(T){let G,V,L,A,s;if(T.startsWith("matrix3d("))G=T.slice(9,-1).split(/, /),V=+G[0],L=+G[5],A=+G[12],s=+G[13];else if(T.startsWith("matrix("))G=T.slice(7,-1).split(/, /),V=+G[0],L=+G[3],A=+G[4],s=+G[5];else return new xE(b);const m=y.transformOrigin,h=b.x-A-(1-V)*parseFloat(m),l=b.y-s-(1-L)*parseFloat(m.slice(m.indexOf(" ")+1)),c=V?b.width/V:o.offsetWidth+1,i=L?b.height/L:o.offsetHeight+1;return new xE({x:h,y:l,width:c,height:i})}else return new xE(b)}function gE(o,b,y){if(typeof o.animate>"u")return{finished:Promise.resolve()};let T;try{T=o.animate(b,y)}catch{return{finished:Promise.resolve()}}return typeof T.finished>"u"&&(T.finished=new Promise(G=>{T.onfinish=()=>{G(T)}})),T}const lB=new WeakMap;function Ade(o,b){Object.keys(b).forEach(y=>{if(wq(y)){const T=Tae(y),G=lB.get(o);if(b[y]==null)G==null||G.forEach(V=>{const[L,A]=V;L===T&&(o.removeEventListener(T,A),G.delete(V))});else if(!G||![...G].some(V=>V[0]===T&&V[1]===b[y])){o.addEventListener(T,b[y]);const V=G||new Set;V.add([T,b[y]]),lB.has(o)||lB.set(o,V)}}else b[y]==null?o.removeAttribute(y):o.setAttribute(y,b[y])})}function Mde(o,b){Object.keys(b).forEach(y=>{if(wq(y)){const T=Tae(y),G=lB.get(o);G==null||G.forEach(V=>{const[L,A]=V;L===T&&(o.removeEventListener(T,A),G.delete(V))})}else o.removeAttribute(y)})}const dE=2.4,Une=.2126729,Wne=.7151522,Gne=.072175,Ede=.55,_de=.58,Rde=.57,Lde=.62,XF=.03,Zne=1.45,Dde=5e-4,$de=1.25,Ode=1.25,jne=.078,Yne=12.82051282051282,JF=.06,Kne=.001;function Xne(o,b){const y=(o.r/255)**dE,T=(o.g/255)**dE,G=(o.b/255)**dE,V=(b.r/255)**dE,L=(b.g/255)**dE,A=(b.b/255)**dE;let s=y*Une+T*Wne+G*Gne,m=V*Une+L*Wne+A*Gne;if(s<=XF&&(s+=(XF-s)**Zne),m<=XF&&(m+=(XF-m)**Zne),Math.abs(m-s)s){const l=(m**Ede-s**_de)*$de;h=l-Kne?0:l>-jne?l-l*Yne*JF:l+JF}return h*100}function Pde(o,b){b=Array.isArray(b)?b.slice(0,-1).map(y=>`'${y}'`).join(", ")+` or '${b.at(-1)}'`:`'${b}'`}const SB=.20689655172413793,Ide=o=>o>SB**3?Math.cbrt(o):o/(3*SB**2)+4/29,Nde=o=>o>SB?o**3:3*SB**2*(o-4/29);function _ae(o){const b=Ide,y=b(o[1]);return[116*y-16,500*(b(o[0]/.95047)-y),200*(y-b(o[2]/1.08883))]}function Rae(o){const b=Nde,y=(o[0]+16)/116;return[b(y+o[1]/500)*.95047,b(y),b(y-o[2]/200)*1.08883]}const Fde=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Bde=o=>o<=.0031308?o*12.92:1.055*o**(1/2.4)-.055,Hde=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],zde=o=>o<=.04045?o/12.92:((o+.055)/1.055)**2.4;function Lae(o){const b=Array(3),y=Bde,T=Fde;for(let G=0;G<3;++G)b[G]=Math.round(yg(y(T[G][0]*o[0]+T[G][1]*o[1]+T[G][2]*o[2]))*255);return{r:b[0],g:b[1],b:b[2]}}function kq(o){let{r:b,g:y,b:T}=o;const G=[0,0,0],V=zde,L=Hde;b=V(b/255),y=V(y/255),T=V(T/255);for(let A=0;A<3;++A)G[A]=L[A][0]*b+L[A][1]*y+L[A][2]*T;return G}function Jne(o){return!!o&&/^(#|var\(--|(rgb|hsl)a?\()/.test(o)}const Qne=/^(?(?:rgb|hsl)a?)\((?.+)\)/,Vde={rgb:(o,b,y,T)=>({r:o,g:b,b:y,a:T}),rgba:(o,b,y,T)=>({r:o,g:b,b:y,a:T}),hsl:(o,b,y,T)=>qne({h:o,s:b,l:y,a:T}),hsla:(o,b,y,T)=>qne({h:o,s:b,l:y,a:T}),hsv:(o,b,y,T)=>N6({h:o,s:b,v:y,a:T}),hsva:(o,b,y,T)=>N6({h:o,s:b,v:y,a:T})};function S0(o){if(typeof o=="number")return{r:(o&16711680)>>16,g:(o&65280)>>8,b:o&255};if(typeof o=="string"&&Qne.test(o)){const{groups:b}=o.match(Qne),{fn:y,values:T}=b,G=T.split(/,\s*/).map(V=>V.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(y)?parseFloat(V)/100:parseFloat(V));return Vde[y](...G)}else if(typeof o=="string"){let b=o.startsWith("#")?o.slice(1):o;return[3,4].includes(b.length)?b=b.split("").map(y=>y+y).join(""):[6,8].includes(b.length),Wde(b)}else if(typeof o=="object"){if(GJ(o,["r","g","b"]))return o;if(GJ(o,["h","s","l"]))return N6(Dae(o));if(GJ(o,["h","s","v"]))return N6(o)}throw new TypeError(`Invalid color: ${o==null?o:String(o)||o.constructor.name} -Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function N6(o){const{h:b,s:y,v:T,a:G}=o,V=A=>{const s=(A+b/60)%6;return T-T*y*Math.max(Math.min(s,4-s,1),0)},L=[V(5),V(3),V(1)].map(A=>Math.round(A*255));return{r:L[0],g:L[1],b:L[2],a:G}}function qne(o){return N6(Dae(o))}function Dae(o){const{h:b,s:y,l:T,a:G}=o,V=T+y*Math.min(T,1-T),L=V===0?0:2-2*T/V;return{h:b,s:L,v:V,a:G}}function QF(o){const b=Math.round(o).toString(16);return("00".substr(0,2-b.length)+b).toUpperCase()}function Ude(o){let{r:b,g:y,b:T,a:G}=o;return`#${[QF(b),QF(y),QF(T),G!==void 0?QF(Math.round(G*255)):""].join("")}`}function Wde(o){o=Gde(o);let[b,y,T,G]=Tde(o,2).map(V=>parseInt(V,16));return G=G===void 0?G:G/255,{r:b,g:y,b:T,a:G}}function Gde(o){return o.startsWith("#")&&(o=o.slice(1)),o=o.replace(/([^0-9a-f])/gi,"F"),(o.length===3||o.length===4)&&(o=o.split("").map(b=>b+b).join("")),o.length!==6&&(o=Nne(Nne(o,6),8,"F")),o}function Zde(o,b){const y=_ae(kq(o));return y[0]=y[0]+b*10,Lae(Rae(y))}function jde(o,b){const y=_ae(kq(o));return y[0]=y[0]-b*10,Lae(Rae(y))}function Yde(o){const b=S0(o);return kq(b)[1]}function $ae(o){const b=Math.abs(Xne(S0(0),S0(o)));return Math.abs(Xne(S0(16777215),S0(o)))>Math.min(b,50)?"#fff":"#000"}const _E=Symbol.for("vuetify:defaults");function Kde(o){return No(o)}function Aq(){const o=ni(_E);if(!o)throw new Error("[Vuetify] Could not find defaults instance");return o}function R0(o,b){const y=Aq(),T=No(o),G=on(()=>{if(im(b==null?void 0:b.disabled))return y.value;const L=im(b==null?void 0:b.scoped),A=im(b==null?void 0:b.reset),s=im(b==null?void 0:b.root);if(T.value==null&&!(L||A||s))return y.value;let m=gg(T.value,{prev:y.value});if(L)return m;if(A||s){const h=Number(A||1/0);for(let l=0;l<=h&&!(!m||!("prev"in m));l++)m=m.prev;return m&&typeof s=="string"&&s in m&&(m=gg(gg(m,{prev:m}),m[s])),m}return m.prev?gg(m.prev,m):m});return Gl(_E,G),G}function Xde(o,b){var y,T;return typeof((y=o.props)==null?void 0:y[b])<"u"||typeof((T=o.props)==null?void 0:T[p3(b)])<"u"}function Jde(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=arguments.length>1?arguments[1]:void 0,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Aq();const T=Vu("useDefaults");if(b=b??T.type.name??T.type.__name,!b)throw new Error("[Vuetify] Could not determine component name");const G=on(()=>{var s;return(s=y.value)==null?void 0:s[o._as??b]}),V=new Proxy(o,{get(s,m){var l,c,i,u;const h=Reflect.get(s,m);return m==="class"||m==="style"?[(l=G.value)==null?void 0:l[m],h].filter(d=>d!=null):typeof m=="string"&&!Xde(T.vnode,m)?((c=G.value)==null?void 0:c[m])??((u=(i=y.value)==null?void 0:i.global)==null?void 0:u[m])??h:h}}),L=xa();fh(()=>{if(G.value){const s=Object.entries(G.value).filter(m=>{let[h]=m;return h.startsWith(h[0].toUpperCase())});L.value=s.length?Object.fromEntries(s):void 0}else L.value=void 0});function A(){const s=nhe(_E,T);Gl(_E,on(()=>L.value?gg((s==null?void 0:s.value)??{},L.value):s==null?void 0:s.value))}return{props:V,provideSubDefaults:A}}function IE(o){if(o._setup=o._setup??o.setup,!o.name)return o;if(o._setup){o.props=Br(o.props??{},o.name)();const b=Object.keys(o.props);o.filterProps=function(T){return ME(T,b,["class","style"])},o.props._as=String,o.setup=function(T,G){const V=Aq();if(!V.value)return o._setup(T,G);const{props:L,provideSubDefaults:A}=Jde(T,T._as??o.name,V),s=o._setup(L,G);return A(),s}}return o}function Go(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return b=>(o?IE:YB)(b)}function Qde(o,b){return b.props=o,b}function NE(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",y=arguments.length>2?arguments[2]:void 0;return Go()({name:y??_0(bg(o.replace(/__/g,"-"))),props:{tag:{type:String,default:b},...ts()},setup(T,G){let{slots:V}=G;return()=>{var L;return um(T.tag,{class:[o,T.class],style:T.style},(L=V.default)==null?void 0:L.call(V))}}})}function Oae(o){if(typeof o.getRootNode!="function"){for(;o.parentNode;)o=o.parentNode;return o!==document?null:document}const b=o.getRootNode();return b!==document&&b.getRootNode({composed:!0})!==document?null:b}const TB="cubic-bezier(0.4, 0, 0.2, 1)",qde="cubic-bezier(0.0, 0, 0.2, 1)",ehe="cubic-bezier(0.4, 0, 1, 1)";function Vu(o,b){const y=yq();if(!y)throw new Error(`[Vuetify] ${o} ${b||"must be called from inside a setup function"}`);return y}function Uy(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const b=Vu(o).type;return p3((b==null?void 0:b.aliasName)||(b==null?void 0:b.name))}let Pae=0,cB=new WeakMap;function Rp(){const o=Vu("getUid");if(cB.has(o))return cB.get(o);{const b=Pae++;return cB.set(o,b),b}}Rp.reset=()=>{Pae=0,cB=new WeakMap};function Iae(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;o;){if(b?the(o):Mq(o))return o;o=o.parentElement}return document.scrollingElement}function kB(o,b){const y=[];if(b&&o&&!b.contains(o))return y;for(;o&&(Mq(o)&&y.push(o),o!==b);)o=o.parentElement;return y}function Mq(o){if(!o||o.nodeType!==Node.ELEMENT_NODE)return!1;const b=window.getComputedStyle(o);return b.overflowY==="scroll"||b.overflowY==="auto"&&o.scrollHeight>o.clientHeight}function the(o){if(!o||o.nodeType!==Node.ELEMENT_NODE)return!1;const b=window.getComputedStyle(o);return["scroll","auto"].includes(b.overflowY)}function nhe(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vu("injectSelf");const{provides:y}=b;if(y&&o in y)return y[o]}function rhe(o){for(;o;){if(window.getComputedStyle(o).position==="fixed")return!0;o=o.offsetParent}return!1}function ga(o){const b=Vu("useRender");b.render=o}function tH(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const y=No(),T=No();if(yl){const G=new ResizeObserver(V=>{o==null||o(V,G),V.length&&(b==="content"?T.value=V[0].contentRect:T.value=V[0].target.getBoundingClientRect())});dm(()=>{G.disconnect()}),ta(y,(V,L)=>{L&&(G.unobserve(CQ(L)),T.value=void 0),V&&G.observe(CQ(V))},{flush:"post"})}return{resizeRef:y,contentRect:Z6(T)}}const AB=Symbol.for("vuetify:layout"),Nae=Symbol.for("vuetify:layout-item"),ere=1e3,ohe=Br({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),ahe=Br({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function she(){const o=ni(AB);if(!o)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:o.getLayoutItem,mainRect:o.mainRect,mainStyles:o.mainStyles}}function ihe(o){const b=ni(AB);if(!b)throw new Error("[Vuetify] Could not find injected layout");const y=o.id??`layout-item-${Rp()}`,T=Vu("useLayoutItem");Gl(Nae,{id:y});const G=xa(!1);uq(()=>G.value=!0),cq(()=>G.value=!1);const{layoutItemStyles:V,layoutItemScrimStyles:L}=b.register(T,{...o,active:on(()=>G.value?!1:o.active.value),id:y});return dm(()=>b.unregister(y)),{layoutItemStyles:V,layoutRect:b.layoutRect,layoutItemScrimStyles:L}}const lhe=(o,b,y,T)=>{let G={top:0,left:0,right:0,bottom:0};const V=[{id:"",layer:{...G}}];for(const L of o){const A=b.get(L),s=y.get(L),m=T.get(L);if(!A||!s||!m)continue;const h={...G,[A.value]:parseInt(G[A.value],10)+(m.value?parseInt(s.value,10):0)};V.push({id:L,layer:h}),G=h}return V};function che(o){const b=ni(AB,null),y=on(()=>b?b.rootZIndex.value-100:ere),T=No([]),G=ih(new Map),V=ih(new Map),L=ih(new Map),A=ih(new Map),s=ih(new Map),{resizeRef:m,contentRect:h}=tH(),l=on(()=>{const S=new Map,O=o.overlaps??[];for(const D of O.filter(N=>N.includes(":"))){const[N,M]=D.split(":");if(!T.value.includes(N)||!T.value.includes(M))continue;const k=G.get(N),R=G.get(M),F=V.get(N),H=V.get(M);!k||!R||!F||!H||(S.set(M,{position:k.value,amount:parseInt(F.value,10)}),S.set(N,{position:R.value,amount:-parseInt(H.value,10)}))}return S}),c=on(()=>{const S=[...new Set([...L.values()].map(D=>D.value))].sort((D,N)=>D-N),O=[];for(const D of S){const N=T.value.filter(M=>{var k;return((k=L.get(M))==null?void 0:k.value)===D});O.push(...N)}return lhe(O,G,V,A)}),i=on(()=>!Array.from(s.values()).some(S=>S.value)),u=on(()=>c.value[c.value.length-1].layer),d=on(()=>({"--v-layout-left":ra(u.value.left),"--v-layout-right":ra(u.value.right),"--v-layout-top":ra(u.value.top),"--v-layout-bottom":ra(u.value.bottom),...i.value?void 0:{transition:"none"}})),g=on(()=>c.value.slice(1).map((S,O)=>{let{id:D}=S;const{layer:N}=c.value[O],M=V.get(D),k=G.get(D);return{id:D,...N,size:Number(M.value),position:k.value}})),v=S=>g.value.find(O=>O.id===S),x=Vu("createLayout"),C=xa(!1);Cg(()=>{C.value=!0}),Gl(AB,{register:(S,O)=>{let{id:D,order:N,position:M,layoutSize:k,elementSize:R,active:F,disableTransitions:H,absolute:j}=O;L.set(D,N),G.set(D,M),V.set(D,k),A.set(D,F),H&&s.set(D,H);const ee=A6(Nae,x==null?void 0:x.vnode).indexOf(S);ee>-1?T.value.splice(ee,0,D):T.value.push(D);const J=on(()=>g.value.findIndex(he=>he.id===D)),K=on(()=>y.value+c.value.length*2-J.value*2),ae=on(()=>{const he=M.value==="left"||M.value==="right",ge=M.value==="right",Se=M.value==="bottom",ce={[M.value]:0,zIndex:K.value,transform:`translate${he?"X":"Y"}(${(F.value?0:-110)*(ge||Se?-1:1)}%)`,position:j.value||y.value!==ere?"absolute":"fixed",...i.value?void 0:{transition:"none"}};if(!C.value)return ce;const ne=g.value[J.value];if(!ne)throw new Error(`[Vuetify] Could not find layout item "${D}"`);const fe=l.value.get(D);return fe&&(ne[fe.position]+=fe.amount),{...ce,height:he?`calc(100% - ${ne.top}px - ${ne.bottom}px)`:R.value?`${R.value}px`:void 0,left:ge?void 0:`${ne.left}px`,right:ge?`${ne.right}px`:void 0,top:M.value!=="bottom"?`${ne.top}px`:void 0,bottom:M.value!=="top"?`${ne.bottom}px`:void 0,width:he?R.value?`${R.value}px`:void 0:`calc(100% - ${ne.left}px - ${ne.right}px)`}}),Q=on(()=>({zIndex:K.value-1}));return{layoutItemStyles:ae,layoutItemScrimStyles:Q,zIndex:K}},unregister:S=>{L.delete(S),G.delete(S),V.delete(S),A.delete(S),s.delete(S),T.value=T.value.filter(O=>O!==S)},mainRect:u,mainStyles:d,getLayoutItem:v,items:g,layoutRect:h,rootZIndex:y});const _=on(()=>["v-layout",{"v-layout--full-height":o.fullHeight}]),$=on(()=>({zIndex:b?y.value:void 0,position:b?"relative":void 0,overflow:b?"hidden":void 0}));return{layoutClasses:_,layoutStyles:$,getLayoutItem:v,items:g,layoutRect:h,layoutRef:m}}const uhe={badge:"Badge",open:"Open",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{ok:"OK",cancel:"Cancel",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"}},fhe={af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1};function E2(o,b){let y;function T(){y=XQ(),y.run(()=>b.length?b(()=>{y==null||y.stop(),T()}):b())}ta(o,G=>{G&&!y?T():G||(y==null||y.stop(),y=void 0)},{immediate:!0}),ch(()=>{y==null||y.stop()})}function ri(o,b,y){let T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:l=>l,G=arguments.length>4&&arguments[4]!==void 0?arguments[4]:l=>l;const V=Vu("useProxiedModel"),L=No(o[b]!==void 0?o[b]:y),A=p3(b),m=on(A!==b?()=>{var l,c,i,u;return o[b],!!(((l=V.vnode.props)!=null&&l.hasOwnProperty(b)||(c=V.vnode.props)!=null&&c.hasOwnProperty(A))&&((i=V.vnode.props)!=null&&i.hasOwnProperty(`onUpdate:${b}`)||(u=V.vnode.props)!=null&&u.hasOwnProperty(`onUpdate:${A}`)))}:()=>{var l,c;return o[b],!!((l=V.vnode.props)!=null&&l.hasOwnProperty(b)&&((c=V.vnode.props)!=null&&c.hasOwnProperty(`onUpdate:${b}`)))});E2(()=>!m.value,()=>{ta(()=>o[b],l=>{L.value=l})});const h=on({get(){const l=o[b];return T(m.value?l:L.value)},set(l){const c=G(l),i=ds(m.value?o[b]:L.value);i===c||T(i)===l||(L.value=c,V==null||V.emit(`update:${b}`,c))}});return Object.defineProperty(h,"externalValue",{get:()=>m.value?o[b]:L.value}),h}const tre="$vuetify.",nre=(o,b)=>o.replace(/\{(\d+)\}/g,(y,T)=>String(b[+T])),Fae=(o,b,y)=>function(T){for(var G=arguments.length,V=new Array(G>1?G-1:0),L=1;Lnew Intl.NumberFormat([o.value,b.value],T).format(y)}function YJ(o,b,y){const T=ri(o,b,o[b]??y.value);return T.value=o[b]??y.value,ta(y,G=>{o[b]==null&&(T.value=y.value)}),T}function Hae(o){return b=>{const y=YJ(b,"locale",o.current),T=YJ(b,"fallback",o.fallback),G=YJ(b,"messages",o.messages);return{name:"vuetify",current:y,fallback:T,messages:G,t:Fae(y,T,G),n:Bae(y,T),provide:Hae({current:y,fallback:T,messages:G})}}}function dhe(o){const b=xa((o==null?void 0:o.locale)??"en"),y=xa((o==null?void 0:o.fallback)??"en"),T=No({en:uhe,...o==null?void 0:o.messages});return{name:"vuetify",current:b,fallback:y,messages:T,t:Fae(b,y,T),n:Bae(b,y),provide:Hae({current:b,fallback:y,messages:T})}}const MB=Symbol.for("vuetify:locale");function hhe(o){return o.name!=null}function mhe(o){const b=o!=null&&o.adapter&&hhe(o==null?void 0:o.adapter)?o==null?void 0:o.adapter:dhe(o),y=ghe(b,o);return{...b,...y}}function L2(){const o=ni(MB);if(!o)throw new Error("[Vuetify] Could not find injected locale instance");return o}function ghe(o,b){const y=No((b==null?void 0:b.rtl)??fhe),T=on(()=>y.value[o.current.value]??!1);return{isRtl:T,rtl:y,rtlClasses:on(()=>`v-locale--is-${T.value?"rtl":"ltr"}`)}}function Sg(){const o=ni(MB);if(!o)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:o.isRtl,rtlClasses:o.rtlClasses}}const EB=Symbol.for("vuetify:theme"),Gc=Br({theme:String},"theme"),b6={defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#6200EE","primary-darken-1":"#3700B3",secondary:"#03DAC6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#BB86FC","primary-darken-1":"#3700B3",secondary:"#03DAC5","secondary-darken-1":"#03DAC5",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}};function phe(){var y,T;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b6;if(!o)return{...b6,isDisabled:!0};const b={};for(const[G,V]of Object.entries(o.themes??{})){const L=V.dark||G==="dark"?(y=b6.themes)==null?void 0:y.dark:(T=b6.themes)==null?void 0:T.light;b[G]=gg(L,V)}return gg(b6,{...o,themes:b})}function vhe(o){const b=phe(o),y=No(b.defaultTheme),T=No(b.themes),G=on(()=>{const h={};for(const[l,c]of Object.entries(T.value)){const i=h[l]={...c,colors:{...c.colors}};if(b.variations)for(const u of b.variations.colors){const d=i.colors[u];if(d)for(const g of["lighten","darken"]){const v=g==="lighten"?Zde:jde;for(const x of AE(b.variations[g],1))i.colors[`${u}-${g}-${x}`]=Ude(v(S0(d),x))}}for(const u of Object.keys(i.colors)){if(/^on-[a-z]/.test(u)||i.colors[`on-${u}`])continue;const d=`on-${u}`,g=S0(i.colors[u]);i.colors[d]=$ae(g)}}return h}),V=on(()=>G.value[y.value]),L=on(()=>{const h=[];V.value.dark&&i3(h,":root",["color-scheme: dark"]),i3(h,":root",rre(V.value));for(const[u,d]of Object.entries(G.value))i3(h,`.v-theme--${u}`,[`color-scheme: ${d.dark?"dark":"normal"}`,...rre(d)]);const l=[],c=[],i=new Set(Object.values(G.value).flatMap(u=>Object.keys(u.colors)));for(const u of i)/^on-[a-z]/.test(u)?i3(c,`.${u}`,[`color: rgb(var(--v-theme-${u})) !important`]):(i3(l,`.bg-${u}`,[`--v-theme-overlay-multiplier: var(--v-theme-${u}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${u})) !important`,`color: rgb(var(--v-theme-on-${u})) !important`]),i3(c,`.text-${u}`,[`color: rgb(var(--v-theme-${u})) !important`]),i3(c,`.border-${u}`,[`--v-border-color: var(--v-theme-${u})`]));return h.push(...l,...c),h.map((u,d)=>d===0?u:` ${u}`).join("")});function A(){return{style:[{children:L.value,id:"vuetify-theme-stylesheet",nonce:b.cspNonce||!1}]}}function s(h){if(b.isDisabled)return;const l=h._context.provides.usehead;if(l)if(l.push){const c=l.push(A);yl&&ta(L,()=>{c.patch(A)})}else yl?(l.addHeadObjs(on(A)),fh(()=>l.updateDOM())):l.addHeadObjs(A());else{let i=function(){if(typeof document<"u"&&!c){const u=document.createElement("style");u.type="text/css",u.id="vuetify-theme-stylesheet",b.cspNonce&&u.setAttribute("nonce",b.cspNonce),c=u,document.head.appendChild(c)}c&&(c.innerHTML=L.value)},c=yl?document.getElementById("vuetify-theme-stylesheet"):null;yl?ta(L,i,{immediate:!0}):i()}}const m=on(()=>b.isDisabled?void 0:`v-theme--${y.value}`);return{install:s,isDisabled:b.isDisabled,name:y,themes:T,current:V,computedThemes:G,themeClasses:m,styles:L,global:{name:y,current:V}}}function Uu(o){Vu("provideTheme");const b=ni(EB,null);if(!b)throw new Error("Could not find Vuetify theme injection");const y=on(()=>o.theme??b.name.value),T=on(()=>b.themes.value[y.value]),G=on(()=>b.isDisabled?void 0:`v-theme--${y.value}`),V={...b,name:y,current:T,themeClasses:G};return Gl(EB,V),V}function i3(o,b,y){o.push(`${b} { -`,...y.map(T=>` ${T}; -`),`} -`)}function rre(o){const b=o.dark?2:1,y=o.dark?1:2,T=[];for(const[G,V]of Object.entries(o.colors)){const L=S0(V);T.push(`--v-theme-${G}: ${L.r},${L.g},${L.b}`),G.startsWith("on-")||T.push(`--v-theme-${G}-overlay-multiplier: ${Yde(V)>.18?b:y}`)}for(const[G,V]of Object.entries(o.variables)){const L=typeof V=="string"&&V.startsWith("#")?S0(V):void 0,A=L?`${L.r}, ${L.g}, ${L.b}`:void 0;T.push(`--v-${G}: ${A??V}`)}return T}const yhe=Br({...ts(),...ohe({fullHeight:!0}),...Gc()},"VApp"),bhe=Go()({name:"VApp",props:yhe(),setup(o,b){let{slots:y}=b;const T=Uu(o),{layoutClasses:G,getLayoutItem:V,items:L,layoutRef:A}=che(o),{rtlClasses:s}=Sg();return ga(()=>{var m;return ct("div",{ref:A,class:["v-application",T.themeClasses.value,G.value,s.value,o.class],style:[o.style]},[ct("div",{class:"v-application__wrap"},[(m=y.default)==null?void 0:m.call(y)])])}),{getLayoutItem:V,items:L,theme:T}}});const mc=Br({tag:{type:String,default:"div"}},"tag"),xhe=Br({text:String,...ts(),...mc()},"VToolbarTitle"),whe=Go()({name:"VToolbarTitle",props:xhe(),setup(o,b){let{slots:y}=b;return ga(()=>{const T=!!(y.default||y.text||o.text);return ct(o.tag,{class:["v-toolbar-title",o.class],style:o.style},{default:()=>{var G;return[T&&ct("div",{class:"v-toolbar-title__placeholder"},[y.text?y.text():o.text,(G=y.default)==null?void 0:G.call(y)])]}})}),{}}}),Che=Br({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function hm(o,b,y){return Go()({name:o,props:Che({mode:y,origin:b}),setup(T,G){let{slots:V}=G;const L={onBeforeEnter(A){T.origin&&(A.style.transformOrigin=T.origin)},onLeave(A){if(T.leaveAbsolute){const{offsetTop:s,offsetLeft:m,offsetWidth:h,offsetHeight:l}=A;A._transitionInitialStyles={position:A.style.position,top:A.style.top,left:A.style.left,width:A.style.width,height:A.style.height},A.style.position="absolute",A.style.top=`${s}px`,A.style.left=`${m}px`,A.style.width=`${h}px`,A.style.height=`${l}px`}T.hideOnLeave&&A.style.setProperty("display","none","important")},onAfterLeave(A){if(T.leaveAbsolute&&(A!=null&&A._transitionInitialStyles)){const{position:s,top:m,left:h,width:l,height:c}=A._transitionInitialStyles;delete A._transitionInitialStyles,A.style.position=s||"",A.style.top=m||"",A.style.left=h||"",A.style.width=l||"",A.style.height=c||""}}};return()=>{const A=T.group?Ofe:Hy;return um(A,{name:T.disabled?"":o,css:!T.disabled,...T.group?void 0:{mode:T.mode},...T.disabled?{}:L},V.default)}}})}function zae(o,b){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return Go()({name:o,props:{mode:{type:String,default:y},disabled:Boolean},setup(T,G){let{slots:V}=G;return()=>um(Hy,{name:T.disabled?"":o,css:!T.disabled,...T.disabled?{}:b},V.default)}})}function Vae(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const y=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",T=bg(`offset-${y}`);return{onBeforeEnter(L){L._parent=L.parentNode,L._initialStyle={transition:L.style.transition,overflow:L.style.overflow,[y]:L.style[y]}},onEnter(L){const A=L._initialStyle;L.style.setProperty("transition","none","important"),L.style.overflow="hidden";const s=`${L[T]}px`;L.style[y]="0",L.offsetHeight,L.style.transition=A.transition,o&&L._parent&&L._parent.classList.add(o),requestAnimationFrame(()=>{L.style[y]=s})},onAfterEnter:V,onEnterCancelled:V,onLeave(L){L._initialStyle={transition:"",overflow:L.style.overflow,[y]:L.style[y]},L.style.overflow="hidden",L.style[y]=`${L[T]}px`,L.offsetHeight,requestAnimationFrame(()=>L.style[y]="0")},onAfterLeave:G,onLeaveCancelled:G};function G(L){o&&L._parent&&L._parent.classList.remove(o),V(L)}function V(L){const A=L._initialStyle[y];L.style.overflow=L._initialStyle.overflow,A!=null&&(L.style[y]=A),delete L._initialStyle}}const She=Br({target:Object},"v-dialog-transition"),Eq=Go()({name:"VDialogTransition",props:She(),setup(o,b){let{slots:y}=b;const T={onBeforeEnter(G){G.style.pointerEvents="none",G.style.visibility="hidden"},async onEnter(G,V){var c;await new Promise(i=>requestAnimationFrame(i)),await new Promise(i=>requestAnimationFrame(i)),G.style.visibility="";const{x:L,y:A,sx:s,sy:m,speed:h}=are(o.target,G),l=gE(G,[{transform:`translate(${L}px, ${A}px) scale(${s}, ${m})`,opacity:0},{}],{duration:225*h,easing:qde});(c=ore(G))==null||c.forEach(i=>{gE(i,[{opacity:0},{opacity:0,offset:.33},{}],{duration:225*2*h,easing:TB})}),l.finished.then(()=>V())},onAfterEnter(G){G.style.removeProperty("pointer-events")},onBeforeLeave(G){G.style.pointerEvents="none"},async onLeave(G,V){var c;await new Promise(i=>requestAnimationFrame(i));const{x:L,y:A,sx:s,sy:m,speed:h}=are(o.target,G);gE(G,[{},{transform:`translate(${L}px, ${A}px) scale(${s}, ${m})`,opacity:0}],{duration:125*h,easing:ehe}).finished.then(()=>V()),(c=ore(G))==null||c.forEach(i=>{gE(i,[{},{opacity:0,offset:.2},{opacity:0}],{duration:125*2*h,easing:TB})})},onAfterLeave(G){G.style.removeProperty("pointer-events")}};return()=>o.target?ct(Hy,Jo({name:"dialog-transition"},T,{css:!1}),y):ct(Hy,{name:"dialog-transition"},y)}});function ore(o){var y;const b=(y=o.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list"))==null?void 0:y.children;return b&&[...b]}function are(o,b){const y=o.getBoundingClientRect(),T=Tq(b),[G,V]=getComputedStyle(b).transformOrigin.split(" ").map(v=>parseFloat(v)),[L,A]=getComputedStyle(b).getPropertyValue("--v-overlay-anchor-origin").split(" ");let s=y.left+y.width/2;L==="left"||A==="left"?s-=y.width/2:(L==="right"||A==="right")&&(s+=y.width/2);let m=y.top+y.height/2;L==="top"||A==="top"?m-=y.height/2:(L==="bottom"||A==="bottom")&&(m+=y.height/2);const h=y.width/T.width,l=y.height/T.height,c=Math.max(1,h,l),i=h/c||0,u=l/c||0,d=T.width*T.height/(window.innerWidth*window.innerHeight),g=d>.12?Math.min(1.5,(d-.12)*10+1):1;return{x:s-(G+T.left),y:m-(V+T.top),sx:i,sy:u,speed:g}}hm("fab-transition","center center","out-in");hm("dialog-bottom-transition");hm("dialog-top-transition");hm("fade-transition");const The=hm("scale-transition");hm("scroll-x-transition");hm("scroll-x-reverse-transition");hm("scroll-y-transition");hm("scroll-y-reverse-transition");hm("slide-x-transition");hm("slide-x-reverse-transition");const Uae=hm("slide-y-transition");hm("slide-y-reverse-transition");const _q=zae("expand-transition",Vae()),Wae=zae("expand-x-transition",Vae("",!0)),khe=Br({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),Ac=Go(!1)({name:"VDefaultsProvider",props:khe(),setup(o,b){let{slots:y}=b;const{defaults:T,disabled:G,reset:V,root:L,scoped:A}=GB(o);return R0(T,{reset:V,root:L,scoped:A,disabled:G}),()=>{var s;return(s=y.default)==null?void 0:s.call(y)}}});const x3=Br({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function w3(o){return{dimensionStyles:on(()=>({height:ra(o.height),maxHeight:ra(o.maxHeight),maxWidth:ra(o.maxWidth),minHeight:ra(o.minHeight),minWidth:ra(o.minWidth),width:ra(o.width)}))}}function Ahe(o){return{aspectStyles:on(()=>{const b=Number(o.aspectRatio);return b?{paddingBottom:String(1/b*100)+"%"}:void 0})}}const Gae=Br({aspectRatio:[String,Number],contentClass:String,inline:Boolean,...ts(),...x3()},"VResponsive"),sre=Go()({name:"VResponsive",props:Gae(),setup(o,b){let{slots:y}=b;const{aspectStyles:T}=Ahe(o),{dimensionStyles:G}=w3(o);return ga(()=>{var V;return ct("div",{class:["v-responsive",{"v-responsive--inline":o.inline},o.class],style:[G.value,o.style]},[ct("div",{class:"v-responsive__sizer",style:T.value},null),(V=y.additional)==null?void 0:V.call(y),y.default&&ct("div",{class:["v-responsive__content",o.contentClass]},[y.default()])])}),{}}}),C3=Br({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:o=>o!==!0}},"transition"),T2=(o,b)=>{let{slots:y}=b;const{transition:T,disabled:G,...V}=o,{component:L=Hy,...A}=typeof T=="object"?T:{};return um(L,Jo(typeof T=="string"?{name:G?"":T}:A,V,{disabled:G}),y)};function Mhe(o,b){if(!xq)return;const y=b.modifiers||{},T=b.value,{handler:G,options:V}=typeof T=="object"?T:{handler:T,options:{}},L=new IntersectionObserver(function(){var l;let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;const m=(l=o._observe)==null?void 0:l[b.instance.$.uid];if(!m)return;const h=A.some(c=>c.isIntersecting);G&&(!y.quiet||m.init)&&(!y.once||h||m.init)&&G(h,A,s),h&&y.once?Zae(o,b):m.init=!0},V);o._observe=Object(o._observe),o._observe[b.instance.$.uid]={init:!1,observer:L},L.observe(o)}function Zae(o,b){var T;const y=(T=o._observe)==null?void 0:T[b.instance.$.uid];y&&(y.observer.unobserve(o),delete o._observe[b.instance.$.uid])}const Ehe={mounted:Mhe,unmounted:Zae},Rq=Ehe,_he=Br({alt:String,cover:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},srcset:String,...Gae(),...ts(),...C3()},"VImg"),Y6=Go()({name:"VImg",directives:{intersect:Rq},props:_he(),emits:{loadstart:o=>!0,load:o=>!0,error:o=>!0},setup(o,b){let{emit:y,slots:T}=b;const G=xa(""),V=No(),L=xa(o.eager?"loading":"idle"),A=xa(),s=xa(),m=on(()=>o.src&&typeof o.src=="object"?{src:o.src.src,srcset:o.srcset||o.src.srcset,lazySrc:o.lazySrc||o.src.lazySrc,aspect:Number(o.aspectRatio||o.src.aspect||0)}:{src:o.src,srcset:o.srcset,lazySrc:o.lazySrc,aspect:Number(o.aspectRatio||0)}),h=on(()=>m.value.aspect||A.value/s.value||0);ta(()=>o.src,()=>{l(L.value!=="idle")}),ta(h,(D,N)=>{!D&&N&&V.value&&g(V.value)}),fq(()=>l());function l(D){if(!(o.eager&&D)&&!(xq&&!D&&!o.eager)){if(L.value="loading",m.value.lazySrc){const N=new Image;N.src=m.value.lazySrc,g(N,null)}m.value.src&&Ll(()=>{var N,M;if(y("loadstart",((N=V.value)==null?void 0:N.currentSrc)||m.value.src),(M=V.value)!=null&&M.complete){if(V.value.naturalWidth||i(),L.value==="error")return;h.value||g(V.value,null),c()}else h.value||g(V.value),u()})}}function c(){var D;u(),L.value="loaded",y("load",((D=V.value)==null?void 0:D.currentSrc)||m.value.src)}function i(){var D;L.value="error",y("error",((D=V.value)==null?void 0:D.currentSrc)||m.value.src)}function u(){const D=V.value;D&&(G.value=D.currentSrc||D.src)}let d=-1;function g(D){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const M=()=>{clearTimeout(d);const{naturalHeight:k,naturalWidth:R}=D;k||R?(A.value=R,s.value=k):!D.complete&&L.value==="loading"&&N!=null?d=window.setTimeout(M,N):(D.currentSrc.endsWith(".svg")||D.currentSrc.startsWith("data:image/svg+xml"))&&(A.value=1,s.value=1)};M()}const v=on(()=>({"v-img__img--cover":o.cover,"v-img__img--contain":!o.cover})),x=()=>{var M;if(!m.value.src||L.value==="idle")return null;const D=ct("img",{class:["v-img__img",v.value],src:m.value.src,srcset:m.value.srcset,alt:o.alt,sizes:o.sizes,ref:V,onLoad:c,onError:i},null),N=(M=T.sources)==null?void 0:M.call(T);return ct(T2,{transition:o.transition,appear:!0},{default:()=>[lu(N?ct("picture",{class:"v-img__picture"},[N,D]):D,[[R2,L.value==="loaded"]])]})},C=()=>ct(T2,{transition:o.transition},{default:()=>[m.value.lazySrc&&L.value!=="loaded"&&ct("img",{class:["v-img__img","v-img__img--preload",v.value],src:m.value.lazySrc,alt:o.alt},null)]}),_=()=>T.placeholder?ct(T2,{transition:o.transition,appear:!0},{default:()=>[(L.value==="loading"||L.value==="error"&&!T.error)&&ct("div",{class:"v-img__placeholder"},[T.placeholder()])]}):null,$=()=>T.error?ct(T2,{transition:o.transition,appear:!0},{default:()=>[L.value==="error"&&ct("div",{class:"v-img__error"},[T.error()])]}):null,S=()=>o.gradient?ct("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${o.gradient})`}},null):null,O=xa(!1);{const D=ta(h,N=>{N&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{O.value=!0})}),D())})}return ga(()=>{const[D]=sre.filterProps(o);return lu(ct(sre,Jo({class:["v-img",{"v-img--booting":!O.value},o.class],style:[{width:ra(o.width==="auto"?A.value:o.width)},o.style]},D,{aspectRatio:h.value,"aria-label":o.alt,role:o.alt?"img":void 0}),{additional:()=>ct(Uo,null,[ct(x,null,null),ct(C,null,null),ct(S,null,null),ct(_,null,null),ct($,null,null)]),default:T.default}),[[_p("intersect"),{handler:l,options:o.options},null,{once:!0}]])}),{currentSrc:G,image:V,state:L,naturalWidth:A,naturalHeight:s}}}),S3=Br({border:[Boolean,Number,String]},"border");function T3(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();return{borderClasses:on(()=>{const T=Wl(o)?o.value:o.border,G=[];if(T===!0||T==="")G.push(`${b}--border`);else if(typeof T=="string"||T===0)for(const V of String(T).split(" "))G.push(`border-${V}`);return G})}}function Lq(o){return Sq(()=>{const b=[],y={};if(o.value.background)if(Jne(o.value.background)){if(y.backgroundColor=o.value.background,!o.value.text){const T=S0(o.value.background);if(T.a==null||T.a===1){const G=$ae(T);y.color=G,y.caretColor=G}}}else b.push(`bg-${o.value.background}`);return o.value.text&&(Jne(o.value.text)?(y.color=o.value.text,y.caretColor=o.value.text):b.push(`text-${o.value.text}`)),{colorClasses:b,colorStyles:y}})}function xg(o,b){const y=on(()=>({text:Wl(o)?o.value:b?o[b]:null})),{colorClasses:T,colorStyles:G}=Lq(y);return{textColorClasses:T,textColorStyles:G}}function wg(o,b){const y=on(()=>({background:Wl(o)?o.value:b?o[b]:null})),{colorClasses:T,colorStyles:G}=Lq(y);return{backgroundColorClasses:T,backgroundColorStyles:G}}const Wy=Br({elevation:{type:[Number,String],validator(o){const b=parseInt(o);return!isNaN(b)&&b>=0&&b<=24}}},"elevation");function Gy(o){return{elevationClasses:on(()=>{const y=Wl(o)?o.value:o.elevation,T=[];return y==null||T.push(`elevation-${y}`),T})}}const Tg=Br({rounded:{type:[Boolean,Number,String],default:void 0}},"rounded");function kg(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();return{roundedClasses:on(()=>{const T=Wl(o)?o.value:o.rounded,G=[];if(T===!0||T==="")G.push(`${b}--rounded`);else if(typeof T=="string"||T===0)for(const V of String(T).split(" "))G.push(`rounded-${V}`);return G})}}const Rhe=[null,"prominent","default","comfortable","compact"],jae=Br({absolute:Boolean,collapse:Boolean,color:String,density:{type:String,default:"default",validator:o=>Rhe.includes(o)},extended:Boolean,extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...S3(),...ts(),...Wy(),...Tg(),...mc({tag:"header"}),...Gc()},"VToolbar"),ire=Go()({name:"VToolbar",props:jae(),setup(o,b){var i;let{slots:y}=b;const{backgroundColorClasses:T,backgroundColorStyles:G}=wg(Xo(o,"color")),{borderClasses:V}=T3(o),{elevationClasses:L}=Gy(o),{roundedClasses:A}=kg(o),{themeClasses:s}=Uu(o),{rtlClasses:m}=Sg(),h=xa(!!(o.extended||(i=y.extension)!=null&&i.call(y))),l=on(()=>parseInt(Number(o.height)+(o.density==="prominent"?Number(o.height):0)-(o.density==="comfortable"?8:0)-(o.density==="compact"?16:0),10)),c=on(()=>h.value?parseInt(Number(o.extensionHeight)+(o.density==="prominent"?Number(o.extensionHeight):0)-(o.density==="comfortable"?4:0)-(o.density==="compact"?8:0),10):0);return R0({VBtn:{variant:"text"}}),ga(()=>{var v;const u=!!(o.title||y.title),d=!!(y.image||o.image),g=(v=y.extension)==null?void 0:v.call(y);return h.value=!!(o.extended||g),ct(o.tag,{class:["v-toolbar",{"v-toolbar--absolute":o.absolute,"v-toolbar--collapse":o.collapse,"v-toolbar--flat":o.flat,"v-toolbar--floating":o.floating,[`v-toolbar--density-${o.density}`]:!0},T.value,V.value,L.value,A.value,s.value,m.value,o.class],style:[G.value,o.style]},{default:()=>[d&&ct("div",{key:"image",class:"v-toolbar__image"},[y.image?ct(Ac,{key:"image-defaults",disabled:!o.image,defaults:{VImg:{cover:!0,src:o.image}}},y.image):ct(Y6,{key:"image-img",cover:!0,src:o.image},null)]),ct(Ac,{defaults:{VTabs:{height:ra(l.value)}}},{default:()=>{var x,C,_;return[ct("div",{class:"v-toolbar__content",style:{height:ra(l.value)}},[y.prepend&&ct("div",{class:"v-toolbar__prepend"},[(x=y.prepend)==null?void 0:x.call(y)]),u&&ct(whe,{key:"title",text:o.title},{text:y.title}),(C=y.default)==null?void 0:C.call(y),y.append&&ct("div",{class:"v-toolbar__append"},[(_=y.append)==null?void 0:_.call(y)])])]}}),ct(Ac,{defaults:{VTabs:{height:ra(c.value)}}},{default:()=>[ct(_q,null,{default:()=>[h.value&&ct("div",{class:"v-toolbar__extension",style:{height:ra(c.value)}},[g])]})]})]})}),{contentHeight:l,extensionHeight:c}}}),Lhe=Br({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function Dhe(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{canScroll:y}=b;let T=0;const G=No(null),V=xa(0),L=xa(0),A=xa(0),s=xa(!1),m=xa(!1),h=on(()=>Number(o.scrollThreshold)),l=on(()=>yg((h.value-V.value)/h.value||0)),c=()=>{const i=G.value;!i||y&&!y.value||(T=V.value,V.value="window"in i?i.pageYOffset:i.scrollTop,m.value=V.value{L.value=L.value||V.value}),ta(s,()=>{L.value=0}),Cg(()=>{ta(()=>o.scrollTarget,i=>{var d;const u=i?document.querySelector(i):window;u&&u!==G.value&&((d=G.value)==null||d.removeEventListener("scroll",c),G.value=u,G.value.addEventListener("scroll",c,{passive:!0}))},{immediate:!0})}),dm(()=>{var i;(i=G.value)==null||i.removeEventListener("scroll",c)}),y&&ta(y,c,{immediate:!0}),{scrollThreshold:h,currentScroll:V,currentThreshold:A,isScrollActive:s,scrollRatio:l,isScrollingUp:m,savedScroll:L}}function Dq(){const o=xa(!1);return Cg(()=>{window.requestAnimationFrame(()=>{o.value=!0})}),{ssrBootStyles:on(()=>o.value?void 0:{transition:"none !important"}),isBooted:Z6(o)}}const $he=Br({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:o=>["top","bottom"].includes(o)},...jae(),...ahe(),...Lhe(),height:{type:[Number,String],default:64}},"VAppBar"),Ohe=Go()({name:"VAppBar",props:$he(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y}=b;const T=No(),G=ri(o,"modelValue"),V=on(()=>{var x;const v=new Set(((x=o.scrollBehavior)==null?void 0:x.split(" "))??[]);return{hide:v.has("hide"),inverted:v.has("inverted"),collapse:v.has("collapse"),elevate:v.has("elevate"),fadeImage:v.has("fade-image")}}),L=on(()=>{const v=V.value;return v.hide||v.inverted||v.collapse||v.elevate||v.fadeImage||!G.value}),{currentScroll:A,scrollThreshold:s,isScrollingUp:m,scrollRatio:h}=Dhe(o,{canScroll:L}),l=on(()=>o.collapse||V.value.collapse&&(V.value.inverted?h.value>0:h.value===0)),c=on(()=>o.flat||V.value.elevate&&(V.value.inverted?A.value>0:A.value===0)),i=on(()=>V.value.fadeImage?V.value.inverted?1-h.value:h.value:void 0),u=on(()=>{var C,_;if(V.value.hide&&V.value.inverted)return 0;const v=((C=T.value)==null?void 0:C.contentHeight)??0,x=((_=T.value)==null?void 0:_.extensionHeight)??0;return v+x});E2(on(()=>!!o.scrollBehavior),()=>{fh(()=>{V.value.hide?V.value.inverted?G.value=A.value>s.value:G.value=m.value||A.valueparseInt(o.order,10)),position:Xo(o,"location"),layoutSize:u,elementSize:xa(void 0),active:G,absolute:Xo(o,"absolute")});return ga(()=>{const[v]=ire.filterProps(o);return ct(ire,Jo({ref:T,class:["v-app-bar",{"v-app-bar--bottom":o.location==="bottom"},o.class],style:[{...g.value,"--v-toolbar-image-opacity":i.value,height:void 0,...d.value},o.style]},v,{collapse:l.value,flat:c.value}),y)}),{}}});const Phe=[null,"default","comfortable","compact"],Lp=Br({density:{type:String,default:"default",validator:o=>Phe.includes(o)}},"density");function L0(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();return{densityClasses:on(()=>`${b}--density-${o.density}`)}}const Ihe=["elevated","flat","tonal","outlined","text","plain"];function K6(o,b){return ct(Uo,null,[o&&ct("span",{key:"overlay",class:`${b}__overlay`},null),ct("span",{key:"underlay",class:`${b}__underlay`},null)])}const D2=Br({color:String,variant:{type:String,default:"elevated",validator:o=>Ihe.includes(o)}},"variant");function X6(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();const y=on(()=>{const{variant:V}=im(o);return`${b}--variant-${V}`}),{colorClasses:T,colorStyles:G}=Lq(on(()=>{const{variant:V,color:L}=im(o);return{[["elevated","flat"].includes(V)?"background":"text"]:L}}));return{colorClasses:T,colorStyles:G,variantClasses:y}}const Yae=Br({divided:Boolean,...S3(),...ts(),...Lp(),...Wy(),...Tg(),...mc(),...Gc(),...D2()},"VBtnGroup"),lre=Go()({name:"VBtnGroup",props:Yae(),setup(o,b){let{slots:y}=b;const{themeClasses:T}=Uu(o),{densityClasses:G}=L0(o),{borderClasses:V}=T3(o),{elevationClasses:L}=Gy(o),{roundedClasses:A}=kg(o);R0({VBtn:{height:"auto",color:Xo(o,"color"),density:Xo(o,"density"),flat:!0,variant:Xo(o,"variant")}}),ga(()=>ct(o.tag,{class:["v-btn-group",{"v-btn-group--divided":o.divided},T.value,V.value,G.value,L.value,A.value,o.class],style:o.style},y))}}),$q=Br({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Oq=Br({value:null,disabled:Boolean,selectedClass:String},"group-item");function Pq(o,b){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const T=Vu("useGroupItem");if(!T)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const G=Rp();Gl(Symbol.for(`${b.description}:id`),G);const V=ni(b,null);if(!V){if(!y)return V;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${b.description}`)}const L=Xo(o,"value"),A=on(()=>!!(V.disabled.value||o.disabled));V.register({id:G,value:L,disabled:A},T),dm(()=>{V.unregister(G)});const s=on(()=>V.isSelected(G)),m=on(()=>s.value&&[V.selectedClass.value,o.selectedClass]);return ta(s,h=>{T.emit("group:selected",{value:h})}),{id:G,isSelected:s,toggle:()=>V.select(G,!s.value),select:h=>V.select(G,h),selectedClass:m,value:L,disabled:A,group:V}}function Iq(o,b){let y=!1;const T=ih([]),G=ri(o,"modelValue",[],c=>c==null?[]:Kae(T,xd(c)),c=>{const i=Fhe(T,c);return o.multiple?i:i[0]}),V=Vu("useGroup");function L(c,i){const u=c,d=Symbol.for(`${b.description}:id`),v=A6(d,V==null?void 0:V.vnode).indexOf(i);v>-1?T.splice(v,0,u):T.push(u)}function A(c){if(y)return;s();const i=T.findIndex(u=>u.id===c);T.splice(i,1)}function s(){const c=T.find(i=>!i.disabled);c&&o.mandatory==="force"&&!G.value.length&&(G.value=[c.id])}Cg(()=>{s()}),dm(()=>{y=!0});function m(c,i){const u=T.find(d=>d.id===c);if(!(i&&(u!=null&&u.disabled)))if(o.multiple){const d=G.value.slice(),g=d.findIndex(x=>x===c),v=~g;if(i=i??!v,v&&o.mandatory&&d.length<=1||!v&&o.max!=null&&d.length+1>o.max)return;g<0&&i?d.push(c):g>=0&&!i&&d.splice(g,1),G.value=d}else{const d=G.value.includes(c);if(o.mandatory&&d)return;G.value=i??!d?[c]:[]}}function h(c){if(o.multiple,G.value.length){const i=G.value[0],u=T.findIndex(v=>v.id===i);let d=(u+c)%T.length,g=T[d];for(;g.disabled&&d!==u;)d=(d+c)%T.length,g=T[d];if(g.disabled)return;G.value=[T[d].id]}else{const i=T.find(u=>!u.disabled);i&&(G.value=[i.id])}}const l={register:L,unregister:A,selected:G,select:m,disabled:Xo(o,"disabled"),prev:()=>h(T.length-1),next:()=>h(1),isSelected:c=>G.value.includes(c),selectedClass:on(()=>o.selectedClass),items:on(()=>T),getItemIndex:c=>Nhe(T,c)};return Gl(b,l),l}function Nhe(o,b){const y=Kae(o,[b]);return y.length?o.findIndex(T=>T.id===y[0]):-1}function Kae(o,b){const y=[];return b.forEach(T=>{const G=o.find(L=>b3(T,L.value)),V=o[T];(G==null?void 0:G.value)!=null?y.push(G.id):V!=null&&y.push(V.id)}),y}function Fhe(o,b){const y=[];return b.forEach(T=>{const G=o.findIndex(V=>V.id===T);if(~G){const V=o[G];y.push(V.value!=null?V.value:G)}}),y}const Xae=Symbol.for("vuetify:v-btn-toggle"),Bhe=Br({...Yae(),...$q()},"VBtnToggle");Go()({name:"VBtnToggle",props:Bhe(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y}=b;const{isSelected:T,next:G,prev:V,select:L,selected:A}=Iq(o,Xae);return ga(()=>{const[s]=lre.filterProps(o);return ct(lre,Jo({class:["v-btn-toggle",o.class]},s,{style:o.style}),{default:()=>{var m;return[(m=y.default)==null?void 0:m.call(y,{isSelected:T,next:G,prev:V,select:L,selected:A})]}})}),{next:G,prev:V,select:L}}});const Hhe={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar"},Jae={component:o=>um(qae,{...o,class:"mdi"})},vi=[String,Function,Object,Array],TQ=Symbol.for("vuetify:icons"),nH=Br({icon:{type:vi},tag:{type:String,required:!0}},"icon"),cre=Go()({name:"VComponentIcon",props:nH(),setup(o,b){let{slots:y}=b;return()=>{const T=o.icon;return ct(o.tag,null,{default:()=>{var G;return[o.icon?ct(T,null,null):(G=y.default)==null?void 0:G.call(y)]}})}}}),Qae=IE({name:"VSvgIcon",inheritAttrs:!1,props:nH(),setup(o,b){let{attrs:y}=b;return()=>ct(o.tag,Jo(y,{style:null}),{default:()=>[ct("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(o.icon)?o.icon.map(T=>Array.isArray(T)?ct("path",{d:T[0],"fill-opacity":T[1]},null):ct("path",{d:T},null)):ct("path",{d:o.icon},null)])]})}});IE({name:"VLigatureIcon",props:nH(),setup(o){return()=>ct(o.tag,null,{default:()=>[o.icon]})}});const qae=IE({name:"VClassIcon",props:nH(),setup(o){return()=>ct(o.tag,{class:o.icon},null)}}),zhe={svg:{component:Qae},class:{component:qae}};function Vhe(o){return gg({defaultSet:"mdi",sets:{...zhe,mdi:Jae},aliases:{...Hhe,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z"}},o)}const Uhe=o=>{const b=ni(TQ);if(!b)throw new Error("Missing Vuetify Icons provide!");return{iconData:on(()=>{var s;const T=im(o);if(!T)return{component:cre};let G=T;if(typeof G=="string"&&(G=G.trim(),G.startsWith("$")&&(G=(s=b.aliases)==null?void 0:s[G.slice(1)])),!G)throw new Error(`Could not find aliased icon "${T}"`);if(Array.isArray(G))return{component:Qae,icon:G};if(typeof G!="string")return{component:cre,icon:G};const V=Object.keys(b.sets).find(m=>typeof G=="string"&&G.startsWith(`${m}:`)),L=V?G.slice(V.length+1):G;return{component:b.sets[V??b.defaultSet].component,icon:L}})}},Whe=["x-small","small","default","large","x-large"],J6=Br({size:{type:[String,Number],default:"default"}},"size");function Q6(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();return Sq(()=>{let y,T;return xB(Whe,o.size)?y=`${b}--size-${o.size}`:o.size&&(T={width:ra(o.size),height:ra(o.size)}),{sizeClasses:y,sizeStyles:T}})}const Ghe=Br({color:String,start:Boolean,end:Boolean,icon:vi,...ts(),...J6(),...mc({tag:"i"}),...Gc()},"VIcon"),js=Go()({name:"VIcon",props:Ghe(),setup(o,b){let{attrs:y,slots:T}=b;const G=No(),{themeClasses:V}=Uu(o),{iconData:L}=Uhe(on(()=>G.value||o.icon)),{sizeClasses:A}=Q6(o),{textColorClasses:s,textColorStyles:m}=xg(Xo(o,"color"));return ga(()=>{var l,c;const h=(l=T.default)==null?void 0:l.call(T);return h&&(G.value=(c=Sae(h).filter(i=>i.type===j6&&i.children&&typeof i.children=="string")[0])==null?void 0:c.children),ct(L.value.component,{tag:o.tag,icon:L.value.icon,class:["v-icon","notranslate",V.value,A.value,s.value,{"v-icon--clickable":!!y.onClick,"v-icon--start":o.start,"v-icon--end":o.end},o.class],style:[A.value?void 0:{fontSize:ra(o.size),height:ra(o.size),width:ra(o.size)},m.value,o.style],role:y.onClick?"button":void 0,"aria-hidden":!y.onClick},{default:()=>[h]})}),{}}});function ese(o,b){const y=No(),T=xa(!1);if(xq){const G=new IntersectionObserver(V=>{o==null||o(V,G),T.value=!!V.find(L=>L.isIntersecting)},b);dm(()=>{G.disconnect()}),ta(y,(V,L)=>{L&&(G.unobserve(L),T.value=!1),V&&G.observe(V)},{flush:"post"})}return{intersectionRef:y,isIntersecting:T}}const Zhe=Br({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...ts(),...J6(),...mc({tag:"div"}),...Gc()},"VProgressCircular"),tse=Go()({name:"VProgressCircular",props:Zhe(),setup(o,b){let{slots:y}=b;const T=20,G=2*Math.PI*T,V=No(),{themeClasses:L}=Uu(o),{sizeClasses:A,sizeStyles:s}=Q6(o),{textColorClasses:m,textColorStyles:h}=xg(Xo(o,"color")),{textColorClasses:l,textColorStyles:c}=xg(Xo(o,"bgColor")),{intersectionRef:i,isIntersecting:u}=ese(),{resizeRef:d,contentRect:g}=tH(),v=on(()=>Math.max(0,Math.min(100,parseFloat(o.modelValue)))),x=on(()=>Number(o.width)),C=on(()=>s.value?Number(o.size):g.value?g.value.width:Math.max(x.value,32)),_=on(()=>T/(1-x.value/C.value)*2),$=on(()=>x.value/C.value*_.value),S=on(()=>ra((100-v.value)/100*G));return fh(()=>{i.value=V.value,d.value=V.value}),ga(()=>ct(o.tag,{ref:V,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!o.indeterminate,"v-progress-circular--visible":u.value,"v-progress-circular--disable-shrink":o.indeterminate==="disable-shrink"},L.value,A.value,m.value,o.class],style:[s.value,h.value,o.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":o.indeterminate?void 0:v.value},{default:()=>[ct("svg",{style:{transform:`rotate(calc(-90deg + ${Number(o.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${_.value} ${_.value}`},[ct("circle",{class:["v-progress-circular__underlay",l.value],style:c.value,fill:"transparent",cx:"50%",cy:"50%",r:T,"stroke-width":$.value,"stroke-dasharray":G,"stroke-dashoffset":0},null),ct("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:T,"stroke-width":$.value,"stroke-dasharray":G,"stroke-dashoffset":S.value},null)]),y.default&&ct("div",{class:"v-progress-circular__content"},[y.default({value:v.value})])]})),{}}});const ure={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Nq=Br({location:String},"location");function Fq(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=arguments.length>2?arguments[2]:void 0;const{isRtl:T}=Sg();return{locationStyles:on(()=>{if(!o.location)return{};const{side:V,align:L}=SQ(o.location.split(" ").length>1?o.location:`${o.location} center`,T.value);function A(m){return y?y(m):0}const s={};return V!=="center"&&(b?s[ure[V]]=`calc(100% - ${A(V)}px)`:s[V]=0),L!=="center"?b?s[ure[L]]=`calc(100% - ${A(L)}px)`:s[L]=0:(V==="center"?s.top=s.left="50%":s[{top:"left",bottom:"left",left:"top",right:"top"}[V]]="50%",s.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[V]),s})}}const jhe=Br({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...ts(),...Nq({location:"top"}),...Tg(),...mc(),...Gc()},"VProgressLinear"),Yhe=Go()({name:"VProgressLinear",props:jhe(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y}=b;const T=ri(o,"modelValue"),{isRtl:G,rtlClasses:V}=Sg(),{themeClasses:L}=Uu(o),{locationStyles:A}=Fq(o),{textColorClasses:s,textColorStyles:m}=xg(o,"color"),{backgroundColorClasses:h,backgroundColorStyles:l}=wg(on(()=>o.bgColor||o.color)),{backgroundColorClasses:c,backgroundColorStyles:i}=wg(o,"color"),{roundedClasses:u}=kg(o),{intersectionRef:d,isIntersecting:g}=ese(),v=on(()=>parseInt(o.max,10)),x=on(()=>parseInt(o.height,10)),C=on(()=>parseFloat(o.bufferValue)/v.value*100),_=on(()=>parseFloat(T.value)/v.value*100),$=on(()=>G.value!==o.reverse),S=on(()=>o.indeterminate?"fade-transition":"slide-x-transition"),O=on(()=>o.bgOpacity==null?o.bgOpacity:parseFloat(o.bgOpacity));function D(N){if(!d.value)return;const{left:M,right:k,width:R}=d.value.getBoundingClientRect(),F=$.value?R-N.clientX+(k-R):N.clientX-M;T.value=Math.round(F/R*v.value)}return ga(()=>ct(o.tag,{ref:d,class:["v-progress-linear",{"v-progress-linear--absolute":o.absolute,"v-progress-linear--active":o.active&&g.value,"v-progress-linear--reverse":$.value,"v-progress-linear--rounded":o.rounded,"v-progress-linear--rounded-bar":o.roundedBar,"v-progress-linear--striped":o.striped},u.value,L.value,V.value,o.class],style:[{bottom:o.location==="bottom"?0:void 0,top:o.location==="top"?0:void 0,height:o.active?ra(x.value):0,"--v-progress-linear-height":ra(x.value),...A.value},o.style],role:"progressbar","aria-hidden":o.active?"false":"true","aria-valuemin":"0","aria-valuemax":o.max,"aria-valuenow":o.indeterminate?void 0:_.value,onClick:o.clickable&&D},{default:()=>[o.stream&&ct("div",{key:"stream",class:["v-progress-linear__stream",s.value],style:{...m.value,[$.value?"left":"right"]:ra(-x.value),borderTop:`${ra(x.value/2)} dotted`,opacity:O.value,top:`calc(50% - ${ra(x.value/4)})`,width:ra(100-C.value,"%"),"--v-progress-linear-stream-to":ra(x.value*($.value?1:-1))}},null),ct("div",{class:["v-progress-linear__background",h.value],style:[l.value,{opacity:O.value,width:ra(o.stream?C.value:100,"%")}]},null),ct(Hy,{name:S.value},{default:()=>[o.indeterminate?ct("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(N=>ct("div",{key:N,class:["v-progress-linear__indeterminate",N,c.value],style:i.value},null))]):ct("div",{class:["v-progress-linear__determinate",c.value],style:[i.value,{width:ra(_.value,"%")}]},null)]}),y.default&&ct("div",{class:"v-progress-linear__content"},[y.default({value:_.value,buffer:C.value})])]})),{}}}),rH=Br({loading:[Boolean,String]},"loader");function oH(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();return{loaderClasses:on(()=>({[`${b}--loading`]:o.loading}))}}function Bq(o,b){var T;let{slots:y}=b;return ct("div",{class:`${o.name}__loader`},[((T=y.default)==null?void 0:T.call(y,{color:o.color,isActive:o.active}))||ct(Yhe,{active:o.active,color:o.color,height:"2",indeterminate:!0},null)])}const Khe=["static","relative","fixed","absolute","sticky"],nse=Br({position:{type:String,validator:o=>Khe.includes(o)}},"position");function rse(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();return{positionClasses:on(()=>o.position?`${b}--${o.position}`:void 0)}}function Xhe(){var o,b;return(b=(o=Vu("useRouter"))==null?void 0:o.proxy)==null?void 0:b.$router}function aH(o,b){const y=mg("RouterLink"),T=on(()=>!!(o.href||o.to)),G=on(()=>(T==null?void 0:T.value)||Fne(b,"click")||Fne(o,"click"));if(typeof y=="string")return{isLink:T,isClickable:G,href:Xo(o,"href")};const V=o.to?y.useLink(o):void 0;return{isLink:T,isClickable:G,route:V==null?void 0:V.route,navigate:V==null?void 0:V.navigate,isActive:V&&on(()=>{var L,A;return o.exact?(L=V.isExactActive)==null?void 0:L.value:(A=V.isActive)==null?void 0:A.value}),href:on(()=>o.to?V==null?void 0:V.route.value.href:o.href)}}const sH=Br({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let KJ=!1;function Jhe(o,b){let y=!1,T,G;yl&&(Ll(()=>{window.addEventListener("popstate",V),T=o==null?void 0:o.beforeEach((L,A,s)=>{KJ?y?b(s):s():setTimeout(()=>y?b(s):s()),KJ=!0}),G=o==null?void 0:o.afterEach(()=>{KJ=!1})}),ch(()=>{window.removeEventListener("popstate",V),T==null||T(),G==null||G()}));function V(L){var A;(A=L.state)!=null&&A.replaced||(y=!0,setTimeout(()=>y=!1))}}function Qhe(o,b){ta(()=>{var y;return(y=o.isActive)==null?void 0:y.value},y=>{o.isLink.value&&y&&b&&Ll(()=>{b(!0)})},{immediate:!0})}const kQ=Symbol("rippleStop"),qhe=80;function fre(o,b){o.style.transform=b,o.style.webkitTransform=b}function AQ(o){return o.constructor.name==="TouchEvent"}function ose(o){return o.constructor.name==="KeyboardEvent"}const eme=function(o,b){var l;let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},T=0,G=0;if(!ose(o)){const c=b.getBoundingClientRect(),i=AQ(o)?o.touches[o.touches.length-1]:o;T=i.clientX-c.left,G=i.clientY-c.top}let V=0,L=.3;(l=b._ripple)!=null&&l.circle?(L=.15,V=b.clientWidth/2,V=y.center?V:V+Math.sqrt((T-V)**2+(G-V)**2)/4):V=Math.sqrt(b.clientWidth**2+b.clientHeight**2)/2;const A=`${(b.clientWidth-V*2)/2}px`,s=`${(b.clientHeight-V*2)/2}px`,m=y.center?A:`${T-V}px`,h=y.center?s:`${G-V}px`;return{radius:V,scale:L,x:m,y:h,centerX:A,centerY:s}},_B={show(o,b){var i;let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((i=b==null?void 0:b._ripple)!=null&&i.enabled))return;const T=document.createElement("span"),G=document.createElement("span");T.appendChild(G),T.className="v-ripple__container",y.class&&(T.className+=` ${y.class}`);const{radius:V,scale:L,x:A,y:s,centerX:m,centerY:h}=eme(o,b,y),l=`${V*2}px`;G.className="v-ripple__animation",G.style.width=l,G.style.height=l,b.appendChild(T);const c=window.getComputedStyle(b);c&&c.position==="static"&&(b.style.position="relative",b.dataset.previousPosition="static"),G.classList.add("v-ripple__animation--enter"),G.classList.add("v-ripple__animation--visible"),fre(G,`translate(${A}, ${s}) scale3d(${L},${L},${L})`),G.dataset.activated=String(performance.now()),setTimeout(()=>{G.classList.remove("v-ripple__animation--enter"),G.classList.add("v-ripple__animation--in"),fre(G,`translate(${m}, ${h}) scale3d(1,1,1)`)},0)},hide(o){var V;if(!((V=o==null?void 0:o._ripple)!=null&&V.enabled))return;const b=o.getElementsByClassName("v-ripple__animation");if(b.length===0)return;const y=b[b.length-1];if(y.dataset.isHiding)return;y.dataset.isHiding="true";const T=performance.now()-Number(y.dataset.activated),G=Math.max(250-T,0);setTimeout(()=>{y.classList.remove("v-ripple__animation--in"),y.classList.add("v-ripple__animation--out"),setTimeout(()=>{var A;o.getElementsByClassName("v-ripple__animation").length===1&&o.dataset.previousPosition&&(o.style.position=o.dataset.previousPosition,delete o.dataset.previousPosition),((A=y.parentNode)==null?void 0:A.parentNode)===o&&o.removeChild(y.parentNode)},300)},G)}};function ase(o){return typeof o>"u"||!!o}function F6(o){const b={},y=o.currentTarget;if(!(!(y!=null&&y._ripple)||y._ripple.touched||o[kQ])){if(o[kQ]=!0,AQ(o))y._ripple.touched=!0,y._ripple.isTouch=!0;else if(y._ripple.isTouch)return;if(b.center=y._ripple.centered||ose(o),y._ripple.class&&(b.class=y._ripple.class),AQ(o)){if(y._ripple.showTimerCommit)return;y._ripple.showTimerCommit=()=>{_B.show(o,y,b)},y._ripple.showTimer=window.setTimeout(()=>{var T;(T=y==null?void 0:y._ripple)!=null&&T.showTimerCommit&&(y._ripple.showTimerCommit(),y._ripple.showTimerCommit=null)},qhe)}else _B.show(o,y,b)}}function dre(o){o[kQ]=!0}function am(o){const b=o.currentTarget;if(b!=null&&b._ripple){if(window.clearTimeout(b._ripple.showTimer),o.type==="touchend"&&b._ripple.showTimerCommit){b._ripple.showTimerCommit(),b._ripple.showTimerCommit=null,b._ripple.showTimer=window.setTimeout(()=>{am(o)});return}window.setTimeout(()=>{b._ripple&&(b._ripple.touched=!1)}),_B.hide(b)}}function sse(o){const b=o.currentTarget;b!=null&&b._ripple&&(b._ripple.showTimerCommit&&(b._ripple.showTimerCommit=null),window.clearTimeout(b._ripple.showTimer))}let B6=!1;function ise(o){!B6&&(o.keyCode===Pne.enter||o.keyCode===Pne.space)&&(B6=!0,F6(o))}function lse(o){B6=!1,am(o)}function cse(o){B6&&(B6=!1,am(o))}function use(o,b,y){const{value:T,modifiers:G}=b,V=ase(T);if(V||_B.hide(o),o._ripple=o._ripple??{},o._ripple.enabled=V,o._ripple.centered=G.center,o._ripple.circle=G.circle,wQ(T)&&T.class&&(o._ripple.class=T.class),V&&!y){if(G.stop){o.addEventListener("touchstart",dre,{passive:!0}),o.addEventListener("mousedown",dre);return}o.addEventListener("touchstart",F6,{passive:!0}),o.addEventListener("touchend",am,{passive:!0}),o.addEventListener("touchmove",sse,{passive:!0}),o.addEventListener("touchcancel",am),o.addEventListener("mousedown",F6),o.addEventListener("mouseup",am),o.addEventListener("mouseleave",am),o.addEventListener("keydown",ise),o.addEventListener("keyup",lse),o.addEventListener("blur",cse),o.addEventListener("dragstart",am,{passive:!0})}else!V&&y&&fse(o)}function fse(o){o.removeEventListener("mousedown",F6),o.removeEventListener("touchstart",F6),o.removeEventListener("touchend",am),o.removeEventListener("touchmove",sse),o.removeEventListener("touchcancel",am),o.removeEventListener("mouseup",am),o.removeEventListener("mouseleave",am),o.removeEventListener("keydown",ise),o.removeEventListener("keyup",lse),o.removeEventListener("dragstart",am),o.removeEventListener("blur",cse)}function tme(o,b){use(o,b,!1)}function nme(o){delete o._ripple,fse(o)}function rme(o,b){if(b.value===b.oldValue)return;const y=ase(b.oldValue);use(o,b,y)}const k3={mounted:tme,unmounted:nme,updated:rme},ome=Br({active:{type:Boolean,default:void 0},symbol:{type:null,default:Xae},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:vi,appendIcon:vi,block:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...S3(),...ts(),...Lp(),...x3(),...Wy(),...Oq(),...rH(),...Nq(),...nse(),...Tg(),...sH(),...J6(),...mc({tag:"button"}),...Gc(),...D2({variant:"elevated"})},"VBtn"),dc=Go()({name:"VBtn",directives:{Ripple:k3},props:ome(),emits:{"group:selected":o=>!0},setup(o,b){let{attrs:y,slots:T}=b;const{themeClasses:G}=Uu(o),{borderClasses:V}=T3(o),{colorClasses:L,colorStyles:A,variantClasses:s}=X6(o),{densityClasses:m}=L0(o),{dimensionStyles:h}=w3(o),{elevationClasses:l}=Gy(o),{loaderClasses:c}=oH(o),{locationStyles:i}=Fq(o),{positionClasses:u}=rse(o),{roundedClasses:d}=kg(o),{sizeClasses:g,sizeStyles:v}=Q6(o),x=Pq(o,o.symbol,!1),C=aH(o,y),_=on(()=>{var N;return o.active!==void 0?o.active:C.isLink.value?(N=C.isActive)==null?void 0:N.value:x==null?void 0:x.isSelected.value}),$=on(()=>(x==null?void 0:x.disabled.value)||o.disabled),S=on(()=>o.variant==="elevated"&&!(o.disabled||o.flat||o.border)),O=on(()=>{if(o.value!==void 0)return Object(o.value)===o.value?JSON.stringify(o.value,null,0):o.value});function D(N){var M;$.value||C.isLink.value&&(N.metaKey||N.ctrlKey||N.shiftKey||N.button!==0||y.target==="_blank")||((M=C.navigate)==null||M.call(C,N),x==null||x.toggle())}return Qhe(C,x==null?void 0:x.select),ga(()=>{var H,j;const N=C.isLink.value?"a":o.tag,M=!!(o.prependIcon||T.prepend),k=!!(o.appendIcon||T.append),R=!!(o.icon&&o.icon!==!0),F=(x==null?void 0:x.isSelected.value)&&(!C.isLink.value||((H=C.isActive)==null?void 0:H.value))||!x||((j=C.isActive)==null?void 0:j.value);return lu(ct(N,{type:N==="a"?void 0:"button",class:["v-btn",x==null?void 0:x.selectedClass.value,{"v-btn--active":_.value,"v-btn--block":o.block,"v-btn--disabled":$.value,"v-btn--elevated":S.value,"v-btn--flat":o.flat,"v-btn--icon":!!o.icon,"v-btn--loading":o.loading,"v-btn--stacked":o.stacked},G.value,V.value,F?L.value:void 0,m.value,l.value,c.value,u.value,d.value,g.value,s.value,o.class],style:[F?A.value:void 0,h.value,i.value,v.value,o.style],disabled:$.value||void 0,href:C.href.value,onClick:D,value:O.value},{default:()=>{var P;return[K6(!0,"v-btn"),!o.icon&&M&&ct("span",{key:"prepend",class:"v-btn__prepend"},[T.prepend?ct(Ac,{key:"prepend-defaults",disabled:!o.prependIcon,defaults:{VIcon:{icon:o.prependIcon}}},T.prepend):ct(js,{key:"prepend-icon",icon:o.prependIcon},null)]),ct("span",{class:"v-btn__content","data-no-activator":""},[!T.default&&R?ct(js,{key:"content-icon",icon:o.icon},null):ct(Ac,{key:"content-defaults",disabled:!R,defaults:{VIcon:{icon:o.icon}}},{default:()=>{var ee;return[((ee=T.default)==null?void 0:ee.call(T))??o.text]}})]),!o.icon&&k&&ct("span",{key:"append",class:"v-btn__append"},[T.append?ct(Ac,{key:"append-defaults",disabled:!o.appendIcon,defaults:{VIcon:{icon:o.appendIcon}}},T.append):ct(js,{key:"append-icon",icon:o.appendIcon},null)]),!!o.loading&&ct("span",{key:"loader",class:"v-btn__loader"},[((P=T.loader)==null?void 0:P.call(T))??ct(tse,{color:typeof o.loading=="boolean"?void 0:o.loading,indeterminate:!0,size:"23",width:"2"},null)])]}}),[[_p("ripple"),!$.value&&o.ripple,null]])}),{}}});const ame=Br({text:String,clickable:Boolean,...ts(),...Gc()},"VLabel"),iH=Go()({name:"VLabel",props:ame(),setup(o,b){let{slots:y}=b;return ga(()=>{var T;return ct("label",{class:["v-label",{"v-label--clickable":o.clickable},o.class],style:o.style},[o.text,(T=y.default)==null?void 0:T.call(y)])}),{}}});const dse=Symbol.for("vuetify:selection-control-group"),hse=Br({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:vi,trueIcon:vi,ripple:{type:Boolean,default:!0},multiple:{type:Boolean,default:null},name:String,readonly:Boolean,modelValue:null,type:String,valueComparator:{type:Function,default:b3},...ts(),...Lp(),...Gc()},"SelectionControlGroup"),sme=Br({...hse({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");Go()({name:"VSelectionControlGroup",props:sme(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y}=b;const T=ri(o,"modelValue"),G=Rp(),V=on(()=>o.id||`v-selection-control-group-${G}`),L=on(()=>o.name||V.value),A=new Set;return Gl(dse,{modelValue:T,forceUpdate:()=>{A.forEach(s=>s())},onForceUpdate:s=>{A.add(s),ch(()=>{A.delete(s)})}}),R0({[o.defaultsTarget]:{color:Xo(o,"color"),disabled:Xo(o,"disabled"),density:Xo(o,"density"),error:Xo(o,"error"),inline:Xo(o,"inline"),modelValue:T,multiple:on(()=>!!o.multiple||o.multiple==null&&Array.isArray(T.value)),name:L,falseIcon:Xo(o,"falseIcon"),trueIcon:Xo(o,"trueIcon"),readonly:Xo(o,"readonly"),ripple:Xo(o,"ripple"),type:Xo(o,"type"),valueComparator:Xo(o,"valueComparator")}}),ga(()=>{var s;return ct("div",{class:["v-selection-control-group",{"v-selection-control-group--inline":o.inline},o.class],style:o.style,role:o.type==="radio"?"radiogroup":void 0},[(s=y.default)==null?void 0:s.call(y)])}),{}}});const mse=Br({label:String,trueValue:null,falseValue:null,value:null,...ts(),...hse()},"VSelectionControl");function ime(o){const b=ni(dse,void 0),{densityClasses:y}=L0(o),T=ri(o,"modelValue"),G=on(()=>o.trueValue!==void 0?o.trueValue:o.value!==void 0?o.value:!0),V=on(()=>o.falseValue!==void 0?o.falseValue:!1),L=on(()=>!!o.multiple||o.multiple==null&&Array.isArray(T.value)),A=on({get(){const i=b?b.modelValue.value:T.value;return L.value?i.some(u=>o.valueComparator(u,G.value)):o.valueComparator(i,G.value)},set(i){if(o.readonly)return;const u=i?G.value:V.value;let d=u;L.value&&(d=i?[...xd(T.value),u]:xd(T.value).filter(g=>!o.valueComparator(g,G.value))),b?b.modelValue.value=d:T.value=d}}),{textColorClasses:s,textColorStyles:m}=xg(on(()=>A.value&&!o.error&&!o.disabled?o.color:void 0)),{backgroundColorClasses:h,backgroundColorStyles:l}=wg(on(()=>A.value&&!o.error&&!o.disabled?o.color:void 0)),c=on(()=>A.value?o.trueIcon:o.falseIcon);return{group:b,densityClasses:y,trueValue:G,falseValue:V,model:A,textColorClasses:s,textColorStyles:m,backgroundColorClasses:h,backgroundColorStyles:l,icon:c}}const hre=Go()({name:"VSelectionControl",directives:{Ripple:k3},inheritAttrs:!1,props:mse(),emits:{"update:modelValue":o=>!0},setup(o,b){let{attrs:y,slots:T}=b;const{group:G,densityClasses:V,icon:L,model:A,textColorClasses:s,textColorStyles:m,backgroundColorClasses:h,backgroundColorStyles:l,trueValue:c}=ime(o),i=Rp(),u=on(()=>o.id||`input-${i}`),d=xa(!1),g=xa(!1),v=No();G==null||G.onForceUpdate(()=>{v.value&&(v.value.checked=A.value)});function x($){d.value=!0,EE($.target,":focus-visible")!==!1&&(g.value=!0)}function C(){d.value=!1,g.value=!1}function _($){o.readonly&&G&&Ll(()=>G.forceUpdate()),A.value=$.target.checked}return ga(()=>{var N,M;const $=T.label?T.label({label:o.label,props:{for:u.value}}):o.label,[S,O]=Cq(y),D=ct("input",Jo({ref:v,checked:A.value,disabled:!!(o.readonly||o.disabled),id:u.value,onBlur:C,onFocus:x,onInput:_,"aria-disabled":!!(o.readonly||o.disabled),type:o.type,value:c.value,name:o.name,"aria-checked":o.type==="checkbox"?A.value:void 0},O),null);return ct("div",Jo({class:["v-selection-control",{"v-selection-control--dirty":A.value,"v-selection-control--disabled":o.disabled,"v-selection-control--error":o.error,"v-selection-control--focused":d.value,"v-selection-control--focus-visible":g.value,"v-selection-control--inline":o.inline},V.value,o.class]},S,{style:o.style}),[ct("div",{class:["v-selection-control__wrapper",s.value],style:m.value},[(N=T.default)==null?void 0:N.call(T,{backgroundColorClasses:h,backgroundColorStyles:l}),lu(ct("div",{class:["v-selection-control__input"]},[((M=T.input)==null?void 0:M.call(T,{model:A,textColorClasses:s,textColorStyles:m,backgroundColorClasses:h,backgroundColorStyles:l,inputNode:D,icon:L.value,props:{onFocus:x,onBlur:C,id:u.value}}))??ct(Uo,null,[L.value&&ct(js,{key:"icon",icon:L.value},null),D])]),[[_p("ripple"),o.ripple&&[!o.disabled&&!o.readonly,null,["center","circle"]]]])]),$&&ct(iH,{for:u.value,clickable:!0,onClick:k=>k.stopPropagation()},{default:()=>[$]})])}),{isFocused:d,input:v}}}),lme=Br({indeterminate:Boolean,indeterminateIcon:{type:vi,default:"$checkboxIndeterminate"},...mse({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),FE=Go()({name:"VCheckboxBtn",props:lme(),emits:{"update:modelValue":o=>!0,"update:indeterminate":o=>!0},setup(o,b){let{slots:y}=b;const T=ri(o,"indeterminate"),G=ri(o,"modelValue");function V(s){T.value&&(T.value=!1)}const L=on(()=>T.value?o.indeterminateIcon:o.falseIcon),A=on(()=>T.value?o.indeterminateIcon:o.trueIcon);return ga(()=>{const s=PE(hre.filterProps(o)[0],["modelValue"]);return ct(hre,Jo(s,{modelValue:G.value,"onUpdate:modelValue":[m=>G.value=m,V],class:["v-checkbox-btn",o.class],style:o.style,type:"checkbox",falseIcon:L.value,trueIcon:A.value,"aria-checked":T.value?"mixed":void 0}),y)}),{}}});function gse(o){const{t:b}=L2();function y(T){let{name:G}=T;const V={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[G],L=o[`onClick:${G}`],A=L&&V?b(`$vuetify.input.${V}`,o.label??""):void 0;return ct(js,{icon:o[`${G}Icon`],"aria-label":A,onClick:L},null)}return{InputIcon:y}}const cme=Br({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...ts(),...C3({transition:{component:Uae,leaveAbsolute:!0,group:!0}})},"VMessages"),ume=Go()({name:"VMessages",props:cme(),setup(o,b){let{slots:y}=b;const T=on(()=>xd(o.messages)),{textColorClasses:G,textColorStyles:V}=xg(on(()=>o.color));return ga(()=>ct(T2,{transition:o.transition,tag:"div",class:["v-messages",G.value,o.class],style:[V.value,o.style],role:"alert","aria-live":"polite"},{default:()=>[o.active&&T.value.map((L,A)=>ct("div",{class:"v-messages__message",key:`${A}-${T.value}`},[y.message?y.message({message:L}):L]))]})),{}}}),lH=Br({focused:Boolean,"onUpdate:focused":M0()},"focus");function q6(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy();const y=ri(o,"focused"),T=on(()=>({[`${b}--focused`]:y.value}));function G(){y.value=!0}function V(){y.value=!1}return{focusClasses:T,isFocused:y,focus:G,blur:V}}const fme=Symbol.for("vuetify:form");function cH(){return ni(fme,null)}const dme=Br({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...lH()},"validation");function hme(o){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Uy(),y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rp();const T=ri(o,"modelValue"),G=on(()=>o.validationValue===void 0?T.value:o.validationValue),V=cH(),L=No([]),A=xa(!0),s=on(()=>!!(xd(T.value===""?null:T.value).length||xd(G.value===""?null:G.value).length)),m=on(()=>!!(o.disabled??(V==null?void 0:V.isDisabled.value))),h=on(()=>!!(o.readonly??(V==null?void 0:V.isReadonly.value))),l=on(()=>{var _;return(_=o.errorMessages)!=null&&_.length?xd(o.errorMessages).slice(0,Math.max(0,+o.maxErrors)):L.value}),c=on(()=>{let _=(o.validateOn??(V==null?void 0:V.validateOn.value))||"input";_==="lazy"&&(_="input lazy");const $=new Set((_==null?void 0:_.split(" "))??[]);return{blur:$.has("blur")||$.has("input"),input:$.has("input"),submit:$.has("submit"),lazy:$.has("lazy")}}),i=on(()=>{var _;return o.error||(_=o.errorMessages)!=null&&_.length?!1:o.rules.length?A.value?L.value.length||c.value.lazy?null:!0:!L.value.length:!0}),u=xa(!1),d=on(()=>({[`${b}--error`]:i.value===!1,[`${b}--dirty`]:s.value,[`${b}--disabled`]:m.value,[`${b}--readonly`]:h.value})),g=on(()=>o.name??im(y));fq(()=>{V==null||V.register({id:g.value,validate:C,reset:v,resetValidation:x})}),dm(()=>{V==null||V.unregister(g.value)}),Cg(async()=>{c.value.lazy||await C(!0),V==null||V.update(g.value,i.value,l.value)}),E2(()=>c.value.input,()=>{ta(G,()=>{if(G.value!=null)C();else if(o.focused){const _=ta(()=>o.focused,$=>{$||C(),_()})}})}),E2(()=>c.value.blur,()=>{ta(()=>o.focused,_=>{_||C()})}),ta(i,()=>{V==null||V.update(g.value,i.value,l.value)});function v(){T.value=null,Ll(x)}function x(){A.value=!0,c.value.lazy?L.value=[]:C(!0)}async function C(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const $=[];u.value=!0;for(const S of o.rules){if($.length>=+(o.maxErrors??1))break;const D=await(typeof S=="function"?S:()=>S)(G.value);if(D!==!0){if(D!==!1&&typeof D!="string"){console.warn(`${D} is not a valid value. Rule functions must return boolean true or a string.`);continue}$.push(D||"")}}return L.value=$,u.value=!1,A.value=_,L.value}return{errorMessages:l,isDirty:s,isDisabled:m,isReadonly:h,isPristine:A,isValid:i,isValidating:u,reset:v,resetValidation:x,validate:C,validationClasses:d}}const e$=Br({id:String,appendIcon:vi,centerAffix:{type:Boolean,default:!0},prependIcon:vi,hideDetails:[Boolean,String],hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:o=>["horizontal","vertical"].includes(o)},"onClick:prepend":M0(),"onClick:append":M0(),...ts(),...Lp(),...dme()},"VInput"),_2=Go()({name:"VInput",props:{...e$()},emits:{"update:modelValue":o=>!0},setup(o,b){let{attrs:y,slots:T,emit:G}=b;const{densityClasses:V}=L0(o),{rtlClasses:L}=Sg(),{InputIcon:A}=gse(o),s=Rp(),m=on(()=>o.id||`input-${s}`),h=on(()=>`${m.value}-messages`),{errorMessages:l,isDirty:c,isDisabled:i,isReadonly:u,isPristine:d,isValid:g,isValidating:v,reset:x,resetValidation:C,validate:_,validationClasses:$}=hme(o,"v-input",m),S=on(()=>({id:m,messagesId:h,isDirty:c,isDisabled:i,isReadonly:u,isPristine:d,isValid:g,isValidating:v,reset:x,resetValidation:C,validate:_})),O=on(()=>{var D;return(D=o.errorMessages)!=null&&D.length||!d.value&&l.value.length?l.value:o.hint&&(o.persistentHint||o.focused)?o.hint:o.messages});return ga(()=>{var R,F,H,j;const D=!!(T.prepend||o.prependIcon),N=!!(T.append||o.appendIcon),M=O.value.length>0,k=!o.hideDetails||o.hideDetails==="auto"&&(M||!!T.details);return ct("div",{class:["v-input",`v-input--${o.direction}`,{"v-input--center-affix":o.centerAffix},V.value,L.value,$.value,o.class],style:o.style},[D&&ct("div",{key:"prepend",class:"v-input__prepend"},[(R=T.prepend)==null?void 0:R.call(T,S.value),o.prependIcon&&ct(A,{key:"prepend-icon",name:"prepend"},null)]),T.default&&ct("div",{class:"v-input__control"},[(F=T.default)==null?void 0:F.call(T,S.value)]),N&&ct("div",{key:"append",class:"v-input__append"},[o.appendIcon&&ct(A,{key:"append-icon",name:"append"},null),(H=T.append)==null?void 0:H.call(T,S.value)]),k&&ct("div",{class:"v-input__details"},[ct(ume,{id:h.value,active:M,messages:O.value},{message:T.message}),(j=T.details)==null?void 0:j.call(T,S.value)])])}),{reset:x,resetValidation:C,validate:_}}});const mme=Br({start:Boolean,end:Boolean,icon:vi,image:String,...ts(),...Lp(),...Tg(),...J6(),...mc(),...Gc(),...D2({variant:"flat"})},"VAvatar"),RE=Go()({name:"VAvatar",props:mme(),setup(o,b){let{slots:y}=b;const{themeClasses:T}=Uu(o),{colorClasses:G,colorStyles:V,variantClasses:L}=X6(o),{densityClasses:A}=L0(o),{roundedClasses:s}=kg(o),{sizeClasses:m,sizeStyles:h}=Q6(o);return ga(()=>ct(o.tag,{class:["v-avatar",{"v-avatar--start":o.start,"v-avatar--end":o.end},T.value,G.value,A.value,s.value,m.value,L.value,o.class],style:[V.value,h.value,o.style]},{default:()=>{var l;return[o.image?ct(Y6,{key:"image",src:o.image,alt:"",cover:!0},null):o.icon?ct(js,{key:"icon",icon:o.icon},null):(l=y.default)==null?void 0:l.call(y),K6(!1,"v-avatar")]}})),{}}});const pse=Symbol.for("vuetify:v-chip-group"),gme=Br({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:b3},...ts(),...$q({selectedClass:"v-chip--selected"}),...mc(),...Gc(),...D2({variant:"tonal"})},"VChipGroup");Go()({name:"VChipGroup",props:gme(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y}=b;const{themeClasses:T}=Uu(o),{isSelected:G,select:V,next:L,prev:A,selected:s}=Iq(o,pse);return R0({VChip:{color:Xo(o,"color"),disabled:Xo(o,"disabled"),filter:Xo(o,"filter"),variant:Xo(o,"variant")}}),ga(()=>ct(o.tag,{class:["v-chip-group",{"v-chip-group--column":o.column},T.value,o.class],style:o.style},{default:()=>{var m;return[(m=y.default)==null?void 0:m.call(y,{isSelected:G,select:V,next:L,prev:A,selected:s.value})]}})),{}}});const pme=Br({activeClass:String,appendAvatar:String,appendIcon:vi,closable:Boolean,closeIcon:{type:vi,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:vi,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:M0(),onClickOnce:M0(),...S3(),...ts(),...Lp(),...Wy(),...Oq(),...Tg(),...sH(),...J6(),...mc({tag:"span"}),...Gc(),...D2({variant:"tonal"})},"VChip"),wE=Go()({name:"VChip",directives:{Ripple:k3},props:pme(),emits:{"click:close":o=>!0,"update:modelValue":o=>!0,"group:selected":o=>!0,click:o=>!0},setup(o,b){let{attrs:y,emit:T,slots:G}=b;const{t:V}=L2(),{borderClasses:L}=T3(o),{colorClasses:A,colorStyles:s,variantClasses:m}=X6(o),{densityClasses:h}=L0(o),{elevationClasses:l}=Gy(o),{roundedClasses:c}=kg(o),{sizeClasses:i}=Q6(o),{themeClasses:u}=Uu(o),d=ri(o,"modelValue"),g=Pq(o,pse,!1),v=aH(o,y),x=on(()=>o.link!==!1&&v.isLink.value),C=on(()=>!o.disabled&&o.link!==!1&&(!!g||o.link||v.isClickable.value)),_=on(()=>({"aria-label":V(o.closeLabel),onClick(O){O.stopPropagation(),d.value=!1,T("click:close",O)}}));function $(O){var D;T("click",O),C.value&&((D=v.navigate)==null||D.call(v,O),g==null||g.toggle())}function S(O){(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),$(O))}return()=>{const O=v.isLink.value?"a":o.tag,D=!!(o.appendIcon||o.appendAvatar),N=!!(D||G.append),M=!!(G.close||o.closable),k=!!(G.filter||o.filter)&&g,R=!!(o.prependIcon||o.prependAvatar),F=!!(R||G.prepend),H=!g||g.isSelected.value;return d.value&&lu(ct(O,{class:["v-chip",{"v-chip--disabled":o.disabled,"v-chip--label":o.label,"v-chip--link":C.value,"v-chip--filter":k,"v-chip--pill":o.pill},u.value,L.value,H?A.value:void 0,h.value,l.value,c.value,i.value,m.value,g==null?void 0:g.selectedClass.value,o.class],style:[H?s.value:void 0,o.style],disabled:o.disabled||void 0,draggable:o.draggable,href:v.href.value,tabindex:C.value?0:void 0,onClick:$,onKeydown:C.value&&!x.value&&S},{default:()=>{var j;return[K6(C.value,"v-chip"),k&&ct(Wae,{key:"filter"},{default:()=>[lu(ct("div",{class:"v-chip__filter"},[G.filter?ct(Ac,{key:"filter-defaults",disabled:!o.filterIcon,defaults:{VIcon:{icon:o.filterIcon}}},G.filter):ct(js,{key:"filter-icon",icon:o.filterIcon},null)]),[[R2,g.isSelected.value]])]}),F&&ct("div",{key:"prepend",class:"v-chip__prepend"},[G.prepend?ct(Ac,{key:"prepend-defaults",disabled:!R,defaults:{VAvatar:{image:o.prependAvatar,start:!0},VIcon:{icon:o.prependIcon,start:!0}}},G.prepend):ct(Uo,null,[o.prependIcon&&ct(js,{key:"prepend-icon",icon:o.prependIcon,start:!0},null),o.prependAvatar&&ct(RE,{key:"prepend-avatar",image:o.prependAvatar,start:!0},null)])]),ct("div",{class:"v-chip__content"},[((j=G.default)==null?void 0:j.call(G,{isSelected:g==null?void 0:g.isSelected.value,selectedClass:g==null?void 0:g.selectedClass.value,select:g==null?void 0:g.select,toggle:g==null?void 0:g.toggle,value:g==null?void 0:g.value.value,disabled:o.disabled}))??o.text]),N&&ct("div",{key:"append",class:"v-chip__append"},[G.append?ct(Ac,{key:"append-defaults",disabled:!D,defaults:{VAvatar:{end:!0,image:o.appendAvatar},VIcon:{end:!0,icon:o.appendIcon}}},G.append):ct(Uo,null,[o.appendIcon&&ct(js,{key:"append-icon",end:!0,icon:o.appendIcon},null),o.appendAvatar&&ct(RE,{key:"append-avatar",end:!0,image:o.appendAvatar},null)])]),M&&ct("div",Jo({key:"close",class:"v-chip__close"},_.value),[G.close?ct(Ac,{key:"close-defaults",defaults:{VIcon:{icon:o.closeIcon,size:"x-small"}}},G.close):ct(js,{key:"close-icon",icon:o.closeIcon,size:"x-small"},null)])]}}),[[_p("ripple"),C.value&&o.ripple,null]])}}});const MQ=Symbol.for("vuetify:list");function vse(){const o=ni(MQ,{hasPrepend:xa(!1),updateHasPrepend:()=>null}),b={hasPrepend:xa(!1),updateHasPrepend:y=>{y&&(b.hasPrepend.value=y)}};return Gl(MQ,b),o}function yse(){return ni(MQ,null)}const vme={open:o=>{let{id:b,value:y,opened:T,parents:G}=o;if(y){const V=new Set;V.add(b);let L=G.get(b);for(;L!=null;)V.add(L),L=G.get(L);return V}else return T.delete(b),T},select:()=>null},bse={open:o=>{let{id:b,value:y,opened:T,parents:G}=o;if(y){let V=G.get(b);for(T.add(b);V!=null&&V!==b;)T.add(V),V=G.get(V);return T}else T.delete(b);return T},select:()=>null},yme={open:bse.open,select:o=>{let{id:b,value:y,opened:T,parents:G}=o;if(!y)return T;const V=[];let L=G.get(b);for(;L!=null;)V.push(L),L=G.get(L);return new Set(V)}},Hq=o=>{const b={select:y=>{let{id:T,value:G,selected:V}=y;if(T=ds(T),o&&!G){const L=Array.from(V.entries()).reduce((A,s)=>{let[m,h]=s;return h==="on"?[...A,m]:A},[]);if(L.length===1&&L[0]===T)return V}return V.set(T,G?"on":"off"),V},in:(y,T,G)=>{let V=new Map;for(const L of y||[])V=b.select({id:L,value:!0,selected:new Map(V),children:T,parents:G});return V},out:y=>{const T=[];for(const[G,V]of y.entries())V==="on"&&T.push(G);return T}};return b},xse=o=>{const b=Hq(o);return{select:T=>{let{selected:G,id:V,...L}=T;V=ds(V);const A=G.has(V)?new Map([[V,G.get(V)]]):new Map;return b.select({...L,id:V,selected:A})},in:(T,G,V)=>{let L=new Map;return T!=null&&T.length&&(L=b.in(T.slice(0,1),G,V)),L},out:(T,G,V)=>b.out(T,G,V)}},bme=o=>{const b=Hq(o);return{select:T=>{let{id:G,selected:V,children:L,...A}=T;return G=ds(G),L.has(G)?V:b.select({id:G,selected:V,children:L,...A})},in:b.in,out:b.out}},xme=o=>{const b=xse(o);return{select:T=>{let{id:G,selected:V,children:L,...A}=T;return G=ds(G),L.has(G)?V:b.select({id:G,selected:V,children:L,...A})},in:b.in,out:b.out}},wme=o=>{const b={select:y=>{let{id:T,value:G,selected:V,children:L,parents:A}=y;T=ds(T);const s=new Map(V),m=[T];for(;m.length;){const l=m.shift();V.set(l,G?"on":"off"),L.has(l)&&m.push(...L.get(l))}let h=A.get(T);for(;h;){const l=L.get(h),c=l.every(u=>V.get(u)==="on"),i=l.every(u=>!V.has(u)||V.get(u)==="off");V.set(h,c?"on":i?"off":"indeterminate"),h=A.get(h)}return o&&!G&&Array.from(V.entries()).reduce((c,i)=>{let[u,d]=i;return d==="on"?[...c,u]:c},[]).length===0?s:V},in:(y,T,G)=>{let V=new Map;for(const L of y||[])V=b.select({id:L,value:!0,selected:new Map(V),children:T,parents:G});return V},out:(y,T)=>{const G=[];for(const[V,L]of y.entries())L==="on"&&!T.has(V)&&G.push(V);return G}};return b},H6=Symbol.for("vuetify:nested"),wse={id:xa(),root:{register:()=>null,unregister:()=>null,parents:No(new Map),children:No(new Map),open:()=>null,openOnSelect:()=>null,select:()=>null,opened:No(new Set),selected:No(new Map),selectedValues:No([])}},Cme=Br({selectStrategy:[String,Function],openStrategy:[String,Object],opened:Array,selected:Array,mandatory:Boolean},"nested"),Sme=o=>{let b=!1;const y=No(new Map),T=No(new Map),G=ri(o,"opened",o.opened,l=>new Set(l),l=>[...l.values()]),V=on(()=>{if(typeof o.selectStrategy=="object")return o.selectStrategy;switch(o.selectStrategy){case"single-leaf":return xme(o.mandatory);case"leaf":return bme(o.mandatory);case"independent":return Hq(o.mandatory);case"single-independent":return xse(o.mandatory);case"classic":default:return wme(o.mandatory)}}),L=on(()=>{if(typeof o.openStrategy=="object")return o.openStrategy;switch(o.openStrategy){case"list":return yme;case"single":return vme;case"multiple":default:return bse}}),A=ri(o,"selected",o.selected,l=>V.value.in(l,y.value,T.value),l=>V.value.out(l,y.value,T.value));dm(()=>{b=!0});function s(l){const c=[];let i=l;for(;i!=null;)c.unshift(i),i=T.value.get(i);return c}const m=Vu("nested"),h={id:xa(),root:{opened:G,selected:A,selectedValues:on(()=>{const l=[];for(const[c,i]of A.value.entries())i==="on"&&l.push(c);return l}),register:(l,c,i)=>{c&&l!==c&&T.value.set(l,c),i&&y.value.set(l,[]),c!=null&&y.value.set(c,[...y.value.get(c)||[],l])},unregister:l=>{if(b)return;y.value.delete(l);const c=T.value.get(l);if(c){const i=y.value.get(c)??[];y.value.set(c,i.filter(u=>u!==l))}T.value.delete(l),G.value.delete(l)},open:(l,c,i)=>{m.emit("click:open",{id:l,value:c,path:s(l),event:i});const u=L.value.open({id:l,value:c,opened:new Set(G.value),children:y.value,parents:T.value,event:i});u&&(G.value=u)},openOnSelect:(l,c,i)=>{const u=L.value.select({id:l,value:c,selected:new Map(A.value),opened:new Set(G.value),children:y.value,parents:T.value,event:i});u&&(G.value=u)},select:(l,c,i)=>{m.emit("click:select",{id:l,value:c,path:s(l),event:i});const u=V.value.select({id:l,value:c,selected:new Map(A.value),children:y.value,parents:T.value,event:i});u&&(A.value=u),h.root.openOnSelect(l,c,i)},children:y,parents:T}};return Gl(H6,h),h.root},Cse=(o,b)=>{const y=ni(H6,wse),T=Symbol(Rp()),G=on(()=>o.value!==void 0?o.value:T),V={...y,id:G,open:(L,A)=>y.root.open(G.value,L,A),openOnSelect:(L,A)=>y.root.openOnSelect(G.value,L,A),isOpen:on(()=>y.root.opened.value.has(G.value)),parent:on(()=>y.root.parents.value.get(G.value)),select:(L,A)=>y.root.select(G.value,L,A),isSelected:on(()=>y.root.selected.value.get(ds(G.value))==="on"),isIndeterminate:on(()=>y.root.selected.value.get(G.value)==="indeterminate"),isLeaf:on(()=>!y.root.children.value.get(G.value)),isGroupActivator:y.isGroupActivator};return!y.isGroupActivator&&y.root.register(G.value,y.id.value,b),dm(()=>{!y.isGroupActivator&&y.root.unregister(G.value)}),b&&Gl(H6,V),V},Tme=()=>{const o=ni(H6,wse);Gl(H6,{...o,isGroupActivator:!0})},kme=IE({name:"VListGroupActivator",setup(o,b){let{slots:y}=b;return Tme(),()=>{var T;return(T=y.default)==null?void 0:T.call(y)}}}),Ame=Br({activeColor:String,baseColor:String,color:String,collapseIcon:{type:vi,default:"$collapse"},expandIcon:{type:vi,default:"$expand"},prependIcon:vi,appendIcon:vi,fluid:Boolean,subgroup:Boolean,title:String,value:null,...ts(),...mc()},"VListGroup"),mre=Go()({name:"VListGroup",props:Ame(),setup(o,b){let{slots:y}=b;const{isOpen:T,open:G,id:V}=Cse(Xo(o,"value"),!0),L=on(()=>`v-list-group--id-${String(V.value)}`),A=yse(),{isBooted:s}=Dq();function m(i){G(!T.value,i)}const h=on(()=>({onClick:m,class:"v-list-group__header",id:L.value})),l=on(()=>T.value?o.collapseIcon:o.expandIcon),c=on(()=>({VListItem:{active:T.value,activeColor:o.activeColor,baseColor:o.baseColor,color:o.color,prependIcon:o.prependIcon||o.subgroup&&l.value,appendIcon:o.appendIcon||!o.subgroup&&l.value,title:o.title,value:o.value}}));return ga(()=>ct(o.tag,{class:["v-list-group",{"v-list-group--prepend":A==null?void 0:A.hasPrepend.value,"v-list-group--fluid":o.fluid,"v-list-group--subgroup":o.subgroup,"v-list-group--open":T.value},o.class],style:o.style},{default:()=>[y.activator&&ct(Ac,{defaults:c.value},{default:()=>[ct(kme,null,{default:()=>[y.activator({props:h.value,isOpen:T.value})]})]}),ct(T2,{transition:{component:_q},disabled:!s.value},{default:()=>{var i;return[lu(ct("div",{class:"v-list-group__items",role:"group","aria-labelledby":L.value},[(i=y.default)==null?void 0:i.call(y)]),[[R2,T.value]])]}})]})),{}}});const Mme=NE("v-list-item-subtitle"),Eme=NE("v-list-item-title"),_me=Br({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:vi,baseColor:String,disabled:Boolean,lines:String,link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:vi,ripple:{type:[Boolean,Object],default:!0},subtitle:[String,Number,Boolean],title:[String,Number,Boolean],value:null,onClick:M0(),onClickOnce:M0(),...S3(),...ts(),...Lp(),...x3(),...Wy(),...Tg(),...sH(),...mc(),...Gc(),...D2({variant:"text"})},"VListItem"),fm=Go()({name:"VListItem",directives:{Ripple:k3},props:_me(),emits:{click:o=>!0},setup(o,b){let{attrs:y,slots:T,emit:G}=b;const V=aH(o,y),L=on(()=>o.value===void 0?V.href.value:o.value),{select:A,isSelected:s,isIndeterminate:m,isGroupActivator:h,root:l,parent:c,openOnSelect:i}=Cse(L,!1),u=yse(),d=on(()=>{var J;return o.active!==!1&&(o.active||((J=V.isActive)==null?void 0:J.value)||s.value)}),g=on(()=>o.link!==!1&&V.isLink.value),v=on(()=>!o.disabled&&o.link!==!1&&(o.link||V.isClickable.value||o.value!=null&&!!u)),x=on(()=>o.rounded||o.nav),C=on(()=>o.color??o.activeColor),_=on(()=>({color:d.value?C.value??o.baseColor:o.baseColor,variant:o.variant}));ta(()=>{var J;return(J=V.isActive)==null?void 0:J.value},J=>{J&&c.value!=null&&l.open(c.value,!0),J&&i(J)},{immediate:!0});const{themeClasses:$}=Uu(o),{borderClasses:S}=T3(o),{colorClasses:O,colorStyles:D,variantClasses:N}=X6(_),{densityClasses:M}=L0(o),{dimensionStyles:k}=w3(o),{elevationClasses:R}=Gy(o),{roundedClasses:F}=kg(x),H=on(()=>o.lines?`v-list-item--${o.lines}-line`:void 0),j=on(()=>({isActive:d.value,select:A,isSelected:s.value,isIndeterminate:m.value}));function P(J){var K;G("click",J),!(h||!v.value)&&((K=V.navigate)==null||K.call(V,J),o.value!=null&&A(!s.value,J))}function ee(J){(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),P(J))}return ga(()=>{const J=g.value?"a":o.tag,K=T.title||o.title,ae=T.subtitle||o.subtitle,Q=!!(o.appendAvatar||o.appendIcon),he=!!(Q||T.append),ge=!!(o.prependAvatar||o.prependIcon),Se=!!(ge||T.prepend);return u==null||u.updateHasPrepend(Se),o.activeColor&&Pde("active-color",["color","base-color"]),lu(ct(J,{class:["v-list-item",{"v-list-item--active":d.value,"v-list-item--disabled":o.disabled,"v-list-item--link":v.value,"v-list-item--nav":o.nav,"v-list-item--prepend":!Se&&(u==null?void 0:u.hasPrepend.value),[`${o.activeClass}`]:o.activeClass&&d.value},$.value,S.value,O.value,M.value,R.value,H.value,F.value,N.value,o.class],style:[D.value,k.value,o.style],href:V.href.value,tabindex:v.value?u?-2:0:void 0,onClick:P,onKeydown:v.value&&!g.value&&ee},{default:()=>{var ce;return[K6(v.value||d.value,"v-list-item"),Se&&ct("div",{key:"prepend",class:"v-list-item__prepend"},[T.prepend?ct(Ac,{key:"prepend-defaults",disabled:!ge,defaults:{VAvatar:{density:o.density,image:o.prependAvatar},VIcon:{density:o.density,icon:o.prependIcon},VListItemAction:{start:!0}}},{default:()=>{var ne;return[(ne=T.prepend)==null?void 0:ne.call(T,j.value)]}}):ct(Uo,null,[o.prependAvatar&&ct(RE,{key:"prepend-avatar",density:o.density,image:o.prependAvatar},null),o.prependIcon&&ct(js,{key:"prepend-icon",density:o.density,icon:o.prependIcon},null)]),ct("div",{class:"v-list-item__spacer"},null)]),ct("div",{class:"v-list-item__content","data-no-activator":""},[K&&ct(Eme,{key:"title"},{default:()=>{var ne;return[((ne=T.title)==null?void 0:ne.call(T,{title:o.title}))??o.title]}}),ae&&ct(Mme,{key:"subtitle"},{default:()=>{var ne;return[((ne=T.subtitle)==null?void 0:ne.call(T,{subtitle:o.subtitle}))??o.subtitle]}}),(ce=T.default)==null?void 0:ce.call(T,j.value)]),he&&ct("div",{key:"append",class:"v-list-item__append"},[T.append?ct(Ac,{key:"append-defaults",disabled:!Q,defaults:{VAvatar:{density:o.density,image:o.appendAvatar},VIcon:{density:o.density,icon:o.appendIcon},VListItemAction:{end:!0}}},{default:()=>{var ne;return[(ne=T.append)==null?void 0:ne.call(T,j.value)]}}):ct(Uo,null,[o.appendIcon&&ct(js,{key:"append-icon",density:o.density,icon:o.appendIcon},null),o.appendAvatar&&ct(RE,{key:"append-avatar",density:o.density,image:o.appendAvatar},null)]),ct("div",{class:"v-list-item__spacer"},null)])]}}),[[_p("ripple"),v.value&&o.ripple]])}),{}}}),Rme=Br({color:String,inset:Boolean,sticky:Boolean,title:String,...ts(),...mc()},"VListSubheader"),Lme=Go()({name:"VListSubheader",props:Rme(),setup(o,b){let{slots:y}=b;const{textColorClasses:T,textColorStyles:G}=xg(Xo(o,"color"));return ga(()=>{const V=!!(y.default||o.title);return ct(o.tag,{class:["v-list-subheader",{"v-list-subheader--inset":o.inset,"v-list-subheader--sticky":o.sticky},T.value,o.class],style:[{textColorStyles:G},o.style]},{default:()=>{var L;return[V&&ct("div",{class:"v-list-subheader__text"},[((L=y.default)==null?void 0:L.call(y))??o.title])]}})}),{}}});const Dme=Br({color:String,inset:Boolean,length:[Number,String],thickness:[Number,String],vertical:Boolean,...ts(),...Gc()},"VDivider"),$me=Go()({name:"VDivider",props:Dme(),setup(o,b){let{attrs:y}=b;const{themeClasses:T}=Uu(o),{textColorClasses:G,textColorStyles:V}=xg(Xo(o,"color")),L=on(()=>{const A={};return o.length&&(A[o.vertical?"maxHeight":"maxWidth"]=ra(o.length)),o.thickness&&(A[o.vertical?"borderRightWidth":"borderTopWidth"]=ra(o.thickness)),A});return ga(()=>ct("hr",{class:[{"v-divider":!0,"v-divider--inset":o.inset,"v-divider--vertical":o.vertical},T.value,G.value,o.class],style:[L.value,V.value,o.style],"aria-orientation":!y.role||y.role==="separator"?o.vertical?"vertical":"horizontal":void 0,role:`${y.role||"separator"}`},null)),{}}}),Ome=Br({items:Array,returnObject:Boolean},"VListChildren"),Sse=Go()({name:"VListChildren",props:Ome(),setup(o,b){let{slots:y}=b;return vse(),()=>{var T,G;return((T=y.default)==null?void 0:T.call(y))??((G=o.items)==null?void 0:G.map(V=>{var i,u;let{children:L,props:A,type:s,raw:m}=V;if(s==="divider")return((i=y.divider)==null?void 0:i.call(y,{props:A}))??ct($me,A,null);if(s==="subheader")return((u=y.subheader)==null?void 0:u.call(y,{props:A}))??ct(Lme,A,null);const h={subtitle:y.subtitle?d=>{var g;return(g=y.subtitle)==null?void 0:g.call(y,{...d,item:m})}:void 0,prepend:y.prepend?d=>{var g;return(g=y.prepend)==null?void 0:g.call(y,{...d,item:m})}:void 0,append:y.append?d=>{var g;return(g=y.append)==null?void 0:g.call(y,{...d,item:m})}:void 0,title:y.title?d=>{var g;return(g=y.title)==null?void 0:g.call(y,{...d,item:m})}:void 0},[l,c]=mre.filterProps(A);return L?ct(mre,Jo({value:A==null?void 0:A.value},l),{activator:d=>{let{props:g}=d;const v={...A,...g,value:o.returnObject?m:A.value};return y.header?y.header({props:v}):ct(fm,v,h)},default:()=>ct(Sse,{items:L},y)}):y.item?y.item({props:A}):ct(fm,Jo(A,{value:o.returnObject?m:A.value}),h)}))}}}),Tse=Br({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},returnObject:Boolean,valueComparator:{type:Function,default:b3}},"list-items");function h3(o,b){const y=lh(b,o.itemTitle,b),T=lh(b,o.itemValue,y),G=lh(b,o.itemChildren),V=o.itemProps===!0?typeof b=="object"&&b!=null&&!Array.isArray(b)?"children"in b?ME(b,["children"])[1]:b:void 0:lh(b,o.itemProps),L={title:y,value:T,...V};return{title:String(L.title??""),value:L.value,props:L,children:Array.isArray(G)?kse(o,G):void 0,raw:b}}function kse(o,b){const y=[];for(const T of b)y.push(h3(o,T));return y}function zq(o){const b=on(()=>kse(o,o.items)),y=on(()=>b.value.some(V=>V.value===null));function T(V){return y.value||(V=V.filter(L=>L!==null)),V.map(L=>o.returnObject&&typeof L=="string"?h3(o,L):b.value.find(A=>o.valueComparator(L,A.value))||h3(o,L))}function G(V){return o.returnObject?V.map(L=>{let{raw:A}=L;return A}):V.map(L=>{let{value:A}=L;return A})}return{items:b,transformIn:T,transformOut:G}}function Pme(o){return typeof o=="string"||typeof o=="number"||typeof o=="boolean"}function Ime(o,b){const y=lh(b,o.itemType,"item"),T=Pme(b)?b:lh(b,o.itemTitle),G=lh(b,o.itemValue,void 0),V=lh(b,o.itemChildren),L=o.itemProps===!0?ME(b,["children"])[1]:lh(b,o.itemProps),A={title:T,value:G,...L};return{type:y,title:A.title,value:A.value,props:A,children:y==="item"&&V?Ase(o,V):void 0,raw:b}}function Ase(o,b){const y=[];for(const T of b)y.push(Ime(o,T));return y}function Nme(o){return{items:on(()=>Ase(o,o.items))}}const Fme=Br({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,lines:{type:[Boolean,String],default:"one"},nav:Boolean,...Cme({selectStrategy:"single-leaf",openStrategy:"list"}),...S3(),...ts(),...Lp(),...x3(),...Wy(),itemType:{type:String,default:"type"},...Tse(),...Tg(),...mc(),...Gc(),...D2({variant:"text"})},"VList"),$2=Go()({name:"VList",props:Fme(),emits:{"update:selected":o=>!0,"update:opened":o=>!0,"click:open":o=>!0,"click:select":o=>!0},setup(o,b){let{slots:y}=b;const{items:T}=Nme(o),{themeClasses:G}=Uu(o),{backgroundColorClasses:V,backgroundColorStyles:L}=wg(Xo(o,"bgColor")),{borderClasses:A}=T3(o),{densityClasses:s}=L0(o),{dimensionStyles:m}=w3(o),{elevationClasses:h}=Gy(o),{roundedClasses:l}=kg(o),{open:c,select:i}=Sme(o),u=on(()=>o.lines?`v-list--${o.lines}-line`:void 0),d=Xo(o,"activeColor"),g=Xo(o,"baseColor"),v=Xo(o,"color");vse(),R0({VListGroup:{activeColor:d,baseColor:g,color:v},VListItem:{activeClass:Xo(o,"activeClass"),activeColor:d,baseColor:g,color:v,density:Xo(o,"density"),disabled:Xo(o,"disabled"),lines:Xo(o,"lines"),nav:Xo(o,"nav"),variant:Xo(o,"variant")}});const x=xa(!1),C=No();function _(N){x.value=!0}function $(N){x.value=!1}function S(N){var M;!x.value&&!(N.relatedTarget&&((M=C.value)!=null&&M.contains(N.relatedTarget)))&&D()}function O(N){if(C.value){if(N.key==="ArrowDown")D("next");else if(N.key==="ArrowUp")D("prev");else if(N.key==="Home")D("first");else if(N.key==="End")D("last");else return;N.preventDefault()}}function D(N){if(C.value)return CB(C.value,N)}return ga(()=>ct(o.tag,{ref:C,class:["v-list",{"v-list--disabled":o.disabled,"v-list--nav":o.nav},G.value,V.value,A.value,s.value,h.value,u.value,l.value,o.class],style:[L.value,m.value,o.style],tabindex:o.disabled||x.value?-1:0,role:"listbox","aria-activedescendant":void 0,onFocusin:_,onFocusout:$,onFocus:S,onKeydown:O},{default:()=>[ct(Sse,{items:T.value,returnObject:o.returnObject},y)]})),{open:c,select:i,focus:D}}});function XJ(o,b){return{x:o.x+b.x,y:o.y+b.y}}function Bme(o,b){return{x:o.x-b.x,y:o.y-b.y}}function gre(o,b){if(o.side==="top"||o.side==="bottom"){const{side:y,align:T}=o,G=T==="left"?0:T==="center"?b.width/2:T==="right"?b.width:T,V=y==="top"?0:y==="bottom"?b.height:y;return XJ({x:G,y:V},b)}else if(o.side==="left"||o.side==="right"){const{side:y,align:T}=o,G=y==="left"?0:y==="right"?b.width:y,V=T==="top"?0:T==="center"?b.height/2:T==="bottom"?b.height:T;return XJ({x:G,y:V},b)}return XJ({x:b.width/2,y:b.height/2},b)}const Mse={static:Vme,connected:Wme},Hme=Br({locationStrategy:{type:[String,Function],default:"static",validator:o=>typeof o=="function"||o in Mse},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function zme(o,b){const y=No({}),T=No();yl&&(E2(()=>!!(b.isActive.value&&o.locationStrategy),V=>{var L,A;ta(()=>o.locationStrategy,V),ch(()=>{T.value=void 0}),typeof o.locationStrategy=="function"?T.value=(L=o.locationStrategy(b,o,y))==null?void 0:L.updateLocation:T.value=(A=Mse[o.locationStrategy](b,o,y))==null?void 0:A.updateLocation}),window.addEventListener("resize",G,{passive:!0}),ch(()=>{window.removeEventListener("resize",G),T.value=void 0}));function G(V){var L;(L=T.value)==null||L.call(T,V)}return{contentStyles:y,updateLocation:T}}function Vme(){}function Ume(o,b){b?o.style.removeProperty("left"):o.style.removeProperty("right");const y=Tq(o);return b?y.x+=parseFloat(o.style.right||0):y.x-=parseFloat(o.style.left||0),y.y-=parseFloat(o.style.top||0),y}function Wme(o,b,y){rhe(o.activatorEl.value)&&Object.assign(y.value,{position:"fixed",top:0,[o.isRtl.value?"right":"left"]:0});const{preferredAnchor:G,preferredOrigin:V}=Sq(()=>{const u=SQ(b.location,o.isRtl.value),d=b.origin==="overlap"?u:b.origin==="auto"?ZJ(u):SQ(b.origin,o.isRtl.value);return u.side===d.side&&u.align===jJ(d).align?{preferredAnchor:Hne(u),preferredOrigin:Hne(d)}:{preferredAnchor:u,preferredOrigin:d}}),[L,A,s,m]=["minWidth","minHeight","maxWidth","maxHeight"].map(u=>on(()=>{const d=parseFloat(b[u]);return isNaN(d)?1/0:d})),h=on(()=>{if(Array.isArray(b.offset))return b.offset;if(typeof b.offset=="string"){const u=b.offset.split(" ").map(parseFloat);return u.length<2&&u.push(0),u}return typeof b.offset=="number"?[b.offset,0]:[0,0]});let l=!1;const c=new ResizeObserver(()=>{l&&i()});ta([o.activatorEl,o.contentEl],(u,d)=>{let[g,v]=u,[x,C]=d;x&&c.unobserve(x),g&&c.observe(g),C&&c.unobserve(C),v&&c.observe(v)},{immediate:!0}),ch(()=>{c.disconnect()});function i(){if(l=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>l=!0)}),!o.activatorEl.value||!o.contentEl.value)return;const u=o.activatorEl.value.getBoundingClientRect(),d=Ume(o.contentEl.value,o.isRtl.value),g=kB(o.contentEl.value),v=12;g.length||(g.push(document.documentElement),o.contentEl.value.style.top&&o.contentEl.value.style.left||(d.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),d.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const x=g.reduce((k,R)=>{const F=R.getBoundingClientRect(),H=new xE({x:R===document.documentElement?0:F.x,y:R===document.documentElement?0:F.y,width:R.clientWidth,height:R.clientHeight});return k?new xE({x:Math.max(k.left,H.left),y:Math.max(k.top,H.top),width:Math.min(k.right,H.right)-Math.max(k.left,H.left),height:Math.min(k.bottom,H.bottom)-Math.max(k.top,H.top)}):H},void 0);x.x+=v,x.y+=v,x.width-=v*2,x.height-=v*2;let C={anchor:G.value,origin:V.value};function _(k){const R=new xE(d),F=gre(k.anchor,u),H=gre(k.origin,R);let{x:j,y:P}=Bme(F,H);switch(k.anchor.side){case"top":P-=h.value[0];break;case"bottom":P+=h.value[0];break;case"left":j-=h.value[0];break;case"right":j+=h.value[0];break}switch(k.anchor.align){case"top":P-=h.value[1];break;case"bottom":P+=h.value[1];break;case"left":j-=h.value[1];break;case"right":j+=h.value[1];break}return R.x+=j,R.y+=P,R.width=Math.min(R.width,s.value),R.height=Math.min(R.height,m.value),{overflows:Vne(R,x),x:j,y:P}}let $=0,S=0;const O={x:0,y:0},D={x:!1,y:!1};let N=-1;for(;!(N++>10);){const{x:k,y:R,overflows:F}=_(C);$+=k,S+=R,d.x+=k,d.y+=R;{const H=zne(C.anchor),j=F.x.before||F.x.after,P=F.y.before||F.y.after;let ee=!1;if(["x","y"].forEach(J=>{if(J==="x"&&j&&!D.x||J==="y"&&P&&!D.y){const K={anchor:{...C.anchor},origin:{...C.origin}},ae=J==="x"?H==="y"?jJ:ZJ:H==="y"?ZJ:jJ;K.anchor=ae(K.anchor),K.origin=ae(K.origin);const{overflows:Q}=_(K);(Q[J].before<=F[J].before&&Q[J].after<=F[J].after||Q[J].before+Q[J].after<(F[J].before+F[J].after)/2)&&(C=K,ee=D[J]=!0)}}),ee)continue}F.x.before&&($+=F.x.before,d.x+=F.x.before),F.x.after&&($-=F.x.after,d.x-=F.x.after),F.y.before&&(S+=F.y.before,d.y+=F.y.before),F.y.after&&(S-=F.y.after,d.y-=F.y.after);{const H=Vne(d,x);O.x=x.width-H.x.before-H.x.after,O.y=x.height-H.y.before-H.y.after,$+=H.x.before,d.x+=H.x.before,S+=H.y.before,d.y+=H.y.before}break}const M=zne(C.anchor);return Object.assign(y.value,{"--v-overlay-anchor-origin":`${C.anchor.side} ${C.anchor.align}`,transformOrigin:`${C.origin.side} ${C.origin.align}`,top:ra(JJ(S)),left:o.isRtl.value?void 0:ra(JJ($)),right:o.isRtl.value?ra(JJ(-$)):void 0,minWidth:ra(M==="y"?Math.min(L.value,u.width):L.value),maxWidth:ra(pre(yg(O.x,L.value===1/0?0:L.value,s.value))),maxHeight:ra(pre(yg(O.y,A.value===1/0?0:A.value,m.value)))}),{available:O,contentBox:d}}return ta(()=>[G.value,V.value,b.offset,b.minWidth,b.minHeight,b.maxWidth,b.maxHeight],()=>i()),Ll(()=>{const u=i();if(!u)return;const{available:d,contentBox:g}=u;g.height>d.y&&requestAnimationFrame(()=>{i(),requestAnimationFrame(()=>{i()})})}),{updateLocation:i}}function JJ(o){return Math.round(o*devicePixelRatio)/devicePixelRatio}function pre(o){return Math.ceil(o*devicePixelRatio)/devicePixelRatio}let EQ=!0;const RB=[];function Gme(o){!EQ||RB.length?(RB.push(o),_Q()):(EQ=!1,o(),_Q())}let vre=-1;function _Q(){cancelAnimationFrame(vre),vre=requestAnimationFrame(()=>{const o=RB.shift();o&&o(),RB.length?_Q():EQ=!0})}const uB={none:null,close:Yme,block:Kme,reposition:Xme},Zme=Br({scrollStrategy:{type:[String,Function],default:"block",validator:o=>typeof o=="function"||o in uB}},"VOverlay-scroll-strategies");function jme(o,b){if(!yl)return;let y;fh(async()=>{y==null||y.stop(),b.isActive.value&&o.scrollStrategy&&(y=XQ(),await Ll(),y.active&&y.run(()=>{var T;typeof o.scrollStrategy=="function"?o.scrollStrategy(b,o,y):(T=uB[o.scrollStrategy])==null||T.call(uB,b,o,y)}))}),ch(()=>{y==null||y.stop()})}function Yme(o){function b(y){o.isActive.value=!1}Ese(o.activatorEl.value??o.contentEl.value,b)}function Kme(o,b){var L;const y=(L=o.root.value)==null?void 0:L.offsetParent,T=[...new Set([...kB(o.activatorEl.value,b.contained?y:void 0),...kB(o.contentEl.value,b.contained?y:void 0)])].filter(A=>!A.classList.contains("v-overlay-scroll-blocked")),G=window.innerWidth-document.documentElement.offsetWidth,V=(A=>Mq(A)&&A)(y||document.documentElement);V&&o.root.value.classList.add("v-overlay--scroll-blocked"),T.forEach((A,s)=>{A.style.setProperty("--v-body-scroll-x",ra(-A.scrollLeft)),A.style.setProperty("--v-body-scroll-y",ra(-A.scrollTop)),A!==document.documentElement&&A.style.setProperty("--v-scrollbar-offset",ra(G)),A.classList.add("v-overlay-scroll-blocked")}),ch(()=>{T.forEach((A,s)=>{const m=parseFloat(A.style.getPropertyValue("--v-body-scroll-x")),h=parseFloat(A.style.getPropertyValue("--v-body-scroll-y"));A.style.removeProperty("--v-body-scroll-x"),A.style.removeProperty("--v-body-scroll-y"),A.style.removeProperty("--v-scrollbar-offset"),A.classList.remove("v-overlay-scroll-blocked"),A.scrollLeft=-m,A.scrollTop=-h}),V&&o.root.value.classList.remove("v-overlay--scroll-blocked")})}function Xme(o,b,y){let T=!1,G=-1,V=-1;function L(A){Gme(()=>{var h,l;const s=performance.now();(l=(h=o.updateLocation).value)==null||l.call(h,A),T=(performance.now()-s)/(1e3/60)>2})}V=(typeof requestIdleCallback>"u"?A=>A():requestIdleCallback)(()=>{y.run(()=>{Ese(o.activatorEl.value??o.contentEl.value,A=>{T?(cancelAnimationFrame(G),G=requestAnimationFrame(()=>{G=requestAnimationFrame(()=>{L(A)})})):L(A)})})}),ch(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(V),cancelAnimationFrame(G)})}function Ese(o,b){const y=[document,...kB(o)];y.forEach(T=>{T.addEventListener("scroll",b,{passive:!0})}),ch(()=>{y.forEach(T=>{T.removeEventListener("scroll",b)})})}const RQ=Symbol.for("vuetify:v-menu"),Jme=Br({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function Qme(o,b){const y={},T=G=>()=>{if(!yl)return Promise.resolve(!0);const V=G==="openDelay";return y.closeDelay&&window.clearTimeout(y.closeDelay),delete y.closeDelay,y.openDelay&&window.clearTimeout(y.openDelay),delete y.openDelay,new Promise(L=>{const A=parseInt(o[G]??0,10);y[G]=window.setTimeout(()=>{b==null||b(V),L(V)},A)})};return{runCloseDelay:T("closeDelay"),runOpenDelay:T("openDelay")}}const qme=Br({activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...Jme()},"VOverlay-activator");function ege(o,b){let{isActive:y,isTop:T}=b;const G=No();let V=!1,L=!1,A=!0;const s=on(()=>o.openOnFocus||o.openOnFocus==null&&o.openOnHover),m=on(()=>o.openOnClick||o.openOnClick==null&&!o.openOnHover&&!s.value),{runOpenDelay:h,runCloseDelay:l}=Qme(o,C=>{C===(o.openOnHover&&V||s.value&&L)&&!(o.openOnHover&&y.value&&!T.value)&&(y.value!==C&&(A=!0),y.value=C)}),c={onClick:C=>{C.stopPropagation(),G.value=C.currentTarget||C.target,y.value=!y.value},onMouseenter:C=>{var _;(_=C.sourceCapabilities)!=null&&_.firesTouchEvents||(V=!0,G.value=C.currentTarget||C.target,h())},onMouseleave:C=>{V=!1,l()},onFocus:C=>{EE(C.target,":focus-visible")!==!1&&(L=!0,C.stopPropagation(),G.value=C.currentTarget||C.target,h())},onBlur:C=>{L=!1,C.stopPropagation(),l()}},i=on(()=>{const C={};return m.value&&(C.onClick=c.onClick),o.openOnHover&&(C.onMouseenter=c.onMouseenter,C.onMouseleave=c.onMouseleave),s.value&&(C.onFocus=c.onFocus,C.onBlur=c.onBlur),C}),u=on(()=>{const C={};if(o.openOnHover&&(C.onMouseenter=()=>{V=!0,h()},C.onMouseleave=()=>{V=!1,l()}),s.value&&(C.onFocusin=()=>{L=!0,h()},C.onFocusout=()=>{L=!1,l()}),o.closeOnContentClick){const _=ni(RQ,null);C.onClick=()=>{y.value=!1,_==null||_.closeParents()}}return C}),d=on(()=>{const C={};return o.openOnHover&&(C.onMouseenter=()=>{A&&(V=!0,A=!1,h())},C.onMouseleave=()=>{V=!1,l()}),C});ta(T,C=>{C&&(o.openOnHover&&!V&&(!s.value||!L)||s.value&&!L&&(!o.openOnHover||!V))&&(y.value=!1)});const g=No();fh(()=>{g.value&&Ll(()=>{G.value=CQ(g.value)})});const v=Vu("useActivator");let x;return ta(()=>!!o.activator,C=>{C&&yl?(x=XQ(),x.run(()=>{tge(o,v,{activatorEl:G,activatorEvents:i})})):x&&x.stop()},{flush:"post",immediate:!0}),ch(()=>{x==null||x.stop()}),{activatorEl:G,activatorRef:g,activatorEvents:i,contentEvents:u,scrimEvents:d}}function tge(o,b,y){let{activatorEl:T,activatorEvents:G}=y;ta(()=>o.activator,(s,m)=>{if(m&&s!==m){const h=A(m);h&&L(h)}s&&Ll(()=>V())},{immediate:!0}),ta(()=>o.activatorProps,()=>{V()}),ch(()=>{L()});function V(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A(),m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.activatorProps;s&&Ade(s,Jo(G.value,m))}function L(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A(),m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.activatorProps;s&&Mde(s,Jo(G.value,m))}function A(){var h,l;let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o.activator,m;if(s)if(s==="parent"){let c=(l=(h=b==null?void 0:b.proxy)==null?void 0:h.$el)==null?void 0:l.parentNode;for(;c!=null&&c.hasAttribute("data-no-activator");)c=c.parentNode;m=c}else typeof s=="string"?m=document.querySelector(s):"$el"in s?m=s.$el:m=s;return T.value=(m==null?void 0:m.nodeType)===Node.ELEMENT_NODE?m:null,T.value}}const uH=["sm","md","lg","xl","xxl"],LQ=Symbol.for("vuetify:display"),yre={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},nge=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yre;return gg(yre,o)};function bre(o){return yl&&!o?window.innerWidth:typeof o=="object"&&o.clientWidth||0}function xre(o){return yl&&!o?window.innerHeight:typeof o=="object"&&o.clientHeight||0}function wre(o){const b=yl&&!o?window.navigator.userAgent:"ssr";function y(u){return!!b.match(u)}const T=y(/android/i),G=y(/iphone|ipad|ipod/i),V=y(/cordova/i),L=y(/electron/i),A=y(/chrome/i),s=y(/edge/i),m=y(/firefox/i),h=y(/opera/i),l=y(/win/i),c=y(/mac/i),i=y(/linux/i);return{android:T,ios:G,cordova:V,electron:L,chrome:A,edge:s,firefox:m,opera:h,win:l,mac:c,linux:i,touch:wde,ssr:b==="ssr"}}function rge(o,b){const{thresholds:y,mobileBreakpoint:T}=nge(o),G=xa(xre(b)),V=xa(wre(b)),L=ih({}),A=xa(bre(b));function s(){G.value=xre(),A.value=bre()}function m(){s(),V.value=wre()}return fh(()=>{const h=A.value=y.xxl,g=h?"xs":l?"sm":c?"md":i?"lg":u?"xl":"xxl",v=typeof T=="number"?T:y[T],x=A.value{b.value=!0}),b}else return xa(!0)}const Vq=Br({eager:Boolean},"lazy");function Rse(o,b){const y=xa(!1),T=on(()=>y.value||o.eager||b.value);ta(b,()=>y.value=!0);function G(){o.eager||(y.value=!1)}return{isBooted:y,hasContent:T,onAfterLeave:G}}function Uq(){const b=Vu("useScopeId").vnode.scopeId;return{scopeId:b?{[b]:""}:void 0}}const Cre=Symbol.for("vuetify:stack"),x6=ih([]);function age(o,b,y){const T=Vu("useStack"),G=!y,V=ni(Cre,void 0),L=ih({activeChildren:new Set});Gl(Cre,L);const A=xa(+b.value);E2(o,()=>{var l;const h=(l=x6.at(-1))==null?void 0:l[1];A.value=h?h+10:+b.value,G&&x6.push([T.uid,A.value]),V==null||V.activeChildren.add(T.uid),ch(()=>{if(G){const c=ds(x6).findIndex(i=>i[0]===T.uid);x6.splice(c,1)}V==null||V.activeChildren.delete(T.uid)})});const s=xa(!0);G&&fh(()=>{var l;const h=((l=x6.at(-1))==null?void 0:l[0])===T.uid;setTimeout(()=>s.value=h)});const m=on(()=>!L.activeChildren.size);return{globalTop:Z6(s),localTop:m,stackStyles:on(()=>({zIndex:A.value}))}}function sge(o){return{teleportTarget:on(()=>{const y=o.value;if(y===!0||!yl)return;const T=y===!1?document.body:typeof y=="string"?document.querySelector(y):y;if(T==null)return;let G=T.querySelector(":scope > .v-overlay-container");return G||(G=document.createElement("div"),G.className="v-overlay-container",T.appendChild(G)),G})}}function ige(){return!0}function Lse(o,b,y){if(!o||Dse(o,y)===!1)return!1;const T=Oae(b);if(typeof ShadowRoot<"u"&&T instanceof ShadowRoot&&T.host===o.target)return!1;const G=(typeof y.value=="object"&&y.value.include||(()=>[]))();return G.push(b),!G.some(V=>V==null?void 0:V.contains(o.target))}function Dse(o,b){return(typeof b.value=="object"&&b.value.closeConditional||ige)(o)}function lge(o,b,y){const T=typeof y.value=="function"?y.value:y.value.handler;b._clickOutside.lastMousedownWasOutside&&Lse(o,b,y)&&setTimeout(()=>{Dse(o,y)&&T&&T(o)},0)}function Sre(o,b){const y=Oae(o);b(document),typeof ShadowRoot<"u"&&y instanceof ShadowRoot&&b(y)}const cge={mounted(o,b){const y=G=>lge(G,o,b),T=G=>{o._clickOutside.lastMousedownWasOutside=Lse(G,o,b)};Sre(o,G=>{G.addEventListener("click",y,!0),G.addEventListener("mousedown",T,!0)}),o._clickOutside||(o._clickOutside={lastMousedownWasOutside:!1}),o._clickOutside[b.instance.$.uid]={onClick:y,onMousedown:T}},unmounted(o,b){o._clickOutside&&(Sre(o,y=>{var V;if(!y||!((V=o._clickOutside)!=null&&V[b.instance.$.uid]))return;const{onClick:T,onMousedown:G}=o._clickOutside[b.instance.$.uid];y.removeEventListener("click",T,!0),y.removeEventListener("mousedown",G,!0)}),delete o._clickOutside[b.instance.$.uid])}};function uge(o){const{modelValue:b,color:y,...T}=o;return ct(Hy,{name:"fade-transition",appear:!0},{default:()=>[o.modelValue&&ct("div",Jo({class:["v-overlay__scrim",o.color.backgroundColorClasses.value],style:o.color.backgroundColorStyles.value},T),null)]})}const Wq=Br({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...qme(),...ts(),...x3(),...Vq(),...Hme(),...Zme(),...Gc(),...C3()},"VOverlay"),LB=Go()({name:"VOverlay",directives:{ClickOutside:cge},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Wq()},emits:{"click:outside":o=>!0,"update:modelValue":o=>!0,afterLeave:()=>!0},setup(o,b){let{slots:y,attrs:T,emit:G}=b;const V=ri(o,"modelValue"),L=on({get:()=>V.value,set:K=>{K&&o.disabled||(V.value=K)}}),{teleportTarget:A}=sge(on(()=>o.attach||o.contained)),{themeClasses:s}=Uu(o),{rtlClasses:m,isRtl:h}=Sg(),{hasContent:l,onAfterLeave:c}=Rse(o,L),i=wg(on(()=>typeof o.scrim=="string"?o.scrim:null)),{globalTop:u,localTop:d,stackStyles:g}=age(L,Xo(o,"zIndex"),o._disableGlobalStack),{activatorEl:v,activatorRef:x,activatorEvents:C,contentEvents:_,scrimEvents:$}=ege(o,{isActive:L,isTop:d}),{dimensionStyles:S}=w3(o),O=oge(),{scopeId:D}=Uq();ta(()=>o.disabled,K=>{K&&(L.value=!1)});const N=No(),M=No(),{contentStyles:k,updateLocation:R}=zme(o,{isRtl:h,contentEl:M,activatorEl:v,isActive:L});jme(o,{root:N,contentEl:M,activatorEl:v,isActive:L,updateLocation:R});function F(K){G("click:outside",K),o.persistent?J():L.value=!1}function H(){return L.value&&u.value}yl&&ta(L,K=>{K?window.addEventListener("keydown",j):window.removeEventListener("keydown",j)},{immediate:!0});function j(K){var ae,Q;K.key==="Escape"&&u.value&&(o.persistent?J():(L.value=!1,(ae=M.value)!=null&&ae.contains(document.activeElement)&&((Q=v.value)==null||Q.focus())))}const P=Xhe();E2(()=>o.closeOnBack,()=>{Jhe(P,K=>{u.value&&L.value?(K(!1),o.persistent?J():L.value=!1):K()})});const ee=No();ta(()=>L.value&&(o.absolute||o.contained)&&A.value==null,K=>{if(K){const ae=Iae(N.value);ae&&ae!==document.scrollingElement&&(ee.value=ae.scrollTop)}});function J(){o.noClickAnimation||M.value&&gE(M.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:TB})}return ga(()=>{var K;return ct(Uo,null,[(K=y.activator)==null?void 0:K.call(y,{isActive:L.value,props:Jo({ref:x},C.value,o.activatorProps)}),O.value&&l.value&&ct(Que,{disabled:!A.value,to:A.value},{default:()=>[ct("div",Jo({class:["v-overlay",{"v-overlay--absolute":o.absolute||o.contained,"v-overlay--active":L.value,"v-overlay--contained":o.contained},s.value,m.value,o.class],style:[g.value,{top:ra(ee.value)},o.style],ref:N},D,T),[ct(uge,Jo({color:i,modelValue:L.value&&!!o.scrim},$.value),null),ct(T2,{appear:!0,persisted:!0,transition:o.transition,target:v.value,onAfterLeave:()=>{c(),G("afterLeave")}},{default:()=>{var ae;return[lu(ct("div",Jo({ref:M,class:["v-overlay__content",o.contentClass],style:[S.value,k.value]},_.value,o.contentProps),[(ae=y.default)==null?void 0:ae.call(y,{isActive:L})]),[[R2,L.value],[_p("click-outside"),{handler:F,closeConditional:H,include:()=>[v.value]}]])]}})])]})])}),{activatorEl:v,animateClick:J,contentEl:M,globalTop:u,localTop:d,updateLocation:R}}}),QJ=Symbol("Forwarded refs");function qJ(o,b){let y=o;for(;y;){const T=Reflect.getOwnPropertyDescriptor(y,b);if(T)return T;y=Object.getPrototypeOf(y)}}function A3(o){for(var b=arguments.length,y=new Array(b>1?b-1:0),T=1;T!0},setup(o,b){let{slots:y}=b;const T=ri(o,"modelValue"),{scopeId:G}=Uq(),V=Rp(),L=on(()=>o.id||`v-menu-${V}`),A=No(),s=ni(RQ,null),m=xa(0);Gl(RQ,{register(){++m.value},unregister(){--m.value},closeParents(){setTimeout(()=>{m.value||(T.value=!1,s==null||s.closeParents())},40)}});async function h(d){var x,C,_;const g=d.relatedTarget,v=d.target;await Ll(),T.value&&g!==v&&((x=A.value)!=null&&x.contentEl)&&((C=A.value)!=null&&C.globalTop)&&![document,A.value.contentEl].includes(v)&&!A.value.contentEl.contains(v)&&((_=wB(A.value.contentEl)[0])==null||_.focus())}ta(T,d=>{d?(s==null||s.register(),document.addEventListener("focusin",h,{once:!0})):(s==null||s.unregister(),document.removeEventListener("focusin",h))});function l(){s==null||s.closeParents()}function c(d){var g,v,x;o.disabled||d.key==="Tab"&&(Aae(wB((g=A.value)==null?void 0:g.contentEl,!1),d.shiftKey?"prev":"next",_=>_.tabIndex>=0)||(T.value=!1,(x=(v=A.value)==null?void 0:v.activatorEl)==null||x.focus()))}function i(d){var v;if(o.disabled)return;const g=(v=A.value)==null?void 0:v.contentEl;g&&T.value?d.key==="ArrowDown"?(d.preventDefault(),CB(g,"next")):d.key==="ArrowUp"&&(d.preventDefault(),CB(g,"prev")):["ArrowDown","ArrowUp"].includes(d.key)&&(T.value=!0,d.preventDefault(),setTimeout(()=>setTimeout(()=>i(d))))}const u=on(()=>Jo({"aria-haspopup":"menu","aria-expanded":String(T.value),"aria-owns":L.value,onKeydown:i},o.activatorProps));return ga(()=>{const[d]=LB.filterProps(o);return ct(LB,Jo({ref:A,class:["v-menu",o.class],style:o.style},d,{modelValue:T.value,"onUpdate:modelValue":g=>T.value=g,absolute:!0,activatorProps:u.value,"onClick:outside":l,onKeydown:c},G),{activator:y.activator,default:function(){for(var g=arguments.length,v=new Array(g),x=0;x{var C;return[(C=y.default)==null?void 0:C.call(y,...v)]}})}})}),A3({id:L,ΨopenChildren:m},A)}});const dge=Br({active:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...ts(),...C3({transition:{component:Uae}})},"VCounter"),$se=Go()({name:"VCounter",functional:!0,props:dge(),setup(o,b){let{slots:y}=b;const T=on(()=>o.max?`${o.value} / ${o.max}`:String(o.value));return ga(()=>ct(T2,{transition:o.transition},{default:()=>[lu(ct("div",{class:["v-counter",o.class],style:o.style},[y.default?y.default({counter:T.value,max:o.max,value:o.value}):T.value]),[[R2,o.active]])]})),{}}});const hge=Br({floating:Boolean,...ts()},"VFieldLabel"),qF=Go()({name:"VFieldLabel",props:hge(),setup(o,b){let{slots:y}=b;return ga(()=>ct(iH,{class:["v-field-label",{"v-field-label--floating":o.floating},o.class],style:o.style,"aria-hidden":o.floating||void 0},y)),{}}}),mge=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Gq=Br({appendInnerIcon:vi,bgColor:String,clearable:Boolean,clearIcon:{type:vi,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:vi,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:o=>mge.includes(o)},"onClick:clear":M0(),"onClick:appendInner":M0(),"onClick:prependInner":M0(),...ts(),...rH(),...Tg(),...Gc()},"VField"),Zq=Go()({name:"VField",inheritAttrs:!1,props:{id:String,...lH(),...Gq()},emits:{"update:focused":o=>!0,"update:modelValue":o=>!0},setup(o,b){let{attrs:y,emit:T,slots:G}=b;const{themeClasses:V}=Uu(o),{loaderClasses:L}=oH(o),{focusClasses:A,isFocused:s,focus:m,blur:h}=q6(o),{InputIcon:l}=gse(o),{roundedClasses:c}=kg(o),{rtlClasses:i}=Sg(),u=on(()=>o.dirty||o.active),d=on(()=>!o.singleLine&&!!(o.label||G.label)),g=Rp(),v=on(()=>o.id||`input-${g}`),x=on(()=>`${v.value}-messages`),C=No(),_=No(),$=No(),S=on(()=>["plain","underlined"].includes(o.variant)),{backgroundColorClasses:O,backgroundColorStyles:D}=wg(Xo(o,"bgColor")),{textColorClasses:N,textColorStyles:M}=xg(on(()=>o.error||o.disabled?void 0:u.value&&s.value?o.color:o.baseColor));ta(u,F=>{if(d.value){const H=C.value.$el,j=_.value.$el;requestAnimationFrame(()=>{const P=Tq(H),ee=j.getBoundingClientRect(),J=ee.x-P.x,K=ee.y-P.y-(P.height/2-ee.height/2),ae=ee.width/.75,Q=Math.abs(ae-P.width)>1?{maxWidth:ra(ae)}:void 0,he=getComputedStyle(H),ge=getComputedStyle(j),Se=parseFloat(he.transitionDuration)*1e3||150,ce=parseFloat(ge.getPropertyValue("--v-field-label-scale")),ne=ge.getPropertyValue("color");H.style.visibility="visible",j.style.visibility="hidden",gE(H,{transform:`translate(${J}px, ${K}px) scale(${ce})`,color:ne,...Q},{duration:Se,easing:TB,direction:F?"normal":"reverse"}).finished.then(()=>{H.style.removeProperty("visibility"),j.style.removeProperty("visibility")})})}},{flush:"post"});const k=on(()=>({isActive:u,isFocused:s,controlRef:$,blur:h,focus:m}));function R(F){F.target!==document.activeElement&&F.preventDefault()}return ga(()=>{var J,K,ae;const F=o.variant==="outlined",H=G["prepend-inner"]||o.prependInnerIcon,j=!!(o.clearable||G.clear),P=!!(G["append-inner"]||o.appendInnerIcon||j),ee=G.label?G.label({...k.value,label:o.label,props:{for:v.value}}):o.label;return ct("div",Jo({class:["v-field",{"v-field--active":u.value,"v-field--appended":P,"v-field--center-affix":o.centerAffix??!S.value,"v-field--disabled":o.disabled,"v-field--dirty":o.dirty,"v-field--error":o.error,"v-field--flat":o.flat,"v-field--has-background":!!o.bgColor,"v-field--persistent-clear":o.persistentClear,"v-field--prepended":H,"v-field--reverse":o.reverse,"v-field--single-line":o.singleLine,"v-field--no-label":!ee,[`v-field--variant-${o.variant}`]:!0},V.value,O.value,A.value,L.value,c.value,i.value,o.class],style:[D.value,o.style],onClick:R},y),[ct("div",{class:"v-field__overlay"},null),ct(Bq,{name:"v-field",active:!!o.loading,color:o.error?"error":typeof o.loading=="string"?o.loading:o.color},{default:G.loader}),H&&ct("div",{key:"prepend",class:"v-field__prepend-inner"},[o.prependInnerIcon&&ct(l,{key:"prepend-icon",name:"prependInner"},null),(J=G["prepend-inner"])==null?void 0:J.call(G,k.value)]),ct("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(o.variant)&&d.value&&ct(qF,{key:"floating-label",ref:_,class:[N.value],floating:!0,for:v.value,style:M.value},{default:()=>[ee]}),ct(qF,{ref:C,for:v.value},{default:()=>[ee]}),(K=G.default)==null?void 0:K.call(G,{...k.value,props:{id:v.value,class:"v-field__input","aria-describedby":x.value},focus:m,blur:h})]),j&&ct(Wae,{key:"clear"},{default:()=>[lu(ct("div",{class:"v-field__clearable",onMousedown:Q=>{Q.preventDefault(),Q.stopPropagation()}},[G.clear?G.clear():ct(l,{name:"clear"},null)]),[[R2,o.dirty]])]}),P&&ct("div",{key:"append",class:"v-field__append-inner"},[(ae=G["append-inner"])==null?void 0:ae.call(G,k.value),o.appendInnerIcon&&ct(l,{key:"append-icon",name:"appendInner"},null)]),ct("div",{class:["v-field__outline",N.value],style:M.value},[F&&ct(Uo,null,[ct("div",{class:"v-field__outline__start"},null),d.value&&ct("div",{class:"v-field__outline__notch"},[ct(qF,{ref:_,floating:!0,for:v.value},{default:()=>[ee]})]),ct("div",{class:"v-field__outline__end"},null)]),S.value&&d.value&&ct(qF,{ref:_,floating:!0,for:v.value},{default:()=>[ee]})])])}),{controlRef:$}}});function Ose(o){const b=Object.keys(Zq.props).filter(y=>!wq(y)&&y!=="class"&&y!=="style");return ME(o,b)}const gge=["color","file","time","date","datetime-local","week","month"],fH=Br({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...e$(),...Gq()},"VTextField"),Ep=Go()({name:"VTextField",directives:{Intersect:Rq},inheritAttrs:!1,props:fH(),emits:{"click:control":o=>!0,"mousedown:control":o=>!0,"update:focused":o=>!0,"update:modelValue":o=>!0},setup(o,b){let{attrs:y,emit:T,slots:G}=b;const V=ri(o,"modelValue"),{isFocused:L,focus:A,blur:s}=q6(o),m=on(()=>typeof o.counterValue=="function"?o.counterValue(V.value):typeof o.counterValue=="number"?o.counterValue:(V.value??"").toString().length),h=on(()=>{if(y.maxlength)return y.maxlength;if(!(!o.counter||typeof o.counter!="number"&&typeof o.counter!="string"))return o.counter}),l=on(()=>["plain","underlined"].includes(o.variant));function c(S,O){var D,N;!o.autofocus||!S||(N=(D=O[0].target)==null?void 0:D.focus)==null||N.call(D)}const i=No(),u=No(),d=No(),g=on(()=>gge.includes(o.type)||o.persistentPlaceholder||L.value||o.active);function v(){var S;d.value!==document.activeElement&&((S=d.value)==null||S.focus()),L.value||A()}function x(S){T("mousedown:control",S),S.target!==d.value&&(v(),S.preventDefault())}function C(S){v(),T("click:control",S)}function _(S){S.stopPropagation(),v(),Ll(()=>{V.value=null,kae(o["onClick:clear"],S)})}function $(S){var D;const O=S.target;if(V.value=O.value,(D=o.modelModifiers)!=null&&D.trim&&["text","search","password","tel","url"].includes(o.type)){const N=[O.selectionStart,O.selectionEnd];Ll(()=>{O.selectionStart=N[0],O.selectionEnd=N[1]})}}return ga(()=>{const S=!!(G.counter||o.counter!==!1&&o.counter!=null),O=!!(S||G.details),[D,N]=Cq(y),[{modelValue:M,...k}]=_2.filterProps(o),[R]=Ose(o);return ct(_2,Jo({ref:i,modelValue:V.value,"onUpdate:modelValue":F=>V.value=F,class:["v-text-field",{"v-text-field--prefixed":o.prefix,"v-text-field--suffixed":o.suffix,"v-text-field--plain-underlined":["plain","underlined"].includes(o.variant)},o.class],style:o.style},D,k,{centerAffix:!l.value,focused:L.value}),{...G,default:F=>{let{id:H,isDisabled:j,isDirty:P,isReadonly:ee,isValid:J}=F;return ct(Zq,Jo({ref:u,onMousedown:x,onClick:C,"onClick:clear":_,"onClick:prependInner":o["onClick:prependInner"],"onClick:appendInner":o["onClick:appendInner"],role:o.role},R,{id:H.value,active:g.value||P.value,dirty:P.value||o.dirty,disabled:j.value,focused:L.value,error:J.value===!1}),{...G,default:K=>{let{props:{class:ae,...Q}}=K;const he=lu(ct("input",Jo({ref:d,value:V.value,onInput:$,autofocus:o.autofocus,readonly:ee.value,disabled:j.value,name:o.name,placeholder:o.placeholder,size:1,type:o.type,onFocus:v,onBlur:s},Q,N),null),[[_p("intersect"),{handler:c},null,{once:!0}]]);return ct(Uo,null,[o.prefix&&ct("span",{class:"v-text-field__prefix"},[ct("span",{class:"v-text-field__prefix__text"},[o.prefix])]),G.default?ct("div",{class:ae,"data-no-activator":""},[G.default(),he]):By(he,{class:ae}),o.suffix&&ct("span",{class:"v-text-field__suffix"},[ct("span",{class:"v-text-field__suffix__text"},[o.suffix])])])}})},details:O?F=>{var H;return ct(Uo,null,[(H=G.details)==null?void 0:H.call(G,F),S&&ct(Uo,null,[ct("span",null,null),ct($se,{active:o.persistentCounter||L.value,value:m.value,max:h.value},G.counter)])])}:void 0})}),A3({},i,u,d)}});const pge=Br({renderless:Boolean,...ts()},"VVirtualScrollItem"),vge=Go()({name:"VVirtualScrollItem",inheritAttrs:!1,props:pge(),emits:{"update:height":o=>!0},setup(o,b){let{attrs:y,emit:T,slots:G}=b;const{resizeRef:V,contentRect:L}=tH(void 0,"border");ta(()=>{var A;return(A=L.value)==null?void 0:A.height},A=>{A!=null&&T("update:height",A)}),ga(()=>{var A,s;return o.renderless?ct(Uo,null,[(A=G.default)==null?void 0:A.call(G,{itemRef:V})]):ct("div",Jo({ref:V,class:["v-virtual-scroll__item",o.class],style:o.style},y),[(s=G.default)==null?void 0:s.call(G)])})}}),Tre=-1,kre=1,yge=Br({itemHeight:{type:[Number,String],default:48}},"virtual");function bge(o,b,y){const T=xa(0),G=xa(o.itemHeight),V=on({get:()=>parseInt(G.value??0,10),set(O){G.value=O}}),L=No(),{resizeRef:A,contentRect:s}=tH();fh(()=>{A.value=L.value});const m=_se(),h=new Map;let l=Array.from({length:b.value.length});const c=on(()=>{const O=(!s.value||L.value===document.documentElement?m.height.value:s.value.height)-((y==null?void 0:y.value)??0);return Math.ceil(O/V.value*1.7+1)});function i(O,D){V.value=Math.max(V.value,D),l[O]=D,h.set(b.value[O],D)}function u(O){return l.slice(0,O).reduce((D,N)=>D+(N||V.value),0)}function d(O){const D=b.value.length;let N=0,M=0;for(;M=F&&(T.value=yg(R,0,b.value.length-c.value)),g=D}function x(O){if(!L.value)return;const D=u(O);L.value.scrollTop=D}const C=on(()=>Math.min(b.value.length,T.value+c.value)),_=on(()=>b.value.slice(T.value,C.value).map((O,D)=>({raw:O,index:D+T.value}))),$=on(()=>u(T.value)),S=on(()=>u(b.value.length)-u(C.value));return ta(()=>b.value.length,()=>{l=AE(b.value.length).map(()=>V.value),h.forEach((O,D)=>{const N=b.value.indexOf(D);N===-1?h.delete(D):l[N]=O})}),{containerRef:L,computedItems:_,itemHeight:V,paddingTop:$,paddingBottom:S,scrollToIndex:x,handleScroll:v,handleItemResize:i}}const xge=Br({items:{type:Array,default:()=>[]},renderless:Boolean,...yge(),...ts(),...x3()},"VVirtualScroll"),jq=Go()({name:"VVirtualScroll",props:xge(),setup(o,b){let{slots:y}=b;const T=Vu("VVirtualScroll"),{dimensionStyles:G}=w3(o),{containerRef:V,handleScroll:L,handleItemResize:A,scrollToIndex:s,paddingTop:m,paddingBottom:h,computedItems:l}=bge(o,Xo(o,"items"));return E2(()=>o.renderless,()=>{Cg(()=>{var c;V.value=Iae(T.vnode.el,!0),(c=V.value)==null||c.addEventListener("scroll",L)}),ch(()=>{var c;(c=V.value)==null||c.removeEventListener("scroll",L)})}),ga(()=>{const c=l.value.map(i=>ct(vge,{key:i.index,renderless:o.renderless,"onUpdate:height":u=>A(i.index,u)},{default:u=>{var d;return(d=y.default)==null?void 0:d.call(y,{item:i.raw,index:i.index,...u})}}));return o.renderless?ct(Uo,null,[ct("div",{class:"v-virtual-scroll__spacer",style:{paddingTop:ra(m.value)}},null),c,ct("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:ra(h.value)}},null)]):ct("div",{ref:V,class:["v-virtual-scroll",o.class],onScroll:L,style:[G.value,o.style]},[ct("div",{class:"v-virtual-scroll__container",style:{paddingTop:ra(m.value),paddingBottom:ra(h.value)}},[c])])}),{scrollToIndex:s}}});function Yq(o,b){const y=xa(!1);let T;function G(A){cancelAnimationFrame(T),y.value=!0,T=requestAnimationFrame(()=>{T=requestAnimationFrame(()=>{y.value=!1})})}async function V(){await new Promise(A=>requestAnimationFrame(A)),await new Promise(A=>requestAnimationFrame(A)),await new Promise(A=>requestAnimationFrame(A)),await new Promise(A=>{if(y.value){const s=ta(y,()=>{s(),A()})}else A()})}async function L(A){var h,l;if(A.key==="Tab"&&((h=b.value)==null||h.focus()),!["PageDown","PageUp","Home","End"].includes(A.key))return;const s=(l=o.value)==null?void 0:l.$el;if(!s)return;(A.key==="Home"||A.key==="End")&&s.scrollTo({top:A.key==="Home"?0:s.scrollHeight,behavior:"smooth"}),await V();const m=s.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(A.key==="PageDown"||A.key==="Home"){const c=s.getBoundingClientRect().top;for(const i of m)if(i.getBoundingClientRect().top>=c){i.focus();break}}else{const c=s.getBoundingClientRect().bottom;for(const i of[...m].reverse())if(i.getBoundingClientRect().bottom<=c){i.focus();break}}}return{onListScroll:G,onListKeydown:L}}const Kq=Br({chips:Boolean,closableChips:Boolean,closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"},eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,menu:Boolean,menuIcon:{type:vi,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,...Tse({itemChildren:!1})},"Select"),wge=Br({...Kq(),...PE(fH({modelValue:null,role:"button"}),["validationValue","dirty","appendInnerIcon"]),...C3({transition:{component:Eq}})},"VSelect"),Xq=Go()({name:"VSelect",props:wge(),emits:{"update:focused":o=>!0,"update:modelValue":o=>!0,"update:menu":o=>!0},setup(o,b){let{slots:y}=b;const{t:T}=L2(),G=No(),V=No(),L=No(),A=ri(o,"menu"),s=on({get:()=>A.value,set:P=>{var ee;A.value&&!P&&((ee=V.value)!=null&&ee.ΨopenChildren)||(A.value=P)}}),{items:m,transformIn:h,transformOut:l}=zq(o),c=ri(o,"modelValue",[],P=>h(P===null?[null]:xd(P)),P=>{const ee=l(P);return o.multiple?ee:ee[0]??null}),i=cH(),u=on(()=>c.value.map(P=>P.value)),d=xa(!1),g=on(()=>s.value?o.closeText:o.openText);let v="",x;const C=on(()=>o.hideSelected?m.value.filter(P=>!c.value.some(ee=>ee===P)):m.value),_=on(()=>o.hideNoData&&!m.value.length||o.readonly||(i==null?void 0:i.isReadonly.value)),$=No(),{onListScroll:S,onListKeydown:O}=Yq($,G);function D(P){o.openOnClear&&(s.value=!0)}function N(){_.value||(s.value=!s.value)}function M(P){var Q,he;if(!P.key||o.readonly||i!=null&&i.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(P.key)&&P.preventDefault(),["Enter","ArrowDown"," "].includes(P.key)&&(s.value=!0),["Escape","Tab"].includes(P.key)&&(s.value=!1),P.key==="Home"?(Q=$.value)==null||Q.focus("first"):P.key==="End"&&((he=$.value)==null||he.focus("last"));const ee=1e3;function J(ge){const Se=ge.key.length===1,ce=!ge.ctrlKey&&!ge.metaKey&&!ge.altKey;return Se&&ce}if(o.multiple||!J(P))return;const K=performance.now();K-x>ee&&(v=""),v+=P.key.toLowerCase(),x=K;const ae=m.value.find(ge=>ge.title.toLowerCase().startsWith(v));ae!==void 0&&(c.value=[ae])}function k(P){if(o.multiple){const ee=c.value.findIndex(J=>o.valueComparator(J.value,P.value));if(ee===-1)c.value=[...c.value,P];else{const J=[...c.value];J.splice(ee,1),c.value=J}}else c.value=[P],s.value=!1}function R(P){var ee;(ee=$.value)!=null&&ee.$el.contains(P.relatedTarget)||(s.value=!1)}function F(){var P;d.value&&((P=G.value)==null||P.focus())}function H(P){d.value=!0}function j(P){if(P==null)c.value=[];else if(EE(G.value,":autofill")||EE(G.value,":-webkit-autofill")){const ee=m.value.find(J=>J.title===P);ee&&k(ee)}else G.value&&(G.value.value="")}return ta(s,()=>{if(!o.hideSelected&&s.value&&c.value.length){const P=C.value.findIndex(ee=>c.value.some(J=>o.valueComparator(J.value,ee.value)));yl&&window.requestAnimationFrame(()=>{var ee;P>=0&&((ee=L.value)==null||ee.scrollToIndex(P))})}}),ga(()=>{const P=!!(o.chips||y.chip),ee=!!(!o.hideNoData||C.value.length||y["prepend-item"]||y["append-item"]||y["no-data"]),J=c.value.length>0,[K]=Ep.filterProps(o),ae=J||!d.value&&o.label&&!o.persistentPlaceholder?void 0:o.placeholder;return ct(Ep,Jo({ref:G},K,{modelValue:c.value.map(Q=>Q.props.value).join(", "),"onUpdate:modelValue":j,focused:d.value,"onUpdate:focused":Q=>d.value=Q,validationValue:c.externalValue,counterValue:c.value.length,dirty:J,class:["v-select",{"v-select--active-menu":s.value,"v-select--chips":!!o.chips,[`v-select--${o.multiple?"multiple":"single"}`]:!0,"v-select--selected":c.value.length,"v-select--selection-slot":!!y.selection},o.class],style:o.style,inputmode:"none",placeholder:ae,"onClick:clear":D,"onMousedown:control":N,onBlur:R,onKeydown:M,"aria-label":T(g.value),title:T(g.value)}),{...y,default:()=>ct(Uo,null,[ct(O2,Jo({ref:V,modelValue:s.value,"onUpdate:modelValue":Q=>s.value=Q,activator:"parent",contentClass:"v-select__content",disabled:_.value,eager:o.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:o.transition,onAfterLeave:F},o.menuProps),{default:()=>[ee&&ct($2,{ref:$,selected:u.value,selectStrategy:o.multiple?"independent":"single-independent",onMousedown:Q=>Q.preventDefault(),onKeydown:O,onFocusin:H,onScrollPassive:S,tabindex:"-1",color:o.itemColor??o.color},{default:()=>{var Q,he,ge;return[(Q=y["prepend-item"])==null?void 0:Q.call(y),!C.value.length&&!o.hideNoData&&(((he=y["no-data"])==null?void 0:he.call(y))??ct(fm,{title:T(o.noDataText)},null)),ct(jq,{ref:L,renderless:!0,items:C.value},{default:Se=>{var ye;let{item:ce,index:ne,itemRef:fe}=Se;const X=Jo(ce.props,{ref:fe,key:ne,onClick:()=>k(ce)});return((ye=y.item)==null?void 0:ye.call(y,{item:ce,index:ne,props:X}))??ct(fm,X,{prepend:Ce=>{let{isSelected:$e}=Ce;return ct(Uo,null,[o.multiple&&!o.hideSelected?ct(FE,{key:ce.value,modelValue:$e,ripple:!1,tabindex:"-1"},null):void 0,ce.props.prependIcon&&ct(js,{icon:ce.props.prependIcon},null)])}})}}),(ge=y["append-item"])==null?void 0:ge.call(y)]}})]}),c.value.map((Q,he)=>{var ce;function ge(ne){ne.stopPropagation(),ne.preventDefault(),k(Q)}const Se={"onClick:close":ge,onMousedown(ne){ne.preventDefault(),ne.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0};return ct("div",{key:Q.value,class:"v-select__selection"},[P?y.chip?ct(Ac,{key:"chip-defaults",defaults:{VChip:{closable:o.closableChips,size:"small",text:Q.title}}},{default:()=>{var ne;return[(ne=y.chip)==null?void 0:ne.call(y,{item:Q,index:he,props:Se})]}}):ct(wE,Jo({key:"chip",closable:o.closableChips,size:"small",text:Q.title,disabled:Q.props.disabled},Se),null):((ce=y.selection)==null?void 0:ce.call(y,{item:Q,index:he}))??ct("span",{class:"v-select__selection-text"},[Q.title,o.multiple&&heo==null||b==null?-1:o.toString().toLocaleLowerCase().indexOf(b.toString().toLocaleLowerCase()),Jq=Br({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function Sge(o,b,y){var A;const T=[],G=(y==null?void 0:y.default)??Cge,V=y!=null&&y.filterKeys?xd(y.filterKeys):!1,L=Object.keys((y==null?void 0:y.customKeyFilter)??{}).length;if(!(o!=null&&o.length))return T;e:for(let s=0;sT!=null&&T.transform?im(b).map(s=>[s,T.transform(s)]):im(b));fh(()=>{const s=typeof y=="function"?y():im(y),m=typeof s!="string"&&typeof s!="number"?"":String(s),h=Sge(L.value,m,{customKeyFilter:o.customKeyFilter,default:o.customFilter,filterKeys:o.filterKeys,filterMode:o.filterMode,noFilter:o.noFilter}),l=im(b),c=[],i=new Map;h.forEach(u=>{let{index:d,matches:g}=u;const v=l[d];c.push(v),i.set(v.value,g)}),G.value=c,V.value=i});function A(s){return V.value.get(s.value)}return{filteredItems:G,filteredMatches:V,getMatches:A}}function Tge(o,b,y){if(b==null)return o;if(Array.isArray(b))throw new Error("Multiple matches is not implemented");return typeof b=="number"&&~b?ct(Uo,null,[ct("span",{class:"v-autocomplete__unmask"},[o.substr(0,b)]),ct("span",{class:"v-autocomplete__mask"},[o.substr(b,y)]),ct("span",{class:"v-autocomplete__unmask"},[o.substr(b+y)])]):o}const kge=Br({autoSelectFirst:{type:[Boolean,String]},search:String,...Jq({filterKeys:["title"]}),...Kq(),...PE(fH({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...C3({transition:!1})},"VAutocomplete"),Pse=Go()({name:"VAutocomplete",props:kge(),emits:{"update:focused":o=>!0,"update:search":o=>!0,"update:modelValue":o=>!0,"update:menu":o=>!0},setup(o,b){let{slots:y}=b;const{t:T}=L2(),G=No(),V=xa(!1),L=xa(!0),A=xa(!1),s=No(),m=No(),h=ri(o,"menu"),l=on({get:()=>h.value,set:X=>{var ye;h.value&&!X&&((ye=s.value)!=null&&ye.ΨopenChildren)||(h.value=X)}}),c=xa(-1),i=on(()=>{var X;return(X=G.value)==null?void 0:X.color}),u=on(()=>l.value?o.closeText:o.openText),{items:d,transformIn:g,transformOut:v}=zq(o),{textColorClasses:x,textColorStyles:C}=xg(i),_=ri(o,"search",""),$=ri(o,"modelValue",[],X=>g(X===null?[null]:xd(X)),X=>{const ye=v(X);return o.multiple?ye:ye[0]??null}),S=cH(),{filteredItems:O,getMatches:D}=Qq(o,d,()=>L.value?"":_.value),N=on(()=>o.hideSelected?O.value.filter(X=>!$.value.some(ye=>ye.value===X.value)):O.value),M=on(()=>$.value.map(X=>X.props.value)),k=on(()=>{var ye;return(o.autoSelectFirst===!0||o.autoSelectFirst==="exact"&&_.value===((ye=N.value[0])==null?void 0:ye.title))&&N.value.length>0&&!L.value&&!A.value}),R=on(()=>o.hideNoData&&!d.value.length||o.readonly||(S==null?void 0:S.isReadonly.value)),F=No(),{onListScroll:H,onListKeydown:j}=Yq(F,G);function P(X){o.openOnClear&&(l.value=!0),_.value=""}function ee(){R.value||(l.value=!0)}function J(X){R.value||(V.value&&(X.preventDefault(),X.stopPropagation()),l.value=!l.value)}function K(X){var $e,ke,Ne;if(o.readonly||S!=null&&S.isReadonly.value)return;const ye=G.value.selectionStart,Ce=$.value.length;if((c.value>-1||["Enter","ArrowDown","ArrowUp"].includes(X.key))&&X.preventDefault(),["Enter","ArrowDown"].includes(X.key)&&(l.value=!0),["Escape"].includes(X.key)&&(l.value=!1),k.value&&["Enter","Tab"].includes(X.key)&&fe(N.value[0]),X.key==="ArrowDown"&&k.value&&(($e=F.value)==null||$e.focus("next")),!!o.multiple){if(["Backspace","Delete"].includes(X.key)){if(c.value<0){X.key==="Backspace"&&!_.value&&(c.value=Ce-1);return}const Ve=c.value,Oe=$.value[c.value];Oe&&!Oe.props.disabled&&fe(Oe),c.value=Ve>=Ce-1?Ce-2:Ve}if(X.key==="ArrowLeft"){if(c.value<0&&ye>0)return;const Ve=c.value>-1?c.value-1:Ce-1;$.value[Ve]?c.value=Ve:(c.value=-1,G.value.setSelectionRange((ke=_.value)==null?void 0:ke.length,(Ne=_.value)==null?void 0:Ne.length))}if(X.key==="ArrowRight"){if(c.value<0)return;const Ve=c.value+1;$.value[Ve]?c.value=Ve:(c.value=-1,G.value.setSelectionRange(0,0))}}}function ae(X){_.value=X.target.value}function Q(X){if(EE(G.value,":autofill")||EE(G.value,":-webkit-autofill")){const ye=d.value.find(Ce=>Ce.title===X.target.value);ye&&fe(ye)}}function he(){var X;V.value&&(L.value=!0,(X=G.value)==null||X.focus())}function ge(X){V.value=!0,setTimeout(()=>{A.value=!0})}function Se(X){A.value=!1}function ce(X){(X==null||X===""&&!o.multiple)&&($.value=[])}const ne=xa(!1);function fe(X){if(o.multiple){const ye=$.value.findIndex(Ce=>o.valueComparator(Ce.value,X.value));if(ye===-1)$.value=[...$.value,X];else{const Ce=[...$.value];Ce.splice(ye,1),$.value=Ce}}else $.value=[X],ne.value=!0,_.value=X.title,l.value=!1,L.value=!0,Ll(()=>ne.value=!1)}return ta(V,(X,ye)=>{var Ce;X!==ye&&(X?(ne.value=!0,_.value=o.multiple?"":String(((Ce=$.value.at(-1))==null?void 0:Ce.props.title)??""),L.value=!0,Ll(()=>ne.value=!1)):(!o.multiple&&!_.value?$.value=[]:k.value&&!A.value&&!$.value.some($e=>{let{value:ke}=$e;return ke===N.value[0].value})&&fe(N.value[0]),l.value=!1,_.value="",c.value=-1))}),ta(_,X=>{!V.value||ne.value||(X&&(l.value=!0),L.value=!X)}),ta(l,()=>{if(!o.hideSelected&&l.value&&$.value.length){const X=N.value.findIndex(ye=>$.value.some(Ce=>ye.value===Ce.value));yl&&window.requestAnimationFrame(()=>{var ye;X>=0&&((ye=m.value)==null||ye.scrollToIndex(X))})}}),ga(()=>{const X=!!(o.chips||y.chip),ye=!!(!o.hideNoData||N.value.length||y["prepend-item"]||y["append-item"]||y["no-data"]),Ce=$.value.length>0,[$e]=Ep.filterProps(o);return ct(Ep,Jo({ref:G},$e,{modelValue:_.value,"onUpdate:modelValue":ce,focused:V.value,"onUpdate:focused":ke=>V.value=ke,validationValue:$.externalValue,counterValue:$.value.length,dirty:Ce,onInput:ae,onChange:Q,class:["v-autocomplete",`v-autocomplete--${o.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":l.value,"v-autocomplete--chips":!!o.chips,"v-autocomplete--selection-slot":!!y.selection,"v-autocomplete--selecting-index":c.value>-1},o.class],style:o.style,readonly:o.readonly,placeholder:Ce?void 0:o.placeholder,"onClick:clear":P,"onMousedown:control":ee,onKeydown:K}),{...y,default:()=>ct(Uo,null,[ct(O2,Jo({ref:s,modelValue:l.value,"onUpdate:modelValue":ke=>l.value=ke,activator:"parent",contentClass:"v-autocomplete__content",disabled:R.value,eager:o.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:o.transition,onAfterLeave:he},o.menuProps),{default:()=>[ye&&ct($2,{ref:F,selected:M.value,selectStrategy:o.multiple?"independent":"single-independent",onMousedown:ke=>ke.preventDefault(),onKeydown:j,onFocusin:ge,onFocusout:Se,onScrollPassive:H,tabindex:"-1",color:o.itemColor??o.color},{default:()=>{var ke,Ne,Ve;return[(ke=y["prepend-item"])==null?void 0:ke.call(y),!N.value.length&&!o.hideNoData&&(((Ne=y["no-data"])==null?void 0:Ne.call(y))??ct(fm,{title:T(o.noDataText)},null)),ct(jq,{ref:m,renderless:!0,items:N.value},{default:Oe=>{var ue;let{item:Fe,index:ie,itemRef:we}=Oe;const se=Jo(Fe.props,{ref:we,key:ie,active:k.value&&ie===0?!0:void 0,onClick:()=>fe(Fe)});return((ue=y.item)==null?void 0:ue.call(y,{item:Fe,index:ie,props:se}))??ct(fm,se,{prepend:pe=>{let{isSelected:le}=pe;return ct(Uo,null,[o.multiple&&!o.hideSelected?ct(FE,{key:Fe.value,modelValue:le,ripple:!1,tabindex:"-1"},null):void 0,Fe.props.prependIcon&&ct(js,{icon:Fe.props.prependIcon},null)])},title:()=>{var pe,le;return L.value?Fe.title:Tge(Fe.title,(pe=D(Fe))==null?void 0:pe.title,((le=_.value)==null?void 0:le.length)??0)}})}}),(Ve=y["append-item"])==null?void 0:Ve.call(y)]}})]}),$.value.map((ke,Ne)=>{var Fe;function Ve(ie){ie.stopPropagation(),ie.preventDefault(),fe(ke)}const Oe={"onClick:close":Ve,onMousedown(ie){ie.preventDefault(),ie.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0};return ct("div",{key:ke.value,class:["v-autocomplete__selection",Ne===c.value&&["v-autocomplete__selection--selected",x.value]],style:Ne===c.value?C.value:{}},[X?y.chip?ct(Ac,{key:"chip-defaults",defaults:{VChip:{closable:o.closableChips,size:"small",text:ke.title}}},{default:()=>{var ie;return[(ie=y.chip)==null?void 0:ie.call(y,{item:ke,index:Ne,props:Oe})]}}):ct(wE,Jo({key:"chip",closable:o.closableChips,size:"small",text:ke.title,disabled:ke.props.disabled},Oe),null):((Fe=y.selection)==null?void 0:Fe.call(y,{item:ke,index:Ne}))??ct("span",{class:"v-autocomplete__selection-text"},[ke.title,o.multiple&&Ne<$.value.length-1&&ct("span",{class:"v-autocomplete__selection-comma"},[ii(",")])])])})]),"append-inner":function(){var Oe;for(var ke=arguments.length,Ne=new Array(ke),Ve=0;Ve{var T;return ct("div",{class:["v-card-actions",o.class],style:o.style},[(T=y.default)==null?void 0:T.call(y)])}),{}}}),Age=NE("v-card-subtitle"),Nse=NE("v-card-title"),Mge=Br({appendAvatar:String,appendIcon:vi,prependAvatar:String,prependIcon:vi,subtitle:String,title:String,...ts(),...Lp()},"VCardItem"),Ege=Go()({name:"VCardItem",props:Mge(),setup(o,b){let{slots:y}=b;return ga(()=>{var m;const T=!!(o.prependAvatar||o.prependIcon),G=!!(T||y.prepend),V=!!(o.appendAvatar||o.appendIcon),L=!!(V||y.append),A=!!(o.title||y.title),s=!!(o.subtitle||y.subtitle);return ct("div",{class:["v-card-item",o.class],style:o.style},[G&&ct("div",{key:"prepend",class:"v-card-item__prepend"},[y.prepend?ct(Ac,{key:"prepend-defaults",disabled:!T,defaults:{VAvatar:{density:o.density,icon:o.prependIcon,image:o.prependAvatar}}},y.prepend):T&&ct(RE,{key:"prepend-avatar",density:o.density,icon:o.prependIcon,image:o.prependAvatar},null)]),ct("div",{class:"v-card-item__content"},[A&&ct(Nse,{key:"title"},{default:()=>{var h;return[((h=y.title)==null?void 0:h.call(y))??o.title]}}),s&&ct(Age,{key:"subtitle"},{default:()=>{var h;return[((h=y.subtitle)==null?void 0:h.call(y))??o.subtitle]}}),(m=y.default)==null?void 0:m.call(y)]),L&&ct("div",{key:"append",class:"v-card-item__append"},[y.append?ct(Ac,{key:"append-defaults",disabled:!V,defaults:{VAvatar:{density:o.density,icon:o.appendIcon,image:o.appendAvatar}}},y.append):V&&ct(RE,{key:"append-avatar",density:o.density,icon:o.appendIcon,image:o.appendAvatar},null)])])}),{}}}),_ge=NE("v-card-text"),Rge=Br({appendAvatar:String,appendIcon:vi,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:vi,ripple:{type:[Boolean,Object],default:!0},subtitle:String,text:String,title:String,...S3(),...ts(),...Lp(),...x3(),...Wy(),...rH(),...Nq(),...nse(),...Tg(),...sH(),...mc(),...Gc(),...D2({variant:"elevated"})},"VCard"),M3=Go()({name:"VCard",directives:{Ripple:k3},props:Rge(),setup(o,b){let{attrs:y,slots:T}=b;const{themeClasses:G}=Uu(o),{borderClasses:V}=T3(o),{colorClasses:L,colorStyles:A,variantClasses:s}=X6(o),{densityClasses:m}=L0(o),{dimensionStyles:h}=w3(o),{elevationClasses:l}=Gy(o),{loaderClasses:c}=oH(o),{locationStyles:i}=Fq(o),{positionClasses:u}=rse(o),{roundedClasses:d}=kg(o),g=aH(o,y),v=on(()=>o.link!==!1&&g.isLink.value),x=on(()=>!o.disabled&&o.link!==!1&&(o.link||g.isClickable.value));return ga(()=>{const C=v.value?"a":o.tag,_=!!(T.title||o.title),$=!!(T.subtitle||o.subtitle),S=_||$,O=!!(T.append||o.appendAvatar||o.appendIcon),D=!!(T.prepend||o.prependAvatar||o.prependIcon),N=!!(T.image||o.image),M=S||D||O,k=!!(T.text||o.text);return lu(ct(C,{class:["v-card",{"v-card--disabled":o.disabled,"v-card--flat":o.flat,"v-card--hover":o.hover&&!(o.disabled||o.flat),"v-card--link":x.value},G.value,V.value,L.value,m.value,l.value,c.value,u.value,d.value,s.value,o.class],style:[A.value,h.value,i.value,o.style],href:g.href.value,onClick:x.value&&g.navigate,tabindex:o.disabled?-1:void 0},{default:()=>{var R;return[N&&ct("div",{key:"image",class:"v-card__image"},[T.image?ct(Ac,{key:"image-defaults",disabled:!o.image,defaults:{VImg:{cover:!0,src:o.image}}},T.image):ct(Y6,{key:"image-img",cover:!0,src:o.image},null)]),ct(Bq,{name:"v-card",active:!!o.loading,color:typeof o.loading=="boolean"?void 0:o.loading},{default:T.loader}),M&&ct(Ege,{key:"item",prependAvatar:o.prependAvatar,prependIcon:o.prependIcon,title:o.title,subtitle:o.subtitle,appendAvatar:o.appendAvatar,appendIcon:o.appendIcon},{default:T.item,prepend:T.prepend,title:T.title,subtitle:T.subtitle,append:T.append}),k&&ct(_ge,{key:"text"},{default:()=>{var F;return[((F=T.text)==null?void 0:F.call(T))??o.text]}}),(R=T.default)==null?void 0:R.call(T),T.actions&&ct(Ise,null,{default:T.actions}),K6(x.value,"v-card")]}}),[[_p("ripple"),x.value&&o.ripple]])}),{}}});const qq=Symbol.for("vuetify:v-slider");function DQ(o,b,y){const T=y==="vertical",G=b.getBoundingClientRect(),V="touches"in o?o.touches[0]:o;return T?V.clientY-(G.top+G.height/2):V.clientX-(G.left+G.width/2)}function Lge(o,b){return"touches"in o&&o.touches.length?o.touches[0][b]:"changedTouches"in o&&o.changedTouches.length?o.changedTouches[0][b]:o[b]}const Fse=Br({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:o=>typeof o=="boolean"||o==="always"},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:o=>typeof o=="boolean"||o==="always"},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:o=>["vertical","horizontal"].includes(o)},reverse:Boolean,...Tg(),...Wy({elevation:2})},"Slider"),Bse=o=>{const b=on(()=>parseFloat(o.min)),y=on(()=>parseFloat(o.max)),T=on(()=>+o.step>0?parseFloat(o.step):0),G=on(()=>Math.max(Ine(T.value),Ine(b.value)));function V(L){if(L=parseFloat(L),T.value<=0)return L;const A=yg(L,b.value,y.value),s=b.value%T.value,m=Math.round((A-s)/T.value)*T.value+s;return parseFloat(Math.min(m,y.value).toFixed(G.value))}return{min:b,max:y,step:T,decimals:G,roundValue:V}},Hse=o=>{let{props:b,steps:y,onSliderStart:T,onSliderMove:G,onSliderEnd:V,getActiveThumb:L}=o;const{isRtl:A}=Sg(),s=Xo(b,"reverse"),m=on(()=>b.direction==="vertical"),h=on(()=>m.value!==s.value),{min:l,max:c,step:i,decimals:u,roundValue:d}=y,g=on(()=>parseInt(b.thumbSize,10)),v=on(()=>parseInt(b.tickSize,10)),x=on(()=>parseInt(b.trackSize,10)),C=on(()=>(c.value-l.value)/i.value),_=Xo(b,"disabled"),$=on(()=>b.error||b.disabled?void 0:b.thumbColor??b.color),S=on(()=>b.error||b.disabled?void 0:b.trackColor??b.color),O=on(()=>b.error||b.disabled?void 0:b.trackFillColor??b.color),D=xa(!1),N=xa(0),M=No(),k=No();function R(ne){var Oe;const fe=b.direction==="vertical",X=fe?"top":"left",ye=fe?"height":"width",Ce=fe?"clientY":"clientX",{[X]:$e,[ye]:ke}=(Oe=M.value)==null?void 0:Oe.$el.getBoundingClientRect(),Ne=Lge(ne,Ce);let Ve=Math.min(Math.max((Ne-$e-N.value)/ke,0),1)||0;return(fe?h.value:h.value!==A.value)&&(Ve=1-Ve),d(l.value+Ve*(c.value-l.value))}const F=ne=>{V({value:R(ne)}),D.value=!1,N.value=0},H=ne=>{k.value=L(ne),k.value&&(k.value.focus(),D.value=!0,k.value.contains(ne.target)?N.value=DQ(ne,k.value,b.direction):(N.value=0,G({value:R(ne)})),T({value:R(ne)}))},j={passive:!0,capture:!0};function P(ne){G({value:R(ne)})}function ee(ne){ne.stopPropagation(),ne.preventDefault(),F(ne),window.removeEventListener("mousemove",P,j),window.removeEventListener("mouseup",ee)}function J(ne){var fe;F(ne),window.removeEventListener("touchmove",P,j),(fe=ne.target)==null||fe.removeEventListener("touchend",J)}function K(ne){var fe;H(ne),window.addEventListener("touchmove",P,j),(fe=ne.target)==null||fe.addEventListener("touchend",J,{passive:!1})}function ae(ne){ne.preventDefault(),H(ne),window.addEventListener("mousemove",P,j),window.addEventListener("mouseup",ee,{passive:!1})}const Q=ne=>{const fe=(ne-l.value)/(c.value-l.value)*100;return yg(isNaN(fe)?0:fe,0,100)},he=Xo(b,"showTicks"),ge=on(()=>he.value?b.ticks?Array.isArray(b.ticks)?b.ticks.map(ne=>({value:ne,position:Q(ne),label:ne.toString()})):Object.keys(b.ticks).map(ne=>({value:parseFloat(ne),position:Q(parseFloat(ne)),label:b.ticks[ne]})):C.value!==1/0?AE(C.value+1).map(ne=>{const fe=l.value+ne*i.value;return{value:fe,position:Q(fe)}}):[]:[]),Se=on(()=>ge.value.some(ne=>{let{label:fe}=ne;return!!fe})),ce={activeThumbRef:k,color:Xo(b,"color"),decimals:u,disabled:_,direction:Xo(b,"direction"),elevation:Xo(b,"elevation"),hasLabels:Se,isReversed:s,indexFromEnd:h,min:l,max:c,mousePressed:D,numTicks:C,onSliderMousedown:ae,onSliderTouchstart:K,parsedTicks:ge,parseMouseMove:R,position:Q,readonly:Xo(b,"readonly"),rounded:Xo(b,"rounded"),roundValue:d,showTicks:he,startOffset:N,step:i,thumbSize:g,thumbColor:$,thumbLabel:Xo(b,"thumbLabel"),ticks:Xo(b,"ticks"),tickSize:v,trackColor:S,trackContainerRef:M,trackFillColor:O,trackSize:x,vertical:m};return Gl(qq,ce),ce},Dge=Br({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},...ts()},"VSliderThumb"),$Q=Go()({name:"VSliderThumb",directives:{Ripple:k3},props:Dge(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y,emit:T}=b;const G=ni(qq),{isRtl:V,rtlClasses:L}=Sg();if(!G)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{thumbColor:A,step:s,disabled:m,thumbSize:h,thumbLabel:l,direction:c,isReversed:i,vertical:u,readonly:d,elevation:g,mousePressed:v,decimals:x,indexFromEnd:C}=G,{textColorClasses:_,textColorStyles:$}=xg(A),{pageup:S,pagedown:O,end:D,home:N,left:M,right:k,down:R,up:F}=Cde,H=[S,O,D,N,M,k,R,F],j=on(()=>s.value?[1,2,3]:[1,5,10]);function P(J,K){if(!H.includes(J.key))return;J.preventDefault();const ae=s.value||.1,Q=(o.max-o.min)/ae;if([M,k,R,F].includes(J.key)){const ge=(u.value?[V.value?M:k,i.value?R:F]:C.value!==V.value?[M,F]:[k,F]).includes(J.key)?1:-1,Se=J.shiftKey?2:J.ctrlKey?1:0;K=K+ge*ae*j.value[Se]}else if(J.key===N)K=o.min;else if(J.key===D)K=o.max;else{const he=J.key===O?1:-1;K=K-he*ae*(Q>100?Q/10:10)}return Math.max(o.min,Math.min(o.max,K))}function ee(J){const K=P(J,o.modelValue);K!=null&&T("update:modelValue",K)}return ga(()=>{const J=ra(C.value?100-o.position:o.position,"%"),{elevationClasses:K}=Gy(on(()=>m.value?void 0:g.value));return ct("div",{class:["v-slider-thumb",{"v-slider-thumb--focused":o.focused,"v-slider-thumb--pressed":o.focused&&v.value},o.class,L.value],style:[{"--v-slider-thumb-position":J,"--v-slider-thumb-size":ra(h.value)},o.style],role:"slider",tabindex:m.value?-1:0,"aria-valuemin":o.min,"aria-valuemax":o.max,"aria-valuenow":o.modelValue,"aria-readonly":!!d.value,"aria-orientation":c.value,onKeydown:d.value?void 0:ee},[ct("div",{class:["v-slider-thumb__surface",_.value,K.value],style:{...$.value}},null),lu(ct("div",{class:["v-slider-thumb__ripple",_.value],style:$.value},null),[[_p("ripple"),o.ripple,null,{circle:!0,center:!0}]]),ct(The,{origin:"bottom center"},{default:()=>{var ae;return[lu(ct("div",{class:"v-slider-thumb__label-container"},[ct("div",{class:["v-slider-thumb__label"]},[ct("div",null,[((ae=y["thumb-label"])==null?void 0:ae.call(y,{modelValue:o.modelValue}))??o.modelValue.toFixed(s.value?x.value:1)])])]),[[R2,l.value&&o.focused||l.value==="always"]])]}})])}),{}}});const $ge=Br({start:{type:Number,required:!0},stop:{type:Number,required:!0},...ts()},"VSliderTrack"),zse=Go()({name:"VSliderTrack",props:$ge(),emits:{},setup(o,b){let{slots:y}=b;const T=ni(qq);if(!T)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:G,parsedTicks:V,rounded:L,showTicks:A,tickSize:s,trackColor:m,trackFillColor:h,trackSize:l,vertical:c,min:i,max:u,indexFromEnd:d}=T,{roundedClasses:g}=kg(L),{backgroundColorClasses:v,backgroundColorStyles:x}=wg(h),{backgroundColorClasses:C,backgroundColorStyles:_}=wg(m),$=on(()=>`inset-${c.value?"block":"inline"}-${d.value?"end":"start"}`),S=on(()=>c.value?"height":"width"),O=on(()=>({[$.value]:"0%",[S.value]:"100%"})),D=on(()=>o.stop-o.start),N=on(()=>({[$.value]:ra(o.start,"%"),[S.value]:ra(D.value,"%")})),M=on(()=>A.value?(c.value?V.value.slice().reverse():V.value).map((R,F)=>{var j;const H=R.value!==i.value&&R.value!==u.value?ra(R.position,"%"):void 0;return ct("div",{key:R.value,class:["v-slider-track__tick",{"v-slider-track__tick--filled":R.position>=o.start&&R.position<=o.stop,"v-slider-track__tick--first":R.value===i.value,"v-slider-track__tick--last":R.value===u.value}],style:{[$.value]:H}},[(R.label||y["tick-label"])&&ct("div",{class:"v-slider-track__tick-label"},[((j=y["tick-label"])==null?void 0:j.call(y,{tick:R,index:F}))??R.label])])}):[]);return ga(()=>ct("div",{class:["v-slider-track",g.value,o.class],style:[{"--v-slider-track-size":ra(l.value),"--v-slider-tick-size":ra(s.value)},o.style]},[ct("div",{class:["v-slider-track__background",C.value,{"v-slider-track__background--opacity":!!G.value||!h.value}],style:{...O.value,..._.value}},null),ct("div",{class:["v-slider-track__fill",v.value],style:{...N.value,...x.value}},null),A.value&&ct("div",{class:["v-slider-track__ticks",{"v-slider-track__ticks--always-show":A.value==="always"}]},[M.value])])),{}}}),Oge=Br({...lH(),...Fse(),...e$(),modelValue:{type:[Number,String],default:0}},"VSlider"),Vse=Go()({name:"VSlider",props:Oge(),emits:{"update:focused":o=>!0,"update:modelValue":o=>!0,start:o=>!0,end:o=>!0},setup(o,b){let{slots:y,emit:T}=b;const G=No(),{rtlClasses:V}=Sg(),L=Bse(o),A=ri(o,"modelValue",void 0,S=>L.roundValue(S??L.min.value)),{min:s,max:m,mousePressed:h,roundValue:l,onSliderMousedown:c,onSliderTouchstart:i,trackContainerRef:u,position:d,hasLabels:g,readonly:v}=Hse({props:o,steps:L,onSliderStart:()=>{T("start",A.value)},onSliderEnd:S=>{let{value:O}=S;const D=l(O);A.value=D,T("end",D)},onSliderMove:S=>{let{value:O}=S;return A.value=l(O)},getActiveThumb:()=>{var S;return(S=G.value)==null?void 0:S.$el}}),{isFocused:x,focus:C,blur:_}=q6(o),$=on(()=>d(A.value));return ga(()=>{const[S,O]=_2.filterProps(o),D=!!(o.label||y.label||y.prepend);return ct(_2,Jo({class:["v-slider",{"v-slider--has-labels":!!y["tick-label"]||g.value,"v-slider--focused":x.value,"v-slider--pressed":h.value,"v-slider--disabled":o.disabled},V.value,o.class],style:o.style},S,{focused:x.value}),{...y,prepend:D?N=>{var M,k;return ct(Uo,null,[((M=y.label)==null?void 0:M.call(y,N))??(o.label?ct(iH,{id:N.id.value,class:"v-slider__label",text:o.label},null):void 0),(k=y.prepend)==null?void 0:k.call(y,N)])}:void 0,default:N=>{let{id:M,messagesId:k}=N;return ct("div",{class:"v-slider__container",onMousedown:v.value?void 0:c,onTouchstartPassive:v.value?void 0:i},[ct("input",{id:M.value,name:o.name||M.value,disabled:!!o.disabled,readonly:!!o.readonly,tabindex:"-1",value:A.value},null),ct(zse,{ref:u,start:0,stop:$.value},{"tick-label":y["tick-label"]}),ct($Q,{ref:G,"aria-describedby":k.value,focused:x.value,min:s.value,max:m.value,modelValue:A.value,"onUpdate:modelValue":R=>A.value=R,position:$.value,elevation:o.elevation,onFocus:C,onBlur:_},{"thumb-label":y["thumb-label"]})])}})}),{}}});function Pge(o,b,y){if(b==null)return o;if(Array.isArray(b))throw new Error("Multiple matches is not implemented");return typeof b=="number"&&~b?ct(Uo,null,[ct("span",{class:"v-combobox__unmask"},[o.substr(0,b)]),ct("span",{class:"v-combobox__mask"},[o.substr(b,y)]),ct("span",{class:"v-combobox__unmask"},[o.substr(b+y)])]):o}const Ige=Br({autoSelectFirst:{type:[Boolean,String]},delimiters:Array,...Jq({filterKeys:["title"]}),...Kq({hideNoData:!0,returnObject:!0}),...PE(fH({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...C3({transition:!1})},"VCombobox"),Use=Go()({name:"VCombobox",props:Ige(),emits:{"update:focused":o=>!0,"update:modelValue":o=>!0,"update:search":o=>!0,"update:menu":o=>!0},setup(o,b){var X;let{emit:y,slots:T}=b;const{t:G}=L2(),V=No(),L=xa(!1),A=xa(!0),s=xa(!1),m=No(),h=No(),l=ri(o,"menu"),c=on({get:()=>l.value,set:ye=>{var Ce;l.value&&!ye&&((Ce=m.value)!=null&&Ce.ΨopenChildren)||(l.value=ye)}}),i=xa(-1);let u=!1;const d=on(()=>{var ye;return(ye=V.value)==null?void 0:ye.color}),g=on(()=>c.value?o.closeText:o.openText),{items:v,transformIn:x,transformOut:C}=zq(o),{textColorClasses:_,textColorStyles:$}=xg(d),S=ri(o,"modelValue",[],ye=>x(xd(ye)),ye=>{const Ce=C(ye);return o.multiple?Ce:Ce[0]??null}),O=cH(),D=xa(o.multiple?"":((X=S.value[0])==null?void 0:X.title)??""),N=on({get:()=>D.value,set:ye=>{var Ce;if(D.value=ye,o.multiple||(S.value=[h3(o,ye)]),ye&&o.multiple&&((Ce=o.delimiters)!=null&&Ce.length)){const $e=ye.split(new RegExp(`(?:${o.delimiters.join("|")})+`));$e.length>1&&($e.forEach(ke=>{ke=ke.trim(),ke&&Se(h3(o,ke))}),D.value="")}ye||(i.value=-1),A.value=!ye}});ta(D,ye=>{u?Ll(()=>u=!1):L.value&&!c.value&&(c.value=!0),y("update:search",ye)}),ta(S,ye=>{var Ce;o.multiple||(D.value=((Ce=ye[0])==null?void 0:Ce.title)??"")});const{filteredItems:M,getMatches:k}=Qq(o,v,()=>A.value?"":N.value),R=on(()=>o.hideSelected?M.value.filter(ye=>!S.value.some(Ce=>Ce.value===ye.value)):M.value),F=on(()=>S.value.map(ye=>ye.value)),H=on(()=>{var Ce;return(o.autoSelectFirst===!0||o.autoSelectFirst==="exact"&&N.value===((Ce=R.value[0])==null?void 0:Ce.title))&&R.value.length>0&&!A.value&&!s.value}),j=on(()=>o.hideNoData&&!v.value.length||o.readonly||(O==null?void 0:O.isReadonly.value)),P=No(),{onListScroll:ee,onListKeydown:J}=Yq(P,V);function K(ye){u=!0,o.openOnClear&&(c.value=!0)}function ae(){j.value||(c.value=!0)}function Q(ye){j.value||(L.value&&(ye.preventDefault(),ye.stopPropagation()),c.value=!c.value)}function he(ye){var ke;if(o.readonly||O!=null&&O.isReadonly.value)return;const Ce=V.value.selectionStart,$e=S.value.length;if((i.value>-1||["Enter","ArrowDown","ArrowUp"].includes(ye.key))&&ye.preventDefault(),["Enter","ArrowDown"].includes(ye.key)&&(c.value=!0),["Escape"].includes(ye.key)&&(c.value=!1),["Enter","Escape","Tab"].includes(ye.key)&&(H.value&&["Enter","Tab"].includes(ye.key)&&Se(M.value[0]),A.value=!0),ye.key==="ArrowDown"&&H.value&&((ke=P.value)==null||ke.focus("next")),!!o.multiple){if(["Backspace","Delete"].includes(ye.key)){if(i.value<0){ye.key==="Backspace"&&!N.value&&(i.value=$e-1);return}const Ne=i.value,Ve=S.value[i.value];Ve&&!Ve.props.disabled&&Se(Ve),i.value=Ne>=$e-1?$e-2:Ne}if(ye.key==="ArrowLeft"){if(i.value<0&&Ce>0)return;const Ne=i.value>-1?i.value-1:$e-1;S.value[Ne]?i.value=Ne:(i.value=-1,V.value.setSelectionRange(N.value.length,N.value.length))}if(ye.key==="ArrowRight"){if(i.value<0)return;const Ne=i.value+1;S.value[Ne]?i.value=Ne:(i.value=-1,V.value.setSelectionRange(0,0))}ye.key==="Enter"&&N.value&&(Se(h3(o,N.value)),N.value="")}}function ge(){var ye;L.value&&(A.value=!0,(ye=V.value)==null||ye.focus())}function Se(ye){if(o.multiple){const Ce=S.value.findIndex($e=>o.valueComparator($e.value,ye.value));if(Ce===-1)S.value=[...S.value,ye];else{const $e=[...S.value];$e.splice(Ce,1),S.value=$e}N.value=""}else S.value=[ye],D.value=ye.title,Ll(()=>{c.value=!1,A.value=!0})}function ce(ye){L.value=!0,setTimeout(()=>{s.value=!0})}function ne(ye){s.value=!1}function fe(ye){(ye==null||ye===""&&!o.multiple)&&(S.value=[])}return ta(M,ye=>{!ye.length&&o.hideNoData&&(c.value=!1)}),ta(L,(ye,Ce)=>{ye||ye===Ce||(i.value=-1,c.value=!1,H.value&&!s.value&&!S.value.some($e=>{let{value:ke}=$e;return ke===R.value[0].value})?Se(R.value[0]):o.multiple&&N.value&&(S.value=[...S.value,h3(o,N.value)],N.value=""))}),ta(c,()=>{if(!o.hideSelected&&c.value&&S.value.length){const ye=R.value.findIndex(Ce=>S.value.some($e=>o.valueComparator($e.value,Ce.value)));yl&&window.requestAnimationFrame(()=>{var Ce;ye>=0&&((Ce=h.value)==null||Ce.scrollToIndex(ye))})}}),ga(()=>{const ye=!!(o.chips||T.chip),Ce=!!(!o.hideNoData||R.value.length||T["prepend-item"]||T["append-item"]||T["no-data"]),$e=S.value.length>0,[ke]=Ep.filterProps(o);return ct(Ep,Jo({ref:V},ke,{modelValue:N.value,"onUpdate:modelValue":[Ne=>N.value=Ne,fe],focused:L.value,"onUpdate:focused":Ne=>L.value=Ne,validationValue:S.externalValue,counterValue:o.multiple?S.value.length:N.value.length,dirty:$e,class:["v-combobox",{"v-combobox--active-menu":c.value,"v-combobox--chips":!!o.chips,"v-combobox--selection-slot":!!T.selection,"v-combobox--selecting-index":i.value>-1,[`v-combobox--${o.multiple?"multiple":"single"}`]:!0},o.class],style:o.style,readonly:o.readonly,placeholder:$e?void 0:o.placeholder,"onClick:clear":K,"onMousedown:control":ae,onKeydown:he}),{...T,default:()=>ct(Uo,null,[ct(O2,Jo({ref:m,modelValue:c.value,"onUpdate:modelValue":Ne=>c.value=Ne,activator:"parent",contentClass:"v-combobox__content",disabled:j.value,eager:o.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:o.transition,onAfterLeave:ge},o.menuProps),{default:()=>[Ce&&ct($2,{ref:P,selected:F.value,selectStrategy:o.multiple?"independent":"single-independent",onMousedown:Ne=>Ne.preventDefault(),onKeydown:J,onFocusin:ce,onFocusout:ne,onScrollPassive:ee,tabindex:"-1",color:o.itemColor??o.color},{default:()=>{var Ne,Ve,Oe;return[(Ne=T["prepend-item"])==null?void 0:Ne.call(T),!R.value.length&&!o.hideNoData&&(((Ve=T["no-data"])==null?void 0:Ve.call(T))??ct(fm,{title:G(o.noDataText)},null)),ct(jq,{ref:h,renderless:!0,items:R.value},{default:Fe=>{var pe;let{item:ie,index:we,itemRef:se}=Fe;const ue=Jo(ie.props,{ref:se,key:we,active:H.value&&we===0?!0:void 0,onClick:()=>Se(ie)});return((pe=T.item)==null?void 0:pe.call(T,{item:ie,index:we,props:ue}))??ct(fm,ue,{prepend:le=>{let{isSelected:Te}=le;return ct(Uo,null,[o.multiple&&!o.hideSelected?ct(FE,{key:ie.value,modelValue:Te,ripple:!1,tabindex:"-1"},null):void 0,ie.props.prependIcon&&ct(js,{icon:ie.props.prependIcon},null)])},title:()=>{var le,Te;return A.value?ie.title:Pge(ie.title,(le=k(ie))==null?void 0:le.title,((Te=N.value)==null?void 0:Te.length)??0)}})}}),(Oe=T["append-item"])==null?void 0:Oe.call(T)]}})]}),S.value.map((Ne,Ve)=>{var ie;function Oe(we){we.stopPropagation(),we.preventDefault(),Se(Ne)}const Fe={"onClick:close":Oe,onMousedown(we){we.preventDefault(),we.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0};return ct("div",{key:Ne.value,class:["v-combobox__selection",Ve===i.value&&["v-combobox__selection--selected",_.value]],style:Ve===i.value?$.value:{}},[ye?T.chip?ct(Ac,{key:"chip-defaults",defaults:{VChip:{closable:o.closableChips,size:"small",text:Ne.title}}},{default:()=>{var we;return[(we=T.chip)==null?void 0:we.call(T,{item:Ne,index:Ve,props:Fe})]}}):ct(wE,Jo({key:"chip",closable:o.closableChips,size:"small",text:Ne.title,disabled:Ne.props.disabled},Fe),null):((ie=T.selection)==null?void 0:ie.call(T,{item:Ne,index:Ve}))??ct("span",{class:"v-combobox__selection-text"},[Ne.title,o.multiple&&Ve!0},setup(o,b){let{slots:y}=b;const T=ri(o,"modelValue"),{scopeId:G}=Uq(),V=No();function L(s){var l,c;const m=s.relatedTarget,h=s.target;if(m!==h&&((l=V.value)!=null&&l.contentEl)&&((c=V.value)!=null&&c.globalTop)&&![document,V.value.contentEl].includes(h)&&!V.value.contentEl.contains(h)){const i=wB(V.value.contentEl);if(!i.length)return;const u=i[0],d=i[i.length-1];m===u?d.focus():u.focus()}}yl&&ta(()=>T.value&&o.retainFocus,s=>{s?document.addEventListener("focusin",L):document.removeEventListener("focusin",L)},{immediate:!0}),ta(T,async s=>{var m,h;await Ll(),s?(m=V.value.contentEl)==null||m.focus({preventScroll:!0}):(h=V.value.activatorEl)==null||h.focus({preventScroll:!0})});const A=on(()=>Jo({"aria-haspopup":"dialog","aria-expanded":String(T.value)},o.activatorProps));return ga(()=>{const[s]=LB.filterProps(o);return ct(LB,Jo({ref:V,class:["v-dialog",{"v-dialog--fullscreen":o.fullscreen,"v-dialog--scrollable":o.scrollable},o.class],style:o.style},s,{modelValue:T.value,"onUpdate:modelValue":m=>T.value=m,"aria-modal":"true",activatorProps:A.value,role:"dialog"},G),{activator:y.activator,default:function(){for(var m=arguments.length,h=new Array(m),l=0;l{var c;return[(c=y.default)==null?void 0:c.call(y,...h)]}})}})}),A3({},V)}});const z6=Symbol.for("vuetify:v-expansion-panel"),Bge=["default","accordion","inset","popout"],Hge=Br({color:String,variant:{type:String,default:"default",validator:o=>Bge.includes(o)},readonly:Boolean,...ts(),...$q(),...mc(),...Gc()},"VExpansionPanels"),Wse=Go()({name:"VExpansionPanels",props:Hge(),emits:{"update:modelValue":o=>!0},setup(o,b){let{slots:y}=b;Iq(o,z6);const{themeClasses:T}=Uu(o),G=on(()=>o.variant&&`v-expansion-panels--variant-${o.variant}`);return R0({VExpansionPanel:{color:Xo(o,"color")},VExpansionPanelTitle:{readonly:Xo(o,"readonly")}}),ga(()=>ct(o.tag,{class:["v-expansion-panels",T.value,G.value,o.class],style:o.style},y)),{}}}),zge=Br({...ts(),...Vq()},"VExpansionPanelText"),eee=Go()({name:"VExpansionPanelText",props:zge(),setup(o,b){let{slots:y}=b;const T=ni(z6);if(!T)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:G,onAfterLeave:V}=Rse(o,T.isSelected);return ga(()=>ct(_q,{onAfterLeave:V},{default:()=>{var L;return[lu(ct("div",{class:["v-expansion-panel-text",o.class],style:o.style},[y.default&&G.value&&ct("div",{class:"v-expansion-panel-text__wrapper"},[(L=y.default)==null?void 0:L.call(y)])]),[[R2,T.isSelected.value]])]}})),{}}}),Gse=Br({color:String,expandIcon:{type:vi,default:"$expand"},collapseIcon:{type:vi,default:"$collapse"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...ts()},"VExpansionPanelTitle"),tee=Go()({name:"VExpansionPanelTitle",directives:{Ripple:k3},props:Gse(),setup(o,b){let{slots:y}=b;const T=ni(z6);if(!T)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:G,backgroundColorStyles:V}=wg(o,"color"),L=on(()=>({collapseIcon:o.collapseIcon,disabled:T.disabled.value,expanded:T.isSelected.value,expandIcon:o.expandIcon,readonly:o.readonly}));return ga(()=>{var A;return lu(ct("button",{class:["v-expansion-panel-title",{"v-expansion-panel-title--active":T.isSelected.value},G.value,o.class],style:[V.value,o.style],type:"button",tabindex:T.disabled.value?-1:void 0,disabled:T.disabled.value,"aria-expanded":T.isSelected.value,onClick:o.readonly?void 0:T.toggle},[ct("span",{class:"v-expansion-panel-title__overlay"},null),(A=y.default)==null?void 0:A.call(y,L.value),!o.hideActions&&ct("span",{class:"v-expansion-panel-title__icon"},[y.actions?y.actions(L.value):ct(js,{icon:T.isSelected.value?o.collapseIcon:o.expandIcon},null)])]),[[_p("ripple"),o.ripple]])}),{}}}),Vge=Br({title:String,text:String,bgColor:String,...ts(),...Wy(),...Oq(),...Vq(),...Tg(),...mc(),...Gse()},"VExpansionPanel"),Zse=Go()({name:"VExpansionPanel",props:Vge(),emits:{"group:selected":o=>!0},setup(o,b){let{slots:y}=b;const T=Pq(o,z6),{backgroundColorClasses:G,backgroundColorStyles:V}=wg(o,"bgColor"),{elevationClasses:L}=Gy(o),{roundedClasses:A}=kg(o),s=on(()=>(T==null?void 0:T.disabled.value)||o.disabled),m=on(()=>T.group.items.value.reduce((c,i,u)=>(T.group.selected.value.includes(i.id)&&c.push(u),c),[])),h=on(()=>{const c=T.group.items.value.findIndex(i=>i.id===T.id);return!T.isSelected.value&&m.value.some(i=>i-c===1)}),l=on(()=>{const c=T.group.items.value.findIndex(i=>i.id===T.id);return!T.isSelected.value&&m.value.some(i=>i-c===-1)});return Gl(z6,T),R0({VExpansionPanelText:{eager:Xo(o,"eager")}}),ga(()=>{const c=!!(y.text||o.text),i=!!(y.title||o.title);return ct(o.tag,{class:["v-expansion-panel",{"v-expansion-panel--active":T.isSelected.value,"v-expansion-panel--before-active":h.value,"v-expansion-panel--after-active":l.value,"v-expansion-panel--disabled":s.value},A.value,G.value,o.class],style:[V.value,o.style]},{default:()=>{var u;return[ct("div",{class:["v-expansion-panel__shadow",...L.value]},null),i&&ct(tee,{key:"title",collapseIcon:o.collapseIcon,color:o.color,expandIcon:o.expandIcon,hideActions:o.hideActions,ripple:o.ripple},{default:()=>[y.title?y.title():o.title]}),c&&ct(eee,{key:"text"},{default:()=>[y.text?y.text():o.text]}),(u=y.default)==null?void 0:u.call(y)]}})}),{}}});const Uge=Br({fluid:{type:Boolean,default:!1},...ts(),...mc()},"VContainer"),V6=Go()({name:"VContainer",props:Uge(),setup(o,b){let{slots:y}=b;const{rtlClasses:T}=Sg();return ga(()=>ct(o.tag,{class:["v-container",{"v-container--fluid":o.fluid},T.value,o.class],style:o.style},y)),{}}}),jse=(()=>uH.reduce((o,b)=>(o[b]={type:[Boolean,String,Number],default:!1},o),{}))(),Yse=(()=>uH.reduce((o,b)=>{const y="offset"+_0(b);return o[y]={type:[String,Number],default:null},o},{}))(),Kse=(()=>uH.reduce((o,b)=>{const y="order"+_0(b);return o[y]={type:[String,Number],default:null},o},{}))(),Are={col:Object.keys(jse),offset:Object.keys(Yse),order:Object.keys(Kse)};function Wge(o,b,y){let T=o;if(!(y==null||y===!1)){if(b){const G=b.replace(o,"");T+=`-${G}`}return o==="col"&&(T="v-"+T),o==="col"&&(y===""||y===!0)||(T+=`-${y}`),T.toLowerCase()}}const Gge=["auto","start","end","center","baseline","stretch"],Zge=Br({cols:{type:[Boolean,String,Number],default:!1},...jse,offset:{type:[String,Number],default:null},...Yse,order:{type:[String,Number],default:null},...Kse,alignSelf:{type:String,default:null,validator:o=>Gge.includes(o)},...ts(),...mc()},"VCol"),kp=Go()({name:"VCol",props:Zge(),setup(o,b){let{slots:y}=b;const T=on(()=>{const G=[];let V;for(V in Are)Are[V].forEach(A=>{const s=o[A],m=Wge(V,A,s);m&&G.push(m)});const L=G.some(A=>A.startsWith("v-col-"));return G.push({"v-col":!L||!o.cols,[`v-col-${o.cols}`]:o.cols,[`offset-${o.offset}`]:o.offset,[`order-${o.order}`]:o.order,[`align-self-${o.alignSelf}`]:o.alignSelf}),G});return()=>{var G;return um(o.tag,{class:[T.value,o.class],style:o.style},(G=y.default)==null?void 0:G.call(y))}}}),nee=["start","end","center"],Xse=["space-between","space-around","space-evenly"];function ree(o,b){return uH.reduce((y,T)=>{const G=o+_0(T);return y[G]=b(),y},{})}const jge=[...nee,"baseline","stretch"],Jse=o=>jge.includes(o),Qse=ree("align",()=>({type:String,default:null,validator:Jse})),Yge=[...nee,...Xse],qse=o=>Yge.includes(o),eie=ree("justify",()=>({type:String,default:null,validator:qse})),Kge=[...nee,...Xse,"stretch"],tie=o=>Kge.includes(o),nie=ree("alignContent",()=>({type:String,default:null,validator:tie})),Mre={align:Object.keys(Qse),justify:Object.keys(eie),alignContent:Object.keys(nie)},Xge={align:"align",justify:"justify",alignContent:"align-content"};function Jge(o,b,y){let T=Xge[o];if(y!=null){if(b){const G=b.replace(o,"");T+=`-${G}`}return T+=`-${y}`,T.toLowerCase()}}const Qge=Br({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:Jse},...Qse,justify:{type:String,default:null,validator:qse},...eie,alignContent:{type:String,default:null,validator:tie},...nie,...ts(),...mc()},"VRow"),sm=Go()({name:"VRow",props:Qge(),setup(o,b){let{slots:y}=b;const T=on(()=>{const G=[];let V;for(V in Mre)Mre[V].forEach(L=>{const A=o[L],s=Jge(V,L,A);s&&G.push(s)});return G.push({"v-row--no-gutters":o.noGutters,"v-row--dense":o.dense,[`align-${o.align}`]:o.align,[`justify-${o.justify}`]:o.justify,[`align-content-${o.alignContent}`]:o.alignContent}),G});return()=>{var G;return um(o.tag,{class:["v-row",T.value,o.class],style:o.style},(G=y.default)==null?void 0:G.call(y))}}}),rie=NE("v-spacer","div","VSpacer");const qge=Br({scrollable:Boolean,...ts(),...mc({tag:"main"})},"VMain"),epe=Go()({name:"VMain",props:qge(),setup(o,b){let{slots:y}=b;const{mainStyles:T}=she(),{ssrBootStyles:G}=Dq();return ga(()=>ct(o.tag,{class:["v-main",{"v-main--scrollable":o.scrollable},o.class],style:[T.value,G.value,o.style]},{default:()=>{var V,L;return[o.scrollable?ct("div",{class:"v-main__scroller"},[(V=y.default)==null?void 0:V.call(y)]):(L=y.default)==null?void 0:L.call(y)]}})),{}}}),tpe=Br({...lH(),...e$(),...Fse(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),oie=Go()({name:"VRangeSlider",props:tpe(),emits:{"update:focused":o=>!0,"update:modelValue":o=>!0,end:o=>!0,start:o=>!0},setup(o,b){let{slots:y,emit:T}=b;const G=No(),V=No(),L=No(),{rtlClasses:A}=Sg();function s(N){if(!G.value||!V.value)return;const M=DQ(N,G.value.$el,o.direction),k=DQ(N,V.value.$el,o.direction),R=Math.abs(M),F=Math.abs(k);return RN!=null&&N.length?N.map(M=>m.roundValue(M)):[0,0]),{activeThumbRef:l,hasLabels:c,max:i,min:u,mousePressed:d,onSliderMousedown:g,onSliderTouchstart:v,position:x,trackContainerRef:C}=Hse({props:o,steps:m,onSliderStart:()=>{T("start",h.value)},onSliderEnd:N=>{var R;let{value:M}=N;const k=l.value===((R=G.value)==null?void 0:R.$el)?[M,h.value[1]]:[h.value[0],M];!o.strict&&k[0]{var F,H,j,P;let{value:M}=N;const[k,R]=h.value;!o.strict&&k===R&&k!==u.value&&(l.value=M>k?(F=V.value)==null?void 0:F.$el:(H=G.value)==null?void 0:H.$el,(j=l.value)==null||j.focus()),l.value===((P=G.value)==null?void 0:P.$el)?h.value=[Math.min(M,R),R]:h.value=[k,Math.max(k,M)]},getActiveThumb:s}),{isFocused:_,focus:$,blur:S}=q6(o),O=on(()=>x(h.value[0])),D=on(()=>x(h.value[1]));return ga(()=>{const[N,M]=_2.filterProps(o),k=!!(o.label||y.label||y.prepend);return ct(_2,Jo({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!y["tick-label"]||c.value,"v-slider--focused":_.value,"v-slider--pressed":d.value,"v-slider--disabled":o.disabled},A.value,o.class],style:o.style,ref:L},N,{focused:_.value}),{...y,prepend:k?R=>{var F,H;return ct(Uo,null,[((F=y.label)==null?void 0:F.call(y,R))??(o.label?ct(iH,{class:"v-slider__label",text:o.label},null):void 0),(H=y.prepend)==null?void 0:H.call(y,R)])}:void 0,default:R=>{var j,P;let{id:F,messagesId:H}=R;return ct("div",{class:"v-slider__container",onMousedown:g,onTouchstartPassive:v},[ct("input",{id:`${F.value}_start`,name:o.name||F.value,disabled:!!o.disabled,readonly:!!o.readonly,tabindex:"-1",value:h.value[0]},null),ct("input",{id:`${F.value}_stop`,name:o.name||F.value,disabled:!!o.disabled,readonly:!!o.readonly,tabindex:"-1",value:h.value[1]},null),ct(zse,{ref:C,start:O.value,stop:D.value},{"tick-label":y["tick-label"]}),ct($Q,{ref:G,"aria-describedby":H.value,focused:_&&l.value===((j=G.value)==null?void 0:j.$el),modelValue:h.value[0],"onUpdate:modelValue":ee=>h.value=[ee,h.value[1]],onFocus:ee=>{var J,K,ae,Q;$(),l.value=(J=G.value)==null?void 0:J.$el,h.value[0]===h.value[1]&&h.value[1]===u.value&&ee.relatedTarget!==((K=V.value)==null?void 0:K.$el)&&((ae=G.value)==null||ae.$el.blur(),(Q=V.value)==null||Q.$el.focus())},onBlur:()=>{S(),l.value=void 0},min:u.value,max:h.value[1],position:O.value},{"thumb-label":y["thumb-label"]}),ct($Q,{ref:V,"aria-describedby":H.value,focused:_&&l.value===((P=V.value)==null?void 0:P.$el),modelValue:h.value[1],"onUpdate:modelValue":ee=>h.value=[h.value[0],ee],onFocus:ee=>{var J,K,ae,Q;$(),l.value=(J=V.value)==null?void 0:J.$el,h.value[0]===h.value[1]&&h.value[0]===i.value&&ee.relatedTarget!==((K=G.value)==null?void 0:K.$el)&&((ae=V.value)==null||ae.$el.blur(),(Q=G.value)==null||Q.$el.focus())},onBlur:()=>{S(),l.value=void 0},min:h.value[0],max:i.value,position:D.value},{"thumb-label":y["thumb-label"]})])}})}),{}}});const aie=Br({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,...ts(),...Lp(),...mc(),...Gc()},"VTable"),Ere=Go()({name:"VTable",props:aie(),setup(o,b){let{slots:y}=b;const{themeClasses:T}=Uu(o),{densityClasses:G}=L0(o);return ga(()=>ct(o.tag,{class:["v-table",{"v-table--fixed-height":!!o.height,"v-table--fixed-header":o.fixedHeader,"v-table--fixed-footer":o.fixedFooter,"v-table--has-top":!!y.top,"v-table--has-bottom":!!y.bottom,"v-table--hover":o.hover},T.value,G.value,o.class],style:o.style},{default:()=>{var V,L,A;return[(V=y.top)==null?void 0:V.call(y),y.default?ct("div",{class:"v-table__wrapper",style:{height:ra(o.height)}},[ct("table",null,[y.default()])]):(L=y.wrapper)==null?void 0:L.call(y),(A=y.bottom)==null?void 0:A.call(y)]}})),{}}});const npe=Br({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:o=>!isNaN(parseFloat(o))},maxRows:{type:[Number,String],validator:o=>!isNaN(parseFloat(o))},suffix:String,modelModifiers:Object,...e$(),...Gq()},"VTextarea"),sie=Go()({name:"VTextarea",directives:{Intersect:Rq},inheritAttrs:!1,props:npe(),emits:{"click:control":o=>!0,"mousedown:control":o=>!0,"update:focused":o=>!0,"update:modelValue":o=>!0},setup(o,b){let{attrs:y,emit:T,slots:G}=b;const V=ri(o,"modelValue"),{isFocused:L,focus:A,blur:s}=q6(o),m=on(()=>typeof o.counterValue=="function"?o.counterValue(V.value):(V.value||"").toString().length),h=on(()=>{if(y.maxlength)return y.maxlength;if(!(!o.counter||typeof o.counter!="number"&&typeof o.counter!="string"))return o.counter});function l(k,R){var F,H;!o.autofocus||!k||(H=(F=R[0].target)==null?void 0:F.focus)==null||H.call(F)}const c=No(),i=No(),u=xa(""),d=No(),g=on(()=>o.persistentPlaceholder||L.value||o.active);function v(){var k;d.value!==document.activeElement&&((k=d.value)==null||k.focus()),L.value||A()}function x(k){v(),T("click:control",k)}function C(k){T("mousedown:control",k)}function _(k){k.stopPropagation(),v(),Ll(()=>{V.value="",kae(o["onClick:clear"],k)})}function $(k){var F;const R=k.target;if(V.value=R.value,(F=o.modelModifiers)!=null&&F.trim){const H=[R.selectionStart,R.selectionEnd];Ll(()=>{R.selectionStart=H[0],R.selectionEnd=H[1]})}}const S=No(),O=No(+o.rows),D=on(()=>["plain","underlined"].includes(o.variant));fh(()=>{o.autoGrow||(O.value=+o.rows)});function N(){o.autoGrow&&Ll(()=>{if(!S.value||!i.value)return;const k=getComputedStyle(S.value),R=getComputedStyle(i.value.$el),F=parseFloat(k.getPropertyValue("--v-field-padding-top"))+parseFloat(k.getPropertyValue("--v-input-padding-top"))+parseFloat(k.getPropertyValue("--v-field-padding-bottom")),H=S.value.scrollHeight,j=parseFloat(k.lineHeight),P=Math.max(parseFloat(o.rows)*j+F,parseFloat(R.getPropertyValue("--v-input-control-height"))),ee=parseFloat(o.maxRows)*j+F||1/0,J=yg(H??0,P,ee);O.value=Math.floor((J-F)/j),u.value=ra(J)})}Cg(N),ta(V,N),ta(()=>o.rows,N),ta(()=>o.maxRows,N),ta(()=>o.density,N);let M;return ta(S,k=>{k?(M=new ResizeObserver(N),M.observe(S.value)):M==null||M.disconnect()}),dm(()=>{M==null||M.disconnect()}),ga(()=>{const k=!!(G.counter||o.counter||o.counterValue),R=!!(k||G.details),[F,H]=Cq(y),[{modelValue:j,...P}]=_2.filterProps(o),[ee]=Ose(o);return ct(_2,Jo({ref:c,modelValue:V.value,"onUpdate:modelValue":J=>V.value=J,class:["v-textarea v-text-field",{"v-textarea--prefixed":o.prefix,"v-textarea--suffixed":o.suffix,"v-text-field--prefixed":o.prefix,"v-text-field--suffixed":o.suffix,"v-textarea--auto-grow":o.autoGrow,"v-textarea--no-resize":o.noResize||o.autoGrow,"v-text-field--plain-underlined":D.value},o.class],style:o.style},F,P,{centerAffix:O.value===1&&!D.value,focused:L.value}),{...G,default:J=>{let{isDisabled:K,isDirty:ae,isReadonly:Q,isValid:he}=J;return ct(Zq,Jo({ref:i,style:{"--v-textarea-control-height":u.value},onClick:x,onMousedown:C,"onClick:clear":_,"onClick:prependInner":o["onClick:prependInner"],"onClick:appendInner":o["onClick:appendInner"]},ee,{active:g.value||ae.value,centerAffix:O.value===1&&!D.value,dirty:ae.value||o.dirty,disabled:K.value,focused:L.value,error:he.value===!1}),{...G,default:ge=>{let{props:{class:Se,...ce}}=ge;return ct(Uo,null,[o.prefix&&ct("span",{class:"v-text-field__prefix"},[o.prefix]),lu(ct("textarea",Jo({ref:d,class:Se,value:V.value,onInput:$,autofocus:o.autofocus,readonly:Q.value,disabled:K.value,placeholder:o.placeholder,rows:o.rows,name:o.name,onFocus:v,onBlur:s},ce,H),null),[[_p("intersect"),{handler:l},null,{once:!0}]]),o.autoGrow&&lu(ct("textarea",{class:[Se,"v-textarea__sizer"],id:`${ce.id}-sizer`,"onUpdate:modelValue":ne=>V.value=ne,ref:S,readonly:!0,"aria-hidden":"true"},null),[[Hfe,V.value]]),o.suffix&&ct("span",{class:"v-text-field__suffix"},[o.suffix])])}})},details:R?J=>{var K;return ct(Uo,null,[(K=G.details)==null?void 0:K.call(G,J),k&&ct(Uo,null,[ct("span",null,null),ct($se,{active:o.persistentCounter||L.value,value:m.value,max:h.value},G.counter)])])}:void 0})}),A3({},c,i,d)}});const rpe=Br({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),iie=Symbol.for("vuetify:data-table-pagination");function ope(o){const b=ri(o,"page",void 0,T=>+(T??1)),y=ri(o,"itemsPerPage",void 0,T=>+(T??10));return{page:b,itemsPerPage:y}}function ape(o){const{page:b,itemsPerPage:y,itemsLength:T}=o,G=on(()=>y.value===-1?0:y.value*(b.value-1)),V=on(()=>y.value===-1?T.value:Math.min(T.value,G.value+y.value)),L=on(()=>y.value===-1||T.value===0?1:Math.ceil(T.value/y.value));fh(()=>{b.value>L.value&&(b.value=L.value)});function A(c){y.value=c,b.value=1}function s(){b.value=yg(b.value+1,1,L.value)}function m(){b.value=yg(b.value-1,1,L.value)}function h(c){b.value=yg(c,1,L.value)}const l={page:b,itemsPerPage:y,startIndex:G,stopIndex:V,pageCount:L,itemsLength:T,nextPage:s,prevPage:m,setPage:h,setItemsPerPage:A};return Gl(iie,l),l}function spe(){const o=ni(iie);if(!o)throw new Error("Missing pagination!");return o}function ipe(o){const{items:b,startIndex:y,stopIndex:T,itemsPerPage:G}=o;return{paginatedItems:on(()=>G.value<=0?b.value:b.value.slice(y.value,T.value))}}const lie=Br({prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),_re=Go()({name:"VDataTableFooter",props:lie(),setup(o,b){let{slots:y}=b;const{t:T}=L2(),{page:G,pageCount:V,startIndex:L,stopIndex:A,itemsLength:s,itemsPerPage:m,setItemsPerPage:h}=spe(),l=on(()=>o.itemsPerPageOptions.map(c=>({...c,title:T(c.title)})));return()=>{var c;return ct("div",{class:"v-data-table-footer"},[(c=y.prepend)==null?void 0:c.call(y),ct("div",{class:"v-data-table-footer__items-per-page"},[ct("span",null,[T(o.itemsPerPageText)]),ct(Xq,{items:l.value,modelValue:m.value,"onUpdate:modelValue":i=>h(Number(i)),density:"compact",variant:"outlined","hide-details":!0},null)]),ct("div",{class:"v-data-table-footer__info"},[ct("div",null,[T(o.pageText,s.value?L.value+1:0,A.value,s.value)])]),ct("div",{class:"v-data-table-footer__pagination"},[ct(dc,{icon:o.firstIcon,variant:"plain",onClick:()=>G.value=1,disabled:G.value===1,"aria-label":T(o.firstPageLabel)},null),ct(dc,{icon:o.prevIcon,variant:"plain",onClick:()=>G.value=Math.max(1,G.value-1),disabled:G.value===1,"aria-label":T(o.prevPageLabel)},null),o.showCurrentPage&&ct("span",{key:"page",class:"v-data-table-footer__page"},[G.value]),ct(dc,{icon:o.nextIcon,variant:"plain",onClick:()=>G.value=Math.min(V.value,G.value+1),disabled:G.value===V.value,"aria-label":T(o.nextPageLabel)},null),ct(dc,{icon:o.lastIcon,variant:"plain",onClick:()=>G.value=V.value,disabled:G.value===V.value,"aria-label":T(o.lastPageLabel)},null)])])}}}),oee=Qde({align:{type:String,default:"start"},fixed:Boolean,fixedOffset:[Number,String],height:[Number,String],lastFixed:Boolean,noPadding:Boolean,tag:String,width:[Number,String]},(o,b)=>{let{slots:y,attrs:T}=b;const G=o.tag??"td";return ct(G,Jo({class:["v-data-table__td",{"v-data-table-column--fixed":o.fixed,"v-data-table-column--last-fixed":o.lastFixed,"v-data-table-column--no-padding":o.noPadding},`v-data-table-column--align-${o.align}`],style:{height:ra(o.height),width:ra(o.width),left:ra(o.fixedOffset||null)}},T),{default:()=>{var V;return[(V=y.default)==null?void 0:V.call(y)]}})}),lpe=Br({headers:{type:Array,default:()=>[]}},"DataTable-header"),cie=Symbol.for("vuetify:data-table-headers");function cpe(o,b){const y=No([]),T=No([]);fh(()=>{var i,u,d;const V=o.headers.length?Array.isArray(o.headers[0])?o.headers:[o.headers]:[],L=V.flatMap((g,v)=>g.map(x=>({column:x,row:v}))),A=V.length,s={title:"",sortable:!1},m={...s,width:48};if((i=b==null?void 0:b.groupBy)!=null&&i.value.length){const g=L.findIndex(v=>{let{column:x}=v;return x.key==="data-table-group"});g<0?L.unshift({column:{...s,key:"data-table-group",title:"Group",rowspan:A},row:0}):L.splice(g,1,{column:{...s,...L[g].column},row:L[g].row})}if((u=b==null?void 0:b.showSelect)!=null&&u.value){const g=L.findIndex(v=>{let{column:x}=v;return x.key==="data-table-select"});g<0?L.unshift({column:{...m,key:"data-table-select",rowspan:A},row:0}):L.splice(g,1,{column:{...m,...L[g].column},row:L[g].row})}if((d=b==null?void 0:b.showExpand)!=null&&d.value){const g=L.findIndex(v=>{let{column:x}=v;return x.key==="data-table-expand"});g<0?L.push({column:{...m,key:"data-table-expand",rowspan:A},row:0}):L.splice(g,1,{column:{...m,...L[g].column},row:L[g].row})}const h=AE(A).map(()=>[]),l=AE(A).fill(0);L.forEach(g=>{let{column:v,row:x}=g;const C=v.key??(typeof v.value=="string"?v.value:null),_=v.value??v.key??null;for(let $=x;$<=x+(v.rowspan??1)-1;$++)h[$].push({...v,key:C,value:_,fixedOffset:l[$],sortable:v.sortable??C!=null}),l[$]+=Number(v.width??0)}),h.forEach(g=>{for(let v=g.length;v--;v>=0)if(g[v].fixed){g[v].lastFixed=!0;return}});const c=new Set;y.value=h.map(g=>{const v=[];for(const x of g)c.has(x.key)||(c.add(x.key),v.push(x));return v}),T.value=h.at(-1)??[]});const G={headers:y,columns:T};return Gl(cie,G),G}function dH(){const o=ni(cie);if(!o)throw new Error("Missing headers!");return o}const upe={showSelectAll:!1,allSelected:()=>[],select:o=>{var T;let{items:b,value:y}=o;return new Set(y?[(T=b[0])==null?void 0:T.value]:[])},selectAll:o=>{let{selected:b}=o;return b}},uie={showSelectAll:!0,allSelected:o=>{let{currentPage:b}=o;return b},select:o=>{let{items:b,value:y,selected:T}=o;for(const G of b)y?T.add(G.value):T.delete(G.value);return T},selectAll:o=>{let{value:b,currentPage:y,selected:T}=o;return uie.select({items:y,value:b,selected:T})}},fie={showSelectAll:!0,allSelected:o=>{let{allItems:b}=o;return b},select:o=>{let{items:b,value:y,selected:T}=o;for(const G of b)y?T.add(G.value):T.delete(G.value);return T},selectAll:o=>{let{value:b,allItems:y,selected:T}=o;return fie.select({items:y,value:b,selected:T})}},fpe=Br({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:{type:Function,default:b3}},"DataTable-select"),die=Symbol.for("vuetify:data-table-selection");function dpe(o,b){let{allItems:y,currentPage:T}=b;const G=ri(o,"modelValue",o.modelValue,g=>new Set(xd(g).map(v=>{var x;return((x=y.value.find(C=>o.valueComparator(v,C.value)))==null?void 0:x.value)??v})),g=>[...g.values()]),V=on(()=>y.value.filter(g=>g.selectable)),L=on(()=>T.value.filter(g=>g.selectable)),A=on(()=>{if(typeof o.selectStrategy=="object")return o.selectStrategy;switch(o.selectStrategy){case"single":return upe;case"all":return fie;case"page":default:return uie}});function s(g){return xd(g).every(v=>G.value.has(v.value))}function m(g){return xd(g).some(v=>G.value.has(v.value))}function h(g,v){const x=A.value.select({items:g,value:v,selected:new Set(G.value)});G.value=x}function l(g){h([g],!s([g]))}function c(g){const v=A.value.selectAll({value:g,allItems:V.value,currentPage:L.value,selected:new Set(G.value)});G.value=v}const i=on(()=>G.value.size>0),u=on(()=>{const g=A.value.allSelected({allItems:V.value,currentPage:L.value});return!!g.length&&s(g)}),d={toggleSelect:l,select:h,selectAll:c,isSelected:s,isSomeSelected:m,someSelected:i,allSelected:u,showSelectAll:A.value.showSelectAll};return Gl(die,d),d}function hH(){const o=ni(die);if(!o)throw new Error("Missing selection!");return o}const hpe=Br({sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:Boolean,mustSort:Boolean},"DataTable-sort"),hie=Symbol.for("vuetify:data-table-sort");function mpe(o){const b=ri(o,"sortBy"),y=Xo(o,"mustSort"),T=Xo(o,"multiSort");return{sortBy:b,mustSort:y,multiSort:T}}function gpe(o){const{sortBy:b,mustSort:y,multiSort:T,page:G}=o,V=s=>{if(s.key==null)return;let m=b.value.map(l=>({...l}))??[];const h=m.find(l=>l.key===s.key);h?h.order==="desc"?y.value?h.order="asc":m=m.filter(l=>l.key!==s.key):h.order="desc":T.value?m=[...m,{key:s.key,order:"asc"}]:m=[{key:s.key,order:"asc"}],b.value=m,G&&(G.value=1)};function L(s){return!!b.value.find(m=>m.key===s.key)}const A={sortBy:b,toggleSort:V,isSorted:L};return Gl(hie,A),A}function ppe(){const o=ni(hie);if(!o)throw new Error("Missing sort!");return o}function vpe(o,b,y){const T=L2();return{sortedItems:on(()=>y.value.length?ype(b.value,y.value,T.current.value,o.customKeySort):b.value)}}function ype(o,b,y,T){const G=new Intl.Collator(y,{sensitivity:"accent",usage:"sort"});return[...o].sort((V,L)=>{for(let A=0;Ac!=null?c.toString().toLocaleLowerCase():c),h!==l)return KF(h)&&KF(l)?0:KF(h)?-1:KF(l)?1:!isNaN(h)&&!isNaN(l)?Number(h)-Number(l):G.compare(h,l)}return 0})}const mie=Br({color:String,sticky:Boolean,multiSort:Boolean,sortAscIcon:{type:vi,default:"$sortAsc"},sortDescIcon:{type:vi,default:"$sortDesc"},...rH()},"VDataTableHeaders"),Rre=Go()({name:"VDataTableHeaders",props:mie(),setup(o,b){let{slots:y,emit:T}=b;const{toggleSort:G,sortBy:V,isSorted:L}=ppe(),{someSelected:A,allSelected:s,selectAll:m,showSelectAll:h}=hH(),{columns:l,headers:c}=dH(),{loaderClasses:i}=oH(o),u=(_,$)=>{if(!(!o.sticky&&!_.fixed))return{position:"sticky",zIndex:_.fixed?4:o.sticky?3:void 0,left:_.fixed?ra(_.fixedOffset):void 0,top:o.sticky?`calc(var(--v-table-header-height) * ${$})`:void 0}};function d(_){const $=V.value.find(S=>S.key===_.key);return $?$.order==="asc"?o.sortAscIcon:o.sortDescIcon:o.sortAscIcon}const{backgroundColorClasses:g,backgroundColorStyles:v}=wg(o,"color"),x=on(()=>({headers:c.value,columns:l.value,toggleSort:G,isSorted:L,sortBy:V.value,someSelected:A.value,allSelected:s.value,selectAll:m,getSortIcon:d,getFixedStyles:u})),C=_=>{let{column:$,x:S,y:O}=_;const D=$.key==="data-table-select"||$.key==="data-table-expand";return ct(oee,{tag:"th",align:$.align,class:["v-data-table__th",{"v-data-table__th--sortable":$.sortable,"v-data-table__th--sorted":L($)},i.value],style:{width:ra($.width),minWidth:ra($.width),...u($,O)},colspan:$.colspan,rowspan:$.rowspan,onClick:$.sortable?()=>G($):void 0,lastFixed:$.lastFixed,noPadding:D},{default:()=>{var k;const N=`column.${$.key}`,M={column:$,selectAll:m,isSorted:L,toggleSort:G,sortBy:V.value,someSelected:A.value,allSelected:s.value,getSortIcon:d};return y[N]?y[N](M):$.key==="data-table-select"?((k=y["column.data-table-select"])==null?void 0:k.call(y,M))??(h&&ct(FE,{modelValue:s.value,indeterminate:A.value&&!s.value,"onUpdate:modelValue":m},null)):ct("div",{class:"v-data-table-header__content"},[ct("span",null,[$.title]),$.sortable&&ct(js,{key:"icon",class:"v-data-table-header__sort-icon",icon:d($)},null),o.multiSort&&L($)&&ct("div",{key:"badge",class:["v-data-table-header__sort-badge",...g.value],style:v.value},[V.value.findIndex(R=>R.key===$.key)+1])])}})};ga(()=>ct(Uo,null,[y.headers?y.headers(x.value):c.value.map((_,$)=>ct("tr",null,[_.map((S,O)=>ct(C,{column:S,x:O,y:$},null))])),o.loading&&ct("tr",{class:"v-data-table-progress"},[ct("th",{colspan:l.value.length},[ct(Bq,{name:"v-data-table-progress",active:!0,color:typeof o.loading=="boolean"?void 0:o.loading,indeterminate:!0},{default:y.loader})])])]))}}),bpe=Br({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),gie=Symbol.for("vuetify:data-table-group");function xpe(o){return{groupBy:ri(o,"groupBy")}}function wpe(o){const{groupBy:b,sortBy:y}=o,T=No(new Set),G=on(()=>b.value.map(m=>({...m,order:m.order??!1})).concat(y.value));function V(m){return T.value.has(m.id)}function L(m){const h=new Set(T.value);V(m)?h.delete(m.id):h.add(m.id),T.value=h}function A(m){function h(l){const c=[];for(const i of l.items)"type"in i&&i.type==="group"?c.push(...h(i)):c.push(i);return c}return h({type:"group",items:m,id:"dummy",key:"dummy",value:"dummy",depth:0})}const s={sortByWithGroups:G,toggleGroup:L,opened:T,groupBy:b,extractRows:A,isGroupOpen:V};return Gl(gie,s),s}function pie(){const o=ni(gie);if(!o)throw new Error("Missing group!");return o}function Cpe(o,b){if(!o.length)return[];const y=new Map;for(const T of o){const G=v3(T.raw,b);y.has(G)||y.set(G,[]),y.get(G).push(T)}return y}function vie(o,b){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!b.length)return[];const G=Cpe(o,b[0]),V=[],L=b.slice(1);return G.forEach((A,s)=>{const m=b[0],h=`${T}_${m}_${s}`;V.push({depth:y,id:h,key:m,value:s,items:L.length?vie(A,L,y+1,h):A,type:"group"})}),V}function yie(o,b){const y=[];for(const T of o)"type"in T&&T.type==="group"?(T.value!=null&&y.push(T),(b.has(T.id)||T.value==null)&&y.push(...yie(T.items,b))):y.push(T);return y}function Spe(o,b,y){return{flatItems:on(()=>{if(!b.value.length)return o.value;const G=vie(o.value,b.value.map(V=>V.key));return yie(G,y.value)})}}const Tpe=Br({item:{type:Object,required:!0}},"VDataTableGroupHeaderRow"),kpe=Go()({name:"VDataTableGroupHeaderRow",props:Tpe(),setup(o,b){let{slots:y}=b;const{isGroupOpen:T,toggleGroup:G,extractRows:V}=pie(),{isSelected:L,isSomeSelected:A,select:s}=hH(),{columns:m}=dH(),h=on(()=>V([o.item]));return()=>ct("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":o.item.depth}},[m.value.map(l=>{var c,i;if(l.key==="data-table-group"){const u=T(o.item)?"$expand":"$next",d=()=>G(o.item);return((c=y["data-table-group"])==null?void 0:c.call(y,{item:o.item,count:h.value.length,props:{icon:u,onClick:d}}))??ct(oee,{class:"v-data-table-group-header-row__column"},{default:()=>[ct(dc,{size:"small",variant:"text",icon:u,onClick:d},null),ct("span",null,[o.item.value]),ct("span",null,[ii("("),h.value.length,ii(")")])]})}if(l.key==="data-table-select"){const u=L(h.value),d=A(h.value)&&!u,g=v=>s(h.value,v);return((i=y["data-table-select"])==null?void 0:i.call(y,{props:{modelValue:u,indeterminate:d,"onUpdate:modelValue":g}}))??ct("td",null,[ct(FE,{modelValue:u,indeterminate:d,"onUpdate:modelValue":g},null)])}return ct("td",null,null)})])}}),Ape=Br({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),bie=Symbol.for("vuetify:datatable:expanded");function Mpe(o){const b=Xo(o,"expandOnClick"),y=ri(o,"expanded",o.expanded,A=>new Set(A),A=>[...A.values()]);function T(A,s){const m=new Set(y.value);s?m.add(A.value):m.delete(A.value),y.value=m}function G(A){return y.value.has(A.value)}function V(A){T(A,!G(A))}const L={expand:T,expanded:y,expandOnClick:b,isExpanded:G,toggleExpand:V};return Gl(bie,L),L}function xie(){const o=ni(bie);if(!o)throw new Error("foo");return o}const Epe=Br({index:Number,item:Object,onClick:Function},"VDataTableRow"),_pe=Go()({name:"VDataTableRow",props:Epe(),setup(o,b){let{slots:y}=b;const{isSelected:T,toggleSelect:G}=hH(),{isExpanded:V,toggleExpand:L}=xie(),{columns:A}=dH();ga(()=>ct("tr",{class:["v-data-table__tr",{"v-data-table__tr--clickable":!!o.onClick}],onClick:o.onClick},[o.item&&A.value.map((s,m)=>ct(oee,{align:s.align,fixed:s.fixed,fixedOffset:s.fixedOffset,lastFixed:s.lastFixed,noPadding:s.key==="data-table-select"||s.key==="data-table-expand",width:s.width},{default:()=>{var i,u;const h=o.item,l=`item.${s.key}`,c={index:o.index,item:h.raw,internalItem:h,value:v3(h.columns,s.key),column:s,isSelected:T,toggleSelect:G,isExpanded:V,toggleExpand:L};return y[l]?y[l](c):s.key==="data-table-select"?((i=y["item.data-table-select"])==null?void 0:i.call(y,c))??ct(FE,{disabled:!h.selectable,modelValue:T([h]),onClick:Lne(()=>G(h),["stop"])},null):s.key==="data-table-expand"?((u=y["item.data-table-expand"])==null?void 0:u.call(y,c))??ct(dc,{icon:V(h)?"$collapse":"$expand",size:"small",variant:"text",onClick:Lne(()=>L(h),["stop"])},null):Sp(c.value)}}))]))}}),wie=Br({loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowHeight:Number,"onClick:row":Function},"VDataTableRows"),Lre=Go()({name:"VDataTableRows",props:wie(),setup(o,b){let{emit:y,slots:T}=b;const{columns:G}=dH(),{expandOnClick:V,toggleExpand:L,isExpanded:A}=xie(),{isSelected:s,toggleSelect:m}=hH(),{toggleGroup:h,isGroupOpen:l}=pie(),{t:c}=L2();return ga(()=>{var i,u;return o.loading?ct("tr",{class:"v-data-table-rows-loading",key:"loading"},[ct("td",{colspan:G.value.length},[((i=T.loading)==null?void 0:i.call(T))??c(o.loadingText)])]):!o.loading&&!o.items.length&&!o.hideNoData?ct("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[ct("td",{colspan:G.value.length},[((u=T["no-data"])==null?void 0:u.call(T))??c(o.noDataText)])]):ct(Uo,null,[o.items.map((d,g)=>{var C;if(d.type==="group")return T["group-header"]?T["group-header"]({index:g,item:d,columns:G.value,isExpanded:A,toggleExpand:L,isSelected:s,toggleSelect:m,toggleGroup:h,isGroupOpen:l}):ct(kpe,{key:`group-header_${d.id}`,item:d},T);const v={index:g,item:d.raw,internalItem:d,columns:G.value,isExpanded:A,toggleExpand:L,isSelected:s,toggleSelect:m},x={...v,props:{key:`item_${d.key??d.index}`,onClick:V.value||o["onClick:row"]?_=>{var $;V.value&&L(d),($=o["onClick:row"])==null||$.call(o,_,{item:d.raw,internalItem:d})}:void 0,index:g,item:d}};return ct(Uo,null,[T.item?T.item(x):ct(_pe,x.props,T),A(d)&&((C=T["expanded-row"])==null?void 0:C.call(T,v))])})])}),{}}}),Rpe=Br({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataTable-items");function Lpe(o,b,y,T){const G=o.returnObject?b:lh(b,o.itemValue),V=lh(b,o.itemSelectable,!0),L=T.reduce((A,s)=>(s.key!=null&&(A[s.key]=lh(b,s.value)),A),{});return{type:"item",key:o.returnObject?lh(b,o.itemValue):G,index:y,value:G,selectable:V,columns:L,raw:b}}function Dpe(o,b,y){return b.map((T,G)=>Lpe(o,T,G,y))}function $pe(o,b){return{items:on(()=>Dpe(o,o.items,b.value))}}function Ope(o){let{page:b,itemsPerPage:y,sortBy:T,groupBy:G,search:V}=o;const L=Vu("VDataTable"),A=on(()=>({page:b.value,itemsPerPage:y.value,sortBy:T.value,groupBy:G.value,search:V.value}));ta(()=>V==null?void 0:V.value,()=>{b.value=1});let s=null;ta(A,()=>{b3(s,A.value)||(L.emit("update:options",A.value),s=A.value)},{deep:!0,immediate:!0})}const Ppe=Br({...wie(),width:[String,Number],search:String,...Ape(),...bpe(),...lpe(),...Rpe(),...fpe(),...hpe(),...mie(),...aie()},"DataTable"),Ipe=Br({...rpe(),...Ppe(),...Jq(),...lie()},"VDataTable"),aee=Go()({name:"VDataTable",props:Ipe(),emits:{"update:modelValue":o=>!0,"update:page":o=>!0,"update:itemsPerPage":o=>!0,"update:sortBy":o=>!0,"update:options":o=>!0,"update:groupBy":o=>!0,"update:expanded":o=>!0},setup(o,b){let{emit:y,slots:T}=b;const{groupBy:G}=xpe(o),{sortBy:V,multiSort:L,mustSort:A}=mpe(o),{page:s,itemsPerPage:m}=ope(o),{columns:h,headers:l}=cpe(o,{groupBy:G,showSelect:Xo(o,"showSelect"),showExpand:Xo(o,"showExpand")}),{items:c}=$pe(o,h),i=Xo(o,"search"),{filteredItems:u}=Qq(o,c,i,{transform:ge=>ge.columns}),{toggleSort:d}=gpe({sortBy:V,multiSort:L,mustSort:A,page:s}),{sortByWithGroups:g,opened:v,extractRows:x,isGroupOpen:C,toggleGroup:_}=wpe({groupBy:G,sortBy:V}),{sortedItems:$}=vpe(o,u,g),{flatItems:S}=Spe($,G,v),O=on(()=>S.value.length),{startIndex:D,stopIndex:N,pageCount:M,setItemsPerPage:k}=ape({page:s,itemsPerPage:m,itemsLength:O}),{paginatedItems:R}=ipe({items:S,startIndex:D,stopIndex:N,itemsPerPage:m}),F=on(()=>x(R.value)),{isSelected:H,select:j,selectAll:P,toggleSelect:ee,someSelected:J,allSelected:K}=dpe(o,{allItems:c,currentPage:F}),{isExpanded:ae,toggleExpand:Q}=Mpe(o);Ope({page:s,itemsPerPage:m,sortBy:V,groupBy:G,search:i}),R0({VDataTableRows:{hideNoData:Xo(o,"hideNoData"),noDataText:Xo(o,"noDataText"),loading:Xo(o,"loading"),loadingText:Xo(o,"loadingText")}});const he=on(()=>({page:s.value,itemsPerPage:m.value,sortBy:V.value,pageCount:M.value,toggleSort:d,setItemsPerPage:k,someSelected:J.value,allSelected:K.value,isSelected:H,select:j,selectAll:P,toggleSelect:ee,isExpanded:ae,toggleExpand:Q,isGroupOpen:C,toggleGroup:_,items:F.value,groupedItems:R.value,columns:h.value,headers:l.value}));return ga(()=>{const[ge]=_re.filterProps(o),[Se]=Rre.filterProps(o),[ce]=Lre.filterProps(o),[ne]=Ere.filterProps(o);return ct(Ere,Jo({class:["v-data-table",{"v-data-table--show-select":o.showSelect,"v-data-table--loading":o.loading},o.class],style:o.style},ne),{top:()=>{var fe;return(fe=T.top)==null?void 0:fe.call(T,he.value)},default:()=>{var fe,X,ye,Ce;return T.default?T.default(he.value):ct(Uo,null,[(fe=T.colgroup)==null?void 0:fe.call(T,he.value),ct("thead",null,[ct(Rre,Se,T)]),(X=T.thead)==null?void 0:X.call(T,he.value),ct("tbody",null,[T.body?T.body(he.value):ct(Lre,Jo(ce,{items:R.value}),T)]),(ye=T.tbody)==null?void 0:ye.call(T,he.value),(Ce=T.tfoot)==null?void 0:Ce.call(T,he.value)])},bottom:()=>T.bottom?T.bottom(he.value):ct(Uo,null,[ct(_re,ge,{prepend:T["footer.prepend"]})])})}),{}}}),Npe={emits:["runCode"],components:{"v-slider":Vse,"v-text-field":Ep,"v-number-field":Ep,"v-textarea":sie,"v-range-slider":oie,"v-select":Xq,"v-combobox":Use,"v-btn":dc,"v-img":Y6,"v-data-table":aee,"v-autocomplete":Pse,"v-card":M3,"plotly-plot":mae},props:{rowData:{type:Object},columnData:{type:Object},components:{type:Object,required:!0}},methods:{findComponentById(o){const b=this.components.find(y=>y.id===o);return b?[b]:[]},cardComponents(o){const b=[];for(const y in o.cardChildren)b.push.apply(b,this.findComponentById(o.cardChildren[y]));return b},runCode(o,b,y){this.$emit("runCode",o,b,y)},componentWidth(o){return o.width?o.width:!1},componentBind(o){if(o.component&&o.component==="v-autocomplete"){const{value:b,...y}=o;return y}return o},clickedButton(o){o.component==="v-btn"&&(o.value=!0)}}},Fpe={key:0},Bpe={key:1},Hpe={key:1},zpe={key:0},Vpe={key:1};function Upe(o,b,y,T,G,V){const L=A0("plotly-plot"),A=A0("layout-component",!0);return mo(),Ts(Uo,null,[y.rowData?(mo(),za(sm,{key:0},{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(y.rowData.components,(s,m)=>(mo(),za(kp,{key:m,cols:V.componentWidth(s)},{default:jr(()=>[typeof s=="string"?(mo(),Ts("div",Fpe,[(mo(!0),Ts(Uo,null,uf(V.findComponentById(s),h=>(mo(),Ts("div",null,[h.component==="plotly-plot"?(mo(),za(L,{key:0,id:h.id,figure:h.figure,layout:h.layout},null,8,["id","figure","layout"])):h.component==="v-card"?(mo(),za(mg(h.component),Jo({key:1},V.componentBind(h),{position:"relative",onRunCode:V.runCode}),{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(V.cardComponents(h),l=>(mo(),Ts("div",null,[l.component==="plotly-plot"?(mo(),za(L,{key:0,id:l.id,figure:l.figure,layout:l.layout},null,8,["id","figure","layout"])):(mo(),za(mg(l.component),Jo({key:1},V.componentBind(l),{modelValue:l.value,"onUpdate:modelValue":c=>l.value=c,onClick:c=>V.clickedButton(l)},{[C0(l.triggerEvent)]:c=>V.runCode(!0,l.id,l.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))]),_:2},1040,["onRunCode"])):(mo(),za(mg(h.component),Jo({key:2},V.componentBind(h),{modelValue:h.value,"onUpdate:modelValue":l=>h.value=l,onClick:l=>V.clickedButton(h)},{[C0(h.triggerEvent)]:l=>V.runCode(!0,h.id,h.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))])):(mo(),Ts("div",Bpe,[ct(A,{"column-data":s,components:y.components,onRunCode:V.runCode},null,8,["column-data","components","onRunCode"])]))]),_:2},1032,["cols"]))),128))]),_:1})):cm("",!0),y.columnData?(mo(),Ts("div",Hpe,[(mo(!0),Ts(Uo,null,uf(y.columnData.components,(s,m)=>(mo(),Ts("div",{key:m},[typeof s=="string"?(mo(),Ts("div",zpe,[(mo(!0),Ts(Uo,null,uf(V.findComponentById(s),h=>(mo(),Ts("div",null,[h.component==="plotly-plot"?(mo(),za(L,{key:0,id:h.id,figure:h.figure,layout:h.layout},null,8,["id","figure","layout"])):h.component==="v-card"?(mo(),za(mg(h.component),Jo({key:1},V.componentBind(h),{position:"relative"}),{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(V.cardComponents(h),l=>(mo(),Ts("div",null,[l.component==="plotly-plot"?(mo(),za(L,{key:0,id:l.id,figure:l.figure,layout:l.layout},null,8,["id","figure","layout"])):(mo(),za(mg(l.component),Jo({key:1},V.componentBind(l),{modelValue:l.value,"onUpdate:modelValue":c=>l.value=c,onClick:c=>V.clickedButton(l)},{[C0(l.triggerEvent)]:c=>V.runCode(!0,l.id,l.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))]),_:2},1040)):(mo(),za(mg(h.component),Jo({key:2},V.componentBind(h),{modelValue:h.value,"onUpdate:modelValue":l=>h.value=l,onClick:l=>V.clickedButton(h)},{[C0(h.triggerEvent)]:l=>V.runCode(!0,h.id,h.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))])):(mo(),Ts("div",Vpe,[ct(A,{"row-data":s,components:y.components,onRunCode:V.runCode},null,8,["row-data","components","onRunCode"])]))]))),128))])):cm("",!0)],64)}const Wpe=Vy(Npe,[["render",Upe]]),Gpe={components:{"ace-editor":eH,"v-slider":Vse,"v-text-field":Ep,"v-number-field":Ep,"v-textarea":sie,"v-range-slider":oie,"v-select":Xq,"v-combobox":Use,"v-btn":dc,"v-img":Y6,"v-data-table":aee,"v-autocomplete":Pse,"v-card":M3,"plotly-plot":mae,"layout-component":Wpe},props:{cellData:{type:Object,required:!0}},data(){return{isFocused:!1,items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},mounted(){if(this.$devMode){const o=this.$refs.editor;o._editor.renderer.$cursorLayer.element.style.display="none"}window.addEventListener("keydown",this.handleKeyDown)},beforeUnmount(){window.removeEventListener("keydown",this.handleKeyDown)},computed:{columns(){var o;return((o=this.cellData.layout)==null?void 0:o.columns)||[]},editorOptions(){return{showPrintMargin:!1,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,autoScrollEditorIntoView:!0,highlightActiveLine:this.$devMode&&this.isFocused,highlightGutterLine:this.$devMode&&this.isFocused,minLines:1,maxLines:1/0}},unplacedComponents(){var T,G;const o=V=>{let L=[];for(const A of V)for(const s of(A==null?void 0:A.components)??[])typeof s=="string"?L.push(s):s&&s.components&&(L=L.concat(o([s])));return L},b=V=>{let L=[];for(const A of V)A.component==="v-card"&&L.push.apply(L,Object.values(A.cardChildren));return L},y=o(((T=this.cellData.layout)==null?void 0:T.rows)??[]).concat(o(((G=this.cellData.layout)==null?void 0:G.columns)??[])).concat(b(this.cellData.components));return this.cellData.components.filter(V=>!y.includes(V.id))}},methods:{handleKeyDown(o){this.isFocused&&o.ctrlKey&&o.key==="Enter"&&this.runCode(!1,this.cellData.id,"")},handleFocus(o){if(o){const b=this.$refs.editor;b._editor.renderer.$cursorLayer.element.style.display=""}else{const b=this.$refs.editor;b._editor.renderer.$cursorLayer.element.style.display="none"}this.isFocused=o},runCode(o,b,y){!this.$devMode&&o?this.$emit("componentChange",this.cellData.id,b,y):this.$emit("runCode",this.cellData.id,b)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},componentBind(o){if(o.component&&o.component==="v-autocomplete"){const{value:b,...y}=o;return this.convertUnderscoresToHyphens(y)}return this.convertUnderscoresToHyphens(o)},convertUnderscoresToHyphens(o){return Object.entries(o).reduce((b,[y,T])=>{const G=y.replace(/_/g,"-");return b[G]=T,b},{})},clickedButton(o){o.component==="v-btn"&&(o.value=!0)},findComponentById(o){return this.cellData.components.find(y=>y.id===o)},cardComponents(o){const b=[];for(const y in o.cardChildren)b.push(this.findComponentById(o.cardChildren[y]));return b},createCell(o){this.$emit("createCell",this.cellData.id,o)}}};const Zpe=ff("span",{class:"py-0 px-2"},".py",-1),jpe={key:3},Ype=ff("p",{class:"text-caption text-disabled text-right"}," CTRL+Enter to run",-1),Kpe=[Ype],Xpe={class:"text-p"};function Jpe(o,b,y,T,G,V){const L=A0("ace-editor"),A=A0("layout-component"),s=A0("plotly-plot");return mo(),Ts(Uo,null,[ct(M3,{flat:"",color:"bluegrey"},{default:jr(()=>[o.$devMode?(mo(),za(sm,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:jr(()=>[ct(kp,{cols:11},{default:jr(()=>[Zpe]),_:1}),ct(kp,{cols:1,class:"d-flex justify-end align-center py-0"},{default:jr(()=>[ct(js,{small:"",class:"mx-1",color:"primary",onClick:b[0]||(b[0]=m=>V.runCode(!1,"",""))},{default:jr(()=>[ii(" mdi-play ")]),_:1}),ct(js,{small:"",class:"mx-1",color:"error",onClick:V.deleteCell},{default:jr(()=>[ii(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):cm("",!0),o.$devMode?(mo(),za(L,{key:1,value:y.cellData.code,"onUpdate:value":b[1]||(b[1]=m=>y.cellData.code=m),ref:"editor",class:"editor",theme:"dracula",lang:"python",options:V.editorOptions,onFocus:b[2]||(b[2]=m=>V.handleFocus(!0)),onBlur:b[3]||(b[3]=m=>V.handleFocus(!1))},null,8,["value","options"])):(mo(),za(Wse,{key:2},{default:jr(()=>[ct(Zse,null,{default:jr(()=>[ct(tee,{color:"bluegrey2"},{default:jr(()=>[ii(" View Source Code ")]),_:1}),ct(eee,null,{default:jr(()=>[ct(L,{value:y.cellData.code,"onUpdate:value":b[4]||(b[4]=m=>y.cellData.code=m),class:"editor",theme:"dracula",lang:"python",readonly:!0,options:V.editorOptions},null,8,["value","options"])]),_:1})]),_:1})]),_:1})),o.$devMode?(mo(),Ts("div",jpe,Kpe)):cm("",!0),ct(V6,null,{default:jr(()=>{var m;return[(mo(!0),Ts(Uo,null,uf((m=y.cellData.layout)==null?void 0:m.rows,(h,l)=>(mo(),za(A,{key:l,"row-data":h,components:y.cellData.components,onRunCode:V.runCode},null,8,["row-data","components","onRunCode"]))),128)),ct(sm,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(V.columns,(h,l)=>(mo(),za(kp,{cols:h.width},{default:jr(()=>[(mo(),za(A,{key:l,"column-data":h,components:y.cellData.components,onRunCode:V.runCode},null,8,["column-data","components","onRunCode"]))]),_:2},1032,["cols"]))),256))]),_:1}),ct(sm,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(V.unplacedComponents,h=>(mo(),za(V6,{class:"pa-1",key:h.id},{default:jr(()=>[h.component==="plotly-plot"?(mo(),za(s,{key:0,id:h.id,figure:h.figure,layout:h.layout},null,8,["id","figure","layout"])):h.component==="v-card"?(mo(),za(mg(h.component),Jo({key:1},V.componentBind(h),{position:"relative",onRunCode:V.runCode}),{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(V.cardComponents(h),l=>(mo(),Ts("div",null,[l.component==="plotly-plot"?(mo(),za(s,{key:0,id:h.id,figure:l.figure,layout:l.layout},null,8,["id","figure","layout"])):(mo(),za(mg(l.component),Jo({key:1},V.componentBind(l),{modelValue:l.value,"onUpdate:modelValue":c=>l.value=c,onClick:c=>V.clickedButton(l)},{[C0(l.triggerEvent)]:c=>V.runCode(!0,l.id,l.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]))),256))]),_:2},1040,["onRunCode"])):(mo(),za(mg(h.component),Jo({key:2},V.componentBind(h),{modelValue:h.value,"onUpdate:modelValue":l=>h.value=l,onClick:l=>V.clickedButton(h)},{[C0(h.triggerEvent)]:l=>V.runCode(!0,h.id,h.value)}),null,16,["modelValue","onUpdate:modelValue","onClick"]))]),_:2},1024))),128))]),_:1}),ct(sm,null,{default:jr(()=>[ct(kp,null,{default:jr(()=>[ff("div",Xpe,Sp(y.cellData.output),1)]),_:1})]),_:1})]}),_:1})]),_:1}),ct(O2,{transition:"scale-transition"},{activator:jr(({props:m})=>[ct(dc,Jo(m,{block:""}),{default:jr(()=>[ct(sm,null,{default:jr(()=>[ct(js,{color:"primary"},{default:jr(()=>[ii("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:jr(()=>[ct($2,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(G.items,(m,h)=>(mo(),za(fm,{key:h},{default:jr(()=>[ct(dc,{block:"",onClick:l=>V.createCell(m.title)},{default:jr(()=>[ii(Sp(m.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})],64)}const Qpe=Vy(Gpe,[["render",Jpe]]);function see(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let E3=see();function Cie(o){E3=o}const Sie=/[&<>"']/,qpe=new RegExp(Sie.source,"g"),Tie=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,eve=new RegExp(Tie.source,"g"),tve={"&":"&","<":"<",">":">",'"':""","'":"'"},Dre=o=>tve[o];function om(o,b){if(b){if(Sie.test(o))return o.replace(qpe,Dre)}else if(Tie.test(o))return o.replace(eve,Dre);return o}const nve=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function rve(o){return o.replace(nve,(b,y)=>(y=y.toLowerCase(),y==="colon"?":":y.charAt(0)==="#"?y.charAt(1)==="x"?String.fromCharCode(parseInt(y.substring(2),16)):String.fromCharCode(+y.substring(1)):""))}const ove=/(^|[^\[])\^/g;function Ai(o,b){o=typeof o=="string"?o:o.source,b=b||"";const y={replace:(T,G)=>(G=typeof G=="object"&&"source"in G?G.source:G,G=G.replace(ove,"$1"),o=o.replace(T,G),y),getRegex:()=>new RegExp(o,b)};return y}function $re(o){try{o=encodeURI(o).replace(/%25/g,"%")}catch{return null}return o}const DB={exec:()=>null};function Ore(o,b){const y=o.replace(/\|/g,(V,L,A)=>{let s=!1,m=L;for(;--m>=0&&A[m]==="\\";)s=!s;return s?"|":" |"}),T=y.split(/ \|/);let G=0;if(T[0].trim()||T.shift(),T.length>0&&!T[T.length-1].trim()&&T.pop(),b)if(T.length>b)T.splice(b);else for(;T.length{const V=G.match(/^\s+/);if(V===null)return G;const[L]=V;return L.length>=T.length?G.slice(T.length):G}).join(` -`)}class $B{constructor(b){pl(this,"options");pl(this,"rules");pl(this,"lexer");this.options=b||E3}space(b){const y=this.rules.block.newline.exec(b);if(y&&y[0].length>0)return{type:"space",raw:y[0]}}code(b){const y=this.rules.block.code.exec(b);if(y){const T=y[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:y[0],codeBlockStyle:"indented",text:this.options.pedantic?T:eB(T,` -`)}}}fences(b){const y=this.rules.block.fences.exec(b);if(y){const T=y[0],G=sve(T,y[3]||"");return{type:"code",raw:T,lang:y[2]?y[2].trim().replace(this.rules.inline._escapes,"$1"):y[2],text:G}}}heading(b){const y=this.rules.block.heading.exec(b);if(y){let T=y[2].trim();if(/#$/.test(T)){const G=eB(T,"#");(this.options.pedantic||!G||/ $/.test(G))&&(T=G.trim())}return{type:"heading",raw:y[0],depth:y[1].length,text:T,tokens:this.lexer.inline(T)}}}hr(b){const y=this.rules.block.hr.exec(b);if(y)return{type:"hr",raw:y[0]}}blockquote(b){const y=this.rules.block.blockquote.exec(b);if(y){const T=eB(y[0].replace(/^ *>[ \t]?/gm,""),` -`),G=this.lexer.state.top;this.lexer.state.top=!0;const V=this.lexer.blockTokens(T);return this.lexer.state.top=G,{type:"blockquote",raw:y[0],tokens:V,text:T}}}list(b){let y=this.rules.block.list.exec(b);if(y){let T=y[1].trim();const G=T.length>1,V={type:"list",raw:"",ordered:G,start:G?+T.slice(0,-1):"",loose:!1,items:[]};T=G?`\\d{1,9}\\${T.slice(-1)}`:`\\${T}`,this.options.pedantic&&(T=G?T:"[*+-]");const L=new RegExp(`^( {0,3}${T})((?:[ ][^\\n]*)?(?:\\n|$))`);let A="",s="",m=!1;for(;b;){let h=!1;if(!(y=L.exec(b))||this.rules.block.hr.test(b))break;A=y[0],b=b.substring(A.length);let l=y[2].split(` -`,1)[0].replace(/^\t+/,v=>" ".repeat(3*v.length)),c=b.split(` -`,1)[0],i=0;this.options.pedantic?(i=2,s=l.trimStart()):(i=y[2].search(/[^ ]/),i=i>4?1:i,s=l.slice(i),i+=y[1].length);let u=!1;if(!l&&/^ *$/.test(c)&&(A+=c+` -`,b=b.substring(c.length+1),h=!0),!h){const v=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),x=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),C=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),_=new RegExp(`^ {0,${Math.min(3,i-1)}}#`);for(;b;){const $=b.split(` -`,1)[0];if(c=$,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),C.test(c)||_.test(c)||v.test(c)||x.test(b))break;if(c.search(/[^ ]/)>=i||!c.trim())s+=` -`+c.slice(i);else{if(u||l.search(/[^ ]/)>=4||C.test(l)||_.test(l)||x.test(l))break;s+=` -`+c}!u&&!c.trim()&&(u=!0),A+=$+` -`,b=b.substring($.length+1),l=c.slice(i)}}V.loose||(m?V.loose=!0:/\n *\n *$/.test(A)&&(m=!0));let d=null,g;this.options.gfm&&(d=/^\[[ xX]\] /.exec(s),d&&(g=d[0]!=="[ ] ",s=s.replace(/^\[[ xX]\] +/,""))),V.items.push({type:"list_item",raw:A,task:!!d,checked:g,loose:!1,text:s,tokens:[]}),V.raw+=A}V.items[V.items.length-1].raw=A.trimEnd(),V.items[V.items.length-1].text=s.trimEnd(),V.raw=V.raw.trimEnd();for(let h=0;hi.type==="space"),c=l.length>0&&l.some(i=>/\n.*\n/.test(i.raw));V.loose=c}if(V.loose)for(let h=0;h$/,"$1").replace(this.rules.inline._escapes,"$1"):"",V=y[3]?y[3].substring(1,y[3].length-1).replace(this.rules.inline._escapes,"$1"):y[3];return{type:"def",tag:T,raw:y[0],href:G,title:V}}}table(b){const y=this.rules.block.table.exec(b);if(y){if(!/[:|]/.test(y[2]))return;const T={type:"table",raw:y[0],header:Ore(y[1]).map(G=>({text:G,tokens:[]})),align:y[2].replace(/^\||\| *$/g,"").split("|"),rows:y[3]&&y[3].trim()?y[3].replace(/\n[ \t]*$/,"").split(` -`):[]};if(T.header.length===T.align.length){let G=T.align.length,V,L,A,s;for(V=0;V({text:m,tokens:[]}));for(G=T.header.length,L=0;L/i.test(y[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(y[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(y[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:y[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:y[0]}}link(b){const y=this.rules.inline.link.exec(b);if(y){const T=y[2].trim();if(!this.options.pedantic&&/^$/.test(T))return;const L=eB(T.slice(0,-1),"\\");if((T.length-L.length)%2===0)return}else{const L=ave(y[2],"()");if(L>-1){const s=(y[0].indexOf("!")===0?5:4)+y[1].length+L;y[2]=y[2].substring(0,L),y[0]=y[0].substring(0,s).trim(),y[3]=""}}let G=y[2],V="";if(this.options.pedantic){const L=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(G);L&&(G=L[1],V=L[3])}else V=y[3]?y[3].slice(1,-1):"";return G=G.trim(),/^$/.test(T)?G=G.slice(1):G=G.slice(1,-1)),Pre(y,{href:G&&G.replace(this.rules.inline._escapes,"$1"),title:V&&V.replace(this.rules.inline._escapes,"$1")},y[0],this.lexer)}}reflink(b,y){let T;if((T=this.rules.inline.reflink.exec(b))||(T=this.rules.inline.nolink.exec(b))){let G=(T[2]||T[1]).replace(/\s+/g," ");if(G=y[G.toLowerCase()],!G){const V=T[0].charAt(0);return{type:"text",raw:V,text:V}}return Pre(T,G,T[0],this.lexer)}}emStrong(b,y,T=""){let G=this.rules.inline.emStrong.lDelim.exec(b);if(!G||G[3]&&T.match(/[\p{L}\p{N}]/u))return;if(!(G[1]||G[2]||"")||!T||this.rules.inline.punctuation.exec(T)){const L=[...G[0]].length-1;let A,s,m=L,h=0;const l=G[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(l.lastIndex=0,y=y.slice(-1*b.length+L);(G=l.exec(y))!=null;){if(A=G[1]||G[2]||G[3]||G[4]||G[5]||G[6],!A)continue;if(s=[...A].length,G[3]||G[4]){m+=s;continue}else if((G[5]||G[6])&&L%3&&!((L+s)%3)){h+=s;continue}if(m-=s,m>0)continue;s=Math.min(s,s+m+h);const c=[...G[0]][0].length,i=b.slice(0,L+G.index+c+s);if(Math.min(L,s)%2){const d=i.slice(1,-1);return{type:"em",raw:i,text:d,tokens:this.lexer.inlineTokens(d)}}const u=i.slice(2,-2);return{type:"strong",raw:i,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(b){const y=this.rules.inline.code.exec(b);if(y){let T=y[2].replace(/\n/g," ");const G=/[^ ]/.test(T),V=/^ /.test(T)&&/ $/.test(T);return G&&V&&(T=T.substring(1,T.length-1)),T=om(T,!0),{type:"codespan",raw:y[0],text:T}}}br(b){const y=this.rules.inline.br.exec(b);if(y)return{type:"br",raw:y[0]}}del(b){const y=this.rules.inline.del.exec(b);if(y)return{type:"del",raw:y[0],text:y[2],tokens:this.lexer.inlineTokens(y[2])}}autolink(b){const y=this.rules.inline.autolink.exec(b);if(y){let T,G;return y[2]==="@"?(T=om(y[1]),G="mailto:"+T):(T=om(y[1]),G=T),{type:"link",raw:y[0],text:T,href:G,tokens:[{type:"text",raw:T,text:T}]}}}url(b){let y;if(y=this.rules.inline.url.exec(b)){let T,G;if(y[2]==="@")T=om(y[0]),G="mailto:"+T;else{let V;do V=y[0],y[0]=this.rules.inline._backpedal.exec(y[0])[0];while(V!==y[0]);T=om(y[0]),y[1]==="www."?G="http://"+y[0]:G=y[0]}return{type:"link",raw:y[0],text:T,href:G,tokens:[{type:"text",raw:T,text:T}]}}}inlineText(b){const y=this.rules.inline.text.exec(b);if(y){let T;return this.lexer.state.inRawBlock?T=y[0]:T=om(y[0]),{type:"text",raw:y[0],text:T}}}}const ba={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:DB,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};ba._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;ba._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;ba.def=Ai(ba.def).replace("label",ba._label).replace("title",ba._title).getRegex();ba.bullet=/(?:[*+-]|\d{1,9}[.)])/;ba.listItemStart=Ai(/^( *)(bull) */).replace("bull",ba.bullet).getRegex();ba.list=Ai(ba.list).replace(/bull/g,ba.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ba.def.source+")").getRegex();ba._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";ba._comment=/|$)/;ba.html=Ai(ba.html,"i").replace("comment",ba._comment).replace("tag",ba._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();ba.lheading=Ai(ba.lheading).replace(/bull/g,ba.bullet).getRegex();ba.paragraph=Ai(ba._paragraph).replace("hr",ba.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ba._tag).getRegex();ba.blockquote=Ai(ba.blockquote).replace("paragraph",ba.paragraph).getRegex();ba.normal={...ba};ba.gfm={...ba.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};ba.gfm.table=Ai(ba.gfm.table).replace("hr",ba.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ba._tag).getRegex();ba.gfm.paragraph=Ai(ba._paragraph).replace("hr",ba.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ba.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ba._tag).getRegex();ba.pedantic={...ba.normal,html:Ai(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ba._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:DB,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ai(ba.normal._paragraph).replace("hr",ba.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",ba.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Fo={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:DB,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:DB,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";Fo.punctuation=Ai(Fo.punctuation,"u").replace(/punctuation/g,Fo._punctuation).getRegex();Fo.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;Fo.anyPunctuation=/\\[punct]/g;Fo._escapes=/\\([punct])/g;Fo._comment=Ai(ba._comment).replace("(?:-->|$)","-->").getRegex();Fo.emStrong.lDelim=Ai(Fo.emStrong.lDelim,"u").replace(/punct/g,Fo._punctuation).getRegex();Fo.emStrong.rDelimAst=Ai(Fo.emStrong.rDelimAst,"gu").replace(/punct/g,Fo._punctuation).getRegex();Fo.emStrong.rDelimUnd=Ai(Fo.emStrong.rDelimUnd,"gu").replace(/punct/g,Fo._punctuation).getRegex();Fo.anyPunctuation=Ai(Fo.anyPunctuation,"gu").replace(/punct/g,Fo._punctuation).getRegex();Fo._escapes=Ai(Fo._escapes,"gu").replace(/punct/g,Fo._punctuation).getRegex();Fo._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;Fo._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;Fo.autolink=Ai(Fo.autolink).replace("scheme",Fo._scheme).replace("email",Fo._email).getRegex();Fo._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;Fo.tag=Ai(Fo.tag).replace("comment",Fo._comment).replace("attribute",Fo._attribute).getRegex();Fo._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;Fo._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;Fo._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;Fo.link=Ai(Fo.link).replace("label",Fo._label).replace("href",Fo._href).replace("title",Fo._title).getRegex();Fo.reflink=Ai(Fo.reflink).replace("label",Fo._label).replace("ref",ba._label).getRegex();Fo.nolink=Ai(Fo.nolink).replace("ref",ba._label).getRegex();Fo.reflinkSearch=Ai(Fo.reflinkSearch,"g").replace("reflink",Fo.reflink).replace("nolink",Fo.nolink).getRegex();Fo.normal={...Fo};Fo.pedantic={...Fo.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ai(/^!?\[(label)\]\((.*?)\)/).replace("label",Fo._label).getRegex(),reflink:Ai(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Fo._label).getRegex()};Fo.gfm={...Fo.normal,escape:Ai(Fo.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\s+" ".repeat(m.length));let T,G,V,L;for(;b;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(A=>(T=A.call({lexer:this},b,y))?(b=b.substring(T.raw.length),y.push(T),!0):!1))){if(T=this.tokenizer.space(b)){b=b.substring(T.raw.length),T.raw.length===1&&y.length>0?y[y.length-1].raw+=` -`:y.push(T);continue}if(T=this.tokenizer.code(b)){b=b.substring(T.raw.length),G=y[y.length-1],G&&(G.type==="paragraph"||G.type==="text")?(G.raw+=` -`+T.raw,G.text+=` -`+T.text,this.inlineQueue[this.inlineQueue.length-1].src=G.text):y.push(T);continue}if(T=this.tokenizer.fences(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.heading(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.hr(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.blockquote(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.list(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.html(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.def(b)){b=b.substring(T.raw.length),G=y[y.length-1],G&&(G.type==="paragraph"||G.type==="text")?(G.raw+=` -`+T.raw,G.text+=` -`+T.raw,this.inlineQueue[this.inlineQueue.length-1].src=G.text):this.tokens.links[T.tag]||(this.tokens.links[T.tag]={href:T.href,title:T.title});continue}if(T=this.tokenizer.table(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.lheading(b)){b=b.substring(T.raw.length),y.push(T);continue}if(V=b,this.options.extensions&&this.options.extensions.startBlock){let A=1/0;const s=b.slice(1);let m;this.options.extensions.startBlock.forEach(h=>{m=h.call({lexer:this},s),typeof m=="number"&&m>=0&&(A=Math.min(A,m))}),A<1/0&&A>=0&&(V=b.substring(0,A+1))}if(this.state.top&&(T=this.tokenizer.paragraph(V))){G=y[y.length-1],L&&G.type==="paragraph"?(G.raw+=` -`+T.raw,G.text+=` -`+T.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=G.text):y.push(T),L=V.length!==b.length,b=b.substring(T.raw.length);continue}if(T=this.tokenizer.text(b)){b=b.substring(T.raw.length),G=y[y.length-1],G&&G.type==="text"?(G.raw+=` -`+T.raw,G.text+=` -`+T.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=G.text):y.push(T);continue}if(b){const A="Infinite loop on byte: "+b.charCodeAt(0);if(this.options.silent){console.error(A);break}else throw new Error(A)}}return this.state.top=!0,y}inline(b,y=[]){return this.inlineQueue.push({src:b,tokens:y}),y}inlineTokens(b,y=[]){let T,G,V,L=b,A,s,m;if(this.tokens.links){const h=Object.keys(this.tokens.links);if(h.length>0)for(;(A=this.tokenizer.rules.inline.reflinkSearch.exec(L))!=null;)h.includes(A[0].slice(A[0].lastIndexOf("[")+1,-1))&&(L=L.slice(0,A.index)+"["+"a".repeat(A[0].length-2)+"]"+L.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(A=this.tokenizer.rules.inline.blockSkip.exec(L))!=null;)L=L.slice(0,A.index)+"["+"a".repeat(A[0].length-2)+"]"+L.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(A=this.tokenizer.rules.inline.anyPunctuation.exec(L))!=null;)L=L.slice(0,A.index)+"++"+L.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;b;)if(s||(m=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(h=>(T=h.call({lexer:this},b,y))?(b=b.substring(T.raw.length),y.push(T),!0):!1))){if(T=this.tokenizer.escape(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.tag(b)){b=b.substring(T.raw.length),G=y[y.length-1],G&&T.type==="text"&&G.type==="text"?(G.raw+=T.raw,G.text+=T.text):y.push(T);continue}if(T=this.tokenizer.link(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.reflink(b,this.tokens.links)){b=b.substring(T.raw.length),G=y[y.length-1],G&&T.type==="text"&&G.type==="text"?(G.raw+=T.raw,G.text+=T.text):y.push(T);continue}if(T=this.tokenizer.emStrong(b,L,m)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.codespan(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.br(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.del(b)){b=b.substring(T.raw.length),y.push(T);continue}if(T=this.tokenizer.autolink(b)){b=b.substring(T.raw.length),y.push(T);continue}if(!this.state.inLink&&(T=this.tokenizer.url(b))){b=b.substring(T.raw.length),y.push(T);continue}if(V=b,this.options.extensions&&this.options.extensions.startInline){let h=1/0;const l=b.slice(1);let c;this.options.extensions.startInline.forEach(i=>{c=i.call({lexer:this},l),typeof c=="number"&&c>=0&&(h=Math.min(h,c))}),h<1/0&&h>=0&&(V=b.substring(0,h+1))}if(T=this.tokenizer.inlineText(V)){b=b.substring(T.raw.length),T.raw.slice(-1)!=="_"&&(m=T.raw.slice(-1)),s=!0,G=y[y.length-1],G&&G.type==="text"?(G.raw+=T.raw,G.text+=T.text):y.push(T);continue}if(b){const h="Infinite loop on byte: "+b.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return y}}class OB{constructor(b){pl(this,"options");this.options=b||E3}code(b,y,T){var V;const G=(V=(y||"").match(/^\S*/))==null?void 0:V[0];return b=b.replace(/\n$/,"")+` -`,G?'
    '+(T?b:om(b,!0))+`
    -`:"
    "+(T?b:om(b,!0))+`
    -`}blockquote(b){return`
    -${b}
    -`}html(b,y){return b}heading(b,y,T){return`${b} -`}hr(){return`
    -`}list(b,y,T){const G=y?"ol":"ul",V=y&&T!==1?' start="'+T+'"':"";return"<"+G+V+`> -`+b+" -`}listitem(b,y,T){return`
  • ${b}
  • -`}checkbox(b){return"'}paragraph(b){return`

    ${b}

    -`}table(b,y){return y&&(y=`${y}`),` - -`+b+` -`+y+`
    -`}tablerow(b){return` -${b} -`}tablecell(b,y){const T=y.header?"th":"td";return(y.align?`<${T} align="${y.align}">`:`<${T}>`)+b+` -`}strong(b){return`${b}`}em(b){return`${b}`}codespan(b){return`${b}`}br(){return"
    "}del(b){return`${b}`}link(b,y,T){const G=$re(b);if(G===null)return T;b=G;let V='
    ",V}image(b,y,T){const G=$re(b);if(G===null)return T;b=G;let V=`${T}0&&c.tokens[0].type==="paragraph"?(c.tokens[0].text=g+" "+c.tokens[0].text,c.tokens[0].tokens&&c.tokens[0].tokens.length>0&&c.tokens[0].tokens[0].type==="text"&&(c.tokens[0].tokens[0].text=g+" "+c.tokens[0].tokens[0].text)):c.tokens.unshift({type:"text",text:g+" "}):d+=g+" "}d+=this.parse(c.tokens,m),h+=this.renderer.listitem(d,u,!!i)}T+=this.renderer.list(h,A,s);continue}case"html":{const L=V;T+=this.renderer.html(L.text,L.block);continue}case"paragraph":{const L=V;T+=this.renderer.paragraph(this.parseInline(L.tokens));continue}case"text":{let L=V,A=L.tokens?this.parseInline(L.tokens):L.text;for(;G+1{T=T.concat(this.walkTokens(A[s],y))}):A.tokens&&(T=T.concat(this.walkTokens(A.tokens,y)))}}return T}use(...b){const y=this.defaults.extensions||{renderers:{},childTokens:{}};return b.forEach(T=>{const G={...T};if(G.async=this.defaults.async||G.async||!1,T.extensions&&(T.extensions.forEach(V=>{if(!V.name)throw new Error("extension name required");if("renderer"in V){const L=y.renderers[V.name];L?y.renderers[V.name]=function(...A){let s=V.renderer.apply(this,A);return s===!1&&(s=L.apply(this,A)),s}:y.renderers[V.name]=V.renderer}if("tokenizer"in V){if(!V.level||V.level!=="block"&&V.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const L=y[V.level];L?L.unshift(V.tokenizer):y[V.level]=[V.tokenizer],V.start&&(V.level==="block"?y.startBlock?y.startBlock.push(V.start):y.startBlock=[V.start]:V.level==="inline"&&(y.startInline?y.startInline.push(V.start):y.startInline=[V.start]))}"childTokens"in V&&V.childTokens&&(y.childTokens[V.name]=V.childTokens)}),G.extensions=y),T.renderer){const V=this.defaults.renderer||new OB(this.defaults);for(const L in T.renderer){const A=T.renderer[L],s=L,m=V[s];V[s]=(...h)=>{let l=A.apply(V,h);return l===!1&&(l=m.apply(V,h)),l||""}}G.renderer=V}if(T.tokenizer){const V=this.defaults.tokenizer||new $B(this.defaults);for(const L in T.tokenizer){const A=T.tokenizer[L],s=L,m=V[s];V[s]=(...h)=>{let l=A.apply(V,h);return l===!1&&(l=m.apply(V,h)),l}}G.tokenizer=V}if(T.hooks){const V=this.defaults.hooks||new M6;for(const L in T.hooks){const A=T.hooks[L],s=L,m=V[s];M6.passThroughHooks.has(L)?V[s]=h=>{if(this.defaults.async)return Promise.resolve(A.call(V,h)).then(c=>m.call(V,c));const l=A.call(V,h);return m.call(V,l)}:V[s]=(...h)=>{let l=A.apply(V,h);return l===!1&&(l=m.apply(V,h)),l}}G.hooks=V}if(T.walkTokens){const V=this.defaults.walkTokens,L=T.walkTokens;G.walkTokens=function(A){let s=[];return s.push(L.call(this,A)),V&&(s=s.concat(V.call(this,A))),s}}this.defaults={...this.defaults,...G}}),this}setOptions(b){return this.defaults={...this.defaults,...b},this}lexer(b,y){return T0.lex(b,y??this.defaults)}parser(b,y){return k0.parse(b,y??this.defaults)}}U6=new WeakSet,OQ=function(b,y){return(T,G)=>{const V={...G},L={...this.defaults,...V};this.defaults.async===!0&&V.async===!1&&(L.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),L.async=!0);const A=zF(this,PB,kie).call(this,!!L.silent,!!L.async);if(typeof T>"u"||T===null)return A(new Error("marked(): input parameter is undefined or null"));if(typeof T!="string")return A(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(T)+", string expected"));if(L.hooks&&(L.hooks.options=L),L.async)return Promise.resolve(L.hooks?L.hooks.preprocess(T):T).then(s=>b(s,L)).then(s=>L.walkTokens?Promise.all(this.walkTokens(s,L.walkTokens)).then(()=>s):s).then(s=>y(s,L)).then(s=>L.hooks?L.hooks.postprocess(s):s).catch(A);try{L.hooks&&(T=L.hooks.preprocess(T));const s=b(T,L);L.walkTokens&&this.walkTokens(s,L.walkTokens);let m=y(s,L);return L.hooks&&(m=L.hooks.postprocess(m)),m}catch(s){return A(s)}}},PB=new WeakSet,kie=function(b,y){return T=>{if(T.message+=` -Please report this to https://github.com/markedjs/marked.`,b){const G="

    An error occurred:

    "+om(T.message+"",!0)+"
    ";return y?Promise.resolve(G):G}if(y)return Promise.reject(T);throw T}};const y3=new ive;function Pi(o,b){return y3.parse(o,b)}Pi.options=Pi.setOptions=function(o){return y3.setOptions(o),Pi.defaults=y3.defaults,Cie(Pi.defaults),Pi};Pi.getDefaults=see;Pi.defaults=E3;Pi.use=function(...o){return y3.use(...o),Pi.defaults=y3.defaults,Cie(Pi.defaults),Pi};Pi.walkTokens=function(o,b){return y3.walkTokens(o,b)};Pi.parseInline=y3.parseInline;Pi.Parser=k0;Pi.parser=k0.parse;Pi.Renderer=OB;Pi.TextRenderer=iee;Pi.Lexer=T0;Pi.lexer=T0.lex;Pi.Tokenizer=$B;Pi.Hooks=M6;Pi.parse=Pi;Pi.options;Pi.setOptions;Pi.use;Pi.walkTokens;Pi.parseInline;k0.parse;T0.lex;var lve={exports:{}};(function(o,b){ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop");y("../lib/lang");var L=y("./text_highlight_rules").TextHighlightRules,A=T.supportType="align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-repeat|background-size|border|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-shadow|box-sizing|caption-side|clear|clip|color|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|font|font-family|font-size|font-size-adjust|font-stretch|font-style|font-variant|font-weight|hanging-punctuation|height|justify-content|left|letter-spacing|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-bottom|margin-left|margin-right|margin-top|max-height|max-width|max-zoom|min-height|min-width|min-zoom|nav-down|nav-index|nav-left|nav-right|nav-up|opacity|order|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-x|overflow-y|padding|padding-bottom|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|perspective|perspective-origin|position|quotes|resize|right|tab-size|table-layout|text-align|text-align-last|text-decoration|text-decoration-color|text-decoration-line|text-decoration-style|text-indent|text-justify|text-overflow|text-shadow|text-transform|top|transform|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|unicode-bidi|user-select|user-zoom|vertical-align|visibility|white-space|width|word-break|word-spacing|word-wrap|z-index",s=T.supportFunction="rgb|rgba|url|attr|counter|counters",m=T.supportConstant="absolute|after-edge|after|all-scroll|all|alphabetic|always|antialiased|armenian|auto|avoid-column|avoid-page|avoid|balance|baseline|before-edge|before|below|bidi-override|block-line-height|block|bold|bolder|border-box|both|bottom|box|break-all|break-word|capitalize|caps-height|caption|center|central|char|circle|cjk-ideographic|clone|close-quote|col-resize|collapse|column|consider-shifts|contain|content-box|cover|crosshair|cubic-bezier|dashed|decimal-leading-zero|decimal|default|disabled|disc|disregard-shifts|distribute-all-lines|distribute-letter|distribute-space|distribute|dotted|double|e-resize|ease-in|ease-in-out|ease-out|ease|ellipsis|end|exclude-ruby|flex-end|flex-start|fill|fixed|georgian|glyphs|grid-height|groove|hand|hanging|hebrew|help|hidden|hiragana-iroha|hiragana|horizontal|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|include-ruby|inherit|initial|inline-block|inline-box|inline-line-height|inline-table|inline|inset|inside|inter-ideograph|inter-word|invert|italic|justify|katakana-iroha|katakana|keep-all|last|left|lighter|line-edge|line-through|line|linear|list-item|local|loose|lower-alpha|lower-greek|lower-latin|lower-roman|lowercase|lr-tb|ltr|mathematical|max-height|max-size|medium|menu|message-box|middle|move|n-resize|ne-resize|newspaper|no-change|no-close-quote|no-drop|no-open-quote|no-repeat|none|normal|not-allowed|nowrap|nw-resize|oblique|open-quote|outset|outside|overline|padding-box|page|pointer|pre-line|pre-wrap|pre|preserve-3d|progress|relative|repeat-x|repeat-y|repeat|replaced|reset-size|ridge|right|round|row-resize|rtl|s-resize|scroll|se-resize|separate|slice|small-caps|small-caption|solid|space|square|start|static|status-bar|step-end|step-start|steps|stretch|strict|sub|super|sw-resize|table-caption|table-cell|table-column-group|table-column|table-footer-group|table-header-group|table-row-group|table-row|table|tb-rl|text-after-edge|text-before-edge|text-bottom|text-size|text-top|text|thick|thin|transparent|underline|upper-alpha|upper-latin|upper-roman|uppercase|use-script|vertical-ideographic|vertical-text|visible|w-resize|wait|whitespace|z-index|zero|zoom",h=T.supportConstantColor="aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen",l=T.supportConstantFonts="arial|century|comic|courier|cursive|fantasy|garamond|georgia|helvetica|impact|lucida|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif|monospace",c=T.numRe="\\-?(?:(?:[0-9]+(?:\\.[0-9]+)?)|(?:\\.[0-9]+))",i=T.pseudoElements="(\\:+)\\b(after|before|first-letter|first-line|moz-selection|selection)\\b",u=T.pseudoClasses="(:)\\b(active|checked|disabled|empty|enabled|first-child|first-of-type|focus|hover|indeterminate|invalid|last-child|last-of-type|link|not|nth-child|nth-last-child|nth-last-of-type|nth-of-type|only-child|only-of-type|required|root|target|valid|visited)\\b",d=function(){var g=this.createKeywordMapper({"support.function":s,"support.constant":m,"support.type":A,"support.constant.color":h,"support.constant.fonts":l},"text",!0);this.$rules={start:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"ruleset"},{token:"paren.rparen",regex:"\\}"},{token:"string",regex:"@(?!viewport)",next:"media"},{token:"keyword",regex:"#[a-z0-9-_]+"},{token:"keyword",regex:"%"},{token:"variable",regex:"\\.[a-z0-9-_]+"},{token:"string",regex:":[a-z0-9-_]+"},{token:"constant.numeric",regex:c},{token:"constant",regex:"[a-z0-9-_]+"},{caseInsensitive:!0}],media:[{include:["strings","url","comments"]},{token:"paren.lparen",regex:"\\{",next:"start"},{token:"paren.rparen",regex:"\\}",next:"start"},{token:"string",regex:";",next:"start"},{token:"keyword",regex:"(?:media|supports|document|charset|import|namespace|media|supports|document|page|font|keyframes|viewport|counter-style|font-feature-values|swash|ornaments|annotation|stylistic|styleset|character-variant)"}],comments:[{token:"comment",regex:"\\/\\*",push:[{token:"comment",regex:"\\*\\/",next:"pop"},{defaultToken:"comment"}]}],ruleset:[{regex:"-(webkit|ms|moz|o)-",token:"text"},{token:"punctuation.operator",regex:"[:;]"},{token:"paren.rparen",regex:"\\}",next:"start"},{include:["strings","url","comments"]},{token:["constant.numeric","keyword"],regex:"("+c+")(ch|cm|deg|em|ex|fr|gd|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vm|vw|%)"},{token:"constant.numeric",regex:c},{token:"constant.numeric",regex:"#[a-f0-9]{6}"},{token:"constant.numeric",regex:"#[a-f0-9]{3}"},{token:["punctuation","entity.other.attribute-name.pseudo-element.css"],regex:i},{token:["punctuation","entity.other.attribute-name.pseudo-class.css"],regex:u},{include:"url"},{token:g,regex:"\\-?[a-zA-Z_][a-zA-Z0-9_\\-]*"},{caseInsensitive:!0}],url:[{token:"support.function",regex:"(?:url(:?-prefix)?|domain|regexp)\\(",push:[{token:"support.function",regex:"\\)",next:"pop"},{defaultToken:"string"}]}],strings:[{token:"string.start",regex:"'",push:[{token:"string.end",regex:"'|$",next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]},{token:"string.start",regex:'"',push:[{token:"string.end",regex:'"|$',next:"pop"},{include:"escapes"},{token:"constant.language.escape",regex:/\\$/,consumeLineEnd:!0},{defaultToken:"string"}]}],escapes:[{token:"constant.language.escape",regex:/\\([a-fA-F\d]{1,6}|[^a-fA-F\d])/}]},this.normalizeRules()};V.inherits(d,L),T.CssHighlightRules=d}),ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("./text_highlight_rules").TextHighlightRules,A=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},A.getTagRule(),{defaultToken:"comment.doc",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};V.inherits(A,L),A.getTagRule=function(s){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},A.getStartRule=function(s){return{token:"comment.doc",regex:"\\/\\*(?=\\*)",next:s}},A.getEndRule=function(s){return{token:"comment.doc",regex:"\\*\\/",next:s}},T.JsDocCommentHighlightRules=A}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,A=y("./text_highlight_rules").TextHighlightRules,s="[a-zA-Z\\$_¡-￿][a-zA-Z\\d\\$_¡-￿]*",m=function(c){var i=this.createKeywordMapper({"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|function|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},"identifier"),u="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",d="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)";this.$rules={no_regex:[L.getStartRule("doc-start"),l("no_regex"),{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["storage.type","punctuation.operator","support.function","punctuation.operator","entity.name.function","text","keyword.operator"],regex:"("+s+")(\\.)(prototype)(\\.)("+s+")(\\s*)(=)",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(=)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function\\*?)(\\s+)(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","entity.name.function","text","paren.lparen"],regex:"(function\\*?)(\\s+)("+s+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","paren.lparen"],regex:"("+s+")(\\s*)(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)(function\\*?)(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+u+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|time|trace|timeEnd|assert)\b/},{token:i,regex:s},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:["storage.type","punctuation.operator","entity.name.function","text","keyword.operator","text","storage.type","text","entity.name.function","text","paren.lparen"],regex:"("+s+")(\\.)("+s+")(\\s*)(=)(\\s*)(function\\*?)(?:(\\s+)(\\w+))?(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:s},{regex:"",token:"empty",next:"no_regex"}],start:[L.getStartRule("doc-start"),l("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[l("function_arguments"),{token:"variable.parameter",regex:s},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:d},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!c||!c.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(g,v,x){if(this.next=g=="{"?this.nextState:"",g=="{"&&x.length)x.unshift("start",v);else if(g=="}"&&x.length&&(x.shift(),this.next=x.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return g=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:d},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+s+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=.+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!c||c.jsx!=!1)&&h.call(this)),this.embedRules(L,"doc-",[L.getEndRule("no_regex")]),this.normalizeRules()};V.inherits(m,A);function h(){var c=s.replace("\\d","\\d\\-"),i={onMatch:function(d,g,v){var x=d.charAt(1)=="/"?2:1;return x==1?(g!=this.nextState?v.unshift(this.next,this.nextState,0):v.unshift(this.next),v[2]++):x==2&&g==this.nextState&&(v[1]--,(!v[1]||v[1]<0)&&(v.shift(),v.shift())),[{type:"meta.tag.punctuation."+(x==1?"":"end-")+"tag-open.xml",value:d.slice(0,x)},{type:"meta.tag.tag-name.xml",value:d.substr(x)}]},regex:"",onMatch:function(d,g,v){return g==v[0]&&v.shift(),d.length==2&&(v[0]==this.nextState&&v[1]--,(!v[1]||v[1]<0)&&v.splice(0,2)),this.next=v[0]||"start",[{type:this.token,value:d}]},nextState:"jsx"},u,l("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:c},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},i],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function l(c){return[{token:"comment",regex:/\/\*/,next:[L.getTagRule(),{token:"comment",regex:"\\*\\/",next:c||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[L.getTagRule(),{token:"comment",regex:"$|^",next:c||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}T.JavaScriptHighlightRules=m}),ace.define("ace/mode/xml_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("./text_highlight_rules").TextHighlightRules,A=function(s){var m="[_:a-zA-ZÀ-￿][-_:.a-zA-Z0-9À-￿]*";this.$rules={start:[{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\[",next:"cdata"},{token:["punctuation.instruction.xml","keyword.instruction.xml"],regex:"(<\\?)("+m+")",next:"processing_instruction"},{token:"comment.start.xml",regex:"<\\!--",next:"comment"},{token:["xml-pe.doctype.xml","xml-pe.doctype.xml"],regex:"(<\\!)(DOCTYPE)(?=[\\s])",next:"doctype",caseInsensitive:!0},{include:"tag"},{token:"text.end-tag-open.xml",regex:"",next:"start"}],doctype:[{include:"whitespace"},{include:"string"},{token:"xml-pe.doctype.xml",regex:">",next:"start"},{token:"xml-pe.xml",regex:"[-_a-zA-Z0-9:]+"},{token:"punctuation.int-subset",regex:"\\[",push:"int_subset"}],int_subset:[{token:"text.xml",regex:"\\s+"},{token:"punctuation.int-subset.xml",regex:"]",next:"pop"},{token:["punctuation.markup-decl.xml","keyword.markup-decl.xml"],regex:"(<\\!)("+m+")",push:[{token:"text",regex:"\\s+"},{token:"punctuation.markup-decl.xml",regex:">",next:"pop"},{include:"string"}]}],cdata:[{token:"string.cdata.xml",regex:"\\]\\]>",next:"start"},{token:"text.xml",regex:"\\s+"},{token:"text.xml",regex:"(?:[^\\]]|\\](?!\\]>))+"}],comment:[{token:"comment.end.xml",regex:"-->",next:"start"},{defaultToken:"comment.xml"}],reference:[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],attr_reference:[{token:"constant.language.escape.reference.attribute-value.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}],tag:[{token:["meta.tag.punctuation.tag-open.xml","meta.tag.punctuation.end-tag-open.xml","meta.tag.tag-name.xml"],regex:"(?:(<)|(",next:"start"}]}],tag_whitespace:[{token:"text.tag-whitespace.xml",regex:"\\s+"}],whitespace:[{token:"text.whitespace.xml",regex:"\\s+"}],string:[{token:"string.xml",regex:"'",push:[{token:"string.xml",regex:"'",next:"pop"},{defaultToken:"string.xml"}]},{token:"string.xml",regex:'"',push:[{token:"string.xml",regex:'"',next:"pop"},{defaultToken:"string.xml"}]}],attributes:[{token:"entity.other.attribute-name.xml",regex:m},{token:"keyword.operator.attribute-equals.xml",regex:"="},{include:"tag_whitespace"},{include:"attribute_value"}],attribute_value:[{token:"string.attribute-value.xml",regex:"'",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"attr_reference"},{defaultToken:"string.attribute-value.xml"}]}]},this.constructor===A&&this.normalizeRules()};(function(){this.embedTagRules=function(s,m,h){this.$rules.tag.unshift({token:["meta.tag.punctuation.tag-open.xml","meta.tag."+h+".tag-name.xml"],regex:"(<)("+h+"(?=\\s|>|$))",next:[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:m+"start"}]}),this.$rules[h+"-end"]=[{include:"attributes"},{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",next:"start",onMatch:function(l,c,i){return i.splice(0),this.token}}],this.embedRules(s,m,[{token:["meta.tag.punctuation.end-tag-open.xml","meta.tag."+h+".tag-name.xml"],regex:"(|$))",next:h+"-end"},{token:"string.cdata.xml",regex:"<\\!\\[CDATA\\["},{token:"string.cdata.xml",regex:"\\]\\]>"}])}}).call(L.prototype),V.inherits(A,L),T.XmlHighlightRules=A}),ace.define("ace/mode/html_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/css_highlight_rules","ace/mode/javascript_highlight_rules","ace/mode/xml_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("../lib/lang"),A=y("./css_highlight_rules").CssHighlightRules,s=y("./javascript_highlight_rules").JavaScriptHighlightRules,m=y("./xml_highlight_rules").XmlHighlightRules,h=L.createMap({a:"anchor",button:"form",form:"form",img:"image",input:"form",label:"form",option:"form",script:"script",select:"form",textarea:"form",style:"style",table:"table",tbody:"table",td:"table",tfoot:"table",th:"table",tr:"table"}),l=function(){m.call(this),this.addRules({attributes:[{include:"tag_whitespace"},{token:"entity.other.attribute-name.xml",regex:"[-_a-zA-Z0-9:.]+"},{token:"keyword.operator.attribute-equals.xml",regex:"=",push:[{include:"tag_whitespace"},{token:"string.unquoted.attribute-value.html",regex:"[^<>='\"`\\s]+",next:"pop"},{token:"empty",regex:"",next:"pop"}]},{include:"attribute_value"}],tag:[{token:function(c,i){var u=h[i];return["meta.tag.punctuation."+(c=="<"?"":"end-")+"tag-open.xml","meta.tag"+(u?"."+u:"")+".tag-name.xml"]},regex:"(",next:"start"}]}),this.embedTagRules(A,"css-","style"),this.embedTagRules(new s({jsx:!1}).getRules(),"js-","script"),this.constructor===l&&this.normalizeRules()};V.inherits(l,m),T.HtmlHighlightRules=l}),ace.define("ace/mode/markdown_highlight_rules",["require","exports","module","ace/config","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules","ace/mode/html_highlight_rules"],function(y,T,G){var V=y("../config").$modes,L=y("../lib/oop"),A=y("../lib/lang"),s=y("./text_highlight_rules").TextHighlightRules,m=y("./html_highlight_rules").HtmlHighlightRules,h=function(c){return"(?:[^"+A.escapeRegExp(c)+"\\\\]|\\\\.)*"},l=function(){m.call(this);var c={token:"support.function",regex:/^\s*(```+[^`]*|~~~+[^~]*)$/,onMatch:function(u,d,g,v){var x=u.match(/^(\s*)([`~]+)(.*)/),C=/[\w-]+|$/.exec(x[3])[0];return V[C]||(C=""),g.unshift("githubblock",[],[x[1],x[2],C],d),this.token},next:"githubblock"},i=[{token:"support.function",regex:".*",onMatch:function(u,d,g,v){var x=g[1],C=g[2][0],_=g[2][1],$=g[2][2],S=/^(\s*)(`+|~+)\s*$/.exec(u);if(S&&S[1].length=_.length&&S[2][0]==_[0])return g.splice(0,3),this.next=g.shift(),this.token;if(this.next="",$&&V[$]){var O=V[$].getTokenizer().getLineTokens(u,x.slice(0));return g[1]=O.state,O.tokens}return this.token}}];this.$rules.start.unshift({token:"empty_line",regex:"^$",next:"allowBlock"},{token:"markup.heading.1",regex:"^=+(?=\\s*$)"},{token:"markup.heading.2",regex:"^\\-+(?=\\s*$)"},{token:function(u){return"markup.heading."+u.length},regex:/^#{1,6}(?=\s|$)/,next:"header"},c,{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{token:"constant",regex:"^ {0,3}(?:(?:\\* ?){3,}|(?:\\- ?){3,}|(?:\\_ ?){3,})\\s*$",next:"allowBlock"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic"}),this.addRules({basic:[{token:"constant.language.escape",regex:/\\[\\`*_{}\[\]()#+\-.!]/},{token:"support.function",regex:"(`+)(.*?[^`])(\\1)"},{token:["text","constant","text","url","string","text"],regex:'^([ ]{0,3}\\[)([^\\]]+)(\\]:\\s*)([^ ]+)(\\s*(?:["][^"]+["])?(\\s*))$'},{token:["text","string","text","constant","text"],regex:"(\\[)("+h("]")+")(\\]\\s*\\[)("+h("]")+")(\\])"},{token:["text","string","text","markup.underline","string","text"],regex:"(\\!?\\[)("+h("]")+')(\\]\\()((?:[^\\)\\s\\\\]|\\\\.|\\s(?=[^"]))*)(\\s*"'+h('"')+'"\\s*)?(\\))'},{token:"string.strong",regex:"([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"},{token:"string.emphasis",regex:"([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"},{token:["text","url","text"],regex:`(<)((?:https?|ftp|dict):[^'">\\s]+|(?:mailto:)?[-.\\w]+\\@[-a-z0-9]+(?:\\.[-a-z0-9]+)*\\.[a-z]+)(>)`}],allowBlock:[{token:"support.function",regex:"^ {4}.+",next:"allowBlock"},{token:"empty_line",regex:"^$",next:"allowBlock"},{token:"empty",regex:"",next:"start"}],header:[{regex:"$",next:"start"},{include:"basic"},{defaultToken:"heading"}],"listblock-start":[{token:"support.variable",regex:/(?:\[[ x]\])?/,next:"listblock"}],listblock:[{token:"empty_line",regex:"^$",next:"start"},{token:"markup.list",regex:"^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",next:"listblock-start"},{include:"basic",noEscape:!0},c,{defaultToken:"list"}],blockquote:[{token:"empty_line",regex:"^\\s*$",next:"start"},{token:"string.blockquote",regex:"^\\s*>\\s*(?:[*+-]|\\d+\\.)?\\s+",next:"blockquote"},{include:"basic",noEscape:!0},{defaultToken:"string.blockquote"}],githubblock:i}),this.normalizeRules()};L.inherits(l,s),T.MarkdownHighlightRules=l}),ace.define("ace/mode/folding/markdown",["require","exports","module","ace/lib/oop","ace/mode/folding/fold_mode","ace/range"],function(y,T,G){var V=y("../../lib/oop"),L=y("./fold_mode").FoldMode,A=y("../../range").Range,s=T.FoldMode=function(){};V.inherits(s,L),(function(){this.foldingStartMarker=/^(?:[=-]+\s*$|#{1,6} |`{3})/,this.getFoldWidget=function(m,h,l){var c=m.getLine(l);return this.foldingStartMarker.test(c)?c[0]=="`"&&m.bgTokenizer.getState(l)=="start"?"end":"start":""},this.getFoldWidgetRange=function(m,h,l){var c=m.getLine(l),i=c.length,u=m.getLength(),d=l,g=l;if(!c.match(this.foldingStartMarker))return;if(c[0]=="`")if(m.bgTokenizer.getState(l)!=="start"){for(;++l0&&(c=m.getLine(l),!(c[0]=="`"&c.substring(0,3)=="```")););return new A(l,c.length,d,0)}var v;function x(D){return v=m.getTokens(D)[0],v&&v.type.lastIndexOf(C,0)===0}var C="markup.heading";function _(){var D=v.value[0];return D=="="?6:D=="-"?5:7-v.value.search(/[^#]|$/)}if(x(l)){for(var $=_();++l=$)break}if(g=l-(!v||["=","-"].indexOf(v.value[0])==-1?1:2),g>d)for(;g>d&&/^\s*$/.test(m.getLine(g));)g--;if(g>d){var O=m.getLine(g).length;return new A(d,i,g,O)}}}}).call(s.prototype)}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(y,T,G){var V=y("../range").Range,L=function(){};(function(){this.checkOutdent=function(A,s){return/^\s+$/.test(A)?/^\s*\}/.test(s):!1},this.autoOutdent=function(A,s){var m=A.getLine(s),h=m.match(/^(\s*\})/);if(!h)return 0;var l=h[1].length,c=A.findMatchingBracket({row:s,column:l});if(!c||c.row==s)return 0;var i=this.$getIndent(A.getLine(c.row));A.replace(new V(s,0,s,l-1),i)},this.$getIndent=function(A){return A.match(/^\s*/)[0]}}).call(L.prototype),T.MatchingBraceOutdent=L}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(y,T,G){var V=y("../../lib/oop"),L=y("../../range").Range,A=y("./fold_mode").FoldMode,s=T.FoldMode=function(m){m&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+m.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+m.end)))};V.inherits(s,A),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(m,h,l){var c=m.getLine(l);if(this.singleLineBlockCommentRe.test(c)&&!this.startRegionRe.test(c)&&!this.tripleStarBlockCommentRe.test(c))return"";var i=this._getFoldWidgetBase(m,h,l);return!i&&this.startRegionRe.test(c)?"start":i},this.getFoldWidgetRange=function(m,h,l,c){var i=m.getLine(l);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(m,i,l);var g=i.match(this.foldingStartMarker);if(g){var u=g.index;if(g[1])return this.openingBracketBlock(m,g[1],l,u);var d=m.getCommentFoldRange(l,u+g[0].length,1);return d&&!d.isMultiLine()&&(c?d=this.getSectionRange(m,l):h!="all"&&(d=null)),d}if(h!=="markbegin"){var g=i.match(this.foldingStopMarker);if(g){var u=g.index+g[0].length;return g[1]?this.closingBracketBlock(m,g[1],l,u):m.getCommentFoldRange(l,u,-1)}}},this.getSectionRange=function(m,h){var l=m.getLine(h),c=l.search(/\S/),i=h,u=l.length;h=h+1;for(var d=h,g=m.getLength();++hv)break;var x=this.getFoldWidgetRange(m,"all",h);if(x){if(x.start.row<=i)break;if(x.isMultiLine())h=x.end.row;else if(c==v)break}d=h}}return new L(i,u,d,m.getLine(d).length)},this.getCommentRegionBlock=function(m,h,l){for(var c=h.search(/\s*$/),i=m.getLength(),u=l,d=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++lu)return new L(u,c,x,h.length)}}).call(s.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle"],function(y,T,G){var V=y("../lib/oop"),L=y("./text").Mode,A=y("./javascript_highlight_rules").JavaScriptHighlightRules,s=y("./matching_brace_outdent").MatchingBraceOutdent,m=y("../worker/worker_client").WorkerClient,h=y("./behaviour/cstyle").CstyleBehaviour,l=y("./folding/cstyle").FoldMode,c=function(){this.HighlightRules=A,this.$outdent=new s,this.$behaviour=new h,this.foldingRules=new l};V.inherits(c,L),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(i,u,d){var g=this.$getIndent(u),v=this.getTokenizer().getLineTokens(u,i),x=v.tokens,C=v.state;if(x.length&&x[x.length-1].type=="comment")return g;if(i=="start"||i=="no_regex"){var _=u.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);_&&(g+=d)}else if(i=="doc-start"){if(C=="start"||C=="no_regex")return"";var _=u.match(/^\s*(\/?)\*/);_&&(_[1]&&(g+=" "),g+="* ")}return g},this.checkOutdent=function(i,u,d){return this.$outdent.checkOutdent(u,d)},this.autoOutdent=function(i,u,d){this.$outdent.autoOutdent(u,d)},this.createWorker=function(i){var u=new m(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return u.attachToDocument(i.getDocument()),u.on("annotate",function(d){i.setAnnotations(d.data)}),u.on("terminate",function(){i.clearAnnotations()}),u},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(c.prototype),T.Mode=c}),ace.define("ace/mode/css_completions",["require","exports","module"],function(y,T,G){var V={background:{"#$0":1},"background-color":{"#$0":1,transparent:1,fixed:1},"background-image":{"url('/$0')":1},"background-repeat":{repeat:1,"repeat-x":1,"repeat-y":1,"no-repeat":1,inherit:1},"background-position":{bottom:2,center:2,left:2,right:2,top:2,inherit:2},"background-attachment":{scroll:1,fixed:1},"background-size":{cover:1,contain:1},"background-clip":{"border-box":1,"padding-box":1,"content-box":1},"background-origin":{"border-box":1,"padding-box":1,"content-box":1},border:{"solid $0":1,"dashed $0":1,"dotted $0":1,"#$0":1},"border-color":{"#$0":1},"border-style":{solid:2,dashed:2,dotted:2,double:2,groove:2,hidden:2,inherit:2,inset:2,none:2,outset:2,ridged:2},"border-collapse":{collapse:1,separate:1},bottom:{px:1,em:1,"%":1},clear:{left:1,right:1,both:1,none:1},color:{"#$0":1,"rgb(#$00,0,0)":1},cursor:{default:1,pointer:1,move:1,text:1,wait:1,help:1,progress:1,"n-resize":1,"ne-resize":1,"e-resize":1,"se-resize":1,"s-resize":1,"sw-resize":1,"w-resize":1,"nw-resize":1},display:{none:1,block:1,inline:1,"inline-block":1,"table-cell":1},"empty-cells":{show:1,hide:1},float:{left:1,right:1,none:1},"font-family":{Arial:2,"Comic Sans MS":2,Consolas:2,"Courier New":2,Courier:2,Georgia:2,Monospace:2,"Sans-Serif":2,"Segoe UI":2,Tahoma:2,"Times New Roman":2,"Trebuchet MS":2,Verdana:1},"font-size":{px:1,em:1,"%":1},"font-weight":{bold:1,normal:1},"font-style":{italic:1,normal:1},"font-variant":{normal:1,"small-caps":1},height:{px:1,em:1,"%":1},left:{px:1,em:1,"%":1},"letter-spacing":{normal:1},"line-height":{normal:1},"list-style-type":{none:1,disc:1,circle:1,square:1,decimal:1,"decimal-leading-zero":1,"lower-roman":1,"upper-roman":1,"lower-greek":1,"lower-latin":1,"upper-latin":1,georgian:1,"lower-alpha":1,"upper-alpha":1},margin:{px:1,em:1,"%":1},"margin-right":{px:1,em:1,"%":1},"margin-left":{px:1,em:1,"%":1},"margin-top":{px:1,em:1,"%":1},"margin-bottom":{px:1,em:1,"%":1},"max-height":{px:1,em:1,"%":1},"max-width":{px:1,em:1,"%":1},"min-height":{px:1,em:1,"%":1},"min-width":{px:1,em:1,"%":1},overflow:{hidden:1,visible:1,auto:1,scroll:1},"overflow-x":{hidden:1,visible:1,auto:1,scroll:1},"overflow-y":{hidden:1,visible:1,auto:1,scroll:1},padding:{px:1,em:1,"%":1},"padding-top":{px:1,em:1,"%":1},"padding-right":{px:1,em:1,"%":1},"padding-bottom":{px:1,em:1,"%":1},"padding-left":{px:1,em:1,"%":1},"page-break-after":{auto:1,always:1,avoid:1,left:1,right:1},"page-break-before":{auto:1,always:1,avoid:1,left:1,right:1},position:{absolute:1,relative:1,fixed:1,static:1},right:{px:1,em:1,"%":1},"table-layout":{fixed:1,auto:1},"text-decoration":{none:1,underline:1,"line-through":1,blink:1},"text-align":{left:1,right:1,center:1,justify:1},"text-transform":{capitalize:1,uppercase:1,lowercase:1,none:1},top:{px:1,em:1,"%":1},"vertical-align":{top:1,bottom:1},visibility:{hidden:1,visible:1},"white-space":{nowrap:1,normal:1,pre:1,"pre-line":1,"pre-wrap":1},width:{px:1,em:1,"%":1},"word-spacing":{normal:1},filter:{"alpha(opacity=$0100)":1},"text-shadow":{"$02px 2px 2px #777":1},"text-overflow":{"ellipsis-word":1,clip:1,ellipsis:1},"-moz-border-radius":1,"-moz-border-radius-topright":1,"-moz-border-radius-bottomright":1,"-moz-border-radius-topleft":1,"-moz-border-radius-bottomleft":1,"-webkit-border-radius":1,"-webkit-border-top-right-radius":1,"-webkit-border-top-left-radius":1,"-webkit-border-bottom-right-radius":1,"-webkit-border-bottom-left-radius":1,"-moz-box-shadow":1,"-webkit-box-shadow":1,transform:{"rotate($00deg)":1,"skew($00deg)":1},"-moz-transform":{"rotate($00deg)":1,"skew($00deg)":1},"-webkit-transform":{"rotate($00deg)":1,"skew($00deg)":1}},L=function(){};(function(){this.completionsDefined=!1,this.defineCompletions=function(){if(document){var A=document.createElement("c").style;for(var s in A)if(typeof A[s]=="string"){var m=s.replace(/[A-Z]/g,function(h){return"-"+h.toLowerCase()});V.hasOwnProperty(m)||(V[m]=1)}}this.completionsDefined=!0},this.getCompletions=function(A,s,m,h){if(this.completionsDefined||this.defineCompletions(),A==="ruleset"||s.$mode.$id=="ace/mode/scss"){var l=s.getLine(m.row).substr(0,m.column),c=/\([^)]*$/.test(l);return c&&(l=l.substr(l.lastIndexOf("(")+1)),/:[^;]+$/.test(l)?this.getPropertyValueCompletions(A,s,m,h):this.getPropertyCompletions(A,s,m,h,c)}return[]},this.getPropertyCompletions=function(A,s,m,h,l){l=l||!1;var c=Object.keys(V);return c.map(function(i){return{caption:i,snippet:i+": $0"+(l?"":";"),meta:"property",score:1e6}})},this.getPropertyValueCompletions=function(A,s,m,h){var l=s.getLine(m.row).substr(0,m.column),c=(/([\w\-]+):[^:]*$/.exec(l)||{})[1];if(!c)return[];var i=[];return c in V&&typeof V[c]=="object"&&(i=Object.keys(V[c])),i.map(function(u){return{caption:u,snippet:u,meta:"property value",score:1e6}})}}).call(L.prototype),T.CssCompletions=L}),ace.define("ace/mode/behaviour/css",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/mode/behaviour/cstyle","ace/token_iterator"],function(y,T,G){var V=y("../../lib/oop");y("../behaviour").Behaviour;var L=y("./cstyle").CstyleBehaviour,A=y("../../token_iterator").TokenIterator,s=function(){this.inherit(L),this.add("colon","insertion",function(m,h,l,c,i){if(i===":"&&l.selection.isEmpty()){var u=l.getCursorPosition(),d=new A(c,u.row,u.column),g=d.getCurrentToken();if(g&&g.value.match(/\s+/)&&(g=d.stepBackward()),g&&g.type==="support.type"){var v=c.doc.getLine(u.row),x=v.substring(u.column,u.column+1);if(x===":")return{text:"",selection:[1,1]};if(/^(\s+[^;]|\s*$)/.test(v.substring(u.column)))return{text:":;",selection:[1,1]}}}}),this.add("colon","deletion",function(m,h,l,c,i){var u=c.doc.getTextRange(i);if(!i.isMultiLine()&&u===":"){var d=l.getCursorPosition(),g=new A(c,d.row,d.column),v=g.getCurrentToken();if(v&&v.value.match(/\s+/)&&(v=g.stepBackward()),v&&v.type==="support.type"){var x=c.doc.getLine(i.start.row),C=x.substring(i.end.column,i.end.column+1);if(C===";")return i.end.column++,i}}}),this.add("semicolon","insertion",function(m,h,l,c,i){if(i===";"&&l.selection.isEmpty()){var u=l.getCursorPosition(),d=c.doc.getLine(u.row),g=d.substring(u.column,u.column+1);if(g===";")return{text:"",selection:[1,1]}}}),this.add("!important","insertion",function(m,h,l,c,i){if(i==="!"&&l.selection.isEmpty()){var u=l.getCursorPosition(),d=c.doc.getLine(u.row);if(/^\s*(;|}|$)/.test(d.substring(u.column)))return{text:"!important",selection:[10,10]}}})};V.inherits(s,L),T.CssBehaviour=s}),ace.define("ace/mode/css",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/css_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/css_completions","ace/mode/behaviour/css","ace/mode/folding/cstyle"],function(y,T,G){var V=y("../lib/oop"),L=y("./text").Mode,A=y("./css_highlight_rules").CssHighlightRules,s=y("./matching_brace_outdent").MatchingBraceOutdent,m=y("../worker/worker_client").WorkerClient,h=y("./css_completions").CssCompletions,l=y("./behaviour/css").CssBehaviour,c=y("./folding/cstyle").FoldMode,i=function(){this.HighlightRules=A,this.$outdent=new s,this.$behaviour=new l,this.$completer=new h,this.foldingRules=new c};V.inherits(i,L),(function(){this.foldingRules="cStyle",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(u,d,g){var v=this.$getIndent(d),x=this.getTokenizer().getLineTokens(d,u).tokens;if(x.length&&x[x.length-1].type=="comment")return v;var C=d.match(/^.*\{\s*$/);return C&&(v+=g),v},this.checkOutdent=function(u,d,g){return this.$outdent.checkOutdent(d,g)},this.autoOutdent=function(u,d,g){this.$outdent.autoOutdent(d,g)},this.getCompletions=function(u,d,g,v){return this.$completer.getCompletions(u,d,g,v)},this.createWorker=function(u){var d=new m(["ace"],"ace/mode/css_worker","Worker");return d.attachToDocument(u.getDocument()),d.on("annotate",function(g){u.setAnnotations(g.data)}),d.on("terminate",function(){u.clearAnnotations()}),d},this.$id="ace/mode/css",this.snippetFileId="ace/snippets/css"}).call(i.prototype),T.Mode=i}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(y,T,G){var V=y("../../lib/oop"),L=y("../behaviour").Behaviour,A=y("../../token_iterator").TokenIterator;y("../../lib/lang");function s(h,l){return h&&h.type.lastIndexOf(l+".xml")>-1}var m=function(){this.add("string_dquotes","insertion",function(h,l,c,i,u){if(u=='"'||u=="'"){var d=u,g=i.doc.getTextRange(c.getSelectionRange());if(g!==""&&g!=="'"&&g!='"'&&c.getWrapBehavioursEnabled())return{text:d+g+d,selection:!1};var v=c.getCursorPosition(),x=i.doc.getLine(v.row),C=x.substring(v.column,v.column+1),_=new A(i,v.row,v.column),$=_.getCurrentToken();if(C==d&&(s($,"attribute-value")||s($,"string")))return{text:"",selection:[1,1]};if($||($=_.stepBackward()),!$)return;for(;s($,"tag-whitespace")||s($,"whitespace");)$=_.stepBackward();var S=!C||C.match(/\s/);if(s($,"attribute-equals")&&(S||C==">")||s($,"decl-attribute-equals")&&(S||C=="?"))return{text:d+d,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(h,l,c,i,u){var d=i.doc.getTextRange(u);if(!u.isMultiLine()&&(d=='"'||d=="'")){var g=i.doc.getLine(u.start.row),v=g.substring(u.start.column+1,u.start.column+2);if(v==d)return u.end.column++,u}}),this.add("autoclosing","insertion",function(h,l,c,i,u){if(u==">"){var d=c.getSelectionRange().start,g=new A(i,d.row,d.column),v=g.getCurrentToken()||g.stepBackward();if(!v||!(s(v,"tag-name")||s(v,"tag-whitespace")||s(v,"attribute-name")||s(v,"attribute-equals")||s(v,"attribute-value"))||s(v,"reference.attribute-value"))return;if(s(v,"attribute-value")){var x=g.getCurrentTokenColumn()+v.value.length;if(d.column/.test(i.getLine(d.row).slice(d.column)))return;for(;!s(v,"tag-name");)if(v=g.stepBackward(),v.value=="<"){v=g.stepForward();break}var _=g.getCurrentTokenRow(),$=g.getCurrentTokenColumn();if(s(g.stepBackward(),"end-tag-open"))return;var S=v.value;return _==d.row&&(S=S.substring(0,d.column-$)),this.voidElements.hasOwnProperty(S.toLowerCase())?void 0:{text:">",selection:[1,1]}}}),this.add("autoindent","insertion",function(h,l,c,i,u){if(u==` -`){var d=c.getCursorPosition(),g=i.getLine(d.row),v=new A(i,d.row,d.column),x=v.getCurrentToken();if(x&&x.type.indexOf("tag-close")!==-1){if(x.value=="/>")return;for(;x&&x.type.indexOf("tag-name")===-1;)x=v.stepBackward();if(!x)return;var C=x.value,_=v.getCurrentTokenRow();if(x=v.stepBackward(),!x||x.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[C]){var $=i.getTokenAt(d.row,d.column+1),g=i.getLine(_),S=this.$getIndent(g),O=S+i.getTabString();return $&&$.value==="-1}(function(){this.getFoldWidget=function(l,c,i){var u=this._getFirstTagInLine(l,i);return u?u.closing||!u.tagName&&u.selfClosing?c==="markbeginend"?"end":"":!u.tagName||u.selfClosing||this.voidElements.hasOwnProperty(u.tagName.toLowerCase())||this._findEndTagInLine(l,i,u.tagName,u.end.column)?"":"start":this.getCommentFoldWidget(l,i)},this.getCommentFoldWidget=function(l,c){return/comment/.test(l.getState(c))&&/";break}return u}else if(h(g,"tag-close"))return u.selfClosing=g.value=="/>",u;u.start.column+=g.value.length}return null},this._findEndTagInLine=function(l,c,i,u){for(var d=l.getTokens(c),g=0,v=0;v-1}function c(d,g){for(var v=new V(d,g.row,g.column),x=v.getCurrentToken();x&&!l(x,"tag-name");)x=v.stepBackward();if(x)return x.value}function i(d,g){for(var v=new V(d,g.row,g.column),x=v.getCurrentToken();x&&!l(x,"attribute-name");)x=v.stepBackward();if(x)return x.value}var u=function(){};(function(){this.getCompletions=function(d,g,v,x){var C=g.getTokenAt(v.row,v.column);if(!C)return[];if(l(C,"tag-name")||l(C,"tag-open")||l(C,"end-tag-open"))return this.getTagCompletions(d,g,v,x);if(l(C,"tag-whitespace")||l(C,"attribute-name"))return this.getAttributeCompletions(d,g,v,x);if(l(C,"attribute-value"))return this.getAttributeValueCompletions(d,g,v,x);var _=g.getLine(v.row).substr(0,v.column);return/&[a-z]*$/i.test(_)?this.getHTMLEntityCompletions(d,g,v,x):[]},this.getTagCompletions=function(d,g,v,x){return h.map(function(C){return{value:C,meta:"tag",score:1e6}})},this.getAttributeCompletions=function(d,g,v,x){var C=c(g,v);if(!C)return[];var _=s;return C in m&&(_=_.concat(Object.keys(m[C]))),_.map(function($){return{caption:$,snippet:$+'="$0"',meta:"attribute",score:1e6}})},this.getAttributeValueCompletions=function(d,g,v,x){var C=c(g,v),_=i(g,v);if(!C)return[];var $=[];return C in m&&_ in m[C]&&typeof m[C][_]=="object"&&($=Object.keys(m[C][_])),$.map(function(S){return{caption:S,snippet:S,meta:"attribute value",score:1e6}})},this.getHTMLEntityCompletions=function(d,g,v,x){var C=["Aacute;","aacute;","Acirc;","acirc;","acute;","AElig;","aelig;","Agrave;","agrave;","alefsym;","Alpha;","alpha;","amp;","and;","ang;","Aring;","aring;","asymp;","Atilde;","atilde;","Auml;","auml;","bdquo;","Beta;","beta;","brvbar;","bull;","cap;","Ccedil;","ccedil;","cedil;","cent;","Chi;","chi;","circ;","clubs;","cong;","copy;","crarr;","cup;","curren;","Dagger;","dagger;","dArr;","darr;","deg;","Delta;","delta;","diams;","divide;","Eacute;","eacute;","Ecirc;","ecirc;","Egrave;","egrave;","empty;","emsp;","ensp;","Epsilon;","epsilon;","equiv;","Eta;","eta;","ETH;","eth;","Euml;","euml;","euro;","exist;","fnof;","forall;","frac12;","frac14;","frac34;","frasl;","Gamma;","gamma;","ge;","gt;","hArr;","harr;","hearts;","hellip;","Iacute;","iacute;","Icirc;","icirc;","iexcl;","Igrave;","igrave;","image;","infin;","int;","Iota;","iota;","iquest;","isin;","Iuml;","iuml;","Kappa;","kappa;","Lambda;","lambda;","lang;","laquo;","lArr;","larr;","lceil;","ldquo;","le;","lfloor;","lowast;","loz;","lrm;","lsaquo;","lsquo;","lt;","macr;","mdash;","micro;","middot;","minus;","Mu;","mu;","nabla;","nbsp;","ndash;","ne;","ni;","not;","notin;","nsub;","Ntilde;","ntilde;","Nu;","nu;","Oacute;","oacute;","Ocirc;","ocirc;","OElig;","oelig;","Ograve;","ograve;","oline;","Omega;","omega;","Omicron;","omicron;","oplus;","or;","ordf;","ordm;","Oslash;","oslash;","Otilde;","otilde;","otimes;","Ouml;","ouml;","para;","part;","permil;","perp;","Phi;","phi;","Pi;","pi;","piv;","plusmn;","pound;","Prime;","prime;","prod;","prop;","Psi;","psi;","quot;","radic;","rang;","raquo;","rArr;","rarr;","rceil;","rdquo;","real;","reg;","rfloor;","Rho;","rho;","rlm;","rsaquo;","rsquo;","sbquo;","Scaron;","scaron;","sdot;","sect;","shy;","Sigma;","sigma;","sigmaf;","sim;","spades;","sub;","sube;","sum;","sup;","sup1;","sup2;","sup3;","supe;","szlig;","Tau;","tau;","there4;","Theta;","theta;","thetasym;","thinsp;","THORN;","thorn;","tilde;","times;","trade;","Uacute;","uacute;","uArr;","uarr;","Ucirc;","ucirc;","Ugrave;","ugrave;","uml;","upsih;","Upsilon;","upsilon;","Uuml;","uuml;","weierp;","Xi;","xi;","Yacute;","yacute;","yen;","Yuml;","yuml;","Zeta;","zeta;","zwj;","zwnj;"];return C.map(function(_){return{caption:_,snippet:_,meta:"html entity",score:1e6}})}}).call(u.prototype),T.HtmlCompletions=u}),ace.define("ace/mode/html",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/javascript","ace/mode/css","ace/mode/html_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/html","ace/mode/html_completions","ace/worker/worker_client"],function(y,T,G){var V=y("../lib/oop"),L=y("../lib/lang"),A=y("./text").Mode,s=y("./javascript").Mode,m=y("./css").Mode,h=y("./html_highlight_rules").HtmlHighlightRules,l=y("./behaviour/xml").XmlBehaviour,c=y("./folding/html").FoldMode,i=y("./html_completions").HtmlCompletions,u=y("../worker/worker_client").WorkerClient,d=["area","base","br","col","embed","hr","img","input","keygen","link","meta","menuitem","param","source","track","wbr"],g=["li","dt","dd","p","rt","rp","optgroup","option","colgroup","td","th"],v=function(x){this.fragmentContext=x&&x.fragmentContext,this.HighlightRules=h,this.$behaviour=new l,this.$completer=new i,this.createModeDelegates({"js-":s,"css-":m}),this.foldingRules=new c(this.voidElements,L.arrayToMap(g))};V.inherits(v,A),(function(){this.blockComment={start:""},this.voidElements=L.arrayToMap(d),this.getNextLineIndent=function(x,C,_){return this.$getIndent(C)},this.checkOutdent=function(x,C,_){return!1},this.getCompletions=function(x,C,_,$){return this.$completer.getCompletions(x,C,_,$)},this.createWorker=function(x){if(this.constructor==v){var C=new u(["ace"],"ace/mode/html_worker","Worker");return C.attachToDocument(x.getDocument()),this.fragmentContext&&C.call("setOptions",[{context:this.fragmentContext}]),C.on("error",function(_){x.setAnnotations(_.data)}),C.on("terminate",function(){x.clearAnnotations()}),C}},this.$id="ace/mode/html",this.snippetFileId="ace/snippets/html"}).call(v.prototype),T.Mode=v}),ace.define("ace/mode/sh_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("./text_highlight_rules").TextHighlightRules,A=T.reservedKeywords="!|{|}|case|do|done|elif|else|esac|fi|for|if|in|then|until|while|&|;|export|local|read|typeset|unset|elif|select|set|function|declare|readonly",s=T.languageConstructs="[|]|alias|bg|bind|break|builtin|cd|command|compgen|complete|continue|dirs|disown|echo|enable|eval|exec|exit|fc|fg|getopts|hash|help|history|jobs|kill|let|logout|popd|printf|pushd|pwd|return|set|shift|shopt|source|suspend|test|times|trap|type|ulimit|umask|unalias|wait",m=function(){var h=this.createKeywordMapper({keyword:A,"support.function.builtin":s,"invalid.deprecated":"debugger"},"identifier"),l="(?:(?:[1-9]\\d*)|(?:0))",c="(?:\\.\\d+)",i="(?:\\d+)",u="(?:(?:"+i+"?"+c+")|(?:"+i+"\\.))",d="(?:(?:"+u+"|"+i+"))",g="(?:"+d+"|"+u+")",v="(?:&"+i+")",x="[a-zA-Z_][a-zA-Z0-9_]*",C="(?:"+x+"(?==))",_="(?:\\$(?:SHLVL|\\$|\\!|\\?))",$="(?:"+x+"\\s*\\(\\))";this.$rules={start:[{token:"constant",regex:/\\./},{token:["text","comment"],regex:/(^|\s)(#.*)$/},{token:"string.start",regex:'"',push:[{token:"constant.language.escape",regex:/\\(?:[$`"\\]|$)/},{include:"variables"},{token:"keyword.operator",regex:/`/},{token:"string.end",regex:'"',next:"pop"},{defaultToken:"string"}]},{token:"string",regex:"\\$'",push:[{token:"constant.language.escape",regex:/\\(?:[abeEfnrtv\\'"]|x[a-fA-F\d]{1,2}|u[a-fA-F\d]{4}([a-fA-F\d]{4})?|c.|\d{1,3})/},{token:"string",regex:"'",next:"pop"},{defaultToken:"string"}]},{regex:"<<<",token:"keyword.operator"},{stateName:"heredoc",regex:"(<<-?)(\\s*)(['\"`]?)([\\w\\-]+)(['\"`]?)",onMatch:function(S,O,D){var N=S[2]=="-"?"indentedHeredoc":"heredoc",M=S.split(this.splitRegex);return D.push(N,M[4]),[{type:"constant",value:M[1]},{type:"text",value:M[2]},{type:"string",value:M[3]},{type:"support.class",value:M[4]},{type:"string",value:M[5]}]},rules:{heredoc:[{onMatch:function(S,O,D){return S===D[1]?(D.shift(),D.shift(),this.next=D[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}],indentedHeredoc:[{token:"string",regex:"^ +"},{onMatch:function(S,O,D){return S===D[1]?(D.shift(),D.shift(),this.next=D[0]||"start","support.class"):(this.next="","string")},regex:".*$",next:"start"}]}},{regex:"$",token:"empty",next:function(S,O){return O[0]==="heredoc"||O[0]==="indentedHeredoc"?O[0]:S}},{token:["keyword","text","text","text","variable"],regex:/(declare|local|readonly)(\s+)(?:(-[fixar]+)(\s+))?([a-zA-Z_][a-zA-Z0-9_]*\b)/},{token:"variable.language",regex:_},{token:"variable",regex:C},{include:"variables"},{token:"support.function",regex:$},{token:"support.function",regex:v},{token:"string",start:"'",end:"'"},{token:"constant.numeric",regex:g},{token:"constant.numeric",regex:l+"\\b"},{token:h,regex:"[a-zA-Z_][a-zA-Z0-9_]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\*|\\*\\*|\\/|\\/\\/|~|<|>|<=|=>|=|!=|[%&|`]"},{token:"punctuation.operator",regex:";"},{token:"paren.lparen",regex:"[\\[\\(\\{]"},{token:"paren.rparen",regex:"[\\]]"},{token:"paren.rparen",regex:"[\\)\\}]",next:"pop"}],variables:[{token:"variable",regex:/(\$)(\w+)/},{token:["variable","paren.lparen"],regex:/(\$)(\()/,push:"start"},{token:["variable","paren.lparen","keyword.operator","variable","keyword.operator"],regex:/(\$)(\{)([#!]?)(\w+|[*@#?\-$!0_])(:[?+\-=]?|##?|%%?|,,?\/|\^\^?)?/,push:"start"},{token:"variable",regex:/\$[*@#?\-$!0_]/},{token:["variable","paren.lparen"],regex:/(\$)(\{)/,push:"start"}]},this.normalizeRules()};V.inherits(m,L),T.ShHighlightRules=m}),ace.define("ace/mode/sh",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sh_highlight_rules","ace/range","ace/mode/folding/cstyle"],function(y,T,G){var V=y("../lib/oop"),L=y("./text").Mode,A=y("./sh_highlight_rules").ShHighlightRules,s=y("../range").Range,m=y("./folding/cstyle").FoldMode,h=function(){this.HighlightRules=A,this.foldingRules=new m,this.$behaviour=this.$defaultBehaviour};V.inherits(h,L),(function(){this.lineCommentStart="#",this.getNextLineIndent=function(c,i,u){var d=this.$getIndent(i),g=this.getTokenizer().getLineTokens(i,c),v=g.tokens;if(v.length&&v[v.length-1].type=="comment")return d;if(c=="start"){var x=i.match(/^.*[\{\(\[:]\s*$/);x&&(d+=u)}return d};var l={pass:1,return:1,raise:1,break:1,continue:1};this.checkOutdent=function(c,i,u){if(u!==`\r -`&&u!=="\r"&&u!==` -`)return!1;var d=this.getTokenizer().getLineTokens(i.trim(),c).tokens;if(!d)return!1;do var g=d.pop();while(g&&(g.type=="comment"||g.type=="text"&&g.value.match(/^\s+$/)));return g?g.type=="keyword"&&l[g.value]:!1},this.autoOutdent=function(c,i,u){u+=1;var d=this.$getIndent(i.getLine(u)),g=i.getTabString();d.slice(-g.length)==g&&i.remove(new s(u,d.length-g.length,u,d.length))},this.$id="ace/mode/sh",this.snippetFileId="ace/snippets/sh"}).call(h.prototype),T.Mode=h}),ace.define("ace/mode/xml",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text","ace/mode/xml_highlight_rules","ace/mode/behaviour/xml","ace/mode/folding/xml","ace/worker/worker_client"],function(y,T,G){var V=y("../lib/oop"),L=y("../lib/lang"),A=y("./text").Mode,s=y("./xml_highlight_rules").XmlHighlightRules,m=y("./behaviour/xml").XmlBehaviour,h=y("./folding/xml").FoldMode,l=y("../worker/worker_client").WorkerClient,c=function(){this.HighlightRules=s,this.$behaviour=new m,this.foldingRules=new h};V.inherits(c,A),(function(){this.voidElements=L.arrayToMap([]),this.blockComment={start:""},this.createWorker=function(i){var u=new l(["ace"],"ace/mode/xml_worker","Worker");return u.attachToDocument(i.getDocument()),u.on("error",function(d){i.setAnnotations(d.data)}),u.on("terminate",function(){i.clearAnnotations()}),u},this.$id="ace/mode/xml"}).call(c.prototype),T.Mode=c}),ace.define("ace/mode/markdown",["require","exports","module","ace/lib/oop","ace/mode/behaviour/cstyle","ace/mode/text","ace/mode/markdown_highlight_rules","ace/mode/folding/markdown","ace/mode/javascript","ace/mode/html","ace/mode/sh","ace/mode/sh","ace/mode/xml","ace/mode/css"],function(y,T,G){var V=y("../lib/oop"),L=y("./behaviour/cstyle").CstyleBehaviour,A=y("./text").Mode,s=y("./markdown_highlight_rules").MarkdownHighlightRules,m=y("./folding/markdown").FoldMode,h=function(){this.HighlightRules=s,this.createModeDelegates({javascript:y("./javascript").Mode,html:y("./html").Mode,bash:y("./sh").Mode,sh:y("./sh").Mode,xml:y("./xml").Mode,css:y("./css").Mode}),this.foldingRules=new m,this.$behaviour=new L({braces:!0})};V.inherits(h,A),(function(){this.type="text",this.blockComment={start:""},this.$quotes={'"':'"',"`":"`"},this.getNextLineIndent=function(l,c,i){if(l=="listblock"){var u=/^(\s*)(?:([-+*])|(\d+)\.)(\s+)/.exec(c);if(!u)return"";var d=u[2];return d||(d=parseInt(u[3],10)+1+"."),u[1]+d+u[4]}else return this.$getIndent(c)},this.$id="ace/mode/markdown",this.snippetFileId="ace/snippets/markdown"}).call(h.prototype),T.Mode=h}),function(){ace.require(["ace/mode/markdown"],function(y){o&&(o.exports=y)})}()})(lve);var cve={exports:{}};(function(o,b){ace.define("ace/snippets/markdown.snippets",["require","exports","module"],function(y,T,G){G.exports=`# Markdown - -# Includes octopress (http://octopress.org/) snippets - -snippet [ - [\${1:text}](http://\${2:address} "\${3:title}") -snippet [* - [\${1:link}](\${2:\`@*\`} "\${3:title}")\${4} - -snippet [: - [\${1:id}]: http://\${2:url} "\${3:title}" -snippet [:* - [\${1:id}]: \${2:\`@*\`} "\${3:title}" - -snippet ![ - ![\${1:alttext}](\${2:/images/image.jpg} "\${3:title}") -snippet ![* - ![\${1:alt}](\${2:\`@*\`} "\${3:title}")\${4} - -snippet ![: - ![\${1:id}]: \${2:url} "\${3:title}" -snippet ![:* - ![\${1:id}]: \${2:\`@*\`} "\${3:title}" - -snippet === -regex /^/=+/=*// - \${PREV_LINE/./=/g} - - \${0} -snippet --- -regex /^/-+/-*// - \${PREV_LINE/./-/g} - - \${0} -snippet blockquote - {% blockquote %} - \${1:quote} - {% endblockquote %} - -snippet blockquote-author - {% blockquote \${1:author}, \${2:title} %} - \${3:quote} - {% endblockquote %} - -snippet blockquote-link - {% blockquote \${1:author} \${2:URL} \${3:link_text} %} - \${4:quote} - {% endblockquote %} - -snippet bt-codeblock-short - \`\`\` - \${1:code_snippet} - \`\`\` - -snippet bt-codeblock-full - \`\`\` \${1:language} \${2:title} \${3:URL} \${4:link_text} - \${5:code_snippet} - \`\`\` - -snippet codeblock-short - {% codeblock %} - \${1:code_snippet} - {% endcodeblock %} - -snippet codeblock-full - {% codeblock \${1:title} lang:\${2:language} \${3:URL} \${4:link_text} %} - \${5:code_snippet} - {% endcodeblock %} - -snippet gist-full - {% gist \${1:gist_id} \${2:filename} %} - -snippet gist-short - {% gist \${1:gist_id} %} - -snippet img - {% img \${1:class} \${2:URL} \${3:width} \${4:height} \${5:title_text} \${6:alt_text} %} - -snippet youtube - {% youtube \${1:video_id} %} - -# The quote should appear only once in the text. It is inherently part of it. -# See http://octopress.org/docs/plugins/pullquote/ for more info. - -snippet pullquote - {% pullquote %} - \${1:text} {" \${2:quote} "} \${3:text} - {% endpullquote %} -`}),ace.define("ace/snippets/markdown",["require","exports","module","ace/snippets/markdown.snippets"],function(y,T,G){T.snippetText=y("./markdown.snippets"),T.scope="markdown"}),function(){ace.require(["ace/snippets/markdown"],function(y){o&&(o.exports=y)})}()})(cve);const uve={components:{"ace-editor":eH},computed:{editorOptions(){return{showPrintMargin:!1,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,autoScrollEditorIntoView:!0,highlightActiveLine:this.isFocused,highlightGutterLine:this.isFocused,minLines:1,maxLines:1/0}},compiledMarkdown(){return Pi.parse(this.cellData.code)}},data(){return{isFocused:!1,items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0}},mounted(){if(this.$devMode){const o=this.$refs.editor;o._editor.renderer.$cursorLayer.element.style.display="none"}window.addEventListener("keydown",this.handleKeyDown)},beforeUnmount(){window.removeEventListener("keydown",this.handleKeyDown)},methods:{handleKeyDown(o){this.isFocused&&o.ctrlKey&&o.key==="Enter"&&this.saveCell()},handleFocus(o){if(o){const b=this.$refs.editor;b._editor.renderer.$cursorLayer.element.style.display=""}else{const b=this.$refs.editor;b._editor.renderer.$cursorLayer.element.style.display="none"}this.isFocused=o},saveCell(){this.$emit("saveCell",this.cellData.id)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(o){this.$emit("createCell",this.cellData.id,o)}}};const fve=ff("span",{class:"py-0 px-2"},".md",-1),dve={key:2},hve=ff("p",{class:"text-caption text-disabled text-right"}," CTRL+Enter to save",-1),mve=[hve],gve=["innerHTML"];function pve(o,b,y,T,G,V){const L=A0("ace-editor");return mo(),Ts(Uo,null,[ct(M3,{flat:"",color:"bluegrey"},{default:jr(()=>[o.$devMode?(mo(),za(sm,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:jr(()=>[ct(kp,{cols:11},{default:jr(()=>[fve]),_:1}),ct(kp,{cols:1,class:"d-flex justify-end align-center py-0"},{default:jr(()=>[ct(js,{small:"",class:"mx-1",color:"primary",onClick:V.saveCell},{default:jr(()=>[ii(" mdi-content-save ")]),_:1},8,["onClick"]),ct(js,{small:"",class:"mx-1",color:"error",onClick:V.deleteCell},{default:jr(()=>[ii(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):cm("",!0),o.$devMode?(mo(),za(L,{key:1,value:y.cellData.code,"onUpdate:value":b[0]||(b[0]=A=>y.cellData.code=A),ref:"editor",class:"editor",theme:"dracula",lang:"markdown",onFocus:b[1]||(b[1]=A=>V.handleFocus(!0)),onBlur:b[2]||(b[2]=A=>V.handleFocus(!1)),options:V.editorOptions},null,8,["value","options"])):cm("",!0),o.$devMode?(mo(),Ts("div",dve,mve)):cm("",!0),ff("div",{class:"markdown-content",innerHTML:V.compiledMarkdown},null,8,gve)]),_:1}),ct(O2,{transition:"scale-transition"},{activator:jr(({props:A})=>[ct(dc,Jo(A,{block:""}),{default:jr(()=>[ct(sm,null,{default:jr(()=>[ct(js,{color:"primary"},{default:jr(()=>[ii("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:jr(()=>[ct($2,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(G.items,(A,s)=>(mo(),za(fm,{key:s},{default:jr(()=>[ct(dc,{block:"",onClick:m=>V.createCell(A.title)},{default:jr(()=>[ii(Sp(A.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})],64)}const vve=Vy(uve,[["render",pve]]);var yve={exports:{}};(function(o){(function(){var b=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var n=typeof e;return n==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":n==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":n},y=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},T=function(e,n){var r=Array.prototype.slice.call(e);return r.sort(n)},G=function(e,n){return V(function(r,f){return e.eq(n(r),n(f))})},V=function(e){return{eq:e}},L=V(function(e,n){return e===n}),A=L,s=function(e){return V(function(n,r){if(n.length!==r.length)return!1;for(var f=n.length,w=0;w{var f;return r(e,n.prototype)?!0:((f=e.constructor)===null||f===void 0?void 0:f.name)===n.name},u=e=>{const n=typeof e;return e===null?"null":n==="object"&&Array.isArray(e)?"array":n==="object"&&i(e,String,(r,f)=>f.isPrototypeOf(r))?"string":n},d=e=>n=>u(n)===e,g=e=>n=>typeof n===e,v=e=>n=>e===n,x=(e,n)=>_(e)&&i(e,n,(r,f)=>c(r)===f),C=d("string"),_=d("object"),$=e=>x(e,Object),S=d("array"),O=v(null),D=g("boolean"),N=v(void 0),M=e=>e==null,k=e=>!M(e),R=g("function"),F=g("number"),H=(e,n)=>{if(S(e)){for(let r=0,f=e.length;r{},P=(e,n)=>(...r)=>e(n.apply(null,r)),ee=(e,n)=>r=>e(n(r)),J=e=>()=>e,K=e=>e,ae=(e,n)=>e===n;function Q(e,...n){return(...r)=>{const f=n.concat(r);return e.apply(null,f)}}const he=e=>n=>!e(n),ge=e=>()=>{throw new Error(e)},Se=e=>e(),ce=e=>{e()},ne=J(!1),fe=J(!0);class X{constructor(n,r){this.tag=n,this.value=r}static some(n){return new X(!0,n)}static none(){return X.singletonNone}fold(n,r){return this.tag?r(this.value):n()}isSome(){return this.tag}isNone(){return!this.tag}map(n){return this.tag?X.some(n(this.value)):X.none()}bind(n){return this.tag?n(this.value):X.none()}exists(n){return this.tag&&n(this.value)}forall(n){return!this.tag||n(this.value)}filter(n){return!this.tag||n(this.value)?this:X.none()}getOr(n){return this.tag?this.value:n}or(n){return this.tag?this:n}getOrThunk(n){return this.tag?this.value:n()}orThunk(n){return this.tag?this:n()}getOrDie(n){if(this.tag)return this.value;throw new Error(n??"Called getOrDie on None")}static from(n){return k(n)?X.some(n):X.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(n){this.tag&&n(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}X.singletonNone=new X(!1);const ye=Array.prototype.slice,Ce=Array.prototype.indexOf,$e=Array.prototype.push,ke=(e,n)=>Ce.call(e,n),Ne=(e,n)=>{const r=ke(e,n);return r===-1?X.none():X.some(r)},Ve=(e,n)=>ke(e,n)>-1,Oe=(e,n)=>{for(let r=0,f=e.length;r{const r=e.length,f=new Array(r);for(let w=0;w{for(let r=0,f=e.length;r{for(let r=e.length-1;r>=0;r--){const f=e[r];n(f,r)}},se=(e,n)=>{const r=[],f=[];for(let w=0,B=e.length;w{const r=[];for(let f=0,w=e.length;f(we(e,(f,w)=>{r=n(r,f,w)}),r),le=(e,n,r)=>(ie(e,(f,w)=>{r=n(r,f,w)}),r),Te=(e,n,r)=>{for(let f=0,w=e.length;fTe(e,n,ne),Me=(e,n)=>{for(let r=0,f=e.length;r{const n=[];for(let r=0,f=e.length;rRe(Fe(e,n)),We=(e,n)=>{for(let r=0,f=e.length;r{const n=ye.call(e,0);return n.reverse(),n},dt=(e,n)=>ue(e,r=>!Ve(n,r)),Ge=(e,n)=>{const r={};for(let f=0,w=e.length;f{const r=ye.call(e,0);return r.sort(n),r},qe=(e,n)=>n>=0&&nqe(e,0),ut=e=>qe(e,e.length-1),tt=R(Array.from)?Array.from:e=>ye.call(e),Ct=(e,n)=>{for(let r=0;r{const r=[],f=R(n)?w=>Oe(r,B=>n(B,w)):w=>Ve(r,w);for(let w=0,B=e.length;w{const r=Yt(e);for(let f=0,w=r.length;f_n(e,(r,f)=>({k:f,v:n(r,f)})),_n=(e,n)=>{const r={};return Ft(e,(f,w)=>{const B=n(f,w);r[B.k]=B.v}),r},sn=e=>(n,r)=>{e[r]=n},Zn=(e,n,r,f)=>{Ft(e,(w,B)=>{(n(w,B)?r:f)(w,B)})},an=(e,n)=>{const r={},f={};return Zn(e,n,sn(r),sn(f)),{t:r,f}},Cn=(e,n)=>{const r={};return Zn(e,n,sn(r),j),r},jn=(e,n)=>{const r=[];return Ft(e,(f,w)=>{r.push(n(f,w))}),r},Wn=e=>jn(e,K),wn=(e,n)=>lt(e,n)?X.from(e[n]):X.none(),lt=(e,n)=>Nt.call(e,n),ft=(e,n)=>lt(e,n)&&e[n]!==void 0&&e[n]!==null,wt=(e,n,r=l)=>h(r).eq(e,n),vt=e=>{const n={};return ie(e,r=>{n[r]={}}),Yt(n)},$t=e=>e.length!==void 0,Ze=Array.isArray,it=e=>{if(Ze(e))return e;{const n=[];for(let r=0,f=e.length;r{if(!e)return!1;if(r=r||e,$t(e)){for(let f=0,w=e.length;f{const r=[];return ht(e,(f,w)=>{r.push(n(f,w,e))}),r},Tt=(e,n)=>{const r=[];return ht(e,(f,w)=>{(!n||n(f,w,e))&&r.push(f)}),r},Et=(e,n)=>{if(e){for(let r=0,f=e.length;r{let w=N(r)?e[0]:r;for(let B=0;B{for(let f=0,w=e.length;fe[e.length-1],Dt=e=>{let n=!1,r;return(...f)=>(n||(n=!0,r=e.apply(null,f)),r)},un=(e,n,r,f)=>{const w=e.isiOS()&&/ipad/i.test(r)===!0,B=e.isiOS()&&!w,Z=e.isiOS()||e.isAndroid(),oe=Z||f("(pointer:coarse)"),be=w||!B&&Z&&f("(min-device-width:768px)"),Pe=B||Z&&!be,Ke=n.isSafari()&&e.isiOS()&&/safari/i.test(r)===!1,Je=!Pe&&!be&&!Ke;return{isiPad:J(w),isiPhone:J(B),isTablet:J(be),isPhone:J(Pe),isTouch:J(oe),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:J(Ke),isDesktop:J(Je)}},Un=(e,n)=>{for(let r=0;r{const r=Un(e,n);if(!r)return{major:0,minor:0};const f=w=>Number(n.replace(r,"$"+w));return pr(f(1),f(2))},Er=(e,n)=>{const r=String(n).toLowerCase();return e.length===0?zt():tr(e,r)},zt=()=>pr(0,0),pr=(e,n)=>({major:e,minor:n}),Gn={nu:pr,detect:Er,unknown:zt},Ir=(e,n)=>Ct(n.brands,r=>{const f=r.brand.toLowerCase();return de(e,w=>{var B;return f===((B=w.brand)===null||B===void 0?void 0:B.toLowerCase())}).map(w=>({current:w.name,version:Gn.nu(parseInt(r.version,10),0)}))}),Tr=(e,n)=>{const r=String(n).toLowerCase();return de(e,f=>f.search(r))},rr=(e,n)=>Tr(e,n).map(r=>{const f=Gn.detect(r.versionRegexes,n);return{current:r.name,version:f}}),Yr=(e,n)=>Tr(e,n).map(r=>{const f=Gn.detect(r.versionRegexes,n);return{current:r.name,version:f}}),_r=(e,n)=>e.substring(n),Ln=(e,n,r)=>n===""||e.length>=n.length&&e.substr(r,r+n.length)===n,xr=(e,n)=>wr(e,n)?_r(e,n.length):e,or=(e,n,r=0,f)=>{const w=e.indexOf(n,r);return w!==-1?N(f)?!0:w+n.length<=f:!1},wr=(e,n)=>Ln(e,n,0),ro=(e,n)=>Ln(e,n,e.length-n.length),vo=e=>n=>n.replace(e,""),Cr=vo(/^\s+|\s+$/g),He=vo(/^\s+/g),De=vo(/\s+$/g),St=e=>e.length>0,kt=e=>!St(e),Pt=(e,n)=>n<=0?"":new Array(n+1).join(e),Bt=(e,n=10)=>{const r=parseInt(e,n);return isNaN(r)?X.none():X.some(r)},Ut=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Ot=e=>n=>or(n,e),_t=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:e=>or(e,"edge/")&&or(e,"chrome")&&or(e,"safari")&&or(e,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ut],search:e=>or(e,"chrome")&&!or(e,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:e=>or(e,"msie")||or(e,"trident")},{name:"Opera",versionRegexes:[Ut,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Ot("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Ot("firefox")},{name:"Safari",versionRegexes:[Ut,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:e=>(or(e,"safari")||or(e,"mobile/"))&&or(e,"applewebkit")}],qt=[{name:"Windows",search:Ot("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:e=>or(e,"iphone")||or(e,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Ot("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Ot("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Ot("linux"),versionRegexes:[]},{name:"Solaris",search:Ot("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Ot("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Ot("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],cn={browsers:J(_t),oses:J(qt)},Qt="Edge",nn="Chromium",Sn="IE",bn="Opera",gn="Firefox",Qn="Safari",Bn=()=>Hr({current:void 0,version:Gn.unknown()}),Hr=e=>{const n=e.current,r=e.version,f=w=>()=>n===w;return{current:n,version:r,isEdge:f(Qt),isChromium:f(nn),isIE:f(Sn),isOpera:f(bn),isFirefox:f(gn),isSafari:f(Qn)}},fr={unknown:Bn,nu:Hr,edge:J(Qt),chromium:J(nn),ie:J(Sn),opera:J(bn),firefox:J(gn),safari:J(Qn)},Vr="Windows",ar="iOS",cr="Android",Kr="Linux",qr="macOS",So="Solaris",wa="FreeBSD",bo="ChromeOS",Zo=()=>oa({current:void 0,version:Gn.unknown()}),oa=e=>{const n=e.current,r=e.version,f=w=>()=>n===w;return{current:n,version:r,isWindows:f(Vr),isiOS:f(ar),isAndroid:f(cr),isMacOS:f(qr),isLinux:f(Kr),isSolaris:f(So),isFreeBSD:f(wa),isChromeOS:f(bo)}},Va={unknown:Zo,nu:oa,windows:J(Vr),ios:J(ar),android:J(cr),linux:J(Kr),macos:J(qr),solaris:J(So),freebsd:J(wa),chromeos:J(bo)},Fa={detect:(e,n,r)=>{const f=cn.browsers(),w=cn.oses(),B=n.bind(be=>Ir(f,be)).orThunk(()=>rr(f,e)).fold(fr.unknown,fr.nu),Z=Yr(w,e).fold(Va.unknown,Va.nu),oe=un(Z,B,e,r);return{browser:B,os:Z,deviceType:oe}}},Os=e=>window.matchMedia(e).matches;let Zl=Dt(()=>Fa.detect(navigator.userAgent,X.from(navigator.userAgentData),Os));const Ys=()=>Zl(),Ec=navigator.userAgent,ks=Ys(),Wa=ks.browser,ss=ks.os,Ya=ks.deviceType,_c=Ec.indexOf("Windows Phone")!==-1,Lr={transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",documentMode:Wa.isIE()?document.documentMode||7:10,cacheSuffix:null,container:null,canHaveCSP:!Wa.isIE(),windowsPhone:_c,browser:{current:Wa.current,version:Wa.version,isChromium:Wa.isChromium,isEdge:Wa.isEdge,isFirefox:Wa.isFirefox,isIE:Wa.isIE,isOpera:Wa.isOpera,isSafari:Wa.isSafari},os:{current:ss.current,version:ss.version,isAndroid:ss.isAndroid,isChromeOS:ss.isChromeOS,isFreeBSD:ss.isFreeBSD,isiOS:ss.isiOS,isLinux:ss.isLinux,isMacOS:ss.isMacOS,isSolaris:ss.isSolaris,isWindows:ss.isWindows},deviceType:{isDesktop:Ya.isDesktop,isiPad:Ya.isiPad,isiPhone:Ya.isiPhone,isPhone:Ya.isPhone,isTablet:Ya.isTablet,isTouch:Ya.isTouch,isWebView:Ya.isWebView}},jl=/^\s*|\s*$/g,Ka=e=>M(e)?"":(""+e).replace(jl,""),yi=(e,n)=>n?n==="array"&&Ze(e)?!0:typeof e===n:e!==void 0,Hf=(e,n,r={})=>{const f=C(e)?e.split(n||","):e||[];let w=f.length;for(;w--;)r[f[w]]={};return r},Xa=lt,Zc=(e,...n)=>{for(let r=0;rn.call(f,w,B,r)===!1?!1:(zf(w,n,r,f),!0)))},ur={trim:Ka,isArray:Ze,is:yi,toArray:it,makeMap:Hf,each:ht,map:pt,grep:Tt,inArray:Et,hasOwn:Xa,extend:Zc,walk:zf,resolve:(e,n=window)=>{const r=e.split(".");for(let f=0,w=r.length;fS(e)?e:e===""?[]:pt(e.split(n||","),Ka),_addCacheSuffix:e=>{const n=Lr.cacheSuffix;return n&&(e+=(e.indexOf("?")===-1?"?":"&")+n),e}},Ms=(e,n,r=ae)=>e.exists(f=>r(f,n)),li=(e,n,r=ae)=>Es(e,n,r).getOr(e.isNone()&&n.isNone()),Rs=e=>{const n=[],r=f=>{n.push(f)};for(let f=0;fe.isSome()&&n.isSome()?X.some(r(e.getOrDie(),n.getOrDie())):X.none(),qi=(e,n,r,f)=>e.isSome()&&n.isSome()&&r.isSome()?X.some(f(e.getOrDie(),n.getOrDie(),r.getOrDie())):X.none(),Bo=(e,n)=>e?X.some(n):X.none(),Ks=typeof window<"u"?window:Function("return this;")(),Bs=(e,n)=>{let r=n??Ks;for(let f=0;f{const r=e.split(".");return Bs(r,n)},Ls=(e,n)=>df(e,n),cu=(e,n)=>{const r=Ls(e,n);if(r==null)throw new Error(e+" not available on this browser");return r},uu=Object.getPrototypeOf,Vf=e=>cu("HTMLElement",e),Ma=e=>{const n=df("ownerDocument.defaultView",e);return _(e)&&(Vf(n).prototype.isPrototypeOf(e)||/^HTML\w*Element$/.test(uu(e).constructor.name))},Uf=8,gc=9,al=11,wd=1,dh=3,La=e=>e.dom.nodeName.toLowerCase(),ci=e=>e.dom.nodeType,Wu=e=>n=>ci(n)===e,P2=e=>ci(e)===Uf||La(e)==="#comment",Ps=e=>sl(e)&&Ma(e.dom),sl=Wu(wd),Ei=Wu(dh),Zy=Wu(gc),Ag=Wu(al),Yc=e=>n=>sl(n)&&La(n)===e,fu=(e,n,r)=>{if(C(r)||D(r)||F(r))e.setAttribute(n,r+"");else throw console.error("Invalid call to Attribute.set. Key ",n,":: Value ",r,":: Element ",e),new Error("Attribute value was not simple")},ws=(e,n,r)=>{fu(e.dom,n,r)},Kc=(e,n)=>{const r=e.dom;Ft(n,(f,w)=>{fu(r,w,f)})},il=(e,n)=>{const r=e.dom.getAttribute(n);return r===null?void 0:r},Yl=(e,n)=>X.from(il(e,n)),Gu=(e,n)=>{const r=e.dom;return r&&r.hasAttribute?r.hasAttribute(n):!1},Xs=(e,n)=>{e.dom.removeAttribute(n)},Zu=e=>{const n=e.dom.attributes;return n==null||n.length===0},Mg=e=>le(e.dom.attributes,(n,r)=>(n[r.name]=r.value,n),{}),Eg=(e,n)=>{const r=il(e,n);return r===void 0||r===""?[]:r.split(" ")},D0=(e,n,r)=>{const w=Eg(e,n).concat([r]);return ws(e,n,w.join(" ")),!0},Dp=(e,n,r)=>{const f=ue(Eg(e,n),w=>w!==r);return f.length>0?ws(e,n,f.join(" ")):Xs(e,n),!1},ju=e=>e.dom.classList!==void 0,_g=e=>Eg(e,"class"),Kl=(e,n)=>D0(e,"class",n),$p=(e,n)=>Dp(e,"class",n),$0=(e,n)=>Ve(_g(e),n)?$p(e,n):Kl(e,n),hh=(e,n)=>{ju(e)?e.dom.classList.add(n):Kl(e,n)},O0=e=>{(ju(e)?e.dom.classList:_g(e)).length===0&&Xs(e,"class")},mh=(e,n)=>{ju(e)?e.dom.classList.remove(n):$p(e,n),O0(e)},jy=(e,n)=>{const r=ju(e)?e.dom.classList.toggle(n):$0(e,n);return O0(e),r},Cd=(e,n)=>ju(e)&&e.dom.classList.contains(n),Yy=(e,n)=>{const f=(n||document).createElement("div");if(f.innerHTML=e,!f.hasChildNodes()||f.childNodes.length>1){const w="HTML does not have a single root node";throw console.error(w,e),new Error(w)}return gh(f.childNodes[0])},Ky=(e,n)=>{const f=(n||document).createElement(e);return gh(f)},Xy=(e,n)=>{const f=(n||document).createTextNode(e);return gh(f)},gh=e=>{if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},jt={fromHtml:Yy,fromTag:Ky,fromText:Xy,fromDom:gh,fromPoint:(e,n,r)=>X.from(e.dom.elementFromPoint(n,r)).map(gh)},ph=(e,n)=>{const r=[],f=B=>(r.push(B),n(B));let w=n(e);do w=w.bind(f);while(w.isSome());return r},du=(e,n)=>{const r=e.dom;if(r.nodeType!==wd)return!1;{const f=r;if(f.matches!==void 0)return f.matches(n);if(f.msMatchesSelector!==void 0)return f.msMatchesSelector(n);if(f.webkitMatchesSelector!==void 0)return f.webkitMatchesSelector(n);if(f.mozMatchesSelector!==void 0)return f.mozMatchesSelector(n);throw new Error("Browser lacks native selectors")}},Op=e=>e.nodeType!==wd&&e.nodeType!==gc&&e.nodeType!==al||e.childElementCount===0,Rg=(e,n)=>{const r=n===void 0?document:n.dom;return Op(r)?[]:Fe(r.querySelectorAll(e),jt.fromDom)},I2=(e,n)=>{const r=n===void 0?document:n.dom;return Op(r)?X.none():X.from(r.querySelector(e)).map(jt.fromDom)},Ba=(e,n)=>e.dom===n.dom,Dl=(e,n)=>{const r=e.dom,f=n.dom;return r===f?!1:r.contains(f)},hf=e=>jt.fromDom(e.dom.ownerDocument),mf=e=>Zy(e)?e:hf(e),I0=e=>jt.fromDom(mf(e).dom.documentElement),mm=e=>jt.fromDom(mf(e).dom.defaultView),Rc=e=>X.from(e.dom.parentNode).map(jt.fromDom),gm=e=>X.from(e.dom.parentElement).map(jt.fromDom),N0=(e,n)=>{const r=R(n)?n:ne;let f=e.dom;const w=[];for(;f.parentNode!==null&&f.parentNode!==void 0;){const B=f.parentNode,Z=jt.fromDom(B);if(w.push(Z),r(Z)===!0)break;f=B}return w},Jy=e=>{const n=r=>ue(r,f=>!Ba(e,f));return Rc(e).map(zi).map(n).getOr([])},hu=e=>X.from(e.dom.previousSibling).map(jt.fromDom),Lg=e=>X.from(e.dom.nextSibling).map(jt.fromDom),F0=e=>ot(ph(e,hu)),pc=e=>ph(e,Lg),zi=e=>Fe(e.dom.childNodes,jt.fromDom),Sd=(e,n)=>{const r=e.dom.childNodes;return X.from(r[n]).map(jt.fromDom)},pm=e=>Sd(e,0),Xl=e=>Sd(e,e.dom.childNodes.length-1),ll=e=>e.dom.childNodes.length,mu=e=>e.dom.hasChildNodes(),Qy=e=>{const n=e.dom.head;if(n==null)throw new Error("Head is not available yet");return jt.fromDom(n)},Dg=e=>Ag(e)&&k(e.dom.host),B0=R(Element.prototype.attachShadow)&&R(Node.prototype.getRootNode),Pp=J(B0),Yu=B0?e=>jt.fromDom(e.dom.getRootNode()):mf,qy=e=>Dg(e)?e:Qy(mf(e)),_3=e=>Dg(e)?e:jt.fromDom(mf(e).dom.body),R3=e=>{const n=Yu(e);return Dg(n)?X.some(n):X.none()},N2=e=>jt.fromDom(e.dom.host),$g=e=>{if(Pp()&&k(e.target)){const n=jt.fromDom(e.target);if(sl(n)&&Ip(n)&&e.composed&&e.composedPath){const r=e.composedPath();if(r)return gt(r)}}return X.from(e.target)},Ip=e=>k(e.dom.shadowRoot),Td=e=>{const n=Ei(e)?e.dom.parentNode:e.dom;if(n==null||n.ownerDocument===null)return!1;const r=n.ownerDocument;return R3(jt.fromDom(n)).fold(()=>r.body.contains(n),ee(Td,N2))};var Hs=(e,n,r,f,w)=>e(r,f)?X.some(r):R(w)&&w(r)?X.none():n(r,f,w);const Js=(e,n,r)=>{let f=e.dom;const w=R(r)?r:ne;for(;f.parentNode;){f=f.parentNode;const B=jt.fromDom(f);if(n(B))return X.some(B);if(w(B))break}return X.none()},Xc=(e,n,r)=>Hs((w,B)=>B(w),Js,e,n,r),H0=(e,n)=>{const r=e.dom;return r.parentNode?eb(jt.fromDom(r.parentNode),f=>!Ba(e,f)&&n(f)):X.none()},eb=(e,n)=>{const r=w=>n(jt.fromDom(w));return de(e.dom.childNodes,r).map(jt.fromDom)},bl=(e,n)=>{const r=f=>{for(let w=0;wJs(e,f=>du(f,n),r),Jl=(e,n)=>I2(n,e),Ku=(e,n,r)=>Hs((w,B)=>du(w,B),vm,e,n,r),z0=e=>Ku(e,"[contenteditable]"),Wo=(e,n=!1)=>Td(e)?e.dom.isContentEditable:z0(e).fold(J(n),r=>vc(r)==="true"),vc=e=>e.dom.contentEditable,kd=e=>e.style!==void 0&&R(e.style.getPropertyValue),vh=(e,n,r)=>{if(!C(r))throw console.error("Invalid call to CSS.set. Property ",n,":: Value ",r,":: Element ",e),new Error("CSS value must be a string: "+r);kd(e)&&e.style.setProperty(n,r)},V0=(e,n)=>{kd(e)&&e.style.removeProperty(n)},U0=(e,n,r)=>{const f=e.dom;vh(f,n,r)},$l=(e,n)=>{const r=e.dom;Ft(n,(f,w)=>{vh(r,w,f)})},ui=(e,n)=>{const r=e.dom,w=window.getComputedStyle(r).getPropertyValue(n);return w===""&&!Td(e)?Lc(r,n):w},Lc=(e,n)=>kd(e)?e.style.getPropertyValue(n):"",_i=(e,n)=>{const r=e.dom,f=Lc(r,n);return X.from(f).filter(w=>w.length>0)},W0=e=>{const n={},r=e.dom;if(kd(r))for(let f=0;f{const r=e.dom;V0(r,n),Ms(Yl(e,"style").map(Cr),"")&&Xs(e,"style")},fi=e=>e.dom.offsetWidth,Ri=(e,n)=>{Rc(e).each(f=>{f.dom.insertBefore(n.dom,e.dom)})},gu=(e,n)=>{Lg(e).fold(()=>{Rc(e).each(w=>{di(w,n)})},f=>{Ri(f,n)})},yh=(e,n)=>{pm(e).fold(()=>{di(e,n)},f=>{e.dom.insertBefore(n.dom,f.dom)})},di=(e,n)=>{e.dom.appendChild(n.dom)},ym=(e,n)=>{Ri(e,n),di(n,e)},Og=(e,n)=>{ie(n,(r,f)=>{const w=f===0?e:n[f-1];gu(w,r)})},hs=(e,n)=>{ie(n,r=>{di(e,r)})},Ad=e=>{e.dom.textContent="",ie(zi(e),n=>{Ua(n)})},Ua=e=>{const n=e.dom;n.parentNode!==null&&n.parentNode.removeChild(n)},Xu=e=>{const n=zi(e);n.length>0&&Og(e,n),Ua(e)},G0=(e,n)=>{const f=(n||document).createElement("div");return f.innerHTML=e,zi(jt.fromDom(f))},Pg=e=>Fe(e,jt.fromDom),aa=e=>e.dom.innerHTML,bh=(e,n)=>{const f=hf(e).dom,w=jt.fromDom(f.createDocumentFragment()),B=G0(n,f);hs(w,B),Ad(e),di(e,w)},Fp=e=>{const n=jt.fromTag("div"),r=jt.fromDom(e.dom.cloneNode(!0));return di(n,r),aa(n)},Ig=(e,n,r,f,w,B,Z)=>({target:e,x:n,y:r,stop:f,prevent:w,kill:B,raw:Z}),F2=e=>{const n=jt.fromDom($g(e).getOr(e.target)),r=()=>e.stopPropagation(),f=()=>e.preventDefault(),w=P(f,r);return Ig(n,e.clientX,e.clientY,r,f,w,e)},B2=(e,n)=>r=>{e(r)&&n(F2(r))},Z0=(e,n,r,f,w)=>{const B=B2(r,f);return e.dom.addEventListener(n,B,w),{unbind:Q(Bp,e,n,B,w)}},xh=(e,n,r,f)=>Z0(e,n,r,f,!1),Bp=(e,n,r,f)=>{e.dom.removeEventListener(n,r,f)},wh=(e,n)=>({left:e,top:n,translate:(f,w)=>wh(e+f,n+w)}),bm=wh,tb=e=>{const n=e.getBoundingClientRect();return bm(n.left,n.top)},pu=(e,n)=>e!==void 0?e:n!==void 0?n:0,nb=e=>{const n=e.dom.ownerDocument,r=n.body,f=n.defaultView,w=n.documentElement;if(r===e.dom)return bm(r.offsetLeft,r.offsetTop);const B=pu(f==null?void 0:f.pageYOffset,w.scrollTop),Z=pu(f==null?void 0:f.pageXOffset,w.scrollLeft),oe=pu(w.clientTop,r.clientTop),be=pu(w.clientLeft,r.clientLeft);return Ch(e).translate(Z-be,B-oe)},Ch=e=>{const n=e.dom,f=n.ownerDocument.body;return f===n?bm(f.offsetLeft,f.offsetTop):Td(e)?tb(n):bm(0,0)},Jc=e=>{const n=e!==void 0?e.dom:document,r=n.body.scrollLeft||n.documentElement.scrollLeft,f=n.body.scrollTop||n.documentElement.scrollTop;return bm(r,f)},Hp=(e,n,r)=>{const w=(r!==void 0?r.dom:document).defaultView;w&&w.scrollTo(e,n)},j0=(e,n)=>{Ys().browser.isSafari()&&R(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(n)},xm=e=>{const n=e===void 0?window:e;return Ys().browser.isFirefox()?X.none():X.from(n.visualViewport)},Y0=(e,n,r,f)=>({x:e,y:n,width:r,height:f,right:e+r,bottom:n+f}),K0=e=>{const n=e===void 0?window:e,r=n.document,f=Jc(jt.fromDom(r));return xm(n).fold(()=>{const w=n.document.documentElement,B=w.clientWidth,Z=w.clientHeight;return Y0(f.left,f.top,B,Z)},w=>Y0(Math.max(w.pageLeft,f.left),Math.max(w.pageTop,f.top),w.width,w.height))},X0=(e,n)=>ue(zi(e),n),zp=(e,n)=>{let r=[];return ie(zi(e),f=>{n(f)&&(r=r.concat([f])),r=r.concat(zp(f,n))}),r},Vi=(e,n)=>Rg(n,e),Ng=(e,n,r)=>vm(e,n,r).isSome();class es{constructor(n,r){this.node=n,this.rootNode=r,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}current(){return this.node}next(n){return this.node=this.findSibling(this.node,"firstChild","nextSibling",n),this.node}prev(n){return this.node=this.findSibling(this.node,"lastChild","previousSibling",n),this.node}prev2(n){return this.node=this.findPreviousNode(this.node,n),this.node}findSibling(n,r,f,w){if(n){if(!w&&n[r])return n[r];if(n!==this.rootNode){let B=n[f];if(B)return B;for(let Z=n.parentNode;Z&&Z!==this.rootNode;Z=Z.parentNode)if(B=Z[f],B)return B}}}findPreviousNode(n,r){if(n){const f=n.previousSibling;if(this.rootNode&&f===this.rootNode)return;if(f){if(!r){for(let B=f.lastChild;B;B=B.lastChild)if(!B.lastChild)return B}return f}const w=n.parentNode;if(w&&w!==this.rootNode)return w}}}const io=e=>n=>!!n&&n.nodeType===e,vu=e=>!!e&&!Object.getPrototypeOf(e),Gr=io(1),xl=e=>Gr(e)&&Ps(jt.fromDom(e)),H2=e=>Gr(e)&&e.namespaceURI==="http://www.w3.org/2000/svg",Wf=e=>{const n=e.toLowerCase();return r=>k(r)&&r.nodeName.toLowerCase()===n},oi=e=>{const n=e.map(r=>r.toLowerCase());return r=>{if(r&&r.nodeName){const f=r.nodeName.toLowerCase();return Ve(n,f)}return!1}},Gf=(e,n)=>{const r=n.toLowerCase().split(" ");return f=>{if(Gr(f)){const w=f.ownerDocument.defaultView;if(w)for(let B=0;Bn=>Gr(n)&&n.hasAttribute(e),Ui=(e,n)=>r=>Gr(r)&&r.getAttribute(e)===n,Ju=e=>Gr(e)&&e.hasAttribute("data-mce-bogus"),Sh=e=>Gr(e)&&e.getAttribute("data-mce-bogus")==="all",yu=e=>Gr(e)&&e.tagName==="TABLE",J0=e=>n=>!!(xl(n)&&(n.contentEditable===e||n.getAttribute("data-mce-contenteditable")===e)),Vp=oi(["textarea","input"]),ir=io(3),rb=io(4),cl=io(7),gf=io(8),wm=io(9),ns=io(11),Ja=Wf("br"),ul=Wf("img"),wl=J0("true"),fa=J0("false"),Bg=oi(["td","th"]),Wi=oi(["td","th","caption"]),zs=oi(["video","audio","object","embed"]),Hg=Wf("li"),qn=Wf("details"),yc=Wf("summary"),Cm="\uFEFF",Da=" ",Qu=e=>e===Cm,z2=e=>e.replace(/\uFEFF/g,""),Up=((e,n)=>{const r=B=>{if(!e(B))throw new Error("Can only get "+n+" value of a "+n+" node");return f(B).getOr("")},f=B=>e(B)?X.from(B.dom.nodeValue):X.none();return{get:r,getOption:f,set:(B,Z)=>{if(!e(B))throw new Error("Can only set raw "+n+" value of a "+n+" node");B.dom.nodeValue=Z}}})(Ei,"text"),Dc=e=>Up.get(e),Wp=e=>Up.getOption(e),Ol=(e,n)=>Up.set(e,n),Ia=["td","th"],$c=["thead","tbody","tfoot"],Qs=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],Gi=["li","dd","dt"],Zf=["ul","ol","dl"],pf=["pre","script","textarea","style"],jf=e=>{let n;return r=>(n=n||Ge(e,fe),lt(n,La(r)))},Ql=e=>La(e)==="table",vf=e=>sl(e)&&La(e)==="br",En=jf(Qs),ql=jf(Zf),yf=jf(Gi),bf=jf($c),bc=jf(Ia),Li=jf(pf),bi=e=>{const n=[];let r=e.dom;for(;r;)n.push(jt.fromDom(r)),r=r.lastChild;return n},L3=e=>{const n=Vi(e,"br"),r=ue(bi(e).slice(-1),vf);n.length===r.length&&ie(r,Ua)},ec=()=>{const e=jt.fromTag("br");return ws(e,"data-mce-bogus","1"),e},U=e=>{Ad(e),di(e,ec())},q=(e,n)=>{Xl(e).each(r=>{hu(r).each(f=>{n.isBlock(La(e))&&vf(r)&&n.isBlock(La(f))&&Ua(r)})})},ve=Cm,Ae=Qu,_e=z2,Ie=e=>e.insertContent(ve,{preserve_zwsp:!0}),Qe=Gr,Ye=ir,rt=e=>(Ye(e)&&(e=e.parentNode),Qe(e)&&e.hasAttribute("data-mce-caret")),yt=e=>Ye(e)&&Ae(e.data),bt=e=>rt(e)||yt(e),Vt=e=>e.firstChild!==e.lastChild||!Ja(e.firstChild),Wt=(e,n)=>{var r;const w=((r=e.ownerDocument)!==null&&r!==void 0?r:document).createTextNode(ve),B=e.parentNode;if(n){const Z=e.previousSibling;if(Ye(Z)){if(bt(Z))return Z;if(dn(Z))return Z.splitText(Z.data.length-1)}B==null||B.insertBefore(w,e)}else{const Z=e.nextSibling;if(Ye(Z)){if(bt(Z))return Z;if(en(Z))return Z.splitText(1),Z}e.nextSibling?B==null||B.insertBefore(w,e.nextSibling):B==null||B.appendChild(w)}return w},mn=e=>{const n=e.container();return ir(n)?n.data.charAt(e.offset())===ve||e.isAtStart()&&yt(n.previousSibling):!1},An=e=>{const n=e.container();return ir(n)?n.data.charAt(e.offset()-1)===ve||e.isAtEnd()&&yt(n.nextSibling):!1},Kt=(e,n,r)=>{var f;const B=((f=n.ownerDocument)!==null&&f!==void 0?f:document).createElement(e);B.setAttribute("data-mce-caret",r?"before":"after"),B.setAttribute("data-mce-bogus","all"),B.appendChild(ec().dom);const Z=n.parentNode;return r?Z==null||Z.insertBefore(B,n):n.nextSibling?Z==null||Z.insertBefore(B,n.nextSibling):Z==null||Z.appendChild(B),B},en=e=>Ye(e)&&e.data[0]===ve,dn=e=>Ye(e)&&e.data[e.data.length-1]===ve,Rn=e=>{var n;const r=e.getElementsByTagName("br"),f=r[r.length-1];Ju(f)&&((n=f.parentNode)===null||n===void 0||n.removeChild(f))},Mn=e=>e&&e.hasAttribute("data-mce-caret")?(Rn(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("data-mce-style"),e.removeAttribute("_moz_abspos"),e):null,vn=e=>rt(e.startContainer),lr=wl,zr=fa,Jr=Ja,kr=ir,eo=oi(["script","style","textarea"]),lo=oi(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Ko=oi(["table"]),yo=bt,fo=e=>yo(e)?!1:kr(e)?!eo(e.parentNode):lo(e)||Jr(e)||Ko(e)||Vs(e),Ha=e=>Gr(e)&&e.getAttribute("unselectable")==="true",Vs=e=>!Ha(e)&&zr(e),is=(e,n)=>{for(let r=e.parentNode;r&&r!==n;r=r.parentNode){if(Vs(r))return!1;if(lr(r))return!0}return!0},$r=e=>Vs(e)?!le(tt(e.getElementsByTagName("*")),(n,r)=>n||lr(r),!1):!1,_o=e=>lo(e)||$r(e),sa=(e,n)=>fo(e)&&is(e,n),Ca=/^[ \t\r\n]*$/,As=e=>Ca.test(e),qs=e=>{for(const n of e)if(!Qu(n))return!1;return!0},Di=e=>" \f \v".indexOf(e)!==-1,xi=e=>e===` -`||e==="\r",xc=(e,n)=>n=0?xi(e[n]):!1,Ii=(e,n=4,r=!0,f=!0)=>{const w=Pt(" ",n),B=e.replace(/\t/g,w);return le(B,(oe,be)=>Di(be)||be===Da?oe.pcIsSpace||oe.str===""&&r||oe.str.length===B.length-1&&f||xc(B,oe.str.length+1)?{pcIsSpace:!1,str:oe.str+Da}:{pcIsSpace:!0,str:oe.str+" "}:{pcIsSpace:xi(be),str:oe.str+be},{pcIsSpace:!1,str:""}).str},tc=(e,n)=>{const r=jt.fromDom(n),f=jt.fromDom(e);return Ng(f,"pre,code",Q(Ba,r))},Cl=(e,n)=>ir(e)&&As(e.data)&&!tc(e,n),Ga=e=>Gr(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id")),xu=(e,n)=>fo(e)&&!Cl(e,n)||Ga(e)||qu(e),qu=Fg("data-mce-bookmark"),Sl=Fg("data-mce-bogus"),wi=Ui("data-mce-bogus","all"),Tl=e=>gm(jt.fromDom(e)).exists(n=>!Wo(n)),Ci=(e,n)=>{let r=0;if(xu(e,e))return!1;{let f=e.firstChild;if(!f)return!0;const w=new es(f,e);do{if(n){if(wi(f)){f=w.next(!0);continue}if(Sl(f)){f=w.next();continue}}if(wl(f)&&Tl(f))return!1;if(Ja(f)){r++,f=w.next();continue}if(xu(f,e))return!1;f=w.next()}while(f);return r<=1}},Za=(e,n=!0)=>Ci(e.dom,n),nc=e=>e.toLowerCase()==="svg",Yf=e=>nc(e.nodeName),wu=e=>(e==null?void 0:e.nodeName)==="svg"?"svg":"html",Th=["svg"],Kf=()=>{let e=[];const n=()=>e[e.length-1];return{track:B=>{Yf(B)&&e.push(B);let Z=n();return Z&&!Z.contains(B)&&(e.pop(),Z=n()),wu(Z)},current:()=>wu(n()),reset:()=>{e=[]}}},Q0="data-mce-block",ob=e=>ue(Yt(e),n=>!/[A-Z]/.test(n)),Md=e=>Fe(ob(e),n=>`${n}:`+Fe(Th,r=>`not(${r} ${n})`).join(":")).join(","),Xf=(e,n)=>k(n.querySelector(e))?(n.setAttribute(Q0,"true"),n.getAttribute("data-mce-selected")==="inline-boundary"&&n.removeAttribute("data-mce-selected"),!0):(n.removeAttribute(Q0),!1),Cu=(e,n)=>{const r=Md(e.getTransparentElements()),f=Md(e.getBlockElements());return ue(n.querySelectorAll(r),w=>Xf(f,w))},Sm=(e,n)=>{var r;const f=n?"lastChild":"firstChild";for(let w=e[f];w;w=w[f])if(Za(jt.fromDom(w))){(r=w.parentNode)===null||r===void 0||r.removeChild(w);return}},Tm=(e,n)=>{const r=document.createRange(),f=e.parentNode;if(f){r.setStartBefore(e),r.setEndBefore(n);const w=r.extractContents();Sm(w,!0),r.setStartAfter(n),r.setEndAfter(e);const B=r.extractContents();Sm(B,!1),Za(jt.fromDom(w))||f.insertBefore(w,e),Za(jt.fromDom(n))||f.insertBefore(n,e),Za(jt.fromDom(B))||f.insertBefore(B,e),f.removeChild(e)}},D3=(e,n,r)=>{const f=e.getBlockElements(),w=jt.fromDom(n),B=oe=>La(oe)in f,Z=oe=>Ba(oe,w);ie(Pg(r),oe=>{Js(oe,B,Z).each(be=>{const Pe=X0(oe,Ke=>B(Ke)&&!e.isValidChild(La(be),La(Ke)));if(Pe.length>0){const Ke=gm(be);ie(Pe,Je=>{Js(Je,B,Z).each(at=>{Tm(at.dom,Je.dom)})}),Ke.each(Je=>Cu(e,Je.dom))}})})},ab=(e,n,r)=>{ie([...r,...pa(e,n)?[n]:[]],f=>ie(Vi(jt.fromDom(f),f.nodeName.toLowerCase()),w=>{go(e,w.dom)&&Xu(w)}))},q0=(e,n)=>{const r=Cu(e,n);D3(e,n,r),ab(e,n,r)},sb=(e,n)=>{if(t1(e,n)){const r=Md(e.getBlockElements());Xf(r,n)}},$3=(e,n,r)=>{const f=B=>Ba(B,jt.fromDom(n)),w=N0(jt.fromDom(r),f);qe(w,w.length-2).filter(sl).fold(()=>q0(e,n),B=>q0(e,B.dom))},ib=e=>e.hasAttribute(Q0),e1=(e,n)=>lt(e.getTransparentElements(),n),t1=(e,n)=>Gr(n)&&e1(e,n.nodeName),pa=(e,n)=>t1(e,n)&&ib(n),go=(e,n)=>t1(e,n)&&!ib(n),kh=(e,n)=>n.type===1&&e1(e,n.name)&&C(n.attr(Q0)),lb=Ys().browser,n1=e=>de(e,sl),BE=e=>lb.isFirefox()&&La(e)==="table"?n1(zi(e)).filter(n=>La(n)==="caption").bind(n=>n1(pc(n)).map(r=>{const f=r.dom.offsetTop,w=n.dom.offsetTop,B=n.dom.offsetHeight;return f<=w?-B:0})).getOr(0):0,V2=(e,n)=>e.children&&Ve(e.children,n),bs=(e,n,r)=>{let f=0,w=0;const B=e.ownerDocument;if(r=r||e,n){if(r===e&&n.getBoundingClientRect&&ui(jt.fromDom(e),"position")==="static"){const oe=n.getBoundingClientRect();return f=oe.left+(B.documentElement.scrollLeft||e.scrollLeft)-B.documentElement.clientLeft,w=oe.top+(B.documentElement.scrollTop||e.scrollTop)-B.documentElement.clientTop,{x:f,y:w}}let Z=n;for(;Z&&Z!==r&&Z.nodeType&&!V2(Z,r);){const oe=Z;f+=oe.offsetLeft||0,w+=oe.offsetTop||0,Z=oe.offsetParent}for(Z=n.parentNode;Z&&Z!==r&&Z.nodeType&&!V2(Z,r);)f-=Z.scrollLeft||0,w-=Z.scrollTop||0,Z=Z.parentNode;w+=BE(jt.fromDom(n))}return{x:f,y:w}},U2=(e,n={})=>{let r=0;const f={},w=jt.fromDom(e),B=mf(w),Z=ln=>{n.referrerPolicy=ln},oe=ln=>{n.contentCssCors=ln},be=ln=>{di(qy(w),ln)},Pe=ln=>{const xn=qy(w);Jl(xn,"#"+ln).each(Ua)},Ke=ln=>wn(f,ln).getOrThunk(()=>({id:"mce-u"+r++,passed:[],failed:[],count:0})),Je=ln=>new Promise((xn,yn)=>{let $n;const nr=ur._addCacheSuffix(ln),mr=Ke(nr);f[nr]=mr,mr.count++;const Nr=(Qr,ho)=>{ie(Qr,ce),mr.status=ho,mr.passed=[],mr.failed=[],$n&&($n.onload=null,$n.onerror=null,$n=null)},zn=()=>Nr(mr.passed,2),Nn=()=>Nr(mr.failed,3);if(xn&&mr.passed.push(xn),yn&&mr.failed.push(yn),mr.status===1)return;if(mr.status===2){zn();return}if(mr.status===3){Nn();return}mr.status=1;const er=jt.fromTag("link",B.dom);Kc(er,{rel:"stylesheet",type:"text/css",id:mr.id}),n.contentCssCors&&ws(er,"crossOrigin","anonymous"),n.referrerPolicy&&ws(er,"referrerpolicy",n.referrerPolicy),$n=er.dom,$n.onload=zn,$n.onerror=Nn,be(er),ws(er,"href",nr)}),at=(ln,xn)=>{const yn=Ke(ln);f[ln]=yn,yn.count++;const $n=jt.fromTag("style",B.dom);Kc($n,{rel:"stylesheet",type:"text/css",id:yn.id}),$n.dom.innerHTML=xn,be($n)},Rt=ln=>Promise.allSettled(Fe(ln,yn=>Je(yn).then(J(yn)))).then(yn=>{const $n=se(yn,nr=>nr.status==="fulfilled");return $n.fail.length>0?Promise.reject(Fe($n.fail,nr=>nr.reason)):Fe($n.pass,nr=>nr.value)}),Ht=ln=>{const xn=ur._addCacheSuffix(ln);wn(f,xn).each(yn=>{--yn.count===0&&(delete f[xn],Pe(yn.id))})};return{load:Je,loadRawCss:at,loadAll:Rt,unload:Ht,unloadRawCss:ln=>{wn(f,ln).each(xn=>{--xn.count===0&&(delete f[ln],Pe(xn.id))})},unloadAll:ln=>{ie(ln,xn=>{Ht(xn)})},_setReferrerPolicy:Z,_setContentCssCors:oe}},G2=(()=>{const e=new WeakMap;return{forElement:(r,f)=>{const B=Yu(r).dom;return X.from(e.get(B)).getOrThunk(()=>{const Z=U2(B,f);return e.set(B,Z),Z})}}})(),Xn=e=>e.nodeName.toLowerCase()==="span",cb=(e,n,r)=>k(e)&&(xu(e,n)||r.isInline(e.nodeName.toLowerCase())),HE=(e,n,r)=>{const f=new es(e,n).prev(!1),w=new es(e,n).next(!1),B=N(f)||cb(f,n,r),Z=N(w)||cb(w,n,r);return B&&Z},r1=e=>Xn(e)&&e.getAttribute("data-mce-type")==="bookmark",zE=(e,n,r)=>ir(e)&&e.data.length>0&&HE(e,n,r),Gp=e=>Gr(e)?e.childNodes.length>0:!1,Z2=e=>ns(e)||wm(e),Ah=(e,n,r,f)=>{var w;const B=f||n;if(Gr(n)&&r1(n))return n;const Z=n.childNodes;for(let oe=Z.length-1;oe>=0;oe--)Ah(e,Z[oe],r,B);if(Gr(n)){const oe=n.childNodes;oe.length===1&&r1(oe[0])&&((w=n.parentNode)===null||w===void 0||w.insertBefore(oe[0],n))}return!Z2(n)&&!xu(n,B)&&!Gp(n)&&!zE(n,B,r)&&e.remove(n),n},VE=ur.makeMap,Ed=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ms=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_d=/[<>&\"\']/g,j2=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,xf={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},Mh={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},Y2={"<":"<",">":">","&":"&",""":'"',"'":"'"},zg=e=>{const n=jt.fromTag("div").dom;return n.innerHTML=e,n.textContent||n.innerText||e},O3=(e,n)=>{const r={};if(e){const f=e.split(",");n=n||10;for(let w=0;we.replace(n?Ed:ms,r=>Mh[r]||r),UE=e=>(""+e).replace(_d,n=>Mh[n]||n),X2=(e,n)=>e.replace(n?Ed:ms,r=>r.length>1?"&#"+((r.charCodeAt(0)-55296)*1024+(r.charCodeAt(1)-56320)+65536)+";":Mh[r]||"&#"+r.charCodeAt(0)+";"),Rd=(e,n,r)=>{const f=r||ub;return e.replace(n?Ed:ms,w=>Mh[w]||f[w]||w)},km={encodeRaw:K2,encodeAllRaw:UE,encodeNumeric:X2,encodeNamed:Rd,getEncodeFunc:(e,n)=>{const r=O3(n)||ub,f=(Z,oe)=>Z.replace(oe?Ed:ms,be=>Mh[be]!==void 0?Mh[be]:r[be]!==void 0?r[be]:be.length>1?"&#"+((be.charCodeAt(0)-55296)*1024+(be.charCodeAt(1)-56320)+65536)+";":"&#"+be.charCodeAt(0)+";"),w=(Z,oe)=>Rd(Z,oe,r),B=VE(e.replace(/\+/g,","));return B.named&&B.numeric?f:B.named?n?w:Rd:B.numeric?X2:K2},decode:e=>e.replace(j2,(n,r)=>r?(r.charAt(0).toLowerCase()==="x"?r=parseInt(r.substr(1),16):r=parseInt(r,10),r>65535?(r-=65536,String.fromCharCode(55296+(r>>10),56320+(r&1023))):xf[r]||String.fromCharCode(r)):Y2[n]||ub[n]||zg(n))},kl=(e,n)=>(e=ur.trim(e),e?e.split(n||" "):[]),Xr=e=>new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$"),WE=e=>{const n=/^(~)?(.+)$/;return ze(kl(e,","),r=>{const f=n.exec(r);if(f){const w=f[1]==="~",B=w?"span":"div",Z=f[2];return[{inline:w,cloneName:B,name:Z}]}else return[]})},Q2=e=>{let n,r,f;if(n="id accesskey class dir lang style tabindex title role",r="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",f="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",e!=="html4"){const B="a ins del canvas map";n+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",r+=" article aside details dialog figure main header footer hgroup section nav "+B,f+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen svg"}e!=="html5-strict"&&(n+=" xml:lang",f=[f,"acronym applet basefont big font strike tt"].join(" "),r=[r,"center dir isindex noframes"].join(" "));const w=[r,f].join(" ");return{globalAttributes:n,blockContent:r,phrasingContent:f,flowContent:w}},GE=e=>{const{globalAttributes:n,phrasingContent:r,flowContent:f}=Q2(e),w={},B=(be,Pe,Ke)=>{w[be]={attributes:Ge(Pe,J({})),attributesOrder:Pe,children:Ge(Ke,J({}))}},Z=(be,Pe="",Ke="")=>{const Je=kl(Ke),at=kl(be);let Rt=at.length;const Ht=kl([n,Pe].join(" "));for(;Rt--;)B(at[Rt],Ht.slice(),Je)},oe=(be,Pe)=>{const Ke=kl(be),Je=kl(Pe);let at=Ke.length;for(;at--;){const Rt=w[Ke[at]];for(let Ht=0,At=Je.length;Ht{Z(Ke,"",r)}),ie(kl("center dir isindex noframes"),Ke=>{Z(Ke,"",f)})),Z("html","manifest","head body"),Z("head","","base command link meta noscript script style title"),Z("title hr noscript br"),Z("base","href target"),Z("link","href rel media hreflang type sizes hreflang"),Z("meta","name http-equiv content charset"),Z("style","media type scoped"),Z("script","src async defer type charset"),Z("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",f),Z("dd div","",f),Z("address dt caption","",e==="html4"?r:f),Z("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),Z("blockquote","cite",f),Z("ol","reversed start type","li"),Z("ul","","li"),Z("li","value",f),Z("dl","","dt dd"),Z("a","href target rel media hreflang type",e==="html4"?r:f),Z("q","cite",r),Z("ins del","cite datetime",f),Z("img","src sizes srcset alt usemap ismap width height"),Z("iframe","src name width height",f),Z("embed","src type width height"),Z("object","data type typemustmatch name usemap form width height",[f,"param"].join(" ")),Z("param","name value"),Z("map","name",[f,"area"].join(" ")),Z("area","alt coords shape href target rel media hreflang type"),Z("table","border","caption colgroup thead tfoot tbody tr"+(e==="html4"?" col":"")),Z("colgroup","span","col"),Z("col","span"),Z("tbody thead tfoot","","tr"),Z("tr","","td th"),Z("td","colspan rowspan headers",f),Z("th","colspan rowspan headers scope abbr",f),Z("form","accept-charset action autocomplete enctype method name novalidate target",f),Z("fieldset","disabled form name",[f,"legend"].join(" ")),Z("label","form for",r),Z("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),Z("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",e==="html4"?f:r),Z("select","disabled form multiple name required size","option optgroup"),Z("optgroup","disabled label","option"),Z("option","disabled label selected value"),Z("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),Z("menu","type label",[f,"li"].join(" ")),Z("noscript","",f),e!=="html4"&&(Z("wbr"),Z("ruby","",[r,"rt rp"].join(" ")),Z("figcaption","",f),Z("mark rt rp bdi","",r),Z("summary","",[r,"h1 h2 h3 h4 h5 h6"].join(" ")),Z("canvas","width height",f),Z("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[f,"track source"].join(" ")),Z("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[f,"track source"].join(" ")),Z("picture","","img source"),Z("source","src srcset type media sizes"),Z("track","kind src srclang label default"),Z("datalist","",[r,"option"].join(" ")),Z("article section nav aside main header footer","",f),Z("hgroup","","h1 h2 h3 h4 h5 h6"),Z("figure","",[f,"figcaption"].join(" ")),Z("time","datetime",r),Z("dialog","open",f),Z("command","type label icon disabled checked radiogroup command"),Z("output","for form name",r),Z("progress","value max",r),Z("meter","value min max low high optimum",r),Z("details","open",[f,"summary"].join(" ")),Z("keygen","autofocus challenge disabled form keytype name"),B("svg","id tabindex lang xml:space class style x y width height viewBox preserveAspectRatio zoomAndPan transform".split(" "),[])),e!=="html5-strict"&&(oe("script","language xml:space"),oe("style","xml:space"),oe("object","declare classid code codebase codetype archive standby align border hspace vspace"),oe("embed","align name hspace vspace"),oe("param","valuetype type"),oe("a","charset name rev shape coords"),oe("br","clear"),oe("applet","codebase archive code object alt name width height align hspace vspace"),oe("img","name longdesc align border hspace vspace"),oe("iframe","longdesc frameborder marginwidth marginheight scrolling align"),oe("font basefont","size color face"),oe("input","usemap align"),oe("select"),oe("textarea"),oe("h1 h2 h3 h4 h5 h6 div p legend caption","align"),oe("ul","type compact"),oe("li","type"),oe("ol dl menu dir","compact"),oe("pre","width xml:space"),oe("hr","align noshade size width"),oe("isindex","prompt"),oe("table","summary width frame rules cellspacing cellpadding align bgcolor"),oe("col","width align char charoff valign"),oe("colgroup","width align char charoff valign"),oe("thead","align char charoff valign"),oe("tr","align char charoff valign bgcolor"),oe("th","axis align char charoff valign nowrap bgcolor width height"),oe("form","accept"),oe("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),oe("tfoot","align char charoff valign"),oe("tbody","align char charoff valign"),oe("area","nohref"),oe("body","background bgcolor text link vlink alink")),e!=="html4"&&(oe("input button select textarea","autofocus"),oe("input textarea","placeholder"),oe("a","download"),oe("link script img","crossorigin"),oe("img","loading"),oe("iframe","sandbox seamless allow allowfullscreen loading")),e!=="html4"&&ie([w.video,w.audio],be=>{delete be.children.audio,delete be.children.video}),ie(kl("a form meter progress dfn"),be=>{w[be]&&delete w[be].children[be]}),delete w.caption.children.table,delete w.script,w},P3=e=>e==="-"?"remove":"add",Vg=e=>{const n=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;return ze(kl(e,","),r=>{const f=n.exec(r);if(f){const w=f[1],B=w?P3(w):"replace",Z=f[2],oe=kl(f[3],"|");return[{operation:B,name:Z,validChildren:oe}]}else return[]})},Zp=(e,n)=>{const r=/^([!\-])?(\w+[\\:]:\w+|[^=~<]+)?(?:([=~<])(.*))?$/,f=/[*?+]/,{attributes:w,attributesOrder:B}=n;return ie(kl(e,"|"),Z=>{const oe=r.exec(Z);if(oe){const be={},Pe=oe[1],Ke=oe[2].replace(/[\\:]:/g,":"),Je=oe[3],at=oe[4];if(Pe==="!"&&(n.attributesRequired=n.attributesRequired||[],n.attributesRequired.push(Ke),be.required=!0),Pe==="-"){delete w[Ke],B.splice(ur.inArray(B,Ke),1);return}if(Je&&(Je==="="?(n.attributesDefault=n.attributesDefault||[],n.attributesDefault.push({name:Ke,value:at}),be.defaultValue=at):Je==="~"?(n.attributesForced=n.attributesForced||[],n.attributesForced.push({name:Ke,value:at}),be.forcedValue=at):Je==="<"&&(be.validValues=ur.makeMap(at,"?"))),f.test(Ke)){const Rt=be;n.attributePatterns=n.attributePatterns||[],Rt.pattern=Xr(Ke),n.attributePatterns.push(Rt)}else w[Ke]||B.push(Ke),w[Ke]=be}})},o1=(e,n)=>{Ft(e.attributes,(r,f)=>{n.attributes[f]=r}),n.attributesOrder.push(...e.attributesOrder)},jp=(e,n)=>{const r=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/;return ze(kl(n,","),f=>{const w=r.exec(f);if(w){const B=w[1],Z=w[2],oe=w[3],be=w[4],Pe=w[5],Ke={attributes:{},attributesOrder:[]};if(e.each(Je=>o1(Je,Ke)),B==="#"?Ke.paddEmpty=!0:B==="-"&&(Ke.removeEmpty=!0),be==="!"&&(Ke.removeEmptyAttrs=!0),Pe&&Zp(Pe,Ke),oe&&(Ke.outputName=Z),Z==="@")if(e.isNone())e=X.some(Ke);else return[];return[oe?{name:Z,element:Ke,aliasName:oe}:{name:Z,element:Ke}]}else return[]})},fb={},Eh=ur.makeMap,Jf=ur.each,a1=ur.extend,ef=ur.explode,db=(e,n={})=>{const r=Eh(e," ",Eh(e.toUpperCase()," "));return a1(r,n)},I3=e=>db("td th li dt dd figcaption caption details summary",e.getTextBlockElements()),Yp=(e,n)=>{if(e){const r={};return C(e)&&(e={"*":e}),Jf(e,(f,w)=>{r[w]=r[w.toUpperCase()]=n==="map"?Eh(f,/[, ]/):ef(f,/[, ]/)}),r}else return},_h=(e={})=>{var n;const r={},f={};let w=[];const B={},Z={},oe=(zo,Oa,vs)=>{const Gs=e[zo];if(Gs)return Eh(Gs,/[, ]/,Eh(Gs.toUpperCase(),/[, ]/));{let $s=fb[zo];return $s||($s=db(Oa,vs),fb[zo]=$s),$s}},be=(n=e.schema)!==null&&n!==void 0?n:"html5",Pe=GE(be);e.verify_html===!1&&(e.valid_elements="*[*]");const Ke=Yp(e.valid_styles),Je=Yp(e.invalid_styles,"map"),at=Yp(e.valid_classes,"map"),Rt=oe("whitespace_elements","pre script noscript style textarea video audio iframe object code"),Ht=oe("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),At=oe("void_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),It=oe("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls allowfullscreen"),ln="td th iframe video audio object script code",xn=oe("non_empty_elements",ln+" pre svg",At),yn=oe("move_caret_before_on_enter_elements",ln+" table",At),$n="h1 h2 h3 h4 h5 h6",nr=oe("text_block_elements",$n+" p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),mr=oe("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary html body multicol listing",nr),Nr=oe("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp"),zn=oe("transparent_elements","a ins del canvas map"),Nn=oe("wrap_block_elements","pre "+$n);Jf("script noscript iframe noframes noembed title style textarea xmp plaintext".split(" "),zo=>{Z[zo]=new RegExp("]*>","gi")});const er=zo=>{const Oa=X.from(r["@"]),vs=/[*?+]/;ie(jp(Oa,zo??""),({name:Gs,element:$s,aliasName:Iu})=>{if(Iu&&(r[Iu]=$s),vs.test(Gs)){const nh=$s;nh.pattern=Xr(Gs),w.push(nh)}else r[Gs]=$s})},Qr=zo=>{w=[],ie(Yt(r),Oa=>{delete r[Oa]}),er(zo)},ho=zo=>{delete fb.text_block_elements,delete fb.block_elements,ie(WE(zo??""),({inline:Oa,name:vs,cloneName:Gs})=>{if(f[vs]=f[Gs],B[vs]=Gs,xn[vs.toUpperCase()]={},xn[vs]={},Oa||(mr[vs.toUpperCase()]={},mr[vs]={}),!r[vs]){let $s=r[Gs];$s=a1({},$s),delete $s.removeEmptyAttrs,delete $s.removeEmpty,r[vs]=$s}Ft(f,($s,Iu)=>{$s[Gs]&&(f[Iu]=$s=a1({},f[Iu]),$s[vs]=$s[Gs])})})},na=zo=>{ie(Vg(zo??""),({operation:Oa,name:vs,validChildren:Gs})=>{const $s=Oa==="replace"?{"#comment":{}}:f[vs];ie(Gs,Iu=>{Oa==="remove"?delete $s[Iu]:$s[Iu]={}}),f[vs]=$s})},ca=zo=>{const Oa=r[zo];if(Oa)return Oa;let vs=w.length;for(;vs--;){const Gs=w[vs];if(Gs.pattern.test(zo))return Gs}};e.valid_elements?(Qr(e.valid_elements),Jf(Pe,(zo,Oa)=>{f[Oa]=zo.children})):(Jf(Pe,(zo,Oa)=>{r[Oa]={attributes:zo.attributes,attributesOrder:zo.attributesOrder},f[Oa]=zo.children}),Jf(kl("strong/b em/i"),zo=>{const Oa=kl(zo,"/");r[Oa[1]].outputName=Oa[0]}),Jf(Nr,(zo,Oa)=>{r[Oa]&&(e.padd_empty_block_inline_children&&(r[Oa].paddInEmptyBlock=!0),r[Oa].removeEmpty=!0)}),Jf(kl("ol ul blockquote a table tbody"),zo=>{r[zo]&&(r[zo].removeEmpty=!0)}),Jf(kl("p h1 h2 h3 h4 h5 h6 th td pre div address caption li summary"),zo=>{r[zo]&&(r[zo].paddEmpty=!0)}),Jf(kl("span"),zo=>{r[zo].removeEmptyAttrs=!0})),delete r.svg,ho(e.custom_elements),na(e.valid_children),er(e.extended_valid_elements),na("+ol[ul|ol],+ul[ul|ol]"),Jf({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},(zo,Oa)=>{r[Oa]&&(r[Oa].parentsRequired=kl(zo))}),e.invalid_elements&&Jf(ef(e.invalid_elements),zo=>{r[zo]&&delete r[zo]}),ca("span")||er("span[!data-mce-type|*]");const os=J(Ke),ka=J(Je),ei=J(at),zl=J(It),as=J(mr),Sr=J(nr),so=J(Nr),$a=J(Object.seal(At)),ha=J(Ht),to=J(xn),Lo=J(yn),vr=J(Rt),Oo=J(zn),Aa=J(Nn),ps=J(Object.seal(Z)),us=(zo,Oa)=>{const vs=f[zo.toLowerCase()];return!!(vs&&vs[Oa.toLowerCase()])},ml=(zo,Oa)=>{const vs=ca(zo);if(vs)if(Oa){if(vs.attributes[Oa])return!0;const Gs=vs.attributePatterns;if(Gs){let $s=Gs.length;for(;$s--;)if(Gs[$s].pattern.test(Oa))return!0}}else return!0;return!1},th=zo=>lt(as(),zo),cf=zo=>ml(zo)&&!th(zo),iu=zo=>lt(Aa(),zo)||cf(zo),pd=J(B);return{type:be,children:f,elements:r,getValidStyles:os,getValidClasses:ei,getBlockElements:as,getInvalidStyles:ka,getVoidElements:$a,getTextBlockElements:Sr,getTextInlineElements:so,getBoolAttrs:zl,getElementRule:ca,getSelfClosingElements:ha,getNonEmptyElements:to,getMoveCaretBeforeOnEnterElements:Lo,getWhitespaceElements:vr,getTransparentElements:Oo,getSpecialElements:ps,isValidChild:us,isValid:ml,isBlock:th,isInline:cf,isWrapper:iu,getCustomElements:pd,addValidElements:er,setValidElements:Qr,addCustomElements:ho,addValidChildren:na}},ZE=e=>({value:Kp(e)}),Kp=e=>xr(e,"#").toUpperCase(),Ug=e=>{const n=e.toString(16);return(n.length===1?"0"+n:n).toUpperCase()},wf=e=>{const n=Ug(e.red)+Ug(e.green)+Ug(e.blue);return ZE(n)},Qc=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,jE=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,N3=(e,n,r,f)=>({red:e,green:n,blue:r,alpha:f}),F3=(e,n,r,f)=>{const w=parseInt(e,10),B=parseInt(n,10),Z=parseInt(r,10),oe=parseFloat(f);return N3(w,B,Z,oe)},q2=e=>{if(e==="transparent")return X.some(N3(0,0,0,0));const n=Qc.exec(e);if(n!==null)return X.some(F3(n[1],n[2],n[3],"1"));const r=jE.exec(e);return r!==null?X.some(F3(r[1],r[2],r[3],r[4])):X.none()},qc=e=>`rgba(${e.red},${e.green},${e.blue},${e.alpha})`,Xp=e=>q2(e).map(wf).map(n=>"#"+n.value).getOr(e),hb=(e={},n)=>{const r=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,f=/\s*([^:]+):\s*([^;]+);?/g,w=/\s+$/,B={};let Z,oe;const be=Cm;n&&(Z=n.getValidStyles(),oe=n.getInvalidStyles());const Pe=(`\\" \\' \\; \\: ; : `+be).split(" ");for(let Je=0;Je{const at={};let Rt=!1;const Ht=e.url_converter,At=e.url_converter_scope||Ke,It=(zn,Nn,er)=>{const Qr=at[zn+"-top"+Nn];if(!Qr)return;const ho=at[zn+"-right"+Nn];if(!ho)return;const na=at[zn+"-bottom"+Nn];if(!na)return;const ca=at[zn+"-left"+Nn];if(!ca)return;const os=[Qr,ho,na,ca];let ka=os.length-1;for(;ka--&&os[ka]===os[ka+1];);ka>-1&&er||(at[zn+Nn]=ka===-1?os[0]:os.join(" "),delete at[zn+"-top"+Nn],delete at[zn+"-right"+Nn],delete at[zn+"-bottom"+Nn],delete at[zn+"-left"+Nn])},ln=zn=>{const Nn=at[zn];if(!Nn)return;const er=Nn.indexOf(",")>-1?[Nn]:Nn.split(" ");let Qr=er.length;for(;Qr--;)if(er[Qr]!==er[0])return!1;return at[zn]=er[0],!0},xn=(zn,Nn,er,Qr)=>{ln(Nn)&&ln(er)&&ln(Qr)&&(at[zn]=at[Nn]+" "+at[er]+" "+at[Qr],delete at[Nn],delete at[er],delete at[Qr])},yn=zn=>(Rt=!0,B[zn]),$n=(zn,Nn)=>(Rt&&(zn=zn.replace(/\uFEFF[0-9]/g,er=>B[er])),Nn||(zn=zn.replace(/\\([\'\";:])/g,"$1")),zn),nr=zn=>String.fromCharCode(parseInt(zn.slice(1),16)),mr=zn=>zn.replace(/\\[0-9a-f]+/gi,nr),Nr=(zn,Nn,er,Qr,ho,na)=>{if(ho=ho||na,ho)return ho=$n(ho),"'"+ho.replace(/\'/g,"\\'")+"'";if(Nn=$n(Nn||er||Qr||""),!e.allow_script_urls){const ca=Nn.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(ca)||!e.allow_svg_data_urls&&/^data:image\/svg/i.test(ca))return""}return Ht&&(Nn=Ht.call(At,Nn,"style")),"url('"+Nn.replace(/\'/g,"\\'")+"')"};if(Je){Je=Je.replace(/[\u0000-\u001F]/g,""),Je=Je.replace(/\\[\"\';:\uFEFF]/g,yn).replace(/\"[^\"]+\"|\'[^\']+\'/g,Nn=>Nn.replace(/[;:]/g,yn));let zn;for(;zn=f.exec(Je);){f.lastIndex=zn.index+zn[0].length;let Nn=zn[1].replace(w,"").toLowerCase(),er=zn[2].replace(w,"");if(Nn&&er){if(Nn=mr(Nn),er=mr(er),Nn.indexOf(be)!==-1||Nn.indexOf('"')!==-1||!e.allow_script_urls&&(Nn==="behavior"||/expression\s*\(|\/\*|\*\//.test(er)))continue;Nn==="font-weight"&&er==="700"?er="bold":(Nn==="color"||Nn==="background-color")&&(er=er.toLowerCase()),C(e.force_hex_color)&&e.force_hex_color!=="off"&&q2(er).each(Qr=>{(e.force_hex_color==="always"||Qr.alpha===1)&&(er=Xp(qc(Qr)))}),er=er.replace(r,Nr),at[Nn]=Rt?$n(er,!0):er}}It("border","",!0),It("border","-width"),It("border","-color"),It("border","-style"),It("padding",""),It("margin",""),xn("border","border-width","border-style","border-color"),at.border==="medium none"&&delete at.border,at["border-image"]==="none"&&delete at["border-image"]}return at},serialize:(Je,at)=>{let Rt="";const Ht=(It,ln)=>{const xn=ln[It];if(xn)for(let yn=0,$n=xn.length;yn<$n;yn++){const nr=xn[yn],mr=Je[nr];mr&&(Rt+=(Rt.length>0?" ":"")+nr+": "+mr+";")}},At=(It,ln)=>{if(!oe||!ln)return!0;let xn=oe["*"];return xn&&xn[It]?!1:(xn=oe[ln],!(xn&&xn[It]))};return at&&Z?(Ht("*",Z),Ht(at,Z)):Ft(Je,(It,ln)=>{It&&At(ln,at)&&(Rt+=(Rt.length>0?" ":"")+ln+": "+It+";")}),Rt}};return Ke},mb={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},YE=e=>e instanceof Event||R(e.initEvent),B3=e=>e.isDefaultPrevented===fe||e.isDefaultPrevented===ne,ew=e=>M(e.preventDefault)||YE(e),Jp=(e,n)=>{const r=n??{};for(const f in e)lt(mb,f)||(r[f]=e[f]);return k(e.composedPath)&&(r.composedPath=()=>e.composedPath()),k(e.getModifierState)&&(r.getModifierState=f=>e.getModifierState(f)),k(e.getTargetRanges)&&(r.getTargetRanges=()=>e.getTargetRanges()),r},Qp=(e,n,r,f)=>{var w;const B=Jp(n,f);return B.type=e,M(B.target)&&(B.target=(w=B.srcElement)!==null&&w!==void 0?w:r),ew(n)&&(B.preventDefault=()=>{B.defaultPrevented=!0,B.isDefaultPrevented=fe,R(n.preventDefault)&&n.preventDefault()},B.stopPropagation=()=>{B.cancelBubble=!0,B.isPropagationStopped=fe,R(n.stopPropagation)&&n.stopPropagation()},B.stopImmediatePropagation=()=>{B.isImmediatePropagationStopped=fe,B.stopPropagation()},B3(B)||(B.isDefaultPrevented=B.defaultPrevented===!0?fe:ne,B.isPropagationStopped=B.cancelBubble===!0?fe:ne,B.isImmediatePropagationStopped=ne)),B},gb="mce-data-",KE=/^(?:mouse|contextmenu)|click/,pb=(e,n,r,f)=>{e.addEventListener(n,r,f||!1)},qp=(e,n,r,f)=>{e.removeEventListener(n,r,f||!1)},XE=e=>k(e)&&KE.test(e.type),s1=(e,n)=>{const r=Qp(e.type,e,document,n);if(XE(e)&&N(e.pageX)&&!N(e.clientX)){const f=r.target.ownerDocument||document,w=f.documentElement,B=f.body,Z=r;Z.pageX=e.clientX+(w&&w.scrollLeft||B&&B.scrollLeft||0)-(w&&w.clientLeft||B&&B.clientLeft||0),Z.pageY=e.clientY+(w&&w.scrollTop||B&&B.scrollTop||0)-(w&&w.clientTop||B&&B.clientTop||0)}return r},tw=(e,n,r)=>{const f=e.document,w={type:"ready"};if(r.domLoaded){n(w);return}const B=()=>f.readyState==="complete"||f.readyState==="interactive"&&f.body,Z=()=>{qp(e,"DOMContentLoaded",Z),qp(e,"load",Z),r.domLoaded||(r.domLoaded=!0,n(w)),e=null};B()?Z():pb(e,"DOMContentLoaded",Z),r.domLoaded||pb(e,"load",Z)};class eu{constructor(){this.domLoaded=!1,this.events={},this.count=1,this.expando=gb+(+new Date).toString(32),this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}bind(n,r,f,w){const B=this;let Z;const oe=window,be=at=>{B.executeHandlers(s1(at||oe.event),Pe)};if(!n||ir(n)||gf(n))return f;let Pe;n[B.expando]?Pe=n[B.expando]:(Pe=B.count++,n[B.expando]=Pe,B.events[Pe]={}),w=w||n;const Ke=r.split(" ");let Je=Ke.length;for(;Je--;){let at=Ke[Je],Rt=be,Ht=!1,At=!1;if(at==="DOMContentLoaded"&&(at="ready"),B.domLoaded&&at==="ready"&&n.readyState==="complete"){f.call(w,s1({type:at}));continue}!B.hasFocusIn&&(at==="focusin"||at==="focusout")&&(Ht=!0,At=at==="focusin"?"focus":"blur",Rt=It=>{const ln=s1(It||oe.event);ln.type=ln.type==="focus"?"focusin":"focusout",B.executeHandlers(ln,Pe)}),Z=B.events[Pe][at],Z?at==="ready"&&B.domLoaded?f(s1({type:at})):Z.push({func:f,scope:w}):(B.events[Pe][at]=Z=[{func:f,scope:w}],Z.fakeName=At,Z.capture=Ht,Z.nativeHandler=Rt,at==="ready"?tw(n,Rt,B):pb(n,At||at,Rt,Ht))}return n=Z=null,f}unbind(n,r,f){if(!n||ir(n)||gf(n))return this;const w=n[this.expando];if(w){let B=this.events[w];if(r){const Z=r.split(" ");let oe=Z.length;for(;oe--;){const be=Z[oe],Pe=B[be];if(Pe){if(f){let Ke=Pe.length;for(;Ke--;)if(Pe[Ke].func===f){const Je=Pe.nativeHandler,at=Pe.fakeName,Rt=Pe.capture,Ht=Pe.slice(0,Ke).concat(Pe.slice(Ke+1));Ht.nativeHandler=Je,Ht.fakeName=at,Ht.capture=Rt,B[be]=Ht}}(!f||Pe.length===0)&&(delete B[be],qp(n,Pe.fakeName||be,Pe.nativeHandler,Pe.capture))}}}else Ft(B,(Z,oe)=>{qp(n,Z.fakeName||oe,Z.nativeHandler,Z.capture)}),B={};for(const Z in B)if(lt(B,Z))return this;delete this.events[w];try{delete n[this.expando]}catch{n[this.expando]=null}}return this}fire(n,r,f){return this.dispatch(n,r,f)}dispatch(n,r,f){if(!n||ir(n)||gf(n))return this;const w=s1({type:r,target:n},f);do{const B=n[this.expando];B&&this.executeHandlers(w,B),n=n.parentNode||n.ownerDocument||n.defaultView||n.parentWindow}while(n&&!w.isPropagationStopped());return this}clean(n){if(!n||ir(n)||gf(n))return this;if(n[this.expando]&&this.unbind(n),n.getElementsByTagName||(n=n.document),n&&n.getElementsByTagName){this.unbind(n);const r=n.getElementsByTagName("*");let f=r.length;for(;f--;)n=r[f],n[this.expando]&&this.unbind(n)}return this}destroy(){this.events={}}cancel(n){return n&&(n.preventDefault(),n.stopImmediatePropagation()),!1}executeHandlers(n,r){const f=this.events[r],w=f&&f[n.type];if(w)for(let B=0,Z=w.length;B{M(r)||r===""?Xs(e,n):ws(e,n,r)},Am=e=>e.replace(/[A-Z]/g,n=>"-"+n.toLowerCase()),Ld=(e,n)=>{let r=0;if(e)for(let f=e.nodeType,w=e.previousSibling;w;w=w.previousSibling){const B=w.nodeType;n&&ir(w)&&(B===f||!w.data.length)||(r++,f=B)}return r},nw=(e,n)=>{const r=il(n,"style"),f=e.serialize(e.parse(r),La(n));bb(n,yb,f)},ev=(e,n)=>F(e)?lt(n$,n)?e+"":e+"px":e,xb=(e,n,r)=>{const f=Am(n);M(r)||r===""?Np(e,f):U0(e,f,ev(r,f))},z3=(e,n,r)=>{const f=n.keep_values,w={set:(Z,oe,be)=>{const Pe=jt.fromDom(Z);R(n.url_converter)&&k(oe)&&(oe=n.url_converter.call(n.url_converter_scope||r(),String(oe),be,Z));const Ke="data-mce-"+be;bb(Pe,Ke,oe),bb(Pe,be,oe)},get:(Z,oe)=>{const be=jt.fromDom(Z);return il(be,"data-mce-"+oe)||il(be,oe)}},B={style:{set:(Z,oe)=>{const be=jt.fromDom(Z);f&&bb(be,yb,oe),Xs(be,"style"),C(oe)&&$l(be,e.parse(oe))},get:Z=>{const oe=jt.fromDom(Z),be=il(oe,yb)||il(oe,"style");return e.serialize(e.parse(be),La(oe))}}};return f&&(B.href=B.src=w),B},Cs=(e,n={})=>{const r={},f=window,w={};let B=0;const Z=!0,oe=!0,be=G2.forElement(jt.fromDom(e),{contentCssCors:n.contentCssCors,referrerPolicy:n.referrerPolicy}),Pe=[],Ke=n.schema?n.schema:_h({}),Je=hb({url_converter:n.url_converter,url_converter_scope:n.url_converter_scope,force_hex_color:n.force_hex_color},n.schema),at=n.ownEvents?new eu:eu.Event,Rt=Ke.getBlockElements(),Ht=On=>C(On)?lt(Rt,On):Gr(On)&&(lt(Rt,On.nodeName)||pa(Ke,On)),At=On=>On&&e&&C(On)?e.getElementById(On):On,It=On=>{const Pn=At(On);return k(Pn)?jt.fromDom(Pn):null},ln=(On,Pn,yr="")=>{let dr;const uo=It(On);if(k(uo)&&sl(uo)){const ua=v2[Pn];ua&&ua.get?dr=ua.get(uo.dom,Pn):dr=il(uo,Pn)}return k(dr)?dr:yr},xn=On=>{const Pn=At(On);return M(Pn)?[]:Pn.attributes},yn=(On,Pn,yr)=>{so(On,dr=>{if(Gr(dr)){const uo=jt.fromDom(dr),ua=yr===""?null:yr,Fs=il(uo,Pn),Nu=v2[Pn];Nu&&Nu.set?Nu.set(uo.dom,ua,Pn):bb(uo,Pn,ua),Fs!==ua&&n.onSetAttrib&&n.onSetAttrib({attrElm:uo.dom,attrName:Pn,attrValue:ua})}})},$n=(On,Pn)=>On.cloneNode(Pn),nr=()=>n.root_element||e.body,mr=On=>{const Pn=K0(On);return{x:Pn.x,y:Pn.y,w:Pn.width,h:Pn.height}},Nr=(On,Pn)=>bs(e.body,At(On),Pn),zn=(On,Pn,yr)=>{so(On,dr=>{const uo=jt.fromDom(dr);xb(uo,Pn,yr),n.update_styles&&nw(Je,uo)})},Nn=(On,Pn)=>{so(On,yr=>{const dr=jt.fromDom(yr);Ft(Pn,(uo,ua)=>{xb(dr,ua,uo)}),n.update_styles&&nw(Je,dr)})},er=(On,Pn,yr)=>{const dr=At(On);if(!(M(dr)||!xl(dr)&&!H2(dr)))return yr?ui(jt.fromDom(dr),Am(Pn)):(Pn=Pn.replace(/-(\D)/g,(uo,ua)=>ua.toUpperCase()),Pn==="float"&&(Pn="cssFloat"),dr.style?dr.style[Pn]:void 0)},Qr=On=>{const Pn=At(On);if(!Pn)return{w:0,h:0};let yr=er(Pn,"width"),dr=er(Pn,"height");return(!yr||yr.indexOf("px")===-1)&&(yr="0"),(!dr||dr.indexOf("px")===-1)&&(dr="0"),{w:parseInt(yr,10)||Pn.offsetWidth||Pn.clientWidth,h:parseInt(dr,10)||Pn.offsetHeight||Pn.clientHeight}},ho=On=>{const Pn=At(On),yr=Nr(Pn),dr=Qr(Pn);return{x:yr.x,y:yr.y,w:dr.w,h:dr.h}},na=(On,Pn)=>{if(!On)return!1;const yr=S(On)?On:[On];return Oe(yr,dr=>du(jt.fromDom(dr),Pn))},ca=(On,Pn,yr,dr)=>{const uo=[];let ua=At(On);dr=dr===void 0;const Fs=yr||(nr().nodeName!=="BODY"?nr().parentNode:null);if(C(Pn))if(Pn==="*")Pn=Gr;else{const Nu=Pn;Pn=Vl=>na(Vl,Nu)}for(;ua&&!(ua===Fs||M(ua.nodeType)||wm(ua)||ns(ua));){if(!Pn||Pn(ua))if(dr)uo.push(ua);else return[ua];ua=ua.parentNode}return dr?uo:null},os=(On,Pn,yr)=>{const dr=ca(On,Pn,yr,!1);return dr&&dr.length>0?dr[0]:null},ka=(On,Pn,yr)=>{let dr=Pn;if(On){C(Pn)&&(dr=uo=>na(uo,Pn));for(let uo=On[yr];uo;uo=uo[yr])if(R(dr)&&dr(uo))return uo}return null},ei=(On,Pn)=>ka(On,Pn,"nextSibling"),zl=(On,Pn)=>ka(On,Pn,"previousSibling"),as=On=>R(On.querySelectorAll),Sr=(On,Pn)=>{var yr,dr;const uo=(dr=(yr=At(Pn))!==null&&yr!==void 0?yr:n.root_element)!==null&&dr!==void 0?dr:e;return as(uo)?tt(uo.querySelectorAll(On)):[]},so=function(On,Pn,yr){const dr=yr??this;if(S(On)){const uo=[];return vb(On,(ua,Fs)=>{const Nu=At(ua);Nu&&uo.push(Pn.call(dr,Nu,Fs))}),uo}else{const uo=At(On);return uo?Pn.call(dr,uo):!1}},$a=(On,Pn)=>{so(On,yr=>{Ft(Pn,(dr,uo)=>{yn(yr,uo,dr)})})},ha=(On,Pn)=>{so(On,yr=>{const dr=jt.fromDom(yr);bh(dr,Pn)})},to=(On,Pn,yr,dr,uo)=>so(On,ua=>{const Fs=C(Pn)?e.createElement(Pn):Pn;return k(yr)&&$a(Fs,yr),dr&&(!C(dr)&&dr.nodeType?Fs.appendChild(dr):C(dr)&&ha(Fs,dr)),uo?Fs:ua.appendChild(Fs)}),Lo=(On,Pn,yr)=>to(e.createElement(On),On,Pn,yr,!0),vr=km.decode,Oo=km.encodeAllRaw,Aa=(On,Pn,yr="")=>{let dr="<"+On;for(const uo in Pn)ft(Pn,uo)&&(dr+=" "+uo+'="'+Oo(Pn[uo])+'"');return kt(yr)&<(Ke.getVoidElements(),On)?dr+" />":dr+">"+yr+""},ps=On=>{const Pn=e.createElement("div"),yr=e.createDocumentFragment();yr.appendChild(Pn),On&&(Pn.innerHTML=On);let dr;for(;dr=Pn.firstChild;)yr.appendChild(dr);return yr.removeChild(Pn),yr},us=(On,Pn)=>so(On,yr=>{const dr=jt.fromDom(yr);return Pn&&ie(zi(dr),uo=>{Ei(uo)&&uo.dom.length===0?Ua(uo):Ri(dr,uo)}),Ua(dr),dr.dom}),ml=On=>so(On,Pn=>{const yr=Pn.attributes;for(let dr=yr.length-1;dr>=0;dr--)Pn.removeAttributeNode(yr.item(dr))}),th=On=>Je.parse(On),cf=(On,Pn)=>Je.serialize(On,Pn),iu=On=>{if(ug!==Cs.DOM&&e===document){if(r[On])return;r[On]=!0}let Pn=e.getElementById("mceDefaultStyles");if(!Pn){Pn=e.createElement("style"),Pn.id="mceDefaultStyles",Pn.type="text/css";const yr=e.head;yr.firstChild?yr.insertBefore(Pn,yr.firstChild):yr.appendChild(Pn)}Pn.styleSheet?Pn.styleSheet.cssText+=On:Pn.appendChild(e.createTextNode(On))},pd=On=>{On||(On=""),ie(On.split(","),Pn=>{w[Pn]=!0,be.load(Pn).catch(j)})},zo=(On,Pn,yr)=>{so(On,dr=>{if(Gr(dr)){const uo=jt.fromDom(dr),ua=Pn.split(" ");ie(ua,Fs=>{k(yr)?(yr?hh:mh)(uo,Fs):jy(uo,Fs)})}})},Oa=(On,Pn)=>{zo(On,Pn,!0)},vs=(On,Pn)=>{zo(On,Pn,!1)},Gs=(On,Pn)=>{const yr=It(On),dr=Pn.split(" ");return k(yr)&&We(dr,uo=>Cd(yr,uo))},$s=On=>{so(On,Pn=>Np(jt.fromDom(Pn),"display"))},Iu=On=>{so(On,Pn=>U0(jt.fromDom(Pn),"display","none"))},nh=On=>{const Pn=It(On);return k(Pn)&&Ms(_i(Pn,"display"),"none")},xp=On=>(On||"mce_")+B++,eE=On=>{const Pn=It(On);return k(Pn)?Gr(Pn.dom)?Pn.dom.outerHTML:Fp(Pn):""},JS=(On,Pn)=>{so(On,yr=>{Gr(yr)&&(yr.outerHTML=Pn)})},tE=(On,Pn)=>{const yr=At(Pn);return so(On,dr=>{const uo=yr==null?void 0:yr.parentNode,ua=yr==null?void 0:yr.nextSibling;return uo&&(ua?uo.insertBefore(dr,ua):uo.appendChild(dr)),dr})},m2=(On,Pn,yr)=>so(Pn,dr=>{var uo;const ua=S(Pn)?On.cloneNode(!0):On;return yr&&vb(H3(dr.childNodes),Fs=>{ua.appendChild(Fs)}),(uo=dr.parentNode)===null||uo===void 0||uo.replaceChild(ua,dr),dr}),nE=(On,Pn)=>{if(On.nodeName!==Pn.toUpperCase()){const yr=Lo(Pn);return vb(xn(On),dr=>{yn(yr,dr.nodeName,ln(On,dr.nodeName))}),m2(yr,On,!0),yr}else return On},g2=(On,Pn)=>{let yr=On;for(;yr;){let dr=Pn;for(;dr&&yr!==dr;)dr=dr.parentNode;if(yr===dr)break;yr=yr.parentNode}return!yr&&On.ownerDocument?On.ownerDocument.documentElement:yr},g0=On=>{if(Gr(On)){const Pn=On.nodeName.toLowerCase()==="a"&&!ln(On,"href")&&ln(On,"id");if(ln(On,"name")||ln(On,"data-mce-bookmark")||Pn)return!0}return!1},rh=(On,Pn,yr)=>{let dr=0;if(g0(On))return!1;const uo=On.firstChild;if(uo){const ua=new es(uo,On),Fs=Ke?Ke.getWhitespaceElements():{},Nu=Pn||(Ke?Ke.getNonEmptyElements():null);let Vl=uo;do{if(Gr(Vl)){const Ry=Vl.getAttribute("data-mce-bogus");if(Ry){Vl=ua.next(Ry==="all");continue}const vd=Vl.nodeName.toLowerCase();if(Nu&&Nu[vd]){if(vd==="br"){dr++,Vl=ua.next();continue}return!1}if(g0(Vl))return!1}if(gf(Vl)||ir(Vl)&&!As(Vl.data)&&(!(yr!=null&&yr.includeZwsp)||!qs(Vl.data))||ir(Vl)&&Vl.parentNode&&Fs[Vl.parentNode.nodeName]&&As(Vl.data))return!1;Vl=ua.next()}while(Vl)}return dr<=1},em=()=>e.createRange(),p2=(On,Pn,yr)=>{let dr=em(),uo,ua;if(On&&Pn&&On.parentNode&&Pn.parentNode){const Fs=On.parentNode;return dr.setStart(Fs,Ld(On)),dr.setEnd(Pn.parentNode,Ld(Pn)),uo=dr.extractContents(),dr=em(),dr.setStart(Pn.parentNode,Ld(Pn)+1),dr.setEnd(Fs,Ld(On)+1),ua=dr.extractContents(),Fs.insertBefore(Ah(ug,uo,Ke),On),yr?Fs.insertBefore(yr,On):Fs.insertBefore(Pn,On),Fs.insertBefore(Ah(ug,ua,Ke),On),us(On),yr||Pn}else return},Ey=(On,Pn,yr,dr)=>{if(S(On)){let uo=On.length;const ua=[];for(;uo--;)ua[uo]=Ey(On[uo],Pn,yr,dr);return ua}else return n.collect&&(On===e||On===f)&&Pe.push([On,Pn,yr,dr]),at.bind(On,Pn,yr,dr||ug)},QS=(On,Pn,yr)=>{if(S(On)){let dr=On.length;const uo=[];for(;dr--;)uo[dr]=QS(On[dr],Pn,yr);return uo}else{if(Pe.length>0&&(On===e||On===f)){let dr=Pe.length;for(;dr--;){const[uo,ua,Fs]=Pe[dr];On===uo&&(!Pn||Pn===ua)&&(!yr||yr===Fs)&&at.unbind(uo,ua,Fs)}}return at.unbind(On,Pn,yr)}},tm=(On,Pn,yr)=>at.dispatch(On,Pn,yr),rE=(On,Pn,yr)=>at.dispatch(On,Pn,yr),qS=On=>{if(On&&xl(On)){const Pn=On.getAttribute("data-mce-contenteditable");return Pn&&Pn!=="inherit"?Pn:On.contentEditable!=="inherit"?On.contentEditable:null}else return null},ug={doc:e,settings:n,win:f,files:w,stdMode:Z,boxModel:oe,styleSheetLoader:be,boundEvents:Pe,styles:Je,schema:Ke,events:at,isBlock:Ht,root:null,clone:$n,getRoot:nr,getViewPort:mr,getRect:ho,getSize:Qr,getParent:os,getParents:ca,get:At,getNext:ei,getPrev:zl,select:Sr,is:na,add:to,create:Lo,createHTML:Aa,createFragment:ps,remove:us,setStyle:zn,getStyle:er,setStyles:Nn,removeAllAttribs:ml,setAttrib:yn,setAttribs:$a,getAttrib:ln,getPos:Nr,parseStyle:th,serializeStyle:cf,addStyle:iu,loadCSS:pd,addClass:Oa,removeClass:vs,hasClass:Gs,toggleClass:zo,show:$s,hide:Iu,isHidden:nh,uniqueId:xp,setHTML:ha,getOuterHTML:eE,setOuterHTML:JS,decode:vr,encode:Oo,insertAfter:tE,replace:m2,rename:nE,findCommonAncestor:g2,run:so,getAttribs:xn,isEmpty:rh,createRng:em,nodeIndex:Ld,split:p2,bind:Ey,unbind:QS,fire:rE,dispatch:tm,getContentEditable:qS,getContentEditableParent:On=>{const Pn=nr();let yr=null;for(let dr=On;dr&&dr!==Pn&&(yr=qS(dr),yr===null);dr=dr.parentNode);return yr},isEditable:On=>{if(k(On)){const Pn=Gr(On)?On:On.parentElement;return k(Pn)&&xl(Pn)&&Wo(jt.fromDom(Pn))}else return!1},destroy:()=>{if(Pe.length>0){let On=Pe.length;for(;On--;){const[Pn,yr,dr]=Pe[On];at.unbind(Pn,yr,dr)}}Ft(w,(On,Pn)=>{be.unload(Pn),delete w[Pn]})},isChildOf:(On,Pn)=>On===Pn||Pn.contains(On),dumpRng:On=>"startContainer: "+On.startContainer.nodeName+", startOffset: "+On.startOffset+", endContainer: "+On.endContainer.nodeName+", endOffset: "+On.endOffset},v2=z3(Je,n,J(ug));return ug};Cs.DOM=Cs(document),Cs.nodeIndex=Ld;const JE=Cs.DOM,hi=0,V3=1,Is=2,tv=3;class Ni{constructor(n={}){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=!1,this.settings=n}_setReferrerPolicy(n){this.settings.referrerPolicy=n}loadScript(n){return new Promise((r,f)=>{const w=JE;let B;const Z=()=>{w.remove(Pe),B&&(B.onerror=B.onload=B=null)},oe=()=>{Z(),r()},be=()=>{Z(),f("Failed to load script: "+n)},Pe=w.uniqueId();B=document.createElement("script"),B.id=Pe,B.type="text/javascript",B.src=ur._addCacheSuffix(n),this.settings.referrerPolicy&&w.setAttrib(B,"referrerpolicy",this.settings.referrerPolicy),B.onload=oe,B.onerror=be,(document.getElementsByTagName("head")[0]||document.body).appendChild(B)})}isDone(n){return this.states[n]===Is}markDone(n){this.states[n]=Is}add(n){const r=this;return r.queue.push(n),r.states[n]===void 0&&(r.states[n]=hi),new Promise((w,B)=>{r.scriptLoadedCallbacks[n]||(r.scriptLoadedCallbacks[n]=[]),r.scriptLoadedCallbacks[n].push({resolve:w,reject:B})})}load(n){return this.add(n)}remove(n){delete this.states[n],delete this.scriptLoadedCallbacks[n]}loadQueue(){const n=this.queue;return this.queue=[],this.loadScripts(n)}loadScripts(n){const r=this,f=(be,Pe)=>{wn(r.scriptLoadedCallbacks,Pe).each(Ke=>{ie(Ke,Je=>Je[be](Pe))}),delete r.scriptLoadedCallbacks[Pe]},w=be=>{const Pe=ue(be,Ke=>Ke.status==="rejected");return Pe.length>0?Promise.reject(ze(Pe,({reason:Ke})=>S(Ke)?Ke:[Ke])):Promise.resolve()},B=be=>Promise.allSettled(Fe(be,Pe=>r.states[Pe]===Is?(f("resolve",Pe),Promise.resolve()):r.states[Pe]===tv?(f("reject",Pe),Promise.reject(Pe)):(r.states[Pe]=V3,r.loadScript(Pe).then(()=>{r.states[Pe]=Is,f("resolve",Pe);const Ke=r.queue;return Ke.length>0?(r.queue=[],B(Ke).then(w)):Promise.resolve()},()=>(r.states[Pe]=tv,f("reject",Pe),Promise.reject(Pe)))))),Z=be=>(r.loading=!0,B(be).then(Pe=>{r.loading=!1;const Ke=r.queueLoadedCallbacks.shift();return X.from(Ke).each(ce),w(Pe)})),oe=vt(n);return r.loading?new Promise((be,Pe)=>{r.queueLoadedCallbacks.push(()=>{Z(oe).then(be,Pe)})}):Z(oe)}}Ni.ScriptLoader=new Ni;const Us=e=>{let n=e;return{get:()=>n,set:w=>{n=w}}},Su=(e,n)=>{const r=e.indexOf(n);return r!==-1&&e.indexOf(n,r+1)>r},rw=e=>_(e)&<(e,"raw"),Al=e=>S(e)&&e.length>1,i1={},nv=Us("en"),Dd=()=>wn(i1,nv.get()),Cf={getData:()=>pn(i1,e=>({...e})),setCode:e=>{e&&nv.set(e)},getCode:()=>nv.get(),add:(e,n)=>{let r=i1[e];r||(i1[e]=r={});const f=Fe(Yt(n),w=>w.toLowerCase());Ft(n,(w,B)=>{const Z=B.toLowerCase();Z!==B&&Su(f,Z)?(lt(n,Z)||(r[Z]=w),r[B]=w):r[Z]=w})},translate:e=>{const n=Dd().getOr({}),r=Z=>R(Z)?Object.prototype.toString.call(Z):f(Z)?"":""+Z,f=Z=>Z===""||Z===null||Z===void 0,w=Z=>{const oe=r(Z);return lt(n,oe)?r(n[oe]):wn(n,oe.toLowerCase()).map(r).getOr(oe)},B=Z=>Z.replace(/{context:\w+}$/,"");if(f(e))return"";if(rw(e))return r(e.raw);if(Al(e)){const Z=e.slice(1),oe=w(e[0]).replace(/\{([0-9]+)\}/g,(be,Pe)=>lt(Z,Pe)?r(Z[Pe]):be);return B(oe)}return B(w(e))},isRtl:()=>Dd().bind(e=>wn(e,"_dir")).exists(e=>e==="rtl"),hasCode:e=>lt(i1,e)},rc=()=>{const e=[],n={},r={},f=[],w=(At,It)=>{const ln=ue(f,xn=>xn.name===At&&xn.state===It);ie(ln,xn=>xn.resolve())},B=At=>lt(n,At),Z=At=>lt(r,At),oe=At=>{if(r[At])return r[At].instance},be=(At,It)=>{const ln=Cf.getCode(),xn=","+(It||"")+",";!ln||It&&xn.indexOf(","+ln+",")===-1||Ni.ScriptLoader.add(n[At]+"/langs/"+ln+".js")},Pe=(At,It)=>{rc.languageLoad!==!1&&(B(At)?be(At,It):Ht(At,"loaded").then(()=>be(At,It)))},Ke=(At,It)=>(e.push(It),r[At]={instance:It},w(At,"added"),It),Je=At=>{delete n[At],delete r[At]},at=(At,It)=>C(It)?C(At)?{prefix:"",resource:It,suffix:""}:{prefix:At.prefix,resource:It,suffix:At.suffix}:It,Rt=(At,It)=>{if(n[At])return Promise.resolve();let ln=C(It)?It:It.prefix+It.resource+It.suffix;ln.indexOf("/")!==0&&ln.indexOf("://")===-1&&(ln=rc.baseURL+"/"+ln),n[At]=ln.substring(0,ln.lastIndexOf("/"));const xn=()=>(w(At,"loaded"),Promise.resolve());return r[At]?xn():Ni.ScriptLoader.add(ln).then(xn)},Ht=(At,It="added")=>It==="added"&&Z(At)||It==="loaded"&&B(At)?Promise.resolve():new Promise(ln=>{f.push({name:At,state:It,resolve:ln})});return{items:e,urls:n,lookup:r,get:oe,requireLangPack:Pe,add:Ke,remove:Je,createUrl:at,load:Rt,waitFor:Ht}};rc.languageLoad=!0,rc.baseURL="",rc.PluginManager=rc(),rc.ThemeManager=rc(),rc.ModelManager=rc();const qE=e=>{const n=Us(X.none()),r=()=>n.get().each(e);return{clear:()=>{r(),n.set(X.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:oe=>{r(),n.set(X.some(oe))}}},e4=e=>{const n=Us(X.none()),r=()=>n.get().each(oe=>clearInterval(oe));return{clear:()=>{r(),n.set(X.none())},isSet:()=>n.get().isSome(),get:()=>n.get(),set:oe=>{r(),n.set(X.some(setInterval(oe,e)))}}},Em=()=>{const e=qE(j);return{...e,on:r=>e.get().each(r)}},l1=(e,n)=>{let r=null;return{cancel:()=>{O(r)||(clearTimeout(r),r=null)},throttle:(...B)=>{O(r)&&(r=setTimeout(()=>{r=null,e.apply(null,B)},n))}}},wb=(e,n)=>{let r=null;const f=()=>{O(r)||(clearTimeout(r),r=null)};return{cancel:f,throttle:(...B)=>{f(),r=setTimeout(()=>{r=null,e.apply(null,B)},n)}}},Cb=J("mce-annotation"),$d=J("data-mce-annotation"),ov=J("data-mce-annotation-uid"),av=J("data-mce-annotation-active"),sv=J("data-mce-annotation-classes"),Wg=J("data-mce-annotation-attrs"),W3=e=>n=>Ba(n,e),ai=(e,n)=>{const r=e.selection.getRng(),f=jt.fromDom(r.startContainer),w=jt.fromDom(e.getBody()),B=n.fold(()=>"."+Cb(),be=>`[${$d()}="${be}"]`),Z=Sd(f,r.startOffset).getOr(f);return Ku(Z,B,W3(w)).bind(be=>Yl(be,`${ov()}`).bind(Pe=>Yl(be,`${$d()}`).map(Ke=>{const Je=Z3(e,Pe);return{uid:Pe,name:Ke,elements:Je}})))},G3=e=>sl(e)&&Cd(e,Cb()),iv=(e,n)=>Gu(e,"data-mce-bogus")||Ng(e,'[data-mce-bogus="all"]',W3(n)),Z3=(e,n)=>{const r=jt.fromDom(e.getBody()),f=Vi(r,`[${ov()}="${n}"]`);return ue(f,w=>!iv(w,r))},Sb=(e,n)=>{const r=jt.fromDom(e.getBody()),f=Vi(r,`[${$d()}="${n}"]`),w={};return ie(f,B=>{if(!iv(B,r)){const Z=il(B,ov()),oe=wn(w,Z).getOr([]);w[Z]=oe.concat([B])}}),w},Pl=(e,n)=>{const r=Us({}),f=()=>({listeners:[],previous:Em()}),w=(Je,at)=>{B(Je,Rt=>(at(Rt),Rt))},B=(Je,at)=>{const Rt=r.get(),Ht=wn(Rt,Je).getOrThunk(f),At=at(Ht);Rt[Je]=At,r.set(Rt)},Z=(Je,at,Rt)=>{w(Je,Ht=>{ie(Ht.listeners,At=>At(!0,Je,{uid:at,nodes:Fe(Rt,It=>It.dom)}))})},oe=Je=>{w(Je,at=>{ie(at.listeners,Rt=>Rt(!1,Je))})},be=(Je,at)=>{ie(Z3(e,Je),Rt=>{at?ws(Rt,av(),"true"):Xs(Rt,av())})},Pe=wb(()=>{const Je=Xe(n.getNames());ie(Je,at=>{B(at,Rt=>{const Ht=Rt.previous.get();return ai(e,X.some(at)).fold(()=>{Ht.each(At=>{oe(at),Rt.previous.clear(),be(At,!1)})},({uid:At,name:It,elements:ln})=>{Ms(Ht,At)||(Ht.each(xn=>be(xn,!1)),Z(It,At,ln),Rt.previous.set(At),be(At,!0))}),{previous:Rt.previous,listeners:Rt.listeners}})})},30);return e.on("remove",()=>{Pe.cancel()}),e.on("NodeChange",()=>{Pe.throttle()}),{addListener:(Je,at)=>{B(Je,Rt=>({previous:Rt.previous,listeners:Rt.listeners.concat([at])}))}}},Tu=(e,n)=>{const r=$d(),f=B=>X.from(B.attr(r)).bind(n.lookup),w=B=>{var Z,oe;B.attr(ov(),null),B.attr($d(),null),B.attr(av(),null);const be=X.from(B.attr(Wg())).map(at=>at.split(",")).getOr([]),Pe=X.from(B.attr(sv())).map(at=>at.split(",")).getOr([]);ie(be,at=>B.attr(at,null));const Ke=(oe=(Z=B.attr("class"))===null||Z===void 0?void 0:Z.split(" "))!==null&&oe!==void 0?oe:[],Je=dt(Ke,[Cb()].concat(Pe));B.attr("class",Je.length>0?Je.join(" "):null),B.attr(sv(),null),B.attr(Wg(),null)};e.serializer.addTempAttr(av()),e.serializer.addAttributeFilter(r,B=>{for(const Z of B)f(Z).each(oe=>{oe.persistent===!1&&(Z.name==="span"?Z.unwrap():w(Z))})})},j3=()=>{const e={};return{register:(w,B)=>{e[w]={name:w,settings:B}},lookup:w=>wn(e,w).map(B=>B.settings),getNames:()=>Yt(e)}};let Tb=0;const Gg=e=>{const r=new Date().getTime(),f=Math.floor(Math.random()*1e9);return Tb++,e+"_"+f+Tb+String(r)},t4=(e,n)=>{ie(n,r=>{hh(e,r)})},Y3=(e,n)=>{ie(n,r=>{mh(e,r)})},ow=(e,n)=>jt.fromDom(e.dom.cloneNode(n)),tu=e=>ow(e,!1),kb=e=>ow(e,!0),mi=(e,n)=>{const r=jt.fromTag(n),f=Mg(e);return Kc(r,f),r},Qf=(e,n)=>{const r=mi(e,n);gu(e,r);const f=zi(e);return hs(r,f),Ua(e),r},lv=(e,n,r=ne)=>{const f=new es(e,n),w=B=>{let Z;do Z=f[B]();while(Z&&!ir(Z)&&!r(Z));return X.from(Z).filter(ir)};return{current:()=>X.from(f.current()).filter(ir),next:()=>w("next"),prev:()=>w("prev"),prev2:()=>w("prev2")}},_m=(e,n)=>{const r=n||(Z=>e.isBlock(Z)||Ja(Z)||fa(Z)),f=(Z,oe,be,Pe)=>{if(ir(Z)){const Ke=Pe(Z,oe,Z.data);if(Ke!==-1)return X.some({container:Z,offset:Ke})}return be().bind(Ke=>f(Ke.container,Ke.offset,be,Pe))};return{backwards:(Z,oe,be,Pe)=>{const Ke=lv(Z,Pe??e.getRoot(),r);return f(Z,oe,()=>Ke.prev().map(Je=>({container:Je,offset:Je.length})),be).getOrNull()},forwards:(Z,oe,be,Pe)=>{const Ke=lv(Z,Pe??e.getRoot(),r);return f(Z,oe,()=>Ke.next().map(Je=>({container:Je,offset:0})),be).getOrNull()}}},Zg=Math.round,jg=e=>e?{left:Zg(e.left),top:Zg(e.top),bottom:Zg(e.bottom),right:Zg(e.right),width:Zg(e.width),height:Zg(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0},Lh=(e,n)=>(e=jg(e),n||(e.left=e.left+e.width),e.right=e.left,e.width=0,e),K3=(e,n)=>e.left===n.left&&e.top===n.top&&e.bottom===n.bottom&&e.right===n.right,Yg=(e,n,r)=>e>=0&&e<=Math.min(n.height,r.height)/2,Rm=(e,n)=>{const r=Math.min(n.height/2,e.height/2);return e.bottom-rn.bottom?!1:Yg(n.top-e.bottom,e,n)},Kg=(e,n)=>e.top>n.bottom?!0:e.bottomn>=e.left&&n<=e.right&&r>=e.top&&r<=e.bottom,n4=e=>le(e,(n,r)=>n.fold(()=>X.some(r),f=>{const w=Math.min(r.left,f.left),B=Math.min(r.top,f.top),Z=Math.max(r.right,f.right),oe=Math.max(r.bottom,f.bottom);return X.some({top:B,right:Z,bottom:oe,left:w,width:Z-w,height:oe-B})}),X.none()),aw=(e,n,r)=>{const f=Math.max(Math.min(n,e.left+e.width),e.left),w=Math.max(Math.min(r,e.top+e.height),e.top);return Math.sqrt((n-f)*(n-f)+(r-w)*(r-w))},r4=(e,n)=>Math.max(0,Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top)),Ab=(e,n,r)=>Math.min(Math.max(e,n),r),sw=e=>{const n=e.startContainer,r=e.startOffset;return n===e.endContainer&&n.hasChildNodes()&&e.endOffset===r+1?n.childNodes[r]:null},nu=(e,n)=>{if(Gr(e)&&e.hasChildNodes()){const r=e.childNodes,f=Ab(n,0,r.length-1);return r[f]}else return e},J3=(e,n)=>{if(!(n<0&&Gr(e)&&e.hasChildNodes()))return nu(e,n)},cv=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),Q3=e=>C(e)&&e.charCodeAt(0)>=768&&cv.test(e),o4=(...e)=>n=>{for(let r=0;rn=>{for(let r=0;re?e.createRange():Cs.DOM.createRng(),Dm=e=>C(e)&&/[\r\n\t ]/.test(e),cw=e=>!!e.setStart&&!!e.setEnd,Eb=e=>{const n=e.startContainer,r=e.startOffset;if(Dm(e.toString())&&iw(n.parentNode)&&ir(n)){const f=n.data;if(Dm(f[r-1])||Dm(f[r+1]))return!0}return!1},f1=e=>{const n=e.ownerDocument,r=Od(n),f=n.createTextNode(Da),w=e.parentNode;w.insertBefore(f,e),r.setStart(f,0),r.setEnd(f,1);const B=jg(r.getBoundingClientRect());return w.removeChild(f),B},uw=e=>{const n=e.startContainer,r=e.endContainer,f=e.startOffset,w=e.endOffset;if(n===r&&ir(r)&&f===0&&w===1){const B=e.cloneRange();return B.setEndAfter(r),Pd(B)}else return null},_b=e=>e.left===0&&e.right===0&&e.top===0&&e.bottom===0,Pd=e=>{var n;let r;const f=e.getClientRects();return f.length>0?r=jg(f[0]):r=jg(e.getBoundingClientRect()),!cw(e)&&u1(e)&&_b(r)?f1(e):_b(r)&&cw(e)&&(n=uw(e))!==null&&n!==void 0?n:r},Dh=(e,n)=>{const r=Lh(e,n);return r.width=1,r.right=r.left+1,r},a4=e=>{const n=[],r=Z=>{Z.height!==0&&(n.length>0&&K3(Z,n[n.length-1])||n.push(Z))},f=(Z,oe)=>{const be=Od(Z.ownerDocument);if(oe0&&(be.setStart(Z,oe-1),be.setEnd(Z,oe),Eb(be)||r(Dh(Pd(be),!1))),oe{const f=()=>(rs(e),n===0),w=()=>rs(e)?n>=e.data.length:n>=e.childNodes.length,B=()=>{const Ke=Od(e.ownerDocument);return Ke.setStart(e,n),Ke.setEnd(e,n),Ke},Z=()=>(r||(r=a4(In(e,n))),r),oe=()=>Z().length>0,be=Ke=>Ke&&e===Ke.container()&&n===Ke.offset(),Pe=Ke=>Zi(e,Ke?n-1:n);return{container:J(e),offset:J(n),toRange:B,getClientRects:Z,isVisible:oe,isAtStart:f,isAtEnd:w,isEqual:be,getNode:Pe}};In.fromRangeStart=e=>In(e.startContainer,e.startOffset),In.fromRangeEnd=e=>In(e.endContainer,e.endOffset),In.after=e=>In(e.parentNode,lw(e)+1),In.before=e=>In(e.parentNode,lw(e)),In.isAbove=(e,n)=>Es(gt(n.getClientRects()),ut(e.getClientRects()),Rm).getOr(!1),In.isBelow=(e,n)=>Es(ut(n.getClientRects()),gt(e.getClientRects()),Kg).getOr(!1),In.isAtStart=e=>e?e.isAtStart():!1,In.isAtEnd=e=>e?e.isAtEnd():!1,In.isTextPosition=e=>e?ir(e.container()):!1,In.isElementPosition=e=>!In.isTextPosition(e);const d1=(e,n)=>{ir(n)&&n.data.length===0&&e.remove(n)},uv=(e,n,r)=>{n.insertNode(r),d1(e,r.previousSibling),d1(e,r.nextSibling)},ku=(e,n,r)=>{const f=X.from(r.firstChild),w=X.from(r.lastChild);n.insertNode(r),f.each(B=>d1(e,B.previousSibling)),w.each(B=>d1(e,B.nextSibling))},fw=(e,n,r)=>{ns(r)?ku(e,n,r):uv(e,n,r)},Ds=ir,Rb=Ju,$h=Cs.nodeIndex,dw=e=>{const n=e.parentNode;return Rb(n)?dw(n):n},Lb=e=>e?fn(e.childNodes,(n,r)=>(Rb(r)&&r.nodeName!=="BR"?n=n.concat(Lb(r)):n.push(r),n),[]):[],hw=(e,n)=>{let r=e;for(;(r=r.previousSibling)&&Ds(r);)n+=r.data.length;return n},h1=e=>n=>e===n,fv=e=>{let n,r;n=Lb(dw(e)),r=tn(n,h1(e),e),n=n.slice(0,r+1);const f=fn(n,(w,B,Z)=>(Ds(B)&&Ds(n[Z-1])&&w++,w),0);return n=Tt(n,oi([e.nodeName])),r=tn(n,h1(e),e),r-f},mw=e=>(Ds(e)?"text()":e.nodeName.toLowerCase())+"["+fv(e)+"]",s4=(e,n,r)=>{const f=[];for(let w=n.parentNode;w&&w!==e&&!(r&&r(w));w=w.parentNode)f.push(w);return f},wc=(e,n)=>{let r=[],f=n.container(),w=n.offset(),B;if(Ds(f))B=hw(f,w);else{const oe=f.childNodes;w>=oe.length?(B="after",w=oe.length-1):B="before",f=oe[w]}r.push(mw(f));let Z=s4(e,f);return Z=Tt(Z,he(Ju)),r=r.concat(pt(Z,oe=>mw(oe))),r.reverse().join("/")+","+B},ji=(e,n,r)=>{let f=Lb(e);return f=Tt(f,(w,B)=>!Ds(w)||!Ds(f[B-1])),f=Tt(f,oi([n])),f[r]},Ml=(e,n)=>{let r=e,f=0;for(;Ds(r);){const w=r.data.length;if(n>=f&&n<=f+w){e=r,n=n-f;break}if(!Ds(r.nextSibling)){e=r,n=w;break}f+=w,r=r.nextSibling}return Ds(e)&&n>e.data.length&&(n=e.data.length),In(e,n)},Cc=(e,n)=>{if(!n)return null;const r=n.split(","),f=r[0].split("/"),w=r.length>1?r[1]:"before",B=fn(f,(Z,oe)=>{const be=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(oe);return be?(be[1]==="text()"&&(be[1]="#text"),ji(Z,be[1],parseInt(be[2],10))):null},e);if(!B)return null;if(!Ds(B)&&B.parentNode){let Z;return w==="after"?Z=$h(B)+1:Z=$h(B),In(B.parentNode,Z)}return Ml(B,parseInt(w,10))},Il=fa,oc=(e,n,r)=>{let f=e(n.data.slice(0,r)).length;for(let w=n.previousSibling;w&&ir(w);w=w.previousSibling)f+=e(w.data).length;return f},Yi=(e,n,r,f,w)=>{const B=w?f.startContainer:f.endContainer;let Z=w?f.startOffset:f.endOffset;const oe=[],be=e.getRoot();if(ir(B))oe.push(r?oc(n,B,Z):Z);else{let Pe=0;const Ke=B.childNodes;Z>=Ke.length&&Ke.length&&(Pe=1,Z=Math.max(0,Ke.length-1)),oe.push(e.nodeIndex(Ke[Z],r)+Pe)}for(let Pe=B;Pe&&Pe!==be;Pe=Pe.parentNode)oe.push(e.nodeIndex(Pe,r));return oe},gw=(e,n,r,f)=>{const w=n.dom,B=Yi(w,e,r,f,!0),Z=n.isForward(),oe=vn(f)?{isFakeCaret:!0}:{};if(n.isCollapsed())return{start:B,forward:Z,...oe};{const be=Yi(w,e,r,f,!1);return{start:B,end:be,forward:Z,...oe}}},m1=(e,n,r)=>{let f=0;return ur.each(e.select(n),w=>{if(w.getAttribute("data-mce-bogus")!=="all"){if(w===r)return!1;f++;return}}),f},pw=(e,n)=>{let r=n?e.startContainer:e.endContainer,f=n?e.startOffset:e.endOffset;if(Gr(r)&&r.nodeName==="TR"){const w=r.childNodes;r=w[Math.min(n?f:f-1,w.length-1)],r&&(f=n?0:r.childNodes.length,n?e.setStart(r,f):e.setEnd(r,f))}},g1=e=>(pw(e,!0),pw(e,!1),e),vw=(e,n)=>{if(Gr(e)&&(e=nu(e,n),Il(e)))return e;if(bt(e)){ir(e)&&rt(e)&&(e=e.parentNode);let r=e.previousSibling;if(Il(r)||(r=e.nextSibling,Il(r)))return r}},q3=e=>vw(e.startContainer,e.startOffset)||vw(e.endContainer,e.endOffset),Db=(e,n,r)=>{const f=r.getNode(),w=r.getRng();if(f.nodeName==="IMG"||Il(f)){const Z=f.nodeName;return{name:Z,index:m1(r.dom,Z,f)}}const B=q3(w);if(B){const Z=B.tagName;return{name:Z,index:m1(r.dom,Z,B)}}return gw(e,r,n,w)},yw=e=>{const n=e.getRng();return{start:wc(e.dom.getRoot(),In.fromRangeStart(n)),end:wc(e.dom.getRoot(),In.fromRangeEnd(n)),forward:e.isForward()}},i4=e=>({rng:e.getRng(),forward:e.isForward()}),l4=(e,n,r)=>{const f={"data-mce-type":"bookmark",id:n,style:"overflow:hidden;line-height:0px"};return r?e.create("span",f,""):e.create("span",f)},eT=(e,n)=>{const r=e.dom;let f=e.getRng();const w=r.uniqueId(),B=e.isCollapsed(),Z=e.getNode(),oe=Z.nodeName,be=e.isForward();if(oe==="IMG")return{name:oe,index:m1(r,oe,Z)};const Pe=g1(f.cloneRange());if(!B){Pe.collapse(!1);const Je=l4(r,w+"_end",n);fw(r,Pe,Je)}f=g1(f),f.collapse(!0);const Ke=l4(r,w+"_start",n);return fw(r,f,Ke),e.moveToBookmark({id:w,keep:!0,forward:be}),{id:w,forward:be}},c4=(e,n,r=!1)=>n===2?Db(_e,r,e):n===3?yw(e):n?i4(e):eT(e,!1),dv=Q(Db,K,!0),$b=e=>{const n=B=>B(e),r=J(e),f=()=>w,w={tag:!0,inner:e,fold:(B,Z)=>Z(e),isValue:fe,isError:ne,map:B=>Oc.value(B(e)),mapError:f,bind:n,exists:n,forall:n,getOr:r,or:f,getOrThunk:r,orThunk:f,getOrDie:r,each:B=>{B(e)},toOptional:()=>X.some(e)};return w},tT=e=>{const n=()=>r,r={tag:!1,inner:e,fold:(f,w)=>f(e),isValue:ne,isError:fe,map:n,mapError:f=>Oc.error(f(e)),bind:n,exists:ne,forall:fe,getOr:K,or:K,getOrThunk:Se,orThunk:Se,getOrDie:ge(String(e)),each:j,toOptional:X.none};return r},Oc={value:$b,error:tT,fromOption:(e,n)=>e.fold(()=>tT(n),$b)},ed={generate:e=>{if(!S(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");const n=[],r={};return ie(e,(f,w)=>{const B=Yt(f);if(B.length!==1)throw new Error("one and only one name per case");const Z=B[0],oe=f[Z];if(r[Z]!==void 0)throw new Error("duplicate key detected:"+Z);if(Z==="cata")throw new Error("cannot have a case named cata (sorry)");if(!S(oe))throw new Error("case arguments must be an array");n.push(Z),r[Z]=(...be)=>{const Pe=be.length;if(Pe!==oe.length)throw new Error("Wrong number of arguments to case "+Z+". Expected "+oe.length+" ("+oe+"), got "+Pe);return{fold:(...Je)=>{if(Je.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+Je.length);return Je[w].apply(null,be)},match:Je=>{const at=Yt(Je);if(n.length!==at.length)throw new Error("Wrong number of arguments to match. Expected: "+n.join(",")+` -Actual: `+at.join(","));if(!We(n,Ht=>Ve(at,Ht)))throw new Error("Not all branches were specified when using match. Specified: "+at.join(", ")+` -Required: `+n.join(", "));return Je[Z].apply(null,be)},log:Je=>{console.log(Je,{constructors:n,constructor:Z,params:be})}}}}),r}};ed.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const gr=e=>{const n=[],r=[];return ie(e,f=>{f.fold(w=>{n.push(w)},w=>{r.push(w)})}),{errors:n,values:r}},bw=e=>e.type==="inline-command"||e.type==="inline-format",Ki=e=>e.type==="block-command"||e.type==="block-format",nT=e=>{const n=f=>Oc.error({message:f,pattern:e}),r=(f,w,B)=>{if(e.format!==void 0){let Z;if(S(e.format)){if(!We(e.format,C))return n(f+" pattern has non-string items in the `format` array");Z=e.format}else if(C(e.format))Z=[e.format];else return n(f+" pattern has non-string `format` parameter");return Oc.value(w(Z))}else return e.cmd!==void 0?C(e.cmd)?Oc.value(B(e.cmd,e.value)):n(f+" pattern has non-string `cmd` parameter"):n(f+" pattern is missing both `format` and `cmd` parameters")};if(!_(e))return n("Raw pattern is not an object");if(!C(e.start))return n("Raw pattern is missing `start` parameter");if(e.end!==void 0){if(!C(e.end))return n("Inline pattern has non-string `end` parameter");if(e.start.length===0&&e.end.length===0)return n("Inline pattern has empty `start` and `end` parameters");let f=e.start,w=e.end;return w.length===0&&(w=f,f=""),r("Inline",B=>({type:"inline-format",start:f,end:w,format:B}),(B,Z)=>({type:"inline-command",start:f,end:w,cmd:B,value:Z}))}else return e.replacement!==void 0?C(e.replacement)?e.start.length===0?n("Replacement pattern has empty `start` parameter"):Oc.value({type:"inline-command",start:"",end:e.start,cmd:"mceInsertContent",value:e.replacement}):n("Replacement pattern has non-string `replacement` parameter"):e.start.length===0?n("Block pattern has empty `start` parameter"):r("Block",f=>({type:"block-format",start:e.start,format:f[0]}),(f,w)=>({type:"block-command",start:e.start,cmd:f,value:w}))},Ob=e=>ue(e,Ki),xw=e=>ue(e,bw),Pc=(e,n)=>({inlinePatterns:xw(e),blockPatterns:Ob(e),dynamicPatternsLookup:n}),u4=e=>{const n=gr(Fe(e,nT));return ie(n.errors,r=>console.error(r.message,r.pattern)),n.values},rT=e=>n=>{const r=e(n);return u4(r)},Ic=Ys().deviceType,hv=Ic.isTouch(),p1=Cs.DOM,Id=e=>{const n=e.indexOf("=")>0?e.split(/[;,](?![^=;,]*(?:[;,]|$))/):e.split(",");return le(n,(r,f)=>{const w=f.split("="),B=w[0],Z=w.length>1?w[1]:B;return r[Cr(B)]=Cr(Z),r},{})},Sf=e=>x(e,RegExp),Ur=e=>n=>n.options.get(e),Au=e=>C(e)||_(e),oT=(e,n="")=>r=>{const f=C(r);if(f)if(r.indexOf("=")!==-1){const w=Id(r);return{value:wn(w,e.id).getOr(n),valid:f}}else return{value:r,valid:f};else return{valid:!1,message:"Must be a string."}},aT=e=>{const n=e.options.register;n("id",{processor:"string",default:e.id}),n("selector",{processor:"string"}),n("target",{processor:"object"}),n("suffix",{processor:"string"}),n("cache_suffix",{processor:"string"}),n("base_url",{processor:"string"}),n("referrer_policy",{processor:"string",default:""}),n("language_load",{processor:"boolean",default:!0}),n("inline",{processor:"boolean",default:!1}),n("iframe_attrs",{processor:"object",default:{}}),n("doctype",{processor:"string",default:""}),n("document_base_url",{processor:"string",default:e.documentBaseUrl}),n("body_id",{processor:oT(e,"tinymce"),default:"tinymce"}),n("body_class",{processor:oT(e),default:""}),n("content_security_policy",{processor:"string",default:""}),n("br_in_pre",{processor:"boolean",default:!0}),n("forced_root_block",{processor:r=>{const f=C(r)&&St(r);return f?{value:r,valid:f}:{valid:!1,message:"Must be a non-empty string."}},default:"p"}),n("forced_root_block_attrs",{processor:"object",default:{}}),n("newline_behavior",{processor:r=>{const f=Ve(["block","linebreak","invert","default"],r);return f?{value:r,valid:f}:{valid:!1,message:"Must be one of: block, linebreak, invert or default."}},default:"default"}),n("br_newline_selector",{processor:"string",default:".mce-toc h2,figcaption,caption"}),n("no_newline_selector",{processor:"string",default:""}),n("keep_styles",{processor:"boolean",default:!0}),n("end_container_on_empty_block",{processor:r=>D(r)?{valid:!0,value:r}:C(r)?{valid:!0,value:r}:{valid:!1,message:"Must be boolean or a string"},default:"blockquote"}),n("font_size_style_values",{processor:"string",default:"xx-small,x-small,small,medium,large,x-large,xx-large"}),n("font_size_legacy_values",{processor:"string",default:"xx-small,small,medium,large,x-large,xx-large,300%"}),n("font_size_classes",{processor:"string",default:""}),n("automatic_uploads",{processor:"boolean",default:!0}),n("images_reuse_filename",{processor:"boolean",default:!1}),n("images_replace_blob_uris",{processor:"boolean",default:!0}),n("icons",{processor:"string",default:""}),n("icons_url",{processor:"string",default:""}),n("images_upload_url",{processor:"string",default:""}),n("images_upload_base_path",{processor:"string",default:""}),n("images_upload_credentials",{processor:"boolean",default:!1}),n("images_upload_handler",{processor:"function"}),n("language",{processor:"string",default:"en"}),n("language_url",{processor:"string",default:""}),n("entity_encoding",{processor:"string",default:"named"}),n("indent",{processor:"boolean",default:!0}),n("indent_before",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),n("indent_after",{processor:"string",default:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,details,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist"}),n("indent_use_margin",{processor:"boolean",default:!1}),n("indentation",{processor:"string",default:"40px"}),n("content_css",{processor:r=>{const f=r===!1||C(r)||H(r,C);return f?C(r)?{value:Fe(r.split(","),Cr),valid:f}:S(r)?{value:r,valid:f}:r===!1?{value:[],valid:f}:{value:r,valid:f}:{valid:!1,message:"Must be false, a string or an array of strings."}},default:Dw(e)?[]:["default"]}),n("content_style",{processor:"string"}),n("content_css_cors",{processor:"boolean",default:!1}),n("font_css",{processor:r=>{const f=C(r)||H(r,C);return f?{value:S(r)?r:Fe(r.split(","),Cr),valid:f}:{valid:!1,message:"Must be a string or an array of strings."}},default:[]}),n("inline_boundaries",{processor:"boolean",default:!0}),n("inline_boundaries_selector",{processor:"string",default:"a[href],code,span.mce-annotation"}),n("object_resizing",{processor:r=>{const f=D(r)||C(r);return f?r===!1||Ic.isiPhone()||Ic.isiPad()?{value:"",valid:f}:{value:r===!0?"table,img,figure.image,div,video,iframe":r,valid:f}:{valid:!1,message:"Must be boolean or a string"}},default:!hv}),n("resize_img_proportional",{processor:"boolean",default:!0}),n("event_root",{processor:"object"}),n("service_message",{processor:"string"}),n("theme",{processor:r=>r===!1||C(r)||R(r),default:"silver"}),n("theme_url",{processor:"string"}),n("formats",{processor:"object"}),n("format_empty_lines",{processor:"boolean",default:!1}),n("format_noneditable_selector",{processor:"string",default:""}),n("preview_styles",{processor:r=>{const f=r===!1||C(r);return f?{value:r===!1?"":r,valid:f}:{valid:!1,message:"Must be false or a string"}},default:"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"}),n("custom_ui_selector",{processor:"string",default:""}),n("hidden_input",{processor:"boolean",default:!0}),n("submit_patch",{processor:"boolean",default:!0}),n("encoding",{processor:"string"}),n("add_form_submit_trigger",{processor:"boolean",default:!0}),n("add_unload_trigger",{processor:"boolean",default:!0}),n("custom_undo_redo_levels",{processor:"number",default:0}),n("disable_nodechange",{processor:"boolean",default:!1}),n("readonly",{processor:"boolean",default:!1}),n("editable_root",{processor:"boolean",default:!0}),n("plugins",{processor:"string[]",default:[]}),n("external_plugins",{processor:"object"}),n("forced_plugins",{processor:"string[]"}),n("model",{processor:"string",default:e.hasPlugin("rtc")?"plugin":"dom"}),n("model_url",{processor:"string"}),n("block_unsupported_drop",{processor:"boolean",default:!0}),n("visual",{processor:"boolean",default:!0}),n("visual_table_class",{processor:"string",default:"mce-item-table"}),n("visual_anchor_class",{processor:"string",default:"mce-item-anchor"}),n("iframe_aria_text",{processor:"string",default:"Rich Text Area. Press ALT-0 for help."}),n("setup",{processor:"function"}),n("init_instance_callback",{processor:"function"}),n("url_converter",{processor:"function",default:e.convertURL}),n("url_converter_scope",{processor:"object",default:e}),n("urlconverter_callback",{processor:"function"}),n("allow_conditional_comments",{processor:"boolean",default:!1}),n("allow_html_data_urls",{processor:"boolean",default:!1}),n("allow_svg_data_urls",{processor:"boolean"}),n("allow_html_in_named_anchor",{processor:"boolean",default:!1}),n("allow_script_urls",{processor:"boolean",default:!1}),n("allow_unsafe_link_target",{processor:"boolean",default:!1}),n("convert_fonts_to_spans",{processor:"boolean",default:!0,deprecated:!0}),n("fix_list_elements",{processor:"boolean",default:!1}),n("preserve_cdata",{processor:"boolean",default:!1}),n("remove_trailing_brs",{processor:"boolean",default:!0}),n("pad_empty_with_br",{processor:"boolean",default:!1}),n("inline_styles",{processor:"boolean",default:!0,deprecated:!0}),n("element_format",{processor:"string",default:"html"}),n("entities",{processor:"string"}),n("schema",{processor:"string",default:"html5"}),n("convert_urls",{processor:"boolean",default:!0}),n("relative_urls",{processor:"boolean",default:!0}),n("remove_script_host",{processor:"boolean",default:!0}),n("custom_elements",{processor:"string"}),n("extended_valid_elements",{processor:"string"}),n("invalid_elements",{processor:"string"}),n("invalid_styles",{processor:Au}),n("valid_children",{processor:"string"}),n("valid_classes",{processor:Au}),n("valid_elements",{processor:"string"}),n("valid_styles",{processor:Au}),n("verify_html",{processor:"boolean",default:!0}),n("auto_focus",{processor:r=>C(r)||r===!0}),n("browser_spellcheck",{processor:"boolean",default:!1}),n("protect",{processor:"array"}),n("images_file_types",{processor:"string",default:"jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp"}),n("deprecation_warnings",{processor:"boolean",default:!0}),n("a11y_advanced_options",{processor:"boolean",default:!1}),n("api_key",{processor:"string"}),n("paste_block_drop",{processor:"boolean",default:!1}),n("paste_data_images",{processor:"boolean",default:!0}),n("paste_preprocess",{processor:"function"}),n("paste_postprocess",{processor:"function"}),n("paste_webkit_styles",{processor:"string",default:"none"}),n("paste_remove_styles_if_webkit",{processor:"boolean",default:!0}),n("paste_merge_formats",{processor:"boolean",default:!0}),n("smart_paste",{processor:"boolean",default:!0}),n("paste_as_text",{processor:"boolean",default:!1}),n("paste_tab_spaces",{processor:"number",default:4}),n("text_patterns",{processor:r=>H(r,_)||r===!1?{value:u4(r===!1?[]:r),valid:!0}:{valid:!1,message:"Must be an array of objects or false."},default:[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"1. ",cmd:"InsertOrderedList"},{start:"* ",cmd:"InsertUnorderedList"},{start:"- ",cmd:"InsertUnorderedList"}]}),n("text_patterns_lookup",{processor:r=>R(r)?{value:rT(r),valid:!0}:{valid:!1,message:"Must be a single function"},default:r=>[]}),n("noneditable_class",{processor:"string",default:"mceNonEditable"}),n("editable_class",{processor:"string",default:"mceEditable"}),n("noneditable_regexp",{processor:r=>H(r,Sf)?{value:r,valid:!0}:Sf(r)?{value:[r],valid:!0}:{valid:!1,message:"Must be a RegExp or an array of RegExp."},default:[]}),n("table_tab_navigation",{processor:"boolean",default:!0}),n("highlight_on_focus",{processor:"boolean",default:!1}),n("xss_sanitization",{processor:"boolean",default:!0}),n("details_initial_state",{processor:r=>{const f=Ve(["inherited","collapsed","expanded"],r);return f?{value:r,valid:f}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),n("details_serialized_state",{processor:r=>{const f=Ve(["inherited","collapsed","expanded"],r);return f?{value:r,valid:f}:{valid:!1,message:"Must be one of: inherited, collapsed, or expanded."}},default:"inherited"}),n("init_content_sync",{processor:"boolean",default:!1}),n("newdocument_content",{processor:"string",default:""}),n("force_hex_color",{processor:r=>{const f=["always","rgb_only","off"],w=Ve(f,r);return w?{value:r,valid:w}:{valid:!1,message:`Must be one of: ${f.join(", ")}.`}},default:"off"}),n("sandbox_iframes",{processor:"boolean",default:!1}),n("convert_unsafe_embeds",{processor:"boolean",default:!1}),e.on("ScriptsLoaded",()=>{n("directionality",{processor:"string",default:Cf.isRtl()?"rtl":void 0}),n("placeholder",{processor:"string",default:p1.getAttrib(e.getElement(),"placeholder")})})},ww=Ur("iframe_attrs"),sT=Ur("doctype"),Cw=Ur("document_base_url"),Sw=Ur("body_id"),f4=Ur("body_class"),Tw=Ur("content_security_policy"),d4=Ur("br_in_pre"),ac=Ur("forced_root_block"),v1=Ur("forced_root_block_attrs"),h4=Ur("newline_behavior"),m4=Ur("br_newline_selector"),kw=Ur("no_newline_selector"),g4=Ur("keep_styles"),iT=Ur("end_container_on_empty_block"),lT=Ur("automatic_uploads"),y1=Ur("images_reuse_filename"),cT=Ur("images_replace_blob_uris"),Aw=Ur("icons"),Xg=Ur("icons_url"),p4=Ur("images_upload_url"),v4=Ur("images_upload_base_path"),Mw=Ur("images_upload_credentials"),y4=Ur("images_upload_handler"),Oh=Ur("content_css_cors"),ia=Ur("referrer_policy"),Ew=Ur("language"),sc=Ur("language_url"),Pb=Ur("indent_use_margin"),_w=Ur("indentation"),Rw=Ur("content_css"),Ib=Ur("content_style"),uT=Ur("font_css"),b4=Ur("directionality"),x4=Ur("inline_boundaries_selector"),mv=Ur("object_resizing"),fT=Ur("resize_img_proportional"),i$=Ur("placeholder"),$m=Ur("event_root"),w4=Ur("service_message"),gv=Ur("theme"),C4=Ur("theme_url"),Lw=Ur("model"),dT=Ur("model_url"),Jg=Ur("inline_boundaries"),S4=Ur("formats"),hT=Ur("preview_styles"),mT=Ur("format_empty_lines"),pv=Ur("format_noneditable_selector"),gT=Ur("custom_ui_selector"),Dw=Ur("inline"),T4=Ur("hidden_input"),pT=Ur("submit_patch"),Nd=Ur("add_form_submit_trigger"),b1=Ur("add_unload_trigger"),x1=Ur("custom_undo_redo_levels"),Nb=Ur("disable_nodechange"),w1=Ur("readonly"),tf=Ur("editable_root"),vv=Ur("content_css_cors"),C1=Ur("plugins"),Om=Ur("external_plugins"),Fb=Ur("block_unsupported_drop"),k4=Ur("visual"),A4=Ur("visual_table_class"),vT=Ur("visual_anchor_class"),M4=Ur("iframe_aria_text"),$w=Ur("setup"),E4=Ur("init_instance_callback"),_4=Ur("urlconverter_callback"),yT=Ur("auto_focus"),R4=Ur("browser_spellcheck"),bT=Ur("protect"),L4=Ur("paste_block_drop"),Bb=Ur("paste_data_images"),D4=Ur("paste_preprocess"),xT=Ur("paste_postprocess"),yv=Ur("newdocument_content"),Ow=Ur("paste_webkit_styles"),Pw=Ur("paste_remove_styles_if_webkit"),Iw=Ur("paste_merge_formats"),wT=Ur("smart_paste"),Nw=Ur("paste_as_text"),$4=Ur("paste_tab_spaces"),Hb=Ur("allow_html_data_urls"),zb=Ur("text_patterns"),O4=Ur("text_patterns_lookup"),Fw=Ur("noneditable_class"),CT=Ur("editable_class"),P4=Ur("noneditable_regexp"),Bw=Ur("preserve_cdata"),I4=Ur("highlight_on_focus"),bv=Ur("xss_sanitization"),N4=Ur("init_content_sync"),Hw=e=>e.options.isSet("text_patterns_lookup"),F4=e=>ur.explode(e.options.get("font_size_style_values")),B4=e=>ur.explode(e.options.get("font_size_classes")),H4=e=>e.options.get("encoding")==="xml",ST=e=>ur.explode(e.options.get("images_file_types")),z4=Ur("table_tab_navigation"),fl=Ur("details_initial_state"),l$=Ur("details_serialized_state"),xv=Ur("force_hex_color"),Vb=Ur("sandbox_iframes"),TT=Gr,zw=ir,kT=e=>{const n=e.parentNode;n&&n.removeChild(e)},AT=e=>{const n=_e(e);return{count:e.length-n.length,text:n}},Qg=e=>{let n;for(;(n=e.data.lastIndexOf(ve))!==-1;)e.deleteData(n,1)},S1=(e,n)=>(Xi(e),n),V4=(e,n)=>{const r=AT(e.data.substr(0,n.offset())),f=AT(e.data.substr(n.offset()));return(r.text+f.text).length>0?(Qg(e),In(e,n.offset()-r.count)):n},U4=(e,n)=>{const r=n.container(),f=Ne(tt(r.childNodes),e).map(w=>wzw(e)&&n.container()===e?V4(e,n):S1(e,n),Vw=(e,n)=>n.container()===e.parentNode?U4(e,n):S1(e,n),MT=(e,n)=>In.isTextPosition(n)?T1(e,n):Vw(e,n),Xi=e=>{TT(e)&&bt(e)&&(Vt(e)?e.removeAttribute("data-mce-caret"):kT(e)),zw(e)&&(Qg(e),e.data.length===0&&kT(e))},ET=fa,Uw=zs,c$=Bg,wv="*[contentEditable=false],video,audio,embed,object",W4=(e,n,r)=>{const f=Lh(n.getBoundingClientRect(),r);let w,B;if(e.tagName==="BODY"){const oe=e.ownerDocument.documentElement;w=e.scrollLeft||oe.scrollLeft,B=e.scrollTop||oe.scrollTop}else{const oe=e.getBoundingClientRect();w=e.scrollLeft-oe.left,B=e.scrollTop-oe.top}f.left+=w,f.right+=w,f.top+=B,f.bottom+=B,f.width=1;let Z=n.offsetWidth-n.clientWidth;return Z>0&&(r&&(Z*=-1),f.left+=Z,f.right+=Z),f},_T=e=>{var n,r;const f=Vi(jt.fromDom(e),wv);for(let w=0;w{const w=Em();let B,Z;const oe=ac(e),be=e.dom,Pe=(At,It)=>{let ln;if(Ke(),c$(It))return null;if(r(It)){const xn=Kt(oe,It,At),yn=W4(n,It,At);be.setStyle(xn,"top",yn.top),Z=xn;const $n=be.create("div",{class:"mce-visual-caret","data-mce-bogus":"all"});be.setStyles($n,{...yn}),be.add(n,$n),w.set({caret:$n,element:It,before:At}),At&&be.addClass($n,"mce-visual-caret-before"),Je(),ln=It.ownerDocument.createRange(),ln.setStart(xn,0),ln.setEnd(xn,0)}else return Z=Wt(It,At),ln=It.ownerDocument.createRange(),Ub(Z.nextSibling)?(ln.setStart(Z,0),ln.setEnd(Z,0)):(ln.setStart(Z,1),ln.setEnd(Z,1)),ln;return ln},Ke=()=>{_T(n),Z&&(Xi(Z),Z=null),w.on(At=>{be.remove(At.caret),w.clear()}),B&&(clearInterval(B),B=void 0)},Je=()=>{B=setInterval(()=>{w.on(At=>{f()?be.toggleClass(At.caret,"mce-visual-caret-hidden"):be.addClass(At.caret,"mce-visual-caret-hidden")})},500)};return{show:Pe,hide:Ke,getCss:()=>".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}",reposition:()=>{w.on(At=>{const It=W4(n,At.element,At.before);be.setStyles(At.caret,{...It})})},destroy:()=>clearInterval(B)}},k1=()=>Lr.browser.isFirefox(),Ub=e=>ET(e)||Uw(e),Cv=e=>(Ub(e)||yu(e)&&k1())&&gm(jt.fromDom(e)).exists(Wo),G4=wl,Pm=fa,RT=zs,Im=Gf("display","block table table-cell table-caption list-item"),Nm=bt,Gw=rt,LT=Gr,u$=ir,Zw=fo,Fm=e=>e>0,Fd=e=>e<0,A1=(e,n)=>{let r;for(;r=e(n);)if(!Gw(r))return r;return null},Sv=(e,n,r,f,w)=>{const B=new es(e,f),Z=Pm(e)||Gw(e);let oe;if(Fd(n)){if(Z&&(oe=A1(B.prev.bind(B),!0),r(oe)))return oe;for(;oe=A1(B.prev.bind(B),w);)if(r(oe))return oe}if(Fm(n)){if(Z&&(oe=A1(B.next.bind(B),!0),r(oe)))return oe;for(;oe=A1(B.next.bind(B),w);)if(r(oe))return oe}return null},jw=(e,n)=>{const r=w=>G4(w.dom),f=w=>w.dom===n;return Js(jt.fromDom(e),r,f).map(w=>w.dom).getOr(n)},Ph=(e,n)=>{for(;e&&e!==n;){if(Im(e))return e;e=e.parentNode}return null},td=(e,n,r)=>Ph(e.container(),r)===Ph(n.container(),r),M1=(e,n)=>{if(!n)return X.none();const r=n.container(),f=n.offset();return LT(r)?X.from(r.childNodes[f+e]):X.none()},Wb=(e,n)=>{var r;const w=((r=n.ownerDocument)!==null&&r!==void 0?r:document).createRange();return e?(w.setStartBefore(n),w.setEndBefore(n)):(w.setStartAfter(n),w.setEndAfter(n)),w},E1=(e,n,r)=>Ph(n,e)===Ph(r,e),Yw=(e,n,r)=>{const f=e?"previousSibling":"nextSibling";let w=r;for(;w&&w!==n;){let B=w[f];if(B&&Nm(B)&&(B=B[f]),Pm(B)||RT(B)){if(E1(n,B,w))return B;break}if(Zw(B))break;w=w.parentNode}return null},Tv=Q(Wb,!0),_1=Q(Wb,!1),Kw=(e,n,r)=>{let f;const w=Q(Yw,!0,n),B=Q(Yw,!1,n),Z=r.startContainer,oe=r.startOffset;if(rt(Z)){const be=u$(Z)?Z.parentNode:Z,Pe=be.getAttribute("data-mce-caret");if(Pe==="before"&&(f=be.nextSibling,Cv(f)))return Tv(f);if(Pe==="after"&&(f=be.previousSibling,Cv(f)))return _1(f)}if(!r.collapsed)return r;if(ir(Z)){if(Nm(Z)){if(e===1){if(f=B(Z),f)return Tv(f);if(f=w(Z),f)return _1(f)}if(e===-1){if(f=w(Z),f)return _1(f);if(f=B(Z),f)return Tv(f)}return r}if(dn(Z)&&oe>=Z.data.length-1)return e===1&&(f=B(Z),f)?Tv(f):r;if(en(Z)&&oe<=1)return e===-1&&(f=w(Z),f)?_1(f):r;if(oe===Z.data.length)return f=B(Z),f?Tv(f):r;if(oe===0)return f=w(Z),f?_1(f):r}return r},DT=(e,n)=>M1(e?0:-1,n).filter(Pm),Bm=(e,n,r)=>{const f=Kw(e,n,r);return e===-1?In.fromRangeStart(f):In.fromRangeEnd(f)},Gb=e=>X.from(e.getNode()).map(jt.fromDom),Z4=e=>X.from(e.getNode(!0)).map(jt.fromDom),$T=(e,n)=>{let r=n;for(;r=e(r);)if(r.isVisible())return r;return r},Xw=(e,n)=>{const r=td(e,n);return!r&&Ja(e.getNode())?!0:r};var gi;(function(e){e[e.Backwards=-1]="Backwards",e[e.Forwards=1]="Forwards"})(gi||(gi={}));const f$=fa,Ih=ir,OT=Gr,Zb=Ja,Hm=fo,Nl=_o,kv=sa,R1=(e,n)=>{const r=[];let f=e;for(;f&&f!==n;)r.push(f),f=f.parentNode;return r},Av=(e,n)=>e.hasChildNodes()&&n{if(Fm(e)){if(Hm(n.previousSibling)&&!Ih(n.previousSibling))return In.before(n);if(Ih(n))return In(n,0)}if(Fd(e)){if(Hm(n.nextSibling)&&!Ih(n.nextSibling))return In.after(n);if(Ih(n))return In(n,n.data.length)}return Fd(e)?Zb(n)?In.before(n):In.after(n):In.before(n)},Mv=(e,n)=>{const r=n.nextSibling;return r&&Hm(r)?Ih(r)?In(r,0):In.before(r):qg(gi.Forwards,In.after(n),e)},qg=(e,n,r)=>{let f,w,B,Z;if(!OT(r)||!n)return null;if(n.isEqual(In.after(r))&&r.lastChild){if(Z=In.after(r.lastChild),Fd(e)&&Hm(r.lastChild)&&OT(r.lastChild))return Zb(r.lastChild)?In.before(r.lastChild):Z}else Z=n;const oe=Z.container();let be=Z.offset();if(Ih(oe)){if(Fd(e)&&be>0)return In(oe,--be);if(Fm(e)&&be0&&(w=Av(oe,be-1),Hm(w)))return!Nl(w)&&(B=Sv(w,e,kv,w),B)?Ih(B)?In(B,B.data.length):In.after(B):Ih(w)?In(w,w.data.length):In.before(w);if(Fm(e)&&be({next:n=>qg(gi.Forwards,n,e),prev:n=>qg(gi.Backwards,n,e)}),j4=(e,n,r)=>{const f=e?In.before(r):In.after(r);return dl(e,n,f)},Y4=e=>Ja(e)?In.before(e):In.after(e),zm=e=>In.isTextPosition(e)?e.offset()===0:fo(e.getNode()),Ev=e=>{if(In.isTextPosition(e)){const n=e.container();return e.offset()===n.data.length}else return fo(e.getNode(!0))},jb=(e,n)=>!In.isTextPosition(e)&&!In.isTextPosition(n)&&e.getNode()===n.getNode(!0),Bd=e=>!In.isTextPosition(e)&&Ja(e.getNode()),Qw=(e,n,r)=>e?!jb(n,r)&&!Bd(n)&&Ev(n)&&zm(r):!jb(r,n)&&zm(n)&&Ev(r),dl=(e,n,r)=>{const f=nd(n);return X.from(e?f.next(r):f.prev(r))},Nh=(e,n,r)=>dl(e,n,r).bind(f=>td(r,f,n)&&Qw(e,r,f)?dl(e,n,f):X.some(f)),Tf=(e,n,r,f)=>Nh(e,n,r).bind(w=>f(w)?Tf(e,n,w,f):X.some(w)),_v=(e,n)=>{const r=e?n.firstChild:n.lastChild;return ir(r)?X.some(In(r,e?0:r.data.length)):r?fo(r)?X.some(e?In.before(r):Y4(r)):j4(e,n,r):X.none()},ic=Q(dl,!0),Nc=Q(dl,!1),Sc=Q(_v,!0),kf=Q(_v,!1),Yb="_mce_caret",Mu=e=>Gr(e)&&e.id===Yb,ep=(e,n)=>{let r=n;for(;r&&r!==e;){if(Mu(r))return r;r=r.parentNode}return null},qw=e=>C(e.start),K4=e=>lt(e,"rng"),PT=e=>lt(e,"id"),L1=e=>lt(e,"name"),IT=e=>ur.isArray(e.start),D1=e=>!L1(e)&&D(e.forward)?e.forward:!0,Kb=(e,n)=>(Gr(n)&&e.isBlock(n)&&!n.innerHTML&&(n.innerHTML='
    '),n),X4=(e,n)=>{const r=X.from(Cc(e.getRoot(),n.start)),f=X.from(Cc(e.getRoot(),n.end));return Es(r,f,(w,B)=>{const Z=e.createRng();return Z.setStart(w.container(),w.offset()),Z.setEnd(B.container(),B.offset()),{range:Z,forward:D1(n)}})},NT=(e,n)=>{var r;const w=((r=e.ownerDocument)!==null&&r!==void 0?r:document).createTextNode(ve);e.appendChild(w),n.setStart(w,0),n.setEnd(w,0)},J4=e=>!e.hasChildNodes(),d$=(e,n)=>kf(e).fold(ne,r=>(n.setStart(r.container(),r.offset()),n.setEnd(r.container(),r.offset()),!0)),FT=(e,n,r)=>J4(n)&&ep(e,n)?(NT(n,r),!0):!1,va=(e,n,r,f)=>{const w=r[n?"start":"end"],B=e.getRoot();if(w){let Z=B,oe=w[0];for(let be=w.length-1;Z&&be>=1;be--){const Pe=Z.childNodes;if(FT(B,Z,f))return!0;if(w[be]>Pe.length-1)return FT(B,Z,f)?!0:d$(Z,f);Z=Pe[w[be]]}ir(Z)&&(oe=Math.min(w[0],Z.data.length)),Gr(Z)&&(oe=Math.min(w[0],Z.childNodes.length)),n?f.setStart(Z,oe):f.setEnd(Z,oe)}return!0},rd=e=>ir(e)&&e.data.length>0,tp=(e,n,r)=>{const f=e.get(r.id+"_"+n),w=f==null?void 0:f.parentNode,B=r.keep;if(f&&w){let Z,oe;if(n==="start"?B?f.hasChildNodes()?(Z=f.firstChild,oe=1):rd(f.nextSibling)?(Z=f.nextSibling,oe=0):rd(f.previousSibling)?(Z=f.previousSibling,oe=f.previousSibling.data.length):(Z=w,oe=e.nodeIndex(f)+1):(Z=w,oe=e.nodeIndex(f)):B?f.hasChildNodes()?(Z=f.firstChild,oe=1):rd(f.previousSibling)?(Z=f.previousSibling,oe=f.previousSibling.data.length):(Z=w,oe=e.nodeIndex(f)):(Z=w,oe=e.nodeIndex(f)),!B){const be=f.previousSibling,Pe=f.nextSibling;ur.each(ur.grep(f.childNodes),Je=>{ir(Je)&&(Je.data=Je.data.replace(/\uFEFF/g,""))});let Ke;for(;Ke=e.get(r.id+"_"+n);)e.remove(Ke,!0);if(ir(Pe)&&ir(be)&&!Lr.browser.isOpera()){const Je=be.data.length;be.appendData(Pe.data),e.remove(Pe),Z=be,oe=Je}}return X.some(In(Z,oe))}else return X.none()},eC=(e,n)=>{const r=e.createRng();return va(e,!0,n,r)&&va(e,!1,n,r)?X.some({range:r,forward:D1(n)}):X.none()},BT=(e,n)=>{const r=tp(e,"start",n),f=tp(e,"end",n);return Es(r,f.or(r),(w,B)=>{const Z=e.createRng();return Z.setStart(Kb(e,w.container()),w.offset()),Z.setEnd(Kb(e,B.container()),B.offset()),{range:Z,forward:D1(n)}})},$1=(e,n)=>X.from(e.select(n.name)[n.index]).map(r=>{const f=e.createRng();return f.selectNode(r),{range:f,forward:!0}}),Q4=(e,n)=>{const r=e.dom;if(n){if(IT(n))return eC(r,n);if(qw(n))return X4(r,n);if(PT(n))return BT(r,n);if(L1(n))return $1(r,n);if(K4(n))return X.some({range:n.rng,forward:D1(n)})}return X.none()},Rv=(e,n,r)=>c4(e,n,r),Xb=(e,n)=>{Q4(e,n).each(({range:r,forward:f})=>{e.setRng(r,f)})},Eu=e=>Gr(e)&&e.tagName==="SPAN"&&e.getAttribute("data-mce-type")==="bookmark",Jb=(e=>n=>e===n)(Da),Lv=e=>e!==""&&` \f -\r \v`.indexOf(e)!==-1,Vm=e=>!Lv(e)&&!Jb(e)&&!Qu(e),Qb=e=>{const n=[];if(e)for(let r=0;rze(e,n=>{const r=sw(n);return r?[jt.fromDom(r)]:[]}),np=e=>Qb(e).length>1,q4=e=>ue(qb(e),bc),HT=e=>Vi(e,"td[data-mce-selected],th[data-mce-selected]"),e_=(e,n)=>{const r=HT(n);return r.length>0?r:q4(e)},Dv=e=>e_(Qb(e.selection.getSel()),jt.fromDom(e.getBody())),Fh=(e,n)=>vm(e,"table",n),t_=e=>{const n=e.startContainer,r=e.startOffset;return ir(n)?r===0?X.some(jt.fromDom(n)):X.none():X.from(n.childNodes[r]).map(jt.fromDom)},n_=e=>{const n=e.endContainer,r=e.endOffset;return ir(n)?r===n.data.length?X.some(jt.fromDom(n)):X.none():X.from(n.childNodes[r-1]).map(jt.fromDom)},zT=e=>pm(e).fold(J([e]),n=>[e].concat(zT(n))),tC=e=>Xl(e).fold(J([e]),n=>La(n)==="br"?hu(n).map(r=>[e].concat(tC(r))).getOr([]):[e].concat(tC(n))),nC=(e,n)=>Es(t_(n),n_(n),(r,f)=>{const w=de(zT(e),Q(Ba,r)),B=de(tC(e),Q(Ba,f));return w.isSome()&&B.isSome()}).getOr(!1),rC=(e,n,r,f)=>{const w=r,B=new es(r,w),Z=Cn(e.schema.getMoveCaretBeforeOnEnterElements(),(be,Pe)=>!Ve(["td","th","table"],Pe.toLowerCase()));let oe=r;do{if(ir(oe)&&ur.trim(oe.data).length!==0){f?n.setStart(oe,0):n.setEnd(oe,oe.data.length);return}if(Z[oe.nodeName]){f?n.setStartBefore(oe):oe.nodeName==="BR"?n.setEndBefore(oe):n.setEndAfter(oe);return}}while(oe=f?B.next():B.prev());w.nodeName==="BODY"&&(f?n.setStart(w,0):n.setEnd(w,w.childNodes.length))},ex=e=>{const n=e.selection.getSel();return k(n)&&n.rangeCount>0},Um=(e,n)=>{const r=Dv(e);r.length>0?ie(r,f=>{const w=f.dom,B=e.dom.createRng();B.setStartBefore(w),B.setEndAfter(w),n(B,!0)}):n(e.selection.getRng(),!1)},VT=(e,n,r)=>{const f=eT(e,n);r(f),e.moveToBookmark(f)},O1=e=>F(e==null?void 0:e.nodeType),oC=e=>Gr(e)&&!Eu(e)&&!Mu(e)&&!Ju(e),r_=(e,n)=>{if(oC(n)&&!/^(TD|TH)$/.test(n.nodeName)){const r=e.getAttrib(n,"data-mce-selected"),f=parseInt(r,10);return!isNaN(f)&&f>0}else return!1},P1=(e,n,r)=>{const{selection:f,dom:w}=e,B=f.getNode(),Z=fa(B);VT(f,!0,()=>{n()}),Z&&fa(B)&&w.isChildOf(B,e.getBody())?e.selection.select(B):r(f.getStart())&&o_(w,f)},o_=(e,n)=>{var r,f;const w=n.getRng(),{startContainer:B,startOffset:Z}=w,oe=n.getNode();if(!r_(e,oe)&&Gr(B)){const be=B.childNodes,Pe=e.getRoot();let Ke;if(Z{if(e){const f=n?"nextSibling":"previousSibling";for(e=r?e:e[f];e;e=e[f])if(Gr(e)||!Si(e))return e}},Fi=(e,n)=>!!e.getTextBlockElements()[n.nodeName.toLowerCase()]||pa(e,n),Bh=(e,n,r)=>e.schema.isValidChild(n,r),Si=(e,n=!1)=>{if(k(e)&&ir(e)){const r=n?e.data.replace(/ /g," "):e.data;return As(r)}else return!1},nf=e=>k(e)&&ir(e)&&e.length===0,tx=(e,n)=>{const r="[data-mce-cef-wrappable]",f=pv(e),w=kt(f)?r:`${r},${f}`;return du(jt.fromDom(n),w)},I1=(e,n)=>{const r=e.dom;return oC(n)&&r.getContentEditable(n)==="false"&&tx(e,n)&&r.select('[contenteditable="true"]',n).length===0},od=(e,n)=>R(e)?e(n):(k(n)&&(e=e.replace(/%(\w+)/g,(r,f)=>n[f]||r)),e),nx=(e,n)=>(e=e||"",n=n||"",e=""+(e.nodeName||e),n=""+(n.nodeName||n),e.toLowerCase()===n.toLowerCase()),rx=(e,n)=>{if(M(e))return null;{let r=String(e);return(n==="color"||n==="backgroundColor")&&(r=Xp(r)),n==="fontWeight"&&e===700&&(r="bold"),n==="fontFamily"&&(r=r.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),r}},$v=(e,n,r)=>{const f=e.getStyle(n,r);return rx(f,r)},UT=(e,n)=>{let r;return e.getParent(n,f=>Gr(f)?(r=e.getStyle(f,"text-decoration"),!!r&&r!=="none"):!1),r},N1=(e,n,r)=>e.getParents(n,r,e.getRoot()),aC=(e,n,r)=>{const f=e.formatter.get(n);return k(f)&&Oe(f,r)},sC=(e,n)=>aC(e,n,f=>{const w=B=>R(B)||B.length>1&&B.charAt(0)==="%";return Oe(["styles","attributes"],B=>wn(f,B).exists(Z=>{const oe=S(Z)?Z:Wn(Z);return Oe(oe,w)}))}),a_=(e,n,r)=>{const f=["inline","block","selector","attributes","styles","classes"],w=B=>Cn(B,(Z,oe)=>Oe(f,be=>be===oe));return aC(e,n,B=>{const Z=w(B);return aC(e,r,oe=>{const be=w(oe);return wt(Z,be)})})},ad=e=>ft(e,"block"),ox=e=>ad(e)&&e.wrapper===!0,Ov=e=>ad(e)&&e.wrapper!==!0,El=e=>ft(e,"selector"),$i=e=>ft(e,"inline"),ax=e=>El(e)&&$i(e)&&Ms(wn(e,"mixed"),!0),F1=e=>El(e)&&e.expand!==!1&&!$i(e),sx=e=>{const n=[];let r=e;for(;r;){if(ir(r)&&r.data!==ve||r.childNodes.length>1)return[];Gr(r)&&n.push(r),r=r.firstChild}return n},B1=e=>sx(e).length>0,H1=e=>Mu(e.dom)&&B1(e.dom),Pv=Eu,WT=N1,z1=Si,GT=Fi,ZT=e=>Ja(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling,jT=(e,n)=>{let r=n;for(;r;){if(Gr(r)&&e.getContentEditable(r))return e.getContentEditable(r)==="false"?r:n;r=r.parentNode}return n},rf=(e,n,r,f)=>{const w=n.data;if(e){for(let B=r;B>0;B--)if(f(w.charAt(B-1)))return B}else for(let B=r;Brf(e,n,r,f=>Jb(f)||Lv(f)),Af=(e,n,r)=>rf(e,n,r,Vm),Fc=(e,n,r,f,w,B)=>{let Z;const oe=e.getParent(r,e.isBlock)||n,be=(Ke,Je,at)=>{const Rt=_m(e),Ht=w?Rt.backwards:Rt.forwards;return X.from(Ht(Ke,Je,(At,It)=>Pv(At.parentNode)?-1:(Z=At,at(w,At,It)),oe))};return be(r,f,Fl).bind(Ke=>B?be(Ke.container,Ke.offset+(w?-1:0),Af):X.some(Ke)).orThunk(()=>Z?X.some({container:Z,offset:w?0:Z.length}):X.none())},V1=(e,n,r,f,w)=>{const B=f[w];ir(f)&&kt(f.data)&&B&&(f=B);const Z=WT(e,f);for(let oe=0;oe{var w;let B=r;const Z=e.getRoot(),oe=n[0];if(ad(oe)&&(B=oe.wrapper?null:e.getParent(r,oe.block,Z)),!B){const be=(w=e.getParent(r,"LI,TD,TH,SUMMARY"))!==null&&w!==void 0?w:Z;B=e.getParent(ir(r)?r.parentNode:r,Pe=>Pe!==Z&>(e.schema,Pe),be)}if(B&&ad(oe)&&oe.wrapper&&(B=WT(e,B,"ul,ol").reverse()[0]||B),!B)for(B=r;B&&B[f]&&!e.isBlock(B[f])&&(B=B[f],!nx(B,"br")););return B||r},YT=(e,n,r,f)=>{const w=r.parentNode;return k(r[f])?!1:w===n||M(w)||e.isBlock(w)?!0:YT(e,n,w,f)},U1=(e,n,r,f,w)=>{let B=r;const Z=w?"previousSibling":"nextSibling",oe=e.getRoot();if(ir(r)&&!z1(r)&&(w?f>0:fPv(e.parentNode)||Pv(e),Hh=(e,n,r,f=!1)=>{let{startContainer:w,startOffset:B,endContainer:Z,endOffset:oe}=n;const be=r[0];return Gr(w)&&w.hasChildNodes()&&(w=nu(w,B),ir(w)&&(B=0)),Gr(Z)&&Z.hasChildNodes()&&(Z=nu(Z,n.collapsed?oe:oe-1),ir(Z)&&(oe=Z.data.length)),w=jT(e,w),Z=jT(e,Z),s_(w)&&(w=Pv(w)?w:w.parentNode,n.collapsed?w=w.previousSibling||w:w=w.nextSibling||w,ir(w)&&(B=n.collapsed?w.length:0)),s_(Z)&&(Z=Pv(Z)?Z:Z.parentNode,n.collapsed?Z=Z.nextSibling||Z:Z=Z.previousSibling||Z,ir(Z)&&(oe=n.collapsed?0:Z.length)),n.collapsed&&(Fc(e,e.getRoot(),w,B,!0,f).each(({container:Je,offset:at})=>{w=Je,B=at}),Fc(e,e.getRoot(),Z,oe,!1,f).each(({container:Je,offset:at})=>{Z=Je,oe=at})),($i(be)||be.block_expand)&&((!$i(be)||!ir(w)||B===0)&&(w=U1(e,r,w,B,!0)),(!$i(be)||!ir(Z)||oe===Z.data.length)&&(Z=U1(e,r,Z,oe,!1))),F1(be)&&(w=V1(e,r,n,w,"previousSibling"),Z=V1(e,r,n,Z,"nextSibling")),(ad(be)||El(be))&&(w=ix(e,r,w,"previousSibling"),Z=ix(e,r,Z,"nextSibling"),ad(be)&&(e.isBlock(w)||(w=U1(e,r,w,B,!0)),e.isBlock(Z)||(Z=U1(e,r,Z,oe,!1)))),Gr(w)&&w.parentNode&&(B=e.nodeIndex(w),w=w.parentNode),Gr(Z)&&Z.parentNode&&(oe=e.nodeIndex(Z)+1,Z=Z.parentNode),{startContainer:w,startOffset:B,endContainer:Z,endOffset:oe}},W1=(e,n,r)=>{var f;const w=n.startOffset,B=nu(n.startContainer,w),Z=n.endOffset,oe=nu(n.endContainer,Z-1),be=It=>{const ln=It[0];ir(ln)&&ln===B&&w>=ln.data.length&&It.splice(0,1);const xn=It[It.length-1];return Z===0&&It.length>0&&xn===oe&&ir(xn)&&It.splice(It.length-1,1),It},Pe=(It,ln,xn)=>{const yn=[];for(;It&&It!==xn;It=It[ln])yn.push(It);return yn},Ke=(It,ln)=>e.getParent(It,xn=>xn.parentNode===ln,ln),Je=(It,ln,xn)=>{const yn=xn?"nextSibling":"previousSibling";for(let $n=It,nr=$n.parentNode;$n&&$n!==ln;$n=nr){nr=$n.parentNode;const mr=Pe($n===It?$n:$n[yn],yn);mr.length&&(xn||mr.reverse(),r(be(mr)))}};if(B===oe)return r(be([B]));const at=(f=e.findCommonAncestor(B,oe))!==null&&f!==void 0?f:e.getRoot();if(e.isChildOf(B,oe))return Je(B,at,!0);if(e.isChildOf(oe,B))return Je(oe,at);const Rt=Ke(B,at)||B,Ht=Ke(oe,at)||oe;Je(B,Rt,!0);const At=Pe(Rt===B?Rt:Rt.nextSibling,"nextSibling",Ht===oe?Ht.nextSibling:Ht);At.length&&r(be(At)),Je(oe,Ht)},iC=['pre[class*=language-][contenteditable="false"]',"figure.image","div[data-ephox-embed-iri]","div.tiny-pageembed","div.mce-toc","div[data-mce-toc]"],KT=e=>Ei(e)&&Dc(e)===ve,XT=(e,n,r,f)=>Rc(n).fold(()=>"skipping",w=>f==="br"||KT(n)?"valid":G3(n)?"existing":Mu(n.dom)?"caret":Oe(iC,B=>du(n,B))?"valid-block":!Bh(e,r,f)||!Bh(e,La(w),r)?"invalid-child":"valid"),lC=(e,n)=>{const r=Hh(e.dom,n,[{inline:"span"}]);n.setStart(r.startContainer,r.startOffset),n.setEnd(r.endContainer,r.endOffset),e.selection.setRng(n)},lx=(e,n,r,f,w,B)=>{const{uid:Z=n,...oe}=r;hh(e,Cb()),ws(e,`${ov()}`,Z),ws(e,`${$d()}`,f);const{attributes:be={},classes:Pe=[]}=w(Z,oe);if(Kc(e,be),t4(e,Pe),B){Pe.length>0&&ws(e,`${sv()}`,Pe.join(","));const Ke=Yt(be);Ke.length>0&&ws(e,`${Wg()}`,Ke.join(","))}},gs=e=>{mh(e,Cb()),Xs(e,`${ov()}`),Xs(e,`${$d()}`),Xs(e,`${av()}`);const n=Yl(e,`${Wg()}`).map(f=>f.split(",")).getOr([]),r=Yl(e,`${sv()}`).map(f=>f.split(",")).getOr([]);ie(n,f=>Xs(e,f)),Y3(e,r),Xs(e,`${sv()}`),Xs(e,`${Wg()}`)},zh=(e,n,r,f,w)=>{const B=jt.fromTag("span",e);return lx(B,n,r,f,w,!1),B},JT=(e,n,r,f,w,B)=>{const Z=[],oe=zh(e.getDoc(),r,B,f,w),be=Em(),Pe=()=>{be.clear()},Ke=()=>be.get().getOrThunk(()=>{const Ht=tu(oe);return Z.push(Ht),be.set(Ht),Ht}),Je=Ht=>{ie(Ht,at)},at=Ht=>{switch(XT(e,Ht,"span",La(Ht))){case"invalid-child":{Pe();const It=zi(Ht);Je(It),Pe();break}case"valid-block":{Pe(),lx(Ht,r,B,f,w,!0);break}case"valid":{const It=Ke();ym(Ht,It);break}}},Rt=Ht=>{const At=Fe(Ht,jt.fromDom);Je(At)};return W1(e.dom,n,Ht=>{Pe(),Rt(Ht)}),Z},cC=(e,n,r,f)=>{e.undoManager.transact(()=>{const w=e.selection,B=w.getRng(),Z=Dv(e).length>0,oe=Gg("mce-annotation");if(B.collapsed&&!Z&&lC(e,B),w.getRng().collapsed&&!Z){const be=zh(e.getDoc(),oe,f,n,r.decorate);bh(be,Da),w.getRng().insertNode(be.dom),w.select(be.dom)}else VT(w,!1,()=>{Um(e,be=>{JT(e,be,oe,n,r.decorate,f)})})})},uC=e=>{const n=j3();Tu(e,n);const r=Pl(e,n),f=Yc("span"),w=B=>{ie(B,Z=>{f(Z)?Xu(Z):gs(Z)})};return{register:(B,Z)=>{n.register(B,Z)},annotate:(B,Z)=>{n.lookup(B).each(oe=>{cC(e,B,oe,Z)})},annotationChanged:(B,Z)=>{r.addListener(B,Z)},remove:B=>{ai(e,X.some(B)).each(({elements:Z})=>{const oe=e.selection.getBookmark();w(Z),e.selection.moveToBookmark(oe)})},removeAll:B=>{const Z=e.selection.getBookmark();Ft(Sb(e,B),(oe,be)=>{w(oe)}),e.selection.moveToBookmark(Z)},getAll:B=>{const Z=Sb(e,B);return pn(Z,oe=>Fe(oe,be=>be.dom))}}},rp=e=>({getBookmark:Q(Rv,e),moveToBookmark:Q(Xb,e)});rp.isBookmarkNode=Eu;const fC=(e,n,r)=>r.collapsed?!1:Oe(r.getClientRects(),f=>X3(f,e,n)),dC=(e,n)=>e.dispatch("PreProcess",n),i_=(e,n)=>e.dispatch("PostProcess",n),Iv=e=>{e.dispatch("remove")},Nv=e=>{e.dispatch("detach")},hC=(e,n)=>{e.dispatch("SwitchMode",{mode:n})},mC=(e,n,r,f,w)=>{e.dispatch("ObjectResizeStart",{target:n,width:r,height:f,origin:w})},Mf=(e,n,r,f,w)=>{e.dispatch("ObjectResized",{target:n,width:r,height:f,origin:w})},Wm=e=>{e.dispatch("PreInit")},l_=e=>{e.dispatch("PostRender")},G1=e=>{e.dispatch("Init")},c_=(e,n)=>{e.dispatch("PlaceholderToggle",{state:n})},ou=(e,n,r)=>{e.dispatch(n,r)},Bl=(e,n,r,f)=>{e.dispatch("FormatApply",{format:n,node:r,vars:f})},op=(e,n,r,f)=>{e.dispatch("FormatRemove",{format:n,node:r,vars:f})},h$=(e,n)=>e.dispatch("BeforeSetContent",n),QT=(e,n)=>e.dispatch("SetContent",n),u_=(e,n)=>e.dispatch("BeforeGetContent",n),da=(e,n)=>e.dispatch("GetContent",n),gC=(e,n)=>{e.dispatch("AutocompleterStart",n)},qT=(e,n)=>{e.dispatch("AutocompleterUpdate",n)},pC=e=>{e.dispatch("AutocompleterEnd")},f_=(e,n,r)=>e.dispatch("PastePreProcess",{content:n,internal:r}),d_=(e,n,r)=>e.dispatch("PastePostProcess",{node:n,internal:r}),ek=(e,n)=>e.dispatch("PastePlainTextToggle",{state:n}),h_=(e,n)=>e.dispatch("EditableRootStateChange",{state:n}),Wr={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:e=>e.shiftKey||e.ctrlKey||e.altKey||Wr.metaKeyPressed(e),metaKeyPressed:e=>Lr.os.isMacOS()||Lr.os.isiOS()?e.metaKey:e.ctrlKey&&!e.altKey},Gm="data-mce-selected",tk="table,img,figure.image,hr,video,span.mce-preview-object,details",Z1=Math.abs,j1=Math.round,m_={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},m$=e=>e.type==="longpress"||e.type.indexOf("touch")===0,g$=(e,n)=>{const r=n.dom,f=n.getDoc(),w=document,B=n.getBody();let Z,oe,be,Pe,Ke,Je,at,Rt,Ht,At,It,ln,xn,yn,$n,nr,mr;const Nr=vr=>k(vr)&&(ul(vr)||r.is(vr,"figure.image")),zn=vr=>zs(vr)||r.hasClass(vr,"mce-preview-object"),Nn=(vr,Oo)=>{if(m$(vr)){const Aa=vr.touches[0];return Nr(vr.target)&&!fC(Aa.clientX,Aa.clientY,Oo)}else return Nr(vr.target)&&!fC(vr.clientX,vr.clientY,Oo)},er=vr=>{const Oo=vr.target;Nn(vr,n.selection.getRng())&&!vr.isDefaultPrevented()&&n.selection.select(Oo)},Qr=vr=>r.hasClass(vr,"mce-preview-object")&&k(vr.firstElementChild)?[vr,vr.firstElementChild]:r.is(vr,"figure.image")?[vr.querySelector("img")]:[vr],ho=vr=>{const Oo=mv(n);return!Oo||vr.getAttribute("data-mce-resize")==="false"||vr===n.getBody()?!1:r.hasClass(vr,"mce-preview-object")&&k(vr.firstElementChild)?du(jt.fromDom(vr.firstElementChild),Oo):du(jt.fromDom(vr),Oo)},na=vr=>zn(vr)?r.create("img",{src:Lr.transparentSrc}):vr.cloneNode(!0),ca=(vr,Oo,Aa)=>{if(k(Aa)){const ps=Qr(vr);ie(ps,us=>{us.style[Oo]||!n.schema.isValid(us.nodeName.toLowerCase(),Oo)?r.setStyle(us,Oo,Aa):r.setAttrib(us,Oo,""+Aa)})}},os=(vr,Oo,Aa)=>{ca(vr,"width",Oo),ca(vr,"height",Aa)},ka=vr=>{let Oo,Aa,ps,us,ml;Oo=vr.screenX-Je,Aa=vr.screenY-at,yn=Oo*Pe[2]+At,$n=Aa*Pe[3]+It,yn=yn<5?5:yn,$n=$n<5?5:$n,(Nr(Z)||zn(Z))&&fT(n)!==!1?ps=!Wr.modifierPressed(vr):ps=Wr.modifierPressed(vr),ps&&(Z1(Oo)>Z1(Aa)?($n=j1(yn*ln),yn=j1($n/ln)):(yn=j1($n/ln),$n=j1(yn*ln))),os(oe,yn,$n),us=Pe.startPos.x+Oo,ml=Pe.startPos.y+Aa,us=us>0?us:0,ml=ml>0?ml:0,r.setStyles(be,{left:us,top:ml,display:"block"}),be.innerHTML=yn+" × "+$n,Pe[2]<0&&oe.clientWidth<=yn&&r.setStyle(oe,"left",Rt+(At-yn)),Pe[3]<0&&oe.clientHeight<=$n&&r.setStyle(oe,"top",Ht+(It-$n)),Oo=B.scrollWidth-nr,Aa=B.scrollHeight-mr,Oo+Aa!==0&&r.setStyles(be,{left:us-Oo,top:ml-Aa}),xn||(mC(n,Z,At,It,"corner-"+Pe.name),xn=!0)},ei=()=>{const vr=xn;xn=!1,vr&&(ca(Z,"width",yn),ca(Z,"height",$n)),r.unbind(f,"mousemove",ka),r.unbind(f,"mouseup",ei),w!==f&&(r.unbind(w,"mousemove",ka),r.unbind(w,"mouseup",ei)),r.remove(oe),r.remove(be),r.remove(Ke),zl(Z),vr&&(Mf(n,Z,yn,$n,"corner-"+Pe.name),r.setAttrib(Z,"style",r.getAttrib(Z,"style"))),n.nodeChanged()},zl=vr=>{ha();const Oo=r.getPos(vr,B),Aa=Oo.x,ps=Oo.y,us=vr.getBoundingClientRect(),ml=us.width||us.right-us.left,th=us.height||us.bottom-us.top;Z!==vr&&(Sr(),Z=vr,yn=$n=0);const cf=n.dispatch("ObjectSelected",{target:vr});ho(vr)&&!cf.isDefaultPrevented()?Ft(m_,(iu,pd)=>{const zo=vs=>{const Gs=Qr(Z)[0];Je=vs.screenX,at=vs.screenY,At=Gs.clientWidth,It=Gs.clientHeight,ln=It/At,Pe=iu,Pe.name=pd,Pe.startPos={x:ml*iu[0]+Aa,y:th*iu[1]+ps},nr=B.scrollWidth,mr=B.scrollHeight,Ke=r.add(B,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),r.setStyles(Ke,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),oe=na(Z),r.addClass(oe,"mce-clonedresizable"),r.setAttrib(oe,"data-mce-bogus","all"),oe.contentEditable="false",r.setStyles(oe,{left:Aa,top:ps,margin:0}),os(oe,ml,th),oe.removeAttribute(Gm),B.appendChild(oe),r.bind(f,"mousemove",ka),r.bind(f,"mouseup",ei),w!==f&&(r.bind(w,"mousemove",ka),r.bind(w,"mouseup",ei)),be=r.add(B,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},At+" × "+It)};let Oa=r.get("mceResizeHandle"+pd);Oa&&r.remove(Oa),Oa=r.add(B,"div",{id:"mceResizeHandle"+pd,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+pd+"-resize; margin:0; padding:0"}),r.bind(Oa,"mousedown",vs=>{vs.stopImmediatePropagation(),vs.preventDefault(),zo(vs)}),iu.elm=Oa,r.setStyles(Oa,{left:ml*iu[0]+Aa-Oa.offsetWidth/2,top:th*iu[1]+ps-Oa.offsetHeight/2})}):Sr(!1)},as=l1(zl,0),Sr=(vr=!0)=>{as.cancel(),ha(),Z&&vr&&Z.removeAttribute(Gm),Ft(m_,(Oo,Aa)=>{const ps=r.get("mceResizeHandle"+Aa);ps&&(r.unbind(ps),r.remove(ps))})},so=(vr,Oo)=>r.isChildOf(vr,Oo),$a=vr=>{if(xn||n.removed||n.composing)return;const Oo=vr.type==="mousedown"?vr.target:e.getNode(),Aa=Ku(jt.fromDom(Oo),tk).map(us=>us.dom).filter(us=>r.isEditable(us.parentElement)||us.nodeName==="IMG"&&r.isEditable(us)).getOrUndefined(),ps=k(Aa)?r.getAttrib(Aa,Gm,"1"):"1";if(ie(r.select(`img[${Gm}],hr[${Gm}]`),us=>{us.removeAttribute(Gm)}),k(Aa)&&so(Aa,B)&&n.hasFocus()){to();const us=e.getStart(!0);if(so(us,Aa)&&so(e.getEnd(!0),Aa)){r.setAttrib(Aa,Gm,ps),as.throttle(Aa);return}}Sr()},ha=()=>{Ft(m_,vr=>{vr.elm&&(r.unbind(vr.elm),delete vr.elm)})},to=()=>{try{n.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};return n.on("init",()=>{to(),n.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",$a),n.on("keyup compositionend",vr=>{Z&&Z.nodeName==="TABLE"&&$a(vr)}),n.on("hide blur",Sr),n.on("contextmenu longpress",er,!0)}),n.on("remove",ha),{isResizable:ho,showResizeRect:zl,hideResizeRect:Sr,updateResizeRect:$a,destroy:()=>{as.cancel(),Z=oe=Ke=null}}},gH=(e,n)=>{n.fold(r=>{e.setStartBefore(r.dom)},(r,f)=>{e.setStart(r.dom,f)},r=>{e.setStartAfter(r.dom)})},g_=(e,n)=>{n.fold(r=>{e.setEndBefore(r.dom)},(r,f)=>{e.setEnd(r.dom,f)},r=>{e.setEndAfter(r.dom)})},nk=(e,n,r)=>{const f=e.document.createRange();return gH(f,n),g_(f,r),f},Co=(e,n,r,f,w)=>{const B=e.document.createRange();return B.setStart(n.dom,r),B.setEnd(f.dom,w),B},Vh=ed.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),rk=(e,n,r)=>n(jt.fromDom(r.startContainer),r.startOffset,jt.fromDom(r.endContainer),r.endOffset),p_=(e,n)=>n.match({domRange:r=>({ltr:J(r),rtl:X.none}),relative:(r,f)=>({ltr:Dt(()=>nk(e,r,f)),rtl:Dt(()=>X.some(nk(e,f,r)))}),exact:(r,f,w,B)=>({ltr:Dt(()=>Co(e,r,f,w,B)),rtl:Dt(()=>X.some(Co(e,w,B,r,f)))})}),Y1=(e,n)=>{const r=n.ltr();return r.collapsed?n.rtl().filter(w=>w.collapsed===!1).map(w=>Vh.rtl(jt.fromDom(w.endContainer),w.endOffset,jt.fromDom(w.startContainer),w.startOffset)).getOrThunk(()=>rk(e,Vh.ltr,r)):rk(e,Vh.ltr,r)},v_=(e,n)=>{const r=p_(e,n);return Y1(e,r)};Vh.ltr,Vh.rtl;const vC={create:(e,n,r,f)=>({start:e,soffset:n,finish:r,foffset:f})},ak=(e,n,r)=>{var f,w;return X.from((w=(f=e.dom).caretPositionFromPoint)===null||w===void 0?void 0:w.call(f,n,r)).bind(B=>{if(B.offsetNode===null)return X.none();const Z=e.dom.createRange();return Z.setStart(B.offsetNode,B.offset),Z.collapse(),X.some(Z)})},cx=(e,n,r)=>{var f,w;return X.from((w=(f=e.dom).caretRangeFromPoint)===null||w===void 0?void 0:w.call(f,n,r))},y_=(()=>document.caretPositionFromPoint?ak:document.caretRangeFromPoint?cx:X.none)(),b_=(e,n,r)=>{const f=jt.fromDom(e.document);return y_(f,n,r).map(w=>vC.create(jt.fromDom(w.startContainer),w.startOffset,jt.fromDom(w.endContainer),w.endOffset))},Fv=ed.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),yC=(e,n,r,f)=>e.fold(n,r,f),sk=e=>e.fold(K,K,K),x_=Fv.before,w_=Fv.on,ux=Fv.after,Hd={before:x_,on:w_,after:ux,cata:yC,getStart:sk},fx=ed.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Na=e=>fx.exact(e.start,e.soffset,e.finish,e.foffset),C_=e=>e.match({domRange:n=>jt.fromDom(n.startContainer),relative:(n,r)=>Hd.getStart(n),exact:(n,r,f,w)=>n}),Uh=fx.domRange,zd=fx.relative,dx=fx.exact,_u=e=>{const n=C_(e);return mm(n)},hx=vC.create,Wh={domRange:Uh,relative:zd,exact:dx,exactFromRange:Na,getWin:_u,range:hx},Bv=(e,n)=>{const r=La(e);return r==="input"?Hd.after(e):Ve(["br","img"],r)?n===0?Hd.before(e):Hd.after(e):Hd.on(e,n)},K1=(e,n)=>{const r=e.fold(Hd.before,Bv,Hd.after),f=n.fold(Hd.before,Bv,Hd.after);return Wh.relative(r,f)},bC=(e,n,r,f)=>{const w=Bv(e,n),B=Bv(r,f);return Wh.relative(w,B)},S_=e=>e.match({domRange:n=>{const r=jt.fromDom(n.startContainer),f=jt.fromDom(n.endContainer);return bC(r,n.startOffset,f,n.endOffset)},relative:K1,exact:bC}),xC=(e,n)=>{const f=(n||document).createDocumentFragment();return ie(e,w=>{f.appendChild(w.dom)}),jt.fromDom(f)},T_=e=>{const n=Wh.getWin(e).dom,r=(w,B,Z,oe)=>Co(n,w,B,Z,oe),f=S_(e);return v_(n,f).match({ltr:r,rtl:r})},ya=(e,n,r)=>b_(e,n,r),Ru=(e,n,r)=>{const f=mm(jt.fromDom(r));return ya(f.dom,e,n).map(w=>{const B=r.createRange();return B.setStart(w.start.dom,w.soffset),B.setEnd(w.finish.dom,w.foffset),B}).getOrUndefined()},Zm=(e,n)=>k(e)&&k(n)&&e.startContainer===n.startContainer&&e.startOffset===n.startOffset&&e.endContainer===n.endContainer&&e.endOffset===n.endOffset,k_=(e,n,r)=>{let f=e;for(;f&&f!==n;){if(r(f))return f;f=f.parentNode}return null},Hv=(e,n,r)=>k_(e,n,r)!==null,_a=(e,n,r)=>Hv(e,n,f=>f.nodeName===r),A_=(e,n)=>bt(e)&&!Hv(e,n,Mu),wC=(e,n,r)=>{const f=n.parentNode;if(f){const w=new es(n,e.getParent(f,e.isBlock)||e.getRoot());let B;for(;B=w[r?"prev":"next"]();)if(Ja(B))return!0}return!1},I=(e,n)=>{var r;return((r=e.previousSibling)===null||r===void 0?void 0:r.nodeName)===n},W=(e,n)=>{let r=n;for(;r&&r!==e;){if(fa(r))return!0;r=r.parentNode}return!1},te=(e,n,r,f,w)=>{const B=e.getRoot(),Z=e.schema.getNonEmptyElements(),oe=w.parentNode;let be,Pe;if(!oe)return X.none();const Ke=e.getParent(oe,e.isBlock)||B;if(f&&Ja(w)&&n&&e.isEmpty(Ke))return X.some(In(oe,e.nodeIndex(w)));const Je=new es(w,Ke);for(;Pe=Je[f?"prev":"next"]();){if(e.getContentEditableParent(Pe)==="false"||A_(Pe,B))return X.none();if(ir(Pe)&&Pe.data.length>0)return _a(Pe,B,"A")?X.none():X.some(In(Pe,f?Pe.data.length:0));if(e.isBlock(Pe)||Z[Pe.nodeName.toLowerCase()])return X.none();be=Pe}return gf(be)?X.none():r&&be?X.some(In(be,0)):X.none()},me=(e,n,r,f)=>{const w=e.getRoot();let B,Z=!1,oe=r?f.startContainer:f.endContainer,be=r?f.startOffset:f.endOffset;const Pe=Gr(oe)&&be===oe.childNodes.length,Ke=e.schema.getNonEmptyElements();let Je=r;if(bt(oe))return X.none();if(Gr(oe)&&be>oe.childNodes.length-1&&(Je=!1),wm(oe)&&(oe=w,be=0),oe===w){if(Je&&(B=oe.childNodes[be>0?be-1:0],B&&(bt(B)||Ke[B.nodeName]||yu(B))))return X.none();if(oe.hasChildNodes()){if(be=Math.min(!Je&&be>0?be-1:be,oe.childNodes.length-1),oe=oe.childNodes[be],be=ir(oe)&&Pe?oe.data.length:0,!n&&oe===w.lastChild&&yu(oe)||W(w,oe)||bt(oe)||qn(oe))return X.none();if(oe.hasChildNodes()&&!yu(oe)){B=oe;const at=new es(oe,w);do{if(fa(B)||bt(B)){Z=!1;break}if(ir(B)&&B.data.length>0){be=Je?0:B.data.length,oe=B,Z=!0;break}if(Ke[B.nodeName.toLowerCase()]&&!Wi(B)){be=e.nodeIndex(B),oe=B.parentNode,Je||be++,Z=!0;break}}while(B=Je?at.next():at.prev())}}}return n&&(ir(oe)&&be===0&&te(e,Pe,n,!0,oe).each(at=>{oe=at.container(),be=at.offset(),Z=!0}),Gr(oe)&&(B=oe.childNodes[be],B||(B=oe.childNodes[be-1]),B&&Ja(B)&&!I(B,"A")&&!wC(e,B,!1)&&!wC(e,B,!0)&&te(e,Pe,n,!0,B).each(at=>{oe=at.container(),be=at.offset(),Z=!0}))),Je&&!n&&ir(oe)&&be===oe.data.length&&te(e,Pe,n,!1,oe).each(at=>{oe=at.container(),be=at.offset(),Z=!0}),Z&&oe?X.some(In(oe,be)):X.none()},Le=(e,n)=>{const r=n.collapsed,f=n.cloneRange(),w=In.fromRangeStart(n);return me(e,r,!0,f).each(B=>{(!r||!In.isAbove(w,B))&&f.setStart(B.container(),B.offset())}),r||me(e,r,!1,f).each(B=>{f.setEnd(B.container(),B.offset())}),r&&f.collapse(!0),Zm(n,f)?X.none():X.some(f)},Ue=(e,n)=>e.splitText(n),nt=e=>{let n=e.startContainer,r=e.startOffset,f=e.endContainer,w=e.endOffset;if(n===f&&ir(n)){if(r>0&&rr){w=w-r;const B=Ue(f,w).previousSibling;n=f=B,w=B.data.length,r=0}else w=0}else if(ir(n)&&r>0&&r0&&w({walk:(B,Z)=>W1(e,B,Z),split:nt,expand:(B,Z={type:"word"})=>{if(Z.type==="word"){const oe=Hh(e,B,[{inline:"span"}]),be=e.createRng();return be.setStart(oe.startContainer,oe.startOffset),be.setEnd(oe.endContainer,oe.endOffset),be}return B},normalize:B=>Le(e,B).fold(ne,Z=>(B.setStart(Z.startContainer,Z.startOffset),B.setEnd(Z.endContainer,Z.endOffset),!0))});xt.compareRanges=Zm,xt.getCaretRangeFromPoint=Ru,xt.getSelectedNode=sw,xt.getNode=nu;const Jt=((e,n)=>{const r=(oe,be)=>{if(!F(be)&&!be.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+be);const Pe=oe.dom;kd(Pe)&&(Pe.style[e]=be+"px")},f=oe=>{const be=n(oe);if(be<=0||be===null){const Pe=ui(oe,e);return parseFloat(Pe)||0}return be},w=f,B=(oe,be)=>le(be,(Pe,Ke)=>{const Je=ui(oe,Ke),at=Je===void 0?0:parseInt(Je,10);return isNaN(at)?Pe:Pe+at},0);return{set:r,get:f,getOuter:w,aggregate:B,max:(oe,be,Pe)=>{const Ke=B(oe,Pe);return be>Ke?be-Ke:0}}})("height",e=>{const n=e.dom;return Td(e)?n.getBoundingClientRect().height:n.offsetHeight}),Tn=e=>Jt.get(e),sr=()=>jt.fromDom(document),Dr=(e,n)=>e.view(n).fold(J([]),f=>{const w=e.owner(f),B=Dr(e,w);return[f].concat(B)}),Rr=(e,n)=>{const r=n.owner(e);return Dr(n,r)};var Kn=Object.freeze({__proto__:null,view:e=>{var n;return(e.dom===document?X.none():X.from((n=e.dom.defaultView)===null||n===void 0?void 0:n.frameElement)).map(jt.fromDom)},owner:e=>mf(e)});const oo=e=>{const n=sr(),r=Jc(n),f=Rr(e,Kn),w=Ch(e),B=pe(f,(Z,oe)=>{const be=Ch(oe);return{left:Z.left+be.left,top:Z.top+be.top}},{left:0,top:0});return bm(B.left+w.left+r.left,B.top+w.top+r.top)},Ro=e=>La(e)==="textarea",Qo=(e,n)=>e.dispatch("ScrollIntoView",n).isDefaultPrevented(),_s=(e,n)=>{e.dispatch("AfterScrollIntoView",n)},Ji=(e,n)=>{const r=zi(e);if(r.length===0||Ro(e))return{element:e,offset:n};if(n{const r=nb(e),f=Tn(e);return{element:e,bottom:r.top+f,height:f,pos:r,cleanup:n}},Bc=(e,n)=>{const r=Ji(e,n),f=jt.fromHtml(''+ve+"");return Ri(r.element,f),si(f,()=>Ua(f))},ap=e=>si(jt.fromDom(e),j),sp=(e,n,r,f)=>{lc(e,(w,B)=>mx(e,n,r,f),r)},CC=(e,n,r,f,w)=>{const B={elm:f.element.dom,alignToTop:w};if(Qo(e,B))return;const Z=Jc(n).top;r(e,n,Z,f,w),_s(e,B)},mx=(e,n,r,f)=>{const w=jt.fromDom(e.getBody()),B=jt.fromDom(e.getDoc());fi(w);const Z=Bc(jt.fromDom(r.startContainer),r.startOffset);CC(e,B,n,Z,f),Z.cleanup()},ls=(e,n,r,f)=>{const w=jt.fromDom(e.getDoc());CC(e,w,r,ap(n),f)},lc=(e,n,r)=>{const f=r.startContainer,w=r.startOffset,B=r.endContainer,Z=r.endOffset;n(jt.fromDom(f),jt.fromDom(B));const oe=e.dom.createRng();oe.setStart(f,w),oe.setEnd(B,Z),e.selection.setRng(r)},_l=(e,n,r,f,w)=>{const B=n.pos;if(f)Hp(B.left,B.top,w);else{const Z=B.top-r+n.height;Hp(-e.getBody().getBoundingClientRect().left,Z,w)}},Lu=(e,n,r,f,w,B)=>{const Z=f+r,oe=w.pos.top,be=w.bottom,Pe=be-oe>=f;oeZ?_l(e,w,f,Pe?B!==!1:B===!0,n):be>Z&&!Pe&&_l(e,w,f,B===!0,n)},au=(e,n,r,f,w)=>{const B=mm(n).dom.innerHeight;Lu(e,n,r,B,f,w)},jm=(e,n,r,f,w)=>{const B=mm(n).dom.innerHeight;Lu(e,n,r,B,f,w);const Z=oo(f.element),oe=K0(window);Z.topoe.bottom&&j0(f.element,w===!0)},Tc=(e,n,r)=>sp(e,au,n,r),SC=(e,n,r)=>ls(e,n,au,r),X1=(e,n,r)=>sp(e,jm,n,r),Vd=(e,n,r)=>ls(e,n,jm,r),Hl=(e,n,r)=>{(e.inline?SC:Vd)(e,n,r)},J1=(e,n,r)=>{(e.inline?Tc:X1)(e,n,r)},ik=(e,n=!1)=>e.dom.focus({preventScroll:n}),lk=e=>{const n=Yu(e).dom;return e.dom===n.activeElement},zv=(e=sr())=>X.from(e.dom.activeElement).map(jt.fromDom),ck=e=>zv(Yu(e)).filter(n=>e.dom.contains(n.dom)),gx=(e,n)=>{const r=Ei(n)?Dc(n).length:zi(n).length+1;return e>r?r:e<0?0:e},uk=e=>Wh.range(e.start,gx(e.soffset,e.start),e.finish,gx(e.foffset,e.finish)),ip=(e,n)=>!vu(n.dom)&&(Dl(e,n)||Ba(e,n)),p$=e=>n=>ip(e,n.start)&&ip(e,n.finish),pH=e=>e.inline||Lr.browser.isFirefox(),vH=e=>Wh.range(jt.fromDom(e.startContainer),e.startOffset,jt.fromDom(e.endContainer),e.endOffset),yH=e=>{const n=e.getSelection();return(!n||n.rangeCount===0?X.none():X.from(n.getRangeAt(0))).map(vH)},bH=e=>{const n=mm(e);return yH(n.dom).filter(p$(e))},v$=(e,n)=>X.from(n).filter(p$(e)).map(uk),y$=e=>{const n=document.createRange();try{return n.setStart(e.start.dom,e.soffset),n.setEnd(e.finish.dom,e.foffset),X.some(n)}catch{return X.none()}},px=e=>{const n=pH(e)?bH(jt.fromDom(e.getBody())):X.none();e.bookmark=n.isSome()?n:e.bookmark},M_=e=>(e.bookmark?e.bookmark:X.none()).bind(r=>v$(jt.fromDom(e.getBody()),r)).bind(y$),xH=e=>{M_(e).each(n=>e.selection.setRng(n))},x$={isEditorUIElement:e=>{const n=e.className.toString();return n.indexOf("tox-")!==-1||n.indexOf("mce-")!==-1}},w$=(e,n)=>(F(n)||(n=0),setTimeout(e,n)),C$=(e,n)=>(F(n)||(n=0),setInterval(e,n)),Ef={setEditorTimeout:(e,n,r)=>w$(()=>{e.removed||n()},r),setEditorInterval:(e,n,r)=>{const f=C$(()=>{e.removed?clearInterval(f):n()},r);return f}},wH=e=>e.type==="nodechange"&&e.selectionChange,CH=(e,n)=>{const r=()=>{n.throttle()};Cs.DOM.bind(document,"mouseup",r),e.on("remove",()=>{Cs.DOM.unbind(document,"mouseup",r)})},SH=(e,n)=>{e.on("mouseup touchend",r=>{n.throttle()})},TH=(e,n)=>{SH(e,n),e.on("keyup NodeChange AfterSetSelectionRange",r=>{wH(r)||px(e)})},fk=e=>{const n=l1(()=>{px(e)},0);e.on("init",()=>{e.inline&&CH(e,n),TH(e,n)}),e.on("remove",()=>{n.cancel()})};let Q1;const dk=Cs.DOM,S$=e=>Gr(e)&&x$.isEditorUIElement(e),hk=e=>{const n=e.classList;return n!==void 0?n.contains("tox-edit-area")||n.contains("tox-edit-area__iframe")||n.contains("mce-content-body"):!1},mk=(e,n)=>{const r=gT(e);return dk.getParent(n,w=>S$(w)||(r?e.dom.is(w,r):!1))!==null},E_=e=>{try{const n=Yu(jt.fromDom(e.getElement()));return zv(n).fold(()=>document.body,r=>r.dom)}catch{return document.body}},kH=(e,n)=>{const r=n.editor;fk(r);const f=(w,B)=>{if(I4(w)&&w.inline!==!0){const Z=jt.fromDom(w.getContainer());B(Z,"tox-edit-focus")}};r.on("focusin",()=>{const w=e.focusedEditor;hk(E_(r))&&f(r,hh),w!==r&&(w&&w.dispatch("blur",{focusedEditor:r}),e.setActive(r),e.focusedEditor=r,r.dispatch("focus",{blurredEditor:w}),r.focus(!0))}),r.on("focusout",()=>{Ef.setEditorTimeout(r,()=>{const w=e.focusedEditor;(!hk(E_(r))||w!==r)&&f(r,mh),!mk(r,E_(r))&&w===r&&(r.dispatch("blur",{focusedEditor:null}),e.focusedEditor=null)})}),Q1||(Q1=w=>{const B=e.activeEditor;B&&$g(w).each(Z=>{const oe=Z;oe.ownerDocument===document&&oe!==document.body&&!mk(B,oe)&&e.focusedEditor===B&&(B.dispatch("blur",{focusedEditor:null}),e.focusedEditor=null)})},dk.bind(document,"focusin",Q1))},AH=(e,n)=>{e.focusedEditor===n.editor&&(e.focusedEditor=null),!e.activeEditor&&Q1&&(dk.unbind(document,"focusin",Q1),Q1=null)},MH=e=>{e.on("AddEditor",Q(kH,e)),e.on("RemoveEditor",Q(AH,e))},EH=(e,n)=>e.dom.getParent(n,r=>e.dom.getContentEditable(r)==="true"),_H=e=>e.collapsed?X.from(nu(e.startContainer,e.startOffset)).map(jt.fromDom):X.none(),RH=(e,n)=>_H(n).bind(r=>bf(r)?X.some(r):Dl(e,r)?X.none():X.some(e)),T$=(e,n)=>{RH(jt.fromDom(e.getBody()),n).bind(r=>Sc(r.dom)).fold(()=>{e.selection.normalize()},r=>e.selection.setRng(r.toRange()))},__=e=>{if(e.setActive)try{e.setActive()}catch{e.focus()}else e.focus()},LH=e=>lk(e)||ck(e).isSome(),DH=e=>k(e.iframeElement)&&lk(jt.fromDom(e.iframeElement)),gk=e=>{const n=e.getBody();return n&&LH(jt.fromDom(n))},k$=e=>{const n=Yu(jt.fromDom(e.getElement()));return zv(n).filter(r=>!hk(r.dom)&&mk(e,r.dom)).isSome()},Vv=e=>e.inline?gk(e):DH(e),A$=e=>Vv(e)||k$(e),$H=e=>{const n=e.selection,r=e.getBody();let f=n.getRng();e.quirks.refreshContentEditable(),k(e.bookmark)&&!Vv(e)&&M_(e).each(B=>{e.selection.setRng(B),f=B});const w=EH(e,n.getNode());if(w&&e.dom.isChildOf(w,r)){__(w),T$(e,f),R_(e);return}e.inline||(Lr.browser.isOpera()||__(r),e.getWin().focus()),(Lr.browser.isFirefox()||e.inline)&&(__(r),T$(e,f)),R_(e)},R_=e=>e.editorManager.setActive(e),OH=(e,n)=>{e.removed||(n?R_(e):$H(e))},M$=(e,n)=>n.collapsed?e.isEditable(n.startContainer):e.isEditable(n.startContainer)&&e.isEditable(n.endContainer),E$=(e,n,r,f,w)=>{const B=r?n.startContainer:n.endContainer,Z=r?n.startOffset:n.endOffset;return X.from(B).map(jt.fromDom).map(oe=>!f||!n.collapsed?Sd(oe,w(oe,Z)).getOr(oe):oe).bind(oe=>sl(oe)?X.some(oe):Rc(oe).filter(sl)).map(oe=>oe.dom).getOr(e)},L_=(e,n,r=!1)=>E$(e,n,!0,r,(f,w)=>Math.min(ll(f),w)),_$=(e,n,r=!1)=>E$(e,n,!1,r,(f,w)=>w>0?w-1:w),D_=(e,n)=>{const r=e;for(;e&&ir(e)&&e.length===0;)e=n?e.nextSibling:e.previousSibling;return e||r},R$=(e,n)=>{if(!n)return e;let r=n.startContainer,f=n.endContainer;const w=n.startOffset,B=n.endOffset;let Z=n.commonAncestorContainer;n.collapsed||(r===f&&B-w<2&&r.hasChildNodes()&&(Z=r.childNodes[w]),ir(r)&&ir(f)&&(r.length===w?r=D_(r.nextSibling,!0):r=r.parentNode,B===0?f=D_(f.previousSibling,!1):f=f.parentNode,r&&r===f&&(Z=r)));const oe=ir(Z)?Z.parentNode:Z;return xl(oe)?oe:e},PH=(e,n,r,f)=>{const w=[],B=e.getRoot(),Z=e.getParent(r||L_(B,n,n.collapsed),e.isBlock),oe=e.getParent(f||_$(B,n,n.collapsed),e.isBlock);if(Z&&Z!==B&&w.push(Z),Z&&oe&&Z!==oe){let be;const Pe=new es(Z,B);for(;(be=Pe.next())&&be!==oe;)e.isBlock(be)&&w.push(be)}return oe&&Z!==oe&&oe!==B&&w.push(oe),w},IH=(e,n,r)=>X.from(n).bind(f=>X.from(f.parentNode).map(w=>{const B=e.nodeIndex(f),Z=e.createRng();return Z.setStart(w,B),Z.setEnd(w,B+1),r&&(rC(e,Z,f,!0),rC(e,Z,f,!1)),Z})),$_=(e,n)=>Fe(n,r=>{const f=e.dispatch("GetSelectionRange",{range:r});return f.range!==r?f.range:r}),NH=e=>La(e)==="img"?1:Wp(e).fold(()=>zi(e).length,n=>n.length),FH=e=>Wp(e).filter(n=>n.trim().length!==0||n.indexOf(Da)>-1).isSome(),BH=e=>Ps(e)&&il(e,"contenteditable")==="false",HH=["img","br"],L$=e=>FH(e)||Ve(HH,La(e))||BH(e),zH=e=>bl(e,L$),VH=e=>UH(e,L$),UH=(e,n)=>{const r=f=>{const w=zi(f);for(let B=w.length-1;B>=0;B--){const Z=w[B];if(n(Z))return X.some(Z);const oe=r(Z);if(oe.isSome())return oe}return X.none()};return r(e)},D$="[data-mce-autocompleter]",WH=(e,n)=>{if($$(jt.fromDom(e.getBody())).isNone()){const r=jt.fromHtml('',e.getDoc());di(r,jt.fromDom(n.extractContents())),n.insertNode(r.dom),Rc(r).each(f=>f.dom.normalize()),VH(r).map(f=>{e.selection.setCursorLocation(f.dom,NH(f))})}},GH=e=>Ku(e,D$),$$=e=>Jl(e,D$),ZH=(e,n)=>$$(n).each(r=>{const f=e.selection.getBookmark();Xu(r),e.selection.moveToBookmark(f)}),jH={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},pk=(e,n,r)=>{const f=r?"lastChild":"firstChild",w=r?"prev":"next";if(e[f])return e[f];if(e!==n){let B=e[w];if(B)return B;for(let Z=e.parent;Z&&Z!==n;Z=Z.parent)if(B=Z[w],B)return B}},YH=e=>{var n;const r=(n=e.value)!==null&&n!==void 0?n:"";if(!As(r))return!1;const f=e.parent;return!(f&&(f.name!=="span"||f.attr("style"))&&/^[ ]+$/.test(r))},po=e=>{const n=e.name==="a"&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||n};class Hc{static create(n,r){const f=new Hc(n,jH[n]||1);return r&&Ft(r,(w,B)=>{f.attr(B,w)}),f}constructor(n,r){this.name=n,this.type=r,r===1&&(this.attributes=[],this.attributes.map={})}replace(n){const r=this;return n.parent&&n.remove(),r.insert(n,r),r.remove(),r}attr(n,r){const f=this;if(!C(n))return k(n)&&Ft(n,(B,Z)=>{f.attr(Z,B)}),f;const w=f.attributes;if(w){if(r!==void 0){if(r===null){if(n in w.map){delete w.map[n];let B=w.length;for(;B--;)if(w[B].name===n)return w.splice(B,1),f}return f}if(n in w.map){let B=w.length;for(;B--;)if(w[B].name===n){w[B].value=r;break}}else w.push({name:n,value:r});return w.map[n]=r,f}return w.map[n]}}clone(){const n=this,r=new Hc(n.name,n.type),f=n.attributes;if(f){const w=[];w.map={};for(let B=0,Z=f.length;BC(e.nodeValue)&&e.nodeValue.includes(ve),vk=e=>`${e.length===0?"":`${Fe(e,n=>`[${n}]`).join(",")},`}[data-mce-bogus="all"]`,KH=(e,n)=>n.querySelectorAll(vk(e)),I$=e=>document.createTreeWalker(e,NodeFilter.SHOW_COMMENT,n=>P$(n)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP),N$=e=>document.createTreeWalker(e,NodeFilter.SHOW_TEXT,n=>{if(P$(n)){const r=n.parentNode;return r&<(O$,r.nodeName)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}else return NodeFilter.FILTER_SKIP}),XH=e=>I$(e).nextNode()!==null,JH=e=>N$(e).nextNode()!==null,yk=(e,n)=>n.querySelector(vk(e))!==null,F$=(e,n)=>{ie(KH(e,n),r=>{const f=jt.fromDom(r);il(f,"data-mce-bogus")==="all"?Ua(f):ie(e,w=>{Gu(f,w)&&Xs(f,w)})})},QH=e=>{let n=e.nextNode();for(;n!==null;)n.nodeValue=null,n=e.nextNode()},qH=P(QH,I$),Ho=P(QH,N$),B$=(e,n)=>{const r=[{condition:Q(yk,n),action:Q(F$,n)},{condition:XH,action:qH},{condition:JH,action:Ho}];let f=e,w=!1;return ie(r,({condition:B,action:Z})=>{B(f)&&(w||(f=e.cloneNode(!0),w=!0),Z(f))}),f},jo=e=>{const n=Vi(e,"[data-mce-bogus]");ie(n,r=>{il(r,"data-mce-bogus")==="all"?Ua(r):vf(r)?(Ri(r,jt.fromText(Cm)),Ua(r)):Xu(r)})},O_=e=>{const n=Vi(e,"input");ie(n,r=>{Xs(r,"name")})},cee=(e,n)=>{const r=ac(e),f=new RegExp(`^(<${r}[^>]*>( | |\\s| |
    |)<\\/${r}>[\r -]*|
    [\r -]*)$`);return n.replace(f,"")},uee=(e,n)=>{const r=e.getDoc(),f=Yu(jt.fromDom(e.getBody())),w=jt.fromTag("div",r);ws(w,"data-mce-bogus","all"),$l(w,{position:"fixed",left:"-9999999px",top:"0"}),bh(w,n.innerHTML),jo(w),O_(w);const B=_3(f);di(B,w);const Z=_e(w.dom.innerText);return Ua(w),Z},ez=(e,n,r)=>{let f;return n.format==="raw"?f=ur.trim(_e(B$(r,e.serializer.getTempAttrs()).innerHTML)):n.format==="text"?f=uee(e,r):n.format==="tree"?f=e.serializer.serialize(r,n):f=cee(e,e.serializer.serialize(r,n)),n.format!=="text"&&!Li(jt.fromDom(r))&&C(f)?ur.trim(f):f},fee=(e,n)=>X.from(e.getBody()).fold(J(n.format==="tree"?new Hc("body",11):""),r=>ez(e,n,r)),tz=ur.makeMap,H$=e=>{const n=[];e=e||{};const r=e.indent,f=tz(e.indent_before||""),w=tz(e.indent_after||""),B=km.getEncodeFunc(e.entity_encoding||"raw",e.entities),Z=e.element_format!=="xhtml";return{start:(oe,be,Pe)=>{if(r&&f[oe]&&n.length>0){const Ke=n[n.length-1];Ke.length>0&&Ke!==` -`&&n.push(` -`)}if(n.push("<",oe),be)for(let Ke=0,Je=be.length;Ke0){const Ke=n[n.length-1];Ke.length>0&&Ke!==` -`&&n.push(` -`)}},end:oe=>{let be;n.push(""),r&&w[oe]&&n.length>0&&(be=n[n.length-1],be.length>0&&be!==` -`&&n.push(` -`))},text:(oe,be)=>{oe.length>0&&(n[n.length]=be?oe:B(oe))},cdata:oe=>{n.push("")},comment:oe=>{n.push("")},pi:(oe,be)=>{be?n.push(""):n.push(""),r&&n.push(` -`)},doctype:oe=>{n.push("",r?` -`:"")},reset:()=>{n.length=0},getContent:()=>n.join("").replace(/\n$/,"")}},Uv=(e={},n=_h())=>{const r=H$(e);return e.validate="validate"in e?e.validate:!0,{serialize:w=>{const B=e.validate,Z={3:be=>{var Pe;r.text((Pe=be.value)!==null&&Pe!==void 0?Pe:"",be.raw)},8:be=>{var Pe;r.comment((Pe=be.value)!==null&&Pe!==void 0?Pe:"")},7:be=>{r.pi(be.name,be.value)},10:be=>{var Pe;r.doctype((Pe=be.value)!==null&&Pe!==void 0?Pe:"")},4:be=>{var Pe;r.cdata((Pe=be.value)!==null&&Pe!==void 0?Pe:"")},11:be=>{let Pe=be;if(Pe=Pe.firstChild)do oe(Pe);while(Pe=Pe.next)}};r.reset();const oe=be=>{var Pe;const Ke=Z[be.type];if(Ke)Ke(be);else{const Je=be.name,at=Je in n.getVoidElements();let Rt=be.attributes;if(B&&Rt&&Rt.length>1){const Ht=[];Ht.map={};const At=n.getElementRule(be.name);if(At){for(let It=0,ln=At.attributesOrder.length;It{ko.add(n)});const z$=["font","text-decoration","text-emphasis"],P_=(e,n)=>Yt(e.parseStyle(e.getAttrib(n,"style"))),nz=e=>ko.has(e),TC=(e,n)=>We(P_(e,n),r=>!nz(r)),V$=e=>ue(e,n=>Oe(z$,r=>wr(n,r))),rz=(e,n,r)=>{const f=P_(e,n),w=P_(e,r),B=Z=>{var oe,be;const Pe=(oe=e.getStyle(n,Z))!==null&&oe!==void 0?oe:"",Ke=(be=e.getStyle(r,Z))!==null&&be!==void 0?be:"";return St(Pe)&&St(Ke)&&Pe!==Ke};return Oe(f,Z=>{const oe=be=>Oe(be,Pe=>Pe===Z);if(!oe(w)&&oe(z$)){const be=V$(w);return Oe(be,B)}else return B(Z)})},U$=(e,n,r)=>X.from(r.container()).filter(ir).exists(f=>{const w=e?0:-1;return n(f.data.charAt(r.offset()+w))}),I_=Q(U$,!0,Lv),bk=Q(U$,!1,Lv),oz=e=>{const n=e.container();return ir(n)&&(n.data.length===0||Ae(n.data)&&rp.isBookmarkNode(n.parentNode))},q1=(e,n)=>r=>M1(e?0:-1,r).filter(n).isSome(),az=e=>ul(e)&&ui(jt.fromDom(e),"display")==="block",W$=e=>fa(e)&&!Sh(e),sz=q1(!0,az),iz=q1(!1,az),kC=q1(!0,zs),vx=q1(!1,zs),G$=q1(!0,yu),qo=q1(!1,yu),lp=q1(!0,W$),Gh=q1(!1,W$),Z$=e=>e.slice(0,-1),j$=(e,n,r)=>Dl(n,e)?Z$(N0(e,f=>r(f)||Ba(f,n))):[],N_=(e,n)=>j$(e,n,ne),Ym=(e,n)=>[e].concat(N_(e,n)),xk=(e,n,r)=>Tf(e,n,r,oz),lz=e=>n=>e.isBlock(La(n)),F_=(e,n,r)=>de(Ym(jt.fromDom(n.container()),e),lz(r)),Y$=(e,n,r,f)=>xk(e,n.dom,r).forall(w=>F_(n,r,f).fold(()=>!td(w,r,n.dom),B=>!td(w,r,n.dom)&&Dl(B,jt.fromDom(w.container())))),K$=(e,n,r,f)=>F_(n,r,f).fold(()=>xk(e,n.dom,r).forall(w=>!td(w,r,n.dom)),w=>xk(e,w.dom,r).isNone()),B_=Q(K$,!1),X$=Q(K$,!0),cz=Q(Y$,!1),uz=Q(Y$,!0),fz=e=>Gb(e).exists(vf),wk=(e,n,r,f)=>{const w=ue(Ym(jt.fromDom(r.container()),n),Z=>f.isBlock(La(Z))),B=gt(w).getOr(n);return dl(e,B.dom,r).filter(fz)},AC=(e,n,r)=>Gb(n).exists(vf)||wk(!0,e,n,r).isSome(),MC=(e,n,r)=>Z4(n).exists(vf)||wk(!1,e,n,r).isSome(),dz=Q(wk,!1),hz=Q(wk,!0),J$=e=>In.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd(),Q$=(e,n,r)=>{const f=ue(Ym(jt.fromDom(n.container()),e),w=>r.isBlock(La(w)));return gt(f).getOr(e)},q$=(e,n,r)=>J$(n)?bk(n):bk(n)||Nc(Q$(e,n,r).dom,n).exists(bk),e8=(e,n,r)=>J$(n)?I_(n):I_(n)||ic(Q$(e,n,r).dom,n).exists(I_),mz=e=>Ve(["pre","pre-wrap"],e),H_=e=>Gb(e).bind(n=>Xc(n,sl)).exists(n=>mz(ui(n,"white-space"))),t8=(e,n)=>Nc(e.dom,n).isNone(),gz=(e,n)=>ic(e.dom,n).isNone(),pz=(e,n,r)=>t8(e,n)||gz(e,n)||B_(e,n,r)||X$(e,n,r)||MC(e,n,r)||AC(e,n,r),ey=e=>k(e)&&fa(e)&&Im(e),n8=(e,n)=>r=>ey(new es(r,e)[n]()),r8=(e,n)=>{const r=ic(e.dom,n).getOr(n),f=n8(e.dom,"next");return n.isAtEnd()&&(f(n.container())||f(r.container()))},vz=(e,n)=>{const r=Nc(e.dom,n).getOr(n),f=n8(e.dom,"prev");return n.isAtStart()&&(f(n.container())||f(r.container()))},o8=(e,n,r)=>H_(n)?!1:pz(e,n,r)||q$(e,n,r)||e8(e,n,r),yx=(e,n,r)=>H_(n)?!1:B_(e,n,r)||cz(e,n,r)||MC(e,n,r)||q$(e,n,r)||vz(e,n),a8=e=>{const n=e.container(),r=e.offset();return ir(n)&&rH_(n)?!1:X$(e,n,r)||uz(e,n,r)||AC(e,n,r)||e8(e,n,r)||r8(e,n),Ck=(e,n,r)=>yx(e,n,r)||bx(e,a8(n),r),zc=(e,n)=>Jb(e.charAt(n)),s8=(e,n)=>Lv(e.charAt(n)),yz=e=>{const n=e.container();return ir(n)&&or(n.data,Da)},bz=e=>{const n=e.split("");return Fe(n,(r,f)=>Jb(r)&&f>0&&f{const w=n.data,B=In(n,0);return!r&&zc(w,0)&&!Ck(e,B,f)?(n.data=" "+w.slice(1),!0):r&&s8(w,0)&&yx(e,B,f)?(n.data=Da+w.slice(1),!0):!1},xz=e=>{const n=e.data,r=bz(n);return r!==n?(e.data=r,!0):!1},Wv=(e,n,r,f)=>{const w=n.data,B=In(n,w.length-1);return!r&&zc(w,w.length-1)&&!Ck(e,B,f)?(n.data=w.slice(0,-1)+" ",!0):r&&s8(w,w.length-1)&&bx(e,B,f)?(n.data=w.slice(0,-1)+Da,!0):!1},wz=(e,n,r)=>{const f=n.container();if(!ir(f))return X.none();if(yz(n)){const w=i8(e,f,!1,r)||xz(f)||Wv(e,f,!1,r);return Bo(w,n)}else if(Ck(e,n,r)){const w=i8(e,f,!0,r)||Wv(e,f,!0,r);return Bo(w,n)}else return X.none()},Cz=e=>{const n=jt.fromDom(e.getBody());e.selection.isCollapsed()&&wz(n,In.fromRangeStart(e.selection.getRng()),e.schema).each(r=>{e.selection.setRng(r.toRange())})},Ws=(e,n,r,f)=>{if(r===0)return;const w=jt.fromDom(e),B=Js(w,Pe=>f.isBlock(La(Pe))).getOr(w),Z=e.data.slice(n,n+r),oe=n+r>=e.data.length&&bx(B,In(e,e.data.length),f),be=n===0&&yx(B,In(e,0),f);e.replaceData(n,r,Ii(Z,4,be,oe))},ty=(e,n,r)=>{const f=e.data.slice(n),w=f.length-He(f).length;Ws(e,n,w,r)},l8=(e,n,r)=>{const f=e.data.slice(0,n),w=f.length-De(f).length;Ws(e,n-w,w,r)},hl=(e,n,r,f,w=!0)=>{const B=De(e.data).length,Z=w?e:n,oe=w?n:e;return w?Z.appendData(oe.data):Z.insertData(0,oe.data),Ua(jt.fromDom(oe)),f&&ty(Z,B,r),Z},Sz=(e,n)=>{const r=e.container(),f=e.offset();return!In.isTextPosition(e)&&r===n.parentNode&&f>In.before(n).offset()},Tz=(e,n)=>Sz(n,e)?In(n.container(),n.offset()-1):n,cp=e=>ir(e)?In(e,0):In.before(e),Qa=e=>ir(e)?In(e,e.data.length):In.after(e),z_=e=>fo(e.previousSibling)?X.some(Qa(e.previousSibling)):e.previousSibling?kf(e.previousSibling):X.none(),V_=e=>fo(e.nextSibling)?X.some(cp(e.nextSibling)):e.nextSibling?Sc(e.nextSibling):X.none(),kz=(e,n)=>X.from(n.previousSibling?n.previousSibling:n.parentNode).bind(r=>Nc(e,In.before(r))).orThunk(()=>ic(e,In.after(n))),Az=(e,n)=>ic(e,In.after(n)).orThunk(()=>Nc(e,In.before(n))),Mz=(e,n)=>z_(n).orThunk(()=>V_(n)).orThunk(()=>kz(e,n)),of=(e,n)=>V_(n).orThunk(()=>z_(n)).orThunk(()=>Az(e,n)),Zh=(e,n,r)=>e?of(n,r):Mz(n,r),Ez=(e,n,r)=>Zh(e,n,r).map(Q(Tz,r)),Sk=(e,n,r)=>{r.fold(()=>{e.focus()},f=>{e.selection.setRng(f.toRange(),n)})},U_=e=>n=>n.dom===e,_z=(e,n)=>n&<(e.schema.getBlockElements(),La(n)),Rz=(e,n)=>{if(Za(e)){const r=jt.fromHtml('
    ');return n?ie(zi(e),f=>{H1(f)||Ua(f)}):Ad(e),di(e,r),X.some(In.before(r.dom))}else return X.none()},EC=(e,n,r,f)=>{const w=hu(e).filter(Ei),B=Lg(e).filter(Ei);return Ua(e),qi(w,B,n,(Z,oe,be)=>{const Pe=Z.dom,Ke=oe.dom,Je=Pe.data.length;return hl(Pe,Ke,r,f),be.container()===Ke?In(Pe,Je):be}).orThunk(()=>(f&&(w.each(Z=>l8(Z.dom,Z.dom.length,r)),B.each(Z=>ty(Z.dom,0,r))),n))},Tk=(e,n)=>lt(e.schema.getTextInlineElements(),La(n)),up=(e,n,r,f=!0,w=!1)=>{const B=Ez(n,e.getBody(),r.dom),Z=Js(r,Q(_z,e),U_(e.getBody())),oe=EC(r,B,e.schema,Tk(e,r));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):Z.bind(be=>Rz(be,w)).fold(()=>{f&&Sk(e,n,oe)},be=>{f&&Sk(e,n,X.some(be))})},Lz=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,jh=e=>Lz.test(e),ny=(e,n)=>du(jt.fromDom(n),x4(e))&&!pa(e.schema,n)&&e.dom.isEditable(n),c8=e=>{var n;return Cs.DOM.getStyle(e,"direction",!0)==="rtl"||jh((n=e.textContent)!==null&&n!==void 0?n:"")},sd=(e,n,r)=>ue(Cs.DOM.getParents(r.container(),"*",n),e),Ud=(e,n,r)=>{const f=sd(e,n,r);return X.from(f[f.length-1])},Wd=(e,n,r)=>{const f=Ph(n,e),w=Ph(r,e);return k(f)&&f===w},Dz=e=>mn(e)||An(e),Ta=(e,n)=>{const r=n.container(),f=n.offset();return e?yt(r)?ir(r.nextSibling)?In(r.nextSibling,0):In.after(r):mn(n)?In(r,f+1):n:yt(r)?ir(r.previousSibling)?In(r.previousSibling,r.previousSibling.data.length):In.before(r):An(n)?In(r,f-1):n},ry=Q(Ta,!0),_C=Q(Ta,!1),W_=(e,n)=>{const r=f=>f.stopImmediatePropagation();e.on("beforeinput input",r,!0),e.getDoc().execCommand(n),e.off("beforeinput input",r)},G_=e=>{e.execCommand("delete")},RC=e=>W_(e,"Delete"),$z=e=>W_(e,"ForwardDelete"),Z_=e=>n=>Ms(Rc(n),e,Ba),Oz=e=>En(e)||yf(e),LC=(e,n)=>Dl(e,n)?Xc(n,Oz,Z_(e)):X.none(),kk=(e,n=!0)=>{e.dom.isEmpty(e.getBody())&&e.setContent("",{no_selection:!n})},Ak=(e,n,r)=>Es(Sc(r),kf(r),(f,w)=>{const B=Ta(!0,f),Z=Ta(!1,w),oe=Ta(!1,n);return e?ic(r,oe).exists(be=>be.isEqual(Z)&&n.isEqual(B)):Nc(r,oe).exists(be=>be.isEqual(B)&&n.isEqual(Z))}).getOr(!0),j_=e=>(P2(e)?hu(e):Xl(e)).bind(j_).orThunk(()=>X.some(e)),DC=(e,n,r,f=!0)=>{var w;n.deleteContents();const B=j_(r).getOr(r),Z=jt.fromDom((w=e.dom.getParent(B.dom,e.dom.isBlock))!==null&&w!==void 0?w:r.dom);if(Z.dom===e.getBody()?kk(e,f):Za(Z)&&(U(Z),f&&e.selection.setCursorLocation(Z.dom,0)),!Ba(r,Z)){const oe=Ms(Rc(Z),r)?[]:Jy(Z);ie(oe.concat(zi(r)),be=>{!Ba(be,Z)&&!Dl(be,Z)&&Za(be)&&Ua(be)})}},Pz=(e,n,r)=>Js(e,n,r).isSome(),Iz=(e,n)=>H0(e,n).isSome(),u8=(e,n)=>bl(e,n).isSome(),Nz=e=>n=>Ba(e,n),Y_=e=>Vi(e,"td,th"),K_=(e,n)=>Fh(jt.fromDom(e),n),Fz=e=>Es(e.startTable,e.endTable,(n,r)=>{const f=u8(n,B=>Ba(B,r)),w=u8(r,B=>Ba(B,n));return!f&&!w?e:{...e,startTable:f?X.none():e.startTable,endTable:w?X.none():e.endTable,isSameTable:!1,isMultiTable:!1}}).getOr(e),Bz=e=>Fz(e),f8=(e,n)=>{const r=K_(e.startContainer,n),f=K_(e.endContainer,n),w=r.isSome(),B=f.isSome(),Z=Es(r,f,Ba).getOr(!1);return Bz({startTable:r,endTable:f,isStartInTable:w,isEndInTable:B,isSameTable:Z,isMultiTable:!Z&&w&&B})},Mk=(e,n)=>({start:e,end:n}),Hz=(e,n,r)=>({rng:e,table:n,cells:r}),$C=ed.generate([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),OC=(e,n)=>Ku(jt.fromDom(e),"td,th",n),d8=e=>!Ba(e.start,e.end),X_=(e,n)=>Fh(e.start,n).bind(r=>Fh(e.end,n).bind(f=>Bo(Ba(r,f),r))),_f=(e,n)=>!d8(e)&&X_(e,n).exists(r=>{const f=r.dom.rows;return f.length===1&&f[0].cells.length===1}),zz=(e,n)=>{const r=OC(e.startContainer,n),f=OC(e.endContainer,n);return Es(r,f,Mk)},h8=e=>n=>Fh(n,e).bind(r=>ut(Y_(r)).map(f=>Mk(n,f))),J_=e=>n=>Fh(n,e).bind(r=>gt(Y_(r)).map(f=>Mk(f,n))),PC=e=>n=>X_(n,e).map(r=>Hz(n,r,Y_(r))),Q_=(e,n,r,f)=>{if(r.collapsed||!e.forall(d8))return X.none();if(n.isSameTable){const w=e.bind(PC(f));return X.some({start:w,end:w})}else{const w=OC(r.startContainer,f),B=OC(r.endContainer,f),Z=w.bind(h8(f)).bind(PC(f)),oe=B.bind(J_(f)).bind(PC(f));return X.some({start:Z,end:oe})}},q_=(e,n)=>Me(e,r=>Ba(r,n)),e5=e=>Es(q_(e.cells,e.rng.start),q_(e.cells,e.rng.end),(n,r)=>e.cells.slice(n,r+1)),Vz=(e,n,r)=>e.exists(f=>_f(f,r)&&nC(f.start,n)),Ek=(e,n)=>{const{startTable:r,endTable:f}=n,w=e.cloneRange();return r.each(B=>w.setStartAfter(B.dom)),f.each(B=>w.setEndBefore(B.dom)),w},m8=(e,n,r,f)=>Q_(e,n,r,f).bind(({start:w,end:B})=>w.or(B)).bind(w=>{const{isSameTable:B}=n,Z=e5(w).getOr([]);if(B&&w.cells.length===Z.length)return X.some($C.fullTable(w.table));if(Z.length>0){if(B)return X.some($C.partialTable(Z,X.none()));{const oe=Ek(r,n);return X.some($C.partialTable(Z,X.some({...n,rng:oe})))}}else return X.none()}),Gd=(e,n,r,f)=>Q_(e,n,r,f).bind(({start:w,end:B})=>{const Z=w.bind(e5).getOr([]),oe=B.bind(e5).getOr([]);if(Z.length>0&&oe.length>0){const be=Ek(r,n);return X.some($C.multiTable(Z,oe,be))}else return X.none()}),Uz=(e,n)=>{const r=Nz(e),f=zz(n,r),w=f8(n,r);return Vz(f,n,r)?f.map(B=>$C.singleCellTable(n,B.start)):w.isMultiTable?Gd(f,w,n,r):m8(f,w,n,r)},g8=e=>ie(e,n=>{Xs(n,"contenteditable"),U(n)}),dee=(e,n)=>X.from(e.dom.getParent(n,e.dom.isBlock)).map(jt.fromDom),t5=(e,n,r)=>{r.each(f=>{n?Ua(f):(U(f),e.selection.setCursorLocation(f.dom,0))})},n5=(e,n,r,f)=>{const w=r.cloneRange();f?(w.setStart(r.startContainer,r.startOffset),w.setEndAfter(n.dom.lastChild)):(w.setStartBefore(n.dom.firstChild),w.setEnd(r.endContainer,r.endOffset)),af(e,w,n,!1).each(B=>B())},oy=e=>{const n=Dv(e),r=jt.fromDom(e.selection.getNode());Bg(r.dom)&&Za(r)?e.selection.setCursorLocation(r.dom,0):e.selection.collapse(!0),n.length>1&&Oe(n,f=>Ba(f,r))&&ws(r,"data-mce-selected","1")},p8=(e,n,r)=>X.some(()=>{const f=e.selection.getRng(),w=r.bind(({rng:B,isStartInTable:Z})=>{const oe=dee(e,Z?B.endContainer:B.startContainer);B.deleteContents(),t5(e,Z,oe.filter(Za));const be=Z?n[0]:n[n.length-1];return n5(e,be,f,Z),Za(be)?X.none():X.some(Z?n.slice(1):n.slice(0,-1))}).getOr(n);g8(w),oy(e)}),xx=(e,n,r,f)=>X.some(()=>{const w=e.selection.getRng(),B=n[0],Z=r[r.length-1];n5(e,B,w,!0),n5(e,Z,w,!1);const oe=Za(B)?n:n.slice(1),be=Za(Z)?r:r.slice(0,-1);g8(oe.concat(be)),f.deleteContents(),oy(e)}),af=(e,n,r,f=!0)=>X.some(()=>{DC(e,n,r,f)}),IC=(e,n)=>X.some(()=>up(e,!1,n)),xs=(e,n,r)=>Uz(n,r).bind(f=>f.fold(Q(af,e),Q(IC,e),Q(p8,e),Q(xx,e))),NC=(e,n)=>wx(e,n),v8=(e,n,r,f)=>FC(n,f).fold(()=>xs(e,n,r),w=>NC(e,w)),y8=(e,n,r)=>{const f=jt.fromDom(e.getBody()),w=e.selection.getRng();return r.length!==0?p8(e,r,X.none()):v8(e,f,w,n)},_k=(e,n)=>de(Ym(n,e),bc),FC=(e,n)=>de(Ym(n,e),Yc("caption")),r5=(e,n,r,f,w)=>Nh(r,e.getBody(),w).bind(B=>_k(n,jt.fromDom(B.getNode())).bind(Z=>Ba(Z,f)?X.none():X.some(j))),wx=(e,n)=>X.some(()=>{U(n),e.selection.setCursorLocation(n.dom,0)}),Rk=(e,n,r,f)=>Sc(e.dom).bind(w=>kf(e.dom).map(B=>n?r.isEqual(w)&&f.isEqual(B):r.isEqual(B)&&f.isEqual(w))).getOr(!0),o5=(e,n)=>wx(e,n),b8=(e,n,r)=>FC(e,jt.fromDom(r.getNode())).fold(()=>X.some(j),f=>Bo(!Ba(f,n),j)),x8=(e,n,r,f,w)=>Nh(r,e.getBody(),w).fold(()=>X.some(j),B=>Rk(f,r,w,B)?o5(e,f):b8(n,f,B)),w8=(e,n,r,f)=>{const w=In.fromRangeStart(e.selection.getRng());return _k(r,f).bind(B=>Za(B)?wx(e,B):r5(e,r,n,B,w))},C8=(e,n,r,f)=>{const w=In.fromRangeStart(e.selection.getRng());return Za(f)?wx(e,f):x8(e,r,n,f,w)},a5=(e,n)=>e?G$(n):qo(n),Cx=(e,n)=>{const r=In.fromRangeStart(e.selection.getRng());return a5(n,r)||dl(n,e.getBody(),r).exists(f=>a5(n,f))},S8=(e,n,r)=>{const f=jt.fromDom(e.getBody());return FC(f,r).fold(()=>w8(e,n,f,r).orThunk(()=>Bo(Cx(e,n),j)),w=>C8(e,n,f,w))},BC=(e,n)=>{const r=jt.fromDom(e.selection.getStart(!0)),f=Dv(e);return e.selection.isCollapsed()&&f.length===0?S8(e,n,r):y8(e,r,f)},ay=(e,n)=>{let r=n;for(;r&&r!==e;){if(wl(r)||fa(r))return r;r=r.parentNode}return null},Wz=["data-ephox-","data-mce-","data-alloy-","data-snooker-","_"],T8=ur.each,Lk=e=>{const n=e.dom,r=new Set(e.serializer.getTempAttrs()),f=(B,Z)=>{if(B.nodeName!==Z.nodeName||B.nodeType!==Z.nodeType)return!1;const oe=Pe=>{const Ke={};return T8(n.getAttribs(Pe),Je=>{const at=Je.nodeName.toLowerCase();at!=="style"&&!w(at)&&(Ke[at]=n.getAttrib(Pe,at))}),Ke},be=(Pe,Ke)=>{for(const Je in Pe)if(lt(Pe,Je)){const at=Ke[Je];if(N(at)||Pe[Je]!==at)return!1;delete Ke[Je]}for(const Je in Ke)if(lt(Ke,Je))return!1;return!0};return Gr(B)&&Gr(Z)&&(!be(oe(B),oe(Z))||!be(n.parseStyle(n.getAttrib(B,"style")),n.parseStyle(n.getAttrib(Z,"style"))))?!1:!Eu(B)&&!Eu(Z)},w=B=>Oe(Wz,Z=>wr(B,Z))||r.has(B);return{compare:f,isAttributeInternal:w}},s5=e=>["h1","h2","h3","h4","h5","h6"].includes(e.name),Dk=e=>e.name==="summary",k8=(e,n)=>{let r=e;for(;r=r.walk();)n(r)},i5=(e,n,r,f)=>{const w=r.name;for(let B=0,Z=e.length;B{const f={nodes:{},attributes:{}};return r.firstChild&&k8(r,w=>{i5(e,n,w,f)}),f},l5=(e,n)=>{const r=(f,w)=>{Ft(f,B=>{const Z=tt(B.nodes);ie(B.filter.callbacks,oe=>{for(let be=Z.length-1;be>=0;be--){const Pe=Z[be];(!(w?Pe.attr(B.filter.name)!==void 0:Pe.name===B.filter.name)||M(Pe.parent))&&Z.splice(be,1)}Z.length>0&&oe(Z,B.filter.name,n)})})};r(e.nodes,!1),r(e.attributes,!0)},c5=(e,n,r,f={})=>{const w=A8(e,n,r);l5(w,f)},$k=(e,n,r,f)=>{if((e.pad_empty_with_br||n.insert)&&r(f)){const B=new Hc("br",1);n.insert&&B.attr("data-mce-bogus","1"),f.empty().append(B)}else f.empty().append(new Hc("#text",3)).value=Da},M8=e=>{var n;return u5(e,"#text")&&((n=e==null?void 0:e.firstChild)===null||n===void 0?void 0:n.value)===Da},u5=(e,n)=>{const r=e==null?void 0:e.firstChild;return k(r)&&r===e.lastChild&&r.name===n},E8=(e,n)=>{const r=e.getElementRule(n.name);return(r==null?void 0:r.paddEmpty)===!0},Sx=(e,n,r,f)=>f.isEmpty(n,r,w=>E8(e,w)),f5=(e,n)=>k(e)&&(n(e)||e.name==="br"),_8=e=>{let n;for(let r=e;r;r=r.parent){const f=r.attr("contenteditable");if(f==="false")break;f==="true"&&(n=r)}return X.from(n)},Ok=(e,n,r=e.parent)=>{if(n.getSpecialElements()[e.name])e.empty().remove();else{const f=e.children();for(const w of f)r&&!n.isValidChild(r.name,w.name)&&Ok(w,n,r);e.unwrap()}},Pk=(e,n,r,f=j)=>{const w=n.getTextBlockElements(),B=n.getNonEmptyElements(),Z=n.getWhitespaceElements(),oe=ur.makeMap("tr,td,th,tbody,thead,tfoot,table,summary"),be=new Set,Pe=Ke=>Ke!==r&&!oe[Ke.name];for(let Ke=0;Ke1)if(Ik(n,Je,at))Ok(Je,n);else{At.reverse(),Rt=At[0].clone(),f(Rt);let It=Rt;for(let ln=0;ln0?(Ht=At[ln].clone(),f(Ht),It.append(Ht)):Ht=It;for(let xn=At[ln].firstChild;xn&&xn!==At[ln+1];){const yn=xn.next;Ht.append(xn),xn=yn}It=Ht}Sx(n,B,Z,Rt)?at.insert(Je,At[0],!0):(at.insert(Rt,At[0],!0),at.insert(Je,Rt)),at=At[0],(Sx(n,B,Z,at)||u5(at,"br"))&&at.empty().remove()}else if(Je.parent){if(Je.name==="li"){let It=Je.prev;if(It&&(It.name==="ul"||It.name==="ol")){It.append(Je);continue}if(It=Je.next,It&&(It.name==="ul"||It.name==="ol")&&It.firstChild){It.insert(Je,It.firstChild,!0);continue}const ln=new Hc("ul",1);f(ln),Je.wrap(ln);continue}if(n.isValidChild(Je.parent.name,"div")&&n.isValidChild("div",Je.name)){const It=new Hc("div",1);f(It),Je.wrap(It)}else Ok(Je,n)}}},R8=(e,n)=>{let r=e;for(;r;){if(r.name===n)return!0;r=r.parent}return!1},Ik=(e,n,r=n.parent)=>r?e.children[n.name]&&!e.isValidChild(r.name,n.name)||n.name==="a"&&R8(r,"a")?!0:Dk(r)&&s5(n)?!((r==null?void 0:r.firstChild)===n&&(r==null?void 0:r.lastChild)===n):!1:!1,L8=(e,n,r,f)=>{const w=document.createRange();return w.setStart(e,n),w.setEnd(r,f),w},d5=e=>{const n=In.fromRangeStart(e),r=In.fromRangeEnd(e),f=e.commonAncestorContainer;return dl(!1,f,r).map(w=>!td(n,r,f)&&td(n,w,f)?L8(n.container(),n.offset(),w.container(),w.offset()):e).getOr(e)},Tx=e=>e.collapsed?e:d5(e),Nk=e=>k(e.firstChild)&&e.firstChild===e.lastChild,h5=e=>e.name==="br"||e.value===Da,D8=(e,n)=>e.getBlockElements()[n.name]&&Nk(n)&&h5(n.firstChild),Fk=(e,n)=>{const r=e.getNonEmptyElements();return k(n)&&(n.isEmpty(r)||D8(e,n))},m5=(e,n)=>{let r=n.firstChild,f=n.lastChild;return r&&r.name==="meta"&&(r=r.next),f&&f.attr("id")==="mce_marker"&&(f=f.prev),Fk(e,f)&&(f=f==null?void 0:f.prev),!r||r!==f?!1:r.name==="ul"||r.name==="ol"},HC=e=>{var n,r;const f=e.firstChild,w=e.lastChild;return f&&f.nodeName==="META"&&((n=f.parentNode)===null||n===void 0||n.removeChild(f)),w&&w.id==="mce_marker"&&((r=w.parentNode)===null||r===void 0||r.removeChild(w)),e},g5=(e,n,r)=>{const f=n.serialize(r),w=e.createFragment(f);return HC(w)},$8=e=>{var n;return ue((n=e==null?void 0:e.childNodes)!==null&&n!==void 0?n:[],r=>r.nodeName==="LI")},kx=e=>e.data===Da||Ja(e),p5=e=>k(e==null?void 0:e.firstChild)&&e.firstChild===e.lastChild&&kx(e.firstChild),v5=e=>!e.firstChild||p5(e),zC=e=>e.length>0&&v5(e[e.length-1])?e.slice(0,-1):e,Km=(e,n)=>{const r=e.getParent(n,e.isBlock);return r&&r.nodeName==="LI"?r:null},O8=(e,n)=>!!Km(e,n),Gz=(e,n)=>{const r=n.cloneRange(),f=n.cloneRange();return r.setStartBefore(e),f.setEndAfter(e),[r.cloneContents(),f.cloneContents()]},P8=(e,n)=>{const r=In.before(e),w=nd(n).next(r);return w?w.toRange():null},y5=(e,n)=>{const r=In.after(e),w=nd(n).prev(r);return w?w.toRange():null},Zz=(e,n,r,f)=>{const w=Gz(e,f),B=e.parentNode;return B&&(B.insertBefore(w[0],e),ur.each(n,Z=>{B.insertBefore(Z,e)}),B.insertBefore(w[1],e),B.removeChild(e)),y5(n[n.length-1],r)},hee=(e,n,r)=>{const f=e.parentNode;return f&&ur.each(n,w=>{f.insertBefore(w,e)}),P8(e,r)},jz=(e,n,r,f)=>(f.insertAfter(n.reverse(),e),y5(n[0],r)),b5=(e,n,r,f)=>{const w=g5(n,e,f),B=Km(n,r.startContainer),Z=zC($8(w.firstChild)),oe=1,be=2,Pe=n.getRoot(),Ke=Je=>{const at=In.fromRangeStart(r),Rt=nd(n.getRoot()),Ht=Je===oe?Rt.prev(at):Rt.next(at),At=Ht==null?void 0:Ht.getNode();return At?Km(n,At)!==B:!0};return B?Ke(oe)?hee(B,Z,Pe):Ke(be)?jz(B,Z,Pe,n):Zz(B,Z,Pe,r):null},Yh=["pre"],x5=(e,n,r,f)=>{var w;const B=n.firstChild,Z=n.lastChild,oe=Z.attr("data-mce-type")==="bookmark"?Z.prev:Z,be=B===oe,Pe=Ve(Yh,B.name);if(be&&Pe){const Ke=B.attr("contenteditable")!=="false",Je=((w=e.getParent(r,e.isBlock))===null||w===void 0?void 0:w.nodeName.toLowerCase())===B.name,at=X.from(ay(f,r)).forall(wl);return Ke&&Je&&at}else return!1},Ax=Bg,w5=(e,n,r)=>{if(k(r)){const f=e.getParent(n.endContainer,Ax);return r===f&&nC(jt.fromDom(r),n)}else return!1},Yz=(e,n,r)=>{var f;if(r.getAttribute("data-mce-bogus")==="all")(f=r.parentNode)===null||f===void 0||f.insertBefore(e.dom.createFragment(n),r);else{const w=r.firstChild,B=r.lastChild;!w||w===B&&w.nodeName==="BR"?e.dom.setHTML(r,n):e.selection.setContent(n,{no_events:!0})}},I8=(e,n,r)=>{X.from(e.getParent(n,"td,th")).map(jt.fromDom).each(f=>q(f,r))},Kz=(e,n)=>{const r=e.schema.getTextInlineElements(),f=e.dom;if(n){const w=e.getBody(),B=Lk(e);ur.each(f.select("*[data-mce-fragment]"),Z=>{if(k(r[Z.nodeName.toLowerCase()])&&TC(f,Z)){for(let be=Z.parentElement;k(be)&&be!==w&&!rz(f,Z,be);be=be.parentElement)if(B.compare(be,Z)){f.remove(Z,!0);break}}})}},N8=e=>{let n=e;for(;n=n.walk();)n.type===1&&n.attr("data-mce-fragment","1")},C5=e=>{ur.each(e.getElementsByTagName("*"),n=>{n.removeAttribute("data-mce-fragment")})},Xz=e=>!!e.getAttribute("data-mce-fragment"),F8=(e,n)=>k(n)&&!e.schema.getVoidElements()[n.nodeName],Jz=(e,n)=>{var r,f,w;let B;const Z=e.dom,oe=e.selection;if(!n)return;oe.scrollIntoView(n);const be=ay(e.getBody(),n);if(be&&Z.getContentEditable(be)==="false"){Z.remove(n),oe.select(be);return}let Pe=Z.createRng();const Ke=n.previousSibling;if(ir(Ke)){Pe.setStart(Ke,(f=(r=Ke.nodeValue)===null||r===void 0?void 0:r.length)!==null&&f!==void 0?f:0);const Rt=n.nextSibling;ir(Rt)&&(Ke.appendData(Rt.data),(w=Rt.parentNode)===null||w===void 0||w.removeChild(Rt))}else Pe.setStartBefore(n),Pe.setEndBefore(n);const Je=Rt=>{let Ht=In.fromRangeStart(Rt);return Ht=nd(e.getBody()).next(Ht),Ht==null?void 0:Ht.toRange()},at=Z.getParent(n,Z.isBlock);if(Z.remove(n),at&&Z.isEmpty(at)){const Rt=Ax(at);Ad(jt.fromDom(at)),Pe.setStart(at,0),Pe.setEnd(at,0),!Rt&&!Xz(at)&&(B=Je(Pe))?(Pe=B,Z.remove(at)):Z.add(at,Z.create("br",Rt?{}:{"data-mce-bogus":"1"}))}oe.setRng(Pe)},VC=e=>{const n=e.dom,r=Tx(e.selection.getRng());e.selection.setRng(r);const f=n.getParent(r.startContainer,Ax);w5(n,r,f)?af(e,r,jt.fromDom(f)):r.startContainer===r.endContainer&&r.endOffset-r.startOffset===1&&ir(r.startContainer.childNodes[r.startOffset])?r.deleteContents():e.getDoc().execCommand("Delete",!1)},B8=e=>{for(let n=e;n;n=n.walk())if(n.attr("id")==="mce_marker")return X.some(n);return X.none()},Qz=(e,n,r)=>{var f;return Oe(r.children(),s5)&&((f=e.getParent(n,e.isBlock))===null||f===void 0?void 0:f.nodeName)==="SUMMARY"},H8=(e,n,r)=>{var f,w;const B=e.selection,Z=e.dom,oe=e.parser,be=r.merge,Pe=Uv({validate:!0},e.schema),Ke='';r.preserve_zwsp||(n=_e(n)),n.indexOf("{$caret}")===-1&&(n+="{$caret}"),n=n.replace(/\{\$caret\}/,Ke);let Je=B.getRng();const at=Je.startContainer,Rt=e.getBody();at===Rt&&B.isCollapsed()&&Z.isBlock(Rt.firstChild)&&F8(e,Rt.firstChild)&&Z.isEmpty(Rt.firstChild)&&(Je=Z.createRng(),Je.setStart(Rt.firstChild,0),Je.setEnd(Rt.firstChild,0),B.setRng(Je)),B.isCollapsed()||VC(e);const Ht=B.getNode(),At={context:Ht.nodeName.toLowerCase(),data:r.data,insert:!0},It=oe.parse(n,At);if(r.paste===!0&&m5(e.schema,It)&&O8(Z,Ht))return Je=b5(Pe,Z,B.getRng(),It),Je&&B.setRng(Je),n;r.paste===!0&&x5(Z,It,Ht,e.getBody())&&((f=It.firstChild)===null||f===void 0||f.unwrap()),N8(It);let ln=It.lastChild;if(ln&&ln.attr("id")==="mce_marker"){const xn=ln;for(ln=ln.prev;ln;ln=ln.walk(!0))if(ln.type===3||!Z.isBlock(ln.name)){ln.parent&&e.schema.isValidChild(ln.parent.name,"span")&&ln.parent.insert(xn,ln,ln.name==="br");break}}if(e._selectionOverrides.showBlockCaretContainer(Ht),!At.invalid&&!Qz(Z,Ht,It))n=Pe.serialize(It),Yz(e,n,Ht);else{e.selection.setContent(Ke);let xn=B.getNode(),yn;const $n=e.getBody();for(wm(xn)?xn=yn=$n:yn=xn;yn&&yn!==$n;)xn=yn,yn=yn.parentNode;n=xn===$n?$n.innerHTML:Z.getOuterHTML(xn);const nr=oe.parse(n),mr=B8(nr),Nr=mr.bind(_8).getOr(nr);mr.each(Qr=>Qr.replace(It));const zn=It.children(),Nn=(w=It.parent)!==null&&w!==void 0?w:nr;It.unwrap();const er=ue(zn,Qr=>Ik(e.schema,Qr,Nn));Pk(er,e.schema,Nr),c5(oe.getNodeFilters(),oe.getAttributeFilters(),nr),n=Pe.serialize(nr),xn===$n?Z.setHTML($n,n):Z.setOuterHTML(xn,n)}return Kz(e,be),Jz(e,Z.get("mce_marker")),C5(e.getBody()),I8(Z,B.getStart(),e.schema),$3(e.schema,e.getBody(),B.getStart()),n},Bk=e=>e instanceof Hc,qz=e=>{Vv(e)&&Sc(e.getBody()).each(n=>{const r=n.getNode(),f=yu(r)?Sc(r).getOr(n):n;e.selection.setRng(f.toRange())})},S5=(e,n,r)=>{e.dom.setHTML(e.getBody(),n),r!==!0&&qz(e)},eV=(e,n,r,f)=>{if(r=_e(r),r.length===0||/^\s+$/.test(r)){const w='
    ';n.nodeName==="TABLE"?r=""+w+"":/^(UL|OL)$/.test(n.nodeName)&&(r="
  • "+w+"
  • ");const B=ac(e);return e.schema.isValidChild(n.nodeName.toLowerCase(),B.toLowerCase())?(r=w,r=e.dom.createHTML(B,v1(e),r)):r||(r=w),S5(e,r,f.no_selection),{content:r,html:r}}else{f.format!=="raw"&&(r=Uv({validate:!1},e.schema).serialize(e.parser.parse(r,{isRootContent:!0,insert:!0})));const w=Li(jt.fromDom(n))?r:ur.trim(r);return S5(e,w,f.no_selection),{content:w,html:w}}},tV=(e,n,r,f)=>{c5(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),r);const w=Uv({validate:!1},e.schema).serialize(r),B=_e(Li(jt.fromDom(n))?w:ur.trim(w));return S5(e,B,f.no_selection),{content:r,html:B}},z8=(e,n,r)=>X.from(e.getBody()).map(f=>Bk(n)?tV(e,f,n,r):eV(e,f,n,r)).getOr({content:n,html:Bk(r.content)?"":r.content}),V8=e=>R(e)?e:ne,T5=(e,n,r)=>{let f=e.dom;const w=V8(r);for(;f.parentNode;){f=f.parentNode;const B=jt.fromDom(f),Z=n(B);if(Z.isSome())return Z;if(w(B))break}return X.none()},fp=(e,n,r)=>{const f=n(e),w=V8(r);return f.orThunk(()=>w(e)?X.none():T5(e,n,w))},k5=nx,U8=(e,n,r)=>{const f=e.formatter.get(r);if(f)for(let w=0;w{const B=e.dom.getRoot();if(n===B)return!1;const Z=e.dom.getParent(n,oe=>U8(e,oe,r)?!0:oe.parentNode===B||!!Xm(e,oe,r,f,!0));return!!Xm(e,Z,r,f,w)},UC=(e,n,r)=>$i(r)&&k5(n,r.inline)||ad(r)&&k5(n,r.block)?!0:El(r)?Gr(n)&&e.is(n,r.selector):!1,A5=(e,n,r,f,w,B)=>{const Z=r[f],oe=f==="attributes";if(R(r.onmatch))return r.onmatch(n,r,f);if(Z){if($t(Z)){for(let be=0;be{const B=e.formatter.get(r),Z=e.dom;if(B&&Gr(n))for(let oe=0;oe{if(f)return Mx(e,f,n,r,w);if(f=e.selection.getNode(),Mx(e,f,n,r,w))return!0;const B=e.selection.getStart();return!!(B!==f&&Mx(e,B,n,r,w))},nV=(e,n,r)=>{const f=[],w={},B=e.selection.getStart();return e.dom.getParent(B,Z=>{for(let oe=0;oe{const r=w=>Ba(w,jt.fromDom(e.getBody())),f=(w,B)=>Xm(e,w.dom,B)?X.some(B):X.none();return X.from(e.selection.getStart(!0)).bind(w=>fp(jt.fromDom(w),B=>Ct(n,Z=>f(B,Z)),r)).getOrNull()},W8=(e,n)=>{const r=e.formatter.get(n),f=e.dom;if(r&&e.selection.isEditable()){const w=e.selection.getStart(),B=N1(f,w);for(let Z=r.length-1;Z>=0;Z--){const oe=r[Z];if(!El(oe))return!0;for(let be=B.length-1;be>=0;be--)if(f.is(B[be],oe.selector))return!0}}return!1},G8=(e,n,r)=>le(r,(f,w)=>{const B=sC(e,w);return e.formatter.matchNode(n,w,{},B)?f.concat([w]):f},[]),Ex=ve,zk=(e,n)=>e.importNode(n,!0),M5=e=>{if(e){const n=new es(e,e);for(let r=n.current();r;r=n.next())if(ir(r))return r}return null},E5=e=>{const n=jt.fromTag("span");return Kc(n,{id:Yb,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&di(n,jt.fromText(Ex)),n},Z8=e=>{const n=M5(e);return n&&n.data.charAt(0)===Ex&&n.deleteData(0,1),n},_5=(e,n,r)=>{const f=e.dom,w=e.selection;if(B1(n))up(e,!1,jt.fromDom(n),r,!0);else{const B=w.getRng(),Z=f.getParent(n,f.isBlock),oe=B.startContainer,be=B.startOffset,Pe=B.endContainer,Ke=B.endOffset,Je=Z8(n);f.remove(n,!0),oe===Je&&be>0&&B.setStart(Je,be-1),Pe===Je&&Ke>0&&B.setEnd(Je,Ke-1),Z&&f.isEmpty(Z)&&U(jt.fromDom(Z)),w.setRng(B)}},R5=(e,n,r)=>{const f=e.dom,w=e.selection;if(n)_5(e,n,r);else if(n=ep(e.getBody(),w.getStart()),!n)for(;n=f.get(Yb);)_5(e,n,r)},Vk=(e,n,r)=>{var f,w;const B=e.dom,Z=B.getParent(r,Q(Fi,e.schema));Z&&B.isEmpty(Z)?(f=r.parentNode)===null||f===void 0||f.replaceChild(n,r):(L3(jt.fromDom(r)),B.isEmpty(r)?(w=r.parentNode)===null||w===void 0||w.replaceChild(n,r):B.insertAfter(n,r))},L5=(e,n)=>(e.appendChild(n),n),Uk=(e,n)=>{var r;const f=pe(e,(B,Z)=>L5(B,Z.cloneNode(!1)),n),w=(r=f.ownerDocument)!==null&&r!==void 0?r:document;return L5(f,w.createTextNode(Ex))},rV=(e,n,r,f,w,B)=>{const Z=e.formatter,oe=e.dom,be=ue(Yt(Z.get()),Je=>Je!==f&&!or(Je,"removeformat")),Pe=G8(e,r,be);if(ue(Pe,Je=>!a_(e,Je,f)).length>0){const Je=r.cloneNode(!1);return oe.add(n,Je),Z.remove(f,w,Je,B),oe.remove(Je),X.some(Je)}else return X.none()},oV=(e,n,r)=>{let f;const w=e.selection,B=e.formatter.get(n);if(!B)return;const Z=w.getRng();let oe=Z.startOffset;const Pe=Z.startContainer.nodeValue;f=ep(e.getBody(),w.getStart());const Ke=/[^\s\u00a0\u00ad\u200b\ufeff]/;if(Pe&&oe>0&&oe{const w=e.dom,B=e.selection;let Z=!1;const oe=e.formatter.get(n);if(!oe)return;const be=B.getRng(),Pe=be.startContainer,Ke=be.startOffset;let Je=Pe;ir(Pe)&&(Ke!==Pe.data.length&&(Z=!0),Je=Je.parentNode);const at=[];let Rt;for(;Je;){if(Xm(e,Je,n,r,f)){Rt=Je;break}Je.nextSibling&&(Z=!0),at.push(Je),Je=Je.parentNode}if(Rt)if(Z){const Ht=B.getBookmark();be.collapse(!0);let At=Hh(w,be,oe,!0);At=nt(At),e.formatter.remove(n,r,At,f),B.moveToBookmark(Ht)}else{const Ht=ep(e.getBody(),Rt),At=k(Ht)?w.getParents(Rt.parentNode,fe,Ht):[],It=E5(!1).dom;Vk(e,It,Ht??Rt);const ln=rV(e,It,Rt,n,r,f),xn=Uk([...at,...ln.toArray(),...At],It);Ht&&_5(e,Ht,k(Ht)),B.setCursorLocation(xn,1),w.isEmpty(Rt)&&w.remove(Rt)}},D5=(e,n,r)=>{const f=e.selection,w=e.getBody();R5(e,null,r),(n===8||n===46)&&f.isCollapsed()&&f.getStart().innerHTML===Ex&&R5(e,ep(w,f.getStart()),!0),(n===37||n===39)&&R5(e,ep(w,f.getStart()),!0)},Y8=e=>ir(e)&&ro(e.data,Da),aV=e=>{e.on("mouseup keydown",n=>{D5(e,n.keyCode,Y8(e.selection.getRng().endContainer))})},K8=e=>{const n=E5(!1),r=Uk(e,n.dom);return{caretContainer:n,caretPosition:In(r,0)}},X8=(e,n)=>{const{caretContainer:r,caretPosition:f}=K8(n);return Ri(jt.fromDom(e),r),Ua(jt.fromDom(e)),f},Wk=(e,n)=>{const{caretContainer:r,caretPosition:f}=K8(n);return e.insertNode(r.dom),f},Jm=(e,n)=>{if(Mu(n.dom))return!1;const r=e.schema.getTextInlineElements();return lt(r,La(n))&&!Mu(n.dom)&&!Ju(n.dom)},WC={},Gk=oi(["pre"]),Oi=(e,n)=>{WC[e]||(WC[e]=[]),WC[e].push(n)},$5=(e,n)=>{lt(WC,e)&&ie(WC[e],r=>{r(n)})};Oi("pre",e=>{const n=e.selection.getRng(),r=w=>B=>{const Z=B.previousSibling;return Gk(Z)&&Ve(w,Z)},f=(w,B)=>{const Z=jt.fromDom(B),oe=mf(Z).dom;Ua(Z),hs(jt.fromDom(w),[jt.fromTag("br",oe),jt.fromTag("br",oe),...zi(Z)])};if(!n.collapsed){const w=e.selection.getSelectedBlocks(),B=ue(ue(w,Gk),r(w));ie(B,Z=>{f(Z.previousSibling,Z)})}});const Zk=["fontWeight","fontStyle","color","fontSize","fontFamily"],dp=e=>_(e.styles)&&Oe(Yt(e.styles),n=>Ve(Zk,n)),J8=e=>de(e,n=>$i(n)&&n.inline==="span"&&dp(n)),O5=(e,n)=>{const r=e.get(n);return S(r)?J8(r):X.none()},_x=(e,n)=>Nc(n,In.fromRangeStart(e)).isNone(),Q8=(e,n)=>ic(n,In.fromRangeEnd(e)).exists(r=>!Ja(r.getNode())||ic(n,r).isSome())===!1,q8=e=>n=>Hg(n)&&e.isEditable(n),Rx=e=>{const n=e.getSelectedBlocks(),r=e.getRng();if(e.isCollapsed())return[];if(n.length===1)return _x(r,n[0])&&Q8(r,n[0])?n:[];{const f=gt(n).filter(Z=>_x(r,Z)).toArray(),w=ut(n).filter(Z=>Q8(r,Z)).toArray(),B=n.slice(1,-1);return f.concat(B).concat(w)}},sV=e=>ue(Rx(e),q8(e.dom)),Gv=e=>ue(e.getSelectedBlocks(),q8(e.dom)),P5=ur.each,Qm=e=>Gr(e)&&!Eu(e)&&!Mu(e)&&!Ju(e),Rf=(e,n)=>{for(let r=e;r;r=r[n]){if(ir(r)&&St(r.data))return e;if(Gr(r)&&!Eu(r))return r}return e},GC=(e,n,r)=>{const f=Lk(e),w=xl(n)&&e.dom.isEditable(n),B=xl(r)&&e.dom.isEditable(r);if(w&&B){const Z=Rf(n,"previousSibling"),oe=Rf(r,"nextSibling");if(f.compare(Z,oe)){for(let be=Z.nextSibling;be&&be!==oe;){const Pe=be;be=be.nextSibling,Z.appendChild(Pe)}return e.dom.remove(oe),ur.each(ur.grep(oe.childNodes),be=>{Z.appendChild(be)}),Z}}return r},jk=(e,n,r,f)=>{var w;if(f&&n.merge_siblings!==!1){const B=(w=GC(e,Fr(f),f))!==null&&w!==void 0?w:f;GC(e,B,Fr(B,!0))}},iV=(e,n,r)=>{if(n.clear_child_styles){const f=n.links?"*:not(a)":"*";P5(e.select(f,r),w=>{Qm(w)&&e.isEditable(w)&&P5(n.styles,(B,Z)=>{e.setStyle(w,Z,"")})})}},I5=(e,n,r)=>{P5(e.childNodes,f=>{Qm(f)&&(n(f)&&r(f),f.hasChildNodes()&&I5(f,n,r))})},Yk=(e,n)=>{n.nodeName==="SPAN"&&e.getAttribs(n).length===0&&e.remove(n,!0)},e7=(e,n)=>r=>!!(r&&$v(e,r,n)),id=(e,n,r)=>f=>{e.setStyle(f,n,r),f.getAttribute("style")===""&&f.removeAttribute("style"),Yk(e,f)},qm=ed.generate([{keep:[]},{rename:["name"]},{removed:[]}]),t7=/^(src|href|style)$/,ZC=ur.each,Lx=nx,iy=e=>/^(TR|TH|TD)$/.test(e.nodeName),Kk=(e,n,r)=>e.isChildOf(n,r)&&n!==r&&!e.isBlock(r),n7=(e,n,r)=>{let f=n[r?"startContainer":"endContainer"],w=n[r?"startOffset":"endOffset"];if(Gr(f)){const B=f.childNodes.length-1;!r&&w&&w--,f=f.childNodes[w>B?B:w]}return ir(f)&&r&&w>=f.data.length&&(f=new es(f,e.getBody()).next()||f),ir(f)&&!r&&w===0&&(f=new es(f,e.getBody()).prev()||f),f},N5=(e,n)=>{const r=n?"firstChild":"lastChild",f=e[r];return iy(e)&&f?e.nodeName==="TR"&&f[r]||f:e},F5=(e,n,r,f)=>{var w;const B=e.create(r,f);return(w=n.parentNode)===null||w===void 0||w.insertBefore(B,n),B.appendChild(n),B},r7=(e,n,r,f,w)=>{const B=jt.fromDom(n),Z=jt.fromDom(e.create(f,w)),oe=r?pc(B):F0(B);return hs(Z,oe),r?(Ri(B,Z),yh(Z,B)):(gu(B,Z),di(Z,B)),Z.dom},lV=(e,n)=>n.links&&e.nodeName==="A",o7=(e,n,r)=>{const f=n.parentNode;let w;const B=e.dom,Z=ac(e);ad(r)&&f===B.getRoot()&&(!r.list_block||!Lx(n,r.list_block))&&ie(tt(n.childNodes),oe=>{Bh(e,Z,oe.nodeName.toLowerCase())?w?w.appendChild(oe):(w=F5(B,oe,Z),B.setAttribs(w,v1(e))):w=null}),!(ax(r)&&!Lx(r.inline,n))&&B.remove(n,!0)},Dx=(e,n,r)=>F(e)?{name:n,value:null}:{name:e,value:od(n,r)},a7=(e,n)=>{e.getAttrib(n,"style")===""&&(n.removeAttribute("style"),n.removeAttribute("data-mce-style"))},B5=(e,n,r,f,w)=>{let B=!1;ZC(r.styles,(Z,oe)=>{const{name:be,value:Pe}=Dx(oe,Z,f),Ke=rx(Pe,be);(r.remove_similar||O(Pe)||!Gr(w)||Lx($v(e,w,be),Ke))&&e.setStyle(n,be,""),B=!0}),B&&a7(e,n)},H5=(e,n,r)=>{n==="removeformat"?ie(Gv(e.selection),f=>{ie(Zk,w=>e.dom.setStyle(f,w,"")),a7(e.dom,f)}):O5(e.formatter,n).each(f=>{ie(Gv(e.selection),w=>B5(e.dom,w,f,r,null))})},s7=(e,n,r,f,w)=>{const B=e.dom,Z=Lk(e),oe=e.schema;if($i(n)&&e1(oe,n.inline)&&pa(oe,f)&&f.parentElement===e.getBody())return o7(e,f,n),qm.removed();if(!n.ceFalseOverride&&f&&B.getContentEditableParent(f)==="false"||f&&!UC(B,f,n)&&!lV(f,n))return qm.keep();const be=f,Pe=n.preserve_attributes;if($i(n)&&n.remove==="all"&&S(Pe)){const Ke=ue(B.getAttribs(be),Je=>Ve(Pe,Je.name.toLowerCase()));if(B.removeAllAttribs(be),ie(Ke,Je=>B.setAttrib(be,Je.name,Je.value)),Ke.length>0)return qm.rename("span")}if(n.remove!=="all"){B5(B,be,n,r,w),ZC(n.attributes,(Je,at)=>{const{name:Rt,value:Ht}=Dx(at,Je,r);if(n.remove_similar||O(Ht)||!Gr(w)||Lx(B.getAttrib(w,Rt),Ht)){if(Rt==="class"){const At=B.getAttrib(be,Rt);if(At){let It="";if(ie(At.split(/\s+/),ln=>{/mce\-\w+/.test(ln)&&(It+=(It?" ":"")+ln)}),It){B.setAttrib(be,Rt,It);return}}}if(t7.test(Rt)&&be.removeAttribute("data-mce-"+Rt),Rt==="style"&&oi(["li"])(be)&&B.getStyle(be,"list-style-type")==="none"){be.removeAttribute(Rt),B.setStyle(be,"list-style-type","none");return}Rt==="class"&&be.removeAttribute("className"),be.removeAttribute(Rt)}}),ZC(n.classes,Je=>{Je=od(Je,r),(!Gr(w)||B.hasClass(w,Je))&&B.removeClass(be,Je)});const Ke=B.getAttribs(be);for(let Je=0;Je{let B;return n.parentNode&&ie(N1(e.dom,n.parentNode).reverse(),Z=>{if(!B&&Gr(Z)&&Z.id!=="_start"&&Z.id!=="_end"){const oe=Xm(e,Z,r,f,w);oe&&oe.split!==!1&&(B=Z)}}),B},l7=(e,n,r,f)=>s7(e,n,r,f,f).fold(J(f),w=>(e.dom.createFragment().appendChild(f),e.dom.rename(f,w)),J(null)),cV=(e,n,r,f,w,B,Z,oe)=>{var be,Pe;let Ke,Je;const at=e.dom;if(r){const Rt=r.parentNode;for(let Ht=f.parentNode;Ht&&Ht!==Rt;Ht=Ht.parentNode){let At=at.clone(Ht,!1);for(let It=0;It{const B=e.formatter.get(n),Z=B[0],oe=e.dom,be=e.selection,Pe=At=>{const It=i7(e,At,n,r,w);return cV(e,B,It,At,At,!0,Z,r)},Ke=At=>Eu(At)&&Gr(At)&&(At.id==="_start"||At.id==="_end"),Je=At=>Oe(B,It=>jC(e,It,r,At,At)),at=At=>{const It=tt(At.childNodes),xn=Je(At)||Oe(B,nr=>UC(oe,At,nr)),yn=At.parentNode;if(!xn&&k(yn)&&F1(Z)&&Je(yn),Z.deep&&It.length)for(let nr=0;nr{Gr(At)&&e.dom.getStyle(At,"text-decoration")===nr&&At.parentNode&&UT(oe,At.parentNode)===nr&&jC(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:nr}},void 0,At)})},Rt=At=>{const It=oe.get(At?"_start":"_end");if(It){let ln=It[At?"firstChild":"lastChild"];return Ke(ln)&&(ln=ln[At?"firstChild":"lastChild"]),ir(ln)&&ln.data.length===0&&(ln=At?It.previousSibling||It.nextSibling:It.nextSibling||It.previousSibling),oe.remove(It,!0),ln}else return null},Ht=At=>{let It,ln,xn=Hh(oe,At,B,At.collapsed);if(Z.split){if(xn=nt(xn),It=n7(e,xn,!0),ln=n7(e,xn),It!==ln){if(It=N5(It,!0),ln=N5(ln,!1),Kk(oe,It,ln)){const $n=X.from(It.firstChild).getOr(It);Pe(r7(oe,$n,!0,"span",{id:"_start","data-mce-type":"bookmark"})),Rt(!0);return}if(Kk(oe,ln,It)){const $n=X.from(ln.lastChild).getOr(ln);Pe(r7(oe,$n,!1,"span",{id:"_end","data-mce-type":"bookmark"})),Rt(!1);return}It=F5(oe,It,"span",{id:"_start","data-mce-type":"bookmark"}),ln=F5(oe,ln,"span",{id:"_end","data-mce-type":"bookmark"});const yn=oe.createRng();yn.setStartAfter(It),yn.setEndBefore(ln),W1(oe,yn,$n=>{ie($n,nr=>{!Eu(nr)&&!Eu(nr.parentNode)&&Pe(nr)})}),Pe(It),Pe(ln),It=Rt(!0),ln=Rt()}else It=ln=Pe(It);xn.startContainer=It.parentNode?It.parentNode:It,xn.startOffset=oe.nodeIndex(It),xn.endContainer=ln.parentNode?ln.parentNode:ln,xn.endOffset=oe.nodeIndex(ln)+1}W1(oe,xn,yn=>{ie(yn,at)})};if(f){if(O1(f)){const At=oe.createRng();At.setStartBefore(f),At.setEndAfter(f),Ht(At)}else Ht(f);op(e,n,f,r);return}!be.isCollapsed()||!$i(Z)||Dv(e).length?(P1(e,()=>Um(e,Ht),At=>$i(Z)&&Hk(e,n,r,At)),e.nodeChanged()):j8(e,n,r,w),H5(e,n,r),op(e,n,f,r)},c7=(e,n,r,f,w)=>{(f||e.selection.isEditable())&&uV(e,n,r,f,w)},jC=(e,n,r,f,w)=>s7(e,n,r,f,w).fold(ne,B=>(e.dom.rename(f,B),!0),fe),u7=ur.each,fV=(e,n,r,f)=>{const w=B=>{if(xl(B)&&Gr(B.parentNode)&&e.isEditable(B)){const Z=UT(e,B.parentNode);e.getStyle(B,"color")&&Z?e.setStyle(B,"text-decoration",Z):e.getStyle(B,"text-decoration")===Z&&e.setStyle(B,"text-decoration",null)}};n.styles&&(n.styles.color||n.styles.textDecoration)&&(ur.walk(f,w,"childNodes"),w(f))},dV=(e,n,r,f)=>{if(n.styles&&n.styles.backgroundColor){const w=e7(e,"fontSize");I5(f,B=>w(B)&&e.isEditable(B),id(e,"backgroundColor",od(n.styles.backgroundColor,r)))}},hV=(e,n,r,f)=>{if($i(n)&&(n.inline==="sub"||n.inline==="sup")){const w=e7(e,"fontSize");I5(f,Z=>w(Z)&&e.isEditable(Z),id(e,"fontSize",""));const B=ue(e.select(n.inline==="sup"?"sub":"sup",f),e.isEditable);e.remove(B,!0)}},mV=(e,n,r,f)=>{u7(n,w=>{$i(w)&&u7(e.dom.select(w.inline,f),B=>{Qm(B)&&jC(e,w,r,B,w.exact?B:null)}),iV(e.dom,w,f)})},gV=(e,n,r,f,w)=>{const B=w.parentNode;Xm(e,B,r,f)&&jC(e,n,f,w)||n.merge_with_parents&&B&&e.dom.getParent(B,Z=>Xm(e,Z,r,f)?(jC(e,n,f,w),!0):!1)},Xk=ur.each,pV=(e,n,r,f)=>{if(mT(e)&&$i(n)&&r.parentNode){const w=I3(e.schema),B=Iz(jt.fromDom(r),Z=>Mu(Z.dom));return ft(w,f)&&Za(jt.fromDom(r.parentNode),!1)&&!B}else return!1},f7=(e,n,r,f)=>{if(Xk(r.styles,(w,B)=>{e.setStyle(n,B,od(w,f))}),r.styles){const w=e.getAttrib(n,"style");w&&e.setAttrib(n,"data-mce-style",w)}},d7=(e,n,r,f)=>{const w=e.formatter.get(n),B=w[0],Z=!f&&e.selection.isCollapsed(),oe=e.dom,be=e.selection,Pe=(Ht,At=B)=>{R(At.onformat)&&At.onformat(Ht,At,r,f),f7(oe,Ht,At,r),Xk(At.attributes,(It,ln)=>{oe.setAttrib(Ht,ln,od(It,r))}),Xk(At.classes,It=>{const ln=od(It,r);oe.hasClass(Ht,ln)||oe.addClass(Ht,ln)})},Ke=(Ht,At)=>{let It=!1;return Xk(Ht,ln=>El(ln)?oe.getContentEditable(At)==="false"&&!ln.ceFalseOverride||k(ln.collapsed)&&ln.collapsed!==Z?!0:oe.is(At,ln.selector)&&!Mu(At)?(Pe(At,ln),It=!0,!1):!0:!1),It},Je=Ht=>{if(C(Ht)){const At=oe.create(Ht);return Pe(At),At}else return null},at=(Ht,At,It)=>{const ln=[];let xn=!0;const yn=B.inline||B.block,$n=Je(yn),nr=zn=>ox(B)&&Xm(e,zn,n,r),mr=(zn,Nn,er)=>{const Qr=Ov(B)&&Fi(e.schema,zn)&&Bh(e,Nn,yn);return er&&Qr},Nr=(zn,Nn,er,Qr)=>{const ho=zn.nodeName.toLowerCase(),na=Bh(e,yn,ho)&&Bh(e,Nn,yn),ca=!It&&ir(zn)&&Ae(zn.data),os=Mu(zn),ka=!$i(B)||!Ht.isBlock(zn);return(er||Qr)&&na&&!ca&&!os&&ka};W1(Ht,At,zn=>{let Nn;const er=Qr=>{let ho=!1,na=xn,ca=!1;const os=Qr.parentNode,ka=os.nodeName.toLowerCase(),ei=Ht.getContentEditable(Qr);k(ei)&&(na=xn,xn=ei==="true",ho=!0,ca=I1(e,Qr));const zl=xn&&!ho;if(Ja(Qr)&&!pV(e,B,Qr,ka)){Nn=null,ad(B)&&Ht.remove(Qr);return}if(nr(Qr)){Nn=null;return}if(mr(Qr,ka,zl)){const as=Ht.rename(Qr,yn);Pe(as),ln.push(as),Nn=null;return}if(El(B)){let as=Ke(w,Qr);if(!as&&k(os)&&F1(B)&&(as=Ke(w,os)),!$i(B)||as){Nn=null;return}}k($n)&&Nr(Qr,ka,zl,ca)?(Nn||(Nn=Ht.clone($n,!1),os.insertBefore(Nn,Qr),ln.push(Nn)),ca&&ho&&(xn=na),Nn.appendChild(Qr)):(Nn=null,ie(tt(Qr.childNodes),er),ho&&(xn=na),Nn=null)};ie(zn,er)}),B.links===!0&&ie(ln,zn=>{const Nn=er=>{er.nodeName==="A"&&Pe(er,B),ie(tt(er.childNodes),Nn)};Nn(zn)}),ie(ln,zn=>{const Nn=ho=>{let na=0;return ie(ho.childNodes,ca=>{!nf(ca)&&!Eu(ca)&&na++}),na},er=ho=>de(ho.childNodes,oC).filter(ca=>Ht.getContentEditable(ca)!=="false"&&UC(Ht,ca,B)).map(ca=>{const os=Ht.clone(ca,!1);return Pe(os),Ht.replace(os,ho,!0),Ht.remove(ca,!0),os}).getOr(ho),Qr=Nn(zn);if((ln.length>1||!Ht.isBlock(zn))&&Qr===0){Ht.remove(zn,!0);return}($i(B)||ad(B)&&B.wrapper)&&(!B.exact&&Qr===1&&(zn=er(zn)),mV(e,w,r,zn),gV(e,B,n,r,zn),dV(Ht,B,r,zn),fV(Ht,B,r,zn),hV(Ht,B,r,zn),jk(e,B,r,zn))})},Rt=O1(f)?f:be.getNode();if(oe.getContentEditable(Rt)==="false"&&!I1(e,Rt)){f=Rt,Ke(w,f),Bl(e,n,f,r);return}if(B){if(f)if(O1(f)){if(!Ke(w,f)){const Ht=oe.createRng();Ht.setStartBefore(f),Ht.setEndAfter(f),at(oe,Hh(oe,Ht,w),!0)}}else at(oe,f,!0);else!Z||!$i(B)||Dv(e).length?(be.setRng(Tx(be.getRng())),P1(e,()=>{Um(e,(Ht,At)=>{const It=At?Ht:Hh(oe,Ht,w);at(oe,It,!1)})},fe),e.nodeChanged()):oV(e,n,r),O5(e.formatter,n).each(Ht=>{ie(sV(e.selection),At=>f7(oe,At,Ht,r))});$5(n,e)}Bl(e,n,f,r)},h7=(e,n,r,f)=>{(f||e.selection.isEditable())&&d7(e,n,r,f)},ly=e=>lt(e,"vars"),vV=(e,n)=>{e.set({}),n.on("NodeChange",r=>{z5(n,r.element,e.get())}),n.on("FormatApply FormatRemove",r=>{const f=X.from(r.node).map(w=>O1(w)?w:w.startContainer).bind(w=>Gr(w)?X.some(w):X.from(w.parentElement)).getOrThunk(()=>m7(n));z5(n,f,e.get())})},m7=e=>e.selection.getStart(),g7=(e,n,r,f,w)=>Te(n,oe=>{const be=e.formatter.matchNode(oe,r,w??{},f);return!N(be)},oe=>U8(e,oe,r)?!0:f?!1:k(e.formatter.matchNode(oe,r,w,!0))),p7=(e,n)=>{const r=n??m7(e);return ue(N1(e.dom,r),f=>Gr(f)&&!Ju(f))},z5=(e,n,r)=>{const f=p7(e,n);Ft(r,(w,B)=>{const Z=oe=>{const be=g7(e,f,B,oe.similar,ly(oe)?oe.vars:void 0),Pe=be.isSome();if(oe.state.get()!==Pe){oe.state.set(Pe);const Ke=be.getOr(n);ly(oe)?oe.callback(Pe,{node:Ke,format:B,parents:f}):ie(oe.callbacks,Je=>Je(Pe,{node:Ke,format:B,parents:f}))}};ie([w.withSimilar,w.withoutSimilar],Z),ie(w.withVars,Z)})},yV=(e,n,r,f,w,B)=>{const Z=n.get();ie(r.split(","),oe=>{const be=wn(Z,oe).getOrThunk(()=>{const Ke={withSimilar:{state:Us(!1),similar:!0,callbacks:[]},withoutSimilar:{state:Us(!1),similar:!1,callbacks:[]},withVars:[]};return Z[oe]=Ke,Ke}),Pe=()=>{const Ke=p7(e);return g7(e,Ke,oe,w,B).isSome()};if(N(B)){const Ke=w?be.withSimilar:be.withoutSimilar;Ke.callbacks.push(f),Ke.callbacks.length===1&&Ke.state.set(Pe())}else be.withVars.push({state:Us(Pe()),similar:w,vars:B,callback:f})}),n.set(Z)},bV=(e,n,r)=>{const f=e.get();ie(n.split(","),w=>wn(f,w).each(B=>{f[w]={withSimilar:{...B.withSimilar,callbacks:ue(B.withSimilar.callbacks,Z=>Z!==r)},withoutSimilar:{...B.withoutSimilar,callbacks:ue(B.withoutSimilar.callbacks,Z=>Z!==r)},withVars:ue(B.withVars,Z=>Z.callback!==r)}})),e.set(f)},xV=(e,n,r,f,w,B)=>(yV(e,n,r,f,w,B),{unbind:()=>bV(n,r,f)}),wV=(e,n,r,f)=>{const w=e.formatter.get(n);w&&(Hk(e,n,r,f)&&(!("toggle"in w[0])||w[0].toggle)?c7(e,n,r,f):h7(e,n,r,f))},v7=ur.explode,y7=()=>{const e={};return{addFilter:(w,B)=>{ie(v7(w),Z=>{lt(e,Z)||(e[Z]={name:Z,callbacks:[]}),e[Z].callbacks.push(B)})},getFilters:()=>Wn(e),removeFilter:(w,B)=>{ie(v7(w),Z=>{if(lt(e,Z))if(k(B)){const oe=e[Z],be=ue(oe.callbacks,Pe=>Pe!==B);be.length>0?oe.callbacks=be:delete e[Z]}else delete e[Z]})}}},CV=(e,n)=>{ie(n,r=>{e.attr(r,null)})},SV=(e,n,r)=>{e.addNodeFilter("font",f=>{ie(f,w=>{const B=n.parse(w.attr("style")),Z=w.attr("color"),oe=w.attr("face"),be=w.attr("size");Z&&(B.color=Z),oe&&(B["font-family"]=oe),be&&Bt(be).each(Pe=>{B["font-size"]=r[Pe-1]}),w.name="span",w.attr("style",n.serialize(B)),CV(w,["color","face","size"])})})},TV=(e,n,r)=>{e.addNodeFilter("strike",f=>{const w=n.type!=="html4";ie(f,B=>{if(w)B.name="s";else{const Z=r.parse(B.attr("style"));Z["text-decoration"]="line-through",B.name="span",B.attr("style",r.serialize(Z))}})})},kV=(e,n,r)=>{var f;const w=hb();n.convert_fonts_to_spans&&SV(e,w,ur.explode((f=n.font_size_legacy_values)!==null&&f!==void 0?f:"")),TV(e,r,w)},V5=(e,n,r)=>{n.inline_styles&&kV(e,n,r)},U5=(e,n,r)=>{n.addNodeFilter("br",(f,w,B)=>{const Z=ur.extend({},r.getBlockElements()),oe=r.getNonEmptyElements(),be=r.getWhitespaceElements();Z.body=1;const Pe=Ke=>Ke.name in Z||kh(r,Ke);for(let Ke=0,Je=f.length;Kefetch(e).then(n=>n.ok?n.blob():Promise.reject()).catch(()=>Promise.reject({message:`Cannot convert ${e} to Blob. Resource might not exist or is inaccessible.`,uriType:"blob"})),YC=e=>{const n=/([a-z0-9+\/=\s]+)/i.exec(e);return n?n[1]:""},Jk=e=>{const[n,...r]=e.split(","),f=r.join(","),w=/data:([^/]+\/[^;]+)(;.+)?/.exec(n);if(w){const B=w[2]===";base64",Z=B?YC(f):decodeURIComponent(f);return X.some({type:w[1],data:Z,base64Encoded:B})}else return X.none()},$x=(e,n,r=!0)=>{let f=n;if(r)try{f=atob(n)}catch{return X.none()}const w=new Uint8Array(f.length);for(let B=0;Bnew Promise((n,r)=>{Jk(e).bind(({type:f,data:w,base64Encoded:B})=>$x(f,w,B)).fold(()=>r("Invalid data URI"),n)}),b7=e=>wr(e,"blob:")?mee(e):wr(e,"data:")?KC(e):Promise.reject("Unknown URI format"),AV=e=>new Promise((n,r)=>{const f=new FileReader;f.onloadend=()=>{n(f.result)},f.onerror=()=>{var w;r((w=f.error)===null||w===void 0?void 0:w.message)},f.readAsDataURL(e)});let MV=0;const gee=e=>(e||"blobid")+MV++,x7=(e,n,r)=>Jk(e).bind(({data:f,type:w,base64Encoded:B})=>{if(n&&!B)return X.none();{const Z=B?f:btoa(f);return r(Z,w)}}),w7=(e,n,r)=>{const f=e.create(gee(),n,r);return e.add(f),f},EV=(e,n,r=!1)=>x7(n,r,(f,w)=>X.from(e.getByData(f,w)).orThunk(()=>$x(w,f).map(B=>w7(e,B,f)))),_V=(e,n)=>{const r=()=>Promise.reject("Invalid data URI");if(wr(n,"blob:")){const f=e.getByUri(n);return k(f)?Promise.resolve(f):b7(n).then(w=>AV(w).then(B=>x7(B,!1,Z=>X.some(w7(e,w,Z))).getOrThunk(r)))}else return wr(n,"data:")?EV(e,n).fold(r,f=>Promise.resolve(f)):Promise.reject("Unknown image data format")},C7=e=>k(e.attr("data-mce-bogus")),RV=e=>e.attr("src")===Lr.transparentSrc||k(e.attr("data-mce-placeholder")),S7=(e,n)=>{const{blob_cache:r}=n;if(r){const f=w=>{const B=w.attr("src");RV(w)||C7(w)||M(B)||EV(r,B,!0).each(Z=>{w.attr("src",Z.blobUri())})};e.addAttributeFilter("src",w=>ie(w,f))}},W5=(e,n)=>wr(e,`${n}/`),Qk=(e,n,r,f,w)=>{let B;N(e)?B="iframe":W5(e,"image")?B="img":W5(e,"video")?B="video":W5(e,"audio")?B="audio":B="iframe";const Z=new Hc(B,1);return Z.attr(B==="audio"?{src:n}:{src:n,width:r,height:f}),(B==="audio"||B==="video")&&Z.attr("controls",""),B==="iframe"&&w&&Z.attr("sandbox",""),Z},T7=(e,n)=>{const r=e.schema;n.remove_trailing_brs&&U5(n,e,r),e.addAttributeFilter("href",w=>{let B=w.length;const Z=be=>be.split(" ").filter(Ke=>Ke.length>0).concat(["noopener"]).sort().join(" "),oe=be=>{const Pe=be?ur.trim(be):"";return/\b(noopener)\b/g.test(Pe)?Pe:Z(Pe)};if(!n.allow_unsafe_link_target)for(;B--;){const be=w[B];be.name==="a"&&be.attr("target")==="_blank"&&be.attr("rel",oe(be.attr("rel")))}}),n.allow_html_in_named_anchor||e.addAttributeFilter("id,name",w=>{let B=w.length,Z,oe,be,Pe;for(;B--;)if(Pe=w[B],Pe.name==="a"&&Pe.firstChild&&!Pe.attr("href"))for(be=Pe.parent,Z=Pe.lastChild;Z&&be;)oe=Z.prev,be.insert(Z,Pe),Z=oe}),n.fix_list_elements&&e.addNodeFilter("ul,ol",w=>{let B=w.length,Z,oe;for(;B--;)if(Z=w[B],oe=Z.parent,oe&&(oe.name==="ul"||oe.name==="ol"))if(Z.prev&&Z.prev.name==="li")Z.prev.append(Z);else{const be=new Hc("li",1);be.attr("style","list-style-type: none"),Z.wrap(be)}});const f=r.getValidClasses();n.validate&&f&&e.addAttributeFilter("class",w=>{var B;let Z=w.length;for(;Z--;){const oe=w[Z],be=(B=oe.attr("class"))!==null&&B!==void 0?B:"",Pe=ur.explode(be," ");let Ke="";for(let Je=0;Jeie(w,B=>{B.replace(Qk(B.attr("type"),B.name==="object"?B.attr("data"):B.attr("src"),B.attr("width"),B.attr("height"),n.sandbox_iframes))})),n.sandbox_iframes&&e.addNodeFilter("iframe",w=>ie(w,B=>B.attr("sandbox","")))},{entries:Qi,setPrototypeOf:LV,isFrozen:pee,getPrototypeOf:vee,getOwnPropertyDescriptor:yee}=Object;let{freeze:Bi,seal:Lf,create:Zv}=Object,{apply:eg,construct:G5}=typeof Reflect<"u"&&Reflect;eg||(eg=function(n,r,f){return n.apply(r,f)}),Bi||(Bi=function(n){return n}),Lf||(Lf=function(n){return n}),G5||(G5=function(n,r){return new n(...r)});const DV=jd(Array.prototype.forEach),Ox=jd(Array.prototype.pop),tg=jd(Array.prototype.push),hp=jd(String.prototype.toLowerCase),qk=jd(String.prototype.toString),Z5=jd(String.prototype.match),Zd=jd(String.prototype.replace),k7=jd(String.prototype.indexOf),$V=jd(String.prototype.trim),ld=jd(RegExp.prototype.test),Px=OV(TypeError);function jd(e){return function(n){for(var r=arguments.length,f=new Array(r>1?r-1:0),w=1;w/gm),D7=Lf(/\${[\w\W]*}/gm),$7=Lf(/^data-[\-\w.\u00B7-\uFFFF]/),O7=Lf(/^aria-[\-\w]+$/),P7=Lf(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),PV=Lf(/^(?:\w+script|data):/i),IV=Lf(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),tA=Lf(/^html$/i);var Nx=Object.freeze({__proto__:null,MUSTACHE_EXPR:R7,ERB_EXPR:L7,TMPLIT_EXPR:D7,DATA_ATTR:$7,ARIA_ATTR:O7,IS_ALLOWED_URI:P7,IS_SCRIPT_OR_DATA:PV,ATTR_WHITESPACE:IV,DOCTYPE_NAME:tA});const I7=()=>typeof window>"u"?null:window,N7=function(n,r){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let f=null;const w="data-tt-policy-suffix";r&&r.hasAttribute(w)&&(f=r.getAttribute(w));const B="dompurify"+(f?"#"+f:"");try{return n.createPolicy(B,{createHTML(Z){return Z},createScriptURL(Z){return Z}})}catch{return console.warn("TrustedTypes policy "+B+" could not be created."),null}};function JC(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I7();const n=la=>JC(la);if(n.version="3.0.5",n.removed=[],!e||!e.document||e.document.nodeType!==9)return n.isSupported=!1,n;const r=e.document,f=r.currentScript;let{document:w}=e;const{DocumentFragment:B,HTMLTemplateElement:Z,Node:oe,Element:be,NodeFilter:Pe,NamedNodeMap:Ke=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:Je,DOMParser:at,trustedTypes:Rt}=e,Ht=be.prototype,At=eA(Ht,"cloneNode"),It=eA(Ht,"nextSibling"),ln=eA(Ht,"childNodes"),xn=eA(Ht,"parentNode");if(typeof Z=="function"){const la=w.createElement("template");la.content&&la.content.ownerDocument&&(w=la.content.ownerDocument)}let yn,$n="";const{implementation:nr,createNodeIterator:mr,createDocumentFragment:Nr,getElementsByTagName:zn}=w,{importNode:Nn}=r;let er={};n.isSupported=typeof Qi=="function"&&typeof xn=="function"&&nr&&nr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Qr,ERB_EXPR:ho,TMPLIT_EXPR:na,DATA_ATTR:ca,ARIA_ATTR:os,IS_SCRIPT_OR_DATA:ka,ATTR_WHITESPACE:ei}=Nx;let{IS_ALLOWED_URI:zl}=Nx,as=null;const Sr=cs({},[...j5,...Y5,...cy,...K5,...E7]);let so=null;const $a=cs({},[...X5,...J5,..._7,...XC]);let ha=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),to=null,Lo=null,vr=!0,Oo=!0,Aa=!1,ps=!0,us=!1,ml=!1,th=!1,cf=!1,iu=!1,pd=!1,zo=!1,Oa=!0,vs=!1;const Gs="user-content-";let $s=!0,Iu=!1,nh={},xp=null;const eE=cs({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let JS=null;const tE=cs({},["audio","video","img","source","image","track"]);let m2=null;const nE=cs({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),g2="http://www.w3.org/1998/Math/MathML",g0="http://www.w3.org/2000/svg",rh="http://www.w3.org/1999/xhtml";let em=rh,p2=!1,Ey=null;const QS=cs({},[g2,g0,rh],qk);let tm;const rE=["application/xhtml+xml","text/html"],qS="text/html";let fc,_y=null;const LF=w.createElement("form"),oE=function(Fn){return Fn instanceof RegExp||Fn instanceof Function},e3=function(Fn){if(!(_y&&_y===Fn)){if((!Fn||typeof Fn!="object")&&(Fn={}),Fn=Ix(Fn),tm=rE.indexOf(Fn.PARSER_MEDIA_TYPE)===-1?tm=qS:tm=Fn.PARSER_MEDIA_TYPE,fc=tm==="application/xhtml+xml"?qk:hp,as="ALLOWED_TAGS"in Fn?cs({},Fn.ALLOWED_TAGS,fc):Sr,so="ALLOWED_ATTR"in Fn?cs({},Fn.ALLOWED_ATTR,fc):$a,Ey="ALLOWED_NAMESPACES"in Fn?cs({},Fn.ALLOWED_NAMESPACES,qk):QS,m2="ADD_URI_SAFE_ATTR"in Fn?cs(Ix(nE),Fn.ADD_URI_SAFE_ATTR,fc):nE,JS="ADD_DATA_URI_TAGS"in Fn?cs(Ix(tE),Fn.ADD_DATA_URI_TAGS,fc):tE,xp="FORBID_CONTENTS"in Fn?cs({},Fn.FORBID_CONTENTS,fc):eE,to="FORBID_TAGS"in Fn?cs({},Fn.FORBID_TAGS,fc):{},Lo="FORBID_ATTR"in Fn?cs({},Fn.FORBID_ATTR,fc):{},nh="USE_PROFILES"in Fn?Fn.USE_PROFILES:!1,vr=Fn.ALLOW_ARIA_ATTR!==!1,Oo=Fn.ALLOW_DATA_ATTR!==!1,Aa=Fn.ALLOW_UNKNOWN_PROTOCOLS||!1,ps=Fn.ALLOW_SELF_CLOSE_IN_ATTR!==!1,us=Fn.SAFE_FOR_TEMPLATES||!1,ml=Fn.WHOLE_DOCUMENT||!1,iu=Fn.RETURN_DOM||!1,pd=Fn.RETURN_DOM_FRAGMENT||!1,zo=Fn.RETURN_TRUSTED_TYPE||!1,cf=Fn.FORCE_BODY||!1,Oa=Fn.SANITIZE_DOM!==!1,vs=Fn.SANITIZE_NAMED_PROPS||!1,$s=Fn.KEEP_CONTENT!==!1,Iu=Fn.IN_PLACE||!1,zl=Fn.ALLOWED_URI_REGEXP||P7,em=Fn.NAMESPACE||rh,ha=Fn.CUSTOM_ELEMENT_HANDLING||{},Fn.CUSTOM_ELEMENT_HANDLING&&oE(Fn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ha.tagNameCheck=Fn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Fn.CUSTOM_ELEMENT_HANDLING&&oE(Fn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ha.attributeNameCheck=Fn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Fn.CUSTOM_ELEMENT_HANDLING&&typeof Fn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ha.allowCustomizedBuiltInElements=Fn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),us&&(Oo=!1),pd&&(iu=!0),nh&&(as=cs({},[...E7]),so=[],nh.html===!0&&(cs(as,j5),cs(so,X5)),nh.svg===!0&&(cs(as,Y5),cs(so,J5),cs(so,XC)),nh.svgFilters===!0&&(cs(as,cy),cs(so,J5),cs(so,XC)),nh.mathMl===!0&&(cs(as,K5),cs(so,_7),cs(so,XC))),Fn.ADD_TAGS&&(as===Sr&&(as=Ix(as)),cs(as,Fn.ADD_TAGS,fc)),Fn.ADD_ATTR&&(so===$a&&(so=Ix(so)),cs(so,Fn.ADD_ATTR,fc)),Fn.ADD_URI_SAFE_ATTR&&cs(m2,Fn.ADD_URI_SAFE_ATTR,fc),Fn.FORBID_CONTENTS&&(xp===eE&&(xp=Ix(xp)),cs(xp,Fn.FORBID_CONTENTS,fc)),$s&&(as["#text"]=!0),ml&&cs(as,["html","head","body"]),as.table&&(cs(as,["tbody"]),delete to.tbody),Fn.TRUSTED_TYPES_POLICY){if(typeof Fn.TRUSTED_TYPES_POLICY.createHTML!="function")throw Px('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Fn.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Px('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');yn=Fn.TRUSTED_TYPES_POLICY,$n=yn.createHTML("")}else yn===void 0&&(yn=N7(Rt,f)),yn!==null&&typeof $n=="string"&&($n=yn.createHTML(""));Bi&&Bi(Fn),_y=Fn}},ug=cs({},["mi","mo","mn","ms","mtext"]),v2=cs({},["foreignobject","desc","title","annotation-xml"]),On=cs({},["title","style","font","a","script"]),Pn=cs({},Y5);cs(Pn,cy),cs(Pn,A7);const yr=cs({},K5);cs(yr,M7);const dr=function(Fn){let ao=xn(Fn);(!ao||!ao.tagName)&&(ao={namespaceURI:em,tagName:"template"});const Ao=hp(Fn.tagName),ki=hp(ao.tagName);return Ey[Fn.namespaceURI]?Fn.namespaceURI===g0?ao.namespaceURI===rh?Ao==="svg":ao.namespaceURI===g2?Ao==="svg"&&(ki==="annotation-xml"||ug[ki]):!!Pn[Ao]:Fn.namespaceURI===g2?ao.namespaceURI===rh?Ao==="math":ao.namespaceURI===g0?Ao==="math"&&v2[ki]:!!yr[Ao]:Fn.namespaceURI===rh?ao.namespaceURI===g0&&!v2[ki]||ao.namespaceURI===g2&&!ug[ki]?!1:!yr[Ao]&&(On[Ao]||!Pn[Ao]):!!(tm==="application/xhtml+xml"&&Ey[Fn.namespaceURI]):!1},uo=function(Fn){tg(n.removed,{element:Fn});try{Fn.parentNode.removeChild(Fn)}catch{Fn.remove()}},ua=function(Fn,ao){try{tg(n.removed,{attribute:ao.getAttributeNode(Fn),from:ao})}catch{tg(n.removed,{attribute:null,from:ao})}if(ao.removeAttribute(Fn),Fn==="is"&&!so[Fn])if(iu||pd)try{uo(ao)}catch{}else try{ao.setAttribute(Fn,"")}catch{}},Fs=function(Fn){let ao,Ao;if(cf)Fn=""+Fn;else{const Ff=Z5(Fn,/^[\r\n\t ]+/);Ao=Ff&&Ff[0]}tm==="application/xhtml+xml"&&em===rh&&(Fn=''+Fn+"");const ki=yn?yn.createHTML(Fn):Fn;if(em===rh)try{ao=new at().parseFromString(ki,tm)}catch{}if(!ao||!ao.documentElement){ao=nr.createDocument(em,"template",null);try{ao.documentElement.innerHTML=p2?$n:ki}catch{}}const kc=ao.body||ao.documentElement;return Fn&&Ao&&kc.insertBefore(w.createTextNode(Ao),kc.childNodes[0]||null),em===rh?zn.call(ao,ml?"html":"body")[0]:ml?ao.documentElement:kc},Nu=function(Fn){return mr.call(Fn.ownerDocument||Fn,Fn,Pe.SHOW_ELEMENT|Pe.SHOW_COMMENT|Pe.SHOW_TEXT,null,!1)},Vl=function(Fn){return Fn instanceof Je&&(typeof Fn.nodeName!="string"||typeof Fn.textContent!="string"||typeof Fn.removeChild!="function"||!(Fn.attributes instanceof Ke)||typeof Fn.removeAttribute!="function"||typeof Fn.setAttribute!="function"||typeof Fn.namespaceURI!="string"||typeof Fn.insertBefore!="function"||typeof Fn.hasChildNodes!="function")},Ry=function(Fn){return typeof oe=="object"?Fn instanceof oe:Fn&&typeof Fn=="object"&&typeof Fn.nodeType=="number"&&typeof Fn.nodeName=="string"},vd=function(Fn,ao,Ao){er[Fn]&&DV(er[Fn],ki=>{ki.call(n,ao,Ao,_y)})},DF=function(Fn){let ao;if(vd("beforeSanitizeElements",Fn,null),Vl(Fn))return uo(Fn),!0;const Ao=fc(Fn.nodeName);if(vd("uponSanitizeElement",Fn,{tagName:Ao,allowedTags:as}),Fn.hasChildNodes()&&!Ry(Fn.firstElementChild)&&(!Ry(Fn.content)||!Ry(Fn.content.firstElementChild))&&ld(/<[/\w]/g,Fn.innerHTML)&&ld(/<[/\w]/g,Fn.textContent))return uo(Fn),!0;if(!as[Ao]||to[Ao]){if(!to[Ao]&&OF(Ao)&&(ha.tagNameCheck instanceof RegExp&&ld(ha.tagNameCheck,Ao)||ha.tagNameCheck instanceof Function&&ha.tagNameCheck(Ao)))return!1;if($s&&!xp[Ao]){const ki=xn(Fn)||Fn.parentNode,kc=ln(Fn)||Fn.childNodes;if(kc&&ki){const Ff=kc.length;for(let gl=Ff-1;gl>=0;--gl)ki.insertBefore(At(kc[gl],!0),It(Fn))}}return uo(Fn),!0}return Fn instanceof be&&!dr(Fn)||(Ao==="noscript"||Ao==="noembed"||Ao==="noframes")&&ld(/<\/no(script|embed|frames)/i,Fn.innerHTML)?(uo(Fn),!0):(us&&Fn.nodeType===3&&(ao=Fn.textContent,ao=Zd(ao,Qr," "),ao=Zd(ao,ho," "),ao=Zd(ao,na," "),Fn.textContent!==ao&&(tg(n.removed,{element:Fn.cloneNode()}),Fn.textContent=ao)),vd("afterSanitizeElements",Fn,null),!1)},$F=function(Fn,ao,Ao){if(Oa&&(ao==="id"||ao==="name")&&(Ao in w||Ao in LF))return!1;if(!(Oo&&!Lo[ao]&&ld(ca,ao))){if(!(vr&&ld(os,ao))){if(!so[ao]||Lo[ao]){if(!(OF(Fn)&&(ha.tagNameCheck instanceof RegExp&&ld(ha.tagNameCheck,Fn)||ha.tagNameCheck instanceof Function&&ha.tagNameCheck(Fn))&&(ha.attributeNameCheck instanceof RegExp&&ld(ha.attributeNameCheck,ao)||ha.attributeNameCheck instanceof Function&&ha.attributeNameCheck(ao))||ao==="is"&&ha.allowCustomizedBuiltInElements&&(ha.tagNameCheck instanceof RegExp&&ld(ha.tagNameCheck,Ao)||ha.tagNameCheck instanceof Function&&ha.tagNameCheck(Ao))))return!1}else if(!m2[ao]){if(!ld(zl,Zd(Ao,ei,""))){if(!((ao==="src"||ao==="xlink:href"||ao==="href")&&Fn!=="script"&&k7(Ao,"data:")===0&&JS[Fn])){if(!(Aa&&!ld(ka,Zd(Ao,ei,"")))){if(Ao)return!1}}}}}}return!0},OF=function(Fn){return Fn.indexOf("-")>0},d6=function(Fn){let ao,Ao,ki,kc;vd("beforeSanitizeAttributes",Fn,null);const{attributes:Ff}=Fn;if(!Ff)return;const gl={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:so};for(kc=Ff.length;kc--;){ao=Ff[kc];const{name:oh,namespaceURI:aE}=ao;Ao=oh==="value"?ao.value:$V(ao.value);const TJ=Ao;if(ki=fc(oh),gl.attrName=ki,gl.attrValue=Ao,gl.keepAttr=!0,gl.forceKeepAttr=void 0,vd("uponSanitizeAttribute",Fn,gl),Ao=gl.attrValue,gl.forceKeepAttr)continue;if(!gl.keepAttr){ua(oh,Fn);continue}if(!ps&&ld(/\/>/i,Ao)){ua(oh,Fn);continue}us&&(Ao=Zd(Ao,Qr," "),Ao=Zd(Ao,ho," "),Ao=Zd(Ao,na," "));const PF=fc(Fn.nodeName);if(!$F(PF,ki,Ao)){ua(oh,Fn);continue}if(vs&&(ki==="id"||ki==="name")&&(ua(oh,Fn),Ao=Gs+Ao),yn&&typeof Rt=="object"&&typeof Rt.getAttributeType=="function"&&!aE)switch(Rt.getAttributeType(PF,ki)){case"TrustedHTML":{Ao=yn.createHTML(Ao);break}case"TrustedScriptURL":{Ao=yn.createScriptURL(Ao);break}}if(Ao!==TJ)try{aE?Fn.setAttributeNS(aE,oh,Ao):Fn.setAttribute(oh,Ao)}catch{ua(oh,Fn)}}vd("afterSanitizeAttributes",Fn,null)},SJ=function la(Fn){let ao;const Ao=Nu(Fn);for(vd("beforeSanitizeShadowDOM",Fn,null);ao=Ao.nextNode();)vd("uponSanitizeShadowNode",ao,null),!DF(ao)&&(ao.content instanceof B&&la(ao.content),d6(ao));vd("afterSanitizeShadowDOM",Fn,null)};return n.sanitize=function(la){let Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ao,Ao,ki,kc;if(p2=!la,p2&&(la=""),typeof la!="string"&&!Ry(la))if(typeof la.toString=="function"){if(la=la.toString(),typeof la!="string")throw Px("dirty is not a string, aborting")}else throw Px("toString is not a function");if(!n.isSupported)return la;if(th||e3(Fn),n.removed=[],typeof la=="string"&&(Iu=!1),Iu){if(la.nodeName){const oh=fc(la.nodeName);if(!as[oh]||to[oh])throw Px("root node is forbidden and cannot be sanitized in-place")}}else if(la instanceof oe)ao=Fs(""),Ao=ao.ownerDocument.importNode(la,!0),Ao.nodeType===1&&Ao.nodeName==="BODY"||Ao.nodeName==="HTML"?ao=Ao:ao.appendChild(Ao);else{if(!iu&&!us&&!ml&&la.indexOf("<")===-1)return yn&&zo?yn.createHTML(la):la;if(ao=Fs(la),!ao)return iu?null:zo?$n:""}ao&&cf&&uo(ao.firstChild);const Ff=Nu(Iu?la:ao);for(;ki=Ff.nextNode();)DF(ki)||(ki.content instanceof B&&SJ(ki.content),d6(ki));if(Iu)return la;if(iu){if(pd)for(kc=Nr.call(ao.ownerDocument);ao.firstChild;)kc.appendChild(ao.firstChild);else kc=ao;return(so.shadowroot||so.shadowrootmode)&&(kc=Nn.call(r,kc,!0)),kc}let gl=ml?ao.outerHTML:ao.innerHTML;return ml&&as["!doctype"]&&ao.ownerDocument&&ao.ownerDocument.doctype&&ao.ownerDocument.doctype.name&&ld(tA,ao.ownerDocument.doctype.name)&&(gl=" -`+gl),us&&(gl=Zd(gl,Qr," "),gl=Zd(gl,ho," "),gl=Zd(gl,na," ")),yn&&zo?yn.createHTML(gl):gl},n.setConfig=function(la){e3(la),th=!0},n.clearConfig=function(){_y=null,th=!1},n.isValidAttribute=function(la,Fn,ao){_y||e3({});const Ao=fc(la),ki=fc(Fn);return $F(Ao,ki,ao)},n.addHook=function(la,Fn){typeof Fn=="function"&&(er[la]=er[la]||[],tg(er[la],Fn))},n.removeHook=function(la){if(er[la])return Ox(er[la])},n.removeHooks=function(la){er[la]&&(er[la]=[])},n.removeAllHooks=function(){er={}},n}var F7=JC();const B7=ur.each,jv=ur.trim,Q5=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],H7={ftp:21,http:80,https:443,mailto:25},QC=["img","video"],z7=(e,n)=>k(e)?!e:k(n)?!Ve(QC,n):!0,q5=e=>{try{return decodeURIComponent(e)}catch{return unescape(e)}},eR=(e,n,r)=>{const f=q5(n).replace(/\s/g,"");return e.allow_script_urls?!1:/((java|vb)script|mhtml):/i.test(f)?!0:e.allow_html_data_urls?!1:/^data:image\//i.test(f)?z7(e.allow_svg_data_urls,r)&&/^data:image\/svg\+xml/i.test(f):/^data:/i.test(f)};class cd{static parseDataUri(n){let r;const f=decodeURIComponent(n).split(","),w=/data:([^;]+)/.exec(f[0]);return w&&(r=w[1]),{type:r,data:f[1]}}static isDomSafe(n,r,f={}){if(f.allow_script_urls)return!0;{const w=km.decode(n).replace(/[\s\u0000-\u001F]+/g,"");return!eR(f,w,r)}}static getDocumentBaseUrl(n){var r;let f;return n.protocol.indexOf("http")!==0&&n.protocol!=="file:"?f=(r=n.href)!==null&&r!==void 0?r:"":f=n.protocol+"//"+n.host+n.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(f)&&(f=f.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(f)||(f+="/")),f}constructor(n,r={}){this.path="",this.directory="",n=jv(n),this.settings=r;const f=r.base_uri,w=this;if(/^([\w\-]+):([^\/]{2})/i.test(n)||/^\s*#/.test(n)){w.source=n;return}const B=n.indexOf("//")===0;if(n.indexOf("/")===0&&!B&&(n=(f&&f.protocol||"http")+"://mce_host"+n),!/^[\w\-]*:?\/\//.test(n)){const oe=f?f.path:new cd(document.location.href).directory;if((f==null?void 0:f.protocol)==="")n="//mce_host"+w.toAbsPath(oe,n);else{const be=/([^#?]*)([#?]?.*)/.exec(n);be&&(n=(f&&f.protocol||"http")+"://mce_host"+w.toAbsPath(oe,be[1])+be[2])}}n=n.replace(/@@/g,"(mce_at)");const Z=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(n);Z&&B7(Q5,(oe,be)=>{let Pe=Z[be];Pe&&(Pe=Pe.replace(/\(mce_at\)/g,"@@")),w[oe]=Pe}),f&&(w.protocol||(w.protocol=f.protocol),w.userInfo||(w.userInfo=f.userInfo),!w.port&&w.host==="mce_host"&&(w.port=f.port),(!w.host||w.host==="mce_host")&&(w.host=f.host),w.source=""),B&&(w.protocol="")}setPath(n){const r=/^(.*?)\/?(\w+)?$/.exec(n);r&&(this.path=r[0],this.directory=r[1],this.file=r[2]),this.source="",this.getURI()}toRelative(n){if(n==="./")return n;const r=new cd(n,{base_uri:this});if(r.host!=="mce_host"&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&r.protocol!=="")return r.getURI();const f=this.getURI(),w=r.getURI();if(f===w||f.charAt(f.length-1)==="/"&&f.substr(0,f.length-1)===w)return f;let B=this.toRelPath(this.path,r.path);return r.query&&(B+="?"+r.query),r.anchor&&(B+="#"+r.anchor),B}toAbsolute(n,r){const f=new cd(n,{base_uri:this});return f.getURI(r&&this.isSameOrigin(f))}isSameOrigin(n){if(this.host==n.host&&this.protocol==n.protocol){if(this.port==n.port)return!0;const r=this.protocol?H7[this.protocol]:null;if(r&&(this.port||r)==(n.port||r))return!0}return!1}toRelPath(n,r){let f=0,w="",B,Z;const oe=n.substring(0,n.lastIndexOf("/")).split("/"),be=r.split("/");if(oe.length>=be.length){for(B=0,Z=oe.length;B=be.length||oe[B]!==be[B]){f=B+1;break}}if(oe.length=oe.length||oe[B]!==be[B]){f=B+1;break}}if(f===1)return r;for(B=0,Z=oe.length-(f-1);B{Je&&oe.push(Je)});const be=[];for(let Je=Z.length-1;Je>=0;Je--)if(!(Z[Je].length===0||Z[Je]===".")){if(Z[Je]===".."){f++;continue}if(f>0){f--;continue}be.push(Z[Je])}const Pe=oe.length-f;let Ke;return Pe<=0?Ke=ot(be).join("/"):Ke=oe.slice(0,Pe).join("/")+"/"+ot(be).join("/"),Ke.indexOf("/")!==0&&(Ke="/"+Ke),w&&Ke.lastIndexOf("/")!==Ke.length-1&&(Ke+=w),Ke}getURI(n=!1){let r;return(!this.source||n)&&(r="",n||(this.protocol?r+=this.protocol+"://":r+="//",this.userInfo&&(r+=this.userInfo+"@"),this.host&&(r+=this.host),this.port&&(r+=":"+this.port)),this.path&&(r+=this.path),this.query&&(r+="?"+this.query),this.anchor&&(r+="#"+this.anchor),this.source=r),this.source}}const NV=ur.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),tR="data-mce-type";let V7=0;const nA=(e,n,r,f,w)=>{var B,Z,oe,be;const Pe=n.validate,Ke=r.getSpecialElements();e.nodeType===Uf&&!n.allow_conditional_comments&&/^\[if/i.test((B=e.nodeValue)!==null&&B!==void 0?B:"")&&(e.nodeValue=" "+e.nodeValue);const Je=(Z=w==null?void 0:w.tagName)!==null&&Z!==void 0?Z:e.nodeName.toLowerCase();if(f!=="html"&&r.isValid(f)){k(w)&&(w.allowedTags[Je]=!0);return}if(e.nodeType!==wd||Je==="body")return;const at=jt.fromDom(e),Rt=Gu(at,tR),Ht=il(at,"data-mce-bogus");if(!Rt&&C(Ht)){Ht==="all"?Ua(at):Xu(at);return}const At=r.getElementRule(Je);if(Pe&&!At){lt(Ke,Je)?Ua(at):Xu(at);return}else k(w)&&(w.allowedTags[Je]=!0);if(Pe&&At&&!Rt){if(ie((oe=At.attributesForced)!==null&&oe!==void 0?oe:[],It=>{ws(at,It.name,It.value==="{$uid}"?`mce_${V7++}`:It.value)}),ie((be=At.attributesDefault)!==null&&be!==void 0?be:[],It=>{Gu(at,It.name)||ws(at,It.name,It.value==="{$uid}"?`mce_${V7++}`:It.value)}),At.attributesRequired&&!Oe(At.attributesRequired,It=>Gu(at,It))){Xu(at);return}if(At.removeEmptyAttrs&&Zu(at)){Xu(at);return}At.outputName&&At.outputName!==Je&&Qf(at,At.outputName)}},FV=(e,n,r,f,w)=>{const B=e.tagName.toLowerCase(),{attrName:Z,attrValue:oe}=w;w.keepAttr=nR(n,r,f,B,Z,oe),w.keepAttr?(w.allowedAttributes[Z]=!0,W7(Z,r)&&(w.attrValue=Z),n.allow_svg_data_urls&&wr(oe,"data:image/svg+xml")&&(w.forceKeepAttr=!0)):U7(e,Z)&&(w.forceKeepAttr=!0)},nR=(e,n,r,f,w,B)=>r!=="html"&&!nc(f)?!0:!(w in NV&&eR(e,B,f))&&(!e.validate||n.isValid(f,w)||wr(w,"data-")||wr(w,"aria-")),U7=(e,n)=>e.hasAttribute(tR)&&(n==="id"||n==="class"||n==="style"),W7=(e,n)=>e in n.getBoolAttrs(),BV=(e,n,r,f)=>{const{attributes:w}=e;for(let B=w.length-1;B>=0;B--){const Z=w[B],oe=Z.name,be=Z.value;!nR(n,r,f,e.tagName.toLowerCase(),oe,be)&&!U7(e,oe)?e.removeAttribute(oe):W7(oe,r)&&e.setAttribute(oe,oe)}},HV=(e,n,r)=>{const f=F7();return f.addHook("uponSanitizeElement",(w,B)=>{nA(w,e,n,r.track(w),B)}),f.addHook("uponSanitizeAttribute",(w,B)=>{FV(w,e,n,r.current(),B)}),f},zV=(e,n)=>{const f={...{IN_PLACE:!0,ALLOW_UNKNOWN_PROTOCOLS:!0,ALLOWED_TAGS:["#comment","#cdata-section","body"],ALLOWED_ATTR:[]}};return f.PARSER_MEDIA_TYPE=n,e.allow_script_urls?f.ALLOWED_URI_REGEXP=/.*/:e.allow_html_data_urls&&(f.ALLOWED_URI_REGEXP=/^(?!(\w+script|mhtml):)/i),f},VV=e=>{const n=["type","href","role","arcrole","title","show","actuate","label","from","to"].map(f=>`xlink:${f}`),r={IN_PLACE:!0,USE_PROFILES:{html:!0,svg:!0,svgFilters:!0},ALLOWED_ATTR:n};return F7().sanitize(e,r),e.innerHTML},UV=(e,n)=>{const r=Kf();if(e.sanitize){const f=HV(e,n,r);return{sanitizeHtmlElement:(B,Z)=>{f.sanitize(B,zV(e,Z)),f.removed=[],r.reset()},sanitizeNamespaceElement:VV}}else return{sanitizeHtmlElement:(B,Z)=>{const oe=document.createNodeIterator(B,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT|NodeFilter.SHOW_TEXT);let be;for(;be=oe.nextNode();){const Pe=r.track(be);nA(be,e,n,Pe),Gr(be)&&BV(be,e,n,Pe)}r.reset()},sanitizeNamespaceElement:j}},G7=ur.makeMap,Z7=ur.extend,qC=(e,n,r,f)=>{const w=e.name,B=w in r&&w!=="title"&&w!=="textarea",Z=n.childNodes;for(let oe=0,be=Z.length;oe{const f=[];for(let w=e,B=w;w;B=w,w=w.walk()){const Z=w;ie(n,oe=>oe(Z)),M(Z.parent)&&Z!==e?w=B:f.push(Z)}for(let w=f.length-1;w>=0;w--){const B=f[w];ie(r,Z=>Z(B))}},WV=(e,n,r,f)=>{const w=r.validate,B=n.getNonEmptyElements(),Z=n.getWhitespaceElements(),oe=Z7(G7("script,style,head,html,body,title,meta,param"),n.getBlockElements()),be=I3(n),Pe=/[ \t\r\n]+/g,Ke=/^[ \t\r\n]+/,Je=/[ \t\r\n]+$/,at=xn=>{let yn=xn.parent;for(;k(yn);){if(yn.name in Z)return!0;yn=yn.parent}return!1},Rt=xn=>{let yn=xn;for(;k(yn);){if(yn.name in be)return Sx(n,B,Z,yn);yn=yn.parent}return!1},Ht=xn=>xn.name in oe||kh(n,xn)||nc(xn.name)&&xn.parent===e,At=(xn,yn)=>{const $n=yn?xn.prev:xn.next;return k($n)||M(xn.parent)?!1:Ht(xn.parent)&&(xn.parent!==e||f.isRootContent===!0)};return[xn=>{var yn;if(xn.type===3&&!at(xn)){let $n=(yn=xn.value)!==null&&yn!==void 0?yn:"";$n=$n.replace(Pe," "),(f5(xn.prev,Ht)||At(xn,!0))&&($n=$n.replace(Ke,"")),$n.length===0?xn.remove():xn.value=$n}},xn=>{var yn;if(xn.type===1){const $n=n.getElementRule(xn.name);if(w&&$n){const nr=Sx(n,B,Z,xn);$n.paddInEmptyBlock&&nr&&Rt(xn)?$k(r,f,Ht,xn):$n.removeEmpty&&nr?Ht(xn)?xn.remove():xn.unwrap():$n.paddEmpty&&(nr||M8(xn))&&$k(r,f,Ht,xn)}}else if(xn.type===3&&!at(xn)){let $n=(yn=xn.value)!==null&&yn!==void 0?yn:"";(xn.next&&Ht(xn.next)||At(xn,!1))&&($n=$n.replace(Je,"")),$n.length===0?xn.remove():xn.value=$n}}]},rA=(e,n)=>{var r;const f=(r=n.forced_root_block)!==null&&r!==void 0?r:e.forced_root_block;return f===!1?"":f===!0?"p":f},Yd=(e={},n=_h())=>{const r=y7(),f=y7(),w={validate:!0,root_name:"body",sanitize:!0,...e},B=new DOMParser,Z=UV(w,n),oe=(yn,$n,nr="html")=>{const mr=nr==="xhtml"?"application/xhtml+xml":"text/html",Nr=lt(n.getSpecialElements(),$n.toLowerCase()),zn=Nr?`<${$n}>${yn}`:yn,Nn=nr==="xhtml"?`${zn}`:`${zn}`,er=B.parseFromString(Nn,mr).body;return Z.sanitizeHtmlElement(er,mr),Nr?er.firstChild:er},be=r.addFilter,Pe=r.getFilters,Ke=r.removeFilter,Je=f.addFilter,at=f.getFilters,Rt=f.removeFilter,Ht=(yn,$n)=>{Ik(n,yn)&&$n.push(yn)},At=(yn,$n)=>{const nr=C($n.attr(tR)),mr=$n.type===1&&!lt(yn,$n.name)&&!kh(n,$n)&&!nc($n.name);return $n.type===3||mr&&!nr},It=(yn,$n)=>{const nr=Z7(G7("script,style,head,html,body,title,meta,param"),n.getBlockElements()),mr=/^[ \t\r\n]+/,Nr=/[ \t\r\n]+$/;let zn=yn.firstChild,Nn=null;const er=Qr=>{var ho,na;Qr&&(zn=Qr.firstChild,zn&&zn.type===3&&(zn.value=(ho=zn.value)===null||ho===void 0?void 0:ho.replace(mr,"")),zn=Qr.lastChild,zn&&zn.type===3&&(zn.value=(na=zn.value)===null||na===void 0?void 0:na.replace(Nr,"")))};if(n.isValidChild(yn.name,$n.toLowerCase())){for(;zn;){const Qr=zn.next;At(nr,zn)?(Nn||(Nn=new Hc($n,1),Nn.attr(w.forced_root_block_attrs),yn.insert(Nn,zn)),Nn.append(zn)):(er(Nn),Nn=null),zn=Qr}er(Nn)}},xn={schema:n,addAttributeFilter:Je,getAttributeFilters:at,removeAttributeFilter:Rt,addNodeFilter:be,getNodeFilters:Pe,removeNodeFilter:Ke,parse:(yn,$n={})=>{var nr;const mr=w.validate,Nr=(nr=$n.context)!==null&&nr!==void 0?nr:w.root_name,zn=oe(yn,Nr,$n.format);q0(n,zn);const Nn=new Hc(Nr,11);qC(Nn,zn,n.getSpecialElements(),Z.sanitizeNamespaceElement),zn.innerHTML="";const[er,Qr]=WV(Nn,n,w,$n),ho=[],na=mr?ei=>Ht(ei,ho):j,ca={nodes:{},attributes:{}},os=ei=>i5(Pe(),at(),ei,ca);if(Vc(Nn,[er,os],[Qr,na]),ho.reverse(),mr&&ho.length>0)if($n.context){const{pass:ei,fail:zl}=se(ho,as=>as.parent===Nn);Pk(zl,n,Nn,os),$n.invalid=ei.length>0}else Pk(ho,n,Nn,os);const ka=rA(w,$n);return ka&&(Nn.name==="body"||$n.isRootContent)&&It(Nn,ka),$n.invalid||l5(ca,$n),Nn}};return T7(xn,w),V5(xn,w,n),xn},j7=e=>Bk(e)?Uv({validate:!1}).serialize(e):e,Du=(e,n,r)=>{const f=j7(e),w=n(f);if(w.isDefaultPrevented())return w;if(Bk(e))if(w.content!==f){const B=Yd({validate:!1,forced_root_block:!1,...r}).parse(w.content,{context:e.name});return{...w,content:B}}else return{...w,content:e};else return w},Yv=(e,n)=>{if(n.no_events)return Oc.value(n);{const r=u_(e,n);return r.isDefaultPrevented()?Oc.error(da(e,{content:"",...r}).content):Oc.value(r)}},rR=(e,n,r)=>r.no_events?n:Du(n,w=>da(e,{...r,content:w}),{sanitize:bv(e),sandbox_iframes:Vb(e)}).content,oR=(e,n)=>{if(n.no_events)return Oc.value(n);{const r=Du(n.content,f=>h$(e,{...n,content:f}),{sanitize:bv(e),sandbox_iframes:Vb(e)});return r.isDefaultPrevented()?(QT(e,r),Oc.error(void 0)):Oc.value(r)}},oA=(e,n,r)=>{r.no_events||QT(e,{...r,content:n})},aR=(e,n,r)=>({element:e,width:n,rows:r}),sR=(e,n)=>({element:e,cells:n}),eS=(e,n)=>({x:e,y:n}),aA=(e,n)=>Yl(e,n).bind(Bt).getOr(1),GV=(e,n,r,f,w)=>{const B=aA(w,"rowspan"),Z=aA(w,"colspan"),oe=e.rows;for(let be=r;be{const f=e.rows;return!!(f[r]?f[r].cells:[])[n]},ZV=(e,n,r)=>{for(;Y7(e,n,r);)n++;return n},sA=e=>le(e,(n,r)=>r.cells.length>n?r.cells.length:n,0),iA=(e,n)=>{const r=e.rows;for(let f=0;f{const B=[],Z=e.rows;for(let oe=r;oe<=w;oe++){const be=Z[oe].cells,Pe=n{const f=n.x,w=n.y,B=r.x,Z=r.y,oe=w{const r=tu(e.element),f=jt.fromTag("tbody");return hs(f,n),di(r,f),r},iR=e=>Fe(e.rows,n=>{const r=Fe(n.cells,w=>{const B=kb(w);return Xs(B,"colspan"),Xs(B,"rowspan"),B}),f=tu(n.element);return hs(f,r),f}),YV=e=>{const n=aR(tu(e),0,[]);return ie(Vi(e,"tr"),(r,f)=>{ie(Vi(r,"td,th"),(w,B)=>{GV(n,ZV(n,B,f),f,r,w)})}),aR(n.element,sA(n.rows),n.rows)},lA=e=>ng(e,iR(e)),lR=(e,n,r)=>iA(e,n).bind(f=>iA(e,r).map(w=>jV(e,f,w))),X7=e=>de(e,n=>La(n)==="ul"||La(n)==="ol"),J7=(e,n)=>de(e,r=>La(r)==="li"&&nC(r,n)).fold(J([]),r=>X7(e).map(f=>{const w=jt.fromTag(La(f)),B=Cn(W0(f),(Z,oe)=>wr(oe,"list-style"));return $l(w,B),[jt.fromTag("li"),w]}).getOr([])),Q7=(e,n)=>{const r=le(n,(f,w)=>(di(w,f),w),e);return n.length>0?xC([r]):r},KV=e=>yf(e)?Rc(e).filter(ql).fold(J([]),n=>[e,n]):ql(e)?[e]:[],XV=(e,n,r)=>{const f=jt.fromDom(n.commonAncestorContainer),w=Ym(f,e),B=ue(w,be=>r.isWrapper(La(be))),Z=J7(w,n),oe=B.concat(Z.length?Z:KV(f));return Fe(oe,tu)},q7=()=>xC([]),JV=(e,n,r)=>Q7(jt.fromDom(n.cloneContents()),XV(e,n,r)),QV=(e,n)=>vm(n,"table",Q(Ba,e)),eO=(e,n)=>QV(e,n[0]).bind(r=>{const f=n[0],w=n[n.length-1],B=YV(r);return lR(B,f,w).map(Z=>xC([lA(Z)]))}).getOrThunk(q7),qV=(e,n,r)=>n.length>0&&n[0].collapsed?q7():JV(e,n[0],r),eU=(e,n,r)=>{const f=e_(n,e);return f.length>0?eO(e,f):qV(e,n,r)},cA=(e,n)=>n>=0&&n_e(e.innerText),uR=e=>e.map(n=>n.nodeName).getOr("div").toLowerCase(),fR=e=>X.from(e.selection.getRng()).map(n=>{var r;const f=X.from(e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock)),w=e.getBody(),B=uR(f),Z=jt.fromDom(n.cloneContents());jo(Z),O_(Z);const oe=e.dom.add(w,B,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},Z.dom),be=cR(oe),Pe=_e((r=oe.textContent)!==null&&r!==void 0?r:"");if(e.dom.remove(oe),cA(Pe,0)||cA(Pe,Pe.length-1)){const Ke=f.getOr(w),Je=cR(Ke),at=Je.indexOf(be);if(at===-1)return be;{const Rt=cA(Je,at-1),Ht=cA(Je,at+be.length);return(Rt?" ":"")+be+(Ht?" ":"")}}else return be}).getOr(""),tO=(e,n)=>{const r=e.selection.getRng(),f=e.dom.create("body"),w=e.selection.getSel(),B=$_(e,Qb(w)),Z=n.contextual?eU(jt.fromDom(e.getBody()),B,e.schema).dom:r.cloneContents();return Z&&f.appendChild(Z),e.selection.serializer.serialize(f,n)},dR=(e,n)=>{if(n.format==="text")return fR(e);{const r=tO(e,n);return n.format==="tree"?r:e.selection.isCollapsed()?"":r}},nO=(e,n)=>({...e,format:n,get:!0,selection:!0,getInner:!0}),rO=(e,n,r={})=>{const f=nO(r,n);return Yv(e,f).fold(K,w=>{const B=dR(e,w);return rR(e,B,w)})},tS=0,hR=1,mR=2,oO=(e,n)=>{const r=e.length+n.length+2,f=new Array(r),w=new Array(r),B=(Ke,Je,at)=>({start:Ke,end:Je,diag:at}),Z=(Ke,Je,at,Rt,Ht)=>{const At=be(Ke,Je,at,Rt);if(At===null||At.start===Je&&At.diag===Je-Rt||At.end===Ke&&At.diag===Ke-at){let It=Ke,ln=at;for(;ItRt-at?(Ht.push([mR,e[It]]),++It):(Ht.push([hR,n[ln]]),++ln)}else{Z(Ke,At.start,at,At.start-At.diag,Ht);for(let It=At.start;It{let Ht=Ke;for(;Ht-Je{const Ht=Je-Ke,At=Rt-at;if(Ht===0||At===0)return null;const It=Ht-At,ln=At+Ht,xn=(ln%2===0?ln:ln+1)/2;f[1+xn]=Ke,w[1+xn]=Je+1;let yn,$n,nr,mr,Nr;for(yn=0;yn<=xn;++yn){for($n=-yn;$n<=yn;$n+=2){for(nr=$n+xn,$n===-yn||$n!==yn&&f[nr-1]=Ke&&Nr>=at&&e[mr]===n[Nr];)w[nr]=mr--,Nr--;if(It%2===0&&-yn<=$n&&$n<=yn&&w[nr]<=f[nr+It])return oe(w[nr],$n+Ke-at,Je,Rt)}}return null},Pe=[];return Z(0,e.length,0,n.length,Pe),Pe},gR=e=>Gr(e)?e.outerHTML:ir(e)?km.encodeRaw(e.data,!1):gf(e)?"":"",pR=e=>{let n;const r=document.createElement("div"),f=document.createDocumentFragment();for(e&&(r.innerHTML=e);n=r.firstChild;)f.appendChild(n);return f},tU=(e,n,r)=>{const f=pR(n);if(e.hasChildNodes()&&r{if(e.hasChildNodes()&&n{let r=0;ie(e,f=>{f[0]===tS?r++:f[0]===hR?(tU(n,f[1],r),r++):f[0]===mR&&uA(n,r)})},rU=(e,n)=>ue(Fe(tt(e.childNodes),n?P(_e,gR):gR),r=>r.length>0),oU=(e,n)=>{const r=Fe(tt(n.childNodes),gR);return nU(oO(r,e),n),n},aO=Dt(()=>document.implementation.createHTMLDocument("undo")),sO=e=>e.querySelector("iframe")!==null,aU=e=>({type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}),sU=e=>({type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}),fA=e=>{const n=e.serializer.getTempAttrs(),r=B$(e.getBody(),n);return sO(r)?aU(rU(r,!0)):sU(_e(r.innerHTML))},vR=(e,n,r)=>{const f=r?n.beforeBookmark:n.bookmark;n.type==="fragmented"?oU(n.fragments,e.getBody()):e.setContent(n.content,{format:"raw",no_selection:k(f)&&IT(f)?!f.isFakeCaret:!0}),f&&(e.selection.moveToBookmark(f),e.selection.scrollIntoView())},yR=e=>e.type==="fragmented"?e.fragments.join(""):e.content,bR=e=>{const n=jt.fromTag("body",aO());return bh(n,yR(e)),ie(Vi(n,"*[data-mce-bogus]"),Xu),aa(n)},bee=(e,n)=>yR(e)===yR(n),iU=(e,n)=>bR(e)===bR(n),xR=(e,n)=>!e||!n?!1:bee(e,n)?!0:iU(e,n),wR=e=>e.get()===0,dA=(e,n,r)=>{wR(r)&&(e.typing=n)},iO=(e,n)=>{e.typing&&(dA(e,!1,n),e.add())},lU=e=>{e.typing&&(e.typing=!1,e.add())},cU=(e,n,r)=>{wR(n)&&r.set(dv(e.selection))},lO=(e,n,r,f,w,B,Z)=>{const oe=fA(e),be=ur.extend(B||{},oe);if(!wR(f)||e.removed)return null;const Pe=n.data[r.get()];if(e.dispatch("BeforeAddUndo",{level:be,lastLevel:Pe,originalEvent:Z}).isDefaultPrevented()||Pe&&xR(Pe,be))return null;n.data[r.get()]&&w.get().each(at=>{n.data[r.get()].beforeBookmark=at});const Ke=x1(e);if(Ke&&n.data.length>Ke){for(let at=0;at0?(e.setDirty(!0),e.dispatch("AddUndo",Je),e.dispatch("change",Je)):e.dispatch("AddUndo",Je),be},uU=(e,n,r)=>{n.data=[],r.set(0),n.typing=!1,e.dispatch("ClearUndos")},fU=(e,n,r,f,w)=>{if(n.transact(f)){const B=n.data[r.get()].bookmark,Z=n.data[r.get()-1];vR(e,Z,!0),n.transact(w)&&(n.data[r.get()-1].beforeBookmark=B)}},dU=(e,n,r)=>{let f;return n.get(){let w;return n.typing&&(n.add(),n.typing=!1,dA(n,!1,r)),f.get()>0&&(f.set(f.get()-1),w=n.data[f.get()],vR(e,w,!0),e.setDirty(!0),e.dispatch("Undo",{level:w})),w},mU=e=>{e.clear(),e.add()},xee=(e,n,r)=>r.get()>0||n.typing&&n.data[0]&&!xR(fA(e),n.data[0]),wee=(e,n)=>n.get()(iO(e,n),e.beforeChange(),e.ignore(r),e.add()),pU=(e,n)=>{try{e.set(e.get()+1),n()}finally{e.set(e.get()-1)}},Cee=(e,n)=>{const r=e.dom,f=k(n)?n:e.getBody();ie(r.select("table,a",f),w=>{switch(w.nodeName){case"TABLE":const B=A4(e),Z=r.getAttrib(w,"border");(!Z||Z==="0")&&e.hasVisual?r.addClass(w,B):r.removeClass(w,B);break;case"A":if(!r.getAttrib(w,"href")){const oe=r.getAttrib(w,"name")||w.id,be=vT(e);oe&&e.hasVisual?r.addClass(w,be):r.removeClass(w,be)}break}}),e.dispatch("VisualAid",{element:n,hasVisual:e.hasVisual})},cO=e=>({init:{bindEvents:j},undoManager:{beforeChange:(n,r)=>cU(e,n,r),add:(n,r,f,w,B,Z)=>lO(e,n,r,f,w,B,Z),undo:(n,r,f)=>hU(e,n,r,f),redo:(n,r)=>dU(e,n,r),clear:(n,r)=>uU(e,n,r),reset:n=>mU(n),hasUndo:(n,r)=>xee(e,n,r),hasRedo:(n,r)=>wee(n,r),transact:(n,r,f)=>gU(n,r,f),ignore:(n,r)=>pU(n,r),extra:(n,r,f,w)=>fU(e,n,r,f,w)},formatter:{match:(n,r,f,w)=>Hk(e,n,r,f,w),matchAll:(n,r)=>nV(e,n,r),matchNode:(n,r,f,w)=>Xm(e,n,r,f,w),canApply:n=>W8(e,n),closest:n=>sy(e,n),apply:(n,r,f)=>h7(e,n,r,f),remove:(n,r,f,w)=>c7(e,n,r,f,w),toggle:(n,r,f)=>wV(e,n,r,f),formatChanged:(n,r,f,w,B)=>xV(e,n,r,f,w,B)},editor:{getContent:n=>fee(e,n),setContent:(n,r)=>z8(e,n,r),insertContent:(n,r)=>H8(e,n,r),addVisual:n=>Cee(e,n)},selection:{getContent:(n,r)=>rO(e,n,r)},autocompleter:{addDecoration:n=>WH(e,n),removeDecoration:()=>ZH(e,jt.fromDom(e.getBody()))},raw:{getModel:()=>X.none()}}),pi=e=>{const n=Pe=>_(Pe)?Pe:{},{init:r,undoManager:f,formatter:w,editor:B,selection:Z,autocompleter:oe,raw:be}=e;return{init:{bindEvents:r.bindEvents},undoManager:{beforeChange:f.beforeChange,add:f.add,undo:f.undo,redo:f.redo,clear:f.clear,reset:f.reset,hasUndo:f.hasUndo,hasRedo:f.hasRedo,transact:(Pe,Ke,Je)=>f.transact(Je),ignore:(Pe,Ke)=>f.ignore(Ke),extra:(Pe,Ke,Je,at)=>f.extra(Je,at)},formatter:{match:(Pe,Ke,Je,at)=>w.match(Pe,n(Ke),at),matchAll:w.matchAll,matchNode:w.matchNode,canApply:Pe=>w.canApply(Pe),closest:Pe=>w.closest(Pe),apply:(Pe,Ke,Je)=>w.apply(Pe,n(Ke)),remove:(Pe,Ke,Je,at)=>w.remove(Pe,n(Ke)),toggle:(Pe,Ke,Je)=>w.toggle(Pe,n(Ke)),formatChanged:(Pe,Ke,Je,at,Rt)=>w.formatChanged(Ke,Je,at,Rt)},editor:{getContent:Pe=>B.getContent(Pe),setContent:(Pe,Ke)=>({content:B.setContent(Pe,Ke),html:""}),insertContent:(Pe,Ke)=>(B.insertContent(Pe),""),addVisual:B.addVisual},selection:{getContent:(Pe,Ke)=>Z.getContent(Ke)},autocompleter:{addDecoration:oe.addDecoration,removeDecoration:oe.removeDecoration},raw:{getModel:()=>X.some(be.getRawModel())}}},CR=()=>{const e=J(null),n=J("");return{init:{bindEvents:j},undoManager:{beforeChange:j,add:e,undo:e,redo:e,clear:j,reset:j,hasUndo:ne,hasRedo:ne,transact:e,ignore:j,extra:j},formatter:{match:ne,matchAll:J([]),matchNode:J(void 0),canApply:ne,closest:n,apply:j,remove:j,toggle:j,formatChanged:J({unbind:j})},editor:{getContent:n,setContent:J({content:"",html:""}),insertContent:J(""),addVisual:j},selection:{getContent:n},autocompleter:{addDecoration:j,removeDecoration:j},raw:{getModel:J(X.none())}}},mp=e=>lt(e.plugins,"rtc"),vU=e=>wn(e.plugins,"rtc").bind(n=>X.from(n.setup)),yU=e=>{const n=e;return vU(e).fold(()=>(n.rtcInstance=cO(e),X.none()),r=>(n.rtcInstance=CR(),X.some(()=>r().then(f=>(n.rtcInstance=pi(f),f.rtc.isRemote)))))},Kv=e=>e.rtcInstance?e.rtcInstance:cO(e),el=e=>{const n=e.rtcInstance;if(n)return n;throw new Error("Failed to get RTC instance not yet initialized.")},See=(e,n,r)=>{el(e).undoManager.beforeChange(n,r)},cc=(e,n,r,f,w,B,Z)=>el(e).undoManager.add(n,r,f,w,B,Z),uO=(e,n,r,f)=>el(e).undoManager.undo(n,r,f),fO=(e,n,r)=>el(e).undoManager.redo(n,r),dO=(e,n,r)=>{el(e).undoManager.clear(n,r)},bU=(e,n)=>{el(e).undoManager.reset(n)},xU=(e,n,r)=>el(e).undoManager.hasUndo(n,r),hA=(e,n,r)=>el(e).undoManager.hasRedo(n,r),wU=(e,n,r,f)=>el(e).undoManager.transact(n,r,f),SR=(e,n,r)=>{el(e).undoManager.ignore(n,r)},CU=(e,n,r,f,w)=>{el(e).undoManager.extra(n,r,f,w)},hO=(e,n,r,f,w)=>el(e).formatter.match(n,r,f,w),mO=(e,n,r)=>el(e).formatter.matchAll(n,r),TR=(e,n,r,f,w)=>el(e).formatter.matchNode(n,r,f,w),gO=(e,n)=>el(e).formatter.canApply(n),kR=(e,n)=>el(e).formatter.closest(n),SU=(e,n,r,f)=>{el(e).formatter.apply(n,r,f)},TU=(e,n,r,f,w)=>{el(e).formatter.remove(n,r,f,w)},kU=(e,n,r,f)=>{el(e).formatter.toggle(n,r,f)},ud=(e,n,r,f,w,B)=>el(e).formatter.formatChanged(n,r,f,w,B),AU=(e,n)=>Kv(e).editor.getContent(n),MU=(e,n,r)=>Kv(e).editor.setContent(n,r),EU=(e,n,r)=>Kv(e).editor.insertContent(n,r),_U=(e,n,r)=>el(e).selection.getContent(n,r),RU=(e,n)=>el(e).editor.addVisual(n),AR=e=>el(e).init.bindEvents(),LU=(e,n)=>el(e).autocompleter.addDecoration(n),DU=e=>el(e).autocompleter.removeDecoration(),$U=(e,n={})=>{const r=n.format?n.format:"html";return _U(e,r,n)},nS=e=>e.dom.length===0?(Ua(e),X.none()):X.some(e),OU=(e,n)=>e.filter(r=>rp.isBookmarkNode(r.dom)).bind(n?Lg:hu),PU=(e,n,r,f,w)=>{const B=e.dom,Z=n.dom,oe=f?B.length:Z.length;f?(hl(B,Z,w,!1,!f),r.setStart(Z,oe)):(hl(Z,B,w,!1,!f),r.setEnd(Z,oe))},pO=(e,n,r)=>{Rc(e).each(f=>{const w=e.dom;n&&yx(f,In(w,0),r)?ty(w,0,r):!n&&bx(f,In(w,w.length),r)&&l8(w,w.length,r)})},mA=(e,n,r,f,w)=>{e.bind(B=>((f?l8:ty)(B.dom,f?B.dom.length:0,w),n.filter(Ei).map(oe=>PU(B,oe,r,f,w)))).orThunk(()=>OU(n,f).or(n).filter(Ei).map(Z=>pO(Z,f,w)))},IU=(e,n,r)=>{const f=X.from(n.firstChild).map(jt.fromDom),w=X.from(n.lastChild).map(jt.fromDom);e.deleteContents(),e.insertNode(n);const B=f.bind(hu).filter(Ei).bind(nS),Z=w.bind(Lg).filter(Ei).bind(nS);mA(B,f,e,!0,r),mA(Z,w,e,!1,r),e.collapse(!1)},NU=(e,n)=>({format:"html",...e,set:!0,selection:!0,content:n}),Tee=(e,n)=>{if(n.format!=="raw"){const r=e.selection.getRng(),f=e.dom.getParent(r.commonAncestorContainer,e.dom.isBlock),w=f?{context:f.nodeName.toLowerCase()}:{},B=e.parser.parse(n.content,{forced_root_block:!1,...w,...n});return Uv({validate:!1},e.schema).serialize(B)}else return n.content},FU=(e,n,r={})=>{const f=NU(r,n);oR(e,f).each(w=>{const B=Tee(e,w),Z=e.selection.getRng();IU(Z,Z.createContextualFragment(B),e.schema),e.selection.setRng(Z),J1(e,Z),oA(e,B,w)})},vO=(e,n,r)=>{if(lt(e,n)){const f=ue(e[n],w=>w!==r);f.length===0?delete e[n]:e[n]=f}};var yO=(e,n)=>{let r,f;const w=(oe,be)=>de(be,Pe=>e.is(Pe,oe)),B=oe=>e.getParents(oe,void 0,e.getRoot()),Z=()=>{r={},f={},n.on("NodeChange",oe=>{const be=oe.element,Pe=B(be),Ke={};Ft(r,(Je,at)=>{w(at,Pe).each(Rt=>{f[at]||(ie(Je,Ht=>{Ht(!0,{node:Rt,selector:at,parents:Pe})}),f[at]=Je),Ke[at]=Je})}),Ft(f,(Je,at)=>{Ke[at]||(delete f[at],ie(Je,Rt=>{Rt(!1,{node:be,selector:at,parents:Pe})}))})})};return{selectorChangedWithUnbind:(oe,be)=>(r||Z(),r[oe]||(r[oe]=[]),r[oe].push(be),w(oe,B(n.selection.getStart())).each(()=>{f[oe]=r[oe]}),{unbind:()=>{vO(r,oe,be),vO(f,oe,be)}})}};const MR=e=>!!(e&&e.ownerDocument)&&Dl(jt.fromDom(e.ownerDocument),jt.fromDom(e)),BU=e=>e?MR(e.startContainer)&&MR(e.endContainer):!1,Xv=(e,n,r,f)=>{let w,B;const{selectorChangedWithUnbind:Z}=yO(e,f),oe=(Sr,so)=>{const $a=e.createRng();k(Sr)&&k(so)?($a.setStart(Sr,so),$a.setEnd(Sr,so),$n($a),ln(!1)):(rC(e,$a,f.getBody(),!0),$n($a))},be=Sr=>$U(f,Sr),Pe=(Sr,so)=>FU(f,Sr,so),Ke=Sr=>L_(f.getBody(),yn(),Sr),Je=Sr=>_$(f.getBody(),yn(),Sr),at=(Sr,so)=>zl.getBookmark(Sr,so),Rt=Sr=>zl.moveToBookmark(Sr),Ht=(Sr,so)=>(IH(e,Sr,so).each($n),Sr),At=()=>{const Sr=yn(),so=xn();return!Sr||Sr.item?!1:Sr.compareEndPoints?Sr.compareEndPoints("StartToEnd",Sr)===0:!so||Sr.collapsed},It=()=>{const Sr=yn(),so=f.getBody().querySelectorAll('[data-mce-selected="1"]');return so.length>0?We(so,$a=>e.isEditable($a.parentElement)):M$(e,Sr)},ln=Sr=>{const so=yn();so.collapse(!!Sr),$n(so)},xn=()=>n.getSelection?n.getSelection():n.document.selection,yn=()=>{let Sr;const so=(ha,to,Lo)=>{try{return to.compareBoundaryPoints(ha,Lo)}catch{return-1}},$a=n.document;if(k(f.bookmark)&&!Vv(f)){const ha=M_(f);if(ha.isSome())return ha.map(to=>$_(f,[to])[0]).getOr($a.createRange())}try{const ha=xn();ha&&!vu(ha.anchorNode)&&(ha.rangeCount>0?Sr=ha.getRangeAt(0):Sr=$a.createRange(),Sr=$_(f,[Sr])[0])}catch{}if(Sr||(Sr=$a.createRange()),wm(Sr.startContainer)&&Sr.collapsed){const ha=e.getRoot();Sr.setStart(ha,0),Sr.setEnd(ha,0)}return w&&B&&(so(Sr.START_TO_START,Sr,w)===0&&so(Sr.END_TO_END,Sr,w)===0?Sr=B:(w=null,B=null)),Sr},$n=(Sr,so)=>{if(!BU(Sr))return;const $a=xn();if(Sr=f.dispatch("SetSelectionRange",{range:Sr,forward:so}).range,$a){B=Sr;try{$a.removeAllRanges(),$a.addRange(Sr)}catch{}so===!1&&$a.extend&&($a.collapse(Sr.endContainer,Sr.endOffset),$a.extend(Sr.startContainer,Sr.startOffset)),w=$a.rangeCount>0?$a.getRangeAt(0):null}if(!Sr.collapsed&&Sr.startContainer===Sr.endContainer&&($a!=null&&$a.setBaseAndExtent)&&Sr.endOffset-Sr.startOffset<2&&Sr.startContainer.hasChildNodes()){const to=Sr.startContainer.childNodes[Sr.startOffset];to&&to.nodeName==="IMG"&&($a.setBaseAndExtent(Sr.startContainer,Sr.startOffset,Sr.endContainer,Sr.endOffset),($a.anchorNode!==Sr.startContainer||$a.focusNode!==Sr.endContainer)&&$a.setBaseAndExtent(to,0,to,1))}f.dispatch("AfterSetSelectionRange",{range:Sr,forward:so})},nr=Sr=>(Pe(e.getOuterHTML(Sr)),Sr),mr=()=>R$(f.getBody(),yn()),Nr=(Sr,so)=>PH(e,yn(),Sr,so),zn=()=>{const Sr=xn(),so=Sr==null?void 0:Sr.anchorNode,$a=Sr==null?void 0:Sr.focusNode;if(!Sr||!so||!$a||vu(so)||vu($a))return!0;const ha=e.createRng(),to=e.createRng();try{ha.setStart(so,Sr.anchorOffset),ha.collapse(!0),to.setStart($a,Sr.focusOffset),to.collapse(!0)}catch{return!0}return ha.compareBoundaryPoints(ha.START_TO_START,to)<=0},ei={dom:e,win:n,serializer:r,editor:f,expand:(Sr={type:"word"})=>$n(xt(e).expand(yn(),Sr)),collapse:ln,setCursorLocation:oe,getContent:be,setContent:Pe,getBookmark:at,moveToBookmark:Rt,select:Ht,isCollapsed:At,isEditable:It,isForward:zn,setNode:nr,getNode:mr,getSel:xn,setRng:$n,getRng:yn,getStart:Ke,getEnd:Je,getSelectedBlocks:Nr,normalize:()=>{const Sr=yn(),so=xn();if(!np(so)&&ex(f)){const $a=Le(e,Sr);return $a.each(ha=>{$n(ha,zn())}),$a.getOr(Sr)}return Sr},selectorChanged:(Sr,so)=>(Z(Sr,so),ei),selectorChangedWithUnbind:Z,getScrollContainer:()=>{let Sr,so=e.getRoot();for(;so&&so.nodeName!=="BODY";){if(so.scrollHeight>so.clientHeight){Sr=so;break}so=so.parentNode}return Sr},scrollIntoView:(Sr,so)=>{k(Sr)?Hl(f,Sr,so):J1(f,yn(),so)},placeCaretAt:(Sr,so)=>$n(Ru(Sr,so,f.getDoc())),getBoundingClientRect:()=>{const Sr=yn();return Sr.collapsed?In.fromRangeStart(Sr).getClientRects()[0]:Sr.getBoundingClientRect()},destroy:()=>{n=w=B=null,as.destroy()}},zl=rp(ei),as=g$(ei,f);return ei.bookmarkManager=zl,ei.controlSelection=as,ei},Fx=(e,n,r)=>{e.addAttributeFilter("data-mce-tabindex",(f,w)=>{let B=f.length;for(;B--;){const Z=f[B];Z.attr("tabindex",Z.attr("data-mce-tabindex")),Z.attr(w,null)}}),e.addAttributeFilter("src,href,style",(f,w)=>{const B="data-mce-"+w,Z=n.url_converter,oe=n.url_converter_scope;let be=f.length;for(;be--;){const Pe=f[be];let Ke=Pe.attr(B);Ke!==void 0?(Pe.attr(w,Ke.length>0?Ke:null),Pe.attr(B,null)):(Ke=Pe.attr(w),w==="style"?Ke=r.serializeStyle(r.parseStyle(Ke),Pe.name):Z&&(Ke=Z.call(oe,Ke,w,Pe.name)),Pe.attr(w,Ke.length>0?Ke:null))}}),e.addAttributeFilter("class",f=>{let w=f.length;for(;w--;){const B=f[w];let Z=B.attr("class");Z&&(Z=Z.replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),B.attr("class",Z.length>0?Z:null))}}),e.addAttributeFilter("data-mce-type",(f,w,B)=>{let Z=f.length;for(;Z--;){const oe=f[Z];oe.attr("data-mce-type")==="bookmark"&&!B.cleanup&&(X.from(oe.firstChild).exists(Pe=>{var Ke;return!Ae((Ke=Pe.value)!==null&&Ke!==void 0?Ke:"")})?oe.unwrap():oe.remove())}}),e.addNodeFilter("noscript",f=>{var w;let B=f.length;for(;B--;){const Z=f[B].firstChild;Z&&(Z.value=km.decode((w=Z.value)!==null&&w!==void 0?w:""))}}),e.addNodeFilter("script,style",(f,w)=>{var B;const Z=be=>be.replace(/()/g,` -`).replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*(()?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"");let oe=f.length;for(;oe--;){const be=f[oe],Pe=be.firstChild,Ke=(B=Pe==null?void 0:Pe.value)!==null&&B!==void 0?B:"";if(w==="script"){const Je=be.attr("type");Je&&be.attr("type",Je==="mce-no/type"?null:Je.replace(/^mce\-/,"")),n.element_format==="xhtml"&&Pe&&Ke.length>0&&(Pe.value=`// `)}else n.element_format==="xhtml"&&Pe&&Ke.length>0&&(Pe.value=``)}}),e.addNodeFilter("#comment",f=>{let w=f.length;for(;w--;){const B=f[w],Z=B.value;n.preserve_cdata&&(Z==null?void 0:Z.indexOf("[CDATA["))===0?(B.name="#cdata",B.type=4,B.value=r.decode(Z.replace(/^\[CDATA\[|\]\]$/g,""))):(Z==null?void 0:Z.indexOf("mce:protected "))===0&&(B.name="#text",B.type=3,B.raw=!0,B.value=unescape(Z).substr(14))}}),e.addNodeFilter("xml:namespace,input",(f,w)=>{let B=f.length;for(;B--;){const Z=f[B];Z.type===7?Z.remove():Z.type===1&&w==="input"&&!Z.attr("type")&&Z.attr("type","text")}}),e.addAttributeFilter("data-mce-type",f=>{ie(f,w=>{w.attr("data-mce-type")==="format-caret"&&(w.isEmpty(e.schema.getNonEmptyElements())?w.remove():w.unwrap())})}),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-block,data-mce-type,data-mce-resize,data-mce-placeholder",(f,w)=>{let B=f.length;for(;B--;)f[B].attr(w,null)}),n.remove_trailing_brs&&U5(n,e,e.schema)},rS=e=>{const n=f=>(f==null?void 0:f.name)==="br",r=e.lastChild;if(n(r)){const f=r.prev;n(f)&&(r.remove(),f.remove())}},bO=(e,n,r)=>{let f;const w=e.dom;let B=n.cloneNode(!0);const Z=document.implementation;if(Z.createHTMLDocument){const oe=Z.createHTMLDocument("");ur.each(B.nodeName==="BODY"?B.childNodes:[B],be=>{oe.body.appendChild(oe.importNode(be,!0))}),B.nodeName!=="BODY"?B=oe.body.firstChild:B=oe.body,f=w.doc,w.doc=oe}return dC(e,{...r,node:B}),f&&(w.doc=f),B},xO=(e,n)=>k(e)&&e.hasEventListeners("PreProcess")&&!n.no_events,HU=(e,n,r)=>xO(e,r)?bO(e,n,r):n,wO=(e,n,r)=>{ur.inArray(n,r)===-1&&(e.addAttributeFilter(r,(f,w)=>{let B=f.length;for(;B--;)f[B].attr(w,null)}),n.push(r))},zU=(e,n,r)=>!n.no_events&&e?i_(e,{...n,content:r}).content:r,VU=(e,n,r)=>{const f=_e(r.getInner?n.innerHTML:e.getOuterHTML(n));return r.selection||Li(jt.fromDom(n))?f:ur.trim(f)},UU=(e,n,r)=>{const f=r.selection?{forced_root_block:!1,...r}:r,w=e.parse(n,f);return rS(w),w},WU=(e,n,r)=>Uv(e,n).serialize(r),CO=(e,n,r,f,w)=>{const B=WU(n,r,f);return zU(e,w,B)},GU=(e,n)=>{const r=["data-mce-selected"],f={entity_encoding:"named",remove_trailing_brs:!0,pad_empty_with_br:!1,...e},w=n&&n.dom?n.dom:Cs.DOM,B=n&&n.schema?n.schema:_h(f),Z=Yd(f,B);Fx(Z,f,w);const oe=(be,Pe={})=>{const Ke={format:"html",...Pe},Je=HU(n,be,Ke),at=VU(w,Je,Ke),Rt=UU(Z,at,Ke);return Ke.format==="tree"?Rt:CO(n,f,B,Rt,Ke)};return{schema:B,addNodeFilter:Z.addNodeFilter,addAttributeFilter:Z.addAttributeFilter,serialize:oe,addRules:B.addValidElements,setRules:B.setValidElements,addTempAttr:Q(wO,Z,r),getTempAttrs:J(r),getNodeFilters:Z.getNodeFilters,getAttributeFilters:Z.getAttributeFilters,removeNodeFilter:Z.removeNodeFilter,removeAttributeFilter:Z.removeAttributeFilter}},SO=(e,n)=>{const r=GU(e,n);return{schema:r.schema,addNodeFilter:r.addNodeFilter,addAttributeFilter:r.addAttributeFilter,serialize:r.serialize,addRules:r.addRules,setRules:r.setRules,addTempAttr:r.addTempAttr,getTempAttrs:r.getTempAttrs,getNodeFilters:r.getNodeFilters,getAttributeFilters:r.getAttributeFilters,removeNodeFilter:r.removeNodeFilter,removeAttributeFilter:r.removeAttributeFilter}},oS="html",TO=(e,n)=>({...e,format:n,get:!0,getInner:!0}),kO=(e,n={})=>{const r=n.format?n.format:oS,f=TO(n,r);return Yv(e,f).fold(K,w=>{const B=AU(e,w);return rR(e,B,w)})},ZU="html",jU=(e,n)=>({format:ZU,...e,set:!0,content:n}),ER=(e,n,r={})=>{const f=jU(r,n);return oR(e,f).map(w=>{const B=MU(e,w.content,w);return oA(e,B.html,w),B.content}).getOr(n)},AO="autoresize_on_init,content_editable_state,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,tabfocus_elements,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_enable_default_filters,paste_filter_drop,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),YU="template_cdate_classes,template_mdate_classes,template_selected_content_classes,template_preview_replace_values,template_replace_values,templates,template_cdate_format,template_mdate_format".split(","),KU="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),MO=[{name:"template",replacedWith:"Advanced Template"},{name:"rtc"}],EO=(e,n)=>{const r=ue(n,f=>lt(e,f));return Xe(r)},kee=e=>{const n=EO(e,AO),r=e.forced_root_block;return(r===!1||r==="")&&n.push("forced_root_block (false only)"),Xe(n)},Kh=e=>EO(e,YU),gA=(e,n)=>{const r=ur.makeMap(e.plugins," "),w=ue(n,B=>lt(r,B));return Xe(w)},XU=e=>gA(e,KU),JU=e=>gA(e,MO.map(n=>n.name)),QU=(e,n)=>{const r=kee(e),f=XU(n),w=f.length>0,B=r.length>0,Z=n.theme==="mobile";if(w||B||Z){const oe=` -- `,be=Z?` - -Themes:${oe}mobile`:"",Pe=w?` - -Plugins:${oe}${f.join(oe)}`:"",Ke=B?` - -Options:${oe}${r.join(oe)}`:"";console.warn("The following deprecated features are currently enabled and have been removed in TinyMCE 6.0. These features will no longer work and should be removed from the TinyMCE configuration. See https://www.tiny.cloud/docs/tinymce/6/migration-from-5x/ for more information."+be+Pe+Ke)}},qU=e=>de(MO,n=>n.name===e).fold(()=>e,n=>n.replacedWith?`${e}, replaced by ${n.replacedWith}`:e),qa=(e,n)=>{const r=Kh(e),f=JU(n),w=f.length>0,B=r.length>0;if(w||B){const Z=` -- `,oe=w?` - -Plugins:${Z}${f.map(qU).join(Z)}`:"",be=B?` - -Options:${Z}${r.join(Z)}`:"";console.warn("The following deprecated features are currently enabled but will be removed soon."+oe+be)}},Aee=(e,n)=>{QU(e,n),qa(e,n)},pA=Cs.DOM,eW=e=>{pA.setStyle(e.id,"display",e.orgDisplay)},Ns=e=>X.from(e).each(n=>n.destroy()),tW=e=>{const n=e;n.contentAreaContainer=n.formElement=n.container=n.editorContainer=null,n.bodyElement=n.contentDocument=n.contentWindow=null,n.iframeElement=n.targetElm=null;const r=e.selection;if(r){const f=r.dom;n.selection=r.win=r.dom=f.doc=null}},aS=e=>{const n=e.formElement;n&&(n._mceOldSubmit&&(n.submit=n._mceOldSubmit,delete n._mceOldSubmit),pA.unbind(n,"submit reset",e.formEventDelegate))},nW=e=>{if(!e.removed){const{_selectionOverrides:n,editorUpload:r}=e,f=e.getBody(),w=e.getElement();f&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&k(w==null?void 0:w.nextSibling)&&pA.remove(w.nextSibling),Iv(e),e.editorManager.remove(e),!e.inline&&f&&eW(e),Nv(e),pA.remove(e.getContainer()),Ns(n),Ns(r),e.destroy()}},rW=(e,n)=>{const{selection:r,dom:f}=e;if(!e.destroyed){if(!n&&!e.removed){e.remove();return}n||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),Ns(r),Ns(f)),aS(e),tW(e),e.destroyed=!0}},sS=(()=>{const e={};return{add:(w,B)=>{e[w]=B},get:w=>e[w]?e[w]:{icons:{}},has:w=>lt(e,w)}})(),fd=rc.ModelManager,$u=(e,n)=>n.dom[e],Bx=(e,n)=>parseInt(ui(n,e),10),Jv=Q($u,"clientWidth"),rg=Q($u,"clientHeight"),iS=Q(Bx,"margin-top"),_R=Q(Bx,"margin-left"),RR=e=>e.dom.getBoundingClientRect(),_O=(e,n,r)=>{const f=Jv(e),w=rg(e);return n>=0&&r>=0&&n<=f&&r<=w},RO=(e,n,r,f)=>{const w=RR(n),B=e?w.left+n.dom.clientLeft+_R(n):0,Z=e?w.top+n.dom.clientTop+iS(n):0,oe=r-B,be=f-Z;return{x:oe,y:be}},oW=(e,n,r)=>{const f=jt.fromDom(e.getBody()),w=e.inline?f:I0(f),B=RO(e.inline,w,n,r);return _O(w,B.x,B.y)},aW=e=>X.from(e).map(jt.fromDom),LO=e=>{const n=e.inline?e.getBody():e.getContentAreaContainer();return aW(n).map(Td).getOr(!1)};var DO=()=>{const e=()=>{throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,getArgs:e}};const LR=e=>{const n=[],r=()=>{const at=e.theme;return at&&at.getNotificationManagerImpl?at.getNotificationManagerImpl():DO()},f=()=>X.from(n[0]),w=(at,Rt)=>at.type===Rt.type&&at.text===Rt.text&&!at.progressBar&&!at.timeout&&!Rt.progressBar&&!Rt.timeout,B=()=>{ie(n,at=>{at.reposition()})},Z=at=>{n.push(at)},oe=at=>{Me(n,Rt=>Rt===at).each(Rt=>{n.splice(Rt,1)})},be=(at,Rt=!0)=>e.removed||!LO(e)?{}:(Rt&&e.dispatch("BeforeOpenNotification",{notification:at}),de(n,Ht=>w(r().getArgs(Ht),at)).getOrThunk(()=>{e.editorManager.setActive(e);const Ht=r().open(at,()=>{oe(Ht),B(),A$(e)&&f().fold(()=>e.focus(),At=>ik(jt.fromDom(At.getEl())))});return Z(Ht),B(),e.dispatch("OpenNotification",{notification:{...Ht}}),Ht})),Pe=()=>{f().each(at=>{r().close(at),oe(at),B()})},Ke=J(n);return(at=>{at.on("SkinLoaded",()=>{const Rt=w4(at);Rt&&be({text:Rt,type:"warning",timeout:0},!1),B()}),at.on("show ResizeEditor ResizeWindow NodeChange",()=>{requestAnimationFrame(B)}),at.on("remove",()=>{ie(n.slice(),Rt=>{r().close(Rt)})})})(e),{open:be,close:Pe,getNotifications:Ke}},uy=rc.PluginManager,gp=rc.ThemeManager;var Eee=()=>{const e=()=>{throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e}};const $O=e=>{let n=[];const r=()=>{const At=e.theme;return At&&At.getWindowManagerImpl?At.getWindowManagerImpl():Eee()},f=(At,It)=>(...ln)=>It?It.apply(At,ln):void 0,w=At=>{e.dispatch("OpenWindow",{dialog:At})},B=At=>{e.dispatch("CloseWindow",{dialog:At})},Z=At=>{n.push(At),w(At)},oe=At=>{B(At),n=ue(n,It=>It!==At),n.length===0&&e.focus()},be=()=>X.from(n[n.length-1]),Pe=At=>{e.editorManager.setActive(e),px(e),e.ui.show();const It=At();return Z(It),It},Ke=(At,It)=>Pe(()=>r().open(At,It,oe)),Je=At=>Pe(()=>r().openUrl(At,oe)),at=(At,It,ln)=>{const xn=r();xn.alert(At,f(ln||xn,It))},Rt=(At,It,ln)=>{const xn=r();xn.confirm(At,f(ln||xn,It))},Ht=()=>{be().each(At=>{r().close(At),oe(At)})};return e.on("remove",()=>{ie(n,At=>{r().close(At)})}),{open:Ke,openUrl:Je,alert:at,confirm:Rt,close:Ht}},sW=(e,n)=>{e.notificationManager.open({type:"error",text:n})},vA=(e,n)=>{e._skinLoaded?sW(e,n):e.on("SkinLoaded",()=>{sW(e,n)})},iW=(e,n)=>{vA(e,Cf.translate(["Failed to upload image: {0}",n]))},Df=(e,n,r)=>{ou(e,n,{message:r}),console.error(r)},yA=(e,n,r)=>r?`Failed to load ${e}: ${r} from url ${n}`:`Failed to load ${e} url: ${n}`,_ee=(e,n,r)=>{Df(e,"PluginLoadError",yA("plugin",n,r))},lW=(e,n,r)=>{Df(e,"IconsLoadError",yA("icons",n,r))},lS=(e,n,r)=>{Df(e,"LanguageLoadError",yA("language",n,r))},cW=(e,n,r)=>{Df(e,"ThemeLoadError",yA("theme",n,r))},OO=(e,n,r)=>{Df(e,"ModelLoadError",yA("model",n,r))},PO=(e,n,r)=>{const f=Cf.translate(["Failed to initialize plugin: {0}",n]);ou(e,"PluginLoadError",{message:f}),cS(f,r),vA(e,f)},cS=(e,...n)=>{const r=window.console;r&&(r.error?r.error(e,...n):r.log(e,...n))},uW=e=>/^[a-z0-9\-]+$/i.test(e),DR=e=>"content/"+e+"/content.css",Qv=e=>tinymce.Resource.has(DR(e)),fW=e=>IO(e,Rw(e)),dW=e=>IO(e,uT(e)),IO=(e,n)=>{const r=e.editorManager.baseURL+"/skins/content",w=`content${e.editorManager.suffix}.css`;return Fe(n,B=>Qv(B)?B:uW(B)&&!e.inline?`${r}/${B}/${w}`:e.documentBaseURI.toAbsolute(B))},hW=e=>{e.contentCSS=e.contentCSS.concat(fW(e),dW(e))},mW=e=>e?tt(e.getElementsByTagName("img")):[],gW=(e,n)=>{const r={};return{findAll:(w,B=fe)=>{const Z=ue(mW(w),be=>{const Pe=be.src;return be.hasAttribute("data-mce-bogus")||be.hasAttribute("data-mce-placeholder")||!Pe||Pe===Lr.transparentSrc?!1:wr(Pe,"blob:")?!e.isUploaded(Pe)&&B(be):wr(Pe,"data:")?B(be):!1}),oe=Fe(Z,be=>{const Pe=be.src;if(lt(r,Pe))return r[Pe].then(Ke=>C(Ke)?Ke:{image:be,blobInfo:Ke.blobInfo});{const Ke=_V(n,Pe).then(Je=>(delete r[Pe],{image:be,blobInfo:Je})).catch(Je=>(delete r[Pe],Je));return r[Pe]=Ke,Ke}});return Promise.all(oe)}}},NO=()=>{let r={};const f=(at,Rt)=>({status:at,resultUri:Rt}),w=at=>at in r;return{hasBlobUri:w,getResultUri:at=>{const Rt=r[at];return Rt?Rt.resultUri:null},isPending:at=>w(at)?r[at].status===1:!1,isUploaded:at=>w(at)?r[at].status===2:!1,markPending:at=>{r[at]=f(1,null)},markUploaded:(at,Rt)=>{r[at]=f(2,Rt)},removeFailed:at=>{delete r[at]},destroy:()=>{r={}}}};let pW=0;const vW=()=>{const e=()=>Math.round(Math.random()*4294967295).toString(36);return"s"+new Date().getTime().toString(36)+e()+e()+e()},yW=e=>e+pW+++vW(),bW=()=>{let e=[];const n=Je=>({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"})[Je.toLowerCase()]||"dat",r=(Je,at,Rt,Ht,At)=>{if(C(Je))return f({id:Je,name:Ht,filename:At,blob:at,base64:Rt});if(_(Je))return f(Je);throw new Error("Unknown input type")},f=Je=>{if(!Je.blob||!Je.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");const at=Je.id||yW("blobid"),Rt=Je.name||at,Ht=Je.blob;return{id:J(at),name:J(Rt),filename:J(Je.filename||Rt+"."+n(Ht.type)),blob:J(Ht),base64:J(Je.base64),blobUri:J(Je.blobUri||URL.createObjectURL(Ht)),uri:J(Je.uri)}},w=Je=>{Z(Je.id())||e.push(Je)},B=Je=>de(e,Je).getOrUndefined(),Z=Je=>B(at=>at.id()===Je);return{create:r,add:w,get:Z,getByUri:Je=>B(at=>at.blobUri()===Je),getByData:(Je,at)=>B(Rt=>Rt.base64()===Je&&Rt.blob().type===at),findFirst:B,removeByUri:Je=>{e=ue(e,at=>at.blobUri()===Je?(URL.revokeObjectURL(at.blobUri()),!1):!0)},destroy:()=>{ie(e,Je=>{URL.revokeObjectURL(Je.blobUri())}),e=[]}}},Ree=(e,n)=>{const r={},f=(At,It)=>At?At.replace(/\/$/,"")+"/"+It.replace(/^\//,""):It,w=(At,It)=>new Promise((ln,xn)=>{const yn=new XMLHttpRequest;yn.open("POST",n.url),yn.withCredentials=n.credentials,yn.upload.onprogress=nr=>{It(nr.loaded/nr.total*100)},yn.onerror=()=>{xn("Image upload failed due to a XHR Transport error. Code: "+yn.status)},yn.onload=()=>{if(yn.status<200||yn.status>=300){xn("HTTP Error: "+yn.status);return}const nr=JSON.parse(yn.responseText);if(!nr||!C(nr.location)){xn("Invalid JSON: "+yn.responseText);return}ln(f(n.basePath,nr.location))};const $n=new FormData;$n.append("file",At.blob(),At.filename()),yn.send($n)}),B=R(n.handler)?n.handler:w,Z=()=>new Promise(At=>{At([])}),oe=(At,It)=>({url:It,blobInfo:At,status:!0}),be=(At,It)=>({url:"",blobInfo:At,status:!1,error:It}),Pe=(At,It)=>{ur.each(r[At],ln=>{ln(It)}),delete r[At]},Ke=(At,It,ln)=>(e.markPending(At.blobUri()),new Promise(xn=>{let yn,$n;try{const nr=()=>{yn&&(yn.close(),$n=j)},mr=zn=>{nr(),e.markUploaded(At.blobUri(),zn),Pe(At.blobUri(),oe(At,zn)),xn(oe(At,zn))},Nr=zn=>{nr(),e.removeFailed(At.blobUri()),Pe(At.blobUri(),be(At,zn)),xn(be(At,zn))};$n=zn=>{zn<0||zn>100||X.from(yn).orThunk(()=>X.from(ln).map(Se)).each(Nn=>{yn=Nn,Nn.progressBar.value(zn)})},It(At,$n).then(mr,zn=>{Nr(C(zn)?{message:zn}:zn)})}catch(nr){xn(be(At,nr))}})),Je=At=>At===w,at=At=>{const It=At.blobUri();return new Promise(ln=>{r[It]=r[It]||[],r[It].push(ln)})},Rt=(At,It)=>(At=ur.grep(At,ln=>!e.isUploaded(ln.blobUri())),Promise.all(ur.map(At,ln=>e.isPending(ln.blobUri())?at(ln):Ke(ln,B,It))));return{upload:(At,It)=>!n.url&&Je(B)?Z():Rt(At,It)}},Hx=e=>()=>e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0}),FO=(e,n)=>Ree(n,{url:p4(e),basePath:v4(e),credentials:Mw(e),handler:y4(e)}),$R=e=>{const n=NO(),r=FO(e,n);return{upload:(f,w=!0)=>r.upload(f,w?Hx(e):void 0)}},xW=(e,n)=>e.dom.isEmpty(n.dom)&&k(e.schema.getTextBlockElements()[La(n)]),wW=e=>n=>{xW(e,n)&&di(n,jt.fromHtml('
    '))},CW=e=>{const n=bW();let r,f;const w=NO(),B=[],Z=yn=>$n=>e.selection?yn($n):[],oe=yn=>yn+(yn.indexOf("?")===-1?"?":"&")+new Date().getTime(),be=(yn,$n,nr)=>{let mr=0;do mr=yn.indexOf($n,mr),mr!==-1&&(yn=yn.substring(0,mr)+nr+yn.substr(mr+$n.length),mr+=nr.length-$n.length+1);while(mr!==-1);return yn},Pe=(yn,$n,nr)=>{const mr=`src="${nr}"${nr===Lr.transparentSrc?' data-mce-placeholder="1"':""}`;return yn=be(yn,`src="${$n}"`,mr),yn=be(yn,'data-mce-src="'+$n+'"','data-mce-src="'+nr+'"'),yn},Ke=(yn,$n)=>{ie(e.undoManager.data,nr=>{nr.type==="fragmented"?nr.fragments=Fe(nr.fragments,mr=>Pe(mr,yn,$n)):nr.content=Pe(nr.content,yn,$n)})},Je=(yn,$n)=>{const nr=e.convertURL($n,"src");Ke(yn.src,$n),Kc(jt.fromDom(yn),{src:y1(e)?oe($n):$n,"data-mce-src":nr})},at=()=>(r||(r=FO(e,w)),It().then(Z(yn=>{const $n=Fe(yn,nr=>nr.blobInfo);return r.upload($n,Hx(e)).then(Z(nr=>{const mr=[];let Nr=!1;const zn=Fe(nr,(Nn,er)=>{const{blobInfo:Qr,image:ho}=yn[er];let na=!1;return Nn.status&&cT(e)?(Nn.url&&!or(ho.src,Nn.url)&&(Nr=!0),n.removeByUri(ho.src),mp(e)||Je(ho,Nn.url)):Nn.error&&(Nn.error.remove&&(Ke(ho.src,Lr.transparentSrc),mr.push(ho),na=!0),iW(e,Nn.error.message)),{element:ho,status:Nn.status,uploadUri:Nn.url,blobInfo:Qr,removed:na}});return mr.length>0&&!mp(e)?e.undoManager.transact(()=>{ie(Pg(mr),Nn=>{const er=Rc(Nn);Ua(Nn),er.each(wW(e)),n.removeByUri(Nn.dom.src)})}):Nr&&e.undoManager.dispatchChange(),zn}))}))),Rt=()=>lT(e)?at():Promise.resolve([]),Ht=yn=>We(B,$n=>$n(yn)),At=yn=>{B.push(yn)},It=()=>(f||(f=gW(w,n)),f.findAll(e.getBody(),Ht).then(Z(yn=>{const $n=ue(yn,nr=>C(nr)?(vA(e,nr),!1):nr.uriType!=="blob");return mp(e)||ie($n,nr=>{Ke(nr.image.src,nr.blobInfo.blobUri()),nr.image.src=nr.blobInfo.blobUri(),nr.image.removeAttribute("data-mce-src")}),$n}))),ln=()=>{n.destroy(),w.destroy(),f=r=null},xn=yn=>yn.replace(/src="(blob:[^"]+)"/g,($n,nr)=>{const mr=w.getResultUri(nr);if(mr)return'src="'+mr+'"';let Nr=n.getByUri(nr);return Nr||(Nr=le(e.editorManager.get(),(zn,Nn)=>zn||Nn.editorUpload&&Nn.editorUpload.blobCache.getByUri(nr),void 0)),Nr?'src="data:'+Nr.blob().type+";base64,"+Nr.base64()+'"':$n});return e.on("SetContent",()=>{lT(e)?Rt():It()}),e.on("RawSaveContent",yn=>{yn.content=xn(yn.content)}),e.on("GetContent",yn=>{yn.source_view||yn.format==="raw"||yn.format==="tree"||(yn.content=xn(yn.content))}),e.on("PostRender",()=>{e.parser.addNodeFilter("img",yn=>{ie(yn,$n=>{const nr=$n.attr("src");if(!nr||n.getByUri(nr))return;const mr=w.getResultUri(nr);mr&&$n.attr("src",mr)})})}),{blobCache:n,addFilter:At,uploadImages:at,uploadImagesAuto:Rt,scanForImages:It,destroy:ln}},SW=e=>{const n=e.dom,r=e.schema.type,f={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"left"},inherit:!1,preview:!1},{selector:"img,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginLeft:"0px",marginRight:"auto"},onformat:w=>{n.setStyle(w,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"left"}}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"},{selector:".mce-preview-object",ceFalseOverride:!0,styles:{display:"table",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{marginLeft:"auto",marginRight:"auto"},preview:!1}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"},{selector:"table",collapsed:!1,styles:{marginRight:"0px",marginLeft:"auto"},onformat:w=>{n.setStyle(w,"float",null)},preview:"font-family font-size"},{selector:".mce-preview-object,[data-ephox-embed-iri]",ceFalseOverride:!0,styles:{float:"right"},preview:!1}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li,pre",styles:{textAlign:"justify"},inherit:!1,preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:(()=>{const w={inline:"span",styles:{textDecoration:"line-through"},exact:!0},B={inline:"strike",remove:"all",preserve_attributes:["class","style"]},Z={inline:"s",remove:"all",preserve_attributes:["class","style"]};return r!=="html4"?[Z,w,B]:[w,Z,B]})(),forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{class:"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:(w,B,Z)=>Gr(w)&&w.hasAttribute("href"),onformat:(w,B,Z)=>{ur.each(Z,(oe,be)=>{n.setAttrib(w,be,oe)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":w=>{var B;return(B=w==null?void 0:w.customValue)!==null&&B!==void 0?B:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return ur.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),w=>{f[w]={block:w,remove:"all"}}),f},qv={remove_similar:!0,inherit:!1},Kd={selector:"td,th",...qv},bA={tablecellbackgroundcolor:{styles:{backgroundColor:"%value"},...Kd},tablecellverticalalign:{styles:{"vertical-align":"%value"},...Kd},tablecellbordercolor:{styles:{borderColor:"%value"},...Kd},tablecellclass:{classes:["%value"],...Kd},tableclass:{selector:"table",classes:["%value"],...qv},tablecellborderstyle:{styles:{borderStyle:"%value"},...Kd},tablecellborderwidth:{styles:{borderWidth:"%value"},...Kd}},xA=J(bA),fy=e=>{const n={},r=Z=>k(Z)?n[Z]:n,f=Z=>lt(n,Z),w=(Z,oe)=>{Z&&(C(Z)?(S(oe)||(oe=[oe]),ie(oe,be=>{N(be.deep)&&(be.deep=!El(be)),N(be.split)&&(be.split=!El(be)||$i(be)),N(be.remove)&&El(be)&&!$i(be)&&(be.remove="none"),El(be)&&$i(be)&&(be.mixed=!0,be.block_expand=!0),C(be.classes)&&(be.classes=be.classes.split(/\s+/))}),n[Z]=oe):Ft(Z,(be,Pe)=>{w(Pe,be)}))},B=Z=>(Z&&n[Z]&&delete n[Z],n);return w(SW(e)),w(xA()),w(S4(e)),{get:r,has:f,register:w,unregister:B}},og=ur.each,Ou=Cs.DOM,zx=e=>k(e)&&_(e),OR=(e,n)=>{const r=n&&n.schema||_h({}),f=(be,Pe)=>{Pe.classes.length>0&&Ou.addClass(be,Pe.classes.join(" ")),Ou.setAttribs(be,Pe.attrs)},w=be=>{const Pe=C(be)?{name:be,classes:[],attrs:{}}:be,Ke=Ou.create(Pe.name);return f(Ke,Pe),Ke},B=(be,Pe)=>{const Ke=r.getElementRule(be.nodeName.toLowerCase()),Je=Ke==null?void 0:Ke.parentsRequired;return Je&&Je.length?Pe&&Ve(Je,Pe)?Pe:Je[0]:!1},Z=(be,Pe,Ke)=>{let Je;const at=Pe[0],Rt=zx(at)?at.name:void 0,Ht=B(be,Rt);if(Ht)Rt===Ht?(Je=at,Pe=Pe.slice(1)):Je=Ht;else if(at)Je=at,Pe=Pe.slice(1);else if(!Ke)return be;const At=Je?w(Je):Ou.create("div");At.appendChild(be),Ke&&ur.each(Ke,ln=>{const xn=w(ln);At.insertBefore(xn,be)});const It=zx(Je)?Je.siblings:void 0;return Z(At,Pe,It)},oe=Ou.create("div");if(e.length>0){const be=e[0],Pe=w(be),Ke=zx(be)?be.siblings:void 0;oe.appendChild(Z(Pe,e.slice(1),Ke))}return oe},PR=e=>{e=ur.trim(e);let n="div";const r={name:n,classes:[],attrs:{},selector:e};return e!=="*"&&(n=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,(f,w,B,Z,oe)=>{switch(w){case"#":r.attrs.id=B;break;case".":r.classes.push(B);break;case":":ur.inArray("checked disabled enabled read-only required".split(" "),B)!==-1&&(r.attrs[B]=B);break}if(Z==="["){const be=oe.match(/([\w\-]+)(?:\=\"([^\"]+))?/);be&&(r.attrs[be[1]]=be[2])}return""})),r.name=n||"div",r},IR=e=>C(e)?(e=e.split(/\s*,\s*/)[0],e=e.replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),ur.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),n=>{const r=ur.map(n.split(/(?:~\+|~|\+)/),PR),f=r.pop();return r.length&&(f.siblings=r),f}).reverse()):[],BO=(e,n)=>{let r="",f=hT(e);if(f==="")return"";const w=at=>C(at)?at.replace(/%(\w+)/g,""):"",B=(at,Rt)=>Ou.getStyle(Rt??e.getBody(),at,!0);if(C(n)){const at=e.formatter.get(n);if(!at)return"";n=at[0]}if("preview"in n){const at=n.preview;if(at===!1)return"";f=at||f}let Z=n.block||n.inline||"span",oe;const be=IR(n.selector);be.length>0?(be[0].name||(be[0].name=Z),Z=n.selector,oe=OR(be,e)):oe=OR([Z],e);const Pe=Ou.select(Z,oe)[0]||oe.firstChild;og(n.styles,(at,Rt)=>{const Ht=w(at);Ht&&Ou.setStyle(Pe,Rt,Ht)}),og(n.attributes,(at,Rt)=>{const Ht=w(at);Ht&&Ou.setAttrib(Pe,Rt,Ht)}),og(n.classes,at=>{const Rt=w(at);Ou.hasClass(Pe,Rt)||Ou.addClass(Pe,Rt)}),e.dispatch("PreviewFormats"),Ou.setStyles(oe,{position:"absolute",left:-65535}),e.getBody().appendChild(oe);const Ke=B("fontSize"),Je=/px$/.test(Ke)?parseInt(Ke,10):0;return og(f.split(" "),at=>{let Rt=B(at,Pe);if(!(at==="background-color"&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(Rt)&&(Rt=B(at),Xp(Rt).toLowerCase()==="#ffffff"))&&!(at==="color"&&Xp(Rt).toLowerCase()==="#000000")){if(at==="font-size"&&/em|%$/.test(Rt)){if(Je===0)return;Rt=parseFloat(Rt)/(/%$/.test(Rt)?100:1)*Je+"px"}at==="border"&&Rt&&(r+="padding:0 2px;"),r+=at+":"+Rt+";"}}),e.dispatch("AfterPreviewFormats"),Ou.remove(oe),r},HO=e=>{e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(let n=1;n<=6;n++)e.addShortcut("access+"+n,"",["FormatBlock",!1,"h"+n]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},dy=e=>{const n=fy(e),r=Us({});return HO(e),aV(e),mp(e)||vV(r,e),{get:n.get,has:n.has,register:n.register,unregister:n.unregister,apply:(f,w,B)=>{SU(e,f,w,B)},remove:(f,w,B,Z)=>{TU(e,f,w,B,Z)},toggle:(f,w,B)=>{kU(e,f,w,B)},match:(f,w,B,Z)=>hO(e,f,w,B,Z),closest:f=>kR(e,f),matchAll:(f,w)=>mO(e,f,w),matchNode:(f,w,B,Z)=>TR(e,f,w,B,Z),canApply:f=>gO(e,f),formatChanged:(f,w,B,Z)=>ud(e,r,f,w,B,Z),getCssText:Q(BO,e)}},NR=e=>{switch(e.toLowerCase()){case"undo":case"redo":case"mcefocus":return!0;default:return!1}},zO=(e,n,r)=>{const f=Us(!1),w=be=>{dA(n,!1,r),n.add({},be)};e.on("init",()=>{n.add()}),e.on("BeforeExecCommand",be=>{const Pe=be.command;NR(Pe)||(iO(n,r),n.beforeChange())}),e.on("ExecCommand",be=>{const Pe=be.command;NR(Pe)||w(be)}),e.on("ObjectResizeStart cut",()=>{n.beforeChange()}),e.on("SaveContent ObjectResized blur",w),e.on("dragend",w),e.on("keyup",be=>{const Pe=be.keyCode;if(be.isDefaultPrevented())return;const Ke=Lr.os.isMacOS()&&be.key==="Meta";(Pe>=33&&Pe<=36||Pe>=37&&Pe<=40||Pe===45||be.ctrlKey||Ke)&&(w(),e.nodeChanged()),(Pe===46||Pe===8)&&e.nodeChanged(),f.get()&&n.typing&&!xR(fA(e),n.data[0])&&(e.isDirty()||e.setDirty(!0),e.dispatch("TypingUndo"),f.set(!1),e.nodeChanged())}),e.on("keydown",be=>{const Pe=be.keyCode;if(be.isDefaultPrevented())return;if(Pe>=33&&Pe<=36||Pe>=37&&Pe<=40||Pe===45){n.typing&&w(be);return}const Ke=be.ctrlKey&&!be.altKey||be.metaKey;if((Pe<16||Pe>20)&&Pe!==224&&Pe!==91&&!n.typing&&!Ke){n.beforeChange(),dA(n,!0,r),n.add({},be),f.set(!0);return}(Lr.os.isMacOS()?be.metaKey:be.ctrlKey&&!be.altKey)&&n.beforeChange()}),e.on("mousedown",be=>{n.typing&&w(be)});const B=be=>be.inputType==="insertReplacementText",Z=be=>be.inputType==="insertText"&&be.data===null,oe=be=>be.inputType==="insertFromPaste"||be.inputType==="insertFromDrop";e.on("input",be=>{be.inputType&&(B(be)||Z(be)||oe(be))&&w(be)}),e.on("AddUndo Undo Redo ClearUndos",be=>{be.isDefaultPrevented()||e.nodeChanged()})},VO=e=>{e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo")},uS=e=>{const n=Em(),r=Us(0),f=Us(0),w={data:[],typing:!1,beforeChange:()=>{See(e,r,n)},add:(B,Z)=>cc(e,w,f,r,n,B,Z),dispatchChange:()=>{e.setDirty(!0);const B=fA(e);B.bookmark=dv(e.selection),e.dispatch("change",{level:B,lastLevel:qe(w.data,f.get()).getOrUndefined()})},undo:()=>uO(e,w,r,f),redo:()=>fO(e,f,w.data),clear:()=>{dO(e,w,f)},reset:()=>{bU(e,w)},hasUndo:()=>xU(e,w,f),hasRedo:()=>hA(e,w,f),transact:B=>wU(e,w,r,B),ignore:B=>{SR(e,r,B)},extra:(B,Z)=>{CU(e,w,f,B,Z)}};return mp(e)||zO(e,w,r),VO(e),w},UO=[9,27,Wr.HOME,Wr.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,Wr.DOWN,Wr.UP,Wr.LEFT,Wr.RIGHT].concat(Lr.browser.isFirefox()?[224]:[]),FR="data-mce-placeholder",BR=e=>e.type==="keydown"||e.type==="keyup",HR=e=>{const n=e.keyCode;return n===Wr.BACKSPACE||n===Wr.DELETE},pp=e=>{if(BR(e)){const n=e.keyCode;return!HR(e)&&(Wr.metaKeyPressed(e)||e.altKey||n>=112&&n<=123||Ve(UO,n))}else return!1},e0=e=>BR(e)&&!(HR(e)||e.type==="keyup"&&e.keyCode===229),Xd=(e,n,r)=>{if(Za(jt.fromDom(n),!1)){const f=n.firstElementChild;return f?e.getStyle(n.firstElementChild,"padding-left")||e.getStyle(n.firstElementChild,"padding-right")?!1:r===f.nodeName.toLowerCase():!0}else return!1},TW=e=>{var n;const r=e.dom,f=ac(e),w=(n=i$(e))!==null&&n!==void 0?n:"",B=(Z,oe)=>{if(pp(Z))return;const be=e.getBody(),Pe=e0(Z)?!1:Xd(r,be,f);(r.getAttrib(be,FR)!==""!==Pe||oe)&&(r.setAttrib(be,FR,Pe?w:null),r.setAttrib(be,"aria-placeholder",Pe?w:null),c_(e,Pe),e.on(Pe?"keydown":"keyup",B),e.off(Pe?"keyup":"keydown",B))};St(w)&&e.on("init",Z=>{B(Z,!0),e.on("change SetContent ExecCommand",B),e.on("paste",oe=>Ef.setEditorTimeout(e,()=>B(oe)))})},kW=(e,n)=>({block:e,position:n}),AW=(e,n)=>({from:e,to:n}),zR=(e,n)=>{const r=jt.fromDom(e),f=jt.fromDom(n.container());return LC(r,f).map(w=>kW(w,n))},MW=e=>!Ba(e.from.block,e.to.block),WO=(e,n)=>Xc(n,w=>bc(w)||wl(w.dom),w=>Ba(w,e)).filter(sl).getOr(e),EW=(e,n)=>{const r=jt.fromDom(e);return Ba(WO(r,n.from.block),WO(r,n.to.block))},_W=e=>fa(e.from.block.dom)===!1&&fa(e.to.block.dom)===!1,RW=e=>{const n=r=>En(r)||ib(r.dom);return n(e.from.block)&&n(e.to.block)},LW=(e,n,r)=>Ja(r.position.getNode())&&!Za(r.block)?_v(!1,r.block.dom).bind(f=>f.isEqual(r.position)?dl(n,e,f).bind(w=>zR(e,w)):X.some(r)).getOr(r):r,DW=(e,n,r)=>{const f=zR(e,In.fromRangeStart(r)),w=f.bind(B=>dl(n,e,B.position).bind(Z=>zR(e,Z).map(oe=>LW(e,n,oe))));return Es(f,w,AW).filter(B=>MW(B)&&EW(e,B)&&_W(B)&&RW(B))},$W=(e,n,r)=>r.collapsed?DW(e,n,r):X.none(),VR=(e,n)=>{const r=zi(e);return Me(r,f=>n.isBlock(La(f))).fold(J(r),f=>r.slice(0,f))},wA=(e,n)=>{const r=VR(e,n);return ie(r,Ua),r},UR=(e,n)=>{const r=Ym(n,e);return de(r.reverse(),f=>Za(f)).each(Ua)},OW=e=>ue(F0(e),n=>!Za(n)).length===0,PW=(e,n,r,f,w)=>{if(Za(r))return U(r),Sc(r.dom);OW(w)&&Za(n)&&Ri(w,jt.fromTag("br"));const B=Nc(r.dom,In.before(w.dom));return ie(wA(n,f),Z=>{Ri(w,Z)}),UR(e,n),B},GO=(e,n)=>e.isInline(La(n)),ZO=(e,n,r,f)=>{if(Za(r)){if(Za(n)){const Z=pe((oe=>{const be=(Pe,Ke)=>pm(Pe).fold(()=>Ke,Je=>GO(f,Je)?be(Je,Ke.concat(tu(Je))):Ke);return be(oe,[])})(r),(oe,be)=>(ym(oe,be),be),ec());Ad(n),di(n,Z)}return Ua(r),Sc(n.dom)}const w=kf(r.dom);return ie(wA(n,f),B=>{di(r,B)}),UR(e,n),w},WR=(e,n)=>{const r=Ym(n,e);return X.from(r[r.length-1])},jO=(e,n)=>Dl(n,e)?WR(n,e):X.none(),GR=(e,n)=>{_v(e,n.dom).bind(r=>X.from(r.getNode())).map(jt.fromDom).filter(vf).each(Ua)},CA=(e,n,r,f)=>(GR(!0,n),GR(!1,r),jO(n,r).fold(Q(ZO,e,n,r,f),Q(PW,e,n,r,f))),YO=(e,n,r,f,w)=>n?CA(e,f,r,w):CA(e,r,f,w),ZR=(e,n)=>{const r=jt.fromDom(e.getBody());return $W(r.dom,n,e.selection.getRng()).map(w=>()=>{YO(r,n,w.from.block,w.to.block,e.schema).each(B=>{e.selection.setRng(B.toRange())})})},ag=(e,n,r)=>{const f=n.getRng();return Es(LC(e,jt.fromDom(f.startContainer)),LC(e,jt.fromDom(f.endContainer)),(w,B)=>Ba(w,B)?X.none():X.some(()=>{f.deleteContents(),YO(e,!0,w,B,r).each(Z=>{n.setRng(Z.toRange())})})).getOr(X.none())},dd=(e,n)=>{const r=jt.fromDom(n),f=Q(Ba,e);return Js(r,bc,f).isSome()},SA=(e,n)=>dd(e,n.startContainer)||dd(e,n.endContainer),KO=(e,n)=>{const r=Nc(e.dom,In.fromRangeStart(n)).isNone(),f=ic(e.dom,In.fromRangeEnd(n)).isNone();return!SA(e,n)&&r&&f},TA=e=>X.some(()=>{e.setContent(""),e.selection.setCursorLocation()}),XO=e=>{const n=jt.fromDom(e.getBody()),r=e.selection.getRng();return KO(n,r)?TA(e):ag(n,e.selection,e.schema)},kA=(e,n)=>e.selection.isCollapsed()?X.none():XO(e),sg=(e,n,r,f,w)=>X.from(n._selectionOverrides.showCaret(e,r,f,w)),JO=e=>{const n=e.ownerDocument.createRange();return n.selectNode(e),n},Vx=(e,n)=>e.dispatch("BeforeObjectSelected",{target:n}).isDefaultPrevented()?X.none():X.some(JO(n)),QO=(e,n,r)=>{const f=Kw(1,e.getBody(),n),w=In.fromRangeStart(f),B=w.getNode();if(Ub(B))return sg(1,e,B,!w.isAtEnd(),!1);const Z=w.getNode(!0);if(Ub(Z))return sg(1,e,Z,!1,!1);const oe=ay(e.dom.getRoot(),w.getNode());return Ub(oe)?sg(1,e,oe,!1,r):X.none()},Ux=(e,n,r)=>n.collapsed?QO(e,n,r).getOr(n):n,jR=e=>lp(e)||kC(e),IW=e=>Gh(e)||vx(e),NW=(e,n)=>{ir(n)&&n.data.length===0&&e.remove(n)},qO=(e,n,r,f,w,B)=>{sg(f,e,B.getNode(!w),w,!0).each(Z=>{if(n.collapsed){const oe=n.cloneRange();w?oe.setEnd(Z.startContainer,Z.startOffset):oe.setStart(Z.endContainer,Z.endOffset),oe.deleteContents()}else n.deleteContents();e.selection.setRng(Z)}),NW(e.dom,r)},FW=(e,n)=>{const r=e.selection.getRng();if(!ir(r.commonAncestorContainer))return X.none();const f=n?gi.Forwards:gi.Backwards,w=nd(e.getBody()),B=Q($T,n?w.next:w.prev),Z=n?jR:IW,oe=Bm(f,e.getBody(),r),be=B(oe),Pe=be&&Ta(n,be);if(!Pe||!Xw(oe,Pe))return X.none();if(Z(Pe))return X.some(()=>qO(e,r,oe.getNode(),f,n,Pe));const Ke=B(Pe);return Ke&&Z(Ke)&&Xw(Pe,Ke)?X.some(()=>qO(e,r,oe.getNode(),f,n,Ke)):X.none()},AA=(e,n)=>FW(e,n),YR=(e,n)=>{const r=e.getBody();return n?Sc(r).filter(lp):kf(r).filter(Gh)},KR=e=>{const n=e.selection.getRng();return!n.collapsed&&(YR(e,!0).exists(r=>r.isEqual(In.fromRangeStart(n)))||YR(e,!1).exists(r=>r.isEqual(In.fromRangeEnd(n))))},XR=e=>k(e)&&(bc(jt.fromDom(e))||yf(jt.fromDom(e))),$f=ed.generate([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),BW=(e,n)=>{const r=n.getNode(!e),f=e?"after":"before";return Gr(r)&&r.getAttribute("data-mce-caret")===f},HW=(e,n,r,f,w)=>{const B=Z=>w.isInline(Z.nodeName.toLowerCase())&&!td(r,f,e);return DT(!n,r).fold(()=>DT(n,f).fold(ne,B),B)},eP=(e,n,r,f)=>{const w=f.getNode(!n);return LC(jt.fromDom(e),jt.fromDom(r.getNode())).map(B=>Za(B)?$f.remove(B.dom):$f.moveToElement(w)).orThunk(()=>X.some($f.moveToElement(w)))},tP=(e,n,r,f)=>dl(n,e,r).bind(w=>XR(w.getNode())||HW(e,n,r,w,f)?X.none():n&&fa(w.getNode())||!n&&fa(w.getNode(!0))?eP(e,n,r,w):n&&Gh(r)||!n&&lp(r)?X.some($f.moveToPosition(w)):X.none()),zW=(e,n)=>M(n)?X.none():e&&fa(n.nextSibling)?X.some($f.moveToElement(n.nextSibling)):!e&&fa(n.previousSibling)?X.some($f.moveToElement(n.previousSibling)):X.none(),VW=(e,n,r)=>r.fold(f=>X.some($f.remove(f)),f=>X.some($f.moveToElement(f)),f=>td(n,f,e)?X.none():X.some($f.moveToPosition(f))),MA=(e,n,r,f)=>BW(n,r)?zW(n,r.getNode(!n)).orThunk(()=>tP(e,n,r,f)):tP(e,n,r,f).bind(w=>VW(e,r,w)),JR=(e,n,r,f)=>{const w=Kw(n?1:-1,e,r),B=In.fromRangeStart(w),Z=jt.fromDom(e);return!n&&Gh(B)?X.some($f.remove(B.getNode(!0))):n&&lp(B)?X.some($f.remove(B.getNode())):!n&&lp(B)&&MC(Z,B,f)?dz(Z,B,f).map(oe=>$f.remove(oe.getNode())):n&&Gh(B)&&AC(Z,B,f)?hz(Z,B,f).map(oe=>$f.remove(oe.getNode())):MA(e,n,B,f)},UW=(e,n)=>r=>(e._selectionOverrides.hideFakeCaret(),up(e,n,jt.fromDom(r)),!0),WW=(e,n)=>r=>{const f=n?In.before(r):In.after(r);return e.selection.setRng(f.toRange()),!0},GW=e=>n=>(e.selection.setRng(n.toRange()),!0),nP=(e,n)=>X.from(ay(e.getBody(),n)),rP=(e,n)=>{const r=e.selection.getNode();return nP(e,r).filter(fa).fold(()=>JR(e.getBody(),n,e.selection.getRng(),e.schema).map(f=>()=>f.fold(UW(e,n),WW(e,n),GW(e))),()=>X.some(j))},ZW=e=>{ie(Vi(e,".mce-offscreen-selection"),Ua)},jW=(e,n)=>{const r=e.selection.getNode();return fa(r)&&!Bg(r)?nP(e,r.parentNode).filter(fa).fold(()=>X.some(()=>{ZW(jt.fromDom(e.getBody())),up(e,n,jt.fromDom(e.selection.getNode())),kk(e)}),()=>X.some(j)):KR(e)?X.some(()=>{DC(e,e.selection.getRng(),jt.fromDom(e.getBody()))}):X.none()},EA=e=>{const n=e.dom,r=e.selection,f=ay(e.getBody(),r.getNode());if(wl(f)&&n.isBlock(f)&&n.isEmpty(f)){const w=n.create("br",{"data-mce-bogus":"1"});n.setHTML(f,""),f.appendChild(w),r.setRng(In.before(w).toRange())}return!0},QR=(e,n)=>e.selection.isCollapsed()?rP(e,n):jW(e,n),YW=(e,n)=>{const r=In.fromRangeStart(e.selection.getRng());return dl(n,e.getBody(),r).filter(f=>n?sz(f):iz(f)).bind(f=>M1(n?0:-1,f)).map(f=>()=>e.selection.select(f))},qR=(e,n)=>e.selection.isCollapsed()?YW(e,n):X.none(),Wx=ir,oP=e=>Wx(e)&&e.data[0]===ve,aP=e=>Wx(e)&&e.data[e.data.length-1]===ve,sP=e=>{var n;return((n=e.ownerDocument)!==null&&n!==void 0?n:document).createTextNode(ve)},_A=e=>{var n;if(Wx(e.previousSibling))return aP(e.previousSibling)||e.previousSibling.appendData(ve),e.previousSibling;if(Wx(e))return oP(e)||e.insertData(0,ve),e;{const r=sP(e);return(n=e.parentNode)===null||n===void 0||n.insertBefore(r,e),r}},RA=e=>{var n,r;if(Wx(e.nextSibling))return oP(e.nextSibling)||e.nextSibling.insertData(0,ve),e.nextSibling;if(Wx(e))return aP(e)||e.appendData(ve),e;{const f=sP(e);return e.nextSibling?(n=e.parentNode)===null||n===void 0||n.insertBefore(f,e.nextSibling):(r=e.parentNode)===null||r===void 0||r.appendChild(f),f}},LA=(e,n)=>e?_A(n):RA(n),KW=Q(LA,!0),DA=Q(LA,!1),iP=(e,n)=>ir(e.container())?LA(n,e.container()):LA(n,e.getNode()),lP=(e,n)=>{const r=n.get();return r&&e.container()===r&&yt(r)},eL=(e,n)=>n.fold(r=>{Xi(e.get());const f=KW(r);return e.set(f),X.some(In(f,f.length-1))},r=>Sc(r).map(f=>{if(lP(f,e)){const w=e.get();return In(w,1)}else{Xi(e.get());const w=iP(f,!0);return e.set(w),In(w,1)}}),r=>kf(r).map(f=>{if(lP(f,e)){const w=e.get();return In(w,w.length-1)}else{Xi(e.get());const w=iP(f,!1);return e.set(w),In(w,w.length-1)}}),r=>{Xi(e.get());const f=DA(r);return e.set(f),X.some(In(f,1))}),cP=(e,n)=>{for(let r=0;r{const r=Ph(n,e);return r||e},XW=(e,n,r)=>{const f=ry(r),w=uP(n,f.container());return Ud(e,w,f).fold(()=>ic(w,f).bind(Q(Ud,e,w)).map(B=>su.before(B)),X.none)},JW=(e,n)=>ep(e,n)===null,fP=(e,n,r)=>Ud(e,n,r).filter(Q(JW,n)),QW=(e,n,r)=>{const f=_C(r);return fP(e,n,f).bind(w=>Nc(w,f).isNone()?X.some(su.start(w)):X.none())},qW=(e,n,r)=>{const f=ry(r);return fP(e,n,f).bind(w=>ic(w,f).isNone()?X.some(su.end(w)):X.none())},Lee=(e,n,r)=>{const f=_C(r),w=uP(n,f.container());return Ud(e,w,f).fold(()=>Nc(w,f).bind(Q(Ud,e,w)).map(B=>su.after(B)),X.none)},hd=e=>!c8($A(e)),Jd=(e,n,r)=>cP([XW,QW,qW,Lee],[e,n,r]).filter(hd),$A=e=>e.fold(K,K,K,K),tL=e=>e.fold(J("before"),J("start"),J("end"),J("after")),OA=e=>e.fold(su.before,su.before,su.after,su.after),PA=e=>e.fold(su.start,su.start,su.end,su.end),eG=(e,n)=>tL(e)===tL(n)&&$A(e)===$A(n),dP=(e,n,r,f,w,B)=>Es(Ud(n,r,f),Ud(n,r,w),(Z,oe)=>Z!==oe&&Wd(r,Z,oe)?su.after(e?Z:oe):B).getOr(B),tG=(e,n)=>e.fold(fe,r=>!eG(r,n)),nG=(e,n,r,f,w)=>{const B=Ta(e,w);return dl(e,r,B).map(Q(Ta,e)).fold(()=>f.map(OA),be=>Jd(n,r,be).map(Q(dP,e,n,r,B,be)).filter(Q(tG,f))).filter(hd)},rG=(e,n)=>e?n.fold(P(X.some,su.start),X.none,P(X.some,su.after),X.none):n.fold(X.none,P(X.some,su.before),X.none,P(X.some,su.end)),Gx=(e,n,r,f)=>{const w=Ta(e,f),B=Jd(n,r,w);return Jd(n,r,w).bind(Q(rG,e)).orThunk(()=>nG(e,n,r,B,f))},hP=e=>R(e.selection.getSel().modify),nL=(e,n,r)=>{const f=e?1:-1;return n.setRng(In(r.container(),r.offset()+f).toRange()),n.getSel().modify("move",e?"forward":"backward","word"),!0},mP=(e,n)=>{const r=n.selection.getRng(),f=e?In.fromRangeEnd(r):In.fromRangeStart(r);return hP(n)?e&&mn(f)?nL(!0,n.selection,f):!e&&An(f)?nL(!1,n.selection,f):!1:!1};var Qd;(function(e){e[e.Br=0]="Br",e[e.Block=1]="Block",e[e.Wrap=2]="Wrap",e[e.Eol=3]="Eol"})(Qd||(Qd={}));const IA=(e,n)=>e===gi.Backwards?ot(n):n,oG=(e,n,r)=>e===gi.Forwards?n.next(r):n.prev(r),aG=(e,n,r,f)=>Ja(f.getNode(n===gi.Forwards))?Qd.Br:td(r,f)===!1?Qd.Block:Qd.Wrap,sG=(e,n,r,f)=>{const w=nd(r);let B=f;const Z=[];for(;B;){const oe=oG(n,w,B);if(!oe)break;if(Ja(oe.getNode(!1)))return n===gi.Forwards?{positions:IA(n,Z).concat([oe]),breakType:Qd.Br,breakAt:X.some(oe)}:{positions:IA(n,Z),breakType:Qd.Br,breakAt:X.some(oe)};if(!oe.isVisible()){B=oe;continue}if(e(B,oe)){const be=aG(r,n,B,oe);return{positions:IA(n,Z),breakType:be,breakAt:X.some(oe)}}Z.push(oe),B=oe}return{positions:IA(n,Z),breakType:Qd.Eol,breakAt:X.none()}},iG=(e,n,r,f)=>n(r,f).breakAt.map(w=>{const B=n(r,w).positions;return e===gi.Backwards?B.concat(w):[w].concat(B)}).getOr([]),gP=(e,n)=>le(e,(r,f)=>r.fold(()=>X.some(f),w=>Es(gt(w.getClientRects()),gt(f.getClientRects()),(B,Z)=>{const oe=Math.abs(n-B.left);return Math.abs(n-Z.left)<=oe?f:w}).or(r)),X.none()),sf=(e,n)=>gt(n.getClientRects()).bind(r=>gP(e,r.left)),fS=Q(sG,In.isAbove,-1),dS=Q(sG,In.isBelow,1),t0=Q(iG,-1,fS),rL=Q(iG,1,dS),pP=(e,n)=>fS(e,n).breakAt.isNone(),hS=(e,n)=>dS(e,n).breakAt.isNone(),lG=e=>Sc(e).map(n=>[n].concat(dS(e,n).positions)).getOr([]),cG=e=>kf(e).map(n=>fS(e,n).positions.concat(n)).getOr([]),uG=(e,n)=>sf(t0(e,n),n),fG=(e,n)=>sf(rL(e,n),n),dG=fa,vP=(e,n)=>Math.abs(e.left-n),ig=(e,n)=>Math.abs(e.right-n),hG=e=>ft(e,"node"),yP=(e,n)=>fn(e,(r,f)=>{const w=Math.min(vP(r,n),ig(r,n)),B=Math.min(vP(f,n),ig(f,n));return B===w&&hG(f)&&dG(f.node)||B{const n=r=>Fe(r,f=>{const w=jg(f);return w.node=e,w});if(Gr(e))return n(e.getClientRects());if(ir(e)){const r=e.ownerDocument.createRange();return r.setStart(e,0),r.setEnd(e,e.data.length),n(r.getClientRects())}else return[]},bP=e=>ze(e,mG);var mS;(function(e){e[e.Up=-1]="Up",e[e.Down=1]="Down"})(mS||(mS={}));const oL=(e,n,r,f)=>{let w=f;for(;w=Sv(w,e,sa,n);)if(r(w))return},NA=(e,n,r,f,w,B)=>{let Z=0;const oe=[],be=Je=>{let at=bP([Je]);e===-1&&(at=at.reverse());for(let Rt=0;Rt0&&n(Ht,Zt(oe))&&Z++,Ht.line=Z,w(Ht))return!0;oe.push(Ht)}}return!1},Pe=Zt(B.getClientRects());if(!Pe)return oe;const Ke=B.getNode();return Ke&&(be(Ke),oL(e,f,be,Ke)),oe},aL=(e,n)=>n.line>e,xP=(e,n)=>n.line===e,wP=Q(NA,mS.Up,Rm,Kg),CP=Q(NA,mS.Down,Kg,Rm),SP=e=>Zt(e.getClientRects()),gS=(e,n,r,f)=>{const w=nd(n);let B,Z,oe,be;const Pe=[];let Ke=0;e===1?(B=w.next,Z=Kg,oe=Rm,be=In.after(f)):(B=w.prev,Z=Rm,oe=Kg,be=In.before(f));const Je=SP(be);do{if(!be.isVisible())continue;const at=SP(be);if(oe(at,Je))continue;Pe.length>0&&Z(at,Zt(Pe))&&Ke++;const Rt=jg(at);if(Rt.position=be,Rt.line=Ke,r(Rt))return Pe;Pe.push(Rt)}while(be=B(be));return Pe},pS=e=>n=>aL(e,n),FA=e=>n=>xP(e,n),lg=(e,n)=>{e.selection.setRng(n),J1(e,e.selection.getRng())},BA=(e,n,r)=>X.some(Ux(e,n,r)),sL=(e,n,r,f,w,B)=>{const Z=n===gi.Forwards,oe=nd(e.getBody()),be=Q($T,Z?oe.next:oe.prev),Pe=Z?f:w;if(!r.collapsed){const Ht=sw(r);if(B(Ht))return sg(n,e,Ht,n===gi.Backwards,!1);if(KR(e)){const At=r.cloneRange();return At.collapse(n===gi.Backwards),X.from(At)}}const Ke=Bm(n,e.getBody(),r);if(Pe(Ke))return Vx(e,Ke.getNode(!Z));let Je=be(Ke);const at=vn(r);if(Je)Je=Ta(Z,Je);else return at?X.some(r):X.none();if(Pe(Je))return sg(n,e,Je.getNode(!Z),Z,!1);const Rt=be(Je);return Rt&&Pe(Rt)&&Xw(Je,Rt)?sg(n,e,Rt.getNode(!Z),Z,!1):at?BA(e,Je.toRange(),!1):X.none()},vS=(e,n,r,f,w,B)=>{const Z=Bm(n,e.getBody(),r),oe=Zt(Z.getClientRects()),be=n===mS.Down,Pe=e.getBody();if(!oe)return X.none();if(KR(e)){const It=be?In.fromRangeEnd(r):In.fromRangeStart(r);return(be?fG:uG)(Pe,It).orThunk(()=>X.from(It)).map(xn=>xn.toRange())}const Je=(be?CP:wP)(Pe,pS(1),Z),at=ue(Je,FA(1)),Rt=oe.left,Ht=yP(at,Rt);if(Ht&&B(Ht.node)){const It=Math.abs(Rt-Ht.left),ln=Math.abs(Rt-Ht.right);return sg(n,e,Ht.node,ItUx(e,It.toRange(),!1)):X.none()},yS=(e,n)=>{const r=e.selection.getRng(),f=n?In.fromRangeEnd(r):In.fromRangeStart(r),w=jw(f.container(),e.getBody());if(n){const B=dS(w,f);return ut(B.positions)}else{const B=fS(w,f);return gt(B.positions)}},Zx=(e,n,r)=>yS(e,n).filter(r).exists(f=>(e.selection.setRng(f.toRange()),!0)),HA=(e,n)=>{const r=e.dom.createRng();r.setStart(n.container(),n.offset()),r.setEnd(n.container(),n.offset()),e.selection.setRng(r)},iL=(e,n)=>{e?n.setAttribute("data-mce-selected","inline-boundary"):n.removeAttribute("data-mce-selected")},TP=(e,n,r)=>eL(n,r).map(f=>(HA(e,f),r)),gG=(e,n,r)=>{const f=In.fromRangeStart(e);if(e.collapsed)return f;{const w=In.fromRangeEnd(e);return r?Nc(n,w).getOr(w):ic(n,f).getOr(f)}},kP=(e,n,r)=>{const f=e.getBody(),w=gG(e.selection.getRng(),f,r),B=Q(ny,e);return Gx(r,B,f,w).bind(oe=>TP(e,n,oe))},pG=(e,n,r)=>{const f=Fe(Vi(jt.fromDom(n.getRoot()),'*[data-mce-selected="inline-boundary"]'),Z=>Z.dom),w=ue(f,e),B=ue(r,e);ie(dt(w,B),Q(iL,!1)),ie(dt(B,w),Q(iL,!0))},AP=(e,n)=>{const r=n.get();if(e.selection.isCollapsed()&&!e.composing&&r){const f=In.fromRangeStart(e.selection.getRng());In.isTextPosition(f)&&!Dz(f)&&(HA(e,MT(r,f)),n.set(null))}},Dee=(e,n,r,f)=>{if(n.selection.isCollapsed()){const w=ue(f,e);ie(w,B=>{const Z=In.fromRangeStart(n.selection.getRng());Jd(e,n.getBody(),Z).bind(oe=>TP(n,r,oe))})}},MP=(e,n,r)=>Jg(e)?kP(e,n,r).isSome():!1,EP=(e,n,r)=>Jg(n)?mP(e,n):!1,vG=e=>{const n=Us(null),r=Q(ny,e);return e.on("NodeChange",f=>{Jg(e)&&(pG(r,e.dom,f.parents),AP(e,n),Dee(r,e,n,f.parents))}),n},yG=Q(EP,!0),bG=Q(EP,!1),zA=(e,n,r)=>{if(Jg(e)){const f=yS(e,n).getOrThunk(()=>{const w=e.selection.getRng();return n?In.fromRangeEnd(w):In.fromRangeStart(w)});return Jd(Q(ny,e),e.getBody(),f).exists(w=>{const B=OA(w);return eL(r,B).exists(Z=>(HA(e,Z),!0))})}else return!1},xG=(e,n)=>{const r=document.createRange();return r.setStart(e.container(),e.offset()),r.setEnd(n.container(),n.offset()),r},wG=e=>Es(Sc(e),kf(e),(n,r)=>{const f=Ta(!0,n),w=Ta(!1,r);return ic(e,f).forall(B=>B.isEqual(w))}).getOr(!0),lL=(e,n)=>r=>eL(n,r).map(f=>()=>HA(e,f)),_P=(e,n,r,f)=>{const w=e.getBody(),B=Q(ny,e);e.undoManager.ignore(()=>{e.selection.setRng(xG(r,f)),RC(e),Jd(B,w,In.fromRangeStart(e.selection.getRng())).map(PA).bind(lL(e,n)).each(ce)}),e.nodeChanged()},hy=(e,n)=>{const r=Ph(n,e);return r||e},RP=(e,n,r,f)=>{const w=hy(e.getBody(),f.container()),B=Q(ny,e),Z=Jd(B,w,f);return Z.bind(be=>r?be.fold(J(X.some(PA(be))),X.none,J(X.some(OA(be))),X.none):be.fold(X.none,J(X.some(OA(be))),X.none,J(X.some(PA(be))))).map(lL(e,n)).getOrThunk(()=>{const be=Nh(r,w,f),Pe=be.bind(Ke=>Jd(B,w,Ke));return Es(Z,Pe,()=>Ud(B,w,f).bind(Ke=>wG(Ke)?X.some(()=>{up(e,r,jt.fromDom(Ke))}):X.none())).getOrThunk(()=>Pe.bind(()=>be.map(Ke=>()=>{r?_P(e,n,f,Ke):_P(e,n,Ke,f)})))})},bS=(e,n,r)=>{if(e.selection.isCollapsed()&&Jg(e)){const f=In.fromRangeStart(e.selection.getRng());return RP(e,n,r,f)}return X.none()},LP=e=>ll(e)>1,VA=(e,n)=>{const r=jt.fromDom(e.getBody()),f=jt.fromDom(e.selection.getStart()),w=Ym(f,r);return Me(w,n).fold(J(w),B=>w.slice(0,B))},n0=e=>ll(e)===1,DP=e=>VA(e,n=>e.schema.isBlock(La(n))||LP(n)),md=e=>VA(e,n=>e.schema.isBlock(La(n))),r0=(e,n)=>{const r=Q(Jm,e);return ze(n,f=>r(f)?[f.dom]:[])},UA=e=>{const n=md(e);return r0(e,n)},CG=(e,n,r,f)=>{const w=r0(n,f);if(w.length===0)up(n,e,r);else{const B=X8(r.dom,w);n.selection.setRng(B.toRange())}},$P=(e,n)=>{const r=ue(DP(e),n0);return ut(r).bind(f=>{const w=In.fromRangeStart(e.selection.getRng());return Ak(n,w,f.dom)&&!H1(f)?X.some(()=>CG(n,e,f,r)):X.none()})},SG=(e,n)=>{const r=n.parentElement;return Ja(n)&&!O(r)&&e.dom.isEmpty(r)},TG=e=>H1(jt.fromDom(e)),OP=(e,n)=>{const r=e.selection.getStart(),f=SG(e,r)||TG(r)?X8(r,n):Wk(e.selection.getRng(),n);e.selection.setRng(f.toRange())},kG=(e,n)=>{const r=dt(n,UA(e));r.length>0&&OP(e,r)},PP=e=>ir(e.startContainer),IP=e=>e.startOffset===0&&PP(e),AG=(e,n)=>{const r=n.startContainer.parentElement;return!O(r)&&Jm(e,jt.fromDom(r))},MG=e=>{const n=e.startContainer.parentNode,r=e.endContainer.parentNode;return!O(n)&&!O(r)&&n.isEqualNode(r)},jx=e=>{const n=e.endContainer;return e.endOffset===(ir(n)?n.length:n.childNodes.length)},cL=e=>MG(e)&&jx(e),NP=e=>!e.endContainer.isEqualNode(e.commonAncestorContainer),FP=e=>cL(e)||NP(e),uL=e=>{const n=e.selection.getRng();return IP(n)&&AG(e,n)&&FP(n)},EG=e=>{if(uL(e)){const n=UA(e);return X.some(()=>{RC(e),kG(e,n)})}else return X.none()},fL=(e,n)=>e.selection.isCollapsed()?$P(e,n):EG(e),_G=(e,n)=>Pz(e,r=>Mu(r.dom),r=>n.isBlock(La(r))),RG=e=>_G(jt.fromDom(e.selection.getStart()),e.schema),LG=e=>{const n=e.selection.getRng();return n.collapsed&&(PP(n)||e.dom.isEmpty(n.startContainer))&&!RG(e)},xS=e=>(LG(e)&&OP(e,[]),!0),dL=(e,n,r)=>k(r)?X.some(()=>{e._selectionOverrides.hideFakeCaret(),up(e,n,jt.fromDom(r))}):X.none(),BP=(e,n)=>{const r=n?kC:vx,f=n?gi.Forwards:gi.Backwards,w=Bm(f,e.getBody(),e.selection.getRng());return r(w)?dL(e,n,w.getNode(!n)):X.from(Ta(n,w)).filter(B=>r(B)&&Xw(w,B)).bind(B=>dL(e,n,B.getNode(!n)))},DG=(e,n)=>{const r=e.selection.getNode();return zs(r)?dL(e,n,r):X.none()},hL=(e,n)=>e.selection.isCollapsed()?BP(e,n):DG(e,n),Of=e=>Xc(e,n=>wl(n.dom)||fa(n.dom)).exists(n=>wl(n.dom)),mL=e=>Bt(e??"").getOr(0),WA=(e,n)=>{const r=e||Ql(n)?"margin":"padding",f=ui(n,"direction")==="rtl"?"-right":"-left";return r+f},HP=(e,n,r,f,w,B)=>{const Z=WA(r,jt.fromDom(B)),oe=mL(e.getStyle(B,Z));if(n==="outdent"){const be=Math.max(0,oe-f);e.setStyle(B,Z,be?be+w:"")}else{const be=oe+f+w;e.setStyle(B,Z,be)}},gL=(e,n)=>We(n,r=>{const f=WA(Pb(e),r),w=_i(r,f).map(mL).getOr(0);return e.dom.getContentEditable(r.dom)!=="false"&&w>0}),zP=e=>{const n=UP(e);return!e.mode.isReadOnly()&&(n.length>1||gL(e,n))},VP=e=>ql(e)||yf(e),$G=e=>Rc(e).exists(VP),UP=e=>ue(Pg(e.selection.getSelectedBlocks()),n=>!VP(n)&&!$G(n)&&Of(n)),WP=(e,n)=>{var r,f;const{dom:w}=e,B=_w(e),Z=(f=(r=/[a-z%]+$/i.exec(B))===null||r===void 0?void 0:r[0])!==null&&f!==void 0?f:"px",oe=mL(B),be=Pb(e);ie(UP(e),Pe=>{HP(w,n,be,oe,Z,Pe.dom)})},GP=e=>WP(e,"indent"),ZP=e=>WP(e,"outdent"),jP=e=>{if(e.selection.isCollapsed()&&zP(e)){const n=e.dom,r=e.selection.getRng(),f=In.fromRangeStart(r),w=n.getParent(r.startContainer,n.isBlock);if(w!==null&&B_(jt.fromDom(w),f,e.schema))return X.some(()=>ZP(e))}return X.none()},Yx=(e,n,r)=>Ct([jP,QR,AA,(f,w)=>bS(f,n,w),ZR,BC,qR,hL,kA,fL],f=>f(e,r)).filter(f=>e.selection.isEditable()),vp=(e,n)=>{Yx(e,n,!1).fold(()=>{e.selection.isEditable()&&(RC(e),kk(e))},ce)},my=(e,n)=>{Yx(e,n,!0).fold(()=>{e.selection.isEditable()&&$z(e)},ce)},GA=(e,n)=>{e.addCommand("delete",()=>{vp(e,n)}),e.addCommand("forwardDelete",()=>{my(e,n)})},ZA=5,pL=400,vL=e=>e.touches===void 0||e.touches.length!==1?X.none():X.some(e.touches[0]),OG=(e,n)=>{const r=Math.abs(e.clientX-n.x),f=Math.abs(e.clientY-n.y);return r>ZA||f>ZA},YP=e=>{const n=Em(),r=Us(!1),f=wb(w=>{e.dispatch("longpress",{...w,type:"longpress"}),r.set(!0)},pL);e.on("touchstart",w=>{vL(w).each(B=>{f.cancel();const Z={x:B.clientX,y:B.clientY,target:w.target};f.throttle(w),r.set(!1),n.set(Z)})},!0),e.on("touchmove",w=>{f.cancel(),vL(w).each(B=>{n.on(Z=>{OG(B,Z)&&(n.clear(),r.set(!1),e.dispatch("longpresscancel"))})})},!0),e.on("touchend touchcancel",w=>{f.cancel(),w.type!=="touchcancel"&&n.get().filter(B=>B.target.isEqualNode(w.target)).each(()=>{r.get()?w.preventDefault():e.dispatch("tap",{...w,type:"tap"})})},!0)},jA=(e,n)=>lt(e,n.nodeName),PG=(e,n)=>ir(n)?!0:Gr(n)?!jA(e.getBlockElements(),n)&&!Eu(n)&&!pa(e,n)&&!Yf(n):!1,IG=(e,n,r)=>Oe(N_(jt.fromDom(r),jt.fromDom(n)),f=>jA(e,f.dom)),NG=(e,n)=>{if(ir(n)){if(n.data.length===0)return!0;if(/^\s+$/.test(n.data))return!n.nextSibling||jA(e,n.nextSibling)||Yf(n.nextSibling)}return!1},KP=e=>e.dom.create(ac(e),v1(e)),FG=e=>{const n=e.dom,r=e.selection,f=e.schema,w=f.getBlockElements(),B=r.getStart(),Z=e.getBody();let oe,be,Pe=!1;const Ke=ac(e);if(!B||!Gr(B))return;const Je=Z.nodeName.toLowerCase();if(!f.isValidChild(Je,Ke.toLowerCase())||IG(w,Z,B))return;const at=r.getRng(),{startContainer:Rt,startOffset:Ht,endContainer:At,endOffset:It}=at,ln=Vv(e);let xn=Z.firstChild;for(;xn;)if(Gr(xn)&&sb(f,xn),PG(f,xn)){if(NG(w,xn)){be=xn,xn=xn.nextSibling,n.remove(be);continue}oe||(oe=KP(e),Z.insertBefore(oe,xn),Pe=!0),be=xn,xn=xn.nextSibling,oe.appendChild(be)}else oe=null,xn=xn.nextSibling;Pe&&ln&&(at.setStart(Rt,Ht),at.setEnd(At,It),r.setRng(at),e.nodeChanged())},XP=(e,n,r)=>{const f=jt.fromDom(KP(e)),w=ec();di(f,w),r(n,f);const B=document.createRange();return B.setStartBefore(w.dom),B.setEndBefore(w.dom),B},JP=e=>{e.on("NodeChange",Q(FG,e))},yL=e=>n=>(" "+n.attr("class")+" ").indexOf(e)!==-1,$ee=(e,n,r)=>function(f){const w=arguments,B=w[w.length-2],Z=B>0?n.charAt(B-1):"";if(Z==='"')return f;if(Z===">"){const oe=n.lastIndexOf("<",B);if(oe!==-1&&n.substring(oe,B).indexOf('contenteditable="false"')!==-1)return f}return''+e.dom.encode(typeof w[1]=="string"?w[1]:w[0])+""},Oee=(e,n,r)=>{let f=n.length,w=r.content;if(r.format!=="raw"){for(;f--;)w=w.replace(n[f],$ee(e,w,Fw(e)));r.content=w}},Pee=e=>{const n="contenteditable",r=" "+ur.trim(CT(e))+" ",f=" "+ur.trim(Fw(e))+" ",w=yL(r),B=yL(f),Z=P4(e);Z.length>0&&e.on("BeforeSetContent",oe=>{Oee(e,Z,oe)}),e.parser.addAttributeFilter("class",oe=>{let be=oe.length;for(;be--;){const Pe=oe[be];w(Pe)?Pe.attr(n,"true"):B(Pe)&&Pe.attr(n,"false")}}),e.serializer.addAttributeFilter(n,oe=>{let be=oe.length;for(;be--;){const Pe=oe[be];!w(Pe)&&!B(Pe)||(Z.length>0&&Pe.attr("data-mce-content")?(Pe.name="#text",Pe.type=3,Pe.raw=!0,Pe.value=Pe.attr("data-mce-content")):Pe.attr(n,null))}})},BG=e=>Jl(jt.fromDom(e.getBody()),"*[data-mce-caret]").map(n=>n.dom).getOrNull(),HG=(e,n)=>{n.hasAttribute("data-mce-caret")&&(Mn(n),e.selection.setRng(e.selection.getRng()),e.selection.scrollIntoView(n))},Iee=(e,n)=>{const r=BG(e);if(r){if(n.type==="compositionstart"){n.preventDefault(),n.stopPropagation(),HG(e,r);return}Vt(r)&&(HG(e,r),e.undoManager.add())}},zG=e=>{e.on("keyup compositionstart",Q(Iee,e))},QP=fa,Nee=(e,n,r)=>sL(n,e,r,lp,Gh,QP),VG=(e,n,r)=>vS(n,e,r,B=>lp(B)||G$(B),B=>Gh(B)||qo(B),QP),lf=e=>{const n=e.dom.create(ac(e));return n.innerHTML='
    ',n},bL=(e,n,r)=>{const f=nd(e.getBody()),w=Q($T,n===1?f.next:f.prev);if(r.collapsed){const B=e.dom.getParent(r.startContainer,"PRE");if(!B)return;if(!w(In.fromRangeStart(r))){const oe=jt.fromDom(lf(e));n===1?gu(jt.fromDom(B),oe):Ri(jt.fromDom(B),oe),e.selection.select(oe.dom,!0),e.selection.collapse()}}},wS=(e,n)=>{const r=n?gi.Forwards:gi.Backwards,f=e.selection.getRng();return Nee(r,e,f).orThunk(()=>(bL(e,r,f),X.none()))},UG=(e,n)=>{const r=n?1:-1,f=e.selection.getRng();return VG(r,e,f).orThunk(()=>(bL(e,r,f),X.none()))},qP=(e,n)=>{const r=n?e.getEnd(!0):e.getStart(!0);return c8(r)?!n:n},xL=(e,n)=>wS(e,qP(e.selection,n)).exists(r=>(lg(e,r),!0)),YA=(e,n)=>UG(e,n).exists(r=>(lg(e,r),!0)),eI=(e,n)=>Zx(e,n,n?Gh:lp),KA=(e,n)=>YR(e,!n).map(r=>{const f=r.toRange(),w=e.selection.getRng();return n?f.setStart(w.startContainer,w.startOffset):f.setEnd(w.endContainer,w.endOffset),f}).exists(r=>(lg(e,r),!0)),tI=e=>Ve(["figcaption"],La(e)),WG=(e,n,r)=>{const f=Q(Ba,n);return Xc(jt.fromDom(e.container()),w=>r.isBlock(La(w)),f).filter(tI)},GG=(e,n,r)=>n?hS(e.dom,r):pP(e.dom,r),ZG=(e,n)=>{const r=jt.fromDom(e.getBody()),f=In.fromRangeStart(e.selection.getRng());return WG(f,r,e.schema).exists(()=>{if(GG(r,n,f)){const B=XP(e,r,n?di:yh);return e.selection.setRng(B),!0}else return!1})},XA=(e,n)=>e.selection.isCollapsed()?ZG(e,n):!1,jG=(e,n,r)=>{const f=e.selection.getRng(),w=In.fromRangeStart(f);return e.getBody().firstChild===n&&pP(r,w)?(e.execCommand("InsertNewBlockBefore"),!0):!1},YG=(e,n)=>{const r=e.selection.getRng(),f=In.fromRangeStart(r);return e.getBody().lastChild===n&&hS(n,f)?(e.execCommand("InsertNewBlockAfter"),!0):!1},Fee=(e,n)=>n?X.from(e.dom.getParent(e.selection.getNode(),"details")).map(r=>YG(e,r)).getOr(!1):X.from(e.dom.getParent(e.selection.getNode(),"summary")).bind(r=>X.from(e.dom.getParent(r,"details")).map(f=>jG(e,f,r))).getOr(!1),nI=(e,n)=>Fee(e,n),wL={shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0},Bee=e=>Fe(e,n=>({...wL,...n})),KG=e=>Fe(e,n=>({...wL,...n})),rI=(e,n)=>n.keyCode===e.keyCode&&n.shiftKey===e.shiftKey&&n.altKey===e.altKey&&n.ctrlKey===e.ctrlKey&&n.metaKey===e.metaKey,XG=(e,n)=>ze(Bee(e),r=>rI(r,n)?[r]:[]),CL=(e,n)=>ze(KG(e),r=>rI(r,n)?[r]:[]),Eo=(e,...n)=>()=>e.apply(null,n),Kx=(e,n)=>de(XG(e,n),r=>r.action()),SL=(e,n)=>Ct(CL(e,n),r=>r.action()),oI=(e,n)=>{const r=n?gi.Forwards:gi.Backwards,f=e.selection.getRng();return sL(e,r,f,kC,vx,zs).exists(w=>(lg(e,w),!0))},aI=(e,n)=>{const r=n?1:-1,f=e.selection.getRng();return vS(e,r,f,kC,vx,zs).exists(w=>(lg(e,w),!0))},JA=(e,n)=>Zx(e,n,n?vx:kC),sI=ed.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),CS={...sI,none:e=>sI.none(e)},JG=(e,n)=>gd(e,n,fe),gd=(e,n,r)=>ze(zi(e),f=>du(f,n)?r(f)?[f]:[]:gd(f,n,r)),iI=(e,n,r=ne)=>{if(r(n))return X.none();if(Ve(e,La(n)))return X.some(n);const f=w=>du(w,"table")||r(w);return vm(n,e.join(","),f)},lI=(e,n)=>iI(["td","th"],e,n),zee=e=>JG(e,"th,td"),QG=(e,n)=>Ku(e,"table",n),cI=(e,n,r,f,w=fe)=>{const B=f===1;if(!B&&r<=0)return CS.first(e[0]);if(B&&r>=e.length-1)return CS.last(e[e.length-1]);{const Z=r+f,oe=e[Z];return w(oe)?CS.middle(n,oe):cI(e,n,Z,f,w)}},qG=(e,n)=>QG(e,n).bind(r=>{const f=zee(r);return Me(f,B=>Ba(e,B)).map(B=>({index:B,all:f}))}),eZ=(e,n,r)=>qG(e,r).fold(()=>CS.none(e),w=>cI(w.all,e,w.index,1,n)),QA=(e,n,r)=>qG(e,r).fold(()=>CS.none(),w=>cI(w.all,e,w.index,-1,n)),tZ=(e,n)=>({left:e.left-n,top:e.top-n,right:e.right+n*2,bottom:e.bottom+n*2,width:e.width+n,height:e.height+n}),TL=(e,n)=>ze(n,r=>{const f=tZ(jg(r.getBoundingClientRect()),-1);return[{x:f.left,y:e(f),cell:r},{x:f.right,y:e(f),cell:r}]}),uI=(e,n,r)=>le(e,(f,w)=>f.fold(()=>X.some(w),B=>{const Z=Math.sqrt(Math.abs(B.x-n)+Math.abs(B.y-r)),oe=Math.sqrt(Math.abs(w.x-n)+Math.abs(w.y-r));return X.some(oe{const B=Vi(jt.fromDom(r),"td,th,caption").map(oe=>oe.dom),Z=ue(TL(e,B),oe=>n(oe,w));return uI(Z,f,w).map(oe=>oe.cell)},fI=e=>e.bottom,nZ=e=>e.top,rZ=(e,n)=>e.ye.y>n,aZ=Q(kL,fI,rZ),qA=Q(kL,nZ,oZ),sZ=(e,n)=>gt(n.getClientRects()).bind(r=>aZ(e,r.left,r.top)).bind(r=>sf(cG(r),n)),iZ=(e,n)=>ut(n.getClientRects()).bind(r=>qA(e,r.left,r.top)).bind(r=>sf(lG(r),n)),lZ=(e,n,r)=>r.breakAt.exists(f=>e(n,f).breakAt.isSome()),AL=e=>e.breakType===Qd.Wrap&&e.positions.length===0,cZ=e=>e.breakType===Qd.Br&&e.positions.length===1,dI=(e,n,r)=>{const f=e(n,r);return AL(f)||!Ja(r.getNode())&&cZ(f)?!lZ(e,n,f):f.breakAt.isNone()},hI=Q(dI,fS),uZ=Q(dI,dS),fZ=(e,n,r)=>{const f=In.fromRangeStart(n);return _v(!e,r).exists(w=>w.isEqual(f))},dZ=(e,n,r,f)=>{const w=e.selection.getRng(),B=n?1:-1;return k1()&&fZ(n,w,r)?(sg(B,e,r,!n,!1).each(Z=>{lg(e,Z)}),!0):!1},hZ=(e,n,r)=>sZ(n,r).orThunk(()=>gt(r.getClientRects()).bind(f=>gP(t0(e,In.before(n)),f.left))).getOr(In.before(n)),mZ=(e,n,r)=>iZ(n,r).orThunk(()=>gt(r.getClientRects()).bind(f=>gP(rL(e,In.after(n)),f.left))).getOr(In.after(n)),mI=(e,n)=>{const r=n.getNode(e);return yu(r)?X.some(r):X.none()},ML=(e,n,r)=>{n.undoManager.transact(()=>{const f=e?gu:Ri,w=XP(n,jt.fromDom(r),f);lg(n,w)})},gI=(e,n,r)=>{const f=mI(!!n,r),w=n===!1;f.fold(()=>lg(e,r.toRange()),B=>_v(w,e.getBody()).filter(Z=>Z.isEqual(r)).fold(()=>lg(e,r.toRange()),Z=>ML(n,e,B)))},pI=(e,n,r,f)=>{const w=e.selection.getRng(),B=In.fromRangeStart(w),Z=e.getBody();if(!n&&hI(f,B)){const oe=hZ(Z,r,B);return gI(e,n,oe),!0}else if(n&&uZ(f,B)){const oe=mZ(Z,r,B);return gI(e,n,oe),!0}else return!1},vI=(e,n,r)=>X.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind(f=>X.from(e.dom.getParent(f,"table")).map(w=>r(e,n,w,f))).getOr(!1),yI=(e,n)=>vI(e,n,dZ),EL=(e,n)=>vI(e,n,pI),gZ=e=>{const n=Wh.exact(e,0,e,0);return T_(n)},bI=(e,n,r)=>r.fold(X.none,X.none,(f,w)=>zH(w).map(B=>gZ(B)),f=>(e.execCommand("mceTableInsertRowAfter"),xI(e,n,f))),xI=(e,n,r)=>bI(e,n,eZ(r,Wo)),tl=(e,n,r)=>bI(e,n,QA(r,Wo)),wI=(e,n)=>{const r=["table","li","dl"],f=jt.fromDom(e.getBody()),w=oe=>{const be=La(oe);return Ba(oe,f)||Ve(r,be)},B=e.selection.getRng(),Z=jt.fromDom(n?B.endContainer:B.startContainer);return lI(Z,w).map(oe=>(QG(oe,w).each(Ke=>{e.model.table.clearSelectedCells(Ke.dom)}),e.selection.collapse(!n),(n?xI:tl)(e,w,oe).each(Ke=>{e.selection.setRng(Ke)}),!0)).getOr(!1)},pZ=(e,n,r)=>{const f=Lr.os.isMacOS()||Lr.os.isiOS();Kx([{keyCode:Wr.RIGHT,action:Eo(xL,e,!0)},{keyCode:Wr.LEFT,action:Eo(xL,e,!1)},{keyCode:Wr.UP,action:Eo(YA,e,!1)},{keyCode:Wr.DOWN,action:Eo(YA,e,!0)},...f?[{keyCode:Wr.UP,action:Eo(KA,e,!1),metaKey:!0,shiftKey:!0},{keyCode:Wr.DOWN,action:Eo(KA,e,!0),metaKey:!0,shiftKey:!0}]:[],{keyCode:Wr.RIGHT,action:Eo(yI,e,!0)},{keyCode:Wr.LEFT,action:Eo(yI,e,!1)},{keyCode:Wr.UP,action:Eo(EL,e,!1)},{keyCode:Wr.DOWN,action:Eo(EL,e,!0)},{keyCode:Wr.UP,action:Eo(EL,e,!1)},{keyCode:Wr.UP,action:Eo(nI,e,!1)},{keyCode:Wr.DOWN,action:Eo(nI,e,!0)},{keyCode:Wr.RIGHT,action:Eo(oI,e,!0)},{keyCode:Wr.LEFT,action:Eo(oI,e,!1)},{keyCode:Wr.UP,action:Eo(aI,e,!1)},{keyCode:Wr.DOWN,action:Eo(aI,e,!0)},{keyCode:Wr.RIGHT,action:Eo(MP,e,n,!0)},{keyCode:Wr.LEFT,action:Eo(MP,e,n,!1)},{keyCode:Wr.RIGHT,ctrlKey:!f,altKey:f,action:Eo(yG,e,n)},{keyCode:Wr.LEFT,ctrlKey:!f,altKey:f,action:Eo(bG,e,n)},{keyCode:Wr.UP,action:Eo(XA,e,!1)},{keyCode:Wr.DOWN,action:Eo(XA,e,!0)}],r).each(w=>{r.preventDefault()})},vZ=(e,n)=>{e.on("keydown",r=>{r.isDefaultPrevented()||pZ(e,n,r)})},qd=(e,n)=>({container:e,offset:n}),Xx=Cs.DOM,SS=e=>n=>e===n?-1:0,o0=e=>n=>e.isBlock(n)||Ve(["BR","IMG","HR","INPUT"],n.nodeName)||e.getContentEditable(n)==="false",TS=(e,n,r)=>{if(ir(e)&&n>=0)return X.some(qd(e,n));{const f=_m(Xx);return X.from(f.backwards(e,n,SS(e),r)).map(w=>qd(w.container,w.container.data.length))}},CI=(e,n,r)=>{if(ir(e)&&n>=e.length)return X.some(qd(e,n));{const f=_m(Xx);return X.from(f.forwards(e,n,SS(e),r)).map(w=>qd(w.container,0))}},kS=(e,n,r)=>{if(!ir(e))return X.none();const f=e.data;if(n>=0&&n<=f.length)return X.some(qd(e,n));{const w=_m(Xx);return X.from(w.backwards(e,n,SS(e),r)).bind(B=>{const Z=B.container.data;return kS(B.container,n+Z.length,r)})}},eM=(e,n,r)=>{if(!ir(e))return X.none();const f=e.data;if(n<=f.length)return X.some(qd(e,n));{const w=_m(Xx);return X.from(w.forwards(e,n,SS(e),r)).bind(B=>eM(B.container,n-f.length,r))}},AS=(e,n,r,f,w)=>{const B=_m(e,o0(e));return X.from(B.backwards(n,r,f,w))},SI=e=>e.collapsed&&ir(e.startContainer),MS=e=>_e(e.toString().replace(/\u00A0/g," ")),ES=e=>e!==""&&`  \f -\r \v`.indexOf(e)!==-1,gy=(e,n)=>e.substring(n.length),_S=(e,n,r)=>{let f;const w=r.charAt(0);for(f=n-1;f>=0;f--){const B=e.charAt(f);if(ES(B))return X.none();if(w===B&&or(e,r,f,n))break}return X.some(f)},eh=(e,n,r,f=0)=>{if(!SI(n))return X.none();const w={text:"",offset:0},B=(oe,be,Pe)=>(w.text=Pe+w.text,w.offset+=be,_S(w.text,w.offset,r).getOr(be)),Z=e.getParent(n.startContainer,e.isBlock)||e.getRoot();return AS(e,n.startContainer,n.startOffset,B,Z).bind(oe=>{const be=n.cloneRange();if(be.setStart(oe.container,oe.offset),be.setEnd(n.endContainer,n.endOffset),be.collapsed)return X.none();const Pe=MS(be);return Pe.lastIndexOf(r)!==0||gy(Pe,r).lengthGH(jt.fromDom(n.startContainer)).fold(()=>eh(e,n,r,f),w=>{const B=e.createRng();B.selectNode(w.dom);const Z=MS(B);return X.some({range:B,text:gy(Z,r),trigger:r})}),TI=e=>e.nodeType===dh,kI=e=>e.nodeType===wd,AI=e=>{if(TI(e))return qd(e,e.data.length);{const n=e.childNodes;return n.length>0?AI(n[n.length-1]):qd(e,n.length)}},_L=(e,n)=>{const r=e.childNodes;return r.length>0&&n0&&kI(e)&&r.length===n?AI(r[r.length-1]):qd(e,n)},yZ=(e,n)=>{var r;const f=(r=e.getParent(n.container,e.isBlock))!==null&&r!==void 0?r:e.getRoot();return AS(e,n.container,n.offset,(w,B)=>B===0?-1:B,f).filter(w=>{const B=w.container.data.charAt(w.offset-1);return!ES(B)}).isSome()},bZ=e=>n=>{const r=_L(n.startContainer,n.startOffset);return!yZ(e,r)},RS=(e,n,r)=>Ct(r.triggers,f=>Jx(e,n,f)),xZ=(e,n)=>{const r=n(),f=e.selection.getRng();return RS(e.dom,f,r).bind(w=>MI(e,n,w))},MI=(e,n,r,f={})=>{var w;const B=n(),oe=(w=e.selection.getRng().startContainer.nodeValue)!==null&&w!==void 0?w:"",be=ue(B.lookupByTrigger(r.trigger),Ke=>r.text.length>=Ke.minChars&&Ke.matches.getOrThunk(()=>bZ(e.dom))(r.range,oe,r.text));if(be.length===0)return X.none();const Pe=Promise.all(Fe(be,Ke=>Ke.fetch(r.text,Ke.maxResults,f).then(at=>({matchText:r.text,items:at,columns:Ke.columns,onAction:Ke.onAction,highlightOn:Ke.highlightOn}))));return X.some({lookupData:Pe,context:r})};var Xh;(function(e){e[e.Error=0]="Error",e[e.Value=1]="Value"})(Xh||(Xh={}));const RL=(e,n,r)=>e.stype===Xh.Error?n(e.serror):r(e.svalue),wZ=e=>{const n=[],r=[];return ie(e,f=>{RL(f,w=>r.push(w),w=>n.push(w))}),{values:n,errors:r}},CZ=(e,n)=>e.stype===Xh.Error?{stype:Xh.Error,serror:n(e.serror)}:e,SZ=(e,n)=>e.stype===Xh.Value?{stype:Xh.Value,svalue:n(e.svalue)}:e,TZ=(e,n)=>e.stype===Xh.Value?n(e.svalue):e,kZ=(e,n)=>e.stype===Xh.Error?n(e.serror):e,EI=e=>({stype:Xh.Value,svalue:e}),_I=e=>({stype:Xh.Error,serror:e}),uc={fromResult:e=>e.fold(_I,EI),toResult:e=>RL(e,Oc.error,Oc.value),svalue:EI,partition:wZ,serror:_I,bind:TZ,bindError:kZ,map:SZ,mapError:CZ,fold:RL},tM=e=>_(e)&&Yt(e).length>100?" removed due to size":JSON.stringify(e,null,2),RI=e=>{const n=e.length>10?e.slice(0,10).concat([{path:[],getErrorInfo:J("... (only showing first ten failures)")}]):e;return Fe(n,r=>"Failed path: ("+r.path.join(" > ")+`) -`+r.getErrorInfo())},LS=(e,n)=>uc.serror([{path:e,getErrorInfo:n}]),AZ=(e,n,r)=>LS(e,()=>'Could not find valid *required* value for "'+n+'" in '+tM(r)),MZ=(e,n)=>LS(e,()=>'Choice schema did not contain choice key: "'+n+'"'),EZ=(e,n,r)=>LS(e,()=>'The chosen schema: "'+r+'" did not exist in branches: '+tM(n)),_Z=(e,n)=>LS(e,J(n)),LI=(e,n,r,f)=>wn(r,f).fold(()=>EZ(e,r,f),B=>B.extract(e.concat(["branch: "+f]),n)),RZ=(e,n)=>({extract:(w,B)=>wn(B,e).fold(()=>MZ(w,e),oe=>LI(w,B,n,oe)),toString:()=>"chooseOn("+e+"). Possible values: "+Yt(n)}),DI=(e,n)=>n,LZ=(e,n)=>$(e)&&$(n)?DS(e,n):n,LL=e=>(...n)=>{if(n.length===0)throw new Error("Can't merge zero objects");const r={};for(let f=0;f({tag:"required",process:{}}),$Z=e=>({tag:"defaultedThunk",process:e}),DL=e=>$Z(J(e)),OZ=()=>({tag:"option",process:{}}),PZ=(e,n)=>e.length>0?uc.svalue(DS(n,DZ.apply(void 0,e))):uc.svalue(n),$L=e=>P(uc.serror,Re)(e),OI={consolidateObj:(e,n)=>{const r=uc.partition(e);return r.errors.length>0?$L(r.errors):PZ(r.values,n)},consolidateArr:e=>{const n=uc.partition(e);return n.errors.length>0?$L(n.errors):uc.svalue(n.values)}},IZ=(e,n,r,f)=>({tag:"field",key:e,newKey:n,presence:r,prop:f}),NZ=(e,n)=>({tag:"custom",newKey:e,instantiator:n}),PI=(e,n,r)=>{switch(e.tag){case"field":return n(e.key,e.newKey,e.presence,e.prop);case"custom":return r(e.newKey,e.instantiator)}},nM=e=>{const n=(f,w)=>uc.bindError(e(w),B=>_Z(f,B)),r=J("val");return{extract:n,toString:r}},II=nM(uc.svalue),FZ=(e,n,r,f)=>wn(n,r).fold(()=>AZ(e,r,n),f),NI=(e,n,r,f)=>{const w=wn(e,n).getOrThunk(()=>r(e));return f(w)},BZ=(e,n,r)=>r(wn(e,n)),HZ=(e,n,r,f)=>{const w=wn(e,n).map(B=>B===!0?r(e):B);return f(w)},zZ=(e,n,r,f,w)=>{const B=oe=>w.extract(n.concat([f]),oe),Z=oe=>oe.fold(()=>uc.svalue(X.none()),be=>{const Pe=w.extract(n.concat([f]),be);return uc.map(Pe,X.some)});switch(e.tag){case"required":return FZ(n,r,f,B);case"defaultedThunk":return NI(r,f,e.process,B);case"option":return BZ(r,f,Z);case"defaultedOptionThunk":return HZ(r,f,e.process,Z);case"mergeWithThunk":return NI(r,f,J({}),oe=>{const be=DS(e.process(r),oe);return B(be)})}},VZ=(e,n,r)=>{const f={},w=[];for(const B of r)PI(B,(Z,oe,be,Pe)=>{const Ke=zZ(be,e,n,Z,Pe);uc.fold(Ke,Je=>{w.push(...Je)},Je=>{f[oe]=Je})},(Z,oe)=>{f[Z]=oe(n)});return w.length>0?uc.serror(w):uc.svalue(f)},OL=e=>({extract:(f,w)=>VZ(f,w,e),toString:()=>`obj{ -`+Fe(e,w=>PI(w,(B,Z,oe,be)=>B+" -> "+be.toString(),(B,Z)=>"state("+B+")")).join(` -`)+"}"}),FI=e=>({extract:(f,w)=>{const B=Fe(w,(Z,oe)=>e.extract(f.concat(["["+oe+"]"]),Z));return OI.consolidateArr(B)},toString:()=>"array("+e.toString()+")"}),Zee=e=>nM(n=>e(n).fold(uc.serror,uc.svalue)),UZ=(e,n,r)=>{const f=n.extract([e],r);return uc.mapError(f,w=>({input:r,errors:w}))},rM=(e,n,r)=>uc.toResult(UZ(e,n,r)),BI=e=>`Errors: -`+RI(e.errors).join(` -`)+` - -Input object: `+tM(e.input),PL=(e,n)=>RZ(e,pn(n,OL)),WZ=J(II),$S=(e,n)=>nM(r=>{const f=typeof r;return e(r)?uc.svalue(r):uc.serror(`Expected type: ${n} but got: ${f}`)}),HI=$S(F,"number"),oM=$S(C,"string"),GZ=$S(D,"boolean"),IL=$S(R,"function"),Qx=IZ,zI=NZ,NL=e=>Zee(n=>Ve(e,n)?Oc.value(n):Oc.error(`Unsupported value: "${n}", choose one of "${e.join(", ")}".`)),VI=(e,n)=>Qx(e,e,$I(),n),UI=e=>VI(e,oM),WI=e=>VI(e,IL),GI=(e,n)=>Qx(e,e,$I(),FI(n)),FL=(e,n)=>Qx(e,e,OZ(),n),aM=e=>FL(e,oM),ZZ=e=>FL(e,IL),jZ=(e,n)=>Qx(e,e,DL(n),WZ()),qx=(e,n,r)=>Qx(e,e,DL(n),r),nl=(e,n)=>qx(e,n,HI),cg=(e,n)=>qx(e,n,oM),ZI=(e,n,r)=>qx(e,n,NL(r)),jI=(e,n)=>qx(e,n,GZ),BL=(e,n)=>qx(e,n,IL),YZ=(e,n,r)=>qx(e,n,FI(r)),KZ=UI("type"),XZ=WI("fetch"),sM=WI("onAction"),e2=BL("onSetup",()=>j),jee=aM("text"),JZ=aM("icon"),QZ=aM("tooltip"),Jh=aM("label"),qZ=jI("active",!1),ej=jI("enabled",!0),HL=jI("primary",!1),tj=e=>jZ("columns",e),py=e=>cg("type",e),YI=OL([KZ,UI("trigger"),nl("minChars",1),tj(1),nl("maxResults",10),ZZ("matches"),XZ,sM,YZ("highlightOn",[],oM)]),nj=e=>rM("Autocompleter",YI,{trigger:e.ch,...e}),zL=[ej,QZ,JZ,jee,e2],KI=[qZ].concat(zL),XI=[BL("predicate",ne),ZI("scope","node",["node","editor"]),ZI("position","selection",["node","selection","line"])],JI=zL.concat([py("contextformbutton"),HL,sM,zI("original",K)]),VL=KI.concat([py("contextformbutton"),HL,sM,zI("original",K)]),UL=zL.concat([py("contextformbutton")]),WL=KI.concat([py("contextformtogglebutton")]),rj=PL("type",{contextformbutton:JI,contextformtogglebutton:VL});OL([py("contextform"),BL("initValue",J("")),Jh,GI("commands",rj),FL("launch",PL("type",{contextformbutton:UL,contextformtogglebutton:WL}))].concat(XI));const oj=e=>{const n=e.ui.registry.getAll().popups,r=pn(n,Z=>nj(Z).fold(oe=>{throw new Error(BI(oe))},K)),f=vt(jn(r,Z=>Z.trigger)),w=Wn(r);return{dataset:r,triggers:f,lookupByTrigger:Z=>ue(w,oe=>oe.trigger===Z)}},aj=(e,n)=>{const r=wb(n.load,50);e.on("keypress compositionend",f=>{f.which!==27&&r.throttle()}),e.on("keydown",f=>{const w=f.which;w===8?r.throttle():w===27&&n.cancelIfNecessary()}),e.on("remove",r.cancel)},sj=e=>{const n=Em(),r=Us(!1),f=n.isSet,w=()=>{f()&&(DU(e),pC(e),r.set(!1),n.clear())},B=Pe=>{f()||(LU(e,Pe.range),n.set({trigger:Pe.trigger,matchLength:Pe.text.length}))},Z=Dt(()=>oj(e)),oe=Pe=>n.get().map(Ke=>Jx(e.dom,e.selection.getRng(),Ke.trigger).bind(Je=>MI(e,Z,Je,Pe))).getOrThunk(()=>xZ(e,Z)),be=Pe=>{oe(Pe).fold(w,Ke=>{B(Ke.context),Ke.lookupData.then(Je=>{n.get().map(at=>{const Rt=Ke.context;at.trigger===Rt.trigger&&(Rt.text.length-at.matchLength>=10?w():(n.set({...at,matchLength:Rt.text.length}),r.get()?qT(e,{lookupData:Je}):(r.set(!0),gC(e,{lookupData:Je}))))})})})};e.addCommand("mceAutocompleterReload",(Pe,Ke)=>{const Je=_(Ke)?Ke.fetchOptions:{};be(Je)}),e.addCommand("mceAutocompleterClose",w),aj(e,{cancelIfNecessary:w,load:be})},qI=Ys().browser.isSafari(),e9=e=>U(jt.fromDom(e)),GL=(e,n)=>{var r;return e.startOffset===0&&e.endOffset===((r=n.textContent)===null||r===void 0?void 0:r.length)},iM=(e,n)=>X.from(e.getParent(n.container(),"details")),lM=(e,n)=>iM(e,n).isSome(),ij=(e,n)=>{const r=X.from(e.getParent(n.startContainer,"details")),f=X.from(e.getParent(n.endContainer,"details"));if(r.isSome()||f.isSome()){const w=r.bind(B=>X.from(e.select("summary",B)[0]));return X.some({startSummary:w,startDetails:r,endDetails:f})}else return X.none()},lj=(e,n)=>Sc(n).exists(r=>r.isEqual(e)),cj=(e,n)=>kf(n).exists(r=>Ja(r.getNode())&&Nc(n,r).exists(f=>f.isEqual(e))||r.isEqual(e)),uj=(e,n)=>n.startSummary.exists(r=>lj(e,r)),fj=(e,n)=>n.startSummary.exists(r=>cj(e,r)),t9=(e,n)=>n.startDetails.exists(r=>Nc(r,e).forall(f=>n.startSummary.exists(w=>!w.contains(e.container())&&w.contains(f.container())))),ZL=(e,n,r)=>r.startDetails.exists(f=>ic(e,n).forall(w=>!f.contains(w.container()))),jL=(e,n)=>{const r=n.getNode();N(r)||e.selection.setCursorLocation(r,n.offset())},YL=(e,n,r)=>{const f=e.dom.getParent(n.container(),"details");if(f&&!f.open){const w=e.dom.select("summary",f)[0];w&&(r?Sc(w):kf(w)).each(Z=>jL(e,Z))}else jL(e,n)},dj=(e,n)=>{const r=be=>be.contains(e.startContainer),f=be=>be.contains(e.endContainer),w=n.startSummary.exists(r),B=n.startSummary.exists(f),Z=n.startDetails.forall(be=>n.endDetails.forall(Pe=>be!==Pe));return(w||B)&&!(w&&B)||Z},n9=(e,n,r)=>{const{dom:f,selection:w}=e,B=e.getBody();if(r==="character"){const Z=In.fromRangeStart(w.getRng()),oe=f.getParent(Z.container(),f.isBlock),be=iM(f,Z),Pe=oe&&f.isEmpty(oe),Ke=O(oe==null?void 0:oe.previousSibling),Je=O(oe==null?void 0:oe.nextSibling);return Pe&&(n?Je:Ke)&&Nh(!n,B,Z).exists(Ht=>lM(f,Ht)&&!li(be,iM(f,Ht)))?!0:Nh(n,B,Z).fold(ne,at=>{const Rt=iM(f,at);if(lM(f,at)&&!li(be,Rt)){if(n||YL(e,at,!1),oe&&Pe){if(n&&Ke)return!0;if(!n&&Je)return!0;YL(e,at,n),e.dom.remove(oe)}return!0}else return!1})}else return!1},hj=(e,n,r,f)=>{const B=e.selection.getRng(),Z=In.fromRangeStart(B),oe=e.getBody();return f==="selection"?dj(B,n):r?fj(Z,n)||ZL(oe,Z,n):uj(Z,n)||t9(Z,n)},cM=(e,n,r)=>ij(e.dom,e.selection.getRng()).fold(()=>n9(e,n,r),f=>hj(e,f,n,r)||n9(e,n,r)),r9=(e,n,r)=>{const f=e.selection,w=f.getNode(),B=f.getRng(),Z=In.fromRangeStart(B);return yc(w)?(r==="selection"&&GL(B,w)||Ak(n,Z,w)?e9(w):e.undoManager.transact(()=>{const oe=f.getSel();let{anchorNode:be,anchorOffset:Pe,focusNode:Ke,focusOffset:Je}=oe??{};const at=()=>{k(be)&&k(Pe)&&k(Ke)&&k(Je)&&(oe==null||oe.setBaseAndExtent(be,Pe,Ke,Je))},Rt=()=>{be=oe==null?void 0:oe.anchorNode,Pe=oe==null?void 0:oe.anchorOffset,Ke=oe==null?void 0:oe.focusNode,Je=oe==null?void 0:oe.focusOffset},Ht=(It,ln)=>{ie(It.childNodes,xn=>{O1(xn)&&ln.appendChild(xn)})},At=e.dom.create("span",{"data-mce-bogus":"1"});Ht(w,At),w.appendChild(At),at(),(r==="word"||r==="line")&&(oe==null||oe.modify("extend",n?"right":"left",r)),!f.isCollapsed()&&GL(f.getRng(),At)?e9(w):(e.execCommand(n?"ForwardDelete":"Delete"),Rt(),Ht(At,w),at()),e.dom.remove(At)}),!0):!1},a0=(e,n,r)=>cM(e,n,r)||qI&&r9(e,n,r)?X.some(j):X.none(),o9=e=>(n,r,f={})=>{const w=n.getBody(),B={bubbles:!0,composed:!0,data:null,isComposing:!1,detail:0,view:null,target:w,currentTarget:w,eventPhase:Event.AT_TARGET,originalTarget:w,explicitOriginalTarget:w,isTrusted:!1,srcElement:w,cancelable:!1,preventDefault:j,inputType:r},Z=Jp(new InputEvent(e));return n.dispatch(e,{...Z,...B,...f})},OS=o9("input"),KL=o9("beforeinput"),mj=Ys(),gj=mj.os,a9=gj.isMacOS()||gj.isiOS(),pj=mj.browser.isFirefox(),vj=(e,n,r)=>{const f=r.keyCode===Wr.BACKSPACE?"deleteContentBackward":"deleteContentForward",w=e.selection.isCollapsed(),B=w?"character":"selection",Z=oe=>w?oe?"word":"line":"selection";SL([{keyCode:Wr.BACKSPACE,action:Eo(jP,e)},{keyCode:Wr.BACKSPACE,action:Eo(QR,e,!1)},{keyCode:Wr.DELETE,action:Eo(QR,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(AA,e,!1)},{keyCode:Wr.DELETE,action:Eo(AA,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(bS,e,n,!1)},{keyCode:Wr.DELETE,action:Eo(bS,e,n,!0)},{keyCode:Wr.BACKSPACE,action:Eo(BC,e,!1)},{keyCode:Wr.DELETE,action:Eo(BC,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(a0,e,!1,B)},{keyCode:Wr.DELETE,action:Eo(a0,e,!0,B)},...a9?[{keyCode:Wr.BACKSPACE,altKey:!0,action:Eo(a0,e,!1,Z(!0))},{keyCode:Wr.DELETE,altKey:!0,action:Eo(a0,e,!0,Z(!0))},{keyCode:Wr.BACKSPACE,metaKey:!0,action:Eo(a0,e,!1,Z(!1))}]:[{keyCode:Wr.BACKSPACE,ctrlKey:!0,action:Eo(a0,e,!1,Z(!0))},{keyCode:Wr.DELETE,ctrlKey:!0,action:Eo(a0,e,!0,Z(!0))}],{keyCode:Wr.BACKSPACE,action:Eo(qR,e,!1)},{keyCode:Wr.DELETE,action:Eo(qR,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(hL,e,!1)},{keyCode:Wr.DELETE,action:Eo(hL,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(kA,e,!1)},{keyCode:Wr.DELETE,action:Eo(kA,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(ZR,e,!1)},{keyCode:Wr.DELETE,action:Eo(ZR,e,!0)},{keyCode:Wr.BACKSPACE,action:Eo(fL,e,!1)},{keyCode:Wr.DELETE,action:Eo(fL,e,!0)}],r).filter(oe=>e.selection.isEditable()).each(oe=>{r.preventDefault(),KL(e,f).isDefaultPrevented()||(oe(),OS(e,f))})},Yee=(e,n,r)=>Kx([{keyCode:Wr.BACKSPACE,action:Eo(EA,e)},{keyCode:Wr.DELETE,action:Eo(EA,e)},...a9?[{keyCode:Wr.BACKSPACE,altKey:!0,action:Eo(xS,e)},{keyCode:Wr.DELETE,altKey:!0,action:Eo(xS,e)},...r?[{keyCode:pj?224:91,action:Eo(xS,e)}]:[]]:[{keyCode:Wr.BACKSPACE,ctrlKey:!0,action:Eo(xS,e)},{keyCode:Wr.DELETE,ctrlKey:!0,action:Eo(xS,e)}]],n),yj=(e,n)=>{let r=!1;e.on("keydown",f=>{r=f.keyCode===Wr.BACKSPACE,f.isDefaultPrevented()||vj(e,n,f)}),e.on("keyup",f=>{f.isDefaultPrevented()||Yee(e,f,r),r=!1})},Ti=e=>{for(;e;){if(Gr(e)||ir(e)&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}return null},s0=(e,n)=>{const r=e.dom,f=e.schema.getMoveCaretBeforeOnEnterElements();if(!n)return;if(/^(LI|DT|DD)$/.test(n.nodeName)){const B=Ti(n.firstChild);B&&/^(UL|OL|DL)$/.test(B.nodeName)&&n.insertBefore(r.doc.createTextNode(Da),n.firstChild)}const w=r.createRng();if(n.normalize(),n.hasChildNodes()){const B=new es(n,n);let Z=n,oe;for(;oe=B.current();){if(ir(oe)){w.setStart(oe,0),w.setEnd(oe,0);break}if(f[oe.nodeName.toLowerCase()]){w.setStartBefore(oe),w.setEndBefore(oe);break}Z=oe,oe=B.next()}oe||(w.setStart(Z,0),w.setEnd(Z,0))}else Ja(n)?n.nextSibling&&r.isBlock(n.nextSibling)?(w.setStartBefore(n),w.setEndBefore(n)):(w.setStartAfter(n),w.setEndAfter(n)):(w.setStart(n,0),w.setEnd(n,0));e.selection.setRng(w),J1(e,w)},Pf=(e,n)=>{const r=e.getRoot();let f,w=n;for(;w!==r&&w&&e.getContentEditable(w)!=="false";){if(e.getContentEditable(w)==="true"){f=w;break}w=w.parentNode}return w!==r?f:r},uM=e=>X.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock)),s9=e=>uM(e).fold(J(""),n=>n.nodeName.toUpperCase()),bj=e=>uM(e).filter(n=>yf(jt.fromDom(n))).isSome(),t2=e=>{e.innerHTML='
    '},XL=(e,n,r)=>{const f=e.dom;X.from(r.style).map(f.parseStyle).each(be=>{const Ke={...W0(jt.fromDom(n)),...be};f.setStyles(n,Ke)});const w=X.from(r.class).map(be=>be.split(/\s+/)),B=X.from(n.className).map(be=>ue(be.split(/\s+/),Pe=>Pe!==""));Es(w,B,(be,Pe)=>{const Ke=ue(Pe,at=>!Ve(be,at)),Je=[...be,...Ke];f.setAttrib(n,"class",Je.join(" "))});const Z=["style","class"],oe=Cn(r,(be,Pe)=>!Ve(Z,Pe));f.setAttribs(n,oe)},n2=(e,n)=>{if(ac(e).toLowerCase()===n.tagName.toLowerCase()){const f=v1(e);XL(e,n,f)}},JL=(e,n,r,f,w=!0,B,Z)=>{const oe=e.dom,be=e.schema,Pe=ac(e),Ke=r?r.nodeName.toUpperCase():"";let Je=n;const at=be.getTextInlineElements();let Rt;B||Ke==="TABLE"||Ke==="HR"?Rt=oe.create(B||Pe,Z||{}):Rt=r.cloneNode(!1);let Ht=Rt;if(!w)oe.setAttrib(Rt,"style",null),oe.setAttrib(Rt,"class",null);else do if(at[Je.nodeName]){if(Mu(Je)||Eu(Je))continue;const At=Je.cloneNode(!1);oe.setAttrib(At,"id",""),Rt.hasChildNodes()?(At.appendChild(Rt.firstChild),Rt.appendChild(At)):(Ht=At,Rt.appendChild(At))}while((Je=Je.parentNode)&&Je!==f);return n2(e,Rt),t2(Ht),Rt},xj=(e,n)=>e.dom.getParent(n,qn),wj=(e,n,r)=>{let f=n;for(;f&&f!==e&&O(f.nextSibling);){const w=f.parentElement;if(!w||!r(w))return qn(w);f=w}return!1},Cj=(e,n,r)=>!n&&r.nodeName.toLowerCase()===ac(e)&&e.dom.isEmpty(r)&&wj(e.getBody(),r,f=>lt(e.schema.getTextBlockElements(),f.nodeName.toLowerCase())),Sj=(e,n,r)=>{var f,w,B;const Z=n(ac(e)),oe=xj(e,r);oe&&(e.dom.insertAfter(Z,oe),s0(e,Z),((B=(w=(f=r.parentElement)===null||f===void 0?void 0:f.childNodes)===null||w===void 0?void 0:w.length)!==null&&B!==void 0?B:0)>1&&e.dom.remove(r))},Tj=(e,n)=>e.firstChild&&e.firstChild.nodeName===n,i9=e=>{var n;return((n=e.parentNode)===null||n===void 0?void 0:n.firstChild)===e},l9=(e,n)=>{const r=e==null?void 0:e.parentNode;return k(r)&&r.nodeName===n},c9=e=>k(e)&&/^(OL|UL|LI)$/.test(e.nodeName),QL=e=>k(e)&&/^(LI|DT|DD)$/.test(e.nodeName),kj=e=>c9(e)&&c9(e.parentNode),fM=e=>{const n=e.parentNode;return QL(n)?n:e},PS=(e,n,r)=>{let f=e[r?"firstChild":"lastChild"];for(;f&&!Gr(f);)f=f[r?"nextSibling":"previousSibling"];return f===n},qL=e=>le(jn(W0(jt.fromDom(e)),(n,r)=>`${r}: ${n};`),(n,r)=>n+r,""),Aj=(e,n,r,f,w)=>{const B=e.dom,Z=e.selection.getRng(),oe=r.parentNode;if(r===e.getBody()||!oe)return;kj(r)&&(w="LI");const be=QL(f)?qL(f):void 0;let Pe=QL(f)&&be?n(w,{style:qL(f)}):n(w);if(PS(r,f,!0)&&PS(r,f,!1))if(l9(r,"LI")){const Ke=fM(r);B.insertAfter(Pe,Ke),i9(r)?B.remove(Ke):B.remove(r)}else B.replace(Pe,r);else if(PS(r,f,!0))l9(r,"LI")?(B.insertAfter(Pe,fM(r)),Pe.appendChild(B.doc.createTextNode(" ")),Pe.appendChild(r)):oe.insertBefore(Pe,r),B.remove(f);else if(PS(r,f,!1))B.insertAfter(Pe,fM(r)),B.remove(f);else{r=fM(r);const Ke=Z.cloneRange();Ke.setStartAfter(f),Ke.setEndAfter(r);const Je=Ke.extractContents();if(w==="LI"&&Tj(Je,"LI")){const at=ue(Fe(Pe.children,jt.fromDom),he(Yc("br")));Pe=Je.firstChild,B.insertAfter(Je,r),ie(at,Rt=>yh(jt.fromDom(Pe),Rt)),be&&Pe.setAttribute("style",be)}else B.insertAfter(Je,r),B.insertAfter(Pe,r);B.remove(f)}s0(e,Pe)},Mj=e=>{ie(zp(jt.fromDom(e),Ei),n=>{const r=n.dom;r.nodeValue=_e(r.data)})},Kee=(e,n)=>{const r=e.dom.getParent(n,"ol,ul,dl");return r!==null&&e.dom.getContentEditableParent(r)==="false"},eD=(e,n)=>n&&n.nodeName==="A"&&e.isEmpty(n),tD=(e,n)=>e.nodeName===n||e.previousSibling&&e.previousSibling.nodeName===n,nD=(e,n)=>k(n)&&e.isBlock(n)&&!/^(TD|TH|CAPTION|FORM)$/.test(n.nodeName)&&!/^(fixed|absolute)/i.test(n.style.position)&&e.isEditable(n.parentNode)&&e.getContentEditable(n)!=="false",Ej=(e,n,r)=>{var f;const w=[];if(!r)return;let B=r;for(;B=B.firstChild;){if(e.isBlock(B))return;Gr(B)&&!n[B.nodeName.toLowerCase()]&&w.push(B)}let Z=w.length;for(;Z--;)B=w[Z],(!B.hasChildNodes()||B.firstChild===B.lastChild&&((f=B.firstChild)===null||f===void 0?void 0:f.nodeValue)===""||eD(e,B))&&e.remove(B)},dM=(e,n,r)=>ir(n)?e?r===1&&n.data.charAt(r-1)===ve?0:r:r===n.data.length-1&&n.data.charAt(r)===ve?n.data.length:r:r,_j=e=>{const n=e.cloneRange();return n.setStart(e.startContainer,dM(!0,e.startContainer,e.startOffset)),n.setEnd(e.endContainer,dM(!1,e.endContainer,e.endOffset)),n},u9=e=>{let n=e;do ir(n)&&(n.data=n.data.replace(/^[\r\n]+/,"")),n=n.firstChild;while(n)},Rj=(e,n,r,f,w)=>{var B,Z;const oe=e.dom,be=(B=Pf(oe,f))!==null&&B!==void 0?B:oe.getRoot();let Pe=oe.getParent(f,oe.isBlock);if(!Pe||!nD(oe,Pe)){if(Pe=Pe||be,!Pe.hasChildNodes()){const Rt=oe.create(n);return n2(e,Rt),Pe.appendChild(Rt),r.setStart(Rt,0),r.setEnd(Rt,0),Rt}let Ke=f;for(;Ke&&Ke.parentNode!==Pe;)Ke=Ke.parentNode;let Je;for(;Ke&&!oe.isBlock(Ke);)Je=Ke,Ke=Ke.previousSibling;const at=(Z=Je==null?void 0:Je.parentElement)===null||Z===void 0?void 0:Z.nodeName;if(Je&&at&&e.schema.isValidChild(at,n.toLowerCase())){const Rt=Je.parentNode,Ht=oe.create(n);for(n2(e,Ht),Rt.insertBefore(Ht,Je),Ke=Je;Ke&&!oe.isBlock(Ke);){const At=Ke.nextSibling;Ht.appendChild(Ke),Ke=At}r.setStart(f,w),r.setEnd(f,w)}}return f},Lj=(e,n)=>{n.normalize();const r=n.lastChild;(!r||Gr(r)&&/^(left|right)$/gi.test(e.getStyle(r,"float",!0)))&&e.add(n,"br")},Xee=(e,n)=>{const r=iT(e);return M(n)?!1:C(r)?Ve(ur.explode(r),n.nodeName.toLowerCase()):r},f9={insert:(e,n)=>{let r,f,w,B,Z=!1;const oe=e.dom,be=e.schema,Pe=be.getNonEmptyElements(),Ke=e.selection.getRng(),Je=ac(e),at=jt.fromDom(Ke.startContainer),Rt=Sd(at,Ke.startOffset),Ht=Rt.exists(er=>Ps(er)&&!Wo(er)),At=Ke.collapsed&&Ht,It=(er,Qr)=>JL(e,r,mr,nr,g4(e),er,Qr),ln=er=>{const Qr=dM(er,r,f);if(ir(r)&&(er?Qr>0:Qr{let er;return/^(H[1-6]|PRE|FIGURE)$/.test(w)&&Nr!=="HGROUP"?er=It(Je):er=It(),Xee(e,B)&&nD(oe,B)&&oe.isEmpty(mr,void 0,{includeZwsp:!0})?er=oe.split(B,mr):oe.insertAfter(er,mr),s0(e,er),er};Le(oe,Ke).each(er=>{Ke.setStart(er.startContainer,er.startOffset),Ke.setEnd(er.endContainer,er.endOffset)}),r=Ke.startContainer,f=Ke.startOffset;const yn=!!(n&&n.shiftKey),$n=!!(n&&n.ctrlKey);Gr(r)&&r.hasChildNodes()&&!At&&(Z=f>r.childNodes.length-1,r=r.childNodes[Math.min(f,r.childNodes.length-1)]||r,Z&&ir(r)?f=r.data.length:f=0);const nr=Pf(oe,r);if(!nr||Kee(e,r))return;yn||(r=Rj(e,Je,Ke,r,f));let mr=oe.getParent(r,oe.isBlock)||oe.getRoot();B=k(mr==null?void 0:mr.parentNode)?oe.getParent(mr.parentNode,oe.isBlock):null,w=mr?mr.nodeName.toUpperCase():"";const Nr=B?B.nodeName.toUpperCase():"";if(Nr==="LI"&&!$n){const er=B;mr=er,B=er.parentNode,w=Nr}if(Gr(B)&&Cj(e,yn,mr))return Sj(e,It,mr);if(/^(LI|DT|DD)$/.test(w)&&Gr(B)&&oe.isEmpty(mr)){Aj(e,It,B,mr,Je);return}if(!At&&(mr===e.getBody()||!nD(oe,mr)))return;const zn=mr.parentNode;let Nn;if(At)Nn=It(Je),Rt.fold(()=>{di(at,jt.fromDom(Nn))},er=>{Ri(er,jt.fromDom(Nn))}),e.selection.setCursorLocation(Nn,0);else if(rt(mr))Nn=Mn(mr),oe.isEmpty(mr)&&t2(mr),n2(e,Nn),s0(e,Nn);else if(ln(!1))Nn=xn();else if(ln(!0)&&zn){Nn=zn.insertBefore(It(),mr);const er=mu(jt.fromDom(Ke.startContainer))&&Ke.collapsed;s0(e,tD(mr,"HR")||er?Nn:mr)}else{const er=_j(Ke).cloneRange();er.setEndAfter(mr);const Qr=er.extractContents();Mj(Qr),u9(Qr),Nn=Qr.firstChild,oe.insertAfter(Qr,mr),Ej(oe,Pe,Nn),Lj(oe,mr),oe.isEmpty(mr)&&t2(mr),Nn.normalize(),oe.isEmpty(Nn)?(oe.remove(Nn),xn()):(n2(e,Nn),s0(e,Nn))}oe.setAttrib(Nn,"id",""),e.dispatch("NewBlock",{newBlock:Nn})},fakeEventName:"insertParagraph"},Dj=(e,n,r)=>{const f=new es(n,r);let w;const B=e.getNonEmptyElements();for(;w=f.next();)if(B[w.nodeName.toLowerCase()]||ir(w)&&w.length>0)return!0;return!1},d9=(e,n,r)=>{const f=e.dom.createRng();r?(f.setStartBefore(n),f.setEndBefore(n)):(f.setStartAfter(n),f.setEndAfter(n)),e.selection.setRng(f),J1(e,f)},$j=(e,n)=>{const r=e.selection,f=e.dom,w=r.getRng();let B,Z=!1;Le(f,w).each(Rt=>{w.setStart(Rt.startContainer,Rt.startOffset),w.setEnd(Rt.endContainer,Rt.endOffset)});let oe=w.startOffset,be=w.startContainer;if(Gr(be)&&be.hasChildNodes()){const Rt=oe>be.childNodes.length-1;be=be.childNodes[Math.min(oe,be.childNodes.length-1)]||be,Rt&&ir(be)?oe=be.data.length:oe=0}let Pe=f.getParent(be,f.isBlock);const Ke=Pe&&Pe.parentNode?f.getParent(Pe.parentNode,f.isBlock):null,Je=Ke?Ke.nodeName.toUpperCase():"",at=!!(n&&n.ctrlKey);Je==="LI"&&!at&&(Pe=Ke),ir(be)&&oe>=be.data.length&&(Dj(e.schema,be,Pe||f.getRoot())||(B=f.create("br"),w.insertNode(B),w.setStartAfter(B),w.setEndAfter(B),Z=!0)),B=f.create("br"),fw(f,w,B),d9(e,B,Z),e.undoManager.add()},Oj=(e,n)=>{const r=jt.fromTag("br");Ri(jt.fromDom(n),r),e.undoManager.add()},Pj=(e,n)=>{Ij(e.getBody(),n)||gu(jt.fromDom(n),jt.fromTag("br"));const r=jt.fromTag("br");gu(jt.fromDom(n),r),d9(e,r.dom,!1),e.undoManager.add()},hM=e=>Ja(e.getNode()),Ij=(e,n)=>hM(In.after(n))?!0:ic(e,In.after(n)).map(r=>Ja(r.getNode())).getOr(!1),h9=e=>e&&e.nodeName==="A"&&"href"in e,rD=e=>e.fold(ne,h9,h9,ne),oD=e=>{const n=Q(ny,e),r=In.fromRangeStart(e.selection.getRng());return Jd(n,e.getBody(),r).filter(rD)},Nj=(e,n)=>{n.fold(j,Q(Oj,e),Q(Pj,e),j)},Fj={insert:(e,n)=>{const r=oD(e);r.isSome()?r.each(Q(Nj,e)):$j(e,n)},fakeEventName:"insertLineBreak"},m9=(e,n)=>uM(e).filter(r=>n.length>0&&du(jt.fromDom(r),n)).isSome(),Bj=e=>m9(e,m4(e)),Qee=e=>m9(e,kw(e)),If=ed.generate([{br:[]},{block:[]},{none:[]}]),Qh=(e,n)=>Qee(e),g9=e=>(n,r)=>bj(n)===e,aD=(e,n)=>(r,f)=>s9(r)===e.toUpperCase()===n,Hj=e=>{const n=Pf(e.dom,e.selection.getStart());return M(n)},IS=e=>aD("pre",e),zj=()=>aD("summary",!0),mM=e=>(n,r)=>d4(n)===e,Vj=(e,n)=>Bj(e),gM=(e,n)=>n,Uj=e=>{const n=ac(e),r=Pf(e.dom,e.selection.getStart());return k(r)&&e.schema.isValidChild(r.nodeName,n)},sD=e=>{const n=e.selection.getRng(),r=jt.fromDom(n.startContainer),w=Sd(r,n.startOffset).map(B=>Ps(B)&&!Wo(B));return n.collapsed&&w.getOr(!0)},Nf=(e,n)=>(r,f)=>le(e,(B,Z)=>B&&Z(r,f),!0)?X.some(n):X.none(),pM=(e,n)=>cP([Nf([Qh],If.none()),Nf([IS(!0),Hj],If.none()),Nf([zj()],If.br()),Nf([IS(!0),mM(!1),gM],If.br()),Nf([IS(!0),mM(!1)],If.block()),Nf([IS(!0),mM(!0),gM],If.block()),Nf([IS(!0),mM(!0)],If.br()),Nf([g9(!0),gM],If.br()),Nf([g9(!0)],If.block()),Nf([Vj],If.br()),Nf([gM],If.br()),Nf([Uj],If.block()),Nf([sD],If.block())],[e,!!(n&&n.shiftKey)]).getOr(If.none()),vM=(e,n,r)=>{n.selection.isCollapsed()||G_(n),!(k(r)&&KL(n,e.fakeEventName).isDefaultPrevented())&&(e.insert(n,r),k(r)&&OS(n,e.fakeEventName))},p9=(e,n)=>{const r=()=>vM(Fj,e,n),f=()=>vM(f9,e,n),w=pM(e,n);switch(h4(e)){case"linebreak":w.fold(r,r,j);break;case"block":w.fold(f,f,j);break;case"invert":w.fold(f,r,j);break;default:w.fold(r,f,j);break}},v9=Ys(),Wj=v9.os.isiOS()&&v9.browser.isSafari(),y9=(e,n)=>{n.isDefaultPrevented()||(n.preventDefault(),lU(e.undoManager),e.undoManager.transact(()=>{p9(e,n)}))},b9=e=>{if(!e.collapsed)return!1;const n=e.startContainer;if(ir(n)){const r=/^[\uAC00-\uD7AF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uD7B0-\uD7FF]$/,f=n.data.charAt(e.startOffset-1);return r.test(f)}else return!1},Gj=e=>{let n=X.none();const r=w=>{n=X.some(w.selection.getBookmark()),w.undoManager.add()},f=(w,B)=>{w.undoManager.undo(),n.fold(j,Z=>w.selection.moveToBookmark(Z)),y9(w,B),n=X.none()};e.on("keydown",w=>{w.keyCode===Wr.ENTER&&(Wj&&b9(e.selection.getRng())?r(e):y9(e,w))}),e.on("keyup",w=>{w.keyCode===Wr.ENTER&&n.each(()=>f(e,w))})},x9=(e,n,r)=>{const f=Lr.os.isMacOS()||Lr.os.isiOS();Kx([{keyCode:Wr.END,action:Eo(eI,e,!0)},{keyCode:Wr.HOME,action:Eo(eI,e,!1)},...f?[]:[{keyCode:Wr.HOME,action:Eo(KA,e,!1),ctrlKey:!0,shiftKey:!0},{keyCode:Wr.END,action:Eo(KA,e,!0),ctrlKey:!0,shiftKey:!0}],{keyCode:Wr.END,action:Eo(JA,e,!0)},{keyCode:Wr.HOME,action:Eo(JA,e,!1)},{keyCode:Wr.END,action:Eo(zA,e,!0,n)},{keyCode:Wr.HOME,action:Eo(zA,e,!1,n)}],r).each(w=>{r.preventDefault()})},w9=(e,n)=>{e.on("keydown",r=>{r.isDefaultPrevented()||x9(e,n,r)})},Zj=e=>{e.on("input",n=>{n.isComposing||Cz(e)})},jj=Ys(),iD=(e,n,r)=>{Kx([{keyCode:Wr.PAGE_UP,action:Eo(zA,e,!1,n)},{keyCode:Wr.PAGE_DOWN,action:Eo(zA,e,!0,n)}],r)},C9=e=>e.stopImmediatePropagation(),S9=e=>e.keyCode===Wr.PAGE_UP||e.keyCode===Wr.PAGE_DOWN,NS=(e,n,r)=>{r&&!e.get()?n.on("NodeChange",C9,!0):!r&&e.get()&&n.off("NodeChange",C9),e.set(r)},Yj=(e,n)=>{if(jj.os.isMacOS())return;const r=Us(!1);e.on("keydown",f=>{S9(f)&&NS(r,e,!0)}),e.on("keyup",f=>{f.isDefaultPrevented()||iD(e,n,f),S9(f)&&r.get()&&(NS(r,e,!1),e.nodeChanged())})},lD=e=>{e.on("beforeinput",n=>{(!e.selection.isEditable()||Oe(n.getTargetRanges(),r=>!M$(e.dom,r)))&&n.preventDefault()})},yM=(e,n)=>{const r=n.container(),f=n.offset();return ir(r)?(r.insertData(f,e),X.some(In(r,f+e.length))):Gb(n).map(w=>{const B=jt.fromText(e);return n.isAtEnd()?gu(w,B):Ri(w,B),In(B.dom,e.length)})},cD=Q(yM,Da),T9=Q(yM," "),qee=(e,n,r)=>o8(e,n,r)?cD(n):T9(n),i0=e=>n=>n.fold(r=>Nc(e.dom,In.before(r)),r=>Sc(r),r=>kf(r),r=>ic(e.dom,In.after(r))),Kj=(e,n,r)=>f=>o8(e,f,r)?cD(n):T9(n),k9=e=>n=>{e.selection.setRng(n.toRange()),e.nodeChanged()},Xj=(e,n)=>e.isEditable(e.getParent(n,"summary")),bM=e=>{const n=In.fromRangeStart(e.selection.getRng()),r=jt.fromDom(e.getBody());if(e.selection.isCollapsed()){const f=Q(ny,e),w=In.fromRangeStart(e.selection.getRng());return Jd(f,e.getBody(),w).bind(i0(r)).map(B=>()=>Kj(r,n,e.schema)(B).each(k9(e)))}else return X.none()},A9=e=>{const n=()=>{const r=jt.fromDom(e.getBody());e.selection.isCollapsed()||e.getDoc().execCommand("Delete");const f=In.fromRangeStart(e.selection.getRng());qee(r,f,e.schema).each(k9(e))};return Bo(Lr.browser.isFirefox()&&e.selection.isEditable()&&Xj(e.dom,e.selection.getRng().startContainer),n)},M9=(e,n)=>{SL([{keyCode:Wr.SPACEBAR,action:Eo(bM,e)},{keyCode:Wr.SPACEBAR,action:Eo(A9,e)}],n).each(r=>{n.preventDefault(),KL(e,"insertText",{data:" "}).isDefaultPrevented()||(r(),OS(e,"insertText",{data:" "}))})},Jj=e=>{e.on("keydown",n=>{n.isDefaultPrevented()||M9(e,n)})},E9=e=>z4(e)?[{keyCode:Wr.TAB,action:Eo(wI,e,!0)},{keyCode:Wr.TAB,shiftKey:!0,action:Eo(wI,e,!1)}]:[],Qj=(e,n)=>{Kx([...E9(e)],n).each(r=>{n.preventDefault()})},qj=e=>{e.on("keydown",n=>{n.isDefaultPrevented()||Qj(e,n)})},eY=e=>{if(e.addShortcut("Meta+P","","mcePrint"),sj(e),mp(e))return Us(null);{const n=vG(e);return lD(e),zG(e),vZ(e,n),yj(e,n),Gj(e),Jj(e),Zj(e),qj(e),w9(e,n),Yj(e,n),n}};class _9{constructor(n){this.lastPath=[],this.editor=n;let r;const f=this;"onselectionchange"in n.getDoc()||n.on("NodeChange click mouseup keyup focus",w=>{const B=n.selection.getRng(),Z={startContainer:B.startContainer,startOffset:B.startOffset,endContainer:B.endContainer,endOffset:B.endOffset};(w.type==="nodechange"||!Zm(Z,r))&&n.dispatch("SelectionChange"),r=Z}),n.on("contextmenu",()=>{n.dispatch("SelectionChange")}),n.on("SelectionChange",()=>{const w=n.selection.getStart(!0);w&&ex(n)&&!f.isSameElementPath(w)&&n.dom.isChildOf(w,n.getBody())&&n.nodeChanged({selectionChange:!0})}),n.on("mouseup",w=>{!w.isDefaultPrevented()&&ex(n)&&(n.selection.getNode().nodeName==="IMG"?Ef.setEditorTimeout(n,()=>{n.nodeChanged()}):n.nodeChanged())})}nodeChanged(n={}){const r=this.editor.selection;let f;if(this.editor.initialized&&r&&!Nb(this.editor)&&!this.editor.mode.isReadOnly()){const w=this.editor.getBody();f=r.getStart(!0)||w,(f.ownerDocument!==this.editor.getDoc()||!this.editor.dom.isChildOf(f,w))&&(f=w);const B=[];this.editor.dom.getParent(f,Z=>Z===w?!0:(B.push(Z),!1)),this.editor.dispatch("NodeChange",{...n,element:f,parents:B})}}isSameElementPath(n){let r;const f=this.editor,w=ot(f.dom.getParents(n,fe,f.getBody()));if(w.length===this.lastPath.length){for(r=w.length;r>=0&&w[r]===this.lastPath[r];r--);if(r===-1)return this.lastPath=w,!0}return this.lastPath=w,!1}}const xM=Gg("image"),tY=e=>{const n=e;return X.from(n[xM])},uD=(e,n)=>{const r=e;r[xM]=n},wM=Gg("event"),CM=e=>{const n=e;return X.from(n[wM])},FS=e=>n=>{const r=n;r[wM]=e},R9=(e,n)=>FS(n)(e),L9=FS(0),nY=FS(2),SM=FS(1),oY=(e=>n=>{const r=n;return X.from(r[wM]).exists(f=>f===e)})(0),aY=()=>Object.freeze({length:0,item:e=>null}),TM=Gg("mode"),sY=e=>{const n=e;return X.from(n[TM])},kM=e=>n=>{const r=n;r[TM]=e},D9=(e,n)=>kM(n)(e),$9=kM(0),fD=kM(2),O9=kM(1),P9=e=>n=>{const r=n;return X.from(r[TM]).exists(f=>f===e)},vy=P9(0),I9=P9(1),iY=(e,n)=>({...n,get length(){return n.length},add:(r,f)=>{if(vy(e))if(C(r)){if(!N(f))return n.add(r,f)}else return n.add(r);return null},remove:r=>{vy(e)&&n.remove(r)},clear:()=>{vy(e)&&n.clear()}}),lY=["none","copy","link","move"],cY=["none","copy","copyLink","copyMove","link","linkMove","move","all","uninitialized"],dD=()=>{const e=new window.DataTransfer;let n="move",r="all";const f={get dropEffect(){return n},set dropEffect(w){Ve(lY,w)&&(n=w)},get effectAllowed(){return r},set effectAllowed(w){oY(f)&&Ve(cY,w)&&(r=w)},get items(){return iY(f,e.items)},get files(){return I9(f)?aY():e.files},get types(){return e.types},setDragImage:(w,B,Z)=>{vy(f)&&(uD(f,{image:w,x:B,y:Z}),e.setDragImage(w,B,Z))},getData:w=>I9(f)?"":e.getData(w),setData:(w,B)=>{vy(f)&&e.setData(w,B)},clearData:w=>{vy(f)&&e.clearData(w)}};return $9(f),f},r2=e=>{const n=dD(),r=sY(e);return fD(e),L9(n),n.dropEffect=e.dropEffect,n.effectAllowed=e.effectAllowed,tY(e).each(f=>n.setDragImage(f.image,f.x,f.y)),ie(e.types,f=>{f!=="Files"&&n.setData(f,e.getData(f))}),ie(e.files,f=>n.items.add(f)),CM(e).each(f=>{R9(n,f)}),r.each(f=>{D9(e,f),D9(n,f)}),n},uY=e=>{const n=e.getData("text/html");return n===""?X.none():X.some(n)},N9=(e,n)=>e.setData("text/html",n),hD="x-tinymce/html",AM=J(hD),mD="",fY=e=>mD+e,F9=e=>e.replace(mD,""),B9=e=>e.indexOf(mD)!==-1,dY=e=>!/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(e),ete=(e,n)=>{let r="<"+e;const f=jn(n,(w,B)=>B+'="'+km.encodeAllRaw(w)+'"');return f.length&&(r+=" "+f.join(" ")),r+">"},MM=(e,n,r)=>{const f=e.split(/\n\n/),w=ete(n,r),B="",Z=Fe(f,be=>be.split(/\n/).join("
    ")),oe=be=>w+be+B;return Z.length===1?Z[0]:Fe(Z,oe).join("")},H9="%MCEPASTEBIN%",hY=(e,n)=>{const{dom:r,selection:f}=e,w=e.getBody();n.set(f.getRng());const B=r.add(e.getBody(),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},H9);Lr.browser.isFirefox()&&r.setStyle(B,"left",r.getStyle(w,"direction",!0)==="rtl"?65535:-65535),r.bind(B,"beforedeactivate focusin focusout",Z=>{Z.stopPropagation()}),B.focus(),f.select(B,!0)},mY=(e,n)=>{const r=e.dom;if(gD(e)){let f;const w=n.get();for(;f=gD(e);)r.remove(f),r.unbind(f);w&&e.selection.setRng(w)}n.set(null)},gD=e=>e.dom.get("mcepastebin"),gY=e=>k(e)&&e.id==="mcepastebin",pY=e=>{const n=e.dom,r=(Z,oe)=>{Z.appendChild(oe),n.remove(oe,!0)},[f,...w]=ue(e.getBody().childNodes,gY);ie(w,Z=>{r(f,Z)});const B=n.select("div[id=mcepastebin]",f);for(let Z=B.length-1;Z>=0;Z--){const oe=n.create("div");f.insertBefore(oe,B[Z]),r(oe,B[Z])}return f?f.innerHTML:""},z9=e=>e===H9,vY=e=>{const n=Us(null);return{create:()=>hY(e,n),remove:()=>mY(e,n),getEl:()=>gD(e),getHtml:()=>pY(e),getLastRng:n.get}},V9=(e,n)=>(ur.each(n,r=>{x(r,RegExp)?e=e.replace(r,""):e=e.replace(r[0],r[1])}),e),yY=e=>{const n=_h(),r=Yd({},n);let f="";const w=n.getVoidElements(),B=ur.makeMap("script noscript style textarea video audio iframe object"," "),Z=n.getBlockElements(),oe=be=>{const Pe=be.name,Ke=be;if(Pe==="br"){f+=` -`;return}if(Pe!=="wbr"){if(w[Pe]&&(f+=" "),B[Pe]){f+=" ";return}if(be.type===3&&(f+=be.value),!(be.name in n.getVoidElements())){let Je=be.firstChild;if(Je)do oe(Je);while(Je=Je.next)}Z[Pe]&&Ke.next&&(f+=` -`,Pe==="p"&&(f+=` -`))}};return e=V9(e,[//g]),oe(r.parse(e)),f},U9=e=>(e=V9(e,[/^[\s\S]*]*>\s*|\s*<\/body[^>]*>[\s\S]*$/ig,/|/g,[/( ?)\u00a0<\/span>( ?)/g,(r,f,w)=>!f&&!w?" ":Da],/
    /g,/
    $/i]),e),bY=e=>{let n=0;return()=>e+n++},xY=e=>{const n=e.toLowerCase(),r={jpg:"jpeg",jpe:"jpeg",jfi:"jpeg",jif:"jpeg",jfif:"jpeg",pjpeg:"jpeg",pjp:"jpeg",svg:"svg+xml"};return ur.hasOwn(r,n)?"image/"+r[n]:"image/"+n},Ss=(e,n)=>{const r=Yd({sanitize:bv(e),sandbox_iframes:Vb(e)},e.schema);r.addNodeFilter("meta",w=>{ur.each(w,B=>{B.remove()})});const f=r.parse(n,{forced_root_block:!1,isRootContent:!0});return Uv({validate:!0},e.schema).serialize(f)},W9=(e,n)=>({content:e,cancelled:n}),G9=(e,n,r)=>{const f=e.dom.create("div",{style:"display:none"},n),w=d_(e,f,r);return W9(w.node.innerHTML,w.isDefaultPrevented())},wY=(e,n,r)=>{const f=f_(e,n,r),w=Ss(e,f.content);return e.hasEventListeners("PastePostProcess")&&!f.isDefaultPrevented()?G9(e,w,r):W9(w,f.isDefaultPrevented())},pD=(e,n,r)=>wY(e,n,r),EM=(e,n)=>(e.insertContent(n,{merge:Iw(e),paste:!0}),!0),vD=e=>/^https?:\/\/[\w\-\/+=.,!;:&%@^~(){}?#]+$/i.test(e),CY=(e,n)=>vD(n)&&Oe(ST(e),r=>ro(n.toLowerCase(),`.${r.toLowerCase()}`)),Z9=(e,n,r)=>(e.undoManager.extra(()=>{r(e,n)},()=>{e.insertContent('')}),!0),yD=(e,n,r)=>(e.undoManager.extra(()=>{r(e,n)},()=>{e.execCommand("mceInsertLink",!1,n)}),!0),SY=(e,n,r)=>!e.selection.isCollapsed()&&vD(n)?yD(e,n,r):!1,TY=(e,n,r)=>CY(e,n)?Z9(e,n,r):!1,kY=(e,n)=>{ur.each([SY,TY,EM],r=>!r(e,n,EM))},j9=(e,n,r)=>{r||!wT(e)?EM(e,n):kY(e,n)},AY=bY("mceclip"),MY=e=>{const n=dD();return N9(n,e),fD(n),n},yy=(e,n,r,f,w)=>{const B=pD(e,n,r);if(!B.cancelled){const Z=B.content,oe=()=>j9(e,Z,f);w?KL(e,"insertFromPaste",{dataTransfer:MY(Z)}).isDefaultPrevented()||(oe(),OS(e,"insertFromPaste")):oe()}},_M=(e,n,r,f)=>{const w=r||B9(n);yy(e,F9(n),w,!1,f)},l0=(e,n,r)=>{const f=e.dom.encode(n).replace(/\r\n/g,` -`),w=Ii(f,$4(e)),B=MM(w,ac(e),v1(e));yy(e,B,!1,!0,r)},o2=e=>{const n={};if(e&&e.types)for(let r=0;rn in e&&e[n].length>0,Y9=e=>c0(e,"text/html")||c0(e,"text/plain"),a2=(e,n)=>{const r=n.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return k(r)?e.dom.encode(r[1]):void 0},EY=(e,n,r,f)=>{const w=AY(),B=y1(e)&&k(r.name),Z=B?a2(e,r.name):w,oe=B?r.name:void 0,be=n.create(w,r,f,Z,oe);return n.add(be),be},bD=(e,n)=>{Jk(n.uri).each(({data:r,type:f,base64Encoded:w})=>{const B=w?r:btoa(r),Z=n.file,oe=e.editorUpload.blobCache,be=oe.getByData(B,f),Pe=be??EY(e,oe,Z,B);_M(e,``,!1,!0)})},xD=e=>e.type==="paste",K9=e=>Promise.all(Fe(e,n=>AV(n).then(r=>({file:n,uri:r})))),wD=e=>{const n=ST(e);return r=>wr(r.type,"image/")&&Oe(n,f=>xY(f)===r.type)},X9=(e,n)=>{const r=n.items?ze(tt(n.items),w=>w.kind==="file"?[w.getAsFile()]:[]):[],f=n.files?tt(n.files):[];return ue(r.length>0?r:f,wD(e))},J9=(e,n,r)=>{const f=xD(n)?n.clipboardData:n.dataTransfer;if(Bb(e)&&f){const w=X9(e,f);if(w.length>0)return n.preventDefault(),K9(w).then(B=>{r&&e.selection.setRng(r),ie(B,Z=>{bD(e,Z)})}),!0}return!1},_Y=e=>{var n,r;return Lr.os.isAndroid()&&((r=(n=e.clipboardData)===null||n===void 0?void 0:n.items)===null||r===void 0?void 0:r.length)===0},Q9=e=>Wr.metaKeyPressed(e)&&e.keyCode===86||e.shiftKey&&e.keyCode===45,BS=(e,n,r,f,w)=>{let B=U9(r);const Z=c0(n,AM())||B9(r),oe=!Z&&dY(B),be=vD(B);(z9(B)||!B.length||oe&&!be)&&(f=!0),(f||be)&&(c0(n,"text/plain")&&oe?B=n["text/plain"]:B=yY(B)),!z9(B)&&(f?l0(e,B,w):_M(e,B,Z,w))},CD=(e,n,r)=>{let f;const w=()=>n.getLastRng()||e.selection.getRng();e.on("keydown",B=>{Q9(B)&&!B.isDefaultPrevented()&&(f=B.shiftKey&&B.keyCode===86)}),e.on("paste",B=>{if(B.isDefaultPrevented()||_Y(B))return;const Z=r.get()==="text"||f;f=!1;const oe=o2(B.clipboardData);!Y9(oe)&&J9(e,B,w())||(c0(oe,"text/html")?(B.preventDefault(),BS(e,oe,oe["text/html"],Z,!0)):c0(oe,"text/plain")&&c0(oe,"text/uri-list")?(B.preventDefault(),BS(e,oe,oe["text/plain"],Z,!0)):(n.create(),Ef.setEditorTimeout(e,()=>{const be=n.getHtml();n.remove(),BS(e,oe,be,Z,!1)},0)))})},q9=e=>{const n=w=>wr(w,"webkit-fake-url"),r=w=>wr(w,"data:"),f=w=>{var B;return((B=w.data)===null||B===void 0?void 0:B.paste)===!0};e.parser.addNodeFilter("img",(w,B,Z)=>{if(!Bb(e)&&f(Z))for(const oe of w){const be=oe.attr("src");C(be)&&!oe.attr("data-mce-object")&&be!==Lr.transparentSrc&&(n(be)||!Hb(e)&&r(be))&&oe.remove()}})},RY=(e,n,r)=>{CD(e,n,r),q9(e)},LY=(e,n)=>{n.get()==="text"?(n.set("html"),ek(e,!1)):(n.set("text"),ek(e,!0)),e.focus()},SD=(e,n)=>{e.addCommand("mceTogglePlainTextPaste",()=>{LY(e,n)}),e.addCommand("mceInsertClipboardContent",(r,f)=>{f.html&&_M(e,f.html,f.internal,!1),f.text&&l0(e,f.text,!1)})},TD=(e,n,r)=>{if(e)try{return e.clearData(),e.setData("text/html",n),e.setData("text/plain",r),e.setData(AM(),n),!0}catch{return!1}else return!1},eN=(e,n,r,f)=>{TD(e.clipboardData,n.html,n.text)?(e.preventDefault(),f()):r(n.html,f)},kD=e=>(n,r)=>{const{dom:f,selection:w}=e,B=f.create("div",{contenteditable:"false","data-mce-bogus":"all"}),Z=f.create("div",{contenteditable:"true"},n);f.setStyles(B,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),B.appendChild(Z),f.add(e.getBody(),B);const oe=w.getRng();Z.focus();const be=f.createRng();be.selectNodeContents(Z),w.setRng(be),Ef.setEditorTimeout(e,()=>{w.setRng(oe),f.remove(B),r()},0)},AD=e=>({html:fY(e.selection.getContent({contextual:!0})),text:e.selection.getContent({format:"text"})}),DY=e=>!!e.dom.getParent(e.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",e.getBody()),MD=e=>!e.selection.isCollapsed()||DY(e),$Y=e=>n=>{!n.isDefaultPrevented()&&MD(e)&&e.selection.isEditable()&&eN(n,AD(e),kD(e),()=>{if(Lr.browser.isChromium()||Lr.browser.isFirefox()){const r=e.selection.getRng();Ef.setEditorTimeout(e,()=>{e.selection.setRng(r),e.execCommand("Delete")},0)}else e.execCommand("Delete")})},OY=e=>n=>{!n.isDefaultPrevented()&&MD(e)&&eN(n,AD(e),kD(e),j)},PY=e=>{e.on("cut",$Y(e)),e.on("copy",OY(e))},tN=(e,n)=>{var r,f;return xt.getCaretRangeFromPoint((r=n.clientX)!==null&&r!==void 0?r:0,(f=n.clientY)!==null&&f!==void 0?f:0,e.getDoc())},IY=e=>{const n=e["text/plain"];return n?n.indexOf("file://")===0:!1},HS=(e,n)=>{e.focus(),n&&e.selection.setRng(n)},NY=e=>Oe(e.files,n=>/^image\//.test(n.type)),nN=(e,n,r,f)=>{const w=e.getParent(r,Z=>pa(n,Z));if(!O(e.getParent(r,"summary")))return!0;if(w&<(f,"text/html")){const Z=new DOMParser().parseFromString(f["text/html"],"text/html").body;return!O(Z.querySelector(w.nodeName.toLowerCase()))}else return!1},FY=e=>{e.on("input",n=>{const r=f=>O(f.querySelector("summary"));if(n.inputType==="deleteByDrag"){const f=ue(e.dom.select("details"),r);ie(f,w=>{Ja(w.firstChild)&&w.firstChild.remove();const B=e.dom.create("summary");B.appendChild(ec().dom),w.prepend(B)})}})},ED=(e,n)=>{L4(e)&&e.on("dragend dragover draggesture dragdrop drop drag",r=>{r.preventDefault(),r.stopPropagation()}),Bb(e)||e.on("drop",r=>{const f=r.dataTransfer;f&&NY(f)&&r.preventDefault()}),e.on("drop",r=>{if(r.isDefaultPrevented())return;const f=tN(e,r);if(M(f))return;const w=o2(r.dataTransfer),B=c0(w,AM());if((!Y9(w)||IY(w))&&J9(e,r,f))return;const Z=w[AM()],oe=Z||w["text/html"]||w["text/plain"],be=nN(e.dom,e.schema,f.startContainer,w),Pe=n.get();Pe&&!be||oe&&(r.preventDefault(),Ef.setEditorTimeout(e,()=>{e.undoManager.transact(()=>{(Z||Pe&&be)&&e.execCommand("Delete"),HS(e,f);const Ke=U9(oe);w["text/html"]?_M(e,Ke,B,!0):l0(e,Ke,!0)})}))}),e.on("dragstart",r=>{n.set(!0)}),e.on("dragover dragend",r=>{Bb(e)&&!n.get()&&(r.preventDefault(),HS(e,tN(e,r))),r.type==="dragend"&&n.set(!1)}),FY(e)},rN=e=>{const n=w=>B=>{w(e,B)},r=D4(e);R(r)&&e.on("PastePreProcess",n(r));const f=xT(e);R(f)&&e.on("PastePostProcess",n(f))},BY=(e,n)=>{e.on("PastePreProcess",r=>{r.content=n(e,r.content,r.internal)})},HY=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,oN=e=>ur.trim(e).replace(HY,Xp).toLowerCase(),zY=(e,n,r)=>{const f=Ow(e);if(r||f==="all"||!Pw(e))return n;const w=f?f.split(/[, ]/):[];if(w&&f!=="none"){const B=e.dom,Z=e.selection.getNode();n=n.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,(oe,be,Pe,Ke)=>{const Je=B.parseStyle(B.decode(Pe)),at={};for(let Ht=0;Ht]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return n=n.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,(B,Z,oe,be)=>Z+' style="'+oe+'"'+be),n},VY=e=>{(Lr.browser.isChromium()||Lr.browser.isSafari())&&BY(e,zY)},aN=e=>{const n=Us(!1),r=Us(Nw(e)?"text":"html"),f=vY(e);VY(e),SD(e,r),rN(e),e.on("PreInit",()=>{PY(e),ED(e,n),RY(e,f,r)})},UY=e=>{e.on("click",n=>{e.dom.getParent(n.target,"details")&&n.preventDefault()})},WY=e=>{e.parser.addNodeFilter("details",n=>{const r=fl(e);ie(n,f=>{r==="expanded"?f.attr("open","open"):r==="collapsed"&&f.attr("open",null)})}),e.serializer.addNodeFilter("details",n=>{const r=l$(e);ie(n,f=>{r==="expanded"?f.attr("open","open"):r==="collapsed"&&f.attr("open",null)})})},GY=e=>{UY(e),WY(e)},ZY=Ja,sN=ir,jY=e=>fa(e.dom),YY=e=>wl(e.dom),RM=e=>n=>Ba(jt.fromDom(e),n),iN=(e,n,r)=>Xc(jt.fromDom(e),f=>YY(f)||r.isBlock(La(f)),RM(n)).getOr(jt.fromDom(n)).dom,lN=(e,n)=>Xc(jt.fromDom(e),jY,RM(n)),cN=(e,n,r)=>{const f=new es(e,n),w=r?f.next.bind(f):f.prev.bind(f);let B=e;for(let Z=r?e:w();Z&&!ZY(Z);Z=w())fo(Z)&&(B=Z);return B},KY=(e,n,r)=>{const w=In.fromRangeStart(e).getNode(),B=iN(w,n,r),Z=cN(w,B,!1),oe=cN(w,B,!0),be=document.createRange();return lN(Z,B).fold(()=>{sN(Z)?be.setStart(Z,0):be.setStartBefore(Z)},Pe=>be.setStartBefore(Pe.dom)),lN(oe,B).fold(()=>{sN(oe)?be.setEnd(oe,oe.data.length):be.setEndAfter(oe)},Pe=>be.setEndAfter(Pe.dom)),be},XY=e=>{const n=KY(e.selection.getRng(),e.getBody(),e.schema);e.selection.setRng(Tx(n))},JY=e=>{e.on("mousedown",n=>{n.detail>=3&&(n.preventDefault(),XY(e))})};var s2;(function(e){e.Before="before",e.After="after"})(s2||(s2={}));const QY=(e,n)=>Math.abs(e.left-n),LM=(e,n)=>Math.abs(e.right-n),uN=(e,n)=>e>=n.top&&e<=n.bottom,qY=(e,n)=>e.topn.top,fN=(e,n)=>{const r=r4(e,n)/Math.min(e.height,n.height);return qY(e,n)&&r>.5},dN=(e,n)=>{const r=ue(e,f=>uN(n,f));return n4(r).fold(()=>[[],e],f=>{const{pass:w,fail:B}=se(e,Z=>fN(Z,f));return[w,B]})},_D=(e,n)=>({node:e.node,position:QY(e,n)n>e.left&&n{const f=Ke=>fo(Ke.node)?X.some(Ke):Gr(Ke.node)?DM(tt(Ke.node.childNodes),n,r):X.none(),w=(Ke,Je)=>{if(Ke.length>=2){const at=f(Ke[0]).getOr(Ke[0]),Rt=f(Ke[1]).getOr(Ke[1]);if(Math.abs(Je(at,n,r)-Je(Rt,n,r))<2){if(ir(at.node))return X.some(at);if(ir(Rt.node))return X.some(Rt)}}return X.none()},B=(Ke,Je)=>{const at=Xe(Ke,(Rt,Ht)=>Je(Rt,n,r)-Je(Ht,n,r));return w(at,Je).orThunk(()=>Ct(at,f))},[Z,oe]=dN(bP(e),r),{pass:be,fail:Pe}=se(oe,Ke=>Ke.topB(Pe,aw)).orThunk(()=>B(be,aw))},tK=(e,n,r,f)=>{const w=(B,Z)=>{const oe=Pe=>Gr(Pe)&&Pe.classList.contains("mce-drag-container"),be=ue(B.dom.childNodes,he(oe));return Z.fold(()=>DM(be,r,f),Pe=>{const Ke=ue(be,Je=>Je!==Pe.dom);return DM(Ke,r,f)}).orThunk(()=>(Ba(B,e)?X.none():gm(B)).bind(Ke=>w(Ke,X.some(B))))};return w(n,X.none())},hN=(e,n,r)=>{const f=jt.fromDom(e),w=mf(f),Z=jt.fromPoint(w,n,r).filter(oe=>Dl(f,oe)).getOr(f);return tK(f,Z,n,r)},mN=(e,n,r)=>hN(e,n,r).filter(f=>Cv(f.node)).map(f=>_D(f,n)),RD=e=>{var n,r;const f=e.getBoundingClientRect(),w=e.ownerDocument,B=w.documentElement,Z=w.defaultView;return{top:f.top+((n=Z==null?void 0:Z.scrollY)!==null&&n!==void 0?n:0)-B.clientTop,left:f.left+((r=Z==null?void 0:Z.scrollX)!==null&&r!==void 0?r:0)-B.clientLeft}},nK=e=>e.inline?RD(e.getBody()):{left:0,top:0},rK=e=>{const n=e.getBody();return e.inline?{left:n.scrollLeft,top:n.scrollTop}:{left:0,top:0}},oK=e=>{const n=e.getBody(),r=e.getDoc().documentElement,f={left:n.scrollLeft,top:n.scrollTop},w={left:n.scrollLeft||r.scrollLeft,top:n.scrollTop||r.scrollTop};return e.inline?f:w},zS=(e,n)=>{if(n.target.ownerDocument!==e.getDoc()){const r=RD(e.getContentAreaContainer()),f=oK(e);return{left:n.pageX-r.left+f.left,top:n.pageY-r.top+f.top}}return{left:n.pageX,top:n.pageY}},aK=(e,n,r)=>({pageX:r.left-e.left+n.left,pageY:r.top-e.top+n.top}),sK=(e,n)=>aK(nK(e),rK(e),zS(e,n)),LD=e=>({target:e,srcElement:e}),iK=(e,n,r,f)=>({...n,dataTransfer:f,type:e,...LD(r)}),lK=(e,n,r)=>{const f=ge("Function not supported on simulated event.");return{bubbles:!0,cancelBubble:!1,cancelable:!0,composed:!1,currentTarget:null,defaultPrevented:!1,eventPhase:0,isTrusted:!0,returnValue:!1,timeStamp:0,type:e,composedPath:f,initEvent:f,preventDefault:j,stopImmediatePropagation:j,stopPropagation:j,AT_TARGET:window.Event.AT_TARGET,BUBBLING_PHASE:window.Event.BUBBLING_PHASE,CAPTURING_PHASE:window.Event.CAPTURING_PHASE,NONE:window.Event.NONE,altKey:!1,button:0,buttons:0,clientX:0,clientY:0,ctrlKey:!1,metaKey:!1,movementX:0,movementY:0,offsetX:0,offsetY:0,pageX:0,pageY:0,relatedTarget:null,screenX:0,screenY:0,shiftKey:!1,x:0,y:0,detail:0,view:null,which:0,initUIEvent:f,initMouseEvent:f,getModifierState:f,dataTransfer:r,...LD(n)}},cK=(e,n)=>{const r=r2(e);return n==="dragstart"?(L9(r),$9(r)):n==="drop"?(nY(r),fD(r)):(SM(r),O9(r)),r},uK=(e,n,r,f)=>{const w=cK(r,e);return N(f)?lK(e,n,w):iK(e,f,n,w)},$M=32,OM=100,VS=8,US=16,gN=fa,fK=o4(gN,wl),dK=(e,n,r)=>gN(r)&&r!==n&&e.isEditable(r.parentElement),tte=(e,n,r)=>M(n)||n===r||e.dom.isChildOf(n,r)?!1:e.dom.isEditable(n),hK=(e,n,r,f)=>{const w=e.dom,B=n.cloneNode(!0);w.setStyles(B,{width:r,height:f}),w.setAttrib(B,"data-mce-selected",null);const Z=w.create("div",{class:"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return w.setStyles(Z,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:r,height:f}),w.setStyles(B,{margin:0,boxSizing:"border-box"}),Z.appendChild(B),Z},DD=(e,n)=>{e.parentNode!==n&&n.appendChild(e)},i2=(e,n)=>r=>()=>{const f=e==="left"?r.scrollX:r.scrollY;r.scroll({[e]:f+n,behavior:"smooth"})},WS=i2("left",-$M),pN=i2("left",$M),vN=i2("top",-$M),$D=i2("top",$M),mK=(e,n,r,f,w,B,Z,oe,be,Pe,Ke,Je)=>{let at=0,Rt=0;e.style.left=n.pageX+"px",e.style.top=n.pageY+"px",n.pageX+r>w&&(at=n.pageX+r-w),n.pageY+f>B&&(Rt=n.pageY+f-B),e.style.width=r-at+"px",e.style.height=f-Rt+"px";const Ht=be.clientHeight,At=be.clientWidth,It=Z+be.getBoundingClientRect().top,ln=oe+be.getBoundingClientRect().left;Ke.on(xn=>{xn.intervalId.clear(),xn.dragging&&Je&&(Z+VS>=Ht?xn.intervalId.set($D(Pe)):Z-VS<=0?xn.intervalId.set(vN(Pe)):oe+VS>=At?xn.intervalId.set(pN(Pe)):oe-VS<=0?xn.intervalId.set(WS(Pe)):It+US>=window.innerHeight?xn.intervalId.set($D(window)):It-US<=0?xn.intervalId.set(vN(window)):ln+US>=window.innerWidth?xn.intervalId.set(pN(window)):ln-US<=0&&xn.intervalId.set(WS(window)))})},PM=e=>{e&&e.parentNode&&e.parentNode.removeChild(e)},yN=(e,n)=>{const r=e.getParent(n.parentNode,e.isBlock);PM(n),r&&r!==e.getRoot()&&e.isEmpty(r)&&U(jt.fromDom(r))},gK=e=>e.button===0,pK=(e,n)=>({pageX:n.pageX-e.relX,pageY:n.pageY+5}),bN=(e,n)=>r=>{if(gK(r)){const f=de(n.dom.getParents(r.target),fK).getOr(null);if(k(f)&&dK(n.dom,n.getBody(),f)){const w=n.dom.getPos(f),B=n.getBody(),Z=n.getDoc().documentElement;e.set({element:f,dataTransfer:dD(),dragging:!1,screenX:r.screenX,screenY:r.screenY,maxX:(n.inline?B.scrollWidth:Z.offsetWidth)-2,maxY:(n.inline?B.scrollHeight:Z.offsetHeight)-2,relX:r.pageX-w.x,relY:r.pageY-w.y,width:f.offsetWidth,height:f.offsetHeight,ghost:hK(n,f,f.offsetWidth,f.offsetHeight),intervalId:e4(OM)})}}},vK=(e,n,r)=>{e._selectionOverrides.hideFakeCaret(),mN(e.getBody(),n,r).fold(()=>e.selection.placeCaretAt(n,r),f=>{const w=e._selectionOverrides.showCaret(1,f.node,f.position===s2.Before,!1);w?e.selection.setRng(w):e.selection.placeCaretAt(n,r)})},IM=(e,n,r,f,w)=>{n==="dragstart"&&N9(f,e.dom.getOuterHTML(r));const B=uK(n,r,f,w);return e.dispatch(n,B)},yK=(e,n)=>{const r=l1((w,B)=>vK(n,w,B),0);n.on("remove",r.cancel);const f=e;return w=>e.on(B=>{const Z=Math.max(Math.abs(w.screenX-B.screenX),Math.abs(w.screenY-B.screenY));if(!B.dragging&&Z>10){const oe=IM(n,"dragstart",B.element,B.dataTransfer,w);if(k(oe.dataTransfer)&&(B.dataTransfer=oe.dataTransfer),oe.isDefaultPrevented())return;B.dragging=!0,n.focus()}if(B.dragging){const oe=w.currentTarget===n.getDoc().documentElement,be=pK(B,sK(n,w));DD(B.ghost,n.getBody()),mK(B.ghost,be,B.width,B.height,B.maxX,B.maxY,w.clientY,w.clientX,n.getContentAreaContainer(),n.getWin(),f,oe),r.throttle(w.clientX,w.clientY)}})},bK=e=>{const n=e.getSel();if(k(n)){const f=n.getRangeAt(0).startContainer;return ir(f)?f.parentNode:f}else return null},xK=(e,n)=>r=>{e.on(f=>{var w;if(f.intervalId.clear(),f.dragging){if(tte(n,bK(n.selection),f.element)){const B=(w=n.getDoc().elementFromPoint(r.clientX,r.clientY))!==null&&w!==void 0?w:n.getBody();IM(n,"drop",B,f.dataTransfer,r).isDefaultPrevented()||n.undoManager.transact(()=>{yN(n.dom,f.element),uY(f.dataTransfer).each(oe=>n.insertContent(oe)),n._selectionOverrides.hideFakeCaret()})}IM(n,"dragend",n.getBody(),f.dataTransfer,r)}}),PD(e)},OD=(e,n,r)=>{e.on(f=>{f.intervalId.clear(),f.dragging&&r.fold(()=>IM(n,"dragend",f.element,f.dataTransfer),w=>IM(n,"dragend",f.element,f.dataTransfer,w))}),PD(e)},wK=(e,n)=>r=>OD(e,n,X.some(r)),PD=e=>{e.on(n=>{n.intervalId.clear(),PM(n.ghost)}),e.clear()},CK=e=>{const n=Em(),r=Cs.DOM,f=document,w=bN(n,e),B=yK(n,e),Z=xK(n,e),oe=wK(n,e);e.on("mousedown",w),e.on("mousemove",B),e.on("mouseup",Z),r.bind(f,"mousemove",B),r.bind(f,"mouseup",oe),e.on("remove",()=>{r.unbind(f,"mousemove",B),r.unbind(f,"mouseup",oe)}),e.on("keydown",be=>{be.keyCode===Wr.ESC&&OD(n,e,X.none())})},SK=e=>{const n=w=>{if(!w.isDefaultPrevented()){const B=w.dataTransfer;B&&(Ve(B.types,"Files")||B.files.length>0)&&(w.preventDefault(),w.type==="drop"&&vA(e,"Dropped file type is not supported"))}},r=w=>{mk(e,w.target)&&n(w)},f=()=>{const w=Cs.DOM,B=e.dom,Z=document,oe=e.inline?e.getBody():e.getDoc(),be=["drop","dragover"];ie(be,Pe=>{w.bind(Z,Pe,r),B.bind(oe,Pe,n)}),e.on("remove",()=>{ie(be,Pe=>{w.unbind(Z,Pe,r),B.unbind(oe,Pe,n)})})};e.on("init",()=>{Ef.setEditorTimeout(e,f,0)})},TK=e=>{CK(e),Fb(e)&&SK(e)},kK=e=>{const n=l1(()=>{if(!e.removed&&e.getBody().contains(document.activeElement)){const r=e.selection.getRng();if(r.collapsed){const f=Ux(e,r,!1);e.selection.setRng(f)}}},0);e.on("focus",()=>{n.throttle()}),e.on("blur",()=>{n.cancel()})},AK=e=>{e.on("init",()=>{e.on("focusin",n=>{const r=n.target;if(zs(r)){const f=ay(e.getBody(),r),w=fa(f)?f:r;e.selection.getNode()!==w&&Vx(e,w).each(B=>e.selection.setRng(B))}})})},l2=fa,MK=(e,n)=>ay(e.getBody(),n),EK=e=>{const n=e.selection,r=e.dom,f=e.getBody(),w=Ww(e,f,r.isBlock,()=>Vv(e)),B="sel-"+r.uniqueId(),Z="data-mce-selected";let oe;const be=Nr=>k(Nr)&&r.hasClass(Nr,"mce-offscreen-selection"),Pe=Nr=>Nr!==f&&(l2(Nr)||zs(Nr))&&r.isChildOf(Nr,f)&&r.isEditable(Nr.parentNode),Ke=Nr=>{Nr&&n.setRng(Nr)},Je=(Nr,zn,Nn,er=!0)=>e.dispatch("ShowCaret",{target:zn,direction:Nr,before:Nn}).isDefaultPrevented()?null:(er&&n.scrollIntoView(zn,Nr===-1),w.show(Nn,zn)),at=Nr=>{Nr.hasAttribute("data-mce-caret")&&(Mn(Nr),n.scrollIntoView(Nr))},Rt=()=>{e.on("click",zn=>{r.isEditable(zn.target)||(zn.preventDefault(),e.focus())}),e.on("blur NewBlock",$n),e.on("ResizeWindow FullscreenStateChanged",w.reposition),e.on("tap",zn=>{const Nn=zn.target,er=MK(e,Nn);l2(er)?(zn.preventDefault(),Vx(e,er).each(yn)):Pe(Nn)&&Vx(e,Nn).each(yn)},!0),e.on("mousedown",zn=>{const Nn=zn.target;if(Nn!==f&&Nn.nodeName!=="HTML"&&!r.isChildOf(Nn,f)||!oW(e,zn.clientX,zn.clientY))return;$n(),mr();const er=MK(e,Nn);l2(er)?(zn.preventDefault(),Vx(e,er).each(yn)):mN(f,zn.clientX,zn.clientY).each(Qr=>{zn.preventDefault();const ho=Je(1,Qr.node,Qr.position===s2.Before,!1);Ke(ho),xl(er)?er.focus():e.getBody().focus()})}),e.on("keypress",zn=>{Wr.modifierPressed(zn)||l2(n.getNode())&&zn.preventDefault()}),e.on("GetSelectionRange",zn=>{let Nn=zn.range;if(oe){if(!oe.parentNode){oe=null;return}Nn=Nn.cloneRange(),Nn.selectNode(oe),zn.range=Nn}}),e.on("SetSelectionRange",zn=>{zn.range=It(zn.range);const Nn=yn(zn.range,zn.forward);Nn&&(zn.range=Nn)});const Nr=zn=>Gr(zn)&&zn.id==="mcepastebin";e.on("AfterSetSelectionRange",zn=>{const Nn=zn.range,er=Nn.startContainer.parentElement;!At(Nn)&&!Nr(er)&&mr(),be(er)||$n()}),TK(e),kK(e),AK(e)},Ht=Nr=>bt(Nr)||en(Nr)||dn(Nr),At=Nr=>Ht(Nr.startContainer)||Ht(Nr.endContainer),It=Nr=>{const zn=e.schema.getVoidElements(),Nn=r.createRng(),er=Nr.startContainer,Qr=Nr.startOffset,ho=Nr.endContainer,na=Nr.endOffset;return lt(zn,er.nodeName.toLowerCase())?Qr===0?Nn.setStartBefore(er):Nn.setStartAfter(er):Nn.setStart(er,Qr),lt(zn,ho.nodeName.toLowerCase())?na===0?Nn.setEndBefore(ho):Nn.setEndAfter(ho):Nn.setEnd(ho,na),Nn},ln=(Nr,zn)=>{const Nn=jt.fromDom(e.getBody()),er=e.getDoc(),Qr=Jl(Nn,"#"+B).getOrThunk(()=>{const ca=jt.fromHtml('
    ',er);return ws(ca,"id",B),di(Nn,ca),ca}),ho=r.createRng();Ad(Qr),hs(Qr,[jt.fromText(Da,er),jt.fromDom(zn),jt.fromText(Da,er)]),ho.setStart(Qr.dom.firstChild,1),ho.setEnd(Qr.dom.lastChild,0),$l(Qr,{top:r.getPos(Nr,e.getBody()).y+"px"}),ik(Qr);const na=n.getSel();return na&&(na.removeAllRanges(),na.addRange(ho)),ho},xn=Nr=>{const zn=Nr.cloneNode(!0),Nn=e.dispatch("ObjectSelected",{target:Nr,targetClone:zn});if(Nn.isDefaultPrevented())return null;const er=ln(Nr,Nn.targetClone),Qr=jt.fromDom(Nr);return ie(Vi(jt.fromDom(e.getBody()),`*[${Z}]`),ho=>{Ba(Qr,ho)||Xs(ho,Z)}),r.getAttrib(Nr,Z)||Nr.setAttribute(Z,"1"),oe=Nr,mr(),er},yn=(Nr,zn)=>{if(!Nr)return null;if(Nr.collapsed){if(!At(Nr)){const ho=zn?1:-1,na=Bm(ho,f,Nr),ca=na.getNode(!zn);if(k(ca)){if(Cv(ca))return Je(ho,ca,zn?!na.isAtEnd():!1,!1);if(yt(ca)&&fa(ca.nextSibling)){const ka=r.createRng();return ka.setStart(ca,0),ka.setEnd(ca,0),ka}}const os=na.getNode(zn);if(k(os)){if(Cv(os))return Je(ho,os,zn?!1:!na.isAtEnd(),!1);if(yt(os)&&fa(os.previousSibling)){const ka=r.createRng();return ka.setStart(os,1),ka.setEnd(os,1),ka}}}return null}let Nn=Nr.startContainer,er=Nr.startOffset;const Qr=Nr.endOffset;if(ir(Nn)&&er===0&&l2(Nn.parentNode)&&(Nn=Nn.parentNode,er=r.nodeIndex(Nn),Nn=Nn.parentNode),!Gr(Nn))return null;if(Qr===er+1&&Nn===Nr.endContainer){const ho=Nn.childNodes[er];if(Pe(ho))return xn(ho)}return null},$n=()=>{oe&&oe.removeAttribute(Z),Jl(jt.fromDom(e.getBody()),"#"+B).each(Ua),oe=null},nr=()=>{w.destroy(),oe=null},mr=()=>{w.hide()};return mp(e)||Rt(),{showCaret:Je,showBlockCaretContainer:at,hideFakeCaret:mr,destroy:nr}},xN=(e,n)=>{let r=n;for(let f=e.previousSibling;ir(f);f=f.previousSibling)r+=f.data.length;return r},wN=(e,n,r,f,w)=>{if(ir(r)&&(f<0||f>r.data.length))return[];const B=w&&ir(r)?[xN(r,f)]:[f];let Z=r;for(;Z!==n&&Z.parentNode;)B.push(e.nodeIndex(Z,w)),Z=Z.parentNode;return Z===n?B.reverse():[]},GS=(e,n,r,f,w,B,Z=!1)=>{const oe=wN(e,n,r,f,Z),be=wN(e,n,w,B,Z);return{start:oe,end:be}},CN=(e,n)=>{const r=n.slice(),f=r.pop();return F(f)?le(r,(B,Z)=>B.bind(oe=>X.from(oe.childNodes[Z])),X.some(e)).bind(B=>ir(B)&&(f<0||f>B.data.length)?X.none():X.some({node:B,offset:f})):X.none()},SN=(e,n)=>CN(e,n.start).bind(({node:r,offset:f})=>CN(e,n.end).map(({node:w,offset:B})=>{const Z=document.createRange();return Z.setStart(r,f),Z.setEnd(w,B),Z})),_K=(e,n,r,f=!1)=>GS(e,n,r.startContainer,r.startOffset,r.endContainer,r.endOffset,f),by=(e,n,r)=>{if(n&&e.isEmpty(n)&&!r(n)){const f=n.parentNode;e.remove(n,ir(n.firstChild)&&As(n.firstChild.data)),by(e,f,r)}},xy=(e,n,r,f=!0)=>{const w=n.startContainer.parentNode,B=n.endContainer.parentNode;n.deleteContents(),f&&!r(n.startContainer)&&(ir(n.startContainer)&&n.startContainer.data.length===0&&e.remove(n.startContainer),ir(n.endContainer)&&n.endContainer.data.length===0&&e.remove(n.endContainer),by(e,w,r),w!==B&&by(e,B,r))},NM=(e,n)=>X.from(e.dom.getParent(n.startContainer,e.dom.isBlock)),ID=(e,n,r)=>{const f=e.dynamicPatternsLookup({text:r,block:n});return{...e,blockPatterns:Ob(f).concat(e.blockPatterns),inlinePatterns:xw(f).concat(e.inlinePatterns)}},TN=(e,n,r,f)=>{const w=e.createRng();return w.setStart(n,0),w.setEnd(r,f),w.toString()},RK=e=>/^\s[^\s]/.test(e),ND=(e,n,r)=>{CI(n,0,n).each(w=>{const B=w.container;eM(B,r.start.length,n).each(be=>{const Pe=e.createRng();Pe.setStart(B,0),Pe.setEnd(be.container,be.offset),xy(e,Pe,Ke=>Ke===n)});const Z=jt.fromDom(B),oe=Dc(Z);RK(oe)&&Ol(Z,oe.slice(1))})},LK=(e,n)=>{const r=e.dom,f=n.pattern,w=SN(r.getRoot(),n.range).getOrDie("Unable to resolve path range"),B=(Z,oe)=>{const be=oe.get(Z);return S(be)&>(be).exists(Pe=>lt(Pe,"block"))};return NM(e,w).each(Z=>{f.type==="block-format"?B(f.format,e.formatter)&&e.undoManager.transact(()=>{ND(e.dom,Z,f),e.formatter.apply(f.format)}):f.type==="block-command"&&e.undoManager.transact(()=>{ND(e.dom,Z,f),e.execCommand(f.cmd,!1,f.value)})}),!0},DK=e=>Xe(e,(n,r)=>r.start.length-n.start.length),$K=(e,n)=>{const r=DK(e),f=n.replace(Da," ");return de(r,w=>n.indexOf(w.start)===0||f.indexOf(w.start)===0)},FD=(e,n,r,f)=>{var w;const B=e.dom,Z=ac(e);if(!B.is(n,Z))return[];const oe=(w=n.textContent)!==null&&w!==void 0?w:"";return $K(r.blockPatterns,oe).map(be=>ur.trim(oe).length===be.start.length?[]:[{pattern:be,range:GS(B,B.getRoot(),n,0,n,0,f)}]).getOr([])},OK=(e,n)=>{if(n.length===0)return;const r=e.selection.getBookmark();ie(n,f=>LK(e,f)),e.selection.moveToBookmark(r)},kN=(e,n)=>e.create("span",{"data-mce-type":"bookmark",id:n}),FM=(e,n)=>{const r=e.createRng();return r.setStartAfter(n.start),r.setEndBefore(n.end),r},AN=(e,n,r)=>{const f=SN(e.getRoot(),r).getOrDie("Unable to resolve path range"),w=f.startContainer,B=f.endContainer,Z=f.endOffset===0?B:B.splitText(f.endOffset),oe=f.startOffset===0?w:w.splitText(f.startOffset),be=oe.parentNode,Pe=Z.parentNode;return{prefix:n,end:Pe.insertBefore(kN(e,n+"-end"),Z),start:be.insertBefore(kN(e,n+"-start"),oe)}},MN=(e,n,r)=>{by(e,e.get(n.prefix+"-end"),r),by(e,e.get(n.prefix+"-start"),r)},BD=e=>e.start.length===0,EN=e=>(n,r)=>{const w=n.data.substring(0,r),B=w.lastIndexOf(e.charAt(e.length-1)),Z=w.lastIndexOf(e);return Z!==-1?Z+e.length:B!==-1?B+1:-1},HD=(e,n,r,f)=>{const w=n.start;return AS(e,f.container,f.offset,EN(w),r).bind(Z=>{var oe,be;const Pe=(be=(oe=r.textContent)===null||oe===void 0?void 0:oe.indexOf(w))!==null&&be!==void 0?be:-1;if(Pe!==-1&&Z.offset>=Pe+w.length){const Je=e.createRng();return Je.setStart(Z.container,Z.offset-w.length),Je.setEnd(Z.container,Z.offset),X.some(Je)}else{const Je=Z.offset-w.length;return kS(Z.container,Je,r).map(at=>{const Rt=e.createRng();return Rt.setStart(at.container,at.offset),Rt.setEnd(Z.container,Z.offset),Rt}).filter(at=>at.toString()===w).orThunk(()=>HD(e,n,r,qd(Z.container,0)))}})},zD=(e,n,r,f,w,B=!1)=>{if(n.start.length===0&&!B){const Z=e.createRng();return Z.setStart(r,f),Z.setEnd(r,f),X.some(Z)}return TS(r,f,w).bind(Z=>HD(e,n,w,Z).bind(be=>{var Pe;if(B){if(be.endContainer===Z.container&&be.endOffset===Z.offset)return X.none();if(Z.offset===0&&((Pe=be.endContainer.textContent)===null||Pe===void 0?void 0:Pe.length)===be.endOffset)return X.none()}return X.some(be)}))},VD=(e,n,r,f)=>{const w=e.dom,B=w.getRoot(),Z=r.pattern,oe=r.position.container,be=r.position.offset;return kS(oe,be-r.pattern.end.length,n).bind(Pe=>{const Ke=GS(w,B,Pe.container,Pe.offset,oe,be,f);if(BD(Z))return X.some({matches:[{pattern:Z,startRng:Ke,endRng:Ke}],position:Pe});{const Je=BM(e,r.remainingPatterns,Pe.container,Pe.offset,n,f),at=Je.getOr({matches:[],position:Pe}),Rt=at.position;return zD(w,Z,Rt.container,Rt.offset,n,Je.isNone()).map(At=>{const It=_K(w,B,At,f);return{matches:at.matches.concat([{pattern:Z,startRng:It,endRng:Ke}]),position:qd(At.startContainer,At.startOffset)}})}})},BM=(e,n,r,f,w,B)=>{const Z=e.dom;return TS(r,f,Z.getRoot()).bind(oe=>{const be=TN(Z,w,r,f);for(let Pe=0;Pe0)return BM(e,n,r,f-1,w,B);if(at.isSome())return at}return X.none()})},HM=(e,n,r)=>{e.selection.setRng(r),n.type==="inline-format"?ie(n.format,f=>{e.formatter.apply(f)}):e.execCommand(n.cmd,!1,n.value)},PK=(e,n,r,f)=>{const w=FM(e.dom,r);xy(e.dom,w,f),HM(e,n,w)},IK=(e,n,r,f,w)=>{const B=e.dom,Z=FM(B,f),oe=FM(B,r);xy(B,oe,w),xy(B,Z,w);const be={prefix:r.prefix,start:r.end,end:f.start},Pe=FM(B,be);HM(e,n,Pe)},_N=(e,n)=>{const r=Gg("mce_textpattern"),f=pe(n,(w,B)=>{const Z=AN(e,r+`_end${w.length}`,B.endRng);return w.concat([{...B,endMarker:Z}])},[]);return pe(f,(w,B)=>{const Z=f.length-w.length-1,oe=BD(B.pattern)?B.endMarker:AN(e,r+`_start${Z}`,B.startRng);return w.concat([{...B,startMarker:oe}])},[])},NK=e=>Xe(e,(n,r)=>r.end.length-n.end.length),FK=(e,n)=>{const r=We(e,f=>Oe(n,w=>f.pattern.start===w.pattern.start&&f.pattern.end===w.pattern.end));return e.length===n.length?r?e:n:e.length>n.length?e:n},RN=(e,n,r,f,w,B)=>{const Z=BM(e,w.inlinePatterns,r,f,n,B).fold(()=>[],be=>be.matches),oe=BM(e,NK(w.inlinePatterns),r,f,n,B).fold(()=>[],be=>be.matches);return FK(Z,oe)},LN=(e,n)=>{if(n.length===0)return;const r=e.dom,f=e.selection.getBookmark(),w=_N(r,n);ie(w,B=>{const Z=r.getParent(B.startMarker.start,r.isBlock),oe=be=>be===Z;BD(B.pattern)?PK(e,B.pattern,B.endMarker,oe):IK(e,B.pattern,B.startMarker,B.endMarker,oe),MN(r,B.endMarker,oe),MN(r,B.startMarker,oe)}),e.selection.moveToBookmark(f)},BK=(e,n)=>{const r=e.selection.getRng();return NM(e,r).map(f=>{var w;const B=Math.max(0,r.startOffset),Z=ID(n,f,(w=f.textContent)!==null&&w!==void 0?w:""),oe=RN(e,f,r.startContainer,B,Z,!0),be=FD(e,f,Z,!0);return be.length>0||oe.length>0?(e.undoManager.add(),e.undoManager.extra(()=>{e.execCommand("mceInsertNewLine")},()=>{Ie(e),LN(e,oe),OK(e,be);const Pe=e.selection.getRng(),Ke=TS(Pe.startContainer,Pe.startOffset,e.dom.getRoot());e.execCommand("mceInsertNewLine"),Ke.each(Je=>{const at=Je.container;at.data.charAt(Je.offset-1)===Cm&&(at.deleteData(Je.offset-1,1),by(e.dom,at.parentNode,Rt=>Rt===e.dom.getRoot()))})}),!0):!1}).getOr(!1)},HK=(e,n)=>{const r=e.selection.getRng();NM(e,r).map(f=>{const w=Math.max(0,r.startOffset-1),B=TN(e.dom,f,r.startContainer,w),Z=ID(n,f,B),oe=RN(e,f,r.startContainer,w,Z,!1);oe.length>0&&e.undoManager.transact(()=>{LN(e,oe)})})},DN=(e,n,r)=>{for(let f=0;fDN(e,n,(r,f)=>r===f.keyCode&&!Wr.modifierPressed(f)),zK=(e,n)=>DN(e,n,(r,f)=>r.charCodeAt(0)===f.charCode),UD=e=>{const n=[",",".",";",":","!","?"],r=[32],f=()=>Pc(zb(e),O4(e)),w=()=>Hw(e);e.on("keydown",Z=>{if(Z.keyCode===13&&!Wr.modifierPressed(Z)&&e.selection.isCollapsed()){const oe=f();(oe.inlinePatterns.length>0||oe.blockPatterns.length>0||w())&&BK(e,oe)&&Z.preventDefault()}},!0);const B=()=>{if(e.selection.isCollapsed()){const Z=f();(Z.inlinePatterns.length>0||w())&&HK(e,Z)}};e.on("keyup",Z=>{$N(r,Z)&&B()}),e.on("keypress",Z=>{zK(n,Z)&&Ef.setEditorTimeout(e,B)})},VK=e=>{UD(e)},UK=e=>{const n=ur.each,r=Wr.BACKSPACE,f=Wr.DELETE,w=e.dom,B=e.selection,Z=e.parser,oe=Lr.browser,be=oe.isFirefox(),Pe=oe.isChromium()||oe.isSafari(),Ke=Lr.deviceType.isiPhone()||Lr.deviceType.isiPad(),Je=Lr.os.isMacOS()||Lr.os.isiOS(),at=(to,Lo)=>{try{e.getDoc().execCommand(to,!1,String(Lo))}catch{}},Rt=to=>to.isDefaultPrevented(),Ht=()=>{const to=vr=>{const Oo=w.create("body"),Aa=vr.cloneContents();return Oo.appendChild(Aa),B.serializer.serialize(Oo,{format:"html"})},Lo=vr=>{const Oo=to(vr),Aa=w.createRng();Aa.selectNode(e.getBody());const ps=to(Aa);return Oo===ps};e.on("keydown",vr=>{const Oo=vr.keyCode;if(!Rt(vr)&&(Oo===f||Oo===r)&&e.selection.isEditable()){const Aa=e.selection.isCollapsed(),ps=e.getBody();if(Aa&&!Za(jt.fromDom(ps))||!Aa&&!Lo(e.selection.getRng()))return;vr.preventDefault(),e.setContent(""),ps.firstChild&&w.isBlock(ps.firstChild)?e.selection.setCursorLocation(ps.firstChild,0):e.selection.setCursorLocation(ps,0),e.nodeChanged()}})},At=()=>{e.shortcuts.add("meta+a",null,"SelectAll")},It=()=>{e.inline||w.bind(e.getDoc(),"mousedown mouseup",to=>{let Lo;if(to.target===e.getDoc().documentElement)if(Lo=B.getRng(),e.getBody().focus(),to.type==="mousedown"){if(bt(Lo.startContainer))return;B.placeCaretAt(to.clientX,to.clientY)}else B.setRng(Lo)})},ln=()=>{e.on("keydown",to=>{if(!Rt(to)&&to.keyCode===r){if(!e.getBody().getElementsByTagName("hr").length)return;if(B.isCollapsed()&&B.getRng().startOffset===0){const Lo=B.getNode(),vr=Lo.previousSibling;if(Lo.nodeName==="HR"){w.remove(Lo),to.preventDefault();return}vr&&vr.nodeName&&vr.nodeName.toLowerCase()==="hr"&&(w.remove(vr),to.preventDefault())}}})},xn=()=>{Range.prototype.getClientRects||e.on("mousedown",to=>{if(!Rt(to)&&to.target.nodeName==="HTML"){const Lo=e.getBody();Lo.blur(),Ef.setEditorTimeout(e,()=>{Lo.focus()})}})},yn=()=>{const to=vT(e);e.on("click",Lo=>{const vr=Lo.target;/^(IMG|HR)$/.test(vr.nodeName)&&w.isEditable(vr)&&(Lo.preventDefault(),e.selection.select(vr),e.nodeChanged()),vr.nodeName==="A"&&w.hasClass(vr,to)&&vr.childNodes.length===0&&w.isEditable(vr.parentNode)&&(Lo.preventDefault(),B.select(vr))})},$n=()=>{const to=()=>{const vr=w.getAttribs(B.getStart().cloneNode(!1));return()=>{const Oo=B.getStart();Oo!==e.getBody()&&(w.setAttrib(Oo,"style",null),n(vr,Aa=>{Oo.setAttributeNode(Aa.cloneNode(!0))}))}},Lo=()=>!B.isCollapsed()&&w.getParent(B.getStart(),w.isBlock)!==w.getParent(B.getEnd(),w.isBlock);e.on("keypress",vr=>{let Oo;return!Rt(vr)&&(vr.keyCode===8||vr.keyCode===46)&&Lo()?(Oo=to(),e.getDoc().execCommand("delete",!1),Oo(),vr.preventDefault(),!1):!0}),w.bind(e.getDoc(),"cut",vr=>{if(!Rt(vr)&&Lo()){const Oo=to();Ef.setEditorTimeout(e,()=>{Oo()})}})},nr=()=>{e.on("keydown",to=>{if(!Rt(to)&&to.keyCode===r&&B.isCollapsed()&&B.getRng().startOffset===0){const Lo=B.getNode().previousSibling;if(Lo&&Lo.nodeName&&Lo.nodeName.toLowerCase()==="table")return to.preventDefault(),!1}return!0})},mr=()=>{e.on("keydown",to=>{if(Rt(to)||to.keyCode!==Wr.BACKSPACE)return;let Lo=B.getRng();const vr=Lo.startContainer,Oo=Lo.startOffset,Aa=w.getRoot();let ps=vr;if(!(!Lo.collapsed||Oo!==0)){for(;ps.parentNode&&ps.parentNode.firstChild===ps&&ps.parentNode!==Aa;)ps=ps.parentNode;ps.nodeName==="BLOCKQUOTE"&&(e.formatter.toggle("blockquote",void 0,ps),Lo=w.createRng(),Lo.setStart(vr,0),Lo.setEnd(vr,0),B.setRng(Lo))}})},Nr=()=>{const to=()=>{at("StyleWithCSS",!1),at("enableInlineTableEditing",!1),mv(e)||at("enableObjectResizing",!1)};w1(e)||e.on("BeforeExecCommand mousedown",to)},zn=()=>{const to=()=>{n(w.select("a:not([data-mce-block])"),Lo=>{var vr;let Oo=Lo.parentNode;const Aa=w.getRoot();if((Oo==null?void 0:Oo.lastChild)===Lo){for(;Oo&&!w.isBlock(Oo);){if(((vr=Oo.parentNode)===null||vr===void 0?void 0:vr.lastChild)!==Oo||Oo===Aa)return;Oo=Oo.parentNode}w.add(Oo,"br",{"data-mce-bogus":1})}})};e.on("SetContent ExecCommand",Lo=>{(Lo.type==="setcontent"||Lo.command==="mceInsertLink")&&to()})},Nn=()=>{e.on("init",()=>{at("DefaultParagraphSeparator",ac(e))})},er=to=>{const Lo=to.getBody(),vr=to.selection.getRng();return vr.startContainer===vr.endContainer&&vr.startContainer===Lo&&vr.startOffset===0&&vr.endOffset===Lo.childNodes.length},Qr=()=>{e.on("keyup focusin mouseup",to=>{!Wr.modifierPressed(to)&&!er(e)&&B.normalize()},!0)},ho=()=>{e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")},na=()=>{e.inline||e.on("keydown",()=>{document.activeElement===document.body&&e.getWin().focus()})},ca=()=>{e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",to=>{let Lo;to.target.nodeName==="HTML"&&(Lo=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(Lo),e.selection.normalize(),e.nodeChanged())}))},os=()=>{Je&&e.on("keydown",to=>{Wr.metaKeyPressed(to)&&!to.shiftKey&&(to.keyCode===37||to.keyCode===39)&&(to.preventDefault(),e.selection.getSel().modify("move",to.keyCode===37?"backward":"forward","lineboundary"))})},ka=()=>{e.on("click",to=>{let Lo=to.target;do if(Lo.tagName==="A"){to.preventDefault();return}while(Lo=Lo.parentNode)}),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")},ei=()=>{e.on("init",()=>{e.dom.bind(e.getBody(),"submit",to=>{to.preventDefault()})})},zl=()=>{Z.addNodeFilter("br",to=>{let Lo=to.length;for(;Lo--;)to[Lo].attr("class")==="Apple-interchange-newline"&&to[Lo].remove()})},as=j,Sr=()=>{if(!be||e.removed)return!1;const to=e.selection.getSel();return!to||!to.rangeCount||to.rangeCount===0},so=()=>{Pe&&(It(),yn(),ei(),At(),Ke&&(na(),ca(),ka())),be&&(xn(),Nr(),ho(),os())},$a=()=>{e.on("drop",to=>{var Lo;const vr=(Lo=to.dataTransfer)===null||Lo===void 0?void 0:Lo.getData("text/html");C(vr)&&/^]*>$/.test(vr)&&e.dispatch("dragend",new window.DragEvent("dragend",to))})},ha=()=>{mr(),Ht(),Lr.windowsPhone||Qr(),Pe&&(It(),yn(),Nn(),ei(),nr(),zl(),Ke?(na(),ca(),ka()):At()),be&&(ln(),xn(),$n(),Nr(),zn(),ho(),os(),nr(),$a())};return mp(e)?so():ha(),{refreshContentEditable:as,isHidden:Sr}},WD=Cs.DOM,WK=(e,n)=>{const r=jt.fromDom(e.getBody()),f=qy(Yu(r)),w=jt.fromTag("style");ws(w,"type","text/css"),di(w,jt.fromText(n)),di(f,w),e.on("remove",()=>{Ua(w)})},GK=e=>e.inline?e.getElement().nodeName.toLowerCase():void 0,GD=e=>Cn(e,n=>N(n)===!1),ZS=e=>{const n=e.options.get,r=e.editorUpload.blobCache;return GD({allow_conditional_comments:n("allow_conditional_comments"),allow_html_data_urls:n("allow_html_data_urls"),allow_svg_data_urls:n("allow_svg_data_urls"),allow_html_in_named_anchor:n("allow_html_in_named_anchor"),allow_script_urls:n("allow_script_urls"),allow_unsafe_link_target:n("allow_unsafe_link_target"),convert_unsafe_embeds:n("convert_unsafe_embeds"),convert_fonts_to_spans:n("convert_fonts_to_spans"),fix_list_elements:n("fix_list_elements"),font_size_legacy_values:n("font_size_legacy_values"),forced_root_block:n("forced_root_block"),forced_root_block_attrs:n("forced_root_block_attrs"),preserve_cdata:n("preserve_cdata"),inline_styles:n("inline_styles"),root_name:GK(e),sandbox_iframes:n("sandbox_iframes"),sanitize:n("xss_sanitization"),validate:!0,blob_cache:r,document:e.getDoc()})},ON=e=>{const n=e.options.get;return GD({custom_elements:n("custom_elements"),extended_valid_elements:n("extended_valid_elements"),invalid_elements:n("invalid_elements"),invalid_styles:n("invalid_styles"),schema:n("schema"),valid_children:n("valid_children"),valid_classes:n("valid_classes"),valid_elements:n("valid_elements"),valid_styles:n("valid_styles"),verify_html:n("verify_html"),padd_empty_block_inline_children:n("format_empty_lines")})},ZK=e=>{const n=e.options.get;return{...ZS(e),...ON(e),...GD({remove_trailing_brs:n("remove_trailing_brs"),pad_empty_with_br:n("pad_empty_with_br"),url_converter:n("url_converter"),url_converter_scope:n("url_converter_scope"),element_format:n("element_format"),entities:n("entities"),entity_encoding:n("entity_encoding"),indent:n("indent"),indent_after:n("indent_after"),indent_before:n("indent_before")})}},jK=e=>{const n=Yd(ZS(e),e.schema);return n.addAttributeFilter("src,href,style,tabindex",(r,f)=>{const w=e.dom,B="data-mce-"+f;let Z=r.length;for(;Z--;){const oe=r[Z];let be=oe.attr(f);if(be&&!oe.attr(B)){if(be.indexOf("data:")===0||be.indexOf("blob:")===0)continue;f==="style"?(be=w.serializeStyle(w.parseStyle(be),oe.name),be.length||(be=null),oe.attr(B,be),oe.attr(f,be)):f==="tabindex"?(oe.attr(B,be),oe.attr(f,null)):oe.attr(B,e.convertURL(be,f,oe.name))}}}),n.addNodeFilter("script",r=>{let f=r.length;for(;f--;){const w=r[f],B=w.attr("type")||"no/type";B.indexOf("mce-")!==0&&w.attr("type","mce-"+B)}}),Bw(e)&&n.addNodeFilter("#cdata",r=>{var f;let w=r.length;for(;w--;){const B=r[w];B.type=8,B.name="#comment",B.value="[CDATA["+e.dom.encode((f=B.value)!==null&&f!==void 0?f:"")+"]]"}}),n.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",r=>{let f=r.length;const w=e.schema.getNonEmptyElements();for(;f--;){const B=r[f];B.isEmpty(w)&&B.getAll("br").length===0&&B.append(new Hc("br",1))}}),n},YK=e=>{const n=yT(e);n&&Ef.setEditorTimeout(e,()=>{let r;n===!0?r=e:r=e.editorManager.get(n),r&&!r.destroyed&&(r.focus(),r.selection.scrollIntoView())},100)},KK=e=>{const n=e.dom.getRoot();!e.inline&&(!ex(e)||e.selection.getStart(!0)===n)&&Sc(n).each(r=>{const f=r.getNode(),w=yu(f)?Sc(f).getOr(r):r;e.selection.setRng(w.toRange())})},XK=e=>{e.bindPendingEventDelegates(),e.initialized=!0,G1(e),e.focus(!0),KK(e),e.nodeChanged({initial:!0});const n=E4(e);R(n)&&n.call(e,e),YK(e)},ZD=e=>e.inline?e.ui.styleSheetLoader:e.dom.styleSheetLoader,JK=(e,n,r)=>{const{pass:f,fail:w}=se(n,oe=>tinymce.Resource.has(DR(oe))),Z=[...f.map(oe=>{const be=tinymce.Resource.get(DR(oe));return C(be)?Promise.resolve(ZD(e).loadRawCss(oe,be)):Promise.resolve()}),ZD(e).loadAll(w)];return e.inline?Z:Z.concat([e.ui.styleSheetLoader.loadAll(r)])},PN=e=>{const n=ZD(e),r=uT(e),f=e.contentCSS,w=()=>{n.unloadAll(f),e.inline||e.ui.styleSheetLoader.unloadAll(r)},B=()=>{e.removed?w():e.on("remove",w)};if(e.contentStyles.length>0){let be="";ur.each(e.contentStyles,Pe=>{be+=Pe+`\r -`}),e.dom.addStyle(be)}const Z=Promise.all(JK(e,f,r)).then(B).catch(B),oe=Ib(e);return oe&&WK(e,oe),Z},IN=e=>{const n=e.getDoc(),r=e.getBody();Wm(e),R4(e)||(n.body.spellcheck=!1,WD.setAttrib(r,"spellcheck","false")),e.quirks=UK(e),l_(e);const f=b4(e);f!==void 0&&(r.dir=f);const w=bT(e);w&&e.on("BeforeSetContent",B=>{ur.each(w,Z=>{B.content=B.content.replace(Z,oe=>"")})}),e.on("SetContent",()=>{e.addVisual(e.getBody())}),e.on("compositionstart compositionend",B=>{e.composing=B.type==="compositionstart"})},QK=e=>{mp(e)||e.load({initial:!0,format:"html"}),e.startContent=e.getContent({format:"raw"})},zM=e=>{e.removed!==!0&&(QK(e),XK(e))},qK=e=>{let n=!1;const r=setTimeout(()=>{n||e.setProgressState(!0)},500);return()=>{clearTimeout(r),n=!0,e.setProgressState(!1)}},NN=e=>{const n=e.getElement();let r=e.getDoc();e.inline&&(WD.addClass(n,"mce-content-body"),e.contentDocument=r=document,e.contentWindow=window,e.bodyElement=n,e.contentAreaContainer=n);const f=e.getBody();f.disabled=!0,e.readonly=w1(e),e._editableRoot=tf(e),!e.readonly&&e.hasEditableRoot()&&(e.inline&&WD.getStyle(f,"position",!0)==="static"&&(f.style.position="relative"),f.contentEditable="true"),f.disabled=!1,e.editorUpload=CW(e),e.schema=_h(ON(e)),e.dom=Cs(r,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,update_styles:!0,root_element:e.inline?e.getBody():null,collect:e.inline,schema:e.schema,contentCssCors:Oh(e),referrerPolicy:ia(e),onSetAttrib:Z=>{e.dispatch("SetAttrib",Z)},force_hex_color:xv(e)}),e.parser=jK(e),e.serializer=SO(ZK(e),e),e.selection=Xv(e.dom,e.getWin(),e.serializer,e),e.annotator=uC(e),e.formatter=dy(e),e.undoManager=uS(e),e._nodeChangeDispatcher=new _9(e),e._selectionOverrides=EK(e),YP(e),GY(e),Pee(e),mp(e)||(JY(e),VK(e));const w=eY(e);GA(e,w),JP(e),TW(e),aN(e);const B=yU(e);IN(e),B.fold(()=>{const Z=qK(e);PN(e).then(()=>{zM(e),Z()})},Z=>{e.setProgressState(!0),PN(e).then(()=>{Z().then(oe=>{e.setProgressState(!1),zM(e),AR(e)},oe=>{e.notificationManager.open({type:"error",text:String(oe)}),zM(e),AR(e)})})})},FN=fe,jS=(e,n,r)=>xh(e,n,FN,r),jD=Cs.DOM,BN=(e,n,r,f)=>{const w=jt.fromTag("iframe");return f.each(B=>ws(w,"tabindex",B)),Kc(w,r),Kc(w,{id:e+"_ifr",frameBorder:"0",allowTransparency:"true",title:n}),hh(w,"tox-edit-area__iframe"),w},eX=e=>{let n=sT(e)+"";Cw(e)!==e.documentBaseUrl&&(n+=''),n+='';const r=Sw(e),f=f4(e),w=e.translate(M4(e));return Tw(e)&&(n+=''),n+=`
    `,n},tX=(e,n)=>{const r=e.translate("Rich Text Area"),f=Yl(jt.fromDom(e.getElement()),"tabindex").bind(Bt),w=BN(e.id,r,ww(e),f).dom;w.onload=()=>{w.onload=null,e.dispatch("load")},e.contentAreaContainer=n.iframeContainer,e.iframeElement=w,e.iframeHTML=eX(e),jD.add(n.iframeContainer,w)},nX=e=>{const n=e.iframeElement,r=()=>{e.contentDocument=n.contentDocument,NN(e)};if(N4(e)||Lr.browser.isFirefox()){const f=e.getDoc();f.open(),f.write(e.iframeHTML),f.close(),r()}else{const f=jS(jt.fromDom(n),"load",()=>{f.unbind(),r()});n.srcdoc=e.iframeHTML}},rX=(e,n)=>{tX(e,n),n.editorContainer&&(n.editorContainer.style.display=e.orgDisplay,e.hidden=jD.isHidden(n.editorContainer)),e.getElement().style.display="none",jD.setAttrib(e.id,"aria-hidden","true"),e.getElement().style.visibility=e.orgVisibility,nX(e)},YD=Cs.DOM,oX=(e,n,r)=>{const f=uy.get(r),w=uy.urls[r]||e.documentBaseUrl.replace(/\/$/,"");if(r=ur.trim(r),f&&ur.inArray(n,r)===-1){if(e.plugins[r])return;try{const B=f(e,w)||{};e.plugins[r]=B,R(B.init)&&(B.init(e,w),n.push(r))}catch(B){PO(e,r,B)}}},HN=e=>e.replace(/^\-/,""),aX=e=>{const n=[];ie(C1(e),r=>{oX(e,n,HN(r))})},sX=e=>{const n=ur.trim(Aw(e)),r=e.ui.registry.getAll().icons,f={...sS.get("default").icons,...sS.get(n).icons};Ft(f,(w,B)=>{lt(r,B)||e.ui.registry.addIcon(B,w)})},iX=e=>{const n=gv(e);if(C(n)){const r=gp.get(n);e.theme=r(e,gp.urls[n])||{},R(e.theme.init)&&e.theme.init(e,gp.urls[n]||e.documentBaseUrl.replace(/\/$/,""))}else e.theme={}},lX=e=>{const n=Lw(e),r=fd.get(n);e.model=r(e,fd.urls[n])},cX=e=>{const n=e.theme.renderUI;return n?n():VN(e)},uX=e=>{const n=e.getElement(),f=gv(e)(e,n);return f.editorContainer.nodeType&&(f.editorContainer.id=f.editorContainer.id||e.id+"_parent"),f.iframeContainer&&f.iframeContainer.nodeType&&(f.iframeContainer.id=f.iframeContainer.id||e.id+"_iframecontainer"),f.height=f.iframeHeight?f.iframeHeight:n.offsetHeight,f},zN=(e,n)=>({editorContainer:e,iframeContainer:n,api:{}}),fX=e=>{const n=YD.create("div");return YD.insertAfter(n,e),zN(n,n)},VN=e=>{const n=e.getElement();return e.inline?zN(null):fX(n)},UN=e=>{const n=e.getElement();return e.orgDisplay=n.style.display,C(gv(e))?cX(e):R(gv(e))?uX(e):VN(e)},KD=(e,n)=>{const r={show:X.from(n.show).getOr(j),hide:X.from(n.hide).getOr(j),isEnabled:X.from(n.isEnabled).getOr(fe),setEnabled:f=>{e.mode.isReadOnly()||X.from(n.setEnabled).each(w=>w(f))}};e.ui={...e.ui,...r}},WN=async e=>{e.dispatch("ScriptsLoaded"),sX(e),iX(e),lX(e),aX(e);const n=await UN(e);KD(e,X.from(n.api).getOr({})),e.editorContainer=n.editorContainer,hW(e),e.inline?NN(e):rX(e,{editorContainer:n.editorContainer,iframeContainer:n.iframeContainer})},u0=Cs.DOM,GN=e=>e.charAt(0)==="-",dX=(e,n)=>{const r=Ew(n),f=sc(n);if(!Cf.hasCode(r)&&r!=="en"){const w=St(f)?f:`${n.editorManager.baseURL}/langs/${r}.js`;e.add(w).catch(()=>{lS(n,w,r)})}},hX=(e,n)=>{const r=gv(e);if(C(r)&&!GN(r)&&!lt(gp.urls,r)){const f=C4(e),w=f?e.documentBaseURI.toAbsolute(f):`themes/${r}/theme${n}.js`;gp.load(r,w).catch(()=>{cW(e,w,r)})}},ZN=(e,n)=>{const r=Lw(e);if(r!=="plugin"&&!lt(fd.urls,r)){const f=dT(e),w=C(f)?e.documentBaseURI.toAbsolute(f):`models/${r}/model${n}.js`;fd.load(r,w).catch(()=>{OO(e,w,r)})}},jN=e=>X.from(Xg(e)).filter(St).map(n=>({url:n,name:X.none()})),YN=(e,n,r)=>X.from(n).filter(f=>St(f)&&!sS.has(f)).map(f=>({url:`${e.editorManager.baseURL}/icons/${f}/icons${r}.js`,name:X.some(f)})),mX=(e,n,r)=>{const f=YN(n,"default",r),w=jN(n).orThunk(()=>YN(n,Aw(n),""));ie(Rs([f,w]),B=>{e.add(B.url).catch(()=>{lW(n,B.url,B.name.getOrUndefined())})})},XD=(e,n)=>{const r=(f,w)=>{uy.load(f,w).catch(()=>{_ee(e,w,f)})};Ft(Om(e),(f,w)=>{r(w,f),e.options.set("plugins",C1(e).concat(w))}),ie(C1(e),f=>{f=ur.trim(f),f&&!uy.urls[f]&&!GN(f)&&r(f,`plugins/${f}/plugin${n}.js`)})},VM=e=>{const n=gv(e);return!C(n)||k(gp.get(n))},UM=e=>{const n=Lw(e);return k(fd.get(n))},yp=(e,n)=>{const r=Ni.ScriptLoader,f=()=>{!e.removed&&VM(e)&&UM(e)&&WN(e)};hX(e,n),ZN(e,n),dX(r,e),mX(r,e,n),XD(e,n),r.loadQueue().then(f,f)},WM=(e,n)=>G2.forElement(e,{contentCssCors:vv(n),referrerPolicy:ia(n)}),c2=e=>{const n=e.id;Cf.setCode(Ew(e));const r=()=>{u0.unbind(window,"ready",r),e.render()};if(!eu.Event.domLoaded){u0.bind(window,"ready",r);return}if(!e.getElement())return;const f=jt.fromDom(e.getElement()),w=Mg(f);e.on("remove",()=>{we(f.dom.attributes,Z=>Xs(f,Z.name)),Kc(f,w)}),e.ui.styleSheetLoader=WM(f,e),Dw(e)?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden");const B=e.getElement().form||u0.getParent(n,"form");B&&(e.formElement=B,T4(e)&&!Vp(e.getElement())&&(u0.insertAfter(u0.create("input",{type:"hidden",name:n}),n),e.hasHiddenInput=!0),e.formEventDelegate=Z=>{e.dispatch(Z.type,Z)},u0.bind(B,"submit reset",e.formEventDelegate),e.on("reset",()=>{e.resetContent()}),pT(e)&&!B.submit.nodeType&&!B.submit.length&&!B._mceOldSubmit&&(B._mceOldSubmit=B.submit,B.submit=()=>(e.editorManager.triggerSave(),e.setDirty(!1),B._mceOldSubmit(B)))),e.windowManager=$O(e),e.notificationManager=LR(e),H4(e)&&e.on("GetContent",Z=>{Z.save&&(Z.content=u0.encode(Z.content))}),Nd(e)&&e.on("submit",()=>{e.initialized&&e.save()}),b1(e)&&(e._beforeUnload=()=>{e.initialized&&!e.destroyed&&!e.isHidden()&&e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),yp(e,e.suffix)},KN=(e,n)=>{e._editableRoot!==n&&(e._editableRoot=n,e.readonly||(e.getBody().contentEditable=String(e.hasEditableRoot()),e.nodeChanged()),h_(e,n))},gX=e=>e._editableRoot,pX=(e,n)=>({sections:J(e),options:J(n)}),JD=Ys().deviceType,XN=JD.isPhone(),QD=JD.isTablet(),f0=e=>{if(M(e))return[];{const n=S(e)?e:e.split(/[ ,]/),r=Fe(n,Cr);return ue(r,St)}},d0=(e,n)=>{const r=an(n,(f,w)=>Ve(e,w));return pX(r.t,r.f)},wy=(e,n,r={})=>{const f=e.sections(),w=wn(f,n).getOr({});return ur.extend({},r,w)},GM=(e,n)=>lt(e.sections(),n),vX=(e,n)=>GM(e,n)?e.sections()[n]:{},yX=(e,n)=>({...{table_grid:!1,object_resizing:!1,resize:!1,toolbar_mode:wn(e,"toolbar_mode").getOr("scrolling"),toolbar_sticky:!1},...n?{menubar:!1}:{}}),bX=(e,n)=>{var r;const f=(r=n.external_plugins)!==null&&r!==void 0?r:{};return e&&e.external_plugins?ur.extend({},e.external_plugins,f):f},xX=(e,n)=>[...f0(e),...f0(n)],wX=(e,n,r,f)=>e&&GM(n,"mobile")?f:r,CX=(e,n,r,f)=>{const w=f0(r.forced_plugins),B=f0(f.plugins),Z=vX(n,"mobile"),oe=Z.plugins?f0(Z.plugins):B,be=wX(e,n,B,oe),Pe=xX(w,be);return ur.extend(f,{forced_plugins:w,plugins:Pe})},JN=(e,n)=>e&&GM(n,"mobile"),SX=(e,n,r,f,w)=>{var B;const Z=e?{mobile:yX((B=w.mobile)!==null&&B!==void 0?B:{},n)}:{},oe=d0(["mobile"],DS(Z,w)),be=ur.extend(r,f,oe.options(),JN(e,oe)?wy(oe,"mobile"):{},{external_plugins:bX(f,oe.options())});return CX(e,oe,f,be)},TX=(e,n)=>SX(XN||QD,XN,n,e,n),kX=(e,n)=>RU(e,n),nte=e=>{const n=(f,w)=>{e.formatter.toggle(f,w),e.nodeChanged()},r=f=>()=>{ie("left,center,right,justify".split(","),w=>{f!==w&&e.formatter.remove("align"+w)}),f!=="none"&&n("align"+f)};e.editorCommands.addCommands({JustifyLeft:r("left"),JustifyCenter:r("center"),JustifyRight:r("right"),JustifyFull:r("justify"),JustifyNone:r("none")})},AX=e=>{const n=r=>()=>{const f=e.selection,w=f.isCollapsed()?[e.dom.getParent(f.getNode(),e.dom.isBlock)]:f.getSelectedBlocks();return Oe(w,B=>k(e.formatter.matchNode(B,r)))};e.editorCommands.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify")},"state")},qD=e=>{nte(e),AX(e)},MX=e=>{e.editorCommands.addCommands({"Cut,Copy,Paste":n=>{const r=e.getDoc();let f;try{r.execCommand(n)}catch{f=!0}if(n==="paste"&&!r.queryCommandEnabled(n)&&(f=!0),f||!r.queryCommandSupported(n)){let w=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");(Lr.os.isMacOS()||Lr.os.isiOS())&&(w=w.replace(/Ctrl\+/g,"⌘+")),e.notificationManager.open({text:w,type:"error"})}}})},EX=(e,n,r,f)=>{const w=jt.fromDom(e.getRoot());return yx(w,In.fromRangeStart(n),f)?r=r.replace(/^ /," "):r=r.replace(/^ /," "),bx(w,In.fromRangeEnd(n),f)?r=r.replace(/( | )()?$/," "):r=r.replace(/ ()?$/," "),r},QN=e=>{if(typeof e!="string"){const n=ur.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:n}}return{content:e,details:{}}},_X=(e,n)=>{const r=e.selection,f=e.dom;return/^ | $/.test(n)?EX(f,r.getRng(),n,e.schema):n},YS=(e,n)=>{if(e.selection.isEditable()){const{content:r,details:f}=QN(n);oR(e,{...f,content:_X(e,r),format:"html",set:!1,selection:!0}).each(w=>{const B=EU(e,w.content,f);oA(e,B,w),e.addVisual()})}},RX=e=>{e.editorCommands.addCommands({mceCleanup:()=>{const n=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(n)},insertImage:(n,r,f)=>{YS(e,e.dom.createHTML("img",{src:f}))},insertHorizontalRule:()=>{e.execCommand("mceInsertContent",!1,"
    ")},insertText:(n,r,f)=>{YS(e,e.dom.encode(f))},insertHTML:(n,r,f)=>{YS(e,f)},mceInsertContent:(n,r,f)=>{YS(e,f)},mceSetContent:(n,r,f)=>{e.setContent(f)},mceReplaceContent:(n,r,f)=>{e.execCommand("mceInsertContent",!1,f.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceNewDocument:()=>{e.setContent(yv(e))}})},e6={"font-size":"size","font-family":"face"},LX=Yc("font"),DX=(e,n,r)=>{const f=B=>_i(B,e).orThunk(()=>LX(B)?wn(e6,e).bind(Z=>Yl(B,Z)):X.none()),w=B=>Ba(jt.fromDom(n),B);return fp(jt.fromDom(r),B=>f(B),w)},$X=e=>e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,","),OX=(e,n)=>X.from(Cs.DOM.getStyle(n,e,!0)),t6=e=>(n,r)=>X.from(r).map(jt.fromDom).filter(sl).bind(f=>DX(e,n,f.dom).or(OX(e,f.dom))).getOr(""),n6=t6("font-size"),qN=P($X,t6("font-family")),r6=e=>Sc(e.getBody()).bind(n=>{const r=n.container();return X.from(ir(r)?r.parentNode:r)}),PX=e=>X.from(e.selection.getRng()).bind(n=>{const r=e.getBody();return n.startContainer===r&&n.startOffset===0?X.none():X.from(e.selection.getStart(!0))}),rte=(e,n)=>PX(e).orThunk(Q(r6,e)).map(jt.fromDom).filter(sl).bind(n),eF=(e,n)=>rte(e,ee(X.some,n)),tF=(e,n)=>{if(/^[0-9.]+$/.test(n)){const r=parseInt(n,10);if(r>=1&&r<=7){const f=F4(e),w=B4(e);return w.length>0?w[r-1]||n:f[r-1]||n}else return n}else return n},nF=e=>{const n=e.split(/\s*,\s*/);return Fe(n,r=>r.indexOf(" ")!==-1&&!(wr(r,'"')||wr(r,"'"))?`'${r}'`:r).join(",")},IX=(e,n)=>{const r=tF(e,n);e.formatter.toggle("fontname",{value:nF(r)}),e.nodeChanged()},NX=e=>eF(e,n=>qN(e.getBody(),n.dom)).getOr(""),FX=(e,n)=>{e.formatter.toggle("fontsize",{value:tF(e,n)}),e.nodeChanged()},ote=e=>eF(e,n=>n6(e.getBody(),n.dom)).getOr(""),ate=e=>eF(e,n=>{const r=jt.fromDom(e.getBody()),f=fp(n,B=>_i(B,"line-height"),Q(Ba,r)),w=()=>{const B=parseFloat(ui(n,"line-height")),Z=parseFloat(ui(n,"font-size"));return String(B/Z)};return f.getOrThunk(w)}).getOr(""),rF=(e,n)=>{e.formatter.toggle("lineheight",{value:String(n)}),e.nodeChanged()},oF=e=>{const n=(r,f)=>{e.formatter.toggle(r,f),e.nodeChanged()};e.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":r=>{n(r)},"ForeColor,HiliteColor":(r,f,w)=>{n(r,{value:w})},BackColor:(r,f,w)=>{n("hilitecolor",{value:w})},FontName:(r,f,w)=>{IX(e,w)},FontSize:(r,f,w)=>{FX(e,w)},LineHeight:(r,f,w)=>{rF(e,w)},Lang:(r,f,w)=>{var B;n(r,{value:w.code,customValue:(B=w.customCode)!==null&&B!==void 0?B:null})},RemoveFormat:r=>{e.formatter.remove(r)},mceBlockQuote:()=>{n("blockquote")},FormatBlock:(r,f,w)=>{n(C(w)?w:"p")},mceToggleFormat:(r,f,w)=>{n(w)}})},BX=e=>{const n=r=>e.formatter.match(r);e.editorCommands.addCommands({"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":r=>n(r),mceBlockQuote:()=>n("blockquote")},"state"),e.editorCommands.addQueryValueHandler("FontName",()=>NX(e)),e.editorCommands.addQueryValueHandler("FontSize",()=>ote(e)),e.editorCommands.addQueryValueHandler("LineHeight",()=>ate(e))},HX=e=>{oF(e),BX(e)},zX=e=>{e.editorCommands.addCommands({mceAddUndoLevel:()=>{e.undoManager.add()},mceEndUndoLevel:()=>{e.undoManager.add()},Undo:()=>{e.undoManager.undo()},Redo:()=>{e.undoManager.redo()}})},ste=e=>{e.editorCommands.addCommands({Indent:()=>{GP(e)},Outdent:()=>{ZP(e)}}),e.editorCommands.addCommands({Outdent:()=>zP(e)},"state")},ite=e=>{const n=(r,f,w)=>{const B=C(w)?{href:w}:w,Z=e.dom.getParent(e.selection.getNode(),"a");_(B)&&C(B.href)&&(B.href=B.href.replace(/ /g,"%20"),(!Z||!B.href)&&e.formatter.remove("link"),B.href&&e.formatter.apply("link",B,Z))};e.editorCommands.addCommands({unlink:()=>{if(e.selection.isEditable()){if(e.selection.isCollapsed()){const r=e.dom.getParent(e.selection.getStart(),"a");r&&e.dom.remove(r,!0);return}e.formatter.remove("link")}},mceInsertLink:n,createLink:n})},lte=e=>{e.editorCommands.addCommands({"InsertUnorderedList,InsertOrderedList":n=>{e.getDoc().execCommand(n);const r=e.dom.getParent(e.selection.getNode(),"ol,ul");if(r){const f=r.parentNode;if(f&&/^(H[1-6]|P|ADDRESS|PRE)$/.test(f.nodeName)){const w=e.selection.getBookmark();e.dom.split(f,r),e.selection.moveToBookmark(w)}}}})},VX=e=>{e.editorCommands.addCommands({"InsertUnorderedList,InsertOrderedList":n=>{const r=e.dom.getParent(e.selection.getNode(),"ul,ol");return r&&(n==="insertunorderedlist"&&r.tagName==="UL"||n==="insertorderedlist"&&r.tagName==="OL")}},"state")},cte=e=>{lte(e),VX(e)},UX=(e,n,r,f)=>{const w=e.dom,B=oe=>w.isBlock(oe)&&oe.parentElement===r,Z=B(n)?n:w.getParent(f,B,r);return X.from(Z).map(jt.fromDom)},h0=(e,n)=>{const r=e.dom,f=e.selection.getRng(),w=n?e.selection.getStart():e.selection.getEnd(),B=n?f.startContainer:f.endContainer,Z=Pf(r,B);if(!Z||!Z.isContentEditable)return;const oe=n?Ri:gu,be=ac(e);UX(e,w,Z,B).each(Pe=>{const Ke=JL(e,B,Pe.dom,Z,!1,be);oe(Pe,jt.fromDom(Ke)),e.selection.setCursorLocation(Ke,0),e.dispatch("NewBlock",{newBlock:Ke}),OS(e,"insertParagraph")})},o6=e=>h0(e,!0),ZM=e=>h0(e,!1),aF=e=>{e.editorCommands.addCommands({InsertNewBlockBefore:()=>{o6(e)},InsertNewBlockAfter:()=>{ZM(e)}})},sF=e=>{e.editorCommands.addCommands({insertParagraph:()=>{vM(f9,e)},mceInsertNewLine:(n,r,f)=>{p9(e,f)},InsertLineBreak:(n,r,f)=>{vM(Fj,e)}})},iF=e=>{e.editorCommands.addCommands({mceSelectNodeDepth:(n,r,f)=>{let w=0;e.dom.getParent(e.selection.getNode(),B=>Gr(B)&&w++===f?(e.selection.select(B),!1):!0,e.getBody())},mceSelectNode:(n,r,f)=>{e.selection.select(f)},selectAll:()=>{const n=e.dom.getParent(e.selection.getStart(),wl);if(n){const r=e.dom.createRng();r.selectNodeContents(n),e.selection.setRng(r)}}})},WX=e=>{e.editorCommands.addCommands({mceRemoveNode:(n,r,f)=>{const w=f??e.selection.getNode();if(w!==e.getBody()){const B=e.selection.getBookmark();e.dom.remove(w,!0),e.selection.moveToBookmark(B)}},mcePrint:()=>{e.getWin().print()},mceFocus:(n,r,f)=>{OH(e,f===!0)},mceToggleVisualAid:()=>{e.hasVisual=!e.hasVisual,e.addVisual()}})},GX=e=>{qD(e),MX(e),zX(e),iF(e),RX(e),ite(e),ste(e),aF(e),sF(e),cte(e),HX(e),WX(e)},ZX=["toggleview"],lF=e=>Ve(ZX,e.toLowerCase());class bp{constructor(n){this.commands={state:{},exec:{},value:{}},this.editor=n}execCommand(n,r=!1,f,w){const B=this.editor,Z=n.toLowerCase(),oe=w==null?void 0:w.skip_focus;if(B.removed||(Z!=="mcefocus"&&(!/^(mceAddUndoLevel|mceEndUndoLevel)$/i.test(Z)&&!oe?B.focus():xH(B)),B.dispatch("BeforeExecCommand",{command:n,ui:r,value:f}).isDefaultPrevented()))return!1;const Pe=this.commands.exec[Z];return R(Pe)?(Pe(Z,r,f),B.dispatch("ExecCommand",{command:n,ui:r,value:f}),!0):!1}queryCommandState(n){if(!lF(n)&&this.editor.quirks.isHidden()||this.editor.removed)return!1;const r=n.toLowerCase(),f=this.commands.state[r];return R(f)?f(r):!1}queryCommandValue(n){if(!lF(n)&&this.editor.quirks.isHidden()||this.editor.removed)return"";const r=n.toLowerCase(),f=this.commands.value[r];return R(f)?f(r):""}addCommands(n,r="exec"){const f=this.commands;Ft(n,(w,B)=>{ie(B.toLowerCase().split(","),Z=>{f[r][Z]=w})})}addCommand(n,r,f){const w=n.toLowerCase();this.commands.exec[w]=(B,Z,oe)=>r.call(f??this.editor,Z,oe)}queryCommandSupported(n){const r=n.toLowerCase();return!!this.commands.exec[r]}addQueryStateHandler(n,r,f){this.commands.state[n.toLowerCase()]=()=>r.call(f??this.editor)}addQueryValueHandler(n,r,f){this.commands.value[n.toLowerCase()]=()=>r.call(f??this.editor)}}const Cy="data-mce-contenteditable",cF=(e,n,r)=>{Cd(e,n)&&!r?mh(e,n):r&&hh(e,n)},a6=(e,n,r)=>{try{e.getDoc().execCommand(n,!1,String(r))}catch{}},Sy=(e,n)=>{e.dom.contentEditable=n?"true":"false"},jX=e=>{ie(Vi(e,'*[contenteditable="true"]'),n=>{ws(n,Cy,"true"),Sy(n,!1)})},YX=e=>{ie(Vi(e,`*[${Cy}="true"]`),n=>{Xs(n,Cy),Sy(n,!0)})},KX=e=>{X.from(e.selection.getNode()).each(n=>{n.removeAttribute("data-mce-selected")})},uF=e=>{e.selection.setRng(e.selection.getRng())},XX=(e,n)=>{const r=jt.fromDom(e.getBody());cF(r,"mce-content-readonly",n),n?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),KX(e),e.readonly=!0,Sy(r,!1),jX(r)):(e.readonly=!1,e.hasEditableRoot()&&Sy(r,!0),YX(r),a6(e,"StyleWithCSS",!1),a6(e,"enableInlineTableEditing",!1),a6(e,"enableObjectResizing",!1),A$(e)&&e.focus(),uF(e),e.nodeChanged())},Ty=e=>e.readonly,fF=e=>{e.parser.addAttributeFilter("contenteditable",n=>{Ty(e)&&ie(n,r=>{r.attr(Cy,r.attr("contenteditable")),r.attr("contenteditable","false")})}),e.serializer.addAttributeFilter(Cy,n=>{Ty(e)&&ie(n,r=>{r.attr("contenteditable",r.attr(Cy))})}),e.serializer.addTempAttr(Cy)},s6=e=>{e.serializer?fF(e):e.on("PreInit",()=>{fF(e)})},JX=e=>e.type==="click",QX=["copy"],rl=e=>Ve(QX,e.type),qX=(e,n)=>Ku(n,"a",f=>Ba(f,jt.fromDom(e.getBody()))).bind(f=>Yl(f,"href")),eJ=(e,n)=>{if(JX(n)&&!Wr.metaKeyPressed(n)){const r=jt.fromDom(n.target);qX(e,r).each(f=>{if(n.preventDefault(),/^#/.test(f)){const w=e.dom.select(`${f},[name="${xr(f,"#")}"]`);w.length&&e.selection.scrollIntoView(w[0],!0)}else window.open(f,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")})}else rl(n)&&e.dispatch(n.type,n)},i6=e=>{e.on("ShowCaret",n=>{Ty(e)&&n.preventDefault()}),e.on("ObjectSelected",n=>{Ty(e)&&n.preventDefault()})},dF=ur.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," ");class KS{static isNative(n){return!!dF[n.toLowerCase()]}constructor(n){this.bindings={},this.settings=n||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||ne}fire(n,r){return this.dispatch(n,r)}dispatch(n,r){const f=n.toLowerCase(),w=Qp(f,r??{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(w);const B=this.bindings[f];if(B)for(let Z=0,oe=B.length;Z{this.toggleEvent(be,!1),delete this.bindings[be]}),this;if(Z){if(!r)Z.length=0;else{const oe=se(Z,be=>be.func===r);Z=oe.fail,this.bindings[B]=Z,ie(oe.pass,be=>{be.removed=!0})}Z.length||(this.toggleEvent(n,!1),delete this.bindings[B])}}}else Ft(this.bindings,(f,w)=>{this.toggleEvent(w,!1)}),this.bindings={};return this}once(n,r,f){return this.on(n,r,f,{once:!0})}has(n){n=n.toLowerCase();const r=this.bindings[n];return!(!r||r.length===0)}}const XS=e=>(e._eventDispatcher||(e._eventDispatcher=new KS({scope:e,toggleEvent:(n,r)=>{KS.isNative(n)&&e.toggleNativeEvent&&e.toggleNativeEvent(n,r)}})),e._eventDispatcher),l6={fire(e,n,r){return this.dispatch(e,n,r)},dispatch(e,n,r){const f=this;if(f.removed&&e!=="remove"&&e!=="detach")return Qp(e.toLowerCase(),n??{},f);const w=XS(f).dispatch(e,n);if(r!==!1&&f.parent){let B=f.parent();for(;B&&!w.isPropagationStopped();)B.dispatch(e,w,!1),B=B.parent?B.parent():void 0}return w},on(e,n,r){return XS(this).on(e,n,r)},off(e,n){return XS(this).off(e,n)},once(e,n){return XS(this).once(e,n)},hasEventListeners(e){return XS(this).has(e)}},jM=Cs.DOM;let ky;const YM=(e,n)=>{if(n==="selectionchange")return e.getDoc();if(!e.inline&&/^(?:mouse|touch|click|contextmenu|drop|dragover|dragend)/.test(n))return e.getDoc().documentElement;const r=$m(e);return r?(e.eventRoot||(e.eventRoot=jM.select(r)[0]),e.eventRoot):e.getBody()},tJ=e=>!e.hidden&&!Ty(e),hF=(e,n,r)=>{tJ(e)?e.dispatch(n,r):Ty(e)&&eJ(e,r)},mF=(e,n)=>{if(e.delegates||(e.delegates={}),e.delegates[n]||e.removed)return;const r=YM(e,n);if($m(e)){if(ky||(ky={},e.editorManager.on("removeEditor",()=>{e.editorManager.activeEditor||ky&&(Ft(ky,(w,B)=>{e.dom.unbind(YM(e,B))}),ky=null)})),ky[n])return;const f=w=>{const B=w.target,Z=e.editorManager.get();let oe=Z.length;for(;oe--;){const be=Z[oe].getBody();(be===B||jM.isChildOf(B,be))&&hF(Z[oe],n,w)}};ky[n]=f,jM.bind(r,n,f)}else{const f=w=>{hF(e,n,w)};jM.bind(r,n,f),e.delegates[n]=f}},Ay={...l6,bindPendingEventDelegates(){const e=this;ur.each(e._pendingNativeEvents,n=>{mF(e,n)})},toggleNativeEvent(e,n){const r=this;e==="focus"||e==="blur"||r.removed||(n?r.initialized?mF(r,e):r._pendingNativeEvents?r._pendingNativeEvents.push(e):r._pendingNativeEvents=[e]:r.initialized&&r.delegates&&(r.dom.unbind(YM(r,e),e,r.delegates[e]),delete r.delegates[e]))},unbindAllNativeEvents(){const e=this,n=e.getBody(),r=e.dom;e.delegates&&(Ft(e.delegates,(f,w)=>{e.dom.unbind(YM(e,w),w,f)}),delete e.delegates),!e.inline&&n&&r&&(n.onload=null,r.unbind(e.getWin()),r.unbind(e.getDoc())),r&&(r.unbind(n),r.unbind(e.getContainer()))}},qh=e=>C(e)?{value:e.split(/[ ,]/),valid:!0}:H(e,C)?{value:e,valid:!0}:{valid:!1,message:"The value must be a string[] or a comma/space separated string."},nJ=e=>{const n=(()=>{switch(e){case"array":return S;case"boolean":return D;case"function":return R;case"number":return F;case"object":return _;case"string":return C;case"string[]":return qh;case"object[]":return r=>H(r,_);case"regexp":return r=>x(r,RegExp);default:return fe}})();return r=>c6(r,n,`The value must be a ${e}.`)},rJ=e=>C(e.processor),gF=(e,n)=>{const r=kt(n.message)?"":`. ${n.message}`;return e+r},pF=e=>e.valid,c6=(e,n,r="")=>{const f=n(e);return D(f)?f?{value:e,valid:!0}:{valid:!1,message:r}:f},oJ=(e,n,r)=>{if(!N(n)){const f=c6(n,r);if(pF(f))return f.value;console.error(gF(`Invalid default value passed for the "${e}" option`,f))}},aJ=(e,n)=>{const r={},f={},w=(Je,at,Rt)=>{const Ht=c6(at,Rt);return pF(Ht)?(f[Je]=Ht.value,!0):(console.warn(gF(`Invalid value passed for the ${Je} option`,Ht)),!1)},B=(Je,at)=>{const Rt=rJ(at)?nJ(at.processor):at.processor,Ht=oJ(Je,at.default,Rt);r[Je]={...at,default:Ht,processor:Rt},wn(f,Je).orThunk(()=>wn(n,Je)).each(It=>w(Je,It,Rt))},Z=Je=>lt(r,Je);return{register:B,isRegistered:Z,get:Je=>wn(f,Je).orThunk(()=>wn(r,Je).map(at=>at.default)).getOrUndefined(),set:(Je,at)=>{if(Z(Je)){const Rt=r[Je];return Rt.immutable?(console.error(`"${Je}" is an immutable option and cannot be updated`),!1):w(Je,at,Rt.processor)}else return console.warn(`"${Je}" is not a registered option. Ensure the option has been registered before setting a value.`),!1},unset:Je=>{const at=Z(Je);return at&&delete f[Je],at},isSet:Je=>lt(f,Je)}},sJ=["design","readonly"],vF=(e,n,r,f)=>{const w=r[n.get()],B=r[f];try{B.activate()}catch(Z){console.error(`problem while activating editor mode ${f}:`,Z);return}w.deactivate(),w.editorReadOnly!==B.editorReadOnly&&XX(e,B.editorReadOnly),n.set(f),hC(e,f)},ute=(e,n,r,f)=>{if(f!==r.get()){if(!lt(n,f))throw new Error(`Editor mode '${f}' is invalid`);e.initialized?vF(e,r,n,f):e.on("init",()=>vF(e,r,n,f))}},iJ=(e,n,r)=>{if(Ve(sJ,n))throw new Error(`Cannot override default mode ${n}`);return{...e,[n]:{...r,deactivate:()=>{try{r.deactivate()}catch(f){console.error(`problem while deactivating editor mode ${n}:`,f)}}}}},lJ=e=>{const n=Us("design"),r=Us({design:{activate:j,deactivate:j,editorReadOnly:!1},readonly:{activate:j,deactivate:j,editorReadOnly:!0}});return s6(e),i6(e),{isReadOnly:()=>Ty(e),set:f=>ute(e,r.get(),n,f),get:()=>n.get(),register:(f,w)=>{r.set(iJ(r.get(),f,w))}}},u6=ur.each,f6=ur.explode,cJ={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},yF=ur.makeMap("alt,ctrl,shift,meta,access"),fte=e=>e in yF,uJ=e=>{const n={},r=Lr.os.isMacOS()||Lr.os.isiOS();u6(f6(e.toLowerCase(),"+"),B=>{fte(B)?n[B]=!0:/^[0-9]{2,}$/.test(B)?n.keyCode=parseInt(B,10):(n.charCode=B.charCodeAt(0),n.keyCode=cJ[B]||B.toUpperCase().charCodeAt(0))});const f=[n.keyCode];let w;for(w in yF)n[w]?f.push(w):n[w]=!1;return n.id=f.join(","),n.access&&(n.alt=!0,r?n.ctrl=!0:n.shift=!0),n.meta&&(r?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n};class bF{constructor(n){this.shortcuts={},this.pendingPatterns=[],this.editor=n;const r=this;n.on("keyup keypress keydown",f=>{(r.hasModifier(f)||r.isFunctionKey(f))&&!f.isDefaultPrevented()&&(u6(r.shortcuts,w=>{r.matchShortcut(f,w)&&(r.pendingPatterns=w.subpatterns.slice(0),f.type==="keydown"&&r.executeShortcutAction(w))}),r.matchShortcut(f,r.pendingPatterns[0])&&(r.pendingPatterns.length===1&&f.type==="keydown"&&r.executeShortcutAction(r.pendingPatterns[0]),r.pendingPatterns.shift()))})}add(n,r,f,w){const B=this,Z=B.normalizeCommandFunc(f);return u6(f6(ur.trim(n)),oe=>{const be=B.createShortcut(oe,r,Z,w);B.shortcuts[be.id]=be}),!0}remove(n){const r=this.createShortcut(n);return this.shortcuts[r.id]?(delete this.shortcuts[r.id],!0):!1}normalizeCommandFunc(n){const r=this,f=n;return typeof f=="string"?()=>{r.editor.execCommand(f,!1,null)}:ur.isArray(f)?()=>{r.editor.execCommand(f[0],f[1],f[2])}:f}createShortcut(n,r,f,w){const B=ur.map(f6(n,">"),uJ);return B[B.length-1]=ur.extend(B[B.length-1],{func:f,scope:w||this.editor}),ur.extend(B[0],{desc:this.editor.translate(r),subpatterns:B.slice(1)})}hasModifier(n){return n.altKey||n.ctrlKey||n.metaKey}isFunctionKey(n){return n.type==="keydown"&&n.keyCode>=112&&n.keyCode<=123}matchShortcut(n,r){return!r||r.ctrl!==n.ctrlKey||r.meta!==n.metaKey||r.alt!==n.altKey||r.shift!==n.shiftKey?!1:n.keyCode===r.keyCode||n.charCode&&n.charCode===r.charCode?(n.preventDefault(),!0):!1}executeShortcutAction(n){return n.func?n.func.call(n.scope):null}}const fJ=()=>{const e={},n={},r={},f={},w={},B={},Z={},oe={},be=(Ke,Je)=>(at,Rt)=>{Ke[at.toLowerCase()]={...Rt,type:Je}},Pe=(Ke,Je)=>f[Ke.toLowerCase()]=Je;return{addButton:be(e,"button"),addGroupToolbarButton:be(e,"grouptoolbarbutton"),addToggleButton:be(e,"togglebutton"),addMenuButton:be(e,"menubutton"),addSplitButton:be(e,"splitbutton"),addMenuItem:be(n,"menuitem"),addNestedMenuItem:be(n,"nestedmenuitem"),addToggleMenuItem:be(n,"togglemenuitem"),addAutocompleter:be(r,"autocompleter"),addContextMenu:be(w,"contextmenu"),addContextToolbar:be(B,"contexttoolbar"),addContextForm:be(B,"contextform"),addSidebar:be(Z,"sidebar"),addView:be(oe,"views"),addIcon:Pe,getAll:()=>({buttons:e,menuItems:n,icons:f,popups:r,contextMenus:w,contextToolbars:B,sidebars:Z,views:oe})}},dJ=()=>{const e=fJ();return{addAutocompleter:e.addAutocompleter,addButton:e.addButton,addContextForm:e.addContextForm,addContextMenu:e.addContextMenu,addContextToolbar:e.addContextToolbar,addIcon:e.addIcon,addMenuButton:e.addMenuButton,addMenuItem:e.addMenuItem,addNestedMenuItem:e.addNestedMenuItem,addSidebar:e.addSidebar,addSplitButton:e.addSplitButton,addToggleButton:e.addToggleButton,addGroupToolbarButton:e.addGroupToolbarButton,addToggleMenuItem:e.addToggleMenuItem,addView:e.addView,getAll:e.getAll}},My=Cs.DOM,xF=ur.extend,hJ=ur.each;class KM{constructor(n,r,f){this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.composing=!1,this.destroyed=!1,this.hasHiddenInput=!1,this.iframeElement=null,this.initialized=!1,this.readonly=!1,this.removed=!1,this.startContent="",this._pendingNativeEvents=[],this._skinLoaded=!1,this._editableRoot=!0,this.editorManager=f,this.documentBaseUrl=f.documentBaseURL,xF(this,Ay);const w=this;this.id=n,this.hidden=!1;const B=TX(f.defaultOptions,r);this.options=aJ(w,B),aT(w);const Z=this.options.get;Z("deprecation_warnings")&&Aee(r,B);const oe=Z("suffix");oe&&(f.suffix=oe),this.suffix=f.suffix;const be=Z("base_url");be&&f._setBaseUrl(be),this.baseUri=f.baseURI;const Pe=ia(w);Pe&&(Ni.ScriptLoader._setReferrerPolicy(Pe),Cs.DOM.styleSheetLoader._setReferrerPolicy(Pe));const Ke=vv(w);k(Ke)&&Cs.DOM.styleSheetLoader._setContentCssCors(Ke),rc.languageLoad=Z("language_load"),rc.baseURL=f.baseURL,this.setDirty(!1),this.documentBaseURI=new cd(Cw(w),{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=Dw(w),this.hasVisual=k4(w),this.shortcuts=new bF(this),this.editorCommands=new bp(this),GX(this);const Je=Z("cache_suffix");Je&&(Lr.cacheSuffix=Je.replace(/^[\?\&]+/,"")),this.ui={registry:dJ(),styleSheetLoader:void 0,show:j,hide:j,setEnabled:j,isEnabled:fe},this.mode=lJ(w),f.dispatch("SetupEditor",{editor:this});const at=$w(w);R(at)&&at.call(w,w)}render(){c2(this)}focus(n){this.execCommand("mceFocus",!1,n)}hasFocus(){return Vv(this)}translate(n){return Cf.translate(n)}getParam(n,r,f){const w=this.options;return w.isRegistered(n)||(k(f)?w.register(n,{processor:f,default:r}):w.register(n,{processor:fe,default:r})),!w.isSet(n)&&!N(r)?r:w.get(n)}hasPlugin(n,r){return Ve(C1(this),n)?r?uy.get(n)!==void 0:!0:!1}nodeChanged(n){this._nodeChangeDispatcher.nodeChanged(n)}addCommand(n,r,f){this.editorCommands.addCommand(n,r,f)}addQueryStateHandler(n,r,f){this.editorCommands.addQueryStateHandler(n,r,f)}addQueryValueHandler(n,r,f){this.editorCommands.addQueryValueHandler(n,r,f)}addShortcut(n,r,f,w){this.shortcuts.add(n,r,f,w)}execCommand(n,r,f,w){return this.editorCommands.execCommand(n,r,f,w)}queryCommandState(n){return this.editorCommands.queryCommandState(n)}queryCommandValue(n){return this.editorCommands.queryCommandValue(n)}queryCommandSupported(n){return this.editorCommands.queryCommandSupported(n)}show(){const n=this;n.hidden&&(n.hidden=!1,n.inline?n.getBody().contentEditable="true":(My.show(n.getContainer()),My.hide(n.id)),n.load(),n.dispatch("show"))}hide(){const n=this;n.hidden||(n.save(),n.inline?(n.getBody().contentEditable="false",n===n.editorManager.focusedEditor&&(n.editorManager.focusedEditor=null)):(My.hide(n.getContainer()),My.setStyle(n.id,"display",n.orgDisplay)),n.hidden=!0,n.dispatch("hide"))}isHidden(){return this.hidden}setProgressState(n,r){this.dispatch("ProgressState",{state:n,time:r})}load(n={}){const r=this,f=r.getElement();if(r.removed)return"";if(f){const w={...n,load:!0},B=Vp(f)?f.value:f.innerHTML,Z=r.setContent(B,w);return w.no_events||r.dispatch("LoadContent",{...w,element:f}),Z}else return""}save(n={}){const r=this;let f=r.getElement();if(!f||!r.initialized||r.removed)return"";const w={...n,save:!0,element:f};let B=r.getContent(w);const Z={...w,content:B};if(Z.no_events||r.dispatch("SaveContent",Z),Z.format==="raw"&&r.dispatch("RawSaveContent",Z),B=Z.content,Vp(f))f.value=B;else{(n.is_removing||!r.inline)&&(f.innerHTML=B);const oe=My.getParent(r.id,"form");oe&&hJ(oe.elements,be=>be.name===r.id?(be.value=B,!1):!0)}return Z.element=w.element=f=null,Z.set_dirty!==!1&&r.setDirty(!1),B}setContent(n,r){return ER(this,n,r)}getContent(n){return kO(this,n)}insertContent(n,r){r&&(n=xF({content:n},r)),this.execCommand("mceInsertContent",!1,n)}resetContent(n){n===void 0?ER(this,this.startContent,{format:"raw"}):ER(this,n),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()}isDirty(){return!this.isNotDirty}setDirty(n){const r=!this.isNotDirty;this.isNotDirty=!n,n&&n!==r&&this.dispatch("dirty")}getContainer(){const n=this;return n.container||(n.container=n.editorContainer||My.get(n.id+"_parent")),n.container}getContentAreaContainer(){return this.contentAreaContainer}getElement(){return this.targetElm||(this.targetElm=My.get(this.id)),this.targetElm}getWin(){const n=this;if(!n.contentWindow){const r=n.iframeElement;r&&(n.contentWindow=r.contentWindow)}return n.contentWindow}getDoc(){const n=this;if(!n.contentDocument){const r=n.getWin();r&&(n.contentDocument=r.document)}return n.contentDocument}getBody(){var n,r;const f=this.getDoc();return(r=(n=this.bodyElement)!==null&&n!==void 0?n:f==null?void 0:f.body)!==null&&r!==void 0?r:null}convertURL(n,r,f){const w=this,B=w.options.get,Z=_4(w);if(R(Z))return Z.call(w,n,f,!0,r);if(!B("convert_urls")||f==="link"||_(f)&&f.nodeName==="LINK"||n.indexOf("file:")===0||n.length===0)return n;const oe=new cd(n);return oe.protocol!=="http"&&oe.protocol!=="https"&&oe.protocol!==""?n:B("relative_urls")?w.documentBaseURI.toRelative(n):(n=w.documentBaseURI.toAbsolute(n,B("remove_script_host")),n)}addVisual(n){kX(this,n)}setEditableRoot(n){KN(this,n)}hasEditableRoot(){return gX(this)}remove(){nW(this)}destroy(n){rW(this,n)}uploadImages(){return this.editorUpload.uploadImages()}_scanForImages(){return this.editorUpload.scanForImages()}}const u2=Cs.DOM,XM=ur.each;let wF=!1,JM,Pu=[];const QM=e=>{const n=e.type;XM(m0.get(),r=>{switch(n){case"scroll":r.dispatch("ScrollWindow",e);break;case"resize":r.dispatch("ResizeWindow",e);break}})},CF=e=>{if(e!==wF){const n=Cs.DOM;e?(n.bind(window,"resize",QM),n.bind(window,"scroll",QM)):(n.unbind(window,"resize",QM),n.unbind(window,"scroll",QM)),wF=e}},SF=e=>{const n=Pu;return Pu=ue(Pu,r=>e!==r),m0.activeEditor===e&&(m0.activeEditor=Pu.length>0?Pu[0]:null),m0.focusedEditor===e&&(m0.focusedEditor=null),n.length!==Pu.length},TF=e=>{e&&e.initialized&&!(e.getContainer()||e.getBody()).parentNode&&(SF(e),e.unbindAllNativeEvents(),e.destroy(!0),e.removed=!0)},mJ=document.compatMode!=="CSS1Compat",m0={...l6,baseURI:null,baseURL:null,defaultOptions:{},documentBaseURL:null,suffix:null,majorVersion:"6",minorVersion:"8.0",releaseDate:"2023-11-22",i18n:Cf,activeEditor:null,focusedEditor:null,setup(){const e=this;let n="",r="",f=cd.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(f)&&(f=f.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(f)||(f+="/"));const w=window.tinymce||window.tinyMCEPreInit;if(w)n=w.base||w.baseURL,r=w.suffix;else{const B=document.getElementsByTagName("script");for(let Z=0;Z{rc.PluginManager.urls[B]=w})},init(e){const n=this;let r;const f=ur.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),w=(Ke,Je)=>Ke.inline&&Je.tagName.toLowerCase()in f,B=Ke=>{let Je=Ke.id;return Je||(Je=wn(Ke,"name").filter(at=>!u2.get(at)).getOrThunk(u2.uniqueId),Ke.setAttribute("id",Je)),Je},Z=Ke=>{const Je=e[Ke];if(Je)return Je.apply(n,[])},oe=Ke=>Lr.browser.isIE()||Lr.browser.isEdge()?(cS("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tiny.cloud/docs/tinymce/6/support/#supportedwebbrowsers"),[]):mJ?(cS("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[]):C(Ke.selector)?u2.select(Ke.selector):k(Ke.target)?[Ke.target]:[];let be=Ke=>{r=Ke};const Pe=()=>{let Ke=0;const Je=[];let at;const Rt=(Ht,At,It)=>{const ln=new KM(Ht,At,n);Je.push(ln),ln.on("init",()=>{++Ke===at.length&&be(Je)}),ln.targetElm=ln.targetElm||It,ln.render()};u2.unbind(window,"ready",Pe),Z("onpageload"),at=Gt(oe(e)),ur.each(at,Ht=>{TF(n.get(Ht.id))}),at=ur.grep(at,Ht=>!n.get(Ht.id)),at.length===0?be([]):XM(at,Ht=>{w(e,Ht)?cS("Could not initialize inline editor on invalid inline target element",Ht):Rt(B(Ht),e,Ht)})};return u2.bind(window,"ready",Pe),new Promise(Ke=>{r?Ke(r):be=Je=>{Ke(Je)}})},get(e){return arguments.length===0?Pu.slice(0):C(e)?de(Pu,n=>n.id===e).getOr(null):F(e)&&Pu[e]?Pu[e]:null},add(e){const n=this,r=n.get(e.id);return r===e||(r===null&&Pu.push(e),CF(!0),n.activeEditor=e,n.dispatch("AddEditor",{editor:e}),JM||(JM=f=>{const w=n.dispatch("BeforeUnload");if(w.returnValue)return f.preventDefault(),f.returnValue=w.returnValue,w.returnValue},window.addEventListener("beforeunload",JM))),e},createEditor(e,n){return this.add(new KM(e,n,this))},remove(e){const n=this;let r;if(!e){for(let f=Pu.length-1;f>=0;f--)n.remove(Pu[f]);return}if(C(e)){XM(u2.select(e),f=>{r=n.get(f.id),r&&n.remove(r)});return}return r=e,O(n.get(r.id))?null:(SF(r)&&n.dispatch("RemoveEditor",{editor:r}),Pu.length===0&&window.removeEventListener("beforeunload",JM),r.remove(),CF(Pu.length>0),r)},execCommand(e,n,r){var f;const w=this,B=_(r)?(f=r.id)!==null&&f!==void 0?f:r.index:r;switch(e){case"mceAddEditor":{if(!w.get(B)){const Z=r.options;new KM(B,Z,w).render()}return!0}case"mceRemoveEditor":{const Z=w.get(B);return Z&&Z.remove(),!0}case"mceToggleEditor":{const Z=w.get(B);return Z?(Z.isHidden()?Z.show():Z.hide(),!0):(w.execCommand("mceAddEditor",!1,r),!0)}}return w.activeEditor?w.activeEditor.execCommand(e,n,r):!1},triggerSave:()=>{XM(Pu,e=>{e.save()})},addI18n:(e,n)=>{Cf.add(e,n)},translate:e=>Cf.translate(e),setActive(e){const n=this.activeEditor;this.activeEditor!==e&&(n&&n.dispatch("deactivate",{relatedTarget:e}),e.dispatch("activate",{relatedTarget:n})),this.activeEditor=e},_setBaseUrl(e){this.baseURL=new cd(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new cd(this.baseURL)}};m0.setup();const gJ=(()=>{const e=Em(),n=B=>({items:B,types:Yt(B),getType:Z=>wn(B,Z).getOrUndefined()}),r=B=>{e.set(B)},f=()=>e.get().getOrUndefined(),w=e.clear;return{FakeClipboardItem:n,write:r,read:f,clear:w}})(),kF=Math.min,f2=Math.max,qM=Math.round,AF=(e,n,r)=>{let f=n.x,w=n.y;const B=e.w,Z=e.h,oe=n.w,be=n.h,Pe=(r||"").split("");return Pe[0]==="b"&&(w+=be),Pe[1]==="r"&&(f+=oe),Pe[0]==="c"&&(w+=qM(be/2)),Pe[1]==="c"&&(f+=qM(oe/2)),Pe[3]==="b"&&(w-=Z),Pe[4]==="r"&&(f-=B),Pe[3]==="c"&&(w-=qM(Z/2)),Pe[4]==="c"&&(f-=qM(B/2)),d2(f,w,B,Z)},MF=(e,n,r,f)=>{for(let w=0;w=r.x&&B.x+B.w<=r.w+r.x&&B.y>=r.y&&B.y+B.h<=r.h+r.y)return f[w]}return null},pJ=(e,n,r)=>d2(e.x-n,e.y-r,e.w+n*2,e.h+r*2),vJ=(e,n)=>{const r=f2(e.x,n.x),f=f2(e.y,n.y),w=kF(e.x+e.w,n.x+n.w),B=kF(e.y+e.h,n.y+n.h);return w-r<0||B-f<0?null:d2(r,f,w-r,B-f)},yJ=(e,n,r)=>{let f=e.x,w=e.y,B=e.x+e.w,Z=e.y+e.h;const oe=n.x+n.w,be=n.y+n.h,Pe=f2(0,n.x-f),Ke=f2(0,n.y-w),Je=f2(0,B-oe),at=f2(0,Z-be);return f+=Pe,w+=Ke,r&&(B+=Pe,Z+=Ke,f-=Je,w-=at),B-=Je,Z-=at,d2(f,w,B-f,Z-w)},d2=(e,n,r,f)=>({x:e,y:n,w:r,h:f}),bJ={inflate:pJ,relativePosition:AF,findBestRelativePosition:MF,intersect:vJ,clamp:yJ,create:d2,fromClientRect:e=>d2(e.left,e.top,e.width,e.height)},xJ=(e,n,r=1e3)=>{let f=!1,w=null;const B=Pe=>(...Ke)=>{f||(f=!0,w!==null&&(clearTimeout(w),w=null),Pe.apply(null,Ke))},Z=B(e),oe=B(n);return{start:(...Pe)=>{!f&&w===null&&(w=setTimeout(()=>oe.apply(null,Pe),r))},resolve:Z,reject:oe}},EF=(()=>{const e={},n={},r={};return{load:(be,Pe)=>{const Ke=`Script at URL "${Pe}" failed to load`,Je=`Script at URL "${Pe}" did not call \`tinymce.Resource.add('${be}', data)\` within 1 second`;if(e[be]!==void 0)return e[be];{const at=new Promise((Rt,Ht)=>{const At=xJ(Rt,Ht);n[be]=At.resolve,Ni.ScriptLoader.loadScript(Pe).then(()=>At.start(Je),()=>At.reject(Ke))});return e[be]=at,at}},add:(be,Pe)=>{n[be]!==void 0&&(n[be](Pe),delete n[be]),e[be]=Promise.resolve(Pe),r[be]=Pe},has:be=>be in r,get:be=>r[be],unload:be=>{delete e[be]}}})(),gte=()=>(()=>{let e={},n=[];const r={getItem:f=>{const w=e[f];return w||null},setItem:(f,w)=>{n.push(f),e[f]=String(w)},key:f=>n[f],removeItem:f=>{n=n.filter(w=>w===f),delete e[f]},clear:()=>{n=[],e={}},length:0};return Object.defineProperty(r,"length",{get:()=>n.length,configurable:!1,enumerable:!1}),r})();let h2;try{const e="__storage_test__";h2=window.localStorage,h2.setItem(e,e),h2.removeItem(e)}catch{h2=gte()}var wJ=h2;const _F={geom:{Rect:bJ},util:{Delay:Ef,Tools:ur,VK:Wr,URI:cd,EventDispatcher:KS,Observable:l6,I18n:Cf,LocalStorage:wJ,ImageUploader:$R},dom:{EventUtils:eu,TreeWalker:es,TextSeeker:_m,DOMUtils:Cs,ScriptLoader:Ni,RangeUtils:xt,Serializer:SO,StyleSheetLoader:U2,ControlSelection:g$,BookmarkManager:rp,Selection:Xv,Event:eu.Event},html:{Styles:hb,Entities:km,Node:Hc,Schema:_h,DomParser:Yd,Writer:H$,Serializer:Uv},Env:Lr,AddOnManager:rc,Annotator:uC,Formatter:dy,UndoManager:uS,EditorCommands:bp,WindowManager:$O,NotificationManager:LR,EditorObservable:Ay,Shortcuts:bF,Editor:KM,FocusManager:x$,EditorManager:m0,DOM:Cs.DOM,ScriptLoader:Ni.ScriptLoader,PluginManager:uy,ThemeManager:gp,ModelManager:fd,IconManager:sS,Resource:EF,FakeClipboard:gJ,trim:ur.trim,isArray:ur.isArray,is:ur.is,toArray:ur.toArray,makeMap:ur.makeMap,each:ur.each,map:ur.map,grep:ur.grep,inArray:ur.inArray,extend:ur.extend,walk:ur.walk,resolve:ur.resolve,explode:ur.explode,_addCacheSuffix:ur._addCacheSuffix},RF=ur.extend(m0,_F),CJ=e=>{try{o.exports=e}catch{}};(e=>{window.tinymce=e,window.tinyMCE=e})(RF),CJ(RF)})()})(yve);(function(){var o=tinymce.util.Tools.resolve("tinymce.ModelManager");const b=(I,W,te)=>{var me;return te(I,W.prototype)?!0:((me=I.constructor)===null||me===void 0?void 0:me.name)===W.name},y=I=>{const W=typeof I;return I===null?"null":W==="object"&&Array.isArray(I)?"array":W==="object"&&b(I,String,(te,me)=>me.isPrototypeOf(te))?"string":W},T=I=>W=>y(W)===I,G=I=>W=>typeof W===I,V=I=>W=>I===W,L=T("string"),A=T("object"),s=T("array"),m=V(null),h=G("boolean"),l=V(void 0),c=I=>I==null,i=I=>!c(I),u=G("function"),d=G("number"),g=()=>{},v=(I,W)=>(...te)=>I(W.apply(null,te)),x=(I,W)=>te=>I(W(te)),C=I=>()=>I,_=I=>I,$=(I,W)=>I===W;function S(I,...W){return(...te)=>{const me=W.concat(te);return I.apply(null,me)}}const O=I=>W=>!I(W),D=I=>()=>{throw new Error(I)},N=I=>I(),M=C(!1),k=C(!0);class R{constructor(W,te){this.tag=W,this.value=te}static some(W){return new R(!0,W)}static none(){return R.singletonNone}fold(W,te){return this.tag?te(this.value):W()}isSome(){return this.tag}isNone(){return!this.tag}map(W){return this.tag?R.some(W(this.value)):R.none()}bind(W){return this.tag?W(this.value):R.none()}exists(W){return this.tag&&W(this.value)}forall(W){return!this.tag||W(this.value)}filter(W){return!this.tag||W(this.value)?this:R.none()}getOr(W){return this.tag?this.value:W}or(W){return this.tag?this:W}getOrThunk(W){return this.tag?this.value:W()}orThunk(W){return this.tag?this:W()}getOrDie(W){if(this.tag)return this.value;throw new Error(W??"Called getOrDie on None")}static from(W){return i(W)?R.some(W):R.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(W){this.tag&&W(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}R.singletonNone=new R(!1);const F=Array.prototype.slice,H=Array.prototype.indexOf,j=Array.prototype.push,P=(I,W)=>H.call(I,W),ee=(I,W)=>P(I,W)>-1,J=(I,W)=>{for(let te=0,me=I.length;te{const te=[];for(let me=0;me{const te=I.length,me=new Array(te);for(let Le=0;Le{for(let te=0,me=I.length;te{for(let te=I.length-1;te>=0;te--){const me=I[te];W(me,te)}},ge=(I,W)=>{const te=[],me=[];for(let Le=0,Ue=I.length;Le{const te=[];for(let me=0,Le=I.length;me(he(I,(me,Le)=>{te=W(te,me,Le)}),te),ne=(I,W,te)=>(Q(I,(me,Le)=>{te=W(te,me,Le)}),te),fe=(I,W,te)=>{for(let me=0,Le=I.length;mefe(I,W,M),ye=(I,W)=>{for(let te=0,me=I.length;te{const W=[];for(let te=0,me=I.length;teCe(ae(I,W)),ke=(I,W)=>{for(let te=0,me=I.length;te{const W=F.call(I,0);return W.reverse(),W},Ve=(I,W)=>{const te={};for(let me=0,Le=I.length;me{const te=F.call(I,0);return te.sort(W),te},Fe=(I,W)=>W>=0&&WFe(I,0),we=I=>Fe(I,I.length-1),se=(I,W)=>{for(let te=0;te{const te=ue(I);for(let me=0,Le=te.length;mede(I,(te,me)=>({k:me,v:W(te,me)})),de=(I,W)=>{const te={};return le(I,(me,Le)=>{const Ue=W(me,Le);te[Ue.k]=Ue.v}),te},Me=I=>(W,te)=>{I[te]=W},Re=(I,W,te,me)=>{le(I,(Le,Ue)=>{(W(Le,Ue)?te:me)(Le,Ue)})},ze=(I,W)=>{const te={};return Re(I,W,Me(te),g),te},We=(I,W)=>{const te=[];return le(I,(me,Le)=>{te.push(W(me,Le))}),te},ot=I=>We(I,_),dt=(I,W)=>Ge(I,W)?R.from(I[W]):R.none(),Ge=(I,W)=>pe.call(I,W),Xe=(I,W)=>Ge(I,W)&&I[W]!==void 0&&I[W]!==null,qe=I=>{for(const W in I)if(pe.call(I,W))return!1;return!0},gt=typeof window<"u"?window:Function("return this;")(),ut=(I,W)=>{let te=W??gt;for(let me=0;me{const te=I.split(".");return ut(te,W)},Ct=(I,W)=>tt(I,W),Gt=(I,W)=>{const te=Ct(I,W);if(te==null)throw new Error(I+" not available on this browser");return te},Yt=Object.getPrototypeOf,Nt=I=>Gt("HTMLElement",I),Ft=I=>{const W=tt("ownerDocument.defaultView",I);return A(I)&&(Nt(W).prototype.isPrototypeOf(I)||/^HTML\w*Element$/.test(Yt(I).constructor.name))},pn=8,_n=9,sn=11,Zn=1,an=3,Cn=I=>I.dom.nodeName.toLowerCase(),jn=I=>I.dom.nodeType,Wn=I=>W=>jn(W)===I,wn=I=>jn(I)===pn||Cn(I)==="#comment",lt=I=>ft(I)&&Ft(I.dom),ft=Wn(Zn),wt=Wn(an),vt=Wn(_n),$t=Wn(sn),Ze=I=>W=>ft(W)&&Cn(W)===I,it=(I,W,te)=>{if(L(te)||h(te)||d(te))I.setAttribute(W,te+"");else throw console.error("Invalid call to Attribute.set. Key ",W,":: Value ",te,":: Element ",I),new Error("Attribute value was not simple")},ht=(I,W,te)=>{it(I.dom,W,te)},pt=(I,W)=>{const te=I.dom;le(W,(me,Le)=>{it(te,Le,me)})},Tt=(I,W)=>{le(W,(te,me)=>{te.fold(()=>{tn(I,me)},Le=>{it(I.dom,me,Le)})})},Et=(I,W)=>{const te=I.dom.getAttribute(W);return te===null?void 0:te},fn=(I,W)=>R.from(Et(I,W)),tn=(I,W)=>{I.dom.removeAttribute(W)},Zt=I=>ne(I.dom.attributes,(W,te)=>(W[te.name]=te.value,W),{}),Dt=(I,W)=>{const me=(W||document).createElement("div");if(me.innerHTML=I,!me.hasChildNodes()||me.childNodes.length>1){const Le="HTML does not have a single root node";throw console.error(Le,I),new Error(Le)}return tr(me.childNodes[0])},un=(I,W)=>{const me=(W||document).createElement(I);return tr(me)},Un=(I,W)=>{const me=(W||document).createTextNode(I);return tr(me)},tr=I=>{if(I==null)throw new Error("Node cannot be null or undefined");return{dom:I}},zt={fromHtml:Dt,fromTag:un,fromText:Un,fromDom:tr,fromPoint:(I,W,te)=>R.from(I.dom.elementFromPoint(W,te)).map(tr)},pr=(I,W)=>{const te=I.dom;if(te.nodeType!==Zn)return!1;{const me=te;if(me.matches!==void 0)return me.matches(W);if(me.msMatchesSelector!==void 0)return me.msMatchesSelector(W);if(me.webkitMatchesSelector!==void 0)return me.webkitMatchesSelector(W);if(me.mozMatchesSelector!==void 0)return me.mozMatchesSelector(W);throw new Error("Browser lacks native selectors")}},Gn=I=>I.nodeType!==Zn&&I.nodeType!==_n&&I.nodeType!==sn||I.childElementCount===0,Ir=(I,W)=>{const te=W===void 0?document:W.dom;return Gn(te)?[]:ae(te.querySelectorAll(I),zt.fromDom)},Tr=(I,W)=>{const te=W===void 0?document:W.dom;return Gn(te)?R.none():R.from(te.querySelector(I)).map(zt.fromDom)},rr=(I,W)=>I.dom===W.dom,Yr=(I,W)=>{const te=I.dom,me=W.dom;return te===me?!1:te.contains(me)},_r=pr,Ln=I=>zt.fromDom(I.dom.ownerDocument),xr=I=>vt(I)?I:Ln(I),or=I=>zt.fromDom(xr(I).dom.documentElement),wr=I=>zt.fromDom(xr(I).dom.defaultView),ro=I=>R.from(I.dom.parentNode).map(zt.fromDom),vo=I=>R.from(I.dom.parentElement).map(zt.fromDom),Cr=(I,W)=>{const te=u(W)?W:M;let me=I.dom;const Le=[];for(;me.parentNode!==null&&me.parentNode!==void 0;){const Ue=me.parentNode,nt=zt.fromDom(Ue);if(Le.push(nt),te(nt)===!0)break;me=Ue}return Le},He=I=>R.from(I.dom.previousSibling).map(zt.fromDom),De=I=>R.from(I.dom.nextSibling).map(zt.fromDom),St=I=>ae(I.dom.childNodes,zt.fromDom),kt=(I,W)=>{const te=I.dom.childNodes;return R.from(te[W]).map(zt.fromDom)},Pt=I=>kt(I,0),Bt=(I,W)=>{ro(I).each(me=>{me.dom.insertBefore(W.dom,I.dom)})},Ut=(I,W)=>{De(I).fold(()=>{ro(I).each(Le=>{_t(Le,W)})},me=>{Bt(me,W)})},Ot=(I,W)=>{Pt(I).fold(()=>{_t(I,W)},me=>{I.dom.insertBefore(W.dom,me.dom)})},_t=(I,W)=>{I.dom.appendChild(W.dom)},qt=(I,W,te)=>{kt(I,te).fold(()=>{_t(I,W)},me=>{Bt(me,W)})},cn=(I,W)=>{Bt(I,W),_t(W,I)},Qt=(I,W)=>{Q(W,(te,me)=>{const Le=me===0?I:W[me-1];Ut(Le,te)})},nn=(I,W)=>{Q(W,te=>{_t(I,te)})},Sn=I=>{I.dom.textContent="",Q(St(I),W=>{bn(W)})},bn=I=>{const W=I.dom;W.parentNode!==null&&W.parentNode.removeChild(W)},gn=I=>{const W=St(I);W.length>0&&Qt(I,W),bn(I)},Qn=(I,W)=>zt.fromDom(I.dom.cloneNode(W)),Bn=I=>Qn(I,!1),Hr=I=>Qn(I,!0),fr=(I,W)=>{const te=zt.fromTag(W),me=Zt(I);return pt(te,me),te},Vr=(I,W)=>{const te=fr(I,W),me=St(Hr(I));return nn(te,me),te},ar=(I,W)=>{const te=fr(I,W);Ut(I,te);const me=St(I);return nn(te,me),bn(I),te},cr=["tfoot","thead","tbody","colgroup"],Kr=I=>ee(cr,I),qr=(I,W)=>({rows:I,columns:W}),So=(I,W)=>({row:I,column:W}),wa=(I,W,te)=>({element:I,rowspan:W,colspan:te}),bo=(I,W,te,me)=>({element:I,rowspan:W,colspan:te,isNew:me}),Zo=(I,W,te,me,Le,Ue)=>({element:I,rowspan:W,colspan:te,row:me,column:Le,isLocked:Ue}),oa=(I,W,te)=>({element:I,cells:W,section:te}),Va=(I,W,te,me)=>({element:I,cells:W,section:te,isNew:me}),Yo=(I,W,te)=>({element:I,isNew:W,isLocked:te}),Fa=(I,W,te,me)=>({element:I,cells:W,section:te,isNew:me}),Os=(I,W,te,me)=>({startRow:I,startCol:W,finishRow:te,finishCol:me}),Zl=(I,W,te)=>({element:I,colspan:W,column:te}),Ys=(I,W)=>({element:I,columns:W}),Ec=I=>$t(I)&&i(I.dom.host),ks=u(Element.prototype.attachShadow)&&u(Node.prototype.getRootNode),Wa=C(ks),ss=ks?I=>zt.fromDom(I.dom.getRootNode()):xr,Ya=I=>{const W=ss(I);return Ec(W)?R.some(W):R.none()},_c=I=>zt.fromDom(I.dom.host),Lr=I=>{if(Wa()&&i(I.target)){const W=zt.fromDom(I.target);if(ft(W)&&jl(W)&&I.composed&&I.composedPath){const te=I.composedPath();if(te)return ie(te)}}return R.from(I.target)},jl=I=>i(I.dom.shadowRoot),Ka=I=>{const W=wt(I)?I.dom.parentNode:I.dom;if(W==null||W.ownerDocument===null)return!1;const te=W.ownerDocument;return Ya(zt.fromDom(W)).fold(()=>te.body.contains(W),x(Ka,_c))},yi=()=>Hf(zt.fromDom(document)),Hf=I=>{const W=I.dom.body;if(W==null)throw new Error("Body is not available yet");return zt.fromDom(W)},Xa=(I,W,te)=>Se(Cr(I,te),W),Zc=(I,W)=>Se(St(I),W),zf=(I,W)=>{let te=[];return Q(St(I),me=>{W(me)&&(te=te.concat([me])),te=te.concat(zf(me,W))}),te},jc=(I,W,te)=>Xa(I,me=>pr(me,W),te),To=(I,W)=>Zc(I,te=>pr(te,W)),Mi=(I,W)=>Ir(W,I);var ur=(I,W,te,me,Le)=>I(te,me)?R.some(te):u(Le)&&Le(te)?R.none():W(te,me,Le);const Ms=(I,W,te)=>{let me=I.dom;const Le=u(te)?te:M;for(;me.parentNode;){me=me.parentNode;const Ue=zt.fromDom(me);if(W(Ue))return R.some(Ue);if(Le(Ue))break}return R.none()},li=(I,W,te)=>ur((Le,Ue)=>Ue(Le),Ms,I,W,te),Rs=(I,W)=>{const te=Le=>W(zt.fromDom(Le));return X(I.dom.childNodes,te).map(zt.fromDom)},Es=(I,W)=>{const te=me=>{for(let Le=0;LeMs(I,me=>pr(me,W),te),Bo=(I,W)=>Rs(I,te=>pr(te,W)),Ks=(I,W)=>Tr(W,I),Bs=(I,W,te)=>ur((Le,Ue)=>pr(Le,Ue),qi,I,W,te),df=(I,W,te=$)=>I.exists(me=>te(me,W)),Ls=I=>{const W=[],te=me=>{W.push(me)};for(let me=0;meI!=null?W(I):R.none(),uu=(I,W)=>I?R.some(W):R.none(),Vf=(I,W,te)=>W===""||I.length>=W.length&&I.substr(te,te+W.length)===W,Ma=(I,W,te=0,me)=>{const Le=I.indexOf(W,te);return Le!==-1?l(me)?!0:Le+W.length<=me:!1},Uf=(I,W)=>Vf(I,W,0),gc=(I,W)=>Vf(I,W,I.length-W.length),wd=(I=>W=>W.replace(I,""))(/^\s+|\s+$/g),dh=I=>I.length>0,La=I=>{const W=parseFloat(I);return isNaN(W)?R.none():R.some(W)},ci=I=>I.style!==void 0&&u(I.style.getPropertyValue),Wu=(I,W,te)=>{if(!L(te))throw console.error("Invalid call to CSS.set. Property ",W,":: Value ",te,":: Element ",I),new Error("CSS value must be a string: "+te);ci(I)&&I.style.setProperty(W,te)},P2=(I,W)=>{ci(I)&&I.style.removeProperty(W)},Ps=(I,W,te)=>{const me=I.dom;Wu(me,W,te)},sl=(I,W)=>{const te=I.dom;le(W,(me,Le)=>{Wu(te,Le,me)})},Ei=(I,W)=>{const te=I.dom,Le=window.getComputedStyle(te).getPropertyValue(W);return Le===""&&!Ka(I)?Zy(te,W):Le},Zy=(I,W)=>ci(I)?I.style.getPropertyValue(W):"",Ag=(I,W)=>{const te=I.dom,me=Zy(te,W);return R.from(me).filter(Le=>Le.length>0)},Yc=(I,W)=>{const te=I.dom;P2(te,W),df(fn(I,"style").map(wd),"")&&tn(I,"style")},fu=(I,W)=>{const te=I.dom,me=W.dom;ci(te)&&ci(me)&&(me.style.cssText=te.style.cssText)},ws=(I,W,te=0)=>fn(I,W).map(me=>parseInt(me,10)).getOr(te),Kc=(I,W)=>ws(I,W,1),il=I=>Ze("col")(I)?ws(I,"span",1)>1:Kc(I,"colspan")>1,Yl=I=>Kc(I,"rowspan")>1,Gu=(I,W)=>parseInt(Ei(I,W),10),Xs=C(10),Zu=C(10),Mg=(I,W)=>Eg(I,W,k),Eg=(I,W,te)=>$e(St(I),me=>pr(me,W)?te(me)?[me]:[]:Eg(me,W,te)),D0=(I,W,te=M)=>{if(te(W))return R.none();if(ee(I,Cn(W)))return R.some(W);const me=Le=>pr(Le,"table")||te(Le);return qi(W,I.join(","),me)},Dp=(I,W)=>D0(["td","th"],I,W),ju=I=>Mg(I,"th,td"),_g=I=>pr(I,"colgroup")?To(I,"col"):$e($0(I),W=>To(W,"col")),Kl=(I,W)=>Bs(I,"table",W),$p=I=>Mg(I,"tr"),$0=I=>Kl(I).fold(C([]),W=>To(W,"colgroup")),hh=(I,W)=>ae(I,te=>{if(Cn(te)==="colgroup"){const me=ae(_g(te),Le=>{const Ue=ws(Le,"span",1);return wa(Le,1,Ue)});return oa(te,me,"colgroup")}else{const me=ae(ju(te),Le=>{const Ue=ws(Le,"rowspan",1),nt=ws(Le,"colspan",1);return wa(Le,Ue,nt)});return oa(te,me,W(te))}}),O0=I=>ro(I).map(W=>{const te=Cn(W);return Kr(te)?te:"tbody"}).getOr("tbody"),mh=I=>{const W=$p(I),me=[...$0(I),...W];return hh(me,O0)},jy=(I,W)=>hh(I,()=>W),Cd=I=>{let W=!1,te;return(...me)=>(W||(W=!0,te=I.apply(null,me)),te)},Yy=(I,W,te,me)=>{const Le=I.isiOS()&&/ipad/i.test(te)===!0,Ue=I.isiOS()&&!Le,nt=I.isiOS()||I.isAndroid(),xt=nt||me("(pointer:coarse)"),Lt=Le||!Ue&&nt&&me("(min-device-width:768px)"),Jt=Ue||nt&&!Lt,Tn=W.isSafari()&&I.isiOS()&&/safari/i.test(te)===!1,sr=!Jt&&!Lt&&!Tn;return{isiPad:C(Le),isiPhone:C(Ue),isTablet:C(Lt),isPhone:C(Jt),isTouch:C(xt),isAndroid:I.isAndroid,isiOS:I.isiOS,isWebView:C(Tn),isDesktop:C(sr)}},Ky=(I,W)=>{for(let te=0;te{const te=Ky(I,W);if(!te)return{major:0,minor:0};const me=Le=>Number(W.replace(te,"$"+Le));return jt(me(1),me(2))},gh=(I,W)=>{const te=String(W).toLowerCase();return I.length===0?P0():Xy(I,te)},P0=()=>jt(0,0),jt=(I,W)=>({major:I,minor:W}),ph={nu:jt,detect:gh,unknown:P0},du=(I,W)=>se(W.brands,te=>{const me=te.brand.toLowerCase();return X(I,Le=>{var Ue;return me===((Ue=Le.brand)===null||Ue===void 0?void 0:Ue.toLowerCase())}).map(Le=>({current:Le.name,version:ph.nu(parseInt(te.version,10),0)}))}),Op=(I,W)=>{const te=String(W).toLowerCase();return X(I,me=>me.search(te))},Rg=(I,W)=>Op(I,W).map(te=>{const me=ph.detect(te.versionRegexes,W);return{current:te.name,version:me}}),I2=(I,W)=>Op(I,W).map(te=>{const me=ph.detect(te.versionRegexes,W);return{current:te.name,version:me}}),Ba=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Dl=I=>W=>Ma(W,I),hf=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:I=>Ma(I,"edge/")&&Ma(I,"chrome")&&Ma(I,"safari")&&Ma(I,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Ba],search:I=>Ma(I,"chrome")&&!Ma(I,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:I=>Ma(I,"msie")||Ma(I,"trident")},{name:"Opera",versionRegexes:[Ba,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Dl("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Dl("firefox")},{name:"Safari",versionRegexes:[Ba,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:I=>(Ma(I,"safari")||Ma(I,"mobile/"))&&Ma(I,"applewebkit")}],mf=[{name:"Windows",search:Dl("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:I=>Ma(I,"iphone")||Ma(I,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Dl("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Dl("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Dl("linux"),versionRegexes:[]},{name:"Solaris",search:Dl("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Dl("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Dl("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],I0={browsers:C(hf),oses:C(mf)},mm="Edge",Rc="Chromium",gm="IE",N0="Opera",Jy="Firefox",hu="Safari",Lg=()=>F0({current:void 0,version:ph.unknown()}),F0=I=>{const W=I.current,te=I.version,me=Le=>()=>W===Le;return{current:W,version:te,isEdge:me(mm),isChromium:me(Rc),isIE:me(gm),isOpera:me(N0),isFirefox:me(Jy),isSafari:me(hu)}},pc={unknown:Lg,nu:F0,edge:C(mm),chromium:C(Rc),ie:C(gm),opera:C(N0),firefox:C(Jy),safari:C(hu)},zi="Windows",Sd="iOS",pm="Android",Xl="Linux",ll="macOS",mu="Solaris",Qy="FreeBSD",Dg="ChromeOS",B0=()=>Pp({current:void 0,version:ph.unknown()}),Pp=I=>{const W=I.current,te=I.version,me=Le=>()=>W===Le;return{current:W,version:te,isWindows:me(zi),isiOS:me(Sd),isAndroid:me(pm),isMacOS:me(ll),isLinux:me(Xl),isSolaris:me(mu),isFreeBSD:me(Qy),isChromeOS:me(Dg)}},Yu={unknown:B0,nu:Pp,windows:C(zi),ios:C(Sd),android:C(pm),linux:C(Xl),macos:C(ll),solaris:C(mu),freebsd:C(Qy),chromeos:C(Dg)},_3={detect:(I,W,te)=>{const me=I0.browsers(),Le=I0.oses(),Ue=W.bind(Lt=>du(me,Lt)).orThunk(()=>Rg(me,I)).fold(pc.unknown,pc.nu),nt=I2(Le,I).fold(Yu.unknown,Yu.nu),xt=Yy(nt,Ue,I,te);return{browser:Ue,os:nt,deviceType:xt}}},R3=I=>window.matchMedia(I).matches;let N2=Cd(()=>_3.detect(navigator.userAgent,R.from(navigator.userAgentData),R3));const $g=()=>N2(),Ip=(I,W)=>{const te=(xt,Lt)=>{if(!d(Lt)&&!Lt.match(/^[0-9]+$/))throw new Error(I+".set accepts only positive integer values. Value was "+Lt);const Jt=xt.dom;ci(Jt)&&(Jt.style[I]=Lt+"px")},me=xt=>{const Lt=W(xt);if(Lt<=0||Lt===null){const Jt=Ei(xt,I);return parseFloat(Jt)||0}return Lt},Le=me,Ue=(xt,Lt)=>ne(Lt,(Jt,Tn)=>{const sr=Ei(xt,Tn),Dr=sr===void 0?0:parseInt(sr,10);return isNaN(Dr)?Jt:Jt+Dr},0);return{set:te,get:me,getOuter:Le,aggregate:Ue,max:(xt,Lt,Jt)=>{const Tn=Ue(xt,Jt);return Lt>Tn?Lt-Tn:0}}},Td=(I,W)=>La(I).getOr(W),Hs=(I,W,te)=>Td(Ei(I,W),te),Js=(I,W,te,me)=>{const Le=Hs(I,`padding-${te}`,0),Ue=Hs(I,`padding-${me}`,0),nt=Hs(I,`border-${te}-width`,0),xt=Hs(I,`border-${me}-width`,0);return W-Le-Ue-nt-xt},Xc=(I,W)=>{const te=I.dom,me=te.getBoundingClientRect().width||te.offsetWidth;return W==="border-box"?me:Js(I,me,"left","right")},H0=I=>Hs(I,"height",I.dom.offsetHeight),eb=I=>Hs(I,"width",I.dom.offsetWidth),bl=I=>Xc(I,"content-box"),vm=Ip("width",I=>I.dom.offsetWidth),Jl=I=>vm.get(I),Ku=I=>vm.getOuter(I),z0=bl,Wo=eb,vc=(I,W,te)=>{const me=I.cells,Le=me.slice(0,W),Ue=me.slice(W),nt=Le.concat(te).concat(Ue);return V0(I,nt)},kd=(I,W,te)=>vc(I,W,[te]),vh=(I,W,te)=>{const me=I.cells;me[W]=te},V0=(I,W)=>Fa(I.element,W,I.section,I.isNew),U0=(I,W)=>{const te=I.cells,me=ae(te,W);return Fa(I.element,me,I.section,I.isNew)},$l=(I,W)=>I.cells[W],ui=(I,W)=>$l(I,W).element,Lc=I=>I.cells.length,_i=I=>{const W=ge(I,te=>te.section==="colgroup");return{rows:W.fail,cols:W.pass}},W0=(I,W,te)=>{const me=ae(I.cells,te);return Fa(W(I.element),me,I.section,!0)},Np="data-snooker-locked-cols",fi=I=>fn(I,Np).bind(W=>R.from(W.match(/\d+/g))).map(W=>Ve(W,k)),Ri=I=>{const W=ne(_i(I).rows,(me,Le)=>(Q(Le.cells,(Ue,nt)=>{Ue.isLocked&&(me[nt]=!0)}),me),{}),te=We(W,(me,Le)=>parseInt(Le,10));return Oe(te)},gu=(I,W)=>I+","+W,yh=(I,W,te)=>R.from(I.access[gu(W,te)]),di=(I,W,te)=>{const me=ym(I,Le=>te(W,Le.element));return me.length>0?R.some(me[0]):R.none()},ym=(I,W)=>{const te=$e(I.all,me=>me.cells);return Se(te,W)},Og=I=>{const W={};let te=0;return Q(I.cells,me=>{const Le=me.colspan;K(Le,Ue=>{const nt=te+Ue;W[nt]=Zl(me.element,Le,nt)}),te+=Le}),W},hs=I=>{const W={},te=[],Le=ie(I).map(Rr=>Rr.element).bind(Kl).bind(fi).getOr({});let Ue=0,nt=0,xt=0;const{pass:Lt,fail:Jt}=ge(I,Rr=>Rr.section==="colgroup");Q(Jt,Rr=>{const Jn=[];Q(Rr.cells,Or=>{let Kn=0;for(;W[gu(xt,Kn)]!==void 0;)Kn++;const oo=Xe(Le,Kn.toString()),Ro=Zo(Or.element,Or.rowspan,Or.colspan,xt,Kn,oo);for(let Qo=0;Qo{const Jn=Og(Rr);return{colgroups:[Ys(Rr.element,ot(Jn))],columns:Jn}}).getOrThunk(()=>({colgroups:[],columns:{}}));return{grid:qr(Ue,nt),access:W,all:te,columns:Tn,colgroups:sr}},aa={fromTable:I=>{const W=mh(I);return hs(W)},generate:hs,getAt:yh,findItem:di,filterItems:ym,justCells:I=>$e(I.all,W=>W.cells),justColumns:I=>ot(I.columns),hasColumns:I=>ue(I.columns).length>0,getColumnAt:(I,W)=>R.from(I.columns[W])},bh=(I,W=k)=>{const te=I.grid,me=K(te.columns,_),Le=K(te.rows,_);return ae(me,Ue=>Fp(()=>$e(Le,Jt=>aa.getAt(I,Jt,Ue).filter(Tn=>Tn.column===Ue).toArray()),Jt=>Jt.colspan===1&&W(Jt.element),()=>aa.getAt(I,0,Ue)))},Fp=(I,W,te)=>{const me=I();return X(me,W).orThunk(()=>R.from(me[0]).orThunk(te)).map(nt=>nt.element)},Ig=I=>{const W=I.grid,te=K(W.rows,_),me=K(W.columns,_);return ae(te,Le=>Fp(()=>$e(me,Lt=>aa.getAt(I,Le,Lt).filter(Jt=>Jt.row===Le).fold(C([]),Jt=>[Jt])),Lt=>Lt.rowspan===1,()=>aa.getAt(I,Le,0)))},F2=(I,W)=>{if(W<0||W>=I.length-1)return R.none();const te=I[W].fold(()=>{const Le=Ne(I.slice(0,W));return se(Le,(Ue,nt)=>Ue.map(xt=>({value:xt,delta:nt+1})))},Le=>R.some({value:Le,delta:0})),me=I[W+1].fold(()=>{const Le=I.slice(W+1);return se(Le,(Ue,nt)=>Ue.map(xt=>({value:xt,delta:nt+1})))},Le=>R.some({value:Le,delta:1}));return te.bind(Le=>me.map(Ue=>{const nt=Ue.delta+Le.delta;return Math.abs(Ue.value-Le.value)/nt}))},B2=(I,W)=>te=>Z0(te)==="rtl"?W:I,Z0=I=>Ei(I,"direction")==="rtl"?"rtl":"ltr",xh=Ip("height",I=>{const W=I.dom;return Ka(I)?W.getBoundingClientRect().height:W.offsetHeight}),Bp=I=>xh.get(I),wh=I=>xh.getOuter(I),bm=H0,tb=(I,W)=>({left:I,top:W,translate:(me,Le)=>tb(I+me,W+Le)}),pu=tb,nb=I=>{const W=I.getBoundingClientRect();return pu(W.left,W.top)},Ch=(I,W)=>I!==void 0?I:W!==void 0?W:0,Jc=I=>{const W=I.dom.ownerDocument,te=W.body,me=W.defaultView,Le=W.documentElement;if(te===I.dom)return pu(te.offsetLeft,te.offsetTop);const Ue=Ch(me==null?void 0:me.pageYOffset,Le.scrollTop),nt=Ch(me==null?void 0:me.pageXOffset,Le.scrollLeft),xt=Ch(Le.clientTop,te.clientTop),Lt=Ch(Le.clientLeft,te.clientLeft);return Hp(I).translate(nt-Lt,Ue-xt)},Hp=I=>{const W=I.dom,me=W.ownerDocument.body;return me===W?pu(me.offsetLeft,me.offsetTop):Ka(I)?nb(W):pu(0,0)},j0=(I,W)=>({row:I,y:W}),xm=(I,W)=>({col:I,x:W}),Y0=I=>Jc(I).left+Ku(I),K0=I=>Jc(I).left,X0=(I,W)=>xm(I,K0(W)),zp=(I,W)=>xm(I,Y0(W)),Vi=I=>Jc(I).top,Ng=(I,W)=>j0(I,Vi(W)),es=(I,W)=>j0(I,Vi(W)+wh(W)),io=(I,W,te)=>{if(te.length===0)return[];const me=ae(te.slice(1),(Ue,nt)=>Ue.map(xt=>I(nt,xt))),Le=te[te.length-1].map(Ue=>W(te.length-1,Ue));return me.concat([Le])},vu=I=>-I,Gr={delta:_,positions:I=>io(Ng,es,I),edge:Vi},Wf=B2({delta:_,edge:K0,positions:I=>io(X0,zp,I)},{delta:vu,edge:Y0,positions:I=>io(zp,X0,I)}),oi={delta:(I,W)=>Wf(W).delta(I,W),positions:(I,W)=>Wf(W).positions(I,W),edge:I=>Wf(I).edge(I)},Gf={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Fg=(()=>{const I="[0-9]+",te="[eE]"+("[+-]?"+I),me="\\.",Le=xt=>`(?:${xt})?`,nt=`[+-]?(?:${["Infinity",I+me+Le(I)+Le(te),me+I+Le(te),I+Le(te)].join("|")})`;return new RegExp(`^(${nt})(.*)$`)})(),Ui=(I,W)=>J(W,te=>J(Gf[te],me=>I===me)),Ju=(I,W)=>R.from(Fg.exec(I)).bind(me=>{const Le=Number(me[1]),Ue=me[2];return Ui(Ue,W)?R.some({value:Le,unit:Ue}):R.none()}),Sh=/(\d+(\.\d+)?)%/,yu=/(\d+(\.\d+)?)px|em/,J0=Ze("col"),Vp=(I,W,te)=>{const me=vo(I).getOrThunk(()=>Hf(Ln(I)));return W(I)/te(me)*100},ir=(I,W)=>{Ps(I,"width",W+"px")},rb=(I,W)=>{Ps(I,"width",W+"%")},cl=(I,W)=>{Ps(I,"height",W+"px")},gf=I=>bm(I)+"px",wm=(I,W,te,me)=>{const Le=Kl(I).map(Ue=>{const nt=te(Ue);return Math.floor(W/100*nt)}).getOr(W);return me(I,Le),Le},ns=(I,W,te,me)=>{const Le=parseFloat(I);return gc(I,"%")&&Cn(W)!=="table"?wm(W,Le,te,me):Le},Ja=I=>{const W=gf(I);return W?ns(W,I,Bp,cl):Bp(I)},ul=(I,W,te)=>{const me=te(I),Le=Kc(I,W);return me/Le},wl=(I,W)=>Ag(I,W).orThunk(()=>fn(I,W).map(te=>te+"px")),fa=I=>wl(I,"width"),Bg=I=>wl(I,"height"),Wi=I=>Vp(I,Jl,z0),zs=I=>J0(I)?Jl(I):Wo(I),Hg=I=>ul(I,"rowspan",Ja),qn=I=>fa(I).bind(te=>Ju(te,["fixed","relative","empty"])),yc=(I,W,te)=>{Ps(I,"width",W+te)},Cm=I=>Jl(I)+"px",Da=I=>Vp(I,Jl,z0)+"%",Qu=I=>fa(I).exists(W=>Sh.test(W)),z2=I=>fa(I).exists(W=>yu.test(W)),bu=I=>fa(I).isNone(),Up=C(Sh),Dc=Ze("col"),Wp=I=>fa(I).getOrThunk(()=>zs(I)+"px"),Ol=I=>Bg(I).getOrThunk(()=>Hg(I)+"px"),Ia=I=>ae(aa.justColumns(I),W=>R.from(W.element)),$c=I=>{const W=$g().browser,te=W.isChromium()||W.isFirefox();return Dc(I)?te:!0},Qs=(I,W,te,me,Le,Ue)=>I.filter(me).fold(()=>Ue(F2(te,W)),nt=>Le(nt)),Gi=(I,W,te,me)=>{const Le=bh(I),Ue=aa.hasColumns(I)?Ia(I):Le,nt=[R.some(oi.edge(W))].concat(ae(oi.positions(Le,W),Lt=>Lt.map(Jt=>Jt.x))),xt=O(il);return ae(Ue,(Lt,Jt)=>Qs(Lt,Jt,nt,xt,Tn=>{if($c(Tn))return te(Tn);{const sr=cu(Le[Jt],_);return Qs(sr,Jt,nt,xt,Dr=>me(R.some(Jl(Dr))),me)}},me))},Zf=I=>I.map(W=>W+"px").getOr(""),pf=(I,W)=>Gi(I,W,Wp,Zf),jf=(I,W,te)=>Gi(I,W,Wi,me=>me.fold(()=>te.minCellWidth(),Le=>Le/te.pixelWidth()*100)),Ql=(I,W,te)=>Gi(I,W,zs,me=>me.getOrThunk(te.minCellWidth)),vf=(I,W,te,me,Le)=>{const Ue=Ig(I),nt=[R.some(te.edge(W))].concat(ae(te.positions(Ue,W),xt=>xt.map(Lt=>Lt.y)));return ae(Ue,(xt,Lt)=>Qs(xt,Lt,nt,O(Yl),me,Le))},En=(I,W,te)=>vf(I,W,te,Hg,me=>me.getOrThunk(Zu)),ql=(I,W,te)=>vf(I,W,te,Ol,Zf),yf=(I,W)=>()=>Ka(I)?W(I):parseFloat(Ag(I,"width").getOr("0")),bf=I=>{const W=yf(I,Jl),te=C(0);return{width:W,pixelWidth:W,getWidths:(Le,Ue)=>Ql(Le,I,Ue),getCellDelta:te,singleColumnWidth:C([0]),minCellWidth:te,setElementWidth:g,adjustTableWidth:g,isRelative:!0,label:"none"}},bc=I=>{const W=yf(I,Lt=>parseFloat(Da(Lt))),te=yf(I,Jl);return{width:W,pixelWidth:te,getWidths:(Lt,Jt)=>jf(Lt,I,Jt),getCellDelta:Lt=>Lt/te()*100,singleColumnWidth:(Lt,Jt)=>[100-Lt],minCellWidth:()=>Xs()/te()*100,setElementWidth:rb,adjustTableWidth:Lt=>{const Jt=W(),Tn=Lt/100*Jt,sr=Jt+Tn;rb(I,sr)},isRelative:!0,label:"percent"}},Li=I=>{const W=yf(I,Jl);return{width:W,pixelWidth:W,getWidths:(nt,xt)=>Ql(nt,I,xt),getCellDelta:_,singleColumnWidth:(nt,xt)=>[Math.max(Xs(),nt+xt)-nt],minCellWidth:Xs,setElementWidth:ir,adjustTableWidth:nt=>{const xt=W()+nt;ir(I,xt)},isRelative:!1,label:"pixel"}},bi=(I,W)=>Up().exec(W)!==null?bc(I):Li(I),ec={getTableSize:I=>fa(I).fold(()=>bf(I),te=>bi(I,te)),pixelSize:Li,percentageSize:bc,noneSize:bf},U=(I,W,te,me,Le,Ue)=>({minRow:I,minCol:W,maxRow:te,maxCol:me,allCells:Le,selectedCells:Ue}),q=(I,W)=>{const te=I.grid.columns;let Le=I.grid.rows,Ue=te,nt=0,xt=0;const Lt=[],Jt=[];return le(I.access,Tn=>{if(Lt.push(Tn),W(Tn)){Jt.push(Tn);const sr=Tn.row,Dr=sr+Tn.rowspan-1,Rr=Tn.column,Jn=Rr+Tn.colspan-1;srnt&&(nt=Dr),Rrxt&&(xt=Jn)}}),U(Le,Ue,nt,xt,Lt,Jt)},ve=(I,W,te)=>{const me=I[te].element,Le=zt.fromTag("td");_t(Le,zt.fromTag("br")),(W?_t:Ot)(me,Le)},Ae=(I,W,te,me)=>{const Le=Se(I,xt=>xt.section!=="colgroup"),Ue=W.grid.columns,nt=W.grid.rows;for(let xt=0;xtte.maxRow||Jtte.maxCol||(aa.getAt(W,xt,Jt).filter(me).isNone()?ve(Le,Lt,xt):Lt=!0)}},_e=(I,W,te,me)=>{le(te.columns,nt=>{(nt.columnW.maxCol)&&bn(nt.element)});const Le=Se(Mg(I,"tr"),nt=>nt.dom.childElementCount===0);Q(Le,bn),(W.minCol===W.maxCol||W.minRow===W.maxRow)&&Q(Mg(I,"th,td"),nt=>{tn(nt,"rowspan"),tn(nt,"colspan")}),tn(I,Np),tn(I,"data-snooker-col-series"),ec.getTableSize(I).adjustTableWidth(me)},Ie=(I,W,te,me)=>{if(me.minCol===0&&W.grid.columns===me.maxCol+1)return 0;const Le=Ql(W,I,te),Ue=ne(Le,(Jt,Tn)=>Jt+Tn,0),Lt=ne(Le.slice(me.minCol,me.maxCol+1),(Jt,Tn)=>Jt+Tn,0)/Ue*te.pixelWidth()-te.pixelWidth();return te.getCellDelta(Lt)},Qe=(I,W)=>{const te=Dr=>pr(Dr.element,W),me=Hr(I),Le=mh(me),Ue=ec.getTableSize(I),nt=aa.generate(Le),xt=q(nt,te),Lt="th:not("+W+"),td:not("+W+")",Jt=Eg(me,"th,td",Dr=>pr(Dr,Lt));Q(Jt,bn),Ae(Le,nt,xt,te);const Tn=aa.fromTable(I),sr=Ie(I,Tn,Ue,xt);return _e(me,xt,nt,sr),me},Ye=" ",yt=((I,W)=>{const te=Ue=>{if(!I(Ue))throw new Error("Can only get "+W+" value of a "+W+" node");return me(Ue).getOr("")},me=Ue=>I(Ue)?R.from(Ue.dom.nodeValue):R.none();return{get:te,getOption:me,set:(Ue,nt)=>{if(!I(Ue))throw new Error("Can only set raw "+W+" value of a "+W+" node");Ue.dom.nodeValue=nt}}})(wt,"text"),bt=I=>yt.get(I),Vt=I=>yt.getOption(I),Wt=(I,W)=>yt.set(I,W),mn=I=>Cn(I)==="img"?1:Vt(I).fold(()=>St(I).length,W=>W.length),An=I=>Vt(I).filter(W=>W.trim().length!==0||W.indexOf(Ye)>-1).isSome(),Kt=I=>lt(I)&&Et(I,"contenteditable")==="false",en=["img","br"],dn=I=>An(I)||ee(en,Cn(I))||Kt(I),Rn=I=>Es(I,dn),Mn=I=>vn(I,dn),vn=(I,W)=>{const te=me=>{const Le=St(me);for(let Ue=Le.length-1;Ue>=0;Ue--){const nt=Le[Ue];if(W(nt))return R.some(nt);const xt=te(nt);if(xt.isSome())return xt}return R.none()};return te(I)},lr={scope:["row","col"]},zr=I=>()=>{const W=zt.fromTag("td",I.dom);return _t(W,zt.fromTag("br",I.dom)),W},Jr=I=>()=>zt.fromTag("col",I.dom),kr=I=>()=>zt.fromTag("colgroup",I.dom),eo=I=>()=>zt.fromTag("tr",I.dom),lo=(I,W,te)=>{const me=Vr(I,W);return le(te,(Le,Ue)=>{Le===null?tn(me,Ue):ht(me,Ue,Le)}),me},Ko=I=>I,yo=(I,W,te)=>Rn(I).map(Le=>{const Ue=te.join(","),nt=jc(Le,Ue,xt=>rr(xt,I));return ce(nt,(xt,Lt)=>{const Jt=Bn(Lt);return _t(xt,Jt),Jt},W)}).getOr(W),fo=(I,W)=>{le(lr,(te,me)=>fn(I,me).filter(Le=>ee(te,Le)).each(Le=>ht(W,me,Le)))},Ha=(I,W,te)=>{const me=(nt,xt)=>{fu(nt.element,xt),Yc(xt,"height"),nt.colspan!==1&&Yc(xt,"width")},Le=nt=>{const xt=zt.fromTag(Cn(nt.element),W.dom),Lt=te.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),Jt=Lt.length>0?yo(nt.element,xt,Lt):xt;return _t(Jt,zt.fromTag("br")),me(nt,xt),fo(nt.element,xt),I(nt.element,xt),xt};return{col:nt=>{const xt=zt.fromTag(Cn(nt.element),W.dom);return me(nt,xt),I(nt.element,xt),xt},colgroup:kr(W),row:eo(W),cell:Le,replace:lo,colGap:Jr(W),gap:zr(W)}},Vs=I=>({col:Jr(I),colgroup:kr(I),row:eo(I),cell:zr(I),replace:Ko,colGap:Jr(I),gap:zr(I)}),is=(I,W)=>{const me=(W||document).createElement("div");return me.innerHTML=I,St(zt.fromDom(me))},$r=I=>ae(I,zt.fromDom),_o=I=>W=>W.options.get(I),sa="100%",Ca=I=>{var W;const te=I.dom,me=(W=te.getParent(I.selection.getStart(),te.isBlock))!==null&&W!==void 0?W:I.getBody();return z0(zt.fromDom(me))+"px"},As=(I,W)=>wi(I)||!Ci(I)?W:Sl(I)?{...W,width:Ca(I)}:{...W,width:sa},qs=(I,W)=>wi(I)||Ci(I)?W:Sl(I)?{...W,width:Ca(I)}:{...W,width:sa},Di=I=>{const W=I.options.register;W("table_clone_elements",{processor:"string[]"}),W("table_use_colgroups",{processor:"boolean",default:!0}),W("table_header_type",{processor:te=>{const me=ee(["section","cells","sectionCells","auto"],te);return me?{value:te,valid:me}:{valid:!1,message:"Must be one of: section, cells, sectionCells or auto."}},default:"section"}),W("table_sizing_mode",{processor:"string",default:"auto"}),W("table_default_attributes",{processor:"object",default:{border:"1"}}),W("table_default_styles",{processor:"object",default:{"border-collapse":"collapse"}}),W("table_column_resizing",{processor:te=>{const me=ee(["preservetable","resizetable"],te);return me?{value:te,valid:me}:{valid:!1,message:"Must be preservetable, or resizetable."}},default:"preservetable"}),W("table_resize_bars",{processor:"boolean",default:!0}),W("table_style_by_css",{processor:"boolean",default:!0}),W("table_merge_content_on_paste",{processor:"boolean",default:!0})},xi=I=>R.from(I.options.get("table_clone_elements")),xc=I=>{const W=I.options.get("object_resizing");return ee(W.split(","),"table")},Ii=_o("table_header_type"),tc=_o("table_column_resizing"),Cl=I=>tc(I)==="preservetable",Ga=I=>tc(I)==="resizetable",xu=_o("table_sizing_mode"),qu=I=>xu(I)==="relative",Sl=I=>xu(I)==="fixed",wi=I=>xu(I)==="responsive",Tl=_o("table_resize_bars"),Ci=_o("table_style_by_css"),Za=_o("table_merge_content_on_paste"),nc=I=>{const W=I.options,te=W.get("table_default_attributes");return W.isSet("table_default_attributes")?te:qs(I,te)},Yf=I=>{const W=I.options,te=W.get("table_default_styles");return W.isSet("table_default_styles")?te:As(I,te)},wu=_o("table_use_colgroups"),Th=I=>Bs(I,"[contenteditable]"),Kf=(I,W=!1)=>Ka(I)?I.dom.isContentEditable:Th(I).fold(C(W),te=>Q0(te)==="true"),Q0=I=>I.dom.contentEditable,ob=I=>zt.fromDom(I.getBody()),Md=I=>W=>rr(W,ob(I)),Xf=I=>{tn(I,"data-mce-style");const W=te=>tn(te,"data-mce-style");Q(ju(I),W),Q(_g(I),W),Q($p(I),W)},Cu=I=>zt.fromDom(I.selection.getStart()),Sm=I=>I.getBoundingClientRect().width,Tm=I=>I.getBoundingClientRect().height,D3=(I,W)=>{const te=I.dom.getStyle(W,"width")||I.dom.getAttrib(W,"width");return R.from(te).filter(dh)},ab=I=>/^(\d+(\.\d+)?)%$/.test(I),q0=I=>/^(\d+(\.\d+)?)px$/.test(I),sb=I=>li(I,Ze("table")).exists(Kf),$3=(I,W)=>{const te=W.column,me=W.column+W.colspan-1,Le=W.row,Ue=W.row+W.rowspan-1;return te<=I.finishCol&&me>=I.startCol&&Le<=I.finishRow&&Ue>=I.startRow},ib=(I,W)=>W.column>=I.startCol&&W.column+W.colspan-1<=I.finishCol&&W.row>=I.startRow&&W.row+W.rowspan-1<=I.finishRow,e1=(I,W)=>{let te=!0;const me=S(ib,W);for(let Le=W.startRow;Le<=W.finishRow;Le++)for(let Ue=W.startCol;Ue<=W.finishCol;Ue++)te=te&&aa.getAt(I,Le,Ue).exists(me);return te?R.some(W):R.none()},t1=(I,W)=>Os(Math.min(I.row,W.row),Math.min(I.column,W.column),Math.max(I.row+I.rowspan-1,W.row+W.rowspan-1),Math.max(I.column+I.colspan-1,W.column+W.colspan-1)),pa=(I,W,te)=>{const me=aa.findItem(I,W,rr),Le=aa.findItem(I,te,rr);return me.bind(Ue=>Le.map(nt=>t1(Ue,nt)))},go=(I,W,te)=>pa(I,W,te).bind(me=>e1(I,me)),kh=(I,W,te,me)=>aa.findItem(I,W,rr).bind(Le=>{const Ue=te>0?Le.row+Le.rowspan-1:Le.row,nt=me>0?Le.column+Le.colspan-1:Le.column;return aa.getAt(I,Ue+te,nt+me).map(Lt=>Lt.element)}),lb=(I,W,te)=>pa(I,W,te).map(me=>{const Le=aa.filterItems(I,S($3,me));return ae(Le,Ue=>Ue.element)}),n1=(I,W)=>{const te=(me,Le)=>Yr(Le,me);return aa.findItem(I,W,te).map(me=>me.element)},BE=(I,W,te)=>Kl(I).bind(me=>{const Le=W2(me);return kh(Le,I,W,te)}),V2=(I,W,te)=>{const me=W2(I);return lb(me,W,te)},bs=(I,W,te,me,Le)=>{const Ue=W2(I),nt=rr(I,te)?R.some(W):n1(Ue,W),xt=rr(I,Le)?R.some(me):n1(Ue,me);return nt.bind(Lt=>xt.bind(Jt=>lb(Ue,Lt,Jt)))},U2=(I,W,te)=>{const me=W2(I);return go(me,W,te)},W2=aa.fromTable;var G2=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],Xn=()=>{const I=Jt=>zt.fromDom(Jt.dom.cloneNode(!1)),W=Jt=>xr(Jt).dom,te=Jt=>ft(Jt)?Cn(Jt)==="body"?!0:ee(G2,Cn(Jt)):!1,me=Jt=>ft(Jt)?ee(["br","img","hr","input"],Cn(Jt)):!1,Le=Jt=>ft(Jt)&&Et(Jt,"contenteditable")==="false",Ue=(Jt,Tn)=>Jt.dom.compareDocumentPosition(Tn.dom),nt=(Jt,Tn)=>{const sr=Zt(Jt);pt(Tn,sr)},xt=Jt=>{const Tn=Cn(Jt);return ee(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],Tn)},Lt=Jt=>ft(Jt)?fn(Jt,"lang"):R.none();return{up:C({selector:qi,closest:Bs,predicate:Ms,all:Cr}),down:C({selector:Mi,predicate:zf}),styles:C({get:Ei,getRaw:Ag,set:Ps,remove:Yc}),attrs:C({get:Et,set:ht,remove:tn,copyTo:nt}),insert:C({before:Bt,after:Ut,afterAll:Qt,append:_t,appendAll:nn,prepend:Ot,wrap:cn}),remove:C({unwrap:gn,remove:bn}),create:C({nu:zt.fromTag,clone:I,text:zt.fromText}),query:C({comparePosition:Ue,prevSibling:He,nextSibling:De}),property:C({children:St,name:Cn,parent:ro,document:W,isText:wt,isComment:wn,isElement:ft,isSpecial:xt,getLanguage:Lt,getText:bt,setText:Wt,isBoundary:te,isEmptyTag:me,isNonEditable:Le}),eq:rr,is:_r}};const cb=(I,W,te,me)=>{const Le=te[0],Ue=te.slice(1);return me(I,W,Le,Ue)},HE=(I,W,te)=>te.length>0?cb(I,W,te,r1):R.none(),r1=(I,W,te,me)=>{const Le=W(I,te);return ce(me,(Ue,nt)=>{const xt=W(I,nt);return zE(I,Ue,xt)},Le)},zE=(I,W,te)=>W.bind(me=>te.filter(S(I.eq,me))),Gp=(I,W)=>S(I.eq,W),Z2=(I,W,te,me=M)=>{const Le=[W].concat(I.up().all(W)),Ue=[te].concat(I.up().all(te)),nt=Tn=>ye(Tn,me).fold(()=>Tn,Dr=>Tn.slice(0,Dr+1)),xt=nt(Le),Lt=nt(Ue),Jt=X(xt,Tn=>J(Lt,Gp(I,Tn)));return{firstpath:xt,secondpath:Lt,shared:Jt}},Ah=HE,VE=Z2,Ed=Xn(),ms=(I,W)=>Ah(Ed,(te,me)=>I(me),W),_d=(I,W,te)=>VE(Ed,I,W,te),j2=I=>qi(I,"table"),xf=(I,W,te)=>{const me=Le=>Ue=>te!==void 0&&te(Ue)||rr(Ue,Le);return rr(I,W)?R.some({boxes:R.some([I]),start:I,finish:W}):j2(I).bind(Le=>j2(W).bind(Ue=>{if(rr(Le,Ue))return R.some({boxes:V2(Le,I,W),start:I,finish:W});if(Yr(Le,Ue)){const nt=jc(W,"td,th",me(Le)),xt=nt.length>0?nt[nt.length-1]:W;return R.some({boxes:bs(Le,I,Le,W,Ue),start:I,finish:xt})}else if(Yr(Ue,Le)){const nt=jc(I,"td,th",me(Ue)),xt=nt.length>0?nt[nt.length-1]:I;return R.some({boxes:bs(Ue,I,Le,W,Ue),start:I,finish:xt})}else return _d(I,W).shared.bind(nt=>Bs(nt,"table",te).bind(xt=>{const Lt=jc(W,"td,th",me(xt)),Jt=Lt.length>0?Lt[Lt.length-1]:W,Tn=jc(I,"td,th",me(xt)),sr=Tn.length>0?Tn[Tn.length-1]:I;return R.some({boxes:bs(xt,I,Le,W,Ue),start:sr,finish:Jt})}))}))},Mh=(I,W)=>{const te=Mi(I,W);return te.length>0?R.some(te):R.none()},Y2=(I,W)=>X(I,te=>pr(te,W)),zg=(I,W,te)=>Ks(I,W).bind(me=>Ks(I,te).bind(Le=>ms(j2,[me,Le]).map(Ue=>({first:me,last:Le,table:Ue})))),O3=(I,W)=>qi(I,"table").bind(te=>Ks(te,W).bind(me=>xf(me,I).bind(Le=>Le.boxes.map(Ue=>({boxes:Ue,start:Le.start,finish:Le.finish}))))),ub=(I,W,te,me,Le)=>Y2(I,Le).bind(Ue=>BE(Ue,W,te).bind(nt=>O3(nt,me))),K2=(I,W)=>Mh(I,W),UE=(I,W,te)=>zg(I,W,te).bind(me=>{const Le=Lt=>rr(I,Lt),Ue="thead,tfoot,tbody,table",nt=qi(me.first,Ue,Le),xt=qi(me.last,Ue,Le);return nt.bind(Lt=>xt.bind(Jt=>rr(Lt,Jt)?U2(me.table,me.first,me.last):R.none()))}),X2=_,Rd=I=>{const W=(me,Le)=>fn(me,Le).exists(Ue=>parseInt(Ue,10)>1),te=me=>W(me,"rowspan")||W(me,"colspan");return I.length>0&&ke(I,te)?R.some(I):R.none()},t$=(I,W,te)=>W.length<=1?R.none():UE(I,te.firstSelectedSelector,te.lastSelectedSelector).map(me=>({bounds:me,cells:W})),J2="data-mce-selected",km="td["+J2+"],th["+J2+"]",kl="["+J2+"]",Xr="data-mce-first-selected",WE="td["+Xr+"],th["+Xr+"]",Q2="data-mce-last-selected",GE="td["+Q2+"],th["+Q2+"]",P3=kl,Vg={selected:J2,selectedSelector:km,firstSelected:Xr,firstSelectedSelector:WE,lastSelected:Q2,lastSelectedSelector:GE},Zp=(I,W,te)=>({element:te,mergable:t$(W,I,Vg),unmergable:Rd(I),selection:X2(I)}),o1=(I,W,te)=>({element:I,clipboard:W,generators:te}),jp=(I,W,te,me)=>({selection:X2(I),clipboard:te,generators:me}),fb=I=>Kl(I).bind(W=>K2(W,Vg.firstSelectedSelector)).fold(C(I),W=>W[0]),Eh=I=>(W,te)=>{const me=Cn(W),Le=me==="col"||me==="colgroup"?fb(W):W;return Bs(Le,I,te)},Jf=Eh("th,td,caption"),a1=Eh("th,td"),ef=I=>$r(I.model.table.getSelectedCells()),db=I=>Se(ef(I),W=>pr(W,Vg.selectedSelector)),I3=I=>Kl(I[0]).map(W=>{const te=Qe(W,P3);return Xf(te),[te]}),Yp=(I,W)=>ae(W,te=>I.selection.serializer.serialize(te.dom,{})).join(""),_h=I=>ae(I,W=>W.dom.innerText).join(""),ZE=(I,W)=>{I.on("BeforeGetContent",te=>{const me=Le=>{te.preventDefault(),I3(Le).each(Ue=>{te.content=te.format==="text"?_h(Ue):Yp(I,Ue)})};if(te.selection===!0){const Le=db(I);Le.length>=1&&me(Le)}}),I.on("BeforeSetContent",te=>{if(te.selection===!0&&te.paste===!0){const me=ef(I);ie(me).each(Le=>{Kl(Le).each(Ue=>{const nt=Se(is(te.content),Lt=>Cn(Lt)!=="meta"),xt=Ze("table");if(Za(I)&&nt.length===1&&xt(nt[0])){te.preventDefault();const Lt=zt.fromDom(I.getDoc()),Jt=Vs(Lt),Tn=o1(Le,nt[0],Jt);W.pasteCells(Ue,Tn).each(()=>{I.focus()})}})})}})},Kp=(I,W)=>({element:I,offset:W}),Ug=(I,W,te)=>I.property().isText(W)&&I.property().getText(W).trim().length===0||I.property().isComment(W)?te(W).bind(me=>Ug(I,me,te).orThunk(()=>R.some(me))):R.none(),wf=(I,W)=>I.property().isText(W)?I.property().getText(W).length:I.property().children(W).length,Qc=(I,W)=>{const te=Ug(I,W,I.query().prevSibling).getOr(W);if(I.property().isText(te))return Kp(te,wf(I,te));const me=I.property().children(te);return me.length>0?Qc(I,me[me.length-1]):Kp(te,wf(I,te))},jE=Qc,N3=Xn(),F3=I=>jE(N3,I),q2=(I,W)=>{il(I)||qn(I).each(me=>{const Le=me.value/2;yc(I,Le,me.unit),yc(W,Le,me.unit)})},qc=I=>ae(I,C(0)),Xp=(I,W,te,me,Le)=>Le(I.slice(0,W)).concat(me).concat(Le(I.slice(te))),hb=I=>(W,te,me,Le)=>{if(I(me)){const Ue=Math.max(Le,W[te]-Math.abs(me)),nt=Math.abs(Ue-W[te]);return me>=0?nt:-nt}else return me},mb=hb(I=>I<0),YE=hb(k),B3=()=>{const I=(xt,Lt,Jt,Tn,sr)=>{const Dr=mb(xt,Lt,Tn,sr);return Xp(xt,Lt,Jt+1,[Dr,0],qc)},W=(xt,Lt,Jt,Tn)=>{const sr=(100+Jt)/100,Dr=Math.max(Tn,(xt[Lt]+Jt)/sr);return ae(xt,(Rr,Jn)=>(Jn===Lt?Dr:Rr/sr)-Rr)},te=(xt,Lt,Jt,Tn,sr,Dr)=>Dr?W(xt,Lt,Tn,sr):I(xt,Lt,Jt,Tn,sr);return{resizeTable:(xt,Lt)=>xt(Lt),clampTableDelta:mb,calcLeftEdgeDeltas:te,calcMiddleDeltas:(xt,Lt,Jt,Tn,sr,Dr,Rr)=>te(xt,Jt,Tn,sr,Dr,Rr),calcRightEdgeDeltas:(xt,Lt,Jt,Tn,sr,Dr)=>{if(Dr)return W(xt,Jt,Tn,sr);{const Rr=mb(xt,Jt,Tn,sr);return qc(xt.slice(0,Jt)).concat([Rr])}},calcRedestributedWidths:(xt,Lt,Jt,Tn)=>{if(Tn){const Dr=(Lt+Jt)/Lt,Rr=ae(xt,Jn=>Jn/Dr);return{delta:Dr*100-100,newSizes:Rr}}else return{delta:Jt,newSizes:xt}}}},ew=()=>{const I=(nt,xt,Lt,Jt,Tn)=>{const sr=Jt>=0?Lt:xt,Dr=YE(nt,sr,Jt,Tn);return Xp(nt,xt,Lt+1,[Dr,-Dr],qc)};return{resizeTable:(nt,xt,Lt)=>{Lt&&nt(xt)},clampTableDelta:(nt,xt,Lt,Jt,Tn)=>{if(Tn){if(Lt>=0)return Lt;{const sr=ne(nt,(Dr,Rr)=>Dr+Rr-Jt,0);return Math.max(-sr,Lt)}}else return mb(nt,xt,Lt,Jt)},calcLeftEdgeDeltas:I,calcMiddleDeltas:(nt,xt,Lt,Jt,Tn,sr)=>I(nt,Lt,Jt,Tn,sr),calcRightEdgeDeltas:(nt,xt,Lt,Jt,Tn,sr)=>{if(sr)return qc(nt);{const Dr=Jt/nt.length;return ae(nt,C(Dr))}},calcRedestributedWidths:(nt,xt,Lt,Jt)=>({delta:0,newSizes:nt})}},Jp=I=>aa.fromTable(I).grid,Qp=Ze("th"),gb=I=>ke(I,W=>Qp(W.element)),KE=(I,W)=>I&&W?"sectionCells":I?"section":"cells",pb=I=>{const W=I.section==="thead",te=df(qp(I.cells),"th");return I.section==="tfoot"?{type:"footer"}:W||te?{type:"header",subType:KE(W,te)}:{type:"body"}},qp=I=>{const W=Se(I,te=>Qp(te.element));return W.length===0?R.some("td"):W.length===I.length?R.some("th"):R.none()},XE=I=>{const W=ae(I,Le=>pb(Le).type),te=ee(W,"header"),me=ee(W,"footer");if(!te&&!me)return R.some("body");{const Le=ee(W,"body");return te&&!Le&&!me?R.some("header"):!te&&!Le&&me?R.some("footer"):R.none()}},s1=I=>se(I.all,W=>{const te=pb(W);return te.type==="header"?R.from(te.subType):R.none()}),tw=(I,W,te)=>Yo(te(I.element,W),!0,I.isLocked),eu=(I,W)=>I.section!==W?Fa(I.element,I.cells,W,I.isNew):I,vb=()=>({transformRow:eu,transformCell:(I,W,te)=>{const me=te(I.element,W),Le=Cn(me)!=="td"?ar(me,"td"):me;return Yo(Le,I.isNew,I.isLocked)}}),H3=()=>({transformRow:eu,transformCell:tw}),yb=()=>({transformRow:(I,W)=>eu(I,W==="thead"?"tbody":W),transformCell:tw}),Am={getTableSectionType:(I,W)=>{const te=aa.fromTable(I);switch(s1(te).getOr(W)){case"section":return vb();case"sectionCells":return H3();case"cells":return yb()}},section:vb,sectionCells:H3,cells:yb,fallback:()=>({transformRow:_,transformCell:tw})},Ld=(I,W,te,me)=>{te===me?tn(I,W):ht(I,W,te)},nw=(I,W,te)=>{we(To(I,W)).fold(()=>Ot(I,te),me=>Ut(me,te))},ev=(I,W)=>{const te=Bo(I,W).getOrThunk(()=>{const me=zt.fromTag(W,Ln(I).dom);return W==="thead"?nw(I,"caption,colgroup",me):W==="colgroup"?nw(I,"caption",me):_t(I,me),me});return Sn(te),te},xb=(I,W)=>{const te=[],me=[],Le=Rr=>ae(Rr,Jn=>{Jn.isNew&&te.push(Jn.element);const Or=Jn.element;return Sn(Or),Q(Jn.cells,Kn=>{Kn.isNew&&me.push(Kn.element),Ld(Kn.element,"colspan",Kn.colspan,1),Ld(Kn.element,"rowspan",Kn.rowspan,1),_t(Or,Kn.element)}),Or}),Ue=Rr=>$e(Rr,Jn=>ae(Jn.cells,Or=>(Ld(Or.element,"span",Or.colspan,1),Or.element))),nt=(Rr,Jn)=>{const Or=ev(I,Jn),oo=(Jn==="colgroup"?Ue:Le)(Rr);nn(Or,oo)},xt=Rr=>{Bo(I,Rr).each(bn)},Lt=(Rr,Jn)=>{Rr.length>0?nt(Rr,Jn):xt(Jn)},Jt=[],Tn=[],sr=[],Dr=[];return Q(W,Rr=>{switch(Rr.section){case"thead":Jt.push(Rr);break;case"tbody":Tn.push(Rr);break;case"tfoot":sr.push(Rr);break;case"colgroup":Dr.push(Rr);break}}),Lt(Dr,"colgroup"),Lt(Jt,"thead"),Lt(Tn,"tbody"),Lt(sr,"tfoot"),{newRows:te,newCells:me}},z3=I=>ae(I,W=>{const te=Bn(W.element);return Q(W.cells,me=>{const Le=Hr(me.element);Ld(Le,"colspan",me.colspan,1),Ld(Le,"rowspan",me.rowspan,1),_t(te,Le)}),te}),Cs=(I,W)=>ae(I,te=>$l(te,W)),JE=(I,W)=>I[W],hi=(I,W)=>{if(I.length===0)return 0;const te=I[0];return ye(I,Le=>!W(te.element,Le.element)).getOr(I.length)},V3=(I,W,te,me)=>{const Le=JE(I,W),Ue=Le.section==="colgroup",nt=hi(Le.cells.slice(te),me),xt=Ue?1:hi(Cs(I.slice(W),te),me);return{colspan:nt,rowspan:xt}},Is=(I,W)=>{const te=ae(I,Le=>ae(Le.cells,M)),me=(Le,Ue,nt,xt)=>{for(let Lt=Le;Lt{const nt=$e(Le.cells,(xt,Lt)=>{if(te[Ue][Lt]===!1){const Jt=V3(I,Ue,Lt,W);return me(Ue,Lt,Jt.rowspan,Jt.colspan),[bo(xt.element,Jt.rowspan,Jt.colspan,xt.isNew)]}else return[]});return Va(Le.element,nt,Le.section,Le.isNew)})},tv=(I,W,te)=>{const me=[];Q(I.colgroups,Le=>{const Ue=[];for(let nt=0;ntYo(Lt.element,te,!1)).getOrThunk(()=>Yo(W.colGap(),!0,!1));Ue.push(xt)}me.push(Fa(Le.element,Ue,"colgroup",te))});for(let Le=0;LeYo(Tn.element,te,Tn.isLocked)).getOrThunk(()=>Yo(W.gap(),!0,!1));Ue.push(Jt)}const nt=I.all[Le],xt=Fa(nt.element,Ue,nt.section,te);me.push(xt)}return me},Ni=(I,W)=>tv(I,W,!1),Us=I=>Is(I,rr),Su=(I,W)=>se(I.all,te=>X(te.cells,me=>rr(W,me.element))),rw=(I,W,te)=>{const me=ae(W.selection,Ue=>Dp(Ue).bind(nt=>Su(I,nt)).filter(te)),Le=Ls(me);return uu(Le.length>0,Le)},Al=(I,W,te,me,Le)=>(Ue,nt,xt,Lt)=>{const Jt=aa.fromTable(Ue),Tn=R.from(Lt==null?void 0:Lt.section).getOrThunk(Am.fallback);return W(Jt,nt).map(Dr=>{const Rr=Ni(Jt,xt),Jn=I(Rr,Dr,rr,Le(xt),Tn),Or=Ri(Jn.grid),Kn=Us(Jn.grid);return{info:Dr,grid:Kn,cursor:Jn.cursor,lockedColumns:Or}}).bind(Dr=>{const Rr=xb(Ue,Dr.grid),Jn=R.from(Lt==null?void 0:Lt.sizing).getOrThunk(()=>ec.getTableSize(Ue)),Or=R.from(Lt==null?void 0:Lt.resize).getOrThunk(ew);return te(Ue,Dr.grid,Dr.info,{sizing:Jn,resize:Or,section:Tn}),me(Ue),tn(Ue,Np),Dr.lockedColumns.length>0&&ht(Ue,Np,Dr.lockedColumns.join(",")),R.some({cursor:Dr.cursor,newRows:Rr.newRows,newCells:Rr.newCells})})},i1=(I,W)=>Dp(W.element).bind(te=>Su(I,te).map(me=>({...me,generators:W.generators,clipboard:W.clipboard}))),nv=(I,W)=>rw(I,W,k).map(te=>({cells:te,generators:W.generators,clipboard:W.clipboard})),Dd=(I,W)=>W.mergable,rv=(I,W)=>W.unmergable,Mm=(I,W)=>rw(I,W,k),Rh=(I,W)=>rw(I,W,te=>!te.isLocked),QE=(I,W)=>Su(I,W).exists(te=>!te.isLocked),U3=(I,W)=>ke(W,te=>QE(I,te)),r$=(I,W)=>Dd(I,W).filter(te=>U3(I,te.cells)),o$=(I,W)=>rv(I,W).filter(te=>U3(I,te)),Cf=(I,W,te,me)=>{const Le=_i(I).rows;if(Le.length===0)return I;for(let Ue=W.startRow;Ue<=W.finishRow;Ue++)for(let nt=W.startCol;nt<=W.finishCol;nt++){const xt=Le[Ue],Lt=$l(xt,nt).isLocked;vh(xt,nt,Yo(me(),!1,Lt))}return I},rc=(I,W,te,me)=>{const Le=_i(I).rows;let Ue=!0;for(let nt=0;ntne(I,(te,me)=>J(te,Le=>W(Le.element,me.element))?te:te.concat([me]),[]),e4=(I,W,te,me)=>(W>0&&W{const Ue=Le.cells[W-1];let nt=0;const xt=me();for(;Le.cells.length>W+nt&&te(Ue.element,Le.cells[W+nt].element);)vh(Le,W+nt,Yo(xt,!0,Le.cells[W+nt].isLocked)),nt++}),I),Em=(I,W,te,me)=>{const Le=_i(I).rows;if(W>0&&W{let Lt=R.none();for(let Jt=W;Jt{vh(sr,Tn,Yo(Jn,!0,Dr.isLocked))}))}})}return I},l1=I=>{const W=Ue=>Ue(I),te=C(I),me=()=>Le,Le={tag:!0,inner:I,fold:(Ue,nt)=>nt(I),isValue:k,isError:M,map:Ue=>$d.value(Ue(I)),mapError:me,bind:W,exists:W,forall:W,getOr:te,or:me,getOrThunk:te,orThunk:me,getOrDie:te,each:Ue=>{Ue(I)},toOptional:()=>R.some(I)};return Le},wb=I=>{const W=()=>te,te={tag:!1,inner:I,fold:(me,Le)=>me(I),isValue:M,isError:k,map:W,mapError:me=>$d.error(me(I)),bind:W,exists:M,forall:k,getOr:_,or:_,getOrThunk:N,orThunk:N,getOrDie:D(String(I)),each:g,toOptional:R.none};return te},$d={value:l1,error:wb,fromOption:(I,W)=>I.fold(()=>wb(W),l1)},ov=(I,W,te)=>{if(I.row>=W.length||I.column>Lc(W[0]))return $d.error("invalid start address out of table bounds, row: "+I.row+", column: "+I.column);const me=W.slice(I.row),Le=me[0].cells.slice(I.column),Ue=Lc(te[0]),nt=te.length;return $d.value({rowDelta:me.length-nt,colDelta:Le.length-Ue})},av=(I,W)=>{const te=Lc(I[0]),me=Lc(W[0]);return{rowDelta:0,colDelta:te-me}},sv=(I,W)=>{const te=I.length,me=W.length;return{rowDelta:te-me,colDelta:0}},Wg=(I,W,te,me)=>{const Le=W.section==="colgroup"?te.col:te.cell;return K(I,Ue=>Yo(Le(),!0,me(Ue)))},W3=(I,W,te,me)=>{const Le=I[I.length-1];return I.concat(K(W,()=>{const Ue=Le.section==="colgroup"?te.colgroup:te.row,nt=W0(Le,Ue,_),xt=Wg(nt.cells.length,nt,te,Lt=>Ge(me,Lt.toString()));return V0(nt,xt)}))},ai=(I,W,te,me)=>ae(I,Le=>{const Ue=Wg(W,Le,te,M);return vc(Le,me,Ue)}),G3=(I,W,te)=>ae(I,me=>ne(te,(Le,Ue)=>{const nt=Wg(1,me,W,k)[0];return kd(Le,Ue,nt)},me)),iv=(I,W,te)=>{const me=W.colDelta<0?ai:_,Le=W.rowDelta<0?W3:_,Ue=Ri(I),nt=Lc(I[0]),xt=J(Ue,Tn=>Tn===nt-1),Lt=me(I,Math.abs(W.colDelta),te,xt?nt-1:nt),Jt=Ri(Lt);return Le(Lt,Math.abs(W.rowDelta),te,Ve(Jt,k))},Z3=(I,W,te,me)=>{const Le=$l(I[W],te),Ue=S(me,Le.element),nt=I[W];return I.length>1&&Lc(nt)>1&&(te>0&&Ue(ui(nt,te-1))||te0&&Ue(ui(I[W-1],te))||W{const nt=I.row,xt=I.column,Lt=te.length,Jt=Lc(te[0]),Tn=nt+Lt,sr=xt+Jt+Ue.length,Dr=Ve(Ue,k);for(let Rr=nt;Rr{const me=Lc(W[0]),Le=_i(W).cols.length+I.row,Ue=K(me-I.column,xt=>xt+I.column),nt=X(Ue,xt=>ke(te,Lt=>Lt!==xt)).getOr(me-1);return{row:Le,column:nt}},Tu=(I,W,te)=>Se(te,me=>me>=I.column&&me<=Lc(W[0])+I.column),j3=(I,W,te,me,Le)=>{const Ue=Ri(W),nt=Pl(I,W,Ue),xt=_i(te).rows,Lt=Tu(nt,xt,Ue);return ov(nt,W,xt).map(Tn=>{const sr={...Tn,colDelta:Tn.colDelta-Lt.length},Dr=iv(W,sr,me),Rr=Ri(Dr),Jn=Tu(nt,xt,Rr);return Sb(nt,Dr,xt,me,Le,Jn)})},Tb=(I,W,te,me,Le)=>{e4(W,I,Le,me.cell);const Ue=sv(te,W),nt=iv(te,Ue,me),xt=sv(W,nt),Lt=iv(W,xt,me);return ae(Lt,(Jt,Tn)=>vc(Jt,I,nt[Tn].cells))},Gg=(I,W,te,me,Le)=>{Em(W,I,Le,me.cell);const Ue=Ri(W),nt=av(W,te),xt={...nt,colDelta:nt.colDelta-Ue.length},Lt=iv(W,xt,me),{cols:Jt,rows:Tn}=_i(Lt),sr=Ri(Lt),Dr=av(te,W),Rr={...Dr,colDelta:Dr.colDelta+sr.length},Jn=G3(te,me,sr),Or=iv(Jn,Rr,me);return[...Jt,...Tn.slice(0,I),...Or,...Tn.slice(I,Tn.length)]},t4=(I,W,te,me)=>W0(I,Le=>me(Le,te),W),Y3=(I,W,te,me,Le)=>{const{rows:Ue,cols:nt}=_i(I),xt=Ue.slice(0,W),Lt=Ue.slice(W),Jt=t4(Ue[te],(Tn,sr)=>W>0&&W{if(te==="colgroup"||!me){const xt=$l(I,Le);return Yo(nt(xt.element,Ue),!0,!1)}else return $l(I,W)},tu=(I,W,te,me,Le)=>ae(I,Ue=>{const nt=W>0&&W$e(I,te=>{const me=te.cells,Le=ce(W,(Ue,nt)=>nt>=0&&nt0?[Fa(te.element,Le,te.section,te.isNew)]:[]}),mi=(I,W,te)=>{const{rows:me,cols:Le}=_i(I);return[...Le,...me.slice(0,W),...me.slice(te+1)]},Qf=(I,W,te,me)=>ui(I[W],te)!==void 0&&W>0&&me(ui(I[W-1],te),ui(I[W],te)),lv=(I,W,te)=>W>0&&te(ui(I,W-1),ui(I,W)),_m=(I,W,te,me)=>Qf(I,W,te,me)||lv(I[W],te,me),Zg=(I,W)=>ke(W,_)&&gb(I.cells)?k:(me,Le,Ue)=>!(Cn(me.element)==="th"&&W[Ue]),jg=(I,W)=>ke(W,_)&&gb(I)?k:(me,Le,Ue)=>!(Cn(me.element)==="th"&&W[Le]),Lh=(I,W,te,me)=>{const Le=nt=>nt==="row"?Yl(W):il(W),Ue=nt=>Le(nt)?`${nt}group`:nt;return I?Qp(W)?Ue(te):null:me&&Qp(W)?Ue(te==="row"?"col":"row"):null},K3=(I,W)=>(te,me,Le)=>R.some(Lh(I,te.element,"col",W[Le])),Yg=(I,W)=>(te,me)=>R.some(Lh(I,te.element,"row",W[me])),Rm=(I,W,te)=>Yo(te(I.element,W),!0,I.isLocked),Kg=(I,W,te,me,Le,Ue,nt)=>{const xt=Lt=>J(W,Jt=>te(Lt.element,Jt.element));return ae(I,(Lt,Jt)=>U0(Lt,(Tn,sr)=>{if(xt(Tn)){const Dr=nt(Tn,Jt,sr)?Le(Tn,te,me):Tn;return Ue(Dr,Jt,sr).each(Rr=>{Tt(Dr.element,{scope:R.from(Rr)})}),Dr}else return Tn}))},X3=(I,W,te)=>$e(I,(me,Le)=>_m(I,Le,W,te)?[]:[$l(me,W)]),n4=(I,W,te)=>{const me=I[W];return $e(me.cells,(Le,Ue)=>_m(I,W,Ue,te)?[]:[Le])},aw=(I,W,te,me,Le)=>{const Ue=_i(I).rows,nt=$e(W,Tn=>X3(Ue,Tn,me)),xt=ae(Ue,Tn=>gb(Tn.cells)),Lt=jg(nt,xt),Jt=Yg(te,xt);return Kg(I,nt,me,Le,Rm,Jt,Lt)},r4=(I,W,te,me,Le,Ue,nt)=>{const{cols:xt,rows:Lt}=_i(I),Jt=Lt[W[0]],Tn=$e(W,Kn=>n4(Lt,Kn,Le)),sr=ae(Jt.cells,(Kn,oo)=>gb(X3(Lt,oo,Le))),Dr=[...Lt];Q(W,Kn=>{Dr[Kn]=nt.transformRow(Lt[Kn],te)});const Rr=[...xt,...Dr],Jn=Zg(Jt,sr),Or=K3(me,sr);return Kg(Rr,Tn,Le,Ue,nt.transformCell,Or,Jn)},Ab=(I,W,te,me)=>{const Le=_i(I).rows,Ue=ae(W,nt=>$l(Le[nt.row],nt.column));return Kg(I,Ue,te,me,Rm,R.none,k)},nu={generate:I=>{if(!s(I))throw new Error("cases must be an array");if(I.length===0)throw new Error("there must be at least one case");const W=[],te={};return Q(I,(me,Le)=>{const Ue=ue(me);if(Ue.length!==1)throw new Error("one and only one name per case");const nt=Ue[0],xt=me[nt];if(te[nt]!==void 0)throw new Error("duplicate key detected:"+nt);if(nt==="cata")throw new Error("cannot have a case named cata (sorry)");if(!s(xt))throw new Error("case arguments must be an array");W.push(nt),te[nt]=(...Lt)=>{const Jt=Lt.length;if(Jt!==xt.length)throw new Error("Wrong number of arguments to case "+nt+". Expected "+xt.length+" ("+xt+"), got "+Jt);return{fold:(...sr)=>{if(sr.length!==I.length)throw new Error("Wrong number of arguments to fold. Expected "+I.length+", got "+sr.length);return sr[Le].apply(null,Lt)},match:sr=>{const Dr=ue(sr);if(W.length!==Dr.length)throw new Error("Wrong number of arguments to match. Expected: "+W.join(",")+` -Actual: `+Dr.join(","));if(!ke(W,Jn=>ee(Dr,Jn)))throw new Error("Not all branches were specified when using match. Specified: "+Dr.join(", ")+` -Required: `+W.join(", "));return sr[nt].apply(null,Lt)},log:sr=>{console.log(sr,{constructors:W,constructor:nt,params:Lt})}}}}),te}},cv={...nu.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}])},Q3=(I,W)=>I.length===0?cv.none():I.length===1?cv.only(0):W===0?cv.left(0,1):W===I.length-1?cv.right(W-1,W):W>0&&W{const Ue=I.slice(0),nt=Q3(I,W),xt=C(ae(Ue,C(0))),Lt=Dr=>me.singleColumnWidth(Ue[Dr],te),Jt=(Dr,Rr)=>Le.calcLeftEdgeDeltas(Ue,Dr,Rr,te,me.minCellWidth(),me.isRelative),Tn=(Dr,Rr,Jn)=>Le.calcMiddleDeltas(Ue,Dr,Rr,Jn,te,me.minCellWidth(),me.isRelative),sr=(Dr,Rr)=>Le.calcRightEdgeDeltas(Ue,Dr,Rr,te,me.minCellWidth(),me.isRelative);return nt.fold(xt,Lt,Jt,Tn,sr)},c1=(I,W,te)=>{let me=0;for(let Le=I;Le{const te=aa.justCells(I);return ae(te,me=>{const Le=c1(me.column,me.column+me.colspan,W);return{element:me.element,width:Le,colspan:me.colspan}})},Mb=(I,W)=>{const te=aa.justColumns(I);return ae(te,(me,Le)=>({element:me.element,width:W[Le],colspan:me.colspan}))},Sa=(I,W)=>{const te=aa.justCells(I);return ae(te,me=>{const Le=c1(me.row,me.row+me.rowspan,W);return{element:me.element,height:Le,rowspan:me.rowspan}})},ru=(I,W)=>ae(I.all,(te,me)=>({element:te.element,height:W[me]})),qf=I=>ce(I,(W,te)=>W+te,0),iw=(I,W)=>aa.hasColumns(I)?Mb(I,W):Lm(I,W),rs=(I,W,te)=>{const me=iw(I,W);Q(me,Le=>{te.setElementWidth(Le.element,Le.width)})},u1=(I,W,te,me,Le)=>{const Ue=aa.fromTable(I),nt=Le.getCellDelta(W),xt=Le.getWidths(Ue,Le),Lt=te===Ue.grid.columns-1,Jt=me.clampTableDelta(xt,te,nt,Le.minCellWidth(),Lt),Tn=o4(xt,te,Jt,Le,me),sr=ae(Tn,(Dr,Rr)=>Dr+xt[Rr]);rs(Ue,sr,Le),me.resizeTable(Le.adjustTableWidth,Jt,Lt)},lw=(I,W,te,me)=>{const Le=aa.fromTable(I),Ue=En(Le,I,me),nt=ae(Ue,(Tn,sr)=>te===sr?Math.max(W+Tn,Zu()):Tn),xt=Sa(Le,nt),Lt=ru(Le,nt);Q(Lt,Tn=>{cl(Tn.element,Tn.height)}),Q(xt,Tn=>{cl(Tn.element,Tn.height)});const Jt=qf(nt);cl(I,Jt)},Zi=(I,W,te,me,Le)=>{const Ue=aa.generate(W),nt=me.getWidths(Ue,me),xt=me.pixelWidth(),{newSizes:Lt,delta:Jt}=Le.calcRedestributedWidths(nt,xt,te.pixelDelta,me.isRelative);rs(Ue,Lt,me),me.adjustTableWidth(Jt)},Od=(I,W,te,me)=>{const Le=aa.generate(W),Ue=me.getWidths(Le,me);rs(Le,Ue,me)},Dm=I=>ne(I,(te,me)=>J(te,Ue=>Ue.column===me.column)?te:te.concat([me]),[]).sort((te,me)=>te.column-me.column),cw=Ze("col"),Eb=Ze("colgroup"),f1=I=>Cn(I)==="tr"||Eb(I),uw=I=>{const W=ws(I,"colspan",1),te=ws(I,"rowspan",1);return{element:I,colspan:W,rowspan:te}},_b=(I,W=uw)=>{const te=xt=>cw(xt.element)?I.col(xt):I.cell(xt),me=xt=>Eb(xt.element)?I.colgroup(xt):I.row(xt),Le=xt=>{if(f1(xt))return me({element:xt});{const Lt=xt,Jt=te(W(Lt));return Ue=R.some({item:Lt,replacement:Jt}),Jt}};let Ue=R.none();return{getOrInit:(xt,Lt)=>Ue.fold(()=>Le(xt),Jt=>Lt(xt,Jt.item)?Jt.replacement:Le(xt))}},Pd=I=>W=>{const te=[],me=(nt,xt)=>X(te,Lt=>xt(Lt.item,nt)),Le=nt=>{const xt=I==="td"?{scope:null}:{},Lt=W.replace(nt,I,xt);return te.push({item:nt,sub:Lt}),Lt};return{replaceOrInit:(nt,xt)=>{if(f1(nt)||cw(nt))return nt;{const Lt=nt;return me(Lt,xt).fold(()=>Le(Lt),Jt=>xt(nt,Jt.item)?Jt.sub:Le(Lt))}}}},Dh=I=>fn(I,"scope").map(W=>W.substr(0,3)),In={modification:_b,transform:Pd,merging:I=>({unmerge:me=>{const Le=Dh(me);return Le.each(Ue=>ht(me,"scope",Ue)),()=>{const Ue=I.cell({element:me,colspan:1,rowspan:1});return Yc(Ue,"width"),Yc(me,"width"),Le.each(nt=>ht(Ue,"scope",nt)),Ue}},merge:me=>{const Le=()=>{const Ue=Ls(ae(me,Dh));if(Ue.length===0)return R.none();{const nt=Ue[0],xt=["row","col"];return J(Ue,Jt=>Jt!==nt&&ee(xt,Jt))?R.none():R.from(nt)}};return Yc(me[0],"width"),Le().fold(()=>tn(me[0],"scope"),Ue=>ht(me[0],"scope",Ue+"group")),C(me[0])}})},d1=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],uv=(I,W)=>{const te=I.property().name(W);return ee(["ol","ul"],te)},ku=(I,W)=>{const te=I.property().name(W);return ee(d1,te)},fw=(I,W)=>ee(["br","img","hr","input"],I.property().name(W)),Ds=Xn(),Rb=I=>ku(Ds,I),$h=I=>uv(Ds,I),dw=I=>fw(Ds,I),Lb=I=>{const W=Ze("br"),te=Lt=>ke(Lt,Jt=>W(Jt)||wt(Jt)&&bt(Jt).trim().length===0),me=Lt=>Cn(Lt)==="li"||Ms(Lt,$h).isSome(),Le=Lt=>De(Lt).map(Jt=>Rb(Jt)?!0:dw(Jt)?Cn(Jt)!=="img":!1).getOr(!1),Ue=Lt=>Mn(Lt).bind(Jt=>{const Tn=Le(Jt);return ro(Jt).map(sr=>Tn===!0||me(sr)||W(Jt)||Rb(sr)&&!rr(Lt,sr)?[]:[zt.fromTag("br")])}).getOr([]),xt=(()=>{const Lt=$e(I,Jt=>{const Tn=St(Jt);return te(Tn)?[]:Tn.concat(Ue(Jt))});return Lt.length===0?[zt.fromTag("br")]:Lt})();Sn(I[0]),nn(I[0],xt)},hw=I=>Kf(I,!0),h1=I=>{ju(I).length===0&&bn(I)},fv=(I,W)=>({grid:I,cursor:W}),mw=I=>se(I,W=>se(W.cells,te=>{const me=te.element;return uu(hw(me),me)})),s4=(I,W,te)=>{var me,Le;const Ue=_i(I).rows;return R.from((Le=(me=Ue[W])===null||me===void 0?void 0:me.cells[te])===null||Le===void 0?void 0:Le.element).filter(hw).orThunk(()=>mw(Ue))},wc=(I,W,te)=>{const me=s4(I,W,te);return fv(I,me)},ji=I=>ne(I,(te,me)=>J(te,Ue=>Ue.row===me.row)?te:te.concat([me]),[]).sort((te,me)=>te.row-me.row),Ml=(I,W,te,me)=>{const Le=W[0].row,Ue=ji(W),nt=ce(Ue,(xt,Lt)=>({grid:Y3(xt.grid,Le,Lt.row+xt.delta,te,me.getOrInit),delta:xt.delta+1}),{grid:I,delta:0}).grid;return wc(nt,Le,W[0].column)},Cc=(I,W,te,me)=>{const Le=ji(W),Ue=Le[Le.length-1],nt=Ue.row+Ue.rowspan,xt=ce(Le,(Lt,Jt)=>Y3(Lt,nt,Jt.row,te,me.getOrInit),I);return wc(xt,nt,W[0].column)},Il=(I,W,te,me)=>{const Le=W.details,Ue=Dm(Le),nt=Ue[0].column,xt=ce(Ue,(Lt,Jt)=>({grid:tu(Lt.grid,nt,Jt.column+Lt.delta,te,me.getOrInit),delta:Lt.delta+1}),{grid:I,delta:0}).grid;return wc(xt,Le[0].row,nt)},oc=(I,W,te,me)=>{const Le=W.details,Ue=Le[Le.length-1],nt=Ue.column+Ue.colspan,xt=Dm(Le),Lt=ce(xt,(Jt,Tn)=>tu(Jt,nt,Tn.column,te,me.getOrInit),I);return wc(Lt,Le[0].row,nt)},Yi=(I,W,te,me)=>{const Le=Dm(W),Ue=ae(Le,xt=>xt.column),nt=aw(I,Ue,!0,te,me.replaceOrInit);return wc(nt,W[0].row,W[0].column)},gw=(I,W,te,me)=>{const Le=Ab(I,W,te,me.replaceOrInit);return wc(Le,W[0].row,W[0].column)},m1=(I,W,te,me)=>{const Le=Dm(W),Ue=ae(Le,xt=>xt.column),nt=aw(I,Ue,!1,te,me.replaceOrInit);return wc(nt,W[0].row,W[0].column)},pw=(I,W,te,me)=>{const Le=Ab(I,W,te,me.replaceOrInit);return wc(Le,W[0].row,W[0].column)},g1=(I,W)=>(te,me,Le,Ue,nt)=>{const xt=ji(me),Lt=ae(xt,Tn=>Tn.row),Jt=r4(te,Lt,I,W,Le,Ue.replaceOrInit,nt);return wc(Jt,me[0].row,me[0].column)},vw=g1("thead",!0),q3=g1("tbody",!1),Db=g1("tfoot",!1),yw=(I,W,te,me)=>{const Le=Dm(W.details),Ue=kb(I,ae(Le,xt=>xt.column)),nt=Ue.length>0?Ue[0].cells.length-1:0;return wc(Ue,Le[0].row,Math.min(Le[0].column,nt))},i4=(I,W,te,me)=>{const Le=ji(W),Ue=mi(I,Le[0].row,Le[Le.length-1].row),nt=Ue.length>0?Ue.length-1:0;return wc(Ue,Math.min(W[0].row,nt),W[0].column)},l4=(I,W,te,me)=>{const Le=W.cells;Lb(Le);const Ue=Cf(I,W.bounds,te,me.merge(Le));return fv(Ue,R.from(Le[0]))},eT=(I,W,te,me)=>{const Ue=ce(W,(nt,xt)=>rc(nt,xt,te,me.unmerge(xt)),I);return fv(Ue,R.from(W[0]))},c4=(I,W,te,me)=>{const Ue=((Lt,Jt)=>{const Tn=aa.fromTable(Lt);return tv(Tn,Jt,!0)})(W.clipboard,W.generators),nt=So(W.row,W.column);return j3(nt,I,Ue,W.generators,te).fold(()=>fv(I,R.some(W.element)),Lt=>wc(Lt,W.row,W.column))},dv=(I,W,te)=>{const me=jy(I,te.section),Le=aa.generate(me);return tv(Le,W,!0)},$b=(I,W,te,me)=>{const Le=_i(I).rows,Ue=W.cells[0].column,nt=Le[W.cells[0].row],xt=dv(W.clipboard,W.generators,nt),Lt=Tb(Ue,I,xt,W.generators,te);return wc(Lt,W.cells[0].row,W.cells[0].column)},tT=(I,W,te,me)=>{const Le=_i(I).rows,Ue=W.cells[W.cells.length-1].column+W.cells[W.cells.length-1].colspan,nt=Le[W.cells[0].row],xt=dv(W.clipboard,W.generators,nt),Lt=Tb(Ue,I,xt,W.generators,te);return wc(Lt,W.cells[0].row,W.cells[0].column)},a$=(I,W,te,me)=>{const Le=_i(I).rows,Ue=W.cells[0].row,nt=Le[Ue],xt=dv(W.clipboard,W.generators,nt),Lt=Gg(Ue,I,xt,W.generators,te);return wc(Lt,W.cells[0].row,W.cells[0].column)},Oc=(I,W,te,me)=>{const Le=_i(I).rows,Ue=W.cells[W.cells.length-1].row+W.cells[W.cells.length-1].rowspan,nt=Le[W.cells[0].row],xt=dv(W.clipboard,W.generators,nt),Lt=Gg(Ue,I,xt,W.generators,te);return wc(Lt,W.cells[0].row,W.cells[0].column)},s$=(I,W)=>{const te=aa.fromTable(I);return Mm(te,W).bind(Le=>{const Ue=Le[Le.length-1],nt=Le[0].column,xt=Ue.column+Ue.colspan,Lt=Ce(ae(te.all,Jt=>Se(Jt.cells,Tn=>Tn.column>=nt&&Tn.column{const te=aa.fromTable(I);return Mm(te,W).bind(qp).getOr("")},gr=(I,W)=>{const te=aa.fromTable(I);return Mm(te,W).bind(Le=>{const Ue=Le[Le.length-1],nt=Le[0].row,xt=Ue.row+Ue.rowspan,Lt=te.all.slice(nt,xt);return XE(Lt)}).getOr("")},bw=(I,W,te,me)=>Od(I,W,te,me.sizing),Ki=(I,W,te,me)=>Zi(I,W,te,me.sizing,me.resize),nT=(I,W)=>J(W,te=>te.column===0&&te.isLocked),Ob=(I,W)=>J(W,te=>te.column+te.colspan>=I.grid.columns&&te.isLocked),xw=(I,W)=>{const te=bh(I),me=Dm(W);return ne(me,(Le,Ue)=>{const xt=te[Ue.column].map(Ku).getOr(0);return Le+xt},0)},Pc=I=>(W,te)=>Mm(W,te).filter(me=>!(I?nT:Ob)(W,me)).map(me=>({details:me,pixelDelta:xw(W,me)})),u4=(I,W)=>Rh(I,W).map(te=>({details:te,pixelDelta:-xw(I,te)})),rT=I=>(W,te)=>nv(W,te).filter(me=>!(I?nT:Ob)(W,me.cells)),Ic=In.transform("th"),hv=In.transform("td"),p1=Al(Ml,Mm,g,g,In.modification),Id=Al(Cc,Mm,g,g,In.modification),Sf=Al(Il,Pc(!0),Ki,g,In.modification),Ur=Al(oc,Pc(!1),Ki,g,In.modification),Au=Al(yw,u4,Ki,h1,In.modification),oT=Al(i4,Mm,g,h1,In.modification),aT=Al(Yi,Rh,g,g,Ic),ww=Al(m1,Rh,g,g,hv),sT=Al(vw,Rh,g,g,Ic),Cw=Al(q3,Rh,g,g,hv),Sw=Al(Db,Rh,g,g,hv),f4=Al(gw,Rh,g,g,Ic),Tw=Al(pw,Rh,g,g,hv),d4=Al(l4,r$,bw,g,In.merging),ac=Al(eT,o$,bw,g,In.merging),v1=Al(c4,i1,bw,g,In.modification),h4=Al($b,rT(!0),g,g,In.modification),m4=Al(tT,rT(!1),g,g,In.modification),kw=Al(a$,nv,g,g,In.modification),g4=Al(Oc,nv,g,g,In.modification),iT=s$,lT=ed,y1=gr,cT=(I,W)=>I.dispatch("NewRow",{node:W}),Aw=(I,W)=>I.dispatch("NewCell",{node:W}),Xg=(I,W,te)=>{I.dispatch("TableModified",{...te,table:W})},p4=(I,W,te,me,Le)=>{I.dispatch("TableSelectionChange",{cells:W,start:te,finish:me,otherCells:Le})},v4=I=>{I.dispatch("TableSelectionClear")},Mw=(I,W,te,me,Le)=>{I.dispatch("ObjectResizeStart",{target:W,width:te,height:me,origin:Le})},y4=(I,W,te,me,Le)=>{I.dispatch("ObjectResized",{target:W,width:te,height:me,origin:Le})},Oh={structure:!1,style:!0},ia={structure:!0,style:!1},Ew={structure:!0,style:!0},sc=(I,W)=>qu(I)?ec.percentageSize(W):Sl(I)?ec.pixelSize(W):ec.getTableSize(W),Pb=(I,W,te)=>{const me=Tc=>Cn(ob(Tc))==="table",Le=Tc=>!me(I)||Jp(Tc).rows>1,Ue=Tc=>!me(I)||Jp(Tc).columns>1,nt=xi(I),xt=Ga(I)?g:q2,Lt=Tc=>{switch(Ii(I)){case"section":return Am.section();case"sectionCells":return Am.sectionCells();case"cells":return Am.cells();default:return Am.getTableSectionType(Tc,"section")}},Jt=(Tc,SC)=>SC.cursor.fold(()=>{const X1=ju(Tc);return ie(X1).filter(Ka).map(Vd=>{te.clearSelectedCells(Tc.dom);const Hl=I.dom.createRng();return Hl.selectNode(Vd.dom),I.selection.setRng(Hl),ht(Vd,"data-mce-selected","1"),Hl})},X1=>{const Vd=F3(X1),Hl=I.dom.createRng();return Hl.setStart(Vd.element.dom,Vd.offset),Hl.setEnd(Vd.element.dom,Vd.offset),I.selection.setRng(Hl),te.clearSelectedCells(Tc.dom),R.some(Hl)}),Tn=(Tc,SC,X1,Vd)=>(Hl,J1,ik=!1)=>{Xf(Hl);const lk=zt.fromDom(I.getDoc()),zv=Ha(X1,lk,nt),ck={sizing:sc(I,Hl),resize:Ga(I)?B3():ew(),section:Lt(Hl)};return SC(Hl)?Tc(Hl,J1,zv,ck).bind(gx=>{W.refresh(Hl.dom),Q(gx.newRows,ip=>{cT(I,ip.dom)}),Q(gx.newCells,ip=>{Aw(I,ip.dom)});const uk=Jt(Hl,gx);return Ka(Hl)&&(Xf(Hl),ik||Xg(I,Hl.dom,Vd)),uk.map(ip=>({rng:ip,effect:Vd}))}):R.none()},sr=Tn(oT,Le,g,ia),Dr=Tn(Au,Ue,g,ia),Rr=Tn(p1,k,g,ia),Jn=Tn(Id,k,g,ia),Or=Tn(Sf,k,xt,ia),Kn=Tn(Ur,k,xt,ia),oo=Tn(d4,k,g,ia),Ro=Tn(ac,k,g,ia),Qo=Tn(h4,k,g,ia),_s=Tn(m4,k,g,ia),Ji=Tn(kw,k,g,ia),si=Tn(g4,k,g,ia),Bc=Tn(v1,k,g,Ew),ap=Tn(f4,k,g,ia),sp=Tn(Tw,k,g,ia),CC=Tn(aT,k,g,ia),mx=Tn(ww,k,g,ia),ls=Tn(sT,k,g,ia),lc=Tn(Cw,k,g,ia),_l=Tn(Sw,k,g,ia);return{deleteRow:sr,deleteColumn:Dr,insertRowsBefore:Rr,insertRowsAfter:Jn,insertColumnsBefore:Or,insertColumnsAfter:Kn,mergeCells:oo,unmergeCells:Ro,pasteColsBefore:Qo,pasteColsAfter:_s,pasteRowsBefore:Ji,pasteRowsAfter:si,pasteCells:Bc,makeCellsHeader:ap,unmakeCellsHeader:sp,makeColumnsHeader:CC,unmakeColumnsHeader:mx,makeRowsHeader:ls,makeRowsBody:lc,makeRowsFooter:_l,getTableRowType:y1,getTableCellType:lT,getTableColType:iT}},_w=(I,W,te)=>{const me=ws(I,W,1);te===1||me<=1?tn(I,W):ht(I,W,Math.min(te,me))},Rw=(I,W)=>te=>{const me=te.column+te.colspan-1,Le=te.column;return me>=I&&Le{if(aa.hasColumns(I)){const me=Se(aa.justColumns(I),Rw(W,te)),Le=ae(me,nt=>{const xt=Hr(nt.element);return _w(xt,"span",te-W),xt}),Ue=zt.fromTag("colgroup");return nn(Ue,Le),[Ue]}else return[]},uT=(I,W,te)=>ae(I.all,me=>{const Le=Se(me.cells,Rw(W,te)),Ue=ae(Le,xt=>{const Lt=Hr(xt.element);return _w(Lt,"colspan",te-W),Lt}),nt=zt.fromTag("tr");return nn(nt,Ue),nt}),b4=(I,W)=>{const te=aa.fromTable(I);return Rh(te,W).map(Le=>{const Ue=Le[Le.length-1],nt=Le[0].column,xt=Ue.column+Ue.colspan,Lt=Ib(te,nt,xt),Jt=uT(te,nt,xt);return[...Lt,...Jt]})},x4=(I,W,te)=>{const me=aa.fromTable(I);return Mm(me,W).bind(Ue=>{const nt=tv(me,te,!1),Lt=_i(nt).rows.slice(Ue[0].row,Ue[Ue.length-1].row+Ue[Ue.length-1].rowspan),Jt=$e(Lt,sr=>{const Dr=Se(sr.cells,Rr=>!Rr.isLocked);return Dr.length>0?[{...sr,cells:Dr}]:[]}),Tn=Us(Jt);return uu(Tn.length>0,Tn)}).map(Ue=>z3(Ue))},mv=nu.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),fT=(I,W,te)=>{const me=te.substring(0,te.length-I.length),Le=parseFloat(me);return me===Le.toString()?W(Le):mv.invalid(te)},$m={...mv,from:I=>gc(I,"%")?fT("%",mv.percent,I):gc(I,"px")?fT("px",mv.pixels,I):mv.invalid(I)},w4=(I,W)=>ae(I,te=>$m.from(te).fold(()=>te,Le=>Le/W*100+"%",Le=>Le+"%")),gv=(I,W,te)=>{const me=te/W;return ae(I,Le=>$m.from(Le).fold(()=>Le,nt=>nt*me+"px",nt=>nt/100*te+"px"))},C4=(I,W)=>{const te=I.fold(()=>C(""),me=>{const Le=me/W;return C(Le+"px")},()=>{const me=100/W;return C(me+"%")});return K(W,te)},Lw=(I,W,te)=>I.fold(()=>W,me=>gv(W,te,me),me=>w4(W,te)),dT=(I,W,te)=>{const me=$m.from(te),Le=ke(I,Ue=>Ue==="0px")?C4(me,I.length):Lw(me,I,W);return mT(Le)},Jg=(I,W)=>I.length===0?W:ce(I,(te,me)=>$m.from(me).fold(C(0),_,_)+te,0),S4=(I,W)=>{const te=Math.floor(I);return{value:te+W,remainder:I-te}},hT=(I,W)=>$m.from(I).fold(C(I),te=>te+W+"px",te=>te+W+"%"),mT=I=>{if(I.length===0)return I;const W=ce(I,(me,Le)=>{const Ue=$m.from(Le).fold(()=>({value:Le,remainder:0}),nt=>S4(nt,"px"),nt=>({value:nt+"%",remainder:0}));return{output:[Ue.value].concat(me.output),remainder:me.remainder+Ue.remainder}},{output:[],remainder:0}),te=W.output;return te.slice(0,te.length-1).concat([hT(te[te.length-1],Math.round(W.remainder))])},pv=$m.from,gT=(I,W,te)=>{Q(W,me=>{const Le=I.slice(me.column,me.colspan+me.column),Ue=Jg(Le,Xs());Ps(me.element,"width",Ue+te)})},Dw=(I,W,te)=>{Q(W,(me,Le)=>{const Ue=Jg([I[Le]],Xs());Ps(me.element,"width",Ue+te)})},T4=(I,W,te,me)=>{Q(te,Le=>{const Ue=I.slice(Le.row,Le.rowspan+Le.row),nt=Jg(Ue,Zu());Ps(Le.element,"height",nt+me)}),Q(W,(Le,Ue)=>{Ps(Le.element,"height",I[Ue])})},pT=I=>pv(I).fold(C("px"),C("px"),C("%")),Nd=(I,W,te)=>{const me=aa.fromTable(I),Le=me.all,Ue=aa.justCells(me),nt=aa.justColumns(me);W.each(xt=>{const Lt=pT(xt),Jt=Jl(I),Tn=pf(me,I),sr=dT(Tn,Jt,xt);aa.hasColumns(me)?Dw(sr,nt,Lt):gT(sr,Ue,Lt),Ps(I,"width",xt)}),te.each(xt=>{const Lt=pT(xt),Jt=Bp(I),Tn=ql(me,I,Gr),sr=dT(Tn,Jt,xt);T4(sr,Le,Ue,Lt),Ps(I,"height",xt)})},b1=Qu,x1=z2,Nb=bu,w1=I=>{tn(I,"width")},tf=I=>{const W=Da(I);Nd(I,R.some(W),R.none()),w1(I)},vv=I=>{const W=Cm(I);Nd(I,R.some(W),R.none()),w1(I)},C1=I=>{Yc(I,"width");const W=_g(I),te=W.length>0?W:ju(I);Q(te,me=>{Yc(me,"width"),w1(me)}),w1(I)},Om={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},Fb=()=>zt.fromTag("th"),k4=()=>zt.fromTag("td"),A4=()=>zt.fromTag("col"),vT=(I,W,te,me)=>{const Le=zt.fromTag("tr");for(let Ue=0;Ue{const W=zt.fromTag("colgroup");return K(I,()=>_t(W,A4())),W},$w=(I,W,te,me)=>K(I,Le=>vT(W,te,me,Le)),E4=(I,W,te,me,Le,Ue=Om)=>{const nt=zt.fromTag("table"),xt=Le!=="cells";sl(nt,Ue.styles),pt(nt,Ue.attributes),Ue.colGroups&&_t(nt,M4(W));const Lt=Math.min(I,te);if(xt&&te>0){const Rr=zt.fromTag("thead");_t(nt,Rr);const Or=$w(te,W,Le==="sectionCells"?Lt:0,me);nn(Rr,Or)}const Jt=zt.fromTag("tbody");_t(nt,Jt);const Tn=xt?I-Lt:I,Dr=$w(Tn,W,xt?0:te,me);return nn(Jt,Dr),nt},_4=I=>I.dom.innerHTML,yT=I=>{const W=zt.fromTag("div"),te=zt.fromDom(I.dom.cloneNode(!0));return _t(W,te),_4(W)},R4=(I,W)=>{I.selection.select(W.dom,!0),I.selection.collapse(!0)},bT=(I,W)=>{Ks(W,"td,th").each(S(R4,I))},L4=(I,W)=>{Q(Mi(W,"tr"),te=>{cT(I,te.dom),Q(Mi(te,"th,td"),me=>{Aw(I,me.dom)})})},Bb=I=>L(I)&&I.indexOf("%")!==-1,D4=(I,W,te,me,Le)=>{const Ue=Yf(I),nt={styles:Ue,attributes:nc(I),colGroups:wu(I)};return I.undoManager.ignore(()=>{const xt=E4(te,W,Le,me,Ii(I),nt);ht(xt,"data-mce-id","__mce");const Lt=yT(xt);I.insertContent(Lt),I.addVisual()}),Ks(ob(I),'table[data-mce-id="__mce"]').map(xt=>(Sl(I)?vv(xt):wi(I)?C1(xt):(qu(I)||Bb(Ue.width))&&tf(xt),Xf(xt),tn(xt,"data-mce-id"),L4(I,xt),bT(I,xt),xt.dom)).getOrNull()},xT=(I,W,te,me={})=>{const Le=Ue=>d(Ue)&&Ue>0;if(Le(W)&&Le(te)){const Ue=me.headerRows||0,nt=me.headerColumns||0;return D4(I,te,W,nt,Ue)}else return console.error("Invalid values for mceInsertTable - rows and columns values are required to insert a table."),null};var yv=tinymce.util.Tools.resolve("tinymce.FakeClipboard");const Ow="x-tinymce/dom-table-",Pw=Ow+"rows",Iw=Ow+"columns",wT=I=>{const W=yv.FakeClipboardItem(I);yv.write([W])},Nw=I=>{var W;const te=(W=yv.read())!==null&&W!==void 0?W:[];return se(te,me=>R.from(me.getType(I)))},$4=I=>{Nw(I).isSome()&&yv.clear()},Hb=I=>{I.fold(O4,W=>wT({[Pw]:W}))},zb=()=>Nw(Pw),O4=()=>$4(Pw),Fw=I=>{I.fold(P4,W=>wT({[Iw]:W}))},CT=()=>Nw(Iw),P4=()=>$4(Iw),Bw=I=>Jf(Cu(I),Md(I)).filter(sb),I4=I=>a1(Cu(I),Md(I)).filter(sb),bv=(I,W)=>{const te=Md(I),me=()=>Bw(I).each(Kn=>{Kl(Kn,te).filter(O(te)).each(oo=>{const Ro=zt.fromText("");if(Ut(oo,Ro),bn(oo),I.dom.isEmpty(I.getBody()))I.setContent(""),I.selection.setCursorLocation();else{const Qo=I.dom.createRng();Qo.setStart(Ro.dom,0),Qo.setEnd(Ro.dom,0),I.selection.setRng(Qo),I.nodeChanged()}})}),Le=Kn=>Bw(I).each(oo=>{wi(I)||Sl(I)||qu(I)||Kl(oo,te).each(Qo=>{Kn==="relative"&&!b1(Qo)?tf(Qo):Kn==="fixed"&&!x1(Qo)?vv(Qo):Kn==="responsive"&&!Nb(Qo)&&C1(Qo),Xf(Qo),Xg(I,Qo.dom,ia)})}),Ue=Kn=>Kl(Kn,te),nt=Kn=>I4(I).bind(oo=>Ue(oo).map(Ro=>Kn(Ro,oo))),xt=(Kn,oo)=>{nt(Ro=>{I.formatter.toggle("tableclass",{value:oo},Ro.dom),Xg(I,Ro.dom,Oh)})},Lt=(Kn,oo)=>{nt(Ro=>{const Qo=ef(I),Ji=ke(Qo,si=>I.formatter.match("tablecellclass",{value:oo},si.dom))?I.formatter.remove:I.formatter.apply;Q(Qo,si=>Ji("tablecellclass",{value:oo},si.dom)),Xg(I,Ro.dom,Oh)})},Jt=()=>{Bw(I).each(Kn=>{Kl(Kn,te).each(oo=>{Bo(oo,"caption").fold(()=>{const Ro=zt.fromTag("caption");_t(Ro,zt.fromText("Caption")),qt(oo,Ro,0),I.selection.setCursorLocation(Ro.dom,0)},Ro=>{Ze("caption")(Kn)&&Tr("td",oo).each(Qo=>I.selection.setCursorLocation(Qo.dom,0)),bn(Ro)}),Xg(I,oo.dom,ia)})})},Tn=Kn=>{I.focus()},sr=(Kn,oo=!1)=>nt((Ro,Qo)=>{const _s=Zp(ef(I),Ro,Qo);Kn(Ro,_s,oo).each(Tn)}),Dr=()=>nt((Kn,oo)=>{const Ro=Zp(ef(I),Kn,oo),Qo=Ha(g,zt.fromDom(I.getDoc()),R.none());return x4(Kn,Ro,Qo)}),Rr=()=>nt((Kn,oo)=>{const Ro=Zp(ef(I),Kn,oo);return b4(Kn,Ro)}),Jn=(Kn,oo)=>oo().each(Ro=>{const Qo=ae(Ro,_s=>Hr(_s));nt((_s,Ji)=>{const si=Vs(zt.fromDom(I.getDoc())),Bc=jp(ef(I),Ji,Qo,si);Kn(_s,Bc).each(Tn)})}),Or=Kn=>(oo,Ro)=>dt(Ro,"type").each(Qo=>{sr(Kn(Qo),Ro.no_events)});le({mceTableSplitCells:()=>sr(W.unmergeCells),mceTableMergeCells:()=>sr(W.mergeCells),mceTableInsertRowBefore:()=>sr(W.insertRowsBefore),mceTableInsertRowAfter:()=>sr(W.insertRowsAfter),mceTableInsertColBefore:()=>sr(W.insertColumnsBefore),mceTableInsertColAfter:()=>sr(W.insertColumnsAfter),mceTableDeleteCol:()=>sr(W.deleteColumn),mceTableDeleteRow:()=>sr(W.deleteRow),mceTableCutCol:()=>Rr().each(Kn=>{Fw(Kn),sr(W.deleteColumn)}),mceTableCutRow:()=>Dr().each(Kn=>{Hb(Kn),sr(W.deleteRow)}),mceTableCopyCol:()=>Rr().each(Kn=>Fw(Kn)),mceTableCopyRow:()=>Dr().each(Kn=>Hb(Kn)),mceTablePasteColBefore:()=>Jn(W.pasteColsBefore,CT),mceTablePasteColAfter:()=>Jn(W.pasteColsAfter,CT),mceTablePasteRowBefore:()=>Jn(W.pasteRowsBefore,zb),mceTablePasteRowAfter:()=>Jn(W.pasteRowsAfter,zb),mceTableDelete:me,mceTableCellToggleClass:Lt,mceTableToggleClass:xt,mceTableToggleCaption:Jt,mceTableSizingMode:(Kn,oo)=>Le(oo),mceTableCellType:Or(Kn=>Kn==="th"?W.makeCellsHeader:W.unmakeCellsHeader),mceTableColType:Or(Kn=>Kn==="th"?W.makeColumnsHeader:W.unmakeColumnsHeader),mceTableRowType:Or(Kn=>{switch(Kn){case"header":return W.makeRowsHeader;case"footer":return W.makeRowsFooter;default:return W.makeRowsBody}})},(Kn,oo)=>I.addCommand(oo,Kn)),I.addCommand("mceInsertTable",(Kn,oo)=>{xT(I,oo.rows,oo.columns,oo.options)}),I.addCommand("mceTableApplyCellStyle",(Kn,oo)=>{const Ro=Ji=>"tablecell"+Ji.toLowerCase().replace("-","");if(!A(oo))return;const Qo=Se(ef(I),sb);if(Qo.length===0)return;const _s=ze(oo,(Ji,si)=>I.formatter.has(Ro(si))&&L(Ji));qe(_s)||(le(_s,(Ji,si)=>{const Bc=Ro(si);Q(Qo,ap=>{Ji===""?I.formatter.remove(Bc,{value:null},ap.dom,!0):I.formatter.apply(Bc,{value:Ji},ap.dom)})}),Ue(Qo[0]).each(Ji=>Xg(I,Ji.dom,Oh)))})},N4=(I,W)=>{const te=Md(I),me=Le=>a1(Cu(I)).bind(Ue=>Kl(Ue,te).map(nt=>{const xt=Zp(ef(I),nt,Ue);return Le(nt,xt)})).getOr("");le({mceTableRowType:()=>me(W.getTableRowType),mceTableCellType:()=>me(W.getTableCellType),mceTableColType:()=>me(W.getTableColType)},(Le,Ue)=>I.addQueryValueHandler(Ue,Le))},Hw=nu.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),F4=(I,W,te,me)=>I.fold(W,te,me),B4=I=>I.fold(_,_,_),H4=Hw.before,ST=Hw.on,z4=Hw.after,fl={before:H4,on:ST,after:z4,cata:F4,getStart:B4},xv={create:(I,W)=>({selection:I,kill:W})},Vb=(I,W)=>{const te=I.document.createRange();return te.selectNode(W.dom),te},TT=(I,W)=>{const te=I.document.createRange();return zw(te,W),te},zw=(I,W)=>I.selectNodeContents(W.dom),kT=(I,W)=>{W.fold(te=>{I.setStartBefore(te.dom)},(te,me)=>{I.setStart(te.dom,me)},te=>{I.setStartAfter(te.dom)})},AT=(I,W)=>{W.fold(te=>{I.setEndBefore(te.dom)},(te,me)=>{I.setEnd(te.dom,me)},te=>{I.setEndAfter(te.dom)})},Qg=(I,W,te)=>{const me=I.document.createRange();return kT(me,W),AT(me,te),me},S1=(I,W,te,me,Le)=>{const Ue=I.document.createRange();return Ue.setStart(W.dom,te),Ue.setEnd(me.dom,Le),Ue},V4=I=>({left:I.left,top:I.top,right:I.right,bottom:I.bottom,width:I.width,height:I.height}),U4=I=>{const W=I.getClientRects(),te=W.length>0?W[0]:I.getBoundingClientRect();return te.width>0||te.height>0?R.some(te).map(V4):R.none()},T1=nu.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Vw=(I,W,te)=>W(zt.fromDom(te.startContainer),te.startOffset,zt.fromDom(te.endContainer),te.endOffset),MT=(I,W)=>W.match({domRange:te=>({ltr:C(te),rtl:R.none}),relative:(te,me)=>({ltr:Cd(()=>Qg(I,te,me)),rtl:Cd(()=>R.some(Qg(I,me,te)))}),exact:(te,me,Le,Ue)=>({ltr:Cd(()=>S1(I,te,me,Le,Ue)),rtl:Cd(()=>R.some(S1(I,Le,Ue,te,me)))})}),Xi=(I,W)=>{const te=W.ltr();return te.collapsed?W.rtl().filter(Le=>Le.collapsed===!1).map(Le=>T1.rtl(zt.fromDom(Le.endContainer),Le.endOffset,zt.fromDom(Le.startContainer),Le.startOffset)).getOrThunk(()=>Vw(I,T1.ltr,te)):Vw(I,T1.ltr,te)},ET=(I,W)=>{const te=MT(I,W);return Xi(I,te)},Uw=(I,W)=>ET(I,W).match({ltr:(me,Le,Ue,nt)=>{const xt=I.document.createRange();return xt.setStart(me.dom,Le),xt.setEnd(Ue.dom,nt),xt},rtl:(me,Le,Ue,nt)=>{const xt=I.document.createRange();return xt.setStart(Ue.dom,nt),xt.setEnd(me.dom,Le),xt}});T1.ltr,T1.rtl;const wv={create:(I,W,te,me)=>({start:I,soffset:W,finish:te,foffset:me})},_T={create:(I,W,te,me)=>({start:fl.on(I,W),finish:fl.on(te,me)})},Ww=(I,W)=>{const te=Uw(I,W);return wv.create(zt.fromDom(te.startContainer),te.startOffset,zt.fromDom(te.endContainer),te.endOffset)},k1=_T.create,Ub=(I,W,te,me,Le,Ue,nt)=>rr(te,Le)&&me===Ue?R.none():Bs(te,"td,th",W).bind(xt=>Bs(Le,"td,th",W).bind(Lt=>Cv(I,W,xt,Lt,nt))),Cv=(I,W,te,me,Le)=>rr(te,me)?R.none():xf(te,me,W).bind(Ue=>{const nt=Ue.boxes.getOr([]);return nt.length>1?(Le(I,nt,Ue.start,Ue.finish),R.some(xv.create(R.some(k1(te,0,te,mn(te))),!0))):R.none()}),G4=(I,W,te,me,Le)=>{const Ue=nt=>(Le.clearBeforeUpdate(te),Le.selectRange(te,nt.boxes,nt.start,nt.finish),nt.boxes);return ub(me,I,W,Le.firstSelectedSelector,Le.lastSelectedSelector).map(Ue)},Pm=(I,W)=>({item:I,mode:W}),RT=(I,W,te,me=Im)=>I.property().parent(W).map(Le=>Pm(Le,me)),Im=(I,W,te,me=Nm)=>te.sibling(I,W).map(Le=>Pm(Le,me)),Nm=(I,W,te,me=Nm)=>{const Le=I.property().children(W);return te.first(Le).map(nt=>Pm(nt,me))},Gw=[{current:RT,next:Im,fallback:R.none()},{current:Im,next:Nm,fallback:R.some(RT)},{current:Nm,next:Nm,fallback:R.some(Im)}],LT=(I,W,te,me,Le=Gw)=>X(Le,nt=>nt.current===te).bind(nt=>nt.current(I,W,me,nt.next).orThunk(()=>nt.fallback.bind(xt=>LT(I,W,xt,me)))),Fm={left:()=>({sibling:(te,me)=>te.query().prevSibling(me),first:te=>te.length>0?R.some(te[te.length-1]):R.none()}),right:()=>({sibling:(te,me)=>te.query().nextSibling(me),first:te=>te.length>0?R.some(te[0]):R.none()})},Fd=(I,W,te,me,Le,Ue)=>LT(I,W,me,Le).bind(xt=>Ue(xt.item)?R.none():te(xt.item)?R.some(xt.item):Fd(I,xt.item,te,xt.mode,Le,Ue)),A1=(I,W,te,me)=>Fd(I,W,te,Im,Fm.left(),me),Sv=(I,W,te,me)=>Fd(I,W,te,Im,Fm.right(),me),jw=I=>W=>I.property().children(W).length===0,Ph=(I,W,te)=>M1(I,W,jw(I),te),td=(I,W,te)=>Wb(I,W,jw(I),te),M1=A1,Wb=Sv,E1=Xn(),Yw=(I,W)=>Ph(E1,I,W),Tv=(I,W)=>td(E1,I,W),_1=(I,W,te)=>M1(E1,I,W,te),Kw=(I,W,te)=>Wb(E1,I,W,te),DT=(I,W,te)=>Ms(I,W,te).isSome(),Bm=nu.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),Gb=(I,W,te)=>{const me=I.getRect(W),Le=I.getRect(te);return Le.right>me.left&&Le.leftBs(I,"tr"),gi={...Bm,verify:(I,W,te,me,Le,Ue,nt)=>Bs(me,"td,th",nt).bind(xt=>Bs(W,"td,th",nt).map(Lt=>rr(xt,Lt)?rr(me,xt)&&mn(xt)===Le?Ue(Lt):Bm.none("in same cell"):ms(Z4,[xt,Lt]).fold(()=>Gb(I,Lt,xt)?Bm.success():Ue(Lt),Jt=>Ue(Lt)))).getOr(Bm.none("default")),cata:(I,W,te,me,Le)=>I.fold(W,te,me,Le)},f$=(I,W,te,me)=>({parent:I,children:W,element:te,index:me}),Ih=I=>ro(I).bind(W=>{const te=St(W);return OT(te,I).map(me=>f$(W,te,I,me))}),OT=(I,W)=>ye(I,S(rr,W)),Zb=Ze("br"),Hm=(I,W,te)=>W(I,te).bind(me=>wt(me)&&bt(me).trim().length===0?Hm(me,W,te):R.some(me)),Nl=(I,W,te)=>te.traverse(W).orThunk(()=>Hm(W,te.gather,I)).map(te.relative),kv=(I,W)=>kt(I,W).filter(Zb).orThunk(()=>kt(I,W-1).filter(Zb)),R1=(I,W,te,me)=>kv(W,te).bind(Le=>me.traverse(Le).fold(()=>Hm(Le,me.gather,I).map(me.relative),Ue=>Ih(Ue).map(nt=>fl.on(nt.parent,nt.index)))),Av=(I,W,te,me)=>(Zb(W)?Nl(I,W,me):R1(I,W,te,me)).map(Ue=>({start:Ue,finish:Ue})),Jw=I=>gi.cata(I,W=>R.none(),()=>R.none(),W=>R.some(Kp(W,0)),W=>R.some(Kp(W,mn(W)))),Mv=(I,W)=>({left:I.left,top:I.top+W,right:I.right,bottom:I.bottom+W}),qg=(I,W)=>({left:I.left,top:I.top-W,right:I.right,bottom:I.bottom-W}),nd=(I,W,te)=>({left:I.left+W,top:I.top+te,right:I.right+W,bottom:I.bottom+te}),j4=I=>I.top,Y4=I=>I.bottom,zm=(I,W,te)=>te>=0&&te0?I.getRangedRect(W,te-1,W,te):R.none(),Ev=I=>({left:I.left,top:I.top,right:I.right,bottom:I.bottom}),jb=(I,W)=>R.some(I.getRect(W)),Bd=(I,W,te)=>ft(W)?jb(I,W).map(Ev):wt(W)?zm(I,W,te).map(Ev):R.none(),Qw=(I,W)=>ft(W)?jb(I,W).map(Ev):wt(W)?I.getRangedRect(W,0,W,mn(W)).map(Ev):R.none(),dl=5,Nh=100,Tf=nu.generate([{none:[]},{retry:["caret"]}]),_v=(I,W)=>I.leftW.right,ic=(I,W,te)=>li(W,Rb).fold(M,me=>Qw(I,me).exists(Le=>_v(te,Le))),Nc=(I,W,te,me,Le)=>{const Ue=Mv(Le,dl);return Math.abs(te.bottom-me.bottom)<1||te.top>Le.bottom?Tf.retry(Ue):te.top===Le.bottom?Tf.retry(Mv(Le,1)):ic(I,W,Le)?Tf.retry(nd(Ue,dl,0)):Tf.none()},kf={point:j4,adjuster:(I,W,te,me,Le)=>{const Ue=qg(Le,dl);return Math.abs(te.top-me.top)<1||te.bottomI.elementFromPoint(W,te).filter(me=>Cn(me)==="table").isSome(),ep=(I,W,te,me,Le)=>qw(I,W,te,W.move(me,dl),Le),qw=(I,W,te,me,Le)=>Le===0?R.some(me):Mu(I,me.left,W.point(me))?ep(I,W,te,me,Le-1):I.situsFromPoint(me.left,W.point(me)).bind(Ue=>Ue.start.fold(R.none,nt=>Qw(I,nt).bind(xt=>W.adjuster(I,nt,xt,te,me).fold(R.none,Lt=>qw(I,W,te,Lt,Le-1))).orThunk(()=>R.some(me)),R.none)),K4=(I,W,te)=>I.point(W)>te.getInnerHeight()?R.some(I.point(W)-te.getInnerHeight()):I.point(W)<0?R.some(-I.point(W)):R.none(),PT=(I,W,te)=>{const me=I.move(te,dl),Le=qw(W,I,te,me,Nh).getOr(me);return K4(I,Le,W).fold(()=>W.situsFromPoint(Le.left,I.point(Le)),Ue=>(W.scrollBy(0,Ue),W.situsFromPoint(Le.left,I.point(Le)-Ue)))},L1={tryUp:S(PT,kf),tryDown:S(PT,Yb),getJumpSize:C(dl)},IT=20,D1=(I,W,te)=>I.getSelection().bind(me=>Av(W,me.finish,me.foffset,te).fold(()=>R.some(Kp(me.finish,me.foffset)),Le=>{const Ue=I.fromSitus(Le),nt=gi.verify(I,me.finish,me.foffset,Ue.finish,Ue.foffset,te.failure,W);return Jw(nt)})),Kb=(I,W,te,me,Le,Ue)=>Ue===0?R.none():J4(I,W,te,me,Le).bind(nt=>{const xt=I.fromSitus(nt),Lt=gi.verify(I,te,me,xt.finish,xt.foffset,Le.failure,W);return gi.cata(Lt,()=>R.none(),()=>R.some(nt),Jt=>rr(te,Jt)&&me===0?X4(I,te,me,qg,Le):Kb(I,W,Jt,0,Le,Ue-1),Jt=>rr(te,Jt)&&me===mn(Jt)?X4(I,te,me,Mv,Le):Kb(I,W,Jt,mn(Jt),Le,Ue-1))}),X4=(I,W,te,me,Le)=>Bd(I,W,te).bind(Ue=>NT(I,Le,me(Ue,L1.getJumpSize()))),NT=(I,W,te)=>{const me=$g().browser;return me.isChromium()||me.isSafari()||me.isFirefox()?W.retry(I,te):R.none()},J4=(I,W,te,me,Le)=>Bd(I,te,me).bind(Ue=>NT(I,Le,Ue)),d$=(I,W,te)=>D1(I,W,te).bind(me=>Kb(I,W,me.element,me.offset,te,IT).map(I.fromSitus)),FT=(I,W)=>DT(I,te=>ro(te).exists(me=>rr(me,W))),va=(I,W,te,me,Le)=>Bs(me,"td,th",W).bind(Ue=>Bs(Ue,"table",W).bind(nt=>FT(Le,nt)?d$(I,W,te).bind(xt=>Bs(xt.finish,"td,th",W).map(Lt=>({start:Ue,finish:Lt,range:xt}))):R.none())),rd=(I,W,te,me,Le,Ue)=>Ue(me,W).orThunk(()=>va(I,W,te,me,Le).map(nt=>{const xt=nt.range;return xv.create(R.some(k1(xt.start,xt.soffset,xt.finish,xt.foffset)),!0)})),tp=(I,W)=>Bs(I,"tr",W).bind(te=>Bs(te,"table",W).bind(me=>{const Le=Mi(me,"tr");return rr(te,Le[0])?_1(me,Ue=>Mn(Ue).isSome(),W).map(Ue=>{const nt=mn(Ue);return xv.create(R.some(k1(Ue,nt,Ue,nt)),!0)}):R.none()})),eC=(I,W)=>Bs(I,"tr",W).bind(te=>Bs(te,"table",W).bind(me=>{const Le=Mi(me,"tr");return rr(te,Le[Le.length-1])?Kw(me,Ue=>Rn(Ue).isSome(),W).map(Ue=>xv.create(R.some(k1(Ue,0,Ue,0)),!0)):R.none()})),BT=(I,W,te,me,Le,Ue,nt)=>va(I,te,me,Le,Ue).bind(xt=>Cv(W,te,xt.start,xt.finish,nt)),$1=I=>{let W=I;return{get:()=>W,set:Le=>{W=Le}}},Q4=I=>{const W=$1(R.none()),te=()=>W.get().each(I);return{clear:()=>{te(),W.set(R.none())},isSet:()=>W.get().isSome(),get:()=>W.get(),set:xt=>{te(),W.set(R.some(xt))}}},Rv=()=>{const I=Q4(g);return{...I,on:te=>I.get().each(te)}},Xb=(I,W)=>Bs(I,"td,th",W),Eu=I=>vo(I).exists(Kf),mH=(I,W,te,me)=>{const Le=Rv(),Ue=Le.clear,nt=Tn=>{Le.on(sr=>{me.clearBeforeUpdate(W),Xb(Tn.target,te).each(Dr=>{xf(sr,Dr,te).each(Rr=>{const Jn=Rr.boxes.getOr([]);if(Jn.length===1){const Or=Jn[0],Kn=Q0(Or)==="false",oo=df(Th(Tn.target),Or,rr);Kn&&oo&&(me.selectRange(W,Jn,Or,Or),I.selectContents(Or))}else Jn.length>1&&(me.selectRange(W,Jn,Rr.start,Rr.finish),I.selectContents(Dr))})})})};return{clearstate:Ue,mousedown:Tn=>{me.clear(W),Xb(Tn.target,te).filter(Eu).each(Le.set)},mouseover:Tn=>{nt(Tn)},mouseup:Tn=>{nt(Tn),Ue()}}},Jb={traverse:De,gather:Tv,relative:fl.before,retry:L1.tryDown,failure:gi.failedDown},Lv={traverse:He,gather:Yw,relative:fl.before,retry:L1.tryUp,failure:gi.failedUp},Vm=I=>W=>W===I,Qb=Vm(38),qb=Vm(40),np=I=>I>=37&&I<=40,q4={isBackward:Vm(37),isForward:Vm(39)},HT={isBackward:Vm(39),isForward:Vm(37)},e_=I=>{const W=I!==void 0?I.dom:document,te=W.body.scrollLeft||W.documentElement.scrollLeft,me=W.body.scrollTop||W.documentElement.scrollTop;return pu(te,me)},Dv=(I,W,te)=>{const Le=(te!==void 0?te.dom:document).defaultView;Le&&Le.scrollBy(I,W)},Fh=nu.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),t_=I=>Fh.exact(I.start,I.soffset,I.finish,I.foffset),n_=I=>I.match({domRange:W=>zt.fromDom(W.startContainer),relative:(W,te)=>fl.getStart(W),exact:(W,te,me,Le)=>W}),zT=Fh.domRange,tC=Fh.relative,nC=Fh.exact,rC=I=>{const W=n_(I);return wr(W)},ex=wv.create,Um={domRange:zT,relative:tC,exact:nC,exactFromRange:t_,getWin:rC,range:ex},VT=(I,W,te)=>{var me,Le;return R.from((Le=(me=I.dom).caretPositionFromPoint)===null||Le===void 0?void 0:Le.call(me,W,te)).bind(Ue=>{if(Ue.offsetNode===null)return R.none();const nt=I.dom.createRange();return nt.setStart(Ue.offsetNode,Ue.offset),nt.collapse(),R.some(nt)})},O1=(I,W,te)=>{var me,Le;return R.from((Le=(me=I.dom).caretRangeFromPoint)===null||Le===void 0?void 0:Le.call(me,W,te))},oC=(()=>document.caretPositionFromPoint?VT:document.caretRangeFromPoint?O1:R.none)(),r_=(I,W,te)=>{const me=zt.fromDom(I.document);return oC(me,W,te).map(Le=>wv.create(zt.fromDom(Le.startContainer),Le.startOffset,zt.fromDom(Le.endContainer),Le.endOffset))},P1=(I,W)=>{const te=Cn(I);return te==="input"?fl.after(I):ee(["br","img"],te)?W===0?fl.before(I):fl.after(I):fl.on(I,W)},o_=(I,W)=>{const te=I.fold(fl.before,P1,fl.after),me=W.fold(fl.before,P1,fl.after);return Um.relative(te,me)},Fr=(I,W,te,me)=>{const Le=P1(I,W),Ue=P1(te,me);return Um.relative(Le,Ue)},Fi=(I,W,te,me)=>{const Ue=Ln(I).dom.createRange();return Ue.setStart(I.dom,W),Ue.setEnd(te.dom,me),Ue},Bh=(I,W,te,me)=>{const Le=Fi(I,W,te,me),Ue=rr(I,te)&&W===me;return Le.collapsed&&!Ue},Si=I=>R.from(I.getSelection()),nf=(I,W)=>{Si(I).each(te=>{te.removeAllRanges(),te.addRange(W)})},tx=(I,W,te,me,Le)=>{const Ue=S1(I,W,te,me,Le);nf(I,Ue)},I1=(I,W,te,me,Le,Ue)=>{W.collapse(te.dom,me),W.extend(Le.dom,Ue)},od=(I,W)=>ET(I,W).match({ltr:(te,me,Le,Ue)=>{tx(I,te,me,Le,Ue)},rtl:(te,me,Le,Ue)=>{Si(I).each(nt=>{if(nt.setBaseAndExtent)nt.setBaseAndExtent(te.dom,me,Le.dom,Ue);else if(nt.extend)try{I1(I,nt,te,me,Le,Ue)}catch{tx(I,Le,Ue,te,me)}else tx(I,Le,Ue,te,me)})}}),nx=(I,W,te,me,Le)=>{const Ue=Fr(W,te,me,Le);od(I,Ue)},rx=(I,W,te)=>{const me=o_(W,te);od(I,me)},$v=I=>{if(I.rangeCount>0){const W=I.getRangeAt(0),te=I.getRangeAt(I.rangeCount-1);return R.some(wv.create(zt.fromDom(W.startContainer),W.startOffset,zt.fromDom(te.endContainer),te.endOffset))}else return R.none()},UT=I=>{if(I.anchorNode===null||I.focusNode===null)return $v(I);{const W=zt.fromDom(I.anchorNode),te=zt.fromDom(I.focusNode);return Bh(W,I.anchorOffset,te,I.focusOffset)?R.some(wv.create(W,I.anchorOffset,te,I.focusOffset)):$v(I)}},N1=(I,W,te=!0)=>{const Le=(te?TT:Vb)(I,W);nf(I,Le)},aC=I=>Si(I).filter(W=>W.rangeCount>0).bind(UT),sC=I=>aC(I).map(W=>Um.exact(W.start,W.soffset,W.finish,W.foffset)),a_=(I,W)=>{const te=Uw(I,W);return U4(te)},ad=(I,W,te)=>r_(I,W,te),ox=I=>{Si(I).each(W=>W.removeAllRanges())},Ov=I=>({elementFromPoint:(Kn,oo)=>zt.fromPoint(zt.fromDom(I.document),Kn,oo),getRect:Kn=>Kn.dom.getBoundingClientRect(),getRangedRect:(Kn,oo,Ro,Qo)=>{const _s=Um.exact(Kn,oo,Ro,Qo);return a_(I,_s)},getSelection:()=>sC(I).map(Kn=>Ww(I,Kn)),fromSitus:Kn=>{const oo=Um.relative(Kn.start,Kn.finish);return Ww(I,oo)},situsFromPoint:(Kn,oo)=>ad(I,Kn,oo).map(Ro=>_T.create(Ro.start,Ro.soffset,Ro.finish,Ro.foffset)),clearSelection:()=>{ox(I)},collapseSelection:(Kn=!1)=>{sC(I).each(oo=>oo.fold(Ro=>Ro.collapse(Kn),(Ro,Qo)=>{const _s=Kn?Ro:Qo;rx(I,_s,_s)},(Ro,Qo,_s,Ji)=>{const si=Kn?Ro:_s,Bc=Kn?Qo:Ji;nx(I,si,Bc,si,Bc)}))},setSelection:Kn=>{nx(I,Kn.start,Kn.soffset,Kn.finish,Kn.foffset)},setRelativeSelection:(Kn,oo)=>{rx(I,Kn,oo)},selectNode:Kn=>{N1(I,Kn,!1)},selectContents:Kn=>{N1(I,Kn)},getInnerHeight:()=>I.innerHeight,getScrollY:()=>e_(zt.fromDom(I.document)).top,scrollBy:(Kn,oo)=>{Dv(Kn,oo,zt.fromDom(I.document))}}),El=(I,W)=>({rows:I,cols:W}),$i=(I,W,te,me)=>{const Le=Ov(I),Ue=mH(Le,W,te,me);return{clearstate:Ue.clearstate,mousedown:Ue.mousedown,mouseover:Ue.mouseover,mouseup:Ue.mouseup}},ax=I=>li(I,lt).exists(Kf),F1=(I,W)=>ax(I)||ax(W),sx=(I,W,te,me)=>{const Le=Ov(I),Ue=()=>(me.clear(W),R.none());return{keydown:(Lt,Jt,Tn,sr,Dr,Rr)=>{const Jn=Lt.raw,Or=Jn.which,Kn=Jn.shiftKey===!0;return Mh(W,me.selectedSelector).fold(()=>(np(Or)&&!Kn&&me.clearBeforeUpdate(W),np(Or)&&Kn&&!F1(Jt,sr)?R.none:qb(Or)&&Kn?S(BT,Le,W,te,Jb,sr,Jt,me.selectRange):Qb(Or)&&Kn?S(BT,Le,W,te,Lv,sr,Jt,me.selectRange):qb(Or)?S(rd,Le,te,Jb,sr,Jt,eC):Qb(Or)?S(rd,Le,te,Lv,sr,Jt,tp):R.none),Ro=>{const Qo=_s=>()=>se(_s,si=>G4(si.rows,si.cols,W,Ro,me)).fold(()=>zg(W,me.firstSelectedSelector,me.lastSelectedSelector).map(si=>{const Bc=qb(Or)||Rr.isForward(Or)?fl.after:fl.before;return Le.setRelativeSelection(fl.on(si.first,0),Bc(si.table)),me.clear(W),xv.create(R.none(),!0)}),si=>R.some(xv.create(R.none(),!0)));return np(Or)&&Kn&&!F1(Jt,sr)?R.none:qb(Or)&&Kn?Qo([El(1,0)]):Qb(Or)&&Kn?Qo([El(-1,0)]):Rr.isBackward(Or)&&Kn?Qo([El(0,-1),El(-1,0)]):Rr.isForward(Or)&&Kn?Qo([El(0,1),El(1,0)]):np(Or)&&!Kn?Ue:R.none})()},keyup:(Lt,Jt,Tn,sr,Dr)=>Mh(W,me.selectedSelector).fold(()=>{const Rr=Lt.raw,Jn=Rr.which;return Rr.shiftKey===!0&&np(Jn)&&F1(Jt,sr)?Ub(W,te,Jt,Tn,sr,Dr,me.selectRange):R.none()},R.none)}},B1=(I,W,te,me)=>{const Le=Ov(I);return(Ue,nt)=>{me.clearBeforeUpdate(W),xf(Ue,nt,te).each(xt=>{const Lt=xt.boxes.getOr([]);me.selectRange(W,Lt,xt.start,xt.finish),Le.selectContents(nt),Le.collapseSelection()})}},H1=(I,W)=>{const te=Et(I,W);return te===void 0||te===""?[]:te.split(" ")},Pv=(I,W,te)=>{const Le=H1(I,W).concat([te]);return ht(I,W,Le.join(" ")),!0},WT=(I,W,te)=>{const me=Se(H1(I,W),Le=>Le!==te);return me.length>0?ht(I,W,me.join(" ")):tn(I,W),!1},z1=I=>I.dom.classList!==void 0,GT=I=>H1(I,"class"),ZT=(I,W)=>Pv(I,"class",W),jT=(I,W)=>WT(I,"class",W),rf=(I,W)=>{z1(I)?I.dom.classList.add(W):ZT(I,W)},Fl=I=>{(z1(I)?I.dom.classList:GT(I)).length===0&&tn(I,"class")},Af=(I,W)=>{z1(I)?I.dom.classList.remove(W):jT(I,W),Fl(I)},Fc=(I,W)=>z1(I)&&I.dom.classList.contains(W),V1=(I,W)=>{Q(W,te=>{Af(I,te)})},ix=I=>W=>{rf(W,I)},YT=I=>W=>{V1(W,I)},Hh={byClass:I=>{const W=ix(I.selected),te=YT([I.selected,I.lastSelected,I.firstSelected]),me=Ue=>{const nt=Mi(Ue,I.selectedSelector);Q(nt,te)};return{clearBeforeUpdate:me,clear:me,selectRange:(Ue,nt,xt,Lt)=>{me(Ue),Q(nt,W),rf(xt,I.firstSelected),rf(Lt,I.lastSelected)},selectedSelector:I.selectedSelector,firstSelectedSelector:I.firstSelectedSelector,lastSelectedSelector:I.lastSelectedSelector}},byAttr:(I,W,te)=>{const me=Lt=>{tn(Lt,I.selected),tn(Lt,I.firstSelected),tn(Lt,I.lastSelected)},Le=Lt=>{ht(Lt,I.selected,"1")},Ue=Lt=>{nt(Lt),te()},nt=Lt=>{const Jt=Mi(Lt,`${I.selectedSelector},${I.firstSelectedSelector},${I.lastSelectedSelector}`);Q(Jt,me)};return{clearBeforeUpdate:nt,clear:Ue,selectRange:(Lt,Jt,Tn,sr)=>{Ue(Lt),Q(Jt,Le),ht(Tn,I.firstSelected,"1"),ht(sr,I.lastSelected,"1"),W(Jt,Tn,sr)},selectedSelector:I.selectedSelector,firstSelectedSelector:I.firstSelectedSelector,lastSelectedSelector:I.lastSelectedSelector}}},W1=(I,W,te,me)=>{switch(I.tag){case"none":return W();case"single":return me(I.element);case"multiple":return te(I.elements)}},iC=()=>({tag:"none"}),KT=I=>({tag:"multiple",elements:I}),XT=I=>({tag:"single",element:I}),lC=(I,W,te)=>({get:()=>K2(I(),te).fold(()=>W().fold(iC,XT),KT)}),lx=(I,W)=>{const te=I.slice(0,W[W.length-1].row+1),me=Us(te);return $e(me,Le=>{const Ue=Le.cells.slice(0,W[W.length-1].column+1);return ae(Ue,nt=>nt.element)})},gs=(I,W)=>{const te=I.slice(W[0].row+W[0].rowspan-1,I.length),me=Us(te);return $e(me,Le=>{const Ue=Le.cells.slice(W[0].column+W[0].colspan-1,Le.cells.length);return ae(Ue,nt=>nt.element)})},zh=(I,W,te)=>{const me=aa.fromTable(I);return Mm(me,W).map(Ue=>{const nt=tv(me,te,!1),{rows:xt}=_i(nt),Lt=lx(xt,Ue),Jt=gs(xt,Ue);return{upOrLeftCells:Lt,downOrRightCells:Jt}})},JT=(I,W,te,me,Le,Ue,nt)=>({target:I,x:W,y:te,stop:me,prevent:Le,kill:Ue,raw:nt}),cC=I=>{const W=zt.fromDom(Lr(I).getOr(I.target)),te=()=>I.stopPropagation(),me=()=>I.preventDefault(),Le=v(me,te);return JT(W,I.clientX,I.clientY,te,me,Le,I)},uC=(I,W)=>te=>{I(te)&&W(cC(te))},rp=(I,W,te,me,Le)=>{const Ue=uC(te,me);return I.dom.addEventListener(W,Ue,Le),{unbind:S(dC,I,W,Ue,Le)}},fC=(I,W,te,me)=>rp(I,W,te,me,!1),dC=(I,W,te,me)=>{I.dom.removeEventListener(W,te,me)},i_=k,Iv=(I,W,te)=>fC(I,W,i_,te),Nv=cC,hC=I=>!Fc(zt.fromDom(I.target),"ephox-snooker-resizer-bar"),mC=(I,W)=>{const te=lC(()=>zt.fromDom(I.getBody()),()=>a1(Cu(I),Md(I)),Vg.selectedSelector),me=(Lt,Jt,Tn)=>{Kl(Jt).each(Dr=>{const Rr=xi(I),Jn=Ha(g,zt.fromDom(I.getDoc()),Rr),Or=ef(I),Kn=zh(Dr,{selection:Or},Jn);p4(I,Lt,Jt,Tn,Kn)})},Le=()=>v4(I),Ue=Hh.byAttr(Vg,me,Le);return I.on("init",Lt=>{const Jt=I.getWin(),Tn=ob(I),sr=Md(I),Dr=()=>{const ls=I.selection,lc=zt.fromDom(ls.getStart()),_l=zt.fromDom(ls.getEnd());ms(Kl,[lc,_l]).fold(()=>Ue.clear(Tn),g)},Rr=$i(Jt,Tn,sr,Ue),Jn=sx(Jt,Tn,sr,Ue),Or=B1(Jt,Tn,sr,Ue),Kn=ls=>ls.raw.shiftKey===!0;I.on("TableSelectorChange",ls=>Or(ls.start,ls.finish));const oo=(ls,lc)=>{Kn(ls)&&(lc.kill&&ls.kill(),lc.selection.each(_l=>{const Lu=Um.relative(_l.start,_l.finish),au=Uw(Jt,Lu);I.selection.setRng(au)}))},Ro=ls=>{const lc=Nv(ls);if(lc.raw.shiftKey&&np(lc.raw.which)){const _l=I.selection.getRng(),Lu=zt.fromDom(_l.startContainer),au=zt.fromDom(_l.endContainer);Jn.keyup(lc,Lu,_l.startOffset,au,_l.endOffset).each(jm=>{oo(lc,jm)})}},Qo=ls=>{const lc=Nv(ls);W.hide();const _l=I.selection.getRng(),Lu=zt.fromDom(_l.startContainer),au=zt.fromDom(_l.endContainer),jm=B2(q4,HT)(zt.fromDom(I.selection.getStart()));Jn.keydown(lc,Lu,_l.startOffset,au,_l.endOffset,jm).each(Tc=>{oo(lc,Tc)}),W.show()},_s=ls=>ls.button===0,Ji=ls=>ls.buttons===void 0?!0:(ls.buttons&1)!==0,si=ls=>{Rr.clearstate()},Bc=ls=>{_s(ls)&&hC(ls)&&Rr.mousedown(Nv(ls))},ap=ls=>{Ji(ls)&&hC(ls)&&Rr.mouseover(Nv(ls))},sp=ls=>{_s(ls)&&hC(ls)&&Rr.mouseup(Nv(ls))},mx=(()=>{const ls=$1(zt.fromDom(Tn)),lc=$1(0);return{touchEnd:Lu=>{const au=zt.fromDom(Lu.target);if(Ze("td")(au)||Ze("th")(au)){const jm=ls.get(),Tc=lc.get();rr(jm,au)&&Lu.timeStamp-Tc<300&&(Lu.preventDefault(),Or(au,au))}ls.set(au),lc.set(Lu.timeStamp)}}})();I.on("dragstart",si),I.on("mousedown",Bc),I.on("mouseover",ap),I.on("mouseup",sp),I.on("touchend",mx.touchEnd),I.on("keyup",Ro),I.on("keydown",Qo),I.on("NodeChange",Dr)}),I.on("PreInit",()=>{I.serializer.addTempAttr(Vg.firstSelected),I.serializer.addTempAttr(Vg.lastSelected)}),{getSelectedCells:()=>W1(te.get(),C([]),Lt=>ae(Lt,Jt=>Jt.dom),Lt=>[Lt.dom]),clearSelectedCells:Lt=>Ue.clear(zt.fromDom(Lt))}},Mf=I=>{let W=[];return{bind:Ue=>{if(Ue===void 0)throw new Error("Event bind error: undefined handler");W.push(Ue)},unbind:Ue=>{W=Se(W,nt=>nt!==Ue)},trigger:(...Ue)=>{const nt={};Q(I,(xt,Lt)=>{nt[xt]=Ue[Lt]}),Q(W,xt=>{xt(nt)})}}},Wm=I=>{const W=Te(I,me=>({bind:me.bind,unbind:me.unbind})),te=Te(I,me=>me.trigger);return{registry:W,trigger:te}},l_=(I,W)=>{let te=null;const me=()=>{m(te)||(clearTimeout(te),te=null)};return{cancel:me,throttle:(...Ue)=>{me(),te=setTimeout(()=>{te=null,I.apply(null,Ue)},W)}}},G1=I=>I.slice(0).sort(),c_=(I,W)=>{throw new Error("All required keys ("+G1(I).join(", ")+") were not specified. Specified keys were: "+G1(W).join(", ")+".")},ou=I=>{throw new Error("Unsupported keys for object: "+G1(I).join(", "))},Bl=(I,W)=>{if(!s(W))throw new Error("The "+I+" fields must be an array. Was: "+W+".");Q(W,te=>{if(!L(te))throw new Error("The value "+te+" in the "+I+" fields was not a string.")})},op=(I,W)=>{throw new Error("All values need to be of type: "+W+". Keys ("+G1(I).join(", ")+") were not.")},h$=I=>{const W=G1(I);X(W,(me,Le)=>Le{throw new Error("The field: "+me+" occurs more than once in the combined fields: ["+W.join(", ")+"].")})},QT=(I,W)=>u_(I,W,{validate:u,label:"function"}),u_=(I,W,te)=>{if(W.length===0)throw new Error("You must specify at least one required field.");return Bl("required",W),h$(W),me=>{const Le=ue(me);ke(W,xt=>ee(Le,xt))||c_(W,Le),I(W,Le);const nt=Se(W,xt=>!te.validate(me[xt],xt));return nt.length>0&&op(nt,te.label),me}},da=(I,W)=>{const te=Se(W,me=>!ee(I,me));te.length>0&&ou(te)},gC=I=>QT(da,I),qT=gC(["compare","extract","mutate","sink"]),pC=gC(["element","start","stop","destroy"]),f_=gC(["forceDrop","drop","move","delayDrop"]),d_=()=>{let I=R.none();const W=()=>{I=R.none()},te=(Ue,nt)=>{const xt=I.map(Lt=>Ue.compare(Lt,nt));return I=R.some(nt),xt},me=(Ue,nt)=>{nt.extract(Ue).each(Lt=>{te(nt,Lt).each(Tn=>{Le.trigger.move(Tn)})})},Le=Wm({move:Mf(["info"])});return{onEvent:me,reset:W,events:Le.registry}},ek=()=>{const I=Wm({move:Mf(["info"])});return{onEvent:g,reset:g,events:I.registry}},h_=()=>{const I=ek(),W=d_();let te=I;return{on:()=>{te.reset(),te=W},off:()=>{te.reset(),te=I},isOn:()=>te===W,onEvent:(xt,Lt)=>{te.onEvent(xt,Lt)},events:W.events}},Wr=(I,W,te)=>{let me=!1;const Le=Wm({start:Mf([]),stop:Mf([])}),Ue=h_(),nt=()=>{Jn.stop(),Ue.isOn()&&(Ue.off(),Le.trigger.stop())},xt=l_(nt,200),Lt=Kn=>{Jn.start(Kn),Ue.on(),Le.trigger.start()},Jt=Kn=>{xt.cancel(),Ue.onEvent(Kn,W)};Ue.events.move.bind(Kn=>{W.mutate(I,Kn.info)});const Tn=()=>{me=!0},sr=()=>{me=!1},Dr=()=>me,Rr=Kn=>(...oo)=>{me&&Kn.apply(null,oo)},Jn=W.sink(f_({forceDrop:nt,drop:Rr(nt),move:Rr(Jt),delayDrop:Rr(xt.throttle)}),te),Or=()=>{Jn.destroy()};return{element:Jn.element,go:Lt,on:Tn,off:sr,isActive:Dr,destroy:Or,events:Le.registry}},Gm=I=>{const W=I.replace(/\./g,"-");return{resolve:me=>W+"-"+me}},Z1=Gm("ephox-dragster").resolve,j1=I=>{const W={layerClass:Z1("blocker"),...I},te=zt.fromTag("div");return ht(te,"role","presentation"),sl(te,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),rf(te,Z1("blocker")),rf(te,W.layerClass),{element:C(te),destroy:()=>{bn(te)}}};var g_=qT({compare:(I,W)=>pu(W.left-I.left,W.top-I.top),extract:I=>R.some(pu(I.x,I.y)),sink:(I,W)=>{const te=j1(W),me=Iv(te.element(),"mousedown",I.forceDrop),Le=Iv(te.element(),"mouseup",I.drop),Ue=Iv(te.element(),"mousemove",I.move),nt=Iv(te.element(),"mouseout",I.delayDrop),xt=()=>{te.destroy(),Le.unbind(),Ue.unbind(),nt.unbind(),me.unbind()},Lt=Tn=>{_t(Tn,te.element())},Jt=()=>{bn(te.element())};return pC({element:te.element,start:Lt,stop:Jt,destroy:xt})},mutate:(I,W)=>{I.mutate(W.left,W.top)}});const nk=(I,W={})=>{var te;const me=(te=W.mode)!==null&&te!==void 0?te:g_;return Wr(I,me,W)},Vh=Gm("ephox-snooker").resolve,rk=()=>{const I=Wm({drag:Mf(["xDelta","yDelta"])});return{mutate:(te,me)=>{I.trigger.drag(te,me)},events:I.registry}},p_=()=>{const I=Wm({drag:Mf(["xDelta","yDelta","target"])});let W=R.none();const te=rk();return te.events.drag.bind(Ue=>{W.each(nt=>{I.trigger.drag(Ue.xDelta,Ue.yDelta,nt)})}),{assign:Ue=>{W=R.some(Ue)},get:()=>W,mutate:te.mutate,events:I.registry}},Y1=(I,W,te,me,Le)=>{const Ue=zt.fromTag("div");return sl(Ue,{position:"absolute",left:W-me/2+"px",top:te+"px",height:Le+"px",width:me+"px"}),pt(Ue,{"data-column":I,role:"presentation"}),Ue},v_=(I,W,te,me,Le)=>{const Ue=zt.fromTag("div");return sl(Ue,{position:"absolute",left:W+"px",top:te-Le/2+"px",height:Le+"px",width:me+"px"}),pt(Ue,{"data-row":I,role:"presentation"}),Ue},ok=Vh("resizer-bar"),vC=Vh("resizer-rows"),ak=Vh("resizer-cols"),cx=7,y_=(I,W)=>$e(I.all,(te,me)=>W(te.element)?[me]:[]),b_=(I,W)=>{const te=[];return K(I.grid.columns,me=>{aa.getColumnAt(I,me).map(Ue=>Ue.element).forall(W)&&te.push(me)}),Se(te,me=>{const Le=aa.filterItems(I,Ue=>Ue.column===me);return ke(Le,Ue=>W(Ue.element))})},Fv=I=>{const W=Mi(I.parent(),"."+ok);Q(W,bn)},yC=(I,W,te)=>{const me=I.origin();Q(W,Le=>{Le.each(Ue=>{const nt=te(me,Ue);rf(nt,ok),_t(I.parent(),nt)})})},sk=(I,W,te,me)=>{yC(I,W,(Le,Ue)=>{const nt=Y1(Ue.col,Ue.x-Le.left,te.top-Le.top,cx,me);return rf(nt,ak),nt})},x_=(I,W,te,me)=>{yC(I,W,(Le,Ue)=>{const nt=v_(Ue.row,te.left-Le.left,Ue.y-Le.top,me,cx);return rf(nt,vC),nt})},w_=(I,W,te,me,Le)=>{const Ue=Jc(te),nt=W.isResizable,xt=me.length>0?Gr.positions(me,te):[],Lt=xt.length>0?y_(I,nt):[],Jt=Se(xt,(Rr,Jn)=>J(Lt,Or=>Jn===Or));x_(W,Jt,Ue,Ku(te));const Tn=Le.length>0?oi.positions(Le,te):[],sr=Tn.length>0?b_(I,nt):[],Dr=Se(Tn,(Rr,Jn)=>J(sr,Or=>Jn===Or));sk(W,Dr,Ue,wh(te))},ux=(I,W)=>{if(Fv(I),I.isResizable(W)){const te=aa.fromTable(W),me=Ig(te),Le=bh(te);w_(te,I,W,me,Le)}},Hd=(I,W)=>{const te=Mi(I.parent(),"."+ok);Q(te,W)},fx=I=>{Hd(I,W=>{Ps(W,"display","none")})},Na=I=>{Hd(I,W=>{Ps(W,"display","block")})},C_=I=>Fc(I,vC),Uh=I=>Fc(I,ak),zd=Vh("resizer-bar-dragging"),dx=I=>{const W=p_(),te=nk(W,{});let me=R.none();const Le=(Jn,Or)=>R.from(Et(Jn,Or));W.events.drag.bind(Jn=>{Le(Jn.target,"data-row").each(Or=>{const Kn=Gu(Jn.target,"top");Ps(Jn.target,"top",Kn+Jn.yDelta+"px")}),Le(Jn.target,"data-column").each(Or=>{const Kn=Gu(Jn.target,"left");Ps(Jn.target,"left",Kn+Jn.xDelta+"px")})});const Ue=(Jn,Or)=>{const Kn=Gu(Jn,Or),oo=ws(Jn,"data-initial-"+Or,0);return Kn-oo};te.events.stop.bind(()=>{W.get().each(Jn=>{me.each(Or=>{Le(Jn,"data-row").each(Kn=>{const oo=Ue(Jn,"top");tn(Jn,"data-initial-top"),Rr.trigger.adjustHeight(Or,oo,parseInt(Kn,10))}),Le(Jn,"data-column").each(Kn=>{const oo=Ue(Jn,"left");tn(Jn,"data-initial-left"),Rr.trigger.adjustWidth(Or,oo,parseInt(Kn,10))}),ux(I,Or)})})});const nt=(Jn,Or)=>{Rr.trigger.startAdjust(),W.assign(Jn),ht(Jn,"data-initial-"+Or,Gu(Jn,Or)),rf(Jn,zd),Ps(Jn,"opacity","0.2"),te.go(I.parent())},xt=Iv(I.parent(),"mousedown",Jn=>{C_(Jn.target)&&nt(Jn.target,"top"),Uh(Jn.target)&&nt(Jn.target,"left")}),Lt=Jn=>rr(Jn,I.view()),Jt=Jn=>Bs(Jn,"table",Lt).filter(Kf),Tn=Iv(I.view(),"mouseover",Jn=>{Jt(Jn.target).fold(()=>{Ka(Jn.target)&&Fv(I)},Or=>{te.isActive()&&(me=R.some(Or),ux(I,Or))})}),sr=()=>{xt.unbind(),Tn.unbind(),te.destroy(),Fv(I)},Dr=Jn=>{ux(I,Jn)},Rr=Wm({adjustHeight:Mf(["table","delta","row"]),adjustWidth:Mf(["table","delta","column"]),startAdjust:Mf([])});return{destroy:sr,refresh:Dr,on:te.on,off:te.off,hideBars:S(fx,I),showBars:S(Na,I),events:Rr.registry}},hx={create:(I,W,te)=>{const me=Gr,Le=oi,Ue=dx(I),nt=Wm({beforeResize:Mf(["table","type"]),afterResize:Mf(["table","type"]),startDrag:Mf([])});return Ue.events.adjustHeight.bind(xt=>{const Lt=xt.table;nt.trigger.beforeResize(Lt,"row");const Jt=me.delta(xt.delta,Lt);lw(Lt,Jt,xt.row,me),nt.trigger.afterResize(Lt,"row")}),Ue.events.startAdjust.bind(xt=>{nt.trigger.startDrag()}),Ue.events.adjustWidth.bind(xt=>{const Lt=xt.table;nt.trigger.beforeResize(Lt,"col");const Jt=Le.delta(xt.delta,Lt),Tn=te(Lt);u1(Lt,Jt,xt.column,W,Tn),nt.trigger.afterResize(Lt,"col")}),{on:Ue.on,off:Ue.off,refreshBars:Ue.refresh,hideBars:Ue.hideBars,showBars:Ue.showBars,destroy:Ue.destroy,events:nt.registry}}},bC={only:(I,W)=>{const te=vt(I)?or(I):I;return{parent:C(te),view:C(I),origin:C(pu(0,0)),isResizable:W}},detached:(I,W,te)=>{const me=()=>Jc(W);return{parent:C(W),view:C(I),origin:me,isResizable:te}},body:(I,W,te)=>({parent:C(W),view:C(I),origin:C(pu(0,0)),isResizable:te})},S_=()=>{const I=zt.fromTag("div");return sl(I,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),_t(yi(),I),I},xC=(I,W)=>I.inline?bC.body(zt.fromDom(I.getBody()),S_(),W):bC.only(zt.fromDom(I.getDoc()),W),T_=(I,W)=>{I.inline&&bn(W.parent())},ya=I=>i(I)&&I.nodeName==="TABLE",Ru="bar-",Zm=I=>Et(I,"data-mce-resize")!=="false",k_=I=>{const W=aa.fromTable(I);aa.hasColumns(W)||Q(ju(I),te=>{const me=Ei(te,"width");Ps(te,"width",me),tn(te,"width")})},Hv=I=>{const W=Rv(),te=Rv(),me=Rv();let Le,Ue;const nt=Jn=>sc(I,Jn),xt=()=>Cl(I)?ew():B3(),Lt=Jn=>Jp(Jn).columns,Jt=(Jn,Or,Kn)=>{const oo=gc(Or,"e");if(Ue===""&&tf(Jn),Kn!==Le&&Ue!==""){Ps(Jn,"width",Ue);const Ro=xt(),Qo=nt(Jn),_s=Cl(I)||oo?Lt(Jn)-1:0;u1(Jn,Kn-Le,_s,Ro,Qo)}else if(ab(Ue)){const Ro=parseFloat(Ue.replace("%","")),Qo=Kn*Ro/Le;Ps(Jn,"width",Qo+"%")}q0(Ue)&&k_(Jn)},Tn=()=>{te.on(Jn=>{Jn.destroy()}),me.on(Jn=>{T_(I,Jn)})};return I.on("init",()=>{const Jn=xC(I,Zm);if(me.set(Jn),xc(I)&&Tl(I)){const Or=xt(),Kn=hx.create(Jn,Or,nt);Kn.on(),Kn.events.startDrag.bind(oo=>{W.set(I.selection.getRng())}),Kn.events.beforeResize.bind(oo=>{const Ro=oo.table.dom;Mw(I,Ro,Sm(Ro),Tm(Ro),Ru+oo.type)}),Kn.events.afterResize.bind(oo=>{const Ro=oo.table,Qo=Ro.dom;Xf(Ro),W.on(_s=>{I.selection.setRng(_s),I.focus()}),y4(I,Qo,Sm(Qo),Tm(Qo),Ru+oo.type),I.undoManager.add()}),te.set(Kn)}}),I.on("ObjectResizeStart",Jn=>{const Or=Jn.target;if(ya(Or)){const Kn=zt.fromDom(Or);Q(I.dom.select(".mce-clonedresizable"),oo=>{I.dom.addClass(oo,"mce-"+tc(I)+"-columns")}),!x1(Kn)&&Sl(I)?vv(Kn):!b1(Kn)&&qu(I)&&tf(Kn),Nb(Kn)&&Uf(Jn.origin,Ru)&&tf(Kn),Le=Jn.width,Ue=wi(I)?"":D3(I,Or).getOr("")}}),I.on("ObjectResized",Jn=>{const Or=Jn.target;if(ya(Or)){const Kn=zt.fromDom(Or),oo=Jn.origin;Uf(oo,"corner-")&&Jt(Kn,oo,Jn.width),Xf(Kn),Xg(I,Kn.dom,Oh)}}),I.on("SwitchMode",()=>{te.on(Jn=>{I.mode.isReadOnly()?Jn.hideBars():Jn.showBars()})}),I.on("dragstart dragend",Jn=>{te.on(Or=>{Jn.type==="dragstart"?(Or.hideBars(),Or.off()):(Or.on(),Or.showBars())})}),I.on("remove",()=>{Tn()}),{refresh:Jn=>{te.on(Or=>Or.refreshBars(zt.fromDom(Jn)))},hide:()=>{te.on(Jn=>Jn.hideBars())},show:()=>{te.on(Jn=>Jn.showBars())}}},_a=I=>{Di(I);const W=Hv(I),te=mC(I,W),me=Pb(I,W,te);return bv(I,me),N4(I,me),ZE(I,me),{getSelectedCells:te.getSelectedCells,clearSelectedCells:te.clearSelectedCells}},A_=I=>({table:_a(I)});var wC=()=>{o.add("dom",A_)};wC()})();(function(){const o=Object.getPrototypeOf,b=(t,a,p)=>{var E;return p(t,a.prototype)?!0:((E=t.constructor)===null||E===void 0?void 0:E.name)===a.name},y=t=>{const a=typeof t;return t===null?"null":a==="object"&&Array.isArray(t)?"array":a==="object"&&b(t,String,(p,E)=>E.isPrototypeOf(p))?"string":a},T=t=>a=>y(a)===t,G=t=>a=>typeof a===t,V=t=>a=>t===a,L=(t,a)=>s(t)&&b(t,a,(p,E)=>o(p)===E),A=T("string"),s=T("object"),m=t=>L(t,Object),h=T("array"),l=V(null),c=G("boolean"),i=V(void 0),u=t=>t==null,d=t=>!u(t),g=G("function"),v=G("number"),x=(t,a)=>{if(h(t)){for(let p=0,E=t.length;p{},_=t=>()=>t(),$=(t,a)=>(...p)=>t(a.apply(null,p)),S=(t,a)=>p=>t(a(p)),O=t=>()=>t,D=t=>t,N=(t,a)=>t===a;function M(t,...a){return(...p)=>{const E=a.concat(p);return t.apply(null,E)}}const k=t=>a=>!t(a),R=t=>()=>{throw new Error(t)},F=t=>t(),H=O(!1),j=O(!0);class P{constructor(a,p){this.tag=a,this.value=p}static some(a){return new P(!0,a)}static none(){return P.singletonNone}fold(a,p){return this.tag?p(this.value):a()}isSome(){return this.tag}isNone(){return!this.tag}map(a){return this.tag?P.some(a(this.value)):P.none()}bind(a){return this.tag?a(this.value):P.none()}exists(a){return this.tag&&a(this.value)}forall(a){return!this.tag||a(this.value)}filter(a){return!this.tag||a(this.value)?this:P.none()}getOr(a){return this.tag?this.value:a}or(a){return this.tag?this:a}getOrThunk(a){return this.tag?this.value:a()}orThunk(a){return this.tag?this:a()}getOrDie(a){if(this.tag)return this.value;throw new Error(a??"Called getOrDie on None")}static from(a){return d(a)?P.some(a):P.none()}getOrNull(){return this.tag?this.value:null}getOrUndefined(){return this.value}each(a){this.tag&&a(this.value)}toArray(){return this.tag?[this.value]:[]}toString(){return this.tag?`some(${this.value})`:"none()"}}P.singletonNone=new P(!1);const ee=Array.prototype.slice,J=Array.prototype.indexOf,K=Array.prototype.push,ae=(t,a)=>J.call(t,a),Q=(t,a)=>{const p=ae(t,a);return p===-1?P.none():P.some(p)},he=(t,a)=>ae(t,a)>-1,ge=(t,a)=>{for(let p=0,E=t.length;p{const p=[];for(let E=0;E{const p=[];for(let E=0;E{const p=t.length,E=new Array(p);for(let z=0;z{for(let p=0,E=t.length;p{for(let p=t.length-1;p>=0;p--){const E=t[p];a(E,p)}},ye=(t,a)=>{const p=[],E=[];for(let z=0,Y=t.length;z{const p=[];for(let E=0,z=t.length;E(X(t,(E,z)=>{p=a(p,E,z)}),p),ke=(t,a,p)=>(fe(t,(E,z)=>{p=a(p,E,z)}),p),Ne=(t,a,p)=>{for(let E=0,z=t.length;ENe(t,a,H),Oe=(t,a)=>{for(let p=0,E=t.length;p{const a=[];for(let p=0,E=t.length;pFe(ne(t,a)),we=(t,a)=>{for(let p=0,E=t.length;p{const a=ee.call(t,0);return a.reverse(),a},ue=(t,a)=>Ce(t,p=>!he(a,p)),pe=(t,a)=>{const p={};for(let E=0,z=t.length;E[t],Te=(t,a)=>{const p=ee.call(t,0);return p.sort(a),p},de=(t,a)=>a>=0&&ade(t,0),Re=t=>de(t,t.length-1),ze=g(Array.from)?Array.from:t=>ee.call(t),We=(t,a)=>{for(let p=0;p{const p=ot(t);for(let E=0,z=p.length;Eqe(t,(p,E)=>({k:E,v:a(p,E)})),qe=(t,a)=>{const p={};return Ge(t,(E,z)=>{const Y=a(E,z);p[Y.k]=Y.v}),p},gt=t=>(a,p)=>{t[p]=a},ut=(t,a,p,E)=>{Ge(t,(z,Y)=>{(a(z,Y)?p:E)(z,Y)})},tt=(t,a)=>{const p={},E={};return ut(t,a,gt(p),gt(E)),{t:p,f:E}},Ct=(t,a)=>{const p={};return ut(t,a,gt(p),C),p},Gt=(t,a)=>{const p=[];return Ge(t,(E,z)=>{p.push(a(E,z))}),p},Yt=(t,a)=>{const p=ot(t);for(let E=0,z=p.length;EGt(t,D),Ft=(t,a)=>pn(t,a)?P.from(t[a]):P.none(),pn=(t,a)=>dt.call(t,a),_n=(t,a)=>pn(t,a)&&t[a]!==void 0&&t[a]!==null,sn=(t,a,p=N)=>t.exists(E=>p(E,a)),Zn=(t,a,p=N)=>jn(t,a,p).getOr(t.isNone()&&a.isNone()),an=t=>{const a=[],p=E=>{a.push(E)};for(let E=0;E{const a=[];for(let p=0;pt.isSome()&&a.isSome()?P.some(p(t.getOrDie(),a.getOrDie())):P.none(),Wn=(t,a,p,E)=>t.isSome()&&a.isSome()&&p.isSome()?P.some(E(t.getOrDie(),a.getOrDie(),p.getOrDie())):P.none(),wn=(t,a)=>t!=null?P.some(a(t)):P.none(),lt=(t,a)=>t?P.some(a):P.none(),ft=(t,a)=>t+a,wt=(t,a)=>t.substring(a),vt=(t,a,p)=>a===""||t.length>=a.length&&t.substr(p,p+a.length)===a,$t=(t,a)=>ht(t,a)?wt(t,a.length):t,Ze=(t,a)=>pt(t,a)?t:ft(t,a),it=(t,a,p=0,E)=>{const z=t.indexOf(a,p);return z!==-1?i(E)?!0:z+a.length<=E:!1},ht=(t,a)=>vt(t,a,0),pt=(t,a)=>vt(t,a,t.length-a.length),Et=(t=>a=>a.replace(t,""))(/^\s+|\s+$/g),fn=t=>t.length>0,tn=t=>!fn(t),Zt=t=>t.style!==void 0&&g(t.style.getPropertyValue),Dt=(t,a)=>{const E=(a||document).createElement("div");if(E.innerHTML=t,!E.hasChildNodes()||E.childNodes.length>1){const z="HTML does not have a single root node";throw console.error(z,t),new Error(z)}return tr(E.childNodes[0])},un=(t,a)=>{const E=(a||document).createElement(t);return tr(E)},Un=(t,a)=>{const E=(a||document).createTextNode(t);return tr(E)},tr=t=>{if(t==null)throw new Error("Node cannot be null or undefined");return{dom:t}},zt={fromHtml:Dt,fromTag:un,fromText:Un,fromDom:tr,fromPoint:(t,a,p)=>P.from(t.dom.elementFromPoint(a,p)).map(tr)},pr=typeof window<"u"?window:Function("return this;")(),Gn=(t,a)=>{let p=a??pr;for(let E=0;E{const p=t.split(".");return Gn(p,a)},Tr=(t,a)=>Ir(t,a),rr=(t,a)=>{const p=Tr(t,a);if(p==null)throw new Error(t+" not available on this browser");return p},Yr=Object.getPrototypeOf,_r=t=>rr("HTMLElement",t),Ln=t=>{const a=Ir("ownerDocument.defaultView",t);return s(t)&&(_r(a).prototype.isPrototypeOf(t)||/^HTML\w*Element$/.test(Yr(t).constructor.name))},xr=9,or=11,wr=1,ro=3,vo=t=>t.dom.nodeName.toLowerCase(),Cr=t=>t.dom.nodeType,He=t=>a=>Cr(a)===t,De=t=>St(t)&&Ln(t.dom),St=He(wr),kt=He(ro),Pt=He(xr),Bt=He(or),Ut=t=>a=>St(a)&&vo(a)===t,Ot=(t,a)=>{const p=t.dom;if(p.nodeType!==wr)return!1;{const E=p;if(E.matches!==void 0)return E.matches(a);if(E.msMatchesSelector!==void 0)return E.msMatchesSelector(a);if(E.webkitMatchesSelector!==void 0)return E.webkitMatchesSelector(a);if(E.mozMatchesSelector!==void 0)return E.mozMatchesSelector(a);throw new Error("Browser lacks native selectors")}},_t=t=>t.nodeType!==wr&&t.nodeType!==xr&&t.nodeType!==or||t.childElementCount===0,qt=(t,a)=>{const p=a===void 0?document:a.dom;return _t(p)?[]:ne(p.querySelectorAll(t),zt.fromDom)},cn=(t,a)=>{const p=a===void 0?document:a.dom;return _t(p)?P.none():P.from(p.querySelector(t)).map(zt.fromDom)},Qt=(t,a)=>t.dom===a.dom,nn=(t,a)=>{const p=t.dom,E=a.dom;return p===E?!1:p.contains(E)},Sn=t=>zt.fromDom(t.dom.ownerDocument),bn=t=>Pt(t)?t:Sn(t),gn=t=>zt.fromDom(bn(t).dom.documentElement),Qn=t=>zt.fromDom(bn(t).dom.defaultView),Bn=t=>P.from(t.dom.parentNode).map(zt.fromDom),Hr=t=>Bn(t),fr=t=>P.from(t.dom.parentElement).map(zt.fromDom),Vr=(t,a)=>{const p=g(a)?a:H;let E=t.dom;const z=[];for(;E.parentNode!==null&&E.parentNode!==void 0;){const Y=E.parentNode,re=zt.fromDom(Y);if(z.push(re),p(re)===!0)break;E=Y}return z},ar=t=>P.from(t.dom.offsetParent).map(zt.fromDom),cr=t=>P.from(t.dom.nextSibling).map(zt.fromDom),Kr=t=>ne(t.dom.childNodes,zt.fromDom),qr=(t,a)=>{const p=t.dom.childNodes;return P.from(p[a]).map(zt.fromDom)},So=t=>qr(t,0),wa=(t,a)=>({element:t,offset:a}),bo=(t,a)=>{const p=Kr(t);return p.length>0&&aBt(t)&&d(t.dom.host),oa=g(Element.prototype.attachShadow)&&g(Node.prototype.getRootNode),Va=O(oa),Yo=oa?t=>zt.fromDom(t.dom.getRootNode()):bn,Fa=t=>Zo(t)?t:zt.fromDom(bn(t).dom.body),Os=t=>Zl(t).isSome(),Zl=t=>{const a=Yo(t);return Zo(a)?P.some(a):P.none()},Ys=t=>zt.fromDom(t.dom.host),Ec=t=>{if(Va()&&d(t.target)){const a=zt.fromDom(t.target);if(St(a)&&ks(a)&&t.composed&&t.composedPath){const p=t.composedPath();if(p)return Me(p)}}return P.from(t.target)},ks=t=>d(t.dom.shadowRoot),Wa=t=>{const a=kt(t)?t.dom.parentNode:t.dom;if(a==null||a.ownerDocument===null)return!1;const p=a.ownerDocument;return Zl(zt.fromDom(a)).fold(()=>p.body.contains(a),S(Wa,Ys))},ss=()=>Ya(zt.fromDom(document)),Ya=t=>{const a=t.dom.body;if(a==null)throw new Error("Body is not available yet");return zt.fromDom(a)},_c=(t,a,p)=>{if(A(p)||c(p)||v(p))t.setAttribute(a,p+"");else throw console.error("Invalid call to Attribute.set. Key ",a,":: Value ",p,":: Element ",t),new Error("Attribute value was not simple")},Lr=(t,a,p)=>{_c(t.dom,a,p)},jl=(t,a)=>{const p=t.dom;Ge(a,(E,z)=>{_c(p,z,E)})},Ka=(t,a)=>{const p=t.dom.getAttribute(a);return p===null?void 0:p},yi=(t,a)=>P.from(Ka(t,a)),Hf=(t,a)=>{const p=t.dom;return p&&p.hasAttribute?p.hasAttribute(a):!1},Xa=(t,a)=>{t.dom.removeAttribute(a)},Zc=t=>ke(t.dom.attributes,(a,p)=>(a[p.name]=p.value,a),{}),zf=(t,a,p)=>{if(!A(p))throw console.error("Invalid call to CSS.set. Property ",a,":: Value ",p,":: Element ",t),new Error("CSS value must be a string: "+p);Zt(t)&&t.style.setProperty(a,p)},jc=(t,a)=>{Zt(t)&&t.style.removeProperty(a)},To=(t,a,p)=>{const E=t.dom;zf(E,a,p)},Mi=(t,a)=>{const p=t.dom;Ge(a,(E,z)=>{zf(p,z,E)})},ur=(t,a)=>{const p=t.dom;Ge(a,(E,z)=>{E.fold(()=>{jc(p,z)},Y=>{zf(p,z,Y)})})},Ms=(t,a)=>{const p=t.dom,z=window.getComputedStyle(p).getPropertyValue(a);return z===""&&!Wa(t)?li(p,a):z},li=(t,a)=>Zt(t)?t.style.getPropertyValue(a):"",Rs=(t,a)=>{const p=t.dom,E=li(p,a);return P.from(E).filter(z=>z.length>0)},Es=t=>{const a={},p=t.dom;if(Zt(p))for(let E=0;E{const E=zt.fromTag(t);return To(E,a,p),Rs(E,a).isSome()},Bo=(t,a)=>{const p=t.dom;jc(p,a),sn(yi(t,"style").map(Et),"")&&Xa(t,"style")},Ks=t=>t.dom.offsetWidth,Bs=(t,a)=>{const p=(xe,Ee)=>{if(!v(Ee)&&!Ee.match(/^[0-9]+$/))throw new Error(t+".set accepts only positive integer values. Value was "+Ee);const Be=xe.dom;Zt(Be)&&(Be.style[t]=Ee+"px")},E=xe=>{const Ee=a(xe);if(Ee<=0||Ee===null){const Be=Ms(xe,t);return parseFloat(Be)||0}return Ee},z=E,Y=(xe,Ee)=>ke(Ee,(Be,je)=>{const et=Ms(xe,je),st=et===void 0?0:parseInt(et,10);return isNaN(st)?Be:Be+st},0);return{set:p,get:E,getOuter:z,aggregate:Y,max:(xe,Ee,Be)=>{const je=Y(xe,Be);return Ee>je?Ee-je:0}}},df=Bs("height",t=>{const a=t.dom;return Wa(t)?a.getBoundingClientRect().height:a.offsetHeight}),Ls=t=>df.get(t),cu=t=>df.getOuter(t),uu=(t,a)=>{const p=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],E=df.max(t,a,p);To(t,"max-height",E+"px")},Vf=(t,a)=>({left:t,top:a,translate:(E,z)=>Vf(t+E,a+z)}),Ma=Vf,Uf=t=>{const a=t.getBoundingClientRect();return Ma(a.left,a.top)},gc=(t,a)=>t!==void 0?t:a!==void 0?a:0,al=t=>{const a=t.dom.ownerDocument,p=a.body,E=a.defaultView,z=a.documentElement;if(p===t.dom)return Ma(p.offsetLeft,p.offsetTop);const Y=gc(E==null?void 0:E.pageYOffset,z.scrollTop),re=gc(E==null?void 0:E.pageXOffset,z.scrollLeft),xe=gc(z.clientTop,p.clientTop),Ee=gc(z.clientLeft,p.clientLeft);return wd(t).translate(re-Ee,Y-xe)},wd=t=>{const a=t.dom,E=a.ownerDocument.body;return E===a?Ma(E.offsetLeft,E.offsetTop):Wa(t)?Uf(a):Ma(0,0)},dh=Bs("width",t=>t.dom.offsetWidth),La=(t,a)=>dh.set(t,a),ci=t=>dh.get(t),Wu=t=>dh.getOuter(t),P2=(t,a)=>{const p=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],E=dh.max(t,a,p);To(t,"max-width",E+"px")},Ps=t=>{let a=!1,p;return(...E)=>(a||(a=!0,p=t.apply(null,E)),p)},sl=(t,a,p,E)=>{const z=t.isiOS()&&/ipad/i.test(p)===!0,Y=t.isiOS()&&!z,re=t.isiOS()||t.isAndroid(),xe=re||E("(pointer:coarse)"),Ee=z||!Y&&re&&E("(min-device-width:768px)"),Be=Y||re&&!Ee,je=a.isSafari()&&t.isiOS()&&/safari/i.test(p)===!1,et=!Be&&!Ee&&!je;return{isiPad:O(z),isiPhone:O(Y),isTablet:O(Ee),isPhone:O(Be),isTouch:O(xe),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:O(je),isDesktop:O(et)}},Ei=(t,a)=>{for(let p=0;p{const p=Ei(t,a);if(!p)return{major:0,minor:0};const E=z=>Number(a.replace(p,"$"+z));return fu(E(1),E(2))},Ag=(t,a)=>{const p=String(a).toLowerCase();return t.length===0?Yc():Zy(t,p)},Yc=()=>fu(0,0),fu=(t,a)=>({major:t,minor:a}),ws={nu:fu,detect:Ag,unknown:Yc},Kc=(t,a)=>We(a.brands,p=>{const E=p.brand.toLowerCase();return Ve(t,z=>{var Y;return E===((Y=z.brand)===null||Y===void 0?void 0:Y.toLowerCase())}).map(z=>({current:z.name,version:ws.nu(parseInt(p.version,10),0)}))}),il=(t,a)=>{const p=String(a).toLowerCase();return Ve(t,E=>E.search(p))},Yl=(t,a)=>il(t,a).map(p=>{const E=ws.detect(p.versionRegexes,a);return{current:p.name,version:E}}),Gu=(t,a)=>il(t,a).map(p=>{const E=ws.detect(p.versionRegexes,a);return{current:p.name,version:E}}),Xs=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Zu=t=>a=>it(a,t),Mg=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:t=>it(t,"edge/")&&it(t,"chrome")&&it(t,"safari")&&it(t,"applewebkit")},{name:"Chromium",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Xs],search:t=>it(t,"chrome")&&!it(t,"chromeframe")},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:t=>it(t,"msie")||it(t,"trident")},{name:"Opera",versionRegexes:[Xs,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Zu("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Zu("firefox")},{name:"Safari",versionRegexes:[Xs,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:t=>(it(t,"safari")||it(t,"mobile/"))&&it(t,"applewebkit")}],Eg=[{name:"Windows",search:Zu("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:t=>it(t,"iphone")||it(t,"ipad"),versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Zu("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"macOS",search:Zu("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Zu("linux"),versionRegexes:[]},{name:"Solaris",search:Zu("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Zu("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Zu("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],D0={browsers:O(Mg),oses:O(Eg)},Dp="Edge",ju="Chromium",_g="IE",Kl="Opera",$p="Firefox",$0="Safari",hh=()=>O0({current:void 0,version:ws.unknown()}),O0=t=>{const a=t.current,p=t.version,E=z=>()=>a===z;return{current:a,version:p,isEdge:E(Dp),isChromium:E(ju),isIE:E(_g),isOpera:E(Kl),isFirefox:E($p),isSafari:E($0)}},mh={unknown:hh,nu:O0,edge:O(Dp),chromium:O(ju),ie:O(_g),opera:O(Kl),firefox:O($p),safari:O($0)},jy="Windows",Cd="iOS",Yy="Android",Ky="Linux",Xy="macOS",gh="Solaris",P0="FreeBSD",jt="ChromeOS",ph=()=>du({current:void 0,version:ws.unknown()}),du=t=>{const a=t.current,p=t.version,E=z=>()=>a===z;return{current:a,version:p,isWindows:E(jy),isiOS:E(Cd),isAndroid:E(Yy),isMacOS:E(Xy),isLinux:E(Ky),isSolaris:E(gh),isFreeBSD:E(P0),isChromeOS:E(jt)}},Op={unknown:ph,nu:du,windows:O(jy),ios:O(Cd),android:O(Yy),linux:O(Ky),macos:O(Xy),solaris:O(gh),freebsd:O(P0),chromeos:O(jt)},I2={detect:(t,a,p)=>{const E=D0.browsers(),z=D0.oses(),Y=a.bind(Ee=>Kc(E,Ee)).orThunk(()=>Yl(E,t)).fold(mh.unknown,mh.nu),re=Gu(z,t).fold(Op.unknown,Op.nu),xe=sl(re,Y,t,p);return{browser:Y,os:re,deviceType:xe}}},Ba=t=>window.matchMedia(t).matches;let Dl=Ps(()=>I2.detect(navigator.userAgent,P.from(navigator.userAgentData),Ba));const hf=()=>Dl(),mf=(t,a,p,E,z,Y,re)=>({target:t,x:a,y:p,stop:E,prevent:z,kill:Y,raw:re}),I0=t=>{const a=zt.fromDom(Ec(t).getOr(t.target)),p=()=>t.stopPropagation(),E=()=>t.preventDefault(),z=$(E,p);return mf(a,t.clientX,t.clientY,p,E,z,t)},mm=(t,a)=>p=>{t(p)&&a(I0(p))},Rc=(t,a,p,E,z)=>{const Y=mm(p,E);return t.dom.addEventListener(a,Y,z),{unbind:M(Jy,t,a,Y,z)}},gm=(t,a,p,E)=>Rc(t,a,p,E,!1),N0=(t,a,p,E)=>Rc(t,a,p,E,!0),Jy=(t,a,p,E)=>{t.dom.removeEventListener(a,p,E)},hu=(t,a)=>{Bn(t).each(E=>{E.dom.insertBefore(a.dom,t.dom)})},Lg=(t,a)=>{cr(t).fold(()=>{Bn(t).each(z=>{pc(z,a)})},E=>{hu(E,a)})},F0=(t,a)=>{So(t).fold(()=>{pc(t,a)},E=>{t.dom.insertBefore(a.dom,E.dom)})},pc=(t,a)=>{t.dom.appendChild(a.dom)},zi=(t,a,p)=>{qr(t,p).fold(()=>{pc(t,a)},E=>{hu(E,a)})},Sd=(t,a)=>{fe(a,p=>{pc(t,p)})},pm=t=>{t.dom.textContent="",fe(Kr(t),a=>{Xl(a)})},Xl=t=>{const a=t.dom;a.parentNode!==null&&a.parentNode.removeChild(a)},ll=t=>{const a=t!==void 0?t.dom:document,p=a.body.scrollLeft||a.documentElement.scrollLeft,E=a.body.scrollTop||a.documentElement.scrollTop;return Ma(p,E)},mu=(t,a,p)=>{const z=(p!==void 0?p.dom:document).defaultView;z&&z.scrollTo(t,a)},Qy=t=>{const a=t===void 0?window:t;return hf().browser.isFirefox()?P.none():P.from(a.visualViewport)},Dg=(t,a,p,E)=>({x:t,y:a,width:p,height:E,right:t+p,bottom:a+E}),B0=t=>{const a=t===void 0?window:t,p=a.document,E=ll(zt.fromDom(p));return Qy(a).fold(()=>{const z=a.document.documentElement,Y=z.clientWidth,re=z.clientHeight;return Dg(E.left,E.top,Y,re)},z=>Dg(Math.max(z.pageLeft,E.left),Math.max(z.pageTop,E.top),z.width,z.height))},Pp=()=>zt.fromDom(document),Yu=(t,a)=>t.view(a).fold(O([]),E=>{const z=t.owner(E),Y=Yu(t,z);return[E].concat(Y)}),qy=(t,a)=>{const p=a.owner(t),E=Yu(a,p);return P.some(E)};var N2=Object.freeze({__proto__:null,view:t=>{var a;return(t.dom===document?P.none():P.from((a=t.dom.defaultView)===null||a===void 0?void 0:a.frameElement)).map(zt.fromDom)},owner:t=>Sn(t)});const $g=t=>{const a=Pp(),p=ll(a);return qy(t,N2).fold(M(al,t),z=>{const Y=wd(t),re=$e(z,(xe,Ee)=>{const Be=wd(Ee);return{left:xe.left+Be.left,top:xe.top+Be.top}},{left:0,top:0});return Ma(re.left+Y.left+p.left,re.top+Y.top+p.top)})},Ip=(t,a,p)=>({point:t,width:a,height:p}),Td=(t,a,p,E)=>({x:t,y:a,width:p,height:E}),Hs=(t,a,p,E)=>({x:t,y:a,width:p,height:E,right:t+p,bottom:a+E}),Js=t=>{const a=al(t),p=Wu(t),E=cu(t);return Hs(a.left,a.top,p,E)},Xc=t=>{const a=$g(t),p=Wu(t),E=cu(t);return Hs(a.left,a.top,p,E)},H0=(t,a)=>{const p=Math.max(t.x,a.x),E=Math.max(t.y,a.y),z=Math.min(t.right,a.right),Y=Math.min(t.bottom,a.bottom),re=z-p,xe=Y-E;return Hs(p,E,re,xe)},eb=(t,a)=>ke(a,(p,E)=>H0(p,E),t),bl=()=>B0(window);var vm=tinymce.util.Tools.resolve("tinymce.ThemeManager");const Jl=t=>{const a=Y=>Y(t),p=O(t),E=()=>z,z={tag:!0,inner:t,fold:(Y,re)=>re(t),isValue:j,isError:H,map:Y=>Wo.value(Y(t)),mapError:E,bind:a,exists:a,forall:a,getOr:p,or:E,getOrThunk:p,orThunk:E,getOrDie:p,each:Y=>{Y(t)},toOptional:()=>P.some(t)};return z},Ku=t=>{const a=()=>p,p={tag:!1,inner:t,fold:(E,z)=>E(t),isValue:H,isError:j,map:a,mapError:E=>Wo.error(E(t)),bind:a,exists:H,forall:j,getOr:D,or:D,getOrThunk:F,orThunk:F,getOrDie:R(String(t)),each:C,toOptional:P.none};return p},Wo={value:Jl,error:Ku,fromOption:(t,a)=>t.fold(()=>Ku(a),Jl)};var vc;(function(t){t[t.Error=0]="Error",t[t.Value=1]="Value"})(vc||(vc={}));const kd=(t,a,p)=>t.stype===vc.Error?a(t.serror):p(t.svalue),vh=t=>{const a=[],p=[];return fe(t,E=>{kd(E,z=>p.push(z),z=>a.push(z))}),{values:a,errors:p}},V0=(t,a)=>t.stype===vc.Error?{stype:vc.Error,serror:a(t.serror)}:t,U0=(t,a)=>t.stype===vc.Value?{stype:vc.Value,svalue:a(t.svalue)}:t,$l=(t,a)=>t.stype===vc.Value?a(t.svalue):t,ui=(t,a)=>t.stype===vc.Error?a(t.serror):t,Lc=t=>({stype:vc.Value,svalue:t}),_i=t=>({stype:vc.Error,serror:t}),fi={fromResult:t=>t.fold(_i,Lc),toResult:t=>kd(t,Wo.error,Wo.value),svalue:Lc,partition:vh,serror:_i,bind:$l,bindError:ui,map:U0,mapError:V0,fold:kd},Ri=(t,a,p,E)=>({tag:"field",key:t,newKey:a,presence:p,prop:E}),gu=(t,a)=>({tag:"custom",newKey:t,instantiator:a}),yh=(t,a,p)=>{switch(t.tag){case"field":return a(t.key,t.newKey,t.presence,t.prop);case"custom":return p(t.newKey,t.instantiator)}},di=(t,a)=>a,ym=(t,a)=>m(t)&&m(a)?hs(t,a):a,Og=t=>(...a)=>{if(a.length===0)throw new Error("Can't merge zero objects");const p={};for(let E=0;E({tag:"required",process:{}}),Xu=t=>({tag:"defaultedThunk",process:t}),G0=t=>Xu(O(t)),Pg=()=>({tag:"option",process:{}}),aa=t=>({tag:"mergeWithThunk",process:t}),bh=t=>aa(O(t)),Fp=(t,a)=>t.length>0?fi.svalue(hs(a,Ad.apply(void 0,t))):fi.svalue(a),Ig=t=>$(fi.serror,Fe)(t),Z0={consolidateObj:(t,a)=>{const p=fi.partition(t);return p.errors.length>0?Ig(p.errors):Fp(p.values,a)},consolidateArr:t=>{const a=fi.partition(t);return a.errors.length>0?Ig(a.errors):fi.svalue(a.values)}},xh=t=>s(t)&&ot(t).length>100?" removed due to size":JSON.stringify(t,null,2),Bp=t=>{const a=t.length>10?t.slice(0,10).concat([{path:[],getErrorInfo:O("... (only showing first ten failures)")}]):t;return ne(a,p=>"Failed path: ("+p.path.join(" > ")+`) -`+p.getErrorInfo())},wh=(t,a)=>fi.serror([{path:t,getErrorInfo:a}]),bm=(t,a,p)=>wh(t,()=>'Could not find valid *required* value for "'+a+'" in '+xh(p)),tb=(t,a)=>wh(t,()=>'Choice schema did not contain choice key: "'+a+'"'),pu=(t,a,p)=>wh(t,()=>'The chosen schema: "'+p+'" did not exist in branches: '+xh(a)),nb=(t,a)=>wh(t,()=>"There are unsupported fields: ["+a.join(", ")+"] specified"),Ch=(t,a)=>wh(t,O(a)),Jc=t=>{const a=(E,z)=>fi.bindError(t(z),Y=>Ch(E,Y)),p=O("val");return{extract:a,toString:p}},Hp=Jc(fi.svalue),j0=(t,a,p,E)=>Ft(a,p).fold(()=>bm(t,p,a),E),xm=(t,a,p,E)=>{const z=Ft(t,a).getOrThunk(()=>p(t));return E(z)},Y0=(t,a,p)=>p(Ft(t,a)),K0=(t,a,p,E)=>{const z=Ft(t,a).map(Y=>Y===!0?p(t):Y);return E(z)},X0=(t,a,p,E,z)=>{const Y=xe=>z.extract(a.concat([E]),xe),re=xe=>xe.fold(()=>fi.svalue(P.none()),Ee=>{const Be=z.extract(a.concat([E]),Ee);return fi.map(Be,P.some)});switch(t.tag){case"required":return j0(a,p,E,Y);case"defaultedThunk":return xm(p,E,t.process,Y);case"option":return Y0(p,E,re);case"defaultedOptionThunk":return K0(p,E,t.process,re);case"mergeWithThunk":return xm(p,E,O({}),xe=>{const Ee=hs(t.process(p),xe);return Y(Ee)})}},zp=(t,a,p)=>{const E={},z=[];for(const Y of p)yh(Y,(re,xe,Ee,Be)=>{const je=X0(Ee,t,a,re,Be);fi.fold(je,et=>{z.push(...et)},et=>{E[xe]=et})},(re,xe)=>{E[re]=xe(a)});return z.length>0?fi.serror(z):fi.svalue(E)},Vi=t=>({extract:(E,z)=>t().extract(E,z),toString:()=>t().toString()}),Ng=t=>ot(Ct(t,d)),es=t=>{const a=io(t),p=$e(t,(z,Y)=>yh(Y,re=>hs(z,{[re]:!0}),O(z)),{});return{extract:(z,Y)=>{const re=c(Y)?[]:Ng(Y),xe=Ce(re,Ee=>!_n(p,Ee));return xe.length===0?a.extract(z,Y):nb(z,xe)},toString:a.toString}},io=t=>({extract:(E,z)=>zp(E,z,t),toString:()=>`obj{ -`+ne(t,z=>yh(z,(Y,re,xe,Ee)=>Y+" -> "+Ee.toString(),(Y,re)=>"state("+Y+")")).join(` -`)+"}"}),vu=t=>({extract:(E,z)=>{const Y=ne(z,(re,xe)=>t.extract(E.concat(["["+xe+"]"]),re));return Z0.consolidateArr(Y)},toString:()=>"array("+t.toString()+")"}),Gr=(t,a)=>{const p=a!==void 0?a:D;return{extract:(Y,re)=>{const xe=[];for(const Ee of t){const Be=Ee.extract(Y,re);if(Be.stype===vc.Value)return{stype:vc.Value,svalue:p(Be.svalue)};xe.push(Be)}return Z0.consolidateArr(xe)},toString:()=>"oneOf("+ne(t,Y=>Y.toString()).join(", ")+")"}},xl=(t,a)=>{const p=(Y,re)=>vu(Jc(t)).extract(Y,re);return{extract:(Y,re)=>{const xe=ot(re),Ee=p(Y,xe);return fi.bind(Ee,Be=>{const je=ne(Be,et=>Ri(et,et,Ua(),a));return io(je).extract(Y,re)})},toString:()=>"setOf("+a.toString()+")"}},H2=(t,a)=>{const p=Ps(a);return{extract:(Y,re)=>p().extract(Y,re),toString:()=>p().toString()}},Wf=$(vu,io),oi=O(Hp),Gf=(t,a)=>Jc(p=>{const E=typeof p;return t(p)?fi.svalue(p):fi.serror(`Expected type: ${a} but got: ${E}`)}),Fg=Gf(v,"number"),Ui=Gf(A,"string"),Ju=Gf(c,"boolean"),Sh=Gf(g,"function"),yu=t=>{if(Object(t)!==t)return!0;switch({}.toString.call(t).slice(8,-1)){case"Boolean":case"Number":case"String":case"Date":case"RegExp":case"Blob":case"FileList":case"ImageData":case"ImageBitmap":case"ArrayBuffer":return!0;case"Array":case"Object":return Object.keys(t).every(a=>yu(t[a]));default:return!1}},J0=Jc(t=>yu(t)?fi.svalue(t):fi.serror("Expected value to be acceptable for sending via postMessage")),Vp=(t,a,p,E)=>Ft(p,E).fold(()=>pu(t,p,E),Y=>Y.extract(t.concat(["branch: "+E]),a)),ir=(t,a)=>({extract:(z,Y)=>Ft(Y,t).fold(()=>tb(z,t),xe=>Vp(z,Y,a,xe)),toString:()=>"chooseOn("+t+"). Possible values: "+ot(a)}),rb=()=>vu(Hp),cl=t=>Jc(a=>t(a).fold(fi.serror,fi.svalue)),gf=(t,a)=>xl(p=>fi.fromResult(t(p)),a),wm=(t,a,p)=>{const E=a.extract([t],p);return fi.mapError(E,z=>({input:p,errors:z}))},ns=(t,a,p)=>fi.toResult(wm(t,a,p)),Ja=t=>t.fold(a=>{throw new Error(wl(a))},D),ul=(t,a,p)=>Ja(ns(t,a,p)),wl=t=>`Errors: -`+Bp(t.errors).join(` -`)+` - -Input object: `+xh(t.input),fa=(t,a)=>ir(t,Xe(a,io)),Bg=(t,a)=>H2(t,a),Wi=Ri,zs=gu,Hg=t=>cl(a=>he(t,a)?Wo.value(a):Wo.error(`Unsupported value: "${a}", choose one of "${t.join(", ")}".`)),qn=t=>Wi(t,t,Ua(),oi()),yc=(t,a)=>Wi(t,t,Ua(),a),Cm=t=>yc(t,Fg),Da=t=>yc(t,Ui),Qu=(t,a)=>Wi(t,t,Ua(),Hg(a)),z2=t=>yc(t,Ju),bu=t=>yc(t,Sh),Up=(t,a)=>Wi(t,t,Pg(),Jc(p=>fi.serror("The field: "+t+" is forbidden. "+a))),Dc=(t,a)=>Wi(t,t,Ua(),io(a)),Wp=(t,a)=>Wi(t,t,Ua(),Wf(a)),Ol=(t,a)=>Wi(t,t,Ua(),vu(a)),Ia=t=>Wi(t,t,Pg(),oi()),$c=(t,a)=>Wi(t,t,Pg(),a),Qs=t=>$c(t,Fg),Gi=t=>$c(t,Ui),Zf=(t,a)=>$c(t,Hg(a)),pf=t=>$c(t,Sh),jf=(t,a)=>$c(t,vu(a)),Ql=(t,a)=>$c(t,io(a)),vf=(t,a)=>$c(t,es(a)),En=(t,a)=>Wi(t,t,G0(a),oi()),ql=(t,a,p)=>Wi(t,t,G0(a),p),yf=(t,a)=>ql(t,a,Fg),bf=(t,a)=>ql(t,a,Ui),bc=(t,a,p)=>ql(t,a,Hg(p)),Li=(t,a)=>ql(t,a,Ju),bi=(t,a)=>ql(t,a,Sh),L3=(t,a)=>ql(t,a,J0),ec=(t,a,p)=>ql(t,a,vu(p)),U=(t,a,p)=>ql(t,a,io(p)),q=t=>{let a=t;return{get:()=>a,set:z=>{a=z}}},Ae={generate:t=>{if(!h(t))throw new Error("cases must be an array");if(t.length===0)throw new Error("there must be at least one case");const a=[],p={};return fe(t,(E,z)=>{const Y=ot(E);if(Y.length!==1)throw new Error("one and only one name per case");const re=Y[0],xe=E[re];if(p[re]!==void 0)throw new Error("duplicate key detected:"+re);if(re==="cata")throw new Error("cannot have a case named cata (sorry)");if(!h(xe))throw new Error("case arguments must be an array");a.push(re),p[re]=(...Ee)=>{const Be=Ee.length;if(Be!==xe.length)throw new Error("Wrong number of arguments to case "+re+". Expected "+xe.length+" ("+xe+"), got "+Be);return{fold:(...et)=>{if(et.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+et.length);return et[z].apply(null,Ee)},match:et=>{const st=ot(et);if(a.length!==st.length)throw new Error("Wrong number of arguments to match. Expected: "+a.join(",")+` -Actual: `+st.join(","));if(!we(a,Mt=>he(st,Mt)))throw new Error("Not all branches were specified when using match. Specified: "+st.join(", ")+` -Required: `+a.join(", "));return et[re].apply(null,Ee)},log:et=>{console.log(et,{constructors:a,constructor:re,params:Ee})}}}}),p}};Ae.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);const _e=t=>{const a=[],p=[];return fe(t,E=>{E.fold(z=>{a.push(z)},z=>{p.push(z)})}),{errors:a,values:p}},Ie=(t,a)=>{const p={};return Ge(t,(E,z)=>{he(a,z)||(p[z]=E)}),p},Qe=(t,a)=>({[t]:a}),Ye=t=>{const a={};return fe(t,p=>{a[p.key]=p.value}),a},rt=(t,a)=>Ie(t,a),yt=(t,a)=>Qe(t,a),bt=t=>Ye(t),Vt=(t,a)=>t.length===0?Wo.value(a):Wo.value(hs(a,Ad.apply(void 0,t))),Wt=t=>Wo.error(Fe(t)),mn=(t,a)=>{const p=_e(t);return p.errors.length>0?Wt(p.errors):Vt(p.values,a)},An=t=>g(t)?t:H,Kt=(t,a,p)=>{let E=t.dom;const z=An(p);for(;E.parentNode;){E=E.parentNode;const Y=zt.fromDom(E),re=a(Y);if(re.isSome())return re;if(z(Y))break}return P.none()},en=(t,a,p)=>{const E=a(t),z=An(p);return E.orThunk(()=>z(t)?P.none():Kt(t,a,z))},dn=(t,a)=>Qt(t.element,a.event.target),Rn={can:j,abort:H,run:C},Mn=t=>{if(!_n(t,"can")&&!_n(t,"abort")&&!_n(t,"run"))throw new Error("EventHandler defined by: "+JSON.stringify(t,null,2)+" does not have can, abort, or run!");return{...Rn,...t}},vn=(t,a)=>(...p)=>ke(t,(E,z)=>E&&a(z).apply(void 0,p),!0),lr=(t,a)=>(...p)=>ke(t,(E,z)=>E||a(z).apply(void 0,p),!1),zr=t=>g(t)?{can:j,abort:H,run:t}:t,Jr=t=>{const a=vn(t,z=>z.can),p=lr(t,z=>z.abort);return{can:a,abort:p,run:(...z)=>{fe(t,Y=>{Y.run.apply(void 0,z)})}}},kr=O,eo=kr("touchstart"),lo=kr("touchmove"),Ko=kr("touchend"),yo=kr("touchcancel"),fo=kr("mousedown"),Ha=kr("mousemove"),Vs=kr("mouseout"),is=kr("mouseup"),$r=kr("mouseover"),_o=kr("focusin"),sa=kr("focusout"),Ca=kr("keydown"),As=kr("keyup"),qs=kr("input"),Di=kr("change"),xi=kr("click"),xc=kr("transitioncancel"),Ii=kr("transitionend"),tc=kr("transitionstart"),Cl=kr("selectstart"),Ga=t=>O("alloy."+t),xu={tap:Ga("tap")},qu=Ga("focus"),Sl=Ga("blur.post"),wi=Ga("paste.post"),Tl=Ga("receive"),Ci=Ga("execute"),Za=Ga("focus.item"),nc=xu.tap,Yf=Ga("longpress"),wu=Ga("sandbox.close"),Th=Ga("typeahead.cancel"),Kf=Ga("system.init"),Q0=Ga("system.touchmove"),ob=Ga("system.touchend"),Md=Ga("system.scroll"),Xf=Ga("system.resize"),Cu=Ga("system.attached"),Sm=Ga("system.detached"),Tm=Ga("system.dismissRequested"),D3=Ga("system.repositionRequested"),ab=Ga("focusmanager.shifted"),q0=Ga("slotcontainer.visibility"),sb=Ga("system.external.element.scroll"),$3=Ga("change.tab"),ib=Ga("dismiss.tab"),e1=Ga("highlight"),t1=Ga("dehighlight"),pa=(t,a)=>{n1(t,t.element,a,{})},go=(t,a,p)=>{n1(t,t.element,a,p)},kh=t=>{pa(t,Ci())},lb=(t,a,p)=>{n1(t,a,p,{})},n1=(t,a,p,E)=>{const z={target:a,...E};t.getSystem().triggerEvent(p,a,z)},BE=(t,a,p,E)=>{const z={...E,target:a};t.getSystem().triggerEvent(p,a,z)},V2=(t,a,p,E)=>{t.getSystem().triggerEvent(p,a,E.event)},bs=t=>bt(t),U2=(t,a)=>({key:t,value:Mn({abort:a})}),W2=(t,a)=>({key:t,value:Mn({can:a})}),G2=t=>({key:t,value:Mn({run:(a,p)=>{p.event.prevent()}})}),Xn=(t,a)=>({key:t,value:Mn({run:a})}),cb=(t,a,p)=>({key:t,value:Mn({run:(E,z)=>{a.apply(void 0,[E,z].concat(p))}})}),HE=t=>a=>Xn(t,a),r1=t=>a=>({key:t,value:Mn({run:(p,E)=>{dn(p,E)&&a(p,E)}})}),zE=(t,a)=>Xn(t,(p,E)=>{p.getSystem().getByUid(a).each(z=>{V2(z,z.element,t,E)})}),Gp=(t,a,p)=>{const E=a.partUids[p];return zE(t,E)},Z2=(t,a)=>Xn(t,(p,E)=>{const z=E.event,Y=p.getSystem().getByDom(z.target).getOrThunk(()=>en(z.target,xe=>p.getSystem().getByDom(xe).toOptional(),H).getOr(p));a(p,Y,E)}),Ah=t=>Xn(t,(a,p)=>{p.cut()}),VE=t=>Xn(t,(a,p)=>{p.stop()}),Ed=(t,a)=>r1(t)(a),ms=r1(Cu()),_d=r1(Sm()),j2=r1(Kf()),xf=HE(Ci()),Mh=(t,a)=>{const E=(a||document).createElement("div");return E.innerHTML=t,Kr(zt.fromDom(E))},Y2=t=>t.dom.innerHTML,zg=(t,a)=>{const E=Sn(t).dom,z=zt.fromDom(E.createDocumentFragment()),Y=Mh(a,E);Sd(z,Y),pm(t),pc(t,z)},O3=t=>{const a=zt.fromTag("div"),p=zt.fromDom(t.dom.cloneNode(!0));return pc(a,p),Y2(a)},ub=(t,a)=>zt.fromDom(t.dom.cloneNode(a)),K2=t=>ub(t,!1),UE=t=>ub(t,!0),X2=t=>{if(Zo(t))return"#shadow-root";{const a=K2(t);return O3(a)}},Rd=t=>X2(t),t$=(t,a,p)=>Qt(a,t.element)&&!Qt(a,p),J2=bs([W2(qu(),(t,a)=>{const p=a.event,E=p.originator,z=p.target;return t$(t,E,z)?(console.warn(qu()+` did not get interpreted by the desired target. -Originator: `+Rd(E)+` -Target: `+Rd(z)+` -Check the `+qu()+" event handlers"),!1):!0})]);var km=Object.freeze({__proto__:null,events:J2});let kl=0;const Xr=t=>{const p=new Date().getTime(),E=Math.floor(Math.random()*1e9);return kl++,t+"_"+E+kl+String(p)},WE=O("alloy-id-"),Q2=O("data-alloy-id"),GE=WE(),P3=Q2(),Vg=(t,a)=>{const p=Xr(GE+t);return Zp(a,p),p},Zp=(t,a)=>{Object.defineProperty(t.dom,P3,{value:a,writable:!0})},o1=t=>{const a=St(t)?t.dom[P3]:null;return P.from(a)},jp=t=>Xr(t),fb=D,Eh=t=>{const a=z=>`The component must be in a context to execute: ${z}`+(t?` -`+Rd(t().element)+" is not in context.":""),p=z=>()=>{throw new Error(a(z))},E=z=>()=>{console.warn(a(z))};return{debugInfo:O("fake"),triggerEvent:E("triggerEvent"),triggerFocus:E("triggerFocus"),triggerEscape:E("triggerEscape"),broadcast:E("broadcast"),broadcastOn:E("broadcastOn"),broadcastEvent:E("broadcastEvent"),build:p("build"),buildOrPatch:p("buildOrPatch"),addToWorld:p("addToWorld"),removeFromWorld:p("removeFromWorld"),addToGui:p("addToGui"),removeFromGui:p("removeFromGui"),getByUid:p("getByUid"),getByDom:p("getByDom"),isConnected:H}},Jf=Eh(),a1=(t,a,p)=>{const E=p.toString(),z=E.indexOf(")")+1,Y=E.indexOf("("),re=E.substring(Y+1,z-1).split(/,\s*/);return t.toFunctionAnnotation=()=>({name:a,parameters:ef(re.slice(0,1).concat(re.slice(3)))}),t},ef=t=>ne(t,a=>pt(a,"/*")?a.substring(0,a.length-2):a),db=(t,a)=>{const p=t.toString(),E=p.indexOf(")")+1,z=p.indexOf("("),Y=p.substring(z+1,E-1).split(/,\s*/);return t.toFunctionAnnotation=()=>({name:a,parameters:ef(Y)}),t},I3=(t,a)=>{const p=a.toString(),E=p.indexOf(")")+1,z=p.indexOf("("),Y=p.substring(z+1,E-1).split(/,\s*/);return t.toFunctionAnnotation=()=>({name:"OVERRIDE",parameters:ef(Y.slice(1))}),t},Yp=Xr("alloy-premade"),_h=t=>(Object.defineProperty(t.element.dom,Yp,{value:t.uid,writable:!0}),yt(Yp,t)),ZE=t=>pn(t.dom,Yp),Kp=t=>Ft(t,Yp),Ug=t=>I3((a,...p)=>t(a.getApis(),a,...p),t),wf={init:()=>Qc({readState:O("No State required")})},Qc=t=>t,jE=(t,a)=>{const p=ne(a,z=>Ql(z.name(),[qn("config"),En("state",wf)])),E=ns("component.behaviours",io(p),t.behaviours).fold(z=>{throw new Error(wl(z)+` -Complete spec: -`+JSON.stringify(t,null,2))},D);return{list:a,data:Xe(E,z=>{const Y=z.map(re=>({config:re.config,state:re.state.init(re.config)}));return O(Y)})}},N3=t=>t.list,F3=t=>t.data,q2=(t,a)=>{const p={};return Ge(t,(E,z)=>{Ge(E,(Y,re)=>{const xe=Ft(p,re).getOr([]);p[re]=xe.concat([a(z,Y)])})}),p},qc=t=>({classes:i(t.classes)?[]:t.classes,attributes:i(t.attributes)?{}:t.attributes,styles:i(t.styles)?{}:t.styles}),Xp=(t,a)=>({...t,attributes:{...t.attributes,...a.attributes},styles:{...t.styles,...a.styles},classes:t.classes.concat(a.classes)}),hb=(t,a,p,E)=>{const z={...a};fe(p,je=>{z[je.name()]=je.exhibit(t,E)});const Y=q2(z,(je,et)=>({name:je,modification:et})),re=je=>$e(je,(et,st)=>({...st.modification,...et}),{}),xe=$e(Y.classes,(je,et)=>et.modification.concat(je),[]),Ee=re(Y.attributes),Be=re(Y.styles);return qc({classes:xe,attributes:Ee,styles:Be})},mb=(t,a,p,E)=>{try{const z=Te(p,(Y,re)=>{const xe=Y[a],Ee=re[a],Be=E.indexOf(xe),je=E.indexOf(Ee);if(Be===-1)throw new Error("The ordering for "+t+" does not have an entry for "+xe+`. -Order specified: `+JSON.stringify(E,null,2));if(je===-1)throw new Error("The ordering for "+t+" does not have an entry for "+Ee+`. -Order specified: `+JSON.stringify(E,null,2));return Be({handler:t,purpose:a}),B3=(t,a)=>({cHandler:t,purpose:a}),ew=(t,a)=>B3(M.apply(void 0,[t.handler].concat(a)),t.purpose),Jp=t=>t.cHandler,Qp=(t,a)=>({name:t,handler:a}),gb=(t,a)=>{const p={};return fe(t,E=>{p[E.name()]=E.handlers(a)}),p},KE=(t,a,p)=>{const E={...p,...gb(a,t)};return q2(E,Qp)},pb=(t,a,p,E)=>{const z=KE(t,p,E);return tw(z,a)},qp=t=>{const a=zr(t);return(p,E,...z)=>{const Y=[p,E].concat(z);a.abort.apply(void 0,Y)?E.stop():a.can.apply(void 0,Y)&&a.run.apply(void 0,Y)}},XE=(t,a)=>Wo.error(["The event ("+t+`) has more than one behaviour that listens to it. -When this occurs, you must specify an event ordering for the behaviours in your spec (e.g. [ "listing", "toggling" ]). -The behaviours that can trigger it are: `+JSON.stringify(ne(a,p=>p.name),null,2)]),s1=(t,a,p)=>{const E=a[p];return E?mb("Event: "+p,"name",t,E).map(z=>{const Y=ne(z,re=>re.handler);return Jr(Y)}):XE(p,t)},tw=(t,a)=>{const p=Gt(t,(E,z)=>(E.length===1?Wo.value(E[0].handler):s1(E,a,z)).map(re=>{const xe=qp(re),Ee=E.length>1?Ce(a[z],Be=>ge(E,je=>je.name===Be)).join(" > "):E[0].name;return yt(z,YE(xe,Ee))}));return mn(p,{})},eu="alloy.base.behaviour",vb=io([Wi("dom","dom",Ua(),io([qn("tag"),En("styles",{}),En("classes",[]),En("attributes",{}),Ia("value"),Ia("innerHtml")])),qn("components"),qn("uid"),En("events",{}),En("apis",{}),Wi("eventOrder","eventOrder",bh({[Ci()]:["disabling",eu,"toggling","typeaheadevents"],[qu()]:[eu,"focusing","keying"],[Kf()]:[eu,"disabling","toggling","representing"],[qs()]:[eu,"representing","streaming","invalidating"],[Sm()]:[eu,"representing","item-events","tooltipping"],[fo()]:["focusing",eu,"item-type-events"],[eo()]:["focusing",eu,"item-type-events"],[$r()]:["item-type-events","tooltipping"],[Tl()]:["receiving","reflecting","tooltipping"]}),oi()),Ia("domModification")]),H3=t=>ns("custom.definition",vb,t),yb=t=>({...t.dom,uid:t.uid,domChildren:ne(t.components,a=>a.element)}),n$=t=>t.domModification.fold(()=>qc({}),qc),bb=t=>t.events,Am=(t,a)=>{const p=Ka(t,a);return p===void 0||p===""?[]:p.split(" ")},Ld=(t,a,p)=>{const z=Am(t,a).concat([p]);return Lr(t,a,z.join(" ")),!0},nw=(t,a,p)=>{const E=Ce(Am(t,a),z=>z!==p);return E.length>0?Lr(t,a,E.join(" ")):Xa(t,a),!1},ev=t=>t.dom.classList!==void 0,xb=t=>Am(t,"class"),z3=(t,a)=>Ld(t,"class",a),Cs=(t,a)=>nw(t,"class",a),JE=(t,a)=>he(xb(t),a)?Cs(t,a):z3(t,a),hi=(t,a)=>{ev(t)?t.dom.classList.add(a):z3(t,a)},V3=t=>{(ev(t)?t.dom.classList:xb(t)).length===0&&Xa(t,"class")},Is=(t,a)=>{ev(t)?t.dom.classList.remove(a):Cs(t,a),V3(t)},tv=(t,a)=>{const p=ev(t)?t.dom.classList.toggle(a):JE(t,a);return V3(t),p},Ni=(t,a)=>ev(t)&&t.dom.classList.contains(a),Us=(t,a)=>{fe(a,p=>{hi(t,p)})},Su=(t,a)=>{fe(a,p=>{Is(t,p)})},rw=(t,a)=>{fe(a,p=>{tv(t,p)})},Al=(t,a)=>we(a,p=>Ni(t,p)),i1=t=>{const a=t.dom.classList,p=new Array(a.length);for(let E=0;Eev(t)?i1(t):xb(t),Dd=t=>t.dom.value,rv=(t,a)=>{if(a===void 0)throw new Error("Value.set was undefined");t.dom.value=a},Mm=(t,a,p)=>qr(t,a).map(z=>{if(p.exists(re=>!Qt(re,z))){const re=p.map(vo).getOr("span"),xe=zt.fromTag(re);return hu(z,xe),xe}else return z}),Rh=(t,a,p)=>{p.fold(()=>pc(t,a),E=>{Qt(E,a)||(hu(E,a),Xl(E))})},QE=(t,a,p)=>{const E=ne(a,p),z=Kr(t);return fe(z.slice(E.length),Xl),E},U3=(t,a,p,E)=>{const z=qr(t,a),Y=E(p,z),re=Mm(t,a,z);return Rh(t,Y.element,re),Y},r$=(t,a,p)=>QE(t,a,(E,z)=>U3(t,z,E,p)),o$=(t,a)=>QE(t,a,(p,E)=>{const z=qr(t,E);return Rh(t,p,z),p}),Cf=(t,a)=>{const p=ot(t),E=ot(a),z=ue(E,p),Y=tt(t,(re,xe)=>!pn(a,xe)||re!==a[xe]).t;return{toRemove:z,toSet:Y}},rc=(t,a)=>{const{class:p,style:E,...z}=Zc(a),{toSet:Y,toRemove:re}=Cf(t.attributes,z),xe=()=>{fe(re,kn=>Xa(a,kn)),jl(a,Y)},Ee=Es(a),{toSet:Be,toRemove:je}=Cf(t.styles,Ee),et=()=>{fe(je,kn=>Bo(a,kn)),Mi(a,Be)},st=nv(a),mt=ue(st,t.classes),Mt=ue(t.classes,st),Xt=()=>{Us(a,Mt),Su(a,mt)},Dn=kn=>{zg(a,kn)},hn=()=>{const kn=t.domChildren;o$(a,kn)},rn=()=>{const kn=a,Vn=t.value.getOrUndefined();Vn!==Dd(kn)&&rv(kn,Vn??"")};return xe(),Xt(),et(),t.innerHtml.fold(hn,Dn),rn(),a},qE=t=>{const a=zt.fromTag(t.tag);jl(a,t.attributes),Us(a,t.classes),Mi(a,t.styles),t.innerHtml.each(E=>zg(a,E));const p=t.domChildren;return Sd(a,p),t.value.each(E=>{rv(a,E)}),a},e4=(t,a)=>{try{const p=rc(t,a);return P.some(p)}catch{return P.none()}},Em=t=>t.innerHtml.isSome()&&t.domChildren.length>0,l1=(t,a)=>{const p=z=>vo(z)===t.tag&&!Em(t)&&!ZE(z),E=a.filter(p).bind(z=>e4(t,z)).getOrThunk(()=>qE(t));return Zp(E,t.uid),E},wb=t=>{const a=Ft(t,"behaviours").getOr({});return ie(ot(a),p=>{const E=a[p];return d(E)?[E.me]:[]})},Cb=(t,a)=>jE(t,a),$d=t=>{const a=wb(t);return Cb(t,a)},ov=(t,a,p)=>{const E=yb(t),z=n$(t),Y={"alloy.base.modification":z},re=a.length>0?hb(p,Y,a,E):z;return Xp(E,re)},av=(t,a,p)=>{const E={"alloy.base.behaviour":bb(t)};return pb(p,t.eventOrder,a,E).getOrDie()},sv=(t,a)=>{const p=()=>kn,E=q(Jf),z=Ja(H3(t)),Y=$d(t),re=N3(Y),xe=F3(Y),Ee=ov(z,re,xe),Be=l1(Ee,a),je=av(z,re,xe),et=q(z.components),st=Vn=>{E.set(Vn)},mt=()=>{E.set(Eh(p))},Mt=()=>{const Vn=Kr(Be),hr=ie(Vn,Yn=>E.get().getByDom(Yn).fold(()=>[],le));et.set(hr)},Xt=Vn=>{const hr=xe;return(g(hr[Vn.name()])?hr[Vn.name()]:()=>{throw new Error("Could not find "+Vn.name()+" in "+JSON.stringify(t,null,2))})()},Dn=Vn=>g(xe[Vn.name()]),hn=()=>z.apis,rn=Vn=>xe[Vn]().map(hr=>hr.state.readState()).getOr("not enabled"),kn={uid:t.uid,getSystem:E.get,config:Xt,hasConfigured:Dn,spec:t,readState:rn,getApis:hn,connect:st,disconnect:mt,element:Be,syncComponents:Mt,components:et.get,events:je};return kn},Wg=(t,a)=>{const p=Ft(t,"components").getOr([]);return a.fold(()=>ne(p,Pl),E=>ne(p,(z,Y)=>Sb(z,qr(E,Y))))},W3=(t,a)=>{const{events:p,...E}=fb(t),z=Wg(E,a),Y={...E,events:{...km,...p},components:z};return Wo.value(sv(Y,a))},ai=t=>{const a=zt.fromText(t);return G3({element:a})},G3=t=>{const a=ul("external.component",es([qn("element"),Ia("uid")]),t),p=q(Eh()),E=xe=>{p.set(xe)},z=()=>{p.set(Eh(()=>re))},Y=a.uid.getOrThunk(()=>jp("external"));Zp(a.element,Y);const re={uid:Y,getSystem:p.get,config:P.none,hasConfigured:H,connect:E,disconnect:z,getApis:()=>({}),element:a.element,spec:t,readState:O("No state"),syncComponents:C,components:O([]),events:{}};return _h(re)},iv=jp,Z3=t=>pn(t,"uid"),Sb=(t,a)=>Kp(t).getOrThunk(()=>{const p=Z3(t)?t:{uid:iv(""),...t};return W3(p,a).getOrDie()}),Pl=t=>Sb(t,P.none()),Tu=_h;var j3=(t,a,p,E,z)=>t(p,E)?P.some(p):g(z)&&z(p)?P.none():a(p,E,z);const Tb=(t,a,p)=>{let E=t.dom;const z=g(p)?p:H;for(;E.parentNode;){E=E.parentNode;const Y=zt.fromDom(E);if(a(Y))return P.some(Y);if(z(Y))break}return P.none()},Gg=(t,a,p)=>j3((z,Y)=>Y(z),Tb,t,a,p),t4=(t,a)=>{const p=z=>a(zt.fromDom(z));return Ve(t.dom.childNodes,p).map(zt.fromDom)},Y3=(t,a)=>{const p=E=>{for(let z=0;zGg(t,a,p).isSome(),tu=(t,a,p)=>Tb(t,E=>Ot(E,a),p),kb=(t,a)=>t4(t,p=>Ot(p,a)),mi=(t,a)=>cn(a,t),Qf=(t,a,p)=>j3((z,Y)=>Ot(z,Y),tu,t,a,p),lv="aria-controls",_m=t=>Gg(t,p=>{if(!St(p))return!1;const E=Ka(p,"id");return E!==void 0&&E.indexOf(lv)>-1}).bind(p=>{const E=Ka(p,"id"),z=Yo(p);return mi(z,`[${lv}="${E}"]`)}),Zg=()=>{const t=Xr(lv);return{id:t,link:E=>{Lr(E,lv,t)},unlink:E=>{Xa(E,lv)}}},jg=(t,a)=>_m(a).exists(p=>Lh(t,p)),Lh=(t,a)=>ow(a,p=>Qt(p,t.element),H)||jg(t,a),K3="unknown";var Yg;(function(t){t[t.STOP=0]="STOP",t[t.NORMAL=1]="NORMAL",t[t.LOGGING=2]="LOGGING"})(Yg||(Yg={}));const Rm=q({}),Kg=(t,a)=>{const p=[],E=new Date().getTime();return{logEventCut:(z,Y,re)=>{p.push({outcome:"cut",target:Y,purpose:re})},logEventStopped:(z,Y,re)=>{p.push({outcome:"stopped",target:Y,purpose:re})},logNoParent:(z,Y,re)=>{p.push({outcome:"no-parent",target:Y,purpose:re})},logEventNoHandlers:(z,Y)=>{p.push({outcome:"no-handlers-left",target:Y})},logEventResponse:(z,Y,re)=>{p.push({outcome:"response",purpose:re,target:Y})},write:()=>{const z=new Date().getTime();he(["mousemove","mouseover","mouseout",Kf()],t)||console.log(t,{event:t,time:z-E,target:a.dom,sequence:ne(p,Y=>he(["cut","stopped","response"],Y.outcome)?"{"+Y.purpose+"} "+Y.outcome+" at ("+Rd(Y.target)+")":Y.outcome)})}}},X3=(t,a,p)=>{switch(Ft(Rm.get(),t).orThunk(()=>{const z=ot(Rm.get());return We(z,Y=>t.indexOf(Y)>-1?P.some(Rm.get()[Y]):P.none())}).getOr(Yg.NORMAL)){case Yg.NORMAL:return p(sw());case Yg.LOGGING:{const z=Kg(t,a),Y=p(z);return z.write(),Y}case Yg.STOP:return!0}},n4=["alloy/data/Fields","alloy/debugging/Debugging"],aw=()=>{const t=new Error;if(t.stack!==void 0){const a=t.stack.split(` -`);return Ve(a,p=>p.indexOf("alloy")>0&&!ge(n4,E=>p.indexOf(E)>-1)).getOr(K3)}else return K3},r4={logEventCut:C,logEventStopped:C,logNoParent:C,logEventNoHandlers:C,logEventResponse:C,write:C},Ab=(t,a,p)=>X3(t,a,p),sw=O(r4),nu=O([qn("menu"),qn("selectedMenu")]),J3=O([qn("item"),qn("selectedItem")]);O(io(J3().concat(nu())));const cv=O(io(J3())),Q3=Dc("initSize",[qn("numColumns"),qn("numRows")]),o4=()=>yc("markers",cv()),c1=()=>Dc("markers",[qn("backgroundMenu")].concat(nu()).concat(J3())),Lm=t=>Dc("markers",ne(t,qn)),Mb=(t,a,p)=>(aw(),Wi(a,a,p,cl(E=>Wo.value((...z)=>E.apply(void 0,z))))),Sa=t=>Mb("onHandler",t,G0(C)),ru=t=>Mb("onKeyboardHandler",t,G0(P.none)),qf=t=>Mb("onHandler",t,Ua()),iw=t=>Mb("onKeyboardHandler",t,Ua()),rs=(t,a)=>zs(t,O(a)),u1=t=>zs(t,D),lw=O(Q3),Zi=(t,a,p,E,z,Y,re,xe=!1)=>({x:t,y:a,bubble:p,direction:E,placement:z,restriction:Y,label:`${re}-${z}`,alwaysFit:xe}),Od=Ae.generate([{southeast:[]},{southwest:[]},{northeast:[]},{northwest:[]},{south:[]},{north:[]},{east:[]},{west:[]}]),Dm=(t,a,p,E,z,Y,re,xe,Ee)=>t.fold(a,p,E,z,Y,re,xe,Ee),cw=(t,a,p,E)=>t.fold(a,a,E,E,a,E,p,p),Eb=(t,a,p,E)=>t.fold(a,E,a,E,p,p,a,E),f1=Od.southeast,uw=Od.southwest,_b=Od.northeast,Pd=Od.northwest,Dh=Od.south,a4=Od.north,In=Od.east,d1=Od.west,uv=(t,a,p,E)=>{const z=t+a;return z>E?p:zMath.min(Math.max(t,a),p),fw=(t,a)=>{switch(a){case 1:return t.x;case 0:return t.x+t.width;case 2:return t.y;case 3:return t.y+t.height}},Ds=(t,a)=>pe(["left","right","top","bottom"],p=>Ft(a,p).map(E=>fw(t,E))),Rb=(t,a,p)=>{const E=(Ee,Be)=>a[Ee].map(je=>{const et=Ee==="top"||Ee==="bottom",st=et?p.top:p.left,Mt=(Ee==="left"||Ee==="top"?Math.max:Math.min)(je,Be)+st;return et?ku(Mt,t.y,t.bottom):ku(Mt,t.x,t.right)}).getOr(Be),z=E("left",t.x),Y=E("top",t.y),re=E("right",t.right),xe=E("bottom",t.bottom);return Hs(z,Y,re-z,xe-Y)},$h="layout",dw=t=>t.x,Lb=(t,a)=>t.x+t.width/2-a.width/2,hw=(t,a)=>t.x+t.width-a.width,h1=(t,a)=>t.y-a.height,fv=t=>t.y+t.height,mw=(t,a)=>t.y+t.height/2-a.height/2,s4=t=>t.x+t.width,wc=(t,a)=>t.x-a.width,ji=(t,a,p)=>Zi(dw(t),fv(t),p.southeast(),f1(),"southeast",Ds(t,{left:1,top:3}),$h),Ml=(t,a,p)=>Zi(hw(t,a),fv(t),p.southwest(),uw(),"southwest",Ds(t,{right:0,top:3}),$h),Cc=(t,a,p)=>Zi(dw(t),h1(t,a),p.northeast(),_b(),"northeast",Ds(t,{left:1,bottom:2}),$h),Il=(t,a,p)=>Zi(hw(t,a),h1(t,a),p.northwest(),Pd(),"northwest",Ds(t,{right:0,bottom:2}),$h),oc=(t,a,p)=>Zi(Lb(t,a),h1(t,a),p.north(),a4(),"north",Ds(t,{bottom:2}),$h),Yi=(t,a,p)=>Zi(Lb(t,a),fv(t),p.south(),Dh(),"south",Ds(t,{top:3}),$h),gw=(t,a,p)=>Zi(s4(t),mw(t,a),p.east(),In(),"east",Ds(t,{left:0}),$h),m1=(t,a,p)=>Zi(wc(t,a),mw(t,a),p.west(),d1(),"west",Ds(t,{right:1}),$h),pw=()=>[ji,Ml,Cc,Il,Yi,oc,gw,m1],g1=()=>[Ml,ji,Il,Cc,Yi,oc,gw,m1],vw=()=>[Cc,Il,ji,Ml,oc,Yi],q3=()=>[Il,Cc,Ml,ji,oc,Yi],Db=()=>[ji,Ml,Cc,Il,Yi,oc],yw=()=>[Ml,ji,Il,Cc,Yi,oc],i4=(t,a)=>a.universal?t:Ce(t,p=>he(a.channels,p));var eT=Object.freeze({__proto__:null,events:t=>bs([Xn(Tl(),(a,p)=>{const E=t.channels,z=ot(E),Y=p,re=i4(z,Y);fe(re,xe=>{const Ee=E[xe],Be=Ee.schema,je=ul("channel["+xe+`] data -Receiver: `+Rd(a.element),Be,Y.data);Ee.onReceive(a,je)})})])}),c4=[yc("channels",gf(Wo.value,es([qf("onReceive"),En("schema",oi())])))];const dv=(t,a,p)=>xf(E=>{p(E,t,a)}),$b=(t,a,p)=>j2((E,z)=>{p(E,t,a)}),tT=(t,a,p,E,z,Y)=>{const re=es(t),xe=Ql(a,[vf("config",t)]);return ed(re,xe,a,p,E,z,Y)},a$=(t,a,p,E,z,Y)=>{const re=t,xe=Ql(a,[$c("config",t)]);return ed(re,xe,a,p,E,z,Y)},Oc=(t,a,p)=>a1((z,...Y)=>{const re=[z].concat(Y);return z.config({name:O(t)}).fold(()=>{throw new Error("We could not find any behaviour configuration for: "+t+". Using API: "+p)},xe=>{const Ee=Array.prototype.slice.call(re,1);return a.apply(void 0,[z,xe.config,xe.state].concat(Ee))})},p,a),s$=t=>({key:t,value:void 0}),ed=(t,a,p,E,z,Y,re)=>{const xe=et=>_n(et,p)?et[p]():P.none(),Ee=Xe(z,(et,st)=>Oc(p,et,st)),je={...Xe(Y,(et,st)=>db(et,st)),...Ee,revoke:M(s$,p),config:et=>{const st=ul(p+"-config",t,et);return{key:p,value:{config:st,me:je,configAsRaw:Ps(()=>ul(p+"-config",t,et)),initialConfig:et,state:re}}},schema:O(a),exhibit:(et,st)=>jn(xe(et),Ft(E,"exhibit"),(mt,Mt)=>Mt(st,mt.config,mt.state)).getOrThunk(()=>qc({})),name:O(p),handlers:et=>xe(et).map(st=>Ft(E,"events").getOr(()=>({}))(st.config,st.state)).getOr({})};return je},gr=t=>bt(t),bw=es([qn("fields"),qn("name"),En("active",{}),En("apis",{}),En("state",wf),En("extra",{})]),Ki=t=>{const a=ul("Creating behaviour: "+t.name,bw,t);return tT(a.fields,a.name,a.active,a.apis,a.extra,a.state)},nT=es([qn("branchKey"),qn("branches"),qn("name"),En("active",{}),En("apis",{}),En("state",wf),En("extra",{})]),Ob=t=>{const a=ul("Creating behaviour: "+t.name,nT,t);return a$(fa(a.branchKey,a.branches),a.name,a.active,a.apis,a.extra,a.state)},xw=O(void 0),Pc=Ki({fields:c4,name:"receiving",active:eT});var rT=Object.freeze({__proto__:null,exhibit:(t,a)=>qc({classes:[],styles:a.useFixed()?{}:{position:"relative"}})});const Ic=(t,a=!1)=>t.dom.focus({preventScroll:a}),hv=t=>t.dom.blur(),p1=t=>{const a=Yo(t).dom;return t.dom===a.activeElement},Id=(t=Pp())=>P.from(t.dom.activeElement).map(zt.fromDom),Sf=t=>Id(Yo(t)).filter(a=>t.dom.contains(a.dom)),Ur=(t,a)=>{const p=Yo(a),E=Id(p).bind(Y=>{const re=xe=>Qt(Y,xe);return re(a)?P.some(a):Y3(a,re)}),z=t(a);return E.each(Y=>{Id(p).filter(re=>Qt(re,Y)).fold(()=>{Ic(Y)},C)}),z},Au=(t,a,p,E,z)=>{const Y=re=>re+"px";return{position:t,left:a.map(Y),top:p.map(Y),right:E.map(Y),bottom:z.map(Y)}},oT=t=>({...t,position:P.some(t.position)}),aT=(t,a)=>{ur(t,oT(a))},ww=Ae.generate([{none:[]},{relative:["x","y","width","height"]},{fixed:["x","y","width","height"]}]),sT=(t,a,p,E,z,Y)=>{const re=a.rect,xe=re.x-p,Ee=re.y-E,Be=re.width,je=re.height,et=z-(xe+Be),st=Y-(Ee+je),mt=P.some(xe),Mt=P.some(Ee),Xt=P.some(et),Dn=P.some(st),hn=P.none();return Dm(a.direction,()=>Au(t,mt,Mt,hn,hn),()=>Au(t,hn,Mt,Xt,hn),()=>Au(t,mt,hn,hn,Dn),()=>Au(t,hn,hn,Xt,Dn),()=>Au(t,mt,Mt,hn,hn),()=>Au(t,mt,hn,hn,Dn),()=>Au(t,mt,Mt,hn,hn),()=>Au(t,hn,Mt,Xt,hn))},Cw=(t,a)=>t.fold(()=>{const p=a.rect;return Au("absolute",P.some(p.x),P.some(p.y),P.none(),P.none())},(p,E,z,Y)=>sT("absolute",a,p,E,z,Y),(p,E,z,Y)=>sT("fixed",a,p,E,z,Y)),Sw=(t,a)=>{const p=M($g,a),E=t.fold(p,p,()=>{const re=ll();return $g(a).translate(-re.left,-re.top)}),z=Wu(a),Y=cu(a);return Hs(E.left,E.top,z,Y)},f4=(t,a)=>a.fold(()=>t.fold(bl,bl,Hs),p=>t.fold(O(p),O(p),()=>{const E=Tw(t,p.x,p.y);return Hs(E.left,E.top,p.width,p.height)})),Tw=(t,a,p)=>{const E=Ma(a,p),z=()=>{const Y=ll();return E.translate(-Y.left,-Y.top)};return t.fold(O(E),O(E),z)},d4=(t,a,p,E)=>t.fold(a,p,E);ww.none;const ac=ww.relative,v1=ww.fixed,h4=(t,a)=>({anchorBox:t,origin:a}),m4=(t,a)=>h4(t,a),kw="data-alloy-placement",g4=(t,a)=>{Lr(t,kw,a)},iT=t=>yi(t,kw),lT=t=>Xa(t,kw),y1=Ae.generate([{fit:["reposition"]},{nofit:["reposition","visibleW","visibleH","isVisible"]}]),cT=(t,a)=>{const{x:p,y:E,right:z,bottom:Y}=a,{x:re,y:xe,right:Ee,bottom:Be,width:je,height:et}=t,st=re>=p&&re<=z,mt=xe>=E&&xe<=Y,Mt=st&&mt,Xt=Ee<=z&&Ee>=p,Dn=Be<=Y&&Be>=E,hn=Xt&&Dn,rn=Math.min(je,re>=p?z-re:Ee-p),kn=Math.min(et,xe>=E?Y-xe:Be-E);return{originInBounds:Mt,sizeInBounds:hn,visibleW:rn,visibleH:kn}},Aw=(t,a)=>{const{x:p,y:E,right:z,bottom:Y}=a,{x:re,y:xe,width:Ee,height:Be}=t,je=Math.max(p,z-Ee),et=Math.max(E,Y-Be),st=ku(re,p,je),mt=ku(xe,E,et),Mt=Math.min(st+Ee,z)-st,Xt=Math.min(mt+Be,Y)-mt;return Hs(st,mt,Mt,Xt)},Xg=(t,a,p)=>{const E=O(a.bottom-p.y),z=O(p.bottom-a.y),Y=cw(t,z,z,E),re=O(a.right-p.x),xe=O(p.right-a.x);return{maxWidth:Eb(t,xe,xe,re),maxHeight:Y}},p4=(t,a,p,E)=>{const z=t.bubble,Y=z.offset,re=Rb(E,t.restriction,Y),xe=t.x+Y.left,Ee=t.y+Y.top,Be=Hs(xe,Ee,a,p),{originInBounds:je,sizeInBounds:et,visibleW:st,visibleH:mt}=cT(Be,re),Mt=je&&et,Xt=Mt?Be:Aw(Be,re),Dn=Xt.width>0&&Xt.height>0,{maxWidth:hn,maxHeight:rn}=Xg(t.direction,Xt,E),kn={rect:Xt,maxHeight:rn,maxWidth:hn,direction:t.direction,placement:t.placement,classes:{on:z.classesOn,off:z.classesOff},layout:t.label,testY:Ee};return Mt||t.alwaysFit?y1.fit(kn):y1.nofit(kn,st,mt,Dn)},v4=(t,a,p,E,z,Y)=>{const re=E.width,xe=E.height,Ee=(je,et,st,mt,Mt)=>{const Xt=je(p,E,z,t,Y),Dn=p4(Xt,re,xe,Y);return Dn.fold(O(Dn),(hn,rn,kn,Vn)=>(Mt===Vn?kn>mt||rn>st:!Mt&&Vn)?Dn:y1.nofit(et,st,mt,Mt))};return ke(a,(je,et)=>{const st=M(Ee,et);return je.fold(O(je),st)},y1.nofit({rect:p,maxHeight:E.height,maxWidth:E.width,direction:f1(),placement:"southeast",classes:{on:[],off:[]},layout:"none",testY:p.y},-1,-1,!1)).fold(D,D)},Mw=t=>{const a=q(P.none()),p=()=>a.get().each(t);return{clear:()=>{p(),a.set(P.none())},isSet:()=>a.get().isSome(),get:()=>a.get(),set:xe=>{p(),a.set(P.some(xe))}}},y4=()=>Mw(t=>t.destroy()),Oh=()=>Mw(t=>t.unbind()),ia=()=>{const t=Mw(C);return{...t,on:p=>t.get().each(p)}},Ew=j,sc=(t,a,p)=>gm(t,a,Ew,p),Pb=(t,a,p)=>N0(t,a,Ew,p),_w=I0,Rw=["top","bottom","right","left"],Ib="data-alloy-transition-timer",uT=(t,a)=>Al(t,a.classes),b4=(t,a,p)=>p.exists(E=>{const z=t.mode;return z==="all"?!0:E[z]!==a[z]}),x4=(t,a)=>{const p=E=>parseFloat(E).toFixed(3);return Yt(a,(E,z)=>{const Y=t[z].map(p),re=E.map(p);return!Zn(Y,re)}).isSome()},mv=t=>{const a=Y=>{const xe=Ms(t,Y).split(/\s*,\s*/);return Ce(xe,fn)},p=Y=>{if(A(Y)&&/^[\d.]+/.test(Y)){const re=parseFloat(Y);return pt(Y,"ms")?re:re*1e3}else return 0},E=a("transition-delay"),z=a("transition-duration");return ke(z,(Y,re,xe)=>{const Ee=p(E[xe])+p(re);return Math.max(Y,Ee)},0)},fT=(t,a)=>{const p=Oh(),E=Oh();let z;const Y=Be=>{var je;const et=(je=Be.raw.pseudoElement)!==null&&je!==void 0?je:"";return Qt(Be.target,t)&&tn(et)&&he(Rw,Be.raw.propertyName)},re=Be=>{if(u(Be)||Y(Be)){p.clear(),E.clear();const je=Be==null?void 0:Be.raw.type;(u(je)||je===Ii())&&(clearTimeout(z),Xa(t,Ib),Su(t,a.classes))}},xe=sc(t,tc(),Be=>{Y(Be)&&(xe.unbind(),p.set(sc(t,Ii(),re)),E.set(sc(t,xc(),re)))}),Ee=mv(t);requestAnimationFrame(()=>{z=setTimeout(re,Ee+17),Lr(t,Ib,z)})},i$=(t,a)=>{Us(t,a.classes),yi(t,Ib).each(p=>{clearTimeout(parseInt(p,10)),Xa(t,Ib)}),fT(t,a)},$m=(t,a,p,E,z,Y)=>{const re=b4(E,z,Y);if(re||uT(t,E)){To(t,"position",p.position);const xe=Sw(a,t),Ee=Cw(a,{...z,rect:xe}),Be=pe(Rw,je=>Ee[je]);x4(p,Be)&&(ur(t,Be),re&&i$(t,E),Ks(t))}else Su(t,E.classes)},w4=t=>({width:Wu(t),height:cu(t)}),gv=(t,a,p,E)=>{Bo(a,"max-height"),Bo(a,"max-width");const z=w4(a);return v4(a,E.preference,t,z,p,E.bounds)},C4=(t,a)=>{const p=a.classes;Su(t,p.off),Us(t,p.on)},Lw=(t,a,p)=>{const E=p.maxHeightFunction;E(t,a.maxHeight)},dT=(t,a,p)=>{const E=p.maxWidthFunction;E(t,a.maxWidth)},Jg=(t,a,p)=>{const E=Cw(p.origin,a);p.transition.each(z=>{$m(t,p.origin,E,z,a,p.lastPlacement)}),aT(t,E)},S4=(t,a)=>{g4(t,a.placement)},hT=(t,a)=>{uu(t,Math.floor(a))},mT=O((t,a)=>{hT(t,a),Mi(t,{"overflow-x":"hidden","overflow-y":"auto"})}),pv=O((t,a)=>{hT(t,a)}),gT=(t,a,p)=>t[a]===void 0?p:t[a],Dw=(t,a,p,E,z,Y,re,xe)=>{const Ee=gT(re,"maxHeightFunction",mT()),Be=gT(re,"maxWidthFunction",C),je=t.anchorBox,et=t.origin,st={bounds:f4(et,Y),origin:et,preference:E,maxHeightFunction:Ee,maxWidthFunction:Be,lastPlacement:z,transition:xe};return T4(je,a,p,st)},T4=(t,a,p,E)=>{const z=gv(t,a,p,E);return Jg(a,z,E),S4(a,z),C4(a,z),Lw(a,z,E),dT(a,z,E),{layout:z.layout,placement:z.placement}},pT=["valignCentre","alignLeft","alignRight","alignCentre","top","bottom","left","right","inset"],Nd=(t,a,p,E=1)=>{const z=t*E,Y=a*E,re=Ee=>Ft(p,Ee).getOr([]),xe=(Ee,Be,je)=>{const et=ue(pT,je);return{offset:Ma(Ee,Be),classesOn:ie(je,re),classesOff:ie(et,re)}};return{southeast:()=>xe(-t,a,["top","alignLeft"]),southwest:()=>xe(t,a,["top","alignRight"]),south:()=>xe(-t/2,a,["top","alignCentre"]),northeast:()=>xe(-t,-a,["bottom","alignLeft"]),northwest:()=>xe(t,-a,["bottom","alignRight"]),north:()=>xe(-t/2,-a,["bottom","alignCentre"]),east:()=>xe(t,-a/2,["valignCentre","left"]),west:()=>xe(-t,-a/2,["valignCentre","right"]),insetNortheast:()=>xe(z,Y,["top","alignLeft","inset"]),insetNorthwest:()=>xe(-z,Y,["top","alignRight","inset"]),insetNorth:()=>xe(-z/2,Y,["top","alignCentre","inset"]),insetSoutheast:()=>xe(z,-Y,["bottom","alignLeft","inset"]),insetSouthwest:()=>xe(-z,-Y,["bottom","alignRight","inset"]),insetSouth:()=>xe(-z/2,-Y,["bottom","alignCentre","inset"]),insetEast:()=>xe(-z,-Y/2,["valignCentre","right","inset"]),insetWest:()=>xe(z,-Y/2,["valignCentre","left","inset"])}},b1=()=>Nd(0,0,{}),x1=D,Nb=(t,a)=>p=>w1(p)==="rtl"?a:t,w1=t=>Ms(t,"direction")==="rtl"?"rtl":"ltr";var tf;(function(t){t.TopToBottom="toptobottom",t.BottomToTop="bottomtotop"})(tf||(tf={}));const vv="data-alloy-vertical-dir",C1=t=>ow(t,a=>St(a)&&Ka(a,"data-alloy-vertical-dir")===tf.BottomToTop),Om=()=>Ql("layouts",[qn("onLtr"),qn("onRtl"),Ia("onBottomLtr"),Ia("onBottomRtl")]),Fb=(t,a,p,E,z,Y,re)=>{const xe=re.map(C1).getOr(!1),Ee=a.layouts.map(mt=>mt.onLtr(t)),Be=a.layouts.map(mt=>mt.onRtl(t)),je=xe?a.layouts.bind(mt=>mt.onBottomLtr.map(Mt=>Mt(t))).or(Ee).getOr(z):Ee.getOr(p),et=xe?a.layouts.bind(mt=>mt.onBottomRtl.map(Mt=>Mt(t))).or(Be).getOr(Y):Be.getOr(E);return Nb(je,et)(t)},k4=(t,a,p)=>{const E=a.hotspot,z=Sw(p,E.element),Y=Fb(t.element,a,Db(),yw(),vw(),q3(),P.some(a.hotspot.element));return P.some(x1({anchorBox:z,bubble:a.bubble.getOr(b1()),overrides:a.overrides,layouts:Y}))};var A4=[qn("hotspot"),Ia("bubble"),En("overrides",{}),Om(),rs("placement",k4)];const vT=(t,a,p)=>{const E=Tw(p,a.x,a.y),z=Hs(E.left,E.top,a.width,a.height),Y=Fb(t.element,a,pw(),g1(),pw(),g1(),P.none());return P.some(x1({anchorBox:z,bubble:a.bubble,overrides:a.overrides,layouts:Y}))};var M4=[qn("x"),qn("y"),En("height",0),En("width",0),En("bubble",b1()),En("overrides",{}),Om(),rs("placement",vT)];const $w=Ae.generate([{screen:["point"]},{absolute:["point","scrollLeft","scrollTop"]}]),E4=t=>t.fold(D,(a,p,E)=>a.translate(-p,-E)),_4=t=>t.fold(D,D),yT=t=>ke(t,(a,p)=>a.translate(p.left,p.top),Ma(0,0)),R4=t=>{const a=ne(t,E4);return yT(a)},bT=t=>{const a=ne(t,_4);return yT(a)},L4=$w.screen,Bb=$w.absolute,D4=(t,a,p)=>{const E=Qn(p.root).dom,z=Y=>{const re=Sn(Y),xe=Sn(t.element);return Qt(re,xe)};return P.from(E.frameElement).map(zt.fromDom).filter(z).map(al)},xT=(t,a,p)=>{const E=Sn(t.element),z=ll(E),Y=D4(t,a,p).getOr(z);return Bb(Y,z.left,z.top)},yv=(t,a,p,E)=>{const z=L4(Ma(t,a));return P.some(Ip(z,p,E))},Ow=(t,a,p,E,z)=>t.map(Y=>{const re=[a,Y.point],xe=d4(E,()=>bT(re),()=>bT(re),()=>R4(re)),Ee=Td(xe.left,xe.top,Y.width,Y.height),Be=p.showAbove?vw():Db(),je=p.showAbove?q3():yw(),et=Fb(z,p,Be,je,Be,je,P.none());return x1({anchorBox:Ee,bubble:p.bubble.getOr(b1()),overrides:p.overrides,layouts:et})}),Pw=(t,a,p)=>{const E=xT(t,p,a);return a.node.filter(Wa).bind(z=>{const Y=z.dom.getBoundingClientRect(),re=yv(Y.left,Y.top,Y.width,Y.height),xe=a.node.getOr(t.element);return Ow(re,E,a,p,xe)})};var Iw=[qn("node"),qn("root"),Ia("bubble"),Om(),En("overrides",{}),En("showAbove",!1),rs("placement",Pw)];const wT="\uFEFF",Nw=" ",Hb={create:(t,a,p,E)=>({start:t,soffset:a,finish:p,foffset:E})},zb=Ae.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),O4=(t,a,p,E)=>t.fold(a,p,E),Fw=t=>t.fold(D,D,D),CT=zb.before,P4=zb.on,Bw=zb.after,I4={before:CT,on:P4,after:Bw,cata:O4,getStart:Fw},bv=Ae.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),N4=t=>bv.exact(t.start,t.soffset,t.finish,t.foffset),Hw=t=>t.match({domRange:a=>zt.fromDom(a.startContainer),relative:(a,p)=>I4.getStart(a),exact:(a,p,E,z)=>a}),F4=bv.domRange,B4=bv.relative,H4=bv.exact,ST=t=>{const a=Hw(t);return Qn(a)},z4=Hb.create,fl={domRange:F4,relative:B4,exact:H4,exactFromRange:N4,getWin:ST,range:z4},l$=(t,a)=>{a.fold(p=>{t.setStartBefore(p.dom)},(p,E)=>{t.setStart(p.dom,E)},p=>{t.setStartAfter(p.dom)})},xv=(t,a)=>{a.fold(p=>{t.setEndBefore(p.dom)},(p,E)=>{t.setEnd(p.dom,E)},p=>{t.setEndAfter(p.dom)})},Vb=(t,a,p)=>{const E=t.document.createRange();return l$(E,a),xv(E,p),E},TT=(t,a,p,E,z)=>{const Y=t.document.createRange();return Y.setStart(a.dom,p),Y.setEnd(E.dom,z),Y},zw=t=>({left:t.left,top:t.top,right:t.right,bottom:t.bottom,width:t.width,height:t.height}),kT=t=>{const a=t.getClientRects(),p=a.length>0?a[0]:t.getBoundingClientRect();return p.width>0||p.height>0?P.some(p).map(zw):P.none()},AT=t=>{const a=t.getBoundingClientRect();return a.width>0||a.height>0?P.some(a).map(zw):P.none()},Qg=Ae.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),S1=(t,a,p)=>a(zt.fromDom(p.startContainer),p.startOffset,zt.fromDom(p.endContainer),p.endOffset),V4=(t,a)=>a.match({domRange:p=>({ltr:O(p),rtl:P.none}),relative:(p,E)=>({ltr:Ps(()=>Vb(t,p,E)),rtl:Ps(()=>P.some(Vb(t,E,p)))}),exact:(p,E,z,Y)=>({ltr:Ps(()=>TT(t,p,E,z,Y)),rtl:Ps(()=>P.some(TT(t,z,Y,p,E)))})}),U4=(t,a)=>{const p=a.ltr();return p.collapsed?a.rtl().filter(z=>z.collapsed===!1).map(z=>Qg.rtl(zt.fromDom(z.endContainer),z.endOffset,zt.fromDom(z.startContainer),z.startOffset)).getOrThunk(()=>S1(t,Qg.ltr,p)):S1(t,Qg.ltr,p)},T1=(t,a)=>{const p=V4(t,a);return U4(t,p)},Vw=(t,a)=>T1(t,a).match({ltr:(E,z,Y,re)=>{const xe=t.document.createRange();return xe.setStart(E.dom,z),xe.setEnd(Y.dom,re),xe},rtl:(E,z,Y,re)=>{const xe=t.document.createRange();return xe.setStart(Y.dom,re),xe.setEnd(E.dom,z),xe}});Qg.ltr,Qg.rtl;const MT=(t,a,p)=>Ce(Vr(t,p),a),Xi=(t,a)=>qt(a,t),ET=(t,a,p,E)=>{const Y=Sn(t).dom.createRange();return Y.setStart(t.dom,a),Y.setEnd(p.dom,E),Y},Uw=(t,a,p,E)=>{const z=ET(t,a,p,E),Y=Qt(t,p)&&a===E;return z.collapsed&&!Y},c$=t=>P.from(t.getSelection()),wv=t=>{if(t.rangeCount>0){const a=t.getRangeAt(0),p=t.getRangeAt(t.rangeCount-1);return P.some(Hb.create(zt.fromDom(a.startContainer),a.startOffset,zt.fromDom(p.endContainer),p.endOffset))}else return P.none()},W4=t=>{if(t.anchorNode===null||t.focusNode===null)return wv(t);{const a=zt.fromDom(t.anchorNode),p=zt.fromDom(t.focusNode);return Uw(a,t.anchorOffset,p,t.focusOffset)?P.some(Hb.create(a,t.anchorOffset,p,t.focusOffset)):wv(t)}},_T=t=>c$(t).filter(a=>a.rangeCount>0).bind(W4),Ww=(t,a)=>{const p=Vw(t,a);return kT(p)},k1=(t,a)=>{const p=Vw(t,a);return AT(p)},Cv=((t,a)=>{const p=Y=>{if(!t(Y))throw new Error("Can only get "+a+" value of a "+a+" node");return E(Y).getOr("")},E=Y=>t(Y)?P.from(Y.dom.nodeValue):P.none();return{get:p,getOption:E,set:(Y,re)=>{if(!t(Y))throw new Error("Can only set raw "+a+" value of a "+a+" node");Y.dom.nodeValue=re}}})(kt,"text"),G4=t=>Cv.get(t),Pm=(t,a)=>({element:t,offset:a}),RT=(t,a)=>{const p=Kr(t);if(p.length===0)return Pm(t,a);if(akt(t)?Pm(t,a):RT(t,a),Nm=t=>t.foffset!==void 0,Gw=(t,a)=>a.getSelection.getOrThunk(()=>()=>_T(t))().map(E=>{if(Nm(E)){const z=Im(E.start,E.soffset),Y=Im(E.finish,E.foffset);return fl.range(z.element,z.offset,Y.element,Y.offset)}else return E}),LT=(t,a,p)=>{const E=Qn(a.root).dom,z=xT(t,p,a),Y=Gw(E,a).bind(Ee=>{if(Nm(Ee))return k1(E,fl.exactFromRange(Ee)).orThunk(()=>{const je=zt.fromText(wT);hu(Ee.start,je);const et=Ww(E,fl.exact(je,0,je,1));return Xl(je),et}).bind(je=>yv(je.left,je.top,je.width,je.height));{const Be=Xe(Ee,et=>et.dom.getBoundingClientRect()),je={left:Math.min(Be.firstCell.left,Be.lastCell.left),right:Math.max(Be.firstCell.right,Be.lastCell.right),top:Math.min(Be.firstCell.top,Be.lastCell.top),bottom:Math.max(Be.firstCell.bottom,Be.lastCell.bottom)};return yv(je.left,je.top,je.right-je.left,je.bottom-je.top)}}),xe=Gw(E,a).bind(Ee=>Nm(Ee)?St(Ee.start)?P.some(Ee.start):fr(Ee.start):P.some(Ee.firstCell)).getOr(t.element);return Ow(Y,z,a,p,xe)};var u$=[Ia("getSelection"),qn("root"),Ia("bubble"),Om(),En("overrides",{}),En("showAbove",!1),rs("placement",LT)];const Zw="link-layout",Fm=t=>t.x+t.width,Fd=(t,a)=>t.x-a.width,A1=(t,a)=>t.y-a.height+t.height,Sv=t=>t.y,jw=(t,a,p)=>Zi(Fm(t),Sv(t),p.southeast(),f1(),"southeast",Ds(t,{left:0,top:2}),Zw),Ph=(t,a,p)=>Zi(Fd(t,a),Sv(t),p.southwest(),uw(),"southwest",Ds(t,{right:1,top:2}),Zw),td=(t,a,p)=>Zi(Fm(t),A1(t,a),p.northeast(),_b(),"northeast",Ds(t,{left:0,bottom:3}),Zw),M1=(t,a,p)=>Zi(Fd(t,a),A1(t,a),p.northwest(),Pd(),"northwest",Ds(t,{right:1,bottom:3}),Zw),Wb=()=>[jw,Ph,td,M1],E1=()=>[Ph,jw,M1,td],Yw=(t,a,p)=>{const E=Sw(p,a.item.element),z=Fb(t.element,a,Wb(),E1(),Wb(),E1(),P.none());return P.some(x1({anchorBox:E,bubble:b1(),overrides:a.overrides,layouts:z}))};var Tv=[qn("item"),Om(),En("overrides",{}),rs("placement",Yw)],_1=fa("type",{selection:u$,node:Iw,hotspot:A4,submenu:Tv,makeshift:M4});const Kw=[Ol("classes",Ui),bc("mode","all",["all","layout","placement"])],DT=[En("useFixed",H),Ia("getBounds")],Bm=[yc("anchor",_1),Ql("transition",Kw)],Gb=()=>{const t=document.documentElement;return v1(0,0,t.clientWidth,t.clientHeight)},Z4=t=>{const a=al(t.element),p=t.element.dom.getBoundingClientRect();return ac(a.left,a.top,p.width,p.height)},$T=(t,a,p,E,z,Y)=>{const re=m4(a.anchorBox,t);return Dw(re,E.element,a.bubble,a.layouts,z,p,a.overrides,Y)},Xw=(t,a,p,E,z)=>{const Y=P.none();gi(t,a,p,E,z,Y)},gi=(t,a,p,E,z,Y)=>{const re=ul("placement.info",io(Bm),z),xe=re.anchor,Ee=E.element,Be=p.get(E.uid);Ur(()=>{To(Ee,"position","fixed");const je=Rs(Ee,"visibility");To(Ee,"visibility","hidden");const et=a.useFixed()?Gb():Z4(t);xe.placement(t,xe,et).each(st=>{const mt=Y.orThunk(()=>a.getBounds.map(F)),Mt=$T(et,st,mt,E,Be,re.transition);p.set(E.uid,Mt)}),je.fold(()=>{Bo(Ee,"visibility")},st=>{To(Ee,"visibility",st)}),Rs(Ee,"left").isNone()&&Rs(Ee,"top").isNone()&&Rs(Ee,"right").isNone()&&Rs(Ee,"bottom").isNone()&&sn(Rs(Ee,"position"),"fixed")&&Bo(Ee,"position")},Ee)};var OT=Object.freeze({__proto__:null,position:Xw,positionWithinBounds:gi,getMode:(t,a,p)=>a.useFixed()?"fixed":"absolute",reset:(t,a,p,E)=>{const z=E.element;fe(["position","left","right","top","bottom"],Y=>Bo(z,Y)),lT(z),p.clear(E.uid)}}),Hm=Object.freeze({__proto__:null,init:()=>{let t={};return Qc({readState:()=>t,clear:z=>{d(z)?delete t[z]:t={}},set:(z,Y)=>{t[z]=Y},get:z=>Ft(t,z)})}});const Nl=Ki({fields:DT,name:"positioning",active:rT,apis:OT,state:Hm}),kv=t=>t.getSystem().isConnected(),R1=t=>{pa(t,Sm());const a=t.components();fe(a,R1)},Av=t=>{const a=t.components();fe(a,Av),pa(t,Cu())},Jw=(t,a)=>{t.getSystem().addToWorld(a),Wa(t.element)&&Av(a)},Mv=t=>{R1(t),t.getSystem().removeFromWorld(t)},qg=(t,a)=>{pc(t.element,a.element)},nd=t=>{fe(t.components(),a=>Xl(a.element)),pm(t.element),t.syncComponents()},j4=(t,a,p)=>{const E=t.components();nd(t);const z=p(a),Y=ue(E,z);fe(Y,re=>{R1(re),t.getSystem().removeFromWorld(re)}),fe(z,re=>{kv(re)?qg(t,re):(t.getSystem().addToWorld(re),qg(t,re),Wa(t.element)&&Av(re))}),t.syncComponents()},Y4=(t,a,p)=>{const E=t.components(),z=ie(a,xe=>Kp(xe).toArray());fe(E,xe=>{he(z,xe)||Mv(xe)});const Y=p(a),re=ue(E,Y);fe(re,xe=>{kv(xe)&&Mv(xe)}),fe(Y,xe=>{kv(xe)||Jw(t,xe)}),t.syncComponents()},zm=(t,a)=>{Ev(t,a,pc)},Ev=(t,a,p)=>{t.getSystem().addToWorld(a),p(t.element,a.element),Wa(t.element)&&Av(a),t.syncComponents()},jb=t=>{R1(t),Xl(t.element),t.getSystem().removeFromWorld(t)},Bd=t=>{const a=Bn(t.element).bind(p=>t.getSystem().getByDom(p).toOptional());jb(t),a.each(p=>{p.syncComponents()})},Qw=t=>{const a=t.components();fe(a,jb),pm(t.element),t.syncComponents()},dl=(t,a)=>{Tf(t,a,pc)},Nh=(t,a)=>{Tf(t,a,Lg)},Tf=(t,a,p)=>{p(t,a.element);const E=Kr(a.element);fe(E,z=>{a.getByDom(z).each(Av)})},_v=t=>{const a=Kr(t.element);fe(a,p=>{t.getByDom(p).each(R1)}),Xl(t.element)},ic=(t,a,p,E)=>{p.get().each(re=>{Qw(t)});const z=a.getAttachPoint(t);zm(z,t);const Y=t.getSystem().build(E);return zm(t,Y),p.set(Y),Y},Nc=(t,a,p,E)=>{const z=ic(t,a,p,E);return a.onOpen(t,z),z},Sc=(t,a,p,E)=>p.get().map(()=>ic(t,a,p,E)),kf=(t,a,p,E,z)=>{L1(t,a),Nc(t,a,p,E),z(),D1(t,a)},Yb=(t,a,p)=>{p.get().each(E=>{Qw(t),Bd(t),a.onClose(t,E),p.clear()})},Mu=(t,a,p)=>p.isOpen(),ep=(t,a,p,E)=>Mu(t,a,p)&&p.get().exists(z=>a.isPartOf(t,z,E)),qw=(t,a,p)=>p.get(),K4=(t,a,p,E)=>{Rs(t.element,a).fold(()=>{Xa(t.element,p)},z=>{Lr(t.element,p,z)}),To(t.element,a,E)},PT=(t,a,p)=>{yi(t.element,p).fold(()=>Bo(t.element,a),E=>To(t.element,a,E))},L1=(t,a,p)=>{const E=a.getAttachPoint(t);To(t.element,"position",Nl.getMode(E)),K4(t,"visibility",a.cloakVisibilityAttr,"hidden")},IT=t=>ge(["top","left","right","bottom"],a=>Rs(t,a).isSome()),D1=(t,a,p)=>{IT(t.element)||Bo(t.element,"position"),PT(t,"visibility",a.cloakVisibilityAttr)};var Kb=Object.freeze({__proto__:null,cloak:L1,decloak:D1,open:Nc,openWhileCloaked:kf,close:Yb,isOpen:Mu,isPartOf:ep,getState:qw,setContent:Sc}),NT=Object.freeze({__proto__:null,events:(t,a)=>bs([Xn(wu(),(p,E)=>{Yb(p,t,a)})])}),J4=[Sa("onOpen"),Sa("onClose"),qn("isPartOf"),qn("getAttachPoint"),En("cloakVisibilityAttr","data-precloak-visibility")],FT=Object.freeze({__proto__:null,init:()=>{const t=ia(),a=O("not-implemented");return Qc({readState:a,isOpen:t.isSet,clear:t.clear,set:t.set,get:t.get})}});const va=Ki({fields:J4,name:"sandboxing",active:NT,apis:Kb,state:FT}),rd=O("dismiss.popups"),tp=O("reposition.popups"),eC=O("mouse.released"),BT=es([En("isExtraPart",H),Ql("fireEventInstead",[En("event",Tm())])]),$1=t=>{const a=ul("Dismissal",BT,t);return{[rd()]:{schema:es([qn("target")]),onReceive:(p,E)=>{va.isOpen(p)&&(va.isPartOf(p,E.target)||a.isExtraPart(p,E.target)||a.fireEventInstead.fold(()=>va.close(p),Y=>pa(p,Y.event)))}}}},Q4=es([Ql("fireEventInstead",[En("event",D3())]),bu("doReposition")]),Rv=t=>{const a=ul("Reposition",Q4,t);return{[tp()]:{onReceive:p=>{va.isOpen(p)&&a.fireEventInstead.fold(()=>a.doReposition(p),E=>pa(p,E.event))}}}},Xb=(t,a,p)=>{a.store.manager.onLoad(t,a,p)},Eu=(t,a,p)=>{a.store.manager.onUnload(t,a,p)};var Vm=Object.freeze({__proto__:null,onLoad:Xb,onUnload:Eu,setValue:(t,a,p,E)=>{a.store.manager.setValue(t,a,p,E)},getValue:(t,a,p)=>a.store.manager.getValue(t,a,p),getState:(t,a,p)=>p}),qb=Object.freeze({__proto__:null,events:(t,a)=>{const p=t.resetOnDom?[ms((E,z)=>{Xb(E,t,a)}),_d((E,z)=>{Eu(E,t,a)})]:[$b(t,a,Xb)];return bs(p)}});const np=()=>{const t=q(null),a=()=>({mode:"memory",value:t.get()}),p=()=>t.get()===null,E=()=>{t.set(null)};return Qc({set:t.set,get:t.get,isNotSet:p,clear:E,readState:a})},q4=()=>Qc({readState:C}),HT=()=>{const t=q({}),a=q({});return Qc({readState:()=>({mode:"dataset",dataByValue:t.get(),dataByText:a.get()}),lookup:re=>Ft(t.get(),re).orThunk(()=>Ft(a.get(),re)),update:re=>{const xe=t.get(),Ee=a.get(),Be={},je={};fe(re,et=>{Be[et.value]=et,Ft(et,"meta").each(st=>{Ft(st,"text").each(mt=>{je[mt]=et})})}),t.set({...xe,...Be}),a.set({...Ee,...je})},clear:()=>{t.set({}),a.set({})}})};var Dv=Object.freeze({__proto__:null,memory:np,dataset:HT,manual:q4,init:t=>t.store.manager.state(t)});const Fh=(t,a,p,E)=>{const z=a.store;p.update([E]),z.setValue(t,E),a.onSetValue(t,E)},t_=(t,a,p)=>{const E=a.store,z=E.getDataKey(t);return p.lookup(z).getOrThunk(()=>E.getFallbackEntry(z))},n_=(t,a,p)=>{a.store.initialValue.each(z=>{Fh(t,a,p,z)})},zT=(t,a,p)=>{p.clear()};var tC=[Ia("initialValue"),qn("getFallbackEntry"),qn("getDataKey"),qn("setValue"),rs("manager",{setValue:Fh,getValue:t_,onLoad:n_,onUnload:zT,state:HT})];const nC=(t,a,p)=>a.store.getValue(t),rC=(t,a,p,E)=>{a.store.setValue(t,E),a.onSetValue(t,E)},ex=(t,a,p)=>{a.store.initialValue.each(E=>{a.store.setValue(t,E)})};var Um=[qn("getValue"),En("setValue",C),Ia("initialValue"),rs("manager",{setValue:rC,getValue:nC,onLoad:ex,onUnload:C,state:wf.init})];const VT=(t,a,p,E)=>{p.set(E),a.onSetValue(t,E)},O1=(t,a,p)=>p.get(),oC=(t,a,p)=>{a.store.initialValue.each(E=>{p.isNotSet()&&p.set(E)})},r_=(t,a,p)=>{p.clear()};var P1=[Ia("initialValue"),rs("manager",{setValue:VT,getValue:O1,onLoad:oC,onUnload:r_,state:np})],o_=[ql("store",{mode:"memory"},fa("mode",{memory:P1,manual:Um,dataset:tC})),Sa("onSetValue"),En("resetOnDom",!1)];const Fr=Ki({fields:o_,name:"representing",active:qb,apis:Vm,extra:{setValueFrom:(t,a)=>{const p=Fr.getValue(a);Fr.setValue(t,p)}},state:Dv}),Fi=(t,a)=>U(t,{},ne(a,p=>Up(p.name(),"Cannot configure "+p.name()+" for "+t)).concat([zs("dump",D)])),Bh=t=>t.dump,Si=(t,a)=>({...gr(a),...t.dump}),nf={field:Fi,augment:Si,get:Bh},tx="placeholder",I1=Ae.generate([{single:["required","valueThunk"]},{multiple:["required","valueThunks"]}]),od=t=>pn(t,"uiType"),nx=(t,a,p,E)=>t.exists(z=>z!==p.owner)?I1.single(!0,O(p)):Ft(E,p.name).fold(()=>{throw new Error("Unknown placeholder component: "+p.name+` -Known: [`+ot(E)+`] -Namespace: `+t.getOr("none")+` -Spec: `+JSON.stringify(p,null,2))},z=>z.replace()),rx=(t,a,p,E)=>od(p)&&p.uiType===tx?nx(t,a,p,E):I1.single(!1,O(p)),$v=(t,a,p,E)=>rx(t,a,p,E).fold((Y,re)=>{const xe=od(p)?re(a,p.config,p.validated):re(a),Ee=Ft(xe,"components").getOr([]),Be=ie(Ee,je=>$v(t,a,je,E));return[{...xe,components:Be}]},(Y,re)=>{if(od(p)){const xe=re(a,p.config,p.validated);return p.validated.preprocess.getOr(D)(xe)}else return re(a)}),UT=(t,a,p,E)=>ie(p,z=>$v(t,a,z,E)),N1=(t,a)=>{let p=!1;const E=()=>p,z=()=>{if(p)throw new Error("Trying to use the same placeholder more than once: "+t);return p=!0,a},Y=()=>a.fold((re,xe)=>re,(re,xe)=>re);return{name:O(t),required:Y,used:E,replace:z}},aC=(t,a,p,E)=>{const z=Xe(E,(re,xe)=>N1(xe,re)),Y=UT(t,a,p,z);return Ge(z,re=>{if(re.used()===!1&&re.required())throw new Error("Placeholder: "+re.name()+` was not found in components list -Namespace: `+t.getOr("none")+` -Components: `+JSON.stringify(a.components,null,2))}),Y},sC=I1.single,a_=I1.multiple,ad=O(tx),ox=Ae.generate([{required:["data"]},{external:["data"]},{optional:["data"]},{group:["data"]}]),Ov=En("factory",{sketch:D}),El=En("schema",[]),$i=qn("name"),ax=Wi("pname","pname",Xu(t=>""),oi()),F1=zs("schema",()=>[Ia("preprocess")]),sx=En("defaults",O({})),B1=En("overrides",O({})),H1=io([Ov,El,$i,ax,sx,B1]),Pv=io([Ov,El,$i,sx,B1]),WT=io([Ov,El,$i,ax,sx,B1]),z1=io([Ov,F1,$i,qn("unit"),ax,sx,B1]),GT=t=>t.fold(P.some,P.none,P.some,P.some),ZT=t=>{const a=p=>p.name;return t.fold(a,a,a,a)},jT=t=>t.fold(D,D,D,D),rf=(t,a)=>p=>{const E=ul("Converting part type",a,p);return t(E)},Fl=rf(ox.required,H1),Af=rf(ox.external,Pv),Fc=rf(ox.optional,WT),V1=rf(ox.group,z1),ix=O("entirety");var YT=Object.freeze({__proto__:null,required:Fl,external:Af,optional:Fc,group:V1,asNamedPart:GT,name:ZT,asCommon:jT,original:ix});const U1=(t,a,p,E)=>hs(a.defaults(t,p,E),p,{uid:t.partUids[a.name]},a.overrides(t,p,E)),s_=(t,a,p)=>{const E={},z={};return fe(p,Y=>{Y.fold(re=>{E[re.pname]=sC(!0,(xe,Ee,Be)=>re.factory.sketch(U1(xe,re,Ee,Be)))},re=>{const xe=a.parts[re.name];z[re.name]=O(re.factory.sketch(U1(a,re,xe[ix()]),xe))},re=>{E[re.pname]=sC(!1,(xe,Ee,Be)=>re.factory.sketch(U1(xe,re,Ee,Be)))},re=>{E[re.pname]=a_(!0,(xe,Ee,Be)=>{const je=xe[re.name];return ne(je,et=>re.factory.sketch(hs(re.defaults(xe,et,Be),et,re.overrides(xe,et))))})})}),{internals:O(E),externals:O(z)}},Hh=(t,a)=>{const p={};return fe(a,E=>{GT(E).each(z=>{const Y=W1(t,z.pname);p[z.name]=re=>{const xe=ul("Part: "+z.name+" in "+t,io(z.schema),re);return{...Y,config:re,validated:xe}}})}),p},W1=(t,a)=>({uiType:ad(),owner:t,name:a}),iC=(t,a,p)=>({uiType:ad(),owner:t,name:a,config:p,validated:{}}),KT=t=>ie(t,a=>a.fold(P.none,P.some,P.none,P.none).map(p=>Dc(p.name,p.schema.concat([u1(ix())]))).toArray()),XT=t=>ne(t,ZT),lC=(t,a,p)=>s_(t,a,p),lx=(t,a,p)=>aC(P.some(t),a,a.components,p),gs=(t,a,p)=>{const E=a.partUids[p];return t.getSystem().getByUid(E).toOptional()},zh=(t,a,p)=>gs(t,a,p).getOrDie("Could not find part: "+p),JT=(t,a,p)=>{const E={},z=a.partUids,Y=t.getSystem();return fe(p,re=>{E[re]=O(Y.getByUid(z[re]))}),E},cC=(t,a)=>{const p=t.getSystem();return Xe(a.partUids,(E,z)=>O(p.getByUid(E)))},uC=t=>ot(t.partUids),rp=(t,a,p)=>{const E={},z=a.partUids,Y=t.getSystem();return fe(p,re=>{E[re]=O(Y.getByUid(z[re]).getOrDie())}),E},fC=(t,a)=>{const p=XT(a);return bt(ne(p,E=>({key:E,value:t+"-"+E})))},dC=t=>Wi("partUids","partUids",aa(a=>fC(a.uid,t)),oi());var i_=Object.freeze({__proto__:null,generate:Hh,generateOne:iC,schemas:KT,names:XT,substitutes:lC,components:lx,defaultUids:fC,defaultUidsSchema:dC,getAllParts:cC,getAllPartNames:uC,getPart:gs,getPartOrDie:zh,getParts:JT,getPartsOrDie:rp});const Iv=(t,a)=>(t.length>0?[Dc("parts",t)]:[]).concat([qn("uid"),En("dom",{}),En("components",[]),u1("originalSpec"),En("debug.sketcher",{})]).concat(a),Nv=(t,a,p,E,z)=>{const Y=Iv(E,z);return ul(t+" [SpecSchema]",es(Y.concat(a)),p)},hC=(t,a,p,E)=>{const z=Wm(E),Y=Nv(t,a,z,[],[]);return p(Y,z)},mC=(t,a,p,E,z)=>{const Y=Wm(z),re=KT(p),xe=dC(p),Ee=Nv(t,a,Y,re,[xe]),Be=lC(t,Ee,p),je=lx(t,Ee,Be.internals());return E(Ee,je,Y,Be.externals())},Mf=t=>pn(t,"uid"),Wm=t=>Mf(t)?t:{...t,uid:jp("uid")},l_=t=>t.uid!==void 0,G1=es([qn("name"),qn("factory"),qn("configFields"),En("apis",{}),En("extraApis",{})]),c_=es([qn("name"),qn("factory"),qn("configFields"),qn("partFields"),En("apis",{}),En("extraApis",{})]),ou=t=>{const a=ul("Sketcher for "+t.name,G1,t),p=Y=>hC(a.name,a.configFields,a.factory,Y),E=Xe(a.apis,Ug),z=Xe(a.extraApis,(Y,re)=>db(Y,re));return{name:a.name,configFields:a.configFields,sketch:p,...E,...z}},Bl=t=>{const a=ul("Sketcher for "+t.name,c_,t),p=re=>mC(a.name,a.configFields,a.partFields,a.factory,re),E=Hh(a.name,a.partFields),z=Xe(a.apis,Ug),Y=Xe(a.extraApis,(re,xe)=>db(re,xe));return{name:a.name,partFields:a.partFields,configFields:a.configFields,sketch:p,parts:E,...z,...Y}},op=t=>Ut("input")(t)&&Ka(t,"type")!=="radio"||Ut("textarea")(t);var QT=Object.freeze({__proto__:null,getCurrent:(t,a,p)=>a.find(t)});const u_=[qn("find")],da=Ki({fields:u_,name:"composing",apis:QT}),gC=["input","button","textarea","select"],qT=(t,a,p)=>{(a.disabled()?tk:Z1)(t,a)},pC=(t,a)=>a.useNative===!0&&he(gC,vo(t.element)),f_=t=>Hf(t.element,"disabled"),d_=t=>{Lr(t.element,"disabled","disabled")},ek=t=>{Xa(t.element,"disabled")},h_=t=>Ka(t.element,"aria-disabled")==="true",Wr=t=>{Lr(t.element,"aria-disabled","true")},Gm=t=>{Lr(t.element,"aria-disabled","false")},tk=(t,a,p)=>{a.disableClass.each(z=>{hi(t.element,z)}),(pC(t,a)?d_:Wr)(t),a.onDisabled(t)},Z1=(t,a,p)=>{a.disableClass.each(z=>{Is(t.element,z)}),(pC(t,a)?ek:Gm)(t),a.onEnabled(t)},j1=(t,a)=>pC(t,a)?f_(t):h_(t);var m$=Object.freeze({__proto__:null,enable:Z1,disable:tk,isDisabled:j1,onLoad:qT,set:(t,a,p,E)=>{(E?tk:Z1)(t,a)}}),g_=Object.freeze({__proto__:null,exhibit:(t,a)=>qc({classes:a.disabled()?a.disableClass.toArray():[]}),events:(t,a)=>bs([U2(Ci(),(p,E)=>j1(p,t)),$b(t,a,qT)])}),nk=[bi("disabled",H),En("useNative",!0),Ia("disableClass"),Sa("onDisabled"),Sa("onEnabled")];const Co=Ki({fields:nk,name:"disabling",active:g_,apis:m$}),Vh=(t,a,p,E)=>{const z=Xi(t.element,"."+a.highlightClass);fe(z,Y=>{ge(E,xe=>Qt(xe.element,Y))||(Is(Y,a.highlightClass),t.getSystem().getByDom(Y).each(xe=>{a.onDehighlight(t,xe),pa(xe,t1())}))})},rk=(t,a,p)=>Vh(t,a,p,[]),p_=(t,a,p,E)=>{cx(t,a,p,E)&&(Is(E.element,a.highlightClass),a.onDehighlight(t,E),pa(E,t1()))},Y1=(t,a,p,E)=>{Vh(t,a,p,[E]),cx(t,a,p,E)||(hi(E.element,a.highlightClass),a.onHighlight(t,E),pa(E,e1()))},v_=(t,a,p)=>{Fv(t,a).each(E=>{Y1(t,a,p,E)})},ok=(t,a,p)=>{yC(t,a).each(E=>{Y1(t,a,p,E)})},vC=(t,a,p,E)=>{b_(t,a,p,E).fold(z=>{throw z},z=>{Y1(t,a,p,z)})},ak=(t,a,p,E)=>{const z=ux(t,a);Ve(z,E).each(re=>{Y1(t,a,p,re)})},cx=(t,a,p,E)=>Ni(E.element,a.highlightClass),y_=(t,a,p)=>mi(t.element,"."+a.highlightClass).bind(E=>t.getSystem().getByDom(E).toOptional()),b_=(t,a,p,E)=>{const z=Xi(t.element,"."+a.itemClass);return P.from(z[E]).fold(()=>Wo.error(new Error("No element found with index "+E)),t.getSystem().getByDom)},Fv=(t,a,p)=>mi(t.element,"."+a.itemClass).bind(E=>t.getSystem().getByDom(E).toOptional()),yC=(t,a,p)=>{const E=Xi(t.element,"."+a.itemClass);return(E.length>0?P.some(E[E.length-1]):P.none()).bind(Y=>t.getSystem().getByDom(Y).toOptional())},sk=(t,a,p,E)=>{const z=Xi(t.element,"."+a.itemClass);return Oe(z,re=>Ni(re,a.highlightClass)).bind(re=>{const xe=uv(re,E,0,z.length-1);return t.getSystem().getByDom(z[xe]).toOptional()})},x_=(t,a,p)=>sk(t,a,p,-1),w_=(t,a,p)=>sk(t,a,p,1),ux=(t,a,p)=>{const E=Xi(t.element,"."+a.itemClass);return an(ne(E,z=>t.getSystem().getByDom(z).toOptional()))};var Hd=Object.freeze({__proto__:null,dehighlightAll:rk,dehighlight:p_,highlight:Y1,highlightFirst:v_,highlightLast:ok,highlightAt:vC,highlightBy:ak,isHighlighted:cx,getHighlighted:y_,getFirst:Fv,getLast:yC,getPrevious:x_,getNext:w_,getCandidates:ux}),fx=[qn("highlightClass"),qn("itemClass"),Sa("onHighlight"),Sa("onDehighlight")];const Na=Ki({fields:fx,name:"highlighting",apis:Hd}),C_=[8],Uh=[9],zd=[13],dx=[27],_u=[32],hx=[37],Wh=[38],Bv=[39],K1=[40],bC=(t,a,p)=>{const E=se(t.slice(0,a)),z=se(t.slice(a+1));return Ve(E.concat(z),p)},S_=(t,a,p)=>{const E=se(t.slice(0,a));return Ve(E,p)},xC=(t,a,p)=>{const E=t.slice(0,a),z=t.slice(a+1);return Ve(z.concat(E),p)},T_=(t,a,p)=>{const E=t.slice(a+1);return Ve(E,p)},ya=t=>a=>{const p=a.raw;return he(t,p.which)},Ru=t=>a=>we(t,p=>p(a)),Zm=t=>t.raw.shiftKey===!0,k_=t=>t.raw.ctrlKey===!0,Hv=k(Zm),_a=(t,a)=>({matches:t,classification:a}),A_=(t,a)=>Ve(t,E=>E.matches(a)).map(E=>E.classification),wC=(t,a,p)=>{a.exists(z=>p.exists(Y=>Qt(Y,z)))||go(t,ab(),{prevFocus:a,newFocus:p})},I=()=>{const t=p=>Sf(p.element);return{get:t,set:(p,E)=>{const z=t(p);p.getSystem().triggerFocus(E,p.element);const Y=t(p);wC(p,z,Y)}}},W=()=>{const t=p=>Na.getHighlighted(p).map(E=>E.element);return{get:t,set:(p,E)=>{const z=t(p);p.getSystem().getByDom(E).fold(C,re=>{Na.highlight(p,re)});const Y=t(p);wC(p,z,Y)}}};var te;(function(t){t.OnFocusMode="onFocus",t.OnEnterOrSpaceMode="onEnterOrSpace",t.OnApiMode="onApi"})(te||(te={}));const me=(t,a,p,E,z)=>{const Y=()=>t.concat([En("focusManager",I()),ql("focusInside","onFocus",cl(Be=>he(["onFocus","onEnterOrSpace","onApi"],Be)?Wo.value(Be):Wo.error("Invalid value for focusInside"))),rs("handler",Ee),rs("state",a),rs("sendFocusIn",z)]),re=(Be,je,et,st,mt)=>{const Mt=et(Be,je,st,mt);return A_(Mt,je.event).bind(Xt=>Xt(Be,je,st,mt))},Ee={schema:Y,processKey:re,toEvents:(Be,je)=>{const et=Be.focusInside!==te.OnFocusMode?P.none():z(Be).map(Mt=>Xn(qu(),(Xt,Dn)=>{Mt(Xt,Be,je),Dn.stop()})),st=(Mt,Xt)=>{const Dn=ya(_u.concat(zd))(Xt.event);Be.focusInside===te.OnEnterOrSpaceMode&&Dn&&dn(Mt,Xt)&&z(Be).each(hn=>{hn(Mt,Be,je),Xt.stop()})},mt=[Xn(Ca(),(Mt,Xt)=>{re(Mt,Xt,p,Be,je).fold(()=>{st(Mt,Xt)},Dn=>{Xt.stop()})}),Xn(As(),(Mt,Xt)=>{re(Mt,Xt,E,Be,je).each(Dn=>{Xt.stop()})})];return bs(et.toArray().concat(mt))}};return Ee},Le=t=>{const a=[Ia("onEscape"),Ia("onEnter"),En("selector",'[data-alloy-tabstop="true"]:not(:disabled)'),En("firstTabstop",0),En("useTabstopAt",j),Ia("visibilitySelector")].concat([t]),p=(hn,rn)=>{const kn=hn.visibilitySelector.bind(Vn=>Qf(rn,Vn)).getOr(rn);return Ls(kn)>0},E=(hn,rn)=>{const kn=Xi(hn.element,rn.selector),Vn=Ce(kn,hr=>p(rn,hr));return P.from(Vn[rn.firstTabstop])},z=(hn,rn)=>rn.focusManager.get(hn).bind(kn=>Qf(kn,rn.selector)),Y=(hn,rn)=>p(hn,rn)&&hn.useTabstopAt(rn),re=(hn,rn,kn)=>{E(hn,rn).each(Vn=>{rn.focusManager.set(hn,Vn)})},xe=(hn,rn,kn,Vn,hr)=>hr(rn,kn,Yn=>Y(Vn,Yn)).fold(()=>Vn.cyclic?P.some(!0):P.none(),Yn=>(Vn.focusManager.set(hn,Yn),P.some(!0))),Ee=(hn,rn,kn,Vn)=>{const hr=Xi(hn.element,kn.selector);return z(hn,kn).bind(Yn=>Oe(hr,M(Qt,Yn)).bind(Mr=>xe(hn,hr,Mr,kn,Vn)))},Be=(hn,rn,kn)=>{const Vn=kn.cyclic?bC:S_;return Ee(hn,rn,kn,Vn)},je=(hn,rn,kn)=>{const Vn=kn.cyclic?xC:T_;return Ee(hn,rn,kn,Vn)},et=hn=>Hr(hn).bind(So).exists(rn=>Qt(rn,hn)),st=(hn,rn,kn)=>z(hn,kn).filter(Vn=>!kn.useTabstopAt(Vn)).bind(Vn=>(et(Vn)?Be:je)(hn,rn,kn)),mt=(hn,rn,kn)=>kn.onEnter.bind(Vn=>Vn(hn,rn)),Mt=(hn,rn,kn)=>kn.onEscape.bind(Vn=>Vn(hn,rn)),Xt=O([_a(Ru([Zm,ya(Uh)]),Be),_a(ya(Uh),je),_a(Ru([Hv,ya(zd)]),mt)]),Dn=O([_a(ya(dx),Mt),_a(ya(Uh),st)]);return me(a,wf.init,Xt,Dn,()=>P.some(re))};var Ue=Le(zs("cyclic",H)),nt=Le(zs("cyclic",j));const xt=(t,a,p)=>(lb(t,p,Ci()),P.some(!0)),Lt=(t,a,p)=>op(p)&&ya(_u)(a.event)?P.none():xt(t,a,p),Jt=(t,a)=>P.some(!0),Tn=[En("execute",Lt),En("useSpace",!1),En("useEnter",!0),En("useControlEnter",!1),En("useDown",!1)],sr=(t,a,p)=>p.execute(t,a,t.element),Dr=(t,a,p,E)=>{const z=p.useSpace&&!op(t.element)?_u:[],Y=p.useEnter?zd:[],re=p.useDown?K1:[],xe=z.concat(Y).concat(re);return[_a(ya(xe),sr)].concat(p.useControlEnter?[_a(Ru([k_,ya(zd)]),sr)]:[])},Rr=(t,a,p,E)=>p.useSpace&&!op(t.element)?[_a(ya(_u),Jt)]:[];var Jn=me(Tn,wf.init,Dr,Rr,()=>P.none());const Or=()=>{const t=ia();return Qc({readState:()=>t.get().map(z=>({numRows:String(z.numRows),numColumns:String(z.numColumns)})).getOr({numRows:"?",numColumns:"?"}),setGridSize:(z,Y)=>{t.set({numRows:z,numColumns:Y})},getNumRows:()=>t.get().map(z=>z.numRows),getNumColumns:()=>t.get().map(z=>z.numColumns)})};var oo=Object.freeze({__proto__:null,flatgrid:Or,init:t=>t.state(t)});const Ro=t=>(a,p,E,z)=>{const Y=t(a.element);return si(Y,a,p,E,z)},Qo=(t,a)=>{const p=Nb(t,a);return Ro(p)},_s=(t,a)=>{const p=Nb(a,t);return Ro(p)},Ji=t=>(a,p,E,z)=>si(t,a,p,E,z),si=(t,a,p,E,z)=>E.focusManager.get(a).bind(re=>t(a.element,re,E,z)).map(re=>(E.focusManager.set(a,re),!0)),Bc=Ji,ap=Ji,sp=Ji,CC=t=>t.offsetWidth<=0&&t.offsetHeight<=0,mx=t=>!CC(t.dom),ls=(t,a)=>Oe(t,a).map(p=>({index:p,candidates:t})),lc=(t,a,p)=>{const E=re=>Qt(re,a),z=Xi(t,p),Y=Ce(z,mx);return ls(Y,E)},_l=(t,a)=>Oe(t,p=>Qt(a,p)),Lu=(t,a,p,E)=>{const z=Math.floor(a/p),Y=a%p;return E(z,Y).bind(re=>{const xe=re.row*p+re.column;return xe>=0&&xeLu(t,a,E,(Y,re)=>{const Ee=Y===p-1?t.length-Y*E:E,Be=uv(re,z,0,Ee-1);return P.some({row:Y,column:Be})}),jm=(t,a,p,E,z)=>Lu(t,a,E,(Y,re)=>{const xe=uv(Y,z,0,p-1),Be=xe===p-1?t.length-xe*E:E,je=ku(re,0,Be-1);return P.some({row:xe,column:je})}),Tc=(t,a,p,E)=>au(t,a,p,E,1),SC=(t,a,p,E)=>au(t,a,p,E,-1),X1=(t,a,p,E)=>jm(t,a,p,E,-1),Vd=(t,a,p,E)=>jm(t,a,p,E,1),Hl=[qn("selector"),En("execute",Lt),ru("onEscape"),En("captureTab",!1),lw()],J1=(t,a,p)=>{mi(t.element,a.selector).each(E=>{a.focusManager.set(t,E)})},ik=(t,a)=>a.focusManager.get(t).bind(p=>Qf(p,a.selector)),lk=(t,a,p,E)=>ik(t,p).bind(z=>p.execute(t,a,z)),zv=t=>(a,p,E,z)=>lc(a,p,E.selector).bind(Y=>t(Y.candidates,Y.index,z.getNumRows().getOr(E.initSize.numRows),z.getNumColumns().getOr(E.initSize.numColumns))),ck=(t,a,p)=>p.captureTab?P.some(!0):P.none(),gx=(t,a,p)=>p.onEscape(t,a),uk=zv(SC),ip=zv(Tc),p$=zv(X1),pH=zv(Vd),vH=O([_a(ya(hx),Qo(uk,ip)),_a(ya(Bv),_s(uk,ip)),_a(ya(Wh),Bc(p$)),_a(ya(K1),ap(pH)),_a(Ru([Zm,ya(Uh)]),ck),_a(Ru([Hv,ya(Uh)]),ck),_a(ya(_u.concat(zd)),lk)]),yH=O([_a(ya(dx),gx),_a(ya(_u),Jt)]);var bH=me(Hl,Or,vH,yH,()=>P.some(J1));const v$=(t,a,p,E,z)=>{const Y=xe=>vo(xe)==="button"&&Ka(xe,"disabled")==="disabled",re=(xe,Ee,Be)=>z(xe,Ee,E,0,Be.length-1,Be[Ee],je=>Y(Be[je])?re(xe,je,Be):P.from(Be[je]));return lc(t,p,a).bind(xe=>{const Ee=xe.index,Be=xe.candidates;return re(Ee,Ee,Be)})},y$=(t,a,p,E)=>v$(t,a,p,E,(z,Y,re,xe,Ee,Be,je)=>{const et=ku(Y+re,xe,Ee);return et===z?P.from(Be):je(et)}),px=(t,a,p,E)=>v$(t,a,p,E,(z,Y,re,xe,Ee,Be,je)=>{const et=uv(Y,re,xe,Ee);return et===z?P.none():je(et)}),M_=[qn("selector"),En("getInitial",P.none),En("execute",Lt),ru("onEscape"),En("executeOnMove",!1),En("allowVertical",!0),En("allowHorizontal",!0),En("cycles",!0)],xH=(t,a)=>a.focusManager.get(t).bind(p=>Qf(p,a.selector)),b$=(t,a,p)=>xH(t,p).bind(E=>p.execute(t,a,E)),x$=(t,a,p)=>{a.getInitial(t).orThunk(()=>mi(t.element,a.selector)).each(E=>{a.focusManager.set(t,E)})},w$=(t,a,p)=>(p.cycles?px:y$)(t,p.selector,a,-1),C$=(t,a,p)=>(p.cycles?px:y$)(t,p.selector,a,1),Ef=t=>(a,p,E,z)=>t(a,p,E,z).bind(()=>E.executeOnMove?b$(a,p,E):P.some(!0)),wH=(t,a,p)=>p.onEscape(t,a),CH=(t,a,p,E)=>{const z=[...p.allowHorizontal?hx:[]].concat(p.allowVertical?Wh:[]),Y=[...p.allowHorizontal?Bv:[]].concat(p.allowVertical?K1:[]);return[_a(ya(z),Ef(Qo(w$,C$))),_a(ya(Y),Ef(_s(w$,C$))),_a(ya(zd),b$),_a(ya(_u),b$)]},SH=O([_a(ya(_u),Jt),_a(ya(dx),wH)]);var TH=me(M_,wf.init,CH,SH,()=>P.some(x$));const fk=(t,a,p)=>P.from(t[a]).bind(E=>P.from(E[p]).map(z=>({rowIndex:a,columnIndex:p,cell:z}))),Q1=(t,a,p,E)=>{const Y=t[a].length,re=uv(p,E,0,Y-1);return fk(t,a,re)},dk=(t,a,p,E)=>{const z=uv(p,E,0,t.length-1),Y=t[z].length,re=ku(a,0,Y-1);return fk(t,z,re)},S$=(t,a,p,E)=>{const Y=t[a].length,re=ku(p+E,0,Y-1);return fk(t,a,re)},hk=(t,a,p,E)=>{const z=ku(p+E,0,t.length-1),Y=t[z].length,re=ku(a,0,Y-1);return fk(t,z,re)},mk=(t,a,p)=>Q1(t,a,p,1),E_=(t,a,p)=>Q1(t,a,p,-1),kH=(t,a,p)=>dk(t,p,a,-1),AH=(t,a,p)=>dk(t,p,a,1),MH=(t,a,p)=>S$(t,a,p,-1),EH=(t,a,p)=>S$(t,a,p,1),_H=(t,a,p)=>hk(t,p,a,-1),RH=(t,a,p)=>hk(t,p,a,1),T$=[Dc("selectors",[qn("row"),qn("cell")]),En("cycles",!0),En("previousSelector",P.none),En("execute",Lt)],__=(t,a,p)=>{a.previousSelector(t).orThunk(()=>{const z=a.selectors;return mi(t.element,z.cell)}).each(z=>{a.focusManager.set(t,z)})},LH=(t,a,p)=>Sf(t.element).bind(E=>p.execute(t,a,E)),DH=(t,a)=>ne(t,p=>Xi(p,a.selectors.cell)),gk=(t,a)=>(p,E,z)=>{const Y=z.cycles?t:a;return Qf(E,z.selectors.row).bind(re=>{const xe=Xi(re,z.selectors.cell);return _l(xe,E).bind(Ee=>{const Be=Xi(p,z.selectors.row);return _l(Be,re).bind(je=>{const et=DH(Be,z);return Y(et,je,Ee).map(st=>st.cell)})})})},k$=gk(E_,MH),Vv=gk(mk,EH),A$=gk(kH,_H),$H=gk(AH,RH),R_=O([_a(ya(hx),Qo(k$,Vv)),_a(ya(Bv),_s(k$,Vv)),_a(ya(Wh),Bc(A$)),_a(ya(K1),ap($H)),_a(ya(_u.concat(zd)),LH)]),OH=O([_a(ya(_u),Jt)]);var M$=me(T$,wf.init,R_,OH,()=>P.some(__));const E$=[qn("selector"),En("execute",Lt),En("moveOnTab",!1)],L_=(t,a,p)=>p.focusManager.get(t).bind(E=>p.execute(t,a,E)),_$=(t,a,p)=>{mi(t.element,a.selector).each(E=>{a.focusManager.set(t,E)})},D_=(t,a,p)=>px(t,p.selector,a,-1),R$=(t,a,p)=>px(t,p.selector,a,1),PH=(t,a,p,E)=>p.moveOnTab?sp(D_)(t,a,p,E):P.none(),IH=(t,a,p,E)=>p.moveOnTab?sp(R$)(t,a,p,E):P.none(),$_=O([_a(ya(Wh),sp(D_)),_a(ya(K1),sp(R$)),_a(Ru([Zm,ya(Uh)]),PH),_a(Ru([Hv,ya(Uh)]),IH),_a(ya(zd),L_),_a(ya(_u),L_)]),NH=O([_a(ya(_u),Jt)]);var FH=me(E$,wf.init,$_,NH,()=>P.some(_$));const BH=[ru("onSpace"),ru("onEnter"),ru("onShiftEnter"),ru("onLeft"),ru("onRight"),ru("onTab"),ru("onShiftTab"),ru("onUp"),ru("onDown"),ru("onEscape"),En("stopSpaceKeyup",!1),Ia("focusIn")],HH=(t,a,p)=>[_a(ya(_u),p.onSpace),_a(Ru([Hv,ya(zd)]),p.onEnter),_a(Ru([Zm,ya(zd)]),p.onShiftEnter),_a(Ru([Zm,ya(Uh)]),p.onShiftTab),_a(Ru([Hv,ya(Uh)]),p.onTab),_a(ya(Wh),p.onUp),_a(ya(K1),p.onDown),_a(ya(hx),p.onLeft),_a(ya(Bv),p.onRight),_a(ya(_u),p.onSpace)],L$=(t,a,p)=>[...p.stopSpaceKeyup?[_a(ya(_u),Jt)]:[],_a(ya(dx),p.onEscape)];var zH=me(BH,wf.init,HH,L$,t=>t.focusIn);const VH=Ue.schema(),UH=nt.schema(),D$=TH.schema(),WH=bH.schema(),GH=M$.schema(),$$=Jn.schema(),ZH=FH.schema(),jH=zH.schema();var pk=Object.freeze({__proto__:null,acyclic:VH,cyclic:UH,flow:D$,flatgrid:WH,matrix:GH,execution:$$,menu:ZH,special:jH});const YH=t=>_n(t,"setGridSize"),po=Ob({branchKey:"mode",branches:pk,name:"keying",active:{events:(t,a)=>t.handler.toEvents(t,a)},apis:{focusIn:(t,a,p)=>{a.sendFocusIn(a).fold(()=>{t.getSystem().triggerFocus(t.element,t.element)},E=>{E(t,a,p)})},setGridSize:(t,a,p,E,z)=>{YH(p)?p.setGridSize(E,z):console.error("Layout does not support setGridSize")}},state:oo}),Hc=(t,a)=>{Ur(()=>{j4(t,a,()=>ne(a,t.getSystem().build))},t.element)},O$=(t,a)=>{Ur(()=>{Y4(t,a,()=>r$(t.element,a,t.getSystem().buildOrPatch))},t.element)},P$=(t,a,p,E)=>{Mv(a);const z=U3(t.element,p,E,t.getSystem().buildOrPatch);Jw(t,z),t.syncComponents()},vk=(t,a,p)=>{const E=t.getSystem().build(p);Ev(t,E,a)},KH=(t,a,p,E)=>{Bd(a),vk(t,(z,Y)=>zi(z,Y,p),E)},I$=(t,a,p,E)=>(a.reuseDom?O$:Hc)(t,E),N$=(t,a,p,E)=>{vk(t,pc,E)},XH=(t,a,p,E)=>{vk(t,F0,E)},JH=(t,a,p,E)=>{const z=yk(t);Ve(z,re=>Qt(E.element,re.element)).each(Bd)},yk=(t,a)=>t.components(),F$=(t,a,p,E,z)=>{const Y=yk(t);return P.from(Y[E]).map(re=>(z.fold(()=>Bd(re),xe=>{(a.reuseDom?P$:KH)(t,re,E,xe)}),re))};var qH=Object.freeze({__proto__:null,append:N$,prepend:XH,remove:JH,replaceAt:F$,replaceBy:(t,a,p,E,z)=>{const Y=yk(t);return Oe(Y,E).bind(re=>F$(t,a,p,re,z))},set:I$,contents:yk});const Ho=Ki({fields:[Li("reuseDom",!0)],name:"replacing",apis:qH}),B$=(t,a)=>{const p=bs(a);return Ki({fields:[qn("enabled")],name:t,active:{events:O(p)}})},jo=(t,a)=>{const p=B$(t,a);return{key:t,value:{config:{},me:p,configAsRaw:O({}),initialConfig:{},state:wf}}},O_=(t,a)=>{a.ignore||(Ic(t.element),a.onFocus(t))};var ez=Object.freeze({__proto__:null,focus:O_,blur:(t,a)=>{a.ignore||hv(t.element)},isFocused:t=>p1(t.element)}),H$=Object.freeze({__proto__:null,exhibit:(t,a)=>{const p=a.ignore?{}:{attributes:{tabindex:"-1"}};return qc(p)},events:t=>bs([Xn(qu(),(a,p)=>{O_(a,t),p.stop()})].concat(t.stopMousedown?[Xn(fo(),(a,p)=>{p.event.prevent()})]:[]))}),Uv=[Sa("onFocus"),En("stopMousedown",!1),En("ignore",!1)];const ko=Ki({fields:Uv,name:"focusing",active:H$,apis:ez}),z$=t=>({init:()=>{const p=q(t);return{get:()=>p.get(),set:xe=>p.set(xe),clear:()=>p.set(t),readState:()=>p.get()}}}),P_=(t,a,p)=>{const E=a.aria;E.update(t,E,p.get())},nz=(t,a,p)=>{a.toggleClass.each(E=>{p.get()?hi(t.element,E):Is(t.element,E)})},TC=(t,a,p,E)=>{const z=p.get();p.set(E),nz(t,a,p),P_(t,a,p),z!==E&&a.onToggled(t,E)},V$=(t,a,p)=>{TC(t,a,p,!p.get())},rz=(t,a,p)=>{TC(t,a,p,!0)},U$=(t,a,p)=>{TC(t,a,p,!1)},I_=(t,a,p)=>p.get(),bk=(t,a,p)=>{TC(t,a,p,a.selected)};var oz=Object.freeze({__proto__:null,onLoad:bk,toggle:V$,isOn:I_,on:rz,off:U$,set:TC}),W$=Object.freeze({__proto__:null,exhibit:()=>qc({}),events:(t,a)=>{const p=dv(t,a,V$),E=$b(t,a,bk);return bs(Fe([t.toggleOnExecute?[p]:[],[E]]))}});const sz=(t,a,p)=>{Lr(t.element,"aria-pressed",p),a.syncWithExpanded&&vx(t,a,p)},iz=(t,a,p)=>{Lr(t.element,"aria-selected",p)},kC=(t,a,p)=>{Lr(t.element,"aria-checked",p)},vx=(t,a,p)=>{Lr(t.element,"aria-expanded",p)};var G$=[En("selected",!1),Ia("toggleClass"),En("toggleOnExecute",!0),Sa("onToggled"),ql("aria",{mode:"none"},fa("mode",{pressed:[En("syncWithExpanded",!1),rs("update",sz)],checked:[rs("update",kC)],expanded:[rs("update",vx)],selected:[rs("update",iz)],none:[rs("update",C)]}))];const qo=Ki({fields:G$,name:"toggling",active:W$,apis:oz,state:z$(!1)}),lp=()=>{const t=(a,p)=>{p.stop(),kh(a)};return[Xn(xi(),t),Xn(nc(),t),Ah(eo()),Ah(fo())]},Gh=t=>{const a=p=>xf((E,z)=>{p(E),z.stop()});return bs(Fe([t.map(a).toArray(),lp()]))},Z$="alloy.item-hover",j$="alloy.item-focus",N_="alloy.item-toggled",Ym=t=>{(Sf(t.element).isNone()||ko.isFocused(t))&&(ko.isFocused(t)||ko.focus(t),go(t,Z$,{item:t}))},xk=t=>{go(t,j$,{item:t})},lz=(t,a)=>{go(t,N_,{item:t,state:a})},F_=O(Z$),Y$=O(j$),K$=O(N_),B_=t=>t.toggling.map(a=>a.exclusive?"menuitemradio":"menuitemcheckbox").getOr("menuitem"),X$=t=>({aria:{mode:"checked"},...Ct(t,(a,p)=>p!=="exclusive"),onToggled:(a,p)=>{g(t.onToggled)&&t.onToggled(a,p),lz(a,p)}}),cz=t=>({dom:t.dom,domModification:{...t.domModification,attributes:{role:B_(t),...t.domModification.attributes,"aria-haspopup":t.hasSubmenu,...t.hasSubmenu?{"aria-expanded":!1}:{}}},behaviours:nf.augment(t.itemBehaviours,[t.toggling.fold(qo.revoke,a=>qo.config(X$(a))),ko.config({ignore:t.ignoreFocus,stopMousedown:t.ignoreFocus,onFocus:a=>{xk(a)}}),po.config({mode:"execution"}),Fr.config({store:{mode:"memory",initialValue:t.data}}),jo("item-type-events",[...lp(),Xn($r(),Ym),Xn(Za(),ko.focus)])]),components:t.components,eventOrder:t.eventOrder}),uz=[qn("data"),qn("components"),qn("dom"),En("hasSubmenu",!1),Ia("toggling"),nf.field("itemBehaviours",[qo,ko,po,Fr]),En("ignoreFocus",!1),En("domModification",{}),rs("builder",cz),En("eventOrder",{})],fz=t=>({dom:t.dom,components:t.components,events:bs([VE(Za())])}),wk=[qn("dom"),qn("components"),rs("builder",fz)],AC=O("item-widget"),MC=O([Fl({name:"widget",overrides:t=>({behaviours:gr([Fr.config({store:{mode:"manual",getValue:a=>t.data,setValue:C}})])})})]),dz=t=>{const a=lC(AC(),t,MC()),p=lx(AC(),t,a.internals()),E=Y=>gs(Y,t,"widget").map(re=>(po.focusIn(re),re)),z=(Y,re)=>op(re.event.target)?P.none():(()=>(t.autofocus&&re.setSource(Y.element),P.none()))();return{dom:t.dom,components:p,domModification:t.domModification,events:bs([xf((Y,re)=>{E(Y).each(xe=>{re.stop()})}),Xn($r(),Ym),Xn(Za(),(Y,re)=>{t.autofocus?E(Y):ko.focus(Y)})]),behaviours:nf.augment(t.widgetBehaviours,[Fr.config({store:{mode:"memory",initialValue:t.data}}),ko.config({ignore:t.ignoreFocus,onFocus:Y=>{xk(Y)}}),po.config({mode:"special",focusIn:t.autofocus?Y=>{E(Y)}:xw(),onLeft:z,onRight:z,onEscape:(Y,re)=>!ko.isFocused(Y)&&!t.autofocus?(ko.focus(Y),P.some(!0)):(t.autofocus&&re.setSource(Y.element),P.none())})])}},hz=[qn("uid"),qn("data"),qn("components"),qn("dom"),En("autofocus",!1),En("ignoreFocus",!1),nf.field("widgetBehaviours",[Fr,ko,po]),En("domModification",{}),dC(MC()),rs("builder",dz)],J$=fa("type",{widget:hz,item:uz,separator:wk}),Q$=(t,a)=>({mode:"flatgrid",selector:"."+t.markers.item,initSize:{numColumns:a.initSize.numColumns,numRows:a.initSize.numRows},focusManager:t.focusManager}),q$=(t,a)=>({mode:"matrix",selectors:{row:a.rowSelector,cell:"."+t.markers.item},previousSelector:a.previousSelector,focusManager:t.focusManager}),e8=(t,a)=>({mode:"menu",selector:"."+t.markers.item,moveOnTab:a.moveOnTab,focusManager:t.focusManager}),mz=O([V1({factory:{sketch:t=>{const a=ul("menu.spec item",J$,t);return a.builder(a)}},name:"items",unit:"item",defaults:(t,a)=>pn(a,"uid")?a:{...a,uid:jp("item")},overrides:(t,a)=>({type:a.type,ignoreFocus:t.fakeFocus,domModification:{classes:[t.markers.item]}})})]),H_=O([qn("value"),qn("items"),qn("dom"),qn("components"),En("eventOrder",{}),Fi("menuBehaviours",[Na,Fr,da,po]),ql("movement",{mode:"menu",moveOnTab:!0},fa("mode",{grid:[lw(),rs("config",Q$)],matrix:[rs("config",q$),qn("rowSelector"),En("previousSelector",P.none)],menu:[En("moveOnTab",!0),rs("config",e8)]})),o4(),En("fakeFocus",!1),En("focusManager",I()),Sa("onHighlight"),Sa("onDehighlight")]),t8=O("alloy.menu-focus"),gz=(t,a)=>{const p=Xi(t.element,'[role="menuitemradio"][aria-checked="true"]');fe(p,E=>{Qt(E,a.element)||t.getSystem().getByDom(E).each(z=>{qo.off(z)})})},pz=(t,a,p,E)=>({uid:t.uid,dom:t.dom,markers:t.markers,behaviours:Si(t.menuBehaviours,[Na.config({highlightClass:t.markers.selectedItem,itemClass:t.markers.item,onHighlight:t.onHighlight,onDehighlight:t.onDehighlight}),Fr.config({store:{mode:"memory",initialValue:t.value}}),da.config({find:P.some}),po.config(t.movement.config(t,t.movement))]),events:bs([Xn(Y$(),(z,Y)=>{const re=Y.event;z.getSystem().getByDom(re.target).each(xe=>{Na.highlight(z,xe),Y.stop(),go(z,t8(),{menu:z,item:xe})})}),Xn(F_(),(z,Y)=>{const re=Y.event.item;Na.highlight(z,re)}),Xn(K$(),(z,Y)=>{const{item:re,state:xe}=Y.event;xe&&Ka(re.element,"role")==="menuitemradio"&&gz(z,re)})]),components:a,eventOrder:t.eventOrder,domModification:{attributes:{role:"menu"}}}),ey=Bl({name:"Menu",configFields:H_(),partFields:mz(),factory:pz}),n8=t=>qe(t,(a,p)=>({k:a,v:p})),r8=(t,a,p,E)=>Ft(p,E).bind(z=>Ft(t,z).bind(Y=>{const re=r8(t,a,p,Y);return P.some([Y].concat(re))})).getOr([]),vz=(t,a)=>{const p={};Ge(t,(re,xe)=>{fe(re,Ee=>{p[Ee]=xe})});const E=a,z=n8(a),Y=Xe(z,(re,xe)=>[xe].concat(r8(p,E,z,xe)));return Xe(p,re=>Ft(Y,re).getOr([re]))},o8=()=>{const t=q({}),a=q({}),p=q({}),E=ia(),z=q({}),Y=()=>{t.set({}),a.set({}),p.set({}),E.clear()},re=()=>E.get().isNone(),xe=(hr,Yn)=>{a.set({...a.get(),[hr]:{type:"prepared",menu:Yn}})},Ee=(hr,Yn,br,Mr)=>{E.set(hr),t.set(br),a.set(Yn),z.set(Mr);const ea=vz(Mr,br);p.set(ea)},Be=hr=>Yt(t.get(),(Yn,br)=>Yn===hr),je=(hr,Yn,br)=>Xt(hr).bind(Mr=>Be(hr).bind(ea=>Yn(ea).map(Zr=>({triggeredMenu:Mr,triggeringItem:Zr,triggeringPath:br})))),et=(hr,Yn)=>{const br=Ce(hn(hr).toArray(),Mr=>Xt(Mr).isSome());return Ft(p.get(),hr).bind(Mr=>{const ea=se(br.concat(Mr)),Zr=ie(ea,(Do,Mo)=>je(Do,Yn,ea.slice(0,Mo+1)).fold(()=>sn(E.get(),Do)?[]:[P.none()],ja=>[P.some(ja)]));return Cn(Zr)})},st=hr=>Ft(t.get(),hr).map(Yn=>{const br=Ft(p.get(),hr).getOr([]);return[Yn].concat(br)}),mt=hr=>Ft(p.get(),hr).bind(Yn=>Yn.length>1?P.some(Yn.slice(1)):P.none()),Mt=hr=>Ft(p.get(),hr),Xt=hr=>Dn(hr).bind(yx),Dn=hr=>Ft(a.get(),hr),hn=hr=>Ft(t.get(),hr);return{setMenuBuilt:xe,setContents:Ee,expand:st,refresh:Mt,collapse:mt,lookupMenu:Dn,lookupItem:hn,otherMenus:hr=>{const Yn=z.get();return ue(ot(Yn),hr)},getPrimary:()=>E.get().bind(Xt),getMenus:()=>a.get(),clear:Y,isClear:re,getTriggeringPath:et}},yx=t=>t.type==="prepared"?P.some(t.menu):P.none(),a8={init:o8,extractPreparedMenu:yx},bx=Xr("tiered-menu-item-highlight"),Ck=Xr("tiered-menu-item-dehighlight");var zc;(function(t){t[t.HighlightMenuAndItem=0]="HighlightMenuAndItem",t[t.HighlightJustMenu=1]="HighlightJustMenu",t[t.HighlightNone=2]="HighlightNone"})(zc||(zc={}));const s8=(t,a)=>{const p=ia(),E=(Ar,no,$o)=>Xe($o,(Po,wo)=>{const Vo=()=>ey.sketch({...Po,value:wo,markers:t.markers,fakeFocus:t.fakeFocus,onHighlight:(ys,Ra)=>{go(ys,bx,{menuComp:ys,itemComp:Ra})},onDehighlight:(ys,Ra)=>{go(ys,Ck,{menuComp:ys,itemComp:Ra})},focusManager:t.fakeFocus?W():I()});return wo===no?{type:"prepared",menu:Ar.getSystem().build(Vo())}:{type:"notbuilt",nbMenu:Vo}}),z=a8.init(),Y=Ar=>{const no=E(Ar,t.data.primary,t.data.menus),$o=Ee();return z.setContents(t.data.primary,no,t.data.expansions,$o),z.getPrimary()},re=Ar=>Fr.getValue(Ar).value,xe=(Ar,no,$o)=>We(no,Po=>{if(!Po.getSystem().isConnected())return P.none();const wo=Na.getCandidates(Po);return Ve(wo,Vo=>re(Vo)===$o)}),Ee=Ar=>Xe(t.data.menus,(no,$o)=>ie(no.items,Po=>Po.type==="separator"?[]:[Po.data.value])),Be=Na.highlight,je=(Ar,no)=>{Be(Ar,no),Na.getHighlighted(no).orThunk(()=>Na.getFirst(no)).each($o=>{t.fakeFocus?Na.highlight(no,$o):lb(Ar,$o.element,Za())})},et=(Ar,no)=>an(ne(no,$o=>Ar.lookupMenu($o).bind(Po=>Po.type==="prepared"?P.some(Po.menu):P.none()))),st=(Ar,no,$o)=>{const Po=et(no,no.otherMenus($o));fe(Po,wo=>{Su(wo.element,[t.markers.backgroundMenu]),t.stayInDom||Ho.remove(Ar,wo)})},mt=Ar=>p.get().getOrThunk(()=>{const no={},$o=Xi(Ar.element,`.${t.markers.item}`),Po=Ce($o,wo=>Ka(wo,"aria-haspopup")==="true");return fe(Po,wo=>{Ar.getSystem().getByDom(wo).each(Vo=>{const ys=re(Vo);no[ys]=Vo})}),p.set(no),no}),Mt=(Ar,no)=>{const $o=mt(Ar);Ge($o,(Po,wo)=>{const Vo=he(no,wo);Lr(Po.element,"aria-expanded",Vo)})},Xt=(Ar,no,$o)=>P.from($o[0]).bind(Po=>no.lookupMenu(Po).bind(wo=>{if(wo.type==="notbuilt")return P.none();{const Vo=wo.menu,ys=et(no,$o.slice(1));return fe(ys,Ra=>{hi(Ra.element,t.markers.backgroundMenu)}),Wa(Vo.element)||Ho.append(Ar,Tu(Vo)),Su(Vo.element,[t.markers.backgroundMenu]),je(Ar,Vo),st(Ar,no,$o),P.some(Vo)}}));let Dn;(function(Ar){Ar[Ar.HighlightSubmenu=0]="HighlightSubmenu",Ar[Ar.HighlightParent=1]="HighlightParent"})(Dn||(Dn={}));const hn=(Ar,no,$o)=>{if($o.type==="notbuilt"){const Po=Ar.getSystem().build($o.nbMenu());return z.setMenuBuilt(no,Po),Po}else return $o.menu},rn=(Ar,no,$o=Dn.HighlightSubmenu)=>{if(no.hasConfigured(Co)&&Co.isDisabled(no))return P.some(no);{const Po=re(no);return z.expand(Po).bind(wo=>(Mt(Ar,wo),P.from(wo[0]).bind(Vo=>z.lookupMenu(Vo).bind(ys=>{const Ra=hn(Ar,Vo,ys);return Wa(Ra.element)||Ho.append(Ar,Tu(Ra)),t.onOpenSubmenu(Ar,no,Ra,se(wo)),$o===Dn.HighlightSubmenu?(Na.highlightFirst(Ra),Xt(Ar,z,wo)):(Na.dehighlightAll(Ra),P.some(no))}))))}},kn=(Ar,no)=>{const $o=re(no);return z.collapse($o).bind(Po=>(Mt(Ar,Po),Xt(Ar,z,Po).map(wo=>(t.onCollapseMenu(Ar,no,wo),wo))))},Vn=(Ar,no)=>{const $o=re(no);return z.refresh($o).bind(Po=>(Mt(Ar,Po),Xt(Ar,z,Po)))},hr=(Ar,no)=>op(no.element)?P.none():rn(Ar,no,Dn.HighlightSubmenu),Yn=(Ar,no)=>op(no.element)?P.none():kn(Ar,no),br=(Ar,no)=>kn(Ar,no).orThunk(()=>t.onEscape(Ar,no).map(()=>Ar)),Mr=Ar=>(no,$o)=>Qf($o.getSource(),`.${t.markers.item}`).bind(Po=>no.getSystem().getByDom(Po).toOptional().bind(wo=>Ar(no,wo).map(j))),ea=bs([Xn(t8(),(Ar,no)=>{const $o=no.event.item;z.lookupItem(re($o)).each(()=>{const Po=no.event.menu;Na.highlight(Ar,Po);const wo=re(no.event.item);z.refresh(wo).each(Vo=>st(Ar,z,Vo))})}),xf((Ar,no)=>{const $o=no.event.target;Ar.getSystem().getByDom($o).each(Po=>{re(Po).indexOf("collapse-item")===0&&kn(Ar,Po),rn(Ar,Po,Dn.HighlightSubmenu).fold(()=>{t.onExecute(Ar,Po)},C)})}),ms((Ar,no)=>{Y(Ar).each($o=>{Ho.append(Ar,Tu($o)),t.onOpenMenu(Ar,$o),t.highlightOnOpen===zc.HighlightMenuAndItem?je(Ar,$o):t.highlightOnOpen===zc.HighlightJustMenu&&Be(Ar,$o)})}),Xn(bx,(Ar,no)=>{t.onHighlightItem(Ar,no.event.menuComp,no.event.itemComp)}),Xn(Ck,(Ar,no)=>{t.onDehighlightItem(Ar,no.event.menuComp,no.event.itemComp)}),...t.navigateOnHover?[Xn(F_(),(Ar,no)=>{const $o=no.event.item;Vn(Ar,$o),rn(Ar,$o,Dn.HighlightParent),t.onHover(Ar,$o)})]:[]]),Zr=Ar=>Na.getHighlighted(Ar).bind(Na.getHighlighted),Do=Ar=>{Zr(Ar).each(no=>{kn(Ar,no)})},Mo=Ar=>{z.getPrimary().each(no=>{je(Ar,no)})},ja=Ar=>P.from(Ar.components()[0]).filter(no=>Ka(no.element,"role")==="menu"),Ea={collapseMenu:Do,highlightPrimary:Mo,repositionMenus:Ar=>{z.getPrimary().bind($o=>Zr(Ar).bind(Po=>{const wo=re(Po),Vo=Nt(z.getMenus()),ys=an(ne(Vo,a8.extractPreparedMenu));return z.getTriggeringPath(wo,Ra=>xe(Ar,ys,Ra))}).map(Po=>({primary:$o,triggeringPath:Po}))).fold(()=>{ja(Ar).each($o=>{t.onRepositionMenu(Ar,$o,[])})},({primary:$o,triggeringPath:Po})=>{t.onRepositionMenu(Ar,$o,Po)})}};return{uid:t.uid,dom:t.dom,markers:t.markers,behaviours:Si(t.tmenuBehaviours,[po.config({mode:"special",onRight:Mr(hr),onLeft:Mr(Yn),onEscape:Mr(br),focusIn:(Ar,no)=>{z.getPrimary().each($o=>{lb(Ar,$o.element,Za())})}}),Na.config({highlightClass:t.markers.selectedMenu,itemClass:t.markers.menu}),da.config({find:Ar=>Na.getHighlighted(Ar)}),Ho.config({})]),eventOrder:t.eventOrder,apis:Ea,events:ea}},yz=O("collapse-item"),bz=(t,a,p)=>({primary:t,menus:a,expansions:p}),i8=(t,a)=>({primary:t,menus:yt(t,a),expansions:{}}),xz=t=>({value:Xr(yz()),meta:{text:t}}),Wv=ou({name:"TieredMenu",configFields:[iw("onExecute"),iw("onEscape"),qf("onOpenMenu"),qf("onOpenSubmenu"),Sa("onRepositionMenu"),Sa("onCollapseMenu"),En("highlightOnOpen",zc.HighlightMenuAndItem),Dc("data",[qn("primary"),qn("menus"),qn("expansions")]),En("fakeFocus",!1),Sa("onHighlightItem"),Sa("onDehighlightItem"),Sa("onHover"),c1(),qn("dom"),En("navigateOnHover",!0),En("stayInDom",!1),Fi("tmenuBehaviours",[po,Na,da,Ho]),En("eventOrder",{})],apis:{collapseMenu:(t,a)=>{t.collapseMenu(a)},highlightPrimary:(t,a)=>{t.highlightPrimary(a)},repositionMenus:(t,a)=>{t.repositionMenus(a)}},factory:s8,extraApis:{tieredData:bz,singleData:i8,collapseItem:xz}}),wz=(t,a,p,E,z)=>{const Y=()=>t.lazySink(a),re=E.type==="horizontal"?{layouts:{onLtr:()=>Db(),onRtl:()=>yw()}}:{},xe=Be=>Be.length===2,Ee=Be=>xe(Be)?re:{};return Wv.sketch({dom:{tag:"div"},data:E.data,markers:E.menu.markers,highlightOnOpen:E.menu.highlightOnOpen,fakeFocus:E.menu.fakeFocus,onEscape:()=>(va.close(a),t.onEscape.map(Be=>Be(a)),P.some(!0)),onExecute:()=>P.some(!0),onOpenMenu:(Be,je)=>{Nl.positionWithinBounds(Y().getOrDie(),je,p,z())},onOpenSubmenu:(Be,je,et,st)=>{const mt=Y().getOrDie();Nl.position(mt,et,{anchor:{type:"submenu",item:je,...Ee(st)}})},onRepositionMenu:(Be,je,et)=>{const st=Y().getOrDie();Nl.positionWithinBounds(st,je,p,z()),fe(et,mt=>{const Mt=Ee(mt.triggeringPath);Nl.position(st,mt.triggeredMenu,{anchor:{type:"submenu",item:mt.triggeringItem,...Mt}})})}})},Cz=(t,a)=>{const p=(st,mt)=>t.getRelated(st).exists(Xt=>Lh(Xt,mt)),E=(st,mt)=>{va.setContent(st,mt)},z=(st,mt,Mt)=>{const Xt=P.none;Y(st,mt,Mt,Xt)},Y=(st,mt,Mt,Xt)=>{const Dn=t.lazySink(st).getOrDie();va.openWhileCloaked(st,mt,()=>Nl.positionWithinBounds(Dn,st,Mt,Xt())),Fr.setValue(st,P.some({mode:"position",config:Mt,getBounds:Xt}))},re=(st,mt,Mt)=>{xe(st,mt,Mt,P.none)},xe=(st,mt,Mt,Xt)=>{const Dn=wz(t,st,mt,Mt,Xt);va.open(st,Dn),Fr.setValue(st,P.some({mode:"menu",menu:Dn}))},Ee=st=>{va.isOpen(st)&&(Fr.setValue(st,P.none()),va.close(st))},Be=st=>va.getState(st),je=st=>{va.isOpen(st)&&Fr.getValue(st).each(mt=>{switch(mt.mode){case"menu":va.getState(st).each(Wv.repositionMenus);break;case"position":const Mt=t.lazySink(st).getOrDie();Nl.positionWithinBounds(Mt,st,mt.config,mt.getBounds());break}})},et={setContent:E,showAt:z,showWithinBounds:Y,showMenuAt:re,showMenuWithinBounds:xe,hide:Ee,getContent:Be,reposition:je,isOpen:va.isOpen};return{uid:t.uid,dom:t.dom,behaviours:Si(t.inlineBehaviours,[va.config({isPartOf:(st,mt,Mt)=>Lh(mt,Mt)||p(st,Mt),getAttachPoint:st=>t.lazySink(st).getOrDie(),onOpen:st=>{t.onShow(st)},onClose:st=>{t.onHide(st)}}),Fr.config({store:{mode:"memory",initialValue:P.none()}}),Pc.config({channels:{...$1({isExtraPart:a.isExtraPart,...t.fireDismissalEventInstead.map(st=>({fireEventInstead:{event:st.event}})).getOr({})}),...Rv({...t.fireRepositionEventInstead.map(st=>({fireEventInstead:{event:st.event}})).getOr({}),doReposition:je})}})]),eventOrder:t.eventOrder,apis:et}},Ws=ou({name:"InlineView",configFields:[qn("lazySink"),Sa("onShow"),Sa("onHide"),pf("onEscape"),Fi("inlineBehaviours",[va,Fr,Pc]),Ql("fireDismissalEventInstead",[En("event",Tm())]),Ql("fireRepositionEventInstead",[En("event",D3())]),En("getRelated",P.none),En("isExtraPart",H),En("eventOrder",P.none)],factory:Cz,apis:{showAt:(t,a,p,E)=>{t.showAt(a,p,E)},showWithinBounds:(t,a,p,E,z)=>{t.showWithinBounds(a,p,E,z)},showMenuAt:(t,a,p,E)=>{t.showMenuAt(a,p,E)},showMenuWithinBounds:(t,a,p,E,z)=>{t.showMenuWithinBounds(a,p,E,z)},hide:(t,a)=>{t.hide(a)},isOpen:(t,a)=>t.isOpen(a),getContent:(t,a)=>t.getContent(a),setContent:(t,a,p)=>{t.setContent(a,p)},reposition:(t,a)=>{t.reposition(a)}}});var ty=tinymce.util.Tools.resolve("tinymce.util.Delay");const hl=ou({name:"Button",factory:t=>{const a=Gh(t.action),p=t.dom.tag,E=Y=>Ft(t.dom,"attributes").bind(re=>Ft(re,Y)),z=()=>{if(p==="button"){const Y=E("type").getOr("button"),re=E("role").map(xe=>({role:xe})).getOr({});return{type:Y,...re}}else return{role:t.role.getOr(E("role").getOr("button"))}};return{uid:t.uid,dom:t.dom,components:t.components,events:a,behaviours:nf.augment(t.buttonBehaviours,[ko.config({}),po.config({mode:"execution",useSpace:!0,useEnter:!0})]),domModification:{attributes:z()},eventOrder:t.eventOrder}},configFields:[En("uid",void 0),qn("dom"),En("components",[]),nf.field("buttonBehaviours",[ko,po]),Ia("action"),Ia("role"),En("eventOrder",{})]}),Sz=t=>{const a=t.dom.attributes!==void 0?t.dom.attributes:[];return ke(a,(p,E)=>E.name==="class"?p:{...p,[E.name]:E.value},{})},Tz=t=>Array.prototype.slice.call(t.dom.classList,0),cp=t=>{const a=zt.fromHtml(t),p=Kr(a),E=Sz(a),z=Tz(a),Y=p.length===0?{}:{innerHtml:Y2(a)};return{tag:vo(a),classes:z,attributes:E,...Y}},Qa=t=>{const a=l_(t)&&_n(t,"uid")?t.uid:jp("memento");return{get:Y=>Y.getSystem().getByUid(a).getOrDie(),getOpt:Y=>Y.getSystem().getByUid(a).toOptional(),asSpec:()=>({...t,uid:a})}},{entries:z_,setPrototypeOf:V_,isFrozen:kz,getPrototypeOf:Az,getOwnPropertyDescriptor:Mz}=Object;let{freeze:of,seal:Zh,create:Ez}=Object,{apply:Sk,construct:U_}=typeof Reflect<"u"&&Reflect;Sk||(Sk=function(a,p,E){return a.apply(p,E)}),of||(of=function(a){return a}),Zh||(Zh=function(a){return a}),U_||(U_=function(a,p){return new a(...p)});const _z=Wd(Array.prototype.forEach),Rz=Wd(Array.prototype.pop),EC=Wd(Array.prototype.push),Tk=Wd(String.prototype.toLowerCase),up=Wd(String.prototype.toString),Lz=Wd(String.prototype.match),jh=Wd(String.prototype.replace),ny=Wd(String.prototype.indexOf),c8=Wd(String.prototype.trim),sd=Wd(RegExp.prototype.test),Ud=Dz(TypeError);function Wd(t){return function(a){for(var p=arguments.length,E=new Array(p>1?p-1:0),z=1;z/gm),u8=Zh(/\${[\w\W]*}/gm),Nz=Zh(/^data-[\-\w.\u00B7-\uFFFF]/),Y_=Zh(/^aria-[\-\w]+$/),K_=Zh(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fz=Zh(/^(?:\w+script|data):/i),Bz=Zh(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),f8=Zh(/^html$/i);var Mk=Object.freeze({__proto__:null,MUSTACHE_EXPR:Pz,ERB_EXPR:Iz,TMPLIT_EXPR:u8,DATA_ATTR:Nz,ARIA_ATTR:Y_,IS_ALLOWED_URI:K_,IS_SCRIPT_OR_DATA:Fz,ATTR_WHITESPACE:Bz,DOCTYPE_NAME:f8});const Hz=()=>typeof window>"u"?null:window,$C=function(a,p){if(typeof a!="object"||typeof a.createPolicy!="function")return null;let E=null;const z="data-tt-policy-suffix";p&&p.hasAttribute(z)&&(E=p.getAttribute(z));const Y="dompurify"+(E?"#"+E:"");try{return a.createPolicy(Y,{createHTML(re){return re},createScriptURL(re){return re}})}catch{return console.warn("TrustedTypes policy "+Y+" could not be created."),null}};function OC(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hz();const a=ma=>OC(ma);if(a.version="3.0.5",a.removed=[],!t||!t.document||t.document.nodeType!==9)return a.isSupported=!1,a;const p=t.document,E=p.currentScript;let{document:z}=t;const{DocumentFragment:Y,HTMLTemplateElement:re,Node:xe,Element:Ee,NodeFilter:Be,NamedNodeMap:je=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:et,DOMParser:st,trustedTypes:mt}=t,Mt=Ee.prototype,Xt=_C(Mt,"cloneNode"),Dn=_C(Mt,"nextSibling"),hn=_C(Mt,"childNodes"),rn=_C(Mt,"parentNode");if(typeof re=="function"){const ma=z.createElement("template");ma.content&&ma.content.ownerDocument&&(z=ma.content.ownerDocument)}let kn,Vn="";const{implementation:hr,createNodeIterator:Yn,createDocumentFragment:br,getElementsByTagName:Mr}=z,{importNode:ea}=p;let Zr={};a.isSupported=typeof z_=="function"&&typeof rn=="function"&&hr&&hr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Do,ERB_EXPR:Mo,TMPLIT_EXPR:ja,DATA_ATTR:xo,ARIA_ATTR:Ea,IS_SCRIPT_OR_DATA:Ar,ATTR_WHITESPACE:no}=Mk;let{IS_ALLOWED_URI:$o}=Mk,Po=null;const wo=Ta({},[...W_,...G_,...RC,...Z_,...LC]);let Vo=null;const ys=Ta({},[...kk,...Ak,...j_,...DC]);let Ra=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Rl=null,Fu=null,yd=!0,ah=!0,p0=!1,Ly=!0,nm=!1,wp=!1,t3=!1,h6=!1,y2=!1,sE=!1,IF=!1,xte=!0,wte=!1;const Bie="user-content-";let kJ=!0,m6=!1,iE={},lE=null;const Cte=Ta({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ste=null;const Tte=Ta({},["audio","video","img","source","image","track"]);let AJ=null;const kte=Ta({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),NF="http://www.w3.org/1998/Math/MathML",FF="http://www.w3.org/2000/svg",Dy="http://www.w3.org/1999/xhtml";let cE=Dy,MJ=!1,EJ=null;const Hie=Ta({},[NF,FF,Dy],up);let n3;const zie=["application/xhtml+xml","text/html"],Vie="text/html";let Bu,uE=null;const Uie=z.createElement("form"),Ate=function(Hn){return Hn instanceof RegExp||Hn instanceof Function},_J=function(Hn){if(!(uE&&uE===Hn)){if((!Hn||typeof Hn!="object")&&(Hn={}),Hn=ry(Hn),n3=zie.indexOf(Hn.PARSER_MEDIA_TYPE)===-1?n3=Vie:n3=Hn.PARSER_MEDIA_TYPE,Bu=n3==="application/xhtml+xml"?up:Tk,Po="ALLOWED_TAGS"in Hn?Ta({},Hn.ALLOWED_TAGS,Bu):wo,Vo="ALLOWED_ATTR"in Hn?Ta({},Hn.ALLOWED_ATTR,Bu):ys,EJ="ALLOWED_NAMESPACES"in Hn?Ta({},Hn.ALLOWED_NAMESPACES,up):Hie,AJ="ADD_URI_SAFE_ATTR"in Hn?Ta(ry(kte),Hn.ADD_URI_SAFE_ATTR,Bu):kte,Ste="ADD_DATA_URI_TAGS"in Hn?Ta(ry(Tte),Hn.ADD_DATA_URI_TAGS,Bu):Tte,lE="FORBID_CONTENTS"in Hn?Ta({},Hn.FORBID_CONTENTS,Bu):Cte,Rl="FORBID_TAGS"in Hn?Ta({},Hn.FORBID_TAGS,Bu):{},Fu="FORBID_ATTR"in Hn?Ta({},Hn.FORBID_ATTR,Bu):{},iE="USE_PROFILES"in Hn?Hn.USE_PROFILES:!1,yd=Hn.ALLOW_ARIA_ATTR!==!1,ah=Hn.ALLOW_DATA_ATTR!==!1,p0=Hn.ALLOW_UNKNOWN_PROTOCOLS||!1,Ly=Hn.ALLOW_SELF_CLOSE_IN_ATTR!==!1,nm=Hn.SAFE_FOR_TEMPLATES||!1,wp=Hn.WHOLE_DOCUMENT||!1,y2=Hn.RETURN_DOM||!1,sE=Hn.RETURN_DOM_FRAGMENT||!1,IF=Hn.RETURN_TRUSTED_TYPE||!1,h6=Hn.FORCE_BODY||!1,xte=Hn.SANITIZE_DOM!==!1,wte=Hn.SANITIZE_NAMED_PROPS||!1,kJ=Hn.KEEP_CONTENT!==!1,m6=Hn.IN_PLACE||!1,$o=Hn.ALLOWED_URI_REGEXP||K_,cE=Hn.NAMESPACE||Dy,Ra=Hn.CUSTOM_ELEMENT_HANDLING||{},Hn.CUSTOM_ELEMENT_HANDLING&&Ate(Hn.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ra.tagNameCheck=Hn.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Hn.CUSTOM_ELEMENT_HANDLING&&Ate(Hn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ra.attributeNameCheck=Hn.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Hn.CUSTOM_ELEMENT_HANDLING&&typeof Hn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Ra.allowCustomizedBuiltInElements=Hn.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),nm&&(ah=!1),sE&&(y2=!0),iE&&(Po=Ta({},[...LC]),Vo=[],iE.html===!0&&(Ta(Po,W_),Ta(Vo,kk)),iE.svg===!0&&(Ta(Po,G_),Ta(Vo,Ak),Ta(Vo,DC)),iE.svgFilters===!0&&(Ta(Po,RC),Ta(Vo,Ak),Ta(Vo,DC)),iE.mathMl===!0&&(Ta(Po,Z_),Ta(Vo,j_),Ta(Vo,DC))),Hn.ADD_TAGS&&(Po===wo&&(Po=ry(Po)),Ta(Po,Hn.ADD_TAGS,Bu)),Hn.ADD_ATTR&&(Vo===ys&&(Vo=ry(Vo)),Ta(Vo,Hn.ADD_ATTR,Bu)),Hn.ADD_URI_SAFE_ATTR&&Ta(AJ,Hn.ADD_URI_SAFE_ATTR,Bu),Hn.FORBID_CONTENTS&&(lE===Cte&&(lE=ry(lE)),Ta(lE,Hn.FORBID_CONTENTS,Bu)),kJ&&(Po["#text"]=!0),wp&&Ta(Po,["html","head","body"]),Po.table&&(Ta(Po,["tbody"]),delete Rl.tbody),Hn.TRUSTED_TYPES_POLICY){if(typeof Hn.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ud('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Hn.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ud('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');kn=Hn.TRUSTED_TYPES_POLICY,Vn=kn.createHTML("")}else kn===void 0&&(kn=$C(mt,E)),kn!==null&&typeof Vn=="string"&&(Vn=kn.createHTML(""));of&&of(Hn),uE=Hn}},Mte=Ta({},["mi","mo","mn","ms","mtext"]),Ete=Ta({},["foreignobject","desc","title","annotation-xml"]),Wie=Ta({},["title","style","font","a","script"]),BF=Ta({},G_);Ta(BF,RC),Ta(BF,$z);const RJ=Ta({},Z_);Ta(RJ,Oz);const Gie=function(Hn){let co=rn(Hn);(!co||!co.tagName)&&(co={namespaceURI:cE,tagName:"template"});const Io=Tk(Hn.tagName),Hi=Tk(co.tagName);return EJ[Hn.namespaceURI]?Hn.namespaceURI===FF?co.namespaceURI===Dy?Io==="svg":co.namespaceURI===NF?Io==="svg"&&(Hi==="annotation-xml"||Mte[Hi]):!!BF[Io]:Hn.namespaceURI===NF?co.namespaceURI===Dy?Io==="math":co.namespaceURI===FF?Io==="math"&&Ete[Hi]:!!RJ[Io]:Hn.namespaceURI===Dy?co.namespaceURI===FF&&!Ete[Hi]||co.namespaceURI===NF&&!Mte[Hi]?!1:!RJ[Io]&&(Wie[Io]||!BF[Io]):!!(n3==="application/xhtml+xml"&&EJ[Hn.namespaceURI]):!1},r3=function(Hn){EC(a.removed,{element:Hn});try{Hn.parentNode.removeChild(Hn)}catch{Hn.remove()}},g6=function(Hn,co){try{EC(a.removed,{attribute:co.getAttributeNode(Hn),from:co})}catch{EC(a.removed,{attribute:null,from:co})}if(co.removeAttribute(Hn),Hn==="is"&&!Vo[Hn])if(y2||sE)try{r3(co)}catch{}else try{co.setAttribute(Hn,"")}catch{}},_te=function(Hn){let co,Io;if(h6)Hn=""+Hn;else{const fg=Lz(Hn,/^[\r\n\t ]+/);Io=fg&&fg[0]}n3==="application/xhtml+xml"&&cE===Dy&&(Hn=''+Hn+"");const Hi=kn?kn.createHTML(Hn):Hn;if(cE===Dy)try{co=new st().parseFromString(Hi,n3)}catch{}if(!co||!co.documentElement){co=hr.createDocument(cE,"template",null);try{co.documentElement.innerHTML=MJ?Vn:Hi}catch{}}const Hu=co.body||co.documentElement;return Hn&&Io&&Hu.insertBefore(z.createTextNode(Io),Hu.childNodes[0]||null),cE===Dy?Mr.call(co,wp?"html":"body")[0]:wp?co.documentElement:Hu},Rte=function(Hn){return Yn.call(Hn.ownerDocument||Hn,Hn,Be.SHOW_ELEMENT|Be.SHOW_COMMENT|Be.SHOW_TEXT,null,!1)},Zie=function(Hn){return Hn instanceof et&&(typeof Hn.nodeName!="string"||typeof Hn.textContent!="string"||typeof Hn.removeChild!="function"||!(Hn.attributes instanceof je)||typeof Hn.removeAttribute!="function"||typeof Hn.setAttribute!="function"||typeof Hn.namespaceURI!="string"||typeof Hn.insertBefore!="function"||typeof Hn.hasChildNodes!="function")},HF=function(Hn){return typeof xe=="object"?Hn instanceof xe:Hn&&typeof Hn=="object"&&typeof Hn.nodeType=="number"&&typeof Hn.nodeName=="string"},$y=function(Hn,co,Io){Zr[Hn]&&_z(Zr[Hn],Hi=>{Hi.call(a,co,Io,uE)})},Lte=function(Hn){let co;if($y("beforeSanitizeElements",Hn,null),Zie(Hn))return r3(Hn),!0;const Io=Bu(Hn.nodeName);if($y("uponSanitizeElement",Hn,{tagName:Io,allowedTags:Po}),Hn.hasChildNodes()&&!HF(Hn.firstElementChild)&&(!HF(Hn.content)||!HF(Hn.content.firstElementChild))&&sd(/<[/\w]/g,Hn.innerHTML)&&sd(/<[/\w]/g,Hn.textContent))return r3(Hn),!0;if(!Po[Io]||Rl[Io]){if(!Rl[Io]&&$te(Io)&&(Ra.tagNameCheck instanceof RegExp&&sd(Ra.tagNameCheck,Io)||Ra.tagNameCheck instanceof Function&&Ra.tagNameCheck(Io)))return!1;if(kJ&&!lE[Io]){const Hi=rn(Hn)||Hn.parentNode,Hu=hn(Hn)||Hn.childNodes;if(Hu&&Hi){const fg=Hu.length;for(let Ul=fg-1;Ul>=0;--Ul)Hi.insertBefore(Xt(Hu[Ul],!0),Dn(Hn))}}return r3(Hn),!0}return Hn instanceof Ee&&!Gie(Hn)||(Io==="noscript"||Io==="noembed"||Io==="noframes")&&sd(/<\/no(script|embed|frames)/i,Hn.innerHTML)?(r3(Hn),!0):(nm&&Hn.nodeType===3&&(co=Hn.textContent,co=jh(co,Do," "),co=jh(co,Mo," "),co=jh(co,ja," "),Hn.textContent!==co&&(EC(a.removed,{element:Hn.cloneNode()}),Hn.textContent=co)),$y("afterSanitizeElements",Hn,null),!1)},Dte=function(Hn,co,Io){if(xte&&(co==="id"||co==="name")&&(Io in z||Io in Uie))return!1;if(!(ah&&!Fu[co]&&sd(xo,co))){if(!(yd&&sd(Ea,co))){if(!Vo[co]||Fu[co]){if(!($te(Hn)&&(Ra.tagNameCheck instanceof RegExp&&sd(Ra.tagNameCheck,Hn)||Ra.tagNameCheck instanceof Function&&Ra.tagNameCheck(Hn))&&(Ra.attributeNameCheck instanceof RegExp&&sd(Ra.attributeNameCheck,co)||Ra.attributeNameCheck instanceof Function&&Ra.attributeNameCheck(co))||co==="is"&&Ra.allowCustomizedBuiltInElements&&(Ra.tagNameCheck instanceof RegExp&&sd(Ra.tagNameCheck,Io)||Ra.tagNameCheck instanceof Function&&Ra.tagNameCheck(Io))))return!1}else if(!AJ[co]){if(!sd($o,jh(Io,no,""))){if(!((co==="src"||co==="xlink:href"||co==="href")&&Hn!=="script"&&ny(Io,"data:")===0&&Ste[Hn])){if(!(p0&&!sd(Ar,jh(Io,no,"")))){if(Io)return!1}}}}}}return!0},$te=function(Hn){return Hn.indexOf("-")>0},Ote=function(Hn){let co,Io,Hi,Hu;$y("beforeSanitizeAttributes",Hn,null);const{attributes:fg}=Hn;if(!fg)return;const Ul={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Vo};for(Hu=fg.length;Hu--;){co=fg[Hu];const{name:dg,namespaceURI:LJ}=co;Io=dg==="value"?co.value:c8(co.value);const Yie=Io;if(Hi=Bu(dg),Ul.attrName=Hi,Ul.attrValue=Io,Ul.keepAttr=!0,Ul.forceKeepAttr=void 0,$y("uponSanitizeAttribute",Hn,Ul),Io=Ul.attrValue,Ul.forceKeepAttr)continue;if(!Ul.keepAttr){g6(dg,Hn);continue}if(!Ly&&sd(/\/>/i,Io)){g6(dg,Hn);continue}nm&&(Io=jh(Io,Do," "),Io=jh(Io,Mo," "),Io=jh(Io,ja," "));const Pte=Bu(Hn.nodeName);if(!Dte(Pte,Hi,Io)){g6(dg,Hn);continue}if(wte&&(Hi==="id"||Hi==="name")&&(g6(dg,Hn),Io=Bie+Io),kn&&typeof mt=="object"&&typeof mt.getAttributeType=="function"&&!LJ)switch(mt.getAttributeType(Pte,Hi)){case"TrustedHTML":{Io=kn.createHTML(Io);break}case"TrustedScriptURL":{Io=kn.createScriptURL(Io);break}}if(Io!==Yie)try{LJ?Hn.setAttributeNS(LJ,dg,Io):Hn.setAttribute(dg,Io)}catch{g6(dg,Hn)}}$y("afterSanitizeAttributes",Hn,null)},jie=function ma(Hn){let co;const Io=Rte(Hn);for($y("beforeSanitizeShadowDOM",Hn,null);co=Io.nextNode();)$y("uponSanitizeShadowNode",co,null),!Lte(co)&&(co.content instanceof Y&&ma(co.content),Ote(co));$y("afterSanitizeShadowDOM",Hn,null)};return a.sanitize=function(ma){let Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},co,Io,Hi,Hu;if(MJ=!ma,MJ&&(ma=""),typeof ma!="string"&&!HF(ma))if(typeof ma.toString=="function"){if(ma=ma.toString(),typeof ma!="string")throw Ud("dirty is not a string, aborting")}else throw Ud("toString is not a function");if(!a.isSupported)return ma;if(t3||_J(Hn),a.removed=[],typeof ma=="string"&&(m6=!1),m6){if(ma.nodeName){const dg=Bu(ma.nodeName);if(!Po[dg]||Rl[dg])throw Ud("root node is forbidden and cannot be sanitized in-place")}}else if(ma instanceof xe)co=_te(""),Io=co.ownerDocument.importNode(ma,!0),Io.nodeType===1&&Io.nodeName==="BODY"||Io.nodeName==="HTML"?co=Io:co.appendChild(Io);else{if(!y2&&!nm&&!wp&&ma.indexOf("<")===-1)return kn&&IF?kn.createHTML(ma):ma;if(co=_te(ma),!co)return y2?null:IF?Vn:""}co&&h6&&r3(co.firstChild);const fg=Rte(m6?ma:co);for(;Hi=fg.nextNode();)Lte(Hi)||(Hi.content instanceof Y&&jie(Hi.content),Ote(Hi));if(m6)return ma;if(y2){if(sE)for(Hu=br.call(co.ownerDocument);co.firstChild;)Hu.appendChild(co.firstChild);else Hu=co;return(Vo.shadowroot||Vo.shadowrootmode)&&(Hu=ea.call(p,Hu,!0)),Hu}let Ul=wp?co.outerHTML:co.innerHTML;return wp&&Po["!doctype"]&&co.ownerDocument&&co.ownerDocument.doctype&&co.ownerDocument.doctype.name&&sd(f8,co.ownerDocument.doctype.name)&&(Ul=" -`+Ul),nm&&(Ul=jh(Ul,Do," "),Ul=jh(Ul,Mo," "),Ul=jh(Ul,ja," ")),kn&&IF?kn.createHTML(Ul):Ul},a.setConfig=function(ma){_J(ma),t3=!0},a.clearConfig=function(){uE=null,t3=!1},a.isValidAttribute=function(ma,Hn,co){uE||_J({});const Io=Bu(ma),Hi=Bu(Hn);return Dte(Io,Hi,co)},a.addHook=function(ma,Hn){typeof Hn=="function"&&(Zr[ma]=Zr[ma]||[],EC(Zr[ma],Hn))},a.removeHook=function(ma){if(Zr[ma])return Rz(Zr[ma])},a.removeHooks=function(ma){Zr[ma]&&(Zr[ma]=[])},a.removeAllHooks=function(){Zr={}},a}var d8=OC();const X_=t=>d8().sanitize(t);var _f=tinymce.util.Tools.resolve("tinymce.util.I18n");const zz={indent:!0,outdent:!0,"table-insert-column-after":!0,"table-insert-column-before":!0,"paste-column-after":!0,"paste-column-before":!0,"unordered-list":!0,"list-bull-circle":!0,"list-bull-default":!0,"list-bull-square":!0},h8="temporary-placeholder",J_=t=>()=>Ft(t,h8).getOr("!not found!"),PC=(t,a)=>{const p=t.toLowerCase();if(_f.isRtl()){const E=Ze(p,"-rtl");return pn(a,E)?E:p}else return p},Q_=(t,a)=>Ft(a,PC(t,a)),q_=(t,a)=>{const p=a();return Q_(t,p).getOrThunk(J_(p))},e5=(t,a,p)=>{const E=a();return Q_(t,E).or(p).getOrThunk(J_(E))},Vz=t=>_f.isRtl()?pn(zz,t):!1,Ek=()=>jo("add-focusable",[ms(t=>{kb(t.element,"svg").each(a=>Lr(a,"focusable","false"))})]),m8=(t,a,p,E)=>{var z,Y;const re=Vz(a)?["tox-icon--flip"]:[],xe=Ft(p,PC(a,p)).or(E).getOrThunk(J_(p));return{dom:{tag:t.tag,attributes:(z=t.attributes)!==null&&z!==void 0?z:{},classes:t.classes.concat(re),innerHtml:xe},behaviours:gr([...(Y=t.behaviours)!==null&&Y!==void 0?Y:[],Ek()])}},Gd=(t,a,p,E=P.none())=>m8(a,t,p(),E),Uz=(t,a,p)=>{const E=p(),z=Ve(t,Y=>pn(E,PC(Y,E)));return m8(a,z.getOr(h8),E,P.none())},g8={success:"checkmark",error:"warning",err:"error",warning:"warning",warn:"warning",info:"info"},t5=ou({name:"Notification",factory:t=>{const a=Qa({dom:cp(`

    ${X_(t.translationProvider(t.text))}

    `),behaviours:gr([Ho.config({})])}),p=mt=>({dom:{tag:"div",classes:["tox-bar"],styles:{width:`${mt}%`}}}),E=mt=>({dom:{tag:"div",classes:["tox-text"],innerHtml:`${mt}%`}}),z=Qa({dom:{tag:"div",classes:t.progress?["tox-progress-bar","tox-progress-indicator"]:["tox-progress-bar"]},components:[{dom:{tag:"div",classes:["tox-bar-container"]},components:[p(0)]},E(0)],behaviours:gr([Ho.config({})])}),xe={updateProgress:(mt,Mt)=>{mt.getSystem().isConnected()&&z.getOpt(mt).each(Xt=>{Ho.set(Xt,[{dom:{tag:"div",classes:["tox-bar-container"]},components:[p(Mt)]},E(Mt)])})},updateText:(mt,Mt)=>{if(mt.getSystem().isConnected()){const Xt=a.get(mt);Ho.set(Xt,[ai(Mt)])}}},Ee=Fe([t.icon.toArray(),t.level.toArray(),t.level.bind(mt=>P.from(g8[mt])).toArray()]),Be=Qa(hl.sketch({dom:{tag:"button",classes:["tox-notification__dismiss","tox-button","tox-button--naked","tox-button--icon"]},components:[Gd("close",{tag:"span",classes:["tox-icon"],attributes:{"aria-label":t.translationProvider("Close")}},t.iconProvider)],action:mt=>{t.onAction(mt)}})),je=Uz(Ee,{tag:"div",classes:["tox-notification__icon"]},t.iconProvider),et={dom:{tag:"div",classes:["tox-notification__body"]},components:[a.asSpec()],behaviours:gr([Ho.config({})])},st=[je,et];return{uid:t.uid,dom:{tag:"div",attributes:{role:"alert"},classes:t.level.map(mt=>["tox-notification","tox-notification--in",`tox-notification--${mt}`]).getOr(["tox-notification","tox-notification--in"])},behaviours:gr([ko.config({}),jo("notification-events",[Xn(_o(),mt=>{Be.getOpt(mt).each(ko.focus)})])]),components:st.concat(t.progress?[z.asSpec()]:[]).concat(t.closeButton?[Be.asSpec()]:[]),apis:xe}},configFields:[Ia("level"),qn("progress"),Ia("icon"),qn("onAction"),qn("text"),qn("iconProvider"),qn("translationProvider"),Li("closeButton",!0)],apis:{updateProgress:(t,a,p)=>{t.updateProgress(a,p)},updateText:(t,a,p)=>{t.updateText(a,p)}}});var n5=(t,a,p)=>{const E=a.backstage.shared,z=()=>{const Ee=Js(zt.fromDom(t.getContentAreaContainer())),Be=bl(),je=ku(Be.x,Ee.x,Ee.right),et=ku(Be.y,Ee.y,Ee.bottom),st=Math.max(Ee.right,Be.right),mt=Math.max(Ee.bottom,Be.bottom);return P.some(Hs(je,et,st-je,mt-et))};return{open:(Ee,Be)=>{const je=()=>{Be(),Ws.hide(st)},et=Pl(t5.sketch({text:Ee.text,level:he(["success","error","warning","warn","info"],Ee.type)?Ee.type:void 0,progress:Ee.progressBar===!0,icon:Ee.icon,closeButton:Ee.closeButton,onAction:je,iconProvider:E.providers.icons,translationProvider:E.providers.translate})),st=Pl(Ws.sketch({dom:{tag:"div",classes:["tox-notifications-container"]},lazySink:E.getSink,fireDismissalEventInstead:{},...E.header.isPositionedAtTop()?{}:{fireRepositionEventInstead:{}}}));p.add(st),v(Ee.timeout)&&Ee.timeout>0&&ty.setEditorTimeout(t,()=>{je()},Ee.timeout);const Mt={close:je,reposition:()=>{const Xt=Tu(et),Dn={maxHeightFunction:pv()},hn=t.notificationManager.getNotifications();if(hn[0]===Mt){const rn={...E.anchors.banner(),overrides:Dn};Ws.showWithinBounds(st,Xt,{anchor:rn},z)}else Q(hn,Mt).each(rn=>{const kn=hn[rn-1].getEl(),Vn={type:"node",root:ss(),node:P.some(zt.fromDom(kn)),overrides:Dn,layouts:{onRtl:()=>[Yi],onLtr:()=>[Yi]}};Ws.showWithinBounds(st,Xt,{anchor:Vn},z)})},text:Xt=>{t5.updateText(et,Xt)},settings:Ee,getEl:()=>et.element.dom,progressBar:{value:Xt=>{t5.updateProgress(et,Xt)}}};return Mt},close:Ee=>{Ee.close()},getArgs:Ee=>Ee.settings}},oy=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),p8=tinymce.util.Tools.resolve("tinymce.EditorManager"),xx=tinymce.util.Tools.resolve("tinymce.Env"),af;(function(t){t.default="wrap",t.floating="floating",t.sliding="sliding",t.scrolling="scrolling"})(af||(af={}));var IC;(function(t){t.auto="auto",t.top="top",t.bottom="bottom"})(IC||(IC={}));const xs=t=>a=>a.options.get(t),NC=t=>a=>P.from(t(a)),v8=t=>{const a=xx.deviceType.isPhone(),p=xx.deviceType.isTablet()||a,E=t.options.register,z=re=>A(re)||re===!1,Y=re=>A(re)||v(re);E("skin",{processor:re=>A(re)||re===!1,default:"oxide"}),E("skin_url",{processor:"string"}),E("height",{processor:Y,default:Math.max(t.getElement().offsetHeight,400)}),E("width",{processor:Y,default:oy.DOM.getStyle(t.getElement(),"width")}),E("min_height",{processor:"number",default:100}),E("min_width",{processor:"number"}),E("max_height",{processor:"number"}),E("max_width",{processor:"number"}),E("style_formats",{processor:"object[]"}),E("style_formats_merge",{processor:"boolean",default:!1}),E("style_formats_autohide",{processor:"boolean",default:!1}),E("line_height_formats",{processor:"string",default:"1 1.1 1.2 1.3 1.4 1.5 2"}),E("font_family_formats",{processor:"string",default:"Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"}),E("font_size_formats",{processor:"string",default:"8pt 10pt 12pt 14pt 18pt 24pt 36pt"}),E("font_size_input_default_unit",{processor:"string",default:"pt"}),E("block_formats",{processor:"string",default:"Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre"}),E("content_langs",{processor:"object[]"}),E("removed_menuitems",{processor:"string",default:""}),E("menubar",{processor:re=>A(re)||c(re),default:!a}),E("menu",{processor:"object",default:{}}),E("toolbar",{processor:re=>c(re)||A(re)||h(re)?{value:re,valid:!0}:{valid:!1,message:"Must be a boolean, string or array."},default:!0}),Se(9,re=>{E("toolbar"+(re+1),{processor:"string"})}),E("toolbar_mode",{processor:"string",default:p?"scrolling":"floating"}),E("toolbar_groups",{processor:"object",default:{}}),E("toolbar_location",{processor:"string",default:IC.auto}),E("toolbar_persist",{processor:"boolean",default:!1}),E("toolbar_sticky",{processor:"boolean",default:t.inline}),E("toolbar_sticky_offset",{processor:"number",default:0}),E("fixed_toolbar_container",{processor:"string",default:""}),E("fixed_toolbar_container_target",{processor:"object"}),E("ui_mode",{processor:"string",default:"combined"}),E("file_picker_callback",{processor:"function"}),E("file_picker_validator_handler",{processor:"function"}),E("file_picker_types",{processor:"string"}),E("typeahead_urls",{processor:"boolean",default:!0}),E("anchor_top",{processor:z,default:"#top"}),E("anchor_bottom",{processor:z,default:"#bottom"}),E("draggable_modal",{processor:"boolean",default:!1}),E("statusbar",{processor:"boolean",default:!0}),E("elementpath",{processor:"boolean",default:!0}),E("branding",{processor:"boolean",default:!0}),E("promotion",{processor:"boolean",default:!0}),E("resize",{processor:re=>re==="both"||c(re),default:!xx.deviceType.isTouch()}),E("sidebar_show",{processor:"string"}),E("help_accessibility",{processor:"boolean",default:t.hasPlugin("help")}),E("default_font_stack",{processor:"string[]",default:[]})},y8=xs("readonly"),_k=xs("height"),FC=xs("width"),r5=NC(xs("min_width")),wx=NC(xs("min_height")),Rk=NC(xs("max_width")),o5=NC(xs("max_height")),b8=NC(xs("style_formats")),x8=xs("style_formats_merge"),w8=xs("style_formats_autohide"),C8=xs("content_langs"),a5=xs("removed_menuitems"),Cx=xs("toolbar_mode"),S8=xs("toolbar_groups"),BC=xs("toolbar_location"),ay=xs("fixed_toolbar_container"),Wz=xs("fixed_toolbar_container_target"),T8=xs("toolbar_persist"),Lk=xs("toolbar_sticky_offset"),s5=xs("menubar"),Dk=xs("toolbar"),k8=xs("file_picker_callback"),i5=xs("file_picker_validator_handler"),A8=xs("font_size_input_default_unit"),l5=xs("file_picker_types"),c5=xs("typeahead_urls"),$k=xs("anchor_top"),M8=xs("anchor_bottom"),u5=xs("draggable_modal"),E8=xs("statusbar"),Sx=xs("elementpath"),f5=xs("branding"),_8=xs("resize"),Ok=xs("paste_as_text"),Pk=xs("sidebar_show"),R8=xs("promotion"),Ik=xs("help_accessibility"),L8=xs("default_font_stack"),d5=t=>t.options.get("skin")===!1,Tx=t=>t.options.get("menubar")!==!1,Nk=t=>{const a=t.options.get("skin_url");if(d5(t))return a;if(a)return t.documentBaseURI.toAbsolute(a);{const p=t.options.get("skin");return p8.baseURL+"/skins/ui/"+p}},h5=t=>P.from(t.options.get("skin_url")),D8=t=>t.options.get("line_height_formats").split(" "),Fk=t=>{const a=Dk(t),p=A(a),E=h(a)&&a.length>0;return!HC(t)&&(E||p||a===!0)},m5=t=>{const a=Se(9,E=>t.options.get("toolbar"+(E+1))),p=Ce(a,A);return lt(p.length>0,p)},HC=t=>m5(t).fold(()=>{const a=Dk(t);return x(a,A)&&a.length>0},j),g5=t=>BC(t)===IC.bottom,$8=t=>{var a;if(!t.inline)return P.none();const p=(a=ay(t))!==null&&a!==void 0?a:"";if(p.length>0)return mi(ss(),p);const E=Wz(t);return d(E)?P.some(zt.fromDom(E)):P.none()},kx=t=>t.inline&&$8(t).isSome(),p5=t=>$8(t).getOrThunk(()=>Fa(Yo(zt.fromDom(t.getElement())))),v5=t=>t.inline&&!Tx(t)&&!Fk(t)&&!HC(t),zC=t=>(t.options.get("toolbar_sticky")||t.inline)&&!kx(t)&&!v5(t),Km=t=>!kx(t)&&t.options.get("ui_mode")==="split",O8=t=>{const a=t.options.get("menu");return Xe(a,p=>({...p,items:p.items}))};var Gz=Object.freeze({__proto__:null,get ToolbarMode(){return af},get ToolbarLocation(){return IC},register:v8,getSkinUrl:Nk,getSkinUrlOption:h5,isReadOnly:y8,isSkinDisabled:d5,getHeightOption:_k,getWidthOption:FC,getMinWidthOption:r5,getMinHeightOption:wx,getMaxWidthOption:Rk,getMaxHeightOption:o5,getUserStyleFormats:b8,shouldMergeStyleFormats:x8,shouldAutoHideStyleFormats:w8,getLineHeightFormats:D8,getContentLanguages:C8,getRemovedMenuItems:a5,isMenubarEnabled:Tx,isMultipleToolbars:HC,isToolbarEnabled:Fk,isToolbarPersist:T8,getMultipleToolbarsOption:m5,getUiContainer:p5,useFixedContainer:kx,isSplitUiMode:Km,getToolbarMode:Cx,isDraggableModal:u5,isDistractionFree:v5,isStickyToolbar:zC,getStickyToolbarOffset:Lk,getToolbarLocation:BC,isToolbarLocationBottom:g5,getToolbarGroups:S8,getMenus:O8,getMenubar:s5,getToolbar:Dk,getFilePickerCallback:k8,getFilePickerTypes:l5,useTypeaheadUrls:c5,getAnchorTop:$k,getAnchorBottom:M8,getFilePickerValidatorHandler:i5,getFontSizeInputDefaultUnit:A8,useStatusBar:E8,useElementPath:Sx,promotionEnabled:R8,useBranding:f5,getResize:_8,getPasteAsText:Ok,getSidebarShow:Pk,useHelpAccessibility:Ik,getDefaultFontStack:L8});const P8="[data-mce-autocompleter]",y5=t=>Qf(t,P8),Zz=t=>mi(t,P8),jz={setup:(t,a)=>{const p=(z,Y)=>{go(z,Ca(),{raw:Y})},E=()=>t.getMenu().bind(Na.getHighlighted);a.on("keydown",z=>{const Y=z.which;t.isActive()&&(t.isMenuOpen()?Y===13?(E().each(kh),z.preventDefault()):Y===40?(E().fold(()=>{t.getMenu().each(Na.highlightFirst)},re=>{p(re,z)}),z.preventDefault(),z.stopImmediatePropagation()):(Y===37||Y===38||Y===39)&&E().each(re=>{p(re,z),z.preventDefault(),z.stopImmediatePropagation()}):(Y===13||Y===38||Y===40)&&t.cancelIfNecessary())}),a.on("NodeChange",z=>{t.isActive()&&!t.isProcessingAction()&&y5(zt.fromDom(z.element)).isNone()&&t.cancelIfNecessary()})}};var b5;(function(t){t[t.CLOSE_ON_EXECUTE=0]="CLOSE_ON_EXECUTE",t[t.BUBBLE_TO_SANDBOX=1]="BUBBLE_TO_SANDBOX"})(b5||(b5={}));var Yh=b5;const x5="tox-menu-nav__js",Ax="tox-collection__item",w5="tox-swatch",Yz={normal:x5,color:w5},I8="tox-collection__item--enabled",Kz="tox-collection__group-heading",N8="tox-collection__item-icon",C5="tox-collection__item-label",Xz="tox-collection__item-accessory",F8="tox-collection__item-caret",Jz="tox-collection__item-checkmark",VC="tox-collection__item--active",B8="tox-collection__item-container",Qz="tox-collection__item-container--column",H8="tox-collection__item-container--row",Bk="tox-collection__item-container--align-right",qz="tox-collection__item-container--align-left",S5="tox-collection__item-container--valign-top",eV="tox-collection__item-container--valign-middle",tV="tox-collection__item-container--valign-bottom",z8=t=>Ft(Yz,t).getOr(x5),V8=t=>t==="color"?"tox-swatches":"tox-menu",T5=t=>({backgroundMenu:"tox-background-menu",selectedMenu:"tox-selected-menu",selectedItem:"tox-collection__item--active",hasIcons:"tox-menu--has-icons",menu:V8(t),tieredMenu:"tox-tiered-menu"}),fp=t=>{const a=T5(t);return{backgroundMenu:a.backgroundMenu,selectedMenu:a.selectedMenu,menu:a.menu,selectedItem:a.selectedItem,item:z8(t)}},k5=(t,a,p)=>{const E=T5(p);return{tag:"div",classes:Fe([[E.menu,`tox-menu-${a}-column`],t?[E.hasIcons]:[]])}},U8=[ey.parts.items({})],Mx=(t,a,p)=>{const E=T5(p);return{dom:{tag:"div",classes:Fe([[E.tieredMenu]])},markers:fp(p)}},UC=O([Ia("data"),En("inputAttributes",{}),En("inputStyles",{}),En("tag","input"),En("inputClasses",[]),Sa("onSetValue"),En("styles",{}),En("eventOrder",{}),Fi("inputBehaviours",[Fr,ko]),En("selectOnFocus",!0)]),A5=t=>gr([ko.config({onFocus:t.selectOnFocus?a=>{const p=a.element,E=Dd(p);p.dom.setSelectionRange(0,E.length)}:C})]),Xm=t=>({...A5(t),...Si(t.inputBehaviours,[Fr.config({store:{mode:"manual",...t.data.map(a=>({initialValue:a})).getOr({}),getValue:a=>Dd(a.element),setValue:(a,p)=>{Dd(a.element)!==p&&rv(a.element,p)}},onSetValue:t.onSetValue})])}),Hk=t=>({tag:t.tag,attributes:{type:"text",...t.inputAttributes},styles:t.inputStyles,classes:t.inputClasses}),nV=(t,a)=>({uid:t.uid,dom:Hk(t),components:[],behaviours:Xm(t),eventOrder:t.eventOrder}),sy=ou({name:"Input",configFields:UC(),factory:nV}),W8=Xr("refetch-trigger-event"),G8=Xr("redirect-menu-item-interaction"),Ex="tox-menu__searcher",zk=t=>mi(t.element,`.${Ex}`).bind(a=>t.getSystem().getByDom(a).toOptional()),M5=zk,E5=(t,a)=>{Fr.setValue(t,a.fetchPattern),t.element.dom.selectionStart=a.selectionStart,t.element.dom.selectionEnd=a.selectionEnd},Z8=t=>{const a=Fr.getValue(t),p=t.element.dom.selectionStart,E=t.element.dom.selectionEnd;return{fetchPattern:a,selectionStart:p,selectionEnd:E}},_5=(t,a)=>{yi(a.element,"id").each(p=>Lr(t.element,"aria-activedescendant",p))},R5=t=>{const a=(z,Y)=>(Y.cut(),P.none()),p=(z,Y)=>{const re={interactionEvent:Y.event,eventType:Y.event.raw.type};return go(z,G8,re),P.some(!0)},E="searcher-events";return{dom:{tag:"div",classes:[Ax]},components:[sy.sketch({inputClasses:[Ex,"tox-textfield"],inputAttributes:{...t.placeholder.map(z=>({placeholder:t.i18n(z)})).getOr({}),type:"search","aria-autocomplete":"list"},inputBehaviours:gr([jo(E,[Xn(qs(),z=>{pa(z,W8)}),Xn(Ca(),(z,Y)=>{Y.event.raw.key==="Escape"&&Y.stop()})]),po.config({mode:"special",onLeft:a,onRight:a,onSpace:a,onEnter:p,onEscape:p,onUp:p,onDown:p})]),eventOrder:{keydown:[E,po.name()]}})]}},Vk="tox-collection--results__js",L5=t=>{var a;return t.dom?{...t,dom:{...t.dom,attributes:{...(a=t.dom.attributes)!==null&&a!==void 0?a:{},id:Xr("aria-item-search-result-id"),"aria-selected":"false"}}}:t},Uk=(t,a)=>p=>{const E=ce(p,a);return ne(E,z=>({dom:t,components:z}))},rV=t=>({dom:{tag:"div",classes:["tox-menu","tox-swatches-menu"]},components:[{dom:{tag:"div",classes:["tox-swatches"]},components:[ey.parts.items({preprocess:t!=="auto"?Uk({tag:"div",classes:["tox-swatches__row"]},t):D})]}]}),oV=t=>({dom:{tag:"div",classes:["tox-menu","tox-collection","tox-collection--toolbar","tox-collection--toolbar-lg"]},components:[ey.parts.items({preprocess:Uk({tag:"div",classes:["tox-collection__group"]},t)})]}),j8=(t,a)=>{const p=[];let E=[];return fe(t,(z,Y)=>{a(z,Y)?(E.length>0&&p.push(E),E=[],(pn(z.dom,"innerHtml")||z.components&&z.components.length>0)&&E.push(z)):E.push(z)}),E.length>0&&p.push(E),ne(p,z=>({dom:{tag:"div",classes:["tox-collection__group"]},components:z}))},D5=(t,a,p)=>ey.parts.items({preprocess:E=>{const z=ne(E,p);return t!=="auto"&&t>1?Uk({tag:"div",classes:["tox-collection__group"]},t)(z):j8(z,(Y,re)=>a[re].type==="separator")}}),Y8=(t,a,p=!0)=>({dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(t===1?["tox-collection--list"]:["tox-collection--grid"])},components:[D5(t,a,D)]}),aV=(t,a,p=!0)=>{const E=Xr("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection",Vk].concat(t===1?["tox-collection--list"]:["tox-collection--grid"]),attributes:{id:E}},components:[D5(t,a,L5)]}},K8=(t,a,p)=>{const E=Xr("aria-controls-search-results");return{dom:{tag:"div",classes:["tox-menu","tox-collection"].concat(t===1?["tox-collection--list"]:["tox-collection--grid"])},components:[R5({i18n:_f.translate,placeholder:p.placeholder}),{dom:{tag:"div",classes:[...t===1?["tox-collection--list"]:["tox-collection--grid"],Vk],attributes:{id:E}},components:[D5(t,a,L5)]}]}},X8=(t,a=!0)=>({dom:{tag:"div",classes:["tox-collection","tox-collection--horizontal"]},components:[ey.parts.items({preprocess:p=>j8(p,(E,z)=>t[z].type==="separator")})]}),Wk=t=>ge(t,a=>"icon"in a&&a.icon!==void 0),Jm=t=>(console.error(wl(t)),console.log(t),P.none()),WC=(t,a,p,E,z)=>{const Y=X8(p);return{value:t,dom:Y.dom,components:Y.components,items:p}},Gk=(t,a,p,E,z)=>{const Y=()=>z.menuType!=="searchable"?Y8(E,p):z.searchMode.searchMode==="search-with-field"?K8(E,p,z.searchMode):aV(E,p);if(z.menuType==="color"){const re=rV(E);return{value:t,dom:re.dom,components:re.components,items:p}}else if(z.menuType==="normal"&&E==="auto"){const re=Y8(E,p);return{value:t,dom:re.dom,components:re.components,items:p}}else if(z.menuType==="normal"||z.menuType==="searchable"){const re=Y();return{value:t,dom:re.dom,components:re.components,items:p}}else if(z.menuType==="listpreview"&&E!=="auto"){const re=oV(E);return{value:t,dom:re.dom,components:re.components,items:p}}else return{value:t,dom:k5(a,E,z.menuType),components:U8,items:p}},Oi=Da("type"),$5=Da("name"),Zk=Da("label"),dp=Da("text"),J8=Da("title"),O5=Da("icon"),_x=Da("value"),Q8=bu("fetch"),q8=bu("getSubmenuItems"),Rx=bu("onAction"),sV=bu("onItemAction"),Gv=bi("onSetup",()=>C),P5=Gi("name"),Qm=Gi("text"),Rf=Gi("icon"),GC=Gi("tooltip"),jk=Gi("label"),iV=Gi("shortcut"),I5=pf("select"),Yk=Li("active",!1),e7=Li("borderless",!1),id=Li("enabled",!0),qm=Li("primary",!1),t7=t=>En("columns",t),ZC=En("meta",{}),Lx=bi("onAction",C),iy=t=>bf("type",t),Kk=t=>Wi("name","name",Xu(()=>Xr(`${t}-name`)),Ui),n7=t=>Wi("value","value",Xu(()=>Xr(`${t}-value`)),oi()),N5=io([Oi,Qm]),F5=t=>ns("separatormenuitem",N5,t),r7=io([iy("autocompleteitem"),Yk,id,ZC,_x,Qm,Rf]),lV=t=>ns("Autocompleter.Separator",N5,t),o7=t=>ns("Autocompleter.Item",r7,t),Dx=[id,GC,Rf,Qm,Gv],a7=io([Oi,Rx].concat(Dx)),B5=t=>ns("toolbarbutton",a7,t),H5=[Yk].concat(Dx),s7=io(H5.concat([Oi,Rx])),i7=t=>ns("ToggleButton",s7,t),l7=[bi("predicate",H),bc("scope","node",["node","editor"]),bc("position","selection",["node","selection","line"])],cV=Dx.concat([iy("contextformbutton"),qm,Rx,zs("original",D)]),uV=H5.concat([iy("contextformbutton"),qm,Rx,zs("original",D)]),c7=Dx.concat([iy("contextformbutton")]),jC=H5.concat([iy("contextformtogglebutton")]),u7=fa("type",{contextformbutton:cV,contextformtogglebutton:uV}),fV=io([iy("contextform"),bi("initValue",O("")),jk,Ol("commands",u7),$c("launch",fa("type",{contextformbutton:c7,contextformtogglebutton:jC}))].concat(l7)),dV=t=>ns("ContextForm",fV,t),hV=io([iy("contexttoolbar"),Da("items")].concat(l7)),mV=t=>ns("ContextToolbar",hV,t),gV=[Oi,Da("src"),Gi("alt"),ec("classes",[],Ui)],Xk=io(gV),pV=[Oi,dp,P5,ec("classes",["tox-collection__item-label"],Ui)],f7=io(pV),d7=Vi(()=>ir("type",{cardimage:Xk,cardtext:f7,cardcontainer:h7})),h7=io([Oi,bf("direction","horizontal"),bf("align","left"),bf("valign","middle"),Ol("items",d7)]),ly=[id,Qm,iV,n7("menuitem"),ZC],vV=io([Oi,jk,Ol("items",d7),Gv,Lx].concat(ly)),m7=t=>ns("cardmenuitem",vV,t),g7=io([Oi,Yk,Rf].concat(ly)),p7=t=>ns("choicemenuitem",g7,t),z5=[Oi,Da("fancytype"),Lx],yV=[En("initData",{})].concat(z5),bV=[pf("select"),U("initData",{},[Li("allowCustomColors",!0),bf("storageKey","default"),jf("colors",oi())])].concat(z5),xV=fa("fancytype",{inserttable:yV,colorswatch:bV}),wV=t=>ns("fancymenuitem",xV,t),v7=io([Oi,Gv,Lx,Rf].concat(ly)),y7=t=>ns("menuitem",v7,t),CV=io([Oi,q8,Gv,Rf].concat(ly)),SV=t=>ns("nestedmenuitem",CV,t),TV=io([Oi,Rf,Yk,Gv,Rx].concat(ly)),kV=t=>ns("togglemenuitem",TV,t),V5=(t,a,p)=>{const E=Xi(t.element,"."+p);if(E.length>0){const z=Oe(E,Y=>{const re=Y.dom.getBoundingClientRect().top,xe=E[0].dom.getBoundingClientRect().top;return Math.abs(re-xe)>a}).getOr(E.length);return P.some({numColumns:z,numRows:Math.ceil(E.length/z)})}else return P.none()},U5=(t,a)=>gr([jo(t,a)]),YC={namedEvents:U5,unnamedEvents:t=>U5(Xr("unnamed-events"),t)},Jk=Xr("tooltip.exclusive"),$x=Xr("tooltip.show"),KC=Xr("tooltip.hide"),b7=(t,a,p)=>{t.getSystem().broadcastOn([Jk],{})};var MV=Object.freeze({__proto__:null,hideAllExclusive:b7,setComponents:(t,a,p,E)=>{p.getTooltip().each(z=>{z.getSystem().isConnected()&&Ho.set(z,E)})}}),x7=Object.freeze({__proto__:null,events:(t,a)=>{const p=z=>{a.getTooltip().each(Y=>{Bd(Y),t.onHide(z,Y),a.clearTooltip()}),a.clearTimer()},E=z=>{if(!a.isShowing()){b7(z);const Y=t.lazySink(z).getOrDie(),re=z.getSystem().build({dom:t.tooltipDom,components:t.tooltipComponents,events:bs(t.mode==="normal"?[Xn($r(),xe=>{pa(z,$x)}),Xn(Vs(),xe=>{pa(z,KC)})]:[]),behaviours:gr([Ho.config({})])});a.setTooltip(re),zm(Y,re),t.onShow(z,re),Nl.position(Y,re,{anchor:t.anchor(z)})}};return bs(Fe([[Xn($x,z=>{a.resetTimer(()=>{E(z)},t.delay)}),Xn(KC,z=>{a.resetTimer(()=>{p(z)},t.delay)}),Xn(Tl(),(z,Y)=>{const re=Y;re.universal||he(re.channels,Jk)&&p(z)}),_d(z=>{p(z)})],t.mode==="normal"?[Xn(_o(),z=>{pa(z,$x)}),Xn(Sl(),z=>{pa(z,KC)}),Xn($r(),z=>{pa(z,$x)}),Xn(Vs(),z=>{pa(z,KC)})]:[Xn(e1(),(z,Y)=>{pa(z,$x)}),Xn(t1(),z=>{pa(z,KC)})]]))}}),w7=[qn("lazySink"),qn("tooltipDom"),En("exclusive",!0),En("tooltipComponents",[]),En("delay",300),bc("mode","normal",["normal","follow-highlight"]),En("anchor",t=>({type:"hotspot",hotspot:t,layouts:{onLtr:O([Yi,oc,ji,Cc,Ml,Il]),onRtl:O([Yi,oc,ji,Cc,Ml,Il])}})),Sa("onHide"),Sa("onShow")],_V=Object.freeze({__proto__:null,init:()=>{const t=ia(),a=ia(),p=()=>{t.on(clearTimeout)},E=(Y,re)=>{p(),t.set(setTimeout(Y,re))},z=O("not-implemented");return Qc({getTooltip:a.get,isShowing:a.isSet,setTooltip:a.set,clearTooltip:a.clear,clearTimer:p,resetTimer:E,readState:z})}});const C7=Ki({fields:w7,name:"tooltipping",active:x7,state:_V,apis:MV}),RV=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),S7="silver.readonly",W5=io([z2("readonly")]),Qk=(t,a)=>{const E=t.mainUi.outerContainer.element,z=[t.mainUi.mothership,...t.uiMotherships];a&&fe(z,Y=>{Y.broadcastOn([rd()],{target:E})}),fe(z,Y=>{Y.broadcastOn([S7],{readonly:a})})},T7=(t,a)=>{t.on("init",()=>{t.mode.isReadOnly()&&Qk(a,!0)}),t.on("SwitchMode",()=>Qk(a,t.mode.isReadOnly())),y8(t)&&t.mode.set("readonly")},Qi=()=>Pc.config({channels:{[S7]:{schema:W5,onReceive:(t,a)=>{Co.set(t,a.readonly)}}}}),Bi={item:t=>Co.config({disabled:t,disableClass:"tox-collection__item--state-disabled"}),button:t=>Co.config({disabled:t}),splitButton:t=>Co.config({disabled:t,disableClass:"tox-tbtn--disabled"}),toolbarButton:t=>Co.config({disabled:t,disableClass:"tox-tbtn--disabled",useNative:!1})},Lf=(t,a)=>{const p=t.getApi(a);return E=>{E(p)}},Zv=(t,a)=>ms(p=>{Lf(t,p)(z=>{const Y=t.onSetup(z);g(Y)&&a.set(Y)})}),eg=(t,a)=>_d(p=>Lf(t,p)(a.get())),G5=(t,a)=>xf((p,E)=>{Lf(t,p)(t.onAction),!t.triggersSubmenu&&a===Yh.CLOSE_ON_EXECUTE&&(p.getSystem().isConnected()&&pa(p,wu()),E.stop())}),DV={[Ci()]:["disabling","alloy.base.behaviour","toggling","item-events"]},Ox=an,tg=(t,a,p,E)=>{const z=q(C);return{type:"item",dom:a.dom,components:Ox(a.optComponents),data:t.data,eventOrder:DV,hasSubmenu:t.triggersSubmenu,itemBehaviours:gr([jo("item-events",[G5(t,p),Zv(t,z),eg(t,z)]),Bi.item(()=>!t.enabled||E.isDisabled()),Qi(),Ho.config({})].concat(t.itemBehaviours))}},hp=t=>({value:t.value,meta:{text:t.text.getOr(""),...t.meta}}),qk=t=>{const a=xx.os.isMacOS()||xx.os.isiOS(),z=a?{alt:"⌥",ctrl:"⌃",shift:"⇧",meta:"⌘",access:"⌃⌥"}:{meta:"Ctrl",access:"Shift+Alt"},Y=t.split("+"),re=ne(Y,xe=>{const Ee=xe.toLowerCase().trim();return pn(z,Ee)?z[Ee]:xe});return a?re.join(""):re.join("+")},Z5=(t,a,p=[N8])=>Gd(t,{tag:"div",classes:p},a),Zd=t=>({dom:{tag:"div",classes:[C5]},components:[ai(_f.translate(t))]}),k7=(t,a)=>({dom:{tag:"div",classes:a,innerHtml:t}}),$V=(t,a)=>({dom:{tag:"div",classes:[C5]},components:[{dom:{tag:t.tag,styles:t.styles},components:[ai(_f.translate(a))]}]}),ld=t=>({dom:{tag:"div",classes:[Xz]},components:[ai(qk(t))]}),Px=t=>Z5("checkmark",t,[Jz]),jd=t=>Z5("chevron-right",t,[F8]),OV=t=>Z5("chevron-down",t,[F8]),cs=(t,a)=>{const p=t.direction==="vertical"?Qz:H8,E=t.align==="left"?qz:Bk;return{dom:{tag:"div",classes:[B8,p,E,(()=>{switch(t.valign){case"top":return S5;case"middle":return eV;case"bottom":return tV}})()]},components:a}},Ix=(t,a,p)=>({dom:{tag:"img",classes:a,attributes:{src:t,alt:p.getOr("")}}}),eA=(t,a,p)=>{const E="custom",z="remove",Y=t.ariaLabel,re=t.value,xe=t.iconContent.map(Be=>e5(Be,a.icons,p));return{dom:(()=>{const Be=w5,je=xe.getOr(""),st={tag:"div",attributes:Y.map(mt=>({title:a.translate(mt)})).getOr({}),classes:[Be]};return re===E?{...st,tag:"button",classes:[...st.classes,"tox-swatches__picker-btn"],innerHtml:je}:re===z?{...st,classes:[...st.classes,"tox-swatch--remove"],innerHtml:je}:d(re)?{...st,attributes:{...st.attributes,"data-mce-color":re},styles:{"background-color":re},innerHtml:je}:st})(),optComponents:[]}},j5=t=>{const a=t.map(p=>({attributes:{title:_f.translate(p),id:Xr("menu-item")}})).getOr({});return{tag:"div",classes:[x5,Ax],...a}},Y5=(t,a,p,E)=>{const z={tag:"div",classes:[N8]},Y=st=>Gd(st,z,a.icons,E),re=()=>P.some({dom:z}),xe=p?t.iconContent.map(Y).orThunk(re):P.none(),Ee=t.checkMark,Be=P.from(t.meta).fold(()=>Zd,st=>pn(st,"style")?M($V,st.style):Zd),je=t.htmlContent.fold(()=>t.textContent.map(Be),st=>P.some(k7(st,[C5])));return{dom:j5(t.ariaLabel),optComponents:[xe,je,t.shortcutContent.map(ld),Ee,t.caret]}},cy=(t,a,p,E=P.none())=>t.presets==="color"?eA(t,a,E):Y5(t,a,p,E),A7=(t,a)=>Ft(t,"tooltipWorker").map(p=>[C7.config({lazySink:a.getSink,tooltipDom:{tag:"div",classes:["tox-tooltip-worker-container"]},tooltipComponents:[],anchor:E=>({type:"submenu",item:E,overrides:{maxHeightFunction:pv}}),mode:"follow-highlight",onShow:(E,z)=>{p(Y=>{C7.setComponents(E,[G3({element:zt.fromDom(Y)})])})}})]).getOr([]),K5=t=>oy.DOM.encode(t),M7=(t,a)=>{const p=_f.translate(t),E=K5(p);if(a.length>0){const z=new RegExp(RV(a),"gi");return E.replace(z,Y=>`${Y}`)}else return E},E7=(t,a,p,E,z,Y,re,xe=!0)=>{const Ee=cy({presets:E,textContent:P.none(),htmlContent:p?t.text.map(Be=>M7(Be,a)):P.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:P.none(),checkMark:P.none(),caret:P.none(),value:t.value},re.providers,xe,t.icon);return tg({data:hp(t),enabled:t.enabled,getApi:O({}),onAction:Be=>z(t.value,t.meta),onSetup:O(C),triggersSubmenu:!1,itemBehaviours:A7(t.meta,re)},Ee,Y,re.providers)},X5=(t,a)=>ne(t,p=>{switch(p.type){case"cardcontainer":return cs(p,X5(p.items,a));case"cardimage":return Ix(p.src,p.classes,p.alt);case"cardtext":const z=p.name.exists(Y=>he(a.cardText.highlightOn,Y))?P.from(a.cardText.matchText).getOr(""):"";return k7(M7(p.text,z),p.classes)}}),J5=(t,a,p,E)=>{const z=re=>({isEnabled:()=>!Co.isDisabled(re),setEnabled:xe=>{Co.set(re,!xe),fe(Xi(re.element,"*"),Ee=>{re.getSystem().getByDom(Ee).each(Be=>{Be.hasConfigured(Co)&&Co.set(Be,!xe)})})}}),Y={dom:j5(t.label),optComponents:[P.some({dom:{tag:"div",classes:[B8,H8]},components:X5(t.items,E)})]};return tg({data:hp({text:P.none(),...t}),enabled:t.enabled,getApi:z,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:P.from(E.itemBehaviours).getOr([])},Y,a,p.providers)},_7=(t,a,p,E,z,Y,re,xe=!0)=>{const Ee=je=>({setActive:et=>{qo.set(je,et)},isActive:()=>qo.isOn(je),isEnabled:()=>!Co.isDisabled(je),setEnabled:et=>Co.set(je,!et)}),Be=cy({presets:p,textContent:a?t.text:P.none(),htmlContent:P.none(),ariaLabel:t.text,iconContent:t.icon,shortcutContent:a?t.shortcut:P.none(),checkMark:a?P.some(Px(re.icons)):P.none(),caret:P.none(),value:t.value},re,xe);return hs(tg({data:hp(t),enabled:t.enabled,getApi:Ee,onAction:je=>E(t.value),onSetup:je=>(je.setActive(z),C),triggersSubmenu:!1,itemBehaviours:[]},Be,Y,re),{toggling:{toggleClass:I8,toggleOnExecute:!1,selected:t.active,exclusive:!0}})},XC=Hh(AC(),MC()),R7=t=>({value:O7(t)}),L7=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,D7=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,$7=t=>L7.test(t)||D7.test(t),O7=t=>$t(t,"#").toUpperCase(),P7=t=>$7(t)?P.some({value:O7(t)}):P.none(),PV=t=>({value:t.value.replace(L7,(p,E,z,Y)=>E+E+z+z+Y+Y)}),IV=t=>{const a=PV(t),p=D7.exec(a.value);return p===null?["FFFFFF","FF","FF","FF"]:p},tA=t=>{const a=t.toString(16);return(a.length===1?"0"+a:a).toUpperCase()},Nx=t=>{const a=tA(t.red)+tA(t.green)+tA(t.blue);return R7(a)},I7=Math.min,N7=Math.max,JC=Math.round,F7=/^\s*rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)\s*$/i,B7=/^\s*rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?(?:\.\d+)?)\s*\)\s*$/i,jv=(t,a,p,E)=>({red:t,green:a,blue:p,alpha:E}),Q5=t=>{const a=parseInt(t,10);return a.toString()===t&&a>=0&&a<=255},H7=t=>{let a,p,E;const z=(t.hue||0)%360;let Y=t.saturation/100,re=t.value/100;if(Y=N7(0,I7(Y,1)),re=N7(0,I7(re,1)),Y===0)return a=p=E=JC(255*re),jv(a,p,E,1);const xe=z/60,Ee=re*Y,Be=Ee*(1-Math.abs(xe%2-1)),je=re-Ee;switch(Math.floor(xe)){case 0:a=Ee,p=Be,E=0;break;case 1:a=Be,p=Ee,E=0;break;case 2:a=0,p=Ee,E=Be;break;case 3:a=0,p=Be,E=Ee;break;case 4:a=Be,p=0,E=Ee;break;case 5:a=Ee,p=0,E=Be;break;default:a=p=E=0}return a=JC(255*(a+je)),p=JC(255*(p+je)),E=JC(255*(E+je)),jv(a,p,E,1)},QC=t=>{const a=IV(t),p=parseInt(a[1],16),E=parseInt(a[2],16),z=parseInt(a[3],16);return jv(p,E,z,1)},z7=(t,a,p,E)=>{const z=parseInt(t,10),Y=parseInt(a,10),re=parseInt(p,10),xe=parseFloat(E);return jv(z,Y,re,xe)},q5=t=>{if(t==="transparent")return P.some(jv(0,0,0,0));const a=F7.exec(t);if(a!==null)return P.some(z7(a[1],a[2],a[3],"1"));const p=B7.exec(t);return p!==null?P.some(z7(p[1],p[2],p[3],p[4])):P.none()},eR=t=>`rgba(${t.red},${t.green},${t.blue},${t.alpha})`,cd=jv(255,0,0,1),NV=t=>{t.dispatch("SkinLoaded")},tR=(t,a)=>{t.dispatch("SkinLoadError",a)},V7=t=>{t.dispatch("ResizeEditor")},nA=(t,a)=>{t.dispatch("ResizeContent",a)},FV=(t,a)=>{t.dispatch("ScrollContent",a)},nR=(t,a)=>{t.dispatch("TextColorChange",a)},U7=(t,a)=>{t.dispatch("AfterProgressState",{state:a})},W7=(t,a)=>t.dispatch("ResolveName",{name:a.nodeName.toLowerCase(),target:a}),BV=(t,a)=>{t.dispatch("ToggleToolbarDrawer",{state:a})},HV=(t,a)=>{t.dispatch("StylesTextUpdate",a)},zV=(t,a)=>{t.dispatch("AlignTextUpdate",a)},VV=(t,a)=>{t.dispatch("FontSizeTextUpdate",a)},UV=(t,a)=>{t.dispatch("FontSizeInputTextUpdate",a)},G7=(t,a)=>{t.dispatch("BlocksTextUpdate",a)},Z7=(t,a)=>{t.dispatch("FontFamilyTextUpdate",a)},qC=(t,a)=>()=>{t(),a()},Vc=t=>Yd(t,"NodeChange",a=>{a.setEnabled(t.selection.isEditable())}),WV=(t,a)=>p=>{const E=Oh(),z=()=>{p.setActive(t.formatter.match(a));const Y=t.formatter.formatChanged(a,p.setActive);E.set(Y)};return t.initialized?z():t.once("init",z),()=>{t.off("init",z),E.clear()}},rA=(t,a)=>p=>{const E=Vc(t)(p),z=WV(t,a)(p);return()=>{E(),z()}},Yd=(t,a,p)=>E=>{const z=()=>p(E),Y=()=>{p(E),t.on(a,z)};return t.initialized?Y():t.once("init",Y),()=>{t.off("init",Y),t.off(a,z)}},j7=t=>a=>()=>{t.undoManager.transact(()=>{t.focus(),t.execCommand("mceToggleFormat",!1,a.format)})},Du=(t,a)=>()=>t.execCommand(a);var Yv=tinymce.util.Tools.resolve("tinymce.util.LocalStorage");const rR={},oR=(t,a=10)=>{const p=Yv.getItem(t),E=A(p)?JSON.parse(p):[],Y=(Be=>a-Be.length<0?Be.slice(0,a):Be)(E),re=Be=>{Q(Y,Be).each(xe),Y.unshift(Be),Y.length>a&&Y.pop(),Yv.setItem(t,JSON.stringify(Y))},xe=Be=>{Y.splice(Be,1)};return{add:re,state:()=>Y.slice(0)}},oA=t=>Ft(rR,t).getOrThunk(()=>{const a=`tinymce-custom-colors-${t}`,p=Yv.getItem(a);if(u(p)){const z=Yv.getItem("tinymce-custom-colors");Yv.setItem(a,d(z)?z:"[]")}const E=oR(a,10);return rR[t]=E,E}),aR=t=>ne(oA(t).state(),a=>({type:"choiceitem",text:a,icon:"checkmark",value:a})),sR=(t,a)=>{oA(t).add(a)},eS=(t,a,p)=>({hue:t,saturation:a,value:p}),aA=t=>{let a=0,p=0,E=0;const z=t.red/255,Y=t.green/255,re=t.blue/255,xe=Math.min(z,Math.min(Y,re)),Ee=Math.max(z,Math.max(Y,re));if(xe===Ee)return E=xe,eS(0,0,E*100);const Be=z===xe?Y-re:re===xe?z-Y:re-z;return a=z===xe?3:re===xe?1:5,a=60*(a-Be/(Ee-xe)),p=(Ee-xe)/Ee,E=Ee,eS(Math.round(a),Math.round(p*100),Math.round(E*100))},GV=t=>aA(QC(t)),Y7=t=>Nx(H7(t)),ZV=t=>P7(t).orThunk(()=>q5(t).map(Nx)).getOrThunk(()=>{const a=document.createElement("canvas");a.height=1,a.width=1;const p=a.getContext("2d");p.clearRect(0,0,a.width,a.height),p.fillStyle="#FFFFFF",p.fillStyle=t,p.fillRect(0,0,1,1);const E=p.getImageData(0,0,1,1).data,z=E[0],Y=E[1],re=E[2],xe=E[3];return Nx(jv(z,Y,re,xe))}),sA="forecolor",iA="hilitecolor",K7=5,jV=t=>{const a=[];for(let p=0;pa=>a.options.get(t),iR="#000000",YV=t=>{const a=t.options.register,p=z=>x(z,A)?{value:jV(z),valid:!0}:{valid:!1,message:"Must be an array of strings."},E=z=>v(z)&&z>0?{value:z,valid:!0}:{valid:!1,message:"Must be a positive number."};a("color_map",{processor:p,default:["#BFEDD2","Light Green","#FBEEB8","Light Yellow","#F8CAC6","Light Red","#ECCAFA","Light Purple","#C2E0F4","Light Blue","#2DC26B","Green","#F1C40F","Yellow","#E03E2D","Red","#B96AD9","Purple","#3598DB","Blue","#169179","Dark Turquoise","#E67E23","Orange","#BA372A","Dark Red","#843FA1","Dark Purple","#236FA1","Dark Blue","#ECF0F1","Light Gray","#CED4D9","Medium Gray","#95A5A6","Gray","#7E8C8D","Dark Gray","#34495E","Navy Blue","#000000","Black","#ffffff","White"]}),a("color_map_background",{processor:p}),a("color_map_foreground",{processor:p}),a("color_cols",{processor:E,default:lR(t)}),a("color_cols_foreground",{processor:E,default:X7(t,sA)}),a("color_cols_background",{processor:E,default:X7(t,iA)}),a("custom_colors",{processor:"boolean",default:!0}),a("color_default_foreground",{processor:"string",default:iR}),a("color_default_background",{processor:"string",default:iR})},lA=(t,a)=>a===sA&&t.options.isSet("color_map_foreground")?ng("color_map_foreground")(t):a===iA&&t.options.isSet("color_map_background")?ng("color_map_background")(t):ng("color_map")(t),lR=(t,a="default")=>Math.max(K7,Math.ceil(Math.sqrt(lA(t,a).length))),X7=(t,a)=>{const p=ng("color_cols")(t),E=lR(t,a);return p===lR(t)?E:p},J7=(t,a="default")=>Math.round((()=>a===sA?ng("color_cols_foreground")(t):a===iA?ng("color_cols_background")(t):ng("color_cols")(t))()),Q7=ng("custom_colors"),KV=ng("color_default_foreground"),XV=ng("color_default_background"),q7="rgba(0, 0, 0, 0)",JV=t=>q5(t).exists(a=>a.alpha!==0),QV=t=>en(t,a=>{if(St(a)){const p=Ms(a,"background-color");return lt(JV(p),p)}else return P.none()}).getOr(q7),eO=(t,a)=>{const p=zt.fromDom(t.selection.getStart()),E=a==="hilitecolor"?QV(p):Ms(p,"color");return q5(E).map(z=>"#"+Nx(z).value)},qV=(t,a,p)=>{t.undoManager.transact(()=>{t.focus(),t.formatter.apply(a,{value:p}),t.nodeChanged()})},eU=(t,a)=>{t.undoManager.transact(()=>{t.focus(),t.formatter.remove(a,{value:null},void 0,!0),t.nodeChanged()})},cA=t=>{t.addCommand("mceApplyTextcolor",(a,p)=>{qV(t,a,p)}),t.addCommand("mceRemoveTextcolor",a=>{eU(t,a)})},cR=t=>{const a="choiceitem",p={type:a,text:"Remove color",icon:"color-swatch-remove-color",value:"remove"};return t?[p,{type:a,text:"Custom color",icon:"color-picker",value:"custom"}]:[p]},uR=(t,a,p,E)=>{p==="custom"?oO(t)(Y=>{Y.each(re=>{sR(a,re),t.execCommand("mceApplyTextcolor",a,re),E(re)})},eO(t,a).getOr(iR)):p==="remove"?(E(""),t.execCommand("mceRemoveTextcolor",a)):(E(p),t.execCommand("mceApplyTextcolor",a,p))},fR=(t,a,p)=>t.concat(aR(a).concat(cR(p))),tO=(t,a,p)=>E=>{E(fR(t,a,p))},dR=(t,a,p)=>{const E=a==="forecolor"?"tox-icon-text-color__color":"tox-icon-highlight-bg-color__color";t.setIconFill(E,p)},nO=(t,a)=>{t.setTooltip(a)},rO=(t,a)=>p=>{const E=eO(t,a);return sn(E,p.toUpperCase())},tS=(t,a,p)=>{if(tn(p))return a==="forecolor"?"Text color":"Background color";const E=a==="forecolor"?"Text color {0}":"Background color {0}",z=fR(lA(t,a),a,!1),Y=Ve(z,re=>re.value===p).getOr({text:""}).text;return t.translate([E,t.translate(Y)])},hR=(t,a,p,E)=>{t.ui.registry.addSplitButton(a,{tooltip:tS(t,p,E.get()),presets:"color",icon:a==="forecolor"?"text-color":"highlight-bg-color",select:rO(t,p),columns:J7(t,p),fetch:tO(lA(t,p),p,Q7(t)),onAction:z=>{uR(t,p,E.get(),C)},onItemAction:(z,Y)=>{uR(t,p,Y,re=>{E.set(re),nR(t,{name:a,color:re})})},onSetup:z=>{dR(z,a,E.get());const Y=re=>{re.name===a&&(dR(z,re.name,re.color),nO(z,tS(t,p,re.color)))};return t.on("TextColorChange",Y),qC(Vc(t)(z),()=>{t.off("TextColorChange",Y)})}})},mR=(t,a,p,E,z)=>{t.ui.registry.addNestedMenuItem(a,{text:E,icon:a==="forecolor"?"text-color":"highlight-bg-color",onSetup:Y=>(nO(Y,tS(t,p,z.get())),dR(Y,a,z.get()),Vc(t)(Y)),getSubmenuItems:()=>[{type:"fancymenuitem",fancytype:"colorswatch",select:rO(t,p),initData:{storageKey:p},onAction:Y=>{uR(t,p,Y.value,re=>{z.set(re),nR(t,{name:a,color:re})})}}]})},oO=t=>(a,p)=>{let E=!1;const z=xe=>{const Be=xe.getData().colorpicker;E?(a(P.from(Be)),xe.close()):t.windowManager.alert(t.translate(["Invalid hex color code: {0}",Be]))},Y=(xe,Ee)=>{Ee.name==="hex-valid"&&(E=Ee.value)},re={colorpicker:p};t.windowManager.open({title:"Color Picker",size:"normal",body:{type:"panel",items:[{type:"colorpicker",name:"colorpicker",label:"Color"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:re,onAction:Y,onSubmit:z,onClose:C,onCancel:()=>{a(P.none())}})},gR=t=>{cA(t);const a=KV(t),p=XV(t),E=q(a),z=q(p);hR(t,"forecolor","forecolor",E),hR(t,"backcolor","hilitecolor",z),mR(t,"forecolor","forecolor","Text color",E),mR(t,"backcolor","hilitecolor","Background color",z)},pR=(t,a,p,E,z,Y,re,xe)=>{const Ee=Wk(a),je=tU(a,p,E,z!=="color"?"normal":"color",Y,re,xe);return Gk(t,Ee,je,E,{menuType:z})},tU=(t,a,p,E,z,Y,re)=>an(ne(t,xe=>xe.type==="choiceitem"?p7(xe).fold(Jm,Ee=>P.some(_7(Ee,p===1,E,a,Y(Ee.value),z,re,Wk(t)))):P.none())),uA=(t,a)=>{const p=fp(a);return t===1?{mode:"menu",moveOnTab:!0}:t==="auto"?{mode:"grid",selector:"."+p.item,initSize:{numColumns:1,numRows:1}}:{mode:"matrix",rowSelector:"."+(a==="color"?"tox-swatches__row":"tox-collection__group"),previousSelector:z=>a==="color"?mi(z.element,"[aria-checked=true]"):P.none()}},nU=(t,a)=>t===1?{mode:"menu",moveOnTab:!1,selector:".tox-collection__item"}:t==="auto"?{mode:"flatgrid",selector:".tox-collection__item",initSize:{numColumns:1,numRows:1}}:{mode:"matrix",selectors:{row:a==="color"?".tox-swatches__row":".tox-collection__group",cell:a==="color"?`.${w5}`:`.${Ax}`}},rU=(t,a)=>{const p=oU(t,a),E=a.colorinput.getColorCols(t.initData.storageKey),z="color",re={...pR(Xr("menu-value"),p,xe=>{t.onAction({value:xe})},E,z,Yh.CLOSE_ON_EXECUTE,t.select.getOr(H),a.shared.providers),markers:fp(z),movement:uA(E,z)};return{type:"widget",data:{value:Xr("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[XC.widget(ey.sketch(re))]}},oU=(t,a)=>{const p=t.initData.allowCustomColors&&a.colorinput.hasCustomColors();return t.initData.colors.fold(()=>fR(a.colorinput.getColors(t.initData.storageKey),t.initData.storageKey,p),E=>E.concat(cR(p)))},aO=Xr("cell-over"),sO=Xr("cell-execute"),aU=t=>(a,p)=>t.shared.providers.translate(`${p} columns, ${a} rows`),sU=(t,a,p)=>{const E=re=>go(re,aO,{row:t,col:a}),z=re=>go(re,sO,{row:t,col:a}),Y=(re,xe)=>{xe.stop(),z(re)};return Pl({dom:{tag:"div",attributes:{role:"button","aria-label":p}},behaviours:gr([jo("insert-table-picker-cell",[Xn($r(),ko.focus),Xn(Ci(),z),Xn(xi(),Y),Xn(nc(),Y)]),qo.config({toggleClass:"tox-insert-table-picker__selected",toggleOnExecute:!1}),ko.config({onFocus:E})])})},fA=(t,a,p)=>{const E=[];for(let z=0;z{for(let Y=0;Yie(t,a=>ne(a,Tu)),bR=(t,a)=>ai(`${a}x${t}`),iU={inserttable:(t,a)=>{const z=aU(a),Y=fA(z,10,10),re=bR(0,0),xe=Qa({dom:{tag:"span",classes:["tox-insert-table-picker__label"]},components:[re],behaviours:gr([Ho.config({})])});return{type:"widget",data:{value:Xr("widget-id")},dom:{tag:"div",classes:["tox-fancymenuitem"]},autofocus:!0,components:[XC.widget({dom:{tag:"div",classes:["tox-insert-table-picker"]},components:yR(Y).concat(xe.asSpec()),behaviours:gr([jo("insert-table-picker",[ms(Ee=>{Ho.set(xe.get(Ee),[re])}),Z2(aO,(Ee,Be,je)=>{const{row:et,col:st}=je.event;vR(Y,et,st,10,10),Ho.set(xe.get(Ee),[bR(et+1,st+1)])}),Z2(sO,(Ee,Be,je)=>{const{row:et,col:st}=je.event;t.onAction({numRows:et+1,numColumns:st+1}),pa(Ee,wu())})]),po.config({initSize:{numRows:10,numColumns:10},mode:"flatgrid",selector:'[role="button"]'})])})]}},colorswatch:rU},xR=(t,a)=>Ft(iU,t.fancytype).map(p=>p(t,a)),wR=(t,a,p,E=!0,z=!1)=>{const Y=z?OV(p.icons):jd(p.icons),re=Ee=>({isEnabled:()=>!Co.isDisabled(Ee),setEnabled:Be=>Co.set(Ee,!Be),setIconFill:(Be,je)=>{mi(Ee.element,`svg path[class="${Be}"], rect[class="${Be}"]`).each(et=>{Lr(et,"fill",je)})},setTooltip:Be=>{const je=p.translate(Be);jl(Ee.element,{"aria-label":je,title:je})}}),xe=cy({presets:"normal",iconContent:t.icon,textContent:t.text,htmlContent:P.none(),ariaLabel:t.text,caret:P.some(Y),checkMark:P.none(),shortcutContent:t.shortcut},p,E);return tg({data:hp(t),getApi:re,enabled:t.enabled,onAction:C,onSetup:t.onSetup,triggersSubmenu:!0,itemBehaviours:[]},xe,a,p)},dA=(t,a,p,E=!0)=>{const z=re=>({isEnabled:()=>!Co.isDisabled(re),setEnabled:xe=>Co.set(re,!xe)}),Y=cy({presets:"normal",iconContent:t.icon,textContent:t.text,htmlContent:P.none(),ariaLabel:t.text,caret:P.none(),checkMark:P.none(),shortcutContent:t.shortcut},p,E);return tg({data:hp(t),getApi:z,enabled:t.enabled,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Y,a,p)},iO=t=>({type:"separator",dom:{tag:"div",classes:[Ax,Kz]},components:t.text.map(ai).toArray()}),lU=(t,a,p,E=!0)=>{const z=re=>({setActive:xe=>{qo.set(re,xe)},isActive:()=>qo.isOn(re),isEnabled:()=>!Co.isDisabled(re),setEnabled:xe=>Co.set(re,!xe)}),Y=cy({iconContent:t.icon,textContent:t.text,htmlContent:P.none(),ariaLabel:t.text,checkMark:P.some(Px(p.icons)),caret:P.none(),shortcutContent:t.shortcut,presets:"normal",meta:t.meta},p,E);return hs(tg({data:hp(t),enabled:t.enabled,getApi:z,onAction:t.onAction,onSetup:t.onSetup,triggersSubmenu:!1,itemBehaviours:[]},Y,a,p),{toggling:{toggleClass:I8,toggleOnExecute:!1,selected:t.active}})},cU=E7,lO=iO,uU=dA,fU=wR,dU=lU,hU=xR,mU=J5;var gU=Object.freeze({__proto__:null,getCoupled:(t,a,p,E)=>p.getOrCreate(t,a,E),getExistingCoupled:(t,a,p,E)=>p.getExisting(t,a,E)}),pU=[yc("others",gf(Wo.value,oi()))],cO=Object.freeze({__proto__:null,init:()=>{const t={},a=(Y,re)=>{if(ot(Y.others).length===0)throw new Error("Cannot find any known coupled components");return Ft(t,re)},p=(Y,re,xe)=>a(re,xe).getOrThunk(()=>{const Be=Ft(re.others,xe).getOrDie("No information found for coupled component: "+xe)(Y),je=Y.getSystem().build(Be);return t[xe]=je,je}),E=(Y,re,xe)=>a(re,xe).orThunk(()=>(Ft(re.others,xe).getOrDie("No information found for coupled component: "+xe),P.none())),z=O({});return Qc({readState:z,getExisting:E,getOrCreate:p})}});const pi=Ki({fields:pU,name:"coupling",apis:gU,state:cO}),CR=t=>{let a=P.none(),p=[];const E=Be=>CR(je=>{z(et=>{je(Be(et))})}),z=Be=>{re()?Ee(Be):p.push(Be)},Y=Be=>{re()||(a=P.some(Be),xe(p),p=[])},re=()=>a.isSome(),xe=Be=>{fe(Be,Ee)},Ee=Be=>{a.each(je=>{setTimeout(()=>{Be(je)},0)})};return t(Y),{get:z,map:E,isReady:re}},vU={nu:CR,pure:t=>CR(a=>{a(t)})},yU=t=>{setTimeout(()=>{throw t},0)},Kv=t=>{const a=Ee=>{t().then(Ee,yU)};return{map:Ee=>Kv(()=>t().then(Ee)),bind:Ee=>Kv(()=>t().then(Be=>Ee(Be).toPromise())),anonBind:Ee=>Kv(()=>t().then(()=>Ee.toPromise())),toLazy:()=>vU.nu(a),toCached:()=>{let Ee=null;return Kv(()=>(Ee===null&&(Ee=t()),Ee))},toPromise:t,get:a}},cc={nu:t=>Kv(()=>new Promise(t)),pure:t=>Kv(()=>Promise.resolve(t))},uO=O("sink"),fO=O(Fc({name:uO(),overrides:O({dom:{tag:"div"},behaviours:gr([Nl.config({useFixed:j})]),events:bs([Ah(Ca()),Ah(fo()),Ah(xi())])})})),dO=(t,a)=>{const p=t.getHotspot(a).getOr(a),E="hotspot",z=t.getAnchorOverrides();return t.layouts.fold(()=>({type:E,hotspot:p,overrides:z}),Y=>({type:E,hotspot:p,overrides:z,layouts:Y}))},bU=(t,a,p)=>{const E=t.fetch;return E(p).map(a)},xU=(t,a,p,E,z,Y,re)=>{const xe=bU(t,a,E),Ee=hO(E,t);return xe.map(Be=>Be.bind(je=>P.from(Wv.sketch({...Y.menu(),uid:jp(""),data:je,highlightOnOpen:re,onOpenMenu:(et,st)=>{const mt=Ee().getOrDie();Nl.position(mt,st,{anchor:p}),va.decloak(z)},onOpenSubmenu:(et,st,mt)=>{const Mt=Ee().getOrDie();Nl.position(Mt,mt,{anchor:{type:"submenu",item:st}}),va.decloak(z)},onRepositionMenu:(et,st,mt)=>{const Mt=Ee().getOrDie();Nl.position(Mt,st,{anchor:p}),fe(mt,Xt=>{Nl.position(Mt,Xt.triggeredMenu,{anchor:{type:"submenu",item:Xt.triggeringItem}})})},onEscape:()=>(ko.focus(E),va.close(z),P.some(!0))}))))},hA=(t,a,p,E,z,Y,re)=>{const xe=dO(t,p);return xU(t,a,xe,p,E,z,re).map(Be=>(Be.fold(()=>{va.isOpen(E)&&va.close(E)},je=>{va.cloak(E),va.open(E,je),Y(E)}),E))},wU=(t,a,p,E,z,Y,re)=>(va.close(E),cc.pure(E)),SR=(t,a,p,E,z,Y)=>{const re=pi.getCoupled(p,"sandbox");return(va.isOpen(re)?wU:hA)(t,a,p,re,E,z,Y)},CU=(t,a,p)=>{const E=da.getCurrent(a).getOr(a),z=ci(t.element);p?To(E.element,"min-width",z+"px"):La(E.element,z)},hO=(t,a)=>t.getSystem().getByUid(a.uid+"-"+uO()).map(p=>()=>Wo.value(p)).getOrThunk(()=>a.lazySink.fold(()=>()=>Wo.error(new Error("No internal sink is specified, nor could an external sink be found")),p=>()=>p(t))),mO=t=>{va.getState(t).each(a=>{Wv.repositionMenus(a)})},TR=(t,a,p)=>{const E=Zg(),z=(xe,Ee)=>{const Be=dO(t,a);E.link(a.element),t.matchWidth&&CU(Be.hotspot,Ee,t.useMinWidth),t.onOpen(Be,xe,Ee),p!==void 0&&p.onOpen!==void 0&&p.onOpen(xe,Ee)},Y=(xe,Ee)=>{E.unlink(a.element),p!==void 0&&p.onClose!==void 0&&p.onClose(xe,Ee)},re=hO(a,t);return{dom:{tag:"div",classes:t.sandboxClasses,attributes:{id:E.id,role:"listbox"}},behaviours:nf.augment(t.sandboxBehaviours,[Fr.config({store:{mode:"memory",initialValue:a}}),va.config({onOpen:z,onClose:Y,isPartOf:(xe,Ee,Be)=>Lh(Ee,Be)||Lh(a,Be),getAttachPoint:()=>re().getOrDie()}),da.config({find:xe=>va.getState(xe).bind(Ee=>da.getCurrent(Ee))}),Pc.config({channels:{...$1({isExtraPart:H}),...Rv({doReposition:mO})}})])}},gO=t=>{const a=pi.getCoupled(t,"sandbox");mO(a)},kR=()=>[En("sandboxClasses",[]),nf.field("sandboxBehaviours",[da,Pc,va,Fr])],SU=O([qn("dom"),qn("fetch"),Sa("onOpen"),ru("onExecute"),En("getHotspot",P.some),En("getAnchorOverrides",O({})),Om(),Fi("dropdownBehaviours",[qo,pi,po,ko]),qn("toggleClass"),En("eventOrder",{}),Ia("lazySink"),En("matchWidth",!1),En("useMinWidth",!1),Ia("role")].concat(kR())),TU=O([Af({schema:[c1(),En("fakeFocus",!1)],name:"menu",defaults:t=>({onExecute:t.onExecute})}),fO()]),kU=(t,a,p,E)=>{const z=je=>Ft(t.dom,"attributes").bind(et=>Ft(et,je)),Y=je=>{va.getState(je).each(et=>{Wv.highlightPrimary(et)})},re=(je,et,st)=>SR(t,D,je,E,et,st),xe=je=>{re(je,Y,zc.HighlightMenuAndItem).get(C)},Ee={expand:je=>{qo.isOn(je)||re(je,C,zc.HighlightNone).get(C)},open:je=>{qo.isOn(je)||re(je,C,zc.HighlightMenuAndItem).get(C)},refetch:je=>pi.getExistingCoupled(je,"sandbox").fold(()=>re(je,C,zc.HighlightMenuAndItem).map(C),st=>hA(t,D,je,st,E,C,zc.HighlightMenuAndItem).map(C)),isOpen:qo.isOn,close:je=>{qo.isOn(je)&&re(je,C,zc.HighlightMenuAndItem).get(C)},repositionMenus:je=>{qo.isOn(je)&&gO(je)}},Be=(je,et)=>(kh(je),P.some(!0));return{uid:t.uid,dom:t.dom,components:a,behaviours:Si(t.dropdownBehaviours,[qo.config({toggleClass:t.toggleClass,aria:{mode:"expanded"}}),pi.config({others:{sandbox:je=>TR(t,je,{onOpen:()=>qo.on(je),onClose:()=>qo.off(je)})}}),po.config({mode:"special",onSpace:Be,onEnter:Be,onDown:(je,et)=>{if(ud.isOpen(je)){const st=pi.getCoupled(je,"sandbox");Y(st)}else ud.open(je);return P.some(!0)},onEscape:(je,et)=>ud.isOpen(je)?(ud.close(je),P.some(!0)):P.none()}),ko.config({})]),events:Gh(P.some(xe)),eventOrder:{...t.eventOrder,[Ci()]:["disabling","toggling","alloy.base.behaviour"]},apis:Ee,domModification:{attributes:{"aria-haspopup":"true",...t.role.fold(()=>({}),je=>({role:je})),...t.dom.tag==="button"?{type:z("type").getOr("button")}:{}}}}},ud=Bl({name:"Dropdown",configFields:SU(),partFields:TU(),factory:kU,apis:{open:(t,a)=>t.open(a),refetch:(t,a)=>t.refetch(a),expand:(t,a)=>t.expand(a),close:(t,a)=>t.close(a),isOpen:(t,a)=>t.isOpen(a),repositionMenus:(t,a)=>t.repositionMenus(a)}}),AU=t=>{switch(t.searchMode){case"no-search":return{menuType:"normal"};default:return{menuType:"searchable",searchMode:t}}},MU=t=>{const a=Fr.getValue(t),p=zk(t).map(Z8);ud.refetch(a).get(()=>{const E=pi.getCoupled(a,"sandbox");p.each(z=>zk(E).each(Y=>E5(Y,z)))})},EU=(t,a)=>{_U(t).each(p=>{BE(t,p.element,a.event.eventType,a.event.interactionEvent)})},_U=t=>va.getState(t).bind(Na.getHighlighted).bind(Na.getHighlighted),RU=t=>Ni(t.element,Vk)?P.some(t.element):mi(t.element,"."+Vk),AR=(t,a,p)=>{M5(t).each(E=>{_5(E,p),RU(a).each(Y=>{yi(Y,"id").each(re=>Lr(E.element,"aria-controls",re))})}),Lr(p.element,"aria-selected","true")},LU=(t,a,p)=>{Lr(p.element,"aria-selected","false")},DU=t=>{M5(t).each(a=>ko.focus(a))},$U=t=>pi.getExistingCoupled(t,"sandbox").bind(zk).map(Z8).map(p=>p.fetchPattern).getOr("");var nS;(function(t){t[t.ContentFocus=0]="ContentFocus",t[t.UiFocus=1]="UiFocus"})(nS||(nS={}));const OU=(t,a,p,E,z)=>{const Y=p.shared.providers,re=xe=>z?{...xe,shortcut:P.none(),icon:xe.text.isSome()?P.none():xe.icon}:xe;switch(t.type){case"menuitem":return y7(t).fold(Jm,xe=>P.some(uU(re(xe),a,Y,E)));case"nestedmenuitem":return SV(t).fold(Jm,xe=>P.some(fU(re(xe),a,Y,E,z)));case"togglemenuitem":return kV(t).fold(Jm,xe=>P.some(dU(re(xe),a,Y,E)));case"separator":return F5(t).fold(Jm,xe=>P.some(lO(xe)));case"fancymenuitem":return wV(t).fold(Jm,xe=>hU(xe,p));default:return console.error("Unknown item in general menu",t),P.none()}},PU=(t,a,p,E,z,Y,re)=>{const xe=E===1,Ee=!xe||Wk(t);return an(ne(t,Be=>{switch(Be.type){case"separator":return lV(Be).fold(Jm,je=>P.some(lO(je)));case"cardmenuitem":return m7(Be).fold(Jm,je=>P.some(mU({...je,onAction:et=>{je.onAction(et),p(je.value,je.meta)}},z,Y,{itemBehaviours:A7(je.meta,Y),cardText:{matchText:a,highlightOn:re}})));case"autocompleteitem":default:return o7(Be).fold(Jm,je=>P.some(cU(je,a,xe,"normal",p,z,Y,Ee)))}}))},pO=(t,a,p,E,z,Y)=>{const re=Wk(a),xe=an(ne(a,je=>{const et=mt=>z?!pn(mt,"text"):re,st=mt=>OU(mt,p,E,et(mt),z);return je.type==="nestedmenuitem"&&je.getSubmenuItems().length<=0?st({...je,enabled:!1}):st(je)})),Ee=AU(Y);return(z?WC:Gk)(t,re,xe,1,Ee)},mA=t=>Wv.singleData(t.value,t),IU=(t,a,p,E)=>{const z=uA(a,E),Y=fp(E);return{data:mA({...t,movement:z,menuBehaviours:YC.unnamedEvents(a!=="auto"?[]:[ms((re,xe)=>{V5(re,4,Y.item).each(({numColumns:Ee,numRows:Be})=>{po.setGridSize(re,Be,Ee)})})])}),menu:{markers:fp(E),fakeFocus:p===nS.ContentFocus}}},NU=(t,a)=>y5(zt.fromDom(a.startContainer)).map(p=>{const E=t.createRng();return E.selectNode(p.dom),E}),FU={register:(t,a)=>{const p=Xr("autocompleter"),E=q(!1),z=q(!1),Y=Pl(Ws.sketch({dom:{tag:"div",classes:["tox-autocompleter"],attributes:{id:p}},components:[],fireDismissalEventInstead:{},inlineBehaviours:gr([jo("dismissAutocompleter",[Xn(Tm(),()=>je()),Xn(e1(),(Dn,hn)=>{yi(hn.event.target,"id").each(rn=>Lr(zt.fromDom(t.getBody()),"aria-activedescendant",rn))})])]),lazySink:a.getSink})),re=()=>Ws.isOpen(Y),xe=z.get,Ee=()=>{if(re()){Ws.hide(Y),t.dom.remove(p,!1);const Dn=zt.fromDom(t.getBody());yi(Dn,"aria-owns").filter(hn=>hn===p).each(()=>{Xa(Dn,"aria-owns"),Xa(Dn,"aria-activedescendant")})}},Be=()=>Ws.getContent(Y).bind(Dn=>de(Dn.components(),0)),je=()=>t.execCommand("mceAutocompleterClose"),et=Dn=>{const hn=We(Dn,rn=>P.from(rn.columns)).getOr(1);return ie(Dn,rn=>{const kn=rn.items;return PU(kn,rn.matchText,(Vn,hr)=>{const Yn=t.selection.getRng();NU(t.dom,Yn).each(br=>{const Mr={hide:()=>je(),reload:ea=>{Ee(),t.execCommand("mceAutocompleterReload",!1,{fetchOptions:ea})}};E.set(!0),rn.onAction(Mr,br,Vn,hr),E.set(!1)})},hn,Yh.BUBBLE_TO_SANDBOX,a,rn.highlightOn)})},st=(Dn,hn)=>{Zz(zt.fromDom(t.getBody())).each(rn=>{const kn=We(Dn,Vn=>P.from(Vn.columns)).getOr(1);Ws.showMenuAt(Y,{anchor:{type:"node",root:zt.fromDom(t.getBody()),node:P.from(rn)}},IU(Gk("autocompleter-value",!0,hn,kn,{menuType:"normal"}),kn,nS.ContentFocus,"normal"))}),Be().each(Na.highlightFirst)},mt=Dn=>{const hn=et(Dn);hn.length>0?(st(Dn,hn),Lr(zt.fromDom(t.getBody()),"aria-owns",p),t.inline||Mt()):Ee()},Mt=()=>{t.dom.get(p)&&t.dom.remove(p,!1);const Dn=t.getDoc().documentElement,hn=t.selection.getNode(),rn=UE(Y.element);Mi(rn,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",top:`${hn.offsetTop}px`,left:`${hn.offsetLeft}px`}),t.dom.add(Dn,rn.dom),mi(rn,'[role="menu"]').each(kn=>{Bo(kn,"position"),Bo(kn,"max-height")})};t.on("AutocompleterStart",({lookupData:Dn})=>{z.set(!0),E.set(!1),mt(Dn)}),t.on("AutocompleterUpdate",({lookupData:Dn})=>mt(Dn)),t.on("AutocompleterEnd",()=>{Ee(),z.set(!1),E.set(!1)});const Xt={cancelIfNecessary:je,isMenuOpen:re,isActive:xe,isProcessingAction:E.get,getMenu:Be};jz.setup(Xt,t)}},vO=["visible","hidden","clip"],yO=t=>Et(t).length>0&&!he(vO,t),MR=t=>{if(De(t)){const a=Ms(t,"overflow-x"),p=Ms(t,"overflow-y");return yO(a)||yO(p)}else return!1},BU=t=>{const a=MT(t,MR),p=a.length===0?Zl(t).map(Ys).map(E=>MT(E,MR)).getOr([]):a;return Me(p).map(E=>({element:E,others:p.slice(1)}))},Xv=(t,a)=>Km(t)?BU(a):P.none(),Fx=t=>{const a=[...ne(t.others,Js),bl()];return eb(Js(t.element),a)},rS=(t,a,p)=>Qf(t,a,p).isSome(),bO=(t,a)=>{let p=null;return{cancel:()=>{p!==null&&(clearTimeout(p),p=null)},schedule:(...Y)=>{p=setTimeout(()=>{t.apply(null,Y),p=null},a)}}},xO=5,HU=400,wO=t=>{const a=t.raw;return a.touches===void 0||a.touches.length!==1?P.none():P.some(a.touches[0])},zU=(t,a)=>{const p=Math.abs(t.clientX-a.x),E=Math.abs(t.clientY-a.y);return p>xO||E>xO},VU=t=>{const a=ia(),p=q(!1),E=bO(Be=>{t.triggerEvent(Yf(),Be),p.set(!0)},HU),z=Be=>(wO(Be).each(je=>{E.cancel();const et={x:je.clientX,y:je.clientY,target:Be.target};E.schedule(Be),p.set(!1),a.set(et)}),P.none()),Y=Be=>(E.cancel(),wO(Be).each(je=>{a.on(et=>{zU(je,et)&&a.clear()})}),P.none()),re=Be=>{E.cancel();const je=et=>Qt(et.target,Be.target);return a.get().filter(je).map(et=>p.get()?(Be.prevent(),!1):t.triggerEvent(nc(),Be))},xe=bt([{key:eo(),value:z},{key:lo(),value:Y},{key:Ko(),value:re}]);return{fireIfReady:(Be,je)=>Ft(xe,je).bind(et=>et(Be))}},UU=t=>t.raw.which===C_[0]&&!he(["input","textarea"],vo(t.target))&&!rS(t.target,'[contenteditable="true"]'),WU=(t,a)=>{const p={stopBackspace:!0,...a},E=["touchstart","touchmove","touchend","touchcancel","gesturestart","mousedown","mouseup","mouseover","mousemove","mouseout","click"],z=VU(p),Y=ne(E.concat(["selectstart","input","contextmenu","change","transitionend","transitioncancel","drag","dragstart","dragend","dragenter","dragleave","dragover","drop","keyup"]),mt=>sc(t,mt,Mt=>{z.fireIfReady(Mt,mt).each(Dn=>{Dn&&Mt.kill()}),p.triggerEvent(mt,Mt)&&Mt.kill()})),re=ia(),xe=sc(t,"paste",mt=>{z.fireIfReady(mt,"paste").each(Xt=>{Xt&&mt.kill()}),p.triggerEvent("paste",mt)&&mt.kill(),re.set(setTimeout(()=>{p.triggerEvent(wi(),mt)},0))}),Ee=sc(t,"keydown",mt=>{p.triggerEvent("keydown",mt)?mt.kill():p.stopBackspace&&UU(mt)&&mt.prevent()}),Be=sc(t,"focusin",mt=>{p.triggerEvent("focusin",mt)&&mt.kill()}),je=ia(),et=sc(t,"focusout",mt=>{p.triggerEvent("focusout",mt)&&mt.kill(),je.set(setTimeout(()=>{p.triggerEvent(Sl(),mt)},0))});return{unbind:()=>{fe(Y,mt=>{mt.unbind()}),Ee.unbind(),Be.unbind(),et.unbind(),xe.unbind(),re.on(clearTimeout),je.on(clearTimeout)}}},CO=(t,a)=>{const p=Ft(t,"target").getOr(a);return q(p)},GU=(t,a)=>{const p=q(!1),E=q(!1);return{stop:()=>{p.set(!0)},cut:()=>{E.set(!0)},isStopped:p.get,isCut:E.get,event:t,setSource:a.set,getSource:a.get}},SO=t=>{const a=q(!1);return{stop:()=>{a.set(!0)},cut:C,isStopped:a.get,isCut:H,event:t,setSource:R("Cannot set source of a broadcasted event"),getSource:R("Cannot get source of a broadcasted event")}},oS=Ae.generate([{stopped:[]},{resume:["element"]},{complete:[]}]),TO=(t,a,p,E,z,Y)=>{const re=t(a,E),xe=GU(p,z);return re.fold(()=>(Y.logEventNoHandlers(a,E),oS.complete()),Ee=>{const Be=Ee.descHandler;return Jp(Be)(xe),xe.isStopped()?(Y.logEventStopped(a,Ee.element,Be.purpose),oS.stopped()):xe.isCut()?(Y.logEventCut(a,Ee.element,Be.purpose),oS.complete()):Bn(Ee.element).fold(()=>(Y.logNoParent(a,Ee.element,Be.purpose),oS.complete()),et=>(Y.logEventResponse(a,Ee.element,Be.purpose),oS.resume(et)))})},kO=(t,a,p,E,z,Y)=>TO(t,a,p,E,z,Y).fold(j,re=>kO(t,a,p,re,z,Y),H),ZU=(t,a,p,E,z)=>{const Y=CO(p,E);return TO(t,a,p,E,Y,z)},jU=(t,a,p)=>{const E=SO(a);return fe(t,z=>{const Y=z.descHandler;Jp(Y)(E)}),E.isStopped()},ER=(t,a,p,E)=>AO(t,a,p,p.target,E),AO=(t,a,p,E,z)=>{const Y=CO(p,E);return kO(t,a,p,E,Y,z)},YU=(t,a)=>({element:t,descHandler:a}),KU=(t,a)=>({id:t,descHandler:a}),MO=()=>{const t={},a=(re,xe,Ee)=>{Ge(Ee,(Be,je)=>{const et=t[je]!==void 0?t[je]:{};et[xe]=ew(Be,re),t[je]=et})},p=(re,xe)=>o1(xe).bind(Ee=>Ft(re,Ee)).map(Ee=>YU(xe,Ee));return{registerId:a,unregisterId:re=>{Ge(t,(xe,Ee)=>{pn(xe,re)&&delete xe[re]})},filterByType:re=>Ft(t,re).map(xe=>Gt(xe,(Ee,Be)=>KU(Be,Ee))).getOr([]),find:(re,xe,Ee)=>Ft(t,xe).bind(Be=>en(Ee,je=>p(Be,je),re))}},EO=()=>{const t=MO(),a={},p=Be=>{const je=Be.element;return o1(je).getOrThunk(()=>Vg("uid-",Be.element))},E=(Be,je)=>{const et=a[je];if(et===Be)Y(Be);else throw new Error('The tagId "'+je+'" is already used by: '+Rd(et.element)+` -Cannot use it for: `+Rd(Be.element)+` -The conflicting element is`+(Wa(et.element)?" ":" not ")+"already in the DOM")},z=Be=>{const je=p(Be);_n(a,je)&&E(Be,je);const et=[Be];t.registerId(et,je,Be.events),a[je]=Be},Y=Be=>{o1(Be.element).each(je=>{delete a[je],t.unregisterId(je)})};return{find:(Be,je,et)=>t.find(Be,je,et),filter:Be=>t.filterByType(Be),register:z,unregister:Y,getById:Be=>Ft(a,Be)}},Kh=ou({name:"Container",factory:t=>{const{attributes:a,...p}=t.dom;return{uid:t.uid,dom:{tag:"div",attributes:{role:"presentation",...a},...p},components:t.components,behaviours:Bh(t.containerBehaviours),events:t.events,domModification:t.domModification,eventOrder:t.eventOrder}},configFields:[En("components",[]),Fi("containerBehaviours",[]),En("events",{}),En("domModification",{}),En("eventOrder",{})]}),gA=t=>{const a=hn=>Bn(t.element).fold(j,rn=>Qt(hn,rn)),p=EO(),E=(hn,rn)=>p.find(a,hn,rn),z=WU(t.element,{triggerEvent:(hn,rn)=>Ab(hn,rn.target,kn=>ER(E,hn,rn,kn))}),Y={debugInfo:O("real"),triggerEvent:(hn,rn,kn)=>{Ab(hn,rn,Vn=>AO(E,hn,kn,rn,Vn))},triggerFocus:(hn,rn)=>{o1(hn).fold(()=>{Ic(hn)},kn=>{Ab(qu(),hn,Vn=>(ZU(E,qu(),{originator:rn,kill:C,prevent:C,target:hn},hn,Vn),!1))})},triggerEscape:(hn,rn)=>{Y.triggerEvent("keydown",hn.element,rn.event)},getByUid:hn=>Xt(hn),getByDom:hn=>Dn(hn),build:Pl,buildOrPatch:Sb,addToGui:hn=>{Ee(hn)},removeFromGui:hn=>{Be(hn)},addToWorld:hn=>{re(hn)},removeFromWorld:hn=>{xe(hn)},broadcast:hn=>{st(hn)},broadcastOn:(hn,rn)=>{mt(hn,rn)},broadcastEvent:(hn,rn)=>{Mt(hn,rn)},isConnected:j},re=hn=>{hn.connect(Y),kt(hn.element)||(p.register(hn),fe(hn.components(),re),Y.triggerEvent(Kf(),hn.element,{target:hn.element}))},xe=hn=>{kt(hn.element)||(fe(hn.components(),xe),p.unregister(hn)),hn.disconnect()},Ee=hn=>{zm(t,hn)},Be=hn=>{Bd(hn)},je=()=>{z.unbind(),Xl(t.element)},et=hn=>{const rn=p.filter(Tl());fe(rn,kn=>{const Vn=kn.descHandler;Jp(Vn)(hn)})},st=hn=>{et({universal:!0,data:hn})},mt=(hn,rn)=>{et({universal:!1,channels:hn,data:rn})},Mt=(hn,rn)=>{const kn=p.filter(hn);return jU(kn,rn)},Xt=hn=>p.getById(hn).fold(()=>Wo.error(new Error('Could not find component with uid: "'+hn+'" in system.')),Wo.value),Dn=hn=>{const rn=o1(hn).getOr("not found");return Xt(rn)};return re(t),{root:t,element:t.element,destroy:je,add:Ee,remove:Be,getByUid:Xt,getByDom:Dn,addToWorld:re,removeFromWorld:xe,broadcast:st,broadcastOn:mt,broadcastEvent:Mt}},XU=(t,a)=>({dom:{tag:"div",classes:["tox-bar","tox-form__controls-h-stack"]},components:ne(t.items,a.interpreter)}),JU=O([En("prefix","form-field"),Fi("fieldBehaviours",[da,Fr])]),QU=O([Fc({schema:[qn("dom")],name:"label"}),Fc({factory:{sketch:t=>({uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}})},schema:[qn("text")],name:"aria-descriptor"}),Fl({factory:{sketch:t=>{const a=rt(t,["factory"]);return t.factory.sketch(a)}},schema:[qn("factory")],name:"field"})]),qU=(t,a,p,E)=>{const z=Si(t.fieldBehaviours,[da.config({find:xe=>gs(xe,t,"field")}),Fr.config({store:{mode:"manual",getValue:xe=>da.getCurrent(xe).bind(Fr.getValue),setValue:(xe,Ee)=>{da.getCurrent(xe).each(Be=>{Fr.setValue(Be,Ee)})}}})]),Y=bs([ms((xe,Ee)=>{const Be=JT(xe,t,["label","field","aria-descriptor"]);Be.field().each(je=>{const et=Xr(t.prefix);Be.label().each(st=>{Lr(st.element,"for",et),Lr(je.element,"id",et)}),Be["aria-descriptor"]().each(st=>{const mt=Xr(t.prefix);Lr(st.element,"id",mt),Lr(je.element,"aria-describedby",mt)})})})]),re={getField:xe=>gs(xe,t,"field"),getLabel:xe=>gs(xe,t,"label")};return{uid:t.uid,dom:t.dom,components:a,behaviours:z,events:Y,apis:re}},qa=Bl({name:"FormField",configFields:JU(),partFields:QU(),factory:qU,apis:{getField:(t,a)=>t.getField(a),getLabel:(t,a)=>t.getLabel(a)}});var pA=Object.freeze({__proto__:null,exhibit:(t,a)=>qc({attributes:bt([{key:a.tabAttr,value:"true"}])})}),eW=[En("tabAttr","data-alloy-tabstop")];const Ns=Ki({fields:eW,name:"tabstopping",active:pA});var tW=tinymce.util.Tools.resolve("tinymce.html.Entities");const aS=(t,a,p,E)=>{const z=rW(t,a,p,E);return qa.sketch(z)},nW=(t,a)=>aS(t,a,[],[]),rW=(t,a,p,E)=>({dom:sS(p),components:t.toArray().concat([a]),fieldBehaviours:gr(E)}),Mee=()=>sS([]),sS=t=>({tag:"div",classes:["tox-form__group"].concat(t)}),fd=(t,a)=>qa.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[ai(a.translate(t))]}),$u=Xr("form-component-change"),Bx=Xr("form-close"),Jv=Xr("form-cancel"),rg=Xr("form-action"),iS=Xr("form-submit"),_R=Xr("form-block"),RR=Xr("form-unblock"),_O=Xr("form-tabchange"),RO=Xr("form-resize"),oW=(t,a,p)=>{const E=t.label.map(mt=>fd(mt,a)),z=a.icons(),Y=mt=>{var Mt;return(Mt=z[mt])!==null&&Mt!==void 0?Mt:mt},re=mt=>(Mt,Xt)=>{Qf(Xt.event.target,"[data-collection-item-value]").each(Dn=>{mt(Mt,Xt,Dn,Ka(Dn,"data-collection-item-value"))})},xe=(mt,Mt)=>{const Xt=ne(Mt,rn=>{const kn=_f.translate(rn.text),Vn=t.columns===1?`
    ${kn}
    `:"",hr=`
    ${Y(rn.icon)}
    `,Yn={_:" "," - ":" ","-":" "},br=kn.replace(/\_| \- |\-/g,ea=>Yn[ea]);return`
    ${hr}${Vn}
    `}),Dn=t.columns!=="auto"&&t.columns>1?ce(Xt,t.columns):[Xt],hn=ne(Dn,rn=>`
    ${rn.join("")}
    `);zg(mt.element,hn.join(""))},Ee=re((mt,Mt,Xt,Dn)=>{Mt.stop(),a.isDisabled()||go(mt,rg,{name:t.name,value:Dn})}),Be=[Xn($r(),re((mt,Mt,Xt)=>{Ic(Xt)})),Xn(xi(),Ee),Xn(nc(),Ee),Xn(_o(),re((mt,Mt,Xt)=>{mi(mt.element,"."+VC).each(Dn=>{Is(Dn,VC)}),hi(Xt,VC)})),Xn(sa(),re(mt=>{mi(mt.element,"."+VC).each(Mt=>{Is(Mt,VC)})})),xf(re((mt,Mt,Xt,Dn)=>{go(mt,rg,{name:t.name,value:Dn})}))],je=(mt,Mt)=>ne(Xi(mt.element,".tox-collection__item"),Mt),et=qa.parts.field({dom:{tag:"div",classes:["tox-collection"].concat(t.columns!==1?["tox-collection--grid"]:["tox-collection--list"])},components:[],factory:{sketch:D},behaviours:gr([Co.config({disabled:a.isDisabled,onDisabled:mt=>{je(mt,Mt=>{hi(Mt,"tox-collection__item--state-disabled"),Lr(Mt,"aria-disabled",!0)})},onEnabled:mt=>{je(mt,Mt=>{Is(Mt,"tox-collection__item--state-disabled"),Xa(Mt,"aria-disabled")})}}),Qi(),Ho.config({}),Fr.config({store:{mode:"memory",initialValue:p.getOr([])},onSetValue:(mt,Mt)=>{xe(mt,Mt),t.columns==="auto"&&V5(mt,5,"tox-collection__item").each(({numRows:Xt,numColumns:Dn})=>{po.setGridSize(mt,Xt,Dn)}),pa(mt,RO)}}),Ns.config({}),po.config(nU(t.columns,"normal")),jo("collection-events",Be)]),eventOrder:{[Ci()]:["disabling","alloy.base.behaviour","collection-events"]}});return aS(E,et,["tox-form__group--collection"],[])},aW=["input","textarea"],LO=t=>{const a=vo(t);return he(aW,a)},DO=(t,a)=>{const p=a.getRoot(t).getOr(t.element);Is(p,a.invalidClass),a.notify.each(E=>{LO(t.element)&&Lr(t.element,"aria-invalid",!1),E.getContainer(t).each(z=>{zg(z,E.validHtml)}),E.onValid(t)})},LR=(t,a,p,E)=>{const z=a.getRoot(t).getOr(t.element);hi(z,a.invalidClass),a.notify.each(Y=>{LO(t.element)&&Lr(t.element,"aria-invalid",!0),Y.getContainer(t).each(re=>{zg(re,E)}),Y.onInvalid(t,E)})},uy=(t,a,p)=>a.validator.fold(()=>cc.pure(Wo.value(!0)),E=>E.validate(t)),gp=(t,a,p)=>(a.notify.each(E=>{E.onValidate(t)}),uy(t,a).map(E=>t.getSystem().isConnected()?E.fold(z=>(LR(t,a,p,z),Wo.error(z)),z=>(DO(t,a),Wo.value(z))):Wo.error("No longer in system")));var $O=Object.freeze({__proto__:null,markValid:DO,markInvalid:LR,query:uy,run:gp,isInvalid:(t,a)=>{const p=a.getRoot(t).getOr(t.element);return Ni(p,a.invalidClass)}}),vA=Object.freeze({__proto__:null,events:(t,a)=>t.validator.map(p=>bs([Xn(p.onEvent,E=>{gp(E,t,a).get(D)})].concat(p.validateOnLoad?[ms(E=>{gp(E,t,a).get(C)})]:[]))).getOr({})}),iW=[qn("invalidClass"),En("getRoot",P.none),Ql("notify",[En("aria","alert"),En("getContainer",P.none),En("validHtml",""),Sa("onValid"),Sa("onInvalid"),Sa("onValidate")]),Ql("validator",[qn("validate"),En("onEvent","input"),En("validateOnLoad",!0)])];const Df=Ki({fields:iW,name:"invalidating",active:vA,apis:$O,extra:{validation:t=>a=>{const p=Fr.getValue(a);return cc.pure(t(p))}}});var lW=Object.freeze({__proto__:null,events:()=>bs([U2(Cl(),j)]),exhibit:()=>qc({styles:{"-webkit-user-select":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"-moz-none"},attributes:{unselectable:"on"}})});const lS=Ki({fields:[],name:"unselecting",active:lW}),cW=(t,a)=>ud.sketch({dom:t.dom,components:t.components,toggleClass:"mce-active",dropdownBehaviours:gr([Bi.button(a.providers.isDisabled),Qi(),lS.config({}),Ns.config({})]),layouts:t.layouts,sandboxClasses:["tox-dialog__popups"],lazySink:a.getSink,fetch:p=>cc.nu(E=>t.fetch(E)).map(E=>P.from(mA(hs(pR(Xr("menu-value"),E,z=>{t.onItemAction(p,z)},t.columns,t.presets,Yh.CLOSE_ON_EXECUTE,H,a.providers),{movement:uA(t.columns,t.presets)})))),parts:{menu:Mx(!1,1,t.presets)}}),OO=Xr("color-input-change"),PO=Xr("color-swatch-change"),cS=Xr("color-picker-cancel"),uW=(t,a,p,E)=>{const z=qa.parts.field({factory:sy,inputClasses:["tox-textfield"],data:E,onSetValue:Be=>Df.run(Be).get(C),inputBehaviours:gr([Co.config({disabled:a.providers.isDisabled}),Qi(),Ns.config({}),Df.config({invalidClass:"tox-textbox-field-invalid",getRoot:Be=>fr(Be.element),notify:{onValid:Be=>{const je=Fr.getValue(Be);go(Be,OO,{color:je})}},validator:{validateOnLoad:!1,validate:Be=>{const je=Fr.getValue(Be);if(je.length===0)return cc.pure(Wo.value(!0));{const et=zt.fromTag("span");To(et,"background-color",je);const st=Rs(et,"background-color").fold(()=>Wo.error("blah"),mt=>Wo.value(je));return cc.pure(st)}}}})]),selectOnFocus:!1}),Y=t.label.map(Be=>fd(Be,a.providers)),re=(Be,je)=>{go(Be,PO,{value:je})},xe=(Be,je)=>{Ee.getOpt(Be).each(et=>{je==="custom"?p.colorPicker(st=>{st.fold(()=>pa(et,cS),mt=>{re(et,mt),sR(t.storageKey,mt)})},"#ffffff"):je==="remove"?re(et,""):re(et,je)})},Ee=Qa(cW({dom:{tag:"span",attributes:{"aria-label":a.providers.translate("Color swatch")}},layouts:{onRtl:()=>[Ml,ji,Yi],onLtr:()=>[ji,Ml,Yi]},components:[],fetch:tO(p.getColors(t.storageKey),t.storageKey,p.hasCustomColors()),columns:p.getColorCols(t.storageKey),presets:"color",onItemAction:xe},a));return qa.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Y.toArray().concat([{dom:{tag:"div",classes:["tox-color-input"]},components:[z,Ee.asSpec()]}]),fieldBehaviours:gr([jo("form-field-events",[Xn(OO,(Be,je)=>{Ee.getOpt(Be).each(et=>{To(et.element,"background-color",je.event.color)}),go(Be,$u,{name:t.name})}),Xn(PO,(Be,je)=>{qa.getField(Be).each(et=>{Fr.setValue(et,je.event.value),da.getCurrent(Be).each(ko.focus)})}),Xn(cS,(Be,je)=>{qa.getField(Be).each(et=>{da.getCurrent(Be).each(ko.focus)})})])])})},DR=Fc({schema:[qn("dom")],name:"label"}),Qv=t=>Fc({name:""+t+"-edge",overrides:a=>a.model.manager.edgeActions[t].fold(()=>({}),E=>({events:bs([cb(eo(),(z,Y,re)=>E(z,re),[a]),cb(fo(),(z,Y,re)=>E(z,re),[a]),cb(Ha(),(z,Y,re)=>{re.mouseIsDown.get()&&E(z,re)},[a])])}))}),fW=Qv("top-left"),dW=Qv("top"),IO=Qv("top-right"),hW=Qv("right"),mW=Qv("bottom-right"),gW=Qv("bottom"),NO=Qv("bottom-left"),pW=Qv("left"),vW=Fl({name:"thumb",defaults:O({dom:{styles:{position:"absolute"}}}),overrides:t=>({events:bs([Gp(eo(),t,"spectrum"),Gp(lo(),t,"spectrum"),Gp(Ko(),t,"spectrum"),Gp(fo(),t,"spectrum"),Gp(Ha(),t,"spectrum"),Gp(is(),t,"spectrum")])})}),yW=Fl({schema:[zs("mouseIsDown",()=>q(!1))],name:"spectrum",overrides:t=>{const p=t.model.manager,E=(z,Y)=>p.getValueFromEvent(Y).map(re=>p.setValueFrom(z,t,re));return{behaviours:gr([po.config({mode:"special",onLeft:z=>p.onLeft(z,t),onRight:z=>p.onRight(z,t),onUp:z=>p.onUp(z,t),onDown:z=>p.onDown(z,t)}),ko.config({})]),events:bs([Xn(eo(),E),Xn(lo(),E),Xn(fo(),E),Xn(Ha(),(z,Y)=>{t.mouseIsDown.get()&&E(z,Y)})])}}});var bW=[DR,pW,hW,dW,gW,fW,IO,NO,mW,vW,yW];const Hx=O("slider.change.value"),FO=t=>t.type.indexOf("touch")!==-1,$R=t=>{const a=t.event.raw;if(FO(a)){const p=a;return p.touches!==void 0&&p.touches.length===1?P.some(p.touches[0]).map(E=>Ma(E.clientX,E.clientY)):P.none()}else{const p=a;return p.clientX!==void 0?P.some(p).map(E=>Ma(E.clientX,E.clientY)):P.none()}},xW="top",wW="right",CW="bottom",SW="left",qv=t=>t.model.minX,Kd=t=>t.model.minY,bA=t=>t.model.minX-1,xA=t=>t.model.minY-1,fy=t=>t.model.maxX,og=t=>t.model.maxY,Ou=t=>t.model.maxX+1,zx=t=>t.model.maxY+1,OR=(t,a,p)=>a(t)-p(t),PR=t=>OR(t,fy,qv),IR=t=>OR(t,og,Kd),BO=t=>PR(t)/2,HO=t=>IR(t)/2,dy=t=>t.stepSize,NR=t=>t.snapToGrid,zO=t=>t.snapStart,VO=t=>t.rounded,uS=(t,a)=>t[a+"-edge"]!==void 0,UO=t=>uS(t,SW),FR=t=>uS(t,wW),BR=t=>uS(t,xW),HR=t=>uS(t,CW),pp=t=>t.model.value.get(),e0=(t,a)=>({x:t,y:a}),Xd=(t,a)=>{go(t,Hx(),{value:a})},TW=(t,a)=>{Xd(t,e0(bA(a),xA(a)))},kW=(t,a)=>{Xd(t,xA(a))},AW=(t,a)=>{Xd(t,e0(BO(a),xA(a)))},zR=(t,a)=>{Xd(t,e0(Ou(a),xA(a)))},MW=(t,a)=>{Xd(t,Ou(a))},WO=(t,a)=>{Xd(t,e0(Ou(a),HO(a)))},EW=(t,a)=>{Xd(t,e0(Ou(a),zx(a)))},_W=(t,a)=>{Xd(t,zx(a))},RW=(t,a)=>{Xd(t,e0(BO(a),zx(a)))},LW=(t,a)=>{Xd(t,e0(bA(a),zx(a)))},DW=(t,a)=>{Xd(t,bA(a))},$W=(t,a)=>{Xd(t,e0(bA(a),HO(a)))},VR=(t,a,p,E)=>tp?p:t===a?a-1:Math.max(a,t-E),wA=(t,a,p,E)=>t>p?t:tMath.max(a,Math.min(p,t)),OW=(t,a,p,E,z)=>z.fold(()=>{const Y=t-a,re=Math.round(Y/E)*E;return UR(a+re,a-1,p+1)},Y=>{const re=(t-Y)%E,xe=Math.round(re/E),Ee=Math.floor((t-Y)/E),Be=Math.floor((p-Y)/E),je=Math.min(Be,Ee+xe),et=Y+je*E;return Math.max(Y,et)}),PW=(t,a,p)=>Math.min(p,Math.max(t,a))-a,GO=t=>{const{min:a,max:p,range:E,value:z,step:Y,snap:re,snapStart:xe,rounded:Ee,hasMinEdge:Be,hasMaxEdge:je,minBound:et,maxBound:st,screenRange:mt}=t,Mt=Be?a-1:a,Xt=je?p+1:p;if(zst)return Xt;{const Dn=PW(z,et,st),hn=UR(Dn/mt*E+a,Mt,Xt);return re&&hn>=a&&hn<=p?OW(hn,a,p,Y,xe):Ee?Math.round(hn):hn}},ZO=t=>{const{min:a,max:p,range:E,value:z,hasMinEdge:Y,hasMaxEdge:re,maxBound:xe,maxOffset:Ee,centerMinEdge:Be,centerMaxEdge:je}=t;return zp?re?xe:je:(z-a)/E*Ee},WR="top",jO="right",GR="bottom",CA="left",YO="width",ZR="height",ag=t=>t.element.dom.getBoundingClientRect(),dd=(t,a)=>t[a],SA=t=>{const a=ag(t);return dd(a,CA)},KO=t=>{const a=ag(t);return dd(a,jO)},TA=t=>{const a=ag(t);return dd(a,WR)},XO=t=>{const a=ag(t);return dd(a,GR)},kA=t=>{const a=ag(t);return dd(a,YO)},sg=t=>{const a=ag(t);return dd(a,ZR)},JO=(t,a,p)=>(t+a)/2-p,Vx=(t,a)=>{const p=ag(t),E=ag(a),z=dd(p,CA),Y=dd(p,jO),re=dd(E,CA);return JO(z,Y,re)},QO=(t,a)=>{const p=ag(t),E=ag(a),z=dd(p,WR),Y=dd(p,GR),re=dd(E,WR);return JO(z,Y,re)},Ux=(t,a)=>{go(t,Hx(),{value:a})},jR=(t,a,p)=>{const E={min:qv(a),max:fy(a),range:PR(a),value:p,step:dy(a),snap:NR(a),snapStart:zO(a),rounded:VO(a),hasMinEdge:UO(a),hasMaxEdge:FR(a),minBound:SA(t),maxBound:KO(t),screenRange:kA(t)};return GO(E)},IW=(t,a,p)=>{const E=jR(t,a,p);return Ux(t,E),E},NW=(t,a)=>{const p=qv(a);Ux(t,p)},qO=(t,a)=>{const p=fy(a);Ux(t,p)},FW=(t,a,p)=>{const z=(t>0?wA:VR)(pp(p),qv(p),fy(p),dy(p));return Ux(a,z),P.some(z)},AA=t=>(a,p)=>FW(t,a,p).map(j),YR=t=>$R(t).map(p=>p.left),KR=(t,a,p,E,z)=>{const re=kA(t),xe=E.bind(je=>P.some(Vx(je,t))).getOr(0),Ee=z.bind(je=>P.some(Vx(je,t))).getOr(re),Be={min:qv(a),max:fy(a),range:PR(a),value:p,hasMinEdge:UO(a),hasMaxEdge:FR(a),minBound:SA(t),minOffset:0,maxBound:KO(t),maxOffset:re,centerMinEdge:xe,centerMaxEdge:Ee};return ZO(Be)},XR=(t,a,p,E,z,Y)=>{const re=KR(a,Y,p,E,z);return SA(a)-SA(t)+re},$f=(t,a,p,E)=>{const z=pp(p),Y=XR(t,E.getSpectrum(t),z,E.getLeftEdge(t),E.getRightEdge(t),p),re=ci(a.element)/2;To(a.element,"left",Y-re+"px")},BW=AA(-1),HW=AA(1),eP=P.none,tP=P.none,zW={"top-left":P.none(),top:P.none(),"top-right":P.none(),right:P.some(MW),"bottom-right":P.none(),bottom:P.none(),"bottom-left":P.none(),left:P.some(DW)};var VW=Object.freeze({__proto__:null,setValueFrom:IW,setToMin:NW,setToMax:qO,findValueOfOffset:jR,getValueFromEvent:YR,findPositionOfValue:XR,setPositionFromValue:$f,onLeft:BW,onRight:HW,onUp:eP,onDown:tP,edgeActions:zW});const MA=(t,a)=>{go(t,Hx(),{value:a})},JR=(t,a,p)=>{const E={min:Kd(a),max:og(a),range:IR(a),value:p,step:dy(a),snap:NR(a),snapStart:zO(a),rounded:VO(a),hasMinEdge:BR(a),hasMaxEdge:HR(a),minBound:TA(t),maxBound:XO(t),screenRange:sg(t)};return GO(E)},UW=(t,a,p)=>{const E=JR(t,a,p);return MA(t,E),E},WW=(t,a)=>{const p=Kd(a);MA(t,p)},GW=(t,a)=>{const p=og(a);MA(t,p)},nP=(t,a,p)=>{const z=(t>0?wA:VR)(pp(p),Kd(p),og(p),dy(p));return MA(a,z),P.some(z)},rP=t=>(a,p)=>nP(t,a,p).map(j),ZW=t=>$R(t).map(p=>p.top),jW=(t,a,p,E,z)=>{const re=sg(t),xe=E.bind(je=>P.some(QO(je,t))).getOr(0),Ee=z.bind(je=>P.some(QO(je,t))).getOr(re),Be={min:Kd(a),max:og(a),range:IR(a),value:p,hasMinEdge:BR(a),hasMaxEdge:HR(a),minBound:TA(t),minOffset:0,maxBound:XO(t),maxOffset:re,centerMinEdge:xe,centerMaxEdge:Ee};return ZO(Be)},EA=(t,a,p,E,z,Y)=>{const re=jW(a,Y,p,E,z);return TA(a)-TA(t)+re},QR=(t,a,p,E)=>{const z=pp(p),Y=EA(t,E.getSpectrum(t),z,E.getTopEdge(t),E.getBottomEdge(t),p),re=Ls(a.element)/2;To(a.element,"top",Y-re+"px")},YW=P.none,qR=P.none,Wx=rP(-1),oP=rP(1),aP={"top-left":P.none(),top:P.some(kW),"top-right":P.none(),right:P.none(),"bottom-right":P.none(),bottom:P.some(_W),"bottom-left":P.none(),left:P.none()};var sP=Object.freeze({__proto__:null,setValueFrom:UW,setToMin:WW,setToMax:GW,findValueOfOffset:JR,getValueFromEvent:ZW,findPositionOfValue:EA,setPositionFromValue:QR,onLeft:YW,onRight:qR,onUp:Wx,onDown:oP,edgeActions:aP});const _A=(t,a)=>{go(t,Hx(),{value:a})},RA=(t,a)=>({x:t,y:a}),LA=(t,a,p)=>{const E=jR(t,a,p.left),z=JR(t,a,p.top),Y=RA(E,z);return _A(t,Y),Y},KW=(t,a,p,E)=>{const z=t>0?wA:VR,Y=a?pp(E).x:z(pp(E).x,qv(E),fy(E),dy(E)),re=a?z(pp(E).y,Kd(E),og(E),dy(E)):pp(E).y;return _A(p,RA(Y,re)),P.some(Y)},DA=(t,a)=>(p,E)=>KW(t,a,p,E).map(j),iP=(t,a)=>{const p=qv(a),E=Kd(a);_A(t,RA(p,E))},lP=(t,a)=>{const p=fy(a),E=og(a);_A(t,RA(p,E))},eL=t=>$R(t),cP=(t,a,p,E)=>{const z=pp(p),Y=XR(t,E.getSpectrum(t),z.x,E.getLeftEdge(t),E.getRightEdge(t),p),re=EA(t,E.getSpectrum(t),z.y,E.getTopEdge(t),E.getBottomEdge(t),p),xe=ci(a.element)/2,Ee=Ls(a.element)/2;To(a.element,"left",Y-xe+"px"),To(a.element,"top",re-Ee+"px")},su=DA(-1,!1),uP=DA(1,!1),XW=DA(-1,!0),JW=DA(1,!0),fP={"top-left":P.some(TW),top:P.some(AW),"top-right":P.some(zR),right:P.some(WO),"bottom-right":P.some(EW),bottom:P.some(RW),"bottom-left":P.some(LW),left:P.some($W)};var QW=Object.freeze({__proto__:null,setValueFrom:LA,setToMin:iP,setToMax:lP,getValueFromEvent:eL,setPositionFromValue:cP,onLeft:su,onRight:uP,onUp:XW,onDown:JW,edgeActions:fP});const qW=[En("stepSize",1),En("onChange",C),En("onChoose",C),En("onInit",C),En("onDragStart",C),En("onDragEnd",C),En("snapToGrid",!1),En("rounded",!0),Ia("snapStart"),yc("model",fa("mode",{x:[En("minX",0),En("maxX",100),zs("value",t=>q(t.mode.minX)),qn("getInitialValue"),rs("manager",VW)],y:[En("minY",0),En("maxY",100),zs("value",t=>q(t.mode.minY)),qn("getInitialValue"),rs("manager",sP)],xy:[En("minX",0),En("maxX",100),En("minY",0),En("maxY",100),zs("value",t=>q({x:t.mode.minX,y:t.mode.minY})),qn("getInitialValue"),rs("manager",QW)]})),Fi("sliderBehaviours",[po,Fr]),zs("mouseIsDown",()=>q(!1))],hd=Bl({name:"Slider",configFields:qW,partFields:bW,factory:(t,a,p,E)=>{const z=Vn=>zh(Vn,t,"thumb"),Y=Vn=>zh(Vn,t,"spectrum"),re=Vn=>gs(Vn,t,"left-edge"),xe=Vn=>gs(Vn,t,"right-edge"),Ee=Vn=>gs(Vn,t,"top-edge"),Be=Vn=>gs(Vn,t,"bottom-edge"),je=t.model,et=je.manager,st=(Vn,hr)=>{et.setPositionFromValue(Vn,hr,t,{getLeftEdge:re,getRightEdge:xe,getTopEdge:Ee,getBottomEdge:Be,getSpectrum:Y})},mt=(Vn,hr)=>{je.value.set(hr);const Yn=z(Vn);st(Vn,Yn)},Mt=(Vn,hr)=>{mt(Vn,hr);const Yn=z(Vn);return t.onChange(Vn,Yn,hr),P.some(!0)},Xt=Vn=>{et.setToMin(Vn,t)},Dn=Vn=>{et.setToMax(Vn,t)},hn=Vn=>{const hr=()=>{gs(Vn,t,"thumb").each(br=>{const Mr=je.value.get();t.onChoose(Vn,br,Mr)})},Yn=t.mouseIsDown.get();t.mouseIsDown.set(!1),Yn&&hr()},rn=(Vn,hr)=>{hr.stop(),t.mouseIsDown.set(!0),t.onDragStart(Vn,z(Vn))},kn=(Vn,hr)=>{hr.stop(),t.onDragEnd(Vn,z(Vn)),hn(Vn)};return{uid:t.uid,dom:t.dom,components:a,behaviours:Si(t.sliderBehaviours,[po.config({mode:"special",focusIn:Vn=>gs(Vn,t,"spectrum").map(po.focusIn).map(j)}),Fr.config({store:{mode:"manual",getValue:Vn=>je.value.get(),setValue:mt}}),Pc.config({channels:{[eC()]:{onReceive:hn}}})]),events:bs([Xn(Hx(),(Vn,hr)=>{Mt(Vn,hr.event.value)}),ms((Vn,hr)=>{const Yn=je.getInitialValue();je.value.set(Yn);const br=z(Vn);st(Vn,br);const Mr=Y(Vn);t.onInit(Vn,br,Mr,je.value.get())}),Xn(eo(),rn),Xn(Ko(),kn),Xn(fo(),rn),Xn(is(),kn)]),apis:{resetToMin:Xt,resetToMax:Dn,setValue:mt,refresh:st},domModification:{styles:{position:"relative"}}}},apis:{setValue:(t,a,p)=>{t.setValue(a,p)},resetToMin:(t,a)=>{t.resetToMin(a)},resetToMax:(t,a)=>{t.resetToMax(a)},refresh:(t,a)=>{t.refresh(a)}}}),Jd=Xr("rgb-hex-update"),$A=Xr("slider-update"),tL=Xr("palette-update"),OA=(t,a)=>{const p=hd.parts.spectrum({dom:{tag:"div",classes:[a("hue-slider-spectrum")],attributes:{role:"presentation"}}}),E=hd.parts.thumb({dom:{tag:"div",classes:[a("hue-slider-thumb")],attributes:{role:"presentation"}}});return hd.sketch({dom:{tag:"div",classes:[a("hue-slider")],attributes:{role:"presentation"}},rounded:!1,model:{mode:"y",getInitialValue:O(0)},components:[p,E],sliderBehaviours:gr([ko.config({})]),onChange:(z,Y,re)=>{go(z,$A,{value:re})}})},PA="form",eG=[Fi("formBehaviours",[Fr])],dP=t=>"",tG=t=>{const a=(()=>{const Y=[];return{field:(xe,Ee)=>(Y.push(xe),iC(PA,dP(xe),Ee)),record:O(Y)}})(),p=t(a),E=a.record(),z=ne(E,Y=>Fl({name:Y,pname:dP(Y)}));return mC(PA,eG,z,rG,p)},nG=(t,a)=>t.fold(()=>Wo.error(a),Wo.value),rG=(t,a)=>({uid:t.uid,dom:t.dom,components:a,behaviours:Si(t.formBehaviours,[Fr.config({store:{mode:"manual",getValue:p=>{const E=cC(p,t);return Xe(E,(z,Y)=>z().bind(re=>{const xe=da.getCurrent(re);return nG(xe,new Error(`Cannot find a current component to extract the value from for form part '${Y}': `+Rd(re.element)))}).map(Fr.getValue))},setValue:(p,E)=>{Ge(E,(z,Y)=>{gs(p,t,Y).each(re=>{da.getCurrent(re).each(xe=>{Fr.setValue(xe,z)})})})}}})]),apis:{getField:(p,E)=>gs(p,t,E).bind(da.getCurrent)}}),Gx={getField:Ug((t,a,p)=>t.getField(a,p)),sketch:tG},hP=Xr("valid-input"),nL=Xr("invalid-input"),mP=Xr("validating-input"),Qd="colorcustom.rgb.",IA=(t,a,p,E)=>{const z=(st,mt)=>Df.config({invalidClass:a("invalid"),notify:{onValidate:Mt=>{go(Mt,mP,{type:st})},onValid:Mt=>{go(Mt,hP,{type:st,value:Fr.getValue(Mt)})},onInvalid:Mt=>{go(Mt,nL,{type:st,value:Fr.getValue(Mt)})}},validator:{validate:Mt=>{const Xt=Fr.getValue(Mt),Dn=mt(Xt)?Wo.value(!0):Wo.error(t("aria.input.invalid"));return cc.pure(Dn)},validateOnLoad:!1}}),Y=(st,mt,Mt,Xt,Dn)=>{const hn=t(Qd+"range"),rn=qa.parts.label({dom:{tag:"label",attributes:{"aria-label":Xt}},components:[ai(Mt)]}),kn=qa.parts.field({data:Dn,factory:sy,inputAttributes:{type:"text",...mt==="hex"?{"aria-live":"polite"}:{}},inputClasses:[a("textfield")],inputBehaviours:gr([z(mt,st),Ns.config({})]),onSetValue:br=>{Df.isInvalid(br)&&Df.run(br).get(C)}}),Vn=[rn,kn],hr=mt!=="hex"?[qa.parts["aria-descriptor"]({text:hn})]:[],Yn=Vn.concat(hr);return{dom:{tag:"div",attributes:{role:"presentation"}},components:Yn}},re=(st,mt)=>{const Mt=Nx(mt);return Gx.getField(st,"hex").each(Xt=>{ko.isFocused(Xt)||Fr.setValue(st,{hex:Mt.value})}),Mt},xe=(st,mt)=>{const Mt=mt.red,Xt=mt.green,Dn=mt.blue;Fr.setValue(st,{red:Mt,green:Xt,blue:Dn})},Ee=Qa({dom:{tag:"div",classes:[a("rgba-preview")],styles:{"background-color":"white"},attributes:{role:"presentation"}}}),Be=(st,mt)=>{Ee.getOpt(st).each(Mt=>{To(Mt.element,"background-color","#"+mt.value)})};return ou({factory:()=>{const st={red:q(P.some(255)),green:q(P.some(255)),blue:q(P.some(255)),hex:q(P.some("ffffff"))},mt=(Mo,ja)=>{const xo=QC(ja);xe(Mo,xo),hn(xo)},Mt=Mo=>st[Mo].get(),Xt=(Mo,ja)=>{st[Mo].set(ja)},Dn=()=>Mt("red").bind(Mo=>Mt("green").bind(ja=>Mt("blue").map(xo=>jv(Mo,ja,xo,1)))),hn=Mo=>{const ja=Mo.red,xo=Mo.green,Ea=Mo.blue;Xt("red",P.some(ja)),Xt("green",P.some(xo)),Xt("blue",P.some(Ea))},rn=(Mo,ja)=>{const xo=ja.event;xo.type!=="hex"?Xt(xo.type,P.none()):E(Mo)},kn=(Mo,ja)=>{p(Mo);const xo=R7(ja);Xt("hex",P.some(xo.value));const Ea=QC(xo);xe(Mo,Ea),hn(Ea),go(Mo,Jd,{hex:xo}),Be(Mo,xo)},Vn=(Mo,ja,xo)=>{const Ea=parseInt(xo,10);Xt(ja,P.some(Ea)),Dn().each(Ar=>{const no=re(Mo,Ar);go(Mo,Jd,{hex:no}),Be(Mo,no)})},hr=Mo=>Mo.type==="hex",Yn=(Mo,ja)=>{const xo=ja.event;hr(xo)?kn(Mo,xo.value):Vn(Mo,xo.type,xo.value)},br=Mo=>({label:t(Qd+Mo+".label"),description:t(Qd+Mo+".description")}),Mr=br("red"),ea=br("green"),Zr=br("blue"),Do=br("hex");return hs(Gx.sketch(Mo=>({dom:{tag:"form",classes:[a("rgb-form")],attributes:{"aria-label":t("aria.color.picker")}},components:[Mo.field("red",qa.sketch(Y(Q5,"red",Mr.label,Mr.description,255))),Mo.field("green",qa.sketch(Y(Q5,"green",ea.label,ea.description,255))),Mo.field("blue",qa.sketch(Y(Q5,"blue",Zr.label,Zr.description,255))),Mo.field("hex",qa.sketch(Y($7,"hex",Do.label,Do.description,"ffffff"))),Ee.asSpec()],formBehaviours:gr([Df.config({invalidClass:a("form-invalid")}),jo("rgb-form-events",[Xn(hP,Yn),Xn(nL,rn),Xn(mP,rn)])])})),{apis:{updateHex:(Mo,ja)=>{Fr.setValue(Mo,{hex:ja.value}),mt(Mo,ja),Be(Mo,ja)}}})},name:"RgbForm",configFields:[],apis:{updateHex:(st,mt,Mt)=>{st.updateHex(mt,Mt)}},extraApis:{}})},oG=(t,a)=>{const p=hd.parts.spectrum({dom:{tag:"canvas",attributes:{role:"presentation"},classes:[a("sv-palette-spectrum")]}}),E=hd.parts.thumb({dom:{tag:"div",attributes:{role:"presentation"},classes:[a("sv-palette-thumb")],innerHtml:``}}),z=(Be,je)=>{const{width:et,height:st}=Be,mt=Be.getContext("2d");if(mt===null)return;mt.fillStyle=je,mt.fillRect(0,0,et,st);const Mt=mt.createLinearGradient(0,0,et,0);Mt.addColorStop(0,"rgba(255,255,255,1)"),Mt.addColorStop(1,"rgba(255,255,255,0)"),mt.fillStyle=Mt,mt.fillRect(0,0,et,st);const Xt=mt.createLinearGradient(0,0,0,st);Xt.addColorStop(0,"rgba(0,0,0,0)"),Xt.addColorStop(1,"rgba(0,0,0,1)"),mt.fillStyle=Xt,mt.fillRect(0,0,et,st)},Y=(Be,je)=>{const et=Be.components()[0].element.dom,st=eS(je,100,100),mt=H7(st);z(et,eR(mt))},re=(Be,je)=>{const et=aA(QC(je));hd.setValue(Be,{x:et.saturation,y:100-et.value})};return ou({factory:Be=>{const je=O({x:0,y:0}),et=(Mt,Xt,Dn)=>{go(Mt,tL,{value:Dn})},st=(Mt,Xt,Dn,hn)=>{z(Dn.element.dom,eR(cd))},mt=gr([da.config({find:P.some}),ko.config({})]);return hd.sketch({dom:{tag:"div",attributes:{role:"presentation"},classes:[a("sv-palette")]},model:{mode:"xy",getInitialValue:je},rounded:!1,components:[p,E],onChange:et,onInit:st,sliderBehaviours:mt})},name:"SaturationBrightnessPalette",configFields:[],apis:{setHue:(Be,je,et)=>{Y(je,et)},setThumb:(Be,je,et)=>{re(je,et)}},extraApis:{}})},aG=(t,a)=>{const p=z=>{const Y=IA(t,a,z.onValidHex,z.onInvalidHex),re=oG(t,a),xe=Yn=>(100-Yn)/100*360,Ee=Yn=>100-Yn/360*100,Be={paletteRgba:q(cd),paletteHue:q(0)},je=Qa(OA(t,a)),et=Qa(re.sketch({})),st=Qa(Y.sketch({})),mt=(Yn,br,Mr)=>{et.getOpt(Yn).each(ea=>{re.setHue(ea,Mr)})},Mt=(Yn,br)=>{st.getOpt(Yn).each(Mr=>{Y.updateHex(Mr,br)})},Xt=(Yn,br,Mr)=>{je.getOpt(Yn).each(ea=>{hd.setValue(ea,Ee(Mr))})},Dn=(Yn,br)=>{et.getOpt(Yn).each(Mr=>{re.setThumb(Mr,br)})},hn=(Yn,br)=>{const Mr=QC(Yn);Be.paletteRgba.set(Mr),Be.paletteHue.set(br)},rn=(Yn,br,Mr,ea)=>{hn(br,Mr),fe(ea,Zr=>{Zr(Yn,br,Mr)})},kn=()=>{const Yn=[Mt];return(br,Mr)=>{const ea=Mr.event.value,Zr=Be.paletteHue.get(),Do=eS(Zr,ea.x,100-ea.y),Mo=Y7(Do);rn(br,Mo,Zr,Yn)}},Vn=()=>{const Yn=[mt,Mt];return(br,Mr)=>{const ea=xe(Mr.event.value),Zr=Be.paletteRgba.get(),Do=aA(Zr),Mo=eS(ea,Do.saturation,Do.value),ja=Y7(Mo);rn(br,ja,ea,Yn)}},hr=()=>{const Yn=[mt,Xt,Dn];return(br,Mr)=>{const ea=Mr.event.hex,Zr=GV(ea);rn(br,ea,Zr.hue,Yn)}};return{uid:z.uid,dom:z.dom,components:[et.asSpec(),je.asSpec(),st.asSpec()],behaviours:gr([jo("colour-picker-events",[Xn(Jd,hr()),Xn(tL,kn()),Xn($A,Vn())]),da.config({find:Yn=>st.getOpt(Yn)}),po.config({mode:"acyclic"})])}};return ou({name:"ColourPicker",configFields:[qn("dom"),En("onValidHex",C),En("onInvalidHex",C)],factory:p})},sf={self:()=>da.config({find:P.some}),memento:t=>da.config({find:t.getOpt}),childAt:t=>da.config({find:a=>qr(a.element,t).bind(p=>a.getSystem().getByDom(p).toOptional())})},fS=io([En("preprocess",D),En("postprocess",D)]),dS=(t,a)=>{const p=ul("RepresentingConfigs.memento processors",fS,a);return Fr.config({store:{mode:"manual",getValue:E=>{const z=t.get(E),Y=Fr.getValue(z);return p.postprocess(Y)},setValue:(E,z)=>{const Y=p.preprocess(z),re=t.get(E);Fr.setValue(re,Y)}}})},t0=(t,a,p)=>Fr.config({store:{mode:"manual",...t.map(E=>({initialValue:E})).getOr({}),getValue:a,setValue:p}}),rL=(t,a,p)=>t0(t,E=>a(E.element),(E,z)=>p(E.element,z)),pP=t=>rL(t,Y2,zg),hS=t=>Fr.config({store:{mode:"memory",initialValue:t}}),lG={"colorcustom.rgb.red.label":"R","colorcustom.rgb.red.description":"Red component","colorcustom.rgb.green.label":"G","colorcustom.rgb.green.description":"Green component","colorcustom.rgb.blue.label":"B","colorcustom.rgb.blue.description":"Blue component","colorcustom.rgb.hex.label":"#","colorcustom.rgb.hex.description":"Hex color code","colorcustom.rgb.range":"Range 0 to 255","aria.color.picker":"Color Picker","aria.input.invalid":"Invalid input"},cG=t=>a=>t.translate(lG[a]),uG=(t,a,p)=>{const E=Ee=>"tox-"+Ee,z=aG(cG(a),E),Y=Ee=>{go(Ee,rg,{name:"hex-valid",value:!0})},re=Ee=>{go(Ee,rg,{name:"hex-valid",value:!1})},xe=Qa(z.sketch({dom:{tag:"div",classes:[E("color-picker-container")],attributes:{role:"presentation"}},onValidHex:Y,onInvalidHex:re}));return{dom:{tag:"div"},components:[xe.asSpec()],behaviours:gr([t0(p,Ee=>{const Be=xe.get(Ee);return da.getCurrent(Be).bind(st=>Fr.getValue(st).hex).map(st=>"#"+$t(st,"#")).getOr("")},(Ee,Be)=>{const je=/^#([a-fA-F0-9]{3}(?:[a-fA-F0-9]{3})?)/,et=P.from(je.exec(Be)).bind(Mt=>de(Mt,1)),st=xe.get(Ee);da.getCurrent(st).fold(()=>{console.log("Can not find form")},Mt=>{Fr.setValue(Mt,{hex:et.getOr("")}),Gx.getField(Mt,"hex").each(Xt=>{pa(Xt,qs())})})}),sf.self()])}};var fG=tinymce.util.Tools.resolve("tinymce.Resource");const dG=t=>pn(t,"init"),vP=t=>{const a=ia(),p=Qa({dom:{tag:t.tag}}),E=ia();return{dom:{tag:"div",classes:["tox-custom-editor"]},behaviours:gr([jo("custom-editor-events",[ms(z=>{p.getOpt(z).each(Y=>{(dG(t)?t.init(Y.element.dom):fG.load(t.scriptId,t.scriptUrl).then(re=>re(Y.element.dom,t.settings))).then(re=>{E.on(xe=>{re.setValue(xe)}),E.clear(),a.set(re)})})})]),t0(P.none(),()=>a.get().fold(()=>E.get().getOr(""),z=>z.getValue()),(z,Y)=>{a.get().fold(()=>E.set(Y),re=>re.setValue(Y))}),sf.self()]),components:[p.asSpec()]}};var ig=tinymce.util.Tools.resolve("tinymce.util.Tools");const hG=(t,a)=>{const p=ig.explode(a.getOption("images_file_types")),E=z=>ge(p,Y=>pt(z.name.toLowerCase(),`.${Y.toLowerCase()}`));return Ce(ze(t),E)},yP=(t,a,p)=>{const E=(st,mt)=>{mt.stop()},z=st=>(mt,Mt)=>{fe(st,Xt=>{Xt(mt,Mt)})},Y=(st,mt)=>{var Mt;if(!Co.isDisabled(st)){const Xt=mt.event.raw;xe(st,(Mt=Xt.dataTransfer)===null||Mt===void 0?void 0:Mt.files)}},re=(st,mt)=>{const Mt=mt.event.raw.target;xe(st,Mt.files)},xe=(st,mt)=>{mt&&(Fr.setValue(st,hG(mt,a)),go(st,$u,{name:t.name}))},Ee=Qa({dom:{tag:"input",attributes:{type:"file",accept:"image/*"},styles:{display:"none"}},behaviours:gr([jo("input-file-events",[Ah(xi()),Ah(nc())])])}),Be=st=>({uid:st.uid,dom:{tag:"div",classes:["tox-dropzone-container"]},behaviours:gr([hS(p.getOr([])),sf.self(),Co.config({}),qo.config({toggleClass:"dragenter",toggleOnExecute:!1}),jo("dropzone-events",[Xn("dragenter",z([E,qo.toggle])),Xn("dragleave",z([E,qo.toggle])),Xn("dragover",E),Xn("drop",z([E,Y])),Xn(Di(),re)])]),components:[{dom:{tag:"div",classes:["tox-dropzone"],styles:{}},components:[{dom:{tag:"p"},components:[ai(a.translate("Drop an image here"))]},hl.sketch({dom:{tag:"button",styles:{position:"relative"},classes:["tox-button","tox-button--secondary"]},components:[ai(a.translate("Browse for an image")),Ee.asSpec()],action:mt=>{Ee.get(mt).element.dom.click()},buttonBehaviours:gr([Ns.config({}),Bi.button(a.isDisabled),Qi()])})]}]}),je=t.label.map(st=>fd(st,a)),et=qa.parts.field({factory:{sketch:Be}});return aS(je,et,["tox-form__group--stretched"],[])},mG=(t,a)=>({dom:{tag:"div",classes:["tox-form__grid",`tox-form__grid--${t.columns}col`]},components:ne(t.items,a.interpreter)}),bP=(t,a)=>{let p=null,E=null;return{cancel:()=>{l(p)||(clearTimeout(p),p=null,E=null)},throttle:(...re)=>{E=re,l(p)&&(p=setTimeout(()=>{const xe=E;p=null,E=null,t.apply(null,xe)},a))}}},mS=(t,a)=>{let p=null;return{cancel:()=>{l(p)||(clearTimeout(p),p=null)},throttle:(...Y)=>{l(p)&&(p=setTimeout(()=>{p=null,t.apply(null,Y)},a))}}},oL=(t,a)=>{let p=null;const E=()=>{l(p)||(clearTimeout(p),p=null)};return{cancel:E,throttle:(...Y)=>{E(),p=setTimeout(()=>{p=null,t.apply(null,Y)},a)}}},NA=Xr("alloy-fake-before-tabstop"),aL=Xr("alloy-fake-after-tabstop"),xP=t=>({dom:{tag:"div",styles:{width:"1px",height:"1px",outline:"none"},attributes:{tabindex:"0"},classes:t},behaviours:gr([ko.config({ignore:!0}),Ns.config({})])}),wP=(t,a)=>({dom:{tag:"div",classes:["tox-navobj",...t.getOr([])]},components:[xP([NA]),a,xP([aL])],behaviours:gr([sf.childAt(1)])}),CP=(t,a)=>{go(t,Ca(),{raw:{which:9,shiftKey:a}})},SP=(t,a)=>{const p=a.element;Ni(p,NA)?CP(t,!0):Ni(p,aL)&&CP(t,!1)},gS=t=>rS(t,["."+NA,"."+aL].join(","),H),pS=Xr("update-dialog"),FA=Xr("update-title"),lg=Xr("update-body"),BA=Xr("update-footer"),sL=Xr("body-send-message"),vS=Xr("dialog-focus-shifted"),yS=hf().browser,Zx=yS.isSafari(),HA=yS.isFirefox(),iL=Zx||HA,TP=yS.isChromium(),gG=({scrollTop:t,scrollHeight:a,clientHeight:p})=>Math.ceil(t)+p>=a,kP=(t,a)=>t.scrollTo(0,a==="bottom"?99999999:a),pG=(t,a)=>{const p=t.body;return P.from(!/^1))?p:t.documentElement)},AP=(t,a,p)=>{const E=t.dom;P.from(E.contentDocument).fold(p,z=>{let Y=0;const re=pG(z,a).map(Ee=>(Y=Ee.scrollTop,Ee)).forall(gG),xe=()=>{const Ee=E.contentWindow;d(Ee)&&(re?kP(Ee,"bottom"):!re&&iL&&Y!==0&&kP(Ee,Y))};Zx&&E.addEventListener("load",xe,{once:!0}),z.open(),z.write(a),z.close(),Zx||xe()})},MP=lt(iL,Zx?500:200).map(t=>bP(AP,t)),EP=(t,a)=>{const p=q(t.getOr(""));return{getValue:E=>p.get(),setValue:(E,z)=>{if(p.get()!==z){const Y=E.element,re=()=>Lr(Y,"srcdoc",z);a?MP.fold(O(AP),xe=>xe.throttle)(Y,z,re):re()}p.set(z)}}},vG=(t,a,p)=>{const E="tox-dialog__iframe",z=t.transparent?[]:[`${E}--opaque`],Y=t.border?["tox-navobj-bordered"]:[],re={...t.label.map(et=>({title:et})).getOr({}),...p.map(et=>({srcdoc:et})).getOr({}),...t.sandboxed?{sandbox:"allow-scripts allow-same-origin"}:{}},xe=EP(p,t.streamContent),Ee=t.label.map(et=>fd(et,a)),Be=et=>wP(P.from(Y),{uid:et.uid,dom:{tag:"iframe",attributes:re,classes:[E,...z]},behaviours:gr([Ns.config({}),ko.config({}),t0(p,xe.getValue,xe.setValue),Pc.config({channels:{[vS]:{onReceive:(st,mt)=>{mt.newFocus.each(Mt=>{fr(st.element).each(Xt=>{(Qt(st.element,Mt)?hi:Is)(Xt,"tox-navobj-bordered-focus")})})}}}})])}),je=qa.parts.field({factory:{sketch:Be}});return aS(Ee,je,["tox-form__group--stretched"],[])},yG=t=>new Promise((a,p)=>{const E=()=>{Y(),a(t)},z=[sc(t,"load",E),sc(t,"error",()=>{Y(),p("Unable to load data from image: "+t.dom.src)})],Y=()=>fe(z,re=>re.unbind());t.dom.complete&&E()}),bG=(t,a,p,E,z)=>{const Y=p*z,re=E*z,xe=Math.max(0,t/2-Y/2),Ee=Math.max(0,a/2-re/2);return{left:xe.toString()+"px",top:Ee.toString()+"px",width:Y.toString()+"px",height:re.toString()+"px"}},zA=(t,a,p)=>{const E=ci(t),z=Ls(t);return Math.min(E/a,z/p,1)},xG=(t,a)=>{const p=q(a.getOr({url:""})),E=Qa({dom:{tag:"img",classes:["tox-imagepreview__image"],attributes:a.map(Ee=>({src:Ee.url})).getOr({})}}),z=Qa({dom:{tag:"div",classes:["tox-imagepreview__container"],attributes:{role:"presentation"}},components:[E.asSpec()]}),Y=(Ee,Be)=>{const je={url:Be.url};Be.zoom.each(st=>je.zoom=st),Be.cachedWidth.each(st=>je.cachedWidth=st),Be.cachedHeight.each(st=>je.cachedHeight=st),p.set(je);const et=()=>{const{cachedWidth:st,cachedHeight:mt,zoom:Mt}=je;if(!i(st)&&!i(mt)){if(i(Mt)){const Dn=zA(Ee.element,st,mt);je.zoom=Dn}const Xt=bG(ci(Ee.element),Ls(Ee.element),st,mt,je.zoom);z.getOpt(Ee).each(Dn=>{Mi(Dn.element,Xt)})}};E.getOpt(Ee).each(st=>{const mt=st.element;Be.url!==Ka(mt,"src")&&(Lr(mt,"src",Be.url),Is(Ee.element,"tox-imagepreview__loaded")),et(),yG(mt).then(Mt=>{Ee.getSystem().isConnected()&&(hi(Ee.element,"tox-imagepreview__loaded"),je.cachedWidth=Mt.dom.naturalWidth,je.cachedHeight=Mt.dom.naturalHeight,et())})})},re={};t.height.each(Ee=>re.height=Ee);const xe=a.map(Ee=>({url:Ee.url,zoom:P.from(Ee.zoom),cachedWidth:P.from(Ee.cachedWidth),cachedHeight:P.from(Ee.cachedHeight)}));return{dom:{tag:"div",classes:["tox-imagepreview"],styles:re,attributes:{role:"presentation"}},components:[z.asSpec()],behaviours:gr([sf.self(),t0(xe,()=>p.get(),Y)])}},wG=(t,a)=>{const p="tox-label",E=t.align==="center"?[`${p}--center`]:[],z=t.align==="end"?[`${p}--end`]:[],Y={dom:{tag:"label",classes:[p,...E,...z]},components:[ai(a.providers.translate(t.label))]},re=ne(t.items,a.interpreter);return{dom:{tag:"div",classes:["tox-form__group"]},components:[Y,...re],behaviours:gr([sf.self(),Ho.config({}),pP(P.none()),po.config({mode:"acyclic"})])}},lL=Xr("toolbar.button.execute"),_P=t=>xf((a,p)=>{Lf(t,a)(E=>{go(a,lL,{buttonApi:E}),t.onAction(E)})}),hy=Xr("common-button-display-events"),RP={[Ci()]:["disabling","alloy.base.behaviour","toggling","toolbar-button-events"],[Cu()]:["toolbar-button-events",hy],[fo()]:["focusing","alloy.base.behaviour",hy]},bS=t=>To(t.element,"width",Ms(t.element,"width")),LP=(t,a,p)=>Gd(t,{tag:"span",classes:["tox-icon","tox-tbtn__icon-wrap"],behaviours:p},a),VA=(t,a)=>LP(t,a,[]),n0=(t,a)=>LP(t,a,[Ho.config({})]),DP=(t,a,p)=>({dom:{tag:"span",classes:[`${a}__select-label`]},components:[ai(p.translate(t))],behaviours:gr([Ho.config({})])}),md=Xr("update-menu-text"),r0=Xr("update-menu-icon"),UA=(t,a,p)=>{const E=q(C),z=t.text.map(st=>Qa(DP(st,a,p.providers))),Y=t.icon.map(st=>Qa(n0(st,p.providers.icons))),re=(st,mt)=>{const Mt=Fr.getValue(st);return ko.focus(Mt),go(Mt,"keydown",{raw:mt.event.raw}),ud.close(Mt),P.some(!0)},xe=t.role.fold(()=>({}),st=>({role:st})),Ee=t.tooltip.fold(()=>({}),st=>{const mt=p.providers.translate(st);return{title:mt,"aria-label":mt}}),Be=Gd("chevron-down",{tag:"div",classes:[`${a}__select-chevron`]},p.providers.icons),je=Xr("common-button-display-events");return Qa(ud.sketch({...t.uid?{uid:t.uid}:{},...xe,dom:{tag:"button",classes:[a,`${a}--select`].concat(ne(t.classes,st=>`${a}--${st}`)),attributes:{...Ee}},components:Ox([Y.map(st=>st.asSpec()),z.map(st=>st.asSpec()),P.some(Be)]),matchWidth:!0,useMinWidth:!0,onOpen:(st,mt,Mt)=>{t.searchable&&DU(Mt)},dropdownBehaviours:gr([...t.dropdownBehaviours,Bi.button(()=>t.disabled||p.providers.isDisabled()),Qi(),lS.config({}),Ho.config({}),jo("dropdown-events",[Zv(t,E),eg(t,E)]),jo(je,[ms((st,mt)=>bS(st))]),jo("menubutton-update-display-text",[Xn(md,(st,mt)=>{z.bind(Mt=>Mt.getOpt(st)).each(Mt=>{Ho.set(Mt,[ai(p.providers.translate(mt.event.text))])})}),Xn(r0,(st,mt)=>{Y.bind(Mt=>Mt.getOpt(st)).each(Mt=>{Ho.set(Mt,[n0(mt.event.icon,p.providers.icons)])})})])]),eventOrder:hs(RP,{mousedown:["focusing","alloy.base.behaviour","item-type-events","normal-dropdown-events"],[Cu()]:["toolbar-button-events","dropdown-events",je]}),sandboxBehaviours:gr([po.config({mode:"special",onLeft:re,onRight:re}),jo("dropdown-sandbox-events",[Xn(W8,(st,mt)=>{MU(st),mt.stop()}),Xn(G8,(st,mt)=>{EU(st,mt),mt.stop()})])]),lazySink:p.getSink,toggleClass:`${a}--active`,parts:{menu:{...Mx(!1,t.columns,t.presets),fakeFocus:t.searchable,onHighlightItem:AR,onCollapseMenu:(st,mt,Mt)=>{Na.getHighlighted(Mt).each(Xt=>{AR(st,Mt,Xt)})},onDehighlightItem:LU}},getAnchorOverrides:()=>({maxHeightFunction:(st,mt)=>{mT()(st,mt-10)}}),fetch:st=>cc.nu(M(t.fetch,st))})).asSpec()},CG=t=>A(t),$P=t=>t.type==="separator",SG=t=>pn(t,"getSubmenuItems"),TG={type:"separator"},OP=(t,a)=>{const p=ke(t,(E,z)=>CG(z)?z===""?E:z==="|"?E.length>0&&!$P(E[E.length-1])?E.concat([TG]):E:pn(a,z.toLowerCase())?E.concat([a[z.toLowerCase()]]):E:E.concat([z]),[]);return p.length>0&&$P(p[p.length-1])&&p.pop(),p},kG=(t,a)=>{const p=t.getSubmenuItems(),E=IP(p,a),z=hs(E.menus,{[t.value]:E.items}),Y=hs(E.expansions,{[t.value]:t.value});return{item:t,menus:z,expansions:Y}},PP=t=>{const a=Ft(t,"value").getOrThunk(()=>Xr("generated-menu-item"));return hs({value:a},t)},IP=(t,a)=>{const p=OP(A(t)?t.split(" "):t,a);return $e(p,(E,z)=>{if(SG(z)){const Y=PP(z),re=kG(Y,a);return{menus:hs(E.menus,re.menus),items:[re.item,...E.items],expansions:hs(E.expansions,re.expansions)}}else return{...E,items:[z,...E.items]}},{menus:{},expansions:{},items:[]})},AG=t=>t.search.fold(()=>({searchMode:"no-search"}),a=>({searchMode:"search-with-field",placeholder:a.placeholder})),MG=t=>t.search.fold(()=>({searchMode:"no-search"}),a=>({searchMode:"search-with-results"})),jx=(t,a,p,E)=>{const z=Xr("primary-menu"),Y=IP(t,p.shared.providers.menuItems());if(Y.items.length===0)return P.none();const re=AG(E),xe=pO(z,Y.items,a,p,E.isHorizontalMenu,re),Ee=MG(E),Be=Xe(Y.menus,(et,st)=>pO(st,et,a,p,!1,Ee)),je=hs(Be,yt(z,xe));return P.from(Wv.tieredData(z,je,Y.expansions))},cL=t=>!pn(t,"items"),NP="data-value",FP=(t,a,p,E)=>ne(p,z=>cL(z)?{type:"togglemenuitem",text:z.text,value:z.value,active:z.value===E,onAction:()=>{Fr.setValue(t,z.value),go(t,$u,{name:a}),ko.focus(t)}}:{type:"nestedmenuitem",text:z.text,getSubmenuItems:()=>FP(t,a,z.items,E)}),uL=(t,a)=>We(t,p=>cL(p)?lt(p.value===a,p):uL(p.items,a)),EG=(t,a,p)=>{const E=a.shared.providers,z=p.bind(Ee=>uL(t.items,Ee)).orThunk(()=>Me(t.items).filter(cL)),Y=t.label.map(Ee=>fd(Ee,E)),re=qa.parts.field({dom:{},factory:{sketch:Ee=>UA({uid:Ee.uid,text:z.map(Be=>Be.text),icon:P.none(),tooltip:t.label,role:P.none(),fetch:(Be,je)=>{const et=FP(Be,t.name,t.items,Fr.getValue(Be));je(jx(et,Yh.CLOSE_ON_EXECUTE,a,{isHorizontalMenu:!1,search:P.none()}))},onSetup:O(C),getApi:O({}),columns:1,presets:"normal",classes:[],dropdownBehaviours:[Ns.config({}),t0(z.map(Be=>Be.value),Be=>Ka(Be.element,NP),(Be,je)=>{uL(t.items,je).each(et=>{Lr(Be.element,NP,et.value),go(Be,md,{text:et.text})})})]},"tox-listbox",a.shared)}}),xe={dom:{tag:"div",classes:["tox-listboxfield"]},components:[re]};return qa.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Fe([Y.toArray(),[xe]]),fieldBehaviours:gr([Co.config({disabled:O(!t.enabled),onDisabled:Ee=>{qa.getField(Ee).each(Co.disable)},onEnabled:Ee=>{qa.getField(Ee).each(Co.enable)}})])})},fL=(t,a)=>({dom:{tag:"div",classes:t.classes},components:ne(t.items,a.shared.interpreter)}),_G=(t,a)=>{const p=ne(t.options,z=>({dom:{tag:"option",value:z.value,innerHtml:z.text}})),E=t.data.map(z=>yt("initialValue",z)).getOr({});return{uid:t.uid,dom:{tag:"select",classes:t.selectClasses,attributes:t.selectAttributes},components:p,behaviours:Si(t.selectBehaviours,[ko.config({}),Fr.config({store:{mode:"manual",getValue:z=>Dd(z.element),setValue:(z,Y)=>{const re=Me(t.options);Ve(t.options,Ee=>Ee.value===Y).isSome()?rv(z.element,Y):z.element.dom.selectedIndex===-1&&Y===""&&re.each(Ee=>rv(z.element,Ee.value))},...E}})])}},RG=ou({name:"HtmlSelect",configFields:[qn("options"),Fi("selectBehaviours",[ko,Fr]),En("selectClasses",[]),En("selectAttributes",{}),Ia("data")],factory:_G}),LG=(t,a,p)=>{const E=ne(t.items,Ee=>({text:a.translate(Ee.text),value:Ee.value})),z=t.label.map(Ee=>fd(Ee,a)),Y=qa.parts.field({dom:{},...p.map(Ee=>({data:Ee})).getOr({}),selectAttributes:{size:t.size},options:E,factory:RG,selectBehaviours:gr([Co.config({disabled:()=>!t.enabled||a.isDisabled()}),Ns.config({}),jo("selectbox-change",[Xn(Di(),(Ee,Be)=>{go(Ee,$u,{name:t.name})})])])}),re=t.size>1?P.none():P.some(Gd("chevron-down",{tag:"div",classes:["tox-selectfield__icon-js"]},a.icons)),xe={dom:{tag:"div",classes:["tox-selectfield"]},components:Fe([[Y],re.toArray()])};return qa.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:Fe([z.toArray(),[xe]]),fieldBehaviours:gr([Co.config({disabled:()=>!t.enabled||a.isDisabled(),onDisabled:Ee=>{qa.getField(Ee).each(Co.disable)},onEnabled:Ee=>{qa.getField(Ee).each(Co.enable)}}),Qi()])})},xS=O([En("field1Name","field1"),En("field2Name","field2"),qf("onLockedChange"),Lm(["lockClass"]),En("locked",!1),nf.field("coupledFieldBehaviours",[da,Fr])]),dL=(t,a,p)=>gs(t,a,p).bind(da.getCurrent),BP=(t,a)=>Fl({factory:qa,name:t,overrides:p=>({fieldBehaviours:gr([jo("coupled-input-behaviour",[Xn(qs(),E=>{dL(E,p,a).each(z=>{gs(E,p,"lock").each(Y=>{qo.isOn(Y)&&p.onLockedChange(E,z,Y)})})})])])})}),DG=O([BP("field1","field2"),BP("field2","field1"),Fl({factory:hl,schema:[qn("dom")],name:"lock",overrides:t=>({buttonBehaviours:gr([qo.config({selected:t.locked,toggleClass:t.markers.lockClass,aria:{mode:"pressed"}})])})})]),hL=(t,a,p,E)=>({uid:t.uid,dom:t.dom,components:a,behaviours:nf.augment(t.coupledFieldBehaviours,[da.config({find:P.some}),Fr.config({store:{mode:"manual",getValue:z=>{const Y=rp(z,t,["field1","field2"]);return{[t.field1Name]:Fr.getValue(Y.field1()),[t.field2Name]:Fr.getValue(Y.field2())}},setValue:(z,Y)=>{const re=rp(z,t,["field1","field2"]);_n(Y,t.field1Name)&&Fr.setValue(re.field1(),Y[t.field1Name]),_n(Y,t.field2Name)&&Fr.setValue(re.field2(),Y[t.field2Name])}}})]),apis:{getField1:z=>gs(z,t,"field1"),getField2:z=>gs(z,t,"field2"),getLock:z=>gs(z,t,"lock")}}),Of=Bl({name:"FormCoupledInputs",configFields:xS(),partFields:DG(),factory:hL,apis:{getField1:(t,a)=>t.getField1(a),getField2:(t,a)=>t.getField2(a),getLock:(t,a)=>t.getLock(a)}}),mL=t=>{const a={"":0,px:0,pt:1,mm:1,pc:2,ex:2,em:2,ch:2,rem:2,cm:3,in:4,"%":4},p=z=>z in a?a[z]:1;let E=t.value.toFixed(p(t.unit));return E.indexOf(".")!==-1&&(E=E.replace(/\.?0*$/,"")),E+t.unit},WA=t=>{const p=/^\s*(\d+(?:\.\d+)?)\s*(|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vmin|vmax|%)\s*$/.exec(t);if(p!==null){const E=parseFloat(p[1]),z=p[2];return Wo.value({value:E,unit:z})}else return Wo.error(t)},HP=(t,a)=>{const p={"":96,px:96,pt:72,cm:2.54,pc:12,mm:25.4,in:1},E=z=>pn(p,z);return t.unit===a?P.some(t.value):E(t.unit)&&E(a)?p[t.unit]===p[a]?P.some(t.value):P.some(t.value/p[t.unit]*p[a]):P.none()},gL=t=>P.none(),zP=(t,a)=>p=>HP(p,a).map(E=>({value:E*t,unit:a})),VP=(t,a)=>{const p=WA(t).toOptional(),E=WA(a).toOptional();return jn(p,E,(z,Y)=>HP(z,Y.unit).map(re=>Y.value/re).map(re=>zP(re,Y.unit)).getOr(gL)).getOr(gL)},$G=(t,a)=>{let p=gL;const E=Xr("ratio-event"),z=et=>Gd(et,{tag:"span",classes:["tox-icon","tox-lock-icon__"+et]},a.icons),Y=Of.parts.lock({dom:{tag:"button",classes:["tox-lock","tox-button","tox-button--naked","tox-button--icon"],attributes:{title:a.translate(t.label.getOr("Constrain proportions"))}},components:[z("lock"),z("unlock")],buttonBehaviours:gr([Co.config({disabled:()=>!t.enabled||a.isDisabled()}),Qi(),Ns.config({})])}),re=et=>({dom:{tag:"div",classes:["tox-form__group"]},components:et}),xe=et=>qa.parts.field({factory:sy,inputClasses:["tox-textfield"],inputBehaviours:gr([Co.config({disabled:()=>!t.enabled||a.isDisabled()}),Qi(),Ns.config({}),jo("size-input-events",[Xn(_o(),(st,mt)=>{go(st,E,{isField1:et})}),Xn(Di(),(st,mt)=>{go(st,$u,{name:t.name})})])]),selectOnFocus:!1}),Ee=et=>({dom:{tag:"label",classes:["tox-label"]},components:[ai(a.translate(et))]}),Be=Of.parts.field1(re([qa.parts.label(Ee("Width")),xe(!0)])),je=Of.parts.field2(re([qa.parts.label(Ee("Height")),xe(!1)]));return Of.sketch({dom:{tag:"div",classes:["tox-form__group"]},components:[{dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:[Be,je,re([Ee(Nw),Y])]}],field1Name:"width",field2Name:"height",locked:!0,markers:{lockClass:"tox-locked"},onLockedChange:(et,st,mt)=>{WA(Fr.getValue(et)).each(Mt=>{p(Mt).each(Xt=>{Fr.setValue(st,mL(Xt))})})},coupledFieldBehaviours:gr([Co.config({disabled:()=>!t.enabled||a.isDisabled(),onDisabled:et=>{Of.getField1(et).bind(qa.getField).each(Co.disable),Of.getField2(et).bind(qa.getField).each(Co.disable),Of.getLock(et).each(Co.disable)},onEnabled:et=>{Of.getField1(et).bind(qa.getField).each(Co.enable),Of.getField2(et).bind(qa.getField).each(Co.enable),Of.getLock(et).each(Co.enable)}}),Qi(),jo("size-input-events2",[Xn(E,(et,st)=>{const mt=st.event.isField1,Mt=mt?Of.getField1(et):Of.getField2(et),Xt=mt?Of.getField2(et):Of.getField1(et),Dn=Mt.map(Fr.getValue).getOr(""),hn=Xt.map(Fr.getValue).getOr("");p=VP(Dn,hn)})])])})},UP=(t,a,p)=>{const E=hd.parts.label({dom:{tag:"label",classes:["tox-label"]},components:[ai(a.translate(t.label))]}),z=hd.parts.spectrum({dom:{tag:"div",classes:["tox-slider__rail"],attributes:{role:"presentation"}}}),Y=hd.parts.thumb({dom:{tag:"div",classes:["tox-slider__handle"],attributes:{role:"presentation"}}});return hd.sketch({dom:{tag:"div",classes:["tox-slider"],attributes:{role:"presentation"}},model:{mode:"x",minX:t.min,maxX:t.max,getInitialValue:O(p.getOrThunk(()=>(Math.abs(t.max)-Math.abs(t.min))/2))},components:[E,z,Y],sliderBehaviours:gr([sf.self(),ko.config({})]),onChoose:(re,xe,Ee)=>{go(re,$u,{name:t.name,value:Ee})}})},WP=(t,a)=>{const p=xe=>({dom:{tag:"th",innerHtml:a.translate(xe)}}),E=xe=>({dom:{tag:"thead"},components:[{dom:{tag:"tr"},components:ne(xe,p)}]}),z=xe=>({dom:{tag:"td",innerHtml:a.translate(xe)}}),Y=xe=>({dom:{tag:"tr"},components:ne(xe,z)}),re=xe=>({dom:{tag:"tbody"},components:ne(xe,Y)});return{dom:{tag:"table",classes:["tox-dialog__table"]},components:[E(t.header),re(t.cells)],behaviours:gr([Ns.config({}),ko.config({})])}},GP=(t,a)=>{const p=t.label.map(mt=>fd(mt,a)),E=[Co.config({disabled:()=>t.disabled||a.isDisabled()}),Qi(),po.config({mode:"execution",useEnter:t.multiline!==!0,useControlEnter:t.multiline===!0,execute:mt=>(pa(mt,iS),P.some(!0))}),jo("textfield-change",[Xn(qs(),(mt,Mt)=>{go(mt,$u,{name:t.name})}),Xn(wi(),(mt,Mt)=>{go(mt,$u,{name:t.name})})]),Ns.config({})],z=t.validation.map(mt=>Df.config({getRoot:Mt=>fr(Mt.element),invalidClass:"tox-invalid",validator:{validate:Mt=>{const Xt=Fr.getValue(Mt),Dn=mt.validator(Xt);return cc.pure(Dn===!0?Wo.value(Xt):Wo.error(Dn))},validateOnLoad:mt.validateOnLoad}})).toArray(),Y=t.placeholder.fold(O({}),mt=>({placeholder:a.translate(mt)})),re=t.inputMode.fold(O({}),mt=>({inputmode:mt})),xe={...Y,...re},Ee=qa.parts.field({tag:t.multiline===!0?"textarea":"input",...t.data.map(mt=>({data:mt})).getOr({}),inputAttributes:xe,inputClasses:[t.classname],inputBehaviours:gr(Fe([E,z])),selectOnFocus:!1,factory:sy}),Be=t.multiline?{dom:{tag:"div",classes:["tox-textarea-wrap"]},components:[Ee]}:Ee,et=(t.flex?["tox-form__group--stretched"]:[]).concat(t.maximized?["tox-form-group--maximize"]:[]),st=[Co.config({disabled:()=>t.disabled||a.isDisabled(),onDisabled:mt=>{qa.getField(mt).each(Co.disable)},onEnabled:mt=>{qa.getField(mt).each(Co.enable)}}),Qi()];return aS(p,Be,et,st)},ZP=(t,a,p)=>GP({name:t.name,multiline:!1,label:t.label,inputMode:t.inputMode,placeholder:t.placeholder,flex:!1,disabled:!t.enabled,classname:"tox-textfield",validation:P.none(),maximized:t.maximized,data:p},a),jP=(t,a,p)=>GP({name:t.name,multiline:!0,label:t.label,inputMode:P.none(),placeholder:t.placeholder,flex:!0,disabled:!t.enabled,classname:"tox-textarea",validation:P.none(),maximized:t.maximized,data:p},a),Yx=(t,a)=>a.getAnimationRoot.fold(()=>t.element,p=>p(t)),vp=t=>t.dimension.property,my=(t,a)=>t.dimension.getDimension(a),GA=(t,a)=>{const p=Yx(t,a);Su(p,[a.shrinkingClass,a.growingClass])},ZA=(t,a)=>{Is(t.element,a.openClass),hi(t.element,a.closedClass),To(t.element,vp(a),"0px"),Ks(t.element)},pL=(t,a)=>{Is(t.element,a.closedClass),hi(t.element,a.openClass),Bo(t.element,vp(a))},vL=(t,a,p,E)=>{p.setCollapsed(),To(t.element,vp(a),my(a,t.element)),GA(t,a),ZA(t,a),a.onStartShrink(t),a.onShrunk(t)},OG=(t,a,p,E)=>{const z=E.getOrThunk(()=>my(a,t.element));p.setCollapsed(),To(t.element,vp(a),z),Ks(t.element);const Y=Yx(t,a);Is(Y,a.growingClass),hi(Y,a.shrinkingClass),ZA(t,a),a.onStartShrink(t)},YP=(t,a,p)=>{const E=my(a,t.element);(E==="0px"?vL:OG)(t,a,p,P.some(E))},jA=(t,a,p)=>{const E=Yx(t,a),z=Ni(E,a.shrinkingClass),Y=my(a,t.element);pL(t,a);const re=my(a,t.element);(z?()=>{To(t.element,vp(a),Y),Ks(t.element)}:()=>{ZA(t,a)})(),Is(E,a.shrinkingClass),hi(E,a.growingClass),pL(t,a),To(t.element,vp(a),re),p.setExpanded(),a.onStartGrow(t)},PG=(t,a,p)=>{if(p.isExpanded()){Bo(t.element,vp(a));const E=my(a,t.element);To(t.element,vp(a),E)}},IG=(t,a,p)=>{p.isExpanded()||jA(t,a,p)},NG=(t,a,p)=>{p.isExpanded()&&YP(t,a,p)},KP=(t,a,p)=>{p.isExpanded()&&vL(t,a,p)},FG=(t,a,p)=>p.isExpanded(),XP=(t,a,p)=>p.isCollapsed(),JP=(t,a,p)=>{const E=Yx(t,a);return Ni(E,a.growingClass)===!0},yL=(t,a,p)=>{const E=Yx(t,a);return Ni(E,a.shrinkingClass)===!0};var BG=Object.freeze({__proto__:null,refresh:PG,grow:IG,shrink:NG,immediateShrink:KP,hasGrown:FG,hasShrunk:XP,isGrowing:JP,isShrinking:yL,isTransitioning:(t,a,p)=>JP(t,a)||yL(t,a),toggleGrow:(t,a,p)=>{(p.isExpanded()?YP:jA)(t,a,p)},disableTransitions:GA,immediateGrow:(t,a,p)=>{p.isExpanded()||(pL(t,a),To(t.element,vp(a),my(a,t.element)),GA(t,a),p.setExpanded(),a.onStartGrow(t),a.onGrown(t))}}),zG=Object.freeze({__proto__:null,exhibit:(t,a,p)=>{const E=a.expanded;return qc(E?{classes:[a.openClass],styles:{}}:{classes:[a.closedClass],styles:yt(a.dimension.property,"0px")})},events:(t,a)=>bs([Ed(Ii(),(p,E)=>{E.event.raw.propertyName===t.dimension.property&&(GA(p,t),a.isExpanded()&&Bo(p.element,t.dimension.property),(a.isExpanded()?t.onGrown:t.onShrunk)(p))})])}),QP=[qn("closedClass"),qn("openClass"),qn("shrinkingClass"),qn("growingClass"),Ia("getAnimationRoot"),Sa("onShrunk"),Sa("onStartShrink"),Sa("onGrown"),Sa("onStartGrow"),En("expanded",!1),yc("dimension",fa("property",{width:[rs("property","width"),rs("getDimension",t=>ci(t)+"px")],height:[rs("property","height"),rs("getDimension",t=>Ls(t)+"px")]}))],VG=Object.freeze({__proto__:null,init:t=>{const a=q(t.expanded),p=()=>"expanded: "+a.get();return Qc({isExpanded:()=>a.get()===!0,isCollapsed:()=>a.get()===!1,setCollapsed:M(a.set,!1),setExpanded:M(a.set,!0),readState:p})}});const lf=Ki({fields:QP,name:"sliding",active:zG,apis:BG,state:VG}),bL=t=>({isEnabled:()=>!Co.isDisabled(t),setEnabled:a=>Co.set(t,!a),setActive:a=>{const p=t.element;a?(hi(p,"tox-tbtn--enabled"),Lr(p,"aria-pressed",!0)):(Is(p,"tox-tbtn--enabled"),Xa(p,"aria-pressed"))},isActive:()=>Ni(t.element,"tox-tbtn--enabled"),setText:a=>{go(t,md,{text:a})},setIcon:a=>go(t,r0,{icon:a})}),wS=(t,a,p,E,z=!0)=>UA({text:t.text,icon:t.icon,tooltip:t.tooltip,searchable:t.search.isSome(),role:E,fetch:(Y,re)=>{const xe={pattern:t.search.isSome()?$U(Y):""};t.fetch(Ee=>{re(jx(Ee,Yh.CLOSE_ON_EXECUTE,p,{isHorizontalMenu:!1,search:t.search}))},xe,bL(Y))},onSetup:t.onSetup,getApi:bL,columns:1,presets:"normal",classes:[],dropdownBehaviours:[...z?[Ns.config({})]:[]]},a,p.shared),UG=(t,a,p)=>{const E=Y=>re=>{const xe=!re.isActive();re.setActive(xe),Y.storage.set(xe),p.shared.getSink().each(Ee=>{a().getOpt(Ee).each(Be=>{Ic(Be.element),go(Be,rg,{name:Y.name,value:Y.storage.get()})})})},z=Y=>re=>{re.setActive(Y.storage.get())};return Y=>{Y(ne(t,re=>{const xe=re.text.fold(()=>({}),Ee=>({text:Ee}));return{type:re.type,active:!1,...xe,onAction:E(re),onSetup:z(re)}}))}},qP=t=>({dom:{tag:"span",classes:["tox-tree__label"],attributes:{title:t,"aria-label":t}},components:[ai(t)]}),xL=Xr("leaf-label-event-id"),YA=({leaf:t,onLeafAction:a,visible:p,treeId:E,selectedId:z,backstage:Y})=>{const re=t.menu.map(Ee=>wS(Ee,"tox-mbtn",Y,P.none(),p)),xe=[qP(t.title)];return re.each(Ee=>xe.push(Ee)),hl.sketch({dom:{tag:"div",classes:["tox-tree--leaf__label","tox-trbtn"].concat(p?["tox-tree--leaf__label--visible"]:[])},components:xe,role:"treeitem",action:Ee=>{a(t.id),Ee.getSystem().broadcastOn([`update-active-item-${E}`],{value:t.id})},eventOrder:{[Ca()]:[xL,"keying"]},buttonBehaviours:gr([...p?[Ns.config({})]:[],qo.config({toggleClass:"tox-trbtn--enabled",toggleOnExecute:!1,aria:{mode:"selected"}}),Pc.config({channels:{[`update-active-item-${E}`]:{onReceive:(Ee,Be)=>{(Be.value===t.id?qo.on:qo.off)(Ee)}}}}),jo(xL,[ms((Ee,Be)=>{z.each(je=>{(je===t.id?qo.on:qo.off)(Ee)})}),Xn(Ca(),(Ee,Be)=>{const je=Be.event.raw.code==="ArrowLeft",et=Be.event.raw.code==="ArrowRight";je?(tu(Ee.element,".tox-tree--directory").each(st=>{Ee.getSystem().getByDom(st).each(mt=>{kb(st,".tox-tree--directory__label").each(Mt=>{mt.getSystem().getByDom(Mt).each(ko.focus)})})}),Be.stop()):et&&Be.stop()})])])})},eI=(t,a,p)=>Gd(t,{tag:"span",classes:["tox-tree__icon-wrap","tox-icon"],behaviours:p},a),KA=(t,a)=>eI(t,a,[]),tI=Xr("directory-label-event-id"),WG=({directory:t,visible:a,noChildren:p,backstage:E})=>{const z=t.menu.map(xe=>wS(xe,"tox-mbtn",E,P.none())),Y=[{dom:{tag:"div",classes:["tox-chevron"]},components:[KA("chevron-right",E.shared.providers.icons)]},qP(t.title)];z.each(xe=>{Y.push(xe)});const re=xe=>{tu(xe.element,".tox-tree--directory").each(Ee=>{xe.getSystem().getByDom(Ee).each(Be=>{const je=!qo.isOn(Be);qo.toggle(Be),go(xe,"expand-tree-node",{expanded:je,node:t.id})})})};return hl.sketch({dom:{tag:"div",classes:["tox-tree--directory__label","tox-trbtn"].concat(a?["tox-tree--directory__label--visible"]:[])},components:Y,action:re,eventOrder:{[Ca()]:[tI,"keying"]},buttonBehaviours:gr([...a?[Ns.config({})]:[],jo(tI,[Xn(Ca(),(xe,Ee)=>{const Be=Ee.event.raw.code==="ArrowRight",je=Ee.event.raw.code==="ArrowLeft";Be&&p&&Ee.stop(),(Be||je)&&tu(xe.element,".tox-tree--directory").each(et=>{xe.getSystem().getByDom(et).each(st=>{!qo.isOn(st)&&Be||qo.isOn(st)&&je?(re(xe),Ee.stop()):je&&!qo.isOn(st)&&(tu(st.element,".tox-tree--directory").each(mt=>{kb(mt,".tox-tree--directory__label").each(Mt=>{st.getSystem().getByDom(Mt).each(ko.focus)})}),Ee.stop())})})})])])})},GG=({children:t,onLeafAction:a,visible:p,treeId:E,expandedIds:z,selectedId:Y,backstage:re})=>({dom:{tag:"div",classes:["tox-tree--directory__children"]},components:t.map(xe=>xe.type==="leaf"?YA({leaf:xe,selectedId:Y,onLeafAction:a,visible:p,treeId:E,backstage:re}):XA({directory:xe,expandedIds:z,selectedId:Y,onLeafAction:a,labelTabstopping:p,treeId:E,backstage:re})),behaviours:gr([lf.config({dimension:{property:"height"},closedClass:"tox-tree--directory__children--closed",openClass:"tox-tree--directory__children--open",growingClass:"tox-tree--directory__children--growing",shrinkingClass:"tox-tree--directory__children--shrinking",expanded:p}),Ho.config({})])}),ZG=Xr("directory-event-id"),XA=({directory:t,onLeafAction:a,labelTabstopping:p,treeId:E,backstage:z,expandedIds:Y,selectedId:re})=>{const{children:xe}=t,Ee=q(Y),Be=et=>xe.map(st=>st.type==="leaf"?YA({leaf:st,selectedId:re,onLeafAction:a,visible:et,treeId:E,backstage:z}):XA({directory:st,expandedIds:Ee.get(),selectedId:re,onLeafAction:a,labelTabstopping:et,treeId:E,backstage:z})),je=Y.includes(t.id);return{dom:{tag:"div",classes:["tox-tree--directory"],attributes:{role:"treeitem"}},components:[WG({directory:t,visible:p,noChildren:t.children.length===0,backstage:z}),GG({children:xe,expandedIds:Y,selectedId:re,onLeafAction:a,visible:je,treeId:E,backstage:z})],behaviours:gr([jo(ZG,[ms((et,st)=>{qo.set(et,je)}),Xn("expand-tree-node",(et,st)=>{const{expanded:mt,node:Mt}=st.event;Ee.set(mt?[...Ee.get(),Mt]:Ee.get().filter(Xt=>Xt!==Mt))})]),qo.config({...t.children.length>0?{aria:{mode:"expanded"}}:{},toggleClass:"tox-tree--directory--expanded",onToggled:(et,st)=>{const mt=et.components()[1],Mt=Be(st);st?lf.grow(mt):lf.shrink(mt),Ho.set(mt,Mt)}})])}},jG=Xr("tree-event-id"),YG=(t,a)=>{const p=t.onLeafAction.getOr(C),E=t.onToggleExpand.getOr(C),z=t.defaultExpandedIds,Y=q(z),re=q(t.defaultSelectedId),xe=Xr("tree-id"),Ee=(Be,je)=>t.items.map(et=>et.type==="leaf"?YA({leaf:et,selectedId:Be,onLeafAction:p,visible:!0,treeId:xe,backstage:a}):XA({directory:et,selectedId:Be,onLeafAction:p,expandedIds:je,labelTabstopping:!0,treeId:xe,backstage:a}));return{dom:{tag:"div",classes:["tox-tree"],attributes:{role:"tree"}},components:Ee(re.get(),Y.get()),behaviours:gr([po.config({mode:"flow",selector:".tox-tree--leaf__label--visible, .tox-tree--directory__label--visible",cycles:!1}),jo(jG,[Xn("expand-tree-node",(Be,je)=>{const{expanded:et,node:st}=je.event;Y.set(et?[...Y.get(),st]:Y.get().filter(mt=>mt!==st)),E(Y.get(),{expanded:et,node:st})})]),Pc.config({channels:{[`update-active-item-${xe}`]:{onReceive:(Be,je)=>{re.set(P.some(je.value)),Ho.set(Be,Ee(P.some(je.value),Y.get()))}}}}),Ho.config({})])}};var nI=Object.freeze({__proto__:null,events:(t,a)=>{const E=t.stream.streams.setup(t,a);return bs([Xn(t.event,E),_d(()=>a.cancel())].concat(t.cancelEvent.map(z=>[Xn(z,()=>a.cancel())]).getOr([])))}});const wL=t=>{const a=q(null);return Qc({readState:()=>({timer:a.get()!==null?"set":"unset"}),setTimer:Y=>{a.set(Y)},cancel:()=>{const Y=a.get();Y!==null&&Y.cancel()}})};var KG=Object.freeze({__proto__:null,throttle:wL,init:t=>t.stream.streams.state(t)});const rI=(t,a)=>{const p=t.stream,E=oL(t.onStream,p.delay);return a.setTimer(E),(z,Y)=>{E.throttle(z,Y),p.stopEvent&&Y.stop()}};var XG=[yc("stream",fa("mode",{throttle:[qn("delay"),En("stopEvent",!0),rs("streams",{setup:rI,state:wL})]})),En("event","input"),Ia("cancelEvent"),qf("onStream")];const CL=Ki({fields:XG,name:"streaming",active:nI,state:KG}),Eo=(t,a,p)=>{const E=Fr.getValue(p);Fr.setValue(a,E),SL(a)},Kx=(t,a)=>{const p=t.element,E=Dd(p),z=p.dom;Ka(p,"type")!=="number"&&a(z,E)},SL=t=>{Kx(t,(a,p)=>a.setSelectionRange(p.length,p.length))},oI=(t,a)=>{Kx(t,(p,E)=>p.setSelectionRange(a,E.length))},aI=(t,a,p)=>{if(t.selectsOver){const E=Fr.getValue(a),z=t.getDisplayText(E),Y=Fr.getValue(p);return t.getDisplayText(Y).indexOf(z)===0?P.some(()=>{Eo(t,a,p),oI(a,z.length)}):P.none()}else return P.none()},JA=O("alloy.typeahead.itemexecute"),sI=(t,a,p,E)=>{const z=(et,st,mt)=>{t.previewing.set(!1);const Mt=pi.getCoupled(et,"sandbox");if(va.isOpen(Mt))da.getCurrent(Mt).each(Xt=>{Na.getHighlighted(Xt).fold(()=>{mt(Xt)},()=>{V2(Mt,Xt.element,"keydown",st)})});else{const Xt=Dn=>{da.getCurrent(Dn).each(mt)};hA(t,re(et),et,Mt,E,Xt,zc.HighlightMenuAndItem).get(C)}},Y=A5(t),re=et=>st=>st.map(mt=>{const Mt=Nt(mt.menus),Xt=ie(Mt,hn=>Ce(hn.items,rn=>rn.type==="item"));return Fr.getState(et).update(ne(Xt,hn=>hn.data)),mt}),xe=et=>da.getCurrent(et),Ee="typeaheadevents",Be=[ko.config({}),Fr.config({onSetValue:t.onSetValue,store:{mode:"dataset",getDataKey:et=>Dd(et.element),getFallbackEntry:et=>({value:et,meta:{}}),setValue:(et,st)=>{rv(et.element,t.model.getDisplayText(st))},...t.initialData.map(et=>yt("initialValue",et)).getOr({})}}),CL.config({stream:{mode:"throttle",delay:t.responseTime,stopEvent:!1},onStream:(et,st)=>{const mt=pi.getCoupled(et,"sandbox");if(ko.isFocused(et)&&Dd(et.element).length>=t.minChars){const Xt=xe(mt).bind(hn=>Na.getHighlighted(hn).map(Fr.getValue));t.previewing.set(!0);const Dn=hn=>{xe(mt).each(rn=>{Xt.fold(()=>{t.model.selectsOver&&Na.highlightFirst(rn)},kn=>{Na.highlightBy(rn,Vn=>Fr.getValue(Vn).value===kn.value),Na.getHighlighted(rn).orThunk(()=>(Na.highlightFirst(rn),P.none()))})})};hA(t,re(et),et,mt,E,Dn,zc.HighlightJustMenu).get(C)}},cancelEvent:Th()}),po.config({mode:"special",onDown:(et,st)=>(z(et,st,Na.highlightFirst),P.some(!0)),onEscape:et=>{const st=pi.getCoupled(et,"sandbox");return va.isOpen(st)?(va.close(st),P.some(!0)):P.none()},onUp:(et,st)=>(z(et,st,Na.highlightLast),P.some(!0)),onEnter:et=>{const st=pi.getCoupled(et,"sandbox"),mt=va.isOpen(st);if(mt&&!t.previewing.get())return xe(st).bind(Mt=>Na.getHighlighted(Mt)).map(Mt=>(go(et,JA(),{item:Mt}),!0));{const Mt=Fr.getValue(et);return pa(et,Th()),t.onExecute(st,et,Mt),mt&&va.close(st),P.some(!0)}}}),qo.config({toggleClass:t.markers.openClass,aria:{mode:"expanded"}}),pi.config({others:{sandbox:et=>TR(t,et,{onOpen:()=>qo.on(et),onClose:()=>{t.lazyTypeaheadComp.get().each(st=>Xa(st.element,"aria-activedescendant")),qo.off(et)}})}}),jo(Ee,[ms(et=>{t.lazyTypeaheadComp.set(P.some(et))}),_d(et=>{t.lazyTypeaheadComp.set(P.none())}),xf(et=>{const st=C;SR(t,re(et),et,E,st,zc.HighlightMenuAndItem).get(C)}),Xn(JA(),(et,st)=>{const mt=pi.getCoupled(et,"sandbox");Eo(t.model,et,st.event.item),pa(et,Th()),t.onItemExecute(et,mt,st.event.item,Fr.getValue(et)),va.close(mt),SL(et)})].concat(t.dismissOnBlur?[Xn(Sl(),et=>{const st=pi.getCoupled(et,"sandbox");Sf(st.element).isNone()&&va.close(st)})]:[]))],je={[Sm()]:[Fr.name(),CL.name(),Ee],...t.eventOrder};return{uid:t.uid,dom:Hk(hs(t,{inputAttributes:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true"}})),behaviours:{...Y,...Si(t.typeaheadBehaviours,Be)},eventOrder:je}},Hee=O([Ia("lazySink"),qn("fetch"),En("minChars",5),En("responseTime",1e3),Sa("onOpen"),En("getHotspot",P.some),En("getAnchorOverrides",O({})),En("layouts",P.none()),En("eventOrder",{}),U("model",{},[En("getDisplayText",t=>t.meta!==void 0&&t.meta.text!==void 0?t.meta.text:t.value),En("selectsOver",!0),En("populateFromBrowse",!0)]),Sa("onSetValue"),ru("onExecute"),Sa("onItemExecute"),En("inputClasses",[]),En("inputAttributes",{}),En("inputStyles",{}),En("matchWidth",!0),En("useMinWidth",!1),En("dismissOnBlur",!0),Lm(["openClass"]),Ia("initialData"),Fi("typeaheadBehaviours",[ko,Fr,CL,po,qo,pi]),zs("lazyTypeaheadComp",()=>q(P.none)),zs("previewing",()=>q(!0))].concat(UC()).concat(kR())),CS=O([Af({schema:[c1()],name:"menu",overrides:t=>({fakeFocus:!0,onHighlightItem:(a,p,E)=>{t.previewing.get()?t.lazyTypeaheadComp.get().each(z=>{aI(t.model,z,E).fold(()=>{t.model.selectsOver?(Na.dehighlight(p,E),t.previewing.set(!0)):t.previewing.set(!1)},Y=>{Y(),t.previewing.set(!1)})}):t.lazyTypeaheadComp.get().each(z=>{t.model.populateFromBrowse&&Eo(t.model,z,E),yi(E.element,"id").each(Y=>Lr(z.element,"aria-activedescendant",Y))})},onExecute:(a,p)=>t.lazyTypeaheadComp.get().map(E=>(go(E,JA(),{item:p}),!0)),onHover:(a,p)=>{t.previewing.set(!1),t.lazyTypeaheadComp.get().each(E=>{t.model.populateFromBrowse&&Eo(t.model,E,p)})}})})]),JG=Bl({name:"Typeahead",configFields:Hee(),partFields:CS(),factory:sI}),gd=t=>({...t,toCached:()=>gd(t.toCached()),bindFuture:Ee=>gd(t.bind(Be=>Be.fold(je=>cc.pure(Wo.error(je)),je=>Ee(je)))),bindResult:Ee=>gd(t.map(Be=>Be.bind(Ee))),mapResult:Ee=>gd(t.map(Be=>Be.map(Ee))),mapError:Ee=>gd(t.map(Be=>Be.mapError(Ee))),foldResult:(Ee,Be)=>t.map(je=>je.fold(Ee,Be)),withTimeout:(Ee,Be)=>gd(cc.nu(je=>{let et=!1;const st=setTimeout(()=>{et=!0,je(Wo.error(Be()))},Ee);t.get(mt=>{et||(clearTimeout(st),je(mt))})}))}),iI=t=>gd(cc.nu(t)),lI=t=>gd(cc.pure(Wo.value(t))),eZ={nu:iI,wrap:gd,pure:lI,value:lI,error:t=>gd(cc.pure(Wo.error(t))),fromResult:t=>gd(cc.pure(t)),fromFuture:t=>gd(t.map(Wo.value)),fromPromise:t=>iI(a=>{t.then(p=>{a(Wo.value(p))},p=>{a(Wo.error(p))})})},QA=(t,a,p=[],E,z,Y)=>{const re=a.fold(()=>({}),Be=>({action:Be})),xe={buttonBehaviours:gr([Bi.button(()=>!t.enabled||Y.isDisabled()),Qi(),Ns.config({}),jo("button press",[G2("click"),G2("mousedown")])].concat(p)),eventOrder:{click:["button press","alloy.base.behaviour"],mousedown:["button press","alloy.base.behaviour"]},...re},Ee=hs(xe,{dom:E});return hs(Ee,{components:z})},tZ=(t,a,p,E=[])=>{const z=t.tooltip.map(Ee=>({"aria-label":p.translate(Ee),title:p.translate(Ee)})).getOr({}),Y={tag:"button",classes:["tox-tbtn"],attributes:z},re=t.icon.map(Ee=>VA(Ee,p.icons)),xe=Ox([re]);return QA(t,a,E,Y,xe,p)},TL=t=>{switch(t){case"primary":return["tox-button"];case"toolbar":return["tox-tbtn"];case"secondary":default:return["tox-button","tox-button--secondary"]}},uI=(t,a,p,E=[],z=[])=>{const Y=p.translate(t.text),re=t.icon.map(st=>VA(st,p.icons)),xe=[re.getOrThunk(()=>ai(Y))],Ee=t.buttonType.getOr(!t.primary&&!t.borderless?"secondary":"primary"),et={tag:"button",classes:[...TL(Ee),...re.isSome()?["tox-button--icon"]:[],...t.borderless?["tox-button--naked"]:[],...z],attributes:{title:Y}};return QA(t,a,E,et,xe,p)},kL=(t,a,p,E=[],z=[])=>{const Y=uI(t,P.some(a),p,E,z);return hl.sketch(Y)},fI=(t,a)=>p=>{a==="custom"?go(p,rg,{name:t,value:{}}):a==="submit"?pa(p,iS):a==="cancel"?pa(p,Jv):console.error("Unknown button type: ",a)},nZ=(t,a)=>a==="menu",rZ=(t,a)=>a==="custom"||a==="cancel"||a==="submit",oZ=(t,a)=>a==="togglebutton",aZ=(t,a)=>{var p,E;const z=t.icon.map(rn=>n0(rn,a.icons)).map(Qa),Y=rn=>{go(rn,rg,{name:t.name,value:{setIcon:kn=>{z.map(Vn=>Vn.getOpt(rn).each(hr=>{Ho.set(hr,[n0(kn,a.icons)])}))}}})},re=t.buttonType.getOr(t.primary?"primary":"secondary"),xe={...t,name:(p=t.name)!==null&&p!==void 0?p:"",primary:re==="primary",tooltip:P.from(t.tooltip),enabled:(E=t.enabled)!==null&&E!==void 0?E:!1,borderless:!1},Ee=xe.tooltip.map(rn=>({"aria-label":a.translate(rn),title:a.translate(rn)})).getOr({}),Be=TL(re??"secondary"),je=t.icon.isSome()&&t.text.isSome(),et={tag:"button",classes:[...Be.concat(t.icon.isSome()?["tox-button--icon"]:[]),...t.active?["tox-button--enabled"]:[],...je?["tox-button--icon-and-text"]:[]],attributes:Ee},st=[],mt=a.translate(t.text.getOr("")),Mt=ai(mt),Dn=[...Ox([z.map(rn=>rn.asSpec())]),...t.text.isSome()?[Mt]:[]],hn=QA(xe,P.some(Y),st,et,Dn,a);return hl.sketch(hn)},qA=(t,a,p)=>{if(nZ(t,a)){const E=()=>re,z=t,Y={...t,type:"menubutton",search:P.none(),onSetup:xe=>(xe.setEnabled(t.enabled),C),fetch:UG(z.items,E,p)},re=Qa(wS(Y,"tox-tbtn",p,P.none()));return re.asSpec()}else if(rZ(t,a)){const E=fI(t.name,a),z={...t,borderless:!1};return kL(z,E,p.shared.providers,[])}else{if(oZ(t,a))return aZ(t,p.shared.providers);throw console.error("Unknown footer button type: ",a),new Error("Unknown footer button type")}},sZ=(t,a)=>{const p=fI(t.name,"custom");return nW(P.none(),qa.parts.field({factory:hl,...uI(t,P.some(p),a,[hS(""),sf.self()])}))},iZ={type:"separator"},lZ=t=>({type:"menuitem",value:t.url,text:t.title,meta:{attach:t.attach},onAction:C}),AL=(t,a)=>({type:"menuitem",value:a,text:t,meta:{attach:void 0},onAction:C}),cZ=t=>ne(t,lZ),dI=(t,a)=>Ce(a,p=>p.type===t),hI=(t,a)=>cZ(dI(t,a)),uZ=t=>hI("header",t.targets),fZ=t=>hI("anchor",t.targets),dZ=t=>P.from(t.anchorTop).map(a=>AL("",a)).toArray(),hZ=t=>P.from(t.anchorBottom).map(a=>AL("",a)).toArray(),mZ=t=>ne(t,a=>AL(a,a)),mI=t=>ke(t,(a,p)=>a.length===0||p.length===0?a.concat(p):a.concat(iZ,p),[]),ML=(t,a)=>{const p=t.toLowerCase();return Ce(a,E=>{var z;const Y=E.meta!==void 0&&E.meta.text!==void 0?E.meta.text:E.text,re=(z=E.value)!==null&&z!==void 0?z:"";return it(Y.toLowerCase(),p)||it(re.toLowerCase(),p)})},gI=(t,a,p)=>{var E,z;const Y=Fr.getValue(a),re=(z=(E=Y==null?void 0:Y.meta)===null||E===void 0?void 0:E.text)!==null&&z!==void 0?z:Y.value;return p.getLinkInformation().fold(()=>[],Ee=>{const Be=ML(re,mZ(p.getHistory(t)));return t==="file"?mI([Be,ML(re,uZ(Ee)),ML(re,Fe([dZ(Ee),fZ(Ee),hZ(Ee)]))]):Be})},pI=Xr("aria-invalid"),vI=(t,a,p,E)=>{const z=a.shared.providers,Y=rn=>{const kn=Fr.getValue(rn);p.addToHistory(kn.value,t.filetype)},re={...E.map(rn=>({initialData:rn})).getOr({}),dismissOnBlur:!0,inputClasses:["tox-textfield"],sandboxClasses:["tox-dialog__popups"],inputAttributes:{"aria-errormessage":pI,type:"url"},minChars:0,responseTime:0,fetch:rn=>{const kn=gI(t.filetype,rn,p),Vn=jx(kn,Yh.BUBBLE_TO_SANDBOX,a,{isHorizontalMenu:!1,search:P.none()});return cc.pure(Vn)},getHotspot:rn=>Mt.getOpt(rn),onSetValue:(rn,kn)=>{rn.hasConfigured(Df)&&Df.run(rn).get(C)},typeaheadBehaviours:gr([...p.getValidationHandler().map(rn=>Df.config({getRoot:kn=>fr(kn.element),invalidClass:"tox-control-wrap--status-invalid",notify:{onInvalid:(kn,Vn)=>{je.getOpt(kn).each(hr=>{Lr(hr.element,"title",z.translate(Vn))})}},validator:{validate:kn=>{const Vn=Fr.getValue(kn);return eZ.nu(hr=>{rn({type:t.filetype,url:Vn.value},Yn=>{if(Yn.status==="invalid"){const br=Wo.error(Yn.message);hr(br)}else{const br=Wo.value(Yn.message);hr(br)}})})},validateOnLoad:!1}})).toArray(),Co.config({disabled:()=>!t.enabled||z.isDisabled()}),Ns.config({}),jo("urlinput-events",[Xn(qs(),rn=>{const kn=Dd(rn.element),Vn=kn.trim();Vn!==kn&&rv(rn.element,Vn),t.filetype==="file"&&go(rn,$u,{name:t.name})}),Xn(Di(),rn=>{go(rn,$u,{name:t.name}),Y(rn)}),Xn(wi(),rn=>{go(rn,$u,{name:t.name}),Y(rn)})])]),eventOrder:{[qs()]:["streaming","urlinput-events","invalidating"]},model:{getDisplayText:rn=>rn.value,selectsOver:!1,populateFromBrowse:!1},markers:{openClass:"tox-textfield--popup-open"},lazySink:a.shared.getSink,parts:{menu:Mx(!1,1,"normal")},onExecute:(rn,kn,Vn)=>{go(kn,iS,{})},onItemExecute:(rn,kn,Vn,hr)=>{Y(rn),go(rn,$u,{name:t.name})}},xe=qa.parts.field({...re,factory:JG}),Ee=t.label.map(rn=>fd(rn,z)),je=Qa(((rn,kn,Vn=rn,hr=rn)=>Gd(Vn,{tag:"div",classes:["tox-icon","tox-control-wrap__status-icon-"+rn],attributes:{title:z.translate(hr),"aria-live":"polite",...kn.fold(()=>({}),Yn=>({id:Yn}))}},z.icons))("invalid",P.some(pI),"warning")),et=Qa({dom:{tag:"div",classes:["tox-control-wrap__status-icon-wrap"]},components:[je.asSpec()]}),st=p.getUrlPicker(t.filetype),mt=Xr("browser.url.event"),Mt=Qa({dom:{tag:"div",classes:["tox-control-wrap"]},components:[xe,et.asSpec()],behaviours:gr([Co.config({disabled:()=>!t.enabled||z.isDisabled()})])}),Xt=Qa(kL({name:t.name,icon:P.some("browse"),text:t.picker_text.or(t.label).getOr(""),enabled:t.enabled,primary:!1,buttonType:P.none(),borderless:!0},rn=>pa(rn,mt),z,[],["tox-browse-url"])),Dn=()=>({dom:{tag:"div",classes:["tox-form__controls-h-stack"]},components:Fe([[Mt.asSpec()],st.map(()=>Xt.asSpec()).toArray()])}),hn=rn=>{da.getCurrent(rn).each(kn=>{const Vn=Fr.getValue(kn),hr={fieldname:t.name,...Vn};st.each(Yn=>{Yn(hr).get(br=>{Fr.setValue(kn,br),go(rn,$u,{name:t.name})})})})};return qa.sketch({dom:Mee(),components:Ee.toArray().concat([Dn()]),fieldBehaviours:gr([Co.config({disabled:()=>!t.enabled||z.isDisabled(),onDisabled:rn=>{qa.getField(rn).each(Co.disable),Xt.getOpt(rn).each(Co.disable)},onEnabled:rn=>{qa.getField(rn).each(Co.enable),Xt.getOpt(rn).each(Co.enable)}}),Qi(),jo("url-input-events",[Xn(mt,hn)])])})},yI=(t,a)=>{const p=q_(t.icon,a.icons);return Kh.sketch({dom:{tag:"div",attributes:{role:"alert"},classes:["tox-notification","tox-notification--in",`tox-notification--${t.level}`]},components:[{dom:{tag:"div",classes:["tox-notification__icon"],innerHtml:t.url?void 0:p},components:t.url?[hl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--naked","tox-button--icon"],innerHtml:p,attributes:{title:a.translate(t.iconTooltip)}},action:E=>go(E,rg,{name:"alert-banner",value:t.url}),buttonBehaviours:gr([Ek()])})]:void 0},{dom:{tag:"div",classes:["tox-notification__body"],innerHtml:a.translate(t.text)}}]})},EL=(t,a)=>{t.dom.checked=a},gZ=t=>t.dom.checked,bI=(t,a,p)=>{const E=Ee=>(Ee.element.dom.click(),P.some(!0)),z=qa.parts.field({factory:{sketch:D},dom:{tag:"input",classes:["tox-checkbox__input"],attributes:{type:"checkbox"}},behaviours:gr([sf.self(),Co.config({disabled:()=>!t.enabled||a.isDisabled(),onDisabled:Ee=>{fr(Ee.element).each(Be=>hi(Be,"tox-checkbox--disabled"))},onEnabled:Ee=>{fr(Ee.element).each(Be=>Is(Be,"tox-checkbox--disabled"))}}),Ns.config({}),ko.config({}),rL(p,gZ,EL),po.config({mode:"special",onEnter:E,onSpace:E,stopSpaceKeyup:!0}),jo("checkbox-events",[Xn(Di(),(Ee,Be)=>{go(Ee,$u,{name:t.name})})])])}),Y=qa.parts.label({dom:{tag:"span",classes:["tox-checkbox__label"]},components:[ai(a.translate(t.label))],behaviours:gr([lS.config({})])}),re=Ee=>Gd(Ee==="checked"?"selected":"unselected",{tag:"span",classes:["tox-icon","tox-checkbox-icon__"+Ee]},a.icons),xe=Qa({dom:{tag:"div",classes:["tox-checkbox__icons"]},components:[re("checked"),re("unchecked")]});return qa.sketch({dom:{tag:"label",classes:["tox-checkbox"]},components:[z,xe.asSpec(),Y],fieldBehaviours:gr([Co.config({disabled:()=>!t.enabled||a.isDisabled()}),Qi()])})},xI=t=>t.presets==="presentation"?Kh.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html}}):Kh.sketch({dom:{tag:"div",classes:["tox-form__group"],innerHtml:t.html,attributes:{role:"document"}},containerBehaviours:gr([Ns.config({}),ko.config({})])}),tl=t=>(a,p,E,z)=>Ft(p,"name").fold(()=>t(p,z,P.none()),Y=>a.field(Y,t(p,z,Ft(E,Y)))),wI=t=>(a,p,E,z)=>{const Y=hs(p,{source:"dynamic"});return tl(t)(a,Y,E,z)},pZ={bar:tl((t,a)=>XU(t,a.shared)),collection:tl((t,a,p)=>oW(t,a.shared.providers,p)),alertbanner:tl((t,a)=>yI(t,a.shared.providers)),input:tl((t,a,p)=>ZP(t,a.shared.providers,p)),textarea:tl((t,a,p)=>jP(t,a.shared.providers,p)),label:tl((t,a)=>wG(t,a.shared)),iframe:wI((t,a,p)=>vG(t,a.shared.providers,p)),button:tl((t,a)=>sZ(t,a.shared.providers)),checkbox:tl((t,a,p)=>bI(t,a.shared.providers,p)),colorinput:tl((t,a,p)=>uW(t,a.shared,a.colorinput,p)),colorpicker:tl((t,a,p)=>uG(t,a.shared.providers,p)),dropzone:tl((t,a,p)=>yP(t,a.shared.providers,p)),grid:tl((t,a)=>mG(t,a.shared)),listbox:tl((t,a,p)=>EG(t,a,p)),selectbox:tl((t,a,p)=>LG(t,a.shared.providers,p)),sizeinput:tl((t,a)=>$G(t,a.shared.providers)),slider:tl((t,a,p)=>UP(t,a.shared.providers,p)),urlinput:tl((t,a,p)=>vI(t,a,a.urlinput,p)),customeditor:tl(vP),htmlpanel:tl(xI),imagepreview:tl((t,a,p)=>xG(t,p)),table:tl((t,a)=>WP(t,a.shared.providers)),tree:tl((t,a)=>YG(t,a)),panel:tl((t,a)=>fL(t,a))},vZ={field:(t,a)=>a,record:O([])},qd=(t,a,p,E)=>{const z=hs(E,{shared:{interpreter:Y=>Xx(t,Y,p,z)}});return Xx(t,a,p,z)},Xx=(t,a,p,E)=>Ft(pZ,a.type).fold(()=>(console.error(`Unknown factory type "${a.type}", defaulting to container: `,a),a),z=>z(t,a,p,E)),SS=(t,a,p)=>Xx(vZ,t,a,p),o0="layout-inset",TS=t=>t.x,CI=(t,a)=>t.x+t.width/2-a.width/2,kS=(t,a)=>t.x+t.width-a.width,eM=t=>t.y,AS=(t,a)=>t.y+t.height-a.height,SI=(t,a)=>t.y+t.height/2-a.height/2,MS=(t,a,p)=>Zi(kS(t,a),AS(t,a),p.insetSouthwest(),Pd(),"southwest",Ds(t,{right:0,bottom:3}),o0),ES=(t,a,p)=>Zi(TS(t),AS(t,a),p.insetSoutheast(),_b(),"southeast",Ds(t,{left:1,bottom:3}),o0),gy=(t,a,p)=>Zi(kS(t,a),eM(t),p.insetNorthwest(),uw(),"northwest",Ds(t,{right:0,top:2}),o0),_S=(t,a,p)=>Zi(TS(t),eM(t),p.insetNortheast(),f1(),"northeast",Ds(t,{left:1,top:2}),o0),eh=(t,a,p)=>Zi(CI(t,a),eM(t),p.insetNorth(),Dh(),"north",Ds(t,{top:2}),o0),Jx=(t,a,p)=>Zi(CI(t,a),AS(t,a),p.insetSouth(),a4(),"south",Ds(t,{bottom:3}),o0),TI=(t,a,p)=>Zi(kS(t,a),SI(t,a),p.insetEast(),d1(),"east",Ds(t,{right:0}),o0),kI=(t,a,p)=>Zi(TS(t),SI(t,a),p.insetWest(),In(),"west",Ds(t,{left:1}),o0),AI=t=>{switch(t){case"north":return eh;case"northeast":return _S;case"northwest":return gy;case"south":return Jx;case"southeast":return ES;case"southwest":return MS;case"east":return TI;case"west":return kI}},_L=(t,a,p,E,z)=>iT(E).map(AI).getOr(eh)(t,a,p,E,z),yZ=t=>{switch(t){case"north":return Jx;case"northeast":return ES;case"northwest":return MS;case"south":return eh;case"southeast":return _S;case"southwest":return gy;case"east":return kI;case"west":return TI}},bZ=(t,a,p,E,z)=>iT(E).map(yZ).getOr(eh)(t,a,p,E,z),RS={valignCentre:[],alignCentre:[],alignLeft:[],alignRight:[],right:[],left:[],bottom:[],top:[]},xZ=(t,a,p)=>{const z={maxHeightFunction:pv()},Y=()=>({type:"node",root:Fa(Yo(t())),node:P.from(t()),bubble:Nd(12,12,RS),layouts:{onRtl:()=>[_S],onLtr:()=>[gy]},overrides:z}),re=()=>({type:"hotspot",hotspot:a(),bubble:Nd(-12,12,RS),layouts:{onRtl:()=>[ji,Ml,Yi],onLtr:()=>[Ml,ji,Yi]},overrides:z});return()=>p()?Y():re()},MI=(t,a,p,E)=>{const Y={maxHeightFunction:pv()},re=()=>({type:"node",root:Fa(Yo(a())),node:P.from(a()),bubble:Nd(12,12,RS),layouts:{onRtl:()=>[eh],onLtr:()=>[eh]},overrides:Y}),xe=()=>t?{type:"node",root:Fa(Yo(a())),node:P.from(a()),bubble:Nd(0,-cu(a()),RS),layouts:{onRtl:()=>[oc],onLtr:()=>[oc]},overrides:Y}:{type:"hotspot",hotspot:p(),bubble:Nd(0,0,RS),layouts:{onRtl:()=>[oc],onLtr:()=>[oc]},overrides:Y};return()=>E()?re():xe()},Xh=(t,a,p)=>{const E=()=>({type:"node",root:Fa(Yo(t())),node:P.from(t()),layouts:{onRtl:()=>[eh],onLtr:()=>[eh]}}),z=()=>({type:"hotspot",hotspot:a(),layouts:{onRtl:()=>[Yi],onLtr:()=>[Yi]}});return()=>p()?E():z()},RL=(t,a)=>()=>({type:"selection",root:a(),getSelection:()=>{const p=t.selection.getRng(),E=t.model.table.getSelectedCells();if(E.length>1){const z=E[0],Y=E[E.length-1],re={firstCell:zt.fromDom(z),lastCell:zt.fromDom(Y)};return P.some(re)}return P.some(fl.range(zt.fromDom(p.startContainer),p.startOffset,zt.fromDom(p.endContainer),p.endOffset))}}),wZ=t=>a=>({type:"node",root:t(),node:a}),CZ=(t,a,p,E)=>{const z=kx(t),Y=()=>zt.fromDom(t.getBody()),re=()=>zt.fromDom(t.getContentAreaContainer()),xe=()=>z||!E();return{inlineDialog:xZ(re,a,xe),inlineBottomDialog:MI(t.inline,re,p,xe),banner:Xh(re,a,xe),cursor:RL(t,Y),node:wZ(Y)}},SZ=t=>(a,p)=>{oO(t)(a,p)},TZ=t=>()=>Q7(t),kZ=t=>a=>lA(t,a),EI=t=>a=>J7(t,a),_I=t=>({colorPicker:SZ(t),hasCustomColors:TZ(t),getColors:kZ(t),getColorCols:EI(t)}),Vee=t=>()=>u5(t),Uee=t=>({isDraggableModal:Vee(t)}),uc=t=>{const a=q(g5(t)?"bottom":"top");return{isPositionedAtTop:()=>a.get()==="top",getDockingMode:a.get,setDockingMode:a.set}},tM=t=>_n(t,"items"),RI=t=>_n(t,"format"),LS=[{title:"Headings",items:[{title:"Heading 1",format:"h1"},{title:"Heading 2",format:"h2"},{title:"Heading 3",format:"h3"},{title:"Heading 4",format:"h4"},{title:"Heading 5",format:"h5"},{title:"Heading 6",format:"h6"}]},{title:"Inline",items:[{title:"Bold",format:"bold"},{title:"Italic",format:"italic"},{title:"Underline",format:"underline"},{title:"Strikethrough",format:"strikethrough"},{title:"Superscript",format:"superscript"},{title:"Subscript",format:"subscript"},{title:"Code",format:"code"}]},{title:"Blocks",items:[{title:"Paragraph",format:"p"},{title:"Blockquote",format:"blockquote"},{title:"Div",format:"div"},{title:"Pre",format:"pre"}]},{title:"Align",items:[{title:"Left",format:"alignleft"},{title:"Center",format:"aligncenter"},{title:"Right",format:"alignright"},{title:"Justify",format:"alignjustify"}]}],AZ=t=>pn(t,"items"),MZ=t=>pn(t,"block"),EZ=t=>pn(t,"inline"),_Z=t=>pn(t,"selector"),LI=t=>ke(t,(a,p)=>{if(AZ(p)){const E=LI(p.items);return{customFormats:a.customFormats.concat(E.customFormats),formats:a.formats.concat([{title:p.title,items:E.formats}])}}else if(EZ(p)||MZ(p)||_Z(p)){const z=`custom-${A(p.name)?p.name:p.title.toLowerCase()}`;return{customFormats:a.customFormats.concat([{name:z,format:p}]),formats:a.formats.concat([{title:p.title,format:z,icon:p.icon}])}}else return{...a,formats:a.formats.concat(p)}},{customFormats:[],formats:[]}),RZ=(t,a)=>{const p=LI(a),E=z=>{fe(z,Y=>{t.formatter.has(Y.name)||t.formatter.register(Y.name,Y.format)})};return t.formatter?E(p.customFormats):t.on("init",()=>{E(p.customFormats)}),p.formats},DI=t=>b8(t).map(a=>{const p=RZ(t,a);return x8(t)?LS.concat(p):p}).getOr(LS),LZ=t=>{const a=ot(t);return a.length===1&&he(a,"title")},LL=(t,a,p)=>({...t,type:"formatter",isSelected:a(t.format),getStylePreview:p(t.format)}),DS=(t,a,p,E)=>{const z=Ee=>LL(Ee,p,E),Y=Ee=>{const Be=xe(Ee.items);return{...Ee,type:"submenu",getStyleItems:O(Be)}},re=Ee=>{const Be=A(Ee.name)?Ee.name:Xr(Ee.title),je=`custom-${Be}`,et={...Ee,type:"formatter",format:je,isSelected:p(je),getStylePreview:E(je)};return t.formatter.register(Be,et),et},xe=Ee=>ne(Ee,Be=>tM(Be)?Y(Be):RI(Be)?z(Be):LZ(Be)?{...Be,type:"separator"}:re(Be));return xe(a)},DZ=t=>{const a=xe=>()=>t.formatter.match(xe),p=xe=>()=>{const Ee=t.formatter.get(xe);return Ee!==void 0?P.some({tag:Ee.length>0&&(Ee[0].inline||Ee[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(xe))}):P.none()},E=q([]),z=q([]),Y=q(!1);return t.on("PreInit",xe=>{const Ee=DI(t),Be=DS(t,Ee,a,p);E.set(Be)}),t.on("addStyleModifications",xe=>{const Ee=DS(t,xe.items,a,p);z.set(Ee),Y.set(xe.replace)}),{getData:()=>{const xe=Y.get()?[]:E.get(),Ee=z.get();return xe.concat(Ee)}}},$I=t=>d(t)&&t.nodeType===1,$Z=ig.trim,DL=t=>a=>!!($I(a)&&(a.contentEditable===t||a.getAttribute("data-mce-contenteditable")===t)),OZ=DL("true"),PZ=DL("false"),$L=(t,a,p,E,z)=>({type:t,title:a,url:p,level:E,attach:z}),Wee=t=>{let a=t;for(;a=a.parentNode;){const p=a.contentEditable;if(p&&p!=="inherit")return OZ(a)}return!1},Gee=(t,a)=>ne(Xi(zt.fromDom(a),t),p=>p.dom),OI=t=>t.innerText||t.textContent,IZ=t=>t.id?t.id:Xr("h"),NZ=t=>t&&t.nodeName==="A"&&(t.id||t.name)!==void 0,PI=t=>NZ(t)&&II(t),nM=t=>t&&/^(H[1-6])$/.test(t.nodeName),II=t=>Wee(t)&&!PZ(t),FZ=t=>nM(t)&&II(t),NI=t=>nM(t)?parseInt(t.nodeName.substr(1),10):0,BZ=t=>{var a;const p=IZ(t),E=()=>{t.id=p};return $L("header",(a=OI(t))!==null&&a!==void 0?a:"","#"+p,NI(t),E)},HZ=t=>{const a=t.id||t.name,p=OI(t);return $L("anchor",p||"#"+a,"#"+a,0,C)},zZ=t=>ne(Ce(t,FZ),BZ),VZ=t=>ne(Ce(t,PI),HZ),OL=t=>Gee("h1,h2,h3,h4,h5,h6,a:not([href])",t),FI=t=>$Z(t.title).length>0,UZ={find:t=>{const a=OL(t);return Ce(zZ(a).concat(VZ(a)),FI)}},rM="tinymce-url-history",BI=5,PL=t=>A(t)&&/^https?/.test(t),WZ=t=>h(t)&&t.length<=BI&&we(t,PL),$S=t=>s(t)&&Yt(t,a=>!WZ(a)).isNone(),HI=()=>{const t=Yv.getItem(rM);if(t===null)return{};let a;try{a=JSON.parse(t)}catch(p){if(p instanceof SyntaxError)return console.log("Local storage "+rM+" was not valid JSON",p),{};throw p}return $S(a)?a:(console.log("Local storage "+rM+" was not valid format",a),{})},oM=t=>{if(!$S(t))throw new Error(`Bad format for history: -`+JSON.stringify(t));Yv.setItem(rM,JSON.stringify(t))},GZ=t=>{const a=HI();return Ft(a,t).getOr([])},IL=(t,a)=>{if(!PL(t))return;const p=HI(),E=Ft(p,a).getOr([]),z=Ce(E,Y=>Y!==t);p[a]=[t].concat(z).slice(0,BI),oM(p)},Qx=t=>!!t,zI=t=>Xe(ig.makeMap(t,/[, ]/),Qx),NL=t=>P.from(k8(t)),VI=t=>{const a=P.from(l5(t)).filter(Qx).map(zI);return NL(t).fold(H,p=>a.fold(j,E=>ot(E).length>0?E:!1))},UI=(t,a)=>{const p=VI(t);return c(p)?p?NL(t):P.none():p[a]?NL(t):P.none()},WI=(t,a)=>UI(t,a).map(p=>E=>cc.nu(z=>{const Y=(xe,Ee)=>{if(!A(xe))throw new Error("Expected value to be string");if(Ee!==void 0&&!s(Ee))throw new Error("Expected meta to be a object");z({value:xe,meta:Ee})},re={filetype:a,fieldname:E.fieldname,...P.from(E.meta).getOr({})};p.call(t,Y,E.value,re)})),GI=t=>P.from(t).filter(A).getOrUndefined(),FL=t=>c5(t)?P.some({targets:UZ.find(t.getBody()),anchorTop:GI($k(t)),anchorBottom:GI(M8(t))}):P.none(),aM=t=>P.from(i5(t)),ZZ=t=>({getHistory:GZ,addToHistory:IL,getLinkInformation:()=>FL(t),getValidationHandler:()=>aM(t),getUrlPicker:a=>WI(t,a)}),jZ=(t,a,p,E)=>{const z=q(!1),Y=uc(a),re={icons:()=>a.ui.registry.getAll().icons,menuItems:()=>a.ui.registry.getAll().menuItems,translate:_f.translate,isDisabled:()=>a.mode.isReadOnly()||!a.ui.isEnabled(),getOption:a.options.get},xe=ZZ(a),Ee=DZ(a),Be=_I(a),je=Uee(a),et=()=>z.get(),st=Dn=>z.set(Dn),mt={shared:{providers:re,anchors:CZ(a,p,E,Y.isPositionedAtTop),header:Y},urlinput:xe,styles:Ee,colorinput:Be,dialog:je,isContextMenuOpen:et,setContextMenuState:st},Mt={...mt,shared:{...mt.shared,interpreter:Dn=>SS(Dn,{},Mt),getSink:t.popup}},Xt={...mt,shared:{...mt.shared,interpreter:Dn=>SS(Dn,{},Xt),getSink:t.dialog}};return{popup:Mt,dialog:Xt}},qx=(t,a,p)=>{const E=(Yn,br)=>{fe([a,...p],Mr=>{Mr.broadcastEvent(Yn,br)})},z=(Yn,br)=>{fe([a,...p],Mr=>{Mr.broadcastOn([Yn],br)})},Y=Yn=>z(rd(),{target:Yn.target}),re=Pp(),xe=sc(re,"touchstart",Y),Ee=sc(re,"touchmove",Yn=>E(Q0(),Yn)),Be=sc(re,"touchend",Yn=>E(ob(),Yn)),je=sc(re,"mousedown",Y),et=sc(re,"mouseup",Yn=>{Yn.raw.button===0&&z(eC(),{target:Yn.target})}),st=Yn=>z(rd(),{target:zt.fromDom(Yn.target)}),mt=Yn=>{Yn.button===0&&z(eC(),{target:zt.fromDom(Yn.target)})},Mt=()=>{fe(t.editorManager.get(),Yn=>{t!==Yn&&Yn.dispatch("DismissPopups",{relatedTarget:t})})},Xt=Yn=>E(Md(),_w(Yn)),Dn=Yn=>{z(tp(),{}),E(Xf(),_w(Yn))},hn=Yo(zt.fromDom(t.getElement())),rn=Pb(hn,"scroll",Yn=>{requestAnimationFrame(()=>{const br=t.getContainer();if(br!=null){const ea=Xv(t,a.element).map(Zr=>[Zr.element,...Zr.others]).getOr([]);ge(ea,Zr=>Qt(Zr,Yn.target))&&(t.dispatch("ElementScroll",{target:Yn.target.dom}),E(sb(),Yn))}})}),kn=()=>z(tp(),{}),Vn=Yn=>{Yn.state&&z(rd(),{target:zt.fromDom(t.getContainer())})},hr=Yn=>{z(rd(),{target:zt.fromDom(Yn.relatedTarget.getContainer())})};t.on("PostRender",()=>{t.on("click",st),t.on("tap",st),t.on("mouseup",mt),t.on("mousedown",Mt),t.on("ScrollWindow",Xt),t.on("ResizeWindow",Dn),t.on("ResizeEditor",kn),t.on("AfterProgressState",Vn),t.on("DismissPopups",hr)}),t.on("remove",()=>{t.off("click",st),t.off("tap",st),t.off("mouseup",mt),t.off("mousedown",Mt),t.off("ScrollWindow",Xt),t.off("ResizeWindow",Dn),t.off("ResizeEditor",kn),t.off("AfterProgressState",Vn),t.off("DismissPopups",hr),je.unbind(),xe.unbind(),Ee.unbind(),Be.unbind(),et.unbind(),rn.unbind()}),t.on("detach",()=>{fe([a,...p],_v),fe([a,...p],Yn=>Yn.destroy())})},nl=i_,cg=YT,ZI=O([En("shell",!1),qn("makeItem"),En("setupItem",C),nf.field("listBehaviours",[Ho])]),BL=Fc({name:"items",overrides:()=>({behaviours:gr([Ho.config({})])})}),YZ=O([BL]),KZ=O("CustomList"),XZ=(t,a,p,E)=>{const z=(xe,Ee)=>{re(xe).fold(()=>{throw console.error("Custom List was defined to not be a shell, but no item container was specified in components"),new Error("Custom List was defined to not be a shell, but no item container was specified in components")},Be=>{const je=Ho.contents(Be),et=Ee.length,st=et-je.length,mt=st>0?Se(st,()=>t.makeItem()):[],Mt=je.slice(et);fe(Mt,Dn=>Ho.remove(Be,Dn)),fe(mt,Dn=>Ho.append(Be,Dn));const Xt=Ho.contents(Be);fe(Xt,(Dn,hn)=>{t.setupItem(xe,Dn,Ee[hn],hn)})})},Y=t.shell?{behaviours:[Ho.config({})],components:[]}:{behaviours:[],components:a},re=xe=>t.shell?P.some(xe):gs(xe,t,"items");return{uid:t.uid,dom:t.dom,components:Y.components,behaviours:Si(t.listBehaviours,Y.behaviours),apis:{setItems:z}}},sM=Bl({name:KZ(),configFields:ZI(),partFields:YZ(),factory:XZ,apis:{setItems:(t,a,p)=>{t.setItems(a,p)}}}),e2=O([qn("dom"),En("shell",!0),Fi("toolbarBehaviours",[Ho])]),JZ=O([Fc({name:"groups",overrides:()=>({behaviours:gr([Ho.config({})])})})]),QZ=(t,a,p,E)=>{const z=(xe,Ee)=>{Y(xe).fold(()=>{throw console.error("Toolbar was defined to not be a shell, but no groups container was specified in components"),new Error("Toolbar was defined to not be a shell, but no groups container was specified in components")},Be=>{Ho.set(Be,Ee)})},Y=xe=>t.shell?P.some(xe):gs(xe,t,"groups"),re=t.shell?{behaviours:[Ho.config({})],components:[]}:{behaviours:[],components:a};return{uid:t.uid,dom:t.dom,components:re.components,behaviours:Si(t.toolbarBehaviours,re.behaviours),apis:{setGroups:z,refresh:C},domModification:{attributes:{role:"group"}}}},Jh=Bl({name:"Toolbar",configFields:e2(),partFields:JZ(),factory:QZ,apis:{setGroups:(t,a,p)=>{t.setGroups(a,p)}}}),qZ=C,ej=H,HL=O([]);var tj=Object.freeze({__proto__:null,setup:qZ,isDocked:ej,getBehaviours:HL});const py=t=>(sn(Rs(t,"position"),"fixed")?P.none():ar(t)).orThunk(()=>{const E=zt.fromTag("span");return Bn(t).bind(z=>{pc(z,E);const Y=ar(E);return Xl(E),Y})}),YI=t=>py(t).map(al).getOrThunk(()=>Ma(0,0)),nj=(t,a)=>{const p=t.element;hi(p,a.transitionClass),Is(p,a.fadeOutClass),hi(p,a.fadeInClass),a.onShow(t)},zL=(t,a)=>{const p=t.element;hi(p,a.transitionClass),Is(p,a.fadeInClass),hi(p,a.fadeOutClass),a.onHide(t)},KI=(t,a)=>t.ya.y,XI=(t,a)=>t.y>=a.y,JI=(t,a)=>t.bottom<=a.bottom,VL=(t,a,p)=>({location:"top",leftX:a,topY:p.bounds.y-t.y}),UL=(t,a,p)=>({location:"bottom",leftX:a,bottomY:t.bottom-p.bounds.bottom}),WL=t=>t.box.x-t.win.x,rj=(t,a,p)=>{const E=a.win,z=a.box,Y=WL(a);return We(t,re=>{switch(re){case"bottom":return JI(z,p.bounds)?P.none():P.some(UL(E,Y,p));case"top":return XI(z,p.bounds)?P.none():P.some(VL(E,Y,p));default:return P.none()}}).getOr({location:"no-dock"})},oj=(t,a,p)=>we(t,E=>{switch(E){case"bottom":return JI(a,p.bounds);case"top":return XI(a,p.bounds)}}),aj=(t,a)=>{const p=a.optScrollEnv.fold(O(t.bounds.y),E=>E.scrollElmTop+(t.bounds.y-E.currentScrollTop));return Ma(t.bounds.x,p)},sj=(t,a)=>{const p=a.optScrollEnv.fold(O(t.y),E=>t.y+E.currentScrollTop-E.scrollElmTop);return Ma(t.x,p)},QI=(t,a,p)=>p.getInitialPos().map(E=>{const z=aj(E,a);return{box:Hs(z.left,z.top,ci(t),Ls(t)),location:E.location}}),qI=(t,a,p,E,z)=>{const Y=sj(a,p),re=Hs(Y.left,Y.top,a.width,a.height);E.setInitialPos({style:Es(t),position:Ms(t,"position")||"static",bounds:re,location:z.location})},e9=(t,a,p,E,z)=>{E.getInitialPos().fold(()=>qI(t,a,p,E,z),()=>C)},GL=(t,a,p)=>p.getInitialPos().bind(E=>{var z;switch(p.clearInitialPos(),E.position){case"static":return P.some({morph:"static"});case"absolute":const Y=py(t).getOr(ss()),re=Js(Y),xe=(z=Y.dom.scrollTop)!==null&&z!==void 0?z:0;return P.some({morph:"absolute",positionCss:Au("absolute",Ft(E.style,"left").map(Ee=>a.x-re.x),Ft(E.style,"top").map(Ee=>a.y-re.y+xe),Ft(E.style,"right").map(Ee=>re.right-a.right),Ft(E.style,"bottom").map(Ee=>re.bottom-a.bottom))});default:return P.none()}}),iM=(t,a,p)=>QI(t,a,p).filter(({box:E})=>oj(p.getModes(),E,a)).bind(({box:E})=>GL(t,E,p)),lM=t=>{switch(t.location){case"top":return P.some({morph:"fixed",positionCss:Au("fixed",P.some(t.leftX),P.some(t.topY),P.none(),P.none())});case"bottom":return P.some({morph:"fixed",positionCss:Au("fixed",P.some(t.leftX),P.none(),P.none(),P.some(t.bottomY))});default:return P.none()}},ij=(t,a,p)=>{const E=Js(t),z=bl(),Y=rj(p.getModes(),{win:z,box:E},a);return Y.location==="top"||Y.location==="bottom"?(qI(t,E,a,p,Y),lM(Y)):P.none()},lj=(t,a,p)=>iM(t,a,p).orThunk(()=>a.optScrollEnv.bind(E=>QI(t,a,p)).bind(({box:E,location:z})=>{const Y=bl(),re=WL({win:Y,box:E}),xe=z==="top"?VL(Y,re,a):UL(Y,re,a);return lM(xe)})),cj=(t,a,p)=>{const E=t.element;return sn(Rs(E,"position"),"fixed")?lj(E,a,p):ij(E,a,p)},uj=(t,a,p)=>{const E=t.element;return QI(E,a,p).bind(({box:z})=>GL(E,z,p))},fj=(t,a,p,E)=>{const z=Js(t),Y=bl(),re=WL({win:Y,box:z}),xe=E(Y,re,a);return xe.location==="bottom"||xe.location==="top"?(e9(t,z,a,p,xe),lM(xe)):P.none()},t9=(t,a,p)=>{p.setDocked(!1),fe(["left","right","top","bottom","position"],E=>Bo(t.element,E)),a.onUndocked(t)},ZL=(t,a,p,E)=>{const z=E.position==="fixed";p.setDocked(z),aT(t.element,E),(z?a.onDocked:a.onUndocked)(t)},jL=(t,a,p,E,z=!1)=>{a.contextual.each(Y=>{Y.lazyContext(t).each(re=>{const xe=KI(re,E.bounds);xe!==p.isVisible()&&(p.setVisible(xe),z&&!xe?(Us(t.element,[Y.fadeOutClass]),Y.onHide(t)):(xe?nj:zL)(t,Y))})})},YL=(t,a,p,E,z)=>{jL(t,a,p,E,!0),ZL(t,a,p,z.positionCss)},dj=(t,a,p,E,z)=>{switch(z.morph){case"static":return t9(t,a,p);case"absolute":return ZL(t,a,p,z.positionCss);case"fixed":return YL(t,a,p,E,z)}},n9=(t,a,p)=>{const E=a.lazyViewport(t);jL(t,a,p,E),cj(t,E,p).each(z=>{dj(t,a,p,E,z)})},hj=(t,a,p)=>{const E=t.element;p.setDocked(!1);const z=a.lazyViewport(t);uj(t,z,p).each(Y=>{switch(Y.morph){case"static":{t9(t,a,p);break}case"absolute":{ZL(t,a,p,Y.positionCss);break}}}),p.setVisible(!0),a.contextual.each(Y=>{Su(E,[Y.fadeInClass,Y.fadeOutClass,Y.transitionClass]),Y.onShow(t)}),cM(t,a,p)},cM=(t,a,p)=>{t.getSystem().isConnected()&&n9(t,a,p)},r9=(t,a,p)=>{p.isDocked()&&hj(t,a,p)},a0=t=>(a,p,E)=>{const z=p.lazyViewport(a);fj(a.element,z,E,t).each(re=>{YL(a,p,E,z,re)})},o9=a0(VL),OS=a0(UL);var a9=Object.freeze({__proto__:null,refresh:cM,reset:r9,isDocked:(t,a,p)=>p.isDocked(),getModes:(t,a,p)=>p.getModes(),setModes:(t,a,p,E)=>p.setModes(E),forceDockToTop:o9,forceDockToBottom:OS}),pj=Object.freeze({__proto__:null,events:(t,a)=>bs([Ed(Ii(),(p,E)=>{t.contextual.each(z=>{Ni(p.element,z.transitionClass)&&(Su(p.element,[z.transitionClass,z.fadeInClass]),(a.isVisible()?z.onShown:z.onHidden)(p)),E.stop()})}),Xn(Md(),(p,E)=>{cM(p,t,a)}),Xn(sb(),(p,E)=>{cM(p,t,a)}),Xn(Xf(),(p,E)=>{r9(p,t,a)})])}),vj=[Ql("contextual",[Da("fadeInClass"),Da("fadeOutClass"),Da("transitionClass"),bu("lazyContext"),Sa("onShow"),Sa("onShown"),Sa("onHide"),Sa("onHidden")]),bi("lazyViewport",()=>({bounds:bl(),optScrollEnv:P.none()})),ec("modes",["top","bottom"],Ui),Sa("onDocked"),Sa("onUndocked")],yj=Object.freeze({__proto__:null,init:t=>{const a=q(!1),p=q(!0),E=ia(),z=q(t.modes),Y=()=>`docked: ${a.get()}, visible: ${p.get()}, modes: ${z.get().join(",")}`;return Qc({isDocked:a.get,setDocked:a.set,getInitialPos:E.get,setInitialPos:E.set,clearInitialPos:E.clear,isVisible:p.get,setVisible:p.set,getModes:z.get,setModes:z.set,readState:Y})}});const Ti=Ki({fields:vj,name:"docking",active:pj,apis:a9,state:yj}),s0=O(Xr("toolbar-height-change")),Pf={fadeInClass:"tox-editor-dock-fadein",fadeOutClass:"tox-editor-dock-fadeout",transitionClass:"tox-editor-dock-transition"},uM="tox-tinymce--toolbar-sticky-on",s9="tox-tinymce--toolbar-sticky-off",bj=(t,a)=>{const p=Sn(a),z=Qn(a).dom.innerHeight,Y=ll(p),re=zt.fromDom(t.elm),xe=Xc(re),Ee=Ls(re),Be=xe.y,je=Be+Ee,et=al(a),st=Ls(a),mt=et.top,Mt=mt+st,Xt=Math.abs(mt-Y.top)<2,Dn=Math.abs(Mt-(Y.top+z))<2;if(Xt&&Bemt){const hn=Be-z+Ee+st;mu(Y.left,hn,p)}},t2=(t,a)=>he(Ti.getModes(t),a),XL=t=>{const a=E=>cu(E)+(parseInt(Ms(E,"margin-top"),10)||0)+(parseInt(Ms(E,"margin-bottom"),10)||0),p=t.element;fr(p).each(E=>{const z="padding-"+Ti.getModes(t)[0];if(Ti.isDocked(t)){const Y=ci(E);To(p,"width",Y+"px"),To(E,z,a(p)+"px")}else Bo(p,"width"),Bo(E,z)})},n2=(t,a)=>{a?(Is(t,Pf.fadeOutClass),Us(t,[Pf.transitionClass,Pf.fadeInClass])):(Is(t,Pf.fadeInClass),Us(t,[Pf.fadeOutClass,Pf.transitionClass]))},JL=(t,a)=>{const p=zt.fromDom(t.getContainer());a?(hi(p,uM),Is(p,s9)):(hi(p,s9),Is(p,uM))},xj=(t,a)=>{const p=Sn(a);Id(p).filter(E=>!Qt(a,E)).filter(E=>Qt(E,zt.fromDom(p.dom.body))||nn(t,E)).each(()=>Ic(a))},wj=(t,a)=>Sf(t).orThunk(()=>a().toOptional().bind(p=>Sf(p.element))),Cj=(t,a,p)=>{t.inline||(a.header.isPositionedAtTop()||t.on("ResizeEditor",()=>{p().each(Ti.reset)}),t.on("ResizeWindow ResizeEditor",()=>{p().each(XL)}),t.on("SkinLoaded",()=>{p().each(E=>{Ti.isDocked(E)?Ti.reset(E):Ti.refresh(E)})}),t.on("FullscreenStateChanged",()=>{p().each(Ti.reset)})),t.on("AfterScrollIntoView",E=>{p().each(z=>{Ti.refresh(z);const Y=z.element;mx(Y)&&bj(E,Y)})}),t.on("PostRender",()=>{JL(t,!1)})},Sj=t=>t().map(Ti.isDocked).getOr(!1),Tj=()=>[Pc.config({channels:{[s0()]:{onReceive:XL}}})],i9=(t,a)=>{const p=ia(),E=a.getSink,z=xe=>{E().each(Ee=>xe(Ee.element))},Y=xe=>{t.inline||XL(xe),JL(t,Ti.isDocked(xe)),xe.getSystem().broadcastOn([tp()],{}),E().each(Ee=>Ee.getSystem().broadcastOn([tp()],{}))},re=t.inline?[]:Tj();return[ko.config({}),Ti.config({contextual:{lazyContext:xe=>{const Ee=cu(xe.element),Be=t.inline?t.getContentAreaContainer():t.getContainer();return P.from(Be).map(je=>{const et=Js(zt.fromDom(je));return Xv(t,xe.element).fold(()=>{const mt=et.height-Ee,Mt=et.y+(t2(xe,"top")?0:Ee);return Hs(et.x,Mt,et.width,mt)},mt=>{const Mt=H0(et,Fx(mt)),Xt=t2(xe,"top")?Mt.y:Mt.y+Ee;return Hs(Mt.x,Xt,Mt.width,Mt.height-Ee)})})},onShow:()=>{z(xe=>n2(xe,!0))},onShown:xe=>{z(Ee=>Su(Ee,[Pf.transitionClass,Pf.fadeInClass])),p.get().each(Ee=>{xj(xe.element,Ee),p.clear()})},onHide:xe=>{wj(xe.element,E).fold(p.clear,p.set),z(Ee=>n2(Ee,!1))},onHidden:()=>{z(xe=>Su(xe,[Pf.transitionClass]))},...Pf},lazyViewport:xe=>Xv(t,xe.element).fold(()=>{const Be=bl(),je=Lk(t),et=Be.y+(t2(xe,"top")?je:0),st=Be.height-(t2(xe,"bottom")?je:0);return{bounds:Hs(Be.x,et,Be.width,st),optScrollEnv:P.none()}},Be=>({bounds:Fx(Be),optScrollEnv:P.some({currentScrollTop:Be.element.dom.scrollTop,scrollElmTop:al(Be.element).top})})),modes:[a.header.getDockingMode()],onDocked:Y,onUndocked:Y}),...re]};var l9=Object.freeze({__proto__:null,setup:Cj,isDocked:Sj,getBehaviours:i9});const c9=t=>{const a=t.editor,p=t.sticky?i9:HL;return{uid:t.uid,dom:t.dom,components:t.components,behaviours:gr(p(a,t.sharedBackstage))}},QL=io([Oi,yc("items",Gr([Wf([$5,Ol("items",Ui)]),Ui]))].concat(Dx)),kj=t=>ns("GroupToolbarButton",QL,t),fM=[Gi("text"),Gi("tooltip"),Gi("icon"),ql("search",!1,Gr([Ju,io([Gi("placeholder")])],t=>c(t)?t?P.some({placeholder:P.none()}):P.none():P.some(t))),bu("fetch"),bi("onSetup",()=>C)],PS=io([Oi,...fM]),qL=t=>ns("menubutton",PS,t),Aj=io([Oi,GC,Rf,Qm,I5,Q8,Gv,bc("presets","normal",["normal","color","listpreview"]),t7(1),Rx,sV]),Mj=t=>ns("SplitButton",Aj,t);var eD=ou({factory:(t,a)=>{const p=(z,Y)=>{const re=ne(Y,xe=>{const Ee={type:"menubutton",text:xe.text,fetch:je=>{je(xe.getItems())}},Be=qL(Ee).mapError(je=>wl(je)).getOrDie();return wS(Be,"tox-mbtn",a.backstage,P.some("menuitem"))});Ho.set(z,re)},E={focus:po.focusIn,setMenus:p};return{uid:t.uid,dom:t.dom,components:[],behaviours:gr([Ho.config({}),jo("menubar-events",[ms(z=>{t.onSetup(z)}),Xn($r(),(z,Y)=>{mi(z.element,".tox-mbtn--active").each(re=>{Qf(Y.event.target,".tox-mbtn").each(xe=>{Qt(re,xe)||z.getSystem().getByDom(re).each(Ee=>{z.getSystem().getByDom(xe).each(Be=>{ud.expand(Be),ud.close(Ee),ko.focus(Be)})})})})}),Xn(ab(),(z,Y)=>{Y.event.prevFocus.bind(re=>z.getSystem().getByDom(re).toOptional()).each(re=>{Y.event.newFocus.bind(xe=>z.getSystem().getByDom(xe).toOptional()).each(xe=>{ud.isOpen(re)&&(ud.expand(xe),ud.close(re))})})})]),po.config({mode:"flow",selector:".tox-mbtn",onEscape:z=>(t.onEscape(z),P.some(!0))}),Ns.config({})]),apis:E,domModification:{attributes:{role:"menubar"}}}},name:"silver.Menubar",configFields:[qn("dom"),qn("uid"),qn("onEscape"),qn("backstage"),En("onSetup",C)],apis:{focus:(t,a)=>{t.focus(a)},setMenus:(t,a,p)=>{t.setMenus(a,p)}}});const tD="⚡️Upgrade",nD="https://www.tiny.cloud/tinymce-self-hosted-premium-features/?utm_source=TinyMCE&utm_medium=SPAP&utm_campaign=SPAP&utm_id=editorreferral",Ej=t=>({uid:t.uid,dom:t.dom,components:[{dom:{tag:"a",attributes:{href:nD,rel:"noopener",target:"_blank","aria-hidden":"true"},classes:["tox-promotion-link"],innerHtml:tD}}]}),dM="container",_j=[Fi("slotBehaviours",[])],u9=t=>"",Rj=t=>{const a=(()=>{const Y=[];return{slot:(xe,Ee)=>(Y.push(xe),iC(dM,u9(xe),Ee)),record:O(Y)}})(),p=t(a),E=a.record(),z=ne(E,Y=>Fl({name:Y,pname:u9(Y)}));return mC(dM,_j,z,Lj,p)},Lj=(t,a)=>{const p=Xt=>uC(t),E=(Xt,Dn)=>gs(Xt,t,Dn),z=(Xt,Dn)=>(hn,rn)=>gs(hn,t,rn).map(kn=>Xt(kn,rn)).getOr(Dn),Y=Xt=>(Dn,hn)=>{fe(hn,rn=>Xt(Dn,rn))},re=(Xt,Dn)=>Ka(Xt.element,"aria-hidden")!=="true",xe=(Xt,Dn)=>{if(!re(Xt)){const hn=Xt.element;Bo(hn,"display"),Xa(hn,"aria-hidden"),go(Xt,q0(),{name:Dn,visible:!0})}},Ee=(Xt,Dn)=>{if(re(Xt)){const hn=Xt.element;To(hn,"display","none"),Lr(hn,"aria-hidden","true"),go(Xt,q0(),{name:Dn,visible:!1})}},Be=z(re,!1),je=z(Ee),et=Y(je),st=Xt=>et(Xt,p()),mt=z(xe),Mt={getSlotNames:p,getSlot:E,isShowing:Be,hideSlot:je,hideAllSlots:st,showSlot:mt};return{uid:t.uid,dom:t.dom,components:a,behaviours:Bh(t.slotBehaviours),apis:Mt}},Uc={...Xe({getSlotNames:(t,a)=>t.getSlotNames(a),getSlot:(t,a,p)=>t.getSlot(a,p),isShowing:(t,a,p)=>t.isShowing(a,p),hideSlot:(t,a,p)=>t.hideSlot(a,p),hideAllSlots:(t,a)=>t.hideAllSlots(a),showSlot:(t,a,p)=>t.showSlot(a,p)},t=>Ug(t)),sketch:Rj},Jee=io([Rf,GC,bi("onShow",C),bi("onHide",C),Gv]),f9=t=>ns("sidebar",Jee,t),Dj=t=>{const{sidebars:a}=t.ui.registry.getAll();fe(ot(a),p=>{const E=a[p],z=()=>sn(P.from(t.queryCommandValue("ToggleSidebar")),p);t.ui.registry.addToggleButton(p,{icon:E.icon,tooltip:E.tooltip,onAction:Y=>{t.execCommand("ToggleSidebar",!1,p),Y.setActive(z())},onSetup:Y=>{Y.setActive(z());const re=()=>Y.setActive(z());return t.on("ToggleSidebar",re),()=>{t.off("ToggleSidebar",re)}}})})},d9=t=>({element:()=>t.element.dom}),$j=(t,a)=>{const p=ne(ot(a),E=>{const z=a[E],Y=Ja(f9(z));return{name:E,getApi:d9,onSetup:Y.onSetup,onShow:Y.onShow,onHide:Y.onHide}});return ne(p,E=>{const z=q(C);return t.slot(E.name,{dom:{tag:"div",classes:["tox-sidebar__pane"]},behaviours:YC.unnamedEvents([Zv(E,z),eg(E,z),Xn(q0(),(Y,re)=>{const xe=re.event;Ve(p,Be=>Be.name===xe.name).each(Be=>{(xe.visible?Be.onShow:Be.onHide)(Be.getApi(Y))})})])})})},Oj=t=>Uc.sketch(a=>({dom:{tag:"div",classes:["tox-sidebar__pane-container"]},components:$j(a,t),slotBehaviours:YC.unnamedEvents([ms(p=>Uc.hideAllSlots(p))])})),Pj=(t,a,p)=>{da.getCurrent(t).each(z=>{Ho.set(z,[Oj(a)]);const Y=p==null?void 0:p.toLowerCase();A(Y)&&pn(a,Y)&&da.getCurrent(z).each(re=>{Uc.showSlot(re,Y),lf.immediateGrow(z),Bo(z.element,"width"),hM(t.element,"region")})})},hM=(t,a)=>{Lr(t,"role",a)},Ij=(t,a)=>{da.getCurrent(t).each(E=>{da.getCurrent(E).each(Y=>{lf.hasGrown(E)?Uc.isShowing(Y,a)?(lf.shrink(E),hM(t.element,"presentation")):(Uc.hideAllSlots(Y),Uc.showSlot(Y,a),hM(t.element,"region")):(Uc.hideAllSlots(Y),Uc.showSlot(Y,a),lf.grow(E),hM(t.element,"region"))})})},h9=t=>da.getCurrent(t).bind(p=>lf.isGrowing(p)||lf.hasGrown(p)?da.getCurrent(p).bind(Y=>Ve(Uc.getSlotNames(Y),re=>Uc.isShowing(Y,re))):P.none()),rD=Xr("FixSizeEvent"),oD=Xr("AutoSizeEvent"),Nj=t=>({uid:t.uid,dom:{tag:"div",classes:["tox-sidebar"],attributes:{role:"presentation"}},components:[{dom:{tag:"div",classes:["tox-sidebar__slider"]},components:[],behaviours:gr([Ns.config({}),ko.config({}),lf.config({dimension:{property:"width"},closedClass:"tox-sidebar--sliding-closed",openClass:"tox-sidebar--sliding-open",shrinkingClass:"tox-sidebar--sliding-shrinking",growingClass:"tox-sidebar--sliding-growing",onShrunk:a=>{da.getCurrent(a).each(Uc.hideAllSlots),pa(a,oD)},onGrown:a=>{pa(a,oD)},onStartGrow:a=>{go(a,rD,{width:Rs(a.element,"width").getOr("")})},onStartShrink:a=>{go(a,rD,{width:ci(a.element)+"px"})}}),Ho.config({}),da.config({find:a=>{const p=Ho.contents(a);return Me(p)}})])}],behaviours:gr([sf.childAt(0),jo("sidebar-sliding-events",[Xn(rD,(a,p)=>{To(a.element,"width",p.event.width)}),Xn(oD,(a,p)=>{Bo(a.element,"width")})])])});var m9=Object.freeze({__proto__:null,block:(t,a,p,E)=>{Lr(t.element,"aria-busy",!0);const z=a.getRoot(t).getOr(t),Y=gr([po.config({mode:"special",onTab:()=>P.some(!0),onShiftTab:()=>P.some(!0)}),ko.config({})]),re=E(z,Y),xe=z.getSystem().build(re);Ho.append(z,Tu(xe)),xe.hasConfigured(po)&&a.focus&&po.focusIn(xe),p.isBlocked()||a.onBlock(t),p.blockWith(()=>Ho.remove(z,xe))},unblock:(t,a,p)=>{Xa(t.element,"aria-busy"),p.isBlocked()&&a.onUnblock(t),p.clear()},isBlocked:(t,a,p)=>p.isBlocked()}),Bj=[bi("getRoot",P.none),Li("focus",!0),Sa("onBlock"),Sa("onUnblock")],If=Object.freeze({__proto__:null,init:()=>{const t=y4(),a=p=>{t.set({destroy:p})};return Qc({readState:t.isSet,blockWith:a,clear:t.clear,isBlocked:t.isSet})}});const Qh=Ki({fields:Bj,name:"blocking",apis:m9,state:If}),g9=t=>(a,p)=>({dom:{tag:"div",attributes:{"aria-label":t.translate("Loading..."),tabindex:"0"},classes:["tox-throbber__busy-spinner"]},components:[{dom:cp('
    ')}]}),aD=t=>da.getCurrent(t).each(a=>Ic(a.element,!0)),Hj=(t,a)=>{const p="tabindex",E=`data-mce-${p}`;P.from(t.iframeElement).map(zt.fromDom).each(z=>{a?(yi(z,p).each(Y=>Lr(z,E,Y)),Lr(z,p,-1)):(Xa(z,p),yi(z,E).each(Y=>{Lr(z,p,Y),Xa(z,E)}))})},IS=(t,a,p,E)=>{const z=a.element;if(Hj(t,p),p)Qh.block(a,g9(E)),Bo(z,"display"),Xa(z,"aria-hidden"),t.hasFocus()&&aD(a);else{const Y=da.getCurrent(a).exists(re=>p1(re.element));Qh.unblock(a),To(z,"display","none"),Lr(z,"aria-hidden","true"),Y&&t.focus()}},zj=t=>({uid:t.uid,dom:{tag:"div",attributes:{"aria-hidden":"true"},classes:["tox-throbber"],styles:{display:"none"}},behaviours:gr([Ho.config({}),Qh.config({focus:!1}),da.config({find:a=>Me(a.components())})]),components:[]}),mM=t=>t.type==="focusin",Vj=t=>mM(t)?(t.composed?Me(t.composedPath()):P.from(t.target)).map(zt.fromDom).filter(St).exists(p=>Ni(p,"mce-pastebin")):!1,gM=(t,a,p)=>{const E=q(!1),z=ia(),Y=xe=>{E.get()&&!Vj(xe)&&(xe.preventDefault(),aD(a()),t.editorManager.setActive(t))};t.inline||t.on("PreInit",()=>{t.dom.bind(t.getWin(),"focusin",Y),t.on("BeforeExecCommand",xe=>{xe.command.toLowerCase()==="mcefocus"&&xe.value!==!0&&Y(xe)})});const re=xe=>{xe!==E.get()&&(E.set(xe),IS(t,a(),xe,p.providers),U7(t,xe))};t.on("ProgressState",xe=>{if(z.on(clearTimeout),v(xe.time)){const Ee=ty.setEditorTimeout(t,()=>re(xe.state),xe.time);z.set(Ee)}else re(xe.state),z.clear()})},Uj=(t,a)=>ke(t,(z,Y)=>a(Y,z.len).fold(O(z),xe=>({len:xe.finish,list:z.list.concat([xe])})),{len:0,list:[]}).list,sD=(t,a,p)=>({within:t,extra:a,withinWidth:p}),Nf=(t,a,p)=>{const E=Uj(t,(xe,Ee)=>{const Be=p(xe);return P.some({element:xe,start:Ee,finish:Ee+Be,width:Be})}),z=Ce(E,xe=>xe.finish<=a),Y=$e(z,(xe,Ee)=>xe+Ee.width,0),re=E.slice(z.length);return{within:z,extra:re,withinWidth:Y}},pM=t=>ne(t,a=>a.element),vM=(t,a,p)=>{const E=pM(t.concat(a));return sD(E,[],p)},p9=(t,a,p,E)=>{const z=pM(t).concat([p]);return sD(z,pM(a),E)},v9=(t,a,p)=>sD(pM(t),[],p),Wj=(t,a,p)=>{const E=Nf(a,t,p);return E.extra.length===0?P.some(E):P.none()},y9=(t,a,p,E)=>{const z=Wj(t,a,p).getOrThunk(()=>Nf(a,t-p(E),p)),Y=z.within,re=z.extra,xe=z.withinWidth;return re.length===1&&re[0].width<=p(E)?vM(Y,re,xe):re.length>=1?p9(Y,re,E,xe):v9(Y,re,xe)},b9=(t,a)=>{const p=ne(a,E=>Tu(E));Jh.setGroups(t,p)},Gj=t=>We(t,a=>Sf(a.element).bind(p=>a.getSystem().getByDom(p).toOptional())),x9=(t,a,p)=>{const E=a.builtGroups.get();if(E.length===0)return;const z=zh(t,a,"primary"),Y=pi.getCoupled(t,"overflowGroup");To(z.element,"visibility","hidden");const re=E.concat([Y]),xe=Gj(re);p([]),b9(z,re);const Ee=ci(z.element),Be=y9(Ee,a.builtGroups.get(),je=>ci(je.element),Y);Be.extra.length===0?(Ho.remove(z,Y),p([])):(b9(z,Be.within),p(Be.extra)),Bo(z.element,"visibility"),Ks(z.element),xe.each(ko.focus)},w9=O([Fi("splitToolbarBehaviours",[pi]),zs("builtGroups",()=>q([]))]),Zj=O([Lm(["overflowToggledClass"]),pf("getOverflowBounds"),qn("lazySink"),zs("overflowGroups",()=>q([])),Sa("onOpened"),Sa("onClosed")].concat(w9())),jj=O([Fl({factory:Jh,schema:e2(),name:"primary"}),Af({schema:e2(),name:"overflow"}),Af({name:"overflow-button"}),Af({name:"overflow-group"})]),iD=O((t,a)=>{P2(t,Math.floor(a))}),C9=O([Lm(["toggledClass"]),qn("lazySink"),bu("fetch"),pf("getBounds"),Ql("fireDismissalEventInstead",[En("event",Tm())]),Om(),Sa("onToggled")]),S9=O([Af({name:"button",overrides:t=>({dom:{attributes:{"aria-haspopup":"true"}},buttonBehaviours:gr([qo.config({toggleClass:t.markers.toggledClass,aria:{mode:"expanded"},toggleOnExecute:!1,onToggled:t.onToggled})])})}),Af({factory:Jh,schema:e2(),name:"toolbar",overrides:t=>({toolbarBehaviours:gr([po.config({mode:"cyclic",onEscape:a=>(gs(a,t,"button").each(ko.focus),P.none())})])})})]),NS=ia(),Yj=(t,a)=>{NS.set(!0),lD(t,a),NS.clear()},lD=(t,a)=>{const p=pi.getCoupled(t,"toolbarSandbox");va.isOpen(p)?va.close(p):va.open(p,a.toolbar())},yM=(t,a,p,E)=>{const z=p.getBounds.map(re=>re()),Y=p.lazySink(t).getOrDie();Nl.positionWithinBounds(Y,a,{anchor:{type:"hotspot",hotspot:t,layouts:E,overrides:{maxWidthFunction:iD()}}},z)},cD=(t,a,p,E,z)=>{Jh.setGroups(a,z),yM(t,a,p,E),qo.on(t)},T9=(t,a,p)=>{const E=Zg(),z=(re,xe)=>{const Ee=NS.get().getOr(!1);p.fetch().get(Be=>{cD(t,xe,p,a.layouts,Be),E.link(t.element),Ee||po.focusIn(xe)})},Y=()=>{qo.off(t),NS.get().getOr(!1)||ko.focus(t),E.unlink(t.element)};return{dom:{tag:"div",attributes:{id:E.id}},behaviours:gr([po.config({mode:"special",onEscape:re=>(va.close(re),P.some(!0))}),va.config({onOpen:z,onClose:Y,isPartOf:(re,xe,Ee)=>Lh(xe,Ee)||Lh(t,Ee),getAttachPoint:()=>p.lazySink(t).getOrDie()}),Pc.config({channels:{...$1({isExtraPart:H,...p.fireDismissalEventInstead.map(re=>({fireEventInstead:{event:re.event}})).getOr({})}),...Rv({doReposition:()=>{va.getState(pi.getCoupled(t,"toolbarSandbox")).each(re=>{yM(t,re,p,a.layouts)})}})}})])}},i0=Bl({name:"FloatingToolbarButton",factory:(t,a,p,E)=>({...hl.sketch({...E.button(),action:z=>{lD(z,E)},buttonBehaviours:nf.augment({dump:E.button().buttonBehaviours},[pi.config({others:{toolbarSandbox:z=>T9(z,p,t)}})])}),apis:{setGroups:(z,Y)=>{va.getState(pi.getCoupled(z,"toolbarSandbox")).each(re=>{cD(z,re,t,p.layouts,Y)})},reposition:z=>{va.getState(pi.getCoupled(z,"toolbarSandbox")).each(Y=>{yM(z,Y,t,p.layouts)})},toggle:z=>{lD(z,E)},toggleWithoutFocusing:z=>{Yj(z,E)},getToolbar:z=>va.getState(pi.getCoupled(z,"toolbarSandbox")),isOpen:z=>va.isOpen(pi.getCoupled(z,"toolbarSandbox"))}}),configFields:C9(),partFields:S9(),apis:{setGroups:(t,a,p)=>{t.setGroups(a,p)},reposition:(t,a)=>{t.reposition(a)},toggle:(t,a)=>{t.toggle(a)},toggleWithoutFocusing:(t,a)=>{t.toggleWithoutFocusing(a)},getToolbar:(t,a)=>t.getToolbar(a),isOpen:(t,a)=>t.isOpen(a)}}),Kj=O([qn("items"),Lm(["itemSelector"]),Fi("tgroupBehaviours",[po])]),k9=O([V1({name:"items",unit:"item"})]),Xj=(t,a,p,E)=>({uid:t.uid,dom:t.dom,components:a,behaviours:Si(t.tgroupBehaviours,[po.config({mode:"flow",selector:t.markers.itemSelector})]),domModification:{attributes:{role:"toolbar"}}}),bM=Bl({name:"ToolbarGroup",configFields:Kj(),partFields:k9(),factory:Xj}),A9=t=>ne(t,a=>Tu(a)),M9=(t,a,p)=>{x9(t,p,E=>{p.overflowGroups.set(E),a.getOpt(t).each(z=>{i0.setGroups(z,A9(E))})})},Jj=(t,a,p,E)=>{const z=Qa(i0.sketch({fetch:()=>cc.nu(Y=>{Y(A9(t.overflowGroups.get()))}),layouts:{onLtr:()=>[Ml,ji],onRtl:()=>[ji,Ml],onBottomLtr:()=>[Il,Cc],onBottomRtl:()=>[Cc,Il]},getBounds:p.getOverflowBounds,lazySink:t.lazySink,fireDismissalEventInstead:{},markers:{toggledClass:t.markers.overflowToggledClass},parts:{button:E["overflow-button"](),toolbar:E.overflow()},onToggled:(Y,re)=>t[re?"onOpened":"onClosed"](Y)}));return{uid:t.uid,dom:t.dom,components:a,behaviours:Si(t.splitToolbarBehaviours,[pi.config({others:{overflowGroup:()=>bM.sketch({...E["overflow-group"](),items:[z.asSpec()]})}})]),apis:{setGroups:(Y,re)=>{t.builtGroups.set(ne(re,Y.getSystem().build)),M9(Y,z,t)},refresh:Y=>M9(Y,z,t),toggle:Y=>{z.getOpt(Y).each(re=>{i0.toggle(re)})},toggleWithoutFocusing:Y=>{z.getOpt(Y).each(i0.toggleWithoutFocusing)},isOpen:Y=>z.getOpt(Y).map(i0.isOpen).getOr(!1),reposition:Y=>{z.getOpt(Y).each(re=>{i0.reposition(re)})},getOverflow:Y=>z.getOpt(Y).bind(i0.getToolbar)},domModification:{attributes:{role:"group"}}}},E9=Bl({name:"SplitFloatingToolbar",configFields:Zj(),partFields:jj(),factory:Jj,apis:{setGroups:(t,a,p)=>{t.setGroups(a,p)},refresh:(t,a)=>{t.refresh(a)},reposition:(t,a)=>{t.reposition(a)},toggle:(t,a)=>{t.toggle(a)},toggleWithoutFocusing:(t,a)=>{t.toggle(a)},isOpen:(t,a)=>t.isOpen(a),getOverflow:(t,a)=>t.getOverflow(a)}}),Qj=O([Lm(["closedClass","openClass","shrinkingClass","growingClass","overflowToggledClass"]),Sa("onOpened"),Sa("onClosed")].concat(w9())),qj=O([Fl({factory:Jh,schema:e2(),name:"primary"}),Fl({factory:Jh,schema:e2(),name:"overflow",overrides:t=>({toolbarBehaviours:gr([lf.config({dimension:{property:"height"},closedClass:t.markers.closedClass,openClass:t.markers.openClass,shrinkingClass:t.markers.shrinkingClass,growingClass:t.markers.growingClass,onShrunk:a=>{gs(a,t,"overflow-button").each(p=>{qo.off(p),ko.focus(p)}),t.onClosed(a)},onGrown:a=>{po.focusIn(a),t.onOpened(a)},onStartGrow:a=>{gs(a,t,"overflow-button").each(qo.on)}}),po.config({mode:"acyclic",onEscape:a=>(gs(a,t,"overflow-button").each(ko.focus),P.some(!0))})])})}),Af({name:"overflow-button",overrides:t=>({buttonBehaviours:gr([qo.config({toggleClass:t.markers.overflowToggledClass,aria:{mode:"pressed"},toggleOnExecute:!1})])})}),Af({name:"overflow-group"})]),eY=(t,a)=>gs(t,a,"overflow").map(lf.hasGrown).getOr(!1),_9=(t,a)=>{gs(t,a,"overflow-button").bind(()=>gs(t,a,"overflow")).each(p=>{xM(t,a),lf.toggleGrow(p)})},xM=(t,a)=>{gs(t,a,"overflow").each(p=>{x9(t,a,E=>{const z=ne(E,Y=>Tu(Y));Jh.setGroups(p,z)}),gs(t,a,"overflow-button").each(E=>{lf.hasGrown(p)&&qo.on(E)}),lf.refresh(p)})},tY=(t,a,p,E)=>{const z="alloy.toolbar.toggle",Y=(re,xe)=>{const Ee=ne(xe,re.getSystem().build);t.builtGroups.set(Ee)};return{uid:t.uid,dom:t.dom,components:a,behaviours:Si(t.splitToolbarBehaviours,[pi.config({others:{overflowGroup:re=>bM.sketch({...E["overflow-group"](),items:[hl.sketch({...E["overflow-button"](),action:xe=>{pa(re,z)}})]})}}),jo("toolbar-toggle-events",[Xn(z,re=>{_9(re,t)})])]),apis:{setGroups:(re,xe)=>{Y(re,xe),xM(re,t)},refresh:re=>xM(re,t),toggle:re=>_9(re,t),isOpen:re=>eY(re,t)},domModification:{attributes:{role:"group"}}}},uD=Bl({name:"SplitSlidingToolbar",configFields:Qj(),partFields:qj(),factory:tY,apis:{setGroups:(t,a,p)=>{t.setGroups(a,p)},refresh:(t,a)=>{t.refresh(a)},toggle:(t,a)=>{t.toggle(a)},isOpen:(t,a)=>t.isOpen(a)}}),wM=t=>{const a=t.title.fold(()=>({}),p=>({attributes:{title:p}}));return{dom:{tag:"div",classes:["tox-toolbar__group"],...a},components:[bM.parts.items({})],items:t.items,markers:{itemSelector:"*:not(.tox-split-button) > .tox-tbtn:not([disabled]), .tox-split-button:not([disabled]), .tox-toolbar-nav-js:not([disabled]), .tox-number-input:not([disabled])"},tgroupBehaviours:gr([Ns.config({}),ko.config({})])}},CM=t=>bM.sketch(wM(t)),FS=(t,a)=>{const p=ms(E=>{const z=ne(t.initGroups,CM);Jh.setGroups(E,z)});return gr([Bi.toolbarButton(t.providers.isDisabled),Qi(),po.config({mode:a,onEscape:t.onEscape,selector:".tox-toolbar__group"}),jo("toolbar-events",[p])])},R9=t=>{const a=t.cyclicKeying?"cyclic":"acyclic";return{uid:t.uid,dom:{tag:"div",classes:["tox-toolbar-overlord"]},parts:{"overflow-group":wM({title:P.none(),items:[]}),"overflow-button":tZ({name:"more",icon:P.some("more-drawer"),enabled:!0,tooltip:P.some("Reveal or hide additional toolbar items"),primary:!1,buttonType:P.none(),borderless:!1},P.none(),t.providers)},splitToolbarBehaviours:FS(t,a)}},L9=t=>{const a=R9(t),p=4,E=E9.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}});return E9.sketch({...a,lazySink:t.getSink,getOverflowBounds:()=>{const z=t.moreDrawerData.lazyHeader().element,Y=Xc(z),re=gn(z),xe=Xc(re),Ee=Math.max(re.dom.scrollHeight,xe.height);return Hs(Y.x+p,xe.y,Y.width-p*2,Ee)},parts:{...a.parts,overflow:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:t.attributes}}},components:[E],markers:{overflowToggledClass:"tox-tbtn--enabled"},onOpened:z=>t.onToggled(z,!0),onClosed:z=>t.onToggled(z,!1)})},nY=t=>{const a=uD.parts.primary({dom:{tag:"div",classes:["tox-toolbar__primary"]}}),p=uD.parts.overflow({dom:{tag:"div",classes:["tox-toolbar__overflow"]}}),E=R9(t);return uD.sketch({...E,components:[a,p],markers:{openClass:"tox-toolbar__overflow--open",closedClass:"tox-toolbar__overflow--closed",growingClass:"tox-toolbar__overflow--growing",shrinkingClass:"tox-toolbar__overflow--shrinking",overflowToggledClass:"tox-tbtn--enabled"},onOpened:z=>{z.getSystem().broadcastOn([s0()],{type:"opened"}),t.onToggled(z,!0)},onClosed:z=>{z.getSystem().broadcastOn([s0()],{type:"closed"}),t.onToggled(z,!1)}})},SM=t=>{const a=t.cyclicKeying?"cyclic":"acyclic";return Jh.sketch({uid:t.uid,dom:{tag:"div",classes:["tox-toolbar"].concat(t.type===af.scrolling?["tox-toolbar--scrolling"]:[])},components:[Jh.parts.groups({})],toolbarBehaviours:FS(t,a)})},rY=[Qm,Rf,Gi("tooltip"),bc("buttonType","secondary",["primary","secondary"]),Li("borderless",!1),bu("onAction")],oY=[...rY,dp,Qu("type",["button"])],aY=[...rY,Li("active",!1),Qu("type",["togglebutton"])],TM={button:oY,togglebutton:aY},sY=[Qu("type",["group"]),ec("buttons",[],fa("type",TM))],kM=fa("type",{...TM,group:sY}),D9=io([ec("buttons",[],kM),bu("onShow"),bu("onHide")]),$9=t=>ns("view",D9,t),fD=(t,a)=>{var p,E;const z=t.type==="togglebutton",Y=t.icon.map(kn=>n0(kn,a.icons)).map(Qa),xe=(()=>kn=>{const Vn=br=>{Y.map(Mr=>Mr.getOpt(kn).each(ea=>{Ho.set(ea,[n0(br,a.icons)])}))},hr=br=>{const Mr=kn.element;br?(hi(Mr,"tox-button--enabled"),Lr(Mr,"aria-pressed",!0)):(Is(Mr,"tox-button--enabled"),Xa(Mr,"aria-pressed"))},Yn=()=>Ni(kn.element,"tox-button--enabled");if(z)return t.onAction({setIcon:Vn,setActive:hr,isActive:Yn});if(t.type==="button")return t.onAction({setIcon:Vn})})(),Ee={...t,name:z?t.text.getOr(t.icon.getOr("")):(p=t.text)!==null&&p!==void 0?p:t.icon.getOr(""),primary:t.buttonType==="primary",buttonType:P.from(t.buttonType),tooltip:t.tooltip,icon:t.icon,enabled:!0,borderless:t.borderless},Be=TL((E=t.buttonType)!==null&&E!==void 0?E:"secondary"),je=z?t.text.map(a.translate):P.some(a.translate(t.text)),et=je.map(ai),st=Ee.tooltip.or(je).map(kn=>({"aria-label":a.translate(kn),title:a.translate(kn)})).getOr({}),mt=Y.map(kn=>kn.asSpec()),Mt=Ox([mt,et]),Xt=t.icon.isSome()&&et.isSome(),Dn={tag:"button",classes:Be.concat(...t.icon.isSome()&&!Xt?["tox-button--icon"]:[]).concat(...Xt?["tox-button--icon-and-text"]:[]).concat(...t.borderless?["tox-button--naked"]:[]).concat(...t.type==="togglebutton"&&t.active?["tox-button--enabled"]:[]),attributes:st},hn=[],rn=QA(Ee,P.some(xe),hn,Dn,Mt,a);return hl.sketch(rn)},O9=(t,a)=>fD(t,a),P9=(t,a)=>({dom:{tag:"div",classes:["tox-view__toolbar__group"]},components:ne(t.buttons,p=>O9(p,a))}),vy=hf().deviceType,I9=vy.isPhone(),iY=vy.isTablet(),lY=t=>{let a=!1;const p=ne(t.buttons,E=>E.type==="group"?(a=!0,P9(E,t.providers)):O9(E,t.providers));return{uid:t.uid,dom:{tag:"div",classes:[a?"tox-view__toolbar":"tox-view__header",...I9||iY?["tox-view--mobile","tox-view--scrolling"]:[]]},behaviours:gr([ko.config({}),po.config({mode:"flow",selector:"button, .tox-button",focusInside:te.OnEnterOrSpaceMode})]),components:a?p:[Kh.sketch({dom:{tag:"div",classes:["tox-view__header-start"]},components:[]}),Kh.sketch({dom:{tag:"div",classes:["tox-view__header-end"]},components:p})]}},cY=t=>({uid:t.uid,dom:{tag:"div",classes:["tox-view__pane"]}}),dD=(t,a,p,E)=>{const z={getPane:Y=>nl.getPart(Y,t,"pane"),getOnShow:Y=>t.viewConfig.onShow,getOnHide:Y=>t.viewConfig.onHide};return{uid:t.uid,dom:t.dom,components:a,apis:z}};var r2=Bl({name:"silver.View",configFields:[qn("viewConfig")],partFields:[Fc({factory:{sketch:lY},schema:[qn("buttons"),qn("providers")],name:"header"}),Fc({factory:{sketch:cY},schema:[],name:"pane"})],factory:dD,apis:{getPane:(t,a)=>t.getPane(a),getOnShow:(t,a)=>t.getOnShow(a),getOnHide:(t,a)=>t.getOnHide(a)}});const uY=(t,a,p)=>Gt(a,(E,z)=>{const Y=Ja($9(E));return t.slot(z,r2.sketch({dom:{tag:"div",classes:["tox-view"]},viewConfig:Y,components:[...Y.buttons.length>0?[r2.parts.header({buttons:Y.buttons,providers:p})]:[],r2.parts.pane({})]}))}),N9=(t,a)=>Uc.sketch(p=>({dom:{tag:"div",classes:["tox-view-wrap__slot-container"]},components:uY(p,t,a),slotBehaviours:YC.unnamedEvents([ms(E=>Uc.hideAllSlots(E))])})),hD=t=>Ve(Uc.getSlotNames(t),a=>Uc.isShowing(t,a)),AM=t=>{const a=t.element;To(a,"display","none"),Lr(a,"aria-hidden","true")},mD=t=>{const a=t.element;Bo(a,"display"),Xa(a,"aria-hidden")},fY=t=>({getContainer:O(t)}),F9=(t,a,p)=>{Uc.getSlot(t,a).each(E=>{r2.getPane(E).each(z=>{p(E)(fY(z.element.dom))})})},B9=(t,a)=>F9(t,a,r2.getOnShow),dY=(t,a)=>F9(t,a,r2.getOnHide);var MM=ou({factory:(t,a)=>{const Y={setViews:(re,xe)=>{Ho.set(re,[N9(xe,a.backstage.shared.providers)])},whichView:re=>da.getCurrent(re).bind(hD),toggleView:(re,xe,Ee,Be)=>da.getCurrent(re).exists(je=>{const et=hD(je),st=et.exists(Mt=>Be===Mt),mt=Uc.getSlot(je,Be).isSome();return mt&&(Uc.hideAllSlots(je),st?(AM(re),xe()):(Ee(),mD(re),Uc.showSlot(je,Be),B9(je,Be)),et.each(Mt=>dY(je,Mt))),mt})};return{uid:t.uid,dom:{tag:"div",classes:["tox-view-wrap"],attributes:{"aria-hidden":"true"},styles:{display:"none"}},components:[],behaviours:gr([Ho.config({}),da.config({find:re=>{const xe=Ho.contents(re);return Me(xe)}})]),apis:Y}},name:"silver.ViewWrapper",configFields:[qn("backstage")],apis:{setViews:(t,a,p)=>t.setViews(a,p),toggleView:(t,a,p,E,z)=>t.toggleView(a,p,E,z),whichView:(t,a)=>t.whichView(a)}});const H9=(t,a,p)=>{let E=!1;const z={getSocket:Y=>nl.getPart(Y,t,"socket"),setSidebar:(Y,re,xe)=>{nl.getPart(Y,t,"sidebar").each(Ee=>Pj(Ee,re,xe))},toggleSidebar:(Y,re)=>{nl.getPart(Y,t,"sidebar").each(xe=>Ij(xe,re))},whichSidebar:Y=>nl.getPart(Y,t,"sidebar").bind(h9).getOrNull(),getHeader:Y=>nl.getPart(Y,t,"header"),getToolbar:Y=>nl.getPart(Y,t,"toolbar"),setToolbar:(Y,re)=>{nl.getPart(Y,t,"toolbar").each(xe=>{const Ee=ne(re,CM);xe.getApis().setGroups(xe,Ee)})},setToolbars:(Y,re)=>{nl.getPart(Y,t,"multiple-toolbar").each(xe=>{const Ee=ne(re,Be=>ne(Be,CM));sM.setItems(xe,Ee)})},refreshToolbar:Y=>{nl.getPart(Y,t,"toolbar").each(xe=>xe.getApis().refresh(xe))},toggleToolbarDrawer:Y=>{nl.getPart(Y,t,"toolbar").each(re=>{wn(re.getApis().toggle,xe=>xe(re))})},toggleToolbarDrawerWithoutFocusing:Y=>{nl.getPart(Y,t,"toolbar").each(re=>{wn(re.getApis().toggleWithoutFocusing,xe=>xe(re))})},isToolbarDrawerToggled:Y=>nl.getPart(Y,t,"toolbar").bind(re=>P.from(re.getApis().isOpen).map(xe=>xe(re))).getOr(!1),getThrobber:Y=>nl.getPart(Y,t,"throbber"),focusToolbar:Y=>{nl.getPart(Y,t,"toolbar").orThunk(()=>nl.getPart(Y,t,"multiple-toolbar")).each(xe=>{po.focusIn(xe)})},setMenubar:(Y,re)=>{nl.getPart(Y,t,"menubar").each(xe=>{eD.setMenus(xe,re)})},focusMenubar:Y=>{nl.getPart(Y,t,"menubar").each(re=>{eD.focus(re)})},setViews:(Y,re)=>{nl.getPart(Y,t,"viewWrapper").each(xe=>{MM.setViews(xe,re)})},toggleView:(Y,re)=>nl.getPart(Y,t,"viewWrapper").exists(xe=>MM.toggleView(xe,()=>z.showMainView(Y),()=>z.hideMainView(Y),re)),whichView:Y=>nl.getPart(Y,t,"viewWrapper").bind(MM.whichView).getOrNull(),hideMainView:Y=>{E=z.isToolbarDrawerToggled(Y),E&&z.toggleToolbarDrawer(Y),nl.getPart(Y,t,"editorContainer").each(re=>{const xe=re.element;To(xe,"display","none"),Lr(xe,"aria-hidden","true")})},showMainView:Y=>{E&&z.toggleToolbarDrawer(Y),nl.getPart(Y,t,"editorContainer").each(re=>{const xe=re.element;Bo(xe,"display"),Xa(xe,"aria-hidden")})}};return{uid:t.uid,dom:t.dom,components:a,apis:z,behaviours:t.behaviours}},hY=cg.optional({factory:eD,name:"menubar",schema:[qn("backstage")]}),mY=t=>t.type===af.sliding?nY:t.type===af.floating?L9:SM,gD=cg.optional({factory:{sketch:t=>sM.sketch({uid:t.uid,dom:t.dom,listBehaviours:gr([po.config({mode:"acyclic",selector:".tox-toolbar"})]),makeItem:()=>SM({type:t.type,uid:Xr("multiple-toolbar-item"),cyclicKeying:!1,initGroups:[],providers:t.providers,onEscape:()=>(t.onEscape(),P.some(!0))}),setupItem:(a,p,E,z)=>{Jh.setGroups(p,E)},shell:!0})},name:"multiple-toolbar",schema:[qn("dom"),qn("onEscape")]}),gY=cg.optional({factory:{sketch:t=>{const a=mY(t),p={type:t.type,uid:t.uid,onEscape:()=>(t.onEscape(),P.some(!0)),onToggled:(E,z)=>t.onToolbarToggled(z),cyclicKeying:!1,initGroups:[],getSink:t.getSink,providers:t.providers,moreDrawerData:{lazyToolbar:t.lazyToolbar,lazyMoreButton:t.lazyMoreButton,lazyHeader:t.lazyHeader},attributes:t.attributes};return a(p)}},name:"toolbar",schema:[qn("dom"),qn("onEscape"),qn("getSink")]}),pY=cg.optional({factory:{sketch:c9},name:"header",schema:[qn("dom")]}),z9=cg.optional({factory:{sketch:Ej},name:"promotion",schema:[qn("dom")]}),vY=cg.optional({name:"socket",schema:[qn("dom")]}),V9=cg.optional({factory:{sketch:Nj},name:"sidebar",schema:[qn("dom")]}),yY=cg.optional({factory:{sketch:zj},name:"throbber",schema:[qn("dom")]}),U9=cg.optional({factory:MM,name:"viewWrapper",schema:[qn("backstage")]}),bY=t=>({uid:t.uid,dom:{tag:"div",classes:["tox-editor-container"]},components:t.components}),xY=cg.optional({factory:{sketch:bY},name:"editorContainer",schema:[]});var Ss=Bl({name:"OuterContainer",factory:H9,configFields:[qn("dom"),qn("behaviours")],partFields:[pY,hY,gY,gD,vY,V9,z9,yY,U9,xY],apis:{getSocket:(t,a)=>t.getSocket(a),setSidebar:(t,a,p,E)=>{t.setSidebar(a,p,E)},toggleSidebar:(t,a,p)=>{t.toggleSidebar(a,p)},whichSidebar:(t,a)=>t.whichSidebar(a),getHeader:(t,a)=>t.getHeader(a),getToolbar:(t,a)=>t.getToolbar(a),setToolbar:(t,a,p)=>{t.setToolbar(a,p)},setToolbars:(t,a,p)=>{t.setToolbars(a,p)},refreshToolbar:(t,a)=>t.refreshToolbar(a),toggleToolbarDrawer:(t,a)=>{t.toggleToolbarDrawer(a)},toggleToolbarDrawerWithoutFocusing:(t,a)=>{t.toggleToolbarDrawerWithoutFocusing(a)},isToolbarDrawerToggled:(t,a)=>t.isToolbarDrawerToggled(a),getThrobber:(t,a)=>t.getThrobber(a),setMenubar:(t,a,p)=>{t.setMenubar(a,p)},focusMenubar:(t,a)=>{t.focusMenubar(a)},focusToolbar:(t,a)=>{t.focusToolbar(a)},setViews:(t,a,p)=>{t.setViews(a,p)},toggleView:(t,a,p)=>t.toggleView(a,p),whichView:(t,a)=>t.whichView(a)}});const W9="file edit view insert format tools table help",G9={file:{title:"File",items:"newdocument restoredraft | preview | export print | deleteallconversations"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments"},insert:{title:"Insert",items:"image link media addcomment pageembed template inserttemplate codesample inserttable accordion | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents footnotes | mergetags | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat"},tools:{title:"Tools",items:"aidialog aishortcuts | spellchecker spellcheckerlanguage | autocorrect capitalization | a11ycheck code typography wordcount addtemplate"},table:{title:"Table",items:"inserttable | cell row column | advtablesort | tableprops deletetable"},help:{title:"Help",items:"help"}},wY=(t,a,p)=>{const E=a5(p).split(/[ ,]/);return{text:t.title,getItems:()=>ie(t.items,z=>{const Y=z.toLowerCase();return Y.trim().length===0?[]:ge(E,re=>re===Y)?[]:Y==="separator"||Y==="|"?[{type:"separator"}]:a.menuItems[Y]?[a.menuItems[Y]]:[]})}},pD=t=>t.split(" "),EM=(t,a)=>{const p={...G9,...a.menus},E=ot(a.menus).length>0,z=a.menubar===void 0||a.menubar===!0?pD(W9):pD(a.menubar===!1?"":a.menubar),Y=Ce(z,xe=>{const Ee=pn(G9,xe);return E?Ee||Ft(a.menus,xe).exists(Be=>pn(Be,"items")):Ee}),re=ne(Y,xe=>{const Ee=p[xe];return wY({title:Ee.title,items:pD(Ee.items)},a,t)});return Ce(re,xe=>{const Ee=Be=>A(Be)||Be.type!=="separator";return xe.getItems().length>0&&ge(xe.getItems(),Ee)})},vD=t=>{const a=()=>{t._skinLoaded=!0,NV(t)};return()=>{t.initialized?a():t.on("init",a)}},CY=(t,a)=>()=>tR(t,{message:a}),Z9=(t,a,p)=>(t.on("remove",()=>p.unload(a)),p.load(a)),yD=(t,a,p,E)=>(t.on("remove",()=>E.unloadRawCss(a)),E.loadRawCss(a,p)),SY=async(t,a)=>{const E="ui/"+h5(t).getOr("default")+"/skin.css",z=tinymce.Resource.get(E);if(A(z))return Promise.resolve(yD(t,E,z,t.ui.styleSheetLoader));{const Y=a+"/skin.min.css";return Z9(t,Y,t.ui.styleSheetLoader)}},TY=async(t,a)=>{if(Os(zt.fromDom(t.getElement()))){const E=a+"/skin.shadowdom.css",z=tinymce.Resource.get(E);if(A(z))return yD(t,E,z,oy.DOM.styleSheetLoader),Promise.resolve();{const Y=a+"/skin.shadowdom.min.css";return Z9(t,Y,oy.DOM.styleSheetLoader)}}},kY=async(t,a)=>{h5(a).fold(()=>{const E=Nk(a);E&&a.contentCSS.push(E+(t?"/content.inline":"/content")+".min.css")},E=>{const z="ui/"+E+(t?"/content.inline":"/content")+".css",Y=tinymce.Resource.get(z);if(A(Y))yD(a,z,Y,a.ui.styleSheetLoader);else{const re=Nk(a);re&&a.contentCSS.push(re+(t?"/content.inline":"/content")+".min.css")}});const p=Nk(a);if(!d5(a)&&A(p))return Promise.all([SY(a,p),TY(a,p)]).then()},j9=(t,a)=>kY(t,a).then(vD(a),CY(a,"Skin could not be loaded")),AY=M(j9,!1),MY=M(j9,!0),yy=(t,a,p)=>t.translate([`${a} {0}`,t.translate(p)]),_M=(t,a,p)=>{const E=(xe,Ee,Be,je)=>{const et=a.shared.providers.translate(xe.title);if(xe.type==="separator")return P.some({type:"separator",text:et});if(xe.type==="submenu"){const st=ie(xe.getStyleItems(),mt=>z(mt,Ee,je));return Ee===0&&st.length<=0?P.none():P.some({type:"nestedmenuitem",text:et,enabled:st.length>0,getSubmenuItems:()=>ie(xe.getStyleItems(),mt=>z(mt,Ee,je))})}else return P.some({type:"togglemenuitem",text:et,icon:xe.icon,active:xe.isSelected(je),enabled:!Be,onAction:p.onAction(xe),...xe.getStylePreview().fold(()=>({}),st=>({meta:{style:st}}))})},z=(xe,Ee,Be)=>{const je=xe.type==="formatter"&&p.isInvalid(xe);return Ee===0?je?[]:E(xe,Ee,!1,Be).toArray():E(xe,Ee,je,Be).toArray()},Y=xe=>{const Ee=p.getCurrentValue(),Be=p.shouldHide?0:1;return ie(xe,je=>z(je,Be,Ee))};return{validateItems:Y,getFetch:(xe,Ee)=>(Be,je)=>{const et=Ee(),st=Y(et),mt=jx(st,Yh.CLOSE_ON_EXECUTE,xe,{isHorizontalMenu:!1,search:P.none()});je(mt)}}},l0=(t,a,p)=>{const E=p.dataset,z=E.type==="basic"?()=>ne(E.data,Y=>LL(Y,p.isSelectedFor,p.getPreviewFor)):E.getData;return{items:_M(t,a,p),getStyleItems:z}},o2=(t,a,p,E,z)=>{const{items:Y,getStyleItems:re}=l0(t,a,p),xe=Be=>({getComponent:O(Be),setTooltip:je=>{const et=a.shared.providers.translate(je);jl(Be.element,{"aria-label":et,title:et})}}),Ee=Be=>{const je=et=>Be.setTooltip(yy(t,E,et.value));return t.on(z,je),qC(Yd(t,"NodeChange",et=>{const st=et.getComponent();p.updateText(st),Co.set(et.getComponent(),!t.selection.isEditable())})(Be),()=>t.off(z,je))};return UA({text:p.icon.isSome()?P.none():p.text,icon:p.icon,tooltip:P.from(p.tooltip),role:P.none(),fetch:Y.getFetch(a,re),onSetup:Ee,getApi:xe,columns:1,presets:"normal",classes:p.icon.isSome()?[]:["bespoke"],dropdownBehaviours:[]},"tox-tbtn",a.shared)},c0=t=>ne(t,a=>{let p=a,E=a;const z=a.split("=");return z.length>1&&(p=z[0],E=z[1]),{title:p,format:E}}),Y9=t=>({type:"basic",data:t});var a2;(function(t){t[t.SemiColon=0]="SemiColon",t[t.Space=1]="Space"})(a2||(a2={}));const EY=(t,a)=>a===a2.SemiColon?t.replace(/;$/,"").split(";"):t.split(" "),bD=(t,a,p)=>{const E=t.options.get(a);return{type:"basic",data:c0(EY(E,p))}},xD="Align",K9="left",wD=[{title:"Left",icon:"align-left",format:"alignleft",command:"JustifyLeft"},{title:"Center",icon:"align-center",format:"aligncenter",command:"JustifyCenter"},{title:"Right",icon:"align-right",format:"alignright",command:"JustifyRight"},{title:"Justify",icon:"align-justify",format:"alignjustify",command:"JustifyFull"}],X9=t=>{const a=()=>Ve(wD,xe=>t.formatter.match(xe.format)),p=xe=>()=>t.formatter.match(xe),E=xe=>P.none,z=xe=>{const Be=a().fold(O(K9),je=>je.title.toLowerCase());go(xe,r0,{icon:`align-${Be}`}),zV(t,{value:Be})},Y=Y9(wD),re=xe=>()=>Ve(wD,Ee=>Ee.format===xe.format).each(Ee=>t.execCommand(Ee.command));return{tooltip:yy(t,xD,K9),text:P.none(),icon:P.some("align-left"),isSelectedFor:p,getCurrentValue:P.none,getPreviewFor:E,onAction:re,updateText:z,dataset:Y,shouldHide:!1,isInvalid:xe=>!t.formatter.canApply(xe.format)}},J9=(t,a)=>o2(t,a,X9(t),xD,"AlignTextUpdate"),_Y=(t,a)=>{const p=l0(t,a,X9(t));t.ui.registry.addNestedMenuItem("align",{text:a.shared.providers.translate(xD),onSetup:Vc(t),getSubmenuItems:()=>p.items.validateItems(p.getStyleItems())})},Q9=(t,a)=>{const p=a(),E=ne(p,z=>z.format);return P.from(t.formatter.closest(E)).bind(z=>Ve(p,Y=>Y.format===z)).orThunk(()=>lt(t.formatter.match("p"),{title:"Paragraph",format:"p"}))},BS="Blocks",CD="Paragraph",q9=t=>{const a=Y=>()=>t.formatter.match(Y),p=Y=>()=>{const re=t.formatter.get(Y);return re?P.some({tag:re.length>0&&(re[0].inline||re[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(Y))}):P.none()},E=Y=>{const xe=Q9(t,()=>z.data).fold(O(CD),Ee=>Ee.title);go(Y,md,{text:xe}),G7(t,{value:xe})},z=bD(t,"block_formats",a2.SemiColon);return{tooltip:yy(t,BS,CD),text:P.some(CD),icon:P.none(),isSelectedFor:a,getCurrentValue:P.none,getPreviewFor:p,onAction:j7(t),updateText:E,dataset:z,shouldHide:!1,isInvalid:Y=>!t.formatter.canApply(Y.format)}},RY=(t,a)=>o2(t,a,q9(t),BS,"BlocksTextUpdate"),LY=(t,a)=>{const p=l0(t,a,q9(t));t.ui.registry.addNestedMenuItem("blocks",{text:BS,onSetup:Vc(t),getSubmenuItems:()=>p.items.validateItems(p.getStyleItems())})},SD="Fonts",TD="System Font",eN=["-apple-system","Segoe UI","Roboto","Helvetica Neue","sans-serif"],kD=t=>{const a=t.split(/\s*,\s*/);return ne(a,p=>p.replace(/^['"]+|['"]+$/g,""))},AD=(t,a)=>a.length>0&&we(a,p=>t.indexOf(p.toLowerCase())>-1),DY=(t,a)=>{if(t.indexOf("-apple-system")===0||a.length>0){const p=kD(t.toLowerCase());return AD(p,eN)||AD(p,a)}else return!1},MD=t=>{const a=()=>{const Ee=Mt=>Mt?kD(Mt)[0]:"",Be=t.queryCommandValue("FontName"),je=xe.data,et=Be?Be.toLowerCase():"",st=L8(t);return{matchOpt:Ve(je,Mt=>{const Xt=Mt.format;return Xt.toLowerCase()===et||Ee(Xt).toLowerCase()===Ee(et).toLowerCase()}).orThunk(()=>lt(DY(et,st),{title:TD,format:et})),font:Be}},p=Ee=>Be=>Be.exists(je=>je.format===Ee),E=()=>{const{matchOpt:Ee}=a();return Ee},z=Ee=>()=>P.some({tag:"div",styles:Ee.indexOf("dings")===-1?{"font-family":Ee}:{}}),Y=Ee=>()=>{t.undoManager.transact(()=>{t.focus(),t.execCommand("FontName",!1,Ee.format)})},re=Ee=>{const{matchOpt:Be,font:je}=a(),et=Be.fold(O(je),st=>st.title);go(Ee,md,{text:et}),Z7(t,{value:et})},xe=bD(t,"font_family_formats",a2.SemiColon);return{tooltip:yy(t,SD,TD),text:P.some(TD),icon:P.none(),isSelectedFor:p,getCurrentValue:E,getPreviewFor:z,onAction:Y,updateText:re,dataset:xe,shouldHide:!1,isInvalid:H}},$Y=(t,a)=>o2(t,a,MD(t),SD,"FontFamilyTextUpdate"),OY=(t,a)=>{const p=l0(t,a,MD(t));t.ui.registry.addNestedMenuItem("fontfamily",{text:a.shared.providers.translate(SD),onSetup:Vc(t),getSubmenuItems:()=>p.items.validateItems(p.getStyleItems())})},PY={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},tN=(()=>{const t="[0-9]+",p="[eE]"+("[+-]?"+t),E="\\.",z=xe=>`(?:${xe})?`,re=`[+-]?(?:${["Infinity",t+E+z(t)+z(p),E+t+z(p),t+z(p)].join("|")})`;return new RegExp(`^(${re})(.*)$`)})(),IY=(t,a)=>ge(a,p=>ge(PY[p],E=>t===E)),HS=(t,a)=>P.from(tN.exec(t)).bind(E=>{const z=Number(E[1]),Y=E[2];return IY(Y,a)?P.some({value:z,unit:Y}):P.none()}),NY=(t,a)=>HS(t,a).map(({value:p,unit:E})=>p+E),nN={tab:O(9),escape:O(27),enter:O(13),backspace:O(8),delete:O(46),left:O(37),up:O(38),right:O(39),down:O(40),space:O(32),home:O(36),end:O(35),pageUp:O(33),pageDown:O(34)},FY=(t,a,p)=>{let E=P.none();const z=rn=>rn.map(kn=>Fr.getValue(kn)).getOr(""),Y=Yd(t,"NodeChange SwitchMode",rn=>{const kn=rn.getComponent();E=P.some(kn),p.updateInputValue(kn),Co.set(kn,!t.selection.isEditable())}),re=rn=>({getComponent:O(rn)}),xe=q(C),Ee=Xr("custom-number-input-events"),Be=(rn,kn,Vn)=>{const hr=z(E),Yn=p.getNewValue(hr,rn),br=hr.length-`${Yn}`.length,Mr=E.map(Zr=>Zr.element.dom.selectionStart-br),ea=E.map(Zr=>Zr.element.dom.selectionEnd-br);p.onAction(Yn,Vn),E.each(Zr=>{Fr.setValue(Zr,Yn),kn&&(Mr.each(Do=>Zr.element.dom.selectionStart=Do),ea.each(Do=>Zr.element.dom.selectionEnd=Do))})},je=(rn,kn)=>Be((Vn,hr)=>Vn-hr,rn,kn),et=(rn,kn)=>Be((Vn,hr)=>Vn+hr,rn,kn),st=rn=>fr(rn.element).fold(P.none,kn=>(Ic(kn),P.some(!0))),mt=rn=>p1(rn.element)?(So(rn.element).each(kn=>Ic(kn)),P.some(!0)):P.none(),Mt=(rn,kn,Vn,hr)=>{const Yn=q(C),br=a.shared.providers.translate(Vn),Mr=Xr("altExecuting"),ea=Yd(t,"NodeChange SwitchMode",Do=>{Co.set(Do.getComponent(),!t.selection.isEditable())}),Zr=Do=>{Co.isDisabled(Do)||rn(!0)};return hl.sketch({dom:{tag:"button",attributes:{title:br,"aria-label":br},classes:hr.concat(kn)},components:[VA(kn,a.shared.providers.icons)],buttonBehaviours:gr([Co.config({}),jo(Mr,[Zv({onSetup:ea,getApi:re},Yn),eg({getApi:re},Yn),Xn(Ca(),(Do,Mo)=>{(Mo.event.raw.keyCode===nN.space()||Mo.event.raw.keyCode===nN.enter())&&(Co.isDisabled(Do)||rn(!1))}),Xn(xi(),Zr),Xn(Ko(),Zr)])]),eventOrder:{[Ca()]:[Mr,"keying"],[xi()]:[Mr,"alloy.base.behaviour"],[Ko()]:[Mr,"alloy.base.behaviour"]}})},Xt=Qa(Mt(rn=>je(!1,rn),"minus","Decrease font size",[])),Dn=Qa(Mt(rn=>et(!1,rn),"plus","Increase font size",[])),hn=Qa({dom:{tag:"div",classes:["tox-input-wrapper"]},components:[sy.sketch({inputBehaviours:gr([Co.config({}),jo(Ee,[Zv({onSetup:Y,getApi:re},xe),eg({getApi:re},xe)]),jo("input-update-display-text",[Xn(md,(rn,kn)=>{Fr.setValue(rn,kn.event.text)}),Xn(sa(),rn=>{p.onAction(Fr.getValue(rn))}),Xn(Di(),rn=>{p.onAction(Fr.getValue(rn))})]),po.config({mode:"special",onEnter:rn=>(Be(D,!0,!0),P.some(!0)),onEscape:st,onUp:rn=>(et(!0,!1),P.some(!0)),onDown:rn=>(je(!0,!1),P.some(!0)),onLeft:(rn,kn)=>(kn.cut(),P.none()),onRight:(rn,kn)=>(kn.cut(),P.none())})])})],behaviours:gr([ko.config({}),po.config({mode:"special",onEnter:mt,onSpace:mt,onEscape:st}),jo("input-wrapper-events",[Xn($r(),rn=>{fe([Xt,Dn],kn=>{const Vn=zt.fromDom(kn.get(rn).element.dom);p1(Vn)&&hv(Vn)})})])])});return{dom:{tag:"div",classes:["tox-number-input"]},components:[Xt.asSpec(),hn.asSpec(),Dn.asSpec()],behaviours:gr([ko.config({}),po.config({mode:"flow",focusInside:te.OnEnterOrSpaceMode,cycles:!1,selector:"button, .tox-input-wrapper",onEscape:rn=>p1(rn.element)?P.none():(Ic(rn.element),P.some(!0))})])}},ED="Font sizes",rN="12pt",BY={"8pt":"1","10pt":"2","12pt":"3","14pt":"4","18pt":"5","24pt":"6","36pt":"7"},HY={"xx-small":"7pt","x-small":"8pt",small:"10pt",medium:"12pt",large:"14pt","x-large":"18pt","xx-large":"24pt"},oN=(t,a)=>{const p=Math.pow(10,a);return Math.round(t*p)/p},zY=(t,a)=>/[0-9.]+px$/.test(t)?oN(parseInt(t,10)*72/96,a||0)+"pt":Ft(HY,t).getOr(t),VY=t=>Ft(BY,t).getOr(""),aN=t=>{const a=()=>{let Ee=P.none();const Be=xe.data,je=t.queryCommandValue("FontSize");if(je)for(let et=3;Ee.isNone()&&et>=0;et--){const st=zY(je,et),mt=VY(st);Ee=Ve(Be,Mt=>Mt.format===je||Mt.format===st||Mt.format===mt)}return{matchOpt:Ee,size:je}},p=Ee=>Be=>Be.exists(je=>je.format===Ee),E=()=>{const{matchOpt:Ee}=a();return Ee},z=O(P.none),Y=Ee=>()=>{t.undoManager.transact(()=>{t.focus(),t.execCommand("FontSize",!1,Ee.format)})},re=Ee=>{const{matchOpt:Be,size:je}=a(),et=Be.fold(O(je),st=>st.title);go(Ee,md,{text:et}),VV(t,{value:et})},xe=bD(t,"font_size_formats",a2.Space);return{tooltip:yy(t,ED,rN),text:P.some(rN),icon:P.none(),isSelectedFor:p,getPreviewFor:z,getCurrentValue:E,onAction:Y,updateText:re,dataset:xe,shouldHide:!1,isInvalid:H}},UY=(t,a)=>o2(t,a,aN(t),ED,"FontSizeTextUpdate"),WY=t=>{var a;const p={step:1};return(a={em:{step:.1},cm:{step:.1},in:{step:.1},pc:{step:.1},ch:{step:.1},rem:{step:.1}}[t])!==null&&a!==void 0?a:p},GY=16,ZY=t=>t>=0,sN=t=>{const a=()=>t.queryCommandValue("FontSize");return{updateInputValue:E=>go(E,md,{text:a()}),onAction:(E,z)=>t.execCommand("FontSize",!1,E,{skip_focus:!z}),getNewValue:(E,z)=>{HS(E,["unsupportedLength","empty"]);const Y=a(),re=HS(E,["unsupportedLength","empty"]).or(HS(Y,["unsupportedLength","empty"])),xe=re.map(st=>st.value).getOr(GY),Ee=A8(t),Be=re.map(st=>st.unit).filter(st=>st!=="").getOr(Ee),je=z(xe,WY(Be).step),et=`${ZY(je)?je:xe}${Be}`;return et!==Y&&UV(t,{value:et}),et}}},jY=(t,a)=>FY(t,a,sN(t)),YY=(t,a)=>{const p=l0(t,a,aN(t));t.ui.registry.addNestedMenuItem("fontsize",{text:ED,onSetup:Vc(t),getSubmenuItems:()=>p.items.validateItems(p.getStyleItems())})},RM="Formats",iN=(t,a)=>{const p="Paragraph",E=re=>()=>t.formatter.match(re),z=re=>()=>{const xe=t.formatter.get(re);return xe!==void 0?P.some({tag:xe.length>0&&(xe[0].inline||xe[0].block)||"div",styles:t.dom.parseStyle(t.formatter.getCssText(re))}):P.none()},Y=re=>{const xe=et=>tM(et)?ie(et.items,xe):RI(et)?[{title:et.title,format:et.format}]:[],Ee=ie(DI(t),xe),je=Q9(t,O(Ee)).fold(O(p),et=>et.title);go(re,md,{text:je}),HV(t,{value:je})};return{tooltip:yy(t,RM,p),text:P.some(p),icon:P.none(),isSelectedFor:E,getCurrentValue:P.none,getPreviewFor:z,onAction:j7(t),updateText:Y,shouldHide:w8(t),isInvalid:re=>!t.formatter.canApply(re.format),dataset:a}},lN=(t,a)=>{const p={type:"advanced",...a.styles};return o2(t,a,iN(t,p),RM,"StylesTextUpdate")},cN=(t,a)=>{const p={type:"advanced",...a.styles},E=l0(t,a,iN(t,p));t.ui.registry.addNestedMenuItem("styles",{text:RM,onSetup:Vc(t),getSubmenuItems:()=>E.items.validateItems(E.getStyleItems())})},KY=O([qn("toggleClass"),qn("fetch"),qf("onExecute"),En("getHotspot",P.some),En("getAnchorOverrides",O({})),Om(),qf("onItemExecute"),Ia("lazySink"),qn("dom"),Sa("onOpen"),Fi("splitDropdownBehaviours",[pi,po,ko]),En("matchWidth",!1),En("useMinWidth",!1),En("eventOrder",{}),Ia("role")].concat(kR())),XY=Fl({factory:hl,schema:[qn("dom")],name:"arrow",defaults:()=>({buttonBehaviours:gr([ko.revoke()])}),overrides:t=>({dom:{tag:"span",attributes:{role:"presentation"}},action:a=>{a.getSystem().getByUid(t.uid).each(kh)},buttonBehaviours:gr([qo.config({toggleOnExecute:!1,toggleClass:t.toggleClass})])})}),JY=Fl({factory:hl,schema:[qn("dom")],name:"button",defaults:()=>({buttonBehaviours:gr([ko.revoke()])}),overrides:t=>({dom:{tag:"span",attributes:{role:"presentation"}},action:a=>{a.getSystem().getByUid(t.uid).each(p=>{t.onExecute(p,a)})}})}),s2=O([XY,JY,Fc({factory:{sketch:t=>({uid:t.uid,dom:{tag:"span",styles:{display:"none"},attributes:{"aria-hidden":"true"},innerHtml:t.text}})},schema:[qn("text")],name:"aria-descriptor"}),Af({schema:[c1()],name:"menu",defaults:t=>({onExecute:(a,p)=>{a.getSystem().getByUid(t.uid).each(E=>{t.onItemExecute(E,a,p)})}})}),fO()]),QY=(t,a,p,E)=>{const z=je=>{da.getCurrent(je).each(et=>{Na.highlightFirst(et),po.focusIn(et)})},Y=je=>{SR(t,D,je,E,z,zc.HighlightMenuAndItem).get(C)},re=je=>(Y(je),P.some(!0)),xe=je=>{const et=zh(je,t,"button");return kh(et),P.some(!0)},Ee={...bs([ms((je,et)=>{gs(je,t,"aria-descriptor").each(mt=>{const Mt=Xr("aria");Lr(mt.element,"id",Mt),Lr(je.element,"aria-describedby",Mt)})})]),...Gh(P.some(Y))},Be={repositionMenus:je=>{qo.isOn(je)&&gO(je)}};return{uid:t.uid,dom:t.dom,components:a,apis:Be,eventOrder:{...t.eventOrder,[Ci()]:["disabling","toggling","alloy.base.behaviour"]},events:Ee,behaviours:Si(t.splitDropdownBehaviours,[pi.config({others:{sandbox:je=>{const et=zh(je,t,"arrow");return TR(t,je,{onOpen:()=>{qo.on(et),qo.on(je)},onClose:()=>{qo.off(et),qo.off(je)}})}}}),po.config({mode:"special",onSpace:xe,onEnter:xe,onDown:re}),ko.config({}),qo.config({toggleOnExecute:!1,aria:{mode:"expanded"}})]),domModification:{attributes:{role:t.role.getOr("button"),"aria-haspopup":!0}}}},LM=Bl({name:"SplitDropdown",configFields:KY(),partFields:s2(),factory:QY,apis:{repositionMenus:(t,a)=>t.repositionMenus(a)}}),uN=t=>({isEnabled:()=>!Co.isDisabled(t),setEnabled:a=>Co.set(t,!a),setText:a=>go(t,md,{text:a}),setIcon:a=>go(t,r0,{icon:a})}),qY=t=>({setActive:a=>{qo.set(t,a)},isActive:()=>qo.isOn(t),isEnabled:()=>!Co.isDisabled(t),setEnabled:a=>Co.set(t,!a),setText:a=>go(t,md,{text:a}),setIcon:a=>go(t,r0,{icon:a})}),fN=(t,a)=>t.map(p=>({"aria-label":a.translate(p),title:a.translate(p)})).getOr({}),dN=Xr("focus-button"),_D=(t,a,p,E,z)=>{const Y=a.map(xe=>Qa(DP(xe,"tox-tbtn",z))),re=t.map(xe=>Qa(n0(xe,z.icons)));return{dom:{tag:"button",classes:["tox-tbtn"].concat(a.isSome()?["tox-tbtn--select"]:[]),attributes:fN(p,z)},components:Ox([re.map(xe=>xe.asSpec()),Y.map(xe=>xe.asSpec())]),eventOrder:{[fo()]:["focusing","alloy.base.behaviour",hy],[Cu()]:[hy,"toolbar-group-button-events"]},buttonBehaviours:gr([Bi.toolbarButton(z.isDisabled),Qi(),jo(hy,[ms((xe,Ee)=>bS(xe)),Xn(md,(xe,Ee)=>{Y.bind(Be=>Be.getOpt(xe)).each(Be=>{Ho.set(Be,[ai(z.translate(Ee.event.text))])})}),Xn(r0,(xe,Ee)=>{re.bind(Be=>Be.getOpt(xe)).each(Be=>{Ho.set(Be,[n0(Ee.event.icon,z.icons)])})}),Xn(fo(),(xe,Ee)=>{Ee.event.prevent(),pa(xe,dN)})])].concat(E.getOr([])))}},eK=(t,a,p,E)=>{const z=a.shared,Y=q(C),re={toolbarButtonBehaviours:[],getApi:uN,onSetup:t.onSetup},xe=[jo("toolbar-group-button-events",[Zv(re,Y),eg(re,Y)])];return i0.sketch({lazySink:z.getSink,fetch:()=>cc.nu(Ee=>{Ee(ne(p(t.items),CM))}),markers:{toggledClass:"tox-tbtn--enabled"},parts:{button:_D(t.icon,t.text,t.tooltip,P.some(xe),z.providers),toolbar:{dom:{tag:"div",classes:["tox-toolbar__overflow"],attributes:E}}}})},DM=(t,a,p)=>{var E;const z=q(C),Y=_D(t.icon,t.text,t.tooltip,P.none(),p);return hl.sketch({dom:Y.dom,components:Y.components,eventOrder:RP,buttonBehaviours:{...gr([jo("toolbar-button-events",[_P({onAction:t.onAction,getApi:a.getApi}),Zv(a,z),eg(a,z)]),Bi.toolbarButton(()=>!t.enabled||p.isDisabled()),Qi()].concat(a.toolbarButtonBehaviours)),[hy]:(E=Y.buttonBehaviours)===null||E===void 0?void 0:E[hy]}})},tK=(t,a)=>hN(t,a,[]),hN=(t,a,p)=>DM(t,{toolbarButtonBehaviours:p.length>0?[jo("toolbarButtonWith",p)]:[],getApi:uN,onSetup:t.onSetup},a),mN=(t,a)=>RD(t,a,[]),RD=(t,a,p)=>DM(t,{toolbarButtonBehaviours:[Ho.config({}),qo.config({toggleClass:"tox-tbtn--enabled",aria:{mode:"pressed"},toggleOnExecute:!1})].concat(p.length>0?[jo("toolbarToggleButtonWith",p)]:[]),getApi:qY,onSetup:t.onSetup},a),nK=(t,a,p)=>E=>cc.nu(z=>a.fetch(z)).map(z=>P.from(mA(hs(pR(Xr("menu-value"),z,Y=>{a.onItemAction(t(E),Y)},a.columns,a.presets,Yh.CLOSE_ON_EXECUTE,a.select.getOr(H),p),{movement:uA(a.columns,a.presets),menuBehaviours:YC.unnamedEvents(a.columns!=="auto"?[]:[ms((Y,re)=>{V5(Y,4,z8(a.presets)).each(({numRows:xe,numColumns:Ee})=>{po.setGridSize(Y,xe,Ee)})})])})))),rK=(t,a)=>{const p=Y=>({isEnabled:()=>!Co.isDisabled(Y),setEnabled:re=>Co.set(Y,!re),setIconFill:(re,xe)=>{mi(Y.element,`svg path[class="${re}"], rect[class="${re}"]`).each(Ee=>{Lr(Ee,"fill",xe)})},setActive:re=>{Lr(Y.element,"aria-pressed",re),mi(Y.element,"span").each(xe=>{Y.getSystem().getByDom(xe).each(Ee=>qo.set(Ee,re))})},isActive:()=>mi(Y.element,"span").exists(re=>Y.getSystem().getByDom(re).exists(qo.isOn)),setText:re=>mi(Y.element,"span").each(xe=>Y.getSystem().getByDom(xe).each(Ee=>go(Ee,md,{text:re}))),setIcon:re=>mi(Y.element,"span").each(xe=>Y.getSystem().getByDom(xe).each(Ee=>go(Ee,r0,{icon:re}))),setTooltip:re=>{const xe=a.providers.translate(re);jl(Y.element,{"aria-label":xe,title:xe})}}),E=q(C),z={getApi:p,onSetup:t.onSetup};return LM.sketch({dom:{tag:"div",classes:["tox-split-button"],attributes:{"aria-pressed":!1,...fN(t.tooltip,a.providers)}},onExecute:Y=>{const re=p(Y);re.isEnabled()&&t.onAction(re)},onItemExecute:(Y,re,xe)=>{},splitDropdownBehaviours:gr([Bi.splitButton(a.providers.isDisabled),Qi(),jo("split-dropdown-events",[ms((Y,re)=>bS(Y)),Xn(dN,ko.focus),Zv(z,E),eg(z,E)]),lS.config({})]),eventOrder:{[Cu()]:["alloy.base.behaviour","split-dropdown-events"]},toggleClass:"tox-tbtn--enabled",lazySink:a.getSink,fetch:nK(p,t,a.providers),parts:{menu:Mx(!1,t.columns,t.presets)},components:[LM.parts.button(_D(t.icon,t.text,P.none(),P.some([qo.config({toggleClass:"tox-tbtn--enabled",toggleOnExecute:!1})]),a.providers)),LM.parts.arrow({dom:{tag:"button",classes:["tox-tbtn","tox-split-button__chevron"],innerHtml:q_("chevron-down",a.providers.icons)},buttonBehaviours:gr([Bi.splitButton(a.providers.isDisabled),Qi(),Ek()])}),LM.parts["aria-descriptor"]({text:a.providers.translate("To open the popup, press Shift+Enter")})]})},oK=[{name:"history",items:["undo","redo"]},{name:"ai",items:["aidialog","aishortcuts"]},{name:"styles",items:["styles"]},{name:"formatting",items:["bold","italic"]},{name:"alignment",items:["alignleft","aligncenter","alignright","alignjustify"]},{name:"indentation",items:["outdent","indent"]},{name:"permanent pen",items:["permanentpen"]},{name:"comments",items:["addcomment"]}],zS=(t,a)=>(p,E,z)=>{const Y=t(p).mapError(re=>wl(re)).getOrDie();return a(Y,E,z)},aK={button:zS(B5,(t,a)=>tK(t,a.shared.providers)),togglebutton:zS(i7,(t,a)=>mN(t,a.shared.providers)),menubutton:zS(qL,(t,a)=>wS(t,"tox-tbtn",a,P.none(),!1)),splitbutton:zS(Mj,(t,a)=>rK(t,a.shared)),grouptoolbarbutton:zS(kj,(t,a,p)=>{const E=p.ui.registry.getAll().buttons,z=re=>OM(p,{buttons:E,toolbar:re,allowToolbarGroups:!1},a,P.none()),Y={[vv]:a.shared.header.isPositionedAtTop()?tf.TopToBottom:tf.BottomToTop};switch(Cx(p)){case af.floating:return eK(t,a,z,Y);default:throw new Error("Toolbar groups are only supported when using floating toolbar mode")}})},sK=(t,a,p)=>Ft(aK,t.type).fold(()=>(console.error("skipping button defined by",t),P.none()),E=>P.some(E(t,a,p))),LD={styles:lN,fontsize:UY,fontsizeinput:jY,fontfamily:$Y,blocks:RY,align:J9},iK=t=>{const a=ne(oK,p=>{const E=Ce(p.items,z=>pn(t,z)||pn(LD,z));return{name:p.name,items:E}});return Ce(a,p=>p.items.length>0)},lK=t=>{const a=t.split("|");return ne(a,p=>({items:p.trim().split(" ")}))},cK=t=>x(t,a=>pn(a,"name")&&pn(a,"items")),uK=t=>{const a=t.toolbar,p=t.buttons;return a===!1?[]:a===void 0||a===!0?iK(p):A(a)?lK(a):cK(a)?a:(console.error("Toolbar type should be string, string[], boolean or ToolbarGroup[]"),[])},$M=(t,a,p,E,z,Y)=>Ft(a,p.toLowerCase()).orThunk(()=>Y.bind(re=>We(re,xe=>Ft(a,xe+p.toLowerCase())))).fold(()=>Ft(LD,p.toLowerCase()).map(re=>re(t,z)),re=>re.type==="grouptoolbarbutton"&&!E?(console.warn(`Ignoring the '${p}' toolbar button. Group toolbar buttons are only supported when using floating toolbar mode and cannot be nested.`),P.none()):sK(re,z,t)),OM=(t,a,p,E)=>{const z=uK(a),Y=ne(z,re=>{const xe=ie(re.items,Ee=>Ee.trim().length===0?[]:$M(t,a.buttons,Ee,a.allowToolbarGroups,p,E).toArray());return{title:P.from(t.translate(re.name)),items:xe}});return Ce(Y,re=>re.items.length>0)},VS=(t,a,p,E)=>{const z=a.mainUi.outerContainer,Y=p.toolbar,re=p.buttons;if(x(Y,A)){const xe=Y.map(Ee=>{const Be={toolbar:Ee,buttons:re,allowToolbarGroups:p.allowToolbarGroups};return OM(t,Be,E,P.none())});Ss.setToolbars(z,xe)}else Ss.setToolbar(z,OM(t,p,E,P.none()))},US=hf(),gN=US.os.isiOS()&&US.os.version.major<=12,fK=(t,a)=>{const{uiMotherships:p}=a,E=t.dom;let z=t.getWin();const Y=t.getDoc().documentElement,re=q(Ma(z.innerWidth,z.innerHeight)),xe=q(Ma(Y.offsetWidth,Y.offsetHeight)),Ee=()=>{const st=re.get();(st.left!==z.innerWidth||st.top!==z.innerHeight)&&(re.set(Ma(z.innerWidth,z.innerHeight)),nA(t))},Be=()=>{const st=t.getDoc().documentElement,mt=xe.get();(mt.left!==st.offsetWidth||mt.top!==st.offsetHeight)&&(xe.set(Ma(st.offsetWidth,st.offsetHeight)),nA(t))},je=st=>{FV(t,st)};E.bind(z,"resize",Ee),E.bind(z,"scroll",je);const et=Pb(zt.fromDom(t.getBody()),"load",Be);t.on("hide",()=>{fe(p,st=>{To(st.element,"display","none")})}),t.on("show",()=>{fe(p,st=>{Bo(st.element,"display")})}),t.on("NodeChange",Be),t.on("remove",()=>{et.unbind(),E.unbind(z,"resize",Ee),E.unbind(z,"scroll",je),z=null})},dK=(t,a,p)=>{Km(t)&&Nh(p.mainUi.mothership.element,p.popupUi.mothership),dl(a,p.dialogUi.mothership)};var hK=Object.freeze({__proto__:null,render:(t,a,p,E,z)=>{const{mainUi:Y,uiMotherships:re}=a,xe=q(0),Ee=Y.outerContainer;AY(t);const Be=zt.fromDom(z.targetNode),je=Fa(Yo(Be));Nh(Be,Y.mothership),dK(t,je,a),t.on("SkinLoaded",()=>{Ss.setSidebar(Ee,p.sidebar,Pk(t)),VS(t,a,p,E),xe.set(t.getWin().innerWidth),Ss.setMenubar(Ee,EM(t,p)),Ss.setViews(Ee,p.views),fK(t,a)});const et=Ss.getSocket(Ee).getOrDie("Could not find expected socket element");if(gN){Mi(et.element,{overflow:"scroll","-webkit-overflow-scrolling":"touch"});const Xt=mS(()=>{t.dispatch("ScrollContent")},20),Dn=sc(et.element,"scroll",Xt.throttle);t.on("remove",Dn.unbind)}T7(t,a),t.addCommand("ToggleSidebar",(Xt,Dn)=>{Ss.toggleSidebar(Ee,Dn),t.dispatch("ToggleSidebar")}),t.addQueryValueHandler("ToggleSidebar",()=>{var Xt;return(Xt=Ss.whichSidebar(Ee))!==null&&Xt!==void 0?Xt:""}),t.addCommand("ToggleView",(Xt,Dn)=>{if(Ss.toggleView(Ee,Dn)){const hn=Ee.element;Y.mothership.broadcastOn([rd()],{target:hn}),fe(re,rn=>{rn.broadcastOn([rd()],{target:hn})}),l(Ss.whichView(Ee))&&(t.focus(),t.nodeChanged(),Ss.refreshToolbar(Ee))}}),t.addQueryValueHandler("ToggleView",()=>{var Xt;return(Xt=Ss.whichView(Ee))!==null&&Xt!==void 0?Xt:""});const st=Cx(t),mt=()=>{Ss.refreshToolbar(a.mainUi.outerContainer)};(st===af.sliding||st===af.floating)&&t.on("ResizeWindow ResizeEditor ResizeContent",()=>{const Xt=t.getWin().innerWidth;Xt!==xe.get()&&(mt(),xe.set(Xt))});const Mt={setEnabled:Xt=>{Qk(a,!Xt)},isEnabled:()=>!Co.isDisabled(Ee)};return{iframeContainer:et.element.dom,editorContainer:Ee.element.dom,api:Mt}}});const DD=t=>/^[0-9\.]+(|px)$/i.test(""+t)?P.some(parseInt(""+t,10)):P.none(),i2=t=>v(t)?t+"px":t,WS=(t,a,p)=>{const E=a.filter(Y=>tt>Y);return E.or(z).getOr(t)},pN=t=>{const a=_k(t),p=wx(t),E=o5(t);return DD(a).map(z=>WS(z,p,E))},vN=t=>pN(t).getOr(_k(t)),$D=t=>{const a=FC(t),p=r5(t),E=Rk(t);return DD(a).map(z=>WS(z,p,E))},mK=t=>$D(t).getOr(FC(t)),{ToolbarLocation:PM,ToolbarMode:yN}=Gz,gK=40,pK=(t,a,p,E,z)=>{const{mainUi:Y,uiMotherships:re}=p,xe=oy.DOM,Ee=kx(t),Be=zC(t),je=Rk(t).or($D(t)),et=E.shared.header,st=et.isPositionedAtTop,mt=Cx(t),Mt=mt===yN.sliding||mt===yN.floating,Xt=q(!1),Dn=()=>Xt.get()&&!t.removed,hn=xo=>Mt?xo.fold(O(0),Ea=>Ea.components().length>1?Ls(Ea.components()[1].element):0):0,rn=xo=>{switch(BC(t)){case PM.auto:const Ea=Ss.getToolbar(Y.outerContainer),Ar=hn(Ea),no=Ls(xo.element)-Ar,$o=Js(a);if($o.y>no)return"top";{const wo=gn(a),Vo=Math.max(wo.dom.scrollHeight,Ls(wo));return $o.bottom{z.on(Ea=>{Ti.setModes(Ea,[xo]),et.setDockingMode(xo);const Ar=st()?tf.TopToBottom:tf.BottomToTop;Lr(Ea.element,vv,Ar)})},Vn=()=>{z.on(xo=>{const Ea=je.getOrThunk(()=>{const Ar=DD(Ms(ss(),"margin-left")).getOr(0);return ci(ss())-al(a).left+Ar});To(xo.element,"max-width",Ea+"px")})},hr=xo=>{z.on(Ea=>{const Ar=Ss.getToolbar(Y.outerContainer),no=hn(Ar),$o=Js(a),{top:Po,left:wo}=Yn(t,Y.outerContainer.element).fold(()=>({top:st()?Math.max($o.y-Ls(Ea.element)+no,0):$o.bottom,left:$o.x}),Ra=>{var Rl;const Fu=Js(Ra),yd=(Rl=Ra.dom.scrollTop)!==null&&Rl!==void 0?Rl:0,ah=Qt(Ra,ss()),p0=ah?Math.max($o.y-Ls(Ea.element)+no,0):$o.y-Fu.y+yd-Ls(Ea.element)+no;return{top:st()?p0:$o.bottom,left:ah?$o.x:$o.x-Fu.x}}),Vo={position:"absolute",left:Math.round(wo)+"px",top:Math.round(Po)+"px"},ys=xo.map(Ra=>{const Rl=ll(),Fu=150,yd=window.innerWidth-(wo-Rl.left);return{width:Math.max(Math.min(Ra,yd),Fu)+"px"}}).getOr({});Mi(Y.outerContainer.element,{...Vo,...ys})})},Yn=(xo,Ea)=>Km(xo)?py(Ea):P.none(),br=()=>{fe(re,xo=>{xo.broadcastOn([tp()],{})})},Mr=()=>{if(Ee)return P.none();if(al(Y.outerContainer.element).left+Wu(Y.outerContainer.element)>=window.innerWidth-gK||Rs(Y.outerContainer.element,"width").isSome()){To(Y.outerContainer.element,"position","absolute"),To(Y.outerContainer.element,"left","0px"),Bo(Y.outerContainer.element,"width");const Ea=Wu(Y.outerContainer.element);return P.some(Ea)}else return P.none()},ea=xo=>{if(!Dn())return;Ee||Vn();const Ea=Ee?P.none():Mr();Mt&&Ss.refreshToolbar(Y.outerContainer),Ee||hr(Ea),Be&&z.on(xo),br()},Zr=()=>Ee||!Be||!Dn()?!1:z.get().exists(xo=>{const Ea=et.getDockingMode(),Ar=rn(xo);return Ar!==Ea?(kn(Ar),!0):!1});return{isVisible:Dn,isPositionedAtTop:st,show:()=>{Xt.set(!0),To(Y.outerContainer.element,"display","flex"),xe.addClass(t.getBody(),"mce-edit-focus"),fe(re,xo=>{Bo(xo.element,"display")}),Zr(),Km(t)?ea(xo=>Ti.isDocked(xo)?Ti.reset(xo):Ti.refresh(xo)):ea(Ti.refresh)},hide:()=>{Xt.set(!1),To(Y.outerContainer.element,"display","none"),xe.removeClass(t.getBody(),"mce-edit-focus"),fe(re,xo=>{To(xo.element,"display","none")})},update:ea,updateMode:()=>{Zr()&&ea(Ti.reset)},repositionPopups:br}},bN=(t,a)=>{const p=Js(t);return{pos:a?p.y:p.bottom,bounds:p}},vK=(t,a,p,E)=>{const z=q(bN(a,p.isPositionedAtTop())),Y=Be=>{const{pos:je,bounds:et}=bN(a,p.isPositionedAtTop()),{pos:st,bounds:mt}=z.get(),Mt=et.height!==mt.height||et.width!==mt.width;z.set({pos:je,bounds:et}),Mt&&nA(t,Be),p.isVisible()&&(st!==je?p.update(Ti.reset):Mt&&(p.updateMode(),p.repositionPopups()))};E||(t.on("activate",p.show),t.on("deactivate",p.hide)),t.on("SkinLoaded ResizeWindow",()=>p.update(Ti.reset)),t.on("NodeChange keydown",Be=>{requestAnimationFrame(()=>Y(Be))});let re=0;const xe=oL(()=>p.update(Ti.refresh),33);t.on("ScrollWindow",()=>{const Be=ll().left;Be!==re&&(re=Be,xe.throttle()),p.updateMode()}),Km(t)&&t.on("ElementScroll",Be=>{p.update(Ti.refresh)});const Ee=Oh();Ee.set(Pb(zt.fromDom(t.getBody()),"load",Be=>Y(Be.raw))),t.on("remove",()=>{Ee.clear()})};var yK=Object.freeze({__proto__:null,render:(t,a,p,E,z)=>{const{mainUi:Y}=a,re=ia(),xe=zt.fromDom(z.targetNode),Ee=pK(t,xe,a,E,re),Be=T8(t);MY(t);const je=()=>{if(re.isSet()){Ee.show();return}re.set(Ss.getHeader(Y.outerContainer).getOrDie());const st=p5(t);Km(t)?(Nh(xe,Y.mothership),Nh(xe,a.popupUi.mothership)):dl(st,Y.mothership),dl(st,a.dialogUi.mothership),VS(t,a,p,E),Ss.setMenubar(Y.outerContainer,EM(t,p)),Ee.show(),vK(t,xe,Ee,Be),t.nodeChanged()};t.on("show",je),t.on("hide",Ee.hide),Be||(t.on("focus",je),t.on("blur",Ee.hide)),t.on("init",()=>{(t.hasFocus()||Be)&&je()}),T7(t,a);const et={show:je,hide:Ee.hide,setEnabled:st=>{Qk(a,!st)},isEnabled:()=>!Co.isDisabled(Y.outerContainer)};return{editorContainer:Y.outerContainer.element.dom,api:et}}});const bK=()=>{const t=ia(),a=ia(),p=ia();return{dialogUi:t,popupUi:a,mainUi:p,getUiMotherships:()=>{const Y=t.get().map(xe=>xe.mothership),re=a.get().map(xe=>xe.mothership);return Y.fold(()=>re.toArray(),xe=>re.fold(()=>[xe],Ee=>Qt(xe.element,Ee.element)?[xe]:[xe,Ee]))},lazyGetInOuterOrDie:(Y,re)=>()=>p.get().bind(xe=>re(xe.outerContainer)).getOrDie(`Could not find ${Y} element in OuterContainer`)}},xK="contexttoolbar-show",OD="contexttoolbar-hide",wK=t=>({hide:()=>pa(t,wu()),getValue:()=>Fr.getValue(t)}),PD=(t,a)=>Xn(lL,(p,E)=>{const z=t.get(p),Y=wK(z);a.onAction(Y,E.event.buttonApi)}),CK=(t,a,p)=>{const{primary:E,...z}=a.original,Y=Ja(B5({...z,type:"button",onAction:C}));return hN(Y,p,[PD(t,a)])},SK=(t,a,p)=>{const{primary:E,...z}=a.original,Y=Ja(i7({...z,type:"togglebutton",onAction:C}));return RD(Y,p,[PD(t,a)])},TK=t=>t.type==="contextformtogglebutton",kK=(t,a,p)=>TK(a)?SK(t,a,p):CK(t,a,p),AK=(t,a,p)=>{const E=ne(a,re=>Qa(kK(t,re,p)));return{asSpecs:()=>ne(E,re=>re.asSpec()),findPrimary:re=>We(a,(xe,Ee)=>xe.primary?P.from(E[Ee]).bind(Be=>Be.getOpt(re)).filter(k(Co.isDisabled)):P.none())}},l2=(t,a)=>{const p=t.label.fold(()=>({}),Y=>({"aria-label":Y})),E=Qa(sy.sketch({inputClasses:["tox-toolbar-textfield","tox-toolbar-nav-js"],data:t.initValue(),inputAttributes:p,selectOnFocus:!0,inputBehaviours:gr([po.config({mode:"special",onEnter:Y=>z.findPrimary(Y).map(re=>(kh(re),!0)),onLeft:(Y,re)=>(re.cut(),P.none()),onRight:(Y,re)=>(re.cut(),P.none())})])})),z=AK(E,t.commands,a);return[{title:P.none(),items:[E.asSpec()]},{title:P.none(),items:z.asSpecs()}]},EK={renderContextForm:(t,a,p)=>SM({type:t,uid:Xr("context-toolbar"),initGroups:l2(a,p),onEscape:P.none,cyclicKeying:!0,providers:p}),buildInitGroups:l2},xN=(t,a,p)=>a.bottom-t.y>=p&&t.bottom-a.y>=p,wN=t=>{const a=t.getBoundingClientRect();if(a.height<=0&&a.width<=0){const p=bo(zt.fromDom(t.startContainer),t.startOffset).element;return(kt(p)?Bn(p):P.some(p)).filter(St).map(z=>z.dom.getBoundingClientRect()).getOr(a)}else return a},GS=t=>{const a=t.selection.getRng(),p=wN(a);if(t.inline){const E=ll();return Hs(E.left+p.left,E.top+p.top,p.width,p.height)}else{const E=Xc(zt.fromDom(t.getBody()));return Hs(E.x+p.left,E.y+p.top,p.width,p.height)}},CN=(t,a)=>a.filter(p=>Wa(p)&&De(p)).map(Xc).getOrThunk(()=>GS(t)),SN=(t,a,p)=>{const E=Math.max(t.x+p,a.x),z=Math.min(t.right-p,a.right);return{x:E,width:z-E}},_K=(t,a,p,E,z,Y)=>{const re=zt.fromDom(t.getContainer()),xe=mi(re,".tox-editor-header").getOr(re),Ee=Js(xe),Be=Ee.y>=a.bottom,je=E&&!Be;if(t.inline&&je)return{y:Math.max(Ee.bottom+Y,p.y),bottom:p.bottom};if(t.inline&&!je)return{y:p.y,bottom:Math.min(Ee.y-Y,p.bottom)};const et=z==="line"?Js(re):a;return je?{y:Math.max(Ee.bottom+Y,p.y),bottom:Math.min(et.bottom-Y,p.bottom)}:{y:Math.max(et.y+Y,p.y),bottom:Math.min(Ee.y-Y,p.bottom)}},by=(t,a,p,E=0)=>{const z=B0(window),Y=Js(zt.fromDom(t.getContentAreaContainer())),re=Tx(t)||Fk(t)||HC(t),{x:xe,width:Ee}=SN(Y,z,E);if(t.inline&&!re)return Hs(xe,z.y,Ee,z.height);{const Be=a.header.isPositionedAtTop(),{y:je,bottom:et}=_K(t,Y,z,Be,p,E);return Hs(xe,je,Ee,et-je)}},xy=12,NM={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"],inset:["tox-pop--inset"]},ID={maxHeightFunction:pv(),maxWidthFunction:iD()},TN=(t,a)=>{const p=t.selection.getRng(),E=bo(zt.fromDom(p.startContainer),p.startOffset);return p.startContainer===p.endContainer&&p.startOffset===p.endOffset-1&&Qt(E.element,a)},RK=(t,a,p)=>{const E=Rs(t,"position");To(t,"position",a);const z=p(t);return E.each(Y=>To(t,"position",Y)),z},ND=t=>t==="node",LK=(t,a,p,E,z)=>{const Y=GS(t),re=E.lastElement().exists(xe=>Qt(p,xe));if(TN(t,p))return re?_L:eh;if(re)return RK(a,E.getMode(),()=>xN(Y,Js(a),-20)&&!E.isReposition()?bZ:_L);{const xe=E.getMode()==="fixed"?z.y+ll().top:z.y,Ee=Ls(a)+xy;return xe+Ee<=Y.y?eh:Jx}},DK=(t,a,p,E)=>{const z=Ee=>(Be,je,et,st,mt)=>{const Mt=LK(t,st,Ee,p,mt),Xt={...Be,y:mt.y,height:mt.height};return{...Mt(Xt,je,et,st,mt),alwaysFit:!0}},Y=Ee=>ND(E)?[z(Ee)]:[];return a?{onLtr:Ee=>[Yi,ji,Ml,Cc,Il,oc].concat(Y(Ee)),onRtl:Ee=>[Yi,Ml,ji,Il,Cc,oc].concat(Y(Ee))}:{onLtr:Ee=>[oc,Yi,Cc,ji,Il,Ml].concat(Y(Ee)),onRtl:Ee=>[oc,Yi,Il,Ml,Cc,ji].concat(Y(Ee))}},$K=(t,a,p,E)=>a==="line"?{bubble:Nd(xy,0,NM),layouts:{onLtr:()=>[gw],onRtl:()=>[m1]},overrides:ID}:{bubble:Nd(0,xy,NM,1/xy),layouts:DK(t,p,E,a),overrides:ID},FD=(t,a)=>{const p=Ce(a,Y=>Y.predicate(t.dom)),{pass:E,fail:z}=ye(p,Y=>Y.type==="contexttoolbar");return{contextToolbars:E,contextForms:z}},OK=t=>{if(t.length<=1)return t;{const a=Y=>ge(t,re=>re.position===Y),p=Y=>Ce(t,re=>re.position===Y),E=a("selection"),z=a("node");if(E||z)if(z&&E){const Y=p("node"),re=ne(p("selection"),xe=>({...xe,position:"node"}));return Y.concat(re)}else return p(E?"selection":"node");else return p("line")}},kN=t=>{if(t.length<=1)return t;{const a=E=>Ve(t,z=>z.position===E);return a("selection").orThunk(()=>a("node")).orThunk(()=>a("line")).map(E=>E.position).fold(()=>[],E=>Ce(t,z=>z.position===E))}},FM=(t,a,p)=>{const E=FD(t,a);if(E.contextForms.length>0)return P.some({elem:t,toolbars:[E.contextForms[0]]});{const z=FD(t,p);if(z.contextForms.length>0)return P.some({elem:t,toolbars:[z.contextForms[0]]});if(E.contextToolbars.length>0||z.contextToolbars.length>0){const Y=OK(E.contextToolbars.concat(z.contextToolbars));return P.some({elem:t,toolbars:Y})}else return P.none()}},AN=(t,a,p)=>t(a)?P.none():Kt(a,E=>{if(St(E)){const{contextToolbars:z,contextForms:Y}=FD(E,p.inNodeScope),re=Y.length>0?Y:kN(z);return re.length>0?P.some({elem:E,toolbars:re}):P.none()}else return P.none()},t),MN=(t,a)=>{const p=zt.fromDom(a.getBody()),E=re=>Qt(re,p),z=re=>!E(re)&&!nn(p,re),Y=zt.fromDom(a.selection.getNode());return z(Y)?P.none():FM(Y,t.inNodeScope,t.inEditorScope).orThunk(()=>AN(E,Y,t))},BD=(t,a)=>{const p={},E=[],z=[],Y={},re={},xe=(je,et)=>{const st=Ja(dV(et));p[je]=st,st.launch.map(mt=>{Y["form:"+je]={...et.launch,type:mt.type==="contextformtogglebutton"?"togglebutton":"button",onAction:()=>{a(st)}}}),st.scope==="editor"?z.push(st):E.push(st),re[je]=st},Ee=(je,et)=>{mV(et).each(st=>{et.scope==="editor"?z.push(st):E.push(st),re[je]=st})},Be=ot(t);return fe(Be,je=>{const et=t[je];et.type==="contextform"?xe(je,et):et.type==="contexttoolbar"&&Ee(je,et)}),{forms:p,inNodeScope:E,inEditorScope:z,lookupTable:re,formNavigators:Y}},EN=Xr("forward-slide"),HD=Xr("backward-slide"),zD=Xr("change-slide-event"),VD="tox-pop--resizing",BM=t=>{const a=q([]);return Ws.sketch({dom:{tag:"div",classes:["tox-pop"]},fireDismissalEventInstead:{event:"doNotDismissYet"},onShow:p=>{a.set([]),Ws.getContent(p).each(E=>{Bo(E.element,"visibility")}),Is(p.element,VD),Bo(p.element,"width")},inlineBehaviours:gr([jo("context-toolbar-events",[Ed(Ii(),(p,E)=>{E.event.raw.propertyName==="width"&&(Is(p.element,VD),Bo(p.element,"width"))}),Xn(zD,(p,E)=>{const z=p.element;Bo(z,"width");const Y=ci(z);Ws.setContent(p,E.event.contents),hi(z,VD);const re=ci(z);To(z,"width",Y+"px"),Ws.getContent(p).each(xe=>{E.event.focus.bind(Ee=>(Ic(Ee),Sf(z))).orThunk(()=>(po.focusIn(xe),Id(Yo(z))))}),setTimeout(()=>{To(p.element,"width",re+"px")},0)}),Xn(EN,(p,E)=>{Ws.getContent(p).each(z=>{a.set(a.get().concat([{bar:z,focus:Id(Yo(p.element))}]))}),go(p,zD,{contents:E.event.forwardContents,focus:P.none()})}),Xn(HD,(p,E)=>{Re(a.get()).each(z=>{a.set(a.get().slice(0,a.get().length-1)),go(p,zD,{contents:Tu(z.bar),focus:z.focus})})})]),po.config({mode:"special",onEscape:p=>Re(a.get()).fold(()=>t.onEscape(),E=>(pa(p,HD),P.some(!0)))})]),lazySink:()=>Wo.value(t.sink)})},HM="tox-pop--transition",PK=(t,a,p,E)=>{const z=E.backstage,Y=z.shared,re=hf().deviceType.isTouch,xe=ia(),Ee=ia(),Be=ia(),je=Pl(BM({sink:p,onEscape:()=>(t.focus(),P.some(!0))})),et=()=>{const Zr=Be.get().getOr("node"),Do=ND(Zr)?1:0;return by(t,Y,Zr,Do)},st=()=>!t.removed&&!(re()&&z.isContextMenuOpen()),mt=Zr=>sn(jn(Zr,xe.get(),Qt),!0),Mt=()=>{if(st()){const Zr=et(),Do=sn(Be.get(),"node")?CN(t,xe.get()):GS(t);return Zr.height<=0||!xN(Do,Zr,.01)}else return!0},Xt=()=>{xe.clear(),Ee.clear(),Be.clear(),Ws.hide(je)},Dn=()=>{if(Ws.isOpen(je)){const Zr=je.element;Bo(Zr,"display"),Mt()?To(Zr,"display","none"):(Ee.set(0),Ws.reposition(je))}},hn=Zr=>({dom:{tag:"div",classes:["tox-pop__dialog"]},components:[Zr],behaviours:gr([po.config({mode:"acyclic"}),jo("pop-dialog-wrap-events",[ms(Do=>{t.shortcuts.add("ctrl+F9","focus statusbar",()=>po.focusIn(Do))}),_d(Do=>{t.shortcuts.remove("ctrl+F9")})])])}),rn=Ps(()=>BD(a,Zr=>{const Do=hr([Zr]);go(je,EN,{forwardContents:hn(Do)})})),kn=(Zr,Do)=>OM(t,{buttons:Zr,toolbar:Do.items,allowToolbarGroups:!1},E.backstage,P.some(["form:"])),Vn=(Zr,Do)=>EK.buildInitGroups(Zr,Do),hr=Zr=>{const{buttons:Do}=t.ui.registry.getAll(),Mo=rn(),ja={...Do,...Mo.formNavigators},xo=Cx(t)===af.scrolling?af.scrolling:af.default,Ea=Fe(ne(Zr,Ar=>Ar.type==="contexttoolbar"?kn(ja,Ar):Vn(Ar,Y.providers)));return SM({type:xo,uid:Xr("context-toolbar"),initGroups:Ea,onEscape:P.none,cyclicKeying:!0,providers:Y.providers})},Yn=(Zr,Do)=>{const Mo=Zr==="node"?Y.anchors.node(Do):Y.anchors.cursor(),ja=$K(t,Zr,re(),{lastElement:xe.get,isReposition:()=>sn(Ee.get(),0),getMode:()=>Nl.getMode(p)});return hs(Mo,ja)},br=(Zr,Do)=>{if(ea.cancel(),!st())return;const Mo=hr(Zr),ja=Zr[0].position,xo=Yn(ja,Do);Be.set(ja),Ee.set(1);const Ea=je.element;Bo(Ea,"display"),mt(Do)||(Is(Ea,HM),Nl.reset(p,je)),Ws.showWithinBounds(je,hn(Mo),{anchor:xo,transition:{classes:[HM],mode:"placement"}},()=>P.some(et())),Do.fold(xe.clear,xe.set),Mt()&&To(Ea,"display","none")};let Mr=!1;const ea=oL(()=>{if(!(!t.hasFocus()||t.removed||Mr))if(Ni(je.element,HM))ea.throttle();else{const Zr=rn();MN(Zr,t).fold(Xt,Do=>{br(Do.toolbars,P.some(Do.elem))})}},17);t.on("init",()=>{t.on("remove",Xt),t.on("ScrollContent ScrollWindow ObjectResized ResizeEditor longpress",Dn),t.on("click keyup focus SetContent",ea.throttle),t.on(OD,Xt),t.on(xK,Zr=>{const Do=rn();Ft(Do.lookupTable,Zr.toolbarKey).each(Mo=>{br([Mo],lt(Zr.target!==t,Zr.target)),Ws.getContent(je).each(po.focusIn)})}),t.on("focusout",Zr=>{ty.setEditorTimeout(t,()=>{Sf(p.element).isNone()&&Sf(je.element).isNone()&&Xt()},0)}),t.on("SwitchMode",()=>{t.mode.isReadOnly()&&Xt()}),t.on("AfterProgressState",Zr=>{Zr.state?Xt():t.hasFocus()&&ea.throttle()}),t.on("dragstart",()=>{Mr=!0}),t.on("dragend drop",()=>{Mr=!1}),t.on("NodeChange",Zr=>{Sf(je.element).fold(ea.throttle,C)})})},IK=t=>{fe([{name:"alignleft",text:"Align left",cmd:"JustifyLeft",icon:"align-left"},{name:"aligncenter",text:"Align center",cmd:"JustifyCenter",icon:"align-center"},{name:"alignright",text:"Align right",cmd:"JustifyRight",icon:"align-right"},{name:"alignjustify",text:"Justify",cmd:"JustifyFull",icon:"align-justify"}],p=>{t.ui.registry.addToggleButton(p.name,{tooltip:p.text,icon:p.icon,onAction:Du(t,p.cmd),onSetup:rA(t,p.name)})}),t.ui.registry.addButton("alignnone",{tooltip:"No alignment",icon:"align-none",onSetup:Vc(t),onAction:Du(t,"JustifyNone")})},_N=(t,a)=>{const p=()=>{const E=a.getOptions(t),z=a.getCurrent(t).map(a.hash),Y=ia();return ne(E,re=>({type:"togglemenuitem",text:a.display(re),onSetup:xe=>{const Ee=je=>{je&&(Y.on(et=>et.setActive(!1)),Y.set(xe)),xe.setActive(je)};Ee(sn(z,a.hash(re)));const Be=a.watcher(t,re,Ee);return()=>{Y.clear(),Be()}},onAction:()=>a.setCurrent(t,re)}))};t.ui.registry.addMenuButton(a.name,{tooltip:a.text,icon:a.icon,fetch:E=>E(p()),onSetup:a.onToolbarSetup}),t.ui.registry.addNestedMenuItem(a.name,{type:"nestedmenuitem",text:a.text,getSubmenuItems:p,onSetup:a.onMenuSetup})},NK=t=>({name:"lineheight",text:"Line height",icon:"line-height",getOptions:D8,hash:a=>NY(a,["fixed","relative","empty"]).getOr(a),display:D,watcher:(a,p,E)=>a.formatter.formatChanged("lineheight",E,!1,{value:p}).unbind,getCurrent:a=>P.from(a.queryCommandValue("LineHeight")),setCurrent:(a,p)=>a.execCommand("LineHeight",!1,p),onToolbarSetup:Vc(t),onMenuSetup:Vc(t)}),FK=t=>P.from(C8(t)).map(p=>({name:"language",text:"Language",icon:"language",getOptions:O(p),hash:E=>i(E.customCode)?E.code:`${E.code}/${E.customCode}`,display:E=>E.title,watcher:(E,z,Y)=>{var re;return E.formatter.formatChanged("lang",Y,!1,{value:z.code,customValue:(re=z.customCode)!==null&&re!==void 0?re:null}).unbind},getCurrent:E=>{const z=zt.fromDom(E.selection.getNode());return en(z,Y=>P.some(Y).filter(St).bind(re=>yi(re,"lang").map(Ee=>{const Be=yi(re,"data-mce-lang").getOrUndefined();return{code:Ee,customCode:Be,title:""}})))},setCurrent:(E,z)=>E.execCommand("Lang",!1,z),onToolbarSetup:E=>{const z=Oh();return E.setActive(t.formatter.match("lang",{},void 0,!0)),z.set(t.formatter.formatChanged("lang",E.setActive,!0)),qC(z.clear,Vc(t)(E))},onMenuSetup:Vc(t)})),RN=t=>{_N(t,NK(t)),FK(t).each(a=>_N(t,a))},LN=(t,a)=>{_Y(t,a),OY(t,a),cN(t,a),LY(t,a),YY(t,a)},BK=t=>Yd(t,"NodeChange",a=>{a.setEnabled(t.queryCommandState("outdent")&&t.selection.isEditable())}),HK=t=>{t.ui.registry.addButton("outdent",{tooltip:"Decrease indent",icon:"outdent",onSetup:BK(t),onAction:Du(t,"outdent")}),t.ui.registry.addButton("indent",{tooltip:"Increase indent",icon:"indent",onSetup:Vc(t),onAction:Du(t,"indent")})},DN=t=>{HK(t)},$N=(t,a)=>p=>{p.setActive(a.get());const E=z=>{a.set(z.state),p.setActive(z.state)};return t.on("PastePlainTextToggle",E),qC(()=>t.off("PastePlainTextToggle",E),Vc(t)(p))},zK=t=>{const a=q(Ok(t)),p=()=>t.execCommand("mceTogglePlainTextPaste");t.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:p,onSetup:$N(t,a)}),t.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:p,onSetup:$N(t,a)})},UD=(t,a)=>()=>{t.execCommand("mceToggleFormat",!1,a)},VK=t=>{ig.each([{name:"bold",text:"Bold",icon:"bold"},{name:"italic",text:"Italic",icon:"italic"},{name:"underline",text:"Underline",icon:"underline"},{name:"strikethrough",text:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",icon:"superscript"}],(a,p)=>{t.ui.registry.addToggleButton(a.name,{tooltip:a.text,icon:a.icon,onSetup:rA(t,a.name),onAction:UD(t,a.name)})});for(let a=1;a<=6;a++){const p="h"+a;t.ui.registry.addToggleButton(p,{text:p.toUpperCase(),tooltip:"Heading "+a,onSetup:rA(t,p),onAction:UD(t,p)})}},UK=t=>{ig.each([{name:"copy",text:"Copy",action:"Copy",icon:"copy"},{name:"help",text:"Help",action:"mceHelp",icon:"help"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all"},{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"print",text:"Print",action:"mcePrint",icon:"print"}],a=>{t.ui.registry.addButton(a.name,{tooltip:a.text,icon:a.icon,onAction:Du(t,a.action)})}),ig.each([{name:"cut",text:"Cut",action:"Cut",icon:"cut"},{name:"paste",text:"Paste",action:"Paste",icon:"paste"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"remove",text:"Remove",action:"Delete",icon:"remove"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],a=>{t.ui.registry.addButton(a.name,{tooltip:a.text,icon:a.icon,onSetup:Vc(t),onAction:Du(t,a.action)})})},WD=t=>{ig.each([{name:"blockquote",text:"Blockquote",action:"mceBlockQuote",icon:"quote"}],a=>{t.ui.registry.addToggleButton(a.name,{tooltip:a.text,icon:a.icon,onAction:Du(t,a.action),onSetup:rA(t,a.name)})})},WK=t=>{VK(t),UK(t),WD(t)},GK=t=>{ig.each([{name:"newdocument",text:"New document",action:"mceNewDocument",icon:"new-document"},{name:"copy",text:"Copy",action:"Copy",icon:"copy",shortcut:"Meta+C"},{name:"selectall",text:"Select all",action:"SelectAll",icon:"select-all",shortcut:"Meta+A"},{name:"print",text:"Print...",action:"mcePrint",icon:"print",shortcut:"Meta+P"}],a=>{t.ui.registry.addMenuItem(a.name,{text:a.text,icon:a.icon,shortcut:a.shortcut,onAction:Du(t,a.action)})}),ig.each([{name:"bold",text:"Bold",action:"Bold",icon:"bold",shortcut:"Meta+B"},{name:"italic",text:"Italic",action:"Italic",icon:"italic",shortcut:"Meta+I"},{name:"underline",text:"Underline",action:"Underline",icon:"underline",shortcut:"Meta+U"},{name:"strikethrough",text:"Strikethrough",action:"Strikethrough",icon:"strike-through"},{name:"subscript",text:"Subscript",action:"Subscript",icon:"subscript"},{name:"superscript",text:"Superscript",action:"Superscript",icon:"superscript"},{name:"removeformat",text:"Clear formatting",action:"RemoveFormat",icon:"remove-formatting"},{name:"cut",text:"Cut",action:"Cut",icon:"cut",shortcut:"Meta+X"},{name:"paste",text:"Paste",action:"Paste",icon:"paste",shortcut:"Meta+V"},{name:"hr",text:"Horizontal line",action:"InsertHorizontalRule",icon:"horizontal-rule"}],a=>{t.ui.registry.addMenuItem(a.name,{text:a.text,icon:a.icon,shortcut:a.shortcut,onSetup:Vc(t),onAction:Du(t,a.action)})}),t.ui.registry.addMenuItem("codeformat",{text:"Code",icon:"sourcecode",onSetup:Vc(t),onAction:UD(t,"code")})},GD=t=>{WK(t),GK(t)},ZS=(t,a)=>Yd(t,"Undo Redo AddUndo TypingUndo ClearUndos SwitchMode",p=>{p.setEnabled(!t.mode.isReadOnly()&&t.undoManager[a]())}),ON=t=>{t.ui.registry.addMenuItem("undo",{text:"Undo",icon:"undo",shortcut:"Meta+Z",onSetup:ZS(t,"hasUndo"),onAction:Du(t,"undo")}),t.ui.registry.addMenuItem("redo",{text:"Redo",icon:"redo",shortcut:"Meta+Y",onSetup:ZS(t,"hasRedo"),onAction:Du(t,"redo")})},ZK=t=>{t.ui.registry.addButton("undo",{tooltip:"Undo",icon:"undo",enabled:!1,onSetup:ZS(t,"hasUndo"),onAction:Du(t,"undo")}),t.ui.registry.addButton("redo",{tooltip:"Redo",icon:"redo",enabled:!1,onSetup:ZS(t,"hasRedo"),onAction:Du(t,"redo")})},jK=t=>{ON(t),ZK(t)},YK=t=>Yd(t,"VisualAid",a=>{a.setActive(t.hasVisual)}),KK=t=>{t.ui.registry.addToggleMenuItem("visualaid",{text:"Visual aids",onSetup:YK(t),onAction:Du(t,"mceToggleVisualAid")})},XK=t=>{t.ui.registry.addButton("visualaid",{tooltip:"Visual aids",text:"Visual aids",onAction:Du(t,"mceToggleVisualAid")})},ZD=t=>{XK(t),KK(t)},JK=(t,a)=>{IK(t),GD(t),LN(t,a),jK(t),gR(t),ZD(t),DN(t),RN(t),zK(t)},PN=t=>A(t)?t.split(/[ ,]/):t,IN=t=>a=>a.options.get(t),QK=t=>{const a=t.options.register;a("contextmenu_avoid_overlap",{processor:"string",default:""}),a("contextmenu_never_use_native",{processor:"boolean",default:!1}),a("contextmenu",{processor:p=>p===!1?{value:[],valid:!0}:A(p)||x(p,A)?{value:PN(p),valid:!0}:{valid:!1,message:"Must be false or a string."},default:"link linkchecker image editimage table spellchecker configurepermanentpen"})},zM=IN("contextmenu_never_use_native"),qK=IN("contextmenu_avoid_overlap"),NN=t=>FN(t).length===0,FN=t=>{const a=t.ui.registry.getAll().contextMenus,p=t.options.get("contextmenu");return t.options.isSet("contextmenu")?p:Ce(p,E=>pn(a,E))},jS=(t,a)=>({type:"makeshift",x:t,y:a}),jD=(t,a,p)=>jS(t.x+a,t.y+p),BN=t=>t.type==="longpress"||t.type.indexOf("touch")===0,eX=t=>{if(BN(t)){const a=t.touches[0];return jS(a.pageX,a.pageY)}else return jS(t.pageX,t.pageY)},tX=t=>{if(BN(t)){const a=t.touches[0];return jS(a.clientX,a.clientY)}else return jS(t.clientX,t.clientY)},nX=(t,a)=>{const p=oy.DOM.getPos(t);return jD(a,p.x,p.y)},rX=(t,a)=>a.type==="contextmenu"||a.type==="longpress"?t.inline?eX(a):nX(t.getContentAreaContainer(),tX(a)):YD(t),YD=t=>({type:"selection",root:zt.fromDom(t.selection.getNode())}),oX=t=>({type:"node",node:P.some(zt.fromDom(t.selection.getNode())),root:zt.fromDom(t.getBody())}),HN=(t,a,p)=>{switch(p){case"node":return oX(t);case"point":return rX(t,a);case"selection":return YD(t)}},aX=(t,a,p,E,z,Y)=>{const re=p(),xe=HN(t,a,Y);jx(re,Yh.CLOSE_ON_EXECUTE,E,{isHorizontalMenu:!1,search:P.none()}).map(Ee=>{a.preventDefault(),Ws.showMenuAt(z,{anchor:xe},{menu:{markers:fp("normal")},data:Ee})})},sX={onLtr:()=>[Yi,ji,Ml,Cc,Il,oc,eh,Jx,_S,ES,gy,MS],onRtl:()=>[Yi,Ml,ji,Il,Cc,oc,eh,Jx,gy,MS,_S,ES]},iX=12,lX={valignCentre:[],alignCentre:[],alignLeft:["tox-pop--align-left"],alignRight:["tox-pop--align-right"],right:["tox-pop--right"],left:["tox-pop--left"],bottom:["tox-pop--bottom"],top:["tox-pop--top"]},cX=(t,a)=>{const p=t.selection;if(p.isCollapsed()||a.touches.length<1)return!1;{const E=a.touches[0],z=p.getRng();return Ww(t.getWin(),fl.domRange(z)).exists(re=>re.left<=E.clientX&&re.right>=E.clientX&&re.top<=E.clientY&&re.bottom>=E.clientY)}},uX=t=>{const a=t.selection.getRng(),p=()=>{ty.setEditorTimeout(t,()=>{t.selection.setRng(a)},10),Y()};t.once("touchend",p);const E=re=>{re.preventDefault(),re.stopImmediatePropagation()};t.on("mousedown",E,!0);const z=()=>Y();t.once("longpresscancel",z);const Y=()=>{t.off("touchend",p),t.off("longpresscancel",z),t.off("mousedown",E)}},zN=(t,a,p)=>{const E=HN(t,a,p);return{bubble:Nd(0,p==="point"?iX:0,lX),layouts:sX,overrides:{maxWidthFunction:iD(),maxHeightFunction:pv()},...E}},fX=(t,a,p,E,z,Y,re)=>{const xe=zN(t,a,Y);jx(p,Yh.CLOSE_ON_EXECUTE,E,{isHorizontalMenu:!0,search:P.none()}).map(Ee=>{a.preventDefault();const Be=re?zc.HighlightMenuAndItem:zc.HighlightNone;Ws.showMenuWithinBounds(z,{anchor:xe},{menu:{markers:fp("normal"),highlightOnOpen:Be},data:Ee,type:"horizontal"},()=>P.some(by(t,E.shared,Y==="node"?"node":"selection"))),t.dispatch(OD)})},VN=(t,a,p,E,z,Y)=>{const re=hf(),xe=re.os.isiOS(),Ee=re.os.isMacOS(),Be=re.os.isAndroid(),je=re.deviceType.isTouch(),et=()=>!(Be||xe||Ee&&je),st=()=>{const mt=p();fX(t,a,mt,E,z,Y,et())};if((Ee||xe)&&Y!=="node"){const mt=()=>{uX(t),st()};cX(t,a)?mt():(t.once("selectionchange",mt),t.once("touchend",()=>t.off("selectionchange",mt)))}else st()},UN=t=>A(t)?t==="|":t.type==="separator",KD={type:"separator"},WN=t=>{const a=p=>({text:p.text,icon:p.icon,enabled:p.enabled,shortcut:p.shortcut});if(A(t))return t;switch(t.type){case"separator":return KD;case"submenu":return{type:"nestedmenuitem",...a(t),getSubmenuItems:()=>{const E=t.getSubmenuItems();return A(E)?E:ne(E,WN)}};default:const p=t;return{type:"menuitem",...a(p),onAction:_(p.onAction)}}},u0=(t,a)=>{if(a.length===0)return t;const E=Re(t).filter(z=>!UN(z)).fold(()=>[],z=>[KD]);return t.concat(E).concat(a).concat([KD])},GN=(t,a,p)=>{const E=ke(a,(z,Y)=>Ft(t,Y.toLowerCase()).map(re=>{const xe=re.update(p);if(A(xe)&&fn(Et(xe)))return u0(z,xe.split(" "));if(h(xe)&&xe.length>0){const Ee=ne(xe,WN);return u0(z,Ee)}else return z}).getOrThunk(()=>z.concat([Y])),[]);return E.length>0&&UN(E[E.length-1])&&E.pop(),E},dX=(t,a)=>a.ctrlKey&&!zM(t),hX=t=>t.type==="longpress"||pn(t,"touches"),ZN=(t,a)=>!hX(a)&&(a.button!==2||a.target===t.getBody()&&a.pointerType===""),jN=(t,a)=>ZN(t,a)?t.selection.getStart(!0):a.target,YN=(t,a)=>{const p=qK(t),E=ZN(t,a)?"selection":"point";if(fn(p)){const z=jN(t,a);return rS(zt.fromDom(z),p)?"node":E}else return E},mX=(t,a,p)=>{const z=hf().deviceType.isTouch,Y=Pl(Ws.sketch({dom:{tag:"div"},lazySink:a,onEscape:()=>t.focus(),onShow:()=>p.setContextMenuState(!0),onHide:()=>p.setContextMenuState(!1),fireDismissalEventInstead:{},inlineBehaviours:gr([jo("dismissContextMenu",[Xn(Tm(),(Ee,Be)=>{va.close(Ee),t.focus()})])])})),re=()=>Ws.hide(Y),xe=Ee=>{if(zM(t)&&Ee.preventDefault(),dX(t,Ee)||NN(t))return;const Be=YN(t,Ee),je=()=>{const st=jN(t,Ee),mt=t.ui.registry.getAll(),Mt=FN(t);return GN(mt.contextMenus,Mt,st)};(z()?VN:aX)(t,Ee,je,p,Y,Be)};t.on("init",()=>{const Ee="ResizeEditor ScrollContent ScrollWindow longpresscancel"+(z()?"":" ResizeWindow");t.on(Ee,re),t.on("longpress contextmenu",xe)})},XD=Ae.generate([{offset:["x","y"]},{absolute:["x","y"]},{fixed:["x","y"]}]),VM=t=>a=>a.translate(-t.left,-t.top),UM=t=>a=>a.translate(t.left,t.top),yp=t=>(a,p)=>ke(t,(E,z)=>z(E),Ma(a,p)),WM=(t,a,p)=>t.fold(yp([UM(p),VM(a)]),yp([VM(a)]),yp([])),c2=(t,a,p)=>t.fold(yp([UM(p)]),yp([]),yp([UM(a)])),KN=(t,a,p)=>t.fold(yp([]),yp([VM(p)]),yp([UM(a),VM(p)])),gX=(t,a,p,E,z,Y)=>{const re=c2(t,z,Y),xe=c2(a,z,Y);return Math.abs(re.left-xe.left)<=p&&Math.abs(re.top-xe.top)<=E},pX=(t,a,p,E,z,Y)=>{const re=c2(t,z,Y),xe=c2(a,z,Y),Ee=Math.abs(re.left-xe.left),Be=Math.abs(re.top-xe.top);return Ma(Ee,Be)},JD=(t,a,p)=>{const E=t.fold((z,Y)=>({position:P.some("absolute"),left:P.some(z+"px"),top:P.some(Y+"px")}),(z,Y)=>({position:P.some("absolute"),left:P.some(z-p.left+"px"),top:P.some(Y-p.top+"px")}),(z,Y)=>({position:P.some("fixed"),left:P.some(z+"px"),top:P.some(Y+"px")}));return{right:P.none(),bottom:P.none(),...E}},XN=(t,a,p)=>t.fold((E,z)=>f0(E+a,z+p),(E,z)=>d0(E+a,z+p),(E,z)=>wy(E+a,z+p)),QD=(t,a,p,E)=>{const z=(Y,re)=>(xe,Ee)=>{const Be=Y(a,p,E);return re(xe.getOr(Be.left),Ee.getOr(Be.top))};return t.fold(z(KN,f0),z(c2,d0),z(WM,wy))},f0=XD.offset,d0=XD.absolute,wy=XD.fixed,GM=(t,a)=>{const p=Ka(t,a);return i(p)?NaN:parseInt(p,10)},vX=(t,a)=>{const p=t.element,E=GM(p,a.leftAttr),z=GM(p,a.topAttr);return isNaN(E)||isNaN(z)?P.none():P.some(Ma(E,z))},yX=(t,a,p)=>{const E=t.element;Lr(E,a.leftAttr,p.left+"px"),Lr(E,a.topAttr,p.top+"px")},bX=(t,a)=>{const p=t.element;Xa(p,a.leftAttr),Xa(p,a.topAttr)},xX=(t,a,p,E)=>vX(t,a).fold(()=>p,z=>wy(z.left+E.left,z.top+E.top)),wX=(t,a,p,E,z,Y)=>{const re=xX(t,a,p,E),xe=a.mustSnap?SX(t,a,re,z,Y):TX(t,a,re,z,Y),Ee=WM(re,z,Y);return yX(t,a,Ee),xe.fold(()=>({coord:wy(Ee.left,Ee.top),extra:P.none()}),Be=>({coord:Be.output,extra:Be.extra}))},CX=(t,a)=>{bX(t,a)},JN=(t,a,p,E)=>We(t,z=>{const Y=z.sensor;return gX(a,Y,z.range.left,z.range.top,p,E)?P.some({output:QD(z.output,a,p,E),extra:z.extra}):P.none()}),SX=(t,a,p,E,z)=>{const Y=a.getSnapPoints(t);return JN(Y,p,E,z).orThunk(()=>ke(Y,(Ee,Be)=>{const je=Be.sensor,et=pX(p,je,Be.range.left,Be.range.top,E,z);return Ee.deltas.fold(()=>({deltas:P.some(et),snap:P.some(Be)}),st=>{const mt=(et.left+et.top)/2,Mt=(st.left+st.top)/2;return mt<=Mt?{deltas:P.some(et),snap:P.some(Be)}:Ee})},{deltas:P.none(),snap:P.none()}).snap.map(Ee=>({output:QD(Ee.output,p,E,z),extra:Ee.extra})))},TX=(t,a,p,E,z)=>{const Y=a.getSnapPoints(t);return JN(Y,p,E,z)},kX=(t,a,p)=>({coord:QD(t.output,t.output,a,p),extra:t.extra});var AX=Object.freeze({__proto__:null,snapTo:(t,a,p,E)=>{const z=a.getTarget(t.element);if(a.repositionTarget){const Y=Sn(t.element),re=ll(Y),xe=YI(z),Ee=kX(E,re,xe),Be=JD(Ee.coord,re,xe);ur(z,Be)}}});const qD="data-initial-z-index",MX=t=>{Bn(t.element).filter(St).each(a=>{yi(a,qD).fold(()=>Bo(a,"z-index"),p=>To(a,"z-index",p)),Xa(a,qD)})},EX=t=>{Bn(t.element).filter(St).each(a=>{Rs(a,"z-index").each(p=>{Lr(a,qD,p)}),To(a,"z-index",Ms(t.element,"z-index"))})},QN=(t,a)=>{t.getSystem().addToGui(a),EX(a)},_X=t=>{MX(t),t.getSystem().removeFromGui(t)},YS=(t,a,p)=>t.getSystem().build(Kh.sketch({dom:{styles:{left:"0px",top:"0px",width:"100%",height:"100%",position:"fixed","z-index":"1000000000000000"},classes:[a]},events:p}));var RX=Ql("snaps",[qn("getSnapPoints"),Sa("onSensor"),qn("leftAttr"),qn("topAttr"),En("lazyViewport",bl),En("mustSnap",!1)]);const e6=[En("useFixed",H),qn("blockerClass"),En("getTarget",D),En("onDrag",C),En("repositionTarget",!0),En("onDrop",C),bi("getBounds",bl),RX],LX=t=>Wn(Rs(t,"left"),Rs(t,"top"),Rs(t,"position"),(a,p,E)=>(E==="fixed"?wy:f0)(parseInt(a,10),parseInt(p,10))).getOrThunk(()=>{const a=al(t);return d0(a.left,a.top)}),DX=(t,a,p,E,z)=>{const Y=z.bounds,re=c2(a,p,E),xe=ku(re.left,Y.x,Y.x+Y.width-z.width),Ee=ku(re.top,Y.y,Y.y+Y.height-z.height),Be=d0(xe,Ee);return a.fold(()=>{const je=KN(Be,p,E);return f0(je.left,je.top)},O(Be),()=>{const je=WM(Be,p,E);return wy(je.left,je.top)})},$X=(t,a,p,E,z,Y,re)=>{const xe=a.fold(()=>{const Ee=XN(p,Y.left,Y.top),Be=WM(Ee,E,z);return wy(Be.left,Be.top)},Ee=>{const Be=wX(t,Ee,p,Y,E,z);return Be.extra.each(je=>{Ee.onSensor(t,je)}),Be.coord});return DX(t,xe,E,z,re)},OX=(t,a,p,E)=>{const z=a.getTarget(t.element);if(a.repositionTarget){const Y=Sn(t.element),re=ll(Y),xe=YI(z),Ee=LX(z),Be=$X(t,a.snaps,Ee,re,xe,E,p),je=JD(Be,re,xe);ur(z,je)}a.onDrag(t,z,E)},t6=(t,a)=>({bounds:t.getBounds(),height:cu(a.element),width:Wu(a.element)}),n6=(t,a,p,E,z)=>{const Y=p.update(E,z),re=p.getStartData().getOrThunk(()=>t6(a,t));Y.each(xe=>{OX(t,a,re,xe)})},qN=(t,a,p,E)=>{a.each(_X),p.snaps.each(Y=>{CX(t,Y)});const z=p.getTarget(t.element);E.reset(),p.onDrop(t,z)},r6=t=>(a,p)=>{const E=z=>{p.setStartData(t6(a,z))};return bs([Xn(Md(),z=>{p.getStartData().each(()=>E(z))}),...t(a,p,E)])},PX=t=>bs([Xn(fo(),t.forceDrop),Xn(is(),t.drop),Xn(Ha(),(a,p)=>{t.move(p.event)}),Xn(Vs(),t.delayDrop)]);var tF=Object.freeze({__proto__:null,getData:t=>P.from(Ma(t.x,t.y)),getDelta:(t,a)=>Ma(a.left-t.left,a.top-t.top)});const nF=(t,a,p)=>[Xn(fo(),(E,z)=>{if(z.event.raw.button!==0)return;z.stop();const re=()=>qN(E,P.some(Be),t,a),xe=bO(re,200),Ee={drop:re,delayDrop:xe.schedule,forceDrop:re,move:et=>{xe.cancel(),n6(E,t,a,tF,et)}},Be=YS(E,t.blockerClass,PX(Ee));(()=>{p(E),QN(E,Be)})()})],IX=[...e6,rs("dragger",{handlers:r6(nF)})],NX=t=>bs([Xn(eo(),t.forceDrop),Xn(Ko(),t.drop),Xn(yo(),t.drop),Xn(lo(),(a,p)=>{t.move(p.event)})]),FX=t=>{const a=t[0];return P.some(Ma(a.clientX,a.clientY))};var rF=Object.freeze({__proto__:null,getData:t=>{const p=t.raw.touches;return p.length===1?FX(p):P.none()},getDelta:(t,a)=>Ma(a.left-t.left,a.top-t.top)});const oF=(t,a,p)=>{const E=ia(),z=Y=>{qN(Y,E.get(),t,a),E.clear()};return[Xn(eo(),(Y,re)=>{re.stop();const xe=()=>z(Y),Ee={drop:xe,delayDrop:C,forceDrop:xe,move:et=>{n6(Y,t,a,rF,et)}},Be=YS(Y,t.blockerClass,NX(Ee));E.set(Be),(()=>{p(Y),QN(Y,Be)})()}),Xn(lo(),(Y,re)=>{re.stop(),n6(Y,t,a,rF,re.event)}),Xn(Ko(),(Y,re)=>{re.stop(),z(Y)}),Xn(yo(),z)]},BX=[...e6,rs("dragger",{handlers:r6(oF)})],HX=(t,a,p)=>[...nF(t,a,p),...oF(t,a,p)],zX=[...e6,rs("dragger",{handlers:r6(HX)})];var VX=Object.freeze({__proto__:null,mouse:IX,touch:BX,mouseOrTouch:zX}),UX=Object.freeze({__proto__:null,init:()=>{let t=P.none(),a=P.none();const p=()=>{t=P.none(),a=P.none()},E=(Ee,Be)=>{const je=t.map(et=>Ee.getDelta(et,Be));return t=P.some(Be),je},z=(Ee,Be)=>Ee.getData(Be).bind(je=>E(Ee,je)),Y=Ee=>{a=P.some(Ee)},re=()=>a,xe=O({});return Qc({readState:xe,reset:p,update:z,getStartData:re,setStartData:Y})}});const h0=Ob({branchKey:"mode",branches:VX,name:"dragging",active:{events:(t,a)=>t.dragger.handlers(t,a)},extra:{snap:t=>({sensor:t.sensor,range:t.range,output:t.output,extra:P.from(t.extra)})},state:UX,apis:AX}),o6=40,ZM=o6/2,aF=(t,a,p,E,z,Y)=>t.fold(()=>h0.snap({sensor:d0(p-ZM,E-ZM),range:Ma(z,Y),output:d0(P.some(p),P.some(E)),extra:{td:a}}),re=>{const xe=p-ZM,Ee=E-ZM,Be=o6,je=o6,et=re.element.dom.getBoundingClientRect();return h0.snap({sensor:d0(xe,Ee),range:Ma(Be,je),output:d0(P.some(p-et.width/2),P.some(E-et.height/2)),extra:{td:a}})}),sF=(t,a,p)=>{const E=(z,Y)=>z.exists(re=>Qt(re,Y));return{getSnapPoints:t,leftAttr:"data-drag-left",topAttr:"data-drag-top",onSensor:(z,Y)=>{const re=Y.td;E(a.get(),re)||(a.set(re),p(re))},mustSnap:!0}},iF=t=>Qa(hl.sketch({dom:{tag:"div",classes:["tox-selector"]},buttonBehaviours:gr([h0.config({mode:"mouseOrTouch",blockerClass:"blocker",snaps:t}),lS.config({})]),eventOrder:{mousedown:["dragging","alloy.base.behaviour"],touchstart:["dragging","alloy.base.behaviour"]}})),WX=(t,a)=>{const p=q([]),E=q([]),z=q(!1),Y=ia(),re=ia(),xe=br=>{const Mr=Xc(br);return aF(mt.getOpt(a),br,Mr.x,Mr.y,Mr.width,Mr.height)},Ee=()=>ne(p.get(),br=>xe(br)),Be=br=>{const Mr=Xc(br);return aF(Mt.getOpt(a),br,Mr.right,Mr.bottom,Mr.width,Mr.height)},je=()=>ne(E.get(),br=>Be(br)),et=sF(Ee,Y,br=>{re.get().each(Mr=>{t.dispatch("TableSelectorChange",{start:br,finish:Mr})})}),st=sF(je,re,br=>{Y.get().each(Mr=>{t.dispatch("TableSelectorChange",{start:Mr,finish:br})})}),mt=iF(et),Mt=iF(st),Xt=Pl(mt.asSpec()),Dn=Pl(Mt.asSpec()),hn=(br,Mr,ea,Zr)=>{const Do=Mr.dom.getBoundingClientRect();Bo(br.element,"display");const Mo=Qn(zt.fromDom(t.getBody())).dom.innerHeight,ja=ea(Do),xo=Zr(Do,Mo);(ja||xo)&&To(br.element,"display","none")},rn=(br,Mr,ea,Zr)=>{const Do=ea(Mr);h0.snapTo(br,Do),hn(br,Mr,xo=>xo[Zr]<0,(xo,Ea)=>xo[Zr]>Ea)},kn=br=>rn(Xt,br,xe,"top"),Vn=()=>Y.get().each(kn),hr=br=>rn(Dn,br,Be,"bottom"),Yn=()=>re.get().each(hr);hf().deviceType.isTouch()&&(t.on("TableSelectionChange",br=>{z.get()||(zm(a,Xt),zm(a,Dn),z.set(!0)),Y.set(br.start),re.set(br.finish),br.otherCells.each(Mr=>{p.set(Mr.upOrLeftCells),E.set(Mr.downOrRightCells),kn(br.start),hr(br.finish)})}),t.on("ResizeEditor ResizeWindow ScrollContent",()=>{Vn(),Yn()}),t.on("TableSelectionClear",()=>{z.get()&&(Bd(Xt),Bd(Dn),z.set(!1)),Y.clear(),re.clear()}))};var GX=` - - -`;const ZX=t=>t.nodeName==="BR"||!!t.getAttribute("data-mce-bogus")||t.getAttribute("data-mce-type")==="bookmark",lF=(t,a,p)=>{var E;const z=(E=a.delimiter)!==null&&E!==void 0?E:"›",Y=(Be,je,et)=>hl.sketch({dom:{tag:"div",classes:["tox-statusbar__path-item"],attributes:{"data-index":et,"aria-level":et+1}},components:[ai(Be)],action:st=>{t.focus(),t.selection.select(je),t.nodeChanged()},buttonBehaviours:gr([Bi.button(p.isDisabled),Qi()])}),re=()=>({dom:{tag:"div",classes:["tox-statusbar__path-divider"],attributes:{"aria-hidden":!0}},components:[ai(` ${z} `)]}),xe=Be=>ke(Be,(je,et,st)=>{const mt=Y(et.name,et.element,st);return st===0?je.concat([mt]):je.concat([re(),mt])},[]),Ee=Be=>{const je=[];let et=Be.length;for(;et-- >0;){const st=Be[et];if(st.nodeType===1&&!ZX(st)){const mt=W7(t,st);if(mt.isDefaultPrevented()||je.push({name:mt.name,element:st}),mt.isPropagationStopped())break}}return je};return{dom:{tag:"div",classes:["tox-statusbar__path"],attributes:{role:"navigation"}},behaviours:gr([po.config({mode:"flow",selector:"div[role=button]"}),Co.config({disabled:p.isDisabled}),Qi(),Ns.config({}),Ho.config({}),jo("elementPathEvents",[ms((Be,je)=>{t.shortcuts.add("alt+F11","focus statusbar elementpath",()=>po.focusIn(Be)),t.on("NodeChange",et=>{const st=Ee(et.parents),mt=st.length>0?xe(st):[];Ho.set(Be,mt)})})])]),components:[]}};var bp;(function(t){t[t.None=0]="None",t[t.Both=1]="Both",t[t.Vertical=2]="Vertical"})(bp||(bp={}));const Cy=(t,a,p,E,z)=>{const Y={height:WS(E+a.top,wx(t),o5(t))};return p===bp.Both&&(Y.width=WS(z+a.left,r5(t),Rk(t))),Y},cF=(t,a,p)=>{const E=zt.fromDom(t.getContainer()),z=Cy(t,a,p,Ls(E),ci(E));Ge(z,(Y,re)=>{v(Y)&&To(E,re,i2(Y))}),V7(t)},a6=t=>{const a=_8(t);return a===!1?bp.None:a==="both"?bp.Both:bp.Vertical},Sy=(t,a,p,E)=>{const Y=Ma(p*20,E*20);return cF(t,Y,a),P.some(!0)},jX=(t,a)=>{const p=a6(t);if(p===bp.None)return P.none();const E=p===bp.Both?"Press the arrow keys to resize the editor.":"Press the Up and Down arrow keys to resize the editor.";return P.some(Gd("resize-handle",{tag:"div",classes:["tox-statusbar__resize-handle"],attributes:{title:a.translate("Resize"),"aria-label":a.translate(E)},behaviours:[h0.config({mode:"mouse",repositionTarget:!1,onDrag:(z,Y,re)=>cF(t,re,p),blockerClass:"tox-blocker"}),po.config({mode:"special",onLeft:()=>Sy(t,p,-1,0),onRight:()=>Sy(t,p,1,0),onUp:()=>Sy(t,p,0,-1),onDown:()=>Sy(t,p,0,1)}),Ns.config({}),ko.config({})]},a.icons))},YX=(t,a)=>{const p=(E,z,Y)=>Ho.set(E,[ai(a.translate(["{0} "+Y,z[Y]]))]);return hl.sketch({dom:{tag:"button",classes:["tox-statusbar__wordcount"]},components:[],buttonBehaviours:gr([Bi.button(a.isDisabled),Qi(),Ns.config({}),Ho.config({}),Fr.config({store:{mode:"memory",initialValue:{mode:"words",count:{words:0,characters:0}}}}),jo("wordcount-events",[xf(E=>{const z=Fr.getValue(E),Y=z.mode==="words"?"characters":"words";Fr.setValue(E,{mode:Y,count:z.count}),p(E,z.count,Y)}),ms(E=>{t.on("wordCountUpdate",z=>{const{mode:Y}=Fr.getValue(E);Fr.setValue(E,{mode:Y,count:z.wordCount}),p(E,z.wordCount,Y)})})])]),eventOrder:{[Ci()]:["disabling","alloy.base.behaviour","wordcount-events"]}})},KX=(t,a)=>{const p=()=>({dom:{tag:"span",classes:["tox-statusbar__branding"]},components:[{dom:{tag:"a",attributes:{href:"https://www.tiny.cloud/powered-by-tiny?utm_campaign=editor_referral&utm_medium=poweredby&utm_source=tinymce&utm_content=v6",rel:"noopener",target:"_blank","aria-label":_f.translate(["Powered by {0}","Tiny"])},innerHtml:GX.trim()},behaviours:gr([ko.config({})])}]}),E=()=>{const xe=qk("Alt+0"),Ee="Press {0} for help";return{dom:{tag:"div",classes:["tox-statusbar__help-text"]},components:[ai(_f.translate([Ee,xe]))]}},z=()=>{const xe=[];return t.hasPlugin("wordcount")&&xe.push(YX(t,a)),f5(t)&&xe.push(p()),{dom:{tag:"div",classes:["tox-statusbar__right-container"]},components:xe}},Y=()=>{const xe=[],Ee=Ik(t),Be=Sx(t),je=f5(t)||t.hasPlugin("wordcount"),et=()=>{const st="tox-statusbar__text-container--flex-start",mt="tox-statusbar__text-container--flex-end",Mt="tox-statusbar__text-container--space-around";if(Ee){const Xt="tox-statusbar__text-container-3-cols";return!je&&!Be?[Xt,Mt]:je&&!Be?[Xt,mt]:[Xt,st]}return[je&&!Be?mt:st]};return Be&&xe.push(lF(t,{},a)),Ee&&xe.push(E()),je&&xe.push(z()),xe.length>0?[{dom:{tag:"div",classes:["tox-statusbar__text-container",...et()]},components:xe}]:[]};return{dom:{tag:"div",classes:["tox-statusbar"]},components:(()=>{const xe=Y(),Ee=jX(t,a);return xe.concat(Ee.toArray())})()}},uF=(t,a)=>a.get().getOrDie(`UI for ${t} has not been rendered`),XX=(t,a)=>{const p=t.inline,E=p?yK:hK,z=zC(t)?l9:tj,Y=bK(),re=ia(),xe=ia(),Ee=ia(),st=hf().deviceType.isTouch()?["tox-platform-touch"]:[],mt=g5(t),Mt=Cx(t),Xt=Qa({dom:{tag:"div",classes:["tox-anchorbar"]}}),Dn=Qa({dom:{tag:"div",classes:["tox-bottom-anchorbar"]}}),hn=()=>Y.mainUi.get().map(wo=>wo.outerContainer).bind(Ss.getHeader),rn=()=>Wo.fromOption(Y.dialogUi.get().map(wo=>wo.sink),"UI has not been rendered"),kn=()=>Wo.fromOption(Y.popupUi.get().map(wo=>wo.sink),"(popup) UI has not been rendered"),Vn=Y.lazyGetInOuterOrDie("anchor bar",Xt.getOpt),hr=Y.lazyGetInOuterOrDie("bottom anchor bar",Dn.getOpt),Yn=Y.lazyGetInOuterOrDie("toolbar",Ss.getToolbar),br=Y.lazyGetInOuterOrDie("throbber",Ss.getThrobber),Mr=jZ({popup:kn,dialog:rn},t,Vn,hr),ea=()=>{const wo={attributes:{[vv]:mt?tf.BottomToTop:tf.TopToBottom}},Vo=Ss.parts.menubar({dom:{tag:"div",classes:["tox-menubar"]},backstage:Mr.popup,onEscape:()=>{t.focus()}}),ys=Ss.parts.toolbar({dom:{tag:"div",classes:["tox-toolbar"]},getSink:Mr.popup.shared.getSink,providers:Mr.popup.shared.providers,onEscape:()=>{t.focus()},onToolbarToggled:t3=>{BV(t,t3)},type:Mt,lazyToolbar:Yn,lazyHeader:()=>hn().getOrDie("Could not find header element"),...wo}),Ra=Ss.parts["multiple-toolbar"]({dom:{tag:"div",classes:["tox-toolbar-overlord"]},providers:Mr.popup.shared.providers,onEscape:()=>{t.focus()},type:Mt}),Rl=HC(t),Fu=Fk(t),yd=Tx(t),ah=R8(t),p0=Zr(),Ly=Rl||Fu||yd,nm=()=>Rl?[Ra]:Fu?[ys]:[],wp=ah?[p0,Vo]:[Vo];return Ss.parts.header({dom:{tag:"div",classes:["tox-editor-header"].concat(Ly?[]:["tox-editor-header--empty"]),...wo},components:Fe([yd?wp:[],nm(),kx(t)?[]:[Xt.asSpec()]]),sticky:zC(t),editor:t,sharedBackstage:Mr.popup.shared})},Zr=()=>Ss.parts.promotion({dom:{tag:"div",classes:["tox-promotion"]}}),Do=()=>{const wo=Ss.parts.socket({dom:{tag:"div",classes:["tox-edit-area"]}}),Vo=Ss.parts.sidebar({dom:{tag:"div",classes:["tox-sidebar"]}});return{dom:{tag:"div",classes:["tox-sidebar-wrap"]},components:[wo,Vo]}},Mo=()=>{const wo=p5(t),Vo=Qt(ss(),wo)&&Ms(wo,"display")==="grid",ys={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-tinymce-aux"].concat(st),attributes:{..._f.isRtl()?{dir:"rtl"}:{}}},behaviours:gr([Nl.config({useFixed:()=>z.isDocked(hn)})])},Ra={dom:{styles:{width:document.body.clientWidth+"px"}},events:bs([Xn(Xf(),yd=>{To(yd.element,"width",document.body.clientWidth+"px")})])},Rl=Pl(hs(ys,Vo?Ra:{})),Fu=gA(Rl);return xe.set(Fu),{sink:Rl,mothership:Fu}},ja=()=>{const wo={dom:{tag:"div",classes:["tox","tox-silver-sink","tox-silver-popup-sink","tox-tinymce-aux"].concat(st),attributes:{..._f.isRtl()?{dir:"rtl"}:{}}},behaviours:gr([Nl.config({useFixed:()=>z.isDocked(hn),getBounds:()=>a.getPopupSinkBounds()})])},Vo=Pl(wo),ys=gA(Vo);return Ee.set(ys),{sink:Vo,mothership:ys}},xo=()=>{const wo=ea(),Vo=Do(),ys=Ss.parts.throbber({dom:{tag:"div",classes:["tox-throbber"]},backstage:Mr.popup}),Ra=Ss.parts.viewWrapper({backstage:Mr.popup}),Rl=E8(t)&&!p?P.some(KX(t,Mr.popup.shared.providers)):P.none(),Fu=Fe([mt?[]:[wo],p?[]:[Vo],mt?[wo]:[]]),yd=Ss.parts.editorContainer({components:Fe([Fu,p?[]:[Dn.asSpec(),...Rl.toArray()]])}),ah=v5(t),p0={role:"application",..._f.isRtl()?{dir:"rtl"}:{},...ah?{"aria-hidden":"true"}:{}},Ly=Pl(Ss.sketch({dom:{tag:"div",classes:["tox","tox-tinymce"].concat(p?["tox-tinymce-inline"]:[]).concat(mt?["tox-tinymce--toolbar-bottom"]:[]).concat(st),styles:{visibility:"hidden",...ah?{opacity:"0",border:"0"}:{}},attributes:p0},components:[yd,...p?[]:[Ra],ys],behaviours:gr([Qi(),Co.config({disableClass:"tox-tinymce--disabled"}),po.config({mode:"cyclic",selector:".tox-menubar, .tox-toolbar, .tox-toolbar__primary, .tox-toolbar__overflow--open, .tox-sidebar__overflow--open, .tox-statusbar__path, .tox-statusbar__wordcount, .tox-statusbar__branding a, .tox-statusbar__resize-handle"})])})),nm=gA(Ly);return re.set(nm),{mothership:nm,outerContainer:Ly}},Ea=wo=>{const Vo=i2(vN(t)),ys=i2(mK(t));return t.inline||(qi("div","width",ys)&&To(wo.element,"width",ys),qi("div","height",Vo)?To(wo.element,"height",Vo):To(wo.element,"height","400px")),Vo},Ar=wo=>{t.addShortcut("alt+F9","focus menubar",()=>{Ss.focusMenubar(wo)}),t.addShortcut("alt+F10","focus toolbar",()=>{Ss.focusToolbar(wo)}),t.addCommand("ToggleToolbarDrawer",(Vo,ys)=>{ys!=null&&ys.skipFocus?Ss.toggleToolbarDrawerWithoutFocusing(wo):Ss.toggleToolbarDrawer(wo)}),t.addQueryStateHandler("ToggleToolbarDrawer",()=>Ss.isToolbarDrawerToggled(wo))},no=wo=>{const{mainUi:Vo,popupUi:ys,uiMotherships:Ra}=wo;Xe(S8(t),(y2,sE)=>{t.ui.registry.addGroupToolbarButton(sE,y2)});const{buttons:Rl,menuItems:Fu,contextToolbars:yd,sidebars:ah,views:p0}=t.ui.registry.getAll(),Ly=m5(t),nm={menuItems:Fu,menus:O8(t),menubar:s5(t),toolbar:Ly.getOrThunk(()=>Dk(t)),allowToolbarGroups:Mt===af.floating,buttons:Rl,sidebar:ah,views:p0};Ar(Vo.outerContainer),qx(t,Vo.mothership,Ra),z.setup(t,Mr.popup.shared,hn),JK(t,Mr.popup),mX(t,Mr.popup.shared.getSink,Mr.popup),Dj(t),gM(t,br,Mr.popup.shared),PK(t,yd,ys.sink,{backstage:Mr.popup}),WX(t,ys.sink);const wp=t.getElement(),t3=Ea(Vo.outerContainer),h6={targetNode:wp,height:t3};return E.render(t,wo,nm,Mr.popup,h6)},$o=wo=>(Ee.set(wo.mothership),wo),Po=()=>{const wo=xo(),Vo=Mo(),ys=Km(t)?ja():$o(Vo);Y.dialogUi.set(Vo),Y.popupUi.set(ys),Y.mainUi.set(wo);const Ra={popupUi:ys,dialogUi:Vo,mainUi:wo,uiMotherships:Y.getUiMotherships()};return no(Ra)};return{popups:{backstage:Mr.popup,getMothership:()=>uF("popups",Ee)},dialogs:{backstage:Mr.dialog,getMothership:()=>uF("dialogs",xe)},renderUI:Po}},Ty=(t,a)=>{const p=yi(t,"id").fold(()=>{const E=Xr("dialog-label");return Lr(a,"id",E),E},D);Lr(t,"aria-labelledby",p)},fF=O([qn("lazySink"),Ia("dragBlockClass"),bi("getBounds",bl),En("useTabstopAt",j),En("firstTabstop",0),En("eventOrder",{}),Fi("modalBehaviours",[po]),ru("onExecute"),iw("onEscape")]),s6={sketch:D},JX=O([Fc({name:"draghandle",overrides:(t,a)=>({behaviours:gr([h0.config({mode:"mouse",getTarget:p=>tu(p,'[role="dialog"]').getOr(p),blockerClass:t.dragBlockClass.getOrDie(new Error(`The drag blocker class was not specified for a dialog with a drag handle: -`+JSON.stringify(a,null,2)).message),getBounds:t.getDragBounds})])})}),Fl({schema:[qn("dom")],name:"title"}),Fl({factory:s6,schema:[qn("dom")],name:"close"}),Fl({factory:s6,schema:[qn("dom")],name:"body"}),Fc({factory:s6,schema:[qn("dom")],name:"footer"}),Af({factory:{sketch:(t,a)=>({...t,dom:a.dom,components:a.components})},schema:[En("dom",{tag:"div",styles:{position:"fixed",left:"0px",top:"0px",right:"0px",bottom:"0px"}}),En("components",[])],name:"blocker"})]),QX=(t,a,p,E)=>{const z=ia(),Y=mt=>{z.set(mt);const Mt=t.lazySink(mt).getOrDie(),Xt=E.blocker(),Dn=Mt.getSystem().build({...Xt,components:Xt.components.concat([Tu(mt)]),behaviours:gr([ko.config({}),jo("dialog-blocker-events",[Ed(_o(),()=>{Qh.isBlocked(mt)?C():po.focusIn(mt)})])])});zm(Mt,Dn),po.focusIn(mt)},re=mt=>{z.clear(),Bn(mt.element).each(Mt=>{mt.getSystem().getByDom(Mt).each(Xt=>{Bd(Xt)})})},xe=mt=>zh(mt,t,"body"),Ee=mt=>gs(mt,t,"footer"),Be=(mt,Mt)=>{Qh.block(mt,Mt)},je=mt=>{Qh.unblock(mt)},et=Xr("modal-events"),st={...t.eventOrder,[Cu()]:[et].concat(t.eventOrder["alloy.system.attached"]||[])};return{uid:t.uid,dom:t.dom,components:a,apis:{show:Y,hide:re,getBody:xe,getFooter:Ee,setIdle:je,setBusy:Be},eventOrder:st,domModification:{attributes:{role:"dialog","aria-modal":"true"}},behaviours:Si(t.modalBehaviours,[Ho.config({}),po.config({mode:"cyclic",onEnter:t.onExecute,onEscape:t.onEscape,useTabstopAt:t.useTabstopAt,firstTabstop:t.firstTabstop}),Qh.config({getRoot:z.get}),jo(et,[ms(mt=>{Ty(mt.element,zh(mt,t,"title").element)})])])}},rl=Bl({name:"ModalDialog",configFields:fF(),partFields:JX(),factory:QX,apis:{show:(t,a)=>{t.show(a)},hide:(t,a)=>{t.hide(a)},getBody:(t,a)=>t.getBody(a),getFooter:(t,a)=>t.getFooter(a),setBusy:(t,a,p)=>{t.setBusy(a,p)},setIdle:(t,a)=>{t.setIdle(a)}}}),qX=io([Oi,$5].concat(ly)),eJ=Ju,i6=[Kk("button"),Rf,bc("align","end",["start","end"]),qm,id,Zf("buttonType",["primary","secondary"])],dF=[...i6,dp],KS=[Qu("type",["submit","cancel","custom"]),...dF],XS=[Qu("type",["menu"]),Qm,GC,Rf,Ol("items",qX),...i6],l6=[...i6,Qu("type",["togglebutton"]),Da("tooltip"),Rf,Qm,Li("active",!1)],jM=fa("type",{submit:KS,cancel:KS,custom:KS,menu:XS,togglebutton:l6}),ky=[Oi,dp,Qu("level",["info","warn","error","success"]),O5,En("url","")],YM=io(ky),tJ=t=>[Oi,t],hF=[Oi,dp,id,Kk("button"),Rf,e7,Zf("buttonType",["primary","secondary","toolbar"]),qm],mF=io(hF),Ay=[Oi,$5],qh=Ay.concat([jk]),nJ=Ay.concat([Zk,id]),rJ=io(nJ),gF=Ju,pF=qh.concat([t7("auto")]),c6=io(pF),oJ=Wf([_x,dp,O5]),aJ=qh.concat([bf("storageKey","default")]),sJ=io(aJ),vF=Ui,iJ=io(qh),lJ=Ui,u6=Ay.concat([bf("tag","textarea"),Da("scriptId"),Da("scriptUrl"),L3("settings",void 0)]),f6=Ay.concat([bf("tag","textarea"),bu("init")]),cJ=cl(t=>ns("customeditor.old",es(f6),t).orThunk(()=>ns("customeditor.new",es(u6),t))),yF=Ui,uJ=io(qh),bF=rb(),fJ=t=>[Oi,Cm("columns"),t],dJ=[Oi,Da("html"),bc("presets","presentation",["presentation","document"])],My=io(dJ),xF=qh.concat([Li("border",!1),Li("sandboxed",!0),Li("streamContent",!1),Li("transparent",!0)]),hJ=io(xF),KM=Ui,u2=io(Ay.concat([Gi("height")])),XM=io([Da("url"),Qs("zoom"),Qs("cachedWidth"),Qs("cachedHeight")]),wF=qh.concat([Gi("inputMode"),Gi("placeholder"),Li("maximized",!1),id]),JM=io(wF),Pu=Ui,QM=t=>[Oi,Zk,t,bc("align","start",["start","center","end"])],CF=[dp,_x],SF=[dp,Ol("items",Bg("items",()=>TF))],TF=Gr([io(CF),io(SF)]),mJ=qh.concat([Ol("items",TF),id]),m0=io(mJ),dte=Ui,gJ=qh.concat([Wp("items",[dp,_x]),yf("size",1),id]),kF=io(gJ),f2=Ui,qM=qh.concat([Li("constrain",!0),id]),AF=io(qM),MF=io([Da("width"),Da("height")]),pJ=Ay.concat([Zk,yf("min",0),yf("max",0)]),vJ=io(pJ),yJ=Fg,d2=[Oi,Ol("header",Ui),Ol("cells",vu(Ui))],hte=io(d2),bJ=qh.concat([Gi("placeholder"),Li("maximized",!1),id]),xJ=io(bJ),mte=Ui,EF=[Qu("type",["directory","leaf"]),J8,Da("id"),$c("menu",PS)],h2=io(EF),wJ=EF.concat([Ol("children",Bg("children",()=>ir("type",{directory:_F,leaf:h2})))]),_F=io(wJ),RF=ir("type",{directory:_F,leaf:h2}),CJ=[Oi,Ol("items",RF),pf("onLeafAction"),pf("onToggleExpand"),ec("defaultExpandedIds",[],Ui),Gi("defaultSelectedId")],pte=io(CJ),e=qh.concat([bc("filetype","file",["image","media","file"]),id,Gi("picker_text")]),n=io(e),r=io([_x,ZC]),f=t=>Wi("items","items",Ua(),vu(cl(a=>ns(`Checking item of ${t}`,w,a).fold(p=>Wo.error(wl(p)),p=>Wo.value(p))))),w=Vi(()=>ir("type",{alertbanner:YM,bar:io(tJ(f("bar"))),button:mF,checkbox:rJ,colorinput:sJ,colorpicker:iJ,dropzone:uJ,grid:io(fJ(f("grid"))),iframe:hJ,input:JM,listbox:m0,selectbox:kF,sizeinput:AF,slider:vJ,textarea:xJ,urlinput:n,customeditor:cJ,htmlpanel:My,imagepreview:u2,collection:c6,label:io(QM(f("label"))),table:hte,tree:pte,panel:Z})),B=[Oi,En("classes",[]),Ol("items",w)],Z=io(B),oe=[Kk("tab"),J8,Ol("items",w)],be=[Oi,Wp("tabs",oe)],Pe=io(be),Ke=dF,Je=jM,at=io([Da("title"),yc("body",ir("type",{panel:Z,tabpanel:Pe})),bf("size","normal"),ec("buttons",[],Je),En("initialData",{}),bi("onAction",C),bi("onChange",C),bi("onSubmit",C),bi("onClose",C),bi("onCancel",C),bi("onTabChange",C)]),Rt=t=>ns("dialog",at,t),Ht=io([Qu("type",["cancel","custom"]),...Ke]),At=io([Da("title"),Da("url"),Qs("height"),Qs("width"),jf("buttons",Ht),bi("onAction",C),bi("onCancel",C),bi("onClose",C),bi("onMessage",C)]),It=t=>ns("dialog",At,t),ln=t=>s(t)?[t].concat(ie(Nt(t),ln)):h(t)?ie(t,ln):[],xn=t=>A(t.type)&&A(t.name),yn={checkbox:gF,colorinput:vF,colorpicker:lJ,dropzone:bF,input:Pu,iframe:KM,imagepreview:XM,selectbox:f2,sizeinput:MF,slider:yJ,listbox:dte,size:MF,textarea:mte,urlinput:r,customeditor:yF,collection:oJ,togglemenuitem:eJ},$n=t=>P.from(yn[t.type]),nr=t=>Ce(ln(t),xn),mr=t=>{const a=nr(t),p=ie(a,E=>$n(E).fold(()=>[],z=>[yc(E.name,z)]));return io(p)},Nr=t=>{var a;const p=Ja(Rt(t)),E=mr(t),z=(a=t.initialData)!==null&&a!==void 0?a:{};return{internalDialog:p,dataValidator:E,initialData:z}},zn={open:(t,a)=>{const p=Nr(a);return t(p.internalDialog,p.initialData,p.dataValidator)},openUrl:(t,a)=>{const p=Ja(It(a));return t(p)},redial:t=>Nr(t)};var er=Object.freeze({__proto__:null,events:(t,a)=>{const p=(E,z)=>{t.updateState.each(Y=>{const re=Y(E,z);a.set(re)}),t.renderComponents.each(Y=>{const re=Y(z,a.get());(t.reuseDom?O$:Hc)(E,re)})};return bs([Xn(Tl(),(E,z)=>{const Y=z;if(!Y.universal){const re=t.channel;he(Y.channels,re)&&p(E,Y.data)}}),ms((E,z)=>{t.initialData.each(Y=>{p(E,Y)})})])}}),ho=Object.freeze({__proto__:null,getState:(t,a,p)=>p}),na=[qn("channel"),Ia("renderComponents"),Ia("updateState"),Ia("initialData"),Li("reuseDom",!0)],os=Object.freeze({__proto__:null,init:()=>{const t=q(P.none()),a=()=>t.set(P.none());return{readState:()=>t.get().getOr("none"),get:t.get,set:t.set,clear:a}}});const ka=Ki({fields:na,name:"reflecting",active:er,apis:ho,state:os}),ei=t=>{const a=[],p={};return Ge(t,(E,z)=>{E.fold(()=>{a.push(z)},Y=>{p[z]=Y})}),a.length>0?Wo.error(a):Wo.value(p)},zl=(t,a,p)=>{const E=Qa(Gx.sketch(z=>({dom:{tag:"div",classes:["tox-form"].concat(t.classes)},components:ne(t.items,Y=>qd(z,Y,a,p))})));return{dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[E.asSpec()]}],behaviours:gr([po.config({mode:"acyclic",useTabstopAt:k(gS)}),sf.memento(E),dS(E,{postprocess:z=>ei(z).fold(Y=>(console.error(Y),{}),D)}),jo("dialog-body-panel",[Xn(_o(),(z,Y)=>{z.getSystem().broadcastOn([vS],{newFocus:P.some(Y.event.target)})})])])}},as=(t,a)=>({uid:t.uid,dom:t.dom,components:t.components,events:Gh(t.action),behaviours:Si(t.tabButtonBehaviours,[ko.config({}),po.config({mode:"execution",useSpace:!0,useEnter:!0}),Fr.config({store:{mode:"memory",initialValue:t.value}})]),domModification:t.domModification}),Sr=ou({name:"TabButton",configFields:[En("uid",void 0),qn("value"),Wi("dom","dom",aa(()=>({attributes:{role:"tab",id:Xr("aria"),"aria-selected":"false"}})),oi()),Ia("action"),En("domModification",{}),Fi("tabButtonBehaviours",[ko,po,Fr]),qn("view")],factory:as}),so=O([qn("tabs"),qn("dom"),En("clickToDismiss",!1),Fi("tabbarBehaviours",[Na,po]),Lm(["tabClass","selectedClass"])]),$a=V1({factory:Sr,name:"tabs",unit:"tab",overrides:t=>{const a=(E,z)=>{Na.dehighlight(E,z),go(E,ib(),{tabbar:E,button:z})},p=(E,z)=>{Na.highlight(E,z),go(E,$3(),{tabbar:E,button:z})};return{action:E=>{const z=E.getSystem().getByUid(t.uid).getOrDie(),Y=Na.isHighlighted(z,E);(()=>Y&&t.clickToDismiss?a:Y?C:p)()(z,E)},domModification:{classes:[t.markers.tabClass]}}}}),ha=O([$a]),to=(t,a,p,E)=>({uid:t.uid,dom:t.dom,components:a,"debug.sketcher":"Tabbar",domModification:{attributes:{role:"tablist"}},behaviours:Si(t.tabbarBehaviours,[Na.config({highlightClass:t.markers.selectedClass,itemClass:t.markers.tabClass,onHighlight:(z,Y)=>{Lr(Y.element,"aria-selected","true")},onDehighlight:(z,Y)=>{Lr(Y.element,"aria-selected","false")}}),po.config({mode:"flow",getInitial:z=>Na.getHighlighted(z).map(Y=>Y.element),selector:"."+t.markers.tabClass,executeOnMove:!0})])}),Lo=Bl({name:"Tabbar",configFields:so(),partFields:ha(),factory:to}),vr=(t,a)=>({uid:t.uid,dom:t.dom,behaviours:Si(t.tabviewBehaviours,[Ho.config({})]),domModification:{attributes:{role:"tabpanel"}}}),Oo=ou({name:"Tabview",configFields:[Fi("tabviewBehaviours",[Ho])],factory:vr}),Aa=O([En("selectFirst",!0),Sa("onChangeTab"),Sa("onDismissTab"),En("tabs",[]),Fi("tabSectionBehaviours",[])]),ps=Fl({factory:Lo,schema:[qn("dom"),Dc("markers",[qn("tabClass"),qn("selectedClass")])],name:"tabbar",defaults:t=>({tabs:t.tabs})}),us=Fl({factory:Oo,name:"tabview"}),ml=O([ps,us]),th=(t,a,p,E)=>{const z=re=>{const xe=Fr.getValue(re);gs(re,t,"tabview").each(Ee=>{Ve(t.tabs,je=>je.value===xe).each(je=>{const et=je.view();yi(re.element,"id").each(st=>{Lr(Ee.element,"aria-labelledby",st)}),Ho.set(Ee,et),t.onChangeTab(Ee,re,et)})})},Y=(re,xe)=>{gs(re,t,"tabbar").each(Ee=>{xe(Ee).each(kh)})};return{uid:t.uid,dom:t.dom,components:a,behaviours:Bh(t.tabSectionBehaviours),events:bs(Fe([t.selectFirst?[ms((re,xe)=>{Y(re,Na.getFirst)})]:[],[Xn($3(),(re,xe)=>{const Ee=xe.event.button;z(Ee)}),Xn(ib(),(re,xe)=>{const Ee=xe.event.button;t.onDismissTab(re,Ee)})]])),apis:{getViewItems:re=>gs(re,t,"tabview").map(xe=>Ho.contents(xe)).getOr([]),showTab:(re,xe)=>{Y(re,Be=>{const je=Na.getCandidates(Be);return Ve(je,st=>Fr.getValue(st)===xe).filter(st=>!Na.isHighlighted(Be,st))})}}}},cf=Bl({name:"TabSection",configFields:Aa(),partFields:ml(),factory:th,apis:{getViewItems:(t,a)=>t.getViewItems(a),showTab:(t,a,p)=>{t.showTab(a,p)}}}),iu=(t,a,p)=>ne(t,(E,z)=>{Ho.set(p,t[z].view());const Y=a.dom.getBoundingClientRect();return Ho.set(p,[]),Y.height}),pd=t=>Me(Te(t,(a,p)=>a>p?-1:a{const E=gn(t).dom,z=tu(t,".tox-dialog-wrap").getOr(t),Y=Ms(z,"position")==="fixed";let re;Y?re=Math.max(E.clientHeight,window.innerHeight):re=Math.max(E.offsetHeight,E.scrollHeight);const xe=Ls(a),Be=a.dom.offsetLeft>=p.dom.offsetLeft+ci(p)?Math.max(Ls(p),xe):xe,je=parseInt(Ms(t,"margin-top"),10)||0,et=parseInt(Ms(t,"margin-bottom"),10)||0,mt=Ls(t)+je+et-Be;return re-mt},Oa=(t,a)=>{Me(t).each(p=>cf.showTab(a,p.value))},vs=(t,a)=>{To(t,"height",a+"px"),To(t,"flex-basis",a+"px")},Gs=(t,a,p)=>{tu(t,'[role="dialog"]').each(E=>{mi(E,'[role="tablist"]').each(z=>{p.get().map(Y=>(To(a,"height","0"),To(a,"flex-basis","0"),Math.min(Y,zo(E,a,z)))).each(Y=>{vs(a,Y)})})})},$s=t=>mi(t,'[role="tabpanel"]'),Iu=t=>{const a=ia();return{extraEvents:[ms(z=>{const Y=z.element;$s(Y).each(re=>{To(re,"visibility","hidden"),z.getSystem().getByDom(re).toOptional().each(xe=>{const Ee=iu(t,re,xe);pd(Ee).fold(a.clear,a.set)}),Gs(Y,re,a),Bo(re,"visibility"),Oa(t,z),requestAnimationFrame(()=>{Gs(Y,re,a)})})}),Xn(Xf(),z=>{const Y=z.element;$s(Y).each(re=>{Gs(Y,re,a)})}),Xn(RO,(z,Y)=>{const re=z.element;$s(re).each(xe=>{const Ee=Id(Yo(xe));To(xe,"visibility","hidden");const Be=Rs(xe,"height").map(st=>parseInt(st,10));Bo(xe,"height"),Bo(xe,"flex-basis");const je=xe.dom.getBoundingClientRect().height;Be.forall(st=>je>st)?(a.set(je),Gs(re,xe,a)):Be.each(st=>{vs(xe,st)}),Bo(xe,"visibility"),Ee.each(Ic)})})],selectFirst:!1}},nh="send-data-to-section",xp="send-data-to-view",eE=(t,a,p)=>{const E=q({}),z=Be=>{const je=Fr.getValue(Be),et=ei(je).getOr({}),st=E.get(),mt=hs(st,et);E.set(mt)},Y=Be=>{const je=E.get();Fr.setValue(Be,je)},re=q(null),xe=ne(t.tabs,Be=>({value:Be.name,dom:{tag:"div",classes:["tox-dialog__body-nav-item"]},components:[ai(p.shared.providers.translate(Be.title))],view:()=>[Gx.sketch(je=>({dom:{tag:"div",classes:["tox-form"]},components:ne(Be.items,et=>qd(je,et,a,p)),formBehaviours:gr([po.config({mode:"acyclic",useTabstopAt:k(gS)}),jo("TabView.form.events",[ms(Y),_d(z)]),Pc.config({channels:bt([{key:nh,value:{onReceive:z}},{key:xp,value:{onReceive:Y}}])})])}))]})),Ee=Iu(xe);return cf.sketch({dom:{tag:"div",classes:["tox-dialog__body"]},onChangeTab:(Be,je,et)=>{const st=Fr.getValue(je);go(Be,_O,{name:st,oldName:re.get()}),re.set(st)},tabs:xe,components:[cf.parts.tabbar({dom:{tag:"div",classes:["tox-dialog__body-nav"]},components:[Lo.parts.tabs({})],markers:{tabClass:"tox-tab",selectedClass:"tox-dialog__body-nav-item--active"},tabbarBehaviours:gr([Ns.config({})])}),cf.parts.tabview({dom:{tag:"div",classes:["tox-dialog__body-content"]}})],selectFirst:Ee.selectFirst,tabSectionBehaviours:gr([jo("tabpanel",Ee.extraEvents),po.config({mode:"acyclic"}),da.config({find:Be=>Me(cf.getViewItems(Be))}),t0(P.none(),Be=>(Be.getSystem().broadcastOn([nh],{}),E.get()),(Be,je)=>{E.set(je),Be.getSystem().broadcastOn([xp],{})})])})},JS=(t,a,p,E,z)=>{const Y=Ee=>{const Be=Ee.body;switch(Be.type){case"tabpanel":return[eE(Be,Ee.initialData,E)];default:return[zl(Be,Ee.initialData,E)]}},re=(Ee,Be)=>P.some({isTabPanel:()=>Be.body.type==="tabpanel"}),xe={"aria-live":"polite"};return{dom:{tag:"div",classes:["tox-dialog__content-js"],attributes:{...p.map(Ee=>({id:Ee})).getOr({}),...z?xe:{}}},components:[],behaviours:gr([sf.childAt(0),ka.config({channel:`${lg}-${a}`,updateState:re,renderComponents:Y,initialData:t})])}},tE=(t,a,p,E,z)=>JS(t,a,P.some(p),E,z),m2=(t,a,p)=>{const E=JS(t,a,P.none(),p,!1);return rl.parts.body(E)},nE=t=>{const a={dom:{tag:"div",classes:["tox-dialog__content-js"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-iframe"]},components:[wP(P.none(),{dom:{tag:"iframe",attributes:{src:t.url}},behaviours:gr([Ns.config({}),ko.config({})])})]}],behaviours:gr([po.config({mode:"acyclic",useTabstopAt:k(gS)})])};return rl.parts.body(a)},g2=xx.deviceType.isTouch(),g0=(t,a)=>({dom:{tag:"div",styles:{display:"none"},classes:["tox-dialog__header"]},components:[t,a]}),rh=(t,a)=>rl.parts.close(hl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":a.translate("Close")}},action:t,buttonBehaviours:gr([Ns.config({})])})),em=()=>rl.parts.title({dom:{tag:"div",classes:["tox-dialog__title"],innerHtml:"",styles:{display:"none"}}}),p2=(t,a)=>rl.parts.body({dom:{tag:"div",classes:["tox-dialog__body"]},components:[{dom:{tag:"div",classes:["tox-dialog__body-content"]},components:[{dom:cp(`

    ${X_(a.translate(t))}

    `)}]}]}),Ey=t=>rl.parts.footer({dom:{tag:"div",classes:["tox-dialog__footer"]},components:t}),QS=(t,a)=>[Kh.sketch({dom:{tag:"div",classes:["tox-dialog__footer-start"]},components:t}),Kh.sketch({dom:{tag:"div",classes:["tox-dialog__footer-end"]},components:a})],tm=t=>{const a="tox-dialog",p=a+"-wrap",E=p+"__backdrop",z=a+"__disable-scroll";return rl.sketch({lazySink:t.lazySink,onEscape:Y=>(t.onEscape(Y),P.some(!0)),useTabstopAt:Y=>!gS(Y),firstTabstop:t.firstTabstop,dom:{tag:"div",classes:[a].concat(t.extraClasses),styles:{position:"relative",...t.extraStyles}},components:[t.header,t.body,...t.footer.toArray()],parts:{blocker:{dom:cp(`
    `),components:[{dom:{tag:"div",classes:g2?[E,E+"--opaque"]:[E]}}]}},dragBlockClass:p,modalBehaviours:gr([ko.config({}),jo("dialog-events",t.dialogEvents.concat([Ed(_o(),(Y,re)=>{Qh.isBlocked(Y)?C():po.focusIn(Y)}),Xn(ab(),(Y,re)=>{Y.getSystem().broadcastOn([vS],{newFocus:re.event.newFocus})})])),jo("scroll-lock",[ms(()=>{hi(ss(),z)}),_d(()=>{Is(ss(),z)})]),...t.extraBehaviours]),eventOrder:{[Ci()]:["dialog-events"],[Cu()]:["scroll-lock","dialog-events","alloy.base.behaviour"],[Sm()]:["alloy.base.behaviour","dialog-events","scroll-lock"],...t.eventOrder}})},rE=t=>hl.sketch({dom:{tag:"button",classes:["tox-button","tox-button--icon","tox-button--naked"],attributes:{type:"button","aria-label":t.translate("Close"),title:t.translate("Close")}},buttonBehaviours:gr([Ns.config({})]),components:[Gd("close",{tag:"span",classes:["tox-icon"]},t.icons)],action:a=>{pa(a,Jv)}}),qS=(t,a,p,E)=>{const z=Y=>[ai(E.translate(Y.title))];return{dom:{tag:"div",classes:["tox-dialog__title"],attributes:{...p.map(Y=>({id:Y})).getOr({})}},components:[],behaviours:gr([ka.config({channel:`${FA}-${a}`,initialData:t,renderComponents:z})])}},fc=()=>({dom:cp('
    ')}),_y=(t,a,p,E)=>Kh.sketch({dom:cp('
    '),components:[qS(t,a,P.some(p),E),fc(),rE(E)],containerBehaviours:gr([h0.config({mode:"mouse",blockerClass:"blocker",getTarget:z=>Qf(z,'[role="dialog"]').getOrDie(),snaps:{getSnapPoints:()=>[],leftAttr:"data-drag-left",topAttr:"data-drag-top"}})])}),LF=(t,a,p)=>{const E=rl.parts.title(qS(t,a,P.none(),p)),z=rl.parts.draghandle(fc()),Y=rl.parts.close(rE(p)),re=[E].concat(t.draggable?[z]:[]).concat([Y]);return Kh.sketch({dom:cp('
    '),components:re})},oE=(t,a,p)=>LF({title:p.shared.providers.translate(t),draggable:p.dialog.isDraggableModal()},a,p.shared.providers),e3=(t,a,p,E)=>({dom:{tag:"div",classes:["tox-dialog__busy-spinner"],attributes:{"aria-label":p.translate(t)},styles:{left:"0px",right:"0px",bottom:"0px",top:`${E.getOr(0)}px`,position:"absolute"}},behaviours:a,components:[{dom:cp('
    ')}]}),ug=(t,a,p)=>({onClose:()=>p.closeWindow(),onBlock:E=>{const z=mi(t().element,".tox-dialog__header").map(Y=>Ls(Y));rl.setBusy(t(),(Y,re)=>e3(E.message,re,a,z))},onUnblock:()=>{rl.setIdle(t())}}),v2="tox-dialog--fullscreen",On="tox-dialog--width-lg",Pn="tox-dialog--width-md",yr=t=>{switch(t){case"large":return P.some(On);case"medium":return P.some(Pn);default:return P.none()}},dr=(t,a)=>{const p=zt.fromDom(a.element.dom);Ni(p,v2)||(Su(p,[On,Pn]),yr(t).each(E=>hi(p,E)))},uo=(t,a)=>{const p=zt.fromDom(t.element.dom),E=nv(p),z=Ve(E,Y=>Y===On||Y===Pn).or(yr(a));rw(p,[v2,...z.toArray()])},ua=(t,a,p)=>Pl(tm({...t,firstTabstop:1,lazySink:p.shared.getSink,extraBehaviours:[hS({}),...t.extraBehaviours],onEscape:E=>{pa(E,Jv)},dialogEvents:a,eventOrder:{[Tl()]:[ka.name(),Pc.name()],[Cu()]:["scroll-lock",ka.name(),"messages","dialog-events","alloy.base.behaviour"],[Sm()]:["alloy.base.behaviour","dialog-events","messages",ka.name(),"scroll-lock"]}})),Fs=(t,a={})=>{const p=E=>{const z=ne(E.items,Y=>{const re=Ft(a,Y.name).getOr(q(!1));return{...Y,storage:re}});return{...E,items:z}};return ne(t,E=>E.type==="menu"?p(E):E)},Nu=t=>ke(t,(a,p)=>p.type==="menu"?ke(p.items,(z,Y)=>(z[Y.name]=Y.storage,z),a):a,{}),Vl=(t,a)=>[Z2(_o(),SP),t(Bx,(p,E,z,Y)=>{Id(Yo(Y.element)).fold(C,hv),a.onClose(),E.onClose()}),t(Jv,(p,E,z,Y)=>{E.onCancel(p),pa(Y,Bx)}),Xn(RR,(p,E)=>a.onUnblock()),Xn(_R,(p,E)=>a.onBlock(E.event))],Ry=(t,a)=>{const p=(z,Y)=>Xn(z,(re,xe)=>{E(re,(Ee,Be)=>{Y(t(),Ee,xe.event,re)})}),E=(z,Y)=>{ka.getState(z).get().each(re=>{Y(re,z)})};return[...Vl(p,a),p(rg,(z,Y,re)=>{Y.onAction(z,{name:re.name})})]},vd=(t,a,p)=>{const E=(Y,re)=>Xn(Y,(xe,Ee)=>{z(xe,(Be,je)=>{re(t(),Be,Ee.event,xe)})}),z=(Y,re)=>{ka.getState(Y).get().each(xe=>{re(xe.internalDialog,Y)})};return[...Vl(E,a),E(iS,(Y,re)=>re.onSubmit(Y)),E($u,(Y,re,xe)=>{re.onChange(Y,{name:xe.name})}),E(rg,(Y,re,xe,Ee)=>{const Be=()=>Ee.getSystem().isConnected()?po.focusIn(Ee):void 0,je=mt=>Hf(mt,"disabled")||yi(mt,"aria-disabled").exists(Mt=>Mt==="true"),et=Yo(Ee.element),st=Id(et);re.onAction(Y,{name:xe.name,value:xe.value}),Id(et).fold(Be,mt=>{je(mt)||st.exists(Mt=>nn(mt,Mt)&&je(Mt))?Be():p().toOptional().filter(Mt=>!nn(Mt.element,mt)).each(Be)})}),E(_O,(Y,re,xe)=>{re.onTabChange(Y,{newTabName:xe.name,oldTabName:xe.oldName})}),_d(Y=>{const re=t();Fr.setValue(Y,re.getData())})]},DF=(t,a)=>qA(t,t.type,a),$F=(t,a,p)=>Ve(a,E=>E.name===p).bind(E=>E.memento.getOpt(t)),OF=(t,a)=>{const p=a.map(xe=>xe.footerButtons).getOr([]),E=ye(p,xe=>xe.align==="start"),z=(xe,Ee)=>Kh.sketch({dom:{tag:"div",classes:[`tox-dialog__footer-${xe}`]},components:ne(Ee,Be=>Be.memento.asSpec())}),Y=z("start",E.pass),re=z("end",E.fail);return[Y,re]},d6=(t,a,p)=>{const E=(z,Y)=>{const re=ne(Y.buttons,Ee=>{const Be=Qa(DF(Ee,p));return{name:Ee.name,align:Ee.align,memento:Be}}),xe=Ee=>$F(z,re,Ee);return P.some({lookupByName:xe,footerButtons:re})};return{dom:cp(''),components:[],behaviours:gr([ka.config({channel:`${BA}-${a}`,initialData:t,updateState:E,renderComponents:OF})])}},SJ=(t,a,p)=>d6(t,a,p),la=(t,a,p)=>rl.parts.footer(d6(t,a,p)),Fn=(t,a)=>{if(t.getRoot().getSystem().isConnected()){const E=da.getCurrent(t.getFormWrapper()).getOr(t.getFormWrapper());return Gx.getField(E,a).orThunk(()=>t.getFooter().bind(re=>ka.getState(re).get()).bind(re=>re.lookupByName(a)))}else return P.none()},ao=(t,a)=>{const p=t.getRoot();return ka.getState(p).get().map(E=>Ja(ns("data",E.dataValidator,a))).getOr(a)},Ao=(t,a,p)=>{const E=Mt=>{const Xt=t.getRoot();Xt.getSystem().isConnected()&&Mt(Xt)},mt={getData:()=>{const Mt=t.getRoot(),Xt=Mt.getSystem().isConnected()?t.getFormWrapper():Mt,Dn=Fr.getValue(Xt),hn=Xe(p,rn=>rn.get());return{...Dn,...hn}},setData:Mt=>{E(Xt=>{const Dn=mt.getData(),hn=hs(Dn,Mt),rn=ao(t,hn),kn=t.getFormWrapper();Fr.setValue(kn,rn),Ge(p,(Vn,hr)=>{pn(hn,hr)&&Vn.set(hn[hr])})})},setEnabled:(Mt,Xt)=>{Fn(t,Mt).each(Xt?Co.enable:Co.disable)},focus:Mt=>{Fn(t,Mt).each(ko.focus)},block:Mt=>{if(!A(Mt))throw new Error("The dialogInstanceAPI.block function should be passed a blocking message of type string as an argument");E(Xt=>{go(Xt,_R,{message:Mt})})},unblock:()=>{E(Mt=>{pa(Mt,RR)})},showTab:Mt=>{E(Xt=>{const Dn=t.getBody();ka.getState(Dn).get().exists(rn=>rn.isTabPanel())&&da.getCurrent(Dn).each(rn=>{cf.showTab(rn,Mt)})})},redial:Mt=>{E(Xt=>{const Dn=t.getId(),hn=a(Mt),rn=Fs(hn.internalDialog.buttons,p);Xt.getSystem().broadcastOn([`${pS}-${Dn}`],hn),Xt.getSystem().broadcastOn([`${FA}-${Dn}`],hn.internalDialog),Xt.getSystem().broadcastOn([`${lg}-${Dn}`],hn.internalDialog),Xt.getSystem().broadcastOn([`${BA}-${Dn}`],{...hn.internalDialog,buttons:rn}),mt.setData(hn.initialData)})},close:()=>{E(Mt=>{pa(Mt,Bx)})},toggleFullscreen:t.toggleFullscreen};return mt},ki=(t,a,p)=>{const E=Xr("dialog"),z=t.internalDialog,Y=oE(z.title,E,p),re=q(z.size),xe=yr(re.get()).toArray(),Ee=(rn,kn)=>(re.set(kn.internalDialog.size),dr(kn.internalDialog.size,rn),P.some(kn)),Be=m2({body:z.body,initialData:z.initialData},E,p),je=Fs(z.buttons),et=Nu(je),st=lt(je.length!==0,la({buttons:je},E,p)),mt=vd(()=>hn,ug(()=>Xt,p.shared.providers,a),p.shared.getSink),Mt={id:E,header:Y,body:Be,footer:st,extraClasses:xe,extraBehaviours:[ka.config({channel:`${pS}-${E}`,updateState:Ee,initialData:t})],extraStyles:{}},Xt=ua(Mt,mt,p),Dn=(()=>{const rn=()=>{const Vn=rl.getBody(Xt);return da.getCurrent(Vn).getOr(Vn)},kn=()=>{uo(Xt,re.get())};return{getId:O(E),getRoot:O(Xt),getBody:()=>rl.getBody(Xt),getFooter:()=>rl.getFooter(Xt),getFormWrapper:rn,toggleFullscreen:kn}})(),hn=Ao(Dn,a.redial,et);return{dialog:Xt,instanceApi:hn}},kc=(t,a,p,E=!1,z)=>{const Y=Xr("dialog"),re=Xr("dialog-label"),xe=Xr("dialog-content"),Ee=t.internalDialog,Be=q(Ee.size),je=yr(Be.get()).toArray(),et=(Yn,br)=>(Be.set(br.internalDialog.size),dr(br.internalDialog.size,Yn),z(),P.some(br)),st=Qa(_y({title:Ee.title,draggable:!0},Y,re,p.shared.providers)),mt=Qa(tE({body:Ee.body,initialData:Ee.initialData},Y,xe,p,E)),Mt=Fs(Ee.buttons),Xt=Nu(Mt),Dn=lt(Mt.length!==0,Qa(SJ({buttons:Mt},Y,p))),hn=vd(()=>hr,{onBlock:Yn=>{Qh.block(kn,(br,Mr)=>{const ea=st.getOpt(kn).map(Zr=>Ls(Zr.element));return e3(Yn.message,Mr,p.shared.providers,ea)})},onUnblock:()=>{Qh.unblock(kn)},onClose:()=>a.closeWindow()},p.shared.getSink),kn=Pl({dom:{tag:"div",classes:["tox-dialog","tox-dialog-inline",...je],attributes:{role:"dialog","aria-labelledby":re}},eventOrder:{[Tl()]:[ka.name(),Pc.name()],[Ci()]:["execute-on-form"],[Cu()]:["reflecting","execute-on-form"]},behaviours:gr([po.config({mode:"cyclic",onEscape:Yn=>(pa(Yn,Bx),P.some(!0)),useTabstopAt:Yn=>!gS(Yn)&&(vo(Yn)!=="button"||Ka(Yn,"disabled")!=="disabled"),firstTabstop:1}),ka.config({channel:`${pS}-${Y}`,updateState:et,initialData:t}),ko.config({}),jo("execute-on-form",hn.concat([Ed(_o(),(Yn,br)=>{po.focusIn(Yn)}),Xn(ab(),(Yn,br)=>{Yn.getSystem().broadcastOn([vS],{newFocus:br.event.newFocus})})])),Qh.config({getRoot:()=>P.some(kn)}),Ho.config({}),hS({})]),components:[st.asSpec(),mt.asSpec(),...Dn.map(Yn=>Yn.asSpec()).toArray()]}),Vn=()=>{uo(kn,Be.get())},hr=Ao({getId:O(Y),getRoot:O(kn),getFooter:()=>Dn.map(Yn=>Yn.get(kn)),getBody:()=>mt.get(kn),getFormWrapper:()=>{const Yn=mt.get(kn);return da.getCurrent(Yn).getOr(Yn)},toggleFullscreen:Vn},a.redial,Xt);return{dialog:kn,instanceApi:hr}};var Ff=tinymce.util.Tools.resolve("tinymce.util.URI");const gl=t=>{const a=re=>{t.getSystem().isConnected()&&re(t)};return{block:re=>{if(!A(re))throw new Error("The urlDialogInstanceAPI.block function should be passed a blocking message of type string as an argument");a(xe=>{go(xe,_R,{message:re})})},unblock:()=>{a(re=>{pa(re,RR)})},close:()=>{a(re=>{pa(re,Bx)})},sendMessage:re=>{a(xe=>{xe.getSystem().broadcastOn([sL],re)})}}},oh=["insertContent","setContent","execCommand","close","block","unblock"],aE=t=>s(t)&&oh.indexOf(t.mceAction)!==-1,TJ=t=>!aE(t)&&s(t)&&pn(t,"mceAction"),PF=(t,a,p)=>{switch(p.mceAction){case"insertContent":t.insertContent(p.content);break;case"setContent":t.setContent(p.content);break;case"execCommand":const E=c(p.ui)?p.ui:!1;t.execCommand(p.cmd,E,p.value);break;case"close":a.close();break;case"block":a.block(p.message);break;case"unblock":a.unblock();break}},vte=(t,a,p,E)=>{const z=Xr("dialog"),Y=oE(t.title,z,E),re=nE(t),xe=t.buttons.bind(kn=>kn.length===0?P.none():P.some(la({buttons:kn},z,E))),Ee=Ry(()=>rn,ug(()=>hn,E.shared.providers,a)),Be={...t.height.fold(()=>({}),kn=>({height:kn+"px","max-height":kn+"px"})),...t.width.fold(()=>({}),kn=>({width:kn+"px","max-width":kn+"px"}))},je=t.width.isNone()&&t.height.isNone()?["tox-dialog--width-lg"]:[],et=new Ff(t.url,{base_uri:new Ff(window.location.href)}),st=`${et.protocol}://${et.host}${et.port?":"+et.port:""}`,mt=Oh(),Mt=(kn,Vn)=>P.some(Vn),Xt=[ka.config({channel:`${pS}-${z}`,updateState:Mt,initialData:t}),jo("messages",[ms(()=>{const kn=sc(zt.fromDom(window),"message",Vn=>{if(et.isSameOrigin(new Ff(Vn.raw.origin))){const hr=Vn.raw.data;aE(hr)?PF(p,rn,hr):TJ(hr)&&t.onMessage(rn,hr)}});mt.set(kn)}),_d(mt.clear)]),Pc.config({channels:{[sL]:{onReceive:(kn,Vn)=>{mi(kn.element,"iframe").each(hr=>{const Yn=hr.dom.contentWindow;d(Yn)&&Yn.postMessage(Vn,st)})}}}})],hn=ua({id:z,header:Y,body:re,footer:xe,extraClasses:je,extraBehaviours:Xt,extraStyles:Be},Ee,E),rn=gl(hn);return{dialog:hn,instanceApi:rn}},$ie=t=>{const a=t.shared;return{open:(E,z)=>{const Y=()=>{rl.hide(Be),z()},re=Qa(qA({name:"close-alert",text:"OK",primary:!0,buttonType:P.some("primary"),align:"end",enabled:!0,icon:P.none()},"cancel",t)),xe=em(),Ee=rh(Y,a.providers),Be=Pl(tm({lazySink:()=>a.getSink(),header:g0(xe,Ee),body:p2(E,a.providers),footer:P.some(Ey(QS([],[re.asSpec()]))),onEscape:Y,extraClasses:["tox-alert-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Xn(Jv,Y)],eventOrder:{}}));rl.show(Be);const je=re.get(Be);ko.focus(je)}}},Oie=t=>{const a=t.shared;return{open:(E,z)=>{const Y=st=>{rl.hide(je),z(st)},re=Qa(qA({name:"yes",text:"Yes",primary:!0,buttonType:P.some("primary"),align:"end",enabled:!0,icon:P.none()},"submit",t)),xe=qA({name:"no",text:"No",primary:!1,buttonType:P.some("secondary"),align:"end",enabled:!0,icon:P.none()},"cancel",t),Ee=em(),Be=rh(()=>Y(!1),a.providers),je=Pl(tm({lazySink:()=>a.getSink(),header:g0(Ee,Be),body:p2(E,a.providers),footer:P.some(Ey(QS([],[xe,re.asSpec()]))),onEscape:()=>Y(!1),extraClasses:["tox-confirm-dialog"],extraBehaviours:[],extraStyles:{},dialogEvents:[Xn(Jv,()=>Y(!1)),Xn(iS,()=>Y(!0))],eventOrder:{}}));rl.show(je);const et=re.get(je);ko.focus(et)}}},yte=(t,a)=>Ja(ns("data",a,t)),bte=t=>rS(t,".tox-alert-dialog")||rS(t,".tox-confirm-dialog"),Pie=(t,a,p)=>a&&p?[]:[Ti.config({contextual:{lazyContext:()=>P.some(Js(zt.fromDom(t.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top"],lazyViewport:E=>Xv(t,E.element).map(Y=>({bounds:Fx(Y),optScrollEnv:P.some({currentScrollTop:Y.element.dom.scrollTop,scrollElmTop:al(Y.element).top})})).getOrThunk(()=>({bounds:bl(),optScrollEnv:P.none()}))})],Iie=t=>{const a=t.editor,p=zC(a),E=$ie(t.backstages.dialog),z=Oie(t.backstages.dialog),Y=(Mt,Xt,Dn)=>{if(!i(Xt)){if(Xt.inline==="toolbar")return Be(Mt,t.backstages.popup.shared.anchors.inlineDialog(),Dn,Xt);if(Xt.inline==="bottom")return je(Mt,t.backstages.popup.shared.anchors.inlineBottomDialog(),Dn,Xt);if(Xt.inline==="cursor")return Be(Mt,t.backstages.popup.shared.anchors.cursor(),Dn,Xt)}return Ee(Mt,Dn)},re=(Mt,Xt)=>xe(Mt,Xt),xe=(Mt,Xt)=>{const Dn=hn=>{const rn=vte(hn,{closeWindow:()=>{rl.hide(rn.dialog),Xt(rn.instanceApi)}},a,t.backstages.dialog);return rl.show(rn.dialog),rn.instanceApi};return zn.openUrl(Dn,Mt)},Ee=(Mt,Xt)=>{const Dn=(hn,rn,kn)=>{const Vn=rn,Yn=ki({dataValidator:kn,initialData:Vn,internalDialog:hn},{redial:zn.redial,closeWindow:()=>{rl.hide(Yn.dialog),Xt(Yn.instanceApi)}},t.backstages.dialog);return rl.show(Yn.dialog),Yn.instanceApi.setData(Vn),Yn.instanceApi};return zn.open(Dn,Mt)},Be=(Mt,Xt,Dn,hn)=>{const rn=(kn,Vn,hr)=>{const Yn=yte(Vn,hr),br=ia(),Mr=t.backstages.popup.shared.header.isPositionedAtTop(),ea={dataValidator:hr,initialData:Yn,internalDialog:kn},Zr=()=>br.on(xo=>{Ws.reposition(xo),(!p||!Mr)&&Ti.refresh(xo)}),Do=kc(ea,{redial:zn.redial,closeWindow:()=>{br.on(Ws.hide),a.off("ResizeEditor",Zr),br.clear(),Dn(Do.instanceApi)}},t.backstages.popup,hn.ariaAttrs,Zr),Mo=Pl(Ws.sketch({lazySink:t.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:hn.persistent?{event:"doNotDismissYet"}:{},...Mr?{}:{fireRepositionEventInstead:{}},inlineBehaviours:gr([jo("window-manager-inline-events",[Xn(Tm(),(xo,Ea)=>{pa(Do.dialog,Jv)})]),...Pie(a,p,Mr)]),isExtraPart:(xo,Ea)=>bte(Ea)}));br.set(Mo);const ja=()=>{const xo=a.inline?ss():zt.fromDom(a.getContainer()),Ea=Js(xo);return P.some(Ea)};return Ws.showWithinBounds(Mo,Tu(Do.dialog),{anchor:Xt},ja),(!p||!Mr)&&(Ti.refresh(Mo),a.on("ResizeEditor",Zr)),Do.instanceApi.setData(Yn),po.focusIn(Do.dialog),Do.instanceApi};return zn.open(rn,Mt)},je=(Mt,Xt,Dn,hn)=>{const rn=(kn,Vn,hr)=>{const Yn=yte(Vn,hr),br=ia(),Mr=t.backstages.popup.shared.header.isPositionedAtTop(),ea={dataValidator:hr,initialData:Yn,internalDialog:kn},Zr=()=>br.on(xo=>{Ws.reposition(xo),Ti.refresh(xo)}),Do=kc(ea,{redial:zn.redial,closeWindow:()=>{br.on(Ws.hide),a.off("ResizeEditor ScrollWindow ElementScroll",Zr),br.clear(),Dn(Do.instanceApi)}},t.backstages.popup,hn.ariaAttrs,Zr),Mo=Pl(Ws.sketch({lazySink:t.backstages.popup.shared.getSink,dom:{tag:"div",classes:[]},fireDismissalEventInstead:hn.persistent?{event:"doNotDismissYet"}:{},...Mr?{}:{fireRepositionEventInstead:{}},inlineBehaviours:gr([jo("window-manager-inline-events",[Xn(Tm(),(xo,Ea)=>{pa(Do.dialog,Jv)})]),Ti.config({contextual:{lazyContext:()=>P.some(Js(zt.fromDom(a.getContentAreaContainer()))),fadeInClass:"tox-dialog-dock-fadein",fadeOutClass:"tox-dialog-dock-fadeout",transitionClass:"tox-dialog-dock-transition"},modes:["top","bottom"],lazyViewport:xo=>Xv(a,xo.element).map(Ar=>({bounds:Fx(Ar),optScrollEnv:P.some({currentScrollTop:Ar.element.dom.scrollTop,scrollElmTop:al(Ar.element).top})})).getOrThunk(()=>({bounds:bl(),optScrollEnv:P.none()}))})]),isExtraPart:(xo,Ea)=>bte(Ea)}));br.set(Mo);const ja=()=>t.backstages.popup.shared.getSink().toOptional().bind(xo=>{const Ea=Xv(a,xo.element),Ar=15,no=Ea.map(wo=>Fx(wo)).getOr(bl()),$o=Js(zt.fromDom(a.getContentAreaContainer())),Po=H0($o,no);return P.some(Hs(Po.x,Po.y,Po.width,Po.height-Ar))});return Ws.showWithinBounds(Mo,Tu(Do.dialog),{anchor:Xt},ja),Ti.refresh(Mo),a.on("ResizeEditor ScrollWindow ElementScroll ResizeWindow",Zr),Do.instanceApi.setData(Yn),po.focusIn(Do.dialog),Do.instanceApi};return zn.open(rn,Mt)};return{open:Y,openUrl:re,alert:(Mt,Xt)=>{E.open(Mt,Xt)},close:Mt=>{Mt.close()},confirm:(Mt,Xt)=>{z.open(Mt,Xt)}}},Nie=t=>{v8(t),YV(t),QK(t)};var Fie=()=>{vm.add("silver",t=>{Nie(t);let a=()=>bl();const{dialogs:p,popups:E,renderUI:z}=XX(t,{getPopupSinkBounds:()=>a()}),Y=()=>{const Ee=z();return Xv(t,E.getMothership().element).each(je=>{a=()=>Fx(je)}),Ee};FU.register(t,E.backstage.shared);const re=Iie({editor:t,backstages:{popup:E.backstage,dialog:p.backstage}}),xe=()=>n5(t,{backstage:E.backstage},E.getMothership());return{renderUI:Y,getWindowManagerImpl:O(re),getNotificationManagerImpl:xe}})};Fie()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'',"accordion-toggle":'',accordion:'',"action-next":'',"action-prev":'',addtag:'',"ai-prompt":'',ai:'',"align-center":'',"align-justify":'',"align-left":'',"align-none":'',"align-right":'',"arrow-left":'',"arrow-right":'',bold:'',bookmark:'',"border-style":'',"border-width":'',brightness:'',browse:'',cancel:'',"cell-background-color":'',"cell-border-color":'',"change-case":'',"character-count":'',"checklist-rtl":'',checklist:'',checkmark:'',"chevron-down":'',"chevron-left":'',"chevron-right":'',"chevron-up":'',close:'',"code-sample":'',"color-levels":'',"color-picker":'',"color-swatch-remove-color":'',"color-swatch":'',"comment-add":'',comment:'',contrast:'',copy:'',crop:'',"cut-column":'',"cut-row":'',cut:'',"document-properties":'',drag:'',"duplicate-column":'',"duplicate-row":'',duplicate:'',"edit-block":'',"edit-image":'',"embed-page":'',embed:'',emoji:'',export:'',fill:'',"flip-horizontally":'',"flip-vertically":'',footnote:'',"format-painter":'',format:'',fullscreen:'',gallery:'',gamma:'',help:'',"highlight-bg-color":'',home:'',"horizontal-rule":'',"image-options":'',image:'',indent:'',info:'',"insert-character":'',"insert-time":'',invert:'',italic:'',language:'',"line-height":'',line:'',link:'',"list-bull-circle":'',"list-bull-default":'',"list-bull-square":'',"list-num-default-rtl":'',"list-num-default":'',"list-num-lower-alpha-rtl":'',"list-num-lower-alpha":'',"list-num-lower-greek-rtl":'',"list-num-lower-greek":'',"list-num-lower-roman-rtl":'',"list-num-lower-roman":'',"list-num-upper-alpha-rtl":'',"list-num-upper-alpha":'',"list-num-upper-roman-rtl":'',"list-num-upper-roman":'',lock:'',ltr:'',minus:'',"more-drawer":'',"new-document":'',"new-tab":'',"non-breaking":'',notice:'',"ordered-list-rtl":'',"ordered-list":'',orientation:'',outdent:'',"page-break":'',paragraph:'',"paste-column-after":'',"paste-column-before":'',"paste-row-after":'',"paste-row-before":'',"paste-text":'',paste:'',"permanent-pen":'',plus:'',preferences:'',preview:'',print:'',quote:'',redo:'',reload:'',"remove-formatting":'',remove:'',"resize-handle":'',resize:'',"restore-draft":'',"rotate-left":'',"rotate-right":'',rtl:'',save:'',search:'',"select-all":'',selected:'',send:'',settings:'',sharpen:'',sourcecode:'',"spell-check":'',"strike-through":'',subscript:'',superscript:'',"table-caption":'',"table-cell-classes":'',"table-cell-properties":'',"table-cell-select-all":'',"table-cell-select-inner":'',"table-classes":'',"table-delete-column":'',"table-delete-row":'',"table-delete-table":'',"table-insert-column-after":'',"table-insert-column-before":'',"table-insert-row-above":'',"table-insert-row-after":'',"table-left-header":'',"table-merge-cells":'',"table-row-numbering-rtl":'',"table-row-numbering":'',"table-row-properties":'',"table-split-cells":'',"table-top-header":'',table:'',"template-add":'',template:'',"temporary-placeholder":'',"text-color":'',"text-size-decrease":'',"text-size-increase":'',toc:'',translate:'',typography:'',underline:'',undo:'',unlink:'',unlock:'',"unordered-list":'',unselected:'',upload:'',user:'',"vertical-align":'',visualblocks:'',visualchars:'',warning:'',"zoom-in":'',"zoom-out":''}});(function(){const o=C=>{let _=C;return{get:()=>_,set:O=>{_=O}}};var b=tinymce.util.Tools.resolve("tinymce.PluginManager");const y=C=>()=>C;var T=tinymce.util.Tools.resolve("tinymce.Env");const G=C=>C.dispatch("ResizeEditor"),V=C=>_=>_.options.get(C),L=C=>{const _=C.options.register;_("autoresize_overflow_padding",{processor:"number",default:1}),_("autoresize_bottom_margin",{processor:"number",default:50})},A=V("min_height"),s=V("max_height"),m=V("autoresize_overflow_padding"),h=V("autoresize_bottom_margin"),l=C=>C.plugins.fullscreen&&C.plugins.fullscreen.isFullscreen(),c=(C,_)=>{const $=C.getBody();$&&($.style.overflowY=_?"":"hidden",_||($.scrollTop=0))},i=(C,_,$,S)=>{var O;const D=parseInt((O=C.getStyle(_,$,S))!==null&&O!==void 0?O:"",10);return isNaN(D)?0:D},u=C=>{if((C==null?void 0:C.type.toLowerCase())==="setcontent"){const _=C;return _.selection===!0||_.paste===!0}else return!1},d=(C,_,$,S)=>{var O;const D=C.dom,N=C.getDoc();if(!N)return;if(l(C)){c(C,!0);return}const M=N.documentElement,k=S?S():m(C),R=(O=A(C))!==null&&O!==void 0?O:C.getElement().offsetHeight;let F=R;const H=i(D,M,"margin-top",!0),j=i(D,M,"margin-bottom",!0);let P=M.offsetHeight+H+j+k;P<0&&(P=0);const ee=C.getContainer().offsetHeight,J=C.getContentAreaContainer().offsetHeight,K=ee-J;P+K>R&&(F=P+K);const ae=s(C);if(ae&&F>ae?(F=ae,c(C,!0)):c(C,!1),F!==_.get()){const Q=F-_.get();if(D.setStyle(C.getContainer(),"height",F+"px"),_.set(F),G(C),T.browser.isSafari()&&(T.os.isMacOS()||T.os.isiOS())){const he=C.getWin();he.scrollTo(he.pageXOffset,he.pageYOffset)}C.hasFocus()&&u($)&&C.selection.scrollIntoView(),(T.browser.isSafari()||T.browser.isChromium())&&Q<0&&d(C,_,$,S)}},g=(C,_)=>{let $=()=>h(C),S,O;C.on("init",D=>{S=0;const N=m(C),M=C.dom;M.setStyles(C.getDoc().documentElement,{height:"auto"}),T.browser.isEdge()||T.browser.isIE()?M.setStyles(C.getBody(),{paddingLeft:N,paddingRight:N,"min-height":0}):M.setStyles(C.getBody(),{paddingLeft:N,paddingRight:N}),d(C,_,D,$),S+=1}),C.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",D=>{if(S===1)O=C.getContainer().offsetHeight,d(C,_,D,$),S+=1;else if(S===2){const N=O{C.addCommand("mceAutoResize",()=>{d(C,_)})};var x=()=>{b.add("autoresize",C=>{if(L(C),C.options.isSet("resize")||C.options.set("resize",!1),!C.inline){const _=o(0);v(C,_),g(C,_)}})};x()})();var bve=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],xve=function(o){return bve.map(function(b){return b.toLowerCase()}).indexOf(o.toLowerCase())!==-1},wve=function(o,b,y){Object.keys(b).filter(xve).forEach(function(T){var G=b[T];typeof G=="function"&&(T==="onInit"?G(o,y):y.on(T.substring(2),function(V){return G(V,y)}))})},Cve=function(o,b,y,T){var G=o.modelEvents?o.modelEvents:null,V=Array.isArray(G)?G.join(" "):G;ta(T,function(L,A){y&&typeof L=="string"&&L!==A&&L!==y.getContent({format:o.outputFormat})&&y.setContent(L)}),y.on(V||"change input undo redo",function(){b.emit("update:modelValue",y.getContent({format:o.outputFormat}))})},Sve=function(o,b,y,T,G,V){T.setContent(V()),y.attrs["onUpdate:modelValue"]&&Cve(b,y,T,G),wve(o,y.attrs,T)},Ire=0,Aie=function(o){var b=Date.now(),y=Math.floor(Math.random()*1e9);return Ire++,o+"_"+y+Ire+String(b)},Tve=function(o){return o!==null&&o.tagName.toLowerCase()==="textarea"},Nre=function(o){return typeof o>"u"||o===""?[]:Array.isArray(o)?o:o.split(" ")},kve=function(o,b){return Nre(o).concat(Nre(b))},Ave=function(o){return o==null},Fre=function(){return{listeners:[],scriptId:Aie("tiny-script"),scriptLoaded:!1}},Mve=function(){var o=Fre(),b=function(G,V,L,A){var s=V.createElement("script");s.referrerPolicy="origin",s.type="application/javascript",s.id=G,s.src=L;var m=function(){s.removeEventListener("load",m),A()};s.addEventListener("load",m),V.head&&V.head.appendChild(s)},y=function(G,V,L){o.scriptLoaded?L():(o.listeners.push(L),G.getElementById(o.scriptId)||b(o.scriptId,G,V,function(){o.listeners.forEach(function(A){return A()}),o.scriptLoaded=!0}))},T=function(){o=Fre()};return{load:y,reinitialize:T}},Eve=Mve(),_ve=function(){return typeof window<"u"?window:global},l3=function(){var o=_ve();return o&&o.tinymce?o.tinymce:null},Rve={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(o){return o==="html"||o==="text"}}},y0=globalThis&&globalThis.__assign||function(){return y0=Object.assign||function(o){for(var b,y=1,T=arguments.length;y[o.$devMode?(mo(),za(sm,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:jr(()=>[ct(kp,{cols:11},{default:jr(()=>[Pve]),_:1}),ct(kp,{cols:1,class:"d-flex justify-end align-center py-0"},{default:jr(()=>[ct(js,{small:"",class:"mx-1",color:"primary",onClick:V.saveCell},{default:jr(()=>[ii(" mdi-content-save ")]),_:1},8,["onClick"]),ct(js,{small:"",class:"mx-1",color:"error",onClick:V.deleteCell},{default:jr(()=>[ii(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):cm("",!0),o.$devMode?(mo(),za(L,{key:1,modelValue:y.cellData.code,"onUpdate:modelValue":b[0]||(b[0]=A=>y.cellData.code=A),init:o.init},null,8,["modelValue","init"])):(mo(),za(L,{key:2,modelValue:y.cellData.code,"onUpdate:modelValue":b[1]||(b[1]=A=>y.cellData.code=A),init:o.init,disabled:!0},null,8,["modelValue","init"]))]),_:1}),ct(O2,{transition:"scale-transition"},{activator:jr(({props:A})=>[ct(dc,Jo(A,{block:""}),{default:jr(()=>[ct(sm,null,{default:jr(()=>[ct(js,{color:"primary"},{default:jr(()=>[ii("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:jr(()=>[ct($2,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(o.items,(A,s)=>(mo(),za(fm,{key:s},{default:jr(()=>[ct(dc,{block:"",onClick:m=>V.createCell(A.title)},{default:jr(()=>[ii(Sp(A.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})],64)}const Nve=Vy(Ove,[["render",Ive]]);var Fve={exports:{}};(function(o,b){ace.define("ace/mode/sql_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(y,T,G){var V=y("../lib/oop"),L=y("./text_highlight_rules").TextHighlightRules,A=function(){var s="select|insert|update|delete|from|where|and|or|group|by|order|limit|offset|having|as|case|when|then|else|end|type|left|right|join|on|outer|desc|asc|union|create|table|primary|key|if|foreign|not|references|default|null|inner|cross|natural|database|drop|grant|distinct|is|in",m="true|false",h="avg|count|first|last|max|min|sum|ucase|lcase|mid|len|round|rank|now|format|coalesce|ifnull|isnull|nvl",l="int|numeric|decimal|date|varchar|char|bigint|float|double|bit|binary|text|set|timestamp|money|real|number|integer",c=this.createKeywordMapper({"support.function":h,keyword:s,"constant.language":m,"storage.type":l},"identifier",!0);this.$rules={start:[{token:"comment",regex:"--.*$"},{token:"comment",start:"/\\*",end:"\\*/"},{token:"string",regex:'".*?"'},{token:"string",regex:"'.*?'"},{token:"string",regex:"`.*?`"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:c,regex:"[a-zA-Z_$][a-zA-Z0-9_$]*\\b"},{token:"keyword.operator",regex:"\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"text",regex:"\\s+"}]},this.normalizeRules()};V.inherits(A,L),T.SqlHighlightRules=A}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(y,T,G){var V=y("../../lib/oop"),L=y("../../range").Range,A=y("./fold_mode").FoldMode,s=T.FoldMode=function(m){m&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+m.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+m.end)))};V.inherits(s,A),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(m,h,l){var c=m.getLine(l);if(this.singleLineBlockCommentRe.test(c)&&!this.startRegionRe.test(c)&&!this.tripleStarBlockCommentRe.test(c))return"";var i=this._getFoldWidgetBase(m,h,l);return!i&&this.startRegionRe.test(c)?"start":i},this.getFoldWidgetRange=function(m,h,l,c){var i=m.getLine(l);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(m,i,l);var g=i.match(this.foldingStartMarker);if(g){var u=g.index;if(g[1])return this.openingBracketBlock(m,g[1],l,u);var d=m.getCommentFoldRange(l,u+g[0].length,1);return d&&!d.isMultiLine()&&(c?d=this.getSectionRange(m,l):h!="all"&&(d=null)),d}if(h!=="markbegin"){var g=i.match(this.foldingStopMarker);if(g){var u=g.index+g[0].length;return g[1]?this.closingBracketBlock(m,g[1],l,u):m.getCommentFoldRange(l,u,-1)}}},this.getSectionRange=function(m,h){var l=m.getLine(h),c=l.search(/\S/),i=h,u=l.length;h=h+1;for(var d=h,g=m.getLength();++hv)break;var x=this.getFoldWidgetRange(m,"all",h);if(x){if(x.start.row<=i)break;if(x.isMultiLine())h=x.end.row;else if(c==v)break}d=h}}return new L(i,u,d,m.getLine(d).length)},this.getCommentRegionBlock=function(m,h,l){for(var c=h.search(/\s*$/),i=m.getLength(),u=l,d=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++lu)return new L(u,c,x,h.length)}}).call(s.prototype)}),ace.define("ace/mode/folding/sql",["require","exports","module","ace/lib/oop","ace/mode/folding/cstyle"],function(y,T,G){var V=y("../../lib/oop"),L=y("./cstyle").FoldMode,A=T.FoldMode=function(){};V.inherits(A,L),(function(){}).call(A.prototype)}),ace.define("ace/mode/sql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/sql_highlight_rules","ace/mode/folding/sql"],function(y,T,G){var V=y("../lib/oop"),L=y("./text").Mode,A=y("./sql_highlight_rules").SqlHighlightRules,s=y("./folding/sql").FoldMode,m=function(){this.HighlightRules=A,this.foldingRules=new s,this.$behaviour=this.$defaultBehaviour};V.inherits(m,L),(function(){this.lineCommentStart="--",this.blockComment={start:"/*",end:"*/"},this.$id="ace/mode/sql",this.snippetFileId="ace/snippets/sql"}).call(m.prototype),T.Mode=m}),function(){ace.require(["ace/mode/sql"],function(y){o&&(o.exports=y)})}()})(Fve);var Bve={exports:{}};(function(o,b){ace.define("ace/snippets/sql.snippets",["require","exports","module"],function(y,T,G){G.exports="snippet tbl\n create table ${1:table} (\n ${2:columns}\n );\nsnippet col\n ${1:name} ${2:type} ${3:default ''} ${4:not null}\nsnippet ccol\n ${1:name} varchar2(${2:size}) ${3:default ''} ${4:not null}\nsnippet ncol\n ${1:name} number ${3:default 0} ${4:not null}\nsnippet dcol\n ${1:name} date ${3:default sysdate} ${4:not null}\nsnippet ind\n create index ${3:$1_$2} on ${1:table}(${2:column});\nsnippet uind\n create unique index ${1:name} on ${2:table}(${3:column});\nsnippet tblcom\n comment on table ${1:table} is '${2:comment}';\nsnippet colcom\n comment on column ${1:table}.${2:column} is '${3:comment}';\nsnippet addcol\n alter table ${1:table} add (${2:column} ${3:type});\nsnippet seq\n create sequence ${1:name} start with ${2:1} increment by ${3:1} minvalue ${4:1};\nsnippet s*\n select * from ${1:table}\n"}),ace.define("ace/snippets/sql",["require","exports","module","ace/snippets/sql.snippets"],function(y,T,G){T.snippetText=y("./sql.snippets"),T.scope="sql"}),function(){ace.require(["ace/snippets/sql"],function(y){o&&(o.exports=y)})}()})(Bve);const Hve={components:{"ace-editor":eH,"v-data-table":aee},computed:{editorOptions(){return{showPrintMargin:!1,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,autoScrollEditorIntoView:!0,highlightActiveLine:this.$devMode&&this.isFocused,highlightGutterLine:this.$devMode&&this.isFocused,minLines:1,maxLines:1/0}}},data(){return{isFocused:!1,items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},props:{cellData:{type:Object,required:!0}},mounted(){if(this.$devMode){const o=this.$refs.editor;o._editor.renderer.$cursorLayer.element.style.display="none"}window.addEventListener("keydown",this.handleKeyDown)},beforeUnmount(){window.removeEventListener("keydown",this.handleKeyDown)},methods:{handleKeyDown(o){this.isFocused&&o.ctrlKey&&o.key==="Enter"&&this.runCode()},handleFocus(o){if(o){const b=this.$refs.editor;b._editor.renderer.$cursorLayer.element.style.display=""}else{const b=this.$refs.editor;b._editor.renderer.$cursorLayer.element.style.display="none"}this.isFocused=o},runCode(){this.$emit("runCode",this.cellData.id)},deleteCell(){this.$emit("deleteCell",this.cellData.id)},createCell(o){this.$emit("createCell",this.cellData.id,o)}}},zve=ff("span",{class:"py-0 px-2"},".sql",-1),Vve={key:4},Uve=ff("p",{class:"text-caption text-disabled text-right"}," CTRL+Enter to run",-1),Wve=[Uve],Gve={class:"text-p"};function Zve(o,b,y,T,G,V){const L=A0("ace-editor");return mo(),Ts(Uo,null,[ct(M3,{flat:"",color:"bluegrey"},{default:jr(()=>[o.$devMode?(mo(),za(sm,{key:0,"no-gutters":"",class:"py-1 toolbar-bg"},{default:jr(()=>[ct(kp,{cols:11},{default:jr(()=>[zve]),_:1}),ct(kp,{cols:1,class:"d-flex justify-end align-center py-0"},{default:jr(()=>[ct(js,{small:"",class:"mx-1",color:"primary",onClick:V.runCode},{default:jr(()=>[ii(" mdi-play ")]),_:1},8,["onClick"]),ct(js,{small:"",class:"mx-1",color:"error",onClick:V.deleteCell},{default:jr(()=>[ii(" mdi-delete ")]),_:1},8,["onClick"])]),_:1})]),_:1})):cm("",!0),o.$devMode?(mo(),za(Ep,{key:1,modelValue:y.cellData.variable_name,"onUpdate:modelValue":b[0]||(b[0]=A=>y.cellData.variable_name=A),label:"Enter SQL variable name",density:"compact"},null,8,["modelValue"])):cm("",!0),o.$devMode?(mo(),za(L,{key:2,value:y.cellData.code,"onUpdate:value":b[1]||(b[1]=A=>y.cellData.code=A),ref:"editor",class:"editor",theme:"dracula",lang:"sql",onFocus:b[2]||(b[2]=A=>V.handleFocus(!0)),onBlur:b[3]||(b[3]=A=>V.handleFocus(!1)),options:V.editorOptions},null,8,["value","options"])):(mo(),za(Wse,{key:3},{default:jr(()=>[ct(Zse,null,{default:jr(()=>[ct(tee,{color:"bluegrey2"},{default:jr(()=>[ii(" View Source Code ")]),_:1}),ct(eee,null,{default:jr(()=>[ct(L,{value:y.cellData.code,"onUpdate:value":b[4]||(b[4]=A=>y.cellData.code=A),class:"editor",theme:"dracula",lang:"sql",readonly:!0,options:V.editorOptions},null,8,["value","options"])]),_:1})]),_:1})]),_:1})),o.$devMode?(mo(),Ts("div",Vve,Wve)):cm("",!0),(mo(!0),Ts(Uo,null,uf(y.cellData.components,A=>(mo(),za(V6,{key:A.id},{default:jr(()=>[(mo(),za(mg(A.component),Jo(A,{modelValue:A.value,"onUpdate:modelValue":s=>A.value=s},{[C0(A.triggerEvent)]:V.runCode}),null,16,["modelValue","onUpdate:modelValue"]))]),_:2},1024))),128)),ff("div",Gve,Sp(y.cellData.output),1)]),_:1}),ct(O2,{transition:"scale-transition"},{activator:jr(({props:A})=>[ct(dc,Jo(A,{block:""}),{default:jr(()=>[ct(sm,null,{default:jr(()=>[ct(js,{color:"primary"},{default:jr(()=>[ii("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:jr(()=>[ct($2,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(G.items,(A,s)=>(mo(),za(fm,{key:s},{default:jr(()=>[ct(dc,{block:"",onClick:m=>V.createCell(A.title)},{default:jr(()=>[ii(Sp(A.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})],64)}const jve=Vy(Hve,[["render",Zve]]);var Yve={exports:{}};(function(o,b){(function(){ace.require(["ace/mode/text"],function(y){o&&(o.exports=y)})})()})(Yve);var Kve={exports:{}};(function(o,b){(function(){ace.require(["ace/snippets/text"],function(y){o&&(o.exports=y)})})()})(Kve);const Xve={components:{"ace-editor":eH},data:()=>({updatingDependencies:!1}),props:{dependencies:{type:Object,required:!0}},computed:{editorOptions(){return{showPrintMargin:!1,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,autoScrollEditorIntoView:!0,minLines:1,maxLines:1/0}}},methods:{async updateDependencies(){const o={dependencies:this.dependencies.value};await Oy.post("api/dependency_update",o),this.updatingDependencies=!1}}},Jve=ff("span",{class:"text-h5"},"Add Dependencies",-1);function Qve(o,b,y,T,G,V){const L=A0("ace-editor");return mo(),za(Fge,{modelValue:o.updatingDependencies,"onUpdate:modelValue":b[2]||(b[2]=A=>o.updatingDependencies=A),persistent:"",width:"1024"},{activator:jr(({props:A})=>[ct(dc,Jo({color:"primary"},A,{icon:"mdi-graph"}),null,16)]),default:jr(()=>[ct(M3,null,{default:jr(()=>[ct(Nse,null,{default:jr(()=>[Jve]),_:1}),ct(L,{value:y.dependencies.value,"onUpdate:value":b[0]||(b[0]=A=>y.dependencies.value=A),ref:"editor",class:"editor",theme:"dracula",lang:"text",options:V.editorOptions},null,8,["value","options"]),ct(Ise,null,{default:jr(()=>[ct(rie),ct(dc,{color:"blue-darken-1",variant:"text",onClick:b[1]||(b[1]=A=>o.updatingDependencies=!1)},{default:jr(()=>[ii(" Close ")]),_:1}),ct(dc,{color:"blue-darken-1",variant:"text",onClick:V.updateDependencies},{default:jr(()=>[ii(" Update ")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const qve=Vy(Xve,[["render",Qve]]),e0e={components:{CodeComponent:Qpe,MarkdownComponent:vve,EditorComponent:Nve,SQLComponent:jve,PackageComponent:qve},data(){return{notebook:{},dependencies:{},timer:0,timerInterval:null,isCodeRunning:!1,requestQueue:[],componentChangeQueue:[],menu_items:[{title:"Code"},{title:"SQL"},{title:"Markdown"},{title:"Text"}]}},beforeMount(){window.addEventListener("beforeunload",this.clearState),window.addEventListener("unload",this.clearState)},beforeUnmount(){window.removeEventListener("beforeunload",this.clearState),window.removeEventListener("unload",this.clearState)},async created(){const o=await Oy.get("api/notebook");this.notebook=o.data.notebook,this.dependencies=o.data.dependencies},methods:{startTimer(){this.timer=0,this.timerInterval=setInterval(()=>{this.timer++},1)},stopTimer(){this.timerInterval&&(clearInterval(this.timerInterval),this.timerInterval=null)},async runCode(o){if(this.requestQueue.push(o),!this.isCodeRunning)for(;this.requestQueue.length>0;){if(!this.requestQueue.shift())continue;const y=[],T={};for(let A in this.notebook.cells){const s={id:A,code:this.notebook.cells[A].code,variable_name:this.notebook.cells[A].variable_name||"",cellType:this.notebook.cells[A].cellType};for(const m of this.notebook.cells[A].components)T[m.id]=m.value;y.push(s)}const G={originId:o,cells:y,components:T};this.isCodeRunning=!0,this.startTimer();const V=await Oy.post("api/runcode",G);this.stopTimer(),this.isCodeRunning=!1;const L=V.data;for(const A of L.cells)this.notebook.cells[A.id].components=A.components,this.notebook.cells[A.id].output=A.output,this.notebook.cells[A.id].layout=A.layout}},async componentValueChange(o,b,y){const T={};for(let L in this.notebook.cells)for(const A of this.notebook.cells[L].components)T[A.id]=A.value;const G={originId:o,componentId:b,components:T,userId:this.notebook.userId},V=this.componentChangeQueue.findIndex(L=>L.componentId===b);if(V!==-1?this.componentChangeQueue[V]=G:this.componentChangeQueue.push(G),!this.isCodeRunning)for(;this.componentChangeQueue.length>0;){const L=this.componentChangeQueue.shift();if(!L)continue;const A={originId:L.originId,components:L.components,userId:L.userId};this.isCodeRunning=!0,this.startTimer();const s=await Oy.post("api/component_run",A);this.stopTimer(),this.isCodeRunning=!1;const m=s.data;if(m.refresh){const h=await Oy.get("api/notebook");this.notebook=h.data.notebook,this.dependencies=h.data.dependencies}else for(const h of m.cells)this.notebook.cells[h.id].components=h.components,this.notebook.cells[h.id].output=h.output,this.notebook.cells[h.id].layout=h.layout}},navigateToApp(){window.open("https://zero-true.com/")},clearState:function(){const b={userId:this.notebook.userId};Oy.post("api/clear_state",b)},async createCodeCell(o,b){const y={cellType:b.toLowerCase(),position_key:o},G=(await Oy.post("api/create_cell",y)).data;let V={};o||(V[G.id]=G);for(let L in this.notebook.cells)V[L]=this.notebook.cells[L],o===L&&(V[G.id]=G);this.notebook.cells=V},async deleteCell(o){const b={cellId:o};await Oy.post("api/delete_cell",b),delete this.notebook.cells[o]},async saveCell(o){const b={id:o,text:this.notebook.cells[o].code};await Oy.post("api/save_text",b)},getComponent(o){switch(o){case"code":return"CodeComponent";case"text":return"EditorComponent";case"markdown":return"MarkdownComponent";case"sql":return"SQLComponent";default:throw new Error(`Unknown component type: ${o}`)}}}};const t0e={key:0,class:"d-flex align-center"};function n0e(o,b,y,T,G,V){const L=A0("PackageComponent");return mo(),za(bhe,{style:{"background-color":"#040607"}},{default:jr(()=>[ct(Ohe,{app:"",color:"bluegrey"},{default:jr(()=>[ct(dc,{size:"x-large",variant:"text",onClick:V.navigateToApp},{default:jr(()=>[ct(js,{start:"",size:"x-large",icon:"custom:ZTIcon"}),ii(" Zero-True ")]),_:1},8,["onClick"]),ct(rie),G.isCodeRunning?(mo(),Ts("div",t0e,[ct(tse,{indeterminate:"",color:"white",size:"24"}),ct(wE,{class:"ml-2",color:"white","text-color":"black"},{default:jr(()=>[ii(Sp(G.timer)+"ms ",1)]),_:1}),o.$devMode?(mo(),za(wE,{key:0,class:"ml-2",color:"white","text-color":"black"},{default:jr(()=>[ii(" Queue Length: "+Sp(G.requestQueue.length),1)]),_:1})):(mo(),za(wE,{key:1,class:"ml-2",color:"white","text-color":"black"},{default:jr(()=>[ii(" Queue Length: "+Sp(G.componentChangeQueue.length),1)]),_:1}))])):cm("",!0),o.$devMode?(mo(),za(L,{key:1,dependencies:G.dependencies},null,8,["dependencies"])):cm("",!0)]),_:1}),ct(epe,null,{default:jr(()=>[ct(V6,null,{default:jr(()=>[ct(O2,{transition:"scale-transition"},{activator:jr(({props:A})=>[ct(dc,Jo(A,{block:""}),{default:jr(()=>[ct(sm,null,{default:jr(()=>[ct(js,{color:"primary"},{default:jr(()=>[ii("mdi-plus")]),_:1})]),_:1})]),_:2},1040)]),default:jr(()=>[ct($2,null,{default:jr(()=>[(mo(!0),Ts(Uo,null,uf(G.menu_items,(A,s)=>(mo(),za(fm,{key:s},{default:jr(()=>[ct(dc,{block:"",onClick:m=>V.createCodeCell("",A.title)},{default:jr(()=>[ii(Sp(A.title),1)]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1}),(mo(!0),Ts(Uo,null,uf(G.notebook.cells,A=>(mo(),za(V6,null,{default:jr(()=>[(mo(),za(mg(V.getComponent(A.cellType)),{cellData:A,onRunCode:V.runCode,onSaveCell:V.saveCell,onComponentChange:V.componentValueChange,onDeleteCell:V.deleteCell,onCreateCell:V.createCodeCell},null,40,["cellData","onRunCode","onSaveCell","onComponentChange","onDeleteCell","onCreateCell"]))]),_:2},1024))),256))]),_:1})]),_:1})}const r0e=Vy(e0e,[["render",n0e]]);const o0e="modulepreload",a0e=function(o,b){return new URL(o,b).href},Bre={},s0e=function(b,y,T){if(!y||y.length===0)return b();const G=document.getElementsByTagName("link");return Promise.all(y.map(V=>{if(V=a0e(V,T),V in Bre)return;Bre[V]=!0;const L=V.endsWith(".css"),A=L?'[rel="stylesheet"]':"";if(!!T)for(let h=G.length-1;h>=0;h--){const l=G[h];if(l.href===V&&(!L||l.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${V}"]${A}`))return;const m=document.createElement("link");if(m.rel=L?"stylesheet":o0e,L||(m.as="script",m.crossOrigin=""),m.href=V,document.head.appendChild(m),L)return new Promise((h,l)=>{m.addEventListener("load",h),m.addEventListener("error",()=>l(new Error(`Unable to preload CSS for ${V}`)))})})).then(()=>b()).catch(V=>{const L=new Event("vite:preloadError",{cancelable:!0});if(L.payload=V,window.dispatchEvent(L),!L.defaultPrevented)throw V})};async function i0e(){(await s0e(()=>import("./webfontloader-bb2b415c.js").then(b=>b.w),[],import.meta.url)).load({google:{families:["Pathway+Extreme:100,300,400,500,700,900&display=swap"]}})}const l0e={},c0e={id:"Capa_2","data-name":"Capa 2",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 92.58 61.58"},u0e=ff("g",{id:"Capa_1-2","data-name":"Capa 1"},[ff("g",null,[ff("path",{class:"cls-1",d:"m77.14,15.44L61.7,0h-30.82l30.82,30.82v30.76l15.44-15.32,15.44-15.44-15.44-15.38Z"}),ff("path",{class:"cls-1",d:"m15.44,46.14l15.44,15.44h30.82l-30.82-30.82V0l-15.44,15.32L0,30.76l15.44,15.38Z"})])],-1),f0e=[u0e];function d0e(o,b){return mo(),Ts("svg",c0e,f0e)}const h0e=Vy(l0e,[["render",d0e]]),PQ={"001":1,AD:1,AE:6,AF:6,AG:0,AI:1,AL:1,AM:1,AN:1,AR:1,AS:0,AT:1,AU:1,AX:1,AZ:1,BA:1,BD:0,BE:1,BG:1,BH:6,BM:1,BN:1,BR:0,BS:0,BT:0,BW:0,BY:1,BZ:0,CA:0,CH:1,CL:1,CM:1,CN:1,CO:0,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DM:0,DO:0,DZ:6,EC:1,EE:1,EG:6,ES:1,ET:0,FI:1,FJ:1,FO:1,FR:1,GB:1,"GB-alt-variant":0,GE:1,GF:1,GP:1,GR:1,GT:0,GU:0,HK:0,HN:0,HR:1,HU:1,ID:0,IE:1,IL:0,IN:0,IQ:6,IR:6,IS:1,IT:1,JM:0,JO:6,JP:0,KE:0,KG:1,KH:0,KR:0,KW:6,KZ:1,LA:0,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MH:0,MK:1,MM:0,MN:1,MO:0,MQ:1,MT:0,MV:5,MX:0,MY:1,MZ:0,NI:0,NL:1,NO:1,NP:0,NZ:1,OM:6,PA:0,PE:0,PH:0,PK:0,PL:1,PR:0,PT:0,PY:0,QA:6,RE:1,RO:1,RS:1,RU:1,SA:0,SD:6,SE:1,SG:0,SI:1,SK:1,SM:1,SV:0,SY:6,TH:0,TJ:1,TM:1,TR:1,TT:0,TW:0,UA:1,UM:0,US:0,UY:1,UZ:1,VA:1,VE:0,VI:0,VN:1,WS:0,XK:1,YE:0,ZA:0,ZW:0};function m0e(o,b){const y=[];let T=[];const G=Mie(o),V=Eie(o),L=(G.getDay()-PQ[b.slice(-2).toUpperCase()]+7)%7,A=(V.getDay()-PQ[b.slice(-2).toUpperCase()]+7)%7;for(let s=0;s{const T=new Date(Hre);return T.setDate(Hre.getDate()+b+y),new Intl.DateTimeFormat(o,{weekday:"narrow"}).format(T)})}function b0e(o,b,y){const T=new Date(o);let G={};switch(b){case"fullDateWithWeekday":G={weekday:"long",day:"numeric",month:"long",year:"numeric"};break;case"normalDateWithWeekday":G={weekday:"short",day:"numeric",month:"short"};break;case"keyboardDate":G={};break;case"monthAndDate":G={month:"long",day:"numeric"};break;case"monthAndYear":G={month:"long",year:"numeric"};break;case"dayOfMonth":G={day:"numeric"};break;case"shortDate":G={year:"numeric"};break;default:G={timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(y,G).format(T)}function x0e(o,b){const y=new Date(o);return y.setDate(y.getDate()+b),y}function w0e(o,b){const y=new Date(o);return y.setMonth(y.getMonth()+b),y}function C0e(o){return o.getFullYear()}function S0e(o){return o.getMonth()}function T0e(o){return new Date(o.getFullYear(),0,1)}function k0e(o){return new Date(o.getFullYear(),11,31)}function A0e(o,b){return IQ(o,b[0])&&E0e(o,b[1])}function M0e(o){if(!o||o==null)return!1;const b=new Date(o);return b instanceof Date&&!isNaN(b.getTime())}function IQ(o,b){return o.getTime()>b.getTime()}function E0e(o,b){return o.getTime()0&&arguments[0]!==void 0?arguments[0]:{};const{blueprint:b,...y}=o,T=gg(b,y),{aliases:G={},components:V={},directives:L={}}=T,A=Kde(T.defaults),s=rge(T.display,T.ssr),m=vhe(T.theme),h=Vhe(T.icons),l=mhe(T.locale),c=I0e(T.date);return{install:u=>{for(const d in L)u.directive(d,L[d]);for(const d in V)u.component(d,V[d]);for(const d in G)u.component(d,IE({...G[d],name:d,aliasName:G[d].name}));if(m.install(u),u.provide(_E,A),u.provide(LQ,s),u.provide(EB,m),u.provide(TQ,h),u.provide(MB,l),u.provide(Vre,c),yl&&T.ssr)if(u.$nuxt)u.$nuxt.hook("app:suspense:resolve",()=>{s.update()});else{const{mount:d}=u;u.mount=function(){const g=d(...arguments);return Ll(()=>s.update()),u.mount=d,g}}Rp.reset(),u.mixin({computed:{$vuetify(){return ih({defaults:hE.call(this,_E),display:hE.call(this,LQ),theme:hE.call(this,EB),icons:hE.call(this,TQ),locale:hE.call(this,MB),date:hE.call(this,Vre)})}}})},defaults:A,display:s,theme:m,icons:h,locale:l,date:c}}const N0e="3.3.20";_ie.version=N0e;function hE(o){var T,G;const b=this.$,y=((T=b.parent)==null?void 0:T.provides)??((G=b.vnode.appContext)==null?void 0:G.provides);if(y&&o in y)return y[o]}const F0e={ZTIcon:h0e},B0e={component:o=>um(o.tag,[um(F0e[o.icon],{class:"v-icon__svg"})])},H0e=_ie({theme:{defaultTheme:"light",themes:{light:{dark:!0,colors:{primary:"#AE9FE8",secondary:"#424242",bluegrey:"#0E1B23",bluegrey2:"#1B2F3C",accent:"#FFDCA7",error:"#FF6F6F",info:"#4CBCFC",success:"#16B48E",warning:"#F49E6E"}}}},icons:{defaultSet:"mdi",sets:{mdi:Jae,custom:B0e}}});function z0e(o){i0e(),o.use(H0e)}const lee=Gfe(r0e);z0e(lee);lee.config.globalProperties.$devMode=!0;lee.mount("#app");export{dae as g}; diff --git a/zt_backend/dist_app/assets/webfontloader-afe4bc24.js b/zt_backend/dist_dev/assets/webfontloader-af111efa.js similarity index 99% rename from zt_backend/dist_app/assets/webfontloader-afe4bc24.js rename to zt_backend/dist_dev/assets/webfontloader-af111efa.js index 5346a614..6a8ebfef 100644 --- a/zt_backend/dist_app/assets/webfontloader-afe4bc24.js +++ b/zt_backend/dist_dev/assets/webfontloader-af111efa.js @@ -1 +1 @@ -import{g as Ft}from"./index-d25ef89f.js";function Pt(w,S){for(var _=0;_h[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;fh[m]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}var at={exports:{}};(function(w){(function(){function S(t,n,e){return t.call.apply(t.bind,arguments)}function _(t,n,e){if(!t)throw Error();if(2=n.f?a():t.fonts.load(ht(n.a),n.h).then(function(c){1<=c.length?r():setTimeout(f,25)},function(){a()})}f()}),o=null,s=new Promise(function(r,a){o=setTimeout(a,n.f)});Promise.race([s,i]).then(function(){o&&(clearTimeout(o),o=null),n.g(n.a)},function(){n.j(n.a)})};function V(t,n,e,i,o,s,r){this.v=t,this.B=n,this.c=e,this.a=i,this.s=r||"BESbswy",this.f={},this.w=o||3e3,this.u=s||null,this.m=this.j=this.h=this.g=null,this.g=new A(this.c,this.s),this.h=new A(this.c,this.s),this.j=new A(this.c,this.s),this.m=new A(this.c,this.s),t=new g(this.a.c+",serif",p(this.a)),t=b(t),this.g.a.style.cssText=t,t=new g(this.a.c+",sans-serif",p(this.a)),t=b(t),this.h.a.style.cssText=t,t=new g("serif",p(this.a)),t=b(t),this.j.a.style.cssText=t,t=new g("sans-serif",p(this.a)),t=b(t),this.m.a.style.cssText=t,C(this.g),C(this.h),C(this.j),C(this.m)}var N={D:"serif",C:"sans-serif"},W=null;function X(){if(W===null){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);W=!!t&&(536>parseInt(t[1],10)||parseInt(t[1],10)===536&&11>=parseInt(t[2],10))}return W}V.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=m(),Q(this)};function J(t,n,e){for(var i in N)if(N.hasOwnProperty(i)&&n===t.f[N[i]]&&e===t.f[N[i]])return!0;return!1}function Q(t){var n=t.g.a.offsetWidth,e=t.h.a.offsetWidth,i;(i=n===t.f.serif&&e===t.f["sans-serif"])||(i=X()&&J(t,n,e)),i?m()-t.A>=t.w?X()&&J(t,n,e)&&(t.u===null||t.u.hasOwnProperty(t.a.c))?I(t,t.v):I(t,t.B):dt(t):I(t,t.v)}function dt(t){setTimeout(h(function(){Q(this)},t),50)}function I(t,n){setTimeout(h(function(){E(this.g.a),E(this.h.a),E(this.j.a),E(this.m.a),n(this.a)},t),0)}function k(t,n,e){this.c=t,this.a=n,this.f=0,this.m=this.j=!1,this.s=e}var O=null;k.prototype.g=function(t){var n=this.a;n.g&&y(n.f,[n.a.c("wf",t.c,p(t).toString(),"active")],[n.a.c("wf",t.c,p(t).toString(),"loading"),n.a.c("wf",t.c,p(t).toString(),"inactive")]),j(n,"fontactive",t),this.m=!0,Y(this)},k.prototype.h=function(t){var n=this.a;if(n.g){var e=D(n.f,n.a.c("wf",t.c,p(t).toString(),"active")),i=[],o=[n.a.c("wf",t.c,p(t).toString(),"loading")];e||i.push(n.a.c("wf",t.c,p(t).toString(),"inactive")),y(n.f,i,o)}j(n,"fontinactive",t),Y(this)};function Y(t){--t.f==0&&t.j&&(t.m?(t=t.a,t.g&&y(t.f,[t.a.c("wf","active")],[t.a.c("wf","loading"),t.a.c("wf","inactive")]),j(t,"active")):R(t.a))}function Z(t){this.j=t,this.a=new vt,this.h=0,this.f=this.g=!0}Z.prototype.load=function(t){this.c=new T(this.j,t.context||this.j),this.g=t.events!==!1,this.f=t.classes!==!1,yt(this,new pt(this.c,t),t)};function wt(t,n,e,i,o){var s=--t.h==0;(t.f||t.g)&&setTimeout(function(){var r=o||null,a=i||null||{};if(e.length===0&&s)R(n.a);else{n.f+=e.length,s&&(n.j=s);var f,c=[];for(f=0;f